@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240430.0 → 0.0.0-nightly-20240501.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/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/types/integrations/utils.d.ts +1 -5
- package/dist/types/trackchangesediting.d.ts +14 -0
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.d.ts +1 -5
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +14 -0
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.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 _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};
|
|
23
|
+
import{Command as ts,Plugin as _0x1e79ec,PendingActions as _0xa7374,icons as _0x18221a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x46c804,ObservableMixin as _0x229435,uid as _0x109dee,insertToPriorityArray as _0x1e1e22,priorities as _0x3ba2dc,logWarning as _0x27ca85,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x387b0f,View as _0x4bb07a,ButtonView as _0x1c8755,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 _0x15e88b,hashObject as _0x37c233,surroundingMarkersDetector as _0x751978,trimHtml as _0x2519d9,UserView as _0x26a901,getDateTimeFormatter as _0x42f9a7,getAllMarkersDomElementsSorted as _0x3fdb71,sanitizeEditorConfig as _0x207bf7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x309129,LiveRange as _0x43239f,LivePosition as _0x27d4fa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1d6a2b,toWidget as _0x31e57b}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x202113,set as _0x1d3b7f,isEqual as _0xa08454,unset as _0x356563,omit as Bt}from'lodash-es';import{Delete as _0x432acf,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4385a8,ShiftEnter as _0x3b3aa8}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 _0x317672 of this['editor']['commands']['commands']())_0x317672['affectsData']&&!this['_enabledCommands']['has'](_0x317672)&&_0x317672['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe57471 of this['editor']['commands']['commands']())_0xe57471['affectsData']&&!this['_enabledCommands']['has'](_0xe57471)&&_0xe57471['clearForceDisabled']('TrackChangesCommand');}constructor(_0x8b83ca,_0x1df23f){super(_0x8b83ca),this['_enabledCommands']=_0x1df23f,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x299f72){const _0x15f48f=this['_suggestions']['get'](_0x299f72);if(!_0x15f48f)throw new _0x46c804('track-changes-accept-suggestion-not-found',this);const _0x1055d5=_0x15f48f['getRanges']();this['editor']['model']['canEditAt'](_0x1055d5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x15f48f);}constructor(_0x20d0db,_0x35860b){super(_0x20d0db),this['_suggestions']=_0x35860b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1fc6d4){const _0x214a0c=this['_suggestions']['get'](_0x1fc6d4);if(!_0x214a0c)throw new _0x46c804('track-changes-discard-suggestion-not-found',this);const _0x204dbf=_0x214a0c['getRanges']();this['editor']['model']['canEditAt'](_0x204dbf)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x214a0c);}constructor(_0x44f5ac,_0x1af027){super(_0x44f5ac),this['_suggestions']=_0x1af027,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x53ed45){return _0x53ed45['sort']((_0x3c05d9,_0x3699d3)=>'deletion'==_0x3c05d9['type']&&'deletion'!=_0x3699d3['type']?-0x1:'deletion'!=_0x3c05d9['type']&&'deletion'==_0x3699d3['type']?0x1:0x0);}function to(_0x432db2,_0x52277e){let _0x2e279a,_0x5670c8=0x0;const _0x25e6da=[],_0x3c62a4=_0x52277e['schema'];for(;_0x5670c8<_0x432db2['length'];){const _0x2b512b=_0x432db2[_0x5670c8],_0x15fc4b=_0x432db2[_0x5670c8+0x1];_0x2e279a||(_0x2e279a=_0x52277e['createPositionBefore'](_0x2b512b)),co(_0x52277e,_0x2b512b,_0x15fc4b)||(_0x25e6da['push'](_0x52277e['createRange'](_0x2e279a,_0x3c62a4['isObject'](_0x2b512b)?_0x52277e['createPositionAfter'](_0x2b512b):_0x52277e['createPositionAt'](_0x2b512b,'end'))),_0x2e279a=null),_0x5670c8++;}return _0x25e6da;}function co(_0x55ffc2,_0x899c87,_0x599a3c){if(!_0x599a3c)return!0x1;const _0x2449a6=_0x55ffc2['createPositionAfter'](_0x899c87),_0x4c7f8a=_0x55ffc2['createPositionBefore'](_0x599a3c);return _0x2449a6['isTouching'](_0x4c7f8a);}function rs(_0x137760,_0x15b04c,_0x9de1cd){for(;_0x9de1cd['length'];){const _0x29f93e=_0x9de1cd['splice'](0x0,0x64);_0x137760['change'](()=>{for(const _0xaa483f of _0x29f93e)_0xaa483f['isInContent']&&_0x15b04c['execute'](_0xaa483f['id']);});}}class x extends ts{['refresh'](){const _0x1ff1df=Array['from'](this['_suggestions']['values']())['some'](_0x384da4=>_0x384da4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1ff1df;}['execute'](){const _0x48dda1=ss(Array['from'](this['_suggestions']['values']()));for(const _0xb1ff51 of _0x48dda1){const _0xff5ce6=_0xb1ff51['getRanges']();if(!this['editor']['model']['canEditAt'](_0xff5ce6))return;}rs(this['editor']['model'],this['_command'],_0x48dda1);}constructor(_0x16ea8b,_0x7a0d0f,_0x51fb74){super(_0x16ea8b),this['_command']=_0x7a0d0f,this['_suggestions']=_0x51fb74,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x433780=this['editor']['model']['document']['selection'],_0x3db715=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4c19f7,_0x56c552){const _0x225ac8=Array['from'](_0x4c19f7['getRanges']()),_0x30bc45=new Set();for(const _0x1b394b of _0x56c552)if(_0x1b394b['isInContent']){for(const _0x1d7469 of _0x225ac8)for(const _0x10e5f1 of _0x1b394b['getRanges']())(_0x1d7469['isIntersecting'](_0x10e5f1)||_0x4c19f7['isCollapsed']&&!_0x1b394b['isMultiRange']&&_0x1b394b['next']&&_0x10e5f1['end']['isTouching'](_0x1d7469['start']))&&_0x30bc45['add'](_0x1b394b);}return _0x30bc45;}(_0x433780,_0x3db715),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xcc1434=ss(Array['from'](this['_selectedSuggestions']));for(const _0x505b1c of _0xcc1434){const _0x6f7c70=_0x505b1c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6f7c70))return;}rs(this['editor']['model'],this['_command'],_0xcc1434);}constructor(_0xbe2171,_0xaee75d,_0xe3135b){super(_0xbe2171),this['_command']=_0xaee75d,this['_suggestions']=_0xe3135b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x229435(){get['head'](){let _0x59646b=this;for(;_0x59646b['previous'];)_0x59646b=_0x59646b['previous'];return _0x59646b;}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'](_0x493a6f){this['_markerNames']['add'](_0x493a6f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x21d103=>this['_model']['markers']['get'](_0x21d103))['filter'](_0x113c65=>_0x113c65);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3c1fc0=>{for(const _0x2ccb19 of this['getMarkers']())_0x3c1fc0['removeMarker'](_0x2ccb19);}),this['_markerNames']['clear']();}['removeMarker'](_0x2f21cc){this['_model']['change'](_0x207944=>{_0x207944['removeMarker'](_0x2f21cc);}),this['_markerNames']['delete'](_0x2f21cc);}['addRange'](_0x7a5741){const _0x2160c3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2160c3),this['_model']['change'](_0x4cb6e3=>{_0x4cb6e3['addMarker'](_0x2160c3,{'range':_0x7a5741,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x7e6dbe){for(const _0x4a8d8d of this['getRanges']())if(_0x4a8d8d['isIntersecting'](_0x7e6dbe))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x22e04a=>_0x22e04a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xb6a089,_0x50dcf2)=>[..._0xb6a089,..._0x50dcf2['getItems']()],[]);}['getFirstRange'](){var _0x487430;return(null===(_0x487430=this['getFirstMarker']())||void 0x0===_0x487430?void 0x0:_0x487430['getRange']())||null;}['getContainedElement'](){const _0x3346e0=this['getRanges']();if(0x1!=_0x3346e0['length'])return null;const _0x514f0e=_0x3346e0[0x0],_0x5d9f8b=_0x514f0e['start']['nodeAfter'],_0x276942=_0x514f0e['end']['nodeBefore'];return _0x5d9f8b instanceof _0x309129?_0x5d9f8b!=_0x276942?null:_0x5d9f8b: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 _0x34880d=[];let _0x3c0e6f=this['head'];for(;_0x3c0e6f;)_0x34880d['push'](_0x3c0e6f),_0x3c0e6f=_0x3c0e6f['next'];return _0x34880d;}['setAttribute'](_0x4e2479,_0x2b8896){const _0x509b29=_0x202113(this['attributes']);_0x1d3b7f(_0x509b29,_0x4e2479,_0x2b8896),_0xa08454(_0x509b29,this['attributes'])||(this['attributes']=_0x509b29,this['_onAttributesChange'](_0x509b29));}['removeAttribute'](_0x542995){const _0x5e15dc=_0x202113(this['attributes']);_0x356563(_0x5e15dc,_0x542995),_0xa08454(_0x5e15dc,this['attributes'])||(this['attributes']=_0x5e15dc,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 _0x109dee()['substr'](0x1,0x5);}constructor(_0x2a093e,_0x84f1df){super(),this['_isDataLoaded']=!0x1,this['id']=_0x84f1df['id'],this['type']=_0x84f1df['type'],this['subType']=_0x84f1df['subType']||null,this['author']=_0x84f1df['author'],this['creator']=_0x84f1df['creator']||_0x84f1df['author'],this['isExternal']=Boolean(_0x84f1df['attributes']&&_0x84f1df['attributes']['@external']),this['data']=null,this['_model']=_0x2a093e,this['_onAccept']=_0x84f1df['onAccept'],this['_onDiscard']=_0x84f1df['onDiscard'],this['_onAttributesChange']=_0x84f1df['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x84f1df['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(_0x23437e,_0x4a53ec,_0x9e36e4){const t=_0x23437e['t'];switch(_0x4a53ec){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',_0x9e36e4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x9e36e4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x9e36e4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x9e36e4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x9e36e4);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',_0x9e36e4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x9e36e4);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',_0x9e36e4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x9e36e4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x9e36e4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x9e36e4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x9e36e4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x9e36e4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x9e36e4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x9e36e4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x9e36e4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x9e36e4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x9e36e4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x9e36e4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x9e36e4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x9e36e4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x9e36e4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x9e36e4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x9e36e4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x9e36e4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x9e36e4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x9e36e4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x9e36e4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x9e36e4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x9e36e4);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'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x9e36e4);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'},_0x9e36e4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x9e36e4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x9e36e4);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'},_0x9e36e4);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'},_0x9e36e4);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 _0x4a53ec;}}class f{['getDescriptions'](_0x22006c){const _0x1f53dd=[],_0x50ee5c=new Set(),_0x239f23=new Set();for(let _0x49d164=0x0;_0x49d164<_0x22006c['length'];_0x49d164++){const _0xe434a6=_0x22006c[_0x49d164];if(!_0xe434a6['isInContent'])continue;const _0x11fad3=this['_handleCustomCallbackDescription'](_0xe434a6);if(_0x11fad3){if(null!=_0xe434a6['subType']){if(_0x50ee5c['has'](_0xe434a6['subType']))continue;_0x50ee5c['add'](_0xe434a6['subType']);}_0x1f53dd['push'](_0x11fad3);}else{if('attribute'!=_0xe434a6['type'])'insertion'!=_0xe434a6['type']&&'deletion'!=_0xe434a6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1f53dd,_0xe434a6,_0x22006c[_0x49d164+0x1]);else{const _0x201e50=_0xe434a6['data']['key'];if(_0x239f23['has'](_0x201e50))continue;_0x239f23['add'](_0xe434a6['data']['key']),_0x201e50==m?this['_handleRenameSuggestionDescription'](_0x1f53dd,_0xe434a6):this['_handleAttributeSuggestionDescription'](_0x1f53dd,_0xe434a6);}}}return this['_resolveDescriptionItems'](_0x1f53dd);}['registerDescriptionCallback'](_0x414611){this['_customCallbacks']['push'](_0x414611);}['registerElementLabel'](_0x59ff7f,_0x1229af,_0x49d4dd=_0x3ba2dc['normal']){'function'==typeof _0x59ff7f?_0x1e1e22(this['_itemLabelsCallbacks'],{'matchingCallback':_0x59ff7f,'label':_0x1229af,'priority':_0x49d4dd}):this['_itemLabels']['set'](_0x59ff7f,_0x1229af);}['registerAttributeLabel'](_0x396eb9,_0x57069c){this['_attributeLabels']['set'](_0x396eb9,_0x57069c);}['getItemLabel'](_0x4efa39,_0x26f59e=0x1){let _0x22a9fc;for(const _0x261afa of this['_itemLabelsCallbacks'])if(_0x261afa['matchingCallback'](_0x4efa39)){_0x22a9fc=_0x261afa['label'];break;}return _0x22a9fc||(_0x22a9fc=this['_itemLabels']['get'](_0x4efa39['name'])),_0x22a9fc?_0x22a9fc(_0x26f59e):0x1!==_0x26f59e?_0x26f59e+'\x20'+_0x4efa39['name']+'s':''+_0x4efa39['name'];}['_addDescriptionItems'](_0x234dd9,_0x38d495){const _0x1c60a3=_0x38d495['getFirstRange']()['getWalker'](),_0x2bd102='insertion'==_0x38d495['type']?'add':'remove';for(const _0x35f434 of _0x1c60a3){const _0x301ebc=_0x35f434['item'],_0x2f5be5=_0x234dd9[_0x234dd9['length']-0x1];if(_0x301ebc['is']('$textProxy'))_0x2f5be5&&_0x2f5be5['type']['indexOf']('Container')>-0x1&&_0x234dd9['pop'](),_0x2f5be5&&'text'==_0x2f5be5['type']?_0x2f5be5[_0x2bd102]+=_0x301ebc['data']:_0x234dd9['push']({'type':'text','add':'add'==_0x2bd102?_0x301ebc['data']:'','remove':'remove'==_0x2bd102?_0x301ebc['data']:''});else{if(this['_schema']['isObject'](_0x301ebc)){const _0x297ce8=_0x301ebc;if(_0x2f5be5&&_0x2f5be5['type']['indexOf']('Container')>-0x1&&_0x234dd9['pop'](),'elementEnd'==_0x35f434['type'])continue;_0x2f5be5&&_0x2f5be5['type']==_0x2bd102+'Object'&&_0x2f5be5['element']['name']==_0x297ce8['name']?_0x2f5be5['quantity']++:_0x234dd9['push']({'type':_0x2bd102+'Object','element':_0x297ce8,'quantity':0x1}),_0x1c60a3['skip'](_0x164919=>!('elementEnd'==_0x164919['type']&&_0x164919['item']==_0x301ebc));}else{if(this['_schema']['checkChild'](_0x301ebc,'$text')||_0x301ebc['is']('element','softBreak')){const _0x20b15c=_0x301ebc;if('add'==_0x2bd102&&'elementStart'==_0x35f434['type']||'remove'==_0x2bd102&&'elementEnd'==_0x35f434['type'])continue;if(_0x2f5be5&&-0x1==_0x2f5be5['type']['indexOf']('Container')){'text'==_0x2f5be5['type']&&(_0x2f5be5[_0x2bd102]+='\x0a');continue;}let _0x59bd9f;if(_0x59bd9f='add'==_0x2bd102?_0x20b15c['nextSibling']&&!this['_schema']['isObject'](_0x20b15c['nextSibling'])?_0x20b15c['nextSibling']:null:_0x20b15c['previousSibling']&&!this['_schema']['isObject'](_0x20b15c['previousSibling'])?_0x20b15c['previousSibling']:null,_0x20b15c['isEmpty']||_0x59bd9f&&_0x59bd9f['isEmpty']){const _0x3a4535=_0x59bd9f&&_0x59bd9f['isEmpty']?_0x59bd9f:_0x20b15c;_0x2f5be5&&_0x2f5be5['type']==_0x2bd102+'EmptyContainer'&&_0x2f5be5['element']['name']==_0x3a4535['name']?_0x2f5be5['quantity']++:_0x234dd9['push']({'type':_0x2bd102+'EmptyContainer','element':_0x3a4535,'quantity':0x1});}else _0x234dd9['push']({'type':_0x2bd102+'Container','element':_0x20b15c});}}}}}['_resolveDescriptionItems'](_0x22e92b){const _0x5bf65d=this['_locale'],_0x220755=[],_0x2702c4=[],_0x1fc0f2=[];for(const _0x389e27 of _0x22e92b)switch(_0x389e27['type']){case'text':if(_0x389e27['add']=_0x389e27['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x389e27['remove']=_0x389e27['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x389e27['add']&&''!=_0x389e27['remove']){_0x220755['push']({'type':'replace','content':o(_0x5bf65d,'REPLACE_TEXT',['\x22'+_0x389e27['remove']+'\x22','\x22'+_0x389e27['add']+'\x22'])});continue;}if(null!=_0x389e27['add']['match'](/^ +$/)){_0x220755['push']({'type':'insertion','content':o(_0x5bf65d,'*Insert:*\x20%0',o(_0x5bf65d,'ELEMENT_SPACE',_0x389e27['add']['length']))});continue;}if(null!=_0x389e27['remove']['match'](/^ +$/)){_0x220755['push']({'type':'deletion','content':o(_0x5bf65d,'*Remove:*\x20%0',o(_0x5bf65d,'ELEMENT_SPACE',_0x389e27['remove']['length']))});continue;}if(''!=_0x389e27['add']){_0x220755['push']({'type':'insertion','content':o(_0x5bf65d,'*Insert:*\x20%0','\x22'+_0x389e27['add']+'\x22')});continue;}_0x220755['push']({'type':'deletion','content':o(_0x5bf65d,'*Remove:*\x20%0','\x22'+_0x389e27['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x220755['push']({'type':'insertion','content':o(_0x5bf65d,'*Insert:*\x20%0',this['getItemLabel'](_0x389e27['element'],_0x389e27['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x220755['push']({'type':'deletion','content':o(_0x5bf65d,'*Remove:*\x20%0',this['getItemLabel'](_0x389e27['element'],_0x389e27['quantity']))});continue;case'addContainer':_0x220755['push']({'type':'insertion','content':o(_0x5bf65d,'*Split:*\x20%0',this['getItemLabel'](_0x389e27['element'],_0x389e27['quantity']))});continue;case'removeContainer':_0x220755['push']({'type':'deletion','content':o(_0x5bf65d,'*Merge:*\x20%0',this['getItemLabel'](_0x389e27['element'],_0x389e27['quantity']))});continue;case'addFormat':_0x2702c4['push'](_0x389e27['key']);continue;case'removeFormat':_0x1fc0f2['push'](_0x389e27['key']);continue;default:_0x220755['push'](_0x389e27);}if(_0x2702c4['length']){const _0x2f0b98=_0x2702c4['map'](_0x114891=>this['_attributeLabels']['has'](_0x114891)?this['_attributeLabels']['get'](_0x114891):_0x114891)['join'](',\x20');_0x220755['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2f0b98)});}if(_0x1fc0f2['length']){const _0x133750=_0x1fc0f2['map'](_0x228d3c=>this['_attributeLabels']['has'](_0x228d3c)?this['_attributeLabels']['get'](_0x228d3c):_0x228d3c)['join'](',\x20');_0x220755['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x133750)});}return _0x220755;}['_handleCustomCallbackDescription'](_0x4b9034){for(const _0x985036 of this['_customCallbacks']){const _0x590e0b=_0x985036(_0x4b9034);if(_0x590e0b&&'type'in _0x590e0b)return _0x590e0b;}}['_handleAttributeSuggestionDescription'](_0x4ff98c,_0x11caa1){const _0x5b0885=_0x11caa1['data'],_0xc5d283=void 0x0===_0x5b0885['newValue']?'removeFormat':'addFormat';_0x4ff98c['push']({'type':_0xc5d283,'key':_0x5b0885['key']});}['_handleRenameSuggestionDescription'](_0x2e0b1c,_0x3f5255){_0x2e0b1c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3f5255['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x22e7be,_0x227312,_0x57cde4){if(this['_addDescriptionItems'](_0x22e7be,_0x227312),_0x57cde4&&_0x57cde4['getFirstRange']()&&!_0x227312['getFirstRange']()['end']['isEqual'](_0x57cde4['getFirstRange']()['start'])){const _0x1e75e0=_0x22e7be[_0x22e7be['length']-0x1],_0x4443d9='insertion'==_0x227312['type']?'add':'remove';_0x1e75e0&&'text'==_0x1e75e0['type']&&(_0x1e75e0[_0x4443d9]+='\x0a');}}constructor(_0x72ee0,_0x465651){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x72ee0,this['_locale']=_0x465651;}}class E extends _0x1e79ec{['afterInit'](){const _0x21b1b7=this['editor'],_0xa91fb3=_0x21b1b7['plugins']['get']('TrackChangesEditing');_0x21b1b7['commands']['get']('showAIAssistant')&&_0xa91fb3['enableCommand']('showAIAssistant');}}class V extends _0x1e79ec{['afterInit'](){const _0x4db47e=this['editor'],_0x26c23d=_0x4db47e['locale'];if(!_0x4db47e['plugins']['has']('AlignmentEditing'))return;const _0x5d06ab=_0x4db47e['plugins']['get']('TrackChangesEditing');_0x5d06ab['enableDefaultAttributesIntegration']('alignment'),_0x5d06ab['registerBlockAttribute']('alignment'),_0x5d06ab['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x26c23d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f7ad6=this['editor'],_0x2e4e03=_0x4f7ad6['locale'];_0x4f7ad6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44708d=>{if('formatBlock'!=_0x44708d['type'])return;const {data:_0x31798a}=_0x44708d;if(_0x31798a&&'alignment'==_0x31798a['commandName']){const _0x2f71ab=_0x31798a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2e4e03,'*Format:*\x20%0',function(_0x33f5d7){switch(_0x33f5d7){case'left':return o(_0x2e4e03,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2e4e03,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2e4e03,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2e4e03,'FORMAT_JUSTIFY_TEXT');}}(_0x2f71ab))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1e79ec{['afterInit'](){const _0x49c142=this['editor'],_0x3859cf=_0x49c142['plugins']['get']('TrackChangesEditing'),_0x329aac=_0x49c142['locale'];for(const _0x109338 of ti){if(!_0x49c142['plugins']['has'](_0x109338))continue;const _0x23d856=_0x109338['slice'](0x0,-0x7)['toLowerCase'](),_0x5f14ff='FORMAT_'+_0x23d856['toUpperCase']();_0x3859cf['enableDefaultAttributesIntegration'](_0x23d856),_0x3859cf['registerInlineAttribute'](_0x23d856),_0x3859cf['descriptionFactory']['registerAttributeLabel'](_0x23d856,o(_0x329aac,_0x5f14ff));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9429b=this['editor'],_0x1dfb36=_0x9429b['locale'],_0x58ec8e=_0x9429b['plugins']['get']('TrackChangesEditing');function _0x28c2cc(_0x2ba428,_0x4599ef){_0x58ec8e['descriptionFactory']['registerDescriptionCallback'](_0x55e09b=>{if('formatInline'!=_0x55e09b['type'])return;const {data:_0x47bac9}=_0x55e09b;return _0x47bac9&&_0x47bac9['commandName']===_0x2ba428?_0x47bac9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1dfb36,'*Format:*\x20%0',_0x4599ef)}:{'type':'format','content':o(_0x1dfb36,'*Remove\x20format:*\x20%0',_0x4599ef)}:void 0x0;});}_0x28c2cc('bold',o(_0x1dfb36,'FORMAT_BOLD')),_0x28c2cc('italic',o(_0x1dfb36,'FORMAT_ITALIC')),_0x28c2cc('underline',o(_0x1dfb36,'FORMAT_UNDERLINE')),_0x28c2cc('code',o(_0x1dfb36,'FORMAT_CODE')),_0x28c2cc('strikethrough',o(_0x1dfb36,'FORMAT_STRIKETHROUGH')),_0x28c2cc('subscript',o(_0x1dfb36,'FORMAT_SUBSCRIPT')),_0x28c2cc('superscript',o(_0x1dfb36,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1e79ec{['afterInit'](){const _0x1908a3=this['editor'],_0x2a5dee=_0x1908a3['locale'];if(!_0x1908a3['plugins']['has']('BlockQuoteEditing'))return;const _0xae3982=_0x1908a3['plugins']['get']('TrackChangesEditing'),_0x2f1ccb=this['editor']['commands']['get']('blockQuote');_0xae3982['enableCommand']('blockQuote',(_0x62422d,_0x41161c={})=>{const _0x15e5a5=this['editor']['model']['document']['selection'],_0x120d7d=_0x41161c&&void 0x0!==_0x41161c['forceValue']?_0x41161c['forceValue']:!_0x2f1ccb['value'];let _0x304c38=[];if(_0x120d7d){const _0x5172a3=Array['from'](_0x15e5a5['getSelectedBlocks']())['filter'](_0x19a28d=>oo(_0x19a28d)||function(_0x3a6215,_0x54bfb7){const _0x5099fc=_0x54bfb7['checkChild'](_0x3a6215['parent'],'blockQuote'),_0x480816=_0x54bfb7['checkChild'](['$root','blockQuote'],_0x3a6215);return _0x5099fc&&_0x480816;}(_0x19a28d,this['editor']['model']['schema']));_0x304c38=to(_0x5172a3,_0x1908a3['model']);}else{const _0x56b638=Array['from'](_0x15e5a5['getSelectedBlocks']())['filter'](_0x4885ee=>oo(_0x4885ee));_0x304c38=to(_0x56b638,_0x1908a3['model']);}_0x1908a3['model']['change'](()=>{for(const _0x38bb47 of _0x304c38)_0xae3982['markBlockFormat'](_0x38bb47,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x120d7d}]});});}),_0xae3982['descriptionFactory']['registerDescriptionCallback'](_0x4912c1=>{const {data:_0x562605}=_0x4912c1;if(_0x562605&&'blockQuote'==_0x562605['commandName']){const _0x4e8b9f=o(_0x2a5dee,'ELEMENT_BLOCK_QUOTE');return _0x562605['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a5dee,'*Set\x20format:*\x20%0',_0x4e8b9f)}:{'type':'format','content':o(_0x2a5dee,'*Remove\x20format:*\x20%0',_0x4e8b9f)};}});}}function oo(_0x149d18){return'blockQuote'==_0x149d18['parent']['name'];}class F extends _0x1e79ec{['afterInit'](){const _0x1df1ee=this['editor'];_0x1df1ee['plugins']['has']('CaseChange')&&(_0x1df1ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1df1ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1df1ee['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x1e79ec{['afterInit'](){const _0x4f9dd4=this['editor'];_0x4f9dd4['commands']['get']('ckbox')&&_0x4f9dd4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1e79ec{['afterInit'](){const _0x5b2d59=this['editor'];if(!_0x5b2d59['plugins']['has']('CodeBlock'))return;const _0x225a95=_0x5b2d59['plugins']['get']('TrackChangesEditing'),_0x3e321f=_0x5b2d59['locale'],_0x1ba06c=_0x5b2d59['config']['get']('codeBlock')['languages'],_0x1e8925=_0x5b2d59['commands']['get']('codeBlock');_0x225a95['enableCommand']('indentCodeBlock'),_0x225a95['enableCommand']('outdentCodeBlock'),_0x225a95['enableCommand']('codeBlock',(_0x2dcb99,_0x5588bc={})=>{const _0x59d844=_0x5b2d59['model'],_0x390909=_0x5b2d59['model']['document']['selection'],_0x23f3d9=_0x5588bc&&void 0x0!==_0x5588bc['forceValue']?_0x5588bc['forceValue']:!_0x1e8925['value'];let _0x31bd05;_0x5588bc['language']||(_0x5588bc['language']=_0x1ba06c[0x0]['language']),_0x31bd05=_0x23f3d9?Array['from'](_0x390909['getSelectedBlocks']())['filter'](_0x344dec=>eo(_0x344dec)||function(_0xb3ce38,_0x4e13b3){if(_0xb3ce38['is']('rootElement')||_0x4e13b3['isLimit'](_0xb3ce38))return!0x1;return _0x4e13b3['checkChild'](_0xb3ce38['parent'],'codeBlock');}(_0x344dec,_0x59d844['schema'])):Array['from'](_0x390909['getSelectedBlocks']())['filter'](_0x4d7a6c=>eo(_0x4d7a6c));const _0x820429=to(_0x31bd05,_0x59d844);_0x59d844['change'](()=>{for(const _0x1235b4 of _0x820429)_0x225a95['markBlockFormat'](_0x1235b4,{'commandName':'codeBlock','commandParams':[{..._0x5588bc,'forceValue':_0x23f3d9}],'formatGroupId':'blockName'});});}),(_0x225a95['descriptionFactory']['registerElementLabel']('codeBlock',_0x1d8b75=>o(_0x3e321f,'ELEMENT_CODE_BLOCK',_0x1d8b75)),_0x225a95['descriptionFactory']['registerDescriptionCallback'](_0x5476c5=>{if('formatBlock'!=_0x5476c5['type'])return;const _0x1af923=_0x3e321f['t'],{data:_0x506404}=_0x5476c5;if(!_0x506404||'codeBlock'!=_0x506404['commandName'])return;const _0x30417e=_0x506404['commandParams'][0x0]['language'],_0x56e5eb=_0x1af923(_0x1ba06c['find'](_0x9bb326=>_0x9bb326['language']===_0x30417e)['label'])['toLowerCase']();return _0x506404['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e321f,'*Set\x20format:*\x20%0',o(_0x3e321f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x56e5eb+')')}:{'type':'format','content':o(_0x3e321f,'*Remove\x20format:*\x20%0',o(_0x3e321f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1d50c1){return'codeBlock'==_0x1d50c1['name'];}class H extends _0x1e79ec{['afterInit'](){const _0x584781=this['editor'];if(!_0x584781['plugins']['has']('CommentsEditing'))return;_0x584781['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x485a18,_0x33029f,_0x47ec63){const _0xd10e04=[];for(const _0x41c5c7 of _0x33029f['getItems']())_0x41c5c7['hasAttribute'](_0x485a18)&&_0xd10e04['push'](_0x47ec63['createRangeOn'](_0x41c5c7));return _0xd10e04;}function _e(_0x1eaa89,_0xdd973,{showActiveMarker:_0x55b7d2=!0x0}={}){const _0x16f4c0=_0x1eaa89['plugins']['get']('TrackChangesEditing');return(_0x50d46c,_0x4e4f61,_0x505399)=>{if(!_0x505399['consumable']['test'](_0x4e4f61['markerRange'],_0x50d46c['name']))return;const _0x5c55ed=_0x4e4f61['markerRange']['getWalker'](),_0x215be6=_0x4e4f61['markerRange']['start'],_0x16836a=_0x1eaa89['model']['schema'];let _0x561e36=null,_0x16402e=null,_0x4eeab0=!0x1,_0x5c39a0=!0x1;for(const _0x5509bb of _0x5c55ed){const _0x40f6f8=_0x5509bb['item'];_0x4eeab0=_0x4eeab0||_0x16836a['isContent'](_0x40f6f8);const _0x3fd28d=_0x505399['mapper']['toViewElement'](_0x40f6f8);if(_0x3fd28d&&_0x3fd28d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5509bb['type']&&(_0x16836a['isBlock'](_0x40f6f8)&&!_0x16836a['isLimit'](_0x40f6f8)&&(_0x40f6f8['nextSibling']||_0x215be6['isAtEnd']?_0x561e36&&_0x561e36['parent']==_0x40f6f8||(_0x561e36=_0x40f6f8,_0x58f44a(_0x5509bb['previousPosition']),_0x5c39a0=!0x0):_0x16402e=_0x16402e||_0x5509bb['previousPosition']));}function _0x58f44a(_0x488e8a){const _0x1f0848=_0x505399['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xdd973}),_0x15cac5=_0x505399['mapper']['toViewPosition'](_0x488e8a);_0x55b7d2&&_0x16f4c0['activeMarkers']['includes'](_0x4e4f61['markerName'])&&_0x505399['writer']['addClass']('ck-suggestion-marker--active',_0x1f0848),_0x505399['writer']['insert'](_0x15cac5,_0x1f0848),_0x505399['mapper']['bindElementToMarker'](_0x1f0848,_0x4e4f61['markerName']);}_0x4eeab0||_0x5c39a0||!_0x16402e||_0x58f44a(_0x16402e);};}class q extends _0x1e79ec{static get['requires'](){return[_0x432acf];}['init'](){const _0x1a99c3=this['editor'],_0x260362=_0x1a99c3['plugins']['get']('TrackChangesEditing');_0x260362['enableCommand']('delete');const _0x154c3f=_0x1a99c3['commands']['get']('deleteForward');_0x260362['enableCommand']('deleteForward',(_0x4680d7,_0x5d642a={})=>{const _0x62289d=_0x1a99c3['model']['createSelection'](_0x1a99c3['model']['document']['selection']);_0x62289d['isCollapsed']&&_0x1a99c3['model']['modifySelection'](_0x62289d,{'direction':'forward','unit':_0x5d642a['unit']});const _0x5b6235=_0x62289d['getFirstRange'](),_0x36e53b=_0x43239f['fromRange'](_0x5b6235);let _0x3d1448;_0x4680d7(_0x5d642a),_0x3d1448='$graveyard'==_0x36e53b['root']['rootName']?_0x1a99c3['model']['createRange'](_0x5b6235['start']):_0x1a99c3['model']['createRange'](_0x36e53b['start'],_0x36e53b['end']),_0x36e53b['detach'](),_0x1a99c3['model']['enqueueChange'](_0x154c3f['buffer']['batch'],_0x320eec=>{_0x154c3f['buffer']['lock'](),_0x320eec['setSelection'](_0x320eec['createRange'](_0x3d1448['end'])),_0x154c3f['buffer']['unlock']();});}),_0x1a99c3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1a99c3,'merge'),{'priority':'high'}),_0x1a99c3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x592936,_0x546e57,_0x284216)=>{_0x284216['options']['showSuggestionHighlights']&&_e(_0x1a99c3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x592936,_0x546e57,_0x284216);},{'priority':'high'}),_0x1a99c3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x11bc7c,_0x5db0ff,_0x1b950a)=>{const _0x42939c=_0x1b950a['mapper']['markerNameToElements'](_0x5db0ff['markerName']);if(_0x42939c){for(const _0x19ce2d of _0x42939c)_0x19ce2d['is']('uiElement')&&(_0x1b950a['mapper']['unbindElementFromMarkerName'](_0x19ce2d,_0x5db0ff['markerName']),_0x1b950a['writer']['remove'](_0x19ce2d));}},{'priority':'high'});}}class z extends _0x1e79ec{['afterInit'](){const _0x82e26c=this['editor'];if(!_0x82e26c['plugins']['has']('ListEditing'))return;const _0x114cd0=_0x82e26c['locale'],_0x3f68ca=_0x82e26c['plugins']['get']('TrackChangesEditing'),_0x375dec=_0x82e26c['plugins']['has']('TodoListEditing'),_0x3b0412=!!_0x82e26c['config']['get']('list.multiBlock');function _0x208cef(_0x381932){return{'type':'format','content':''+o(_0x114cd0,'*Set\x20format:*\x20%0',_0x381932)};}function _0x468d06(_0x5802eb){return{'type':'format','content':''+o(_0x114cd0,'*Remove\x20format:*\x20%0',_0x5802eb)};}_0x3f68ca['enableDefaultAttributesIntegration']('numberedList'),_0x3f68ca['enableDefaultAttributesIntegration']('bulletedList'),_0x3f68ca['enableDefaultAttributesIntegration']('customNumberedList'),_0x3f68ca['enableDefaultAttributesIntegration']('customBulletedList'),_0x3f68ca['enableDefaultAttributesIntegration']('indentList'),_0x3f68ca['enableDefaultAttributesIntegration']('outdentList'),_0x3f68ca['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3f68ca['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3f68ca['registerBlockAttribute']('listItemId'),_0x3f68ca['registerBlockAttribute']('listType'),_0x3f68ca['registerBlockAttribute']('listIndent'),_0x3b0412&&(_0x3f68ca['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3f68ca['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x375dec&&(_0x3f68ca['enableDefaultAttributesIntegration']('todoList'),_0x3f68ca['enableDefaultAttributesIntegration']('checkTodoList'),_0x3f68ca['registerBlockAttribute']('todoListChecked'),_0x3f68ca['descriptionFactory']['registerDescriptionCallback'](_0x21bcbc=>{const {data:_0x4e9c0f}=_0x21bcbc;if(_0x4e9c0f&&'todoListChecked'==_0x4e9c0f['key'])return{'type':'format','content':_0x4e9c0f['newValue']?o(_0x114cd0,'*Check\x20item*'):o(_0x114cd0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x55a749=>{if(_0x55a749['batch']['isUndo'])return!0x1;let _0x294625=!0x1;const _0x550d40=_0x3f68ca['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51a643=>'todoListChecked'===_0x3f68ca['_getAttributeKey'](_0x51a643));for(const _0x431493 of _0x550d40){'todo'!=_0x431493['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3f68ca['_findSuggestions'](_0x431493['getFirstRange'](),'attribute')['find'](_0x3244c1=>'listType'===_0x3f68ca['_getAttributeKey'](_0x3244c1['suggestion']))||(_0x55a749['removeMarker'](_0x431493['getFirstMarker']()),_0x294625=!0x0));}return _0x294625;})),_0x3f68ca['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x114cd0,'FORMAT_INDENT'));const _0x3a6acc={'type':'format','content':''};_0x3f68ca['descriptionFactory']['registerDescriptionCallback'](_0x47d20b=>{const {data:_0x563125}=_0x47d20b;if(!_0x563125||'listType'!=_0x563125['key'])return;let _0x26e22e=_0x47d20b['head'];for(;_0x26e22e;){if(_0x26e22e['data']&&(('listStyle'==_0x26e22e['data']['key']||'listMarkerStyle'==_0x26e22e['data']['key'])&&(_0x26e22e['data']['newValue']&&'default'!=_0x26e22e['data']['newValue']||'default'!=_0x26e22e['data']['oldValue']&&!_0x563125['newValue'])||!_0x3b0412&&_0x26e22e['data']['key']==m))return _0x3a6acc;_0x26e22e=_0x26e22e['next'];}if(null==_0x563125['newValue'])switch(_0x563125['oldValue']){case'bulleted':return _0x468d06(o(_0x114cd0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x468d06(o(_0x114cd0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x468d06(o(_0x114cd0,'ELEMENT_TODO_LIST'));}switch(_0x563125['newValue']){case'bulleted':return _0x208cef(o(_0x114cd0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x208cef(o(_0x114cd0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x208cef(o(_0x114cd0,'ELEMENT_TODO_LIST'));}}),_0x3f68ca['descriptionFactory']['registerDescriptionCallback'](_0x18b7c3=>{const {data:_0x3a39fa}=_0x18b7c3;if(_0x3a39fa&&'listIndent'==_0x3a39fa['key'])return null==_0x3a39fa['newValue']||null==_0x3a39fa['oldValue']&&0x0==_0x3a39fa['newValue']?_0x3a6acc:void 0x0;}),_0x3f68ca['descriptionFactory']['registerDescriptionCallback'](_0x5751a5=>{if('attribute'!=_0x5751a5['type'])return;const {data:_0x5762c4}=_0x5751a5;if(!_0x5762c4||'listItemId'!=_0x5762c4['key'])return;const _0x1820f9=le(_0x5751a5);return'newValue'==_0x1820f9?{'type':'format','content':o(_0x114cd0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1820f9?{'type':'format','content':o(_0x114cd0,'*Split:*\x20list\x20item')}:_0x3a6acc;}),_0x82e26c['model']['document']['registerPostFixer'](_0xdafe0b=>this['listItemIdFixer'](_0xdafe0b)),_0x82e26c['model']['document']['registerPostFixer'](_0x1ba3ec=>this['noTrackChangesFixer'](_0x1ba3ec)),_0x82e26c['model']['document']['registerPostFixer'](_0x4e05a3=>this['assureChains'](_0x4e05a3)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2903c8){if(_0x2903c8['batch']['isUndo']||!_0x2903c8['batch']['isLocal'])return!0x1;let _0x509452=!0x1;const _0x496a5c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44a03f=>_0x44a03f['data']&&'listItemId'==_0x44a03f['data']['key'])['filter'](_0x143d56=>_0x143d56['data']['newValue']&&_0x143d56['data']['oldValue']);for(const _0x18e882 of _0x496a5c)le(_0x18e882)||(_0x2903c8['removeMarker'](_0x18e882['getFirstMarker']()),_0x509452=!0x0);return _0x509452;}['noTrackChangesFixer'](_0x202f84){if(_0x202f84['batch']['isUndo']||!_0x202f84['batch']['isLocal'])return!0x1;const _0x2427c6=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2427c6['trackChangesCommand']['value'])return!0x1;let _0x3f2001=!0x1;const _0x33344b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x143593=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x48a248=>'attribute'==_0x48a248['type'])['filter'](_0x2bcadd=>_0x33344b['includes'](_0x2bcadd['attributeKey']));if(0x0==_0x143593['length'])return _0x3f2001;for(const _0x26229f of _0x143593){const _0xdb5e0a=_0x2427c6['_findSuggestions'](_0x26229f['range'],'attribute')['filter'](_0xb969a4=>!_0xb969a4['meta']['isNextTo'])['map'](_0xd0b0dd=>_0xd0b0dd['suggestion'])['filter'](_0x3ec394=>{const _0x15c6f1=_0x2427c6['_getAttributeKey'](_0x3ec394);return _0x33344b['includes'](_0x15c6f1);});if(_0xdb5e0a['length']){for(const _0x6dbf98 of _0xdb5e0a)_0x202f84['removeMarker'](_0x6dbf98['getFirstMarker']());_0x3f2001=!0x0;}}return _0x3f2001;}['assureChains'](_0x39bd1a){if(_0x39bd1a['batch']['isUndo']||!_0x39bd1a['batch']['isLocal'])return!0x1;const _0x2da24f=this['editor']['plugins']['get']('TrackChangesEditing');let _0x182d7f=!0x1;const _0x5ebbfc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5b499d of _0x2da24f['getSuggestions']({'skipNotAttached':!0x0})){const _0x455519=_0x2da24f['_findSuggestions'](_0x5b499d['getFirstRange'](),'attribute')['map'](_0xff74e=>_0xff74e['suggestion'])['filter'](_0x4b04fa=>_0x4b04fa['data']&&_0x5ebbfc['includes'](_0x4b04fa['data']['key']));if(!_0x455519['length'])continue;const _0x1e2480=_0x455519[0x0]['head']['attributes']['groupId'];if(!_0x455519['every'](_0x688f4b=>_0x688f4b['attributes']['groupId']===_0x1e2480)){for(const _0x5e54c9 of _0x455519)_0x28cb69(_0x5e54c9,_0x1e2480)&&(_0x182d7f=!0x0);}}return _0x182d7f;function _0x3f7f8e(_0x277255,_0x19107f){for(const _0x4b0937 of _0x2da24f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x351161=>'attribute'==_0x351161['type']&&_0x351161['attributes']['groupId']==_0x277255))_0x4b0937['setAttribute']('groupId',_0x19107f);}function _0x28cb69(_0x54ca02,_0x4ca8c3){let _0x42e330=_0x54ca02['head'],_0x9a8790=!0x1;for(;_0x42e330;)_0x42e330['attributes']['groupId']!=_0x4ca8c3&&(_0x3f7f8e(_0x42e330['attributes']['groupId'],_0x4ca8c3),_0x42e330['setAttribute']('groupId',_0x4ca8c3),_0x9a8790=!0x0),_0x42e330=_0x42e330['next'];return _0x9a8790;}}['_supportLegacySuggestions'](){const _0xc70e3c=this['editor'],_0x188426=_0xc70e3c['locale'],_0x1366b3=_0xc70e3c['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1366b3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x45b358,_0x165c29){const _0x1a21e8=[];for(let _0x3faebf of _0x45b358)_0x3faebf['start']['nodeAfter']===_0x3faebf['end']['parent']&&(_0x3faebf=_0xc70e3c['model']['createRange'](_0xc70e3c['model']['createPositionAt'](_0x3faebf['start']['nodeAfter'],0x0))),_0x1a21e8['push'](_0x3faebf);_0xc70e3c['model']['change'](_0x5ba1ba=>{const _0x39646f=_0xc70e3c['model']['document']['selection'],_0x15094e=Array['from'](_0x39646f['getRanges']())['map'](_0x505e98=>_0x43239f['fromRange'](_0x505e98));_0x5ba1ba['setSelection'](_0x1a21e8),_0xc70e3c['commands']['get'](_0x165c29['commandName'])['refresh'](),_0x165c29['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xc70e3c['execute'](_0x165c29['commandName'],..._0x165c29['commandParams']),_0x5ba1ba['setSelection'](_0x15094e);for(const _0xbc8bbe of _0x15094e)_0xbc8bbe['detach']();});}),_0x1366b3['descriptionFactory']['registerElementLabel'](function(_0x357e52){const _0x12cf04=!_0xc70e3c['model']['schema']['isObject'](_0x357e52),_0x35e80b=_0x357e52['previousSibling'],_0x2fb95e=_0x357e52['nextSibling'],_0x16a5d7=_0x357e52['getAttribute']('listItemId'),_0x3d0c6c=!_0x35e80b||_0x35e80b['getAttribute']('listItemId')!==_0x16a5d7,_0x369f99=!_0x2fb95e||_0x2fb95e['getAttribute']('listItemId')!==_0x16a5d7;return _0x12cf04&&Boolean(_0x16a5d7)&&_0x3d0c6c&&_0x369f99;},_0x9d205e=>o(_0x188426,'ELEMENT_LIST_ITEM',_0x9d205e));}['_registerLegacyDescription'](){const _0x4f5380=this['editor'],_0x2c2de6=_0x4f5380['locale'];function _0x177e7a(_0x421a38){const _0x55dfef=_0x4f5380['commands']['get']('bulletedList')['value'],_0x355753=_0x4f5380['commands']['get']('numberedList')['value'];return'numberedList'===_0x421a38?_0x55dfef:_0x355753;}_0x4f5380['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x51d465){if('formatBlock'!=_0x51d465['type'])return;const {data:_0x482946}=_0x51d465;if(!_0x482946)return;let _0x40b1ab,_0x2ac37d,_0x12c024,_0x2a25f5;switch(_0x482946['commandName']){case'bulletedList':_0x12c024=_0x482946['commandParams'][0x0]['forceValue'],_0x2a25f5=_0x177e7a(_0x482946['commandName']),_0x40b1ab=_0x12c024?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a25f5&&_0x4f5380['config']['get']('list.multiBlock')||(_0x40b1ab='*Change\x20to:*\x20%0'),_0x2ac37d={'type':'format','content':o(_0x2c2de6,_0x40b1ab,o(_0x2c2de6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x12c024=_0x482946['commandParams'][0x0]['forceValue'],_0x2a25f5=_0x177e7a(_0x482946['commandName']),_0x40b1ab=_0x12c024?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2a25f5&&_0x4f5380['config']['get']('list.multiBlock')||(_0x40b1ab='*Change\x20to:*\x20%0'),_0x2ac37d={'type':'format','content':o(_0x2c2de6,_0x40b1ab,o(_0x2c2de6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x40b1ab='*Indent:*\x20%0',_0x2ac37d={'type':'format','content':o(_0x2c2de6,_0x40b1ab,o(_0x2c2de6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x40b1ab=function(_0x5cea0f){const _0x4760f8=_0x5cea0f['getFirstRange']();let _0x58335d=_0x4760f8['start']['nodeAfter'];for(;_0x58335d&&_0x4760f8['containsItem'](_0x58335d);){if(_0x58335d['getAttribute']('listIndent')>0x0)return!0x1;_0x58335d=_0x58335d['nextSibling'];}return!0x0;}(_0x51d465)?o(_0x2c2de6,'*Format:*\x20remove\x20from\x20%0',o(_0x2c2de6,function(_0x2816c8){return'ELEMENT_'+_0x2816c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x51d465))):o(_0x2c2de6,'*Outdent:*\x20%0',o(_0x2c2de6,'ELEMENT_LIST_ITEM')),_0x2ac37d={'type':'format','content':_0x40b1ab};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x482946['multipleBlocks']&&(_0x40b1ab='*Merge:*\x20%0',_0x2ac37d={'type':'deletion','content':o(_0x2c2de6,_0x40b1ab,o(_0x2c2de6,'ELEMENT_LIST_ITEM'))});}return _0x2ac37d;});}}function le(_0x532c1e){let _0x3cea4c=_0x532c1e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3cea4c;){const _0x486648=_0x3cea4c['getAttribute']('listItemId');if(!_0x486648)return!0x1;if(_0x486648==_0x532c1e['data']['newValue'])return'newValue';if(_0x486648==_0x532c1e['data']['oldValue'])return'oldValue';_0x3cea4c=_0x3cea4c['previousSibling'];}return!0x1;}class ue extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2950bc=this['editor']['config']['get']('list.properties'),_0x391dec=this['editor']['plugins']['get']('TrackChangesEditing');_0x2950bc['styles']&&(_0x391dec['enableDefaultAttributesIntegration']('listStyle'),_0x391dec['registerBlockAttribute']('listStyle')),_0x2950bc['reversed']&&(_0x391dec['enableDefaultAttributesIntegration']('listReversed'),_0x391dec['registerBlockAttribute']('listReversed')),_0x2950bc['startIndex']&&(_0x391dec['enableDefaultAttributesIntegration']('listStart'),_0x391dec['registerBlockAttribute']('listStart'));const _0xe9f580={'type':'format','content':''};_0x391dec['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x6de0b4=this['editor']['locale'];_0x391dec['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x6de0b4,'FORMAT_LIST_REVERSED')),_0x391dec['descriptionFactory']['registerDescriptionCallback'](_0x320824=>{const {data:_0x1e5c03}=_0x320824;if(_0x1e5c03&&'listReversed'==_0x1e5c03['key'])return null==_0x1e5c03['newValue']||0x0==_0x1e5c03['newValue']&&null==_0x1e5c03['oldValue']?_0xe9f580:void 0x0;}),_0x391dec['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x6de0b4,'FORMAT_LIST_START')),_0x391dec['descriptionFactory']['registerDescriptionCallback'](_0x41806e=>{const {data:_0x285806}=_0x41806e;if(_0x285806&&'listStart'==_0x285806['key'])return null==_0x285806['newValue']||0x1==_0x285806['newValue']&&null==_0x285806['oldValue']?_0xe9f580:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1ccde8=>{if(_0x1ccde8['batch']['isUndo'])return!0x1;let _0x423027=!0x1;const _0x3e4729=_0x391dec['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55a872=>{const _0x355b67=_0x391dec['_getAttributeKey'](_0x55a872);return'listStart'==_0x355b67||'listReversed'==_0x355b67;});for(const _0x7199b3 of _0x3e4729){const _0x1eb680=_0x7199b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1eb680||'customNumbered'==_0x1eb680)continue;_0x391dec['_findSuggestions'](_0x7199b3['getFirstRange'](),'attribute')['find'](_0x5a6885=>'listType'==_0x391dec['_getAttributeKey'](_0x5a6885['suggestion']))||(_0x1ccde8['removeMarker'](_0x7199b3['getFirstMarker']()),_0x423027=!0x0);}return _0x423027;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4567b3){const _0x52b1c8=this['editor']['locale'],{data:_0x38b6ef}=_0x4567b3,_0x3810c9={'type':'format','content':''};if(!_0x38b6ef||'listStyle'!=_0x38b6ef['key'])return;if(!_0x38b6ef['oldValue'])return'default'==_0x38b6ef['newValue']?_0x3810c9:{'type':'format','content':''+o(_0x52b1c8,'*Set\x20format:*\x20%0',o(_0x52b1c8,this['_getTranslationKeyForListStyle'](_0x38b6ef['newValue'])))};if(!_0x38b6ef['newValue']){if('default'==_0x38b6ef['oldValue'])return _0x3810c9;let _0x104bf7=_0x4567b3['head'];for(;_0x104bf7;){if(_0x104bf7['data']&&'listType'==_0x104bf7['data']['key']&&_0x104bf7['data']['newValue'])return _0x3810c9;_0x104bf7=_0x104bf7['next'];}return{'type':'format','content':''+o(_0x52b1c8,'*Remove\x20format:*\x20%0',o(_0x52b1c8,this['_getTranslationKeyForListStyle'](_0x38b6ef['oldValue'])))};}if('default'!=_0x38b6ef['newValue'])return{'type':'format','content':''+o(_0x52b1c8,'*Set\x20format:*\x20%0',o(_0x52b1c8,this['_getTranslationKeyForListStyle'](_0x38b6ef['newValue'])))};let _0x2818f0=_0x4567b3['head'];for(;_0x2818f0;){if(_0x2818f0['data']&&'listType'==_0x2818f0['data']['key']&&_0x2818f0['data']['newValue']&&_0x2818f0['data']['oldValue'])return _0x3810c9;_0x2818f0=_0x2818f0['next'];}return{'type':'format','content':o(_0x52b1c8,'*Set\x20format:*\x20%0',o(_0x52b1c8,'ELEMENT_'+_0x4567b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x412ad8=this['editor'],_0x5daf8e=_0x412ad8['locale'];_0x412ad8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x145c61=>{if('formatBlock'!=_0x145c61['type'])return;const {data:_0x44940b}=_0x145c61;if(!_0x44940b)return;let _0x12e17e,_0x3e0fe7;switch(_0x44940b['commandName']){case'listStyle':_0x12e17e='*Change\x20to:*\x20%0',_0x3e0fe7={'type':'format','content':o(_0x5daf8e,_0x12e17e,o(_0x5daf8e,this['_getTranslationKeyForListStyle'](_0x44940b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x12e17e=_0x44940b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3e0fe7={'type':'format','content':o(_0x5daf8e,_0x12e17e)};break;case'listStart':_0x12e17e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3e0fe7={'type':'format','content':o(_0x5daf8e,_0x12e17e,_0x44940b['commandParams'][0x0]['startIndex'])};}return _0x3e0fe7;});}['_getTranslationKeyForListStyle'](_0x35708f){return'ELEMENT_'+function(_0x1e7081){if(pe['includes'](_0x1e7081))return'bulleted';if(ye['includes'](_0x1e7081))return'numbered';return null;}(_0x35708f)['toUpperCase']()+'_LIST_'+_0x35708f['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1e79ec{static get['requires'](){return[_0x4385a8];}['init'](){const _0x20f7bf=this['editor'],_0x4be535=_0x20f7bf['plugins']['get']('TrackChangesEditing'),_0x2056fc=_0x20f7bf['commands']['get']('enter');_0x4be535['enableCommand']('enter',()=>{_0x20f7bf['model']['change'](_0x112a78=>{const _0x27759a=_0x20f7bf['model']['document']['selection'],_0x3cf6a2=_0x27759a['getFirstPosition'](),_0x59f5bd=_0x43239f['fromRange'](_0x27759a['getFirstRange']());if(_0x2056fc['enterBlock'](_0x112a78)){const _0x1b6300=_0x20f7bf['model']['createPositionAt'](_0x3cf6a2['parent']['nextSibling'],0x0),_0x2f5986=_0x112a78['createRange'](_0x3cf6a2,_0x1b6300);_0x4be535['markInsertion'](_0x2f5986);}else _0x112a78['setSelection'](_0x112a78['createRange'](_0x59f5bd['end']));_0x59f5bd['detach'](),_0x2056fc['fire']('afterExecute',{'writer':_0x112a78});});}),_0x20f7bf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x20f7bf,'split'),{'priority':'high'}),_0x20f7bf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1b3385,_0x5069ba,_0x59678c)=>{const _0x3bf023=_0x59678c['mapper']['markerNameToElements'](_0x5069ba['markerName']);if(_0x3bf023){for(const _0x30ab23 of _0x3bf023)_0x30ab23['hasClass']('ck-suggestion-marker-split')&&(_0x59678c['mapper']['unbindElementFromMarkerName'](_0x30ab23,_0x5069ba['markerName']),_0x59678c['writer']['remove'](_0x30ab23));}},{'priority':'high'}),_0x20f7bf['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16ede3,_0x10e6b7,_0x3049ca)=>{_0x3049ca['options']['showSuggestionHighlights']&&_e(_0x20f7bf,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x16ede3,_0x10e6b7,_0x3049ca);},{'priority':'high'});}}class J extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x441892=this['editor']['plugins']['get']('TrackChangesEditing');_0x441892['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x441892['enableCommand']('findNext'),_0x441892['enableCommand']('findPrevious'),_0x441892['enableCommand']('replace'),_0x441892['enableCommand']('replaceAll');}['handleFindCommand'](_0x25daef,_0x2d1ac8,_0x3776ff={}){const _0x49c568=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x25daef(_0x5d51d1=>('string'==typeof _0x2d1ac8?_0x49c568['findByTextCallback'](_0x2d1ac8,_0x3776ff):_0x2d1ac8)(_0x5d51d1)['filter'](_0x3021d6=>!0x1===this['_isInDeletionRange'](_0x3021d6,_0x5d51d1['item'])),_0x3776ff);}['_isInDeletionRange'](_0x1174c5,_0x1ac39e){const _0x2840aa=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1ac39e,_0x1174c5['start']),this['editor']['model']['createPositionAt'](_0x1ac39e,_0x1174c5['end']));for(const _0x419153 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2840aa['getIntersection'](_0x419153['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 _0x1e79ec{['afterInit'](){const _0x5662e3=this['editor']['locale'],_0x450058=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x296a8b,commandName:_0x353310}of ro)this['editor']['plugins']['has'](_0x296a8b)&&(_0x450058['enableDefaultAttributesIntegration'](_0x353310),_0x450058['registerInlineAttribute'](_0x353310));_0x5662e3['t'],_0x450058['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5662e3,'FORMAT_FONT_SIZE')),_0x450058['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5662e3,'FORMAT_FONT_FAMILY')),_0x450058['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5662e3,'FORMAT_FONT_COLOR')),_0x450058['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5662e3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59c395=this['editor'],_0xb7a6dd=_0x59c395['locale'];_0x59c395['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x697a58=>{const _0x847386=_0xb7a6dd['t'];if('formatInline'!=_0x697a58['type'])return;const {data:_0x5a6893}=_0x697a58;if(null!=_0x5a6893){if('fontSize'==_0x5a6893['commandName']){const _0x42b196=_0x5a6893['commandParams'][0x0]['value'];if(_0x42b196){const _0x5859dd=_0x847386(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3f1feb=>_0x3f1feb['model']==_0x42b196)['title'])['toLowerCase']();return{'type':'format','content':o(_0xb7a6dd,'*Set\x20font\x20size:*\x20%0',_0x5859dd)};}return{'type':'format','content':o(_0xb7a6dd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5a6893['commandName']){const _0x163ea3=_0x5a6893['commandParams'][0x0]['value'];return _0x163ea3?{'type':'format','content':o(_0xb7a6dd,'*Set\x20font\x20family:*\x20%0',_0x163ea3)}:{'type':'format','content':o(_0xb7a6dd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5a6893['commandName']){const _0x4abdb2=_0x5a6893['commandParams'][0x0]['value'];if(_0x4abdb2){const _0x4d7830=_0x387b0f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x99f131=>_0x99f131['model']==_0x4abdb2);let _0x162b9c=_0x4abdb2,_0x416a5b='';return _0x4d7830&&(_0x162b9c=_0x4d7830['label'],_0x416a5b=_0x847386(_0x162b9c)['toLowerCase']()),{'type':'format','content':o(_0xb7a6dd,'*Set\x20font\x20color:*\x20%0',_0x416a5b)['trim'](),'color':{'value':_0x4abdb2,'title':_0x416a5b||_0x162b9c}};}return{'type':'format','content':o(_0xb7a6dd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5a6893['commandName']){const _0x39c0c4=_0x5a6893['commandParams'][0x0]['value'];if(_0x39c0c4){const _0x5d0ba9=_0x387b0f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1d82ca=>_0x1d82ca['model']==_0x39c0c4);let _0x4fa112=_0x39c0c4,_0x598ee9='';return _0x5d0ba9&&(_0x4fa112=_0x5d0ba9['label'],_0x598ee9=_0x847386(_0x4fa112)['toLowerCase']()),{'type':'format','content':o(_0xb7a6dd,'*Set\x20font\x20background\x20color:*\x20%0',_0x598ee9)['trim'](),'color':{'value':_0x39c0c4,'title':_0x598ee9||_0x4fa112}};}return{'type':'format','content':o(_0xb7a6dd,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1e79ec{['afterInit'](){const _0x605399=this['editor'],_0x5acbba=_0x605399['plugins']['get']('TrackChangesEditing'),_0x504d67=_0x605399['commands']['get']('copyFormat'),_0x1fbeb8=_0x605399['commands']['get']('pasteFormat');_0x504d67&&_0x1fbeb8&&(_0x5acbba['enableDefaultAttributesIntegration']('pasteFormat'),_0x5acbba['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1795cb=this['editor'],_0x530a66=_0x1795cb['locale'];_0x1795cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a47ae=>{if('formatBlock'!=_0x5a47ae['type']&&'formatInline'!=_0x5a47ae['type'])return;const {data:_0x4d699b}=_0x5a47ae;if(_0x4d699b&&'pasteFormat'===_0x4d699b['commandName']){const _0x5ef19d=[],_0xdb35ea=_0x4d699b['commandParams'][0x0];for(const [_0x57e338,_0x2549ee]of Object['entries'](_0xdb35ea))_0x5ef19d['push'](so(_0x1795cb,_0x57e338,_0x2549ee));return _0x5ef19d['length']?{'type':'format','content':o(_0x530a66,'*Set\x20format\x20to:*\x20%0',_0x5ef19d['join'](',\x20'))}:{'type':'format','content':o(_0x530a66,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1d6ef6,_0x322cc3,_0x5b770d){const _0xd0a8c4=_0x1d6ef6['locale']['t'],_0x47d4d1=_0x322cc3['split'](/(?=[A-Z])/)['join']('\x20'),_0x5401ec=_0xd0a8c4(_0x47d4d1['charAt'](0x0)['toUpperCase']()+_0x47d4d1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5b770d)return _0x5401ec;if('fontColor'===_0x322cc3||'fontBackgroundColor'===_0x322cc3){const _0x263b07=_0x387b0f(_0x1d6ef6['config']['get']('fontColor.colors'))['find'](_0x340aae=>_0x340aae['model']==_0x5b770d);return _0x5401ec+'\x20('+(_0x263b07?_0xd0a8c4(_0x263b07['label'])['toLowerCase']():_0x5b770d)+')';}if('fontSize'===_0x322cc3&&isNaN(parseFloat(_0x5b770d))){const _0x2fda42=_0x1d6ef6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1d6ef6['config']['get']('fontSize.options'))['find'](_0x129102=>_0x129102['model']==_0x5b770d);return _0x5401ec+'\x20('+(_0x2fda42?_0xd0a8c4(_0x2fda42['title'])['toLowerCase']():_0x5b770d)+')';}return _0x5401ec+'\x20('+_0x5b770d+')';}class Y extends _0x1e79ec{['afterInit'](){const _0x5eb669=this['editor'];if(!_0x5eb669['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5eb669['config']['get']('heading.options');const _0xf97c91=_0x5eb669['locale'],_0x400c0d=_0x5eb669['plugins']['get']('TrackChangesEditing');_0x400c0d['enableDefaultAttributesIntegration']('heading');for(const _0x47c2f1 of this['_headingOptions'])'paragraph'!=_0x47c2f1['model']&&_0x400c0d['descriptionFactory']['registerElementLabel'](_0x47c2f1['model'],_0x3b81a7=>{const _0x1c06ac=this['_getHeadingLevel'](_0x47c2f1['model']);return null!==_0x1c06ac?_0x1f3042(_0x3b81a7,_0x1c06ac):_0x57bf4b(_0x3b81a7,_0x47c2f1['title']);});function _0x1f3042(_0x4e76cb,_0x15161c){return o(_0xf97c91,'ELEMENT_HEADING',[_0x4e76cb,_0x15161c]);}function _0x57bf4b(_0x242f1f,_0x2d1af0){return o(_0xf97c91,'ELEMENT_HEADING_CUSTOM',[_0x242f1f,_0x2d1af0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c1876=this['editor'],_0x43b3d3=_0x2c1876['locale'];function _0x454a19(_0xff1a2b,_0x307080){return o(_0x43b3d3,'ELEMENT_HEADING_CUSTOM',[_0xff1a2b,_0x307080]);}_0x2c1876['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22adbc=>{if('formatBlock'!=_0x22adbc['type'])return;const {data:_0x4c0677}=_0x22adbc;if(_0x4c0677&&'heading'==_0x4c0677['commandName']){const _0x46a299=_0x4c0677['commandParams'][0x0]['value'],_0x39256f=this['_getHeadingLevel'](_0x46a299);if(null!==_0x39256f)return{'type':'format','content':o(_0x43b3d3,'*Change\x20to:*\x20%0',(_0x3f0fa6=0x1,_0x1b9c7e=_0x39256f,o(_0x43b3d3,'ELEMENT_HEADING',[_0x3f0fa6,_0x1b9c7e])))};const _0x3e6e50=this['_headingOptions']['find'](_0x292542=>_0x292542['model']===_0x46a299)['title'];return{'type':'format','content':o(_0x43b3d3,'*Change\x20to:*\x20%0',_0x454a19(0x1,_0x3e6e50))};}var _0x3f0fa6,_0x1b9c7e;});}['_getHeadingLevel'](_0x5a4ba5){var _0x49723e,_0x26cec0;const _0x5ce38d=_0x5a4ba5['match'](/^heading(\d+)/);if(_0x5ce38d)return _0x5ce38d[0x1];const _0x4b3919=null===(_0x49723e=this['_headingOptions'])||void 0x0===_0x49723e?void 0x0:_0x49723e['find'](_0x302208=>_0x302208['model']==_0x5a4ba5);if(_0x4b3919&&_0x4b3919['view']){const _0x1379df=_0x4b3919['view'],_0x3441ec=(null!==(_0x26cec0=_0x1379df['name'])&&void 0x0!==_0x26cec0?_0x26cec0:_0x1379df)['match'](/^h(\d+)/);if(_0x3441ec)return _0x3441ec[0x1];}return null;}}class Z extends _0x1e79ec{['afterInit'](){const _0x48ef79=this['editor'];if(!_0x48ef79['plugins']['has']('HighlightEditing'))return;const _0x1461d5=_0x48ef79['plugins']['get']('TrackChangesEditing'),_0x37e506=_0x48ef79['locale'];_0x1461d5['enableDefaultAttributesIntegration']('highlight'),_0x1461d5['registerInlineAttribute']('highlight'),_0x1461d5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x37e506,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b0549=this['editor'],_0x1f6120=_0x4b0549['locale'];_0x4b0549['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56e879=>{if('formatInline'!=_0x56e879['type'])return;const {data:_0x120a22}=_0x56e879;if(_0x120a22&&'highlight'==_0x120a22['commandName']){const _0x33334d=_0x1f6120['t'],_0xa08fef=_0x120a22['commandParams'][0x0]['value'];if(_0xa08fef){const _0xd346ea=_0x4b0549['config']['get']('highlight.options')['find'](_0x1c2cc2=>_0x1c2cc2['model']==_0xa08fef),_0x3aebce=_0x33334d(_0xd346ea['title'])['toLowerCase']();return{'type':'format','content':o(_0x1f6120,'*Set\x20highlight:*\x20%0',_0x3aebce),'color':{'value':_0xd346ea['color'],'title':_0xd346ea['title']}};}return{'type':'format','content':o(_0x1f6120,'*Remove\x20highlight*',o(_0x1f6120,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1e79ec{['afterInit'](){const _0x395b48=this['editor'];if(!_0x395b48['plugins']['has']('HorizontalLineEditing'))return;_0x395b48['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x493a8f=_0x395b48['plugins']['get']('TrackChangesEditing'),_0x1ed551=_0x395b48['locale'];_0x493a8f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x432936=>o(_0x1ed551,'ELEMENT_HORIZONTAL_LINE',_0x432936)),_0x395b48['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x40e89b,{writer:_0x439c21,options:_0x3110ac})=>{if(!_0x3110ac['showSuggestionHighlights'])return null;const _0x2289bb=_0x439c21['createContainerElement']('div'),_0x119c61=_0x439c21['createEmptyElement']('hr');return _0x439c21['addClass']('ck-horizontal-line',_0x2289bb),_0x439c21['insert'](_0x439c21['createPositionAt'](_0x2289bb,0x0),_0x119c61),_0x2289bb;},'converterPriority':'high'});}}class et extends _0x1e79ec{['afterInit'](){const _0x554bc2=this['editor'];if(!_0x554bc2['plugins']['has']('HtmlEmbed'))return;const _0x255a66=_0x554bc2['plugins']['get']('TrackChangesEditing'),_0x6df868=_0x554bc2['locale'];_0x255a66['descriptionFactory']['registerElementLabel']('rawHtml',_0x135e34=>o(_0x6df868,'ELEMENT_HTML_EMBED',_0x135e34)),_0x255a66['enableDefaultAttributesIntegration']('htmlEmbed'),_0x255a66['registerBlockAttribute']('value'),_0x255a66['descriptionFactory']['registerDescriptionCallback'](_0x5d4eeb=>{if('attribute'!=_0x5d4eeb['type'])return;const {data:_0xe47093}=_0x5d4eeb;if(_0xe47093&&'value'==_0xe47093['key']&&_0x5d4eeb['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x171f86=o(_0x6df868,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x6df868,'*Change\x20%0\x20content*',_0x171f86)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f1129=this['editor'],_0x1ad763=_0x4f1129['locale'];_0x4f1129['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48191a=>{if('formatBlock'!=_0x48191a['type'])return;const {data:_0x800aa1}=_0x48191a;if(_0x800aa1&&'htmlEmbed'==_0x800aa1['commandName']){const _0x3e3547=o(_0x1ad763,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1ad763,'*Change\x20%0\x20content*',_0x3e3547)};}});}}class it extends _0x1e79ec{['afterInit'](){const _0x5a14f4=this['editor'];if(!_0x5a14f4['plugins']['has']('ImageEditing'))return;const _0x13726f=_0x5a14f4['plugins']['get']('TrackChangesEditing'),_0x108f9e=_0x5a14f4['plugins']['get']('ImageUtils'),_0x35cf26=_0x5a14f4['locale'];_0x13726f['enableCommand']('insertImage'),_0x13726f['descriptionFactory']['registerElementLabel']('imageBlock',_0xb6cadd=>o(_0x35cf26,'ELEMENT_IMAGE',_0xb6cadd)),_0x13726f['descriptionFactory']['registerElementLabel']('imageInline',_0x11c1c4=>o(_0x35cf26,'ELEMENT_INLINE_IMAGE',_0x11c1c4)),_0x13726f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x35cf26,'ELEMENT_CAPTION')),_0x5a14f4['plugins']['has']('ImageUploadEditing')&&_0x13726f['enableCommand']('uploadImage'),_0x5a14f4['plugins']['has']('ImageBlockEditing')&&_0x5a14f4['plugins']['has']('ImageInlineEditing')&&(_0x13726f['enableCommand']('imageTypeInline',(_0x222b33,_0x2a614a)=>{const _0x4ba358=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']);_0x5a14f4['model']['change'](()=>{_0x13726f['markBlockFormat'](_0x4ba358,{'commandName':'imageTypeInline','commandParams':[_0x2a614a]},[],'convertBlockImageToInline');});}),_0x13726f['enableCommand']('imageTypeBlock',(_0x38920a,_0x1d380b)=>{_0x5a14f4['model']['change'](_0x1689e9=>{let _0x345eeb=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']),_0x26c2c6=_0x1689e9['createRangeOn'](_0x345eeb);const _0x5ef674=_0x27d4fa['fromPosition'](_0x26c2c6['start'],'toPrevious'),_0x39b44e=_0x27d4fa['fromPosition'](_0x26c2c6['end'],'toNext');_0x13726f['forceDefaultExecution'](()=>_0x38920a(_0x1d380b)),_0x345eeb=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']),_0x26c2c6=_0x1689e9['createRangeOn'](_0x345eeb);const _0x10048d=_0x1689e9['createRange'](_0x5ef674,_0x39b44e);_0x5ef674['detach'](),_0x39b44e['detach'](),_0x13726f['markBlockFormat'](_0x345eeb,{'commandName':'imageTypeInline','commandParams':[_0x1d380b]},[],'convertInlineImageToBlock'),_0x10048d['start']['isBefore'](_0x26c2c6['start'])&&_0x13726f['markInsertion'](_0x1689e9['createRange'](_0x10048d['start'],_0x26c2c6['start']),'convertInlineImageToBlock'),_0x26c2c6['end']['isBefore'](_0x10048d['end'])&&_0x13726f['markInsertion'](_0x1689e9['createRange'](_0x26c2c6['end'],_0x10048d['end']),'convertInlineImageToBlock');});}),_0x13726f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x13726f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x13726f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x13726f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x13726f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x13726f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4f4b06])=>{const _0x3d52da=_0x13726f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x441481=_0x4f4b06['start'],_0x3d08ff=_0x4f4b06['end'];const _0x3856a9=_0x5a14f4['model']['schema']['getNearestSelectionRange'](_0x441481,'backward'),_0x4e62ba=_0x5a14f4['model']['schema']['getNearestSelectionRange'](_0x3d08ff,'forward');_0x3856a9['isCollapsed']&&(_0x441481=_0x3856a9['start']),_0x4e62ba['isCollapsed']&&(_0x3d08ff=_0x4e62ba['end']),_0x3d52da([_0x5a14f4['model']['createRange'](_0x441481,_0x3d08ff)]);}),_0x13726f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4aebc6),_0x13726f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4aebc6)),_0x5a14f4['plugins']['has']('ImageCaptionEditing')&&(_0x13726f['enableCommand']('toggleImageCaption',(_0xfb8486,_0x183fe9)=>{const _0x33ac6c=_0x5a14f4['plugins']['get']('ImageCaptionUtils');let _0x4f330d=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']),_0x3a730d=_0x33ac6c['getCaptionFromImageModelElement'](_0x4f330d);_0x5a14f4['model']['change'](()=>{if(_0x3a730d)return void _0x13726f['markDeletion'](_0x5a14f4['model']['createRangeOn'](_0x3a730d));const _0x182f68=_0x108f9e['isBlockImage'](_0x4f330d);_0xfb8486(_0x183fe9),_0x4f330d=_0x108f9e['getClosestSelectedImageElement'](_0x5a14f4['model']['document']['selection']),_0x3a730d=_0x33ac6c['getCaptionFromImageModelElement'](_0x4f330d),_0x13726f['markInsertion'](_0x5a14f4['model']['createRangeOn'](_0x3a730d),_0x182f68?null:'imageCaption');});}),_0x13726f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4aebc6));const _0x5137b5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2fdc3f(_0x5359b1,_0x450d10){const _0x1eeb77=_0x5137b5['findIndex'](({type:_0x30e5ef,subType:_0x2c8ca0})=>_0x5359b1['type']==_0x30e5ef&&_0x5359b1['subType']==_0x2c8ca0),_0xf6eb75=_0x5137b5['findIndex'](({type:_0x187cc0,subType:_0x50586b})=>_0x450d10['type']==_0x187cc0&&_0x450d10['subType']==_0x50586b);if(_0x1eeb77<0x0||_0xf6eb75<0x0)return!0x1;const _0xd03d91=_0x5359b1['getFirstRange'](),_0x14b744=_0x450d10['getFirstRange']();if((0x0==_0x1eeb77||0x1==_0x1eeb77)&&0x2==_0xf6eb75&&_0xd03d91['isIntersecting'](_0x14b744))return!0x0;if(0x2==_0x1eeb77&&0x3==_0xf6eb75){const _0x54fb9b=_0x13726f['_findSuggestions'](_0xd03d91,'insertion')['filter'](({suggestion:_0x452328,meta:_0x1e37c5})=>_0x1e37c5['isOwn']&&'convertInlineImageToBlock'==_0x452328['subType']);if(_0x54fb9b['length']>0x1&&_0x14b744['end']['isEqual'](_0xd03d91['start']))return!0x0;if(0x1==_0x54fb9b['length']&&(_0xd03d91['start']['isEqual'](_0x14b744['end'])||_0xd03d91['end']['isEqual'](_0x14b744['start'])))return!0x0;}if(0x3==_0x1eeb77&&0x3==_0xf6eb75&&_0xd03d91['start']['isBefore'](_0x14b744['start'])){const _0x568bf1=_0xd03d91['end']['nodeAfter'],_0x2de405=_0x14b744['start']['nodeBefore'];return _0x108f9e['isBlockImage'](_0x568bf1)&&_0x568bf1===_0x2de405;}return!0x1;}function _0x4aebc6(_0x2981d0,_0x30619b){return _0x2fdc3f(_0x2981d0,_0x30619b)?[_0x2981d0,_0x30619b]:_0x2fdc3f(_0x30619b,_0x2981d0)?[_0x30619b,_0x2981d0]:null;}_0x5a14f4['plugins']['has']('ImageResize')&&(_0x13726f['enableDefaultAttributesIntegration']('resizeImage'),_0x13726f['registerBlockAttribute']('resizedWidth'),_0x13726f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x35cf26,'FORMAT_IMAGE_SIZE'))),_0x5a14f4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x13726f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x13726f['registerBlockAttribute']('alt')),_0x13726f['descriptionFactory']['registerDescriptionCallback'](_0x405aed=>{if(!!_0x5137b5['find'](({type:_0x4b175b,subType:_0x363c2e})=>_0x405aed['type']==_0x4b175b&&_0x405aed['subType']==_0x363c2e))return _0x405aed['previous']?{}:void 0x0;}),_0x13726f['descriptionFactory']['registerDescriptionCallback'](_0xd0e968=>{if('insertion'==_0xd0e968['type']||'deletion'==_0xd0e968['type']){const _0x1f06dc=_0xd0e968['getContainedElement']();if(_0x1f06dc&&_0x1f06dc['is']('element','caption'))return{'type':'insertion'==_0xd0e968['type']?'addObject':'removeObject','element':_0x1f06dc,'quantity':0x1};}}),_0x13726f['descriptionFactory']['registerDescriptionCallback'](_0x52fe1d=>'formatBlock'==_0x52fe1d['type']&&'convertInlineImageToBlock'==_0x52fe1d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x52fe1d['type']&&'convertBlockImageToInline'==_0x52fe1d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x13726f['descriptionFactory']['registerDescriptionCallback'](_0x592ee2=>{if('attribute'!=_0x592ee2['type'])return;const {data:_0x217517}=_0x592ee2;if(!_0x217517||'alt'!=_0x217517['key'])return;const _0x332401=_0x217517['newValue'];return _0x332401?{'type':'format','content':o(_0x35cf26,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x332401+'\x22')}:{'type':'format','content':o(_0x35cf26,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12b143=this['editor'],_0x443f90=_0x12b143['locale'];_0x12b143['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x244876=>{if('formatBlock'!=_0x244876['type']&&'formatInline'!=_0x244876['type'])return;const {data:_0x493a9d}=_0x244876;if(_0x493a9d){if('imageTextAlternative'==_0x493a9d['commandName']){const _0x100abf=_0x493a9d['commandParams'][0x0]['newValue'];return _0x100abf?{'type':'format','content':o(_0x443f90,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x100abf+'\x22')}:{'type':'format','content':o(_0x443f90,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x493a9d['commandName']){const _0x167657=_0x493a9d['commandParams'][0x0]['width'];return _0x167657?{'type':'format','content':o(_0x443f90,'*Set\x20image\x20width:*\x20%0',_0x167657)}:{'type':'format','content':o(_0x443f90,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x49606a=this['editor']['locale'],_0x43b639=this['editor']['plugins']['get']('TrackChangesEditing');_0x43b639['enableDefaultAttributesIntegration']('replaceImageSource'),_0x43b639['registerBlockAttribute']('src'),_0x43b639['descriptionFactory']['registerDescriptionCallback'](_0x2d8f44=>{if('attribute'!=_0x2d8f44['type'])return;const {data:_0x30ecc4}=_0x2d8f44;return _0x30ecc4&&'src'==_0x30ecc4['key']?_0x30ecc4['newValue']&&_0x30ecc4['oldValue']?{'type':'format','content':o(_0x49606a,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4b9c1c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4b9c1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4b9c1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b9c1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4b9c1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18f24a=this['editor'],_0x38386f=_0x18f24a['locale'];_0x18f24a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36a557=>{if('formatBlock'!=_0x36a557['type']&&'formatInline'!=_0x36a557['type'])return;const {data:_0x31e1b2}=_0x36a557;if(!_0x31e1b2||'replaceImageSource'!=_0x31e1b2['commandName'])return;return{'type':'format','content':o(_0x38386f,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1e79ec{['afterInit'](){const _0x18dea8=this['editor'];if(!_0x18dea8['plugins']['has']('ImageStyleEditing'))return;const _0x5da930=_0x18dea8['plugins']['get']('TrackChangesEditing'),_0x358a0d=_0x18dea8['plugins']['get']('ImageUtils'),_0x2b6dd5={};_0x5da930['enableCommand']('imageStyle',(_0x5b73c3,_0x59ed3b)=>{const _0x2a9e42=_0x18dea8['plugins']['get']('Users')['me'],_0x33dc73=_0x18dea8['commands']['get']('imageStyle');let _0x198631=_0x358a0d['getClosestSelectedImageElement'](_0x18dea8['model']['document']['selection']),_0x15291f=_0x18dea8['model']['createRangeOn'](_0x198631),_0x45a4b2=_0x33dc73['value'];if(_0x45a4b2==_0x59ed3b['value'])return;const _0x58d73f={'commandName':'imageStyle','commandParams':[_0x59ed3b],'formatGroupId':_0x109dee()};_0x18dea8['model']['change'](()=>{if(_0x5da930['getSuggestions']()['filter'](_0x150e09=>_0x150e09['isInContent']&&_0x2a9e42==_0x150e09['author']&&('formatBlock'==_0x150e09['type']||'formatInline'==_0x150e09['type'])&&('imageStylePreApply'==_0x150e09['subType']||'imageStylePostApply'==_0x150e09['subType'])&&_0x150e09['getFirstRange']()['isEqual'](_0x15291f))['forEach'](_0x421e04=>_0x5da930['discardSuggestion'](_0x421e04['head'])),_0x198631=_0x358a0d['getClosestSelectedImageElement'](_0x18dea8['model']['document']['selection']),_0x15291f=_0x18dea8['model']['createRangeOn'](_0x198631),_0x33dc73['refresh'](),_0x18dea8['commands']['get']('imageTypeInline')['refresh'](),_0x18dea8['commands']['get']('imageTypeBlock')['refresh'](),_0x45a4b2=_0x33dc73['value'],_0x45a4b2!=_0x59ed3b['value'])return _0x358a0d['isInlineImage'](_0x198631)&&_0x33dc73['shouldConvertImageType'](_0x59ed3b['value'],_0x198631)?(_0x5b73c3({..._0x59ed3b,'setImageSizes':!0x1}),_0x198631=_0x358a0d['getClosestSelectedImageElement'](_0x18dea8['model']['document']['selection']),void _0x5da930['markBlockFormat'](_0x198631,{..._0x58d73f,'commandReversedParams':[{'value':_0x45a4b2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x358a0d['isBlockImage'](_0x198631)?_0x5da930['markBlockFormat'](_0x198631,_0x58d73f,[],'imageStylePostApply'):_0x5da930['markInlineFormat'](_0x15291f,_0x58d73f,'imageStylePostApply'));});});for(const _0x64501 of _0x18dea8['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2b6dd5[_0x64501['name']]=_0x64501['title']['toLowerCase']();_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1dde7b])=>{_0x358a0d['setImageNaturalSizeAttributes'](_0x1dde7b['getContainedElement']());}),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3b80fc,_0x211140)=>{_0x5da930['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3b80fc,{'commandName':_0x211140['commandName'],'commandParams':_0x211140['commandReversedParams']});}),_0x5da930['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x18a56c,_0x5dae1e){if(_0x13ffa9(_0x18a56c,_0x5dae1e))return[_0x18a56c,_0x5dae1e];if(_0x13ffa9(_0x5dae1e,_0x18a56c))return[_0x5dae1e,_0x18a56c];return null;});const _0x5e8655=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x13ffa9(_0x33387f,_0xd3a77f){const _0x23204d=_0x5e8655['findIndex'](({type:_0x3bbe4d,subType:_0x2166b})=>_0x33387f['type']==_0x3bbe4d&&_0x33387f['subType']==_0x2166b),_0x18899e=_0x5e8655['findIndex'](({type:_0x47cfc5,subType:_0x28877b})=>_0xd3a77f['type']==_0x47cfc5&&_0xd3a77f['subType']==_0x28877b);if(_0x23204d<0x0||_0x18899e<0x0)return!0x1;const _0x5bbbe6=_0x33387f['getFirstRange'](),_0x322efc=_0xd3a77f['getFirstRange']();if((0x0==_0x23204d||0x1==_0x23204d)&&0x2==_0x18899e&&_0x5bbbe6['isIntersecting'](_0x322efc))return!0x0;if(0x2==_0x23204d&&0x3==_0x18899e){const _0x1d54c6=_0x5da930['_findSuggestions'](_0x5bbbe6,'insertion')['filter'](({suggestion:_0x1edeac,meta:_0xe82648})=>_0xe82648['isOwn']&&'convertInlineImageToBlock'==_0x1edeac['subType']);if(_0x1d54c6['length']>0x1&&_0x322efc['end']['isEqual'](_0x5bbbe6['start']))return!0x0;if(0x1==_0x1d54c6['length']&&(_0x5bbbe6['start']['isEqual'](_0x322efc['end'])||_0x5bbbe6['end']['isEqual'](_0x322efc['start'])))return!0x0;}if(0x3==_0x23204d&&0x3==_0x18899e&&_0x5bbbe6['start']['isBefore'](_0x322efc['start'])){const _0x20e897=_0x5bbbe6['end']['nodeAfter'],_0x33caaa=_0x322efc['start']['nodeBefore'];return _0x358a0d['isBlockImage'](_0x20e897)&&_0x20e897===_0x33caaa;}return!0x1;}_0x18dea8['model']['document']['registerPostFixer'](()=>{let _0x447392=!0x1;const _0x4170ba=Array['from'](_0x18dea8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22bf5,data:_0xe36a4c}of _0x4170ba){const {group:_0x3bb49a,type:_0x20d8ad,subType:_0x2cb909,id:_0x3ccd97}=_0x5da930['_splitMarkerName'](_0x22bf5);if('suggestion'==_0x3bb49a&&_0x5da930['hasSuggestion'](_0x3ccd97)){if('formatBlock'==_0x20d8ad&&('imageStylePreApply'==_0x2cb909||'imageStylePostApply'==_0x2cb909)){const _0x260685=_0x5da930['getSuggestion'](_0x3ccd97);if(_0xe36a4c['newRange']){const _0x2ae64b=_0x260685['getFirstRange']()['getContainedElement']();if(_0x358a0d['isBlockImage'](_0x2ae64b))continue;_0x5da930['discardSuggestion'](_0x260685),_0x447392=!0x0;}}if('insertion'==_0x20d8ad&&'imageCaption'==_0x2cb909&&!_0xe36a4c['newRange']){const _0x18abd1=_0x5da930['getSuggestion'](_0x3ccd97);_0x18abd1['next']&&_0x18abd1['next']['isInContent']&&(_0x5da930['discardSuggestion'](_0x18abd1['next']),_0x447392=!0x0);}}}return _0x447392;}),this['_registerLegacyDescription'](_0x2b6dd5);}['_registerLegacyDescription'](_0x5806c5){const _0x421924=this['editor'],_0x25f77a=_0x421924['locale'];_0x421924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8bd285=>{if('formatBlock'!=_0x8bd285['type']&&'formatInline'!=_0x8bd285['type'])return;const {data:_0x482eeb}=_0x8bd285;if(!_0x482eeb||'imageStyle'!=_0x482eeb['commandName'])return;const _0x5dd768=_0x482eeb['commandParams'][0x0]['value'];return _0x5cb2c1('side'===_0x5dd768?o(_0x25f77a,'FORMAT_SIDE_IMAGE'):_0x5806c5[_0x5dd768]||_0x5dd768);function _0x5cb2c1(_0x259ed9){return{'type':'format','content':o(_0x25f77a,'*Format:*\x20%0',_0x259ed9)};}});}}class ot extends _0x1e79ec{['afterInit'](){const _0x427d5a=this['editor'],_0x3c2aa7=_0x427d5a['commands']['get']('importWord'),_0x21430c=_0x427d5a['commands']['get']('trackChanges');_0x3c2aa7&&(_0x3c2aa7['on']('execute',(_0x594372,[,_0x7b7543])=>{this['_trackChangesValueDuringImport']=_0x21430c['value'],_0x7b7543['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3c2aa7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3c2aa7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x21430c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x427d5a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3c20c2,_0x10f6e0){const {suggestions:_0xfd20c3}=_0x10f6e0,_0x13680b=this['editor']['commands']['get']('trackChanges'),_0x491e5a=_0x13680b['value'];this['_trackChangesValueDuringImport']!==_0x491e5a&&(_0x13680b['execute'](),this['_trackChangesExecuted']=!0x0),_0xfd20c3&&_0xfd20c3['forEach'](({id:_0x1c0f55,type:_0x436d1c,author:_0x32526d,created_at:_0x220acb})=>{const _0x1c4016={'id':_0x1c0f55,'type':_0x436d1c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x32526d,'createdAt':_0x220acb?new Date(_0x220acb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c4016);});}constructor(_0x524232){super(_0x524232),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x1e79ec{['afterInit'](){const _0x4cc5ef=this['editor'],_0x962ef4=_0x4cc5ef['plugins']['get']('TrackChangesEditing');if(_0x4cc5ef['plugins']['has']('IndentEditing')&&(_0x962ef4['enableCommand']('indent'),_0x962ef4['enableCommand']('outdent')),_0x4cc5ef['plugins']['has']('IndentBlock')){for(const _0x3fcd63 of['indentBlock','outdentBlock'])_0x962ef4['enableDefaultAttributesIntegration'](_0x3fcd63);}const _0x251e7b=_0x4cc5ef['locale'];_0x962ef4['registerBlockAttribute']('blockIndent'),_0x962ef4['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x251e7b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x540a24=this['editor'],_0x379eaa=_0x540a24['locale'],_0x26fa26=_0x540a24['plugins']['get']('TrackChangesEditing');_0x26fa26['descriptionFactory']['registerDescriptionCallback'](_0x2cdee4=>{if('formatBlock'!=_0x2cdee4['type'])return;const {data:_0x9f537c}=_0x2cdee4;if(!_0x9f537c)return;if('indentBlock'!=_0x9f537c['commandName']&&'outdentBlock'!=_0x9f537c['commandName'])return;const _0x2dac01=_0x2cdee4['getItems']()[0x0],_0x24dfb3=_0x26fa26['descriptionFactory']['getItemLabel'](_0x2dac01);return'indentBlock'==_0x9f537c['commandName']?{'type':'format','content':o(_0x379eaa,'*Indent:*\x20%0',_0x24dfb3)}:'outdentBlock'==_0x9f537c['commandName']?{'type':'format','content':o(_0x379eaa,'*Outdent:*\x20%0',_0x24dfb3)}:void 0x0;});}}class at extends _0x1e79ec{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1e79ec{['afterInit'](){const _0x114397=this['editor'];if(!_0x114397['plugins']['has']('LinkEditing'))return;const _0x171934=_0x114397['plugins']['get']('TrackChangesEditing'),_0x24e05b=_0x114397['commands']['get']('link');_0x171934['enableDefaultAttributesIntegration']('link'),_0x171934['enableDefaultAttributesIntegration']('unlink'),_0x171934['registerInlineAttribute']('linkHref');for(const _0x19cdc9 of _0x24e05b['manualDecorators'])_0x171934['registerInlineAttribute'](_0x19cdc9['id']),_0x171934['descriptionFactory']['registerAttributeLabel'](_0x19cdc9['id'],'link\x20('+_0x19cdc9['label']['toLowerCase']()+')');_0x171934['descriptionFactory']['registerDescriptionCallback'](_0x2c36ed=>{if('attribute'!=_0x2c36ed['type'])return;const {data:_0x5b0ad6}=_0x2c36ed;if(!_0x5b0ad6||'linkHref'!=_0x5b0ad6['key'])return;const _0x21741f=_0x5b0ad6['newValue'],_0x398324=_0x114397['locale'];return{'type':'format','content':null==_0x21741f?o(_0x398324,'*Remove\x20link*'):o(_0x398324,'*Set\x20link:*\x20%0','\x22'+_0x21741f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x317f80=this['editor'],_0x5f33cb=_0x317f80['locale'];_0x317f80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29be54=>{if('formatInline'!=_0x29be54['type'])return;const {data:_0x5833ab}=_0x29be54;if(_0x5833ab){if('link'==_0x5833ab['commandName']){const _0x47506c=_0x5833ab['commandParams'][0x0];return{'type':'format','content':o(_0x5f33cb,'*Set\x20link:*\x20%0','\x22'+_0x47506c+'\x22')};}return'unlink'==_0x5833ab['commandName']?{'type':'format','content':o(_0x5f33cb,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1e79ec{['afterInit'](){const _0x1f8d1c=this['editor'],_0x53f256=_0x1f8d1c['locale'];if(!_0x1f8d1c['plugins']['has']('LegacyListEditing'))return;const _0x19dc2e=_0x1f8d1c['plugins']['get']('TrackChangesEditing'),_0x34801b=_0x1f8d1c['plugins']['has']('LegacyTodoListEditing');function _0xac8e3a(_0x18aa62){return()=>{const _0x220bf4=_0x1f8d1c['model']['document']['selection'],_0x24d78a=_0x1f8d1c['commands']['get'](_0x18aa62);if(_0x24d78a['value'])return void _0x1f8d1c['execute']('paragraph',{});const _0x1186d4=_0x18aa62['slice'](0x0,-0x4),_0x599386=function(_0xf07fa8,_0xc13b9e,_0x37d4fe){let _0x1bde0c=Array['from'](_0xf07fa8)['filter'](_0x475266=>function(_0x50e0c5,_0x2a6762){return _0x2a6762['checkChild'](_0x50e0c5['parent'],'listItem')&&!_0x2a6762['isObject'](_0x50e0c5);}(_0x475266,_0x37d4fe));_0x1bde0c=_0x1bde0c['filter'](_0x4f8ccd=>!_0x4f8ccd['is']('element','listItem')||_0x4f8ccd['getAttribute']('listType')!=_0xc13b9e);const _0x192b98=new Set();for(const _0x5a04b8 of _0x1bde0c)_0x5a04b8['is']('element','listItem')?_0x192b98['add'](me(_0x5a04b8)):_0x192b98['add'](_0x5a04b8);return Array['from'](_0x192b98);}(_0x220bf4['getSelectedBlocks'](),_0x1186d4,_0x1f8d1c['model']['schema']);_0x1f8d1c['model']['change'](()=>{for(const _0x514ef3 of _0x599386)_0x19dc2e['markBlockFormat'](_0x514ef3,{'commandName':_0x18aa62,'commandParams':[{'forceValue':!_0x24d78a['value']}],'formatGroupId':'blockName'},fe(_0x514ef3));});};}function _0x8b3fb1(_0x2fa199){return()=>{const _0x1629b0=function(_0x23977b){let _0x11b2cc=Array['from'](_0x23977b);const _0x48026c=_0x11b2cc['findIndex'](_0x3f686f=>'listItem'!=_0x3f686f['name']);return _0x48026c>-0x1&&(_0x11b2cc=_0x11b2cc['slice'](0x0,_0x48026c)),_0x11b2cc;}(_0x1f8d1c['model']['document']['selection']['getSelectedBlocks']()),_0x3143b7=_0x1f8d1c['model']['createRange'](_0x1f8d1c['model']['createPositionAt'](_0x1629b0[0x0],'before'),_0x1f8d1c['model']['createPositionAt'](_0x1629b0[_0x1629b0['length']-0x1],'end'));_0x1f8d1c['model']['change'](()=>{_0x19dc2e['markBlockFormat'](_0x3143b7,{'commandName':_0x2fa199,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3e10bb){const _0x246dd8=new Set();for(const _0x4fd6ef of _0x3e10bb){let _0x5885ac=_0x4fd6ef['nextSibling'];for(;_0x5885ac&&_0x5885ac['getAttribute']('listIndent')>_0x4fd6ef['getAttribute']('listIndent');)_0x246dd8['add'](_0x5885ac),_0x5885ac=_0x5885ac['nextSibling'];}return Array['from'](_0x246dd8);}(_0x1629b0));});};}_0x19dc2e['enableCommand']('numberedList',_0xac8e3a('numberedList')),_0x19dc2e['enableCommand']('bulletedList',_0xac8e3a('bulletedList')),_0x34801b&&_0x19dc2e['enableCommand']('todoList',_0xac8e3a('todoList')),_0x19dc2e['enableCommand']('indentList',_0x8b3fb1('indentList')),_0x19dc2e['enableCommand']('outdentList',_0x8b3fb1('outdentList')),_0x34801b&&_0x19dc2e['enableCommand']('checkTodoList',()=>{const _0x5cb322=_0x1f8d1c['commands']['get']('checkTodoList'),_0x7f94c4=Array['from'](_0x5cb322['_selectedElements']);_0x7f94c4['filter'](_0x283634=>_0x283634['getAttribute']('todoListChecked')!=_0x5cb322['value']),_0x1f8d1c['model']['change'](()=>{for(const _0x26bcda of _0x7f94c4)_0x19dc2e['markBlockFormat'](_0x26bcda,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5cb322['value']}]});});}),_0x19dc2e['descriptionFactory']['registerElementLabel']('listItem',_0x2e4448=>o(_0x53f256,'ELEMENT_LIST_ITEM',_0x2e4448)),_0x19dc2e['descriptionFactory']['registerDescriptionCallback'](_0x4ded61=>{if('formatBlock'!=_0x4ded61['type']&&'formatInline'!=_0x4ded61['type'])return;const {data:_0x231204}=_0x4ded61;if(_0x231204){if('numberedList'==_0x231204['commandName']||'bulletedList'==_0x231204['commandName']||'todoList'==_0x231204['commandName'])switch(_0x231204['commandName']['replace']('List','')){case'bulleted':return _0x53fc48(o(_0x53f256,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53fc48(o(_0x53f256,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53fc48(o(_0x53f256,'ELEMENT_TODO_LIST'));}if('indentList'==_0x231204['commandName'])return{'type':'format','content':o(_0x53f256,'*Indent:*\x20%0',o(_0x53f256,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x231204['commandName'])return{'type':'format','content':o(_0x53f256,'*Outdent:*\x20%0',o(_0x53f256,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x231204['commandName'])return _0x231204['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53f256,'*Check\x20item*')}:{'type':'format','content':o(_0x53f256,'*Uncheck\x20item*')};}function _0x53fc48(_0x49e0e0){return{'type':'format','content':o(_0x53f256,'*Change\x20to:*\x20%0',_0x49e0e0)};}});}}function me(_0x2683ef){const _0x501695=_0x2683ef['getAttribute']('listIndent');if(0x0==_0x501695)return _0x2683ef;let _0x12bfcc=_0x2683ef;for(;_0x2683ef['previousSibling']&&_0x2683ef['previousSibling']['is']('element','listItem');){const _0x2d3a69=_0x2683ef['previousSibling']['getAttribute']('listIndent');if(_0x2d3a69==_0x501695)_0x12bfcc=_0x2683ef['previousSibling'];else{if(_0x2d3a69<_0x501695)break;}_0x2683ef=_0x2683ef['previousSibling'];}return _0x12bfcc;}function fe(_0x41df47){const _0x3816c7=[];if(_0x41df47['is']('element','listItem')&&_0x41df47['getAttribute']('listIndent')>0x0){let _0x125b9d=_0x41df47['nextSibling'];for(;_0x125b9d&&'listItem'==_0x125b9d['name']&&_0x125b9d['getAttribute']('listIndent')==_0x41df47['getAttribute']('listIndent');)_0x3816c7['push'](_0x125b9d),_0x125b9d=_0x125b9d['nextSibling'];}return _0x3816c7;}class K extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x53fb1a=this['editor']['config']['get']('list.properties'),_0x11b1a8=this['editor']['plugins']['get']('TrackChangesEditing');_0x53fb1a['styles']&&_0x11b1a8['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x53fb1a['reversed']&&_0x11b1a8['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x53fb1a['startIndex']&&_0x11b1a8['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x11b1a8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xa349be,_0x37b0fb={}){const _0x5f476c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x501c75=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5f476c['markMultiRangeBlockFormat'](_0x501c75,{'commandName':'listStyle','commandParams':[{'type':_0x37b0fb['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1b75b6,_0x1f3989={}){const _0xdadb57=this['editor']['plugins']['get']('TrackChangesEditing'),_0x100f11=this['_getSuggestionBlocks'](_0x249b3e=>_0x249b3e['is']('element','listItem')&&'numbered'===_0x249b3e['getAttribute']('listType'));if(_0x100f11['length']<0x1)return;const _0x20e771=_0x100f11['map'](_0x4bb121=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bb121,'before'),this['editor']['model']['createPositionAt'](_0x4bb121,0x0)));this['editor']['model']['change'](()=>{_0xdadb57['markMultiRangeBlockFormat'](_0x20e771,{'commandName':'listReversed','commandParams':[{'reversed':_0x1f3989['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xadfe06,_0x2f9bb7={}){const _0x4ee041=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ad7e6=this['_getSuggestionBlocks'](_0x4fe40c=>_0x4fe40c['is']('element','listItem')&&'numbered'===_0x4fe40c['getAttribute']('listType'));if(_0x2ad7e6['length']<0x1)return;const _0x4d50d7=_0x2ad7e6['map'](_0x1edfab=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1edfab,'before'),this['editor']['model']['createPositionAt'](_0x1edfab,0x0)));this['editor']['model']['change'](()=>{_0x4ee041['markMultiRangeBlockFormat'](_0x4d50d7,{'commandName':'listStart','commandParams':[{'startIndex':_0x2f9bb7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x39f8ae){if('formatBlock'!=_0x39f8ae['type']&&'formatInline'!=_0x39f8ae['type'])return;const _0x37e5aa=this['editor']['locale'],{data:_0x28ff6a}=_0x39f8ae;if(!_0x28ff6a)return;let _0x558ba4,_0x147f9a;switch(_0x28ff6a['commandName']){case'listStyle':_0x558ba4='*Change\x20to:*\x20%0',_0x147f9a={'type':'format','content':o(_0x37e5aa,_0x558ba4,o(_0x37e5aa,this['_getTranslationKeyForListStyle'](_0x28ff6a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x558ba4=_0x28ff6a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x147f9a={'type':'format','content':o(_0x37e5aa,_0x558ba4)};break;case'listStart':_0x558ba4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x147f9a={'type':'format','content':o(_0x37e5aa,_0x558ba4,_0x28ff6a['commandParams'][0x0]['startIndex'])};}return _0x147f9a;}['_getSuggestionBlocksForListStyle'](){var _0x13f3a0,_0x4a30d0,_0x18d97c,_0x1381a4;const _0x29cc91=this['editor']['plugins']['get']('LegacyListUtils');let _0x12f718=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x13f3a0=_0x12f718[0x0])||void 0x0===_0x13f3a0?void 0x0:_0x13f3a0['is']('element','listItem'))&&_0x12f718['unshift'](..._0x29cc91['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x4a30d0=_0x12f718[_0x12f718['length']-0x1])||void 0x0===_0x4a30d0?void 0x0:_0x4a30d0['is']('element','listItem'))&&_0x12f718['push'](..._0x29cc91['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x12f718=[...new Set(_0x12f718)],(null===(_0x1381a4=null===(_0x18d97c=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x18d97c?void 0x0:_0x18d97c['parent'])||void 0x0===_0x1381a4?void 0x0:_0x1381a4['is']('element','listItem'))&&(_0x12f718=_0x12f718['filter'](_0x56069d=>_0x56069d['is']('element','listItem'))),_0x12f718;}['_getSuggestionBlocks'](_0x1ef315){const _0x98a546=this['editor']['plugins']['get']('LegacyListUtils');let _0x4e888b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1ef315)['map'](_0x1b3e79=>{const _0x404572=this['editor']['model']['createPositionAt'](_0x1b3e79,0x0);return[..._0x98a546['getSiblingNodes'](_0x404572,'backward'),..._0x98a546['getSiblingNodes'](_0x404572,'forward')];})['flat']();return _0x4e888b=[...new Set(_0x4e888b)],_0x4e888b;}['_getTranslationKeyForListStyle'](_0x4f9a47){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4f9a47)||'default')['toUpperCase']()+'_LIST_'+_0x4f9a47['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1e79ec{['afterInit'](){const _0x38001c=this['editor'];if(!_0x38001c['plugins']['has']('MediaEmbedEditing'))return;const _0x215c5c=_0x38001c['plugins']['get']('TrackChangesEditing'),_0x4d7276=_0x38001c['locale'];_0x215c5c['enableCommand']('mediaEmbed'),_0x215c5c['descriptionFactory']['registerElementLabel']('media',_0xe8f328=>o(_0x4d7276,'ELEMENT_MEDIA',_0xe8f328)),_0x38001c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x31c703,{writer:_0x37c27c,options:_0xbd8fa3})=>{if(_0xbd8fa3['showSuggestionHighlights'])return _0x37c27c['createEmptyElement']('div');},'converterPriority':'high'}),_0x38001c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1f5a29,_0x51778e,_0x29d645)=>{_0x29d645['options']['showSuggestionHighlights']&&_0x1f5a29['stop']();},{'priority':'high'});}}class gt extends _0x1e79ec{['afterInit'](){const _0x18e74a=this['editor'];_0x18e74a['plugins']['has']('MentionEditing')&&_0x18e74a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1e79ec{['afterInit'](){const _0xdfe463=this['editor'],_0x10c194=_0xdfe463['plugins']['get']('TrackChangesEditing');_0xdfe463['plugins']['has']('MultiLevelList')&&(_0x10c194['enableDefaultAttributesIntegration']('multiLevelList'),_0x10c194['registerBlockAttribute']('listMarkerStyle'),_0x10c194['descriptionFactory']['registerDescriptionCallback'](_0x54a7b4=>this['handleDescriptions'](_0x54a7b4)));}['handleDescriptions'](_0x57840a){const _0x4bd0c4=this['editor']['locale'],{data:_0x4447e2}=_0x57840a,_0x32238b={'type':'format','content':''};if(_0x4447e2&&'listMarkerStyle'==_0x4447e2['key']){if(!_0x4447e2['oldValue'])return{'type':'format','content':o(_0x4bd0c4,'*Set\x20format:*\x20%0',o(_0x4bd0c4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4447e2['newValue']+')'};if(!_0x4447e2['newValue']){let _0x1ff01d=_0x57840a['head'];for(;_0x1ff01d;){if(_0x1ff01d['data']&&'listType'==_0x1ff01d['data']['key']&&_0x1ff01d['data']['newValue'])return _0x32238b;_0x1ff01d=_0x1ff01d['next'];}return{'type':'format','content':o(_0x4bd0c4,'*Remove\x20format:*\x20%0',o(_0x4bd0c4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4447e2['oldValue']+')'};}}}}class mt extends _0x1e79ec{['afterInit'](){const _0x5a3870=this['editor'];if(!_0x5a3870['plugins']['has']('PageBreakEditing'))return;_0x5a3870['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b46cb=_0x5a3870['plugins']['get']('TrackChangesEditing'),_0x5c6fbf=_0x5a3870['locale'];_0x2b46cb['descriptionFactory']['registerElementLabel']('pageBreak',_0x44c30d=>o(_0x5c6fbf,'ELEMENT_PAGE_BREAK',_0x44c30d));}}class dt extends _0x1e79ec{['afterInit'](){const _0x59591b=this['editor'];if(!_0x59591b['plugins']['has']('Paragraph'))return;const _0x15565c=_0x59591b['locale'],_0x47aa85=_0x59591b['plugins']['get']('TrackChangesEditing');_0x47aa85['descriptionFactory']['registerElementLabel']('paragraph',_0x34b208=>o(_0x15565c,'ELEMENT_PARAGRAPH',_0x34b208)),_0x47aa85['enableDefaultAttributesIntegration']('paragraph'),_0x47aa85['enableCommand']('insertParagraph'),_0x59591b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x59591b),{'priority':'highest'}),_0x59591b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e8be3,_0x36c8be,_0x27c55d)=>{_0x27c55d['options']['showSuggestionHighlights']&&nr(_0x59591b,{'showActiveMarker':!0x1})(_0x1e8be3,_0x36c8be,_0x27c55d);},{'priority':'highest'});const _0x2eb784=_0x47aa85['descriptionFactory'];_0x2eb784['registerDescriptionCallback'](_0x417757=>{if('insertion'!==_0x417757['type'])return;const {start:_0x2b2c7a,end:_0x4a964a}=_0x417757['getFirstRange']();if(!_0x2b2c7a['isTouching'](_0x4a964a)||!_0x2b2c7a['nodeAfter'])return;const _0x54e24d=_0x59591b['model']['schema'],_0x4be4d4=_0x2b2c7a['nodeAfter'];return _0x54e24d['isBlock'](_0x4be4d4)&&!_0x54e24d['isLimit'](_0x4be4d4)&&_0x54e24d['checkChild'](_0x4be4d4,'$text')?{'type':'insertion','content':o(_0x15565c,'*Insert:*\x20%0',_0x2eb784['getItemLabel'](_0x4be4d4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x323f40=this['editor'],_0x2be08d=_0x323f40['locale'];_0x323f40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10317c=>{if('formatBlock'!=_0x10317c['type'])return;const {data:_0x18f6eb}=_0x10317c;return _0x18f6eb&&'paragraph'==_0x18f6eb['commandName']?{'type':'format','content':o(_0x2be08d,'*Change\x20to:*\x20%0',o(_0x2be08d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x36a9c2,{showActiveMarker:_0x442d85=!0x0}={}){return(_0x5b5160,_0x3c0789,_0x77cf20)=>{const _0x64841f=_0x36a9c2['plugins']['get']('TrackChangesEditing'),_0x2a76de=_0x3c0789['markerRange']['start'],_0x4cfda8=_0x3c0789['markerRange']['end'],_0x4f0403=_0x36a9c2['model']['schema'];if(!_0x2a76de['isTouching'](_0x4cfda8)||!_0x2a76de['nodeAfter'])return;const _0x249277=_0x2a76de['nodeAfter'];if(_0x4f0403['isBlock'](_0x249277)&&!_0x4f0403['isLimit'](_0x249277)&&_0x4f0403['checkChild'](_0x249277,'$text')){if(!_0x77cf20['consumable']['consume'](_0x3c0789['markerRange'],_0x5b5160['name']))return;const _0x20387f=_0x77cf20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x18c02a=_0x77cf20['mapper']['toViewPosition'](_0x4cfda8);_0x442d85&&_0x64841f['activeMarkers']['includes'](_0x3c0789['markerName'])&&_0x77cf20['writer']['addClass']('ck-suggestion-marker--active',_0x20387f),_0x77cf20['writer']['insert'](_0x18c02a,_0x20387f),_0x77cf20['mapper']['bindElementToMarker'](_0x20387f,_0x3c0789['markerName']);}};}class pt extends _0x1e79ec{['afterInit'](){const _0x29b2ee=this['editor'];if(!_0x29b2ee['plugins']['has']('RemoveFormatEditing'))return;_0x29b2ee['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x593ab4=this['editor'];_0x593ab4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c8425=>{if('formatBlock'!=_0x3c8425['type']&&'formatInline'!=_0x3c8425['type'])return;const {data:_0x1d65a2}=_0x3c8425;return _0x1d65a2&&'removeFormat'==_0x1d65a2['commandName']?{'type':'format','content':o(_0x593ab4['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1e79ec{['afterInit'](){const _0x58385a=this['editor'];if(!_0x58385a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2ebce5=_0x58385a['plugins']['get']('TrackChangesEditing');_0x2ebce5['enableCommand']('goToPreviousRestrictedEditingException'),_0x2ebce5['enableCommand']('goToNextRestrictedEditingException');const _0x4fcec0=_0x58385a['plugins']['get']('RestrictedEditingModeEditing');_0x4fcec0['enableCommand']('trackChanges'),_0x4fcec0['enableCommand']('acceptSuggestion'),_0x4fcec0['enableCommand']('discardSuggestion'),_0x4fcec0['enableCommand']('acceptAllSuggestions'),_0x4fcec0['enableCommand']('discardAllSuggestions'),_0x4fcec0['enableCommand']('acceptSelectedSuggestions'),_0x4fcec0['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1e79ec{static get['requires'](){return[_0x3b3aa8];}['init'](){const _0x5b72e6=this['editor'],_0x567e53=_0x5b72e6['plugins']['get']('TrackChangesEditing');_0x567e53['enableCommand']('shiftEnter'),_0x5b72e6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x5b72e6),{'priority':'high'}),_0x5b72e6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x5b72e6),{'priority':'high'}),_0x5b72e6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4bee93,_0x161fe1,_0x3d9b3d)=>{_0x3d9b3d['options']['showSuggestionHighlights']&&de(_0x5b72e6,{'showActiveMarker':!0x1})(_0x4bee93,_0x161fe1,_0x3d9b3d);}),_0x567e53['descriptionFactory']['registerElementLabel']('softBreak',_0x714617=>o(_0x5b72e6['locale'],'ELEMENT_LINE_BREAK',_0x714617));}}function de(_0x37e57b,{showActiveMarker:_0x2fc40b=!0x0}={}){return(_0x22390e,_0x427a57,_0x987252)=>{const _0x7f02ee=_0x37e57b['plugins']['get']('TrackChangesEditing');if(!_0x987252['consumable']['test'](_0x427a57['markerRange'],_0x22390e['name']))return;const _0x3a6630=_0x37e57b['model'];for(const _0x48cb50 of _0x427a57['markerRange']['getItems']()){if(!_0x48cb50['is']('element','softBreak'))continue;const _0x4e27cc='deletion'==_0x427a57['markerName']['split'](':')[0x1]?'merge':'split',_0x2964d8=_0x987252['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4e27cc}),_0x42d6cd=_0x987252['mapper']['toViewPosition'](_0x3a6630['createPositionBefore'](_0x48cb50));_0x2fc40b&&_0x7f02ee['activeMarkers']['includes'](_0x427a57['markerName'])&&_0x987252['writer']['addClass']('ck-suggestion-marker--active',_0x2964d8),_0x987252['writer']['insert'](_0x42d6cd,_0x2964d8),_0x987252['mapper']['bindElementToMarker'](_0x2964d8,_0x427a57['markerName']);}};}class wt extends _0x1e79ec{['afterInit'](){const _0x232253=this['editor'],_0x435249=_0x232253['model'],_0x11eba5=_0x232253['locale'];if(!_0x232253['plugins']['has']('StandardEditingModeEditing'))return;const _0x15d214=_0x232253['plugins']['get']('TrackChangesEditing'),_0xc007bd='restrictedEditingException',_0x309b7b=_0x232253['commands']['get'](_0xc007bd);_0x15d214['enableCommand'](_0xc007bd,(_0x4eaba8,_0x216416={})=>{const _0x503fd5=_0x435249['document']['selection'];if(_0x503fd5['isCollapsed'])return void _0x4eaba8(_0x216416);const _0x2e4a59=void 0x0!==_0x216416['forceValue']?_0x216416['forceValue']:!_0x309b7b['value'];_0x435249['change'](()=>{const _0x37c90d=Array['from'](_0x503fd5['getRanges']());for(const _0x2961fd of _0x37c90d){const _0x14ddc7=_0x2e4a59?[_0x2961fd]:io(_0xc007bd,_0x2961fd,_0x435249);for(const _0x147a37 of _0x14ddc7)_0x15d214['markInlineFormat'](_0x147a37,{'commandName':_0xc007bd,'commandParams':[{'forceValue':_0x2e4a59}]});}});}),_0x15d214['descriptionFactory']['registerDescriptionCallback'](_0x5ac16c=>{if('formatBlock'!=_0x5ac16c['type']&&'formatInline'!=_0x5ac16c['type'])return;const {data:_0x47fcbd}=_0x5ac16c;return _0x47fcbd&&_0x47fcbd['commandName']==_0xc007bd?_0x47fcbd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11eba5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x11eba5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1e79ec{['afterInit'](){const _0x85d004=this['editor'];if(!_0x85d004['plugins']['has']('Style')||!_0x85d004['plugins']['has']('DataSchema'))return;const _0x31a7a0=_0x85d004['plugins']['get']('TrackChangesEditing'),_0x4ed98b=_0x85d004['locale'],_0x3945a5=_0x85d004['config']['get']('style')||{},_0x1452a0=_0x85d004['plugins']['get']('GeneralHtmlSupport'),_0x25a367=_0x85d004['plugins']['get']('StyleUtils')['normalizeConfig'](_0x85d004['plugins']['get']('DataSchema'),_0x3945a5['definitions']);_0x31a7a0['enableDefaultAttributesIntegration']('style');const _0x78f95e=new Set();for(const _0x399031 of _0x25a367['block']){const _0x2d4e7c=_0x1452a0['getGhsAttributeNameForElement'](_0x399031['element']);_0x78f95e['add'](_0x2d4e7c);}const _0x32f887=new Set();for(const _0x510a54 of _0x25a367['inline']){const _0x311004=_0x1452a0['getGhsAttributeNameForElement'](_0x510a54['element']);_0x32f887['add'](_0x311004);for(const _0xf24ad2 of _0x510a54['ghsAttributes'])_0x32f887['add'](_0xf24ad2);}for(const _0x1272d8 of _0x78f95e)_0x31a7a0['registerBlockAttribute'](_0x1272d8),_0x31a7a0['descriptionFactory']['registerAttributeLabel'](_0x1272d8,o(_0x4ed98b,'FORMAT_STYLE'));for(const _0x3dfd9b of _0x32f887)_0x31a7a0['registerInlineAttribute'](_0x3dfd9b),_0x31a7a0['descriptionFactory']['registerAttributeLabel'](_0x3dfd9b,o(_0x4ed98b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26d341=this['editor'],_0x584ad7=_0x26d341['locale'];_0x26d341['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d6134=>{if('formatBlock'!=_0x4d6134['type']&&'formatInline'!=_0x4d6134['type'])return;const {data:_0x18b174}=_0x4d6134;return _0x18b174&&'style'===_0x18b174['commandName']?_0x18b174['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x584ad7,'*Set\x20format:*\x20%0',_0x18b174['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x584ad7,'*Remove\x20format:*\x20%0',_0x18b174['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1e79ec{['afterInit'](){const _0x202b09=this['editor'],_0x43f192=_0x202b09['model']['document']['selection'];if(!_0x202b09['plugins']['has']('TableEditing'))return;const _0x8df656=_0x202b09['locale'],_0x4053ae=_0x202b09['plugins']['get']('TrackChangesEditing'),_0x16046c=_0x202b09['plugins']['get']('TableUtils');_0x4053ae['descriptionFactory']['registerElementLabel']('table',_0x666eb1=>o(_0x8df656,'ELEMENT_TABLE',_0x666eb1)),this['_setupColumnsRowsFixing'](),_0x4053ae['enableCommand']('insertTable'),_0x4053ae['enableCommand']('selectTableRow'),_0x4053ae['enableCommand']('selectTableColumn');for(const _0x5d857d of['insertTableRowAbove','insertTableRowBelow']){const _0x188ed9=_0x202b09['commands']['get'](_0x5d857d);_0x4053ae['enableCommand'](_0x5d857d,_0x9f73ed=>{_0x202b09['model']['change'](_0x3488d3=>{_0x9f73ed();const _0x5c0707='above'===_0x188ed9['order'],_0x2cec06=_0x16046c['getSelectionAffectedTableCells'](_0x43f192),_0x2a9f28=_0x16046c['getRowIndexes'](_0x2cec06),_0xc60ea=_0x5c0707?_0x2a9f28['first']-0x1:_0x2a9f28['last']+0x1,_0x707b8a=_0x2cec06[0x0]['findAncestor']('table'),_0x5d7c6c=_0x16046c['createTableWalker'](_0x707b8a,{'startRow':_0xc60ea,'endRow':_0xc60ea}),_0x3984ef=Array['from'](_0x5d7c6c)['map'](_0x478083=>_0x3488d3['createRangeOn'](_0x478083['cell']));_0x4053ae['markMultiRangeInsertion'](_0x3984ef,'tableRow');});});}for(const _0x9bed68 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2b1b26=_0x202b09['commands']['get'](_0x9bed68);_0x4053ae['enableCommand'](_0x9bed68,_0x3ba575=>{_0x202b09['model']['change'](_0x2d6b5a=>{_0x3ba575();const _0x5059d3='left'===_0x2b1b26['order'],_0x4e6535=_0x16046c['getSelectionAffectedTableCells'](_0x43f192),_0x56957b=_0x16046c['getColumnIndexes'](_0x4e6535),_0x14d55d=_0x5059d3?_0x56957b['first']-0x1:_0x56957b['last']+0x1,_0x123a83=_0x4e6535[0x0]['findAncestor']('table'),_0x42ad12=_0x16046c['createTableWalker'](_0x123a83,{'startRow':0x0,'column':_0x14d55d,'includeAllSlots':!0x1}),_0x571cef=Array['from'](_0x42ad12)['map'](_0x635d4c=>_0x2d6b5a['createRangeOn'](_0x635d4c['cell']));_0x4053ae['markMultiRangeInsertion'](_0x571cef,'tableColumn');});});}for(const _0x27a692 of['removeTableRow','removeTableColumn']){const _0x247c77=_0x27a692['substr'](0xb),_0x3c1767=_0x247c77['toLowerCase'](),_0x362443=_0x3c1767['substr'](0x0,0x3)+'span',_0x29193d='table'+_0x247c77,_0x1131aa='min'+_0x247c77,_0x2ae80d='max'+_0x247c77;_0x4053ae['enableCommand'](_0x27a692,()=>{_0x202b09['model']['change'](_0x1564b0=>{const _0x4c1832=_0x16046c['getSelectionAffectedTableCells'](_0x43f192),_0x35abc2=_0x4c1832[0x0]['findAncestor']('table');let _0x15f727;if('removeTableRow'==_0x27a692){const _0x477da4=_0x16046c['getRowIndexes'](_0x4c1832);_0x15f727={'startRow':_0x477da4['first'],'endRow':_0x477da4['last'],'includeAllSlots':!0x0};}else{const _0x554c1c=_0x16046c['getColumnIndexes'](_0x4c1832);_0x15f727={'startColumn':_0x554c1c['first'],'endColumn':_0x554c1c['last'],'includeAllSlots':!0x0};}const _0x4c39cf=_0x16046c['createTableWalker'](_0x35abc2,_0x15f727),_0xabe033=Array['from'](_0x4c39cf)['map'](({cell:_0x2298c2})=>_0x2298c2),_0x1e9b00=Ee(_0xabe033['filter'](_0x5b9942=>_0x5b9942['hasAttribute'](_0x362443))),_0x5cef65=Ee(_0xabe033['filter'](_0x2a11bd=>!_0x2a11bd['hasAttribute'](_0x362443)))['map'](_0x4c805a=>_0x1564b0['createRangeOn'](_0x4c805a)),_0x536eb7=_0x4053ae['markMultiRangeDeletion'](_0x5cef65,_0x29193d);if(_0x536eb7&&('tableRow'==_0x536eb7['subType']||'tableColumn'==_0x536eb7['subType'])){const _0x43e4ae=this['_getSuggestionCoords'](_0x536eb7);for(const _0x475ac0 of _0x1e9b00){const _0x4c3160=_0x1564b0['createRangeOn'](_0x475ac0),_0x2b64fd=_0x16046c['getCellLocation'](_0x475ac0),_0x344d6e=_0x475ac0['getAttribute'](_0x362443)-0x1,_0xf1fec3=_0x43e4ae[_0x1131aa],_0x507a52=_0x43e4ae[_0x2ae80d];_0xf1fec3<=_0x2b64fd[_0x3c1767]&&_0x2b64fd[_0x3c1767]+_0x344d6e<=_0x507a52&&_0x536eb7['addRange'](_0x4c3160);}}});});}function _0x20489a(_0x37e49c){const _0xe575f5=Array['from'](_0x43f192['getRanges']())['map'](_0x9df8f9=>_0x43239f['fromRange'](_0x9df8f9));_0x202b09['model']['change'](_0x27afe9=>{const _0x228192=_0x27afe9['batch'];_0x37e49c=_0x37e49c['filter'](_0xdc202e=>'$graveyard'!=_0xdc202e['root']['rootName']),_0x27afe9['setSelection'](_0x37e49c),_0x202b09['commands']['get']('removeTableRow')['refresh'](),_0x202b09['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x202b09['model']['enqueueChange'](()=>{_0x202b09['model']['enqueueChange'](_0x228192,_0x48f501=>{const _0xb57637=_0xe575f5['filter'](_0x419aca=>'$graveyard'!=_0x419aca['root']['rootName']);_0xb57637['length']>0x0&&_0x48f501['setSelection'](_0xb57637);for(const _0x2ff16f of _0xe575f5)_0x2ff16f['detach']();});});});}function _0x5ab930(_0x1a202d){_0x202b09['model']['change'](_0x226278=>{const _0x482be7=Array['from'](_0x43f192['getRanges']())['map'](_0x2ece0a=>_0x43239f['fromRange'](_0x2ece0a)),_0x2e7b4f=[];for(const _0x3d39a1 of _0x1a202d)for(const _0x418d4c of _0x3d39a1['getItems']({'shallow':!0x0}))_0x2e7b4f['push'](_0x418d4c);for(const _0x14bdfd of _0x2e7b4f)'$graveyard'!=_0x14bdfd['root']['rootName']&&(_0x226278['setSelection'](_0x226278['createPositionAt'](_0x14bdfd,0x0)),_0x202b09['commands']['get']('removeTableColumn')['refresh'](),_0x202b09['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5f51bf=_0x482be7['filter'](_0x35fbf8=>'$graveyard'!=_0x35fbf8['root']['rootName']);_0x5f51bf['length']>0x0&&_0x226278['setSelection'](_0x5f51bf);for(const _0x119a7e of _0x482be7)_0x119a7e['detach']();});}function _0x2772c7(_0x508d5e,_0x25429a){return _0x25429a['every'](_0x44a8f2=>_0x508d5e['some'](_0x2b806f=>_0x2b806f['end']['isEqual'](_0x44a8f2['start'])||_0x44a8f2['end']['isEqual'](_0x2b806f['start'])));}function _0x1dd9f2(_0x460844,_0xabe044){return _0x460844['some'](_0x5c7b83=>_0xabe044['some'](_0x3c79ab=>_0x5c7b83['end']['isTouching'](_0x3c79ab['start'])));}_0x202b09['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x530d36,_0x4b0b60,_0x4e3679)=>{if(!_0x4e3679['options']['showSuggestionHighlights'])return;const _0x1098b1=_0x4b0b60['item'];if(!_0x1098b1)return;const _0x4c5ccb=_0x4e3679['mapper']['toViewElement'](_0x1098b1);function _0xe8b5d(_0x26cd13){return Array['isArray'](_0x26cd13)?_0x26cd13:[_0x26cd13];}_0x4c5ccb&&'tableCell'===_0x1098b1['name']&&_0x1d6a2b(_0x4c5ccb,_0x4e3679['writer'],(_0x5077ba,_0x372b2c,_0x1a9b6a)=>_0x1a9b6a['addClass'](_0xe8b5d(_0x372b2c['classes']),_0x5077ba),(_0x22ea5c,_0x7b2eff,_0x12d0d8)=>_0x12d0d8['removeClass'](_0xe8b5d(_0x7b2eff['classes']),_0x22ea5c));},{'priority':'highest'}),_0x4053ae['descriptionFactory']['registerDescriptionCallback'](_0x547094=>{if('insertion'!=_0x547094['type']&&'deletion'!=_0x547094['type'])return;const _0x47e89b=_0x547094['getContainedElement']();if(null!=_0x47e89b&&_0x47e89b['is']('element','table')){if('insertion'==_0x547094['type']){const _0x257016=_0x547094['getItems']()['filter'](_0x597ffb=>_0x597ffb['is']('$textProxy'))['map'](_0x5dc2b1=>_0x5dc2b1['data']);if(_0x257016['length'])return{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x257016['join']('\x20')+'\x22'))};}if('deletion'==_0x547094['type']){const _0x353d2d=_0x547094['getItems']()['filter'](_0x57d824=>_0x57d824['is']('$textProxy'))['map'](_0x507221=>_0x507221['data']);if(_0x353d2d['length'])return{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x353d2d['join']('\x20')+'\x22'))};}}}),_0x4053ae['descriptionFactory']['registerDescriptionCallback'](_0x44682f=>{if('tableRow'==_0x44682f['subType']){const _0x2353a1=_0x44682f['getItems']()['filter'](_0x42466f=>_0x42466f['is']('$textProxy'))['map'](_0x213805=>_0x213805['data']),_0x5d7b48=this['_getSuggestionCoords'](_0x44682f),_0x3e28c5=_0x5d7b48['maxRow']-_0x5d7b48['minRow']+0x1;if('insertion'==_0x44682f['type'])return _0x2353a1['length']?{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e28c5,'\x22'+_0x2353a1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_ROW',_0x3e28c5))};if('deletion'==_0x44682f['type'])return _0x2353a1['length']?{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3e28c5,'\x22'+_0x2353a1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_ROW',_0x3e28c5))};}if('tableColumn'==_0x44682f['subType']){const _0x4924e5=_0x44682f['getItems']()['filter'](_0x5df6cb=>_0x5df6cb['is']('$textProxy'))['map'](_0x2939fc=>_0x2939fc['data']),_0x2efd45=this['_getSuggestionCoords'](_0x44682f),_0x42d6af=_0x2efd45['maxColumn']-_0x2efd45['minColumn']+0x1;if('insertion'==_0x44682f['type'])return _0x4924e5['length']?{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x42d6af,'\x22'+_0x4924e5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x8df656,'*Insert:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_COLUMN',_0x42d6af))};if('deletion'==_0x44682f['type'])return _0x4924e5['length']?{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x42d6af,'\x22'+_0x4924e5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x8df656,'*Remove:*\x20%0',o(_0x8df656,'ELEMENT_TABLE_COLUMN',_0x42d6af))};}}),_0x4053ae['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x20489a),_0x4053ae['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x20489a),_0x4053ae['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5ab930),_0x4053ae['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5ab930),_0x4053ae['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2772c7),_0x4053ae['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2772c7),_0x4053ae['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1dd9f2),_0x4053ae['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1dd9f2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x8c5f6d=this['editor'],_0x25ddef=_0x8c5f6d['model']['document']['selection'];return(_0x297861,_0x166a60)=>{_0x8c5f6d['model']['change'](_0x4e068b=>{const {commandName:_0x316ff7,commandParams:_0x13558b}=_0x166a60;let _0x42726a=_0x297861[0x0]['end']['nodeBefore'];_0x13558b&&_0x13558b[0x0]&&!0x1===_0x13558b[0x0]['forceValue']&&(_0x42726a=_0x297861[0x0]['start']['nodeAfter']);const _0x20086f=_0x4e068b['createRangeIn'](_0x42726a);if('$graveyard'==_0x20086f['root']['rootName'])return;const _0x44c249=Array['from'](_0x25ddef['getRanges']())['map'](_0x38898a=>_0x43239f['fromRange'](_0x38898a));_0x4e068b['setSelection'](_0x20086f),_0x8c5f6d['commands']['get'](_0x316ff7)['refresh'](),_0x13558b['push']({'forceDefaultExecution':!0x0}),_0x8c5f6d['execute'](_0x316ff7,..._0x13558b);const _0x323787=_0x44c249['filter'](_0xdc9d42=>'$graveyard'!=_0xdc9d42['root']['rootName']);_0x323787['length']>0x0&&_0x4e068b['setSelection'](_0x323787);for(const _0x436c63 of _0x44c249)_0x436c63['detach']();});};}['_getCoordsForCells'](_0x364c0f){const _0x19a9a7=this['editor']['plugins']['get']('TableUtils');let _0x20d88e=Number['MAX_SAFE_INTEGER'],_0x391088=Number['MIN_SAFE_INTEGER'],_0x32e51=Number['MAX_SAFE_INTEGER'],_0x24179d=Number['MIN_SAFE_INTEGER'];for(const _0x2f5855 of _0x364c0f){if('$graveyard'==_0x2f5855['root']['rootName'])continue;const {row:_0x4eb984,column:_0x3aebfd}=_0x19a9a7['getCellLocation'](_0x2f5855),_0x1ef525=_0x2f5855['hasAttribute']('rowspan')?_0x2f5855['getAttribute']('rowspan')-0x1:0x0,_0x5d89b4=_0x2f5855['hasAttribute']('colspan')?_0x2f5855['getAttribute']('colspan')-0x1:0x0;_0x20d88e=_0x4eb984<_0x20d88e?_0x4eb984:_0x20d88e,_0x391088=_0x4eb984+_0x1ef525>_0x391088?_0x4eb984+_0x1ef525:_0x391088,_0x32e51=_0x3aebfd<_0x32e51?_0x3aebfd:_0x32e51,_0x24179d=_0x3aebfd+_0x5d89b4>_0x24179d?_0x3aebfd+_0x5d89b4:_0x24179d;}return{'minRow':_0x20d88e,'maxRow':_0x391088,'minColumn':_0x32e51,'maxColumn':_0x24179d};}['_setupColumnsRowsFixing'](){const _0x361814=this['editor'],_0x289f17=_0x361814['plugins']['get']('TrackChangesEditing'),_0x45c39f=_0x361814['plugins']['get']('TableUtils');_0x361814['model']['document']['on']('change:data',()=>{const _0x128ab7=Array['from'](_0x361814['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x469f46,data:_0x3c000a}of _0x128ab7){const {group:_0xb43000,id:_0xbb7de1,subType:_0x2ee07a}=_0x289f17['_splitMarkerName'](_0x469f46);if('suggestion'!=_0xb43000)continue;if(null!=_0x3c000a['oldRange'])continue;const _0x490c8d=_0x289f17['getSuggestion'](_0xbb7de1);this['_tablePostFixingSubtypes']['includes'](_0x2ee07a)&&this['_tableSuggestions']['add'](_0x490c8d);}},{'priority':'low'});const _0x34822d=(_0x488005,_0x5588c1)=>{let _0xe228d2=!0x1;const _0x3830d8=_0x5588c1['createRangeOn'](_0x488005),_0x43de88=_0x488005['findAncestor']('table'),_0xba981=_0x45c39f['getCellLocation'](_0x488005);for(const _0x8d3bf5 of this['_tableSuggestions']){const _0x35380c=_0x8d3bf5['subType'],_0x4047a8=_0x35380c['startsWith']('tablePaste'),_0x2c25e2=_0x35380c['substr'](_0x4047a8?0xa:0x5),_0x3e5174=_0x2c25e2['toLowerCase'](),_0x12e8f9=_0x3e5174['substr'](0x0,0x3)+'span',_0x43df22='min'+_0x2c25e2,_0x5d8d84='max'+_0x2c25e2;if(!_0x8d3bf5['isInContent'])continue;if(_0x43de88!=_0x8d3bf5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x8d3bf5['isIntersectingWithRange'](_0x3830d8))continue;const _0x5915af=_0x488005['hasAttribute'](_0x12e8f9)?_0x488005['getAttribute'](_0x12e8f9)-0x1:0x0,_0x237b3a=this['_getSuggestionCoords'](_0x8d3bf5),_0x36b0f7=_0x237b3a[_0x43df22],_0x54a5d2=_0x237b3a[_0x5d8d84];_0x36b0f7<=_0xba981[_0x3e5174]&&_0xba981[_0x3e5174]+_0x5915af<=_0x54a5d2&&(_0x8d3bf5['addRange'](_0x3830d8),_0xe228d2=!0x0);}return _0xe228d2;};_0x361814['model']['document']['registerPostFixer'](_0x272eab=>{let _0x4bc320=!0x1;for(const _0x28d105 of _0x361814['model']['document']['differ']['getChanges']())if('insert'==_0x28d105['type']){if('tableRow'==_0x28d105['name']){for(const _0x1668fa of _0x28d105['position']['nodeAfter']['getChildren']())_0x4bc320=_0x4bc320||_0x34822d(_0x1668fa,_0x272eab);}else'tableCell'==_0x28d105['name']&&(_0x4bc320=_0x4bc320||_0x34822d(_0x28d105['position']['nodeAfter'],_0x272eab));}return _0x4bc320;});}['_getSuggestionCoords'](_0x3e379b){return this['_getCoordsForCells'](_0x3e379b['getRanges']()['map'](_0x2b3a59=>_0x2b3a59['start']['nodeAfter']));}constructor(_0xad409e){super(_0xad409e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x850e47){return Array['from'](new Set(_0x850e47)['values']());}class St extends _0x1e79ec{static get['requires'](){return[jt];}['afterInit'](){const _0x397e26=this['editor'],_0xc2f46e=_0x397e26['model']['document']['selection'],_0x44e0bb=_0x397e26['locale'];if(!_0x397e26['plugins']['has']('TableEditing'))return;const _0x22637b=_0x397e26['plugins']['get']('TrackChangesEditing'),_0x410d23=_0x397e26['plugins']['get']('TableUtils'),_0x5b979c=_0x397e26['plugins']['get'](jt);_0x5b979c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x22637b['enableCommand']('mergeTableCells',()=>{const _0x1b994d=_0x410d23['getSelectionAffectedTableCells'](_0x397e26['model']['document']['selection']);_0x397e26['model']['change'](()=>{_0x22637b['markMultiRangeBlockFormat'](_0x1b994d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x397e26['commands']['get']('mergeTableCells')['on']('execute',(_0x209091,_0xd220ed)=>{_0x397e26['commands']['get']('trackChanges')['value']&&(_0xd220ed['length']>0x0&&_0xd220ed[_0xd220ed['length']-0x1]&&_0xd220ed[_0xd220ed['length']-0x1]['forceDefaultExecution']||_0x22637b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x209091['stop']());},{'priority':'highest'});for(const _0x53bf7f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x359f9f=_0x397e26['commands']['get'](_0x53bf7f);_0x22637b['enableCommand'](_0x53bf7f,()=>{const _0x36c7f4=_0x397e26['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x454f68=>_0x454f68['is']('element','tableCell')),_0x56b097=_0x359f9f['value'];_0x397e26['model']['change'](()=>{_0x22637b['markMultiRangeBlockFormat']([_0x36c7f4,_0x56b097],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f2f4b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x23b5f7=_0x397e26['commands']['get'](_0x3f2f4b);_0x22637b['enableCommand'](_0x3f2f4b,()=>{const _0x1c6767=_0x410d23['getSelectionAffectedTableCells'](_0x397e26['model']['document']['selection'])[0x0],_0x57cfdd=_0x1c6767['findAncestor']('table'),{column:_0x19dd4e,row:_0x5c73f0}=_0x410d23['getCellLocation'](_0x1c6767);let _0x29092d=[];if('horizontally'==_0x23b5f7['direction']){const _0x5b9e1a=_0x410d23['createTableWalker'](_0x57cfdd,{'startRow':_0x5c73f0,'endRow':_0x5c73f0,'includeAllSlots':!0x0});_0x29092d=Array['from'](_0x5b9e1a)['map'](_0x26aefd=>_0x26aefd['cell']);}else{const _0x3f33ae=_0x410d23['createTableWalker'](_0x57cfdd,{'column':_0x19dd4e,'includeAllSlots':!0x0});_0x29092d=Array['from'](_0x3f33ae)['map'](_0x531f9a=>_0x531f9a['cell']);}_0x397e26['model']['change'](_0x3654c1=>{_0x22637b['markBlockFormat'](_0x3654c1['createRangeOn'](_0x1c6767),{'commandName':_0x3f2f4b,'commandParams':[]},_0x29092d,_0x3f2f4b);});});}_0x22637b['descriptionFactory']['registerDescriptionCallback'](_0x32d149=>{if('formatBlock'!=_0x32d149['type']&&'formatInline'!=_0x32d149['type'])return;const {data:_0x7bd8b3}=_0x32d149;return _0x7bd8b3&&'mergeTableCells'==_0x7bd8b3['commandName']?{'type':'format','content':o(_0x44e0bb,'*Merge\x20cells*')}:void 0x0;}),_0x22637b['descriptionFactory']['registerDescriptionCallback'](_0x2a1b4a=>{if('formatBlock'!=_0x2a1b4a['type']&&'formatInline'!=_0x2a1b4a['type'])return;const {data:_0x55bb74}=_0x2a1b4a;return _0x55bb74?'splitTableCellVertically'==_0x55bb74['commandName']?{'type':'format','content':o(_0x44e0bb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x55bb74['commandName']?{'type':'format','content':o(_0x44e0bb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x36b895=_0x5b979c['_acceptFormatSuggestionCallbackFactory']();for(const _0x1f27d0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x22637b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f27d0,'accept',_0x36b895);for(const _0x169800 of['splitTableCellVertically','splitTableCellHorizontally'])_0x22637b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x169800,'accept',_0x36b895);_0x22637b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x587e15=>{_0x397e26['model']['change'](_0x48fe24=>{const _0x47b061=Array['from'](_0xc2f46e['getRanges']())['map'](_0x5d37b2=>_0x43239f['fromRange'](_0x5d37b2));_0x48fe24['setSelection'](_0x587e15),_0x397e26['commands']['get']('mergeTableCells')['refresh'](),_0x397e26['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x389a67=_0x47b061['filter'](_0x162d9a=>'$graveyard'!=_0x162d9a['root']['rootName']);_0x389a67['length']>0x0&&_0x48fe24['setSelection'](_0x389a67);for(const _0x2090ef of _0x47b061)_0x2090ef['detach']();});});for(const _0x537c88 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5ba9e2=_0x397e26['commands']['get'](_0x537c88);_0x5ba9e2['on']('set:isEnabled',(_0x524a7f,_0x3ca202,_0x47a93d)=>{if(_0x47a93d){const _0x3d7a32=_0x397e26['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2fa0b4=>_0x2fa0b4['is']('element','tableCell'));this['_areMergableCells'](_0x5ba9e2['value'],_0x3d7a32)||(_0x524a7f['return']=!0x1,_0x524a7f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5c06b0=this['editor']['commands']['get']('mergeTableCells'),_0x2285a9=this['editor']['plugins']['get']('TableUtils');if(!_0x5c06b0['isEnabled'])return!0x1;const _0x4872da=_0x2285a9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x422ac8 of _0x4872da)for(const _0x1fbdda of _0x4872da)if(_0x422ac8!=_0x1fbdda&&!this['_areMergableCells'](_0x422ac8,_0x1fbdda))return!0x1;return!0x0;}['_areMergableCells'](_0x194938,_0x409abd){const _0x4a3b2a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20cfd6=this['editor']['model']['createRangeOn'](_0x194938),_0x46b85e=this['editor']['model']['createRangeOn'](_0x409abd),_0xfad74a=new Set(),_0x32ea9d=new Set();for(const _0x282685 of _0x4a3b2a['getSuggestions']())if(('insertion'==_0x282685['type']||'deletion'==_0x282685['type']||'mergeTableCells'==_0x282685['subType'])&&_0x282685['isInContent']){for(const _0x4d0af8 of _0x282685['getRanges']())_0x4d0af8['containsRange'](_0x20cfd6,!0x0)&&_0xfad74a['add'](_0x282685['type']+':'+_0x282685['author']['id']),_0x4d0af8['containsRange'](_0x46b85e,!0x0)&&_0x32ea9d['add'](_0x282685['type']+':'+_0x282685['author']['id']);}if(_0xfad74a['size']!=_0x32ea9d['size'])return!0x1;for(const _0x358135 of _0xfad74a)if(!_0x32ea9d['has'](_0x358135))return!0x1;return!0x0;}}class At extends _0x1e79ec{static get['requires'](){return[jt];}['afterInit'](){const _0x8deb3d=this['editor'];if(!_0x8deb3d['plugins']['has']('TableEditing'))return;const _0x25b4c9=_0x8deb3d['locale'],_0xc42196=_0x8deb3d['plugins']['get']('TrackChangesEditing');_0xc42196['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xc42196['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xc42196['registerBlockAttribute']('headingRows'),_0xc42196['registerBlockAttribute']('headingColumns'),_0xc42196['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x25b4c9,'FORMAT_HEADER_ROW')),_0xc42196['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x25b4c9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3e613f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xca334=this['editor']['plugins']['get']('TableUtils'),_0x10b06c=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x175060({showActiveMarker:_0x2b14a9=!0x0,setDataAttribute:_0x286228=!0x0}={}){return(_0x419084,_0x2cd8c2,_0x24ba3e)=>{const {type:_0x40bc8e,id:_0x453d88}=_0x3e613f['_splitMarkerName'](_0x2cd8c2['markerName']),_0x4a60d9=_0x3e613f['getSuggestion'](_0x453d88),_0x495a61=_0x4a60d9['data'];if('formatBlock'!=_0x4a60d9['type']||!_0x495a61||'setTableColumnHeader'!=_0x495a61['commandName'])return;if(_0x2cd8c2['item'])return void _0x419084['stop']();if(!_0x24ba3e['consumable']['consume'](_0x2cd8c2['markerRange'],_0x419084['name']))return;const _0x55f875=_0x2cd8c2['markerRange']['start']['nodeAfter'],_0x160e5a=_0x2cd8c2['markerRange']['end']['nodeBefore'],_0x57fad7=_0x55f875['parent']['parent'],{column:_0x18b79f}=_0xca334['getCellLocation'](_0x55f875),{column:_0xc204eb}=_0xca334['getCellLocation'](_0x160e5a);for(let _0x534d82=_0x18b79f;_0x534d82<=_0xc204eb;_0x534d82++){const _0x3831dd=_0xca334['createTableWalker'](_0x57fad7,{'column':_0x534d82,'includeAllSlots':!0x1});for(const _0x54ac2c of _0x3831dd){const _0x1f42cc=_0x54ac2c['cell'],_0x4ddee5=_0x24ba3e['mapper']['toViewElement'](_0x1f42cc);_0x24ba3e['writer']['addClass']('ck-suggestion-marker-'+_0x40bc8e,_0x4ddee5),_0x286228&&_0x24ba3e['writer']['setAttribute']('data-suggestion',_0x453d88,_0x4ddee5),_0x24ba3e['mapper']['bindElementToMarker'](_0x4ddee5,_0x2cd8c2['markerName']),_0x2b14a9&&(_0x3e613f['activeMarkers']['includes'](_0x2cd8c2['markerName'])?_0x24ba3e['writer']['addClass']('ck-suggestion-marker--active',_0x4ddee5):_0x24ba3e['writer']['removeClass']('ck-suggestion-marker--active',_0x4ddee5));}}};}_0x3e613f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x10b06c),_0x3e613f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x10b06c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x175060(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f216d,_0x4e3917,_0x5d71f3)=>{_0x5d71f3['options']['showSuggestionHighlights']&&_0x175060({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4f216d,_0x4e3917,_0x5d71f3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x25500a,_0x5a46c2,_0x15b9c9)=>{const {type:_0x55d368,id:_0x476b86}=_0x3e613f['_splitMarkerName'](_0x5a46c2['markerName']),_0x8f9f56=_0x3e613f['getSuggestion'](_0x476b86),_0x5332bd=_0x8f9f56['data'];if('formatBlock'!=_0x8f9f56['type']||!_0x5332bd||'setTableColumnHeader'!=_0x5332bd['commandName'])return;const _0x26f208=_0x15b9c9['mapper']['markerNameToElements'](_0x5a46c2['markerName']);if(_0x26f208){for(const _0x329017 of _0x26f208)_0x15b9c9['writer']['removeClass']('ck-suggestion-marker-'+_0x55d368,_0x329017),_0x15b9c9['writer']['removeClass']('ck-suggestion-marker--active',_0x329017),_0x15b9c9['writer']['removeAttribute']('data-suggestion',_0x329017),_0x15b9c9['mapper']['unbindElementFromMarkerName'](_0x329017,_0x5a46c2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x320791=this['editor'],_0x18dc31=_0x320791['locale'];function _0x3309c9(_0x209f1a){return{'type':'format','content':o(_0x18dc31,'*Format:*\x20%0',_0x209f1a)};}_0x320791['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ae5a7=>{if('formatBlock'!=_0x1ae5a7['type'])return;const {data:_0x157ad9}=_0x1ae5a7;if(_0x157ad9){if('setTableRowHeader'==_0x157ad9['commandName']){const _0x4cd864=_0x157ad9['commandParams'][0x0]['forceValue'];return _0x3309c9(o(_0x18dc31,_0x4cd864?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x157ad9['commandName']){const _0x28293b=_0x157ad9['commandParams'][0x0]['forceValue'];return _0x3309c9(o(_0x18dc31,_0x28293b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2cb0d1=>[_0x2cb0d1,null]));class It extends _0x1e79ec{static get['requires'](){return[jt];}['afterInit'](){const _0x332bbf=this['editor'];if(!_0x332bbf['plugins']['has']('TableClipboard'))return;const _0x5a9396=_0x332bbf['plugins']['get']('TrackChangesEditing'),_0x1ec0cb=_0x332bbf['plugins']['get']('TableUtils'),_0x3b8247=_0x332bbf['plugins']['get'](jt),_0x3dd364=_0x332bbf['plugins']['get']('TableClipboard');_0x3b8247['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x332bbf['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x332bbf['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5c3f4e=null;_0x332bbf['model']['on']('insertContent',(_0x2b0ec9,_0x66403f)=>{const [_0xca4e6c,_0x26fee9]=_0x66403f,_0xc01319=_0x66403f[_0x66403f['length']-0x1];_0xc01319&&_0xc01319['forceDefaultExecution']||_0x5a9396['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x8283a5,_0x335cb7,_0x5353ae,_0x11fdbb,_0x1b999f){if(_0x335cb7&&!_0x335cb7['is']('documentSelection'))return!0x1;const _0x5a68a2=_0x1b999f['getTableIfOnlyTableInContent'](_0x8283a5,_0x5353ae);if(!_0x5a68a2||!he(_0x5a68a2,void 0x0,_0x11fdbb))return!0x1;const _0x2fdb6c=_0x11fdbb['getSelectionAffectedTableCells'](_0x5353ae['document']['selection']);if(!_0x2fdb6c['length'])return!0x1;const _0x37a850=_0x2fdb6c[0x0]['findAncestor']('table'),_0x5d8b4f=_0x11fdbb['getRowIndexes'](_0x2fdb6c),_0x4065df=_0x11fdbb['getColumnIndexes'](_0x2fdb6c),_0x392ae8={'startRow':_0x5d8b4f['first'],'endRow':_0x5d8b4f['last'],'startColumn':_0x4065df['first'],'endColumn':_0x4065df['last']};return 0x1==_0x2fdb6c['length']&&(_0x392ae8['endRow']+=_0x11fdbb['getRows'](_0x5a68a2)-0x1,_0x392ae8['endColumn']+=_0x11fdbb['getColumns'](_0x5a68a2)-0x1),he(_0x37a850,_0x392ae8,_0x11fdbb);}(_0xca4e6c,_0x26fee9,_0x332bbf['model'],_0x1ec0cb,_0x3dd364)&&(_0x2b0ec9['stop'](),_0x5c3f4e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x332bbf['model']['change'](()=>{_0x332bbf['model']['insertContent'](_0x66403f[0x0],_0x66403f[0x1],_0x66403f[0x2],{'forceDefaultExecution':!0x0});const _0x20fc2b=_0x109dee(),{rowInsertionRanges:_0x373748,columnInsertionRanges:_0x7a56c9,insertionRanges:_0x1fd7b6,deletionRanges:_0x1b45e6,cells:_0x13533d}=_0x5c3f4e;_0x373748['length']&&_0x5a9396['markMultiRangeInsertion'](_0x373748,'tablePasteRow',{'tablePasteChainId':_0x20fc2b}),_0x7a56c9['length']&&_0x5a9396['markMultiRangeInsertion'](_0x7a56c9,'tablePasteColumn',{'tablePasteChainId':_0x20fc2b}),_0x1fd7b6['length']&&(_0x5a9396['markMultiRangeInsertion'](_0x1fd7b6,'tablePaste',{'tablePasteChainId':_0x20fc2b,'skipNestingCheck':!0x0}),_0x1fd7b6['forEach'](_0x4d8bfd=>{var _0x667851;return null===(_0x667851=_0x4d8bfd['detach'])||void 0x0===_0x667851?void 0x0:_0x667851['call'](_0x4d8bfd);})),_0x1b45e6['length']&&(_0x5a9396['markMultiRangeDeletion'](_0x1b45e6,'tablePaste',{'tablePasteChainId':_0x20fc2b,'skipNestingCheck':!0x0}),_0x1b45e6['forEach'](_0x3a007b=>{var _0x6e5898;return null===(_0x6e5898=_0x3a007b['detach'])||void 0x0===_0x6e5898?void 0x0:_0x6e5898['call'](_0x3a007b);}));const _0x5eda22=_0x5a9396['markMultiRangeBlockFormat'](_0x13533d['map'](({element:_0x24dcd2})=>_0x24dcd2),{'formatGroupId':_0x109dee()},[],'tablePasteCell',{'tablePasteChainId':_0x20fc2b});if(_0x5eda22){const _0x1e7456=_0x5eda22['getMarkers'](),_0x18efe4=[];for(const {element:_0x1b59e9,attributes:_0x206e1b}of _0x13533d){if(!_0x206e1b)continue;const _0x574b68=_0x332bbf['model']['createRangeOn'](_0x1b59e9),_0x7347d4=_0x1e7456['find'](_0x504f42=>_0x504f42['getRange']()['isEqual'](_0x574b68));_0x7347d4&&_0x18efe4['push']([_0x7347d4['name'],_0x206e1b]);}_0x18efe4['length']&&_0x5eda22['setAttribute']('markerAttributes',Object['fromEntries'](_0x18efe4));}_0x5c3f4e=null;}));},{'priority':_0x3ba2dc['high']+0xa}),_0x332bbf['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x409ecb,_0x40b551)=>{const [_0x25aa86,_0xd138a3,,_0x7d2129]=_0x40b551;if(!_0x5c3f4e)return;_0x409ecb['stop']();const _0x552520=_0x25aa86['cell'],_0x395f7b=_0xd138a3,_0x42f875=Pe(_0x552520),_0x2610d0=Pe(_0x395f7b);_0x409ecb['return']=_0x552520;let _0x4aeda8=null,_0x2e34b0=null;if(_0x2610d0||_0x42f875){if(_0x42f875&&!_0x2610d0){_0x7d2129['remove'](_0x552520['getChild'](0x0));for(const _0x1b1a16 of Array['from'](_0x395f7b['getChildren']()))_0x7d2129['insert'](_0x1b1a16,_0x552520,'end');const _0x58a114=_0x5c3f4e['rowInsertionIndexes']['includes'](_0x25aa86['row']),_0x4b6a5f=_0x5c3f4e['columnInsertionIndexes']['includes'](_0x25aa86['column']);_0x58a114||_0x4b6a5f||(_0x4aeda8=_0x43239f['fromRange'](_0x7d2129['createRangeIn'](_0x552520)));}else _0x2610d0&&!_0x42f875&&(_0x2e34b0=_0x7d2129['createRangeIn'](_0x552520));}else{const _0x16572f=_0x7d2129['createElement']('tableCellSuggestion'),_0x510cc7=_0x7d2129['createElement']('tableCellSuggestion');_0x7d2129['wrap'](_0x7d2129['createRangeIn'](_0x552520),_0x510cc7),_0x7d2129['insert'](_0x16572f,_0x552520,0x0);for(const _0x4154c9 of Array['from'](_0x395f7b['getChildren']()))_0x7d2129['insert'](_0x4154c9,_0x16572f,'end');_0x4aeda8=_0x43239f['fromRange'](_0x7d2129['createRangeOn'](_0x16572f)),_0x2e34b0=_0x43239f['fromRange'](_0x7d2129['createRangeOn'](_0x510cc7));}const _0x534390=Array['from'](_0x395f7b['getAttributes']())['filter'](([_0x53b860])=>ge['includes'](_0x53b860));_0x5c3f4e['cells']['push']({'element':_0x552520,'attributes':_0x534390['length']?Object['fromEntries'](_0x534390):null}),_0x4aeda8&&_0x5c3f4e['insertionRanges']['push'](_0x4aeda8),_0x2e34b0&&_0x5c3f4e['deletionRanges']['push'](_0x2e34b0);},{'priority':'high'}),_0x1ec0cb['on']('insertColumns',(_0x583ae8,_0x532b81)=>{const [_0x103535,_0x390f5c={}]=_0x532b81;if(!_0x5c3f4e)return;const _0x52aa67=_0x390f5c['at']||0x0,_0x534f4e=_0x390f5c['columns']||0x1;_0x5c3f4e['columnInsertionIndexes']=new Array(_0x534f4e)['fill'](_0x52aa67)['map']((_0x3bddc1,_0x4afbcc)=>_0x3bddc1+_0x4afbcc);for(const {cell:_0x3bfd15}of _0x1ec0cb['createTableWalker'](_0x103535,{'startColumn':_0x52aa67,'endColumn':_0x52aa67+_0x534f4e-0x1}))_0x5c3f4e['columnInsertionRanges']['push'](_0x332bbf['model']['createRangeOn'](_0x3bfd15));},{'priority':'low'}),_0x1ec0cb['on']('insertRows',(_0x1ffc9f,_0x55f8c9)=>{const [_0x4491e0,_0x4a7a9a={}]=_0x55f8c9;if(!_0x5c3f4e)return;const _0x388b3b=_0x4a7a9a['at']||0x0,_0x1f6bbc=_0x4a7a9a['rows']||0x1;_0x5c3f4e['rowInsertionIndexes']=new Array(_0x1f6bbc)['fill'](_0x388b3b)['map']((_0x4d08a9,_0x57ac52)=>_0x4d08a9+_0x57ac52);for(const {cell:_0xb778a5}of _0x1ec0cb['createTableWalker'](_0x4491e0,{'startRow':_0x388b3b,'endRow':_0x388b3b+_0x1f6bbc-0x1}))_0x5c3f4e['rowInsertionRanges']['push'](_0x332bbf['model']['createRangeOn'](_0xb778a5));},{'priority':'low'}),_0x5a9396['descriptionFactory']['registerDescriptionCallback'](_0x2d254a=>{if(_0x2d254a['subType']&&_0x2d254a['subType']['startsWith']('tablePaste'))return _0x2d254a['previous']?{}:{'type':'insertion','content':o(_0x332bbf['locale'],'*Replace\x20table\x20cells*')};});const _0x2cd7ab=()=>!0x1;for(const _0x68be40 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5a9396['_suggestionFactory']['registerCustomCallback']('insertion',_0x68be40,'join',_0x2cd7ab),_0x5a9396['_suggestionFactory']['registerCustomCallback']('deletion',_0x68be40,'join',_0x2cd7ab),_0x5a9396['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x68be40,'join',_0x2cd7ab);_0x5a9396['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2cd7ab),_0x5a9396['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x26278b,_0x3cd174,_0x3ede1c)=>{const _0x3c7943=_0x26278b['map'](_0x18756a=>_0x18756a['getContainedElement']())['filter'](_0x46f7a4=>_0x46f7a4),_0xfaf8ea=new Map(_0x3c7943['map'](_0x87de18=>[_0x87de18,null]));if(_0x5c3f4e){for(const {element:_0x2c95cc,attributes:_0x3901b5}of _0x5c3f4e['cells'])_0x3901b5&&_0xfaf8ea['set'](_0x2c95cc,_0x3901b5);}else{if(_0x3ede1c&&_0x3ede1c['markerAttributes'])for(const [_0x5b8ac4,_0x438d82]of Object['entries'](_0x3ede1c['markerAttributes'])){const _0x4873d0=_0x332bbf['model']['markers']['get'](_0x5b8ac4),_0x43e69f=_0x4873d0?_0x4873d0['getRange']()['getContainedElement']():null;_0x43e69f&&_0xfaf8ea['set'](_0x43e69f,_0x438d82);}}_0x332bbf['model']['change'](_0x530f3b=>{for(const [_0x53cf3e,_0x2ace5d]of _0xfaf8ea)_0x530f3b['setAttributes']({...Ce,..._0x2ace5d},_0x53cf3e);});});const _0x1bc447=(_0x185d5a,_0x2efa44)=>{_0x5a9396['_suggestionFactory']['registerCustomCallback'](_0x185d5a,'tablePaste',_0x2efa44,(_0xa75a7e,_0x3643bf,_0x4b0adb)=>{_0x332bbf['model']['change'](_0x10481b=>{const _0x48ffd5=[];for(const _0x1b22d4 of _0xa75a7e){const _0x2de8c2=_0x1b22d4['start']['nodeAfter'];_0x2de8c2['is']('element','tableCellSuggestion')&&_0x48ffd5['push'](_0x2de8c2);}_0x5a9396['_suggestionFactory']['getSuggestionCallback'](_0x185d5a,null,_0x2efa44)(_0xa75a7e,_0x3643bf,_0x4b0adb);for(const _0x10368e of _0x48ffd5)'$graveyard'!=_0x10368e['root']['rootName']&&_0x10481b['unwrap'](_0x10368e);});});};_0x1bc447('insertion','accept'),_0x1bc447('insertion','discard'),_0x1bc447('deletion','accept'),_0x1bc447('deletion','discard'),_0x5a9396['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5911f9=>{const _0xb136e1=_0x5911f9['map'](_0x3fd28b=>_0x3fd28b['getContainedElement']()),_0xbfc7f=_0xb136e1[0x0]['findAncestor']('table'),{minRow:_0x17bc54,maxRow:_0x20b847}=_0x3b8247['_getCoordsForCells'](_0xb136e1);_0x1ec0cb['removeRows'](_0xbfc7f,{'at':_0x17bc54,'rows':_0x20b847-_0x17bc54+0x1});}),_0x5a9396['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x49f280=>{const _0xb6bfaf=_0x49f280['map'](_0x40aede=>_0x40aede['getContainedElement']()),_0x149155=_0xb6bfaf[0x0]['findAncestor']('table'),{minColumn:_0x23e8b0,maxColumn:_0x58abfa}=_0x3b8247['_getCoordsForCells'](_0xb6bfaf);_0x1ec0cb['removeColumns'](_0x149155,{'at':_0x23e8b0,'columns':_0x58abfa-_0x23e8b0+0x1});});const _0x7ed7d1=(_0x790b8a,_0x2a42df)=>{if(!_0x2a42df['subType']||!_0x2a42df['subType']['startsWith']('tablePaste'))return;const _0x46451f=_0x2a42df['attributes']['tablePasteChainId'],_0x531459=_0x5a9396['getSuggestions']()['filter'](_0x3f11be=>_0x3f11be['isInContent']&&_0x3f11be['attributes']&&_0x3f11be['attributes']['tablePasteChainId']==_0x46451f);_0x531459['length']&&_0x2a42df['getAllAdjacentSuggestions']()['length']!=_0x531459['length']&&_0x531459['reduce']((_0x5cf39d,_0x73bbcd)=>(_0x5cf39d['next']=_0x73bbcd,_0x73bbcd['previous']=_0x5cf39d,_0x73bbcd));};function _0x1439d3(_0x3e6a42,_0xc22dd8=!0x0){const {id:_0x3ff930}=_0x5a9396['_splitMarkerName'](_0x3e6a42['markerName']),_0x58dabd=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xba13ac=_0x5a9396['activeMarkers']['includes'](_0x3e6a42['markerName']);return _0xba13ac&&_0x58dabd['push']('ck-suggestion-marker--active'),{'classes':_0x58dabd,'attributes':{'data-suggestion':_0x3ff930},'priority':_0xba13ac&&_0xc22dd8?0xbc2:0xbb8};}_0x5a9396['on']('suggestionLoaded',_0x7ed7d1,{'priority':'high'}),_0x5a9396['on']('suggestionUnloaded',_0x7ed7d1,{'priority':'high'}),_0x332bbf['model']['document']['registerPostFixer'](()=>{let _0x34e1fb=!0x1;const _0x53a7f4=Array['from'](_0x332bbf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f191c,data:_0x59ee49}of _0x53a7f4){const {group:_0xb6d3ad,type:_0x519a8a,id:_0x1754ca}=_0x5a9396['_splitMarkerName'](_0x1f191c);if('suggestion'!=_0xb6d3ad||'deletion'!=_0x519a8a||_0x59ee49['oldRange'])continue;if(!_0x5a9396['hasSuggestion'](_0x1754ca))continue;const _0x147fa1=_0x5a9396['getSuggestion'](_0x1754ca)['getRanges'](),_0x135f23=_0x332bbf['plugins']['get']('Users')['me'];for(const _0x1e1b88 of _0x5a9396['getSuggestions']()){if(!_0x1e1b88['isInContent']||_0x1e1b88['author']!=_0x135f23)continue;if('formatBlock'!=_0x1e1b88['type']||'tablePasteCell'!=_0x1e1b88['subType'])continue;if(_0x1e1b88['getRanges']()['every'](_0x1fe309=>_0x147fa1['some'](_0xc0ef5f=>_0xc0ef5f['containsRange'](_0x1fe309,!0x0)))){for(const _0xab61e6 of _0x1e1b88['getAllAdjacentSuggestions']())_0xab61e6['isInContent']&&(_0xab61e6['discard'](),_0x34e1fb=!0x0);}}}return _0x34e1fb;}),_0x332bbf['model']['document']['registerPostFixer'](_0x3bf1df=>{const _0x1339e0=_0x332bbf['commands']['get']('redo');if(!_0x1339e0||!_0x1339e0['_createdBatches']['has'](_0x3bf1df['batch']))return!0x1;let _0x12952f=!0x1;const _0x5c6eb0=_0x332bbf['plugins']['get']('Users')['me'],_0x244d10=_0x332bbf['model']['document']['differ']['getChanges'](),_0x405aae=Array['from'](_0x332bbf['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1ed016,data:_0x56b46a})=>{const {group:_0xbcdcc8,subType:_0x3b391c,authorId:_0xa56b15}=_0x5a9396['_splitMarkerName'](_0x1ed016);return'suggestion'==_0xbcdcc8&&'tablePaste'==_0x3b391c&&_0xa56b15==_0x5c6eb0['id']&&!_0x56b46a['oldRange'];});for(const _0x996a3a of _0x244d10){if('insert'!=_0x996a3a['type']||'tableCellSuggestion'!=_0x996a3a['name']||0x1!=_0x996a3a['length'])continue;const _0x188f28=_0x3bf1df['createRange'](_0x996a3a['position'],_0x996a3a['position']['getShiftedBy'](0x1));if(!_0x405aae['find'](({data:_0x1430de})=>_0x1430de['newRange']['isEqual'](_0x188f28))){for(const {name:_0x84d62d,data:_0x5f4886}of _0x405aae)if(_0x188f28['containsRange'](_0x5f4886['newRange'])){_0x3bf1df['updateMarker'](_0x84d62d,{'range':_0x188f28}),_0x12952f=!0x0;break;}}}return _0x12952f;}),_0x332bbf['model']['document']['registerPostFixer'](_0x22f573=>{let _0x576bbe=!0x1;const _0x2ac341=_0x332bbf['plugins']['get']('Users')['me'],_0x1ad562=_0x5a9396['getSuggestions']()['filter'](_0x4305b3=>_0x4305b3['isInContent']&&_0x4305b3['author']==_0x2ac341),_0x39f9a9=new Set(),_0x5735f8=new Set();for(const _0x113ccd of _0x1ad562)if('tablePaste'==_0x113ccd['subType'])for(const _0x1d7461 of _0x113ccd['getMarkers']()){const _0x541a59=_0x1d7461['getRange']()['getContainedElement']();if(_0x541a59){if(_0x541a59['is']('element','tableCellSuggestion')&&Pe(_0x541a59)){_0x113ccd['removeMarker'](_0x1d7461['name']),_0x39f9a9['add'](_0x541a59),_0x576bbe=!0x0;const _0x141077=_0x541a59['nextSibling'],_0x39c09b=_0x541a59['previousSibling'],_0x4a17af=_0x141077&&_0x141077['is']('element','tableCellSuggestion'),_0x595ff3=_0x39c09b&&_0x39c09b['is']('element','tableCellSuggestion');_0x4a17af&&!_0x39f9a9['has'](_0x141077)&&_0x5735f8['add'](_0x141077),_0x595ff3&&!_0x39f9a9['has'](_0x39c09b)&&_0x5735f8['add'](_0x39c09b);}else _0x541a59['is']('element','paragraph')&&_0x541a59['isEmpty']&&(_0x113ccd['removeMarker'](_0x1d7461['name']),_0x576bbe=!0x0);}}else{if('tablePasteCell'==_0x113ccd['subType']){if(!_0x113ccd['attributes']||!_0x113ccd['attributes']['tablePasteChainId'])continue;const _0x48764c=_0x113ccd['attributes']['markerAttributes'];if(_0x48764c&&Object['keys'](_0x48764c)['length'])continue;const _0x2a45d6=_0x113ccd['attributes']['tablePasteChainId'];let _0x1e6884=!0x0,_0x384615=!0x0;for(const _0x211467 of _0x1ad562)if(_0x211467['subType']&&_0x211467['subType']['startsWith']('tablePaste')){if(!_0x211467['attributes']['tablePasteChainId']){_0x384615=!0x1;break;}if(_0x211467['id']!=_0x113ccd['id']&&_0x211467['attributes']['tablePasteChainId']==_0x2a45d6){_0x1e6884=!0x1;break;}}_0x384615&&_0x1e6884&&(_0x113ccd['removeMarkers'](),_0x576bbe=!0x0);}}for(const _0x17b336 of _0x39f9a9)_0x22f573['remove'](_0x17b336);for(const _0x277006 of _0x5735f8)_0x22f573['unwrap'](_0x277006);return _0x576bbe;}),_0x332bbf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x108c75,_0x593db3)=>_0x1439d3(_0x108c75),'converterPriority':'high'}),_0x332bbf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x555308,_0x23d197)=>_0x23d197['options']['showSuggestionHighlights']?_0x1439d3(_0x555308,!0x1):null,'converterPriority':'high'});const _0x14a854=_0x332bbf['editing']['view'];this['listenTo'](_0x14a854['document'],'clipboardOutput',(_0x1bb5d5,_0x132239)=>{const _0x1fa0d1=[];for(const _0x361b28 of _0x14a854['createRangeIn'](_0x132239['content'])['getItems']())_0x361b28['is']('element','suggestion-td')&&_0x1fa0d1['push'](_0x361b28);_0x14a854['change'](_0x5901d9=>{for(const _0x148e29 of _0x1fa0d1)_0x5901d9['move'](_0x5901d9['createRangeIn'](_0x148e29),_0x5901d9['createPositionBefore'](_0x148e29)),_0x5901d9['remove'](_0x148e29);});});}}function Pe(_0x10593a){if(_0x10593a['isEmpty'])return!0x0;const _0x512b50=_0x10593a['getChild'](0x0);return _0x512b50['is']('element','paragraph')&&_0x512b50['isEmpty'];}function he(_0x22ef6f,_0x57f456={},_0x473839){for(const {isAnchor:_0x2f0794,cellHeight:_0x113248,cellWidth:_0x15d3c9}of _0x473839['createTableWalker'](_0x22ef6f,{'includeAllSlots':!0x0,..._0x57f456}))if(!_0x2f0794||0x1!=_0x113248||0x1!=_0x15d3c9)return!0x1;return!0x0;}class vt extends _0x1e79ec{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3e9f90=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e9f90['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3e9f90['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3e9f90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3e9f90['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3e9f90['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3e9f90['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4bbe4e,_0x18a2df){const _0x42e88f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45daa0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x54ce10=_0x18a2df['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x30b95a=_0x45daa0['getColumnGroupElement'](_0x54ce10);let _0x45ec7e=_0x30b95a?_0x45daa0['getTableColumnsWidths'](_0x30b95a):null,_0x586175=_0x54ce10['getAttribute']('tableWidth')||null;const _0x5932ad=_0x18a2df['tableWidth']||_0x586175,_0x5d2b6d=_0x18a2df['columnWidths']||_0x45ec7e,_0x15ca86=this['editor']['plugins']['get']('Users')['me'];for(const _0x4c78ec of _0x42e88f['getSuggestions']()){const _0x4a30b6=_0x4c78ec['getContainedElement']();if('resizeTable'===_0x4c78ec['subType']&&_0x4a30b6===_0x54ce10){_0x4c78ec['author']!==_0x15ca86&&_0x4c78ec['discard']();const _0x288cf9=_0x4c78ec['data']['commandParams'];_0x586175=_0x288cf9[0x0]['tableWidth'],_0x45ec7e=_0x288cf9[0x0]['columnWidths'];break;}}_0x4bbe4e({'table':_0x54ce10,'tableWidth':_0x5932ad,'columnWidths':_0x5d2b6d}),_0x42e88f['markBlockFormat'](_0x54ce10,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x586175,'columnWidths':_0x45ec7e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5e236f){if('formatBlock'!=_0x5e236f['type']&&'formatInline'!=_0x5e236f['type'])return;const {data:_0x2c43a6}=_0x5e236f;if(_0x2c43a6&&'resizeTable'===_0x2c43a6['formatGroupId']){const _0x4c8373='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4c8373)};}}}class _t extends _0x1e79ec{['afterInit'](){const _0x204ade=this['editor'];_0x204ade['plugins']['has']('Template')&&_0x204ade['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x1e79ec{['afterInit'](){const _0x37e179=this['editor'];if(!_0x37e179['commands']['get']('insertTableOfContents'))return;_0x37e179['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x573abd=_0x37e179['plugins']['get']('TrackChangesEditing'),_0x160d23=_0x37e179['locale'];_0x573abd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x464102=>o(_0x160d23,'ELEMENT_TABLE_OF_CONTENTS',_0x464102));}}class Dt extends _0x1e79ec{['afterInit'](){const _0x3a15a8=this['editor'];if(!_0x3a15a8['plugins']['has']('Title'))return;const _0x301614=_0x3a15a8['plugins']['get']('TrackChangesEditing');_0x301614['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3a15a8['locale'],'ELEMENT_TITLE')),_0x3a15a8['model']['document']['registerPostFixer'](_0x3c1c78=>{let _0x14c4b1=!0x1;const _0x119e84=Array['from'](_0x3a15a8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b2779,data:_0x52cbac}of _0x119e84){const {group:_0x6bf172}=_0x301614['_splitMarkerName'](_0x3b2779);if('suggestion'!==_0x6bf172||!_0x52cbac['newRange'])continue;const _0xf7bd69=_0x52cbac['newRange'],_0x433d94=_0xf7bd69['end']['nodeBefore'];if(!_0x433d94||!_0x433d94['is']('element','title-content'))continue;if(!_0xf7bd69['start']['isTouching'](_0xf7bd69['end']))continue;const _0x19b10d=_0x3a15a8['model']['schema']['getNearestSelectionRange'](_0xf7bd69['end'],'forward');if(_0x19b10d&&_0x19b10d['isCollapsed']){const _0x54c578=_0x3c1c78['createRange'](_0xf7bd69['start'],_0x19b10d['start']);_0x54c578['isEqual'](_0xf7bd69)||(_0x3c1c78['updateMarker'](_0x3b2779,{'range':_0x54c578}),_0x14c4b1=!0x0);}_0x14c4b1||(_0x3c1c78['removeMarker'](_0x3b2779),_0x14c4b1=!0x0);}return _0x14c4b1;});}}class Nt extends _0x1e79ec{['afterInit'](){const _0x980c8d=this['editor'],_0x3ac5b2=_0x980c8d['plugins']['get']('TrackChangesEditing');_0x980c8d['plugins']['has']('UndoEditing')&&(_0x3ac5b2['enableCommand']('undo'),_0x3ac5b2['enableCommand']('redo'));}}class Mt extends _0x1e79ec{static get['requires'](){return[jt];}['afterInit'](){const _0x5006da=this['editor'];if(!_0x5006da['plugins']['has']('TableCaptionEditing'))return;_0x5006da['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1e79ec{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x504fc6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1e7679 of this['tableProperties'])_0x504fc6['enableCommand'](_0x1e7679,(_0x1d6fa5,_0x531099)=>{const _0x410b16=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1e7679,[_0x410b16],this['tableProperties'],'tableProperties',_0x1d6fa5,_0x531099);});_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x504fc6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2ef851,_0x361f9b)=>this['handleDiscardAction'](this['tableProperties'],_0x2ef851,_0x361f9b)),_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x45fe54 of this['tableCellProperties'])_0x504fc6['enableCommand'](_0x45fe54,(_0x3dbab8,_0x1c0e65)=>{const _0xf913a4=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x45fe54,_0xf913a4,this['tableCellProperties'],'tableCellProperties',_0x3dbab8,_0x1c0e65);});_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x504fc6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2cdb24,_0x1b0daf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2cdb24,_0x1b0daf)),_0x504fc6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x504fc6['descriptionFactory']['registerDescriptionCallback'](_0xc3d63=>this['handleSuggestionDescription'](_0xc3d63));}['_handlePropertyChange'](_0x44172a,_0x58b7e9,_0x7a6ad4,_0x574750,_0x37d8c0,_0x2704f6){const _0x591d4a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2704f6['batch'],()=>{for(const _0x38c5f2 of _0x58b7e9){if(this['_getSuggestion'](_0x38c5f2,_0x574750))_0x37d8c0(_0x2704f6);else{const _0x2edfb2={};for(const _0x4f7826 of _0x7a6ad4){const _0x4ba9e5=_0x38c5f2['getAttribute'](_0x4f7826);void 0x0!==_0x4ba9e5&&(_0x2edfb2[_0x4f7826]=_0x4ba9e5);}_0x37d8c0(_0x2704f6),_0x591d4a['markBlockFormat'](_0x38c5f2,{'commandParams':[_0x2edfb2]},[],_0x574750);}}});}['handleDiscardAction'](_0x3163d9,_0x5b66e3,_0x612272){const _0x55202e=_0x5b66e3[0x0]['start']['nodeAfter'],_0x4ba0de=_0x612272['commandParams'][0x0];this['editor']['model']['change'](_0x404f99=>{for(const _0x155c3c of _0x3163d9)void 0x0!==_0x4ba0de[_0x155c3c]?_0x404f99['setAttribute'](_0x155c3c,_0x4ba0de[_0x155c3c],_0x55202e):_0x404f99['removeAttribute'](_0x155c3c,_0x55202e);});}['handleSuggestionDescription'](_0x41192c){if(_0x41192c['data'])switch(_0x41192c['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'](_0x48c49e,_0x1289a9){const _0x42e043=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xf0b136 of _0x42e043['getSuggestions']({'skipNotAttached':!0x0})){const _0x1a0f62=_0xf0b136['getContainedElement']();if(_0xf0b136['subType']===_0x1289a9&&_0x1a0f62===_0x48c49e)return _0xf0b136;}return null;}constructor(_0x1dd626){super(_0x1dd626),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 _0x1e79ec{static get['requires'](){return['CommentsRepository',_0x15e88b,_0xa7374,E,V,U,O,G,F,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';}get['_descriptionFactory'](){return this['descriptionFactory'];}['init'](){const _0x33e422=this['editor'],_0x191ea7=(_0x4dde85,_0x3689c6)=>{if('attribute'!=_0x4dde85)return'ck-suggestion-marker-'+_0x4dde85;const _0x1fd751=_0x3689c6['split']('|')[0x0];return this['_isBlockAttribute'](_0x1fd751)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x33e422['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x43599e=>{const {id:_0x483e6d,type:_0x39caf2,subType:_0x247c6f}=this['_splitMarkerName'](_0x43599e['markerName']),_0x546a76=['ck-suggestion-marker',_0x191ea7(_0x39caf2,_0x247c6f)];let _0x357a3c=0xbb8;return this['activeMarkers']['includes'](_0x43599e['markerName'])&&(_0x546a76['push']('ck-suggestion-marker--active'),_0x357a3c=0xbc2),'deletion'==_0x39caf2&&(_0x357a3c+=0x5),{'classes':_0x546a76,'attributes':{'data-suggestion':_0x483e6d},'priority':_0x357a3c};}}),_0x33e422['conversion']['for']('dataDowncast')['add'](_0x503cd9=>{_0x503cd9['on']('addMarker:suggestion',(_0xf4a5a2,_0x115f4c,_0x5054a6)=>{if(!_0x5054a6['options']['showSuggestionHighlights'])return;const _0x159b4b=_0x115f4c['item'];if(!_0x159b4b)return;const _0x5e4cad=_0x5054a6['mapper']['toViewElement'](_0x159b4b);_0x33e422['model']['schema']['isObject'](_0x159b4b)&&_0x5e4cad&&!_0x5e4cad['getCustomProperty']('widget')&&_0x5e4cad['is']('containerElement')&&_0x31e57b(_0x5e4cad,_0x5054a6['writer']);},{'priority':'high'});}),_0x33e422['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5ce561,_0x341bd8)=>{if(!_0x341bd8['options']['showSuggestionHighlights'])return null;const {type:_0x42e050,subType:_0x44ef17}=this['_splitMarkerName'](_0x5ce561['markerName']);return{'classes':['ck-suggestion-marker',_0x191ea7(_0x42e050,_0x44ef17)],'priority':0xbb8};}});const _0x4a38a3=({showActiveMarkers:_0xdbc83a=!0x0,isAttributeSuggestion:_0x5620ec=!0x1}={})=>(_0xdde3a3,_0x3248bc,_0x2ed0de)=>{if(!_0x3248bc['item'])return;const {id:_0x3558da}=this['_splitMarkerName'](_0x3248bc['markerName']);if(_0x5620ec){const _0x163e39=this['_suggestions']['get'](_0x3558da),_0x3a41d6=this['_getAttributeKey'](_0x163e39);if(!this['_isBlockAttribute'](_0x3a41d6))return;}if(_0x3248bc['item']['is']('selection'))return void _0x2ed0de['consumable']['consume'](_0x3248bc['item'],_0xdde3a3['name']);const _0x164414=_0x2ed0de['mapper']['toViewElement'](_0x3248bc['item']);if(_0x3248bc['item']['is']('element')&&_0x33e422['model']['schema']['isBlock'](_0x3248bc['item'])&&!_0x164414['getCustomProperty']('addHighlight')){_0x2ed0de['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x164414),_0x2ed0de['writer']['setAttribute']('data-suggestion',_0x3558da,_0x164414),_0x2ed0de['mapper']['bindElementToMarker'](_0x164414,_0x3248bc['markerName']),_0xdbc83a&&(this['activeMarkers']['includes'](_0x3248bc['markerName'])?_0x2ed0de['writer']['addClass']('ck-suggestion-marker--active',_0x164414):_0x2ed0de['writer']['removeClass']('ck-suggestion-marker--active',_0x164414));for(const _0x3d8057 of _0x33e422['model']['createRangeIn'](_0x3248bc['item'])['getItems']())_0x2ed0de['consumable']['consume'](_0x3d8057,_0xdde3a3['name']);_0x2ed0de['consumable']['consume'](_0x3248bc['item'],_0xdde3a3['name']);}};_0x33e422['conversion']['for']('dataDowncast')['add'](_0x48b940=>{_0x48b940['on']('addMarker:suggestion:formatBlock',(_0x370eff,_0x8d03e7,_0x1bcb2a)=>{_0x1bcb2a['options']['showSuggestionHighlights']&&_0x4a38a3({'showActiveMarkers':!0x1})(_0x370eff,_0x8d03e7,_0x1bcb2a);},{'priority':'highest'});}),_0x33e422['conversion']['for']('dataDowncast')['add'](_0x198a6a=>{_0x198a6a['on']('addMarker:suggestion:attribute',(_0x55f025,_0x1ec2cb,_0x3bc246)=>{_0x3bc246['options']['showSuggestionHighlights']&&_0x4a38a3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x55f025,_0x1ec2cb,_0x3bc246);},{'priority':'highest'});}),_0x33e422['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e4672,_0x5cf7b5)=>_0x5cf7b5['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1e4672['substr'](0xb)}}),_0x33e422['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2eeaa4,{writer:_0x4f486f})=>{let _0x442001='suggestion:'+_0x2eeaa4['getAttribute']('suggestion-type')+':'+_0x2eeaa4['getAttribute']('id');return _0x2eeaa4['getAttribute']('marker-count')&&(_0x442001+=':'+_0x2eeaa4['getAttribute']('marker-count')),_0x4f486f['createElement']('$marker',{'data-name':_0x442001});}}),_0x33e422['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33e422['conversion']['for']('editingDowncast')['add'](_0x384ace=>{_0x384ace['on']('addMarker:suggestion:formatBlock',_0x4a38a3(),{'priority':'high'});}),_0x33e422['conversion']['for']('editingDowncast')['add'](_0x443daa=>{_0x443daa['on']('addMarker:suggestion:attribute',_0x4a38a3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x33e422['conversion']['for']('editingDowncast')['add'](_0xb382a0=>{_0xb382a0['on']('removeMarker:suggestion:formatBlock',(_0x3c2369,_0x5a6940,_0x149bfc)=>{const _0x223025=_0x149bfc['mapper']['markerNameToElements'](_0x5a6940['markerName']);if(_0x223025){for(const _0x1f49d7 of _0x223025)_0x1f49d7['getCustomProperty']('addHighlight')||(_0x149bfc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f49d7),_0x149bfc['writer']['removeAttribute']('data-suggestion',_0x1f49d7),_0x149bfc['mapper']['unbindElementFromMarkerName'](_0x1f49d7,_0x5a6940['markerName']));}},{'priority':'high'});}),_0x33e422['conversion']['for']('editingDowncast')['add'](_0x133c04=>{_0x133c04['on']('removeMarker:suggestion:attribute',(_0x1fe2a5,_0x20ea09,_0x5d1b99)=>{const _0x23880e=_0x5d1b99['mapper']['markerNameToElements'](_0x20ea09['markerName']);if(!_0x23880e)return;const {id:_0x1a364f}=this['_splitMarkerName'](_0x20ea09['markerName']),_0x33a09b=this['_suggestions']['get'](_0x1a364f),_0x59e50f=this['_getAttributeKey'](_0x33a09b);if(this['_isBlockAttribute'](_0x59e50f)){for(const _0x35e878 of _0x23880e)_0x35e878['getCustomProperty']('addHighlight')||(_0x5d1b99['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x35e878),_0x5d1b99['writer']['removeAttribute']('data-suggestion',_0x35e878),_0x5d1b99['mapper']['unbindElementFromMarkerName'](_0x35e878,_0x20ea09['markerName']));}},{'priority':'high'});}),_0x33e422['model']['document']['registerPostFixer'](_0x5d0e12=>{let _0x53ec2e=!0x1;const _0x257fe2=Array['from'](_0x33e422['model']['document']['differ']['getChangedMarkers']()),_0xb279dd=new Set();for(const {name:_0x3e131c,data:_0x5da6bd}of _0x257fe2){const {group:_0x358f16,type:_0x44b0d5,subType:_0x6dd292,id:_0x527505}=this['_splitMarkerName'](_0x3e131c);if('suggestion'!==_0x358f16)continue;const _0x5a0c6a=this['_suggestions']['get'](_0x527505);if(null!=_0x5da6bd['newRange']){'formatInline'==_0x44b0d5&&(_0x53ec2e=_0x53ec2e||Et(_0x5da6bd['newRange'],_0x3e131c,_0x5d0e12,_0x33e422['model']['schema']));const _0x21414f='attribute'==_0x44b0d5&&this['_isBlockAttribute'](_0x6dd292['split']('|')[0x0]);if(_0x5da6bd['newRange']['isCollapsed']||'$graveyard'==_0x5da6bd['newRange']['root']['rootName']||'formatBlock'==_0x44b0d5&&!Ut(_0x5da6bd['newRange'])||_0x21414f&&!Ut(_0x5da6bd['newRange'])||'deletion'==_0x44b0d5&&!(!Tt(_0x3b0304=_0x5da6bd['newRange'])&&!function(_0x572015){return _0x572015['start']['parent']==_0x572015['end']['nodeBefore']&&_0x572015['start']['isAtEnd'];}(_0x3b0304)))_0x5d0e12['removeMarker'](_0x3e131c),_0x53ec2e=!0x0;else{if(!_0x5a0c6a||!_0x5a0c6a['isInContent'])continue;_0xb279dd['add'](_0x5a0c6a);}}}var _0x3b0304;return _0xb279dd['size']>0x0&&(_0x53ec2e=!!this['_joinWithAdjacentSuggestions'](_0xb279dd)||_0x53ec2e),_0x53ec2e;}),_0x33e422['model']['document']['registerPostFixer'](_0x5dfd6f=>{let _0x44fac4=!0x1;for(const _0x27160f of _0x33e422['model']['document']['differ']['getChanges']())if('insert'==_0x27160f['type'])for(const _0x25805f of this['_suggestions']['values']()){if(_0x25805f['isMultiRange']||!_0x25805f['isInContent'])continue;const _0x55f977='formatBlock'==_0x25805f['type'],_0x59a054=this['_getAttributeKey'](_0x25805f),_0x566f4b=_0x59a054&&this['_isBlockAttribute'](_0x59a054);if(!_0x55f977&&!_0x566f4b)continue;const _0x47e5cd=_0x25805f['getFirstRange']();if(_0x47e5cd['start']['parent']!=_0x47e5cd['end']['parent']&&!_0x47e5cd['end']['isAtEnd']){const _0x136e4d=_0x33e422['model']['createPositionAt'](_0x47e5cd['start']['nodeAfter'],'end'),_0x1ae222=_0x33e422['model']['createRange'](_0x47e5cd['start'],_0x136e4d);_0x5dfd6f['updateMarker'](_0x25805f['getFirstMarker'](),{'range':_0x1ae222}),_0x44fac4=!0x0;}}return _0x44fac4;}),_0x33e422['model']['document']['registerPostFixer'](_0x4f7ad3=>this['_processAttributeChanges'](_0x4f7ad3)),_0x33e422['model']['document']['registerPostFixer'](_0x53fda3=>!_0x53fda3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x53fda3)),_0x33e422['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33e422['model']['document']['on']('change:data',(_0x4617b,_0x5be513)=>{if(!_0x5be513['isLocal']||_0x5be513['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x15accc=_0x33e422['model']['document']['differ']['getChanges']();if(0x0==_0x15accc['length'])return;const _0xf3972=[],_0x1b0ba2=_0x15accc['filter'](_0x430dd3=>'attribute'==_0x430dd3['type']),_0x3f364e=_0x15accc['filter'](_0x3045d8=>'insert'==_0x3045d8['type']&&'$text'!=_0x3045d8['name']),_0x25ad0e=_0x15accc['filter'](_0x23627a=>'remove'==_0x23627a['type']&&'$text'!=_0x23627a['name']);for(const _0x51d2fb of _0x1b0ba2)this['_isRegisteredAttribute'](_0x51d2fb['attributeKey'])&&_0xf3972['push']({'key':_0x51d2fb['attributeKey'],'newValue':_0x51d2fb['attributeNewValue'],'oldValue':_0x51d2fb['attributeOldValue'],'range':Ot(_0x51d2fb['range'],_0x33e422['model'])});for(const _0x4d1b15 of _0x3f364e){const _0x2240c8=_0x25ad0e['find'](_0x14e3d0=>_0x14e3d0['_element']===_0x4d1b15['_element']);if(_0x2240c8){const _0xbb8da6=Ft(_0x4d1b15['position']['nodeAfter'],_0x33e422['model']);_0x2240c8['name']!==_0x4d1b15['name']&&_0xf3972['push']({'key':m,'newValue':_0x4d1b15['name'],'oldValue':_0x2240c8['name'],'range':_0xbb8da6});for(const [_0x185c54,_0x5c1bfe]of _0x2240c8['attributes']){if(!this['_isRegisteredAttribute'](_0x185c54))continue;const _0x49d32c=_0x4d1b15['attributes']['get'](_0x185c54);_0x5c1bfe!==_0x49d32c&&_0xf3972['push']({'key':_0x185c54,'newValue':_0x49d32c,'oldValue':_0x5c1bfe,'range':_0xbb8da6});}for(const [_0x4ea78a,_0x2c6da3]of _0x4d1b15['attributes'])this['_isRegisteredAttribute'](_0x4ea78a)&&(_0x2240c8['attributes']['has'](_0x4ea78a)||_0xf3972['push']({'key':_0x4ea78a,'newValue':_0x2c6da3,'oldValue':null,'range':_0xbb8da6}));}}0x0!=_0xf3972['length']&&_0x33e422['model']['enqueueChange'](_0x5be513,_0x28d85f=>{const _0x13da09=_0x109dee();for(const {range:_0x3cdc11,key:_0x3049a8,oldValue:_0x5da50c,newValue:_0x1c3898}of _0xf3972)this['markAttributeChange'](_0x3cdc11,_0x3049a8,_0x5da50c,_0x1c3898,{'groupId':_0x13da09});this['_reduceExistingSuggestions'](_0x28d85f,_0xf3972);});},{'priority':'lowest'}),_0x33e422['model']['markers']['on']('update:suggestion',(_0x52c743,_0x1e708b,_0x18b4ac)=>{if(null==_0x18b4ac){const {id:_0x4d77ba}=this['_splitMarkerName'](_0x1e708b['name']),_0x230d39=this['_suggestions']['get'](_0x4d77ba);_0x230d39&&_0x230d39['addMarkerName'](_0x1e708b['name']);}}),_0x33e422['model']['document']['on']('change:data',()=>{const _0x91a10f=Array['from'](_0x33e422['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1fa6dc=>'suggestion'===this['_splitMarkerName'](_0x1fa6dc['name'])['group']);if(0x0===_0x91a10f['length'])return;_0x91a10f['sort']((_0x3a2ee4,_0x18d470)=>{const _0x4437b5=_0x3a2ee4['data']['oldRange'],_0x442fe9=_0x18d470['data']['oldRange'];return null===_0x4437b5&&null===_0x442fe9?0x0:null===_0x4437b5&&null!==_0x442fe9?-0x1:null!==_0x4437b5&&null===_0x442fe9?0x1:_0x4437b5['start']['isBefore'](_0x442fe9['start'])?-0x1:0x1;});const _0x5ddf40=new Set(),_0x10f4c9=new Set();for(const {name:_0x4514f8,data:_0x312afd}of _0x91a10f){const {id:_0x2a9c7e}=this['_splitMarkerName'](_0x4514f8);if(null===_0x312afd['oldRange']){const _0x55eebb=this['_handleNewSuggestionMarker'](_0x4514f8);_0x10f4c9['add'](_0x55eebb);}else{const _0x5ef72a=this['_suggestions']['get'](_0x2a9c7e);null!==_0x312afd['newRange']||_0x5ef72a['isInContent']?(_0x5ddf40['add'](_0x5ef72a['head']),_0x10f4c9['add'](_0x5ef72a)):this['_removeSuggestion'](_0x5ef72a);}}_0x10f4c9['size']>0x0&&this['_refreshSuggestionsChain'](_0x10f4c9);for(const _0x2e9073 of _0x5ddf40)this['fire']('suggestionChanged',_0x2e9073);}),_0x33e422['model']['on']('applyOperation',(_0x16e2b2,_0x46ca25)=>{const _0x31b8d0=_0x46ca25[0x0];if(!this['_suggestions']['size'])return;if(!_0x31b8d0['isDocumentOperation'])return;if(_0x31b8d0['batch']['isUndo']||!_0x31b8d0['batch']['isLocal'])return;let _0x2eb3aa,_0x435ce5;switch(_0x31b8d0['type']){case'insert':_0x2eb3aa=_0x33e422['model']['createPositionAt'](_0x31b8d0['position']),_0x435ce5=_0x2eb3aa['getShiftedBy'](_0x31b8d0['howMany']);break;case'split':_0x2eb3aa=_0x33e422['model']['createPositionAt'](_0x31b8d0['splitPosition']),_0x435ce5=_0x33e422['model']['createPositionAt'](_0x31b8d0['moveTargetPosition']);break;case'move':_0x2eb3aa=_0x33e422['model']['createPositionAt'](_0x31b8d0['targetPosition']),_0x435ce5=_0x2eb3aa['getShiftedBy'](_0x31b8d0['howMany']);break;default:return;}const _0x1a145b=_0x33e422['model']['createRange'](_0x2eb3aa,_0x435ce5);_0x33e422['model']['change'](()=>{for(const {suggestion:_0x12d4b0,meta:_0x37e7cc}of this['_findSuggestions'](_0x1a145b)){if(_0x12d4b0['isMultiRange'])continue;if('formatInline'==_0x12d4b0['type'])continue;const _0x9f915e=this['_getAttributeKey'](_0x12d4b0);if(_0x9f915e&&this['_isBlockAttribute'](_0x9f915e)&&'split'!=_0x31b8d0['type'])continue;const _0x34d6cd=_0x12d4b0['data']&&_0x12d4b0['data']['multipleBlocks'];('formatBlock'!=_0x12d4b0['type']||'split'==_0x31b8d0['type']&&!_0x34d6cd)&&(_0x37e7cc['containsRangeInObject']||'insertion'==_0x12d4b0['type']&&_0x37e7cc['isOwn']||_0x12d4b0['getFirstRange']()['containsRange'](_0x1a145b)&&this['_breakSuggestionMarker'](_0x12d4b0,_0x2eb3aa,_0x435ce5));}});},{'priority':'lowest'}),_0x33e422['model']['on']('deleteContent',(_0x1745b4,_0xc4f3cc)=>{const _0xf3f22b=_0xc4f3cc[0x0],_0x5a3667=_0xc4f3cc[0x1];if(_0x5a3667&&_0x5a3667['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xf3f22b['isCollapsed'])return;const _0x3c0ee8=_0x33e422['model']['schema'],{start:_0x3645bf,end:_0x1f9ffe}=_0xf3f22b['getFirstRange'](),_0x50fe23=_0x3645bf['nodeAfter']&&_0x3c0ee8['isLimit'](_0x3645bf['nodeAfter'])?null:_0x3c0ee8['getNearestSelectionRange'](_0x3645bf,'forward'),_0x46edd9=_0x1f9ffe['nodeBefore']&&_0x3c0ee8['isLimit'](_0x1f9ffe['nodeBefore'])?null:_0x3c0ee8['getNearestSelectionRange'](_0x1f9ffe,'backward'),_0x5ef359=_0x33e422['model']['createRange'](_0x50fe23?_0x50fe23['start']:_0x3645bf,_0x46edd9?_0x46edd9['end']:_0x1f9ffe);_0x33e422['model']['change'](_0x524c26=>{this['markDeletion'](_0x5ef359);const _0x2242fc=_0x33e422['model']['schema']['getNearestSelectionRange'](_0x5ef359['start']);_0xf3f22b['is']('documentSelection')?_0x524c26['setSelection'](_0x2242fc):_0xf3f22b['setTo'](_0x2242fc);}),_0x1745b4['stop']();},{'priority':_0x3ba2dc['normal']+0xa}),_0x33e422['model']['on']('insertContent',(_0x2e379f,_0xa80835)=>{const _0x4d7c46=_0xa80835[_0xa80835['length']-0x1];_0x4d7c46&&_0x4d7c46['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33e422['model']['change'](()=>{let _0xa59cab=_0x33e422['model']['insertContent'](_0xa80835[0x0],_0xa80835[0x1],_0xa80835[0x2],{'forceDefaultExecution':!0x0});if(!_0xa59cab)return;_0x2e379f['return']=_0xa59cab['clone']();const _0x129d40=_0xa59cab['end']['nodeBefore'],_0x305407=_0x33e422['model']['schema'];_0x129d40&&_0x305407['isBlock'](_0x129d40)&&!_0x305407['isObject'](_0x129d40)&&(_0xa59cab=_0x33e422['model']['createRange'](_0xa59cab['start'],_0x33e422['model']['createPositionAt'](_0x129d40,'end'))),this['markInsertion'](_0xa59cab);}),_0x2e379f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x121c2a=new $(_0x33e422,this['_suggestions']);_0x33e422['commands']['add']('acceptSuggestion',_0x121c2a),this['enableCommand']('acceptSuggestion');const _0x2841ff=new B(_0x33e422,this['_suggestions']);_0x33e422['commands']['add']('discardSuggestion',_0x2841ff),this['enableCommand']('discardSuggestion'),_0x33e422['commands']['add']('acceptAllSuggestions',new x(_0x33e422,_0x121c2a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33e422['commands']['add']('discardAllSuggestions',new x(_0x33e422,_0x2841ff,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33e422['commands']['add']('acceptSelectedSuggestions',new R(_0x33e422,_0x121c2a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33e422['commands']['add']('discardSelectedSuggestions',new R(_0x33e422,_0x2841ff,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xff3fce=_0x33e422['plugins']['get']('CommentsRepository');this['listenTo'](_0xff3fce,'addComment',(_0x37faa1,{threadId:_0x43a4ee})=>{const _0x27d4c9=this['_suggestions']['get'](_0x43a4ee);_0x27d4c9&&_0x27d4c9['commentThread']&&0x1===_0x27d4c9['commentThread']['length']&&this['_updateSuggestionData'](_0x43a4ee,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xff3fce,'removeComment',(_0x78980d,{threadId:_0x4a6a87})=>{const _0xf0b37f=this['_suggestions']['get'](_0x4a6a87);_0xf0b37f&&_0xf0b37f['commentThread']&&!_0xf0b37f['commentThread']['length']&&this['_updateSuggestionData'](_0x4a6a87,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x4a3119){if(this['_adapter'])throw new _0x46c804('track-changes-adapter-already-set',this);this['_adapter']=_0x4a3119;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x93de31=!0x1,toJSON:_0x152138=!0x1}={}){const _0x4d97c9=[];for(const _0x2b2523 of this['_suggestions']['values']())_0x93de31&&!_0x2b2523['isInContent']||_0x4d97c9['push'](_0x2b2523);return _0x152138?_0x4d97c9['map'](_0x3e5a77=>_0x3e5a77['toJSON']()):_0x4d97c9;}['getSuggestion'](_0x4dbfb0){const _0x3b32f3=this['_suggestions']['get'](_0x4dbfb0);if(!_0x3b32f3)throw new _0x46c804('track-changes-suggestion-not-found',this);return _0x3b32f3;}['hasSuggestion'](_0x5d832d){return this['_suggestions']['has'](_0x5d832d);}['addSuggestionData'](_0x4e72b5){const {authorId:_0x320bde,id:_0x23e7aa,attributes:_0x389114}=_0x4e72b5,[_0x475b8f,_0x30a847]=_0x4e72b5['type']['split'](':'),_0x4f5e13=this['_suggestions']['get'](_0x23e7aa)||this['_createSuggestion'](_0x475b8f,_0x30a847,_0x23e7aa,_0x320bde,_0x389114);if(this['_addThreadToSuggestion'](_0x4f5e13),this['_checkSuggestionCorrectness'](_0x4f5e13,_0x475b8f,_0x30a847||null,_0x320bde),_0x4f5e13['createdAt']=_0x4e72b5['createdAt'],_0x4f5e13['_isDataLoaded']=!0x0,_0x389114&&_0x389114['@external']){const _0x10fa9a=_0x389114['@external'],_0xdeade5=this['_getExternalAuthor'](_0x10fa9a['authorName']);_0x4f5e13['authoredAt']=_0x10fa9a['createdAt'],_0x4f5e13['author']=_0xdeade5,_0x4f5e13['isExternal']=!0x0;}else _0x4f5e13['authoredAt']=_0x4e72b5['createdAt'];switch(_0x4e72b5['data']&&(_0x4f5e13['data']=_0x4e72b5['data']),_0x4e72b5['attributes']&&(_0x4f5e13['attributes']=_0x4e72b5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4f5e13['_saved']=!0x0),this['_suggestionState']['get'](_0x4f5e13)){case'notReady':this['_suggestionState']['set'](_0x4f5e13,'dataReady');break;case'markerReady':_0x4f5e13['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4f5e13])),this['_refreshSuggestionsChain'](new Set([_0x4f5e13])),this['_suggestionState']['set'](_0x4f5e13,'ready'),this['fire']('suggestionLoaded',_0x4f5e13)):this['_suggestionState']['set'](_0x4f5e13,'removed');}return _0x4f5e13;}['acceptSuggestion'](_0x52fe1e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41f7f0 of _0x52fe1e['getAllAdjacentSuggestions']())_0x41f7f0['accept']();});});}['discardSuggestion'](_0x441010){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5aba93 of _0x441010['getAllAdjacentSuggestions']())_0x5aba93['discard']();});});}['enableCommand'](_0x4dbeec,_0x56c710){const _0x246fd2=this['editor']['commands']['get'](_0x4dbeec);if(!_0x246fd2)throw new _0x46c804('track-changes-command-not-found',this,{'commandName':_0x4dbeec});if(this['_enabledCommands']['has'](_0x246fd2))throw new _0x46c804('track-changes-enable-command-twice',this,{'commandName':_0x4dbeec});this['_enabledCommands']['add'](_0x246fd2),_0x56c710&&_0x246fd2['on']('execute',(_0xdddfa5,_0x713dcf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x713dcf['length']>0x0&&_0x713dcf[_0x713dcf['length']-0x1]&&_0x713dcf[_0x713dcf['length']-0x1]['forceDefaultExecution']?_0x713dcf['pop']():(_0xdddfa5['return']=_0x56c710((..._0x58013d)=>_0x246fd2['execute'](..._0x58013d,{'forceDefaultExecution':!0x0}),..._0x713dcf),_0xdddfa5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x19d0c4){let _0x186177,_0x341569;const _0x3ed1c9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x186177=_0x19d0c4();}catch(_0x3bb15e){_0x341569=_0x3bb15e;}return _0x3ed1c9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x341569&&_0x46c804['rethrowUnexpectedError'](_0x341569,this),_0x186177;}['markInsertion'](_0x15e416,_0x260c44=null,_0x5270c4={}){if(_0x15e416['isCollapsed'])return null;const _0x22d636=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x678572,meta:_0xa09906}of this['_findSuggestions'](_0x15e416,'insertion'))if(_0xa09906['isOwn']){if(!_0xa09906['isNextTo']){if(_0xa09906['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x678572,_0x5270c4))continue;return _0x678572;}if(Lt(_0x678572,_0x5270c4))return _0x678572;this['_breakSuggestionMarker'](_0x678572,_0x15e416['start'],_0x15e416['end']);break;}if(_0x260c44==_0x678572['subType']&&Lt(_0x678572,_0x5270c4)){const _0x39bf2f=_0x678572['getFirstRange']();return _0x39bf2f['start']['isEqual'](_0x15e416['end'])?this['_setSuggestionRange'](_0x678572,this['_model']['createRange'](_0x15e416['start'],_0x39bf2f['end'])):this['_setSuggestionRange'](_0x678572,this['_model']['createRange'](_0x39bf2f['start'],_0x15e416['end'])),_0x678572;}}const _0x3464eb=_0x109dee(),_0x50ef3e=_0x22d636['id'],_0xd90f49=_0x260c44?'insertion:'+_0x260c44:'insertion',_0x209469=this['_setSuggestionData']({'id':_0x3464eb,'type':_0xd90f49,'createdAt':new Date(),'authorId':_0x50ef3e,'attributes':_0x5270c4});return this['_addSuggestionMarker'](_0xd90f49,_0x3464eb,_0x50ef3e,_0x15e416),_0x209469;}['markMultiRangeInsertion'](_0x7d20ed,_0x29ba7f='multi',_0x586461={}){const _0x41cbd8=this['editor']['plugins']['get']('Users')['me'],_0x463e9b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x29ba7f,'join');for(const _0x49c602 of this['getSuggestions']())if(_0x49c602['author']['id']==_0x41cbd8['id']&&'insertion'==_0x49c602['type']&&_0x49c602['subType']==_0x29ba7f&&Lt(_0x49c602,_0x586461)&&(_0x463e9b(_0x49c602['getRanges'](),_0x7d20ed)||_0x463e9b(_0x7d20ed,_0x49c602['getRanges']()))){for(const _0x4bdc93 of _0x7d20ed)_0x49c602['addRange'](_0x4bdc93);return _0x49c602;}for(const {suggestion:_0x4bd486,meta:_0x2b4088}of this['_findSuggestions'](_0x7d20ed,'insertion')){if(!_0x2b4088['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2b4088['containsRangeInObject'])continue;if(!Lt(_0x4bd486,_0x586461))continue;let _0x308737=!0x0;for(const _0x1da37d of _0x4bd486['getRanges']())for(const _0x30942c of _0x7d20ed)if(!_0x1da37d['containsRange'](_0x30942c)){_0x308737=!0x1;break;}if(_0x308737)return _0x4bd486;}const _0x4613a5=_0x109dee(),_0x53253c=_0x41cbd8['id'],_0x5054f7='insertion:'+_0x29ba7f,_0x418b56=this['_setSuggestionData']({'id':_0x4613a5,'type':_0x5054f7,'createdAt':new Date(),'authorId':_0x53253c,'attributes':_0x586461});for(const _0xc9889a of _0x7d20ed)this['_addSuggestionMarker'](_0x5054f7,_0x4613a5,_0x53253c,_0xc9889a,u['getMultiRangeId']());return _0x418b56;}['markInlineFormat'](_0x16eeb2,_0x2b6188,_0x23e7c5=null,_0x14af6b={}){if(_0x23e7c5=_0x23e7c5||Vt(_0x2b6188),_0x16eeb2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x19973a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23e7c5,'accept');return this['forceDefaultExecution'](()=>_0x19973a([_0x16eeb2],_0x2b6188,_0x14af6b)),null;}const _0x266f9c=this['editor']['plugins']['get']('Users')['me'],_0x6a531d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x28e678,meta:_0x12cb72}of this['_findSuggestions'](_0x16eeb2,'insertion'))_0x12cb72['isOwn']&&!_0x12cb72['isInsideObject']&&_0x6a531d['push'](..._0x28e678['getRanges']());}const _0x51f084=function(_0x1b2d2d,_0x109775){const _0x333cba=[];for(const _0x164990 of _0x109775){const _0x238d6a=_0x1b2d2d['getIntersection'](_0x164990);_0x238d6a&&_0x333cba['push'](_0x238d6a);}return _0x333cba;}(_0x16eeb2,_0x6a531d),_0x219885=function(_0x344014,_0x5f26b1){const _0x28e303=[_0x344014];for(const _0x5653c0 of _0x5f26b1){let _0x910ba3=0x0;for(;_0x910ba3<_0x28e303['length'];){const _0x514d59=_0x28e303[_0x910ba3]['getDifference'](_0x5653c0);_0x28e303['splice'](_0x910ba3,0x1,..._0x514d59),_0x910ba3+=_0x514d59['length'];}}return _0x28e303;}(_0x16eeb2,_0x6a531d);_0x51f084['length']&&this['_model']['change'](()=>{for(const _0x402d1b of _0x51f084){const _0x3c8e26=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x23e7c5,'accept');this['forceDefaultExecution'](()=>_0x3c8e26([_0x402d1b],_0x2b6188,_0x14af6b));}});for(const _0x3bb223 of _0x219885){let _0xa6ad7=null,_0x2eefd2=_0x3bb223['start'],_0x17fe1f=_0x3bb223['end'];for(const {suggestion:_0x4c72e5,meta:_0x2ca15b}of this['_findSuggestions'](_0x3bb223,'formatInline')){if(!_0x2ca15b['isOwn'])continue;if(_0x4c72e5['subType']!=_0x23e7c5)continue;if(!Lt(_0x4c72e5,_0x14af6b))continue;const _0x387c31=_0x4c72e5['getFirstRange']();if(_0x387c31['containsRange'](_0x3bb223,!0x0))return null;_0x2eefd2=_0x2eefd2['isBefore'](_0x387c31['start'])?_0x2eefd2:_0x387c31['start'],_0x17fe1f=_0x17fe1f['isAfter'](_0x387c31['end'])?_0x17fe1f:_0x387c31['end'],_0xa6ad7?_0x387c31['start']['isBefore'](_0xa6ad7['getFirstRange']()['start'])?(_0xa6ad7['removeMarkers'](),_0xa6ad7=_0x4c72e5):_0x4c72e5['removeMarkers']():_0xa6ad7=_0x4c72e5;}const _0xf28f52=this['_model']['createRange'](_0x2eefd2,_0x17fe1f);if(_0xa6ad7)this['_setSuggestionRange'](_0xa6ad7,_0xf28f52);else{const _0x85d760=_0x109dee(),_0x5cb9d3=_0x266f9c['id'];this['_setSuggestionData']({'id':_0x85d760,'type':'formatInline:'+_0x23e7c5,'data':_0x2b6188,'createdAt':new Date(),'authorId':_0x5cb9d3,'attributes':_0x14af6b}),this['_addSuggestionMarker']('formatInline:'+_0x23e7c5,_0x85d760,_0x5cb9d3,_0xf28f52);}}return null;}['markBlockFormat'](_0x1184a2,_0x5c654c,_0x397cb4=[],_0x98a395=null,_0x1ea0ab={}){_0x5c654c['formatGroupId']||(_0x5c654c['formatGroupId']=_0x5c654c['commandName']),_0x5c654c['multipleBlocks']=_0x1184a2['is']('range'),_0x98a395=_0x98a395||Vt(_0x5c654c);const _0x4c6026=_0x397cb4['map'](_0x44246c=>Ft(_0x44246c,this['_model'])),_0x99f88d=_0x1184a2['is']('range')?_0x1184a2:Ft(_0x1184a2,this['_model']);if('never'===this['_trackFormatChanges']){const _0x13e179=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x98a395,'accept');return this['forceDefaultExecution'](()=>_0x13e179([_0x99f88d],_0x5c654c,_0x1ea0ab)),null;}_0x4c6026['push'](_0x99f88d);let _0x546444=!0x0;for(const _0x417c04 of _0x4c6026)if(!this['_rangeIsInLocalUserInsertion'](_0x417c04)){_0x546444=!0x1;break;}if(_0x546444&&'always'!==this['_trackFormatChanges']){const _0xd32660=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x98a395,'accept');return this['forceDefaultExecution'](()=>_0xd32660([_0x99f88d],_0x5c654c,_0x1ea0ab)),null;}let _0x46a65a=null,_0x1e3123=_0x99f88d['start'],_0x59304e=_0x99f88d['end'];for(const {suggestion:_0x189a26,meta:_0x275d80}of this['_findSuggestions'](_0x99f88d,'formatBlock')){if(!_0x275d80['isOwn'])continue;if(_0x275d80['isNextTo']||_0x275d80['containsRangeInObject']||_0x275d80['isInsideObject'])continue;if(_0x189a26['data']['formatGroupId']!=_0x5c654c['formatGroupId'])continue;if(!Lt(_0x189a26,_0x1ea0ab))continue;const _0x91d61b=_0x189a26['getFirstRange']();if(_0x189a26['subType']==_0x98a395){if(_0x91d61b['containsRange'](_0x99f88d,!0x0))return null;_0x1e3123=_0x1e3123['isBefore'](_0x91d61b['start'])?_0x1e3123:_0x91d61b['start'],_0x59304e=_0x59304e['isAfter'](_0x91d61b['end'])?_0x59304e:_0x91d61b['end'],_0x46a65a?_0x91d61b['start']['isBefore'](_0x46a65a['getFirstRange']()['start'])?(_0x46a65a['removeMarkers'](),_0x46a65a=_0x189a26):_0x189a26['removeMarkers']():_0x46a65a=_0x189a26;}else{const _0x3ac70c=_0x99f88d['getIntersection'](_0x91d61b);this['_cutOutSuggestionMarker'](_0x189a26,_0x3ac70c);}}const _0x10af5d=this['editor']['plugins']['get']('Users')['me'],_0x177d5e=_0x109dee(),_0x4035b6=_0x10af5d['id'];if(_0x46a65a)return this['_setSuggestionRange'](_0x46a65a,this['_model']['createRange'](_0x1e3123,_0x59304e)),_0x46a65a;{const _0x81db1f=this['_setSuggestionData']({'id':_0x177d5e,'type':'formatBlock:'+_0x98a395,'data':_0x5c654c,'createdAt':new Date(),'authorId':_0x4035b6,'attributes':_0x1ea0ab});return this['_addSuggestionMarker']('formatBlock:'+_0x98a395,_0x177d5e,_0x4035b6,this['_model']['createRange'](_0x1e3123,_0x59304e)),_0x81db1f;}}['markMultiRangeBlockFormat'](_0xe3a10d,_0x3e4c3c,_0x2e1fef=[],_0x59a7d6=null,_0x555cb0={}){_0x3e4c3c['formatGroupId']||(_0x3e4c3c['formatGroupId']=_0x3e4c3c['commandName']);const _0x42c7aa=_0xe3a10d[0x0];_0x3e4c3c['multipleBlocks']=_0x42c7aa['is']('range'),_0x59a7d6=_0x59a7d6||Vt(_0x3e4c3c);const _0x273c93=_0x2e1fef['map'](_0x3b131b=>Ft(_0x3b131b,this['_model'])),_0x2cd7cb=_0x42c7aa['is']('range')?_0xe3a10d:_0xe3a10d['map'](_0x50a86f=>Ft(_0x50a86f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x22fdae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59a7d6,'accept');return this['forceDefaultExecution'](()=>_0x22fdae(_0x2cd7cb,_0x3e4c3c,_0x555cb0)),null;}_0x273c93['push'](..._0x2cd7cb);let _0x4ed527=!0x0;for(const _0x46c47e of _0x273c93)if(!this['_rangeIsInLocalUserInsertion'](_0x46c47e)){_0x4ed527=!0x1;break;}if(_0x4ed527&&'always'!==this['_trackFormatChanges']){const _0x177347=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59a7d6,'accept');return this['forceDefaultExecution'](()=>_0x177347(_0x2cd7cb,_0x3e4c3c,_0x555cb0)),null;}const _0x1808c1=this['editor']['plugins']['get']('Users')['me'];for(const _0x101b36 of this['getSuggestions']()){if(_0x101b36['author']['id']!=_0x1808c1['id'])continue;if('formatBlock'!=_0x101b36['type']||_0x101b36['data']['formatGroupId']!=_0x3e4c3c['formatGroupId'])continue;if(!Lt(_0x101b36,_0x555cb0))continue;const _0x255cd0=_0x101b36['subType']==_0x59a7d6;for(let _0x5354dd=0x0;_0x5354dd<_0x2cd7cb['length'];_0x5354dd++){const _0x16c399=_0x2cd7cb[_0x5354dd];for(const _0x216eee of _0x101b36['getMarkers']()){const _0x5d11d0=_0x216eee['getRange']();if(_0x16c399['isEqual'](_0x5d11d0)){_0x255cd0?(_0x2cd7cb['splice'](_0x5354dd,0x1),_0x5354dd--):_0x101b36['removeMarker'](_0x216eee['name']);break;}}}}if(0x0==_0x2cd7cb['length'])return null;const _0x5dac46=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x59a7d6,'join');for(const _0x3f2a77 of this['getSuggestions']())if(_0x3f2a77['author']['id']==_0x1808c1['id']&&'formatBlock'==_0x3f2a77['type']&&_0x3f2a77['data']['formatGroupId']==_0x3e4c3c['formatGroupId']&&_0x3f2a77['subType']==_0x59a7d6&&Lt(_0x3f2a77,_0x555cb0)&&(_0x5dac46(_0x3f2a77['getRanges'](),_0x2cd7cb)||_0x5dac46(_0x2cd7cb,_0x3f2a77['getRanges']()))){for(const _0xd4acaa of _0x2cd7cb)_0x3f2a77['addRange'](_0xd4acaa);return _0x3f2a77;}const _0x118f39=_0x109dee(),_0x11d0e1=_0x1808c1['id'],_0x20b828='formatBlock:'+_0x59a7d6,_0x3c0b77=this['_setSuggestionData']({'id':_0x118f39,'type':_0x20b828,'data':_0x3e4c3c,'createdAt':new Date(),'authorId':_0x11d0e1,'attributes':_0x555cb0});for(const _0x3ca5ba of _0x2cd7cb)this['_addSuggestionMarker'](_0x20b828,_0x118f39,_0x11d0e1,_0x3ca5ba,u['getMultiRangeId']());return _0x3c0b77;}['markDeletion'](_0x318f45,_0x28f7d8=null,_0x4d72f1={}){if(_0x318f45['isCollapsed'])return null;const _0x5a9378=this['editor']['plugins']['get']('Users')['me'],_0x485527=new _0x43239f(_0x318f45['start'],_0x318f45['end']);for(const {suggestion:_0x10758a,meta:_0x93903}of this['_findSuggestions'](_0x485527,'insertion'))if(_0x93903['isOwn']&&!_0x93903['isNextTo']){if(_0x10758a['isMultiRange']){const _0x2c5145=_0x10758a['getRanges']()['filter'](_0x98425e=>'$graveyard'!=_0x98425e['root']['rootName']);_0x2c5145['every'](_0x5d9d44=>_0x485527['containsRange'](_0x5d9d44,!0x0))&&_0x10758a['discard']();if(_0x2c5145['some'](_0x2515bf=>_0x2515bf['containsRange'](_0x485527,!0x0))){const _0x22431b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28f7d8,'accept');return this['forceDefaultExecution'](()=>_0x22431b([_0x485527],null,_0x4d72f1)),null;}}else{const _0x195beb=_0x485527['getIntersection'](_0x10758a['getFirstRange']());null!==_0x195beb&&_0x10758a['_onDiscard']([_0x195beb],null,_0x4d72f1);}}if(_0x485527['detach'](),_0x485527['isCollapsed']||'$graveyard'==_0x485527['root']['rootName'])return null;let _0x23657c=null,_0x238d34=_0x485527['start'],_0x3b97ef=_0x485527['end'];const _0x1d4ece=this['_findSuggestions'](_0x485527,'deletion');for(const {suggestion:_0x5b1b03,meta:_0x595b90}of _0x1d4ece){const _0x5d1a31=this['_model']['createRange'](_0x238d34,_0x3b97ef);if(_0x595b90['isOwn']&&(this['_mergeNestedSuggestions']||!_0x595b90['containsRangeInObject']&&!_0x595b90['isInsideObject'])){if(_0x5b1b03['isMultiRange']){if(!Lt(_0x5b1b03,_0x4d72f1))continue;let _0x2b95f0=!0x0;for(const _0xbcaaf5 of _0x5b1b03['getRanges']()){if(_0xbcaaf5['containsRange'](_0x5d1a31,!0x0))return _0x5b1b03;_0x5d1a31['containsRange'](_0xbcaaf5)||(_0x2b95f0=!0x1);}_0x2b95f0&&_0x5b1b03['discard']();}else{const _0x5ae928=_0x5b1b03['getFirstRange']();if(_0x5ae928['containsRange'](_0x5d1a31,!0x0))return _0x5b1b03;if(!Lt(_0x5b1b03,_0x4d72f1)){_0x5d1a31['containsRange'](_0x5ae928)?_0x5b1b03['removeMarkers']():_0x5ae928['containsPosition'](_0x238d34)?_0x238d34=_0x5ae928['end']:_0x5ae928['containsPosition'](_0x3b97ef)&&(_0x3b97ef=_0x5ae928['start']);continue;}_0x238d34=_0x238d34['isBefore'](_0x5ae928['start'])?_0x238d34:_0x5ae928['start'],_0x3b97ef=_0x3b97ef['isAfter'](_0x5ae928['end'])?_0x3b97ef:_0x5ae928['end'],_0x4d72f1=Object['assign']({},_0x5b1b03['attributes']),_0x23657c?_0x5ae928['start']['isBefore'](_0x23657c['getFirstRange']()['start'])?(_0x23657c['removeMarkers'](),_0x23657c=_0x5b1b03):_0x5b1b03['removeMarkers']():_0x23657c=_0x5b1b03;}}}if(_0x23657c)return this['_setSuggestionRange'](_0x23657c,this['_model']['createRange'](_0x238d34,_0x3b97ef)),_0x23657c;{const _0xbda848=_0x109dee(),_0x425b25=this['_model']['createRange'](_0x238d34,_0x3b97ef),_0x3fcd4d=_0x5a9378['id'],_0x491cfd=_0x28f7d8?'deletion:'+_0x28f7d8:'deletion',_0x5e8e3b=this['_setSuggestionData']({'id':_0xbda848,'type':_0x491cfd,'createdAt':new Date(),'authorId':_0x3fcd4d,'attributes':_0x4d72f1});return this['_addSuggestionMarker'](_0x491cfd,_0xbda848,_0x3fcd4d,_0x425b25),_0x5e8e3b;}}['markMultiRangeDeletion'](_0x5e0f50,_0x1dce41='multi',_0x243df2={}){const _0x42d831=this['editor']['plugins']['get']('Users')['me'],_0x37191d=_0x5e0f50['map'](_0x322abe=>new _0x43239f(_0x322abe['start'],_0x322abe['end'])),_0x119e88=new Set();for(const {suggestion:_0x1f10ba,meta:_0x470697}of this['_findSuggestions'](_0x37191d,'insertion'))_0x470697['isOwn']&&!_0x470697['isNextTo']&&_0x119e88['add'](_0x1f10ba);for(const _0x5ae1d6 of _0x119e88)if(_0x5ae1d6['isMultiRange']){const _0x3283a8=_0x5ae1d6['getRanges']();(!_0x5ae1d6['attributes']||!_0x5ae1d6['attributes']['skipNestingCheck'])&&(_0x3283a8['every'](_0x55e699=>_0x37191d['some'](_0x3379c3=>_0x3379c3['containsRange'](_0x55e699,!0x0)))&&_0x5ae1d6['discard']());if(_0x37191d['every'](_0xe4bdcb=>_0x3283a8['some'](_0x539304=>_0x539304['containsRange'](_0xe4bdcb,!0x0)))){const _0x223a5e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dce41,'accept');return this['forceDefaultExecution'](()=>_0x223a5e(_0x5e0f50,null,_0x243df2)),null;}}else{const _0x5615cc=_0x5ae1d6['getFirstRange']();_0x37191d['some'](_0x59c56a=>_0x59c56a['containsRange'](_0x5615cc,!0x0))&&_0x5ae1d6['discard']();if(_0x37191d['every'](_0x24785a=>_0x5615cc['containsRange'](_0x24785a,!0x0))){const _0xe1c0c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dce41,'accept');return this['forceDefaultExecution'](()=>_0xe1c0c(_0x37191d,null,_0x243df2)),null;}}const _0x5cac7a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1dce41,'join');let _0x21f7d3=null;for(const _0x41898e of this['getSuggestions']())if(_0x41898e['author']['id']==_0x42d831['id']&&_0x41898e['isInContent']&&'deletion'==_0x41898e['type']&&_0x41898e['subType']==_0x1dce41&&Lt(_0x41898e,_0x243df2)&&(_0x5cac7a(_0x41898e['getRanges'](),_0x37191d)||_0x5cac7a(_0x37191d,_0x41898e['getRanges']()))){if(_0x21f7d3){if(_0x41898e['commentThread']&&_0x41898e['commentThread']['length'])continue;for(const _0xc174bc of _0x41898e['getRanges']())_0x21f7d3['isIntersectingWithRange'](_0xc174bc)||_0x21f7d3['addRange'](_0xc174bc);_0x41898e['removeMarkers']();}else{_0x21f7d3=_0x41898e;for(const _0x20af81 of _0x37191d)_0x41898e['isIntersectingWithRange'](_0x20af81)||_0x41898e['addRange'](_0x20af81);}}if(_0x21f7d3)return _0x21f7d3;_0x119e88['clear']();for(const {suggestion:_0x4fbab1,meta:_0x3f3fd1}of this['_findSuggestions'](_0x37191d,'deletion'))_0x3f3fd1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f3fd1['containsRangeInObject']&&!_0x3f3fd1['isInsideObject'])&&Lt(_0x4fbab1,_0x243df2)&&_0x119e88['add'](_0x4fbab1);for(const _0x3d3f89 of _0x119e88){const _0x2a9be6=_0x3d3f89['getRanges']();if(!_0x243df2||!_0x243df2['skipNestingCheck']){if(_0x37191d['every'](_0x3ff8d3=>_0x2a9be6['some'](_0x176165=>_0x176165['containsRange'](_0x3ff8d3,!0x0))))return _0x3d3f89;}(!_0x3d3f89['attributes']||!_0x3d3f89['attributes']['skipNestingCheck'])&&(_0x2a9be6['every'](_0x4218d6=>_0x37191d['some'](_0x2a70ce=>_0x2a70ce['containsRange'](_0x4218d6,!0x0)))&&_0x3d3f89['discard']());}const _0x291553=_0x109dee(),_0x18db44=_0x42d831['id'],_0x39fbdb='deletion:'+_0x1dce41,_0xaf4c0d=this['_setSuggestionData']({'id':_0x291553,'type':_0x39fbdb,'createdAt':new Date(),'authorId':_0x18db44,'attributes':_0x243df2});for(const _0x523ff6 of _0x37191d)_0x523ff6['detach'](),_0x523ff6['isCollapsed']||'$graveyard'==_0x523ff6['root']['rootName']||this['_addSuggestionMarker'](_0x39fbdb,_0x291553,_0x18db44,_0x523ff6,u['getMultiRangeId']());return _0xaf4c0d;}['markAttributeChange'](_0x1ae96e,_0xd99046,_0x15ec7b,_0x53e8d6,_0x4f0556){if(_0x1ae96e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x586ff4=this['editor']['plugins']['get']('Users')['me']['id'],_0x415f10=Array['from'](this['_suggestions']['values']())['filter'](_0x422f58=>'attribute'==_0x422f58['type']&&_0x422f58['data']['key']==_0xd99046&&_0x422f58['isIntersectingWithRange'](_0x1ae96e));if('default'===this['_trackFormatChanges']){const _0x274d4c=this['_findSuggestions'](_0x1ae96e,'insertion')['filter'](({meta:_0x3051f2})=>_0x3051f2['isOwn']&&!_0x3051f2['isInsideObject']&&!_0x3051f2['isNextTo'])['map'](({suggestion:_0x127322})=>_0x127322);_0x415f10['unshift'](..._0x274d4c);}const _0x28ce27=new Map([[_0x1ae96e,_0x15ec7b]]);for(const _0x5e7bd8 of _0x415f10){const _0x3688f4='attribute'==_0x5e7bd8['type']?_0x5e7bd8['data']['oldValue']:void 0x0,_0x26ad0b=_0x5e7bd8['getFirstRange'](),_0xd20517=Array['from'](_0x28ce27['keys']())['find'](_0x4fbff5=>_0x4fbff5['isIntersecting'](_0x26ad0b));if(!_0xd20517)continue;const _0x7db6f2=_0xd20517['getDifference'](_0x26ad0b);this['_isBlockAttribute'](_0xd99046)&&'insertion'==_0x5e7bd8['type']&&0x0!=_0x7db6f2['length']||(_0x28ce27['delete'](_0xd20517),_0x7db6f2['forEach'](_0x3f53d6=>{_0x28ce27['set'](_0x3f53d6,_0x15ec7b);}),'insertion'!=_0x5e7bd8['type']&&_0x3688f4!=_0x53e8d6&&_0x28ce27['set'](_0xd20517['getIntersection'](_0x26ad0b),_0x3688f4));}const _0x47228b=[];for(const [_0x151b6e,_0x2ae158]of _0x28ce27){const _0x1c5ed0=_0x109dee(),_0x10b3fa={'key':_0xd99046,'oldValue':_0x2ae158,'newValue':_0x53e8d6};_0xd99046['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':_0xd99046});const _0x47c7b5=('attribute:'+(_0xd99046+'|'+Vt({'newValue':_0x53e8d6})))['substring'](0x0,0x3c),_0x53893f=this['_setSuggestionData']({'id':_0x1c5ed0,'type':_0x47c7b5,'data':_0x10b3fa,'createdAt':new Date(),'authorId':_0x586ff4,'attributes':_0x4f0556});_0x47228b['push'](_0x53893f),this['_addSuggestionMarker'](_0x47c7b5,_0x1c5ed0,_0x586ff4,_0x151b6e);}return _0x47228b;}['enableDefaultAttributesIntegration'](_0x11cf23){this['enableCommand'](_0x11cf23,(_0x52ef2c,..._0x2d0847)=>{this['_recordAttributeChanges'](()=>{_0x52ef2c(..._0x2d0847);});});}['registerBlockAttribute'](_0x49c61f){this['_blockAttributeKeys']['add'](_0x49c61f);}['registerInlineAttribute'](_0x49f135){this['_inlineAttributeKeys']['add'](_0x49f135);}['_getAttributeKey'](_0x1df3f9){return'attribute'==_0x1df3f9['type']?_0x1df3f9['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x195756,_0x5975a5){const _0x2f18d1=_0x195756['getFirstMarker']();this['_model']['change'](_0x104c18=>{_0x104c18['updateMarker'](_0x2f18d1,{'range':_0x5975a5});});}['_addThreadToSuggestion'](_0x196076){const _0x2d52ee=_0x196076['id'],_0x57812f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2d52ee)||this['_commentsRepository']['addCommentThread']({'channelId':_0x57812f,'threadId':_0x2d52ee,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x55a3b4=this['_commentsRepository']['getCommentThread'](_0x2d52ee);_0x55a3b4['unbind']('isRemovable'),_0x55a3b4['isRemovable']=!0x1,_0x196076['commentThread']=_0x55a3b4;}['_checkSuggestionCorrectness'](_0xc0f698,_0x109fe0,_0x2e87dc,_0x375fc1){if(_0xc0f698['type']!=_0x109fe0||_0xc0f698['subType']!=_0x2e87dc||_0xc0f698['creator']['id']!=_0x375fc1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x46c804('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x27f13e,_0x125f28){const _0x19524d=_0x27f13e['getFirstRange']();if(_0x125f28['isEqual'](_0x19524d))_0x27f13e['removeMarkers']();else{if(_0x19524d['containsRange'](_0x125f28)){const _0x493de5=this['_model']['createPositionAt'](_0x125f28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27f13e,this['_model']['createRange'](_0x19524d['start'],_0x493de5));const _0x578420=_0x109dee(),_0x50f70b=_0x27f13e['creator']['id'],_0x5ae473=_0x27f13e['type']+':'+_0x27f13e['subType'];this['_setSuggestionData']({'id':_0x578420,'type':_0x5ae473,'createdAt':new Date(),'authorId':_0x50f70b,'data':_0x27f13e['data'],'attributes':_0x27f13e['attributes']});const _0x39a574=this['_model']['createPositionAt'](_0x125f28['end']['parent'],'after'),_0x2a84ec=this['_model']['createRange'](_0x39a574,_0x19524d['end']);this['_addSuggestionMarker'](_0x5ae473,_0x578420,_0x50f70b,_0x2a84ec);}else{if(_0x19524d['containsPosition'](_0x125f28['start'])){const _0x5475df=this['_model']['createPositionAt'](_0x125f28['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27f13e,this['_model']['createRange'](_0x19524d['start'],_0x5475df));}else{const _0x46e17c=this['_model']['createPositionAt'](_0x125f28['end']['parent'],'after');this['_setSuggestionRange'](_0x27f13e,this['_model']['createRange'](_0x46e17c,_0x19524d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4c2a1a){for(const {suggestion:_0x4a13f3,meta:_0x27da3f}of this['_findSuggestions'](_0x4c2a1a,'insertion')){if(!_0x27da3f['isOwn'])continue;const _0x1932f8=_0x4a13f3['getRanges']();for(const _0x8c5739 of _0x1932f8)if(!_0x4c2a1a['getDifference'](_0x8c5739)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4f322d){const _0x16d854=this['editor']['plugins']['get']('Users')['getUser'](_0x4f322d);if(!_0x16d854)throw new _0x46c804('track-changes-user-not-found',this);return _0x16d854;}['_getExternalAuthor'](_0xbe7868){const _0x24f077=this['editor']['plugins']['get']('Users'),_0x595751=_0x37c233('external:'+_0xbe7868),_0x3548d2=_0x24f077['getUser'](_0x595751);return _0x3548d2||_0x24f077['addUser']({'id':_0x595751,'name':_0xbe7868});}['_createSuggestion'](_0x54c6c2,_0x5a626e,_0x4dd649,_0x5639cf,_0x57bc17){const _0x54a900=this['_getAuthorFromId'](_0x5639cf),_0xed9c4e=this['_suggestionFactory']['buildSuggestion'](_0x54c6c2,_0x5a626e,_0x4dd649,_0x54a900,_0x57bc17,_0x46e1d8=>{this['_updateSuggestionData'](_0x4dd649,{'attributes':_0x46e1d8});const _0xbc8049=this['getSuggestion'](_0x4dd649);this['_joinWithAdjacentSuggestions'](new Set([_0xbc8049])),this['_refreshSuggestionsChain'](new Set([_0xbc8049]));});return this['listenTo'](_0xed9c4e,'accept',()=>{this['_updateSuggestionData'](_0x4dd649,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xed9c4e,'discard',()=>{this['_updateSuggestionData'](_0x4dd649,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4dd649,_0xed9c4e),this['_suggestionState']['set'](_0xed9c4e,'notReady'),_0xed9c4e;}['_splitMarkerName'](_0x4c29a8){const _0x212881=_0x4c29a8['split'](':');return{'group':_0x212881[0x0],'type':_0x212881[0x1],'subType':_0x212881['length']>=0x5?_0x212881[0x2]:null,'id':_0x212881['length']<0x5?_0x212881[0x2]:_0x212881[0x3],'authorId':_0x212881['length']<0x5?_0x212881[0x3]:_0x212881[0x4],'markerCount':0x6==_0x212881['length']?_0x212881[0x5]:null};}['_breakSuggestionMarker'](_0x79fc85,_0x24f167,_0x48bbc8){const _0x1d50b4=_0x79fc85['getFirstRange'](),_0x1df98c=_0x1d50b4['start'],_0x300bac=_0x1d50b4['end'];this['_setSuggestionRange'](_0x79fc85,this['_model']['createRange'](_0x1df98c,_0x24f167));const _0x3f5b80=_0x109dee(),_0x533c3c=_0x79fc85['creator']['id'],_0x4b8e16=_0x79fc85['type']+(_0x79fc85['subType']?':'+_0x79fc85['subType']:'');this['_setSuggestionData']({'id':_0x3f5b80,'type':_0x4b8e16,'createdAt':new Date(),'authorId':_0x533c3c,'originalSuggestionId':_0x79fc85['id'],'attributes':_0x79fc85['attributes'],'data':_0x79fc85['data']});const _0x2a8fa1=this['_getAttributeKey'](_0x79fc85);('formatBlock'==_0x79fc85['type']||_0x2a8fa1&&this['_isBlockAttribute'](_0x2a8fa1))&&(_0x48bbc8=this['_model']['createPositionBefore'](_0x48bbc8['parent'])),this['_addSuggestionMarker'](_0x4b8e16,_0x3f5b80,_0x533c3c,this['_model']['createRange'](_0x48bbc8,_0x300bac));}['_findSuggestions'](_0x408937,_0x71d9e9=null){const _0x337298=[],_0x4656b2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x408937)||(_0x408937=[_0x408937]);for(const _0x5dd594 of this['getSuggestions']()){if(!_0x5dd594['isInContent'])continue;if(_0x71d9e9&&_0x5dd594['type']!=_0x71d9e9)continue;let _0x760c3e=!0x1;for(const _0x2ae82f of _0x5dd594['getRanges']()){for(const _0x32ca18 of _0x408937){const _0x1de1a6=_0x32ca18['start']['isEqual'](_0x2ae82f['end'])||_0x32ca18['end']['isEqual'](_0x2ae82f['start']);if(_0x1de1a6||_0x32ca18['getIntersection'](_0x2ae82f)){const _0x17abde=_0x32ca18['containsRange'](_0x2ae82f)&&Rt(this['_model']['schema'],_0x2ae82f['start'],_0x32ca18),_0x502768=_0x2ae82f['containsRange'](_0x32ca18)&&Rt(this['_model']['schema'],_0x32ca18['start'],_0x2ae82f);_0x337298['push']({'suggestion':_0x5dd594,'meta':{'isOwn':_0x4656b2==_0x5dd594['author'],'isNextTo':_0x1de1a6,'isInsideObject':_0x17abde,'containsRangeInObject':_0x502768}}),_0x760c3e=!0x0;break;}}if(_0x760c3e)break;}}return _0x337298;}['_addSuggestionMarker'](_0x37178a,_0x35c2dd,_0x3e2c72,_0x33257a,_0xa4a35){this['_model']['change'](_0x3f23ee=>{let _0x43a344='suggestion:'+_0x37178a+':'+_0x35c2dd+':'+_0x3e2c72;_0xa4a35&&(_0x43a344=_0x43a344+':'+_0xa4a35),_0x3f23ee['addMarker'](_0x43a344,{'range':_0x33257a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5c0572){const _0x545e4c=_0x5c0572['previous'],_0x4a4c8b=_0x5c0572['next'];_0x5c0572['previous']=null,_0x5c0572['next']=null,null!=_0x545e4c&&_0x545e4c['next']==_0x5c0572&&(_0x545e4c['next']=_0x4a4c8b),null!=_0x4a4c8b&&_0x4a4c8b['previous']==_0x5c0572&&(_0x4a4c8b['previous']=_0x545e4c),'ready'==this['_suggestionState']['get'](_0x5c0572)&&(this['_suggestionState']['set'](_0x5c0572,'removed'),this['fire']('suggestionUnloaded',_0x5c0572,_0x545e4c,_0x4a4c8b));}['_setSuggestionData'](_0x59ed65){const _0x55bfb2=_0x59ed65['id'],_0x69f496=this['addSuggestionData'](_0x59ed65);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x259139=this['editor']['plugins']['get']('PendingActions'),_0x496a11=_0x69f496['hasComments'],_0x31fb10=_0x69f496['subType']?_0x69f496['type']+':'+_0x69f496['subType']:_0x69f496['type'],_0xa9f1a8=this['editor']['locale'],_0x5726f2=_0x259139['add'](o(_0xa9f1a8,'PENDING_ACTION_SUGGESTION')),_0x350124={'id':_0x55bfb2,'type':_0x31fb10,'hasComments':_0x496a11,'data':_0x59ed65['data']||null,'originalSuggestionId':_0x59ed65['originalSuggestionId']||null,'attributes':_0x69f496['attributes']};this['_adapter']['addSuggestion'](_0x350124)['then'](_0x186aa4=>{_0x69f496['_saved']=!0x0,_0x259139['remove'](_0x5726f2),_0x186aa4&&_0x186aa4['createdAt']&&(this['_suggestions']['get'](_0x55bfb2)['createdAt']=_0x186aa4['createdAt']);})['catch'](_0x194403=>{throw _0x27ca85('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x69f496['discard']();}),_0x69f496['stopListening'](),this['_suggestions']['delete'](_0x69f496['id']),this['_suggestionState']['delete'](_0x69f496),_0x194403;});}return _0x69f496;}['_isBlockAttribute'](_0x250707){return this['_blockAttributeKeys']['has'](_0x250707);}['_updateSuggestionData'](_0x2702e7,_0x3b8867){const _0x3b1031=this['editor']['plugins']['get']('PendingActions'),_0x48e90b=this['getSuggestion'](_0x2702e7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x48e90b['_saved']){const _0x17aeb6=_0x3b1031['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2702e7,_0x3b8867)['then'](()=>{_0x3b1031['remove'](_0x17aeb6);});}else _0x48e90b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2702e7,_0x3b8867);});}}['_getSuggestionData'](_0x5d5111){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x46c804('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5d5111);}['_handleNewSuggestionMarker'](_0x435a4d){const {id:_0x4fdbaa,type:_0x595f59,subType:_0xd95109,authorId:_0x509f41}=this['_splitMarkerName'](_0x435a4d),_0x563b75=this['_suggestions']['get'](_0x4fdbaa)||this['_createSuggestion'](_0x595f59,_0xd95109,_0x4fdbaa,_0x509f41,{});switch(this['_checkSuggestionCorrectness'](_0x563b75,_0x595f59,_0xd95109,_0x509f41),this['_suggestionState']['get'](_0x563b75)){case'notReady':this['_getSuggestionData'](_0x4fdbaa)['then'](_0xaae0ac=>{let _0x5210dc=Promise['resolve']();_0xaae0ac['hasComments']&&(_0x5210dc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4fdbaa})),_0x5210dc['then'](()=>{this['addSuggestionData'](_0xaae0ac)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x563b75,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4fdbaa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x563b75,'ready'),this['fire']('suggestionLoaded',_0x563b75);break;case'ready':this['fire']('suggestionChanged',_0x563b75);}return _0x563b75['addMarkerName'](_0x435a4d),_0x563b75;}['_refreshSuggestionsChain'](_0x9b6efe){const _0x4167f2=Array['from'](_0x9b6efe),_0x148df7=_0x4167f2['filter'](_0x5e50c8=>'attribute'==_0x5e50c8['type']);this['_refreshAttributeSuggestionsChain'](_0x148df7);const _0x62338b=_0x4167f2['filter'](_0x2f56bf=>!_0x2f56bf['isMultiRange']&&'attribute'!=_0x2f56bf['type']),_0x4ce596=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53b6a5=>!_0x53b6a5['isMultiRange']&&'attribute'!=_0x53b6a5['type']),_0x139f2f=_0x4ce596['filter'](_0x3a3b6a=>!_0x9b6efe['has'](_0x3a3b6a)),_0x588689=new Map(_0x4ce596['map'](_0x211d8f=>[_0x211d8f,this['_suggestionFactory']['getSuggestionCallback'](_0x211d8f['type'],_0x211d8f['subType'],'chain')])),_0xeb8367=new Map(_0x4ce596['map'](_0x87be14=>[_0x87be14,_0x87be14['getFirstRange']()])),_0x5adc66=new Set(),_0x4b2e71=new Set();for(let _0x39216c=0x0;_0x39216c<_0x62338b['length'];_0x39216c++)_0x27b92e(_0x62338b[_0x39216c],_0x62338b,_0x39216c+0x1);for(let _0x43f7c9=0x0;_0x43f7c9<_0x62338b['length'];_0x43f7c9++)_0x27b92e(_0x62338b[_0x43f7c9],_0x139f2f,0x0);const _0x19bce2=new Set();for(let _0x202aa6=0x0;_0x202aa6<_0x62338b['length'];_0x202aa6++){const _0x3ae37=_0x62338b[_0x202aa6];!_0x4b2e71['has'](_0x3ae37)&&_0x3ae37['previous']&&(_0x19bce2['add'](_0x3ae37['previous']),_0x3ae37['previous']['next']===_0x3ae37&&(_0x3ae37['previous']['next']=null),_0x3ae37['previous']=null),!_0x5adc66['has'](_0x3ae37)&&_0x3ae37['next']&&(_0x19bce2['add'](_0x3ae37['next']),_0x3ae37['next']['previous']===_0x3ae37&&(_0x3ae37['next']['previous']=null),_0x3ae37['next']=null);}function _0x27b92e(_0x4b21fc,_0x2b3812,_0x3eaea7){for(let _0x29103d=_0x3eaea7;_0x29103d<_0x2b3812['length'];_0x29103d++){const _0x3121c9=_0x221055(_0x4b21fc,_0x2b3812[_0x29103d]);_0x3121c9&&(_0x3121c9[0x0]['next']=_0x3121c9[0x1],_0x3121c9[0x1]['previous']=_0x3121c9[0x0],_0x5adc66['add'](_0x3121c9[0x0]),_0x4b2e71['add'](_0x3121c9[0x1]));}}function _0x221055(_0x5757d2,_0x275463){if(_0x5757d2['author']['id']!==_0x275463['author']['id'])return null;const _0x1c7625=_0x588689['get'](_0x5757d2)(_0x5757d2,_0x275463,_0xeb8367['get'](_0x5757d2),_0xeb8367['get'](_0x275463));if(!_0x1c7625)return null;return _0x588689['get'](_0x275463)(_0x5757d2,_0x275463,_0xeb8367['get'](_0x5757d2),_0xeb8367['get'](_0x275463))?_0x1c7625[0x1]['commentThread']&&_0x1c7625[0x1]['commentThread']['length']?null:_0x1c7625:null;}_0x19bce2['size']&&this['_refreshSuggestionsChain'](_0x19bce2);}['_refreshAttributeSuggestionsChain'](_0x4e77b7){if(0x0==_0x4e77b7['length'])return;const _0x11b79b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5db6e4=>'attribute'==_0x5db6e4['type']&&_0x5db6e4['_isDataLoaded']),_0x2262d9=[],_0x2f7191=new Map();for(const _0x351d9b of _0x11b79b){const _0x4e4dfb=_0x37c233(_0x351d9b['attributes']);_0x2f7191['has'](_0x4e4dfb)||(_0x2f7191['set'](_0x4e4dfb,_0x2262d9['length']),_0x2262d9['push']([]));const _0x1e7952=_0x2f7191['get'](_0x4e4dfb);_0x2262d9[_0x1e7952]['push'](_0x351d9b);}!(function(){_0x2262d9['sort']((_0xbd2661,_0x1c53cb)=>{const _0x351400=_0xbd2661[0x0]['createdAt'],_0x156cac=_0x1c53cb[0x0]['createdAt'];return _0x351400==_0x156cac?_0xbd2661[0x0]['attributes']['groupId']<_0x1c53cb[0x0]['attributes']['groupId']?-0x1:0x1:_0x351400<_0x156cac?-0x1:0x1;});for(const _0x2fb025 of _0x2262d9)_0x2fb025['sort']((_0x2b9174,_0x3bd75e)=>_0x2b9174['id']<_0x3bd75e['id']?-0x1:0x1);}());for(let _0x1caa2a=0x0;_0x1caa2a<_0x2262d9['length'];_0x1caa2a++){if(0x0==_0x2262d9[_0x1caa2a]['length'])continue;const _0x50523a=[];for(let _0x4eff91=_0x1caa2a+0x1;_0x4eff91<_0x2262d9['length'];_0x4eff91++)0x0!=_0x2262d9[_0x4eff91]['length']&&_0xc89c08(_0x2262d9[_0x1caa2a],_0x2262d9[_0x4eff91])&&_0x50523a['push'](_0x4eff91);for(const _0x5f17a3 of _0x50523a)_0x2262d9[_0x1caa2a]=_0x2262d9[_0x1caa2a]['concat'](_0x2262d9[_0x5f17a3]),_0x2262d9[_0x5f17a3]=[];}for(const _0x1e855c of _0x2262d9)for(let _0x3ad176=0x0;_0x3ad176<_0x1e855c['length'];_0x3ad176++)_0x1e855c[_0x3ad176]['next']=_0x1e855c[_0x3ad176+0x1]||null;for(const _0x2773c2 of _0x2262d9)for(let _0xedc940=0x0;_0xedc940<_0x2773c2['length'];_0xedc940++)_0x2773c2[_0xedc940]['previous']=_0x2773c2[_0xedc940-0x1]||null;function _0xc89c08(_0x4877c8,_0x2f9b73){if(_0x4877c8[0x0]['attributes']['groupId']!==_0x2f9b73[0x0]['attributes']['groupId']&&_0x4877c8[0x0]['author']!==_0x2f9b73[0x0]['author'])return!0x1;if(!function(_0x1fd831,_0x4c2ef9){if(!_0x1fd831['hasComments']&&!_0x4c2ef9['hasComments'])return!0x0;if(_0x1fd831['hasComments']&&_0x4c2ef9['hasComments'])return!0x1;if(_0x1fd831['hasComments']&&_0x4c2ef9['createdAt']<_0x1fd831['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4c2ef9['hasComments']&&_0x1fd831['createdAt']<_0x4c2ef9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4877c8[0x0],_0x2f9b73[0x0]))return!0x1;const _0x36dc59=Bt(_0x4877c8[0x0]['attributes'],'groupId'),_0x175918=Bt(_0x2f9b73[0x0]['attributes'],'groupId');if(!_0xa08454(_0x36dc59,_0x175918))return!0x1;return!!_0x4877c8['every'](_0x1977ea=>_0x2f9b73['some'](_0x45d404=>_0x1977ea['getFirstRange']()['isEqual'](_0x45d404['getFirstRange']())))&&_0x2f9b73['every'](_0x16db89=>_0x4877c8['some'](_0x5960dc=>_0x16db89['getFirstRange']()['isEqual'](_0x5960dc['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5c4cbc){const _0x3879ee=Array['from'](_0x5c4cbc),_0x3b4a3f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x203ceb=_0x3b4a3f['filter'](_0x16bca8=>!_0x5c4cbc['has'](_0x16bca8)),_0x222415=new Map(_0x3879ee['map'](_0x47036b=>[_0x47036b,this['_suggestionFactory']['getSuggestionCallback'](_0x47036b['type'],_0x47036b['subType'],'join')])),_0x50115d=new Map(_0x3b4a3f['map'](_0x1b269a=>[_0x1b269a,_0x1b269a['getRanges']()]));for(let _0x5afc9a=0x0;_0x5afc9a<_0x3879ee['length'];_0x5afc9a++){if(_0x32a834(this,_0x3879ee[_0x5afc9a],_0x3879ee,_0x5afc9a+0x1))return!0x0;}for(let _0x58383d=0x0;_0x58383d<_0x3879ee['length'];_0x58383d++){if(_0x32a834(this,_0x3879ee[_0x58383d],_0x203ceb,0x0))return!0x0;}return!0x1;function _0x32a834(_0x1b208d,_0x3434ca,_0x40cad0,_0x374700){for(let _0x3dc61b=_0x374700;_0x3dc61b<_0x40cad0['length'];_0x3dc61b++){const _0x59754f=_0x40cad0[_0x3dc61b];if(_0x59754f['type']!==_0x3434ca['type']||_0x59754f['author']['id']!==_0x3434ca['author']['id']||_0x59754f['subType']!==_0x3434ca['subType'])continue;if(!Pt(_0x3434ca,_0x59754f,['groupId']))continue;if('attribute'==_0x3434ca['type']&&_0x3434ca['data']['oldValue']!=_0x59754f['data']['oldValue'])continue;if('attribute'==_0x3434ca['type']&&_0x1b208d['_isBlockAttribute'](_0x3434ca['data']['key']))continue;if('formatBlock'==_0x3434ca['type']){const _0x1ad76d=_0x1b208d['editor']['model'],_0x186e1d=_0x3434ca['getContainedElement']();if(_0x186e1d&&(_0x1ad76d['schema']['isObject'](_0x186e1d)||_0x1ad76d['schema']['isLimit'](_0x186e1d)))continue;}const _0x2d46ae=_0x222415['get'](_0x3434ca),_0x13900a=_0x50115d['get'](_0x3434ca),_0xc61f4c=_0x50115d['get'](_0x59754f),_0xb128c7=_0x3434ca['commentThread']&&_0x3434ca['commentThread']['length'],_0x569f3d=_0x59754f['commentThread']&&_0x59754f['commentThread']['length'];if(!_0xb128c7&&_0x2d46ae(_0xc61f4c,_0x13900a))return _0x1b208d['_joinSuggestions'](_0x59754f,_0x3434ca),_0x50115d['delete'](_0x3434ca),!0x0;if(!_0x569f3d&&_0x2d46ae(_0x13900a,_0xc61f4c))return _0x1b208d['_joinSuggestions'](_0x3434ca,_0x59754f),_0x50115d['delete'](_0x59754f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3a7588,_0x1bfdbe){if(_0x3a7588['isMultiRange']){for(const _0x403805 of _0x1bfdbe['getRanges']())_0x3a7588['addRange'](_0x403805);}else{const _0x3800f7=_0x1bfdbe['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3a7588,this['_model']['createRange'](_0x3a7588['getFirstRange']()['start'],_0x3800f7));}_0x1bfdbe['removeMarkers']();}['_getMarkerAnnouncementText'](_0x18cf04,_0xa92baf){const _0x345449=_0x18cf04['startsWith']('format')||_0x18cf04['startsWith']('attribute')?'FORMATTING':_0x18cf04['toUpperCase']();return o(this['editor']['locale'],_0xa92baf+'_'+_0x345449+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5db762=this['editor'];if(!_0x5db762['ui'])return;const {ariaLiveAnnouncer:_0x172dbf}=_0x5db762['ui'];_0x751978(this['_model'],({left:_0x496691,entered:_0x1711e8})=>{for(const _0x18f442 of _0x496691){const {group:_0x24bfb3,type:_0xb5c064}=this['_splitMarkerName'](_0x18f442['name']);if('suggestion'===_0x24bfb3){_0x172dbf['announce'](this['_getMarkerAnnouncementText'](_0xb5c064,'LEAVE'));break;}}for(const _0x557649 of _0x1711e8){const {group:_0x50d7d3,type:_0x4dd07b}=this['_splitMarkerName'](_0x557649['name']);if('suggestion'===_0x50d7d3){_0x172dbf['announce'](this['_getMarkerAnnouncementText'](_0x4dd07b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x51264c){if(this['_recordAttributeSuggestions'])return!0x1;const _0xad00ef=this['editor'],_0x13b49c=_0xad00ef['model']['document']['differ']['getChanges']();if(0x0==_0x13b49c['length'])return!0x1;const _0xee7be8=[],_0x21cb2a=_0x13b49c['filter'](_0x11ab4d=>'attribute'==_0x11ab4d['type']),_0x27d6c6=_0x13b49c['filter'](_0x955653=>'insert'==_0x955653['type']&&'$text'!=_0x955653['name']),_0x30eeae=_0x13b49c['filter'](_0x3a9567=>'remove'==_0x3a9567['type']&&'$text'!=_0x3a9567['name']);for(const _0x573466 of _0x21cb2a)_0xee7be8['push']({'key':_0x573466['attributeKey'],'newValue':_0x573466['attributeNewValue'],'oldValue':_0x573466['attributeOldValue'],'range':Ot(_0x573466['range'],_0xad00ef['model'])});for(const _0x511703 of _0x27d6c6){const _0x7ced9e=_0x30eeae['find'](_0x32c04a=>_0x32c04a['position']['isEqual'](_0x511703['position']));_0x7ced9e&&_0xee7be8['push']({'key':m,'newValue':_0x511703['name'],'oldValue':_0x7ced9e['name'],'range':_0xad00ef['model']['createRangeOn'](_0x511703['position']['nodeAfter'])});}return 0x0!=_0xee7be8['length']&&this['_reduceExistingSuggestions'](_0x51264c,_0xee7be8);}['_processAttributeSuggestions'](_0x5985cf){let _0x41b52f=!0x1;const _0x11f5e9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x200a4b=>_0x200a4b['data']['newRange']&&_0x200a4b['name']['startsWith']('suggestion:attribute:'));for(const _0x388f5a of _0x11f5e9){const {subType:_0x129824,id:_0x492a04}=this['_splitMarkerName'](_0x388f5a['name']),_0x5106a3=_0x129824['split']('|')[0x0];for(const _0x5ee161 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5ee161['id']!=_0x492a04&&'attribute'==_0x5ee161['type']&&_0x5ee161['data']&&_0x5ee161['data']['key']==_0x5106a3&&_0x5ee161['getFirstRange']()['isIntersecting'](_0x388f5a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5ee161,_0x388f5a['data']['newRange'],_0x5985cf),_0x41b52f=!0x0);}return _0x41b52f;}['_recordAttributeChanges'](_0x331a85){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x331a85();}['_isRegisteredAttribute'](_0x6d92b2){const _0x5ab6e8=this['_isBlockAttribute'](_0x6d92b2),_0x2e2bbb=this['_inlineAttributeKeys']['has'](_0x6d92b2);return _0x5ab6e8||_0x2e2bbb;}['_reduceExistingSuggestions'](_0x31a683,_0x2ba4cf){if(0x0==_0x2ba4cf['length'])return!0x1;let _0x54cfdd=!0x1;for(const _0x4554a0 of _0x2ba4cf){const _0x392413=this['_findSuggestions'](_0x4554a0['range'],'attribute')['filter'](_0x55fa96=>!_0x55fa96['meta']['isNextTo'])['map'](_0x178af0=>_0x178af0['suggestion']),_0xda8b00=_0x37c233({'newValue':_0x4554a0['newValue']});_0x392413['filter'](_0x1c2fdf=>{const [_0x31cfd6,_0x5d3ec7]=_0x1c2fdf['subType']['split']('|');return _0x31cfd6==_0x4554a0['key']&&_0x5d3ec7!=_0xda8b00;})['forEach'](_0x5232a5=>{this['_reduceSuggestionAttributeRange'](_0x5232a5,_0x4554a0['range'],_0x31a683),_0x54cfdd=!0x0;});}return _0x54cfdd;}['_reduceSuggestionAttributeRange'](_0x4cce7e,_0x17ea5a,_0x58f017){const _0x18c7ea=_0x4cce7e['getFirstRange']()['getDifference'](_0x17ea5a);0x0!==_0x18c7ea['length']?0x1!==_0x18c7ea['length']?this['_breakSuggestionMarker'](_0x4cce7e,_0x17ea5a['start'],_0x17ea5a['end']):this['_setSuggestionRange'](_0x4cce7e,_0x18c7ea[0x0]):_0x58f017['removeMarker'](_0x4cce7e['getFirstMarker']());}constructor(_0xc8d2b2){function _0xadd9ef(_0x2c9402){return _0x2c9402['map'](_0x31f30c=>String['fromCharCode'](_0x31f30c))['join']('');}super(_0xc8d2b2),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x370e27,_0x171dee,_0x366070,_0x26a58b)=>{this['_model']['change'](()=>{for(const _0x5dbcb2 of[..._0x26a58b,..._0x366070])this['_model']['markers']['has'](_0x5dbcb2)&&_0xc8d2b2['editing']['reconvertMarker'](_0x5dbcb2);});}),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']=_0xc8d2b2['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(),_0xc8d2b2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xc8d2b2['config']['get']('trackChanges.trackFormatChanges'),_0xc8d2b2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xc8d2b2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0xc8d2b2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xadd9ef([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xadd9ef([0x34,0x30,0x34,0x38,0x31,0x30,0x30,0x32]);}}class xt{['buildSuggestion'](_0x219d0c,_0x30905f,_0x259f59,_0x2136aa,_0x5c1c25,_0x37db26){return new u(this['_model'],{'type':_0x219d0c,'subType':_0x30905f,'id':_0x259f59,'author':_0x2136aa,'creator':_0x2136aa,'attributes':_0x5c1c25,'onAttributesChange':_0x37db26,'onAccept':(..._0x3de1ce)=>this['getSuggestionCallback'](_0x219d0c,_0x30905f,'accept')(..._0x3de1ce),'onDiscard':(..._0x2ea97c)=>this['getSuggestionCallback'](_0x219d0c,_0x30905f,'discard')(..._0x2ea97c)});}['registerCustomCallback'](_0x402e49,_0x2b0ab9,_0x2dfb68,_0x4141d0){const _0x5ad1ef=_0x402e49+':'+_0x2b0ab9+':'+_0x2dfb68;this['_customCallbacks']['set'](_0x5ad1ef,_0x4141d0);}['getSuggestionCallback'](_0x21c588,_0x41bb33,_0x2ad785){const _0x1a0742=_0x21c588+':'+_0x41bb33+':'+_0x2ad785;return this['_customCallbacks']['get'](_0x1a0742)||this['_defaultCallbacks']['get'](_0x21c588+':'+_0x2ad785);}['_registerDefaultCallbacks'](){const _0x5cf3bd=()=>!0x1,_0x1ca2eb=_0x505678=>{_0x505678['sort']((_0x2c3eac,_0x522d7d)=>_0x2c3eac['start']['isBefore'](_0x522d7d['start'])?0x1:-0x1),this['_model']['change'](_0x56f53b=>{for(const _0x39b230 of _0x505678){let _0x3ce097;_0x3ce097=_0x39b230['end']['isAtEnd']&&_0x39b230['end']['parent']==_0x39b230['start']['nodeAfter']?_0x56f53b['createSelection'](_0x39b230['start']['nodeAfter'],'on'):_0x56f53b['createSelection'](_0x39b230),this['_model']['deleteContent'](_0x3ce097,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4cda36=(_0x3a10ae,_0x538b9b)=>{_0x538b9b&&this['_model']['change'](_0x3a2c1b=>{const {commandName:_0x165fec,commandParams:_0x57468c=[]}=_0x538b9b,_0xa3491=_0x3a10ae['map'](_0xe12609=>(Tt(_0xe12609)&&(_0xe12609=this['_model']['createRange'](_0xe12609['end'])),_0xe12609))['filter'](_0x432db7=>'$graveyard'!==_0x432db7['root']['rootName']);if(_0xa3491['length']<0x1)return;const _0xe00177=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x500f8f=>_0x43239f['fromRange'](_0x500f8f));_0x3a2c1b['setSelection'](_0xa3491);for(const _0x1904c2 of this['_editor']['commands']['commands']())_0x1904c2['refresh']();_0x57468c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x165fec,..._0x57468c);const _0x2946f0=_0xe00177['filter'](_0x41c0aa=>'$graveyard'!=_0x41c0aa['root']['rootName']);_0x2946f0['length']>0x0&&_0x3a2c1b['setSelection'](_0x2946f0);for(const _0x1e84d4 of _0xe00177)_0x1e84d4['detach']();});},_0x1a5c0a=(_0x179812,_0x3d4546)=>0x1==_0x179812['length']&&0x1==_0x3d4546['length']&&_0x179812[0x0]['end']['isEqual'](_0x3d4546[0x0]['start']),_0x9031e7=(_0x34beef,_0x56e00d,_0x4e4793,_0x235b50)=>Gt(_0x34beef,_0x56e00d,_0x4e4793,_0x235b50,this['_model'])?[_0x34beef,_0x56e00d]:Gt(_0x56e00d,_0x34beef,_0x235b50,_0x4e4793,this['_model'])?[_0x56e00d,_0x34beef]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5cf3bd),this['_defaultCallbacks']['set']('insertion:discard',_0x1ca2eb),this['_defaultCallbacks']['set']('insertion:join',_0x1a5c0a),this['_defaultCallbacks']['set']('insertion:chain',_0x9031e7),this['_defaultCallbacks']['set']('deletion:accept',_0x1ca2eb),this['_defaultCallbacks']['set']('deletion:discard',_0x5cf3bd),this['_defaultCallbacks']['set']('deletion:join',_0x1a5c0a),this['_defaultCallbacks']['set']('deletion:chain',_0x9031e7),this['_defaultCallbacks']['set']('formatInline:accept',_0x4cda36),this['_defaultCallbacks']['set']('formatInline:discard',_0x5cf3bd),this['_defaultCallbacks']['set']('formatInline:join',_0x1a5c0a),this['_defaultCallbacks']['set']('formatInline:chain',_0x5cf3bd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4cda36),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5cf3bd),this['_defaultCallbacks']['set']('formatBlock:join',_0x1a5c0a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5cf3bd),this['_defaultCallbacks']['set']('attribute:accept',_0x5cf3bd),this['_defaultCallbacks']['set']('attribute:discard',(_0x22b07f,_0xf03854)=>{if(!_0xf03854)return;const _0x4a7236=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xd4b3ed=>{if(_0xf03854['key']==m)for(const _0x5c8350 of _0x22b07f){const _0x45f849=_0x5c8350['start']['nodeAfter'],_0x377721=_0xf03854['oldValue'];_0xd4b3ed['rename'](_0x45f849,_0x377721);}else{if(_0x4a7236['_isBlockAttribute'](_0xf03854['key'])){for(const _0x500426 of _0x22b07f)void 0x0!==_0xf03854['oldValue']?_0xd4b3ed['setAttribute'](_0xf03854['key'],_0xf03854['oldValue'],_0x500426['start']['nodeAfter']):_0xd4b3ed['removeAttribute'](_0xf03854['key'],_0x500426['start']['nodeAfter']);}else{for(const _0xfd69d6 of _0x22b07f)_0xf03854['oldValue']?_0xd4b3ed['setAttribute'](_0xf03854['key'],_0xf03854['oldValue'],_0xfd69d6):_0xd4b3ed['removeAttribute'](_0xf03854['key'],_0xfd69d6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1a5c0a);}constructor(_0x328864){this['_editor']=_0x328864,this['_model']=_0x328864['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x1e1144,_0x185aa1,_0x191765){for(const _0x49f45d of _0x185aa1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x49f45d['root']==_0x49f45d)return!0x1;if(!_0x191765['containsItem'](_0x49f45d))return!0x1;if(_0x1e1144['isObject'](_0x49f45d)||_0x1e1144['isLimit'](_0x49f45d))return!0x0;}return!0x1;}function Tt(_0x5f3522){return _0x5f3522['end']['parent']==_0x5f3522['start']['nodeAfter']&&_0x5f3522['end']['isAtStart'];}function Et(_0x2eca79,_0x4e5a98,_0x1096b6,_0x31fa7a){const _0x3c11eb=_0x24eb0d=>!_0x24eb0d['item']['is']('$textProxy')&&!_0x31fa7a['isObject'](_0x24eb0d['item']),_0x1edd86=_0x2eca79['start']['getLastMatchingPosition'](_0x3c11eb),_0x3f8284=_0x2eca79['end']['getLastMatchingPosition'](_0x3c11eb,{'direction':'backward'});return(!_0x2eca79['start']['isEqual'](_0x1edd86)||!_0x2eca79['end']['isEqual'](_0x3f8284))&&(_0x1edd86['isBefore'](_0x3f8284)?_0x1096b6['updateMarker'](_0x4e5a98,{'range':_0x1096b6['createRange'](_0x1edd86,_0x3f8284)}):_0x1096b6['removeMarker'](_0x4e5a98),!0x0);}function Vt(_0x9f3c7e){return _0x37c233(_0x9f3c7e);}function Ut(_0x4ce002){const _0x4c63d4=_0x4ce002['start']['nodeAfter'];return _0x4c63d4&&_0x4c63d4['is']('element');}function Ot(_0x4cd3b4,_0xbfd573){return null==_0x4cd3b4['end']['nodeBefore']&&_0x4cd3b4['end']['parent']==_0x4cd3b4['start']['nodeAfter']?Ft(_0x4cd3b4['start']['nodeAfter'],_0xbfd573):_0x4cd3b4;}function Ft(_0x5cef1b,_0x54739a){const _0x51f8d3=_0x54739a['schema']['isObject'](_0x5cef1b)||_0x54739a['schema']['isSelectable'](_0x5cef1b);return _0x54739a['createRange'](_0x54739a['createPositionAt'](_0x5cef1b,'before'),_0x51f8d3?_0x54739a['createPositionAfter'](_0x5cef1b):_0x54739a['createPositionAt'](_0x5cef1b,'end'));}function Gt(_0x3bcf23,_0x541904,_0x3d6def,_0x5329da,_0x4f866a){if(!Pt(_0x3bcf23,_0x541904))return!0x1;if(_0x3d6def['end']['isEqual'](_0x5329da['start']))return!0x0;if(_0x3bcf23['type']!=_0x541904['type'])return!0x1;if(!_0x3d6def['end']['isTouching'](_0x5329da['start']))return!0x1;const _0x5c45a6=_0x4f866a['createRange'](_0x3d6def['end'],_0x5329da['start'])['getWalker']();for(const _0x42b515 of _0x5c45a6)if(['elementStart','elementEnd']['includes'](_0x42b515['type'])&&_0x4f866a['schema']['isLimit'](_0x42b515['item']))return!0x1;return!0x0;}function Pt(_0x1b9171,_0x3b985f,_0x2a92da=[]){return!(!_0x1b9171['_isDataLoaded']||!_0x3b985f['_isDataLoaded'])&&_0xa08454(Bt(_0x1b9171['attributes'],_0x2a92da),Bt(_0x3b985f['attributes'],_0x2a92da));}function Lt(_0x3a0a18,_0x489b0c){const _0x45fc6f=Ht(_0x3a0a18['attributes']),_0x44f586=Ht(_0x489b0c);if(!_0x3a0a18['_isDataLoaded'])return!0x1;for(const _0x3382f7 of Object['keys'](_0x44f586))if(!_0xa08454(_0x45fc6f[_0x3382f7],_0x44f586[_0x3382f7]))return!0x1;return!0x0;}function Ht(_0x4cdf2c){const _0x2b23e8=Object['assign']({},_0x4cdf2c);return delete _0x2b23e8['skipNestingCheck'],delete _0x2b23e8['tablePasteChainId'],_0x2b23e8;}class oe extends _0x229435(){['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 _0x1c724f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1c724f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x4c0843,_0x4903fd,_0x5d3fae,_0x2f6265){super(),this['model']=_0x4903fd,this['view']=_0x5d3fae,this['commentThreadController']=_0x2f6265,this['_editor']=_0x4c0843,this['_acceptCommand']=_0x4c0843['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4c0843['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3a6051,_0xbcfab9)=>_0x3a6051||_0xbcfab9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xcddff6=>_0xcddff6&&this['_editor']['model']['canEditAt'](_0x4903fd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3c887d=>_0x3c887d&&this['_editor']['model']['canEditAt'](_0x4903fd['getRanges']())),this['_pendingAction']=null,_0x5d3fae['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5d3fae,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5d3fae,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5d3fae,'change:isDirty',()=>{_0x5d3fae['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x4bb07a{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5069cb}=this['_config'];this['commentsListView']=new _0x5069cb(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',_0x20cdcb=>_0x20cdcb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x29b9a1,_0x5cb996)=>_0x29b9a1||!!_0x5cb996);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2c8f76}=this['_config'],_0x801f0c=new _0x2c8f76(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3fc3c1=_0x801f0c['commentInputView'];return _0x801f0c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3fc3c1,'value',(_0x227ebd,_0x18eca1,_0x5ca685)=>!!_0x5ca685||_0x227ebd&&!_0x18eca1),_0x3fc3c1['on']('submit',(_0x5d8cc7,_0x10cdab)=>{this['fire']('addComment',_0x10cdab),_0x3fc3c1['editor']['setData']('');}),_0x3fc3c1['on']('cancel',()=>this['focus']()),_0x3fc3c1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x801f0c;}constructor(_0x4c847c,_0x1579e7,_0x20d4b6,_0x18e55a){super(_0x4c847c),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x1579e7['authoredAt']),this['bind']('authoredAt')['to'](_0x1579e7),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x1579e7,this['_localUser']=_0x20d4b6,this['_config']=_0x18e55a,_0x18e55a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x5cb772=this['bindTemplate'],_0x4ad4dc=[{'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':_0x5cb772['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5cb772['to']('authoredAt',_0x5473e6=>this['_config']['formatDateTime'](_0x5473e6))}]}]},{'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']&&_0x4ad4dc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x16c56d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5cb772['if']('isActive','ck-suggestion-wrapper--active'),_0x5cb772['to']('type',_0x350f9e=>'ck-suggestion-'+_0x350f9e),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':_0x4ad4dc}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x16c56d['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)),_0x16c56d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1169b0,_0x571730,_0xf1b04d)=>{this['_descriptionElement']['innerHTML']=_0xf1b04d;});}['_createButton'](_0x5948dc,_0x25d26a,_0x449fac,_0x1f6071,_0x377aae){const _0x58c310=new _0x1c8755(this['locale']);return _0x58c310['set']({'label':_0x5948dc,'icon':_0x25d26a,'tooltip':!0x0,'tooltipPosition':_0x377aae}),_0x58c310['extendTemplate']({'attributes':{'class':_0x449fac}}),_0x58c310['on']('execute',()=>{this['fire'](_0x1f6071,this['_model']['id']);}),_0x58c310;}['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(_0x7f1be5,_0x24d66d,_0x302c6d,_0x48197a){super(_0x7f1be5,_0x24d66d,_0x302c6d,_0x48197a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4621f6=>_0x4621f6&&_0x4621f6[0x0]?_0x4621f6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xfa9f7,_0x54c806)=>{let _0x520cc8='';for(const _0x1ae310 of _0xfa9f7)_0x520cc8+='<p>'+ds(_0x1ae310['content'],_0x1ae310['color'])+'</p>';return _0x54c806?_0x520cc8:_0x2519d9(_0x520cc8,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x7f1be5,'Accept\x20suggestion'),_0x18221a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x7f1be5,'Discard\x20suggestion'),_0x18221a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x26a901(_0x7f1be5,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x1465a4,_0x1bf9a3){let _0x501da5='';return _0x501da5+=_0x1465a4['split']('*')['map']((_0xc77ae,_0x2bedf6)=>_0x2bedf6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xc77ae)+'</span>':us(_0xc77ae))['join'](''),_0x1bf9a3&&(_0x501da5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1bf9a3['value']+'\x22\x20title=\x22'+_0x1bf9a3['title']+'\x22></span>'),_0x501da5;}function us(_0x37d031){const _0x595900=document['createElement']('span');return _0x595900['innerText']=_0x37d031,_0x595900['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 _0x1e79ec{static get['requires'](){return[p,_0x15e88b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x4ab6bd,_0x21f918){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x36db88,_0xd24bcf]of this['_handleControllerBuffer']){const _0x216212=this['_suggestionToController']['has'](_0x36db88);_0x216212||_0xd24bcf?_0x216212&&_0xd24bcf&&this['_destroyController'](_0x36db88):this['_initializeController'](_0x36db88);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4ab6bd,_0x21f918);}['init'](){const _0x3d67af=this['editor'],_0x13b70f=_0x3d67af['plugins']['get']('TrackChangesEditing'),_0x5db6ca=_0x3d67af['plugins']['get']('Annotations'),_0x24cd5f=_0x3d67af['plugins']['get']('EditorAnnotations'),_0x27be98=_0x3d67af['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x24cd5f['addSourceCollector'](()=>{const _0x48f821=[];for(const [_0x3d6e3e,_0x1b7472]of Array['from'](this['_suggestionToController'])){const _0x56edc3=_0x3d6e3e['getAllAdjacentSuggestions'](),_0x1cbcf6=[];for(const _0x65d0db of _0x56edc3){if(!_0x65d0db['isInContent'])continue;if(_0x65d0db['isMultiRange']){_0x1cbcf6['push'](..._0x65d0db['getRanges']());continue;}const _0x4fe8b3=_0x65d0db['getFirstRange']();if(_0x1cbcf6['length']>0x0){const _0x5db09d=_0x1cbcf6[0x0]['getJoined'](_0x4fe8b3);if(_0x5db09d){_0x1cbcf6[0x0]=_0x5db09d;continue;}}_0x1cbcf6['push'](_0x4fe8b3);}_0x48f821['push']([_0x1b7472['view'],_0x1cbcf6]);}return _0x48f821;}),this['listenTo'](_0x13b70f,'suggestionLoaded',(_0x1d736b,_0x2d3f5a)=>{this['listenTo'](_0x2d3f5a,'change:previous',(_0x5e7f4a,_0x46450e,_0x5da201,_0x45c297)=>{_0x2d3f5a['isInContent']&&(null==_0x5da201?(this['_updateController'](_0x45c297['head']),this['_handleSuggestionControllerDelayed'](_0x2d3f5a,!0x1)):(this['_updateController'](_0x5da201['head']),null==_0x45c297&&this['_handleSuggestionControllerDelayed'](_0x2d3f5a,!0x0)));}),null!==_0x2d3f5a['previous']?this['_updateController'](_0x2d3f5a['head']):this['_handleSuggestionControllerDelayed'](_0x2d3f5a,!0x1);}),this['listenTo'](_0x13b70f,'suggestionUnloaded',(_0x2bd163,_0x22360a,_0x3b8e4f)=>{this['stopListening'](_0x22360a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x22360a),this['_suggestionToController']['has'](_0x22360a)&&this['_destroyController'](_0x22360a),_0x3b8e4f&&this['_updateController'](_0x3b8e4f['head']);}),this['listenTo'](_0x13b70f,'suggestionChanged',(_0x1b07ae,_0x12dd7f)=>{this['_updateController'](_0x12dd7f);}),this['listenTo'](_0x5db6ca,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x27be98,'addComment',(_0xf7e758,{threadId:_0x31d67d,isFromAdapter:_0x7923b6})=>{if(_0x7923b6||!_0x13b70f['hasSuggestion'](_0x31d67d))return;const _0x4f05d6=_0x13b70f['getSuggestion'](_0x31d67d);this['_suggestionToController']['get'](_0x4f05d6)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4ee06d=this['editor']['plugins']['get']('Annotations'),_0x506abf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x317b4b=Array['from'](_0x4ee06d['activeAnnotations'],_0xc42582=>_0xc42582['innerView'])['filter'](_0xd0669f=>this['_viewToController']['has'](_0xd0669f)),_0x58df3d=[];for(const _0x25dc37 of _0x317b4b){const _0xceffc0=this['_viewToController']['get'](_0x25dc37)['model']['getAllAdjacentSuggestions']();_0x58df3d['push'](..._0xceffc0['reduce']((_0x5a3f59,_0x3ca403)=>[..._0x5a3f59,..._0x3ca403['getMarkerNames']()],[]));}_0x506abf['activeMarkers']=_0x58df3d;}['_addUIComponentsToFactory'](){const _0x5973a3=this['editor'],_0x1bccbc=_0x5973a3['locale'],_0x28be1f=o(_0x1bccbc,'Track\x20changes'),_0x521e04=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x28be1f,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1bccbc,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1bccbc,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1bccbc,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1bccbc,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x4364c0 of _0x521e04)if(ae(_0x4364c0)){const _0x2c9025=_0x5973a3['commands']['get'](_0x4364c0['model']['commandName']);_0x4364c0['model']['bind']('isOn','isEnabled')['to'](_0x2c9025,'value','isEnabled');}_0x5973a3['ui']['componentFactory']['add']('trackChanges',_0x257ba0=>this['_createToolbarButton'](_0x257ba0,_0x521e04,_0x28be1f)),_0x5973a3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3afcfd=>this['_createMenuBarMenu'](_0x3afcfd,_0x521e04,_0x28be1f));}['_createToolbarButton'](_0x382577,_0x12a899,_0x463f23){const _0x2b52ea=zt(_0x382577,Zt),_0x145311=this['editor']['commands']['get']('trackChanges');_0x2b52ea['buttonView']['set']({'tooltip':_0x463f23,'label':_0x463f23,'icon':ie}),_0x2b52ea['buttonView']['bind']('isOn')['to'](_0x145311,'value'),_0x2b52ea['buttonView']['on']('execute',()=>{_0x145311['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x2b52ea,_0x12a899);const _0x1922c7=[];for(const _0x2e45be of _0x12a899)ae(_0x2e45be)&&_0x1922c7['push'](this['editor']['commands']['get'](_0x2e45be['model']['commandName']));const _0x17f735=_0x2b52ea['buttonView'];return _0x17f735['actionView']['unbind']('isEnabled'),_0x17f735['arrowView']['unbind']('isEnabled'),_0x17f735['actionView']['bind']('isEnabled')['to'](_0x145311,'isEnabled'),_0x17f735['arrowView']['bind']('isEnabled')['toMany'](_0x1922c7,'isEnabled',(..._0x2dfd8a)=>_0x2dfd8a['some'](_0x53b9d4=>_0x53b9d4)),_0x2b52ea['on']('execute',_0x443788=>{this['editor']['execute'](_0x443788['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b52ea;}['_createMenuBarMenu'](_0x120433,_0x5e42a9,_0x72a533){const _0x342468=new Kt(_0x120433),_0x160e83=this['editor']['commands']['get']('trackChanges');_0x342468['buttonView']['set']({'label':_0x72a533,'icon':ie});const _0x52426f=new Qt(_0x120433);for(const _0x39015d of _0x5e42a9){if('separator'==_0x39015d['type']){_0x52426f['items']['add'](new Jt(_0x120433));continue;}const _0x3f12c6=new Xt(_0x120433,_0x342468),_0x1e9307=new Yt(_0x120433),_0x43ecef=_0x39015d['model'];_0x1e9307['bind'](...Object['keys'](_0x43ecef))['to'](_0x43ecef),_0x1e9307['delegate']('execute')['to'](_0x342468),_0x1e9307['on']('execute',()=>{this['editor']['execute'](_0x43ecef['commandName']),this['editor']['editing']['view']['focus']();}),_0x3f12c6['children']['add'](_0x1e9307),_0x52426f['items']['add'](_0x3f12c6);}return _0x342468['bind']('isEnabled')['to'](_0x160e83,'isEnabled'),_0x342468['panelView']['children']['add'](_0x52426f),_0x342468;}['_initializeController'](_0x3b5db8){const _0x19a30b=this['editor'],_0x32860c=_0x19a30b['config'],_0x5df97c=_0x19a30b['plugins']['get']('Annotations'),_0x387160=_0x19a30b['plugins']['get']('CommentsRepository'),_0xc0d632=_0x19a30b['plugins']['get']('EditorAnnotations'),_0x13a3d6=_0x19a30b['plugins']['get'](_0x15e88b)['me'],_0x15bebf=_0x32860c['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xc9ca8b,CommentThreadInputView:_0x49bc17}=_0x19a30b['plugins']['get']('CommentsUI');let _0xad91d2,_0x3e28e1;this['_annotationViews']['has'](_0x3b5db8['id'])?(_0x3e28e1=this['_annotationViews']['get'](_0x3b5db8['id']),_0xad91d2=_0x3e28e1['mainView']):(_0xad91d2=new _0x15bebf(_0x19a30b['locale'],_0x3b5db8,_0x13a3d6,{'disableComments':this['_disableComments'],'editorConfig':_0x32860c['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x32860c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x32860c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x32860c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x42f9a7(_0x32860c['get']('locale')),'CommentView':_0x32860c['get']('comments')['CommentView'],'CommentsListView':_0xc9ca8b,'CommentThreadInputView':_0x49bc17}),_0xad91d2['acceptButton']['on']('execute',()=>{_0x19a30b['editing']['view']['focus']();}),_0xad91d2['discardButton']['on']('execute',()=>{_0x19a30b['editing']['view']['focus']();}),_0x3e28e1=_0x5df97c['createAnnotationView'](this['editor']['locale'],_0xad91d2),_0x3e28e1['bind']('isDirty')['to'](_0xad91d2,'isDirty'),_0x3e28e1['bind']('length')['to'](_0xad91d2),_0x3e28e1['bind']('type')['to'](_0xad91d2,'type',_0x4d925c=>'suggestion-'+_0x4d925c),this['_annotationViews']['set'](_0x3b5db8['id'],_0x3e28e1));const _0x5029d9=_0x387160['createCommentThreadController'](_0x3b5db8['commentThread'],_0xad91d2),_0x40dc5d=new oe(_0x19a30b,_0x3b5db8,_0xad91d2,_0x5029d9),_0x9ef1bf=_0x3b5db8['getAllAdjacentSuggestions']()['filter'](_0x30ed75=>_0x30ed75['isInContent']);_0xad91d2['descriptionParts']=_0x19a30b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x9ef1bf),this['_suggestionToController']['set'](_0x3b5db8,_0x40dc5d),this['_viewToController']['set'](_0xad91d2,_0x40dc5d);const _0xb261b3=_0x5df97c['createAnnotation']({'view':_0x3e28e1,'target':()=>{const _0x2fb8b0=[],_0xd5f2ac=_0x3b5db8['getAllAdjacentSuggestions']()['filter'](_0x2ba810=>_0x2ba810['isInContent']);for(const _0x41c796 of _0xd5f2ac)_0x2fb8b0['push'](..._0x41c796['getMarkers']());return _0x3fdb71(_0x19a30b['editing'],_0x2fb8b0);},'type':()=>'suggestion-'+_0x40dc5d['view']['type']});_0x387160['_bindAnnotationToEditors'](_0xad91d2,_0xb261b3),_0x5df97c['add'](_0xb261b3),_0xc0d632['registerAnnotation'](_0xb261b3);}['_destroyController'](_0x9ac16f){const _0x12e418=this['editor']['plugins']['get']('CommentsRepository'),_0xa0be68=this['editor']['plugins']['get']('Annotations'),_0x330e2b=this['_suggestionToController']['get'](_0x9ac16f),_0x50dd55=_0x330e2b['view'],_0x32458e=_0xa0be68['getByInnerView'](_0x50dd55);_0x12e418['_unbindEditors'](_0x50dd55),_0x32458e&&_0xa0be68['remove'](_0x32458e),this['_suggestionToController']['delete'](_0x9ac16f),this['_viewToController']['delete'](_0x50dd55),_0x330e2b['destroy']();}['_updateController'](_0x2e6bcd){if(!_0x2e6bcd['isInContent']||!this['_suggestionToController']['has'](_0x2e6bcd))return;const _0x1714e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e8783=this['_suggestionToController']['get'](_0x2e6bcd),_0x80f1f7=_0x2e6bcd['getAllAdjacentSuggestions']();_0x3e8783['view']['descriptionParts']=_0x1714e1['descriptionFactory']['getDescriptions'](_0x80f1f7);}['destroy'](){for(const _0x2d5ce5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d5ce5);for(const _0x39fab9 of this['_annotationViews']['values']())_0x39fab9['mainView']['destroy']();super['destroy']();}constructor(_0x2615b5){super(_0x2615b5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x276d78=this['editor']['config'];_0x276d78['define']('trackChanges.SuggestionThreadView',ne),_0x276d78['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x276d78['get']('trackChanges.disableComments');}}function ae(_0x5708ed){return'model'in _0x5708ed;}class k extends _0x1e79ec{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4360e4){this['editor']['plugins']['get'](p)['adapter']=_0x4360e4;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1a0168){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1a0168);}['getSuggestions']({skipNotAttached:_0x2d87d7=!0x1,toJSON:_0x25da29=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2d87d7,'toJSON':_0x25da29});}['getSuggestion'](_0x1cb06e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1cb06e);}}const T=['Pagination'];class P extends _0x1e79ec{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3a22a1=this['editor'];if(_0x3a22a1['config']['define']('trackChangesData.editorCreator',_0x1b0063=>{const _0x1242e0=_0x3a22a1['model']['document']['getRootNames']()['reduce']((_0x2fdeac,_0x213155)=>(_0x2fdeac[_0x213155]='',_0x2fdeac),{});return _0x3a22a1['constructor']['create'](_0x1242e0,_0x1b0063);}),'function'!=typeof _0x3a22a1['config']['get']('trackChangesData')['editorCreator'])throw new _0x46c804('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x330e20){return N(this['editor'],!0x0,_0x330e20);}['getDataWithDiscardedSuggestions'](_0x5791f3){return N(this['editor'],!0x1,_0x5791f3);}}class D extends _0x1e79ec{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(_0x492e44){super(_0x492e44),this['result']='end';}}function v(_0xbfc681){return void 0x0!==_0xbfc681['getRootsAttributes'];}async function N(_0x5a2efc,_0x38bcaa,_0x689315){const _0x3d7f19=_0x207bf7(_0x5a2efc,T);_0x3d7f19['plugins']['push'](p,D),_0x3d7f19['rootsAttributes']=v(_0x5a2efc)?_0x5a2efc['getRootsAttributes']():void 0x0;const _0xc00cf5=document['createDocumentFragment'](),_0x305863=_0x5a2efc['config']['get']('trackChangesData')['editorCreator'],_0xbbe06f=await _0x305863(_0x3d7f19,()=>function(_0x1dad1e){const _0x554376=document['createElement']('div');return _0x1dad1e['appendChild'](_0x554376),_0x554376;}(_0xc00cf5));!function(_0x49e661,_0x570f87){const _0x32e5b2=_0x49e661['model']['document']['getRootNames']()['reduce']((_0x59f950,_0x405c7f)=>(_0x59f950[_0x405c7f]=_0x49e661['data']['get']({'rootName':_0x405c7f}),_0x59f950),{}),_0x271544=_0x49e661['plugins']['get']('Users')['users']['map'](_0x4b46ed=>({'id':_0x4b46ed['id'],'name':_0x4b46ed['name']})),_0x58e480=_0x49e661['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x174eb6=_0x49e661['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x141528=_0x570f87['plugins']['get']('Users'),_0x5e7050=_0x570f87['plugins']['get']('TrackChangesEditing'),_0x351afd=_0x570f87['plugins']['get']('CommentsRepository');for(const _0x576372 of _0x271544)_0x141528['getUser'](_0x576372['id'])||_0x141528['addUser'](_0x576372);_0x141528['me']||_0x141528['useAnonymousUser']();for(const _0x106e44 of _0x58e480)_0x5e7050['addSuggestionData'](_0x106e44);for(const _0x5656ca of _0x174eb6)_0x351afd['addCommentThread'](_0x5656ca);_0x570f87['data']['set'](_0x32e5b2);}(_0x5a2efc,_0xbbe06f),_0xbbe06f['execute'](_0x38bcaa?'acceptAllSuggestions':'discardAllSuggestions');const _0x26a165=v(_0xbbe06f)?_0xbbe06f['getFullData'](_0x689315):_0xbbe06f['data']['get'](_0x689315);return await _0xbbe06f['destroy'](),_0x26a165;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|