@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240429.0 → 0.0.0-nightly-20240430.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as _0x43660f,PendingActions as _0x21020d,icons as _0x1edff3}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x148f6c,ObservableMixin as _0x4f1937,uid as _0x461740,insertToPriorityArray as _0x5880de,priorities as _0x43c881,logWarning as _0x4941fa,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1bb9a4,View as _0x1bd18e,ButtonView as _0x4fc6e1,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x380c8c,hashObject as _0x2f13d0,surroundingMarkersDetector as _0xc5ef19,trimHtml as _0x45699f,UserView as _0x4b67e2,getDateTimeFormatter as _0x2064fc,getAllMarkersDomElementsSorted as _0x2ba4da,sanitizeEditorConfig as _0x37f701}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x199b7a,LiveRange as _0x30a6a3,LivePosition as _0x41f1a4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2b9a9f,toWidget as _0x19342a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3d9419,set as _0xb6e950,isEqual as _0x11601a,unset as _0x3fb759,omit as Bt}from'lodash-es';import{Delete as _0x5e5ec8,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x45b63c,ShiftEnter as _0x27d317}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x4d1dd7 of this['editor']['commands']['commands']())_0x4d1dd7['affectsData']&&!this['_enabledCommands']['has'](_0x4d1dd7)&&_0x4d1dd7['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x92a08b of this['editor']['commands']['commands']())_0x92a08b['affectsData']&&!this['_enabledCommands']['has'](_0x92a08b)&&_0x92a08b['clearForceDisabled']('TrackChangesCommand');}constructor(_0x3c80a9,_0x477c4e){super(_0x3c80a9),this['_enabledCommands']=_0x477c4e,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x48e398){const _0x2595a7=this['_suggestions']['get'](_0x48e398);if(!_0x2595a7)throw new _0x148f6c('track-changes-accept-suggestion-not-found',this);const _0x186b36=_0x2595a7['getRanges']();this['editor']['model']['canEditAt'](_0x186b36)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2595a7);}constructor(_0x4d34f3,_0x5f5daf){super(_0x4d34f3),this['_suggestions']=_0x5f5daf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2e4437){const _0x405a9f=this['_suggestions']['get'](_0x2e4437);if(!_0x405a9f)throw new _0x148f6c('track-changes-discard-suggestion-not-found',this);const _0x1b1a4c=_0x405a9f['getRanges']();this['editor']['model']['canEditAt'](_0x1b1a4c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x405a9f);}constructor(_0x4125c2,_0x460a9e){super(_0x4125c2),this['_suggestions']=_0x460a9e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x1005bc){return _0x1005bc['sort']((_0x20f669,_0x5d356f)=>'deletion'==_0x20f669['type']&&'deletion'!=_0x5d356f['type']?-0x1:'deletion'!=_0x20f669['type']&&'deletion'==_0x5d356f['type']?0x1:0x0);}function to(_0x427b56,_0x398a35){let _0x3d404c,_0x31b29d=0x0;const _0x21cf53=[],_0xeaf549=_0x398a35['schema'];for(;_0x31b29d<_0x427b56['length'];){const _0x50f349=_0x427b56[_0x31b29d],_0x570211=_0x427b56[_0x31b29d+0x1];_0x3d404c||(_0x3d404c=_0x398a35['createPositionBefore'](_0x50f349)),co(_0x398a35,_0x50f349,_0x570211)||(_0x21cf53['push'](_0x398a35['createRange'](_0x3d404c,_0xeaf549['isObject'](_0x50f349)?_0x398a35['createPositionAfter'](_0x50f349):_0x398a35['createPositionAt'](_0x50f349,'end'))),_0x3d404c=null),_0x31b29d++;}return _0x21cf53;}function co(_0x33f6dd,_0x22130b,_0x847858){if(!_0x847858)return!0x1;const _0xc041cd=_0x33f6dd['createPositionAfter'](_0x22130b),_0xd2784c=_0x33f6dd['createPositionBefore'](_0x847858);return _0xc041cd['isTouching'](_0xd2784c);}function rs(_0x411ba3,_0x18c329,_0x179c20){for(;_0x179c20['length'];){const _0x5d5969=_0x179c20['splice'](0x0,0x64);_0x411ba3['change'](()=>{for(const _0x3e0007 of _0x5d5969)_0x3e0007['isInContent']&&_0x18c329['execute'](_0x3e0007['id']);});}}class x extends ts{['refresh'](){const _0x279a32=Array['from'](this['_suggestions']['values']())['some'](_0x1fd4f5=>_0x1fd4f5['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x279a32;}['execute'](){const _0x3302ec=ss(Array['from'](this['_suggestions']['values']()));for(const _0x38200d of _0x3302ec){const _0x72a6a9=_0x38200d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x72a6a9))return;}rs(this['editor']['model'],this['_command'],_0x3302ec);}constructor(_0x4c1474,_0x5e7565,_0x5e060d){super(_0x4c1474),this['_command']=_0x5e7565,this['_suggestions']=_0x5e060d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x20e52d=this['editor']['model']['document']['selection'],_0x2c8e41=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1ff0fa,_0x15b3ce){const _0x1b3cbf=Array['from'](_0x1ff0fa['getRanges']()),_0x3c1e2a=new Set();for(const _0x2f3327 of _0x15b3ce)if(_0x2f3327['isInContent']){for(const _0x163670 of _0x1b3cbf)for(const _0x1cecd6 of _0x2f3327['getRanges']())(_0x163670['isIntersecting'](_0x1cecd6)||_0x1ff0fa['isCollapsed']&&!_0x2f3327['isMultiRange']&&_0x2f3327['next']&&_0x1cecd6['end']['isTouching'](_0x163670['start']))&&_0x3c1e2a['add'](_0x2f3327);}return _0x3c1e2a;}(_0x20e52d,_0x2c8e41),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x232483=ss(Array['from'](this['_selectedSuggestions']));for(const _0x317d05 of _0x232483){const _0x4b50d=_0x317d05['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b50d))return;}rs(this['editor']['model'],this['_command'],_0x232483);}constructor(_0x15f99c,_0x534ec3,_0x4f1de1){super(_0x15f99c),this['_command']=_0x534ec3,this['_suggestions']=_0x4f1de1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x4f1937(){get['head'](){let _0x567605=this;for(;_0x567605['previous'];)_0x567605=_0x567605['previous'];return _0x567605;}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'](_0x43eff5){this['_markerNames']['add'](_0x43eff5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2e175d=>this['_model']['markers']['get'](_0x2e175d))['filter'](_0x24a580=>_0x24a580);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x48e91a=>{for(const _0x59e866 of this['getMarkers']())_0x48e91a['removeMarker'](_0x59e866);}),this['_markerNames']['clear']();}['removeMarker'](_0x2e9290){this['_model']['change'](_0x14d3e9=>{_0x14d3e9['removeMarker'](_0x2e9290);}),this['_markerNames']['delete'](_0x2e9290);}['addRange'](_0x43e633){const _0x41115f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x41115f),this['_model']['change'](_0x48e72a=>{_0x48e72a['addMarker'](_0x41115f,{'range':_0x43e633,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x29347e){for(const _0xe876cc of this['getRanges']())if(_0xe876cc['isIntersecting'](_0x29347e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3b0680=>_0x3b0680['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xeb46ae,_0x2781aa)=>[..._0xeb46ae,..._0x2781aa['getItems']()],[]);}['getFirstRange'](){var _0xe13a4b;return(null===(_0xe13a4b=this['getFirstMarker']())||void 0x0===_0xe13a4b?void 0x0:_0xe13a4b['getRange']())||null;}['getContainedElement'](){const _0x2847db=this['getRanges']();if(0x1!=_0x2847db['length'])return null;const _0x56eb5f=_0x2847db[0x0],_0x277292=_0x56eb5f['start']['nodeAfter'],_0x2bba56=_0x56eb5f['end']['nodeBefore'];return _0x277292 instanceof _0x199b7a?_0x277292!=_0x2bba56?null:_0x277292: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 _0x29b44f=[];let _0x44fe25=this['head'];for(;_0x44fe25;)_0x29b44f['push'](_0x44fe25),_0x44fe25=_0x44fe25['next'];return _0x29b44f;}['setAttribute'](_0xa2dfa,_0x56a69f){const _0x128b44=_0x3d9419(this['attributes']);_0xb6e950(_0x128b44,_0xa2dfa,_0x56a69f),_0x11601a(_0x128b44,this['attributes'])||(this['attributes']=_0x128b44,this['_onAttributesChange'](_0x128b44));}['removeAttribute'](_0x591c52){const _0x110710=_0x3d9419(this['attributes']);_0x3fb759(_0x110710,_0x591c52),_0x11601a(_0x110710,this['attributes'])||(this['attributes']=_0x110710,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 _0x461740()['substr'](0x1,0x5);}constructor(_0x52321d,_0x6dbf25){super(),this['_isDataLoaded']=!0x1,this['id']=_0x6dbf25['id'],this['type']=_0x6dbf25['type'],this['subType']=_0x6dbf25['subType']||null,this['author']=_0x6dbf25['author'],this['creator']=_0x6dbf25['creator']||_0x6dbf25['author'],this['isExternal']=Boolean(_0x6dbf25['attributes']&&_0x6dbf25['attributes']['@external']),this['data']=null,this['_model']=_0x52321d,this['_onAccept']=_0x6dbf25['onAccept'],this['_onDiscard']=_0x6dbf25['onDiscard'],this['_onAttributesChange']=_0x6dbf25['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x6dbf25['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0xb05b70,_0x393a95,_0x29f75c){const t=_0xb05b70['t'];switch(_0x393a95){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x29f75c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x29f75c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x29f75c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x29f75c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x29f75c);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',_0x29f75c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x29f75c);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x29f75c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x29f75c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x29f75c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x29f75c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x29f75c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x29f75c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x29f75c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x29f75c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x29f75c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x29f75c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x29f75c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x29f75c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x29f75c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x29f75c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x29f75c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x29f75c);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'},_0x29f75c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x29f75c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x29f75c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x29f75c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x29f75c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x29f75c);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'},_0x29f75c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x29f75c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x29f75c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x29f75c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x29f75c);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'},_0x29f75c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x29f75c);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'},_0x29f75c);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'},_0x29f75c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x29f75c);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'},_0x29f75c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x29f75c);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'},_0x29f75c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x29f75c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x29f75c);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x29f75c);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x29f75c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x393a95;}}class f{['getDescriptions'](_0x4fa130){const _0x5d9fee=[],_0x379eb6=new Set(),_0x663476=new Set();for(let _0x1bfceb=0x0;_0x1bfceb<_0x4fa130['length'];_0x1bfceb++){const _0x492c66=_0x4fa130[_0x1bfceb];if(!_0x492c66['isInContent'])continue;const _0x56c1a0=this['_handleCustomCallbackDescription'](_0x492c66);if(_0x56c1a0){if(null!=_0x492c66['subType']){if(_0x379eb6['has'](_0x492c66['subType']))continue;_0x379eb6['add'](_0x492c66['subType']);}_0x5d9fee['push'](_0x56c1a0);}else{if('attribute'!=_0x492c66['type'])'insertion'!=_0x492c66['type']&&'deletion'!=_0x492c66['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5d9fee,_0x492c66,_0x4fa130[_0x1bfceb+0x1]);else{const _0x3cd666=_0x492c66['data']['key'];if(_0x663476['has'](_0x3cd666))continue;_0x663476['add'](_0x492c66['data']['key']),_0x3cd666==m?this['_handleRenameSuggestionDescription'](_0x5d9fee,_0x492c66):this['_handleAttributeSuggestionDescription'](_0x5d9fee,_0x492c66);}}}return this['_resolveDescriptionItems'](_0x5d9fee);}['registerDescriptionCallback'](_0x570b58){this['_customCallbacks']['push'](_0x570b58);}['registerElementLabel'](_0x570b89,_0x274428,_0xe06ccc=_0x43c881['normal']){'function'==typeof _0x570b89?_0x5880de(this['_itemLabelsCallbacks'],{'matchingCallback':_0x570b89,'label':_0x274428,'priority':_0xe06ccc}):this['_itemLabels']['set'](_0x570b89,_0x274428);}['registerAttributeLabel'](_0x2eaaf6,_0x3258d0){this['_attributeLabels']['set'](_0x2eaaf6,_0x3258d0);}['getItemLabel'](_0x3f5018,_0x16e4a8=0x1){let _0x35bb9b;for(const _0x5e16c0 of this['_itemLabelsCallbacks'])if(_0x5e16c0['matchingCallback'](_0x3f5018)){_0x35bb9b=_0x5e16c0['label'];break;}return _0x35bb9b||(_0x35bb9b=this['_itemLabels']['get'](_0x3f5018['name'])),_0x35bb9b?_0x35bb9b(_0x16e4a8):0x1!==_0x16e4a8?_0x16e4a8+'\x20'+_0x3f5018['name']+'s':''+_0x3f5018['name'];}['_addDescriptionItems'](_0x2a1704,_0x1f7a56){const _0x58a796=_0x1f7a56['getFirstRange']()['getWalker'](),_0x3abd39='insertion'==_0x1f7a56['type']?'add':'remove';for(const _0x1d809c of _0x58a796){const _0x1a6949=_0x1d809c['item'],_0x48417b=_0x2a1704[_0x2a1704['length']-0x1];if(_0x1a6949['is']('$textProxy'))_0x48417b&&_0x48417b['type']['indexOf']('Container')>-0x1&&_0x2a1704['pop'](),_0x48417b&&'text'==_0x48417b['type']?_0x48417b[_0x3abd39]+=_0x1a6949['data']:_0x2a1704['push']({'type':'text','add':'add'==_0x3abd39?_0x1a6949['data']:'','remove':'remove'==_0x3abd39?_0x1a6949['data']:''});else{if(this['_schema']['isObject'](_0x1a6949)){const _0x39f21c=_0x1a6949;if(_0x48417b&&_0x48417b['type']['indexOf']('Container')>-0x1&&_0x2a1704['pop'](),'elementEnd'==_0x1d809c['type'])continue;_0x48417b&&_0x48417b['type']==_0x3abd39+'Object'&&_0x48417b['element']['name']==_0x39f21c['name']?_0x48417b['quantity']++:_0x2a1704['push']({'type':_0x3abd39+'Object','element':_0x39f21c,'quantity':0x1}),_0x58a796['skip'](_0x2f24a0=>!('elementEnd'==_0x2f24a0['type']&&_0x2f24a0['item']==_0x1a6949));}else{if(this['_schema']['checkChild'](_0x1a6949,'$text')||_0x1a6949['is']('element','softBreak')){const _0x590414=_0x1a6949;if('add'==_0x3abd39&&'elementStart'==_0x1d809c['type']||'remove'==_0x3abd39&&'elementEnd'==_0x1d809c['type'])continue;if(_0x48417b&&-0x1==_0x48417b['type']['indexOf']('Container')){'text'==_0x48417b['type']&&(_0x48417b[_0x3abd39]+='\x0a');continue;}let _0x586456;if(_0x586456='add'==_0x3abd39?_0x590414['nextSibling']&&!this['_schema']['isObject'](_0x590414['nextSibling'])?_0x590414['nextSibling']:null:_0x590414['previousSibling']&&!this['_schema']['isObject'](_0x590414['previousSibling'])?_0x590414['previousSibling']:null,_0x590414['isEmpty']||_0x586456&&_0x586456['isEmpty']){const _0x59e6da=_0x586456&&_0x586456['isEmpty']?_0x586456:_0x590414;_0x48417b&&_0x48417b['type']==_0x3abd39+'EmptyContainer'&&_0x48417b['element']['name']==_0x59e6da['name']?_0x48417b['quantity']++:_0x2a1704['push']({'type':_0x3abd39+'EmptyContainer','element':_0x59e6da,'quantity':0x1});}else _0x2a1704['push']({'type':_0x3abd39+'Container','element':_0x590414});}}}}}['_resolveDescriptionItems'](_0x5b8c34){const _0x54d98f=this['_locale'],_0x4c5133=[],_0x1dfc36=[],_0x489b0a=[];for(const _0x82be36 of _0x5b8c34)switch(_0x82be36['type']){case'text':if(_0x82be36['add']=_0x82be36['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x82be36['remove']=_0x82be36['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x82be36['add']&&''!=_0x82be36['remove']){_0x4c5133['push']({'type':'replace','content':o(_0x54d98f,'REPLACE_TEXT',['\x22'+_0x82be36['remove']+'\x22','\x22'+_0x82be36['add']+'\x22'])});continue;}if(null!=_0x82be36['add']['match'](/^ +$/)){_0x4c5133['push']({'type':'insertion','content':o(_0x54d98f,'*Insert:*\x20%0',o(_0x54d98f,'ELEMENT_SPACE',_0x82be36['add']['length']))});continue;}if(null!=_0x82be36['remove']['match'](/^ +$/)){_0x4c5133['push']({'type':'deletion','content':o(_0x54d98f,'*Remove:*\x20%0',o(_0x54d98f,'ELEMENT_SPACE',_0x82be36['remove']['length']))});continue;}if(''!=_0x82be36['add']){_0x4c5133['push']({'type':'insertion','content':o(_0x54d98f,'*Insert:*\x20%0','\x22'+_0x82be36['add']+'\x22')});continue;}_0x4c5133['push']({'type':'deletion','content':o(_0x54d98f,'*Remove:*\x20%0','\x22'+_0x82be36['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4c5133['push']({'type':'insertion','content':o(_0x54d98f,'*Insert:*\x20%0',this['getItemLabel'](_0x82be36['element'],_0x82be36['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4c5133['push']({'type':'deletion','content':o(_0x54d98f,'*Remove:*\x20%0',this['getItemLabel'](_0x82be36['element'],_0x82be36['quantity']))});continue;case'addContainer':_0x4c5133['push']({'type':'insertion','content':o(_0x54d98f,'*Split:*\x20%0',this['getItemLabel'](_0x82be36['element'],_0x82be36['quantity']))});continue;case'removeContainer':_0x4c5133['push']({'type':'deletion','content':o(_0x54d98f,'*Merge:*\x20%0',this['getItemLabel'](_0x82be36['element'],_0x82be36['quantity']))});continue;case'addFormat':_0x1dfc36['push'](_0x82be36['key']);continue;case'removeFormat':_0x489b0a['push'](_0x82be36['key']);continue;default:_0x4c5133['push'](_0x82be36);}if(_0x1dfc36['length']){const _0x1ce259=_0x1dfc36['map'](_0x4cd168=>this['_attributeLabels']['has'](_0x4cd168)?this['_attributeLabels']['get'](_0x4cd168):_0x4cd168)['join'](',\x20');_0x4c5133['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1ce259)});}if(_0x489b0a['length']){const _0x1a5844=_0x489b0a['map'](_0x2638af=>this['_attributeLabels']['has'](_0x2638af)?this['_attributeLabels']['get'](_0x2638af):_0x2638af)['join'](',\x20');_0x4c5133['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1a5844)});}return _0x4c5133;}['_handleCustomCallbackDescription'](_0x1cc5fe){for(const _0x484e9c of this['_customCallbacks']){const _0x5a347f=_0x484e9c(_0x1cc5fe);if(_0x5a347f&&'type'in _0x5a347f)return _0x5a347f;}}['_handleAttributeSuggestionDescription'](_0x2c5c07,_0x18e00e){const _0xf0e7b5=_0x18e00e['data'],_0x49fc8d=void 0x0===_0xf0e7b5['newValue']?'removeFormat':'addFormat';_0x2c5c07['push']({'type':_0x49fc8d,'key':_0xf0e7b5['key']});}['_handleRenameSuggestionDescription'](_0x35e27f,_0x304b84){_0x35e27f['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x304b84['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x12f761,_0x481505,_0x30abd9){if(this['_addDescriptionItems'](_0x12f761,_0x481505),_0x30abd9&&_0x30abd9['getFirstRange']()&&!_0x481505['getFirstRange']()['end']['isEqual'](_0x30abd9['getFirstRange']()['start'])){const _0x47204e=_0x12f761[_0x12f761['length']-0x1],_0x40bb3a='insertion'==_0x481505['type']?'add':'remove';_0x47204e&&'text'==_0x47204e['type']&&(_0x47204e[_0x40bb3a]+='\x0a');}}constructor(_0x560be7,_0x307913){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x560be7,this['_locale']=_0x307913;}}class E extends _0x43660f{['afterInit'](){const _0x52fe09=this['editor'],_0x52726d=_0x52fe09['plugins']['get']('TrackChangesEditing');_0x52fe09['commands']['get']('showAIAssistant')&&_0x52726d['enableCommand']('showAIAssistant');}}class V extends _0x43660f{['afterInit'](){const _0x4b1082=this['editor'],_0x229ae6=_0x4b1082['locale'];if(!_0x4b1082['plugins']['has']('AlignmentEditing'))return;const _0x45bd36=_0x4b1082['plugins']['get']('TrackChangesEditing');_0x45bd36['_enableDefaultAttributesIntegration']('alignment',[],['alignment']),_0x45bd36['_descriptionFactory']['registerAttributeLabel']('alignment',o(_0x229ae6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x319d03=this['editor'],_0x29bebc=_0x319d03['locale'];_0x319d03['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x303de8=>{if('formatBlock'!=_0x303de8['type'])return;const {data:_0x268b80}=_0x303de8;if(_0x268b80&&'alignment'==_0x268b80['commandName']){const _0x5b13cf=_0x268b80['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x29bebc,'*Format:*\x20%0',function(_0x1abdbb){switch(_0x1abdbb){case'left':return o(_0x29bebc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x29bebc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x29bebc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x29bebc,'FORMAT_JUSTIFY_TEXT');}}(_0x5b13cf))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x43660f{['afterInit'](){const _0x4417a8=this['editor'],_0x266b99=_0x4417a8['plugins']['get']('TrackChangesEditing'),_0x3fe293=_0x4417a8['locale'];for(const _0x57934a of ti){if(!_0x4417a8['plugins']['has'](_0x57934a))continue;const _0x22d554=_0x57934a['slice'](0x0,-0x7)['toLowerCase'](),_0x29ab8c='FORMAT_'+_0x22d554['toUpperCase']();_0x266b99['_enableDefaultAttributesIntegration'](_0x22d554,[_0x22d554]),_0x266b99['_descriptionFactory']['registerAttributeLabel'](_0x22d554,o(_0x3fe293,_0x29ab8c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d1ca1=this['editor'],_0x58cc4f=_0x5d1ca1['locale'],_0x5c2086=_0x5d1ca1['plugins']['get']('TrackChangesEditing');function _0x1d713c(_0x3f4156,_0x7cc3d3){_0x5c2086['_descriptionFactory']['registerDescriptionCallback'](_0x341bef=>{if('formatInline'!=_0x341bef['type'])return;const {data:_0x48f45e}=_0x341bef;return _0x48f45e&&_0x48f45e['commandName']===_0x3f4156?_0x48f45e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58cc4f,'*Format:*\x20%0',_0x7cc3d3)}:{'type':'format','content':o(_0x58cc4f,'*Remove\x20format:*\x20%0',_0x7cc3d3)}:void 0x0;});}_0x1d713c('bold',o(_0x58cc4f,'FORMAT_BOLD')),_0x1d713c('italic',o(_0x58cc4f,'FORMAT_ITALIC')),_0x1d713c('underline',o(_0x58cc4f,'FORMAT_UNDERLINE')),_0x1d713c('code',o(_0x58cc4f,'FORMAT_CODE')),_0x1d713c('strikethrough',o(_0x58cc4f,'FORMAT_STRIKETHROUGH')),_0x1d713c('subscript',o(_0x58cc4f,'FORMAT_SUBSCRIPT')),_0x1d713c('superscript',o(_0x58cc4f,'FORMAT_SUPERSCRIPT'));}}class O extends _0x43660f{['afterInit'](){const _0x51e7f5=this['editor'],_0x18d8c7=_0x51e7f5['locale'];if(!_0x51e7f5['plugins']['has']('BlockQuoteEditing'))return;const _0x4f5a7c=_0x51e7f5['plugins']['get']('TrackChangesEditing'),_0x385600=this['editor']['commands']['get']('blockQuote');_0x4f5a7c['enableCommand']('blockQuote',(_0x424cef,_0x50b96c={})=>{const _0x122378=this['editor']['model']['document']['selection'],_0x3148a1=_0x50b96c&&void 0x0!==_0x50b96c['forceValue']?_0x50b96c['forceValue']:!_0x385600['value'];let _0x44f077=[];if(_0x3148a1){const _0x1380bf=Array['from'](_0x122378['getSelectedBlocks']())['filter'](_0x2e70b2=>oo(_0x2e70b2)||function(_0x2e92ca,_0x2f8446){const _0x46240d=_0x2f8446['checkChild'](_0x2e92ca['parent'],'blockQuote'),_0x49ad7c=_0x2f8446['checkChild'](['$root','blockQuote'],_0x2e92ca);return _0x46240d&&_0x49ad7c;}(_0x2e70b2,this['editor']['model']['schema']));_0x44f077=to(_0x1380bf,_0x51e7f5['model']);}else{const _0x5e2429=Array['from'](_0x122378['getSelectedBlocks']())['filter'](_0x1e0245=>oo(_0x1e0245));_0x44f077=to(_0x5e2429,_0x51e7f5['model']);}_0x51e7f5['model']['change'](()=>{for(const _0x81eb52 of _0x44f077)_0x4f5a7c['markBlockFormat'](_0x81eb52,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3148a1}]});});}),_0x4f5a7c['_descriptionFactory']['registerDescriptionCallback'](_0x4a06f7=>{const {data:_0x3579cd}=_0x4a06f7;if(_0x3579cd&&'blockQuote'==_0x3579cd['commandName']){const _0x866ff4=o(_0x18d8c7,'ELEMENT_BLOCK_QUOTE');return _0x3579cd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18d8c7,'*Set\x20format:*\x20%0',_0x866ff4)}:{'type':'format','content':o(_0x18d8c7,'*Remove\x20format:*\x20%0',_0x866ff4)};}});}}function oo(_0x202c1d){return'blockQuote'==_0x202c1d['parent']['name'];}class G extends _0x43660f{['afterInit'](){const _0x4e18ad=this['editor'];_0x4e18ad['plugins']['has']('CaseChange')&&(_0x4e18ad['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4e18ad['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4e18ad['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x43660f{['afterInit'](){const _0x5e001a=this['editor'];_0x5e001a['commands']['get']('ckbox')&&_0x5e001a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x43660f{['afterInit'](){const _0x11c870=this['editor'];if(!_0x11c870['plugins']['has']('CodeBlock'))return;const _0x21074a=_0x11c870['plugins']['get']('TrackChangesEditing'),_0x481acc=_0x11c870['locale'],_0x48aa6d=_0x11c870['config']['get']('codeBlock')['languages'],_0x40e784=_0x11c870['commands']['get']('codeBlock');_0x21074a['enableCommand']('indentCodeBlock'),_0x21074a['enableCommand']('outdentCodeBlock'),_0x21074a['enableCommand']('codeBlock',(_0x5d1ec1,_0x21c945={})=>{const _0x280845=_0x11c870['model'],_0x5656e2=_0x11c870['model']['document']['selection'],_0x2c0c63=_0x21c945&&void 0x0!==_0x21c945['forceValue']?_0x21c945['forceValue']:!_0x40e784['value'];let _0x20b191;_0x21c945['language']||(_0x21c945['language']=_0x48aa6d[0x0]['language']),_0x20b191=_0x2c0c63?Array['from'](_0x5656e2['getSelectedBlocks']())['filter'](_0x2b0c3e=>eo(_0x2b0c3e)||function(_0x24ded0,_0x1af139){if(_0x24ded0['is']('rootElement')||_0x1af139['isLimit'](_0x24ded0))return!0x1;return _0x1af139['checkChild'](_0x24ded0['parent'],'codeBlock');}(_0x2b0c3e,_0x280845['schema'])):Array['from'](_0x5656e2['getSelectedBlocks']())['filter'](_0x16dde8=>eo(_0x16dde8));const _0x20753d=to(_0x20b191,_0x280845);_0x280845['change'](()=>{for(const _0x1ea860 of _0x20753d)_0x21074a['markBlockFormat'](_0x1ea860,{'commandName':'codeBlock','commandParams':[{..._0x21c945,'forceValue':_0x2c0c63}],'formatGroupId':'blockName'});});}),(_0x21074a['_descriptionFactory']['registerElementLabel']('codeBlock',_0x368a1d=>o(_0x481acc,'ELEMENT_CODE_BLOCK',_0x368a1d)),_0x21074a['_descriptionFactory']['registerDescriptionCallback'](_0x56ed49=>{if('formatBlock'!=_0x56ed49['type'])return;const _0x1bdb7d=_0x481acc['t'],{data:_0x4621ed}=_0x56ed49;if(!_0x4621ed||'codeBlock'!=_0x4621ed['commandName'])return;const _0x7521e9=_0x4621ed['commandParams'][0x0]['language'],_0x7164e0=_0x1bdb7d(_0x48aa6d['find'](_0x381eba=>_0x381eba['language']===_0x7521e9)['label'])['toLowerCase']();return _0x4621ed['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x481acc,'*Set\x20format:*\x20%0',o(_0x481acc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x7164e0+')')}:{'type':'format','content':o(_0x481acc,'*Remove\x20format:*\x20%0',o(_0x481acc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3a5afe){return'codeBlock'==_0x3a5afe['name'];}class H extends _0x43660f{['afterInit'](){const _0x1586ab=this['editor'];if(!_0x1586ab['plugins']['has']('CommentsEditing'))return;_0x1586ab['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2ebb38,_0x44a3b4,_0x31f624){const _0x1fa01b=[];for(const _0x522004 of _0x44a3b4['getItems']())_0x522004['hasAttribute'](_0x2ebb38)&&_0x1fa01b['push'](_0x31f624['createRangeOn'](_0x522004));return _0x1fa01b;}function _e(_0x59267a,_0x3b3a9d,{showActiveMarker:_0x518455=!0x0}={}){const _0x5140ae=_0x59267a['plugins']['get']('TrackChangesEditing');return(_0x2436b3,_0xb034d1,_0x322526)=>{if(!_0x322526['consumable']['test'](_0xb034d1['markerRange'],_0x2436b3['name']))return;const _0x48080f=_0xb034d1['markerRange']['getWalker'](),_0x384cc3=_0xb034d1['markerRange']['start'],_0x1ec93e=_0x59267a['model']['schema'];let _0xfc811c=null,_0x20482c=null,_0x38520b=!0x1,_0x346063=!0x1;for(const _0x55f073 of _0x48080f){const _0x25a84e=_0x55f073['item'];_0x38520b=_0x38520b||_0x1ec93e['isContent'](_0x25a84e);const _0x5c84a6=_0x322526['mapper']['toViewElement'](_0x25a84e);if(_0x5c84a6&&_0x5c84a6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x55f073['type']&&(_0x1ec93e['isBlock'](_0x25a84e)&&!_0x1ec93e['isLimit'](_0x25a84e)&&(_0x25a84e['nextSibling']||_0x384cc3['isAtEnd']?_0xfc811c&&_0xfc811c['parent']==_0x25a84e||(_0xfc811c=_0x25a84e,_0x1f44f8(_0x55f073['previousPosition']),_0x346063=!0x0):_0x20482c=_0x20482c||_0x55f073['previousPosition']));}function _0x1f44f8(_0x3e2499){const _0x581dc9=_0x322526['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b3a9d}),_0x31ec75=_0x322526['mapper']['toViewPosition'](_0x3e2499);_0x518455&&_0x5140ae['activeMarkers']['includes'](_0xb034d1['markerName'])&&_0x322526['writer']['addClass']('ck-suggestion-marker--active',_0x581dc9),_0x322526['writer']['insert'](_0x31ec75,_0x581dc9),_0x322526['mapper']['bindElementToMarker'](_0x581dc9,_0xb034d1['markerName']);}_0x38520b||_0x346063||!_0x20482c||_0x1f44f8(_0x20482c);};}class q extends _0x43660f{static get['requires'](){return[_0x5e5ec8];}['init'](){const _0x2a1c6c=this['editor'],_0x3a4663=_0x2a1c6c['plugins']['get']('TrackChangesEditing');_0x3a4663['enableCommand']('delete');const _0x30fc0d=_0x2a1c6c['commands']['get']('deleteForward');_0x3a4663['enableCommand']('deleteForward',(_0x27e846,_0x4467f3={})=>{const _0x2169f0=_0x2a1c6c['model']['createSelection'](_0x2a1c6c['model']['document']['selection']);_0x2169f0['isCollapsed']&&_0x2a1c6c['model']['modifySelection'](_0x2169f0,{'direction':'forward','unit':_0x4467f3['unit']});const _0x4b94bd=_0x2169f0['getFirstRange'](),_0xfdbc8d=_0x30a6a3['fromRange'](_0x4b94bd);let _0x32b681;_0x27e846(_0x4467f3),_0x32b681='$graveyard'==_0xfdbc8d['root']['rootName']?_0x2a1c6c['model']['createRange'](_0x4b94bd['start']):_0x2a1c6c['model']['createRange'](_0xfdbc8d['start'],_0xfdbc8d['end']),_0xfdbc8d['detach'](),_0x2a1c6c['model']['enqueueChange'](_0x30fc0d['buffer']['batch'],_0x1fcee2=>{_0x30fc0d['buffer']['lock'](),_0x1fcee2['setSelection'](_0x1fcee2['createRange'](_0x32b681['end'])),_0x30fc0d['buffer']['unlock']();});}),_0x2a1c6c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2a1c6c,'merge'),{'priority':'high'}),_0x2a1c6c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x14c453,_0x22f6a6,_0x1867f6)=>{_0x1867f6['options']['showSuggestionHighlights']&&_e(_0x2a1c6c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x14c453,_0x22f6a6,_0x1867f6);},{'priority':'high'}),_0x2a1c6c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x58e5a2,_0x5c858b,_0x469158)=>{const _0x3ce7e0=_0x469158['mapper']['markerNameToElements'](_0x5c858b['markerName']);if(_0x3ce7e0){for(const _0x21556a of _0x3ce7e0)_0x21556a['is']('uiElement')&&(_0x469158['mapper']['unbindElementFromMarkerName'](_0x21556a,_0x5c858b['markerName']),_0x469158['writer']['remove'](_0x21556a));}},{'priority':'high'});}}class z extends _0x43660f{['afterInit'](){const _0x86e72e=this['editor'];if(!_0x86e72e['plugins']['has']('ListEditing'))return;const _0x3048fc=_0x86e72e['locale'],_0x5a4770=_0x86e72e['plugins']['get']('TrackChangesEditing'),_0x350211=_0x86e72e['plugins']['has']('TodoListEditing'),_0x17c251=!!_0x86e72e['config']['get']('list.multiBlock');function _0x55ef03(_0x3bbfc2){return{'type':'format','content':''+o(_0x3048fc,'*Set\x20format:*\x20%0',_0x3bbfc2)};}function _0x2307c1(_0x57cb4a){return{'type':'format','content':''+o(_0x3048fc,'*Remove\x20format:*\x20%0',_0x57cb4a)};}_0x5a4770['_enableDefaultAttributesIntegration']('numberedList',[],['listItemId','listType','listIndent']),_0x5a4770['_enableDefaultAttributesIntegration']('bulletedList'),_0x5a4770['_enableDefaultAttributesIntegration']('customNumberedList'),_0x5a4770['_enableDefaultAttributesIntegration']('customBulletedList'),_0x5a4770['_enableDefaultAttributesIntegration']('indentList'),_0x5a4770['_enableDefaultAttributesIntegration']('outdentList'),_0x5a4770['_enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5a4770['_enableDefaultAttributesIntegration']('splitListItemBefore'),_0x17c251&&(_0x5a4770['_enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5a4770['_enableDefaultAttributesIntegration']('mergeListItemForward')),_0x350211&&(_0x5a4770['_enableDefaultAttributesIntegration']('todoList'),_0x5a4770['_enableDefaultAttributesIntegration']('checkTodoList',[],['todoListChecked']),_0x5a4770['_descriptionFactory']['registerDescriptionCallback'](_0x4f0e5a=>{const {data:_0x3b5058}=_0x4f0e5a;if(_0x3b5058&&'todoListChecked'==_0x3b5058['key'])return{'type':'format','content':_0x3b5058['newValue']?o(_0x3048fc,'*Check\x20item*'):o(_0x3048fc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3feb28=>{if(_0x3feb28['batch']['isUndo'])return!0x1;let _0x565829=!0x1;const _0x37b32d=_0x5a4770['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd82a7a=>'todoListChecked'===_0x5a4770['_getAttributeKey'](_0xd82a7a));for(const _0x41259c of _0x37b32d){'todo'!=_0x41259c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5a4770['_findSuggestions'](_0x41259c['getFirstRange'](),'attribute')['find'](_0x10b4cd=>'listType'===_0x5a4770['_getAttributeKey'](_0x10b4cd['suggestion']))||(_0x3feb28['removeMarker'](_0x41259c['getFirstMarker']()),_0x565829=!0x0));}return _0x565829;})),_0x5a4770['_descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3048fc,'FORMAT_INDENT'));const _0x3f2b5c={'type':'format','content':''};_0x5a4770['_descriptionFactory']['registerDescriptionCallback'](_0x4478ea=>{const {data:_0x2a70cf}=_0x4478ea;if(!_0x2a70cf||'listType'!=_0x2a70cf['key'])return;let _0x41670c=_0x4478ea['head'];for(;_0x41670c;){if(_0x41670c['data']&&(('listStyle'==_0x41670c['data']['key']||'listMarkerStyle'==_0x41670c['data']['key'])&&(_0x41670c['data']['newValue']&&'default'!=_0x41670c['data']['newValue']||'default'!=_0x41670c['data']['oldValue']&&!_0x2a70cf['newValue'])||!_0x17c251&&_0x41670c['data']['key']==m))return _0x3f2b5c;_0x41670c=_0x41670c['next'];}if(null==_0x2a70cf['newValue'])switch(_0x2a70cf['oldValue']){case'bulleted':return _0x2307c1(o(_0x3048fc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2307c1(o(_0x3048fc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2307c1(o(_0x3048fc,'ELEMENT_TODO_LIST'));}switch(_0x2a70cf['newValue']){case'bulleted':return _0x55ef03(o(_0x3048fc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55ef03(o(_0x3048fc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55ef03(o(_0x3048fc,'ELEMENT_TODO_LIST'));}}),_0x5a4770['_descriptionFactory']['registerDescriptionCallback'](_0x1ac330=>{const {data:_0x41dae9}=_0x1ac330;if(_0x41dae9&&'listIndent'==_0x41dae9['key'])return null==_0x41dae9['newValue']||null==_0x41dae9['oldValue']&&0x0==_0x41dae9['newValue']?_0x3f2b5c:void 0x0;}),_0x5a4770['_descriptionFactory']['registerDescriptionCallback'](_0x3b86f1=>{if('attribute'!=_0x3b86f1['type'])return;const {data:_0x4f87b8}=_0x3b86f1;if(!_0x4f87b8||'listItemId'!=_0x4f87b8['key'])return;const _0x1490aa=le(_0x3b86f1);return _0x1490aa?'newValue'==_0x1490aa?{'type':'format','content':o(_0x3048fc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1490aa?{'type':'format','content':o(_0x3048fc,'*Split:*\x20list\x20item')}:_0x3f2b5c:_0x3f2b5c;}),_0x86e72e['model']['document']['registerPostFixer'](_0x196eba=>this['listItemIdFixer'](_0x196eba)),_0x86e72e['model']['document']['registerPostFixer'](_0x1defd9=>this['noTrackChangesFixer'](_0x1defd9)),_0x86e72e['model']['document']['registerPostFixer'](_0x165000=>this['assureChains'](_0x165000)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4cf501){if(_0x4cf501['batch']['isUndo']||!_0x4cf501['batch']['isLocal'])return!0x1;let _0xd8badb=!0x1;const _0x2bd1b9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5eb2d1=>_0x5eb2d1['data']&&'listItemId'==_0x5eb2d1['data']['key'])['filter'](_0x7040a2=>_0x7040a2['data']['newValue']&&_0x7040a2['data']['oldValue']);for(const _0xd9157b of _0x2bd1b9)le(_0xd9157b)||(_0x4cf501['removeMarker'](_0xd9157b['getFirstMarker']()),_0xd8badb=!0x0);return _0xd8badb;}['noTrackChangesFixer'](_0x179901){if(_0x179901['batch']['isUndo']||!_0x179901['batch']['isLocal'])return!0x1;const _0x24fc47=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x24fc47['trackChangesCommand']['value'])return!0x1;let _0x4f3243=!0x1;const _0x3065e0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2ad245=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x26f9cc=>'attribute'==_0x26f9cc['type'])['filter'](_0x2ba7e9=>_0x3065e0['includes'](_0x2ba7e9['attributeKey']));if(0x0==_0x2ad245['length'])return _0x4f3243;for(const _0x5c112b of _0x2ad245){const _0x5f0ef3=_0x24fc47['_findSuggestions'](_0x5c112b['range'],'attribute')['filter'](_0x44c4b9=>!_0x44c4b9['meta']['isNextTo'])['map'](_0x56714e=>_0x56714e['suggestion'])['filter'](_0x2bde23=>{const _0x34ae9a=_0x24fc47['_getAttributeKey'](_0x2bde23);return _0x3065e0['includes'](_0x34ae9a);});if(_0x5f0ef3['length']){for(const _0x2aeed9 of _0x5f0ef3)_0x179901['removeMarker'](_0x2aeed9['getFirstMarker']());_0x4f3243=!0x0;}}return _0x4f3243;}['assureChains'](_0x4be3fa){if(_0x4be3fa['batch']['isUndo']||!_0x4be3fa['batch']['isLocal'])return!0x1;const _0x518206=this['editor']['plugins']['get']('TrackChangesEditing');let _0x292ba4=!0x1;const _0xc95e15=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0xf154d9 of _0x518206['getSuggestions']({'skipNotAttached':!0x0})){const _0x450a2c=_0x518206['_findSuggestions'](_0xf154d9['getFirstRange'](),'attribute')['map'](_0x28eab0=>_0x28eab0['suggestion'])['filter'](_0x2f5f7f=>_0x2f5f7f['data']&&_0xc95e15['includes'](_0x2f5f7f['data']['key']));if(!_0x450a2c['length'])continue;const _0x381cb4=_0x450a2c[0x0]['head']['attributes']['groupId'];if(!_0x450a2c['every'](_0x3b139c=>_0x3b139c['attributes']['groupId']===_0x381cb4)){for(const _0x5a23dc of _0x450a2c)_0xca2e88(_0x5a23dc,_0x381cb4)&&(_0x292ba4=!0x0);}}return _0x292ba4;function _0x1e8fd9(_0x16f23e,_0x4b145a){for(const _0x461eb8 of _0x518206['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1282c0=>'attribute'==_0x1282c0['type']&&_0x1282c0['attributes']['groupId']==_0x16f23e))_0x461eb8['setAttribute']('groupId',_0x4b145a);}function _0xca2e88(_0x4432ef,_0x4ae4e5){let _0x59fe76=_0x4432ef['head'],_0x2684f1=!0x1;for(;_0x59fe76;)_0x59fe76['attributes']['groupId']!=_0x4ae4e5&&(_0x1e8fd9(_0x59fe76['attributes']['groupId'],_0x4ae4e5),_0x59fe76['setAttribute']('groupId',_0x4ae4e5),_0x2684f1=!0x0),_0x59fe76=_0x59fe76['next'];return _0x2684f1;}}['_supportLegacySuggestions'](){const _0x447be6=this['editor'],_0x2d30bf=_0x447be6['locale'],_0x1193ae=_0x447be6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1193ae['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3a267d,_0x378e4f){const _0x49cb58=[];for(let _0xb5ee7f of _0x3a267d)_0xb5ee7f['start']['nodeAfter']===_0xb5ee7f['end']['parent']&&(_0xb5ee7f=_0x447be6['model']['createRange'](_0x447be6['model']['createPositionAt'](_0xb5ee7f['start']['nodeAfter'],0x0))),_0x49cb58['push'](_0xb5ee7f);_0x447be6['model']['change'](_0x393461=>{const _0x2800bc=_0x447be6['model']['document']['selection'],_0x2861fd=Array['from'](_0x2800bc['getRanges']())['map'](_0x3bbfcb=>_0x30a6a3['fromRange'](_0x3bbfcb));_0x393461['setSelection'](_0x49cb58),_0x447be6['commands']['get'](_0x378e4f['commandName'])['refresh'](),_0x378e4f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x447be6['execute'](_0x378e4f['commandName'],..._0x378e4f['commandParams']),_0x393461['setSelection'](_0x2861fd);for(const _0x51b538 of _0x2861fd)_0x51b538['detach']();});}),_0x1193ae['_descriptionFactory']['registerElementLabel'](function(_0x355dbb){const _0x14e230=!_0x447be6['model']['schema']['isObject'](_0x355dbb),_0x587e2f=_0x355dbb['previousSibling'],_0x42ab93=_0x355dbb['nextSibling'],_0x1dc30c=_0x355dbb['getAttribute']('listItemId'),_0x4df3a5=!_0x587e2f||_0x587e2f['getAttribute']('listItemId')!==_0x1dc30c,_0x2a20d7=!_0x42ab93||_0x42ab93['getAttribute']('listItemId')!==_0x1dc30c;return _0x14e230&&Boolean(_0x1dc30c)&&_0x4df3a5&&_0x2a20d7;},_0x4dc71a=>o(_0x2d30bf,'ELEMENT_LIST_ITEM',_0x4dc71a));}['_registerLegacyDescription'](){const _0x2f5687=this['editor'],_0x3d3670=_0x2f5687['locale'];function _0x401c21(_0x4a45d4){const _0x5adda7=_0x2f5687['commands']['get']('bulletedList')['value'],_0x422779=_0x2f5687['commands']['get']('numberedList')['value'];return'numberedList'===_0x4a45d4?_0x5adda7:_0x422779;}_0x2f5687['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](function(_0xe9a220){if('formatBlock'!=_0xe9a220['type'])return;const {data:_0x13ab3c}=_0xe9a220;if(!_0x13ab3c)return;let _0x3426f6,_0x12dfb4,_0x1e7c9c,_0x4988f3;switch(_0x13ab3c['commandName']){case'bulletedList':_0x1e7c9c=_0x13ab3c['commandParams'][0x0]['forceValue'],_0x4988f3=_0x401c21(_0x13ab3c['commandName']),_0x3426f6=_0x1e7c9c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4988f3&&_0x2f5687['config']['get']('list.multiBlock')||(_0x3426f6='*Change\x20to:*\x20%0'),_0x12dfb4={'type':'format','content':o(_0x3d3670,_0x3426f6,o(_0x3d3670,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1e7c9c=_0x13ab3c['commandParams'][0x0]['forceValue'],_0x4988f3=_0x401c21(_0x13ab3c['commandName']),_0x3426f6=_0x1e7c9c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4988f3&&_0x2f5687['config']['get']('list.multiBlock')||(_0x3426f6='*Change\x20to:*\x20%0'),_0x12dfb4={'type':'format','content':o(_0x3d3670,_0x3426f6,o(_0x3d3670,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3426f6='*Indent:*\x20%0',_0x12dfb4={'type':'format','content':o(_0x3d3670,_0x3426f6,o(_0x3d3670,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3426f6=function(_0x4baf37){const _0x58368e=_0x4baf37['getFirstRange']();let _0x7e87f4=_0x58368e['start']['nodeAfter'];for(;_0x7e87f4&&_0x58368e['containsItem'](_0x7e87f4);){if(_0x7e87f4['getAttribute']('listIndent')>0x0)return!0x1;_0x7e87f4=_0x7e87f4['nextSibling'];}return!0x0;}(_0xe9a220)?o(_0x3d3670,'*Format:*\x20remove\x20from\x20%0',o(_0x3d3670,function(_0x5ab574){return'ELEMENT_'+_0x5ab574['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xe9a220))):o(_0x3d3670,'*Outdent:*\x20%0',o(_0x3d3670,'ELEMENT_LIST_ITEM')),_0x12dfb4={'type':'format','content':_0x3426f6};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x13ab3c['multipleBlocks']&&(_0x3426f6='*Merge:*\x20%0',_0x12dfb4={'type':'deletion','content':o(_0x3d3670,_0x3426f6,o(_0x3d3670,'ELEMENT_LIST_ITEM'))});}return _0x12dfb4;});}}function le(_0x59593c){let _0x2abac9=_0x59593c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2abac9;){const _0x5de2b1=_0x2abac9['getAttribute']('listItemId');if(!_0x5de2b1)return!0x1;if(_0x5de2b1==_0x59593c['data']['newValue'])return'newValue';if(_0x5de2b1==_0x59593c['data']['oldValue'])return'oldValue';_0x2abac9=_0x2abac9['previousSibling'];}return!0x1;}class ue extends _0x43660f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x21faa1=this['editor']['config']['get']('list.properties'),_0x58861b=this['editor']['plugins']['get']('TrackChangesEditing');_0x21faa1['styles']&&_0x58861b['_enableDefaultAttributesIntegration']('listStyle',[],['listStyle']),_0x21faa1['reversed']&&_0x58861b['_enableDefaultAttributesIntegration']('listReversed',[],['listReversed']),_0x21faa1['startIndex']&&_0x58861b['_enableDefaultAttributesIntegration']('listStart',[],['listStart']);const _0x46bb1a={'type':'format','content':''};_0x58861b['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x250aa1=this['editor']['locale'];_0x58861b['_descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x250aa1,'FORMAT_LIST_REVERSED')),_0x58861b['_descriptionFactory']['registerDescriptionCallback'](_0x12829c=>{const {data:_0x1e56e0}=_0x12829c;if(_0x1e56e0&&'listReversed'==_0x1e56e0['key'])return null==_0x1e56e0['newValue']||0x0==_0x1e56e0['newValue']&&null==_0x1e56e0['oldValue']?_0x46bb1a:void 0x0;}),_0x58861b['_descriptionFactory']['registerAttributeLabel']('listStart',o(_0x250aa1,'FORMAT_LIST_START')),_0x58861b['_descriptionFactory']['registerDescriptionCallback'](_0x49191f=>{const {data:_0x21b82e}=_0x49191f;if(_0x21b82e&&'listStart'==_0x21b82e['key'])return null==_0x21b82e['newValue']||0x1==_0x21b82e['newValue']&&null==_0x21b82e['oldValue']?_0x46bb1a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x8c729e=>{if(_0x8c729e['batch']['isUndo'])return!0x1;let _0x135cf0=!0x1;const _0x25dd8a=_0x58861b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47fc83=>{const _0x32a276=_0x58861b['_getAttributeKey'](_0x47fc83);return'listStart'==_0x32a276||'listReversed'==_0x32a276;});for(const _0x3466b1 of _0x25dd8a){const _0x20634c=_0x3466b1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x20634c||'customNumbered'==_0x20634c)continue;_0x58861b['_findSuggestions'](_0x3466b1['getFirstRange'](),'attribute')['find'](_0xfd0fae=>'listType'==_0x58861b['_getAttributeKey'](_0xfd0fae['suggestion']))||(_0x8c729e['removeMarker'](_0x3466b1['getFirstMarker']()),_0x135cf0=!0x0);}return _0x135cf0;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x549800){const _0x1b8f37=this['editor']['locale'],{data:_0x5d919e}=_0x549800,_0x5641b6={'type':'format','content':''};if(!_0x5d919e||'listStyle'!=_0x5d919e['key'])return;if(!_0x5d919e['oldValue'])return'default'==_0x5d919e['newValue']?_0x5641b6:{'type':'format','content':''+o(_0x1b8f37,'*Set\x20format:*\x20%0',o(_0x1b8f37,this['_getTranslationKeyForListStyle'](_0x5d919e['newValue'])))};if(!_0x5d919e['newValue']){if('default'==_0x5d919e['oldValue'])return _0x5641b6;let _0x510048=_0x549800['head'];for(;_0x510048;){if(_0x510048['data']&&'listType'==_0x510048['data']['key']&&_0x510048['data']['newValue'])return _0x5641b6;_0x510048=_0x510048['next'];}return{'type':'format','content':''+o(_0x1b8f37,'*Remove\x20format:*\x20%0',o(_0x1b8f37,this['_getTranslationKeyForListStyle'](_0x5d919e['oldValue'])))};}if('default'!=_0x5d919e['newValue'])return{'type':'format','content':''+o(_0x1b8f37,'*Set\x20format:*\x20%0',o(_0x1b8f37,this['_getTranslationKeyForListStyle'](_0x5d919e['newValue'])))};let _0x4bb54e=_0x549800['head'];for(;_0x4bb54e;){if(_0x4bb54e['data']&&'listType'==_0x4bb54e['data']['key']&&_0x4bb54e['data']['newValue']&&_0x4bb54e['data']['oldValue'])return _0x5641b6;_0x4bb54e=_0x4bb54e['next'];}return{'type':'format','content':o(_0x1b8f37,'*Set\x20format:*\x20%0',o(_0x1b8f37,'ELEMENT_'+_0x549800['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x45c503=this['editor'],_0x36aa8b=_0x45c503['locale'];_0x45c503['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2f6d67=>{if('formatBlock'!=_0x2f6d67['type'])return;const {data:_0x31746e}=_0x2f6d67;if(!_0x31746e)return;let _0x189088,_0x82dbc1;switch(_0x31746e['commandName']){case'listStyle':_0x189088='*Change\x20to:*\x20%0',_0x82dbc1={'type':'format','content':o(_0x36aa8b,_0x189088,o(_0x36aa8b,this['_getTranslationKeyForListStyle'](_0x31746e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x189088=_0x31746e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x82dbc1={'type':'format','content':o(_0x36aa8b,_0x189088)};break;case'listStart':_0x189088='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x82dbc1={'type':'format','content':o(_0x36aa8b,_0x189088,_0x31746e['commandParams'][0x0]['startIndex'])};}return _0x82dbc1;});}['_getTranslationKeyForListStyle'](_0x31e7c9){return'ELEMENT_'+function(_0xbe1c1b){if(pe['includes'](_0xbe1c1b))return'bulleted';if(ye['includes'](_0xbe1c1b))return'numbered';return null;}(_0x31e7c9)['toUpperCase']()+'_LIST_'+_0x31e7c9['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x43660f{static get['requires'](){return[_0x45b63c];}['init'](){const _0x587972=this['editor'],_0xab8b73=_0x587972['plugins']['get']('TrackChangesEditing'),_0x5098ad=_0x587972['commands']['get']('enter');_0xab8b73['enableCommand']('enter',()=>{_0x587972['model']['change'](_0x33fc37=>{const _0x173cb0=_0x587972['model']['document']['selection'],_0x14056e=_0x173cb0['getFirstPosition'](),_0x483bbf=_0x30a6a3['fromRange'](_0x173cb0['getFirstRange']());if(_0x5098ad['enterBlock'](_0x33fc37)){const _0x358321=_0x587972['model']['createPositionAt'](_0x14056e['parent']['nextSibling'],0x0),_0x333270=_0x33fc37['createRange'](_0x14056e,_0x358321);_0xab8b73['markInsertion'](_0x333270);}else _0x33fc37['setSelection'](_0x33fc37['createRange'](_0x483bbf['end']));_0x483bbf['detach'](),_0x5098ad['fire']('afterExecute',{'writer':_0x33fc37});});}),_0x587972['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x587972,'split'),{'priority':'high'}),_0x587972['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x172e4d,_0x4d7604,_0x59236e)=>{const _0x2a5401=_0x59236e['mapper']['markerNameToElements'](_0x4d7604['markerName']);if(_0x2a5401){for(const _0x57dcf6 of _0x2a5401)_0x57dcf6['hasClass']('ck-suggestion-marker-split')&&(_0x59236e['mapper']['unbindElementFromMarkerName'](_0x57dcf6,_0x4d7604['markerName']),_0x59236e['writer']['remove'](_0x57dcf6));}},{'priority':'high'}),_0x587972['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x299366,_0x5192b4,_0x5c360a)=>{_0x5c360a['options']['showSuggestionHighlights']&&_e(_0x587972,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x299366,_0x5192b4,_0x5c360a);},{'priority':'high'});}}class J extends _0x43660f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2a0f52=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a0f52['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2a0f52['enableCommand']('findNext'),_0x2a0f52['enableCommand']('findPrevious'),_0x2a0f52['enableCommand']('replace'),_0x2a0f52['enableCommand']('replaceAll');}['handleFindCommand'](_0x3c0dec,_0x4ebd99,_0x15a4c2={}){const _0xafb40d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3c0dec(_0x7b067=>('string'==typeof _0x4ebd99?_0xafb40d['findByTextCallback'](_0x4ebd99,_0x15a4c2):_0x4ebd99)(_0x7b067)['filter'](_0x488c88=>!0x1===this['_isInDeletionRange'](_0x488c88,_0x7b067['item'])),_0x15a4c2);}['_isInDeletionRange'](_0x3fd642,_0x11b5a3){const _0xe7b389=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11b5a3,_0x3fd642['start']),this['editor']['model']['createPositionAt'](_0x11b5a3,_0x3fd642['end']));for(const _0x38bc79 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xe7b389['getIntersection'](_0x38bc79['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x43660f{['afterInit'](){const _0x3ce5cf=this['editor']['locale'],_0x5145fa=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x59e91b,commandName:_0x1bec68}of ro)this['editor']['plugins']['has'](_0x59e91b)&&_0x5145fa['_enableDefaultAttributesIntegration'](_0x1bec68,[_0x1bec68]);_0x3ce5cf['t'],_0x5145fa['_descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3ce5cf,'FORMAT_FONT_SIZE')),_0x5145fa['_descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3ce5cf,'FORMAT_FONT_FAMILY')),_0x5145fa['_descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3ce5cf,'FORMAT_FONT_COLOR')),_0x5145fa['_descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3ce5cf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cfecd=this['editor'],_0x3b5173=_0x2cfecd['locale'];_0x2cfecd['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x4635a2=>{const _0x2c918a=_0x3b5173['t'];if('formatInline'!=_0x4635a2['type'])return;const {data:_0x5bbc60}=_0x4635a2;if(null!=_0x5bbc60){if('fontSize'==_0x5bbc60['commandName']){const _0x15c183=_0x5bbc60['commandParams'][0x0]['value'];if(_0x15c183){const _0x4c3aae=_0x2c918a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x131bed=>_0x131bed['model']==_0x15c183)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3b5173,'*Set\x20font\x20size:*\x20%0',_0x4c3aae)};}return{'type':'format','content':o(_0x3b5173,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5bbc60['commandName']){const _0x2c0e10=_0x5bbc60['commandParams'][0x0]['value'];return _0x2c0e10?{'type':'format','content':o(_0x3b5173,'*Set\x20font\x20family:*\x20%0',_0x2c0e10)}:{'type':'format','content':o(_0x3b5173,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5bbc60['commandName']){const _0x4f5a49=_0x5bbc60['commandParams'][0x0]['value'];if(_0x4f5a49){const _0xcbfd8b=_0x1bb9a4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2a4591=>_0x2a4591['model']==_0x4f5a49);let _0x51ac6b=_0x4f5a49,_0x1c3a46='';return _0xcbfd8b&&(_0x51ac6b=_0xcbfd8b['label'],_0x1c3a46=_0x2c918a(_0x51ac6b)['toLowerCase']()),{'type':'format','content':o(_0x3b5173,'*Set\x20font\x20color:*\x20%0',_0x1c3a46)['trim'](),'color':{'value':_0x4f5a49,'title':_0x1c3a46||_0x51ac6b}};}return{'type':'format','content':o(_0x3b5173,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5bbc60['commandName']){const _0x29c64e=_0x5bbc60['commandParams'][0x0]['value'];if(_0x29c64e){const _0x598ce7=_0x1bb9a4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4c897c=>_0x4c897c['model']==_0x29c64e);let _0x51a3a4=_0x29c64e,_0x3f7763='';return _0x598ce7&&(_0x51a3a4=_0x598ce7['label'],_0x3f7763=_0x2c918a(_0x51a3a4)['toLowerCase']()),{'type':'format','content':o(_0x3b5173,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f7763)['trim'](),'color':{'value':_0x29c64e,'title':_0x3f7763||_0x51a3a4}};}return{'type':'format','content':o(_0x3b5173,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x43660f{['afterInit'](){const _0x24b7ac=this['editor'],_0x6e97d1=_0x24b7ac['plugins']['get']('TrackChangesEditing'),_0x3d7a10=_0x24b7ac['commands']['get']('copyFormat'),_0x559590=_0x24b7ac['commands']['get']('pasteFormat');_0x3d7a10&&_0x559590&&(_0x6e97d1['_enableDefaultAttributesIntegration']('pasteFormat'),_0x6e97d1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xf15b40=this['editor'],_0x27affd=_0xf15b40['locale'];_0xf15b40['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x50ca8f=>{if('formatBlock'!=_0x50ca8f['type']&&'formatInline'!=_0x50ca8f['type'])return;const {data:_0x40f0b4}=_0x50ca8f;if(_0x40f0b4&&'pasteFormat'===_0x40f0b4['commandName']){const _0xcc3e52=[],_0xbe3774=_0x40f0b4['commandParams'][0x0];for(const [_0x201011,_0x392936]of Object['entries'](_0xbe3774))_0xcc3e52['push'](so(_0xf15b40,_0x201011,_0x392936));return _0xcc3e52['length']?{'type':'format','content':o(_0x27affd,'*Set\x20format\x20to:*\x20%0',_0xcc3e52['join'](',\x20'))}:{'type':'format','content':o(_0x27affd,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1c4c31,_0x5f2034,_0x27768d){const _0x40a07a=_0x1c4c31['locale']['t'],_0x2ce6b2=_0x5f2034['split'](/(?=[A-Z])/)['join']('\x20'),_0x475818=_0x40a07a(_0x2ce6b2['charAt'](0x0)['toUpperCase']()+_0x2ce6b2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x27768d)return _0x475818;if('fontColor'===_0x5f2034||'fontBackgroundColor'===_0x5f2034){const _0x28fb89=_0x1bb9a4(_0x1c4c31['config']['get']('fontColor.colors'))['find'](_0x17107f=>_0x17107f['model']==_0x27768d);return _0x475818+'\x20('+(_0x28fb89?_0x40a07a(_0x28fb89['label'])['toLowerCase']():_0x27768d)+')';}if('fontSize'===_0x5f2034&&isNaN(parseFloat(_0x27768d))){const _0x65817a=_0x1c4c31['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1c4c31['config']['get']('fontSize.options'))['find'](_0xb32759=>_0xb32759['model']==_0x27768d);return _0x475818+'\x20('+(_0x65817a?_0x40a07a(_0x65817a['title'])['toLowerCase']():_0x27768d)+')';}return _0x475818+'\x20('+_0x27768d+')';}class Y extends _0x43660f{['afterInit'](){const _0x2db05b=this['editor'];if(!_0x2db05b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2db05b['config']['get']('heading.options');const _0x163c2a=_0x2db05b['locale'],_0x20b8c4=_0x2db05b['plugins']['get']('TrackChangesEditing');_0x20b8c4['_enableDefaultAttributesIntegration']('heading');for(const _0x347f43 of this['_headingOptions'])'paragraph'!=_0x347f43['model']&&_0x20b8c4['_descriptionFactory']['registerElementLabel'](_0x347f43['model'],_0x21b81f=>{const _0x15b840=this['_getHeadingLevel'](_0x347f43['model']);return null!==_0x15b840?_0x5d8577(_0x21b81f,_0x15b840):_0x53f109(_0x21b81f,_0x347f43['title']);});function _0x5d8577(_0x2eb75a,_0xa60c59){return o(_0x163c2a,'ELEMENT_HEADING',[_0x2eb75a,_0xa60c59]);}function _0x53f109(_0x4ced09,_0xc779aa){return o(_0x163c2a,'ELEMENT_HEADING_CUSTOM',[_0x4ced09,_0xc779aa]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x182254=this['editor'],_0x606d6f=_0x182254['locale'];function _0x5f01f6(_0x432153,_0x2fe066){return o(_0x606d6f,'ELEMENT_HEADING_CUSTOM',[_0x432153,_0x2fe066]);}_0x182254['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0xbee7a3=>{if('formatBlock'!=_0xbee7a3['type'])return;const {data:_0x46e595}=_0xbee7a3;if(_0x46e595&&'heading'==_0x46e595['commandName']){const _0x161739=_0x46e595['commandParams'][0x0]['value'],_0x548223=this['_getHeadingLevel'](_0x161739);if(null!==_0x548223)return{'type':'format','content':o(_0x606d6f,'*Change\x20to:*\x20%0',(_0xeaacfc=0x1,_0x2be7df=_0x548223,o(_0x606d6f,'ELEMENT_HEADING',[_0xeaacfc,_0x2be7df])))};const _0x94effa=this['_headingOptions']['find'](_0xe532cc=>_0xe532cc['model']===_0x161739)['title'];return{'type':'format','content':o(_0x606d6f,'*Change\x20to:*\x20%0',_0x5f01f6(0x1,_0x94effa))};}var _0xeaacfc,_0x2be7df;});}['_getHeadingLevel'](_0x46bb98){var _0x536af9,_0x1424d7;const _0x379ba1=_0x46bb98['match'](/^heading(\d+)/);if(_0x379ba1)return _0x379ba1[0x1];const _0x2cc0b6=null===(_0x536af9=this['_headingOptions'])||void 0x0===_0x536af9?void 0x0:_0x536af9['find'](_0xf6be50=>_0xf6be50['model']==_0x46bb98);if(_0x2cc0b6&&_0x2cc0b6['view']){const _0x3dd4d4=_0x2cc0b6['view'],_0x4779d3=(null!==(_0x1424d7=_0x3dd4d4['name'])&&void 0x0!==_0x1424d7?_0x1424d7:_0x3dd4d4)['match'](/^h(\d+)/);if(_0x4779d3)return _0x4779d3[0x1];}return null;}}class Z extends _0x43660f{['afterInit'](){const _0x38a1df=this['editor'];if(!_0x38a1df['plugins']['has']('HighlightEditing'))return;const _0x28267e=_0x38a1df['plugins']['get']('TrackChangesEditing'),_0x2296e6=_0x38a1df['locale'];_0x28267e['_enableDefaultAttributesIntegration']('highlight',['highlight']),_0x28267e['_descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2296e6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c5a1f=this['editor'],_0x114395=_0x1c5a1f['locale'];_0x1c5a1f['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x21cbdd=>{if('formatInline'!=_0x21cbdd['type'])return;const {data:_0x3e0bea}=_0x21cbdd;if(_0x3e0bea&&'highlight'==_0x3e0bea['commandName']){const _0x1b5937=_0x114395['t'],_0x8a36c7=_0x3e0bea['commandParams'][0x0]['value'];if(_0x8a36c7){const _0x36951c=_0x1c5a1f['config']['get']('highlight.options')['find'](_0x8ba5f5=>_0x8ba5f5['model']==_0x8a36c7),_0x4ae947=_0x1b5937(_0x36951c['title'])['toLowerCase']();return{'type':'format','content':o(_0x114395,'*Set\x20highlight:*\x20%0',_0x4ae947),'color':{'value':_0x36951c['color'],'title':_0x36951c['title']}};}return{'type':'format','content':o(_0x114395,'*Remove\x20highlight*',o(_0x114395,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x43660f{['afterInit'](){const _0x51e5ca=this['editor'];if(!_0x51e5ca['plugins']['has']('HorizontalLineEditing'))return;_0x51e5ca['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x238e79=_0x51e5ca['plugins']['get']('TrackChangesEditing'),_0x2dbde2=_0x51e5ca['locale'];_0x238e79['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x302a5b=>o(_0x2dbde2,'ELEMENT_HORIZONTAL_LINE',_0x302a5b)),_0x51e5ca['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3bcea7,{writer:_0x164a8a,options:_0xa79ecb})=>{if(!_0xa79ecb['showSuggestionHighlights'])return null;const _0x1f2325=_0x164a8a['createContainerElement']('div'),_0x5b6d9c=_0x164a8a['createEmptyElement']('hr');return _0x164a8a['addClass']('ck-horizontal-line',_0x1f2325),_0x164a8a['insert'](_0x164a8a['createPositionAt'](_0x1f2325,0x0),_0x5b6d9c),_0x1f2325;},'converterPriority':'high'});}}class et extends _0x43660f{['afterInit'](){const _0x5ea087=this['editor'];if(!_0x5ea087['plugins']['has']('HtmlEmbed'))return;const _0x478614=_0x5ea087['plugins']['get']('TrackChangesEditing'),_0xf6498a=_0x5ea087['locale'];_0x478614['_descriptionFactory']['registerElementLabel']('rawHtml',_0x4cbcdc=>o(_0xf6498a,'ELEMENT_HTML_EMBED',_0x4cbcdc)),_0x478614['_enableDefaultAttributesIntegration']('htmlEmbed',[],['value']),_0x478614['_descriptionFactory']['registerDescriptionCallback'](_0x25a030=>{if('attribute'!=_0x25a030['type'])return;const {data:_0x18dc52}=_0x25a030;if(_0x18dc52&&'value'==_0x18dc52['key']&&_0x25a030['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x59b834=o(_0xf6498a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf6498a,'*Change\x20%0\x20content*',_0x59b834)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3469ea=this['editor'],_0x438ad9=_0x3469ea['locale'];_0x3469ea['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x12ef32=>{if('formatBlock'!=_0x12ef32['type'])return;const {data:_0x3874ce}=_0x12ef32;if(_0x3874ce&&'htmlEmbed'==_0x3874ce['commandName']){const _0x8bee52=o(_0x438ad9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x438ad9,'*Change\x20%0\x20content*',_0x8bee52)};}});}}class it extends _0x43660f{['afterInit'](){const _0x2b8995=this['editor'];if(!_0x2b8995['plugins']['has']('ImageEditing'))return;const _0x5dcc28=_0x2b8995['plugins']['get']('TrackChangesEditing'),_0x3df861=_0x2b8995['plugins']['get']('ImageUtils'),_0x5dea11=_0x2b8995['locale'];_0x5dcc28['enableCommand']('insertImage'),_0x5dcc28['_descriptionFactory']['registerElementLabel']('imageBlock',_0x131dda=>o(_0x5dea11,'ELEMENT_IMAGE',_0x131dda)),_0x5dcc28['_descriptionFactory']['registerElementLabel']('imageInline',_0x5a1b4c=>o(_0x5dea11,'ELEMENT_INLINE_IMAGE',_0x5a1b4c)),_0x5dcc28['_descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5dea11,'ELEMENT_CAPTION')),_0x2b8995['plugins']['has']('ImageUploadEditing')&&_0x5dcc28['enableCommand']('uploadImage'),_0x2b8995['plugins']['has']('ImageBlockEditing')&&_0x2b8995['plugins']['has']('ImageInlineEditing')&&(_0x5dcc28['enableCommand']('imageTypeInline',(_0x55fc1f,_0x1b7f72)=>{const _0x29aa77=_0x3df861['getClosestSelectedImageElement'](_0x2b8995['model']['document']['selection']);_0x2b8995['model']['change'](()=>{_0x5dcc28['markBlockFormat'](_0x29aa77,{'commandName':'imageTypeInline','commandParams':[_0x1b7f72]},[],'convertBlockImageToInline');});}),_0x5dcc28['enableCommand']('imageTypeBlock',(_0x5460bd,_0x9f63e9)=>{_0x2b8995['model']['change'](_0x3a808f=>{let _0x5b8bb1=_0x3df861['getClosestSelectedImageElement'](_0x2b8995['model']['document']['selection']),_0x37e425=_0x3a808f['createRangeOn'](_0x5b8bb1);const _0x48c31e=_0x41f1a4['fromPosition'](_0x37e425['start'],'toPrevious'),_0x3a3931=_0x41f1a4['fromPosition'](_0x37e425['end'],'toNext');_0x5dcc28['forceDefaultExecution'](()=>_0x5460bd(_0x9f63e9)),_0x5b8bb1=_0x3df861['getClosestSelectedImageElement'](_0x2b8995['model']['document']['selection']),_0x37e425=_0x3a808f['createRangeOn'](_0x5b8bb1);const _0x36b349=_0x3a808f['createRange'](_0x48c31e,_0x3a3931);_0x48c31e['detach'](),_0x3a3931['detach'](),_0x5dcc28['markBlockFormat'](_0x5b8bb1,{'commandName':'imageTypeInline','commandParams':[_0x9f63e9]},[],'convertInlineImageToBlock'),_0x36b349['start']['isBefore'](_0x37e425['start'])&&_0x5dcc28['markInsertion'](_0x3a808f['createRange'](_0x36b349['start'],_0x37e425['start']),'convertInlineImageToBlock'),_0x37e425['end']['isBefore'](_0x36b349['end'])&&_0x5dcc28['markInsertion'](_0x3a808f['createRange'](_0x37e425['end'],_0x36b349['end']),'convertInlineImageToBlock');});}),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5dcc28['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x23b0ea])=>{const _0x4bbdf0=_0x5dcc28['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2d234a=_0x23b0ea['start'],_0x38949f=_0x23b0ea['end'];const _0x4d32a0=_0x2b8995['model']['schema']['getNearestSelectionRange'](_0x2d234a,'backward'),_0x32b960=_0x2b8995['model']['schema']['getNearestSelectionRange'](_0x38949f,'forward');_0x4d32a0['isCollapsed']&&(_0x2d234a=_0x4d32a0['start']),_0x32b960['isCollapsed']&&(_0x38949f=_0x32b960['end']),_0x4bbdf0([_0x2b8995['model']['createRange'](_0x2d234a,_0x38949f)]);}),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5ed18c),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5ed18c)),_0x2b8995['plugins']['has']('ImageCaptionEditing')&&(_0x5dcc28['enableCommand']('toggleImageCaption',(_0x2ba8d7,_0x41e935)=>{const _0x570664=_0x2b8995['plugins']['get']('ImageCaptionUtils');let _0x1c7499=_0x3df861['getClosestSelectedImageElement'](_0x2b8995['model']['document']['selection']),_0x110d97=_0x570664['getCaptionFromImageModelElement'](_0x1c7499);_0x2b8995['model']['change'](()=>{if(_0x110d97)return void _0x5dcc28['markDeletion'](_0x2b8995['model']['createRangeOn'](_0x110d97));const _0x4c9577=_0x3df861['isBlockImage'](_0x1c7499);_0x2ba8d7(_0x41e935),_0x1c7499=_0x3df861['getClosestSelectedImageElement'](_0x2b8995['model']['document']['selection']),_0x110d97=_0x570664['getCaptionFromImageModelElement'](_0x1c7499),_0x5dcc28['markInsertion'](_0x2b8995['model']['createRangeOn'](_0x110d97),_0x4c9577?null:'imageCaption');});}),_0x5dcc28['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5ed18c));const _0x73f517=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ccd0f(_0x585d74,_0x240746){const _0x4d4243=_0x73f517['findIndex'](({type:_0x2aa43c,subType:_0x2215e0})=>_0x585d74['type']==_0x2aa43c&&_0x585d74['subType']==_0x2215e0),_0xc11e81=_0x73f517['findIndex'](({type:_0x3fb5b3,subType:_0x57a9b4})=>_0x240746['type']==_0x3fb5b3&&_0x240746['subType']==_0x57a9b4);if(_0x4d4243<0x0||_0xc11e81<0x0)return!0x1;const _0x20b29a=_0x585d74['getFirstRange'](),_0x70d94a=_0x240746['getFirstRange']();if((0x0==_0x4d4243||0x1==_0x4d4243)&&0x2==_0xc11e81&&_0x20b29a['isIntersecting'](_0x70d94a))return!0x0;if(0x2==_0x4d4243&&0x3==_0xc11e81){const _0x3754be=_0x5dcc28['_findSuggestions'](_0x20b29a,'insertion')['filter'](({suggestion:_0x395830,meta:_0x46108e})=>_0x46108e['isOwn']&&'convertInlineImageToBlock'==_0x395830['subType']);if(_0x3754be['length']>0x1&&_0x70d94a['end']['isEqual'](_0x20b29a['start']))return!0x0;if(0x1==_0x3754be['length']&&(_0x20b29a['start']['isEqual'](_0x70d94a['end'])||_0x20b29a['end']['isEqual'](_0x70d94a['start'])))return!0x0;}if(0x3==_0x4d4243&&0x3==_0xc11e81&&_0x20b29a['start']['isBefore'](_0x70d94a['start'])){const _0x863a18=_0x20b29a['end']['nodeAfter'],_0xefe1c4=_0x70d94a['start']['nodeBefore'];return _0x3df861['isBlockImage'](_0x863a18)&&_0x863a18===_0xefe1c4;}return!0x1;}function _0x5ed18c(_0x5df194,_0x1dba53){return _0x3ccd0f(_0x5df194,_0x1dba53)?[_0x5df194,_0x1dba53]:_0x3ccd0f(_0x1dba53,_0x5df194)?[_0x1dba53,_0x5df194]:null;}_0x2b8995['plugins']['has']('ImageResize')&&(_0x5dcc28['_enableDefaultAttributesIntegration']('resizeImage',[],['resizedWidth']),_0x5dcc28['_descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5dea11,'FORMAT_IMAGE_SIZE'))),_0x2b8995['plugins']['has']('ImageTextAlternativeEditing')&&_0x5dcc28['_enableDefaultAttributesIntegration']('imageTextAlternative',[],['alt']),_0x5dcc28['_descriptionFactory']['registerDescriptionCallback'](_0x4d99b2=>{if(!!_0x73f517['find'](({type:_0x404e44,subType:_0xb63f81})=>_0x4d99b2['type']==_0x404e44&&_0x4d99b2['subType']==_0xb63f81))return _0x4d99b2['previous']?{}:void 0x0;}),_0x5dcc28['_descriptionFactory']['registerDescriptionCallback'](_0x13e96=>{if('insertion'==_0x13e96['type']||'deletion'==_0x13e96['type']){const _0x35f66e=_0x13e96['getContainedElement']();if(_0x35f66e&&_0x35f66e['is']('element','caption'))return{'type':'insertion'==_0x13e96['type']?'addObject':'removeObject','element':_0x35f66e,'quantity':0x1};}}),_0x5dcc28['_descriptionFactory']['registerDescriptionCallback'](_0x385549=>'formatBlock'==_0x385549['type']&&'convertInlineImageToBlock'==_0x385549['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x385549['type']&&'convertBlockImageToInline'==_0x385549['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5dcc28['_descriptionFactory']['registerDescriptionCallback'](_0x57f726=>{if('attribute'!=_0x57f726['type'])return;const {data:_0x54775a}=_0x57f726;if(!_0x54775a||'alt'!=_0x54775a['key'])return;const _0xe3e1d3=_0x54775a['newValue'];return _0xe3e1d3?{'type':'format','content':o(_0x5dea11,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xe3e1d3+'\x22')}:{'type':'format','content':o(_0x5dea11,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a6cf1=this['editor'],_0x137703=_0x2a6cf1['locale'];_0x2a6cf1['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5b8734=>{if('formatBlock'!=_0x5b8734['type']&&'formatInline'!=_0x5b8734['type'])return;const {data:_0x5efec4}=_0x5b8734;if(_0x5efec4){if('imageTextAlternative'==_0x5efec4['commandName']){const _0x2c0118=_0x5efec4['commandParams'][0x0]['newValue'];return _0x2c0118?{'type':'format','content':o(_0x137703,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c0118+'\x22')}:{'type':'format','content':o(_0x137703,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5efec4['commandName']){const _0xea855b=_0x5efec4['commandParams'][0x0]['width'];return _0xea855b?{'type':'format','content':o(_0x137703,'*Set\x20image\x20width:*\x20%0',_0xea855b)}:{'type':'format','content':o(_0x137703,'*Reset\x20image\x20width*')};}}});}}class st extends _0x43660f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x320d28=this['editor']['locale'],_0x7d21d0=this['editor']['plugins']['get']('TrackChangesEditing');_0x7d21d0['_enableDefaultAttributesIntegration']('replaceImageSource',[],['src']),_0x7d21d0['_descriptionFactory']['registerDescriptionCallback'](_0x606f00=>{if('attribute'!=_0x606f00['type'])return;const {data:_0x1f15d9}=_0x606f00;return _0x1f15d9&&'src'==_0x1f15d9['key']?_0x1f15d9['newValue']&&_0x1f15d9['oldValue']?{'type':'format','content':o(_0x320d28,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b7a61=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b7a61['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2b7a61['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b7a61['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2b7a61['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10949d=this['editor'],_0x12b23d=_0x10949d['locale'];_0x10949d['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x49cb08=>{if('formatBlock'!=_0x49cb08['type']&&'formatInline'!=_0x49cb08['type'])return;const {data:_0x41ca1a}=_0x49cb08;if(!_0x41ca1a||'replaceImageSource'!=_0x41ca1a['commandName'])return;return{'type':'format','content':o(_0x12b23d,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x43660f{['afterInit'](){const _0x17df88=this['editor'];if(!_0x17df88['plugins']['has']('ImageStyleEditing'))return;const _0x483d82=_0x17df88['plugins']['get']('TrackChangesEditing'),_0x25fc6b=_0x17df88['plugins']['get']('ImageUtils'),_0x80f198={};_0x483d82['enableCommand']('imageStyle',(_0x23ba9d,_0x4b1a0d)=>{const _0x23cfd5=_0x17df88['plugins']['get']('Users')['me'],_0xea7e37=_0x17df88['commands']['get']('imageStyle');let _0x4f7755=_0x25fc6b['getClosestSelectedImageElement'](_0x17df88['model']['document']['selection']),_0x1de652=_0x17df88['model']['createRangeOn'](_0x4f7755),_0x43a9ab=_0xea7e37['value'];if(_0x43a9ab==_0x4b1a0d['value'])return;const _0x4962b6={'commandName':'imageStyle','commandParams':[_0x4b1a0d],'formatGroupId':_0x461740()};_0x17df88['model']['change'](()=>{if(_0x483d82['getSuggestions']()['filter'](_0x33f16a=>_0x33f16a['isInContent']&&_0x23cfd5==_0x33f16a['author']&&('formatBlock'==_0x33f16a['type']||'formatInline'==_0x33f16a['type'])&&('imageStylePreApply'==_0x33f16a['subType']||'imageStylePostApply'==_0x33f16a['subType'])&&_0x33f16a['getFirstRange']()['isEqual'](_0x1de652))['forEach'](_0x7a3ead=>_0x483d82['discardSuggestion'](_0x7a3ead['head'])),_0x4f7755=_0x25fc6b['getClosestSelectedImageElement'](_0x17df88['model']['document']['selection']),_0x1de652=_0x17df88['model']['createRangeOn'](_0x4f7755),_0xea7e37['refresh'](),_0x17df88['commands']['get']('imageTypeInline')['refresh'](),_0x17df88['commands']['get']('imageTypeBlock')['refresh'](),_0x43a9ab=_0xea7e37['value'],_0x43a9ab!=_0x4b1a0d['value'])return _0x25fc6b['isInlineImage'](_0x4f7755)&&_0xea7e37['shouldConvertImageType'](_0x4b1a0d['value'],_0x4f7755)?(_0x23ba9d({..._0x4b1a0d,'setImageSizes':!0x1}),_0x4f7755=_0x25fc6b['getClosestSelectedImageElement'](_0x17df88['model']['document']['selection']),void _0x483d82['markBlockFormat'](_0x4f7755,{..._0x4962b6,'commandReversedParams':[{'value':_0x43a9ab||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x25fc6b['isBlockImage'](_0x4f7755)?_0x483d82['markBlockFormat'](_0x4f7755,_0x4962b6,[],'imageStylePostApply'):_0x483d82['markInlineFormat'](_0x1de652,_0x4962b6,'imageStylePostApply'));});});for(const _0x22d102 of _0x17df88['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x80f198[_0x22d102['name']]=_0x22d102['title']['toLowerCase']();_0x483d82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x483d82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x483d82['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x483d82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x31bb3b])=>{_0x25fc6b['setImageNaturalSizeAttributes'](_0x31bb3b['getContainedElement']());}),_0x483d82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x9f890e,_0x3b0878)=>{_0x483d82['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x9f890e,{'commandName':_0x3b0878['commandName'],'commandParams':_0x3b0878['commandReversedParams']});}),_0x483d82['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3bf2d5,_0x205dbf){if(_0x2dfa2d(_0x3bf2d5,_0x205dbf))return[_0x3bf2d5,_0x205dbf];if(_0x2dfa2d(_0x205dbf,_0x3bf2d5))return[_0x205dbf,_0x3bf2d5];return null;});const _0x31ada7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2dfa2d(_0x299a4b,_0x25afec){const _0x2fd252=_0x31ada7['findIndex'](({type:_0x853423,subType:_0x85ccc7})=>_0x299a4b['type']==_0x853423&&_0x299a4b['subType']==_0x85ccc7),_0x170235=_0x31ada7['findIndex'](({type:_0x1a1da1,subType:_0x2f744f})=>_0x25afec['type']==_0x1a1da1&&_0x25afec['subType']==_0x2f744f);if(_0x2fd252<0x0||_0x170235<0x0)return!0x1;const _0x45aaad=_0x299a4b['getFirstRange'](),_0x1544f3=_0x25afec['getFirstRange']();if((0x0==_0x2fd252||0x1==_0x2fd252)&&0x2==_0x170235&&_0x45aaad['isIntersecting'](_0x1544f3))return!0x0;if(0x2==_0x2fd252&&0x3==_0x170235){const _0x42de7a=_0x483d82['_findSuggestions'](_0x45aaad,'insertion')['filter'](({suggestion:_0x263b35,meta:_0x29ccd8})=>_0x29ccd8['isOwn']&&'convertInlineImageToBlock'==_0x263b35['subType']);if(_0x42de7a['length']>0x1&&_0x1544f3['end']['isEqual'](_0x45aaad['start']))return!0x0;if(0x1==_0x42de7a['length']&&(_0x45aaad['start']['isEqual'](_0x1544f3['end'])||_0x45aaad['end']['isEqual'](_0x1544f3['start'])))return!0x0;}if(0x3==_0x2fd252&&0x3==_0x170235&&_0x45aaad['start']['isBefore'](_0x1544f3['start'])){const _0x3dc2d7=_0x45aaad['end']['nodeAfter'],_0x4ecbde=_0x1544f3['start']['nodeBefore'];return _0x25fc6b['isBlockImage'](_0x3dc2d7)&&_0x3dc2d7===_0x4ecbde;}return!0x1;}_0x17df88['model']['document']['registerPostFixer'](()=>{let _0x578c3c=!0x1;const _0x249c15=Array['from'](_0x17df88['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22c18d,data:_0x1fcca7}of _0x249c15){const {group:_0x5d6a4b,type:_0xa9da74,subType:_0x506c11,id:_0xbfc8ef}=_0x483d82['_splitMarkerName'](_0x22c18d);if('suggestion'==_0x5d6a4b&&_0x483d82['hasSuggestion'](_0xbfc8ef)){if('formatBlock'==_0xa9da74&&('imageStylePreApply'==_0x506c11||'imageStylePostApply'==_0x506c11)){const _0x39f35a=_0x483d82['getSuggestion'](_0xbfc8ef);if(_0x1fcca7['newRange']){const _0x13003c=_0x39f35a['getFirstRange']()['getContainedElement']();if(_0x25fc6b['isBlockImage'](_0x13003c))continue;_0x483d82['discardSuggestion'](_0x39f35a),_0x578c3c=!0x0;}}if('insertion'==_0xa9da74&&'imageCaption'==_0x506c11&&!_0x1fcca7['newRange']){const _0xceccba=_0x483d82['getSuggestion'](_0xbfc8ef);_0xceccba['next']&&_0xceccba['next']['isInContent']&&(_0x483d82['discardSuggestion'](_0xceccba['next']),_0x578c3c=!0x0);}}}return _0x578c3c;}),this['_registerLegacyDescription'](_0x80f198);}['_registerLegacyDescription'](_0x586cb9){const _0x20ff7f=this['editor'],_0x11468f=_0x20ff7f['locale'];_0x20ff7f['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5e7c87=>{if('formatBlock'!=_0x5e7c87['type']&&'formatInline'!=_0x5e7c87['type'])return;const {data:_0x1389b0}=_0x5e7c87;if(!_0x1389b0||'imageStyle'!=_0x1389b0['commandName'])return;const _0x4026be=_0x1389b0['commandParams'][0x0]['value'];return _0x2f2b9a('side'===_0x4026be?o(_0x11468f,'FORMAT_SIDE_IMAGE'):_0x586cb9[_0x4026be]||_0x4026be);function _0x2f2b9a(_0x4bb6bc){return{'type':'format','content':o(_0x11468f,'*Format:*\x20%0',_0x4bb6bc)};}});}}class ot extends _0x43660f{['afterInit'](){const _0x19e613=this['editor'],_0xd547c0=_0x19e613['commands']['get']('importWord'),_0x49bf57=_0x19e613['commands']['get']('trackChanges');_0xd547c0&&(_0xd547c0['on']('execute',(_0x4dbed8,[,_0x3bf260])=>{this['_trackChangesValueDuringImport']=_0x49bf57['value'],_0x3bf260['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd547c0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd547c0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x49bf57['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x19e613['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3d3616,_0x79fa83){const {suggestions:_0x5cee83}=_0x79fa83,_0x28e1ff=this['editor']['commands']['get']('trackChanges'),_0x388730=_0x28e1ff['value'];this['_trackChangesValueDuringImport']!==_0x388730&&(_0x28e1ff['execute'](),this['_trackChangesExecuted']=!0x0),_0x5cee83&&_0x5cee83['forEach'](({id:_0x1ef1d6,type:_0x597b0e,author:_0x1e6928,created_at:_0x4fd9dd})=>{const _0x5e8325={'id':_0x1ef1d6,'type':_0x597b0e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1e6928,'createdAt':_0x4fd9dd?new Date(_0x4fd9dd):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5e8325);});}constructor(_0x2e2a34){super(_0x2e2a34),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x43660f{['afterInit'](){const _0xda9075=this['editor'],_0x57027e=_0xda9075['plugins']['get']('TrackChangesEditing');if(_0xda9075['plugins']['has']('IndentEditing')&&(_0x57027e['enableCommand']('indent'),_0x57027e['enableCommand']('outdent')),_0xda9075['plugins']['has']('IndentBlock')){for(const _0x576b3b of['indentBlock','outdentBlock'])_0x57027e['_enableDefaultAttributesIntegration'](_0x576b3b);}const _0x1bd125=_0xda9075['locale'];_0x57027e['_registerBlockAttribute']('blockIndent'),_0x57027e['_descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1bd125,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13d28e=this['editor'],_0x2c8570=_0x13d28e['locale'],_0x2aadf5=_0x13d28e['plugins']['get']('TrackChangesEditing');_0x2aadf5['_descriptionFactory']['registerDescriptionCallback'](_0x206a6a=>{if('formatBlock'!=_0x206a6a['type'])return;const {data:_0x10e701}=_0x206a6a;if(!_0x10e701)return;if('indentBlock'!=_0x10e701['commandName']&&'outdentBlock'!=_0x10e701['commandName'])return;const _0x3af201=_0x206a6a['getItems']()[0x0],_0x24c1db=_0x2aadf5['_descriptionFactory']['getItemLabel'](_0x3af201);return'indentBlock'==_0x10e701['commandName']?{'type':'format','content':o(_0x2c8570,'*Indent:*\x20%0',_0x24c1db)}:'outdentBlock'==_0x10e701['commandName']?{'type':'format','content':o(_0x2c8570,'*Outdent:*\x20%0',_0x24c1db)}:void 0x0;});}}class at extends _0x43660f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x43660f{['afterInit'](){const _0x276ea3=this['editor'];if(!_0x276ea3['plugins']['has']('LinkEditing'))return;const _0x3594fb=_0x276ea3['plugins']['get']('TrackChangesEditing'),_0x3a6119=_0x276ea3['commands']['get']('link');_0x3594fb['_enableDefaultAttributesIntegration']('link',['linkHref',..._0x3a6119['manualDecorators']['map'](_0x4ea737=>_0x4ea737['id'])]),_0x3594fb['_enableDefaultAttributesIntegration']('unlink');for(const _0x4501f8 of _0x3a6119['manualDecorators'])_0x3594fb['_descriptionFactory']['registerAttributeLabel'](_0x4501f8['id'],'link\x20('+_0x4501f8['label']['toLowerCase']()+')');_0x3594fb['_descriptionFactory']['registerDescriptionCallback'](_0x21237b=>{if('attribute'!=_0x21237b['type'])return;const {data:_0xced5a6}=_0x21237b;if(!_0xced5a6||'linkHref'!=_0xced5a6['key'])return;const _0x3419cb=_0xced5a6['newValue'],_0x1553b4=_0x276ea3['locale'];return{'type':'format','content':null==_0x3419cb?o(_0x1553b4,'*Remove\x20link*'):o(_0x1553b4,'*Set\x20link:*\x20%0','\x22'+_0x3419cb+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x401778=this['editor'],_0x2b62ae=_0x401778['locale'];_0x401778['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x60e650=>{if('formatInline'!=_0x60e650['type'])return;const {data:_0x1e898d}=_0x60e650;if(_0x1e898d){if('link'==_0x1e898d['commandName']){const _0x384d58=_0x1e898d['commandParams'][0x0];return{'type':'format','content':o(_0x2b62ae,'*Set\x20link:*\x20%0','\x22'+_0x384d58+'\x22')};}return'unlink'==_0x1e898d['commandName']?{'type':'format','content':o(_0x2b62ae,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x43660f{['afterInit'](){const _0x3898dc=this['editor'],_0x394f31=_0x3898dc['locale'];if(!_0x3898dc['plugins']['has']('LegacyListEditing'))return;const _0x307c85=_0x3898dc['plugins']['get']('TrackChangesEditing'),_0x1c59b2=_0x3898dc['plugins']['has']('LegacyTodoListEditing');function _0x42623b(_0x4aceed){return()=>{const _0xb98fe0=_0x3898dc['model']['document']['selection'],_0x4e5ce4=_0x3898dc['commands']['get'](_0x4aceed);if(_0x4e5ce4['value'])return void _0x3898dc['execute']('paragraph',{});const _0x51a906=_0x4aceed['slice'](0x0,-0x4),_0xfa036f=function(_0x55d7bf,_0x573f69,_0x396a43){let _0x17ab64=Array['from'](_0x55d7bf)['filter'](_0x1e6e3f=>function(_0x55664d,_0x2e759e){return _0x2e759e['checkChild'](_0x55664d['parent'],'listItem')&&!_0x2e759e['isObject'](_0x55664d);}(_0x1e6e3f,_0x396a43));_0x17ab64=_0x17ab64['filter'](_0x240afb=>!_0x240afb['is']('element','listItem')||_0x240afb['getAttribute']('listType')!=_0x573f69);const _0xfe753d=new Set();for(const _0x123d5a of _0x17ab64)_0x123d5a['is']('element','listItem')?_0xfe753d['add'](me(_0x123d5a)):_0xfe753d['add'](_0x123d5a);return Array['from'](_0xfe753d);}(_0xb98fe0['getSelectedBlocks'](),_0x51a906,_0x3898dc['model']['schema']);_0x3898dc['model']['change'](()=>{for(const _0x9e384b of _0xfa036f)_0x307c85['markBlockFormat'](_0x9e384b,{'commandName':_0x4aceed,'commandParams':[{'forceValue':!_0x4e5ce4['value']}],'formatGroupId':'blockName'},fe(_0x9e384b));});};}function _0x5ef010(_0x5f31ef){return()=>{const _0x27f1fc=function(_0x1b6e11){let _0xe9e296=Array['from'](_0x1b6e11);const _0x15ac81=_0xe9e296['findIndex'](_0x4e4455=>'listItem'!=_0x4e4455['name']);return _0x15ac81>-0x1&&(_0xe9e296=_0xe9e296['slice'](0x0,_0x15ac81)),_0xe9e296;}(_0x3898dc['model']['document']['selection']['getSelectedBlocks']()),_0x344be6=_0x3898dc['model']['createRange'](_0x3898dc['model']['createPositionAt'](_0x27f1fc[0x0],'before'),_0x3898dc['model']['createPositionAt'](_0x27f1fc[_0x27f1fc['length']-0x1],'end'));_0x3898dc['model']['change'](()=>{_0x307c85['markBlockFormat'](_0x344be6,{'commandName':_0x5f31ef,'commandParams':[],'formatGroupId':'listIndent'},function(_0x430bb8){const _0x126e1e=new Set();for(const _0x517691 of _0x430bb8){let _0x5686ea=_0x517691['nextSibling'];for(;_0x5686ea&&_0x5686ea['getAttribute']('listIndent')>_0x517691['getAttribute']('listIndent');)_0x126e1e['add'](_0x5686ea),_0x5686ea=_0x5686ea['nextSibling'];}return Array['from'](_0x126e1e);}(_0x27f1fc));});};}_0x307c85['enableCommand']('numberedList',_0x42623b('numberedList')),_0x307c85['enableCommand']('bulletedList',_0x42623b('bulletedList')),_0x1c59b2&&_0x307c85['enableCommand']('todoList',_0x42623b('todoList')),_0x307c85['enableCommand']('indentList',_0x5ef010('indentList')),_0x307c85['enableCommand']('outdentList',_0x5ef010('outdentList')),_0x1c59b2&&_0x307c85['enableCommand']('checkTodoList',()=>{const _0xe0e92b=_0x3898dc['commands']['get']('checkTodoList'),_0x4b9354=Array['from'](_0xe0e92b['_selectedElements']);_0x4b9354['filter'](_0x28ded3=>_0x28ded3['getAttribute']('todoListChecked')!=_0xe0e92b['value']),_0x3898dc['model']['change'](()=>{for(const _0x5b9240 of _0x4b9354)_0x307c85['markBlockFormat'](_0x5b9240,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xe0e92b['value']}]});});}),_0x307c85['_descriptionFactory']['registerElementLabel']('listItem',_0x465b9b=>o(_0x394f31,'ELEMENT_LIST_ITEM',_0x465b9b)),_0x307c85['_descriptionFactory']['registerDescriptionCallback'](_0x5a3400=>{if('formatBlock'!=_0x5a3400['type']&&'formatInline'!=_0x5a3400['type'])return;const {data:_0x5afcf4}=_0x5a3400;if(_0x5afcf4){if('numberedList'==_0x5afcf4['commandName']||'bulletedList'==_0x5afcf4['commandName']||'todoList'==_0x5afcf4['commandName'])switch(_0x5afcf4['commandName']['replace']('List','')){case'bulleted':return _0x15decc(o(_0x394f31,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15decc(o(_0x394f31,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15decc(o(_0x394f31,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5afcf4['commandName'])return{'type':'format','content':o(_0x394f31,'*Indent:*\x20%0',o(_0x394f31,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5afcf4['commandName'])return{'type':'format','content':o(_0x394f31,'*Outdent:*\x20%0',o(_0x394f31,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5afcf4['commandName'])return _0x5afcf4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x394f31,'*Check\x20item*')}:{'type':'format','content':o(_0x394f31,'*Uncheck\x20item*')};}function _0x15decc(_0x8a10b0){return{'type':'format','content':o(_0x394f31,'*Change\x20to:*\x20%0',_0x8a10b0)};}});}}function me(_0x3a8a53){const _0x2dfd8b=_0x3a8a53['getAttribute']('listIndent');if(0x0==_0x2dfd8b)return _0x3a8a53;let _0x5a9fe3=_0x3a8a53;for(;_0x3a8a53['previousSibling']&&_0x3a8a53['previousSibling']['is']('element','listItem');){const _0x1d9fde=_0x3a8a53['previousSibling']['getAttribute']('listIndent');if(_0x1d9fde==_0x2dfd8b)_0x5a9fe3=_0x3a8a53['previousSibling'];else{if(_0x1d9fde<_0x2dfd8b)break;}_0x3a8a53=_0x3a8a53['previousSibling'];}return _0x5a9fe3;}function fe(_0xc5750d){const _0x1f3bce=[];if(_0xc5750d['is']('element','listItem')&&_0xc5750d['getAttribute']('listIndent')>0x0){let _0x7ea216=_0xc5750d['nextSibling'];for(;_0x7ea216&&'listItem'==_0x7ea216['name']&&_0x7ea216['getAttribute']('listIndent')==_0xc5750d['getAttribute']('listIndent');)_0x1f3bce['push'](_0x7ea216),_0x7ea216=_0x7ea216['nextSibling'];}return _0x1f3bce;}class K extends _0x43660f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2f42d2=this['editor']['config']['get']('list.properties'),_0x1c1ec6=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f42d2['styles']&&_0x1c1ec6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2f42d2['reversed']&&_0x1c1ec6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2f42d2['startIndex']&&_0x1c1ec6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c1ec6['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2e84e5,_0x37f19d={}){const _0xf5be7d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d631d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xf5be7d['markMultiRangeBlockFormat'](_0x4d631d,{'commandName':'listStyle','commandParams':[{'type':_0x37f19d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2c5af5,_0x175de2={}){const _0x38840a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x270cc9=this['_getSuggestionBlocks'](_0x305b90=>_0x305b90['is']('element','listItem')&&'numbered'===_0x305b90['getAttribute']('listType'));if(_0x270cc9['length']<0x1)return;const _0x2fcd0a=_0x270cc9['map'](_0xba0d0a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xba0d0a,'before'),this['editor']['model']['createPositionAt'](_0xba0d0a,0x0)));this['editor']['model']['change'](()=>{_0x38840a['markMultiRangeBlockFormat'](_0x2fcd0a,{'commandName':'listReversed','commandParams':[{'reversed':_0x175de2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x194eb2,_0x38085f={}){const _0x66d3fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x312413=this['_getSuggestionBlocks'](_0x4fb9b5=>_0x4fb9b5['is']('element','listItem')&&'numbered'===_0x4fb9b5['getAttribute']('listType'));if(_0x312413['length']<0x1)return;const _0x3f18d4=_0x312413['map'](_0x4bc198=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bc198,'before'),this['editor']['model']['createPositionAt'](_0x4bc198,0x0)));this['editor']['model']['change'](()=>{_0x66d3fc['markMultiRangeBlockFormat'](_0x3f18d4,{'commandName':'listStart','commandParams':[{'startIndex':_0x38085f['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3d0668){if('formatBlock'!=_0x3d0668['type']&&'formatInline'!=_0x3d0668['type'])return;const _0x3c8fba=this['editor']['locale'],{data:_0x67fce}=_0x3d0668;if(!_0x67fce)return;let _0x199e24,_0x5cbc15;switch(_0x67fce['commandName']){case'listStyle':_0x199e24='*Change\x20to:*\x20%0',_0x5cbc15={'type':'format','content':o(_0x3c8fba,_0x199e24,o(_0x3c8fba,this['_getTranslationKeyForListStyle'](_0x67fce['commandParams'][0x0]['type'])))};break;case'listReversed':_0x199e24=_0x67fce['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5cbc15={'type':'format','content':o(_0x3c8fba,_0x199e24)};break;case'listStart':_0x199e24='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5cbc15={'type':'format','content':o(_0x3c8fba,_0x199e24,_0x67fce['commandParams'][0x0]['startIndex'])};}return _0x5cbc15;}['_getSuggestionBlocksForListStyle'](){var _0x523fe2,_0x541975,_0x54bf34,_0x1895b1;const _0x2d8cb8=this['editor']['plugins']['get']('LegacyListUtils');let _0x369cea=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x523fe2=_0x369cea[0x0])||void 0x0===_0x523fe2?void 0x0:_0x523fe2['is']('element','listItem'))&&_0x369cea['unshift'](..._0x2d8cb8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x541975=_0x369cea[_0x369cea['length']-0x1])||void 0x0===_0x541975?void 0x0:_0x541975['is']('element','listItem'))&&_0x369cea['push'](..._0x2d8cb8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x369cea=[...new Set(_0x369cea)],(null===(_0x1895b1=null===(_0x54bf34=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x54bf34?void 0x0:_0x54bf34['parent'])||void 0x0===_0x1895b1?void 0x0:_0x1895b1['is']('element','listItem'))&&(_0x369cea=_0x369cea['filter'](_0x24e8d5=>_0x24e8d5['is']('element','listItem'))),_0x369cea;}['_getSuggestionBlocks'](_0x5c67d8){const _0x17a38a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ac9a5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5c67d8)['map'](_0x2518e3=>{const _0x6c1ad5=this['editor']['model']['createPositionAt'](_0x2518e3,0x0);return[..._0x17a38a['getSiblingNodes'](_0x6c1ad5,'backward'),..._0x17a38a['getSiblingNodes'](_0x6c1ad5,'forward')];})['flat']();return _0x2ac9a5=[...new Set(_0x2ac9a5)],_0x2ac9a5;}['_getTranslationKeyForListStyle'](_0x596efc){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x596efc)||'default')['toUpperCase']()+'_LIST_'+_0x596efc['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x43660f{['afterInit'](){const _0x4e100b=this['editor'];if(!_0x4e100b['plugins']['has']('MediaEmbedEditing'))return;const _0x37753e=_0x4e100b['plugins']['get']('TrackChangesEditing'),_0xc35b87=_0x4e100b['locale'];_0x37753e['enableCommand']('mediaEmbed'),_0x37753e['_descriptionFactory']['registerElementLabel']('media',_0x4dc05b=>o(_0xc35b87,'ELEMENT_MEDIA',_0x4dc05b)),_0x4e100b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x270dbc,{writer:_0x5e7851,options:_0x2c06e6})=>{if(_0x2c06e6['showSuggestionHighlights'])return _0x5e7851['createEmptyElement']('div');},'converterPriority':'high'}),_0x4e100b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5dd833,_0x473894,_0x25e2f5)=>{_0x25e2f5['options']['showSuggestionHighlights']&&_0x5dd833['stop']();},{'priority':'high'});}}class gt extends _0x43660f{['afterInit'](){const _0x2067ed=this['editor'];_0x2067ed['plugins']['has']('MentionEditing')&&_0x2067ed['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x43660f{['afterInit'](){const _0xe6507=this['editor'],_0xd80a44=_0xe6507['plugins']['get']('TrackChangesEditing');_0xe6507['plugins']['has']('MultiLevelList')&&(_0xd80a44['_enableDefaultAttributesIntegration']('multiLevelList',[],['listMarkerStyle']),_0xd80a44['_descriptionFactory']['registerDescriptionCallback'](_0x28b205=>this['handleDescriptions'](_0x28b205)));}['handleDescriptions'](_0x2f9321){const _0x477bc9=this['editor']['locale'],{data:_0x1f91b4}=_0x2f9321,_0x3c9b08={'type':'format','content':''};if(_0x1f91b4&&'listMarkerStyle'==_0x1f91b4['key']){if(!_0x1f91b4['oldValue'])return{'type':'format','content':o(_0x477bc9,'*Set\x20format:*\x20%0',o(_0x477bc9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f91b4['newValue']+')'};if(!_0x1f91b4['newValue']){let _0x3c600f=_0x2f9321['head'];for(;_0x3c600f;){if(_0x3c600f['data']&&'listType'==_0x3c600f['data']['key']&&_0x3c600f['data']['newValue'])return _0x3c9b08;_0x3c600f=_0x3c600f['next'];}return{'type':'format','content':o(_0x477bc9,'*Remove\x20format:*\x20%0',o(_0x477bc9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f91b4['oldValue']+')'};}}}}class mt extends _0x43660f{['afterInit'](){const _0x2ce464=this['editor'];if(!_0x2ce464['plugins']['has']('PageBreakEditing'))return;_0x2ce464['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3a1e32=_0x2ce464['plugins']['get']('TrackChangesEditing'),_0x3a010e=_0x2ce464['locale'];_0x3a1e32['_descriptionFactory']['registerElementLabel']('pageBreak',_0x169c79=>o(_0x3a010e,'ELEMENT_PAGE_BREAK',_0x169c79));}}class dt extends _0x43660f{['afterInit'](){const _0x14b10d=this['editor'];if(!_0x14b10d['plugins']['has']('Paragraph'))return;const _0x2514d7=_0x14b10d['locale'],_0x477733=_0x14b10d['plugins']['get']('TrackChangesEditing');_0x477733['_descriptionFactory']['registerElementLabel']('paragraph',_0x39b05d=>o(_0x2514d7,'ELEMENT_PARAGRAPH',_0x39b05d)),_0x477733['_enableDefaultAttributesIntegration']('paragraph'),_0x477733['enableCommand']('insertParagraph'),_0x14b10d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x14b10d),{'priority':'highest'}),_0x14b10d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x460aa1,_0x23deac,_0x19eb7a)=>{_0x19eb7a['options']['showSuggestionHighlights']&&nr(_0x14b10d,{'showActiveMarker':!0x1})(_0x460aa1,_0x23deac,_0x19eb7a);},{'priority':'highest'});const _0xbc0ae=_0x477733['_descriptionFactory'];_0xbc0ae['registerDescriptionCallback'](_0x59020b=>{if('insertion'!==_0x59020b['type'])return;const {start:_0x523c8f,end:_0x5b33c7}=_0x59020b['getFirstRange']();if(!_0x523c8f['isTouching'](_0x5b33c7)||!_0x523c8f['nodeAfter'])return;const _0x1353c1=_0x14b10d['model']['schema'],_0x59b3a7=_0x523c8f['nodeAfter'];return _0x1353c1['isBlock'](_0x59b3a7)&&!_0x1353c1['isLimit'](_0x59b3a7)&&_0x1353c1['checkChild'](_0x59b3a7,'$text')?{'type':'insertion','content':o(_0x2514d7,'*Insert:*\x20%0',_0xbc0ae['getItemLabel'](_0x59b3a7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x894f0e=this['editor'],_0xc04d5d=_0x894f0e['locale'];_0x894f0e['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x55933d=>{if('formatBlock'!=_0x55933d['type'])return;const {data:_0x5ed445}=_0x55933d;return _0x5ed445&&'paragraph'==_0x5ed445['commandName']?{'type':'format','content':o(_0xc04d5d,'*Change\x20to:*\x20%0',o(_0xc04d5d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2362c3,{showActiveMarker:_0x234fc5=!0x0}={}){return(_0x21ea2e,_0x4f339a,_0xc3958a)=>{const _0x38786b=_0x2362c3['plugins']['get']('TrackChangesEditing'),_0xa2eeca=_0x4f339a['markerRange']['start'],_0x4e7bd2=_0x4f339a['markerRange']['end'],_0x5e2b07=_0x2362c3['model']['schema'];if(!_0xa2eeca['isTouching'](_0x4e7bd2)||!_0xa2eeca['nodeAfter'])return;const _0x54f28b=_0xa2eeca['nodeAfter'];if(_0x5e2b07['isBlock'](_0x54f28b)&&!_0x5e2b07['isLimit'](_0x54f28b)&&_0x5e2b07['checkChild'](_0x54f28b,'$text')){if(!_0xc3958a['consumable']['consume'](_0x4f339a['markerRange'],_0x21ea2e['name']))return;const _0x738662=_0xc3958a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x20b9cc=_0xc3958a['mapper']['toViewPosition'](_0x4e7bd2);_0x234fc5&&_0x38786b['activeMarkers']['includes'](_0x4f339a['markerName'])&&_0xc3958a['writer']['addClass']('ck-suggestion-marker--active',_0x738662),_0xc3958a['writer']['insert'](_0x20b9cc,_0x738662),_0xc3958a['mapper']['bindElementToMarker'](_0x738662,_0x4f339a['markerName']);}};}class pt extends _0x43660f{['afterInit'](){const _0x6f1d8e=this['editor'];if(!_0x6f1d8e['plugins']['has']('RemoveFormatEditing'))return;_0x6f1d8e['plugins']['get']('TrackChangesEditing')['_enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ff8d0=this['editor'];_0x4ff8d0['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x261f95=>{if('formatBlock'!=_0x261f95['type']&&'formatInline'!=_0x261f95['type'])return;const {data:_0xfe235c}=_0x261f95;return _0xfe235c&&'removeFormat'==_0xfe235c['commandName']?{'type':'format','content':o(_0x4ff8d0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x43660f{['afterInit'](){const _0x4697a5=this['editor'];if(!_0x4697a5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x44fbe7=_0x4697a5['plugins']['get']('TrackChangesEditing');_0x44fbe7['enableCommand']('goToPreviousRestrictedEditingException'),_0x44fbe7['enableCommand']('goToNextRestrictedEditingException');const _0x4dc92f=_0x4697a5['plugins']['get']('RestrictedEditingModeEditing');_0x4dc92f['enableCommand']('trackChanges'),_0x4dc92f['enableCommand']('acceptSuggestion'),_0x4dc92f['enableCommand']('discardSuggestion'),_0x4dc92f['enableCommand']('acceptAllSuggestions'),_0x4dc92f['enableCommand']('discardAllSuggestions'),_0x4dc92f['enableCommand']('acceptSelectedSuggestions'),_0x4dc92f['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x43660f{static get['requires'](){return[_0x27d317];}['init'](){const _0x44f2f3=this['editor'],_0x3c8392=_0x44f2f3['plugins']['get']('TrackChangesEditing');_0x3c8392['enableCommand']('shiftEnter'),_0x44f2f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x44f2f3),{'priority':'high'}),_0x44f2f3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x44f2f3),{'priority':'high'}),_0x44f2f3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d3493,_0x279e0e,_0x56777b)=>{_0x56777b['options']['showSuggestionHighlights']&&de(_0x44f2f3,{'showActiveMarker':!0x1})(_0x2d3493,_0x279e0e,_0x56777b);}),_0x3c8392['_descriptionFactory']['registerElementLabel']('softBreak',_0x14129f=>o(_0x44f2f3['locale'],'ELEMENT_LINE_BREAK',_0x14129f));}}function de(_0x529b40,{showActiveMarker:_0x34432e=!0x0}={}){return(_0x45dded,_0x54e834,_0x16c543)=>{const _0x2b060e=_0x529b40['plugins']['get']('TrackChangesEditing');if(!_0x16c543['consumable']['test'](_0x54e834['markerRange'],_0x45dded['name']))return;const _0x44af02=_0x529b40['model'];for(const _0x2a8ec0 of _0x54e834['markerRange']['getItems']()){if(!_0x2a8ec0['is']('element','softBreak'))continue;const _0x2e4f3c='deletion'==_0x54e834['markerName']['split'](':')[0x1]?'merge':'split',_0x4ab61f=_0x16c543['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e4f3c}),_0x1a1572=_0x16c543['mapper']['toViewPosition'](_0x44af02['createPositionBefore'](_0x2a8ec0));_0x34432e&&_0x2b060e['activeMarkers']['includes'](_0x54e834['markerName'])&&_0x16c543['writer']['addClass']('ck-suggestion-marker--active',_0x4ab61f),_0x16c543['writer']['insert'](_0x1a1572,_0x4ab61f),_0x16c543['mapper']['bindElementToMarker'](_0x4ab61f,_0x54e834['markerName']);}};}class wt extends _0x43660f{['afterInit'](){const _0x6905af=this['editor'],_0x577fd8=_0x6905af['model'],_0x2f4931=_0x6905af['locale'];if(!_0x6905af['plugins']['has']('StandardEditingModeEditing'))return;const _0x28a385=_0x6905af['plugins']['get']('TrackChangesEditing'),_0x584d0e='restrictedEditingException',_0x44e024=_0x6905af['commands']['get'](_0x584d0e);_0x28a385['enableCommand'](_0x584d0e,(_0x3438fa,_0x4b22b1={})=>{const _0x4c8648=_0x577fd8['document']['selection'];if(_0x4c8648['isCollapsed'])return void _0x3438fa(_0x4b22b1);const _0x554507=void 0x0!==_0x4b22b1['forceValue']?_0x4b22b1['forceValue']:!_0x44e024['value'];_0x577fd8['change'](()=>{const _0x843868=Array['from'](_0x4c8648['getRanges']());for(const _0x1d0ff2 of _0x843868){const _0x188d9f=_0x554507?[_0x1d0ff2]:io(_0x584d0e,_0x1d0ff2,_0x577fd8);for(const _0x15b838 of _0x188d9f)_0x28a385['markInlineFormat'](_0x15b838,{'commandName':_0x584d0e,'commandParams':[{'forceValue':_0x554507}]});}});}),_0x28a385['_descriptionFactory']['registerDescriptionCallback'](_0x4f25ec=>{if('formatBlock'!=_0x4f25ec['type']&&'formatInline'!=_0x4f25ec['type'])return;const {data:_0x32918b}=_0x4f25ec;return _0x32918b&&_0x32918b['commandName']==_0x584d0e?_0x32918b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f4931,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2f4931,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x43660f{['afterInit'](){const _0x9b94f3=this['editor'];if(!_0x9b94f3['plugins']['has']('Style')||!_0x9b94f3['plugins']['has']('DataSchema'))return;const _0x3e2b32=_0x9b94f3['plugins']['get']('TrackChangesEditing'),_0x4a83f7=_0x9b94f3['locale'],_0xdc2eed=_0x9b94f3['config']['get']('style')||{},_0x61d33f=_0x9b94f3['plugins']['get']('GeneralHtmlSupport'),_0x455548=_0x9b94f3['plugins']['get']('StyleUtils')['normalizeConfig'](_0x9b94f3['plugins']['get']('DataSchema'),_0xdc2eed['definitions']);_0x3e2b32['_enableDefaultAttributesIntegration']('style');const _0x1e76dd=new Set();for(const _0x2c5286 of _0x455548['block']){const _0x545ccc=_0x61d33f['getGhsAttributeNameForElement'](_0x2c5286['element']);_0x1e76dd['add'](_0x545ccc);}const _0x1fa7ac=new Set();for(const _0x32b04b of _0x455548['inline']){const _0x2adc51=_0x61d33f['getGhsAttributeNameForElement'](_0x32b04b['element']);_0x1fa7ac['add'](_0x2adc51);for(const _0x57c23c of _0x32b04b['ghsAttributes'])_0x1fa7ac['add'](_0x57c23c);}for(const _0x42150e of _0x1e76dd)_0x3e2b32['_registerBlockAttribute'](_0x42150e),_0x3e2b32['_descriptionFactory']['registerAttributeLabel'](_0x42150e,o(_0x4a83f7,'FORMAT_STYLE'));for(const _0x103204 of _0x1fa7ac)_0x3e2b32['_registerInlineAttribute'](_0x103204),_0x3e2b32['_descriptionFactory']['registerAttributeLabel'](_0x103204,o(_0x4a83f7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x501013=this['editor'],_0x20e027=_0x501013['locale'];_0x501013['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x92a4b4=>{if('formatBlock'!=_0x92a4b4['type']&&'formatInline'!=_0x92a4b4['type'])return;const {data:_0x241ce4}=_0x92a4b4;return _0x241ce4&&'style'===_0x241ce4['commandName']?_0x241ce4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x20e027,'*Set\x20format:*\x20%0',_0x241ce4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x20e027,'*Remove\x20format:*\x20%0',_0x241ce4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x43660f{['afterInit'](){const _0x53db38=this['editor'],_0x1efd65=_0x53db38['model']['document']['selection'];if(!_0x53db38['plugins']['has']('TableEditing'))return;const _0x1a2f9d=_0x53db38['locale'],_0x4ff48b=_0x53db38['plugins']['get']('TrackChangesEditing'),_0x3ad161=_0x53db38['plugins']['get']('TableUtils');_0x4ff48b['_descriptionFactory']['registerElementLabel']('table',_0x15723f=>o(_0x1a2f9d,'ELEMENT_TABLE',_0x15723f)),this['_setupColumnsRowsFixing'](),_0x4ff48b['enableCommand']('insertTable'),_0x4ff48b['enableCommand']('selectTableRow'),_0x4ff48b['enableCommand']('selectTableColumn');for(const _0xeb44bd of['insertTableRowAbove','insertTableRowBelow']){const _0x498e3b=_0x53db38['commands']['get'](_0xeb44bd);_0x4ff48b['enableCommand'](_0xeb44bd,_0x23d95d=>{_0x53db38['model']['change'](_0x1f2626=>{_0x23d95d();const _0x569629='above'===_0x498e3b['order'],_0x45b7d7=_0x3ad161['getSelectionAffectedTableCells'](_0x1efd65),_0x428a10=_0x3ad161['getRowIndexes'](_0x45b7d7),_0x3f0e7b=_0x569629?_0x428a10['first']-0x1:_0x428a10['last']+0x1,_0x6bedc0=_0x45b7d7[0x0]['findAncestor']('table'),_0x30a538=_0x3ad161['createTableWalker'](_0x6bedc0,{'startRow':_0x3f0e7b,'endRow':_0x3f0e7b}),_0x17b7b1=Array['from'](_0x30a538)['map'](_0x43172d=>_0x1f2626['createRangeOn'](_0x43172d['cell']));_0x4ff48b['markMultiRangeInsertion'](_0x17b7b1,'tableRow');});});}for(const _0x10a62a of['insertTableColumnLeft','insertTableColumnRight']){const _0x2d7328=_0x53db38['commands']['get'](_0x10a62a);_0x4ff48b['enableCommand'](_0x10a62a,_0x2a781e=>{_0x53db38['model']['change'](_0x1e43d5=>{_0x2a781e();const _0x373ad4='left'===_0x2d7328['order'],_0xf2d80c=_0x3ad161['getSelectionAffectedTableCells'](_0x1efd65),_0x28e8fd=_0x3ad161['getColumnIndexes'](_0xf2d80c),_0x11891b=_0x373ad4?_0x28e8fd['first']-0x1:_0x28e8fd['last']+0x1,_0x4a7cae=_0xf2d80c[0x0]['findAncestor']('table'),_0x4550c6=_0x3ad161['createTableWalker'](_0x4a7cae,{'startRow':0x0,'column':_0x11891b,'includeAllSlots':!0x1}),_0x37bed9=Array['from'](_0x4550c6)['map'](_0x14682a=>_0x1e43d5['createRangeOn'](_0x14682a['cell']));_0x4ff48b['markMultiRangeInsertion'](_0x37bed9,'tableColumn');});});}for(const _0x115a3f of['removeTableRow','removeTableColumn']){const _0x4463ff=_0x115a3f['substr'](0xb),_0x3c72a0=_0x4463ff['toLowerCase'](),_0x2c9997=_0x3c72a0['substr'](0x0,0x3)+'span',_0x414d44='table'+_0x4463ff,_0x10e3a7='min'+_0x4463ff,_0x45b744='max'+_0x4463ff;_0x4ff48b['enableCommand'](_0x115a3f,()=>{_0x53db38['model']['change'](_0x4cd183=>{const _0xc30228=_0x3ad161['getSelectionAffectedTableCells'](_0x1efd65),_0x3b61e6=_0xc30228[0x0]['findAncestor']('table');let _0x1c5d7f;if('removeTableRow'==_0x115a3f){const _0x59c59d=_0x3ad161['getRowIndexes'](_0xc30228);_0x1c5d7f={'startRow':_0x59c59d['first'],'endRow':_0x59c59d['last'],'includeAllSlots':!0x0};}else{const _0x5bcb02=_0x3ad161['getColumnIndexes'](_0xc30228);_0x1c5d7f={'startColumn':_0x5bcb02['first'],'endColumn':_0x5bcb02['last'],'includeAllSlots':!0x0};}const _0x399215=_0x3ad161['createTableWalker'](_0x3b61e6,_0x1c5d7f),_0xad1705=Array['from'](_0x399215)['map'](({cell:_0x3f3ff2})=>_0x3f3ff2),_0x74e672=Ee(_0xad1705['filter'](_0x33d33b=>_0x33d33b['hasAttribute'](_0x2c9997))),_0x38b990=Ee(_0xad1705['filter'](_0x1f9d91=>!_0x1f9d91['hasAttribute'](_0x2c9997)))['map'](_0x309782=>_0x4cd183['createRangeOn'](_0x309782)),_0x3fcdb7=_0x4ff48b['markMultiRangeDeletion'](_0x38b990,_0x414d44);if(_0x3fcdb7&&('tableRow'==_0x3fcdb7['subType']||'tableColumn'==_0x3fcdb7['subType'])){const _0xca3ffc=this['_getSuggestionCoords'](_0x3fcdb7);for(const _0x18df0c of _0x74e672){const _0x36de63=_0x4cd183['createRangeOn'](_0x18df0c),_0x3c7857=_0x3ad161['getCellLocation'](_0x18df0c),_0x457d82=_0x18df0c['getAttribute'](_0x2c9997)-0x1,_0x4a18c6=_0xca3ffc[_0x10e3a7],_0x15532f=_0xca3ffc[_0x45b744];_0x4a18c6<=_0x3c7857[_0x3c72a0]&&_0x3c7857[_0x3c72a0]+_0x457d82<=_0x15532f&&_0x3fcdb7['addRange'](_0x36de63);}}});});}function _0x47f64b(_0x340f45){const _0x43238f=Array['from'](_0x1efd65['getRanges']())['map'](_0x6e49bd=>_0x30a6a3['fromRange'](_0x6e49bd));_0x53db38['model']['change'](_0x40a12c=>{const _0x5e5e96=_0x40a12c['batch'];_0x340f45=_0x340f45['filter'](_0x2810e8=>'$graveyard'!=_0x2810e8['root']['rootName']),_0x40a12c['setSelection'](_0x340f45),_0x53db38['commands']['get']('removeTableRow')['refresh'](),_0x53db38['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x53db38['model']['enqueueChange'](()=>{_0x53db38['model']['enqueueChange'](_0x5e5e96,_0x51294e=>{const _0x236f55=_0x43238f['filter'](_0x493343=>'$graveyard'!=_0x493343['root']['rootName']);_0x236f55['length']>0x0&&_0x51294e['setSelection'](_0x236f55);for(const _0x5e4862 of _0x43238f)_0x5e4862['detach']();});});});}function _0x2c70b5(_0x4b72c6){_0x53db38['model']['change'](_0x509b74=>{const _0xde6875=Array['from'](_0x1efd65['getRanges']())['map'](_0x29340e=>_0x30a6a3['fromRange'](_0x29340e)),_0x4966eb=[];for(const _0x111485 of _0x4b72c6)for(const _0x16e241 of _0x111485['getItems']({'shallow':!0x0}))_0x4966eb['push'](_0x16e241);for(const _0x126b59 of _0x4966eb)'$graveyard'!=_0x126b59['root']['rootName']&&(_0x509b74['setSelection'](_0x509b74['createPositionAt'](_0x126b59,0x0)),_0x53db38['commands']['get']('removeTableColumn')['refresh'](),_0x53db38['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42d139=_0xde6875['filter'](_0x58d314=>'$graveyard'!=_0x58d314['root']['rootName']);_0x42d139['length']>0x0&&_0x509b74['setSelection'](_0x42d139);for(const _0x4a3db0 of _0xde6875)_0x4a3db0['detach']();});}function _0x329fcc(_0x4a5bf2,_0xd9726f){return _0xd9726f['every'](_0x19acb3=>_0x4a5bf2['some'](_0x4693a3=>_0x4693a3['end']['isEqual'](_0x19acb3['start'])||_0x19acb3['end']['isEqual'](_0x4693a3['start'])));}function _0x519ba0(_0x1e9f99,_0x3d416c){return _0x1e9f99['some'](_0x1b1c18=>_0x3d416c['some'](_0x237185=>_0x1b1c18['end']['isTouching'](_0x237185['start'])));}_0x53db38['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2d8864,_0x48d1fc,_0x1ad1ac)=>{if(!_0x1ad1ac['options']['showSuggestionHighlights'])return;const _0x2b8627=_0x48d1fc['item'];if(!_0x2b8627)return;const _0x23c04d=_0x1ad1ac['mapper']['toViewElement'](_0x2b8627);function _0xfa6a8f(_0x4015a2){return Array['isArray'](_0x4015a2)?_0x4015a2:[_0x4015a2];}_0x23c04d&&'tableCell'===_0x2b8627['name']&&_0x2b9a9f(_0x23c04d,_0x1ad1ac['writer'],(_0x22f11b,_0xbac44d,_0x5d795f)=>_0x5d795f['addClass'](_0xfa6a8f(_0xbac44d['classes']),_0x22f11b),(_0xa77e29,_0x58ccaf,_0x17b5b9)=>_0x17b5b9['removeClass'](_0xfa6a8f(_0x58ccaf['classes']),_0xa77e29));},{'priority':'highest'}),_0x4ff48b['_descriptionFactory']['registerDescriptionCallback'](_0x4d0741=>{if('insertion'!=_0x4d0741['type']&&'deletion'!=_0x4d0741['type'])return;const _0x5acab0=_0x4d0741['getContainedElement']();if(null!=_0x5acab0&&_0x5acab0['is']('element','table')){if('insertion'==_0x4d0741['type']){const _0x1731c3=_0x4d0741['getItems']()['filter'](_0x469a5e=>_0x469a5e['is']('$textProxy'))['map'](_0x5262b6=>_0x5262b6['data']);if(_0x1731c3['length'])return{'type':'insertion','content':o(_0x1a2f9d,'*Insert:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1731c3['join']('\x20')+'\x22'))};}if('deletion'==_0x4d0741['type']){const _0x367b06=_0x4d0741['getItems']()['filter'](_0x300d3b=>_0x300d3b['is']('$textProxy'))['map'](_0x5c9a6c=>_0x5c9a6c['data']);if(_0x367b06['length'])return{'type':'deletion','content':o(_0x1a2f9d,'*Remove:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x367b06['join']('\x20')+'\x22'))};}}}),_0x4ff48b['_descriptionFactory']['registerDescriptionCallback'](_0x13a9b1=>{if('tableRow'==_0x13a9b1['subType']){const _0xde8462=_0x13a9b1['getItems']()['filter'](_0x3ef870=>_0x3ef870['is']('$textProxy'))['map'](_0x5ab1b0=>_0x5ab1b0['data']),_0x457c19=this['_getSuggestionCoords'](_0x13a9b1),_0x42fba2=_0x457c19['maxRow']-_0x457c19['minRow']+0x1;if('insertion'==_0x13a9b1['type'])return _0xde8462['length']?{'type':'insertion','content':o(_0x1a2f9d,'*Insert:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x42fba2,'\x22'+_0xde8462['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1a2f9d,'*Insert:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_ROW',_0x42fba2))};if('deletion'==_0x13a9b1['type'])return _0xde8462['length']?{'type':'deletion','content':o(_0x1a2f9d,'*Remove:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x42fba2,'\x22'+_0xde8462['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1a2f9d,'*Remove:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_ROW',_0x42fba2))};}if('tableColumn'==_0x13a9b1['subType']){const _0x307ab1=_0x13a9b1['getItems']()['filter'](_0x3f3d1e=>_0x3f3d1e['is']('$textProxy'))['map'](_0x23ff50=>_0x23ff50['data']),_0xbbf052=this['_getSuggestionCoords'](_0x13a9b1),_0x23296e=_0xbbf052['maxColumn']-_0xbbf052['minColumn']+0x1;if('insertion'==_0x13a9b1['type'])return _0x307ab1['length']?{'type':'insertion','content':o(_0x1a2f9d,'*Insert:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23296e,'\x22'+_0x307ab1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1a2f9d,'*Insert:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_COLUMN',_0x23296e))};if('deletion'==_0x13a9b1['type'])return _0x307ab1['length']?{'type':'deletion','content':o(_0x1a2f9d,'*Remove:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x23296e,'\x22'+_0x307ab1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1a2f9d,'*Remove:*\x20%0',o(_0x1a2f9d,'ELEMENT_TABLE_COLUMN',_0x23296e))};}}),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x47f64b),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x47f64b),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2c70b5),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2c70b5),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x329fcc),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x329fcc),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x519ba0),_0x4ff48b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x519ba0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x426a7e=this['editor'],_0x2e3795=_0x426a7e['model']['document']['selection'];return(_0x109c72,_0x16212e)=>{_0x426a7e['model']['change'](_0x3b8386=>{const {commandName:_0x333707,commandParams:_0x4f4b07}=_0x16212e;let _0x257382=_0x109c72[0x0]['end']['nodeBefore'];_0x4f4b07&&_0x4f4b07[0x0]&&!0x1===_0x4f4b07[0x0]['forceValue']&&(_0x257382=_0x109c72[0x0]['start']['nodeAfter']);const _0x3c7c51=_0x3b8386['createRangeIn'](_0x257382);if('$graveyard'==_0x3c7c51['root']['rootName'])return;const _0x2cb412=Array['from'](_0x2e3795['getRanges']())['map'](_0x2cacc1=>_0x30a6a3['fromRange'](_0x2cacc1));_0x3b8386['setSelection'](_0x3c7c51),_0x426a7e['commands']['get'](_0x333707)['refresh'](),_0x4f4b07['push']({'forceDefaultExecution':!0x0}),_0x426a7e['execute'](_0x333707,..._0x4f4b07);const _0x380abf=_0x2cb412['filter'](_0x511666=>'$graveyard'!=_0x511666['root']['rootName']);_0x380abf['length']>0x0&&_0x3b8386['setSelection'](_0x380abf);for(const _0x366504 of _0x2cb412)_0x366504['detach']();});};}['_getCoordsForCells'](_0x42f801){const _0x545bd2=this['editor']['plugins']['get']('TableUtils');let _0x595985=Number['MAX_SAFE_INTEGER'],_0x2e9901=Number['MIN_SAFE_INTEGER'],_0x5937a4=Number['MAX_SAFE_INTEGER'],_0x467011=Number['MIN_SAFE_INTEGER'];for(const _0x306db3 of _0x42f801){if('$graveyard'==_0x306db3['root']['rootName'])continue;const {row:_0x3e7ed8,column:_0x3a9342}=_0x545bd2['getCellLocation'](_0x306db3),_0x52ed68=_0x306db3['hasAttribute']('rowspan')?_0x306db3['getAttribute']('rowspan')-0x1:0x0,_0x2ff31c=_0x306db3['hasAttribute']('colspan')?_0x306db3['getAttribute']('colspan')-0x1:0x0;_0x595985=_0x3e7ed8<_0x595985?_0x3e7ed8:_0x595985,_0x2e9901=_0x3e7ed8+_0x52ed68>_0x2e9901?_0x3e7ed8+_0x52ed68:_0x2e9901,_0x5937a4=_0x3a9342<_0x5937a4?_0x3a9342:_0x5937a4,_0x467011=_0x3a9342+_0x2ff31c>_0x467011?_0x3a9342+_0x2ff31c:_0x467011;}return{'minRow':_0x595985,'maxRow':_0x2e9901,'minColumn':_0x5937a4,'maxColumn':_0x467011};}['_setupColumnsRowsFixing'](){const _0x132753=this['editor'],_0x4cae16=_0x132753['plugins']['get']('TrackChangesEditing'),_0x42a793=_0x132753['plugins']['get']('TableUtils');_0x132753['model']['document']['on']('change:data',()=>{const _0x186df8=Array['from'](_0x132753['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x308597,data:_0x5c1126}of _0x186df8){const {group:_0x8fa133,id:_0x5d91b6,subType:_0x2b5c62}=_0x4cae16['_splitMarkerName'](_0x308597);if('suggestion'!=_0x8fa133)continue;if(null!=_0x5c1126['oldRange'])continue;const _0xb661b9=_0x4cae16['getSuggestion'](_0x5d91b6);this['_tablePostFixingSubtypes']['includes'](_0x2b5c62)&&this['_tableSuggestions']['add'](_0xb661b9);}},{'priority':'low'});const _0x509be6=(_0x46beb2,_0x2c9264)=>{let _0x574a77=!0x1;const _0x1ef094=_0x2c9264['createRangeOn'](_0x46beb2),_0x2662e1=_0x46beb2['findAncestor']('table'),_0x6032c8=_0x42a793['getCellLocation'](_0x46beb2);for(const _0x28fadb of this['_tableSuggestions']){const _0x5ef36d=_0x28fadb['subType'],_0x2e3ccf=_0x5ef36d['startsWith']('tablePaste'),_0x2450aa=_0x5ef36d['substr'](_0x2e3ccf?0xa:0x5),_0x13bf63=_0x2450aa['toLowerCase'](),_0x99482a=_0x13bf63['substr'](0x0,0x3)+'span',_0x421007='min'+_0x2450aa,_0x482261='max'+_0x2450aa;if(!_0x28fadb['isInContent'])continue;if(_0x2662e1!=_0x28fadb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x28fadb['isIntersectingWithRange'](_0x1ef094))continue;const _0x48e525=_0x46beb2['hasAttribute'](_0x99482a)?_0x46beb2['getAttribute'](_0x99482a)-0x1:0x0,_0xb1ea06=this['_getSuggestionCoords'](_0x28fadb),_0x391198=_0xb1ea06[_0x421007],_0x59e7f5=_0xb1ea06[_0x482261];_0x391198<=_0x6032c8[_0x13bf63]&&_0x6032c8[_0x13bf63]+_0x48e525<=_0x59e7f5&&(_0x28fadb['addRange'](_0x1ef094),_0x574a77=!0x0);}return _0x574a77;};_0x132753['model']['document']['registerPostFixer'](_0x3f0fac=>{let _0x5222ee=!0x1;for(const _0x1aca24 of _0x132753['model']['document']['differ']['getChanges']())if('insert'==_0x1aca24['type']){if('tableRow'==_0x1aca24['name']){for(const _0x561363 of _0x1aca24['position']['nodeAfter']['getChildren']())_0x5222ee=_0x5222ee||_0x509be6(_0x561363,_0x3f0fac);}else'tableCell'==_0x1aca24['name']&&(_0x5222ee=_0x5222ee||_0x509be6(_0x1aca24['position']['nodeAfter'],_0x3f0fac));}return _0x5222ee;});}['_getSuggestionCoords'](_0x35d58f){return this['_getCoordsForCells'](_0x35d58f['getRanges']()['map'](_0x2d38bf=>_0x2d38bf['start']['nodeAfter']));}constructor(_0x1e6261){super(_0x1e6261),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x1fcc73){return Array['from'](new Set(_0x1fcc73)['values']());}class St extends _0x43660f{static get['requires'](){return[jt];}['afterInit'](){const _0x36158b=this['editor'],_0x13cbbf=_0x36158b['model']['document']['selection'],_0x16f57a=_0x36158b['locale'];if(!_0x36158b['plugins']['has']('TableEditing'))return;const _0xbbc2b3=_0x36158b['plugins']['get']('TrackChangesEditing'),_0x5b8e65=_0x36158b['plugins']['get']('TableUtils'),_0x1fc43a=_0x36158b['plugins']['get'](jt);_0x1fc43a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xbbc2b3['enableCommand']('mergeTableCells',()=>{const _0x30109e=_0x5b8e65['getSelectionAffectedTableCells'](_0x36158b['model']['document']['selection']);_0x36158b['model']['change'](()=>{_0xbbc2b3['markMultiRangeBlockFormat'](_0x30109e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x36158b['commands']['get']('mergeTableCells')['on']('execute',(_0x1a4552,_0x833b05)=>{_0x36158b['commands']['get']('trackChanges')['value']&&(_0x833b05['length']>0x0&&_0x833b05[_0x833b05['length']-0x1]&&_0x833b05[_0x833b05['length']-0x1]['forceDefaultExecution']||_0xbbc2b3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1a4552['stop']());},{'priority':'highest'});for(const _0xa27496 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x57e58c=_0x36158b['commands']['get'](_0xa27496);_0xbbc2b3['enableCommand'](_0xa27496,()=>{const _0x523f3f=_0x36158b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4f0fc0=>_0x4f0fc0['is']('element','tableCell')),_0x407a7c=_0x57e58c['value'];_0x36158b['model']['change'](()=>{_0xbbc2b3['markMultiRangeBlockFormat']([_0x523f3f,_0x407a7c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4198ba of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1450a1=_0x36158b['commands']['get'](_0x4198ba);_0xbbc2b3['enableCommand'](_0x4198ba,()=>{const _0x2a5bd4=_0x5b8e65['getSelectionAffectedTableCells'](_0x36158b['model']['document']['selection'])[0x0],_0x8c7daa=_0x2a5bd4['findAncestor']('table'),{column:_0x5414e3,row:_0x51a32f}=_0x5b8e65['getCellLocation'](_0x2a5bd4);let _0x211ec2=[];if('horizontally'==_0x1450a1['direction']){const _0x33057f=_0x5b8e65['createTableWalker'](_0x8c7daa,{'startRow':_0x51a32f,'endRow':_0x51a32f,'includeAllSlots':!0x0});_0x211ec2=Array['from'](_0x33057f)['map'](_0x134e89=>_0x134e89['cell']);}else{const _0x33d50a=_0x5b8e65['createTableWalker'](_0x8c7daa,{'column':_0x5414e3,'includeAllSlots':!0x0});_0x211ec2=Array['from'](_0x33d50a)['map'](_0x282b40=>_0x282b40['cell']);}_0x36158b['model']['change'](_0x10f22c=>{_0xbbc2b3['markBlockFormat'](_0x10f22c['createRangeOn'](_0x2a5bd4),{'commandName':_0x4198ba,'commandParams':[]},_0x211ec2,_0x4198ba);});});}_0xbbc2b3['_descriptionFactory']['registerDescriptionCallback'](_0x26b404=>{if('formatBlock'!=_0x26b404['type']&&'formatInline'!=_0x26b404['type'])return;const {data:_0xc1f928}=_0x26b404;return _0xc1f928&&'mergeTableCells'==_0xc1f928['commandName']?{'type':'format','content':o(_0x16f57a,'*Merge\x20cells*')}:void 0x0;}),_0xbbc2b3['_descriptionFactory']['registerDescriptionCallback'](_0x367b47=>{if('formatBlock'!=_0x367b47['type']&&'formatInline'!=_0x367b47['type'])return;const {data:_0x38990e}=_0x367b47;return _0x38990e?'splitTableCellVertically'==_0x38990e['commandName']?{'type':'format','content':o(_0x16f57a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x38990e['commandName']?{'type':'format','content':o(_0x16f57a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x45011a=_0x1fc43a['_acceptFormatSuggestionCallbackFactory']();for(const _0x184f42 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xbbc2b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x184f42,'accept',_0x45011a);for(const _0x186045 of['splitTableCellVertically','splitTableCellHorizontally'])_0xbbc2b3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x186045,'accept',_0x45011a);_0xbbc2b3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x44a55f=>{_0x36158b['model']['change'](_0x2a0c1b=>{const _0x166958=Array['from'](_0x13cbbf['getRanges']())['map'](_0x539ff1=>_0x30a6a3['fromRange'](_0x539ff1));_0x2a0c1b['setSelection'](_0x44a55f),_0x36158b['commands']['get']('mergeTableCells')['refresh'](),_0x36158b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3e25d6=_0x166958['filter'](_0x51ebb6=>'$graveyard'!=_0x51ebb6['root']['rootName']);_0x3e25d6['length']>0x0&&_0x2a0c1b['setSelection'](_0x3e25d6);for(const _0x487f59 of _0x166958)_0x487f59['detach']();});});for(const _0x5e1db1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x380582=_0x36158b['commands']['get'](_0x5e1db1);_0x380582['on']('set:isEnabled',(_0x5ab7a6,_0x3946f1,_0x3f4103)=>{if(_0x3f4103){const _0x48b81f=_0x36158b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5cae5a=>_0x5cae5a['is']('element','tableCell'));this['_areMergableCells'](_0x380582['value'],_0x48b81f)||(_0x5ab7a6['return']=!0x1,_0x5ab7a6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3862b4=this['editor']['commands']['get']('mergeTableCells'),_0x36c0f1=this['editor']['plugins']['get']('TableUtils');if(!_0x3862b4['isEnabled'])return!0x1;const _0x33e64e=_0x36c0f1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x55f018 of _0x33e64e)for(const _0x2367e1 of _0x33e64e)if(_0x55f018!=_0x2367e1&&!this['_areMergableCells'](_0x55f018,_0x2367e1))return!0x1;return!0x0;}['_areMergableCells'](_0x2895d3,_0x28f858){const _0x196851=this['editor']['plugins']['get']('TrackChangesEditing'),_0x421816=this['editor']['model']['createRangeOn'](_0x2895d3),_0x555b94=this['editor']['model']['createRangeOn'](_0x28f858),_0x190a13=new Set(),_0x134e93=new Set();for(const _0x2373e4 of _0x196851['getSuggestions']())if(('insertion'==_0x2373e4['type']||'deletion'==_0x2373e4['type']||'mergeTableCells'==_0x2373e4['subType'])&&_0x2373e4['isInContent']){for(const _0xa2111e of _0x2373e4['getRanges']())_0xa2111e['containsRange'](_0x421816,!0x0)&&_0x190a13['add'](_0x2373e4['type']+':'+_0x2373e4['author']['id']),_0xa2111e['containsRange'](_0x555b94,!0x0)&&_0x134e93['add'](_0x2373e4['type']+':'+_0x2373e4['author']['id']);}if(_0x190a13['size']!=_0x134e93['size'])return!0x1;for(const _0x293cf1 of _0x190a13)if(!_0x134e93['has'](_0x293cf1))return!0x1;return!0x0;}}class At extends _0x43660f{static get['requires'](){return[jt];}['afterInit'](){const _0xf1642a=this['editor'];if(!_0xf1642a['plugins']['has']('TableEditing'))return;const _0x5dda4d=_0xf1642a['locale'],_0xed1cc8=_0xf1642a['plugins']['get']('TrackChangesEditing');_0xed1cc8['_enableDefaultAttributesIntegration']('setTableRowHeader',[],['headingRows']),_0xed1cc8['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],['headingColumns']),_0xed1cc8['_descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5dda4d,'FORMAT_HEADER_ROW')),_0xed1cc8['_descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5dda4d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x34d707=this['editor']['plugins']['get']('TrackChangesEditing'),_0x493c92=this['editor']['plugins']['get']('TableUtils'),_0x27f297=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x755b6d({showActiveMarker:_0x32d348=!0x0,setDataAttribute:_0x337397=!0x0}={}){return(_0x2decf7,_0x3af884,_0xf4ea51)=>{const {type:_0x3a03c9,id:_0x546618}=_0x34d707['_splitMarkerName'](_0x3af884['markerName']),_0x5804cc=_0x34d707['getSuggestion'](_0x546618),_0xd38d24=_0x5804cc['data'];if('formatBlock'!=_0x5804cc['type']||!_0xd38d24||'setTableColumnHeader'!=_0xd38d24['commandName'])return;if(_0x3af884['item'])return void _0x2decf7['stop']();if(!_0xf4ea51['consumable']['consume'](_0x3af884['markerRange'],_0x2decf7['name']))return;const _0x3fe66d=_0x3af884['markerRange']['start']['nodeAfter'],_0x3a9bc2=_0x3af884['markerRange']['end']['nodeBefore'],_0x2320c5=_0x3fe66d['parent']['parent'],{column:_0x4e2f1f}=_0x493c92['getCellLocation'](_0x3fe66d),{column:_0x121aeb}=_0x493c92['getCellLocation'](_0x3a9bc2);for(let _0x3d200a=_0x4e2f1f;_0x3d200a<=_0x121aeb;_0x3d200a++){const _0x232952=_0x493c92['createTableWalker'](_0x2320c5,{'column':_0x3d200a,'includeAllSlots':!0x1});for(const _0x4ea352 of _0x232952){const _0x421292=_0x4ea352['cell'],_0x1baae3=_0xf4ea51['mapper']['toViewElement'](_0x421292);_0xf4ea51['writer']['addClass']('ck-suggestion-marker-'+_0x3a03c9,_0x1baae3),_0x337397&&_0xf4ea51['writer']['setAttribute']('data-suggestion',_0x546618,_0x1baae3),_0xf4ea51['mapper']['bindElementToMarker'](_0x1baae3,_0x3af884['markerName']),_0x32d348&&(_0x34d707['activeMarkers']['includes'](_0x3af884['markerName'])?_0xf4ea51['writer']['addClass']('ck-suggestion-marker--active',_0x1baae3):_0xf4ea51['writer']['removeClass']('ck-suggestion-marker--active',_0x1baae3));}}};}_0x34d707['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x27f297),_0x34d707['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x27f297),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x755b6d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7d7171,_0x1910e5,_0x450ca9)=>{_0x450ca9['options']['showSuggestionHighlights']&&_0x755b6d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x7d7171,_0x1910e5,_0x450ca9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3c5d0c,_0x15088f,_0x4e42ac)=>{const {type:_0x214f0f,id:_0x8712d9}=_0x34d707['_splitMarkerName'](_0x15088f['markerName']),_0x5e53af=_0x34d707['getSuggestion'](_0x8712d9),_0x17532f=_0x5e53af['data'];if('formatBlock'!=_0x5e53af['type']||!_0x17532f||'setTableColumnHeader'!=_0x17532f['commandName'])return;const _0x4337d0=_0x4e42ac['mapper']['markerNameToElements'](_0x15088f['markerName']);if(_0x4337d0){for(const _0x2e7b94 of _0x4337d0)_0x4e42ac['writer']['removeClass']('ck-suggestion-marker-'+_0x214f0f,_0x2e7b94),_0x4e42ac['writer']['removeClass']('ck-suggestion-marker--active',_0x2e7b94),_0x4e42ac['writer']['removeAttribute']('data-suggestion',_0x2e7b94),_0x4e42ac['mapper']['unbindElementFromMarkerName'](_0x2e7b94,_0x15088f['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ca9b4=this['editor'],_0x44f88a=_0x5ca9b4['locale'];function _0x19bb26(_0x29d879){return{'type':'format','content':o(_0x44f88a,'*Format:*\x20%0',_0x29d879)};}_0x5ca9b4['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5eb596=>{if('formatBlock'!=_0x5eb596['type'])return;const {data:_0x44d571}=_0x5eb596;if(_0x44d571){if('setTableRowHeader'==_0x44d571['commandName']){const _0x3898ac=_0x44d571['commandParams'][0x0]['forceValue'];return _0x19bb26(o(_0x44f88a,_0x3898ac?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x44d571['commandName']){const _0x3730de=_0x44d571['commandParams'][0x0]['forceValue'];return _0x19bb26(o(_0x44f88a,_0x3730de?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x196a06=>[_0x196a06,null]));class It extends _0x43660f{static get['requires'](){return[jt];}['afterInit'](){const _0x2b4c55=this['editor'];if(!_0x2b4c55['plugins']['has']('TableClipboard'))return;const _0x368c62=_0x2b4c55['plugins']['get']('TrackChangesEditing'),_0x5d91f7=_0x2b4c55['plugins']['get']('TableUtils'),_0xa3e2a3=_0x2b4c55['plugins']['get'](jt),_0x31c52f=_0x2b4c55['plugins']['get']('TableClipboard');_0xa3e2a3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2b4c55['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2b4c55['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4e88d7=null;_0x2b4c55['model']['on']('insertContent',(_0x324fe9,_0x175922)=>{const [_0x1e7046,_0x2e3ee8]=_0x175922,_0x55755c=_0x175922[_0x175922['length']-0x1];_0x55755c&&_0x55755c['forceDefaultExecution']||_0x368c62['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x461319,_0x49a26d,_0x220510,_0x2eba64,_0x3023ee){if(_0x49a26d&&!_0x49a26d['is']('documentSelection'))return!0x1;const _0x5d5f2f=_0x3023ee['getTableIfOnlyTableInContent'](_0x461319,_0x220510);if(!_0x5d5f2f||!he(_0x5d5f2f,void 0x0,_0x2eba64))return!0x1;const _0x2090ba=_0x2eba64['getSelectionAffectedTableCells'](_0x220510['document']['selection']);if(!_0x2090ba['length'])return!0x1;const _0x46712d=_0x2090ba[0x0]['findAncestor']('table'),_0x2881c7=_0x2eba64['getRowIndexes'](_0x2090ba),_0xc8f7bb=_0x2eba64['getColumnIndexes'](_0x2090ba),_0x546cfb={'startRow':_0x2881c7['first'],'endRow':_0x2881c7['last'],'startColumn':_0xc8f7bb['first'],'endColumn':_0xc8f7bb['last']};return 0x1==_0x2090ba['length']&&(_0x546cfb['endRow']+=_0x2eba64['getRows'](_0x5d5f2f)-0x1,_0x546cfb['endColumn']+=_0x2eba64['getColumns'](_0x5d5f2f)-0x1),he(_0x46712d,_0x546cfb,_0x2eba64);}(_0x1e7046,_0x2e3ee8,_0x2b4c55['model'],_0x5d91f7,_0x31c52f)&&(_0x324fe9['stop'](),_0x4e88d7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2b4c55['model']['change'](()=>{_0x2b4c55['model']['insertContent'](_0x175922[0x0],_0x175922[0x1],_0x175922[0x2],{'forceDefaultExecution':!0x0});const _0x559019=_0x461740(),{rowInsertionRanges:_0x2fb54d,columnInsertionRanges:_0x2dd7c0,insertionRanges:_0x269870,deletionRanges:_0xfd1b6c,cells:_0x1183e9}=_0x4e88d7;_0x2fb54d['length']&&_0x368c62['markMultiRangeInsertion'](_0x2fb54d,'tablePasteRow',{'tablePasteChainId':_0x559019}),_0x2dd7c0['length']&&_0x368c62['markMultiRangeInsertion'](_0x2dd7c0,'tablePasteColumn',{'tablePasteChainId':_0x559019}),_0x269870['length']&&(_0x368c62['markMultiRangeInsertion'](_0x269870,'tablePaste',{'tablePasteChainId':_0x559019,'skipNestingCheck':!0x0}),_0x269870['forEach'](_0xc12fc6=>{var _0x16d04b;return null===(_0x16d04b=_0xc12fc6['detach'])||void 0x0===_0x16d04b?void 0x0:_0x16d04b['call'](_0xc12fc6);})),_0xfd1b6c['length']&&(_0x368c62['markMultiRangeDeletion'](_0xfd1b6c,'tablePaste',{'tablePasteChainId':_0x559019,'skipNestingCheck':!0x0}),_0xfd1b6c['forEach'](_0x48e463=>{var _0x2c7c14;return null===(_0x2c7c14=_0x48e463['detach'])||void 0x0===_0x2c7c14?void 0x0:_0x2c7c14['call'](_0x48e463);}));const _0x1893d0=_0x368c62['markMultiRangeBlockFormat'](_0x1183e9['map'](({element:_0x5d38be})=>_0x5d38be),{'formatGroupId':_0x461740()},[],'tablePasteCell',{'tablePasteChainId':_0x559019});if(_0x1893d0){const _0x2374b0=_0x1893d0['getMarkers'](),_0x1c1635=[];for(const {element:_0x7863d3,attributes:_0x39745e}of _0x1183e9){if(!_0x39745e)continue;const _0x89a949=_0x2b4c55['model']['createRangeOn'](_0x7863d3),_0x1e3ef9=_0x2374b0['find'](_0x1cb353=>_0x1cb353['getRange']()['isEqual'](_0x89a949));_0x1e3ef9&&_0x1c1635['push']([_0x1e3ef9['name'],_0x39745e]);}_0x1c1635['length']&&_0x1893d0['setAttribute']('markerAttributes',Object['fromEntries'](_0x1c1635));}_0x4e88d7=null;}));},{'priority':_0x43c881['high']+0xa}),_0x2b4c55['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x37c4f8,_0x7625d5)=>{const [_0x2d18ca,_0x36b18b,,_0x2cd3c3]=_0x7625d5;if(!_0x4e88d7)return;_0x37c4f8['stop']();const _0x570339=_0x2d18ca['cell'],_0x437944=_0x36b18b,_0x15d1a9=Pe(_0x570339),_0x412e10=Pe(_0x437944);_0x37c4f8['return']=_0x570339;let _0x445a4d=null,_0x88a083=null;if(_0x412e10||_0x15d1a9){if(_0x15d1a9&&!_0x412e10){_0x2cd3c3['remove'](_0x570339['getChild'](0x0));for(const _0x38ebf4 of Array['from'](_0x437944['getChildren']()))_0x2cd3c3['insert'](_0x38ebf4,_0x570339,'end');const _0x574112=_0x4e88d7['rowInsertionIndexes']['includes'](_0x2d18ca['row']),_0x620611=_0x4e88d7['columnInsertionIndexes']['includes'](_0x2d18ca['column']);_0x574112||_0x620611||(_0x445a4d=_0x30a6a3['fromRange'](_0x2cd3c3['createRangeIn'](_0x570339)));}else _0x412e10&&!_0x15d1a9&&(_0x88a083=_0x2cd3c3['createRangeIn'](_0x570339));}else{const _0x56aed8=_0x2cd3c3['createElement']('tableCellSuggestion'),_0x84e884=_0x2cd3c3['createElement']('tableCellSuggestion');_0x2cd3c3['wrap'](_0x2cd3c3['createRangeIn'](_0x570339),_0x84e884),_0x2cd3c3['insert'](_0x56aed8,_0x570339,0x0);for(const _0x5d3f19 of Array['from'](_0x437944['getChildren']()))_0x2cd3c3['insert'](_0x5d3f19,_0x56aed8,'end');_0x445a4d=_0x30a6a3['fromRange'](_0x2cd3c3['createRangeOn'](_0x56aed8)),_0x88a083=_0x30a6a3['fromRange'](_0x2cd3c3['createRangeOn'](_0x84e884));}const _0x134428=Array['from'](_0x437944['getAttributes']())['filter'](([_0x562283])=>ge['includes'](_0x562283));_0x4e88d7['cells']['push']({'element':_0x570339,'attributes':_0x134428['length']?Object['fromEntries'](_0x134428):null}),_0x445a4d&&_0x4e88d7['insertionRanges']['push'](_0x445a4d),_0x88a083&&_0x4e88d7['deletionRanges']['push'](_0x88a083);},{'priority':'high'}),_0x5d91f7['on']('insertColumns',(_0x577382,_0x576def)=>{const [_0x265a59,_0x4056d8={}]=_0x576def;if(!_0x4e88d7)return;const _0x5b7080=_0x4056d8['at']||0x0,_0x307629=_0x4056d8['columns']||0x1;_0x4e88d7['columnInsertionIndexes']=new Array(_0x307629)['fill'](_0x5b7080)['map']((_0x31bc89,_0x4c9fdf)=>_0x31bc89+_0x4c9fdf);for(const {cell:_0x197a88}of _0x5d91f7['createTableWalker'](_0x265a59,{'startColumn':_0x5b7080,'endColumn':_0x5b7080+_0x307629-0x1}))_0x4e88d7['columnInsertionRanges']['push'](_0x2b4c55['model']['createRangeOn'](_0x197a88));},{'priority':'low'}),_0x5d91f7['on']('insertRows',(_0x92aac5,_0x6dffed)=>{const [_0xe6f7ca,_0x4f4532={}]=_0x6dffed;if(!_0x4e88d7)return;const _0x4ea0d3=_0x4f4532['at']||0x0,_0x3a1818=_0x4f4532['rows']||0x1;_0x4e88d7['rowInsertionIndexes']=new Array(_0x3a1818)['fill'](_0x4ea0d3)['map']((_0x24e67a,_0x18e48b)=>_0x24e67a+_0x18e48b);for(const {cell:_0x4a20c6}of _0x5d91f7['createTableWalker'](_0xe6f7ca,{'startRow':_0x4ea0d3,'endRow':_0x4ea0d3+_0x3a1818-0x1}))_0x4e88d7['rowInsertionRanges']['push'](_0x2b4c55['model']['createRangeOn'](_0x4a20c6));},{'priority':'low'}),_0x368c62['_descriptionFactory']['registerDescriptionCallback'](_0xe9cf28=>{if(_0xe9cf28['subType']&&_0xe9cf28['subType']['startsWith']('tablePaste'))return _0xe9cf28['previous']?{}:{'type':'insertion','content':o(_0x2b4c55['locale'],'*Replace\x20table\x20cells*')};});const _0x1c9d32=()=>!0x1;for(const _0x68080d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x368c62['_suggestionFactory']['registerCustomCallback']('insertion',_0x68080d,'join',_0x1c9d32),_0x368c62['_suggestionFactory']['registerCustomCallback']('deletion',_0x68080d,'join',_0x1c9d32),_0x368c62['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x68080d,'join',_0x1c9d32);_0x368c62['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1c9d32),_0x368c62['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x35b471,_0x23734d,_0x3131b8)=>{const _0x28b92b=_0x35b471['map'](_0xe30a35=>_0xe30a35['getContainedElement']())['filter'](_0x4f120f=>_0x4f120f),_0x8dd260=new Map(_0x28b92b['map'](_0x9abee2=>[_0x9abee2,null]));if(_0x4e88d7){for(const {element:_0xb25eb9,attributes:_0x20f1b8}of _0x4e88d7['cells'])_0x20f1b8&&_0x8dd260['set'](_0xb25eb9,_0x20f1b8);}else{if(_0x3131b8&&_0x3131b8['markerAttributes'])for(const [_0x7cc5e6,_0x388333]of Object['entries'](_0x3131b8['markerAttributes'])){const _0x3e0711=_0x2b4c55['model']['markers']['get'](_0x7cc5e6),_0x445fe4=_0x3e0711?_0x3e0711['getRange']()['getContainedElement']():null;_0x445fe4&&_0x8dd260['set'](_0x445fe4,_0x388333);}}_0x2b4c55['model']['change'](_0x41448d=>{for(const [_0xc43672,_0x3d4bca]of _0x8dd260)_0x41448d['setAttributes']({...Ce,..._0x3d4bca},_0xc43672);});});const _0x2c2882=(_0x561e62,_0x23e51b)=>{_0x368c62['_suggestionFactory']['registerCustomCallback'](_0x561e62,'tablePaste',_0x23e51b,(_0x415600,_0x25a743,_0x183821)=>{_0x2b4c55['model']['change'](_0xa17fda=>{const _0x124d0b=[];for(const _0x44068e of _0x415600){const _0x38141b=_0x44068e['start']['nodeAfter'];_0x38141b['is']('element','tableCellSuggestion')&&_0x124d0b['push'](_0x38141b);}_0x368c62['_suggestionFactory']['getSuggestionCallback'](_0x561e62,null,_0x23e51b)(_0x415600,_0x25a743,_0x183821);for(const _0x9fc9ce of _0x124d0b)'$graveyard'!=_0x9fc9ce['root']['rootName']&&_0xa17fda['unwrap'](_0x9fc9ce);});});};_0x2c2882('insertion','accept'),_0x2c2882('insertion','discard'),_0x2c2882('deletion','accept'),_0x2c2882('deletion','discard'),_0x368c62['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x256372=>{const _0x1e9ca0=_0x256372['map'](_0x4db341=>_0x4db341['getContainedElement']()),_0x1421ea=_0x1e9ca0[0x0]['findAncestor']('table'),{minRow:_0x4ea005,maxRow:_0x5e608a}=_0xa3e2a3['_getCoordsForCells'](_0x1e9ca0);_0x5d91f7['removeRows'](_0x1421ea,{'at':_0x4ea005,'rows':_0x5e608a-_0x4ea005+0x1});}),_0x368c62['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4a17ea=>{const _0x3faab6=_0x4a17ea['map'](_0x436255=>_0x436255['getContainedElement']()),_0x48bb04=_0x3faab6[0x0]['findAncestor']('table'),{minColumn:_0x13c5d5,maxColumn:_0x57a28a}=_0xa3e2a3['_getCoordsForCells'](_0x3faab6);_0x5d91f7['removeColumns'](_0x48bb04,{'at':_0x13c5d5,'columns':_0x57a28a-_0x13c5d5+0x1});});const _0x4e6803=(_0x5f3476,_0x5b5824)=>{if(!_0x5b5824['subType']||!_0x5b5824['subType']['startsWith']('tablePaste'))return;const _0x63333b=_0x5b5824['attributes']['tablePasteChainId'],_0x39bb45=_0x368c62['getSuggestions']()['filter'](_0x326abc=>_0x326abc['isInContent']&&_0x326abc['attributes']&&_0x326abc['attributes']['tablePasteChainId']==_0x63333b);_0x39bb45['length']&&_0x5b5824['getAllAdjacentSuggestions']()['length']!=_0x39bb45['length']&&_0x39bb45['reduce']((_0x1f1488,_0xf1b5cf)=>(_0x1f1488['next']=_0xf1b5cf,_0xf1b5cf['previous']=_0x1f1488,_0xf1b5cf));};function _0x4d59b8(_0x24fd8e,_0xe55338=!0x0){const {id:_0x4b4732}=_0x368c62['_splitMarkerName'](_0x24fd8e['markerName']),_0x3ffe0f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x595a3f=_0x368c62['activeMarkers']['includes'](_0x24fd8e['markerName']);return _0x595a3f&&_0x3ffe0f['push']('ck-suggestion-marker--active'),{'classes':_0x3ffe0f,'attributes':{'data-suggestion':_0x4b4732},'priority':_0x595a3f&&_0xe55338?0xbc2:0xbb8};}_0x368c62['on']('suggestionLoaded',_0x4e6803,{'priority':'high'}),_0x368c62['on']('suggestionUnloaded',_0x4e6803,{'priority':'high'}),_0x2b4c55['model']['document']['registerPostFixer'](()=>{let _0x4f410d=!0x1;const _0xff5c4e=Array['from'](_0x2b4c55['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5442fa,data:_0x53004f}of _0xff5c4e){const {group:_0x4d4d57,type:_0x8bc6fc,id:_0x36bbf7}=_0x368c62['_splitMarkerName'](_0x5442fa);if('suggestion'!=_0x4d4d57||'deletion'!=_0x8bc6fc||_0x53004f['oldRange'])continue;if(!_0x368c62['hasSuggestion'](_0x36bbf7))continue;const _0xc2a01e=_0x368c62['getSuggestion'](_0x36bbf7)['getRanges'](),_0x578027=_0x2b4c55['plugins']['get']('Users')['me'];for(const _0x39fbf0 of _0x368c62['getSuggestions']()){if(!_0x39fbf0['isInContent']||_0x39fbf0['author']!=_0x578027)continue;if('formatBlock'!=_0x39fbf0['type']||'tablePasteCell'!=_0x39fbf0['subType'])continue;if(_0x39fbf0['getRanges']()['every'](_0x24795b=>_0xc2a01e['some'](_0x3ec566=>_0x3ec566['containsRange'](_0x24795b,!0x0)))){for(const _0x4b9b06 of _0x39fbf0['getAllAdjacentSuggestions']())_0x4b9b06['isInContent']&&(_0x4b9b06['discard'](),_0x4f410d=!0x0);}}}return _0x4f410d;}),_0x2b4c55['model']['document']['registerPostFixer'](_0x26adca=>{const _0x81f113=_0x2b4c55['commands']['get']('redo');if(!_0x81f113||!_0x81f113['_createdBatches']['has'](_0x26adca['batch']))return!0x1;let _0x40de21=!0x1;const _0x1be26a=_0x2b4c55['plugins']['get']('Users')['me'],_0x15f3ff=_0x2b4c55['model']['document']['differ']['getChanges'](),_0x2ff1c3=Array['from'](_0x2b4c55['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xd6cb94,data:_0x1e1126})=>{const {group:_0x4452d2,subType:_0x47b5d5,authorId:_0x216ec7}=_0x368c62['_splitMarkerName'](_0xd6cb94);return'suggestion'==_0x4452d2&&'tablePaste'==_0x47b5d5&&_0x216ec7==_0x1be26a['id']&&!_0x1e1126['oldRange'];});for(const _0x417bdb of _0x15f3ff){if('insert'!=_0x417bdb['type']||'tableCellSuggestion'!=_0x417bdb['name']||0x1!=_0x417bdb['length'])continue;const _0x2927df=_0x26adca['createRange'](_0x417bdb['position'],_0x417bdb['position']['getShiftedBy'](0x1));if(!_0x2ff1c3['find'](({data:_0x44def7})=>_0x44def7['newRange']['isEqual'](_0x2927df))){for(const {name:_0x387d15,data:_0xe965c8}of _0x2ff1c3)if(_0x2927df['containsRange'](_0xe965c8['newRange'])){_0x26adca['updateMarker'](_0x387d15,{'range':_0x2927df}),_0x40de21=!0x0;break;}}}return _0x40de21;}),_0x2b4c55['model']['document']['registerPostFixer'](_0x4d5ecf=>{let _0x636b4a=!0x1;const _0x3713ac=_0x2b4c55['plugins']['get']('Users')['me'],_0xd4ef83=_0x368c62['getSuggestions']()['filter'](_0x23ce77=>_0x23ce77['isInContent']&&_0x23ce77['author']==_0x3713ac),_0x50bb87=new Set(),_0x15a679=new Set();for(const _0x4c8958 of _0xd4ef83)if('tablePaste'==_0x4c8958['subType'])for(const _0x2f6688 of _0x4c8958['getMarkers']()){const _0x30d57b=_0x2f6688['getRange']()['getContainedElement']();if(_0x30d57b){if(_0x30d57b['is']('element','tableCellSuggestion')&&Pe(_0x30d57b)){_0x4c8958['removeMarker'](_0x2f6688['name']),_0x50bb87['add'](_0x30d57b),_0x636b4a=!0x0;const _0x2f9709=_0x30d57b['nextSibling'],_0x2fddb7=_0x30d57b['previousSibling'],_0x1cc8ee=_0x2f9709&&_0x2f9709['is']('element','tableCellSuggestion'),_0x38e0bc=_0x2fddb7&&_0x2fddb7['is']('element','tableCellSuggestion');_0x1cc8ee&&!_0x50bb87['has'](_0x2f9709)&&_0x15a679['add'](_0x2f9709),_0x38e0bc&&!_0x50bb87['has'](_0x2fddb7)&&_0x15a679['add'](_0x2fddb7);}else _0x30d57b['is']('element','paragraph')&&_0x30d57b['isEmpty']&&(_0x4c8958['removeMarker'](_0x2f6688['name']),_0x636b4a=!0x0);}}else{if('tablePasteCell'==_0x4c8958['subType']){if(!_0x4c8958['attributes']||!_0x4c8958['attributes']['tablePasteChainId'])continue;const _0x4ef400=_0x4c8958['attributes']['markerAttributes'];if(_0x4ef400&&Object['keys'](_0x4ef400)['length'])continue;const _0x105ff7=_0x4c8958['attributes']['tablePasteChainId'];let _0x487f75=!0x0,_0x19b616=!0x0;for(const _0x40db58 of _0xd4ef83)if(_0x40db58['subType']&&_0x40db58['subType']['startsWith']('tablePaste')){if(!_0x40db58['attributes']['tablePasteChainId']){_0x19b616=!0x1;break;}if(_0x40db58['id']!=_0x4c8958['id']&&_0x40db58['attributes']['tablePasteChainId']==_0x105ff7){_0x487f75=!0x1;break;}}_0x19b616&&_0x487f75&&(_0x4c8958['removeMarkers'](),_0x636b4a=!0x0);}}for(const _0x5deba7 of _0x50bb87)_0x4d5ecf['remove'](_0x5deba7);for(const _0x2496bd of _0x15a679)_0x4d5ecf['unwrap'](_0x2496bd);return _0x636b4a;}),_0x2b4c55['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x33df0a,_0x5300aa)=>_0x4d59b8(_0x33df0a),'converterPriority':'high'}),_0x2b4c55['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3f4e6d,_0x492777)=>_0x492777['options']['showSuggestionHighlights']?_0x4d59b8(_0x3f4e6d,!0x1):null,'converterPriority':'high'});const _0x39b4bc=_0x2b4c55['editing']['view'];this['listenTo'](_0x39b4bc['document'],'clipboardOutput',(_0x3e6892,_0x4e78dc)=>{const _0x7e8b91=[];for(const _0x129f23 of _0x39b4bc['createRangeIn'](_0x4e78dc['content'])['getItems']())_0x129f23['is']('element','suggestion-td')&&_0x7e8b91['push'](_0x129f23);_0x39b4bc['change'](_0x24fa7c=>{for(const _0x5622c5 of _0x7e8b91)_0x24fa7c['move'](_0x24fa7c['createRangeIn'](_0x5622c5),_0x24fa7c['createPositionBefore'](_0x5622c5)),_0x24fa7c['remove'](_0x5622c5);});});}}function Pe(_0x598bf3){if(_0x598bf3['isEmpty'])return!0x0;const _0x37796b=_0x598bf3['getChild'](0x0);return _0x37796b['is']('element','paragraph')&&_0x37796b['isEmpty'];}function he(_0x47c8cb,_0x2031fd={},_0x43fbb4){for(const {isAnchor:_0x4d5b38,cellHeight:_0x7b4932,cellWidth:_0x13989f}of _0x43fbb4['createTableWalker'](_0x47c8cb,{'includeAllSlots':!0x0,..._0x2031fd}))if(!_0x4d5b38||0x1!=_0x7b4932||0x1!=_0x13989f)return!0x1;return!0x0;}class vt extends _0x43660f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x422086=this['editor']['plugins']['get']('TrackChangesEditing');_0x422086['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x422086['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x422086['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x422086['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x422086['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x422086['_descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1133ac,_0x4ca990){const _0x37a944=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14a006=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xf70ff0=_0x4ca990['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5a14b4=_0x14a006['getColumnGroupElement'](_0xf70ff0);let _0x3f0284=_0x5a14b4?_0x14a006['getTableColumnsWidths'](_0x5a14b4):null,_0x70176f=_0xf70ff0['getAttribute']('tableWidth')||null;const _0x1b4333=_0x4ca990['tableWidth']||_0x70176f,_0x42e348=_0x4ca990['columnWidths']||_0x3f0284,_0x17e151=this['editor']['plugins']['get']('Users')['me'];for(const _0x3286e1 of _0x37a944['getSuggestions']()){const _0x3fad18=_0x3286e1['getContainedElement']();if('resizeTable'===_0x3286e1['subType']&&_0x3fad18===_0xf70ff0){_0x3286e1['author']!==_0x17e151&&_0x3286e1['discard']();const _0x30aa7a=_0x3286e1['data']['commandParams'];_0x70176f=_0x30aa7a[0x0]['tableWidth'],_0x3f0284=_0x30aa7a[0x0]['columnWidths'];break;}}_0x1133ac({'table':_0xf70ff0,'tableWidth':_0x1b4333,'columnWidths':_0x42e348}),_0x37a944['markBlockFormat'](_0xf70ff0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x70176f,'columnWidths':_0x3f0284}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa17aa6){if('formatBlock'!=_0xa17aa6['type']&&'formatInline'!=_0xa17aa6['type'])return;const {data:_0x5a1551}=_0xa17aa6;if(_0x5a1551&&'resizeTable'===_0x5a1551['formatGroupId']){const _0x9ccc23='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x9ccc23)};}}}class _t extends _0x43660f{['afterInit'](){const _0x1e745d=this['editor'];_0x1e745d['plugins']['has']('Template')&&_0x1e745d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x43660f{['afterInit'](){const _0x35131d=this['editor'];if(!_0x35131d['commands']['get']('insertTableOfContents'))return;_0x35131d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x82d225=_0x35131d['plugins']['get']('TrackChangesEditing'),_0x4ae7bd=_0x35131d['locale'];_0x82d225['_descriptionFactory']['registerElementLabel']('tableOfContents',_0x8d796d=>o(_0x4ae7bd,'ELEMENT_TABLE_OF_CONTENTS',_0x8d796d));}}class Dt extends _0x43660f{['afterInit'](){const _0x47ecf6=this['editor'];if(!_0x47ecf6['plugins']['has']('Title'))return;const _0x22a326=_0x47ecf6['plugins']['get']('TrackChangesEditing');_0x22a326['_descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x47ecf6['locale'],'ELEMENT_TITLE')),_0x47ecf6['model']['document']['registerPostFixer'](_0x5ce377=>{let _0x1917d3=!0x1;const _0x1267e9=Array['from'](_0x47ecf6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5aa87e,data:_0x3eade2}of _0x1267e9){const {group:_0x30c9ee}=_0x22a326['_splitMarkerName'](_0x5aa87e);if('suggestion'!==_0x30c9ee||!_0x3eade2['newRange'])continue;const _0x2d2244=_0x3eade2['newRange'],_0x31d277=_0x2d2244['end']['nodeBefore'];if(!_0x31d277||!_0x31d277['is']('element','title-content'))continue;if(!_0x2d2244['start']['isTouching'](_0x2d2244['end']))continue;const _0x36ffbe=_0x47ecf6['model']['schema']['getNearestSelectionRange'](_0x2d2244['end'],'forward');if(_0x36ffbe&&_0x36ffbe['isCollapsed']){const _0x4aec4d=_0x5ce377['createRange'](_0x2d2244['start'],_0x36ffbe['start']);_0x4aec4d['isEqual'](_0x2d2244)||(_0x5ce377['updateMarker'](_0x5aa87e,{'range':_0x4aec4d}),_0x1917d3=!0x0);}_0x1917d3||(_0x5ce377['removeMarker'](_0x5aa87e),_0x1917d3=!0x0);}return _0x1917d3;});}}class Nt extends _0x43660f{['afterInit'](){const _0x464f8d=this['editor'],_0x4842df=_0x464f8d['plugins']['get']('TrackChangesEditing');_0x464f8d['plugins']['has']('UndoEditing')&&(_0x4842df['enableCommand']('undo'),_0x4842df['enableCommand']('redo'));}}class Mt extends _0x43660f{static get['requires'](){return[jt];}['afterInit'](){const _0x37c73d=this['editor'];if(!_0x37c73d['plugins']['has']('TableCaptionEditing'))return;_0x37c73d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x43660f{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x501690=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x35d6b4 of this['tableProperties'])_0x501690['enableCommand'](_0x35d6b4,(_0x110ab5,_0x51ab50)=>{const _0xb81795=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x35d6b4,[_0xb81795],this['tableProperties'],'tableProperties',_0x110ab5,_0x51ab50);});_0x501690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x501690['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x501690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x59880a,_0x9533d8)=>this['handleDiscardAction'](this['tableProperties'],_0x59880a,_0x9533d8)),_0x501690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x15f66b of this['tableCellProperties'])_0x501690['enableCommand'](_0x15f66b,(_0x3fe35d,_0x2cb48e)=>{const _0x302e83=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x15f66b,_0x302e83,this['tableCellProperties'],'tableCellProperties',_0x3fe35d,_0x2cb48e);});_0x501690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x501690['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x501690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x44d170,_0x52d8a5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x44d170,_0x52d8a5)),_0x501690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x501690['_descriptionFactory']['registerDescriptionCallback'](_0x10edf8=>this['handleSuggestionDescription'](_0x10edf8));}['_handlePropertyChange'](_0xa0c202,_0x23252f,_0x35ec10,_0x529285,_0x348799,_0x4f32c0){const _0x335ef2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4f32c0['batch'],()=>{for(const _0x2cf474 of _0x23252f){if(this['_getSuggestion'](_0x2cf474,_0x529285))_0x348799(_0x4f32c0);else{const _0x2d6c31={};for(const _0x616c78 of _0x35ec10){const _0x548204=_0x2cf474['getAttribute'](_0x616c78);void 0x0!==_0x548204&&(_0x2d6c31[_0x616c78]=_0x548204);}_0x348799(_0x4f32c0),_0x335ef2['markBlockFormat'](_0x2cf474,{'commandParams':[_0x2d6c31]},[],_0x529285);}}});}['handleDiscardAction'](_0x20ba61,_0x52e281,_0x392a71){const _0xa25851=_0x52e281[0x0]['start']['nodeAfter'],_0x34a881=_0x392a71['commandParams'][0x0];this['editor']['model']['change'](_0x30c52e=>{for(const _0x18e3f3 of _0x20ba61)void 0x0!==_0x34a881[_0x18e3f3]?_0x30c52e['setAttribute'](_0x18e3f3,_0x34a881[_0x18e3f3],_0xa25851):_0x30c52e['removeAttribute'](_0x18e3f3,_0xa25851);});}['handleSuggestionDescription'](_0x4c56d2){if(_0x4c56d2['data'])switch(_0x4c56d2['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x4b6e61,_0x127538){const _0x46ec9a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x455cd8 of _0x46ec9a['getSuggestions']({'skipNotAttached':!0x0})){const _0x4d1359=_0x455cd8['getContainedElement']();if(_0x455cd8['subType']===_0x127538&&_0x4d1359===_0x4b6e61)return _0x455cd8;}return null;}constructor(_0x34236c){super(_0x34236c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x43660f{static get['requires'](){return['CommentsRepository',_0x380c8c,_0x21020d,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}['init'](){const _0x3c26d4=this['editor'],_0x2ed2ca=(_0xad3aa9,_0x442516)=>{if('attribute'!=_0xad3aa9)return'ck-suggestion-marker-'+_0xad3aa9;const _0x2fde01=_0x442516['split']('|')[0x0];return this['_isBlockAttribute'](_0x2fde01)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3c26d4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x50ad77=>{const {id:_0x29e952,type:_0x12cf89,subType:_0x33650b}=this['_splitMarkerName'](_0x50ad77['markerName']),_0x928084=['ck-suggestion-marker',_0x2ed2ca(_0x12cf89,_0x33650b)];let _0x154b1d=0xbb8;return this['activeMarkers']['includes'](_0x50ad77['markerName'])&&(_0x928084['push']('ck-suggestion-marker--active'),_0x154b1d=0xbc2),'deletion'==_0x12cf89&&(_0x154b1d+=0x5),{'classes':_0x928084,'attributes':{'data-suggestion':_0x29e952},'priority':_0x154b1d};}}),_0x3c26d4['conversion']['for']('dataDowncast')['add'](_0x11e89e=>{_0x11e89e['on']('addMarker:suggestion',(_0x3b0d29,_0xcb6ce7,_0x26a000)=>{if(!_0x26a000['options']['showSuggestionHighlights'])return;const _0x460125=_0xcb6ce7['item'];if(!_0x460125)return;const _0x41d309=_0x26a000['mapper']['toViewElement'](_0x460125);_0x3c26d4['model']['schema']['isObject'](_0x460125)&&_0x41d309&&!_0x41d309['getCustomProperty']('widget')&&_0x41d309['is']('containerElement')&&_0x19342a(_0x41d309,_0x26a000['writer']);},{'priority':'high'});}),_0x3c26d4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5233a8,_0x5c9b24)=>{if(!_0x5c9b24['options']['showSuggestionHighlights'])return null;const {type:_0x2ee0f0,subType:_0x3236d5}=this['_splitMarkerName'](_0x5233a8['markerName']);return{'classes':['ck-suggestion-marker',_0x2ed2ca(_0x2ee0f0,_0x3236d5)],'priority':0xbb8};}});const _0x243abe=({showActiveMarkers:_0x5665dc=!0x0,isAttributeSuggestion:_0x117d45=!0x1}={})=>(_0x47c3b8,_0x18c4e8,_0x3a3b6d)=>{if(!_0x18c4e8['item'])return;const {id:_0x12b535}=this['_splitMarkerName'](_0x18c4e8['markerName']);if(_0x117d45){const _0x308b48=this['_suggestions']['get'](_0x12b535),_0xcfd2c3=this['_getAttributeKey'](_0x308b48);if(!this['_isBlockAttribute'](_0xcfd2c3))return;}if(_0x18c4e8['item']['is']('selection'))return void _0x3a3b6d['consumable']['consume'](_0x18c4e8['item'],_0x47c3b8['name']);const _0x4e29d0=_0x3a3b6d['mapper']['toViewElement'](_0x18c4e8['item']);if(_0x18c4e8['item']['is']('element')&&_0x3c26d4['model']['schema']['isBlock'](_0x18c4e8['item'])&&!_0x4e29d0['getCustomProperty']('addHighlight')){_0x3a3b6d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4e29d0),_0x3a3b6d['writer']['setAttribute']('data-suggestion',_0x12b535,_0x4e29d0),_0x3a3b6d['mapper']['bindElementToMarker'](_0x4e29d0,_0x18c4e8['markerName']),_0x5665dc&&(this['activeMarkers']['includes'](_0x18c4e8['markerName'])?_0x3a3b6d['writer']['addClass']('ck-suggestion-marker--active',_0x4e29d0):_0x3a3b6d['writer']['removeClass']('ck-suggestion-marker--active',_0x4e29d0));for(const _0x4e3222 of _0x3c26d4['model']['createRangeIn'](_0x18c4e8['item'])['getItems']())_0x3a3b6d['consumable']['consume'](_0x4e3222,_0x47c3b8['name']);_0x3a3b6d['consumable']['consume'](_0x18c4e8['item'],_0x47c3b8['name']);}};_0x3c26d4['conversion']['for']('dataDowncast')['add'](_0xc6cd20=>{_0xc6cd20['on']('addMarker:suggestion:formatBlock',(_0x2dd8ae,_0x21f65b,_0x22e822)=>{_0x22e822['options']['showSuggestionHighlights']&&_0x243abe({'showActiveMarkers':!0x1})(_0x2dd8ae,_0x21f65b,_0x22e822);},{'priority':'highest'});}),_0x3c26d4['conversion']['for']('dataDowncast')['add'](_0x5c61d3=>{_0x5c61d3['on']('addMarker:suggestion:attribute',(_0x5a56a6,_0x132333,_0x44bf52)=>{_0x44bf52['options']['showSuggestionHighlights']&&_0x243abe({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5a56a6,_0x132333,_0x44bf52);},{'priority':'highest'});}),_0x3c26d4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x28a3a8,_0x30d450)=>_0x30d450['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x28a3a8['substr'](0xb)}}),_0x3c26d4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a69f8,{writer:_0x363c56})=>{let _0x15362b='suggestion:'+_0x4a69f8['getAttribute']('suggestion-type')+':'+_0x4a69f8['getAttribute']('id');return _0x4a69f8['getAttribute']('marker-count')&&(_0x15362b+=':'+_0x4a69f8['getAttribute']('marker-count')),_0x363c56['createElement']('$marker',{'data-name':_0x15362b});}}),_0x3c26d4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3c26d4['conversion']['for']('editingDowncast')['add'](_0x150432=>{_0x150432['on']('addMarker:suggestion:formatBlock',_0x243abe(),{'priority':'high'});}),_0x3c26d4['conversion']['for']('editingDowncast')['add'](_0x1924a0=>{_0x1924a0['on']('addMarker:suggestion:attribute',_0x243abe({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3c26d4['conversion']['for']('editingDowncast')['add'](_0x4ed4e3=>{_0x4ed4e3['on']('removeMarker:suggestion:formatBlock',(_0x349083,_0x2fa7d7,_0x137afb)=>{const _0x1f522e=_0x137afb['mapper']['markerNameToElements'](_0x2fa7d7['markerName']);if(_0x1f522e){for(const _0x5e578b of _0x1f522e)_0x5e578b['getCustomProperty']('addHighlight')||(_0x137afb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5e578b),_0x137afb['writer']['removeAttribute']('data-suggestion',_0x5e578b),_0x137afb['mapper']['unbindElementFromMarkerName'](_0x5e578b,_0x2fa7d7['markerName']));}},{'priority':'high'});}),_0x3c26d4['conversion']['for']('editingDowncast')['add'](_0x50bd05=>{_0x50bd05['on']('removeMarker:suggestion:attribute',(_0x3bc066,_0x12707f,_0x5452fe)=>{const _0x58c7b1=_0x5452fe['mapper']['markerNameToElements'](_0x12707f['markerName']);if(!_0x58c7b1)return;const {id:_0x58febc}=this['_splitMarkerName'](_0x12707f['markerName']),_0x27efa5=this['_suggestions']['get'](_0x58febc),_0x54fd03=this['_getAttributeKey'](_0x27efa5);if(this['_isBlockAttribute'](_0x54fd03)){for(const _0x233a6a of _0x58c7b1)_0x233a6a['getCustomProperty']('addHighlight')||(_0x5452fe['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x233a6a),_0x5452fe['writer']['removeAttribute']('data-suggestion',_0x233a6a),_0x5452fe['mapper']['unbindElementFromMarkerName'](_0x233a6a,_0x12707f['markerName']));}},{'priority':'high'});}),_0x3c26d4['model']['document']['registerPostFixer'](_0x5442fd=>{let _0x1837ac=!0x1;const _0x38ed96=Array['from'](_0x3c26d4['model']['document']['differ']['getChangedMarkers']()),_0xdd350c=new Set();for(const {name:_0x44145e,data:_0x40714a}of _0x38ed96){const {group:_0x5e0d49,type:_0x300e1a,subType:_0x3c502e,id:_0x3f9d97}=this['_splitMarkerName'](_0x44145e);if('suggestion'!==_0x5e0d49)continue;const _0x46c119=this['_suggestions']['get'](_0x3f9d97);if(null!=_0x40714a['newRange']){'formatInline'==_0x300e1a&&(_0x1837ac=_0x1837ac||Et(_0x40714a['newRange'],_0x44145e,_0x5442fd,_0x3c26d4['model']['schema']));const _0x2e6d00='attribute'==_0x300e1a&&this['_isBlockAttribute'](_0x3c502e['split']('|')[0x0]);if(_0x40714a['newRange']['isCollapsed']||'$graveyard'==_0x40714a['newRange']['root']['rootName']||'formatBlock'==_0x300e1a&&!Ut(_0x40714a['newRange'])||_0x2e6d00&&!Ut(_0x40714a['newRange'])||'deletion'==_0x300e1a&&!(!Tt(_0x12a9c6=_0x40714a['newRange'])&&!function(_0x1a1854){return _0x1a1854['start']['parent']==_0x1a1854['end']['nodeBefore']&&_0x1a1854['start']['isAtEnd'];}(_0x12a9c6)))_0x5442fd['removeMarker'](_0x44145e),_0x1837ac=!0x0;else{if(!_0x46c119||!_0x46c119['isInContent'])continue;_0xdd350c['add'](_0x46c119);}}}var _0x12a9c6;return _0xdd350c['size']>0x0&&(_0x1837ac=!!this['_joinWithAdjacentSuggestions'](_0xdd350c)||_0x1837ac),_0x1837ac;}),_0x3c26d4['model']['document']['registerPostFixer'](_0x36d1fe=>{let _0x2b91ad=!0x1;for(const _0x2e8821 of _0x3c26d4['model']['document']['differ']['getChanges']())if('insert'==_0x2e8821['type'])for(const _0xa715a of this['_suggestions']['values']()){if(_0xa715a['isMultiRange']||!_0xa715a['isInContent'])continue;const _0x3d2c6f='formatBlock'==_0xa715a['type'],_0x1dad83=this['_getAttributeKey'](_0xa715a),_0x2ff052=_0x1dad83&&this['_isBlockAttribute'](_0x1dad83);if(!_0x3d2c6f&&!_0x2ff052)continue;const _0x7b7ced=_0xa715a['getFirstRange']();if(_0x7b7ced['start']['parent']!=_0x7b7ced['end']['parent']&&!_0x7b7ced['end']['isAtEnd']){const _0x8c3fce=_0x3c26d4['model']['createPositionAt'](_0x7b7ced['start']['nodeAfter'],'end'),_0x2c6d02=_0x3c26d4['model']['createRange'](_0x7b7ced['start'],_0x8c3fce);_0x36d1fe['updateMarker'](_0xa715a['getFirstMarker'](),{'range':_0x2c6d02}),_0x2b91ad=!0x0;}}return _0x2b91ad;}),_0x3c26d4['model']['document']['registerPostFixer'](_0x19e472=>this['_processAttributeChanges'](_0x19e472)),_0x3c26d4['model']['document']['registerPostFixer'](_0x1b9a71=>!_0x1b9a71['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1b9a71)),_0x3c26d4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3c26d4['model']['document']['on']('change:data',(_0x5e7693,_0x1d050a)=>{if(!_0x1d050a['isLocal']||_0x1d050a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3abf86=_0x3c26d4['model']['document']['differ']['getChanges']();if(0x0==_0x3abf86['length'])return;const _0x4afd96=[],_0x48f077=_0x3abf86['filter'](_0x289f0f=>'attribute'==_0x289f0f['type']),_0x48c708=_0x3abf86['filter'](_0x188bd6=>'insert'==_0x188bd6['type']&&'$text'!=_0x188bd6['name']),_0x1132da=_0x3abf86['filter'](_0x374f08=>'remove'==_0x374f08['type']&&'$text'!=_0x374f08['name']);for(const _0x487f1e of _0x48f077)this['_isRegisteredAttribute'](_0x487f1e['attributeKey'])&&_0x4afd96['push']({'key':_0x487f1e['attributeKey'],'newValue':_0x487f1e['attributeNewValue'],'oldValue':_0x487f1e['attributeOldValue'],'range':Ot(_0x487f1e['range'],_0x3c26d4['model'])});for(const _0x432b88 of _0x48c708){const _0xd61fdc=_0x1132da['find'](_0x43678c=>_0x43678c['_element']===_0x432b88['_element']);if(_0xd61fdc){const _0x3382ef=Gt(_0x432b88['position']['nodeAfter'],_0x3c26d4['model']);_0xd61fdc['name']!==_0x432b88['name']&&_0x4afd96['push']({'key':m,'newValue':_0x432b88['name'],'oldValue':_0xd61fdc['name'],'range':_0x3382ef});for(const [_0x2d5b2b,_0x10bd9b]of _0xd61fdc['attributes']){if(!this['_isRegisteredAttribute'](_0x2d5b2b))continue;const _0x51e7de=_0x432b88['attributes']['get'](_0x2d5b2b);_0x10bd9b!==_0x51e7de&&_0x4afd96['push']({'key':_0x2d5b2b,'newValue':_0x51e7de,'oldValue':_0x10bd9b,'range':_0x3382ef});}for(const [_0x858aa1,_0x2982d9]of _0x432b88['attributes'])this['_isRegisteredAttribute'](_0x858aa1)&&(_0xd61fdc['attributes']['has'](_0x858aa1)||_0x4afd96['push']({'key':_0x858aa1,'newValue':_0x2982d9,'oldValue':null,'range':_0x3382ef}));}}0x0!=_0x4afd96['length']&&_0x3c26d4['model']['enqueueChange'](_0x1d050a,_0x5e9595=>{const _0x585442=_0x461740();for(const {range:_0x2745f2,key:_0x1984b5,oldValue:_0x5cb278,newValue:_0x3b3b2f}of _0x4afd96)this['markAttributeChange'](_0x2745f2,_0x1984b5,_0x5cb278,_0x3b3b2f,{'groupId':_0x585442});this['_reduceExistingSuggestions'](_0x5e9595,_0x4afd96);});},{'priority':'lowest'}),_0x3c26d4['model']['markers']['on']('update:suggestion',(_0x3293b0,_0x264285,_0x54f912)=>{if(null==_0x54f912){const {id:_0x3b8750}=this['_splitMarkerName'](_0x264285['name']),_0x461acd=this['_suggestions']['get'](_0x3b8750);_0x461acd&&_0x461acd['addMarkerName'](_0x264285['name']);}}),_0x3c26d4['model']['document']['on']('change:data',()=>{const _0x3bb39b=Array['from'](_0x3c26d4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5c0d4c=>'suggestion'===this['_splitMarkerName'](_0x5c0d4c['name'])['group']);if(0x0===_0x3bb39b['length'])return;_0x3bb39b['sort']((_0x421575,_0x429bf7)=>{const _0x4608ab=_0x421575['data']['oldRange'],_0x1669fe=_0x429bf7['data']['oldRange'];return null===_0x4608ab&&null===_0x1669fe?0x0:null===_0x4608ab&&null!==_0x1669fe?-0x1:null!==_0x4608ab&&null===_0x1669fe?0x1:_0x4608ab['start']['isBefore'](_0x1669fe['start'])?-0x1:0x1;});const _0x4b5aa8=new Set(),_0x2ee639=new Set();for(const {name:_0x460693,data:_0x482a1c}of _0x3bb39b){const {id:_0x1e2e57}=this['_splitMarkerName'](_0x460693);if(null===_0x482a1c['oldRange']){const _0x559448=this['_handleNewSuggestionMarker'](_0x460693);_0x2ee639['add'](_0x559448);}else{const _0x218e09=this['_suggestions']['get'](_0x1e2e57);null!==_0x482a1c['newRange']||_0x218e09['isInContent']?(_0x4b5aa8['add'](_0x218e09['head']),_0x2ee639['add'](_0x218e09)):this['_removeSuggestion'](_0x218e09);}}_0x2ee639['size']>0x0&&this['_refreshSuggestionsChain'](_0x2ee639);for(const _0x3c0982 of _0x4b5aa8)this['fire']('suggestionChanged',_0x3c0982);}),_0x3c26d4['model']['on']('applyOperation',(_0x50c988,_0x41d420)=>{const _0x18b4b9=_0x41d420[0x0];if(!this['_suggestions']['size'])return;if(!_0x18b4b9['isDocumentOperation'])return;if(_0x18b4b9['batch']['isUndo']||!_0x18b4b9['batch']['isLocal'])return;let _0x50325b,_0x100c88;switch(_0x18b4b9['type']){case'insert':_0x50325b=_0x3c26d4['model']['createPositionAt'](_0x18b4b9['position']),_0x100c88=_0x50325b['getShiftedBy'](_0x18b4b9['howMany']);break;case'split':_0x50325b=_0x3c26d4['model']['createPositionAt'](_0x18b4b9['splitPosition']),_0x100c88=_0x3c26d4['model']['createPositionAt'](_0x18b4b9['moveTargetPosition']);break;case'move':_0x50325b=_0x3c26d4['model']['createPositionAt'](_0x18b4b9['targetPosition']),_0x100c88=_0x50325b['getShiftedBy'](_0x18b4b9['howMany']);break;default:return;}const _0x146e98=_0x3c26d4['model']['createRange'](_0x50325b,_0x100c88);_0x3c26d4['model']['change'](()=>{for(const {suggestion:_0x5c54e8,meta:_0x292e89}of this['_findSuggestions'](_0x146e98)){if(_0x5c54e8['isMultiRange'])continue;if('formatInline'==_0x5c54e8['type'])continue;const _0x597d6b=this['_getAttributeKey'](_0x5c54e8);if(_0x597d6b&&this['_isBlockAttribute'](_0x597d6b)&&'split'!=_0x18b4b9['type'])continue;const _0x2a0cdb=_0x5c54e8['data']&&_0x5c54e8['data']['multipleBlocks'];('formatBlock'!=_0x5c54e8['type']||'split'==_0x18b4b9['type']&&!_0x2a0cdb)&&(_0x292e89['containsRangeInObject']||'insertion'==_0x5c54e8['type']&&_0x292e89['isOwn']||_0x5c54e8['getFirstRange']()['containsRange'](_0x146e98)&&this['_breakSuggestionMarker'](_0x5c54e8,_0x50325b,_0x100c88));}});},{'priority':'lowest'}),_0x3c26d4['model']['on']('deleteContent',(_0x5d82e7,_0x1d896a)=>{const _0x35ad7d=_0x1d896a[0x0],_0x5800cc=_0x1d896a[0x1];if(_0x5800cc&&_0x5800cc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x35ad7d['isCollapsed'])return;const _0x494b40=_0x3c26d4['model']['schema'],{start:_0xe436fe,end:_0x1aa08b}=_0x35ad7d['getFirstRange'](),_0x242653=_0xe436fe['nodeAfter']&&_0x494b40['isLimit'](_0xe436fe['nodeAfter'])?null:_0x494b40['getNearestSelectionRange'](_0xe436fe,'forward'),_0x4230a1=_0x1aa08b['nodeBefore']&&_0x494b40['isLimit'](_0x1aa08b['nodeBefore'])?null:_0x494b40['getNearestSelectionRange'](_0x1aa08b,'backward'),_0xc0c2b1=_0x3c26d4['model']['createRange'](_0x242653?_0x242653['start']:_0xe436fe,_0x4230a1?_0x4230a1['end']:_0x1aa08b);_0x3c26d4['model']['change'](_0x19737b=>{this['markDeletion'](_0xc0c2b1);const _0xb3aaff=_0x3c26d4['model']['schema']['getNearestSelectionRange'](_0xc0c2b1['start']);_0x35ad7d['is']('documentSelection')?_0x19737b['setSelection'](_0xb3aaff):_0x35ad7d['setTo'](_0xb3aaff);}),_0x5d82e7['stop']();},{'priority':_0x43c881['normal']+0xa}),_0x3c26d4['model']['on']('insertContent',(_0x8529ed,_0x25d3a1)=>{const _0x388e64=_0x25d3a1[_0x25d3a1['length']-0x1];_0x388e64&&_0x388e64['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3c26d4['model']['change'](()=>{let _0x4825ef=_0x3c26d4['model']['insertContent'](_0x25d3a1[0x0],_0x25d3a1[0x1],_0x25d3a1[0x2],{'forceDefaultExecution':!0x0});if(!_0x4825ef)return;_0x8529ed['return']=_0x4825ef['clone']();const _0x13a1b3=_0x4825ef['end']['nodeBefore'],_0x5ce1af=_0x3c26d4['model']['schema'];_0x13a1b3&&_0x5ce1af['isBlock'](_0x13a1b3)&&!_0x5ce1af['isObject'](_0x13a1b3)&&(_0x4825ef=_0x3c26d4['model']['createRange'](_0x4825ef['start'],_0x3c26d4['model']['createPositionAt'](_0x13a1b3,'end'))),this['markInsertion'](_0x4825ef);}),_0x8529ed['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4c23cf=new $(_0x3c26d4,this['_suggestions']);_0x3c26d4['commands']['add']('acceptSuggestion',_0x4c23cf),this['enableCommand']('acceptSuggestion');const _0x1fbe82=new B(_0x3c26d4,this['_suggestions']);_0x3c26d4['commands']['add']('discardSuggestion',_0x1fbe82),this['enableCommand']('discardSuggestion'),_0x3c26d4['commands']['add']('acceptAllSuggestions',new x(_0x3c26d4,_0x4c23cf,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3c26d4['commands']['add']('discardAllSuggestions',new x(_0x3c26d4,_0x1fbe82,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3c26d4['commands']['add']('acceptSelectedSuggestions',new R(_0x3c26d4,_0x4c23cf,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3c26d4['commands']['add']('discardSelectedSuggestions',new R(_0x3c26d4,_0x1fbe82,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5ef883=_0x3c26d4['plugins']['get']('CommentsRepository');this['listenTo'](_0x5ef883,'addComment',(_0x19e27f,{threadId:_0xb92c9c})=>{const _0x522105=this['_suggestions']['get'](_0xb92c9c);_0x522105&&_0x522105['commentThread']&&0x1===_0x522105['commentThread']['length']&&this['_updateSuggestionData'](_0xb92c9c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5ef883,'removeComment',(_0x5ba08e,{threadId:_0x63015e})=>{const _0x4ee0ec=this['_suggestions']['get'](_0x63015e);_0x4ee0ec&&_0x4ee0ec['commentThread']&&!_0x4ee0ec['commentThread']['length']&&this['_updateSuggestionData'](_0x63015e,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5e6aae){if(this['_adapter'])throw new _0x148f6c('track-changes-adapter-already-set',this);this['_adapter']=_0x5e6aae;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x31c217=!0x1,toJSON:_0x47ea9b=!0x1}={}){const _0x4c402a=[];for(const _0x5c2474 of this['_suggestions']['values']())_0x31c217&&!_0x5c2474['isInContent']||_0x4c402a['push'](_0x5c2474);return _0x47ea9b?_0x4c402a['map'](_0x5b6160=>_0x5b6160['toJSON']()):_0x4c402a;}['getSuggestion'](_0x5cc0fb){const _0x33ed0d=this['_suggestions']['get'](_0x5cc0fb);if(!_0x33ed0d)throw new _0x148f6c('track-changes-suggestion-not-found',this);return _0x33ed0d;}['hasSuggestion'](_0xe95a41){return this['_suggestions']['has'](_0xe95a41);}['addSuggestionData'](_0x5f40a7){const {authorId:_0x545b74,id:_0xaa8c5e,attributes:_0x42d944}=_0x5f40a7,[_0x4b3af6,_0x106ef0]=_0x5f40a7['type']['split'](':'),_0x378a28=this['_suggestions']['get'](_0xaa8c5e)||this['_createSuggestion'](_0x4b3af6,_0x106ef0,_0xaa8c5e,_0x545b74,_0x42d944);if(this['_addThreadToSuggestion'](_0x378a28),this['_checkSuggestionCorrectness'](_0x378a28,_0x4b3af6,_0x106ef0||null,_0x545b74),_0x378a28['createdAt']=_0x5f40a7['createdAt'],_0x378a28['_isDataLoaded']=!0x0,_0x42d944&&_0x42d944['@external']){const _0x16eed8=_0x42d944['@external'],_0x13b805=this['_getExternalAuthor'](_0x16eed8['authorName']);_0x378a28['authoredAt']=_0x16eed8['createdAt'],_0x378a28['author']=_0x13b805,_0x378a28['isExternal']=!0x0;}else _0x378a28['authoredAt']=_0x5f40a7['createdAt'];switch(_0x5f40a7['data']&&(_0x378a28['data']=_0x5f40a7['data']),_0x5f40a7['attributes']&&(_0x378a28['attributes']=_0x5f40a7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x378a28['_saved']=!0x0),this['_suggestionState']['get'](_0x378a28)){case'notReady':this['_suggestionState']['set'](_0x378a28,'dataReady');break;case'markerReady':_0x378a28['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x378a28])),this['_refreshSuggestionsChain'](new Set([_0x378a28])),this['_suggestionState']['set'](_0x378a28,'ready'),this['fire']('suggestionLoaded',_0x378a28)):this['_suggestionState']['set'](_0x378a28,'removed');}return _0x378a28;}['acceptSuggestion'](_0x2eb978){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x223f0e of _0x2eb978['getAllAdjacentSuggestions']())_0x223f0e['accept']();});});}['discardSuggestion'](_0x1ade48){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27c009 of _0x1ade48['getAllAdjacentSuggestions']())_0x27c009['discard']();});});}['enableCommand'](_0xf58558,_0x454dff){const _0x2af715=this['editor']['commands']['get'](_0xf58558);if(!_0x2af715)throw new _0x148f6c('track-changes-command-not-found',this,{'commandName':_0xf58558});if(this['_enabledCommands']['has'](_0x2af715))throw new _0x148f6c('track-changes-enable-command-twice',this,{'commandName':_0xf58558});this['_enabledCommands']['add'](_0x2af715),_0x454dff&&_0x2af715['on']('execute',(_0x15bb04,_0x5bc1ac)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5bc1ac['length']>0x0&&_0x5bc1ac[_0x5bc1ac['length']-0x1]&&_0x5bc1ac[_0x5bc1ac['length']-0x1]['forceDefaultExecution']?_0x5bc1ac['pop']():(_0x15bb04['return']=_0x454dff((..._0x444049)=>_0x2af715['execute'](..._0x444049,{'forceDefaultExecution':!0x0}),..._0x5bc1ac),_0x15bb04['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x59e0c8){let _0x4a59d8,_0x5ce942;const _0x23c69f=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4a59d8=_0x59e0c8();}catch(_0x4eff6f){_0x5ce942=_0x4eff6f;}return _0x23c69f||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5ce942&&_0x148f6c['rethrowUnexpectedError'](_0x5ce942,this),_0x4a59d8;}['markInsertion'](_0x3a9264,_0x4d6d9a=null,_0x682e68={}){if(_0x3a9264['isCollapsed'])return null;const _0x32ac15=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1468bd,meta:_0x1f7494}of this['_findSuggestions'](_0x3a9264,'insertion'))if(_0x1f7494['isOwn']){if(!_0x1f7494['isNextTo']){if(_0x1f7494['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x1468bd,_0x682e68))continue;return _0x1468bd;}if(Lt(_0x1468bd,_0x682e68))return _0x1468bd;this['_breakSuggestionMarker'](_0x1468bd,_0x3a9264['start'],_0x3a9264['end']);break;}if(_0x4d6d9a==_0x1468bd['subType']&&Lt(_0x1468bd,_0x682e68)){const _0x19c912=_0x1468bd['getFirstRange']();return _0x19c912['start']['isEqual'](_0x3a9264['end'])?this['_setSuggestionRange'](_0x1468bd,this['_model']['createRange'](_0x3a9264['start'],_0x19c912['end'])):this['_setSuggestionRange'](_0x1468bd,this['_model']['createRange'](_0x19c912['start'],_0x3a9264['end'])),_0x1468bd;}}const _0x11a752=_0x461740(),_0x3ee57a=_0x32ac15['id'],_0x1ded5d=_0x4d6d9a?'insertion:'+_0x4d6d9a:'insertion',_0x2c2f28=this['_setSuggestionData']({'id':_0x11a752,'type':_0x1ded5d,'createdAt':new Date(),'authorId':_0x3ee57a,'attributes':_0x682e68});return this['_addSuggestionMarker'](_0x1ded5d,_0x11a752,_0x3ee57a,_0x3a9264),_0x2c2f28;}['markMultiRangeInsertion'](_0x29151a,_0x2161a7='multi',_0x4e0010={}){const _0x3e1b32=this['editor']['plugins']['get']('Users')['me'],_0x3b53b5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2161a7,'join');for(const _0x1da891 of this['getSuggestions']())if(_0x1da891['author']['id']==_0x3e1b32['id']&&'insertion'==_0x1da891['type']&&_0x1da891['subType']==_0x2161a7&&Lt(_0x1da891,_0x4e0010)&&(_0x3b53b5(_0x1da891['getRanges'](),_0x29151a)||_0x3b53b5(_0x29151a,_0x1da891['getRanges']()))){for(const _0x56ee43 of _0x29151a)_0x1da891['addRange'](_0x56ee43);return _0x1da891;}for(const {suggestion:_0x1aec71,meta:_0x22605e}of this['_findSuggestions'](_0x29151a,'insertion')){if(!_0x22605e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x22605e['containsRangeInObject'])continue;if(!Lt(_0x1aec71,_0x4e0010))continue;let _0x2c2fce=!0x0;for(const _0x544cc3 of _0x1aec71['getRanges']())for(const _0x165cf9 of _0x29151a)if(!_0x544cc3['containsRange'](_0x165cf9)){_0x2c2fce=!0x1;break;}if(_0x2c2fce)return _0x1aec71;}const _0x3070cf=_0x461740(),_0x5a3652=_0x3e1b32['id'],_0x31aa1c='insertion:'+_0x2161a7,_0x6b3a62=this['_setSuggestionData']({'id':_0x3070cf,'type':_0x31aa1c,'createdAt':new Date(),'authorId':_0x5a3652,'attributes':_0x4e0010});for(const _0x460ebb of _0x29151a)this['_addSuggestionMarker'](_0x31aa1c,_0x3070cf,_0x5a3652,_0x460ebb,u['getMultiRangeId']());return _0x6b3a62;}['markInlineFormat'](_0x53e419,_0xee54df,_0x5f4c4e=null,_0x171ac7={}){if(_0x5f4c4e=_0x5f4c4e||Vt(_0xee54df),_0x53e419['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3f2720=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5f4c4e,'accept');return this['forceDefaultExecution'](()=>_0x3f2720([_0x53e419],_0xee54df,_0x171ac7)),null;}const _0x27e82b=this['editor']['plugins']['get']('Users')['me'],_0xc68346=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3bcf48,meta:_0x49f8f6}of this['_findSuggestions'](_0x53e419,'insertion'))_0x49f8f6['isOwn']&&!_0x49f8f6['isInsideObject']&&_0xc68346['push'](..._0x3bcf48['getRanges']());}const _0x591484=function(_0x25ace7,_0x1ecc32){const _0x2850f7=[];for(const _0x430d80 of _0x1ecc32){const _0x1e58be=_0x25ace7['getIntersection'](_0x430d80);_0x1e58be&&_0x2850f7['push'](_0x1e58be);}return _0x2850f7;}(_0x53e419,_0xc68346),_0x4e848a=function(_0x1dbcb0,_0x58509b){const _0x3bf57a=[_0x1dbcb0];for(const _0x22f154 of _0x58509b){let _0x1d08a4=0x0;for(;_0x1d08a4<_0x3bf57a['length'];){const _0x2c9cbc=_0x3bf57a[_0x1d08a4]['getDifference'](_0x22f154);_0x3bf57a['splice'](_0x1d08a4,0x1,..._0x2c9cbc),_0x1d08a4+=_0x2c9cbc['length'];}}return _0x3bf57a;}(_0x53e419,_0xc68346);_0x591484['length']&&this['_model']['change'](()=>{for(const _0x4abe12 of _0x591484){const _0x4c7a73=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5f4c4e,'accept');this['forceDefaultExecution'](()=>_0x4c7a73([_0x4abe12],_0xee54df,_0x171ac7));}});for(const _0x2d1f27 of _0x4e848a){let _0x159da9=null,_0x215ecb=_0x2d1f27['start'],_0x2df8d9=_0x2d1f27['end'];for(const {suggestion:_0xd8c402,meta:_0x40439f}of this['_findSuggestions'](_0x2d1f27,'formatInline')){if(!_0x40439f['isOwn'])continue;if(_0xd8c402['subType']!=_0x5f4c4e)continue;if(!Lt(_0xd8c402,_0x171ac7))continue;const _0x4f95ba=_0xd8c402['getFirstRange']();if(_0x4f95ba['containsRange'](_0x2d1f27,!0x0))return null;_0x215ecb=_0x215ecb['isBefore'](_0x4f95ba['start'])?_0x215ecb:_0x4f95ba['start'],_0x2df8d9=_0x2df8d9['isAfter'](_0x4f95ba['end'])?_0x2df8d9:_0x4f95ba['end'],_0x159da9?_0x4f95ba['start']['isBefore'](_0x159da9['getFirstRange']()['start'])?(_0x159da9['removeMarkers'](),_0x159da9=_0xd8c402):_0xd8c402['removeMarkers']():_0x159da9=_0xd8c402;}const _0x5be97c=this['_model']['createRange'](_0x215ecb,_0x2df8d9);if(_0x159da9)this['_setSuggestionRange'](_0x159da9,_0x5be97c);else{const _0x22c7d0=_0x461740(),_0x5e8b88=_0x27e82b['id'];this['_setSuggestionData']({'id':_0x22c7d0,'type':'formatInline:'+_0x5f4c4e,'data':_0xee54df,'createdAt':new Date(),'authorId':_0x5e8b88,'attributes':_0x171ac7}),this['_addSuggestionMarker']('formatInline:'+_0x5f4c4e,_0x22c7d0,_0x5e8b88,_0x5be97c);}}return null;}['markBlockFormat'](_0x89c689,_0x48e2b5,_0x88d10=[],_0x46f1b8=null,_0x27d1ec={}){_0x48e2b5['formatGroupId']||(_0x48e2b5['formatGroupId']=_0x48e2b5['commandName']),_0x48e2b5['multipleBlocks']=_0x89c689['is']('range'),_0x46f1b8=_0x46f1b8||Vt(_0x48e2b5);const _0x27ce03=_0x88d10['map'](_0xdf075=>Gt(_0xdf075,this['_model'])),_0x1e8337=_0x89c689['is']('range')?_0x89c689:Gt(_0x89c689,this['_model']);if('never'===this['_trackFormatChanges']){const _0x586c0a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x46f1b8,'accept');return this['forceDefaultExecution'](()=>_0x586c0a([_0x1e8337],_0x48e2b5,_0x27d1ec)),null;}_0x27ce03['push'](_0x1e8337);let _0x497f19=!0x0;for(const _0x462728 of _0x27ce03)if(!this['_rangeIsInLocalUserInsertion'](_0x462728)){_0x497f19=!0x1;break;}if(_0x497f19&&'always'!==this['_trackFormatChanges']){const _0x5ab2cb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x46f1b8,'accept');return this['forceDefaultExecution'](()=>_0x5ab2cb([_0x1e8337],_0x48e2b5,_0x27d1ec)),null;}let _0xe6be94=null,_0xba14ca=_0x1e8337['start'],_0x1978ec=_0x1e8337['end'];for(const {suggestion:_0x13b234,meta:_0x556e92}of this['_findSuggestions'](_0x1e8337,'formatBlock')){if(!_0x556e92['isOwn'])continue;if(_0x556e92['isNextTo']||_0x556e92['containsRangeInObject']||_0x556e92['isInsideObject'])continue;if(_0x13b234['data']['formatGroupId']!=_0x48e2b5['formatGroupId'])continue;if(!Lt(_0x13b234,_0x27d1ec))continue;const _0x602e=_0x13b234['getFirstRange']();if(_0x13b234['subType']==_0x46f1b8){if(_0x602e['containsRange'](_0x1e8337,!0x0))return null;_0xba14ca=_0xba14ca['isBefore'](_0x602e['start'])?_0xba14ca:_0x602e['start'],_0x1978ec=_0x1978ec['isAfter'](_0x602e['end'])?_0x1978ec:_0x602e['end'],_0xe6be94?_0x602e['start']['isBefore'](_0xe6be94['getFirstRange']()['start'])?(_0xe6be94['removeMarkers'](),_0xe6be94=_0x13b234):_0x13b234['removeMarkers']():_0xe6be94=_0x13b234;}else{const _0x54936e=_0x1e8337['getIntersection'](_0x602e);this['_cutOutSuggestionMarker'](_0x13b234,_0x54936e);}}const _0x338742=this['editor']['plugins']['get']('Users')['me'],_0x1990ce=_0x461740(),_0x51417a=_0x338742['id'];if(_0xe6be94)return this['_setSuggestionRange'](_0xe6be94,this['_model']['createRange'](_0xba14ca,_0x1978ec)),_0xe6be94;{const _0x1e6c46=this['_setSuggestionData']({'id':_0x1990ce,'type':'formatBlock:'+_0x46f1b8,'data':_0x48e2b5,'createdAt':new Date(),'authorId':_0x51417a,'attributes':_0x27d1ec});return this['_addSuggestionMarker']('formatBlock:'+_0x46f1b8,_0x1990ce,_0x51417a,this['_model']['createRange'](_0xba14ca,_0x1978ec)),_0x1e6c46;}}['markMultiRangeBlockFormat'](_0x10b3f4,_0x1d574f,_0x27d057=[],_0x2391db=null,_0x4c8980={}){_0x1d574f['formatGroupId']||(_0x1d574f['formatGroupId']=_0x1d574f['commandName']);const _0x4b3a88=_0x10b3f4[0x0];_0x1d574f['multipleBlocks']=_0x4b3a88['is']('range'),_0x2391db=_0x2391db||Vt(_0x1d574f);const _0x5b581a=_0x27d057['map'](_0x106cd6=>Gt(_0x106cd6,this['_model'])),_0x470065=_0x4b3a88['is']('range')?_0x10b3f4:_0x10b3f4['map'](_0x5ce553=>Gt(_0x5ce553,this['_model']));if('never'===this['_trackFormatChanges']){const _0x243e3b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2391db,'accept');return this['forceDefaultExecution'](()=>_0x243e3b(_0x470065,_0x1d574f,_0x4c8980)),null;}_0x5b581a['push'](..._0x470065);let _0x533c52=!0x0;for(const _0x454a95 of _0x5b581a)if(!this['_rangeIsInLocalUserInsertion'](_0x454a95)){_0x533c52=!0x1;break;}if(_0x533c52&&'always'!==this['_trackFormatChanges']){const _0x47e172=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2391db,'accept');return this['forceDefaultExecution'](()=>_0x47e172(_0x470065,_0x1d574f,_0x4c8980)),null;}const _0x4120fb=this['editor']['plugins']['get']('Users')['me'];for(const _0x226256 of this['getSuggestions']()){if(_0x226256['author']['id']!=_0x4120fb['id'])continue;if('formatBlock'!=_0x226256['type']||_0x226256['data']['formatGroupId']!=_0x1d574f['formatGroupId'])continue;if(!Lt(_0x226256,_0x4c8980))continue;const _0x279e2e=_0x226256['subType']==_0x2391db;for(let _0x1622ec=0x0;_0x1622ec<_0x470065['length'];_0x1622ec++){const _0x56398e=_0x470065[_0x1622ec];for(const _0x161472 of _0x226256['getMarkers']()){const _0x45443c=_0x161472['getRange']();if(_0x56398e['isEqual'](_0x45443c)){_0x279e2e?(_0x470065['splice'](_0x1622ec,0x1),_0x1622ec--):_0x226256['removeMarker'](_0x161472['name']);break;}}}}if(0x0==_0x470065['length'])return null;const _0x1ef9e5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2391db,'join');for(const _0xbebdf1 of this['getSuggestions']())if(_0xbebdf1['author']['id']==_0x4120fb['id']&&'formatBlock'==_0xbebdf1['type']&&_0xbebdf1['data']['formatGroupId']==_0x1d574f['formatGroupId']&&_0xbebdf1['subType']==_0x2391db&&Lt(_0xbebdf1,_0x4c8980)&&(_0x1ef9e5(_0xbebdf1['getRanges'](),_0x470065)||_0x1ef9e5(_0x470065,_0xbebdf1['getRanges']()))){for(const _0x511221 of _0x470065)_0xbebdf1['addRange'](_0x511221);return _0xbebdf1;}const _0x5ecaf0=_0x461740(),_0x10b534=_0x4120fb['id'],_0x4588b7='formatBlock:'+_0x2391db,_0x138d58=this['_setSuggestionData']({'id':_0x5ecaf0,'type':_0x4588b7,'data':_0x1d574f,'createdAt':new Date(),'authorId':_0x10b534,'attributes':_0x4c8980});for(const _0x3ab538 of _0x470065)this['_addSuggestionMarker'](_0x4588b7,_0x5ecaf0,_0x10b534,_0x3ab538,u['getMultiRangeId']());return _0x138d58;}['markDeletion'](_0x1ca13a,_0x397cfe=null,_0x1f81b6={}){if(_0x1ca13a['isCollapsed'])return null;const _0x401158=this['editor']['plugins']['get']('Users')['me'],_0x516e6f=new _0x30a6a3(_0x1ca13a['start'],_0x1ca13a['end']);for(const {suggestion:_0x36d651,meta:_0xca3892}of this['_findSuggestions'](_0x516e6f,'insertion'))if(_0xca3892['isOwn']&&!_0xca3892['isNextTo']){if(_0x36d651['isMultiRange']){const _0x19a59a=_0x36d651['getRanges']()['filter'](_0x455b81=>'$graveyard'!=_0x455b81['root']['rootName']);_0x19a59a['every'](_0x17a30b=>_0x516e6f['containsRange'](_0x17a30b,!0x0))&&_0x36d651['discard']();if(_0x19a59a['some'](_0x1a1f94=>_0x1a1f94['containsRange'](_0x516e6f,!0x0))){const _0x4ea398=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x397cfe,'accept');return this['forceDefaultExecution'](()=>_0x4ea398([_0x516e6f],null,_0x1f81b6)),null;}}else{const _0x9a6f9c=_0x516e6f['getIntersection'](_0x36d651['getFirstRange']());null!==_0x9a6f9c&&_0x36d651['_onDiscard']([_0x9a6f9c],null,_0x1f81b6);}}if(_0x516e6f['detach'](),_0x516e6f['isCollapsed']||'$graveyard'==_0x516e6f['root']['rootName'])return null;let _0x26f0fb=null,_0x4987bf=_0x516e6f['start'],_0xad4b12=_0x516e6f['end'];const _0x3e82d8=this['_findSuggestions'](_0x516e6f,'deletion');for(const {suggestion:_0x4a1f26,meta:_0x32eb96}of _0x3e82d8){const _0x2f2790=this['_model']['createRange'](_0x4987bf,_0xad4b12);if(_0x32eb96['isOwn']&&(this['_mergeNestedSuggestions']||!_0x32eb96['containsRangeInObject']&&!_0x32eb96['isInsideObject'])){if(_0x4a1f26['isMultiRange']){if(!Lt(_0x4a1f26,_0x1f81b6))continue;let _0x4e5e9e=!0x0;for(const _0x4bf250 of _0x4a1f26['getRanges']()){if(_0x4bf250['containsRange'](_0x2f2790,!0x0))return _0x4a1f26;_0x2f2790['containsRange'](_0x4bf250)||(_0x4e5e9e=!0x1);}_0x4e5e9e&&_0x4a1f26['discard']();}else{const _0x3efff8=_0x4a1f26['getFirstRange']();if(_0x3efff8['containsRange'](_0x2f2790,!0x0))return _0x4a1f26;if(!Lt(_0x4a1f26,_0x1f81b6)){_0x2f2790['containsRange'](_0x3efff8)?_0x4a1f26['removeMarkers']():_0x3efff8['containsPosition'](_0x4987bf)?_0x4987bf=_0x3efff8['end']:_0x3efff8['containsPosition'](_0xad4b12)&&(_0xad4b12=_0x3efff8['start']);continue;}_0x4987bf=_0x4987bf['isBefore'](_0x3efff8['start'])?_0x4987bf:_0x3efff8['start'],_0xad4b12=_0xad4b12['isAfter'](_0x3efff8['end'])?_0xad4b12:_0x3efff8['end'],_0x1f81b6=Object['assign']({},_0x4a1f26['attributes']),_0x26f0fb?_0x3efff8['start']['isBefore'](_0x26f0fb['getFirstRange']()['start'])?(_0x26f0fb['removeMarkers'](),_0x26f0fb=_0x4a1f26):_0x4a1f26['removeMarkers']():_0x26f0fb=_0x4a1f26;}}}if(_0x26f0fb)return this['_setSuggestionRange'](_0x26f0fb,this['_model']['createRange'](_0x4987bf,_0xad4b12)),_0x26f0fb;{const _0x3a5fee=_0x461740(),_0x180f50=this['_model']['createRange'](_0x4987bf,_0xad4b12),_0x14c310=_0x401158['id'],_0x28a3e=_0x397cfe?'deletion:'+_0x397cfe:'deletion',_0x12ab6b=this['_setSuggestionData']({'id':_0x3a5fee,'type':_0x28a3e,'createdAt':new Date(),'authorId':_0x14c310,'attributes':_0x1f81b6});return this['_addSuggestionMarker'](_0x28a3e,_0x3a5fee,_0x14c310,_0x180f50),_0x12ab6b;}}['markMultiRangeDeletion'](_0x46d8ed,_0x2b27cc='multi',_0x126d59={}){const _0x4684d3=this['editor']['plugins']['get']('Users')['me'],_0x216e55=_0x46d8ed['map'](_0xf3430b=>new _0x30a6a3(_0xf3430b['start'],_0xf3430b['end'])),_0xd46820=new Set();for(const {suggestion:_0x4147b0,meta:_0x24c5df}of this['_findSuggestions'](_0x216e55,'insertion'))_0x24c5df['isOwn']&&!_0x24c5df['isNextTo']&&_0xd46820['add'](_0x4147b0);for(const _0x3bfc9c of _0xd46820)if(_0x3bfc9c['isMultiRange']){const _0x4ded5c=_0x3bfc9c['getRanges']();(!_0x3bfc9c['attributes']||!_0x3bfc9c['attributes']['skipNestingCheck'])&&(_0x4ded5c['every'](_0x126aa8=>_0x216e55['some'](_0x242e4d=>_0x242e4d['containsRange'](_0x126aa8,!0x0)))&&_0x3bfc9c['discard']());if(_0x216e55['every'](_0x26cc61=>_0x4ded5c['some'](_0x561a61=>_0x561a61['containsRange'](_0x26cc61,!0x0)))){const _0x48b9b4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b27cc,'accept');return this['forceDefaultExecution'](()=>_0x48b9b4(_0x46d8ed,null,_0x126d59)),null;}}else{const _0x79df4e=_0x3bfc9c['getFirstRange']();_0x216e55['some'](_0x51ea94=>_0x51ea94['containsRange'](_0x79df4e,!0x0))&&_0x3bfc9c['discard']();if(_0x216e55['every'](_0x4fc3f2=>_0x79df4e['containsRange'](_0x4fc3f2,!0x0))){const _0x916caa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b27cc,'accept');return this['forceDefaultExecution'](()=>_0x916caa(_0x216e55,null,_0x126d59)),null;}}const _0x4be846=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2b27cc,'join');let _0x5722b2=null;for(const _0x4592b7 of this['getSuggestions']())if(_0x4592b7['author']['id']==_0x4684d3['id']&&_0x4592b7['isInContent']&&'deletion'==_0x4592b7['type']&&_0x4592b7['subType']==_0x2b27cc&&Lt(_0x4592b7,_0x126d59)&&(_0x4be846(_0x4592b7['getRanges'](),_0x216e55)||_0x4be846(_0x216e55,_0x4592b7['getRanges']()))){if(_0x5722b2){if(_0x4592b7['commentThread']&&_0x4592b7['commentThread']['length'])continue;for(const _0x2d5e34 of _0x4592b7['getRanges']())_0x5722b2['isIntersectingWithRange'](_0x2d5e34)||_0x5722b2['addRange'](_0x2d5e34);_0x4592b7['removeMarkers']();}else{_0x5722b2=_0x4592b7;for(const _0xb83046 of _0x216e55)_0x4592b7['isIntersectingWithRange'](_0xb83046)||_0x4592b7['addRange'](_0xb83046);}}if(_0x5722b2)return _0x5722b2;_0xd46820['clear']();for(const {suggestion:_0x24c2d9,meta:_0x222bda}of this['_findSuggestions'](_0x216e55,'deletion'))_0x222bda['isOwn']&&(this['_mergeNestedSuggestions']||!_0x222bda['containsRangeInObject']&&!_0x222bda['isInsideObject'])&&Lt(_0x24c2d9,_0x126d59)&&_0xd46820['add'](_0x24c2d9);for(const _0x2978ca of _0xd46820){const _0x4e7175=_0x2978ca['getRanges']();if(!_0x126d59||!_0x126d59['skipNestingCheck']){if(_0x216e55['every'](_0xa7f88a=>_0x4e7175['some'](_0x174cea=>_0x174cea['containsRange'](_0xa7f88a,!0x0))))return _0x2978ca;}(!_0x2978ca['attributes']||!_0x2978ca['attributes']['skipNestingCheck'])&&(_0x4e7175['every'](_0x110333=>_0x216e55['some'](_0x5cd430=>_0x5cd430['containsRange'](_0x110333,!0x0)))&&_0x2978ca['discard']());}const _0x3b1124=_0x461740(),_0x4b9584=_0x4684d3['id'],_0x3d9ac5='deletion:'+_0x2b27cc,_0x522057=this['_setSuggestionData']({'id':_0x3b1124,'type':_0x3d9ac5,'createdAt':new Date(),'authorId':_0x4b9584,'attributes':_0x126d59});for(const _0x162dc1 of _0x216e55)_0x162dc1['detach'](),_0x162dc1['isCollapsed']||'$graveyard'==_0x162dc1['root']['rootName']||this['_addSuggestionMarker'](_0x3d9ac5,_0x3b1124,_0x4b9584,_0x162dc1,u['getMultiRangeId']());return _0x522057;}['markAttributeChange'](_0xa8cf02,_0x30870e,_0x4416e9,_0x3826f8,_0x4d93dc){if(_0xa8cf02['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x50e3a5=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c0ed7=Array['from'](this['_suggestions']['values']())['filter'](_0x15a717=>'attribute'==_0x15a717['type']&&_0x15a717['data']['key']==_0x30870e&&_0x15a717['isIntersectingWithRange'](_0xa8cf02));if('default'===this['_trackFormatChanges']){const _0x11b5ce=this['_findSuggestions'](_0xa8cf02,'insertion')['filter'](({meta:_0x55f1d1})=>_0x55f1d1['isOwn']&&!_0x55f1d1['isInsideObject']&&!_0x55f1d1['isNextTo'])['map'](({suggestion:_0x1364fb})=>_0x1364fb);_0x5c0ed7['unshift'](..._0x11b5ce);}const _0xaf4a50=new Map([[_0xa8cf02,_0x4416e9]]);for(const _0x2e61fd of _0x5c0ed7){const _0x2e6544='attribute'==_0x2e61fd['type']?_0x2e61fd['data']['oldValue']:void 0x0,_0x36b5d6=_0x2e61fd['getFirstRange'](),_0x510bca=Array['from'](_0xaf4a50['keys']())['find'](_0x4b5c2d=>_0x4b5c2d['isIntersecting'](_0x36b5d6));if(!_0x510bca)continue;const _0x57ff6b=_0x510bca['getDifference'](_0x36b5d6);this['_isBlockAttribute'](_0x30870e)&&'insertion'==_0x2e61fd['type']&&0x0!=_0x57ff6b['length']||(_0xaf4a50['delete'](_0x510bca),_0x57ff6b['forEach'](_0x2642c2=>{_0xaf4a50['set'](_0x2642c2,_0x4416e9);}),'insertion'!=_0x2e61fd['type']&&_0x2e6544!=_0x3826f8&&_0xaf4a50['set'](_0x510bca['getIntersection'](_0x36b5d6),_0x2e6544));}const _0x831bde=[];for(const [_0x338469,_0x49ebe6]of _0xaf4a50){const _0x46541e=_0x461740(),_0xf83cbd={'key':_0x30870e,'oldValue':_0x49ebe6,'newValue':_0x3826f8};_0x30870e['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':_0x30870e});const _0x386ae4=('attribute:'+(_0x30870e+'|'+Vt({'newValue':_0x3826f8})))['substring'](0x0,0x3c),_0x5cb13b=this['_setSuggestionData']({'id':_0x46541e,'type':_0x386ae4,'data':_0xf83cbd,'createdAt':new Date(),'authorId':_0x50e3a5,'attributes':_0x4d93dc});_0x831bde['push'](_0x5cb13b),this['_addSuggestionMarker'](_0x386ae4,_0x46541e,_0x50e3a5,_0x338469);}return _0x831bde;}['_registerBlockAttribute'](_0x37c31c){this['_blockAttributeKeys']['add'](_0x37c31c);}['_registerInlineAttribute'](_0x474d7a){this['_inlineAttributeKeys']['add'](_0x474d7a);}['_enableDefaultAttributesIntegration'](_0x173ba4,_0xda5870=[],_0x40dfc8=[]){this['enableCommand'](_0x173ba4,(_0x45714a,..._0x341ef6)=>{this['_recordAttributeChanges'](()=>{_0x45714a(..._0x341ef6);});});for(const _0x2021d8 of _0xda5870)this['_registerInlineAttribute'](_0x2021d8);for(const _0x4d00de of _0x40dfc8)this['_registerBlockAttribute'](_0x4d00de);}['_getAttributeKey'](_0x2082c1){return'attribute'==_0x2082c1['type']?_0x2082c1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x366e61,_0x1a451a){const _0x400f1d=_0x366e61['getFirstMarker']();this['_model']['change'](_0x4750fe=>{_0x4750fe['updateMarker'](_0x400f1d,{'range':_0x1a451a});});}['_addThreadToSuggestion'](_0x467714){const _0x3b572b=_0x467714['id'],_0x5924d7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3b572b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5924d7,'threadId':_0x3b572b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3d2d35=this['_commentsRepository']['getCommentThread'](_0x3b572b);_0x3d2d35['unbind']('isRemovable'),_0x3d2d35['isRemovable']=!0x1,_0x467714['commentThread']=_0x3d2d35;}['_checkSuggestionCorrectness'](_0x373f83,_0x27954b,_0x84a642,_0x261b3d){if(_0x373f83['type']!=_0x27954b||_0x373f83['subType']!=_0x84a642||_0x373f83['creator']['id']!=_0x261b3d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x148f6c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3c3320,_0x5a0fb1){const _0x12d4c1=_0x3c3320['getFirstRange']();if(_0x5a0fb1['isEqual'](_0x12d4c1))_0x3c3320['removeMarkers']();else{if(_0x12d4c1['containsRange'](_0x5a0fb1)){const _0x4afe02=this['_model']['createPositionAt'](_0x5a0fb1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c3320,this['_model']['createRange'](_0x12d4c1['start'],_0x4afe02));const _0x2d5968=_0x461740(),_0x4d1ce5=_0x3c3320['creator']['id'],_0x459575=_0x3c3320['type']+':'+_0x3c3320['subType'];this['_setSuggestionData']({'id':_0x2d5968,'type':_0x459575,'createdAt':new Date(),'authorId':_0x4d1ce5,'data':_0x3c3320['data'],'attributes':_0x3c3320['attributes']});const _0x42312e=this['_model']['createPositionAt'](_0x5a0fb1['end']['parent'],'after'),_0x3186fe=this['_model']['createRange'](_0x42312e,_0x12d4c1['end']);this['_addSuggestionMarker'](_0x459575,_0x2d5968,_0x4d1ce5,_0x3186fe);}else{if(_0x12d4c1['containsPosition'](_0x5a0fb1['start'])){const _0x3492ba=this['_model']['createPositionAt'](_0x5a0fb1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3c3320,this['_model']['createRange'](_0x12d4c1['start'],_0x3492ba));}else{const _0x11ea24=this['_model']['createPositionAt'](_0x5a0fb1['end']['parent'],'after');this['_setSuggestionRange'](_0x3c3320,this['_model']['createRange'](_0x11ea24,_0x12d4c1['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x189919){for(const {suggestion:_0x44db17,meta:_0x259636}of this['_findSuggestions'](_0x189919,'insertion')){if(!_0x259636['isOwn'])continue;const _0x2ccff0=_0x44db17['getRanges']();for(const _0x16d4fc of _0x2ccff0)if(!_0x189919['getDifference'](_0x16d4fc)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x280ad0){const _0x1950fe=this['editor']['plugins']['get']('Users')['getUser'](_0x280ad0);if(!_0x1950fe)throw new _0x148f6c('track-changes-user-not-found',this);return _0x1950fe;}['_getExternalAuthor'](_0x2d3f72){const _0x3c9a37=this['editor']['plugins']['get']('Users'),_0x3ec13b=_0x2f13d0('external:'+_0x2d3f72),_0x23294f=_0x3c9a37['getUser'](_0x3ec13b);return _0x23294f||_0x3c9a37['addUser']({'id':_0x3ec13b,'name':_0x2d3f72});}['_createSuggestion'](_0x1eaebc,_0x284b57,_0x567317,_0x985c3a,_0x2521ca){const _0x1494c6=this['_getAuthorFromId'](_0x985c3a),_0x195e28=this['_suggestionFactory']['buildSuggestion'](_0x1eaebc,_0x284b57,_0x567317,_0x1494c6,_0x2521ca,_0x42595c=>{this['_updateSuggestionData'](_0x567317,{'attributes':_0x42595c});const _0x167b2d=this['getSuggestion'](_0x567317);this['_joinWithAdjacentSuggestions'](new Set([_0x167b2d])),this['_refreshSuggestionsChain'](new Set([_0x167b2d]));});return this['listenTo'](_0x195e28,'accept',()=>{this['_updateSuggestionData'](_0x567317,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x195e28,'discard',()=>{this['_updateSuggestionData'](_0x567317,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x567317,_0x195e28),this['_suggestionState']['set'](_0x195e28,'notReady'),_0x195e28;}['_splitMarkerName'](_0x2491ca){const _0x46d590=_0x2491ca['split'](':');return{'group':_0x46d590[0x0],'type':_0x46d590[0x1],'subType':_0x46d590['length']>=0x5?_0x46d590[0x2]:null,'id':_0x46d590['length']<0x5?_0x46d590[0x2]:_0x46d590[0x3],'authorId':_0x46d590['length']<0x5?_0x46d590[0x3]:_0x46d590[0x4],'markerCount':0x6==_0x46d590['length']?_0x46d590[0x5]:null};}['_breakSuggestionMarker'](_0x2f4992,_0xdf9a5b,_0xb57157){const _0x132684=_0x2f4992['getFirstRange'](),_0x5037b5=_0x132684['start'],_0x70e3a=_0x132684['end'];this['_setSuggestionRange'](_0x2f4992,this['_model']['createRange'](_0x5037b5,_0xdf9a5b));const _0x1b1bc2=_0x461740(),_0x5dfa72=_0x2f4992['creator']['id'],_0x319e8b=_0x2f4992['type']+(_0x2f4992['subType']?':'+_0x2f4992['subType']:'');this['_setSuggestionData']({'id':_0x1b1bc2,'type':_0x319e8b,'createdAt':new Date(),'authorId':_0x5dfa72,'originalSuggestionId':_0x2f4992['id'],'attributes':_0x2f4992['attributes'],'data':_0x2f4992['data']});const _0x5afb2b=this['_getAttributeKey'](_0x2f4992);('formatBlock'==_0x2f4992['type']||_0x5afb2b&&this['_isBlockAttribute'](_0x5afb2b))&&(_0xb57157=this['_model']['createPositionBefore'](_0xb57157['parent'])),this['_addSuggestionMarker'](_0x319e8b,_0x1b1bc2,_0x5dfa72,this['_model']['createRange'](_0xb57157,_0x70e3a));}['_findSuggestions'](_0x233a77,_0x1e35c4=null){const _0x3721d4=[],_0x65feb5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x233a77)||(_0x233a77=[_0x233a77]);for(const _0x2ba5da of this['getSuggestions']()){if(!_0x2ba5da['isInContent'])continue;if(_0x1e35c4&&_0x2ba5da['type']!=_0x1e35c4)continue;let _0x26ea6a=!0x1;for(const _0x3535f8 of _0x2ba5da['getRanges']()){for(const _0x11e2e8 of _0x233a77){const _0x5ccad3=_0x11e2e8['start']['isEqual'](_0x3535f8['end'])||_0x11e2e8['end']['isEqual'](_0x3535f8['start']);if(_0x5ccad3||_0x11e2e8['getIntersection'](_0x3535f8)){const _0x1e91ac=_0x11e2e8['containsRange'](_0x3535f8)&&Rt(this['_model']['schema'],_0x3535f8['start'],_0x11e2e8),_0x67edde=_0x3535f8['containsRange'](_0x11e2e8)&&Rt(this['_model']['schema'],_0x11e2e8['start'],_0x3535f8);_0x3721d4['push']({'suggestion':_0x2ba5da,'meta':{'isOwn':_0x65feb5==_0x2ba5da['author'],'isNextTo':_0x5ccad3,'isInsideObject':_0x1e91ac,'containsRangeInObject':_0x67edde}}),_0x26ea6a=!0x0;break;}}if(_0x26ea6a)break;}}return _0x3721d4;}['_addSuggestionMarker'](_0x186c99,_0x363f82,_0x5e5220,_0x4aa26e,_0x1417d0){this['_model']['change'](_0x4e93be=>{let _0x5048fa='suggestion:'+_0x186c99+':'+_0x363f82+':'+_0x5e5220;_0x1417d0&&(_0x5048fa=_0x5048fa+':'+_0x1417d0),_0x4e93be['addMarker'](_0x5048fa,{'range':_0x4aa26e,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2250be){const _0xcbe84d=_0x2250be['previous'],_0x2a9dce=_0x2250be['next'];_0x2250be['previous']=null,_0x2250be['next']=null,null!=_0xcbe84d&&_0xcbe84d['next']==_0x2250be&&(_0xcbe84d['next']=_0x2a9dce),null!=_0x2a9dce&&_0x2a9dce['previous']==_0x2250be&&(_0x2a9dce['previous']=_0xcbe84d),'ready'==this['_suggestionState']['get'](_0x2250be)&&(this['_suggestionState']['set'](_0x2250be,'removed'),this['fire']('suggestionUnloaded',_0x2250be,_0xcbe84d,_0x2a9dce));}['_setSuggestionData'](_0x37eb77){const _0x3707f3=_0x37eb77['id'],_0x300799=this['addSuggestionData'](_0x37eb77);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3611a0=this['editor']['plugins']['get']('PendingActions'),_0x51191a=_0x300799['hasComments'],_0x31ff64=_0x300799['subType']?_0x300799['type']+':'+_0x300799['subType']:_0x300799['type'],_0x2ed68e=this['editor']['locale'],_0x35b161=_0x3611a0['add'](o(_0x2ed68e,'PENDING_ACTION_SUGGESTION')),_0x2b41d4={'id':_0x3707f3,'type':_0x31ff64,'hasComments':_0x51191a,'data':_0x37eb77['data']||null,'originalSuggestionId':_0x37eb77['originalSuggestionId']||null,'attributes':_0x300799['attributes']};this['_adapter']['addSuggestion'](_0x2b41d4)['then'](_0x203d33=>{_0x300799['_saved']=!0x0,_0x3611a0['remove'](_0x35b161),_0x203d33&&_0x203d33['createdAt']&&(this['_suggestions']['get'](_0x3707f3)['createdAt']=_0x203d33['createdAt']);})['catch'](_0x20f38c=>{throw _0x4941fa('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x300799['discard']();}),_0x300799['stopListening'](),this['_suggestions']['delete'](_0x300799['id']),this['_suggestionState']['delete'](_0x300799),_0x20f38c;});}return _0x300799;}['_isBlockAttribute'](_0x4316c1){return this['_blockAttributeKeys']['has'](_0x4316c1);}['_updateSuggestionData'](_0x3772cd,_0x20b2b0){const _0x2511f8=this['editor']['plugins']['get']('PendingActions'),_0x212b27=this['getSuggestion'](_0x3772cd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x212b27['_saved']){const _0x5e11fd=_0x2511f8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3772cd,_0x20b2b0)['then'](()=>{_0x2511f8['remove'](_0x5e11fd);});}else _0x212b27['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3772cd,_0x20b2b0);});}}['_getSuggestionData'](_0x1f89d8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x148f6c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1f89d8);}['_handleNewSuggestionMarker'](_0x229ba3){const {id:_0x14394e,type:_0x59b4f5,subType:_0x3799a7,authorId:_0x1796fe}=this['_splitMarkerName'](_0x229ba3),_0x30ba1f=this['_suggestions']['get'](_0x14394e)||this['_createSuggestion'](_0x59b4f5,_0x3799a7,_0x14394e,_0x1796fe,{});switch(this['_checkSuggestionCorrectness'](_0x30ba1f,_0x59b4f5,_0x3799a7,_0x1796fe),this['_suggestionState']['get'](_0x30ba1f)){case'notReady':this['_getSuggestionData'](_0x14394e)['then'](_0x34a6f6=>{let _0x515d73=Promise['resolve']();_0x34a6f6['hasComments']&&(_0x515d73=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x14394e})),_0x515d73['then'](()=>{this['addSuggestionData'](_0x34a6f6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x30ba1f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x14394e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x30ba1f,'ready'),this['fire']('suggestionLoaded',_0x30ba1f);break;case'ready':this['fire']('suggestionChanged',_0x30ba1f);}return _0x30ba1f['addMarkerName'](_0x229ba3),_0x30ba1f;}['_refreshSuggestionsChain'](_0x3128f0){const _0x53db6a=Array['from'](_0x3128f0),_0x57d17e=_0x53db6a['filter'](_0x575506=>'attribute'==_0x575506['type']);this['_refreshAttributeSuggestionsChain'](_0x57d17e);const _0x743fa6=_0x53db6a['filter'](_0x250f74=>!_0x250f74['isMultiRange']&&'attribute'!=_0x250f74['type']),_0x2a6929=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d3b47=>!_0x3d3b47['isMultiRange']&&'attribute'!=_0x3d3b47['type']),_0x3388ab=_0x2a6929['filter'](_0x221def=>!_0x3128f0['has'](_0x221def)),_0x3cf811=new Map(_0x2a6929['map'](_0x2dc460=>[_0x2dc460,this['_suggestionFactory']['getSuggestionCallback'](_0x2dc460['type'],_0x2dc460['subType'],'chain')])),_0x113eb7=new Map(_0x2a6929['map'](_0x2f06af=>[_0x2f06af,_0x2f06af['getFirstRange']()])),_0x49ed8c=new Set(),_0x4ea147=new Set();for(let _0x3bb2da=0x0;_0x3bb2da<_0x743fa6['length'];_0x3bb2da++)_0x2ceecb(_0x743fa6[_0x3bb2da],_0x743fa6,_0x3bb2da+0x1);for(let _0x188753=0x0;_0x188753<_0x743fa6['length'];_0x188753++)_0x2ceecb(_0x743fa6[_0x188753],_0x3388ab,0x0);const _0x380504=new Set();for(let _0x5281cc=0x0;_0x5281cc<_0x743fa6['length'];_0x5281cc++){const _0x5caf4c=_0x743fa6[_0x5281cc];!_0x4ea147['has'](_0x5caf4c)&&_0x5caf4c['previous']&&(_0x380504['add'](_0x5caf4c['previous']),_0x5caf4c['previous']['next']===_0x5caf4c&&(_0x5caf4c['previous']['next']=null),_0x5caf4c['previous']=null),!_0x49ed8c['has'](_0x5caf4c)&&_0x5caf4c['next']&&(_0x380504['add'](_0x5caf4c['next']),_0x5caf4c['next']['previous']===_0x5caf4c&&(_0x5caf4c['next']['previous']=null),_0x5caf4c['next']=null);}function _0x2ceecb(_0x15916e,_0x599623,_0x1b65b9){for(let _0x4a379e=_0x1b65b9;_0x4a379e<_0x599623['length'];_0x4a379e++){const _0x25f5a8=_0x4d644c(_0x15916e,_0x599623[_0x4a379e]);_0x25f5a8&&(_0x25f5a8[0x0]['next']=_0x25f5a8[0x1],_0x25f5a8[0x1]['previous']=_0x25f5a8[0x0],_0x49ed8c['add'](_0x25f5a8[0x0]),_0x4ea147['add'](_0x25f5a8[0x1]));}}function _0x4d644c(_0x1385b8,_0x451725){if(_0x1385b8['author']['id']!==_0x451725['author']['id'])return null;const _0x5de5e9=_0x3cf811['get'](_0x1385b8)(_0x1385b8,_0x451725,_0x113eb7['get'](_0x1385b8),_0x113eb7['get'](_0x451725));if(!_0x5de5e9)return null;return _0x3cf811['get'](_0x451725)(_0x1385b8,_0x451725,_0x113eb7['get'](_0x1385b8),_0x113eb7['get'](_0x451725))?_0x5de5e9[0x1]['commentThread']&&_0x5de5e9[0x1]['commentThread']['length']?null:_0x5de5e9:null;}_0x380504['size']&&this['_refreshSuggestionsChain'](_0x380504);}['_refreshAttributeSuggestionsChain'](_0x3e9cbb){if(0x0==_0x3e9cbb['length'])return;const _0x1adfe9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44abef=>'attribute'==_0x44abef['type']&&_0x44abef['_isDataLoaded']),_0x1fb4a5=[],_0xc2af26=new Map();for(const _0x3ec038 of _0x1adfe9){const _0x5c1925=_0x2f13d0(_0x3ec038['attributes']);_0xc2af26['has'](_0x5c1925)||(_0xc2af26['set'](_0x5c1925,_0x1fb4a5['length']),_0x1fb4a5['push']([]));const _0x9691b0=_0xc2af26['get'](_0x5c1925);_0x1fb4a5[_0x9691b0]['push'](_0x3ec038);}!(function(){_0x1fb4a5['sort']((_0x11ef96,_0x404a35)=>{const _0x16b3fa=_0x11ef96[0x0]['createdAt'],_0x39d112=_0x404a35[0x0]['createdAt'];return _0x16b3fa==_0x39d112?_0x11ef96[0x0]['attributes']['groupId']<_0x404a35[0x0]['attributes']['groupId']?-0x1:0x1:_0x16b3fa<_0x39d112?-0x1:0x1;});for(const _0x1fdba5 of _0x1fb4a5)_0x1fdba5['sort']((_0x43f339,_0x53058f)=>_0x43f339['id']<_0x53058f['id']?-0x1:0x1);}());for(let _0x7897c7=0x0;_0x7897c7<_0x1fb4a5['length'];_0x7897c7++){if(0x0==_0x1fb4a5[_0x7897c7]['length'])continue;const _0x5f51ee=[];for(let _0x2e6f0e=_0x7897c7+0x1;_0x2e6f0e<_0x1fb4a5['length'];_0x2e6f0e++)0x0!=_0x1fb4a5[_0x2e6f0e]['length']&&_0x1564de(_0x1fb4a5[_0x7897c7],_0x1fb4a5[_0x2e6f0e])&&_0x5f51ee['push'](_0x2e6f0e);for(const _0x5f5d1 of _0x5f51ee)_0x1fb4a5[_0x7897c7]=_0x1fb4a5[_0x7897c7]['concat'](_0x1fb4a5[_0x5f5d1]),_0x1fb4a5[_0x5f5d1]=[];}for(const _0x82d1b5 of _0x1fb4a5)for(let _0x1f0850=0x0;_0x1f0850<_0x82d1b5['length'];_0x1f0850++)_0x82d1b5[_0x1f0850]['next']=_0x82d1b5[_0x1f0850+0x1]||null;for(const _0x3ff97a of _0x1fb4a5)for(let _0x25e50a=0x0;_0x25e50a<_0x3ff97a['length'];_0x25e50a++)_0x3ff97a[_0x25e50a]['previous']=_0x3ff97a[_0x25e50a-0x1]||null;function _0x1564de(_0x1f346f,_0x2eca09){if(_0x1f346f[0x0]['attributes']['groupId']!==_0x2eca09[0x0]['attributes']['groupId']&&_0x1f346f[0x0]['author']!==_0x2eca09[0x0]['author'])return!0x1;if(!function(_0x3edc99,_0x14a011){if(!_0x3edc99['hasComments']&&!_0x14a011['hasComments'])return!0x0;if(_0x3edc99['hasComments']&&_0x14a011['hasComments'])return!0x1;if(_0x3edc99['hasComments']&&_0x14a011['createdAt']<_0x3edc99['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x14a011['hasComments']&&_0x3edc99['createdAt']<_0x14a011['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1f346f[0x0],_0x2eca09[0x0]))return!0x1;const _0x23c59f=Bt(_0x1f346f[0x0]['attributes'],'groupId'),_0xa5d9bf=Bt(_0x2eca09[0x0]['attributes'],'groupId');if(!_0x11601a(_0x23c59f,_0xa5d9bf))return!0x1;return!!_0x1f346f['every'](_0x99d632=>_0x2eca09['some'](_0x17b10a=>_0x99d632['getFirstRange']()['isEqual'](_0x17b10a['getFirstRange']())))&&_0x2eca09['every'](_0x5ac1f4=>_0x1f346f['some'](_0x588b9c=>_0x5ac1f4['getFirstRange']()['isEqual'](_0x588b9c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xf0f192){const _0x1d0f2f=Array['from'](_0xf0f192),_0x5daccd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x331fb7=_0x5daccd['filter'](_0x268a98=>!_0xf0f192['has'](_0x268a98)),_0x37a28f=new Map(_0x1d0f2f['map'](_0x4f1e21=>[_0x4f1e21,this['_suggestionFactory']['getSuggestionCallback'](_0x4f1e21['type'],_0x4f1e21['subType'],'join')])),_0x2094ad=new Map(_0x5daccd['map'](_0x2cb1b9=>[_0x2cb1b9,_0x2cb1b9['getRanges']()]));for(let _0x3da94e=0x0;_0x3da94e<_0x1d0f2f['length'];_0x3da94e++){if(_0x5b739b(this,_0x1d0f2f[_0x3da94e],_0x1d0f2f,_0x3da94e+0x1))return!0x0;}for(let _0x273543=0x0;_0x273543<_0x1d0f2f['length'];_0x273543++){if(_0x5b739b(this,_0x1d0f2f[_0x273543],_0x331fb7,0x0))return!0x0;}return!0x1;function _0x5b739b(_0x429b7c,_0x54d43a,_0x4dfeb2,_0x200adf){for(let _0xb574c1=_0x200adf;_0xb574c1<_0x4dfeb2['length'];_0xb574c1++){const _0xfe66d9=_0x4dfeb2[_0xb574c1];if(_0xfe66d9['type']!==_0x54d43a['type']||_0xfe66d9['author']['id']!==_0x54d43a['author']['id']||_0xfe66d9['subType']!==_0x54d43a['subType'])continue;if(!Pt(_0x54d43a,_0xfe66d9,['groupId']))continue;if('attribute'==_0x54d43a['type']&&_0x54d43a['data']['oldValue']!=_0xfe66d9['data']['oldValue'])continue;if('attribute'==_0x54d43a['type']&&_0x429b7c['_isBlockAttribute'](_0x54d43a['data']['key']))continue;if('formatBlock'==_0x54d43a['type']){const _0x52038d=_0x429b7c['editor']['model'],_0x1be33e=_0x54d43a['getContainedElement']();if(_0x1be33e&&(_0x52038d['schema']['isObject'](_0x1be33e)||_0x52038d['schema']['isLimit'](_0x1be33e)))continue;}const _0x199e3b=_0x37a28f['get'](_0x54d43a),_0x3c9743=_0x2094ad['get'](_0x54d43a),_0x3b8468=_0x2094ad['get'](_0xfe66d9),_0x1248c3=_0x54d43a['commentThread']&&_0x54d43a['commentThread']['length'],_0x449cc8=_0xfe66d9['commentThread']&&_0xfe66d9['commentThread']['length'];if(!_0x1248c3&&_0x199e3b(_0x3b8468,_0x3c9743))return _0x429b7c['_joinSuggestions'](_0xfe66d9,_0x54d43a),_0x2094ad['delete'](_0x54d43a),!0x0;if(!_0x449cc8&&_0x199e3b(_0x3c9743,_0x3b8468))return _0x429b7c['_joinSuggestions'](_0x54d43a,_0xfe66d9),_0x2094ad['delete'](_0xfe66d9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x26406b,_0xca85c7){if(_0x26406b['isMultiRange']){for(const _0x3302b4 of _0xca85c7['getRanges']())_0x26406b['addRange'](_0x3302b4);}else{const _0x53a136=_0xca85c7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x26406b,this['_model']['createRange'](_0x26406b['getFirstRange']()['start'],_0x53a136));}_0xca85c7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4bbb7a,_0x4d0b34){const _0x56c89c=_0x4bbb7a['startsWith']('format')||_0x4bbb7a['startsWith']('attribute')?'FORMATTING':_0x4bbb7a['toUpperCase']();return o(this['editor']['locale'],_0x4d0b34+'_'+_0x56c89c+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x45bf15=this['editor'];if(!_0x45bf15['ui'])return;const {ariaLiveAnnouncer:_0x599a73}=_0x45bf15['ui'];_0xc5ef19(this['_model'],({left:_0xeb83d9,entered:_0x436f3c})=>{for(const _0x26fa90 of _0xeb83d9){const {group:_0x438887,type:_0x3f5205}=this['_splitMarkerName'](_0x26fa90['name']);if('suggestion'===_0x438887){_0x599a73['announce'](this['_getMarkerAnnouncementText'](_0x3f5205,'LEAVE'));break;}}for(const _0x33a3a9 of _0x436f3c){const {group:_0x47c0da,type:_0x5ea4a8}=this['_splitMarkerName'](_0x33a3a9['name']);if('suggestion'===_0x47c0da){_0x599a73['announce'](this['_getMarkerAnnouncementText'](_0x5ea4a8,'ENTER'));break;}}});}['_processAttributeChanges'](_0x18a684){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4ce73e=this['editor'],_0x5ceca3=_0x4ce73e['model']['document']['differ']['getChanges']();if(0x0==_0x5ceca3['length'])return!0x1;const _0x1dcc49=[],_0x32e879=_0x5ceca3['filter'](_0x56d6b1=>'attribute'==_0x56d6b1['type']),_0x32a4d8=_0x5ceca3['filter'](_0x1437e4=>'insert'==_0x1437e4['type']&&'$text'!=_0x1437e4['name']),_0x3aae1e=_0x5ceca3['filter'](_0x5901ac=>'remove'==_0x5901ac['type']&&'$text'!=_0x5901ac['name']);for(const _0x119153 of _0x32e879)_0x1dcc49['push']({'key':_0x119153['attributeKey'],'newValue':_0x119153['attributeNewValue'],'oldValue':_0x119153['attributeOldValue'],'range':Ot(_0x119153['range'],_0x4ce73e['model'])});for(const _0x36ac8f of _0x32a4d8){const _0x5d38a7=_0x3aae1e['find'](_0xd5405e=>_0xd5405e['position']['isEqual'](_0x36ac8f['position']));_0x5d38a7&&_0x1dcc49['push']({'key':m,'newValue':_0x36ac8f['name'],'oldValue':_0x5d38a7['name'],'range':_0x4ce73e['model']['createRangeOn'](_0x36ac8f['position']['nodeAfter'])});}return 0x0!=_0x1dcc49['length']&&this['_reduceExistingSuggestions'](_0x18a684,_0x1dcc49);}['_processAttributeSuggestions'](_0x2174c7){let _0x1c9ced=!0x1;const _0x19d7e0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x331ea1=>_0x331ea1['data']['newRange']&&_0x331ea1['name']['startsWith']('suggestion:attribute:'));for(const _0x57d434 of _0x19d7e0){const {subType:_0xe8505c,id:_0x5d2e0d}=this['_splitMarkerName'](_0x57d434['name']),_0x81301f=_0xe8505c['split']('|')[0x0];for(const _0xae5ebb of this['getSuggestions']({'skipNotAttached':!0x0}))_0xae5ebb['id']!=_0x5d2e0d&&'attribute'==_0xae5ebb['type']&&_0xae5ebb['data']&&_0xae5ebb['data']['key']==_0x81301f&&_0xae5ebb['getFirstRange']()['isIntersecting'](_0x57d434['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xae5ebb,_0x57d434['data']['newRange'],_0x2174c7),_0x1c9ced=!0x0);}return _0x1c9ced;}['_recordAttributeChanges'](_0x1637f3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1637f3();}['_isRegisteredAttribute'](_0x39e7f0){const _0x293c19=this['_isBlockAttribute'](_0x39e7f0),_0x70feb1=this['_inlineAttributeKeys']['has'](_0x39e7f0);return _0x293c19||_0x70feb1;}['_reduceExistingSuggestions'](_0x262a8c,_0x295b99){if(0x0==_0x295b99['length'])return!0x1;let _0x19e6ab=!0x1;for(const _0x552ce4 of _0x295b99){const _0x22e9e3=this['_findSuggestions'](_0x552ce4['range'],'attribute')['filter'](_0x2bd866=>!_0x2bd866['meta']['isNextTo'])['map'](_0xee53cb=>_0xee53cb['suggestion']),_0x472203=_0x2f13d0({'newValue':_0x552ce4['newValue']});_0x22e9e3['filter'](_0x4124c2=>{const [_0x30173c,_0x52b499]=_0x4124c2['subType']['split']('|');return _0x30173c==_0x552ce4['key']&&_0x52b499!=_0x472203;})['forEach'](_0x2962f7=>{this['_reduceSuggestionAttributeRange'](_0x2962f7,_0x552ce4['range'],_0x262a8c),_0x19e6ab=!0x0;});}return _0x19e6ab;}['_reduceSuggestionAttributeRange'](_0x4c0366,_0x5dcb53,_0x452810){const _0x9a02e=_0x4c0366['getFirstRange']()['getDifference'](_0x5dcb53);0x0!==_0x9a02e['length']?0x1!==_0x9a02e['length']?this['_breakSuggestionMarker'](_0x4c0366,_0x5dcb53['start'],_0x5dcb53['end']):this['_setSuggestionRange'](_0x4c0366,_0x9a02e[0x0]):_0x452810['removeMarker'](_0x4c0366['getFirstMarker']());}constructor(_0x530855){function _0x4d989d(_0x435a7b){return _0x435a7b['map'](_0x243352=>String['fromCharCode'](_0x243352))['join']('');}super(_0x530855),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1e485f,_0x1ff4bc,_0xb295fb,_0x300923)=>{this['_model']['change'](()=>{for(const _0x5bfbf5 of[..._0x300923,..._0xb295fb])this['_model']['markers']['has'](_0x5bfbf5)&&_0x530855['editing']['reconvertMarker'](_0x5bfbf5);});}),this['_descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x530855['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x530855['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x530855['config']['get']('trackChanges.trackFormatChanges'),_0x530855['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x530855['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x530855,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x4d989d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x4d989d([0x34,0x30,0x34,0x38,0x30,0x38,0x35,0x38]);}}class xt{['buildSuggestion'](_0x1838ee,_0x2bd145,_0x5c61dc,_0x18200c,_0x2aca66,_0x106ead){return new u(this['_model'],{'type':_0x1838ee,'subType':_0x2bd145,'id':_0x5c61dc,'author':_0x18200c,'creator':_0x18200c,'attributes':_0x2aca66,'onAttributesChange':_0x106ead,'onAccept':(..._0x3421d4)=>this['getSuggestionCallback'](_0x1838ee,_0x2bd145,'accept')(..._0x3421d4),'onDiscard':(..._0x4daa37)=>this['getSuggestionCallback'](_0x1838ee,_0x2bd145,'discard')(..._0x4daa37)});}['registerCustomCallback'](_0x143601,_0x409ab7,_0x30cec9,_0x227cd8){const _0x30a654=_0x143601+':'+_0x409ab7+':'+_0x30cec9;this['_customCallbacks']['set'](_0x30a654,_0x227cd8);}['getSuggestionCallback'](_0xfa626f,_0x3b1c26,_0x54a6c4){const _0x4f47f5=_0xfa626f+':'+_0x3b1c26+':'+_0x54a6c4;return this['_customCallbacks']['get'](_0x4f47f5)||this['_defaultCallbacks']['get'](_0xfa626f+':'+_0x54a6c4);}['_registerDefaultCallbacks'](){const _0x300b13=()=>!0x1,_0x41d67c=_0x305846=>{_0x305846['sort']((_0xe82f6f,_0x3524)=>_0xe82f6f['start']['isBefore'](_0x3524['start'])?0x1:-0x1),this['_model']['change'](_0x283945=>{for(const _0x2ee9ac of _0x305846){let _0x22d23f;_0x22d23f=_0x2ee9ac['end']['isAtEnd']&&_0x2ee9ac['end']['parent']==_0x2ee9ac['start']['nodeAfter']?_0x283945['createSelection'](_0x2ee9ac['start']['nodeAfter'],'on'):_0x283945['createSelection'](_0x2ee9ac),this['_model']['deleteContent'](_0x22d23f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3213ec=(_0x49bc64,_0x2b7056)=>{_0x2b7056&&this['_model']['change'](_0x2a3238=>{const {commandName:_0x33f26c,commandParams:_0x49c8ff=[]}=_0x2b7056,_0x1d3814=_0x49bc64['map'](_0x1a78c6=>(Tt(_0x1a78c6)&&(_0x1a78c6=this['_model']['createRange'](_0x1a78c6['end'])),_0x1a78c6))['filter'](_0x5b6da3=>'$graveyard'!==_0x5b6da3['root']['rootName']);if(_0x1d3814['length']<0x1)return;const _0x41a3ee=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1f2ed9=>_0x30a6a3['fromRange'](_0x1f2ed9));_0x2a3238['setSelection'](_0x1d3814);for(const _0x581992 of this['_editor']['commands']['commands']())_0x581992['refresh']();_0x49c8ff['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x33f26c,..._0x49c8ff);const _0xe8a9d2=_0x41a3ee['filter'](_0x176f40=>'$graveyard'!=_0x176f40['root']['rootName']);_0xe8a9d2['length']>0x0&&_0x2a3238['setSelection'](_0xe8a9d2);for(const _0x263aec of _0x41a3ee)_0x263aec['detach']();});},_0x231e7a=(_0x5dc81d,_0x16f9b8)=>0x1==_0x5dc81d['length']&&0x1==_0x16f9b8['length']&&_0x5dc81d[0x0]['end']['isEqual'](_0x16f9b8[0x0]['start']),_0x5e0ade=(_0x5684a7,_0x3b4288,_0x496119,_0x2ead6b)=>Ft(_0x5684a7,_0x3b4288,_0x496119,_0x2ead6b,this['_model'])?[_0x5684a7,_0x3b4288]:Ft(_0x3b4288,_0x5684a7,_0x2ead6b,_0x496119,this['_model'])?[_0x3b4288,_0x5684a7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x300b13),this['_defaultCallbacks']['set']('insertion:discard',_0x41d67c),this['_defaultCallbacks']['set']('insertion:join',_0x231e7a),this['_defaultCallbacks']['set']('insertion:chain',_0x5e0ade),this['_defaultCallbacks']['set']('deletion:accept',_0x41d67c),this['_defaultCallbacks']['set']('deletion:discard',_0x300b13),this['_defaultCallbacks']['set']('deletion:join',_0x231e7a),this['_defaultCallbacks']['set']('deletion:chain',_0x5e0ade),this['_defaultCallbacks']['set']('formatInline:accept',_0x3213ec),this['_defaultCallbacks']['set']('formatInline:discard',_0x300b13),this['_defaultCallbacks']['set']('formatInline:join',_0x231e7a),this['_defaultCallbacks']['set']('formatInline:chain',_0x300b13),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3213ec),this['_defaultCallbacks']['set']('formatBlock:discard',_0x300b13),this['_defaultCallbacks']['set']('formatBlock:join',_0x231e7a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x300b13),this['_defaultCallbacks']['set']('attribute:accept',_0x300b13),this['_defaultCallbacks']['set']('attribute:discard',(_0x222bc8,_0x49f498)=>{if(!_0x49f498)return;const _0x332ccf=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2833fa=>{if(_0x49f498['key']==m)for(const _0x470621 of _0x222bc8){const _0x3cc2d9=_0x470621['start']['nodeAfter'],_0x46f9b8=_0x49f498['oldValue'];_0x2833fa['rename'](_0x3cc2d9,_0x46f9b8);}else{if(_0x332ccf['_isBlockAttribute'](_0x49f498['key'])){for(const _0x3b1e73 of _0x222bc8)void 0x0!==_0x49f498['oldValue']?_0x2833fa['setAttribute'](_0x49f498['key'],_0x49f498['oldValue'],_0x3b1e73['start']['nodeAfter']):_0x2833fa['removeAttribute'](_0x49f498['key'],_0x3b1e73['start']['nodeAfter']);}else{for(const _0x144907 of _0x222bc8)_0x49f498['oldValue']?_0x2833fa['setAttribute'](_0x49f498['key'],_0x49f498['oldValue'],_0x144907):_0x2833fa['removeAttribute'](_0x49f498['key'],_0x144907);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x231e7a);}constructor(_0x3cebdc){this['_editor']=_0x3cebdc,this['_model']=_0x3cebdc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x34e0cd,_0x1d4893,_0x19d190){for(const _0x1cb90d of _0x1d4893['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1cb90d['root']==_0x1cb90d)return!0x1;if(!_0x19d190['containsItem'](_0x1cb90d))return!0x1;if(_0x34e0cd['isObject'](_0x1cb90d)||_0x34e0cd['isLimit'](_0x1cb90d))return!0x0;}return!0x1;}function Tt(_0x4141db){return _0x4141db['end']['parent']==_0x4141db['start']['nodeAfter']&&_0x4141db['end']['isAtStart'];}function Et(_0x508dd1,_0x130608,_0x10ccb3,_0x43c456){const _0x4b7a8b=_0x5b45ec=>!_0x5b45ec['item']['is']('$textProxy')&&!_0x43c456['isObject'](_0x5b45ec['item']),_0x4c8c19=_0x508dd1['start']['getLastMatchingPosition'](_0x4b7a8b),_0x4498a3=_0x508dd1['end']['getLastMatchingPosition'](_0x4b7a8b,{'direction':'backward'});return(!_0x508dd1['start']['isEqual'](_0x4c8c19)||!_0x508dd1['end']['isEqual'](_0x4498a3))&&(_0x4c8c19['isBefore'](_0x4498a3)?_0x10ccb3['updateMarker'](_0x130608,{'range':_0x10ccb3['createRange'](_0x4c8c19,_0x4498a3)}):_0x10ccb3['removeMarker'](_0x130608),!0x0);}function Vt(_0xecf855){return _0x2f13d0(_0xecf855);}function Ut(_0x3adb3){const _0x278650=_0x3adb3['start']['nodeAfter'];return _0x278650&&_0x278650['is']('element');}function Ot(_0x4c6625,_0x5e01e4){return null==_0x4c6625['end']['nodeBefore']&&_0x4c6625['end']['parent']==_0x4c6625['start']['nodeAfter']?Gt(_0x4c6625['start']['nodeAfter'],_0x5e01e4):_0x4c6625;}function Gt(_0x5b060e,_0x40814a){const _0x23f215=_0x40814a['schema']['isObject'](_0x5b060e)||_0x40814a['schema']['isSelectable'](_0x5b060e);return _0x40814a['createRange'](_0x40814a['createPositionAt'](_0x5b060e,'before'),_0x23f215?_0x40814a['createPositionAfter'](_0x5b060e):_0x40814a['createPositionAt'](_0x5b060e,'end'));}function Ft(_0x5b4c7b,_0xc2c26,_0x1618b8,_0x284b80,_0x183bda){if(!Pt(_0x5b4c7b,_0xc2c26))return!0x1;if(_0x1618b8['end']['isEqual'](_0x284b80['start']))return!0x0;if(_0x5b4c7b['type']!=_0xc2c26['type'])return!0x1;if(!_0x1618b8['end']['isTouching'](_0x284b80['start']))return!0x1;const _0x1810b9=_0x183bda['createRange'](_0x1618b8['end'],_0x284b80['start'])['getWalker']();for(const _0x5b5eba of _0x1810b9)if(['elementStart','elementEnd']['includes'](_0x5b5eba['type'])&&_0x183bda['schema']['isLimit'](_0x5b5eba['item']))return!0x1;return!0x0;}function Pt(_0x1da159,_0x2bf76c,_0x1ef9eb=[]){return!(!_0x1da159['_isDataLoaded']||!_0x2bf76c['_isDataLoaded'])&&_0x11601a(Bt(_0x1da159['attributes'],_0x1ef9eb),Bt(_0x2bf76c['attributes'],_0x1ef9eb));}function Lt(_0x3a041f,_0x222c69){const _0x487b97=Ht(_0x3a041f['attributes']),_0x4b7fef=Ht(_0x222c69);if(!_0x3a041f['_isDataLoaded'])return!0x1;for(const _0x1fc1ad of Object['keys'](_0x4b7fef))if(!_0x11601a(_0x487b97[_0x1fc1ad],_0x4b7fef[_0x1fc1ad]))return!0x1;return!0x0;}function Ht(_0x4c1834){const _0x4f4746=Object['assign']({},_0x4c1834);return delete _0x4f4746['skipNestingCheck'],delete _0x4f4746['tablePasteChainId'],_0x4f4746;}class oe extends _0x4f1937(){['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 _0x2a049e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2a049e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x5f0e71,_0x3b9a03,_0x52d6ee,_0x216963){super(),this['model']=_0x3b9a03,this['view']=_0x52d6ee,this['commentThreadController']=_0x216963,this['_editor']=_0x5f0e71,this['_acceptCommand']=_0x5f0e71['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5f0e71['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x458edf,_0x11c964)=>_0x458edf||_0x11c964),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x430baa=>_0x430baa&&this['_editor']['model']['canEditAt'](_0x3b9a03['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x40f23b=>_0x40f23b&&this['_editor']['model']['canEditAt'](_0x3b9a03['getRanges']())),this['_pendingAction']=null,_0x52d6ee['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x52d6ee,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x52d6ee,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x52d6ee,'change:isDirty',()=>{_0x52d6ee['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x1bd18e{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x26eb3c}=this['_config'];this['commentsListView']=new _0x26eb3c(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',_0x5222fa=>_0x5222fa+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x36d1d9,_0x5462e6)=>_0x36d1d9||!!_0x5462e6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x144b9a}=this['_config'],_0xd6b879=new _0x144b9a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f02bf=_0xd6b879['commentInputView'];return _0xd6b879['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3f02bf,'value',(_0x87e086,_0x35e4a5,_0x1f4a46)=>!!_0x1f4a46||_0x87e086&&!_0x35e4a5),_0x3f02bf['on']('submit',(_0x299ec8,_0x11b309)=>{this['fire']('addComment',_0x11b309),_0x3f02bf['editor']['setData']('');}),_0x3f02bf['on']('cancel',()=>this['focus']()),_0x3f02bf['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xd6b879;}constructor(_0x30be73,_0x5c67b0,_0x49e791,_0x56dbc5){super(_0x30be73),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5c67b0['authoredAt']),this['bind']('authoredAt')['to'](_0x5c67b0),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5c67b0,this['_localUser']=_0x49e791,this['_config']=_0x56dbc5,_0x56dbc5['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x46da8e=this['bindTemplate'],_0x4eab98=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x46da8e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46da8e['to']('authoredAt',_0x57d41a=>this['_config']['formatDateTime'](_0x57d41a))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x4eab98['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x12d909={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x46da8e['if']('isActive','ck-suggestion-wrapper--active'),_0x46da8e['to']('type',_0x25de51=>'ck-suggestion-'+_0x25de51),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x4eab98}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x12d909['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x12d909;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x30109a,_0x3435ed,_0x15206e)=>{this['_descriptionElement']['innerHTML']=_0x15206e;});}['_createButton'](_0x31f131,_0x5f32a0,_0xfa200d,_0x51a311,_0x164d09){const _0x2ba59f=new _0x4fc6e1(this['locale']);return _0x2ba59f['set']({'label':_0x31f131,'icon':_0x5f32a0,'tooltip':!0x0,'tooltipPosition':_0x164d09}),_0x2ba59f['extendTemplate']({'attributes':{'class':_0xfa200d}}),_0x2ba59f['on']('execute',()=>{this['fire'](_0x51a311,this['_model']['id']);}),_0x2ba59f;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}constructor(_0x4bdfc7,_0x598e82,_0x57b24b,_0x332ea4){super(_0x4bdfc7,_0x598e82,_0x57b24b,_0x332ea4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x36cd84=>_0x36cd84&&_0x36cd84[0x0]?_0x36cd84[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x105d9c,_0x417053)=>{let _0x2549d7='';for(const _0xfe87d0 of _0x105d9c)_0x2549d7+='<p>'+ds(_0xfe87d0['content'],_0xfe87d0['color'])+'</p>';return _0x417053?_0x2549d7:_0x45699f(_0x2549d7,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4bdfc7,'Accept\x20suggestion'),_0x1edff3['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4bdfc7,'Discard\x20suggestion'),_0x1edff3['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4b67e2(_0x4bdfc7,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x4f8943,_0x453143){let _0x24d42b='';return _0x24d42b+=_0x4f8943['split']('*')['map']((_0x36c4b1,_0x22e7cc)=>_0x22e7cc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x36c4b1)+'</span>':us(_0x36c4b1))['join'](''),_0x453143&&(_0x24d42b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x453143['value']+'\x22\x20title=\x22'+_0x453143['title']+'\x22></span>'),_0x24d42b;}function us(_0x45191e){const _0x466560=document['createElement']('span');return _0x466560['innerText']=_0x45191e,_0x466560['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x43660f{static get['requires'](){return[p,_0x380c8c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x2765c2,_0x26367b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x255757,_0x3a6333]of this['_handleControllerBuffer']){const _0x4b9468=this['_suggestionToController']['has'](_0x255757);_0x4b9468||_0x3a6333?_0x4b9468&&_0x3a6333&&this['_destroyController'](_0x255757):this['_initializeController'](_0x255757);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2765c2,_0x26367b);}['init'](){const _0x433597=this['editor'],_0x131b7d=_0x433597['plugins']['get']('TrackChangesEditing'),_0x223f85=_0x433597['plugins']['get']('Annotations'),_0x44f13a=_0x433597['plugins']['get']('EditorAnnotations'),_0x240c5f=_0x433597['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x44f13a['addSourceCollector'](()=>{const _0x32042b=[];for(const [_0x3996d2,_0x400c70]of Array['from'](this['_suggestionToController'])){const _0x266bf1=_0x3996d2['getAllAdjacentSuggestions'](),_0x3af966=[];for(const _0x588c9b of _0x266bf1){if(!_0x588c9b['isInContent'])continue;if(_0x588c9b['isMultiRange']){_0x3af966['push'](..._0x588c9b['getRanges']());continue;}const _0x4dd591=_0x588c9b['getFirstRange']();if(_0x3af966['length']>0x0){const _0xdfcf54=_0x3af966[0x0]['getJoined'](_0x4dd591);if(_0xdfcf54){_0x3af966[0x0]=_0xdfcf54;continue;}}_0x3af966['push'](_0x4dd591);}_0x32042b['push']([_0x400c70['view'],_0x3af966]);}return _0x32042b;}),this['listenTo'](_0x131b7d,'suggestionLoaded',(_0x9dd33d,_0xe36776)=>{this['listenTo'](_0xe36776,'change:previous',(_0x430388,_0x40fa5d,_0x361622,_0x4cbad2)=>{_0xe36776['isInContent']&&(null==_0x361622?(this['_updateController'](_0x4cbad2['head']),this['_handleSuggestionControllerDelayed'](_0xe36776,!0x1)):(this['_updateController'](_0x361622['head']),null==_0x4cbad2&&this['_handleSuggestionControllerDelayed'](_0xe36776,!0x0)));}),null!==_0xe36776['previous']?this['_updateController'](_0xe36776['head']):this['_handleSuggestionControllerDelayed'](_0xe36776,!0x1);}),this['listenTo'](_0x131b7d,'suggestionUnloaded',(_0x3f4152,_0xcab3fe,_0x2e6b96)=>{this['stopListening'](_0xcab3fe,'change:previous'),this['_handleControllerBuffer']['delete'](_0xcab3fe),this['_suggestionToController']['has'](_0xcab3fe)&&this['_destroyController'](_0xcab3fe),_0x2e6b96&&this['_updateController'](_0x2e6b96['head']);}),this['listenTo'](_0x131b7d,'suggestionChanged',(_0x275d3d,_0x399bf1)=>{this['_updateController'](_0x399bf1);}),this['listenTo'](_0x223f85,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x240c5f,'addComment',(_0x5646db,{threadId:_0x4d825b,isFromAdapter:_0x530107})=>{if(_0x530107||!_0x131b7d['hasSuggestion'](_0x4d825b))return;const _0x2d04af=_0x131b7d['getSuggestion'](_0x4d825b);this['_suggestionToController']['get'](_0x2d04af)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x484c33=this['editor']['plugins']['get']('Annotations'),_0x5a7f43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58ff90=Array['from'](_0x484c33['activeAnnotations'],_0x19b53e=>_0x19b53e['innerView'])['filter'](_0x50a5fa=>this['_viewToController']['has'](_0x50a5fa)),_0x28be42=[];for(const _0x1a7fc0 of _0x58ff90){const _0x19f892=this['_viewToController']['get'](_0x1a7fc0)['model']['getAllAdjacentSuggestions']();_0x28be42['push'](..._0x19f892['reduce']((_0x272135,_0xf22d91)=>[..._0x272135,..._0xf22d91['getMarkerNames']()],[]));}_0x5a7f43['activeMarkers']=_0x28be42;}['_addUIComponentsToFactory'](){const _0x59cf97=this['editor'],_0x40388c=_0x59cf97['locale'],_0x5932ec=o(_0x40388c,'Track\x20changes'),_0xbc168b=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x5932ec,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x40388c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x40388c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x40388c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x40388c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x3045c5 of _0xbc168b)if(ae(_0x3045c5)){const _0x4a6c13=_0x59cf97['commands']['get'](_0x3045c5['model']['commandName']);_0x3045c5['model']['bind']('isOn','isEnabled')['to'](_0x4a6c13,'value','isEnabled');}_0x59cf97['ui']['componentFactory']['add']('trackChanges',_0x5461c2=>this['_createToolbarButton'](_0x5461c2,_0xbc168b,_0x5932ec)),_0x59cf97['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1e4068=>this['_createMenuBarMenu'](_0x1e4068,_0xbc168b,_0x5932ec));}['_createToolbarButton'](_0x6cb121,_0x3f5462,_0x538535){const _0x1cd6ee=zt(_0x6cb121,Zt),_0x4b8539=this['editor']['commands']['get']('trackChanges');_0x1cd6ee['buttonView']['set']({'tooltip':_0x538535,'label':_0x538535,'icon':ie}),_0x1cd6ee['buttonView']['bind']('isOn')['to'](_0x4b8539,'value'),_0x1cd6ee['buttonView']['on']('execute',()=>{_0x4b8539['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1cd6ee,_0x3f5462);const _0x58cb77=[];for(const _0x2cb01a of _0x3f5462)ae(_0x2cb01a)&&_0x58cb77['push'](this['editor']['commands']['get'](_0x2cb01a['model']['commandName']));const _0x4f0f18=_0x1cd6ee['buttonView'];return _0x4f0f18['actionView']['unbind']('isEnabled'),_0x4f0f18['arrowView']['unbind']('isEnabled'),_0x4f0f18['actionView']['bind']('isEnabled')['to'](_0x4b8539,'isEnabled'),_0x4f0f18['arrowView']['bind']('isEnabled')['toMany'](_0x58cb77,'isEnabled',(..._0xa137f3)=>_0xa137f3['some'](_0x44c38e=>_0x44c38e)),_0x1cd6ee['on']('execute',_0x5467d7=>{this['editor']['execute'](_0x5467d7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1cd6ee;}['_createMenuBarMenu'](_0x3af6f5,_0x53c42c,_0x459f00){const _0x4bc059=new Kt(_0x3af6f5),_0x12b265=this['editor']['commands']['get']('trackChanges');_0x4bc059['buttonView']['set']({'label':_0x459f00,'icon':ie});const _0x416447=new Qt(_0x3af6f5);for(const _0x2c2e12 of _0x53c42c){if('separator'==_0x2c2e12['type']){_0x416447['items']['add'](new Jt(_0x3af6f5));continue;}const _0x11e6d9=new Xt(_0x3af6f5,_0x4bc059),_0x18345d=new Yt(_0x3af6f5),_0x285243=_0x2c2e12['model'];_0x18345d['bind'](...Object['keys'](_0x285243))['to'](_0x285243),_0x18345d['delegate']('execute')['to'](_0x4bc059),_0x18345d['on']('execute',()=>{this['editor']['execute'](_0x285243['commandName']),this['editor']['editing']['view']['focus']();}),_0x11e6d9['children']['add'](_0x18345d),_0x416447['items']['add'](_0x11e6d9);}return _0x4bc059['bind']('isEnabled')['to'](_0x12b265,'isEnabled'),_0x4bc059['panelView']['children']['add'](_0x416447),_0x4bc059;}['_initializeController'](_0x574d79){const _0x4abbe7=this['editor'],_0x591e6f=_0x4abbe7['config'],_0x4cd7db=_0x4abbe7['plugins']['get']('Annotations'),_0x4840ec=_0x4abbe7['plugins']['get']('CommentsRepository'),_0x15be57=_0x4abbe7['plugins']['get']('EditorAnnotations'),_0x1b0d23=_0x4abbe7['plugins']['get'](_0x380c8c)['me'],_0xc3145e=_0x591e6f['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x4be914,CommentThreadInputView:_0x4ec3a9}=_0x4abbe7['plugins']['get']('CommentsUI');let _0x482196,_0x20dc63;this['_annotationViews']['has'](_0x574d79['id'])?(_0x20dc63=this['_annotationViews']['get'](_0x574d79['id']),_0x482196=_0x20dc63['mainView']):(_0x482196=new _0xc3145e(_0x4abbe7['locale'],_0x574d79,_0x1b0d23,{'disableComments':this['_disableComments'],'editorConfig':_0x591e6f['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x591e6f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x591e6f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x591e6f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2064fc(_0x591e6f['get']('locale')),'CommentView':_0x591e6f['get']('comments')['CommentView'],'CommentsListView':_0x4be914,'CommentThreadInputView':_0x4ec3a9}),_0x482196['acceptButton']['on']('execute',()=>{_0x4abbe7['editing']['view']['focus']();}),_0x482196['discardButton']['on']('execute',()=>{_0x4abbe7['editing']['view']['focus']();}),_0x20dc63=_0x4cd7db['createAnnotationView'](this['editor']['locale'],_0x482196),_0x20dc63['bind']('isDirty')['to'](_0x482196,'isDirty'),_0x20dc63['bind']('length')['to'](_0x482196),_0x20dc63['bind']('type')['to'](_0x482196,'type',_0x4a772d=>'suggestion-'+_0x4a772d),this['_annotationViews']['set'](_0x574d79['id'],_0x20dc63));const _0x732e9e=_0x4840ec['createCommentThreadController'](_0x574d79['commentThread'],_0x482196),_0x156878=new oe(_0x4abbe7,_0x574d79,_0x482196,_0x732e9e),_0xd0499e=_0x574d79['getAllAdjacentSuggestions']()['filter'](_0x4db25c=>_0x4db25c['isInContent']);_0x482196['descriptionParts']=_0x4abbe7['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0xd0499e),this['_suggestionToController']['set'](_0x574d79,_0x156878),this['_viewToController']['set'](_0x482196,_0x156878);const _0x28df98=_0x4cd7db['createAnnotation']({'view':_0x20dc63,'target':()=>{const _0x428e9b=[],_0x40ed02=_0x574d79['getAllAdjacentSuggestions']()['filter'](_0x4fc485=>_0x4fc485['isInContent']);for(const _0x15671f of _0x40ed02)_0x428e9b['push'](..._0x15671f['getMarkers']());return _0x2ba4da(_0x4abbe7['editing'],_0x428e9b);},'type':()=>'suggestion-'+_0x156878['view']['type']});_0x4840ec['_bindAnnotationToEditors'](_0x482196,_0x28df98),_0x4cd7db['add'](_0x28df98),_0x15be57['registerAnnotation'](_0x28df98);}['_destroyController'](_0x1bbaeb){const _0xfcb0d6=this['editor']['plugins']['get']('CommentsRepository'),_0x47c62d=this['editor']['plugins']['get']('Annotations'),_0x2b5748=this['_suggestionToController']['get'](_0x1bbaeb),_0x4d260c=_0x2b5748['view'],_0x47ca44=_0x47c62d['getByInnerView'](_0x4d260c);_0xfcb0d6['_unbindEditors'](_0x4d260c),_0x47ca44&&_0x47c62d['remove'](_0x47ca44),this['_suggestionToController']['delete'](_0x1bbaeb),this['_viewToController']['delete'](_0x4d260c),_0x2b5748['destroy']();}['_updateController'](_0x54dd5d){if(!_0x54dd5d['isInContent']||!this['_suggestionToController']['has'](_0x54dd5d))return;const _0x4d39b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25034a=this['_suggestionToController']['get'](_0x54dd5d),_0x115d06=_0x54dd5d['getAllAdjacentSuggestions']();_0x25034a['view']['descriptionParts']=_0x4d39b0['_descriptionFactory']['getDescriptions'](_0x115d06);}['destroy'](){for(const _0x1fdedd of this['_suggestionToController']['keys']())this['_destroyController'](_0x1fdedd);for(const _0x16ce21 of this['_annotationViews']['values']())_0x16ce21['mainView']['destroy']();super['destroy']();}constructor(_0x4f8a6d){super(_0x4f8a6d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x48eaad=this['editor']['config'];_0x48eaad['define']('trackChanges.SuggestionThreadView',ne),_0x48eaad['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x48eaad['get']('trackChanges.disableComments');}}function ae(_0x179ad9){return'model'in _0x179ad9;}class k extends _0x43660f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x166bbc){this['editor']['plugins']['get'](p)['adapter']=_0x166bbc;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3baae0){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3baae0);}['getSuggestions']({skipNotAttached:_0x5a48ea=!0x1,toJSON:_0x2f5198=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5a48ea,'toJSON':_0x2f5198});}['getSuggestion'](_0x3f7676){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3f7676);}}const T=['Pagination'];class P extends _0x43660f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4c3761=this['editor'];if(_0x4c3761['config']['define']('trackChangesData.editorCreator',_0x1d8838=>{const _0x24c33d=_0x4c3761['model']['document']['getRootNames']()['reduce']((_0x3f33d4,_0x49a7e7)=>(_0x3f33d4[_0x49a7e7]='',_0x3f33d4),{});return _0x4c3761['constructor']['create'](_0x24c33d,_0x1d8838);}),'function'!=typeof _0x4c3761['config']['get']('trackChangesData')['editorCreator'])throw new _0x148f6c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xb3721){return N(this['editor'],!0x0,_0xb3721);}['getDataWithDiscardedSuggestions'](_0x536d64){return N(this['editor'],!0x1,_0x536d64);}}class D extends _0x43660f{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x350be5){super(_0x350be5),this['result']='end';}}function v(_0xd3c61){return void 0x0!==_0xd3c61['getRootsAttributes'];}async function N(_0x235e2a,_0x89eaa9,_0x5d759e){const _0x58a962=_0x37f701(_0x235e2a,T);_0x58a962['plugins']['push'](p,D),_0x58a962['rootsAttributes']=v(_0x235e2a)?_0x235e2a['getRootsAttributes']():void 0x0;const _0x3c4938=document['createDocumentFragment'](),_0x53c805=_0x235e2a['config']['get']('trackChangesData')['editorCreator'],_0x71872d=await _0x53c805(_0x58a962,()=>function(_0x450274){const _0x38b9fd=document['createElement']('div');return _0x450274['appendChild'](_0x38b9fd),_0x38b9fd;}(_0x3c4938));!function(_0x138109,_0x5058d2){const _0x5c3f9e=_0x138109['model']['document']['getRootNames']()['reduce']((_0x29fa9c,_0x100929)=>(_0x29fa9c[_0x100929]=_0x138109['data']['get']({'rootName':_0x100929}),_0x29fa9c),{}),_0x5428ee=_0x138109['plugins']['get']('Users')['users']['map'](_0x3c1f19=>({'id':_0x3c1f19['id'],'name':_0x3c1f19['name']})),_0x508ef8=_0x138109['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x57e6f9=_0x5058d2['plugins']['get']('Users'),_0x24c8b4=_0x5058d2['plugins']['get']('TrackChangesEditing');for(const _0x5e4c36 of _0x5428ee)_0x57e6f9['getUser'](_0x5e4c36['id'])||_0x57e6f9['addUser'](_0x5e4c36);_0x57e6f9['me']||_0x57e6f9['useAnonymousUser']();for(const _0x58da36 of _0x508ef8)_0x24c8b4['addSuggestionData'](_0x58da36);_0x5058d2['data']['set'](_0x5c3f9e);}(_0x235e2a,_0x71872d),_0x71872d['execute'](_0x89eaa9?'acceptAllSuggestions':'discardAllSuggestions');const _0x4e6e1f=v(_0x71872d)?_0x71872d['getFullData'](_0x5d759e):_0x71872d['data']['get'](_0x5d759e);return await _0x71872d['destroy'](),_0x4e6e1f;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x26e52a,PendingActions as _0x52678f,icons as _0x39a540}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x215eab,ObservableMixin as _0xa1677b,uid as _0x1702d8,insertToPriorityArray as _0x9c0d61,priorities as _0x3cf857,logWarning as _0x234e6d,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x9dfa68,View as _0x428534,ButtonView as _0x1b184b,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4a5edb,hashObject as _0x37c9d3,surroundingMarkersDetector as _0x22e895,trimHtml as _0x252a9a,UserView as _0x1ff955,getDateTimeFormatter as _0x23f3b0,getAllMarkersDomElementsSorted as _0x406756,sanitizeEditorConfig as _0x5d98e0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4a3547,LiveRange as _0x577a36,LivePosition as _0x2146ab}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x408711,toWidget as _0x2b4f44}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1a6d0a,set as _0x35d8,isEqual as _0x2b8b8c,unset as _0x4263c5,omit as Bt}from'lodash-es';import{Delete as _0x343642,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5df135,ShiftEnter as _0x188c20}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x447842 of this['editor']['commands']['commands']())_0x447842['affectsData']&&!this['_enabledCommands']['has'](_0x447842)&&_0x447842['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x37672f of this['editor']['commands']['commands']())_0x37672f['affectsData']&&!this['_enabledCommands']['has'](_0x37672f)&&_0x37672f['clearForceDisabled']('TrackChangesCommand');}constructor(_0x5718a1,_0x4de481){super(_0x5718a1),this['_enabledCommands']=_0x4de481,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2299a0){const _0x466945=this['_suggestions']['get'](_0x2299a0);if(!_0x466945)throw new _0x215eab('track-changes-accept-suggestion-not-found',this);const _0x24dd1c=_0x466945['getRanges']();this['editor']['model']['canEditAt'](_0x24dd1c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x466945);}constructor(_0x4775d9,_0x134aab){super(_0x4775d9),this['_suggestions']=_0x134aab,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f0b62){const _0x5c40ed=this['_suggestions']['get'](_0x3f0b62);if(!_0x5c40ed)throw new _0x215eab('track-changes-discard-suggestion-not-found',this);const _0x424310=_0x5c40ed['getRanges']();this['editor']['model']['canEditAt'](_0x424310)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5c40ed);}constructor(_0x141608,_0x250b6f){super(_0x141608),this['_suggestions']=_0x250b6f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x55d0fb){return _0x55d0fb['sort']((_0xe94b8f,_0x1e41ad)=>'deletion'==_0xe94b8f['type']&&'deletion'!=_0x1e41ad['type']?-0x1:'deletion'!=_0xe94b8f['type']&&'deletion'==_0x1e41ad['type']?0x1:0x0);}function to(_0x352d3b,_0x3dda1a){let _0x495f1f,_0x45a84a=0x0;const _0x2f0bbc=[],_0x1cd46d=_0x3dda1a['schema'];for(;_0x45a84a<_0x352d3b['length'];){const _0x5588fb=_0x352d3b[_0x45a84a],_0x3d9cd8=_0x352d3b[_0x45a84a+0x1];_0x495f1f||(_0x495f1f=_0x3dda1a['createPositionBefore'](_0x5588fb)),co(_0x3dda1a,_0x5588fb,_0x3d9cd8)||(_0x2f0bbc['push'](_0x3dda1a['createRange'](_0x495f1f,_0x1cd46d['isObject'](_0x5588fb)?_0x3dda1a['createPositionAfter'](_0x5588fb):_0x3dda1a['createPositionAt'](_0x5588fb,'end'))),_0x495f1f=null),_0x45a84a++;}return _0x2f0bbc;}function co(_0xc821d5,_0x1fd6ba,_0x19eb0e){if(!_0x19eb0e)return!0x1;const _0x3bae15=_0xc821d5['createPositionAfter'](_0x1fd6ba),_0x32a848=_0xc821d5['createPositionBefore'](_0x19eb0e);return _0x3bae15['isTouching'](_0x32a848);}function rs(_0x5c9d2f,_0x2959c7,_0x3d744e){for(;_0x3d744e['length'];){const _0x15dca5=_0x3d744e['splice'](0x0,0x64);_0x5c9d2f['change'](()=>{for(const _0x6e2ff9 of _0x15dca5)_0x6e2ff9['isInContent']&&_0x2959c7['execute'](_0x6e2ff9['id']);});}}class x extends ts{['refresh'](){const _0x20a895=Array['from'](this['_suggestions']['values']())['some'](_0x4a5b9d=>_0x4a5b9d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x20a895;}['execute'](){const _0x4a1a0b=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4745ae of _0x4a1a0b){const _0x4acdfc=_0x4745ae['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4acdfc))return;}rs(this['editor']['model'],this['_command'],_0x4a1a0b);}constructor(_0x18204b,_0x53bd67,_0xdb88ab){super(_0x18204b),this['_command']=_0x53bd67,this['_suggestions']=_0xdb88ab,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0xc816df=this['editor']['model']['document']['selection'],_0x2908f1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5138b0,_0x2b62fc){const _0x4eb03f=Array['from'](_0x5138b0['getRanges']()),_0x436acd=new Set();for(const _0xe66142 of _0x2b62fc)if(_0xe66142['isInContent']){for(const _0x1f92f2 of _0x4eb03f)for(const _0x158fc0 of _0xe66142['getRanges']())(_0x1f92f2['isIntersecting'](_0x158fc0)||_0x5138b0['isCollapsed']&&!_0xe66142['isMultiRange']&&_0xe66142['next']&&_0x158fc0['end']['isTouching'](_0x1f92f2['start']))&&_0x436acd['add'](_0xe66142);}return _0x436acd;}(_0xc816df,_0x2908f1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x16f561=ss(Array['from'](this['_selectedSuggestions']));for(const _0x55a2a9 of _0x16f561){const _0x556827=_0x55a2a9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x556827))return;}rs(this['editor']['model'],this['_command'],_0x16f561);}constructor(_0x2dd8cf,_0x4d187d,_0x32782f){super(_0x2dd8cf),this['_command']=_0x4d187d,this['_suggestions']=_0x32782f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0xa1677b(){get['head'](){let _0x7d1e61=this;for(;_0x7d1e61['previous'];)_0x7d1e61=_0x7d1e61['previous'];return _0x7d1e61;}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'](_0x4ce4cb){this['_markerNames']['add'](_0x4ce4cb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3e1f00=>this['_model']['markers']['get'](_0x3e1f00))['filter'](_0x5ee29d=>_0x5ee29d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5a0b5c=>{for(const _0x365d2d of this['getMarkers']())_0x5a0b5c['removeMarker'](_0x365d2d);}),this['_markerNames']['clear']();}['removeMarker'](_0x29d47f){this['_model']['change'](_0x35d387=>{_0x35d387['removeMarker'](_0x29d47f);}),this['_markerNames']['delete'](_0x29d47f);}['addRange'](_0x269016){const _0x5747a7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5747a7),this['_model']['change'](_0xaa300e=>{_0xaa300e['addMarker'](_0x5747a7,{'range':_0x269016,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x540af9){for(const _0x1909ec of this['getRanges']())if(_0x1909ec['isIntersecting'](_0x540af9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x199af2=>_0x199af2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5f06ad,_0x44686f)=>[..._0x5f06ad,..._0x44686f['getItems']()],[]);}['getFirstRange'](){var _0x5459e4;return(null===(_0x5459e4=this['getFirstMarker']())||void 0x0===_0x5459e4?void 0x0:_0x5459e4['getRange']())||null;}['getContainedElement'](){const _0x1fb7bf=this['getRanges']();if(0x1!=_0x1fb7bf['length'])return null;const _0x5032a8=_0x1fb7bf[0x0],_0x19bec1=_0x5032a8['start']['nodeAfter'],_0x2a9b4b=_0x5032a8['end']['nodeBefore'];return _0x19bec1 instanceof _0x4a3547?_0x19bec1!=_0x2a9b4b?null:_0x19bec1: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 _0x55062c=[];let _0x39b5c8=this['head'];for(;_0x39b5c8;)_0x55062c['push'](_0x39b5c8),_0x39b5c8=_0x39b5c8['next'];return _0x55062c;}['setAttribute'](_0x58e5d5,_0x3eb731){const _0x54eefd=_0x1a6d0a(this['attributes']);_0x35d8(_0x54eefd,_0x58e5d5,_0x3eb731),_0x2b8b8c(_0x54eefd,this['attributes'])||(this['attributes']=_0x54eefd,this['_onAttributesChange'](_0x54eefd));}['removeAttribute'](_0xccb2f0){const _0xe69490=_0x1a6d0a(this['attributes']);_0x4263c5(_0xe69490,_0xccb2f0),_0x2b8b8c(_0xe69490,this['attributes'])||(this['attributes']=_0xe69490,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 _0x1702d8()['substr'](0x1,0x5);}constructor(_0xf70b67,_0x17dd20){super(),this['_isDataLoaded']=!0x1,this['id']=_0x17dd20['id'],this['type']=_0x17dd20['type'],this['subType']=_0x17dd20['subType']||null,this['author']=_0x17dd20['author'],this['creator']=_0x17dd20['creator']||_0x17dd20['author'],this['isExternal']=Boolean(_0x17dd20['attributes']&&_0x17dd20['attributes']['@external']),this['data']=null,this['_model']=_0xf70b67,this['_onAccept']=_0x17dd20['onAccept'],this['_onDiscard']=_0x17dd20['onDiscard'],this['_onAttributesChange']=_0x17dd20['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x17dd20['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x2c5de9,_0x39ad17,_0x70f7bb){const t=_0x2c5de9['t'];switch(_0x39ad17){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x70f7bb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x70f7bb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x70f7bb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x70f7bb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x70f7bb);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',_0x70f7bb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x70f7bb);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x70f7bb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x70f7bb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x70f7bb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x70f7bb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x70f7bb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x70f7bb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x70f7bb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x70f7bb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x70f7bb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x70f7bb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x70f7bb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x70f7bb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x70f7bb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x70f7bb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x70f7bb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x70f7bb);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'},_0x70f7bb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x70f7bb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x70f7bb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x70f7bb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x70f7bb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x70f7bb);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'},_0x70f7bb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x70f7bb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x70f7bb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x70f7bb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x70f7bb);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'},_0x70f7bb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x70f7bb);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'},_0x70f7bb);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'},_0x70f7bb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x70f7bb);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'},_0x70f7bb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x70f7bb);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'},_0x70f7bb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x70f7bb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x70f7bb);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x70f7bb);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x70f7bb);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x39ad17;}}class f{['getDescriptions'](_0x2cfa90){const _0x352adb=[],_0x4d3c40=new Set(),_0xeef7ef=new Set();for(let _0xdc6f59=0x0;_0xdc6f59<_0x2cfa90['length'];_0xdc6f59++){const _0xc7d286=_0x2cfa90[_0xdc6f59];if(!_0xc7d286['isInContent'])continue;const _0x4c50d4=this['_handleCustomCallbackDescription'](_0xc7d286);if(_0x4c50d4){if(null!=_0xc7d286['subType']){if(_0x4d3c40['has'](_0xc7d286['subType']))continue;_0x4d3c40['add'](_0xc7d286['subType']);}_0x352adb['push'](_0x4c50d4);}else{if('attribute'!=_0xc7d286['type'])'insertion'!=_0xc7d286['type']&&'deletion'!=_0xc7d286['type']||this['_handleInsertRemoveSuggestionDescription'](_0x352adb,_0xc7d286,_0x2cfa90[_0xdc6f59+0x1]);else{const _0x5337c1=_0xc7d286['data']['key'];if(_0xeef7ef['has'](_0x5337c1))continue;_0xeef7ef['add'](_0xc7d286['data']['key']),_0x5337c1==m?this['_handleRenameSuggestionDescription'](_0x352adb,_0xc7d286):this['_handleAttributeSuggestionDescription'](_0x352adb,_0xc7d286);}}}return this['_resolveDescriptionItems'](_0x352adb);}['registerDescriptionCallback'](_0x188b64){this['_customCallbacks']['push'](_0x188b64);}['registerElementLabel'](_0x4760b4,_0x264ef7,_0x1469cc=_0x3cf857['normal']){'function'==typeof _0x4760b4?_0x9c0d61(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4760b4,'label':_0x264ef7,'priority':_0x1469cc}):this['_itemLabels']['set'](_0x4760b4,_0x264ef7);}['registerAttributeLabel'](_0x4e382a,_0x567baf){this['_attributeLabels']['set'](_0x4e382a,_0x567baf);}['getItemLabel'](_0x520d13,_0x12636e=0x1){let _0x2e12ad;for(const _0x286b45 of this['_itemLabelsCallbacks'])if(_0x286b45['matchingCallback'](_0x520d13)){_0x2e12ad=_0x286b45['label'];break;}return _0x2e12ad||(_0x2e12ad=this['_itemLabels']['get'](_0x520d13['name'])),_0x2e12ad?_0x2e12ad(_0x12636e):0x1!==_0x12636e?_0x12636e+'\x20'+_0x520d13['name']+'s':''+_0x520d13['name'];}['_addDescriptionItems'](_0x3252fe,_0x52ff12){const _0x57fd5c=_0x52ff12['getFirstRange']()['getWalker'](),_0x415615='insertion'==_0x52ff12['type']?'add':'remove';for(const _0xd5b2c8 of _0x57fd5c){const _0x335ad5=_0xd5b2c8['item'],_0x3de79a=_0x3252fe[_0x3252fe['length']-0x1];if(_0x335ad5['is']('$textProxy'))_0x3de79a&&_0x3de79a['type']['indexOf']('Container')>-0x1&&_0x3252fe['pop'](),_0x3de79a&&'text'==_0x3de79a['type']?_0x3de79a[_0x415615]+=_0x335ad5['data']:_0x3252fe['push']({'type':'text','add':'add'==_0x415615?_0x335ad5['data']:'','remove':'remove'==_0x415615?_0x335ad5['data']:''});else{if(this['_schema']['isObject'](_0x335ad5)){const _0x5cba19=_0x335ad5;if(_0x3de79a&&_0x3de79a['type']['indexOf']('Container')>-0x1&&_0x3252fe['pop'](),'elementEnd'==_0xd5b2c8['type'])continue;_0x3de79a&&_0x3de79a['type']==_0x415615+'Object'&&_0x3de79a['element']['name']==_0x5cba19['name']?_0x3de79a['quantity']++:_0x3252fe['push']({'type':_0x415615+'Object','element':_0x5cba19,'quantity':0x1}),_0x57fd5c['skip'](_0x9f5597=>!('elementEnd'==_0x9f5597['type']&&_0x9f5597['item']==_0x335ad5));}else{if(this['_schema']['checkChild'](_0x335ad5,'$text')||_0x335ad5['is']('element','softBreak')){const _0xf34f87=_0x335ad5;if('add'==_0x415615&&'elementStart'==_0xd5b2c8['type']||'remove'==_0x415615&&'elementEnd'==_0xd5b2c8['type'])continue;if(_0x3de79a&&-0x1==_0x3de79a['type']['indexOf']('Container')){'text'==_0x3de79a['type']&&(_0x3de79a[_0x415615]+='\x0a');continue;}let _0x2c5f8b;if(_0x2c5f8b='add'==_0x415615?_0xf34f87['nextSibling']&&!this['_schema']['isObject'](_0xf34f87['nextSibling'])?_0xf34f87['nextSibling']:null:_0xf34f87['previousSibling']&&!this['_schema']['isObject'](_0xf34f87['previousSibling'])?_0xf34f87['previousSibling']:null,_0xf34f87['isEmpty']||_0x2c5f8b&&_0x2c5f8b['isEmpty']){const _0x42eac8=_0x2c5f8b&&_0x2c5f8b['isEmpty']?_0x2c5f8b:_0xf34f87;_0x3de79a&&_0x3de79a['type']==_0x415615+'EmptyContainer'&&_0x3de79a['element']['name']==_0x42eac8['name']?_0x3de79a['quantity']++:_0x3252fe['push']({'type':_0x415615+'EmptyContainer','element':_0x42eac8,'quantity':0x1});}else _0x3252fe['push']({'type':_0x415615+'Container','element':_0xf34f87});}}}}}['_resolveDescriptionItems'](_0x1a676e){const _0x3b8818=this['_locale'],_0x16c396=[],_0xb4a4fc=[],_0x461160=[];for(const _0xe54ae2 of _0x1a676e)switch(_0xe54ae2['type']){case'text':if(_0xe54ae2['add']=_0xe54ae2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xe54ae2['remove']=_0xe54ae2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xe54ae2['add']&&''!=_0xe54ae2['remove']){_0x16c396['push']({'type':'replace','content':o(_0x3b8818,'REPLACE_TEXT',['\x22'+_0xe54ae2['remove']+'\x22','\x22'+_0xe54ae2['add']+'\x22'])});continue;}if(null!=_0xe54ae2['add']['match'](/^ +$/)){_0x16c396['push']({'type':'insertion','content':o(_0x3b8818,'*Insert:*\x20%0',o(_0x3b8818,'ELEMENT_SPACE',_0xe54ae2['add']['length']))});continue;}if(null!=_0xe54ae2['remove']['match'](/^ +$/)){_0x16c396['push']({'type':'deletion','content':o(_0x3b8818,'*Remove:*\x20%0',o(_0x3b8818,'ELEMENT_SPACE',_0xe54ae2['remove']['length']))});continue;}if(''!=_0xe54ae2['add']){_0x16c396['push']({'type':'insertion','content':o(_0x3b8818,'*Insert:*\x20%0','\x22'+_0xe54ae2['add']+'\x22')});continue;}_0x16c396['push']({'type':'deletion','content':o(_0x3b8818,'*Remove:*\x20%0','\x22'+_0xe54ae2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x16c396['push']({'type':'insertion','content':o(_0x3b8818,'*Insert:*\x20%0',this['getItemLabel'](_0xe54ae2['element'],_0xe54ae2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x16c396['push']({'type':'deletion','content':o(_0x3b8818,'*Remove:*\x20%0',this['getItemLabel'](_0xe54ae2['element'],_0xe54ae2['quantity']))});continue;case'addContainer':_0x16c396['push']({'type':'insertion','content':o(_0x3b8818,'*Split:*\x20%0',this['getItemLabel'](_0xe54ae2['element'],_0xe54ae2['quantity']))});continue;case'removeContainer':_0x16c396['push']({'type':'deletion','content':o(_0x3b8818,'*Merge:*\x20%0',this['getItemLabel'](_0xe54ae2['element'],_0xe54ae2['quantity']))});continue;case'addFormat':_0xb4a4fc['push'](_0xe54ae2['key']);continue;case'removeFormat':_0x461160['push'](_0xe54ae2['key']);continue;default:_0x16c396['push'](_0xe54ae2);}if(_0xb4a4fc['length']){const _0x3f284b=_0xb4a4fc['map'](_0x1357c5=>this['_attributeLabels']['has'](_0x1357c5)?this['_attributeLabels']['get'](_0x1357c5):_0x1357c5)['join'](',\x20');_0x16c396['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3f284b)});}if(_0x461160['length']){const _0x568903=_0x461160['map'](_0xc2aec8=>this['_attributeLabels']['has'](_0xc2aec8)?this['_attributeLabels']['get'](_0xc2aec8):_0xc2aec8)['join'](',\x20');_0x16c396['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x568903)});}return _0x16c396;}['_handleCustomCallbackDescription'](_0x117fae){for(const _0x16cf46 of this['_customCallbacks']){const _0x389499=_0x16cf46(_0x117fae);if(_0x389499&&'type'in _0x389499)return _0x389499;}}['_handleAttributeSuggestionDescription'](_0x1a6aa7,_0x3badb4){const _0x1cdb09=_0x3badb4['data'],_0x5db9b=void 0x0===_0x1cdb09['newValue']?'removeFormat':'addFormat';_0x1a6aa7['push']({'type':_0x5db9b,'key':_0x1cdb09['key']});}['_handleRenameSuggestionDescription'](_0x46251d,_0x48afc5){_0x46251d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x48afc5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x353d0c,_0x3d8bab,_0x52195b){if(this['_addDescriptionItems'](_0x353d0c,_0x3d8bab),_0x52195b&&_0x52195b['getFirstRange']()&&!_0x3d8bab['getFirstRange']()['end']['isEqual'](_0x52195b['getFirstRange']()['start'])){const _0x5b6b23=_0x353d0c[_0x353d0c['length']-0x1],_0x50ed9b='insertion'==_0x3d8bab['type']?'add':'remove';_0x5b6b23&&'text'==_0x5b6b23['type']&&(_0x5b6b23[_0x50ed9b]+='\x0a');}}constructor(_0x330c16,_0x45e119){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x330c16,this['_locale']=_0x45e119;}}class E extends _0x26e52a{['afterInit'](){const _0x70a8ab=this['editor'],_0x45a22a=_0x70a8ab['plugins']['get']('TrackChangesEditing');_0x70a8ab['commands']['get']('showAIAssistant')&&_0x45a22a['enableCommand']('showAIAssistant');}}class V extends _0x26e52a{['afterInit'](){const _0xfac3a6=this['editor'],_0x3ed7cc=_0xfac3a6['locale'];if(!_0xfac3a6['plugins']['has']('AlignmentEditing'))return;const _0x3fd60a=_0xfac3a6['plugins']['get']('TrackChangesEditing');_0x3fd60a['_enableDefaultAttributesIntegration']('alignment',[],['alignment']),_0x3fd60a['_descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3ed7cc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x127f8a=this['editor'],_0x15d8b5=_0x127f8a['locale'];_0x127f8a['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x1e33d7=>{if('formatBlock'!=_0x1e33d7['type'])return;const {data:_0x10c71f}=_0x1e33d7;if(_0x10c71f&&'alignment'==_0x10c71f['commandName']){const _0x49c824=_0x10c71f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x15d8b5,'*Format:*\x20%0',function(_0x13ec7a){switch(_0x13ec7a){case'left':return o(_0x15d8b5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x15d8b5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x15d8b5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x15d8b5,'FORMAT_JUSTIFY_TEXT');}}(_0x49c824))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x26e52a{['afterInit'](){const _0x40f083=this['editor'],_0x43875b=_0x40f083['plugins']['get']('TrackChangesEditing'),_0x1b03b5=_0x40f083['locale'];for(const _0x37ca30 of ti){if(!_0x40f083['plugins']['has'](_0x37ca30))continue;const _0x4beda6=_0x37ca30['slice'](0x0,-0x7)['toLowerCase'](),_0x3b4ac7='FORMAT_'+_0x4beda6['toUpperCase']();_0x43875b['_enableDefaultAttributesIntegration'](_0x4beda6,[_0x4beda6]),_0x43875b['_descriptionFactory']['registerAttributeLabel'](_0x4beda6,o(_0x1b03b5,_0x3b4ac7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12da83=this['editor'],_0x3c5d3a=_0x12da83['locale'],_0x4c62d0=_0x12da83['plugins']['get']('TrackChangesEditing');function _0x4fb1a3(_0x552c84,_0x8cd81){_0x4c62d0['_descriptionFactory']['registerDescriptionCallback'](_0x7ba9c5=>{if('formatInline'!=_0x7ba9c5['type'])return;const {data:_0x583df1}=_0x7ba9c5;return _0x583df1&&_0x583df1['commandName']===_0x552c84?_0x583df1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c5d3a,'*Format:*\x20%0',_0x8cd81)}:{'type':'format','content':o(_0x3c5d3a,'*Remove\x20format:*\x20%0',_0x8cd81)}:void 0x0;});}_0x4fb1a3('bold',o(_0x3c5d3a,'FORMAT_BOLD')),_0x4fb1a3('italic',o(_0x3c5d3a,'FORMAT_ITALIC')),_0x4fb1a3('underline',o(_0x3c5d3a,'FORMAT_UNDERLINE')),_0x4fb1a3('code',o(_0x3c5d3a,'FORMAT_CODE')),_0x4fb1a3('strikethrough',o(_0x3c5d3a,'FORMAT_STRIKETHROUGH')),_0x4fb1a3('subscript',o(_0x3c5d3a,'FORMAT_SUBSCRIPT')),_0x4fb1a3('superscript',o(_0x3c5d3a,'FORMAT_SUPERSCRIPT'));}}class O extends _0x26e52a{['afterInit'](){const _0x40434b=this['editor'],_0x2ea3d3=_0x40434b['locale'];if(!_0x40434b['plugins']['has']('BlockQuoteEditing'))return;const _0x456845=_0x40434b['plugins']['get']('TrackChangesEditing'),_0x5d3c66=this['editor']['commands']['get']('blockQuote');_0x456845['enableCommand']('blockQuote',(_0x2b7262,_0xb010fa={})=>{const _0x5817c7=this['editor']['model']['document']['selection'],_0x26bab5=_0xb010fa&&void 0x0!==_0xb010fa['forceValue']?_0xb010fa['forceValue']:!_0x5d3c66['value'];let _0x319909=[];if(_0x26bab5){const _0x210350=Array['from'](_0x5817c7['getSelectedBlocks']())['filter'](_0x22f2d7=>oo(_0x22f2d7)||function(_0x58192a,_0x4178e2){const _0x4bdf81=_0x4178e2['checkChild'](_0x58192a['parent'],'blockQuote'),_0x49bc3f=_0x4178e2['checkChild'](['$root','blockQuote'],_0x58192a);return _0x4bdf81&&_0x49bc3f;}(_0x22f2d7,this['editor']['model']['schema']));_0x319909=to(_0x210350,_0x40434b['model']);}else{const _0x52dba7=Array['from'](_0x5817c7['getSelectedBlocks']())['filter'](_0x4caaf0=>oo(_0x4caaf0));_0x319909=to(_0x52dba7,_0x40434b['model']);}_0x40434b['model']['change'](()=>{for(const _0xaaed24 of _0x319909)_0x456845['markBlockFormat'](_0xaaed24,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x26bab5}]});});}),_0x456845['_descriptionFactory']['registerDescriptionCallback'](_0x1cd6a1=>{const {data:_0x26be1f}=_0x1cd6a1;if(_0x26be1f&&'blockQuote'==_0x26be1f['commandName']){const _0x66632d=o(_0x2ea3d3,'ELEMENT_BLOCK_QUOTE');return _0x26be1f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ea3d3,'*Set\x20format:*\x20%0',_0x66632d)}:{'type':'format','content':o(_0x2ea3d3,'*Remove\x20format:*\x20%0',_0x66632d)};}});}}function oo(_0x558f75){return'blockQuote'==_0x558f75['parent']['name'];}class G extends _0x26e52a{['afterInit'](){const _0x2462ff=this['editor'];_0x2462ff['plugins']['has']('CaseChange')&&(_0x2462ff['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2462ff['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2462ff['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x26e52a{['afterInit'](){const _0x532135=this['editor'];_0x532135['commands']['get']('ckbox')&&_0x532135['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x26e52a{['afterInit'](){const _0x3c5df5=this['editor'];if(!_0x3c5df5['plugins']['has']('CodeBlock'))return;const _0x83801e=_0x3c5df5['plugins']['get']('TrackChangesEditing'),_0x1c74d1=_0x3c5df5['locale'],_0x10e298=_0x3c5df5['config']['get']('codeBlock')['languages'],_0x2d5e48=_0x3c5df5['commands']['get']('codeBlock');_0x83801e['enableCommand']('indentCodeBlock'),_0x83801e['enableCommand']('outdentCodeBlock'),_0x83801e['enableCommand']('codeBlock',(_0x3623ce,_0x3a10ea={})=>{const _0x2d581e=_0x3c5df5['model'],_0x3368b3=_0x3c5df5['model']['document']['selection'],_0x5d1b63=_0x3a10ea&&void 0x0!==_0x3a10ea['forceValue']?_0x3a10ea['forceValue']:!_0x2d5e48['value'];let _0x167162;_0x3a10ea['language']||(_0x3a10ea['language']=_0x10e298[0x0]['language']),_0x167162=_0x5d1b63?Array['from'](_0x3368b3['getSelectedBlocks']())['filter'](_0xe22e30=>eo(_0xe22e30)||function(_0x13f459,_0x31575b){if(_0x13f459['is']('rootElement')||_0x31575b['isLimit'](_0x13f459))return!0x1;return _0x31575b['checkChild'](_0x13f459['parent'],'codeBlock');}(_0xe22e30,_0x2d581e['schema'])):Array['from'](_0x3368b3['getSelectedBlocks']())['filter'](_0x1e4d17=>eo(_0x1e4d17));const _0x2ad27e=to(_0x167162,_0x2d581e);_0x2d581e['change'](()=>{for(const _0x5e241b of _0x2ad27e)_0x83801e['markBlockFormat'](_0x5e241b,{'commandName':'codeBlock','commandParams':[{..._0x3a10ea,'forceValue':_0x5d1b63}],'formatGroupId':'blockName'});});}),(_0x83801e['_descriptionFactory']['registerElementLabel']('codeBlock',_0x44c499=>o(_0x1c74d1,'ELEMENT_CODE_BLOCK',_0x44c499)),_0x83801e['_descriptionFactory']['registerDescriptionCallback'](_0x26f918=>{if('formatBlock'!=_0x26f918['type'])return;const _0x1f0cbf=_0x1c74d1['t'],{data:_0x44c043}=_0x26f918;if(!_0x44c043||'codeBlock'!=_0x44c043['commandName'])return;const _0x1a1863=_0x44c043['commandParams'][0x0]['language'],_0x49f262=_0x1f0cbf(_0x10e298['find'](_0x161738=>_0x161738['language']===_0x1a1863)['label'])['toLowerCase']();return _0x44c043['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c74d1,'*Set\x20format:*\x20%0',o(_0x1c74d1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x49f262+')')}:{'type':'format','content':o(_0x1c74d1,'*Remove\x20format:*\x20%0',o(_0x1c74d1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x168aca){return'codeBlock'==_0x168aca['name'];}class H extends _0x26e52a{['afterInit'](){const _0x1eca87=this['editor'];if(!_0x1eca87['plugins']['has']('CommentsEditing'))return;_0x1eca87['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5ffb5d,_0x26e31a,_0x19804d){const _0x2638d3=[];for(const _0x3b8a0d of _0x26e31a['getItems']())_0x3b8a0d['hasAttribute'](_0x5ffb5d)&&_0x2638d3['push'](_0x19804d['createRangeOn'](_0x3b8a0d));return _0x2638d3;}function _e(_0x3db885,_0x3323b4,{showActiveMarker:_0x1eeecb=!0x0}={}){const _0x983490=_0x3db885['plugins']['get']('TrackChangesEditing');return(_0x28e6c5,_0x55a475,_0x2e6d06)=>{if(!_0x2e6d06['consumable']['test'](_0x55a475['markerRange'],_0x28e6c5['name']))return;const _0x3840c1=_0x55a475['markerRange']['getWalker'](),_0x3ffb25=_0x55a475['markerRange']['start'],_0x525f4e=_0x3db885['model']['schema'];let _0x406fc4=null,_0x22ff00=null,_0x18cead=!0x1,_0x22aa8c=!0x1;for(const _0x3c0420 of _0x3840c1){const _0x1ce413=_0x3c0420['item'];_0x18cead=_0x18cead||_0x525f4e['isContent'](_0x1ce413);const _0x4adee9=_0x2e6d06['mapper']['toViewElement'](_0x1ce413);if(_0x4adee9&&_0x4adee9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3c0420['type']&&(_0x525f4e['isBlock'](_0x1ce413)&&!_0x525f4e['isLimit'](_0x1ce413)&&(_0x1ce413['nextSibling']||_0x3ffb25['isAtEnd']?_0x406fc4&&_0x406fc4['parent']==_0x1ce413||(_0x406fc4=_0x1ce413,_0x1b7b9d(_0x3c0420['previousPosition']),_0x22aa8c=!0x0):_0x22ff00=_0x22ff00||_0x3c0420['previousPosition']));}function _0x1b7b9d(_0xec1b61){const _0xda5681=_0x2e6d06['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3323b4}),_0x27c2df=_0x2e6d06['mapper']['toViewPosition'](_0xec1b61);_0x1eeecb&&_0x983490['activeMarkers']['includes'](_0x55a475['markerName'])&&_0x2e6d06['writer']['addClass']('ck-suggestion-marker--active',_0xda5681),_0x2e6d06['writer']['insert'](_0x27c2df,_0xda5681),_0x2e6d06['mapper']['bindElementToMarker'](_0xda5681,_0x55a475['markerName']);}_0x18cead||_0x22aa8c||!_0x22ff00||_0x1b7b9d(_0x22ff00);};}class q extends _0x26e52a{static get['requires'](){return[_0x343642];}['init'](){const _0x1600b7=this['editor'],_0x58fbd3=_0x1600b7['plugins']['get']('TrackChangesEditing');_0x58fbd3['enableCommand']('delete');const _0x305b93=_0x1600b7['commands']['get']('deleteForward');_0x58fbd3['enableCommand']('deleteForward',(_0x5cae97,_0x4ba284={})=>{const _0x4f8c41=_0x1600b7['model']['createSelection'](_0x1600b7['model']['document']['selection']);_0x4f8c41['isCollapsed']&&_0x1600b7['model']['modifySelection'](_0x4f8c41,{'direction':'forward','unit':_0x4ba284['unit']});const _0x15950f=_0x4f8c41['getFirstRange'](),_0x59398b=_0x577a36['fromRange'](_0x15950f);let _0x5083ea;_0x5cae97(_0x4ba284),_0x5083ea='$graveyard'==_0x59398b['root']['rootName']?_0x1600b7['model']['createRange'](_0x15950f['start']):_0x1600b7['model']['createRange'](_0x59398b['start'],_0x59398b['end']),_0x59398b['detach'](),_0x1600b7['model']['enqueueChange'](_0x305b93['buffer']['batch'],_0x204810=>{_0x305b93['buffer']['lock'](),_0x204810['setSelection'](_0x204810['createRange'](_0x5083ea['end'])),_0x305b93['buffer']['unlock']();});}),_0x1600b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1600b7,'merge'),{'priority':'high'}),_0x1600b7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x16de15,_0x289b28,_0x30d78e)=>{_0x30d78e['options']['showSuggestionHighlights']&&_e(_0x1600b7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x16de15,_0x289b28,_0x30d78e);},{'priority':'high'}),_0x1600b7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x446c04,_0x49112c,_0x44e58f)=>{const _0x45c1bf=_0x44e58f['mapper']['markerNameToElements'](_0x49112c['markerName']);if(_0x45c1bf){for(const _0x40167c of _0x45c1bf)_0x40167c['is']('uiElement')&&(_0x44e58f['mapper']['unbindElementFromMarkerName'](_0x40167c,_0x49112c['markerName']),_0x44e58f['writer']['remove'](_0x40167c));}},{'priority':'high'});}}class z extends _0x26e52a{['afterInit'](){const _0x50e930=this['editor'];if(!_0x50e930['plugins']['has']('ListEditing'))return;const _0x262a30=_0x50e930['locale'],_0x5c6a8a=_0x50e930['plugins']['get']('TrackChangesEditing'),_0xdc4cc7=_0x50e930['plugins']['has']('TodoListEditing'),_0x2ea846=!!_0x50e930['config']['get']('list.multiBlock');function _0x12dfc8(_0x1ab68e){return{'type':'format','content':''+o(_0x262a30,'*Set\x20format:*\x20%0',_0x1ab68e)};}function _0x103b77(_0x38c8d5){return{'type':'format','content':''+o(_0x262a30,'*Remove\x20format:*\x20%0',_0x38c8d5)};}_0x5c6a8a['_enableDefaultAttributesIntegration']('numberedList',[],['listItemId','listType','listIndent']),_0x5c6a8a['_enableDefaultAttributesIntegration']('bulletedList'),_0x5c6a8a['_enableDefaultAttributesIntegration']('customNumberedList'),_0x5c6a8a['_enableDefaultAttributesIntegration']('customBulletedList'),_0x5c6a8a['_enableDefaultAttributesIntegration']('indentList'),_0x5c6a8a['_enableDefaultAttributesIntegration']('outdentList'),_0x5c6a8a['_enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5c6a8a['_enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2ea846&&(_0x5c6a8a['_enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5c6a8a['_enableDefaultAttributesIntegration']('mergeListItemForward')),_0xdc4cc7&&(_0x5c6a8a['_enableDefaultAttributesIntegration']('todoList'),_0x5c6a8a['_enableDefaultAttributesIntegration']('checkTodoList',[],['todoListChecked']),_0x5c6a8a['_descriptionFactory']['registerDescriptionCallback'](_0x5bf9e6=>{const {data:_0x2548d2}=_0x5bf9e6;if(_0x2548d2&&'todoListChecked'==_0x2548d2['key'])return{'type':'format','content':_0x2548d2['newValue']?o(_0x262a30,'*Check\x20item*'):o(_0x262a30,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x426c21=>{if(_0x426c21['batch']['isUndo'])return!0x1;let _0x7efbb1=!0x1;const _0x29887a=_0x5c6a8a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f3a75=>'todoListChecked'===_0x5c6a8a['_getAttributeKey'](_0x5f3a75));for(const _0x28c4a4 of _0x29887a){'todo'!=_0x28c4a4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5c6a8a['_findSuggestions'](_0x28c4a4['getFirstRange'](),'attribute')['find'](_0x323128=>'listType'===_0x5c6a8a['_getAttributeKey'](_0x323128['suggestion']))||(_0x426c21['removeMarker'](_0x28c4a4['getFirstMarker']()),_0x7efbb1=!0x0));}return _0x7efbb1;})),_0x5c6a8a['_descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x262a30,'FORMAT_INDENT'));const _0x1658e5={'type':'format','content':''};_0x5c6a8a['_descriptionFactory']['registerDescriptionCallback'](_0x295f01=>{const {data:_0x331674}=_0x295f01;if(!_0x331674||'listType'!=_0x331674['key'])return;let _0x3e7ce8=_0x295f01['head'];for(;_0x3e7ce8;){if(_0x3e7ce8['data']&&(('listStyle'==_0x3e7ce8['data']['key']||'listMarkerStyle'==_0x3e7ce8['data']['key'])&&(_0x3e7ce8['data']['newValue']&&'default'!=_0x3e7ce8['data']['newValue']||'default'!=_0x3e7ce8['data']['oldValue']&&!_0x331674['newValue'])||!_0x2ea846&&_0x3e7ce8['data']['key']==m))return _0x1658e5;_0x3e7ce8=_0x3e7ce8['next'];}if(null==_0x331674['newValue'])switch(_0x331674['oldValue']){case'bulleted':return _0x103b77(o(_0x262a30,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x103b77(o(_0x262a30,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x103b77(o(_0x262a30,'ELEMENT_TODO_LIST'));}switch(_0x331674['newValue']){case'bulleted':return _0x12dfc8(o(_0x262a30,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12dfc8(o(_0x262a30,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12dfc8(o(_0x262a30,'ELEMENT_TODO_LIST'));}}),_0x5c6a8a['_descriptionFactory']['registerDescriptionCallback'](_0x271be5=>{const {data:_0x1dd7ee}=_0x271be5;if(_0x1dd7ee&&'listIndent'==_0x1dd7ee['key'])return null==_0x1dd7ee['newValue']||null==_0x1dd7ee['oldValue']&&0x0==_0x1dd7ee['newValue']?_0x1658e5:void 0x0;}),_0x5c6a8a['_descriptionFactory']['registerDescriptionCallback'](_0x3bbab5=>{if('attribute'!=_0x3bbab5['type'])return;const {data:_0x23c60a}=_0x3bbab5;if(!_0x23c60a||'listItemId'!=_0x23c60a['key'])return;const _0x57204a=le(_0x3bbab5);return _0x57204a?'newValue'==_0x57204a?{'type':'format','content':o(_0x262a30,'*Merge:*\x20list\x20item')}:'oldValue'==_0x57204a?{'type':'format','content':o(_0x262a30,'*Split:*\x20list\x20item')}:_0x1658e5:_0x1658e5;}),_0x50e930['model']['document']['registerPostFixer'](_0x5e1405=>this['listItemIdFixer'](_0x5e1405)),_0x50e930['model']['document']['registerPostFixer'](_0x1bc2cc=>this['noTrackChangesFixer'](_0x1bc2cc)),_0x50e930['model']['document']['registerPostFixer'](_0x3813b7=>this['assureChains'](_0x3813b7)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x15fcbf){if(_0x15fcbf['batch']['isUndo']||!_0x15fcbf['batch']['isLocal'])return!0x1;let _0x3b637e=!0x1;const _0x523b91=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1053aa=>_0x1053aa['data']&&'listItemId'==_0x1053aa['data']['key'])['filter'](_0x55b0a2=>_0x55b0a2['data']['newValue']&&_0x55b0a2['data']['oldValue']);for(const _0x4171db of _0x523b91)le(_0x4171db)||(_0x15fcbf['removeMarker'](_0x4171db['getFirstMarker']()),_0x3b637e=!0x0);return _0x3b637e;}['noTrackChangesFixer'](_0x804a15){if(_0x804a15['batch']['isUndo']||!_0x804a15['batch']['isLocal'])return!0x1;const _0x5a8a56=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5a8a56['trackChangesCommand']['value'])return!0x1;let _0x5cf765=!0x1;const _0x270edd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x113adf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x85132f=>'attribute'==_0x85132f['type'])['filter'](_0x46a987=>_0x270edd['includes'](_0x46a987['attributeKey']));if(0x0==_0x113adf['length'])return _0x5cf765;for(const _0xc5f021 of _0x113adf){const _0x5e1bf9=_0x5a8a56['_findSuggestions'](_0xc5f021['range'],'attribute')['filter'](_0x11ffa0=>!_0x11ffa0['meta']['isNextTo'])['map'](_0x2d879e=>_0x2d879e['suggestion'])['filter'](_0x3c1542=>{const _0x1255ad=_0x5a8a56['_getAttributeKey'](_0x3c1542);return _0x270edd['includes'](_0x1255ad);});if(_0x5e1bf9['length']){for(const _0x135b8e of _0x5e1bf9)_0x804a15['removeMarker'](_0x135b8e['getFirstMarker']());_0x5cf765=!0x0;}}return _0x5cf765;}['assureChains'](_0x5abd76){if(_0x5abd76['batch']['isUndo']||!_0x5abd76['batch']['isLocal'])return!0x1;const _0x139526=this['editor']['plugins']['get']('TrackChangesEditing');let _0x305b52=!0x1;const _0x2f7f0d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x369d92 of _0x139526['getSuggestions']({'skipNotAttached':!0x0})){const _0x41e9b1=_0x139526['_findSuggestions'](_0x369d92['getFirstRange'](),'attribute')['map'](_0xa79b04=>_0xa79b04['suggestion'])['filter'](_0xa760ec=>_0xa760ec['data']&&_0x2f7f0d['includes'](_0xa760ec['data']['key']));if(!_0x41e9b1['length'])continue;const _0x22488f=_0x41e9b1[0x0]['head']['attributes']['groupId'];if(!_0x41e9b1['every'](_0x98f360=>_0x98f360['attributes']['groupId']===_0x22488f)){for(const _0x364a7f of _0x41e9b1)_0x49f857(_0x364a7f,_0x22488f)&&(_0x305b52=!0x0);}}return _0x305b52;function _0x5bd17f(_0x2921ee,_0x15255e){for(const _0x506a23 of _0x139526['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ff732=>'attribute'==_0x3ff732['type']&&_0x3ff732['attributes']['groupId']==_0x2921ee))_0x506a23['setAttribute']('groupId',_0x15255e);}function _0x49f857(_0x521c87,_0x47c9c1){let _0x472f30=_0x521c87['head'],_0x5b699b=!0x1;for(;_0x472f30;)_0x472f30['attributes']['groupId']!=_0x47c9c1&&(_0x5bd17f(_0x472f30['attributes']['groupId'],_0x47c9c1),_0x472f30['setAttribute']('groupId',_0x47c9c1),_0x5b699b=!0x0),_0x472f30=_0x472f30['next'];return _0x5b699b;}}['_supportLegacySuggestions'](){const _0x1f314f=this['editor'],_0x228616=_0x1f314f['locale'],_0x3e250b=_0x1f314f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3e250b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x13a18d,_0x58a4d2){const _0x1ce19e=[];for(let _0xb00131 of _0x13a18d)_0xb00131['start']['nodeAfter']===_0xb00131['end']['parent']&&(_0xb00131=_0x1f314f['model']['createRange'](_0x1f314f['model']['createPositionAt'](_0xb00131['start']['nodeAfter'],0x0))),_0x1ce19e['push'](_0xb00131);_0x1f314f['model']['change'](_0x3098c7=>{const _0x3d75fe=_0x1f314f['model']['document']['selection'],_0x54f8a6=Array['from'](_0x3d75fe['getRanges']())['map'](_0x1f0a6=>_0x577a36['fromRange'](_0x1f0a6));_0x3098c7['setSelection'](_0x1ce19e),_0x1f314f['commands']['get'](_0x58a4d2['commandName'])['refresh'](),_0x58a4d2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1f314f['execute'](_0x58a4d2['commandName'],..._0x58a4d2['commandParams']),_0x3098c7['setSelection'](_0x54f8a6);for(const _0x9f9c59 of _0x54f8a6)_0x9f9c59['detach']();});}),_0x3e250b['_descriptionFactory']['registerElementLabel'](function(_0x55add1){const _0x3a1339=!_0x1f314f['model']['schema']['isObject'](_0x55add1),_0xed7d4e=_0x55add1['previousSibling'],_0x2c278f=_0x55add1['nextSibling'],_0x3e7ed0=_0x55add1['getAttribute']('listItemId'),_0x464756=!_0xed7d4e||_0xed7d4e['getAttribute']('listItemId')!==_0x3e7ed0,_0x3e1091=!_0x2c278f||_0x2c278f['getAttribute']('listItemId')!==_0x3e7ed0;return _0x3a1339&&Boolean(_0x3e7ed0)&&_0x464756&&_0x3e1091;},_0xd36a54=>o(_0x228616,'ELEMENT_LIST_ITEM',_0xd36a54));}['_registerLegacyDescription'](){const _0x3621b8=this['editor'],_0xcd68af=_0x3621b8['locale'];function _0x274845(_0x45d6b1){const _0x34cde2=_0x3621b8['commands']['get']('bulletedList')['value'],_0x31ec25=_0x3621b8['commands']['get']('numberedList')['value'];return'numberedList'===_0x45d6b1?_0x34cde2:_0x31ec25;}_0x3621b8['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](function(_0x4c246d){if('formatBlock'!=_0x4c246d['type'])return;const {data:_0x17b568}=_0x4c246d;if(!_0x17b568)return;let _0x213fd7,_0x4c586b,_0xcfa5f5,_0x11cd3b;switch(_0x17b568['commandName']){case'bulletedList':_0xcfa5f5=_0x17b568['commandParams'][0x0]['forceValue'],_0x11cd3b=_0x274845(_0x17b568['commandName']),_0x213fd7=_0xcfa5f5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11cd3b&&_0x3621b8['config']['get']('list.multiBlock')||(_0x213fd7='*Change\x20to:*\x20%0'),_0x4c586b={'type':'format','content':o(_0xcd68af,_0x213fd7,o(_0xcd68af,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xcfa5f5=_0x17b568['commandParams'][0x0]['forceValue'],_0x11cd3b=_0x274845(_0x17b568['commandName']),_0x213fd7=_0xcfa5f5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11cd3b&&_0x3621b8['config']['get']('list.multiBlock')||(_0x213fd7='*Change\x20to:*\x20%0'),_0x4c586b={'type':'format','content':o(_0xcd68af,_0x213fd7,o(_0xcd68af,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x213fd7='*Indent:*\x20%0',_0x4c586b={'type':'format','content':o(_0xcd68af,_0x213fd7,o(_0xcd68af,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x213fd7=function(_0x5d19cb){const _0x351abb=_0x5d19cb['getFirstRange']();let _0x2ee2d1=_0x351abb['start']['nodeAfter'];for(;_0x2ee2d1&&_0x351abb['containsItem'](_0x2ee2d1);){if(_0x2ee2d1['getAttribute']('listIndent')>0x0)return!0x1;_0x2ee2d1=_0x2ee2d1['nextSibling'];}return!0x0;}(_0x4c246d)?o(_0xcd68af,'*Format:*\x20remove\x20from\x20%0',o(_0xcd68af,function(_0x52b198){return'ELEMENT_'+_0x52b198['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4c246d))):o(_0xcd68af,'*Outdent:*\x20%0',o(_0xcd68af,'ELEMENT_LIST_ITEM')),_0x4c586b={'type':'format','content':_0x213fd7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x17b568['multipleBlocks']&&(_0x213fd7='*Merge:*\x20%0',_0x4c586b={'type':'deletion','content':o(_0xcd68af,_0x213fd7,o(_0xcd68af,'ELEMENT_LIST_ITEM'))});}return _0x4c586b;});}}function le(_0x1017fc){let _0x33cd44=_0x1017fc['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x33cd44;){const _0x3698f8=_0x33cd44['getAttribute']('listItemId');if(!_0x3698f8)return!0x1;if(_0x3698f8==_0x1017fc['data']['newValue'])return'newValue';if(_0x3698f8==_0x1017fc['data']['oldValue'])return'oldValue';_0x33cd44=_0x33cd44['previousSibling'];}return!0x1;}class ue extends _0x26e52a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x6b0dd3=this['editor']['config']['get']('list.properties'),_0x40e9cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x6b0dd3['styles']&&_0x40e9cc['_enableDefaultAttributesIntegration']('listStyle',[],['listStyle']),_0x6b0dd3['reversed']&&_0x40e9cc['_enableDefaultAttributesIntegration']('listReversed',[],['listReversed']),_0x6b0dd3['startIndex']&&_0x40e9cc['_enableDefaultAttributesIntegration']('listStart',[],['listStart']);const _0x12d13e={'type':'format','content':''};_0x40e9cc['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x10a766=this['editor']['locale'];_0x40e9cc['_descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x10a766,'FORMAT_LIST_REVERSED')),_0x40e9cc['_descriptionFactory']['registerDescriptionCallback'](_0x3d15b4=>{const {data:_0x4b7b0f}=_0x3d15b4;if(_0x4b7b0f&&'listReversed'==_0x4b7b0f['key'])return null==_0x4b7b0f['newValue']||0x0==_0x4b7b0f['newValue']&&null==_0x4b7b0f['oldValue']?_0x12d13e:void 0x0;}),_0x40e9cc['_descriptionFactory']['registerAttributeLabel']('listStart',o(_0x10a766,'FORMAT_LIST_START')),_0x40e9cc['_descriptionFactory']['registerDescriptionCallback'](_0x1babce=>{const {data:_0x53db86}=_0x1babce;if(_0x53db86&&'listStart'==_0x53db86['key'])return null==_0x53db86['newValue']||0x1==_0x53db86['newValue']&&null==_0x53db86['oldValue']?_0x12d13e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x401dce=>{if(_0x401dce['batch']['isUndo'])return!0x1;let _0x20093f=!0x1;const _0x30a4dc=_0x40e9cc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13768d=>{const _0x34a156=_0x40e9cc['_getAttributeKey'](_0x13768d);return'listStart'==_0x34a156||'listReversed'==_0x34a156;});for(const _0x496863 of _0x30a4dc){const _0x5183f5=_0x496863['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5183f5||'customNumbered'==_0x5183f5)continue;_0x40e9cc['_findSuggestions'](_0x496863['getFirstRange'](),'attribute')['find'](_0x16bebb=>'listType'==_0x40e9cc['_getAttributeKey'](_0x16bebb['suggestion']))||(_0x401dce['removeMarker'](_0x496863['getFirstMarker']()),_0x20093f=!0x0);}return _0x20093f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1d0673){const _0x4395d6=this['editor']['locale'],{data:_0x3e874a}=_0x1d0673,_0x19fccc={'type':'format','content':''};if(!_0x3e874a||'listStyle'!=_0x3e874a['key'])return;if(!_0x3e874a['oldValue'])return'default'==_0x3e874a['newValue']?_0x19fccc:{'type':'format','content':''+o(_0x4395d6,'*Set\x20format:*\x20%0',o(_0x4395d6,this['_getTranslationKeyForListStyle'](_0x3e874a['newValue'])))};if(!_0x3e874a['newValue']){if('default'==_0x3e874a['oldValue'])return _0x19fccc;let _0x30b533=_0x1d0673['head'];for(;_0x30b533;){if(_0x30b533['data']&&'listType'==_0x30b533['data']['key']&&_0x30b533['data']['newValue'])return _0x19fccc;_0x30b533=_0x30b533['next'];}return{'type':'format','content':''+o(_0x4395d6,'*Remove\x20format:*\x20%0',o(_0x4395d6,this['_getTranslationKeyForListStyle'](_0x3e874a['oldValue'])))};}if('default'!=_0x3e874a['newValue'])return{'type':'format','content':''+o(_0x4395d6,'*Set\x20format:*\x20%0',o(_0x4395d6,this['_getTranslationKeyForListStyle'](_0x3e874a['newValue'])))};let _0x2516cf=_0x1d0673['head'];for(;_0x2516cf;){if(_0x2516cf['data']&&'listType'==_0x2516cf['data']['key']&&_0x2516cf['data']['newValue']&&_0x2516cf['data']['oldValue'])return _0x19fccc;_0x2516cf=_0x2516cf['next'];}return{'type':'format','content':o(_0x4395d6,'*Set\x20format:*\x20%0',o(_0x4395d6,'ELEMENT_'+_0x1d0673['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x284893=this['editor'],_0x3a9288=_0x284893['locale'];_0x284893['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x37da2f=>{if('formatBlock'!=_0x37da2f['type'])return;const {data:_0x1bf25a}=_0x37da2f;if(!_0x1bf25a)return;let _0x2705c8,_0x39a0f5;switch(_0x1bf25a['commandName']){case'listStyle':_0x2705c8='*Change\x20to:*\x20%0',_0x39a0f5={'type':'format','content':o(_0x3a9288,_0x2705c8,o(_0x3a9288,this['_getTranslationKeyForListStyle'](_0x1bf25a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2705c8=_0x1bf25a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x39a0f5={'type':'format','content':o(_0x3a9288,_0x2705c8)};break;case'listStart':_0x2705c8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x39a0f5={'type':'format','content':o(_0x3a9288,_0x2705c8,_0x1bf25a['commandParams'][0x0]['startIndex'])};}return _0x39a0f5;});}['_getTranslationKeyForListStyle'](_0x15f395){return'ELEMENT_'+function(_0x3132ab){if(pe['includes'](_0x3132ab))return'bulleted';if(ye['includes'](_0x3132ab))return'numbered';return null;}(_0x15f395)['toUpperCase']()+'_LIST_'+_0x15f395['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x26e52a{static get['requires'](){return[_0x5df135];}['init'](){const _0x572465=this['editor'],_0x5059a1=_0x572465['plugins']['get']('TrackChangesEditing'),_0x26d6d4=_0x572465['commands']['get']('enter');_0x5059a1['enableCommand']('enter',()=>{_0x572465['model']['change'](_0xe6176b=>{const _0x3ee379=_0x572465['model']['document']['selection'],_0x1d2050=_0x3ee379['getFirstPosition'](),_0x37fa95=_0x577a36['fromRange'](_0x3ee379['getFirstRange']());if(_0x26d6d4['enterBlock'](_0xe6176b)){const _0x3a6ae7=_0x572465['model']['createPositionAt'](_0x1d2050['parent']['nextSibling'],0x0),_0x46fee5=_0xe6176b['createRange'](_0x1d2050,_0x3a6ae7);_0x5059a1['markInsertion'](_0x46fee5);}else _0xe6176b['setSelection'](_0xe6176b['createRange'](_0x37fa95['end']));_0x37fa95['detach'](),_0x26d6d4['fire']('afterExecute',{'writer':_0xe6176b});});}),_0x572465['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x572465,'split'),{'priority':'high'}),_0x572465['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x54bd9,_0x52b857,_0x385cc2)=>{const _0x484454=_0x385cc2['mapper']['markerNameToElements'](_0x52b857['markerName']);if(_0x484454){for(const _0xbf313c of _0x484454)_0xbf313c['hasClass']('ck-suggestion-marker-split')&&(_0x385cc2['mapper']['unbindElementFromMarkerName'](_0xbf313c,_0x52b857['markerName']),_0x385cc2['writer']['remove'](_0xbf313c));}},{'priority':'high'}),_0x572465['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e4ae6,_0x44fbc9,_0x7c9788)=>{_0x7c9788['options']['showSuggestionHighlights']&&_e(_0x572465,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1e4ae6,_0x44fbc9,_0x7c9788);},{'priority':'high'});}}class J extends _0x26e52a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x18dd15=this['editor']['plugins']['get']('TrackChangesEditing');_0x18dd15['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x18dd15['enableCommand']('findNext'),_0x18dd15['enableCommand']('findPrevious'),_0x18dd15['enableCommand']('replace'),_0x18dd15['enableCommand']('replaceAll');}['handleFindCommand'](_0x53043b,_0xfc8026,_0x411214={}){const _0x406798=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x53043b(_0x5e6c3e=>('string'==typeof _0xfc8026?_0x406798['findByTextCallback'](_0xfc8026,_0x411214):_0xfc8026)(_0x5e6c3e)['filter'](_0x900393=>!0x1===this['_isInDeletionRange'](_0x900393,_0x5e6c3e['item'])),_0x411214);}['_isInDeletionRange'](_0x1c7d27,_0x45a56c){const _0x424712=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x45a56c,_0x1c7d27['start']),this['editor']['model']['createPositionAt'](_0x45a56c,_0x1c7d27['end']));for(const _0x3d5f58 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x424712['getIntersection'](_0x3d5f58['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x26e52a{['afterInit'](){const _0x3728fd=this['editor']['locale'],_0x479aa5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x46d25f,commandName:_0x4bb881}of ro)this['editor']['plugins']['has'](_0x46d25f)&&_0x479aa5['_enableDefaultAttributesIntegration'](_0x4bb881,[_0x4bb881]);_0x3728fd['t'],_0x479aa5['_descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3728fd,'FORMAT_FONT_SIZE')),_0x479aa5['_descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3728fd,'FORMAT_FONT_FAMILY')),_0x479aa5['_descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3728fd,'FORMAT_FONT_COLOR')),_0x479aa5['_descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3728fd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41f07b=this['editor'],_0x59b116=_0x41f07b['locale'];_0x41f07b['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x35b644=>{const _0x48b0c7=_0x59b116['t'];if('formatInline'!=_0x35b644['type'])return;const {data:_0x1b4826}=_0x35b644;if(null!=_0x1b4826){if('fontSize'==_0x1b4826['commandName']){const _0x39a593=_0x1b4826['commandParams'][0x0]['value'];if(_0x39a593){const _0x1a721b=_0x48b0c7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x518605=>_0x518605['model']==_0x39a593)['title'])['toLowerCase']();return{'type':'format','content':o(_0x59b116,'*Set\x20font\x20size:*\x20%0',_0x1a721b)};}return{'type':'format','content':o(_0x59b116,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1b4826['commandName']){const _0x23a7c3=_0x1b4826['commandParams'][0x0]['value'];return _0x23a7c3?{'type':'format','content':o(_0x59b116,'*Set\x20font\x20family:*\x20%0',_0x23a7c3)}:{'type':'format','content':o(_0x59b116,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1b4826['commandName']){const _0x2a1e72=_0x1b4826['commandParams'][0x0]['value'];if(_0x2a1e72){const _0x2199ec=_0x9dfa68(this['editor']['config']['get']('fontColor.colors'))['find'](_0x377166=>_0x377166['model']==_0x2a1e72);let _0x32c6ca=_0x2a1e72,_0x33420d='';return _0x2199ec&&(_0x32c6ca=_0x2199ec['label'],_0x33420d=_0x48b0c7(_0x32c6ca)['toLowerCase']()),{'type':'format','content':o(_0x59b116,'*Set\x20font\x20color:*\x20%0',_0x33420d)['trim'](),'color':{'value':_0x2a1e72,'title':_0x33420d||_0x32c6ca}};}return{'type':'format','content':o(_0x59b116,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1b4826['commandName']){const _0x5334e6=_0x1b4826['commandParams'][0x0]['value'];if(_0x5334e6){const _0x1d3e44=_0x9dfa68(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x219817=>_0x219817['model']==_0x5334e6);let _0xeac0c6=_0x5334e6,_0x511704='';return _0x1d3e44&&(_0xeac0c6=_0x1d3e44['label'],_0x511704=_0x48b0c7(_0xeac0c6)['toLowerCase']()),{'type':'format','content':o(_0x59b116,'*Set\x20font\x20background\x20color:*\x20%0',_0x511704)['trim'](),'color':{'value':_0x5334e6,'title':_0x511704||_0xeac0c6}};}return{'type':'format','content':o(_0x59b116,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x26e52a{['afterInit'](){const _0x14f485=this['editor'],_0x41923d=_0x14f485['plugins']['get']('TrackChangesEditing'),_0x188c0f=_0x14f485['commands']['get']('copyFormat'),_0x19e3c8=_0x14f485['commands']['get']('pasteFormat');_0x188c0f&&_0x19e3c8&&(_0x41923d['_enableDefaultAttributesIntegration']('pasteFormat'),_0x41923d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x25287c=this['editor'],_0x22310a=_0x25287c['locale'];_0x25287c['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x4d6cca=>{if('formatBlock'!=_0x4d6cca['type']&&'formatInline'!=_0x4d6cca['type'])return;const {data:_0x52582c}=_0x4d6cca;if(_0x52582c&&'pasteFormat'===_0x52582c['commandName']){const _0x3f5f99=[],_0x5792c3=_0x52582c['commandParams'][0x0];for(const [_0x59e7a6,_0x29d026]of Object['entries'](_0x5792c3))_0x3f5f99['push'](so(_0x25287c,_0x59e7a6,_0x29d026));return _0x3f5f99['length']?{'type':'format','content':o(_0x22310a,'*Set\x20format\x20to:*\x20%0',_0x3f5f99['join'](',\x20'))}:{'type':'format','content':o(_0x22310a,'*Remove\x20all\x20formatting*')};}});}}function so(_0x20654a,_0x108689,_0xbca692){const _0x16437e=_0x20654a['locale']['t'],_0x2016a1=_0x108689['split'](/(?=[A-Z])/)['join']('\x20'),_0x23cb35=_0x16437e(_0x2016a1['charAt'](0x0)['toUpperCase']()+_0x2016a1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xbca692)return _0x23cb35;if('fontColor'===_0x108689||'fontBackgroundColor'===_0x108689){const _0x483792=_0x9dfa68(_0x20654a['config']['get']('fontColor.colors'))['find'](_0x3503af=>_0x3503af['model']==_0xbca692);return _0x23cb35+'\x20('+(_0x483792?_0x16437e(_0x483792['label'])['toLowerCase']():_0xbca692)+')';}if('fontSize'===_0x108689&&isNaN(parseFloat(_0xbca692))){const _0x1c95d0=_0x20654a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x20654a['config']['get']('fontSize.options'))['find'](_0x6884fa=>_0x6884fa['model']==_0xbca692);return _0x23cb35+'\x20('+(_0x1c95d0?_0x16437e(_0x1c95d0['title'])['toLowerCase']():_0xbca692)+')';}return _0x23cb35+'\x20('+_0xbca692+')';}class Y extends _0x26e52a{['afterInit'](){const _0x7ceabc=this['editor'];if(!_0x7ceabc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x7ceabc['config']['get']('heading.options');const _0x16e680=_0x7ceabc['locale'],_0x12b503=_0x7ceabc['plugins']['get']('TrackChangesEditing');_0x12b503['_enableDefaultAttributesIntegration']('heading');for(const _0x278494 of this['_headingOptions'])'paragraph'!=_0x278494['model']&&_0x12b503['_descriptionFactory']['registerElementLabel'](_0x278494['model'],_0x4ea6ca=>{const _0xf06bb2=this['_getHeadingLevel'](_0x278494['model']);return null!==_0xf06bb2?_0x5a5842(_0x4ea6ca,_0xf06bb2):_0x3aafab(_0x4ea6ca,_0x278494['title']);});function _0x5a5842(_0x15352c,_0x161ffe){return o(_0x16e680,'ELEMENT_HEADING',[_0x15352c,_0x161ffe]);}function _0x3aafab(_0x5a9c8e,_0x2cc19f){return o(_0x16e680,'ELEMENT_HEADING_CUSTOM',[_0x5a9c8e,_0x2cc19f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d311f=this['editor'],_0x4ced3c=_0x1d311f['locale'];function _0x371a71(_0x55c5d8,_0x268784){return o(_0x4ced3c,'ELEMENT_HEADING_CUSTOM',[_0x55c5d8,_0x268784]);}_0x1d311f['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x293779=>{if('formatBlock'!=_0x293779['type'])return;const {data:_0x313439}=_0x293779;if(_0x313439&&'heading'==_0x313439['commandName']){const _0x4c58c3=_0x313439['commandParams'][0x0]['value'],_0x5d397a=this['_getHeadingLevel'](_0x4c58c3);if(null!==_0x5d397a)return{'type':'format','content':o(_0x4ced3c,'*Change\x20to:*\x20%0',(_0x210318=0x1,_0x5aab03=_0x5d397a,o(_0x4ced3c,'ELEMENT_HEADING',[_0x210318,_0x5aab03])))};const _0x5d4b11=this['_headingOptions']['find'](_0xb1cab=>_0xb1cab['model']===_0x4c58c3)['title'];return{'type':'format','content':o(_0x4ced3c,'*Change\x20to:*\x20%0',_0x371a71(0x1,_0x5d4b11))};}var _0x210318,_0x5aab03;});}['_getHeadingLevel'](_0x4fb78f){var _0x171330,_0x63cf82;const _0x59d7b2=_0x4fb78f['match'](/^heading(\d+)/);if(_0x59d7b2)return _0x59d7b2[0x1];const _0x51a90a=null===(_0x171330=this['_headingOptions'])||void 0x0===_0x171330?void 0x0:_0x171330['find'](_0x516cf8=>_0x516cf8['model']==_0x4fb78f);if(_0x51a90a&&_0x51a90a['view']){const _0x546e5c=_0x51a90a['view'],_0x1ada5d=(null!==(_0x63cf82=_0x546e5c['name'])&&void 0x0!==_0x63cf82?_0x63cf82:_0x546e5c)['match'](/^h(\d+)/);if(_0x1ada5d)return _0x1ada5d[0x1];}return null;}}class Z extends _0x26e52a{['afterInit'](){const _0xf8ebc=this['editor'];if(!_0xf8ebc['plugins']['has']('HighlightEditing'))return;const _0x458963=_0xf8ebc['plugins']['get']('TrackChangesEditing'),_0x4eedc4=_0xf8ebc['locale'];_0x458963['_enableDefaultAttributesIntegration']('highlight',['highlight']),_0x458963['_descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4eedc4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b9382=this['editor'],_0x3ff75e=_0x3b9382['locale'];_0x3b9382['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x29c52d=>{if('formatInline'!=_0x29c52d['type'])return;const {data:_0xd6792b}=_0x29c52d;if(_0xd6792b&&'highlight'==_0xd6792b['commandName']){const _0xd42460=_0x3ff75e['t'],_0x16c3a5=_0xd6792b['commandParams'][0x0]['value'];if(_0x16c3a5){const _0x7f50f3=_0x3b9382['config']['get']('highlight.options')['find'](_0x586a1d=>_0x586a1d['model']==_0x16c3a5),_0x356c0b=_0xd42460(_0x7f50f3['title'])['toLowerCase']();return{'type':'format','content':o(_0x3ff75e,'*Set\x20highlight:*\x20%0',_0x356c0b),'color':{'value':_0x7f50f3['color'],'title':_0x7f50f3['title']}};}return{'type':'format','content':o(_0x3ff75e,'*Remove\x20highlight*',o(_0x3ff75e,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x26e52a{['afterInit'](){const _0x89906=this['editor'];if(!_0x89906['plugins']['has']('HorizontalLineEditing'))return;_0x89906['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x8c9205=_0x89906['plugins']['get']('TrackChangesEditing'),_0x32e2fd=_0x89906['locale'];_0x8c9205['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x472603=>o(_0x32e2fd,'ELEMENT_HORIZONTAL_LINE',_0x472603)),_0x89906['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x50c9da,{writer:_0x13482f,options:_0x147bff})=>{if(!_0x147bff['showSuggestionHighlights'])return null;const _0x47322f=_0x13482f['createContainerElement']('div'),_0x37bd2c=_0x13482f['createEmptyElement']('hr');return _0x13482f['addClass']('ck-horizontal-line',_0x47322f),_0x13482f['insert'](_0x13482f['createPositionAt'](_0x47322f,0x0),_0x37bd2c),_0x47322f;},'converterPriority':'high'});}}class et extends _0x26e52a{['afterInit'](){const _0x3d862b=this['editor'];if(!_0x3d862b['plugins']['has']('HtmlEmbed'))return;const _0x42012f=_0x3d862b['plugins']['get']('TrackChangesEditing'),_0x25ed7d=_0x3d862b['locale'];_0x42012f['_descriptionFactory']['registerElementLabel']('rawHtml',_0x1f6707=>o(_0x25ed7d,'ELEMENT_HTML_EMBED',_0x1f6707)),_0x42012f['_enableDefaultAttributesIntegration']('htmlEmbed',[],['value']),_0x42012f['_descriptionFactory']['registerDescriptionCallback'](_0x36cd2d=>{if('attribute'!=_0x36cd2d['type'])return;const {data:_0x163944}=_0x36cd2d;if(_0x163944&&'value'==_0x163944['key']&&_0x36cd2d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x114282=o(_0x25ed7d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x25ed7d,'*Change\x20%0\x20content*',_0x114282)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c0ef0=this['editor'],_0x3e0706=_0x3c0ef0['locale'];_0x3c0ef0['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x1fc8eb=>{if('formatBlock'!=_0x1fc8eb['type'])return;const {data:_0x4c3afa}=_0x1fc8eb;if(_0x4c3afa&&'htmlEmbed'==_0x4c3afa['commandName']){const _0x57f2a6=o(_0x3e0706,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3e0706,'*Change\x20%0\x20content*',_0x57f2a6)};}});}}class it extends _0x26e52a{['afterInit'](){const _0x50dc8f=this['editor'];if(!_0x50dc8f['plugins']['has']('ImageEditing'))return;const _0x3ee3ce=_0x50dc8f['plugins']['get']('TrackChangesEditing'),_0x26ba3a=_0x50dc8f['plugins']['get']('ImageUtils'),_0x38f174=_0x50dc8f['locale'];_0x3ee3ce['enableCommand']('insertImage'),_0x3ee3ce['_descriptionFactory']['registerElementLabel']('imageBlock',_0x36c886=>o(_0x38f174,'ELEMENT_IMAGE',_0x36c886)),_0x3ee3ce['_descriptionFactory']['registerElementLabel']('imageInline',_0x12c4a4=>o(_0x38f174,'ELEMENT_INLINE_IMAGE',_0x12c4a4)),_0x3ee3ce['_descriptionFactory']['registerElementLabel']('caption',()=>o(_0x38f174,'ELEMENT_CAPTION')),_0x50dc8f['plugins']['has']('ImageUploadEditing')&&_0x3ee3ce['enableCommand']('uploadImage'),_0x50dc8f['plugins']['has']('ImageBlockEditing')&&_0x50dc8f['plugins']['has']('ImageInlineEditing')&&(_0x3ee3ce['enableCommand']('imageTypeInline',(_0x3614a7,_0x46c6c1)=>{const _0x2556b3=_0x26ba3a['getClosestSelectedImageElement'](_0x50dc8f['model']['document']['selection']);_0x50dc8f['model']['change'](()=>{_0x3ee3ce['markBlockFormat'](_0x2556b3,{'commandName':'imageTypeInline','commandParams':[_0x46c6c1]},[],'convertBlockImageToInline');});}),_0x3ee3ce['enableCommand']('imageTypeBlock',(_0xe13438,_0x1b6bea)=>{_0x50dc8f['model']['change'](_0x4ddd43=>{let _0x489dc7=_0x26ba3a['getClosestSelectedImageElement'](_0x50dc8f['model']['document']['selection']),_0x172537=_0x4ddd43['createRangeOn'](_0x489dc7);const _0x59c2a1=_0x2146ab['fromPosition'](_0x172537['start'],'toPrevious'),_0x27ba06=_0x2146ab['fromPosition'](_0x172537['end'],'toNext');_0x3ee3ce['forceDefaultExecution'](()=>_0xe13438(_0x1b6bea)),_0x489dc7=_0x26ba3a['getClosestSelectedImageElement'](_0x50dc8f['model']['document']['selection']),_0x172537=_0x4ddd43['createRangeOn'](_0x489dc7);const _0x404593=_0x4ddd43['createRange'](_0x59c2a1,_0x27ba06);_0x59c2a1['detach'](),_0x27ba06['detach'](),_0x3ee3ce['markBlockFormat'](_0x489dc7,{'commandName':'imageTypeInline','commandParams':[_0x1b6bea]},[],'convertInlineImageToBlock'),_0x404593['start']['isBefore'](_0x172537['start'])&&_0x3ee3ce['markInsertion'](_0x4ddd43['createRange'](_0x404593['start'],_0x172537['start']),'convertInlineImageToBlock'),_0x172537['end']['isBefore'](_0x404593['end'])&&_0x3ee3ce['markInsertion'](_0x4ddd43['createRange'](_0x172537['end'],_0x404593['end']),'convertInlineImageToBlock');});}),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3ee3ce['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x28fe62])=>{const _0x1ffdae=_0x3ee3ce['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x58ed2e=_0x28fe62['start'],_0x194d28=_0x28fe62['end'];const _0x13650b=_0x50dc8f['model']['schema']['getNearestSelectionRange'](_0x58ed2e,'backward'),_0x3d1bac=_0x50dc8f['model']['schema']['getNearestSelectionRange'](_0x194d28,'forward');_0x13650b['isCollapsed']&&(_0x58ed2e=_0x13650b['start']),_0x3d1bac['isCollapsed']&&(_0x194d28=_0x3d1bac['end']),_0x1ffdae([_0x50dc8f['model']['createRange'](_0x58ed2e,_0x194d28)]);}),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x56fe27),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x56fe27)),_0x50dc8f['plugins']['has']('ImageCaptionEditing')&&(_0x3ee3ce['enableCommand']('toggleImageCaption',(_0x2d66f9,_0x529ea0)=>{const _0x482430=_0x50dc8f['plugins']['get']('ImageCaptionUtils');let _0x3dea85=_0x26ba3a['getClosestSelectedImageElement'](_0x50dc8f['model']['document']['selection']),_0x2dcdfb=_0x482430['getCaptionFromImageModelElement'](_0x3dea85);_0x50dc8f['model']['change'](()=>{if(_0x2dcdfb)return void _0x3ee3ce['markDeletion'](_0x50dc8f['model']['createRangeOn'](_0x2dcdfb));const _0x248d53=_0x26ba3a['isBlockImage'](_0x3dea85);_0x2d66f9(_0x529ea0),_0x3dea85=_0x26ba3a['getClosestSelectedImageElement'](_0x50dc8f['model']['document']['selection']),_0x2dcdfb=_0x482430['getCaptionFromImageModelElement'](_0x3dea85),_0x3ee3ce['markInsertion'](_0x50dc8f['model']['createRangeOn'](_0x2dcdfb),_0x248d53?null:'imageCaption');});}),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x56fe27));const _0x5ce899=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x207ac6(_0x3ad9f2,_0x203f3f){const _0x40c970=_0x5ce899['findIndex'](({type:_0x563ea6,subType:_0x405bdf})=>_0x3ad9f2['type']==_0x563ea6&&_0x3ad9f2['subType']==_0x405bdf),_0x334c5b=_0x5ce899['findIndex'](({type:_0x16cfd8,subType:_0x5886ff})=>_0x203f3f['type']==_0x16cfd8&&_0x203f3f['subType']==_0x5886ff);if(_0x40c970<0x0||_0x334c5b<0x0)return!0x1;const _0xb8ad9e=_0x3ad9f2['getFirstRange'](),_0x3cd047=_0x203f3f['getFirstRange']();if((0x0==_0x40c970||0x1==_0x40c970)&&0x2==_0x334c5b&&_0xb8ad9e['isIntersecting'](_0x3cd047))return!0x0;if(0x2==_0x40c970&&0x3==_0x334c5b){const _0x16355d=_0x3ee3ce['_findSuggestions'](_0xb8ad9e,'insertion')['filter'](({suggestion:_0x5e30fd,meta:_0x376db0})=>_0x376db0['isOwn']&&'convertInlineImageToBlock'==_0x5e30fd['subType']);if(_0x16355d['length']>0x1&&_0x3cd047['end']['isEqual'](_0xb8ad9e['start']))return!0x0;if(0x1==_0x16355d['length']&&(_0xb8ad9e['start']['isEqual'](_0x3cd047['end'])||_0xb8ad9e['end']['isEqual'](_0x3cd047['start'])))return!0x0;}if(0x3==_0x40c970&&0x3==_0x334c5b&&_0xb8ad9e['start']['isBefore'](_0x3cd047['start'])){const _0x2a860b=_0xb8ad9e['end']['nodeAfter'],_0x51c862=_0x3cd047['start']['nodeBefore'];return _0x26ba3a['isBlockImage'](_0x2a860b)&&_0x2a860b===_0x51c862;}return!0x1;}function _0x56fe27(_0x5a01f7,_0x3fb463){return _0x207ac6(_0x5a01f7,_0x3fb463)?[_0x5a01f7,_0x3fb463]:_0x207ac6(_0x3fb463,_0x5a01f7)?[_0x3fb463,_0x5a01f7]:null;}_0x50dc8f['plugins']['has']('ImageResize')&&(_0x3ee3ce['_enableDefaultAttributesIntegration']('resizeImage',[],['resizedWidth']),_0x3ee3ce['_descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x38f174,'FORMAT_IMAGE_SIZE'))),_0x50dc8f['plugins']['has']('ImageTextAlternativeEditing')&&_0x3ee3ce['_enableDefaultAttributesIntegration']('imageTextAlternative',[],['alt']),_0x3ee3ce['_descriptionFactory']['registerDescriptionCallback'](_0x23339e=>{if(!!_0x5ce899['find'](({type:_0x5e4c87,subType:_0x4c0f01})=>_0x23339e['type']==_0x5e4c87&&_0x23339e['subType']==_0x4c0f01))return _0x23339e['previous']?{}:void 0x0;}),_0x3ee3ce['_descriptionFactory']['registerDescriptionCallback'](_0x1dba17=>{if('insertion'==_0x1dba17['type']||'deletion'==_0x1dba17['type']){const _0x3510f6=_0x1dba17['getContainedElement']();if(_0x3510f6&&_0x3510f6['is']('element','caption'))return{'type':'insertion'==_0x1dba17['type']?'addObject':'removeObject','element':_0x3510f6,'quantity':0x1};}}),_0x3ee3ce['_descriptionFactory']['registerDescriptionCallback'](_0x5100b8=>'formatBlock'==_0x5100b8['type']&&'convertInlineImageToBlock'==_0x5100b8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5100b8['type']&&'convertBlockImageToInline'==_0x5100b8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3ee3ce['_descriptionFactory']['registerDescriptionCallback'](_0x40c8d6=>{if('attribute'!=_0x40c8d6['type'])return;const {data:_0x4273c1}=_0x40c8d6;if(!_0x4273c1||'alt'!=_0x4273c1['key'])return;const _0x4e7cc5=_0x4273c1['newValue'];return _0x4e7cc5?{'type':'format','content':o(_0x38f174,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e7cc5+'\x22')}:{'type':'format','content':o(_0x38f174,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x301829=this['editor'],_0x28d4d7=_0x301829['locale'];_0x301829['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5009f6=>{if('formatBlock'!=_0x5009f6['type']&&'formatInline'!=_0x5009f6['type'])return;const {data:_0x28d671}=_0x5009f6;if(_0x28d671){if('imageTextAlternative'==_0x28d671['commandName']){const _0x1c6543=_0x28d671['commandParams'][0x0]['newValue'];return _0x1c6543?{'type':'format','content':o(_0x28d4d7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1c6543+'\x22')}:{'type':'format','content':o(_0x28d4d7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x28d671['commandName']){const _0x565929=_0x28d671['commandParams'][0x0]['width'];return _0x565929?{'type':'format','content':o(_0x28d4d7,'*Set\x20image\x20width:*\x20%0',_0x565929)}:{'type':'format','content':o(_0x28d4d7,'*Reset\x20image\x20width*')};}}});}}class st extends _0x26e52a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xa8c330=this['editor']['locale'],_0x34adc7=this['editor']['plugins']['get']('TrackChangesEditing');_0x34adc7['_enableDefaultAttributesIntegration']('replaceImageSource',[],['src']),_0x34adc7['_descriptionFactory']['registerDescriptionCallback'](_0x1c4e18=>{if('attribute'!=_0x1c4e18['type'])return;const {data:_0x113d4c}=_0x1c4e18;return _0x113d4c&&'src'==_0x113d4c['key']?_0x113d4c['newValue']&&_0x113d4c['oldValue']?{'type':'format','content':o(_0xa8c330,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x276932=this['editor']['plugins']['get']('TrackChangesEditing');_0x276932['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x276932['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x276932['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x276932['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51472f=this['editor'],_0x38521a=_0x51472f['locale'];_0x51472f['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x40007a=>{if('formatBlock'!=_0x40007a['type']&&'formatInline'!=_0x40007a['type'])return;const {data:_0xd3ab7a}=_0x40007a;if(!_0xd3ab7a||'replaceImageSource'!=_0xd3ab7a['commandName'])return;return{'type':'format','content':o(_0x38521a,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x26e52a{['afterInit'](){const _0x450543=this['editor'];if(!_0x450543['plugins']['has']('ImageStyleEditing'))return;const _0x1c864f=_0x450543['plugins']['get']('TrackChangesEditing'),_0x58ec88=_0x450543['plugins']['get']('ImageUtils'),_0x4a356d={};_0x1c864f['enableCommand']('imageStyle',(_0x529ace,_0x48acd0)=>{const _0x1f8480=_0x450543['plugins']['get']('Users')['me'],_0x423000=_0x450543['commands']['get']('imageStyle');let _0x28f030=_0x58ec88['getClosestSelectedImageElement'](_0x450543['model']['document']['selection']),_0x2308b2=_0x450543['model']['createRangeOn'](_0x28f030),_0x50b1b4=_0x423000['value'];if(_0x50b1b4==_0x48acd0['value'])return;const _0x16f606={'commandName':'imageStyle','commandParams':[_0x48acd0],'formatGroupId':_0x1702d8()};_0x450543['model']['change'](()=>{if(_0x1c864f['getSuggestions']()['filter'](_0x57bc7b=>_0x57bc7b['isInContent']&&_0x1f8480==_0x57bc7b['author']&&('formatBlock'==_0x57bc7b['type']||'formatInline'==_0x57bc7b['type'])&&('imageStylePreApply'==_0x57bc7b['subType']||'imageStylePostApply'==_0x57bc7b['subType'])&&_0x57bc7b['getFirstRange']()['isEqual'](_0x2308b2))['forEach'](_0x41205a=>_0x1c864f['discardSuggestion'](_0x41205a['head'])),_0x28f030=_0x58ec88['getClosestSelectedImageElement'](_0x450543['model']['document']['selection']),_0x2308b2=_0x450543['model']['createRangeOn'](_0x28f030),_0x423000['refresh'](),_0x450543['commands']['get']('imageTypeInline')['refresh'](),_0x450543['commands']['get']('imageTypeBlock')['refresh'](),_0x50b1b4=_0x423000['value'],_0x50b1b4!=_0x48acd0['value'])return _0x58ec88['isInlineImage'](_0x28f030)&&_0x423000['shouldConvertImageType'](_0x48acd0['value'],_0x28f030)?(_0x529ace({..._0x48acd0,'setImageSizes':!0x1}),_0x28f030=_0x58ec88['getClosestSelectedImageElement'](_0x450543['model']['document']['selection']),void _0x1c864f['markBlockFormat'](_0x28f030,{..._0x16f606,'commandReversedParams':[{'value':_0x50b1b4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x58ec88['isBlockImage'](_0x28f030)?_0x1c864f['markBlockFormat'](_0x28f030,_0x16f606,[],'imageStylePostApply'):_0x1c864f['markInlineFormat'](_0x2308b2,_0x16f606,'imageStylePostApply'));});});for(const _0x562cd0 of _0x450543['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4a356d[_0x562cd0['name']]=_0x562cd0['title']['toLowerCase']();_0x1c864f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1c864f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1c864f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1c864f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1be076])=>{_0x58ec88['setImageNaturalSizeAttributes'](_0x1be076['getContainedElement']());}),_0x1c864f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2105e6,_0x19c63a)=>{_0x1c864f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2105e6,{'commandName':_0x19c63a['commandName'],'commandParams':_0x19c63a['commandReversedParams']});}),_0x1c864f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2e51f6,_0x52ac15){if(_0x1a00e1(_0x2e51f6,_0x52ac15))return[_0x2e51f6,_0x52ac15];if(_0x1a00e1(_0x52ac15,_0x2e51f6))return[_0x52ac15,_0x2e51f6];return null;});const _0x2de7c2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1a00e1(_0x230829,_0x5e7e26){const _0x5a84fc=_0x2de7c2['findIndex'](({type:_0x5c8a53,subType:_0x50b99f})=>_0x230829['type']==_0x5c8a53&&_0x230829['subType']==_0x50b99f),_0x3b07a9=_0x2de7c2['findIndex'](({type:_0x5ae301,subType:_0x30e2c8})=>_0x5e7e26['type']==_0x5ae301&&_0x5e7e26['subType']==_0x30e2c8);if(_0x5a84fc<0x0||_0x3b07a9<0x0)return!0x1;const _0x29ea2e=_0x230829['getFirstRange'](),_0x8f5d75=_0x5e7e26['getFirstRange']();if((0x0==_0x5a84fc||0x1==_0x5a84fc)&&0x2==_0x3b07a9&&_0x29ea2e['isIntersecting'](_0x8f5d75))return!0x0;if(0x2==_0x5a84fc&&0x3==_0x3b07a9){const _0x330933=_0x1c864f['_findSuggestions'](_0x29ea2e,'insertion')['filter'](({suggestion:_0x14d145,meta:_0x127803})=>_0x127803['isOwn']&&'convertInlineImageToBlock'==_0x14d145['subType']);if(_0x330933['length']>0x1&&_0x8f5d75['end']['isEqual'](_0x29ea2e['start']))return!0x0;if(0x1==_0x330933['length']&&(_0x29ea2e['start']['isEqual'](_0x8f5d75['end'])||_0x29ea2e['end']['isEqual'](_0x8f5d75['start'])))return!0x0;}if(0x3==_0x5a84fc&&0x3==_0x3b07a9&&_0x29ea2e['start']['isBefore'](_0x8f5d75['start'])){const _0x5b5c3e=_0x29ea2e['end']['nodeAfter'],_0x5018a8=_0x8f5d75['start']['nodeBefore'];return _0x58ec88['isBlockImage'](_0x5b5c3e)&&_0x5b5c3e===_0x5018a8;}return!0x1;}_0x450543['model']['document']['registerPostFixer'](()=>{let _0x1432f4=!0x1;const _0x4eb9f8=Array['from'](_0x450543['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18989b,data:_0x2f11d4}of _0x4eb9f8){const {group:_0x55eda1,type:_0x190540,subType:_0x57f709,id:_0x43ae5d}=_0x1c864f['_splitMarkerName'](_0x18989b);if('suggestion'==_0x55eda1&&_0x1c864f['hasSuggestion'](_0x43ae5d)){if('formatBlock'==_0x190540&&('imageStylePreApply'==_0x57f709||'imageStylePostApply'==_0x57f709)){const _0x3b775a=_0x1c864f['getSuggestion'](_0x43ae5d);if(_0x2f11d4['newRange']){const _0x40f0b=_0x3b775a['getFirstRange']()['getContainedElement']();if(_0x58ec88['isBlockImage'](_0x40f0b))continue;_0x1c864f['discardSuggestion'](_0x3b775a),_0x1432f4=!0x0;}}if('insertion'==_0x190540&&'imageCaption'==_0x57f709&&!_0x2f11d4['newRange']){const _0x25fd43=_0x1c864f['getSuggestion'](_0x43ae5d);_0x25fd43['next']&&_0x25fd43['next']['isInContent']&&(_0x1c864f['discardSuggestion'](_0x25fd43['next']),_0x1432f4=!0x0);}}}return _0x1432f4;}),this['_registerLegacyDescription'](_0x4a356d);}['_registerLegacyDescription'](_0x329479){const _0x5807e3=this['editor'],_0x4d05fe=_0x5807e3['locale'];_0x5807e3['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x38bfbc=>{if('formatBlock'!=_0x38bfbc['type']&&'formatInline'!=_0x38bfbc['type'])return;const {data:_0x1ddc94}=_0x38bfbc;if(!_0x1ddc94||'imageStyle'!=_0x1ddc94['commandName'])return;const _0x1ed133=_0x1ddc94['commandParams'][0x0]['value'];return _0x40584d('side'===_0x1ed133?o(_0x4d05fe,'FORMAT_SIDE_IMAGE'):_0x329479[_0x1ed133]||_0x1ed133);function _0x40584d(_0x312618){return{'type':'format','content':o(_0x4d05fe,'*Format:*\x20%0',_0x312618)};}});}}class ot extends _0x26e52a{['afterInit'](){const _0x199f18=this['editor'],_0x53c2df=_0x199f18['commands']['get']('importWord'),_0x5e18ef=_0x199f18['commands']['get']('trackChanges');_0x53c2df&&(_0x53c2df['on']('execute',(_0x1a87ee,[,_0x8b97f4])=>{this['_trackChangesValueDuringImport']=_0x5e18ef['value'],_0x8b97f4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x53c2df,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x53c2df,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5e18ef['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x199f18['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x505673,_0x357334){const {suggestions:_0x5d2760}=_0x357334,_0x41b8f6=this['editor']['commands']['get']('trackChanges'),_0x48df4e=_0x41b8f6['value'];this['_trackChangesValueDuringImport']!==_0x48df4e&&(_0x41b8f6['execute'](),this['_trackChangesExecuted']=!0x0),_0x5d2760&&_0x5d2760['forEach'](({id:_0x49afa4,type:_0x24fe85,author:_0x75ed6d,created_at:_0x3c4447})=>{const _0x392966={'id':_0x49afa4,'type':_0x24fe85,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x75ed6d,'createdAt':_0x3c4447?new Date(_0x3c4447):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x392966);});}constructor(_0x578f5e){super(_0x578f5e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x26e52a{['afterInit'](){const _0x5d544e=this['editor'],_0x164278=_0x5d544e['plugins']['get']('TrackChangesEditing');if(_0x5d544e['plugins']['has']('IndentEditing')&&(_0x164278['enableCommand']('indent'),_0x164278['enableCommand']('outdent')),_0x5d544e['plugins']['has']('IndentBlock')){for(const _0x5c1923 of['indentBlock','outdentBlock'])_0x164278['_enableDefaultAttributesIntegration'](_0x5c1923);}const _0x4e62f1=_0x5d544e['locale'];_0x164278['_registerBlockAttribute']('blockIndent'),_0x164278['_descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4e62f1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd22ab0=this['editor'],_0x7b4686=_0xd22ab0['locale'],_0x27fd1f=_0xd22ab0['plugins']['get']('TrackChangesEditing');_0x27fd1f['_descriptionFactory']['registerDescriptionCallback'](_0x28bec1=>{if('formatBlock'!=_0x28bec1['type'])return;const {data:_0x21b044}=_0x28bec1;if(!_0x21b044)return;if('indentBlock'!=_0x21b044['commandName']&&'outdentBlock'!=_0x21b044['commandName'])return;const _0xeff957=_0x28bec1['getItems']()[0x0],_0x190fd8=_0x27fd1f['_descriptionFactory']['getItemLabel'](_0xeff957);return'indentBlock'==_0x21b044['commandName']?{'type':'format','content':o(_0x7b4686,'*Indent:*\x20%0',_0x190fd8)}:'outdentBlock'==_0x21b044['commandName']?{'type':'format','content':o(_0x7b4686,'*Outdent:*\x20%0',_0x190fd8)}:void 0x0;});}}class at extends _0x26e52a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x26e52a{['afterInit'](){const _0x2375fa=this['editor'];if(!_0x2375fa['plugins']['has']('LinkEditing'))return;const _0x5c2df1=_0x2375fa['plugins']['get']('TrackChangesEditing'),_0x147c43=_0x2375fa['commands']['get']('link');_0x5c2df1['_enableDefaultAttributesIntegration']('link',['linkHref',..._0x147c43['manualDecorators']['map'](_0x5f297d=>_0x5f297d['id'])]),_0x5c2df1['_enableDefaultAttributesIntegration']('unlink');for(const _0x2c0394 of _0x147c43['manualDecorators'])_0x5c2df1['_descriptionFactory']['registerAttributeLabel'](_0x2c0394['id'],'link\x20('+_0x2c0394['label']['toLowerCase']()+')');_0x5c2df1['_descriptionFactory']['registerDescriptionCallback'](_0x495b79=>{if('attribute'!=_0x495b79['type'])return;const {data:_0x45b33c}=_0x495b79;if(!_0x45b33c||'linkHref'!=_0x45b33c['key'])return;const _0x36f0b7=_0x45b33c['newValue'],_0x3cea2d=_0x2375fa['locale'];return{'type':'format','content':null==_0x36f0b7?o(_0x3cea2d,'*Remove\x20link*'):o(_0x3cea2d,'*Set\x20link:*\x20%0','\x22'+_0x36f0b7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x482ef9=this['editor'],_0x16a2aa=_0x482ef9['locale'];_0x482ef9['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x911cc3=>{if('formatInline'!=_0x911cc3['type'])return;const {data:_0x26a054}=_0x911cc3;if(_0x26a054){if('link'==_0x26a054['commandName']){const _0x4be98b=_0x26a054['commandParams'][0x0];return{'type':'format','content':o(_0x16a2aa,'*Set\x20link:*\x20%0','\x22'+_0x4be98b+'\x22')};}return'unlink'==_0x26a054['commandName']?{'type':'format','content':o(_0x16a2aa,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x26e52a{['afterInit'](){const _0x3ccee2=this['editor'],_0x1845f8=_0x3ccee2['locale'];if(!_0x3ccee2['plugins']['has']('LegacyListEditing'))return;const _0x4097d5=_0x3ccee2['plugins']['get']('TrackChangesEditing'),_0x44bc97=_0x3ccee2['plugins']['has']('LegacyTodoListEditing');function _0x301ede(_0x547a2f){return()=>{const _0x2c1a92=_0x3ccee2['model']['document']['selection'],_0x598b41=_0x3ccee2['commands']['get'](_0x547a2f);if(_0x598b41['value'])return void _0x3ccee2['execute']('paragraph',{});const _0x462d9e=_0x547a2f['slice'](0x0,-0x4),_0x4f25d6=function(_0x20e7fa,_0x12b4ff,_0x10162e){let _0x5c95b0=Array['from'](_0x20e7fa)['filter'](_0x2501ba=>function(_0x2a722e,_0x36ff52){return _0x36ff52['checkChild'](_0x2a722e['parent'],'listItem')&&!_0x36ff52['isObject'](_0x2a722e);}(_0x2501ba,_0x10162e));_0x5c95b0=_0x5c95b0['filter'](_0x36d248=>!_0x36d248['is']('element','listItem')||_0x36d248['getAttribute']('listType')!=_0x12b4ff);const _0x324d13=new Set();for(const _0x326460 of _0x5c95b0)_0x326460['is']('element','listItem')?_0x324d13['add'](me(_0x326460)):_0x324d13['add'](_0x326460);return Array['from'](_0x324d13);}(_0x2c1a92['getSelectedBlocks'](),_0x462d9e,_0x3ccee2['model']['schema']);_0x3ccee2['model']['change'](()=>{for(const _0x4f7cbf of _0x4f25d6)_0x4097d5['markBlockFormat'](_0x4f7cbf,{'commandName':_0x547a2f,'commandParams':[{'forceValue':!_0x598b41['value']}],'formatGroupId':'blockName'},fe(_0x4f7cbf));});};}function _0x41283d(_0x2d6891){return()=>{const _0x57092f=function(_0xf12e5c){let _0x1b7daf=Array['from'](_0xf12e5c);const _0x33446d=_0x1b7daf['findIndex'](_0x3d4f28=>'listItem'!=_0x3d4f28['name']);return _0x33446d>-0x1&&(_0x1b7daf=_0x1b7daf['slice'](0x0,_0x33446d)),_0x1b7daf;}(_0x3ccee2['model']['document']['selection']['getSelectedBlocks']()),_0x1316de=_0x3ccee2['model']['createRange'](_0x3ccee2['model']['createPositionAt'](_0x57092f[0x0],'before'),_0x3ccee2['model']['createPositionAt'](_0x57092f[_0x57092f['length']-0x1],'end'));_0x3ccee2['model']['change'](()=>{_0x4097d5['markBlockFormat'](_0x1316de,{'commandName':_0x2d6891,'commandParams':[],'formatGroupId':'listIndent'},function(_0x538bf5){const _0x3aa301=new Set();for(const _0x19b833 of _0x538bf5){let _0x3ce759=_0x19b833['nextSibling'];for(;_0x3ce759&&_0x3ce759['getAttribute']('listIndent')>_0x19b833['getAttribute']('listIndent');)_0x3aa301['add'](_0x3ce759),_0x3ce759=_0x3ce759['nextSibling'];}return Array['from'](_0x3aa301);}(_0x57092f));});};}_0x4097d5['enableCommand']('numberedList',_0x301ede('numberedList')),_0x4097d5['enableCommand']('bulletedList',_0x301ede('bulletedList')),_0x44bc97&&_0x4097d5['enableCommand']('todoList',_0x301ede('todoList')),_0x4097d5['enableCommand']('indentList',_0x41283d('indentList')),_0x4097d5['enableCommand']('outdentList',_0x41283d('outdentList')),_0x44bc97&&_0x4097d5['enableCommand']('checkTodoList',()=>{const _0x576513=_0x3ccee2['commands']['get']('checkTodoList'),_0x129b3e=Array['from'](_0x576513['_selectedElements']);_0x129b3e['filter'](_0x462262=>_0x462262['getAttribute']('todoListChecked')!=_0x576513['value']),_0x3ccee2['model']['change'](()=>{for(const _0x3363d2 of _0x129b3e)_0x4097d5['markBlockFormat'](_0x3363d2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x576513['value']}]});});}),_0x4097d5['_descriptionFactory']['registerElementLabel']('listItem',_0x559e27=>o(_0x1845f8,'ELEMENT_LIST_ITEM',_0x559e27)),_0x4097d5['_descriptionFactory']['registerDescriptionCallback'](_0x1cb87b=>{if('formatBlock'!=_0x1cb87b['type']&&'formatInline'!=_0x1cb87b['type'])return;const {data:_0x344f8d}=_0x1cb87b;if(_0x344f8d){if('numberedList'==_0x344f8d['commandName']||'bulletedList'==_0x344f8d['commandName']||'todoList'==_0x344f8d['commandName'])switch(_0x344f8d['commandName']['replace']('List','')){case'bulleted':return _0x3a4437(o(_0x1845f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a4437(o(_0x1845f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a4437(o(_0x1845f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x344f8d['commandName'])return{'type':'format','content':o(_0x1845f8,'*Indent:*\x20%0',o(_0x1845f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x344f8d['commandName'])return{'type':'format','content':o(_0x1845f8,'*Outdent:*\x20%0',o(_0x1845f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x344f8d['commandName'])return _0x344f8d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1845f8,'*Check\x20item*')}:{'type':'format','content':o(_0x1845f8,'*Uncheck\x20item*')};}function _0x3a4437(_0x323095){return{'type':'format','content':o(_0x1845f8,'*Change\x20to:*\x20%0',_0x323095)};}});}}function me(_0x22c2f5){const _0x3347f1=_0x22c2f5['getAttribute']('listIndent');if(0x0==_0x3347f1)return _0x22c2f5;let _0x359f95=_0x22c2f5;for(;_0x22c2f5['previousSibling']&&_0x22c2f5['previousSibling']['is']('element','listItem');){const _0x13373a=_0x22c2f5['previousSibling']['getAttribute']('listIndent');if(_0x13373a==_0x3347f1)_0x359f95=_0x22c2f5['previousSibling'];else{if(_0x13373a<_0x3347f1)break;}_0x22c2f5=_0x22c2f5['previousSibling'];}return _0x359f95;}function fe(_0x9263af){const _0x58327b=[];if(_0x9263af['is']('element','listItem')&&_0x9263af['getAttribute']('listIndent')>0x0){let _0x29d294=_0x9263af['nextSibling'];for(;_0x29d294&&'listItem'==_0x29d294['name']&&_0x29d294['getAttribute']('listIndent')==_0x9263af['getAttribute']('listIndent');)_0x58327b['push'](_0x29d294),_0x29d294=_0x29d294['nextSibling'];}return _0x58327b;}class K extends _0x26e52a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xae85f3=this['editor']['config']['get']('list.properties'),_0x465295=this['editor']['plugins']['get']('TrackChangesEditing');_0xae85f3['styles']&&_0x465295['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xae85f3['reversed']&&_0x465295['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xae85f3['startIndex']&&_0x465295['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x465295['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3f3847,_0x401ca5={}){const _0x5d029c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26b2c6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5d029c['markMultiRangeBlockFormat'](_0x26b2c6,{'commandName':'listStyle','commandParams':[{'type':_0x401ca5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x55b356,_0x4bca8b={}){const _0x4497f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31ed1b=this['_getSuggestionBlocks'](_0x194131=>_0x194131['is']('element','listItem')&&'numbered'===_0x194131['getAttribute']('listType'));if(_0x31ed1b['length']<0x1)return;const _0x29ea4d=_0x31ed1b['map'](_0x5d6f04=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d6f04,'before'),this['editor']['model']['createPositionAt'](_0x5d6f04,0x0)));this['editor']['model']['change'](()=>{_0x4497f9['markMultiRangeBlockFormat'](_0x29ea4d,{'commandName':'listReversed','commandParams':[{'reversed':_0x4bca8b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x49c35e,_0x265a13={}){const _0x2f90c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x187268=this['_getSuggestionBlocks'](_0x51940f=>_0x51940f['is']('element','listItem')&&'numbered'===_0x51940f['getAttribute']('listType'));if(_0x187268['length']<0x1)return;const _0x3af304=_0x187268['map'](_0x6fd838=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x6fd838,'before'),this['editor']['model']['createPositionAt'](_0x6fd838,0x0)));this['editor']['model']['change'](()=>{_0x2f90c0['markMultiRangeBlockFormat'](_0x3af304,{'commandName':'listStart','commandParams':[{'startIndex':_0x265a13['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x55bfa0){if('formatBlock'!=_0x55bfa0['type']&&'formatInline'!=_0x55bfa0['type'])return;const _0x3a4b9e=this['editor']['locale'],{data:_0x1b92e3}=_0x55bfa0;if(!_0x1b92e3)return;let _0x8457db,_0x21c9ef;switch(_0x1b92e3['commandName']){case'listStyle':_0x8457db='*Change\x20to:*\x20%0',_0x21c9ef={'type':'format','content':o(_0x3a4b9e,_0x8457db,o(_0x3a4b9e,this['_getTranslationKeyForListStyle'](_0x1b92e3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8457db=_0x1b92e3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x21c9ef={'type':'format','content':o(_0x3a4b9e,_0x8457db)};break;case'listStart':_0x8457db='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21c9ef={'type':'format','content':o(_0x3a4b9e,_0x8457db,_0x1b92e3['commandParams'][0x0]['startIndex'])};}return _0x21c9ef;}['_getSuggestionBlocksForListStyle'](){var _0x247e5d,_0x9dbf0f,_0x489223,_0x50a4b1;const _0x581b00=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b91b4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x247e5d=_0x2b91b4[0x0])||void 0x0===_0x247e5d?void 0x0:_0x247e5d['is']('element','listItem'))&&_0x2b91b4['unshift'](..._0x581b00['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x9dbf0f=_0x2b91b4[_0x2b91b4['length']-0x1])||void 0x0===_0x9dbf0f?void 0x0:_0x9dbf0f['is']('element','listItem'))&&_0x2b91b4['push'](..._0x581b00['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2b91b4=[...new Set(_0x2b91b4)],(null===(_0x50a4b1=null===(_0x489223=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x489223?void 0x0:_0x489223['parent'])||void 0x0===_0x50a4b1?void 0x0:_0x50a4b1['is']('element','listItem'))&&(_0x2b91b4=_0x2b91b4['filter'](_0xa5e667=>_0xa5e667['is']('element','listItem'))),_0x2b91b4;}['_getSuggestionBlocks'](_0x46613c){const _0xc58811=this['editor']['plugins']['get']('LegacyListUtils');let _0x4a557b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x46613c)['map'](_0x40943e=>{const _0x67a40c=this['editor']['model']['createPositionAt'](_0x40943e,0x0);return[..._0xc58811['getSiblingNodes'](_0x67a40c,'backward'),..._0xc58811['getSiblingNodes'](_0x67a40c,'forward')];})['flat']();return _0x4a557b=[...new Set(_0x4a557b)],_0x4a557b;}['_getTranslationKeyForListStyle'](_0x3e31a2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3e31a2)||'default')['toUpperCase']()+'_LIST_'+_0x3e31a2['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x26e52a{['afterInit'](){const _0x98e7c2=this['editor'];if(!_0x98e7c2['plugins']['has']('MediaEmbedEditing'))return;const _0x2c1c0a=_0x98e7c2['plugins']['get']('TrackChangesEditing'),_0x3b0fd2=_0x98e7c2['locale'];_0x2c1c0a['enableCommand']('mediaEmbed'),_0x2c1c0a['_descriptionFactory']['registerElementLabel']('media',_0x519dfa=>o(_0x3b0fd2,'ELEMENT_MEDIA',_0x519dfa)),_0x98e7c2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4ac080,{writer:_0x117011,options:_0x4f2384})=>{if(_0x4f2384['showSuggestionHighlights'])return _0x117011['createEmptyElement']('div');},'converterPriority':'high'}),_0x98e7c2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x41d4b8,_0x5c994b,_0x48d052)=>{_0x48d052['options']['showSuggestionHighlights']&&_0x41d4b8['stop']();},{'priority':'high'});}}class gt extends _0x26e52a{['afterInit'](){const _0x6d8dc=this['editor'];_0x6d8dc['plugins']['has']('MentionEditing')&&_0x6d8dc['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x26e52a{['afterInit'](){const _0x2e0984=this['editor'],_0x4820db=_0x2e0984['plugins']['get']('TrackChangesEditing');_0x2e0984['plugins']['has']('MultiLevelList')&&(_0x4820db['_enableDefaultAttributesIntegration']('multiLevelList',[],['listMarkerStyle']),_0x4820db['_descriptionFactory']['registerDescriptionCallback'](_0x23cb36=>this['handleDescriptions'](_0x23cb36)));}['handleDescriptions'](_0x41f1fe){const _0x32f60f=this['editor']['locale'],{data:_0x2307d9}=_0x41f1fe,_0x4301e5={'type':'format','content':''};if(_0x2307d9&&'listMarkerStyle'==_0x2307d9['key']){if(!_0x2307d9['oldValue'])return{'type':'format','content':o(_0x32f60f,'*Set\x20format:*\x20%0',o(_0x32f60f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2307d9['newValue']+')'};if(!_0x2307d9['newValue']){let _0x3fa14e=_0x41f1fe['head'];for(;_0x3fa14e;){if(_0x3fa14e['data']&&'listType'==_0x3fa14e['data']['key']&&_0x3fa14e['data']['newValue'])return _0x4301e5;_0x3fa14e=_0x3fa14e['next'];}return{'type':'format','content':o(_0x32f60f,'*Remove\x20format:*\x20%0',o(_0x32f60f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2307d9['oldValue']+')'};}}}}class mt extends _0x26e52a{['afterInit'](){const _0x5c3f24=this['editor'];if(!_0x5c3f24['plugins']['has']('PageBreakEditing'))return;_0x5c3f24['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1c6b06=_0x5c3f24['plugins']['get']('TrackChangesEditing'),_0x55b9fd=_0x5c3f24['locale'];_0x1c6b06['_descriptionFactory']['registerElementLabel']('pageBreak',_0x2ba703=>o(_0x55b9fd,'ELEMENT_PAGE_BREAK',_0x2ba703));}}class dt extends _0x26e52a{['afterInit'](){const _0x160f78=this['editor'];if(!_0x160f78['plugins']['has']('Paragraph'))return;const _0xbd0bc9=_0x160f78['locale'],_0x2e8eec=_0x160f78['plugins']['get']('TrackChangesEditing');_0x2e8eec['_descriptionFactory']['registerElementLabel']('paragraph',_0x4cae6c=>o(_0xbd0bc9,'ELEMENT_PARAGRAPH',_0x4cae6c)),_0x2e8eec['_enableDefaultAttributesIntegration']('paragraph'),_0x2e8eec['enableCommand']('insertParagraph'),_0x160f78['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x160f78),{'priority':'highest'}),_0x160f78['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x47549e,_0x4b9b4a,_0x5bcdf1)=>{_0x5bcdf1['options']['showSuggestionHighlights']&&nr(_0x160f78,{'showActiveMarker':!0x1})(_0x47549e,_0x4b9b4a,_0x5bcdf1);},{'priority':'highest'});const _0x189139=_0x2e8eec['_descriptionFactory'];_0x189139['registerDescriptionCallback'](_0x28c89a=>{if('insertion'!==_0x28c89a['type'])return;const {start:_0x47e742,end:_0x461b0e}=_0x28c89a['getFirstRange']();if(!_0x47e742['isTouching'](_0x461b0e)||!_0x47e742['nodeAfter'])return;const _0x4d5b06=_0x160f78['model']['schema'],_0x1252c0=_0x47e742['nodeAfter'];return _0x4d5b06['isBlock'](_0x1252c0)&&!_0x4d5b06['isLimit'](_0x1252c0)&&_0x4d5b06['checkChild'](_0x1252c0,'$text')?{'type':'insertion','content':o(_0xbd0bc9,'*Insert:*\x20%0',_0x189139['getItemLabel'](_0x1252c0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55b592=this['editor'],_0x5030d6=_0x55b592['locale'];_0x55b592['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x39a83c=>{if('formatBlock'!=_0x39a83c['type'])return;const {data:_0x22ee04}=_0x39a83c;return _0x22ee04&&'paragraph'==_0x22ee04['commandName']?{'type':'format','content':o(_0x5030d6,'*Change\x20to:*\x20%0',o(_0x5030d6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x21dc12,{showActiveMarker:_0x5955d9=!0x0}={}){return(_0x58505c,_0x289d5e,_0x302407)=>{const _0x16924b=_0x21dc12['plugins']['get']('TrackChangesEditing'),_0x21ce95=_0x289d5e['markerRange']['start'],_0x22cdd5=_0x289d5e['markerRange']['end'],_0x24d718=_0x21dc12['model']['schema'];if(!_0x21ce95['isTouching'](_0x22cdd5)||!_0x21ce95['nodeAfter'])return;const _0x4fc6c0=_0x21ce95['nodeAfter'];if(_0x24d718['isBlock'](_0x4fc6c0)&&!_0x24d718['isLimit'](_0x4fc6c0)&&_0x24d718['checkChild'](_0x4fc6c0,'$text')){if(!_0x302407['consumable']['consume'](_0x289d5e['markerRange'],_0x58505c['name']))return;const _0x588775=_0x302407['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2e8581=_0x302407['mapper']['toViewPosition'](_0x22cdd5);_0x5955d9&&_0x16924b['activeMarkers']['includes'](_0x289d5e['markerName'])&&_0x302407['writer']['addClass']('ck-suggestion-marker--active',_0x588775),_0x302407['writer']['insert'](_0x2e8581,_0x588775),_0x302407['mapper']['bindElementToMarker'](_0x588775,_0x289d5e['markerName']);}};}class pt extends _0x26e52a{['afterInit'](){const _0x48c47f=this['editor'];if(!_0x48c47f['plugins']['has']('RemoveFormatEditing'))return;_0x48c47f['plugins']['get']('TrackChangesEditing')['_enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29e432=this['editor'];_0x29e432['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x54a847=>{if('formatBlock'!=_0x54a847['type']&&'formatInline'!=_0x54a847['type'])return;const {data:_0x30c708}=_0x54a847;return _0x30c708&&'removeFormat'==_0x30c708['commandName']?{'type':'format','content':o(_0x29e432['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x26e52a{['afterInit'](){const _0x51461d=this['editor'];if(!_0x51461d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3066cf=_0x51461d['plugins']['get']('TrackChangesEditing');_0x3066cf['enableCommand']('goToPreviousRestrictedEditingException'),_0x3066cf['enableCommand']('goToNextRestrictedEditingException');const _0x53d06c=_0x51461d['plugins']['get']('RestrictedEditingModeEditing');_0x53d06c['enableCommand']('trackChanges'),_0x53d06c['enableCommand']('acceptSuggestion'),_0x53d06c['enableCommand']('discardSuggestion'),_0x53d06c['enableCommand']('acceptAllSuggestions'),_0x53d06c['enableCommand']('discardAllSuggestions'),_0x53d06c['enableCommand']('acceptSelectedSuggestions'),_0x53d06c['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x26e52a{static get['requires'](){return[_0x188c20];}['init'](){const _0x24b349=this['editor'],_0x1b9be4=_0x24b349['plugins']['get']('TrackChangesEditing');_0x1b9be4['enableCommand']('shiftEnter'),_0x24b349['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x24b349),{'priority':'high'}),_0x24b349['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x24b349),{'priority':'high'}),_0x24b349['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x262d18,_0x3a35e3,_0x436f55)=>{_0x436f55['options']['showSuggestionHighlights']&&de(_0x24b349,{'showActiveMarker':!0x1})(_0x262d18,_0x3a35e3,_0x436f55);}),_0x1b9be4['_descriptionFactory']['registerElementLabel']('softBreak',_0x48a542=>o(_0x24b349['locale'],'ELEMENT_LINE_BREAK',_0x48a542));}}function de(_0x4cbdea,{showActiveMarker:_0x2153b6=!0x0}={}){return(_0x356780,_0x6420c7,_0x118612)=>{const _0x2e446d=_0x4cbdea['plugins']['get']('TrackChangesEditing');if(!_0x118612['consumable']['test'](_0x6420c7['markerRange'],_0x356780['name']))return;const _0x2f5d3f=_0x4cbdea['model'];for(const _0x3adb80 of _0x6420c7['markerRange']['getItems']()){if(!_0x3adb80['is']('element','softBreak'))continue;const _0x2fe9d0='deletion'==_0x6420c7['markerName']['split'](':')[0x1]?'merge':'split',_0xf4fcbb=_0x118612['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2fe9d0}),_0x5e5654=_0x118612['mapper']['toViewPosition'](_0x2f5d3f['createPositionBefore'](_0x3adb80));_0x2153b6&&_0x2e446d['activeMarkers']['includes'](_0x6420c7['markerName'])&&_0x118612['writer']['addClass']('ck-suggestion-marker--active',_0xf4fcbb),_0x118612['writer']['insert'](_0x5e5654,_0xf4fcbb),_0x118612['mapper']['bindElementToMarker'](_0xf4fcbb,_0x6420c7['markerName']);}};}class wt extends _0x26e52a{['afterInit'](){const _0x1224a5=this['editor'],_0x2e7f3f=_0x1224a5['model'],_0x5ee659=_0x1224a5['locale'];if(!_0x1224a5['plugins']['has']('StandardEditingModeEditing'))return;const _0xc779a5=_0x1224a5['plugins']['get']('TrackChangesEditing'),_0x50ef4e='restrictedEditingException',_0x8319c9=_0x1224a5['commands']['get'](_0x50ef4e);_0xc779a5['enableCommand'](_0x50ef4e,(_0x55fde5,_0x535db8={})=>{const _0x5db948=_0x2e7f3f['document']['selection'];if(_0x5db948['isCollapsed'])return void _0x55fde5(_0x535db8);const _0x4a7ddb=void 0x0!==_0x535db8['forceValue']?_0x535db8['forceValue']:!_0x8319c9['value'];_0x2e7f3f['change'](()=>{const _0x29f463=Array['from'](_0x5db948['getRanges']());for(const _0x57091c of _0x29f463){const _0x1cb8f6=_0x4a7ddb?[_0x57091c]:io(_0x50ef4e,_0x57091c,_0x2e7f3f);for(const _0x49370b of _0x1cb8f6)_0xc779a5['markInlineFormat'](_0x49370b,{'commandName':_0x50ef4e,'commandParams':[{'forceValue':_0x4a7ddb}]});}});}),_0xc779a5['_descriptionFactory']['registerDescriptionCallback'](_0x477de6=>{if('formatBlock'!=_0x477de6['type']&&'formatInline'!=_0x477de6['type'])return;const {data:_0x248f09}=_0x477de6;return _0x248f09&&_0x248f09['commandName']==_0x50ef4e?_0x248f09['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ee659,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5ee659,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x26e52a{['afterInit'](){const _0x51c1e4=this['editor'];if(!_0x51c1e4['plugins']['has']('Style')||!_0x51c1e4['plugins']['has']('DataSchema'))return;const _0x464306=_0x51c1e4['plugins']['get']('TrackChangesEditing'),_0x478cb3=_0x51c1e4['locale'],_0x281319=_0x51c1e4['config']['get']('style')||{},_0x85251d=_0x51c1e4['plugins']['get']('GeneralHtmlSupport'),_0x91e6d8=_0x51c1e4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x51c1e4['plugins']['get']('DataSchema'),_0x281319['definitions']);_0x464306['_enableDefaultAttributesIntegration']('style');const _0x25f8d2=new Set();for(const _0x30c137 of _0x91e6d8['block']){const _0x183353=_0x85251d['getGhsAttributeNameForElement'](_0x30c137['element']);_0x25f8d2['add'](_0x183353);}const _0x3fba48=new Set();for(const _0xced62c of _0x91e6d8['inline']){const _0x4ca882=_0x85251d['getGhsAttributeNameForElement'](_0xced62c['element']);_0x3fba48['add'](_0x4ca882);for(const _0x25e1c7 of _0xced62c['ghsAttributes'])_0x3fba48['add'](_0x25e1c7);}for(const _0x37baca of _0x25f8d2)_0x464306['_registerBlockAttribute'](_0x37baca),_0x464306['_descriptionFactory']['registerAttributeLabel'](_0x37baca,o(_0x478cb3,'FORMAT_STYLE'));for(const _0x490fd6 of _0x3fba48)_0x464306['_registerInlineAttribute'](_0x490fd6),_0x464306['_descriptionFactory']['registerAttributeLabel'](_0x490fd6,o(_0x478cb3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x235e85=this['editor'],_0x52a053=_0x235e85['locale'];_0x235e85['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5020d2=>{if('formatBlock'!=_0x5020d2['type']&&'formatInline'!=_0x5020d2['type'])return;const {data:_0x3ef780}=_0x5020d2;return _0x3ef780&&'style'===_0x3ef780['commandName']?_0x3ef780['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52a053,'*Set\x20format:*\x20%0',_0x3ef780['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x52a053,'*Remove\x20format:*\x20%0',_0x3ef780['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x26e52a{['afterInit'](){const _0x5c31bf=this['editor'],_0x19bb6c=_0x5c31bf['model']['document']['selection'];if(!_0x5c31bf['plugins']['has']('TableEditing'))return;const _0xde411b=_0x5c31bf['locale'],_0x39b845=_0x5c31bf['plugins']['get']('TrackChangesEditing'),_0x351c90=_0x5c31bf['plugins']['get']('TableUtils');_0x39b845['_descriptionFactory']['registerElementLabel']('table',_0x3536ce=>o(_0xde411b,'ELEMENT_TABLE',_0x3536ce)),this['_setupColumnsRowsFixing'](),_0x39b845['enableCommand']('insertTable'),_0x39b845['enableCommand']('selectTableRow'),_0x39b845['enableCommand']('selectTableColumn');for(const _0x3239fd of['insertTableRowAbove','insertTableRowBelow']){const _0x16be76=_0x5c31bf['commands']['get'](_0x3239fd);_0x39b845['enableCommand'](_0x3239fd,_0x40d3b4=>{_0x5c31bf['model']['change'](_0x1a4e00=>{_0x40d3b4();const _0x242ee2='above'===_0x16be76['order'],_0x3100e7=_0x351c90['getSelectionAffectedTableCells'](_0x19bb6c),_0x293f5e=_0x351c90['getRowIndexes'](_0x3100e7),_0x19541c=_0x242ee2?_0x293f5e['first']-0x1:_0x293f5e['last']+0x1,_0x42a35d=_0x3100e7[0x0]['findAncestor']('table'),_0x5d725e=_0x351c90['createTableWalker'](_0x42a35d,{'startRow':_0x19541c,'endRow':_0x19541c}),_0x3d06a9=Array['from'](_0x5d725e)['map'](_0xc87e0d=>_0x1a4e00['createRangeOn'](_0xc87e0d['cell']));_0x39b845['markMultiRangeInsertion'](_0x3d06a9,'tableRow');});});}for(const _0x214e04 of['insertTableColumnLeft','insertTableColumnRight']){const _0x132355=_0x5c31bf['commands']['get'](_0x214e04);_0x39b845['enableCommand'](_0x214e04,_0x57a793=>{_0x5c31bf['model']['change'](_0x3a659e=>{_0x57a793();const _0x38716b='left'===_0x132355['order'],_0x32ccd2=_0x351c90['getSelectionAffectedTableCells'](_0x19bb6c),_0x3e750a=_0x351c90['getColumnIndexes'](_0x32ccd2),_0x2478f7=_0x38716b?_0x3e750a['first']-0x1:_0x3e750a['last']+0x1,_0x3b2eef=_0x32ccd2[0x0]['findAncestor']('table'),_0x5ab288=_0x351c90['createTableWalker'](_0x3b2eef,{'startRow':0x0,'column':_0x2478f7,'includeAllSlots':!0x1}),_0x2c966a=Array['from'](_0x5ab288)['map'](_0x202f9f=>_0x3a659e['createRangeOn'](_0x202f9f['cell']));_0x39b845['markMultiRangeInsertion'](_0x2c966a,'tableColumn');});});}for(const _0x1eeddb of['removeTableRow','removeTableColumn']){const _0x44f512=_0x1eeddb['substr'](0xb),_0x41ead0=_0x44f512['toLowerCase'](),_0x5ce8a2=_0x41ead0['substr'](0x0,0x3)+'span',_0x399b01='table'+_0x44f512,_0x4f4de4='min'+_0x44f512,_0x3b6747='max'+_0x44f512;_0x39b845['enableCommand'](_0x1eeddb,()=>{_0x5c31bf['model']['change'](_0x42ce61=>{const _0x35a1ec=_0x351c90['getSelectionAffectedTableCells'](_0x19bb6c),_0x4bacb3=_0x35a1ec[0x0]['findAncestor']('table');let _0x48d323;if('removeTableRow'==_0x1eeddb){const _0x582ab3=_0x351c90['getRowIndexes'](_0x35a1ec);_0x48d323={'startRow':_0x582ab3['first'],'endRow':_0x582ab3['last'],'includeAllSlots':!0x0};}else{const _0x299b94=_0x351c90['getColumnIndexes'](_0x35a1ec);_0x48d323={'startColumn':_0x299b94['first'],'endColumn':_0x299b94['last'],'includeAllSlots':!0x0};}const _0x28c98c=_0x351c90['createTableWalker'](_0x4bacb3,_0x48d323),_0x188058=Array['from'](_0x28c98c)['map'](({cell:_0x27fe87})=>_0x27fe87),_0x5b91fd=Ee(_0x188058['filter'](_0x190ff3=>_0x190ff3['hasAttribute'](_0x5ce8a2))),_0x3dc51c=Ee(_0x188058['filter'](_0x46c933=>!_0x46c933['hasAttribute'](_0x5ce8a2)))['map'](_0x333664=>_0x42ce61['createRangeOn'](_0x333664)),_0x1cbca3=_0x39b845['markMultiRangeDeletion'](_0x3dc51c,_0x399b01);if(_0x1cbca3&&('tableRow'==_0x1cbca3['subType']||'tableColumn'==_0x1cbca3['subType'])){const _0xc00340=this['_getSuggestionCoords'](_0x1cbca3);for(const _0x2e52c6 of _0x5b91fd){const _0x47d524=_0x42ce61['createRangeOn'](_0x2e52c6),_0x267578=_0x351c90['getCellLocation'](_0x2e52c6),_0x5072f2=_0x2e52c6['getAttribute'](_0x5ce8a2)-0x1,_0x3f02a5=_0xc00340[_0x4f4de4],_0x461338=_0xc00340[_0x3b6747];_0x3f02a5<=_0x267578[_0x41ead0]&&_0x267578[_0x41ead0]+_0x5072f2<=_0x461338&&_0x1cbca3['addRange'](_0x47d524);}}});});}function _0x1fedf2(_0x1c7d0f){const _0x43b2cc=Array['from'](_0x19bb6c['getRanges']())['map'](_0x5b79df=>_0x577a36['fromRange'](_0x5b79df));_0x5c31bf['model']['change'](_0x250af7=>{const _0x2d6b03=_0x250af7['batch'];_0x1c7d0f=_0x1c7d0f['filter'](_0x311c48=>'$graveyard'!=_0x311c48['root']['rootName']),_0x250af7['setSelection'](_0x1c7d0f),_0x5c31bf['commands']['get']('removeTableRow')['refresh'](),_0x5c31bf['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5c31bf['model']['enqueueChange'](()=>{_0x5c31bf['model']['enqueueChange'](_0x2d6b03,_0x493693=>{const _0x4b2a3f=_0x43b2cc['filter'](_0x17830b=>'$graveyard'!=_0x17830b['root']['rootName']);_0x4b2a3f['length']>0x0&&_0x493693['setSelection'](_0x4b2a3f);for(const _0x384c5c of _0x43b2cc)_0x384c5c['detach']();});});});}function _0x347bec(_0x1e7f1f){_0x5c31bf['model']['change'](_0x4a225d=>{const _0x208e72=Array['from'](_0x19bb6c['getRanges']())['map'](_0x5c32ed=>_0x577a36['fromRange'](_0x5c32ed)),_0x2f2402=[];for(const _0x52824a of _0x1e7f1f)for(const _0x26847c of _0x52824a['getItems']({'shallow':!0x0}))_0x2f2402['push'](_0x26847c);for(const _0x43ed8c of _0x2f2402)'$graveyard'!=_0x43ed8c['root']['rootName']&&(_0x4a225d['setSelection'](_0x4a225d['createPositionAt'](_0x43ed8c,0x0)),_0x5c31bf['commands']['get']('removeTableColumn')['refresh'](),_0x5c31bf['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3e1e07=_0x208e72['filter'](_0x1a376e=>'$graveyard'!=_0x1a376e['root']['rootName']);_0x3e1e07['length']>0x0&&_0x4a225d['setSelection'](_0x3e1e07);for(const _0x8dde35 of _0x208e72)_0x8dde35['detach']();});}function _0x57798c(_0x3833a5,_0xd01eac){return _0xd01eac['every'](_0x25ecd6=>_0x3833a5['some'](_0x34f99a=>_0x34f99a['end']['isEqual'](_0x25ecd6['start'])||_0x25ecd6['end']['isEqual'](_0x34f99a['start'])));}function _0x282b5b(_0x296ef6,_0x5c9f5b){return _0x296ef6['some'](_0x2697a3=>_0x5c9f5b['some'](_0x4b721e=>_0x2697a3['end']['isTouching'](_0x4b721e['start'])));}_0x5c31bf['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x167294,_0x56cb0d,_0x5d43ea)=>{if(!_0x5d43ea['options']['showSuggestionHighlights'])return;const _0x4ae727=_0x56cb0d['item'];if(!_0x4ae727)return;const _0x27465=_0x5d43ea['mapper']['toViewElement'](_0x4ae727);function _0x4ccb21(_0x2ebe9a){return Array['isArray'](_0x2ebe9a)?_0x2ebe9a:[_0x2ebe9a];}_0x27465&&'tableCell'===_0x4ae727['name']&&_0x408711(_0x27465,_0x5d43ea['writer'],(_0x1c10dc,_0x9d4697,_0x12497f)=>_0x12497f['addClass'](_0x4ccb21(_0x9d4697['classes']),_0x1c10dc),(_0x68994e,_0x6d8d36,_0x26b002)=>_0x26b002['removeClass'](_0x4ccb21(_0x6d8d36['classes']),_0x68994e));},{'priority':'highest'}),_0x39b845['_descriptionFactory']['registerDescriptionCallback'](_0x58621b=>{if('insertion'!=_0x58621b['type']&&'deletion'!=_0x58621b['type'])return;const _0x5435b6=_0x58621b['getContainedElement']();if(null!=_0x5435b6&&_0x5435b6['is']('element','table')){if('insertion'==_0x58621b['type']){const _0x5107d7=_0x58621b['getItems']()['filter'](_0x206fb0=>_0x206fb0['is']('$textProxy'))['map'](_0x3c629f=>_0x3c629f['data']);if(_0x5107d7['length'])return{'type':'insertion','content':o(_0xde411b,'*Insert:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5107d7['join']('\x20')+'\x22'))};}if('deletion'==_0x58621b['type']){const _0x37673d=_0x58621b['getItems']()['filter'](_0x5c9a23=>_0x5c9a23['is']('$textProxy'))['map'](_0xaa13da=>_0xaa13da['data']);if(_0x37673d['length'])return{'type':'deletion','content':o(_0xde411b,'*Remove:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37673d['join']('\x20')+'\x22'))};}}}),_0x39b845['_descriptionFactory']['registerDescriptionCallback'](_0x5634ec=>{if('tableRow'==_0x5634ec['subType']){const _0x38b930=_0x5634ec['getItems']()['filter'](_0x4f55cd=>_0x4f55cd['is']('$textProxy'))['map'](_0xc2b767=>_0xc2b767['data']),_0x445841=this['_getSuggestionCoords'](_0x5634ec),_0x58cb69=_0x445841['maxRow']-_0x445841['minRow']+0x1;if('insertion'==_0x5634ec['type'])return _0x38b930['length']?{'type':'insertion','content':o(_0xde411b,'*Insert:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x58cb69,'\x22'+_0x38b930['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xde411b,'*Insert:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_ROW',_0x58cb69))};if('deletion'==_0x5634ec['type'])return _0x38b930['length']?{'type':'deletion','content':o(_0xde411b,'*Remove:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x58cb69,'\x22'+_0x38b930['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xde411b,'*Remove:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_ROW',_0x58cb69))};}if('tableColumn'==_0x5634ec['subType']){const _0x3b463d=_0x5634ec['getItems']()['filter'](_0x1c355e=>_0x1c355e['is']('$textProxy'))['map'](_0xd6411f=>_0xd6411f['data']),_0x45b691=this['_getSuggestionCoords'](_0x5634ec),_0x2d08eb=_0x45b691['maxColumn']-_0x45b691['minColumn']+0x1;if('insertion'==_0x5634ec['type'])return _0x3b463d['length']?{'type':'insertion','content':o(_0xde411b,'*Insert:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d08eb,'\x22'+_0x3b463d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xde411b,'*Insert:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_COLUMN',_0x2d08eb))};if('deletion'==_0x5634ec['type'])return _0x3b463d['length']?{'type':'deletion','content':o(_0xde411b,'*Remove:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d08eb,'\x22'+_0x3b463d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xde411b,'*Remove:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_COLUMN',_0x2d08eb))};}}),_0x39b845['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1fedf2),_0x39b845['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1fedf2),_0x39b845['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x347bec),_0x39b845['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x347bec),_0x39b845['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x57798c),_0x39b845['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x57798c),_0x39b845['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x282b5b),_0x39b845['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x282b5b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x56f731=this['editor'],_0x327146=_0x56f731['model']['document']['selection'];return(_0x340070,_0x39c9f7)=>{_0x56f731['model']['change'](_0x5930cd=>{const {commandName:_0x4caeea,commandParams:_0x57c545}=_0x39c9f7;let _0x4fda99=_0x340070[0x0]['end']['nodeBefore'];_0x57c545&&_0x57c545[0x0]&&!0x1===_0x57c545[0x0]['forceValue']&&(_0x4fda99=_0x340070[0x0]['start']['nodeAfter']);const _0x1b3ff2=_0x5930cd['createRangeIn'](_0x4fda99);if('$graveyard'==_0x1b3ff2['root']['rootName'])return;const _0x3a2c7d=Array['from'](_0x327146['getRanges']())['map'](_0x19b33c=>_0x577a36['fromRange'](_0x19b33c));_0x5930cd['setSelection'](_0x1b3ff2),_0x56f731['commands']['get'](_0x4caeea)['refresh'](),_0x57c545['push']({'forceDefaultExecution':!0x0}),_0x56f731['execute'](_0x4caeea,..._0x57c545);const _0x60045f=_0x3a2c7d['filter'](_0x41cc22=>'$graveyard'!=_0x41cc22['root']['rootName']);_0x60045f['length']>0x0&&_0x5930cd['setSelection'](_0x60045f);for(const _0x1def48 of _0x3a2c7d)_0x1def48['detach']();});};}['_getCoordsForCells'](_0x5999ad){const _0x5edd77=this['editor']['plugins']['get']('TableUtils');let _0x3a6d94=Number['MAX_SAFE_INTEGER'],_0x350983=Number['MIN_SAFE_INTEGER'],_0x22670f=Number['MAX_SAFE_INTEGER'],_0x5d8b9b=Number['MIN_SAFE_INTEGER'];for(const _0x24bda4 of _0x5999ad){if('$graveyard'==_0x24bda4['root']['rootName'])continue;const {row:_0x3ec9c2,column:_0x366eab}=_0x5edd77['getCellLocation'](_0x24bda4),_0x5780c8=_0x24bda4['hasAttribute']('rowspan')?_0x24bda4['getAttribute']('rowspan')-0x1:0x0,_0x5adf2f=_0x24bda4['hasAttribute']('colspan')?_0x24bda4['getAttribute']('colspan')-0x1:0x0;_0x3a6d94=_0x3ec9c2<_0x3a6d94?_0x3ec9c2:_0x3a6d94,_0x350983=_0x3ec9c2+_0x5780c8>_0x350983?_0x3ec9c2+_0x5780c8:_0x350983,_0x22670f=_0x366eab<_0x22670f?_0x366eab:_0x22670f,_0x5d8b9b=_0x366eab+_0x5adf2f>_0x5d8b9b?_0x366eab+_0x5adf2f:_0x5d8b9b;}return{'minRow':_0x3a6d94,'maxRow':_0x350983,'minColumn':_0x22670f,'maxColumn':_0x5d8b9b};}['_setupColumnsRowsFixing'](){const _0x341492=this['editor'],_0x4b7d35=_0x341492['plugins']['get']('TrackChangesEditing'),_0x21ccfe=_0x341492['plugins']['get']('TableUtils');_0x341492['model']['document']['on']('change:data',()=>{const _0x16f81b=Array['from'](_0x341492['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d2197,data:_0x476127}of _0x16f81b){const {group:_0x26e6d7,id:_0x2d3af0,subType:_0x3052ba}=_0x4b7d35['_splitMarkerName'](_0x1d2197);if('suggestion'!=_0x26e6d7)continue;if(null!=_0x476127['oldRange'])continue;const _0x53b48c=_0x4b7d35['getSuggestion'](_0x2d3af0);this['_tablePostFixingSubtypes']['includes'](_0x3052ba)&&this['_tableSuggestions']['add'](_0x53b48c);}},{'priority':'low'});const _0x461db2=(_0x5aa8a6,_0x15ed2e)=>{let _0x145a6f=!0x1;const _0x555d14=_0x15ed2e['createRangeOn'](_0x5aa8a6),_0x18e9ef=_0x5aa8a6['findAncestor']('table'),_0x9dfa8f=_0x21ccfe['getCellLocation'](_0x5aa8a6);for(const _0x51e32d of this['_tableSuggestions']){const _0x242103=_0x51e32d['subType'],_0x2f84a5=_0x242103['startsWith']('tablePaste'),_0xd0dfce=_0x242103['substr'](_0x2f84a5?0xa:0x5),_0x3eaa8a=_0xd0dfce['toLowerCase'](),_0x391f0a=_0x3eaa8a['substr'](0x0,0x3)+'span',_0x4c747e='min'+_0xd0dfce,_0x2e33b1='max'+_0xd0dfce;if(!_0x51e32d['isInContent'])continue;if(_0x18e9ef!=_0x51e32d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x51e32d['isIntersectingWithRange'](_0x555d14))continue;const _0x3655f7=_0x5aa8a6['hasAttribute'](_0x391f0a)?_0x5aa8a6['getAttribute'](_0x391f0a)-0x1:0x0,_0x1aef64=this['_getSuggestionCoords'](_0x51e32d),_0xf76310=_0x1aef64[_0x4c747e],_0x3fce0b=_0x1aef64[_0x2e33b1];_0xf76310<=_0x9dfa8f[_0x3eaa8a]&&_0x9dfa8f[_0x3eaa8a]+_0x3655f7<=_0x3fce0b&&(_0x51e32d['addRange'](_0x555d14),_0x145a6f=!0x0);}return _0x145a6f;};_0x341492['model']['document']['registerPostFixer'](_0x5a07bd=>{let _0x5bb7b3=!0x1;for(const _0x45fa66 of _0x341492['model']['document']['differ']['getChanges']())if('insert'==_0x45fa66['type']){if('tableRow'==_0x45fa66['name']){for(const _0x56d183 of _0x45fa66['position']['nodeAfter']['getChildren']())_0x5bb7b3=_0x5bb7b3||_0x461db2(_0x56d183,_0x5a07bd);}else'tableCell'==_0x45fa66['name']&&(_0x5bb7b3=_0x5bb7b3||_0x461db2(_0x45fa66['position']['nodeAfter'],_0x5a07bd));}return _0x5bb7b3;});}['_getSuggestionCoords'](_0x361c06){return this['_getCoordsForCells'](_0x361c06['getRanges']()['map'](_0x13a7d0=>_0x13a7d0['start']['nodeAfter']));}constructor(_0xaf6d23){super(_0xaf6d23),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x308494){return Array['from'](new Set(_0x308494)['values']());}class St extends _0x26e52a{static get['requires'](){return[jt];}['afterInit'](){const _0x2d1e2a=this['editor'],_0x81be1c=_0x2d1e2a['model']['document']['selection'],_0x5c6c6d=_0x2d1e2a['locale'];if(!_0x2d1e2a['plugins']['has']('TableEditing'))return;const _0x40585c=_0x2d1e2a['plugins']['get']('TrackChangesEditing'),_0x68dc72=_0x2d1e2a['plugins']['get']('TableUtils'),_0x3c9b35=_0x2d1e2a['plugins']['get'](jt);_0x3c9b35['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x40585c['enableCommand']('mergeTableCells',()=>{const _0x1f8a42=_0x68dc72['getSelectionAffectedTableCells'](_0x2d1e2a['model']['document']['selection']);_0x2d1e2a['model']['change'](()=>{_0x40585c['markMultiRangeBlockFormat'](_0x1f8a42,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d1e2a['commands']['get']('mergeTableCells')['on']('execute',(_0x18213c,_0x72de8)=>{_0x2d1e2a['commands']['get']('trackChanges')['value']&&(_0x72de8['length']>0x0&&_0x72de8[_0x72de8['length']-0x1]&&_0x72de8[_0x72de8['length']-0x1]['forceDefaultExecution']||_0x40585c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x18213c['stop']());},{'priority':'highest'});for(const _0x592013 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x83c86=_0x2d1e2a['commands']['get'](_0x592013);_0x40585c['enableCommand'](_0x592013,()=>{const _0x11f0d6=_0x2d1e2a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4fb4ea=>_0x4fb4ea['is']('element','tableCell')),_0x21a4ca=_0x83c86['value'];_0x2d1e2a['model']['change'](()=>{_0x40585c['markMultiRangeBlockFormat']([_0x11f0d6,_0x21a4ca],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xb65835 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x39102a=_0x2d1e2a['commands']['get'](_0xb65835);_0x40585c['enableCommand'](_0xb65835,()=>{const _0x15a77a=_0x68dc72['getSelectionAffectedTableCells'](_0x2d1e2a['model']['document']['selection'])[0x0],_0x29b26d=_0x15a77a['findAncestor']('table'),{column:_0x8c220b,row:_0x532fbf}=_0x68dc72['getCellLocation'](_0x15a77a);let _0x3ffe27=[];if('horizontally'==_0x39102a['direction']){const _0x102510=_0x68dc72['createTableWalker'](_0x29b26d,{'startRow':_0x532fbf,'endRow':_0x532fbf,'includeAllSlots':!0x0});_0x3ffe27=Array['from'](_0x102510)['map'](_0x2cf75c=>_0x2cf75c['cell']);}else{const _0x34850a=_0x68dc72['createTableWalker'](_0x29b26d,{'column':_0x8c220b,'includeAllSlots':!0x0});_0x3ffe27=Array['from'](_0x34850a)['map'](_0x5bf056=>_0x5bf056['cell']);}_0x2d1e2a['model']['change'](_0x1da824=>{_0x40585c['markBlockFormat'](_0x1da824['createRangeOn'](_0x15a77a),{'commandName':_0xb65835,'commandParams':[]},_0x3ffe27,_0xb65835);});});}_0x40585c['_descriptionFactory']['registerDescriptionCallback'](_0x5b07c9=>{if('formatBlock'!=_0x5b07c9['type']&&'formatInline'!=_0x5b07c9['type'])return;const {data:_0x1d7a7b}=_0x5b07c9;return _0x1d7a7b&&'mergeTableCells'==_0x1d7a7b['commandName']?{'type':'format','content':o(_0x5c6c6d,'*Merge\x20cells*')}:void 0x0;}),_0x40585c['_descriptionFactory']['registerDescriptionCallback'](_0x682b3b=>{if('formatBlock'!=_0x682b3b['type']&&'formatInline'!=_0x682b3b['type'])return;const {data:_0x54c2f3}=_0x682b3b;return _0x54c2f3?'splitTableCellVertically'==_0x54c2f3['commandName']?{'type':'format','content':o(_0x5c6c6d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x54c2f3['commandName']?{'type':'format','content':o(_0x5c6c6d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1594b5=_0x3c9b35['_acceptFormatSuggestionCallbackFactory']();for(const _0x3e44ec of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x40585c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e44ec,'accept',_0x1594b5);for(const _0x1ca1ca of['splitTableCellVertically','splitTableCellHorizontally'])_0x40585c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ca1ca,'accept',_0x1594b5);_0x40585c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3d12f5=>{_0x2d1e2a['model']['change'](_0x358087=>{const _0x176de9=Array['from'](_0x81be1c['getRanges']())['map'](_0x56b9fe=>_0x577a36['fromRange'](_0x56b9fe));_0x358087['setSelection'](_0x3d12f5),_0x2d1e2a['commands']['get']('mergeTableCells')['refresh'](),_0x2d1e2a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x40ddb5=_0x176de9['filter'](_0x399730=>'$graveyard'!=_0x399730['root']['rootName']);_0x40ddb5['length']>0x0&&_0x358087['setSelection'](_0x40ddb5);for(const _0x3abb42 of _0x176de9)_0x3abb42['detach']();});});for(const _0x407add of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x922166=_0x2d1e2a['commands']['get'](_0x407add);_0x922166['on']('set:isEnabled',(_0x1b5705,_0x1e8c62,_0x5538c7)=>{if(_0x5538c7){const _0x6fe01d=_0x2d1e2a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38d048=>_0x38d048['is']('element','tableCell'));this['_areMergableCells'](_0x922166['value'],_0x6fe01d)||(_0x1b5705['return']=!0x1,_0x1b5705['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x49d59a=this['editor']['commands']['get']('mergeTableCells'),_0x330a61=this['editor']['plugins']['get']('TableUtils');if(!_0x49d59a['isEnabled'])return!0x1;const _0xfed99d=_0x330a61['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x519a39 of _0xfed99d)for(const _0xde8d24 of _0xfed99d)if(_0x519a39!=_0xde8d24&&!this['_areMergableCells'](_0x519a39,_0xde8d24))return!0x1;return!0x0;}['_areMergableCells'](_0x45bf12,_0x4bff06){const _0x3bc995=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20f035=this['editor']['model']['createRangeOn'](_0x45bf12),_0x4839e9=this['editor']['model']['createRangeOn'](_0x4bff06),_0x464209=new Set(),_0x165e48=new Set();for(const _0x2f556b of _0x3bc995['getSuggestions']())if(('insertion'==_0x2f556b['type']||'deletion'==_0x2f556b['type']||'mergeTableCells'==_0x2f556b['subType'])&&_0x2f556b['isInContent']){for(const _0x1e9d16 of _0x2f556b['getRanges']())_0x1e9d16['containsRange'](_0x20f035,!0x0)&&_0x464209['add'](_0x2f556b['type']+':'+_0x2f556b['author']['id']),_0x1e9d16['containsRange'](_0x4839e9,!0x0)&&_0x165e48['add'](_0x2f556b['type']+':'+_0x2f556b['author']['id']);}if(_0x464209['size']!=_0x165e48['size'])return!0x1;for(const _0x116973 of _0x464209)if(!_0x165e48['has'](_0x116973))return!0x1;return!0x0;}}class At extends _0x26e52a{static get['requires'](){return[jt];}['afterInit'](){const _0x5a07ec=this['editor'];if(!_0x5a07ec['plugins']['has']('TableEditing'))return;const _0x17c9ae=_0x5a07ec['locale'],_0x2b7bd5=_0x5a07ec['plugins']['get']('TrackChangesEditing');_0x2b7bd5['_enableDefaultAttributesIntegration']('setTableRowHeader',[],['headingRows']),_0x2b7bd5['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],['headingColumns']),_0x2b7bd5['_descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x17c9ae,'FORMAT_HEADER_ROW')),_0x2b7bd5['_descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x17c9ae,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x58ce25=this['editor']['plugins']['get']('TrackChangesEditing'),_0x90dda7=this['editor']['plugins']['get']('TableUtils'),_0x5a1f20=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x45a467({showActiveMarker:_0x5f01b7=!0x0,setDataAttribute:_0x4b13d5=!0x0}={}){return(_0x21b89d,_0x47a74d,_0x588089)=>{const {type:_0x5378ae,id:_0x40f2be}=_0x58ce25['_splitMarkerName'](_0x47a74d['markerName']),_0x3df115=_0x58ce25['getSuggestion'](_0x40f2be),_0x153bd0=_0x3df115['data'];if('formatBlock'!=_0x3df115['type']||!_0x153bd0||'setTableColumnHeader'!=_0x153bd0['commandName'])return;if(_0x47a74d['item'])return void _0x21b89d['stop']();if(!_0x588089['consumable']['consume'](_0x47a74d['markerRange'],_0x21b89d['name']))return;const _0x20ee4c=_0x47a74d['markerRange']['start']['nodeAfter'],_0x1c2964=_0x47a74d['markerRange']['end']['nodeBefore'],_0xe187ba=_0x20ee4c['parent']['parent'],{column:_0x5cf514}=_0x90dda7['getCellLocation'](_0x20ee4c),{column:_0x3041f7}=_0x90dda7['getCellLocation'](_0x1c2964);for(let _0x435c09=_0x5cf514;_0x435c09<=_0x3041f7;_0x435c09++){const _0x2fa6df=_0x90dda7['createTableWalker'](_0xe187ba,{'column':_0x435c09,'includeAllSlots':!0x1});for(const _0x5a721a of _0x2fa6df){const _0x490eeb=_0x5a721a['cell'],_0x40aef0=_0x588089['mapper']['toViewElement'](_0x490eeb);_0x588089['writer']['addClass']('ck-suggestion-marker-'+_0x5378ae,_0x40aef0),_0x4b13d5&&_0x588089['writer']['setAttribute']('data-suggestion',_0x40f2be,_0x40aef0),_0x588089['mapper']['bindElementToMarker'](_0x40aef0,_0x47a74d['markerName']),_0x5f01b7&&(_0x58ce25['activeMarkers']['includes'](_0x47a74d['markerName'])?_0x588089['writer']['addClass']('ck-suggestion-marker--active',_0x40aef0):_0x588089['writer']['removeClass']('ck-suggestion-marker--active',_0x40aef0));}}};}_0x58ce25['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5a1f20),_0x58ce25['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5a1f20),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x45a467(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x147e06,_0x1c255e,_0xe286d3)=>{_0xe286d3['options']['showSuggestionHighlights']&&_0x45a467({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x147e06,_0x1c255e,_0xe286d3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x44c69e,_0x396329,_0x4d2865)=>{const {type:_0x2289c7,id:_0x30e6e1}=_0x58ce25['_splitMarkerName'](_0x396329['markerName']),_0x47f712=_0x58ce25['getSuggestion'](_0x30e6e1),_0xc1e3d4=_0x47f712['data'];if('formatBlock'!=_0x47f712['type']||!_0xc1e3d4||'setTableColumnHeader'!=_0xc1e3d4['commandName'])return;const _0x321d38=_0x4d2865['mapper']['markerNameToElements'](_0x396329['markerName']);if(_0x321d38){for(const _0xae1df0 of _0x321d38)_0x4d2865['writer']['removeClass']('ck-suggestion-marker-'+_0x2289c7,_0xae1df0),_0x4d2865['writer']['removeClass']('ck-suggestion-marker--active',_0xae1df0),_0x4d2865['writer']['removeAttribute']('data-suggestion',_0xae1df0),_0x4d2865['mapper']['unbindElementFromMarkerName'](_0xae1df0,_0x396329['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f5c6c=this['editor'],_0x42cf9b=_0x4f5c6c['locale'];function _0x42c5c8(_0x3507d2){return{'type':'format','content':o(_0x42cf9b,'*Format:*\x20%0',_0x3507d2)};}_0x4f5c6c['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x34c49d=>{if('formatBlock'!=_0x34c49d['type'])return;const {data:_0x3ce002}=_0x34c49d;if(_0x3ce002){if('setTableRowHeader'==_0x3ce002['commandName']){const _0x4e2246=_0x3ce002['commandParams'][0x0]['forceValue'];return _0x42c5c8(o(_0x42cf9b,_0x4e2246?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3ce002['commandName']){const _0x36db98=_0x3ce002['commandParams'][0x0]['forceValue'];return _0x42c5c8(o(_0x42cf9b,_0x36db98?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x44bd49=>[_0x44bd49,null]));class It extends _0x26e52a{static get['requires'](){return[jt];}['afterInit'](){const _0x4a8200=this['editor'];if(!_0x4a8200['plugins']['has']('TableClipboard'))return;const _0x594ea7=_0x4a8200['plugins']['get']('TrackChangesEditing'),_0x576e3c=_0x4a8200['plugins']['get']('TableUtils'),_0xb8faf7=_0x4a8200['plugins']['get'](jt),_0x315c2f=_0x4a8200['plugins']['get']('TableClipboard');_0xb8faf7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4a8200['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4a8200['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1732f1=null;_0x4a8200['model']['on']('insertContent',(_0x16ec12,_0x182e0a)=>{const [_0x2ad14f,_0x4d8308]=_0x182e0a,_0x2cd416=_0x182e0a[_0x182e0a['length']-0x1];_0x2cd416&&_0x2cd416['forceDefaultExecution']||_0x594ea7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x33b688,_0xa940a6,_0x2eef5b,_0x10e824,_0x5882d5){if(_0xa940a6&&!_0xa940a6['is']('documentSelection'))return!0x1;const _0x35291a=_0x5882d5['getTableIfOnlyTableInContent'](_0x33b688,_0x2eef5b);if(!_0x35291a||!he(_0x35291a,void 0x0,_0x10e824))return!0x1;const _0x183a57=_0x10e824['getSelectionAffectedTableCells'](_0x2eef5b['document']['selection']);if(!_0x183a57['length'])return!0x1;const _0x4e360b=_0x183a57[0x0]['findAncestor']('table'),_0x5bd736=_0x10e824['getRowIndexes'](_0x183a57),_0x5dde83=_0x10e824['getColumnIndexes'](_0x183a57),_0x390bf4={'startRow':_0x5bd736['first'],'endRow':_0x5bd736['last'],'startColumn':_0x5dde83['first'],'endColumn':_0x5dde83['last']};return 0x1==_0x183a57['length']&&(_0x390bf4['endRow']+=_0x10e824['getRows'](_0x35291a)-0x1,_0x390bf4['endColumn']+=_0x10e824['getColumns'](_0x35291a)-0x1),he(_0x4e360b,_0x390bf4,_0x10e824);}(_0x2ad14f,_0x4d8308,_0x4a8200['model'],_0x576e3c,_0x315c2f)&&(_0x16ec12['stop'](),_0x1732f1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a8200['model']['change'](()=>{_0x4a8200['model']['insertContent'](_0x182e0a[0x0],_0x182e0a[0x1],_0x182e0a[0x2],{'forceDefaultExecution':!0x0});const _0x585b6b=_0x1702d8(),{rowInsertionRanges:_0x2288bc,columnInsertionRanges:_0x6b3d29,insertionRanges:_0x3bfa54,deletionRanges:_0x1063d,cells:_0x54b8c7}=_0x1732f1;_0x2288bc['length']&&_0x594ea7['markMultiRangeInsertion'](_0x2288bc,'tablePasteRow',{'tablePasteChainId':_0x585b6b}),_0x6b3d29['length']&&_0x594ea7['markMultiRangeInsertion'](_0x6b3d29,'tablePasteColumn',{'tablePasteChainId':_0x585b6b}),_0x3bfa54['length']&&(_0x594ea7['markMultiRangeInsertion'](_0x3bfa54,'tablePaste',{'tablePasteChainId':_0x585b6b,'skipNestingCheck':!0x0}),_0x3bfa54['forEach'](_0x2ad842=>{var _0x1af46a;return null===(_0x1af46a=_0x2ad842['detach'])||void 0x0===_0x1af46a?void 0x0:_0x1af46a['call'](_0x2ad842);})),_0x1063d['length']&&(_0x594ea7['markMultiRangeDeletion'](_0x1063d,'tablePaste',{'tablePasteChainId':_0x585b6b,'skipNestingCheck':!0x0}),_0x1063d['forEach'](_0x5af094=>{var _0x48fb07;return null===(_0x48fb07=_0x5af094['detach'])||void 0x0===_0x48fb07?void 0x0:_0x48fb07['call'](_0x5af094);}));const _0x5605e6=_0x594ea7['markMultiRangeBlockFormat'](_0x54b8c7['map'](({element:_0x886834})=>_0x886834),{'formatGroupId':_0x1702d8()},[],'tablePasteCell',{'tablePasteChainId':_0x585b6b});if(_0x5605e6){const _0x439153=_0x5605e6['getMarkers'](),_0x999d42=[];for(const {element:_0x1e2a85,attributes:_0x2e125d}of _0x54b8c7){if(!_0x2e125d)continue;const _0x146282=_0x4a8200['model']['createRangeOn'](_0x1e2a85),_0x20e3d4=_0x439153['find'](_0x4fee8d=>_0x4fee8d['getRange']()['isEqual'](_0x146282));_0x20e3d4&&_0x999d42['push']([_0x20e3d4['name'],_0x2e125d]);}_0x999d42['length']&&_0x5605e6['setAttribute']('markerAttributes',Object['fromEntries'](_0x999d42));}_0x1732f1=null;}));},{'priority':_0x3cf857['high']+0xa}),_0x4a8200['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3a8738,_0x4cc421)=>{const [_0x4b616a,_0xd86f38,,_0x2c848d]=_0x4cc421;if(!_0x1732f1)return;_0x3a8738['stop']();const _0x17e804=_0x4b616a['cell'],_0x3d3628=_0xd86f38,_0x3deb21=Pe(_0x17e804),_0x3bc702=Pe(_0x3d3628);_0x3a8738['return']=_0x17e804;let _0x473003=null,_0x38efe5=null;if(_0x3bc702||_0x3deb21){if(_0x3deb21&&!_0x3bc702){_0x2c848d['remove'](_0x17e804['getChild'](0x0));for(const _0x4afa78 of Array['from'](_0x3d3628['getChildren']()))_0x2c848d['insert'](_0x4afa78,_0x17e804,'end');const _0x5b4d2e=_0x1732f1['rowInsertionIndexes']['includes'](_0x4b616a['row']),_0x30db51=_0x1732f1['columnInsertionIndexes']['includes'](_0x4b616a['column']);_0x5b4d2e||_0x30db51||(_0x473003=_0x577a36['fromRange'](_0x2c848d['createRangeIn'](_0x17e804)));}else _0x3bc702&&!_0x3deb21&&(_0x38efe5=_0x2c848d['createRangeIn'](_0x17e804));}else{const _0x116e70=_0x2c848d['createElement']('tableCellSuggestion'),_0x1acc1a=_0x2c848d['createElement']('tableCellSuggestion');_0x2c848d['wrap'](_0x2c848d['createRangeIn'](_0x17e804),_0x1acc1a),_0x2c848d['insert'](_0x116e70,_0x17e804,0x0);for(const _0x551fff of Array['from'](_0x3d3628['getChildren']()))_0x2c848d['insert'](_0x551fff,_0x116e70,'end');_0x473003=_0x577a36['fromRange'](_0x2c848d['createRangeOn'](_0x116e70)),_0x38efe5=_0x577a36['fromRange'](_0x2c848d['createRangeOn'](_0x1acc1a));}const _0x4f59a9=Array['from'](_0x3d3628['getAttributes']())['filter'](([_0x1020e7])=>ge['includes'](_0x1020e7));_0x1732f1['cells']['push']({'element':_0x17e804,'attributes':_0x4f59a9['length']?Object['fromEntries'](_0x4f59a9):null}),_0x473003&&_0x1732f1['insertionRanges']['push'](_0x473003),_0x38efe5&&_0x1732f1['deletionRanges']['push'](_0x38efe5);},{'priority':'high'}),_0x576e3c['on']('insertColumns',(_0x372a75,_0x3f2041)=>{const [_0x19caf3,_0x430051={}]=_0x3f2041;if(!_0x1732f1)return;const _0x2fb75f=_0x430051['at']||0x0,_0x469ded=_0x430051['columns']||0x1;_0x1732f1['columnInsertionIndexes']=new Array(_0x469ded)['fill'](_0x2fb75f)['map']((_0x326cd2,_0x28c83c)=>_0x326cd2+_0x28c83c);for(const {cell:_0x5933a1}of _0x576e3c['createTableWalker'](_0x19caf3,{'startColumn':_0x2fb75f,'endColumn':_0x2fb75f+_0x469ded-0x1}))_0x1732f1['columnInsertionRanges']['push'](_0x4a8200['model']['createRangeOn'](_0x5933a1));},{'priority':'low'}),_0x576e3c['on']('insertRows',(_0x38673d,_0x33ba0f)=>{const [_0x502057,_0x368da5={}]=_0x33ba0f;if(!_0x1732f1)return;const _0x1f15f5=_0x368da5['at']||0x0,_0x21a35b=_0x368da5['rows']||0x1;_0x1732f1['rowInsertionIndexes']=new Array(_0x21a35b)['fill'](_0x1f15f5)['map']((_0x2d7d90,_0x786eaa)=>_0x2d7d90+_0x786eaa);for(const {cell:_0x2df773}of _0x576e3c['createTableWalker'](_0x502057,{'startRow':_0x1f15f5,'endRow':_0x1f15f5+_0x21a35b-0x1}))_0x1732f1['rowInsertionRanges']['push'](_0x4a8200['model']['createRangeOn'](_0x2df773));},{'priority':'low'}),_0x594ea7['_descriptionFactory']['registerDescriptionCallback'](_0x29737e=>{if(_0x29737e['subType']&&_0x29737e['subType']['startsWith']('tablePaste'))return _0x29737e['previous']?{}:{'type':'insertion','content':o(_0x4a8200['locale'],'*Replace\x20table\x20cells*')};});const _0x5465a6=()=>!0x1;for(const _0xc87e8c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x594ea7['_suggestionFactory']['registerCustomCallback']('insertion',_0xc87e8c,'join',_0x5465a6),_0x594ea7['_suggestionFactory']['registerCustomCallback']('deletion',_0xc87e8c,'join',_0x5465a6),_0x594ea7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xc87e8c,'join',_0x5465a6);_0x594ea7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5465a6),_0x594ea7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5a304a,_0x19aaf5,_0x48df79)=>{const _0x320d02=_0x5a304a['map'](_0x490961=>_0x490961['getContainedElement']())['filter'](_0x176b02=>_0x176b02),_0x175ad6=new Map(_0x320d02['map'](_0x4aaaea=>[_0x4aaaea,null]));if(_0x1732f1){for(const {element:_0x4fd86a,attributes:_0x268d12}of _0x1732f1['cells'])_0x268d12&&_0x175ad6['set'](_0x4fd86a,_0x268d12);}else{if(_0x48df79&&_0x48df79['markerAttributes'])for(const [_0xdcb20f,_0x2c7290]of Object['entries'](_0x48df79['markerAttributes'])){const _0x5dae9d=_0x4a8200['model']['markers']['get'](_0xdcb20f),_0xdcefb2=_0x5dae9d?_0x5dae9d['getRange']()['getContainedElement']():null;_0xdcefb2&&_0x175ad6['set'](_0xdcefb2,_0x2c7290);}}_0x4a8200['model']['change'](_0xe230a4=>{for(const [_0x21724d,_0x2ef428]of _0x175ad6)_0xe230a4['setAttributes']({...Ce,..._0x2ef428},_0x21724d);});});const _0x217d07=(_0x332283,_0x4e469a)=>{_0x594ea7['_suggestionFactory']['registerCustomCallback'](_0x332283,'tablePaste',_0x4e469a,(_0x2d0082,_0x246c72,_0x51daa6)=>{_0x4a8200['model']['change'](_0x50449b=>{const _0x39b5d3=[];for(const _0xdda8d1 of _0x2d0082){const _0x4829bb=_0xdda8d1['start']['nodeAfter'];_0x4829bb['is']('element','tableCellSuggestion')&&_0x39b5d3['push'](_0x4829bb);}_0x594ea7['_suggestionFactory']['getSuggestionCallback'](_0x332283,null,_0x4e469a)(_0x2d0082,_0x246c72,_0x51daa6);for(const _0x3a0710 of _0x39b5d3)'$graveyard'!=_0x3a0710['root']['rootName']&&_0x50449b['unwrap'](_0x3a0710);});});};_0x217d07('insertion','accept'),_0x217d07('insertion','discard'),_0x217d07('deletion','accept'),_0x217d07('deletion','discard'),_0x594ea7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5e29b3=>{const _0x28f6d2=_0x5e29b3['map'](_0x42f39f=>_0x42f39f['getContainedElement']()),_0x132664=_0x28f6d2[0x0]['findAncestor']('table'),{minRow:_0x2131c9,maxRow:_0x27eca4}=_0xb8faf7['_getCoordsForCells'](_0x28f6d2);_0x576e3c['removeRows'](_0x132664,{'at':_0x2131c9,'rows':_0x27eca4-_0x2131c9+0x1});}),_0x594ea7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5e2b15=>{const _0x1449e4=_0x5e2b15['map'](_0x13eea5=>_0x13eea5['getContainedElement']()),_0x148ff3=_0x1449e4[0x0]['findAncestor']('table'),{minColumn:_0x4a4763,maxColumn:_0x4a9f12}=_0xb8faf7['_getCoordsForCells'](_0x1449e4);_0x576e3c['removeColumns'](_0x148ff3,{'at':_0x4a4763,'columns':_0x4a9f12-_0x4a4763+0x1});});const _0xeb26ac=(_0x2e091d,_0x3eb5ca)=>{if(!_0x3eb5ca['subType']||!_0x3eb5ca['subType']['startsWith']('tablePaste'))return;const _0x204605=_0x3eb5ca['attributes']['tablePasteChainId'],_0x59ddbb=_0x594ea7['getSuggestions']()['filter'](_0x51ca98=>_0x51ca98['isInContent']&&_0x51ca98['attributes']&&_0x51ca98['attributes']['tablePasteChainId']==_0x204605);_0x59ddbb['length']&&_0x3eb5ca['getAllAdjacentSuggestions']()['length']!=_0x59ddbb['length']&&_0x59ddbb['reduce']((_0x4dbe2c,_0x1ea8d0)=>(_0x4dbe2c['next']=_0x1ea8d0,_0x1ea8d0['previous']=_0x4dbe2c,_0x1ea8d0));};function _0x57f8cc(_0x9738a2,_0x9d380f=!0x0){const {id:_0x5d663d}=_0x594ea7['_splitMarkerName'](_0x9738a2['markerName']),_0x307306=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x35d9da=_0x594ea7['activeMarkers']['includes'](_0x9738a2['markerName']);return _0x35d9da&&_0x307306['push']('ck-suggestion-marker--active'),{'classes':_0x307306,'attributes':{'data-suggestion':_0x5d663d},'priority':_0x35d9da&&_0x9d380f?0xbc2:0xbb8};}_0x594ea7['on']('suggestionLoaded',_0xeb26ac,{'priority':'high'}),_0x594ea7['on']('suggestionUnloaded',_0xeb26ac,{'priority':'high'}),_0x4a8200['model']['document']['registerPostFixer'](()=>{let _0x3fbf43=!0x1;const _0x46b446=Array['from'](_0x4a8200['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43c52e,data:_0x3d4ddc}of _0x46b446){const {group:_0x50a990,type:_0x423051,id:_0x2bb371}=_0x594ea7['_splitMarkerName'](_0x43c52e);if('suggestion'!=_0x50a990||'deletion'!=_0x423051||_0x3d4ddc['oldRange'])continue;if(!_0x594ea7['hasSuggestion'](_0x2bb371))continue;const _0x4aedd1=_0x594ea7['getSuggestion'](_0x2bb371)['getRanges'](),_0x22f2f0=_0x4a8200['plugins']['get']('Users')['me'];for(const _0x39cfc3 of _0x594ea7['getSuggestions']()){if(!_0x39cfc3['isInContent']||_0x39cfc3['author']!=_0x22f2f0)continue;if('formatBlock'!=_0x39cfc3['type']||'tablePasteCell'!=_0x39cfc3['subType'])continue;if(_0x39cfc3['getRanges']()['every'](_0x1d8dca=>_0x4aedd1['some'](_0x2ce9d0=>_0x2ce9d0['containsRange'](_0x1d8dca,!0x0)))){for(const _0x31b965 of _0x39cfc3['getAllAdjacentSuggestions']())_0x31b965['isInContent']&&(_0x31b965['discard'](),_0x3fbf43=!0x0);}}}return _0x3fbf43;}),_0x4a8200['model']['document']['registerPostFixer'](_0x3c2526=>{const _0x5f09c4=_0x4a8200['commands']['get']('redo');if(!_0x5f09c4||!_0x5f09c4['_createdBatches']['has'](_0x3c2526['batch']))return!0x1;let _0x4eeca5=!0x1;const _0x5c3d54=_0x4a8200['plugins']['get']('Users')['me'],_0x54b280=_0x4a8200['model']['document']['differ']['getChanges'](),_0x1f653f=Array['from'](_0x4a8200['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x503a8a,data:_0x52386c})=>{const {group:_0x51271d,subType:_0x5a635c,authorId:_0x4e8521}=_0x594ea7['_splitMarkerName'](_0x503a8a);return'suggestion'==_0x51271d&&'tablePaste'==_0x5a635c&&_0x4e8521==_0x5c3d54['id']&&!_0x52386c['oldRange'];});for(const _0x142d53 of _0x54b280){if('insert'!=_0x142d53['type']||'tableCellSuggestion'!=_0x142d53['name']||0x1!=_0x142d53['length'])continue;const _0x21cafa=_0x3c2526['createRange'](_0x142d53['position'],_0x142d53['position']['getShiftedBy'](0x1));if(!_0x1f653f['find'](({data:_0x1d80b5})=>_0x1d80b5['newRange']['isEqual'](_0x21cafa))){for(const {name:_0x5ea9bd,data:_0x44063d}of _0x1f653f)if(_0x21cafa['containsRange'](_0x44063d['newRange'])){_0x3c2526['updateMarker'](_0x5ea9bd,{'range':_0x21cafa}),_0x4eeca5=!0x0;break;}}}return _0x4eeca5;}),_0x4a8200['model']['document']['registerPostFixer'](_0x161af1=>{let _0x103ebe=!0x1;const _0x4ebb21=_0x4a8200['plugins']['get']('Users')['me'],_0x425d2b=_0x594ea7['getSuggestions']()['filter'](_0x16e482=>_0x16e482['isInContent']&&_0x16e482['author']==_0x4ebb21),_0x3f2d01=new Set(),_0x2df300=new Set();for(const _0x2de386 of _0x425d2b)if('tablePaste'==_0x2de386['subType'])for(const _0x53d9ff of _0x2de386['getMarkers']()){const _0x5406fe=_0x53d9ff['getRange']()['getContainedElement']();if(_0x5406fe){if(_0x5406fe['is']('element','tableCellSuggestion')&&Pe(_0x5406fe)){_0x2de386['removeMarker'](_0x53d9ff['name']),_0x3f2d01['add'](_0x5406fe),_0x103ebe=!0x0;const _0x448c60=_0x5406fe['nextSibling'],_0x5d34eb=_0x5406fe['previousSibling'],_0x488db8=_0x448c60&&_0x448c60['is']('element','tableCellSuggestion'),_0x26ede2=_0x5d34eb&&_0x5d34eb['is']('element','tableCellSuggestion');_0x488db8&&!_0x3f2d01['has'](_0x448c60)&&_0x2df300['add'](_0x448c60),_0x26ede2&&!_0x3f2d01['has'](_0x5d34eb)&&_0x2df300['add'](_0x5d34eb);}else _0x5406fe['is']('element','paragraph')&&_0x5406fe['isEmpty']&&(_0x2de386['removeMarker'](_0x53d9ff['name']),_0x103ebe=!0x0);}}else{if('tablePasteCell'==_0x2de386['subType']){if(!_0x2de386['attributes']||!_0x2de386['attributes']['tablePasteChainId'])continue;const _0x5c4f75=_0x2de386['attributes']['markerAttributes'];if(_0x5c4f75&&Object['keys'](_0x5c4f75)['length'])continue;const _0x22b7b3=_0x2de386['attributes']['tablePasteChainId'];let _0x5bb3ec=!0x0,_0x5ee162=!0x0;for(const _0x278955 of _0x425d2b)if(_0x278955['subType']&&_0x278955['subType']['startsWith']('tablePaste')){if(!_0x278955['attributes']['tablePasteChainId']){_0x5ee162=!0x1;break;}if(_0x278955['id']!=_0x2de386['id']&&_0x278955['attributes']['tablePasteChainId']==_0x22b7b3){_0x5bb3ec=!0x1;break;}}_0x5ee162&&_0x5bb3ec&&(_0x2de386['removeMarkers'](),_0x103ebe=!0x0);}}for(const _0x1ef57f of _0x3f2d01)_0x161af1['remove'](_0x1ef57f);for(const _0x393aa1 of _0x2df300)_0x161af1['unwrap'](_0x393aa1);return _0x103ebe;}),_0x4a8200['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x352ea5,_0x8b689b)=>_0x57f8cc(_0x352ea5),'converterPriority':'high'}),_0x4a8200['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x466e9f,_0x1c0f66)=>_0x1c0f66['options']['showSuggestionHighlights']?_0x57f8cc(_0x466e9f,!0x1):null,'converterPriority':'high'});const _0x30e569=_0x4a8200['editing']['view'];this['listenTo'](_0x30e569['document'],'clipboardOutput',(_0x5a1a0a,_0x59198c)=>{const _0xab5aa4=[];for(const _0x361a54 of _0x30e569['createRangeIn'](_0x59198c['content'])['getItems']())_0x361a54['is']('element','suggestion-td')&&_0xab5aa4['push'](_0x361a54);_0x30e569['change'](_0x3ba0bb=>{for(const _0x367362 of _0xab5aa4)_0x3ba0bb['move'](_0x3ba0bb['createRangeIn'](_0x367362),_0x3ba0bb['createPositionBefore'](_0x367362)),_0x3ba0bb['remove'](_0x367362);});});}}function Pe(_0x5bdf0b){if(_0x5bdf0b['isEmpty'])return!0x0;const _0xd6aae9=_0x5bdf0b['getChild'](0x0);return _0xd6aae9['is']('element','paragraph')&&_0xd6aae9['isEmpty'];}function he(_0x3fc6c5,_0x3083af={},_0xf13bbd){for(const {isAnchor:_0x5f3f02,cellHeight:_0x3e44fe,cellWidth:_0x4b2bfb}of _0xf13bbd['createTableWalker'](_0x3fc6c5,{'includeAllSlots':!0x0,..._0x3083af}))if(!_0x5f3f02||0x1!=_0x3e44fe||0x1!=_0x4b2bfb)return!0x1;return!0x0;}class vt extends _0x26e52a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5b857e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b857e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5b857e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5b857e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b857e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5b857e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5b857e['_descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b3da1,_0x3dcd21){const _0x1a8d92=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa677cf=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x14d6c8=_0x3dcd21['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x8b5574=_0xa677cf['getColumnGroupElement'](_0x14d6c8);let _0x4b1683=_0x8b5574?_0xa677cf['getTableColumnsWidths'](_0x8b5574):null,_0x48ca62=_0x14d6c8['getAttribute']('tableWidth')||null;const _0xf04b82=_0x3dcd21['tableWidth']||_0x48ca62,_0x47c4f1=_0x3dcd21['columnWidths']||_0x4b1683,_0x283cd1=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e253e of _0x1a8d92['getSuggestions']()){const _0x4b3d98=_0x3e253e['getContainedElement']();if('resizeTable'===_0x3e253e['subType']&&_0x4b3d98===_0x14d6c8){_0x3e253e['author']!==_0x283cd1&&_0x3e253e['discard']();const _0x418b53=_0x3e253e['data']['commandParams'];_0x48ca62=_0x418b53[0x0]['tableWidth'],_0x4b1683=_0x418b53[0x0]['columnWidths'];break;}}_0x4b3da1({'table':_0x14d6c8,'tableWidth':_0xf04b82,'columnWidths':_0x47c4f1}),_0x1a8d92['markBlockFormat'](_0x14d6c8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x48ca62,'columnWidths':_0x4b1683}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x50e8cb){if('formatBlock'!=_0x50e8cb['type']&&'formatInline'!=_0x50e8cb['type'])return;const {data:_0x41b0b2}=_0x50e8cb;if(_0x41b0b2&&'resizeTable'===_0x41b0b2['formatGroupId']){const _0x3200c7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3200c7)};}}}class _t extends _0x26e52a{['afterInit'](){const _0x453924=this['editor'];_0x453924['plugins']['has']('Template')&&_0x453924['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x26e52a{['afterInit'](){const _0x426d82=this['editor'];if(!_0x426d82['commands']['get']('insertTableOfContents'))return;_0x426d82['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x170bff=_0x426d82['plugins']['get']('TrackChangesEditing'),_0x5dbf9b=_0x426d82['locale'];_0x170bff['_descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a8757=>o(_0x5dbf9b,'ELEMENT_TABLE_OF_CONTENTS',_0x1a8757));}}class Dt extends _0x26e52a{['afterInit'](){const _0x423f27=this['editor'];if(!_0x423f27['plugins']['has']('Title'))return;const _0x4df01a=_0x423f27['plugins']['get']('TrackChangesEditing');_0x4df01a['_descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x423f27['locale'],'ELEMENT_TITLE')),_0x423f27['model']['document']['registerPostFixer'](_0x20e6c2=>{let _0x3445d7=!0x1;const _0xd577c2=Array['from'](_0x423f27['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4518d7,data:_0x2fd742}of _0xd577c2){const {group:_0x252fb9}=_0x4df01a['_splitMarkerName'](_0x4518d7);if('suggestion'!==_0x252fb9||!_0x2fd742['newRange'])continue;const _0x5047eb=_0x2fd742['newRange'],_0xc00e73=_0x5047eb['end']['nodeBefore'];if(!_0xc00e73||!_0xc00e73['is']('element','title-content'))continue;if(!_0x5047eb['start']['isTouching'](_0x5047eb['end']))continue;const _0x1a63bc=_0x423f27['model']['schema']['getNearestSelectionRange'](_0x5047eb['end'],'forward');if(_0x1a63bc&&_0x1a63bc['isCollapsed']){const _0x54b0bb=_0x20e6c2['createRange'](_0x5047eb['start'],_0x1a63bc['start']);_0x54b0bb['isEqual'](_0x5047eb)||(_0x20e6c2['updateMarker'](_0x4518d7,{'range':_0x54b0bb}),_0x3445d7=!0x0);}_0x3445d7||(_0x20e6c2['removeMarker'](_0x4518d7),_0x3445d7=!0x0);}return _0x3445d7;});}}class Nt extends _0x26e52a{['afterInit'](){const _0x132084=this['editor'],_0x567abf=_0x132084['plugins']['get']('TrackChangesEditing');_0x132084['plugins']['has']('UndoEditing')&&(_0x567abf['enableCommand']('undo'),_0x567abf['enableCommand']('redo'));}}class Mt extends _0x26e52a{static get['requires'](){return[jt];}['afterInit'](){const _0x4cc708=this['editor'];if(!_0x4cc708['plugins']['has']('TableCaptionEditing'))return;_0x4cc708['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x26e52a{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x251c2a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x442988 of this['tableProperties'])_0x251c2a['enableCommand'](_0x442988,(_0x429fc7,_0x22585f)=>{const _0x580ee5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x442988,[_0x580ee5],this['tableProperties'],'tableProperties',_0x429fc7,_0x22585f);});_0x251c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x251c2a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x251c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1a82a3,_0x24af84)=>this['handleDiscardAction'](this['tableProperties'],_0x1a82a3,_0x24af84)),_0x251c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5a0e98 of this['tableCellProperties'])_0x251c2a['enableCommand'](_0x5a0e98,(_0x5eed95,_0x25a289)=>{const _0x1c6d57=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5a0e98,_0x1c6d57,this['tableCellProperties'],'tableCellProperties',_0x5eed95,_0x25a289);});_0x251c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x251c2a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x251c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2575bd,_0x26d9c6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2575bd,_0x26d9c6)),_0x251c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x251c2a['_descriptionFactory']['registerDescriptionCallback'](_0x2da1b7=>this['handleSuggestionDescription'](_0x2da1b7));}['_handlePropertyChange'](_0x90560f,_0x1f9a6f,_0x84bac3,_0x1f4d15,_0x3561fd,_0x23cfc0){const _0x428905=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x23cfc0['batch'],()=>{for(const _0x527eeb of _0x1f9a6f){if(this['_getSuggestion'](_0x527eeb,_0x1f4d15))_0x3561fd(_0x23cfc0);else{const _0x1b5bfd={};for(const _0x2ac99f of _0x84bac3){const _0xb2ce7d=_0x527eeb['getAttribute'](_0x2ac99f);void 0x0!==_0xb2ce7d&&(_0x1b5bfd[_0x2ac99f]=_0xb2ce7d);}_0x3561fd(_0x23cfc0),_0x428905['markBlockFormat'](_0x527eeb,{'commandParams':[_0x1b5bfd]},[],_0x1f4d15);}}});}['handleDiscardAction'](_0x4e12aa,_0xe57d91,_0xcfee37){const _0x19631c=_0xe57d91[0x0]['start']['nodeAfter'],_0x5e12b4=_0xcfee37['commandParams'][0x0];this['editor']['model']['change'](_0x536cc0=>{for(const _0x76e357 of _0x4e12aa)void 0x0!==_0x5e12b4[_0x76e357]?_0x536cc0['setAttribute'](_0x76e357,_0x5e12b4[_0x76e357],_0x19631c):_0x536cc0['removeAttribute'](_0x76e357,_0x19631c);});}['handleSuggestionDescription'](_0x1b4f27){if(_0x1b4f27['data'])switch(_0x1b4f27['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x14ac6c,_0x510886){const _0x499430=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x55d644 of _0x499430['getSuggestions']({'skipNotAttached':!0x0})){const _0x2ec36c=_0x55d644['getContainedElement']();if(_0x55d644['subType']===_0x510886&&_0x2ec36c===_0x14ac6c)return _0x55d644;}return null;}constructor(_0x3d2283){super(_0x3d2283),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x26e52a{static get['requires'](){return['CommentsRepository',_0x4a5edb,_0x52678f,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}['init'](){const _0x1e7675=this['editor'],_0x5a9448=(_0x1dce8f,_0x19b6eb)=>{if('attribute'!=_0x1dce8f)return'ck-suggestion-marker-'+_0x1dce8f;const _0x348101=_0x19b6eb['split']('|')[0x0];return this['_isBlockAttribute'](_0x348101)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1e7675['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x112a6f=>{const {id:_0x5f3a5b,type:_0x57a9e5,subType:_0x804d33}=this['_splitMarkerName'](_0x112a6f['markerName']),_0x2796f7=['ck-suggestion-marker',_0x5a9448(_0x57a9e5,_0x804d33)];let _0x4c48c7=0xbb8;return this['activeMarkers']['includes'](_0x112a6f['markerName'])&&(_0x2796f7['push']('ck-suggestion-marker--active'),_0x4c48c7=0xbc2),'deletion'==_0x57a9e5&&(_0x4c48c7+=0x5),{'classes':_0x2796f7,'attributes':{'data-suggestion':_0x5f3a5b},'priority':_0x4c48c7};}}),_0x1e7675['conversion']['for']('dataDowncast')['add'](_0x5b01a4=>{_0x5b01a4['on']('addMarker:suggestion',(_0x498326,_0x336e90,_0x18df54)=>{if(!_0x18df54['options']['showSuggestionHighlights'])return;const _0x494ebc=_0x336e90['item'];if(!_0x494ebc)return;const _0x5588c8=_0x18df54['mapper']['toViewElement'](_0x494ebc);_0x1e7675['model']['schema']['isObject'](_0x494ebc)&&_0x5588c8&&!_0x5588c8['getCustomProperty']('widget')&&_0x5588c8['is']('containerElement')&&_0x2b4f44(_0x5588c8,_0x18df54['writer']);},{'priority':'high'});}),_0x1e7675['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x428881,_0x199fc9)=>{if(!_0x199fc9['options']['showSuggestionHighlights'])return null;const {type:_0x143371,subType:_0xb42dd6}=this['_splitMarkerName'](_0x428881['markerName']);return{'classes':['ck-suggestion-marker',_0x5a9448(_0x143371,_0xb42dd6)],'priority':0xbb8};}});const _0x19c0f8=({showActiveMarkers:_0x1bd927=!0x0,isAttributeSuggestion:_0x4af1f7=!0x1}={})=>(_0x3a1e2a,_0x5517b4,_0x1e2b26)=>{if(!_0x5517b4['item'])return;const {id:_0x6007c1}=this['_splitMarkerName'](_0x5517b4['markerName']);if(_0x4af1f7){const _0x170fbd=this['_suggestions']['get'](_0x6007c1),_0x2c4445=this['_getAttributeKey'](_0x170fbd);if(!this['_isBlockAttribute'](_0x2c4445))return;}if(_0x5517b4['item']['is']('selection'))return void _0x1e2b26['consumable']['consume'](_0x5517b4['item'],_0x3a1e2a['name']);const _0x1acfdb=_0x1e2b26['mapper']['toViewElement'](_0x5517b4['item']);if(_0x5517b4['item']['is']('element')&&_0x1e7675['model']['schema']['isBlock'](_0x5517b4['item'])&&!_0x1acfdb['getCustomProperty']('addHighlight')){_0x1e2b26['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1acfdb),_0x1e2b26['writer']['setAttribute']('data-suggestion',_0x6007c1,_0x1acfdb),_0x1e2b26['mapper']['bindElementToMarker'](_0x1acfdb,_0x5517b4['markerName']),_0x1bd927&&(this['activeMarkers']['includes'](_0x5517b4['markerName'])?_0x1e2b26['writer']['addClass']('ck-suggestion-marker--active',_0x1acfdb):_0x1e2b26['writer']['removeClass']('ck-suggestion-marker--active',_0x1acfdb));for(const _0x212a0d of _0x1e7675['model']['createRangeIn'](_0x5517b4['item'])['getItems']())_0x1e2b26['consumable']['consume'](_0x212a0d,_0x3a1e2a['name']);_0x1e2b26['consumable']['consume'](_0x5517b4['item'],_0x3a1e2a['name']);}};_0x1e7675['conversion']['for']('dataDowncast')['add'](_0x1aff54=>{_0x1aff54['on']('addMarker:suggestion:formatBlock',(_0xc79419,_0x25ed38,_0x9e7e2c)=>{_0x9e7e2c['options']['showSuggestionHighlights']&&_0x19c0f8({'showActiveMarkers':!0x1})(_0xc79419,_0x25ed38,_0x9e7e2c);},{'priority':'highest'});}),_0x1e7675['conversion']['for']('dataDowncast')['add'](_0x461b33=>{_0x461b33['on']('addMarker:suggestion:attribute',(_0x1740aa,_0x4ba3f7,_0x29b126)=>{_0x29b126['options']['showSuggestionHighlights']&&_0x19c0f8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1740aa,_0x4ba3f7,_0x29b126);},{'priority':'highest'});}),_0x1e7675['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x21c4d2,_0x43c3ee)=>_0x43c3ee['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x21c4d2['substr'](0xb)}}),_0x1e7675['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5807fe,{writer:_0x385b61})=>{let _0x19ca82='suggestion:'+_0x5807fe['getAttribute']('suggestion-type')+':'+_0x5807fe['getAttribute']('id');return _0x5807fe['getAttribute']('marker-count')&&(_0x19ca82+=':'+_0x5807fe['getAttribute']('marker-count')),_0x385b61['createElement']('$marker',{'data-name':_0x19ca82});}}),_0x1e7675['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1e7675['conversion']['for']('editingDowncast')['add'](_0x1766f7=>{_0x1766f7['on']('addMarker:suggestion:formatBlock',_0x19c0f8(),{'priority':'high'});}),_0x1e7675['conversion']['for']('editingDowncast')['add'](_0x34460d=>{_0x34460d['on']('addMarker:suggestion:attribute',_0x19c0f8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1e7675['conversion']['for']('editingDowncast')['add'](_0x1302e0=>{_0x1302e0['on']('removeMarker:suggestion:formatBlock',(_0x325de9,_0x40dce7,_0xb0bde4)=>{const _0x3a49d7=_0xb0bde4['mapper']['markerNameToElements'](_0x40dce7['markerName']);if(_0x3a49d7){for(const _0x189a50 of _0x3a49d7)_0x189a50['getCustomProperty']('addHighlight')||(_0xb0bde4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x189a50),_0xb0bde4['writer']['removeAttribute']('data-suggestion',_0x189a50),_0xb0bde4['mapper']['unbindElementFromMarkerName'](_0x189a50,_0x40dce7['markerName']));}},{'priority':'high'});}),_0x1e7675['conversion']['for']('editingDowncast')['add'](_0x5e44b3=>{_0x5e44b3['on']('removeMarker:suggestion:attribute',(_0x5c5868,_0x501d4d,_0x279e10)=>{const _0x27624d=_0x279e10['mapper']['markerNameToElements'](_0x501d4d['markerName']);if(!_0x27624d)return;const {id:_0x2b32b9}=this['_splitMarkerName'](_0x501d4d['markerName']),_0x4fdd38=this['_suggestions']['get'](_0x2b32b9),_0x352763=this['_getAttributeKey'](_0x4fdd38);if(this['_isBlockAttribute'](_0x352763)){for(const _0xfd9b24 of _0x27624d)_0xfd9b24['getCustomProperty']('addHighlight')||(_0x279e10['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xfd9b24),_0x279e10['writer']['removeAttribute']('data-suggestion',_0xfd9b24),_0x279e10['mapper']['unbindElementFromMarkerName'](_0xfd9b24,_0x501d4d['markerName']));}},{'priority':'high'});}),_0x1e7675['model']['document']['registerPostFixer'](_0x5cf991=>{let _0x7652e0=!0x1;const _0x475cd3=Array['from'](_0x1e7675['model']['document']['differ']['getChangedMarkers']()),_0x3dff26=new Set();for(const {name:_0x388e6c,data:_0x4f4a2f}of _0x475cd3){const {group:_0x4a9291,type:_0x45332f,subType:_0x24a0a8,id:_0x246cfc}=this['_splitMarkerName'](_0x388e6c);if('suggestion'!==_0x4a9291)continue;const _0x4835ed=this['_suggestions']['get'](_0x246cfc);if(null!=_0x4f4a2f['newRange']){'formatInline'==_0x45332f&&(_0x7652e0=_0x7652e0||Et(_0x4f4a2f['newRange'],_0x388e6c,_0x5cf991,_0x1e7675['model']['schema']));const _0x59c1d2='attribute'==_0x45332f&&this['_isBlockAttribute'](_0x24a0a8['split']('|')[0x0]);if(_0x4f4a2f['newRange']['isCollapsed']||'$graveyard'==_0x4f4a2f['newRange']['root']['rootName']||'formatBlock'==_0x45332f&&!Ut(_0x4f4a2f['newRange'])||_0x59c1d2&&!Ut(_0x4f4a2f['newRange'])||'deletion'==_0x45332f&&!(!Tt(_0xc33c78=_0x4f4a2f['newRange'])&&!function(_0x2c6162){return _0x2c6162['start']['parent']==_0x2c6162['end']['nodeBefore']&&_0x2c6162['start']['isAtEnd'];}(_0xc33c78)))_0x5cf991['removeMarker'](_0x388e6c),_0x7652e0=!0x0;else{if(!_0x4835ed||!_0x4835ed['isInContent'])continue;_0x3dff26['add'](_0x4835ed);}}}var _0xc33c78;return _0x3dff26['size']>0x0&&(_0x7652e0=!!this['_joinWithAdjacentSuggestions'](_0x3dff26)||_0x7652e0),_0x7652e0;}),_0x1e7675['model']['document']['registerPostFixer'](_0x221111=>{let _0x3451ce=!0x1;for(const _0x4abac3 of _0x1e7675['model']['document']['differ']['getChanges']())if('insert'==_0x4abac3['type'])for(const _0x6ee665 of this['_suggestions']['values']()){if(_0x6ee665['isMultiRange']||!_0x6ee665['isInContent'])continue;const _0x27433c='formatBlock'==_0x6ee665['type'],_0x569ea8=this['_getAttributeKey'](_0x6ee665),_0x48e0fc=_0x569ea8&&this['_isBlockAttribute'](_0x569ea8);if(!_0x27433c&&!_0x48e0fc)continue;const _0x1a8c37=_0x6ee665['getFirstRange']();if(_0x1a8c37['start']['parent']!=_0x1a8c37['end']['parent']&&!_0x1a8c37['end']['isAtEnd']){const _0x229809=_0x1e7675['model']['createPositionAt'](_0x1a8c37['start']['nodeAfter'],'end'),_0x7059d2=_0x1e7675['model']['createRange'](_0x1a8c37['start'],_0x229809);_0x221111['updateMarker'](_0x6ee665['getFirstMarker'](),{'range':_0x7059d2}),_0x3451ce=!0x0;}}return _0x3451ce;}),_0x1e7675['model']['document']['registerPostFixer'](_0x47530b=>this['_processAttributeChanges'](_0x47530b)),_0x1e7675['model']['document']['registerPostFixer'](_0x16f325=>!_0x16f325['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x16f325)),_0x1e7675['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1e7675['model']['document']['on']('change:data',(_0x27795d,_0x42c292)=>{if(!_0x42c292['isLocal']||_0x42c292['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x356007=_0x1e7675['model']['document']['differ']['getChanges']();if(0x0==_0x356007['length'])return;const _0x4a796b=[],_0x3e2e91=_0x356007['filter'](_0x5530b1=>'attribute'==_0x5530b1['type']),_0x2d22e1=_0x356007['filter'](_0x48ca4c=>'insert'==_0x48ca4c['type']&&'$text'!=_0x48ca4c['name']),_0x19d707=_0x356007['filter'](_0xc3aaed=>'remove'==_0xc3aaed['type']&&'$text'!=_0xc3aaed['name']);for(const _0x29ec1c of _0x3e2e91)this['_isRegisteredAttribute'](_0x29ec1c['attributeKey'])&&_0x4a796b['push']({'key':_0x29ec1c['attributeKey'],'newValue':_0x29ec1c['attributeNewValue'],'oldValue':_0x29ec1c['attributeOldValue'],'range':Ot(_0x29ec1c['range'],_0x1e7675['model'])});for(const _0x3856e9 of _0x2d22e1){const _0x816b13=_0x19d707['find'](_0x46f6dd=>_0x46f6dd['_element']===_0x3856e9['_element']);if(_0x816b13){const _0x35a1cd=Gt(_0x3856e9['position']['nodeAfter'],_0x1e7675['model']);_0x816b13['name']!==_0x3856e9['name']&&_0x4a796b['push']({'key':m,'newValue':_0x3856e9['name'],'oldValue':_0x816b13['name'],'range':_0x35a1cd});for(const [_0x461e07,_0x5675fe]of _0x816b13['attributes']){if(!this['_isRegisteredAttribute'](_0x461e07))continue;const _0x190b3b=_0x3856e9['attributes']['get'](_0x461e07);_0x5675fe!==_0x190b3b&&_0x4a796b['push']({'key':_0x461e07,'newValue':_0x190b3b,'oldValue':_0x5675fe,'range':_0x35a1cd});}for(const [_0x1629a0,_0xbb454c]of _0x3856e9['attributes'])this['_isRegisteredAttribute'](_0x1629a0)&&(_0x816b13['attributes']['has'](_0x1629a0)||_0x4a796b['push']({'key':_0x1629a0,'newValue':_0xbb454c,'oldValue':null,'range':_0x35a1cd}));}}0x0!=_0x4a796b['length']&&_0x1e7675['model']['enqueueChange'](_0x42c292,_0x514c00=>{const _0x2e411a=_0x1702d8();for(const {range:_0x466fa4,key:_0x3fd6df,oldValue:_0xf8a73c,newValue:_0x55119c}of _0x4a796b)this['markAttributeChange'](_0x466fa4,_0x3fd6df,_0xf8a73c,_0x55119c,{'groupId':_0x2e411a});this['_reduceExistingSuggestions'](_0x514c00,_0x4a796b);});},{'priority':'lowest'}),_0x1e7675['model']['markers']['on']('update:suggestion',(_0x1497bf,_0x113194,_0x3cb69f)=>{if(null==_0x3cb69f){const {id:_0x1ab2dc}=this['_splitMarkerName'](_0x113194['name']),_0x14c07e=this['_suggestions']['get'](_0x1ab2dc);_0x14c07e&&_0x14c07e['addMarkerName'](_0x113194['name']);}}),_0x1e7675['model']['document']['on']('change:data',()=>{const _0x16d7a5=Array['from'](_0x1e7675['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20353f=>'suggestion'===this['_splitMarkerName'](_0x20353f['name'])['group']);if(0x0===_0x16d7a5['length'])return;_0x16d7a5['sort']((_0x9a0b5c,_0x384940)=>{const _0x2359c0=_0x9a0b5c['data']['oldRange'],_0x10101c=_0x384940['data']['oldRange'];return null===_0x2359c0&&null===_0x10101c?0x0:null===_0x2359c0&&null!==_0x10101c?-0x1:null!==_0x2359c0&&null===_0x10101c?0x1:_0x2359c0['start']['isBefore'](_0x10101c['start'])?-0x1:0x1;});const _0x2349ce=new Set(),_0x1b0423=new Set();for(const {name:_0x5206e2,data:_0xdefc31}of _0x16d7a5){const {id:_0x3c89c2}=this['_splitMarkerName'](_0x5206e2);if(null===_0xdefc31['oldRange']){const _0x529ad6=this['_handleNewSuggestionMarker'](_0x5206e2);_0x1b0423['add'](_0x529ad6);}else{const _0x30f6d8=this['_suggestions']['get'](_0x3c89c2);null!==_0xdefc31['newRange']||_0x30f6d8['isInContent']?(_0x2349ce['add'](_0x30f6d8['head']),_0x1b0423['add'](_0x30f6d8)):this['_removeSuggestion'](_0x30f6d8);}}_0x1b0423['size']>0x0&&this['_refreshSuggestionsChain'](_0x1b0423);for(const _0x36eac9 of _0x2349ce)this['fire']('suggestionChanged',_0x36eac9);}),_0x1e7675['model']['on']('applyOperation',(_0x2e7670,_0x4e0dfc)=>{const _0x476790=_0x4e0dfc[0x0];if(!this['_suggestions']['size'])return;if(!_0x476790['isDocumentOperation'])return;if(_0x476790['batch']['isUndo']||!_0x476790['batch']['isLocal'])return;let _0x3caa0f,_0x41a778;switch(_0x476790['type']){case'insert':_0x3caa0f=_0x1e7675['model']['createPositionAt'](_0x476790['position']),_0x41a778=_0x3caa0f['getShiftedBy'](_0x476790['howMany']);break;case'split':_0x3caa0f=_0x1e7675['model']['createPositionAt'](_0x476790['splitPosition']),_0x41a778=_0x1e7675['model']['createPositionAt'](_0x476790['moveTargetPosition']);break;case'move':_0x3caa0f=_0x1e7675['model']['createPositionAt'](_0x476790['targetPosition']),_0x41a778=_0x3caa0f['getShiftedBy'](_0x476790['howMany']);break;default:return;}const _0x58e407=_0x1e7675['model']['createRange'](_0x3caa0f,_0x41a778);_0x1e7675['model']['change'](()=>{for(const {suggestion:_0x438de6,meta:_0x28631b}of this['_findSuggestions'](_0x58e407)){if(_0x438de6['isMultiRange'])continue;if('formatInline'==_0x438de6['type'])continue;const _0xb85b3c=this['_getAttributeKey'](_0x438de6);if(_0xb85b3c&&this['_isBlockAttribute'](_0xb85b3c)&&'split'!=_0x476790['type'])continue;const _0x59c370=_0x438de6['data']&&_0x438de6['data']['multipleBlocks'];('formatBlock'!=_0x438de6['type']||'split'==_0x476790['type']&&!_0x59c370)&&(_0x28631b['containsRangeInObject']||'insertion'==_0x438de6['type']&&_0x28631b['isOwn']||_0x438de6['getFirstRange']()['containsRange'](_0x58e407)&&this['_breakSuggestionMarker'](_0x438de6,_0x3caa0f,_0x41a778));}});},{'priority':'lowest'}),_0x1e7675['model']['on']('deleteContent',(_0x43e640,_0x32167a)=>{const _0x318b13=_0x32167a[0x0],_0x3e7e6e=_0x32167a[0x1];if(_0x3e7e6e&&_0x3e7e6e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x318b13['isCollapsed'])return;const _0x362d34=_0x1e7675['model']['schema'],{start:_0x3ab43c,end:_0x5c11c5}=_0x318b13['getFirstRange'](),_0xfe4c9c=_0x3ab43c['nodeAfter']&&_0x362d34['isLimit'](_0x3ab43c['nodeAfter'])?null:_0x362d34['getNearestSelectionRange'](_0x3ab43c,'forward'),_0x2d7039=_0x5c11c5['nodeBefore']&&_0x362d34['isLimit'](_0x5c11c5['nodeBefore'])?null:_0x362d34['getNearestSelectionRange'](_0x5c11c5,'backward'),_0x5e03f0=_0x1e7675['model']['createRange'](_0xfe4c9c?_0xfe4c9c['start']:_0x3ab43c,_0x2d7039?_0x2d7039['end']:_0x5c11c5);_0x1e7675['model']['change'](_0x5bcec5=>{this['markDeletion'](_0x5e03f0);const _0x43b649=_0x1e7675['model']['schema']['getNearestSelectionRange'](_0x5e03f0['start']);_0x318b13['is']('documentSelection')?_0x5bcec5['setSelection'](_0x43b649):_0x318b13['setTo'](_0x43b649);}),_0x43e640['stop']();},{'priority':_0x3cf857['normal']+0xa}),_0x1e7675['model']['on']('insertContent',(_0x1d8ce3,_0x36cc21)=>{const _0x2b85f6=_0x36cc21[_0x36cc21['length']-0x1];_0x2b85f6&&_0x2b85f6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1e7675['model']['change'](()=>{let _0x12a80a=_0x1e7675['model']['insertContent'](_0x36cc21[0x0],_0x36cc21[0x1],_0x36cc21[0x2],{'forceDefaultExecution':!0x0});if(!_0x12a80a)return;_0x1d8ce3['return']=_0x12a80a['clone']();const _0x2898d9=_0x12a80a['end']['nodeBefore'],_0x15bcd5=_0x1e7675['model']['schema'];_0x2898d9&&_0x15bcd5['isBlock'](_0x2898d9)&&!_0x15bcd5['isObject'](_0x2898d9)&&(_0x12a80a=_0x1e7675['model']['createRange'](_0x12a80a['start'],_0x1e7675['model']['createPositionAt'](_0x2898d9,'end'))),this['markInsertion'](_0x12a80a);}),_0x1d8ce3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x36c3cc=new $(_0x1e7675,this['_suggestions']);_0x1e7675['commands']['add']('acceptSuggestion',_0x36c3cc),this['enableCommand']('acceptSuggestion');const _0x3f1e51=new B(_0x1e7675,this['_suggestions']);_0x1e7675['commands']['add']('discardSuggestion',_0x3f1e51),this['enableCommand']('discardSuggestion'),_0x1e7675['commands']['add']('acceptAllSuggestions',new x(_0x1e7675,_0x36c3cc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1e7675['commands']['add']('discardAllSuggestions',new x(_0x1e7675,_0x3f1e51,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1e7675['commands']['add']('acceptSelectedSuggestions',new R(_0x1e7675,_0x36c3cc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1e7675['commands']['add']('discardSelectedSuggestions',new R(_0x1e7675,_0x3f1e51,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x12f28d=_0x1e7675['plugins']['get']('CommentsRepository');this['listenTo'](_0x12f28d,'addComment',(_0x1a44ee,{threadId:_0x261907})=>{const _0x226eba=this['_suggestions']['get'](_0x261907);_0x226eba&&_0x226eba['commentThread']&&0x1===_0x226eba['commentThread']['length']&&this['_updateSuggestionData'](_0x261907,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x12f28d,'removeComment',(_0x3c6a12,{threadId:_0x441b60})=>{const _0xea5c81=this['_suggestions']['get'](_0x441b60);_0xea5c81&&_0xea5c81['commentThread']&&!_0xea5c81['commentThread']['length']&&this['_updateSuggestionData'](_0x441b60,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x379e2a){if(this['_adapter'])throw new _0x215eab('track-changes-adapter-already-set',this);this['_adapter']=_0x379e2a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4abf85=!0x1,toJSON:_0x52ce82=!0x1}={}){const _0x44b2a0=[];for(const _0x4f2eb3 of this['_suggestions']['values']())_0x4abf85&&!_0x4f2eb3['isInContent']||_0x44b2a0['push'](_0x4f2eb3);return _0x52ce82?_0x44b2a0['map'](_0x2b2a04=>_0x2b2a04['toJSON']()):_0x44b2a0;}['getSuggestion'](_0x355fbd){const _0xca0f50=this['_suggestions']['get'](_0x355fbd);if(!_0xca0f50)throw new _0x215eab('track-changes-suggestion-not-found',this);return _0xca0f50;}['hasSuggestion'](_0x4d9dfe){return this['_suggestions']['has'](_0x4d9dfe);}['addSuggestionData'](_0x23f47d){const {authorId:_0x1d2c02,id:_0x3b633b,attributes:_0x2ddec8}=_0x23f47d,[_0x92b344,_0x4e6469]=_0x23f47d['type']['split'](':'),_0x1c42eb=this['_suggestions']['get'](_0x3b633b)||this['_createSuggestion'](_0x92b344,_0x4e6469,_0x3b633b,_0x1d2c02,_0x2ddec8);if(this['_addThreadToSuggestion'](_0x1c42eb),this['_checkSuggestionCorrectness'](_0x1c42eb,_0x92b344,_0x4e6469||null,_0x1d2c02),_0x1c42eb['createdAt']=_0x23f47d['createdAt'],_0x1c42eb['_isDataLoaded']=!0x0,_0x2ddec8&&_0x2ddec8['@external']){const _0x9f633d=_0x2ddec8['@external'],_0x18b434=this['_getExternalAuthor'](_0x9f633d['authorName']);_0x1c42eb['authoredAt']=_0x9f633d['createdAt'],_0x1c42eb['author']=_0x18b434,_0x1c42eb['isExternal']=!0x0;}else _0x1c42eb['authoredAt']=_0x23f47d['createdAt'];switch(_0x23f47d['data']&&(_0x1c42eb['data']=_0x23f47d['data']),_0x23f47d['attributes']&&(_0x1c42eb['attributes']=_0x23f47d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1c42eb['_saved']=!0x0),this['_suggestionState']['get'](_0x1c42eb)){case'notReady':this['_suggestionState']['set'](_0x1c42eb,'dataReady');break;case'markerReady':_0x1c42eb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1c42eb])),this['_refreshSuggestionsChain'](new Set([_0x1c42eb])),this['_suggestionState']['set'](_0x1c42eb,'ready'),this['fire']('suggestionLoaded',_0x1c42eb)):this['_suggestionState']['set'](_0x1c42eb,'removed');}return _0x1c42eb;}['acceptSuggestion'](_0x3015bb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45a791 of _0x3015bb['getAllAdjacentSuggestions']())_0x45a791['accept']();});});}['discardSuggestion'](_0x3a556c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55bea0 of _0x3a556c['getAllAdjacentSuggestions']())_0x55bea0['discard']();});});}['enableCommand'](_0x5388a9,_0x1d4874){const _0x36ca09=this['editor']['commands']['get'](_0x5388a9);if(!_0x36ca09)throw new _0x215eab('track-changes-command-not-found',this,{'commandName':_0x5388a9});if(this['_enabledCommands']['has'](_0x36ca09))throw new _0x215eab('track-changes-enable-command-twice',this,{'commandName':_0x5388a9});this['_enabledCommands']['add'](_0x36ca09),_0x1d4874&&_0x36ca09['on']('execute',(_0x325df5,_0x361077)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x361077['length']>0x0&&_0x361077[_0x361077['length']-0x1]&&_0x361077[_0x361077['length']-0x1]['forceDefaultExecution']?_0x361077['pop']():(_0x325df5['return']=_0x1d4874((..._0x35a33f)=>_0x36ca09['execute'](..._0x35a33f,{'forceDefaultExecution':!0x0}),..._0x361077),_0x325df5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xf0b35f){let _0x2d597a,_0x1843d4;const _0x45b79d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2d597a=_0xf0b35f();}catch(_0x3548f2){_0x1843d4=_0x3548f2;}return _0x45b79d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1843d4&&_0x215eab['rethrowUnexpectedError'](_0x1843d4,this),_0x2d597a;}['markInsertion'](_0xb50dfa,_0x17ded6=null,_0x9a2a95={}){if(_0xb50dfa['isCollapsed'])return null;const _0x329652=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x235d79,meta:_0x3fe9ce}of this['_findSuggestions'](_0xb50dfa,'insertion'))if(_0x3fe9ce['isOwn']){if(!_0x3fe9ce['isNextTo']){if(_0x3fe9ce['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x235d79,_0x9a2a95))continue;return _0x235d79;}if(Lt(_0x235d79,_0x9a2a95))return _0x235d79;this['_breakSuggestionMarker'](_0x235d79,_0xb50dfa['start'],_0xb50dfa['end']);break;}if(_0x17ded6==_0x235d79['subType']&&Lt(_0x235d79,_0x9a2a95)){const _0x2b7d0f=_0x235d79['getFirstRange']();return _0x2b7d0f['start']['isEqual'](_0xb50dfa['end'])?this['_setSuggestionRange'](_0x235d79,this['_model']['createRange'](_0xb50dfa['start'],_0x2b7d0f['end'])):this['_setSuggestionRange'](_0x235d79,this['_model']['createRange'](_0x2b7d0f['start'],_0xb50dfa['end'])),_0x235d79;}}const _0x234b60=_0x1702d8(),_0x1059aa=_0x329652['id'],_0x111b16=_0x17ded6?'insertion:'+_0x17ded6:'insertion',_0x2c7feb=this['_setSuggestionData']({'id':_0x234b60,'type':_0x111b16,'createdAt':new Date(),'authorId':_0x1059aa,'attributes':_0x9a2a95});return this['_addSuggestionMarker'](_0x111b16,_0x234b60,_0x1059aa,_0xb50dfa),_0x2c7feb;}['markMultiRangeInsertion'](_0x2fa1db,_0x330fb4='multi',_0x23e498={}){const _0x4755a6=this['editor']['plugins']['get']('Users')['me'],_0x24cc44=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x330fb4,'join');for(const _0x575986 of this['getSuggestions']())if(_0x575986['author']['id']==_0x4755a6['id']&&'insertion'==_0x575986['type']&&_0x575986['subType']==_0x330fb4&&Lt(_0x575986,_0x23e498)&&(_0x24cc44(_0x575986['getRanges'](),_0x2fa1db)||_0x24cc44(_0x2fa1db,_0x575986['getRanges']()))){for(const _0x1c0c51 of _0x2fa1db)_0x575986['addRange'](_0x1c0c51);return _0x575986;}for(const {suggestion:_0x52727a,meta:_0x161db8}of this['_findSuggestions'](_0x2fa1db,'insertion')){if(!_0x161db8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x161db8['containsRangeInObject'])continue;if(!Lt(_0x52727a,_0x23e498))continue;let _0x2d696c=!0x0;for(const _0x25d8ca of _0x52727a['getRanges']())for(const _0x49891e of _0x2fa1db)if(!_0x25d8ca['containsRange'](_0x49891e)){_0x2d696c=!0x1;break;}if(_0x2d696c)return _0x52727a;}const _0xff6e5c=_0x1702d8(),_0x54616d=_0x4755a6['id'],_0xdeb261='insertion:'+_0x330fb4,_0x4286d0=this['_setSuggestionData']({'id':_0xff6e5c,'type':_0xdeb261,'createdAt':new Date(),'authorId':_0x54616d,'attributes':_0x23e498});for(const _0x38d83b of _0x2fa1db)this['_addSuggestionMarker'](_0xdeb261,_0xff6e5c,_0x54616d,_0x38d83b,u['getMultiRangeId']());return _0x4286d0;}['markInlineFormat'](_0x40bcc3,_0x615a3b,_0xb87ca2=null,_0x169d04={}){if(_0xb87ca2=_0xb87ca2||Vt(_0x615a3b),_0x40bcc3['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x290302=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xb87ca2,'accept');return this['forceDefaultExecution'](()=>_0x290302([_0x40bcc3],_0x615a3b,_0x169d04)),null;}const _0x36c639=this['editor']['plugins']['get']('Users')['me'],_0x39bf46=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x239216,meta:_0x47b5d5}of this['_findSuggestions'](_0x40bcc3,'insertion'))_0x47b5d5['isOwn']&&!_0x47b5d5['isInsideObject']&&_0x39bf46['push'](..._0x239216['getRanges']());}const _0x4a4b21=function(_0xc6aeca,_0x3b4349){const _0x4fa168=[];for(const _0x26adc9 of _0x3b4349){const _0x523193=_0xc6aeca['getIntersection'](_0x26adc9);_0x523193&&_0x4fa168['push'](_0x523193);}return _0x4fa168;}(_0x40bcc3,_0x39bf46),_0x4c4ef5=function(_0x3007c2,_0x279d55){const _0x3c0f5b=[_0x3007c2];for(const _0x34148d of _0x279d55){let _0x36b23d=0x0;for(;_0x36b23d<_0x3c0f5b['length'];){const _0x473c1d=_0x3c0f5b[_0x36b23d]['getDifference'](_0x34148d);_0x3c0f5b['splice'](_0x36b23d,0x1,..._0x473c1d),_0x36b23d+=_0x473c1d['length'];}}return _0x3c0f5b;}(_0x40bcc3,_0x39bf46);_0x4a4b21['length']&&this['_model']['change'](()=>{for(const _0x593f43 of _0x4a4b21){const _0x1d103a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xb87ca2,'accept');this['forceDefaultExecution'](()=>_0x1d103a([_0x593f43],_0x615a3b,_0x169d04));}});for(const _0x2d1ad1 of _0x4c4ef5){let _0x2e63e1=null,_0xbba43b=_0x2d1ad1['start'],_0x4b33d0=_0x2d1ad1['end'];for(const {suggestion:_0x22acac,meta:_0x2d0601}of this['_findSuggestions'](_0x2d1ad1,'formatInline')){if(!_0x2d0601['isOwn'])continue;if(_0x22acac['subType']!=_0xb87ca2)continue;if(!Lt(_0x22acac,_0x169d04))continue;const _0x59733b=_0x22acac['getFirstRange']();if(_0x59733b['containsRange'](_0x2d1ad1,!0x0))return null;_0xbba43b=_0xbba43b['isBefore'](_0x59733b['start'])?_0xbba43b:_0x59733b['start'],_0x4b33d0=_0x4b33d0['isAfter'](_0x59733b['end'])?_0x4b33d0:_0x59733b['end'],_0x2e63e1?_0x59733b['start']['isBefore'](_0x2e63e1['getFirstRange']()['start'])?(_0x2e63e1['removeMarkers'](),_0x2e63e1=_0x22acac):_0x22acac['removeMarkers']():_0x2e63e1=_0x22acac;}const _0x6ffa7f=this['_model']['createRange'](_0xbba43b,_0x4b33d0);if(_0x2e63e1)this['_setSuggestionRange'](_0x2e63e1,_0x6ffa7f);else{const _0x4fef0a=_0x1702d8(),_0x32fd9f=_0x36c639['id'];this['_setSuggestionData']({'id':_0x4fef0a,'type':'formatInline:'+_0xb87ca2,'data':_0x615a3b,'createdAt':new Date(),'authorId':_0x32fd9f,'attributes':_0x169d04}),this['_addSuggestionMarker']('formatInline:'+_0xb87ca2,_0x4fef0a,_0x32fd9f,_0x6ffa7f);}}return null;}['markBlockFormat'](_0x5a81b0,_0x38b4a4,_0x316554=[],_0xcbb260=null,_0x13edb6={}){_0x38b4a4['formatGroupId']||(_0x38b4a4['formatGroupId']=_0x38b4a4['commandName']),_0x38b4a4['multipleBlocks']=_0x5a81b0['is']('range'),_0xcbb260=_0xcbb260||Vt(_0x38b4a4);const _0xebcce1=_0x316554['map'](_0x11b831=>Gt(_0x11b831,this['_model'])),_0x37b4f8=_0x5a81b0['is']('range')?_0x5a81b0:Gt(_0x5a81b0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x390350=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcbb260,'accept');return this['forceDefaultExecution'](()=>_0x390350([_0x37b4f8],_0x38b4a4,_0x13edb6)),null;}_0xebcce1['push'](_0x37b4f8);let _0x434204=!0x0;for(const _0x105410 of _0xebcce1)if(!this['_rangeIsInLocalUserInsertion'](_0x105410)){_0x434204=!0x1;break;}if(_0x434204&&'always'!==this['_trackFormatChanges']){const _0x51067d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcbb260,'accept');return this['forceDefaultExecution'](()=>_0x51067d([_0x37b4f8],_0x38b4a4,_0x13edb6)),null;}let _0x48b613=null,_0x1aa646=_0x37b4f8['start'],_0x1e5692=_0x37b4f8['end'];for(const {suggestion:_0x51319b,meta:_0x411af1}of this['_findSuggestions'](_0x37b4f8,'formatBlock')){if(!_0x411af1['isOwn'])continue;if(_0x411af1['isNextTo']||_0x411af1['containsRangeInObject']||_0x411af1['isInsideObject'])continue;if(_0x51319b['data']['formatGroupId']!=_0x38b4a4['formatGroupId'])continue;if(!Lt(_0x51319b,_0x13edb6))continue;const _0x53bdeb=_0x51319b['getFirstRange']();if(_0x51319b['subType']==_0xcbb260){if(_0x53bdeb['containsRange'](_0x37b4f8,!0x0))return null;_0x1aa646=_0x1aa646['isBefore'](_0x53bdeb['start'])?_0x1aa646:_0x53bdeb['start'],_0x1e5692=_0x1e5692['isAfter'](_0x53bdeb['end'])?_0x1e5692:_0x53bdeb['end'],_0x48b613?_0x53bdeb['start']['isBefore'](_0x48b613['getFirstRange']()['start'])?(_0x48b613['removeMarkers'](),_0x48b613=_0x51319b):_0x51319b['removeMarkers']():_0x48b613=_0x51319b;}else{const _0x4fcce3=_0x37b4f8['getIntersection'](_0x53bdeb);this['_cutOutSuggestionMarker'](_0x51319b,_0x4fcce3);}}const _0x3b5a6e=this['editor']['plugins']['get']('Users')['me'],_0x13784b=_0x1702d8(),_0x586b19=_0x3b5a6e['id'];if(_0x48b613)return this['_setSuggestionRange'](_0x48b613,this['_model']['createRange'](_0x1aa646,_0x1e5692)),_0x48b613;{const _0x1f9fef=this['_setSuggestionData']({'id':_0x13784b,'type':'formatBlock:'+_0xcbb260,'data':_0x38b4a4,'createdAt':new Date(),'authorId':_0x586b19,'attributes':_0x13edb6});return this['_addSuggestionMarker']('formatBlock:'+_0xcbb260,_0x13784b,_0x586b19,this['_model']['createRange'](_0x1aa646,_0x1e5692)),_0x1f9fef;}}['markMultiRangeBlockFormat'](_0x555b9e,_0x17c327,_0x445cba=[],_0x4ae0b9=null,_0x28dd07={}){_0x17c327['formatGroupId']||(_0x17c327['formatGroupId']=_0x17c327['commandName']);const _0x3e752d=_0x555b9e[0x0];_0x17c327['multipleBlocks']=_0x3e752d['is']('range'),_0x4ae0b9=_0x4ae0b9||Vt(_0x17c327);const _0x56b6a3=_0x445cba['map'](_0xaf415d=>Gt(_0xaf415d,this['_model'])),_0x2ca30f=_0x3e752d['is']('range')?_0x555b9e:_0x555b9e['map'](_0x633efa=>Gt(_0x633efa,this['_model']));if('never'===this['_trackFormatChanges']){const _0x20cec0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ae0b9,'accept');return this['forceDefaultExecution'](()=>_0x20cec0(_0x2ca30f,_0x17c327,_0x28dd07)),null;}_0x56b6a3['push'](..._0x2ca30f);let _0xd85eef=!0x0;for(const _0x270dd5 of _0x56b6a3)if(!this['_rangeIsInLocalUserInsertion'](_0x270dd5)){_0xd85eef=!0x1;break;}if(_0xd85eef&&'always'!==this['_trackFormatChanges']){const _0x544625=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ae0b9,'accept');return this['forceDefaultExecution'](()=>_0x544625(_0x2ca30f,_0x17c327,_0x28dd07)),null;}const _0xc0ef27=this['editor']['plugins']['get']('Users')['me'];for(const _0x15ec23 of this['getSuggestions']()){if(_0x15ec23['author']['id']!=_0xc0ef27['id'])continue;if('formatBlock'!=_0x15ec23['type']||_0x15ec23['data']['formatGroupId']!=_0x17c327['formatGroupId'])continue;if(!Lt(_0x15ec23,_0x28dd07))continue;const _0x32d122=_0x15ec23['subType']==_0x4ae0b9;for(let _0x3d0109=0x0;_0x3d0109<_0x2ca30f['length'];_0x3d0109++){const _0x35b983=_0x2ca30f[_0x3d0109];for(const _0xc59f45 of _0x15ec23['getMarkers']()){const _0x104253=_0xc59f45['getRange']();if(_0x35b983['isEqual'](_0x104253)){_0x32d122?(_0x2ca30f['splice'](_0x3d0109,0x1),_0x3d0109--):_0x15ec23['removeMarker'](_0xc59f45['name']);break;}}}}if(0x0==_0x2ca30f['length'])return null;const _0x4c7ee0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ae0b9,'join');for(const _0x7a7346 of this['getSuggestions']())if(_0x7a7346['author']['id']==_0xc0ef27['id']&&'formatBlock'==_0x7a7346['type']&&_0x7a7346['data']['formatGroupId']==_0x17c327['formatGroupId']&&_0x7a7346['subType']==_0x4ae0b9&&Lt(_0x7a7346,_0x28dd07)&&(_0x4c7ee0(_0x7a7346['getRanges'](),_0x2ca30f)||_0x4c7ee0(_0x2ca30f,_0x7a7346['getRanges']()))){for(const _0x5d93ee of _0x2ca30f)_0x7a7346['addRange'](_0x5d93ee);return _0x7a7346;}const _0x28ede2=_0x1702d8(),_0x12b3b8=_0xc0ef27['id'],_0x300b5f='formatBlock:'+_0x4ae0b9,_0x327908=this['_setSuggestionData']({'id':_0x28ede2,'type':_0x300b5f,'data':_0x17c327,'createdAt':new Date(),'authorId':_0x12b3b8,'attributes':_0x28dd07});for(const _0x2e2d5f of _0x2ca30f)this['_addSuggestionMarker'](_0x300b5f,_0x28ede2,_0x12b3b8,_0x2e2d5f,u['getMultiRangeId']());return _0x327908;}['markDeletion'](_0x4b57cc,_0x5713c5=null,_0x31f1cb={}){if(_0x4b57cc['isCollapsed'])return null;const _0x3e83f3=this['editor']['plugins']['get']('Users')['me'],_0x2b51e3=new _0x577a36(_0x4b57cc['start'],_0x4b57cc['end']);for(const {suggestion:_0x22f510,meta:_0x2b2008}of this['_findSuggestions'](_0x2b51e3,'insertion'))if(_0x2b2008['isOwn']&&!_0x2b2008['isNextTo']){if(_0x22f510['isMultiRange']){const _0xe3442b=_0x22f510['getRanges']()['filter'](_0x594ee2=>'$graveyard'!=_0x594ee2['root']['rootName']);_0xe3442b['every'](_0x28b6b4=>_0x2b51e3['containsRange'](_0x28b6b4,!0x0))&&_0x22f510['discard']();if(_0xe3442b['some'](_0x270b20=>_0x270b20['containsRange'](_0x2b51e3,!0x0))){const _0x48c661=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5713c5,'accept');return this['forceDefaultExecution'](()=>_0x48c661([_0x2b51e3],null,_0x31f1cb)),null;}}else{const _0x486b96=_0x2b51e3['getIntersection'](_0x22f510['getFirstRange']());null!==_0x486b96&&_0x22f510['_onDiscard']([_0x486b96],null,_0x31f1cb);}}if(_0x2b51e3['detach'](),_0x2b51e3['isCollapsed']||'$graveyard'==_0x2b51e3['root']['rootName'])return null;let _0x5ed2b3=null,_0x520441=_0x2b51e3['start'],_0x590976=_0x2b51e3['end'];const _0x218853=this['_findSuggestions'](_0x2b51e3,'deletion');for(const {suggestion:_0x59ccd3,meta:_0xa9d732}of _0x218853){const _0x29c7ec=this['_model']['createRange'](_0x520441,_0x590976);if(_0xa9d732['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa9d732['containsRangeInObject']&&!_0xa9d732['isInsideObject'])){if(_0x59ccd3['isMultiRange']){if(!Lt(_0x59ccd3,_0x31f1cb))continue;let _0x1a801e=!0x0;for(const _0x465220 of _0x59ccd3['getRanges']()){if(_0x465220['containsRange'](_0x29c7ec,!0x0))return _0x59ccd3;_0x29c7ec['containsRange'](_0x465220)||(_0x1a801e=!0x1);}_0x1a801e&&_0x59ccd3['discard']();}else{const _0x230d81=_0x59ccd3['getFirstRange']();if(_0x230d81['containsRange'](_0x29c7ec,!0x0))return _0x59ccd3;if(!Lt(_0x59ccd3,_0x31f1cb)){_0x29c7ec['containsRange'](_0x230d81)?_0x59ccd3['removeMarkers']():_0x230d81['containsPosition'](_0x520441)?_0x520441=_0x230d81['end']:_0x230d81['containsPosition'](_0x590976)&&(_0x590976=_0x230d81['start']);continue;}_0x520441=_0x520441['isBefore'](_0x230d81['start'])?_0x520441:_0x230d81['start'],_0x590976=_0x590976['isAfter'](_0x230d81['end'])?_0x590976:_0x230d81['end'],_0x31f1cb=Object['assign']({},_0x59ccd3['attributes']),_0x5ed2b3?_0x230d81['start']['isBefore'](_0x5ed2b3['getFirstRange']()['start'])?(_0x5ed2b3['removeMarkers'](),_0x5ed2b3=_0x59ccd3):_0x59ccd3['removeMarkers']():_0x5ed2b3=_0x59ccd3;}}}if(_0x5ed2b3)return this['_setSuggestionRange'](_0x5ed2b3,this['_model']['createRange'](_0x520441,_0x590976)),_0x5ed2b3;{const _0x793360=_0x1702d8(),_0x592f98=this['_model']['createRange'](_0x520441,_0x590976),_0x52c3a7=_0x3e83f3['id'],_0xf18ee0=_0x5713c5?'deletion:'+_0x5713c5:'deletion',_0x286373=this['_setSuggestionData']({'id':_0x793360,'type':_0xf18ee0,'createdAt':new Date(),'authorId':_0x52c3a7,'attributes':_0x31f1cb});return this['_addSuggestionMarker'](_0xf18ee0,_0x793360,_0x52c3a7,_0x592f98),_0x286373;}}['markMultiRangeDeletion'](_0x39fc1f,_0x3ea71='multi',_0x944274={}){const _0x5d7ebe=this['editor']['plugins']['get']('Users')['me'],_0x11417a=_0x39fc1f['map'](_0x29baeb=>new _0x577a36(_0x29baeb['start'],_0x29baeb['end'])),_0x20f429=new Set();for(const {suggestion:_0x169dcb,meta:_0x65a329}of this['_findSuggestions'](_0x11417a,'insertion'))_0x65a329['isOwn']&&!_0x65a329['isNextTo']&&_0x20f429['add'](_0x169dcb);for(const _0x4dc582 of _0x20f429)if(_0x4dc582['isMultiRange']){const _0xd3871c=_0x4dc582['getRanges']();(!_0x4dc582['attributes']||!_0x4dc582['attributes']['skipNestingCheck'])&&(_0xd3871c['every'](_0x44d1d2=>_0x11417a['some'](_0x2bb5ff=>_0x2bb5ff['containsRange'](_0x44d1d2,!0x0)))&&_0x4dc582['discard']());if(_0x11417a['every'](_0x37ed7d=>_0xd3871c['some'](_0x599d08=>_0x599d08['containsRange'](_0x37ed7d,!0x0)))){const _0x5e88e3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ea71,'accept');return this['forceDefaultExecution'](()=>_0x5e88e3(_0x39fc1f,null,_0x944274)),null;}}else{const _0x22d206=_0x4dc582['getFirstRange']();_0x11417a['some'](_0x1e9ff6=>_0x1e9ff6['containsRange'](_0x22d206,!0x0))&&_0x4dc582['discard']();if(_0x11417a['every'](_0x62b630=>_0x22d206['containsRange'](_0x62b630,!0x0))){const _0x36cbe5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ea71,'accept');return this['forceDefaultExecution'](()=>_0x36cbe5(_0x11417a,null,_0x944274)),null;}}const _0x356c2d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ea71,'join');let _0x261153=null;for(const _0x4e180e of this['getSuggestions']())if(_0x4e180e['author']['id']==_0x5d7ebe['id']&&_0x4e180e['isInContent']&&'deletion'==_0x4e180e['type']&&_0x4e180e['subType']==_0x3ea71&&Lt(_0x4e180e,_0x944274)&&(_0x356c2d(_0x4e180e['getRanges'](),_0x11417a)||_0x356c2d(_0x11417a,_0x4e180e['getRanges']()))){if(_0x261153){if(_0x4e180e['commentThread']&&_0x4e180e['commentThread']['length'])continue;for(const _0x1283cd of _0x4e180e['getRanges']())_0x261153['isIntersectingWithRange'](_0x1283cd)||_0x261153['addRange'](_0x1283cd);_0x4e180e['removeMarkers']();}else{_0x261153=_0x4e180e;for(const _0x21142f of _0x11417a)_0x4e180e['isIntersectingWithRange'](_0x21142f)||_0x4e180e['addRange'](_0x21142f);}}if(_0x261153)return _0x261153;_0x20f429['clear']();for(const {suggestion:_0x2ff817,meta:_0x5884de}of this['_findSuggestions'](_0x11417a,'deletion'))_0x5884de['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5884de['containsRangeInObject']&&!_0x5884de['isInsideObject'])&&Lt(_0x2ff817,_0x944274)&&_0x20f429['add'](_0x2ff817);for(const _0x4974f6 of _0x20f429){const _0x8c3de3=_0x4974f6['getRanges']();if(!_0x944274||!_0x944274['skipNestingCheck']){if(_0x11417a['every'](_0x5ccb2b=>_0x8c3de3['some'](_0x3f677f=>_0x3f677f['containsRange'](_0x5ccb2b,!0x0))))return _0x4974f6;}(!_0x4974f6['attributes']||!_0x4974f6['attributes']['skipNestingCheck'])&&(_0x8c3de3['every'](_0x492c77=>_0x11417a['some'](_0x40520f=>_0x40520f['containsRange'](_0x492c77,!0x0)))&&_0x4974f6['discard']());}const _0x27c97f=_0x1702d8(),_0x422f7e=_0x5d7ebe['id'],_0x329ec8='deletion:'+_0x3ea71,_0x5af083=this['_setSuggestionData']({'id':_0x27c97f,'type':_0x329ec8,'createdAt':new Date(),'authorId':_0x422f7e,'attributes':_0x944274});for(const _0x20636b of _0x11417a)_0x20636b['detach'](),_0x20636b['isCollapsed']||'$graveyard'==_0x20636b['root']['rootName']||this['_addSuggestionMarker'](_0x329ec8,_0x27c97f,_0x422f7e,_0x20636b,u['getMultiRangeId']());return _0x5af083;}['markAttributeChange'](_0x138774,_0x13e62c,_0x3a2a46,_0x4a9afb,_0x2ec5b9){if(_0x138774['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1fb60b=this['editor']['plugins']['get']('Users')['me']['id'],_0xe4cf09=Array['from'](this['_suggestions']['values']())['filter'](_0x2eb6bb=>'attribute'==_0x2eb6bb['type']&&_0x2eb6bb['data']['key']==_0x13e62c&&_0x2eb6bb['isIntersectingWithRange'](_0x138774));if('default'===this['_trackFormatChanges']){const _0x149b37=this['_findSuggestions'](_0x138774,'insertion')['filter'](({meta:_0x12a2aa})=>_0x12a2aa['isOwn']&&!_0x12a2aa['isInsideObject']&&!_0x12a2aa['isNextTo'])['map'](({suggestion:_0x26033e})=>_0x26033e);_0xe4cf09['unshift'](..._0x149b37);}const _0x430a86=new Map([[_0x138774,_0x3a2a46]]);for(const _0x8b78ee of _0xe4cf09){const _0x38d38d='attribute'==_0x8b78ee['type']?_0x8b78ee['data']['oldValue']:void 0x0,_0x388963=_0x8b78ee['getFirstRange'](),_0x2d99bc=Array['from'](_0x430a86['keys']())['find'](_0x56867f=>_0x56867f['isIntersecting'](_0x388963));if(!_0x2d99bc)continue;const _0x892fd4=_0x2d99bc['getDifference'](_0x388963);this['_isBlockAttribute'](_0x13e62c)&&'insertion'==_0x8b78ee['type']&&0x0!=_0x892fd4['length']||(_0x430a86['delete'](_0x2d99bc),_0x892fd4['forEach'](_0x36456a=>{_0x430a86['set'](_0x36456a,_0x3a2a46);}),'insertion'!=_0x8b78ee['type']&&_0x38d38d!=_0x4a9afb&&_0x430a86['set'](_0x2d99bc['getIntersection'](_0x388963),_0x38d38d));}const _0x28118f=[];for(const [_0x4b968a,_0x4fccd3]of _0x430a86){const _0x15487a=_0x1702d8(),_0x122483={'key':_0x13e62c,'oldValue':_0x4fccd3,'newValue':_0x4a9afb};_0x13e62c['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':_0x13e62c});const _0x2e72f4=('attribute:'+(_0x13e62c+'|'+Vt({'newValue':_0x4a9afb})))['substring'](0x0,0x3c),_0x1cc4cf=this['_setSuggestionData']({'id':_0x15487a,'type':_0x2e72f4,'data':_0x122483,'createdAt':new Date(),'authorId':_0x1fb60b,'attributes':_0x2ec5b9});_0x28118f['push'](_0x1cc4cf),this['_addSuggestionMarker'](_0x2e72f4,_0x15487a,_0x1fb60b,_0x4b968a);}return _0x28118f;}['_registerBlockAttribute'](_0x5d8c6b){this['_blockAttributeKeys']['add'](_0x5d8c6b);}['_registerInlineAttribute'](_0x2976b1){this['_inlineAttributeKeys']['add'](_0x2976b1);}['_enableDefaultAttributesIntegration'](_0x222dad,_0x280403=[],_0x55566f=[]){this['enableCommand'](_0x222dad,(_0x3a9aed,..._0x2477de)=>{this['_recordAttributeChanges'](()=>{_0x3a9aed(..._0x2477de);});});for(const _0x8d603e of _0x280403)this['_registerInlineAttribute'](_0x8d603e);for(const _0x1769b6 of _0x55566f)this['_registerBlockAttribute'](_0x1769b6);}['_getAttributeKey'](_0x5b2532){return'attribute'==_0x5b2532['type']?_0x5b2532['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5f1748,_0x2a9d9d){const _0x777840=_0x5f1748['getFirstMarker']();this['_model']['change'](_0xd203c3=>{_0xd203c3['updateMarker'](_0x777840,{'range':_0x2a9d9d});});}['_addThreadToSuggestion'](_0x4beccf){const _0x40e9c0=_0x4beccf['id'],_0x1f46ea=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x40e9c0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1f46ea,'threadId':_0x40e9c0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3e158c=this['_commentsRepository']['getCommentThread'](_0x40e9c0);_0x3e158c['unbind']('isRemovable'),_0x3e158c['isRemovable']=!0x1,_0x4beccf['commentThread']=_0x3e158c;}['_checkSuggestionCorrectness'](_0x52b611,_0x179fa3,_0x53774f,_0x88f143){if(_0x52b611['type']!=_0x179fa3||_0x52b611['subType']!=_0x53774f||_0x52b611['creator']['id']!=_0x88f143)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x215eab('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x43fe22,_0x187cb4){const _0x2f523b=_0x43fe22['getFirstRange']();if(_0x187cb4['isEqual'](_0x2f523b))_0x43fe22['removeMarkers']();else{if(_0x2f523b['containsRange'](_0x187cb4)){const _0x1f6a58=this['_model']['createPositionAt'](_0x187cb4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x43fe22,this['_model']['createRange'](_0x2f523b['start'],_0x1f6a58));const _0x306c75=_0x1702d8(),_0xea1ef0=_0x43fe22['creator']['id'],_0x18f8fe=_0x43fe22['type']+':'+_0x43fe22['subType'];this['_setSuggestionData']({'id':_0x306c75,'type':_0x18f8fe,'createdAt':new Date(),'authorId':_0xea1ef0,'data':_0x43fe22['data'],'attributes':_0x43fe22['attributes']});const _0x27c0cc=this['_model']['createPositionAt'](_0x187cb4['end']['parent'],'after'),_0x27f574=this['_model']['createRange'](_0x27c0cc,_0x2f523b['end']);this['_addSuggestionMarker'](_0x18f8fe,_0x306c75,_0xea1ef0,_0x27f574);}else{if(_0x2f523b['containsPosition'](_0x187cb4['start'])){const _0x2e1584=this['_model']['createPositionAt'](_0x187cb4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x43fe22,this['_model']['createRange'](_0x2f523b['start'],_0x2e1584));}else{const _0x289174=this['_model']['createPositionAt'](_0x187cb4['end']['parent'],'after');this['_setSuggestionRange'](_0x43fe22,this['_model']['createRange'](_0x289174,_0x2f523b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x47a539){for(const {suggestion:_0x29697b,meta:_0x181df8}of this['_findSuggestions'](_0x47a539,'insertion')){if(!_0x181df8['isOwn'])continue;const _0x423f4b=_0x29697b['getRanges']();for(const _0x35583a of _0x423f4b)if(!_0x47a539['getDifference'](_0x35583a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xe2a66b){const _0x1536d4=this['editor']['plugins']['get']('Users')['getUser'](_0xe2a66b);if(!_0x1536d4)throw new _0x215eab('track-changes-user-not-found',this);return _0x1536d4;}['_getExternalAuthor'](_0x4d0f43){const _0x2d69c4=this['editor']['plugins']['get']('Users'),_0x57e5d9=_0x37c9d3('external:'+_0x4d0f43),_0x410e12=_0x2d69c4['getUser'](_0x57e5d9);return _0x410e12||_0x2d69c4['addUser']({'id':_0x57e5d9,'name':_0x4d0f43});}['_createSuggestion'](_0x598297,_0x56b266,_0x3e6e63,_0x55da46,_0x4e6a8c){const _0x22ba03=this['_getAuthorFromId'](_0x55da46),_0x4ee6ef=this['_suggestionFactory']['buildSuggestion'](_0x598297,_0x56b266,_0x3e6e63,_0x22ba03,_0x4e6a8c,_0x44eb78=>{this['_updateSuggestionData'](_0x3e6e63,{'attributes':_0x44eb78});const _0x53f252=this['getSuggestion'](_0x3e6e63);this['_joinWithAdjacentSuggestions'](new Set([_0x53f252])),this['_refreshSuggestionsChain'](new Set([_0x53f252]));});return this['listenTo'](_0x4ee6ef,'accept',()=>{this['_updateSuggestionData'](_0x3e6e63,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4ee6ef,'discard',()=>{this['_updateSuggestionData'](_0x3e6e63,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3e6e63,_0x4ee6ef),this['_suggestionState']['set'](_0x4ee6ef,'notReady'),_0x4ee6ef;}['_splitMarkerName'](_0x4de40a){const _0x534dd6=_0x4de40a['split'](':');return{'group':_0x534dd6[0x0],'type':_0x534dd6[0x1],'subType':_0x534dd6['length']>=0x5?_0x534dd6[0x2]:null,'id':_0x534dd6['length']<0x5?_0x534dd6[0x2]:_0x534dd6[0x3],'authorId':_0x534dd6['length']<0x5?_0x534dd6[0x3]:_0x534dd6[0x4],'markerCount':0x6==_0x534dd6['length']?_0x534dd6[0x5]:null};}['_breakSuggestionMarker'](_0x37419d,_0x29a885,_0x59f839){const _0x253b4d=_0x37419d['getFirstRange'](),_0x52284a=_0x253b4d['start'],_0x481e42=_0x253b4d['end'];this['_setSuggestionRange'](_0x37419d,this['_model']['createRange'](_0x52284a,_0x29a885));const _0x5e1278=_0x1702d8(),_0x41d92c=_0x37419d['creator']['id'],_0xcb4afb=_0x37419d['type']+(_0x37419d['subType']?':'+_0x37419d['subType']:'');this['_setSuggestionData']({'id':_0x5e1278,'type':_0xcb4afb,'createdAt':new Date(),'authorId':_0x41d92c,'originalSuggestionId':_0x37419d['id'],'attributes':_0x37419d['attributes'],'data':_0x37419d['data']});const _0x2fd3f0=this['_getAttributeKey'](_0x37419d);('formatBlock'==_0x37419d['type']||_0x2fd3f0&&this['_isBlockAttribute'](_0x2fd3f0))&&(_0x59f839=this['_model']['createPositionBefore'](_0x59f839['parent'])),this['_addSuggestionMarker'](_0xcb4afb,_0x5e1278,_0x41d92c,this['_model']['createRange'](_0x59f839,_0x481e42));}['_findSuggestions'](_0x46ffb6,_0x262d06=null){const _0x483c49=[],_0x5e23b9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x46ffb6)||(_0x46ffb6=[_0x46ffb6]);for(const _0x339f15 of this['getSuggestions']()){if(!_0x339f15['isInContent'])continue;if(_0x262d06&&_0x339f15['type']!=_0x262d06)continue;let _0x1e1f3c=!0x1;for(const _0x44662a of _0x339f15['getRanges']()){for(const _0x5c28fa of _0x46ffb6){const _0x318da2=_0x5c28fa['start']['isEqual'](_0x44662a['end'])||_0x5c28fa['end']['isEqual'](_0x44662a['start']);if(_0x318da2||_0x5c28fa['getIntersection'](_0x44662a)){const _0x577043=_0x5c28fa['containsRange'](_0x44662a)&&Rt(this['_model']['schema'],_0x44662a['start'],_0x5c28fa),_0x20b82c=_0x44662a['containsRange'](_0x5c28fa)&&Rt(this['_model']['schema'],_0x5c28fa['start'],_0x44662a);_0x483c49['push']({'suggestion':_0x339f15,'meta':{'isOwn':_0x5e23b9==_0x339f15['author'],'isNextTo':_0x318da2,'isInsideObject':_0x577043,'containsRangeInObject':_0x20b82c}}),_0x1e1f3c=!0x0;break;}}if(_0x1e1f3c)break;}}return _0x483c49;}['_addSuggestionMarker'](_0x9aff2a,_0x17626c,_0xd0e10e,_0x106388,_0x3ee7c5){this['_model']['change'](_0x2ca4b7=>{let _0x3da8fe='suggestion:'+_0x9aff2a+':'+_0x17626c+':'+_0xd0e10e;_0x3ee7c5&&(_0x3da8fe=_0x3da8fe+':'+_0x3ee7c5),_0x2ca4b7['addMarker'](_0x3da8fe,{'range':_0x106388,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x18b255){const _0x424741=_0x18b255['previous'],_0x384c1f=_0x18b255['next'];_0x18b255['previous']=null,_0x18b255['next']=null,null!=_0x424741&&_0x424741['next']==_0x18b255&&(_0x424741['next']=_0x384c1f),null!=_0x384c1f&&_0x384c1f['previous']==_0x18b255&&(_0x384c1f['previous']=_0x424741),'ready'==this['_suggestionState']['get'](_0x18b255)&&(this['_suggestionState']['set'](_0x18b255,'removed'),this['fire']('suggestionUnloaded',_0x18b255,_0x424741,_0x384c1f));}['_setSuggestionData'](_0x53b346){const _0x3673a4=_0x53b346['id'],_0x5b93e9=this['addSuggestionData'](_0x53b346);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x27ac3a=this['editor']['plugins']['get']('PendingActions'),_0xa4a0cb=_0x5b93e9['hasComments'],_0x1669ab=_0x5b93e9['subType']?_0x5b93e9['type']+':'+_0x5b93e9['subType']:_0x5b93e9['type'],_0x4b7eae=this['editor']['locale'],_0x363380=_0x27ac3a['add'](o(_0x4b7eae,'PENDING_ACTION_SUGGESTION')),_0x151827={'id':_0x3673a4,'type':_0x1669ab,'hasComments':_0xa4a0cb,'data':_0x53b346['data']||null,'originalSuggestionId':_0x53b346['originalSuggestionId']||null,'attributes':_0x5b93e9['attributes']};this['_adapter']['addSuggestion'](_0x151827)['then'](_0x55926f=>{_0x5b93e9['_saved']=!0x0,_0x27ac3a['remove'](_0x363380),_0x55926f&&_0x55926f['createdAt']&&(this['_suggestions']['get'](_0x3673a4)['createdAt']=_0x55926f['createdAt']);})['catch'](_0xa23213=>{throw _0x234e6d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5b93e9['discard']();}),_0x5b93e9['stopListening'](),this['_suggestions']['delete'](_0x5b93e9['id']),this['_suggestionState']['delete'](_0x5b93e9),_0xa23213;});}return _0x5b93e9;}['_isBlockAttribute'](_0x321a96){return this['_blockAttributeKeys']['has'](_0x321a96);}['_updateSuggestionData'](_0x338634,_0x20fc3a){const _0x5da0fc=this['editor']['plugins']['get']('PendingActions'),_0x477c79=this['getSuggestion'](_0x338634);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x477c79['_saved']){const _0x5360db=_0x5da0fc['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x338634,_0x20fc3a)['then'](()=>{_0x5da0fc['remove'](_0x5360db);});}else _0x477c79['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x338634,_0x20fc3a);});}}['_getSuggestionData'](_0x941ee4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x215eab('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x941ee4);}['_handleNewSuggestionMarker'](_0x11f2ac){const {id:_0x33f3da,type:_0xbb3fa8,subType:_0xea8f58,authorId:_0x36c1e3}=this['_splitMarkerName'](_0x11f2ac),_0xac34b8=this['_suggestions']['get'](_0x33f3da)||this['_createSuggestion'](_0xbb3fa8,_0xea8f58,_0x33f3da,_0x36c1e3,{});switch(this['_checkSuggestionCorrectness'](_0xac34b8,_0xbb3fa8,_0xea8f58,_0x36c1e3),this['_suggestionState']['get'](_0xac34b8)){case'notReady':this['_getSuggestionData'](_0x33f3da)['then'](_0x4c00ca=>{let _0x5aa7cd=Promise['resolve']();_0x4c00ca['hasComments']&&(_0x5aa7cd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x33f3da})),_0x5aa7cd['then'](()=>{this['addSuggestionData'](_0x4c00ca)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xac34b8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x33f3da,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xac34b8,'ready'),this['fire']('suggestionLoaded',_0xac34b8);break;case'ready':this['fire']('suggestionChanged',_0xac34b8);}return _0xac34b8['addMarkerName'](_0x11f2ac),_0xac34b8;}['_refreshSuggestionsChain'](_0x237364){const _0x5eb05=Array['from'](_0x237364),_0x9ea16e=_0x5eb05['filter'](_0x5be585=>'attribute'==_0x5be585['type']);this['_refreshAttributeSuggestionsChain'](_0x9ea16e);const _0x3bd211=_0x5eb05['filter'](_0x41d235=>!_0x41d235['isMultiRange']&&'attribute'!=_0x41d235['type']),_0x73bcfd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d6b1d=>!_0x5d6b1d['isMultiRange']&&'attribute'!=_0x5d6b1d['type']),_0x534bbb=_0x73bcfd['filter'](_0x323098=>!_0x237364['has'](_0x323098)),_0x30db64=new Map(_0x73bcfd['map'](_0x171df8=>[_0x171df8,this['_suggestionFactory']['getSuggestionCallback'](_0x171df8['type'],_0x171df8['subType'],'chain')])),_0x119d49=new Map(_0x73bcfd['map'](_0x3d6447=>[_0x3d6447,_0x3d6447['getFirstRange']()])),_0x1ce9cc=new Set(),_0x46ac76=new Set();for(let _0x1efa15=0x0;_0x1efa15<_0x3bd211['length'];_0x1efa15++)_0x492955(_0x3bd211[_0x1efa15],_0x3bd211,_0x1efa15+0x1);for(let _0x2ac4ed=0x0;_0x2ac4ed<_0x3bd211['length'];_0x2ac4ed++)_0x492955(_0x3bd211[_0x2ac4ed],_0x534bbb,0x0);const _0x579b8b=new Set();for(let _0x1e9505=0x0;_0x1e9505<_0x3bd211['length'];_0x1e9505++){const _0x2d5896=_0x3bd211[_0x1e9505];!_0x46ac76['has'](_0x2d5896)&&_0x2d5896['previous']&&(_0x579b8b['add'](_0x2d5896['previous']),_0x2d5896['previous']['next']===_0x2d5896&&(_0x2d5896['previous']['next']=null),_0x2d5896['previous']=null),!_0x1ce9cc['has'](_0x2d5896)&&_0x2d5896['next']&&(_0x579b8b['add'](_0x2d5896['next']),_0x2d5896['next']['previous']===_0x2d5896&&(_0x2d5896['next']['previous']=null),_0x2d5896['next']=null);}function _0x492955(_0x5649b8,_0x512435,_0x52dd32){for(let _0x3d77f3=_0x52dd32;_0x3d77f3<_0x512435['length'];_0x3d77f3++){const _0x31a67a=_0x30d850(_0x5649b8,_0x512435[_0x3d77f3]);_0x31a67a&&(_0x31a67a[0x0]['next']=_0x31a67a[0x1],_0x31a67a[0x1]['previous']=_0x31a67a[0x0],_0x1ce9cc['add'](_0x31a67a[0x0]),_0x46ac76['add'](_0x31a67a[0x1]));}}function _0x30d850(_0xa1baf2,_0x59f9c8){if(_0xa1baf2['author']['id']!==_0x59f9c8['author']['id'])return null;const _0x2edeb5=_0x30db64['get'](_0xa1baf2)(_0xa1baf2,_0x59f9c8,_0x119d49['get'](_0xa1baf2),_0x119d49['get'](_0x59f9c8));if(!_0x2edeb5)return null;return _0x30db64['get'](_0x59f9c8)(_0xa1baf2,_0x59f9c8,_0x119d49['get'](_0xa1baf2),_0x119d49['get'](_0x59f9c8))?_0x2edeb5[0x1]['commentThread']&&_0x2edeb5[0x1]['commentThread']['length']?null:_0x2edeb5:null;}_0x579b8b['size']&&this['_refreshSuggestionsChain'](_0x579b8b);}['_refreshAttributeSuggestionsChain'](_0x12f10c){if(0x0==_0x12f10c['length'])return;const _0xe599fc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x310d06=>'attribute'==_0x310d06['type']&&_0x310d06['_isDataLoaded']),_0x5ae7bb=[],_0x5b7143=new Map();for(const _0x5e6dea of _0xe599fc){const _0x4ea641=_0x37c9d3(_0x5e6dea['attributes']);_0x5b7143['has'](_0x4ea641)||(_0x5b7143['set'](_0x4ea641,_0x5ae7bb['length']),_0x5ae7bb['push']([]));const _0x26125a=_0x5b7143['get'](_0x4ea641);_0x5ae7bb[_0x26125a]['push'](_0x5e6dea);}!(function(){_0x5ae7bb['sort']((_0x2cca4f,_0x3a5a05)=>{const _0x2a3165=_0x2cca4f[0x0]['createdAt'],_0x418964=_0x3a5a05[0x0]['createdAt'];return _0x2a3165==_0x418964?_0x2cca4f[0x0]['attributes']['groupId']<_0x3a5a05[0x0]['attributes']['groupId']?-0x1:0x1:_0x2a3165<_0x418964?-0x1:0x1;});for(const _0x41cbca of _0x5ae7bb)_0x41cbca['sort']((_0x5cd55a,_0x2c543c)=>_0x5cd55a['id']<_0x2c543c['id']?-0x1:0x1);}());for(let _0x224f84=0x0;_0x224f84<_0x5ae7bb['length'];_0x224f84++){if(0x0==_0x5ae7bb[_0x224f84]['length'])continue;const _0x51245d=[];for(let _0x2f3028=_0x224f84+0x1;_0x2f3028<_0x5ae7bb['length'];_0x2f3028++)0x0!=_0x5ae7bb[_0x2f3028]['length']&&_0x62df66(_0x5ae7bb[_0x224f84],_0x5ae7bb[_0x2f3028])&&_0x51245d['push'](_0x2f3028);for(const _0x58fe0d of _0x51245d)_0x5ae7bb[_0x224f84]=_0x5ae7bb[_0x224f84]['concat'](_0x5ae7bb[_0x58fe0d]),_0x5ae7bb[_0x58fe0d]=[];}for(const _0x21347a of _0x5ae7bb)for(let _0x55ced6=0x0;_0x55ced6<_0x21347a['length'];_0x55ced6++)_0x21347a[_0x55ced6]['next']=_0x21347a[_0x55ced6+0x1]||null;for(const _0x58e456 of _0x5ae7bb)for(let _0x3655d1=0x0;_0x3655d1<_0x58e456['length'];_0x3655d1++)_0x58e456[_0x3655d1]['previous']=_0x58e456[_0x3655d1-0x1]||null;function _0x62df66(_0x17f7be,_0xfb8752){if(_0x17f7be[0x0]['attributes']['groupId']!==_0xfb8752[0x0]['attributes']['groupId']&&_0x17f7be[0x0]['author']!==_0xfb8752[0x0]['author'])return!0x1;if(!function(_0x524406,_0x28236a){if(!_0x524406['hasComments']&&!_0x28236a['hasComments'])return!0x0;if(_0x524406['hasComments']&&_0x28236a['hasComments'])return!0x1;if(_0x524406['hasComments']&&_0x28236a['createdAt']<_0x524406['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x28236a['hasComments']&&_0x524406['createdAt']<_0x28236a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x17f7be[0x0],_0xfb8752[0x0]))return!0x1;const _0x63a3d1=Bt(_0x17f7be[0x0]['attributes'],'groupId'),_0x2ec3f5=Bt(_0xfb8752[0x0]['attributes'],'groupId');if(!_0x2b8b8c(_0x63a3d1,_0x2ec3f5))return!0x1;return!!_0x17f7be['every'](_0x1eb989=>_0xfb8752['some'](_0x26ba3f=>_0x1eb989['getFirstRange']()['isEqual'](_0x26ba3f['getFirstRange']())))&&_0xfb8752['every'](_0x33feca=>_0x17f7be['some'](_0x2ddc2e=>_0x33feca['getFirstRange']()['isEqual'](_0x2ddc2e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2542db){const _0x38fa62=Array['from'](_0x2542db),_0x580ec6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x293885=_0x580ec6['filter'](_0xdcc40e=>!_0x2542db['has'](_0xdcc40e)),_0x125e6b=new Map(_0x38fa62['map'](_0x252114=>[_0x252114,this['_suggestionFactory']['getSuggestionCallback'](_0x252114['type'],_0x252114['subType'],'join')])),_0x21f9b5=new Map(_0x580ec6['map'](_0xcbc634=>[_0xcbc634,_0xcbc634['getRanges']()]));for(let _0x1857fa=0x0;_0x1857fa<_0x38fa62['length'];_0x1857fa++){if(_0x181bef(this,_0x38fa62[_0x1857fa],_0x38fa62,_0x1857fa+0x1))return!0x0;}for(let _0x9539f3=0x0;_0x9539f3<_0x38fa62['length'];_0x9539f3++){if(_0x181bef(this,_0x38fa62[_0x9539f3],_0x293885,0x0))return!0x0;}return!0x1;function _0x181bef(_0x4a9e2a,_0x8acb4c,_0x13ea3b,_0x3ff9ff){for(let _0x1c81c7=_0x3ff9ff;_0x1c81c7<_0x13ea3b['length'];_0x1c81c7++){const _0x2ddbbe=_0x13ea3b[_0x1c81c7];if(_0x2ddbbe['type']!==_0x8acb4c['type']||_0x2ddbbe['author']['id']!==_0x8acb4c['author']['id']||_0x2ddbbe['subType']!==_0x8acb4c['subType'])continue;if(!Pt(_0x8acb4c,_0x2ddbbe,['groupId']))continue;if('attribute'==_0x8acb4c['type']&&_0x8acb4c['data']['oldValue']!=_0x2ddbbe['data']['oldValue'])continue;if('attribute'==_0x8acb4c['type']&&_0x4a9e2a['_isBlockAttribute'](_0x8acb4c['data']['key']))continue;if('formatBlock'==_0x8acb4c['type']){const _0x4765fa=_0x4a9e2a['editor']['model'],_0x123670=_0x8acb4c['getContainedElement']();if(_0x123670&&(_0x4765fa['schema']['isObject'](_0x123670)||_0x4765fa['schema']['isLimit'](_0x123670)))continue;}const _0x5c2911=_0x125e6b['get'](_0x8acb4c),_0x4dc8ae=_0x21f9b5['get'](_0x8acb4c),_0x351cff=_0x21f9b5['get'](_0x2ddbbe),_0x17120b=_0x8acb4c['commentThread']&&_0x8acb4c['commentThread']['length'],_0x5f421e=_0x2ddbbe['commentThread']&&_0x2ddbbe['commentThread']['length'];if(!_0x17120b&&_0x5c2911(_0x351cff,_0x4dc8ae))return _0x4a9e2a['_joinSuggestions'](_0x2ddbbe,_0x8acb4c),_0x21f9b5['delete'](_0x8acb4c),!0x0;if(!_0x5f421e&&_0x5c2911(_0x4dc8ae,_0x351cff))return _0x4a9e2a['_joinSuggestions'](_0x8acb4c,_0x2ddbbe),_0x21f9b5['delete'](_0x2ddbbe),!0x0;}return!0x1;}}['_joinSuggestions'](_0xd5a6cb,_0x21a04f){if(_0xd5a6cb['isMultiRange']){for(const _0x3e2745 of _0x21a04f['getRanges']())_0xd5a6cb['addRange'](_0x3e2745);}else{const _0x788c2b=_0x21a04f['getFirstRange']()['end'];this['_setSuggestionRange'](_0xd5a6cb,this['_model']['createRange'](_0xd5a6cb['getFirstRange']()['start'],_0x788c2b));}_0x21a04f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x199814,_0x53f12c){const _0x3c5a10=_0x199814['startsWith']('format')||_0x199814['startsWith']('attribute')?'FORMATTING':_0x199814['toUpperCase']();return o(this['editor']['locale'],_0x53f12c+'_'+_0x3c5a10+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x49f261=this['editor'];if(!_0x49f261['ui'])return;const {ariaLiveAnnouncer:_0x1ad62d}=_0x49f261['ui'];_0x22e895(this['_model'],({left:_0x46d3a0,entered:_0x31dcbc})=>{for(const _0x290bb9 of _0x46d3a0){const {group:_0xb82257,type:_0x4d3fc2}=this['_splitMarkerName'](_0x290bb9['name']);if('suggestion'===_0xb82257){_0x1ad62d['announce'](this['_getMarkerAnnouncementText'](_0x4d3fc2,'LEAVE'));break;}}for(const _0x26d16c of _0x31dcbc){const {group:_0x1dab4d,type:_0x4453c7}=this['_splitMarkerName'](_0x26d16c['name']);if('suggestion'===_0x1dab4d){_0x1ad62d['announce'](this['_getMarkerAnnouncementText'](_0x4453c7,'ENTER'));break;}}});}['_processAttributeChanges'](_0x9aa9a4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x364f84=this['editor'],_0x123496=_0x364f84['model']['document']['differ']['getChanges']();if(0x0==_0x123496['length'])return!0x1;const _0x1bc957=[],_0x3da93b=_0x123496['filter'](_0x3f0933=>'attribute'==_0x3f0933['type']),_0x3414a4=_0x123496['filter'](_0x2c5463=>'insert'==_0x2c5463['type']&&'$text'!=_0x2c5463['name']),_0x68ccce=_0x123496['filter'](_0x140f28=>'remove'==_0x140f28['type']&&'$text'!=_0x140f28['name']);for(const _0x88a976 of _0x3da93b)_0x1bc957['push']({'key':_0x88a976['attributeKey'],'newValue':_0x88a976['attributeNewValue'],'oldValue':_0x88a976['attributeOldValue'],'range':Ot(_0x88a976['range'],_0x364f84['model'])});for(const _0x37272f of _0x3414a4){const _0x167cb=_0x68ccce['find'](_0x1eee8e=>_0x1eee8e['position']['isEqual'](_0x37272f['position']));_0x167cb&&_0x1bc957['push']({'key':m,'newValue':_0x37272f['name'],'oldValue':_0x167cb['name'],'range':_0x364f84['model']['createRangeOn'](_0x37272f['position']['nodeAfter'])});}return 0x0!=_0x1bc957['length']&&this['_reduceExistingSuggestions'](_0x9aa9a4,_0x1bc957);}['_processAttributeSuggestions'](_0x13a107){let _0x31ecc8=!0x1;const _0x5e4107=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x31ae76=>_0x31ae76['data']['newRange']&&_0x31ae76['name']['startsWith']('suggestion:attribute:'));for(const _0xdd54f2 of _0x5e4107){const {subType:_0x534e2c,id:_0x628d6b}=this['_splitMarkerName'](_0xdd54f2['name']),_0x46c83d=_0x534e2c['split']('|')[0x0];for(const _0x21f8f7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x21f8f7['id']!=_0x628d6b&&'attribute'==_0x21f8f7['type']&&_0x21f8f7['data']&&_0x21f8f7['data']['key']==_0x46c83d&&_0x21f8f7['getFirstRange']()['isIntersecting'](_0xdd54f2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x21f8f7,_0xdd54f2['data']['newRange'],_0x13a107),_0x31ecc8=!0x0);}return _0x31ecc8;}['_recordAttributeChanges'](_0x4bf42f){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4bf42f();}['_isRegisteredAttribute'](_0xf0ac30){const _0x30b40c=this['_isBlockAttribute'](_0xf0ac30),_0x370691=this['_inlineAttributeKeys']['has'](_0xf0ac30);return _0x30b40c||_0x370691;}['_reduceExistingSuggestions'](_0x5893fe,_0x5e0e70){if(0x0==_0x5e0e70['length'])return!0x1;let _0x339347=!0x1;for(const _0x11d1da of _0x5e0e70){const _0x5b606c=this['_findSuggestions'](_0x11d1da['range'],'attribute')['filter'](_0xe47149=>!_0xe47149['meta']['isNextTo'])['map'](_0x49a731=>_0x49a731['suggestion']),_0x30ee64=_0x37c9d3({'newValue':_0x11d1da['newValue']});_0x5b606c['filter'](_0x239918=>{const [_0x42c737,_0x1f6c04]=_0x239918['subType']['split']('|');return _0x42c737==_0x11d1da['key']&&_0x1f6c04!=_0x30ee64;})['forEach'](_0x5cdc20=>{this['_reduceSuggestionAttributeRange'](_0x5cdc20,_0x11d1da['range'],_0x5893fe),_0x339347=!0x0;});}return _0x339347;}['_reduceSuggestionAttributeRange'](_0x4fefd1,_0x5d0bd5,_0x87cbea){const _0x4a6893=_0x4fefd1['getFirstRange']()['getDifference'](_0x5d0bd5);0x0!==_0x4a6893['length']?0x1!==_0x4a6893['length']?this['_breakSuggestionMarker'](_0x4fefd1,_0x5d0bd5['start'],_0x5d0bd5['end']):this['_setSuggestionRange'](_0x4fefd1,_0x4a6893[0x0]):_0x87cbea['removeMarker'](_0x4fefd1['getFirstMarker']());}constructor(_0x4a5928){function _0x55782c(_0x320841){return _0x320841['map'](_0x14ca99=>String['fromCharCode'](_0x14ca99))['join']('');}super(_0x4a5928),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2a2d71,_0x598e21,_0x89190b,_0x5368e4)=>{this['_model']['change'](()=>{for(const _0x18b0a8 of[..._0x5368e4,..._0x89190b])this['_model']['markers']['has'](_0x18b0a8)&&_0x4a5928['editing']['reconvertMarker'](_0x18b0a8);});}),this['_descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4a5928['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4a5928['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4a5928['config']['get']('trackChanges.trackFormatChanges'),_0x4a5928['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4a5928['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x4a5928,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x55782c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x55782c([0x34,0x30,0x34,0x38,0x30,0x38,0x36,0x30]);}}class xt{['buildSuggestion'](_0x187ca8,_0x52bfab,_0x17a1ad,_0x20a24d,_0x22bae4,_0xc8a54b){return new u(this['_model'],{'type':_0x187ca8,'subType':_0x52bfab,'id':_0x17a1ad,'author':_0x20a24d,'creator':_0x20a24d,'attributes':_0x22bae4,'onAttributesChange':_0xc8a54b,'onAccept':(..._0x2f6690)=>this['getSuggestionCallback'](_0x187ca8,_0x52bfab,'accept')(..._0x2f6690),'onDiscard':(..._0x13fd44)=>this['getSuggestionCallback'](_0x187ca8,_0x52bfab,'discard')(..._0x13fd44)});}['registerCustomCallback'](_0xfb0307,_0x5e58b1,_0x3e9050,_0x47959a){const _0x12f019=_0xfb0307+':'+_0x5e58b1+':'+_0x3e9050;this['_customCallbacks']['set'](_0x12f019,_0x47959a);}['getSuggestionCallback'](_0x7d43dc,_0x2cef00,_0x18e8fe){const _0x4e3bd1=_0x7d43dc+':'+_0x2cef00+':'+_0x18e8fe;return this['_customCallbacks']['get'](_0x4e3bd1)||this['_defaultCallbacks']['get'](_0x7d43dc+':'+_0x18e8fe);}['_registerDefaultCallbacks'](){const _0x122b03=()=>!0x1,_0x4a873c=_0x2c91e2=>{_0x2c91e2['sort']((_0x256f17,_0x380739)=>_0x256f17['start']['isBefore'](_0x380739['start'])?0x1:-0x1),this['_model']['change'](_0x529877=>{for(const _0x506a79 of _0x2c91e2){let _0x220a55;_0x220a55=_0x506a79['end']['isAtEnd']&&_0x506a79['end']['parent']==_0x506a79['start']['nodeAfter']?_0x529877['createSelection'](_0x506a79['start']['nodeAfter'],'on'):_0x529877['createSelection'](_0x506a79),this['_model']['deleteContent'](_0x220a55,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x50b5a3=(_0x5b2595,_0xbfef9a)=>{_0xbfef9a&&this['_model']['change'](_0x442578=>{const {commandName:_0x49089a,commandParams:_0x4aabcb=[]}=_0xbfef9a,_0xa5354e=_0x5b2595['map'](_0x2a9f98=>(Tt(_0x2a9f98)&&(_0x2a9f98=this['_model']['createRange'](_0x2a9f98['end'])),_0x2a9f98))['filter'](_0x34c373=>'$graveyard'!==_0x34c373['root']['rootName']);if(_0xa5354e['length']<0x1)return;const _0xda997c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x461ec7=>_0x577a36['fromRange'](_0x461ec7));_0x442578['setSelection'](_0xa5354e);for(const _0x3deefa of this['_editor']['commands']['commands']())_0x3deefa['refresh']();_0x4aabcb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x49089a,..._0x4aabcb);const _0x2f504f=_0xda997c['filter'](_0x5504a5=>'$graveyard'!=_0x5504a5['root']['rootName']);_0x2f504f['length']>0x0&&_0x442578['setSelection'](_0x2f504f);for(const _0xfbb512 of _0xda997c)_0xfbb512['detach']();});},_0x3c24f0=(_0x43d1df,_0x37cab7)=>0x1==_0x43d1df['length']&&0x1==_0x37cab7['length']&&_0x43d1df[0x0]['end']['isEqual'](_0x37cab7[0x0]['start']),_0x51c7d6=(_0x41222c,_0x27a546,_0x5ad27a,_0x5d738a)=>Ft(_0x41222c,_0x27a546,_0x5ad27a,_0x5d738a,this['_model'])?[_0x41222c,_0x27a546]:Ft(_0x27a546,_0x41222c,_0x5d738a,_0x5ad27a,this['_model'])?[_0x27a546,_0x41222c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x122b03),this['_defaultCallbacks']['set']('insertion:discard',_0x4a873c),this['_defaultCallbacks']['set']('insertion:join',_0x3c24f0),this['_defaultCallbacks']['set']('insertion:chain',_0x51c7d6),this['_defaultCallbacks']['set']('deletion:accept',_0x4a873c),this['_defaultCallbacks']['set']('deletion:discard',_0x122b03),this['_defaultCallbacks']['set']('deletion:join',_0x3c24f0),this['_defaultCallbacks']['set']('deletion:chain',_0x51c7d6),this['_defaultCallbacks']['set']('formatInline:accept',_0x50b5a3),this['_defaultCallbacks']['set']('formatInline:discard',_0x122b03),this['_defaultCallbacks']['set']('formatInline:join',_0x3c24f0),this['_defaultCallbacks']['set']('formatInline:chain',_0x122b03),this['_defaultCallbacks']['set']('formatBlock:accept',_0x50b5a3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x122b03),this['_defaultCallbacks']['set']('formatBlock:join',_0x3c24f0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x122b03),this['_defaultCallbacks']['set']('attribute:accept',_0x122b03),this['_defaultCallbacks']['set']('attribute:discard',(_0x4aee77,_0x20d4c8)=>{if(!_0x20d4c8)return;const _0x18de2e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xcdf222=>{if(_0x20d4c8['key']==m)for(const _0x546d0f of _0x4aee77){const _0x53f939=_0x546d0f['start']['nodeAfter'],_0x6a2c8e=_0x20d4c8['oldValue'];_0xcdf222['rename'](_0x53f939,_0x6a2c8e);}else{if(_0x18de2e['_isBlockAttribute'](_0x20d4c8['key'])){for(const _0xa6e32d of _0x4aee77)void 0x0!==_0x20d4c8['oldValue']?_0xcdf222['setAttribute'](_0x20d4c8['key'],_0x20d4c8['oldValue'],_0xa6e32d['start']['nodeAfter']):_0xcdf222['removeAttribute'](_0x20d4c8['key'],_0xa6e32d['start']['nodeAfter']);}else{for(const _0x138ead of _0x4aee77)_0x20d4c8['oldValue']?_0xcdf222['setAttribute'](_0x20d4c8['key'],_0x20d4c8['oldValue'],_0x138ead):_0xcdf222['removeAttribute'](_0x20d4c8['key'],_0x138ead);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3c24f0);}constructor(_0x1b8d40){this['_editor']=_0x1b8d40,this['_model']=_0x1b8d40['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0xd46d93,_0x2ba455,_0xb2bb1f){for(const _0x44e2a2 of _0x2ba455['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x44e2a2['root']==_0x44e2a2)return!0x1;if(!_0xb2bb1f['containsItem'](_0x44e2a2))return!0x1;if(_0xd46d93['isObject'](_0x44e2a2)||_0xd46d93['isLimit'](_0x44e2a2))return!0x0;}return!0x1;}function Tt(_0x212671){return _0x212671['end']['parent']==_0x212671['start']['nodeAfter']&&_0x212671['end']['isAtStart'];}function Et(_0xe1b50e,_0x17bd67,_0x26c439,_0x3148ec){const _0x2f19a7=_0x35acbe=>!_0x35acbe['item']['is']('$textProxy')&&!_0x3148ec['isObject'](_0x35acbe['item']),_0x308d3b=_0xe1b50e['start']['getLastMatchingPosition'](_0x2f19a7),_0x503b17=_0xe1b50e['end']['getLastMatchingPosition'](_0x2f19a7,{'direction':'backward'});return(!_0xe1b50e['start']['isEqual'](_0x308d3b)||!_0xe1b50e['end']['isEqual'](_0x503b17))&&(_0x308d3b['isBefore'](_0x503b17)?_0x26c439['updateMarker'](_0x17bd67,{'range':_0x26c439['createRange'](_0x308d3b,_0x503b17)}):_0x26c439['removeMarker'](_0x17bd67),!0x0);}function Vt(_0x4c7b21){return _0x37c9d3(_0x4c7b21);}function Ut(_0x5d1354){const _0xba4919=_0x5d1354['start']['nodeAfter'];return _0xba4919&&_0xba4919['is']('element');}function Ot(_0x5cddf7,_0x2282f3){return null==_0x5cddf7['end']['nodeBefore']&&_0x5cddf7['end']['parent']==_0x5cddf7['start']['nodeAfter']?Gt(_0x5cddf7['start']['nodeAfter'],_0x2282f3):_0x5cddf7;}function Gt(_0x257bdf,_0x307015){const _0x5df99a=_0x307015['schema']['isObject'](_0x257bdf)||_0x307015['schema']['isSelectable'](_0x257bdf);return _0x307015['createRange'](_0x307015['createPositionAt'](_0x257bdf,'before'),_0x5df99a?_0x307015['createPositionAfter'](_0x257bdf):_0x307015['createPositionAt'](_0x257bdf,'end'));}function Ft(_0xaf21fc,_0x1371b2,_0x906aff,_0x991495,_0x21fa0d){if(!Pt(_0xaf21fc,_0x1371b2))return!0x1;if(_0x906aff['end']['isEqual'](_0x991495['start']))return!0x0;if(_0xaf21fc['type']!=_0x1371b2['type'])return!0x1;if(!_0x906aff['end']['isTouching'](_0x991495['start']))return!0x1;const _0x1eab18=_0x21fa0d['createRange'](_0x906aff['end'],_0x991495['start'])['getWalker']();for(const _0x186487 of _0x1eab18)if(['elementStart','elementEnd']['includes'](_0x186487['type'])&&_0x21fa0d['schema']['isLimit'](_0x186487['item']))return!0x1;return!0x0;}function Pt(_0x3e45ad,_0x19e99a,_0x193bbb=[]){return!(!_0x3e45ad['_isDataLoaded']||!_0x19e99a['_isDataLoaded'])&&_0x2b8b8c(Bt(_0x3e45ad['attributes'],_0x193bbb),Bt(_0x19e99a['attributes'],_0x193bbb));}function Lt(_0x501d8d,_0x2ed1a6){const _0x56d997=Ht(_0x501d8d['attributes']),_0x2fc0fe=Ht(_0x2ed1a6);if(!_0x501d8d['_isDataLoaded'])return!0x1;for(const _0x1145b0 of Object['keys'](_0x2fc0fe))if(!_0x2b8b8c(_0x56d997[_0x1145b0],_0x2fc0fe[_0x1145b0]))return!0x1;return!0x0;}function Ht(_0x21816d){const _0x23da80=Object['assign']({},_0x21816d);return delete _0x23da80['skipNestingCheck'],delete _0x23da80['tablePasteChainId'],_0x23da80;}class oe extends _0xa1677b(){['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 _0x1eccf0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1eccf0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x1500b7,_0x46fa56,_0x5930e1,_0x57921f){super(),this['model']=_0x46fa56,this['view']=_0x5930e1,this['commentThreadController']=_0x57921f,this['_editor']=_0x1500b7,this['_acceptCommand']=_0x1500b7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1500b7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x12d29e,_0x44037c)=>_0x12d29e||_0x44037c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4f2950=>_0x4f2950&&this['_editor']['model']['canEditAt'](_0x46fa56['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1cd9ed=>_0x1cd9ed&&this['_editor']['model']['canEditAt'](_0x46fa56['getRanges']())),this['_pendingAction']=null,_0x5930e1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5930e1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5930e1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5930e1,'change:isDirty',()=>{_0x5930e1['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x428534{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x53661f}=this['_config'];this['commentsListView']=new _0x53661f(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',_0x29614c=>_0x29614c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4f3839,_0x622ca0)=>_0x4f3839||!!_0x622ca0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4308be}=this['_config'],_0x2504ff=new _0x4308be(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4046a6=_0x2504ff['commentInputView'];return _0x2504ff['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4046a6,'value',(_0x18a2cb,_0x80cc0f,_0x21c6c4)=>!!_0x21c6c4||_0x18a2cb&&!_0x80cc0f),_0x4046a6['on']('submit',(_0x4f9dda,_0x14ecc9)=>{this['fire']('addComment',_0x14ecc9),_0x4046a6['editor']['setData']('');}),_0x4046a6['on']('cancel',()=>this['focus']()),_0x4046a6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2504ff;}constructor(_0x154edf,_0x54289f,_0x33ccc3,_0xf6cf13){super(_0x154edf),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x54289f['authoredAt']),this['bind']('authoredAt')['to'](_0x54289f),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x54289f,this['_localUser']=_0x33ccc3,this['_config']=_0xf6cf13,_0xf6cf13['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x109f5e=this['bindTemplate'],_0x46f70d=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x109f5e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x109f5e['to']('authoredAt',_0x21302e=>this['_config']['formatDateTime'](_0x21302e))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x46f70d['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xee02a={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x109f5e['if']('isActive','ck-suggestion-wrapper--active'),_0x109f5e['to']('type',_0x59aed6=>'ck-suggestion-'+_0x59aed6),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x46f70d}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xee02a['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0xee02a;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xed522e,_0x3bd651,_0x56cecd)=>{this['_descriptionElement']['innerHTML']=_0x56cecd;});}['_createButton'](_0x5c5919,_0xe708c5,_0x1a5fc3,_0x3e7f75,_0x35bb2f){const _0x4558d8=new _0x1b184b(this['locale']);return _0x4558d8['set']({'label':_0x5c5919,'icon':_0xe708c5,'tooltip':!0x0,'tooltipPosition':_0x35bb2f}),_0x4558d8['extendTemplate']({'attributes':{'class':_0x1a5fc3}}),_0x4558d8['on']('execute',()=>{this['fire'](_0x3e7f75,this['_model']['id']);}),_0x4558d8;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}constructor(_0x45aa64,_0x907962,_0x18b595,_0x2bddf2){super(_0x45aa64,_0x907962,_0x18b595,_0x2bddf2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x55df89=>_0x55df89&&_0x55df89[0x0]?_0x55df89[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x14a92a,_0x368e5c)=>{let _0x1e5fac='';for(const _0x302233 of _0x14a92a)_0x1e5fac+='<p>'+ds(_0x302233['content'],_0x302233['color'])+'</p>';return _0x368e5c?_0x1e5fac:_0x252a9a(_0x1e5fac,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x45aa64,'Accept\x20suggestion'),_0x39a540['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x45aa64,'Discard\x20suggestion'),_0x39a540['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1ff955(_0x45aa64,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x236906,_0x1ea21b){let _0x3f7cc1='';return _0x3f7cc1+=_0x236906['split']('*')['map']((_0xfeab7,_0x42eec5)=>_0x42eec5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xfeab7)+'</span>':us(_0xfeab7))['join'](''),_0x1ea21b&&(_0x3f7cc1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1ea21b['value']+'\x22\x20title=\x22'+_0x1ea21b['title']+'\x22></span>'),_0x3f7cc1;}function us(_0x2eb8b5){const _0x23964a=document['createElement']('span');return _0x23964a['innerText']=_0x2eb8b5,_0x23964a['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x26e52a{static get['requires'](){return[p,_0x4a5edb,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x547605,_0x40e5b2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x23f94,_0x3a5fe2]of this['_handleControllerBuffer']){const _0xd969d5=this['_suggestionToController']['has'](_0x23f94);_0xd969d5||_0x3a5fe2?_0xd969d5&&_0x3a5fe2&&this['_destroyController'](_0x23f94):this['_initializeController'](_0x23f94);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x547605,_0x40e5b2);}['init'](){const _0x4faf01=this['editor'],_0x198e73=_0x4faf01['plugins']['get']('TrackChangesEditing'),_0x275180=_0x4faf01['plugins']['get']('Annotations'),_0x14497f=_0x4faf01['plugins']['get']('EditorAnnotations'),_0x178e24=_0x4faf01['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x14497f['addSourceCollector'](()=>{const _0x3e4ac2=[];for(const [_0x4ea3ab,_0x2d395b]of Array['from'](this['_suggestionToController'])){const _0x466bb8=_0x4ea3ab['getAllAdjacentSuggestions'](),_0x30454c=[];for(const _0x1730d2 of _0x466bb8){if(!_0x1730d2['isInContent'])continue;if(_0x1730d2['isMultiRange']){_0x30454c['push'](..._0x1730d2['getRanges']());continue;}const _0xae5e7a=_0x1730d2['getFirstRange']();if(_0x30454c['length']>0x0){const _0x1eadaa=_0x30454c[0x0]['getJoined'](_0xae5e7a);if(_0x1eadaa){_0x30454c[0x0]=_0x1eadaa;continue;}}_0x30454c['push'](_0xae5e7a);}_0x3e4ac2['push']([_0x2d395b['view'],_0x30454c]);}return _0x3e4ac2;}),this['listenTo'](_0x198e73,'suggestionLoaded',(_0x3c335f,_0x7eaee8)=>{this['listenTo'](_0x7eaee8,'change:previous',(_0x26a178,_0x360874,_0x3f6809,_0x9d8243)=>{_0x7eaee8['isInContent']&&(null==_0x3f6809?(this['_updateController'](_0x9d8243['head']),this['_handleSuggestionControllerDelayed'](_0x7eaee8,!0x1)):(this['_updateController'](_0x3f6809['head']),null==_0x9d8243&&this['_handleSuggestionControllerDelayed'](_0x7eaee8,!0x0)));}),null!==_0x7eaee8['previous']?this['_updateController'](_0x7eaee8['head']):this['_handleSuggestionControllerDelayed'](_0x7eaee8,!0x1);}),this['listenTo'](_0x198e73,'suggestionUnloaded',(_0x238c4e,_0x4267a7,_0x1c30d6)=>{this['stopListening'](_0x4267a7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4267a7),this['_suggestionToController']['has'](_0x4267a7)&&this['_destroyController'](_0x4267a7),_0x1c30d6&&this['_updateController'](_0x1c30d6['head']);}),this['listenTo'](_0x198e73,'suggestionChanged',(_0x555417,_0x3e7da1)=>{this['_updateController'](_0x3e7da1);}),this['listenTo'](_0x275180,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x178e24,'addComment',(_0x66feca,{threadId:_0x3c8a56,isFromAdapter:_0x18a088})=>{if(_0x18a088||!_0x198e73['hasSuggestion'](_0x3c8a56))return;const _0x11d28d=_0x198e73['getSuggestion'](_0x3c8a56);this['_suggestionToController']['get'](_0x11d28d)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x499e0b=this['editor']['plugins']['get']('Annotations'),_0x3344ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19107a=Array['from'](_0x499e0b['activeAnnotations'],_0x49f810=>_0x49f810['innerView'])['filter'](_0x16d2ef=>this['_viewToController']['has'](_0x16d2ef)),_0x10ebf0=[];for(const _0x2b5766 of _0x19107a){const _0x44af27=this['_viewToController']['get'](_0x2b5766)['model']['getAllAdjacentSuggestions']();_0x10ebf0['push'](..._0x44af27['reduce']((_0x3a58cd,_0x571e0d)=>[..._0x3a58cd,..._0x571e0d['getMarkerNames']()],[]));}_0x3344ae['activeMarkers']=_0x10ebf0;}['_addUIComponentsToFactory'](){const _0x59df74=this['editor'],_0x516179=_0x59df74['locale'],_0xcee547=o(_0x516179,'Track\x20changes'),_0x39c7ed=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0xcee547,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x516179,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x516179,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x516179,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x516179,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x30005f of _0x39c7ed)if(ae(_0x30005f)){const _0x42a55c=_0x59df74['commands']['get'](_0x30005f['model']['commandName']);_0x30005f['model']['bind']('isOn','isEnabled')['to'](_0x42a55c,'value','isEnabled');}_0x59df74['ui']['componentFactory']['add']('trackChanges',_0xd87775=>this['_createToolbarButton'](_0xd87775,_0x39c7ed,_0xcee547)),_0x59df74['ui']['componentFactory']['add']('menuBar:trackChanges',_0x524fb0=>this['_createMenuBarMenu'](_0x524fb0,_0x39c7ed,_0xcee547));}['_createToolbarButton'](_0x147e4d,_0xa39cb1,_0x399d49){const _0x28303f=zt(_0x147e4d,Zt),_0x37fab7=this['editor']['commands']['get']('trackChanges');_0x28303f['buttonView']['set']({'tooltip':_0x399d49,'label':_0x399d49,'icon':ie}),_0x28303f['buttonView']['bind']('isOn')['to'](_0x37fab7,'value'),_0x28303f['buttonView']['on']('execute',()=>{_0x37fab7['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x28303f,_0xa39cb1);const _0x2a6e80=[];for(const _0x2ac50a of _0xa39cb1)ae(_0x2ac50a)&&_0x2a6e80['push'](this['editor']['commands']['get'](_0x2ac50a['model']['commandName']));const _0x111131=_0x28303f['buttonView'];return _0x111131['actionView']['unbind']('isEnabled'),_0x111131['arrowView']['unbind']('isEnabled'),_0x111131['actionView']['bind']('isEnabled')['to'](_0x37fab7,'isEnabled'),_0x111131['arrowView']['bind']('isEnabled')['toMany'](_0x2a6e80,'isEnabled',(..._0x2fac41)=>_0x2fac41['some'](_0x5a5462=>_0x5a5462)),_0x28303f['on']('execute',_0x4e2baf=>{this['editor']['execute'](_0x4e2baf['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x28303f;}['_createMenuBarMenu'](_0xbcc8f,_0x1f1e69,_0x218e0b){const _0x7d9480=new Kt(_0xbcc8f),_0x5084f8=this['editor']['commands']['get']('trackChanges');_0x7d9480['buttonView']['set']({'label':_0x218e0b,'icon':ie});const _0x4affff=new Qt(_0xbcc8f);for(const _0x1b4ce2 of _0x1f1e69){if('separator'==_0x1b4ce2['type']){_0x4affff['items']['add'](new Jt(_0xbcc8f));continue;}const _0x5e7bcb=new Xt(_0xbcc8f,_0x7d9480),_0x3b726b=new Yt(_0xbcc8f),_0x225e92=_0x1b4ce2['model'];_0x3b726b['bind'](...Object['keys'](_0x225e92))['to'](_0x225e92),_0x3b726b['delegate']('execute')['to'](_0x7d9480),_0x3b726b['on']('execute',()=>{this['editor']['execute'](_0x225e92['commandName']),this['editor']['editing']['view']['focus']();}),_0x5e7bcb['children']['add'](_0x3b726b),_0x4affff['items']['add'](_0x5e7bcb);}return _0x7d9480['bind']('isEnabled')['to'](_0x5084f8,'isEnabled'),_0x7d9480['panelView']['children']['add'](_0x4affff),_0x7d9480;}['_initializeController'](_0x688590){const _0x4ab49e=this['editor'],_0x15a078=_0x4ab49e['config'],_0x3a4da8=_0x4ab49e['plugins']['get']('Annotations'),_0x25dd29=_0x4ab49e['plugins']['get']('CommentsRepository'),_0x5295b4=_0x4ab49e['plugins']['get']('EditorAnnotations'),_0x3ebb46=_0x4ab49e['plugins']['get'](_0x4a5edb)['me'],_0xdd9c29=_0x15a078['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x12ddac,CommentThreadInputView:_0x53dfb3}=_0x4ab49e['plugins']['get']('CommentsUI');let _0x5e9443,_0x1b1611;this['_annotationViews']['has'](_0x688590['id'])?(_0x1b1611=this['_annotationViews']['get'](_0x688590['id']),_0x5e9443=_0x1b1611['mainView']):(_0x5e9443=new _0xdd9c29(_0x4ab49e['locale'],_0x688590,_0x3ebb46,{'disableComments':this['_disableComments'],'editorConfig':_0x15a078['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x15a078['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15a078['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15a078['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x23f3b0(_0x15a078['get']('locale')),'CommentView':_0x15a078['get']('comments')['CommentView'],'CommentsListView':_0x12ddac,'CommentThreadInputView':_0x53dfb3}),_0x5e9443['acceptButton']['on']('execute',()=>{_0x4ab49e['editing']['view']['focus']();}),_0x5e9443['discardButton']['on']('execute',()=>{_0x4ab49e['editing']['view']['focus']();}),_0x1b1611=_0x3a4da8['createAnnotationView'](this['editor']['locale'],_0x5e9443),_0x1b1611['bind']('isDirty')['to'](_0x5e9443,'isDirty'),_0x1b1611['bind']('length')['to'](_0x5e9443),_0x1b1611['bind']('type')['to'](_0x5e9443,'type',_0x95c7d3=>'suggestion-'+_0x95c7d3),this['_annotationViews']['set'](_0x688590['id'],_0x1b1611));const _0x56837e=_0x25dd29['createCommentThreadController'](_0x688590['commentThread'],_0x5e9443),_0x1b57bb=new oe(_0x4ab49e,_0x688590,_0x5e9443,_0x56837e),_0x44fa19=_0x688590['getAllAdjacentSuggestions']()['filter'](_0x2227df=>_0x2227df['isInContent']);_0x5e9443['descriptionParts']=_0x4ab49e['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x44fa19),this['_suggestionToController']['set'](_0x688590,_0x1b57bb),this['_viewToController']['set'](_0x5e9443,_0x1b57bb);const _0x17f486=_0x3a4da8['createAnnotation']({'view':_0x1b1611,'target':()=>{const _0x1c6c22=[],_0x107608=_0x688590['getAllAdjacentSuggestions']()['filter'](_0x9a152b=>_0x9a152b['isInContent']);for(const _0x5b0b93 of _0x107608)_0x1c6c22['push'](..._0x5b0b93['getMarkers']());return _0x406756(_0x4ab49e['editing'],_0x1c6c22);},'type':()=>'suggestion-'+_0x1b57bb['view']['type']});_0x25dd29['_bindAnnotationToEditors'](_0x5e9443,_0x17f486),_0x3a4da8['add'](_0x17f486),_0x5295b4['registerAnnotation'](_0x17f486);}['_destroyController'](_0x3c628e){const _0x380acd=this['editor']['plugins']['get']('CommentsRepository'),_0xd2bd02=this['editor']['plugins']['get']('Annotations'),_0x1a162a=this['_suggestionToController']['get'](_0x3c628e),_0x31843b=_0x1a162a['view'],_0xbca63a=_0xd2bd02['getByInnerView'](_0x31843b);_0x380acd['_unbindEditors'](_0x31843b),_0xbca63a&&_0xd2bd02['remove'](_0xbca63a),this['_suggestionToController']['delete'](_0x3c628e),this['_viewToController']['delete'](_0x31843b),_0x1a162a['destroy']();}['_updateController'](_0x3aa39a){if(!_0x3aa39a['isInContent']||!this['_suggestionToController']['has'](_0x3aa39a))return;const _0x191a28=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33c74d=this['_suggestionToController']['get'](_0x3aa39a),_0x3c3cf1=_0x3aa39a['getAllAdjacentSuggestions']();_0x33c74d['view']['descriptionParts']=_0x191a28['_descriptionFactory']['getDescriptions'](_0x3c3cf1);}['destroy'](){for(const _0x596696 of this['_suggestionToController']['keys']())this['_destroyController'](_0x596696);for(const _0x52b52e of this['_annotationViews']['values']())_0x52b52e['mainView']['destroy']();super['destroy']();}constructor(_0x1ef533){super(_0x1ef533),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x11a9d1=this['editor']['config'];_0x11a9d1['define']('trackChanges.SuggestionThreadView',ne),_0x11a9d1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x11a9d1['get']('trackChanges.disableComments');}}function ae(_0x59b638){return'model'in _0x59b638;}class k extends _0x26e52a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4e34ae){this['editor']['plugins']['get'](p)['adapter']=_0x4e34ae;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x224f4c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x224f4c);}['getSuggestions']({skipNotAttached:_0x5c6e7e=!0x1,toJSON:_0x1c600b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5c6e7e,'toJSON':_0x1c600b});}['getSuggestion'](_0x254f21){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x254f21);}}const T=['Pagination'];class P extends _0x26e52a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1dd22c=this['editor'];if(_0x1dd22c['config']['define']('trackChangesData.editorCreator',_0x1c1b9d=>{const _0x3aec61=_0x1dd22c['model']['document']['getRootNames']()['reduce']((_0x449109,_0x2c0886)=>(_0x449109[_0x2c0886]='',_0x449109),{});return _0x1dd22c['constructor']['create'](_0x3aec61,_0x1c1b9d);}),'function'!=typeof _0x1dd22c['config']['get']('trackChangesData')['editorCreator'])throw new _0x215eab('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x536e6a){return N(this['editor'],!0x0,_0x536e6a);}['getDataWithDiscardedSuggestions'](_0x179e0f){return N(this['editor'],!0x1,_0x179e0f);}}class D extends _0x26e52a{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x476d9e){super(_0x476d9e),this['result']='end';}}function v(_0x582a5f){return void 0x0!==_0x582a5f['getRootsAttributes'];}async function N(_0x4edf10,_0x18f600,_0x397ab8){const _0x204617=_0x5d98e0(_0x4edf10,T);_0x204617['plugins']['push'](p,D),_0x204617['rootsAttributes']=v(_0x4edf10)?_0x4edf10['getRootsAttributes']():void 0x0;const _0x4b1af3=document['createDocumentFragment'](),_0x13a97a=_0x4edf10['config']['get']('trackChangesData')['editorCreator'],_0xb3510=await _0x13a97a(_0x204617,()=>function(_0x1a575d){const _0x2c8842=document['createElement']('div');return _0x1a575d['appendChild'](_0x2c8842),_0x2c8842;}(_0x4b1af3));!function(_0x516264,_0x1244f1){const _0x29504b=_0x516264['model']['document']['getRootNames']()['reduce']((_0x1f73e7,_0xcae489)=>(_0x1f73e7[_0xcae489]=_0x516264['data']['get']({'rootName':_0xcae489}),_0x1f73e7),{}),_0x472b6f=_0x516264['plugins']['get']('Users')['users']['map'](_0x670d66=>({'id':_0x670d66['id'],'name':_0x670d66['name']})),_0x2b1520=_0x516264['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3d5092=_0x1244f1['plugins']['get']('Users'),_0x47f40b=_0x1244f1['plugins']['get']('TrackChangesEditing');for(const _0x238880 of _0x472b6f)_0x3d5092['getUser'](_0x238880['id'])||_0x3d5092['addUser'](_0x238880);_0x3d5092['me']||_0x3d5092['useAnonymousUser']();for(const _0x181d15 of _0x2b1520)_0x47f40b['addSuggestionData'](_0x181d15);_0x1244f1['data']['set'](_0x29504b);}(_0x4edf10,_0xb3510),_0xb3510['execute'](_0x18f600?'acceptAllSuggestions':'discardAllSuggestions');const _0x10906f=v(_0xb3510)?_0xb3510['getFullData'](_0x397ab8):_0xb3510['data']['get'](_0x397ab8);return await _0xb3510['destroy'](),_0x10906f;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|