@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240613.0 → 0.0.0-nightly-20240615.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 +3 -3
- 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/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.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- 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,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x2d6f38(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x29adda,_0x42d8e9){super(),this['id']=_0x42d8e9['id'],this['type']=_0x42d8e9['type'],this['subType']=_0x42d8e9['subType']||null,this['author']=_0x42d8e9['author'],this['creator']=_0x42d8e9['creator']||_0x42d8e9['author'],this['isExternal']=Boolean(_0x42d8e9['attributes']&&_0x42d8e9['attributes']['@external']),this['data']=null,this['_model']=_0x29adda,this['_onAccept']=_0x42d8e9['onAccept'],this['_onDiscard']=_0x42d8e9['onDiscard'],this['_onAttributesChange']=_0x42d8e9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x42d8e9['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x44413e=this;for(;_0x44413e['previous'];)_0x44413e=_0x44413e['previous'];return _0x44413e;}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'](_0x501569){this['_markerNames']['add'](_0x501569);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x14334f=>this['_model']['markers']['get'](_0x14334f))['filter'](_0x404adf=>_0x404adf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5cba02=>{for(const _0x2c4f99 of this['getMarkers']())_0x5cba02['removeMarker'](_0x2c4f99);}),this['_markerNames']['clear']();}['removeMarker'](_0x129225){this['_model']['change'](_0x468e86=>{_0x468e86['removeMarker'](_0x129225);}),this['_markerNames']['delete'](_0x129225);}['addRange'](_0x5d0095){const _0x3bea8e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3bea8e),this['_model']['change'](_0x468ca3=>{_0x468ca3['addMarker'](_0x3bea8e,{'range':_0x5d0095,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3be5d5){for(const _0x147a9c of this['getRanges']())if(_0x147a9c['isIntersecting'](_0x3be5d5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x19e5d4=>_0x19e5d4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1b29f1,_0x4fc865)=>[..._0x1b29f1,..._0x4fc865['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xee9977=this['getRanges']();if(0x1!=_0xee9977['length'])return null;const _0x275ba6=_0xee9977[0x0],_0xfe8a21=_0x275ba6['start']['nodeAfter'],_0x2a702b=_0x275ba6['end']['nodeBefore'];return _0xfe8a21 instanceof _0x3b4c34?_0xfe8a21!=_0x2a702b?null:_0xfe8a21: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 _0x54b96b=[];let _0x3c9f90=this['head'];for(;_0x3c9f90;)_0x54b96b['push'](_0x3c9f90),_0x3c9f90=_0x3c9f90['next'];return _0x54b96b;}['setAttribute'](_0x3fe522,_0x3e98ca){const _0x41ae32=_0x3c729a(this['attributes']);_0x14dcf5(_0x41ae32,_0x3fe522,_0x3e98ca),_0x3c3a5c(_0x41ae32,this['attributes'])||(this['attributes']=_0x41ae32,this['_onAttributesChange'](_0x41ae32));}['removeAttribute'](_0x226f44){const _0x4d962b=_0x3c729a(this['attributes']);_0x36d3e9(_0x4d962b,_0x226f44),_0x3c3a5c(_0x4d962b,this['attributes'])||(this['attributes']=_0x4d962b,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 _0x2b8ef8()['substr'](0x1,0x5);}}function o(_0x4cd6d3,_0x573227,_0x567107){const t=_0x4cd6d3['t'];switch(_0x573227){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',_0x567107);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x567107);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x567107);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x567107);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x567107);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',_0x567107);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x567107);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',_0x567107);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x567107);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x567107);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x567107);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x567107);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x567107);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x567107);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x567107);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x567107);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x567107);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x567107);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x567107);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x567107);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x567107);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x567107);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x567107);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'},_0x567107);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x567107);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x567107);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x567107);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x567107);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x567107);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'},_0x567107);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x567107);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x567107);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x567107);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x567107);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'},_0x567107);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x567107);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'},_0x567107);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'},_0x567107);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x567107);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'},_0x567107);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x567107);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'},_0x567107);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x567107);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x567107);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'},_0x567107);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'},_0x567107);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 _0x573227;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x18b347,_0x1f6f65){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x18b347,this['_locale']=_0x1f6f65;}['getDescriptions'](_0x4f8d5f){const _0x5a7abc=[],_0x14fc92=new Set(),_0x4f57db=new Set();for(let _0x3d2abc=0x0;_0x3d2abc<_0x4f8d5f['length'];_0x3d2abc++){const _0x4a5d95=_0x4f8d5f[_0x3d2abc];if(!_0x4a5d95['isInContent'])continue;const _0x163638=this['_handleCustomCallbackDescription'](_0x4a5d95);if(_0x163638){if(null!=_0x4a5d95['subType']){if(_0x14fc92['has'](_0x4a5d95['subType']))continue;_0x14fc92['add'](_0x4a5d95['subType']);}_0x5a7abc['push'](_0x163638);}else{if('attribute'!=_0x4a5d95['type'])'insertion'!=_0x4a5d95['type']&&'deletion'!=_0x4a5d95['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5a7abc,_0x4a5d95,_0x4f8d5f[_0x3d2abc+0x1]);else{const _0x5a1b20=_0x4a5d95['data']['key'];if(_0x4f57db['has'](_0x5a1b20))continue;_0x4f57db['add'](_0x4a5d95['data']['key']),_0x5a1b20==m?this['_handleRenameSuggestionDescription'](_0x5a7abc,_0x4a5d95):this['_handleAttributeSuggestionDescription'](_0x5a7abc,_0x4a5d95);}}}return this['_resolveDescriptionItems'](_0x5a7abc);}['registerDescriptionCallback'](_0x16faaf){this['_customCallbacks']['push'](_0x16faaf);}['registerElementLabel'](_0x51f13b,_0x249639,_0x1804fc=_0x13a18b['normal']){'function'==typeof _0x51f13b?_0x4413df(this['_itemLabelsCallbacks'],{'matchingCallback':_0x51f13b,'label':_0x249639,'priority':_0x1804fc}):this['_itemLabels']['set'](_0x51f13b,_0x249639);}['registerAttributeLabel'](_0x51ea32,_0xd4d752){this['_attributeLabels']['set'](_0x51ea32,_0xd4d752);}['getItemLabel'](_0xd49244,_0x23e50e=0x1){let _0x4c528b;for(const _0x972e04 of this['_itemLabelsCallbacks'])if(_0x972e04['matchingCallback'](_0xd49244)){_0x4c528b=_0x972e04['label'];break;}return _0x4c528b||(_0x4c528b=this['_itemLabels']['get'](_0xd49244['name'])),_0x4c528b?_0x4c528b(_0x23e50e):0x1!==_0x23e50e?_0x23e50e+'\x20'+_0xd49244['name']+'s':''+_0xd49244['name'];}['_addDescriptionItems'](_0x118288,_0x428f4f){const _0x13ac2d=_0x428f4f['getFirstRange']()['getWalker'](),_0x2001a2='insertion'==_0x428f4f['type']?'add':'remove';for(const _0x99199 of _0x13ac2d){const _0x420338=_0x99199['item'],_0x4f70dc=_0x118288[_0x118288['length']-0x1];if(_0x420338['is']('$textProxy'))_0x4f70dc&&_0x4f70dc['type']['indexOf']('Container')>-0x1&&_0x118288['pop'](),_0x4f70dc&&'text'==_0x4f70dc['type']?_0x4f70dc[_0x2001a2]+=_0x420338['data']:_0x118288['push']({'type':'text','add':'add'==_0x2001a2?_0x420338['data']:'','remove':'remove'==_0x2001a2?_0x420338['data']:''});else{if(this['_schema']['isObject'](_0x420338)){const _0x2f561a=_0x420338;if(_0x4f70dc&&_0x4f70dc['type']['indexOf']('Container')>-0x1&&_0x118288['pop'](),'elementEnd'==_0x99199['type'])continue;_0x4f70dc&&_0x4f70dc['type']==_0x2001a2+'Object'&&_0x4f70dc['element']['name']==_0x2f561a['name']?_0x4f70dc['quantity']++:_0x118288['push']({'type':_0x2001a2+'Object','element':_0x2f561a,'quantity':0x1}),_0x13ac2d['skip'](_0x261b75=>!('elementEnd'==_0x261b75['type']&&_0x261b75['item']==_0x420338));}else{if(this['_schema']['checkChild'](_0x420338,'$text')||_0x420338['is']('element','softBreak')){const _0x2b57fa=_0x420338;if('add'==_0x2001a2&&'elementStart'==_0x99199['type']||'remove'==_0x2001a2&&'elementEnd'==_0x99199['type'])continue;if(_0x4f70dc&&-0x1==_0x4f70dc['type']['indexOf']('Container')){'text'==_0x4f70dc['type']&&(_0x4f70dc[_0x2001a2]+='\x0a');continue;}let _0x4b27a3;if(_0x4b27a3='add'==_0x2001a2?_0x2b57fa['nextSibling']&&!this['_schema']['isObject'](_0x2b57fa['nextSibling'])?_0x2b57fa['nextSibling']:null:_0x2b57fa['previousSibling']&&!this['_schema']['isObject'](_0x2b57fa['previousSibling'])?_0x2b57fa['previousSibling']:null,_0x2b57fa['isEmpty']||_0x4b27a3&&_0x4b27a3['isEmpty']){const _0x453ee5=_0x4b27a3&&_0x4b27a3['isEmpty']?_0x4b27a3:_0x2b57fa;_0x4f70dc&&_0x4f70dc['type']==_0x2001a2+'EmptyContainer'&&_0x4f70dc['element']['name']==_0x453ee5['name']?_0x4f70dc['quantity']++:_0x118288['push']({'type':_0x2001a2+'EmptyContainer','element':_0x453ee5,'quantity':0x1});}else _0x118288['push']({'type':_0x2001a2+'Container','element':_0x2b57fa});}}}}}['_resolveDescriptionItems'](_0x2c1388){const _0x4b4c67=this['_locale'],_0x407abd=[],_0x39ed19=[],_0x3bca33=[];for(const _0x5f0c9d of _0x2c1388)switch(_0x5f0c9d['type']){case'text':if(_0x5f0c9d['add']=_0x5f0c9d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5f0c9d['remove']=_0x5f0c9d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5f0c9d['add']&&''!=_0x5f0c9d['remove']){_0x407abd['push']({'type':'replace','content':o(_0x4b4c67,'REPLACE_TEXT',['\x22'+_0x5f0c9d['remove']+'\x22','\x22'+_0x5f0c9d['add']+'\x22'])});continue;}if(null!=_0x5f0c9d['add']['match'](/^ +$/)){_0x407abd['push']({'type':'insertion','content':o(_0x4b4c67,'*Insert:*\x20%0',o(_0x4b4c67,'ELEMENT_SPACE',_0x5f0c9d['add']['length']))});continue;}if(null!=_0x5f0c9d['remove']['match'](/^ +$/)){_0x407abd['push']({'type':'deletion','content':o(_0x4b4c67,'*Remove:*\x20%0',o(_0x4b4c67,'ELEMENT_SPACE',_0x5f0c9d['remove']['length']))});continue;}if(''!=_0x5f0c9d['add']){_0x407abd['push']({'type':'insertion','content':o(_0x4b4c67,'*Insert:*\x20%0','\x22'+_0x5f0c9d['add']+'\x22')});continue;}_0x407abd['push']({'type':'deletion','content':o(_0x4b4c67,'*Remove:*\x20%0','\x22'+_0x5f0c9d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x407abd['push']({'type':'insertion','content':o(_0x4b4c67,'*Insert:*\x20%0',this['getItemLabel'](_0x5f0c9d['element'],_0x5f0c9d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x407abd['push']({'type':'deletion','content':o(_0x4b4c67,'*Remove:*\x20%0',this['getItemLabel'](_0x5f0c9d['element'],_0x5f0c9d['quantity']))});continue;case'addContainer':_0x407abd['push']({'type':'insertion','content':o(_0x4b4c67,'*Split:*\x20%0',this['getItemLabel'](_0x5f0c9d['element'],_0x5f0c9d['quantity']))});continue;case'removeContainer':_0x407abd['push']({'type':'deletion','content':o(_0x4b4c67,'*Merge:*\x20%0',this['getItemLabel'](_0x5f0c9d['element'],_0x5f0c9d['quantity']))});continue;case'addFormat':_0x39ed19['push'](_0x5f0c9d['key']);continue;case'removeFormat':_0x3bca33['push'](_0x5f0c9d['key']);continue;default:_0x407abd['push'](_0x5f0c9d);}if(_0x39ed19['length']){const _0x37e9fa=_0x39ed19['map'](_0x454612=>this['_attributeLabels']['has'](_0x454612)?this['_attributeLabels']['get'](_0x454612):_0x454612)['join'](',\x20');_0x407abd['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x37e9fa)});}if(_0x3bca33['length']){const _0x1d1020=_0x3bca33['map'](_0x2439a8=>this['_attributeLabels']['has'](_0x2439a8)?this['_attributeLabels']['get'](_0x2439a8):_0x2439a8)['join'](',\x20');_0x407abd['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1d1020)});}return _0x407abd;}['_handleCustomCallbackDescription'](_0x32b701){for(const _0x44f42d of this['_customCallbacks']){const _0x510029=_0x44f42d(_0x32b701);if(_0x510029&&'type'in _0x510029)return _0x510029;}}['_handleAttributeSuggestionDescription'](_0x330f27,_0x184872){const _0x10a561=_0x184872['data'],_0x45bde6=void 0x0===_0x10a561['newValue']?'removeFormat':'addFormat';_0x330f27['push']({'type':_0x45bde6,'key':_0x10a561['key']});}['_handleRenameSuggestionDescription'](_0x4eda00,_0x34f1bc){_0x4eda00['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x34f1bc['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x16a8f0,_0x7b7045,_0x4e32f9){if(this['_addDescriptionItems'](_0x16a8f0,_0x7b7045),_0x4e32f9&&_0x4e32f9['getFirstRange']()&&!_0x7b7045['getFirstRange']()['end']['isEqual'](_0x4e32f9['getFirstRange']()['start'])){const _0xf80e5e=_0x16a8f0[_0x16a8f0['length']-0x1],_0x3c5b52='insertion'==_0x7b7045['type']?'add':'remove';_0xf80e5e&&'text'==_0xf80e5e['type']&&(_0xf80e5e[_0x3c5b52]+='\x0a');}}}class E extends _0x4df026{['afterInit'](){const _0xf0b47a=this['editor'],_0x51781e=_0xf0b47a['plugins']['get']('TrackChangesEditing');_0xf0b47a['commands']['get']('showAIAssistant')&&_0x51781e['enableCommand']('showAIAssistant');}}class V extends _0x4df026{['afterInit'](){const _0x23dc54=this['editor'],_0x328a79=_0x23dc54['locale'];if(!_0x23dc54['plugins']['has']('AlignmentEditing'))return;const _0x571f65=_0x23dc54['plugins']['get']('TrackChangesEditing');_0x571f65['enableDefaultAttributesIntegration']('alignment'),_0x571f65['registerBlockAttribute']('alignment'),_0x571f65['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x328a79,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20f49d=this['editor'],_0x2e95ce=_0x20f49d['locale'];_0x20f49d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x375931=>{if('formatBlock'!=_0x375931['type'])return;const {data:_0x496b63}=_0x375931;if(_0x496b63&&'alignment'==_0x496b63['commandName']){const _0x58d4af=_0x496b63['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2e95ce,'*Format:*\x20%0',function(_0x43994b){switch(_0x43994b){case'left':return o(_0x2e95ce,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2e95ce,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2e95ce,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2e95ce,'FORMAT_JUSTIFY_TEXT');}}(_0x58d4af))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4df026{['afterInit'](){const _0x22dd7c=this['editor'],_0x3a3b1f=_0x22dd7c['plugins']['get']('TrackChangesEditing'),_0x25e48a=_0x22dd7c['locale'];for(const _0x1b201c of ti){if(!_0x22dd7c['plugins']['has'](_0x1b201c))continue;const _0x555841=_0x1b201c['slice'](0x0,-0x7)['toLowerCase'](),_0x298c6a='FORMAT_'+_0x555841['toUpperCase']();_0x3a3b1f['enableDefaultAttributesIntegration'](_0x555841),_0x3a3b1f['registerInlineAttribute'](_0x555841),_0x3a3b1f['descriptionFactory']['registerAttributeLabel'](_0x555841,o(_0x25e48a,_0x298c6a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4727b1=this['editor'],_0x1f8b47=_0x4727b1['locale'],_0x595c6e=_0x4727b1['plugins']['get']('TrackChangesEditing');function _0x10e69a(_0x47706f,_0x18f43e){_0x595c6e['descriptionFactory']['registerDescriptionCallback'](_0x558591=>{if('formatInline'!=_0x558591['type'])return;const {data:_0x97993}=_0x558591;return _0x97993&&_0x97993['commandName']===_0x47706f?_0x97993['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f8b47,'*Format:*\x20%0',_0x18f43e)}:{'type':'format','content':o(_0x1f8b47,'*Remove\x20format:*\x20%0',_0x18f43e)}:void 0x0;});}_0x10e69a('bold',o(_0x1f8b47,'FORMAT_BOLD')),_0x10e69a('italic',o(_0x1f8b47,'FORMAT_ITALIC')),_0x10e69a('underline',o(_0x1f8b47,'FORMAT_UNDERLINE')),_0x10e69a('code',o(_0x1f8b47,'FORMAT_CODE')),_0x10e69a('strikethrough',o(_0x1f8b47,'FORMAT_STRIKETHROUGH')),_0x10e69a('subscript',o(_0x1f8b47,'FORMAT_SUBSCRIPT')),_0x10e69a('superscript',o(_0x1f8b47,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4df026{['afterInit'](){const _0x39fc03=this['editor'],_0x1787f3=_0x39fc03['locale'];if(!_0x39fc03['plugins']['has']('BlockQuoteEditing'))return;const _0x99602c=_0x39fc03['plugins']['get']('TrackChangesEditing'),_0x4e3fa7=this['editor']['commands']['get']('blockQuote');_0x99602c['enableCommand']('blockQuote',(_0x1bf1a9,_0x333779={})=>{const _0x1f4417=this['editor']['model']['document']['selection'],_0x557281=_0x333779&&void 0x0!==_0x333779['forceValue']?_0x333779['forceValue']:!_0x4e3fa7['value'];let _0x330dd7=[];if(_0x557281){const _0x1d8fbf=Array['from'](_0x1f4417['getSelectedBlocks']())['filter'](_0x1fc2b3=>oo(_0x1fc2b3)||function(_0x1fe6d7,_0x3e1141){const _0x3a9cd9=_0x3e1141['checkChild'](_0x1fe6d7['parent'],'blockQuote'),_0x47ef83=_0x3e1141['checkChild'](['$root','blockQuote'],_0x1fe6d7);return _0x3a9cd9&&_0x47ef83;}(_0x1fc2b3,this['editor']['model']['schema']));_0x330dd7=to(_0x1d8fbf,_0x39fc03['model']);}else{const _0x878082=Array['from'](_0x1f4417['getSelectedBlocks']())['filter'](_0x38173f=>oo(_0x38173f));_0x330dd7=to(_0x878082,_0x39fc03['model']);}_0x39fc03['model']['change'](()=>{for(const _0x56f1f7 of _0x330dd7)_0x99602c['markBlockFormat'](_0x56f1f7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x557281}]});});}),_0x99602c['descriptionFactory']['registerDescriptionCallback'](_0x109cd5=>{const {data:_0x151c99}=_0x109cd5;if(_0x151c99&&'blockQuote'==_0x151c99['commandName']){const _0x23e18a=o(_0x1787f3,'ELEMENT_BLOCK_QUOTE');return _0x151c99['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1787f3,'*Set\x20format:*\x20%0',_0x23e18a)}:{'type':'format','content':o(_0x1787f3,'*Remove\x20format:*\x20%0',_0x23e18a)};}});}}function oo(_0x53f042){return'blockQuote'==_0x53f042['parent']['name'];}class G extends _0x4df026{['afterInit'](){const _0x4f9d23=this['editor'];_0x4f9d23['plugins']['has']('CaseChange')&&(_0x4f9d23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4f9d23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4f9d23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4df026{['afterInit'](){const _0x5bbb63=this['editor'];_0x5bbb63['commands']['get']('ckbox')&&_0x5bbb63['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4df026{['afterInit'](){const _0x237be9=this['editor'];if(!_0x237be9['plugins']['has']('CodeBlock'))return;const _0x15d510=_0x237be9['plugins']['get']('TrackChangesEditing'),_0x45d756=_0x237be9['locale'],_0x15b966=_0x237be9['config']['get']('codeBlock')['languages'],_0x19bcd9=_0x237be9['commands']['get']('codeBlock');_0x15d510['enableCommand']('indentCodeBlock'),_0x15d510['enableCommand']('outdentCodeBlock'),_0x15d510['enableCommand']('codeBlock',(_0x3bce9d,_0x23da93={})=>{const _0x246496=_0x237be9['model'],_0x179082=_0x237be9['model']['document']['selection'],_0x487578=_0x23da93&&void 0x0!==_0x23da93['forceValue']?_0x23da93['forceValue']:!_0x19bcd9['value'];let _0x5ab628;_0x23da93['language']||(_0x23da93['language']=_0x15b966[0x0]['language']),_0x5ab628=_0x487578?Array['from'](_0x179082['getSelectedBlocks']())['filter'](_0x361b11=>eo(_0x361b11)||function(_0xe8f7cb,_0x29d9d6){if(_0xe8f7cb['is']('rootElement')||_0x29d9d6['isLimit'](_0xe8f7cb))return!0x1;return _0x29d9d6['checkChild'](_0xe8f7cb['parent'],'codeBlock');}(_0x361b11,_0x246496['schema'])):Array['from'](_0x179082['getSelectedBlocks']())['filter'](_0x459d95=>eo(_0x459d95));const _0x45a28a=to(_0x5ab628,_0x246496);_0x246496['change'](()=>{for(const _0xf67f9f of _0x45a28a)_0x15d510['markBlockFormat'](_0xf67f9f,{'commandName':'codeBlock','commandParams':[{..._0x23da93,'forceValue':_0x487578}],'formatGroupId':'blockName'});});}),(_0x15d510['descriptionFactory']['registerElementLabel']('codeBlock',_0x5cd411=>o(_0x45d756,'ELEMENT_CODE_BLOCK',_0x5cd411)),_0x15d510['descriptionFactory']['registerDescriptionCallback'](_0x5967e9=>{if('formatBlock'!=_0x5967e9['type'])return;const _0x296cd4=_0x45d756['t'],{data:_0x54c17c}=_0x5967e9;if(!_0x54c17c||'codeBlock'!=_0x54c17c['commandName'])return;const _0x76e1e6=_0x54c17c['commandParams'][0x0]['language'],_0x9feb61=_0x296cd4(_0x15b966['find'](_0x1fb70e=>_0x1fb70e['language']===_0x76e1e6)['label'])['toLowerCase']();return _0x54c17c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x45d756,'*Set\x20format:*\x20%0',o(_0x45d756,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x9feb61+')')}:{'type':'format','content':o(_0x45d756,'*Remove\x20format:*\x20%0',o(_0x45d756,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4b7bd3){return'codeBlock'==_0x4b7bd3['name'];}class H extends _0x4df026{['afterInit'](){const _0x21903e=this['editor'];if(!_0x21903e['plugins']['has']('CommentsEditing'))return;_0x21903e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3caf5a,_0x2efab0,_0x55e599){const _0x244926=[];for(const _0x11624b of _0x2efab0['getItems']())_0x11624b['hasAttribute'](_0x3caf5a)&&_0x244926['push'](_0x55e599['createRangeOn'](_0x11624b));return _0x244926;}function _e(_0x2a57ad,_0x4706e7,{showActiveMarker:_0x17de5c=!0x0}={}){const _0x158e85=_0x2a57ad['plugins']['get']('TrackChangesEditing');return(_0x5d50f5,_0x160ae3,_0x4e4ec2)=>{if(!_0x4e4ec2['consumable']['test'](_0x160ae3['markerRange'],_0x5d50f5['name']))return;const _0x3293e0=_0x160ae3['markerRange']['getWalker'](),_0xb2e50e=_0x160ae3['markerRange']['start'],_0xe445c=_0x2a57ad['model']['schema'];let _0x2a00ab=null,_0x2dfb4f=null,_0x1e559a=!0x1,_0x559361=!0x1;for(const _0x1f65c7 of _0x3293e0){const _0x576d59=_0x1f65c7['item'];_0x1e559a=_0x1e559a||_0xe445c['isContent'](_0x576d59);const _0xc62b8b=_0x4e4ec2['mapper']['toViewElement'](_0x576d59);if(_0xc62b8b&&_0xc62b8b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1f65c7['type']&&(_0xe445c['isBlock'](_0x576d59)&&!_0xe445c['isLimit'](_0x576d59)&&(_0x576d59['nextSibling']||_0xb2e50e['isAtEnd']?_0x2a00ab&&_0x2a00ab['parent']==_0x576d59||(_0x2a00ab=_0x576d59,_0x26578e(_0x1f65c7['previousPosition']),_0x559361=!0x0):_0x2dfb4f=_0x2dfb4f||_0x1f65c7['previousPosition']));}function _0x26578e(_0x33d60b){const _0x49dcb3=_0x4e4ec2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4706e7}),_0x22f7e1=_0x4e4ec2['mapper']['toViewPosition'](_0x33d60b);_0x17de5c&&_0x158e85['activeMarkers']['includes'](_0x160ae3['markerName'])&&_0x4e4ec2['writer']['addClass']('ck-suggestion-marker--active',_0x49dcb3),_0x4e4ec2['writer']['insert'](_0x22f7e1,_0x49dcb3),_0x4e4ec2['mapper']['bindElementToMarker'](_0x49dcb3,_0x160ae3['markerName']);}_0x1e559a||_0x559361||!_0x2dfb4f||_0x26578e(_0x2dfb4f);};}class q extends _0x4df026{static get['requires'](){return[_0x15d548];}['init'](){const _0x3fc91c=this['editor'],_0x26f81f=_0x3fc91c['plugins']['get']('TrackChangesEditing');_0x26f81f['enableCommand']('delete');const _0x1a8d8b=_0x3fc91c['commands']['get']('deleteForward');_0x26f81f['enableCommand']('deleteForward',(_0x4c8cda,_0xa0d521={})=>{const _0x42140a=_0x3fc91c['model']['createSelection'](_0x3fc91c['model']['document']['selection']);_0x42140a['isCollapsed']&&_0x3fc91c['model']['modifySelection'](_0x42140a,{'direction':'forward','unit':_0xa0d521['unit']});const _0x584b43=_0x42140a['getFirstRange'](),_0x3afd08=_0x113a9d['fromRange'](_0x584b43);let _0x10faff;_0x4c8cda(_0xa0d521),_0x10faff='$graveyard'==_0x3afd08['root']['rootName']?_0x3fc91c['model']['createRange'](_0x584b43['start']):_0x3fc91c['model']['createRange'](_0x3afd08['start'],_0x3afd08['end']),_0x3afd08['detach'](),_0x3fc91c['model']['enqueueChange'](_0x1a8d8b['buffer']['batch'],_0x4b9754=>{_0x1a8d8b['buffer']['lock'](),_0x4b9754['setSelection'](_0x4b9754['createRange'](_0x10faff['end'])),_0x1a8d8b['buffer']['unlock']();});}),_0x3fc91c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3fc91c,'merge'),{'priority':'high'}),_0x3fc91c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x53bf8c,_0x1e765e,_0x522b8a)=>{_0x522b8a['options']['showSuggestionHighlights']&&_e(_0x3fc91c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x53bf8c,_0x1e765e,_0x522b8a);},{'priority':'high'}),_0x3fc91c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x310f9e,_0x4f3160,_0x27b6ae)=>{const _0x2a5319=_0x27b6ae['mapper']['markerNameToElements'](_0x4f3160['markerName']);if(_0x2a5319){for(const _0x5d1ad8 of _0x2a5319)_0x5d1ad8['is']('uiElement')&&(_0x27b6ae['mapper']['unbindElementFromMarkerName'](_0x5d1ad8,_0x4f3160['markerName']),_0x27b6ae['writer']['remove'](_0x5d1ad8));}},{'priority':'high'});}}class z extends _0x4df026{['afterInit'](){const _0x5900c0=this['editor'];if(!_0x5900c0['plugins']['has']('ListEditing'))return;const _0x4d5639=_0x5900c0['locale'],_0x39d5ea=_0x5900c0['plugins']['get']('TrackChangesEditing'),_0x2fb9c0=_0x5900c0['plugins']['has']('TodoListEditing'),_0xd6cfbd=!!_0x5900c0['config']['get']('list.multiBlock');function _0x57e122(_0x41e203){return{'type':'format','content':''+o(_0x4d5639,'*Set\x20format:*\x20%0',_0x41e203)};}function _0x260987(_0x24aaf1){return{'type':'format','content':''+o(_0x4d5639,'*Remove\x20format:*\x20%0',_0x24aaf1)};}_0x39d5ea['enableDefaultAttributesIntegration']('numberedList'),_0x39d5ea['enableDefaultAttributesIntegration']('bulletedList'),_0x39d5ea['enableDefaultAttributesIntegration']('customNumberedList'),_0x39d5ea['enableDefaultAttributesIntegration']('customBulletedList'),_0x39d5ea['enableDefaultAttributesIntegration']('indentList'),_0x39d5ea['enableDefaultAttributesIntegration']('outdentList'),_0x39d5ea['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x39d5ea['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x39d5ea['registerBlockAttribute']('listItemId'),_0x39d5ea['registerBlockAttribute']('listType'),_0x39d5ea['registerBlockAttribute']('listIndent'),_0xd6cfbd&&(_0x39d5ea['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x39d5ea['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2fb9c0&&(_0x39d5ea['enableDefaultAttributesIntegration']('todoList'),_0x39d5ea['enableDefaultAttributesIntegration']('checkTodoList'),_0x39d5ea['registerBlockAttribute']('todoListChecked'),_0x39d5ea['descriptionFactory']['registerDescriptionCallback'](_0xce8ec1=>{const {data:_0x25d398}=_0xce8ec1;if(_0x25d398&&'todoListChecked'==_0x25d398['key'])return{'type':'format','content':_0x25d398['newValue']?o(_0x4d5639,'*Check\x20item*'):o(_0x4d5639,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x64189b=>{if(_0x64189b['batch']['isUndo'])return!0x1;let _0x1d703f=!0x1;const _0x333d32=_0x39d5ea['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d08c4=>'todoListChecked'===_0x39d5ea['_getAttributeKey'](_0x4d08c4));for(const _0x591d14 of _0x333d32){'todo'!=_0x591d14['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x39d5ea['_findSuggestions'](_0x591d14['getFirstRange'](),'attribute')['find'](_0x15b843=>'listType'===_0x39d5ea['_getAttributeKey'](_0x15b843['suggestion']))||(_0x64189b['removeMarker'](_0x591d14['getFirstMarker']()),_0x1d703f=!0x0));}return _0x1d703f;})),_0x39d5ea['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4d5639,'FORMAT_INDENT'));const _0x11dc17={'type':'format','content':''};_0x39d5ea['descriptionFactory']['registerDescriptionCallback'](_0x29e99e=>{const {data:_0x83a2fd}=_0x29e99e;if(!_0x83a2fd||'listType'!=_0x83a2fd['key'])return;let _0x48129c=_0x29e99e['head'];for(;_0x48129c;){if(_0x48129c['data']&&(('listStyle'==_0x48129c['data']['key']||'listMarkerStyle'==_0x48129c['data']['key'])&&(_0x48129c['data']['newValue']&&'default'!=_0x48129c['data']['newValue']||'default'!=_0x48129c['data']['oldValue']&&!_0x83a2fd['newValue'])||!_0xd6cfbd&&_0x48129c['data']['key']==m))return _0x11dc17;_0x48129c=_0x48129c['next'];}if(null==_0x83a2fd['newValue'])switch(_0x83a2fd['oldValue']){case'bulleted':return _0x260987(o(_0x4d5639,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x260987(o(_0x4d5639,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x260987(o(_0x4d5639,'ELEMENT_TODO_LIST'));}switch(_0x83a2fd['newValue']){case'bulleted':return _0x57e122(o(_0x4d5639,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x57e122(o(_0x4d5639,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x57e122(o(_0x4d5639,'ELEMENT_TODO_LIST'));}}),_0x39d5ea['descriptionFactory']['registerDescriptionCallback'](_0x54c122=>{const {data:_0x1ded95}=_0x54c122;if(_0x1ded95&&'listIndent'==_0x1ded95['key'])return null==_0x1ded95['newValue']||null==_0x1ded95['oldValue']&&0x0==_0x1ded95['newValue']?_0x11dc17:void 0x0;}),_0x39d5ea['descriptionFactory']['registerDescriptionCallback'](_0x5ab952=>{if('attribute'!=_0x5ab952['type'])return;const {data:_0x4f6c20}=_0x5ab952;if(!_0x4f6c20||'listItemId'!=_0x4f6c20['key'])return;const _0x4b742e=le(_0x5ab952);return'newValue'==_0x4b742e?{'type':'format','content':o(_0x4d5639,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4b742e?{'type':'format','content':o(_0x4d5639,'*Split:*\x20list\x20item')}:_0x11dc17;}),_0x5900c0['model']['document']['registerPostFixer'](_0x19ea3e=>this['listItemIdFixer'](_0x19ea3e)),_0x5900c0['model']['document']['registerPostFixer'](_0x3b061b=>this['noTrackChangesFixer'](_0x3b061b)),_0x5900c0['model']['document']['registerPostFixer'](_0x28290d=>this['assureChains'](_0x28290d)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x534997){if(_0x534997['batch']['isUndo']||!_0x534997['batch']['isLocal'])return!0x1;let _0x459c66=!0x1;const _0x350bdb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6eb4ac=>_0x6eb4ac['data']&&'listItemId'==_0x6eb4ac['data']['key'])['filter'](_0x20a0b2=>_0x20a0b2['data']['newValue']&&_0x20a0b2['data']['oldValue']);for(const _0x5f5f8a of _0x350bdb)le(_0x5f5f8a)||(_0x534997['removeMarker'](_0x5f5f8a['getFirstMarker']()),_0x459c66=!0x0);return _0x459c66;}['noTrackChangesFixer'](_0x351671){if(_0x351671['batch']['isUndo']||!_0x351671['batch']['isLocal'])return!0x1;const _0x599625=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x599625['trackChangesCommand']['value'])return!0x1;let _0x19bfd6=!0x1;const _0x37e5a4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x203792=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xab9821=>'attribute'==_0xab9821['type'])['filter'](_0x50eb7c=>_0x37e5a4['includes'](_0x50eb7c['attributeKey']));if(0x0==_0x203792['length'])return _0x19bfd6;for(const _0x398681 of _0x203792){const _0x2342fe=_0x599625['_findSuggestions'](_0x398681['range'],'attribute')['filter'](_0x29f428=>!_0x29f428['meta']['isNextTo'])['map'](_0x27b694=>_0x27b694['suggestion'])['filter'](_0x46b167=>{const _0x4c6ced=_0x599625['_getAttributeKey'](_0x46b167);return _0x37e5a4['includes'](_0x4c6ced);});if(_0x2342fe['length']){for(const _0x2d84e2 of _0x2342fe)_0x351671['removeMarker'](_0x2d84e2['getFirstMarker']());_0x19bfd6=!0x0;}}return _0x19bfd6;}['assureChains'](_0x5dfc28){if(_0x5dfc28['batch']['isUndo']||!_0x5dfc28['batch']['isLocal'])return!0x1;const _0x454ec3=this['editor']['plugins']['get']('TrackChangesEditing');let _0x50cd51=!0x1;const _0x541966=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5439e5 of _0x454ec3['getSuggestions']({'skipNotAttached':!0x0})){const _0x5397f0=_0x454ec3['_findSuggestions'](_0x5439e5['getFirstRange'](),'attribute')['map'](_0x13ea33=>_0x13ea33['suggestion'])['filter'](_0x25b909=>_0x25b909['data']&&_0x541966['includes'](_0x25b909['data']['key']));if(!_0x5397f0['length'])continue;const _0x292f99=_0x5397f0[0x0]['head']['attributes']['groupId'];if(!_0x5397f0['every'](_0x78329f=>_0x78329f['attributes']['groupId']===_0x292f99)){for(const _0x20ca18 of _0x5397f0)_0x5953eb(_0x20ca18,_0x292f99)&&(_0x50cd51=!0x0);}}return _0x50cd51;function _0x5eae5c(_0x57698c,_0xccc86d){for(const _0x32e165 of _0x454ec3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45c250=>'attribute'==_0x45c250['type']&&_0x45c250['attributes']['groupId']==_0x57698c))_0x32e165['setAttribute']('groupId',_0xccc86d);}function _0x5953eb(_0x5e34bc,_0x39e46b){let _0x559d7a=_0x5e34bc['head'],_0x5a00f2=!0x1;for(;_0x559d7a;)_0x559d7a['attributes']['groupId']!=_0x39e46b&&(_0x5eae5c(_0x559d7a['attributes']['groupId'],_0x39e46b),_0x559d7a['setAttribute']('groupId',_0x39e46b),_0x5a00f2=!0x0),_0x559d7a=_0x559d7a['next'];return _0x5a00f2;}}['_supportLegacySuggestions'](){const _0x46da0d=this['editor'],_0x52c907=_0x46da0d['locale'],_0x53788a=_0x46da0d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x53788a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x40380e,_0x160032){const _0x42e1d5=[];for(let _0x10280d of _0x40380e)_0x10280d['start']['nodeAfter']===_0x10280d['end']['parent']&&(_0x10280d=_0x46da0d['model']['createRange'](_0x46da0d['model']['createPositionAt'](_0x10280d['start']['nodeAfter'],0x0))),_0x42e1d5['push'](_0x10280d);_0x46da0d['model']['change'](_0x3acfbf=>{const _0x49a583=_0x46da0d['model']['document']['selection'],_0xd6728e=Array['from'](_0x49a583['getRanges']())['map'](_0x27e79d=>_0x113a9d['fromRange'](_0x27e79d));_0x3acfbf['setSelection'](_0x42e1d5),_0x46da0d['commands']['get'](_0x160032['commandName'])['refresh'](),_0x160032['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x46da0d['execute'](_0x160032['commandName'],..._0x160032['commandParams']),_0x3acfbf['setSelection'](_0xd6728e);for(const _0x2f3cb1 of _0xd6728e)_0x2f3cb1['detach']();});}),_0x53788a['descriptionFactory']['registerElementLabel'](function(_0x488d19){const _0x34df6c=!_0x46da0d['model']['schema']['isObject'](_0x488d19),_0xb900b4=_0x488d19['previousSibling'],_0x562986=_0x488d19['nextSibling'],_0x25c1bc=_0x488d19['getAttribute']('listItemId'),_0x5d87c5=!_0xb900b4||_0xb900b4['getAttribute']('listItemId')!==_0x25c1bc,_0x44d0e4=!_0x562986||_0x562986['getAttribute']('listItemId')!==_0x25c1bc;return _0x34df6c&&Boolean(_0x25c1bc)&&_0x5d87c5&&_0x44d0e4;},_0x5a81cd=>o(_0x52c907,'ELEMENT_LIST_ITEM',_0x5a81cd));}['_registerLegacyDescription'](){const _0x57ee71=this['editor'],_0x291003=_0x57ee71['locale'];function _0x6a5910(_0x552480){const _0x3e89ce=_0x57ee71['commands']['get']('bulletedList')['value'],_0x484811=_0x57ee71['commands']['get']('numberedList')['value'];return'numberedList'===_0x552480?_0x3e89ce:_0x484811;}_0x57ee71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1b7956){if('formatBlock'!=_0x1b7956['type'])return;const {data:_0x36d99a}=_0x1b7956;if(!_0x36d99a)return;let _0x754de0,_0x24842d,_0x31b978,_0x3b1708;switch(_0x36d99a['commandName']){case'bulletedList':_0x31b978=_0x36d99a['commandParams'][0x0]['forceValue'],_0x3b1708=_0x6a5910(_0x36d99a['commandName']),_0x754de0=_0x31b978?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b1708&&_0x57ee71['config']['get']('list.multiBlock')||(_0x754de0='*Change\x20to:*\x20%0'),_0x24842d={'type':'format','content':o(_0x291003,_0x754de0,o(_0x291003,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x31b978=_0x36d99a['commandParams'][0x0]['forceValue'],_0x3b1708=_0x6a5910(_0x36d99a['commandName']),_0x754de0=_0x31b978?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3b1708&&_0x57ee71['config']['get']('list.multiBlock')||(_0x754de0='*Change\x20to:*\x20%0'),_0x24842d={'type':'format','content':o(_0x291003,_0x754de0,o(_0x291003,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x754de0='*Indent:*\x20%0',_0x24842d={'type':'format','content':o(_0x291003,_0x754de0,o(_0x291003,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x754de0=function(_0xd0c514){const _0x393ee7=_0xd0c514['getFirstRange']();let _0x16f6ee=_0x393ee7['start']['nodeAfter'];for(;_0x16f6ee&&_0x393ee7['containsItem'](_0x16f6ee);){if(_0x16f6ee['getAttribute']('listIndent')>0x0)return!0x1;_0x16f6ee=_0x16f6ee['nextSibling'];}return!0x0;}(_0x1b7956)?o(_0x291003,'*Format:*\x20remove\x20from\x20%0',o(_0x291003,function(_0x739465){return'ELEMENT_'+_0x739465['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1b7956))):o(_0x291003,'*Outdent:*\x20%0',o(_0x291003,'ELEMENT_LIST_ITEM')),_0x24842d={'type':'format','content':_0x754de0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x36d99a['multipleBlocks']&&(_0x754de0='*Merge:*\x20%0',_0x24842d={'type':'deletion','content':o(_0x291003,_0x754de0,o(_0x291003,'ELEMENT_LIST_ITEM'))});}return _0x24842d;});}}function le(_0x150884){let _0x2ca73b=_0x150884['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2ca73b;){const _0x32b449=_0x2ca73b['getAttribute']('listItemId');if(!_0x32b449)return!0x1;if(_0x32b449==_0x150884['data']['newValue'])return'newValue';if(_0x32b449==_0x150884['data']['oldValue'])return'oldValue';_0x2ca73b=_0x2ca73b['previousSibling'];}return!0x1;}class ue extends _0x4df026{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x31b058=this['editor']['config']['get']('list.properties'),_0x13a1b0=this['editor']['plugins']['get']('TrackChangesEditing');_0x31b058['styles']&&(_0x13a1b0['enableDefaultAttributesIntegration']('listStyle'),_0x13a1b0['registerBlockAttribute']('listStyle')),_0x31b058['reversed']&&(_0x13a1b0['enableDefaultAttributesIntegration']('listReversed'),_0x13a1b0['registerBlockAttribute']('listReversed')),_0x31b058['startIndex']&&(_0x13a1b0['enableDefaultAttributesIntegration']('listStart'),_0x13a1b0['registerBlockAttribute']('listStart'));const _0x1c6e56={'type':'format','content':''};_0x13a1b0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x47b242=this['editor']['locale'];_0x13a1b0['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x47b242,'FORMAT_LIST_REVERSED')),_0x13a1b0['descriptionFactory']['registerDescriptionCallback'](_0x2641a0=>{const {data:_0xa7dc51}=_0x2641a0;if(_0xa7dc51&&'listReversed'==_0xa7dc51['key'])return null==_0xa7dc51['newValue']||0x0==_0xa7dc51['newValue']&&null==_0xa7dc51['oldValue']?_0x1c6e56:void 0x0;}),_0x13a1b0['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x47b242,'FORMAT_LIST_START')),_0x13a1b0['descriptionFactory']['registerDescriptionCallback'](_0x1f9cce=>{const {data:_0x143f3b}=_0x1f9cce;if(_0x143f3b&&'listStart'==_0x143f3b['key'])return null==_0x143f3b['newValue']||0x1==_0x143f3b['newValue']&&null==_0x143f3b['oldValue']?_0x1c6e56:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4e97ee=>{if(_0x4e97ee['batch']['isUndo'])return!0x1;let _0x91eacf=!0x1;const _0x1adc6b=_0x13a1b0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x169584=>{const _0x5f36e1=_0x13a1b0['_getAttributeKey'](_0x169584);return'listStart'==_0x5f36e1||'listReversed'==_0x5f36e1;});for(const _0x5bb95b of _0x1adc6b){const _0x261501=_0x5bb95b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x261501||'customNumbered'==_0x261501)continue;_0x13a1b0['_findSuggestions'](_0x5bb95b['getFirstRange'](),'attribute')['find'](_0x1d5d6f=>'listType'==_0x13a1b0['_getAttributeKey'](_0x1d5d6f['suggestion']))||(_0x4e97ee['removeMarker'](_0x5bb95b['getFirstMarker']()),_0x91eacf=!0x0);}return _0x91eacf;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5a5eac){const _0x2e4ad0=this['editor']['locale'],{data:_0x2e900d}=_0x5a5eac,_0x35d495={'type':'format','content':''};if(!_0x2e900d||'listStyle'!=_0x2e900d['key'])return;if(!_0x2e900d['oldValue'])return'default'==_0x2e900d['newValue']?_0x35d495:{'type':'format','content':''+o(_0x2e4ad0,'*Set\x20format:*\x20%0',o(_0x2e4ad0,this['_getTranslationKeyForListStyle'](_0x2e900d['newValue'])))};if(!_0x2e900d['newValue']){if('default'==_0x2e900d['oldValue'])return _0x35d495;let _0x5b3a66=_0x5a5eac['head'];for(;_0x5b3a66;){if(_0x5b3a66['data']&&'listType'==_0x5b3a66['data']['key']&&_0x5b3a66['data']['newValue'])return _0x35d495;_0x5b3a66=_0x5b3a66['next'];}return{'type':'format','content':''+o(_0x2e4ad0,'*Remove\x20format:*\x20%0',o(_0x2e4ad0,this['_getTranslationKeyForListStyle'](_0x2e900d['oldValue'])))};}if('default'!=_0x2e900d['newValue'])return{'type':'format','content':''+o(_0x2e4ad0,'*Set\x20format:*\x20%0',o(_0x2e4ad0,this['_getTranslationKeyForListStyle'](_0x2e900d['newValue'])))};let _0x5d54da=_0x5a5eac['head'];for(;_0x5d54da;){if(_0x5d54da['data']&&'listType'==_0x5d54da['data']['key']&&_0x5d54da['data']['newValue']&&_0x5d54da['data']['oldValue'])return _0x35d495;_0x5d54da=_0x5d54da['next'];}return{'type':'format','content':o(_0x2e4ad0,'*Set\x20format:*\x20%0',o(_0x2e4ad0,'ELEMENT_'+_0x5a5eac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3f1787=this['editor'],_0x5badd6=_0x3f1787['locale'];_0x3f1787['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e4344=>{if('formatBlock'!=_0x2e4344['type'])return;const {data:_0x3ab528}=_0x2e4344;if(!_0x3ab528)return;let _0x4318ff,_0x1506e4;switch(_0x3ab528['commandName']){case'listStyle':_0x4318ff='*Change\x20to:*\x20%0',_0x1506e4={'type':'format','content':o(_0x5badd6,_0x4318ff,o(_0x5badd6,this['_getTranslationKeyForListStyle'](_0x3ab528['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4318ff=_0x3ab528['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1506e4={'type':'format','content':o(_0x5badd6,_0x4318ff)};break;case'listStart':_0x4318ff='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1506e4={'type':'format','content':o(_0x5badd6,_0x4318ff,_0x3ab528['commandParams'][0x0]['startIndex'])};}return _0x1506e4;});}['_getTranslationKeyForListStyle'](_0x4c563f){return'ELEMENT_'+function(_0x482a5e){if(pe['includes'](_0x482a5e))return'bulleted';if(ye['includes'](_0x482a5e))return'numbered';return null;}(_0x4c563f)['toUpperCase']()+'_LIST_'+_0x4c563f['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4df026{static get['requires'](){return[_0x3f3680];}['init'](){const _0x87722=this['editor'],_0x674f67=_0x87722['plugins']['get']('TrackChangesEditing'),_0xe00abf=_0x87722['commands']['get']('enter');_0x674f67['enableCommand']('enter',()=>{_0x87722['model']['change'](_0x4c40d1=>{const _0x5f50a3=_0x87722['model']['document']['selection'],_0xb0d484=_0x5f50a3['getFirstPosition'](),_0x4b6ff7=_0x113a9d['fromRange'](_0x5f50a3['getFirstRange']());if(_0xe00abf['enterBlock'](_0x4c40d1)){const _0xd9a1e1=_0x87722['model']['createPositionAt'](_0xb0d484['parent']['nextSibling'],0x0),_0x500bce=_0x4c40d1['createRange'](_0xb0d484,_0xd9a1e1);_0x674f67['markInsertion'](_0x500bce);}else _0x4c40d1['setSelection'](_0x4c40d1['createRange'](_0x4b6ff7['end']));_0x4b6ff7['detach'](),_0xe00abf['fire']('afterExecute',{'writer':_0x4c40d1});});}),_0x87722['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x87722,'split'),{'priority':'high'}),_0x87722['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2db090,_0x4a1900,_0x30a911)=>{const _0x5ae017=_0x30a911['mapper']['markerNameToElements'](_0x4a1900['markerName']);if(_0x5ae017){for(const _0x4ad987 of _0x5ae017)_0x4ad987['hasClass']('ck-suggestion-marker-split')&&(_0x30a911['mapper']['unbindElementFromMarkerName'](_0x4ad987,_0x4a1900['markerName']),_0x30a911['writer']['remove'](_0x4ad987));}},{'priority':'high'}),_0x87722['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3a71b1,_0x3004d1,_0x141ff5)=>{_0x141ff5['options']['showSuggestionHighlights']&&_e(_0x87722,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3a71b1,_0x3004d1,_0x141ff5);},{'priority':'high'});}}class J extends _0x4df026{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5600ab=this['editor']['plugins']['get']('TrackChangesEditing');_0x5600ab['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5600ab['enableCommand']('findNext'),_0x5600ab['enableCommand']('findPrevious'),_0x5600ab['enableCommand']('replace'),_0x5600ab['enableCommand']('replaceAll');}['handleFindCommand'](_0x653b54,_0x16f59e,_0x24a8f9={}){const _0x4c17ac=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x653b54(_0x48fb33=>('string'==typeof _0x16f59e?_0x4c17ac['findByTextCallback'](_0x16f59e,_0x24a8f9):_0x16f59e)(_0x48fb33)['filter'](_0x3b58e4=>!0x1===this['_isInDeletionRange'](_0x3b58e4,_0x48fb33['item'])),_0x24a8f9);}['_isInDeletionRange'](_0x184b11,_0x37d5e9){const _0x57199f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37d5e9,_0x184b11['start']),this['editor']['model']['createPositionAt'](_0x37d5e9,_0x184b11['end']));for(const _0x1495a2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x57199f['getIntersection'](_0x1495a2['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 _0x4df026{['afterInit'](){const _0x227d5d=this['editor']['locale'],_0xc3f6d2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x441319,commandName:_0x3ec197}of ro)this['editor']['plugins']['has'](_0x441319)&&(_0xc3f6d2['enableDefaultAttributesIntegration'](_0x3ec197),_0xc3f6d2['registerInlineAttribute'](_0x3ec197));_0x227d5d['t'],_0xc3f6d2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x227d5d,'FORMAT_FONT_SIZE')),_0xc3f6d2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x227d5d,'FORMAT_FONT_FAMILY')),_0xc3f6d2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x227d5d,'FORMAT_FONT_COLOR')),_0xc3f6d2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x227d5d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x390c16=this['editor'],_0x4aace0=_0x390c16['locale'];_0x390c16['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5469b7=>{const _0x50d154=_0x4aace0['t'];if('formatInline'!=_0x5469b7['type'])return;const {data:_0x588281}=_0x5469b7;if(null!=_0x588281){if('fontSize'==_0x588281['commandName']){const _0x5e4dfd=_0x588281['commandParams'][0x0]['value'];if(_0x5e4dfd){const _0x48393d=_0x50d154(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x484688=>_0x484688['model']==_0x5e4dfd)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4aace0,'*Set\x20font\x20size:*\x20%0',_0x48393d)};}return{'type':'format','content':o(_0x4aace0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x588281['commandName']){const _0x47dcf4=_0x588281['commandParams'][0x0]['value'];return _0x47dcf4?{'type':'format','content':o(_0x4aace0,'*Set\x20font\x20family:*\x20%0',_0x47dcf4)}:{'type':'format','content':o(_0x4aace0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x588281['commandName']){const _0x252a77=_0x588281['commandParams'][0x0]['value'];if(_0x252a77){const _0x1d30ab=_0x1b1316(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5ce9ab=>_0x5ce9ab['model']==_0x252a77);let _0x206dae=_0x252a77,_0x3340b8='';return _0x1d30ab&&(_0x206dae=_0x1d30ab['label'],_0x3340b8=_0x50d154(_0x206dae)['toLowerCase']()),{'type':'format','content':o(_0x4aace0,'*Set\x20font\x20color:*\x20%0',_0x3340b8)['trim'](),'color':{'value':_0x252a77,'title':_0x3340b8||_0x206dae}};}return{'type':'format','content':o(_0x4aace0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x588281['commandName']){const _0x67ca73=_0x588281['commandParams'][0x0]['value'];if(_0x67ca73){const _0x3efb2c=_0x1b1316(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x39218b=>_0x39218b['model']==_0x67ca73);let _0x28bfdf=_0x67ca73,_0x4fcc0d='';return _0x3efb2c&&(_0x28bfdf=_0x3efb2c['label'],_0x4fcc0d=_0x50d154(_0x28bfdf)['toLowerCase']()),{'type':'format','content':o(_0x4aace0,'*Set\x20font\x20background\x20color:*\x20%0',_0x4fcc0d)['trim'](),'color':{'value':_0x67ca73,'title':_0x4fcc0d||_0x28bfdf}};}return{'type':'format','content':o(_0x4aace0,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4df026{['afterInit'](){const _0x59c6a8=this['editor'],_0x25a900=_0x59c6a8['plugins']['get']('TrackChangesEditing'),_0x19ec79=_0x59c6a8['commands']['get']('copyFormat'),_0x424060=_0x59c6a8['commands']['get']('pasteFormat');_0x19ec79&&_0x424060&&(_0x25a900['enableDefaultAttributesIntegration']('pasteFormat'),_0x25a900['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x30868a=this['editor'],_0x3d0757=_0x30868a['locale'];_0x30868a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x487f2d=>{if('formatBlock'!=_0x487f2d['type']&&'formatInline'!=_0x487f2d['type'])return;const {data:_0x54a912}=_0x487f2d;if(_0x54a912&&'pasteFormat'===_0x54a912['commandName']){const _0x27452c=[],_0x55549c=_0x54a912['commandParams'][0x0];for(const [_0x3a083f,_0x1151b7]of Object['entries'](_0x55549c))_0x27452c['push'](so(_0x30868a,_0x3a083f,_0x1151b7));return _0x27452c['length']?{'type':'format','content':o(_0x3d0757,'*Set\x20format\x20to:*\x20%0',_0x27452c['join'](',\x20'))}:{'type':'format','content':o(_0x3d0757,'*Remove\x20all\x20formatting*')};}});}}function so(_0x30b7bb,_0x520225,_0x138685){const _0x3f24b9=_0x30b7bb['locale']['t'],_0x12589c=_0x520225['split'](/(?=[A-Z])/)['join']('\x20'),_0x3601af=_0x3f24b9(_0x12589c['charAt'](0x0)['toUpperCase']()+_0x12589c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x138685)return _0x3601af;if('fontColor'===_0x520225||'fontBackgroundColor'===_0x520225){const _0x5d904b=_0x1b1316(_0x30b7bb['config']['get']('fontColor.colors'))['find'](_0x439cc3=>_0x439cc3['model']==_0x138685);return _0x3601af+'\x20('+(_0x5d904b?_0x3f24b9(_0x5d904b['label'])['toLowerCase']():_0x138685)+')';}if('fontSize'===_0x520225&&isNaN(parseFloat(_0x138685))){const _0x7c8b3=_0x30b7bb['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x30b7bb['config']['get']('fontSize.options'))['find'](_0x52c727=>_0x52c727['model']==_0x138685);return _0x3601af+'\x20('+(_0x7c8b3?_0x3f24b9(_0x7c8b3['title'])['toLowerCase']():_0x138685)+')';}return _0x3601af+'\x20('+_0x138685+')';}class Y extends _0x4df026{['_headingOptions'];['afterInit'](){const _0x455a73=this['editor'];if(!_0x455a73['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x455a73['config']['get']('heading.options');const _0x30aea3=_0x455a73['locale'],_0x372e7b=_0x455a73['plugins']['get']('TrackChangesEditing');_0x372e7b['enableDefaultAttributesIntegration']('heading');for(const _0x20f138 of this['_headingOptions'])'paragraph'!=_0x20f138['model']&&_0x372e7b['descriptionFactory']['registerElementLabel'](_0x20f138['model'],_0x3596b2=>{const _0x216b3a=this['_getHeadingLevel'](_0x20f138['model']);return null!==_0x216b3a?_0x2eba2a(_0x3596b2,_0x216b3a):_0x2b88ce(_0x3596b2,_0x20f138['title']);});function _0x2eba2a(_0x1883a9,_0x55da38){return o(_0x30aea3,'ELEMENT_HEADING',[_0x1883a9,_0x55da38]);}function _0x2b88ce(_0x2563e3,_0x372d53){return o(_0x30aea3,'ELEMENT_HEADING_CUSTOM',[_0x2563e3,_0x372d53]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e3460=this['editor'],_0x4709aa=_0x5e3460['locale'];function _0x31a9b8(_0x38a718,_0x16077e){return o(_0x4709aa,'ELEMENT_HEADING_CUSTOM',[_0x38a718,_0x16077e]);}_0x5e3460['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c90f5=>{if('formatBlock'!=_0x3c90f5['type'])return;const {data:_0x146b37}=_0x3c90f5;if(_0x146b37&&'heading'==_0x146b37['commandName']){const _0x8d5476=_0x146b37['commandParams'][0x0]['value'],_0x34825d=this['_getHeadingLevel'](_0x8d5476);if(null!==_0x34825d)return{'type':'format','content':o(_0x4709aa,'*Change\x20to:*\x20%0',(_0x3cbc04=0x1,_0x1e532e=_0x34825d,o(_0x4709aa,'ELEMENT_HEADING',[_0x3cbc04,_0x1e532e])))};const _0x17610a=this['_headingOptions']['find'](_0x278ca8=>_0x278ca8['model']===_0x8d5476)['title'];return{'type':'format','content':o(_0x4709aa,'*Change\x20to:*\x20%0',_0x31a9b8(0x1,_0x17610a))};}var _0x3cbc04,_0x1e532e;});}['_getHeadingLevel'](_0x146b8a){const _0x5166e2=_0x146b8a['match'](/^heading(\d+)/);if(_0x5166e2)return _0x5166e2[0x1];const _0x45b73e=this['_headingOptions']?.['find'](_0x57afc2=>_0x57afc2['model']==_0x146b8a);if(_0x45b73e&&_0x45b73e['view']){const _0x4e93d4=_0x45b73e['view'],_0x609196=(_0x4e93d4['name']??_0x4e93d4)['match'](/^h(\d+)/);if(_0x609196)return _0x609196[0x1];}return null;}}class Z extends _0x4df026{['afterInit'](){const _0x446109=this['editor'];if(!_0x446109['plugins']['has']('HighlightEditing'))return;const _0x455059=_0x446109['plugins']['get']('TrackChangesEditing'),_0x21e556=_0x446109['locale'];_0x455059['enableDefaultAttributesIntegration']('highlight'),_0x455059['registerInlineAttribute']('highlight'),_0x455059['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x21e556,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd21b6b=this['editor'],_0x35f4a1=_0xd21b6b['locale'];_0xd21b6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38aad8=>{if('formatInline'!=_0x38aad8['type'])return;const {data:_0xb8562a}=_0x38aad8;if(_0xb8562a&&'highlight'==_0xb8562a['commandName']){const _0x5d5e4d=_0x35f4a1['t'],_0x272b52=_0xb8562a['commandParams'][0x0]['value'];if(_0x272b52){const _0x4892ff=_0xd21b6b['config']['get']('highlight.options')['find'](_0x9bd962=>_0x9bd962['model']==_0x272b52),_0x128efe=_0x5d5e4d(_0x4892ff['title'])['toLowerCase']();return{'type':'format','content':o(_0x35f4a1,'*Set\x20highlight:*\x20%0',_0x128efe),'color':{'value':_0x4892ff['color'],'title':_0x4892ff['title']}};}return{'type':'format','content':o(_0x35f4a1,'*Remove\x20highlight*',o(_0x35f4a1,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4df026{['afterInit'](){const _0x16d834=this['editor'];if(!_0x16d834['plugins']['has']('HorizontalLineEditing'))return;_0x16d834['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x48baac=_0x16d834['plugins']['get']('TrackChangesEditing'),_0x40f924=_0x16d834['locale'];_0x48baac['descriptionFactory']['registerElementLabel']('horizontalLine',_0x213e7a=>o(_0x40f924,'ELEMENT_HORIZONTAL_LINE',_0x213e7a)),_0x16d834['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x393e08,{writer:_0x924ec2,options:_0x27e4a6})=>{if(!_0x27e4a6['showSuggestionHighlights'])return null;const _0x5c4fd8=_0x924ec2['createContainerElement']('div'),_0x33bac3=_0x924ec2['createEmptyElement']('hr');return _0x924ec2['addClass']('ck-horizontal-line',_0x5c4fd8),_0x924ec2['insert'](_0x924ec2['createPositionAt'](_0x5c4fd8,0x0),_0x33bac3),_0x5c4fd8;},'converterPriority':'high'});}}class et extends _0x4df026{['afterInit'](){const _0x28fb17=this['editor'];if(!_0x28fb17['plugins']['has']('HtmlEmbed'))return;const _0x5ea3a8=_0x28fb17['plugins']['get']('TrackChangesEditing'),_0x31dd33=_0x28fb17['locale'];_0x5ea3a8['descriptionFactory']['registerElementLabel']('rawHtml',_0x5f5a8f=>o(_0x31dd33,'ELEMENT_HTML_EMBED',_0x5f5a8f)),_0x5ea3a8['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5ea3a8['registerBlockAttribute']('value'),_0x5ea3a8['descriptionFactory']['registerDescriptionCallback'](_0x3e3f4a=>{if('attribute'!=_0x3e3f4a['type'])return;const {data:_0x358cc4}=_0x3e3f4a;if(_0x358cc4&&'value'==_0x358cc4['key']&&_0x3e3f4a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5e3b9f=o(_0x31dd33,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x31dd33,'*Change\x20%0\x20content*',_0x5e3b9f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35532c=this['editor'],_0x51b340=_0x35532c['locale'];_0x35532c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x524dba=>{if('formatBlock'!=_0x524dba['type'])return;const {data:_0x18aefc}=_0x524dba;if(_0x18aefc&&'htmlEmbed'==_0x18aefc['commandName']){const _0x53b6ab=o(_0x51b340,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x51b340,'*Change\x20%0\x20content*',_0x53b6ab)};}});}}class it extends _0x4df026{['afterInit'](){const _0xa32291=this['editor'];if(!_0xa32291['plugins']['has']('ImageEditing'))return;const _0x50a837=_0xa32291['plugins']['get']('TrackChangesEditing'),_0x270523=_0xa32291['plugins']['get']('ImageUtils'),_0x10af3a=_0xa32291['locale'];_0x50a837['enableCommand']('insertImage'),_0x50a837['descriptionFactory']['registerElementLabel']('imageBlock',_0x485f3d=>o(_0x10af3a,'ELEMENT_IMAGE',_0x485f3d)),_0x50a837['descriptionFactory']['registerElementLabel']('imageInline',_0x52d88e=>o(_0x10af3a,'ELEMENT_INLINE_IMAGE',_0x52d88e)),_0x50a837['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x10af3a,'ELEMENT_CAPTION')),_0xa32291['plugins']['has']('ImageUploadEditing')&&_0x50a837['enableCommand']('uploadImage'),_0xa32291['plugins']['has']('ImageBlockEditing')&&_0xa32291['plugins']['has']('ImageInlineEditing')&&(_0x50a837['enableCommand']('imageTypeInline',(_0x31824d,_0x97e92f)=>{const _0x1f9b76=_0x270523['getClosestSelectedImageElement'](_0xa32291['model']['document']['selection']);_0xa32291['model']['change'](()=>{_0x50a837['markBlockFormat'](_0x1f9b76,{'commandName':'imageTypeInline','commandParams':[_0x97e92f]},[],'convertBlockImageToInline');});}),_0x50a837['enableCommand']('imageTypeBlock',(_0x47dd5c,_0x2f5623)=>{_0xa32291['model']['change'](_0x30663b=>{let _0x2f1275=_0x270523['getClosestSelectedImageElement'](_0xa32291['model']['document']['selection']),_0x3494d4=_0x30663b['createRangeOn'](_0x2f1275);const _0x4f939b=_0x3c1fd2['fromPosition'](_0x3494d4['start'],'toPrevious'),_0x55217d=_0x3c1fd2['fromPosition'](_0x3494d4['end'],'toNext');_0x50a837['forceDefaultExecution'](()=>_0x47dd5c(_0x2f5623)),_0x2f1275=_0x270523['getClosestSelectedImageElement'](_0xa32291['model']['document']['selection']),_0x3494d4=_0x30663b['createRangeOn'](_0x2f1275);const _0x3fc0a3=_0x30663b['createRange'](_0x4f939b,_0x55217d);_0x4f939b['detach'](),_0x55217d['detach'](),_0x50a837['markBlockFormat'](_0x2f1275,{'commandName':'imageTypeInline','commandParams':[_0x2f5623]},[],'convertInlineImageToBlock'),_0x3fc0a3['start']['isBefore'](_0x3494d4['start'])&&_0x50a837['markInsertion'](_0x30663b['createRange'](_0x3fc0a3['start'],_0x3494d4['start']),'convertInlineImageToBlock'),_0x3494d4['end']['isBefore'](_0x3fc0a3['end'])&&_0x50a837['markInsertion'](_0x30663b['createRange'](_0x3494d4['end'],_0x3fc0a3['end']),'convertInlineImageToBlock');});}),_0x50a837['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x50a837['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x50a837['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x50a837['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x50a837['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x50a837['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1d204b])=>{const _0x39f4b1=_0x50a837['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3066b3=_0x1d204b['start'],_0x4a0e08=_0x1d204b['end'];const _0x1d441d=_0xa32291['model']['schema']['getNearestSelectionRange'](_0x3066b3,'backward'),_0x6937ab=_0xa32291['model']['schema']['getNearestSelectionRange'](_0x4a0e08,'forward');_0x1d441d['isCollapsed']&&(_0x3066b3=_0x1d441d['start']),_0x6937ab['isCollapsed']&&(_0x4a0e08=_0x6937ab['end']),_0x39f4b1([_0xa32291['model']['createRange'](_0x3066b3,_0x4a0e08)]);}),_0x50a837['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x481323),_0x50a837['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x481323)),_0xa32291['plugins']['has']('ImageCaptionEditing')&&(_0x50a837['enableCommand']('toggleImageCaption',(_0x304999,_0x10e77c)=>{const _0x46b73b=_0xa32291['plugins']['get']('ImageCaptionUtils');let _0x896098=_0x270523['getClosestSelectedImageElement'](_0xa32291['model']['document']['selection']),_0x2bb75a=_0x46b73b['getCaptionFromImageModelElement'](_0x896098);_0xa32291['model']['change'](()=>{if(_0x2bb75a)return void _0x50a837['markDeletion'](_0xa32291['model']['createRangeOn'](_0x2bb75a));const _0x24e6ef=_0x270523['isBlockImage'](_0x896098);_0x304999(_0x10e77c),_0x896098=_0x270523['getClosestSelectedImageElement'](_0xa32291['model']['document']['selection']),_0x2bb75a=_0x46b73b['getCaptionFromImageModelElement'](_0x896098),_0x50a837['markInsertion'](_0xa32291['model']['createRangeOn'](_0x2bb75a),_0x24e6ef?null:'imageCaption');});}),_0x50a837['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x481323));const _0x46dbbc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3a41eb(_0x495c82,_0x2c6223){const _0x295699=_0x46dbbc['findIndex'](({type:_0x395e46,subType:_0x21839a})=>_0x495c82['type']==_0x395e46&&_0x495c82['subType']==_0x21839a),_0x48d535=_0x46dbbc['findIndex'](({type:_0x34054f,subType:_0x234af6})=>_0x2c6223['type']==_0x34054f&&_0x2c6223['subType']==_0x234af6);if(_0x295699<0x0||_0x48d535<0x0)return!0x1;const _0x202fc8=_0x495c82['getFirstRange'](),_0x477ed3=_0x2c6223['getFirstRange']();if((0x0==_0x295699||0x1==_0x295699)&&0x2==_0x48d535&&_0x202fc8['isIntersecting'](_0x477ed3))return!0x0;if(0x2==_0x295699&&0x3==_0x48d535){const _0x1f5649=_0x50a837['_findSuggestions'](_0x202fc8,'insertion')['filter'](({suggestion:_0x3c2eab,meta:_0x180b46})=>_0x180b46['isOwn']&&'convertInlineImageToBlock'==_0x3c2eab['subType']);if(_0x1f5649['length']>0x1&&_0x477ed3['end']['isEqual'](_0x202fc8['start']))return!0x0;if(0x1==_0x1f5649['length']&&(_0x202fc8['start']['isEqual'](_0x477ed3['end'])||_0x202fc8['end']['isEqual'](_0x477ed3['start'])))return!0x0;}if(0x3==_0x295699&&0x3==_0x48d535&&_0x202fc8['start']['isBefore'](_0x477ed3['start'])){const _0xce4018=_0x202fc8['end']['nodeAfter'],_0x109c10=_0x477ed3['start']['nodeBefore'];return _0x270523['isBlockImage'](_0xce4018)&&_0xce4018===_0x109c10;}return!0x1;}function _0x481323(_0x58db49,_0x459a54){return _0x3a41eb(_0x58db49,_0x459a54)?[_0x58db49,_0x459a54]:_0x3a41eb(_0x459a54,_0x58db49)?[_0x459a54,_0x58db49]:null;}_0xa32291['plugins']['has']('ImageResize')&&(_0x50a837['enableDefaultAttributesIntegration']('resizeImage'),_0x50a837['registerBlockAttribute']('resizedWidth'),_0x50a837['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x10af3a,'FORMAT_IMAGE_SIZE'))),_0xa32291['plugins']['has']('ImageTextAlternativeEditing')&&(_0x50a837['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x50a837['registerBlockAttribute']('alt')),_0x50a837['descriptionFactory']['registerDescriptionCallback'](_0x33fec1=>{if(!!_0x46dbbc['find'](({type:_0x155d39,subType:_0x358f6f})=>_0x33fec1['type']==_0x155d39&&_0x33fec1['subType']==_0x358f6f))return _0x33fec1['previous']?{}:void 0x0;}),_0x50a837['descriptionFactory']['registerDescriptionCallback'](_0x53e37c=>{if('insertion'==_0x53e37c['type']||'deletion'==_0x53e37c['type']){const _0xb70ee=_0x53e37c['getContainedElement']();if(_0xb70ee&&_0xb70ee['is']('element','caption'))return{'type':'insertion'==_0x53e37c['type']?'addObject':'removeObject','element':_0xb70ee,'quantity':0x1};}}),_0x50a837['descriptionFactory']['registerDescriptionCallback'](_0x363947=>'formatBlock'==_0x363947['type']&&'convertInlineImageToBlock'==_0x363947['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x363947['type']&&'convertBlockImageToInline'==_0x363947['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x50a837['descriptionFactory']['registerDescriptionCallback'](_0x5a7859=>{if('attribute'!=_0x5a7859['type'])return;const {data:_0x308332}=_0x5a7859;if(!_0x308332||'alt'!=_0x308332['key'])return;const _0x525de2=_0x308332['newValue'];return _0x525de2?{'type':'format','content':o(_0x10af3a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x525de2+'\x22')}:{'type':'format','content':o(_0x10af3a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e4c59=this['editor'],_0x54ce41=_0x4e4c59['locale'];_0x4e4c59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a3b2e=>{if('formatBlock'!=_0x4a3b2e['type']&&'formatInline'!=_0x4a3b2e['type'])return;const {data:_0x34bd38}=_0x4a3b2e;if(_0x34bd38){if('imageTextAlternative'==_0x34bd38['commandName']){const _0x1a83d5=_0x34bd38['commandParams'][0x0]['newValue'];return _0x1a83d5?{'type':'format','content':o(_0x54ce41,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1a83d5+'\x22')}:{'type':'format','content':o(_0x54ce41,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x34bd38['commandName']){const _0x166c4a=_0x34bd38['commandParams'][0x0]['width'];return _0x166c4a?{'type':'format','content':o(_0x54ce41,'*Set\x20image\x20width:*\x20%0',_0x166c4a)}:{'type':'format','content':o(_0x54ce41,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4df026{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x44ac35=this['editor']['locale'],_0x333760=this['editor']['plugins']['get']('TrackChangesEditing');_0x333760['enableDefaultAttributesIntegration']('replaceImageSource'),_0x333760['registerBlockAttribute']('src'),_0x333760['descriptionFactory']['registerDescriptionCallback'](_0x38872d=>{if('attribute'!=_0x38872d['type'])return;const {data:_0x30940b}=_0x38872d;return _0x30940b&&'src'==_0x30940b['key']?_0x30940b['newValue']&&_0x30940b['oldValue']?{'type':'format','content':o(_0x44ac35,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1c6e3c=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c6e3c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1c6e3c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1c6e3c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1c6e3c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32ccf5=this['editor'],_0x540235=_0x32ccf5['locale'];_0x32ccf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x171c5f=>{if('formatBlock'!=_0x171c5f['type']&&'formatInline'!=_0x171c5f['type'])return;const {data:_0x5f3736}=_0x171c5f;if(!_0x5f3736||'replaceImageSource'!=_0x5f3736['commandName'])return;return{'type':'format','content':o(_0x540235,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4df026{['afterInit'](){const _0x21f1c9=this['editor'];if(!_0x21f1c9['plugins']['has']('ImageStyleEditing'))return;const _0x28d46d=_0x21f1c9['plugins']['get']('TrackChangesEditing'),_0x174182=_0x21f1c9['plugins']['get']('ImageUtils'),_0x1d34ff={};_0x28d46d['enableCommand']('imageStyle',(_0x4972cc,_0x3f7ed0)=>{const _0x54bcf7=_0x21f1c9['plugins']['get']('Users')['me'],_0x269242=_0x21f1c9['commands']['get']('imageStyle');let _0x4af657=_0x174182['getClosestSelectedImageElement'](_0x21f1c9['model']['document']['selection']),_0x3e069a=_0x21f1c9['model']['createRangeOn'](_0x4af657),_0xefd86f=_0x269242['value'];if(_0xefd86f==_0x3f7ed0['value'])return;const _0xe13f51={'commandName':'imageStyle','commandParams':[_0x3f7ed0],'formatGroupId':_0x2b8ef8()};_0x21f1c9['model']['change'](()=>{if(_0x28d46d['getSuggestions']()['filter'](_0x591d36=>_0x591d36['isInContent']&&_0x54bcf7==_0x591d36['author']&&('formatBlock'==_0x591d36['type']||'formatInline'==_0x591d36['type'])&&('imageStylePreApply'==_0x591d36['subType']||'imageStylePostApply'==_0x591d36['subType'])&&_0x591d36['getFirstRange']()['isEqual'](_0x3e069a))['forEach'](_0x26239b=>_0x28d46d['discardSuggestion'](_0x26239b['head'])),_0x4af657=_0x174182['getClosestSelectedImageElement'](_0x21f1c9['model']['document']['selection']),_0x3e069a=_0x21f1c9['model']['createRangeOn'](_0x4af657),_0x269242['refresh'](),_0x21f1c9['commands']['get']('imageTypeInline')['refresh'](),_0x21f1c9['commands']['get']('imageTypeBlock')['refresh'](),_0xefd86f=_0x269242['value'],_0xefd86f!=_0x3f7ed0['value'])return _0x174182['isInlineImage'](_0x4af657)&&_0x269242['shouldConvertImageType'](_0x3f7ed0['value'],_0x4af657)?(_0x4972cc({..._0x3f7ed0,'setImageSizes':!0x1}),_0x4af657=_0x174182['getClosestSelectedImageElement'](_0x21f1c9['model']['document']['selection']),void _0x28d46d['markBlockFormat'](_0x4af657,{..._0xe13f51,'commandReversedParams':[{'value':_0xefd86f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x174182['isBlockImage'](_0x4af657)?_0x28d46d['markBlockFormat'](_0x4af657,_0xe13f51,[],'imageStylePostApply'):_0x28d46d['markInlineFormat'](_0x3e069a,_0xe13f51,'imageStylePostApply'));});});for(const _0x5946b4 of _0x21f1c9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1d34ff[_0x5946b4['name']]=_0x5946b4['title']['toLowerCase']();_0x28d46d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x28d46d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x28d46d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x28d46d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x132d07])=>{_0x174182['setImageNaturalSizeAttributes'](_0x132d07['getContainedElement']());}),_0x28d46d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x215038,_0x19181d)=>{_0x28d46d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x215038,{'commandName':_0x19181d['commandName'],'commandParams':_0x19181d['commandReversedParams']});}),_0x28d46d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xb4e9b1,_0x454557){if(_0x4d71e3(_0xb4e9b1,_0x454557))return[_0xb4e9b1,_0x454557];if(_0x4d71e3(_0x454557,_0xb4e9b1))return[_0x454557,_0xb4e9b1];return null;});const _0x1c782a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4d71e3(_0x86a4b5,_0x252b01){const _0x9a465a=_0x1c782a['findIndex'](({type:_0x10551f,subType:_0x33df85})=>_0x86a4b5['type']==_0x10551f&&_0x86a4b5['subType']==_0x33df85),_0xc3e84=_0x1c782a['findIndex'](({type:_0x3bf7e1,subType:_0x34c40b})=>_0x252b01['type']==_0x3bf7e1&&_0x252b01['subType']==_0x34c40b);if(_0x9a465a<0x0||_0xc3e84<0x0)return!0x1;const _0x1d29e8=_0x86a4b5['getFirstRange'](),_0x236b22=_0x252b01['getFirstRange']();if((0x0==_0x9a465a||0x1==_0x9a465a)&&0x2==_0xc3e84&&_0x1d29e8['isIntersecting'](_0x236b22))return!0x0;if(0x2==_0x9a465a&&0x3==_0xc3e84){const _0x3c91f7=_0x28d46d['_findSuggestions'](_0x1d29e8,'insertion')['filter'](({suggestion:_0x2bcc48,meta:_0x285bce})=>_0x285bce['isOwn']&&'convertInlineImageToBlock'==_0x2bcc48['subType']);if(_0x3c91f7['length']>0x1&&_0x236b22['end']['isEqual'](_0x1d29e8['start']))return!0x0;if(0x1==_0x3c91f7['length']&&(_0x1d29e8['start']['isEqual'](_0x236b22['end'])||_0x1d29e8['end']['isEqual'](_0x236b22['start'])))return!0x0;}if(0x3==_0x9a465a&&0x3==_0xc3e84&&_0x1d29e8['start']['isBefore'](_0x236b22['start'])){const _0x34a4f6=_0x1d29e8['end']['nodeAfter'],_0x352893=_0x236b22['start']['nodeBefore'];return _0x174182['isBlockImage'](_0x34a4f6)&&_0x34a4f6===_0x352893;}return!0x1;}_0x21f1c9['model']['document']['registerPostFixer'](()=>{let _0x40d936=!0x1;const _0x233d99=Array['from'](_0x21f1c9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3aa62,data:_0x178c4a}of _0x233d99){const {group:_0xb9948e,type:_0x593a90,subType:_0x53b09f,id:_0x35b0f2}=_0x28d46d['_splitMarkerName'](_0x3aa62);if('suggestion'==_0xb9948e&&_0x28d46d['hasSuggestion'](_0x35b0f2)){if('formatBlock'==_0x593a90&&('imageStylePreApply'==_0x53b09f||'imageStylePostApply'==_0x53b09f)){const _0x1ca467=_0x28d46d['getSuggestion'](_0x35b0f2);if(_0x178c4a['newRange']){const _0x3d8210=_0x1ca467['getFirstRange']()['getContainedElement']();if(_0x174182['isBlockImage'](_0x3d8210))continue;_0x28d46d['discardSuggestion'](_0x1ca467),_0x40d936=!0x0;}}if('insertion'==_0x593a90&&'imageCaption'==_0x53b09f&&!_0x178c4a['newRange']){const _0x3eb6a8=_0x28d46d['getSuggestion'](_0x35b0f2);_0x3eb6a8['next']&&_0x3eb6a8['next']['isInContent']&&(_0x28d46d['discardSuggestion'](_0x3eb6a8['next']),_0x40d936=!0x0);}}}return _0x40d936;}),this['_registerLegacyDescription'](_0x1d34ff);}['_registerLegacyDescription'](_0x4e1a23){const _0x144408=this['editor'],_0x5a66ea=_0x144408['locale'];_0x144408['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e3961=>{if('formatBlock'!=_0x1e3961['type']&&'formatInline'!=_0x1e3961['type'])return;const {data:_0x62b29b}=_0x1e3961;if(!_0x62b29b||'imageStyle'!=_0x62b29b['commandName'])return;const _0x587c76=_0x62b29b['commandParams'][0x0]['value'];return _0x2cc13d('side'===_0x587c76?o(_0x5a66ea,'FORMAT_SIDE_IMAGE'):_0x4e1a23[_0x587c76]||_0x587c76);function _0x2cc13d(_0x434865){return{'type':'format','content':o(_0x5a66ea,'*Format:*\x20%0',_0x434865)};}});}}class ot extends _0x4df026{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x322296){super(_0x322296),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x546500=this['editor'],_0x3072f1=_0x546500['commands']['get']('importWord'),_0x4919a1=_0x546500['commands']['get']('trackChanges');_0x3072f1&&(_0x3072f1['on']('execute',(_0x424590,[,_0x50d930])=>{this['_trackChangesValueDuringImport']=_0x4919a1['value'],_0x50d930['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3072f1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3072f1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4919a1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x546500['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4fdf16,_0x505a60){const {suggestions:_0x944642}=_0x505a60,_0x2c29ba=this['editor']['commands']['get']('trackChanges'),_0x455521=_0x2c29ba['value'];this['_trackChangesValueDuringImport']!==_0x455521&&(_0x2c29ba['execute'](),this['_trackChangesExecuted']=!0x0),_0x944642&&_0x944642['forEach'](({id:_0x22dea6,type:_0x434752,author:_0x1e7f0f,created_at:_0x8fea7d})=>{const _0x4963e0={'id':_0x22dea6,'type':_0x434752,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1e7f0f,'createdAt':_0x8fea7d?new Date(_0x8fea7d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4963e0);});}}class rt extends _0x4df026{['afterInit'](){const _0x53020b=this['editor'],_0x36577b=_0x53020b['plugins']['get']('TrackChangesEditing');if(_0x53020b['plugins']['has']('IndentEditing')&&(_0x36577b['enableCommand']('indent'),_0x36577b['enableCommand']('outdent')),_0x53020b['plugins']['has']('IndentBlock')){for(const _0x2b5652 of['indentBlock','outdentBlock'])_0x36577b['enableDefaultAttributesIntegration'](_0x2b5652);}const _0x29b684=_0x53020b['locale'];_0x36577b['registerBlockAttribute']('blockIndent'),_0x36577b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x29b684,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f9c60=this['editor'],_0x51603f=_0x1f9c60['locale'],_0x319b34=_0x1f9c60['plugins']['get']('TrackChangesEditing');_0x319b34['descriptionFactory']['registerDescriptionCallback'](_0x185e39=>{if('formatBlock'!=_0x185e39['type'])return;const {data:_0x364473}=_0x185e39;if(!_0x364473)return;if('indentBlock'!=_0x364473['commandName']&&'outdentBlock'!=_0x364473['commandName'])return;const _0x453352=_0x185e39['getItems']()[0x0],_0x159853=_0x319b34['descriptionFactory']['getItemLabel'](_0x453352);return'indentBlock'==_0x364473['commandName']?{'type':'format','content':o(_0x51603f,'*Indent:*\x20%0',_0x159853)}:'outdentBlock'==_0x364473['commandName']?{'type':'format','content':o(_0x51603f,'*Outdent:*\x20%0',_0x159853)}:void 0x0;});}}class at extends _0x4df026{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4df026{['afterInit'](){const _0x145140=this['editor'];if(!_0x145140['plugins']['has']('LinkEditing'))return;const _0x146b76=_0x145140['plugins']['get']('TrackChangesEditing'),_0xe54a33=_0x145140['commands']['get']('link');_0x146b76['enableDefaultAttributesIntegration']('link'),_0x146b76['enableDefaultAttributesIntegration']('unlink'),_0x146b76['registerInlineAttribute']('linkHref');for(const _0x3da613 of _0xe54a33['manualDecorators'])_0x146b76['registerInlineAttribute'](_0x3da613['id']),_0x146b76['descriptionFactory']['registerAttributeLabel'](_0x3da613['id'],'link\x20('+_0x3da613['label']['toLowerCase']()+')');_0x146b76['descriptionFactory']['registerDescriptionCallback'](_0x74370f=>{if('attribute'!=_0x74370f['type'])return;const {data:_0x5df7cd}=_0x74370f;if(!_0x5df7cd||'linkHref'!=_0x5df7cd['key'])return;const _0x4f5e0f=_0x5df7cd['newValue'],_0x117f1e=_0x145140['locale'];return{'type':'format','content':null==_0x4f5e0f?o(_0x117f1e,'*Remove\x20link*'):o(_0x117f1e,'*Set\x20link:*\x20%0','\x22'+_0x4f5e0f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41c73a=this['editor'],_0x57f675=_0x41c73a['locale'];_0x41c73a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cf495=>{if('formatInline'!=_0x5cf495['type'])return;const {data:_0x13656f}=_0x5cf495;if(_0x13656f){if('link'==_0x13656f['commandName']){const _0x34bb3d=_0x13656f['commandParams'][0x0];return{'type':'format','content':o(_0x57f675,'*Set\x20link:*\x20%0','\x22'+_0x34bb3d+'\x22')};}return'unlink'==_0x13656f['commandName']?{'type':'format','content':o(_0x57f675,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4df026{['afterInit'](){const _0x593966=this['editor'],_0x36d051=_0x593966['locale'];if(!_0x593966['plugins']['has']('LegacyListEditing'))return;const _0x36459a=_0x593966['plugins']['get']('TrackChangesEditing'),_0x1a3acb=_0x593966['plugins']['has']('LegacyTodoListEditing');function _0x297291(_0x212bf4){return()=>{const _0x52449c=_0x593966['model']['document']['selection'],_0x4d9c63=_0x593966['commands']['get'](_0x212bf4);if(_0x4d9c63['value'])return void _0x593966['execute']('paragraph',{});const _0x2d55a2=_0x212bf4['slice'](0x0,-0x4),_0x5e4baa=function(_0x59d8b6,_0x2226b5,_0x352038){let _0x27d292=Array['from'](_0x59d8b6)['filter'](_0x5cf757=>function(_0x118fa6,_0x112f29){return _0x112f29['checkChild'](_0x118fa6['parent'],'listItem')&&!_0x112f29['isObject'](_0x118fa6);}(_0x5cf757,_0x352038));_0x27d292=_0x27d292['filter'](_0x3b1400=>!_0x3b1400['is']('element','listItem')||_0x3b1400['getAttribute']('listType')!=_0x2226b5);const _0x5249b4=new Set();for(const _0x3e02e6 of _0x27d292)_0x3e02e6['is']('element','listItem')?_0x5249b4['add'](me(_0x3e02e6)):_0x5249b4['add'](_0x3e02e6);return Array['from'](_0x5249b4);}(_0x52449c['getSelectedBlocks'](),_0x2d55a2,_0x593966['model']['schema']);_0x593966['model']['change'](()=>{for(const _0x55e60e of _0x5e4baa)_0x36459a['markBlockFormat'](_0x55e60e,{'commandName':_0x212bf4,'commandParams':[{'forceValue':!_0x4d9c63['value']}],'formatGroupId':'blockName'},fe(_0x55e60e));});};}function _0x1804d4(_0x54823e){return()=>{const _0x2aeaee=function(_0x4f6f36){let _0x1bef3c=Array['from'](_0x4f6f36);const _0x2c9204=_0x1bef3c['findIndex'](_0x2ee412=>'listItem'!=_0x2ee412['name']);return _0x2c9204>-0x1&&(_0x1bef3c=_0x1bef3c['slice'](0x0,_0x2c9204)),_0x1bef3c;}(_0x593966['model']['document']['selection']['getSelectedBlocks']()),_0x50a8eb=_0x593966['model']['createRange'](_0x593966['model']['createPositionAt'](_0x2aeaee[0x0],'before'),_0x593966['model']['createPositionAt'](_0x2aeaee[_0x2aeaee['length']-0x1],'end'));_0x593966['model']['change'](()=>{_0x36459a['markBlockFormat'](_0x50a8eb,{'commandName':_0x54823e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x19c23c){const _0xd55042=new Set();for(const _0x29343b of _0x19c23c){let _0x3ab5e0=_0x29343b['nextSibling'];for(;_0x3ab5e0&&_0x3ab5e0['getAttribute']('listIndent')>_0x29343b['getAttribute']('listIndent');)_0xd55042['add'](_0x3ab5e0),_0x3ab5e0=_0x3ab5e0['nextSibling'];}return Array['from'](_0xd55042);}(_0x2aeaee));});};}_0x36459a['enableCommand']('numberedList',_0x297291('numberedList')),_0x36459a['enableCommand']('bulletedList',_0x297291('bulletedList')),_0x1a3acb&&_0x36459a['enableCommand']('todoList',_0x297291('todoList')),_0x36459a['enableCommand']('indentList',_0x1804d4('indentList')),_0x36459a['enableCommand']('outdentList',_0x1804d4('outdentList')),_0x1a3acb&&_0x36459a['enableCommand']('checkTodoList',()=>{const _0x1fec1a=_0x593966['commands']['get']('checkTodoList'),_0x44a68d=Array['from'](_0x1fec1a['_selectedElements']);_0x44a68d['filter'](_0x561018=>_0x561018['getAttribute']('todoListChecked')!=_0x1fec1a['value']),_0x593966['model']['change'](()=>{for(const _0x4187da of _0x44a68d)_0x36459a['markBlockFormat'](_0x4187da,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1fec1a['value']}]});});}),_0x36459a['descriptionFactory']['registerElementLabel']('listItem',_0x599b57=>o(_0x36d051,'ELEMENT_LIST_ITEM',_0x599b57)),_0x36459a['descriptionFactory']['registerDescriptionCallback'](_0x35ec4f=>{if('formatBlock'!=_0x35ec4f['type']&&'formatInline'!=_0x35ec4f['type'])return;const {data:_0x45b901}=_0x35ec4f;if(_0x45b901){if('numberedList'==_0x45b901['commandName']||'bulletedList'==_0x45b901['commandName']||'todoList'==_0x45b901['commandName'])switch(_0x45b901['commandName']['replace']('List','')){case'bulleted':return _0x2558e4(o(_0x36d051,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2558e4(o(_0x36d051,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2558e4(o(_0x36d051,'ELEMENT_TODO_LIST'));}if('indentList'==_0x45b901['commandName'])return{'type':'format','content':o(_0x36d051,'*Indent:*\x20%0',o(_0x36d051,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x45b901['commandName'])return{'type':'format','content':o(_0x36d051,'*Outdent:*\x20%0',o(_0x36d051,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x45b901['commandName'])return _0x45b901['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x36d051,'*Check\x20item*')}:{'type':'format','content':o(_0x36d051,'*Uncheck\x20item*')};}function _0x2558e4(_0x2e4cfd){return{'type':'format','content':o(_0x36d051,'*Change\x20to:*\x20%0',_0x2e4cfd)};}});}}function me(_0x193517){const _0x3094ac=_0x193517['getAttribute']('listIndent');if(0x0==_0x3094ac)return _0x193517;let _0x18132f=_0x193517;for(;_0x193517['previousSibling']&&_0x193517['previousSibling']['is']('element','listItem');){const _0x45fd94=_0x193517['previousSibling']['getAttribute']('listIndent');if(_0x45fd94==_0x3094ac)_0x18132f=_0x193517['previousSibling'];else{if(_0x45fd94<_0x3094ac)break;}_0x193517=_0x193517['previousSibling'];}return _0x18132f;}function fe(_0x198e92){const _0x57b947=[];if(_0x198e92['is']('element','listItem')&&_0x198e92['getAttribute']('listIndent')>0x0){let _0x216bf7=_0x198e92['nextSibling'];for(;_0x216bf7&&'listItem'==_0x216bf7['name']&&_0x216bf7['getAttribute']('listIndent')==_0x198e92['getAttribute']('listIndent');)_0x57b947['push'](_0x216bf7),_0x216bf7=_0x216bf7['nextSibling'];}return _0x57b947;}class K extends _0x4df026{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x556d4f=this['editor']['config']['get']('list.properties'),_0x1f1076=this['editor']['plugins']['get']('TrackChangesEditing');_0x556d4f['styles']&&_0x1f1076['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x556d4f['reversed']&&_0x1f1076['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x556d4f['startIndex']&&_0x1f1076['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1f1076['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2a84ba,_0x42f1d7={}){const _0x1a505f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b071b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1a505f['markMultiRangeBlockFormat'](_0x5b071b,{'commandName':'listStyle','commandParams':[{'type':_0x42f1d7['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4dde39,_0xd6c967={}){const _0x275807=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc2a28b=this['_getSuggestionBlocks'](_0x333d29=>_0x333d29['is']('element','listItem')&&'numbered'===_0x333d29['getAttribute']('listType'));if(_0xc2a28b['length']<0x1)return;const _0x5631b1=_0xc2a28b['map'](_0x3be94b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3be94b,'before'),this['editor']['model']['createPositionAt'](_0x3be94b,0x0)));this['editor']['model']['change'](()=>{_0x275807['markMultiRangeBlockFormat'](_0x5631b1,{'commandName':'listReversed','commandParams':[{'reversed':_0xd6c967['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x254491,_0x2a9051={}){const _0xa308f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c8212=this['_getSuggestionBlocks'](_0xa20d50=>_0xa20d50['is']('element','listItem')&&'numbered'===_0xa20d50['getAttribute']('listType'));if(_0x3c8212['length']<0x1)return;const _0x1321cc=_0x3c8212['map'](_0x3ce732=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ce732,'before'),this['editor']['model']['createPositionAt'](_0x3ce732,0x0)));this['editor']['model']['change'](()=>{_0xa308f7['markMultiRangeBlockFormat'](_0x1321cc,{'commandName':'listStart','commandParams':[{'startIndex':_0x2a9051['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x19aec1){if('formatBlock'!=_0x19aec1['type']&&'formatInline'!=_0x19aec1['type'])return;const _0x100a5c=this['editor']['locale'],{data:_0xe7e463}=_0x19aec1;if(!_0xe7e463)return;let _0xc6f11c,_0x57d238;switch(_0xe7e463['commandName']){case'listStyle':_0xc6f11c='*Change\x20to:*\x20%0',_0x57d238={'type':'format','content':o(_0x100a5c,_0xc6f11c,o(_0x100a5c,this['_getTranslationKeyForListStyle'](_0xe7e463['commandParams'][0x0]['type'])))};break;case'listReversed':_0xc6f11c=_0xe7e463['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x57d238={'type':'format','content':o(_0x100a5c,_0xc6f11c)};break;case'listStart':_0xc6f11c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x57d238={'type':'format','content':o(_0x100a5c,_0xc6f11c,_0xe7e463['commandParams'][0x0]['startIndex'])};}return _0x57d238;}['_getSuggestionBlocksForListStyle'](){const _0x599d2e=this['editor']['plugins']['get']('LegacyListUtils');let _0x3f49be=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3f49be[0x0]?.['is']('element','listItem')&&_0x3f49be['unshift'](..._0x599d2e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3f49be[_0x3f49be['length']-0x1]?.['is']('element','listItem')&&_0x3f49be['push'](..._0x599d2e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3f49be=[...new Set(_0x3f49be)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3f49be=_0x3f49be['filter'](_0x1e7e64=>_0x1e7e64['is']('element','listItem'))),_0x3f49be;}['_getSuggestionBlocks'](_0x4f7029){const _0x2c9497=this['editor']['plugins']['get']('LegacyListUtils');let _0x4a0ad4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4f7029)['map'](_0x2432c7=>{const _0x1eaa37=this['editor']['model']['createPositionAt'](_0x2432c7,0x0);return[..._0x2c9497['getSiblingNodes'](_0x1eaa37,'backward'),..._0x2c9497['getSiblingNodes'](_0x1eaa37,'forward')];})['flat']();return _0x4a0ad4=[...new Set(_0x4a0ad4)],_0x4a0ad4;}['_getTranslationKeyForListStyle'](_0x57944c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x57944c)||'default')['toUpperCase']()+'_LIST_'+_0x57944c['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4df026{['afterInit'](){const _0x465d38=this['editor'];if(!_0x465d38['plugins']['has']('MediaEmbedEditing'))return;const _0x544df6=_0x465d38['plugins']['get']('TrackChangesEditing'),_0x4374ff=_0x465d38['locale'];_0x544df6['enableCommand']('mediaEmbed'),_0x544df6['descriptionFactory']['registerElementLabel']('media',_0x2dea34=>o(_0x4374ff,'ELEMENT_MEDIA',_0x2dea34)),_0x465d38['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5c2fb0,{writer:_0x23b8ea,options:_0x52e3df})=>{if(_0x52e3df['showSuggestionHighlights'])return _0x23b8ea['createEmptyElement']('div');},'converterPriority':'high'}),_0x465d38['data']['downcastDispatcher']['on']('attribute:url:media',(_0x53c617,_0x2d6ead,_0x5de296)=>{_0x5de296['options']['showSuggestionHighlights']&&_0x53c617['stop']();},{'priority':'high'});}}class gt extends _0x4df026{['afterInit'](){const _0xe484d1=this['editor'];_0xe484d1['plugins']['has']('MentionEditing')&&_0xe484d1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4df026{['afterInit'](){const _0x3aecc1=this['editor'],_0x50c805=_0x3aecc1['plugins']['get']('TrackChangesEditing');_0x3aecc1['plugins']['has']('MultiLevelList')&&(_0x50c805['enableDefaultAttributesIntegration']('multiLevelList'),_0x50c805['registerBlockAttribute']('listMarkerStyle'),_0x50c805['descriptionFactory']['registerDescriptionCallback'](_0x3bebf9=>this['handleDescriptions'](_0x3bebf9)));}['handleDescriptions'](_0x16b339){const _0x5b6423=this['editor']['locale'],{data:_0x24ab4b}=_0x16b339,_0x40a3e7={'type':'format','content':''};if(_0x24ab4b&&'listMarkerStyle'==_0x24ab4b['key']){if(!_0x24ab4b['oldValue'])return{'type':'format','content':o(_0x5b6423,'*Set\x20format:*\x20%0',o(_0x5b6423,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x24ab4b['newValue']+')'};if(!_0x24ab4b['newValue']){let _0x3337c6=_0x16b339['head'];for(;_0x3337c6;){if(_0x3337c6['data']&&'listType'==_0x3337c6['data']['key']&&_0x3337c6['data']['newValue'])return _0x40a3e7;_0x3337c6=_0x3337c6['next'];}return{'type':'format','content':o(_0x5b6423,'*Remove\x20format:*\x20%0',o(_0x5b6423,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x24ab4b['oldValue']+')'};}}}}class mt extends _0x4df026{['afterInit'](){const _0x4c22b9=this['editor'];if(!_0x4c22b9['plugins']['has']('PageBreakEditing'))return;_0x4c22b9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x13feba=_0x4c22b9['plugins']['get']('TrackChangesEditing'),_0x3122f5=_0x4c22b9['locale'];_0x13feba['descriptionFactory']['registerElementLabel']('pageBreak',_0x1b02ae=>o(_0x3122f5,'ELEMENT_PAGE_BREAK',_0x1b02ae));}}class dt extends _0x4df026{['afterInit'](){const _0x1dab3e=this['editor'];if(!_0x1dab3e['plugins']['has']('Paragraph'))return;const _0x57d7b0=_0x1dab3e['locale'],_0x141942=_0x1dab3e['plugins']['get']('TrackChangesEditing');_0x141942['descriptionFactory']['registerElementLabel']('paragraph',_0x181736=>o(_0x57d7b0,'ELEMENT_PARAGRAPH',_0x181736)),_0x141942['enableDefaultAttributesIntegration']('paragraph'),_0x141942['enableCommand']('insertParagraph'),_0x1dab3e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1dab3e),{'priority':'highest'}),_0x1dab3e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3d061e,_0x5ec667,_0x1ae3eb)=>{_0x1ae3eb['options']['showSuggestionHighlights']&&nr(_0x1dab3e,{'showActiveMarker':!0x1})(_0x3d061e,_0x5ec667,_0x1ae3eb);},{'priority':'highest'});const _0x166ea5=_0x141942['descriptionFactory'];_0x166ea5['registerDescriptionCallback'](_0x343fa6=>{if('insertion'!==_0x343fa6['type'])return;const {start:_0x473406,end:_0x41b1e2}=_0x343fa6['getFirstRange']();if(!_0x473406['isTouching'](_0x41b1e2)||!_0x473406['nodeAfter'])return;const _0x1bbbbf=_0x1dab3e['model']['schema'],_0xd85e8f=_0x473406['nodeAfter'];return _0x1bbbbf['isBlock'](_0xd85e8f)&&!_0x1bbbbf['isLimit'](_0xd85e8f)&&_0x1bbbbf['checkChild'](_0xd85e8f,'$text')?{'type':'insertion','content':o(_0x57d7b0,'*Insert:*\x20%0',_0x166ea5['getItemLabel'](_0xd85e8f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39c5cb=this['editor'],_0x4ac1f0=_0x39c5cb['locale'];_0x39c5cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1edc68=>{if('formatBlock'!=_0x1edc68['type'])return;const {data:_0x644297}=_0x1edc68;return _0x644297&&'paragraph'==_0x644297['commandName']?{'type':'format','content':o(_0x4ac1f0,'*Change\x20to:*\x20%0',o(_0x4ac1f0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x10ea13,{showActiveMarker:_0x3d5585=!0x0}={}){return(_0x4a238f,_0x1ee8d9,_0x32f27c)=>{const _0x150b82=_0x10ea13['plugins']['get']('TrackChangesEditing'),_0x165fc5=_0x1ee8d9['markerRange']['start'],_0x4e165f=_0x1ee8d9['markerRange']['end'],_0x3d0502=_0x10ea13['model']['schema'];if(!_0x165fc5['isTouching'](_0x4e165f)||!_0x165fc5['nodeAfter'])return;const _0x5d0527=_0x165fc5['nodeAfter'];if(_0x3d0502['isBlock'](_0x5d0527)&&!_0x3d0502['isLimit'](_0x5d0527)&&_0x3d0502['checkChild'](_0x5d0527,'$text')){if(!_0x32f27c['consumable']['consume'](_0x1ee8d9['markerRange'],_0x4a238f['name']))return;const _0x5ca564=_0x32f27c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x26a278=_0x32f27c['mapper']['toViewPosition'](_0x4e165f);_0x3d5585&&_0x150b82['activeMarkers']['includes'](_0x1ee8d9['markerName'])&&_0x32f27c['writer']['addClass']('ck-suggestion-marker--active',_0x5ca564),_0x32f27c['writer']['insert'](_0x26a278,_0x5ca564),_0x32f27c['mapper']['bindElementToMarker'](_0x5ca564,_0x1ee8d9['markerName']);}};}class pt extends _0x4df026{['afterInit'](){const _0x46d48b=this['editor'];if(!_0x46d48b['plugins']['has']('RemoveFormatEditing'))return;_0x46d48b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x199225=this['editor'];_0x199225['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x70fc7d=>{if('formatBlock'!=_0x70fc7d['type']&&'formatInline'!=_0x70fc7d['type'])return;const {data:_0x437eff}=_0x70fc7d;return _0x437eff&&'removeFormat'==_0x437eff['commandName']?{'type':'format','content':o(_0x199225['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4df026{['afterInit'](){const _0x2fb3ac=this['editor'];if(!_0x2fb3ac['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x946267=_0x2fb3ac['plugins']['get']('TrackChangesEditing');_0x946267['enableCommand']('goToPreviousRestrictedEditingException'),_0x946267['enableCommand']('goToNextRestrictedEditingException');const _0x73c6cc=_0x2fb3ac['plugins']['get']('RestrictedEditingModeEditing');_0x73c6cc['enableCommand']('trackChanges'),_0x73c6cc['enableCommand']('acceptSuggestion'),_0x73c6cc['enableCommand']('discardSuggestion'),_0x73c6cc['enableCommand']('acceptAllSuggestions'),_0x73c6cc['enableCommand']('discardAllSuggestions'),_0x73c6cc['enableCommand']('acceptSelectedSuggestions'),_0x73c6cc['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4df026{static get['requires'](){return[_0x451903];}['init'](){const _0x30af4f=this['editor'],_0xd27f4c=_0x30af4f['plugins']['get']('TrackChangesEditing');_0xd27f4c['enableCommand']('shiftEnter'),_0x30af4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x30af4f),{'priority':'high'}),_0x30af4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x30af4f),{'priority':'high'}),_0x30af4f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xad52c,_0x436c38,_0x1c2c7a)=>{_0x1c2c7a['options']['showSuggestionHighlights']&&de(_0x30af4f,{'showActiveMarker':!0x1})(_0xad52c,_0x436c38,_0x1c2c7a);}),_0xd27f4c['descriptionFactory']['registerElementLabel']('softBreak',_0x45d4a1=>o(_0x30af4f['locale'],'ELEMENT_LINE_BREAK',_0x45d4a1));}}function de(_0x5853e1,{showActiveMarker:_0x376e74=!0x0}={}){return(_0x546d07,_0x66b72,_0x5debef)=>{const _0x11f10d=_0x5853e1['plugins']['get']('TrackChangesEditing');if(!_0x5debef['consumable']['test'](_0x66b72['markerRange'],_0x546d07['name']))return;const _0x3f3b0c=_0x5853e1['model'];for(const _0x5591a0 of _0x66b72['markerRange']['getItems']()){if(!_0x5591a0['is']('element','softBreak'))continue;const _0x15dafb='deletion'==_0x66b72['markerName']['split'](':')[0x1]?'merge':'split',_0x1d4748=_0x5debef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x15dafb}),_0x6375a3=_0x5debef['mapper']['toViewPosition'](_0x3f3b0c['createPositionBefore'](_0x5591a0));_0x376e74&&_0x11f10d['activeMarkers']['includes'](_0x66b72['markerName'])&&_0x5debef['writer']['addClass']('ck-suggestion-marker--active',_0x1d4748),_0x5debef['writer']['insert'](_0x6375a3,_0x1d4748),_0x5debef['mapper']['bindElementToMarker'](_0x1d4748,_0x66b72['markerName']);}};}class wt extends _0x4df026{['afterInit'](){const _0x58aa43=this['editor'],_0x1c576b=_0x58aa43['model'],_0xcd7774=_0x58aa43['locale'];if(!_0x58aa43['plugins']['has']('StandardEditingModeEditing'))return;const _0x1aa3a3=_0x58aa43['plugins']['get']('TrackChangesEditing'),_0xaa4961='restrictedEditingException',_0x53da50=_0x58aa43['commands']['get'](_0xaa4961);_0x1aa3a3['enableCommand'](_0xaa4961,(_0xa476d1,_0x45fa5f={})=>{const _0x4e9609=_0x1c576b['document']['selection'];if(_0x4e9609['isCollapsed'])return void _0xa476d1(_0x45fa5f);const _0x55a302=void 0x0!==_0x45fa5f['forceValue']?_0x45fa5f['forceValue']:!_0x53da50['value'];_0x1c576b['change'](()=>{const _0x27cfa5=Array['from'](_0x4e9609['getRanges']());for(const _0x56115f of _0x27cfa5){const _0x448bd7=_0x55a302?[_0x56115f]:io(_0xaa4961,_0x56115f,_0x1c576b);for(const _0x10f806 of _0x448bd7)_0x1aa3a3['markInlineFormat'](_0x10f806,{'commandName':_0xaa4961,'commandParams':[{'forceValue':_0x55a302}]});}});}),_0x1aa3a3['descriptionFactory']['registerDescriptionCallback'](_0x57aa29=>{if('formatBlock'!=_0x57aa29['type']&&'formatInline'!=_0x57aa29['type'])return;const {data:_0x2ef898}=_0x57aa29;return _0x2ef898&&_0x2ef898['commandName']==_0xaa4961?_0x2ef898['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcd7774,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xcd7774,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4df026{['afterInit'](){const _0x43b3dc=this['editor'];if(!_0x43b3dc['plugins']['has']('Style')||!_0x43b3dc['plugins']['has']('DataSchema'))return;const _0x551065=_0x43b3dc['plugins']['get']('TrackChangesEditing'),_0x30c953=_0x43b3dc['locale'],_0x269185=_0x43b3dc['config']['get']('style')||{},_0x2c87d0=_0x43b3dc['plugins']['get']('GeneralHtmlSupport'),_0x572a97=_0x43b3dc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x43b3dc['plugins']['get']('DataSchema'),_0x269185['definitions']);_0x551065['enableDefaultAttributesIntegration']('style');const _0x20d8fb=new Set();for(const _0x1838d3 of _0x572a97['block']){const _0x3f619c=_0x2c87d0['getGhsAttributeNameForElement'](_0x1838d3['element']);_0x20d8fb['add'](_0x3f619c);}const _0x1404c9=new Set();for(const _0x2a268d of _0x572a97['inline']){const _0x50fbdd=_0x2c87d0['getGhsAttributeNameForElement'](_0x2a268d['element']);_0x1404c9['add'](_0x50fbdd);for(const _0x318ed6 of _0x2a268d['ghsAttributes'])_0x1404c9['add'](_0x318ed6);}for(const _0x10ba8b of _0x20d8fb)_0x551065['registerBlockAttribute'](_0x10ba8b),_0x551065['descriptionFactory']['registerAttributeLabel'](_0x10ba8b,o(_0x30c953,'FORMAT_STYLE'));for(const _0x345006 of _0x1404c9)_0x551065['registerInlineAttribute'](_0x345006),_0x551065['descriptionFactory']['registerAttributeLabel'](_0x345006,o(_0x30c953,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x275142=this['editor'],_0x56b975=_0x275142['locale'];_0x275142['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x826c20=>{if('formatBlock'!=_0x826c20['type']&&'formatInline'!=_0x826c20['type'])return;const {data:_0x33b31f}=_0x826c20;return _0x33b31f&&'style'===_0x33b31f['commandName']?_0x33b31f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x56b975,'*Set\x20format:*\x20%0',_0x33b31f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x56b975,'*Remove\x20format:*\x20%0',_0x33b31f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4df026{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3c2bfb){super(_0x3c2bfb),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x35f028=this['editor'],_0x1719d7=_0x35f028['model']['document']['selection'];if(!_0x35f028['plugins']['has']('TableEditing'))return;const _0x26563e=_0x35f028['locale'],_0x5b794b=_0x35f028['plugins']['get']('TrackChangesEditing'),_0x14dfc1=_0x35f028['plugins']['get']('TableUtils');_0x5b794b['descriptionFactory']['registerElementLabel']('table',_0x2b5e4d=>o(_0x26563e,'ELEMENT_TABLE',_0x2b5e4d)),this['_setupColumnsRowsFixing'](),_0x5b794b['enableCommand']('insertTable'),_0x5b794b['enableCommand']('selectTableRow'),_0x5b794b['enableCommand']('selectTableColumn');for(const _0x35b61a of['insertTableRowAbove','insertTableRowBelow']){const _0x279d3d=_0x35f028['commands']['get'](_0x35b61a);_0x5b794b['enableCommand'](_0x35b61a,_0x4d4736=>{_0x35f028['model']['change'](_0x585c5d=>{_0x4d4736();const _0x3ba2c1='above'===_0x279d3d['order'],_0x2edb36=_0x14dfc1['getSelectionAffectedTableCells'](_0x1719d7),_0x50dced=_0x14dfc1['getRowIndexes'](_0x2edb36),_0x46801a=_0x3ba2c1?_0x50dced['first']-0x1:_0x50dced['last']+0x1,_0x4a48f3=_0x2edb36[0x0]['findAncestor']('table'),_0x52674b=_0x14dfc1['createTableWalker'](_0x4a48f3,{'startRow':_0x46801a,'endRow':_0x46801a}),_0x4070e4=Array['from'](_0x52674b)['map'](_0x31edb9=>_0x585c5d['createRangeOn'](_0x31edb9['cell']));_0x5b794b['markMultiRangeInsertion'](_0x4070e4,'tableRow');});});}for(const _0x4aeb2d of['insertTableColumnLeft','insertTableColumnRight']){const _0x25864d=_0x35f028['commands']['get'](_0x4aeb2d);_0x5b794b['enableCommand'](_0x4aeb2d,_0x357491=>{_0x35f028['model']['change'](_0x3b75c9=>{_0x357491();const _0x1be85c='left'===_0x25864d['order'],_0x5e5a2f=_0x14dfc1['getSelectionAffectedTableCells'](_0x1719d7),_0x2a2c5c=_0x14dfc1['getColumnIndexes'](_0x5e5a2f),_0x4e7738=_0x1be85c?_0x2a2c5c['first']-0x1:_0x2a2c5c['last']+0x1,_0xa7ed70=_0x5e5a2f[0x0]['findAncestor']('table'),_0x58c9a5=_0x14dfc1['createTableWalker'](_0xa7ed70,{'startRow':0x0,'column':_0x4e7738,'includeAllSlots':!0x1}),_0x13b3e4=Array['from'](_0x58c9a5)['map'](_0x488bd3=>_0x3b75c9['createRangeOn'](_0x488bd3['cell']));_0x5b794b['markMultiRangeInsertion'](_0x13b3e4,'tableColumn');});});}for(const _0x2fa659 of['removeTableRow','removeTableColumn']){const _0x21fd83=_0x2fa659['substr'](0xb),_0x15b189=_0x21fd83['toLowerCase'](),_0x3275cd=_0x15b189['substr'](0x0,0x3)+'span',_0x3fe33c='table'+_0x21fd83,_0x2c9861='min'+_0x21fd83,_0x196e30='max'+_0x21fd83;_0x5b794b['enableCommand'](_0x2fa659,()=>{_0x35f028['model']['change'](_0x392297=>{const _0x4db81a=_0x14dfc1['getSelectionAffectedTableCells'](_0x1719d7),_0x58214d=_0x4db81a[0x0]['findAncestor']('table');let _0x25bcc2;if('removeTableRow'==_0x2fa659){const _0x1e7b61=_0x14dfc1['getRowIndexes'](_0x4db81a);_0x25bcc2={'startRow':_0x1e7b61['first'],'endRow':_0x1e7b61['last'],'includeAllSlots':!0x0};}else{const _0x49ad39=_0x14dfc1['getColumnIndexes'](_0x4db81a);_0x25bcc2={'startColumn':_0x49ad39['first'],'endColumn':_0x49ad39['last'],'includeAllSlots':!0x0};}const _0x5c9865=_0x14dfc1['createTableWalker'](_0x58214d,_0x25bcc2),_0xe9035a=Array['from'](_0x5c9865)['map'](({cell:_0x1b50f8})=>_0x1b50f8),_0x4ff32d=Ee(_0xe9035a['filter'](_0x1690f3=>_0x1690f3['hasAttribute'](_0x3275cd))),_0x1ee6ad=Ee(_0xe9035a['filter'](_0x2f0401=>!_0x2f0401['hasAttribute'](_0x3275cd)))['map'](_0x182dd6=>_0x392297['createRangeOn'](_0x182dd6)),_0x27edc9=_0x5b794b['markMultiRangeDeletion'](_0x1ee6ad,_0x3fe33c);if(_0x27edc9&&('tableRow'==_0x27edc9['subType']||'tableColumn'==_0x27edc9['subType'])){const _0xb70ea6=this['_getSuggestionCoords'](_0x27edc9);for(const _0x482d2 of _0x4ff32d){const _0x224e66=_0x392297['createRangeOn'](_0x482d2),_0x41d068=_0x14dfc1['getCellLocation'](_0x482d2),_0x221f9d=_0x482d2['getAttribute'](_0x3275cd)-0x1,_0xd2e27b=_0xb70ea6[_0x2c9861],_0x4c2636=_0xb70ea6[_0x196e30];_0xd2e27b<=_0x41d068[_0x15b189]&&_0x41d068[_0x15b189]+_0x221f9d<=_0x4c2636&&_0x27edc9['addRange'](_0x224e66);}}});});}function _0x3930f4(_0x10a8fc){const _0x1e0dce=Array['from'](_0x1719d7['getRanges']())['map'](_0x4e51cb=>_0x113a9d['fromRange'](_0x4e51cb));_0x35f028['model']['change'](_0x27105d=>{const _0x557d22=_0x27105d['batch'];_0x10a8fc=_0x10a8fc['filter'](_0x527110=>'$graveyard'!=_0x527110['root']['rootName']),_0x27105d['setSelection'](_0x10a8fc),_0x35f028['commands']['get']('removeTableRow')['refresh'](),_0x35f028['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x35f028['model']['enqueueChange'](()=>{_0x35f028['model']['enqueueChange'](_0x557d22,_0x43f4bb=>{const _0x4a1e76=_0x1e0dce['filter'](_0x452f0d=>'$graveyard'!=_0x452f0d['root']['rootName']);_0x4a1e76['length']>0x0&&_0x43f4bb['setSelection'](_0x4a1e76);for(const _0x5af555 of _0x1e0dce)_0x5af555['detach']();});});});}function _0x1e7fb3(_0x4f7b83){_0x35f028['model']['change'](_0x567472=>{const _0x44f26e=Array['from'](_0x1719d7['getRanges']())['map'](_0xbcce3f=>_0x113a9d['fromRange'](_0xbcce3f)),_0x14592b=[];for(const _0x977d26 of _0x4f7b83)for(const _0x3191e4 of _0x977d26['getItems']({'shallow':!0x0}))_0x14592b['push'](_0x3191e4);for(const _0x206ee8 of _0x14592b)'$graveyard'!=_0x206ee8['root']['rootName']&&(_0x567472['setSelection'](_0x567472['createPositionAt'](_0x206ee8,0x0)),_0x35f028['commands']['get']('removeTableColumn')['refresh'](),_0x35f028['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3f401b=_0x44f26e['filter'](_0x3a6d2b=>'$graveyard'!=_0x3a6d2b['root']['rootName']);_0x3f401b['length']>0x0&&_0x567472['setSelection'](_0x3f401b);for(const _0x4ee7e7 of _0x44f26e)_0x4ee7e7['detach']();});}function _0x5df70c(_0x490774,_0xd47726){return _0xd47726['every'](_0x4784d2=>_0x490774['some'](_0x1ff0eb=>_0x1ff0eb['end']['isEqual'](_0x4784d2['start'])||_0x4784d2['end']['isEqual'](_0x1ff0eb['start'])));}function _0x5ede66(_0x2bb17f,_0x592607){return!_0x2bb17f['some'](_0x4eabc8=>_0x592607['some'](_0x3f2588=>_0x4eabc8['isIntersecting'](_0x3f2588)))&&_0x2bb17f['some'](_0x3dc41c=>_0x592607['some'](_0x3e0087=>_0x3dc41c['end']['isTouching'](_0x3e0087['start'])));}_0x35f028['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x170398,_0x58ebb4,_0x517bd9)=>{if(!_0x517bd9['options']['showSuggestionHighlights'])return;const _0x422cf2=_0x58ebb4['item'];if(!_0x422cf2)return;const _0x8d465d=_0x517bd9['mapper']['toViewElement'](_0x422cf2);function _0x8c749a(_0x2b48b0){return Array['isArray'](_0x2b48b0)?_0x2b48b0:[_0x2b48b0];}_0x8d465d&&'tableCell'===_0x422cf2['name']&&_0x1f32a8(_0x8d465d,_0x517bd9['writer'],(_0x48b079,_0x1863e9,_0x4bdb2d)=>_0x4bdb2d['addClass'](_0x8c749a(_0x1863e9['classes']),_0x48b079),(_0x57fe42,_0x20fa78,_0x54a164)=>_0x54a164['removeClass'](_0x8c749a(_0x20fa78['classes']),_0x57fe42));},{'priority':'highest'}),_0x5b794b['descriptionFactory']['registerDescriptionCallback'](_0x4e5ce8=>{if('insertion'!=_0x4e5ce8['type']&&'deletion'!=_0x4e5ce8['type'])return;const _0x3678c5=_0x4e5ce8['getContainedElement']();if(null!=_0x3678c5&&_0x3678c5['is']('element','table')){if('insertion'==_0x4e5ce8['type']){const _0x3a8ff5=_0x4e5ce8['getItems']()['filter'](_0x35674f=>_0x35674f['is']('$textProxy'))['map'](_0x485b8d=>_0x485b8d['data']);if(_0x3a8ff5['length'])return{'type':'insertion','content':o(_0x26563e,'*Insert:*\x20%0',o(_0x26563e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a8ff5['join']('\x20')+'\x22'))};}if('deletion'==_0x4e5ce8['type']){const _0x427707=_0x4e5ce8['getItems']()['filter'](_0x11386a=>_0x11386a['is']('$textProxy'))['map'](_0xe61271=>_0xe61271['data']);if(_0x427707['length'])return{'type':'deletion','content':o(_0x26563e,'*Remove:*\x20%0',o(_0x26563e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x427707['join']('\x20')+'\x22'))};}}}),_0x5b794b['descriptionFactory']['registerDescriptionCallback'](_0x347dbd=>{if('tableRow'==_0x347dbd['subType']){const _0x3c114a=_0x347dbd['getItems']()['filter'](_0x423b51=>_0x423b51['is']('$textProxy'))['map'](_0x2a9238=>_0x2a9238['data']),_0x5e19dd=this['_getSuggestionCoords'](_0x347dbd),_0x2522d1=_0x5e19dd['maxRow']-_0x5e19dd['minRow']+0x1;if('insertion'==_0x347dbd['type'])return _0x3c114a['length']?{'type':'insertion','content':o(_0x26563e,'*Insert:*\x20%0',o(_0x26563e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2522d1,'\x22'+_0x3c114a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26563e,'*Insert:*\x20%0',o(_0x26563e,'ELEMENT_TABLE_ROW',_0x2522d1))};if('deletion'==_0x347dbd['type'])return _0x3c114a['length']?{'type':'deletion','content':o(_0x26563e,'*Remove:*\x20%0',o(_0x26563e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2522d1,'\x22'+_0x3c114a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26563e,'*Remove:*\x20%0',o(_0x26563e,'ELEMENT_TABLE_ROW',_0x2522d1))};}if('tableColumn'==_0x347dbd['subType']){const _0xe09efb=_0x347dbd['getItems']()['filter'](_0x235a4f=>_0x235a4f['is']('$textProxy'))['map'](_0x552f4a=>_0x552f4a['data']),_0x2308fa=this['_getSuggestionCoords'](_0x347dbd),_0x12a75d=_0x2308fa['maxColumn']-_0x2308fa['minColumn']+0x1;if('insertion'==_0x347dbd['type'])return _0xe09efb['length']?{'type':'insertion','content':o(_0x26563e,'*Insert:*\x20%0',o(_0x26563e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x12a75d,'\x22'+_0xe09efb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x26563e,'*Insert:*\x20%0',o(_0x26563e,'ELEMENT_TABLE_COLUMN',_0x12a75d))};if('deletion'==_0x347dbd['type'])return _0xe09efb['length']?{'type':'deletion','content':o(_0x26563e,'*Remove:*\x20%0',o(_0x26563e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x12a75d,'\x22'+_0xe09efb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x26563e,'*Remove:*\x20%0',o(_0x26563e,'ELEMENT_TABLE_COLUMN',_0x12a75d))};}}),_0x5b794b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3930f4),_0x5b794b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3930f4),_0x5b794b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1e7fb3),_0x5b794b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1e7fb3),_0x5b794b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5df70c),_0x5b794b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5df70c),_0x5b794b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5ede66),_0x5b794b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5ede66);}['_acceptFormatSuggestionCallbackFactory'](){const _0x17849e=this['editor'],_0x4e1d4d=_0x17849e['model']['document']['selection'];return(_0x46fe6d,_0x4fb965)=>{_0x17849e['model']['change'](_0x4f85a0=>{const {commandName:_0x3077a3,commandParams:_0x1d5e3c}=_0x4fb965;let _0x369ac4=_0x46fe6d[0x0]['end']['nodeBefore'];_0x1d5e3c&&_0x1d5e3c[0x0]&&!0x1===_0x1d5e3c[0x0]['forceValue']&&(_0x369ac4=_0x46fe6d[0x0]['start']['nodeAfter']);const _0x33086b=_0x4f85a0['createRangeIn'](_0x369ac4);if('$graveyard'==_0x33086b['root']['rootName'])return;const _0x328a36=Array['from'](_0x4e1d4d['getRanges']())['map'](_0x13ecf1=>_0x113a9d['fromRange'](_0x13ecf1));_0x4f85a0['setSelection'](_0x33086b),_0x17849e['commands']['get'](_0x3077a3)['refresh'](),_0x1d5e3c['push']({'forceDefaultExecution':!0x0}),_0x17849e['execute'](_0x3077a3,..._0x1d5e3c);const _0x2e8a6b=_0x328a36['filter'](_0x4a33e2=>'$graveyard'!=_0x4a33e2['root']['rootName']);_0x2e8a6b['length']>0x0&&_0x4f85a0['setSelection'](_0x2e8a6b);for(const _0xff575a of _0x328a36)_0xff575a['detach']();});};}['_getCoordsForCells'](_0x1c7cbe){const _0x1437ce=this['editor']['plugins']['get']('TableUtils');let _0x2f0897=Number['MAX_SAFE_INTEGER'],_0x2b7e5e=Number['MIN_SAFE_INTEGER'],_0x2de428=Number['MAX_SAFE_INTEGER'],_0x56e484=Number['MIN_SAFE_INTEGER'];for(const _0x440b42 of _0x1c7cbe){if('$graveyard'==_0x440b42['root']['rootName'])continue;const {row:_0x231968,column:_0x15cf70}=_0x1437ce['getCellLocation'](_0x440b42),_0x5b3d50=_0x440b42['hasAttribute']('rowspan')?_0x440b42['getAttribute']('rowspan')-0x1:0x0,_0x5bb979=_0x440b42['hasAttribute']('colspan')?_0x440b42['getAttribute']('colspan')-0x1:0x0;_0x2f0897=_0x231968<_0x2f0897?_0x231968:_0x2f0897,_0x2b7e5e=_0x231968+_0x5b3d50>_0x2b7e5e?_0x231968+_0x5b3d50:_0x2b7e5e,_0x2de428=_0x15cf70<_0x2de428?_0x15cf70:_0x2de428,_0x56e484=_0x15cf70+_0x5bb979>_0x56e484?_0x15cf70+_0x5bb979:_0x56e484;}return{'minRow':_0x2f0897,'maxRow':_0x2b7e5e,'minColumn':_0x2de428,'maxColumn':_0x56e484};}['_setupColumnsRowsFixing'](){const _0x2bfc90=this['editor'],_0x2c4f68=_0x2bfc90['plugins']['get']('TrackChangesEditing'),_0x407d14=_0x2bfc90['plugins']['get']('TableUtils');_0x2bfc90['model']['document']['on']('change:data',()=>{const _0x53cf58=Array['from'](_0x2bfc90['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x313a90,data:_0x1e4b33}of _0x53cf58){const {group:_0x1069cd,id:_0x57fe11,subType:_0xdd0891}=_0x2c4f68['_splitMarkerName'](_0x313a90);if('suggestion'!=_0x1069cd)continue;if(null!=_0x1e4b33['oldRange'])continue;const _0x1d3f86=_0x2c4f68['getSuggestion'](_0x57fe11);this['_tablePostFixingSubtypes']['includes'](_0xdd0891)&&this['_tableSuggestions']['add'](_0x1d3f86);}},{'priority':'low'});const _0x42e26f=(_0x1f9753,_0x3e130b)=>{let _0x328ffb=!0x1;const _0x36c8b8=_0x3e130b['createRangeOn'](_0x1f9753),_0x1508bc=_0x1f9753['findAncestor']('table'),_0x1340a8=_0x407d14['getCellLocation'](_0x1f9753);for(const _0x4d11cb of this['_tableSuggestions']){const _0x150bbc=_0x4d11cb['subType'],_0x714ceb=_0x150bbc['startsWith']('tablePaste'),_0x1f5365=_0x150bbc['substr'](_0x714ceb?0xa:0x5),_0x139423=_0x1f5365['toLowerCase'](),_0x3f43f9=_0x139423['substr'](0x0,0x3)+'span',_0xdb82dc='min'+_0x1f5365,_0x2bba0a='max'+_0x1f5365;if(!_0x4d11cb['isInContent'])continue;if(_0x1508bc!=_0x4d11cb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4d11cb['isIntersectingWithRange'](_0x36c8b8))continue;const _0x8021c2=_0x1f9753['hasAttribute'](_0x3f43f9)?_0x1f9753['getAttribute'](_0x3f43f9)-0x1:0x0,_0x22b8c8=this['_getSuggestionCoords'](_0x4d11cb),_0xb56e55=_0x22b8c8[_0xdb82dc],_0x2fed05=_0x22b8c8[_0x2bba0a];_0xb56e55<=_0x1340a8[_0x139423]&&_0x1340a8[_0x139423]+_0x8021c2<=_0x2fed05&&(_0x4d11cb['addRange'](_0x36c8b8),_0x328ffb=!0x0);}return _0x328ffb;};_0x2bfc90['model']['document']['registerPostFixer'](_0x345fc7=>{let _0x5e7b02=!0x1;for(const _0x26b0d9 of _0x2bfc90['model']['document']['differ']['getChanges']())if('insert'==_0x26b0d9['type']){if('tableRow'==_0x26b0d9['name']){for(const _0x2c991b of _0x26b0d9['position']['nodeAfter']['getChildren']())_0x5e7b02=_0x5e7b02||_0x42e26f(_0x2c991b,_0x345fc7);}else'tableCell'==_0x26b0d9['name']&&(_0x5e7b02=_0x5e7b02||_0x42e26f(_0x26b0d9['position']['nodeAfter'],_0x345fc7));}return _0x5e7b02;});}['_getSuggestionCoords'](_0x4dbbb2){return this['_getCoordsForCells'](_0x4dbbb2['getRanges']()['map'](_0x4fb601=>_0x4fb601['start']['nodeAfter']));}}function Ee(_0x28e6fe){return Array['from'](new Set(_0x28e6fe)['values']());}class St extends _0x4df026{static get['requires'](){return[jt];}['afterInit'](){const _0x3110f6=this['editor'],_0x54177b=_0x3110f6['model']['document']['selection'],_0x3b7226=_0x3110f6['locale'];if(!_0x3110f6['plugins']['has']('TableEditing'))return;const _0x1dafda=_0x3110f6['plugins']['get']('TrackChangesEditing'),_0x3647e5=_0x3110f6['plugins']['get']('TableUtils'),_0xd2850b=_0x3110f6['plugins']['get'](jt);_0xd2850b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1dafda['enableCommand']('mergeTableCells',()=>{const _0x2167e6=_0x3647e5['getSelectionAffectedTableCells'](_0x3110f6['model']['document']['selection']);_0x3110f6['model']['change'](()=>{_0x1dafda['markMultiRangeBlockFormat'](_0x2167e6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3110f6['commands']['get']('mergeTableCells')['on']('execute',(_0x48220c,_0x4bae8f)=>{_0x3110f6['commands']['get']('trackChanges')['value']&&(_0x4bae8f['length']>0x0&&_0x4bae8f[_0x4bae8f['length']-0x1]&&_0x4bae8f[_0x4bae8f['length']-0x1]['forceDefaultExecution']||_0x1dafda['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x48220c['stop']());},{'priority':'highest'});for(const _0x2c1415 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5ee747=_0x3110f6['commands']['get'](_0x2c1415);_0x1dafda['enableCommand'](_0x2c1415,()=>{const _0x445278=_0x3110f6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a4ccc=>_0x1a4ccc['is']('element','tableCell')),_0x562537=_0x5ee747['value'];_0x3110f6['model']['change'](()=>{_0x1dafda['markMultiRangeBlockFormat']([_0x445278,_0x562537],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x24b2c6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x6e5960=_0x3110f6['commands']['get'](_0x24b2c6);_0x1dafda['enableCommand'](_0x24b2c6,()=>{const _0x410414=_0x3647e5['getSelectionAffectedTableCells'](_0x3110f6['model']['document']['selection'])[0x0],_0xe79df4=_0x410414['findAncestor']('table'),{column:_0x5ef7de,row:_0x500a15}=_0x3647e5['getCellLocation'](_0x410414);let _0x376def=[];if('horizontally'==_0x6e5960['direction']){const _0x4d6a01=_0x3647e5['createTableWalker'](_0xe79df4,{'startRow':_0x500a15,'endRow':_0x500a15,'includeAllSlots':!0x0});_0x376def=Array['from'](_0x4d6a01)['map'](_0x39fe45=>_0x39fe45['cell']);}else{const _0x56be1e=_0x3647e5['createTableWalker'](_0xe79df4,{'column':_0x5ef7de,'includeAllSlots':!0x0});_0x376def=Array['from'](_0x56be1e)['map'](_0x58baf7=>_0x58baf7['cell']);}_0x3110f6['model']['change'](_0x55dc80=>{_0x1dafda['markBlockFormat'](_0x55dc80['createRangeOn'](_0x410414),{'commandName':_0x24b2c6,'commandParams':[]},_0x376def,_0x24b2c6);});});}_0x1dafda['descriptionFactory']['registerDescriptionCallback'](_0x4558db=>{if('formatBlock'!=_0x4558db['type']&&'formatInline'!=_0x4558db['type'])return;const {data:_0x19cc36}=_0x4558db;return _0x19cc36&&'mergeTableCells'==_0x19cc36['commandName']?{'type':'format','content':o(_0x3b7226,'*Merge\x20cells*')}:void 0x0;}),_0x1dafda['descriptionFactory']['registerDescriptionCallback'](_0x1c31ac=>{if('formatBlock'!=_0x1c31ac['type']&&'formatInline'!=_0x1c31ac['type'])return;const {data:_0x3c7812}=_0x1c31ac;return _0x3c7812?'splitTableCellVertically'==_0x3c7812['commandName']?{'type':'format','content':o(_0x3b7226,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3c7812['commandName']?{'type':'format','content':o(_0x3b7226,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x51eb2e=_0xd2850b['_acceptFormatSuggestionCallbackFactory']();for(const _0x7da416 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1dafda['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x7da416,'accept',_0x51eb2e);for(const _0x292b3e of['splitTableCellVertically','splitTableCellHorizontally'])_0x1dafda['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x292b3e,'accept',_0x51eb2e);_0x1dafda['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1a00a3=>{_0x3110f6['model']['change'](_0xe3899c=>{const _0x5fa817=Array['from'](_0x54177b['getRanges']())['map'](_0x1c394d=>_0x113a9d['fromRange'](_0x1c394d));_0xe3899c['setSelection'](_0x1a00a3),_0x3110f6['commands']['get']('mergeTableCells')['refresh'](),_0x3110f6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x12e301=_0x5fa817['filter'](_0x1f8067=>'$graveyard'!=_0x1f8067['root']['rootName']);_0x12e301['length']>0x0&&_0xe3899c['setSelection'](_0x12e301);for(const _0x2a0c53 of _0x5fa817)_0x2a0c53['detach']();});});for(const _0x1bdb14 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x54d883=_0x3110f6['commands']['get'](_0x1bdb14);_0x54d883['on']('set:isEnabled',(_0x7b112e,_0x375cc5,_0x1c5786)=>{if(_0x1c5786){const _0x1cee60=_0x3110f6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x359a68=>_0x359a68['is']('element','tableCell'));this['_areMergableCells'](_0x54d883['value'],_0x1cee60)||(_0x7b112e['return']=!0x1,_0x7b112e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x147151=this['editor']['commands']['get']('mergeTableCells'),_0x374c4e=this['editor']['plugins']['get']('TableUtils');if(!_0x147151['isEnabled'])return!0x1;const _0x1a79b4=_0x374c4e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2dcd1e of _0x1a79b4)for(const _0x245860 of _0x1a79b4)if(_0x2dcd1e!=_0x245860&&!this['_areMergableCells'](_0x2dcd1e,_0x245860))return!0x1;return!0x0;}['_areMergableCells'](_0x23acb1,_0x1bc96e){const _0x4832c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x520757=this['editor']['model']['createRangeOn'](_0x23acb1),_0xaee27a=this['editor']['model']['createRangeOn'](_0x1bc96e),_0x240566=new Set(),_0x4cd249=new Set();for(const _0x3f6b16 of _0x4832c0['getSuggestions']())if(('insertion'==_0x3f6b16['type']||'deletion'==_0x3f6b16['type']||'mergeTableCells'==_0x3f6b16['subType'])&&_0x3f6b16['isInContent']){for(const _0x9cc269 of _0x3f6b16['getRanges']())_0x9cc269['containsRange'](_0x520757,!0x0)&&_0x240566['add'](_0x3f6b16['type']+':'+_0x3f6b16['author']['id']),_0x9cc269['containsRange'](_0xaee27a,!0x0)&&_0x4cd249['add'](_0x3f6b16['type']+':'+_0x3f6b16['author']['id']);}if(_0x240566['size']!=_0x4cd249['size'])return!0x1;for(const _0x1058df of _0x240566)if(!_0x4cd249['has'](_0x1058df))return!0x1;return!0x0;}}class At extends _0x4df026{static get['requires'](){return[jt];}['afterInit'](){const _0x17f1de=this['editor'];if(!_0x17f1de['plugins']['has']('TableEditing'))return;const _0x1de357=_0x17f1de['locale'],_0x134c1c=_0x17f1de['plugins']['get']('TrackChangesEditing');_0x134c1c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x134c1c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x134c1c['registerBlockAttribute']('headingRows'),_0x134c1c['registerBlockAttribute']('headingColumns'),_0x134c1c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1de357,'FORMAT_HEADER_ROW')),_0x134c1c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1de357,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2df265=this['editor']['plugins']['get']('TrackChangesEditing'),_0x577fba=this['editor']['plugins']['get']('TableUtils'),_0x2b57a2=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x6c3a3e({showActiveMarker:_0x5729dd=!0x0,setDataAttribute:_0x3ca245=!0x0}={}){return(_0x2cd76b,_0x32a644,_0x1d1c7b)=>{const {type:_0x337fdb,id:_0x1a63b8}=_0x2df265['_splitMarkerName'](_0x32a644['markerName']),_0x208b98=_0x2df265['getSuggestion'](_0x1a63b8),_0x5bf922=_0x208b98['data'];if('formatBlock'!=_0x208b98['type']||!_0x5bf922||'setTableColumnHeader'!=_0x5bf922['commandName'])return;if(_0x32a644['item'])return void _0x2cd76b['stop']();if(!_0x1d1c7b['consumable']['consume'](_0x32a644['markerRange'],_0x2cd76b['name']))return;const _0xe40f3b=_0x32a644['markerRange']['start']['nodeAfter'],_0x4bb539=_0x32a644['markerRange']['end']['nodeBefore'],_0x30be2b=_0xe40f3b['parent']['parent'],{column:_0x4c9b6f}=_0x577fba['getCellLocation'](_0xe40f3b),{column:_0xab1dad}=_0x577fba['getCellLocation'](_0x4bb539);for(let _0x510b02=_0x4c9b6f;_0x510b02<=_0xab1dad;_0x510b02++){const _0x1ec272=_0x577fba['createTableWalker'](_0x30be2b,{'column':_0x510b02,'includeAllSlots':!0x1});for(const _0x2956aa of _0x1ec272){const _0x44b5de=_0x2956aa['cell'],_0x4ec07d=_0x1d1c7b['mapper']['toViewElement'](_0x44b5de);_0x1d1c7b['writer']['addClass']('ck-suggestion-marker-'+_0x337fdb,_0x4ec07d),_0x3ca245&&_0x1d1c7b['writer']['setAttribute']('data-suggestion',_0x1a63b8,_0x4ec07d),_0x1d1c7b['mapper']['bindElementToMarker'](_0x4ec07d,_0x32a644['markerName']),_0x5729dd&&(_0x2df265['activeMarkers']['includes'](_0x32a644['markerName'])?_0x1d1c7b['writer']['addClass']('ck-suggestion-marker--active',_0x4ec07d):_0x1d1c7b['writer']['removeClass']('ck-suggestion-marker--active',_0x4ec07d));}}};}_0x2df265['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2b57a2),_0x2df265['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2b57a2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x6c3a3e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x6cd708,_0x355f8f,_0x4356b8)=>{_0x4356b8['options']['showSuggestionHighlights']&&_0x6c3a3e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x6cd708,_0x355f8f,_0x4356b8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4b4f15,_0x36865d,_0x43fe73)=>{const {type:_0x46cf1c,id:_0x32723b}=_0x2df265['_splitMarkerName'](_0x36865d['markerName']),_0x43b9a8=_0x2df265['getSuggestion'](_0x32723b),_0x2385f3=_0x43b9a8['data'];if('formatBlock'!=_0x43b9a8['type']||!_0x2385f3||'setTableColumnHeader'!=_0x2385f3['commandName'])return;const _0x2f5bba=_0x43fe73['mapper']['markerNameToElements'](_0x36865d['markerName']);if(_0x2f5bba){for(const _0x51aa0e of _0x2f5bba)_0x43fe73['writer']['removeClass']('ck-suggestion-marker-'+_0x46cf1c,_0x51aa0e),_0x43fe73['writer']['removeClass']('ck-suggestion-marker--active',_0x51aa0e),_0x43fe73['writer']['removeAttribute']('data-suggestion',_0x51aa0e),_0x43fe73['mapper']['unbindElementFromMarkerName'](_0x51aa0e,_0x36865d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53655e=this['editor'],_0x971835=_0x53655e['locale'];function _0x356074(_0xed5996){return{'type':'format','content':o(_0x971835,'*Format:*\x20%0',_0xed5996)};}_0x53655e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52afd7=>{if('formatBlock'!=_0x52afd7['type'])return;const {data:_0x2fb118}=_0x52afd7;if(_0x2fb118){if('setTableRowHeader'==_0x2fb118['commandName']){const _0x1e1daa=_0x2fb118['commandParams'][0x0]['forceValue'];return _0x356074(o(_0x971835,_0x1e1daa?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2fb118['commandName']){const _0x592930=_0x2fb118['commandParams'][0x0]['forceValue'];return _0x356074(o(_0x971835,_0x592930?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x5eb2c6=>[_0x5eb2c6,null]));class It extends _0x4df026{static get['requires'](){return[jt];}['afterInit'](){const _0x322656=this['editor'];if(!_0x322656['plugins']['has']('TableClipboard'))return;const _0x3e96ce=_0x322656['plugins']['get']('TrackChangesEditing'),_0x462e9f=_0x322656['plugins']['get']('TableUtils'),_0x5723cd=_0x322656['plugins']['get'](jt),_0x511819=_0x322656['plugins']['get']('TableClipboard');_0x5723cd['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x322656['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x322656['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3e15f7=null;_0x322656['model']['on']('insertContent',(_0x42b768,_0x14833a)=>{const [_0x9e5405,_0xe1a238]=_0x14833a,_0x5b4e84=_0x14833a[_0x14833a['length']-0x1];_0x5b4e84&&_0x5b4e84['forceDefaultExecution']||_0x3e96ce['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x44607c,_0x320852,_0x279bd4,_0x1d4ddc,_0x153d8c){if(_0x320852&&!_0x320852['is']('documentSelection'))return!0x1;const _0x24286b=_0x153d8c['getTableIfOnlyTableInContent'](_0x44607c,_0x279bd4);if(!_0x24286b||!he(_0x24286b,void 0x0,_0x1d4ddc))return!0x1;const _0x482d10=_0x1d4ddc['getSelectionAffectedTableCells'](_0x279bd4['document']['selection']);if(!_0x482d10['length'])return!0x1;const _0x2f3aee=_0x482d10[0x0]['findAncestor']('table'),_0x3de9a1=_0x1d4ddc['getRowIndexes'](_0x482d10),_0x21496b=_0x1d4ddc['getColumnIndexes'](_0x482d10),_0x79d646={'startRow':_0x3de9a1['first'],'endRow':_0x3de9a1['last'],'startColumn':_0x21496b['first'],'endColumn':_0x21496b['last']};return 0x1==_0x482d10['length']&&(_0x79d646['endRow']+=_0x1d4ddc['getRows'](_0x24286b)-0x1,_0x79d646['endColumn']+=_0x1d4ddc['getColumns'](_0x24286b)-0x1),he(_0x2f3aee,_0x79d646,_0x1d4ddc);}(_0x9e5405,_0xe1a238,_0x322656['model'],_0x462e9f,_0x511819)&&(_0x42b768['stop'](),_0x3e15f7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x322656['model']['change'](()=>{_0x322656['model']['insertContent'](_0x14833a[0x0],_0x14833a[0x1],_0x14833a[0x2],{'forceDefaultExecution':!0x0});const _0x2a347b=_0x2b8ef8(),{rowInsertionRanges:_0x2abcca,columnInsertionRanges:_0xe1db42,insertionRanges:_0x467c83,deletionRanges:_0x3e3cbf,cells:_0x452a45}=_0x3e15f7;_0x2abcca['length']&&_0x3e96ce['markMultiRangeInsertion'](_0x2abcca,'tablePasteRow',{'tablePasteChainId':_0x2a347b}),_0xe1db42['length']&&_0x3e96ce['markMultiRangeInsertion'](_0xe1db42,'tablePasteColumn',{'tablePasteChainId':_0x2a347b}),_0x467c83['length']&&(_0x3e96ce['markMultiRangeInsertion'](_0x467c83,'tablePaste',{'tablePasteChainId':_0x2a347b,'skipNestingCheck':!0x0}),_0x467c83['forEach'](_0x141b88=>_0x141b88['detach']?.())),_0x3e3cbf['length']&&(_0x3e96ce['markMultiRangeDeletion'](_0x3e3cbf,'tablePaste',{'tablePasteChainId':_0x2a347b,'skipNestingCheck':!0x0}),_0x3e3cbf['forEach'](_0x1e4717=>_0x1e4717['detach']?.()));const _0x1bd1f8=_0x3e96ce['markMultiRangeBlockFormat'](_0x452a45['map'](({element:_0x15907a})=>_0x15907a),{'formatGroupId':_0x2b8ef8()},[],'tablePasteCell',{'tablePasteChainId':_0x2a347b});if(_0x1bd1f8){const _0x5e5866=_0x1bd1f8['getMarkers'](),_0x1f694e=[];for(const {element:_0x23314e,attributes:_0x2162a0}of _0x452a45){if(!_0x2162a0)continue;const _0x9d01d4=_0x322656['model']['createRangeOn'](_0x23314e),_0x4a0f5a=_0x5e5866['find'](_0x1f3185=>_0x1f3185['getRange']()['isEqual'](_0x9d01d4));_0x4a0f5a&&_0x1f694e['push']([_0x4a0f5a['name'],_0x2162a0]);}_0x1f694e['length']&&_0x1bd1f8['setAttribute']('markerAttributes',Object['fromEntries'](_0x1f694e));}_0x3e15f7=null;}));},{'priority':_0x13a18b['high']+0xa}),_0x322656['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x11d701,_0x5c1b5c)=>{const [_0x4c196f,_0x5cb9e7,,_0x5bc8c9]=_0x5c1b5c;if(!_0x3e15f7)return;_0x11d701['stop']();const _0x368255=_0x4c196f['cell'],_0x359bd2=_0x5cb9e7,_0x283cda=Pe(_0x368255),_0x3c2ecb=Pe(_0x359bd2);_0x11d701['return']=_0x368255;let _0x488758=null,_0x2e4ebb=null;if(_0x3c2ecb||_0x283cda){if(_0x283cda&&!_0x3c2ecb){_0x5bc8c9['remove'](_0x368255['getChild'](0x0));for(const _0x5ba9ba of Array['from'](_0x359bd2['getChildren']()))_0x5bc8c9['insert'](_0x5ba9ba,_0x368255,'end');const _0x5debe9=_0x3e15f7['rowInsertionIndexes']['includes'](_0x4c196f['row']),_0x327d2a=_0x3e15f7['columnInsertionIndexes']['includes'](_0x4c196f['column']);_0x5debe9||_0x327d2a||(_0x488758=_0x113a9d['fromRange'](_0x5bc8c9['createRangeIn'](_0x368255)));}else _0x3c2ecb&&!_0x283cda&&(_0x2e4ebb=_0x5bc8c9['createRangeIn'](_0x368255));}else{const _0x351642=_0x5bc8c9['createElement']('tableCellSuggestion'),_0x52dd5e=_0x5bc8c9['createElement']('tableCellSuggestion');_0x5bc8c9['wrap'](_0x5bc8c9['createRangeIn'](_0x368255),_0x52dd5e),_0x5bc8c9['insert'](_0x351642,_0x368255,0x0);for(const _0x39901c of Array['from'](_0x359bd2['getChildren']()))_0x5bc8c9['insert'](_0x39901c,_0x351642,'end');_0x488758=_0x113a9d['fromRange'](_0x5bc8c9['createRangeOn'](_0x351642)),_0x2e4ebb=_0x113a9d['fromRange'](_0x5bc8c9['createRangeOn'](_0x52dd5e));}const _0x13fdce=Array['from'](_0x359bd2['getAttributes']())['filter'](([_0xc9e487])=>ge['includes'](_0xc9e487));_0x3e15f7['cells']['push']({'element':_0x368255,'attributes':_0x13fdce['length']?Object['fromEntries'](_0x13fdce):null}),_0x488758&&_0x3e15f7['insertionRanges']['push'](_0x488758),_0x2e4ebb&&_0x3e15f7['deletionRanges']['push'](_0x2e4ebb);},{'priority':'high'}),_0x462e9f['on']('insertColumns',(_0x5833a8,_0x5f1cca)=>{const [_0x2b8985,_0x34c2c9={}]=_0x5f1cca;if(!_0x3e15f7)return;const _0x494db9=_0x34c2c9['at']||0x0,_0xb4ef96=_0x34c2c9['columns']||0x1;_0x3e15f7['columnInsertionIndexes']=new Array(_0xb4ef96)['fill'](_0x494db9)['map']((_0x3a4ab4,_0x11c072)=>_0x3a4ab4+_0x11c072);for(const {cell:_0x4e9914}of _0x462e9f['createTableWalker'](_0x2b8985,{'startColumn':_0x494db9,'endColumn':_0x494db9+_0xb4ef96-0x1}))_0x3e15f7['columnInsertionRanges']['push'](_0x322656['model']['createRangeOn'](_0x4e9914));},{'priority':'low'}),_0x462e9f['on']('insertRows',(_0x2ae46c,_0x5f29a4)=>{const [_0x5f3d95,_0x41f6d4={}]=_0x5f29a4;if(!_0x3e15f7)return;const _0x5ac9e9=_0x41f6d4['at']||0x0,_0x4452db=_0x41f6d4['rows']||0x1;_0x3e15f7['rowInsertionIndexes']=new Array(_0x4452db)['fill'](_0x5ac9e9)['map']((_0x8c32c4,_0x200ffc)=>_0x8c32c4+_0x200ffc);for(const {cell:_0x42e6e1}of _0x462e9f['createTableWalker'](_0x5f3d95,{'startRow':_0x5ac9e9,'endRow':_0x5ac9e9+_0x4452db-0x1}))_0x3e15f7['rowInsertionRanges']['push'](_0x322656['model']['createRangeOn'](_0x42e6e1));},{'priority':'low'}),_0x3e96ce['descriptionFactory']['registerDescriptionCallback'](_0x575043=>{if(_0x575043['subType']&&_0x575043['subType']['startsWith']('tablePaste'))return _0x575043['previous']?{}:{'type':'insertion','content':o(_0x322656['locale'],'*Replace\x20table\x20cells*')};});const _0x46109a=()=>!0x1;for(const _0x7f065d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3e96ce['_suggestionFactory']['registerCustomCallback']('insertion',_0x7f065d,'join',_0x46109a),_0x3e96ce['_suggestionFactory']['registerCustomCallback']('deletion',_0x7f065d,'join',_0x46109a),_0x3e96ce['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x7f065d,'join',_0x46109a);_0x3e96ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x46109a),_0x3e96ce['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1b453a,_0x2f79e7,_0x4d7be8)=>{const _0x2dc9ab=_0x1b453a['map'](_0x52f685=>_0x52f685['getContainedElement']())['filter'](_0x1cc03a=>_0x1cc03a),_0x45a5fb=new Map(_0x2dc9ab['map'](_0x2af86d=>[_0x2af86d,null]));if(_0x3e15f7){for(const {element:_0x53bed3,attributes:_0x211d30}of _0x3e15f7['cells'])_0x211d30&&_0x45a5fb['set'](_0x53bed3,_0x211d30);}else{if(_0x4d7be8&&_0x4d7be8['markerAttributes'])for(const [_0x180b6c,_0x2e9add]of Object['entries'](_0x4d7be8['markerAttributes'])){const _0x7b627e=_0x322656['model']['markers']['get'](_0x180b6c),_0x5bc488=_0x7b627e?_0x7b627e['getRange']()['getContainedElement']():null;_0x5bc488&&_0x45a5fb['set'](_0x5bc488,_0x2e9add);}}_0x322656['model']['change'](_0x6849a8=>{for(const [_0x28df7d,_0x424473]of _0x45a5fb)_0x6849a8['setAttributes']({...Ce,..._0x424473},_0x28df7d);});});const _0x5090bf=(_0x45ddea,_0x221a3f)=>{_0x3e96ce['_suggestionFactory']['registerCustomCallback'](_0x45ddea,'tablePaste',_0x221a3f,(_0x18cec7,_0xa80fdb,_0x567219)=>{_0x322656['model']['change'](_0x416255=>{const _0xa05284=[];for(const _0x2c54d2 of _0x18cec7){const _0x2f508e=_0x2c54d2['start']['nodeAfter'];_0x2f508e['is']('element','tableCellSuggestion')&&_0xa05284['push'](_0x2f508e);}_0x3e96ce['_suggestionFactory']['getSuggestionCallback'](_0x45ddea,null,_0x221a3f)(_0x18cec7,_0xa80fdb,_0x567219);for(const _0x4117e5 of _0xa05284)'$graveyard'!=_0x4117e5['root']['rootName']&&_0x416255['unwrap'](_0x4117e5);});});};_0x5090bf('insertion','accept'),_0x5090bf('insertion','discard'),_0x5090bf('deletion','accept'),_0x5090bf('deletion','discard'),_0x3e96ce['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x58064a=>{const _0x481067=_0x58064a['map'](_0x188a54=>_0x188a54['getContainedElement']()),_0x5d926b=_0x481067[0x0]['findAncestor']('table'),{minRow:_0x30b461,maxRow:_0x298d79}=_0x5723cd['_getCoordsForCells'](_0x481067);_0x462e9f['removeRows'](_0x5d926b,{'at':_0x30b461,'rows':_0x298d79-_0x30b461+0x1});}),_0x3e96ce['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x137535=>{const _0x3e99a2=_0x137535['map'](_0x59d0bb=>_0x59d0bb['getContainedElement']()),_0x3fd8e3=_0x3e99a2[0x0]['findAncestor']('table'),{minColumn:_0x15f5c5,maxColumn:_0x522cd0}=_0x5723cd['_getCoordsForCells'](_0x3e99a2);_0x462e9f['removeColumns'](_0x3fd8e3,{'at':_0x15f5c5,'columns':_0x522cd0-_0x15f5c5+0x1});});const _0x267574=(_0x6d33f8,_0x2b807d)=>{if(!_0x2b807d['subType']||!_0x2b807d['subType']['startsWith']('tablePaste'))return;const _0x47ace5=_0x2b807d['attributes']['tablePasteChainId'],_0x4e79b5=_0x3e96ce['getSuggestions']()['filter'](_0x2a6617=>_0x2a6617['isInContent']&&_0x2a6617['attributes']&&_0x2a6617['attributes']['tablePasteChainId']==_0x47ace5);_0x4e79b5['length']&&_0x2b807d['getAllAdjacentSuggestions']()['length']!=_0x4e79b5['length']&&_0x4e79b5['reduce']((_0x6999a5,_0x419798)=>(_0x6999a5['next']=_0x419798,_0x419798['previous']=_0x6999a5,_0x419798));};function _0x48f76c(_0x2bbfbf,_0x413b58=!0x0){const {id:_0x2a3fa6}=_0x3e96ce['_splitMarkerName'](_0x2bbfbf['markerName']),_0x53bfbe=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5337e7=_0x3e96ce['activeMarkers']['includes'](_0x2bbfbf['markerName']);return _0x5337e7&&_0x53bfbe['push']('ck-suggestion-marker--active'),{'classes':_0x53bfbe,'attributes':{'data-suggestion':_0x2a3fa6},'priority':_0x5337e7&&_0x413b58?0xbc2:0xbb8};}_0x3e96ce['on']('suggestionLoaded',_0x267574,{'priority':'high'}),_0x3e96ce['on']('suggestionUnloaded',_0x267574,{'priority':'high'}),_0x322656['model']['document']['registerPostFixer'](()=>{let _0x1ef9a3=!0x1;const _0x169a08=Array['from'](_0x322656['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3205f0,data:_0x536110}of _0x169a08){const {group:_0x50c676,type:_0x1eb5c5,id:_0x3bbcb0}=_0x3e96ce['_splitMarkerName'](_0x3205f0);if('suggestion'!=_0x50c676||'deletion'!=_0x1eb5c5||_0x536110['oldRange'])continue;if(!_0x3e96ce['hasSuggestion'](_0x3bbcb0))continue;const _0x283d59=_0x3e96ce['getSuggestion'](_0x3bbcb0)['getRanges'](),_0xa0cb64=_0x322656['plugins']['get']('Users')['me'];for(const _0x5a16b3 of _0x3e96ce['getSuggestions']()){if(!_0x5a16b3['isInContent']||_0x5a16b3['author']!=_0xa0cb64)continue;if('formatBlock'!=_0x5a16b3['type']||'tablePasteCell'!=_0x5a16b3['subType'])continue;if(_0x5a16b3['getRanges']()['every'](_0x5e9bdf=>_0x283d59['some'](_0x4da46e=>_0x4da46e['containsRange'](_0x5e9bdf,!0x0)))){for(const _0x53332b of _0x5a16b3['getAllAdjacentSuggestions']())_0x53332b['isInContent']&&(_0x53332b['discard'](),_0x1ef9a3=!0x0);}}}return _0x1ef9a3;}),_0x322656['model']['document']['registerPostFixer'](_0x27b79e=>{const _0x33a23d=_0x322656['commands']['get']('redo');if(!_0x33a23d||!_0x33a23d['_createdBatches']['has'](_0x27b79e['batch']))return!0x1;let _0x5ba1b2=!0x1;const _0x20a2bd=_0x322656['plugins']['get']('Users')['me'],_0x637a69=_0x322656['model']['document']['differ']['getChanges'](),_0x168804=Array['from'](_0x322656['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3c8b92,data:_0x4d931a})=>{const {group:_0x14f3b8,subType:_0x5abab6,authorId:_0x42f629}=_0x3e96ce['_splitMarkerName'](_0x3c8b92);return'suggestion'==_0x14f3b8&&'tablePaste'==_0x5abab6&&_0x42f629==_0x20a2bd['id']&&!_0x4d931a['oldRange'];});for(const _0xfa1cdb of _0x637a69){if('insert'!=_0xfa1cdb['type']||'tableCellSuggestion'!=_0xfa1cdb['name']||0x1!=_0xfa1cdb['length'])continue;const _0x11afe5=_0x27b79e['createRange'](_0xfa1cdb['position'],_0xfa1cdb['position']['getShiftedBy'](0x1));if(!_0x168804['find'](({data:_0x49544e})=>_0x49544e['newRange']['isEqual'](_0x11afe5))){for(const {name:_0x240267,data:_0x39e9ee}of _0x168804)if(_0x11afe5['containsRange'](_0x39e9ee['newRange'])){_0x27b79e['updateMarker'](_0x240267,{'range':_0x11afe5}),_0x5ba1b2=!0x0;break;}}}return _0x5ba1b2;}),_0x322656['model']['document']['registerPostFixer'](_0x3a6018=>{let _0x5425c0=!0x1;const _0x5ed620=_0x322656['plugins']['get']('Users')['me'],_0x155c46=_0x3e96ce['getSuggestions']()['filter'](_0x599360=>_0x599360['isInContent']&&_0x599360['author']==_0x5ed620),_0x26cf62=new Set(),_0x21a79b=new Set();for(const _0x1ac55d of _0x155c46)if('tablePaste'==_0x1ac55d['subType'])for(const _0x53854e of _0x1ac55d['getMarkers']()){const _0x33c6d2=_0x53854e['getRange']()['getContainedElement']();if(_0x33c6d2){if(_0x33c6d2['is']('element','tableCellSuggestion')&&Pe(_0x33c6d2)){_0x1ac55d['removeMarker'](_0x53854e['name']),_0x26cf62['add'](_0x33c6d2),_0x5425c0=!0x0;const _0x2887e7=_0x33c6d2['nextSibling'],_0x298912=_0x33c6d2['previousSibling'],_0x352ae1=_0x2887e7&&_0x2887e7['is']('element','tableCellSuggestion'),_0x4d697d=_0x298912&&_0x298912['is']('element','tableCellSuggestion');_0x352ae1&&!_0x26cf62['has'](_0x2887e7)&&_0x21a79b['add'](_0x2887e7),_0x4d697d&&!_0x26cf62['has'](_0x298912)&&_0x21a79b['add'](_0x298912);}else _0x33c6d2['is']('element','paragraph')&&_0x33c6d2['isEmpty']&&(_0x1ac55d['removeMarker'](_0x53854e['name']),_0x5425c0=!0x0);}}else{if('tablePasteCell'==_0x1ac55d['subType']){if(!_0x1ac55d['attributes']||!_0x1ac55d['attributes']['tablePasteChainId'])continue;const _0xc5e68d=_0x1ac55d['attributes']['markerAttributes'];if(_0xc5e68d&&Object['keys'](_0xc5e68d)['length'])continue;const _0x311811=_0x1ac55d['attributes']['tablePasteChainId'];let _0x27647a=!0x0,_0x118e82=!0x0;for(const _0x4a1309 of _0x155c46)if(_0x4a1309['subType']&&_0x4a1309['subType']['startsWith']('tablePaste')){if(!_0x4a1309['attributes']['tablePasteChainId']){_0x118e82=!0x1;break;}if(_0x4a1309['id']!=_0x1ac55d['id']&&_0x4a1309['attributes']['tablePasteChainId']==_0x311811){_0x27647a=!0x1;break;}}_0x118e82&&_0x27647a&&(_0x1ac55d['removeMarkers'](),_0x5425c0=!0x0);}}for(const _0x5db5a4 of _0x26cf62)_0x3a6018['remove'](_0x5db5a4);for(const _0x14043e of _0x21a79b)_0x3a6018['unwrap'](_0x14043e);return _0x5425c0;}),_0x322656['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x27b1e6,_0x54fb20)=>_0x48f76c(_0x27b1e6),'converterPriority':'high'}),_0x322656['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x6c7e47,_0x6c58b0)=>_0x6c58b0['options']['showSuggestionHighlights']?_0x48f76c(_0x6c7e47,!0x1):null,'converterPriority':'high'});const _0x2fd50d=_0x322656['editing']['view'];this['listenTo'](_0x2fd50d['document'],'clipboardOutput',(_0xabb9a4,_0x3bee64)=>{const _0x2f3461=[];for(const _0x143c8d of _0x2fd50d['createRangeIn'](_0x3bee64['content'])['getItems']())_0x143c8d['is']('element','suggestion-td')&&_0x2f3461['push'](_0x143c8d);_0x2fd50d['change'](_0x53b80a=>{for(const _0x3c1039 of _0x2f3461)_0x53b80a['move'](_0x53b80a['createRangeIn'](_0x3c1039),_0x53b80a['createPositionBefore'](_0x3c1039)),_0x53b80a['remove'](_0x3c1039);});});}}function Pe(_0x4f1010){if(_0x4f1010['isEmpty'])return!0x0;const _0x577222=_0x4f1010['getChild'](0x0);return _0x577222['is']('element','paragraph')&&_0x577222['isEmpty'];}function he(_0x3fee41,_0x32cdd3={},_0x597b1f){for(const {isAnchor:_0x5a71ca,cellHeight:_0xb8c466,cellWidth:_0x4fcca3}of _0x597b1f['createTableWalker'](_0x3fee41,{'includeAllSlots':!0x0,..._0x32cdd3}))if(!_0x5a71ca||0x1!=_0xb8c466||0x1!=_0x4fcca3)return!0x1;return!0x0;}class vt extends _0x4df026{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2d1f6b=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d1f6b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2d1f6b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2d1f6b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d1f6b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2d1f6b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2d1f6b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3f96a5,_0x6cfb40){const _0x47d4e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21ebd0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x38eede=_0x6cfb40['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1d9747=_0x21ebd0['getColumnGroupElement'](_0x38eede);let _0x486c58=_0x1d9747?_0x21ebd0['getTableColumnsWidths'](_0x1d9747):null,_0x32a0ce=_0x38eede['getAttribute']('tableWidth')||null;const _0x58cc9e=_0x6cfb40['tableWidth']||_0x32a0ce,_0x466176=_0x6cfb40['columnWidths']||_0x486c58,_0x42f9fb=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f5fc7 of _0x47d4e1['getSuggestions']()){const _0x43fb6e=_0x1f5fc7['getContainedElement']();if('resizeTable'===_0x1f5fc7['subType']&&_0x43fb6e===_0x38eede){_0x1f5fc7['author']!==_0x42f9fb&&_0x1f5fc7['discard']();const _0x2dd990=_0x1f5fc7['data']['commandParams'];_0x32a0ce=_0x2dd990[0x0]['tableWidth'],_0x486c58=_0x2dd990[0x0]['columnWidths'];break;}}_0x3f96a5({'table':_0x38eede,'tableWidth':_0x58cc9e,'columnWidths':_0x466176}),_0x47d4e1['markBlockFormat'](_0x38eede,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x32a0ce,'columnWidths':_0x486c58}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4bd2ac){if('formatBlock'!=_0x4bd2ac['type']&&'formatInline'!=_0x4bd2ac['type'])return;const {data:_0x9d67ab}=_0x4bd2ac;if(_0x9d67ab&&'resizeTable'===_0x9d67ab['formatGroupId']){const _0x3008cc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3008cc)};}}}class Ct extends _0x4df026{['afterInit'](){const _0x3001da=this['editor'];_0x3001da['plugins']['has']('Template')&&_0x3001da['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x4df026{['afterInit'](){const _0x148288=this['editor'];if(!_0x148288['commands']['get']('insertTableOfContents'))return;_0x148288['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xb5a5a6=_0x148288['plugins']['get']('TrackChangesEditing'),_0x38fb2d=_0x148288['locale'];_0xb5a5a6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5e242c=>o(_0x38fb2d,'ELEMENT_TABLE_OF_CONTENTS',_0x5e242c));}}class Dt extends _0x4df026{['afterInit'](){const _0x5315b7=this['editor'];if(!_0x5315b7['plugins']['has']('Title'))return;const _0x80ac6b=_0x5315b7['plugins']['get']('TrackChangesEditing');_0x80ac6b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5315b7['locale'],'ELEMENT_TITLE')),_0x5315b7['model']['document']['registerPostFixer'](_0x15310b=>{let _0x41ce38=!0x1;const _0x580c01=Array['from'](_0x5315b7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1dcd8a,data:_0x3158af}of _0x580c01){const {group:_0x43434a}=_0x80ac6b['_splitMarkerName'](_0x1dcd8a);if('suggestion'!==_0x43434a||!_0x3158af['newRange'])continue;const _0x5d930f=_0x3158af['newRange'],_0x37aa5f=_0x5d930f['end']['nodeBefore'];if(!_0x37aa5f||!_0x37aa5f['is']('element','title-content'))continue;if(!_0x5d930f['start']['isTouching'](_0x5d930f['end']))continue;const _0x28b0b8=_0x5315b7['model']['schema']['getNearestSelectionRange'](_0x5d930f['end'],'forward');if(_0x28b0b8&&_0x28b0b8['isCollapsed']){const _0x4124f4=_0x15310b['createRange'](_0x5d930f['start'],_0x28b0b8['start']);_0x4124f4['isEqual'](_0x5d930f)||(_0x15310b['updateMarker'](_0x1dcd8a,{'range':_0x4124f4}),_0x41ce38=!0x0);}_0x41ce38||(_0x15310b['removeMarker'](_0x1dcd8a),_0x41ce38=!0x0);}return _0x41ce38;});}}class Nt extends _0x4df026{['afterInit'](){const _0x1ae849=this['editor'],_0x2bf987=_0x1ae849['plugins']['get']('TrackChangesEditing');_0x1ae849['plugins']['has']('UndoEditing')&&(_0x2bf987['enableCommand']('undo'),_0x2bf987['enableCommand']('redo'));}}class Mt extends _0x4df026{static get['requires'](){return[jt];}['afterInit'](){const _0x1d08ec=this['editor'];if(!_0x1d08ec['plugins']['has']('TableCaptionEditing'))return;_0x1d08ec['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4df026{['tableProperties'];['tableCellProperties'];constructor(_0x11478a){super(_0x11478a),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0xc8fdf4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x45b69c of this['tableProperties'])_0xc8fdf4['enableCommand'](_0x45b69c,(_0x38da31,_0x58d451)=>{const _0x1e48b3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x45b69c,[_0x1e48b3],this['tableProperties'],'tableProperties',_0x38da31,_0x58d451);});_0xc8fdf4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xc8fdf4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc8fdf4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x467050,_0x1eac69)=>this['handleDiscardAction'](this['tableProperties'],_0x467050,_0x1eac69)),_0xc8fdf4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x20a541 of this['tableCellProperties'])_0xc8fdf4['enableCommand'](_0x20a541,(_0x167cb2,_0x151ea2)=>{const _0x313926=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x20a541,_0x313926,this['tableCellProperties'],'tableCellProperties',_0x167cb2,_0x151ea2);});_0xc8fdf4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xc8fdf4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc8fdf4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x41b4f1,_0x5eebf9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x41b4f1,_0x5eebf9)),_0xc8fdf4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xc8fdf4['descriptionFactory']['registerDescriptionCallback'](_0x1e29db=>this['handleSuggestionDescription'](_0x1e29db));}['_handlePropertyChange'](_0x174e87,_0x3ea864,_0x4f02f2,_0x383e46,_0x596bad,_0x246f8a){const _0x2b9736=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x246f8a['batch'],()=>{for(const _0xd615ab of _0x3ea864){if(this['_getSuggestion'](_0xd615ab,_0x383e46))_0x596bad(_0x246f8a);else{const _0x3e3af3={};for(const _0x384f42 of _0x4f02f2){const _0x38dc97=_0xd615ab['getAttribute'](_0x384f42);void 0x0!==_0x38dc97&&(_0x3e3af3[_0x384f42]=_0x38dc97);}_0x596bad(_0x246f8a),_0x2b9736['markBlockFormat'](_0xd615ab,{'commandParams':[_0x3e3af3]},[],_0x383e46);}}});}['handleDiscardAction'](_0x33951c,_0x1f8536,_0x36434e){const _0x1414d=_0x1f8536[0x0]['start']['nodeAfter'],_0x34167e=_0x36434e['commandParams'][0x0];this['editor']['model']['change'](_0x3b14e2=>{for(const _0x205528 of _0x33951c)void 0x0!==_0x34167e[_0x205528]?_0x3b14e2['setAttribute'](_0x205528,_0x34167e[_0x205528],_0x1414d):_0x3b14e2['removeAttribute'](_0x205528,_0x1414d);});}['handleSuggestionDescription'](_0x1c795b){if(_0x1c795b['data'])switch(_0x1c795b['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'](_0x2b498c,_0x4c0c59){const _0x167935=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x43e7a9 of _0x167935['getSuggestions']({'skipNotAttached':!0x0})){const _0x38b364=_0x43e7a9['getContainedElement']();if(_0x43e7a9['subType']===_0x4c0c59&&_0x38b364===_0x2b498c)return _0x43e7a9;}return null;}}const m='$elementName';class p extends _0x4df026{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x19eb47,_0x328cff,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,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x2a9ea3){function _0x21d2b8(_0x297863){return _0x297863['map'](_0x52ea36=>String['fromCharCode'](_0x52ea36))['join']('');}super(_0x2a9ea3),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x57cd67,_0x25c4da,_0x248ce4,_0x2f8ba4)=>{this['_model']['change'](()=>{for(const _0x5c887d of[..._0x2f8ba4,..._0x248ce4])this['_model']['markers']['has'](_0x5c887d)&&_0x2a9ea3['editing']['reconvertMarker'](_0x5c887d);});}),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']=_0x2a9ea3['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(),_0x2a9ea3['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a9ea3['config']['get']('trackChanges.trackFormatChanges'),_0x2a9ea3['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a9ea3['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x2a9ea3,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x21d2b8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x21d2b8([0x34,0x30,0x34,0x38,0x31,0x32,0x32,0x36]);}['init'](){const _0x17e611=this['editor'],_0x1ce4f9=(_0x2bfce6,_0x3074f9)=>{if('attribute'!=_0x2bfce6)return'ck-suggestion-marker-'+_0x2bfce6;const _0x51a9f7=_0x3074f9['split']('|')[0x0];return this['_isBlockAttribute'](_0x51a9f7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x17e611['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1aa19d=>{const {id:_0x39d069,type:_0x2e6c0a,subType:_0x3c6eb9}=this['_splitMarkerName'](_0x1aa19d['markerName']),_0x2a9bba=['ck-suggestion-marker',_0x1ce4f9(_0x2e6c0a,_0x3c6eb9)];let _0x2966fc=0xbb8;return this['activeMarkers']['includes'](_0x1aa19d['markerName'])&&(_0x2a9bba['push']('ck-suggestion-marker--active'),_0x2966fc=0xbc2),'deletion'==_0x2e6c0a&&(_0x2966fc+=0x5),{'classes':_0x2a9bba,'attributes':{'data-suggestion':_0x39d069},'priority':_0x2966fc};}}),_0x17e611['conversion']['for']('dataDowncast')['add'](_0x189b49=>{_0x189b49['on']('addMarker:suggestion',(_0x51bfb0,_0x52f827,_0x2e7258)=>{if(!_0x2e7258['options']['showSuggestionHighlights'])return;const _0x59197d=_0x52f827['item'];if(!_0x59197d)return;const _0x448fce=_0x2e7258['mapper']['toViewElement'](_0x59197d);_0x17e611['model']['schema']['isObject'](_0x59197d)&&_0x448fce&&!_0x448fce['getCustomProperty']('widget')&&_0x448fce['is']('containerElement')&&_0xcc1995(_0x448fce,_0x2e7258['writer']);},{'priority':'high'});}),_0x17e611['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x51d1bf,_0x495345)=>{if(!_0x495345['options']['showSuggestionHighlights'])return null;const {type:_0x3641e2,subType:_0x3df2ad}=this['_splitMarkerName'](_0x51d1bf['markerName']);return{'classes':['ck-suggestion-marker',_0x1ce4f9(_0x3641e2,_0x3df2ad)],'priority':0xbb8};}});const _0x2d08b5=({showActiveMarkers:_0xba020a=!0x0,isAttributeSuggestion:_0x499e9e=!0x1}={})=>(_0x28ac69,_0x291d03,_0x329279)=>{if(!_0x291d03['item'])return;const {id:_0x145b42}=this['_splitMarkerName'](_0x291d03['markerName']);if(_0x499e9e){const _0xabc6f7=this['_suggestions']['get'](_0x145b42),_0x5f594f=this['_getAttributeKey'](_0xabc6f7);if(!this['_isBlockAttribute'](_0x5f594f))return;}if(_0x291d03['item']['is']('selection'))return void _0x329279['consumable']['consume'](_0x291d03['item'],_0x28ac69['name']);const _0x2fbf6f=_0x329279['mapper']['toViewElement'](_0x291d03['item']);if(_0x291d03['item']['is']('element')&&_0x17e611['model']['schema']['isBlock'](_0x291d03['item'])&&!_0x2fbf6f['getCustomProperty']('addHighlight')){_0x329279['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2fbf6f),_0x329279['writer']['setAttribute']('data-suggestion',_0x145b42,_0x2fbf6f),_0x329279['mapper']['bindElementToMarker'](_0x2fbf6f,_0x291d03['markerName']),_0xba020a&&(this['activeMarkers']['includes'](_0x291d03['markerName'])?_0x329279['writer']['addClass']('ck-suggestion-marker--active',_0x2fbf6f):_0x329279['writer']['removeClass']('ck-suggestion-marker--active',_0x2fbf6f));for(const _0x322f2f of _0x17e611['model']['createRangeIn'](_0x291d03['item'])['getItems']())_0x329279['consumable']['consume'](_0x322f2f,_0x28ac69['name']);_0x329279['consumable']['consume'](_0x291d03['item'],_0x28ac69['name']);}};_0x17e611['conversion']['for']('dataDowncast')['add'](_0x56bc4d=>{_0x56bc4d['on']('addMarker:suggestion:formatBlock',(_0x4cf746,_0x467f20,_0x42afc4)=>{_0x42afc4['options']['showSuggestionHighlights']&&_0x2d08b5({'showActiveMarkers':!0x1})(_0x4cf746,_0x467f20,_0x42afc4);},{'priority':'highest'});}),_0x17e611['conversion']['for']('dataDowncast')['add'](_0x1e1347=>{_0x1e1347['on']('addMarker:suggestion:attribute',(_0x3bb467,_0x16240a,_0x4a24ba)=>{_0x4a24ba['options']['showSuggestionHighlights']&&_0x2d08b5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3bb467,_0x16240a,_0x4a24ba);},{'priority':'highest'});}),_0x17e611['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3d50f4,_0x515686)=>_0x515686['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3d50f4['substr'](0xb)}}),_0x17e611['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4d3f1a,{writer:_0x52fcdf})=>{let _0x551986='suggestion:'+_0x4d3f1a['getAttribute']('suggestion-type')+':'+_0x4d3f1a['getAttribute']('id');return _0x4d3f1a['getAttribute']('marker-count')&&(_0x551986+=':'+_0x4d3f1a['getAttribute']('marker-count')),_0x52fcdf['createElement']('$marker',{'data-name':_0x551986});}}),_0x17e611['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x17e611['conversion']['for']('editingDowncast')['add'](_0xc309c6=>{_0xc309c6['on']('addMarker:suggestion:formatBlock',_0x2d08b5(),{'priority':'high'});}),_0x17e611['conversion']['for']('editingDowncast')['add'](_0x348fae=>{_0x348fae['on']('addMarker:suggestion:attribute',_0x2d08b5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x17e611['conversion']['for']('editingDowncast')['add'](_0x5a8db2=>{_0x5a8db2['on']('removeMarker:suggestion:formatBlock',(_0x4a0264,_0x38f188,_0x1aac33)=>{const _0x4bb331=_0x1aac33['mapper']['markerNameToElements'](_0x38f188['markerName']);if(_0x4bb331){for(const _0xf5a93e of _0x4bb331)_0xf5a93e['getCustomProperty']('addHighlight')||(_0x1aac33['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xf5a93e),_0x1aac33['writer']['removeAttribute']('data-suggestion',_0xf5a93e),_0x1aac33['mapper']['unbindElementFromMarkerName'](_0xf5a93e,_0x38f188['markerName']));}},{'priority':'high'});}),_0x17e611['conversion']['for']('editingDowncast')['add'](_0x21ae4f=>{_0x21ae4f['on']('removeMarker:suggestion:attribute',(_0x292e77,_0x195658,_0x4bfaf7)=>{const _0x4c85ab=_0x4bfaf7['mapper']['markerNameToElements'](_0x195658['markerName']);if(!_0x4c85ab)return;const {id:_0x3b117e}=this['_splitMarkerName'](_0x195658['markerName']),_0x29936a=this['_suggestions']['get'](_0x3b117e),_0x10ba0c=this['_getAttributeKey'](_0x29936a);if(this['_isBlockAttribute'](_0x10ba0c)){for(const _0x286167 of _0x4c85ab)_0x286167['getCustomProperty']('addHighlight')||(_0x4bfaf7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x286167),_0x4bfaf7['writer']['removeAttribute']('data-suggestion',_0x286167),_0x4bfaf7['mapper']['unbindElementFromMarkerName'](_0x286167,_0x195658['markerName']));}},{'priority':'high'});}),_0x17e611['model']['document']['registerPostFixer'](_0x3e2158=>{let _0x1f2d3c=!0x1;const _0x57a7c0=Array['from'](_0x17e611['model']['document']['differ']['getChangedMarkers']()),_0x3a587b=new Set();for(const {name:_0x2adca9,data:_0x1029d9}of _0x57a7c0){const {group:_0xf5f4d3,type:_0x4683af,subType:_0x87551e,id:_0x9eb807}=this['_splitMarkerName'](_0x2adca9);if('suggestion'!==_0xf5f4d3)continue;const _0x124347=this['_suggestions']['get'](_0x9eb807);if(null!=_0x1029d9['newRange']){'formatInline'==_0x4683af&&(_0x1f2d3c=_0x1f2d3c||Et(_0x1029d9['newRange'],_0x2adca9,_0x3e2158,_0x17e611['model']['schema']));const _0x433572='attribute'==_0x4683af&&this['_isBlockAttribute'](_0x87551e['split']('|')[0x0]);if(_0x1029d9['newRange']['isCollapsed']||'$graveyard'==_0x1029d9['newRange']['root']['rootName']||'formatBlock'==_0x4683af&&!Ut(_0x1029d9['newRange'])||_0x433572&&!Ut(_0x1029d9['newRange'])||'deletion'==_0x4683af&&!(!Tt(_0x498171=_0x1029d9['newRange'])&&!function(_0x5317c1){return _0x5317c1['start']['parent']==_0x5317c1['end']['nodeBefore']&&_0x5317c1['start']['isAtEnd'];}(_0x498171)))_0x3e2158['removeMarker'](_0x2adca9),_0x1f2d3c=!0x0;else{if(!_0x124347||!_0x124347['isInContent'])continue;_0x3a587b['add'](_0x124347);}}}var _0x498171;return _0x3a587b['size']>0x0&&(_0x1f2d3c=!!this['_joinWithAdjacentSuggestions'](_0x3a587b)||_0x1f2d3c),_0x1f2d3c;}),_0x17e611['model']['document']['registerPostFixer'](_0x43079b=>{let _0x36b21a=!0x1;for(const _0x4840e5 of _0x17e611['model']['document']['differ']['getChanges']())if('insert'==_0x4840e5['type'])for(const _0x43f766 of this['_suggestions']['values']()){if(_0x43f766['isMultiRange']||!_0x43f766['isInContent'])continue;const _0x321ca4='formatBlock'==_0x43f766['type'],_0xff59d=this['_getAttributeKey'](_0x43f766),_0x13c59d=_0xff59d&&this['_isBlockAttribute'](_0xff59d);if(!_0x321ca4&&!_0x13c59d)continue;const _0xbcdb0d=_0x43f766['getFirstRange']();if(_0xbcdb0d['start']['parent']!=_0xbcdb0d['end']['parent']&&!_0xbcdb0d['end']['isAtEnd']){const _0x4e09ba=_0x17e611['model']['createPositionAt'](_0xbcdb0d['start']['nodeAfter'],'end'),_0xca9650=_0x17e611['model']['createRange'](_0xbcdb0d['start'],_0x4e09ba);_0x43079b['updateMarker'](_0x43f766['getFirstMarker'](),{'range':_0xca9650}),_0x36b21a=!0x0;}}return _0x36b21a;}),_0x17e611['model']['document']['registerPostFixer'](_0x3c44a3=>this['_processAttributeChanges'](_0x3c44a3)),_0x17e611['model']['document']['registerPostFixer'](_0x587224=>!_0x587224['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x587224)),_0x17e611['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x17e611['model']['document']['on']('change:data',(_0x10a57c,_0x4cfa95)=>{if(!_0x4cfa95['isLocal']||_0x4cfa95['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x401d10=_0x17e611['model']['document']['differ']['getChanges']();if(0x0==_0x401d10['length'])return;const _0x4d07bb=[],_0x43151b=_0x401d10['filter'](_0x5b5d48=>'attribute'==_0x5b5d48['type']),_0x1ab4e2=_0x401d10['filter'](_0x199b80=>'insert'==_0x199b80['type']&&'$text'!=_0x199b80['name']);for(const _0x4270ae of _0x43151b)this['_isRegisteredAttribute'](_0x4270ae['attributeKey'])&&_0x4d07bb['push']({'key':_0x4270ae['attributeKey'],'newValue':_0x4270ae['attributeNewValue'],'oldValue':_0x4270ae['attributeOldValue'],'range':Ot(_0x4270ae['range'],_0x17e611['model'])});for(const _0x1e75e0 of _0x1ab4e2){if('rename'!=_0x1e75e0['action']&&'refresh'!=_0x1e75e0['action'])continue;const _0x1cd295=Gt(_0x1e75e0['position']['nodeAfter'],_0x17e611['model']),_0x70c9b1=_0x1e75e0['before'];'rename'==_0x1e75e0['action']&&_0x4d07bb['push']({'key':m,'newValue':_0x1e75e0['name'],'oldValue':_0x70c9b1['name'],'range':_0x1cd295});for(const [_0x52d3a8,_0x15abff]of _0x70c9b1['attributes']){if(!this['_isRegisteredAttribute'](_0x52d3a8))continue;const _0x5d0f6a=_0x1e75e0['attributes']['get'](_0x52d3a8);_0x15abff!==_0x5d0f6a&&_0x4d07bb['push']({'key':_0x52d3a8,'newValue':_0x5d0f6a,'oldValue':_0x15abff,'range':_0x1cd295});}for(const [_0x528c66,_0x12a3c0]of _0x1e75e0['attributes'])this['_isRegisteredAttribute'](_0x528c66)&&(_0x70c9b1['attributes']['has'](_0x528c66)||_0x4d07bb['push']({'key':_0x528c66,'newValue':_0x12a3c0,'oldValue':null,'range':_0x1cd295}));}0x0!=_0x4d07bb['length']&&_0x17e611['model']['enqueueChange'](_0x4cfa95,_0x6fc1ef=>{const _0x5ce76e=_0x2b8ef8();for(const {range:_0x170f8c,key:_0x5a6d36,oldValue:_0x15bfac,newValue:_0x387af7}of _0x4d07bb)this['markAttributeChange'](_0x170f8c,_0x5a6d36,_0x15bfac,_0x387af7,{'groupId':_0x5ce76e});this['_reduceExistingSuggestions'](_0x6fc1ef,_0x4d07bb);});},{'priority':'lowest'}),_0x17e611['model']['markers']['on']('update:suggestion',(_0xebef40,_0x232374,_0x44b409)=>{if(null==_0x44b409){const {id:_0x58c62e}=this['_splitMarkerName'](_0x232374['name']),_0x100f26=this['_suggestions']['get'](_0x58c62e);_0x100f26&&_0x100f26['addMarkerName'](_0x232374['name']);}}),_0x17e611['model']['document']['on']('change:data',()=>{const _0x4c2d97=Array['from'](_0x17e611['model']['document']['differ']['getChangedMarkers']())['filter'](_0x55afc5=>'suggestion'===this['_splitMarkerName'](_0x55afc5['name'])['group']);if(0x0===_0x4c2d97['length'])return;_0x4c2d97['sort']((_0x2f5432,_0x52e057)=>{const _0x730ac3=_0x2f5432['data']['oldRange'],_0x221a89=_0x52e057['data']['oldRange'];return null===_0x730ac3&&null===_0x221a89?0x0:null===_0x730ac3&&null!==_0x221a89?-0x1:null!==_0x730ac3&&null===_0x221a89?0x1:_0x730ac3['start']['isBefore'](_0x221a89['start'])?-0x1:0x1;});const _0x53234a=new Set(),_0x56a172=new Set();for(const {name:_0x5b0bee,data:_0x76fe9f}of _0x4c2d97){const {id:_0x411927}=this['_splitMarkerName'](_0x5b0bee);if(null===_0x76fe9f['oldRange']){const _0x3c3cfe=this['_handleNewSuggestionMarker'](_0x5b0bee);_0x56a172['add'](_0x3c3cfe);}else{const _0x396941=this['_suggestions']['get'](_0x411927);null!==_0x76fe9f['newRange']||_0x396941['isInContent']?(_0x53234a['add'](_0x396941['head']),_0x56a172['add'](_0x396941)):this['_removeSuggestion'](_0x396941);}}_0x56a172['size']>0x0&&this['_refreshSuggestionsChain'](_0x56a172);for(const _0x496870 of _0x53234a)this['fire']('suggestionChanged',_0x496870);}),_0x17e611['model']['on']('applyOperation',(_0x48743f,_0x28f9f5)=>{const _0x16051a=_0x28f9f5[0x0];if(!this['_suggestions']['size'])return;if(!_0x16051a['isDocumentOperation'])return;if(_0x16051a['batch']['isUndo']||!_0x16051a['batch']['isLocal'])return;let _0x33bcd3,_0x5b4d5f;switch(_0x16051a['type']){case'insert':_0x33bcd3=_0x17e611['model']['createPositionAt'](_0x16051a['position']),_0x5b4d5f=_0x33bcd3['getShiftedBy'](_0x16051a['howMany']);break;case'split':_0x33bcd3=_0x17e611['model']['createPositionAt'](_0x16051a['splitPosition']),_0x5b4d5f=_0x17e611['model']['createPositionAt'](_0x16051a['moveTargetPosition']);break;case'move':_0x33bcd3=_0x17e611['model']['createPositionAt'](_0x16051a['targetPosition']),_0x5b4d5f=_0x33bcd3['getShiftedBy'](_0x16051a['howMany']);break;default:return;}const _0xbfc93b=_0x17e611['model']['createRange'](_0x33bcd3,_0x5b4d5f);_0x17e611['model']['change'](()=>{for(const {suggestion:_0x3e5802,meta:_0x31d393}of this['_findSuggestions'](_0xbfc93b)){if(_0x3e5802['isMultiRange'])continue;if('formatInline'==_0x3e5802['type'])continue;const _0x46cf3b=this['_getAttributeKey'](_0x3e5802);if(_0x46cf3b&&this['_isBlockAttribute'](_0x46cf3b)&&'split'!=_0x16051a['type'])continue;const _0x3ce8ad=_0x3e5802['data']&&_0x3e5802['data']['multipleBlocks'];('formatBlock'!=_0x3e5802['type']||'split'==_0x16051a['type']&&!_0x3ce8ad)&&(_0x31d393['containsRangeInObject']||'insertion'==_0x3e5802['type']&&_0x31d393['isOwn']||_0x3e5802['getFirstRange']()['containsRange'](_0xbfc93b)&&this['_breakSuggestionMarker'](_0x3e5802,_0x33bcd3,_0x5b4d5f));}});},{'priority':'lowest'}),_0x17e611['model']['on']('deleteContent',(_0x4bcace,_0x2a0cb7)=>{const _0x32707a=_0x2a0cb7[0x0],_0x2ee9b1=_0x2a0cb7[0x1];if(_0x2ee9b1&&_0x2ee9b1['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x32707a['isCollapsed'])return;const _0x3ea2c1=_0x17e611['model']['schema'],{start:_0x459ccc,end:_0x8581a1}=_0x32707a['getFirstRange'](),_0x4edbbe=_0x459ccc['nodeAfter']&&_0x3ea2c1['isLimit'](_0x459ccc['nodeAfter'])?null:_0x3ea2c1['getNearestSelectionRange'](_0x459ccc,'forward'),_0x38bce5=_0x8581a1['nodeBefore']&&_0x3ea2c1['isLimit'](_0x8581a1['nodeBefore'])?null:_0x3ea2c1['getNearestSelectionRange'](_0x8581a1,'backward'),_0x427e78=_0x17e611['model']['createRange'](_0x4edbbe?_0x4edbbe['start']:_0x459ccc,_0x38bce5?_0x38bce5['end']:_0x8581a1);_0x17e611['model']['change'](_0x387916=>{this['markDeletion'](_0x427e78);const _0x3bca0f=_0x17e611['model']['schema']['getNearestSelectionRange'](_0x427e78['start']);_0x32707a['is']('documentSelection')?_0x387916['setSelection'](_0x3bca0f):_0x32707a['setTo'](_0x3bca0f);}),_0x4bcace['stop']();},{'priority':_0x13a18b['normal']+0xa}),_0x17e611['model']['on']('insertContent',(_0x3961ba,_0x4f3841)=>{const _0x29e819=_0x4f3841[_0x4f3841['length']-0x1];_0x29e819&&_0x29e819['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x17e611['model']['change'](()=>{let _0x1bf54e=_0x17e611['model']['insertContent'](_0x4f3841[0x0],_0x4f3841[0x1],_0x4f3841[0x2],{'forceDefaultExecution':!0x0});if(!_0x1bf54e)return;_0x3961ba['return']=_0x1bf54e['clone']();const _0x57bb3a=_0x1bf54e['end']['nodeBefore'],_0x2cae40=_0x17e611['model']['schema'];_0x57bb3a&&_0x2cae40['isBlock'](_0x57bb3a)&&!_0x2cae40['isObject'](_0x57bb3a)&&(_0x1bf54e=_0x17e611['model']['createRange'](_0x1bf54e['start'],_0x17e611['model']['createPositionAt'](_0x57bb3a,'end'))),this['markInsertion'](_0x1bf54e);}),_0x3961ba['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x550565=new $(_0x17e611,this['_suggestions']);_0x17e611['commands']['add']('acceptSuggestion',_0x550565),this['enableCommand']('acceptSuggestion');const _0x66af6d=new B(_0x17e611,this['_suggestions']);_0x17e611['commands']['add']('discardSuggestion',_0x66af6d),this['enableCommand']('discardSuggestion'),_0x17e611['commands']['add']('acceptAllSuggestions',new x(_0x17e611,_0x550565,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x17e611['commands']['add']('discardAllSuggestions',new x(_0x17e611,_0x66af6d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x17e611['commands']['add']('acceptSelectedSuggestions',new R(_0x17e611,_0x550565,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x17e611['commands']['add']('discardSelectedSuggestions',new R(_0x17e611,_0x66af6d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1e71ec=_0x17e611['plugins']['get']('CommentsRepository');this['listenTo'](_0x1e71ec,'addComment',(_0x3d4130,{threadId:_0x486af9})=>{const _0x7c23ee=this['_suggestions']['get'](_0x486af9);_0x7c23ee&&_0x7c23ee['commentThread']&&0x1===_0x7c23ee['commentThread']['length']&&this['_updateSuggestionData'](_0x486af9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1e71ec,'removeComment',(_0x1fd35b,{threadId:_0x250f02})=>{const _0x4ae1c0=this['_suggestions']['get'](_0x250f02);_0x4ae1c0&&_0x4ae1c0['commentThread']&&!_0x4ae1c0['commentThread']['length']&&this['_updateSuggestionData'](_0x250f02,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x3bf76e){if(this['_adapter'])throw new _0x5be51a('track-changes-adapter-already-set',this);this['_adapter']=_0x3bf76e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2dc38b=!0x1,toJSON:_0x6d5edf=!0x1}={}){const _0x4b93c7=[];for(const _0xc1e5ff of this['_suggestions']['values']())_0x2dc38b&&!_0xc1e5ff['isInContent']||_0x4b93c7['push'](_0xc1e5ff);return _0x6d5edf?_0x4b93c7['map'](_0x46a49c=>_0x46a49c['toJSON']()):_0x4b93c7;}['getSuggestion'](_0x128c04){const _0x4ff342=this['_suggestions']['get'](_0x128c04);if(!_0x4ff342)throw new _0x5be51a('track-changes-suggestion-not-found',this);return _0x4ff342;}['hasSuggestion'](_0x455405){return this['_suggestions']['has'](_0x455405);}['addSuggestionData'](_0x29322c){const {authorId:_0x495095,id:_0x52da44,attributes:_0x3632fb}=_0x29322c,[_0x3e771b,_0x179c6a]=_0x29322c['type']['split'](':'),_0x1b8598=this['_suggestions']['get'](_0x52da44)||this['_createSuggestion'](_0x3e771b,_0x179c6a,_0x52da44,_0x495095,_0x3632fb);if(this['_addThreadToSuggestion'](_0x1b8598),this['_checkSuggestionCorrectness'](_0x1b8598,_0x3e771b,_0x179c6a||null,_0x495095),_0x1b8598['createdAt']=_0x29322c['createdAt'],_0x1b8598['_isDataLoaded']=!0x0,_0x3632fb&&_0x3632fb['@external']){const _0x2b9939=_0x3632fb['@external'],_0x1c1a37=this['_getExternalAuthor'](_0x2b9939['authorName']);_0x1b8598['authoredAt']=_0x2b9939['createdAt'],_0x1b8598['author']=_0x1c1a37,_0x1b8598['isExternal']=!0x0;}else _0x1b8598['authoredAt']=_0x29322c['createdAt'];switch(_0x29322c['data']&&(_0x1b8598['data']=_0x29322c['data']),_0x29322c['attributes']&&(_0x1b8598['attributes']=_0x29322c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1b8598['_saved']=!0x0),this['_suggestionState']['get'](_0x1b8598)){case'notReady':this['_suggestionState']['set'](_0x1b8598,'dataReady');break;case'markerReady':_0x1b8598['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1b8598])),this['_refreshSuggestionsChain'](new Set([_0x1b8598])),this['_suggestionState']['set'](_0x1b8598,'ready'),this['fire']('suggestionLoaded',_0x1b8598)):this['_suggestionState']['set'](_0x1b8598,'removed');}return _0x1b8598;}['acceptSuggestion'](_0x3223af){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3af23e of _0x3223af['getAllAdjacentSuggestions']())_0x3af23e['accept']();});});}['discardSuggestion'](_0x121bef){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2cb323 of _0x121bef['getAllAdjacentSuggestions']())_0x2cb323['discard']();});});}['enableCommand'](_0xad2cc1,_0x2423d8){const _0x316554=this['editor']['commands']['get'](_0xad2cc1);if(!_0x316554)throw new _0x5be51a('track-changes-command-not-found',this,{'commandName':_0xad2cc1});if(this['_enabledCommands']['has'](_0x316554))throw new _0x5be51a('track-changes-enable-command-twice',this,{'commandName':_0xad2cc1});this['_enabledCommands']['add'](_0x316554),_0x2423d8&&_0x316554['on']('execute',(_0x408364,_0x4525d1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4525d1['length']>0x0&&_0x4525d1[_0x4525d1['length']-0x1]&&_0x4525d1[_0x4525d1['length']-0x1]['forceDefaultExecution']?_0x4525d1['pop']():(_0x408364['return']=_0x2423d8((..._0x3ea6f3)=>_0x316554['execute'](..._0x3ea6f3,{'forceDefaultExecution':!0x0}),..._0x4525d1),_0x408364['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5eac0b){let _0x1b319f,_0x1d813e;const _0x5f5172=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1b319f=_0x5eac0b();}catch(_0x4d9dc4){_0x1d813e=_0x4d9dc4;}return _0x5f5172||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1d813e&&_0x5be51a['rethrowUnexpectedError'](_0x1d813e,this),_0x1b319f;}['markInsertion'](_0x3d86df,_0x3dd871=null,_0x511352={}){if(_0x3d86df['isCollapsed'])return null;const _0x221a3b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x167c29,meta:_0x304284}of this['_findSuggestions'](_0x3d86df,'insertion'))if(_0x304284['isOwn']){if(!_0x304284['isNextTo']){if(_0x304284['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x167c29,_0x511352))continue;return _0x167c29;}if(Lt(_0x167c29,_0x511352))return _0x167c29;this['_breakSuggestionMarker'](_0x167c29,_0x3d86df['start'],_0x3d86df['end']);break;}if(_0x3dd871==_0x167c29['subType']&&Lt(_0x167c29,_0x511352)){const _0x13d432=_0x167c29['getFirstRange']();return _0x13d432['start']['isEqual'](_0x3d86df['end'])?this['_setSuggestionRange'](_0x167c29,this['_model']['createRange'](_0x3d86df['start'],_0x13d432['end'])):this['_setSuggestionRange'](_0x167c29,this['_model']['createRange'](_0x13d432['start'],_0x3d86df['end'])),_0x167c29;}}const _0x131a64=_0x2b8ef8(),_0x2c3388=_0x221a3b['id'],_0x44d694=_0x3dd871?'insertion:'+_0x3dd871:'insertion',_0x2a3de0=this['_setSuggestionData']({'id':_0x131a64,'type':_0x44d694,'createdAt':new Date(),'authorId':_0x2c3388,'attributes':_0x511352});return this['_addSuggestionMarker'](_0x44d694,_0x131a64,_0x2c3388,_0x3d86df),_0x2a3de0;}['markMultiRangeInsertion'](_0x4f858d,_0x233e24='multi',_0x1ce7da={}){const _0x1b0a08=this['editor']['plugins']['get']('Users')['me'],_0x44d680=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x233e24,'join');for(const _0x139a1d of this['getSuggestions']())if(_0x139a1d['author']['id']==_0x1b0a08['id']&&'insertion'==_0x139a1d['type']&&_0x139a1d['subType']==_0x233e24&&Lt(_0x139a1d,_0x1ce7da)&&(_0x44d680(_0x139a1d['getRanges'](),_0x4f858d)||_0x44d680(_0x4f858d,_0x139a1d['getRanges']()))){for(const _0x22d919 of _0x4f858d)_0x139a1d['addRange'](_0x22d919);return _0x139a1d;}for(const {suggestion:_0x112e68,meta:_0x210900}of this['_findSuggestions'](_0x4f858d,'insertion')){if(!_0x210900['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x210900['containsRangeInObject'])continue;if(!Lt(_0x112e68,_0x1ce7da))continue;let _0x362ab8=!0x0;for(const _0x209e0c of _0x112e68['getRanges']())for(const _0x3bffb5 of _0x4f858d)if(!_0x209e0c['containsRange'](_0x3bffb5)){_0x362ab8=!0x1;break;}if(_0x362ab8)return _0x112e68;}const _0x293f24=_0x2b8ef8(),_0x2be51c=_0x1b0a08['id'],_0x5742d9='insertion:'+_0x233e24,_0x30458d=this['_setSuggestionData']({'id':_0x293f24,'type':_0x5742d9,'createdAt':new Date(),'authorId':_0x2be51c,'attributes':_0x1ce7da});for(const _0x517cc0 of _0x4f858d)this['_addSuggestionMarker'](_0x5742d9,_0x293f24,_0x2be51c,_0x517cc0,u['getMultiRangeId']());return _0x30458d;}['markInlineFormat'](_0x33bbd6,_0x33da2b,_0x441ba7=null,_0x30c4b2={}){if(_0x441ba7=_0x441ba7||Vt(_0x33da2b),_0x33bbd6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x56d9c6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x441ba7,'accept');return this['forceDefaultExecution'](()=>_0x56d9c6([_0x33bbd6],_0x33da2b,_0x30c4b2)),null;}const _0x4dc54d=this['editor']['plugins']['get']('Users')['me'],_0x307145=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x71e82d,meta:_0x303e9e}of this['_findSuggestions'](_0x33bbd6,'insertion'))_0x303e9e['isOwn']&&!_0x303e9e['isInsideObject']&&_0x307145['push'](..._0x71e82d['getRanges']());}const _0x907c8=function(_0x3f50ee,_0x5b20bd){const _0x3248c1=[];for(const _0x2abf98 of _0x5b20bd){const _0x3994b7=_0x3f50ee['getIntersection'](_0x2abf98);_0x3994b7&&_0x3248c1['push'](_0x3994b7);}return _0x3248c1;}(_0x33bbd6,_0x307145),_0x215369=function(_0x249f7e,_0x220983){const _0x3809d0=[_0x249f7e];for(const _0x3b5ea8 of _0x220983){let _0x5b01e2=0x0;for(;_0x5b01e2<_0x3809d0['length'];){const _0x4ad05e=_0x3809d0[_0x5b01e2]['getDifference'](_0x3b5ea8);_0x3809d0['splice'](_0x5b01e2,0x1,..._0x4ad05e),_0x5b01e2+=_0x4ad05e['length'];}}return _0x3809d0;}(_0x33bbd6,_0x307145);_0x907c8['length']&&this['_model']['change'](()=>{for(const _0x31d63e of _0x907c8){const _0x569420=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x441ba7,'accept');this['forceDefaultExecution'](()=>_0x569420([_0x31d63e],_0x33da2b,_0x30c4b2));}});for(const _0x2331dc of _0x215369){let _0x3a2eec=null,_0x4340ae=_0x2331dc['start'],_0x413fe1=_0x2331dc['end'];for(const {suggestion:_0x434df3,meta:_0x3990d0}of this['_findSuggestions'](_0x2331dc,'formatInline')){if(!_0x3990d0['isOwn'])continue;if(_0x434df3['subType']!=_0x441ba7)continue;if(!Lt(_0x434df3,_0x30c4b2))continue;const _0x13a79d=_0x434df3['getFirstRange']();if(_0x13a79d['containsRange'](_0x2331dc,!0x0))return null;_0x4340ae=_0x4340ae['isBefore'](_0x13a79d['start'])?_0x4340ae:_0x13a79d['start'],_0x413fe1=_0x413fe1['isAfter'](_0x13a79d['end'])?_0x413fe1:_0x13a79d['end'],_0x3a2eec?_0x13a79d['start']['isBefore'](_0x3a2eec['getFirstRange']()['start'])?(_0x3a2eec['removeMarkers'](),_0x3a2eec=_0x434df3):_0x434df3['removeMarkers']():_0x3a2eec=_0x434df3;}const _0x33fd8b=this['_model']['createRange'](_0x4340ae,_0x413fe1);if(_0x3a2eec)this['_setSuggestionRange'](_0x3a2eec,_0x33fd8b);else{const _0x50839e=_0x2b8ef8(),_0x5cad8b=_0x4dc54d['id'];this['_setSuggestionData']({'id':_0x50839e,'type':'formatInline:'+_0x441ba7,'data':_0x33da2b,'createdAt':new Date(),'authorId':_0x5cad8b,'attributes':_0x30c4b2}),this['_addSuggestionMarker']('formatInline:'+_0x441ba7,_0x50839e,_0x5cad8b,_0x33fd8b);}}return null;}['markBlockFormat'](_0x3c2c54,_0x3798b2,_0x1f3a28=[],_0x66bf13=null,_0x301424={}){_0x3798b2['formatGroupId']||(_0x3798b2['formatGroupId']=_0x3798b2['commandName']),_0x3798b2['multipleBlocks']=_0x3c2c54['is']('range'),_0x66bf13=_0x66bf13||Vt(_0x3798b2);const _0x3d98d0=_0x1f3a28['map'](_0x2548f7=>Gt(_0x2548f7,this['_model'])),_0x4be711=_0x3c2c54['is']('range')?_0x3c2c54:Gt(_0x3c2c54,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5a278a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x66bf13,'accept');return this['forceDefaultExecution'](()=>_0x5a278a([_0x4be711],_0x3798b2,_0x301424)),null;}_0x3d98d0['push'](_0x4be711);let _0x4d5cd1=!0x0;for(const _0x551c86 of _0x3d98d0)if(!this['_rangeIsInLocalUserInsertion'](_0x551c86)){_0x4d5cd1=!0x1;break;}if(_0x4d5cd1&&'always'!==this['_trackFormatChanges']){const _0x25e0ef=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x66bf13,'accept');return this['forceDefaultExecution'](()=>_0x25e0ef([_0x4be711],_0x3798b2,_0x301424)),null;}let _0x4d921f=null,_0x53d954=_0x4be711['start'],_0x521228=_0x4be711['end'];for(const {suggestion:_0x194a31,meta:_0xda13e0}of this['_findSuggestions'](_0x4be711,'formatBlock')){if(!_0xda13e0['isOwn'])continue;if(_0xda13e0['isNextTo']||_0xda13e0['containsRangeInObject']||_0xda13e0['isInsideObject'])continue;if(_0x194a31['data']['formatGroupId']!=_0x3798b2['formatGroupId'])continue;if(!Lt(_0x194a31,_0x301424))continue;const _0x5dc09f=_0x194a31['getFirstRange']();if(_0x194a31['subType']==_0x66bf13){if(_0x5dc09f['containsRange'](_0x4be711,!0x0))return null;_0x53d954=_0x53d954['isBefore'](_0x5dc09f['start'])?_0x53d954:_0x5dc09f['start'],_0x521228=_0x521228['isAfter'](_0x5dc09f['end'])?_0x521228:_0x5dc09f['end'],_0x4d921f?_0x5dc09f['start']['isBefore'](_0x4d921f['getFirstRange']()['start'])?(_0x4d921f['removeMarkers'](),_0x4d921f=_0x194a31):_0x194a31['removeMarkers']():_0x4d921f=_0x194a31;}else{const _0x2c1fe3=_0x4be711['getIntersection'](_0x5dc09f);this['_cutOutSuggestionMarker'](_0x194a31,_0x2c1fe3);}}const _0x361541=this['editor']['plugins']['get']('Users')['me'],_0xd94e3c=_0x2b8ef8(),_0x31a22c=_0x361541['id'];if(_0x4d921f)return this['_setSuggestionRange'](_0x4d921f,this['_model']['createRange'](_0x53d954,_0x521228)),_0x4d921f;{const _0x1554cf=this['_setSuggestionData']({'id':_0xd94e3c,'type':'formatBlock:'+_0x66bf13,'data':_0x3798b2,'createdAt':new Date(),'authorId':_0x31a22c,'attributes':_0x301424});return this['_addSuggestionMarker']('formatBlock:'+_0x66bf13,_0xd94e3c,_0x31a22c,this['_model']['createRange'](_0x53d954,_0x521228)),_0x1554cf;}}['markMultiRangeBlockFormat'](_0x2dee35,_0x5acc32,_0x330507=[],_0x53ee22=null,_0x3fc4d0={}){_0x5acc32['formatGroupId']||(_0x5acc32['formatGroupId']=_0x5acc32['commandName']);const _0x59ad9a=_0x2dee35[0x0];_0x5acc32['multipleBlocks']=_0x59ad9a['is']('range'),_0x53ee22=_0x53ee22||Vt(_0x5acc32);const _0x176c48=_0x330507['map'](_0x3692ec=>Gt(_0x3692ec,this['_model'])),_0x22e625=_0x59ad9a['is']('range')?_0x2dee35:_0x2dee35['map'](_0x5360e0=>Gt(_0x5360e0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2878fa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53ee22,'accept');return this['forceDefaultExecution'](()=>_0x2878fa(_0x22e625,_0x5acc32,_0x3fc4d0)),null;}_0x176c48['push'](..._0x22e625);let _0xd76215=!0x0;for(const _0x42e056 of _0x176c48)if(!this['_rangeIsInLocalUserInsertion'](_0x42e056)){_0xd76215=!0x1;break;}if(_0xd76215&&'always'!==this['_trackFormatChanges']){const _0x55b41d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53ee22,'accept');return this['forceDefaultExecution'](()=>_0x55b41d(_0x22e625,_0x5acc32,_0x3fc4d0)),null;}const _0x216a13=this['editor']['plugins']['get']('Users')['me'];for(const _0x5bfdaa of this['getSuggestions']()){if(_0x5bfdaa['author']['id']!=_0x216a13['id'])continue;if('formatBlock'!=_0x5bfdaa['type']||_0x5bfdaa['data']['formatGroupId']!=_0x5acc32['formatGroupId'])continue;if(!Lt(_0x5bfdaa,_0x3fc4d0))continue;const _0x1c494e=_0x5bfdaa['subType']==_0x53ee22;for(let _0x3f58aa=0x0;_0x3f58aa<_0x22e625['length'];_0x3f58aa++){const _0x590640=_0x22e625[_0x3f58aa];for(const _0x493abd of _0x5bfdaa['getMarkers']()){const _0x27ca39=_0x493abd['getRange']();if(_0x590640['isEqual'](_0x27ca39)){_0x1c494e?(_0x22e625['splice'](_0x3f58aa,0x1),_0x3f58aa--):_0x5bfdaa['removeMarker'](_0x493abd['name']);break;}}}}if(0x0==_0x22e625['length'])return null;const _0x3e412b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53ee22,'join');for(const _0x324aa3 of this['getSuggestions']())if(_0x324aa3['author']['id']==_0x216a13['id']&&'formatBlock'==_0x324aa3['type']&&_0x324aa3['data']['formatGroupId']==_0x5acc32['formatGroupId']&&_0x324aa3['subType']==_0x53ee22&&Lt(_0x324aa3,_0x3fc4d0)&&(_0x3e412b(_0x324aa3['getRanges'](),_0x22e625)||_0x3e412b(_0x22e625,_0x324aa3['getRanges']()))){for(const _0x2bbfd1 of _0x22e625)_0x324aa3['addRange'](_0x2bbfd1);return _0x324aa3;}const _0x4a11e0=_0x2b8ef8(),_0x509db2=_0x216a13['id'],_0x4b83af='formatBlock:'+_0x53ee22,_0x444237=this['_setSuggestionData']({'id':_0x4a11e0,'type':_0x4b83af,'data':_0x5acc32,'createdAt':new Date(),'authorId':_0x509db2,'attributes':_0x3fc4d0});for(const _0x2406ea of _0x22e625)this['_addSuggestionMarker'](_0x4b83af,_0x4a11e0,_0x509db2,_0x2406ea,u['getMultiRangeId']());return _0x444237;}['markDeletion'](_0x33b7f6,_0xee80ed=null,_0x1ab10f={}){if(_0x33b7f6['isCollapsed'])return null;const _0x710700=this['editor']['plugins']['get']('Users')['me'],_0x388ea3=new _0x113a9d(_0x33b7f6['start'],_0x33b7f6['end']);for(const {suggestion:_0x3ee192,meta:_0x516106}of this['_findSuggestions'](_0x388ea3,'insertion'))if(_0x516106['isOwn']&&!_0x516106['isNextTo']){if(_0x3ee192['isMultiRange']){const _0x3c87d0=_0x3ee192['getRanges']()['filter'](_0x2cd8fb=>'$graveyard'!=_0x2cd8fb['root']['rootName']);_0x3c87d0['every'](_0x297d64=>_0x388ea3['containsRange'](_0x297d64,!0x0))&&_0x3ee192['discard']();if(_0x3c87d0['some'](_0x529e8b=>_0x529e8b['containsRange'](_0x388ea3,!0x0))){const _0x1972e4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xee80ed,'accept');return this['forceDefaultExecution'](()=>_0x1972e4([_0x388ea3],null,_0x1ab10f)),null;}}else{const _0x4d89fc=_0x388ea3['getIntersection'](_0x3ee192['getFirstRange']());null!==_0x4d89fc&&_0x3ee192['_onDiscard']([_0x4d89fc],null,_0x1ab10f);}}if(_0x388ea3['detach'](),_0x388ea3['isCollapsed']||'$graveyard'==_0x388ea3['root']['rootName'])return null;let _0xd13c26=null,_0x25cc4c=_0x388ea3['start'],_0x3c5033=_0x388ea3['end'];const _0x591d50=this['_findSuggestions'](_0x388ea3,'deletion');for(const {suggestion:_0xfee7a9,meta:_0x5c940f}of _0x591d50){const _0x1ad110=this['_model']['createRange'](_0x25cc4c,_0x3c5033);if(_0x5c940f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c940f['containsRangeInObject']&&!_0x5c940f['isInsideObject'])){if(_0xfee7a9['isMultiRange']){if(!Lt(_0xfee7a9,_0x1ab10f))continue;let _0x1b538d=!0x0;for(const _0x4efb81 of _0xfee7a9['getRanges']()){if(_0x4efb81['containsRange'](_0x1ad110,!0x0))return _0xfee7a9;_0x1ad110['containsRange'](_0x4efb81)||(_0x1b538d=!0x1);}_0x1b538d&&_0xfee7a9['discard']();}else{const _0x20a112=_0xfee7a9['getFirstRange']();if(_0x20a112['containsRange'](_0x1ad110,!0x0))return _0xfee7a9;if(!Lt(_0xfee7a9,_0x1ab10f)){_0x1ad110['containsRange'](_0x20a112)?_0xfee7a9['removeMarkers']():_0x20a112['containsPosition'](_0x25cc4c)?_0x25cc4c=_0x20a112['end']:_0x20a112['containsPosition'](_0x3c5033)&&(_0x3c5033=_0x20a112['start']);continue;}_0x25cc4c=_0x25cc4c['isBefore'](_0x20a112['start'])?_0x25cc4c:_0x20a112['start'],_0x3c5033=_0x3c5033['isAfter'](_0x20a112['end'])?_0x3c5033:_0x20a112['end'],_0x1ab10f=Object['assign']({},_0xfee7a9['attributes']),_0xd13c26?_0x20a112['start']['isBefore'](_0xd13c26['getFirstRange']()['start'])?(_0xd13c26['removeMarkers'](),_0xd13c26=_0xfee7a9):_0xfee7a9['removeMarkers']():_0xd13c26=_0xfee7a9;}}}if(_0xd13c26)return this['_setSuggestionRange'](_0xd13c26,this['_model']['createRange'](_0x25cc4c,_0x3c5033)),_0xd13c26;{const _0x535243=_0x2b8ef8(),_0xced6f8=this['_model']['createRange'](_0x25cc4c,_0x3c5033),_0x5e89f5=_0x710700['id'],_0x3d3239=_0xee80ed?'deletion:'+_0xee80ed:'deletion',_0x33e2c1=this['_setSuggestionData']({'id':_0x535243,'type':_0x3d3239,'createdAt':new Date(),'authorId':_0x5e89f5,'attributes':_0x1ab10f});return this['_addSuggestionMarker'](_0x3d3239,_0x535243,_0x5e89f5,_0xced6f8),_0x33e2c1;}}['markMultiRangeDeletion'](_0x358725,_0xc0fdbf='multi',_0x4e6a64={}){const _0x104161=this['editor']['plugins']['get']('Users')['me'],_0x531508=_0x358725['map'](_0x4a8785=>new _0x113a9d(_0x4a8785['start'],_0x4a8785['end'])),_0x3e4974=new Set();for(const {suggestion:_0x201551,meta:_0x219d87}of this['_findSuggestions'](_0x531508,'insertion'))_0x219d87['isOwn']&&!_0x219d87['isNextTo']&&_0x3e4974['add'](_0x201551);for(const _0x254b1d of _0x3e4974)if(_0x254b1d['isMultiRange']){const _0x2894b0=_0x254b1d['getRanges']();(!_0x254b1d['attributes']||!_0x254b1d['attributes']['skipNestingCheck'])&&(_0x2894b0['every'](_0x20c68f=>_0x531508['some'](_0x1862d1=>_0x1862d1['containsRange'](_0x20c68f,!0x0)))&&_0x254b1d['discard']());if(_0x531508['every'](_0x3222fc=>_0x2894b0['some'](_0x4fdb67=>_0x4fdb67['containsRange'](_0x3222fc,!0x0)))){const _0x47bc71=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc0fdbf,'accept');return this['forceDefaultExecution'](()=>_0x47bc71(_0x358725,null,_0x4e6a64)),null;}}else{const _0x396c3a=_0x254b1d['getFirstRange']();_0x531508['some'](_0x1d0189=>_0x1d0189['containsRange'](_0x396c3a,!0x0))&&_0x254b1d['discard']();if(_0x531508['every'](_0x2a954e=>_0x396c3a['containsRange'](_0x2a954e,!0x0))){const _0x10681f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc0fdbf,'accept');return this['forceDefaultExecution'](()=>_0x10681f(_0x531508,null,_0x4e6a64)),null;}}const _0x2f350b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc0fdbf,'join');let _0x32d1a5=null;for(const _0x17e66e of this['getSuggestions']())if(_0x17e66e['author']['id']==_0x104161['id']&&_0x17e66e['isInContent']&&'deletion'==_0x17e66e['type']&&_0x17e66e['subType']==_0xc0fdbf&&Lt(_0x17e66e,_0x4e6a64)&&(_0x2f350b(_0x17e66e['getRanges'](),_0x531508)||_0x2f350b(_0x531508,_0x17e66e['getRanges']()))){if(_0x32d1a5){if(_0x17e66e['commentThread']&&_0x17e66e['commentThread']['length'])continue;for(const _0x3bfed0 of _0x17e66e['getRanges']())_0x32d1a5['isIntersectingWithRange'](_0x3bfed0)||_0x32d1a5['addRange'](_0x3bfed0);_0x17e66e['removeMarkers']();}else{_0x32d1a5=_0x17e66e;for(const _0x4d66b4 of _0x531508)_0x17e66e['isIntersectingWithRange'](_0x4d66b4)||_0x17e66e['addRange'](_0x4d66b4);}}if(_0x32d1a5)return _0x32d1a5;_0x3e4974['clear']();for(const {suggestion:_0x1f843a,meta:_0x2bca87}of this['_findSuggestions'](_0x531508,'deletion'))_0x2bca87['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2bca87['containsRangeInObject']&&!_0x2bca87['isInsideObject'])&&Lt(_0x1f843a,_0x4e6a64)&&_0x3e4974['add'](_0x1f843a);for(const _0x273ca4 of _0x3e4974){const _0x18cedf=_0x273ca4['getRanges']();if(!_0x4e6a64||!_0x4e6a64['skipNestingCheck']){if(_0x531508['every'](_0xf72458=>_0x18cedf['some'](_0x1c07d9=>_0x1c07d9['containsRange'](_0xf72458,!0x0))))return _0x273ca4;}(!_0x273ca4['attributes']||!_0x273ca4['attributes']['skipNestingCheck'])&&(_0x18cedf['every'](_0x404a7c=>_0x531508['some'](_0x14f09c=>_0x14f09c['containsRange'](_0x404a7c,!0x0)))&&_0x273ca4['discard']());}const _0xf12b2f=_0x2b8ef8(),_0x1ab957=_0x104161['id'],_0x1fde03='deletion:'+_0xc0fdbf,_0x32408e=this['_setSuggestionData']({'id':_0xf12b2f,'type':_0x1fde03,'createdAt':new Date(),'authorId':_0x1ab957,'attributes':_0x4e6a64});for(const _0x3b889d of _0x531508)_0x3b889d['detach'](),_0x3b889d['isCollapsed']||'$graveyard'==_0x3b889d['root']['rootName']||this['_addSuggestionMarker'](_0x1fde03,_0xf12b2f,_0x1ab957,_0x3b889d,u['getMultiRangeId']());return _0x32408e;}['markAttributeChange'](_0x4cec04,_0x4836fe,_0x3aa752,_0x446aba,_0x322a2c){if(_0x4cec04['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x190fb2=this['editor']['plugins']['get']('Users')['me']['id'],_0x589d9b=Array['from'](this['_suggestions']['values']())['filter'](_0x5bc150=>'attribute'==_0x5bc150['type']&&_0x5bc150['data']['key']==_0x4836fe&&_0x5bc150['isIntersectingWithRange'](_0x4cec04));if('default'===this['_trackFormatChanges']){const _0x28bf07=this['_findSuggestions'](_0x4cec04,'insertion')['filter'](({meta:_0x3d0746})=>_0x3d0746['isOwn']&&!_0x3d0746['isInsideObject']&&!_0x3d0746['isNextTo'])['map'](({suggestion:_0x3b5b9f})=>_0x3b5b9f);_0x589d9b['unshift'](..._0x28bf07);}const _0x3ed805=new Map([[_0x4cec04,_0x3aa752]]);for(const _0x2f2797 of _0x589d9b){const _0x1b5c97='attribute'==_0x2f2797['type']?_0x2f2797['data']['oldValue']:void 0x0,_0x3d6ff8=_0x2f2797['getFirstRange'](),_0x4494b3=Array['from'](_0x3ed805['keys']())['find'](_0x4174de=>_0x4174de['isIntersecting'](_0x3d6ff8));if(!_0x4494b3)continue;const _0x46ed0b=_0x4494b3['getDifference'](_0x3d6ff8);this['_isBlockAttribute'](_0x4836fe)&&'insertion'==_0x2f2797['type']&&0x0!=_0x46ed0b['length']||(_0x3ed805['delete'](_0x4494b3),_0x46ed0b['forEach'](_0x3e76a0=>{_0x3ed805['set'](_0x3e76a0,_0x3aa752);}),'insertion'!=_0x2f2797['type']&&_0x1b5c97!=_0x446aba&&_0x3ed805['set'](_0x4494b3['getIntersection'](_0x3d6ff8),_0x1b5c97));}const _0x2e3fba=[];for(const [_0x1169ac,_0x2d052b]of _0x3ed805){const _0x10013d=_0x2b8ef8(),_0x3f5b2d={'key':_0x4836fe,'oldValue':_0x2d052b,'newValue':_0x446aba};_0x4836fe['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':_0x4836fe});const _0x11557f=('attribute:'+(_0x4836fe+'|'+Vt({'newValue':_0x446aba})))['substring'](0x0,0x3c),_0x28b3ff=this['_setSuggestionData']({'id':_0x10013d,'type':_0x11557f,'data':_0x3f5b2d,'createdAt':new Date(),'authorId':_0x190fb2,'attributes':_0x322a2c});_0x2e3fba['push'](_0x28b3ff),this['_addSuggestionMarker'](_0x11557f,_0x10013d,_0x190fb2,_0x1169ac);}return _0x2e3fba;}['enableDefaultAttributesIntegration'](_0x1c5a8e){this['enableCommand'](_0x1c5a8e,(_0x38ca25,..._0xf82aed)=>{this['_recordAttributeChanges'](()=>{_0x38ca25(..._0xf82aed);});});}['registerBlockAttribute'](_0x286a48){this['_blockAttributeKeys']['add'](_0x286a48);}['registerInlineAttribute'](_0x2d34a6){this['_inlineAttributeKeys']['add'](_0x2d34a6);}['_getAttributeKey'](_0x3a5b5b){return'attribute'==_0x3a5b5b['type']?_0x3a5b5b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3c4314,_0x228af0){const _0x1611fa=_0x3c4314['getFirstMarker']();this['_model']['change'](_0x405a14=>{_0x405a14['updateMarker'](_0x1611fa,{'range':_0x228af0});});}['_addThreadToSuggestion'](_0x25c364){const _0x49c9dd=_0x25c364['id'],_0x5a35b2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x49c9dd)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5a35b2,'threadId':_0x49c9dd,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x249671=this['_commentsRepository']['getCommentThread'](_0x49c9dd);_0x249671['unbind']('isRemovable'),_0x249671['isRemovable']=!0x1,_0x25c364['commentThread']=_0x249671;}['_checkSuggestionCorrectness'](_0x18167f,_0x403e9f,_0x3bbbc3,_0x5d779d){if(_0x18167f['type']!=_0x403e9f||_0x18167f['subType']!=_0x3bbbc3||_0x18167f['creator']['id']!=_0x5d779d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5be51a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2b2460,_0x5de4a9){const _0x51d21c=_0x2b2460['getFirstRange']();if(_0x5de4a9['isEqual'](_0x51d21c))_0x2b2460['removeMarkers']();else{if(_0x51d21c['containsRange'](_0x5de4a9)){const _0x1c5c8d=this['_model']['createPositionAt'](_0x5de4a9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b2460,this['_model']['createRange'](_0x51d21c['start'],_0x1c5c8d));const _0x3f4d71=_0x2b8ef8(),_0x2b1493=_0x2b2460['creator']['id'],_0x5d0d07=_0x2b2460['type']+':'+_0x2b2460['subType'];this['_setSuggestionData']({'id':_0x3f4d71,'type':_0x5d0d07,'createdAt':new Date(),'authorId':_0x2b1493,'data':_0x2b2460['data'],'attributes':_0x2b2460['attributes']});const _0x3ee769=this['_model']['createPositionAt'](_0x5de4a9['end']['parent'],'after'),_0x35d5aa=this['_model']['createRange'](_0x3ee769,_0x51d21c['end']);this['_addSuggestionMarker'](_0x5d0d07,_0x3f4d71,_0x2b1493,_0x35d5aa);}else{if(_0x51d21c['containsPosition'](_0x5de4a9['start'])){const _0x51d738=this['_model']['createPositionAt'](_0x5de4a9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b2460,this['_model']['createRange'](_0x51d21c['start'],_0x51d738));}else{const _0x24a893=this['_model']['createPositionAt'](_0x5de4a9['end']['parent'],'after');this['_setSuggestionRange'](_0x2b2460,this['_model']['createRange'](_0x24a893,_0x51d21c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x16d946){for(const {suggestion:_0x186041,meta:_0x4c6d42}of this['_findSuggestions'](_0x16d946,'insertion')){if(!_0x4c6d42['isOwn'])continue;const _0xe14741=_0x186041['getRanges']();for(const _0x78402d of _0xe14741)if(!_0x16d946['getDifference'](_0x78402d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43dd24){const _0x154d6b=this['editor']['plugins']['get']('Users')['getUser'](_0x43dd24);if(!_0x154d6b)throw new _0x5be51a('track-changes-user-not-found',this);return _0x154d6b;}['_getExternalAuthor'](_0xad01c6){const _0x4a23bd=this['editor']['plugins']['get']('Users'),_0x193382=_0x25e831('external:'+_0xad01c6),_0x5c4b19=_0x4a23bd['getUser'](_0x193382);return _0x5c4b19||_0x4a23bd['addUser']({'id':_0x193382,'name':_0xad01c6});}['_createSuggestion'](_0x2b5024,_0x58f351,_0x1d03b0,_0xab2a58,_0x3c272b){const _0x3d5e6d=this['_getAuthorFromId'](_0xab2a58),_0x223ca6=this['_suggestionFactory']['buildSuggestion'](_0x2b5024,_0x58f351,_0x1d03b0,_0x3d5e6d,_0x3c272b,_0x153d05=>{this['_updateSuggestionData'](_0x1d03b0,{'attributes':_0x153d05});const _0x17fb2c=this['getSuggestion'](_0x1d03b0);this['_joinWithAdjacentSuggestions'](new Set([_0x17fb2c])),this['_refreshSuggestionsChain'](new Set([_0x17fb2c]));});return this['listenTo'](_0x223ca6,'accept',()=>{this['_updateSuggestionData'](_0x1d03b0,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x223ca6,'discard',()=>{this['_updateSuggestionData'](_0x1d03b0,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1d03b0,_0x223ca6),this['_suggestionState']['set'](_0x223ca6,'notReady'),_0x223ca6;}['_splitMarkerName'](_0x2dc69f){const _0x412b92=_0x2dc69f['split'](':');return{'group':_0x412b92[0x0],'type':_0x412b92[0x1],'subType':_0x412b92['length']>=0x5?_0x412b92[0x2]:null,'id':_0x412b92['length']<0x5?_0x412b92[0x2]:_0x412b92[0x3],'authorId':_0x412b92['length']<0x5?_0x412b92[0x3]:_0x412b92[0x4],'markerCount':0x6==_0x412b92['length']?_0x412b92[0x5]:null};}['_breakSuggestionMarker'](_0x2afe4b,_0x2af8c6,_0x310250){const _0x4d3778=_0x2afe4b['getFirstRange'](),_0x4cdff9=_0x4d3778['start'],_0x7c5319=_0x4d3778['end'];this['_setSuggestionRange'](_0x2afe4b,this['_model']['createRange'](_0x4cdff9,_0x2af8c6));const _0x17fe30=_0x2b8ef8(),_0x31bda5=_0x2afe4b['creator']['id'],_0x30ecb0=_0x2afe4b['type']+(_0x2afe4b['subType']?':'+_0x2afe4b['subType']:'');this['_setSuggestionData']({'id':_0x17fe30,'type':_0x30ecb0,'createdAt':new Date(),'authorId':_0x31bda5,'originalSuggestionId':_0x2afe4b['id'],'attributes':_0x2afe4b['attributes'],'data':_0x2afe4b['data']});const _0x308136=this['_getAttributeKey'](_0x2afe4b);('formatBlock'==_0x2afe4b['type']||_0x308136&&this['_isBlockAttribute'](_0x308136))&&(_0x310250=this['_model']['createPositionBefore'](_0x310250['parent'])),this['_addSuggestionMarker'](_0x30ecb0,_0x17fe30,_0x31bda5,this['_model']['createRange'](_0x310250,_0x7c5319));}['_findSuggestions'](_0x102783,_0x383b08=null){const _0xb8bc35=[],_0x1c7080=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x102783)||(_0x102783=[_0x102783]);for(const _0x656fc8 of this['getSuggestions']()){if(!_0x656fc8['isInContent'])continue;if(_0x383b08&&_0x656fc8['type']!=_0x383b08)continue;let _0xcab5a4=!0x1;for(const _0x28f3b2 of _0x656fc8['getRanges']()){for(const _0x33f2b1 of _0x102783){const _0x551d88=_0x33f2b1['start']['isEqual'](_0x28f3b2['end'])||_0x33f2b1['end']['isEqual'](_0x28f3b2['start']);if(_0x551d88||_0x33f2b1['getIntersection'](_0x28f3b2)){const _0x585ebb=_0x33f2b1['containsRange'](_0x28f3b2)&&Rt(this['_model']['schema'],_0x28f3b2['start'],_0x33f2b1),_0x55fc32=_0x28f3b2['containsRange'](_0x33f2b1)&&Rt(this['_model']['schema'],_0x33f2b1['start'],_0x28f3b2);_0xb8bc35['push']({'suggestion':_0x656fc8,'meta':{'isOwn':_0x1c7080==_0x656fc8['author'],'isNextTo':_0x551d88,'isInsideObject':_0x585ebb,'containsRangeInObject':_0x55fc32}}),_0xcab5a4=!0x0;break;}}if(_0xcab5a4)break;}}return _0xb8bc35;}['_addSuggestionMarker'](_0x55855f,_0x2c8252,_0x4897c7,_0x293d90,_0x428fe8){this['_model']['change'](_0x3e7fee=>{let _0x357406='suggestion:'+_0x55855f+':'+_0x2c8252+':'+_0x4897c7;_0x428fe8&&(_0x357406=_0x357406+':'+_0x428fe8),_0x3e7fee['addMarker'](_0x357406,{'range':_0x293d90,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4e676a){const _0x3f40c1=_0x4e676a['previous'],_0xc741e=_0x4e676a['next'];_0x4e676a['previous']=null,_0x4e676a['next']=null,null!=_0x3f40c1&&_0x3f40c1['next']==_0x4e676a&&(_0x3f40c1['next']=_0xc741e),null!=_0xc741e&&_0xc741e['previous']==_0x4e676a&&(_0xc741e['previous']=_0x3f40c1),'ready'==this['_suggestionState']['get'](_0x4e676a)&&(this['_suggestionState']['set'](_0x4e676a,'removed'),this['fire']('suggestionUnloaded',_0x4e676a,_0x3f40c1,_0xc741e));}['_setSuggestionData'](_0x4dbdcd){const _0x2a97bd=_0x4dbdcd['id'],_0x2a5fce=this['addSuggestionData'](_0x4dbdcd);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2f1404=this['editor']['plugins']['get']('PendingActions'),_0x4d0fc9=_0x2a5fce['hasComments'],_0x3fab5f=_0x2a5fce['subType']?_0x2a5fce['type']+':'+_0x2a5fce['subType']:_0x2a5fce['type'],_0x295027=this['editor']['locale'],_0xaf0f1=_0x2f1404['add'](o(_0x295027,'PENDING_ACTION_SUGGESTION')),_0x27ff98={'id':_0x2a97bd,'type':_0x3fab5f,'hasComments':_0x4d0fc9,'data':_0x4dbdcd['data']||null,'originalSuggestionId':_0x4dbdcd['originalSuggestionId']||null,'attributes':_0x2a5fce['attributes']};this['_adapter']['addSuggestion'](_0x27ff98)['then'](_0x3b9924=>{_0x2a5fce['_saved']=!0x0,_0x2f1404['remove'](_0xaf0f1),_0x3b9924&&_0x3b9924['createdAt']&&(this['_suggestions']['get'](_0x2a97bd)['createdAt']=_0x3b9924['createdAt']);})['catch'](_0x1c7973=>{throw _0x23889c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2a5fce['discard']();}),_0x2a5fce['stopListening'](),this['_suggestions']['delete'](_0x2a5fce['id']),this['_suggestionState']['delete'](_0x2a5fce),_0x1c7973;});}return _0x2a5fce;}['_isBlockAttribute'](_0x26f5ed){return this['_blockAttributeKeys']['has'](_0x26f5ed);}['_updateSuggestionData'](_0x17fd0d,_0x55c26b){const _0x455169=this['editor']['plugins']['get']('PendingActions'),_0x481e42=this['getSuggestion'](_0x17fd0d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x481e42['_saved']){const _0x81faad=_0x455169['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x17fd0d,_0x55c26b)['then'](()=>{_0x455169['remove'](_0x81faad);});}else _0x481e42['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x17fd0d,_0x55c26b);});}}['_getSuggestionData'](_0x538e0c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5be51a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x538e0c);}['_handleNewSuggestionMarker'](_0x9e3d94){const {id:_0x5c8d4e,type:_0x225552,subType:_0x503f22,authorId:_0x350bd3}=this['_splitMarkerName'](_0x9e3d94),_0x27d3f4=this['_suggestions']['get'](_0x5c8d4e)||this['_createSuggestion'](_0x225552,_0x503f22,_0x5c8d4e,_0x350bd3,{});switch(this['_checkSuggestionCorrectness'](_0x27d3f4,_0x225552,_0x503f22,_0x350bd3),this['_suggestionState']['get'](_0x27d3f4)){case'notReady':this['_getSuggestionData'](_0x5c8d4e)['then'](_0x237bfb=>{let _0x1213ba=Promise['resolve']();_0x237bfb['hasComments']&&(_0x1213ba=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5c8d4e})),_0x1213ba['then'](()=>{this['addSuggestionData'](_0x237bfb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x27d3f4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5c8d4e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x27d3f4,'ready'),this['fire']('suggestionLoaded',_0x27d3f4);break;case'ready':this['fire']('suggestionChanged',_0x27d3f4);}return _0x27d3f4['addMarkerName'](_0x9e3d94),_0x27d3f4;}['_refreshSuggestionsChain'](_0x13f5cc){const _0xe86600=Array['from'](_0x13f5cc),_0x56c21d=_0xe86600['filter'](_0x515088=>'attribute'==_0x515088['type']);this['_refreshAttributeSuggestionsChain'](_0x56c21d);const _0x1be6aa=_0xe86600['filter'](_0x2f01aa=>!_0x2f01aa['isMultiRange']&&'attribute'!=_0x2f01aa['type']),_0x42512b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29996b=>!_0x29996b['isMultiRange']&&'attribute'!=_0x29996b['type']),_0x1bd2df=_0x42512b['filter'](_0x49cb6c=>!_0x13f5cc['has'](_0x49cb6c)),_0x5ae5a8=new Map(_0x42512b['map'](_0x3d0d70=>[_0x3d0d70,this['_suggestionFactory']['getSuggestionCallback'](_0x3d0d70['type'],_0x3d0d70['subType'],'chain')])),_0x30716b=new Map(_0x42512b['map'](_0x59e120=>[_0x59e120,_0x59e120['getFirstRange']()])),_0x5aaed9=new Set(),_0x4ff38f=new Set();for(let _0x2b3ee5=0x0;_0x2b3ee5<_0x1be6aa['length'];_0x2b3ee5++)_0x5dbfac(_0x1be6aa[_0x2b3ee5],_0x1be6aa,_0x2b3ee5+0x1);for(let _0x42c0ae=0x0;_0x42c0ae<_0x1be6aa['length'];_0x42c0ae++)_0x5dbfac(_0x1be6aa[_0x42c0ae],_0x1bd2df,0x0);const _0x303fdd=new Set();for(let _0x3ab8e1=0x0;_0x3ab8e1<_0x1be6aa['length'];_0x3ab8e1++){const _0x47356c=_0x1be6aa[_0x3ab8e1];!_0x4ff38f['has'](_0x47356c)&&_0x47356c['previous']&&(_0x303fdd['add'](_0x47356c['previous']),_0x47356c['previous']['next']===_0x47356c&&(_0x47356c['previous']['next']=null),_0x47356c['previous']=null),!_0x5aaed9['has'](_0x47356c)&&_0x47356c['next']&&(_0x303fdd['add'](_0x47356c['next']),_0x47356c['next']['previous']===_0x47356c&&(_0x47356c['next']['previous']=null),_0x47356c['next']=null);}function _0x5dbfac(_0x76dd6f,_0x4d8888,_0x19f960){for(let _0x2bdba5=_0x19f960;_0x2bdba5<_0x4d8888['length'];_0x2bdba5++){const _0xaf0429=_0x38d466(_0x76dd6f,_0x4d8888[_0x2bdba5]);_0xaf0429&&(_0xaf0429[0x0]['next']=_0xaf0429[0x1],_0xaf0429[0x1]['previous']=_0xaf0429[0x0],_0x5aaed9['add'](_0xaf0429[0x0]),_0x4ff38f['add'](_0xaf0429[0x1]));}}function _0x38d466(_0xc76994,_0x2ea592){if(_0xc76994['author']['id']!==_0x2ea592['author']['id'])return null;const _0xca077d=_0x5ae5a8['get'](_0xc76994)(_0xc76994,_0x2ea592,_0x30716b['get'](_0xc76994),_0x30716b['get'](_0x2ea592));if(!_0xca077d)return null;return _0x5ae5a8['get'](_0x2ea592)(_0xc76994,_0x2ea592,_0x30716b['get'](_0xc76994),_0x30716b['get'](_0x2ea592))?_0xca077d[0x1]['commentThread']&&_0xca077d[0x1]['commentThread']['length']?null:_0xca077d:null;}_0x303fdd['size']&&this['_refreshSuggestionsChain'](_0x303fdd);}['_refreshAttributeSuggestionsChain'](_0x55aa17){if(0x0==_0x55aa17['length'])return;const _0x1133f0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dc11b=>'attribute'==_0x5dc11b['type']&&_0x5dc11b['_isDataLoaded']),_0x3df8ee=[],_0x2f0471=new Map();for(const _0x1e968e of _0x1133f0){const _0x3f0969=_0x25e831(_0x1e968e['attributes']);_0x2f0471['has'](_0x3f0969)||(_0x2f0471['set'](_0x3f0969,_0x3df8ee['length']),_0x3df8ee['push']([]));const _0x4e3cb9=_0x2f0471['get'](_0x3f0969);_0x3df8ee[_0x4e3cb9]['push'](_0x1e968e);}!(function(){_0x3df8ee['sort']((_0x5680ad,_0x3b4613)=>{const _0x1b1613=_0x5680ad[0x0]['createdAt'],_0x2766ca=_0x3b4613[0x0]['createdAt'];return _0x1b1613==_0x2766ca?_0x5680ad[0x0]['attributes']['groupId']<_0x3b4613[0x0]['attributes']['groupId']?-0x1:0x1:_0x1b1613<_0x2766ca?-0x1:0x1;});for(const _0x1d2f8a of _0x3df8ee)_0x1d2f8a['sort']((_0x2f8ad8,_0x460a46)=>_0x2f8ad8['id']<_0x460a46['id']?-0x1:0x1);}());for(let _0x33507f=0x0;_0x33507f<_0x3df8ee['length'];_0x33507f++){if(0x0==_0x3df8ee[_0x33507f]['length'])continue;const _0x3fb9c1=[];for(let _0x4d6472=_0x33507f+0x1;_0x4d6472<_0x3df8ee['length'];_0x4d6472++)0x0!=_0x3df8ee[_0x4d6472]['length']&&_0x58bf6c(_0x3df8ee[_0x33507f],_0x3df8ee[_0x4d6472])&&_0x3fb9c1['push'](_0x4d6472);for(const _0x580547 of _0x3fb9c1)_0x3df8ee[_0x33507f]=_0x3df8ee[_0x33507f]['concat'](_0x3df8ee[_0x580547]),_0x3df8ee[_0x580547]=[];}for(const _0x34a5d5 of _0x3df8ee)for(let _0x40ce7e=0x0;_0x40ce7e<_0x34a5d5['length'];_0x40ce7e++)_0x34a5d5[_0x40ce7e]['next']=_0x34a5d5[_0x40ce7e+0x1]||null;for(const _0x3bc330 of _0x3df8ee)for(let _0x5158c8=0x0;_0x5158c8<_0x3bc330['length'];_0x5158c8++)_0x3bc330[_0x5158c8]['previous']=_0x3bc330[_0x5158c8-0x1]||null;function _0x58bf6c(_0x1dd663,_0x17317a){if(_0x1dd663[0x0]['attributes']['groupId']!==_0x17317a[0x0]['attributes']['groupId']&&_0x1dd663[0x0]['author']!==_0x17317a[0x0]['author'])return!0x1;if(!function(_0x254744,_0x24e705){if(!_0x254744['hasComments']&&!_0x24e705['hasComments'])return!0x0;if(_0x254744['hasComments']&&_0x24e705['hasComments'])return!0x1;if(_0x254744['hasComments']&&_0x24e705['createdAt']<_0x254744['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x24e705['hasComments']&&_0x254744['createdAt']<_0x24e705['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1dd663[0x0],_0x17317a[0x0]))return!0x1;const _0x4aa7fc=Bt(_0x1dd663[0x0]['attributes'],'groupId'),_0x56f6ee=Bt(_0x17317a[0x0]['attributes'],'groupId');if(!_0x3c3a5c(_0x4aa7fc,_0x56f6ee))return!0x1;return!!_0x1dd663['every'](_0x58686a=>_0x17317a['some'](_0x3179b4=>_0x58686a['getFirstRange']()['isEqual'](_0x3179b4['getFirstRange']())))&&_0x17317a['every'](_0x2afa99=>_0x1dd663['some'](_0x51be53=>_0x2afa99['getFirstRange']()['isEqual'](_0x51be53['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x311ca3){const _0x18eb16=Array['from'](_0x311ca3),_0x409256=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3fd013=_0x409256['filter'](_0x526940=>!_0x311ca3['has'](_0x526940)),_0x5d624a=new Map(_0x18eb16['map'](_0x34c3bb=>[_0x34c3bb,this['_suggestionFactory']['getSuggestionCallback'](_0x34c3bb['type'],_0x34c3bb['subType'],'join')])),_0x2afb2a=new Map(_0x409256['map'](_0x244d73=>[_0x244d73,_0x244d73['getRanges']()]));for(let _0x25168d=0x0;_0x25168d<_0x18eb16['length'];_0x25168d++){if(_0x2a74d5(this,_0x18eb16[_0x25168d],_0x18eb16,_0x25168d+0x1))return!0x0;}for(let _0x57efab=0x0;_0x57efab<_0x18eb16['length'];_0x57efab++){if(_0x2a74d5(this,_0x18eb16[_0x57efab],_0x3fd013,0x0))return!0x0;}return!0x1;function _0x2a74d5(_0x5b071,_0xec5cd5,_0x3ccc87,_0x196bbb){for(let _0x3b400f=_0x196bbb;_0x3b400f<_0x3ccc87['length'];_0x3b400f++){const _0x2b3b6a=_0x3ccc87[_0x3b400f];if(_0x2b3b6a['type']!==_0xec5cd5['type']||_0x2b3b6a['author']['id']!==_0xec5cd5['author']['id']||_0x2b3b6a['subType']!==_0xec5cd5['subType'])continue;if(!Pt(_0xec5cd5,_0x2b3b6a,['groupId']))continue;if('attribute'==_0xec5cd5['type']&&_0xec5cd5['data']['oldValue']!=_0x2b3b6a['data']['oldValue'])continue;if('attribute'==_0xec5cd5['type']&&_0x5b071['_isBlockAttribute'](_0xec5cd5['data']['key']))continue;if('formatBlock'==_0xec5cd5['type']){const _0x131ac2=_0x5b071['editor']['model'],_0x387393=_0xec5cd5['getContainedElement']();if(_0x387393&&(_0x131ac2['schema']['isObject'](_0x387393)||_0x131ac2['schema']['isLimit'](_0x387393)))continue;}const _0xa9705=_0x5d624a['get'](_0xec5cd5),_0x1d6282=_0x2afb2a['get'](_0xec5cd5),_0x5457a=_0x2afb2a['get'](_0x2b3b6a),_0x2ef937=_0xec5cd5['commentThread']&&_0xec5cd5['commentThread']['length'],_0x2206d0=_0x2b3b6a['commentThread']&&_0x2b3b6a['commentThread']['length'];if(!_0x2ef937&&_0xa9705(_0x5457a,_0x1d6282))return _0x5b071['_joinSuggestions'](_0x2b3b6a,_0xec5cd5),_0x2afb2a['delete'](_0xec5cd5),!0x0;if(!_0x2206d0&&_0xa9705(_0x1d6282,_0x5457a))return _0x5b071['_joinSuggestions'](_0xec5cd5,_0x2b3b6a),_0x2afb2a['delete'](_0x2b3b6a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4f1497,_0x4c1458){if(_0x4f1497['isMultiRange']){for(const _0x540a40 of _0x4c1458['getRanges']())_0x4f1497['addRange'](_0x540a40);}else{const _0x44b088=_0x4c1458['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4f1497,this['_model']['createRange'](_0x4f1497['getFirstRange']()['start'],_0x44b088));}_0x4c1458['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2982d3,_0x24e1e0){const _0x75d117=_0x2982d3['startsWith']('format')||_0x2982d3['startsWith']('attribute')?'FORMATTING':_0x2982d3['toUpperCase']();return o(this['editor']['locale'],_0x24e1e0+'_'+_0x75d117+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0xf70b6a=this['editor'];if(!_0xf70b6a['ui'])return;const {ariaLiveAnnouncer:_0x1f7c45}=_0xf70b6a['ui'];_0x5dd96(this['_model'],({left:_0x119418,entered:_0x47b1f3})=>{for(const _0x442cd4 of _0x119418){const {group:_0x1cdfbd,type:_0x26029b}=this['_splitMarkerName'](_0x442cd4['name']);if('suggestion'===_0x1cdfbd){_0x1f7c45['announce'](this['_getMarkerAnnouncementText'](_0x26029b,'LEAVE'));break;}}for(const _0x16c1a1 of _0x47b1f3){const {group:_0x3d9e4e,type:_0x5d4392}=this['_splitMarkerName'](_0x16c1a1['name']);if('suggestion'===_0x3d9e4e){_0x1f7c45['announce'](this['_getMarkerAnnouncementText'](_0x5d4392,'ENTER'));break;}}});}['_processAttributeChanges'](_0xaec687){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1469dc=this['editor'],_0x45c883=_0x1469dc['model']['document']['differ']['getChanges']();if(0x0==_0x45c883['length'])return!0x1;const _0x3666d3=[],_0x2622e1=_0x45c883['filter'](_0x2bc00f=>'attribute'==_0x2bc00f['type']),_0x1c7bb9=_0x45c883['filter'](_0x4bc002=>'insert'==_0x4bc002['type']&&'$text'!=_0x4bc002['name']),_0x3d3d35=_0x45c883['filter'](_0x43684c=>'remove'==_0x43684c['type']&&'$text'!=_0x43684c['name']);for(const _0xcccf22 of _0x2622e1)_0x3666d3['push']({'key':_0xcccf22['attributeKey'],'newValue':_0xcccf22['attributeNewValue'],'oldValue':_0xcccf22['attributeOldValue'],'range':Ot(_0xcccf22['range'],_0x1469dc['model'])});for(const _0x2a0583 of _0x1c7bb9){const _0x4e4873=_0x3d3d35['find'](_0x2ca618=>_0x2ca618['position']['isEqual'](_0x2a0583['position']));_0x4e4873&&_0x3666d3['push']({'key':m,'newValue':_0x2a0583['name'],'oldValue':_0x4e4873['name'],'range':_0x1469dc['model']['createRangeOn'](_0x2a0583['position']['nodeAfter'])});}return 0x0!=_0x3666d3['length']&&this['_reduceExistingSuggestions'](_0xaec687,_0x3666d3);}['_processAttributeSuggestions'](_0x4a7176){let _0x376728=!0x1;const _0x15cb0e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x291117=>_0x291117['data']['newRange']&&_0x291117['name']['startsWith']('suggestion:attribute:'));for(const _0x3e29ee of _0x15cb0e){const {subType:_0x3c8f2f,id:_0x147fa2}=this['_splitMarkerName'](_0x3e29ee['name']),_0x144749=_0x3c8f2f['split']('|')[0x0];for(const _0x18d0e3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x18d0e3['id']!=_0x147fa2&&'attribute'==_0x18d0e3['type']&&_0x18d0e3['data']&&_0x18d0e3['data']['key']==_0x144749&&_0x18d0e3['getFirstRange']()['isIntersecting'](_0x3e29ee['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x18d0e3,_0x3e29ee['data']['newRange'],_0x4a7176),_0x376728=!0x0);}return _0x376728;}['_recordAttributeChanges'](_0x41abee){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x41abee();}['_isRegisteredAttribute'](_0x465cdf){const _0x4bd566=this['_isBlockAttribute'](_0x465cdf),_0x364b6c=this['_inlineAttributeKeys']['has'](_0x465cdf);return _0x4bd566||_0x364b6c;}['_reduceExistingSuggestions'](_0x375108,_0x3e18bf){if(0x0==_0x3e18bf['length'])return!0x1;let _0x2684d9=!0x1;for(const _0xdd0e01 of _0x3e18bf){const _0x7a42b5=this['_findSuggestions'](_0xdd0e01['range'],'attribute')['filter'](_0x9ef894=>!_0x9ef894['meta']['isNextTo'])['map'](_0x174aad=>_0x174aad['suggestion']),_0x25260=_0x25e831({'newValue':_0xdd0e01['newValue']});_0x7a42b5['filter'](_0x48931a=>{const [_0x5d7298,_0x177440]=_0x48931a['subType']['split']('|');return _0x5d7298==_0xdd0e01['key']&&_0x177440!=_0x25260;})['forEach'](_0x48a365=>{this['_reduceSuggestionAttributeRange'](_0x48a365,_0xdd0e01['range'],_0x375108),_0x2684d9=!0x0;});}return _0x2684d9;}['_reduceSuggestionAttributeRange'](_0x4206fc,_0x5d9915,_0x33c100){const _0x44c733=_0x4206fc['getFirstRange']()['getDifference'](_0x5d9915);0x0!==_0x44c733['length']?0x1!==_0x44c733['length']?this['_breakSuggestionMarker'](_0x4206fc,_0x5d9915['start'],_0x5d9915['end']):this['_setSuggestionRange'](_0x4206fc,_0x44c733[0x0]):_0x33c100['removeMarker'](_0x4206fc['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x11b1f7){this['_editor']=_0x11b1f7,this['_model']=_0x11b1f7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2a17e6,_0x224d80,_0x4cc766,_0x3312a5,_0x2a9c99,_0x295603){return new u(this['_model'],{'type':_0x2a17e6,'subType':_0x224d80,'id':_0x4cc766,'author':_0x3312a5,'creator':_0x3312a5,'attributes':_0x2a9c99,'onAttributesChange':_0x295603,'onAccept':(..._0x2b836f)=>this['getSuggestionCallback'](_0x2a17e6,_0x224d80,'accept')(..._0x2b836f),'onDiscard':(..._0xaf2e18)=>this['getSuggestionCallback'](_0x2a17e6,_0x224d80,'discard')(..._0xaf2e18)});}['registerCustomCallback'](_0x168755,_0x558bbd,_0xcdc48f,_0x476c48){const _0x298709=_0x168755+':'+_0x558bbd+':'+_0xcdc48f;this['_customCallbacks']['set'](_0x298709,_0x476c48);}['getSuggestionCallback'](_0x4d8483,_0x244c2c,_0x66837a){const _0xa591d2=_0x4d8483+':'+_0x244c2c+':'+_0x66837a;return this['_customCallbacks']['get'](_0xa591d2)||this['_defaultCallbacks']['get'](_0x4d8483+':'+_0x66837a);}['_registerDefaultCallbacks'](){const _0x47cd3c=()=>!0x1,_0x1abb1e=_0x14ba8c=>{_0x14ba8c['sort']((_0x42cdef,_0x5a0920)=>_0x42cdef['start']['isBefore'](_0x5a0920['start'])?0x1:-0x1),this['_model']['change'](_0x2c2e44=>{for(const _0x313073 of _0x14ba8c){let _0x416e7f;_0x416e7f=_0x313073['end']['isAtEnd']&&_0x313073['end']['parent']==_0x313073['start']['nodeAfter']?_0x2c2e44['createSelection'](_0x313073['start']['nodeAfter'],'on'):_0x2c2e44['createSelection'](_0x313073),this['_model']['deleteContent'](_0x416e7f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1d4dfc=(_0x3516e1,_0x2038be)=>{_0x2038be&&this['_model']['change'](_0x2cb3aa=>{const {commandName:_0x4513a4,commandParams:_0x4f42cf=[]}=_0x2038be,_0x29c6bd=_0x3516e1['map'](_0x26b622=>(Tt(_0x26b622)&&(_0x26b622=this['_model']['createRange'](_0x26b622['end'])),_0x26b622))['filter'](_0x5deea5=>'$graveyard'!==_0x5deea5['root']['rootName']);if(_0x29c6bd['length']<0x1)return;const _0x308229=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x19ce5d=>_0x113a9d['fromRange'](_0x19ce5d));_0x2cb3aa['setSelection'](_0x29c6bd);for(const _0x52bd45 of this['_editor']['commands']['commands']())_0x52bd45['refresh']();_0x4f42cf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4513a4,..._0x4f42cf);const _0x4c7796=_0x308229['filter'](_0xa37419=>'$graveyard'!=_0xa37419['root']['rootName']);_0x4c7796['length']>0x0&&_0x2cb3aa['setSelection'](_0x4c7796);for(const _0xe4ca9b of _0x308229)_0xe4ca9b['detach']();});},_0x4d24e1=(_0x57e253,_0x2dd550)=>0x1==_0x57e253['length']&&0x1==_0x2dd550['length']&&_0x57e253[0x0]['end']['isEqual'](_0x2dd550[0x0]['start']),_0x58539f=(_0x51387a,_0x2470c3,_0x4a3596,_0x28a067)=>Ft(_0x51387a,_0x2470c3,_0x4a3596,_0x28a067,this['_model'])?[_0x51387a,_0x2470c3]:Ft(_0x2470c3,_0x51387a,_0x28a067,_0x4a3596,this['_model'])?[_0x2470c3,_0x51387a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x47cd3c),this['_defaultCallbacks']['set']('insertion:discard',_0x1abb1e),this['_defaultCallbacks']['set']('insertion:join',_0x4d24e1),this['_defaultCallbacks']['set']('insertion:chain',_0x58539f),this['_defaultCallbacks']['set']('deletion:accept',_0x1abb1e),this['_defaultCallbacks']['set']('deletion:discard',_0x47cd3c),this['_defaultCallbacks']['set']('deletion:join',_0x4d24e1),this['_defaultCallbacks']['set']('deletion:chain',_0x58539f),this['_defaultCallbacks']['set']('formatInline:accept',_0x1d4dfc),this['_defaultCallbacks']['set']('formatInline:discard',_0x47cd3c),this['_defaultCallbacks']['set']('formatInline:join',_0x4d24e1),this['_defaultCallbacks']['set']('formatInline:chain',_0x47cd3c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1d4dfc),this['_defaultCallbacks']['set']('formatBlock:discard',_0x47cd3c),this['_defaultCallbacks']['set']('formatBlock:join',_0x4d24e1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x47cd3c),this['_defaultCallbacks']['set']('attribute:accept',_0x47cd3c),this['_defaultCallbacks']['set']('attribute:discard',(_0x26d6aa,_0x20f8f1)=>{if(!_0x20f8f1)return;const _0x130054=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2da4ff=>{if(_0x20f8f1['key']==m)for(const _0x34e2d4 of _0x26d6aa){const _0x54c943=_0x34e2d4['start']['nodeAfter'],_0x5af3f0=_0x20f8f1['oldValue'];_0x2da4ff['rename'](_0x54c943,_0x5af3f0);}else{if(_0x130054['_isBlockAttribute'](_0x20f8f1['key'])){for(const _0x529aad of _0x26d6aa)void 0x0!==_0x20f8f1['oldValue']?_0x2da4ff['setAttribute'](_0x20f8f1['key'],_0x20f8f1['oldValue'],_0x529aad['start']['nodeAfter']):_0x2da4ff['removeAttribute'](_0x20f8f1['key'],_0x529aad['start']['nodeAfter']);}else{for(const _0x3ddb0c of _0x26d6aa)_0x20f8f1['oldValue']?_0x2da4ff['setAttribute'](_0x20f8f1['key'],_0x20f8f1['oldValue'],_0x3ddb0c):_0x2da4ff['removeAttribute'](_0x20f8f1['key'],_0x3ddb0c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4d24e1);}}function Rt(_0x2c1b51,_0x1827be,_0x34e87c){for(const _0x3d5bef of _0x1827be['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3d5bef['root']==_0x3d5bef)return!0x1;if(!_0x34e87c['containsItem'](_0x3d5bef))return!0x1;if(_0x2c1b51['isObject'](_0x3d5bef)||_0x2c1b51['isLimit'](_0x3d5bef))return!0x0;}return!0x1;}function Tt(_0x1a8698){return _0x1a8698['end']['parent']==_0x1a8698['start']['nodeAfter']&&_0x1a8698['end']['isAtStart'];}function Et(_0x2fa765,_0x514931,_0x9ce9ae,_0x3b0d2c){const _0x311d07=_0x4d4f28=>!_0x4d4f28['item']['is']('$textProxy')&&!_0x3b0d2c['isObject'](_0x4d4f28['item']),_0x5dcc11=_0x2fa765['start']['getLastMatchingPosition'](_0x311d07),_0x5df548=_0x2fa765['end']['getLastMatchingPosition'](_0x311d07,{'direction':'backward'});return(!_0x2fa765['start']['isEqual'](_0x5dcc11)||!_0x2fa765['end']['isEqual'](_0x5df548))&&(_0x5dcc11['isBefore'](_0x5df548)?_0x9ce9ae['updateMarker'](_0x514931,{'range':_0x9ce9ae['createRange'](_0x5dcc11,_0x5df548)}):_0x9ce9ae['removeMarker'](_0x514931),!0x0);}function Vt(_0x28cb1c){return _0x25e831(_0x28cb1c);}function Ut(_0x463c64){const _0x26529b=_0x463c64['start']['nodeAfter'];return _0x26529b&&_0x26529b['is']('element');}function Ot(_0x47b7e9,_0xbf41af){return null==_0x47b7e9['end']['nodeBefore']&&_0x47b7e9['end']['parent']==_0x47b7e9['start']['nodeAfter']?Gt(_0x47b7e9['start']['nodeAfter'],_0xbf41af):_0x47b7e9;}function Gt(_0x269d1e,_0x4c98bd){const _0x33a724=_0x4c98bd['schema']['isObject'](_0x269d1e)||_0x4c98bd['schema']['isSelectable'](_0x269d1e);return _0x4c98bd['createRange'](_0x4c98bd['createPositionAt'](_0x269d1e,'before'),_0x33a724?_0x4c98bd['createPositionAfter'](_0x269d1e):_0x4c98bd['createPositionAt'](_0x269d1e,'end'));}function Ft(_0x104f5a,_0x37560f,_0x2ff3b4,_0x25c90c,_0x21babd){if(!Pt(_0x104f5a,_0x37560f))return!0x1;if(_0x2ff3b4['end']['isEqual'](_0x25c90c['start']))return!0x0;if(_0x104f5a['type']!=_0x37560f['type'])return!0x1;if(!_0x2ff3b4['end']['isTouching'](_0x25c90c['start']))return!0x1;const _0x512e44=_0x21babd['createRange'](_0x2ff3b4['end'],_0x25c90c['start'])['getWalker']();for(const _0x5ba169 of _0x512e44)if(['elementStart','elementEnd']['includes'](_0x5ba169['type'])&&_0x21babd['schema']['isLimit'](_0x5ba169['item']))return!0x1;return!0x0;}function Pt(_0x974a24,_0x15c9bf,_0x302abf=[]){return!(!_0x974a24['_isDataLoaded']||!_0x15c9bf['_isDataLoaded'])&&_0x3c3a5c(Bt(_0x974a24['attributes'],_0x302abf),Bt(_0x15c9bf['attributes'],_0x302abf));}function Lt(_0x16928e,_0x1f6a9c){const _0x4fd298=Ht(_0x16928e['attributes']),_0xfb922d=Ht(_0x1f6a9c);if(!_0x16928e['_isDataLoaded'])return!0x1;for(const _0x200c5d of Object['keys'](_0xfb922d))if(!_0x3c3a5c(_0x4fd298[_0x200c5d],_0xfb922d[_0x200c5d]))return!0x1;return!0x0;}function Ht(_0x271569){const _0x5eac58=Object['assign']({},_0x271569);return delete _0x5eac58['skipNestingCheck'],delete _0x5eac58['tablePasteChainId'],_0x5eac58;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2d6f38(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xa4eda6,_0x4054bd,_0x2aee6c,_0x30f45b){super(),this['model']=_0x4054bd,this['view']=_0x2aee6c,this['commentThreadController']=_0x30f45b,this['_editor']=_0xa4eda6,this['_acceptCommand']=_0xa4eda6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xa4eda6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x163d53,_0x38f841)=>_0x163d53||_0x38f841),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2c199c=>_0x2c199c&&this['_editor']['model']['canEditAt'](_0x4054bd['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x193b25=>_0x193b25&&this['_editor']['model']['canEditAt'](_0x4054bd['getRanges']())),this['_pendingAction']=null,_0x2aee6c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2aee6c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2aee6c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2aee6c,'change:isDirty',()=>{_0x2aee6c['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0xaa2aa0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xaa2aa0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x485f05{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x8a416c,_0x29d17b,_0x45c0d3,_0xcb3de7){super(_0x8a416c),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x29d17b['authoredAt']),this['bind']('authoredAt')['to'](_0x29d17b),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x29d17b,this['_localUser']=_0x45c0d3,this['_config']=_0xcb3de7,_0xcb3de7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x471adb}=this['_config'];this['commentsListView']=new _0x471adb(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',_0x290815=>_0x290815+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5dc04d,_0x1699db)=>_0x5dc04d||!!_0x1699db);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x94c5d4}=this['_config'],_0x35aa68=new _0x94c5d4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x74ea68=_0x35aa68['commentInputView'];return _0x35aa68['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x74ea68,'value',(_0x14efc9,_0x4f98c9,_0x389454)=>!!_0x389454||_0x14efc9&&!_0x4f98c9),_0x74ea68['on']('submit',(_0x1d76d9,_0x56e627)=>{this['fire']('addComment',_0x56e627),_0x74ea68['editor']['setData']('');}),_0x74ea68['on']('cancel',()=>this['focus']()),_0x74ea68['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x35aa68;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0xd4de6c,_0x1de88c,_0x4559a9,_0x37fe44){super(_0xd4de6c,_0x1de88c,_0x4559a9,_0x37fe44),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3f24e2=>_0x3f24e2&&_0x3f24e2[0x0]?_0x3f24e2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x7676d3,_0x2a428d)=>{let _0x36a6c0='';for(const _0x951056 of _0x7676d3)_0x36a6c0+='<p>'+ds(_0x951056['content'],_0x951056['color'])+'</p>';return _0x2a428d?_0x36a6c0:_0x41c853(_0x36a6c0,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0xd4de6c,'Accept\x20suggestion'),_0x1edfff['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0xd4de6c,'Discard\x20suggestion'),_0x1edfff['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x7912f8(_0xd4de6c,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x17c65a=this['bindTemplate'],_0x190cb1=[{'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':_0x17c65a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x17c65a['to']('authoredAt',_0x34aa16=>this['_config']['formatDateTime'](_0x34aa16))}]}]},{'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']&&_0x190cb1['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x23a1bc={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x17c65a['if']('isActive','ck-suggestion-wrapper--active'),_0x17c65a['to']('type',_0x37d064=>'ck-suggestion-'+_0x37d064),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':_0x190cb1}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x23a1bc['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)),_0x23a1bc;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x3d8161,_0x200283,_0x596ad7)=>{this['_descriptionElement']['innerHTML']=_0x596ad7;});}['_createButton'](_0x159070,_0x685965,_0x14ff45,_0x45eae2,_0x23eedb){const _0x32d794=new _0x164b59(this['locale']);return _0x32d794['set']({'label':_0x159070,'icon':_0x685965,'tooltip':!0x0,'tooltipPosition':_0x23eedb}),_0x32d794['extendTemplate']({'attributes':{'class':_0x14ff45}}),_0x32d794['on']('execute',()=>{this['fire'](_0x45eae2,this['_model']['id']);}),_0x32d794;}['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;}}function ds(_0x408ef3,_0x4616e1){let _0x1150ca='';return _0x1150ca+=_0x408ef3['split']('*')['map']((_0x41ee7a,_0x45e06e)=>_0x45e06e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x41ee7a)+'</span>':us(_0x41ee7a))['join'](''),_0x4616e1&&(_0x1150ca+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4616e1['value']+'\x22\x20title=\x22'+_0x4616e1['title']+'\x22></span>'),_0x1150ca;}function us(_0x277056){const _0x467c42=document['createElement']('span');return _0x467c42['innerText']=_0x277056,_0x467c42['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 _0x4df026{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x19eb47,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2ffa2d){super(_0x2ffa2d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3b6f2b=this['editor']['config'];_0x3b6f2b['define']('trackChanges.SuggestionThreadView',ne),_0x3b6f2b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3b6f2b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x313566,_0x220b8e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2b963f,_0x4700fe]of this['_handleControllerBuffer']){const _0x14c01c=this['_suggestionToController']['has'](_0x2b963f);_0x14c01c||_0x4700fe?_0x14c01c&&_0x4700fe&&this['_destroyController'](_0x2b963f):this['_initializeController'](_0x2b963f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x313566,_0x220b8e);}['init'](){const _0x5bcc1e=this['editor'],_0x114c8a=_0x5bcc1e['plugins']['get']('TrackChangesEditing'),_0x4e5ba6=_0x5bcc1e['plugins']['get']('Annotations'),_0x4a4ea=_0x5bcc1e['plugins']['get']('EditorAnnotations'),_0x5a6ae3=_0x5bcc1e['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4a4ea['addSourceCollector'](()=>{const _0x5b900a=[];for(const [_0x4d37a2,_0x2f59d9]of Array['from'](this['_suggestionToController'])){const _0x99b043=_0x4d37a2['getAllAdjacentSuggestions'](),_0x37400a=[];for(const _0x257cc3 of _0x99b043){if(!_0x257cc3['isInContent'])continue;if(_0x257cc3['isMultiRange']){_0x37400a['push'](..._0x257cc3['getRanges']());continue;}const _0x1ae3ea=_0x257cc3['getFirstRange']();if(_0x37400a['length']>0x0){const _0x6ba856=_0x37400a[0x0]['getJoined'](_0x1ae3ea);if(_0x6ba856){_0x37400a[0x0]=_0x6ba856;continue;}}_0x37400a['push'](_0x1ae3ea);}_0x5b900a['push']([_0x2f59d9['view'],_0x37400a]);}return _0x5b900a;}),this['listenTo'](_0x114c8a,'suggestionLoaded',(_0x24ab67,_0x800150)=>{this['listenTo'](_0x800150,'change:previous',(_0x4555b9,_0x388bd9,_0x4e1a6d,_0x47d5e5)=>{_0x800150['isInContent']&&(null==_0x4e1a6d?(this['_updateController'](_0x47d5e5['head']),this['_handleSuggestionControllerDelayed'](_0x800150,!0x1)):(this['_updateController'](_0x4e1a6d['head']),null==_0x47d5e5&&this['_handleSuggestionControllerDelayed'](_0x800150,!0x0)));}),null!==_0x800150['previous']?this['_updateController'](_0x800150['head']):this['_handleSuggestionControllerDelayed'](_0x800150,!0x1);}),this['listenTo'](_0x114c8a,'suggestionUnloaded',(_0x4a84d6,_0xa39427,_0x18a1ad)=>{this['stopListening'](_0xa39427,'change:previous'),this['_handleControllerBuffer']['delete'](_0xa39427),this['_suggestionToController']['has'](_0xa39427)&&this['_destroyController'](_0xa39427),_0x18a1ad&&this['_updateController'](_0x18a1ad['head']);}),this['listenTo'](_0x114c8a,'suggestionChanged',(_0x610fd6,_0x5d975d)=>{this['_updateController'](_0x5d975d);}),this['listenTo'](_0x4e5ba6,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5a6ae3,'addComment',(_0x40ace3,{threadId:_0x5bee14,isFromAdapter:_0x16959a})=>{if(_0x16959a||!_0x114c8a['hasSuggestion'](_0x5bee14))return;const _0x1df21b=_0x114c8a['getSuggestion'](_0x5bee14);this['_suggestionToController']['get'](_0x1df21b)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xb4b5a8=this['editor']['plugins']['get']('Annotations'),_0xa30b93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x69f737=Array['from'](_0xb4b5a8['activeAnnotations'],_0x1b606c=>_0x1b606c['innerView'])['filter'](_0xe5aa1f=>this['_viewToController']['has'](_0xe5aa1f)),_0x1951d8=[];for(const _0x58e0aa of _0x69f737){const _0x4380cf=this['_viewToController']['get'](_0x58e0aa)['model']['getAllAdjacentSuggestions']();_0x1951d8['push'](..._0x4380cf['reduce']((_0x1b2100,_0x45bb13)=>[..._0x1b2100,..._0x45bb13['getMarkerNames']()],[]));}_0xa30b93['activeMarkers']=_0x1951d8;}['_addUIComponentsToFactory'](){const _0x390840=this['editor'],_0x8ed1ed=_0x390840['locale'],_0x11de13=o(_0x8ed1ed,'Track\x20changes'),_0x4c1816=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x11de13,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x8ed1ed,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x8ed1ed,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x8ed1ed,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x8ed1ed,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3829a4 of _0x4c1816)if(ae(_0x3829a4)){const _0x3da5ef=_0x390840['commands']['get'](_0x3829a4['model']['commandName']);_0x3829a4['model']['bind']('isOn','isEnabled')['to'](_0x3da5ef,'value','isEnabled');}_0x390840['ui']['componentFactory']['add']('trackChanges',_0x458bd6=>this['_createToolbarButton'](_0x458bd6,_0x4c1816,_0x11de13)),_0x390840['ui']['componentFactory']['add']('menuBar:trackChanges',_0x400967=>this['_createMenuBarMenu'](_0x400967,_0x4c1816,_0x11de13));}['_createToolbarButton'](_0x4085d5,_0x513b39,_0x2c2d55){const _0x23e1ef=zt(_0x4085d5,Zt),_0x11f18b=this['editor']['commands']['get']('trackChanges');_0x23e1ef['buttonView']['set']({'tooltip':_0x2c2d55,'label':_0x2c2d55,'icon':ie}),_0x23e1ef['buttonView']['bind']('isOn')['to'](_0x11f18b,'value'),_0x23e1ef['buttonView']['on']('execute',()=>{_0x11f18b['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x23e1ef,_0x513b39,{'role':'menu'});const _0x4a0a80=[];for(const _0x6f554b of _0x513b39)ae(_0x6f554b)&&_0x4a0a80['push'](this['editor']['commands']['get'](_0x6f554b['model']['commandName']));const _0x2b8980=_0x23e1ef['buttonView'];return _0x2b8980['actionView']['unbind']('isEnabled'),_0x2b8980['arrowView']['unbind']('isEnabled'),_0x2b8980['actionView']['bind']('isEnabled')['to'](_0x11f18b,'isEnabled'),_0x2b8980['arrowView']['bind']('isEnabled')['toMany'](_0x4a0a80,'isEnabled',(..._0xa360e5)=>_0xa360e5['some'](_0x2caf53=>_0x2caf53)),_0x23e1ef['on']('execute',_0x6808a6=>{this['editor']['execute'](_0x6808a6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x23e1ef;}['_createMenuBarMenu'](_0xc56862,_0x3efa89,_0x58dd16){const _0x2165de=new Kt(_0xc56862),_0x3c97f7=this['editor']['commands']['get']('trackChanges');_0x2165de['buttonView']['set']({'label':_0x58dd16,'icon':ie});const _0x3ec9da=new Qt(_0xc56862);for(const _0x4997f7 of _0x3efa89){if('separator'==_0x4997f7['type']){_0x3ec9da['items']['add'](new Jt(_0xc56862));continue;}const _0x2ad3ea=new Xt(_0xc56862,_0x2165de),_0x2890a2=new Yt(_0xc56862),_0x1e6e03=_0x4997f7['model'];_0x2890a2['bind'](...Object['keys'](_0x1e6e03))['to'](_0x1e6e03),_0x2890a2['delegate']('execute')['to'](_0x2165de),_0x2890a2['on']('execute',()=>{this['editor']['execute'](_0x1e6e03['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ad3ea['children']['add'](_0x2890a2),_0x3ec9da['items']['add'](_0x2ad3ea);}return _0x2165de['bind']('isEnabled')['to'](_0x3c97f7,'isEnabled'),_0x2165de['panelView']['children']['add'](_0x3ec9da),_0x2165de;}['_initializeController'](_0x41d5ab){const _0x12acfc=this['editor'],_0x7006b0=_0x12acfc['config'],_0x4e9fb1=_0x12acfc['plugins']['get']('Annotations'),_0x522b5f=_0x12acfc['plugins']['get']('CommentsRepository'),_0x215ee8=_0x12acfc['plugins']['get']('EditorAnnotations'),_0x587863=_0x12acfc['plugins']['get'](_0x19eb47)['me'],_0xc8d053=_0x7006b0['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x28a284,CommentThreadInputView:_0x423653}=_0x12acfc['plugins']['get']('CommentsUI');let _0x48e08f,_0x472874;this['_annotationViews']['has'](_0x41d5ab['id'])?(_0x472874=this['_annotationViews']['get'](_0x41d5ab['id']),_0x48e08f=_0x472874['mainView']):(_0x48e08f=new _0xc8d053(_0x12acfc['locale'],_0x41d5ab,_0x587863,{'disableComments':this['_disableComments'],'editorConfig':_0x7006b0['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x7006b0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x7006b0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x7006b0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5ade21(_0x7006b0['get']('locale')),'CommentView':_0x7006b0['get']('comments')['CommentView'],'CommentsListView':_0x28a284,'CommentThreadInputView':_0x423653}),_0x48e08f['acceptButton']['on']('execute',()=>{_0x12acfc['editing']['view']['focus']();}),_0x48e08f['discardButton']['on']('execute',()=>{_0x12acfc['editing']['view']['focus']();}),_0x472874=_0x4e9fb1['createAnnotationView'](this['editor']['locale'],_0x48e08f),_0x472874['bind']('isDirty')['to'](_0x48e08f,'isDirty'),_0x472874['bind']('length')['to'](_0x48e08f),_0x472874['bind']('type')['to'](_0x48e08f,'type',_0x37f274=>'suggestion-'+_0x37f274),this['_annotationViews']['set'](_0x41d5ab['id'],_0x472874));const _0x298611=_0x522b5f['createCommentThreadController'](_0x41d5ab['commentThread'],_0x48e08f),_0x53f8f6=new oe(_0x12acfc,_0x41d5ab,_0x48e08f,_0x298611),_0x788759=_0x41d5ab['getAllAdjacentSuggestions']()['filter'](_0x27fc48=>_0x27fc48['isInContent']);_0x48e08f['descriptionParts']=_0x12acfc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x788759),this['_suggestionToController']['set'](_0x41d5ab,_0x53f8f6),this['_viewToController']['set'](_0x48e08f,_0x53f8f6);const _0x3c037d=_0x4e9fb1['createAnnotation']({'view':_0x472874,'target':()=>{const _0x4ed6da=[],_0x183061=_0x41d5ab['getAllAdjacentSuggestions']()['filter'](_0x36dcaa=>_0x36dcaa['isInContent']);for(const _0x4f2a0c of _0x183061)_0x4ed6da['push'](..._0x4f2a0c['getMarkers']());return _0x2c4952(_0x12acfc['editing'],_0x4ed6da);},'type':()=>'suggestion-'+_0x53f8f6['view']['type']});_0x522b5f['_bindAnnotationToEditors'](_0x48e08f,_0x3c037d),_0x4e9fb1['add'](_0x3c037d),_0x215ee8['registerAnnotation'](_0x3c037d);}['_destroyController'](_0x16807c){const _0x21447c=this['editor']['plugins']['get']('CommentsRepository'),_0x221f17=this['editor']['plugins']['get']('Annotations'),_0x370b6e=this['_suggestionToController']['get'](_0x16807c),_0x5a92b7=_0x370b6e['view'],_0xb1f83e=_0x221f17['getByInnerView'](_0x5a92b7);_0x21447c['_unbindEditors'](_0x5a92b7),_0xb1f83e&&_0x221f17['remove'](_0xb1f83e),this['_suggestionToController']['delete'](_0x16807c),this['_viewToController']['delete'](_0x5a92b7),_0x370b6e['destroy']();}['_updateController'](_0x6a9e4d){if(!_0x6a9e4d['isInContent']||!this['_suggestionToController']['has'](_0x6a9e4d))return;const _0x4e799b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52465c=this['_suggestionToController']['get'](_0x6a9e4d),_0x34d70d=_0x6a9e4d['getAllAdjacentSuggestions']();_0x52465c['view']['descriptionParts']=_0x4e799b['descriptionFactory']['getDescriptions'](_0x34d70d);}['destroy'](){for(const _0x32b6af of this['_suggestionToController']['keys']())this['_destroyController'](_0x32b6af);for(const _0x505529 of this['_annotationViews']['values']())_0x505529['mainView']['destroy']();super['destroy']();}}function ae(_0xcc8077){return'model'in _0xcc8077;}class k extends _0x4df026{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x26aa29){this['editor']['plugins']['get'](p)['adapter']=_0x26aa29;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x24b8c5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x24b8c5);}['getSuggestions']({skipNotAttached:_0x4ae77b=!0x1,toJSON:_0x7cf2e5=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4ae77b,'toJSON':_0x7cf2e5});}['getSuggestion'](_0xa21539){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xa21539);}}const T=['Pagination'];class P extends _0x4df026{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0xaf303b=this['editor'];if(_0xaf303b['config']['define']('trackChangesData.editorCreator',_0x4e63d5=>{const _0x5d573a=_0xaf303b['model']['document']['getRootNames']()['reduce']((_0x2c904c,_0x28f9aa)=>(_0x2c904c[_0x28f9aa]='',_0x2c904c),{});return _0xaf303b['constructor']['create'](_0x5d573a,_0x4e63d5);}),'function'!=typeof _0xaf303b['config']['get']('trackChangesData')['editorCreator'])throw new _0x5be51a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4740b0){return N(this['editor'],!0x0,_0x4740b0);}['getDataWithDiscardedSuggestions'](_0x6500f2){return N(this['editor'],!0x1,_0x6500f2);}}class D extends _0x4df026{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x5c4051){super(_0x5c4051),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x35c9dd){return void 0x0!==_0x35c9dd['getRootsAttributes'];}async function N(_0x64e039,_0x3900e0,_0x10735e){const _0x28feae=_0x5b2c98(_0x64e039,T);_0x28feae['plugins']['push'](p,D),_0x28feae['rootsAttributes']=v(_0x64e039)?_0x64e039['getRootsAttributes']():void 0x0;const _0x4d48a2=document['createDocumentFragment'](),_0x4e7ef3=_0x64e039['config']['get']('trackChangesData')['editorCreator'],_0x39d8c6=await _0x4e7ef3(_0x28feae,()=>function(_0x537be6){const _0x353f63=document['createElement']('div');return _0x537be6['appendChild'](_0x353f63),_0x353f63;}(_0x4d48a2));!function(_0x472f78,_0x9b844f){const _0x22dd46=_0x472f78['model']['document']['getRootNames']()['reduce']((_0x131eb9,_0x3d7603)=>(_0x131eb9[_0x3d7603]=_0x472f78['data']['get']({'rootName':_0x3d7603}),_0x131eb9),{}),_0x2e243e=_0x472f78['plugins']['get']('Users')['users']['map'](_0x7ee08d=>({'id':_0x7ee08d['id'],'name':_0x7ee08d['name']})),_0x3b3a9c=_0x472f78['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x17e085=_0x472f78['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x523df0=_0x9b844f['plugins']['get']('Users'),_0x5f5530=_0x9b844f['plugins']['get']('TrackChangesEditing'),_0x528f5a=_0x9b844f['plugins']['get']('CommentsRepository');for(const _0x1b3671 of _0x2e243e)_0x523df0['getUser'](_0x1b3671['id'])||_0x523df0['addUser'](_0x1b3671);_0x523df0['me']||_0x523df0['useAnonymousUser']();for(const _0x53160e of _0x17e085)_0x528f5a['addCommentThread'](_0x53160e);for(const _0x30b243 of _0x3b3a9c)_0x5f5530['addSuggestionData'](_0x30b243);_0x9b844f['data']['set'](_0x22dd46);}(_0x64e039,_0x39d8c6),_0x39d8c6['execute'](_0x3900e0?'acceptAllSuggestions':'discardAllSuggestions');const _0x349cf8=v(_0x39d8c6)?_0x39d8c6['getFullData'](_0x10735e):_0x39d8c6['data']['get'](_0x10735e);return await _0x39d8c6['destroy'](),_0x349cf8;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x1c9f3d,PendingActions as _0x5194b1,icons as _0x1e3b05}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x109ba3,ObservableMixin as _0x24d01d,uid as _0x7b6b31,insertToPriorityArray as _0x478f66,priorities as _0x2c04bb,logWarning as _0x2b4af0,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x22d4d7,View as _0x5662df,ButtonView as _0x18c11e,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 _0x505203,hashObject as _0x42152e,surroundingMarkersDetector as _0x23dbc7,trimHtml as _0x1ec19c,UserView as _0x3b1e71,getDateTimeFormatter as _0x1b3aba,getAllMarkersDomElementsSorted as _0x141286,sanitizeEditorConfig as _0xf72f50}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x14b105,LiveRange as _0x45d820,LivePosition as _0x45caaa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4a7bb1,toWidget as _0x13eccc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x131c94,set as _0x47a1a3,isEqual as _0x15c9fb,unset as _0x1bfbbd,omit as Bt}from'lodash-es';import{Delete as _0x143485,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4d004a,ShiftEnter as _0x25ed4a}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0xda7b0b,_0x350328){super(_0xda7b0b),this['_enabledCommands']=_0x350328,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x404ee8 of this['editor']['commands']['commands']())_0x404ee8['affectsData']&&!this['_enabledCommands']['has'](_0x404ee8)&&_0x404ee8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1c65cc of this['editor']['commands']['commands']())_0x1c65cc['affectsData']&&!this['_enabledCommands']['has'](_0x1c65cc)&&_0x1c65cc['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x29b8f3,_0x29c9d4){super(_0x29b8f3),this['_suggestions']=_0x29c9d4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x18a4e8){const _0x459326=this['_suggestions']['get'](_0x18a4e8);if(!_0x459326)throw new _0x109ba3('track-changes-accept-suggestion-not-found',this);const _0x369271=_0x459326['getRanges']();this['editor']['model']['canEditAt'](_0x369271)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x459326);}}class B extends ts{['_suggestions'];constructor(_0x93eba,_0x49d9ce){super(_0x93eba),this['_suggestions']=_0x49d9ce,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4b1b76){const _0x2865a8=this['_suggestions']['get'](_0x4b1b76);if(!_0x2865a8)throw new _0x109ba3('track-changes-discard-suggestion-not-found',this);const _0x122a7e=_0x2865a8['getRanges']();this['editor']['model']['canEditAt'](_0x122a7e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2865a8);}}function ss(_0x257057){return _0x257057['sort']((_0x21ceaa,_0x3cd64f)=>'deletion'==_0x21ceaa['type']&&'deletion'!=_0x3cd64f['type']?-0x1:'deletion'!=_0x21ceaa['type']&&'deletion'==_0x3cd64f['type']?0x1:0x0);}function to(_0x1b9e04,_0x1eda5a){let _0x14a81f,_0x517aa6=0x0;const _0x5d31a3=[],_0x2b461e=_0x1eda5a['schema'];for(;_0x517aa6<_0x1b9e04['length'];){const _0x183fa9=_0x1b9e04[_0x517aa6],_0x2c48d7=_0x1b9e04[_0x517aa6+0x1];_0x14a81f||(_0x14a81f=_0x1eda5a['createPositionBefore'](_0x183fa9)),co(_0x1eda5a,_0x183fa9,_0x2c48d7)||(_0x5d31a3['push'](_0x1eda5a['createRange'](_0x14a81f,_0x2b461e['isObject'](_0x183fa9)?_0x1eda5a['createPositionAfter'](_0x183fa9):_0x1eda5a['createPositionAt'](_0x183fa9,'end'))),_0x14a81f=null),_0x517aa6++;}return _0x5d31a3;}function co(_0x1e5431,_0x16fc13,_0x455025){if(!_0x455025)return!0x1;const _0x39d26a=_0x1e5431['createPositionAfter'](_0x16fc13),_0x4d4fec=_0x1e5431['createPositionBefore'](_0x455025);return _0x39d26a['isTouching'](_0x4d4fec);}function rs(_0x2a2878,_0xc80f77,_0x5acee1){for(;_0x5acee1['length'];){const _0x19d017=_0x5acee1['splice'](0x0,0x64);_0x2a2878['change'](()=>{for(const _0x47a122 of _0x19d017)_0x47a122['isInContent']&&_0xc80f77['execute'](_0x47a122['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x1cad6c,_0x1f1ce8,_0x4032d8){super(_0x1cad6c),this['_command']=_0x1f1ce8,this['_suggestions']=_0x4032d8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1fd1a3=Array['from'](this['_suggestions']['values']())['some'](_0x28f85f=>_0x28f85f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1fd1a3;}['execute'](){const _0xb0df3a=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2394ff of _0xb0df3a){const _0x538a76=_0x2394ff['getRanges']();if(!this['editor']['model']['canEditAt'](_0x538a76))return;}rs(this['editor']['model'],this['_command'],_0xb0df3a);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4f23f9,_0x35adc6,_0x357e3c){super(_0x4f23f9),this['_command']=_0x35adc6,this['_suggestions']=_0x357e3c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x11dc64=this['editor']['model']['document']['selection'],_0x3dfbae=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5c72b9,_0x5eeb7c){const _0x512745=Array['from'](_0x5c72b9['getRanges']()),_0x5d4fe7=new Set();for(const _0x566683 of _0x5eeb7c)if(_0x566683['isInContent']){for(const _0x4ecac0 of _0x512745)for(const _0x2a9936 of _0x566683['getRanges']())(_0x4ecac0['isIntersecting'](_0x2a9936)||_0x5c72b9['isCollapsed']&&!_0x566683['isMultiRange']&&_0x566683['next']&&_0x2a9936['end']['isTouching'](_0x4ecac0['start']))&&_0x5d4fe7['add'](_0x566683);}return _0x5d4fe7;}(_0x11dc64,_0x3dfbae),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1160ea=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4dcb63 of _0x1160ea){const _0x41ca6a=_0x4dcb63['getRanges']();if(!this['editor']['model']['canEditAt'](_0x41ca6a))return;}rs(this['editor']['model'],this['_command'],_0x1160ea);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x24d01d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2139bd,_0x4ffeca){super(),this['id']=_0x4ffeca['id'],this['type']=_0x4ffeca['type'],this['subType']=_0x4ffeca['subType']||null,this['author']=_0x4ffeca['author'],this['creator']=_0x4ffeca['creator']||_0x4ffeca['author'],this['isExternal']=Boolean(_0x4ffeca['attributes']&&_0x4ffeca['attributes']['@external']),this['data']=null,this['_model']=_0x2139bd,this['_onAccept']=_0x4ffeca['onAccept'],this['_onDiscard']=_0x4ffeca['onDiscard'],this['_onAttributesChange']=_0x4ffeca['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4ffeca['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x25f1dc=this;for(;_0x25f1dc['previous'];)_0x25f1dc=_0x25f1dc['previous'];return _0x25f1dc;}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'](_0x38d3b7){this['_markerNames']['add'](_0x38d3b7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5616d2=>this['_model']['markers']['get'](_0x5616d2))['filter'](_0x2ad578=>_0x2ad578);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4e2263=>{for(const _0x598c57 of this['getMarkers']())_0x4e2263['removeMarker'](_0x598c57);}),this['_markerNames']['clear']();}['removeMarker'](_0x1a34a7){this['_model']['change'](_0x329ed3=>{_0x329ed3['removeMarker'](_0x1a34a7);}),this['_markerNames']['delete'](_0x1a34a7);}['addRange'](_0x1e6601){const _0x329a24='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x329a24),this['_model']['change'](_0x56387f=>{_0x56387f['addMarker'](_0x329a24,{'range':_0x1e6601,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1dddc4){for(const _0x2cedf7 of this['getRanges']())if(_0x2cedf7['isIntersecting'](_0x1dddc4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4549fd=>_0x4549fd['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2c8efe,_0x27f24e)=>[..._0x2c8efe,..._0x27f24e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x506db8=this['getRanges']();if(0x1!=_0x506db8['length'])return null;const _0x5c39d0=_0x506db8[0x0],_0x2a624a=_0x5c39d0['start']['nodeAfter'],_0x40e42b=_0x5c39d0['end']['nodeBefore'];return _0x2a624a instanceof _0x14b105?_0x2a624a!=_0x40e42b?null:_0x2a624a: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 _0x42cbc9=[];let _0xfb8bbc=this['head'];for(;_0xfb8bbc;)_0x42cbc9['push'](_0xfb8bbc),_0xfb8bbc=_0xfb8bbc['next'];return _0x42cbc9;}['setAttribute'](_0x3eb1ab,_0x44fca0){const _0xbd476d=_0x131c94(this['attributes']);_0x47a1a3(_0xbd476d,_0x3eb1ab,_0x44fca0),_0x15c9fb(_0xbd476d,this['attributes'])||(this['attributes']=_0xbd476d,this['_onAttributesChange'](_0xbd476d));}['removeAttribute'](_0x168e2c){const _0x2c8ed2=_0x131c94(this['attributes']);_0x1bfbbd(_0x2c8ed2,_0x168e2c),_0x15c9fb(_0x2c8ed2,this['attributes'])||(this['attributes']=_0x2c8ed2,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 _0x7b6b31()['substr'](0x1,0x5);}}function o(_0x389df0,_0xd5e5c7,_0x11d3e0){const t=_0x389df0['t'];switch(_0xd5e5c7){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',_0x11d3e0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x11d3e0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x11d3e0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x11d3e0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x11d3e0);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',_0x11d3e0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x11d3e0);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',_0x11d3e0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x11d3e0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x11d3e0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x11d3e0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x11d3e0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x11d3e0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x11d3e0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x11d3e0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x11d3e0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x11d3e0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x11d3e0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x11d3e0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x11d3e0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x11d3e0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x11d3e0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x11d3e0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x11d3e0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x11d3e0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x11d3e0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x11d3e0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x11d3e0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x11d3e0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x11d3e0);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'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x11d3e0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x11d3e0);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'},_0x11d3e0);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'},_0x11d3e0);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 _0xd5e5c7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x330ad0,_0x4612dd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x330ad0,this['_locale']=_0x4612dd;}['getDescriptions'](_0x238301){const _0x48df78=[],_0x392e15=new Set(),_0x36a431=new Set();for(let _0x2db98e=0x0;_0x2db98e<_0x238301['length'];_0x2db98e++){const _0x14918c=_0x238301[_0x2db98e];if(!_0x14918c['isInContent'])continue;const _0x259290=this['_handleCustomCallbackDescription'](_0x14918c);if(_0x259290){if(null!=_0x14918c['subType']){if(_0x392e15['has'](_0x14918c['subType']))continue;_0x392e15['add'](_0x14918c['subType']);}_0x48df78['push'](_0x259290);}else{if('attribute'!=_0x14918c['type'])'insertion'!=_0x14918c['type']&&'deletion'!=_0x14918c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x48df78,_0x14918c,_0x238301[_0x2db98e+0x1]);else{const _0x4c77a2=_0x14918c['data']['key'];if(_0x36a431['has'](_0x4c77a2))continue;_0x36a431['add'](_0x14918c['data']['key']),_0x4c77a2==m?this['_handleRenameSuggestionDescription'](_0x48df78,_0x14918c):this['_handleAttributeSuggestionDescription'](_0x48df78,_0x14918c);}}}return this['_resolveDescriptionItems'](_0x48df78);}['registerDescriptionCallback'](_0x1cdb86){this['_customCallbacks']['push'](_0x1cdb86);}['registerElementLabel'](_0x59c5d5,_0x4e4399,_0x11d83b=_0x2c04bb['normal']){'function'==typeof _0x59c5d5?_0x478f66(this['_itemLabelsCallbacks'],{'matchingCallback':_0x59c5d5,'label':_0x4e4399,'priority':_0x11d83b}):this['_itemLabels']['set'](_0x59c5d5,_0x4e4399);}['registerAttributeLabel'](_0xb76433,_0x3c5f44){this['_attributeLabels']['set'](_0xb76433,_0x3c5f44);}['getItemLabel'](_0x131ae1,_0x5a9414=0x1){let _0x48ed44;for(const _0x116cef of this['_itemLabelsCallbacks'])if(_0x116cef['matchingCallback'](_0x131ae1)){_0x48ed44=_0x116cef['label'];break;}return _0x48ed44||(_0x48ed44=this['_itemLabels']['get'](_0x131ae1['name'])),_0x48ed44?_0x48ed44(_0x5a9414):0x1!==_0x5a9414?_0x5a9414+'\x20'+_0x131ae1['name']+'s':''+_0x131ae1['name'];}['_addDescriptionItems'](_0x1e6b1a,_0x2197e1){const _0x57b677=_0x2197e1['getFirstRange']()['getWalker'](),_0x51ca84='insertion'==_0x2197e1['type']?'add':'remove';for(const _0xb82ac of _0x57b677){const _0x2a36af=_0xb82ac['item'],_0x33f0f0=_0x1e6b1a[_0x1e6b1a['length']-0x1];if(_0x2a36af['is']('$textProxy'))_0x33f0f0&&_0x33f0f0['type']['indexOf']('Container')>-0x1&&_0x1e6b1a['pop'](),_0x33f0f0&&'text'==_0x33f0f0['type']?_0x33f0f0[_0x51ca84]+=_0x2a36af['data']:_0x1e6b1a['push']({'type':'text','add':'add'==_0x51ca84?_0x2a36af['data']:'','remove':'remove'==_0x51ca84?_0x2a36af['data']:''});else{if(this['_schema']['isObject'](_0x2a36af)){const _0x1a8ff5=_0x2a36af;if(_0x33f0f0&&_0x33f0f0['type']['indexOf']('Container')>-0x1&&_0x1e6b1a['pop'](),'elementEnd'==_0xb82ac['type'])continue;_0x33f0f0&&_0x33f0f0['type']==_0x51ca84+'Object'&&_0x33f0f0['element']['name']==_0x1a8ff5['name']?_0x33f0f0['quantity']++:_0x1e6b1a['push']({'type':_0x51ca84+'Object','element':_0x1a8ff5,'quantity':0x1}),_0x57b677['skip'](_0x44b6cd=>!('elementEnd'==_0x44b6cd['type']&&_0x44b6cd['item']==_0x2a36af));}else{if(this['_schema']['checkChild'](_0x2a36af,'$text')||_0x2a36af['is']('element','softBreak')){const _0xa607ee=_0x2a36af;if('add'==_0x51ca84&&'elementStart'==_0xb82ac['type']||'remove'==_0x51ca84&&'elementEnd'==_0xb82ac['type'])continue;if(_0x33f0f0&&-0x1==_0x33f0f0['type']['indexOf']('Container')){'text'==_0x33f0f0['type']&&(_0x33f0f0[_0x51ca84]+='\x0a');continue;}let _0x2959b4;if(_0x2959b4='add'==_0x51ca84?_0xa607ee['nextSibling']&&!this['_schema']['isObject'](_0xa607ee['nextSibling'])?_0xa607ee['nextSibling']:null:_0xa607ee['previousSibling']&&!this['_schema']['isObject'](_0xa607ee['previousSibling'])?_0xa607ee['previousSibling']:null,_0xa607ee['isEmpty']||_0x2959b4&&_0x2959b4['isEmpty']){const _0x20d189=_0x2959b4&&_0x2959b4['isEmpty']?_0x2959b4:_0xa607ee;_0x33f0f0&&_0x33f0f0['type']==_0x51ca84+'EmptyContainer'&&_0x33f0f0['element']['name']==_0x20d189['name']?_0x33f0f0['quantity']++:_0x1e6b1a['push']({'type':_0x51ca84+'EmptyContainer','element':_0x20d189,'quantity':0x1});}else _0x1e6b1a['push']({'type':_0x51ca84+'Container','element':_0xa607ee});}}}}}['_resolveDescriptionItems'](_0x2f361f){const _0x505953=this['_locale'],_0x224eb9=[],_0x4344e9=[],_0x18a1a8=[];for(const _0x57455 of _0x2f361f)switch(_0x57455['type']){case'text':if(_0x57455['add']=_0x57455['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x57455['remove']=_0x57455['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x57455['add']&&''!=_0x57455['remove']){_0x224eb9['push']({'type':'replace','content':o(_0x505953,'REPLACE_TEXT',['\x22'+_0x57455['remove']+'\x22','\x22'+_0x57455['add']+'\x22'])});continue;}if(null!=_0x57455['add']['match'](/^ +$/)){_0x224eb9['push']({'type':'insertion','content':o(_0x505953,'*Insert:*\x20%0',o(_0x505953,'ELEMENT_SPACE',_0x57455['add']['length']))});continue;}if(null!=_0x57455['remove']['match'](/^ +$/)){_0x224eb9['push']({'type':'deletion','content':o(_0x505953,'*Remove:*\x20%0',o(_0x505953,'ELEMENT_SPACE',_0x57455['remove']['length']))});continue;}if(''!=_0x57455['add']){_0x224eb9['push']({'type':'insertion','content':o(_0x505953,'*Insert:*\x20%0','\x22'+_0x57455['add']+'\x22')});continue;}_0x224eb9['push']({'type':'deletion','content':o(_0x505953,'*Remove:*\x20%0','\x22'+_0x57455['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x224eb9['push']({'type':'insertion','content':o(_0x505953,'*Insert:*\x20%0',this['getItemLabel'](_0x57455['element'],_0x57455['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x224eb9['push']({'type':'deletion','content':o(_0x505953,'*Remove:*\x20%0',this['getItemLabel'](_0x57455['element'],_0x57455['quantity']))});continue;case'addContainer':_0x224eb9['push']({'type':'insertion','content':o(_0x505953,'*Split:*\x20%0',this['getItemLabel'](_0x57455['element'],_0x57455['quantity']))});continue;case'removeContainer':_0x224eb9['push']({'type':'deletion','content':o(_0x505953,'*Merge:*\x20%0',this['getItemLabel'](_0x57455['element'],_0x57455['quantity']))});continue;case'addFormat':_0x4344e9['push'](_0x57455['key']);continue;case'removeFormat':_0x18a1a8['push'](_0x57455['key']);continue;default:_0x224eb9['push'](_0x57455);}if(_0x4344e9['length']){const _0x526ed4=_0x4344e9['map'](_0x5767e9=>this['_attributeLabels']['has'](_0x5767e9)?this['_attributeLabels']['get'](_0x5767e9):_0x5767e9)['join'](',\x20');_0x224eb9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x526ed4)});}if(_0x18a1a8['length']){const _0x25a062=_0x18a1a8['map'](_0x5b9253=>this['_attributeLabels']['has'](_0x5b9253)?this['_attributeLabels']['get'](_0x5b9253):_0x5b9253)['join'](',\x20');_0x224eb9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x25a062)});}return _0x224eb9;}['_handleCustomCallbackDescription'](_0x247cc9){for(const _0x1262b1 of this['_customCallbacks']){const _0x1b36e7=_0x1262b1(_0x247cc9);if(_0x1b36e7&&'type'in _0x1b36e7)return _0x1b36e7;}}['_handleAttributeSuggestionDescription'](_0x3334b1,_0x3d2c43){const _0x14a5b3=_0x3d2c43['data'],_0x57164c=void 0x0===_0x14a5b3['newValue']?'removeFormat':'addFormat';_0x3334b1['push']({'type':_0x57164c,'key':_0x14a5b3['key']});}['_handleRenameSuggestionDescription'](_0x422211,_0x5cb052){_0x422211['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5cb052['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5014ac,_0xf9567c,_0x37acfc){if(this['_addDescriptionItems'](_0x5014ac,_0xf9567c),_0x37acfc&&_0x37acfc['getFirstRange']()&&!_0xf9567c['getFirstRange']()['end']['isEqual'](_0x37acfc['getFirstRange']()['start'])){const _0x508cfb=_0x5014ac[_0x5014ac['length']-0x1],_0x4e9c99='insertion'==_0xf9567c['type']?'add':'remove';_0x508cfb&&'text'==_0x508cfb['type']&&(_0x508cfb[_0x4e9c99]+='\x0a');}}}class E extends _0x1c9f3d{['afterInit'](){const _0x168491=this['editor'],_0x4bcbbf=_0x168491['plugins']['get']('TrackChangesEditing');_0x168491['commands']['get']('showAIAssistant')&&_0x4bcbbf['enableCommand']('showAIAssistant');}}class V extends _0x1c9f3d{['afterInit'](){const _0x56220d=this['editor'],_0x4a6823=_0x56220d['locale'];if(!_0x56220d['plugins']['has']('AlignmentEditing'))return;const _0x430726=_0x56220d['plugins']['get']('TrackChangesEditing');_0x430726['enableDefaultAttributesIntegration']('alignment'),_0x430726['registerBlockAttribute']('alignment'),_0x430726['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4a6823,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ab3da=this['editor'],_0xeb5ec7=_0x3ab3da['locale'];_0x3ab3da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x590b45=>{if('formatBlock'!=_0x590b45['type'])return;const {data:_0x3c0312}=_0x590b45;if(_0x3c0312&&'alignment'==_0x3c0312['commandName']){const _0x3e861d=_0x3c0312['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xeb5ec7,'*Format:*\x20%0',function(_0x351dc3){switch(_0x351dc3){case'left':return o(_0xeb5ec7,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xeb5ec7,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xeb5ec7,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xeb5ec7,'FORMAT_JUSTIFY_TEXT');}}(_0x3e861d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1c9f3d{['afterInit'](){const _0x1bc636=this['editor'],_0xf7fe7d=_0x1bc636['plugins']['get']('TrackChangesEditing'),_0x3d6d4a=_0x1bc636['locale'];for(const _0xe193fd of ti){if(!_0x1bc636['plugins']['has'](_0xe193fd))continue;const _0x28c96a=_0xe193fd['slice'](0x0,-0x7)['toLowerCase'](),_0x1fa72b='FORMAT_'+_0x28c96a['toUpperCase']();_0xf7fe7d['enableDefaultAttributesIntegration'](_0x28c96a),_0xf7fe7d['registerInlineAttribute'](_0x28c96a),_0xf7fe7d['descriptionFactory']['registerAttributeLabel'](_0x28c96a,o(_0x3d6d4a,_0x1fa72b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32a3aa=this['editor'],_0x196835=_0x32a3aa['locale'],_0x24b4e3=_0x32a3aa['plugins']['get']('TrackChangesEditing');function _0x4820b5(_0x57f5c9,_0x4c79fe){_0x24b4e3['descriptionFactory']['registerDescriptionCallback'](_0x479b3b=>{if('formatInline'!=_0x479b3b['type'])return;const {data:_0x213523}=_0x479b3b;return _0x213523&&_0x213523['commandName']===_0x57f5c9?_0x213523['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x196835,'*Format:*\x20%0',_0x4c79fe)}:{'type':'format','content':o(_0x196835,'*Remove\x20format:*\x20%0',_0x4c79fe)}:void 0x0;});}_0x4820b5('bold',o(_0x196835,'FORMAT_BOLD')),_0x4820b5('italic',o(_0x196835,'FORMAT_ITALIC')),_0x4820b5('underline',o(_0x196835,'FORMAT_UNDERLINE')),_0x4820b5('code',o(_0x196835,'FORMAT_CODE')),_0x4820b5('strikethrough',o(_0x196835,'FORMAT_STRIKETHROUGH')),_0x4820b5('subscript',o(_0x196835,'FORMAT_SUBSCRIPT')),_0x4820b5('superscript',o(_0x196835,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1c9f3d{['afterInit'](){const _0x371964=this['editor'],_0xe9fcac=_0x371964['locale'];if(!_0x371964['plugins']['has']('BlockQuoteEditing'))return;const _0x5f456d=_0x371964['plugins']['get']('TrackChangesEditing'),_0x5ab447=this['editor']['commands']['get']('blockQuote');_0x5f456d['enableCommand']('blockQuote',(_0x5a9c07,_0xed7d08={})=>{const _0x5b2018=this['editor']['model']['document']['selection'],_0x577342=_0xed7d08&&void 0x0!==_0xed7d08['forceValue']?_0xed7d08['forceValue']:!_0x5ab447['value'];let _0x25fa93=[];if(_0x577342){const _0x43191a=Array['from'](_0x5b2018['getSelectedBlocks']())['filter'](_0x3be20d=>oo(_0x3be20d)||function(_0x3b6aa0,_0x349d03){const _0x4216c5=_0x349d03['checkChild'](_0x3b6aa0['parent'],'blockQuote'),_0x54bcc8=_0x349d03['checkChild'](['$root','blockQuote'],_0x3b6aa0);return _0x4216c5&&_0x54bcc8;}(_0x3be20d,this['editor']['model']['schema']));_0x25fa93=to(_0x43191a,_0x371964['model']);}else{const _0x5d3c40=Array['from'](_0x5b2018['getSelectedBlocks']())['filter'](_0x25836f=>oo(_0x25836f));_0x25fa93=to(_0x5d3c40,_0x371964['model']);}_0x371964['model']['change'](()=>{for(const _0x5c0491 of _0x25fa93)_0x5f456d['markBlockFormat'](_0x5c0491,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x577342}]});});}),_0x5f456d['descriptionFactory']['registerDescriptionCallback'](_0x1f967d=>{const {data:_0x4deeeb}=_0x1f967d;if(_0x4deeeb&&'blockQuote'==_0x4deeeb['commandName']){const _0xffabf0=o(_0xe9fcac,'ELEMENT_BLOCK_QUOTE');return _0x4deeeb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe9fcac,'*Set\x20format:*\x20%0',_0xffabf0)}:{'type':'format','content':o(_0xe9fcac,'*Remove\x20format:*\x20%0',_0xffabf0)};}});}}function oo(_0x41f356){return'blockQuote'==_0x41f356['parent']['name'];}class G extends _0x1c9f3d{['afterInit'](){const _0x3f74f7=this['editor'];_0x3f74f7['plugins']['has']('CaseChange')&&(_0x3f74f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f74f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f74f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1c9f3d{['afterInit'](){const _0x4cc273=this['editor'];_0x4cc273['commands']['get']('ckbox')&&_0x4cc273['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1c9f3d{['afterInit'](){const _0x54183a=this['editor'];if(!_0x54183a['plugins']['has']('CodeBlock'))return;const _0x540bd8=_0x54183a['plugins']['get']('TrackChangesEditing'),_0x40257b=_0x54183a['locale'],_0x1ff370=_0x54183a['config']['get']('codeBlock')['languages'],_0xe39153=_0x54183a['commands']['get']('codeBlock');_0x540bd8['enableCommand']('indentCodeBlock'),_0x540bd8['enableCommand']('outdentCodeBlock'),_0x540bd8['enableCommand']('codeBlock',(_0x1af20a,_0x237a65={})=>{const _0x5eaa96=_0x54183a['model'],_0x17d93f=_0x54183a['model']['document']['selection'],_0x882fcf=_0x237a65&&void 0x0!==_0x237a65['forceValue']?_0x237a65['forceValue']:!_0xe39153['value'];let _0x1b10c3;_0x237a65['language']||(_0x237a65['language']=_0x1ff370[0x0]['language']),_0x1b10c3=_0x882fcf?Array['from'](_0x17d93f['getSelectedBlocks']())['filter'](_0x49527d=>eo(_0x49527d)||function(_0x2c896b,_0x13970d){if(_0x2c896b['is']('rootElement')||_0x13970d['isLimit'](_0x2c896b))return!0x1;return _0x13970d['checkChild'](_0x2c896b['parent'],'codeBlock');}(_0x49527d,_0x5eaa96['schema'])):Array['from'](_0x17d93f['getSelectedBlocks']())['filter'](_0x1f7e82=>eo(_0x1f7e82));const _0x3b7649=to(_0x1b10c3,_0x5eaa96);_0x5eaa96['change'](()=>{for(const _0x13b578 of _0x3b7649)_0x540bd8['markBlockFormat'](_0x13b578,{'commandName':'codeBlock','commandParams':[{..._0x237a65,'forceValue':_0x882fcf}],'formatGroupId':'blockName'});});}),(_0x540bd8['descriptionFactory']['registerElementLabel']('codeBlock',_0x177499=>o(_0x40257b,'ELEMENT_CODE_BLOCK',_0x177499)),_0x540bd8['descriptionFactory']['registerDescriptionCallback'](_0x2f3213=>{if('formatBlock'!=_0x2f3213['type'])return;const _0x7a87a3=_0x40257b['t'],{data:_0xe57003}=_0x2f3213;if(!_0xe57003||'codeBlock'!=_0xe57003['commandName'])return;const _0x48400a=_0xe57003['commandParams'][0x0]['language'],_0x2bf884=_0x7a87a3(_0x1ff370['find'](_0x22ffa0=>_0x22ffa0['language']===_0x48400a)['label'])['toLowerCase']();return _0xe57003['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40257b,'*Set\x20format:*\x20%0',o(_0x40257b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2bf884+')')}:{'type':'format','content':o(_0x40257b,'*Remove\x20format:*\x20%0',o(_0x40257b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3b020f){return'codeBlock'==_0x3b020f['name'];}class H extends _0x1c9f3d{['afterInit'](){const _0x2f76c1=this['editor'];if(!_0x2f76c1['plugins']['has']('CommentsEditing'))return;_0x2f76c1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x31a8ca,_0x3c76bb,_0x133c82){const _0x625338=[];for(const _0x560967 of _0x3c76bb['getItems']())_0x560967['hasAttribute'](_0x31a8ca)&&_0x625338['push'](_0x133c82['createRangeOn'](_0x560967));return _0x625338;}function _e(_0x571b77,_0x183f95,{showActiveMarker:_0x191a87=!0x0}={}){const _0x23ec79=_0x571b77['plugins']['get']('TrackChangesEditing');return(_0x408213,_0x14267a,_0x206875)=>{if(!_0x206875['consumable']['test'](_0x14267a['markerRange'],_0x408213['name']))return;const _0x1ff3c8=_0x14267a['markerRange']['getWalker'](),_0x30b50b=_0x14267a['markerRange']['start'],_0x3edd60=_0x571b77['model']['schema'];let _0x1ba448=null,_0x52aa38=null,_0x217f7f=!0x1,_0x1e6d6b=!0x1;for(const _0x1db67d of _0x1ff3c8){const _0xf10735=_0x1db67d['item'];_0x217f7f=_0x217f7f||_0x3edd60['isContent'](_0xf10735);const _0x1f810c=_0x206875['mapper']['toViewElement'](_0xf10735);if(_0x1f810c&&_0x1f810c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1db67d['type']&&(_0x3edd60['isBlock'](_0xf10735)&&!_0x3edd60['isLimit'](_0xf10735)&&(_0xf10735['nextSibling']||_0x30b50b['isAtEnd']?_0x1ba448&&_0x1ba448['parent']==_0xf10735||(_0x1ba448=_0xf10735,_0x1bb0b9(_0x1db67d['previousPosition']),_0x1e6d6b=!0x0):_0x52aa38=_0x52aa38||_0x1db67d['previousPosition']));}function _0x1bb0b9(_0x188d1a){const _0x26d3b5=_0x206875['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x183f95}),_0x4dd97f=_0x206875['mapper']['toViewPosition'](_0x188d1a);_0x191a87&&_0x23ec79['activeMarkers']['includes'](_0x14267a['markerName'])&&_0x206875['writer']['addClass']('ck-suggestion-marker--active',_0x26d3b5),_0x206875['writer']['insert'](_0x4dd97f,_0x26d3b5),_0x206875['mapper']['bindElementToMarker'](_0x26d3b5,_0x14267a['markerName']);}_0x217f7f||_0x1e6d6b||!_0x52aa38||_0x1bb0b9(_0x52aa38);};}class q extends _0x1c9f3d{static get['requires'](){return[_0x143485];}['init'](){const _0x2b87d2=this['editor'],_0x3965d7=_0x2b87d2['plugins']['get']('TrackChangesEditing');_0x3965d7['enableCommand']('delete');const _0x2f8191=_0x2b87d2['commands']['get']('deleteForward');_0x3965d7['enableCommand']('deleteForward',(_0x3703b8,_0xd8ca6a={})=>{const _0x253169=_0x2b87d2['model']['createSelection'](_0x2b87d2['model']['document']['selection']);_0x253169['isCollapsed']&&_0x2b87d2['model']['modifySelection'](_0x253169,{'direction':'forward','unit':_0xd8ca6a['unit']});const _0x55a711=_0x253169['getFirstRange'](),_0x264b33=_0x45d820['fromRange'](_0x55a711);let _0x51ab37;_0x3703b8(_0xd8ca6a),_0x51ab37='$graveyard'==_0x264b33['root']['rootName']?_0x2b87d2['model']['createRange'](_0x55a711['start']):_0x2b87d2['model']['createRange'](_0x264b33['start'],_0x264b33['end']),_0x264b33['detach'](),_0x2b87d2['model']['enqueueChange'](_0x2f8191['buffer']['batch'],_0x2bee26=>{_0x2f8191['buffer']['lock'](),_0x2bee26['setSelection'](_0x2bee26['createRange'](_0x51ab37['end'])),_0x2f8191['buffer']['unlock']();});}),_0x2b87d2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2b87d2,'merge'),{'priority':'high'}),_0x2b87d2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x15f6c7,_0x45c331,_0x260b71)=>{_0x260b71['options']['showSuggestionHighlights']&&_e(_0x2b87d2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x15f6c7,_0x45c331,_0x260b71);},{'priority':'high'}),_0x2b87d2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x195a41,_0x1a00ab,_0x3c424c)=>{const _0x461f05=_0x3c424c['mapper']['markerNameToElements'](_0x1a00ab['markerName']);if(_0x461f05){for(const _0x4105ca of _0x461f05)_0x4105ca['is']('uiElement')&&(_0x3c424c['mapper']['unbindElementFromMarkerName'](_0x4105ca,_0x1a00ab['markerName']),_0x3c424c['writer']['remove'](_0x4105ca));}},{'priority':'high'});}}class z extends _0x1c9f3d{['afterInit'](){const _0x5e5b54=this['editor'];if(!_0x5e5b54['plugins']['has']('ListEditing'))return;const _0x4b1f0d=_0x5e5b54['locale'],_0x3a8016=_0x5e5b54['plugins']['get']('TrackChangesEditing'),_0x2238a6=_0x5e5b54['plugins']['has']('TodoListEditing'),_0x56cf9b=!!_0x5e5b54['config']['get']('list.multiBlock');function _0x3e8cdb(_0x1b6859){return{'type':'format','content':''+o(_0x4b1f0d,'*Set\x20format:*\x20%0',_0x1b6859)};}function _0x53e824(_0x119e17){return{'type':'format','content':''+o(_0x4b1f0d,'*Remove\x20format:*\x20%0',_0x119e17)};}_0x3a8016['enableDefaultAttributesIntegration']('numberedList'),_0x3a8016['enableDefaultAttributesIntegration']('bulletedList'),_0x3a8016['enableDefaultAttributesIntegration']('customNumberedList'),_0x3a8016['enableDefaultAttributesIntegration']('customBulletedList'),_0x3a8016['enableDefaultAttributesIntegration']('indentList'),_0x3a8016['enableDefaultAttributesIntegration']('outdentList'),_0x3a8016['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3a8016['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3a8016['registerBlockAttribute']('listItemId'),_0x3a8016['registerBlockAttribute']('listType'),_0x3a8016['registerBlockAttribute']('listIndent'),_0x56cf9b&&(_0x3a8016['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3a8016['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2238a6&&(_0x3a8016['enableDefaultAttributesIntegration']('todoList'),_0x3a8016['enableDefaultAttributesIntegration']('checkTodoList'),_0x3a8016['registerBlockAttribute']('todoListChecked'),_0x3a8016['descriptionFactory']['registerDescriptionCallback'](_0x3151a0=>{const {data:_0x577d0b}=_0x3151a0;if(_0x577d0b&&'todoListChecked'==_0x577d0b['key'])return{'type':'format','content':_0x577d0b['newValue']?o(_0x4b1f0d,'*Check\x20item*'):o(_0x4b1f0d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a5c63=>{if(_0x4a5c63['batch']['isUndo'])return!0x1;let _0x5f2494=!0x1;const _0xa72511=_0x3a8016['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e6adb=>'todoListChecked'===_0x3a8016['_getAttributeKey'](_0x5e6adb));for(const _0x3907cd of _0xa72511){'todo'!=_0x3907cd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3a8016['_findSuggestions'](_0x3907cd['getFirstRange'](),'attribute')['find'](_0x44e0ef=>'listType'===_0x3a8016['_getAttributeKey'](_0x44e0ef['suggestion']))||(_0x4a5c63['removeMarker'](_0x3907cd['getFirstMarker']()),_0x5f2494=!0x0));}return _0x5f2494;})),_0x3a8016['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4b1f0d,'FORMAT_INDENT'));const _0x36f710={'type':'format','content':''};_0x3a8016['descriptionFactory']['registerDescriptionCallback'](_0x270514=>{const {data:_0x4aa8b4}=_0x270514;if(!_0x4aa8b4||'listType'!=_0x4aa8b4['key'])return;let _0xcf7fa9=_0x270514['head'];for(;_0xcf7fa9;){if(_0xcf7fa9['data']&&(('listStyle'==_0xcf7fa9['data']['key']||'listMarkerStyle'==_0xcf7fa9['data']['key'])&&(_0xcf7fa9['data']['newValue']&&'default'!=_0xcf7fa9['data']['newValue']||'default'!=_0xcf7fa9['data']['oldValue']&&!_0x4aa8b4['newValue'])||!_0x56cf9b&&_0xcf7fa9['data']['key']==m))return _0x36f710;_0xcf7fa9=_0xcf7fa9['next'];}if(null==_0x4aa8b4['newValue'])switch(_0x4aa8b4['oldValue']){case'bulleted':return _0x53e824(o(_0x4b1f0d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53e824(o(_0x4b1f0d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53e824(o(_0x4b1f0d,'ELEMENT_TODO_LIST'));}switch(_0x4aa8b4['newValue']){case'bulleted':return _0x3e8cdb(o(_0x4b1f0d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e8cdb(o(_0x4b1f0d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e8cdb(o(_0x4b1f0d,'ELEMENT_TODO_LIST'));}}),_0x3a8016['descriptionFactory']['registerDescriptionCallback'](_0x4c4fd0=>{const {data:_0x159ba1}=_0x4c4fd0;if(_0x159ba1&&'listIndent'==_0x159ba1['key'])return null==_0x159ba1['newValue']||null==_0x159ba1['oldValue']&&0x0==_0x159ba1['newValue']?_0x36f710:void 0x0;}),_0x3a8016['descriptionFactory']['registerDescriptionCallback'](_0x119682=>{if('attribute'!=_0x119682['type'])return;const {data:_0x2d59e4}=_0x119682;if(!_0x2d59e4||'listItemId'!=_0x2d59e4['key'])return;const _0x53081b=le(_0x119682);return'newValue'==_0x53081b?{'type':'format','content':o(_0x4b1f0d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x53081b?{'type':'format','content':o(_0x4b1f0d,'*Split:*\x20list\x20item')}:_0x36f710;}),_0x5e5b54['model']['document']['registerPostFixer'](_0x4ff25=>this['listItemIdFixer'](_0x4ff25)),_0x5e5b54['model']['document']['registerPostFixer'](_0x11bb2c=>this['noTrackChangesFixer'](_0x11bb2c)),_0x5e5b54['model']['document']['registerPostFixer'](_0x253608=>this['assureChains'](_0x253608)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x83c5af){if(_0x83c5af['batch']['isUndo']||!_0x83c5af['batch']['isLocal'])return!0x1;let _0x64fab1=!0x1;const _0x24cd62=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fd408=>_0x1fd408['data']&&'listItemId'==_0x1fd408['data']['key'])['filter'](_0xeca669=>_0xeca669['data']['newValue']&&_0xeca669['data']['oldValue']);for(const _0x5d4162 of _0x24cd62)le(_0x5d4162)||(_0x83c5af['removeMarker'](_0x5d4162['getFirstMarker']()),_0x64fab1=!0x0);return _0x64fab1;}['noTrackChangesFixer'](_0x4fd8e9){if(_0x4fd8e9['batch']['isUndo']||!_0x4fd8e9['batch']['isLocal'])return!0x1;const _0x6b8905=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x6b8905['trackChangesCommand']['value'])return!0x1;let _0x83c225=!0x1;const _0x29dcaa=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x48ddcf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x468031=>'attribute'==_0x468031['type'])['filter'](_0x23f1a8=>_0x29dcaa['includes'](_0x23f1a8['attributeKey']));if(0x0==_0x48ddcf['length'])return _0x83c225;for(const _0x13cd36 of _0x48ddcf){const _0x145d70=_0x6b8905['_findSuggestions'](_0x13cd36['range'],'attribute')['filter'](_0x58f2a1=>!_0x58f2a1['meta']['isNextTo'])['map'](_0x45d5a1=>_0x45d5a1['suggestion'])['filter'](_0x2c0ea2=>{const _0x396615=_0x6b8905['_getAttributeKey'](_0x2c0ea2);return _0x29dcaa['includes'](_0x396615);});if(_0x145d70['length']){for(const _0x2e1416 of _0x145d70)_0x4fd8e9['removeMarker'](_0x2e1416['getFirstMarker']());_0x83c225=!0x0;}}return _0x83c225;}['assureChains'](_0x40019b){if(_0x40019b['batch']['isUndo']||!_0x40019b['batch']['isLocal'])return!0x1;const _0x47f4eb=this['editor']['plugins']['get']('TrackChangesEditing');let _0xbd4741=!0x1;const _0x3c7f50=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x33bfa9 of _0x47f4eb['getSuggestions']({'skipNotAttached':!0x0})){const _0x2c1290=_0x47f4eb['_findSuggestions'](_0x33bfa9['getFirstRange'](),'attribute')['map'](_0x138dc2=>_0x138dc2['suggestion'])['filter'](_0x3c1331=>_0x3c1331['data']&&_0x3c7f50['includes'](_0x3c1331['data']['key']));if(!_0x2c1290['length'])continue;const _0x28ff55=_0x2c1290[0x0]['head']['attributes']['groupId'];if(!_0x2c1290['every'](_0xab2b70=>_0xab2b70['attributes']['groupId']===_0x28ff55)){for(const _0x23920a of _0x2c1290)_0x37e43e(_0x23920a,_0x28ff55)&&(_0xbd4741=!0x0);}}return _0xbd4741;function _0x28706e(_0x4703bd,_0x1f88b5){for(const _0x25fd15 of _0x47f4eb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14a471=>'attribute'==_0x14a471['type']&&_0x14a471['attributes']['groupId']==_0x4703bd))_0x25fd15['setAttribute']('groupId',_0x1f88b5);}function _0x37e43e(_0x322fde,_0x8d6889){let _0x1594d7=_0x322fde['head'],_0x199825=!0x1;for(;_0x1594d7;)_0x1594d7['attributes']['groupId']!=_0x8d6889&&(_0x28706e(_0x1594d7['attributes']['groupId'],_0x8d6889),_0x1594d7['setAttribute']('groupId',_0x8d6889),_0x199825=!0x0),_0x1594d7=_0x1594d7['next'];return _0x199825;}}['_supportLegacySuggestions'](){const _0x2374fe=this['editor'],_0x5518a2=_0x2374fe['locale'],_0x5aecad=_0x2374fe['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5aecad['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x361ec3,_0xa3fa09){const _0xe333db=[];for(let _0x9dd3d2 of _0x361ec3)_0x9dd3d2['start']['nodeAfter']===_0x9dd3d2['end']['parent']&&(_0x9dd3d2=_0x2374fe['model']['createRange'](_0x2374fe['model']['createPositionAt'](_0x9dd3d2['start']['nodeAfter'],0x0))),_0xe333db['push'](_0x9dd3d2);_0x2374fe['model']['change'](_0x4dddc6=>{const _0x102a15=_0x2374fe['model']['document']['selection'],_0x4682e1=Array['from'](_0x102a15['getRanges']())['map'](_0x5d6954=>_0x45d820['fromRange'](_0x5d6954));_0x4dddc6['setSelection'](_0xe333db),_0x2374fe['commands']['get'](_0xa3fa09['commandName'])['refresh'](),_0xa3fa09['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2374fe['execute'](_0xa3fa09['commandName'],..._0xa3fa09['commandParams']),_0x4dddc6['setSelection'](_0x4682e1);for(const _0x412b2d of _0x4682e1)_0x412b2d['detach']();});}),_0x5aecad['descriptionFactory']['registerElementLabel'](function(_0x31ccf7){const _0xa96d6e=!_0x2374fe['model']['schema']['isObject'](_0x31ccf7),_0x489d76=_0x31ccf7['previousSibling'],_0x142291=_0x31ccf7['nextSibling'],_0x1c48c3=_0x31ccf7['getAttribute']('listItemId'),_0x16b20d=!_0x489d76||_0x489d76['getAttribute']('listItemId')!==_0x1c48c3,_0xe6f498=!_0x142291||_0x142291['getAttribute']('listItemId')!==_0x1c48c3;return _0xa96d6e&&Boolean(_0x1c48c3)&&_0x16b20d&&_0xe6f498;},_0x21fc55=>o(_0x5518a2,'ELEMENT_LIST_ITEM',_0x21fc55));}['_registerLegacyDescription'](){const _0x38e588=this['editor'],_0x52a2d3=_0x38e588['locale'];function _0x3423d3(_0x525dfd){const _0xd692e2=_0x38e588['commands']['get']('bulletedList')['value'],_0x366fcf=_0x38e588['commands']['get']('numberedList')['value'];return'numberedList'===_0x525dfd?_0xd692e2:_0x366fcf;}_0x38e588['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1be32b){if('formatBlock'!=_0x1be32b['type'])return;const {data:_0x50d174}=_0x1be32b;if(!_0x50d174)return;let _0x210a89,_0x11aaf5,_0x5a84a8,_0x448a87;switch(_0x50d174['commandName']){case'bulletedList':_0x5a84a8=_0x50d174['commandParams'][0x0]['forceValue'],_0x448a87=_0x3423d3(_0x50d174['commandName']),_0x210a89=_0x5a84a8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x448a87&&_0x38e588['config']['get']('list.multiBlock')||(_0x210a89='*Change\x20to:*\x20%0'),_0x11aaf5={'type':'format','content':o(_0x52a2d3,_0x210a89,o(_0x52a2d3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5a84a8=_0x50d174['commandParams'][0x0]['forceValue'],_0x448a87=_0x3423d3(_0x50d174['commandName']),_0x210a89=_0x5a84a8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x448a87&&_0x38e588['config']['get']('list.multiBlock')||(_0x210a89='*Change\x20to:*\x20%0'),_0x11aaf5={'type':'format','content':o(_0x52a2d3,_0x210a89,o(_0x52a2d3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x210a89='*Indent:*\x20%0',_0x11aaf5={'type':'format','content':o(_0x52a2d3,_0x210a89,o(_0x52a2d3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x210a89=function(_0x4e0afc){const _0x5c4cea=_0x4e0afc['getFirstRange']();let _0xb144f=_0x5c4cea['start']['nodeAfter'];for(;_0xb144f&&_0x5c4cea['containsItem'](_0xb144f);){if(_0xb144f['getAttribute']('listIndent')>0x0)return!0x1;_0xb144f=_0xb144f['nextSibling'];}return!0x0;}(_0x1be32b)?o(_0x52a2d3,'*Format:*\x20remove\x20from\x20%0',o(_0x52a2d3,function(_0x4a2498){return'ELEMENT_'+_0x4a2498['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1be32b))):o(_0x52a2d3,'*Outdent:*\x20%0',o(_0x52a2d3,'ELEMENT_LIST_ITEM')),_0x11aaf5={'type':'format','content':_0x210a89};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x50d174['multipleBlocks']&&(_0x210a89='*Merge:*\x20%0',_0x11aaf5={'type':'deletion','content':o(_0x52a2d3,_0x210a89,o(_0x52a2d3,'ELEMENT_LIST_ITEM'))});}return _0x11aaf5;});}}function le(_0x20c9f9){let _0x4259cf=_0x20c9f9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4259cf;){const _0x26719c=_0x4259cf['getAttribute']('listItemId');if(!_0x26719c)return!0x1;if(_0x26719c==_0x20c9f9['data']['newValue'])return'newValue';if(_0x26719c==_0x20c9f9['data']['oldValue'])return'oldValue';_0x4259cf=_0x4259cf['previousSibling'];}return!0x1;}class ue extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x242d57=this['editor']['config']['get']('list.properties'),_0x3e4f10=this['editor']['plugins']['get']('TrackChangesEditing');_0x242d57['styles']&&(_0x3e4f10['enableDefaultAttributesIntegration']('listStyle'),_0x3e4f10['registerBlockAttribute']('listStyle')),_0x242d57['reversed']&&(_0x3e4f10['enableDefaultAttributesIntegration']('listReversed'),_0x3e4f10['registerBlockAttribute']('listReversed')),_0x242d57['startIndex']&&(_0x3e4f10['enableDefaultAttributesIntegration']('listStart'),_0x3e4f10['registerBlockAttribute']('listStart'));const _0x366b88={'type':'format','content':''};_0x3e4f10['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xab83b5=this['editor']['locale'];_0x3e4f10['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xab83b5,'FORMAT_LIST_REVERSED')),_0x3e4f10['descriptionFactory']['registerDescriptionCallback'](_0x270b0=>{const {data:_0x12cfd2}=_0x270b0;if(_0x12cfd2&&'listReversed'==_0x12cfd2['key'])return null==_0x12cfd2['newValue']||0x0==_0x12cfd2['newValue']&&null==_0x12cfd2['oldValue']?_0x366b88:void 0x0;}),_0x3e4f10['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xab83b5,'FORMAT_LIST_START')),_0x3e4f10['descriptionFactory']['registerDescriptionCallback'](_0x323af8=>{const {data:_0x418455}=_0x323af8;if(_0x418455&&'listStart'==_0x418455['key'])return null==_0x418455['newValue']||0x1==_0x418455['newValue']&&null==_0x418455['oldValue']?_0x366b88:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5a7460=>{if(_0x5a7460['batch']['isUndo'])return!0x1;let _0xe0d31e=!0x1;const _0x11e19a=_0x3e4f10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe50866=>{const _0x51b65e=_0x3e4f10['_getAttributeKey'](_0xe50866);return'listStart'==_0x51b65e||'listReversed'==_0x51b65e;});for(const _0x208a2f of _0x11e19a){const _0x63d881=_0x208a2f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x63d881||'customNumbered'==_0x63d881)continue;_0x3e4f10['_findSuggestions'](_0x208a2f['getFirstRange'](),'attribute')['find'](_0xf677a0=>'listType'==_0x3e4f10['_getAttributeKey'](_0xf677a0['suggestion']))||(_0x5a7460['removeMarker'](_0x208a2f['getFirstMarker']()),_0xe0d31e=!0x0);}return _0xe0d31e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5cd5a7){const _0x5bb89c=this['editor']['locale'],{data:_0x3fa74d}=_0x5cd5a7,_0x295d5a={'type':'format','content':''};if(!_0x3fa74d||'listStyle'!=_0x3fa74d['key'])return;if(!_0x3fa74d['oldValue'])return'default'==_0x3fa74d['newValue']?_0x295d5a:{'type':'format','content':''+o(_0x5bb89c,'*Set\x20format:*\x20%0',o(_0x5bb89c,this['_getTranslationKeyForListStyle'](_0x3fa74d['newValue'])))};if(!_0x3fa74d['newValue']){if('default'==_0x3fa74d['oldValue'])return _0x295d5a;let _0x56b35f=_0x5cd5a7['head'];for(;_0x56b35f;){if(_0x56b35f['data']&&'listType'==_0x56b35f['data']['key']&&_0x56b35f['data']['newValue'])return _0x295d5a;_0x56b35f=_0x56b35f['next'];}return{'type':'format','content':''+o(_0x5bb89c,'*Remove\x20format:*\x20%0',o(_0x5bb89c,this['_getTranslationKeyForListStyle'](_0x3fa74d['oldValue'])))};}if('default'!=_0x3fa74d['newValue'])return{'type':'format','content':''+o(_0x5bb89c,'*Set\x20format:*\x20%0',o(_0x5bb89c,this['_getTranslationKeyForListStyle'](_0x3fa74d['newValue'])))};let _0x42f21f=_0x5cd5a7['head'];for(;_0x42f21f;){if(_0x42f21f['data']&&'listType'==_0x42f21f['data']['key']&&_0x42f21f['data']['newValue']&&_0x42f21f['data']['oldValue'])return _0x295d5a;_0x42f21f=_0x42f21f['next'];}return{'type':'format','content':o(_0x5bb89c,'*Set\x20format:*\x20%0',o(_0x5bb89c,'ELEMENT_'+_0x5cd5a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x21774e=this['editor'],_0xe49ff3=_0x21774e['locale'];_0x21774e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e716c=>{if('formatBlock'!=_0x2e716c['type'])return;const {data:_0x107988}=_0x2e716c;if(!_0x107988)return;let _0x36a7d3,_0xe433b8;switch(_0x107988['commandName']){case'listStyle':_0x36a7d3='*Change\x20to:*\x20%0',_0xe433b8={'type':'format','content':o(_0xe49ff3,_0x36a7d3,o(_0xe49ff3,this['_getTranslationKeyForListStyle'](_0x107988['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36a7d3=_0x107988['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe433b8={'type':'format','content':o(_0xe49ff3,_0x36a7d3)};break;case'listStart':_0x36a7d3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe433b8={'type':'format','content':o(_0xe49ff3,_0x36a7d3,_0x107988['commandParams'][0x0]['startIndex'])};}return _0xe433b8;});}['_getTranslationKeyForListStyle'](_0x4a6720){return'ELEMENT_'+function(_0x1872bb){if(pe['includes'](_0x1872bb))return'bulleted';if(ye['includes'](_0x1872bb))return'numbered';return null;}(_0x4a6720)['toUpperCase']()+'_LIST_'+_0x4a6720['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1c9f3d{static get['requires'](){return[_0x4d004a];}['init'](){const _0xe7b48c=this['editor'],_0x195e98=_0xe7b48c['plugins']['get']('TrackChangesEditing'),_0x4cc4f2=_0xe7b48c['commands']['get']('enter');_0x195e98['enableCommand']('enter',()=>{_0xe7b48c['model']['change'](_0x3cddab=>{const _0x1d6039=_0xe7b48c['model']['document']['selection'],_0x4d9538=_0x1d6039['getFirstPosition'](),_0x310ca4=_0x45d820['fromRange'](_0x1d6039['getFirstRange']());if(_0x4cc4f2['enterBlock'](_0x3cddab)){const _0x1b6de0=_0xe7b48c['model']['createPositionAt'](_0x4d9538['parent']['nextSibling'],0x0),_0xdf5d18=_0x3cddab['createRange'](_0x4d9538,_0x1b6de0);_0x195e98['markInsertion'](_0xdf5d18);}else _0x3cddab['setSelection'](_0x3cddab['createRange'](_0x310ca4['end']));_0x310ca4['detach'](),_0x4cc4f2['fire']('afterExecute',{'writer':_0x3cddab});});}),_0xe7b48c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xe7b48c,'split'),{'priority':'high'}),_0xe7b48c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x27399f,_0x2264fa,_0x27b2dd)=>{const _0x54749f=_0x27b2dd['mapper']['markerNameToElements'](_0x2264fa['markerName']);if(_0x54749f){for(const _0x3717bf of _0x54749f)_0x3717bf['hasClass']('ck-suggestion-marker-split')&&(_0x27b2dd['mapper']['unbindElementFromMarkerName'](_0x3717bf,_0x2264fa['markerName']),_0x27b2dd['writer']['remove'](_0x3717bf));}},{'priority':'high'}),_0xe7b48c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x305e78,_0x175d1f,_0x1e7608)=>{_0x1e7608['options']['showSuggestionHighlights']&&_e(_0xe7b48c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x305e78,_0x175d1f,_0x1e7608);},{'priority':'high'});}}class J extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x10abc9=this['editor']['plugins']['get']('TrackChangesEditing');_0x10abc9['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x10abc9['enableCommand']('findNext'),_0x10abc9['enableCommand']('findPrevious'),_0x10abc9['enableCommand']('replace'),_0x10abc9['enableCommand']('replaceAll');}['handleFindCommand'](_0x32b1a0,_0x16ab96,_0x650b1a={}){const _0x92af58=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x32b1a0(_0x213baa=>('string'==typeof _0x16ab96?_0x92af58['findByTextCallback'](_0x16ab96,_0x650b1a):_0x16ab96)(_0x213baa)['filter'](_0xf146df=>!0x1===this['_isInDeletionRange'](_0xf146df,_0x213baa['item'])),_0x650b1a);}['_isInDeletionRange'](_0x4a8463,_0x446129){const _0x55c2b2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x446129,_0x4a8463['start']),this['editor']['model']['createPositionAt'](_0x446129,_0x4a8463['end']));for(const _0x5e3259 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x55c2b2['getIntersection'](_0x5e3259['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 _0x1c9f3d{['afterInit'](){const _0x28fcd=this['editor']['locale'],_0x3f8672=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3e3706,commandName:_0x479123}of ro)this['editor']['plugins']['has'](_0x3e3706)&&(_0x3f8672['enableDefaultAttributesIntegration'](_0x479123),_0x3f8672['registerInlineAttribute'](_0x479123));_0x28fcd['t'],_0x3f8672['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x28fcd,'FORMAT_FONT_SIZE')),_0x3f8672['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x28fcd,'FORMAT_FONT_FAMILY')),_0x3f8672['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x28fcd,'FORMAT_FONT_COLOR')),_0x3f8672['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x28fcd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c2bca=this['editor'],_0x4b4579=_0x4c2bca['locale'];_0x4c2bca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c6b84=>{const _0x554807=_0x4b4579['t'];if('formatInline'!=_0x1c6b84['type'])return;const {data:_0x3dedb2}=_0x1c6b84;if(null!=_0x3dedb2){if('fontSize'==_0x3dedb2['commandName']){const _0x45c16f=_0x3dedb2['commandParams'][0x0]['value'];if(_0x45c16f){const _0x3760bc=_0x554807(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4cbc09=>_0x4cbc09['model']==_0x45c16f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4b4579,'*Set\x20font\x20size:*\x20%0',_0x3760bc)};}return{'type':'format','content':o(_0x4b4579,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3dedb2['commandName']){const _0x15e7d5=_0x3dedb2['commandParams'][0x0]['value'];return _0x15e7d5?{'type':'format','content':o(_0x4b4579,'*Set\x20font\x20family:*\x20%0',_0x15e7d5)}:{'type':'format','content':o(_0x4b4579,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3dedb2['commandName']){const _0x4e6dbe=_0x3dedb2['commandParams'][0x0]['value'];if(_0x4e6dbe){const _0x46a631=_0x22d4d7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x257ca2=>_0x257ca2['model']==_0x4e6dbe);let _0x5d152f=_0x4e6dbe,_0x247fb9='';return _0x46a631&&(_0x5d152f=_0x46a631['label'],_0x247fb9=_0x554807(_0x5d152f)['toLowerCase']()),{'type':'format','content':o(_0x4b4579,'*Set\x20font\x20color:*\x20%0',_0x247fb9)['trim'](),'color':{'value':_0x4e6dbe,'title':_0x247fb9||_0x5d152f}};}return{'type':'format','content':o(_0x4b4579,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3dedb2['commandName']){const _0x3e4047=_0x3dedb2['commandParams'][0x0]['value'];if(_0x3e4047){const _0x56d6ab=_0x22d4d7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x446fe7=>_0x446fe7['model']==_0x3e4047);let _0x35e7ae=_0x3e4047,_0x3452e1='';return _0x56d6ab&&(_0x35e7ae=_0x56d6ab['label'],_0x3452e1=_0x554807(_0x35e7ae)['toLowerCase']()),{'type':'format','content':o(_0x4b4579,'*Set\x20font\x20background\x20color:*\x20%0',_0x3452e1)['trim'](),'color':{'value':_0x3e4047,'title':_0x3452e1||_0x35e7ae}};}return{'type':'format','content':o(_0x4b4579,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1c9f3d{['afterInit'](){const _0x4a4a09=this['editor'],_0x31326e=_0x4a4a09['plugins']['get']('TrackChangesEditing'),_0xe79680=_0x4a4a09['commands']['get']('copyFormat'),_0xab5cad=_0x4a4a09['commands']['get']('pasteFormat');_0xe79680&&_0xab5cad&&(_0x31326e['enableDefaultAttributesIntegration']('pasteFormat'),_0x31326e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2704c8=this['editor'],_0x240f08=_0x2704c8['locale'];_0x2704c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x439aad=>{if('formatBlock'!=_0x439aad['type']&&'formatInline'!=_0x439aad['type'])return;const {data:_0x2badd8}=_0x439aad;if(_0x2badd8&&'pasteFormat'===_0x2badd8['commandName']){const _0x18a6e3=[],_0x4cb96f=_0x2badd8['commandParams'][0x0];for(const [_0x45617d,_0x492825]of Object['entries'](_0x4cb96f))_0x18a6e3['push'](so(_0x2704c8,_0x45617d,_0x492825));return _0x18a6e3['length']?{'type':'format','content':o(_0x240f08,'*Set\x20format\x20to:*\x20%0',_0x18a6e3['join'](',\x20'))}:{'type':'format','content':o(_0x240f08,'*Remove\x20all\x20formatting*')};}});}}function so(_0x52cdf5,_0x7cab2d,_0x572745){const _0x23ef46=_0x52cdf5['locale']['t'],_0x4a368a=_0x7cab2d['split'](/(?=[A-Z])/)['join']('\x20'),_0x359065=_0x23ef46(_0x4a368a['charAt'](0x0)['toUpperCase']()+_0x4a368a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x572745)return _0x359065;if('fontColor'===_0x7cab2d||'fontBackgroundColor'===_0x7cab2d){const _0x5c3802=_0x22d4d7(_0x52cdf5['config']['get']('fontColor.colors'))['find'](_0x23f9c8=>_0x23f9c8['model']==_0x572745);return _0x359065+'\x20('+(_0x5c3802?_0x23ef46(_0x5c3802['label'])['toLowerCase']():_0x572745)+')';}if('fontSize'===_0x7cab2d&&isNaN(parseFloat(_0x572745))){const _0x2de2f7=_0x52cdf5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x52cdf5['config']['get']('fontSize.options'))['find'](_0x3bf5d4=>_0x3bf5d4['model']==_0x572745);return _0x359065+'\x20('+(_0x2de2f7?_0x23ef46(_0x2de2f7['title'])['toLowerCase']():_0x572745)+')';}return _0x359065+'\x20('+_0x572745+')';}class Y extends _0x1c9f3d{['_headingOptions'];['afterInit'](){const _0x105c76=this['editor'];if(!_0x105c76['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x105c76['config']['get']('heading.options');const _0x5886fc=_0x105c76['locale'],_0x221c79=_0x105c76['plugins']['get']('TrackChangesEditing');_0x221c79['enableDefaultAttributesIntegration']('heading');for(const _0x1818c5 of this['_headingOptions'])'paragraph'!=_0x1818c5['model']&&_0x221c79['descriptionFactory']['registerElementLabel'](_0x1818c5['model'],_0x8b05e2=>{const _0x112689=this['_getHeadingLevel'](_0x1818c5['model']);return null!==_0x112689?_0x175e08(_0x8b05e2,_0x112689):_0xb5738a(_0x8b05e2,_0x1818c5['title']);});function _0x175e08(_0x20d0bf,_0xbd3d9){return o(_0x5886fc,'ELEMENT_HEADING',[_0x20d0bf,_0xbd3d9]);}function _0xb5738a(_0x12de07,_0x5ab19c){return o(_0x5886fc,'ELEMENT_HEADING_CUSTOM',[_0x12de07,_0x5ab19c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x97f16c=this['editor'],_0x25035f=_0x97f16c['locale'];function _0x401ae9(_0x2f55cf,_0x2c65c6){return o(_0x25035f,'ELEMENT_HEADING_CUSTOM',[_0x2f55cf,_0x2c65c6]);}_0x97f16c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x323507=>{if('formatBlock'!=_0x323507['type'])return;const {data:_0x50792d}=_0x323507;if(_0x50792d&&'heading'==_0x50792d['commandName']){const _0x221963=_0x50792d['commandParams'][0x0]['value'],_0x1f5add=this['_getHeadingLevel'](_0x221963);if(null!==_0x1f5add)return{'type':'format','content':o(_0x25035f,'*Change\x20to:*\x20%0',(_0x48434a=0x1,_0x4f905e=_0x1f5add,o(_0x25035f,'ELEMENT_HEADING',[_0x48434a,_0x4f905e])))};const _0x55c363=this['_headingOptions']['find'](_0x2a87cb=>_0x2a87cb['model']===_0x221963)['title'];return{'type':'format','content':o(_0x25035f,'*Change\x20to:*\x20%0',_0x401ae9(0x1,_0x55c363))};}var _0x48434a,_0x4f905e;});}['_getHeadingLevel'](_0x403f49){const _0x1a7d69=_0x403f49['match'](/^heading(\d+)/);if(_0x1a7d69)return _0x1a7d69[0x1];const _0x5a017d=this['_headingOptions']?.['find'](_0x4c78e6=>_0x4c78e6['model']==_0x403f49);if(_0x5a017d&&_0x5a017d['view']){const _0x3e4c38=_0x5a017d['view'],_0x40ed7b=(_0x3e4c38['name']??_0x3e4c38)['match'](/^h(\d+)/);if(_0x40ed7b)return _0x40ed7b[0x1];}return null;}}class Z extends _0x1c9f3d{['afterInit'](){const _0x80a88e=this['editor'];if(!_0x80a88e['plugins']['has']('HighlightEditing'))return;const _0x365178=_0x80a88e['plugins']['get']('TrackChangesEditing'),_0xb7e029=_0x80a88e['locale'];_0x365178['enableDefaultAttributesIntegration']('highlight'),_0x365178['registerInlineAttribute']('highlight'),_0x365178['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xb7e029,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7b2ff8=this['editor'],_0x49eb35=_0x7b2ff8['locale'];_0x7b2ff8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50b347=>{if('formatInline'!=_0x50b347['type'])return;const {data:_0x172e8b}=_0x50b347;if(_0x172e8b&&'highlight'==_0x172e8b['commandName']){const _0x12f1ab=_0x49eb35['t'],_0x318a0f=_0x172e8b['commandParams'][0x0]['value'];if(_0x318a0f){const _0x3796b3=_0x7b2ff8['config']['get']('highlight.options')['find'](_0x45e893=>_0x45e893['model']==_0x318a0f),_0x530a38=_0x12f1ab(_0x3796b3['title'])['toLowerCase']();return{'type':'format','content':o(_0x49eb35,'*Set\x20highlight:*\x20%0',_0x530a38),'color':{'value':_0x3796b3['color'],'title':_0x3796b3['title']}};}return{'type':'format','content':o(_0x49eb35,'*Remove\x20highlight*',o(_0x49eb35,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1c9f3d{['afterInit'](){const _0x2314b8=this['editor'];if(!_0x2314b8['plugins']['has']('HorizontalLineEditing'))return;_0x2314b8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xd80198=_0x2314b8['plugins']['get']('TrackChangesEditing'),_0x4e0908=_0x2314b8['locale'];_0xd80198['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3d3934=>o(_0x4e0908,'ELEMENT_HORIZONTAL_LINE',_0x3d3934)),_0x2314b8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xd42b8,{writer:_0x59ba81,options:_0x225b8e})=>{if(!_0x225b8e['showSuggestionHighlights'])return null;const _0x5494f9=_0x59ba81['createContainerElement']('div'),_0x1b9238=_0x59ba81['createEmptyElement']('hr');return _0x59ba81['addClass']('ck-horizontal-line',_0x5494f9),_0x59ba81['insert'](_0x59ba81['createPositionAt'](_0x5494f9,0x0),_0x1b9238),_0x5494f9;},'converterPriority':'high'});}}class et extends _0x1c9f3d{['afterInit'](){const _0x4294d9=this['editor'];if(!_0x4294d9['plugins']['has']('HtmlEmbed'))return;const _0x474290=_0x4294d9['plugins']['get']('TrackChangesEditing'),_0x4090fd=_0x4294d9['locale'];_0x474290['descriptionFactory']['registerElementLabel']('rawHtml',_0x4bc05b=>o(_0x4090fd,'ELEMENT_HTML_EMBED',_0x4bc05b)),_0x474290['enableDefaultAttributesIntegration']('htmlEmbed'),_0x474290['registerBlockAttribute']('value'),_0x474290['descriptionFactory']['registerDescriptionCallback'](_0x56cb4f=>{if('attribute'!=_0x56cb4f['type'])return;const {data:_0x4f362d}=_0x56cb4f;if(_0x4f362d&&'value'==_0x4f362d['key']&&_0x56cb4f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1f6f9f=o(_0x4090fd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4090fd,'*Change\x20%0\x20content*',_0x1f6f9f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2690a5=this['editor'],_0x27a4d8=_0x2690a5['locale'];_0x2690a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfa988f=>{if('formatBlock'!=_0xfa988f['type'])return;const {data:_0x1c9b5a}=_0xfa988f;if(_0x1c9b5a&&'htmlEmbed'==_0x1c9b5a['commandName']){const _0x4dad5a=o(_0x27a4d8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x27a4d8,'*Change\x20%0\x20content*',_0x4dad5a)};}});}}class it extends _0x1c9f3d{['afterInit'](){const _0x2117e4=this['editor'];if(!_0x2117e4['plugins']['has']('ImageEditing'))return;const _0x4a0bde=_0x2117e4['plugins']['get']('TrackChangesEditing'),_0x5e16e9=_0x2117e4['plugins']['get']('ImageUtils'),_0x4ff554=_0x2117e4['locale'];_0x4a0bde['enableCommand']('insertImage'),_0x4a0bde['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a0025=>o(_0x4ff554,'ELEMENT_IMAGE',_0x4a0025)),_0x4a0bde['descriptionFactory']['registerElementLabel']('imageInline',_0x2d71d1=>o(_0x4ff554,'ELEMENT_INLINE_IMAGE',_0x2d71d1)),_0x4a0bde['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4ff554,'ELEMENT_CAPTION')),_0x2117e4['plugins']['has']('ImageUploadEditing')&&_0x4a0bde['enableCommand']('uploadImage'),_0x2117e4['plugins']['has']('ImageBlockEditing')&&_0x2117e4['plugins']['has']('ImageInlineEditing')&&(_0x4a0bde['enableCommand']('imageTypeInline',(_0x5a3ede,_0x47d767)=>{const _0x29e47c=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']);_0x2117e4['model']['change'](()=>{_0x4a0bde['markBlockFormat'](_0x29e47c,{'commandName':'imageTypeInline','commandParams':[_0x47d767]},[],'convertBlockImageToInline');});}),_0x4a0bde['enableCommand']('imageTypeBlock',(_0x832e40,_0x278ab1)=>{_0x2117e4['model']['change'](_0x3c9f52=>{let _0x13626c=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']),_0x4011ae=_0x3c9f52['createRangeOn'](_0x13626c);const _0x468ee0=_0x45caaa['fromPosition'](_0x4011ae['start'],'toPrevious'),_0x2fbd97=_0x45caaa['fromPosition'](_0x4011ae['end'],'toNext');_0x4a0bde['forceDefaultExecution'](()=>_0x832e40(_0x278ab1)),_0x13626c=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']),_0x4011ae=_0x3c9f52['createRangeOn'](_0x13626c);const _0x5eeb50=_0x3c9f52['createRange'](_0x468ee0,_0x2fbd97);_0x468ee0['detach'](),_0x2fbd97['detach'](),_0x4a0bde['markBlockFormat'](_0x13626c,{'commandName':'imageTypeInline','commandParams':[_0x278ab1]},[],'convertInlineImageToBlock'),_0x5eeb50['start']['isBefore'](_0x4011ae['start'])&&_0x4a0bde['markInsertion'](_0x3c9f52['createRange'](_0x5eeb50['start'],_0x4011ae['start']),'convertInlineImageToBlock'),_0x4011ae['end']['isBefore'](_0x5eeb50['end'])&&_0x4a0bde['markInsertion'](_0x3c9f52['createRange'](_0x4011ae['end'],_0x5eeb50['end']),'convertInlineImageToBlock');});}),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4a0bde['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x56a9e2])=>{const _0x16e240=_0x4a0bde['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x272bbc=_0x56a9e2['start'],_0x3477f7=_0x56a9e2['end'];const _0x19dfe=_0x2117e4['model']['schema']['getNearestSelectionRange'](_0x272bbc,'backward'),_0x23a5f4=_0x2117e4['model']['schema']['getNearestSelectionRange'](_0x3477f7,'forward');_0x19dfe['isCollapsed']&&(_0x272bbc=_0x19dfe['start']),_0x23a5f4['isCollapsed']&&(_0x3477f7=_0x23a5f4['end']),_0x16e240([_0x2117e4['model']['createRange'](_0x272bbc,_0x3477f7)]);}),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xb0a6c2),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xb0a6c2)),_0x2117e4['plugins']['has']('ImageCaptionEditing')&&(_0x4a0bde['enableCommand']('toggleImageCaption',(_0x5e2443,_0x547f97)=>{const _0x4ae270=_0x2117e4['plugins']['get']('ImageCaptionUtils');let _0xd66f0d=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']),_0x3b36dc=_0x4ae270['getCaptionFromImageModelElement'](_0xd66f0d);_0x2117e4['model']['change'](()=>{if(_0x3b36dc)return void _0x4a0bde['markDeletion'](_0x2117e4['model']['createRangeOn'](_0x3b36dc));const _0x902e19=_0x5e16e9['isBlockImage'](_0xd66f0d);_0x5e2443(_0x547f97),_0xd66f0d=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']),_0x3b36dc=_0x4ae270['getCaptionFromImageModelElement'](_0xd66f0d),_0x4a0bde['markInsertion'](_0x2117e4['model']['createRangeOn'](_0x3b36dc),_0x902e19?null:'imageCaption');});}),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xb0a6c2));const _0x47e824=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x46bcf1(_0x54f5cd,_0x41711f){const _0x4c165b=_0x47e824['findIndex'](({type:_0x4179cf,subType:_0x45eee6})=>_0x54f5cd['type']==_0x4179cf&&_0x54f5cd['subType']==_0x45eee6),_0x4aa3bd=_0x47e824['findIndex'](({type:_0x56cd1b,subType:_0x1e1556})=>_0x41711f['type']==_0x56cd1b&&_0x41711f['subType']==_0x1e1556);if(_0x4c165b<0x0||_0x4aa3bd<0x0)return!0x1;const _0x3ffa33=_0x54f5cd['getFirstRange'](),_0x173c77=_0x41711f['getFirstRange']();if((0x0==_0x4c165b||0x1==_0x4c165b)&&0x2==_0x4aa3bd&&_0x3ffa33['isIntersecting'](_0x173c77))return!0x0;if(0x2==_0x4c165b&&0x3==_0x4aa3bd){const _0x5ec192=_0x4a0bde['_findSuggestions'](_0x3ffa33,'insertion')['filter'](({suggestion:_0x942c7a,meta:_0x1705eb})=>_0x1705eb['isOwn']&&'convertInlineImageToBlock'==_0x942c7a['subType']);if(_0x5ec192['length']>0x1&&_0x173c77['end']['isEqual'](_0x3ffa33['start']))return!0x0;if(0x1==_0x5ec192['length']&&(_0x3ffa33['start']['isEqual'](_0x173c77['end'])||_0x3ffa33['end']['isEqual'](_0x173c77['start'])))return!0x0;}if(0x3==_0x4c165b&&0x3==_0x4aa3bd&&_0x3ffa33['start']['isBefore'](_0x173c77['start'])){const _0x390000=_0x3ffa33['end']['nodeAfter'],_0x52649b=_0x173c77['start']['nodeBefore'];return _0x5e16e9['isBlockImage'](_0x390000)&&_0x390000===_0x52649b;}return!0x1;}function _0xb0a6c2(_0x59a0f5,_0x2d809f){return _0x46bcf1(_0x59a0f5,_0x2d809f)?[_0x59a0f5,_0x2d809f]:_0x46bcf1(_0x2d809f,_0x59a0f5)?[_0x2d809f,_0x59a0f5]:null;}_0x2117e4['plugins']['has']('ImageResize')&&(_0x4a0bde['enableDefaultAttributesIntegration']('resizeImage'),_0x4a0bde['registerBlockAttribute']('resizedWidth'),_0x4a0bde['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4ff554,'FORMAT_IMAGE_SIZE'))),_0x2117e4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4a0bde['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4a0bde['registerBlockAttribute']('alt')),_0x4a0bde['descriptionFactory']['registerDescriptionCallback'](_0x442870=>{if(!!_0x47e824['find'](({type:_0x4e881c,subType:_0x1d00b8})=>_0x442870['type']==_0x4e881c&&_0x442870['subType']==_0x1d00b8))return _0x442870['previous']?{}:void 0x0;}),_0x4a0bde['descriptionFactory']['registerDescriptionCallback'](_0x195886=>{if('insertion'==_0x195886['type']||'deletion'==_0x195886['type']){const _0x2574cb=_0x195886['getContainedElement']();if(_0x2574cb&&_0x2574cb['is']('element','caption'))return{'type':'insertion'==_0x195886['type']?'addObject':'removeObject','element':_0x2574cb,'quantity':0x1};}}),_0x4a0bde['descriptionFactory']['registerDescriptionCallback'](_0x2e62b9=>'formatBlock'==_0x2e62b9['type']&&'convertInlineImageToBlock'==_0x2e62b9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2e62b9['type']&&'convertBlockImageToInline'==_0x2e62b9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4a0bde['descriptionFactory']['registerDescriptionCallback'](_0x38b7f6=>{if('attribute'!=_0x38b7f6['type'])return;const {data:_0x32df10}=_0x38b7f6;if(!_0x32df10||'alt'!=_0x32df10['key'])return;const _0x2bb987=_0x32df10['newValue'];return _0x2bb987?{'type':'format','content':o(_0x4ff554,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2bb987+'\x22')}:{'type':'format','content':o(_0x4ff554,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x499503=this['editor'],_0x5d1a3a=_0x499503['locale'];_0x499503['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27e597=>{if('formatBlock'!=_0x27e597['type']&&'formatInline'!=_0x27e597['type'])return;const {data:_0x51aed6}=_0x27e597;if(_0x51aed6){if('imageTextAlternative'==_0x51aed6['commandName']){const _0x2a67f2=_0x51aed6['commandParams'][0x0]['newValue'];return _0x2a67f2?{'type':'format','content':o(_0x5d1a3a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2a67f2+'\x22')}:{'type':'format','content':o(_0x5d1a3a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x51aed6['commandName']){const _0x247534=_0x51aed6['commandParams'][0x0]['width'];return _0x247534?{'type':'format','content':o(_0x5d1a3a,'*Set\x20image\x20width:*\x20%0',_0x247534)}:{'type':'format','content':o(_0x5d1a3a,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x16978e=this['editor']['locale'],_0x20bea7=this['editor']['plugins']['get']('TrackChangesEditing');_0x20bea7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x20bea7['registerBlockAttribute']('src'),_0x20bea7['descriptionFactory']['registerDescriptionCallback'](_0x1c895b=>{if('attribute'!=_0x1c895b['type'])return;const {data:_0x2a36d7}=_0x1c895b;return _0x2a36d7&&'src'==_0x2a36d7['key']?_0x2a36d7['newValue']&&_0x2a36d7['oldValue']?{'type':'format','content':o(_0x16978e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5a211b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a211b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5a211b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a211b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5a211b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x505604=this['editor'],_0x432502=_0x505604['locale'];_0x505604['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32b37a=>{if('formatBlock'!=_0x32b37a['type']&&'formatInline'!=_0x32b37a['type'])return;const {data:_0xb14f74}=_0x32b37a;if(!_0xb14f74||'replaceImageSource'!=_0xb14f74['commandName'])return;return{'type':'format','content':o(_0x432502,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1c9f3d{['afterInit'](){const _0x42b948=this['editor'];if(!_0x42b948['plugins']['has']('ImageStyleEditing'))return;const _0x44b9dd=_0x42b948['plugins']['get']('TrackChangesEditing'),_0xa260e=_0x42b948['plugins']['get']('ImageUtils'),_0x1fb023={};_0x44b9dd['enableCommand']('imageStyle',(_0x379d8b,_0x2cc31c)=>{const _0x29fa04=_0x42b948['plugins']['get']('Users')['me'],_0x5c8a54=_0x42b948['commands']['get']('imageStyle');let _0x2abf7a=_0xa260e['getClosestSelectedImageElement'](_0x42b948['model']['document']['selection']),_0x4cd32a=_0x42b948['model']['createRangeOn'](_0x2abf7a),_0x36c408=_0x5c8a54['value'];if(_0x36c408==_0x2cc31c['value'])return;const _0x84814a={'commandName':'imageStyle','commandParams':[_0x2cc31c],'formatGroupId':_0x7b6b31()};_0x42b948['model']['change'](()=>{if(_0x44b9dd['getSuggestions']()['filter'](_0x54a395=>_0x54a395['isInContent']&&_0x29fa04==_0x54a395['author']&&('formatBlock'==_0x54a395['type']||'formatInline'==_0x54a395['type'])&&('imageStylePreApply'==_0x54a395['subType']||'imageStylePostApply'==_0x54a395['subType'])&&_0x54a395['getFirstRange']()['isEqual'](_0x4cd32a))['forEach'](_0x48490c=>_0x44b9dd['discardSuggestion'](_0x48490c['head'])),_0x2abf7a=_0xa260e['getClosestSelectedImageElement'](_0x42b948['model']['document']['selection']),_0x4cd32a=_0x42b948['model']['createRangeOn'](_0x2abf7a),_0x5c8a54['refresh'](),_0x42b948['commands']['get']('imageTypeInline')['refresh'](),_0x42b948['commands']['get']('imageTypeBlock')['refresh'](),_0x36c408=_0x5c8a54['value'],_0x36c408!=_0x2cc31c['value'])return _0xa260e['isInlineImage'](_0x2abf7a)&&_0x5c8a54['shouldConvertImageType'](_0x2cc31c['value'],_0x2abf7a)?(_0x379d8b({..._0x2cc31c,'setImageSizes':!0x1}),_0x2abf7a=_0xa260e['getClosestSelectedImageElement'](_0x42b948['model']['document']['selection']),void _0x44b9dd['markBlockFormat'](_0x2abf7a,{..._0x84814a,'commandReversedParams':[{'value':_0x36c408||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xa260e['isBlockImage'](_0x2abf7a)?_0x44b9dd['markBlockFormat'](_0x2abf7a,_0x84814a,[],'imageStylePostApply'):_0x44b9dd['markInlineFormat'](_0x4cd32a,_0x84814a,'imageStylePostApply'));});});for(const _0x10c72d of _0x42b948['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1fb023[_0x10c72d['name']]=_0x10c72d['title']['toLowerCase']();_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x24dbc6])=>{_0xa260e['setImageNaturalSizeAttributes'](_0x24dbc6['getContainedElement']());}),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2262bf,_0x1c23cd)=>{_0x44b9dd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2262bf,{'commandName':_0x1c23cd['commandName'],'commandParams':_0x1c23cd['commandReversedParams']});}),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e6dbb,_0x4f25d8){if(_0x2b3045(_0x3e6dbb,_0x4f25d8))return[_0x3e6dbb,_0x4f25d8];if(_0x2b3045(_0x4f25d8,_0x3e6dbb))return[_0x4f25d8,_0x3e6dbb];return null;});const _0x56e27c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b3045(_0xa2702c,_0x5d4cf1){const _0x5993a3=_0x56e27c['findIndex'](({type:_0x57366e,subType:_0x4bcbaf})=>_0xa2702c['type']==_0x57366e&&_0xa2702c['subType']==_0x4bcbaf),_0x44d5e3=_0x56e27c['findIndex'](({type:_0x519a33,subType:_0x5531bf})=>_0x5d4cf1['type']==_0x519a33&&_0x5d4cf1['subType']==_0x5531bf);if(_0x5993a3<0x0||_0x44d5e3<0x0)return!0x1;const _0x5af980=_0xa2702c['getFirstRange'](),_0x176c80=_0x5d4cf1['getFirstRange']();if((0x0==_0x5993a3||0x1==_0x5993a3)&&0x2==_0x44d5e3&&_0x5af980['isIntersecting'](_0x176c80))return!0x0;if(0x2==_0x5993a3&&0x3==_0x44d5e3){const _0x359bd6=_0x44b9dd['_findSuggestions'](_0x5af980,'insertion')['filter'](({suggestion:_0x9199a3,meta:_0x13d619})=>_0x13d619['isOwn']&&'convertInlineImageToBlock'==_0x9199a3['subType']);if(_0x359bd6['length']>0x1&&_0x176c80['end']['isEqual'](_0x5af980['start']))return!0x0;if(0x1==_0x359bd6['length']&&(_0x5af980['start']['isEqual'](_0x176c80['end'])||_0x5af980['end']['isEqual'](_0x176c80['start'])))return!0x0;}if(0x3==_0x5993a3&&0x3==_0x44d5e3&&_0x5af980['start']['isBefore'](_0x176c80['start'])){const _0x41dff8=_0x5af980['end']['nodeAfter'],_0x3d418f=_0x176c80['start']['nodeBefore'];return _0xa260e['isBlockImage'](_0x41dff8)&&_0x41dff8===_0x3d418f;}return!0x1;}_0x42b948['model']['document']['registerPostFixer'](()=>{let _0x3b4281=!0x1;const _0x4a9470=Array['from'](_0x42b948['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12bcb6,data:_0x209999}of _0x4a9470){const {group:_0x2c8206,type:_0x5840fb,subType:_0x1351fe,id:_0x576a38}=_0x44b9dd['_splitMarkerName'](_0x12bcb6);if('suggestion'==_0x2c8206&&_0x44b9dd['hasSuggestion'](_0x576a38)){if('formatBlock'==_0x5840fb&&('imageStylePreApply'==_0x1351fe||'imageStylePostApply'==_0x1351fe)){const _0x4407d7=_0x44b9dd['getSuggestion'](_0x576a38);if(_0x209999['newRange']){const _0x5b9b96=_0x4407d7['getFirstRange']()['getContainedElement']();if(_0xa260e['isBlockImage'](_0x5b9b96))continue;_0x44b9dd['discardSuggestion'](_0x4407d7),_0x3b4281=!0x0;}}if('insertion'==_0x5840fb&&'imageCaption'==_0x1351fe&&!_0x209999['newRange']){const _0x304130=_0x44b9dd['getSuggestion'](_0x576a38);_0x304130['next']&&_0x304130['next']['isInContent']&&(_0x44b9dd['discardSuggestion'](_0x304130['next']),_0x3b4281=!0x0);}}}return _0x3b4281;}),this['_registerLegacyDescription'](_0x1fb023);}['_registerLegacyDescription'](_0x4f0767){const _0x290d05=this['editor'],_0x5b6495=_0x290d05['locale'];_0x290d05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0195=>{if('formatBlock'!=_0x5e0195['type']&&'formatInline'!=_0x5e0195['type'])return;const {data:_0x1782c0}=_0x5e0195;if(!_0x1782c0||'imageStyle'!=_0x1782c0['commandName'])return;const _0x40e5ab=_0x1782c0['commandParams'][0x0]['value'];return _0xfc7d7d('side'===_0x40e5ab?o(_0x5b6495,'FORMAT_SIDE_IMAGE'):_0x4f0767[_0x40e5ab]||_0x40e5ab);function _0xfc7d7d(_0x405952){return{'type':'format','content':o(_0x5b6495,'*Format:*\x20%0',_0x405952)};}});}}class ot extends _0x1c9f3d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x292b8c){super(_0x292b8c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x26c808=this['editor'],_0x2c4811=_0x26c808['commands']['get']('importWord'),_0x3adb06=_0x26c808['commands']['get']('trackChanges');_0x2c4811&&(_0x2c4811['on']('execute',(_0x51b5ff,[,_0x232589])=>{this['_trackChangesValueDuringImport']=_0x3adb06['value'],_0x232589['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2c4811,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2c4811,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3adb06['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x26c808['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xd11990,_0x4684a1){const {suggestions:_0x52a85d}=_0x4684a1,_0x57c1a1=this['editor']['commands']['get']('trackChanges'),_0x503fd2=_0x57c1a1['value'];this['_trackChangesValueDuringImport']!==_0x503fd2&&(_0x57c1a1['execute'](),this['_trackChangesExecuted']=!0x0),_0x52a85d&&_0x52a85d['forEach'](({id:_0x5c72b0,type:_0x1ca477,author:_0x44fc33,created_at:_0x2aa413})=>{const _0xb75275={'id':_0x5c72b0,'type':_0x1ca477,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x44fc33,'createdAt':_0x2aa413?new Date(_0x2aa413):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb75275);});}}class rt extends _0x1c9f3d{['afterInit'](){const _0x547f0c=this['editor'],_0x20e369=_0x547f0c['plugins']['get']('TrackChangesEditing');if(_0x547f0c['plugins']['has']('IndentEditing')&&(_0x20e369['enableCommand']('indent'),_0x20e369['enableCommand']('outdent')),_0x547f0c['plugins']['has']('IndentBlock')){for(const _0x14906c of['indentBlock','outdentBlock'])_0x20e369['enableDefaultAttributesIntegration'](_0x14906c);}const _0x277d9b=_0x547f0c['locale'];_0x20e369['registerBlockAttribute']('blockIndent'),_0x20e369['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x277d9b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x521377=this['editor'],_0xc3c9d1=_0x521377['locale'],_0x5c9203=_0x521377['plugins']['get']('TrackChangesEditing');_0x5c9203['descriptionFactory']['registerDescriptionCallback'](_0x6dca53=>{if('formatBlock'!=_0x6dca53['type'])return;const {data:_0x5eb29a}=_0x6dca53;if(!_0x5eb29a)return;if('indentBlock'!=_0x5eb29a['commandName']&&'outdentBlock'!=_0x5eb29a['commandName'])return;const _0x55fa15=_0x6dca53['getItems']()[0x0],_0x49b4f8=_0x5c9203['descriptionFactory']['getItemLabel'](_0x55fa15);return'indentBlock'==_0x5eb29a['commandName']?{'type':'format','content':o(_0xc3c9d1,'*Indent:*\x20%0',_0x49b4f8)}:'outdentBlock'==_0x5eb29a['commandName']?{'type':'format','content':o(_0xc3c9d1,'*Outdent:*\x20%0',_0x49b4f8)}:void 0x0;});}}class at extends _0x1c9f3d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1c9f3d{['afterInit'](){const _0xf514e=this['editor'];if(!_0xf514e['plugins']['has']('LinkEditing'))return;const _0xae01cb=_0xf514e['plugins']['get']('TrackChangesEditing'),_0x5d2134=_0xf514e['commands']['get']('link');_0xae01cb['enableDefaultAttributesIntegration']('link'),_0xae01cb['enableDefaultAttributesIntegration']('unlink'),_0xae01cb['registerInlineAttribute']('linkHref');for(const _0x362bcc of _0x5d2134['manualDecorators'])_0xae01cb['registerInlineAttribute'](_0x362bcc['id']),_0xae01cb['descriptionFactory']['registerAttributeLabel'](_0x362bcc['id'],'link\x20('+_0x362bcc['label']['toLowerCase']()+')');_0xae01cb['descriptionFactory']['registerDescriptionCallback'](_0xb8894b=>{if('attribute'!=_0xb8894b['type'])return;const {data:_0x45957c}=_0xb8894b;if(!_0x45957c||'linkHref'!=_0x45957c['key'])return;const _0x29dcaf=_0x45957c['newValue'],_0x558500=_0xf514e['locale'];return{'type':'format','content':null==_0x29dcaf?o(_0x558500,'*Remove\x20link*'):o(_0x558500,'*Set\x20link:*\x20%0','\x22'+_0x29dcaf+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc64b01=this['editor'],_0x4dd2d0=_0xc64b01['locale'];_0xc64b01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xafe58d=>{if('formatInline'!=_0xafe58d['type'])return;const {data:_0x18f34d}=_0xafe58d;if(_0x18f34d){if('link'==_0x18f34d['commandName']){const _0x1247ee=_0x18f34d['commandParams'][0x0];return{'type':'format','content':o(_0x4dd2d0,'*Set\x20link:*\x20%0','\x22'+_0x1247ee+'\x22')};}return'unlink'==_0x18f34d['commandName']?{'type':'format','content':o(_0x4dd2d0,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1c9f3d{['afterInit'](){const _0x319167=this['editor'],_0x1e6c3=_0x319167['locale'];if(!_0x319167['plugins']['has']('LegacyListEditing'))return;const _0x46d545=_0x319167['plugins']['get']('TrackChangesEditing'),_0x3f8fbc=_0x319167['plugins']['has']('LegacyTodoListEditing');function _0x5b47b7(_0x258280){return()=>{const _0xa7e95a=_0x319167['model']['document']['selection'],_0x12c737=_0x319167['commands']['get'](_0x258280);if(_0x12c737['value'])return void _0x319167['execute']('paragraph',{});const _0xf2cbc7=_0x258280['slice'](0x0,-0x4),_0xd42465=function(_0xf6657f,_0x317298,_0x32aed6){let _0x1f94f6=Array['from'](_0xf6657f)['filter'](_0x4eeec5=>function(_0x152f66,_0x4120a7){return _0x4120a7['checkChild'](_0x152f66['parent'],'listItem')&&!_0x4120a7['isObject'](_0x152f66);}(_0x4eeec5,_0x32aed6));_0x1f94f6=_0x1f94f6['filter'](_0x569368=>!_0x569368['is']('element','listItem')||_0x569368['getAttribute']('listType')!=_0x317298);const _0xd3ba77=new Set();for(const _0x39c7f4 of _0x1f94f6)_0x39c7f4['is']('element','listItem')?_0xd3ba77['add'](me(_0x39c7f4)):_0xd3ba77['add'](_0x39c7f4);return Array['from'](_0xd3ba77);}(_0xa7e95a['getSelectedBlocks'](),_0xf2cbc7,_0x319167['model']['schema']);_0x319167['model']['change'](()=>{for(const _0x5e935 of _0xd42465)_0x46d545['markBlockFormat'](_0x5e935,{'commandName':_0x258280,'commandParams':[{'forceValue':!_0x12c737['value']}],'formatGroupId':'blockName'},fe(_0x5e935));});};}function _0x58d98f(_0x4b4bcb){return()=>{const _0x1dd815=function(_0x48d608){let _0x3696a7=Array['from'](_0x48d608);const _0x484dff=_0x3696a7['findIndex'](_0x523045=>'listItem'!=_0x523045['name']);return _0x484dff>-0x1&&(_0x3696a7=_0x3696a7['slice'](0x0,_0x484dff)),_0x3696a7;}(_0x319167['model']['document']['selection']['getSelectedBlocks']()),_0xab4667=_0x319167['model']['createRange'](_0x319167['model']['createPositionAt'](_0x1dd815[0x0],'before'),_0x319167['model']['createPositionAt'](_0x1dd815[_0x1dd815['length']-0x1],'end'));_0x319167['model']['change'](()=>{_0x46d545['markBlockFormat'](_0xab4667,{'commandName':_0x4b4bcb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x13f352){const _0x2209e5=new Set();for(const _0x53dd6f of _0x13f352){let _0x10eea5=_0x53dd6f['nextSibling'];for(;_0x10eea5&&_0x10eea5['getAttribute']('listIndent')>_0x53dd6f['getAttribute']('listIndent');)_0x2209e5['add'](_0x10eea5),_0x10eea5=_0x10eea5['nextSibling'];}return Array['from'](_0x2209e5);}(_0x1dd815));});};}_0x46d545['enableCommand']('numberedList',_0x5b47b7('numberedList')),_0x46d545['enableCommand']('bulletedList',_0x5b47b7('bulletedList')),_0x3f8fbc&&_0x46d545['enableCommand']('todoList',_0x5b47b7('todoList')),_0x46d545['enableCommand']('indentList',_0x58d98f('indentList')),_0x46d545['enableCommand']('outdentList',_0x58d98f('outdentList')),_0x3f8fbc&&_0x46d545['enableCommand']('checkTodoList',()=>{const _0x2a323e=_0x319167['commands']['get']('checkTodoList'),_0x1b5e8b=Array['from'](_0x2a323e['_selectedElements']);_0x1b5e8b['filter'](_0x1ac87a=>_0x1ac87a['getAttribute']('todoListChecked')!=_0x2a323e['value']),_0x319167['model']['change'](()=>{for(const _0x5c2ba2 of _0x1b5e8b)_0x46d545['markBlockFormat'](_0x5c2ba2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2a323e['value']}]});});}),_0x46d545['descriptionFactory']['registerElementLabel']('listItem',_0x469f11=>o(_0x1e6c3,'ELEMENT_LIST_ITEM',_0x469f11)),_0x46d545['descriptionFactory']['registerDescriptionCallback'](_0x48ebd7=>{if('formatBlock'!=_0x48ebd7['type']&&'formatInline'!=_0x48ebd7['type'])return;const {data:_0x2bbb56}=_0x48ebd7;if(_0x2bbb56){if('numberedList'==_0x2bbb56['commandName']||'bulletedList'==_0x2bbb56['commandName']||'todoList'==_0x2bbb56['commandName'])switch(_0x2bbb56['commandName']['replace']('List','')){case'bulleted':return _0x1766f7(o(_0x1e6c3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1766f7(o(_0x1e6c3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1766f7(o(_0x1e6c3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2bbb56['commandName'])return{'type':'format','content':o(_0x1e6c3,'*Indent:*\x20%0',o(_0x1e6c3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2bbb56['commandName'])return{'type':'format','content':o(_0x1e6c3,'*Outdent:*\x20%0',o(_0x1e6c3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2bbb56['commandName'])return _0x2bbb56['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e6c3,'*Check\x20item*')}:{'type':'format','content':o(_0x1e6c3,'*Uncheck\x20item*')};}function _0x1766f7(_0xd6a2ff){return{'type':'format','content':o(_0x1e6c3,'*Change\x20to:*\x20%0',_0xd6a2ff)};}});}}function me(_0x592bf1){const _0x2e9903=_0x592bf1['getAttribute']('listIndent');if(0x0==_0x2e9903)return _0x592bf1;let _0x2b0808=_0x592bf1;for(;_0x592bf1['previousSibling']&&_0x592bf1['previousSibling']['is']('element','listItem');){const _0x3d7bd6=_0x592bf1['previousSibling']['getAttribute']('listIndent');if(_0x3d7bd6==_0x2e9903)_0x2b0808=_0x592bf1['previousSibling'];else{if(_0x3d7bd6<_0x2e9903)break;}_0x592bf1=_0x592bf1['previousSibling'];}return _0x2b0808;}function fe(_0xb52087){const _0x2326a5=[];if(_0xb52087['is']('element','listItem')&&_0xb52087['getAttribute']('listIndent')>0x0){let _0x2fbe81=_0xb52087['nextSibling'];for(;_0x2fbe81&&'listItem'==_0x2fbe81['name']&&_0x2fbe81['getAttribute']('listIndent')==_0xb52087['getAttribute']('listIndent');)_0x2326a5['push'](_0x2fbe81),_0x2fbe81=_0x2fbe81['nextSibling'];}return _0x2326a5;}class K extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5a21fe=this['editor']['config']['get']('list.properties'),_0x22dbbe=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a21fe['styles']&&_0x22dbbe['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5a21fe['reversed']&&_0x22dbbe['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5a21fe['startIndex']&&_0x22dbbe['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x22dbbe['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x76ff07,_0x171aad={}){const _0x1ef8dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x484754=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1ef8dc['markMultiRangeBlockFormat'](_0x484754,{'commandName':'listStyle','commandParams':[{'type':_0x171aad['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x20f9f9,_0x4b777d={}){const _0x504421=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bab96=this['_getSuggestionBlocks'](_0x4b8ff6=>_0x4b8ff6['is']('element','listItem')&&'numbered'===_0x4b8ff6['getAttribute']('listType'));if(_0x1bab96['length']<0x1)return;const _0x1e4517=_0x1bab96['map'](_0x544b0c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x544b0c,'before'),this['editor']['model']['createPositionAt'](_0x544b0c,0x0)));this['editor']['model']['change'](()=>{_0x504421['markMultiRangeBlockFormat'](_0x1e4517,{'commandName':'listReversed','commandParams':[{'reversed':_0x4b777d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x535642,_0x503a68={}){const _0x4d7b0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7dcac=this['_getSuggestionBlocks'](_0x5b8360=>_0x5b8360['is']('element','listItem')&&'numbered'===_0x5b8360['getAttribute']('listType'));if(_0x7dcac['length']<0x1)return;const _0x989126=_0x7dcac['map'](_0x2429da=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2429da,'before'),this['editor']['model']['createPositionAt'](_0x2429da,0x0)));this['editor']['model']['change'](()=>{_0x4d7b0e['markMultiRangeBlockFormat'](_0x989126,{'commandName':'listStart','commandParams':[{'startIndex':_0x503a68['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5909bf){if('formatBlock'!=_0x5909bf['type']&&'formatInline'!=_0x5909bf['type'])return;const _0x4bb853=this['editor']['locale'],{data:_0x2d539c}=_0x5909bf;if(!_0x2d539c)return;let _0xe5ba02,_0x3fb8ae;switch(_0x2d539c['commandName']){case'listStyle':_0xe5ba02='*Change\x20to:*\x20%0',_0x3fb8ae={'type':'format','content':o(_0x4bb853,_0xe5ba02,o(_0x4bb853,this['_getTranslationKeyForListStyle'](_0x2d539c['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe5ba02=_0x2d539c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3fb8ae={'type':'format','content':o(_0x4bb853,_0xe5ba02)};break;case'listStart':_0xe5ba02='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3fb8ae={'type':'format','content':o(_0x4bb853,_0xe5ba02,_0x2d539c['commandParams'][0x0]['startIndex'])};}return _0x3fb8ae;}['_getSuggestionBlocksForListStyle'](){const _0x35fc7b=this['editor']['plugins']['get']('LegacyListUtils');let _0xd3478a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xd3478a[0x0]?.['is']('element','listItem')&&_0xd3478a['unshift'](..._0x35fc7b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xd3478a[_0xd3478a['length']-0x1]?.['is']('element','listItem')&&_0xd3478a['push'](..._0x35fc7b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xd3478a=[...new Set(_0xd3478a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xd3478a=_0xd3478a['filter'](_0xfa0990=>_0xfa0990['is']('element','listItem'))),_0xd3478a;}['_getSuggestionBlocks'](_0x466692){const _0x302cf5=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c3b0b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x466692)['map'](_0x222b83=>{const _0x3a8c32=this['editor']['model']['createPositionAt'](_0x222b83,0x0);return[..._0x302cf5['getSiblingNodes'](_0x3a8c32,'backward'),..._0x302cf5['getSiblingNodes'](_0x3a8c32,'forward')];})['flat']();return _0x3c3b0b=[...new Set(_0x3c3b0b)],_0x3c3b0b;}['_getTranslationKeyForListStyle'](_0x2bb702){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2bb702)||'default')['toUpperCase']()+'_LIST_'+_0x2bb702['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1c9f3d{['afterInit'](){const _0x4fbe51=this['editor'];if(!_0x4fbe51['plugins']['has']('MediaEmbedEditing'))return;const _0x28f9b5=_0x4fbe51['plugins']['get']('TrackChangesEditing'),_0x1dbb9f=_0x4fbe51['locale'];_0x28f9b5['enableCommand']('mediaEmbed'),_0x28f9b5['descriptionFactory']['registerElementLabel']('media',_0x413663=>o(_0x1dbb9f,'ELEMENT_MEDIA',_0x413663)),_0x4fbe51['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4fde32,{writer:_0x25f9ac,options:_0x20fa86})=>{if(_0x20fa86['showSuggestionHighlights'])return _0x25f9ac['createEmptyElement']('div');},'converterPriority':'high'}),_0x4fbe51['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3b2822,_0x1bd9cf,_0x11d0e9)=>{_0x11d0e9['options']['showSuggestionHighlights']&&_0x3b2822['stop']();},{'priority':'high'});}}class gt extends _0x1c9f3d{['afterInit'](){const _0x41e878=this['editor'];_0x41e878['plugins']['has']('MentionEditing')&&_0x41e878['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1c9f3d{['afterInit'](){const _0x1d868e=this['editor'],_0x8a00aa=_0x1d868e['plugins']['get']('TrackChangesEditing');_0x1d868e['plugins']['has']('MultiLevelList')&&(_0x8a00aa['enableDefaultAttributesIntegration']('multiLevelList'),_0x8a00aa['registerBlockAttribute']('listMarkerStyle'),_0x8a00aa['descriptionFactory']['registerDescriptionCallback'](_0x2bfb15=>this['handleDescriptions'](_0x2bfb15)));}['handleDescriptions'](_0x1b6dfe){const _0x170f00=this['editor']['locale'],{data:_0x5f315c}=_0x1b6dfe,_0xf79b29={'type':'format','content':''};if(_0x5f315c&&'listMarkerStyle'==_0x5f315c['key']){if(!_0x5f315c['oldValue'])return{'type':'format','content':o(_0x170f00,'*Set\x20format:*\x20%0',o(_0x170f00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f315c['newValue']+')'};if(!_0x5f315c['newValue']){let _0x36d7b2=_0x1b6dfe['head'];for(;_0x36d7b2;){if(_0x36d7b2['data']&&'listType'==_0x36d7b2['data']['key']&&_0x36d7b2['data']['newValue'])return _0xf79b29;_0x36d7b2=_0x36d7b2['next'];}return{'type':'format','content':o(_0x170f00,'*Remove\x20format:*\x20%0',o(_0x170f00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f315c['oldValue']+')'};}}}}class mt extends _0x1c9f3d{['afterInit'](){const _0x22b72f=this['editor'];if(!_0x22b72f['plugins']['has']('PageBreakEditing'))return;_0x22b72f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x51185f=_0x22b72f['plugins']['get']('TrackChangesEditing'),_0x3b23b3=_0x22b72f['locale'];_0x51185f['descriptionFactory']['registerElementLabel']('pageBreak',_0x3a1857=>o(_0x3b23b3,'ELEMENT_PAGE_BREAK',_0x3a1857));}}class dt extends _0x1c9f3d{['afterInit'](){const _0x9478d7=this['editor'];if(!_0x9478d7['plugins']['has']('Paragraph'))return;const _0x4c39c3=_0x9478d7['locale'],_0x136c9f=_0x9478d7['plugins']['get']('TrackChangesEditing');_0x136c9f['descriptionFactory']['registerElementLabel']('paragraph',_0x46edb3=>o(_0x4c39c3,'ELEMENT_PARAGRAPH',_0x46edb3)),_0x136c9f['enableDefaultAttributesIntegration']('paragraph'),_0x136c9f['enableCommand']('insertParagraph'),_0x9478d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x9478d7),{'priority':'highest'}),_0x9478d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x24277c,_0x35cfd3,_0x4b5cd0)=>{_0x4b5cd0['options']['showSuggestionHighlights']&&nr(_0x9478d7,{'showActiveMarker':!0x1})(_0x24277c,_0x35cfd3,_0x4b5cd0);},{'priority':'highest'});const _0x15a3fe=_0x136c9f['descriptionFactory'];_0x15a3fe['registerDescriptionCallback'](_0x2d5521=>{if('insertion'!==_0x2d5521['type'])return;const {start:_0x56f933,end:_0x12a7c7}=_0x2d5521['getFirstRange']();if(!_0x56f933['isTouching'](_0x12a7c7)||!_0x56f933['nodeAfter'])return;const _0x166f39=_0x9478d7['model']['schema'],_0x465b4d=_0x56f933['nodeAfter'];return _0x166f39['isBlock'](_0x465b4d)&&!_0x166f39['isLimit'](_0x465b4d)&&_0x166f39['checkChild'](_0x465b4d,'$text')?{'type':'insertion','content':o(_0x4c39c3,'*Insert:*\x20%0',_0x15a3fe['getItemLabel'](_0x465b4d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1267ba=this['editor'],_0x3bb4a2=_0x1267ba['locale'];_0x1267ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ffb41=>{if('formatBlock'!=_0x4ffb41['type'])return;const {data:_0x55d21a}=_0x4ffb41;return _0x55d21a&&'paragraph'==_0x55d21a['commandName']?{'type':'format','content':o(_0x3bb4a2,'*Change\x20to:*\x20%0',o(_0x3bb4a2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x42dafd,{showActiveMarker:_0x4a289b=!0x0}={}){return(_0x50130d,_0x59e0d1,_0x26fce1)=>{const _0x40170a=_0x42dafd['plugins']['get']('TrackChangesEditing'),_0x4298f0=_0x59e0d1['markerRange']['start'],_0x51acfa=_0x59e0d1['markerRange']['end'],_0x15cd2b=_0x42dafd['model']['schema'];if(!_0x4298f0['isTouching'](_0x51acfa)||!_0x4298f0['nodeAfter'])return;const _0x39f77d=_0x4298f0['nodeAfter'];if(_0x15cd2b['isBlock'](_0x39f77d)&&!_0x15cd2b['isLimit'](_0x39f77d)&&_0x15cd2b['checkChild'](_0x39f77d,'$text')){if(!_0x26fce1['consumable']['consume'](_0x59e0d1['markerRange'],_0x50130d['name']))return;const _0x3a85cf=_0x26fce1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x33d2af=_0x26fce1['mapper']['toViewPosition'](_0x51acfa);_0x4a289b&&_0x40170a['activeMarkers']['includes'](_0x59e0d1['markerName'])&&_0x26fce1['writer']['addClass']('ck-suggestion-marker--active',_0x3a85cf),_0x26fce1['writer']['insert'](_0x33d2af,_0x3a85cf),_0x26fce1['mapper']['bindElementToMarker'](_0x3a85cf,_0x59e0d1['markerName']);}};}class pt extends _0x1c9f3d{['afterInit'](){const _0x4f9475=this['editor'];if(!_0x4f9475['plugins']['has']('RemoveFormatEditing'))return;_0x4f9475['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c9375=this['editor'];_0x4c9375['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414569=>{if('formatBlock'!=_0x414569['type']&&'formatInline'!=_0x414569['type'])return;const {data:_0x4de4b8}=_0x414569;return _0x4de4b8&&'removeFormat'==_0x4de4b8['commandName']?{'type':'format','content':o(_0x4c9375['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1c9f3d{['afterInit'](){const _0x32ab15=this['editor'];if(!_0x32ab15['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4c6bda=_0x32ab15['plugins']['get']('TrackChangesEditing');_0x4c6bda['enableCommand']('goToPreviousRestrictedEditingException'),_0x4c6bda['enableCommand']('goToNextRestrictedEditingException');const _0x389172=_0x32ab15['plugins']['get']('RestrictedEditingModeEditing');_0x389172['enableCommand']('trackChanges'),_0x389172['enableCommand']('acceptSuggestion'),_0x389172['enableCommand']('discardSuggestion'),_0x389172['enableCommand']('acceptAllSuggestions'),_0x389172['enableCommand']('discardAllSuggestions'),_0x389172['enableCommand']('acceptSelectedSuggestions'),_0x389172['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1c9f3d{static get['requires'](){return[_0x25ed4a];}['init'](){const _0xede088=this['editor'],_0x4747cb=_0xede088['plugins']['get']('TrackChangesEditing');_0x4747cb['enableCommand']('shiftEnter'),_0xede088['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0xede088),{'priority':'high'}),_0xede088['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0xede088),{'priority':'high'}),_0xede088['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1cb42f,_0x2e5675,_0x355e05)=>{_0x355e05['options']['showSuggestionHighlights']&&de(_0xede088,{'showActiveMarker':!0x1})(_0x1cb42f,_0x2e5675,_0x355e05);}),_0x4747cb['descriptionFactory']['registerElementLabel']('softBreak',_0x5779c8=>o(_0xede088['locale'],'ELEMENT_LINE_BREAK',_0x5779c8));}}function de(_0x559c39,{showActiveMarker:_0x5d62a7=!0x0}={}){return(_0x142168,_0xb06e62,_0x3b9b63)=>{const _0x27ee5a=_0x559c39['plugins']['get']('TrackChangesEditing');if(!_0x3b9b63['consumable']['test'](_0xb06e62['markerRange'],_0x142168['name']))return;const _0x1f755f=_0x559c39['model'];for(const _0x46e90d of _0xb06e62['markerRange']['getItems']()){if(!_0x46e90d['is']('element','softBreak'))continue;const _0x26bcc9='deletion'==_0xb06e62['markerName']['split'](':')[0x1]?'merge':'split',_0x386452=_0x3b9b63['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x26bcc9}),_0x43cde6=_0x3b9b63['mapper']['toViewPosition'](_0x1f755f['createPositionBefore'](_0x46e90d));_0x5d62a7&&_0x27ee5a['activeMarkers']['includes'](_0xb06e62['markerName'])&&_0x3b9b63['writer']['addClass']('ck-suggestion-marker--active',_0x386452),_0x3b9b63['writer']['insert'](_0x43cde6,_0x386452),_0x3b9b63['mapper']['bindElementToMarker'](_0x386452,_0xb06e62['markerName']);}};}class wt extends _0x1c9f3d{['afterInit'](){const _0x52ca1c=this['editor'],_0x6f0ca0=_0x52ca1c['model'],_0xb28d9b=_0x52ca1c['locale'];if(!_0x52ca1c['plugins']['has']('StandardEditingModeEditing'))return;const _0x2a6ad8=_0x52ca1c['plugins']['get']('TrackChangesEditing'),_0x4fcb5f='restrictedEditingException',_0x4b5ef1=_0x52ca1c['commands']['get'](_0x4fcb5f);_0x2a6ad8['enableCommand'](_0x4fcb5f,(_0x5b40e5,_0x53601d={})=>{const _0x188cf8=_0x6f0ca0['document']['selection'];if(_0x188cf8['isCollapsed'])return void _0x5b40e5(_0x53601d);const _0x2efa59=void 0x0!==_0x53601d['forceValue']?_0x53601d['forceValue']:!_0x4b5ef1['value'];_0x6f0ca0['change'](()=>{const _0x5e608e=Array['from'](_0x188cf8['getRanges']());for(const _0x205031 of _0x5e608e){const _0x3d7e7c=_0x2efa59?[_0x205031]:io(_0x4fcb5f,_0x205031,_0x6f0ca0);for(const _0x3a1b24 of _0x3d7e7c)_0x2a6ad8['markInlineFormat'](_0x3a1b24,{'commandName':_0x4fcb5f,'commandParams':[{'forceValue':_0x2efa59}]});}});}),_0x2a6ad8['descriptionFactory']['registerDescriptionCallback'](_0xc3fc7b=>{if('formatBlock'!=_0xc3fc7b['type']&&'formatInline'!=_0xc3fc7b['type'])return;const {data:_0x563b25}=_0xc3fc7b;return _0x563b25&&_0x563b25['commandName']==_0x4fcb5f?_0x563b25['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb28d9b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb28d9b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1c9f3d{['afterInit'](){const _0x520111=this['editor'];if(!_0x520111['plugins']['has']('Style')||!_0x520111['plugins']['has']('DataSchema'))return;const _0x1e2432=_0x520111['plugins']['get']('TrackChangesEditing'),_0xb1b0ea=_0x520111['locale'],_0x3eba39=_0x520111['config']['get']('style')||{},_0x38a5b2=_0x520111['plugins']['get']('GeneralHtmlSupport'),_0x5b7f8b=_0x520111['plugins']['get']('StyleUtils')['normalizeConfig'](_0x520111['plugins']['get']('DataSchema'),_0x3eba39['definitions']);_0x1e2432['enableDefaultAttributesIntegration']('style');const _0xe3aa74=new Set();for(const _0x2e28e5 of _0x5b7f8b['block']){const _0x96972=_0x38a5b2['getGhsAttributeNameForElement'](_0x2e28e5['element']);_0xe3aa74['add'](_0x96972);}const _0x23d8bd=new Set();for(const _0x286e16 of _0x5b7f8b['inline']){const _0x18df53=_0x38a5b2['getGhsAttributeNameForElement'](_0x286e16['element']);_0x23d8bd['add'](_0x18df53);for(const _0x2b6b07 of _0x286e16['ghsAttributes'])_0x23d8bd['add'](_0x2b6b07);}for(const _0x75950 of _0xe3aa74)_0x1e2432['registerBlockAttribute'](_0x75950),_0x1e2432['descriptionFactory']['registerAttributeLabel'](_0x75950,o(_0xb1b0ea,'FORMAT_STYLE'));for(const _0x54c973 of _0x23d8bd)_0x1e2432['registerInlineAttribute'](_0x54c973),_0x1e2432['descriptionFactory']['registerAttributeLabel'](_0x54c973,o(_0xb1b0ea,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e8f7e=this['editor'],_0x4ae8a2=_0x2e8f7e['locale'];_0x2e8f7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb8e59b=>{if('formatBlock'!=_0xb8e59b['type']&&'formatInline'!=_0xb8e59b['type'])return;const {data:_0x42abe1}=_0xb8e59b;return _0x42abe1&&'style'===_0x42abe1['commandName']?_0x42abe1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ae8a2,'*Set\x20format:*\x20%0',_0x42abe1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4ae8a2,'*Remove\x20format:*\x20%0',_0x42abe1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1c9f3d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x149f44){super(_0x149f44),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4e34e5=this['editor'],_0x153b64=_0x4e34e5['model']['document']['selection'];if(!_0x4e34e5['plugins']['has']('TableEditing'))return;const _0x37fb60=_0x4e34e5['locale'],_0x4c29ac=_0x4e34e5['plugins']['get']('TrackChangesEditing'),_0x38c421=_0x4e34e5['plugins']['get']('TableUtils');_0x4c29ac['descriptionFactory']['registerElementLabel']('table',_0x26aecc=>o(_0x37fb60,'ELEMENT_TABLE',_0x26aecc)),this['_setupColumnsRowsFixing'](),_0x4c29ac['enableCommand']('insertTable'),_0x4c29ac['enableCommand']('selectTableRow'),_0x4c29ac['enableCommand']('selectTableColumn');for(const _0x75f415 of['insertTableRowAbove','insertTableRowBelow']){const _0x34a9c9=_0x4e34e5['commands']['get'](_0x75f415);_0x4c29ac['enableCommand'](_0x75f415,_0x9c6826=>{_0x4e34e5['model']['change'](_0x2621d1=>{_0x9c6826();const _0x34e28c='above'===_0x34a9c9['order'],_0x16e59a=_0x38c421['getSelectionAffectedTableCells'](_0x153b64),_0x41a756=_0x38c421['getRowIndexes'](_0x16e59a),_0x31bd6d=_0x34e28c?_0x41a756['first']-0x1:_0x41a756['last']+0x1,_0x3673c7=_0x16e59a[0x0]['findAncestor']('table'),_0x15aa87=_0x38c421['createTableWalker'](_0x3673c7,{'startRow':_0x31bd6d,'endRow':_0x31bd6d}),_0x332831=Array['from'](_0x15aa87)['map'](_0x2a5526=>_0x2621d1['createRangeOn'](_0x2a5526['cell']));_0x4c29ac['markMultiRangeInsertion'](_0x332831,'tableRow');});});}for(const _0x35a5bd of['insertTableColumnLeft','insertTableColumnRight']){const _0x5b6da9=_0x4e34e5['commands']['get'](_0x35a5bd);_0x4c29ac['enableCommand'](_0x35a5bd,_0x4dfd49=>{_0x4e34e5['model']['change'](_0x26b2b0=>{_0x4dfd49();const _0x419209='left'===_0x5b6da9['order'],_0x309381=_0x38c421['getSelectionAffectedTableCells'](_0x153b64),_0x5b2ac5=_0x38c421['getColumnIndexes'](_0x309381),_0x59ec8d=_0x419209?_0x5b2ac5['first']-0x1:_0x5b2ac5['last']+0x1,_0x40660b=_0x309381[0x0]['findAncestor']('table'),_0xda96f2=_0x38c421['createTableWalker'](_0x40660b,{'startRow':0x0,'column':_0x59ec8d,'includeAllSlots':!0x1}),_0x423ccf=Array['from'](_0xda96f2)['map'](_0x333dc0=>_0x26b2b0['createRangeOn'](_0x333dc0['cell']));_0x4c29ac['markMultiRangeInsertion'](_0x423ccf,'tableColumn');});});}for(const _0x4bef33 of['removeTableRow','removeTableColumn']){const _0x5f433e=_0x4bef33['substr'](0xb),_0x1fd303=_0x5f433e['toLowerCase'](),_0x14b47e=_0x1fd303['substr'](0x0,0x3)+'span',_0x2f255a='table'+_0x5f433e,_0xf7b9d0='min'+_0x5f433e,_0x2fc857='max'+_0x5f433e;_0x4c29ac['enableCommand'](_0x4bef33,()=>{_0x4e34e5['model']['change'](_0x103b24=>{const _0x2b7394=_0x38c421['getSelectionAffectedTableCells'](_0x153b64),_0x34ecb2=_0x2b7394[0x0]['findAncestor']('table');let _0x483b5b;if('removeTableRow'==_0x4bef33){const _0x3b9eba=_0x38c421['getRowIndexes'](_0x2b7394);_0x483b5b={'startRow':_0x3b9eba['first'],'endRow':_0x3b9eba['last'],'includeAllSlots':!0x0};}else{const _0x287fd4=_0x38c421['getColumnIndexes'](_0x2b7394);_0x483b5b={'startColumn':_0x287fd4['first'],'endColumn':_0x287fd4['last'],'includeAllSlots':!0x0};}const _0x1d7b31=_0x38c421['createTableWalker'](_0x34ecb2,_0x483b5b),_0x209205=Array['from'](_0x1d7b31)['map'](({cell:_0xbe23ad})=>_0xbe23ad),_0x3b302f=Ee(_0x209205['filter'](_0x5d7b60=>_0x5d7b60['hasAttribute'](_0x14b47e))),_0x51d997=Ee(_0x209205['filter'](_0x2dafd9=>!_0x2dafd9['hasAttribute'](_0x14b47e)))['map'](_0x38b41a=>_0x103b24['createRangeOn'](_0x38b41a)),_0xc6518f=_0x4c29ac['markMultiRangeDeletion'](_0x51d997,_0x2f255a);if(_0xc6518f&&('tableRow'==_0xc6518f['subType']||'tableColumn'==_0xc6518f['subType'])){const _0x34789d=this['_getSuggestionCoords'](_0xc6518f);for(const _0x29ccdb of _0x3b302f){const _0x2096de=_0x103b24['createRangeOn'](_0x29ccdb),_0x12ee6b=_0x38c421['getCellLocation'](_0x29ccdb),_0x17cf4a=_0x29ccdb['getAttribute'](_0x14b47e)-0x1,_0x101d67=_0x34789d[_0xf7b9d0],_0x226d51=_0x34789d[_0x2fc857];_0x101d67<=_0x12ee6b[_0x1fd303]&&_0x12ee6b[_0x1fd303]+_0x17cf4a<=_0x226d51&&_0xc6518f['addRange'](_0x2096de);}}});});}function _0x2ad378(_0x5eb9c0){const _0x194b8d=Array['from'](_0x153b64['getRanges']())['map'](_0x56c152=>_0x45d820['fromRange'](_0x56c152));_0x4e34e5['model']['change'](_0xef2dbc=>{const _0x319dec=_0xef2dbc['batch'];_0x5eb9c0=_0x5eb9c0['filter'](_0x2c3266=>'$graveyard'!=_0x2c3266['root']['rootName']),_0xef2dbc['setSelection'](_0x5eb9c0),_0x4e34e5['commands']['get']('removeTableRow')['refresh'](),_0x4e34e5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4e34e5['model']['enqueueChange'](()=>{_0x4e34e5['model']['enqueueChange'](_0x319dec,_0x4fdcff=>{const _0x1766c3=_0x194b8d['filter'](_0x59c3f3=>'$graveyard'!=_0x59c3f3['root']['rootName']);_0x1766c3['length']>0x0&&_0x4fdcff['setSelection'](_0x1766c3);for(const _0x6ad06b of _0x194b8d)_0x6ad06b['detach']();});});});}function _0x514d47(_0x30b76d){_0x4e34e5['model']['change'](_0x58d9a5=>{const _0x4d598a=Array['from'](_0x153b64['getRanges']())['map'](_0x2cb933=>_0x45d820['fromRange'](_0x2cb933)),_0x6ec208=[];for(const _0x93173e of _0x30b76d)for(const _0x2b5e44 of _0x93173e['getItems']({'shallow':!0x0}))_0x6ec208['push'](_0x2b5e44);for(const _0x1ed6bf of _0x6ec208)'$graveyard'!=_0x1ed6bf['root']['rootName']&&(_0x58d9a5['setSelection'](_0x58d9a5['createPositionAt'](_0x1ed6bf,0x0)),_0x4e34e5['commands']['get']('removeTableColumn')['refresh'](),_0x4e34e5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1903f6=_0x4d598a['filter'](_0x5a8b09=>'$graveyard'!=_0x5a8b09['root']['rootName']);_0x1903f6['length']>0x0&&_0x58d9a5['setSelection'](_0x1903f6);for(const _0x5225d0 of _0x4d598a)_0x5225d0['detach']();});}function _0xe26880(_0x5c09bb,_0x24398b){return _0x24398b['every'](_0x23cbff=>_0x5c09bb['some'](_0x42871c=>_0x42871c['end']['isEqual'](_0x23cbff['start'])||_0x23cbff['end']['isEqual'](_0x42871c['start'])));}function _0x25e8dd(_0x125976,_0x4944ec){return!_0x125976['some'](_0x38a483=>_0x4944ec['some'](_0x5b54c3=>_0x38a483['isIntersecting'](_0x5b54c3)))&&_0x125976['some'](_0x1f3d48=>_0x4944ec['some'](_0x4c7dab=>_0x1f3d48['end']['isTouching'](_0x4c7dab['start'])));}_0x4e34e5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x109e80,_0x3879fd,_0x56cf90)=>{if(!_0x56cf90['options']['showSuggestionHighlights'])return;const _0x3ddd04=_0x3879fd['item'];if(!_0x3ddd04)return;const _0x48f262=_0x56cf90['mapper']['toViewElement'](_0x3ddd04);function _0x372100(_0xb9318d){return Array['isArray'](_0xb9318d)?_0xb9318d:[_0xb9318d];}_0x48f262&&'tableCell'===_0x3ddd04['name']&&_0x4a7bb1(_0x48f262,_0x56cf90['writer'],(_0x4a8922,_0x118e0a,_0x4f0ac0)=>_0x4f0ac0['addClass'](_0x372100(_0x118e0a['classes']),_0x4a8922),(_0x1be49b,_0x593451,_0x173178)=>_0x173178['removeClass'](_0x372100(_0x593451['classes']),_0x1be49b));},{'priority':'highest'}),_0x4c29ac['descriptionFactory']['registerDescriptionCallback'](_0x6ae4b9=>{if('insertion'!=_0x6ae4b9['type']&&'deletion'!=_0x6ae4b9['type'])return;const _0x2c497c=_0x6ae4b9['getContainedElement']();if(null!=_0x2c497c&&_0x2c497c['is']('element','table')){if('insertion'==_0x6ae4b9['type']){const _0x135db2=_0x6ae4b9['getItems']()['filter'](_0x15b60a=>_0x15b60a['is']('$textProxy'))['map'](_0x5a9d51=>_0x5a9d51['data']);if(_0x135db2['length'])return{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x135db2['join']('\x20')+'\x22'))};}if('deletion'==_0x6ae4b9['type']){const _0x58766f=_0x6ae4b9['getItems']()['filter'](_0x55e751=>_0x55e751['is']('$textProxy'))['map'](_0x24b79e=>_0x24b79e['data']);if(_0x58766f['length'])return{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58766f['join']('\x20')+'\x22'))};}}}),_0x4c29ac['descriptionFactory']['registerDescriptionCallback'](_0x2b20f4=>{if('tableRow'==_0x2b20f4['subType']){const _0x4b2ef8=_0x2b20f4['getItems']()['filter'](_0x68a17b=>_0x68a17b['is']('$textProxy'))['map'](_0x318c22=>_0x318c22['data']),_0x391d3e=this['_getSuggestionCoords'](_0x2b20f4),_0xd29400=_0x391d3e['maxRow']-_0x391d3e['minRow']+0x1;if('insertion'==_0x2b20f4['type'])return _0x4b2ef8['length']?{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd29400,'\x22'+_0x4b2ef8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_ROW',_0xd29400))};if('deletion'==_0x2b20f4['type'])return _0x4b2ef8['length']?{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd29400,'\x22'+_0x4b2ef8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_ROW',_0xd29400))};}if('tableColumn'==_0x2b20f4['subType']){const _0x644867=_0x2b20f4['getItems']()['filter'](_0x14a4f9=>_0x14a4f9['is']('$textProxy'))['map'](_0x2d040d=>_0x2d040d['data']),_0x5bf5dd=this['_getSuggestionCoords'](_0x2b20f4),_0x5e8cac=_0x5bf5dd['maxColumn']-_0x5bf5dd['minColumn']+0x1;if('insertion'==_0x2b20f4['type'])return _0x644867['length']?{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e8cac,'\x22'+_0x644867['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_COLUMN',_0x5e8cac))};if('deletion'==_0x2b20f4['type'])return _0x644867['length']?{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e8cac,'\x22'+_0x644867['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_COLUMN',_0x5e8cac))};}}),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ad378),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ad378),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x514d47),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x514d47),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xe26880),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xe26880),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x25e8dd),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x25e8dd);}['_acceptFormatSuggestionCallbackFactory'](){const _0x575c5f=this['editor'],_0x55f71a=_0x575c5f['model']['document']['selection'];return(_0x397421,_0x581d44)=>{_0x575c5f['model']['change'](_0x3a9209=>{const {commandName:_0x4e8520,commandParams:_0x58d821}=_0x581d44;let _0xa29ee1=_0x397421[0x0]['end']['nodeBefore'];_0x58d821&&_0x58d821[0x0]&&!0x1===_0x58d821[0x0]['forceValue']&&(_0xa29ee1=_0x397421[0x0]['start']['nodeAfter']);const _0x5cf889=_0x3a9209['createRangeIn'](_0xa29ee1);if('$graveyard'==_0x5cf889['root']['rootName'])return;const _0x2bd49d=Array['from'](_0x55f71a['getRanges']())['map'](_0x5e7a51=>_0x45d820['fromRange'](_0x5e7a51));_0x3a9209['setSelection'](_0x5cf889),_0x575c5f['commands']['get'](_0x4e8520)['refresh'](),_0x58d821['push']({'forceDefaultExecution':!0x0}),_0x575c5f['execute'](_0x4e8520,..._0x58d821);const _0x28da02=_0x2bd49d['filter'](_0xd2484c=>'$graveyard'!=_0xd2484c['root']['rootName']);_0x28da02['length']>0x0&&_0x3a9209['setSelection'](_0x28da02);for(const _0x4b9209 of _0x2bd49d)_0x4b9209['detach']();});};}['_getCoordsForCells'](_0xb230c6){const _0x275acd=this['editor']['plugins']['get']('TableUtils');let _0x1c28ac=Number['MAX_SAFE_INTEGER'],_0x1b1cb6=Number['MIN_SAFE_INTEGER'],_0x375ca6=Number['MAX_SAFE_INTEGER'],_0x4424ce=Number['MIN_SAFE_INTEGER'];for(const _0x41968c of _0xb230c6){if('$graveyard'==_0x41968c['root']['rootName'])continue;const {row:_0xd92af3,column:_0x5d78fb}=_0x275acd['getCellLocation'](_0x41968c),_0x2d8e67=_0x41968c['hasAttribute']('rowspan')?_0x41968c['getAttribute']('rowspan')-0x1:0x0,_0x164a19=_0x41968c['hasAttribute']('colspan')?_0x41968c['getAttribute']('colspan')-0x1:0x0;_0x1c28ac=_0xd92af3<_0x1c28ac?_0xd92af3:_0x1c28ac,_0x1b1cb6=_0xd92af3+_0x2d8e67>_0x1b1cb6?_0xd92af3+_0x2d8e67:_0x1b1cb6,_0x375ca6=_0x5d78fb<_0x375ca6?_0x5d78fb:_0x375ca6,_0x4424ce=_0x5d78fb+_0x164a19>_0x4424ce?_0x5d78fb+_0x164a19:_0x4424ce;}return{'minRow':_0x1c28ac,'maxRow':_0x1b1cb6,'minColumn':_0x375ca6,'maxColumn':_0x4424ce};}['_setupColumnsRowsFixing'](){const _0x49a7d3=this['editor'],_0x4f26d1=_0x49a7d3['plugins']['get']('TrackChangesEditing'),_0x1fdb0b=_0x49a7d3['plugins']['get']('TableUtils');_0x49a7d3['model']['document']['on']('change:data',()=>{const _0x26e6ad=Array['from'](_0x49a7d3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x252d5b,data:_0x37aa63}of _0x26e6ad){const {group:_0x46fd02,id:_0x1df74c,subType:_0x4cd431}=_0x4f26d1['_splitMarkerName'](_0x252d5b);if('suggestion'!=_0x46fd02)continue;if(null!=_0x37aa63['oldRange'])continue;const _0x3a2906=_0x4f26d1['getSuggestion'](_0x1df74c);this['_tablePostFixingSubtypes']['includes'](_0x4cd431)&&this['_tableSuggestions']['add'](_0x3a2906);}},{'priority':'low'});const _0x20caa9=(_0x29637b,_0x44ddaa)=>{let _0x597663=!0x1;const _0x1e8560=_0x44ddaa['createRangeOn'](_0x29637b),_0x35a3b0=_0x29637b['findAncestor']('table'),_0x5fb4a2=_0x1fdb0b['getCellLocation'](_0x29637b);for(const _0x50ae70 of this['_tableSuggestions']){const _0x23b900=_0x50ae70['subType'],_0xd73b8b=_0x23b900['startsWith']('tablePaste'),_0x5b8c05=_0x23b900['substr'](_0xd73b8b?0xa:0x5),_0x1baecd=_0x5b8c05['toLowerCase'](),_0x11f97e=_0x1baecd['substr'](0x0,0x3)+'span',_0x2a14c3='min'+_0x5b8c05,_0x54d7c2='max'+_0x5b8c05;if(!_0x50ae70['isInContent'])continue;if(_0x35a3b0!=_0x50ae70['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x50ae70['isIntersectingWithRange'](_0x1e8560))continue;const _0x54a199=_0x29637b['hasAttribute'](_0x11f97e)?_0x29637b['getAttribute'](_0x11f97e)-0x1:0x0,_0x4ed748=this['_getSuggestionCoords'](_0x50ae70),_0xe953d4=_0x4ed748[_0x2a14c3],_0x15de5b=_0x4ed748[_0x54d7c2];_0xe953d4<=_0x5fb4a2[_0x1baecd]&&_0x5fb4a2[_0x1baecd]+_0x54a199<=_0x15de5b&&(_0x50ae70['addRange'](_0x1e8560),_0x597663=!0x0);}return _0x597663;};_0x49a7d3['model']['document']['registerPostFixer'](_0x5ae364=>{let _0x66975c=!0x1;for(const _0x4514e2 of _0x49a7d3['model']['document']['differ']['getChanges']())if('insert'==_0x4514e2['type']){if('tableRow'==_0x4514e2['name']){for(const _0x11c96d of _0x4514e2['position']['nodeAfter']['getChildren']())_0x66975c=_0x66975c||_0x20caa9(_0x11c96d,_0x5ae364);}else'tableCell'==_0x4514e2['name']&&(_0x66975c=_0x66975c||_0x20caa9(_0x4514e2['position']['nodeAfter'],_0x5ae364));}return _0x66975c;});}['_getSuggestionCoords'](_0x1ed09c){return this['_getCoordsForCells'](_0x1ed09c['getRanges']()['map'](_0x395b14=>_0x395b14['start']['nodeAfter']));}}function Ee(_0x452ed9){return Array['from'](new Set(_0x452ed9)['values']());}class St extends _0x1c9f3d{static get['requires'](){return[jt];}['afterInit'](){const _0xc0a1ad=this['editor'],_0x5ac065=_0xc0a1ad['model']['document']['selection'],_0x4c3414=_0xc0a1ad['locale'];if(!_0xc0a1ad['plugins']['has']('TableEditing'))return;const _0x502e6a=_0xc0a1ad['plugins']['get']('TrackChangesEditing'),_0x341726=_0xc0a1ad['plugins']['get']('TableUtils'),_0xc4cd32=_0xc0a1ad['plugins']['get'](jt);_0xc4cd32['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x502e6a['enableCommand']('mergeTableCells',()=>{const _0x147d22=_0x341726['getSelectionAffectedTableCells'](_0xc0a1ad['model']['document']['selection']);_0xc0a1ad['model']['change'](()=>{_0x502e6a['markMultiRangeBlockFormat'](_0x147d22,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xc0a1ad['commands']['get']('mergeTableCells')['on']('execute',(_0x4f3332,_0x489670)=>{_0xc0a1ad['commands']['get']('trackChanges')['value']&&(_0x489670['length']>0x0&&_0x489670[_0x489670['length']-0x1]&&_0x489670[_0x489670['length']-0x1]['forceDefaultExecution']||_0x502e6a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4f3332['stop']());},{'priority':'highest'});for(const _0x23ce57 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x25b5a2=_0xc0a1ad['commands']['get'](_0x23ce57);_0x502e6a['enableCommand'](_0x23ce57,()=>{const _0x1e7912=_0xc0a1ad['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x15b233=>_0x15b233['is']('element','tableCell')),_0x5a4557=_0x25b5a2['value'];_0xc0a1ad['model']['change'](()=>{_0x502e6a['markMultiRangeBlockFormat']([_0x1e7912,_0x5a4557],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x14419d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x118c06=_0xc0a1ad['commands']['get'](_0x14419d);_0x502e6a['enableCommand'](_0x14419d,()=>{const _0x202bab=_0x341726['getSelectionAffectedTableCells'](_0xc0a1ad['model']['document']['selection'])[0x0],_0x3b28dd=_0x202bab['findAncestor']('table'),{column:_0x5f2717,row:_0x40f091}=_0x341726['getCellLocation'](_0x202bab);let _0x34832c=[];if('horizontally'==_0x118c06['direction']){const _0x50cf54=_0x341726['createTableWalker'](_0x3b28dd,{'startRow':_0x40f091,'endRow':_0x40f091,'includeAllSlots':!0x0});_0x34832c=Array['from'](_0x50cf54)['map'](_0x3ddd0e=>_0x3ddd0e['cell']);}else{const _0x9f39dd=_0x341726['createTableWalker'](_0x3b28dd,{'column':_0x5f2717,'includeAllSlots':!0x0});_0x34832c=Array['from'](_0x9f39dd)['map'](_0x3dc2fe=>_0x3dc2fe['cell']);}_0xc0a1ad['model']['change'](_0x2d4a72=>{_0x502e6a['markBlockFormat'](_0x2d4a72['createRangeOn'](_0x202bab),{'commandName':_0x14419d,'commandParams':[]},_0x34832c,_0x14419d);});});}_0x502e6a['descriptionFactory']['registerDescriptionCallback'](_0x476f3=>{if('formatBlock'!=_0x476f3['type']&&'formatInline'!=_0x476f3['type'])return;const {data:_0x59eb13}=_0x476f3;return _0x59eb13&&'mergeTableCells'==_0x59eb13['commandName']?{'type':'format','content':o(_0x4c3414,'*Merge\x20cells*')}:void 0x0;}),_0x502e6a['descriptionFactory']['registerDescriptionCallback'](_0x45ab6a=>{if('formatBlock'!=_0x45ab6a['type']&&'formatInline'!=_0x45ab6a['type'])return;const {data:_0x2e28cd}=_0x45ab6a;return _0x2e28cd?'splitTableCellVertically'==_0x2e28cd['commandName']?{'type':'format','content':o(_0x4c3414,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2e28cd['commandName']?{'type':'format','content':o(_0x4c3414,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x577b2e=_0xc4cd32['_acceptFormatSuggestionCallbackFactory']();for(const _0x44cafe of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x502e6a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44cafe,'accept',_0x577b2e);for(const _0x52fdb9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x502e6a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52fdb9,'accept',_0x577b2e);_0x502e6a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2d8027=>{_0xc0a1ad['model']['change'](_0x55e668=>{const _0x342ac4=Array['from'](_0x5ac065['getRanges']())['map'](_0x1d0a70=>_0x45d820['fromRange'](_0x1d0a70));_0x55e668['setSelection'](_0x2d8027),_0xc0a1ad['commands']['get']('mergeTableCells')['refresh'](),_0xc0a1ad['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x320b67=_0x342ac4['filter'](_0x43149b=>'$graveyard'!=_0x43149b['root']['rootName']);_0x320b67['length']>0x0&&_0x55e668['setSelection'](_0x320b67);for(const _0x14c1da of _0x342ac4)_0x14c1da['detach']();});});for(const _0x1424c1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37fbcb=_0xc0a1ad['commands']['get'](_0x1424c1);_0x37fbcb['on']('set:isEnabled',(_0x36d3e6,_0x2cff7f,_0xb9ffe2)=>{if(_0xb9ffe2){const _0xcf87cd=_0xc0a1ad['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd97741=>_0xd97741['is']('element','tableCell'));this['_areMergableCells'](_0x37fbcb['value'],_0xcf87cd)||(_0x36d3e6['return']=!0x1,_0x36d3e6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1ce062=this['editor']['commands']['get']('mergeTableCells'),_0x84cc4b=this['editor']['plugins']['get']('TableUtils');if(!_0x1ce062['isEnabled'])return!0x1;const _0x240452=_0x84cc4b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1361ec of _0x240452)for(const _0x1391f8 of _0x240452)if(_0x1361ec!=_0x1391f8&&!this['_areMergableCells'](_0x1361ec,_0x1391f8))return!0x1;return!0x0;}['_areMergableCells'](_0x1ec160,_0x47f120){const _0x533f4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44878a=this['editor']['model']['createRangeOn'](_0x1ec160),_0x2edd91=this['editor']['model']['createRangeOn'](_0x47f120),_0x2ee2cd=new Set(),_0x1cabaa=new Set();for(const _0x4f0d48 of _0x533f4f['getSuggestions']())if(('insertion'==_0x4f0d48['type']||'deletion'==_0x4f0d48['type']||'mergeTableCells'==_0x4f0d48['subType'])&&_0x4f0d48['isInContent']){for(const _0x91d1a6 of _0x4f0d48['getRanges']())_0x91d1a6['containsRange'](_0x44878a,!0x0)&&_0x2ee2cd['add'](_0x4f0d48['type']+':'+_0x4f0d48['author']['id']),_0x91d1a6['containsRange'](_0x2edd91,!0x0)&&_0x1cabaa['add'](_0x4f0d48['type']+':'+_0x4f0d48['author']['id']);}if(_0x2ee2cd['size']!=_0x1cabaa['size'])return!0x1;for(const _0x5dc6f2 of _0x2ee2cd)if(!_0x1cabaa['has'](_0x5dc6f2))return!0x1;return!0x0;}}class At extends _0x1c9f3d{static get['requires'](){return[jt];}['afterInit'](){const _0x42d59c=this['editor'];if(!_0x42d59c['plugins']['has']('TableEditing'))return;const _0x532fc2=_0x42d59c['locale'],_0x3d4a72=_0x42d59c['plugins']['get']('TrackChangesEditing');_0x3d4a72['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3d4a72['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3d4a72['registerBlockAttribute']('headingRows'),_0x3d4a72['registerBlockAttribute']('headingColumns'),_0x3d4a72['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x532fc2,'FORMAT_HEADER_ROW')),_0x3d4a72['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x532fc2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19c1a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x525e4a=this['editor']['plugins']['get']('TableUtils'),_0x2ac8a9=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x17fbe7({showActiveMarker:_0x4fc6ff=!0x0,setDataAttribute:_0x2b3fe4=!0x0}={}){return(_0x2eb042,_0x397f3e,_0x578a9b)=>{const {type:_0x154496,id:_0x37661a}=_0x19c1a1['_splitMarkerName'](_0x397f3e['markerName']),_0x3f7171=_0x19c1a1['getSuggestion'](_0x37661a),_0x401c27=_0x3f7171['data'];if('formatBlock'!=_0x3f7171['type']||!_0x401c27||'setTableColumnHeader'!=_0x401c27['commandName'])return;if(_0x397f3e['item'])return void _0x2eb042['stop']();if(!_0x578a9b['consumable']['consume'](_0x397f3e['markerRange'],_0x2eb042['name']))return;const _0x413a1f=_0x397f3e['markerRange']['start']['nodeAfter'],_0x30a22c=_0x397f3e['markerRange']['end']['nodeBefore'],_0x447f0c=_0x413a1f['parent']['parent'],{column:_0x5c93b4}=_0x525e4a['getCellLocation'](_0x413a1f),{column:_0x55023a}=_0x525e4a['getCellLocation'](_0x30a22c);for(let _0x2dc5cd=_0x5c93b4;_0x2dc5cd<=_0x55023a;_0x2dc5cd++){const _0x3cf153=_0x525e4a['createTableWalker'](_0x447f0c,{'column':_0x2dc5cd,'includeAllSlots':!0x1});for(const _0x3e48e4 of _0x3cf153){const _0x4d807b=_0x3e48e4['cell'],_0x287754=_0x578a9b['mapper']['toViewElement'](_0x4d807b);_0x578a9b['writer']['addClass']('ck-suggestion-marker-'+_0x154496,_0x287754),_0x2b3fe4&&_0x578a9b['writer']['setAttribute']('data-suggestion',_0x37661a,_0x287754),_0x578a9b['mapper']['bindElementToMarker'](_0x287754,_0x397f3e['markerName']),_0x4fc6ff&&(_0x19c1a1['activeMarkers']['includes'](_0x397f3e['markerName'])?_0x578a9b['writer']['addClass']('ck-suggestion-marker--active',_0x287754):_0x578a9b['writer']['removeClass']('ck-suggestion-marker--active',_0x287754));}}};}_0x19c1a1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2ac8a9),_0x19c1a1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2ac8a9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x17fbe7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5dc507,_0x10b59d,_0x5ac255)=>{_0x5ac255['options']['showSuggestionHighlights']&&_0x17fbe7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5dc507,_0x10b59d,_0x5ac255);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xde292,_0x273601,_0x481363)=>{const {type:_0xa2b95,id:_0x112574}=_0x19c1a1['_splitMarkerName'](_0x273601['markerName']),_0x2e7adb=_0x19c1a1['getSuggestion'](_0x112574),_0x5c7b37=_0x2e7adb['data'];if('formatBlock'!=_0x2e7adb['type']||!_0x5c7b37||'setTableColumnHeader'!=_0x5c7b37['commandName'])return;const _0x5006b3=_0x481363['mapper']['markerNameToElements'](_0x273601['markerName']);if(_0x5006b3){for(const _0x49019b of _0x5006b3)_0x481363['writer']['removeClass']('ck-suggestion-marker-'+_0xa2b95,_0x49019b),_0x481363['writer']['removeClass']('ck-suggestion-marker--active',_0x49019b),_0x481363['writer']['removeAttribute']('data-suggestion',_0x49019b),_0x481363['mapper']['unbindElementFromMarkerName'](_0x49019b,_0x273601['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x466c40=this['editor'],_0xd00306=_0x466c40['locale'];function _0x132111(_0x3d25df){return{'type':'format','content':o(_0xd00306,'*Format:*\x20%0',_0x3d25df)};}_0x466c40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44ecf2=>{if('formatBlock'!=_0x44ecf2['type'])return;const {data:_0x36708f}=_0x44ecf2;if(_0x36708f){if('setTableRowHeader'==_0x36708f['commandName']){const _0x3d063c=_0x36708f['commandParams'][0x0]['forceValue'];return _0x132111(o(_0xd00306,_0x3d063c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x36708f['commandName']){const _0x32c27f=_0x36708f['commandParams'][0x0]['forceValue'];return _0x132111(o(_0xd00306,_0x32c27f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2f8bf3=>[_0x2f8bf3,null]));class It extends _0x1c9f3d{static get['requires'](){return[jt];}['afterInit'](){const _0x11676e=this['editor'];if(!_0x11676e['plugins']['has']('TableClipboard'))return;const _0x4e8fc0=_0x11676e['plugins']['get']('TrackChangesEditing'),_0x2d402b=_0x11676e['plugins']['get']('TableUtils'),_0x53351a=_0x11676e['plugins']['get'](jt),_0x189259=_0x11676e['plugins']['get']('TableClipboard');_0x53351a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x11676e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x11676e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2b8a8c=null;_0x11676e['model']['on']('insertContent',(_0x332a8f,_0x4267c7)=>{const [_0x455b49,_0xd143be]=_0x4267c7,_0x31d33b=_0x4267c7[_0x4267c7['length']-0x1];_0x31d33b&&_0x31d33b['forceDefaultExecution']||_0x4e8fc0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x34108a,_0x55f27a,_0xac81ef,_0x443b42,_0x37e7ed){if(_0x55f27a&&!_0x55f27a['is']('documentSelection'))return!0x1;const _0x4b04ed=_0x37e7ed['getTableIfOnlyTableInContent'](_0x34108a,_0xac81ef);if(!_0x4b04ed||!he(_0x4b04ed,void 0x0,_0x443b42))return!0x1;const _0x18dab5=_0x443b42['getSelectionAffectedTableCells'](_0xac81ef['document']['selection']);if(!_0x18dab5['length'])return!0x1;const _0x27d245=_0x18dab5[0x0]['findAncestor']('table'),_0x5e02e8=_0x443b42['getRowIndexes'](_0x18dab5),_0x5910fd=_0x443b42['getColumnIndexes'](_0x18dab5),_0x392288={'startRow':_0x5e02e8['first'],'endRow':_0x5e02e8['last'],'startColumn':_0x5910fd['first'],'endColumn':_0x5910fd['last']};return 0x1==_0x18dab5['length']&&(_0x392288['endRow']+=_0x443b42['getRows'](_0x4b04ed)-0x1,_0x392288['endColumn']+=_0x443b42['getColumns'](_0x4b04ed)-0x1),he(_0x27d245,_0x392288,_0x443b42);}(_0x455b49,_0xd143be,_0x11676e['model'],_0x2d402b,_0x189259)&&(_0x332a8f['stop'](),_0x2b8a8c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x11676e['model']['change'](()=>{_0x11676e['model']['insertContent'](_0x4267c7[0x0],_0x4267c7[0x1],_0x4267c7[0x2],{'forceDefaultExecution':!0x0});const _0x548401=_0x7b6b31(),{rowInsertionRanges:_0x54ae,columnInsertionRanges:_0x1a311c,insertionRanges:_0x25e081,deletionRanges:_0x38de13,cells:_0x401c99}=_0x2b8a8c;_0x54ae['length']&&_0x4e8fc0['markMultiRangeInsertion'](_0x54ae,'tablePasteRow',{'tablePasteChainId':_0x548401}),_0x1a311c['length']&&_0x4e8fc0['markMultiRangeInsertion'](_0x1a311c,'tablePasteColumn',{'tablePasteChainId':_0x548401}),_0x25e081['length']&&(_0x4e8fc0['markMultiRangeInsertion'](_0x25e081,'tablePaste',{'tablePasteChainId':_0x548401,'skipNestingCheck':!0x0}),_0x25e081['forEach'](_0x29039a=>_0x29039a['detach']?.())),_0x38de13['length']&&(_0x4e8fc0['markMultiRangeDeletion'](_0x38de13,'tablePaste',{'tablePasteChainId':_0x548401,'skipNestingCheck':!0x0}),_0x38de13['forEach'](_0x2be507=>_0x2be507['detach']?.()));const _0x2b508d=_0x4e8fc0['markMultiRangeBlockFormat'](_0x401c99['map'](({element:_0x4331fb})=>_0x4331fb),{'formatGroupId':_0x7b6b31()},[],'tablePasteCell',{'tablePasteChainId':_0x548401});if(_0x2b508d){const _0x55619c=_0x2b508d['getMarkers'](),_0x852aa4=[];for(const {element:_0x3dc938,attributes:_0x1dfcf8}of _0x401c99){if(!_0x1dfcf8)continue;const _0x2eb5ba=_0x11676e['model']['createRangeOn'](_0x3dc938),_0x4fd0d8=_0x55619c['find'](_0x5e7136=>_0x5e7136['getRange']()['isEqual'](_0x2eb5ba));_0x4fd0d8&&_0x852aa4['push']([_0x4fd0d8['name'],_0x1dfcf8]);}_0x852aa4['length']&&_0x2b508d['setAttribute']('markerAttributes',Object['fromEntries'](_0x852aa4));}_0x2b8a8c=null;}));},{'priority':_0x2c04bb['high']+0xa}),_0x11676e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xdce503,_0x5b3295)=>{const [_0x3d360c,_0x16257a,,_0x3bf666]=_0x5b3295;if(!_0x2b8a8c)return;_0xdce503['stop']();const _0x39d451=_0x3d360c['cell'],_0x5e8d86=_0x16257a,_0x334b4d=Pe(_0x39d451),_0x46e7fa=Pe(_0x5e8d86);_0xdce503['return']=_0x39d451;let _0x24d365=null,_0xf82b86=null;if(_0x46e7fa||_0x334b4d){if(_0x334b4d&&!_0x46e7fa){_0x3bf666['remove'](_0x39d451['getChild'](0x0));for(const _0x432e16 of Array['from'](_0x5e8d86['getChildren']()))_0x3bf666['insert'](_0x432e16,_0x39d451,'end');const _0x554f9d=_0x2b8a8c['rowInsertionIndexes']['includes'](_0x3d360c['row']),_0x519b9a=_0x2b8a8c['columnInsertionIndexes']['includes'](_0x3d360c['column']);_0x554f9d||_0x519b9a||(_0x24d365=_0x45d820['fromRange'](_0x3bf666['createRangeIn'](_0x39d451)));}else _0x46e7fa&&!_0x334b4d&&(_0xf82b86=_0x3bf666['createRangeIn'](_0x39d451));}else{const _0x1d7fcf=_0x3bf666['createElement']('tableCellSuggestion'),_0xe5c7d7=_0x3bf666['createElement']('tableCellSuggestion');_0x3bf666['wrap'](_0x3bf666['createRangeIn'](_0x39d451),_0xe5c7d7),_0x3bf666['insert'](_0x1d7fcf,_0x39d451,0x0);for(const _0x5f134e of Array['from'](_0x5e8d86['getChildren']()))_0x3bf666['insert'](_0x5f134e,_0x1d7fcf,'end');_0x24d365=_0x45d820['fromRange'](_0x3bf666['createRangeOn'](_0x1d7fcf)),_0xf82b86=_0x45d820['fromRange'](_0x3bf666['createRangeOn'](_0xe5c7d7));}const _0x48719b=Array['from'](_0x5e8d86['getAttributes']())['filter'](([_0x58241f])=>ge['includes'](_0x58241f));_0x2b8a8c['cells']['push']({'element':_0x39d451,'attributes':_0x48719b['length']?Object['fromEntries'](_0x48719b):null}),_0x24d365&&_0x2b8a8c['insertionRanges']['push'](_0x24d365),_0xf82b86&&_0x2b8a8c['deletionRanges']['push'](_0xf82b86);},{'priority':'high'}),_0x2d402b['on']('insertColumns',(_0x37e0bc,_0x3fe6d4)=>{const [_0xeb8c49,_0x17395d={}]=_0x3fe6d4;if(!_0x2b8a8c)return;const _0x34ede5=_0x17395d['at']||0x0,_0x1e0e0a=_0x17395d['columns']||0x1;_0x2b8a8c['columnInsertionIndexes']=new Array(_0x1e0e0a)['fill'](_0x34ede5)['map']((_0x3914a6,_0x1ed92f)=>_0x3914a6+_0x1ed92f);for(const {cell:_0x905ba4}of _0x2d402b['createTableWalker'](_0xeb8c49,{'startColumn':_0x34ede5,'endColumn':_0x34ede5+_0x1e0e0a-0x1}))_0x2b8a8c['columnInsertionRanges']['push'](_0x11676e['model']['createRangeOn'](_0x905ba4));},{'priority':'low'}),_0x2d402b['on']('insertRows',(_0x4e0887,_0x586e6e)=>{const [_0x4debd1,_0x51e36a={}]=_0x586e6e;if(!_0x2b8a8c)return;const _0x45ccee=_0x51e36a['at']||0x0,_0x53ef53=_0x51e36a['rows']||0x1;_0x2b8a8c['rowInsertionIndexes']=new Array(_0x53ef53)['fill'](_0x45ccee)['map']((_0x345521,_0x4fbb7e)=>_0x345521+_0x4fbb7e);for(const {cell:_0x1bed04}of _0x2d402b['createTableWalker'](_0x4debd1,{'startRow':_0x45ccee,'endRow':_0x45ccee+_0x53ef53-0x1}))_0x2b8a8c['rowInsertionRanges']['push'](_0x11676e['model']['createRangeOn'](_0x1bed04));},{'priority':'low'}),_0x4e8fc0['descriptionFactory']['registerDescriptionCallback'](_0x61c413=>{if(_0x61c413['subType']&&_0x61c413['subType']['startsWith']('tablePaste'))return _0x61c413['previous']?{}:{'type':'insertion','content':o(_0x11676e['locale'],'*Replace\x20table\x20cells*')};});const _0x5ca457=()=>!0x1;for(const _0xceec43 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('insertion',_0xceec43,'join',_0x5ca457),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('deletion',_0xceec43,'join',_0x5ca457),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xceec43,'join',_0x5ca457);_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5ca457),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x12a257,_0x21114b,_0x527022)=>{const _0x555994=_0x12a257['map'](_0x284aae=>_0x284aae['getContainedElement']())['filter'](_0x1d9030=>_0x1d9030),_0x4956e1=new Map(_0x555994['map'](_0x22395f=>[_0x22395f,null]));if(_0x2b8a8c){for(const {element:_0x379fa8,attributes:_0x5668d0}of _0x2b8a8c['cells'])_0x5668d0&&_0x4956e1['set'](_0x379fa8,_0x5668d0);}else{if(_0x527022&&_0x527022['markerAttributes'])for(const [_0x52921f,_0x355d07]of Object['entries'](_0x527022['markerAttributes'])){const _0x173b54=_0x11676e['model']['markers']['get'](_0x52921f),_0x17420f=_0x173b54?_0x173b54['getRange']()['getContainedElement']():null;_0x17420f&&_0x4956e1['set'](_0x17420f,_0x355d07);}}_0x11676e['model']['change'](_0x298b8b=>{for(const [_0x4b673f,_0x4980b4]of _0x4956e1)_0x298b8b['setAttributes']({...Ce,..._0x4980b4},_0x4b673f);});});const _0x159b0b=(_0xcce6a3,_0x357b68)=>{_0x4e8fc0['_suggestionFactory']['registerCustomCallback'](_0xcce6a3,'tablePaste',_0x357b68,(_0x39afaa,_0x29182b,_0x4c4069)=>{_0x11676e['model']['change'](_0x5475d9=>{const _0x36d14c=[];for(const _0x169282 of _0x39afaa){const _0x2e6f5a=_0x169282['start']['nodeAfter'];_0x2e6f5a['is']('element','tableCellSuggestion')&&_0x36d14c['push'](_0x2e6f5a);}_0x4e8fc0['_suggestionFactory']['getSuggestionCallback'](_0xcce6a3,null,_0x357b68)(_0x39afaa,_0x29182b,_0x4c4069);for(const _0x3384fc of _0x36d14c)'$graveyard'!=_0x3384fc['root']['rootName']&&_0x5475d9['unwrap'](_0x3384fc);});});};_0x159b0b('insertion','accept'),_0x159b0b('insertion','discard'),_0x159b0b('deletion','accept'),_0x159b0b('deletion','discard'),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3604dc=>{const _0xa33e0c=_0x3604dc['map'](_0x33a8b6=>_0x33a8b6['getContainedElement']()),_0x3039a5=_0xa33e0c[0x0]['findAncestor']('table'),{minRow:_0x4c9e12,maxRow:_0x22e0ac}=_0x53351a['_getCoordsForCells'](_0xa33e0c);_0x2d402b['removeRows'](_0x3039a5,{'at':_0x4c9e12,'rows':_0x22e0ac-_0x4c9e12+0x1});}),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1c576a=>{const _0x22ffae=_0x1c576a['map'](_0x50f979=>_0x50f979['getContainedElement']()),_0x5b70e9=_0x22ffae[0x0]['findAncestor']('table'),{minColumn:_0x2b8332,maxColumn:_0x490674}=_0x53351a['_getCoordsForCells'](_0x22ffae);_0x2d402b['removeColumns'](_0x5b70e9,{'at':_0x2b8332,'columns':_0x490674-_0x2b8332+0x1});});const _0xf34dcd=(_0x271479,_0x28fb65)=>{if(!_0x28fb65['subType']||!_0x28fb65['subType']['startsWith']('tablePaste'))return;const _0x5e0b4f=_0x28fb65['attributes']['tablePasteChainId'],_0x5df761=_0x4e8fc0['getSuggestions']()['filter'](_0x35352f=>_0x35352f['isInContent']&&_0x35352f['attributes']&&_0x35352f['attributes']['tablePasteChainId']==_0x5e0b4f);_0x5df761['length']&&_0x28fb65['getAllAdjacentSuggestions']()['length']!=_0x5df761['length']&&_0x5df761['reduce']((_0x86f92c,_0x16332d)=>(_0x86f92c['next']=_0x16332d,_0x16332d['previous']=_0x86f92c,_0x16332d));};function _0x467373(_0x42c70d,_0x5618ca=!0x0){const {id:_0x3a8b6d}=_0x4e8fc0['_splitMarkerName'](_0x42c70d['markerName']),_0x21cfee=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1c58fd=_0x4e8fc0['activeMarkers']['includes'](_0x42c70d['markerName']);return _0x1c58fd&&_0x21cfee['push']('ck-suggestion-marker--active'),{'classes':_0x21cfee,'attributes':{'data-suggestion':_0x3a8b6d},'priority':_0x1c58fd&&_0x5618ca?0xbc2:0xbb8};}_0x4e8fc0['on']('suggestionLoaded',_0xf34dcd,{'priority':'high'}),_0x4e8fc0['on']('suggestionUnloaded',_0xf34dcd,{'priority':'high'}),_0x11676e['model']['document']['registerPostFixer'](()=>{let _0x42a808=!0x1;const _0x1f38b3=Array['from'](_0x11676e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1319b3,data:_0x3127f5}of _0x1f38b3){const {group:_0x43433c,type:_0x42c00c,id:_0x4dbf91}=_0x4e8fc0['_splitMarkerName'](_0x1319b3);if('suggestion'!=_0x43433c||'deletion'!=_0x42c00c||_0x3127f5['oldRange'])continue;if(!_0x4e8fc0['hasSuggestion'](_0x4dbf91))continue;const _0x16c037=_0x4e8fc0['getSuggestion'](_0x4dbf91)['getRanges'](),_0xdd8a02=_0x11676e['plugins']['get']('Users')['me'];for(const _0x30b9fc of _0x4e8fc0['getSuggestions']()){if(!_0x30b9fc['isInContent']||_0x30b9fc['author']!=_0xdd8a02)continue;if('formatBlock'!=_0x30b9fc['type']||'tablePasteCell'!=_0x30b9fc['subType'])continue;if(_0x30b9fc['getRanges']()['every'](_0xdc8b5=>_0x16c037['some'](_0x1416a9=>_0x1416a9['containsRange'](_0xdc8b5,!0x0)))){for(const _0x137965 of _0x30b9fc['getAllAdjacentSuggestions']())_0x137965['isInContent']&&(_0x137965['discard'](),_0x42a808=!0x0);}}}return _0x42a808;}),_0x11676e['model']['document']['registerPostFixer'](_0x107ad9=>{const _0x3687bf=_0x11676e['commands']['get']('redo');if(!_0x3687bf||!_0x3687bf['_createdBatches']['has'](_0x107ad9['batch']))return!0x1;let _0xd15d58=!0x1;const _0x53897c=_0x11676e['plugins']['get']('Users')['me'],_0x36088b=_0x11676e['model']['document']['differ']['getChanges'](),_0x49e718=Array['from'](_0x11676e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xc4fb02,data:_0x270751})=>{const {group:_0x4dadcf,subType:_0x533092,authorId:_0x1f90f1}=_0x4e8fc0['_splitMarkerName'](_0xc4fb02);return'suggestion'==_0x4dadcf&&'tablePaste'==_0x533092&&_0x1f90f1==_0x53897c['id']&&!_0x270751['oldRange'];});for(const _0x3073cf of _0x36088b){if('insert'!=_0x3073cf['type']||'tableCellSuggestion'!=_0x3073cf['name']||0x1!=_0x3073cf['length'])continue;const _0x555e61=_0x107ad9['createRange'](_0x3073cf['position'],_0x3073cf['position']['getShiftedBy'](0x1));if(!_0x49e718['find'](({data:_0x44ef24})=>_0x44ef24['newRange']['isEqual'](_0x555e61))){for(const {name:_0x31d690,data:_0x1bb115}of _0x49e718)if(_0x555e61['containsRange'](_0x1bb115['newRange'])){_0x107ad9['updateMarker'](_0x31d690,{'range':_0x555e61}),_0xd15d58=!0x0;break;}}}return _0xd15d58;}),_0x11676e['model']['document']['registerPostFixer'](_0x2e48e3=>{let _0x5cbce9=!0x1;const _0x7c23f5=_0x11676e['plugins']['get']('Users')['me'],_0x32ac6a=_0x4e8fc0['getSuggestions']()['filter'](_0x3ab53b=>_0x3ab53b['isInContent']&&_0x3ab53b['author']==_0x7c23f5),_0x17ddc9=new Set(),_0x2ac4cd=new Set();for(const _0x2f80a0 of _0x32ac6a)if('tablePaste'==_0x2f80a0['subType'])for(const _0x476434 of _0x2f80a0['getMarkers']()){const _0x23c2c9=_0x476434['getRange']()['getContainedElement']();if(_0x23c2c9){if(_0x23c2c9['is']('element','tableCellSuggestion')&&Pe(_0x23c2c9)){_0x2f80a0['removeMarker'](_0x476434['name']),_0x17ddc9['add'](_0x23c2c9),_0x5cbce9=!0x0;const _0x454563=_0x23c2c9['nextSibling'],_0x4c2141=_0x23c2c9['previousSibling'],_0x46d9ce=_0x454563&&_0x454563['is']('element','tableCellSuggestion'),_0x143e51=_0x4c2141&&_0x4c2141['is']('element','tableCellSuggestion');_0x46d9ce&&!_0x17ddc9['has'](_0x454563)&&_0x2ac4cd['add'](_0x454563),_0x143e51&&!_0x17ddc9['has'](_0x4c2141)&&_0x2ac4cd['add'](_0x4c2141);}else _0x23c2c9['is']('element','paragraph')&&_0x23c2c9['isEmpty']&&(_0x2f80a0['removeMarker'](_0x476434['name']),_0x5cbce9=!0x0);}}else{if('tablePasteCell'==_0x2f80a0['subType']){if(!_0x2f80a0['attributes']||!_0x2f80a0['attributes']['tablePasteChainId'])continue;const _0xe81ee5=_0x2f80a0['attributes']['markerAttributes'];if(_0xe81ee5&&Object['keys'](_0xe81ee5)['length'])continue;const _0x1cc20d=_0x2f80a0['attributes']['tablePasteChainId'];let _0x5ca3c4=!0x0,_0x4bb6b0=!0x0;for(const _0x3e659e of _0x32ac6a)if(_0x3e659e['subType']&&_0x3e659e['subType']['startsWith']('tablePaste')){if(!_0x3e659e['attributes']['tablePasteChainId']){_0x4bb6b0=!0x1;break;}if(_0x3e659e['id']!=_0x2f80a0['id']&&_0x3e659e['attributes']['tablePasteChainId']==_0x1cc20d){_0x5ca3c4=!0x1;break;}}_0x4bb6b0&&_0x5ca3c4&&(_0x2f80a0['removeMarkers'](),_0x5cbce9=!0x0);}}for(const _0x3acd70 of _0x17ddc9)_0x2e48e3['remove'](_0x3acd70);for(const _0x75695c of _0x2ac4cd)_0x2e48e3['unwrap'](_0x75695c);return _0x5cbce9;}),_0x11676e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x55a6ea,_0x5de53b)=>_0x467373(_0x55a6ea),'converterPriority':'high'}),_0x11676e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x35ac41,_0x1411d3)=>_0x1411d3['options']['showSuggestionHighlights']?_0x467373(_0x35ac41,!0x1):null,'converterPriority':'high'});const _0x1b3be2=_0x11676e['editing']['view'];this['listenTo'](_0x1b3be2['document'],'clipboardOutput',(_0x15cc16,_0x38fa57)=>{const _0x421757=[];for(const _0x39a1c3 of _0x1b3be2['createRangeIn'](_0x38fa57['content'])['getItems']())_0x39a1c3['is']('element','suggestion-td')&&_0x421757['push'](_0x39a1c3);_0x1b3be2['change'](_0x61c72c=>{for(const _0x4bbaa6 of _0x421757)_0x61c72c['move'](_0x61c72c['createRangeIn'](_0x4bbaa6),_0x61c72c['createPositionBefore'](_0x4bbaa6)),_0x61c72c['remove'](_0x4bbaa6);});});}}function Pe(_0x3cae71){if(_0x3cae71['isEmpty'])return!0x0;const _0x18c6c1=_0x3cae71['getChild'](0x0);return _0x18c6c1['is']('element','paragraph')&&_0x18c6c1['isEmpty'];}function he(_0x3f6e01,_0x38fd7f={},_0x8e6da1){for(const {isAnchor:_0x450d50,cellHeight:_0x34cfbe,cellWidth:_0x157afe}of _0x8e6da1['createTableWalker'](_0x3f6e01,{'includeAllSlots':!0x0,..._0x38fd7f}))if(!_0x450d50||0x1!=_0x34cfbe||0x1!=_0x157afe)return!0x1;return!0x0;}class vt extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x10d10b=this['editor']['plugins']['get']('TrackChangesEditing');_0x10d10b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x10d10b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x10d10b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x10d10b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x10d10b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x10d10b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x7dbe58,_0x3b4aed){const _0x5cea50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11952b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5927ad=_0x3b4aed['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3d9299=_0x11952b['getColumnGroupElement'](_0x5927ad);let _0x42836b=_0x3d9299?_0x11952b['getTableColumnsWidths'](_0x3d9299):null,_0x2a9637=_0x5927ad['getAttribute']('tableWidth')||null;const _0x556bb0=_0x3b4aed['tableWidth']||_0x2a9637,_0x2c723d=_0x3b4aed['columnWidths']||_0x42836b,_0x41dd2d=this['editor']['plugins']['get']('Users')['me'];for(const _0x35b52f of _0x5cea50['getSuggestions']()){const _0x57c7f4=_0x35b52f['getContainedElement']();if('resizeTable'===_0x35b52f['subType']&&_0x57c7f4===_0x5927ad){_0x35b52f['author']!==_0x41dd2d&&_0x35b52f['discard']();const _0x138056=_0x35b52f['data']['commandParams'];_0x2a9637=_0x138056[0x0]['tableWidth'],_0x42836b=_0x138056[0x0]['columnWidths'];break;}}_0x7dbe58({'table':_0x5927ad,'tableWidth':_0x556bb0,'columnWidths':_0x2c723d}),_0x5cea50['markBlockFormat'](_0x5927ad,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2a9637,'columnWidths':_0x42836b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa98a0d){if('formatBlock'!=_0xa98a0d['type']&&'formatInline'!=_0xa98a0d['type'])return;const {data:_0xa6b1f9}=_0xa98a0d;if(_0xa6b1f9&&'resizeTable'===_0xa6b1f9['formatGroupId']){const _0x1b2012='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1b2012)};}}}class Ct extends _0x1c9f3d{['afterInit'](){const _0x489bee=this['editor'];_0x489bee['plugins']['has']('Template')&&_0x489bee['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1c9f3d{['afterInit'](){const _0x3a019e=this['editor'];if(!_0x3a019e['commands']['get']('insertTableOfContents'))return;_0x3a019e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x23e247=_0x3a019e['plugins']['get']('TrackChangesEditing'),_0x32c9b7=_0x3a019e['locale'];_0x23e247['descriptionFactory']['registerElementLabel']('tableOfContents',_0x23488a=>o(_0x32c9b7,'ELEMENT_TABLE_OF_CONTENTS',_0x23488a));}}class Dt extends _0x1c9f3d{['afterInit'](){const _0x4cd553=this['editor'];if(!_0x4cd553['plugins']['has']('Title'))return;const _0x3d7e8e=_0x4cd553['plugins']['get']('TrackChangesEditing');_0x3d7e8e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4cd553['locale'],'ELEMENT_TITLE')),_0x4cd553['model']['document']['registerPostFixer'](_0x3be372=>{let _0x3cadba=!0x1;const _0x4a8535=Array['from'](_0x4cd553['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xeb45b0,data:_0x13799b}of _0x4a8535){const {group:_0x56eeba}=_0x3d7e8e['_splitMarkerName'](_0xeb45b0);if('suggestion'!==_0x56eeba||!_0x13799b['newRange'])continue;const _0x4e8f90=_0x13799b['newRange'],_0x508dcd=_0x4e8f90['end']['nodeBefore'];if(!_0x508dcd||!_0x508dcd['is']('element','title-content'))continue;if(!_0x4e8f90['start']['isTouching'](_0x4e8f90['end']))continue;const _0x49b03a=_0x4cd553['model']['schema']['getNearestSelectionRange'](_0x4e8f90['end'],'forward');if(_0x49b03a&&_0x49b03a['isCollapsed']){const _0x5c6c39=_0x3be372['createRange'](_0x4e8f90['start'],_0x49b03a['start']);_0x5c6c39['isEqual'](_0x4e8f90)||(_0x3be372['updateMarker'](_0xeb45b0,{'range':_0x5c6c39}),_0x3cadba=!0x0);}_0x3cadba||(_0x3be372['removeMarker'](_0xeb45b0),_0x3cadba=!0x0);}return _0x3cadba;});}}class Nt extends _0x1c9f3d{['afterInit'](){const _0x1d6099=this['editor'],_0x55c207=_0x1d6099['plugins']['get']('TrackChangesEditing');_0x1d6099['plugins']['has']('UndoEditing')&&(_0x55c207['enableCommand']('undo'),_0x55c207['enableCommand']('redo'));}}class Mt extends _0x1c9f3d{static get['requires'](){return[jt];}['afterInit'](){const _0x47f80a=this['editor'];if(!_0x47f80a['plugins']['has']('TableCaptionEditing'))return;_0x47f80a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1c9f3d{['tableProperties'];['tableCellProperties'];constructor(_0x3bf8db){super(_0x3bf8db),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x152d27=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4df879 of this['tableProperties'])_0x152d27['enableCommand'](_0x4df879,(_0x10446e,_0x4590a5)=>{const _0x3b932c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4df879,[_0x3b932c],this['tableProperties'],'tableProperties',_0x10446e,_0x4590a5);});_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x152d27['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5dedff,_0x27de23)=>this['handleDiscardAction'](this['tableProperties'],_0x5dedff,_0x27de23)),_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x46af42 of this['tableCellProperties'])_0x152d27['enableCommand'](_0x46af42,(_0x3c98f4,_0x211606)=>{const _0x16e7f8=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x46af42,_0x16e7f8,this['tableCellProperties'],'tableCellProperties',_0x3c98f4,_0x211606);});_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x152d27['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x29b6c2,_0x22ba54)=>this['handleDiscardAction'](this['tableCellProperties'],_0x29b6c2,_0x22ba54)),_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x152d27['descriptionFactory']['registerDescriptionCallback'](_0x8d3045=>this['handleSuggestionDescription'](_0x8d3045));}['_handlePropertyChange'](_0x3c80d1,_0x24ddcd,_0x3b5a67,_0xb2eb1d,_0x40f409,_0x5b2ff7){const _0x28d2a5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b2ff7['batch'],()=>{for(const _0x550f16 of _0x24ddcd){if(this['_getSuggestion'](_0x550f16,_0xb2eb1d))_0x40f409(_0x5b2ff7);else{const _0x41fd89={};for(const _0x49eae7 of _0x3b5a67){const _0xfe5fb9=_0x550f16['getAttribute'](_0x49eae7);void 0x0!==_0xfe5fb9&&(_0x41fd89[_0x49eae7]=_0xfe5fb9);}_0x40f409(_0x5b2ff7),_0x28d2a5['markBlockFormat'](_0x550f16,{'commandParams':[_0x41fd89]},[],_0xb2eb1d);}}});}['handleDiscardAction'](_0x4fc2e0,_0x4a6f44,_0x1f8b60){const _0x13cc21=_0x4a6f44[0x0]['start']['nodeAfter'],_0x318c6d=_0x1f8b60['commandParams'][0x0];this['editor']['model']['change'](_0x4224df=>{for(const _0x3f7692 of _0x4fc2e0)void 0x0!==_0x318c6d[_0x3f7692]?_0x4224df['setAttribute'](_0x3f7692,_0x318c6d[_0x3f7692],_0x13cc21):_0x4224df['removeAttribute'](_0x3f7692,_0x13cc21);});}['handleSuggestionDescription'](_0x8366ad){if(_0x8366ad['data'])switch(_0x8366ad['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'](_0x5bafd2,_0xe2ce33){const _0x590937=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x43a9e5 of _0x590937['getSuggestions']({'skipNotAttached':!0x0})){const _0x366ac0=_0x43a9e5['getContainedElement']();if(_0x43a9e5['subType']===_0xe2ce33&&_0x366ac0===_0x5bafd2)return _0x43a9e5;}return null;}}const m='$elementName';class p extends _0x1c9f3d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x505203,_0x5194b1,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,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x335d2f){function _0x40c2f6(_0x3c196b){return _0x3c196b['map'](_0x513f8b=>String['fromCharCode'](_0x513f8b))['join']('');}super(_0x335d2f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3bb5e6,_0x47676c,_0x32406d,_0xc673d8)=>{this['_model']['change'](()=>{for(const _0xa4a9db of[..._0xc673d8,..._0x32406d])this['_model']['markers']['has'](_0xa4a9db)&&_0x335d2f['editing']['reconvertMarker'](_0xa4a9db);});}),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']=_0x335d2f['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(),_0x335d2f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x335d2f['config']['get']('trackChanges.trackFormatChanges'),_0x335d2f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x335d2f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x335d2f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x40c2f6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x40c2f6([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x30]);}['init'](){const _0xdb6fd9=this['editor'],_0x3c83b5=(_0x3a6450,_0x301c0b)=>{if('attribute'!=_0x3a6450)return'ck-suggestion-marker-'+_0x3a6450;const _0x3b05fb=_0x301c0b['split']('|')[0x0];return this['_isBlockAttribute'](_0x3b05fb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xdb6fd9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xe94063=>{const {id:_0x339d26,type:_0x540fe9,subType:_0x1e3d78}=this['_splitMarkerName'](_0xe94063['markerName']),_0x4a2549=['ck-suggestion-marker',_0x3c83b5(_0x540fe9,_0x1e3d78)];let _0x5364b3=0xbb8;return this['activeMarkers']['includes'](_0xe94063['markerName'])&&(_0x4a2549['push']('ck-suggestion-marker--active'),_0x5364b3=0xbc2),'deletion'==_0x540fe9&&(_0x5364b3+=0x5),{'classes':_0x4a2549,'attributes':{'data-suggestion':_0x339d26},'priority':_0x5364b3};}}),_0xdb6fd9['conversion']['for']('dataDowncast')['add'](_0x5e41fd=>{_0x5e41fd['on']('addMarker:suggestion',(_0x30010f,_0x448063,_0x52ab31)=>{if(!_0x52ab31['options']['showSuggestionHighlights'])return;const _0x3337b8=_0x448063['item'];if(!_0x3337b8)return;const _0x1c3b75=_0x52ab31['mapper']['toViewElement'](_0x3337b8);_0xdb6fd9['model']['schema']['isObject'](_0x3337b8)&&_0x1c3b75&&!_0x1c3b75['getCustomProperty']('widget')&&_0x1c3b75['is']('containerElement')&&_0x13eccc(_0x1c3b75,_0x52ab31['writer']);},{'priority':'high'});}),_0xdb6fd9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3117f2,_0x27846e)=>{if(!_0x27846e['options']['showSuggestionHighlights'])return null;const {type:_0x526cff,subType:_0xbab6f5}=this['_splitMarkerName'](_0x3117f2['markerName']);return{'classes':['ck-suggestion-marker',_0x3c83b5(_0x526cff,_0xbab6f5)],'priority':0xbb8};}});const _0x410ed6=({showActiveMarkers:_0x51a354=!0x0,isAttributeSuggestion:_0x397aad=!0x1}={})=>(_0xaae091,_0x24033c,_0x3e20d1)=>{if(!_0x24033c['item'])return;const {id:_0x2fbf6f}=this['_splitMarkerName'](_0x24033c['markerName']);if(_0x397aad){const _0x1eb3b4=this['_suggestions']['get'](_0x2fbf6f),_0x31ea54=this['_getAttributeKey'](_0x1eb3b4);if(!this['_isBlockAttribute'](_0x31ea54))return;}if(_0x24033c['item']['is']('selection'))return void _0x3e20d1['consumable']['consume'](_0x24033c['item'],_0xaae091['name']);const _0x1340eb=_0x3e20d1['mapper']['toViewElement'](_0x24033c['item']);if(_0x24033c['item']['is']('element')&&_0xdb6fd9['model']['schema']['isBlock'](_0x24033c['item'])&&!_0x1340eb['getCustomProperty']('addHighlight')){_0x3e20d1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1340eb),_0x3e20d1['writer']['setAttribute']('data-suggestion',_0x2fbf6f,_0x1340eb),_0x3e20d1['mapper']['bindElementToMarker'](_0x1340eb,_0x24033c['markerName']),_0x51a354&&(this['activeMarkers']['includes'](_0x24033c['markerName'])?_0x3e20d1['writer']['addClass']('ck-suggestion-marker--active',_0x1340eb):_0x3e20d1['writer']['removeClass']('ck-suggestion-marker--active',_0x1340eb));for(const _0x7bea93 of _0xdb6fd9['model']['createRangeIn'](_0x24033c['item'])['getItems']())_0x3e20d1['consumable']['consume'](_0x7bea93,_0xaae091['name']);_0x3e20d1['consumable']['consume'](_0x24033c['item'],_0xaae091['name']);}};_0xdb6fd9['conversion']['for']('dataDowncast')['add'](_0x56f2e3=>{_0x56f2e3['on']('addMarker:suggestion:formatBlock',(_0x2c32dd,_0x2dd864,_0x1dce63)=>{_0x1dce63['options']['showSuggestionHighlights']&&_0x410ed6({'showActiveMarkers':!0x1})(_0x2c32dd,_0x2dd864,_0x1dce63);},{'priority':'highest'});}),_0xdb6fd9['conversion']['for']('dataDowncast')['add'](_0x33ac4a=>{_0x33ac4a['on']('addMarker:suggestion:attribute',(_0x395b86,_0x4af27c,_0x8ac765)=>{_0x8ac765['options']['showSuggestionHighlights']&&_0x410ed6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x395b86,_0x4af27c,_0x8ac765);},{'priority':'highest'});}),_0xdb6fd9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xe90438,_0x9c80e9)=>_0x9c80e9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xe90438['substr'](0xb)}}),_0xdb6fd9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2add16,{writer:_0x9615dc})=>{let _0x3ce07d='suggestion:'+_0x2add16['getAttribute']('suggestion-type')+':'+_0x2add16['getAttribute']('id');return _0x2add16['getAttribute']('marker-count')&&(_0x3ce07d+=':'+_0x2add16['getAttribute']('marker-count')),_0x9615dc['createElement']('$marker',{'data-name':_0x3ce07d});}}),_0xdb6fd9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xdb6fd9['conversion']['for']('editingDowncast')['add'](_0x4104ad=>{_0x4104ad['on']('addMarker:suggestion:formatBlock',_0x410ed6(),{'priority':'high'});}),_0xdb6fd9['conversion']['for']('editingDowncast')['add'](_0x555133=>{_0x555133['on']('addMarker:suggestion:attribute',_0x410ed6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xdb6fd9['conversion']['for']('editingDowncast')['add'](_0x414779=>{_0x414779['on']('removeMarker:suggestion:formatBlock',(_0x3e6d61,_0x40d426,_0x5a0c55)=>{const _0x559d98=_0x5a0c55['mapper']['markerNameToElements'](_0x40d426['markerName']);if(_0x559d98){for(const _0x5d0f63 of _0x559d98)_0x5d0f63['getCustomProperty']('addHighlight')||(_0x5a0c55['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5d0f63),_0x5a0c55['writer']['removeAttribute']('data-suggestion',_0x5d0f63),_0x5a0c55['mapper']['unbindElementFromMarkerName'](_0x5d0f63,_0x40d426['markerName']));}},{'priority':'high'});}),_0xdb6fd9['conversion']['for']('editingDowncast')['add'](_0x528a71=>{_0x528a71['on']('removeMarker:suggestion:attribute',(_0x192adb,_0x2e9e3d,_0x54f81d)=>{const _0x168b31=_0x54f81d['mapper']['markerNameToElements'](_0x2e9e3d['markerName']);if(!_0x168b31)return;const {id:_0x2bd88b}=this['_splitMarkerName'](_0x2e9e3d['markerName']),_0x5855cc=this['_suggestions']['get'](_0x2bd88b),_0x354049=this['_getAttributeKey'](_0x5855cc);if(this['_isBlockAttribute'](_0x354049)){for(const _0x35b6c5 of _0x168b31)_0x35b6c5['getCustomProperty']('addHighlight')||(_0x54f81d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x35b6c5),_0x54f81d['writer']['removeAttribute']('data-suggestion',_0x35b6c5),_0x54f81d['mapper']['unbindElementFromMarkerName'](_0x35b6c5,_0x2e9e3d['markerName']));}},{'priority':'high'});}),_0xdb6fd9['model']['document']['registerPostFixer'](_0xd9f5de=>{let _0x476b3d=!0x1;const _0x4ea963=Array['from'](_0xdb6fd9['model']['document']['differ']['getChangedMarkers']()),_0x3ac348=new Set();for(const {name:_0x5f5bdf,data:_0xe40085}of _0x4ea963){const {group:_0x5147ea,type:_0x57573c,subType:_0x49d04f,id:_0x5349ec}=this['_splitMarkerName'](_0x5f5bdf);if('suggestion'!==_0x5147ea)continue;const _0xd17830=this['_suggestions']['get'](_0x5349ec);if(null!=_0xe40085['newRange']){'formatInline'==_0x57573c&&(_0x476b3d=_0x476b3d||Et(_0xe40085['newRange'],_0x5f5bdf,_0xd9f5de,_0xdb6fd9['model']['schema']));const _0x25e13c='attribute'==_0x57573c&&this['_isBlockAttribute'](_0x49d04f['split']('|')[0x0]);if(_0xe40085['newRange']['isCollapsed']||'$graveyard'==_0xe40085['newRange']['root']['rootName']||'formatBlock'==_0x57573c&&!Ut(_0xe40085['newRange'])||_0x25e13c&&!Ut(_0xe40085['newRange'])||'deletion'==_0x57573c&&!(!Tt(_0x1e7a27=_0xe40085['newRange'])&&!function(_0x25bda8){return _0x25bda8['start']['parent']==_0x25bda8['end']['nodeBefore']&&_0x25bda8['start']['isAtEnd'];}(_0x1e7a27)))_0xd9f5de['removeMarker'](_0x5f5bdf),_0x476b3d=!0x0;else{if(!_0xd17830||!_0xd17830['isInContent'])continue;_0x3ac348['add'](_0xd17830);}}}var _0x1e7a27;return _0x3ac348['size']>0x0&&(_0x476b3d=!!this['_joinWithAdjacentSuggestions'](_0x3ac348)||_0x476b3d),_0x476b3d;}),_0xdb6fd9['model']['document']['registerPostFixer'](_0x573328=>{let _0x3ba207=!0x1;for(const _0x32e75f of _0xdb6fd9['model']['document']['differ']['getChanges']())if('insert'==_0x32e75f['type'])for(const _0x19071a of this['_suggestions']['values']()){if(_0x19071a['isMultiRange']||!_0x19071a['isInContent'])continue;const _0x9ece0a='formatBlock'==_0x19071a['type'],_0x209118=this['_getAttributeKey'](_0x19071a),_0x29e6a8=_0x209118&&this['_isBlockAttribute'](_0x209118);if(!_0x9ece0a&&!_0x29e6a8)continue;const _0x1aa758=_0x19071a['getFirstRange']();if(_0x1aa758['start']['parent']!=_0x1aa758['end']['parent']&&!_0x1aa758['end']['isAtEnd']){const _0x142d45=_0xdb6fd9['model']['createPositionAt'](_0x1aa758['start']['nodeAfter'],'end'),_0x3dd385=_0xdb6fd9['model']['createRange'](_0x1aa758['start'],_0x142d45);_0x573328['updateMarker'](_0x19071a['getFirstMarker'](),{'range':_0x3dd385}),_0x3ba207=!0x0;}}return _0x3ba207;}),_0xdb6fd9['model']['document']['registerPostFixer'](_0x2bc24f=>this['_processAttributeChanges'](_0x2bc24f)),_0xdb6fd9['model']['document']['registerPostFixer'](_0xd80696=>!_0xd80696['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xd80696)),_0xdb6fd9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xdb6fd9['model']['document']['on']('change:data',(_0x3497c0,_0xa18e8c)=>{if(!_0xa18e8c['isLocal']||_0xa18e8c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x543d27=_0xdb6fd9['model']['document']['differ']['getChanges']();if(0x0==_0x543d27['length'])return;const _0x4415bc=[],_0x1edd39=_0x543d27['filter'](_0x34f93e=>'attribute'==_0x34f93e['type']),_0x44c15b=_0x543d27['filter'](_0x1f35fa=>'insert'==_0x1f35fa['type']&&'$text'!=_0x1f35fa['name']);for(const _0x354503 of _0x1edd39)this['_isRegisteredAttribute'](_0x354503['attributeKey'])&&_0x4415bc['push']({'key':_0x354503['attributeKey'],'newValue':_0x354503['attributeNewValue'],'oldValue':_0x354503['attributeOldValue'],'range':Ot(_0x354503['range'],_0xdb6fd9['model'])});for(const _0x1334ea of _0x44c15b){if('rename'!=_0x1334ea['action']&&'refresh'!=_0x1334ea['action'])continue;const _0x5333cb=Gt(_0x1334ea['position']['nodeAfter'],_0xdb6fd9['model']),_0x1de215=_0x1334ea['before'];'rename'==_0x1334ea['action']&&_0x4415bc['push']({'key':m,'newValue':_0x1334ea['name'],'oldValue':_0x1de215['name'],'range':_0x5333cb});for(const [_0x54a0b2,_0x3cd31d]of _0x1de215['attributes']){if(!this['_isRegisteredAttribute'](_0x54a0b2))continue;const _0x1f9779=_0x1334ea['attributes']['get'](_0x54a0b2);_0x3cd31d!==_0x1f9779&&_0x4415bc['push']({'key':_0x54a0b2,'newValue':_0x1f9779,'oldValue':_0x3cd31d,'range':_0x5333cb});}for(const [_0x51266f,_0x361d82]of _0x1334ea['attributes'])this['_isRegisteredAttribute'](_0x51266f)&&(_0x1de215['attributes']['has'](_0x51266f)||_0x4415bc['push']({'key':_0x51266f,'newValue':_0x361d82,'oldValue':null,'range':_0x5333cb}));}0x0!=_0x4415bc['length']&&_0xdb6fd9['model']['enqueueChange'](_0xa18e8c,_0x3fbee6=>{const _0x4e8906=_0x7b6b31();for(const {range:_0xc73a27,key:_0x3a1639,oldValue:_0x446873,newValue:_0x303450}of _0x4415bc)this['markAttributeChange'](_0xc73a27,_0x3a1639,_0x446873,_0x303450,{'groupId':_0x4e8906});this['_reduceExistingSuggestions'](_0x3fbee6,_0x4415bc);});},{'priority':'lowest'}),_0xdb6fd9['model']['markers']['on']('update:suggestion',(_0x2b53b1,_0x131297,_0x2ab77a)=>{if(null==_0x2ab77a){const {id:_0x44f76b}=this['_splitMarkerName'](_0x131297['name']),_0x49afcd=this['_suggestions']['get'](_0x44f76b);_0x49afcd&&_0x49afcd['addMarkerName'](_0x131297['name']);}}),_0xdb6fd9['model']['document']['on']('change:data',()=>{const _0x53ccc2=Array['from'](_0xdb6fd9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2600ca=>'suggestion'===this['_splitMarkerName'](_0x2600ca['name'])['group']);if(0x0===_0x53ccc2['length'])return;_0x53ccc2['sort']((_0x52066f,_0x391254)=>{const _0x180e75=_0x52066f['data']['oldRange'],_0x5c01f8=_0x391254['data']['oldRange'];return null===_0x180e75&&null===_0x5c01f8?0x0:null===_0x180e75&&null!==_0x5c01f8?-0x1:null!==_0x180e75&&null===_0x5c01f8?0x1:_0x180e75['start']['isBefore'](_0x5c01f8['start'])?-0x1:0x1;});const _0x28e867=new Set(),_0x17146c=new Set();for(const {name:_0x5b5329,data:_0x3f3596}of _0x53ccc2){const {id:_0x389d64}=this['_splitMarkerName'](_0x5b5329);if(null===_0x3f3596['oldRange']){const _0xc30002=this['_handleNewSuggestionMarker'](_0x5b5329);_0x17146c['add'](_0xc30002);}else{const _0x169707=this['_suggestions']['get'](_0x389d64);null!==_0x3f3596['newRange']||_0x169707['isInContent']?(_0x28e867['add'](_0x169707['head']),_0x17146c['add'](_0x169707)):this['_removeSuggestion'](_0x169707);}}_0x17146c['size']>0x0&&this['_refreshSuggestionsChain'](_0x17146c);for(const _0xa36208 of _0x28e867)this['fire']('suggestionChanged',_0xa36208);}),_0xdb6fd9['model']['on']('applyOperation',(_0x346ef5,_0x5a3451)=>{const _0x34666f=_0x5a3451[0x0];if(!this['_suggestions']['size'])return;if(!_0x34666f['isDocumentOperation'])return;if(_0x34666f['batch']['isUndo']||!_0x34666f['batch']['isLocal'])return;let _0xf8592d,_0x26ab69;switch(_0x34666f['type']){case'insert':_0xf8592d=_0xdb6fd9['model']['createPositionAt'](_0x34666f['position']),_0x26ab69=_0xf8592d['getShiftedBy'](_0x34666f['howMany']);break;case'split':_0xf8592d=_0xdb6fd9['model']['createPositionAt'](_0x34666f['splitPosition']),_0x26ab69=_0xdb6fd9['model']['createPositionAt'](_0x34666f['moveTargetPosition']);break;case'move':_0xf8592d=_0xdb6fd9['model']['createPositionAt'](_0x34666f['targetPosition']),_0x26ab69=_0xf8592d['getShiftedBy'](_0x34666f['howMany']);break;default:return;}const _0x47551b=_0xdb6fd9['model']['createRange'](_0xf8592d,_0x26ab69);_0xdb6fd9['model']['change'](()=>{for(const {suggestion:_0x4301f2,meta:_0x34c26d}of this['_findSuggestions'](_0x47551b)){if(_0x4301f2['isMultiRange'])continue;if('formatInline'==_0x4301f2['type'])continue;const _0x243878=this['_getAttributeKey'](_0x4301f2);if(_0x243878&&this['_isBlockAttribute'](_0x243878)&&'split'!=_0x34666f['type'])continue;const _0x12caf6=_0x4301f2['data']&&_0x4301f2['data']['multipleBlocks'];('formatBlock'!=_0x4301f2['type']||'split'==_0x34666f['type']&&!_0x12caf6)&&(_0x34c26d['containsRangeInObject']||'insertion'==_0x4301f2['type']&&_0x34c26d['isOwn']||_0x4301f2['getFirstRange']()['containsRange'](_0x47551b)&&this['_breakSuggestionMarker'](_0x4301f2,_0xf8592d,_0x26ab69));}});},{'priority':'lowest'}),_0xdb6fd9['model']['on']('deleteContent',(_0x1bc072,_0x23013d)=>{const _0x2968d6=_0x23013d[0x0],_0x75be87=_0x23013d[0x1];if(_0x75be87&&_0x75be87['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2968d6['isCollapsed'])return;const _0x562e3d=_0xdb6fd9['model']['schema'],{start:_0x4736b9,end:_0x2b1919}=_0x2968d6['getFirstRange'](),_0x24f5c1=_0x4736b9['nodeAfter']&&_0x562e3d['isLimit'](_0x4736b9['nodeAfter'])?null:_0x562e3d['getNearestSelectionRange'](_0x4736b9,'forward'),_0x10cda9=_0x2b1919['nodeBefore']&&_0x562e3d['isLimit'](_0x2b1919['nodeBefore'])?null:_0x562e3d['getNearestSelectionRange'](_0x2b1919,'backward'),_0x28d8e2=_0xdb6fd9['model']['createRange'](_0x24f5c1?_0x24f5c1['start']:_0x4736b9,_0x10cda9?_0x10cda9['end']:_0x2b1919);_0xdb6fd9['model']['change'](_0x577c66=>{this['markDeletion'](_0x28d8e2);const _0x361e69=_0xdb6fd9['model']['schema']['getNearestSelectionRange'](_0x28d8e2['start']);_0x2968d6['is']('documentSelection')?_0x577c66['setSelection'](_0x361e69):_0x2968d6['setTo'](_0x361e69);}),_0x1bc072['stop']();},{'priority':_0x2c04bb['normal']+0xa}),_0xdb6fd9['model']['on']('insertContent',(_0x53ff60,_0x114c10)=>{const _0x39b1b=_0x114c10[_0x114c10['length']-0x1];_0x39b1b&&_0x39b1b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xdb6fd9['model']['change'](()=>{let _0x12c384=_0xdb6fd9['model']['insertContent'](_0x114c10[0x0],_0x114c10[0x1],_0x114c10[0x2],{'forceDefaultExecution':!0x0});if(!_0x12c384)return;_0x53ff60['return']=_0x12c384['clone']();const _0x4d9565=_0x12c384['end']['nodeBefore'],_0x4df755=_0xdb6fd9['model']['schema'];_0x4d9565&&_0x4df755['isBlock'](_0x4d9565)&&!_0x4df755['isObject'](_0x4d9565)&&(_0x12c384=_0xdb6fd9['model']['createRange'](_0x12c384['start'],_0xdb6fd9['model']['createPositionAt'](_0x4d9565,'end'))),this['markInsertion'](_0x12c384);}),_0x53ff60['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x11d8e9=new $(_0xdb6fd9,this['_suggestions']);_0xdb6fd9['commands']['add']('acceptSuggestion',_0x11d8e9),this['enableCommand']('acceptSuggestion');const _0x416615=new B(_0xdb6fd9,this['_suggestions']);_0xdb6fd9['commands']['add']('discardSuggestion',_0x416615),this['enableCommand']('discardSuggestion'),_0xdb6fd9['commands']['add']('acceptAllSuggestions',new x(_0xdb6fd9,_0x11d8e9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xdb6fd9['commands']['add']('discardAllSuggestions',new x(_0xdb6fd9,_0x416615,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xdb6fd9['commands']['add']('acceptSelectedSuggestions',new R(_0xdb6fd9,_0x11d8e9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xdb6fd9['commands']['add']('discardSelectedSuggestions',new R(_0xdb6fd9,_0x416615,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xfbb4b6=_0xdb6fd9['plugins']['get']('CommentsRepository');this['listenTo'](_0xfbb4b6,'addComment',(_0x59ff2f,{threadId:_0x100639})=>{const _0x3a743c=this['_suggestions']['get'](_0x100639);_0x3a743c&&_0x3a743c['commentThread']&&0x1===_0x3a743c['commentThread']['length']&&this['_updateSuggestionData'](_0x100639,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xfbb4b6,'removeComment',(_0x148cba,{threadId:_0x38c0bd})=>{const _0x163265=this['_suggestions']['get'](_0x38c0bd);_0x163265&&_0x163265['commentThread']&&!_0x163265['commentThread']['length']&&this['_updateSuggestionData'](_0x38c0bd,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x184730){if(this['_adapter'])throw new _0x109ba3('track-changes-adapter-already-set',this);this['_adapter']=_0x184730;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3f292d=!0x1,toJSON:_0x19ba00=!0x1}={}){const _0xb32565=[];for(const _0x3edb3d of this['_suggestions']['values']())_0x3f292d&&!_0x3edb3d['isInContent']||_0xb32565['push'](_0x3edb3d);return _0x19ba00?_0xb32565['map'](_0x285599=>_0x285599['toJSON']()):_0xb32565;}['getSuggestion'](_0x5eeafa){const _0x48fa69=this['_suggestions']['get'](_0x5eeafa);if(!_0x48fa69)throw new _0x109ba3('track-changes-suggestion-not-found',this);return _0x48fa69;}['hasSuggestion'](_0xa447a1){return this['_suggestions']['has'](_0xa447a1);}['addSuggestionData'](_0x5de009){const {authorId:_0x3cebba,id:_0x2f2ff2,attributes:_0x2efccf}=_0x5de009,[_0x3b4224,_0x1db248]=_0x5de009['type']['split'](':'),_0x33a8e2=this['_suggestions']['get'](_0x2f2ff2)||this['_createSuggestion'](_0x3b4224,_0x1db248,_0x2f2ff2,_0x3cebba,_0x2efccf);if(this['_addThreadToSuggestion'](_0x33a8e2),this['_checkSuggestionCorrectness'](_0x33a8e2,_0x3b4224,_0x1db248||null,_0x3cebba),_0x33a8e2['createdAt']=_0x5de009['createdAt'],_0x33a8e2['_isDataLoaded']=!0x0,_0x2efccf&&_0x2efccf['@external']){const _0xe36777=_0x2efccf['@external'],_0x24fdb4=this['_getExternalAuthor'](_0xe36777['authorName']);_0x33a8e2['authoredAt']=_0xe36777['createdAt'],_0x33a8e2['author']=_0x24fdb4,_0x33a8e2['isExternal']=!0x0;}else _0x33a8e2['authoredAt']=_0x5de009['createdAt'];switch(_0x5de009['data']&&(_0x33a8e2['data']=_0x5de009['data']),_0x5de009['attributes']&&(_0x33a8e2['attributes']=_0x5de009['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x33a8e2['_saved']=!0x0),this['_suggestionState']['get'](_0x33a8e2)){case'notReady':this['_suggestionState']['set'](_0x33a8e2,'dataReady');break;case'markerReady':_0x33a8e2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x33a8e2])),this['_refreshSuggestionsChain'](new Set([_0x33a8e2])),this['_suggestionState']['set'](_0x33a8e2,'ready'),this['fire']('suggestionLoaded',_0x33a8e2)):this['_suggestionState']['set'](_0x33a8e2,'removed');}return _0x33a8e2;}['acceptSuggestion'](_0x45d2e0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54c9fa of _0x45d2e0['getAllAdjacentSuggestions']())_0x54c9fa['accept']();});});}['discardSuggestion'](_0xaf2555){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d1f20 of _0xaf2555['getAllAdjacentSuggestions']())_0x3d1f20['discard']();});});}['enableCommand'](_0x3dde4e,_0x10e7d2){const _0x17c91c=this['editor']['commands']['get'](_0x3dde4e);if(!_0x17c91c)throw new _0x109ba3('track-changes-command-not-found',this,{'commandName':_0x3dde4e});if(this['_enabledCommands']['has'](_0x17c91c))throw new _0x109ba3('track-changes-enable-command-twice',this,{'commandName':_0x3dde4e});this['_enabledCommands']['add'](_0x17c91c),_0x10e7d2&&_0x17c91c['on']('execute',(_0x485acb,_0x3baceb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3baceb['length']>0x0&&_0x3baceb[_0x3baceb['length']-0x1]&&_0x3baceb[_0x3baceb['length']-0x1]['forceDefaultExecution']?_0x3baceb['pop']():(_0x485acb['return']=_0x10e7d2((..._0x480da2)=>_0x17c91c['execute'](..._0x480da2,{'forceDefaultExecution':!0x0}),..._0x3baceb),_0x485acb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8c1c25){let _0x4d609a,_0x37eb87;const _0x2f5be1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4d609a=_0x8c1c25();}catch(_0x16418e){_0x37eb87=_0x16418e;}return _0x2f5be1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x37eb87&&_0x109ba3['rethrowUnexpectedError'](_0x37eb87,this),_0x4d609a;}['markInsertion'](_0x56907e,_0x1eb000=null,_0x2e8e7d={}){if(_0x56907e['isCollapsed'])return null;const _0x181776=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x481d26,meta:_0x580924}of this['_findSuggestions'](_0x56907e,'insertion'))if(_0x580924['isOwn']){if(!_0x580924['isNextTo']){if(_0x580924['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x481d26,_0x2e8e7d))continue;return _0x481d26;}if(Lt(_0x481d26,_0x2e8e7d))return _0x481d26;this['_breakSuggestionMarker'](_0x481d26,_0x56907e['start'],_0x56907e['end']);break;}if(_0x1eb000==_0x481d26['subType']&&Lt(_0x481d26,_0x2e8e7d)){const _0x4835e3=_0x481d26['getFirstRange']();return _0x4835e3['start']['isEqual'](_0x56907e['end'])?this['_setSuggestionRange'](_0x481d26,this['_model']['createRange'](_0x56907e['start'],_0x4835e3['end'])):this['_setSuggestionRange'](_0x481d26,this['_model']['createRange'](_0x4835e3['start'],_0x56907e['end'])),_0x481d26;}}const _0x11c629=_0x7b6b31(),_0x526a34=_0x181776['id'],_0x49e2e9=_0x1eb000?'insertion:'+_0x1eb000:'insertion',_0xdd8a9f=this['_setSuggestionData']({'id':_0x11c629,'type':_0x49e2e9,'createdAt':new Date(),'authorId':_0x526a34,'attributes':_0x2e8e7d});return this['_addSuggestionMarker'](_0x49e2e9,_0x11c629,_0x526a34,_0x56907e),_0xdd8a9f;}['markMultiRangeInsertion'](_0x491ed8,_0x2dfadb='multi',_0x24f0de={}){const _0xe819a=this['editor']['plugins']['get']('Users')['me'],_0x4d3786=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2dfadb,'join');for(const _0x2369f4 of this['getSuggestions']())if(_0x2369f4['author']['id']==_0xe819a['id']&&'insertion'==_0x2369f4['type']&&_0x2369f4['subType']==_0x2dfadb&&Lt(_0x2369f4,_0x24f0de)&&(_0x4d3786(_0x2369f4['getRanges'](),_0x491ed8)||_0x4d3786(_0x491ed8,_0x2369f4['getRanges']()))){for(const _0x2b7f59 of _0x491ed8)_0x2369f4['addRange'](_0x2b7f59);return _0x2369f4;}for(const {suggestion:_0x4ab558,meta:_0x1164a3}of this['_findSuggestions'](_0x491ed8,'insertion')){if(!_0x1164a3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1164a3['containsRangeInObject'])continue;if(!Lt(_0x4ab558,_0x24f0de))continue;let _0x3d46b7=!0x0;for(const _0x391908 of _0x4ab558['getRanges']())for(const _0x111108 of _0x491ed8)if(!_0x391908['containsRange'](_0x111108)){_0x3d46b7=!0x1;break;}if(_0x3d46b7)return _0x4ab558;}const _0x4654ba=_0x7b6b31(),_0x31fecf=_0xe819a['id'],_0x423be4='insertion:'+_0x2dfadb,_0x539948=this['_setSuggestionData']({'id':_0x4654ba,'type':_0x423be4,'createdAt':new Date(),'authorId':_0x31fecf,'attributes':_0x24f0de});for(const _0x1cb24d of _0x491ed8)this['_addSuggestionMarker'](_0x423be4,_0x4654ba,_0x31fecf,_0x1cb24d,u['getMultiRangeId']());return _0x539948;}['markInlineFormat'](_0x443ff4,_0x4a8152,_0x4b182a=null,_0x3e3dec={}){if(_0x4b182a=_0x4b182a||Vt(_0x4a8152),_0x443ff4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2a7736=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b182a,'accept');return this['forceDefaultExecution'](()=>_0x2a7736([_0x443ff4],_0x4a8152,_0x3e3dec)),null;}const _0x5ee8fb=this['editor']['plugins']['get']('Users')['me'],_0x1850a8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x58633a,meta:_0x5c3074}of this['_findSuggestions'](_0x443ff4,'insertion'))_0x5c3074['isOwn']&&!_0x5c3074['isInsideObject']&&_0x1850a8['push'](..._0x58633a['getRanges']());}const _0x425690=function(_0x1ada3c,_0x32316d){const _0x7cab51=[];for(const _0x39f8dd of _0x32316d){const _0x3d47ae=_0x1ada3c['getIntersection'](_0x39f8dd);_0x3d47ae&&_0x7cab51['push'](_0x3d47ae);}return _0x7cab51;}(_0x443ff4,_0x1850a8),_0x40f213=function(_0x4808c0,_0x1147f5){const _0xa69896=[_0x4808c0];for(const _0x4de841 of _0x1147f5){let _0x583574=0x0;for(;_0x583574<_0xa69896['length'];){const _0x2752d2=_0xa69896[_0x583574]['getDifference'](_0x4de841);_0xa69896['splice'](_0x583574,0x1,..._0x2752d2),_0x583574+=_0x2752d2['length'];}}return _0xa69896;}(_0x443ff4,_0x1850a8);_0x425690['length']&&this['_model']['change'](()=>{for(const _0x2fa5bd of _0x425690){const _0x4c00d6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b182a,'accept');this['forceDefaultExecution'](()=>_0x4c00d6([_0x2fa5bd],_0x4a8152,_0x3e3dec));}});for(const _0xa71aeb of _0x40f213){let _0x3ff58a=null,_0x4f50fb=_0xa71aeb['start'],_0x23689b=_0xa71aeb['end'];for(const {suggestion:_0x35d678,meta:_0x48000f}of this['_findSuggestions'](_0xa71aeb,'formatInline')){if(!_0x48000f['isOwn'])continue;if(_0x35d678['subType']!=_0x4b182a)continue;if(!Lt(_0x35d678,_0x3e3dec))continue;const _0x5a3ac7=_0x35d678['getFirstRange']();if(_0x5a3ac7['containsRange'](_0xa71aeb,!0x0))return null;_0x4f50fb=_0x4f50fb['isBefore'](_0x5a3ac7['start'])?_0x4f50fb:_0x5a3ac7['start'],_0x23689b=_0x23689b['isAfter'](_0x5a3ac7['end'])?_0x23689b:_0x5a3ac7['end'],_0x3ff58a?_0x5a3ac7['start']['isBefore'](_0x3ff58a['getFirstRange']()['start'])?(_0x3ff58a['removeMarkers'](),_0x3ff58a=_0x35d678):_0x35d678['removeMarkers']():_0x3ff58a=_0x35d678;}const _0x4979d5=this['_model']['createRange'](_0x4f50fb,_0x23689b);if(_0x3ff58a)this['_setSuggestionRange'](_0x3ff58a,_0x4979d5);else{const _0x291a08=_0x7b6b31(),_0x5e7166=_0x5ee8fb['id'];this['_setSuggestionData']({'id':_0x291a08,'type':'formatInline:'+_0x4b182a,'data':_0x4a8152,'createdAt':new Date(),'authorId':_0x5e7166,'attributes':_0x3e3dec}),this['_addSuggestionMarker']('formatInline:'+_0x4b182a,_0x291a08,_0x5e7166,_0x4979d5);}}return null;}['markBlockFormat'](_0x4b4c87,_0x12963f,_0x26d6ed=[],_0x1ffa67=null,_0x23bd80={}){_0x12963f['formatGroupId']||(_0x12963f['formatGroupId']=_0x12963f['commandName']),_0x12963f['multipleBlocks']=_0x4b4c87['is']('range'),_0x1ffa67=_0x1ffa67||Vt(_0x12963f);const _0x2f3719=_0x26d6ed['map'](_0x32f104=>Gt(_0x32f104,this['_model'])),_0x75aac9=_0x4b4c87['is']('range')?_0x4b4c87:Gt(_0x4b4c87,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5d8c86=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ffa67,'accept');return this['forceDefaultExecution'](()=>_0x5d8c86([_0x75aac9],_0x12963f,_0x23bd80)),null;}_0x2f3719['push'](_0x75aac9);let _0x57a8a3=!0x0;for(const _0x2aaa50 of _0x2f3719)if(!this['_rangeIsInLocalUserInsertion'](_0x2aaa50)){_0x57a8a3=!0x1;break;}if(_0x57a8a3&&'always'!==this['_trackFormatChanges']){const _0xf61a97=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ffa67,'accept');return this['forceDefaultExecution'](()=>_0xf61a97([_0x75aac9],_0x12963f,_0x23bd80)),null;}let _0x155e8b=null,_0xbb3b32=_0x75aac9['start'],_0x56660c=_0x75aac9['end'];for(const {suggestion:_0x5bda40,meta:_0x473d9d}of this['_findSuggestions'](_0x75aac9,'formatBlock')){if(!_0x473d9d['isOwn'])continue;if(_0x473d9d['isNextTo']||_0x473d9d['containsRangeInObject']||_0x473d9d['isInsideObject'])continue;if(_0x5bda40['data']['formatGroupId']!=_0x12963f['formatGroupId'])continue;if(!Lt(_0x5bda40,_0x23bd80))continue;const _0x50b854=_0x5bda40['getFirstRange']();if(_0x5bda40['subType']==_0x1ffa67){if(_0x50b854['containsRange'](_0x75aac9,!0x0))return null;_0xbb3b32=_0xbb3b32['isBefore'](_0x50b854['start'])?_0xbb3b32:_0x50b854['start'],_0x56660c=_0x56660c['isAfter'](_0x50b854['end'])?_0x56660c:_0x50b854['end'],_0x155e8b?_0x50b854['start']['isBefore'](_0x155e8b['getFirstRange']()['start'])?(_0x155e8b['removeMarkers'](),_0x155e8b=_0x5bda40):_0x5bda40['removeMarkers']():_0x155e8b=_0x5bda40;}else{const _0x3fb384=_0x75aac9['getIntersection'](_0x50b854);this['_cutOutSuggestionMarker'](_0x5bda40,_0x3fb384);}}const _0x18f21d=this['editor']['plugins']['get']('Users')['me'],_0xa25b2f=_0x7b6b31(),_0x4d5848=_0x18f21d['id'];if(_0x155e8b)return this['_setSuggestionRange'](_0x155e8b,this['_model']['createRange'](_0xbb3b32,_0x56660c)),_0x155e8b;{const _0x22a374=this['_setSuggestionData']({'id':_0xa25b2f,'type':'formatBlock:'+_0x1ffa67,'data':_0x12963f,'createdAt':new Date(),'authorId':_0x4d5848,'attributes':_0x23bd80});return this['_addSuggestionMarker']('formatBlock:'+_0x1ffa67,_0xa25b2f,_0x4d5848,this['_model']['createRange'](_0xbb3b32,_0x56660c)),_0x22a374;}}['markMultiRangeBlockFormat'](_0x4c581b,_0x19049f,_0xb88abb=[],_0x2ae6e2=null,_0x28964f={}){_0x19049f['formatGroupId']||(_0x19049f['formatGroupId']=_0x19049f['commandName']);const _0x115cfb=_0x4c581b[0x0];_0x19049f['multipleBlocks']=_0x115cfb['is']('range'),_0x2ae6e2=_0x2ae6e2||Vt(_0x19049f);const _0x1e90d0=_0xb88abb['map'](_0x4fa629=>Gt(_0x4fa629,this['_model'])),_0x17097e=_0x115cfb['is']('range')?_0x4c581b:_0x4c581b['map'](_0x540255=>Gt(_0x540255,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2cf90a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ae6e2,'accept');return this['forceDefaultExecution'](()=>_0x2cf90a(_0x17097e,_0x19049f,_0x28964f)),null;}_0x1e90d0['push'](..._0x17097e);let _0x4ad991=!0x0;for(const _0xaf3c6 of _0x1e90d0)if(!this['_rangeIsInLocalUserInsertion'](_0xaf3c6)){_0x4ad991=!0x1;break;}if(_0x4ad991&&'always'!==this['_trackFormatChanges']){const _0x49e931=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ae6e2,'accept');return this['forceDefaultExecution'](()=>_0x49e931(_0x17097e,_0x19049f,_0x28964f)),null;}const _0x599139=this['editor']['plugins']['get']('Users')['me'];for(const _0x3bc103 of this['getSuggestions']()){if(_0x3bc103['author']['id']!=_0x599139['id'])continue;if('formatBlock'!=_0x3bc103['type']||_0x3bc103['data']['formatGroupId']!=_0x19049f['formatGroupId'])continue;if(!Lt(_0x3bc103,_0x28964f))continue;const _0x27d7a7=_0x3bc103['subType']==_0x2ae6e2;for(let _0x1100a7=0x0;_0x1100a7<_0x17097e['length'];_0x1100a7++){const _0x1e6467=_0x17097e[_0x1100a7];for(const _0x1249d8 of _0x3bc103['getMarkers']()){const _0x3793e1=_0x1249d8['getRange']();if(_0x1e6467['isEqual'](_0x3793e1)){_0x27d7a7?(_0x17097e['splice'](_0x1100a7,0x1),_0x1100a7--):_0x3bc103['removeMarker'](_0x1249d8['name']);break;}}}}if(0x0==_0x17097e['length'])return null;const _0x4a2162=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ae6e2,'join');for(const _0x17d1af of this['getSuggestions']())if(_0x17d1af['author']['id']==_0x599139['id']&&'formatBlock'==_0x17d1af['type']&&_0x17d1af['data']['formatGroupId']==_0x19049f['formatGroupId']&&_0x17d1af['subType']==_0x2ae6e2&&Lt(_0x17d1af,_0x28964f)&&(_0x4a2162(_0x17d1af['getRanges'](),_0x17097e)||_0x4a2162(_0x17097e,_0x17d1af['getRanges']()))){for(const _0x2ee811 of _0x17097e)_0x17d1af['addRange'](_0x2ee811);return _0x17d1af;}const _0x3b1e7b=_0x7b6b31(),_0x59c10c=_0x599139['id'],_0x10abc3='formatBlock:'+_0x2ae6e2,_0x2aa576=this['_setSuggestionData']({'id':_0x3b1e7b,'type':_0x10abc3,'data':_0x19049f,'createdAt':new Date(),'authorId':_0x59c10c,'attributes':_0x28964f});for(const _0x110abf of _0x17097e)this['_addSuggestionMarker'](_0x10abc3,_0x3b1e7b,_0x59c10c,_0x110abf,u['getMultiRangeId']());return _0x2aa576;}['markDeletion'](_0x284b0b,_0x3be26e=null,_0x115837={}){if(_0x284b0b['isCollapsed'])return null;const _0x1f27c4=this['editor']['plugins']['get']('Users')['me'],_0x3e807a=new _0x45d820(_0x284b0b['start'],_0x284b0b['end']);for(const {suggestion:_0x4bc06d,meta:_0x208a89}of this['_findSuggestions'](_0x3e807a,'insertion'))if(_0x208a89['isOwn']&&!_0x208a89['isNextTo']){if(_0x4bc06d['isMultiRange']){const _0x396e12=_0x4bc06d['getRanges']()['filter'](_0x5392d2=>'$graveyard'!=_0x5392d2['root']['rootName']);_0x396e12['every'](_0x967395=>_0x3e807a['containsRange'](_0x967395,!0x0))&&_0x4bc06d['discard']();if(_0x396e12['some'](_0xda9ba8=>_0xda9ba8['containsRange'](_0x3e807a,!0x0))){const _0x225b81=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3be26e,'accept');return this['forceDefaultExecution'](()=>_0x225b81([_0x3e807a],null,_0x115837)),null;}}else{const _0xf87d15=_0x3e807a['getIntersection'](_0x4bc06d['getFirstRange']());null!==_0xf87d15&&_0x4bc06d['_onDiscard']([_0xf87d15],null,_0x115837);}}if(_0x3e807a['detach'](),_0x3e807a['isCollapsed']||'$graveyard'==_0x3e807a['root']['rootName'])return null;let _0x2c89d6=null,_0x3e731f=_0x3e807a['start'],_0x3c3dd8=_0x3e807a['end'];const _0xd73db3=this['_findSuggestions'](_0x3e807a,'deletion');for(const {suggestion:_0x269925,meta:_0x14d2df}of _0xd73db3){const _0x1b565a=this['_model']['createRange'](_0x3e731f,_0x3c3dd8);if(_0x14d2df['isOwn']&&(this['_mergeNestedSuggestions']||!_0x14d2df['containsRangeInObject']&&!_0x14d2df['isInsideObject'])){if(_0x269925['isMultiRange']){if(!Lt(_0x269925,_0x115837))continue;let _0x565068=!0x0;for(const _0x4d2580 of _0x269925['getRanges']()){if(_0x4d2580['containsRange'](_0x1b565a,!0x0))return _0x269925;_0x1b565a['containsRange'](_0x4d2580)||(_0x565068=!0x1);}_0x565068&&_0x269925['discard']();}else{const _0x1198fc=_0x269925['getFirstRange']();if(_0x1198fc['containsRange'](_0x1b565a,!0x0))return _0x269925;if(!Lt(_0x269925,_0x115837)){_0x1b565a['containsRange'](_0x1198fc)?_0x269925['removeMarkers']():_0x1198fc['containsPosition'](_0x3e731f)?_0x3e731f=_0x1198fc['end']:_0x1198fc['containsPosition'](_0x3c3dd8)&&(_0x3c3dd8=_0x1198fc['start']);continue;}_0x3e731f=_0x3e731f['isBefore'](_0x1198fc['start'])?_0x3e731f:_0x1198fc['start'],_0x3c3dd8=_0x3c3dd8['isAfter'](_0x1198fc['end'])?_0x3c3dd8:_0x1198fc['end'],_0x115837=Object['assign']({},_0x269925['attributes']),_0x2c89d6?_0x1198fc['start']['isBefore'](_0x2c89d6['getFirstRange']()['start'])?(_0x2c89d6['removeMarkers'](),_0x2c89d6=_0x269925):_0x269925['removeMarkers']():_0x2c89d6=_0x269925;}}}if(_0x2c89d6)return this['_setSuggestionRange'](_0x2c89d6,this['_model']['createRange'](_0x3e731f,_0x3c3dd8)),_0x2c89d6;{const _0x12e011=_0x7b6b31(),_0x2f4c52=this['_model']['createRange'](_0x3e731f,_0x3c3dd8),_0x11db26=_0x1f27c4['id'],_0x5a227f=_0x3be26e?'deletion:'+_0x3be26e:'deletion',_0x3f5d35=this['_setSuggestionData']({'id':_0x12e011,'type':_0x5a227f,'createdAt':new Date(),'authorId':_0x11db26,'attributes':_0x115837});return this['_addSuggestionMarker'](_0x5a227f,_0x12e011,_0x11db26,_0x2f4c52),_0x3f5d35;}}['markMultiRangeDeletion'](_0x40dbc2,_0x249e1d='multi',_0x25fa67={}){const _0x3049f1=this['editor']['plugins']['get']('Users')['me'],_0x450ad1=_0x40dbc2['map'](_0x4c582b=>new _0x45d820(_0x4c582b['start'],_0x4c582b['end'])),_0x541000=new Set();for(const {suggestion:_0x22b179,meta:_0xb9f209}of this['_findSuggestions'](_0x450ad1,'insertion'))_0xb9f209['isOwn']&&!_0xb9f209['isNextTo']&&_0x541000['add'](_0x22b179);for(const _0x103ad8 of _0x541000)if(_0x103ad8['isMultiRange']){const _0x1df1f8=_0x103ad8['getRanges']();(!_0x103ad8['attributes']||!_0x103ad8['attributes']['skipNestingCheck'])&&(_0x1df1f8['every'](_0x23ffd7=>_0x450ad1['some'](_0x238647=>_0x238647['containsRange'](_0x23ffd7,!0x0)))&&_0x103ad8['discard']());if(_0x450ad1['every'](_0x5ddfb4=>_0x1df1f8['some'](_0x2ba7e7=>_0x2ba7e7['containsRange'](_0x5ddfb4,!0x0)))){const _0x1fee55=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249e1d,'accept');return this['forceDefaultExecution'](()=>_0x1fee55(_0x40dbc2,null,_0x25fa67)),null;}}else{const _0x108c02=_0x103ad8['getFirstRange']();_0x450ad1['some'](_0x5d8a0b=>_0x5d8a0b['containsRange'](_0x108c02,!0x0))&&_0x103ad8['discard']();if(_0x450ad1['every'](_0x40cc1c=>_0x108c02['containsRange'](_0x40cc1c,!0x0))){const _0x36c0c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249e1d,'accept');return this['forceDefaultExecution'](()=>_0x36c0c0(_0x450ad1,null,_0x25fa67)),null;}}const _0x52a61e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249e1d,'join');let _0x2b21ae=null;for(const _0x213a6d of this['getSuggestions']())if(_0x213a6d['author']['id']==_0x3049f1['id']&&_0x213a6d['isInContent']&&'deletion'==_0x213a6d['type']&&_0x213a6d['subType']==_0x249e1d&&Lt(_0x213a6d,_0x25fa67)&&(_0x52a61e(_0x213a6d['getRanges'](),_0x450ad1)||_0x52a61e(_0x450ad1,_0x213a6d['getRanges']()))){if(_0x2b21ae){if(_0x213a6d['commentThread']&&_0x213a6d['commentThread']['length'])continue;for(const _0x454d19 of _0x213a6d['getRanges']())_0x2b21ae['isIntersectingWithRange'](_0x454d19)||_0x2b21ae['addRange'](_0x454d19);_0x213a6d['removeMarkers']();}else{_0x2b21ae=_0x213a6d;for(const _0x47c572 of _0x450ad1)_0x213a6d['isIntersectingWithRange'](_0x47c572)||_0x213a6d['addRange'](_0x47c572);}}if(_0x2b21ae)return _0x2b21ae;_0x541000['clear']();for(const {suggestion:_0x20c0e5,meta:_0x49965b}of this['_findSuggestions'](_0x450ad1,'deletion'))_0x49965b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49965b['containsRangeInObject']&&!_0x49965b['isInsideObject'])&&Lt(_0x20c0e5,_0x25fa67)&&_0x541000['add'](_0x20c0e5);for(const _0x18123b of _0x541000){const _0x19e1bb=_0x18123b['getRanges']();if(!_0x25fa67||!_0x25fa67['skipNestingCheck']){if(_0x450ad1['every'](_0x29e609=>_0x19e1bb['some'](_0x1adefa=>_0x1adefa['containsRange'](_0x29e609,!0x0))))return _0x18123b;}(!_0x18123b['attributes']||!_0x18123b['attributes']['skipNestingCheck'])&&(_0x19e1bb['every'](_0x2d693c=>_0x450ad1['some'](_0x427242=>_0x427242['containsRange'](_0x2d693c,!0x0)))&&_0x18123b['discard']());}const _0x1e909a=_0x7b6b31(),_0x571263=_0x3049f1['id'],_0xe579be='deletion:'+_0x249e1d,_0xd31c54=this['_setSuggestionData']({'id':_0x1e909a,'type':_0xe579be,'createdAt':new Date(),'authorId':_0x571263,'attributes':_0x25fa67});for(const _0x21aeb6 of _0x450ad1)_0x21aeb6['detach'](),_0x21aeb6['isCollapsed']||'$graveyard'==_0x21aeb6['root']['rootName']||this['_addSuggestionMarker'](_0xe579be,_0x1e909a,_0x571263,_0x21aeb6,u['getMultiRangeId']());return _0xd31c54;}['markAttributeChange'](_0x48ccd4,_0x48dc93,_0x1d2e0b,_0x25b2cb,_0x39bef4){if(_0x48ccd4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x445f37=this['editor']['plugins']['get']('Users')['me']['id'],_0x175c5c=Array['from'](this['_suggestions']['values']())['filter'](_0x4d95fe=>'attribute'==_0x4d95fe['type']&&_0x4d95fe['data']['key']==_0x48dc93&&_0x4d95fe['isIntersectingWithRange'](_0x48ccd4));if('default'===this['_trackFormatChanges']){const _0x25a99a=this['_findSuggestions'](_0x48ccd4,'insertion')['filter'](({meta:_0x5d8395})=>_0x5d8395['isOwn']&&!_0x5d8395['isInsideObject']&&!_0x5d8395['isNextTo'])['map'](({suggestion:_0x5c1c50})=>_0x5c1c50);_0x175c5c['unshift'](..._0x25a99a);}const _0x25624f=new Map([[_0x48ccd4,_0x1d2e0b]]);for(const _0x1a90a9 of _0x175c5c){const _0x13178e='attribute'==_0x1a90a9['type']?_0x1a90a9['data']['oldValue']:void 0x0,_0x2b9807=_0x1a90a9['getFirstRange'](),_0x226fb7=Array['from'](_0x25624f['keys']())['find'](_0x2b02cf=>_0x2b02cf['isIntersecting'](_0x2b9807));if(!_0x226fb7)continue;const _0x14f066=_0x226fb7['getDifference'](_0x2b9807);this['_isBlockAttribute'](_0x48dc93)&&'insertion'==_0x1a90a9['type']&&0x0!=_0x14f066['length']||(_0x25624f['delete'](_0x226fb7),_0x14f066['forEach'](_0x13fc4b=>{_0x25624f['set'](_0x13fc4b,_0x1d2e0b);}),'insertion'!=_0x1a90a9['type']&&_0x13178e!=_0x25b2cb&&_0x25624f['set'](_0x226fb7['getIntersection'](_0x2b9807),_0x13178e));}const _0x56bddb=[];for(const [_0x4a56b0,_0x4d94b0]of _0x25624f){const _0x36ad64=_0x7b6b31(),_0x4fb32d={'key':_0x48dc93,'oldValue':_0x4d94b0,'newValue':_0x25b2cb};_0x48dc93['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':_0x48dc93});const _0x5a2522=('attribute:'+(_0x48dc93+'|'+Vt({'newValue':_0x25b2cb})))['substring'](0x0,0x3c),_0x4babfe=this['_setSuggestionData']({'id':_0x36ad64,'type':_0x5a2522,'data':_0x4fb32d,'createdAt':new Date(),'authorId':_0x445f37,'attributes':_0x39bef4});_0x56bddb['push'](_0x4babfe),this['_addSuggestionMarker'](_0x5a2522,_0x36ad64,_0x445f37,_0x4a56b0);}return _0x56bddb;}['enableDefaultAttributesIntegration'](_0x10ec62){this['enableCommand'](_0x10ec62,(_0x1fa0c7,..._0x1f4a29)=>{this['_recordAttributeChanges'](()=>{_0x1fa0c7(..._0x1f4a29);});});}['registerBlockAttribute'](_0x456f45){this['_blockAttributeKeys']['add'](_0x456f45);}['registerInlineAttribute'](_0x171fbd){this['_inlineAttributeKeys']['add'](_0x171fbd);}['_getAttributeKey'](_0xf7eb0d){return'attribute'==_0xf7eb0d['type']?_0xf7eb0d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5b7a12,_0x1b0692){const _0x26ae7e=_0x5b7a12['getFirstMarker']();this['_model']['change'](_0x122f25=>{_0x122f25['updateMarker'](_0x26ae7e,{'range':_0x1b0692});});}['_addThreadToSuggestion'](_0x2f3d2e){const _0x2026f6=_0x2f3d2e['id'],_0x302b5e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2026f6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x302b5e,'threadId':_0x2026f6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x8b3d09=this['_commentsRepository']['getCommentThread'](_0x2026f6);_0x8b3d09['unbind']('isRemovable'),_0x8b3d09['isRemovable']=!0x1,_0x2f3d2e['commentThread']=_0x8b3d09;}['_checkSuggestionCorrectness'](_0x5955d8,_0x21d013,_0x45b86f,_0xe4bfa6){if(_0x5955d8['type']!=_0x21d013||_0x5955d8['subType']!=_0x45b86f||_0x5955d8['creator']['id']!=_0xe4bfa6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x109ba3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x45f542,_0x3398f1){const _0x5f56e9=_0x45f542['getFirstRange']();if(_0x3398f1['isEqual'](_0x5f56e9))_0x45f542['removeMarkers']();else{if(_0x5f56e9['containsRange'](_0x3398f1)){const _0x3f5f12=this['_model']['createPositionAt'](_0x3398f1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x45f542,this['_model']['createRange'](_0x5f56e9['start'],_0x3f5f12));const _0x40d37f=_0x7b6b31(),_0x46106e=_0x45f542['creator']['id'],_0x4dd77a=_0x45f542['type']+':'+_0x45f542['subType'];this['_setSuggestionData']({'id':_0x40d37f,'type':_0x4dd77a,'createdAt':new Date(),'authorId':_0x46106e,'data':_0x45f542['data'],'attributes':_0x45f542['attributes']});const _0x3fb6aa=this['_model']['createPositionAt'](_0x3398f1['end']['parent'],'after'),_0x2c3d64=this['_model']['createRange'](_0x3fb6aa,_0x5f56e9['end']);this['_addSuggestionMarker'](_0x4dd77a,_0x40d37f,_0x46106e,_0x2c3d64);}else{if(_0x5f56e9['containsPosition'](_0x3398f1['start'])){const _0x3901e9=this['_model']['createPositionAt'](_0x3398f1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x45f542,this['_model']['createRange'](_0x5f56e9['start'],_0x3901e9));}else{const _0x47d773=this['_model']['createPositionAt'](_0x3398f1['end']['parent'],'after');this['_setSuggestionRange'](_0x45f542,this['_model']['createRange'](_0x47d773,_0x5f56e9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xe9d2f8){for(const {suggestion:_0xbd0c3d,meta:_0x36927c}of this['_findSuggestions'](_0xe9d2f8,'insertion')){if(!_0x36927c['isOwn'])continue;const _0x205451=_0xbd0c3d['getRanges']();for(const _0x6ea690 of _0x205451)if(!_0xe9d2f8['getDifference'](_0x6ea690)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x535b67){const _0x2b89c6=this['editor']['plugins']['get']('Users')['getUser'](_0x535b67);if(!_0x2b89c6)throw new _0x109ba3('track-changes-user-not-found',this);return _0x2b89c6;}['_getExternalAuthor'](_0x96c408){const _0x3500fe=this['editor']['plugins']['get']('Users'),_0x26f44d=_0x42152e('external:'+_0x96c408),_0x1431a7=_0x3500fe['getUser'](_0x26f44d);return _0x1431a7||_0x3500fe['addUser']({'id':_0x26f44d,'name':_0x96c408});}['_createSuggestion'](_0x15e7e9,_0x28593f,_0x50eb31,_0x161a28,_0x16fc07){const _0x52adcb=this['_getAuthorFromId'](_0x161a28),_0x3808bc=this['_suggestionFactory']['buildSuggestion'](_0x15e7e9,_0x28593f,_0x50eb31,_0x52adcb,_0x16fc07,_0x2d87ee=>{this['_updateSuggestionData'](_0x50eb31,{'attributes':_0x2d87ee});const _0x4feaff=this['getSuggestion'](_0x50eb31);this['_joinWithAdjacentSuggestions'](new Set([_0x4feaff])),this['_refreshSuggestionsChain'](new Set([_0x4feaff]));});return this['listenTo'](_0x3808bc,'accept',()=>{this['_updateSuggestionData'](_0x50eb31,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3808bc,'discard',()=>{this['_updateSuggestionData'](_0x50eb31,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x50eb31,_0x3808bc),this['_suggestionState']['set'](_0x3808bc,'notReady'),_0x3808bc;}['_splitMarkerName'](_0x9c4eee){const _0x14c54a=_0x9c4eee['split'](':');return{'group':_0x14c54a[0x0],'type':_0x14c54a[0x1],'subType':_0x14c54a['length']>=0x5?_0x14c54a[0x2]:null,'id':_0x14c54a['length']<0x5?_0x14c54a[0x2]:_0x14c54a[0x3],'authorId':_0x14c54a['length']<0x5?_0x14c54a[0x3]:_0x14c54a[0x4],'markerCount':0x6==_0x14c54a['length']?_0x14c54a[0x5]:null};}['_breakSuggestionMarker'](_0x2584a3,_0x2eaafb,_0x58d2f1){const _0x183f5f=_0x2584a3['getFirstRange'](),_0x4adc7d=_0x183f5f['start'],_0x1c0cd1=_0x183f5f['end'];this['_setSuggestionRange'](_0x2584a3,this['_model']['createRange'](_0x4adc7d,_0x2eaafb));const _0x308e97=_0x7b6b31(),_0x1f4def=_0x2584a3['creator']['id'],_0x424b18=_0x2584a3['type']+(_0x2584a3['subType']?':'+_0x2584a3['subType']:'');this['_setSuggestionData']({'id':_0x308e97,'type':_0x424b18,'createdAt':new Date(),'authorId':_0x1f4def,'originalSuggestionId':_0x2584a3['id'],'attributes':_0x2584a3['attributes'],'data':_0x2584a3['data']});const _0x313370=this['_getAttributeKey'](_0x2584a3);('formatBlock'==_0x2584a3['type']||_0x313370&&this['_isBlockAttribute'](_0x313370))&&(_0x58d2f1=this['_model']['createPositionBefore'](_0x58d2f1['parent'])),this['_addSuggestionMarker'](_0x424b18,_0x308e97,_0x1f4def,this['_model']['createRange'](_0x58d2f1,_0x1c0cd1));}['_findSuggestions'](_0xd6c4cd,_0xc94ec1=null){const _0x352e3e=[],_0x50a069=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xd6c4cd)||(_0xd6c4cd=[_0xd6c4cd]);for(const _0x3a0ed4 of this['getSuggestions']()){if(!_0x3a0ed4['isInContent'])continue;if(_0xc94ec1&&_0x3a0ed4['type']!=_0xc94ec1)continue;let _0x11ee97=!0x1;for(const _0x1007fe of _0x3a0ed4['getRanges']()){for(const _0x3da497 of _0xd6c4cd){const _0x2e40d1=_0x3da497['start']['isEqual'](_0x1007fe['end'])||_0x3da497['end']['isEqual'](_0x1007fe['start']);if(_0x2e40d1||_0x3da497['getIntersection'](_0x1007fe)){const _0x13898a=_0x3da497['containsRange'](_0x1007fe)&&Rt(this['_model']['schema'],_0x1007fe['start'],_0x3da497),_0x2b245a=_0x1007fe['containsRange'](_0x3da497)&&Rt(this['_model']['schema'],_0x3da497['start'],_0x1007fe);_0x352e3e['push']({'suggestion':_0x3a0ed4,'meta':{'isOwn':_0x50a069==_0x3a0ed4['author'],'isNextTo':_0x2e40d1,'isInsideObject':_0x13898a,'containsRangeInObject':_0x2b245a}}),_0x11ee97=!0x0;break;}}if(_0x11ee97)break;}}return _0x352e3e;}['_addSuggestionMarker'](_0x2bf264,_0x16f7a1,_0x2d9aef,_0x19c095,_0x8dbb91){this['_model']['change'](_0x163a16=>{let _0x4419c3='suggestion:'+_0x2bf264+':'+_0x16f7a1+':'+_0x2d9aef;_0x8dbb91&&(_0x4419c3=_0x4419c3+':'+_0x8dbb91),_0x163a16['addMarker'](_0x4419c3,{'range':_0x19c095,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1a33ce){const _0x3cdaa3=_0x1a33ce['previous'],_0x14f61e=_0x1a33ce['next'];_0x1a33ce['previous']=null,_0x1a33ce['next']=null,null!=_0x3cdaa3&&_0x3cdaa3['next']==_0x1a33ce&&(_0x3cdaa3['next']=_0x14f61e),null!=_0x14f61e&&_0x14f61e['previous']==_0x1a33ce&&(_0x14f61e['previous']=_0x3cdaa3),'ready'==this['_suggestionState']['get'](_0x1a33ce)&&(this['_suggestionState']['set'](_0x1a33ce,'removed'),this['fire']('suggestionUnloaded',_0x1a33ce,_0x3cdaa3,_0x14f61e));}['_setSuggestionData'](_0x336df8){const _0x5d1496=_0x336df8['id'],_0x33b37e=this['addSuggestionData'](_0x336df8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x54b68e=this['editor']['plugins']['get']('PendingActions'),_0x31e1aa=_0x33b37e['hasComments'],_0x3d63ed=_0x33b37e['subType']?_0x33b37e['type']+':'+_0x33b37e['subType']:_0x33b37e['type'],_0x1081e7=this['editor']['locale'],_0x36e65d=_0x54b68e['add'](o(_0x1081e7,'PENDING_ACTION_SUGGESTION')),_0x111e03={'id':_0x5d1496,'type':_0x3d63ed,'hasComments':_0x31e1aa,'data':_0x336df8['data']||null,'originalSuggestionId':_0x336df8['originalSuggestionId']||null,'attributes':_0x33b37e['attributes']};this['_adapter']['addSuggestion'](_0x111e03)['then'](_0x1c3f7c=>{_0x33b37e['_saved']=!0x0,_0x54b68e['remove'](_0x36e65d),_0x1c3f7c&&_0x1c3f7c['createdAt']&&(this['_suggestions']['get'](_0x5d1496)['createdAt']=_0x1c3f7c['createdAt']);})['catch'](_0x10b1d6=>{throw _0x2b4af0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x33b37e['discard']();}),_0x33b37e['stopListening'](),this['_suggestions']['delete'](_0x33b37e['id']),this['_suggestionState']['delete'](_0x33b37e),_0x10b1d6;});}return _0x33b37e;}['_isBlockAttribute'](_0x3d0e43){return this['_blockAttributeKeys']['has'](_0x3d0e43);}['_updateSuggestionData'](_0x2ea951,_0x3c10b1){const _0x19e310=this['editor']['plugins']['get']('PendingActions'),_0x5bca3c=this['getSuggestion'](_0x2ea951);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5bca3c['_saved']){const _0x347dfc=_0x19e310['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2ea951,_0x3c10b1)['then'](()=>{_0x19e310['remove'](_0x347dfc);});}else _0x5bca3c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2ea951,_0x3c10b1);});}}['_getSuggestionData'](_0x462910){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x109ba3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x462910);}['_handleNewSuggestionMarker'](_0x546645){const {id:_0x3ef1aa,type:_0x3ce80c,subType:_0x8be8c2,authorId:_0x118803}=this['_splitMarkerName'](_0x546645),_0x21328e=this['_suggestions']['get'](_0x3ef1aa)||this['_createSuggestion'](_0x3ce80c,_0x8be8c2,_0x3ef1aa,_0x118803,{});switch(this['_checkSuggestionCorrectness'](_0x21328e,_0x3ce80c,_0x8be8c2,_0x118803),this['_suggestionState']['get'](_0x21328e)){case'notReady':this['_getSuggestionData'](_0x3ef1aa)['then'](_0x53e6ac=>{let _0x1b00cc=Promise['resolve']();_0x53e6ac['hasComments']&&(_0x1b00cc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3ef1aa})),_0x1b00cc['then'](()=>{this['addSuggestionData'](_0x53e6ac)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x21328e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3ef1aa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x21328e,'ready'),this['fire']('suggestionLoaded',_0x21328e);break;case'ready':this['fire']('suggestionChanged',_0x21328e);}return _0x21328e['addMarkerName'](_0x546645),_0x21328e;}['_refreshSuggestionsChain'](_0x513612){const _0x4159d4=Array['from'](_0x513612),_0x32de7e=_0x4159d4['filter'](_0x1f30ca=>'attribute'==_0x1f30ca['type']);this['_refreshAttributeSuggestionsChain'](_0x32de7e);const _0x3f2bbf=_0x4159d4['filter'](_0x40fe30=>!_0x40fe30['isMultiRange']&&'attribute'!=_0x40fe30['type']),_0x2d2489=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17b7d6=>!_0x17b7d6['isMultiRange']&&'attribute'!=_0x17b7d6['type']),_0x2c05a2=_0x2d2489['filter'](_0x35d5cf=>!_0x513612['has'](_0x35d5cf)),_0x1819ed=new Map(_0x2d2489['map'](_0x32c295=>[_0x32c295,this['_suggestionFactory']['getSuggestionCallback'](_0x32c295['type'],_0x32c295['subType'],'chain')])),_0x255b74=new Map(_0x2d2489['map'](_0x567582=>[_0x567582,_0x567582['getFirstRange']()])),_0x5da189=new Set(),_0x5d5d5e=new Set();for(let _0x2c7ea5=0x0;_0x2c7ea5<_0x3f2bbf['length'];_0x2c7ea5++)_0xc1d67b(_0x3f2bbf[_0x2c7ea5],_0x3f2bbf,_0x2c7ea5+0x1);for(let _0x42fadd=0x0;_0x42fadd<_0x3f2bbf['length'];_0x42fadd++)_0xc1d67b(_0x3f2bbf[_0x42fadd],_0x2c05a2,0x0);const _0x4ffef1=new Set();for(let _0xbc0321=0x0;_0xbc0321<_0x3f2bbf['length'];_0xbc0321++){const _0x51fe95=_0x3f2bbf[_0xbc0321];!_0x5d5d5e['has'](_0x51fe95)&&_0x51fe95['previous']&&(_0x4ffef1['add'](_0x51fe95['previous']),_0x51fe95['previous']['next']===_0x51fe95&&(_0x51fe95['previous']['next']=null),_0x51fe95['previous']=null),!_0x5da189['has'](_0x51fe95)&&_0x51fe95['next']&&(_0x4ffef1['add'](_0x51fe95['next']),_0x51fe95['next']['previous']===_0x51fe95&&(_0x51fe95['next']['previous']=null),_0x51fe95['next']=null);}function _0xc1d67b(_0x391cc8,_0x5d8073,_0x4b2b6c){for(let _0x5c05dd=_0x4b2b6c;_0x5c05dd<_0x5d8073['length'];_0x5c05dd++){const _0x1414d0=_0x36e92(_0x391cc8,_0x5d8073[_0x5c05dd]);_0x1414d0&&(_0x1414d0[0x0]['next']=_0x1414d0[0x1],_0x1414d0[0x1]['previous']=_0x1414d0[0x0],_0x5da189['add'](_0x1414d0[0x0]),_0x5d5d5e['add'](_0x1414d0[0x1]));}}function _0x36e92(_0x1ef1df,_0x3c4ca7){if(_0x1ef1df['author']['id']!==_0x3c4ca7['author']['id'])return null;const _0x2bf395=_0x1819ed['get'](_0x1ef1df)(_0x1ef1df,_0x3c4ca7,_0x255b74['get'](_0x1ef1df),_0x255b74['get'](_0x3c4ca7));if(!_0x2bf395)return null;return _0x1819ed['get'](_0x3c4ca7)(_0x1ef1df,_0x3c4ca7,_0x255b74['get'](_0x1ef1df),_0x255b74['get'](_0x3c4ca7))?_0x2bf395[0x1]['commentThread']&&_0x2bf395[0x1]['commentThread']['length']?null:_0x2bf395:null;}_0x4ffef1['size']&&this['_refreshSuggestionsChain'](_0x4ffef1);}['_refreshAttributeSuggestionsChain'](_0x112ced){if(0x0==_0x112ced['length'])return;const _0x462dde=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x213d42=>'attribute'==_0x213d42['type']&&_0x213d42['_isDataLoaded']),_0x415653=[],_0x23cda2=new Map();for(const _0x1409e5 of _0x462dde){const _0x473f2f=_0x42152e(_0x1409e5['attributes']);_0x23cda2['has'](_0x473f2f)||(_0x23cda2['set'](_0x473f2f,_0x415653['length']),_0x415653['push']([]));const _0x2fa380=_0x23cda2['get'](_0x473f2f);_0x415653[_0x2fa380]['push'](_0x1409e5);}!(function(){_0x415653['sort']((_0x4c6e57,_0x422c16)=>{const _0x185883=_0x4c6e57[0x0]['createdAt'],_0x280cbe=_0x422c16[0x0]['createdAt'];return _0x185883==_0x280cbe?_0x4c6e57[0x0]['attributes']['groupId']<_0x422c16[0x0]['attributes']['groupId']?-0x1:0x1:_0x185883<_0x280cbe?-0x1:0x1;});for(const _0x5692b7 of _0x415653)_0x5692b7['sort']((_0x4bbb38,_0x5c6e3c)=>_0x4bbb38['id']<_0x5c6e3c['id']?-0x1:0x1);}());for(let _0x5bb496=0x0;_0x5bb496<_0x415653['length'];_0x5bb496++){if(0x0==_0x415653[_0x5bb496]['length'])continue;const _0x5a6ad4=[];for(let _0x479338=_0x5bb496+0x1;_0x479338<_0x415653['length'];_0x479338++)0x0!=_0x415653[_0x479338]['length']&&_0x235b7a(_0x415653[_0x5bb496],_0x415653[_0x479338])&&_0x5a6ad4['push'](_0x479338);for(const _0xfccf53 of _0x5a6ad4)_0x415653[_0x5bb496]=_0x415653[_0x5bb496]['concat'](_0x415653[_0xfccf53]),_0x415653[_0xfccf53]=[];}for(const _0x4d1854 of _0x415653)for(let _0x14380e=0x0;_0x14380e<_0x4d1854['length'];_0x14380e++)_0x4d1854[_0x14380e]['next']=_0x4d1854[_0x14380e+0x1]||null;for(const _0x2356a2 of _0x415653)for(let _0x547c6d=0x0;_0x547c6d<_0x2356a2['length'];_0x547c6d++)_0x2356a2[_0x547c6d]['previous']=_0x2356a2[_0x547c6d-0x1]||null;function _0x235b7a(_0x37786a,_0x2569cd){if(_0x37786a[0x0]['attributes']['groupId']!==_0x2569cd[0x0]['attributes']['groupId']&&_0x37786a[0x0]['author']!==_0x2569cd[0x0]['author'])return!0x1;if(!function(_0x2c3a62,_0x22bbf3){if(!_0x2c3a62['hasComments']&&!_0x22bbf3['hasComments'])return!0x0;if(_0x2c3a62['hasComments']&&_0x22bbf3['hasComments'])return!0x1;if(_0x2c3a62['hasComments']&&_0x22bbf3['createdAt']<_0x2c3a62['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x22bbf3['hasComments']&&_0x2c3a62['createdAt']<_0x22bbf3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x37786a[0x0],_0x2569cd[0x0]))return!0x1;const _0x276282=Bt(_0x37786a[0x0]['attributes'],'groupId'),_0x23f09f=Bt(_0x2569cd[0x0]['attributes'],'groupId');if(!_0x15c9fb(_0x276282,_0x23f09f))return!0x1;return!!_0x37786a['every'](_0x3f9c36=>_0x2569cd['some'](_0x4b240c=>_0x3f9c36['getFirstRange']()['isEqual'](_0x4b240c['getFirstRange']())))&&_0x2569cd['every'](_0x40cf86=>_0x37786a['some'](_0x23e9e7=>_0x40cf86['getFirstRange']()['isEqual'](_0x23e9e7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4ecfc1){const _0x45aa4e=Array['from'](_0x4ecfc1),_0x1edc83=this['getSuggestions']({'skipNotAttached':!0x0}),_0x492223=_0x1edc83['filter'](_0x4549c3=>!_0x4ecfc1['has'](_0x4549c3)),_0x468062=new Map(_0x45aa4e['map'](_0x2ca076=>[_0x2ca076,this['_suggestionFactory']['getSuggestionCallback'](_0x2ca076['type'],_0x2ca076['subType'],'join')])),_0x37cd76=new Map(_0x1edc83['map'](_0x135f67=>[_0x135f67,_0x135f67['getRanges']()]));for(let _0x32ca55=0x0;_0x32ca55<_0x45aa4e['length'];_0x32ca55++){if(_0x331b4d(this,_0x45aa4e[_0x32ca55],_0x45aa4e,_0x32ca55+0x1))return!0x0;}for(let _0x141aeb=0x0;_0x141aeb<_0x45aa4e['length'];_0x141aeb++){if(_0x331b4d(this,_0x45aa4e[_0x141aeb],_0x492223,0x0))return!0x0;}return!0x1;function _0x331b4d(_0x5d4517,_0x5c1789,_0x32ca0b,_0x43e277){for(let _0x16b6e9=_0x43e277;_0x16b6e9<_0x32ca0b['length'];_0x16b6e9++){const _0x9a2807=_0x32ca0b[_0x16b6e9];if(_0x9a2807['type']!==_0x5c1789['type']||_0x9a2807['author']['id']!==_0x5c1789['author']['id']||_0x9a2807['subType']!==_0x5c1789['subType'])continue;if(!Pt(_0x5c1789,_0x9a2807,['groupId']))continue;if('attribute'==_0x5c1789['type']&&_0x5c1789['data']['oldValue']!=_0x9a2807['data']['oldValue'])continue;if('attribute'==_0x5c1789['type']&&_0x5d4517['_isBlockAttribute'](_0x5c1789['data']['key']))continue;if('formatBlock'==_0x5c1789['type']){const _0x4112ea=_0x5d4517['editor']['model'],_0x1da573=_0x5c1789['getContainedElement']();if(_0x1da573&&(_0x4112ea['schema']['isObject'](_0x1da573)||_0x4112ea['schema']['isLimit'](_0x1da573)))continue;}const _0x3c4978=_0x468062['get'](_0x5c1789),_0xb9716a=_0x37cd76['get'](_0x5c1789),_0x4bf487=_0x37cd76['get'](_0x9a2807),_0x22708f=_0x5c1789['commentThread']&&_0x5c1789['commentThread']['length'],_0x550323=_0x9a2807['commentThread']&&_0x9a2807['commentThread']['length'];if(!_0x22708f&&_0x3c4978(_0x4bf487,_0xb9716a))return _0x5d4517['_joinSuggestions'](_0x9a2807,_0x5c1789),_0x37cd76['delete'](_0x5c1789),!0x0;if(!_0x550323&&_0x3c4978(_0xb9716a,_0x4bf487))return _0x5d4517['_joinSuggestions'](_0x5c1789,_0x9a2807),_0x37cd76['delete'](_0x9a2807),!0x0;}return!0x1;}}['_joinSuggestions'](_0xbe3793,_0x4b03aa){if(_0xbe3793['isMultiRange']){for(const _0x5f0c0b of _0x4b03aa['getRanges']())_0xbe3793['addRange'](_0x5f0c0b);}else{const _0x68af23=_0x4b03aa['getFirstRange']()['end'];this['_setSuggestionRange'](_0xbe3793,this['_model']['createRange'](_0xbe3793['getFirstRange']()['start'],_0x68af23));}_0x4b03aa['removeMarkers']();}['_getMarkerAnnouncementText'](_0x25639e,_0x525f47){const _0x11e011=_0x25639e['startsWith']('format')||_0x25639e['startsWith']('attribute')?'FORMATTING':_0x25639e['toUpperCase']();return o(this['editor']['locale'],_0x525f47+'_'+_0x11e011+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x3667e3=this['editor'];if(!_0x3667e3['ui'])return;const {ariaLiveAnnouncer:_0xe05dfd}=_0x3667e3['ui'];_0x23dbc7(this['_model'],({left:_0x2c5398,entered:_0x2cbd5c})=>{for(const _0x2d2963 of _0x2c5398){const {group:_0x1de342,type:_0x4ccc7d}=this['_splitMarkerName'](_0x2d2963['name']);if('suggestion'===_0x1de342){_0xe05dfd['announce'](this['_getMarkerAnnouncementText'](_0x4ccc7d,'LEAVE'));break;}}for(const _0x3756ac of _0x2cbd5c){const {group:_0x330c5d,type:_0x45600e}=this['_splitMarkerName'](_0x3756ac['name']);if('suggestion'===_0x330c5d){_0xe05dfd['announce'](this['_getMarkerAnnouncementText'](_0x45600e,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4d43da){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3be712=this['editor'],_0x50b131=_0x3be712['model']['document']['differ']['getChanges']();if(0x0==_0x50b131['length'])return!0x1;const _0x2fd848=[],_0x3b178e=_0x50b131['filter'](_0x4bba23=>'attribute'==_0x4bba23['type']),_0x3685d0=_0x50b131['filter'](_0x10674d=>'insert'==_0x10674d['type']&&'$text'!=_0x10674d['name']),_0x23af44=_0x50b131['filter'](_0x49b8db=>'remove'==_0x49b8db['type']&&'$text'!=_0x49b8db['name']);for(const _0x21f9d1 of _0x3b178e)_0x2fd848['push']({'key':_0x21f9d1['attributeKey'],'newValue':_0x21f9d1['attributeNewValue'],'oldValue':_0x21f9d1['attributeOldValue'],'range':Ot(_0x21f9d1['range'],_0x3be712['model'])});for(const _0x116546 of _0x3685d0){const _0x59befc=_0x23af44['find'](_0x339403=>_0x339403['position']['isEqual'](_0x116546['position']));_0x59befc&&_0x2fd848['push']({'key':m,'newValue':_0x116546['name'],'oldValue':_0x59befc['name'],'range':_0x3be712['model']['createRangeOn'](_0x116546['position']['nodeAfter'])});}return 0x0!=_0x2fd848['length']&&this['_reduceExistingSuggestions'](_0x4d43da,_0x2fd848);}['_processAttributeSuggestions'](_0x11ad81){let _0x14e0de=!0x1;const _0xecdb1a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x34fc81=>_0x34fc81['data']['newRange']&&_0x34fc81['name']['startsWith']('suggestion:attribute:'));for(const _0x4ecc7d of _0xecdb1a){const {subType:_0x2631c2,id:_0x5f2069}=this['_splitMarkerName'](_0x4ecc7d['name']),_0x1d735b=_0x2631c2['split']('|')[0x0];for(const _0x24833e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x24833e['id']!=_0x5f2069&&'attribute'==_0x24833e['type']&&_0x24833e['data']&&_0x24833e['data']['key']==_0x1d735b&&_0x24833e['getFirstRange']()['isIntersecting'](_0x4ecc7d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x24833e,_0x4ecc7d['data']['newRange'],_0x11ad81),_0x14e0de=!0x0);}return _0x14e0de;}['_recordAttributeChanges'](_0x1af864){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1af864();}['_isRegisteredAttribute'](_0x483e6e){const _0x1fe993=this['_isBlockAttribute'](_0x483e6e),_0x34d3d5=this['_inlineAttributeKeys']['has'](_0x483e6e);return _0x1fe993||_0x34d3d5;}['_reduceExistingSuggestions'](_0x3a7272,_0x3a9ecf){if(0x0==_0x3a9ecf['length'])return!0x1;let _0x240f7c=!0x1;for(const _0x16950f of _0x3a9ecf){const _0x5c8357=this['_findSuggestions'](_0x16950f['range'],'attribute')['filter'](_0x116b79=>!_0x116b79['meta']['isNextTo'])['map'](_0x56a7d0=>_0x56a7d0['suggestion']),_0x229cbc=_0x42152e({'newValue':_0x16950f['newValue']});_0x5c8357['filter'](_0x38a525=>{const [_0x39d65c,_0x49a29d]=_0x38a525['subType']['split']('|');return _0x39d65c==_0x16950f['key']&&_0x49a29d!=_0x229cbc;})['forEach'](_0x315bac=>{this['_reduceSuggestionAttributeRange'](_0x315bac,_0x16950f['range'],_0x3a7272),_0x240f7c=!0x0;});}return _0x240f7c;}['_reduceSuggestionAttributeRange'](_0x499156,_0x3e20a4,_0x433eca){const _0x1750f8=_0x499156['getFirstRange']()['getDifference'](_0x3e20a4);0x0!==_0x1750f8['length']?0x1!==_0x1750f8['length']?this['_breakSuggestionMarker'](_0x499156,_0x3e20a4['start'],_0x3e20a4['end']):this['_setSuggestionRange'](_0x499156,_0x1750f8[0x0]):_0x433eca['removeMarker'](_0x499156['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x20090c){this['_editor']=_0x20090c,this['_model']=_0x20090c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3f6125,_0x43d019,_0x19d3de,_0x3318ee,_0x3b0922,_0x4d60a4){return new u(this['_model'],{'type':_0x3f6125,'subType':_0x43d019,'id':_0x19d3de,'author':_0x3318ee,'creator':_0x3318ee,'attributes':_0x3b0922,'onAttributesChange':_0x4d60a4,'onAccept':(..._0x338f84)=>this['getSuggestionCallback'](_0x3f6125,_0x43d019,'accept')(..._0x338f84),'onDiscard':(..._0x41d2dd)=>this['getSuggestionCallback'](_0x3f6125,_0x43d019,'discard')(..._0x41d2dd)});}['registerCustomCallback'](_0x5ee542,_0x35f0d8,_0x52596c,_0x360744){const _0x573e38=_0x5ee542+':'+_0x35f0d8+':'+_0x52596c;this['_customCallbacks']['set'](_0x573e38,_0x360744);}['getSuggestionCallback'](_0x1131d9,_0x1102b7,_0x202641){const _0x5caf8f=_0x1131d9+':'+_0x1102b7+':'+_0x202641;return this['_customCallbacks']['get'](_0x5caf8f)||this['_defaultCallbacks']['get'](_0x1131d9+':'+_0x202641);}['_registerDefaultCallbacks'](){const _0x35ca95=()=>!0x1,_0x4050f9=_0x5f1bb2=>{_0x5f1bb2['sort']((_0x215b8e,_0x50f01f)=>_0x215b8e['start']['isBefore'](_0x50f01f['start'])?0x1:-0x1),this['_model']['change'](_0x183032=>{for(const _0x3f5eb1 of _0x5f1bb2){let _0x15516a;_0x15516a=_0x3f5eb1['end']['isAtEnd']&&_0x3f5eb1['end']['parent']==_0x3f5eb1['start']['nodeAfter']?_0x183032['createSelection'](_0x3f5eb1['start']['nodeAfter'],'on'):_0x183032['createSelection'](_0x3f5eb1),this['_model']['deleteContent'](_0x15516a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5c07ea=(_0x53906c,_0x2b7ef2)=>{_0x2b7ef2&&this['_model']['change'](_0x3976df=>{const {commandName:_0x50cde2,commandParams:_0x4f33ed=[]}=_0x2b7ef2,_0x2b789b=_0x53906c['map'](_0xc67fc3=>(Tt(_0xc67fc3)&&(_0xc67fc3=this['_model']['createRange'](_0xc67fc3['end'])),_0xc67fc3))['filter'](_0x44e812=>'$graveyard'!==_0x44e812['root']['rootName']);if(_0x2b789b['length']<0x1)return;const _0x135c24=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x125263=>_0x45d820['fromRange'](_0x125263));_0x3976df['setSelection'](_0x2b789b);for(const _0x4c9dde of this['_editor']['commands']['commands']())_0x4c9dde['refresh']();_0x4f33ed['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x50cde2,..._0x4f33ed);const _0x5ace0d=_0x135c24['filter'](_0x296c46=>'$graveyard'!=_0x296c46['root']['rootName']);_0x5ace0d['length']>0x0&&_0x3976df['setSelection'](_0x5ace0d);for(const _0x2c6c2f of _0x135c24)_0x2c6c2f['detach']();});},_0xf618bb=(_0x7b9d0f,_0x55f78e)=>0x1==_0x7b9d0f['length']&&0x1==_0x55f78e['length']&&_0x7b9d0f[0x0]['end']['isEqual'](_0x55f78e[0x0]['start']),_0x46ce95=(_0xdeb511,_0x5eca38,_0x3d2b74,_0x3f7d8b)=>Ft(_0xdeb511,_0x5eca38,_0x3d2b74,_0x3f7d8b,this['_model'])?[_0xdeb511,_0x5eca38]:Ft(_0x5eca38,_0xdeb511,_0x3f7d8b,_0x3d2b74,this['_model'])?[_0x5eca38,_0xdeb511]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x35ca95),this['_defaultCallbacks']['set']('insertion:discard',_0x4050f9),this['_defaultCallbacks']['set']('insertion:join',_0xf618bb),this['_defaultCallbacks']['set']('insertion:chain',_0x46ce95),this['_defaultCallbacks']['set']('deletion:accept',_0x4050f9),this['_defaultCallbacks']['set']('deletion:discard',_0x35ca95),this['_defaultCallbacks']['set']('deletion:join',_0xf618bb),this['_defaultCallbacks']['set']('deletion:chain',_0x46ce95),this['_defaultCallbacks']['set']('formatInline:accept',_0x5c07ea),this['_defaultCallbacks']['set']('formatInline:discard',_0x35ca95),this['_defaultCallbacks']['set']('formatInline:join',_0xf618bb),this['_defaultCallbacks']['set']('formatInline:chain',_0x35ca95),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c07ea),this['_defaultCallbacks']['set']('formatBlock:discard',_0x35ca95),this['_defaultCallbacks']['set']('formatBlock:join',_0xf618bb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x35ca95),this['_defaultCallbacks']['set']('attribute:accept',_0x35ca95),this['_defaultCallbacks']['set']('attribute:discard',(_0xd83a84,_0x5a226b)=>{if(!_0x5a226b)return;const _0x152485=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2ecb9e=>{if(_0x5a226b['key']==m)for(const _0x384bba of _0xd83a84){const _0x373834=_0x384bba['start']['nodeAfter'],_0x4d51e6=_0x5a226b['oldValue'];_0x2ecb9e['rename'](_0x373834,_0x4d51e6);}else{if(_0x152485['_isBlockAttribute'](_0x5a226b['key'])){for(const _0x43f3ab of _0xd83a84)void 0x0!==_0x5a226b['oldValue']?_0x2ecb9e['setAttribute'](_0x5a226b['key'],_0x5a226b['oldValue'],_0x43f3ab['start']['nodeAfter']):_0x2ecb9e['removeAttribute'](_0x5a226b['key'],_0x43f3ab['start']['nodeAfter']);}else{for(const _0x4ff007 of _0xd83a84)_0x5a226b['oldValue']?_0x2ecb9e['setAttribute'](_0x5a226b['key'],_0x5a226b['oldValue'],_0x4ff007):_0x2ecb9e['removeAttribute'](_0x5a226b['key'],_0x4ff007);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xf618bb);}}function Rt(_0x4edd3c,_0x41d354,_0x31b028){for(const _0x3928fd of _0x41d354['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3928fd['root']==_0x3928fd)return!0x1;if(!_0x31b028['containsItem'](_0x3928fd))return!0x1;if(_0x4edd3c['isObject'](_0x3928fd)||_0x4edd3c['isLimit'](_0x3928fd))return!0x0;}return!0x1;}function Tt(_0x1d1cbd){return _0x1d1cbd['end']['parent']==_0x1d1cbd['start']['nodeAfter']&&_0x1d1cbd['end']['isAtStart'];}function Et(_0x4d057f,_0x5dd0c6,_0x3a8a5d,_0x47d0a7){const _0x44063b=_0x2d74dd=>!_0x2d74dd['item']['is']('$textProxy')&&!_0x47d0a7['isObject'](_0x2d74dd['item']),_0x4afa1a=_0x4d057f['start']['getLastMatchingPosition'](_0x44063b),_0x414a40=_0x4d057f['end']['getLastMatchingPosition'](_0x44063b,{'direction':'backward'});return(!_0x4d057f['start']['isEqual'](_0x4afa1a)||!_0x4d057f['end']['isEqual'](_0x414a40))&&(_0x4afa1a['isBefore'](_0x414a40)?_0x3a8a5d['updateMarker'](_0x5dd0c6,{'range':_0x3a8a5d['createRange'](_0x4afa1a,_0x414a40)}):_0x3a8a5d['removeMarker'](_0x5dd0c6),!0x0);}function Vt(_0x27fed1){return _0x42152e(_0x27fed1);}function Ut(_0x339234){const _0x94df7b=_0x339234['start']['nodeAfter'];return _0x94df7b&&_0x94df7b['is']('element');}function Ot(_0x5d9366,_0x119b52){return null==_0x5d9366['end']['nodeBefore']&&_0x5d9366['end']['parent']==_0x5d9366['start']['nodeAfter']?Gt(_0x5d9366['start']['nodeAfter'],_0x119b52):_0x5d9366;}function Gt(_0x3c0949,_0x3a5227){const _0x4ff5c9=_0x3a5227['schema']['isObject'](_0x3c0949)||_0x3a5227['schema']['isSelectable'](_0x3c0949);return _0x3a5227['createRange'](_0x3a5227['createPositionAt'](_0x3c0949,'before'),_0x4ff5c9?_0x3a5227['createPositionAfter'](_0x3c0949):_0x3a5227['createPositionAt'](_0x3c0949,'end'));}function Ft(_0x457679,_0x5f5b66,_0x4c6a8f,_0x9c2651,_0x53c7db){if(!Pt(_0x457679,_0x5f5b66))return!0x1;if(_0x4c6a8f['end']['isEqual'](_0x9c2651['start']))return!0x0;if(_0x457679['type']!=_0x5f5b66['type'])return!0x1;if(!_0x4c6a8f['end']['isTouching'](_0x9c2651['start']))return!0x1;const _0x4afa7d=_0x53c7db['createRange'](_0x4c6a8f['end'],_0x9c2651['start'])['getWalker']();for(const _0x12fa20 of _0x4afa7d)if(['elementStart','elementEnd']['includes'](_0x12fa20['type'])&&_0x53c7db['schema']['isLimit'](_0x12fa20['item']))return!0x1;return!0x0;}function Pt(_0x3a53f9,_0x52eaf0,_0x110449=[]){return!(!_0x3a53f9['_isDataLoaded']||!_0x52eaf0['_isDataLoaded'])&&_0x15c9fb(Bt(_0x3a53f9['attributes'],_0x110449),Bt(_0x52eaf0['attributes'],_0x110449));}function Lt(_0x517706,_0x12ec1f){const _0x33e733=Ht(_0x517706['attributes']),_0x97e684=Ht(_0x12ec1f);if(!_0x517706['_isDataLoaded'])return!0x1;for(const _0x311e8a of Object['keys'](_0x97e684))if(!_0x15c9fb(_0x33e733[_0x311e8a],_0x97e684[_0x311e8a]))return!0x1;return!0x0;}function Ht(_0x34a03a){const _0x2779db=Object['assign']({},_0x34a03a);return delete _0x2779db['skipNestingCheck'],delete _0x2779db['tablePasteChainId'],_0x2779db;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x24d01d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5369a9,_0x3f0b00,_0x1f0cc4,_0x340584){super(),this['model']=_0x3f0b00,this['view']=_0x1f0cc4,this['commentThreadController']=_0x340584,this['_editor']=_0x5369a9,this['_acceptCommand']=_0x5369a9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5369a9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1aebe2,_0x1aee83)=>_0x1aebe2||_0x1aee83),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x136fdb=>_0x136fdb&&this['_editor']['model']['canEditAt'](_0x3f0b00['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x399f0b=>_0x399f0b&&this['_editor']['model']['canEditAt'](_0x3f0b00['getRanges']())),this['_pendingAction']=null,_0x1f0cc4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1f0cc4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1f0cc4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1f0cc4,'change:isDirty',()=>{_0x1f0cc4['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x44d55b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x44d55b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5662df{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3f2436,_0x4c3b7c,_0x38c372,_0x496cc9){super(_0x3f2436),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4c3b7c['authoredAt']),this['bind']('authoredAt')['to'](_0x4c3b7c),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4c3b7c,this['_localUser']=_0x38c372,this['_config']=_0x496cc9,_0x496cc9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1f60c2}=this['_config'];this['commentsListView']=new _0x1f60c2(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',_0x99f55=>_0x99f55+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x376035,_0x100f04)=>_0x376035||!!_0x100f04);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x23a7fe}=this['_config'],_0x5a6209=new _0x23a7fe(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x6726f7=_0x5a6209['commentInputView'];return _0x5a6209['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x6726f7,'value',(_0x1b8089,_0x53785e,_0x4e1116)=>!!_0x4e1116||_0x1b8089&&!_0x53785e),_0x6726f7['on']('submit',(_0x563105,_0xc1482a)=>{this['fire']('addComment',_0xc1482a),_0x6726f7['editor']['setData']('');}),_0x6726f7['on']('cancel',()=>this['focus']()),_0x6726f7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5a6209;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5acef5,_0x7f61d7,_0xc4b00f,_0x418072){super(_0x5acef5,_0x7f61d7,_0xc4b00f,_0x418072),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x9deba3=>_0x9deba3&&_0x9deba3[0x0]?_0x9deba3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x8996d1,_0x3b8ab8)=>{let _0x2fc0ee='';for(const _0x437c63 of _0x8996d1)_0x2fc0ee+='<p>'+ds(_0x437c63['content'],_0x437c63['color'])+'</p>';return _0x3b8ab8?_0x2fc0ee:_0x1ec19c(_0x2fc0ee,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5acef5,'Accept\x20suggestion'),_0x1e3b05['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5acef5,'Discard\x20suggestion'),_0x1e3b05['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3b1e71(_0x5acef5,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x19d6da=this['bindTemplate'],_0x509cf4=[{'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':_0x19d6da['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x19d6da['to']('authoredAt',_0xda1c66=>this['_config']['formatDateTime'](_0xda1c66))}]}]},{'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']&&_0x509cf4['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x59ae15={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x19d6da['if']('isActive','ck-suggestion-wrapper--active'),_0x19d6da['to']('type',_0x4f3eec=>'ck-suggestion-'+_0x4f3eec),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':_0x509cf4}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x59ae15['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)),_0x59ae15;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x11f10c,_0x3f984a,_0x35e3ec)=>{this['_descriptionElement']['innerHTML']=_0x35e3ec;});}['_createButton'](_0x3ca9f2,_0x4876b6,_0x54b519,_0x79d98d,_0x2b5ea3){const _0x5ea058=new _0x18c11e(this['locale']);return _0x5ea058['set']({'label':_0x3ca9f2,'icon':_0x4876b6,'tooltip':!0x0,'tooltipPosition':_0x2b5ea3}),_0x5ea058['extendTemplate']({'attributes':{'class':_0x54b519}}),_0x5ea058['on']('execute',()=>{this['fire'](_0x79d98d,this['_model']['id']);}),_0x5ea058;}['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;}}function ds(_0x2963e9,_0x4cb28a){let _0x4e0540='';return _0x4e0540+=_0x2963e9['split']('*')['map']((_0x5217d4,_0x3ffc45)=>_0x3ffc45%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5217d4)+'</span>':us(_0x5217d4))['join'](''),_0x4cb28a&&(_0x4e0540+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4cb28a['value']+'\x22\x20title=\x22'+_0x4cb28a['title']+'\x22></span>'),_0x4e0540;}function us(_0x4dfc3e){const _0x43866e=document['createElement']('span');return _0x43866e['innerText']=_0x4dfc3e,_0x43866e['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 _0x1c9f3d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x505203,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x11b1ce){super(_0x11b1ce),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x38ec03=this['editor']['config'];_0x38ec03['define']('trackChanges.SuggestionThreadView',ne),_0x38ec03['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x38ec03['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x296f4c,_0x5ec4dc){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x47282e,_0x4b58d2]of this['_handleControllerBuffer']){const _0x34d545=this['_suggestionToController']['has'](_0x47282e);_0x34d545||_0x4b58d2?_0x34d545&&_0x4b58d2&&this['_destroyController'](_0x47282e):this['_initializeController'](_0x47282e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x296f4c,_0x5ec4dc);}['init'](){const _0x3495f4=this['editor'],_0x346c47=_0x3495f4['plugins']['get']('TrackChangesEditing'),_0x57e15f=_0x3495f4['plugins']['get']('Annotations'),_0x323a24=_0x3495f4['plugins']['get']('EditorAnnotations'),_0x56580c=_0x3495f4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x323a24['addSourceCollector'](()=>{const _0x2b5d96=[];for(const [_0x48b7ab,_0x802a77]of Array['from'](this['_suggestionToController'])){const _0x1abed7=_0x48b7ab['getAllAdjacentSuggestions'](),_0x277cb1=[];for(const _0xf6356 of _0x1abed7){if(!_0xf6356['isInContent'])continue;if(_0xf6356['isMultiRange']){_0x277cb1['push'](..._0xf6356['getRanges']());continue;}const _0x377ff3=_0xf6356['getFirstRange']();if(_0x277cb1['length']>0x0){const _0xf2c65c=_0x277cb1[0x0]['getJoined'](_0x377ff3);if(_0xf2c65c){_0x277cb1[0x0]=_0xf2c65c;continue;}}_0x277cb1['push'](_0x377ff3);}_0x2b5d96['push']([_0x802a77['view'],_0x277cb1]);}return _0x2b5d96;}),this['listenTo'](_0x346c47,'suggestionLoaded',(_0x3976bf,_0xbc5c67)=>{this['listenTo'](_0xbc5c67,'change:previous',(_0x45632c,_0x5b1d09,_0x5585e2,_0x291422)=>{_0xbc5c67['isInContent']&&(null==_0x5585e2?(this['_updateController'](_0x291422['head']),this['_handleSuggestionControllerDelayed'](_0xbc5c67,!0x1)):(this['_updateController'](_0x5585e2['head']),null==_0x291422&&this['_handleSuggestionControllerDelayed'](_0xbc5c67,!0x0)));}),null!==_0xbc5c67['previous']?this['_updateController'](_0xbc5c67['head']):this['_handleSuggestionControllerDelayed'](_0xbc5c67,!0x1);}),this['listenTo'](_0x346c47,'suggestionUnloaded',(_0x5a36b3,_0x56d463,_0x224997)=>{this['stopListening'](_0x56d463,'change:previous'),this['_handleControllerBuffer']['delete'](_0x56d463),this['_suggestionToController']['has'](_0x56d463)&&this['_destroyController'](_0x56d463),_0x224997&&this['_updateController'](_0x224997['head']);}),this['listenTo'](_0x346c47,'suggestionChanged',(_0xf53612,_0x2f9c3c)=>{this['_updateController'](_0x2f9c3c);}),this['listenTo'](_0x57e15f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x56580c,'addComment',(_0x5db038,{threadId:_0x5e3628,isFromAdapter:_0x1899bd})=>{if(_0x1899bd||!_0x346c47['hasSuggestion'](_0x5e3628))return;const _0x1c5e9d=_0x346c47['getSuggestion'](_0x5e3628);this['_suggestionToController']['get'](_0x1c5e9d)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x42f4ae=this['editor']['plugins']['get']('Annotations'),_0x7e9bb9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18b988=Array['from'](_0x42f4ae['activeAnnotations'],_0x277119=>_0x277119['innerView'])['filter'](_0x233414=>this['_viewToController']['has'](_0x233414)),_0x4e7ffb=[];for(const _0x58b34f of _0x18b988){const _0x39c110=this['_viewToController']['get'](_0x58b34f)['model']['getAllAdjacentSuggestions']();_0x4e7ffb['push'](..._0x39c110['reduce']((_0x545af2,_0x2937be)=>[..._0x545af2,..._0x2937be['getMarkerNames']()],[]));}_0x7e9bb9['activeMarkers']=_0x4e7ffb;}['_addUIComponentsToFactory'](){const _0x4d73a5=this['editor'],_0x59fe39=_0x4d73a5['locale'],_0xa53df0=o(_0x59fe39,'Track\x20changes'),_0x5af2c4=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0xa53df0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x59fe39,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x59fe39,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x59fe39,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x59fe39,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1cc313 of _0x5af2c4)if(ae(_0x1cc313)){const _0x5eee01=_0x4d73a5['commands']['get'](_0x1cc313['model']['commandName']);_0x1cc313['model']['bind']('isOn','isEnabled')['to'](_0x5eee01,'value','isEnabled');}_0x4d73a5['ui']['componentFactory']['add']('trackChanges',_0x53a477=>this['_createToolbarButton'](_0x53a477,_0x5af2c4,_0xa53df0)),_0x4d73a5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x550107=>this['_createMenuBarMenu'](_0x550107,_0x5af2c4,_0xa53df0));}['_createToolbarButton'](_0x446a87,_0x3cbc45,_0x5536b5){const _0x3eef1f=zt(_0x446a87,Zt),_0x4b32f2=this['editor']['commands']['get']('trackChanges');_0x3eef1f['buttonView']['set']({'tooltip':_0x5536b5,'label':_0x5536b5,'icon':ie}),_0x3eef1f['buttonView']['bind']('isOn')['to'](_0x4b32f2,'value'),_0x3eef1f['buttonView']['on']('execute',()=>{_0x4b32f2['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x3eef1f,_0x3cbc45,{'role':'menu'});const _0xef49ea=[];for(const _0x56f9f1 of _0x3cbc45)ae(_0x56f9f1)&&_0xef49ea['push'](this['editor']['commands']['get'](_0x56f9f1['model']['commandName']));const _0x29d80b=_0x3eef1f['buttonView'];return _0x29d80b['actionView']['unbind']('isEnabled'),_0x29d80b['arrowView']['unbind']('isEnabled'),_0x29d80b['actionView']['bind']('isEnabled')['to'](_0x4b32f2,'isEnabled'),_0x29d80b['arrowView']['bind']('isEnabled')['toMany'](_0xef49ea,'isEnabled',(..._0x3c96b8)=>_0x3c96b8['some'](_0x1629b4=>_0x1629b4)),_0x3eef1f['on']('execute',_0x43a187=>{this['editor']['execute'](_0x43a187['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3eef1f;}['_createMenuBarMenu'](_0x676718,_0x542ea3,_0x28925c){const _0x368a6e=new Kt(_0x676718),_0xdc293=this['editor']['commands']['get']('trackChanges');_0x368a6e['buttonView']['set']({'label':_0x28925c,'icon':ie});const _0x4742ae=new Qt(_0x676718);for(const _0x312be0 of _0x542ea3){if('separator'==_0x312be0['type']){_0x4742ae['items']['add'](new Jt(_0x676718));continue;}const _0x316122=new Xt(_0x676718,_0x368a6e),_0x119b04=new Yt(_0x676718),_0x5192e1=_0x312be0['model'];_0x119b04['bind'](...Object['keys'](_0x5192e1))['to'](_0x5192e1),_0x119b04['delegate']('execute')['to'](_0x368a6e),_0x119b04['on']('execute',()=>{this['editor']['execute'](_0x5192e1['commandName']),this['editor']['editing']['view']['focus']();}),_0x316122['children']['add'](_0x119b04),_0x4742ae['items']['add'](_0x316122);}return _0x368a6e['bind']('isEnabled')['to'](_0xdc293,'isEnabled'),_0x368a6e['panelView']['children']['add'](_0x4742ae),_0x368a6e;}['_initializeController'](_0x5d45fe){const _0x33d44f=this['editor'],_0xec89aa=_0x33d44f['config'],_0x3844cf=_0x33d44f['plugins']['get']('Annotations'),_0x46d7ba=_0x33d44f['plugins']['get']('CommentsRepository'),_0x22b960=_0x33d44f['plugins']['get']('EditorAnnotations'),_0x140784=_0x33d44f['plugins']['get'](_0x505203)['me'],_0x3a0a08=_0xec89aa['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x42eb78,CommentThreadInputView:_0x1c1fc4}=_0x33d44f['plugins']['get']('CommentsUI');let _0x25d251,_0x1b964e;this['_annotationViews']['has'](_0x5d45fe['id'])?(_0x1b964e=this['_annotationViews']['get'](_0x5d45fe['id']),_0x25d251=_0x1b964e['mainView']):(_0x25d251=new _0x3a0a08(_0x33d44f['locale'],_0x5d45fe,_0x140784,{'disableComments':this['_disableComments'],'editorConfig':_0xec89aa['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xec89aa['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xec89aa['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xec89aa['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1b3aba(_0xec89aa['get']('locale')),'CommentView':_0xec89aa['get']('comments')['CommentView'],'CommentsListView':_0x42eb78,'CommentThreadInputView':_0x1c1fc4}),_0x25d251['acceptButton']['on']('execute',()=>{_0x33d44f['editing']['view']['focus']();}),_0x25d251['discardButton']['on']('execute',()=>{_0x33d44f['editing']['view']['focus']();}),_0x1b964e=_0x3844cf['createAnnotationView'](this['editor']['locale'],_0x25d251),_0x1b964e['bind']('isDirty')['to'](_0x25d251,'isDirty'),_0x1b964e['bind']('length')['to'](_0x25d251),_0x1b964e['bind']('type')['to'](_0x25d251,'type',_0x3e2dc4=>'suggestion-'+_0x3e2dc4),this['_annotationViews']['set'](_0x5d45fe['id'],_0x1b964e));const _0x51b129=_0x46d7ba['createCommentThreadController'](_0x5d45fe['commentThread'],_0x25d251),_0x18566e=new oe(_0x33d44f,_0x5d45fe,_0x25d251,_0x51b129),_0x232889=_0x5d45fe['getAllAdjacentSuggestions']()['filter'](_0x44e86c=>_0x44e86c['isInContent']);_0x25d251['descriptionParts']=_0x33d44f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x232889),this['_suggestionToController']['set'](_0x5d45fe,_0x18566e),this['_viewToController']['set'](_0x25d251,_0x18566e);const _0x23ecc6=_0x3844cf['createAnnotation']({'view':_0x1b964e,'target':()=>{const _0x27dcaa=[],_0xe53a9a=_0x5d45fe['getAllAdjacentSuggestions']()['filter'](_0x26ce1b=>_0x26ce1b['isInContent']);for(const _0x1d470f of _0xe53a9a)_0x27dcaa['push'](..._0x1d470f['getMarkers']());return _0x141286(_0x33d44f['editing'],_0x27dcaa);},'type':()=>'suggestion-'+_0x18566e['view']['type']});_0x46d7ba['_bindAnnotationToEditors'](_0x25d251,_0x23ecc6),_0x3844cf['add'](_0x23ecc6),_0x22b960['registerAnnotation'](_0x23ecc6);}['_destroyController'](_0x38badc){const _0x410d87=this['editor']['plugins']['get']('CommentsRepository'),_0x4d93ec=this['editor']['plugins']['get']('Annotations'),_0x31c2ca=this['_suggestionToController']['get'](_0x38badc),_0x3b877e=_0x31c2ca['view'],_0x30535c=_0x4d93ec['getByInnerView'](_0x3b877e);_0x410d87['_unbindEditors'](_0x3b877e),_0x30535c&&_0x4d93ec['remove'](_0x30535c),this['_suggestionToController']['delete'](_0x38badc),this['_viewToController']['delete'](_0x3b877e),_0x31c2ca['destroy']();}['_updateController'](_0x523108){if(!_0x523108['isInContent']||!this['_suggestionToController']['has'](_0x523108))return;const _0x5bc628=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa6bb5c=this['_suggestionToController']['get'](_0x523108),_0x1dcb5a=_0x523108['getAllAdjacentSuggestions']();_0xa6bb5c['view']['descriptionParts']=_0x5bc628['descriptionFactory']['getDescriptions'](_0x1dcb5a);}['destroy'](){for(const _0x5c6387 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c6387);for(const _0x2c1a38 of this['_annotationViews']['values']())_0x2c1a38['mainView']['destroy']();super['destroy']();}}function ae(_0x5b3bd9){return'model'in _0x5b3bd9;}class k extends _0x1c9f3d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x417982){this['editor']['plugins']['get'](p)['adapter']=_0x417982;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4412ec){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4412ec);}['getSuggestions']({skipNotAttached:_0x39baf6=!0x1,toJSON:_0x394145=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x39baf6,'toJSON':_0x394145});}['getSuggestion'](_0x30a0ef){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x30a0ef);}}const T=['Pagination'];class P extends _0x1c9f3d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4d7b1a=this['editor'];if(_0x4d7b1a['config']['define']('trackChangesData.editorCreator',_0x5d2f09=>{const _0x1a424a=_0x4d7b1a['model']['document']['getRootNames']()['reduce']((_0x59bebd,_0x1c448a)=>(_0x59bebd[_0x1c448a]='',_0x59bebd),{});return _0x4d7b1a['constructor']['create'](_0x1a424a,_0x5d2f09);}),'function'!=typeof _0x4d7b1a['config']['get']('trackChangesData')['editorCreator'])throw new _0x109ba3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4a92dd){return N(this['editor'],!0x0,_0x4a92dd);}['getDataWithDiscardedSuggestions'](_0xbe918a){return N(this['editor'],!0x1,_0xbe918a);}}class D extends _0x1c9f3d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x10be31){super(_0x10be31),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x2c1d60){return void 0x0!==_0x2c1d60['getRootsAttributes'];}async function N(_0x3933ad,_0x3ab0be,_0x1dca90){const _0x522155=_0xf72f50(_0x3933ad,T);_0x522155['plugins']['push'](p,D),_0x522155['rootsAttributes']=v(_0x3933ad)?_0x3933ad['getRootsAttributes']():void 0x0;const _0x5d52a2=document['createDocumentFragment'](),_0x57ca1e=_0x3933ad['config']['get']('trackChangesData')['editorCreator'],_0x2eeee2=await _0x57ca1e(_0x522155,()=>function(_0x230ebb){const _0x23046f=document['createElement']('div');return _0x230ebb['appendChild'](_0x23046f),_0x23046f;}(_0x5d52a2));!function(_0x3520ca,_0x5e1b3a){const _0x1b00ac=_0x3520ca['model']['document']['getRootNames']()['reduce']((_0x5797bc,_0x28264a)=>(_0x5797bc[_0x28264a]=_0x3520ca['data']['get']({'rootName':_0x28264a}),_0x5797bc),{}),_0xacc52f=_0x3520ca['plugins']['get']('Users')['users']['map'](_0x29015a=>({'id':_0x29015a['id'],'name':_0x29015a['name']})),_0x19827f=_0x3520ca['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x241088=_0x3520ca['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x245377=_0x5e1b3a['plugins']['get']('Users'),_0x4f4823=_0x5e1b3a['plugins']['get']('TrackChangesEditing'),_0x4f7fc4=_0x5e1b3a['plugins']['get']('CommentsRepository');for(const _0x295977 of _0xacc52f)_0x245377['getUser'](_0x295977['id'])||_0x245377['addUser'](_0x295977);_0x245377['me']||_0x245377['useAnonymousUser']();for(const _0xcc5fad of _0x241088)_0x4f7fc4['addCommentThread'](_0xcc5fad);for(const _0x583ab7 of _0x19827f)_0x4f4823['addSuggestionData'](_0x583ab7);_0x5e1b3a['data']['set'](_0x1b00ac);}(_0x3933ad,_0x2eeee2),_0x2eeee2['execute'](_0x3ab0be?'acceptAllSuggestions':'discardAllSuggestions');const _0x242124=v(_0x2eeee2)?_0x2eeee2['getFullData'](_0x1dca90):_0x2eeee2['data']['get'](_0x1dca90);return await _0x2eeee2['destroy'](),_0x242124;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|