@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240718.0 → 0.0.0-nightly-20240720.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/mergefields.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
|
-
_0x2ded99(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3a234c,_0x3e864a){super(),this['id']=_0x3e864a['id'],this['type']=_0x3e864a['type'],this['subType']=_0x3e864a['subType']||null,this['author']=_0x3e864a['author'],this['creator']=_0x3e864a['creator']||_0x3e864a['author'],this['isExternal']=Boolean(_0x3e864a['attributes']&&_0x3e864a['attributes']['@external']),this['data']=null,this['_model']=_0x3a234c,this['_onAccept']=_0x3e864a['onAccept'],this['_onDiscard']=_0x3e864a['onDiscard'],this['_onAttributesChange']=_0x3e864a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3e864a['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 _0x3ef1e6=this;for(;_0x3ef1e6['previous'];)_0x3ef1e6=_0x3ef1e6['previous'];return _0x3ef1e6;}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'](_0x35afb9){this['_markerNames']['add'](_0x35afb9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x930dea=>this['_model']['markers']['get'](_0x930dea))['filter'](_0x10f0db=>_0x10f0db);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2ecc62=>{for(const _0x28a469 of this['getMarkers']())_0x2ecc62['removeMarker'](_0x28a469);}),this['_markerNames']['clear']();}['removeMarker'](_0x3defc9){this['_model']['change'](_0xca7baf=>{_0xca7baf['removeMarker'](_0x3defc9);}),this['_markerNames']['delete'](_0x3defc9);}['addRange'](_0x151d4e){const _0x1a84a7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1a84a7),this['_model']['change'](_0x199ea1=>{_0x199ea1['addMarker'](_0x1a84a7,{'range':_0x151d4e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x35fe9a){for(const _0x399ab2 of this['getRanges']())if(_0x399ab2['isIntersecting'](_0x35fe9a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2bb758=>_0x2bb758['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x577b22,_0x3d0ca4)=>[..._0x577b22,..._0x3d0ca4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1856c7=this['getRanges']();if(0x1!=_0x1856c7['length'])return null;const _0x517216=_0x1856c7[0x0],_0x30890c=_0x517216['start']['nodeAfter'],_0x3105a6=_0x517216['end']['nodeBefore'];return _0x30890c instanceof _0x23a60a?_0x30890c!=_0x3105a6?null:_0x30890c: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 _0x30f76f=[];let _0x4bc40e=this['head'];for(;_0x4bc40e;)_0x30f76f['push'](_0x4bc40e),_0x4bc40e=_0x4bc40e['next'];return _0x30f76f;}['setAttribute'](_0x5db38d,_0x46daac){const _0xf286ea=_0x459c5f(this['attributes']);_0x804ae2(_0xf286ea,_0x5db38d,_0x46daac),_0x718abf(_0xf286ea,this['attributes'])||(this['attributes']=_0xf286ea,this['_onAttributesChange'](_0xf286ea));}['removeAttribute'](_0x1f0bdc){const _0x1efb08=_0x459c5f(this['attributes']);_0x203370(_0x1efb08,_0x1f0bdc),_0x718abf(_0x1efb08,this['attributes'])||(this['attributes']=_0x1efb08,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 _0x2905f1()['substr'](0x1,0x5);}}function o(_0x38a1f2,_0x47f15b,_0x40a8ce){const t=_0x38a1f2['t'];switch(_0x47f15b){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',_0x40a8ce);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x40a8ce);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x40a8ce);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x40a8ce);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x40a8ce);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',_0x40a8ce);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x40a8ce);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',_0x40a8ce);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x40a8ce);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x40a8ce);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x40a8ce);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x40a8ce);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x40a8ce);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x40a8ce);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x40a8ce);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x40a8ce);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x40a8ce);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x40a8ce);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x40a8ce);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x40a8ce);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x40a8ce);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x40a8ce);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x40a8ce);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'},_0x40a8ce);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x40a8ce);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x40a8ce);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x40a8ce);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x40a8ce);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x40a8ce);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'},_0x40a8ce);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x40a8ce);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x40a8ce);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x40a8ce);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x40a8ce);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'},_0x40a8ce);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x40a8ce);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'},_0x40a8ce);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'},_0x40a8ce);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x40a8ce);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'},_0x40a8ce);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x40a8ce);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'},_0x40a8ce);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x40a8ce);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x40a8ce);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x40a8ce);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'},_0x40a8ce);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'},_0x40a8ce);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 _0x47f15b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xeedf9e,_0x3f79ac){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xeedf9e,this['_locale']=_0x3f79ac;}['getDescriptions'](_0x99434f){const _0x58d667=[],_0x528709=new Set(),_0x32d3db=new Set();for(let _0x1c0ac0=0x0;_0x1c0ac0<_0x99434f['length'];_0x1c0ac0++){const _0x2267dc=_0x99434f[_0x1c0ac0];if(!_0x2267dc['isInContent'])continue;const _0x1661a3=this['_handleCustomCallbackDescription'](_0x2267dc);if(_0x1661a3){if(null!=_0x2267dc['subType']){if(_0x528709['has'](_0x2267dc['subType']))continue;_0x528709['add'](_0x2267dc['subType']);}_0x58d667['push'](_0x1661a3);}else{if('attribute'!=_0x2267dc['type'])'insertion'!=_0x2267dc['type']&&'deletion'!=_0x2267dc['type']||this['_handleInsertRemoveSuggestionDescription'](_0x58d667,_0x2267dc,_0x99434f[_0x1c0ac0+0x1]);else{const _0xe6b10c=_0x2267dc['data']['key'];if(_0x32d3db['has'](_0xe6b10c))continue;_0x32d3db['add'](_0x2267dc['data']['key']),_0xe6b10c==m?this['_handleRenameSuggestionDescription'](_0x58d667,_0x2267dc):this['_handleAttributeSuggestionDescription'](_0x58d667,_0x2267dc);}}}return this['_resolveDescriptionItems'](_0x58d667);}['registerDescriptionCallback'](_0x1452ad){this['_customCallbacks']['push'](_0x1452ad);}['registerElementLabel'](_0x7a5aa0,_0x4e7494,_0x1e055d=_0x2bf5ee['normal']){'function'==typeof _0x7a5aa0?_0x5a42d9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x7a5aa0,'label':_0x4e7494,'priority':_0x1e055d}):this['_itemLabels']['set'](_0x7a5aa0,_0x4e7494);}['registerAttributeLabel'](_0x423229,_0x5185bf){this['_attributeLabels']['set'](_0x423229,_0x5185bf);}['getItemLabel'](_0x4ebaf6,_0x42b259=0x1){let _0x414888;for(const _0x25c87a of this['_itemLabelsCallbacks'])if(_0x25c87a['matchingCallback'](_0x4ebaf6)){_0x414888=_0x25c87a['label'];break;}return _0x414888||(_0x414888=this['_itemLabels']['get'](_0x4ebaf6['name'])),_0x414888?_0x414888(_0x42b259):0x1!==_0x42b259?_0x42b259+'\x20'+_0x4ebaf6['name']+'s':''+_0x4ebaf6['name'];}['_addDescriptionItems'](_0x37b981,_0x2e3d16){const _0x51b460=_0x2e3d16['getFirstRange']()['getWalker'](),_0x364a75='insertion'==_0x2e3d16['type']?'add':'remove';for(const _0x4aae09 of _0x51b460){const _0x779dd9=_0x4aae09['item'],_0x27ce9e=_0x37b981[_0x37b981['length']-0x1];if(_0x779dd9['is']('$textProxy'))_0x27ce9e&&_0x27ce9e['type']['indexOf']('Container')>-0x1&&_0x37b981['pop'](),_0x27ce9e&&'text'==_0x27ce9e['type']?_0x27ce9e[_0x364a75]+=_0x779dd9['data']:_0x37b981['push']({'type':'text','add':'add'==_0x364a75?_0x779dd9['data']:'','remove':'remove'==_0x364a75?_0x779dd9['data']:''});else{if(this['_schema']['isObject'](_0x779dd9)){const _0x4a4967=_0x779dd9;if(_0x27ce9e&&_0x27ce9e['type']['indexOf']('Container')>-0x1&&_0x37b981['pop'](),'elementEnd'==_0x4aae09['type'])continue;_0x27ce9e&&_0x27ce9e['type']==_0x364a75+'Object'&&_0x27ce9e['element']['name']==_0x4a4967['name']?_0x27ce9e['quantity']++:_0x37b981['push']({'type':_0x364a75+'Object','element':_0x4a4967,'quantity':0x1}),_0x51b460['skip'](_0x3ee917=>!('elementEnd'==_0x3ee917['type']&&_0x3ee917['item']==_0x779dd9));}else{if(this['_schema']['checkChild'](_0x779dd9,'$text')||_0x779dd9['is']('element','softBreak')){const _0x59ed36=_0x779dd9;if('add'==_0x364a75&&'elementStart'==_0x4aae09['type']||'remove'==_0x364a75&&'elementEnd'==_0x4aae09['type'])continue;if(_0x27ce9e&&-0x1==_0x27ce9e['type']['indexOf']('Container')){'text'==_0x27ce9e['type']&&(_0x27ce9e[_0x364a75]+='\x0a');continue;}let _0x5daeca;if(_0x5daeca='add'==_0x364a75?_0x59ed36['nextSibling']&&!this['_schema']['isObject'](_0x59ed36['nextSibling'])?_0x59ed36['nextSibling']:null:_0x59ed36['previousSibling']&&!this['_schema']['isObject'](_0x59ed36['previousSibling'])?_0x59ed36['previousSibling']:null,_0x59ed36['isEmpty']||_0x5daeca&&_0x5daeca['isEmpty']){const _0x5166c7=_0x5daeca&&_0x5daeca['isEmpty']?_0x5daeca:_0x59ed36;_0x27ce9e&&_0x27ce9e['type']==_0x364a75+'EmptyContainer'&&_0x27ce9e['element']['name']==_0x5166c7['name']?_0x27ce9e['quantity']++:_0x37b981['push']({'type':_0x364a75+'EmptyContainer','element':_0x5166c7,'quantity':0x1});}else _0x37b981['push']({'type':_0x364a75+'Container','element':_0x59ed36});}}}}}['_resolveDescriptionItems'](_0x82e15b){const _0x16f1d7=this['_locale'],_0x369f4b=[],_0x7476b2=[],_0x3462bc=[];for(const _0x47588f of _0x82e15b)switch(_0x47588f['type']){case'text':if(_0x47588f['add']=_0x47588f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x47588f['remove']=_0x47588f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x47588f['add']&&''!=_0x47588f['remove']){_0x369f4b['push']({'type':'replace','content':o(_0x16f1d7,'REPLACE_TEXT',['\x22'+_0x47588f['remove']+'\x22','\x22'+_0x47588f['add']+'\x22'])});continue;}if(null!=_0x47588f['add']['match'](/^ +$/)){_0x369f4b['push']({'type':'insertion','content':o(_0x16f1d7,'*Insert:*\x20%0',o(_0x16f1d7,'ELEMENT_SPACE',_0x47588f['add']['length']))});continue;}if(null!=_0x47588f['remove']['match'](/^ +$/)){_0x369f4b['push']({'type':'deletion','content':o(_0x16f1d7,'*Remove:*\x20%0',o(_0x16f1d7,'ELEMENT_SPACE',_0x47588f['remove']['length']))});continue;}if(''!=_0x47588f['add']){_0x369f4b['push']({'type':'insertion','content':o(_0x16f1d7,'*Insert:*\x20%0','\x22'+_0x47588f['add']+'\x22')});continue;}_0x369f4b['push']({'type':'deletion','content':o(_0x16f1d7,'*Remove:*\x20%0','\x22'+_0x47588f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x369f4b['push']({'type':'insertion','content':o(_0x16f1d7,'*Insert:*\x20%0',this['getItemLabel'](_0x47588f['element'],_0x47588f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x369f4b['push']({'type':'deletion','content':o(_0x16f1d7,'*Remove:*\x20%0',this['getItemLabel'](_0x47588f['element'],_0x47588f['quantity']))});continue;case'addContainer':_0x369f4b['push']({'type':'insertion','content':o(_0x16f1d7,'*Split:*\x20%0',this['getItemLabel'](_0x47588f['element'],_0x47588f['quantity']))});continue;case'removeContainer':_0x369f4b['push']({'type':'deletion','content':o(_0x16f1d7,'*Merge:*\x20%0',this['getItemLabel'](_0x47588f['element'],_0x47588f['quantity']))});continue;case'addFormat':_0x7476b2['push'](_0x47588f['key']);continue;case'removeFormat':_0x3462bc['push'](_0x47588f['key']);continue;default:_0x369f4b['push'](_0x47588f);}if(_0x7476b2['length']){const _0x1658ef=_0x7476b2['map'](_0x37bc96=>this['_attributeLabels']['has'](_0x37bc96)?this['_attributeLabels']['get'](_0x37bc96):_0x37bc96)['join'](',\x20');_0x369f4b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1658ef)});}if(_0x3462bc['length']){const _0x4a1449=_0x3462bc['map'](_0x5acb03=>this['_attributeLabels']['has'](_0x5acb03)?this['_attributeLabels']['get'](_0x5acb03):_0x5acb03)['join'](',\x20');_0x369f4b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a1449)});}return _0x369f4b;}['_handleCustomCallbackDescription'](_0x3945c1){for(const _0x47c8f3 of this['_customCallbacks']){const _0x354149=_0x47c8f3(_0x3945c1);if(_0x354149&&'type'in _0x354149)return _0x354149;}}['_handleAttributeSuggestionDescription'](_0x538989,_0x568a26){const _0x400be9=_0x568a26['data'],_0x93b0db=void 0x0===_0x400be9['newValue']?'removeFormat':'addFormat';_0x538989['push']({'type':_0x93b0db,'key':_0x400be9['key']});}['_handleRenameSuggestionDescription'](_0x3650f1,_0x502531){_0x3650f1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x502531['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xd65231,_0x34a76f,_0x2657f2){if(this['_addDescriptionItems'](_0xd65231,_0x34a76f),_0x2657f2&&_0x2657f2['getFirstRange']()&&!_0x34a76f['getFirstRange']()['end']['isEqual'](_0x2657f2['getFirstRange']()['start'])){const _0x328b1e=_0xd65231[_0xd65231['length']-0x1],_0x830a2e='insertion'==_0x34a76f['type']?'add':'remove';_0x328b1e&&'text'==_0x328b1e['type']&&(_0x328b1e[_0x830a2e]+='\x0a');}}}class E extends _0x23b8b9{['afterInit'](){const _0x463f87=this['editor'],_0x1b5e9f=_0x463f87['plugins']['get']('TrackChangesEditing');_0x463f87['commands']['get']('showAIAssistant')&&_0x1b5e9f['enableCommand']('showAIAssistant');}}class V extends _0x23b8b9{['afterInit'](){const _0x31f512=this['editor'],_0x349d47=_0x31f512['locale'];if(!_0x31f512['plugins']['has']('AlignmentEditing'))return;const _0xbbda1=_0x31f512['plugins']['get']('TrackChangesEditing');_0xbbda1['enableDefaultAttributesIntegration']('alignment'),_0xbbda1['registerBlockAttribute']('alignment'),_0xbbda1['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x349d47,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490ca7=this['editor'],_0x57d704=_0x490ca7['locale'];_0x490ca7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ab7a0=>{if('formatBlock'!=_0x3ab7a0['type'])return;const {data:_0x5ddead}=_0x3ab7a0;if(_0x5ddead&&'alignment'==_0x5ddead['commandName']){const _0x536a60=_0x5ddead['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x57d704,'*Format:*\x20%0',function(_0xc0d3cb){switch(_0xc0d3cb){case'left':return o(_0x57d704,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x57d704,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x57d704,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x57d704,'FORMAT_JUSTIFY_TEXT');}}(_0x536a60))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x23b8b9{['afterInit'](){const _0x5995c4=this['editor'],_0x2a1cec=_0x5995c4['plugins']['get']('TrackChangesEditing'),_0x11c963=_0x5995c4['locale'];for(const _0x7dc492 of ti){if(!_0x5995c4['plugins']['has'](_0x7dc492))continue;const _0x3ef803=_0x7dc492['slice'](0x0,-0x7)['toLowerCase'](),_0x42be23='FORMAT_'+_0x3ef803['toUpperCase']();_0x2a1cec['enableDefaultAttributesIntegration'](_0x3ef803),_0x2a1cec['registerInlineAttribute'](_0x3ef803),_0x2a1cec['descriptionFactory']['registerAttributeLabel'](_0x3ef803,o(_0x11c963,_0x42be23));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x111ea7=this['editor'],_0x5b7580=_0x111ea7['locale'],_0x5cd710=_0x111ea7['plugins']['get']('TrackChangesEditing');function _0x399d51(_0x2efde8,_0x5b054c){_0x5cd710['descriptionFactory']['registerDescriptionCallback'](_0x5d65bb=>{if('formatInline'!=_0x5d65bb['type'])return;const {data:_0x2f3270}=_0x5d65bb;return _0x2f3270&&_0x2f3270['commandName']===_0x2efde8?_0x2f3270['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5b7580,'*Format:*\x20%0',_0x5b054c)}:{'type':'format','content':o(_0x5b7580,'*Remove\x20format:*\x20%0',_0x5b054c)}:void 0x0;});}_0x399d51('bold',o(_0x5b7580,'FORMAT_BOLD')),_0x399d51('italic',o(_0x5b7580,'FORMAT_ITALIC')),_0x399d51('underline',o(_0x5b7580,'FORMAT_UNDERLINE')),_0x399d51('code',o(_0x5b7580,'FORMAT_CODE')),_0x399d51('strikethrough',o(_0x5b7580,'FORMAT_STRIKETHROUGH')),_0x399d51('subscript',o(_0x5b7580,'FORMAT_SUBSCRIPT')),_0x399d51('superscript',o(_0x5b7580,'FORMAT_SUPERSCRIPT'));}}class O extends _0x23b8b9{['afterInit'](){const _0x309b8b=this['editor'],_0x1496a4=_0x309b8b['locale'];if(!_0x309b8b['plugins']['has']('BlockQuoteEditing'))return;const _0xb4dec0=_0x309b8b['plugins']['get']('TrackChangesEditing'),_0x5cc6ff=this['editor']['commands']['get']('blockQuote');_0xb4dec0['enableCommand']('blockQuote',(_0x498aa0,_0x382c73={})=>{const _0x38b39d=this['editor']['model']['document']['selection'],_0x360679=_0x382c73&&void 0x0!==_0x382c73['forceValue']?_0x382c73['forceValue']:!_0x5cc6ff['value'];let _0x1d3883=[];if(_0x360679){const _0x187c4b=Array['from'](_0x38b39d['getSelectedBlocks']())['filter'](_0xda464c=>oo(_0xda464c)||function(_0x41ea4f,_0x303f58){const _0x3863dd=_0x303f58['checkChild'](_0x41ea4f['parent'],'blockQuote'),_0x5a4c52=_0x303f58['checkChild'](['$root','blockQuote'],_0x41ea4f);return _0x3863dd&&_0x5a4c52;}(_0xda464c,this['editor']['model']['schema']));_0x1d3883=to(_0x187c4b,_0x309b8b['model']);}else{const _0xf614e4=Array['from'](_0x38b39d['getSelectedBlocks']())['filter'](_0x4b91aa=>oo(_0x4b91aa));_0x1d3883=to(_0xf614e4,_0x309b8b['model']);}_0x309b8b['model']['change'](()=>{for(const _0x3891ad of _0x1d3883)_0xb4dec0['markBlockFormat'](_0x3891ad,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x360679}]});});}),_0xb4dec0['descriptionFactory']['registerDescriptionCallback'](_0x31c03d=>{const {data:_0x467cd0}=_0x31c03d;if(_0x467cd0&&'blockQuote'==_0x467cd0['commandName']){const _0x5b5cb3=o(_0x1496a4,'ELEMENT_BLOCK_QUOTE');return _0x467cd0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1496a4,'*Set\x20format:*\x20%0',_0x5b5cb3)}:{'type':'format','content':o(_0x1496a4,'*Remove\x20format:*\x20%0',_0x5b5cb3)};}});}}function oo(_0x59b71d){return'blockQuote'==_0x59b71d['parent']['name'];}class G extends _0x23b8b9{['afterInit'](){const _0x1e0443=this['editor'];_0x1e0443['plugins']['has']('CaseChange')&&(_0x1e0443['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1e0443['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1e0443['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x23b8b9{['afterInit'](){const _0xb05b0d=this['editor'];_0xb05b0d['commands']['get']('ckbox')&&_0xb05b0d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x23b8b9{['afterInit'](){const _0x2d84f1=this['editor'];if(!_0x2d84f1['plugins']['has']('CodeBlock'))return;const _0x47e3bf=_0x2d84f1['plugins']['get']('TrackChangesEditing'),_0x563765=_0x2d84f1['locale'],_0x405cb3=_0x2d84f1['config']['get']('codeBlock')['languages'],_0x583a35=_0x2d84f1['commands']['get']('codeBlock');_0x47e3bf['enableCommand']('indentCodeBlock'),_0x47e3bf['enableCommand']('outdentCodeBlock'),_0x47e3bf['enableCommand']('codeBlock',(_0x323336,_0x2c5489={})=>{const _0x3494b8=_0x2d84f1['model'],_0x40ac73=_0x2d84f1['model']['document']['selection'],_0x6d5113=_0x2c5489&&void 0x0!==_0x2c5489['forceValue']?_0x2c5489['forceValue']:!_0x583a35['value'];let _0x5698e8;_0x2c5489['language']||(_0x2c5489['language']=_0x405cb3[0x0]['language']),_0x5698e8=_0x6d5113?Array['from'](_0x40ac73['getSelectedBlocks']())['filter'](_0x21d99e=>eo(_0x21d99e)||function(_0x29e76e,_0x2904f0){if(_0x29e76e['is']('rootElement')||_0x2904f0['isLimit'](_0x29e76e))return!0x1;return _0x2904f0['checkChild'](_0x29e76e['parent'],'codeBlock');}(_0x21d99e,_0x3494b8['schema'])):Array['from'](_0x40ac73['getSelectedBlocks']())['filter'](_0x32d1ee=>eo(_0x32d1ee));const _0x3b8302=to(_0x5698e8,_0x3494b8);_0x3494b8['change'](()=>{for(const _0x2e7094 of _0x3b8302)_0x47e3bf['markBlockFormat'](_0x2e7094,{'commandName':'codeBlock','commandParams':[{..._0x2c5489,'forceValue':_0x6d5113}],'formatGroupId':'blockName'});});}),(_0x47e3bf['descriptionFactory']['registerElementLabel']('codeBlock',_0x453c40=>o(_0x563765,'ELEMENT_CODE_BLOCK',_0x453c40)),_0x47e3bf['descriptionFactory']['registerDescriptionCallback'](_0x1410f5=>{if('formatBlock'!=_0x1410f5['type'])return;const _0x17c326=_0x563765['t'],{data:_0x4b7c25}=_0x1410f5;if(!_0x4b7c25||'codeBlock'!=_0x4b7c25['commandName'])return;const _0x579d83=_0x4b7c25['commandParams'][0x0]['language'],_0x1dde18=_0x17c326(_0x405cb3['find'](_0x4a4b2c=>_0x4a4b2c['language']===_0x579d83)['label'])['toLowerCase']();return _0x4b7c25['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x563765,'*Set\x20format:*\x20%0',o(_0x563765,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1dde18+')')}:{'type':'format','content':o(_0x563765,'*Remove\x20format:*\x20%0',o(_0x563765,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xb38ae7){return'codeBlock'==_0xb38ae7['name'];}class H extends _0x23b8b9{['afterInit'](){const _0x32f1a9=this['editor'];if(!_0x32f1a9['plugins']['has']('CommentsEditing'))return;_0x32f1a9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x49148d,_0xbc47f4,_0x2f144b){const _0x3a62a6=[];for(const _0x586baa of _0xbc47f4['getItems']())_0x586baa['hasAttribute'](_0x49148d)&&_0x3a62a6['push'](_0x2f144b['createRangeOn'](_0x586baa));return _0x3a62a6;}function _e(_0x21c229,_0x5bc389,{showActiveMarker:_0x286251=!0x0}={}){const _0x429510=_0x21c229['plugins']['get']('TrackChangesEditing');return(_0x5fb384,_0x324485,_0x532742)=>{if(!_0x532742['consumable']['test'](_0x324485['markerRange'],_0x5fb384['name']))return;const _0x4cd00b=_0x324485['markerRange']['getWalker'](),_0x2eb544=_0x324485['markerRange']['start'],_0x4a5ca7=_0x21c229['model']['schema'];let _0x34ddf2=null,_0x8c4f89=null,_0x36ea5b=!0x1,_0x20f9cb=!0x1;for(const _0x13efe2 of _0x4cd00b){const _0x39db7f=_0x13efe2['item'];_0x36ea5b=_0x36ea5b||_0x4a5ca7['isContent'](_0x39db7f);const _0x24335e=_0x532742['mapper']['toViewElement'](_0x39db7f);if(_0x24335e&&_0x24335e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x13efe2['type']&&(_0x4a5ca7['isBlock'](_0x39db7f)&&!_0x4a5ca7['isLimit'](_0x39db7f)&&(_0x39db7f['nextSibling']||_0x2eb544['isAtEnd']?_0x34ddf2&&_0x34ddf2['parent']==_0x39db7f||(_0x34ddf2=_0x39db7f,_0xf21d1f(_0x13efe2['previousPosition']),_0x20f9cb=!0x0):_0x8c4f89=_0x8c4f89||_0x13efe2['previousPosition']));}function _0xf21d1f(_0x45911c){const _0x2fccb6=_0x532742['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5bc389}),_0x5b11e8=_0x532742['mapper']['toViewPosition'](_0x45911c);_0x286251&&_0x429510['activeMarkers']['includes'](_0x324485['markerName'])&&_0x532742['writer']['addClass']('ck-suggestion-marker--active',_0x2fccb6),_0x532742['writer']['insert'](_0x5b11e8,_0x2fccb6),_0x532742['mapper']['bindElementToMarker'](_0x2fccb6,_0x324485['markerName']);}_0x36ea5b||_0x20f9cb||!_0x8c4f89||_0xf21d1f(_0x8c4f89);};}class q extends _0x23b8b9{static get['requires'](){return[_0x1b36e0];}['init'](){const _0x214f8d=this['editor'],_0x4275c9=_0x214f8d['plugins']['get']('TrackChangesEditing');_0x4275c9['enableCommand']('delete');const _0x786add=_0x214f8d['commands']['get']('deleteForward');_0x4275c9['enableCommand']('deleteForward',(_0x2e17df,_0x31f750={})=>{const _0x394819=_0x214f8d['model']['createSelection'](_0x214f8d['model']['document']['selection']);_0x394819['isCollapsed']&&_0x214f8d['model']['modifySelection'](_0x394819,{'direction':'forward','unit':_0x31f750['unit']});const _0x1803df=_0x394819['getFirstRange'](),_0x14089f=_0x5df64f['fromRange'](_0x1803df);let _0x3e687c;_0x2e17df(_0x31f750),_0x3e687c='$graveyard'==_0x14089f['root']['rootName']?_0x214f8d['model']['createRange'](_0x1803df['start']):_0x214f8d['model']['createRange'](_0x14089f['start'],_0x14089f['end']),_0x14089f['detach'](),_0x214f8d['model']['enqueueChange'](_0x786add['buffer']['batch'],_0x5be604=>{_0x786add['buffer']['lock'](),_0x5be604['setSelection'](_0x5be604['createRange'](_0x3e687c['end'])),_0x786add['buffer']['unlock']();});}),_0x214f8d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x214f8d,'merge'),{'priority':'high'}),_0x214f8d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2bac54,_0x386223,_0x5abd97)=>{_0x5abd97['options']['showSuggestionHighlights']&&_e(_0x214f8d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2bac54,_0x386223,_0x5abd97);},{'priority':'high'}),_0x214f8d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x37f9b9,_0x1374e1,_0x290170)=>{const _0x12f98e=_0x290170['mapper']['markerNameToElements'](_0x1374e1['markerName']);if(_0x12f98e){for(const _0x409a4f of _0x12f98e)_0x409a4f['is']('uiElement')&&(_0x290170['mapper']['unbindElementFromMarkerName'](_0x409a4f,_0x1374e1['markerName']),_0x290170['writer']['remove'](_0x409a4f));}},{'priority':'high'});}}class z extends _0x23b8b9{['afterInit'](){const _0x3439fa=this['editor'];if(!_0x3439fa['plugins']['has']('ListEditing'))return;const _0x2f536d=_0x3439fa['locale'],_0x30207b=_0x3439fa['plugins']['get']('TrackChangesEditing'),_0x3d500b=_0x3439fa['plugins']['has']('TodoListEditing'),_0x4f485b=!!_0x3439fa['config']['get']('list.multiBlock');function _0x195bf6(_0x16d105){return{'type':'format','content':''+o(_0x2f536d,'*Set\x20format:*\x20%0',_0x16d105)};}function _0x3f54b8(_0x2b0715){return{'type':'format','content':''+o(_0x2f536d,'*Remove\x20format:*\x20%0',_0x2b0715)};}_0x30207b['enableDefaultAttributesIntegration']('numberedList'),_0x30207b['enableDefaultAttributesIntegration']('bulletedList'),_0x30207b['enableDefaultAttributesIntegration']('customNumberedList'),_0x30207b['enableDefaultAttributesIntegration']('customBulletedList'),_0x30207b['enableDefaultAttributesIntegration']('indentList'),_0x30207b['enableDefaultAttributesIntegration']('outdentList'),_0x30207b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x30207b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x30207b['registerBlockAttribute']('listItemId'),_0x30207b['registerBlockAttribute']('listType'),_0x30207b['registerBlockAttribute']('listIndent'),_0x4f485b&&(_0x30207b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x30207b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3d500b&&(_0x30207b['enableDefaultAttributesIntegration']('todoList'),_0x30207b['enableDefaultAttributesIntegration']('checkTodoList'),_0x30207b['registerBlockAttribute']('todoListChecked'),_0x30207b['descriptionFactory']['registerDescriptionCallback'](_0x50b319=>{const {data:_0x4a2a99}=_0x50b319;if(_0x4a2a99&&'todoListChecked'==_0x4a2a99['key'])return{'type':'format','content':_0x4a2a99['newValue']?o(_0x2f536d,'*Check\x20item*'):o(_0x2f536d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4b88c7=>{if(_0x4b88c7['batch']['isUndo'])return!0x1;let _0x21452f=!0x1;const _0x1f6eac=_0x30207b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47cdb8=>'todoListChecked'===_0x30207b['_getAttributeKey'](_0x47cdb8));for(const _0x4b4f75 of _0x1f6eac){'todo'!=_0x4b4f75['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x30207b['_findSuggestions'](_0x4b4f75['getFirstRange'](),'attribute')['find'](_0x572223=>'listType'===_0x30207b['_getAttributeKey'](_0x572223['suggestion']))||(_0x4b88c7['removeMarker'](_0x4b4f75['getFirstMarker']()),_0x21452f=!0x0));}return _0x21452f;})),_0x30207b['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2f536d,'FORMAT_INDENT'));const _0x3a0a8e={'type':'format','content':''};_0x30207b['descriptionFactory']['registerDescriptionCallback'](_0x579cf4=>{const {data:_0x417c19}=_0x579cf4;if(!_0x417c19||'listType'!=_0x417c19['key'])return;let _0x5e8430=_0x579cf4['head'];for(;_0x5e8430;){if(_0x5e8430['data']&&(('listStyle'==_0x5e8430['data']['key']||'listMarkerStyle'==_0x5e8430['data']['key'])&&(_0x5e8430['data']['newValue']&&'default'!=_0x5e8430['data']['newValue']||'default'!=_0x5e8430['data']['oldValue']&&!_0x417c19['newValue'])||!_0x4f485b&&_0x5e8430['data']['key']==m))return _0x3a0a8e;_0x5e8430=_0x5e8430['next'];}if(null==_0x417c19['newValue'])switch(_0x417c19['oldValue']){case'bulleted':return _0x3f54b8(o(_0x2f536d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f54b8(o(_0x2f536d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f54b8(o(_0x2f536d,'ELEMENT_TODO_LIST'));}switch(_0x417c19['newValue']){case'bulleted':return _0x195bf6(o(_0x2f536d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x195bf6(o(_0x2f536d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x195bf6(o(_0x2f536d,'ELEMENT_TODO_LIST'));}}),_0x30207b['descriptionFactory']['registerDescriptionCallback'](_0xf9f8af=>{const {data:_0x3b4b85}=_0xf9f8af;if(_0x3b4b85&&'listIndent'==_0x3b4b85['key'])return null==_0x3b4b85['newValue']||null==_0x3b4b85['oldValue']&&0x0==_0x3b4b85['newValue']?_0x3a0a8e:void 0x0;}),_0x30207b['descriptionFactory']['registerDescriptionCallback'](_0x3f3aed=>{if('attribute'!=_0x3f3aed['type'])return;const {data:_0x2cf4c2}=_0x3f3aed;if(!_0x2cf4c2||'listItemId'!=_0x2cf4c2['key'])return;const _0x57efb5=le(_0x3f3aed);return'newValue'==_0x57efb5?{'type':'format','content':o(_0x2f536d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x57efb5?{'type':'format','content':o(_0x2f536d,'*Split:*\x20list\x20item')}:_0x3a0a8e;}),_0x3439fa['model']['document']['registerPostFixer'](_0x5ed8a0=>this['listItemIdFixer'](_0x5ed8a0)),_0x3439fa['model']['document']['registerPostFixer'](_0xfaa6d6=>this['noTrackChangesFixer'](_0xfaa6d6)),_0x3439fa['model']['document']['registerPostFixer'](_0x484bc6=>this['assureChains'](_0x484bc6)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x170c5a){if(_0x170c5a['batch']['isUndo']||!_0x170c5a['batch']['isLocal'])return!0x1;let _0x257036=!0x1;const _0x55699f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ed478=>_0x2ed478['data']&&'listItemId'==_0x2ed478['data']['key'])['filter'](_0x93525f=>_0x93525f['data']['newValue']&&_0x93525f['data']['oldValue']);for(const _0x3c8469 of _0x55699f)le(_0x3c8469)||(_0x170c5a['removeMarker'](_0x3c8469['getFirstMarker']()),_0x257036=!0x0);return _0x257036;}['noTrackChangesFixer'](_0xc7662d){if(_0xc7662d['batch']['isUndo']||!_0xc7662d['batch']['isLocal'])return!0x1;const _0x3a05f2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3a05f2['trackChangesCommand']['value'])return!0x1;let _0x380c45=!0x1;const _0x228343=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3adea4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x30fbfc=>'attribute'==_0x30fbfc['type'])['filter'](_0x17cc22=>_0x228343['includes'](_0x17cc22['attributeKey']));if(0x0==_0x3adea4['length'])return _0x380c45;for(const _0x1f97cd of _0x3adea4){const _0x102621=_0x3a05f2['_findSuggestions'](_0x1f97cd['range'],'attribute')['filter'](_0xb71e1d=>!_0xb71e1d['meta']['isNextTo'])['map'](_0x56f79c=>_0x56f79c['suggestion'])['filter'](_0x42daa6=>{const _0x583b5e=_0x3a05f2['_getAttributeKey'](_0x42daa6);return _0x228343['includes'](_0x583b5e);});if(_0x102621['length']){for(const _0x6640f3 of _0x102621)_0xc7662d['removeMarker'](_0x6640f3['getFirstMarker']());_0x380c45=!0x0;}}return _0x380c45;}['assureChains'](_0x58cfa3){if(_0x58cfa3['batch']['isUndo']||!_0x58cfa3['batch']['isLocal'])return!0x1;const _0x5af171=this['editor']['plugins']['get']('TrackChangesEditing');let _0x5e3eba=!0x1;const _0xd875cd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x26a443 of _0x5af171['getSuggestions']({'skipNotAttached':!0x0})){const _0x22df37=_0x5af171['_findSuggestions'](_0x26a443['getFirstRange'](),'attribute')['map'](_0x25c349=>_0x25c349['suggestion'])['filter'](_0x1e7f1e=>_0x1e7f1e['data']&&_0xd875cd['includes'](_0x1e7f1e['data']['key']));if(!_0x22df37['length'])continue;const _0x41caee=_0x22df37[0x0]['head']['attributes']['groupId'];if(!_0x22df37['every'](_0x4ed65d=>_0x4ed65d['attributes']['groupId']===_0x41caee)){for(const _0x7a3b98 of _0x22df37)_0x5f3402(_0x7a3b98,_0x41caee)&&(_0x5e3eba=!0x0);}}return _0x5e3eba;function _0x378b4b(_0x16dc22,_0x3d7aec){for(const _0x3964e5 of _0x5af171['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57a809=>'attribute'==_0x57a809['type']&&_0x57a809['attributes']['groupId']==_0x16dc22))_0x3964e5['setAttribute']('groupId',_0x3d7aec);}function _0x5f3402(_0x4ef183,_0x10178d){let _0x76339b=_0x4ef183['head'],_0x640026=!0x1;for(;_0x76339b;)_0x76339b['attributes']['groupId']!=_0x10178d&&(_0x378b4b(_0x76339b['attributes']['groupId'],_0x10178d),_0x76339b['setAttribute']('groupId',_0x10178d),_0x640026=!0x0),_0x76339b=_0x76339b['next'];return _0x640026;}}['_supportLegacySuggestions'](){const _0x3d532f=this['editor'],_0x35210e=_0x3d532f['locale'],_0x5d3962=_0x3d532f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5d3962['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x132283,_0x487929){const _0x4351f4=[];for(let _0x2a5ac0 of _0x132283)_0x2a5ac0['start']['nodeAfter']===_0x2a5ac0['end']['parent']&&(_0x2a5ac0=_0x3d532f['model']['createRange'](_0x3d532f['model']['createPositionAt'](_0x2a5ac0['start']['nodeAfter'],0x0))),_0x4351f4['push'](_0x2a5ac0);_0x3d532f['model']['change'](_0xbda2e4=>{const _0x3550cd=_0x3d532f['model']['document']['selection'],_0x30526e=Array['from'](_0x3550cd['getRanges']())['map'](_0x463e6a=>_0x5df64f['fromRange'](_0x463e6a));_0xbda2e4['setSelection'](_0x4351f4),_0x3d532f['commands']['get'](_0x487929['commandName'])['refresh'](),_0x487929['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3d532f['execute'](_0x487929['commandName'],..._0x487929['commandParams']),_0xbda2e4['setSelection'](_0x30526e);for(const _0x48ca1e of _0x30526e)_0x48ca1e['detach']();});}),_0x5d3962['descriptionFactory']['registerElementLabel'](function(_0x3702cc){const _0x2aa18e=!_0x3d532f['model']['schema']['isObject'](_0x3702cc),_0x249ca7=_0x3702cc['previousSibling'],_0x52f72e=_0x3702cc['nextSibling'],_0x14aa80=_0x3702cc['getAttribute']('listItemId'),_0x492d54=!_0x249ca7||_0x249ca7['getAttribute']('listItemId')!==_0x14aa80,_0x582a32=!_0x52f72e||_0x52f72e['getAttribute']('listItemId')!==_0x14aa80;return _0x2aa18e&&Boolean(_0x14aa80)&&_0x492d54&&_0x582a32;},_0xd1cb74=>o(_0x35210e,'ELEMENT_LIST_ITEM',_0xd1cb74));}['_registerLegacyDescription'](){const _0x4c37a7=this['editor'],_0x29df57=_0x4c37a7['locale'];function _0x5cfd60(_0xf0b7be){const _0x145aeb=_0x4c37a7['commands']['get']('bulletedList')['value'],_0x4d34f6=_0x4c37a7['commands']['get']('numberedList')['value'];return'numberedList'===_0xf0b7be?_0x145aeb:_0x4d34f6;}_0x4c37a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x40469e){if('formatBlock'!=_0x40469e['type'])return;const {data:_0x398b9f}=_0x40469e;if(!_0x398b9f)return;let _0x44f50e,_0x357f13,_0x627414,_0x48228a;switch(_0x398b9f['commandName']){case'bulletedList':_0x627414=_0x398b9f['commandParams'][0x0]['forceValue'],_0x48228a=_0x5cfd60(_0x398b9f['commandName']),_0x44f50e=_0x627414?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x48228a&&_0x4c37a7['config']['get']('list.multiBlock')||(_0x44f50e='*Change\x20to:*\x20%0'),_0x357f13={'type':'format','content':o(_0x29df57,_0x44f50e,o(_0x29df57,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x627414=_0x398b9f['commandParams'][0x0]['forceValue'],_0x48228a=_0x5cfd60(_0x398b9f['commandName']),_0x44f50e=_0x627414?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x48228a&&_0x4c37a7['config']['get']('list.multiBlock')||(_0x44f50e='*Change\x20to:*\x20%0'),_0x357f13={'type':'format','content':o(_0x29df57,_0x44f50e,o(_0x29df57,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x44f50e='*Indent:*\x20%0',_0x357f13={'type':'format','content':o(_0x29df57,_0x44f50e,o(_0x29df57,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x44f50e=function(_0x9da7b8){const _0x44d943=_0x9da7b8['getFirstRange']();let _0x102a2a=_0x44d943['start']['nodeAfter'];for(;_0x102a2a&&_0x44d943['containsItem'](_0x102a2a);){if(_0x102a2a['getAttribute']('listIndent')>0x0)return!0x1;_0x102a2a=_0x102a2a['nextSibling'];}return!0x0;}(_0x40469e)?o(_0x29df57,'*Format:*\x20remove\x20from\x20%0',o(_0x29df57,function(_0x1e118d){return'ELEMENT_'+_0x1e118d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x40469e))):o(_0x29df57,'*Outdent:*\x20%0',o(_0x29df57,'ELEMENT_LIST_ITEM')),_0x357f13={'type':'format','content':_0x44f50e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x398b9f['multipleBlocks']&&(_0x44f50e='*Merge:*\x20%0',_0x357f13={'type':'deletion','content':o(_0x29df57,_0x44f50e,o(_0x29df57,'ELEMENT_LIST_ITEM'))});}return _0x357f13;});}}function le(_0x151c5b){let _0xa54a1=_0x151c5b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xa54a1;){const _0x432eef=_0xa54a1['getAttribute']('listItemId');if(!_0x432eef)return!0x1;if(_0x432eef==_0x151c5b['data']['newValue'])return'newValue';if(_0x432eef==_0x151c5b['data']['oldValue'])return'oldValue';_0xa54a1=_0xa54a1['previousSibling'];}return!0x1;}class pe extends _0x23b8b9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5c3706=this['editor']['config']['get']('list.properties'),_0x3ebc64=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c3706['styles']&&(_0x3ebc64['enableDefaultAttributesIntegration']('listStyle'),_0x3ebc64['registerBlockAttribute']('listStyle')),_0x5c3706['reversed']&&(_0x3ebc64['enableDefaultAttributesIntegration']('listReversed'),_0x3ebc64['registerBlockAttribute']('listReversed')),_0x5c3706['startIndex']&&(_0x3ebc64['enableDefaultAttributesIntegration']('listStart'),_0x3ebc64['registerBlockAttribute']('listStart'));const _0x5c0619={'type':'format','content':''};_0x3ebc64['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2d1c50=this['editor']['locale'];_0x3ebc64['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2d1c50,'FORMAT_LIST_REVERSED')),_0x3ebc64['descriptionFactory']['registerDescriptionCallback'](_0x510935=>{const {data:_0x4ac5f5}=_0x510935;if(_0x4ac5f5&&'listReversed'==_0x4ac5f5['key'])return null==_0x4ac5f5['newValue']||0x0==_0x4ac5f5['newValue']&&null==_0x4ac5f5['oldValue']?_0x5c0619:void 0x0;}),_0x3ebc64['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2d1c50,'FORMAT_LIST_START')),_0x3ebc64['descriptionFactory']['registerDescriptionCallback'](_0x267798=>{const {data:_0x3d9501}=_0x267798;if(_0x3d9501&&'listStart'==_0x3d9501['key'])return null==_0x3d9501['newValue']||0x1==_0x3d9501['newValue']&&null==_0x3d9501['oldValue']?_0x5c0619:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2da148=>{if(_0x2da148['batch']['isUndo'])return!0x1;let _0x3fee2c=!0x1;const _0xa1fcf6=_0x3ebc64['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d8d10=>{const _0x221cfb=_0x3ebc64['_getAttributeKey'](_0x3d8d10);return'listStart'==_0x221cfb||'listReversed'==_0x221cfb;});for(const _0x5e7e3e of _0xa1fcf6){const _0x12038a=_0x5e7e3e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x12038a||'customNumbered'==_0x12038a)continue;_0x3ebc64['_findSuggestions'](_0x5e7e3e['getFirstRange'](),'attribute')['find'](_0x234002=>'listType'==_0x3ebc64['_getAttributeKey'](_0x234002['suggestion']))||(_0x2da148['removeMarker'](_0x5e7e3e['getFirstMarker']()),_0x3fee2c=!0x0);}return _0x3fee2c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x39888e){const _0x631278=this['editor']['locale'],{data:_0x371ed0}=_0x39888e,_0x7462b9={'type':'format','content':''};if(!_0x371ed0||'listStyle'!=_0x371ed0['key'])return;if(!_0x371ed0['oldValue'])return'default'==_0x371ed0['newValue']?_0x7462b9:{'type':'format','content':''+o(_0x631278,'*Set\x20format:*\x20%0',o(_0x631278,this['_getTranslationKeyForListStyle'](_0x371ed0['newValue'])))};if(!_0x371ed0['newValue']){if('default'==_0x371ed0['oldValue'])return _0x7462b9;let _0x2f3f85=_0x39888e['head'];for(;_0x2f3f85;){if(_0x2f3f85['data']&&'listType'==_0x2f3f85['data']['key']&&_0x2f3f85['data']['newValue'])return _0x7462b9;_0x2f3f85=_0x2f3f85['next'];}return{'type':'format','content':''+o(_0x631278,'*Remove\x20format:*\x20%0',o(_0x631278,this['_getTranslationKeyForListStyle'](_0x371ed0['oldValue'])))};}if('default'!=_0x371ed0['newValue'])return{'type':'format','content':''+o(_0x631278,'*Set\x20format:*\x20%0',o(_0x631278,this['_getTranslationKeyForListStyle'](_0x371ed0['newValue'])))};let _0x324c6c=_0x39888e['head'];for(;_0x324c6c;){if(_0x324c6c['data']&&'listType'==_0x324c6c['data']['key']&&_0x324c6c['data']['newValue']&&_0x324c6c['data']['oldValue'])return _0x7462b9;_0x324c6c=_0x324c6c['next'];}return{'type':'format','content':o(_0x631278,'*Set\x20format:*\x20%0',o(_0x631278,'ELEMENT_'+_0x39888e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5d0384=this['editor'],_0x2a4b95=_0x5d0384['locale'];_0x5d0384['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d134a=>{if('formatBlock'!=_0x5d134a['type'])return;const {data:_0x4ddaf1}=_0x5d134a;if(!_0x4ddaf1)return;let _0x146b49,_0x4eeb31;switch(_0x4ddaf1['commandName']){case'listStyle':_0x146b49='*Change\x20to:*\x20%0',_0x4eeb31={'type':'format','content':o(_0x2a4b95,_0x146b49,o(_0x2a4b95,this['_getTranslationKeyForListStyle'](_0x4ddaf1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x146b49=_0x4ddaf1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4eeb31={'type':'format','content':o(_0x2a4b95,_0x146b49)};break;case'listStart':_0x146b49='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4eeb31={'type':'format','content':o(_0x2a4b95,_0x146b49,_0x4ddaf1['commandParams'][0x0]['startIndex'])};}return _0x4eeb31;});}['_getTranslationKeyForListStyle'](_0x4aef3c){return'ELEMENT_'+function(_0x279ba4){if(ye['includes'](_0x279ba4))return'bulleted';if(he['includes'](_0x279ba4))return'numbered';return null;}(_0x4aef3c)['toUpperCase']()+'_LIST_'+_0x4aef3c['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x23b8b9{static get['requires'](){return[_0x2a76a7];}['init'](){const _0x968c70=this['editor'],_0x4f6c11=_0x968c70['plugins']['get']('TrackChangesEditing'),_0xc1cf4c=_0x968c70['commands']['get']('enter');_0x4f6c11['enableCommand']('enter',()=>{_0x968c70['model']['change'](_0x3a5a74=>{const _0x5616e9=_0x968c70['model']['document']['selection'],_0x287f38=_0x5616e9['getFirstPosition'](),_0x432a3c=_0x5df64f['fromRange'](_0x5616e9['getFirstRange']());if(_0xc1cf4c['enterBlock'](_0x3a5a74)){const _0x5d92f4=_0x968c70['model']['createPositionAt'](_0x287f38['parent']['nextSibling'],0x0),_0x4a200b=_0x3a5a74['createRange'](_0x287f38,_0x5d92f4);_0x4f6c11['markInsertion'](_0x4a200b);}else _0x3a5a74['setSelection'](_0x3a5a74['createRange'](_0x432a3c['end']));_0x432a3c['detach'](),_0xc1cf4c['fire']('afterExecute',{'writer':_0x3a5a74});});}),_0x968c70['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x968c70,'split'),{'priority':'high'}),_0x968c70['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x415fb2,_0x45a3d4,_0x4ad89c)=>{const _0x4a1978=_0x4ad89c['mapper']['markerNameToElements'](_0x45a3d4['markerName']);if(_0x4a1978){for(const _0x2eff46 of _0x4a1978)_0x2eff46['hasClass']('ck-suggestion-marker-split')&&(_0x4ad89c['mapper']['unbindElementFromMarkerName'](_0x2eff46,_0x45a3d4['markerName']),_0x4ad89c['writer']['remove'](_0x2eff46));}},{'priority':'high'}),_0x968c70['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1817ff,_0x302329,_0x5e6938)=>{_0x5e6938['options']['showSuggestionHighlights']&&_e(_0x968c70,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1817ff,_0x302329,_0x5e6938);},{'priority':'high'});}}class J extends _0x23b8b9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x42020a=this['editor']['plugins']['get']('TrackChangesEditing');_0x42020a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x42020a['enableCommand']('findNext'),_0x42020a['enableCommand']('findPrevious'),_0x42020a['enableCommand']('replace'),_0x42020a['enableCommand']('replaceAll');}['handleFindCommand'](_0x43c679,_0x435bf2,_0x3a6731={}){const _0x407944=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x43c679(_0x36e881=>{let _0xce7100=('string'==typeof _0x435bf2?_0x407944['findByTextCallback'](_0x435bf2,_0x3a6731):_0x435bf2)(_0x36e881);Array['isArray'](_0xce7100)&&(_0xce7100={'results':_0xce7100,'searchText':'string'==typeof _0x435bf2?_0x435bf2:''});const _0x5edc53=_0xce7100['results']['filter'](_0x24ecd7=>!0x1===this['_isInDeletionRange'](_0x24ecd7,_0x36e881['item']));return{..._0xce7100,'results':_0x5edc53};},_0x3a6731);}['_isInDeletionRange'](_0x5d4b12,_0x22fcc2){const _0x595229=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22fcc2,_0x5d4b12['start']),this['editor']['model']['createPositionAt'](_0x22fcc2,_0x5d4b12['end']));for(const _0x57bc46 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x595229['getIntersection'](_0x57bc46['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 _0x23b8b9{['afterInit'](){const _0x21cd18=this['editor']['locale'],_0x6b5ede=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x16abd4,commandName:_0x371dc7}of ro)this['editor']['plugins']['has'](_0x16abd4)&&(_0x6b5ede['enableDefaultAttributesIntegration'](_0x371dc7),_0x6b5ede['registerInlineAttribute'](_0x371dc7));_0x6b5ede['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x21cd18,'FORMAT_FONT_SIZE')),_0x6b5ede['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x21cd18,'FORMAT_FONT_FAMILY')),_0x6b5ede['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x21cd18,'FORMAT_FONT_COLOR')),_0x6b5ede['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x21cd18,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x245d56=this['editor'],_0x2dafd2=_0x245d56['locale'];_0x245d56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x225c40=>{const _0x178443=_0x2dafd2['t'];if('formatInline'!=_0x225c40['type'])return;const {data:_0xe68de1}=_0x225c40;if(null!=_0xe68de1){if('fontSize'==_0xe68de1['commandName']){const _0xcb0f9b=_0xe68de1['commandParams'][0x0]['value'];if(_0xcb0f9b){const _0x18c970=_0x178443(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2ad959=>_0x2ad959['model']==_0xcb0f9b)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2dafd2,'*Set\x20font\x20size:*\x20%0',_0x18c970)};}return{'type':'format','content':o(_0x2dafd2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xe68de1['commandName']){const _0x16cbf5=_0xe68de1['commandParams'][0x0]['value'];return _0x16cbf5?{'type':'format','content':o(_0x2dafd2,'*Set\x20font\x20family:*\x20%0',_0x16cbf5)}:{'type':'format','content':o(_0x2dafd2,'*Reset\x20font\x20family*')};}if('fontColor'==_0xe68de1['commandName']){const _0x29ccc3=_0xe68de1['commandParams'][0x0]['value'];if(_0x29ccc3){const _0x2b7783=_0x1f2ba8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x17d897=>_0x17d897['model']==_0x29ccc3);let _0xef2374=_0x29ccc3,_0xfa5b33='';return _0x2b7783&&(_0xef2374=_0x2b7783['label'],_0xfa5b33=_0x178443(_0xef2374)['toLowerCase']()),{'type':'format','content':o(_0x2dafd2,'*Set\x20font\x20color:*\x20%0',_0xfa5b33)['trim'](),'color':{'value':_0x29ccc3,'title':_0xfa5b33||_0xef2374}};}return{'type':'format','content':o(_0x2dafd2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xe68de1['commandName']){const _0x353276=_0xe68de1['commandParams'][0x0]['value'];if(_0x353276){const _0x398a00=_0x1f2ba8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3d3ab4=>_0x3d3ab4['model']==_0x353276);let _0x238794=_0x353276,_0xd6b64='';return _0x398a00&&(_0x238794=_0x398a00['label'],_0xd6b64=_0x178443(_0x238794)['toLowerCase']()),{'type':'format','content':o(_0x2dafd2,'*Set\x20font\x20background\x20color:*\x20%0',_0xd6b64)['trim'](),'color':{'value':_0x353276,'title':_0xd6b64||_0x238794}};}return{'type':'format','content':o(_0x2dafd2,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x23b8b9{['afterInit'](){const _0x5f372f=this['editor'],_0x6e9969=_0x5f372f['plugins']['get']('TrackChangesEditing'),_0x464258=_0x5f372f['commands']['get']('copyFormat'),_0x1247d5=_0x5f372f['commands']['get']('pasteFormat');_0x464258&&_0x1247d5&&(_0x6e9969['enableDefaultAttributesIntegration']('pasteFormat'),_0x6e9969['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1d246f=this['editor'],_0x5bf1b3=_0x1d246f['locale'];_0x1d246f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x122e7d=>{if('formatBlock'!=_0x122e7d['type']&&'formatInline'!=_0x122e7d['type'])return;const {data:_0x4b830b}=_0x122e7d;if(_0x4b830b&&'pasteFormat'===_0x4b830b['commandName']){const _0x47ce43=[],_0x47c4e5=_0x4b830b['commandParams'][0x0];for(const [_0x2f6e5d,_0x4c7ea2]of Object['entries'](_0x47c4e5))_0x47ce43['push'](so(_0x1d246f,_0x2f6e5d,_0x4c7ea2));return _0x47ce43['length']?{'type':'format','content':o(_0x5bf1b3,'*Set\x20format\x20to:*\x20%0',_0x47ce43['join'](',\x20'))}:{'type':'format','content':o(_0x5bf1b3,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2c44a6,_0x26e2ab,_0x42cb10){const _0x225bf7=_0x2c44a6['locale']['t'],_0x159ad0=_0x26e2ab['split'](/(?=[A-Z])/)['join']('\x20'),_0x539e66=_0x225bf7(_0x159ad0['charAt'](0x0)['toUpperCase']()+_0x159ad0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x42cb10)return _0x539e66;if('fontColor'===_0x26e2ab||'fontBackgroundColor'===_0x26e2ab){const _0x2688c5=_0x1f2ba8(_0x2c44a6['config']['get']('fontColor.colors'))['find'](_0x218bc2=>_0x218bc2['model']==_0x42cb10);return _0x539e66+'\x20('+(_0x2688c5?_0x225bf7(_0x2688c5['label'])['toLowerCase']():_0x42cb10)+')';}if('fontSize'===_0x26e2ab&&isNaN(parseFloat(_0x42cb10))){const _0xa471b4=_0x2c44a6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2c44a6['config']['get']('fontSize.options'))['find'](_0x465a8f=>_0x465a8f['model']==_0x42cb10);return _0x539e66+'\x20('+(_0xa471b4?_0x225bf7(_0xa471b4['title'])['toLowerCase']():_0x42cb10)+')';}return _0x539e66+'\x20('+_0x42cb10+')';}class Y extends _0x23b8b9{['_headingOptions'];['afterInit'](){const _0x34e2c6=this['editor'];if(!_0x34e2c6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x34e2c6['config']['get']('heading.options');const _0x47f7da=_0x34e2c6['locale'],_0x329560=_0x34e2c6['plugins']['get']('TrackChangesEditing');_0x329560['enableDefaultAttributesIntegration']('heading');for(const _0x1cb56b of this['_headingOptions'])'paragraph'!=_0x1cb56b['model']&&_0x329560['descriptionFactory']['registerElementLabel'](_0x1cb56b['model'],_0x112071=>{const _0x104b99=this['_getHeadingLevel'](_0x1cb56b['model']);return null!==_0x104b99?_0x3929ef(_0x112071,_0x104b99):_0x5f0eae(_0x112071,_0x1cb56b['title']);});function _0x3929ef(_0x4cd11f,_0x5e3bb0){return o(_0x47f7da,'ELEMENT_HEADING',[_0x4cd11f,_0x5e3bb0]);}function _0x5f0eae(_0x330e04,_0x313b4a){return o(_0x47f7da,'ELEMENT_HEADING_CUSTOM',[_0x330e04,_0x313b4a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39242d=this['editor'],_0x487f25=_0x39242d['locale'];function _0x22e055(_0x3c4b9e,_0x3c5ef6){return o(_0x487f25,'ELEMENT_HEADING_CUSTOM',[_0x3c4b9e,_0x3c5ef6]);}_0x39242d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b8ef2=>{if('formatBlock'!=_0x1b8ef2['type'])return;const {data:_0x3cb4ad}=_0x1b8ef2;if(_0x3cb4ad&&'heading'==_0x3cb4ad['commandName']){const _0x89e6c5=_0x3cb4ad['commandParams'][0x0]['value'],_0x19e78a=this['_getHeadingLevel'](_0x89e6c5);if(null!==_0x19e78a)return{'type':'format','content':o(_0x487f25,'*Change\x20to:*\x20%0',(_0x365066=0x1,_0xa53bba=_0x19e78a,o(_0x487f25,'ELEMENT_HEADING',[_0x365066,_0xa53bba])))};const _0x575069=this['_headingOptions']['find'](_0x382c30=>_0x382c30['model']===_0x89e6c5)['title'];return{'type':'format','content':o(_0x487f25,'*Change\x20to:*\x20%0',_0x22e055(0x1,_0x575069))};}var _0x365066,_0xa53bba;});}['_getHeadingLevel'](_0x4dff6b){const _0x37e07c=_0x4dff6b['match'](/^heading(\d+)/);if(_0x37e07c)return _0x37e07c[0x1];const _0x5c894f=this['_headingOptions']?.['find'](_0x4a9aaf=>_0x4a9aaf['model']==_0x4dff6b);if(_0x5c894f&&_0x5c894f['view']){const _0x1e95ec=_0x5c894f['view'],_0xf098d2=(_0x1e95ec['name']??_0x1e95ec)['match'](/^h(\d+)/);if(_0xf098d2)return _0xf098d2[0x1];}return null;}}class Z extends _0x23b8b9{['afterInit'](){const _0x97a6f8=this['editor'];if(!_0x97a6f8['plugins']['has']('HighlightEditing'))return;const _0x3b2277=_0x97a6f8['plugins']['get']('TrackChangesEditing'),_0x148ca4=_0x97a6f8['locale'];_0x3b2277['enableDefaultAttributesIntegration']('highlight'),_0x3b2277['registerInlineAttribute']('highlight'),_0x3b2277['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x148ca4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x296464=this['editor'],_0x4c6ff8=_0x296464['locale'];_0x296464['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ae87c=>{if('formatInline'!=_0x4ae87c['type'])return;const {data:_0x5fa85b}=_0x4ae87c;if(_0x5fa85b&&'highlight'==_0x5fa85b['commandName']){const _0x1489d9=_0x4c6ff8['t'],_0x486edb=_0x5fa85b['commandParams'][0x0]['value'];if(_0x486edb){const _0x16287f=_0x296464['config']['get']('highlight.options')['find'](_0x1e1df3=>_0x1e1df3['model']==_0x486edb),_0x4ff248=_0x1489d9(_0x16287f['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c6ff8,'*Set\x20highlight:*\x20%0',_0x4ff248),'color':{'value':_0x16287f['color'],'title':_0x16287f['title']}};}return{'type':'format','content':o(_0x4c6ff8,'*Remove\x20highlight*',o(_0x4c6ff8,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x23b8b9{['afterInit'](){const _0xd3bf53=this['editor'];if(!_0xd3bf53['plugins']['has']('HorizontalLineEditing'))return;_0xd3bf53['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x59f19e=_0xd3bf53['plugins']['get']('TrackChangesEditing'),_0x48e721=_0xd3bf53['locale'];_0x59f19e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1c126a=>o(_0x48e721,'ELEMENT_HORIZONTAL_LINE',_0x1c126a)),_0xd3bf53['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2fcceb,{writer:_0x21d5ca,options:_0x3f9aa8})=>{if(!_0x3f9aa8['showSuggestionHighlights'])return null;const _0x21fb6a=_0x21d5ca['createContainerElement']('div'),_0x21a236=_0x21d5ca['createEmptyElement']('hr');return _0x21d5ca['addClass']('ck-horizontal-line',_0x21fb6a),_0x21d5ca['insert'](_0x21d5ca['createPositionAt'](_0x21fb6a,0x0),_0x21a236),_0x21fb6a;},'converterPriority':'high'});}}class et extends _0x23b8b9{['afterInit'](){const _0x3cbcd6=this['editor'];if(!_0x3cbcd6['plugins']['has']('HtmlEmbed'))return;const _0x244168=_0x3cbcd6['plugins']['get']('TrackChangesEditing'),_0x1de39b=_0x3cbcd6['locale'];_0x244168['descriptionFactory']['registerElementLabel']('rawHtml',_0x14c3c9=>o(_0x1de39b,'ELEMENT_HTML_EMBED',_0x14c3c9)),_0x244168['enableDefaultAttributesIntegration']('htmlEmbed'),_0x244168['registerBlockAttribute']('value'),_0x244168['descriptionFactory']['registerDescriptionCallback'](_0x516d8e=>{if('attribute'!=_0x516d8e['type'])return;const {data:_0x523793}=_0x516d8e;if(_0x523793&&'value'==_0x523793['key']&&_0x516d8e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x209306=o(_0x1de39b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1de39b,'*Change\x20%0\x20content*',_0x209306)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6aff21=this['editor'],_0x41b393=_0x6aff21['locale'];_0x6aff21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46c57d=>{if('formatBlock'!=_0x46c57d['type'])return;const {data:_0x18eae6}=_0x46c57d;if(_0x18eae6&&'htmlEmbed'==_0x18eae6['commandName']){const _0x40447a=o(_0x41b393,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x41b393,'*Change\x20%0\x20content*',_0x40447a)};}});}}class it extends _0x23b8b9{['afterInit'](){const _0x3c8a2b=this['editor'];if(!_0x3c8a2b['plugins']['has']('ImageEditing'))return;const _0x1571e6=_0x3c8a2b['plugins']['get']('TrackChangesEditing'),_0x3dec2f=_0x3c8a2b['plugins']['get']('ImageUtils'),_0x475594=_0x3c8a2b['locale'];_0x1571e6['enableCommand']('insertImage'),_0x1571e6['descriptionFactory']['registerElementLabel']('imageBlock',_0x4bb858=>o(_0x475594,'ELEMENT_IMAGE',_0x4bb858)),_0x1571e6['descriptionFactory']['registerElementLabel']('imageInline',_0x3f08b6=>o(_0x475594,'ELEMENT_INLINE_IMAGE',_0x3f08b6)),_0x1571e6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x475594,'ELEMENT_CAPTION')),_0x3c8a2b['plugins']['has']('ImageUploadEditing')&&_0x1571e6['enableCommand']('uploadImage'),_0x3c8a2b['plugins']['has']('ImageBlockEditing')&&_0x3c8a2b['plugins']['has']('ImageInlineEditing')&&(_0x1571e6['enableCommand']('imageTypeInline',(_0x5ae148,_0x2f40e1)=>{const _0x4135da=_0x3dec2f['getClosestSelectedImageElement'](_0x3c8a2b['model']['document']['selection']);_0x3c8a2b['model']['change'](()=>{_0x1571e6['markBlockFormat'](_0x4135da,{'commandName':'imageTypeInline','commandParams':[_0x2f40e1]},[],'convertBlockImageToInline');});}),_0x1571e6['enableCommand']('imageTypeBlock',(_0x4b4ecb,_0x40c93a)=>{_0x3c8a2b['model']['change'](_0x70b558=>{let _0xb47e9=_0x3dec2f['getClosestSelectedImageElement'](_0x3c8a2b['model']['document']['selection']),_0x3efc84=_0x70b558['createRangeOn'](_0xb47e9);const _0x5163a6=_0x33b8bc['fromPosition'](_0x3efc84['start'],'toPrevious'),_0x36722f=_0x33b8bc['fromPosition'](_0x3efc84['end'],'toNext');_0x1571e6['forceDefaultExecution'](()=>_0x4b4ecb(_0x40c93a)),_0xb47e9=_0x3dec2f['getClosestSelectedImageElement'](_0x3c8a2b['model']['document']['selection']),_0x3efc84=_0x70b558['createRangeOn'](_0xb47e9);const _0x56b047=_0x70b558['createRange'](_0x5163a6,_0x36722f);_0x5163a6['detach'](),_0x36722f['detach'](),_0x1571e6['markBlockFormat'](_0xb47e9,{'commandName':'imageTypeInline','commandParams':[_0x40c93a]},[],'convertInlineImageToBlock'),_0x56b047['start']['isBefore'](_0x3efc84['start'])&&_0x1571e6['markInsertion'](_0x70b558['createRange'](_0x56b047['start'],_0x3efc84['start']),'convertInlineImageToBlock'),_0x3efc84['end']['isBefore'](_0x56b047['end'])&&_0x1571e6['markInsertion'](_0x70b558['createRange'](_0x3efc84['end'],_0x56b047['end']),'convertInlineImageToBlock');});}),_0x1571e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1571e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1571e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1571e6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1571e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1571e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x441aa3])=>{const _0x2ffde2=_0x1571e6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x6ad489=_0x441aa3['start'],_0x75d7f4=_0x441aa3['end'];const _0x4bbe3b=_0x3c8a2b['model']['schema']['getNearestSelectionRange'](_0x6ad489,'backward'),_0x369db9=_0x3c8a2b['model']['schema']['getNearestSelectionRange'](_0x75d7f4,'forward');_0x4bbe3b['isCollapsed']&&(_0x6ad489=_0x4bbe3b['start']),_0x369db9['isCollapsed']&&(_0x75d7f4=_0x369db9['end']),_0x2ffde2([_0x3c8a2b['model']['createRange'](_0x6ad489,_0x75d7f4)]);}),_0x1571e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5ecdbb),_0x1571e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5ecdbb)),_0x3c8a2b['plugins']['has']('ImageCaptionEditing')&&(_0x1571e6['enableCommand']('toggleImageCaption',(_0xbd68d1,_0x35beba)=>{const _0x4fe25b=_0x3c8a2b['plugins']['get']('ImageCaptionUtils');let _0x290efc=_0x3dec2f['getClosestSelectedImageElement'](_0x3c8a2b['model']['document']['selection']),_0x26c6fe=_0x4fe25b['getCaptionFromImageModelElement'](_0x290efc);_0x3c8a2b['model']['change'](()=>{if(_0x26c6fe)return void _0x1571e6['markDeletion'](_0x3c8a2b['model']['createRangeOn'](_0x26c6fe));const _0x71a6f5=_0x3dec2f['isBlockImage'](_0x290efc);_0xbd68d1(_0x35beba),_0x290efc=_0x3dec2f['getClosestSelectedImageElement'](_0x3c8a2b['model']['document']['selection']),_0x26c6fe=_0x4fe25b['getCaptionFromImageModelElement'](_0x290efc),_0x1571e6['markInsertion'](_0x3c8a2b['model']['createRangeOn'](_0x26c6fe),_0x71a6f5?null:'imageCaption');});}),_0x1571e6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5ecdbb));const _0x348816=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5d9fc8(_0x4c767e,_0x2405df){const _0x25e669=_0x348816['findIndex'](({type:_0x27d8fb,subType:_0xeea6b})=>_0x4c767e['type']==_0x27d8fb&&_0x4c767e['subType']==_0xeea6b),_0x1ee6ec=_0x348816['findIndex'](({type:_0x1ab2ce,subType:_0x58eebe})=>_0x2405df['type']==_0x1ab2ce&&_0x2405df['subType']==_0x58eebe);if(_0x25e669<0x0||_0x1ee6ec<0x0)return!0x1;const _0x520abf=_0x4c767e['getFirstRange'](),_0x5a51cf=_0x2405df['getFirstRange']();if((0x0==_0x25e669||0x1==_0x25e669)&&0x2==_0x1ee6ec&&_0x520abf['isIntersecting'](_0x5a51cf))return!0x0;if(0x2==_0x25e669&&0x3==_0x1ee6ec){const _0x315a5c=_0x1571e6['_findSuggestions'](_0x520abf,'insertion')['filter'](({suggestion:_0x213797,meta:_0x4e1a2f})=>_0x4e1a2f['isOwn']&&'convertInlineImageToBlock'==_0x213797['subType']);if(_0x315a5c['length']>0x1&&_0x5a51cf['end']['isEqual'](_0x520abf['start']))return!0x0;if(0x1==_0x315a5c['length']&&(_0x520abf['start']['isEqual'](_0x5a51cf['end'])||_0x520abf['end']['isEqual'](_0x5a51cf['start'])))return!0x0;}if(0x3==_0x25e669&&0x3==_0x1ee6ec&&_0x520abf['start']['isBefore'](_0x5a51cf['start'])){const _0x1a97bd=_0x520abf['end']['nodeAfter'],_0x3fbe0d=_0x5a51cf['start']['nodeBefore'];return _0x3dec2f['isBlockImage'](_0x1a97bd)&&_0x1a97bd===_0x3fbe0d;}return!0x1;}function _0x5ecdbb(_0x67cc3d,_0x54bf1a){return _0x5d9fc8(_0x67cc3d,_0x54bf1a)?[_0x67cc3d,_0x54bf1a]:_0x5d9fc8(_0x54bf1a,_0x67cc3d)?[_0x54bf1a,_0x67cc3d]:null;}_0x3c8a2b['plugins']['has']('ImageResize')&&(_0x1571e6['enableDefaultAttributesIntegration']('resizeImage'),_0x1571e6['registerBlockAttribute']('resizedWidth'),_0x1571e6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x475594,'FORMAT_IMAGE_SIZE'))),_0x3c8a2b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1571e6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1571e6['registerBlockAttribute']('alt')),_0x1571e6['descriptionFactory']['registerDescriptionCallback'](_0x516d0f=>{if(!!_0x348816['find'](({type:_0x238b39,subType:_0x4087f3})=>_0x516d0f['type']==_0x238b39&&_0x516d0f['subType']==_0x4087f3))return _0x516d0f['previous']?{}:void 0x0;}),_0x1571e6['descriptionFactory']['registerDescriptionCallback'](_0x1f0094=>{if('insertion'==_0x1f0094['type']||'deletion'==_0x1f0094['type']){const _0x26f0d3=_0x1f0094['getContainedElement']();if(_0x26f0d3&&_0x26f0d3['is']('element','caption'))return{'type':'insertion'==_0x1f0094['type']?'addObject':'removeObject','element':_0x26f0d3,'quantity':0x1};}}),_0x1571e6['descriptionFactory']['registerDescriptionCallback'](_0xee11ad=>'formatBlock'==_0xee11ad['type']&&'convertInlineImageToBlock'==_0xee11ad['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xee11ad['type']&&'convertBlockImageToInline'==_0xee11ad['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1571e6['descriptionFactory']['registerDescriptionCallback'](_0x406fda=>{if('attribute'!=_0x406fda['type'])return;const {data:_0x41c9a7}=_0x406fda;if(!_0x41c9a7||'alt'!=_0x41c9a7['key'])return;const _0x57f565=_0x41c9a7['newValue'];return _0x57f565?{'type':'format','content':o(_0x475594,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x57f565+'\x22')}:{'type':'format','content':o(_0x475594,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x222bb7=this['editor'],_0x8ed9d5=_0x222bb7['locale'];_0x222bb7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c2868=>{if('formatBlock'!=_0x5c2868['type']&&'formatInline'!=_0x5c2868['type'])return;const {data:_0x327e2f}=_0x5c2868;if(_0x327e2f){if('imageTextAlternative'==_0x327e2f['commandName']){const _0x2aa374=_0x327e2f['commandParams'][0x0]['newValue'];return _0x2aa374?{'type':'format','content':o(_0x8ed9d5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2aa374+'\x22')}:{'type':'format','content':o(_0x8ed9d5,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x327e2f['commandName']){const _0x40769d=_0x327e2f['commandParams'][0x0]['width'];return _0x40769d?{'type':'format','content':o(_0x8ed9d5,'*Set\x20image\x20width:*\x20%0',_0x40769d)}:{'type':'format','content':o(_0x8ed9d5,'*Reset\x20image\x20width*')};}}});}}class st extends _0x23b8b9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5b07e1=this['editor']['locale'],_0x45d42f=this['editor']['plugins']['get']('TrackChangesEditing');_0x45d42f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x45d42f['registerBlockAttribute']('src'),_0x45d42f['descriptionFactory']['registerDescriptionCallback'](_0x15f1a4=>{if('attribute'!=_0x15f1a4['type'])return;const {data:_0x346d70}=_0x15f1a4;return _0x346d70&&'src'==_0x346d70['key']?_0x346d70['newValue']&&_0x346d70['oldValue']?{'type':'format','content':o(_0x5b07e1,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4c5bb0=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c5bb0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4c5bb0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c5bb0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4c5bb0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44504b=this['editor'],_0xed0f26=_0x44504b['locale'];_0x44504b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565c5f=>{if('formatBlock'!=_0x565c5f['type']&&'formatInline'!=_0x565c5f['type'])return;const {data:_0x5bf066}=_0x565c5f;if(!_0x5bf066||'replaceImageSource'!=_0x5bf066['commandName'])return;return{'type':'format','content':o(_0xed0f26,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x23b8b9{['afterInit'](){const _0xb50e5f=this['editor'];if(!_0xb50e5f['plugins']['has']('ImageStyleEditing'))return;const _0x430d8b=_0xb50e5f['plugins']['get']('TrackChangesEditing'),_0x2c60f3=_0xb50e5f['plugins']['get']('ImageUtils'),_0x47ee57={};_0x430d8b['enableCommand']('imageStyle',(_0x2f2272,_0x268aaf)=>{const _0x2fb343=_0xb50e5f['plugins']['get']('Users')['me'],_0x37ed52=_0xb50e5f['commands']['get']('imageStyle');let _0x5506f5=_0x2c60f3['getClosestSelectedImageElement'](_0xb50e5f['model']['document']['selection']),_0x2ac666=_0xb50e5f['model']['createRangeOn'](_0x5506f5),_0x452e5a=_0x37ed52['value'];if(_0x452e5a==_0x268aaf['value'])return;const _0x33c1c7={'commandName':'imageStyle','commandParams':[_0x268aaf],'formatGroupId':_0x2905f1()};_0xb50e5f['model']['change'](()=>{if(_0x430d8b['getSuggestions']()['filter'](_0x19b78e=>_0x19b78e['isInContent']&&_0x2fb343==_0x19b78e['author']&&('formatBlock'==_0x19b78e['type']||'formatInline'==_0x19b78e['type'])&&('imageStylePreApply'==_0x19b78e['subType']||'imageStylePostApply'==_0x19b78e['subType'])&&_0x19b78e['getFirstRange']()['isEqual'](_0x2ac666))['forEach'](_0x3f7cfa=>_0x430d8b['discardSuggestion'](_0x3f7cfa['head'])),_0x5506f5=_0x2c60f3['getClosestSelectedImageElement'](_0xb50e5f['model']['document']['selection']),_0x2ac666=_0xb50e5f['model']['createRangeOn'](_0x5506f5),_0x37ed52['refresh'](),_0xb50e5f['commands']['get']('imageTypeInline')['refresh'](),_0xb50e5f['commands']['get']('imageTypeBlock')['refresh'](),_0x452e5a=_0x37ed52['value'],_0x452e5a!=_0x268aaf['value'])return _0x2c60f3['isInlineImage'](_0x5506f5)&&_0x37ed52['shouldConvertImageType'](_0x268aaf['value'],_0x5506f5)?(_0x2f2272({..._0x268aaf,'setImageSizes':!0x1}),_0x5506f5=_0x2c60f3['getClosestSelectedImageElement'](_0xb50e5f['model']['document']['selection']),void _0x430d8b['markBlockFormat'](_0x5506f5,{..._0x33c1c7,'commandReversedParams':[{'value':_0x452e5a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c60f3['isBlockImage'](_0x5506f5)?_0x430d8b['markBlockFormat'](_0x5506f5,_0x33c1c7,[],'imageStylePostApply'):_0x430d8b['markInlineFormat'](_0x2ac666,_0x33c1c7,'imageStylePostApply'));});});for(const _0x4cf132 of _0xb50e5f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x47ee57[_0x4cf132['name']]=_0x4cf132['title']['toLowerCase']();_0x430d8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x430d8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x430d8b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x430d8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x392b47])=>{_0x2c60f3['setImageNaturalSizeAttributes'](_0x392b47['getContainedElement']());}),_0x430d8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x425509,_0x1c2f64)=>{_0x430d8b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x425509,{'commandName':_0x1c2f64['commandName'],'commandParams':_0x1c2f64['commandReversedParams']});}),_0x430d8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x15e35b,_0x3c2b2b){if(_0x467ae1(_0x15e35b,_0x3c2b2b))return[_0x15e35b,_0x3c2b2b];if(_0x467ae1(_0x3c2b2b,_0x15e35b))return[_0x3c2b2b,_0x15e35b];return null;});const _0x4ea309=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x467ae1(_0x1061bf,_0x36cb63){const _0x25ab08=_0x4ea309['findIndex'](({type:_0x1953de,subType:_0x5b7ecc})=>_0x1061bf['type']==_0x1953de&&_0x1061bf['subType']==_0x5b7ecc),_0x5cdebc=_0x4ea309['findIndex'](({type:_0x3196c8,subType:_0x46cfaf})=>_0x36cb63['type']==_0x3196c8&&_0x36cb63['subType']==_0x46cfaf);if(_0x25ab08<0x0||_0x5cdebc<0x0)return!0x1;const _0x54a57a=_0x1061bf['getFirstRange'](),_0x5e4385=_0x36cb63['getFirstRange']();if((0x0==_0x25ab08||0x1==_0x25ab08)&&0x2==_0x5cdebc&&_0x54a57a['isIntersecting'](_0x5e4385))return!0x0;if(0x2==_0x25ab08&&0x3==_0x5cdebc){const _0x461462=_0x430d8b['_findSuggestions'](_0x54a57a,'insertion')['filter'](({suggestion:_0xc7b314,meta:_0x11d27f})=>_0x11d27f['isOwn']&&'convertInlineImageToBlock'==_0xc7b314['subType']);if(_0x461462['length']>0x1&&_0x5e4385['end']['isEqual'](_0x54a57a['start']))return!0x0;if(0x1==_0x461462['length']&&(_0x54a57a['start']['isEqual'](_0x5e4385['end'])||_0x54a57a['end']['isEqual'](_0x5e4385['start'])))return!0x0;}if(0x3==_0x25ab08&&0x3==_0x5cdebc&&_0x54a57a['start']['isBefore'](_0x5e4385['start'])){const _0x23f5fa=_0x54a57a['end']['nodeAfter'],_0x3b6807=_0x5e4385['start']['nodeBefore'];return _0x2c60f3['isBlockImage'](_0x23f5fa)&&_0x23f5fa===_0x3b6807;}return!0x1;}_0xb50e5f['model']['document']['registerPostFixer'](()=>{let _0x207a2c=!0x1;const _0x1a6238=Array['from'](_0xb50e5f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c4298,data:_0x32607d}of _0x1a6238){const {group:_0x53dc02,type:_0x48c0fa,subType:_0x21da7d,id:_0x5318f2}=_0x430d8b['_splitMarkerName'](_0x3c4298);if('suggestion'==_0x53dc02&&_0x430d8b['hasSuggestion'](_0x5318f2)){if('formatBlock'==_0x48c0fa&&('imageStylePreApply'==_0x21da7d||'imageStylePostApply'==_0x21da7d)){const _0x193539=_0x430d8b['getSuggestion'](_0x5318f2);if(_0x32607d['newRange']){const _0x4ebbd4=_0x193539['getFirstRange']()['getContainedElement']();if(_0x2c60f3['isBlockImage'](_0x4ebbd4))continue;_0x430d8b['discardSuggestion'](_0x193539),_0x207a2c=!0x0;}}if('insertion'==_0x48c0fa&&'imageCaption'==_0x21da7d&&!_0x32607d['newRange']){const _0x1043cc=_0x430d8b['getSuggestion'](_0x5318f2);_0x1043cc['next']&&_0x1043cc['next']['isInContent']&&(_0x430d8b['discardSuggestion'](_0x1043cc['next']),_0x207a2c=!0x0);}}}return _0x207a2c;}),this['_registerLegacyDescription'](_0x47ee57);}['_registerLegacyDescription'](_0x2c3baa){const _0x1ad41b=this['editor'],_0x15341a=_0x1ad41b['locale'];_0x1ad41b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4480a2=>{if('formatBlock'!=_0x4480a2['type']&&'formatInline'!=_0x4480a2['type'])return;const {data:_0x2d6dc2}=_0x4480a2;if(!_0x2d6dc2||'imageStyle'!=_0x2d6dc2['commandName'])return;const _0x11727c=_0x2d6dc2['commandParams'][0x0]['value'];return _0x57baa4('side'===_0x11727c?o(_0x15341a,'FORMAT_SIDE_IMAGE'):_0x2c3baa[_0x11727c]||_0x11727c);function _0x57baa4(_0x39d42d){return{'type':'format','content':o(_0x15341a,'*Format:*\x20%0',_0x39d42d)};}});}}class ot extends _0x23b8b9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x418229){super(_0x418229),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x293dd2=this['editor'],_0x4a134c=_0x293dd2['commands']['get']('importWord'),_0x21044c=_0x293dd2['commands']['get']('trackChanges');_0x4a134c&&(_0x4a134c['on']('execute',(_0x17b202,[,_0x3a8037])=>{this['_trackChangesValueDuringImport']=_0x21044c['value'],_0x3a8037['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4a134c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4a134c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x21044c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x293dd2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4ab54b,_0x86e15){const {suggestions:_0x5a9d96}=_0x86e15,_0x265dfa=this['editor']['commands']['get']('trackChanges'),_0x5a9b48=_0x265dfa['value'];this['_trackChangesValueDuringImport']!==_0x5a9b48&&(_0x265dfa['execute'](),this['_trackChangesExecuted']=!0x0),_0x5a9d96&&_0x5a9d96['forEach'](({id:_0x1f4df5,type:_0xff495d,author:_0x4e1e04,created_at:_0x2496dd})=>{const _0x3b2965={'id':_0x1f4df5,'type':_0xff495d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4e1e04,'createdAt':_0x2496dd?new Date(_0x2496dd):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3b2965);});}}class rt extends _0x23b8b9{['afterInit'](){const _0x215e30=this['editor'],_0x3d75ad=_0x215e30['plugins']['get']('TrackChangesEditing');if(_0x215e30['plugins']['has']('IndentEditing')&&(_0x3d75ad['enableCommand']('indent'),_0x3d75ad['enableCommand']('outdent')),_0x215e30['plugins']['has']('IndentBlock')){for(const _0x545082 of['indentBlock','outdentBlock'])_0x3d75ad['enableDefaultAttributesIntegration'](_0x545082);}const _0x53be27=_0x215e30['locale'];_0x3d75ad['registerBlockAttribute']('blockIndent'),_0x3d75ad['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x53be27,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x413ed5=this['editor'],_0x1fdd9d=_0x413ed5['locale'],_0x58daf5=_0x413ed5['plugins']['get']('TrackChangesEditing');_0x58daf5['descriptionFactory']['registerDescriptionCallback'](_0x1aa73b=>{if('formatBlock'!=_0x1aa73b['type'])return;const {data:_0x14f343}=_0x1aa73b;if(!_0x14f343)return;if('indentBlock'!=_0x14f343['commandName']&&'outdentBlock'!=_0x14f343['commandName'])return;const _0x4ae375=_0x1aa73b['getItems']()[0x0],_0x269847=_0x58daf5['descriptionFactory']['getItemLabel'](_0x4ae375);return'indentBlock'==_0x14f343['commandName']?{'type':'format','content':o(_0x1fdd9d,'*Indent:*\x20%0',_0x269847)}:'outdentBlock'==_0x14f343['commandName']?{'type':'format','content':o(_0x1fdd9d,'*Outdent:*\x20%0',_0x269847)}:void 0x0;});}}class at extends _0x23b8b9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x23b8b9{['afterInit'](){const _0x407aa8=this['editor'];if(!_0x407aa8['plugins']['has']('LinkEditing'))return;const _0xb10784=_0x407aa8['plugins']['get']('TrackChangesEditing'),_0x8dc9a1=_0x407aa8['commands']['get']('link');_0xb10784['enableDefaultAttributesIntegration']('link'),_0xb10784['enableDefaultAttributesIntegration']('unlink'),_0xb10784['registerInlineAttribute']('linkHref');for(const _0x1d5d5d of _0x8dc9a1['manualDecorators'])_0xb10784['registerInlineAttribute'](_0x1d5d5d['id']),_0xb10784['descriptionFactory']['registerAttributeLabel'](_0x1d5d5d['id'],'link\x20('+_0x1d5d5d['label']['toLowerCase']()+')');_0xb10784['descriptionFactory']['registerDescriptionCallback'](_0x226ccd=>{if('attribute'!=_0x226ccd['type'])return;const {data:_0x5b1589}=_0x226ccd;if(!_0x5b1589||'linkHref'!=_0x5b1589['key'])return;const _0x14f6f4=_0x5b1589['newValue'],_0x581168=_0x407aa8['locale'];return{'type':'format','content':null==_0x14f6f4?o(_0x581168,'*Remove\x20link*'):o(_0x581168,'*Set\x20link:*\x20%0','\x22'+_0x14f6f4+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17779f=this['editor'],_0x5eb0e3=_0x17779f['locale'];_0x17779f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40544b=>{if('formatInline'!=_0x40544b['type'])return;const {data:_0x3f242a}=_0x40544b;if(_0x3f242a){if('link'==_0x3f242a['commandName']){const _0x999972=_0x3f242a['commandParams'][0x0];return{'type':'format','content':o(_0x5eb0e3,'*Set\x20link:*\x20%0','\x22'+_0x999972+'\x22')};}return'unlink'==_0x3f242a['commandName']?{'type':'format','content':o(_0x5eb0e3,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x23b8b9{['afterInit'](){const _0x100a34=this['editor'],_0xa44a03=_0x100a34['locale'];if(!_0x100a34['plugins']['has']('LegacyListEditing'))return;const _0x15052b=_0x100a34['plugins']['get']('TrackChangesEditing'),_0x19eb64=_0x100a34['plugins']['has']('LegacyTodoListEditing');function _0x11fc0d(_0x412d9b){return()=>{const _0x2636cb=_0x100a34['model']['document']['selection'],_0x2518b3=_0x100a34['commands']['get'](_0x412d9b);if(_0x2518b3['value'])return void _0x100a34['execute']('paragraph',{});const _0x21b8c9=_0x412d9b['slice'](0x0,-0x4),_0x17756b=function(_0x279f21,_0x41ef86,_0xca1cc7){let _0x54c11c=Array['from'](_0x279f21)['filter'](_0x3b4972=>function(_0x145721,_0x225cd6){return _0x225cd6['checkChild'](_0x145721['parent'],'listItem')&&!_0x225cd6['isObject'](_0x145721);}(_0x3b4972,_0xca1cc7));_0x54c11c=_0x54c11c['filter'](_0x1746d1=>!_0x1746d1['is']('element','listItem')||_0x1746d1['getAttribute']('listType')!=_0x41ef86);const _0x1094ec=new Set();for(const _0x140971 of _0x54c11c)_0x140971['is']('element','listItem')?_0x1094ec['add'](fe(_0x140971)):_0x1094ec['add'](_0x140971);return Array['from'](_0x1094ec);}(_0x2636cb['getSelectedBlocks'](),_0x21b8c9,_0x100a34['model']['schema']);_0x100a34['model']['change'](()=>{for(const _0x5ed82b of _0x17756b)_0x15052b['markBlockFormat'](_0x5ed82b,{'commandName':_0x412d9b,'commandParams':[{'forceValue':!_0x2518b3['value']}],'formatGroupId':'blockName'},ue(_0x5ed82b));});};}function _0x3d5695(_0x499ea4){return()=>{const _0x3841b8=function(_0x2a749a){let _0x4081ad=Array['from'](_0x2a749a);const _0x8744f5=_0x4081ad['findIndex'](_0x4b917b=>'listItem'!=_0x4b917b['name']);return _0x8744f5>-0x1&&(_0x4081ad=_0x4081ad['slice'](0x0,_0x8744f5)),_0x4081ad;}(_0x100a34['model']['document']['selection']['getSelectedBlocks']()),_0x332495=_0x100a34['model']['createRange'](_0x100a34['model']['createPositionAt'](_0x3841b8[0x0],'before'),_0x100a34['model']['createPositionAt'](_0x3841b8[_0x3841b8['length']-0x1],'end'));_0x100a34['model']['change'](()=>{_0x15052b['markBlockFormat'](_0x332495,{'commandName':_0x499ea4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x507e72){const _0x101eaa=new Set();for(const _0x4b4b9b of _0x507e72){let _0x8c0c93=_0x4b4b9b['nextSibling'];for(;_0x8c0c93&&_0x8c0c93['getAttribute']('listIndent')>_0x4b4b9b['getAttribute']('listIndent');)_0x101eaa['add'](_0x8c0c93),_0x8c0c93=_0x8c0c93['nextSibling'];}return Array['from'](_0x101eaa);}(_0x3841b8));});};}_0x15052b['enableCommand']('numberedList',_0x11fc0d('numberedList')),_0x15052b['enableCommand']('bulletedList',_0x11fc0d('bulletedList')),_0x19eb64&&_0x15052b['enableCommand']('todoList',_0x11fc0d('todoList')),_0x15052b['enableCommand']('indentList',_0x3d5695('indentList')),_0x15052b['enableCommand']('outdentList',_0x3d5695('outdentList')),_0x19eb64&&_0x15052b['enableCommand']('checkTodoList',()=>{const _0xbe0240=_0x100a34['commands']['get']('checkTodoList'),_0x232bec=Array['from'](_0xbe0240['_selectedElements']);_0x232bec['filter'](_0x3d3da0=>_0x3d3da0['getAttribute']('todoListChecked')!=_0xbe0240['value']),_0x100a34['model']['change'](()=>{for(const _0x2a98c3 of _0x232bec)_0x15052b['markBlockFormat'](_0x2a98c3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xbe0240['value']}]});});}),_0x15052b['descriptionFactory']['registerElementLabel']('listItem',_0x47f6ea=>o(_0xa44a03,'ELEMENT_LIST_ITEM',_0x47f6ea)),_0x15052b['descriptionFactory']['registerDescriptionCallback'](_0x3b4346=>{if('formatBlock'!=_0x3b4346['type']&&'formatInline'!=_0x3b4346['type'])return;const {data:_0x364516}=_0x3b4346;if(_0x364516){if('numberedList'==_0x364516['commandName']||'bulletedList'==_0x364516['commandName']||'todoList'==_0x364516['commandName'])switch(_0x364516['commandName']['replace']('List','')){case'bulleted':return _0x4299fb(o(_0xa44a03,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4299fb(o(_0xa44a03,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4299fb(o(_0xa44a03,'ELEMENT_TODO_LIST'));}if('indentList'==_0x364516['commandName'])return{'type':'format','content':o(_0xa44a03,'*Indent:*\x20%0',o(_0xa44a03,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x364516['commandName'])return{'type':'format','content':o(_0xa44a03,'*Outdent:*\x20%0',o(_0xa44a03,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x364516['commandName'])return _0x364516['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa44a03,'*Check\x20item*')}:{'type':'format','content':o(_0xa44a03,'*Uncheck\x20item*')};}function _0x4299fb(_0x2c5e61){return{'type':'format','content':o(_0xa44a03,'*Change\x20to:*\x20%0',_0x2c5e61)};}});}}function fe(_0x14cd38){const _0x115c8c=_0x14cd38['getAttribute']('listIndent');if(0x0==_0x115c8c)return _0x14cd38;let _0x5eff42=_0x14cd38;for(;_0x14cd38['previousSibling']&&_0x14cd38['previousSibling']['is']('element','listItem');){const _0x1f7b8c=_0x14cd38['previousSibling']['getAttribute']('listIndent');if(_0x1f7b8c==_0x115c8c)_0x5eff42=_0x14cd38['previousSibling'];else{if(_0x1f7b8c<_0x115c8c)break;}_0x14cd38=_0x14cd38['previousSibling'];}return _0x5eff42;}function ue(_0x14e806){const _0x3e44e3=[];if(_0x14e806['is']('element','listItem')&&_0x14e806['getAttribute']('listIndent')>0x0){let _0x1f5c7f=_0x14e806['nextSibling'];for(;_0x1f5c7f&&'listItem'==_0x1f5c7f['name']&&_0x1f5c7f['getAttribute']('listIndent')==_0x14e806['getAttribute']('listIndent');)_0x3e44e3['push'](_0x1f5c7f),_0x1f5c7f=_0x1f5c7f['nextSibling'];}return _0x3e44e3;}class K extends _0x23b8b9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x40cc50=this['editor']['config']['get']('list.properties'),_0x5f24dd=this['editor']['plugins']['get']('TrackChangesEditing');_0x40cc50['styles']&&_0x5f24dd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x40cc50['reversed']&&_0x5f24dd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x40cc50['startIndex']&&_0x5f24dd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5f24dd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x6b270,_0x1c6e63={}){const _0x56bbae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bbd88=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x56bbae['markMultiRangeBlockFormat'](_0x1bbd88,{'commandName':'listStyle','commandParams':[{'type':_0x1c6e63['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5de053,_0x4a6fe7={}){const _0x487619=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb9fc3e=this['_getSuggestionBlocks'](_0xab4bdc=>_0xab4bdc['is']('element','listItem')&&'numbered'===_0xab4bdc['getAttribute']('listType'));if(_0xb9fc3e['length']<0x1)return;const _0x2d9fde=_0xb9fc3e['map'](_0x1b099d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1b099d,'before'),this['editor']['model']['createPositionAt'](_0x1b099d,0x0)));this['editor']['model']['change'](()=>{_0x487619['markMultiRangeBlockFormat'](_0x2d9fde,{'commandName':'listReversed','commandParams':[{'reversed':_0x4a6fe7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x20487b,_0x2bb45a={}){const _0x5ba474=this['editor']['plugins']['get']('TrackChangesEditing'),_0x266172=this['_getSuggestionBlocks'](_0x53d01a=>_0x53d01a['is']('element','listItem')&&'numbered'===_0x53d01a['getAttribute']('listType'));if(_0x266172['length']<0x1)return;const _0x51c6e3=_0x266172['map'](_0x3ce5e0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ce5e0,'before'),this['editor']['model']['createPositionAt'](_0x3ce5e0,0x0)));this['editor']['model']['change'](()=>{_0x5ba474['markMultiRangeBlockFormat'](_0x51c6e3,{'commandName':'listStart','commandParams':[{'startIndex':_0x2bb45a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5b54b7){if('formatBlock'!=_0x5b54b7['type']&&'formatInline'!=_0x5b54b7['type'])return;const _0x1b884a=this['editor']['locale'],{data:_0x3fe263}=_0x5b54b7;if(!_0x3fe263)return;let _0x45b9a8,_0x5a8f20;switch(_0x3fe263['commandName']){case'listStyle':_0x45b9a8='*Change\x20to:*\x20%0',_0x5a8f20={'type':'format','content':o(_0x1b884a,_0x45b9a8,o(_0x1b884a,this['_getTranslationKeyForListStyle'](_0x3fe263['commandParams'][0x0]['type'])))};break;case'listReversed':_0x45b9a8=_0x3fe263['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5a8f20={'type':'format','content':o(_0x1b884a,_0x45b9a8)};break;case'listStart':_0x45b9a8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5a8f20={'type':'format','content':o(_0x1b884a,_0x45b9a8,_0x3fe263['commandParams'][0x0]['startIndex'])};}return _0x5a8f20;}['_getSuggestionBlocksForListStyle'](){const _0x53515d=this['editor']['plugins']['get']('LegacyListUtils');let _0x6e9da8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x6e9da8[0x0]?.['is']('element','listItem')&&_0x6e9da8['unshift'](..._0x53515d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x6e9da8[_0x6e9da8['length']-0x1]?.['is']('element','listItem')&&_0x6e9da8['push'](..._0x53515d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x6e9da8=[...new Set(_0x6e9da8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x6e9da8=_0x6e9da8['filter'](_0x248ac4=>_0x248ac4['is']('element','listItem'))),_0x6e9da8;}['_getSuggestionBlocks'](_0x189891){const _0x4eb5bd=this['editor']['plugins']['get']('LegacyListUtils');let _0x95e47c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x189891)['map'](_0x1849f7=>{const _0x3437df=this['editor']['model']['createPositionAt'](_0x1849f7,0x0);return[..._0x4eb5bd['getSiblingNodes'](_0x3437df,'backward'),..._0x4eb5bd['getSiblingNodes'](_0x3437df,'forward')];})['flat']();return _0x95e47c=[...new Set(_0x95e47c)],_0x95e47c;}['_getTranslationKeyForListStyle'](_0x27d545){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x27d545)||'default')['toUpperCase']()+'_LIST_'+_0x27d545['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x23b8b9{['afterInit'](){const _0x44d18e=this['editor'];if(!_0x44d18e['plugins']['has']('MediaEmbedEditing'))return;const _0xf9c45e=_0x44d18e['plugins']['get']('TrackChangesEditing'),_0x5439c0=_0x44d18e['locale'];_0xf9c45e['enableCommand']('mediaEmbed'),_0xf9c45e['descriptionFactory']['registerElementLabel']('media',_0x2952cf=>o(_0x5439c0,'ELEMENT_MEDIA',_0x2952cf)),_0x44d18e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x47da2c,{writer:_0x201f1b,options:_0x359979})=>{if(_0x359979['showSuggestionHighlights'])return _0x201f1b['createEmptyElement']('div');},'converterPriority':'high'}),_0x44d18e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x264716,_0x340a95,_0x454b56)=>{_0x454b56['options']['showSuggestionHighlights']&&_0x264716['stop']();},{'priority':'high'});}}class gt extends _0x23b8b9{['afterInit'](){const _0x422607=this['editor'];_0x422607['plugins']['has']('MentionEditing')&&_0x422607['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x23b8b9{['afterInit'](){const _0x470a43=this['editor'];if(!_0x470a43['commands']['get']('insertMergeField'))return;_0x470a43['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x33e113=_0x470a43['plugins']['get']('TrackChangesEditing'),_0x5310b1=_0x470a43['locale'];_0x33e113['descriptionFactory']['registerElementLabel']('mergeField',_0x10b471=>o(_0x5310b1,'ELEMENT_MERGE_FIELD',_0x10b471)),_0x33e113['descriptionFactory']['registerDescriptionCallback'](_0x29679a=>{if('insertion'!=_0x29679a['type']&&'deletion'!=_0x29679a['type'])return;const _0x2dd8eb=_0x29679a['getContainedElement']();if(null==_0x2dd8eb)return;if(!_0x2dd8eb['is']('element','mergeField'))return;const _0x2948a2=_0x470a43['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x2dd8eb['getAttribute']('id'));return'insertion'==_0x29679a['type']?{'type':'insertion','content':o(_0x5310b1,'*Insert:*\x20%0','\x22'+_0x2948a2+'\x22\x20'+o(_0x5310b1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5310b1,'*Remove:*\x20%0','\x22'+_0x2948a2+'\x22\x20'+o(_0x5310b1,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x23b8b9{['afterInit'](){const _0x3ff4de=this['editor'],_0x4dd272=_0x3ff4de['plugins']['get']('TrackChangesEditing');_0x3ff4de['plugins']['has']('MultiLevelList')&&(_0x4dd272['enableDefaultAttributesIntegration']('multiLevelList'),_0x4dd272['registerBlockAttribute']('listMarkerStyle'),_0x4dd272['descriptionFactory']['registerDescriptionCallback'](_0x32be1c=>this['handleDescriptions'](_0x32be1c)));}['handleDescriptions'](_0x3ec686){const _0x278a16=this['editor']['locale'],{data:_0x49a851}=_0x3ec686,_0x2d1332={'type':'format','content':''};if(_0x49a851&&'listMarkerStyle'==_0x49a851['key']){if(!_0x49a851['oldValue'])return{'type':'format','content':o(_0x278a16,'*Set\x20format:*\x20%0',o(_0x278a16,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49a851['newValue']+')'};if(!_0x49a851['newValue']){let _0x53681a=_0x3ec686['head'];for(;_0x53681a;){if(_0x53681a['data']&&'listType'==_0x53681a['data']['key']&&_0x53681a['data']['newValue'])return _0x2d1332;_0x53681a=_0x53681a['next'];}return{'type':'format','content':o(_0x278a16,'*Remove\x20format:*\x20%0',o(_0x278a16,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49a851['oldValue']+')'};}}}}class dt extends _0x23b8b9{['afterInit'](){const _0xef6aeb=this['editor'];if(!_0xef6aeb['plugins']['has']('PageBreakEditing'))return;_0xef6aeb['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x24f23e=_0xef6aeb['plugins']['get']('TrackChangesEditing'),_0x3d11cd=_0xef6aeb['locale'];_0x24f23e['descriptionFactory']['registerElementLabel']('pageBreak',_0x2c8ec8=>o(_0x3d11cd,'ELEMENT_PAGE_BREAK',_0x2c8ec8));}}class pt extends _0x23b8b9{['afterInit'](){const _0x23ffe2=this['editor'];if(!_0x23ffe2['plugins']['has']('Paragraph'))return;const _0x27a839=_0x23ffe2['locale'],_0x44a233=_0x23ffe2['plugins']['get']('TrackChangesEditing');_0x44a233['descriptionFactory']['registerElementLabel']('paragraph',_0x507d2a=>o(_0x27a839,'ELEMENT_PARAGRAPH',_0x507d2a)),_0x44a233['enableDefaultAttributesIntegration']('paragraph'),_0x44a233['enableCommand']('insertParagraph'),_0x23ffe2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x23ffe2),{'priority':'highest'}),_0x23ffe2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x44aac5,_0x1a6ea7,_0x42bca6)=>{_0x42bca6['options']['showSuggestionHighlights']&&nr(_0x23ffe2,{'showActiveMarker':!0x1})(_0x44aac5,_0x1a6ea7,_0x42bca6);},{'priority':'highest'});const _0x285258=_0x44a233['descriptionFactory'];_0x285258['registerDescriptionCallback'](_0x48e220=>{if('insertion'!==_0x48e220['type'])return;const {start:_0x1de063,end:_0x38e09e}=_0x48e220['getFirstRange']();if(!_0x1de063['isTouching'](_0x38e09e)||!_0x1de063['nodeAfter'])return;const _0x4c9670=_0x23ffe2['model']['schema'],_0x258c01=_0x1de063['nodeAfter'];return _0x4c9670['isBlock'](_0x258c01)&&!_0x4c9670['isLimit'](_0x258c01)&&_0x4c9670['checkChild'](_0x258c01,'$text')?{'type':'insertion','content':o(_0x27a839,'*Insert:*\x20%0',_0x285258['getItemLabel'](_0x258c01,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x379762=this['editor'],_0x3dff71=_0x379762['locale'];_0x379762['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x511f01=>{if('formatBlock'!=_0x511f01['type'])return;const {data:_0x1c3066}=_0x511f01;return _0x1c3066&&'paragraph'==_0x1c3066['commandName']?{'type':'format','content':o(_0x3dff71,'*Change\x20to:*\x20%0',o(_0x3dff71,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x20e50a,{showActiveMarker:_0x1d6c5c=!0x0}={}){return(_0x8c8157,_0x246aee,_0xaa10d7)=>{const _0x1d1d00=_0x20e50a['plugins']['get']('TrackChangesEditing'),_0x1da801=_0x246aee['markerRange']['start'],_0x13fab5=_0x246aee['markerRange']['end'],_0xafc219=_0x20e50a['model']['schema'];if(!_0x1da801['isTouching'](_0x13fab5)||!_0x1da801['nodeAfter'])return;const _0x8838e9=_0x1da801['nodeAfter'];if(_0xafc219['isBlock'](_0x8838e9)&&!_0xafc219['isLimit'](_0x8838e9)&&_0xafc219['checkChild'](_0x8838e9,'$text')){if(!_0xaa10d7['consumable']['consume'](_0x246aee['markerRange'],_0x8c8157['name']))return;const _0x10e520=_0xaa10d7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x412104=_0xaa10d7['mapper']['toViewPosition'](_0x13fab5);_0x1d6c5c&&_0x1d1d00['activeMarkers']['includes'](_0x246aee['markerName'])&&_0xaa10d7['writer']['addClass']('ck-suggestion-marker--active',_0x10e520),_0xaa10d7['writer']['insert'](_0x412104,_0x10e520),_0xaa10d7['mapper']['bindElementToMarker'](_0x10e520,_0x246aee['markerName']);}};}class kt extends _0x23b8b9{['afterInit'](){const _0x50b3cc=this['editor'];if(!_0x50b3cc['plugins']['has']('RemoveFormatEditing'))return;_0x50b3cc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4987fe=this['editor'];_0x4987fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39c518=>{if('formatBlock'!=_0x39c518['type']&&'formatInline'!=_0x39c518['type'])return;const {data:_0xc3a064}=_0x39c518;return _0xc3a064&&'removeFormat'==_0xc3a064['commandName']?{'type':'format','content':o(_0x4987fe['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x23b8b9{['afterInit'](){const _0x15c345=this['editor'];if(!_0x15c345['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3533d3=_0x15c345['plugins']['get']('TrackChangesEditing');_0x3533d3['enableCommand']('goToPreviousRestrictedEditingException'),_0x3533d3['enableCommand']('goToNextRestrictedEditingException');const _0x24e0f1=_0x15c345['plugins']['get']('RestrictedEditingModeEditing');_0x24e0f1['enableCommand']('trackChanges'),_0x24e0f1['enableCommand']('acceptSuggestion'),_0x24e0f1['enableCommand']('discardSuggestion'),_0x24e0f1['enableCommand']('acceptAllSuggestions'),_0x24e0f1['enableCommand']('discardAllSuggestions'),_0x24e0f1['enableCommand']('acceptSelectedSuggestions'),_0x24e0f1['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x23b8b9{static get['requires'](){return[_0x520e55];}['init'](){const _0x32c0c8=this['editor'],_0x56350f=_0x32c0c8['plugins']['get']('TrackChangesEditing');_0x56350f['enableCommand']('shiftEnter'),_0x32c0c8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x32c0c8),{'priority':'high'}),_0x32c0c8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x32c0c8),{'priority':'high'}),_0x32c0c8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5eebf5,_0x31e13e,_0xca9409)=>{_0xca9409['options']['showSuggestionHighlights']&&ce(_0x32c0c8,{'showActiveMarker':!0x1})(_0x5eebf5,_0x31e13e,_0xca9409);}),_0x56350f['descriptionFactory']['registerElementLabel']('softBreak',_0x2d713b=>o(_0x32c0c8['locale'],'ELEMENT_LINE_BREAK',_0x2d713b));}}function ce(_0x3884ee,{showActiveMarker:_0x1fe49e=!0x0}={}){return(_0x1c6e5d,_0xf27a96,_0x5b8c42)=>{const _0x2fed16=_0x3884ee['plugins']['get']('TrackChangesEditing');if(!_0x5b8c42['consumable']['test'](_0xf27a96['markerRange'],_0x1c6e5d['name']))return;const _0x560a2e=_0x3884ee['model'];for(const _0xd20848 of _0xf27a96['markerRange']['getItems']()){if(!_0xd20848['is']('element','softBreak'))continue;const _0x136fda='deletion'==_0xf27a96['markerName']['split'](':')[0x1]?'merge':'split',_0x351398=_0x5b8c42['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x136fda}),_0x2a5e9b=_0x5b8c42['mapper']['toViewPosition'](_0x560a2e['createPositionBefore'](_0xd20848));_0x1fe49e&&_0x2fed16['activeMarkers']['includes'](_0xf27a96['markerName'])&&_0x5b8c42['writer']['addClass']('ck-suggestion-marker--active',_0x351398),_0x5b8c42['writer']['insert'](_0x2a5e9b,_0x351398),_0x5b8c42['mapper']['bindElementToMarker'](_0x351398,_0xf27a96['markerName']);}};}class yt extends _0x23b8b9{['afterInit'](){const _0x4c0ac2=this['editor'],_0x2c0bf6=_0x4c0ac2['model'],_0x31166f=_0x4c0ac2['locale'];if(!_0x4c0ac2['plugins']['has']('StandardEditingModeEditing'))return;const _0x347ef8=_0x4c0ac2['plugins']['get']('TrackChangesEditing'),_0x58d85b='restrictedEditingException',_0x23d584=_0x4c0ac2['commands']['get'](_0x58d85b);_0x347ef8['enableCommand'](_0x58d85b,(_0x24cdfb,_0x287c53={})=>{const _0x49445f=_0x2c0bf6['document']['selection'];if(_0x49445f['isCollapsed'])return void _0x24cdfb(_0x287c53);const _0x1e211a=void 0x0!==_0x287c53['forceValue']?_0x287c53['forceValue']:!_0x23d584['value'];_0x2c0bf6['change'](()=>{const _0x3965b7=Array['from'](_0x49445f['getRanges']());for(const _0x470830 of _0x3965b7){const _0x56693d=_0x1e211a?[_0x470830]:io(_0x58d85b,_0x470830,_0x2c0bf6);for(const _0x5998cb of _0x56693d)_0x347ef8['markInlineFormat'](_0x5998cb,{'commandName':_0x58d85b,'commandParams':[{'forceValue':_0x1e211a}]});}});}),_0x347ef8['descriptionFactory']['registerDescriptionCallback'](_0x24a7fa=>{if('formatBlock'!=_0x24a7fa['type']&&'formatInline'!=_0x24a7fa['type'])return;const {data:_0x5a9f4c}=_0x24a7fa;return _0x5a9f4c&&_0x5a9f4c['commandName']==_0x58d85b?_0x5a9f4c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31166f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x31166f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x23b8b9{['afterInit'](){const _0x3b9a30=this['editor'];if(!_0x3b9a30['plugins']['has']('Style')||!_0x3b9a30['plugins']['has']('DataSchema'))return;const _0x85031f=_0x3b9a30['plugins']['get']('TrackChangesEditing'),_0x47cf82=_0x3b9a30['locale'],_0xfe388d=_0x3b9a30['config']['get']('style')||{},_0x553179=_0x3b9a30['plugins']['get']('GeneralHtmlSupport'),_0x2327e1=_0x3b9a30['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3b9a30['plugins']['get']('DataSchema'),_0xfe388d['definitions']);_0x85031f['enableDefaultAttributesIntegration']('style');const _0x308ccc=new Set();for(const _0x313941 of _0x2327e1['block']){const _0x281693=_0x553179['getGhsAttributeNameForElement'](_0x313941['element']);_0x308ccc['add'](_0x281693);}const _0x234259=new Set();for(const _0x30fa93 of _0x2327e1['inline']){const _0x5a2e93=_0x553179['getGhsAttributeNameForElement'](_0x30fa93['element']);_0x234259['add'](_0x5a2e93);for(const _0xc28e7b of _0x30fa93['ghsAttributes'])_0x234259['add'](_0xc28e7b);}for(const _0xffbf96 of _0x308ccc)_0x85031f['registerBlockAttribute'](_0xffbf96),_0x85031f['descriptionFactory']['registerAttributeLabel'](_0xffbf96,o(_0x47cf82,'FORMAT_STYLE'));for(const _0x40c7df of _0x234259)_0x85031f['registerInlineAttribute'](_0x40c7df),_0x85031f['descriptionFactory']['registerAttributeLabel'](_0x40c7df,o(_0x47cf82,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c3e7c=this['editor'],_0x2afa1f=_0x2c3e7c['locale'];_0x2c3e7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x337ea8=>{if('formatBlock'!=_0x337ea8['type']&&'formatInline'!=_0x337ea8['type'])return;const {data:_0x282962}=_0x337ea8;return _0x282962&&'style'===_0x282962['commandName']?_0x282962['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2afa1f,'*Set\x20format:*\x20%0',_0x282962['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2afa1f,'*Remove\x20format:*\x20%0',_0x282962['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x23b8b9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5f29d7){super(_0x5f29d7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x41f55e=this['editor'],_0x2c2e92=_0x41f55e['model']['document']['selection'];if(!_0x41f55e['plugins']['has']('TableEditing'))return;const _0x31be48=_0x41f55e['locale'],_0x143a65=_0x41f55e['plugins']['get']('TrackChangesEditing'),_0x2911b6=_0x41f55e['plugins']['get']('TableUtils');_0x143a65['descriptionFactory']['registerElementLabel']('table',_0x279985=>o(_0x31be48,'ELEMENT_TABLE',_0x279985)),this['_setupColumnsRowsFixing'](),_0x143a65['enableCommand']('insertTable'),_0x143a65['enableCommand']('selectTableRow'),_0x143a65['enableCommand']('selectTableColumn');for(const _0x33f5d4 of['insertTableRowAbove','insertTableRowBelow']){const _0x5a4801=_0x41f55e['commands']['get'](_0x33f5d4);_0x143a65['enableCommand'](_0x33f5d4,_0x27d76d=>{_0x41f55e['model']['change'](_0x5b3747=>{_0x27d76d();const _0x2ad2a2='above'===_0x5a4801['order'],_0x3e72dd=_0x2911b6['getSelectionAffectedTableCells'](_0x2c2e92),_0x4d6e68=_0x2911b6['getRowIndexes'](_0x3e72dd),_0x24ff97=_0x2ad2a2?_0x4d6e68['first']-0x1:_0x4d6e68['last']+0x1,_0x247dfe=_0x3e72dd[0x0]['findAncestor']('table'),_0x17a797=_0x2911b6['createTableWalker'](_0x247dfe,{'startRow':_0x24ff97,'endRow':_0x24ff97}),_0x1ad37d=Array['from'](_0x17a797)['map'](_0xcded5e=>_0x5b3747['createRangeOn'](_0xcded5e['cell']));_0x143a65['markMultiRangeInsertion'](_0x1ad37d,'tableRow');});});}for(const _0x2236d1 of['insertTableColumnLeft','insertTableColumnRight']){const _0x252ef6=_0x41f55e['commands']['get'](_0x2236d1);_0x143a65['enableCommand'](_0x2236d1,_0xada67c=>{_0x41f55e['model']['change'](_0x36b102=>{_0xada67c();const _0x42d1fa='left'===_0x252ef6['order'],_0x242bd7=_0x2911b6['getSelectionAffectedTableCells'](_0x2c2e92),_0x2d3b0e=_0x2911b6['getColumnIndexes'](_0x242bd7),_0x5efe77=_0x42d1fa?_0x2d3b0e['first']-0x1:_0x2d3b0e['last']+0x1,_0x393f9c=_0x242bd7[0x0]['findAncestor']('table'),_0x5c18bc=_0x2911b6['createTableWalker'](_0x393f9c,{'startRow':0x0,'column':_0x5efe77,'includeAllSlots':!0x1}),_0x51b640=Array['from'](_0x5c18bc)['map'](_0x4bf760=>_0x36b102['createRangeOn'](_0x4bf760['cell']));_0x143a65['markMultiRangeInsertion'](_0x51b640,'tableColumn');});});}for(const _0x1bb78a of['removeTableRow','removeTableColumn']){const _0xae1639=_0x1bb78a['substr'](0xb),_0x2d7553=_0xae1639['toLowerCase'](),_0x3a9697=_0x2d7553['substr'](0x0,0x3)+'span',_0x1d793c='table'+_0xae1639,_0x15ac3d='min'+_0xae1639,_0x1d2592='max'+_0xae1639;_0x143a65['enableCommand'](_0x1bb78a,()=>{_0x41f55e['model']['change'](_0x246b50=>{const _0x33dbdc=_0x2911b6['getSelectionAffectedTableCells'](_0x2c2e92),_0x4e040e=_0x33dbdc[0x0]['findAncestor']('table');let _0x4382a3;if('removeTableRow'==_0x1bb78a){const _0x4131a7=_0x2911b6['getRowIndexes'](_0x33dbdc);_0x4382a3={'startRow':_0x4131a7['first'],'endRow':_0x4131a7['last'],'includeAllSlots':!0x0};}else{const _0x427377=_0x2911b6['getColumnIndexes'](_0x33dbdc);_0x4382a3={'startColumn':_0x427377['first'],'endColumn':_0x427377['last'],'includeAllSlots':!0x0};}const _0x1f10df=_0x2911b6['createTableWalker'](_0x4e040e,_0x4382a3),_0x3c25b1=Array['from'](_0x1f10df)['map'](({cell:_0x2059fb})=>_0x2059fb),_0x21d333=Ee(_0x3c25b1['filter'](_0x221dbe=>_0x221dbe['hasAttribute'](_0x3a9697))),_0x1f950b=Ee(_0x3c25b1['filter'](_0x2d9663=>!_0x2d9663['hasAttribute'](_0x3a9697)))['map'](_0x20d29d=>_0x246b50['createRangeOn'](_0x20d29d)),_0x4c8891=_0x143a65['markMultiRangeDeletion'](_0x1f950b,_0x1d793c);if(_0x4c8891&&('tableRow'==_0x4c8891['subType']||'tableColumn'==_0x4c8891['subType'])){const _0x32cd43=this['_getSuggestionCoords'](_0x4c8891);for(const _0x40fd95 of _0x21d333){const _0x2a25a9=_0x246b50['createRangeOn'](_0x40fd95),_0xc03c93=_0x2911b6['getCellLocation'](_0x40fd95),_0x40d3ff=_0x40fd95['getAttribute'](_0x3a9697)-0x1,_0x4ec168=_0x32cd43[_0x15ac3d],_0x477505=_0x32cd43[_0x1d2592];_0x4ec168<=_0xc03c93[_0x2d7553]&&_0xc03c93[_0x2d7553]+_0x40d3ff<=_0x477505&&_0x4c8891['addRange'](_0x2a25a9);}}});});}function _0x436d54(_0x14e060){const _0x172fad=Array['from'](_0x2c2e92['getRanges']())['map'](_0x197226=>_0x5df64f['fromRange'](_0x197226));_0x41f55e['model']['change'](_0x19df90=>{const _0x5bf8bd=_0x19df90['batch'];_0x14e060=_0x14e060['filter'](_0x48eeec=>'$graveyard'!=_0x48eeec['root']['rootName']),_0x19df90['setSelection'](_0x14e060),_0x41f55e['commands']['get']('removeTableRow')['refresh'](),_0x41f55e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x41f55e['model']['enqueueChange'](()=>{_0x41f55e['model']['enqueueChange'](_0x5bf8bd,_0xf12f49=>{const _0x248b7a=_0x172fad['filter'](_0x4749be=>'$graveyard'!=_0x4749be['root']['rootName']);_0x248b7a['length']>0x0&&_0xf12f49['setSelection'](_0x248b7a);for(const _0x5693aa of _0x172fad)_0x5693aa['detach']();});});});}function _0x1d67be(_0x5fee4a){_0x41f55e['model']['change'](_0x463b5e=>{const _0x329ab3=Array['from'](_0x2c2e92['getRanges']())['map'](_0x4b0424=>_0x5df64f['fromRange'](_0x4b0424)),_0x5021e9=[];for(const _0x46bc9d of _0x5fee4a)for(const _0x29492f of _0x46bc9d['getItems']({'shallow':!0x0}))_0x5021e9['push'](_0x29492f);for(const _0x358553 of _0x5021e9)'$graveyard'!=_0x358553['root']['rootName']&&(_0x463b5e['setSelection'](_0x463b5e['createPositionAt'](_0x358553,0x0)),_0x41f55e['commands']['get']('removeTableColumn')['refresh'](),_0x41f55e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x355579=_0x329ab3['filter'](_0x6d5f99=>'$graveyard'!=_0x6d5f99['root']['rootName']);_0x355579['length']>0x0&&_0x463b5e['setSelection'](_0x355579);for(const _0x1466df of _0x329ab3)_0x1466df['detach']();});}function _0x5deb1e(_0x37b8e6,_0x5b5b69){return _0x5b5b69['every'](_0x3be2cf=>_0x37b8e6['some'](_0x987d10=>_0x987d10['end']['isEqual'](_0x3be2cf['start'])||_0x3be2cf['end']['isEqual'](_0x987d10['start'])));}function _0x7b6e16(_0x7545d8,_0x157a1c){return!_0x7545d8['some'](_0x21c2ea=>_0x157a1c['some'](_0xcf1e4f=>_0x21c2ea['isIntersecting'](_0xcf1e4f)))&&_0x7545d8['some'](_0x7453bb=>_0x157a1c['some'](_0x385237=>_0x7453bb['end']['isTouching'](_0x385237['start'])));}_0x41f55e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x43c9d1,_0x38e8c2,_0x5a5669)=>{if(!_0x5a5669['options']['showSuggestionHighlights'])return;const _0x68cccc=_0x38e8c2['item'];if(!_0x68cccc)return;const _0x4c1632=_0x5a5669['mapper']['toViewElement'](_0x68cccc);function _0x5b5445(_0x255bbd){return Array['isArray'](_0x255bbd)?_0x255bbd:[_0x255bbd];}_0x4c1632&&'tableCell'===_0x68cccc['name']&&_0x11e103(_0x4c1632,_0x5a5669['writer'],(_0x5c6369,_0x25880a,_0x2b61a5)=>_0x2b61a5['addClass'](_0x5b5445(_0x25880a['classes']),_0x5c6369),(_0x34c12b,_0x27b4be,_0x484158)=>_0x484158['removeClass'](_0x5b5445(_0x27b4be['classes']),_0x34c12b));},{'priority':'highest'}),_0x143a65['descriptionFactory']['registerDescriptionCallback'](_0x14dcee=>{if('insertion'!=_0x14dcee['type']&&'deletion'!=_0x14dcee['type'])return;const _0x35069e=_0x14dcee['getContainedElement']();if(null!=_0x35069e&&_0x35069e['is']('element','table')){if('insertion'==_0x14dcee['type']){const _0x798261=_0x14dcee['getItems']()['filter'](_0x30f9ef=>_0x30f9ef['is']('$textProxy'))['map'](_0x936b7c=>_0x936b7c['data']);if(_0x798261['length'])return{'type':'insertion','content':o(_0x31be48,'*Insert:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x798261['join']('\x20')+'\x22'))};}if('deletion'==_0x14dcee['type']){const _0x213dc0=_0x14dcee['getItems']()['filter'](_0x3539bf=>_0x3539bf['is']('$textProxy'))['map'](_0x4a113e=>_0x4a113e['data']);if(_0x213dc0['length'])return{'type':'deletion','content':o(_0x31be48,'*Remove:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x213dc0['join']('\x20')+'\x22'))};}}}),_0x143a65['descriptionFactory']['registerDescriptionCallback'](_0x4c3433=>{if('tableRow'==_0x4c3433['subType']){const _0x1cec64=_0x4c3433['getItems']()['filter'](_0x3b08bd=>_0x3b08bd['is']('$textProxy'))['map'](_0x5786c8=>_0x5786c8['data']),_0x791928=this['_getSuggestionCoords'](_0x4c3433),_0x4bdf0f=_0x791928['maxRow']-_0x791928['minRow']+0x1;if('insertion'==_0x4c3433['type'])return _0x1cec64['length']?{'type':'insertion','content':o(_0x31be48,'*Insert:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4bdf0f,'\x22'+_0x1cec64['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x31be48,'*Insert:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_ROW',_0x4bdf0f))};if('deletion'==_0x4c3433['type'])return _0x1cec64['length']?{'type':'deletion','content':o(_0x31be48,'*Remove:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4bdf0f,'\x22'+_0x1cec64['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x31be48,'*Remove:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_ROW',_0x4bdf0f))};}if('tableColumn'==_0x4c3433['subType']){const _0x264815=_0x4c3433['getItems']()['filter'](_0x34eeb4=>_0x34eeb4['is']('$textProxy'))['map'](_0x6f9970=>_0x6f9970['data']),_0xa65cba=this['_getSuggestionCoords'](_0x4c3433),_0x4b598b=_0xa65cba['maxColumn']-_0xa65cba['minColumn']+0x1;if('insertion'==_0x4c3433['type'])return _0x264815['length']?{'type':'insertion','content':o(_0x31be48,'*Insert:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b598b,'\x22'+_0x264815['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x31be48,'*Insert:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_COLUMN',_0x4b598b))};if('deletion'==_0x4c3433['type'])return _0x264815['length']?{'type':'deletion','content':o(_0x31be48,'*Remove:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b598b,'\x22'+_0x264815['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x31be48,'*Remove:*\x20%0',o(_0x31be48,'ELEMENT_TABLE_COLUMN',_0x4b598b))};}}),_0x143a65['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x436d54),_0x143a65['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x436d54),_0x143a65['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d67be),_0x143a65['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d67be),_0x143a65['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5deb1e),_0x143a65['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5deb1e),_0x143a65['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x7b6e16),_0x143a65['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x7b6e16);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4abab5=this['editor'],_0x120531=_0x4abab5['model']['document']['selection'];return(_0x405e66,_0x3d8b86)=>{_0x4abab5['model']['change'](_0x3b9fee=>{const {commandName:_0x10a58b,commandParams:_0x21814f}=_0x3d8b86;let _0x21e09d=_0x405e66[0x0]['end']['nodeBefore'];_0x21814f&&_0x21814f[0x0]&&!0x1===_0x21814f[0x0]['forceValue']&&(_0x21e09d=_0x405e66[0x0]['start']['nodeAfter']);const _0x38104d=_0x3b9fee['createRangeIn'](_0x21e09d);if('$graveyard'==_0x38104d['root']['rootName'])return;const _0x3d953a=Array['from'](_0x120531['getRanges']())['map'](_0x4c8df7=>_0x5df64f['fromRange'](_0x4c8df7));_0x3b9fee['setSelection'](_0x38104d),_0x4abab5['commands']['get'](_0x10a58b)['refresh'](),_0x21814f['push']({'forceDefaultExecution':!0x0}),_0x4abab5['execute'](_0x10a58b,..._0x21814f);const _0x4f6167=_0x3d953a['filter'](_0x5d4c66=>'$graveyard'!=_0x5d4c66['root']['rootName']);_0x4f6167['length']>0x0&&_0x3b9fee['setSelection'](_0x4f6167);for(const _0x3b84c6 of _0x3d953a)_0x3b84c6['detach']();});};}['_getCoordsForCells'](_0xf271a4){const _0x11c6b3=this['editor']['plugins']['get']('TableUtils');let _0x353ee1=Number['MAX_SAFE_INTEGER'],_0x48b98d=Number['MIN_SAFE_INTEGER'],_0x2b400b=Number['MAX_SAFE_INTEGER'],_0xfa486=Number['MIN_SAFE_INTEGER'];for(const _0x3060a6 of _0xf271a4){if('$graveyard'==_0x3060a6['root']['rootName'])continue;const {row:_0x304a6e,column:_0x5be676}=_0x11c6b3['getCellLocation'](_0x3060a6),_0x4b2be2=_0x3060a6['hasAttribute']('rowspan')?_0x3060a6['getAttribute']('rowspan')-0x1:0x0,_0x5eb650=_0x3060a6['hasAttribute']('colspan')?_0x3060a6['getAttribute']('colspan')-0x1:0x0;_0x353ee1=_0x304a6e<_0x353ee1?_0x304a6e:_0x353ee1,_0x48b98d=_0x304a6e+_0x4b2be2>_0x48b98d?_0x304a6e+_0x4b2be2:_0x48b98d,_0x2b400b=_0x5be676<_0x2b400b?_0x5be676:_0x2b400b,_0xfa486=_0x5be676+_0x5eb650>_0xfa486?_0x5be676+_0x5eb650:_0xfa486;}return{'minRow':_0x353ee1,'maxRow':_0x48b98d,'minColumn':_0x2b400b,'maxColumn':_0xfa486};}['_setupColumnsRowsFixing'](){const _0x160b3b=this['editor'],_0x5772d9=_0x160b3b['plugins']['get']('TrackChangesEditing'),_0x2fc372=_0x160b3b['plugins']['get']('TableUtils');_0x160b3b['model']['document']['on']('change:data',()=>{const _0x49126c=Array['from'](_0x160b3b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c3e9d,data:_0x23f1d9}of _0x49126c){const {group:_0x30effc,id:_0x501cfa,subType:_0x8d9641}=_0x5772d9['_splitMarkerName'](_0x1c3e9d);if('suggestion'!=_0x30effc)continue;if(null!=_0x23f1d9['oldRange'])continue;const _0x42597c=_0x5772d9['getSuggestion'](_0x501cfa);this['_tablePostFixingSubtypes']['includes'](_0x8d9641)&&this['_tableSuggestions']['add'](_0x42597c);}},{'priority':'low'});const _0x1725e9=(_0x287a4f,_0x353389)=>{let _0x111e42=!0x1;const _0x1b87a3=_0x353389['createRangeOn'](_0x287a4f),_0x50913d=_0x287a4f['findAncestor']('table'),_0x3e7d22=_0x2fc372['getCellLocation'](_0x287a4f);for(const _0x256fa9 of this['_tableSuggestions']){const _0x3906c6=_0x256fa9['subType'],_0x44a49f=_0x3906c6['startsWith']('tablePaste'),_0x4efe18=_0x3906c6['substr'](_0x44a49f?0xa:0x5),_0x209dd8=_0x4efe18['toLowerCase'](),_0x1e3d75=_0x209dd8['substr'](0x0,0x3)+'span',_0x90a516='min'+_0x4efe18,_0x1ff773='max'+_0x4efe18;if(!_0x256fa9['isInContent'])continue;if(_0x50913d!=_0x256fa9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x256fa9['isIntersectingWithRange'](_0x1b87a3))continue;const _0x40b1d7=_0x287a4f['hasAttribute'](_0x1e3d75)?_0x287a4f['getAttribute'](_0x1e3d75)-0x1:0x0,_0x544c5c=this['_getSuggestionCoords'](_0x256fa9),_0xf01fe3=_0x544c5c[_0x90a516],_0x9f59=_0x544c5c[_0x1ff773];_0xf01fe3<=_0x3e7d22[_0x209dd8]&&_0x3e7d22[_0x209dd8]+_0x40b1d7<=_0x9f59&&(_0x256fa9['addRange'](_0x1b87a3),_0x111e42=!0x0);}return _0x111e42;};_0x160b3b['model']['document']['registerPostFixer'](_0x37ead8=>{let _0xb53233=!0x1;for(const _0x357b72 of _0x160b3b['model']['document']['differ']['getChanges']())if('insert'==_0x357b72['type']){if('tableRow'==_0x357b72['name']){for(const _0x354419 of _0x357b72['position']['nodeAfter']['getChildren']())_0xb53233=_0xb53233||_0x1725e9(_0x354419,_0x37ead8);}else'tableCell'==_0x357b72['name']&&(_0xb53233=_0xb53233||_0x1725e9(_0x357b72['position']['nodeAfter'],_0x37ead8));}return _0xb53233;});}['_getSuggestionCoords'](_0x35b344){return this['_getCoordsForCells'](_0x35b344['getRanges']()['map'](_0x4be800=>_0x4be800['start']['nodeAfter']));}}function Ee(_0x565c2e){return Array['from'](new Set(_0x565c2e)['values']());}class At extends _0x23b8b9{static get['requires'](){return[St];}['afterInit'](){const _0x30906e=this['editor'],_0x3f978c=_0x30906e['model']['document']['selection'],_0x5e9553=_0x30906e['locale'];if(!_0x30906e['plugins']['has']('TableEditing'))return;const _0x2f302e=_0x30906e['plugins']['get']('TrackChangesEditing'),_0x210a88=_0x30906e['plugins']['get']('TableUtils'),_0x210637=_0x30906e['plugins']['get'](St);_0x210637['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2f302e['enableCommand']('mergeTableCells',()=>{const _0x46bafc=_0x210a88['getSelectionAffectedTableCells'](_0x30906e['model']['document']['selection']);_0x30906e['model']['change'](()=>{_0x2f302e['markMultiRangeBlockFormat'](_0x46bafc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x30906e['commands']['get']('mergeTableCells')['on']('execute',(_0x221c47,_0x33defe)=>{_0x30906e['commands']['get']('trackChanges')['value']&&(_0x33defe['length']>0x0&&_0x33defe[_0x33defe['length']-0x1]&&_0x33defe[_0x33defe['length']-0x1]['forceDefaultExecution']||_0x2f302e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x221c47['stop']());},{'priority':'highest'});for(const _0x4f4ede of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x38eb47=_0x30906e['commands']['get'](_0x4f4ede);_0x2f302e['enableCommand'](_0x4f4ede,()=>{const _0x357c70=_0x30906e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13ba0e=>_0x13ba0e['is']('element','tableCell')),_0x43dc7b=_0x38eb47['value'];_0x30906e['model']['change'](()=>{_0x2f302e['markMultiRangeBlockFormat']([_0x357c70,_0x43dc7b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4c99de of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5cc67e=_0x30906e['commands']['get'](_0x4c99de);_0x2f302e['enableCommand'](_0x4c99de,()=>{const _0x21781f=_0x210a88['getSelectionAffectedTableCells'](_0x30906e['model']['document']['selection'])[0x0],_0x39a1f8=_0x21781f['findAncestor']('table'),{column:_0x31fe93,row:_0x491327}=_0x210a88['getCellLocation'](_0x21781f);let _0x456c25=[];if('horizontally'==_0x5cc67e['direction']){const _0x5123c9=_0x210a88['createTableWalker'](_0x39a1f8,{'startRow':_0x491327,'endRow':_0x491327,'includeAllSlots':!0x0});_0x456c25=Array['from'](_0x5123c9)['map'](_0x34bef8=>_0x34bef8['cell']);}else{const _0x2a72b1=_0x210a88['createTableWalker'](_0x39a1f8,{'column':_0x31fe93,'includeAllSlots':!0x0});_0x456c25=Array['from'](_0x2a72b1)['map'](_0x393628=>_0x393628['cell']);}_0x30906e['model']['change'](_0x383dba=>{_0x2f302e['markBlockFormat'](_0x383dba['createRangeOn'](_0x21781f),{'commandName':_0x4c99de,'commandParams':[]},_0x456c25,_0x4c99de);});});}_0x2f302e['descriptionFactory']['registerDescriptionCallback'](_0x4348c3=>{if('formatBlock'!=_0x4348c3['type']&&'formatInline'!=_0x4348c3['type'])return;const {data:_0x21cfe8}=_0x4348c3;return _0x21cfe8&&'mergeTableCells'==_0x21cfe8['commandName']?{'type':'format','content':o(_0x5e9553,'*Merge\x20cells*')}:void 0x0;}),_0x2f302e['descriptionFactory']['registerDescriptionCallback'](_0x4d0ca9=>{if('formatBlock'!=_0x4d0ca9['type']&&'formatInline'!=_0x4d0ca9['type'])return;const {data:_0xd8f1bd}=_0x4d0ca9;return _0xd8f1bd?'splitTableCellVertically'==_0xd8f1bd['commandName']?{'type':'format','content':o(_0x5e9553,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xd8f1bd['commandName']?{'type':'format','content':o(_0x5e9553,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2a933d=_0x210637['_acceptFormatSuggestionCallbackFactory']();for(const _0x5a4dd5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2f302e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a4dd5,'accept',_0x2a933d);for(const _0x58914d of['splitTableCellVertically','splitTableCellHorizontally'])_0x2f302e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58914d,'accept',_0x2a933d);_0x2f302e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x18dd21=>{_0x30906e['model']['change'](_0xbccc6f=>{const _0x241bbf=Array['from'](_0x3f978c['getRanges']())['map'](_0x56a7e6=>_0x5df64f['fromRange'](_0x56a7e6));_0xbccc6f['setSelection'](_0x18dd21),_0x30906e['commands']['get']('mergeTableCells')['refresh'](),_0x30906e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3f03de=_0x241bbf['filter'](_0x597030=>'$graveyard'!=_0x597030['root']['rootName']);_0x3f03de['length']>0x0&&_0xbccc6f['setSelection'](_0x3f03de);for(const _0x480112 of _0x241bbf)_0x480112['detach']();});});for(const _0x21b199 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x29cf5b=_0x30906e['commands']['get'](_0x21b199);_0x29cf5b['on']('set:isEnabled',(_0x24a0c0,_0x21f17a,_0x1ce86a)=>{if(_0x1ce86a){const _0x382ee3=_0x30906e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x540877=>_0x540877['is']('element','tableCell'));this['_areMergableCells'](_0x29cf5b['value'],_0x382ee3)||(_0x24a0c0['return']=!0x1,_0x24a0c0['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x558054=this['editor']['commands']['get']('mergeTableCells'),_0x19897b=this['editor']['plugins']['get']('TableUtils');if(!_0x558054['isEnabled'])return!0x1;const _0x397f35=_0x19897b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x17d16e of _0x397f35)for(const _0x126f85 of _0x397f35)if(_0x17d16e!=_0x126f85&&!this['_areMergableCells'](_0x17d16e,_0x126f85))return!0x1;return!0x0;}['_areMergableCells'](_0xe988c4,_0x32a17d){const _0x381f0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2630e7=this['editor']['model']['createRangeOn'](_0xe988c4),_0x2c8965=this['editor']['model']['createRangeOn'](_0x32a17d),_0x49d970=new Set(),_0x24d095=new Set();for(const _0x53b8cd of _0x381f0b['getSuggestions']())if(('insertion'==_0x53b8cd['type']||'deletion'==_0x53b8cd['type']||'mergeTableCells'==_0x53b8cd['subType'])&&_0x53b8cd['isInContent']){for(const _0x1dacc5 of _0x53b8cd['getRanges']())_0x1dacc5['containsRange'](_0x2630e7,!0x0)&&_0x49d970['add'](_0x53b8cd['type']+':'+_0x53b8cd['author']['id']),_0x1dacc5['containsRange'](_0x2c8965,!0x0)&&_0x24d095['add'](_0x53b8cd['type']+':'+_0x53b8cd['author']['id']);}if(_0x49d970['size']!=_0x24d095['size'])return!0x1;for(const _0x47622c of _0x49d970)if(!_0x24d095['has'](_0x47622c))return!0x1;return!0x0;}}class It extends _0x23b8b9{static get['requires'](){return[St];}['afterInit'](){const _0x27f8d7=this['editor'];if(!_0x27f8d7['plugins']['has']('TableEditing'))return;const _0x30969f=_0x27f8d7['locale'],_0x2c95be=_0x27f8d7['plugins']['get']('TrackChangesEditing');_0x2c95be['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2c95be['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2c95be['registerBlockAttribute']('headingRows'),_0x2c95be['registerBlockAttribute']('headingColumns'),_0x2c95be['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x30969f,'FORMAT_HEADER_ROW')),_0x2c95be['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x30969f,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5d7e20=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3759ae=this['editor']['plugins']['get']('TableUtils'),_0x55061d=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x1a9959({showActiveMarker:_0x55e57b=!0x0,setDataAttribute:_0x47f8f9=!0x0}={}){return(_0x350d5a,_0x5c3a0a,_0x3e5607)=>{const {type:_0x5befc8,id:_0x6afe89}=_0x5d7e20['_splitMarkerName'](_0x5c3a0a['markerName']),_0x4f4a4a=_0x5d7e20['getSuggestion'](_0x6afe89),_0x439672=_0x4f4a4a['data'];if('formatBlock'!=_0x4f4a4a['type']||!_0x439672||'setTableColumnHeader'!=_0x439672['commandName'])return;if(_0x5c3a0a['item'])return void _0x350d5a['stop']();if(!_0x3e5607['consumable']['consume'](_0x5c3a0a['markerRange'],_0x350d5a['name']))return;const _0x151607=_0x5c3a0a['markerRange']['start']['nodeAfter'],_0x34de7d=_0x5c3a0a['markerRange']['end']['nodeBefore'],_0x456733=_0x151607['parent']['parent'],{column:_0x361ee5}=_0x3759ae['getCellLocation'](_0x151607),{column:_0x110adb}=_0x3759ae['getCellLocation'](_0x34de7d);for(let _0x378135=_0x361ee5;_0x378135<=_0x110adb;_0x378135++){const _0xcd86d7=_0x3759ae['createTableWalker'](_0x456733,{'column':_0x378135,'includeAllSlots':!0x1});for(const _0x5dd748 of _0xcd86d7){const _0xb284be=_0x5dd748['cell'],_0x342591=_0x3e5607['mapper']['toViewElement'](_0xb284be);_0x3e5607['writer']['addClass']('ck-suggestion-marker-'+_0x5befc8,_0x342591),_0x47f8f9&&_0x3e5607['writer']['setAttribute']('data-suggestion',_0x6afe89,_0x342591),_0x3e5607['mapper']['bindElementToMarker'](_0x342591,_0x5c3a0a['markerName']),_0x55e57b&&(_0x5d7e20['activeMarkers']['includes'](_0x5c3a0a['markerName'])?_0x3e5607['writer']['addClass']('ck-suggestion-marker--active',_0x342591):_0x3e5607['writer']['removeClass']('ck-suggestion-marker--active',_0x342591));}}};}_0x5d7e20['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x55061d),_0x5d7e20['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x55061d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1a9959(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x232715,_0xcb1703,_0x1624bf)=>{_0x1624bf['options']['showSuggestionHighlights']&&_0x1a9959({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x232715,_0xcb1703,_0x1624bf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x95b8bc,_0xbe0c8e,_0x4491ee)=>{const {type:_0x1f014c,id:_0x38b7b3}=_0x5d7e20['_splitMarkerName'](_0xbe0c8e['markerName']),_0x2a9202=_0x5d7e20['getSuggestion'](_0x38b7b3),_0x1b2a5b=_0x2a9202['data'];if('formatBlock'!=_0x2a9202['type']||!_0x1b2a5b||'setTableColumnHeader'!=_0x1b2a5b['commandName'])return;const _0x26e251=_0x4491ee['mapper']['markerNameToElements'](_0xbe0c8e['markerName']);if(_0x26e251){for(const _0xe72392 of _0x26e251)_0x4491ee['writer']['removeClass']('ck-suggestion-marker-'+_0x1f014c,_0xe72392),_0x4491ee['writer']['removeClass']('ck-suggestion-marker--active',_0xe72392),_0x4491ee['writer']['removeAttribute']('data-suggestion',_0xe72392),_0x4491ee['mapper']['unbindElementFromMarkerName'](_0xe72392,_0xbe0c8e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a01cc=this['editor'],_0xf610b8=_0x4a01cc['locale'];function _0x49cbe6(_0x3cd8e4){return{'type':'format','content':o(_0xf610b8,'*Format:*\x20%0',_0x3cd8e4)};}_0x4a01cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d7fee=>{if('formatBlock'!=_0x5d7fee['type'])return;const {data:_0x7f206b}=_0x5d7fee;if(_0x7f206b){if('setTableRowHeader'==_0x7f206b['commandName']){const _0x5aeafa=_0x7f206b['commandParams'][0x0]['forceValue'];return _0x49cbe6(o(_0xf610b8,_0x5aeafa?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x7f206b['commandName']){const _0x498206=_0x7f206b['commandParams'][0x0]['forceValue'];return _0x49cbe6(o(_0xf610b8,_0x498206?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x30707e=>[_0x30707e,null]));class vt extends _0x23b8b9{static get['requires'](){return[St];}['afterInit'](){const _0x122f7c=this['editor'];if(!_0x122f7c['plugins']['has']('TableClipboard'))return;const _0x189257=_0x122f7c['plugins']['get']('TrackChangesEditing'),_0x36a106=_0x122f7c['plugins']['get']('TableUtils'),_0x4305df=_0x122f7c['plugins']['get'](St),_0xbdc16f=_0x122f7c['plugins']['get']('TableClipboard');_0x4305df['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x122f7c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x122f7c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4dadf0=null;_0x122f7c['model']['on']('insertContent',(_0x50add9,_0x5065bd)=>{const [_0x587658,_0x29631c]=_0x5065bd,_0xcec542=_0x5065bd[_0x5065bd['length']-0x1];_0xcec542&&_0xcec542['forceDefaultExecution']||_0x189257['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x143e85,_0x20603b,_0x3a06b5,_0x4b4634,_0x17ae7c){if(_0x20603b&&!_0x20603b['is']('documentSelection'))return!0x1;const _0x1b6cee=_0x17ae7c['getTableIfOnlyTableInContent'](_0x143e85,_0x3a06b5);if(!_0x1b6cee||!we(_0x1b6cee,void 0x0,_0x4b4634))return!0x1;const _0x2d2fb2=_0x4b4634['getSelectionAffectedTableCells'](_0x3a06b5['document']['selection']);if(!_0x2d2fb2['length'])return!0x1;const _0x1e1d4a=_0x2d2fb2[0x0]['findAncestor']('table'),_0x5244ab=_0x4b4634['getRowIndexes'](_0x2d2fb2),_0x3c1a60=_0x4b4634['getColumnIndexes'](_0x2d2fb2),_0x2350c6={'startRow':_0x5244ab['first'],'endRow':_0x5244ab['last'],'startColumn':_0x3c1a60['first'],'endColumn':_0x3c1a60['last']};return 0x1==_0x2d2fb2['length']&&(_0x2350c6['endRow']+=_0x4b4634['getRows'](_0x1b6cee)-0x1,_0x2350c6['endColumn']+=_0x4b4634['getColumns'](_0x1b6cee)-0x1),we(_0x1e1d4a,_0x2350c6,_0x4b4634);}(_0x587658,_0x29631c,_0x122f7c['model'],_0x36a106,_0xbdc16f)&&(_0x50add9['stop'](),_0x4dadf0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x122f7c['model']['change'](()=>{_0x122f7c['model']['insertContent'](_0x5065bd[0x0],_0x5065bd[0x1],_0x5065bd[0x2],{'forceDefaultExecution':!0x0});const _0x40fbcc=_0x2905f1(),{rowInsertionRanges:_0x1789ec,columnInsertionRanges:_0x2a0e56,insertionRanges:_0x5d776c,deletionRanges:_0x12834e,cells:_0x1b342b}=_0x4dadf0;_0x1789ec['length']&&_0x189257['markMultiRangeInsertion'](_0x1789ec,'tablePasteRow',{'tablePasteChainId':_0x40fbcc}),_0x2a0e56['length']&&_0x189257['markMultiRangeInsertion'](_0x2a0e56,'tablePasteColumn',{'tablePasteChainId':_0x40fbcc}),_0x5d776c['length']&&(_0x189257['markMultiRangeInsertion'](_0x5d776c,'tablePaste',{'tablePasteChainId':_0x40fbcc,'skipNestingCheck':!0x0}),_0x5d776c['forEach'](_0x5589c6=>_0x5589c6['detach']?.())),_0x12834e['length']&&(_0x189257['markMultiRangeDeletion'](_0x12834e,'tablePaste',{'tablePasteChainId':_0x40fbcc,'skipNestingCheck':!0x0}),_0x12834e['forEach'](_0x58a8b8=>_0x58a8b8['detach']?.()));const _0xa82fb5=_0x189257['markMultiRangeBlockFormat'](_0x1b342b['map'](({element:_0x35eabe})=>_0x35eabe),{'formatGroupId':_0x2905f1()},[],'tablePasteCell',{'tablePasteChainId':_0x40fbcc});if(_0xa82fb5){const _0x29647c=_0xa82fb5['getMarkers'](),_0x207bfb=[];for(const {element:_0x5e903d,attributes:_0x1aff51}of _0x1b342b){if(!_0x1aff51)continue;const _0x1f3b15=_0x122f7c['model']['createRangeOn'](_0x5e903d),_0xb9249a=_0x29647c['find'](_0x527e5c=>_0x527e5c['getRange']()['isEqual'](_0x1f3b15));_0xb9249a&&_0x207bfb['push']([_0xb9249a['name'],_0x1aff51]);}_0x207bfb['length']&&_0xa82fb5['setAttribute']('markerAttributes',Object['fromEntries'](_0x207bfb));}_0x4dadf0=null;}));},{'priority':_0x2bf5ee['high']+0xa}),_0x122f7c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5e4cce,_0x338314)=>{const [_0x3fedf1,_0x1c6b7b,,_0x45d2d4]=_0x338314;if(!_0x4dadf0)return;_0x5e4cce['stop']();const _0x1899c9=_0x3fedf1['cell'],_0x1efc8d=_0x1c6b7b,_0x1c04fd=Pe(_0x1899c9),_0x40b2d0=Pe(_0x1efc8d);_0x5e4cce['return']=_0x1899c9;let _0x37bb72=null,_0x3086d1=null;if(_0x40b2d0||_0x1c04fd){if(_0x1c04fd&&!_0x40b2d0){_0x45d2d4['remove'](_0x1899c9['getChild'](0x0));for(const _0x46b7ec of Array['from'](_0x1efc8d['getChildren']()))_0x45d2d4['insert'](_0x46b7ec,_0x1899c9,'end');const _0x555626=_0x4dadf0['rowInsertionIndexes']['includes'](_0x3fedf1['row']),_0x1a8def=_0x4dadf0['columnInsertionIndexes']['includes'](_0x3fedf1['column']);_0x555626||_0x1a8def||(_0x37bb72=_0x5df64f['fromRange'](_0x45d2d4['createRangeIn'](_0x1899c9)));}else _0x40b2d0&&!_0x1c04fd&&(_0x3086d1=_0x45d2d4['createRangeIn'](_0x1899c9));}else{const _0x171189=_0x45d2d4['createElement']('tableCellSuggestion'),_0xd6a165=_0x45d2d4['createElement']('tableCellSuggestion');_0x45d2d4['wrap'](_0x45d2d4['createRangeIn'](_0x1899c9),_0xd6a165),_0x45d2d4['insert'](_0x171189,_0x1899c9,0x0);for(const _0x4e62d4 of Array['from'](_0x1efc8d['getChildren']()))_0x45d2d4['insert'](_0x4e62d4,_0x171189,'end');_0x37bb72=_0x5df64f['fromRange'](_0x45d2d4['createRangeOn'](_0x171189)),_0x3086d1=_0x5df64f['fromRange'](_0x45d2d4['createRangeOn'](_0xd6a165));}const _0x54a068=Array['from'](_0x1efc8d['getAttributes']())['filter'](([_0x399285])=>ge['includes'](_0x399285));_0x4dadf0['cells']['push']({'element':_0x1899c9,'attributes':_0x54a068['length']?Object['fromEntries'](_0x54a068):null}),_0x37bb72&&_0x4dadf0['insertionRanges']['push'](_0x37bb72),_0x3086d1&&_0x4dadf0['deletionRanges']['push'](_0x3086d1);},{'priority':'high'}),_0x36a106['on']('insertColumns',(_0xf07e27,_0x1ae050)=>{const [_0x3ed3bb,_0x2052a8={}]=_0x1ae050;if(!_0x4dadf0)return;const _0xdf1767=_0x2052a8['at']||0x0,_0x402008=_0x2052a8['columns']||0x1;_0x4dadf0['columnInsertionIndexes']=new Array(_0x402008)['fill'](_0xdf1767)['map']((_0x5e8501,_0x471f51)=>_0x5e8501+_0x471f51);for(const {cell:_0x2a8387}of _0x36a106['createTableWalker'](_0x3ed3bb,{'startColumn':_0xdf1767,'endColumn':_0xdf1767+_0x402008-0x1}))_0x4dadf0['columnInsertionRanges']['push'](_0x122f7c['model']['createRangeOn'](_0x2a8387));},{'priority':'low'}),_0x36a106['on']('insertRows',(_0x1740f4,_0x3b7ae4)=>{const [_0x1bd253,_0x1cb9f8={}]=_0x3b7ae4;if(!_0x4dadf0)return;const _0x3b7ca7=_0x1cb9f8['at']||0x0,_0x37f279=_0x1cb9f8['rows']||0x1;_0x4dadf0['rowInsertionIndexes']=new Array(_0x37f279)['fill'](_0x3b7ca7)['map']((_0x859851,_0x5db560)=>_0x859851+_0x5db560);for(const {cell:_0x1d1a95}of _0x36a106['createTableWalker'](_0x1bd253,{'startRow':_0x3b7ca7,'endRow':_0x3b7ca7+_0x37f279-0x1}))_0x4dadf0['rowInsertionRanges']['push'](_0x122f7c['model']['createRangeOn'](_0x1d1a95));},{'priority':'low'}),_0x189257['descriptionFactory']['registerDescriptionCallback'](_0x500a08=>{if(_0x500a08['subType']&&_0x500a08['subType']['startsWith']('tablePaste'))return _0x500a08['previous']?{}:{'type':'insertion','content':o(_0x122f7c['locale'],'*Replace\x20table\x20cells*')};});const _0x225179=()=>!0x1;for(const _0x10c407 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x189257['_suggestionFactory']['registerCustomCallback']('insertion',_0x10c407,'join',_0x225179),_0x189257['_suggestionFactory']['registerCustomCallback']('deletion',_0x10c407,'join',_0x225179),_0x189257['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10c407,'join',_0x225179);_0x189257['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x225179),_0x189257['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x58500f,_0x31caeb,_0x3090c2)=>{const _0x52d915=_0x58500f['map'](_0x42d401=>_0x42d401['getContainedElement']())['filter'](_0x1731cc=>_0x1731cc),_0x3fd1eb=new Map(_0x52d915['map'](_0x5b68aa=>[_0x5b68aa,null]));if(_0x4dadf0){for(const {element:_0x2a4bbc,attributes:_0x20fd00}of _0x4dadf0['cells'])_0x20fd00&&_0x3fd1eb['set'](_0x2a4bbc,_0x20fd00);}else{if(_0x3090c2&&_0x3090c2['markerAttributes'])for(const [_0x1e9718,_0x2c7e7f]of Object['entries'](_0x3090c2['markerAttributes'])){const _0x34a9d6=_0x122f7c['model']['markers']['get'](_0x1e9718),_0x302308=_0x34a9d6?_0x34a9d6['getRange']()['getContainedElement']():null;_0x302308&&_0x3fd1eb['set'](_0x302308,_0x2c7e7f);}}_0x122f7c['model']['change'](_0x1abd06=>{for(const [_0x581c6e,_0x5f3b88]of _0x3fd1eb)_0x1abd06['setAttributes']({...Ce,..._0x5f3b88},_0x581c6e);});});const _0x39e261=(_0x2743ac,_0x4744db)=>{_0x189257['_suggestionFactory']['registerCustomCallback'](_0x2743ac,'tablePaste',_0x4744db,(_0x2fbdb2,_0xf4f7aa,_0x57afbc)=>{_0x122f7c['model']['change'](_0x5aaa81=>{const _0x293704=[];for(const _0x5e9679 of _0x2fbdb2){const _0x49a6d7=_0x5e9679['start']['nodeAfter'];_0x49a6d7['is']('element','tableCellSuggestion')&&_0x293704['push'](_0x49a6d7);}_0x189257['_suggestionFactory']['getSuggestionCallback'](_0x2743ac,null,_0x4744db)(_0x2fbdb2,_0xf4f7aa,_0x57afbc);for(const _0x558d01 of _0x293704)'$graveyard'!=_0x558d01['root']['rootName']&&_0x5aaa81['unwrap'](_0x558d01);});});};_0x39e261('insertion','accept'),_0x39e261('insertion','discard'),_0x39e261('deletion','accept'),_0x39e261('deletion','discard'),_0x189257['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x32a914=>{const _0x3e8855=_0x32a914['map'](_0xaf7010=>_0xaf7010['getContainedElement']()),_0x50c0b2=_0x3e8855[0x0]['findAncestor']('table'),{minRow:_0x442203,maxRow:_0x579076}=_0x4305df['_getCoordsForCells'](_0x3e8855);_0x36a106['removeRows'](_0x50c0b2,{'at':_0x442203,'rows':_0x579076-_0x442203+0x1});}),_0x189257['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4e653e=>{const _0x3e1d15=_0x4e653e['map'](_0xdf87f7=>_0xdf87f7['getContainedElement']()),_0x35a4c3=_0x3e1d15[0x0]['findAncestor']('table'),{minColumn:_0x9b4780,maxColumn:_0x39a38f}=_0x4305df['_getCoordsForCells'](_0x3e1d15);_0x36a106['removeColumns'](_0x35a4c3,{'at':_0x9b4780,'columns':_0x39a38f-_0x9b4780+0x1});});const _0xe830a3=(_0x3adaca,_0x2c1983)=>{if(!_0x2c1983['subType']||!_0x2c1983['subType']['startsWith']('tablePaste'))return;const _0x1b6e4e=_0x2c1983['attributes']['tablePasteChainId'],_0x4d7bff=_0x189257['getSuggestions']()['filter'](_0x5c2305=>_0x5c2305['isInContent']&&_0x5c2305['attributes']&&_0x5c2305['attributes']['tablePasteChainId']==_0x1b6e4e);_0x4d7bff['length']&&_0x2c1983['getAllAdjacentSuggestions']()['length']!=_0x4d7bff['length']&&_0x4d7bff['reduce']((_0x4aa0b9,_0xe5c88e)=>(_0x4aa0b9['next']=_0xe5c88e,_0xe5c88e['previous']=_0x4aa0b9,_0xe5c88e));};function _0x14ed12(_0x35b645,_0x4218ee=!0x0){const {id:_0x124bf9}=_0x189257['_splitMarkerName'](_0x35b645['markerName']),_0x254e3e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4cd99d=_0x189257['activeMarkers']['includes'](_0x35b645['markerName']);return _0x4cd99d&&_0x254e3e['push']('ck-suggestion-marker--active'),{'classes':_0x254e3e,'attributes':{'data-suggestion':_0x124bf9},'priority':_0x4cd99d&&_0x4218ee?0xbc2:0xbb8};}_0x189257['on']('suggestionLoaded',_0xe830a3,{'priority':'high'}),_0x189257['on']('suggestionUnloaded',_0xe830a3,{'priority':'high'}),_0x122f7c['model']['document']['registerPostFixer'](()=>{let _0x5860c6=!0x1;const _0x368366=Array['from'](_0x122f7c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13bd17,data:_0x23032d}of _0x368366){const {group:_0x106e75,type:_0xc0b2e9,id:_0x26bd7d}=_0x189257['_splitMarkerName'](_0x13bd17);if('suggestion'!=_0x106e75||'deletion'!=_0xc0b2e9||_0x23032d['oldRange'])continue;if(!_0x189257['hasSuggestion'](_0x26bd7d))continue;const _0x436857=_0x189257['getSuggestion'](_0x26bd7d)['getRanges'](),_0x585fb1=_0x122f7c['plugins']['get']('Users')['me'];for(const _0x28c489 of _0x189257['getSuggestions']()){if(!_0x28c489['isInContent']||_0x28c489['author']!=_0x585fb1)continue;if('formatBlock'!=_0x28c489['type']||'tablePasteCell'!=_0x28c489['subType'])continue;if(_0x28c489['getRanges']()['every'](_0x3a3117=>_0x436857['some'](_0x5f117a=>_0x5f117a['containsRange'](_0x3a3117,!0x0)))){for(const _0x2c50d0 of _0x28c489['getAllAdjacentSuggestions']())_0x2c50d0['isInContent']&&(_0x2c50d0['discard'](),_0x5860c6=!0x0);}}}return _0x5860c6;}),_0x122f7c['model']['document']['registerPostFixer'](_0x21d2db=>{const _0x5835ed=_0x122f7c['commands']['get']('redo');if(!_0x5835ed||!_0x5835ed['_createdBatches']['has'](_0x21d2db['batch']))return!0x1;let _0x509e98=!0x1;const _0x5b20aa=_0x122f7c['plugins']['get']('Users')['me'],_0xa37c47=_0x122f7c['model']['document']['differ']['getChanges'](),_0x3aef92=Array['from'](_0x122f7c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4849d8,data:_0x186cec})=>{const {group:_0x14ac1a,subType:_0x18bf07,authorId:_0x32bf65}=_0x189257['_splitMarkerName'](_0x4849d8);return'suggestion'==_0x14ac1a&&'tablePaste'==_0x18bf07&&_0x32bf65==_0x5b20aa['id']&&!_0x186cec['oldRange'];});for(const _0x5e18b7 of _0xa37c47){if('insert'!=_0x5e18b7['type']||'tableCellSuggestion'!=_0x5e18b7['name']||0x1!=_0x5e18b7['length'])continue;const _0x45cd32=_0x21d2db['createRange'](_0x5e18b7['position'],_0x5e18b7['position']['getShiftedBy'](0x1));if(!_0x3aef92['find'](({data:_0x23d2cd})=>_0x23d2cd['newRange']['isEqual'](_0x45cd32))){for(const {name:_0x226012,data:_0x207c50}of _0x3aef92)if(_0x45cd32['containsRange'](_0x207c50['newRange'])){_0x21d2db['updateMarker'](_0x226012,{'range':_0x45cd32}),_0x509e98=!0x0;break;}}}return _0x509e98;}),_0x122f7c['model']['document']['registerPostFixer'](_0xf7fa87=>{let _0x4dd149=!0x1;const _0x578af7=_0x122f7c['plugins']['get']('Users')['me'],_0x48ce7d=_0x189257['getSuggestions']()['filter'](_0x53517a=>_0x53517a['isInContent']&&_0x53517a['author']==_0x578af7),_0x3fe57d=new Set(),_0x4f735f=new Set();for(const _0x4bc4a2 of _0x48ce7d)if('tablePaste'==_0x4bc4a2['subType'])for(const _0x25dfff of _0x4bc4a2['getMarkers']()){const _0x3892d5=_0x25dfff['getRange']()['getContainedElement']();if(_0x3892d5){if(_0x3892d5['is']('element','tableCellSuggestion')&&Pe(_0x3892d5)){_0x4bc4a2['removeMarker'](_0x25dfff['name']),_0x3fe57d['add'](_0x3892d5),_0x4dd149=!0x0;const _0x56d191=_0x3892d5['nextSibling'],_0x547916=_0x3892d5['previousSibling'],_0x2d366a=_0x56d191&&_0x56d191['is']('element','tableCellSuggestion'),_0x1ffc2f=_0x547916&&_0x547916['is']('element','tableCellSuggestion');_0x2d366a&&!_0x3fe57d['has'](_0x56d191)&&_0x4f735f['add'](_0x56d191),_0x1ffc2f&&!_0x3fe57d['has'](_0x547916)&&_0x4f735f['add'](_0x547916);}else _0x3892d5['is']('element','paragraph')&&_0x3892d5['isEmpty']&&(_0x4bc4a2['removeMarker'](_0x25dfff['name']),_0x4dd149=!0x0);}}else{if('tablePasteCell'==_0x4bc4a2['subType']){if(!_0x4bc4a2['attributes']||!_0x4bc4a2['attributes']['tablePasteChainId'])continue;const _0x29e869=_0x4bc4a2['attributes']['markerAttributes'];if(_0x29e869&&Object['keys'](_0x29e869)['length'])continue;const _0xf7db75=_0x4bc4a2['attributes']['tablePasteChainId'];let _0x3b2729=!0x0,_0x2a12ff=!0x0;for(const _0x5785c2 of _0x48ce7d)if(_0x5785c2['subType']&&_0x5785c2['subType']['startsWith']('tablePaste')){if(!_0x5785c2['attributes']['tablePasteChainId']){_0x2a12ff=!0x1;break;}if(_0x5785c2['id']!=_0x4bc4a2['id']&&_0x5785c2['attributes']['tablePasteChainId']==_0xf7db75){_0x3b2729=!0x1;break;}}_0x2a12ff&&_0x3b2729&&(_0x4bc4a2['removeMarkers'](),_0x4dd149=!0x0);}}for(const _0x40f03e of _0x3fe57d)_0xf7fa87['remove'](_0x40f03e);for(const _0x5e5304 of _0x4f735f)_0xf7fa87['unwrap'](_0x5e5304);return _0x4dd149;}),_0x122f7c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x50fca7,_0x593d0a)=>_0x14ed12(_0x50fca7),'converterPriority':'high'}),_0x122f7c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3fa1c8,_0x5e0ffd)=>_0x5e0ffd['options']['showSuggestionHighlights']?_0x14ed12(_0x3fa1c8,!0x1):null,'converterPriority':'high'});const _0x5d3e5c=_0x122f7c['editing']['view'];this['listenTo'](_0x5d3e5c['document'],'clipboardOutput',(_0x203fa6,_0x1f1a93)=>{const _0xf30487=[];for(const _0xb262b8 of _0x5d3e5c['createRangeIn'](_0x1f1a93['content'])['getItems']())_0xb262b8['is']('element','suggestion-td')&&_0xf30487['push'](_0xb262b8);_0x5d3e5c['change'](_0x219ce4=>{for(const _0x1215cf of _0xf30487)_0x219ce4['move'](_0x219ce4['createRangeIn'](_0x1215cf),_0x219ce4['createPositionBefore'](_0x1215cf)),_0x219ce4['remove'](_0x1215cf);});});}}function Pe(_0x594ddf){if(_0x594ddf['isEmpty'])return!0x0;const _0x507efe=_0x594ddf['getChild'](0x0);return _0x507efe['is']('element','paragraph')&&_0x507efe['isEmpty'];}function we(_0x3a1df1,_0x449ecc={},_0x2107a3){for(const {isAnchor:_0x4e4116,cellHeight:_0x20fdcb,cellWidth:_0xdd22f}of _0x2107a3['createTableWalker'](_0x3a1df1,{'includeAllSlots':!0x0,..._0x449ecc}))if(!_0x4e4116||0x1!=_0x20fdcb||0x1!=_0xdd22f)return!0x1;return!0x0;}class Ct extends _0x23b8b9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5abc6b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5abc6b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5abc6b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5abc6b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5abc6b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5abc6b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5abc6b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3c6abe,_0xf10e17){const _0xe767bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d6a78=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x59d7c3=_0xf10e17['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x18aa1e=_0x4d6a78['getColumnGroupElement'](_0x59d7c3);let _0x21802f=_0x18aa1e?_0x4d6a78['getTableColumnsWidths'](_0x18aa1e):null,_0x1ba8d6=_0x59d7c3['getAttribute']('tableWidth')||null;const _0x325c16=_0xf10e17['tableWidth']||_0x1ba8d6,_0x35e257=_0xf10e17['columnWidths']||_0x21802f,_0x4318cf=this['editor']['plugins']['get']('Users')['me'];for(const _0xafbcfd of _0xe767bb['getSuggestions']()){const _0x53fc=_0xafbcfd['getContainedElement']();if('resizeTable'===_0xafbcfd['subType']&&_0x53fc===_0x59d7c3){_0xafbcfd['author']!==_0x4318cf&&_0xafbcfd['discard']();const _0x2d1746=_0xafbcfd['data']['commandParams'];_0x1ba8d6=_0x2d1746[0x0]['tableWidth'],_0x21802f=_0x2d1746[0x0]['columnWidths'];break;}}_0x3c6abe({'table':_0x59d7c3,'tableWidth':_0x325c16,'columnWidths':_0x35e257}),_0xe767bb['markBlockFormat'](_0x59d7c3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ba8d6,'columnWidths':_0x21802f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x48828e){if('formatBlock'!=_0x48828e['type']&&'formatInline'!=_0x48828e['type'])return;const {data:_0x2eb25c}=_0x48828e;if(_0x2eb25c&&'resizeTable'===_0x2eb25c['formatGroupId']){const _0x2c7ed8='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2c7ed8)};}}}class _t extends _0x23b8b9{['afterInit'](){const _0x14051b=this['editor'];_0x14051b['plugins']['has']('Template')&&_0x14051b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x23b8b9{['afterInit'](){const _0x4935e8=this['editor'];if(!_0x4935e8['commands']['get']('insertTableOfContents'))return;_0x4935e8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3bc9ad=_0x4935e8['plugins']['get']('TrackChangesEditing'),_0x337227=_0x4935e8['locale'];_0x3bc9ad['descriptionFactory']['registerElementLabel']('tableOfContents',_0x57b710=>o(_0x337227,'ELEMENT_TABLE_OF_CONTENTS',_0x57b710));}}class Nt extends _0x23b8b9{['afterInit'](){const _0xd8803e=this['editor'];if(!_0xd8803e['plugins']['has']('Title'))return;const _0x44cbc5=_0xd8803e['plugins']['get']('TrackChangesEditing');_0x44cbc5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xd8803e['locale'],'ELEMENT_TITLE')),_0xd8803e['model']['document']['registerPostFixer'](_0x466210=>{let _0xdefd4e=!0x1;const _0x17e670=Array['from'](_0xd8803e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5bbb43,data:_0x3b9604}of _0x17e670){const {group:_0x418875}=_0x44cbc5['_splitMarkerName'](_0x5bbb43);if('suggestion'!==_0x418875||!_0x3b9604['newRange'])continue;const _0x5e2788=_0x3b9604['newRange'],_0x2630ca=_0x5e2788['end']['nodeBefore'];if(!_0x2630ca||!_0x2630ca['is']('element','title-content'))continue;if(!_0x5e2788['start']['isTouching'](_0x5e2788['end']))continue;const _0x45cd0c=_0xd8803e['model']['schema']['getNearestSelectionRange'](_0x5e2788['end'],'forward');if(_0x45cd0c&&_0x45cd0c['isCollapsed']){const _0xe363ad=_0x466210['createRange'](_0x5e2788['start'],_0x45cd0c['start']);_0xe363ad['isEqual'](_0x5e2788)||(_0x466210['updateMarker'](_0x5bbb43,{'range':_0xe363ad}),_0xdefd4e=!0x0);}_0xdefd4e||(_0x466210['removeMarker'](_0x5bbb43),_0xdefd4e=!0x0);}return _0xdefd4e;});}}class Mt extends _0x23b8b9{['afterInit'](){const _0x5e760e=this['editor'],_0xc8818d=_0x5e760e['plugins']['get']('TrackChangesEditing');_0x5e760e['plugins']['has']('UndoEditing')&&(_0xc8818d['enableCommand']('undo'),_0xc8818d['enableCommand']('redo'));}}class $t extends _0x23b8b9{static get['requires'](){return[St];}['afterInit'](){const _0x398dda=this['editor'];if(!_0x398dda['plugins']['has']('TableCaptionEditing'))return;_0x398dda['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x23b8b9{['tableProperties'];['tableCellProperties'];constructor(_0x266f65){super(_0x266f65),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 _0x7ad69c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x31a138 of this['tableProperties'])_0x7ad69c['enableCommand'](_0x31a138,(_0x294ad7,_0x36d0fd)=>{const _0x50990d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x31a138,[_0x50990d],this['tableProperties'],'tableProperties',_0x294ad7,_0x36d0fd);});_0x7ad69c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x7ad69c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7ad69c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3c424c,_0x407362)=>this['handleDiscardAction'](this['tableProperties'],_0x3c424c,_0x407362)),_0x7ad69c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x119afd of this['tableCellProperties'])_0x7ad69c['enableCommand'](_0x119afd,(_0x25dd5e,_0x5462ba)=>{const _0x1ba907=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x119afd,_0x1ba907,this['tableCellProperties'],'tableCellProperties',_0x25dd5e,_0x5462ba);});_0x7ad69c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x7ad69c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7ad69c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2c5c0e,_0x157c02)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2c5c0e,_0x157c02)),_0x7ad69c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x7ad69c['descriptionFactory']['registerDescriptionCallback'](_0x505ff2=>this['handleSuggestionDescription'](_0x505ff2));}['_handlePropertyChange'](_0x24628f,_0x1f1003,_0x55a688,_0x2e22c7,_0x41a84e,_0x14e16a){const _0x131ea8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x14e16a['batch'],()=>{for(const _0x39b70b of _0x1f1003){if(this['_getSuggestion'](_0x39b70b,_0x2e22c7))_0x41a84e(_0x14e16a);else{const _0x1cdac3={};for(const _0x18b242 of _0x55a688){const _0xeeed23=_0x39b70b['getAttribute'](_0x18b242);void 0x0!==_0xeeed23&&(_0x1cdac3[_0x18b242]=_0xeeed23);}_0x41a84e(_0x14e16a),_0x131ea8['markBlockFormat'](_0x39b70b,{'commandParams':[_0x1cdac3]},[],_0x2e22c7);}}});}['handleDiscardAction'](_0x39dc1a,_0x29475a,_0x3fcadd){const _0x1d4ee7=_0x29475a[0x0]['start']['nodeAfter'],_0x3b5046=_0x3fcadd['commandParams'][0x0];this['editor']['model']['change'](_0x1ebaab=>{for(const _0x2c8fa9 of _0x39dc1a)void 0x0!==_0x3b5046[_0x2c8fa9]?_0x1ebaab['setAttribute'](_0x2c8fa9,_0x3b5046[_0x2c8fa9],_0x1d4ee7):_0x1ebaab['removeAttribute'](_0x2c8fa9,_0x1d4ee7);});}['handleSuggestionDescription'](_0x2ab77b){if(_0x2ab77b['data'])switch(_0x2ab77b['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'](_0x32736c,_0xcdc609){const _0x4c5985=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x535a3d of _0x4c5985['getSuggestions']({'skipNotAttached':!0x0})){const _0x46ae3d=_0x535a3d['getContainedElement']();if(_0x535a3d['subType']===_0xcdc609&&_0x46ae3d===_0x32736c)return _0x535a3d;}return null;}}const m='$elementName';class p extends _0x23b8b9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x40cd8f,_0x4fe327,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,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x480de5){function _0x10439b(_0x5ca0f8){return _0x5ca0f8['map'](_0x4b71ea=>String['fromCharCode'](_0x4b71ea))['join']('');}super(_0x480de5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x7df227,_0x4f322a,_0x161ed1,_0x45ad9d)=>{this['_model']['change'](()=>{for(const _0x115d1e of[..._0x45ad9d,..._0x161ed1])this['_model']['markers']['has'](_0x115d1e)&&_0x480de5['editing']['reconvertMarker'](_0x115d1e);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x480de5['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(),_0x480de5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x480de5['config']['get']('trackChanges.trackFormatChanges'),_0x480de5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x480de5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x480de5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x10439b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x10439b([0x34,0x30,0x34,0x38,0x31,0x34,0x33,0x36]);}['init'](){const _0x2f3140=this['editor'],_0x459095=(_0x551e0b,_0x264131)=>{if('attribute'!=_0x551e0b)return'ck-suggestion-marker-'+_0x551e0b;const _0x3c0976=_0x264131['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c0976)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2f3140['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x538d83=>{const {id:_0x4106ed,type:_0x18bf3f,subType:_0x436d29}=this['_splitMarkerName'](_0x538d83['markerName']),_0xdbeccb=['ck-suggestion-marker',_0x459095(_0x18bf3f,_0x436d29)];let _0x12b8fd=0xbb8;return this['activeMarkers']['includes'](_0x538d83['markerName'])&&(_0xdbeccb['push']('ck-suggestion-marker--active'),_0x12b8fd=0xbc2),'deletion'==_0x18bf3f&&(_0x12b8fd+=0x5),{'classes':_0xdbeccb,'attributes':{'data-suggestion':_0x4106ed},'priority':_0x12b8fd};}}),_0x2f3140['conversion']['for']('dataDowncast')['add'](_0x31eded=>{_0x31eded['on']('addMarker:suggestion',(_0x1da258,_0x507558,_0x39b2a6)=>{if(!_0x39b2a6['options']['showSuggestionHighlights'])return;const _0x5a2cbe=_0x507558['item'];if(!_0x5a2cbe)return;const _0x97083f=_0x39b2a6['mapper']['toViewElement'](_0x5a2cbe);_0x2f3140['model']['schema']['isObject'](_0x5a2cbe)&&_0x97083f&&!_0x97083f['getCustomProperty']('widget')&&_0x97083f['is']('containerElement')&&_0x4a1165(_0x97083f,_0x39b2a6['writer']);},{'priority':'high'});}),_0x2f3140['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x395d51,_0x4919a7)=>{if(!_0x4919a7['options']['showSuggestionHighlights'])return null;const {type:_0x1b1a70,subType:_0x52a57c}=this['_splitMarkerName'](_0x395d51['markerName']);return{'classes':['ck-suggestion-marker',_0x459095(_0x1b1a70,_0x52a57c)],'priority':0xbb8};}});const _0x4c2498=({showActiveMarkers:_0xee59f9=!0x0,isAttributeSuggestion:_0x9f291b=!0x1}={})=>(_0x424af0,_0x357cf6,_0x3a6378)=>{if(!_0x357cf6['item'])return;const {id:_0x26f59f}=this['_splitMarkerName'](_0x357cf6['markerName']);if(_0x9f291b){const _0x104edf=this['_suggestions']['get'](_0x26f59f),_0x32e457=this['_getAttributeKey'](_0x104edf);if(!this['_isBlockAttribute'](_0x32e457))return;}if(_0x357cf6['item']['is']('selection'))return void _0x3a6378['consumable']['consume'](_0x357cf6['item'],_0x424af0['name']);const _0x494f4e=_0x3a6378['mapper']['toViewElement'](_0x357cf6['item']);if(_0x357cf6['item']['is']('element')&&_0x2f3140['model']['schema']['isBlock'](_0x357cf6['item'])&&!_0x494f4e['getCustomProperty']('addHighlight')){_0x3a6378['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x494f4e),_0x3a6378['writer']['setAttribute']('data-suggestion',_0x26f59f,_0x494f4e),_0x3a6378['mapper']['bindElementToMarker'](_0x494f4e,_0x357cf6['markerName']),_0xee59f9&&(this['activeMarkers']['includes'](_0x357cf6['markerName'])?_0x3a6378['writer']['addClass']('ck-suggestion-marker--active',_0x494f4e):_0x3a6378['writer']['removeClass']('ck-suggestion-marker--active',_0x494f4e));for(const _0x3188e2 of _0x2f3140['model']['createRangeIn'](_0x357cf6['item'])['getItems']())_0x3a6378['consumable']['consume'](_0x3188e2,_0x424af0['name']);_0x3a6378['consumable']['consume'](_0x357cf6['item'],_0x424af0['name']);}};_0x2f3140['conversion']['for']('dataDowncast')['add'](_0xae3339=>{_0xae3339['on']('addMarker:suggestion:formatBlock',(_0x52899b,_0x285ce1,_0x2bd1ee)=>{_0x2bd1ee['options']['showSuggestionHighlights']&&_0x4c2498({'showActiveMarkers':!0x1})(_0x52899b,_0x285ce1,_0x2bd1ee);},{'priority':'highest'});}),_0x2f3140['conversion']['for']('dataDowncast')['add'](_0x4b9201=>{_0x4b9201['on']('addMarker:suggestion:attribute',(_0x1bca97,_0xcd8220,_0x110d27)=>{_0x110d27['options']['showSuggestionHighlights']&&_0x4c2498({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1bca97,_0xcd8220,_0x110d27);},{'priority':'highest'});}),_0x2f3140['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2da5d7,_0x445bbc)=>_0x445bbc['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2da5d7['substr'](0xb)}}),_0x2f3140['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x283d73,{writer:_0x54529f})=>{let _0x6d2b8f='suggestion:'+_0x283d73['getAttribute']('suggestion-type')+':'+_0x283d73['getAttribute']('id');return _0x283d73['getAttribute']('marker-count')&&(_0x6d2b8f+=':'+_0x283d73['getAttribute']('marker-count')),_0x54529f['createElement']('$marker',{'data-name':_0x6d2b8f});}}),_0x2f3140['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2f3140['conversion']['for']('editingDowncast')['add'](_0x31ec2d=>{_0x31ec2d['on']('addMarker:suggestion:formatBlock',_0x4c2498(),{'priority':'high'});}),_0x2f3140['conversion']['for']('editingDowncast')['add'](_0x234796=>{_0x234796['on']('addMarker:suggestion:attribute',_0x4c2498({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2f3140['conversion']['for']('editingDowncast')['add'](_0x6e1cb4=>{_0x6e1cb4['on']('removeMarker:suggestion:formatBlock',(_0x141b14,_0x32b310,_0x468ea6)=>{const _0x5baf34=_0x468ea6['mapper']['markerNameToElements'](_0x32b310['markerName']);if(_0x5baf34){for(const _0x59b00c of _0x5baf34)_0x59b00c['getCustomProperty']('addHighlight')||(_0x468ea6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59b00c),_0x468ea6['writer']['removeAttribute']('data-suggestion',_0x59b00c),_0x468ea6['mapper']['unbindElementFromMarkerName'](_0x59b00c,_0x32b310['markerName']));}},{'priority':'high'});}),_0x2f3140['conversion']['for']('editingDowncast')['add'](_0x244389=>{_0x244389['on']('removeMarker:suggestion:attribute',(_0x3048e2,_0x3b3b98,_0x45aa32)=>{const _0x28dc74=_0x45aa32['mapper']['markerNameToElements'](_0x3b3b98['markerName']);if(!_0x28dc74)return;const {id:_0x19b8c2}=this['_splitMarkerName'](_0x3b3b98['markerName']),_0x286a25=this['_suggestions']['get'](_0x19b8c2),_0x2647fb=this['_getAttributeKey'](_0x286a25);if(this['_isBlockAttribute'](_0x2647fb)){for(const _0x3dda45 of _0x28dc74)_0x3dda45['getCustomProperty']('addHighlight')||(_0x45aa32['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3dda45),_0x45aa32['writer']['removeAttribute']('data-suggestion',_0x3dda45),_0x45aa32['mapper']['unbindElementFromMarkerName'](_0x3dda45,_0x3b3b98['markerName']));}},{'priority':'high'});}),_0x2f3140['model']['document']['registerPostFixer'](_0x5352ae=>{let _0x2642b1=!0x1;const _0x2d7ced=Array['from'](_0x2f3140['model']['document']['differ']['getChangedMarkers']()),_0x5ad223=new Set();for(const {name:_0x31bb27,data:_0x1b22f2}of _0x2d7ced){const {group:_0x4412e0,type:_0x4c4d73,subType:_0x33c462,id:_0x1b01f8}=this['_splitMarkerName'](_0x31bb27);if('suggestion'!==_0x4412e0)continue;const _0x3d95ef=this['_suggestions']['get'](_0x1b01f8);if(null!=_0x1b22f2['newRange']){'formatInline'==_0x4c4d73&&(_0x2642b1=_0x2642b1||Vt(_0x1b22f2['newRange'],_0x31bb27,_0x5352ae,_0x2f3140['model']['schema']));const _0x5653d4='attribute'==_0x4c4d73&&this['_isBlockAttribute'](_0x33c462['split']('|')[0x0]);if(_0x1b22f2['newRange']['isCollapsed']||'$graveyard'==_0x1b22f2['newRange']['root']['rootName']||'formatBlock'==_0x4c4d73&&!Ot(_0x1b22f2['newRange'])||_0x5653d4&&!Ot(_0x1b22f2['newRange'])||'deletion'==_0x4c4d73&&!(!Et(_0xd3af78=_0x1b22f2['newRange'])&&!function(_0x2094a3){return _0x2094a3['start']['parent']==_0x2094a3['end']['nodeBefore']&&_0x2094a3['start']['isAtEnd'];}(_0xd3af78)))_0x5352ae['removeMarker'](_0x31bb27),_0x2642b1=!0x0;else{if(!_0x3d95ef||!_0x3d95ef['isInContent'])continue;_0x5ad223['add'](_0x3d95ef);}}}var _0xd3af78;return _0x5ad223['size']>0x0&&(_0x2642b1=!!this['_joinWithAdjacentSuggestions'](_0x5ad223)||_0x2642b1),_0x2642b1;}),_0x2f3140['model']['document']['registerPostFixer'](_0x363043=>{let _0x1e6e40=!0x1;for(const _0x2988cd of _0x2f3140['model']['document']['differ']['getChanges']())if('insert'==_0x2988cd['type'])for(const _0x5efafb of this['_suggestions']['values']()){if(_0x5efafb['isMultiRange']||!_0x5efafb['isInContent'])continue;const _0x1d6434='formatBlock'==_0x5efafb['type'],_0x3d09c2=this['_getAttributeKey'](_0x5efafb),_0x42a2e7=_0x3d09c2&&this['_isBlockAttribute'](_0x3d09c2);if(!_0x1d6434&&!_0x42a2e7)continue;const _0x252abc=_0x5efafb['getFirstRange']();if(_0x252abc['start']['parent']!=_0x252abc['end']['parent']&&!_0x252abc['end']['isAtEnd']){const _0x1d2a23=_0x2f3140['model']['createPositionAt'](_0x252abc['start']['nodeAfter'],'end'),_0x4bdcaf=_0x2f3140['model']['createRange'](_0x252abc['start'],_0x1d2a23);_0x363043['updateMarker'](_0x5efafb['getFirstMarker'](),{'range':_0x4bdcaf}),_0x1e6e40=!0x0;}}return _0x1e6e40;}),_0x2f3140['model']['document']['registerPostFixer'](_0x30cdc9=>this['_processAttributeChanges'](_0x30cdc9)),_0x2f3140['model']['document']['registerPostFixer'](_0x763bc5=>!_0x763bc5['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x763bc5)),_0x2f3140['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2f3140['model']['document']['on']('change:data',(_0x10a923,_0x942d6c)=>{if(!_0x942d6c['isLocal']||_0x942d6c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3fb0a9=_0x2f3140['model']['document']['differ']['getChanges']();if(0x0==_0x3fb0a9['length'])return;const _0x33925d=[],_0xa8997a=_0x3fb0a9['filter'](_0x3473f5=>'attribute'==_0x3473f5['type']),_0x158ec1=_0x3fb0a9['filter'](_0x41342a=>'insert'==_0x41342a['type']&&'$text'!=_0x41342a['name']);for(const _0x395e79 of _0xa8997a)this['_isRegisteredAttribute'](_0x395e79['attributeKey'])&&_0x33925d['push']({'key':_0x395e79['attributeKey'],'newValue':_0x395e79['attributeNewValue'],'oldValue':_0x395e79['attributeOldValue'],'range':Gt(_0x395e79['range'],_0x2f3140['model'])});for(const _0x21764c of _0x158ec1){if('rename'!=_0x21764c['action']&&'refresh'!=_0x21764c['action'])continue;const _0x5c8c42=Ft(_0x21764c['position']['nodeAfter'],_0x2f3140['model']),_0x524e77=_0x21764c['before'];'rename'==_0x21764c['action']&&_0x33925d['push']({'key':m,'newValue':_0x21764c['name'],'oldValue':_0x524e77['name'],'range':_0x5c8c42});for(const [_0x4bd48b,_0x333fed]of _0x524e77['attributes']){if(!this['_isRegisteredAttribute'](_0x4bd48b))continue;const _0x39ce5c=_0x21764c['attributes']['get'](_0x4bd48b);_0x333fed!==_0x39ce5c&&_0x33925d['push']({'key':_0x4bd48b,'newValue':_0x39ce5c,'oldValue':_0x333fed,'range':_0x5c8c42});}for(const [_0x4a7a02,_0x558677]of _0x21764c['attributes'])this['_isRegisteredAttribute'](_0x4a7a02)&&(_0x524e77['attributes']['has'](_0x4a7a02)||_0x33925d['push']({'key':_0x4a7a02,'newValue':_0x558677,'oldValue':null,'range':_0x5c8c42}));}0x0!=_0x33925d['length']&&_0x2f3140['model']['enqueueChange'](_0x942d6c,_0x4c4bfd=>{const _0x1f4118=_0x2905f1();for(const {range:_0x59540e,key:_0x50f989,oldValue:_0x4e547f,newValue:_0x43b44c}of _0x33925d)this['markAttributeChange'](_0x59540e,_0x50f989,_0x4e547f,_0x43b44c,{'groupId':_0x1f4118});this['_reduceExistingSuggestions'](_0x4c4bfd,_0x33925d);});},{'priority':'lowest'}),_0x2f3140['model']['markers']['on']('update:suggestion',(_0x39e96b,_0x23a059,_0x4d8054)=>{if(null==_0x4d8054){const {id:_0x3e47c8}=this['_splitMarkerName'](_0x23a059['name']),_0x1d0c31=this['_suggestions']['get'](_0x3e47c8);_0x1d0c31&&_0x1d0c31['addMarkerName'](_0x23a059['name']);}}),_0x2f3140['model']['document']['on']('change:data',()=>{const _0xfa7669=Array['from'](_0x2f3140['model']['document']['differ']['getChangedMarkers']())['filter'](_0x33d389=>'suggestion'===this['_splitMarkerName'](_0x33d389['name'])['group']);if(0x0===_0xfa7669['length'])return;_0xfa7669['sort']((_0x330489,_0x4a50fa)=>{const _0x47c1c0=_0x330489['data']['oldRange'],_0x3a9ebc=_0x4a50fa['data']['oldRange'];return null===_0x47c1c0&&null===_0x3a9ebc?0x0:null===_0x47c1c0&&null!==_0x3a9ebc?-0x1:null!==_0x47c1c0&&null===_0x3a9ebc?0x1:_0x47c1c0['start']['isBefore'](_0x3a9ebc['start'])?-0x1:0x1;});const _0x14eae6=new Set(),_0x32e77b=new Set();for(const {name:_0xb0a4e3,data:_0x13aa2b}of _0xfa7669){const {id:_0x2ab89c}=this['_splitMarkerName'](_0xb0a4e3);if(null===_0x13aa2b['oldRange']){const _0x35dfac=this['_handleNewSuggestionMarker'](_0xb0a4e3);_0x32e77b['add'](_0x35dfac);}else{const _0x56c054=this['_suggestions']['get'](_0x2ab89c);null!==_0x13aa2b['newRange']||_0x56c054['isInContent']?(_0x14eae6['add'](_0x56c054['head']),_0x32e77b['add'](_0x56c054)):this['_removeSuggestion'](_0x56c054);}}_0x32e77b['size']>0x0&&this['_refreshSuggestionsChain'](_0x32e77b);for(const _0x607eb2 of _0x14eae6)this['fire']('suggestionChanged',_0x607eb2);}),_0x2f3140['model']['on']('applyOperation',(_0x434c00,_0x151ef2)=>{const _0x271c4b=_0x151ef2[0x0];if(!this['_suggestions']['size'])return;if(!_0x271c4b['isDocumentOperation'])return;if(_0x271c4b['batch']['isUndo']||!_0x271c4b['batch']['isLocal'])return;let _0x21a193,_0x1567b8;switch(_0x271c4b['type']){case'insert':_0x21a193=_0x2f3140['model']['createPositionAt'](_0x271c4b['position']),_0x1567b8=_0x21a193['getShiftedBy'](_0x271c4b['howMany']);break;case'split':_0x21a193=_0x2f3140['model']['createPositionAt'](_0x271c4b['splitPosition']),_0x1567b8=_0x2f3140['model']['createPositionAt'](_0x271c4b['moveTargetPosition']);break;case'move':_0x21a193=_0x2f3140['model']['createPositionAt'](_0x271c4b['targetPosition']),_0x1567b8=_0x21a193['getShiftedBy'](_0x271c4b['howMany']);break;default:return;}const _0x328ad7=_0x2f3140['model']['createRange'](_0x21a193,_0x1567b8);_0x2f3140['model']['change'](()=>{for(const {suggestion:_0x53d078,meta:_0x36a8d2}of this['_findSuggestions'](_0x328ad7)){if(_0x53d078['isMultiRange'])continue;if('formatInline'==_0x53d078['type'])continue;const _0x35e908=this['_getAttributeKey'](_0x53d078);if(_0x35e908&&this['_isBlockAttribute'](_0x35e908)&&'split'!=_0x271c4b['type'])continue;const _0x468e65=_0x53d078['data']&&_0x53d078['data']['multipleBlocks'];('formatBlock'!=_0x53d078['type']||'split'==_0x271c4b['type']&&!_0x468e65)&&(_0x36a8d2['containsRangeInObject']||'insertion'==_0x53d078['type']&&_0x36a8d2['isOwn']||_0x53d078['getFirstRange']()['containsRange'](_0x328ad7)&&this['_breakSuggestionMarker'](_0x53d078,_0x21a193,_0x1567b8));}});},{'priority':'lowest'}),_0x2f3140['model']['on']('deleteContent',(_0x394bbc,_0x3c6d07)=>{const _0x276abe=_0x3c6d07[0x0],_0x48e0d2=_0x3c6d07[0x1];if(_0x48e0d2&&_0x48e0d2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x276abe['isCollapsed'])return;const _0x515064=_0x2f3140['model']['schema'],{start:_0x4155b2,end:_0x55abc5}=_0x276abe['getFirstRange'](),_0x4b42ae=_0x4155b2['nodeAfter']&&_0x515064['isLimit'](_0x4155b2['nodeAfter'])?null:_0x515064['getNearestSelectionRange'](_0x4155b2,'forward'),_0x1c4cb2=_0x55abc5['nodeBefore']&&_0x515064['isLimit'](_0x55abc5['nodeBefore'])?null:_0x515064['getNearestSelectionRange'](_0x55abc5,'backward'),_0x21dbe0=_0x2f3140['model']['createRange'](_0x4b42ae?_0x4b42ae['start']:_0x4155b2,_0x1c4cb2?_0x1c4cb2['end']:_0x55abc5);_0x2f3140['model']['change'](_0x4d54e7=>{this['markDeletion'](_0x21dbe0);const _0x415341=_0x2f3140['model']['schema']['getNearestSelectionRange'](_0x21dbe0['start']);_0x276abe['is']('documentSelection')?_0x4d54e7['setSelection'](_0x415341):_0x276abe['setTo'](_0x415341);}),_0x394bbc['stop']();},{'priority':_0x2bf5ee['normal']+0xa}),_0x2f3140['model']['on']('insertContent',(_0x3b9136,_0x47e3e5)=>{const _0x372299=_0x47e3e5[_0x47e3e5['length']-0x1];_0x372299&&_0x372299['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2f3140['model']['change'](()=>{let _0x25b000=_0x2f3140['model']['insertContent'](_0x47e3e5[0x0],_0x47e3e5[0x1],_0x47e3e5[0x2],{'forceDefaultExecution':!0x0});if(!_0x25b000)return;_0x3b9136['return']=_0x25b000['clone']();const _0x45442c=_0x25b000['end']['nodeBefore'],_0x1f9c9c=_0x2f3140['model']['schema'];_0x45442c&&_0x1f9c9c['isBlock'](_0x45442c)&&!_0x1f9c9c['isObject'](_0x45442c)&&(_0x25b000=_0x2f3140['model']['createRange'](_0x25b000['start'],_0x2f3140['model']['createPositionAt'](_0x45442c,'end'))),this['markInsertion'](_0x25b000);}),_0x3b9136['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xfc766b=new $(_0x2f3140,this['_suggestions']);_0x2f3140['commands']['add']('acceptSuggestion',_0xfc766b),this['enableCommand']('acceptSuggestion');const _0x3abdee=new B(_0x2f3140,this['_suggestions']);_0x2f3140['commands']['add']('discardSuggestion',_0x3abdee),this['enableCommand']('discardSuggestion'),_0x2f3140['commands']['add']('acceptAllSuggestions',new x(_0x2f3140,_0xfc766b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2f3140['commands']['add']('discardAllSuggestions',new x(_0x2f3140,_0x3abdee,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2f3140['commands']['add']('acceptSelectedSuggestions',new R(_0x2f3140,_0xfc766b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2f3140['commands']['add']('discardSelectedSuggestions',new R(_0x2f3140,_0x3abdee,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2ed03d=_0x2f3140['plugins']['get']('CommentsRepository');this['listenTo'](_0x2ed03d,'addComment',(_0x484d4d,{threadId:_0x332a7b})=>{const _0x564757=this['_suggestions']['get'](_0x332a7b);_0x564757&&_0x564757['commentThread']&&0x1===_0x564757['commentThread']['length']&&this['_updateSuggestionData'](_0x332a7b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2ed03d,'removeComment',(_0x366c23,{threadId:_0x6f4ae9})=>{const _0x2fd0e0=this['_suggestions']['get'](_0x6f4ae9);_0x2fd0e0&&_0x2fd0e0['commentThread']&&!_0x2fd0e0['commentThread']['length']&&this['_updateSuggestionData'](_0x6f4ae9,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5e1607){if(this['_adapter'])throw new _0x14dd54('track-changes-adapter-already-set',this);this['_adapter']=_0x5e1607;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5f3ae3=!0x1,toJSON:_0x317e92=!0x1}={}){const _0x414ddb=[];for(const _0x468753 of this['_suggestions']['values']())_0x5f3ae3&&!_0x468753['isInContent']||_0x414ddb['push'](_0x468753);return _0x317e92?_0x414ddb['map'](_0x31f42a=>_0x31f42a['toJSON']()):_0x414ddb;}['getSuggestion'](_0x2d1d54){const _0x40b8e9=this['_suggestions']['get'](_0x2d1d54);if(!_0x40b8e9)throw new _0x14dd54('track-changes-suggestion-not-found',this);return _0x40b8e9;}['hasSuggestion'](_0x3be6a2){return this['_suggestions']['has'](_0x3be6a2);}['addSuggestionData'](_0x4e963c){const {authorId:_0x1d33d0,id:_0x1b9249,attributes:_0x1159ce}=_0x4e963c,[_0x5e7f29,_0x587c76]=_0x4e963c['type']['split'](':'),_0x1439e9=this['_suggestions']['get'](_0x1b9249)||this['_createSuggestion'](_0x5e7f29,_0x587c76,_0x1b9249,_0x1d33d0,_0x1159ce);if(this['_addThreadToSuggestion'](_0x1439e9),this['_checkSuggestionCorrectness'](_0x1439e9,_0x5e7f29,_0x587c76||null,_0x1d33d0),_0x1439e9['createdAt']=_0x4e963c['createdAt'],_0x1439e9['_isDataLoaded']=!0x0,_0x1159ce&&_0x1159ce['@external']){const _0x24cf76=_0x1159ce['@external'],_0x229c88=this['_getExternalAuthor'](_0x24cf76['authorName']);_0x1439e9['authoredAt']=_0x24cf76['createdAt'],_0x1439e9['author']=_0x229c88,_0x1439e9['isExternal']=!0x0;}else _0x1439e9['authoredAt']=_0x4e963c['createdAt'];switch(_0x4e963c['data']&&(_0x1439e9['data']=_0x4e963c['data']),_0x4e963c['attributes']&&(_0x1439e9['attributes']=_0x4e963c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1439e9['_saved']=!0x0),this['_suggestionState']['get'](_0x1439e9)){case'notReady':this['_suggestionState']['set'](_0x1439e9,'dataReady');break;case'markerReady':_0x1439e9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1439e9])),this['_refreshSuggestionsChain'](new Set([_0x1439e9])),this['_suggestionState']['set'](_0x1439e9,'ready'),this['fire']('suggestionLoaded',_0x1439e9)):this['_suggestionState']['set'](_0x1439e9,'removed');}return _0x1439e9;}['acceptSuggestion'](_0x1d24b3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x98feab of _0x1d24b3['getAllAdjacentSuggestions']())_0x98feab['accept']();});});}['discardSuggestion'](_0x166a5d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x279e9a of _0x166a5d['getAllAdjacentSuggestions']())_0x279e9a['discard']();});});}['enableCommand'](_0x38044e,_0x2ba563){const _0x1d5cff=this['editor']['commands']['get'](_0x38044e);if(!_0x1d5cff)throw new _0x14dd54('track-changes-command-not-found',this,{'commandName':_0x38044e});if(this['_enabledCommands']['has'](_0x1d5cff))throw new _0x14dd54('track-changes-enable-command-twice',this,{'commandName':_0x38044e});this['_enabledCommands']['add'](_0x1d5cff),_0x2ba563&&_0x1d5cff['on']('execute',(_0x4d025a,_0x1bd88b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1bd88b['length']>0x0&&_0x1bd88b[_0x1bd88b['length']-0x1]&&_0x1bd88b[_0x1bd88b['length']-0x1]['forceDefaultExecution']?_0x1bd88b['pop']():(_0x4d025a['return']=_0x2ba563((..._0x598775)=>_0x1d5cff['execute'](..._0x598775,{'forceDefaultExecution':!0x0}),..._0x1bd88b),_0x4d025a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a3db7){let _0x43b5ab,_0x3c1447;const _0xe838f6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x43b5ab=_0x4a3db7();}catch(_0x35bc5c){_0x3c1447=_0x35bc5c;}return _0xe838f6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3c1447&&_0x14dd54['rethrowUnexpectedError'](_0x3c1447,this),_0x43b5ab;}['markInsertion'](_0x3aa0a4,_0x4ce733=null,_0x3ea237={}){if(_0x3aa0a4['isCollapsed'])return null;const _0x5eeca7=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x340cc5,meta:_0xeffe31}of this['_findSuggestions'](_0x3aa0a4,'insertion'))if(_0xeffe31['isOwn']){if(!_0xeffe31['isNextTo']){if(_0xeffe31['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x340cc5,_0x3ea237))continue;return _0x340cc5;}if(Ht(_0x340cc5,_0x3ea237))return _0x340cc5;this['_breakSuggestionMarker'](_0x340cc5,_0x3aa0a4['start'],_0x3aa0a4['end']);break;}if(_0x4ce733==_0x340cc5['subType']&&Ht(_0x340cc5,_0x3ea237)){const _0x273d99=_0x340cc5['getFirstRange']();return _0x273d99['start']['isEqual'](_0x3aa0a4['end'])?this['_setSuggestionRange'](_0x340cc5,this['_model']['createRange'](_0x3aa0a4['start'],_0x273d99['end'])):this['_setSuggestionRange'](_0x340cc5,this['_model']['createRange'](_0x273d99['start'],_0x3aa0a4['end'])),_0x340cc5;}}const _0x3281af=_0x2905f1(),_0x5befdd=_0x5eeca7['id'],_0x1e9f83=_0x4ce733?'insertion:'+_0x4ce733:'insertion',_0x210c41=this['_setSuggestionData']({'id':_0x3281af,'type':_0x1e9f83,'createdAt':new Date(),'authorId':_0x5befdd,'attributes':_0x3ea237});return this['_addSuggestionMarker'](_0x1e9f83,_0x3281af,_0x5befdd,_0x3aa0a4),_0x210c41;}['markMultiRangeInsertion'](_0x1e9e80,_0x426f9a='multi',_0x3c2943={}){const _0x230def=this['editor']['plugins']['get']('Users')['me'],_0x1bb54d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x426f9a,'join');for(const _0x265aca of this['getSuggestions']())if(_0x265aca['author']['id']==_0x230def['id']&&'insertion'==_0x265aca['type']&&_0x265aca['subType']==_0x426f9a&&Ht(_0x265aca,_0x3c2943)&&(_0x1bb54d(_0x265aca['getRanges'](),_0x1e9e80)||_0x1bb54d(_0x1e9e80,_0x265aca['getRanges']()))){for(const _0x26d325 of _0x1e9e80)_0x265aca['addRange'](_0x26d325);return _0x265aca;}for(const {suggestion:_0x3cab88,meta:_0x4c29fc}of this['_findSuggestions'](_0x1e9e80,'insertion')){if(!_0x4c29fc['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4c29fc['containsRangeInObject'])continue;if(!Ht(_0x3cab88,_0x3c2943))continue;let _0x2aaf6c=!0x0;for(const _0x2649f1 of _0x3cab88['getRanges']())for(const _0x431da5 of _0x1e9e80)if(!_0x2649f1['containsRange'](_0x431da5)){_0x2aaf6c=!0x1;break;}if(_0x2aaf6c)return _0x3cab88;}const _0xabb4ae=_0x2905f1(),_0x4f5a90=_0x230def['id'],_0x22a1f6='insertion:'+_0x426f9a,_0x282bbc=this['_setSuggestionData']({'id':_0xabb4ae,'type':_0x22a1f6,'createdAt':new Date(),'authorId':_0x4f5a90,'attributes':_0x3c2943});for(const _0x10b306 of _0x1e9e80)this['_addSuggestionMarker'](_0x22a1f6,_0xabb4ae,_0x4f5a90,_0x10b306,u['getMultiRangeId']());return _0x282bbc;}['markInlineFormat'](_0x1273a7,_0x494675,_0x512a1b=null,_0x332464={}){if(_0x512a1b=_0x512a1b||Ut(_0x494675),_0x1273a7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x9ce79c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x512a1b,'accept');return this['forceDefaultExecution'](()=>_0x9ce79c([_0x1273a7],_0x494675,_0x332464)),null;}const _0x41c0b2=this['editor']['plugins']['get']('Users')['me'],_0x12805e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5a5f30,meta:_0x4534f1}of this['_findSuggestions'](_0x1273a7,'insertion'))_0x4534f1['isOwn']&&!_0x4534f1['isInsideObject']&&_0x12805e['push'](..._0x5a5f30['getRanges']());}const _0x5757d5=function(_0x2c3b22,_0x3f4367){const _0x20b6f9=[];for(const _0x1dc278 of _0x3f4367){const _0x581657=_0x2c3b22['getIntersection'](_0x1dc278);_0x581657&&_0x20b6f9['push'](_0x581657);}return _0x20b6f9;}(_0x1273a7,_0x12805e),_0x312e97=function(_0x5233b1,_0x44ae73){const _0x7acb0a=[_0x5233b1];for(const _0x194df9 of _0x44ae73){let _0x5c9ee9=0x0;for(;_0x5c9ee9<_0x7acb0a['length'];){const _0x3fdad9=_0x7acb0a[_0x5c9ee9]['getDifference'](_0x194df9);_0x7acb0a['splice'](_0x5c9ee9,0x1,..._0x3fdad9),_0x5c9ee9+=_0x3fdad9['length'];}}return _0x7acb0a;}(_0x1273a7,_0x12805e);_0x5757d5['length']&&this['_model']['change'](()=>{for(const _0x5ba35e of _0x5757d5){const _0x2288a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x512a1b,'accept');this['forceDefaultExecution'](()=>_0x2288a([_0x5ba35e],_0x494675,_0x332464));}});for(const _0x30e3b6 of _0x312e97){let _0x362911=null,_0x4013aa=_0x30e3b6['start'],_0x3b02b4=_0x30e3b6['end'];for(const {suggestion:_0x1d938b,meta:_0x1976c1}of this['_findSuggestions'](_0x30e3b6,'formatInline')){if(!_0x1976c1['isOwn'])continue;if(_0x1d938b['subType']!=_0x512a1b)continue;if(!Ht(_0x1d938b,_0x332464))continue;const _0x3c4e6c=_0x1d938b['getFirstRange']();if(_0x3c4e6c['containsRange'](_0x30e3b6,!0x0))return null;_0x4013aa=_0x4013aa['isBefore'](_0x3c4e6c['start'])?_0x4013aa:_0x3c4e6c['start'],_0x3b02b4=_0x3b02b4['isAfter'](_0x3c4e6c['end'])?_0x3b02b4:_0x3c4e6c['end'],_0x362911?_0x3c4e6c['start']['isBefore'](_0x362911['getFirstRange']()['start'])?(_0x362911['removeMarkers'](),_0x362911=_0x1d938b):_0x1d938b['removeMarkers']():_0x362911=_0x1d938b;}const _0x2a51b2=this['_model']['createRange'](_0x4013aa,_0x3b02b4);if(_0x362911)this['_setSuggestionRange'](_0x362911,_0x2a51b2);else{const _0x53685a=_0x2905f1(),_0x4f018c=_0x41c0b2['id'];this['_setSuggestionData']({'id':_0x53685a,'type':'formatInline:'+_0x512a1b,'data':_0x494675,'createdAt':new Date(),'authorId':_0x4f018c,'attributes':_0x332464}),this['_addSuggestionMarker']('formatInline:'+_0x512a1b,_0x53685a,_0x4f018c,_0x2a51b2);}}return null;}['markBlockFormat'](_0x5b9ac4,_0x4ea3fb,_0x240eed=[],_0x47c94f=null,_0x5e9d49={}){_0x4ea3fb['formatGroupId']||(_0x4ea3fb['formatGroupId']=_0x4ea3fb['commandName']),_0x4ea3fb['multipleBlocks']=_0x5b9ac4['is']('range'),_0x47c94f=_0x47c94f||Ut(_0x4ea3fb);const _0x4dbb0f=_0x240eed['map'](_0xd95c06=>Ft(_0xd95c06,this['_model'])),_0x4c2e4d=_0x5b9ac4['is']('range')?_0x5b9ac4:Ft(_0x5b9ac4,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4082df=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47c94f,'accept');return this['forceDefaultExecution'](()=>_0x4082df([_0x4c2e4d],_0x4ea3fb,_0x5e9d49)),null;}_0x4dbb0f['push'](_0x4c2e4d);let _0x4ac854=!0x0;for(const _0x16192c of _0x4dbb0f)if(!this['_rangeIsInLocalUserInsertion'](_0x16192c)){_0x4ac854=!0x1;break;}if(_0x4ac854&&'always'!==this['_trackFormatChanges']){const _0x5b70ce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47c94f,'accept');return this['forceDefaultExecution'](()=>_0x5b70ce([_0x4c2e4d],_0x4ea3fb,_0x5e9d49)),null;}let _0x5c83d1=null,_0x4788dc=_0x4c2e4d['start'],_0x4ffc52=_0x4c2e4d['end'];for(const {suggestion:_0x214daa,meta:_0x12e4cc}of this['_findSuggestions'](_0x4c2e4d,'formatBlock')){if(!_0x12e4cc['isOwn'])continue;if(_0x12e4cc['isNextTo']||_0x12e4cc['containsRangeInObject']||_0x12e4cc['isInsideObject'])continue;if(_0x214daa['data']['formatGroupId']!=_0x4ea3fb['formatGroupId'])continue;if(!Ht(_0x214daa,_0x5e9d49))continue;const _0x4a6478=_0x214daa['getFirstRange']();if(_0x214daa['subType']==_0x47c94f){if(_0x4a6478['containsRange'](_0x4c2e4d,!0x0))return null;_0x4788dc=_0x4788dc['isBefore'](_0x4a6478['start'])?_0x4788dc:_0x4a6478['start'],_0x4ffc52=_0x4ffc52['isAfter'](_0x4a6478['end'])?_0x4ffc52:_0x4a6478['end'],_0x5c83d1?_0x4a6478['start']['isBefore'](_0x5c83d1['getFirstRange']()['start'])?(_0x5c83d1['removeMarkers'](),_0x5c83d1=_0x214daa):_0x214daa['removeMarkers']():_0x5c83d1=_0x214daa;}else{const _0x48c000=_0x4c2e4d['getIntersection'](_0x4a6478);this['_cutOutSuggestionMarker'](_0x214daa,_0x48c000);}}const _0x306fd6=this['editor']['plugins']['get']('Users')['me'],_0x4ed072=_0x2905f1(),_0x462977=_0x306fd6['id'];if(_0x5c83d1)return this['_setSuggestionRange'](_0x5c83d1,this['_model']['createRange'](_0x4788dc,_0x4ffc52)),_0x5c83d1;{const _0xb25054=this['_setSuggestionData']({'id':_0x4ed072,'type':'formatBlock:'+_0x47c94f,'data':_0x4ea3fb,'createdAt':new Date(),'authorId':_0x462977,'attributes':_0x5e9d49});return this['_addSuggestionMarker']('formatBlock:'+_0x47c94f,_0x4ed072,_0x462977,this['_model']['createRange'](_0x4788dc,_0x4ffc52)),_0xb25054;}}['markMultiRangeBlockFormat'](_0x53fb59,_0x55c92f,_0x421f4c=[],_0x3e3525=null,_0x33e485={}){_0x55c92f['formatGroupId']||(_0x55c92f['formatGroupId']=_0x55c92f['commandName']);const _0x2a5fc6=_0x53fb59[0x0];_0x55c92f['multipleBlocks']=_0x2a5fc6['is']('range'),_0x3e3525=_0x3e3525||Ut(_0x55c92f);const _0x365abb=_0x421f4c['map'](_0x31b6c2=>Ft(_0x31b6c2,this['_model'])),_0x248a33=_0x2a5fc6['is']('range')?_0x53fb59:_0x53fb59['map'](_0x556bde=>Ft(_0x556bde,this['_model']));if('never'===this['_trackFormatChanges']){const _0xa63879=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e3525,'accept');return this['forceDefaultExecution'](()=>_0xa63879(_0x248a33,_0x55c92f,_0x33e485)),null;}_0x365abb['push'](..._0x248a33);let _0x3e49e0=!0x0;for(const _0x408dc1 of _0x365abb)if(!this['_rangeIsInLocalUserInsertion'](_0x408dc1)){_0x3e49e0=!0x1;break;}if(_0x3e49e0&&'always'!==this['_trackFormatChanges']){const _0xdd366=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e3525,'accept');return this['forceDefaultExecution'](()=>_0xdd366(_0x248a33,_0x55c92f,_0x33e485)),null;}const _0x3764ee=this['editor']['plugins']['get']('Users')['me'];for(const _0x34503e of this['getSuggestions']()){if(_0x34503e['author']['id']!=_0x3764ee['id'])continue;if('formatBlock'!=_0x34503e['type']||_0x34503e['data']['formatGroupId']!=_0x55c92f['formatGroupId'])continue;if(!Ht(_0x34503e,_0x33e485))continue;const _0x2e5cc6=_0x34503e['subType']==_0x3e3525;for(let _0x36947a=0x0;_0x36947a<_0x248a33['length'];_0x36947a++){const _0x56c352=_0x248a33[_0x36947a];for(const _0x411ea6 of _0x34503e['getMarkers']()){const _0x1aa231=_0x411ea6['getRange']();if(_0x56c352['isEqual'](_0x1aa231)){_0x2e5cc6?(_0x248a33['splice'](_0x36947a,0x1),_0x36947a--):_0x34503e['removeMarker'](_0x411ea6['name']);break;}}}}if(0x0==_0x248a33['length'])return null;const _0x238b4a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3e3525,'join');for(const _0xd5adac of this['getSuggestions']())if(_0xd5adac['author']['id']==_0x3764ee['id']&&'formatBlock'==_0xd5adac['type']&&_0xd5adac['data']['formatGroupId']==_0x55c92f['formatGroupId']&&_0xd5adac['subType']==_0x3e3525&&Ht(_0xd5adac,_0x33e485)&&(_0x238b4a(_0xd5adac['getRanges'](),_0x248a33)||_0x238b4a(_0x248a33,_0xd5adac['getRanges']()))){for(const _0xe3cb91 of _0x248a33)_0xd5adac['addRange'](_0xe3cb91);return _0xd5adac;}const _0x53f83c=_0x2905f1(),_0x4ee47c=_0x3764ee['id'],_0x636611='formatBlock:'+_0x3e3525,_0x2cabce=this['_setSuggestionData']({'id':_0x53f83c,'type':_0x636611,'data':_0x55c92f,'createdAt':new Date(),'authorId':_0x4ee47c,'attributes':_0x33e485});for(const _0x37ba25 of _0x248a33)this['_addSuggestionMarker'](_0x636611,_0x53f83c,_0x4ee47c,_0x37ba25,u['getMultiRangeId']());return _0x2cabce;}['markDeletion'](_0x2aec30,_0x10adc5=null,_0x8ccc92={}){if(_0x2aec30['isCollapsed'])return null;const _0x4e33be=this['editor']['plugins']['get']('Users')['me'],_0x37cf72=new _0x5df64f(_0x2aec30['start'],_0x2aec30['end']);for(const {suggestion:_0x40a5a0,meta:_0x82782c}of this['_findSuggestions'](_0x37cf72,'insertion'))if(_0x82782c['isOwn']&&!_0x82782c['isNextTo']){if(_0x40a5a0['isMultiRange']){const _0x428fe9=_0x40a5a0['getRanges']()['filter'](_0x26a6cb=>'$graveyard'!=_0x26a6cb['root']['rootName']);_0x428fe9['every'](_0x33d534=>_0x37cf72['containsRange'](_0x33d534,!0x0))&&_0x40a5a0['discard']();if(_0x428fe9['some'](_0x193052=>_0x193052['containsRange'](_0x37cf72,!0x0))){const _0x12f89f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x10adc5,'accept');return this['forceDefaultExecution'](()=>_0x12f89f([_0x37cf72],null,_0x8ccc92)),null;}}else{const _0x4929a5=_0x37cf72['getIntersection'](_0x40a5a0['getFirstRange']());null!==_0x4929a5&&_0x40a5a0['_onDiscard']([_0x4929a5],null,_0x8ccc92);}}if(_0x37cf72['detach'](),_0x37cf72['isCollapsed']||'$graveyard'==_0x37cf72['root']['rootName'])return null;let _0x4948c7=null,_0x87d1e=_0x37cf72['start'],_0x5aab6e=_0x37cf72['end'];const _0x1c4478=this['_findSuggestions'](_0x37cf72,'deletion');for(const {suggestion:_0x11fb0b,meta:_0x50279b}of _0x1c4478){const _0x3e8dae=this['_model']['createRange'](_0x87d1e,_0x5aab6e);if(_0x50279b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x50279b['containsRangeInObject']&&!_0x50279b['isInsideObject'])){if(_0x11fb0b['isMultiRange']){if(!Ht(_0x11fb0b,_0x8ccc92))continue;let _0x1d052c=!0x0;for(const _0x56b8fd of _0x11fb0b['getRanges']()){if(_0x56b8fd['containsRange'](_0x3e8dae,!0x0))return _0x11fb0b;_0x3e8dae['containsRange'](_0x56b8fd)||(_0x1d052c=!0x1);}_0x1d052c&&_0x11fb0b['discard']();}else{const _0x1bcce4=_0x11fb0b['getFirstRange']();if(_0x1bcce4['containsRange'](_0x3e8dae,!0x0))return _0x11fb0b;if(!Ht(_0x11fb0b,_0x8ccc92)){_0x3e8dae['containsRange'](_0x1bcce4)?_0x11fb0b['removeMarkers']():_0x1bcce4['containsPosition'](_0x87d1e)?_0x87d1e=_0x1bcce4['end']:_0x1bcce4['containsPosition'](_0x5aab6e)&&(_0x5aab6e=_0x1bcce4['start']);continue;}_0x87d1e=_0x87d1e['isBefore'](_0x1bcce4['start'])?_0x87d1e:_0x1bcce4['start'],_0x5aab6e=_0x5aab6e['isAfter'](_0x1bcce4['end'])?_0x5aab6e:_0x1bcce4['end'],_0x8ccc92=Object['assign']({},_0x11fb0b['attributes']),_0x4948c7?_0x1bcce4['start']['isBefore'](_0x4948c7['getFirstRange']()['start'])?(_0x4948c7['removeMarkers'](),_0x4948c7=_0x11fb0b):_0x11fb0b['removeMarkers']():_0x4948c7=_0x11fb0b;}}}if(_0x4948c7)return this['_setSuggestionRange'](_0x4948c7,this['_model']['createRange'](_0x87d1e,_0x5aab6e)),_0x4948c7;{const _0xbde0d=_0x2905f1(),_0x19af34=this['_model']['createRange'](_0x87d1e,_0x5aab6e),_0x37d771=_0x4e33be['id'],_0xb68980=_0x10adc5?'deletion:'+_0x10adc5:'deletion',_0x2dd5a8=this['_setSuggestionData']({'id':_0xbde0d,'type':_0xb68980,'createdAt':new Date(),'authorId':_0x37d771,'attributes':_0x8ccc92});return this['_addSuggestionMarker'](_0xb68980,_0xbde0d,_0x37d771,_0x19af34),_0x2dd5a8;}}['markMultiRangeDeletion'](_0x226cc2,_0x5ccd0a='multi',_0x3c2ccb={}){const _0x5902be=this['editor']['plugins']['get']('Users')['me'],_0x1e3802=_0x226cc2['map'](_0x44a13e=>new _0x5df64f(_0x44a13e['start'],_0x44a13e['end'])),_0x1047de=new Set();for(const {suggestion:_0x13d9a6,meta:_0x1f36c7}of this['_findSuggestions'](_0x1e3802,'insertion'))_0x1f36c7['isOwn']&&!_0x1f36c7['isNextTo']&&_0x1047de['add'](_0x13d9a6);for(const _0x1ff861 of _0x1047de)if(_0x1ff861['isMultiRange']){const _0x3cb0a8=_0x1ff861['getRanges']();(!_0x1ff861['attributes']||!_0x1ff861['attributes']['skipNestingCheck'])&&(_0x3cb0a8['every'](_0x5322d0=>_0x1e3802['some'](_0x4f6ffd=>_0x4f6ffd['containsRange'](_0x5322d0,!0x0)))&&_0x1ff861['discard']());if(_0x1e3802['every'](_0xc478fb=>_0x3cb0a8['some'](_0x17d05d=>_0x17d05d['containsRange'](_0xc478fb,!0x0)))){const _0x5b7bdb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ccd0a,'accept');return this['forceDefaultExecution'](()=>_0x5b7bdb(_0x226cc2,null,_0x3c2ccb)),null;}}else{const _0x2a8c8d=_0x1ff861['getFirstRange']();_0x1e3802['some'](_0x2ffd30=>_0x2ffd30['containsRange'](_0x2a8c8d,!0x0))&&_0x1ff861['discard']();if(_0x1e3802['every'](_0x19b006=>_0x2a8c8d['containsRange'](_0x19b006,!0x0))){const _0x1566ca=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ccd0a,'accept');return this['forceDefaultExecution'](()=>_0x1566ca(_0x1e3802,null,_0x3c2ccb)),null;}}const _0xd3d23c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ccd0a,'join');let _0x168f5f=null;for(const _0x566f79 of this['getSuggestions']())if(_0x566f79['author']['id']==_0x5902be['id']&&_0x566f79['isInContent']&&'deletion'==_0x566f79['type']&&_0x566f79['subType']==_0x5ccd0a&&Ht(_0x566f79,_0x3c2ccb)&&(_0xd3d23c(_0x566f79['getRanges'](),_0x1e3802)||_0xd3d23c(_0x1e3802,_0x566f79['getRanges']()))){if(_0x168f5f){if(_0x566f79['commentThread']&&_0x566f79['commentThread']['length'])continue;for(const _0x3d6eea of _0x566f79['getRanges']())_0x168f5f['isIntersectingWithRange'](_0x3d6eea)||_0x168f5f['addRange'](_0x3d6eea);_0x566f79['removeMarkers']();}else{_0x168f5f=_0x566f79;for(const _0x9aae3c of _0x1e3802)_0x566f79['isIntersectingWithRange'](_0x9aae3c)||_0x566f79['addRange'](_0x9aae3c);}}if(_0x168f5f)return _0x168f5f;_0x1047de['clear']();for(const {suggestion:_0x50cd8c,meta:_0x55c6f0}of this['_findSuggestions'](_0x1e3802,'deletion'))_0x55c6f0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x55c6f0['containsRangeInObject']&&!_0x55c6f0['isInsideObject'])&&Ht(_0x50cd8c,_0x3c2ccb)&&_0x1047de['add'](_0x50cd8c);for(const _0x432b85 of _0x1047de){const _0x5e482c=_0x432b85['getRanges']();if(!_0x3c2ccb||!_0x3c2ccb['skipNestingCheck']){if(_0x1e3802['every'](_0x1e8c53=>_0x5e482c['some'](_0x10e67b=>_0x10e67b['containsRange'](_0x1e8c53,!0x0))))return _0x432b85;}(!_0x432b85['attributes']||!_0x432b85['attributes']['skipNestingCheck'])&&(_0x5e482c['every'](_0x4c2dcc=>_0x1e3802['some'](_0x19d47c=>_0x19d47c['containsRange'](_0x4c2dcc,!0x0)))&&_0x432b85['discard']());}const _0x2911d5=_0x2905f1(),_0x3fc3a7=_0x5902be['id'],_0x42f164='deletion:'+_0x5ccd0a,_0x47f949=this['_setSuggestionData']({'id':_0x2911d5,'type':_0x42f164,'createdAt':new Date(),'authorId':_0x3fc3a7,'attributes':_0x3c2ccb});for(const _0xefab5e of _0x1e3802)_0xefab5e['detach'](),_0xefab5e['isCollapsed']||'$graveyard'==_0xefab5e['root']['rootName']||this['_addSuggestionMarker'](_0x42f164,_0x2911d5,_0x3fc3a7,_0xefab5e,u['getMultiRangeId']());return _0x47f949;}['markAttributeChange'](_0x43c54b,_0x9f4d65,_0x5e77ab,_0x134079,_0x9ef6b2){if(_0x43c54b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x32c0f3=this['editor']['plugins']['get']('Users')['me']['id'],_0x309403=Array['from'](this['_suggestions']['values']())['filter'](_0xe1b462=>'attribute'==_0xe1b462['type']&&_0xe1b462['data']['key']==_0x9f4d65&&_0xe1b462['isIntersectingWithRange'](_0x43c54b));if('default'===this['_trackFormatChanges']){const _0x16a683=this['_findSuggestions'](_0x43c54b,'insertion')['filter'](({meta:_0x36186a})=>_0x36186a['isOwn']&&!_0x36186a['isInsideObject']&&!_0x36186a['isNextTo'])['map'](({suggestion:_0x58d93b})=>_0x58d93b);_0x309403['unshift'](..._0x16a683);}const _0x1ee6ab=new Map([[_0x43c54b,_0x5e77ab]]);for(const _0x3792e1 of _0x309403){const _0x4c4d0c='attribute'==_0x3792e1['type']?_0x3792e1['data']['oldValue']:void 0x0,_0x52ece7=_0x3792e1['getFirstRange'](),_0x107606=Array['from'](_0x1ee6ab['keys']())['find'](_0x293823=>_0x293823['isIntersecting'](_0x52ece7));if(!_0x107606)continue;const _0x885f4=_0x107606['getDifference'](_0x52ece7);this['_isBlockAttribute'](_0x9f4d65)&&'insertion'==_0x3792e1['type']&&0x0!=_0x885f4['length']||(_0x1ee6ab['delete'](_0x107606),_0x885f4['forEach'](_0x109e20=>{_0x1ee6ab['set'](_0x109e20,_0x5e77ab);}),'insertion'!=_0x3792e1['type']&&_0x4c4d0c!=_0x134079&&_0x1ee6ab['set'](_0x107606['getIntersection'](_0x52ece7),_0x4c4d0c));}const _0x2c0e28=[];for(const [_0x540e8f,_0x4ca086]of _0x1ee6ab){const _0x3af76c=_0x2905f1(),_0x29d246={'key':_0x9f4d65,'oldValue':_0x4ca086,'newValue':_0x134079};_0x9f4d65['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':_0x9f4d65});const _0x13eab7=('attribute:'+(_0x9f4d65+'|'+Ut({'newValue':_0x134079})))['substring'](0x0,0x3c),_0x36bfb3=this['_setSuggestionData']({'id':_0x3af76c,'type':_0x13eab7,'data':_0x29d246,'createdAt':new Date(),'authorId':_0x32c0f3,'attributes':_0x9ef6b2});_0x2c0e28['push'](_0x36bfb3),this['_addSuggestionMarker'](_0x13eab7,_0x3af76c,_0x32c0f3,_0x540e8f);}return _0x2c0e28;}['enableDefaultAttributesIntegration'](_0x5b465f){this['enableCommand'](_0x5b465f,(_0x444dab,..._0xe0ca12)=>{this['_recordAttributeChanges'](()=>{_0x444dab(..._0xe0ca12);});});}['registerBlockAttribute'](_0x50014f){this['_blockAttributeKeys']['add'](_0x50014f);}['registerInlineAttribute'](_0x49d5de){this['_inlineAttributeKeys']['add'](_0x49d5de);}['_getAttributeKey'](_0x21ac8a){return'attribute'==_0x21ac8a['type']?_0x21ac8a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x402f6b,_0x1a7544){const _0x375b6b=_0x402f6b['getFirstMarker']();this['_model']['change'](_0x2f1094=>{_0x2f1094['updateMarker'](_0x375b6b,{'range':_0x1a7544});});}['_addThreadToSuggestion'](_0x40e3d7){const _0x59fb05=_0x40e3d7['id'],_0x349672=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x59fb05)||this['_commentsRepository']['addCommentThread']({'channelId':_0x349672,'threadId':_0x59fb05,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x37cc6f=this['_commentsRepository']['getCommentThread'](_0x59fb05);_0x37cc6f['unbind']('isRemovable'),_0x37cc6f['isRemovable']=!0x1,_0x40e3d7['commentThread']=_0x37cc6f;}['_checkSuggestionCorrectness'](_0x141dcf,_0x33519,_0x28997a,_0x5565ba){if(_0x141dcf['type']!=_0x33519||_0x141dcf['subType']!=_0x28997a||_0x141dcf['creator']['id']!=_0x5565ba)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x14dd54('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x374737,_0x3ca1ad){const _0x3bbcac=_0x374737['getFirstRange']();if(_0x3ca1ad['isEqual'](_0x3bbcac))_0x374737['removeMarkers']();else{if(_0x3bbcac['containsRange'](_0x3ca1ad)){const _0x4de6a1=this['_model']['createPositionAt'](_0x3ca1ad['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x374737,this['_model']['createRange'](_0x3bbcac['start'],_0x4de6a1));const _0x33c87e=_0x2905f1(),_0xe2673d=_0x374737['creator']['id'],_0x3965d6=_0x374737['type']+':'+_0x374737['subType'];this['_setSuggestionData']({'id':_0x33c87e,'type':_0x3965d6,'createdAt':new Date(),'authorId':_0xe2673d,'data':_0x374737['data'],'attributes':_0x374737['attributes']});const _0x1edc54=this['_model']['createPositionAt'](_0x3ca1ad['end']['parent'],'after'),_0x1b5785=this['_model']['createRange'](_0x1edc54,_0x3bbcac['end']);this['_addSuggestionMarker'](_0x3965d6,_0x33c87e,_0xe2673d,_0x1b5785);}else{if(_0x3bbcac['containsPosition'](_0x3ca1ad['start'])){const _0x3206fa=this['_model']['createPositionAt'](_0x3ca1ad['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x374737,this['_model']['createRange'](_0x3bbcac['start'],_0x3206fa));}else{const _0x161eae=this['_model']['createPositionAt'](_0x3ca1ad['end']['parent'],'after');this['_setSuggestionRange'](_0x374737,this['_model']['createRange'](_0x161eae,_0x3bbcac['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x49d69f){for(const {suggestion:_0x109bba,meta:_0x1560c6}of this['_findSuggestions'](_0x49d69f,'insertion')){if(!_0x1560c6['isOwn'])continue;const _0x1eb5db=_0x109bba['getRanges']();for(const _0x2c14ca of _0x1eb5db)if(!_0x49d69f['getDifference'](_0x2c14ca)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x403548){const _0x2f4b5f=this['editor']['plugins']['get']('Users')['getUser'](_0x403548);if(!_0x2f4b5f)throw new _0x14dd54('track-changes-user-not-found',this);return _0x2f4b5f;}['_getExternalAuthor'](_0x12cbef){const _0x487cdf=this['editor']['plugins']['get']('Users'),_0x10066c=_0xd7b463('external:'+_0x12cbef),_0x3db30e=_0x487cdf['getUser'](_0x10066c);return _0x3db30e||_0x487cdf['addUser']({'id':_0x10066c,'name':_0x12cbef});}['_createSuggestion'](_0xc696a,_0x1e943f,_0x1d36d6,_0x690097,_0x2b4b72){const _0x79627c=this['_getAuthorFromId'](_0x690097),_0x115478=this['_suggestionFactory']['buildSuggestion'](_0xc696a,_0x1e943f,_0x1d36d6,_0x79627c,_0x2b4b72,_0x5202e3=>{this['_updateSuggestionData'](_0x1d36d6,{'attributes':_0x5202e3});const _0x412185=this['getSuggestion'](_0x1d36d6);this['_joinWithAdjacentSuggestions'](new Set([_0x412185])),this['_refreshSuggestionsChain'](new Set([_0x412185]));});return this['listenTo'](_0x115478,'accept',()=>{this['_updateSuggestionData'](_0x1d36d6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x115478,'discard',()=>{this['_updateSuggestionData'](_0x1d36d6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1d36d6,_0x115478),this['_suggestionState']['set'](_0x115478,'notReady'),_0x115478;}['_splitMarkerName'](_0x35e87b){const _0x5b7916=_0x35e87b['split'](':');return{'group':_0x5b7916[0x0],'type':_0x5b7916[0x1],'subType':_0x5b7916['length']>=0x5?_0x5b7916[0x2]:null,'id':_0x5b7916['length']<0x5?_0x5b7916[0x2]:_0x5b7916[0x3],'authorId':_0x5b7916['length']<0x5?_0x5b7916[0x3]:_0x5b7916[0x4],'markerCount':0x6==_0x5b7916['length']?_0x5b7916[0x5]:null};}['_breakSuggestionMarker'](_0x15ad79,_0x1edbab,_0x25f940){const _0xf0cdbc=_0x15ad79['getFirstRange'](),_0x5e5b26=_0xf0cdbc['start'],_0x4efb14=_0xf0cdbc['end'];this['_setSuggestionRange'](_0x15ad79,this['_model']['createRange'](_0x5e5b26,_0x1edbab));const _0x1cd9c2=_0x2905f1(),_0xd28f9c=_0x15ad79['creator']['id'],_0x1352ab=_0x15ad79['type']+(_0x15ad79['subType']?':'+_0x15ad79['subType']:'');this['_setSuggestionData']({'id':_0x1cd9c2,'type':_0x1352ab,'createdAt':new Date(),'authorId':_0xd28f9c,'originalSuggestionId':_0x15ad79['id'],'attributes':_0x15ad79['attributes'],'data':_0x15ad79['data']});const _0xe53767=this['_getAttributeKey'](_0x15ad79);('formatBlock'==_0x15ad79['type']||_0xe53767&&this['_isBlockAttribute'](_0xe53767))&&(_0x25f940=this['_model']['createPositionBefore'](_0x25f940['parent'])),this['_addSuggestionMarker'](_0x1352ab,_0x1cd9c2,_0xd28f9c,this['_model']['createRange'](_0x25f940,_0x4efb14));}['_findSuggestions'](_0x3d189e,_0x333ddc=null){const _0x26b10f=[],_0x492af3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3d189e)||(_0x3d189e=[_0x3d189e]);for(const _0x2fcdef of this['getSuggestions']()){if(!_0x2fcdef['isInContent'])continue;if(_0x333ddc&&_0x2fcdef['type']!=_0x333ddc)continue;let _0x2263c9=!0x1;for(const _0x67b288 of _0x2fcdef['getRanges']()){for(const _0x4c321f of _0x3d189e){const _0x38cacf=_0x4c321f['start']['isEqual'](_0x67b288['end'])||_0x4c321f['end']['isEqual'](_0x67b288['start']);if(_0x38cacf||_0x4c321f['getIntersection'](_0x67b288)){const _0x26e27d=_0x4c321f['containsRange'](_0x67b288)&&Tt(this['_model']['schema'],_0x67b288['start'],_0x4c321f),_0x2e54ca=_0x67b288['containsRange'](_0x4c321f)&&Tt(this['_model']['schema'],_0x4c321f['start'],_0x67b288);_0x26b10f['push']({'suggestion':_0x2fcdef,'meta':{'isOwn':_0x492af3==_0x2fcdef['author'],'isNextTo':_0x38cacf,'isInsideObject':_0x26e27d,'containsRangeInObject':_0x2e54ca}}),_0x2263c9=!0x0;break;}}if(_0x2263c9)break;}}return _0x26b10f;}['_addSuggestionMarker'](_0x1cb448,_0x5a4146,_0x13dc25,_0x50d8df,_0x478c30){this['_model']['change'](_0x33bbb5=>{let _0x1535ba='suggestion:'+_0x1cb448+':'+_0x5a4146+':'+_0x13dc25;_0x478c30&&(_0x1535ba=_0x1535ba+':'+_0x478c30),_0x33bbb5['addMarker'](_0x1535ba,{'range':_0x50d8df,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xbf5e37){const _0x4894a1=_0xbf5e37['previous'],_0x58781f=_0xbf5e37['next'];_0xbf5e37['previous']=null,_0xbf5e37['next']=null,null!=_0x4894a1&&_0x4894a1['next']==_0xbf5e37&&(_0x4894a1['next']=_0x58781f),null!=_0x58781f&&_0x58781f['previous']==_0xbf5e37&&(_0x58781f['previous']=_0x4894a1),'ready'==this['_suggestionState']['get'](_0xbf5e37)&&(this['_suggestionState']['set'](_0xbf5e37,'removed'),this['fire']('suggestionUnloaded',_0xbf5e37,_0x4894a1,_0x58781f));}['_setSuggestionData'](_0x434804){const _0x3fce32=_0x434804['id'],_0x3b60ef=this['addSuggestionData'](_0x434804);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x42a913=this['editor']['plugins']['get']('PendingActions'),_0xbe6214=_0x3b60ef['hasComments'],_0x1590b3=_0x3b60ef['subType']?_0x3b60ef['type']+':'+_0x3b60ef['subType']:_0x3b60ef['type'],_0x3d0bce=this['editor']['locale'],_0x3f2473=_0x42a913['add'](o(_0x3d0bce,'PENDING_ACTION_SUGGESTION')),_0x23f3f8={'id':_0x3fce32,'type':_0x1590b3,'hasComments':_0xbe6214,'data':_0x434804['data']||null,'originalSuggestionId':_0x434804['originalSuggestionId']||null,'attributes':_0x3b60ef['attributes']};this['_adapter']['addSuggestion'](_0x23f3f8)['then'](_0x134532=>{_0x3b60ef['_saved']=!0x0,_0x42a913['remove'](_0x3f2473),_0x134532&&_0x134532['createdAt']&&(this['_suggestions']['get'](_0x3fce32)['createdAt']=_0x134532['createdAt']);})['catch'](_0x3990f9=>{throw _0x5d5e63('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3b60ef['discard']();}),_0x3b60ef['stopListening'](),this['_suggestions']['delete'](_0x3b60ef['id']),this['_suggestionState']['delete'](_0x3b60ef),_0x3990f9;});}return _0x3b60ef;}['_isBlockAttribute'](_0x4ae983){return this['_blockAttributeKeys']['has'](_0x4ae983);}['_updateSuggestionData'](_0x4dedd0,_0xc973d){const _0x126081=this['editor']['plugins']['get']('PendingActions'),_0x5d9f86=this['getSuggestion'](_0x4dedd0);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5d9f86['_saved']){const _0x436cdb=_0x126081['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4dedd0,_0xc973d)['then'](()=>{_0x126081['remove'](_0x436cdb);});}else _0x5d9f86['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4dedd0,_0xc973d);});}}['_getSuggestionData'](_0x574371){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x14dd54('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x574371);}['_handleNewSuggestionMarker'](_0x245dd3){const {id:_0x47d6c6,type:_0x634e73,subType:_0x2d6216,authorId:_0x30bd81}=this['_splitMarkerName'](_0x245dd3),_0x427038=this['_suggestions']['get'](_0x47d6c6)||this['_createSuggestion'](_0x634e73,_0x2d6216,_0x47d6c6,_0x30bd81,{});switch(this['_checkSuggestionCorrectness'](_0x427038,_0x634e73,_0x2d6216,_0x30bd81),this['_suggestionState']['get'](_0x427038)){case'notReady':this['_getSuggestionData'](_0x47d6c6)['then'](_0x225624=>{let _0x2fbcc3=Promise['resolve']();_0x225624['hasComments']&&(_0x2fbcc3=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x47d6c6})),_0x2fbcc3['then'](()=>{this['addSuggestionData'](_0x225624)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x427038,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x47d6c6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x427038,'ready'),this['fire']('suggestionLoaded',_0x427038);break;case'ready':this['fire']('suggestionChanged',_0x427038);}return _0x427038['addMarkerName'](_0x245dd3),_0x427038;}['_refreshSuggestionsChain'](_0x36f810){const _0x4bc1fb=Array['from'](_0x36f810),_0x2f6f7f=_0x4bc1fb['filter'](_0x28224d=>'attribute'==_0x28224d['type']);this['_refreshAttributeSuggestionsChain'](_0x2f6f7f);const _0x13ee93=_0x4bc1fb['filter'](_0x20a15b=>!_0x20a15b['isMultiRange']&&'attribute'!=_0x20a15b['type']),_0x1cca72=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x122c5d=>!_0x122c5d['isMultiRange']&&'attribute'!=_0x122c5d['type']),_0x2549d9=_0x1cca72['filter'](_0x4ffd31=>!_0x36f810['has'](_0x4ffd31)),_0x36a8aa=new Map(_0x1cca72['map'](_0x1670b8=>[_0x1670b8,this['_suggestionFactory']['getSuggestionCallback'](_0x1670b8['type'],_0x1670b8['subType'],'chain')])),_0x4c5020=new Map(_0x1cca72['map'](_0x54154d=>[_0x54154d,_0x54154d['getFirstRange']()])),_0x335341=new Set(),_0x2f42c7=new Set();for(let _0x2efea8=0x0;_0x2efea8<_0x13ee93['length'];_0x2efea8++)_0x57dca3(_0x13ee93[_0x2efea8],_0x13ee93,_0x2efea8+0x1);for(let _0x2dd0ab=0x0;_0x2dd0ab<_0x13ee93['length'];_0x2dd0ab++)_0x57dca3(_0x13ee93[_0x2dd0ab],_0x2549d9,0x0);const _0x4297e3=new Set();for(let _0x1b5c61=0x0;_0x1b5c61<_0x13ee93['length'];_0x1b5c61++){const _0x511a2e=_0x13ee93[_0x1b5c61];!_0x2f42c7['has'](_0x511a2e)&&_0x511a2e['previous']&&(_0x4297e3['add'](_0x511a2e['previous']),_0x511a2e['previous']['next']===_0x511a2e&&(_0x511a2e['previous']['next']=null),_0x511a2e['previous']=null),!_0x335341['has'](_0x511a2e)&&_0x511a2e['next']&&(_0x4297e3['add'](_0x511a2e['next']),_0x511a2e['next']['previous']===_0x511a2e&&(_0x511a2e['next']['previous']=null),_0x511a2e['next']=null);}function _0x57dca3(_0x45433b,_0x2f848c,_0x1e2125){for(let _0x1e2682=_0x1e2125;_0x1e2682<_0x2f848c['length'];_0x1e2682++){const _0x58027f=_0x56a6e7(_0x45433b,_0x2f848c[_0x1e2682]);_0x58027f&&(_0x58027f[0x0]['next']=_0x58027f[0x1],_0x58027f[0x1]['previous']=_0x58027f[0x0],_0x335341['add'](_0x58027f[0x0]),_0x2f42c7['add'](_0x58027f[0x1]));}}function _0x56a6e7(_0x176c5a,_0x12c6c4){if(_0x176c5a['author']['id']!==_0x12c6c4['author']['id'])return null;const _0x2a9e5e=_0x36a8aa['get'](_0x176c5a)(_0x176c5a,_0x12c6c4,_0x4c5020['get'](_0x176c5a),_0x4c5020['get'](_0x12c6c4));if(!_0x2a9e5e)return null;return _0x36a8aa['get'](_0x12c6c4)(_0x176c5a,_0x12c6c4,_0x4c5020['get'](_0x176c5a),_0x4c5020['get'](_0x12c6c4))?_0x2a9e5e[0x1]['commentThread']&&_0x2a9e5e[0x1]['commentThread']['length']?null:_0x2a9e5e:null;}_0x4297e3['size']&&this['_refreshSuggestionsChain'](_0x4297e3);}['_refreshAttributeSuggestionsChain'](_0x1b73a9){if(0x0==_0x1b73a9['length'])return;const _0x270e3c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28603b=>'attribute'==_0x28603b['type']&&_0x28603b['_isDataLoaded']),_0x3ef4d4=[],_0x31130d=new Map();for(const _0x5441a9 of _0x270e3c){const _0x1663a7=_0xd7b463(_0x5441a9['attributes']);_0x31130d['has'](_0x1663a7)||(_0x31130d['set'](_0x1663a7,_0x3ef4d4['length']),_0x3ef4d4['push']([]));const _0x1da51d=_0x31130d['get'](_0x1663a7);_0x3ef4d4[_0x1da51d]['push'](_0x5441a9);}!(function(){_0x3ef4d4['sort']((_0x2cdd7d,_0x277edf)=>{const _0x46fe5a=_0x2cdd7d[0x0]['createdAt'],_0x2b51ed=_0x277edf[0x0]['createdAt'];return _0x46fe5a==_0x2b51ed?_0x2cdd7d[0x0]['attributes']['groupId']<_0x277edf[0x0]['attributes']['groupId']?-0x1:0x1:_0x46fe5a<_0x2b51ed?-0x1:0x1;});for(const _0x56b198 of _0x3ef4d4)_0x56b198['sort']((_0x258f2f,_0x23a516)=>_0x258f2f['id']<_0x23a516['id']?-0x1:0x1);}());for(let _0x17f123=0x0;_0x17f123<_0x3ef4d4['length'];_0x17f123++){if(0x0==_0x3ef4d4[_0x17f123]['length'])continue;const _0x517456=[];for(let _0x3b8603=_0x17f123+0x1;_0x3b8603<_0x3ef4d4['length'];_0x3b8603++)0x0!=_0x3ef4d4[_0x3b8603]['length']&&_0x182672(_0x3ef4d4[_0x17f123],_0x3ef4d4[_0x3b8603])&&_0x517456['push'](_0x3b8603);for(const _0xe722ad of _0x517456)_0x3ef4d4[_0x17f123]=_0x3ef4d4[_0x17f123]['concat'](_0x3ef4d4[_0xe722ad]),_0x3ef4d4[_0xe722ad]=[];}for(const _0x2f05cd of _0x3ef4d4)for(let _0xc1169d=0x0;_0xc1169d<_0x2f05cd['length'];_0xc1169d++)_0x2f05cd[_0xc1169d]['next']=_0x2f05cd[_0xc1169d+0x1]||null;for(const _0x42f4fb of _0x3ef4d4)for(let _0x293958=0x0;_0x293958<_0x42f4fb['length'];_0x293958++)_0x42f4fb[_0x293958]['previous']=_0x42f4fb[_0x293958-0x1]||null;function _0x182672(_0x31389a,_0x464840){if(_0x31389a[0x0]['attributes']['groupId']!==_0x464840[0x0]['attributes']['groupId']&&_0x31389a[0x0]['author']!==_0x464840[0x0]['author'])return!0x1;if(!function(_0x24ec77,_0x1c4e19){if(!_0x24ec77['hasComments']&&!_0x1c4e19['hasComments'])return!0x0;if(_0x24ec77['hasComments']&&_0x1c4e19['hasComments'])return!0x1;if(_0x24ec77['hasComments']&&_0x1c4e19['createdAt']<_0x24ec77['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1c4e19['hasComments']&&_0x24ec77['createdAt']<_0x1c4e19['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x31389a[0x0],_0x464840[0x0]))return!0x1;const _0x54447a=xt(_0x31389a[0x0]['attributes'],'groupId'),_0x36540a=xt(_0x464840[0x0]['attributes'],'groupId');if(!_0x718abf(_0x54447a,_0x36540a))return!0x1;return!!_0x31389a['every'](_0x2aff0e=>_0x464840['some'](_0x98b397=>_0x2aff0e['getFirstRange']()['isEqual'](_0x98b397['getFirstRange']())))&&_0x464840['every'](_0x5acce4=>_0x31389a['some'](_0x1a94fb=>_0x5acce4['getFirstRange']()['isEqual'](_0x1a94fb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x117f49){const _0x168480=Array['from'](_0x117f49),_0x197b97=this['getSuggestions']({'skipNotAttached':!0x0}),_0x27321f=_0x197b97['filter'](_0x4d3b90=>!_0x117f49['has'](_0x4d3b90)),_0x17dc55=new Map(_0x168480['map'](_0x4adc67=>[_0x4adc67,this['_suggestionFactory']['getSuggestionCallback'](_0x4adc67['type'],_0x4adc67['subType'],'join')])),_0x3d9c6c=new Map(_0x197b97['map'](_0x5e3638=>[_0x5e3638,_0x5e3638['getRanges']()]));for(let _0x55a525=0x0;_0x55a525<_0x168480['length'];_0x55a525++){if(_0x5364c8(this,_0x168480[_0x55a525],_0x168480,_0x55a525+0x1))return!0x0;}for(let _0x3c78f3=0x0;_0x3c78f3<_0x168480['length'];_0x3c78f3++){if(_0x5364c8(this,_0x168480[_0x3c78f3],_0x27321f,0x0))return!0x0;}return!0x1;function _0x5364c8(_0x19c52b,_0x30e276,_0x2257fd,_0x3a5188){for(let _0x4e14ca=_0x3a5188;_0x4e14ca<_0x2257fd['length'];_0x4e14ca++){const _0x482b2b=_0x2257fd[_0x4e14ca];if(_0x482b2b['type']!==_0x30e276['type']||_0x482b2b['author']['id']!==_0x30e276['author']['id']||_0x482b2b['subType']!==_0x30e276['subType'])continue;if(!Lt(_0x30e276,_0x482b2b,['groupId']))continue;if('attribute'==_0x30e276['type']&&_0x30e276['data']['oldValue']!=_0x482b2b['data']['oldValue'])continue;if('attribute'==_0x30e276['type']&&_0x19c52b['_isBlockAttribute'](_0x30e276['data']['key']))continue;if('formatBlock'==_0x30e276['type']){const _0x4cab8c=_0x19c52b['editor']['model'],_0x356336=_0x30e276['getContainedElement']();if(_0x356336&&(_0x4cab8c['schema']['isObject'](_0x356336)||_0x4cab8c['schema']['isLimit'](_0x356336)))continue;}const _0x5ecf7c=_0x17dc55['get'](_0x30e276),_0x1e5834=_0x3d9c6c['get'](_0x30e276),_0x17dcd9=_0x3d9c6c['get'](_0x482b2b),_0x88052=_0x30e276['commentThread']&&_0x30e276['commentThread']['length'],_0x5d9251=_0x482b2b['commentThread']&&_0x482b2b['commentThread']['length'];if(!_0x88052&&_0x5ecf7c(_0x17dcd9,_0x1e5834))return _0x19c52b['_joinSuggestions'](_0x482b2b,_0x30e276),_0x3d9c6c['delete'](_0x30e276),!0x0;if(!_0x5d9251&&_0x5ecf7c(_0x1e5834,_0x17dcd9))return _0x19c52b['_joinSuggestions'](_0x30e276,_0x482b2b),_0x3d9c6c['delete'](_0x482b2b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x515cf0,_0x15ce54){if(_0x515cf0['isMultiRange']){for(const _0x37b983 of _0x15ce54['getRanges']())_0x515cf0['addRange'](_0x37b983);}else{const _0x23ef0b=_0x15ce54['getFirstRange']()['end'];this['_setSuggestionRange'](_0x515cf0,this['_model']['createRange'](_0x515cf0['getFirstRange']()['start'],_0x23ef0b));}_0x15ce54['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4040e2,_0x3f6c59){const _0x4f0faa=_0x4040e2['startsWith']('format')||_0x4040e2['startsWith']('attribute')?'FORMATTING':_0x4040e2['toUpperCase']();return o(this['editor']['locale'],_0x3f6c59+'_'+_0x4f0faa+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4afb46=this['editor'];if(!_0x4afb46['ui'])return;const {ariaLiveAnnouncer:_0x511f72}=_0x4afb46['ui'];_0x2606e7(this['_model'],({left:_0x4183d1,entered:_0xeae28})=>{for(const _0x488438 of _0x4183d1){const {group:_0x3caef9,type:_0x66843e}=this['_splitMarkerName'](_0x488438['name']);if('suggestion'===_0x3caef9){_0x511f72['announce'](this['_getMarkerAnnouncementText'](_0x66843e,'LEAVE'));break;}}for(const _0x29d553 of _0xeae28){const {group:_0x213309,type:_0x55d3eb}=this['_splitMarkerName'](_0x29d553['name']);if('suggestion'===_0x213309){_0x511f72['announce'](this['_getMarkerAnnouncementText'](_0x55d3eb,'ENTER'));break;}}});}['_processAttributeChanges'](_0x11e1f0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1f1226=this['editor'],_0x41d55e=_0x1f1226['model']['document']['differ']['getChanges']();if(0x0==_0x41d55e['length'])return!0x1;const _0x10ba34=[],_0x384dd8=_0x41d55e['filter'](_0x41c4eb=>'attribute'==_0x41c4eb['type']),_0x1ed34e=_0x41d55e['filter'](_0x2ab3c3=>'insert'==_0x2ab3c3['type']&&'$text'!=_0x2ab3c3['name']),_0x5db823=_0x41d55e['filter'](_0x50b1a9=>'remove'==_0x50b1a9['type']&&'$text'!=_0x50b1a9['name']);for(const _0x2464c1 of _0x384dd8)_0x10ba34['push']({'key':_0x2464c1['attributeKey'],'newValue':_0x2464c1['attributeNewValue'],'oldValue':_0x2464c1['attributeOldValue'],'range':Gt(_0x2464c1['range'],_0x1f1226['model'])});for(const _0x33ca23 of _0x1ed34e){const _0x56aa84=_0x5db823['find'](_0x3c122b=>_0x3c122b['position']['isEqual'](_0x33ca23['position']));_0x56aa84&&_0x10ba34['push']({'key':m,'newValue':_0x33ca23['name'],'oldValue':_0x56aa84['name'],'range':_0x1f1226['model']['createRangeOn'](_0x33ca23['position']['nodeAfter'])});}return 0x0!=_0x10ba34['length']&&this['_reduceExistingSuggestions'](_0x11e1f0,_0x10ba34);}['_processAttributeSuggestions'](_0x47b5dc){let _0x3d4cb6=!0x1;const _0x11c231=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xae3b47=>_0xae3b47['data']['newRange']&&_0xae3b47['name']['startsWith']('suggestion:attribute:'));for(const _0x21355e of _0x11c231){const {subType:_0x40127c,id:_0x23bd23}=this['_splitMarkerName'](_0x21355e['name']),_0x177a6f=_0x40127c['split']('|')[0x0];for(const _0x5eb086 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5eb086['id']!=_0x23bd23&&'attribute'==_0x5eb086['type']&&_0x5eb086['data']&&_0x5eb086['data']['key']==_0x177a6f&&_0x5eb086['getFirstRange']()['isIntersecting'](_0x21355e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5eb086,_0x21355e['data']['newRange'],_0x47b5dc),_0x3d4cb6=!0x0);}return _0x3d4cb6;}['_recordAttributeChanges'](_0x165fac){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x165fac();}['_isRegisteredAttribute'](_0x1fd2fc){const _0x30417a=this['_isBlockAttribute'](_0x1fd2fc),_0x3f6b06=this['_inlineAttributeKeys']['has'](_0x1fd2fc);return _0x30417a||_0x3f6b06;}['_reduceExistingSuggestions'](_0x190b46,_0x2b3913){if(0x0==_0x2b3913['length'])return!0x1;let _0x7fc4a7=!0x1;for(const _0x17614b of _0x2b3913){const _0x4013dd=this['_findSuggestions'](_0x17614b['range'],'attribute')['filter'](_0x5daa76=>!_0x5daa76['meta']['isNextTo'])['map'](_0x78e13b=>_0x78e13b['suggestion']),_0x129bb0=_0xd7b463({'newValue':_0x17614b['newValue']});_0x4013dd['filter'](_0x3282de=>{const [_0x1ec247,_0x1c7731]=_0x3282de['subType']['split']('|');return _0x1ec247==_0x17614b['key']&&_0x1c7731!=_0x129bb0;})['forEach'](_0x52898d=>{this['_reduceSuggestionAttributeRange'](_0x52898d,_0x17614b['range'],_0x190b46),_0x7fc4a7=!0x0;});}return _0x7fc4a7;}['_reduceSuggestionAttributeRange'](_0x1d9b6a,_0x5e74d8,_0x47f226){const _0x5c9c11=_0x1d9b6a['getFirstRange']()['getDifference'](_0x5e74d8);0x0!==_0x5c9c11['length']?0x1!==_0x5c9c11['length']?this['_breakSuggestionMarker'](_0x1d9b6a,_0x5e74d8['start'],_0x5e74d8['end']):this['_setSuggestionRange'](_0x1d9b6a,_0x5c9c11[0x0]):_0x47f226['removeMarker'](_0x1d9b6a['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2ee0cd){this['_editor']=_0x2ee0cd,this['_model']=_0x2ee0cd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2b8806,_0x148422,_0x2f0d24,_0x78944b,_0xa3fb30,_0x51fb79){return new u(this['_model'],{'type':_0x2b8806,'subType':_0x148422,'id':_0x2f0d24,'author':_0x78944b,'creator':_0x78944b,'attributes':_0xa3fb30,'onAttributesChange':_0x51fb79,'onAccept':(..._0x57fef5)=>this['getSuggestionCallback'](_0x2b8806,_0x148422,'accept')(..._0x57fef5),'onDiscard':(..._0x4b96df)=>this['getSuggestionCallback'](_0x2b8806,_0x148422,'discard')(..._0x4b96df)});}['registerCustomCallback'](_0x2122a6,_0x3725a1,_0x14943d,_0x23dfe4){const _0x2a1139=_0x2122a6+':'+_0x3725a1+':'+_0x14943d;this['_customCallbacks']['set'](_0x2a1139,_0x23dfe4);}['getSuggestionCallback'](_0x390ab9,_0x218971,_0x2b3579){const _0x4955da=_0x390ab9+':'+_0x218971+':'+_0x2b3579;return this['_customCallbacks']['get'](_0x4955da)||this['_defaultCallbacks']['get'](_0x390ab9+':'+_0x2b3579);}['_registerDefaultCallbacks'](){const _0x4da83c=()=>!0x1,_0x49d7c0=_0x5a98c6=>{_0x5a98c6['sort']((_0x4cc355,_0x222916)=>_0x4cc355['start']['isBefore'](_0x222916['start'])?0x1:-0x1),this['_model']['change'](_0x1ff476=>{for(const _0x39aa06 of _0x5a98c6){let _0x49d6e3;_0x49d6e3=_0x39aa06['end']['isAtEnd']&&_0x39aa06['end']['parent']==_0x39aa06['start']['nodeAfter']?_0x1ff476['createSelection'](_0x39aa06['start']['nodeAfter'],'on'):_0x1ff476['createSelection'](_0x39aa06),this['_model']['deleteContent'](_0x49d6e3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x47cc4a=(_0x3a22fe,_0x34f0f6)=>{_0x34f0f6&&this['_model']['change'](_0x1d3edf=>{const {commandName:_0x16e7d6,commandParams:_0x2bfd13=[]}=_0x34f0f6,_0x2ae31b=_0x3a22fe['map'](_0x1a0ea9=>(Et(_0x1a0ea9)&&(_0x1a0ea9=this['_model']['createRange'](_0x1a0ea9['end'])),_0x1a0ea9))['filter'](_0x4a5ffa=>'$graveyard'!==_0x4a5ffa['root']['rootName']);if(_0x2ae31b['length']<0x1)return;const _0x40f4d7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x65deff=>_0x5df64f['fromRange'](_0x65deff));_0x1d3edf['setSelection'](_0x2ae31b);for(const _0x4c4cec of this['_editor']['commands']['commands']())_0x4c4cec['refresh']();_0x2bfd13['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x16e7d6,..._0x2bfd13);const _0x2297c7=_0x40f4d7['filter'](_0x1c97dc=>'$graveyard'!=_0x1c97dc['root']['rootName']);_0x2297c7['length']>0x0&&_0x1d3edf['setSelection'](_0x2297c7);for(const _0x546815 of _0x40f4d7)_0x546815['detach']();});},_0x436d92=(_0x309a5c,_0x56a89d)=>0x1==_0x309a5c['length']&&0x1==_0x56a89d['length']&&_0x309a5c[0x0]['end']['isEqual'](_0x56a89d[0x0]['start']),_0x1cc231=(_0x9608d8,_0x4a7c35,_0x24dbd7,_0x2b0d2d)=>Pt(_0x9608d8,_0x4a7c35,_0x24dbd7,_0x2b0d2d,this['_model'])?[_0x9608d8,_0x4a7c35]:Pt(_0x4a7c35,_0x9608d8,_0x2b0d2d,_0x24dbd7,this['_model'])?[_0x4a7c35,_0x9608d8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4da83c),this['_defaultCallbacks']['set']('insertion:discard',_0x49d7c0),this['_defaultCallbacks']['set']('insertion:join',_0x436d92),this['_defaultCallbacks']['set']('insertion:chain',_0x1cc231),this['_defaultCallbacks']['set']('deletion:accept',_0x49d7c0),this['_defaultCallbacks']['set']('deletion:discard',_0x4da83c),this['_defaultCallbacks']['set']('deletion:join',_0x436d92),this['_defaultCallbacks']['set']('deletion:chain',_0x1cc231),this['_defaultCallbacks']['set']('formatInline:accept',_0x47cc4a),this['_defaultCallbacks']['set']('formatInline:discard',_0x4da83c),this['_defaultCallbacks']['set']('formatInline:join',_0x436d92),this['_defaultCallbacks']['set']('formatInline:chain',_0x4da83c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x47cc4a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4da83c),this['_defaultCallbacks']['set']('formatBlock:join',_0x436d92),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4da83c),this['_defaultCallbacks']['set']('attribute:accept',_0x4da83c),this['_defaultCallbacks']['set']('attribute:discard',(_0xdb2567,_0x1cca5b)=>{if(!_0x1cca5b)return;const _0x213c4e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x604307=>{if(_0x1cca5b['key']==m)for(const _0x224d7d of _0xdb2567){const _0x34f597=_0x224d7d['start']['nodeAfter'],_0x402bd3=_0x1cca5b['oldValue'];_0x604307['rename'](_0x34f597,_0x402bd3);}else{if(_0x213c4e['_isBlockAttribute'](_0x1cca5b['key'])){for(const _0x47eebc of _0xdb2567)void 0x0!==_0x1cca5b['oldValue']?_0x604307['setAttribute'](_0x1cca5b['key'],_0x1cca5b['oldValue'],_0x47eebc['start']['nodeAfter']):_0x604307['removeAttribute'](_0x1cca5b['key'],_0x47eebc['start']['nodeAfter']);}else{for(const _0x18feb1 of _0xdb2567)_0x1cca5b['oldValue']?_0x604307['setAttribute'](_0x1cca5b['key'],_0x1cca5b['oldValue'],_0x18feb1):_0x604307['removeAttribute'](_0x1cca5b['key'],_0x18feb1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x436d92);}}function Tt(_0x1fd42c,_0x11f6dc,_0x4353b1){for(const _0x28b70a of _0x11f6dc['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x28b70a['root']==_0x28b70a)return!0x1;if(!_0x4353b1['containsItem'](_0x28b70a))return!0x1;if(_0x1fd42c['isObject'](_0x28b70a)||_0x1fd42c['isLimit'](_0x28b70a))return!0x0;}return!0x1;}function Et(_0x27af62){return _0x27af62['end']['parent']==_0x27af62['start']['nodeAfter']&&_0x27af62['end']['isAtStart'];}function Vt(_0x3c2edf,_0x4338a9,_0x2a07dc,_0x57e970){const _0xdc3d51=_0xa2c453=>!_0xa2c453['item']['is']('$textProxy')&&!_0x57e970['isObject'](_0xa2c453['item']),_0xa78c50=_0x3c2edf['start']['getLastMatchingPosition'](_0xdc3d51),_0x2d492e=_0x3c2edf['end']['getLastMatchingPosition'](_0xdc3d51,{'direction':'backward'});return(!_0x3c2edf['start']['isEqual'](_0xa78c50)||!_0x3c2edf['end']['isEqual'](_0x2d492e))&&(_0xa78c50['isBefore'](_0x2d492e)?_0x2a07dc['updateMarker'](_0x4338a9,{'range':_0x2a07dc['createRange'](_0xa78c50,_0x2d492e)}):_0x2a07dc['removeMarker'](_0x4338a9),!0x0);}function Ut(_0x28a76e){return _0xd7b463(_0x28a76e);}function Ot(_0x595fce){const _0x4f160b=_0x595fce['start']['nodeAfter'];return _0x4f160b&&_0x4f160b['is']('element');}function Gt(_0x6b6556,_0x4d5554){return null==_0x6b6556['end']['nodeBefore']&&_0x6b6556['end']['parent']==_0x6b6556['start']['nodeAfter']?Ft(_0x6b6556['start']['nodeAfter'],_0x4d5554):_0x6b6556;}function Ft(_0x223378,_0xf5d4bf){const _0x2202dd=_0xf5d4bf['schema']['isObject'](_0x223378)||_0xf5d4bf['schema']['isSelectable'](_0x223378);return _0xf5d4bf['createRange'](_0xf5d4bf['createPositionAt'](_0x223378,'before'),_0x2202dd?_0xf5d4bf['createPositionAfter'](_0x223378):_0xf5d4bf['createPositionAt'](_0x223378,'end'));}function Pt(_0xfccf69,_0x1a9d7c,_0x2dfd8c,_0x36a1a5,_0x3c82d3){if(!Lt(_0xfccf69,_0x1a9d7c))return!0x1;if(_0x2dfd8c['end']['isEqual'](_0x36a1a5['start']))return!0x0;if(_0xfccf69['type']!=_0x1a9d7c['type'])return!0x1;if(!_0x2dfd8c['end']['isTouching'](_0x36a1a5['start']))return!0x1;const _0x11a77a=_0x3c82d3['createRange'](_0x2dfd8c['end'],_0x36a1a5['start'])['getWalker']();for(const _0x646be1 of _0x11a77a)if(['elementStart','elementEnd']['includes'](_0x646be1['type'])&&_0x3c82d3['schema']['isLimit'](_0x646be1['item']))return!0x1;return!0x0;}function Lt(_0x2b7ab9,_0x48ee6c,_0x575343=[]){return!(!_0x2b7ab9['_isDataLoaded']||!_0x48ee6c['_isDataLoaded'])&&_0x718abf(xt(_0x2b7ab9['attributes'],_0x575343),xt(_0x48ee6c['attributes'],_0x575343));}function Ht(_0x5cd3cf,_0x6b9f38){const _0x10a2e6=qt(_0x5cd3cf['attributes']),_0x17e9ee=qt(_0x6b9f38);if(!_0x5cd3cf['_isDataLoaded'])return!0x1;for(const _0x247c75 of Object['keys'](_0x17e9ee))if(!_0x718abf(_0x10a2e6[_0x247c75],_0x17e9ee[_0x247c75]))return!0x1;return!0x0;}function qt(_0x52a272){const _0x4bb0ab=Object['assign']({},_0x52a272);return delete _0x4bb0ab['skipNestingCheck'],delete _0x4bb0ab['tablePasteChainId'],_0x4bb0ab;}class ne extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x2ded99(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x31a0bc,_0x4eb7ad,_0x3454b2,_0x52a724){super(),this['model']=_0x4eb7ad,this['view']=_0x3454b2,this['commentThreadController']=_0x52a724,this['_editor']=_0x31a0bc,this['_acceptCommand']=_0x31a0bc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x31a0bc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xa7a6fc,_0x34add5)=>_0xa7a6fc||_0x34add5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5aaa82=>_0x5aaa82&&this['_editor']['model']['canEditAt'](_0x4eb7ad['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1ec812=>_0x1ec812&&this['_editor']['model']['canEditAt'](_0x4eb7ad['getRanges']())),this['_pendingAction']=null,_0x3454b2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3454b2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3454b2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3454b2,'change:isDirty',()=>{_0x3454b2['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 _0x388f52=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x388f52);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x83905e{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x35e16e,_0xfd9b68,_0xdc38b0,_0x2d1450){super(_0x35e16e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0xfd9b68['authoredAt']),this['bind']('authoredAt')['to'](_0xfd9b68),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0xfd9b68,this['_localUser']=_0xdc38b0,this['_config']=_0x2d1450,_0x2d1450['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:_0x4cd646}=this['_config'];this['commentsListView']=new _0x4cd646(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',_0x53de20=>_0x53de20+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3c5ddb,_0x11977b)=>_0x3c5ddb||!!_0x11977b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x547694}=this['_config'],_0x243bab=new _0x547694(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x321368=_0x243bab['commentInputView'];return _0x243bab['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x321368,'value',(_0x24c7d8,_0x203b72,_0x505196)=>!!_0x505196||_0x24c7d8&&!_0x203b72),_0x321368['on']('submit',(_0x1b6a96,_0x5914b8)=>{this['fire']('addComment',_0x5914b8),_0x321368['editor']['setData']('');}),_0x321368['on']('cancel',()=>this['focus']()),_0x321368['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x243bab;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5dd6d1,_0x2d8963,_0xbf0fc5,_0x5e0363){super(_0x5dd6d1,_0x2d8963,_0xbf0fc5,_0x5e0363),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x50d265=>_0x50d265&&_0x50d265[0x0]?_0x50d265[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2c1a2d,_0x14cbc0)=>{let _0x31f46d='';for(const _0x5f5259 of _0x2c1a2d)_0x31f46d+='<p>'+ds(_0x5f5259['content'],_0x5f5259['color'])+'</p>';return _0x14cbc0?_0x31f46d:_0x5924bf(_0x31f46d,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5dd6d1,'Accept\x20suggestion'),_0x149aaf['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5dd6d1,'Discard\x20suggestion'),_0x149aaf['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x20177d(_0x5dd6d1,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3c094e=this['bindTemplate'],_0x201817=[{'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':_0x3c094e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3c094e['to']('authoredAt',_0x2d0fc8=>this['_config']['formatDateTime'](_0x2d0fc8))}]}]},{'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']&&_0x201817['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3967fa={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3c094e['if']('isActive','ck-suggestion-wrapper--active'),_0x3c094e['to']('type',_0x48fc14=>'ck-suggestion-'+_0x48fc14),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':_0x201817}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3967fa['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)),_0x3967fa;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x4215f7,_0x5d5f66,_0x40c695)=>{this['_descriptionElement']['innerHTML']=_0x40c695;});}['_createButton'](_0x17e1c6,_0x46aa32,_0x33b069,_0x582f23,_0x108165){const _0xb0ed57=new _0x2e6acd(this['locale']);return _0xb0ed57['set']({'label':_0x17e1c6,'icon':_0x46aa32,'tooltip':!0x0,'tooltipPosition':_0x108165}),_0xb0ed57['extendTemplate']({'attributes':{'class':_0x33b069}}),_0xb0ed57['on']('execute',()=>{this['fire'](_0x582f23,this['_model']['id']);}),_0xb0ed57;}['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(_0x54c4af,_0x24edc9){let _0x1e1ade='';return _0x1e1ade+=_0x54c4af['split']('*')['map']((_0x434094,_0x8f053a)=>_0x8f053a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x434094)+'</span>':us(_0x434094))['join'](''),_0x24edc9&&(_0x1e1ade+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x24edc9['value']+'\x22\x20title=\x22'+_0x24edc9['title']+'\x22></span>'),_0x1e1ade;}function us(_0x31981e){const _0x19829e=document['createElement']('span');return _0x19829e['innerText']=_0x31981e,_0x19829e['innerHTML'];}var ae='<!--\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 _0x23b8b9{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x40cd8f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x6e9239){super(_0x6e9239),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a1475=this['editor']['config'];_0x4a1475['define']('trackChanges.SuggestionThreadView',ie),_0x4a1475['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a1475['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x34d152,_0x10b71a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3dddab,_0xde648d]of this['_handleControllerBuffer']){const _0x21ae53=this['_suggestionToController']['has'](_0x3dddab);_0x21ae53||_0xde648d?_0x21ae53&&_0xde648d&&this['_destroyController'](_0x3dddab):this['_initializeController'](_0x3dddab);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x34d152,_0x10b71a);}['init'](){const _0x302bb0=this['editor'],_0x417eef=_0x302bb0['plugins']['get']('TrackChangesEditing'),_0x291e9a=_0x302bb0['plugins']['get']('Annotations'),_0x22420f=_0x302bb0['plugins']['get']('EditorAnnotations'),_0x38c33e=_0x302bb0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x22420f['addSourceCollector'](()=>{const _0x580da1=[];for(const [_0x2fe1bc,_0x4311fa]of Array['from'](this['_suggestionToController'])){const _0xe139c8=_0x2fe1bc['getAllAdjacentSuggestions'](),_0x49e49e=[];for(const _0xc53f37 of _0xe139c8){if(!_0xc53f37['isInContent'])continue;if(_0xc53f37['isMultiRange']){_0x49e49e['push'](..._0xc53f37['getRanges']());continue;}const _0x4c2cb4=_0xc53f37['getFirstRange']();if(_0x49e49e['length']>0x0){const _0x36668e=_0x49e49e[0x0]['getJoined'](_0x4c2cb4);if(_0x36668e){_0x49e49e[0x0]=_0x36668e;continue;}}_0x49e49e['push'](_0x4c2cb4);}_0x580da1['push']([_0x4311fa['view'],_0x49e49e]);}return _0x580da1;}),this['listenTo'](_0x417eef,'suggestionLoaded',(_0x129a8f,_0x15f7ab)=>{this['listenTo'](_0x15f7ab,'change:previous',(_0x3b7686,_0x4c2201,_0x16ec17,_0x200eaa)=>{_0x15f7ab['isInContent']&&(null==_0x16ec17?(this['_updateController'](_0x200eaa['head']),this['_handleSuggestionControllerDelayed'](_0x15f7ab,!0x1)):(this['_updateController'](_0x16ec17['head']),null==_0x200eaa&&this['_handleSuggestionControllerDelayed'](_0x15f7ab,!0x0)));}),null!==_0x15f7ab['previous']?this['_updateController'](_0x15f7ab['head']):this['_handleSuggestionControllerDelayed'](_0x15f7ab,!0x1);}),this['listenTo'](_0x417eef,'suggestionUnloaded',(_0x5927f9,_0x646a4c,_0x487577)=>{this['stopListening'](_0x646a4c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x646a4c),this['_suggestionToController']['has'](_0x646a4c)&&this['_destroyController'](_0x646a4c),_0x487577&&this['_updateController'](_0x487577['head']);}),this['listenTo'](_0x417eef,'suggestionChanged',(_0xb573a4,_0x3e7a13)=>{this['_updateController'](_0x3e7a13);}),this['listenTo'](_0x291e9a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x38c33e,'addComment',(_0x592a55,{threadId:_0x4c4c85,isFromAdapter:_0x46755f})=>{if(_0x46755f||!_0x417eef['hasSuggestion'](_0x4c4c85))return;const _0x1676d7=_0x417eef['getSuggestion'](_0x4c4c85);this['_suggestionToController']['get'](_0x1676d7)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2b6aed=this['editor']['plugins']['get']('Annotations'),_0x3f19dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34a439=Array['from'](_0x2b6aed['activeAnnotations'],_0x4b38a7=>_0x4b38a7['innerView'])['filter'](_0x4690b2=>this['_viewToController']['has'](_0x4690b2)),_0x2cd468=[];for(const _0x2aca5c of _0x34a439){const _0x5ba0af=this['_viewToController']['get'](_0x2aca5c)['model']['getAllAdjacentSuggestions']();_0x2cd468['push'](..._0x5ba0af['reduce']((_0x2be640,_0x48afbc)=>[..._0x2be640,..._0x48afbc['getMarkerNames']()],[]));}_0x3f19dd['activeMarkers']=_0x2cd468;}['_addUIComponentsToFactory'](){const _0x2d2e5d=this['editor'],_0x204c0c=_0x2d2e5d['locale'],_0x416a8a=o(_0x204c0c,'Track\x20changes'),_0x142342=new Wt([{'type':'switchbutton','model':new _0x480261({'withText':!0x0,'isToggleable':!0x0,'label':_0x416a8a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x480261({'withText':!0x0,'label':o(_0x204c0c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x480261({'withText':!0x0,'label':o(_0x204c0c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x480261({'withText':!0x0,'label':o(_0x204c0c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x480261({'withText':!0x0,'label':o(_0x204c0c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x24f140 of _0x142342)if(re(_0x24f140)){const _0xe3325e=_0x2d2e5d['commands']['get'](_0x24f140['model']['commandName']);_0x24f140['model']['bind']('isOn','isEnabled')['to'](_0xe3325e,'value','isEnabled');}_0x2d2e5d['ui']['componentFactory']['add']('trackChanges',_0x233914=>this['_createToolbarButton'](_0x233914,_0x142342,_0x416a8a)),_0x2d2e5d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x50e06b=>this['_createMenuBarMenu'](_0x50e06b,_0x142342,_0x416a8a));}['_createToolbarButton'](_0x52c4de,_0x436ad2,_0x2739d1){const _0x4e7acc=Jt(_0x52c4de,te),_0x2e2550=this['editor']['commands']['get']('trackChanges');_0x4e7acc['buttonView']['set']({'tooltip':_0x2739d1,'label':_0x2739d1,'icon':ae}),_0x4e7acc['buttonView']['bind']('isOn')['to'](_0x2e2550,'value'),_0x4e7acc['buttonView']['on']('execute',()=>{_0x2e2550['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x4e7acc,_0x436ad2,{'role':'menu'});const _0x22c4eb=[];for(const _0x4baf7c of _0x436ad2)re(_0x4baf7c)&&_0x22c4eb['push'](this['editor']['commands']['get'](_0x4baf7c['model']['commandName']));const _0x358724=_0x4e7acc['buttonView'];return _0x358724['actionView']['unbind']('isEnabled'),_0x358724['arrowView']['unbind']('isEnabled'),_0x358724['actionView']['bind']('isEnabled')['to'](_0x2e2550,'isEnabled'),_0x358724['arrowView']['bind']('isEnabled')['toMany'](_0x22c4eb,'isEnabled',(..._0x1da73b)=>_0x1da73b['some'](_0x512caa=>_0x512caa)),_0x4e7acc['on']('execute',_0x173ef4=>{this['editor']['execute'](_0x173ef4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e7acc;}['_createMenuBarMenu'](_0xf2d8ed,_0x2019c5,_0x2b07ec){const _0x322cd2=new Qt(_0xf2d8ed),_0x2a1f08=this['editor']['commands']['get']('trackChanges');_0x322cd2['buttonView']['set']({'label':_0x2b07ec,'icon':ae});const _0x21698c=new Xt(_0xf2d8ed);for(const _0x4af50a of _0x2019c5){if('separator'==_0x4af50a['type']){_0x21698c['items']['add'](new Kt(_0xf2d8ed));continue;}const _0x4ab042=new Yt(_0xf2d8ed,_0x322cd2),_0xef3cc0=new Zt(_0xf2d8ed),_0x3ca7a3=_0x4af50a['model'];_0xef3cc0['bind'](...Object['keys'](_0x3ca7a3))['to'](_0x3ca7a3),_0xef3cc0['delegate']('execute')['to'](_0x322cd2),_0xef3cc0['on']('execute',()=>{this['editor']['execute'](_0x3ca7a3['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ab042['children']['add'](_0xef3cc0),_0x21698c['items']['add'](_0x4ab042);}return _0x322cd2['bind']('isEnabled')['to'](_0x2a1f08,'isEnabled'),_0x322cd2['panelView']['children']['add'](_0x21698c),_0x322cd2;}['_initializeController'](_0x49c5b1){const _0x13b5b2=this['editor'],_0x18ed47=_0x13b5b2['config'],_0x1adc78=_0x13b5b2['plugins']['get']('Annotations'),_0x2e5a66=_0x13b5b2['plugins']['get']('CommentsRepository'),_0x578510=_0x13b5b2['plugins']['get']('EditorAnnotations'),_0x55f64b=_0x13b5b2['plugins']['get'](_0x40cd8f)['me'],_0x1ec263=_0x18ed47['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x5baca0,CommentThreadInputView:_0x2bfe3b}=_0x13b5b2['plugins']['get']('CommentsUI');let _0x426a50,_0x5a5518;this['_annotationViews']['has'](_0x49c5b1['id'])?(_0x5a5518=this['_annotationViews']['get'](_0x49c5b1['id']),_0x426a50=_0x5a5518['mainView']):(_0x426a50=new _0x1ec263(_0x13b5b2['locale'],_0x49c5b1,_0x55f64b,{'disableComments':this['_disableComments'],'editorConfig':_0x18ed47['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x18ed47['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x18ed47['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x18ed47['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3b8e81(_0x18ed47['get']('locale')),'CommentView':_0x18ed47['get']('comments')['CommentView'],'CommentsListView':_0x5baca0,'CommentThreadInputView':_0x2bfe3b}),_0x426a50['acceptButton']['on']('execute',()=>{_0x13b5b2['editing']['view']['focus']();}),_0x426a50['discardButton']['on']('execute',()=>{_0x13b5b2['editing']['view']['focus']();}),_0x5a5518=_0x1adc78['createAnnotationView'](this['editor']['locale'],_0x426a50),_0x5a5518['bind']('isDirty')['to'](_0x426a50,'isDirty'),_0x5a5518['bind']('length')['to'](_0x426a50),_0x5a5518['bind']('type')['to'](_0x426a50,'type',_0x47b603=>'suggestion-'+_0x47b603),this['_annotationViews']['set'](_0x49c5b1['id'],_0x5a5518));const _0xc021d0=_0x2e5a66['createCommentThreadController'](_0x49c5b1['commentThread'],_0x426a50),_0x12fc86=new ne(_0x13b5b2,_0x49c5b1,_0x426a50,_0xc021d0),_0xca52f2=_0x49c5b1['getAllAdjacentSuggestions']()['filter'](_0x1e355d=>_0x1e355d['isInContent']);_0x426a50['descriptionParts']=_0x13b5b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xca52f2),this['_suggestionToController']['set'](_0x49c5b1,_0x12fc86),this['_viewToController']['set'](_0x426a50,_0x12fc86);const _0x3cd1ea=_0x1adc78['createAnnotation']({'view':_0x5a5518,'target':()=>{const _0x377848=[],_0x24fdc0=_0x49c5b1['getAllAdjacentSuggestions']()['filter'](_0x55b2b8=>_0x55b2b8['isInContent']);for(const _0x2d5578 of _0x24fdc0)_0x377848['push'](..._0x2d5578['getMarkers']());return _0x49cd65(_0x13b5b2['editing'],_0x377848);},'type':()=>'suggestion-'+_0x12fc86['view']['type']});_0x2e5a66['_bindAnnotationToEditors'](_0x426a50,_0x3cd1ea),_0x1adc78['add'](_0x3cd1ea),_0x578510['registerAnnotation'](_0x3cd1ea);}['_destroyController'](_0x4893c3){const _0x8512fe=this['editor']['plugins']['get']('CommentsRepository'),_0x1bc3d0=this['editor']['plugins']['get']('Annotations'),_0x3fb949=this['_suggestionToController']['get'](_0x4893c3),_0x422fa0=_0x3fb949['view'],_0x1b55dd=_0x1bc3d0['getByInnerView'](_0x422fa0);_0x8512fe['_unbindEditors'](_0x422fa0),_0x1b55dd&&_0x1bc3d0['remove'](_0x1b55dd),this['_suggestionToController']['delete'](_0x4893c3),this['_viewToController']['delete'](_0x422fa0),_0x3fb949['destroy']();}['_updateController'](_0x202793){if(!_0x202793['isInContent']||!this['_suggestionToController']['has'](_0x202793))return;const _0x5d3619=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d6892=this['_suggestionToController']['get'](_0x202793),_0x1b04bc=_0x202793['getAllAdjacentSuggestions']();_0x3d6892['view']['descriptionParts']=_0x5d3619['descriptionFactory']['getDescriptions'](_0x1b04bc);}['destroy'](){for(const _0x1a8605 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1a8605);for(const _0x31cd17 of this['_annotationViews']['values']())_0x31cd17['mainView']['destroy']();super['destroy']();}}function re(_0x1e7739){return'model'in _0x1e7739;}class k extends _0x23b8b9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5820d3){this['editor']['plugins']['get'](p)['adapter']=_0x5820d3;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x37c565){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x37c565);}['getSuggestions']({skipNotAttached:_0x3bdcc3=!0x1,toJSON:_0x3c0521=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3bdcc3,'toJSON':_0x3c0521});}['getSuggestion'](_0x379381){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x379381);}}const T=['Pagination'];class P extends _0x23b8b9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x518842=this['editor'];if(_0x518842['config']['define']('trackChangesData.editorCreator',_0x2e5b25=>{const _0x3f1471=_0x518842['model']['document']['getRootNames']()['reduce']((_0x1cad9e,_0x3962d3)=>(_0x1cad9e[_0x3962d3]='',_0x1cad9e),{});return _0x518842['constructor']['create'](_0x3f1471,_0x2e5b25);}),'function'!=typeof _0x518842['config']['get']('trackChangesData')['editorCreator'])throw new _0x14dd54('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3508a6){return N(this['editor'],!0x0,_0x3508a6);}['getDataWithDiscardedSuggestions'](_0xc79200){return N(this['editor'],!0x1,_0xc79200);}}class D extends _0x23b8b9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x585372){super(_0x585372),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(_0x2746e2){return void 0x0!==_0x2746e2['getRootsAttributes'];}async function N(_0xf5e4d6,_0x254a47,_0x12b9e3){const _0x5a22cd=_0x339627(_0xf5e4d6,T);_0x5a22cd['plugins']['push'](p,D),_0x5a22cd['rootsAttributes']=v(_0xf5e4d6)?_0xf5e4d6['getRootsAttributes']():void 0x0;const _0x3b1bed=document['createDocumentFragment'](),_0x1b984a=_0xf5e4d6['config']['get']('trackChangesData')['editorCreator'],_0x1c97b4=await _0x1b984a(_0x5a22cd,()=>function(_0x3f3a7e){const _0x2d491b=document['createElement']('div');return _0x3f3a7e['appendChild'](_0x2d491b),_0x2d491b;}(_0x3b1bed));!function(_0x50fb71,_0x1eb7a1){const _0x121060=_0x50fb71['model']['document']['getRootNames']()['reduce']((_0x5a8075,_0x24755c)=>(_0x5a8075[_0x24755c]=_0x50fb71['data']['get']({'rootName':_0x24755c}),_0x5a8075),{}),_0x334a32=_0x50fb71['plugins']['get']('Users')['users']['map'](_0x4f398c=>({'id':_0x4f398c['id'],'name':_0x4f398c['name']})),_0x1b4a0d=_0x50fb71['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4310dc=_0x50fb71['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x386185=_0x1eb7a1['plugins']['get']('Users'),_0x10d514=_0x1eb7a1['plugins']['get']('TrackChangesEditing'),_0xbba6e6=_0x1eb7a1['plugins']['get']('CommentsRepository');for(const _0xe7fde9 of _0x334a32)_0x386185['getUser'](_0xe7fde9['id'])||_0x386185['addUser'](_0xe7fde9);_0x386185['me']||_0x386185['useAnonymousUser']();for(const _0x1ace71 of _0x4310dc)_0xbba6e6['addCommentThread'](_0x1ace71);for(const _0x1f661b of _0x1b4a0d)_0x10d514['addSuggestionData'](_0x1f661b);_0x1eb7a1['data']['set'](_0x121060);}(_0xf5e4d6,_0x1c97b4),_0x1c97b4['execute'](_0x254a47?'acceptAllSuggestions':'discardAllSuggestions');const _0x519fd7=v(_0x1c97b4)?_0x1c97b4['getFullData'](_0x12b9e3):_0x1c97b4['data']['get'](_0x12b9e3);return await _0x1c97b4['destroy'](),_0x519fd7;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x15c086,PendingActions as _0x159dc3,icons as _0x5dc603}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3cf89a,ObservableMixin as _0x28acc2,uid as _0x27f732,insertToPriorityArray as _0x3a65c8,priorities as _0x200434,logWarning as _0x227421,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4c81bc,View as _0x590774,ButtonView as _0x56024e,ViewModel as _0x3a5c24,createDropdown as Jt,SplitButtonView as te,addListToDropdown as zt,MenuBarMenuView as Qt,MenuBarMenuListView as Xt,ListSeparatorView as Kt,MenuBarMenuListItemView as Yt,MenuBarMenuListItemButtonView as Zt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x391bb8,hashObject as _0x16ce2e,surroundingMarkersDetector as _0x176339,trimHtml as _0x39a1b4,UserView as _0x315dbd,getDateTimeFormatter as _0x14289b,getAllMarkersDomElementsSorted as _0x492e53,sanitizeEditorConfig as _0x362255}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2f484a,LiveRange as _0x948f0b,LivePosition as _0x5337e8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5bea68,toWidget as _0xb67c89}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x7c6eac,set as _0x3e0bf6,isEqual as _0x35c1e7,unset as _0x243a98,omit as xt}from'lodash-es';import{Delete as _0x272956,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x331ec9,ShiftEnter as _0x275f63}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x7f1c48,_0x4f23b3){super(_0x7f1c48),this['_enabledCommands']=_0x4f23b3,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 _0x3ed086 of this['editor']['commands']['commands']())_0x3ed086['affectsData']&&!this['_enabledCommands']['has'](_0x3ed086)&&_0x3ed086['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x554a5e of this['editor']['commands']['commands']())_0x554a5e['affectsData']&&!this['_enabledCommands']['has'](_0x554a5e)&&_0x554a5e['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0xf36c33,_0x51e185){super(_0xf36c33),this['_suggestions']=_0x51e185,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x41b990){const _0x5d5b9a=this['_suggestions']['get'](_0x41b990);if(!_0x5d5b9a)throw new _0x3cf89a('track-changes-accept-suggestion-not-found',this);const _0x1f2443=_0x5d5b9a['getRanges']();this['editor']['model']['canEditAt'](_0x1f2443)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5d5b9a);}}class B extends ts{['_suggestions'];constructor(_0x257f6c,_0xdc6d22){super(_0x257f6c),this['_suggestions']=_0xdc6d22,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x54355a){const _0x16539c=this['_suggestions']['get'](_0x54355a);if(!_0x16539c)throw new _0x3cf89a('track-changes-discard-suggestion-not-found',this);const _0x30d72b=_0x16539c['getRanges']();this['editor']['model']['canEditAt'](_0x30d72b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x16539c);}}function ss(_0x2c66bb){return _0x2c66bb['sort']((_0x3a0e52,_0xd40e)=>'deletion'==_0x3a0e52['type']&&'deletion'!=_0xd40e['type']?-0x1:'deletion'!=_0x3a0e52['type']&&'deletion'==_0xd40e['type']?0x1:0x0);}function to(_0x280c3a,_0x49cfc8){let _0x57613e,_0x1b72f7=0x0;const _0x1f24cb=[],_0x2ba7ce=_0x49cfc8['schema'];for(;_0x1b72f7<_0x280c3a['length'];){const _0x35293a=_0x280c3a[_0x1b72f7],_0x5335c6=_0x280c3a[_0x1b72f7+0x1];_0x57613e||(_0x57613e=_0x49cfc8['createPositionBefore'](_0x35293a)),co(_0x49cfc8,_0x35293a,_0x5335c6)||(_0x1f24cb['push'](_0x49cfc8['createRange'](_0x57613e,_0x2ba7ce['isObject'](_0x35293a)?_0x49cfc8['createPositionAfter'](_0x35293a):_0x49cfc8['createPositionAt'](_0x35293a,'end'))),_0x57613e=null),_0x1b72f7++;}return _0x1f24cb;}function co(_0x4eaa76,_0x411e50,_0x202314){if(!_0x202314)return!0x1;const _0x2f4fc0=_0x4eaa76['createPositionAfter'](_0x411e50),_0x147adf=_0x4eaa76['createPositionBefore'](_0x202314);return _0x2f4fc0['isTouching'](_0x147adf);}function rs(_0x258dab,_0x12861c,_0x26819e){for(;_0x26819e['length'];){const _0x13ff30=_0x26819e['splice'](0x0,0x64);_0x258dab['change'](()=>{for(const _0x35a537 of _0x13ff30)_0x35a537['isInContent']&&_0x12861c['execute'](_0x35a537['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0xf3a204,_0x25fcad,_0x5bbba3){super(_0xf3a204),this['_command']=_0x25fcad,this['_suggestions']=_0x5bbba3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x34669b=Array['from'](this['_suggestions']['values']())['some'](_0x34ef95=>_0x34ef95['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x34669b;}['execute'](){const _0x12ab54=ss(Array['from'](this['_suggestions']['values']()));for(const _0xa91b0 of _0x12ab54){const _0x4bb64c=_0xa91b0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4bb64c))return;}rs(this['editor']['model'],this['_command'],_0x12ab54);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x121898,_0x45c695,_0x48f07e){super(_0x121898),this['_command']=_0x45c695,this['_suggestions']=_0x48f07e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x423c9c=this['editor']['model']['document']['selection'],_0x3cfb28=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x26bba0,_0x530796){const _0x114091=Array['from'](_0x26bba0['getRanges']()),_0x55cc09=new Set();for(const _0x1f08ab of _0x530796)if(_0x1f08ab['isInContent']){for(const _0x4b9233 of _0x114091)for(const _0x2a225e of _0x1f08ab['getRanges']())(_0x4b9233['isIntersecting'](_0x2a225e)||_0x26bba0['isCollapsed']&&!_0x1f08ab['isMultiRange']&&_0x1f08ab['next']&&_0x2a225e['end']['isTouching'](_0x4b9233['start']))&&_0x55cc09['add'](_0x1f08ab);}return _0x55cc09;}(_0x423c9c,_0x3cfb28),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x47ecea=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2a9637 of _0x47ecea){const _0x5d704b=_0x2a9637['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5d704b))return;}rs(this['editor']['model'],this['_command'],_0x47ecea);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x28acc2(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x527a38,_0x29e851){super(),this['id']=_0x29e851['id'],this['type']=_0x29e851['type'],this['subType']=_0x29e851['subType']||null,this['author']=_0x29e851['author'],this['creator']=_0x29e851['creator']||_0x29e851['author'],this['isExternal']=Boolean(_0x29e851['attributes']&&_0x29e851['attributes']['@external']),this['data']=null,this['_model']=_0x527a38,this['_onAccept']=_0x29e851['onAccept'],this['_onDiscard']=_0x29e851['onDiscard'],this['_onAttributesChange']=_0x29e851['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29e851['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 _0xfb778f=this;for(;_0xfb778f['previous'];)_0xfb778f=_0xfb778f['previous'];return _0xfb778f;}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'](_0xb43db7){this['_markerNames']['add'](_0xb43db7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x114598=>this['_model']['markers']['get'](_0x114598))['filter'](_0x4db2e8=>_0x4db2e8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x56ba9e=>{for(const _0x125370 of this['getMarkers']())_0x56ba9e['removeMarker'](_0x125370);}),this['_markerNames']['clear']();}['removeMarker'](_0x5cdb86){this['_model']['change'](_0x48880e=>{_0x48880e['removeMarker'](_0x5cdb86);}),this['_markerNames']['delete'](_0x5cdb86);}['addRange'](_0x340e3a){const _0x1ebf82='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1ebf82),this['_model']['change'](_0x445e50=>{_0x445e50['addMarker'](_0x1ebf82,{'range':_0x340e3a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1659c5){for(const _0xc6905a of this['getRanges']())if(_0xc6905a['isIntersecting'](_0x1659c5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4ed4fb=>_0x4ed4fb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x759ca9,_0x243da0)=>[..._0x759ca9,..._0x243da0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x18294b=this['getRanges']();if(0x1!=_0x18294b['length'])return null;const _0x491d31=_0x18294b[0x0],_0x2017a9=_0x491d31['start']['nodeAfter'],_0x5478e1=_0x491d31['end']['nodeBefore'];return _0x2017a9 instanceof _0x2f484a?_0x2017a9!=_0x5478e1?null:_0x2017a9: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 _0x1b90d5=[];let _0x100a65=this['head'];for(;_0x100a65;)_0x1b90d5['push'](_0x100a65),_0x100a65=_0x100a65['next'];return _0x1b90d5;}['setAttribute'](_0x256aa5,_0x2ca998){const _0x45311f=_0x7c6eac(this['attributes']);_0x3e0bf6(_0x45311f,_0x256aa5,_0x2ca998),_0x35c1e7(_0x45311f,this['attributes'])||(this['attributes']=_0x45311f,this['_onAttributesChange'](_0x45311f));}['removeAttribute'](_0x18acca){const _0x5a57a7=_0x7c6eac(this['attributes']);_0x243a98(_0x5a57a7,_0x18acca),_0x35c1e7(_0x5a57a7,this['attributes'])||(this['attributes']=_0x5a57a7,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 _0x27f732()['substr'](0x1,0x5);}}function o(_0x4b8ce1,_0x4b5646,_0x301d94){const t=_0x4b8ce1['t'];switch(_0x4b5646){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',_0x301d94);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x301d94);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x301d94);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x301d94);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x301d94);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',_0x301d94);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x301d94);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',_0x301d94);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x301d94);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x301d94);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x301d94);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x301d94);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x301d94);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x301d94);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x301d94);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x301d94);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x301d94);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x301d94);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x301d94);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x301d94);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x301d94);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x301d94);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x301d94);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'},_0x301d94);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x301d94);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x301d94);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x301d94);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x301d94);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x301d94);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'},_0x301d94);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x301d94);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x301d94);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x301d94);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x301d94);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'},_0x301d94);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x301d94);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'},_0x301d94);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'},_0x301d94);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x301d94);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'},_0x301d94);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x301d94);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'},_0x301d94);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x301d94);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x301d94);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x301d94);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'},_0x301d94);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'},_0x301d94);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 _0x4b5646;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1824d5,_0x2ad20e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1824d5,this['_locale']=_0x2ad20e;}['getDescriptions'](_0x21bfa9){const _0x2994f0=[],_0x3937b4=new Set(),_0x4052fa=new Set();for(let _0x5c62ba=0x0;_0x5c62ba<_0x21bfa9['length'];_0x5c62ba++){const _0x3c8520=_0x21bfa9[_0x5c62ba];if(!_0x3c8520['isInContent'])continue;const _0x4045f8=this['_handleCustomCallbackDescription'](_0x3c8520);if(_0x4045f8){if(null!=_0x3c8520['subType']){if(_0x3937b4['has'](_0x3c8520['subType']))continue;_0x3937b4['add'](_0x3c8520['subType']);}_0x2994f0['push'](_0x4045f8);}else{if('attribute'!=_0x3c8520['type'])'insertion'!=_0x3c8520['type']&&'deletion'!=_0x3c8520['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2994f0,_0x3c8520,_0x21bfa9[_0x5c62ba+0x1]);else{const _0xcd685=_0x3c8520['data']['key'];if(_0x4052fa['has'](_0xcd685))continue;_0x4052fa['add'](_0x3c8520['data']['key']),_0xcd685==m?this['_handleRenameSuggestionDescription'](_0x2994f0,_0x3c8520):this['_handleAttributeSuggestionDescription'](_0x2994f0,_0x3c8520);}}}return this['_resolveDescriptionItems'](_0x2994f0);}['registerDescriptionCallback'](_0x3d1c3d){this['_customCallbacks']['push'](_0x3d1c3d);}['registerElementLabel'](_0x54b39c,_0x2e4a3b,_0x39fe4e=_0x200434['normal']){'function'==typeof _0x54b39c?_0x3a65c8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x54b39c,'label':_0x2e4a3b,'priority':_0x39fe4e}):this['_itemLabels']['set'](_0x54b39c,_0x2e4a3b);}['registerAttributeLabel'](_0x47e62a,_0x1ba57b){this['_attributeLabels']['set'](_0x47e62a,_0x1ba57b);}['getItemLabel'](_0x587f43,_0x58576c=0x1){let _0x4dad63;for(const _0x54f6c7 of this['_itemLabelsCallbacks'])if(_0x54f6c7['matchingCallback'](_0x587f43)){_0x4dad63=_0x54f6c7['label'];break;}return _0x4dad63||(_0x4dad63=this['_itemLabels']['get'](_0x587f43['name'])),_0x4dad63?_0x4dad63(_0x58576c):0x1!==_0x58576c?_0x58576c+'\x20'+_0x587f43['name']+'s':''+_0x587f43['name'];}['_addDescriptionItems'](_0x458286,_0x4535f1){const _0x2640b8=_0x4535f1['getFirstRange']()['getWalker'](),_0x3915be='insertion'==_0x4535f1['type']?'add':'remove';for(const _0x30b2ad of _0x2640b8){const _0xefcaa2=_0x30b2ad['item'],_0x27a188=_0x458286[_0x458286['length']-0x1];if(_0xefcaa2['is']('$textProxy'))_0x27a188&&_0x27a188['type']['indexOf']('Container')>-0x1&&_0x458286['pop'](),_0x27a188&&'text'==_0x27a188['type']?_0x27a188[_0x3915be]+=_0xefcaa2['data']:_0x458286['push']({'type':'text','add':'add'==_0x3915be?_0xefcaa2['data']:'','remove':'remove'==_0x3915be?_0xefcaa2['data']:''});else{if(this['_schema']['isObject'](_0xefcaa2)){const _0x3f3711=_0xefcaa2;if(_0x27a188&&_0x27a188['type']['indexOf']('Container')>-0x1&&_0x458286['pop'](),'elementEnd'==_0x30b2ad['type'])continue;_0x27a188&&_0x27a188['type']==_0x3915be+'Object'&&_0x27a188['element']['name']==_0x3f3711['name']?_0x27a188['quantity']++:_0x458286['push']({'type':_0x3915be+'Object','element':_0x3f3711,'quantity':0x1}),_0x2640b8['skip'](_0x25243d=>!('elementEnd'==_0x25243d['type']&&_0x25243d['item']==_0xefcaa2));}else{if(this['_schema']['checkChild'](_0xefcaa2,'$text')||_0xefcaa2['is']('element','softBreak')){const _0x298812=_0xefcaa2;if('add'==_0x3915be&&'elementStart'==_0x30b2ad['type']||'remove'==_0x3915be&&'elementEnd'==_0x30b2ad['type'])continue;if(_0x27a188&&-0x1==_0x27a188['type']['indexOf']('Container')){'text'==_0x27a188['type']&&(_0x27a188[_0x3915be]+='\x0a');continue;}let _0x481c51;if(_0x481c51='add'==_0x3915be?_0x298812['nextSibling']&&!this['_schema']['isObject'](_0x298812['nextSibling'])?_0x298812['nextSibling']:null:_0x298812['previousSibling']&&!this['_schema']['isObject'](_0x298812['previousSibling'])?_0x298812['previousSibling']:null,_0x298812['isEmpty']||_0x481c51&&_0x481c51['isEmpty']){const _0x5a6aec=_0x481c51&&_0x481c51['isEmpty']?_0x481c51:_0x298812;_0x27a188&&_0x27a188['type']==_0x3915be+'EmptyContainer'&&_0x27a188['element']['name']==_0x5a6aec['name']?_0x27a188['quantity']++:_0x458286['push']({'type':_0x3915be+'EmptyContainer','element':_0x5a6aec,'quantity':0x1});}else _0x458286['push']({'type':_0x3915be+'Container','element':_0x298812});}}}}}['_resolveDescriptionItems'](_0x36411d){const _0x2e7e7f=this['_locale'],_0x35f22b=[],_0x302294=[],_0x21d1c6=[];for(const _0x130888 of _0x36411d)switch(_0x130888['type']){case'text':if(_0x130888['add']=_0x130888['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x130888['remove']=_0x130888['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x130888['add']&&''!=_0x130888['remove']){_0x35f22b['push']({'type':'replace','content':o(_0x2e7e7f,'REPLACE_TEXT',['\x22'+_0x130888['remove']+'\x22','\x22'+_0x130888['add']+'\x22'])});continue;}if(null!=_0x130888['add']['match'](/^ +$/)){_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Insert:*\x20%0',o(_0x2e7e7f,'ELEMENT_SPACE',_0x130888['add']['length']))});continue;}if(null!=_0x130888['remove']['match'](/^ +$/)){_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Remove:*\x20%0',o(_0x2e7e7f,'ELEMENT_SPACE',_0x130888['remove']['length']))});continue;}if(''!=_0x130888['add']){_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Insert:*\x20%0','\x22'+_0x130888['add']+'\x22')});continue;}_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Remove:*\x20%0','\x22'+_0x130888['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Insert:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Remove:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'addContainer':_0x35f22b['push']({'type':'insertion','content':o(_0x2e7e7f,'*Split:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'removeContainer':_0x35f22b['push']({'type':'deletion','content':o(_0x2e7e7f,'*Merge:*\x20%0',this['getItemLabel'](_0x130888['element'],_0x130888['quantity']))});continue;case'addFormat':_0x302294['push'](_0x130888['key']);continue;case'removeFormat':_0x21d1c6['push'](_0x130888['key']);continue;default:_0x35f22b['push'](_0x130888);}if(_0x302294['length']){const _0x2efde3=_0x302294['map'](_0x2c30d2=>this['_attributeLabels']['has'](_0x2c30d2)?this['_attributeLabels']['get'](_0x2c30d2):_0x2c30d2)['join'](',\x20');_0x35f22b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2efde3)});}if(_0x21d1c6['length']){const _0x3910d3=_0x21d1c6['map'](_0x20d9c3=>this['_attributeLabels']['has'](_0x20d9c3)?this['_attributeLabels']['get'](_0x20d9c3):_0x20d9c3)['join'](',\x20');_0x35f22b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3910d3)});}return _0x35f22b;}['_handleCustomCallbackDescription'](_0x4fdd20){for(const _0x593cc2 of this['_customCallbacks']){const _0x376f75=_0x593cc2(_0x4fdd20);if(_0x376f75&&'type'in _0x376f75)return _0x376f75;}}['_handleAttributeSuggestionDescription'](_0x39f59e,_0x3e50cb){const _0x4e3fe8=_0x3e50cb['data'],_0x5b8680=void 0x0===_0x4e3fe8['newValue']?'removeFormat':'addFormat';_0x39f59e['push']({'type':_0x5b8680,'key':_0x4e3fe8['key']});}['_handleRenameSuggestionDescription'](_0xeace45,_0x55dcb0){_0xeace45['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x55dcb0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5c5cb9,_0x36d6ad,_0x5b475f){if(this['_addDescriptionItems'](_0x5c5cb9,_0x36d6ad),_0x5b475f&&_0x5b475f['getFirstRange']()&&!_0x36d6ad['getFirstRange']()['end']['isEqual'](_0x5b475f['getFirstRange']()['start'])){const _0xf7f75e=_0x5c5cb9[_0x5c5cb9['length']-0x1],_0x1c67e9='insertion'==_0x36d6ad['type']?'add':'remove';_0xf7f75e&&'text'==_0xf7f75e['type']&&(_0xf7f75e[_0x1c67e9]+='\x0a');}}}class E extends _0x15c086{['afterInit'](){const _0x27e100=this['editor'],_0x3edf97=_0x27e100['plugins']['get']('TrackChangesEditing');_0x27e100['commands']['get']('showAIAssistant')&&_0x3edf97['enableCommand']('showAIAssistant');}}class V extends _0x15c086{['afterInit'](){const _0x13fa7f=this['editor'],_0x2176aa=_0x13fa7f['locale'];if(!_0x13fa7f['plugins']['has']('AlignmentEditing'))return;const _0x49bb11=_0x13fa7f['plugins']['get']('TrackChangesEditing');_0x49bb11['enableDefaultAttributesIntegration']('alignment'),_0x49bb11['registerBlockAttribute']('alignment'),_0x49bb11['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2176aa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x227a75=this['editor'],_0x21a8e2=_0x227a75['locale'];_0x227a75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e1cf4=>{if('formatBlock'!=_0x3e1cf4['type'])return;const {data:_0x4e06b9}=_0x3e1cf4;if(_0x4e06b9&&'alignment'==_0x4e06b9['commandName']){const _0x302574=_0x4e06b9['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x21a8e2,'*Format:*\x20%0',function(_0x4a0095){switch(_0x4a0095){case'left':return o(_0x21a8e2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x21a8e2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x21a8e2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x21a8e2,'FORMAT_JUSTIFY_TEXT');}}(_0x302574))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x15c086{['afterInit'](){const _0x210d8f=this['editor'],_0x22b757=_0x210d8f['plugins']['get']('TrackChangesEditing'),_0x2c05f4=_0x210d8f['locale'];for(const _0x1f4de3 of ti){if(!_0x210d8f['plugins']['has'](_0x1f4de3))continue;const _0x13a5f8=_0x1f4de3['slice'](0x0,-0x7)['toLowerCase'](),_0x308bee='FORMAT_'+_0x13a5f8['toUpperCase']();_0x22b757['enableDefaultAttributesIntegration'](_0x13a5f8),_0x22b757['registerInlineAttribute'](_0x13a5f8),_0x22b757['descriptionFactory']['registerAttributeLabel'](_0x13a5f8,o(_0x2c05f4,_0x308bee));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ba040=this['editor'],_0x460c18=_0x2ba040['locale'],_0x4ad2e3=_0x2ba040['plugins']['get']('TrackChangesEditing');function _0x2fba0c(_0x14e53a,_0x2594d1){_0x4ad2e3['descriptionFactory']['registerDescriptionCallback'](_0x2e87d2=>{if('formatInline'!=_0x2e87d2['type'])return;const {data:_0x39bef0}=_0x2e87d2;return _0x39bef0&&_0x39bef0['commandName']===_0x14e53a?_0x39bef0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x460c18,'*Format:*\x20%0',_0x2594d1)}:{'type':'format','content':o(_0x460c18,'*Remove\x20format:*\x20%0',_0x2594d1)}:void 0x0;});}_0x2fba0c('bold',o(_0x460c18,'FORMAT_BOLD')),_0x2fba0c('italic',o(_0x460c18,'FORMAT_ITALIC')),_0x2fba0c('underline',o(_0x460c18,'FORMAT_UNDERLINE')),_0x2fba0c('code',o(_0x460c18,'FORMAT_CODE')),_0x2fba0c('strikethrough',o(_0x460c18,'FORMAT_STRIKETHROUGH')),_0x2fba0c('subscript',o(_0x460c18,'FORMAT_SUBSCRIPT')),_0x2fba0c('superscript',o(_0x460c18,'FORMAT_SUPERSCRIPT'));}}class O extends _0x15c086{['afterInit'](){const _0x354c8e=this['editor'],_0x361b2d=_0x354c8e['locale'];if(!_0x354c8e['plugins']['has']('BlockQuoteEditing'))return;const _0x29474d=_0x354c8e['plugins']['get']('TrackChangesEditing'),_0x39d0ce=this['editor']['commands']['get']('blockQuote');_0x29474d['enableCommand']('blockQuote',(_0x58f5ad,_0x51f327={})=>{const _0x344c41=this['editor']['model']['document']['selection'],_0x2d25a=_0x51f327&&void 0x0!==_0x51f327['forceValue']?_0x51f327['forceValue']:!_0x39d0ce['value'];let _0x6aceca=[];if(_0x2d25a){const _0x2ab31a=Array['from'](_0x344c41['getSelectedBlocks']())['filter'](_0x246e96=>oo(_0x246e96)||function(_0x4e5108,_0xb4b260){const _0x706f7a=_0xb4b260['checkChild'](_0x4e5108['parent'],'blockQuote'),_0x352af2=_0xb4b260['checkChild'](['$root','blockQuote'],_0x4e5108);return _0x706f7a&&_0x352af2;}(_0x246e96,this['editor']['model']['schema']));_0x6aceca=to(_0x2ab31a,_0x354c8e['model']);}else{const _0x5c2c90=Array['from'](_0x344c41['getSelectedBlocks']())['filter'](_0x4aa710=>oo(_0x4aa710));_0x6aceca=to(_0x5c2c90,_0x354c8e['model']);}_0x354c8e['model']['change'](()=>{for(const _0x46f1d4 of _0x6aceca)_0x29474d['markBlockFormat'](_0x46f1d4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2d25a}]});});}),_0x29474d['descriptionFactory']['registerDescriptionCallback'](_0x1a0512=>{const {data:_0x5c2326}=_0x1a0512;if(_0x5c2326&&'blockQuote'==_0x5c2326['commandName']){const _0x9a5e72=o(_0x361b2d,'ELEMENT_BLOCK_QUOTE');return _0x5c2326['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x361b2d,'*Set\x20format:*\x20%0',_0x9a5e72)}:{'type':'format','content':o(_0x361b2d,'*Remove\x20format:*\x20%0',_0x9a5e72)};}});}}function oo(_0x31de90){return'blockQuote'==_0x31de90['parent']['name'];}class G extends _0x15c086{['afterInit'](){const _0x26c532=this['editor'];_0x26c532['plugins']['has']('CaseChange')&&(_0x26c532['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x26c532['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x26c532['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x15c086{['afterInit'](){const _0xd6c662=this['editor'];_0xd6c662['commands']['get']('ckbox')&&_0xd6c662['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x15c086{['afterInit'](){const _0x50bceb=this['editor'];if(!_0x50bceb['plugins']['has']('CodeBlock'))return;const _0x4d275d=_0x50bceb['plugins']['get']('TrackChangesEditing'),_0x684c04=_0x50bceb['locale'],_0xcca2c9=_0x50bceb['config']['get']('codeBlock')['languages'],_0x55770f=_0x50bceb['commands']['get']('codeBlock');_0x4d275d['enableCommand']('indentCodeBlock'),_0x4d275d['enableCommand']('outdentCodeBlock'),_0x4d275d['enableCommand']('codeBlock',(_0x8cf064,_0x2d8640={})=>{const _0x2b1a15=_0x50bceb['model'],_0x2434fc=_0x50bceb['model']['document']['selection'],_0x173698=_0x2d8640&&void 0x0!==_0x2d8640['forceValue']?_0x2d8640['forceValue']:!_0x55770f['value'];let _0x19e9bb;_0x2d8640['language']||(_0x2d8640['language']=_0xcca2c9[0x0]['language']),_0x19e9bb=_0x173698?Array['from'](_0x2434fc['getSelectedBlocks']())['filter'](_0x3dbe19=>eo(_0x3dbe19)||function(_0x55cf80,_0x188a40){if(_0x55cf80['is']('rootElement')||_0x188a40['isLimit'](_0x55cf80))return!0x1;return _0x188a40['checkChild'](_0x55cf80['parent'],'codeBlock');}(_0x3dbe19,_0x2b1a15['schema'])):Array['from'](_0x2434fc['getSelectedBlocks']())['filter'](_0x262ce9=>eo(_0x262ce9));const _0xe28e09=to(_0x19e9bb,_0x2b1a15);_0x2b1a15['change'](()=>{for(const _0x5e1c08 of _0xe28e09)_0x4d275d['markBlockFormat'](_0x5e1c08,{'commandName':'codeBlock','commandParams':[{..._0x2d8640,'forceValue':_0x173698}],'formatGroupId':'blockName'});});}),(_0x4d275d['descriptionFactory']['registerElementLabel']('codeBlock',_0x7040b4=>o(_0x684c04,'ELEMENT_CODE_BLOCK',_0x7040b4)),_0x4d275d['descriptionFactory']['registerDescriptionCallback'](_0x1575d3=>{if('formatBlock'!=_0x1575d3['type'])return;const _0x1ca6a1=_0x684c04['t'],{data:_0x178e30}=_0x1575d3;if(!_0x178e30||'codeBlock'!=_0x178e30['commandName'])return;const _0x4b8570=_0x178e30['commandParams'][0x0]['language'],_0x5ac2c0=_0x1ca6a1(_0xcca2c9['find'](_0x5d73f1=>_0x5d73f1['language']===_0x4b8570)['label'])['toLowerCase']();return _0x178e30['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x684c04,'*Set\x20format:*\x20%0',o(_0x684c04,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5ac2c0+')')}:{'type':'format','content':o(_0x684c04,'*Remove\x20format:*\x20%0',o(_0x684c04,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5b9d04){return'codeBlock'==_0x5b9d04['name'];}class H extends _0x15c086{['afterInit'](){const _0x361ae4=this['editor'];if(!_0x361ae4['plugins']['has']('CommentsEditing'))return;_0x361ae4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5416a0,_0x5e9084,_0x371154){const _0x5df1e6=[];for(const _0x447127 of _0x5e9084['getItems']())_0x447127['hasAttribute'](_0x5416a0)&&_0x5df1e6['push'](_0x371154['createRangeOn'](_0x447127));return _0x5df1e6;}function _e(_0x3ecee3,_0x497817,{showActiveMarker:_0x53f8e6=!0x0}={}){const _0x1f4c0c=_0x3ecee3['plugins']['get']('TrackChangesEditing');return(_0x16bb49,_0x37a22a,_0x5d4d59)=>{if(!_0x5d4d59['consumable']['test'](_0x37a22a['markerRange'],_0x16bb49['name']))return;const _0x256732=_0x37a22a['markerRange']['getWalker'](),_0x243eb8=_0x37a22a['markerRange']['start'],_0x1fcc8d=_0x3ecee3['model']['schema'];let _0x21839a=null,_0x5ac659=null,_0x527a73=!0x1,_0x32b0ce=!0x1;for(const _0x167879 of _0x256732){const _0x355cd8=_0x167879['item'];_0x527a73=_0x527a73||_0x1fcc8d['isContent'](_0x355cd8);const _0x267204=_0x5d4d59['mapper']['toViewElement'](_0x355cd8);if(_0x267204&&_0x267204['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x167879['type']&&(_0x1fcc8d['isBlock'](_0x355cd8)&&!_0x1fcc8d['isLimit'](_0x355cd8)&&(_0x355cd8['nextSibling']||_0x243eb8['isAtEnd']?_0x21839a&&_0x21839a['parent']==_0x355cd8||(_0x21839a=_0x355cd8,_0x3b8203(_0x167879['previousPosition']),_0x32b0ce=!0x0):_0x5ac659=_0x5ac659||_0x167879['previousPosition']));}function _0x3b8203(_0x71f03b){const _0x51b2b2=_0x5d4d59['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x497817}),_0x1f3db8=_0x5d4d59['mapper']['toViewPosition'](_0x71f03b);_0x53f8e6&&_0x1f4c0c['activeMarkers']['includes'](_0x37a22a['markerName'])&&_0x5d4d59['writer']['addClass']('ck-suggestion-marker--active',_0x51b2b2),_0x5d4d59['writer']['insert'](_0x1f3db8,_0x51b2b2),_0x5d4d59['mapper']['bindElementToMarker'](_0x51b2b2,_0x37a22a['markerName']);}_0x527a73||_0x32b0ce||!_0x5ac659||_0x3b8203(_0x5ac659);};}class q extends _0x15c086{static get['requires'](){return[_0x272956];}['init'](){const _0x28e29f=this['editor'],_0x5372cb=_0x28e29f['plugins']['get']('TrackChangesEditing');_0x5372cb['enableCommand']('delete');const _0x56aeac=_0x28e29f['commands']['get']('deleteForward');_0x5372cb['enableCommand']('deleteForward',(_0x250569,_0x1912fa={})=>{const _0x438a40=_0x28e29f['model']['createSelection'](_0x28e29f['model']['document']['selection']);_0x438a40['isCollapsed']&&_0x28e29f['model']['modifySelection'](_0x438a40,{'direction':'forward','unit':_0x1912fa['unit']});const _0x5d9444=_0x438a40['getFirstRange'](),_0x30430c=_0x948f0b['fromRange'](_0x5d9444);let _0x1b2606;_0x250569(_0x1912fa),_0x1b2606='$graveyard'==_0x30430c['root']['rootName']?_0x28e29f['model']['createRange'](_0x5d9444['start']):_0x28e29f['model']['createRange'](_0x30430c['start'],_0x30430c['end']),_0x30430c['detach'](),_0x28e29f['model']['enqueueChange'](_0x56aeac['buffer']['batch'],_0x3d3dde=>{_0x56aeac['buffer']['lock'](),_0x3d3dde['setSelection'](_0x3d3dde['createRange'](_0x1b2606['end'])),_0x56aeac['buffer']['unlock']();});}),_0x28e29f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x28e29f,'merge'),{'priority':'high'}),_0x28e29f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3f6914,_0x15510e,_0x5c038e)=>{_0x5c038e['options']['showSuggestionHighlights']&&_e(_0x28e29f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3f6914,_0x15510e,_0x5c038e);},{'priority':'high'}),_0x28e29f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x6c7b8a,_0x1d8ba5,_0x4907e5)=>{const _0x32794e=_0x4907e5['mapper']['markerNameToElements'](_0x1d8ba5['markerName']);if(_0x32794e){for(const _0x437add of _0x32794e)_0x437add['is']('uiElement')&&(_0x4907e5['mapper']['unbindElementFromMarkerName'](_0x437add,_0x1d8ba5['markerName']),_0x4907e5['writer']['remove'](_0x437add));}},{'priority':'high'});}}class z extends _0x15c086{['afterInit'](){const _0x1b93c9=this['editor'];if(!_0x1b93c9['plugins']['has']('ListEditing'))return;const _0x9d1f74=_0x1b93c9['locale'],_0x339497=_0x1b93c9['plugins']['get']('TrackChangesEditing'),_0x1fcddb=_0x1b93c9['plugins']['has']('TodoListEditing'),_0x4319f4=!!_0x1b93c9['config']['get']('list.multiBlock');function _0x3a3ff7(_0x28c535){return{'type':'format','content':''+o(_0x9d1f74,'*Set\x20format:*\x20%0',_0x28c535)};}function _0x3920de(_0x39021c){return{'type':'format','content':''+o(_0x9d1f74,'*Remove\x20format:*\x20%0',_0x39021c)};}_0x339497['enableDefaultAttributesIntegration']('numberedList'),_0x339497['enableDefaultAttributesIntegration']('bulletedList'),_0x339497['enableDefaultAttributesIntegration']('customNumberedList'),_0x339497['enableDefaultAttributesIntegration']('customBulletedList'),_0x339497['enableDefaultAttributesIntegration']('indentList'),_0x339497['enableDefaultAttributesIntegration']('outdentList'),_0x339497['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x339497['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x339497['registerBlockAttribute']('listItemId'),_0x339497['registerBlockAttribute']('listType'),_0x339497['registerBlockAttribute']('listIndent'),_0x4319f4&&(_0x339497['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x339497['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1fcddb&&(_0x339497['enableDefaultAttributesIntegration']('todoList'),_0x339497['enableDefaultAttributesIntegration']('checkTodoList'),_0x339497['registerBlockAttribute']('todoListChecked'),_0x339497['descriptionFactory']['registerDescriptionCallback'](_0x3f2ebf=>{const {data:_0x21b521}=_0x3f2ebf;if(_0x21b521&&'todoListChecked'==_0x21b521['key'])return{'type':'format','content':_0x21b521['newValue']?o(_0x9d1f74,'*Check\x20item*'):o(_0x9d1f74,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x248df6=>{if(_0x248df6['batch']['isUndo'])return!0x1;let _0xcec665=!0x1;const _0x5b94e6=_0x339497['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fa6af=>'todoListChecked'===_0x339497['_getAttributeKey'](_0x4fa6af));for(const _0x7c45ad of _0x5b94e6){'todo'!=_0x7c45ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x339497['_findSuggestions'](_0x7c45ad['getFirstRange'](),'attribute')['find'](_0x1b9aee=>'listType'===_0x339497['_getAttributeKey'](_0x1b9aee['suggestion']))||(_0x248df6['removeMarker'](_0x7c45ad['getFirstMarker']()),_0xcec665=!0x0));}return _0xcec665;})),_0x339497['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x9d1f74,'FORMAT_INDENT'));const _0x253873={'type':'format','content':''};_0x339497['descriptionFactory']['registerDescriptionCallback'](_0x335a46=>{const {data:_0x8a42bb}=_0x335a46;if(!_0x8a42bb||'listType'!=_0x8a42bb['key'])return;let _0x179f87=_0x335a46['head'];for(;_0x179f87;){if(_0x179f87['data']&&(('listStyle'==_0x179f87['data']['key']||'listMarkerStyle'==_0x179f87['data']['key'])&&(_0x179f87['data']['newValue']&&'default'!=_0x179f87['data']['newValue']||'default'!=_0x179f87['data']['oldValue']&&!_0x8a42bb['newValue'])||!_0x4319f4&&_0x179f87['data']['key']==m))return _0x253873;_0x179f87=_0x179f87['next'];}if(null==_0x8a42bb['newValue'])switch(_0x8a42bb['oldValue']){case'bulleted':return _0x3920de(o(_0x9d1f74,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3920de(o(_0x9d1f74,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3920de(o(_0x9d1f74,'ELEMENT_TODO_LIST'));}switch(_0x8a42bb['newValue']){case'bulleted':return _0x3a3ff7(o(_0x9d1f74,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a3ff7(o(_0x9d1f74,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a3ff7(o(_0x9d1f74,'ELEMENT_TODO_LIST'));}}),_0x339497['descriptionFactory']['registerDescriptionCallback'](_0x2740dc=>{const {data:_0x3acf10}=_0x2740dc;if(_0x3acf10&&'listIndent'==_0x3acf10['key'])return null==_0x3acf10['newValue']||null==_0x3acf10['oldValue']&&0x0==_0x3acf10['newValue']?_0x253873:void 0x0;}),_0x339497['descriptionFactory']['registerDescriptionCallback'](_0xf4bb59=>{if('attribute'!=_0xf4bb59['type'])return;const {data:_0x10abc9}=_0xf4bb59;if(!_0x10abc9||'listItemId'!=_0x10abc9['key'])return;const _0x2d35cd=le(_0xf4bb59);return'newValue'==_0x2d35cd?{'type':'format','content':o(_0x9d1f74,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2d35cd?{'type':'format','content':o(_0x9d1f74,'*Split:*\x20list\x20item')}:_0x253873;}),_0x1b93c9['model']['document']['registerPostFixer'](_0x26e499=>this['listItemIdFixer'](_0x26e499)),_0x1b93c9['model']['document']['registerPostFixer'](_0xf8713d=>this['noTrackChangesFixer'](_0xf8713d)),_0x1b93c9['model']['document']['registerPostFixer'](_0x467247=>this['assureChains'](_0x467247)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3340c9){if(_0x3340c9['batch']['isUndo']||!_0x3340c9['batch']['isLocal'])return!0x1;let _0x175a99=!0x1;const _0x3b8c59=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x707e67=>_0x707e67['data']&&'listItemId'==_0x707e67['data']['key'])['filter'](_0xd3da7a=>_0xd3da7a['data']['newValue']&&_0xd3da7a['data']['oldValue']);for(const _0x520fd8 of _0x3b8c59)le(_0x520fd8)||(_0x3340c9['removeMarker'](_0x520fd8['getFirstMarker']()),_0x175a99=!0x0);return _0x175a99;}['noTrackChangesFixer'](_0x599f53){if(_0x599f53['batch']['isUndo']||!_0x599f53['batch']['isLocal'])return!0x1;const _0x43b10b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x43b10b['trackChangesCommand']['value'])return!0x1;let _0x1d7223=!0x1;const _0x488ff6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x205b03=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2fe003=>'attribute'==_0x2fe003['type'])['filter'](_0x350698=>_0x488ff6['includes'](_0x350698['attributeKey']));if(0x0==_0x205b03['length'])return _0x1d7223;for(const _0x2cf128 of _0x205b03){const _0x15c044=_0x43b10b['_findSuggestions'](_0x2cf128['range'],'attribute')['filter'](_0x2529a4=>!_0x2529a4['meta']['isNextTo'])['map'](_0x1a670e=>_0x1a670e['suggestion'])['filter'](_0x14d1a5=>{const _0x266892=_0x43b10b['_getAttributeKey'](_0x14d1a5);return _0x488ff6['includes'](_0x266892);});if(_0x15c044['length']){for(const _0x2bcadc of _0x15c044)_0x599f53['removeMarker'](_0x2bcadc['getFirstMarker']());_0x1d7223=!0x0;}}return _0x1d7223;}['assureChains'](_0x4f87fe){if(_0x4f87fe['batch']['isUndo']||!_0x4f87fe['batch']['isLocal'])return!0x1;const _0xdb6400=this['editor']['plugins']['get']('TrackChangesEditing');let _0x24afc4=!0x1;const _0x595371=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x22bd1b of _0xdb6400['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d9d8b=_0xdb6400['_findSuggestions'](_0x22bd1b['getFirstRange'](),'attribute')['map'](_0x239ec0=>_0x239ec0['suggestion'])['filter'](_0x580290=>_0x580290['data']&&_0x595371['includes'](_0x580290['data']['key']));if(!_0x5d9d8b['length'])continue;const _0x1393c3=_0x5d9d8b[0x0]['head']['attributes']['groupId'];if(!_0x5d9d8b['every'](_0x4db98a=>_0x4db98a['attributes']['groupId']===_0x1393c3)){for(const _0x666d34 of _0x5d9d8b)_0x2ec377(_0x666d34,_0x1393c3)&&(_0x24afc4=!0x0);}}return _0x24afc4;function _0x536acf(_0x2eae24,_0x3fe61a){for(const _0x441d8e of _0xdb6400['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1edbee=>'attribute'==_0x1edbee['type']&&_0x1edbee['attributes']['groupId']==_0x2eae24))_0x441d8e['setAttribute']('groupId',_0x3fe61a);}function _0x2ec377(_0x213865,_0x34db90){let _0x11f4c7=_0x213865['head'],_0x5ccbd9=!0x1;for(;_0x11f4c7;)_0x11f4c7['attributes']['groupId']!=_0x34db90&&(_0x536acf(_0x11f4c7['attributes']['groupId'],_0x34db90),_0x11f4c7['setAttribute']('groupId',_0x34db90),_0x5ccbd9=!0x0),_0x11f4c7=_0x11f4c7['next'];return _0x5ccbd9;}}['_supportLegacySuggestions'](){const _0x1db73b=this['editor'],_0x49cf34=_0x1db73b['locale'],_0x5bf134=_0x1db73b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5bf134['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1b9407,_0x2b3576){const _0x2021c7=[];for(let _0x44ad2b of _0x1b9407)_0x44ad2b['start']['nodeAfter']===_0x44ad2b['end']['parent']&&(_0x44ad2b=_0x1db73b['model']['createRange'](_0x1db73b['model']['createPositionAt'](_0x44ad2b['start']['nodeAfter'],0x0))),_0x2021c7['push'](_0x44ad2b);_0x1db73b['model']['change'](_0x401121=>{const _0x4027c0=_0x1db73b['model']['document']['selection'],_0x4926b5=Array['from'](_0x4027c0['getRanges']())['map'](_0x30f910=>_0x948f0b['fromRange'](_0x30f910));_0x401121['setSelection'](_0x2021c7),_0x1db73b['commands']['get'](_0x2b3576['commandName'])['refresh'](),_0x2b3576['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1db73b['execute'](_0x2b3576['commandName'],..._0x2b3576['commandParams']),_0x401121['setSelection'](_0x4926b5);for(const _0x512a9a of _0x4926b5)_0x512a9a['detach']();});}),_0x5bf134['descriptionFactory']['registerElementLabel'](function(_0x3c28fd){const _0x199cd2=!_0x1db73b['model']['schema']['isObject'](_0x3c28fd),_0x5e556f=_0x3c28fd['previousSibling'],_0x3f985b=_0x3c28fd['nextSibling'],_0xa9df96=_0x3c28fd['getAttribute']('listItemId'),_0x1bd253=!_0x5e556f||_0x5e556f['getAttribute']('listItemId')!==_0xa9df96,_0x44aabc=!_0x3f985b||_0x3f985b['getAttribute']('listItemId')!==_0xa9df96;return _0x199cd2&&Boolean(_0xa9df96)&&_0x1bd253&&_0x44aabc;},_0x22a030=>o(_0x49cf34,'ELEMENT_LIST_ITEM',_0x22a030));}['_registerLegacyDescription'](){const _0x346b7c=this['editor'],_0x2c6e8c=_0x346b7c['locale'];function _0x7996f4(_0x2122a6){const _0xdde061=_0x346b7c['commands']['get']('bulletedList')['value'],_0x1487ca=_0x346b7c['commands']['get']('numberedList')['value'];return'numberedList'===_0x2122a6?_0xdde061:_0x1487ca;}_0x346b7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x7d8fa6){if('formatBlock'!=_0x7d8fa6['type'])return;const {data:_0x406d33}=_0x7d8fa6;if(!_0x406d33)return;let _0x2e3de5,_0x3d96eb,_0x2aa7bc,_0x58d991;switch(_0x406d33['commandName']){case'bulletedList':_0x2aa7bc=_0x406d33['commandParams'][0x0]['forceValue'],_0x58d991=_0x7996f4(_0x406d33['commandName']),_0x2e3de5=_0x2aa7bc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58d991&&_0x346b7c['config']['get']('list.multiBlock')||(_0x2e3de5='*Change\x20to:*\x20%0'),_0x3d96eb={'type':'format','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2aa7bc=_0x406d33['commandParams'][0x0]['forceValue'],_0x58d991=_0x7996f4(_0x406d33['commandName']),_0x2e3de5=_0x2aa7bc?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x58d991&&_0x346b7c['config']['get']('list.multiBlock')||(_0x2e3de5='*Change\x20to:*\x20%0'),_0x3d96eb={'type':'format','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2e3de5='*Indent:*\x20%0',_0x3d96eb={'type':'format','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2e3de5=function(_0x5b233b){const _0x2720e9=_0x5b233b['getFirstRange']();let _0xb06ce7=_0x2720e9['start']['nodeAfter'];for(;_0xb06ce7&&_0x2720e9['containsItem'](_0xb06ce7);){if(_0xb06ce7['getAttribute']('listIndent')>0x0)return!0x1;_0xb06ce7=_0xb06ce7['nextSibling'];}return!0x0;}(_0x7d8fa6)?o(_0x2c6e8c,'*Format:*\x20remove\x20from\x20%0',o(_0x2c6e8c,function(_0x376fb9){return'ELEMENT_'+_0x376fb9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x7d8fa6))):o(_0x2c6e8c,'*Outdent:*\x20%0',o(_0x2c6e8c,'ELEMENT_LIST_ITEM')),_0x3d96eb={'type':'format','content':_0x2e3de5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x406d33['multipleBlocks']&&(_0x2e3de5='*Merge:*\x20%0',_0x3d96eb={'type':'deletion','content':o(_0x2c6e8c,_0x2e3de5,o(_0x2c6e8c,'ELEMENT_LIST_ITEM'))});}return _0x3d96eb;});}}function le(_0x9a059d){let _0x28526b=_0x9a059d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x28526b;){const _0x429295=_0x28526b['getAttribute']('listItemId');if(!_0x429295)return!0x1;if(_0x429295==_0x9a059d['data']['newValue'])return'newValue';if(_0x429295==_0x9a059d['data']['oldValue'])return'oldValue';_0x28526b=_0x28526b['previousSibling'];}return!0x1;}class pe extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1a79bb=this['editor']['config']['get']('list.properties'),_0x2cd288=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a79bb['styles']&&(_0x2cd288['enableDefaultAttributesIntegration']('listStyle'),_0x2cd288['registerBlockAttribute']('listStyle')),_0x1a79bb['reversed']&&(_0x2cd288['enableDefaultAttributesIntegration']('listReversed'),_0x2cd288['registerBlockAttribute']('listReversed')),_0x1a79bb['startIndex']&&(_0x2cd288['enableDefaultAttributesIntegration']('listStart'),_0x2cd288['registerBlockAttribute']('listStart'));const _0x19b723={'type':'format','content':''};_0x2cd288['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x21be29=this['editor']['locale'];_0x2cd288['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x21be29,'FORMAT_LIST_REVERSED')),_0x2cd288['descriptionFactory']['registerDescriptionCallback'](_0x245de2=>{const {data:_0x27f83e}=_0x245de2;if(_0x27f83e&&'listReversed'==_0x27f83e['key'])return null==_0x27f83e['newValue']||0x0==_0x27f83e['newValue']&&null==_0x27f83e['oldValue']?_0x19b723:void 0x0;}),_0x2cd288['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x21be29,'FORMAT_LIST_START')),_0x2cd288['descriptionFactory']['registerDescriptionCallback'](_0xae6e6e=>{const {data:_0x25ffbb}=_0xae6e6e;if(_0x25ffbb&&'listStart'==_0x25ffbb['key'])return null==_0x25ffbb['newValue']||0x1==_0x25ffbb['newValue']&&null==_0x25ffbb['oldValue']?_0x19b723:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x51c1ac=>{if(_0x51c1ac['batch']['isUndo'])return!0x1;let _0x54f565=!0x1;const _0x54c7c3=_0x2cd288['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x317207=>{const _0xed1471=_0x2cd288['_getAttributeKey'](_0x317207);return'listStart'==_0xed1471||'listReversed'==_0xed1471;});for(const _0x17219e of _0x54c7c3){const _0x411b67=_0x17219e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x411b67||'customNumbered'==_0x411b67)continue;_0x2cd288['_findSuggestions'](_0x17219e['getFirstRange'](),'attribute')['find'](_0x495e3d=>'listType'==_0x2cd288['_getAttributeKey'](_0x495e3d['suggestion']))||(_0x51c1ac['removeMarker'](_0x17219e['getFirstMarker']()),_0x54f565=!0x0);}return _0x54f565;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x44644a){const _0x129c1e=this['editor']['locale'],{data:_0x469cde}=_0x44644a,_0x581ce4={'type':'format','content':''};if(!_0x469cde||'listStyle'!=_0x469cde['key'])return;if(!_0x469cde['oldValue'])return'default'==_0x469cde['newValue']?_0x581ce4:{'type':'format','content':''+o(_0x129c1e,'*Set\x20format:*\x20%0',o(_0x129c1e,this['_getTranslationKeyForListStyle'](_0x469cde['newValue'])))};if(!_0x469cde['newValue']){if('default'==_0x469cde['oldValue'])return _0x581ce4;let _0x169c03=_0x44644a['head'];for(;_0x169c03;){if(_0x169c03['data']&&'listType'==_0x169c03['data']['key']&&_0x169c03['data']['newValue'])return _0x581ce4;_0x169c03=_0x169c03['next'];}return{'type':'format','content':''+o(_0x129c1e,'*Remove\x20format:*\x20%0',o(_0x129c1e,this['_getTranslationKeyForListStyle'](_0x469cde['oldValue'])))};}if('default'!=_0x469cde['newValue'])return{'type':'format','content':''+o(_0x129c1e,'*Set\x20format:*\x20%0',o(_0x129c1e,this['_getTranslationKeyForListStyle'](_0x469cde['newValue'])))};let _0x973b53=_0x44644a['head'];for(;_0x973b53;){if(_0x973b53['data']&&'listType'==_0x973b53['data']['key']&&_0x973b53['data']['newValue']&&_0x973b53['data']['oldValue'])return _0x581ce4;_0x973b53=_0x973b53['next'];}return{'type':'format','content':o(_0x129c1e,'*Set\x20format:*\x20%0',o(_0x129c1e,'ELEMENT_'+_0x44644a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x17773f=this['editor'],_0x4d41ad=_0x17773f['locale'];_0x17773f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492886=>{if('formatBlock'!=_0x492886['type'])return;const {data:_0xf45c99}=_0x492886;if(!_0xf45c99)return;let _0x296cf1,_0x360449;switch(_0xf45c99['commandName']){case'listStyle':_0x296cf1='*Change\x20to:*\x20%0',_0x360449={'type':'format','content':o(_0x4d41ad,_0x296cf1,o(_0x4d41ad,this['_getTranslationKeyForListStyle'](_0xf45c99['commandParams'][0x0]['type'])))};break;case'listReversed':_0x296cf1=_0xf45c99['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x360449={'type':'format','content':o(_0x4d41ad,_0x296cf1)};break;case'listStart':_0x296cf1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x360449={'type':'format','content':o(_0x4d41ad,_0x296cf1,_0xf45c99['commandParams'][0x0]['startIndex'])};}return _0x360449;});}['_getTranslationKeyForListStyle'](_0x4f0f61){return'ELEMENT_'+function(_0xd60820){if(ye['includes'](_0xd60820))return'bulleted';if(he['includes'](_0xd60820))return'numbered';return null;}(_0x4f0f61)['toUpperCase']()+'_LIST_'+_0x4f0f61['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],he=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x15c086{static get['requires'](){return[_0x331ec9];}['init'](){const _0x145bdc=this['editor'],_0x26dd5f=_0x145bdc['plugins']['get']('TrackChangesEditing'),_0x1bbfd6=_0x145bdc['commands']['get']('enter');_0x26dd5f['enableCommand']('enter',()=>{_0x145bdc['model']['change'](_0x3e2e5f=>{const _0x2f8f6f=_0x145bdc['model']['document']['selection'],_0x1412ce=_0x2f8f6f['getFirstPosition'](),_0x4a05b7=_0x948f0b['fromRange'](_0x2f8f6f['getFirstRange']());if(_0x1bbfd6['enterBlock'](_0x3e2e5f)){const _0x398739=_0x145bdc['model']['createPositionAt'](_0x1412ce['parent']['nextSibling'],0x0),_0x41a5cf=_0x3e2e5f['createRange'](_0x1412ce,_0x398739);_0x26dd5f['markInsertion'](_0x41a5cf);}else _0x3e2e5f['setSelection'](_0x3e2e5f['createRange'](_0x4a05b7['end']));_0x4a05b7['detach'](),_0x1bbfd6['fire']('afterExecute',{'writer':_0x3e2e5f});});}),_0x145bdc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x145bdc,'split'),{'priority':'high'}),_0x145bdc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x513bff,_0x51ce3d,_0x564e09)=>{const _0x5857fd=_0x564e09['mapper']['markerNameToElements'](_0x51ce3d['markerName']);if(_0x5857fd){for(const _0x5151d4 of _0x5857fd)_0x5151d4['hasClass']('ck-suggestion-marker-split')&&(_0x564e09['mapper']['unbindElementFromMarkerName'](_0x5151d4,_0x51ce3d['markerName']),_0x564e09['writer']['remove'](_0x5151d4));}},{'priority':'high'}),_0x145bdc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x120bdb,_0x13d002,_0x367812)=>{_0x367812['options']['showSuggestionHighlights']&&_e(_0x145bdc,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x120bdb,_0x13d002,_0x367812);},{'priority':'high'});}}class J extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x17a7e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x17a7e3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x17a7e3['enableCommand']('findNext'),_0x17a7e3['enableCommand']('findPrevious'),_0x17a7e3['enableCommand']('replace'),_0x17a7e3['enableCommand']('replaceAll');}['handleFindCommand'](_0x36e7be,_0x186b07,_0x2f9df2={}){const _0x40c6fe=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x36e7be(_0x58718c=>{let _0x28f1f3=('string'==typeof _0x186b07?_0x40c6fe['findByTextCallback'](_0x186b07,_0x2f9df2):_0x186b07)(_0x58718c);Array['isArray'](_0x28f1f3)&&(_0x28f1f3={'results':_0x28f1f3,'searchText':'string'==typeof _0x186b07?_0x186b07:''});const _0x522636=_0x28f1f3['results']['filter'](_0x1f0f77=>!0x1===this['_isInDeletionRange'](_0x1f0f77,_0x58718c['item']));return{..._0x28f1f3,'results':_0x522636};},_0x2f9df2);}['_isInDeletionRange'](_0x104728,_0x15f4f7){const _0x5b3e6f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15f4f7,_0x104728['start']),this['editor']['model']['createPositionAt'](_0x15f4f7,_0x104728['end']));for(const _0x380b52 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5b3e6f['getIntersection'](_0x380b52['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 _0x15c086{['afterInit'](){const _0x8be507=this['editor']['locale'],_0x31dda8=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3584e1,commandName:_0x20b10b}of ro)this['editor']['plugins']['has'](_0x3584e1)&&(_0x31dda8['enableDefaultAttributesIntegration'](_0x20b10b),_0x31dda8['registerInlineAttribute'](_0x20b10b));_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x8be507,'FORMAT_FONT_SIZE')),_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x8be507,'FORMAT_FONT_FAMILY')),_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x8be507,'FORMAT_FONT_COLOR')),_0x31dda8['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x8be507,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd63c5d=this['editor'],_0x3a1b78=_0xd63c5d['locale'];_0xd63c5d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24e15c=>{const _0x5cc437=_0x3a1b78['t'];if('formatInline'!=_0x24e15c['type'])return;const {data:_0x12d6c8}=_0x24e15c;if(null!=_0x12d6c8){if('fontSize'==_0x12d6c8['commandName']){const _0x2abbe4=_0x12d6c8['commandParams'][0x0]['value'];if(_0x2abbe4){const _0x2dfee5=_0x5cc437(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4315aa=>_0x4315aa['model']==_0x2abbe4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20size:*\x20%0',_0x2dfee5)};}return{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x12d6c8['commandName']){const _0x160dcd=_0x12d6c8['commandParams'][0x0]['value'];return _0x160dcd?{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20family:*\x20%0',_0x160dcd)}:{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20family*')};}if('fontColor'==_0x12d6c8['commandName']){const _0xc45c32=_0x12d6c8['commandParams'][0x0]['value'];if(_0xc45c32){const _0xea44c3=_0x4c81bc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x57e583=>_0x57e583['model']==_0xc45c32);let _0x120941=_0xc45c32,_0x4eabed='';return _0xea44c3&&(_0x120941=_0xea44c3['label'],_0x4eabed=_0x5cc437(_0x120941)['toLowerCase']()),{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20color:*\x20%0',_0x4eabed)['trim'](),'color':{'value':_0xc45c32,'title':_0x4eabed||_0x120941}};}return{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x12d6c8['commandName']){const _0x15d6c5=_0x12d6c8['commandParams'][0x0]['value'];if(_0x15d6c5){const _0x155ff0=_0x4c81bc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x589f71=>_0x589f71['model']==_0x15d6c5);let _0x5c993c=_0x15d6c5,_0x3ebc02='';return _0x155ff0&&(_0x5c993c=_0x155ff0['label'],_0x3ebc02=_0x5cc437(_0x5c993c)['toLowerCase']()),{'type':'format','content':o(_0x3a1b78,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ebc02)['trim'](),'color':{'value':_0x15d6c5,'title':_0x3ebc02||_0x5c993c}};}return{'type':'format','content':o(_0x3a1b78,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x15c086{['afterInit'](){const _0x3f3f4e=this['editor'],_0x3ea6b5=_0x3f3f4e['plugins']['get']('TrackChangesEditing'),_0xce74f9=_0x3f3f4e['commands']['get']('copyFormat'),_0x5c10e7=_0x3f3f4e['commands']['get']('pasteFormat');_0xce74f9&&_0x5c10e7&&(_0x3ea6b5['enableDefaultAttributesIntegration']('pasteFormat'),_0x3ea6b5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x52b5b6=this['editor'],_0x33eea8=_0x52b5b6['locale'];_0x52b5b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52688d=>{if('formatBlock'!=_0x52688d['type']&&'formatInline'!=_0x52688d['type'])return;const {data:_0x134232}=_0x52688d;if(_0x134232&&'pasteFormat'===_0x134232['commandName']){const _0x137e02=[],_0x9d6696=_0x134232['commandParams'][0x0];for(const [_0x2c22eb,_0x3840d6]of Object['entries'](_0x9d6696))_0x137e02['push'](so(_0x52b5b6,_0x2c22eb,_0x3840d6));return _0x137e02['length']?{'type':'format','content':o(_0x33eea8,'*Set\x20format\x20to:*\x20%0',_0x137e02['join'](',\x20'))}:{'type':'format','content':o(_0x33eea8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x44b419,_0x45b78e,_0x19cdec){const _0x571946=_0x44b419['locale']['t'],_0x417efc=_0x45b78e['split'](/(?=[A-Z])/)['join']('\x20'),_0x154dbf=_0x571946(_0x417efc['charAt'](0x0)['toUpperCase']()+_0x417efc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x19cdec)return _0x154dbf;if('fontColor'===_0x45b78e||'fontBackgroundColor'===_0x45b78e){const _0x57234e=_0x4c81bc(_0x44b419['config']['get']('fontColor.colors'))['find'](_0x1fd8e5=>_0x1fd8e5['model']==_0x19cdec);return _0x154dbf+'\x20('+(_0x57234e?_0x571946(_0x57234e['label'])['toLowerCase']():_0x19cdec)+')';}if('fontSize'===_0x45b78e&&isNaN(parseFloat(_0x19cdec))){const _0x3e1540=_0x44b419['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x44b419['config']['get']('fontSize.options'))['find'](_0x5c975b=>_0x5c975b['model']==_0x19cdec);return _0x154dbf+'\x20('+(_0x3e1540?_0x571946(_0x3e1540['title'])['toLowerCase']():_0x19cdec)+')';}return _0x154dbf+'\x20('+_0x19cdec+')';}class Y extends _0x15c086{['_headingOptions'];['afterInit'](){const _0x107cb1=this['editor'];if(!_0x107cb1['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x107cb1['config']['get']('heading.options');const _0x2b622e=_0x107cb1['locale'],_0x24572c=_0x107cb1['plugins']['get']('TrackChangesEditing');_0x24572c['enableDefaultAttributesIntegration']('heading');for(const _0x34a234 of this['_headingOptions'])'paragraph'!=_0x34a234['model']&&_0x24572c['descriptionFactory']['registerElementLabel'](_0x34a234['model'],_0x35a209=>{const _0x319682=this['_getHeadingLevel'](_0x34a234['model']);return null!==_0x319682?_0x21dbfe(_0x35a209,_0x319682):_0x4c3ade(_0x35a209,_0x34a234['title']);});function _0x21dbfe(_0x5bff93,_0x570d08){return o(_0x2b622e,'ELEMENT_HEADING',[_0x5bff93,_0x570d08]);}function _0x4c3ade(_0x3ed080,_0x357946){return o(_0x2b622e,'ELEMENT_HEADING_CUSTOM',[_0x3ed080,_0x357946]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x551f85=this['editor'],_0x2a86a7=_0x551f85['locale'];function _0x1a5723(_0x3e3309,_0x501479){return o(_0x2a86a7,'ELEMENT_HEADING_CUSTOM',[_0x3e3309,_0x501479]);}_0x551f85['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb43243=>{if('formatBlock'!=_0xb43243['type'])return;const {data:_0x3c4386}=_0xb43243;if(_0x3c4386&&'heading'==_0x3c4386['commandName']){const _0x7fd84c=_0x3c4386['commandParams'][0x0]['value'],_0x35b88b=this['_getHeadingLevel'](_0x7fd84c);if(null!==_0x35b88b)return{'type':'format','content':o(_0x2a86a7,'*Change\x20to:*\x20%0',(_0x4092dc=0x1,_0x54de5e=_0x35b88b,o(_0x2a86a7,'ELEMENT_HEADING',[_0x4092dc,_0x54de5e])))};const _0xb5ce56=this['_headingOptions']['find'](_0x58ab57=>_0x58ab57['model']===_0x7fd84c)['title'];return{'type':'format','content':o(_0x2a86a7,'*Change\x20to:*\x20%0',_0x1a5723(0x1,_0xb5ce56))};}var _0x4092dc,_0x54de5e;});}['_getHeadingLevel'](_0x4a0462){const _0x557519=_0x4a0462['match'](/^heading(\d+)/);if(_0x557519)return _0x557519[0x1];const _0x11f35e=this['_headingOptions']?.['find'](_0x3535b1=>_0x3535b1['model']==_0x4a0462);if(_0x11f35e&&_0x11f35e['view']){const _0x18738b=_0x11f35e['view'],_0x1cd260=(_0x18738b['name']??_0x18738b)['match'](/^h(\d+)/);if(_0x1cd260)return _0x1cd260[0x1];}return null;}}class Z extends _0x15c086{['afterInit'](){const _0x4f57cd=this['editor'];if(!_0x4f57cd['plugins']['has']('HighlightEditing'))return;const _0x5462e8=_0x4f57cd['plugins']['get']('TrackChangesEditing'),_0x3c4090=_0x4f57cd['locale'];_0x5462e8['enableDefaultAttributesIntegration']('highlight'),_0x5462e8['registerInlineAttribute']('highlight'),_0x5462e8['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3c4090,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4664f3=this['editor'],_0x1b860d=_0x4664f3['locale'];_0x4664f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x104c96=>{if('formatInline'!=_0x104c96['type'])return;const {data:_0x4d2e41}=_0x104c96;if(_0x4d2e41&&'highlight'==_0x4d2e41['commandName']){const _0x14a355=_0x1b860d['t'],_0x311bd3=_0x4d2e41['commandParams'][0x0]['value'];if(_0x311bd3){const _0x3dd9d=_0x4664f3['config']['get']('highlight.options')['find'](_0x2c0c35=>_0x2c0c35['model']==_0x311bd3),_0x346f26=_0x14a355(_0x3dd9d['title'])['toLowerCase']();return{'type':'format','content':o(_0x1b860d,'*Set\x20highlight:*\x20%0',_0x346f26),'color':{'value':_0x3dd9d['color'],'title':_0x3dd9d['title']}};}return{'type':'format','content':o(_0x1b860d,'*Remove\x20highlight*',o(_0x1b860d,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x15c086{['afterInit'](){const _0x150f8f=this['editor'];if(!_0x150f8f['plugins']['has']('HorizontalLineEditing'))return;_0x150f8f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa87649=_0x150f8f['plugins']['get']('TrackChangesEditing'),_0x4dfa5a=_0x150f8f['locale'];_0xa87649['descriptionFactory']['registerElementLabel']('horizontalLine',_0x112724=>o(_0x4dfa5a,'ELEMENT_HORIZONTAL_LINE',_0x112724)),_0x150f8f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xa64e80,{writer:_0x2580ac,options:_0x46c142})=>{if(!_0x46c142['showSuggestionHighlights'])return null;const _0x29281d=_0x2580ac['createContainerElement']('div'),_0x4e2702=_0x2580ac['createEmptyElement']('hr');return _0x2580ac['addClass']('ck-horizontal-line',_0x29281d),_0x2580ac['insert'](_0x2580ac['createPositionAt'](_0x29281d,0x0),_0x4e2702),_0x29281d;},'converterPriority':'high'});}}class et extends _0x15c086{['afterInit'](){const _0x5507ac=this['editor'];if(!_0x5507ac['plugins']['has']('HtmlEmbed'))return;const _0x5413ee=_0x5507ac['plugins']['get']('TrackChangesEditing'),_0x3edce3=_0x5507ac['locale'];_0x5413ee['descriptionFactory']['registerElementLabel']('rawHtml',_0x58ae99=>o(_0x3edce3,'ELEMENT_HTML_EMBED',_0x58ae99)),_0x5413ee['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5413ee['registerBlockAttribute']('value'),_0x5413ee['descriptionFactory']['registerDescriptionCallback'](_0x5620c4=>{if('attribute'!=_0x5620c4['type'])return;const {data:_0x13593f}=_0x5620c4;if(_0x13593f&&'value'==_0x13593f['key']&&_0x5620c4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x553fb0=o(_0x3edce3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3edce3,'*Change\x20%0\x20content*',_0x553fb0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdb2974=this['editor'],_0x2faa40=_0xdb2974['locale'];_0xdb2974['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2af0e1=>{if('formatBlock'!=_0x2af0e1['type'])return;const {data:_0x52a83f}=_0x2af0e1;if(_0x52a83f&&'htmlEmbed'==_0x52a83f['commandName']){const _0x238aea=o(_0x2faa40,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2faa40,'*Change\x20%0\x20content*',_0x238aea)};}});}}class it extends _0x15c086{['afterInit'](){const _0x31b339=this['editor'];if(!_0x31b339['plugins']['has']('ImageEditing'))return;const _0x507c92=_0x31b339['plugins']['get']('TrackChangesEditing'),_0xcc3710=_0x31b339['plugins']['get']('ImageUtils'),_0x1813da=_0x31b339['locale'];_0x507c92['enableCommand']('insertImage'),_0x507c92['descriptionFactory']['registerElementLabel']('imageBlock',_0x5a25d3=>o(_0x1813da,'ELEMENT_IMAGE',_0x5a25d3)),_0x507c92['descriptionFactory']['registerElementLabel']('imageInline',_0x2baad9=>o(_0x1813da,'ELEMENT_INLINE_IMAGE',_0x2baad9)),_0x507c92['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1813da,'ELEMENT_CAPTION')),_0x31b339['plugins']['has']('ImageUploadEditing')&&_0x507c92['enableCommand']('uploadImage'),_0x31b339['plugins']['has']('ImageBlockEditing')&&_0x31b339['plugins']['has']('ImageInlineEditing')&&(_0x507c92['enableCommand']('imageTypeInline',(_0x3ef9c7,_0x1fb237)=>{const _0x383ca2=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']);_0x31b339['model']['change'](()=>{_0x507c92['markBlockFormat'](_0x383ca2,{'commandName':'imageTypeInline','commandParams':[_0x1fb237]},[],'convertBlockImageToInline');});}),_0x507c92['enableCommand']('imageTypeBlock',(_0x569b05,_0x57f567)=>{_0x31b339['model']['change'](_0x108300=>{let _0x595c94=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x4a2159=_0x108300['createRangeOn'](_0x595c94);const _0x4d4cfa=_0x5337e8['fromPosition'](_0x4a2159['start'],'toPrevious'),_0x335d66=_0x5337e8['fromPosition'](_0x4a2159['end'],'toNext');_0x507c92['forceDefaultExecution'](()=>_0x569b05(_0x57f567)),_0x595c94=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x4a2159=_0x108300['createRangeOn'](_0x595c94);const _0xaecba0=_0x108300['createRange'](_0x4d4cfa,_0x335d66);_0x4d4cfa['detach'](),_0x335d66['detach'](),_0x507c92['markBlockFormat'](_0x595c94,{'commandName':'imageTypeInline','commandParams':[_0x57f567]},[],'convertInlineImageToBlock'),_0xaecba0['start']['isBefore'](_0x4a2159['start'])&&_0x507c92['markInsertion'](_0x108300['createRange'](_0xaecba0['start'],_0x4a2159['start']),'convertInlineImageToBlock'),_0x4a2159['end']['isBefore'](_0xaecba0['end'])&&_0x507c92['markInsertion'](_0x108300['createRange'](_0x4a2159['end'],_0xaecba0['end']),'convertInlineImageToBlock');});}),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x507c92['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x54d704])=>{const _0x24236b=_0x507c92['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x21b50f=_0x54d704['start'],_0x57acdd=_0x54d704['end'];const _0x5153fc=_0x31b339['model']['schema']['getNearestSelectionRange'](_0x21b50f,'backward'),_0x10135a=_0x31b339['model']['schema']['getNearestSelectionRange'](_0x57acdd,'forward');_0x5153fc['isCollapsed']&&(_0x21b50f=_0x5153fc['start']),_0x10135a['isCollapsed']&&(_0x57acdd=_0x10135a['end']),_0x24236b([_0x31b339['model']['createRange'](_0x21b50f,_0x57acdd)]);}),_0x507c92['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x689873),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x689873)),_0x31b339['plugins']['has']('ImageCaptionEditing')&&(_0x507c92['enableCommand']('toggleImageCaption',(_0x196da3,_0x3d2d93)=>{const _0xfe7e52=_0x31b339['plugins']['get']('ImageCaptionUtils');let _0x3ddb79=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x603b79=_0xfe7e52['getCaptionFromImageModelElement'](_0x3ddb79);_0x31b339['model']['change'](()=>{if(_0x603b79)return void _0x507c92['markDeletion'](_0x31b339['model']['createRangeOn'](_0x603b79));const _0x36f62e=_0xcc3710['isBlockImage'](_0x3ddb79);_0x196da3(_0x3d2d93),_0x3ddb79=_0xcc3710['getClosestSelectedImageElement'](_0x31b339['model']['document']['selection']),_0x603b79=_0xfe7e52['getCaptionFromImageModelElement'](_0x3ddb79),_0x507c92['markInsertion'](_0x31b339['model']['createRangeOn'](_0x603b79),_0x36f62e?null:'imageCaption');});}),_0x507c92['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x689873));const _0x4bca0a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2769db(_0x939b51,_0x194896){const _0x3e49b3=_0x4bca0a['findIndex'](({type:_0x2071be,subType:_0x49023c})=>_0x939b51['type']==_0x2071be&&_0x939b51['subType']==_0x49023c),_0x226455=_0x4bca0a['findIndex'](({type:_0x249dfd,subType:_0x22f256})=>_0x194896['type']==_0x249dfd&&_0x194896['subType']==_0x22f256);if(_0x3e49b3<0x0||_0x226455<0x0)return!0x1;const _0x369fb4=_0x939b51['getFirstRange'](),_0x262798=_0x194896['getFirstRange']();if((0x0==_0x3e49b3||0x1==_0x3e49b3)&&0x2==_0x226455&&_0x369fb4['isIntersecting'](_0x262798))return!0x0;if(0x2==_0x3e49b3&&0x3==_0x226455){const _0x5b368b=_0x507c92['_findSuggestions'](_0x369fb4,'insertion')['filter'](({suggestion:_0x2c4bd8,meta:_0xc988dd})=>_0xc988dd['isOwn']&&'convertInlineImageToBlock'==_0x2c4bd8['subType']);if(_0x5b368b['length']>0x1&&_0x262798['end']['isEqual'](_0x369fb4['start']))return!0x0;if(0x1==_0x5b368b['length']&&(_0x369fb4['start']['isEqual'](_0x262798['end'])||_0x369fb4['end']['isEqual'](_0x262798['start'])))return!0x0;}if(0x3==_0x3e49b3&&0x3==_0x226455&&_0x369fb4['start']['isBefore'](_0x262798['start'])){const _0x13b6a1=_0x369fb4['end']['nodeAfter'],_0x2bf691=_0x262798['start']['nodeBefore'];return _0xcc3710['isBlockImage'](_0x13b6a1)&&_0x13b6a1===_0x2bf691;}return!0x1;}function _0x689873(_0x26e5ce,_0x2a0430){return _0x2769db(_0x26e5ce,_0x2a0430)?[_0x26e5ce,_0x2a0430]:_0x2769db(_0x2a0430,_0x26e5ce)?[_0x2a0430,_0x26e5ce]:null;}_0x31b339['plugins']['has']('ImageResize')&&(_0x507c92['enableDefaultAttributesIntegration']('resizeImage'),_0x507c92['registerBlockAttribute']('resizedWidth'),_0x507c92['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1813da,'FORMAT_IMAGE_SIZE'))),_0x31b339['plugins']['has']('ImageTextAlternativeEditing')&&(_0x507c92['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x507c92['registerBlockAttribute']('alt')),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x218c73=>{if(!!_0x4bca0a['find'](({type:_0x461f49,subType:_0x18a8f2})=>_0x218c73['type']==_0x461f49&&_0x218c73['subType']==_0x18a8f2))return _0x218c73['previous']?{}:void 0x0;}),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x1eaa55=>{if('insertion'==_0x1eaa55['type']||'deletion'==_0x1eaa55['type']){const _0x17ba4e=_0x1eaa55['getContainedElement']();if(_0x17ba4e&&_0x17ba4e['is']('element','caption'))return{'type':'insertion'==_0x1eaa55['type']?'addObject':'removeObject','element':_0x17ba4e,'quantity':0x1};}}),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x11bc7b=>'formatBlock'==_0x11bc7b['type']&&'convertInlineImageToBlock'==_0x11bc7b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x11bc7b['type']&&'convertBlockImageToInline'==_0x11bc7b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x507c92['descriptionFactory']['registerDescriptionCallback'](_0x42e072=>{if('attribute'!=_0x42e072['type'])return;const {data:_0x4c8317}=_0x42e072;if(!_0x4c8317||'alt'!=_0x4c8317['key'])return;const _0x46be88=_0x4c8317['newValue'];return _0x46be88?{'type':'format','content':o(_0x1813da,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x46be88+'\x22')}:{'type':'format','content':o(_0x1813da,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166dd4=this['editor'],_0x1103c9=_0x166dd4['locale'];_0x166dd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d3e08=>{if('formatBlock'!=_0x6d3e08['type']&&'formatInline'!=_0x6d3e08['type'])return;const {data:_0x366bf1}=_0x6d3e08;if(_0x366bf1){if('imageTextAlternative'==_0x366bf1['commandName']){const _0x1f661f=_0x366bf1['commandParams'][0x0]['newValue'];return _0x1f661f?{'type':'format','content':o(_0x1103c9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1f661f+'\x22')}:{'type':'format','content':o(_0x1103c9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x366bf1['commandName']){const _0x257c6f=_0x366bf1['commandParams'][0x0]['width'];return _0x257c6f?{'type':'format','content':o(_0x1103c9,'*Set\x20image\x20width:*\x20%0',_0x257c6f)}:{'type':'format','content':o(_0x1103c9,'*Reset\x20image\x20width*')};}}});}}class st extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1edf4f=this['editor']['locale'],_0x661499=this['editor']['plugins']['get']('TrackChangesEditing');_0x661499['enableDefaultAttributesIntegration']('replaceImageSource'),_0x661499['registerBlockAttribute']('src'),_0x661499['descriptionFactory']['registerDescriptionCallback'](_0x2bbf5e=>{if('attribute'!=_0x2bbf5e['type'])return;const {data:_0x9b951a}=_0x2bbf5e;return _0x9b951a&&'src'==_0x9b951a['key']?_0x9b951a['newValue']&&_0x9b951a['oldValue']?{'type':'format','content':o(_0x1edf4f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b11d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b11d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5b11d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b11d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5b11d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54179e=this['editor'],_0x22054e=_0x54179e['locale'];_0x54179e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x388ea7=>{if('formatBlock'!=_0x388ea7['type']&&'formatInline'!=_0x388ea7['type'])return;const {data:_0x3a4cae}=_0x388ea7;if(!_0x3a4cae||'replaceImageSource'!=_0x3a4cae['commandName'])return;return{'type':'format','content':o(_0x22054e,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x15c086{['afterInit'](){const _0x352768=this['editor'];if(!_0x352768['plugins']['has']('ImageStyleEditing'))return;const _0x42fd59=_0x352768['plugins']['get']('TrackChangesEditing'),_0x2c26fa=_0x352768['plugins']['get']('ImageUtils'),_0x28a5f0={};_0x42fd59['enableCommand']('imageStyle',(_0x11fe1d,_0x7f1bbb)=>{const _0x5e7759=_0x352768['plugins']['get']('Users')['me'],_0x2a436a=_0x352768['commands']['get']('imageStyle');let _0x3abbf2=_0x2c26fa['getClosestSelectedImageElement'](_0x352768['model']['document']['selection']),_0x3a4d75=_0x352768['model']['createRangeOn'](_0x3abbf2),_0xcd7e6a=_0x2a436a['value'];if(_0xcd7e6a==_0x7f1bbb['value'])return;const _0x2cb152={'commandName':'imageStyle','commandParams':[_0x7f1bbb],'formatGroupId':_0x27f732()};_0x352768['model']['change'](()=>{if(_0x42fd59['getSuggestions']()['filter'](_0x120ec1=>_0x120ec1['isInContent']&&_0x5e7759==_0x120ec1['author']&&('formatBlock'==_0x120ec1['type']||'formatInline'==_0x120ec1['type'])&&('imageStylePreApply'==_0x120ec1['subType']||'imageStylePostApply'==_0x120ec1['subType'])&&_0x120ec1['getFirstRange']()['isEqual'](_0x3a4d75))['forEach'](_0x380297=>_0x42fd59['discardSuggestion'](_0x380297['head'])),_0x3abbf2=_0x2c26fa['getClosestSelectedImageElement'](_0x352768['model']['document']['selection']),_0x3a4d75=_0x352768['model']['createRangeOn'](_0x3abbf2),_0x2a436a['refresh'](),_0x352768['commands']['get']('imageTypeInline')['refresh'](),_0x352768['commands']['get']('imageTypeBlock')['refresh'](),_0xcd7e6a=_0x2a436a['value'],_0xcd7e6a!=_0x7f1bbb['value'])return _0x2c26fa['isInlineImage'](_0x3abbf2)&&_0x2a436a['shouldConvertImageType'](_0x7f1bbb['value'],_0x3abbf2)?(_0x11fe1d({..._0x7f1bbb,'setImageSizes':!0x1}),_0x3abbf2=_0x2c26fa['getClosestSelectedImageElement'](_0x352768['model']['document']['selection']),void _0x42fd59['markBlockFormat'](_0x3abbf2,{..._0x2cb152,'commandReversedParams':[{'value':_0xcd7e6a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2c26fa['isBlockImage'](_0x3abbf2)?_0x42fd59['markBlockFormat'](_0x3abbf2,_0x2cb152,[],'imageStylePostApply'):_0x42fd59['markInlineFormat'](_0x3a4d75,_0x2cb152,'imageStylePostApply'));});});for(const _0xa5d8ca of _0x352768['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x28a5f0[_0xa5d8ca['name']]=_0xa5d8ca['title']['toLowerCase']();_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x546f57])=>{_0x2c26fa['setImageNaturalSizeAttributes'](_0x546f57['getContainedElement']());}),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2afec7,_0x5f1574)=>{_0x42fd59['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2afec7,{'commandName':_0x5f1574['commandName'],'commandParams':_0x5f1574['commandReversedParams']});}),_0x42fd59['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4362ab,_0x3fcf30){if(_0x20fcc8(_0x4362ab,_0x3fcf30))return[_0x4362ab,_0x3fcf30];if(_0x20fcc8(_0x3fcf30,_0x4362ab))return[_0x3fcf30,_0x4362ab];return null;});const _0xb3ad41=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x20fcc8(_0x18ca42,_0x27297a){const _0x541dd3=_0xb3ad41['findIndex'](({type:_0x3d2864,subType:_0x5a5a43})=>_0x18ca42['type']==_0x3d2864&&_0x18ca42['subType']==_0x5a5a43),_0x3510a0=_0xb3ad41['findIndex'](({type:_0x1f8674,subType:_0x4b27ce})=>_0x27297a['type']==_0x1f8674&&_0x27297a['subType']==_0x4b27ce);if(_0x541dd3<0x0||_0x3510a0<0x0)return!0x1;const _0x3f8f28=_0x18ca42['getFirstRange'](),_0x58d3ef=_0x27297a['getFirstRange']();if((0x0==_0x541dd3||0x1==_0x541dd3)&&0x2==_0x3510a0&&_0x3f8f28['isIntersecting'](_0x58d3ef))return!0x0;if(0x2==_0x541dd3&&0x3==_0x3510a0){const _0x451c46=_0x42fd59['_findSuggestions'](_0x3f8f28,'insertion')['filter'](({suggestion:_0x52bf23,meta:_0x3f07a4})=>_0x3f07a4['isOwn']&&'convertInlineImageToBlock'==_0x52bf23['subType']);if(_0x451c46['length']>0x1&&_0x58d3ef['end']['isEqual'](_0x3f8f28['start']))return!0x0;if(0x1==_0x451c46['length']&&(_0x3f8f28['start']['isEqual'](_0x58d3ef['end'])||_0x3f8f28['end']['isEqual'](_0x58d3ef['start'])))return!0x0;}if(0x3==_0x541dd3&&0x3==_0x3510a0&&_0x3f8f28['start']['isBefore'](_0x58d3ef['start'])){const _0x503b70=_0x3f8f28['end']['nodeAfter'],_0x52ea17=_0x58d3ef['start']['nodeBefore'];return _0x2c26fa['isBlockImage'](_0x503b70)&&_0x503b70===_0x52ea17;}return!0x1;}_0x352768['model']['document']['registerPostFixer'](()=>{let _0xeeaf2a=!0x1;const _0x101236=Array['from'](_0x352768['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1feacf,data:_0x2de0b3}of _0x101236){const {group:_0x2d34ec,type:_0x38b77f,subType:_0x531f5a,id:_0x2e5f27}=_0x42fd59['_splitMarkerName'](_0x1feacf);if('suggestion'==_0x2d34ec&&_0x42fd59['hasSuggestion'](_0x2e5f27)){if('formatBlock'==_0x38b77f&&('imageStylePreApply'==_0x531f5a||'imageStylePostApply'==_0x531f5a)){const _0x1961d2=_0x42fd59['getSuggestion'](_0x2e5f27);if(_0x2de0b3['newRange']){const _0x1463fb=_0x1961d2['getFirstRange']()['getContainedElement']();if(_0x2c26fa['isBlockImage'](_0x1463fb))continue;_0x42fd59['discardSuggestion'](_0x1961d2),_0xeeaf2a=!0x0;}}if('insertion'==_0x38b77f&&'imageCaption'==_0x531f5a&&!_0x2de0b3['newRange']){const _0x1e9813=_0x42fd59['getSuggestion'](_0x2e5f27);_0x1e9813['next']&&_0x1e9813['next']['isInContent']&&(_0x42fd59['discardSuggestion'](_0x1e9813['next']),_0xeeaf2a=!0x0);}}}return _0xeeaf2a;}),this['_registerLegacyDescription'](_0x28a5f0);}['_registerLegacyDescription'](_0x154d95){const _0x5565b9=this['editor'],_0x1c0805=_0x5565b9['locale'];_0x5565b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e2c7c=>{if('formatBlock'!=_0x3e2c7c['type']&&'formatInline'!=_0x3e2c7c['type'])return;const {data:_0x612bfa}=_0x3e2c7c;if(!_0x612bfa||'imageStyle'!=_0x612bfa['commandName'])return;const _0xb45156=_0x612bfa['commandParams'][0x0]['value'];return _0x5e3cb8('side'===_0xb45156?o(_0x1c0805,'FORMAT_SIDE_IMAGE'):_0x154d95[_0xb45156]||_0xb45156);function _0x5e3cb8(_0x4aa193){return{'type':'format','content':o(_0x1c0805,'*Format:*\x20%0',_0x4aa193)};}});}}class ot extends _0x15c086{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x59fbd1){super(_0x59fbd1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4edce5=this['editor'],_0x3033a7=_0x4edce5['commands']['get']('importWord'),_0x9cbf10=_0x4edce5['commands']['get']('trackChanges');_0x3033a7&&(_0x3033a7['on']('execute',(_0x520a8c,[,_0x3b826b])=>{this['_trackChangesValueDuringImport']=_0x9cbf10['value'],_0x3b826b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3033a7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3033a7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x9cbf10['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4edce5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x423549,_0x52ae7b){const {suggestions:_0x43e8da}=_0x52ae7b,_0x161e82=this['editor']['commands']['get']('trackChanges'),_0xac4f53=_0x161e82['value'];this['_trackChangesValueDuringImport']!==_0xac4f53&&(_0x161e82['execute'](),this['_trackChangesExecuted']=!0x0),_0x43e8da&&_0x43e8da['forEach'](({id:_0x43bf27,type:_0x26eef0,author:_0x16d92a,created_at:_0x54dc6f})=>{const _0xb7d41d={'id':_0x43bf27,'type':_0x26eef0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x16d92a,'createdAt':_0x54dc6f?new Date(_0x54dc6f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb7d41d);});}}class rt extends _0x15c086{['afterInit'](){const _0x4c0fa2=this['editor'],_0x2b23a8=_0x4c0fa2['plugins']['get']('TrackChangesEditing');if(_0x4c0fa2['plugins']['has']('IndentEditing')&&(_0x2b23a8['enableCommand']('indent'),_0x2b23a8['enableCommand']('outdent')),_0x4c0fa2['plugins']['has']('IndentBlock')){for(const _0x42a5d6 of['indentBlock','outdentBlock'])_0x2b23a8['enableDefaultAttributesIntegration'](_0x42a5d6);}const _0x28dc62=_0x4c0fa2['locale'];_0x2b23a8['registerBlockAttribute']('blockIndent'),_0x2b23a8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x28dc62,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166b5c=this['editor'],_0x4e3f96=_0x166b5c['locale'],_0x3164df=_0x166b5c['plugins']['get']('TrackChangesEditing');_0x3164df['descriptionFactory']['registerDescriptionCallback'](_0x14162e=>{if('formatBlock'!=_0x14162e['type'])return;const {data:_0x5067ed}=_0x14162e;if(!_0x5067ed)return;if('indentBlock'!=_0x5067ed['commandName']&&'outdentBlock'!=_0x5067ed['commandName'])return;const _0x28df0d=_0x14162e['getItems']()[0x0],_0x21b63d=_0x3164df['descriptionFactory']['getItemLabel'](_0x28df0d);return'indentBlock'==_0x5067ed['commandName']?{'type':'format','content':o(_0x4e3f96,'*Indent:*\x20%0',_0x21b63d)}:'outdentBlock'==_0x5067ed['commandName']?{'type':'format','content':o(_0x4e3f96,'*Outdent:*\x20%0',_0x21b63d)}:void 0x0;});}}class at extends _0x15c086{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x15c086{['afterInit'](){const _0xd5b25f=this['editor'];if(!_0xd5b25f['plugins']['has']('LinkEditing'))return;const _0x3f32da=_0xd5b25f['plugins']['get']('TrackChangesEditing'),_0x2b14e8=_0xd5b25f['commands']['get']('link');_0x3f32da['enableDefaultAttributesIntegration']('link'),_0x3f32da['enableDefaultAttributesIntegration']('unlink'),_0x3f32da['registerInlineAttribute']('linkHref');for(const _0x22b218 of _0x2b14e8['manualDecorators'])_0x3f32da['registerInlineAttribute'](_0x22b218['id']),_0x3f32da['descriptionFactory']['registerAttributeLabel'](_0x22b218['id'],'link\x20('+_0x22b218['label']['toLowerCase']()+')');_0x3f32da['descriptionFactory']['registerDescriptionCallback'](_0x5bc176=>{if('attribute'!=_0x5bc176['type'])return;const {data:_0x23a0fd}=_0x5bc176;if(!_0x23a0fd||'linkHref'!=_0x23a0fd['key'])return;const _0x1a3637=_0x23a0fd['newValue'],_0x4e4dcd=_0xd5b25f['locale'];return{'type':'format','content':null==_0x1a3637?o(_0x4e4dcd,'*Remove\x20link*'):o(_0x4e4dcd,'*Set\x20link:*\x20%0','\x22'+_0x1a3637+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55c9c1=this['editor'],_0x5efc6f=_0x55c9c1['locale'];_0x55c9c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x117157=>{if('formatInline'!=_0x117157['type'])return;const {data:_0x3c12e9}=_0x117157;if(_0x3c12e9){if('link'==_0x3c12e9['commandName']){const _0x3e51d0=_0x3c12e9['commandParams'][0x0];return{'type':'format','content':o(_0x5efc6f,'*Set\x20link:*\x20%0','\x22'+_0x3e51d0+'\x22')};}return'unlink'==_0x3c12e9['commandName']?{'type':'format','content':o(_0x5efc6f,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x15c086{['afterInit'](){const _0x1fdcd2=this['editor'],_0xb9edcb=_0x1fdcd2['locale'];if(!_0x1fdcd2['plugins']['has']('LegacyListEditing'))return;const _0x32286d=_0x1fdcd2['plugins']['get']('TrackChangesEditing'),_0x2966a1=_0x1fdcd2['plugins']['has']('LegacyTodoListEditing');function _0x1c4205(_0x3ff8fa){return()=>{const _0x1f1d83=_0x1fdcd2['model']['document']['selection'],_0x184884=_0x1fdcd2['commands']['get'](_0x3ff8fa);if(_0x184884['value'])return void _0x1fdcd2['execute']('paragraph',{});const _0x1be8a8=_0x3ff8fa['slice'](0x0,-0x4),_0x2fdc70=function(_0x3654af,_0x1d0a87,_0x443f3b){let _0x23fb67=Array['from'](_0x3654af)['filter'](_0x528b3a=>function(_0x330caf,_0x55adfb){return _0x55adfb['checkChild'](_0x330caf['parent'],'listItem')&&!_0x55adfb['isObject'](_0x330caf);}(_0x528b3a,_0x443f3b));_0x23fb67=_0x23fb67['filter'](_0x2f6a11=>!_0x2f6a11['is']('element','listItem')||_0x2f6a11['getAttribute']('listType')!=_0x1d0a87);const _0x4ed51e=new Set();for(const _0x2160d7 of _0x23fb67)_0x2160d7['is']('element','listItem')?_0x4ed51e['add'](fe(_0x2160d7)):_0x4ed51e['add'](_0x2160d7);return Array['from'](_0x4ed51e);}(_0x1f1d83['getSelectedBlocks'](),_0x1be8a8,_0x1fdcd2['model']['schema']);_0x1fdcd2['model']['change'](()=>{for(const _0xd3305e of _0x2fdc70)_0x32286d['markBlockFormat'](_0xd3305e,{'commandName':_0x3ff8fa,'commandParams':[{'forceValue':!_0x184884['value']}],'formatGroupId':'blockName'},ue(_0xd3305e));});};}function _0x512129(_0x175b93){return()=>{const _0x5bf4fe=function(_0x4e4290){let _0x52b192=Array['from'](_0x4e4290);const _0xc73900=_0x52b192['findIndex'](_0xcb0cb4=>'listItem'!=_0xcb0cb4['name']);return _0xc73900>-0x1&&(_0x52b192=_0x52b192['slice'](0x0,_0xc73900)),_0x52b192;}(_0x1fdcd2['model']['document']['selection']['getSelectedBlocks']()),_0x29c4cb=_0x1fdcd2['model']['createRange'](_0x1fdcd2['model']['createPositionAt'](_0x5bf4fe[0x0],'before'),_0x1fdcd2['model']['createPositionAt'](_0x5bf4fe[_0x5bf4fe['length']-0x1],'end'));_0x1fdcd2['model']['change'](()=>{_0x32286d['markBlockFormat'](_0x29c4cb,{'commandName':_0x175b93,'commandParams':[],'formatGroupId':'listIndent'},function(_0x596e65){const _0x181289=new Set();for(const _0x5e4857 of _0x596e65){let _0x5dc94e=_0x5e4857['nextSibling'];for(;_0x5dc94e&&_0x5dc94e['getAttribute']('listIndent')>_0x5e4857['getAttribute']('listIndent');)_0x181289['add'](_0x5dc94e),_0x5dc94e=_0x5dc94e['nextSibling'];}return Array['from'](_0x181289);}(_0x5bf4fe));});};}_0x32286d['enableCommand']('numberedList',_0x1c4205('numberedList')),_0x32286d['enableCommand']('bulletedList',_0x1c4205('bulletedList')),_0x2966a1&&_0x32286d['enableCommand']('todoList',_0x1c4205('todoList')),_0x32286d['enableCommand']('indentList',_0x512129('indentList')),_0x32286d['enableCommand']('outdentList',_0x512129('outdentList')),_0x2966a1&&_0x32286d['enableCommand']('checkTodoList',()=>{const _0x26f183=_0x1fdcd2['commands']['get']('checkTodoList'),_0x2bf7bb=Array['from'](_0x26f183['_selectedElements']);_0x2bf7bb['filter'](_0x28b3eb=>_0x28b3eb['getAttribute']('todoListChecked')!=_0x26f183['value']),_0x1fdcd2['model']['change'](()=>{for(const _0xde4f45 of _0x2bf7bb)_0x32286d['markBlockFormat'](_0xde4f45,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x26f183['value']}]});});}),_0x32286d['descriptionFactory']['registerElementLabel']('listItem',_0x1677ec=>o(_0xb9edcb,'ELEMENT_LIST_ITEM',_0x1677ec)),_0x32286d['descriptionFactory']['registerDescriptionCallback'](_0x1ed971=>{if('formatBlock'!=_0x1ed971['type']&&'formatInline'!=_0x1ed971['type'])return;const {data:_0xc2de4d}=_0x1ed971;if(_0xc2de4d){if('numberedList'==_0xc2de4d['commandName']||'bulletedList'==_0xc2de4d['commandName']||'todoList'==_0xc2de4d['commandName'])switch(_0xc2de4d['commandName']['replace']('List','')){case'bulleted':return _0x55bc59(o(_0xb9edcb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55bc59(o(_0xb9edcb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55bc59(o(_0xb9edcb,'ELEMENT_TODO_LIST'));}if('indentList'==_0xc2de4d['commandName'])return{'type':'format','content':o(_0xb9edcb,'*Indent:*\x20%0',o(_0xb9edcb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xc2de4d['commandName'])return{'type':'format','content':o(_0xb9edcb,'*Outdent:*\x20%0',o(_0xb9edcb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xc2de4d['commandName'])return _0xc2de4d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb9edcb,'*Check\x20item*')}:{'type':'format','content':o(_0xb9edcb,'*Uncheck\x20item*')};}function _0x55bc59(_0x3860a1){return{'type':'format','content':o(_0xb9edcb,'*Change\x20to:*\x20%0',_0x3860a1)};}});}}function fe(_0x4713cc){const _0x186350=_0x4713cc['getAttribute']('listIndent');if(0x0==_0x186350)return _0x4713cc;let _0x4c7b4b=_0x4713cc;for(;_0x4713cc['previousSibling']&&_0x4713cc['previousSibling']['is']('element','listItem');){const _0x32ff2a=_0x4713cc['previousSibling']['getAttribute']('listIndent');if(_0x32ff2a==_0x186350)_0x4c7b4b=_0x4713cc['previousSibling'];else{if(_0x32ff2a<_0x186350)break;}_0x4713cc=_0x4713cc['previousSibling'];}return _0x4c7b4b;}function ue(_0x23f063){const _0x355538=[];if(_0x23f063['is']('element','listItem')&&_0x23f063['getAttribute']('listIndent')>0x0){let _0x1433ab=_0x23f063['nextSibling'];for(;_0x1433ab&&'listItem'==_0x1433ab['name']&&_0x1433ab['getAttribute']('listIndent')==_0x23f063['getAttribute']('listIndent');)_0x355538['push'](_0x1433ab),_0x1433ab=_0x1433ab['nextSibling'];}return _0x355538;}class K extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x13f2d9=this['editor']['config']['get']('list.properties'),_0x410b08=this['editor']['plugins']['get']('TrackChangesEditing');_0x13f2d9['styles']&&_0x410b08['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x13f2d9['reversed']&&_0x410b08['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x13f2d9['startIndex']&&_0x410b08['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x410b08['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xcb61ff,_0x46d17d={}){const _0x416761=this['editor']['plugins']['get']('TrackChangesEditing'),_0x538ba1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x416761['markMultiRangeBlockFormat'](_0x538ba1,{'commandName':'listStyle','commandParams':[{'type':_0x46d17d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1c589f,_0x500b2b={}){const _0x18d498=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c8e73=this['_getSuggestionBlocks'](_0x40a3ac=>_0x40a3ac['is']('element','listItem')&&'numbered'===_0x40a3ac['getAttribute']('listType'));if(_0x2c8e73['length']<0x1)return;const _0x49681f=_0x2c8e73['map'](_0x1a8ceb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a8ceb,'before'),this['editor']['model']['createPositionAt'](_0x1a8ceb,0x0)));this['editor']['model']['change'](()=>{_0x18d498['markMultiRangeBlockFormat'](_0x49681f,{'commandName':'listReversed','commandParams':[{'reversed':_0x500b2b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3e2bca,_0x19e3bc={}){const _0x46f8bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x329746=this['_getSuggestionBlocks'](_0x2535e1=>_0x2535e1['is']('element','listItem')&&'numbered'===_0x2535e1['getAttribute']('listType'));if(_0x329746['length']<0x1)return;const _0x4db993=_0x329746['map'](_0xfee5dc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfee5dc,'before'),this['editor']['model']['createPositionAt'](_0xfee5dc,0x0)));this['editor']['model']['change'](()=>{_0x46f8bc['markMultiRangeBlockFormat'](_0x4db993,{'commandName':'listStart','commandParams':[{'startIndex':_0x19e3bc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x15230c){if('formatBlock'!=_0x15230c['type']&&'formatInline'!=_0x15230c['type'])return;const _0x59bb6a=this['editor']['locale'],{data:_0x213554}=_0x15230c;if(!_0x213554)return;let _0x3bcb90,_0x4c60c6;switch(_0x213554['commandName']){case'listStyle':_0x3bcb90='*Change\x20to:*\x20%0',_0x4c60c6={'type':'format','content':o(_0x59bb6a,_0x3bcb90,o(_0x59bb6a,this['_getTranslationKeyForListStyle'](_0x213554['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bcb90=_0x213554['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4c60c6={'type':'format','content':o(_0x59bb6a,_0x3bcb90)};break;case'listStart':_0x3bcb90='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4c60c6={'type':'format','content':o(_0x59bb6a,_0x3bcb90,_0x213554['commandParams'][0x0]['startIndex'])};}return _0x4c60c6;}['_getSuggestionBlocksForListStyle'](){const _0x589735=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a8bd0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a8bd0[0x0]?.['is']('element','listItem')&&_0x5a8bd0['unshift'](..._0x589735['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a8bd0[_0x5a8bd0['length']-0x1]?.['is']('element','listItem')&&_0x5a8bd0['push'](..._0x589735['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a8bd0=[...new Set(_0x5a8bd0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a8bd0=_0x5a8bd0['filter'](_0x141eb2=>_0x141eb2['is']('element','listItem'))),_0x5a8bd0;}['_getSuggestionBlocks'](_0x79eff2){const _0x13d59e=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e6b3c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x79eff2)['map'](_0x5232fc=>{const _0xd7029=this['editor']['model']['createPositionAt'](_0x5232fc,0x0);return[..._0x13d59e['getSiblingNodes'](_0xd7029,'backward'),..._0x13d59e['getSiblingNodes'](_0xd7029,'forward')];})['flat']();return _0x5e6b3c=[...new Set(_0x5e6b3c)],_0x5e6b3c;}['_getTranslationKeyForListStyle'](_0xca247b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xca247b)||'default')['toUpperCase']()+'_LIST_'+_0xca247b['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x15c086{['afterInit'](){const _0x44fe3c=this['editor'];if(!_0x44fe3c['plugins']['has']('MediaEmbedEditing'))return;const _0x3e763b=_0x44fe3c['plugins']['get']('TrackChangesEditing'),_0x551034=_0x44fe3c['locale'];_0x3e763b['enableCommand']('mediaEmbed'),_0x3e763b['descriptionFactory']['registerElementLabel']('media',_0x3d531f=>o(_0x551034,'ELEMENT_MEDIA',_0x3d531f)),_0x44fe3c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4ef42b,{writer:_0x560508,options:_0x1b9576})=>{if(_0x1b9576['showSuggestionHighlights'])return _0x560508['createEmptyElement']('div');},'converterPriority':'high'}),_0x44fe3c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x13daa7,_0x803f36,_0x209e4d)=>{_0x209e4d['options']['showSuggestionHighlights']&&_0x13daa7['stop']();},{'priority':'high'});}}class gt extends _0x15c086{['afterInit'](){const _0x54a74f=this['editor'];_0x54a74f['plugins']['has']('MentionEditing')&&_0x54a74f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x15c086{['afterInit'](){const _0x220270=this['editor'];if(!_0x220270['commands']['get']('insertMergeField'))return;_0x220270['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x4e6a57=_0x220270['plugins']['get']('TrackChangesEditing'),_0x408e63=_0x220270['locale'];_0x4e6a57['descriptionFactory']['registerElementLabel']('mergeField',_0x83c8f=>o(_0x408e63,'ELEMENT_MERGE_FIELD',_0x83c8f)),_0x4e6a57['descriptionFactory']['registerDescriptionCallback'](_0x2b8b56=>{if('insertion'!=_0x2b8b56['type']&&'deletion'!=_0x2b8b56['type'])return;const _0x380ae0=_0x2b8b56['getContainedElement']();if(null==_0x380ae0)return;if(!_0x380ae0['is']('element','mergeField'))return;const _0x353a3b=_0x220270['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x380ae0['getAttribute']('id'));return'insertion'==_0x2b8b56['type']?{'type':'insertion','content':o(_0x408e63,'*Insert:*\x20%0','\x22'+_0x353a3b+'\x22\x20'+o(_0x408e63,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x408e63,'*Remove:*\x20%0','\x22'+_0x353a3b+'\x22\x20'+o(_0x408e63,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x15c086{['afterInit'](){const _0x5d4546=this['editor'],_0x15c7a1=_0x5d4546['plugins']['get']('TrackChangesEditing');_0x5d4546['plugins']['has']('MultiLevelList')&&(_0x15c7a1['enableDefaultAttributesIntegration']('multiLevelList'),_0x15c7a1['registerBlockAttribute']('listMarkerStyle'),_0x15c7a1['descriptionFactory']['registerDescriptionCallback'](_0x4c50eb=>this['handleDescriptions'](_0x4c50eb)));}['handleDescriptions'](_0x1fc26f){const _0x47948c=this['editor']['locale'],{data:_0x575870}=_0x1fc26f,_0x1accb0={'type':'format','content':''};if(_0x575870&&'listMarkerStyle'==_0x575870['key']){if(!_0x575870['oldValue'])return{'type':'format','content':o(_0x47948c,'*Set\x20format:*\x20%0',o(_0x47948c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x575870['newValue']+')'};if(!_0x575870['newValue']){let _0x43258e=_0x1fc26f['head'];for(;_0x43258e;){if(_0x43258e['data']&&'listType'==_0x43258e['data']['key']&&_0x43258e['data']['newValue'])return _0x1accb0;_0x43258e=_0x43258e['next'];}return{'type':'format','content':o(_0x47948c,'*Remove\x20format:*\x20%0',o(_0x47948c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x575870['oldValue']+')'};}}}}class dt extends _0x15c086{['afterInit'](){const _0x4e979e=this['editor'];if(!_0x4e979e['plugins']['has']('PageBreakEditing'))return;_0x4e979e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xa9194e=_0x4e979e['plugins']['get']('TrackChangesEditing'),_0x24eaf4=_0x4e979e['locale'];_0xa9194e['descriptionFactory']['registerElementLabel']('pageBreak',_0x513054=>o(_0x24eaf4,'ELEMENT_PAGE_BREAK',_0x513054));}}class pt extends _0x15c086{['afterInit'](){const _0x1d5cfa=this['editor'];if(!_0x1d5cfa['plugins']['has']('Paragraph'))return;const _0x1dbffe=_0x1d5cfa['locale'],_0x3ede95=_0x1d5cfa['plugins']['get']('TrackChangesEditing');_0x3ede95['descriptionFactory']['registerElementLabel']('paragraph',_0x26b46e=>o(_0x1dbffe,'ELEMENT_PARAGRAPH',_0x26b46e)),_0x3ede95['enableDefaultAttributesIntegration']('paragraph'),_0x3ede95['enableCommand']('insertParagraph'),_0x1d5cfa['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1d5cfa),{'priority':'highest'}),_0x1d5cfa['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b150e,_0x124365,_0x2695f6)=>{_0x2695f6['options']['showSuggestionHighlights']&&nr(_0x1d5cfa,{'showActiveMarker':!0x1})(_0x1b150e,_0x124365,_0x2695f6);},{'priority':'highest'});const _0x5481a1=_0x3ede95['descriptionFactory'];_0x5481a1['registerDescriptionCallback'](_0x108b75=>{if('insertion'!==_0x108b75['type'])return;const {start:_0x128966,end:_0x548819}=_0x108b75['getFirstRange']();if(!_0x128966['isTouching'](_0x548819)||!_0x128966['nodeAfter'])return;const _0x4e2d9b=_0x1d5cfa['model']['schema'],_0x1a60ff=_0x128966['nodeAfter'];return _0x4e2d9b['isBlock'](_0x1a60ff)&&!_0x4e2d9b['isLimit'](_0x1a60ff)&&_0x4e2d9b['checkChild'](_0x1a60ff,'$text')?{'type':'insertion','content':o(_0x1dbffe,'*Insert:*\x20%0',_0x5481a1['getItemLabel'](_0x1a60ff,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0fd8=this['editor'],_0x27ab15=_0x4c0fd8['locale'];_0x4c0fd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fd07c=>{if('formatBlock'!=_0x2fd07c['type'])return;const {data:_0x114ac3}=_0x2fd07c;return _0x114ac3&&'paragraph'==_0x114ac3['commandName']?{'type':'format','content':o(_0x27ab15,'*Change\x20to:*\x20%0',o(_0x27ab15,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x45b431,{showActiveMarker:_0x1b8197=!0x0}={}){return(_0x3609ce,_0x59a055,_0x6d5ab3)=>{const _0x2fa1e2=_0x45b431['plugins']['get']('TrackChangesEditing'),_0xf79d08=_0x59a055['markerRange']['start'],_0x372df3=_0x59a055['markerRange']['end'],_0x54b513=_0x45b431['model']['schema'];if(!_0xf79d08['isTouching'](_0x372df3)||!_0xf79d08['nodeAfter'])return;const _0x2adc92=_0xf79d08['nodeAfter'];if(_0x54b513['isBlock'](_0x2adc92)&&!_0x54b513['isLimit'](_0x2adc92)&&_0x54b513['checkChild'](_0x2adc92,'$text')){if(!_0x6d5ab3['consumable']['consume'](_0x59a055['markerRange'],_0x3609ce['name']))return;const _0x43624b=_0x6d5ab3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x399b83=_0x6d5ab3['mapper']['toViewPosition'](_0x372df3);_0x1b8197&&_0x2fa1e2['activeMarkers']['includes'](_0x59a055['markerName'])&&_0x6d5ab3['writer']['addClass']('ck-suggestion-marker--active',_0x43624b),_0x6d5ab3['writer']['insert'](_0x399b83,_0x43624b),_0x6d5ab3['mapper']['bindElementToMarker'](_0x43624b,_0x59a055['markerName']);}};}class kt extends _0x15c086{['afterInit'](){const _0x21a611=this['editor'];if(!_0x21a611['plugins']['has']('RemoveFormatEditing'))return;_0x21a611['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6c2293=this['editor'];_0x6c2293['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56e0da=>{if('formatBlock'!=_0x56e0da['type']&&'formatInline'!=_0x56e0da['type'])return;const {data:_0x248634}=_0x56e0da;return _0x248634&&'removeFormat'==_0x248634['commandName']?{'type':'format','content':o(_0x6c2293['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class bt extends _0x15c086{['afterInit'](){const _0x3f461e=this['editor'];if(!_0x3f461e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1e153d=_0x3f461e['plugins']['get']('TrackChangesEditing');_0x1e153d['enableCommand']('goToPreviousRestrictedEditingException'),_0x1e153d['enableCommand']('goToNextRestrictedEditingException');const _0x3c864f=_0x3f461e['plugins']['get']('RestrictedEditingModeEditing');_0x3c864f['enableCommand']('trackChanges'),_0x3c864f['enableCommand']('acceptSuggestion'),_0x3c864f['enableCommand']('discardSuggestion'),_0x3c864f['enableCommand']('acceptAllSuggestions'),_0x3c864f['enableCommand']('discardAllSuggestions'),_0x3c864f['enableCommand']('acceptSelectedSuggestions'),_0x3c864f['enableCommand']('discardSelectedSuggestions');}}class wt extends _0x15c086{static get['requires'](){return[_0x275f63];}['init'](){const _0x1e8e36=this['editor'],_0x5c4c5b=_0x1e8e36['plugins']['get']('TrackChangesEditing');_0x5c4c5b['enableCommand']('shiftEnter'),_0x1e8e36['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ce(_0x1e8e36),{'priority':'high'}),_0x1e8e36['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ce(_0x1e8e36),{'priority':'high'}),_0x1e8e36['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f7a4c,_0x5911f9,_0x45597f)=>{_0x45597f['options']['showSuggestionHighlights']&&ce(_0x1e8e36,{'showActiveMarker':!0x1})(_0x4f7a4c,_0x5911f9,_0x45597f);}),_0x5c4c5b['descriptionFactory']['registerElementLabel']('softBreak',_0x2d5dd9=>o(_0x1e8e36['locale'],'ELEMENT_LINE_BREAK',_0x2d5dd9));}}function ce(_0xc0ddb3,{showActiveMarker:_0x46c2d4=!0x0}={}){return(_0x219400,_0x51e08c,_0x833b20)=>{const _0x55cf6d=_0xc0ddb3['plugins']['get']('TrackChangesEditing');if(!_0x833b20['consumable']['test'](_0x51e08c['markerRange'],_0x219400['name']))return;const _0x200014=_0xc0ddb3['model'];for(const _0x235998 of _0x51e08c['markerRange']['getItems']()){if(!_0x235998['is']('element','softBreak'))continue;const _0x4c4480='deletion'==_0x51e08c['markerName']['split'](':')[0x1]?'merge':'split',_0x9a30c7=_0x833b20['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c4480}),_0x8f0f71=_0x833b20['mapper']['toViewPosition'](_0x200014['createPositionBefore'](_0x235998));_0x46c2d4&&_0x55cf6d['activeMarkers']['includes'](_0x51e08c['markerName'])&&_0x833b20['writer']['addClass']('ck-suggestion-marker--active',_0x9a30c7),_0x833b20['writer']['insert'](_0x8f0f71,_0x9a30c7),_0x833b20['mapper']['bindElementToMarker'](_0x9a30c7,_0x51e08c['markerName']);}};}class yt extends _0x15c086{['afterInit'](){const _0x3c4407=this['editor'],_0x276daf=_0x3c4407['model'],_0x88d997=_0x3c4407['locale'];if(!_0x3c4407['plugins']['has']('StandardEditingModeEditing'))return;const _0x1d1ad5=_0x3c4407['plugins']['get']('TrackChangesEditing'),_0x18a698='restrictedEditingException',_0x568eb3=_0x3c4407['commands']['get'](_0x18a698);_0x1d1ad5['enableCommand'](_0x18a698,(_0x31b3d7,_0x41c4d9={})=>{const _0x2fbee7=_0x276daf['document']['selection'];if(_0x2fbee7['isCollapsed'])return void _0x31b3d7(_0x41c4d9);const _0x46d711=void 0x0!==_0x41c4d9['forceValue']?_0x41c4d9['forceValue']:!_0x568eb3['value'];_0x276daf['change'](()=>{const _0x2729dc=Array['from'](_0x2fbee7['getRanges']());for(const _0x17d223 of _0x2729dc){const _0x1c9862=_0x46d711?[_0x17d223]:io(_0x18a698,_0x17d223,_0x276daf);for(const _0x370022 of _0x1c9862)_0x1d1ad5['markInlineFormat'](_0x370022,{'commandName':_0x18a698,'commandParams':[{'forceValue':_0x46d711}]});}});}),_0x1d1ad5['descriptionFactory']['registerDescriptionCallback'](_0x18f350=>{if('formatBlock'!=_0x18f350['type']&&'formatInline'!=_0x18f350['type'])return;const {data:_0x55c3d9}=_0x18f350;return _0x55c3d9&&_0x55c3d9['commandName']==_0x18a698?_0x55c3d9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x88d997,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x88d997,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class jt extends _0x15c086{['afterInit'](){const _0xd21aca=this['editor'];if(!_0xd21aca['plugins']['has']('Style')||!_0xd21aca['plugins']['has']('DataSchema'))return;const _0x44547e=_0xd21aca['plugins']['get']('TrackChangesEditing'),_0xad3cb0=_0xd21aca['locale'],_0x305205=_0xd21aca['config']['get']('style')||{},_0x5970ec=_0xd21aca['plugins']['get']('GeneralHtmlSupport'),_0x5a985e=_0xd21aca['plugins']['get']('StyleUtils')['normalizeConfig'](_0xd21aca['plugins']['get']('DataSchema'),_0x305205['definitions']);_0x44547e['enableDefaultAttributesIntegration']('style');const _0x3b5546=new Set();for(const _0x16adc6 of _0x5a985e['block']){const _0xdf298=_0x5970ec['getGhsAttributeNameForElement'](_0x16adc6['element']);_0x3b5546['add'](_0xdf298);}const _0x9a0c83=new Set();for(const _0xe6417 of _0x5a985e['inline']){const _0x2ab127=_0x5970ec['getGhsAttributeNameForElement'](_0xe6417['element']);_0x9a0c83['add'](_0x2ab127);for(const _0x3bb008 of _0xe6417['ghsAttributes'])_0x9a0c83['add'](_0x3bb008);}for(const _0x3cd172 of _0x3b5546)_0x44547e['registerBlockAttribute'](_0x3cd172),_0x44547e['descriptionFactory']['registerAttributeLabel'](_0x3cd172,o(_0xad3cb0,'FORMAT_STYLE'));for(const _0x420b34 of _0x9a0c83)_0x44547e['registerInlineAttribute'](_0x420b34),_0x44547e['descriptionFactory']['registerAttributeLabel'](_0x420b34,o(_0xad3cb0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x329afa=this['editor'],_0x3c9133=_0x329afa['locale'];_0x329afa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3324d9=>{if('formatBlock'!=_0x3324d9['type']&&'formatInline'!=_0x3324d9['type'])return;const {data:_0x2f3164}=_0x3324d9;return _0x2f3164&&'style'===_0x2f3164['commandName']?_0x2f3164['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c9133,'*Set\x20format:*\x20%0',_0x2f3164['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3c9133,'*Remove\x20format:*\x20%0',_0x2f3164['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class St extends _0x15c086{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x594fb1){super(_0x594fb1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x6e1230=this['editor'],_0x4d8240=_0x6e1230['model']['document']['selection'];if(!_0x6e1230['plugins']['has']('TableEditing'))return;const _0xbd3196=_0x6e1230['locale'],_0x48e544=_0x6e1230['plugins']['get']('TrackChangesEditing'),_0x49842d=_0x6e1230['plugins']['get']('TableUtils');_0x48e544['descriptionFactory']['registerElementLabel']('table',_0x5f56e8=>o(_0xbd3196,'ELEMENT_TABLE',_0x5f56e8)),this['_setupColumnsRowsFixing'](),_0x48e544['enableCommand']('insertTable'),_0x48e544['enableCommand']('selectTableRow'),_0x48e544['enableCommand']('selectTableColumn');for(const _0x521d43 of['insertTableRowAbove','insertTableRowBelow']){const _0x587874=_0x6e1230['commands']['get'](_0x521d43);_0x48e544['enableCommand'](_0x521d43,_0x37cfab=>{_0x6e1230['model']['change'](_0x56a873=>{_0x37cfab();const _0x214a84='above'===_0x587874['order'],_0x1fcd9b=_0x49842d['getSelectionAffectedTableCells'](_0x4d8240),_0x3a0107=_0x49842d['getRowIndexes'](_0x1fcd9b),_0x3a6f3b=_0x214a84?_0x3a0107['first']-0x1:_0x3a0107['last']+0x1,_0x98a0e2=_0x1fcd9b[0x0]['findAncestor']('table'),_0x30e119=_0x49842d['createTableWalker'](_0x98a0e2,{'startRow':_0x3a6f3b,'endRow':_0x3a6f3b}),_0x4a3c95=Array['from'](_0x30e119)['map'](_0x53ed9d=>_0x56a873['createRangeOn'](_0x53ed9d['cell']));_0x48e544['markMultiRangeInsertion'](_0x4a3c95,'tableRow');});});}for(const _0x32cf7c of['insertTableColumnLeft','insertTableColumnRight']){const _0x194f54=_0x6e1230['commands']['get'](_0x32cf7c);_0x48e544['enableCommand'](_0x32cf7c,_0x1fac77=>{_0x6e1230['model']['change'](_0x4c4519=>{_0x1fac77();const _0x3c6845='left'===_0x194f54['order'],_0x344674=_0x49842d['getSelectionAffectedTableCells'](_0x4d8240),_0x1c1c8e=_0x49842d['getColumnIndexes'](_0x344674),_0x4e3540=_0x3c6845?_0x1c1c8e['first']-0x1:_0x1c1c8e['last']+0x1,_0x40a970=_0x344674[0x0]['findAncestor']('table'),_0x1ba4a6=_0x49842d['createTableWalker'](_0x40a970,{'startRow':0x0,'column':_0x4e3540,'includeAllSlots':!0x1}),_0x9b5909=Array['from'](_0x1ba4a6)['map'](_0x10bdf0=>_0x4c4519['createRangeOn'](_0x10bdf0['cell']));_0x48e544['markMultiRangeInsertion'](_0x9b5909,'tableColumn');});});}for(const _0x562195 of['removeTableRow','removeTableColumn']){const _0x38edfe=_0x562195['substr'](0xb),_0x4c3a9f=_0x38edfe['toLowerCase'](),_0x5e5a65=_0x4c3a9f['substr'](0x0,0x3)+'span',_0x4fb795='table'+_0x38edfe,_0x77c4be='min'+_0x38edfe,_0x2f7408='max'+_0x38edfe;_0x48e544['enableCommand'](_0x562195,()=>{_0x6e1230['model']['change'](_0x60c7e7=>{const _0x48bdf6=_0x49842d['getSelectionAffectedTableCells'](_0x4d8240),_0xd68e06=_0x48bdf6[0x0]['findAncestor']('table');let _0x5c2273;if('removeTableRow'==_0x562195){const _0x1c1949=_0x49842d['getRowIndexes'](_0x48bdf6);_0x5c2273={'startRow':_0x1c1949['first'],'endRow':_0x1c1949['last'],'includeAllSlots':!0x0};}else{const _0x1ff79a=_0x49842d['getColumnIndexes'](_0x48bdf6);_0x5c2273={'startColumn':_0x1ff79a['first'],'endColumn':_0x1ff79a['last'],'includeAllSlots':!0x0};}const _0xbefabd=_0x49842d['createTableWalker'](_0xd68e06,_0x5c2273),_0x502bc8=Array['from'](_0xbefabd)['map'](({cell:_0x4a16fd})=>_0x4a16fd),_0x502b6d=Ee(_0x502bc8['filter'](_0xd4caff=>_0xd4caff['hasAttribute'](_0x5e5a65))),_0x129750=Ee(_0x502bc8['filter'](_0x34a272=>!_0x34a272['hasAttribute'](_0x5e5a65)))['map'](_0x2e9f07=>_0x60c7e7['createRangeOn'](_0x2e9f07)),_0x154d51=_0x48e544['markMultiRangeDeletion'](_0x129750,_0x4fb795);if(_0x154d51&&('tableRow'==_0x154d51['subType']||'tableColumn'==_0x154d51['subType'])){const _0x3642cc=this['_getSuggestionCoords'](_0x154d51);for(const _0x59ee55 of _0x502b6d){const _0x85a5e1=_0x60c7e7['createRangeOn'](_0x59ee55),_0x23bc0d=_0x49842d['getCellLocation'](_0x59ee55),_0x2b4836=_0x59ee55['getAttribute'](_0x5e5a65)-0x1,_0x546990=_0x3642cc[_0x77c4be],_0x493422=_0x3642cc[_0x2f7408];_0x546990<=_0x23bc0d[_0x4c3a9f]&&_0x23bc0d[_0x4c3a9f]+_0x2b4836<=_0x493422&&_0x154d51['addRange'](_0x85a5e1);}}});});}function _0x2fdfc1(_0x13d2b2){const _0x46f4d3=Array['from'](_0x4d8240['getRanges']())['map'](_0x11ed0d=>_0x948f0b['fromRange'](_0x11ed0d));_0x6e1230['model']['change'](_0x200855=>{const _0x56a53a=_0x200855['batch'];_0x13d2b2=_0x13d2b2['filter'](_0x560d1a=>'$graveyard'!=_0x560d1a['root']['rootName']),_0x200855['setSelection'](_0x13d2b2),_0x6e1230['commands']['get']('removeTableRow')['refresh'](),_0x6e1230['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x6e1230['model']['enqueueChange'](()=>{_0x6e1230['model']['enqueueChange'](_0x56a53a,_0x4479ac=>{const _0x3469b7=_0x46f4d3['filter'](_0x293da2=>'$graveyard'!=_0x293da2['root']['rootName']);_0x3469b7['length']>0x0&&_0x4479ac['setSelection'](_0x3469b7);for(const _0x58f263 of _0x46f4d3)_0x58f263['detach']();});});});}function _0x1ab757(_0x4c8546){_0x6e1230['model']['change'](_0x1cd6e2=>{const _0x4b313e=Array['from'](_0x4d8240['getRanges']())['map'](_0x1d18a2=>_0x948f0b['fromRange'](_0x1d18a2)),_0x109485=[];for(const _0x27608c of _0x4c8546)for(const _0x23ca61 of _0x27608c['getItems']({'shallow':!0x0}))_0x109485['push'](_0x23ca61);for(const _0x3cf7a5 of _0x109485)'$graveyard'!=_0x3cf7a5['root']['rootName']&&(_0x1cd6e2['setSelection'](_0x1cd6e2['createPositionAt'](_0x3cf7a5,0x0)),_0x6e1230['commands']['get']('removeTableColumn')['refresh'](),_0x6e1230['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x42514f=_0x4b313e['filter'](_0x3a7918=>'$graveyard'!=_0x3a7918['root']['rootName']);_0x42514f['length']>0x0&&_0x1cd6e2['setSelection'](_0x42514f);for(const _0x1220c4 of _0x4b313e)_0x1220c4['detach']();});}function _0x8c0f3f(_0x1c58a7,_0x3cd43c){return _0x3cd43c['every'](_0x50e7b9=>_0x1c58a7['some'](_0x2206d0=>_0x2206d0['end']['isEqual'](_0x50e7b9['start'])||_0x50e7b9['end']['isEqual'](_0x2206d0['start'])));}function _0x48352c(_0x1fde33,_0xb0d21e){return!_0x1fde33['some'](_0x30280c=>_0xb0d21e['some'](_0x472503=>_0x30280c['isIntersecting'](_0x472503)))&&_0x1fde33['some'](_0x1b15e8=>_0xb0d21e['some'](_0x4c8fcf=>_0x1b15e8['end']['isTouching'](_0x4c8fcf['start'])));}_0x6e1230['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x55de5f,_0x483b43,_0x3d5a1c)=>{if(!_0x3d5a1c['options']['showSuggestionHighlights'])return;const _0x13c4d2=_0x483b43['item'];if(!_0x13c4d2)return;const _0x256d28=_0x3d5a1c['mapper']['toViewElement'](_0x13c4d2);function _0x40309f(_0x1eac20){return Array['isArray'](_0x1eac20)?_0x1eac20:[_0x1eac20];}_0x256d28&&'tableCell'===_0x13c4d2['name']&&_0x5bea68(_0x256d28,_0x3d5a1c['writer'],(_0x57e2fb,_0x1e08ed,_0x3cb569)=>_0x3cb569['addClass'](_0x40309f(_0x1e08ed['classes']),_0x57e2fb),(_0x21a6ef,_0xd7dbf8,_0x5dcc28)=>_0x5dcc28['removeClass'](_0x40309f(_0xd7dbf8['classes']),_0x21a6ef));},{'priority':'highest'}),_0x48e544['descriptionFactory']['registerDescriptionCallback'](_0x26f49e=>{if('insertion'!=_0x26f49e['type']&&'deletion'!=_0x26f49e['type'])return;const _0x377d8d=_0x26f49e['getContainedElement']();if(null!=_0x377d8d&&_0x377d8d['is']('element','table')){if('insertion'==_0x26f49e['type']){const _0xe84c91=_0x26f49e['getItems']()['filter'](_0x54962d=>_0x54962d['is']('$textProxy'))['map'](_0x2353ea=>_0x2353ea['data']);if(_0xe84c91['length'])return{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xe84c91['join']('\x20')+'\x22'))};}if('deletion'==_0x26f49e['type']){const _0x1fb07=_0x26f49e['getItems']()['filter'](_0xe2fe2=>_0xe2fe2['is']('$textProxy'))['map'](_0x42ffa2=>_0x42ffa2['data']);if(_0x1fb07['length'])return{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1fb07['join']('\x20')+'\x22'))};}}}),_0x48e544['descriptionFactory']['registerDescriptionCallback'](_0x10098d=>{if('tableRow'==_0x10098d['subType']){const _0x213e2c=_0x10098d['getItems']()['filter'](_0x353969=>_0x353969['is']('$textProxy'))['map'](_0x3de28c=>_0x3de28c['data']),_0x53315c=this['_getSuggestionCoords'](_0x10098d),_0x4f79fe=_0x53315c['maxRow']-_0x53315c['minRow']+0x1;if('insertion'==_0x10098d['type'])return _0x213e2c['length']?{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f79fe,'\x22'+_0x213e2c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW',_0x4f79fe))};if('deletion'==_0x10098d['type'])return _0x213e2c['length']?{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f79fe,'\x22'+_0x213e2c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_ROW',_0x4f79fe))};}if('tableColumn'==_0x10098d['subType']){const _0x5738fd=_0x10098d['getItems']()['filter'](_0x43f78c=>_0x43f78c['is']('$textProxy'))['map'](_0x15851b=>_0x15851b['data']),_0x2c5c4e=this['_getSuggestionCoords'](_0x10098d),_0x321f8c=_0x2c5c4e['maxColumn']-_0x2c5c4e['minColumn']+0x1;if('insertion'==_0x10098d['type'])return _0x5738fd['length']?{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x321f8c,'\x22'+_0x5738fd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xbd3196,'*Insert:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN',_0x321f8c))};if('deletion'==_0x10098d['type'])return _0x5738fd['length']?{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x321f8c,'\x22'+_0x5738fd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xbd3196,'*Remove:*\x20%0',o(_0xbd3196,'ELEMENT_TABLE_COLUMN',_0x321f8c))};}}),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2fdfc1),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2fdfc1),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1ab757),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1ab757),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x8c0f3f),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x8c0f3f),_0x48e544['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x48352c),_0x48e544['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x48352c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x521a9d=this['editor'],_0x309cef=_0x521a9d['model']['document']['selection'];return(_0x5d00f8,_0x1fd0ee)=>{_0x521a9d['model']['change'](_0x406b08=>{const {commandName:_0x4d0781,commandParams:_0x358a6b}=_0x1fd0ee;let _0x1b8901=_0x5d00f8[0x0]['end']['nodeBefore'];_0x358a6b&&_0x358a6b[0x0]&&!0x1===_0x358a6b[0x0]['forceValue']&&(_0x1b8901=_0x5d00f8[0x0]['start']['nodeAfter']);const _0x4d5fc5=_0x406b08['createRangeIn'](_0x1b8901);if('$graveyard'==_0x4d5fc5['root']['rootName'])return;const _0x5cf91e=Array['from'](_0x309cef['getRanges']())['map'](_0x141783=>_0x948f0b['fromRange'](_0x141783));_0x406b08['setSelection'](_0x4d5fc5),_0x521a9d['commands']['get'](_0x4d0781)['refresh'](),_0x358a6b['push']({'forceDefaultExecution':!0x0}),_0x521a9d['execute'](_0x4d0781,..._0x358a6b);const _0x3ea3e0=_0x5cf91e['filter'](_0x8c0484=>'$graveyard'!=_0x8c0484['root']['rootName']);_0x3ea3e0['length']>0x0&&_0x406b08['setSelection'](_0x3ea3e0);for(const _0x273dcf of _0x5cf91e)_0x273dcf['detach']();});};}['_getCoordsForCells'](_0x36eb26){const _0x37dfea=this['editor']['plugins']['get']('TableUtils');let _0x279cc2=Number['MAX_SAFE_INTEGER'],_0x3a8bc2=Number['MIN_SAFE_INTEGER'],_0x489612=Number['MAX_SAFE_INTEGER'],_0x16b1c8=Number['MIN_SAFE_INTEGER'];for(const _0x319440 of _0x36eb26){if('$graveyard'==_0x319440['root']['rootName'])continue;const {row:_0x19b149,column:_0x1c6adc}=_0x37dfea['getCellLocation'](_0x319440),_0x44ff9d=_0x319440['hasAttribute']('rowspan')?_0x319440['getAttribute']('rowspan')-0x1:0x0,_0x350081=_0x319440['hasAttribute']('colspan')?_0x319440['getAttribute']('colspan')-0x1:0x0;_0x279cc2=_0x19b149<_0x279cc2?_0x19b149:_0x279cc2,_0x3a8bc2=_0x19b149+_0x44ff9d>_0x3a8bc2?_0x19b149+_0x44ff9d:_0x3a8bc2,_0x489612=_0x1c6adc<_0x489612?_0x1c6adc:_0x489612,_0x16b1c8=_0x1c6adc+_0x350081>_0x16b1c8?_0x1c6adc+_0x350081:_0x16b1c8;}return{'minRow':_0x279cc2,'maxRow':_0x3a8bc2,'minColumn':_0x489612,'maxColumn':_0x16b1c8};}['_setupColumnsRowsFixing'](){const _0x2b4f10=this['editor'],_0x3a87a4=_0x2b4f10['plugins']['get']('TrackChangesEditing'),_0x20e8ec=_0x2b4f10['plugins']['get']('TableUtils');_0x2b4f10['model']['document']['on']('change:data',()=>{const _0x32179d=Array['from'](_0x2b4f10['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19c8f5,data:_0x11d075}of _0x32179d){const {group:_0x456b88,id:_0x11be1b,subType:_0xac5cb2}=_0x3a87a4['_splitMarkerName'](_0x19c8f5);if('suggestion'!=_0x456b88)continue;if(null!=_0x11d075['oldRange'])continue;const _0x42c52d=_0x3a87a4['getSuggestion'](_0x11be1b);this['_tablePostFixingSubtypes']['includes'](_0xac5cb2)&&this['_tableSuggestions']['add'](_0x42c52d);}},{'priority':'low'});const _0x79deff=(_0x52717c,_0x21b68d)=>{let _0x378159=!0x1;const _0xd42d7c=_0x21b68d['createRangeOn'](_0x52717c),_0x440a1f=_0x52717c['findAncestor']('table'),_0x2c4910=_0x20e8ec['getCellLocation'](_0x52717c);for(const _0x345a2c of this['_tableSuggestions']){const _0x48a2e7=_0x345a2c['subType'],_0x318b21=_0x48a2e7['startsWith']('tablePaste'),_0x3d6c6c=_0x48a2e7['substr'](_0x318b21?0xa:0x5),_0x45f00d=_0x3d6c6c['toLowerCase'](),_0xcec5d=_0x45f00d['substr'](0x0,0x3)+'span',_0xfbc79='min'+_0x3d6c6c,_0x1443c5='max'+_0x3d6c6c;if(!_0x345a2c['isInContent'])continue;if(_0x440a1f!=_0x345a2c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x345a2c['isIntersectingWithRange'](_0xd42d7c))continue;const _0xd0d85=_0x52717c['hasAttribute'](_0xcec5d)?_0x52717c['getAttribute'](_0xcec5d)-0x1:0x0,_0x4e6f85=this['_getSuggestionCoords'](_0x345a2c),_0x38f269=_0x4e6f85[_0xfbc79],_0x121a9e=_0x4e6f85[_0x1443c5];_0x38f269<=_0x2c4910[_0x45f00d]&&_0x2c4910[_0x45f00d]+_0xd0d85<=_0x121a9e&&(_0x345a2c['addRange'](_0xd42d7c),_0x378159=!0x0);}return _0x378159;};_0x2b4f10['model']['document']['registerPostFixer'](_0x5f25f7=>{let _0x5c63f3=!0x1;for(const _0x63e216 of _0x2b4f10['model']['document']['differ']['getChanges']())if('insert'==_0x63e216['type']){if('tableRow'==_0x63e216['name']){for(const _0x4ad809 of _0x63e216['position']['nodeAfter']['getChildren']())_0x5c63f3=_0x5c63f3||_0x79deff(_0x4ad809,_0x5f25f7);}else'tableCell'==_0x63e216['name']&&(_0x5c63f3=_0x5c63f3||_0x79deff(_0x63e216['position']['nodeAfter'],_0x5f25f7));}return _0x5c63f3;});}['_getSuggestionCoords'](_0x5f5334){return this['_getCoordsForCells'](_0x5f5334['getRanges']()['map'](_0x991fdf=>_0x991fdf['start']['nodeAfter']));}}function Ee(_0x1f93b2){return Array['from'](new Set(_0x1f93b2)['values']());}class At extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x548fa3=this['editor'],_0x44b826=_0x548fa3['model']['document']['selection'],_0x1df8ca=_0x548fa3['locale'];if(!_0x548fa3['plugins']['has']('TableEditing'))return;const _0x3320ec=_0x548fa3['plugins']['get']('TrackChangesEditing'),_0x43cffb=_0x548fa3['plugins']['get']('TableUtils'),_0x3c317e=_0x548fa3['plugins']['get'](St);_0x3c317e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3320ec['enableCommand']('mergeTableCells',()=>{const _0x392f28=_0x43cffb['getSelectionAffectedTableCells'](_0x548fa3['model']['document']['selection']);_0x548fa3['model']['change'](()=>{_0x3320ec['markMultiRangeBlockFormat'](_0x392f28,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x548fa3['commands']['get']('mergeTableCells')['on']('execute',(_0x45e82a,_0x5cb562)=>{_0x548fa3['commands']['get']('trackChanges')['value']&&(_0x5cb562['length']>0x0&&_0x5cb562[_0x5cb562['length']-0x1]&&_0x5cb562[_0x5cb562['length']-0x1]['forceDefaultExecution']||_0x3320ec['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x45e82a['stop']());},{'priority':'highest'});for(const _0x29eb64 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x23fe58=_0x548fa3['commands']['get'](_0x29eb64);_0x3320ec['enableCommand'](_0x29eb64,()=>{const _0x108e05=_0x548fa3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5e3e16=>_0x5e3e16['is']('element','tableCell')),_0x2b8cb8=_0x23fe58['value'];_0x548fa3['model']['change'](()=>{_0x3320ec['markMultiRangeBlockFormat']([_0x108e05,_0x2b8cb8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x13c3f2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3f3e80=_0x548fa3['commands']['get'](_0x13c3f2);_0x3320ec['enableCommand'](_0x13c3f2,()=>{const _0xb9ba00=_0x43cffb['getSelectionAffectedTableCells'](_0x548fa3['model']['document']['selection'])[0x0],_0x1aa5b7=_0xb9ba00['findAncestor']('table'),{column:_0x365c83,row:_0x2bcdbb}=_0x43cffb['getCellLocation'](_0xb9ba00);let _0x2cd545=[];if('horizontally'==_0x3f3e80['direction']){const _0x319442=_0x43cffb['createTableWalker'](_0x1aa5b7,{'startRow':_0x2bcdbb,'endRow':_0x2bcdbb,'includeAllSlots':!0x0});_0x2cd545=Array['from'](_0x319442)['map'](_0x1a1be0=>_0x1a1be0['cell']);}else{const _0x26cffa=_0x43cffb['createTableWalker'](_0x1aa5b7,{'column':_0x365c83,'includeAllSlots':!0x0});_0x2cd545=Array['from'](_0x26cffa)['map'](_0x312c7e=>_0x312c7e['cell']);}_0x548fa3['model']['change'](_0x323bba=>{_0x3320ec['markBlockFormat'](_0x323bba['createRangeOn'](_0xb9ba00),{'commandName':_0x13c3f2,'commandParams':[]},_0x2cd545,_0x13c3f2);});});}_0x3320ec['descriptionFactory']['registerDescriptionCallback'](_0x1d14b2=>{if('formatBlock'!=_0x1d14b2['type']&&'formatInline'!=_0x1d14b2['type'])return;const {data:_0x5456ef}=_0x1d14b2;return _0x5456ef&&'mergeTableCells'==_0x5456ef['commandName']?{'type':'format','content':o(_0x1df8ca,'*Merge\x20cells*')}:void 0x0;}),_0x3320ec['descriptionFactory']['registerDescriptionCallback'](_0x38d970=>{if('formatBlock'!=_0x38d970['type']&&'formatInline'!=_0x38d970['type'])return;const {data:_0xb3b06d}=_0x38d970;return _0xb3b06d?'splitTableCellVertically'==_0xb3b06d['commandName']?{'type':'format','content':o(_0x1df8ca,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xb3b06d['commandName']?{'type':'format','content':o(_0x1df8ca,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x535bd2=_0x3c317e['_acceptFormatSuggestionCallbackFactory']();for(const _0x3cb66f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3320ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3cb66f,'accept',_0x535bd2);for(const _0x4ce1aa of['splitTableCellVertically','splitTableCellHorizontally'])_0x3320ec['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ce1aa,'accept',_0x535bd2);_0x3320ec['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2ce3ba=>{_0x548fa3['model']['change'](_0x501912=>{const _0x558f58=Array['from'](_0x44b826['getRanges']())['map'](_0x1a36d0=>_0x948f0b['fromRange'](_0x1a36d0));_0x501912['setSelection'](_0x2ce3ba),_0x548fa3['commands']['get']('mergeTableCells')['refresh'](),_0x548fa3['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x38b18c=_0x558f58['filter'](_0x50ea1b=>'$graveyard'!=_0x50ea1b['root']['rootName']);_0x38b18c['length']>0x0&&_0x501912['setSelection'](_0x38b18c);for(const _0x3397ea of _0x558f58)_0x3397ea['detach']();});});for(const _0x595a30 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5cc816=_0x548fa3['commands']['get'](_0x595a30);_0x5cc816['on']('set:isEnabled',(_0x2763cf,_0x46c5e9,_0x1b7844)=>{if(_0x1b7844){const _0x176cd3=_0x548fa3['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xaf0116=>_0xaf0116['is']('element','tableCell'));this['_areMergableCells'](_0x5cc816['value'],_0x176cd3)||(_0x2763cf['return']=!0x1,_0x2763cf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4e25d7=this['editor']['commands']['get']('mergeTableCells'),_0x3ace13=this['editor']['plugins']['get']('TableUtils');if(!_0x4e25d7['isEnabled'])return!0x1;const _0x1e5415=_0x3ace13['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33b1b8 of _0x1e5415)for(const _0x577e90 of _0x1e5415)if(_0x33b1b8!=_0x577e90&&!this['_areMergableCells'](_0x33b1b8,_0x577e90))return!0x1;return!0x0;}['_areMergableCells'](_0x514c29,_0x3229ab){const _0x563535=this['editor']['plugins']['get']('TrackChangesEditing'),_0x70067d=this['editor']['model']['createRangeOn'](_0x514c29),_0x2deb68=this['editor']['model']['createRangeOn'](_0x3229ab),_0x1cc677=new Set(),_0x43fd07=new Set();for(const _0x232aef of _0x563535['getSuggestions']())if(('insertion'==_0x232aef['type']||'deletion'==_0x232aef['type']||'mergeTableCells'==_0x232aef['subType'])&&_0x232aef['isInContent']){for(const _0x6e513e of _0x232aef['getRanges']())_0x6e513e['containsRange'](_0x70067d,!0x0)&&_0x1cc677['add'](_0x232aef['type']+':'+_0x232aef['author']['id']),_0x6e513e['containsRange'](_0x2deb68,!0x0)&&_0x43fd07['add'](_0x232aef['type']+':'+_0x232aef['author']['id']);}if(_0x1cc677['size']!=_0x43fd07['size'])return!0x1;for(const _0x24a844 of _0x1cc677)if(!_0x43fd07['has'](_0x24a844))return!0x1;return!0x0;}}class It extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x5d452d=this['editor'];if(!_0x5d452d['plugins']['has']('TableEditing'))return;const _0x3df145=_0x5d452d['locale'],_0x38e59d=_0x5d452d['plugins']['get']('TrackChangesEditing');_0x38e59d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x38e59d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x38e59d['registerBlockAttribute']('headingRows'),_0x38e59d['registerBlockAttribute']('headingColumns'),_0x38e59d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3df145,'FORMAT_HEADER_ROW')),_0x38e59d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3df145,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x374207=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d7032=this['editor']['plugins']['get']('TableUtils'),_0x432518=this['editor']['plugins']['get'](St)['_acceptFormatSuggestionCallbackFactory']();function _0x4f02b6({showActiveMarker:_0x3e7212=!0x0,setDataAttribute:_0x4ef56b=!0x0}={}){return(_0xda2eb8,_0x48c6b1,_0x5935ad)=>{const {type:_0x2d19b9,id:_0x44cf0d}=_0x374207['_splitMarkerName'](_0x48c6b1['markerName']),_0x36feeb=_0x374207['getSuggestion'](_0x44cf0d),_0x3b1834=_0x36feeb['data'];if('formatBlock'!=_0x36feeb['type']||!_0x3b1834||'setTableColumnHeader'!=_0x3b1834['commandName'])return;if(_0x48c6b1['item'])return void _0xda2eb8['stop']();if(!_0x5935ad['consumable']['consume'](_0x48c6b1['markerRange'],_0xda2eb8['name']))return;const _0x5243e3=_0x48c6b1['markerRange']['start']['nodeAfter'],_0x2a9b31=_0x48c6b1['markerRange']['end']['nodeBefore'],_0x56e545=_0x5243e3['parent']['parent'],{column:_0x162031}=_0x4d7032['getCellLocation'](_0x5243e3),{column:_0x33d49a}=_0x4d7032['getCellLocation'](_0x2a9b31);for(let _0x5d293d=_0x162031;_0x5d293d<=_0x33d49a;_0x5d293d++){const _0x467287=_0x4d7032['createTableWalker'](_0x56e545,{'column':_0x5d293d,'includeAllSlots':!0x1});for(const _0x2504ef of _0x467287){const _0x27246e=_0x2504ef['cell'],_0x42a63f=_0x5935ad['mapper']['toViewElement'](_0x27246e);_0x5935ad['writer']['addClass']('ck-suggestion-marker-'+_0x2d19b9,_0x42a63f),_0x4ef56b&&_0x5935ad['writer']['setAttribute']('data-suggestion',_0x44cf0d,_0x42a63f),_0x5935ad['mapper']['bindElementToMarker'](_0x42a63f,_0x48c6b1['markerName']),_0x3e7212&&(_0x374207['activeMarkers']['includes'](_0x48c6b1['markerName'])?_0x5935ad['writer']['addClass']('ck-suggestion-marker--active',_0x42a63f):_0x5935ad['writer']['removeClass']('ck-suggestion-marker--active',_0x42a63f));}}};}_0x374207['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x432518),_0x374207['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x432518),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f02b6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x510127,_0x412712,_0x366a63)=>{_0x366a63['options']['showSuggestionHighlights']&&_0x4f02b6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x510127,_0x412712,_0x366a63);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x44a806,_0x79d738,_0x54c027)=>{const {type:_0x3c5cf9,id:_0x182157}=_0x374207['_splitMarkerName'](_0x79d738['markerName']),_0x2f7541=_0x374207['getSuggestion'](_0x182157),_0x20cc40=_0x2f7541['data'];if('formatBlock'!=_0x2f7541['type']||!_0x20cc40||'setTableColumnHeader'!=_0x20cc40['commandName'])return;const _0x22b253=_0x54c027['mapper']['markerNameToElements'](_0x79d738['markerName']);if(_0x22b253){for(const _0x2e1cad of _0x22b253)_0x54c027['writer']['removeClass']('ck-suggestion-marker-'+_0x3c5cf9,_0x2e1cad),_0x54c027['writer']['removeClass']('ck-suggestion-marker--active',_0x2e1cad),_0x54c027['writer']['removeAttribute']('data-suggestion',_0x2e1cad),_0x54c027['mapper']['unbindElementFromMarkerName'](_0x2e1cad,_0x79d738['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a5287=this['editor'],_0x4dc34e=_0x1a5287['locale'];function _0x1153c3(_0x5e8808){return{'type':'format','content':o(_0x4dc34e,'*Format:*\x20%0',_0x5e8808)};}_0x1a5287['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a7344=>{if('formatBlock'!=_0x4a7344['type'])return;const {data:_0x4c51c2}=_0x4a7344;if(_0x4c51c2){if('setTableRowHeader'==_0x4c51c2['commandName']){const _0x59c008=_0x4c51c2['commandParams'][0x0]['forceValue'];return _0x1153c3(o(_0x4dc34e,_0x59c008?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4c51c2['commandName']){const _0x20de9b=_0x4c51c2['commandParams'][0x0]['forceValue'];return _0x1153c3(o(_0x4dc34e,_0x20de9b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3ac9a9=>[_0x3ac9a9,null]));class vt extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x1776ab=this['editor'];if(!_0x1776ab['plugins']['has']('TableClipboard'))return;const _0xfa8e11=_0x1776ab['plugins']['get']('TrackChangesEditing'),_0x4cc8e1=_0x1776ab['plugins']['get']('TableUtils'),_0xa9a577=_0x1776ab['plugins']['get'](St),_0x427397=_0x1776ab['plugins']['get']('TableClipboard');_0xa9a577['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1776ab['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1776ab['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2d3b22=null;_0x1776ab['model']['on']('insertContent',(_0x26017a,_0x324ab7)=>{const [_0x332400,_0x3f50d4]=_0x324ab7,_0x3b3838=_0x324ab7[_0x324ab7['length']-0x1];_0x3b3838&&_0x3b3838['forceDefaultExecution']||_0xfa8e11['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x46754e,_0x325484,_0x4ddbf5,_0xadde56,_0x442013){if(_0x325484&&!_0x325484['is']('documentSelection'))return!0x1;const _0x56e6d5=_0x442013['getTableIfOnlyTableInContent'](_0x46754e,_0x4ddbf5);if(!_0x56e6d5||!we(_0x56e6d5,void 0x0,_0xadde56))return!0x1;const _0x44d147=_0xadde56['getSelectionAffectedTableCells'](_0x4ddbf5['document']['selection']);if(!_0x44d147['length'])return!0x1;const _0x2d77b8=_0x44d147[0x0]['findAncestor']('table'),_0x283439=_0xadde56['getRowIndexes'](_0x44d147),_0x386884=_0xadde56['getColumnIndexes'](_0x44d147),_0x3f5905={'startRow':_0x283439['first'],'endRow':_0x283439['last'],'startColumn':_0x386884['first'],'endColumn':_0x386884['last']};return 0x1==_0x44d147['length']&&(_0x3f5905['endRow']+=_0xadde56['getRows'](_0x56e6d5)-0x1,_0x3f5905['endColumn']+=_0xadde56['getColumns'](_0x56e6d5)-0x1),we(_0x2d77b8,_0x3f5905,_0xadde56);}(_0x332400,_0x3f50d4,_0x1776ab['model'],_0x4cc8e1,_0x427397)&&(_0x26017a['stop'](),_0x2d3b22={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1776ab['model']['change'](()=>{_0x1776ab['model']['insertContent'](_0x324ab7[0x0],_0x324ab7[0x1],_0x324ab7[0x2],{'forceDefaultExecution':!0x0});const _0x598f8f=_0x27f732(),{rowInsertionRanges:_0x29e069,columnInsertionRanges:_0x278bd7,insertionRanges:_0x49dc69,deletionRanges:_0x58811b,cells:_0xc21a9e}=_0x2d3b22;_0x29e069['length']&&_0xfa8e11['markMultiRangeInsertion'](_0x29e069,'tablePasteRow',{'tablePasteChainId':_0x598f8f}),_0x278bd7['length']&&_0xfa8e11['markMultiRangeInsertion'](_0x278bd7,'tablePasteColumn',{'tablePasteChainId':_0x598f8f}),_0x49dc69['length']&&(_0xfa8e11['markMultiRangeInsertion'](_0x49dc69,'tablePaste',{'tablePasteChainId':_0x598f8f,'skipNestingCheck':!0x0}),_0x49dc69['forEach'](_0x54a87a=>_0x54a87a['detach']?.())),_0x58811b['length']&&(_0xfa8e11['markMultiRangeDeletion'](_0x58811b,'tablePaste',{'tablePasteChainId':_0x598f8f,'skipNestingCheck':!0x0}),_0x58811b['forEach'](_0x2ad455=>_0x2ad455['detach']?.()));const _0x3b881c=_0xfa8e11['markMultiRangeBlockFormat'](_0xc21a9e['map'](({element:_0xc60b9c})=>_0xc60b9c),{'formatGroupId':_0x27f732()},[],'tablePasteCell',{'tablePasteChainId':_0x598f8f});if(_0x3b881c){const _0x2deda0=_0x3b881c['getMarkers'](),_0x19ec05=[];for(const {element:_0x39300b,attributes:_0x201370}of _0xc21a9e){if(!_0x201370)continue;const _0x33561c=_0x1776ab['model']['createRangeOn'](_0x39300b),_0x314883=_0x2deda0['find'](_0x367a3c=>_0x367a3c['getRange']()['isEqual'](_0x33561c));_0x314883&&_0x19ec05['push']([_0x314883['name'],_0x201370]);}_0x19ec05['length']&&_0x3b881c['setAttribute']('markerAttributes',Object['fromEntries'](_0x19ec05));}_0x2d3b22=null;}));},{'priority':_0x200434['high']+0xa}),_0x1776ab['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x25aedb,_0x2a5ff1)=>{const [_0x3f4066,_0x302cd6,,_0x5b0500]=_0x2a5ff1;if(!_0x2d3b22)return;_0x25aedb['stop']();const _0x2901be=_0x3f4066['cell'],_0x3b34f4=_0x302cd6,_0x1d803d=Pe(_0x2901be),_0x3e069f=Pe(_0x3b34f4);_0x25aedb['return']=_0x2901be;let _0x474801=null,_0x3712d5=null;if(_0x3e069f||_0x1d803d){if(_0x1d803d&&!_0x3e069f){_0x5b0500['remove'](_0x2901be['getChild'](0x0));for(const _0x5a632a of Array['from'](_0x3b34f4['getChildren']()))_0x5b0500['insert'](_0x5a632a,_0x2901be,'end');const _0x462c8b=_0x2d3b22['rowInsertionIndexes']['includes'](_0x3f4066['row']),_0x416b23=_0x2d3b22['columnInsertionIndexes']['includes'](_0x3f4066['column']);_0x462c8b||_0x416b23||(_0x474801=_0x948f0b['fromRange'](_0x5b0500['createRangeIn'](_0x2901be)));}else _0x3e069f&&!_0x1d803d&&(_0x3712d5=_0x5b0500['createRangeIn'](_0x2901be));}else{const _0x2a6de6=_0x5b0500['createElement']('tableCellSuggestion'),_0x130907=_0x5b0500['createElement']('tableCellSuggestion');_0x5b0500['wrap'](_0x5b0500['createRangeIn'](_0x2901be),_0x130907),_0x5b0500['insert'](_0x2a6de6,_0x2901be,0x0);for(const _0x4be5f0 of Array['from'](_0x3b34f4['getChildren']()))_0x5b0500['insert'](_0x4be5f0,_0x2a6de6,'end');_0x474801=_0x948f0b['fromRange'](_0x5b0500['createRangeOn'](_0x2a6de6)),_0x3712d5=_0x948f0b['fromRange'](_0x5b0500['createRangeOn'](_0x130907));}const _0x11aad6=Array['from'](_0x3b34f4['getAttributes']())['filter'](([_0x41c85a])=>ge['includes'](_0x41c85a));_0x2d3b22['cells']['push']({'element':_0x2901be,'attributes':_0x11aad6['length']?Object['fromEntries'](_0x11aad6):null}),_0x474801&&_0x2d3b22['insertionRanges']['push'](_0x474801),_0x3712d5&&_0x2d3b22['deletionRanges']['push'](_0x3712d5);},{'priority':'high'}),_0x4cc8e1['on']('insertColumns',(_0x1df3ab,_0x35205f)=>{const [_0x56e010,_0x31de98={}]=_0x35205f;if(!_0x2d3b22)return;const _0x5b81f8=_0x31de98['at']||0x0,_0x35a308=_0x31de98['columns']||0x1;_0x2d3b22['columnInsertionIndexes']=new Array(_0x35a308)['fill'](_0x5b81f8)['map']((_0x4a3e61,_0x2bc784)=>_0x4a3e61+_0x2bc784);for(const {cell:_0x490768}of _0x4cc8e1['createTableWalker'](_0x56e010,{'startColumn':_0x5b81f8,'endColumn':_0x5b81f8+_0x35a308-0x1}))_0x2d3b22['columnInsertionRanges']['push'](_0x1776ab['model']['createRangeOn'](_0x490768));},{'priority':'low'}),_0x4cc8e1['on']('insertRows',(_0x1e0eb8,_0xf87303)=>{const [_0x5181e6,_0x34b793={}]=_0xf87303;if(!_0x2d3b22)return;const _0x594414=_0x34b793['at']||0x0,_0x17f725=_0x34b793['rows']||0x1;_0x2d3b22['rowInsertionIndexes']=new Array(_0x17f725)['fill'](_0x594414)['map']((_0xd4439f,_0x483542)=>_0xd4439f+_0x483542);for(const {cell:_0x4a031e}of _0x4cc8e1['createTableWalker'](_0x5181e6,{'startRow':_0x594414,'endRow':_0x594414+_0x17f725-0x1}))_0x2d3b22['rowInsertionRanges']['push'](_0x1776ab['model']['createRangeOn'](_0x4a031e));},{'priority':'low'}),_0xfa8e11['descriptionFactory']['registerDescriptionCallback'](_0x5e6d41=>{if(_0x5e6d41['subType']&&_0x5e6d41['subType']['startsWith']('tablePaste'))return _0x5e6d41['previous']?{}:{'type':'insertion','content':o(_0x1776ab['locale'],'*Replace\x20table\x20cells*')};});const _0x5e4d25=()=>!0x1;for(const _0x19a1ac of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xfa8e11['_suggestionFactory']['registerCustomCallback']('insertion',_0x19a1ac,'join',_0x5e4d25),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('deletion',_0x19a1ac,'join',_0x5e4d25),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19a1ac,'join',_0x5e4d25);_0xfa8e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5e4d25),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x7d3859,_0x446104,_0x1402c0)=>{const _0x21ad4b=_0x7d3859['map'](_0x506f51=>_0x506f51['getContainedElement']())['filter'](_0x4ee19a=>_0x4ee19a),_0x3c380e=new Map(_0x21ad4b['map'](_0x415a48=>[_0x415a48,null]));if(_0x2d3b22){for(const {element:_0x32b1ed,attributes:_0x5a2fd}of _0x2d3b22['cells'])_0x5a2fd&&_0x3c380e['set'](_0x32b1ed,_0x5a2fd);}else{if(_0x1402c0&&_0x1402c0['markerAttributes'])for(const [_0x2bd4bc,_0x32e1f3]of Object['entries'](_0x1402c0['markerAttributes'])){const _0x1184a9=_0x1776ab['model']['markers']['get'](_0x2bd4bc),_0x3d1aec=_0x1184a9?_0x1184a9['getRange']()['getContainedElement']():null;_0x3d1aec&&_0x3c380e['set'](_0x3d1aec,_0x32e1f3);}}_0x1776ab['model']['change'](_0x1fcbe0=>{for(const [_0x131277,_0xa4d065]of _0x3c380e)_0x1fcbe0['setAttributes']({...Ce,..._0xa4d065},_0x131277);});});const _0x48695e=(_0x122672,_0x369f04)=>{_0xfa8e11['_suggestionFactory']['registerCustomCallback'](_0x122672,'tablePaste',_0x369f04,(_0x5996f1,_0x152919,_0x2ee717)=>{_0x1776ab['model']['change'](_0x1e6e77=>{const _0x58e571=[];for(const _0x2ef86c of _0x5996f1){const _0x410c22=_0x2ef86c['start']['nodeAfter'];_0x410c22['is']('element','tableCellSuggestion')&&_0x58e571['push'](_0x410c22);}_0xfa8e11['_suggestionFactory']['getSuggestionCallback'](_0x122672,null,_0x369f04)(_0x5996f1,_0x152919,_0x2ee717);for(const _0x5c7101 of _0x58e571)'$graveyard'!=_0x5c7101['root']['rootName']&&_0x1e6e77['unwrap'](_0x5c7101);});});};_0x48695e('insertion','accept'),_0x48695e('insertion','discard'),_0x48695e('deletion','accept'),_0x48695e('deletion','discard'),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x7f2e84=>{const _0x2bccf8=_0x7f2e84['map'](_0x491d3e=>_0x491d3e['getContainedElement']()),_0x3e787e=_0x2bccf8[0x0]['findAncestor']('table'),{minRow:_0x4664b4,maxRow:_0x41cce0}=_0xa9a577['_getCoordsForCells'](_0x2bccf8);_0x4cc8e1['removeRows'](_0x3e787e,{'at':_0x4664b4,'rows':_0x41cce0-_0x4664b4+0x1});}),_0xfa8e11['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x58fd1e=>{const _0x59881c=_0x58fd1e['map'](_0x35849f=>_0x35849f['getContainedElement']()),_0x4dbddf=_0x59881c[0x0]['findAncestor']('table'),{minColumn:_0x574981,maxColumn:_0x5dcc59}=_0xa9a577['_getCoordsForCells'](_0x59881c);_0x4cc8e1['removeColumns'](_0x4dbddf,{'at':_0x574981,'columns':_0x5dcc59-_0x574981+0x1});});const _0x41c85f=(_0x5ceac7,_0x2f97e8)=>{if(!_0x2f97e8['subType']||!_0x2f97e8['subType']['startsWith']('tablePaste'))return;const _0x183e96=_0x2f97e8['attributes']['tablePasteChainId'],_0x3f2152=_0xfa8e11['getSuggestions']()['filter'](_0x370436=>_0x370436['isInContent']&&_0x370436['attributes']&&_0x370436['attributes']['tablePasteChainId']==_0x183e96);_0x3f2152['length']&&_0x2f97e8['getAllAdjacentSuggestions']()['length']!=_0x3f2152['length']&&_0x3f2152['reduce']((_0x5afb41,_0x246ce2)=>(_0x5afb41['next']=_0x246ce2,_0x246ce2['previous']=_0x5afb41,_0x246ce2));};function _0x114c9a(_0x129573,_0x47934b=!0x0){const {id:_0x3f675c}=_0xfa8e11['_splitMarkerName'](_0x129573['markerName']),_0x547861=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3868c6=_0xfa8e11['activeMarkers']['includes'](_0x129573['markerName']);return _0x3868c6&&_0x547861['push']('ck-suggestion-marker--active'),{'classes':_0x547861,'attributes':{'data-suggestion':_0x3f675c},'priority':_0x3868c6&&_0x47934b?0xbc2:0xbb8};}_0xfa8e11['on']('suggestionLoaded',_0x41c85f,{'priority':'high'}),_0xfa8e11['on']('suggestionUnloaded',_0x41c85f,{'priority':'high'}),_0x1776ab['model']['document']['registerPostFixer'](()=>{let _0x20808a=!0x1;const _0x49b78b=Array['from'](_0x1776ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x289c38,data:_0x7ed752}of _0x49b78b){const {group:_0x4f44ea,type:_0x195b5d,id:_0x31b6f7}=_0xfa8e11['_splitMarkerName'](_0x289c38);if('suggestion'!=_0x4f44ea||'deletion'!=_0x195b5d||_0x7ed752['oldRange'])continue;if(!_0xfa8e11['hasSuggestion'](_0x31b6f7))continue;const _0x51bb1e=_0xfa8e11['getSuggestion'](_0x31b6f7)['getRanges'](),_0x16f5d5=_0x1776ab['plugins']['get']('Users')['me'];for(const _0x316e17 of _0xfa8e11['getSuggestions']()){if(!_0x316e17['isInContent']||_0x316e17['author']!=_0x16f5d5)continue;if('formatBlock'!=_0x316e17['type']||'tablePasteCell'!=_0x316e17['subType'])continue;if(_0x316e17['getRanges']()['every'](_0x44134a=>_0x51bb1e['some'](_0x5a1816=>_0x5a1816['containsRange'](_0x44134a,!0x0)))){for(const _0x318055 of _0x316e17['getAllAdjacentSuggestions']())_0x318055['isInContent']&&(_0x318055['discard'](),_0x20808a=!0x0);}}}return _0x20808a;}),_0x1776ab['model']['document']['registerPostFixer'](_0x5dc406=>{const _0x35bb71=_0x1776ab['commands']['get']('redo');if(!_0x35bb71||!_0x35bb71['_createdBatches']['has'](_0x5dc406['batch']))return!0x1;let _0x57d6d4=!0x1;const _0x2a8cce=_0x1776ab['plugins']['get']('Users')['me'],_0x4e7bde=_0x1776ab['model']['document']['differ']['getChanges'](),_0x19525a=Array['from'](_0x1776ab['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d11e9,data:_0x15a42a})=>{const {group:_0x1fad4b,subType:_0x52fe55,authorId:_0x24f8e6}=_0xfa8e11['_splitMarkerName'](_0x3d11e9);return'suggestion'==_0x1fad4b&&'tablePaste'==_0x52fe55&&_0x24f8e6==_0x2a8cce['id']&&!_0x15a42a['oldRange'];});for(const _0x4a81f5 of _0x4e7bde){if('insert'!=_0x4a81f5['type']||'tableCellSuggestion'!=_0x4a81f5['name']||0x1!=_0x4a81f5['length'])continue;const _0x305f19=_0x5dc406['createRange'](_0x4a81f5['position'],_0x4a81f5['position']['getShiftedBy'](0x1));if(!_0x19525a['find'](({data:_0x56853b})=>_0x56853b['newRange']['isEqual'](_0x305f19))){for(const {name:_0x3d2466,data:_0x54af6c}of _0x19525a)if(_0x305f19['containsRange'](_0x54af6c['newRange'])){_0x5dc406['updateMarker'](_0x3d2466,{'range':_0x305f19}),_0x57d6d4=!0x0;break;}}}return _0x57d6d4;}),_0x1776ab['model']['document']['registerPostFixer'](_0x4ee4d0=>{let _0x47d0b5=!0x1;const _0x25f779=_0x1776ab['plugins']['get']('Users')['me'],_0x8567c9=_0xfa8e11['getSuggestions']()['filter'](_0x5a64ce=>_0x5a64ce['isInContent']&&_0x5a64ce['author']==_0x25f779),_0x3a73a2=new Set(),_0x1dcd0f=new Set();for(const _0x1019c7 of _0x8567c9)if('tablePaste'==_0x1019c7['subType'])for(const _0xb8bbed of _0x1019c7['getMarkers']()){const _0x511757=_0xb8bbed['getRange']()['getContainedElement']();if(_0x511757){if(_0x511757['is']('element','tableCellSuggestion')&&Pe(_0x511757)){_0x1019c7['removeMarker'](_0xb8bbed['name']),_0x3a73a2['add'](_0x511757),_0x47d0b5=!0x0;const _0x342c02=_0x511757['nextSibling'],_0x4f7ce4=_0x511757['previousSibling'],_0x102bb3=_0x342c02&&_0x342c02['is']('element','tableCellSuggestion'),_0x25fcef=_0x4f7ce4&&_0x4f7ce4['is']('element','tableCellSuggestion');_0x102bb3&&!_0x3a73a2['has'](_0x342c02)&&_0x1dcd0f['add'](_0x342c02),_0x25fcef&&!_0x3a73a2['has'](_0x4f7ce4)&&_0x1dcd0f['add'](_0x4f7ce4);}else _0x511757['is']('element','paragraph')&&_0x511757['isEmpty']&&(_0x1019c7['removeMarker'](_0xb8bbed['name']),_0x47d0b5=!0x0);}}else{if('tablePasteCell'==_0x1019c7['subType']){if(!_0x1019c7['attributes']||!_0x1019c7['attributes']['tablePasteChainId'])continue;const _0x4ac58e=_0x1019c7['attributes']['markerAttributes'];if(_0x4ac58e&&Object['keys'](_0x4ac58e)['length'])continue;const _0x6020d5=_0x1019c7['attributes']['tablePasteChainId'];let _0x37c6a1=!0x0,_0x2ad168=!0x0;for(const _0xe50f3d of _0x8567c9)if(_0xe50f3d['subType']&&_0xe50f3d['subType']['startsWith']('tablePaste')){if(!_0xe50f3d['attributes']['tablePasteChainId']){_0x2ad168=!0x1;break;}if(_0xe50f3d['id']!=_0x1019c7['id']&&_0xe50f3d['attributes']['tablePasteChainId']==_0x6020d5){_0x37c6a1=!0x1;break;}}_0x2ad168&&_0x37c6a1&&(_0x1019c7['removeMarkers'](),_0x47d0b5=!0x0);}}for(const _0x22ff78 of _0x3a73a2)_0x4ee4d0['remove'](_0x22ff78);for(const _0x256fe4 of _0x1dcd0f)_0x4ee4d0['unwrap'](_0x256fe4);return _0x47d0b5;}),_0x1776ab['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3d8e67,_0x23d222)=>_0x114c9a(_0x3d8e67),'converterPriority':'high'}),_0x1776ab['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38bfd1,_0xd9214d)=>_0xd9214d['options']['showSuggestionHighlights']?_0x114c9a(_0x38bfd1,!0x1):null,'converterPriority':'high'});const _0x576392=_0x1776ab['editing']['view'];this['listenTo'](_0x576392['document'],'clipboardOutput',(_0x225d67,_0x16da3d)=>{const _0x3c4a2c=[];for(const _0x14585b of _0x576392['createRangeIn'](_0x16da3d['content'])['getItems']())_0x14585b['is']('element','suggestion-td')&&_0x3c4a2c['push'](_0x14585b);_0x576392['change'](_0x187b96=>{for(const _0x987471 of _0x3c4a2c)_0x187b96['move'](_0x187b96['createRangeIn'](_0x987471),_0x187b96['createPositionBefore'](_0x987471)),_0x187b96['remove'](_0x987471);});});}}function Pe(_0x2711bf){if(_0x2711bf['isEmpty'])return!0x0;const _0x36973d=_0x2711bf['getChild'](0x0);return _0x36973d['is']('element','paragraph')&&_0x36973d['isEmpty'];}function we(_0x3c19c5,_0x541a0f={},_0x5910bc){for(const {isAnchor:_0x238931,cellHeight:_0x5944b8,cellWidth:_0x1d1fff}of _0x5910bc['createTableWalker'](_0x3c19c5,{'includeAllSlots':!0x0,..._0x541a0f}))if(!_0x238931||0x1!=_0x5944b8||0x1!=_0x1d1fff)return!0x1;return!0x0;}class Ct extends _0x15c086{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x8cf208=this['editor']['plugins']['get']('TrackChangesEditing');_0x8cf208['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x8cf208['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x8cf208['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8cf208['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x8cf208['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x8cf208['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x10c67a,_0x53d45c){const _0x1520dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b8fa1=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x114e0f=_0x53d45c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f916f=_0x3b8fa1['getColumnGroupElement'](_0x114e0f);let _0x16b42e=_0x3f916f?_0x3b8fa1['getTableColumnsWidths'](_0x3f916f):null,_0x3bad62=_0x114e0f['getAttribute']('tableWidth')||null;const _0x7a0fb9=_0x53d45c['tableWidth']||_0x3bad62,_0x10d53b=_0x53d45c['columnWidths']||_0x16b42e,_0x3a8d8f=this['editor']['plugins']['get']('Users')['me'];for(const _0x119a9f of _0x1520dd['getSuggestions']()){const _0x16dcef=_0x119a9f['getContainedElement']();if('resizeTable'===_0x119a9f['subType']&&_0x16dcef===_0x114e0f){_0x119a9f['author']!==_0x3a8d8f&&_0x119a9f['discard']();const _0x171b86=_0x119a9f['data']['commandParams'];_0x3bad62=_0x171b86[0x0]['tableWidth'],_0x16b42e=_0x171b86[0x0]['columnWidths'];break;}}_0x10c67a({'table':_0x114e0f,'tableWidth':_0x7a0fb9,'columnWidths':_0x10d53b}),_0x1520dd['markBlockFormat'](_0x114e0f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3bad62,'columnWidths':_0x16b42e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x14a7cd){if('formatBlock'!=_0x14a7cd['type']&&'formatInline'!=_0x14a7cd['type'])return;const {data:_0x228bb1}=_0x14a7cd;if(_0x228bb1&&'resizeTable'===_0x228bb1['formatGroupId']){const _0xc030d9='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xc030d9)};}}}class _t extends _0x15c086{['afterInit'](){const _0x41be26=this['editor'];_0x41be26['plugins']['has']('Template')&&_0x41be26['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Dt extends _0x15c086{['afterInit'](){const _0x345313=this['editor'];if(!_0x345313['commands']['get']('insertTableOfContents'))return;_0x345313['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x59afbc=_0x345313['plugins']['get']('TrackChangesEditing'),_0x4fc344=_0x345313['locale'];_0x59afbc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1adcd3=>o(_0x4fc344,'ELEMENT_TABLE_OF_CONTENTS',_0x1adcd3));}}class Nt extends _0x15c086{['afterInit'](){const _0x5733fd=this['editor'];if(!_0x5733fd['plugins']['has']('Title'))return;const _0x629e3=_0x5733fd['plugins']['get']('TrackChangesEditing');_0x629e3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5733fd['locale'],'ELEMENT_TITLE')),_0x5733fd['model']['document']['registerPostFixer'](_0x2b0add=>{let _0x5414ed=!0x1;const _0x21d969=Array['from'](_0x5733fd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15def7,data:_0x22775e}of _0x21d969){const {group:_0x119fb8}=_0x629e3['_splitMarkerName'](_0x15def7);if('suggestion'!==_0x119fb8||!_0x22775e['newRange'])continue;const _0x87296=_0x22775e['newRange'],_0x3f2708=_0x87296['end']['nodeBefore'];if(!_0x3f2708||!_0x3f2708['is']('element','title-content'))continue;if(!_0x87296['start']['isTouching'](_0x87296['end']))continue;const _0xa3a815=_0x5733fd['model']['schema']['getNearestSelectionRange'](_0x87296['end'],'forward');if(_0xa3a815&&_0xa3a815['isCollapsed']){const _0x2f29da=_0x2b0add['createRange'](_0x87296['start'],_0xa3a815['start']);_0x2f29da['isEqual'](_0x87296)||(_0x2b0add['updateMarker'](_0x15def7,{'range':_0x2f29da}),_0x5414ed=!0x0);}_0x5414ed||(_0x2b0add['removeMarker'](_0x15def7),_0x5414ed=!0x0);}return _0x5414ed;});}}class Mt extends _0x15c086{['afterInit'](){const _0x1a0e28=this['editor'],_0x1f6b3d=_0x1a0e28['plugins']['get']('TrackChangesEditing');_0x1a0e28['plugins']['has']('UndoEditing')&&(_0x1f6b3d['enableCommand']('undo'),_0x1f6b3d['enableCommand']('redo'));}}class $t extends _0x15c086{static get['requires'](){return[St];}['afterInit'](){const _0x513057=this['editor'];if(!_0x513057['plugins']['has']('TableCaptionEditing'))return;_0x513057['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Bt extends _0x15c086{['tableProperties'];['tableCellProperties'];constructor(_0x1749ac){super(_0x1749ac),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 _0x51db46=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x477e0d of this['tableProperties'])_0x51db46['enableCommand'](_0x477e0d,(_0x5639c2,_0x2526d2)=>{const _0x591f05=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x477e0d,[_0x591f05],this['tableProperties'],'tableProperties',_0x5639c2,_0x2526d2);});_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x51db46['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4c0e4a,_0x390c67)=>this['handleDiscardAction'](this['tableProperties'],_0x4c0e4a,_0x390c67)),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x12f8ea of this['tableCellProperties'])_0x51db46['enableCommand'](_0x12f8ea,(_0x433e1d,_0x337ced)=>{const _0x4d18b6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x12f8ea,_0x4d18b6,this['tableCellProperties'],'tableCellProperties',_0x433e1d,_0x337ced);});_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x51db46['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2a76c3,_0x3b9d8f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2a76c3,_0x3b9d8f)),_0x51db46['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x51db46['descriptionFactory']['registerDescriptionCallback'](_0x1fe2ba=>this['handleSuggestionDescription'](_0x1fe2ba));}['_handlePropertyChange'](_0x4c1cd3,_0x5c8068,_0x2f6a94,_0x17c7d3,_0x794cdf,_0x7d7c5b){const _0x12eede=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x7d7c5b['batch'],()=>{for(const _0x103007 of _0x5c8068){if(this['_getSuggestion'](_0x103007,_0x17c7d3))_0x794cdf(_0x7d7c5b);else{const _0x2f61d0={};for(const _0x694e91 of _0x2f6a94){const _0x3c4a44=_0x103007['getAttribute'](_0x694e91);void 0x0!==_0x3c4a44&&(_0x2f61d0[_0x694e91]=_0x3c4a44);}_0x794cdf(_0x7d7c5b),_0x12eede['markBlockFormat'](_0x103007,{'commandParams':[_0x2f61d0]},[],_0x17c7d3);}}});}['handleDiscardAction'](_0x1df6be,_0x64904e,_0x4de6bd){const _0x4eeba5=_0x64904e[0x0]['start']['nodeAfter'],_0x301a4d=_0x4de6bd['commandParams'][0x0];this['editor']['model']['change'](_0x46aa1d=>{for(const _0x1e7e94 of _0x1df6be)void 0x0!==_0x301a4d[_0x1e7e94]?_0x46aa1d['setAttribute'](_0x1e7e94,_0x301a4d[_0x1e7e94],_0x4eeba5):_0x46aa1d['removeAttribute'](_0x1e7e94,_0x4eeba5);});}['handleSuggestionDescription'](_0x3467fc){if(_0x3467fc['data'])switch(_0x3467fc['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'](_0x363863,_0x4f9843){const _0x4e98eb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x269803 of _0x4e98eb['getSuggestions']({'skipNotAttached':!0x0})){const _0x43ec6b=_0x269803['getContainedElement']();if(_0x269803['subType']===_0x4f9843&&_0x43ec6b===_0x363863)return _0x269803;}return null;}}const m='$elementName';class p extends _0x15c086{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x391bb8,_0x159dc3,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,mt,ct,z,pe,ft,gt,lt,dt,pt,kt,bt,wt,yt,jt,St,At,It,$t,vt,Ct,Dt,Bt,_t,Nt,Mt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x59bd3e){function _0x18f6da(_0x340367){return _0x340367['map'](_0x352fc4=>String['fromCharCode'](_0x352fc4))['join']('');}super(_0x59bd3e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x52d663,_0x1269f9,_0xe452d6,_0x43ce7c)=>{this['_model']['change'](()=>{for(const _0x5e9df7 of[..._0x43ce7c,..._0xe452d6])this['_model']['markers']['has'](_0x5e9df7)&&_0x59bd3e['editing']['reconvertMarker'](_0x5e9df7);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Rt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x59bd3e['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(),_0x59bd3e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x59bd3e['config']['get']('trackChanges.trackFormatChanges'),_0x59bd3e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x59bd3e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x59bd3e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x18f6da([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x18f6da([0x34,0x30,0x34,0x38,0x31,0x34,0x34,0x30]);}['init'](){const _0x94d4b7=this['editor'],_0x1c39c4=(_0x1473a5,_0x575c49)=>{if('attribute'!=_0x1473a5)return'ck-suggestion-marker-'+_0x1473a5;const _0xb4a941=_0x575c49['split']('|')[0x0];return this['_isBlockAttribute'](_0xb4a941)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x94d4b7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x29339e=>{const {id:_0xd05fee,type:_0x1afb79,subType:_0x69d425}=this['_splitMarkerName'](_0x29339e['markerName']),_0x297372=['ck-suggestion-marker',_0x1c39c4(_0x1afb79,_0x69d425)];let _0xeec419=0xbb8;return this['activeMarkers']['includes'](_0x29339e['markerName'])&&(_0x297372['push']('ck-suggestion-marker--active'),_0xeec419=0xbc2),'deletion'==_0x1afb79&&(_0xeec419+=0x5),{'classes':_0x297372,'attributes':{'data-suggestion':_0xd05fee},'priority':_0xeec419};}}),_0x94d4b7['conversion']['for']('dataDowncast')['add'](_0x28c251=>{_0x28c251['on']('addMarker:suggestion',(_0x4d1596,_0x408a58,_0x403b4d)=>{if(!_0x403b4d['options']['showSuggestionHighlights'])return;const _0x29650e=_0x408a58['item'];if(!_0x29650e)return;const _0xed272e=_0x403b4d['mapper']['toViewElement'](_0x29650e);_0x94d4b7['model']['schema']['isObject'](_0x29650e)&&_0xed272e&&!_0xed272e['getCustomProperty']('widget')&&_0xed272e['is']('containerElement')&&_0xb67c89(_0xed272e,_0x403b4d['writer']);},{'priority':'high'});}),_0x94d4b7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x50a6a8,_0x537355)=>{if(!_0x537355['options']['showSuggestionHighlights'])return null;const {type:_0x2174d2,subType:_0x938e79}=this['_splitMarkerName'](_0x50a6a8['markerName']);return{'classes':['ck-suggestion-marker',_0x1c39c4(_0x2174d2,_0x938e79)],'priority':0xbb8};}});const _0xbd3ce9=({showActiveMarkers:_0x1f84f7=!0x0,isAttributeSuggestion:_0x5b25bc=!0x1}={})=>(_0x11b37b,_0x471bbf,_0x1a8df1)=>{if(!_0x471bbf['item'])return;const {id:_0x1de24c}=this['_splitMarkerName'](_0x471bbf['markerName']);if(_0x5b25bc){const _0x21bbc9=this['_suggestions']['get'](_0x1de24c),_0x3e35ce=this['_getAttributeKey'](_0x21bbc9);if(!this['_isBlockAttribute'](_0x3e35ce))return;}if(_0x471bbf['item']['is']('selection'))return void _0x1a8df1['consumable']['consume'](_0x471bbf['item'],_0x11b37b['name']);const _0xab104c=_0x1a8df1['mapper']['toViewElement'](_0x471bbf['item']);if(_0x471bbf['item']['is']('element')&&_0x94d4b7['model']['schema']['isBlock'](_0x471bbf['item'])&&!_0xab104c['getCustomProperty']('addHighlight')){_0x1a8df1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xab104c),_0x1a8df1['writer']['setAttribute']('data-suggestion',_0x1de24c,_0xab104c),_0x1a8df1['mapper']['bindElementToMarker'](_0xab104c,_0x471bbf['markerName']),_0x1f84f7&&(this['activeMarkers']['includes'](_0x471bbf['markerName'])?_0x1a8df1['writer']['addClass']('ck-suggestion-marker--active',_0xab104c):_0x1a8df1['writer']['removeClass']('ck-suggestion-marker--active',_0xab104c));for(const _0x3b6291 of _0x94d4b7['model']['createRangeIn'](_0x471bbf['item'])['getItems']())_0x1a8df1['consumable']['consume'](_0x3b6291,_0x11b37b['name']);_0x1a8df1['consumable']['consume'](_0x471bbf['item'],_0x11b37b['name']);}};_0x94d4b7['conversion']['for']('dataDowncast')['add'](_0x363417=>{_0x363417['on']('addMarker:suggestion:formatBlock',(_0x2caff0,_0x3d2955,_0x5192c3)=>{_0x5192c3['options']['showSuggestionHighlights']&&_0xbd3ce9({'showActiveMarkers':!0x1})(_0x2caff0,_0x3d2955,_0x5192c3);},{'priority':'highest'});}),_0x94d4b7['conversion']['for']('dataDowncast')['add'](_0x2f1f27=>{_0x2f1f27['on']('addMarker:suggestion:attribute',(_0x91d1bc,_0x54566f,_0x400690)=>{_0x400690['options']['showSuggestionHighlights']&&_0xbd3ce9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x91d1bc,_0x54566f,_0x400690);},{'priority':'highest'});}),_0x94d4b7['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3c6320,_0x22fca8)=>_0x22fca8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3c6320['substr'](0xb)}}),_0x94d4b7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3ad7b0,{writer:_0x1cbe22})=>{let _0x3bf26a='suggestion:'+_0x3ad7b0['getAttribute']('suggestion-type')+':'+_0x3ad7b0['getAttribute']('id');return _0x3ad7b0['getAttribute']('marker-count')&&(_0x3bf26a+=':'+_0x3ad7b0['getAttribute']('marker-count')),_0x1cbe22['createElement']('$marker',{'data-name':_0x3bf26a});}}),_0x94d4b7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x369b8b=>{_0x369b8b['on']('addMarker:suggestion:formatBlock',_0xbd3ce9(),{'priority':'high'});}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x2bd565=>{_0x2bd565['on']('addMarker:suggestion:attribute',_0xbd3ce9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x1dadd1=>{_0x1dadd1['on']('removeMarker:suggestion:formatBlock',(_0xb3da7a,_0x3d76e6,_0x575553)=>{const _0x53ff83=_0x575553['mapper']['markerNameToElements'](_0x3d76e6['markerName']);if(_0x53ff83){for(const _0x3c302f of _0x53ff83)_0x3c302f['getCustomProperty']('addHighlight')||(_0x575553['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c302f),_0x575553['writer']['removeAttribute']('data-suggestion',_0x3c302f),_0x575553['mapper']['unbindElementFromMarkerName'](_0x3c302f,_0x3d76e6['markerName']));}},{'priority':'high'});}),_0x94d4b7['conversion']['for']('editingDowncast')['add'](_0x20187a=>{_0x20187a['on']('removeMarker:suggestion:attribute',(_0x2f5b97,_0x321135,_0x3cadaf)=>{const _0x55268e=_0x3cadaf['mapper']['markerNameToElements'](_0x321135['markerName']);if(!_0x55268e)return;const {id:_0x3ad5e2}=this['_splitMarkerName'](_0x321135['markerName']),_0xc0ddb8=this['_suggestions']['get'](_0x3ad5e2),_0x4d4ae8=this['_getAttributeKey'](_0xc0ddb8);if(this['_isBlockAttribute'](_0x4d4ae8)){for(const _0x348810 of _0x55268e)_0x348810['getCustomProperty']('addHighlight')||(_0x3cadaf['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x348810),_0x3cadaf['writer']['removeAttribute']('data-suggestion',_0x348810),_0x3cadaf['mapper']['unbindElementFromMarkerName'](_0x348810,_0x321135['markerName']));}},{'priority':'high'});}),_0x94d4b7['model']['document']['registerPostFixer'](_0x28fbad=>{let _0x12f5c7=!0x1;const _0xab03d6=Array['from'](_0x94d4b7['model']['document']['differ']['getChangedMarkers']()),_0x11663b=new Set();for(const {name:_0x286172,data:_0x4f41e0}of _0xab03d6){const {group:_0x5a2229,type:_0x298381,subType:_0x4e45f8,id:_0x20733c}=this['_splitMarkerName'](_0x286172);if('suggestion'!==_0x5a2229)continue;const _0x283feb=this['_suggestions']['get'](_0x20733c);if(null!=_0x4f41e0['newRange']){'formatInline'==_0x298381&&(_0x12f5c7=_0x12f5c7||Vt(_0x4f41e0['newRange'],_0x286172,_0x28fbad,_0x94d4b7['model']['schema']));const _0x52725a='attribute'==_0x298381&&this['_isBlockAttribute'](_0x4e45f8['split']('|')[0x0]);if(_0x4f41e0['newRange']['isCollapsed']||'$graveyard'==_0x4f41e0['newRange']['root']['rootName']||'formatBlock'==_0x298381&&!Ot(_0x4f41e0['newRange'])||_0x52725a&&!Ot(_0x4f41e0['newRange'])||'deletion'==_0x298381&&!(!Et(_0x58812b=_0x4f41e0['newRange'])&&!function(_0x8646a2){return _0x8646a2['start']['parent']==_0x8646a2['end']['nodeBefore']&&_0x8646a2['start']['isAtEnd'];}(_0x58812b)))_0x28fbad['removeMarker'](_0x286172),_0x12f5c7=!0x0;else{if(!_0x283feb||!_0x283feb['isInContent'])continue;_0x11663b['add'](_0x283feb);}}}var _0x58812b;return _0x11663b['size']>0x0&&(_0x12f5c7=!!this['_joinWithAdjacentSuggestions'](_0x11663b)||_0x12f5c7),_0x12f5c7;}),_0x94d4b7['model']['document']['registerPostFixer'](_0x56ff24=>{let _0xdc6fd4=!0x1;for(const _0x27a981 of _0x94d4b7['model']['document']['differ']['getChanges']())if('insert'==_0x27a981['type'])for(const _0x3a83c3 of this['_suggestions']['values']()){if(_0x3a83c3['isMultiRange']||!_0x3a83c3['isInContent'])continue;const _0x58e0ea='formatBlock'==_0x3a83c3['type'],_0xdf7c5e=this['_getAttributeKey'](_0x3a83c3),_0x3b1a72=_0xdf7c5e&&this['_isBlockAttribute'](_0xdf7c5e);if(!_0x58e0ea&&!_0x3b1a72)continue;const _0x33582d=_0x3a83c3['getFirstRange']();if(_0x33582d['start']['parent']!=_0x33582d['end']['parent']&&!_0x33582d['end']['isAtEnd']){const _0x450fbf=_0x94d4b7['model']['createPositionAt'](_0x33582d['start']['nodeAfter'],'end'),_0x1e1cf5=_0x94d4b7['model']['createRange'](_0x33582d['start'],_0x450fbf);_0x56ff24['updateMarker'](_0x3a83c3['getFirstMarker'](),{'range':_0x1e1cf5}),_0xdc6fd4=!0x0;}}return _0xdc6fd4;}),_0x94d4b7['model']['document']['registerPostFixer'](_0x424354=>this['_processAttributeChanges'](_0x424354)),_0x94d4b7['model']['document']['registerPostFixer'](_0x5e712a=>!_0x5e712a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5e712a)),_0x94d4b7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x94d4b7['model']['document']['on']('change:data',(_0x177c37,_0x1ae8ca)=>{if(!_0x1ae8ca['isLocal']||_0x1ae8ca['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x465895=_0x94d4b7['model']['document']['differ']['getChanges']();if(0x0==_0x465895['length'])return;const _0xf0cc2e=[],_0x17f03d=_0x465895['filter'](_0x3ad60f=>'attribute'==_0x3ad60f['type']),_0x562041=_0x465895['filter'](_0x14034f=>'insert'==_0x14034f['type']&&'$text'!=_0x14034f['name']);for(const _0x3a3411 of _0x17f03d)this['_isRegisteredAttribute'](_0x3a3411['attributeKey'])&&_0xf0cc2e['push']({'key':_0x3a3411['attributeKey'],'newValue':_0x3a3411['attributeNewValue'],'oldValue':_0x3a3411['attributeOldValue'],'range':Gt(_0x3a3411['range'],_0x94d4b7['model'])});for(const _0x64ec64 of _0x562041){if('rename'!=_0x64ec64['action']&&'refresh'!=_0x64ec64['action'])continue;const _0x494948=Ft(_0x64ec64['position']['nodeAfter'],_0x94d4b7['model']),_0x27aa80=_0x64ec64['before'];'rename'==_0x64ec64['action']&&_0xf0cc2e['push']({'key':m,'newValue':_0x64ec64['name'],'oldValue':_0x27aa80['name'],'range':_0x494948});for(const [_0x7f0e18,_0xb19505]of _0x27aa80['attributes']){if(!this['_isRegisteredAttribute'](_0x7f0e18))continue;const _0x2fb2a2=_0x64ec64['attributes']['get'](_0x7f0e18);_0xb19505!==_0x2fb2a2&&_0xf0cc2e['push']({'key':_0x7f0e18,'newValue':_0x2fb2a2,'oldValue':_0xb19505,'range':_0x494948});}for(const [_0x5c4204,_0x44d9cc]of _0x64ec64['attributes'])this['_isRegisteredAttribute'](_0x5c4204)&&(_0x27aa80['attributes']['has'](_0x5c4204)||_0xf0cc2e['push']({'key':_0x5c4204,'newValue':_0x44d9cc,'oldValue':null,'range':_0x494948}));}0x0!=_0xf0cc2e['length']&&_0x94d4b7['model']['enqueueChange'](_0x1ae8ca,_0x2f81a3=>{const _0x3a90cc=_0x27f732();for(const {range:_0x52acb9,key:_0x56e6e4,oldValue:_0x558a06,newValue:_0x5ec010}of _0xf0cc2e)this['markAttributeChange'](_0x52acb9,_0x56e6e4,_0x558a06,_0x5ec010,{'groupId':_0x3a90cc});this['_reduceExistingSuggestions'](_0x2f81a3,_0xf0cc2e);});},{'priority':'lowest'}),_0x94d4b7['model']['markers']['on']('update:suggestion',(_0x1a0326,_0x38d6a4,_0x5d4bd5)=>{if(null==_0x5d4bd5){const {id:_0x3a0781}=this['_splitMarkerName'](_0x38d6a4['name']),_0x4c80cb=this['_suggestions']['get'](_0x3a0781);_0x4c80cb&&_0x4c80cb['addMarkerName'](_0x38d6a4['name']);}}),_0x94d4b7['model']['document']['on']('change:data',()=>{const _0x4302e5=Array['from'](_0x94d4b7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x205d46=>'suggestion'===this['_splitMarkerName'](_0x205d46['name'])['group']);if(0x0===_0x4302e5['length'])return;_0x4302e5['sort']((_0x352556,_0x3c78b6)=>{const _0xcc33e1=_0x352556['data']['oldRange'],_0x10aa2d=_0x3c78b6['data']['oldRange'];return null===_0xcc33e1&&null===_0x10aa2d?0x0:null===_0xcc33e1&&null!==_0x10aa2d?-0x1:null!==_0xcc33e1&&null===_0x10aa2d?0x1:_0xcc33e1['start']['isBefore'](_0x10aa2d['start'])?-0x1:0x1;});const _0x52db19=new Set(),_0x5d6c39=new Set();for(const {name:_0x46f5b4,data:_0x360d5b}of _0x4302e5){const {id:_0x179bbb}=this['_splitMarkerName'](_0x46f5b4);if(null===_0x360d5b['oldRange']){const _0x5abb1e=this['_handleNewSuggestionMarker'](_0x46f5b4);_0x5d6c39['add'](_0x5abb1e);}else{const _0xa76e69=this['_suggestions']['get'](_0x179bbb);null!==_0x360d5b['newRange']||_0xa76e69['isInContent']?(_0x52db19['add'](_0xa76e69['head']),_0x5d6c39['add'](_0xa76e69)):this['_removeSuggestion'](_0xa76e69);}}_0x5d6c39['size']>0x0&&this['_refreshSuggestionsChain'](_0x5d6c39);for(const _0x3cd0b1 of _0x52db19)this['fire']('suggestionChanged',_0x3cd0b1);}),_0x94d4b7['model']['on']('applyOperation',(_0x4dd8d0,_0x4c4ab8)=>{const _0x18c5b5=_0x4c4ab8[0x0];if(!this['_suggestions']['size'])return;if(!_0x18c5b5['isDocumentOperation'])return;if(_0x18c5b5['batch']['isUndo']||!_0x18c5b5['batch']['isLocal'])return;let _0x2c8b17,_0x31e9f7;switch(_0x18c5b5['type']){case'insert':_0x2c8b17=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['position']),_0x31e9f7=_0x2c8b17['getShiftedBy'](_0x18c5b5['howMany']);break;case'split':_0x2c8b17=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['splitPosition']),_0x31e9f7=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['moveTargetPosition']);break;case'move':_0x2c8b17=_0x94d4b7['model']['createPositionAt'](_0x18c5b5['targetPosition']),_0x31e9f7=_0x2c8b17['getShiftedBy'](_0x18c5b5['howMany']);break;default:return;}const _0x4a08a7=_0x94d4b7['model']['createRange'](_0x2c8b17,_0x31e9f7);_0x94d4b7['model']['change'](()=>{for(const {suggestion:_0x393c20,meta:_0x2365c3}of this['_findSuggestions'](_0x4a08a7)){if(_0x393c20['isMultiRange'])continue;if('formatInline'==_0x393c20['type'])continue;const _0x413634=this['_getAttributeKey'](_0x393c20);if(_0x413634&&this['_isBlockAttribute'](_0x413634)&&'split'!=_0x18c5b5['type'])continue;const _0x3a8f6d=_0x393c20['data']&&_0x393c20['data']['multipleBlocks'];('formatBlock'!=_0x393c20['type']||'split'==_0x18c5b5['type']&&!_0x3a8f6d)&&(_0x2365c3['containsRangeInObject']||'insertion'==_0x393c20['type']&&_0x2365c3['isOwn']||_0x393c20['getFirstRange']()['containsRange'](_0x4a08a7)&&this['_breakSuggestionMarker'](_0x393c20,_0x2c8b17,_0x31e9f7));}});},{'priority':'lowest'}),_0x94d4b7['model']['on']('deleteContent',(_0x4122e0,_0x2b75ae)=>{const _0x249c1a=_0x2b75ae[0x0],_0x2146a5=_0x2b75ae[0x1];if(_0x2146a5&&_0x2146a5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x249c1a['isCollapsed'])return;const _0xf255b4=_0x94d4b7['model']['schema'],{start:_0x3758f6,end:_0xd6020f}=_0x249c1a['getFirstRange'](),_0x502a66=_0x3758f6['nodeAfter']&&_0xf255b4['isLimit'](_0x3758f6['nodeAfter'])?null:_0xf255b4['getNearestSelectionRange'](_0x3758f6,'forward'),_0x3bb1a8=_0xd6020f['nodeBefore']&&_0xf255b4['isLimit'](_0xd6020f['nodeBefore'])?null:_0xf255b4['getNearestSelectionRange'](_0xd6020f,'backward'),_0x34f4b9=_0x94d4b7['model']['createRange'](_0x502a66?_0x502a66['start']:_0x3758f6,_0x3bb1a8?_0x3bb1a8['end']:_0xd6020f);_0x94d4b7['model']['change'](_0xe2e622=>{this['markDeletion'](_0x34f4b9);const _0x23be18=_0x94d4b7['model']['schema']['getNearestSelectionRange'](_0x34f4b9['start']);_0x249c1a['is']('documentSelection')?_0xe2e622['setSelection'](_0x23be18):_0x249c1a['setTo'](_0x23be18);}),_0x4122e0['stop']();},{'priority':_0x200434['normal']+0xa}),_0x94d4b7['model']['on']('insertContent',(_0x46d5b2,_0x874e7b)=>{const _0x61a02b=_0x874e7b[_0x874e7b['length']-0x1];_0x61a02b&&_0x61a02b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x94d4b7['model']['change'](()=>{let _0xd51b01=_0x94d4b7['model']['insertContent'](_0x874e7b[0x0],_0x874e7b[0x1],_0x874e7b[0x2],{'forceDefaultExecution':!0x0});if(!_0xd51b01)return;_0x46d5b2['return']=_0xd51b01['clone']();const _0x2424a6=_0xd51b01['end']['nodeBefore'],_0x447729=_0x94d4b7['model']['schema'];_0x2424a6&&_0x447729['isBlock'](_0x2424a6)&&!_0x447729['isObject'](_0x2424a6)&&(_0xd51b01=_0x94d4b7['model']['createRange'](_0xd51b01['start'],_0x94d4b7['model']['createPositionAt'](_0x2424a6,'end'))),this['markInsertion'](_0xd51b01);}),_0x46d5b2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3a66cf=new $(_0x94d4b7,this['_suggestions']);_0x94d4b7['commands']['add']('acceptSuggestion',_0x3a66cf),this['enableCommand']('acceptSuggestion');const _0x2da8e8=new B(_0x94d4b7,this['_suggestions']);_0x94d4b7['commands']['add']('discardSuggestion',_0x2da8e8),this['enableCommand']('discardSuggestion'),_0x94d4b7['commands']['add']('acceptAllSuggestions',new x(_0x94d4b7,_0x3a66cf,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x94d4b7['commands']['add']('discardAllSuggestions',new x(_0x94d4b7,_0x2da8e8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x94d4b7['commands']['add']('acceptSelectedSuggestions',new R(_0x94d4b7,_0x3a66cf,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x94d4b7['commands']['add']('discardSelectedSuggestions',new R(_0x94d4b7,_0x2da8e8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x251b6d=_0x94d4b7['plugins']['get']('CommentsRepository');this['listenTo'](_0x251b6d,'addComment',(_0x20cb03,{threadId:_0x5ab62e})=>{const _0x23a7c2=this['_suggestions']['get'](_0x5ab62e);_0x23a7c2&&_0x23a7c2['commentThread']&&0x1===_0x23a7c2['commentThread']['length']&&this['_updateSuggestionData'](_0x5ab62e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x251b6d,'removeComment',(_0x213834,{threadId:_0x44c6f2})=>{const _0x4679a6=this['_suggestions']['get'](_0x44c6f2);_0x4679a6&&_0x4679a6['commentThread']&&!_0x4679a6['commentThread']['length']&&this['_updateSuggestionData'](_0x44c6f2,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x38730a){if(this['_adapter'])throw new _0x3cf89a('track-changes-adapter-already-set',this);this['_adapter']=_0x38730a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b33cd=!0x1,toJSON:_0x1ba277=!0x1}={}){const _0xcc9621=[];for(const _0x42a0aa of this['_suggestions']['values']())_0x4b33cd&&!_0x42a0aa['isInContent']||_0xcc9621['push'](_0x42a0aa);return _0x1ba277?_0xcc9621['map'](_0x5a3f58=>_0x5a3f58['toJSON']()):_0xcc9621;}['getSuggestion'](_0x4d03b2){const _0x1d6a1a=this['_suggestions']['get'](_0x4d03b2);if(!_0x1d6a1a)throw new _0x3cf89a('track-changes-suggestion-not-found',this);return _0x1d6a1a;}['hasSuggestion'](_0x372457){return this['_suggestions']['has'](_0x372457);}['addSuggestionData'](_0x3ba015){const {authorId:_0x20c398,id:_0x40fe65,attributes:_0x4ff887}=_0x3ba015,[_0x3227b8,_0x7c9951]=_0x3ba015['type']['split'](':'),_0x144d78=this['_suggestions']['get'](_0x40fe65)||this['_createSuggestion'](_0x3227b8,_0x7c9951,_0x40fe65,_0x20c398,_0x4ff887);if(this['_addThreadToSuggestion'](_0x144d78),this['_checkSuggestionCorrectness'](_0x144d78,_0x3227b8,_0x7c9951||null,_0x20c398),_0x144d78['createdAt']=_0x3ba015['createdAt'],_0x144d78['_isDataLoaded']=!0x0,_0x4ff887&&_0x4ff887['@external']){const _0x517ff6=_0x4ff887['@external'],_0x576911=this['_getExternalAuthor'](_0x517ff6['authorName']);_0x144d78['authoredAt']=_0x517ff6['createdAt'],_0x144d78['author']=_0x576911,_0x144d78['isExternal']=!0x0;}else _0x144d78['authoredAt']=_0x3ba015['createdAt'];switch(_0x3ba015['data']&&(_0x144d78['data']=_0x3ba015['data']),_0x3ba015['attributes']&&(_0x144d78['attributes']=_0x3ba015['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x144d78['_saved']=!0x0),this['_suggestionState']['get'](_0x144d78)){case'notReady':this['_suggestionState']['set'](_0x144d78,'dataReady');break;case'markerReady':_0x144d78['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x144d78])),this['_refreshSuggestionsChain'](new Set([_0x144d78])),this['_suggestionState']['set'](_0x144d78,'ready'),this['fire']('suggestionLoaded',_0x144d78)):this['_suggestionState']['set'](_0x144d78,'removed');}return _0x144d78;}['acceptSuggestion'](_0x4a0a9a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x29d744 of _0x4a0a9a['getAllAdjacentSuggestions']())_0x29d744['accept']();});});}['discardSuggestion'](_0x53c0f6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55d8b5 of _0x53c0f6['getAllAdjacentSuggestions']())_0x55d8b5['discard']();});});}['enableCommand'](_0x27c405,_0x300940){const _0x468248=this['editor']['commands']['get'](_0x27c405);if(!_0x468248)throw new _0x3cf89a('track-changes-command-not-found',this,{'commandName':_0x27c405});if(this['_enabledCommands']['has'](_0x468248))throw new _0x3cf89a('track-changes-enable-command-twice',this,{'commandName':_0x27c405});this['_enabledCommands']['add'](_0x468248),_0x300940&&_0x468248['on']('execute',(_0x101e23,_0x3c31d6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3c31d6['length']>0x0&&_0x3c31d6[_0x3c31d6['length']-0x1]&&_0x3c31d6[_0x3c31d6['length']-0x1]['forceDefaultExecution']?_0x3c31d6['pop']():(_0x101e23['return']=_0x300940((..._0x5e1114)=>_0x468248['execute'](..._0x5e1114,{'forceDefaultExecution':!0x0}),..._0x3c31d6),_0x101e23['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5104f9){let _0x557b0f,_0x424f03;const _0x4edbc4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x557b0f=_0x5104f9();}catch(_0x425047){_0x424f03=_0x425047;}return _0x4edbc4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x424f03&&_0x3cf89a['rethrowUnexpectedError'](_0x424f03,this),_0x557b0f;}['markInsertion'](_0x1c4150,_0x5d1100=null,_0xf5a636={}){if(_0x1c4150['isCollapsed'])return null;const _0x551854=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x56ac89,meta:_0x2fdc04}of this['_findSuggestions'](_0x1c4150,'insertion'))if(_0x2fdc04['isOwn']){if(!_0x2fdc04['isNextTo']){if(_0x2fdc04['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Ht(_0x56ac89,_0xf5a636))continue;return _0x56ac89;}if(Ht(_0x56ac89,_0xf5a636))return _0x56ac89;this['_breakSuggestionMarker'](_0x56ac89,_0x1c4150['start'],_0x1c4150['end']);break;}if(_0x5d1100==_0x56ac89['subType']&&Ht(_0x56ac89,_0xf5a636)){const _0x418c89=_0x56ac89['getFirstRange']();return _0x418c89['start']['isEqual'](_0x1c4150['end'])?this['_setSuggestionRange'](_0x56ac89,this['_model']['createRange'](_0x1c4150['start'],_0x418c89['end'])):this['_setSuggestionRange'](_0x56ac89,this['_model']['createRange'](_0x418c89['start'],_0x1c4150['end'])),_0x56ac89;}}const _0x4cad8b=_0x27f732(),_0xb2ebe1=_0x551854['id'],_0x36dded=_0x5d1100?'insertion:'+_0x5d1100:'insertion',_0x3d4cb2=this['_setSuggestionData']({'id':_0x4cad8b,'type':_0x36dded,'createdAt':new Date(),'authorId':_0xb2ebe1,'attributes':_0xf5a636});return this['_addSuggestionMarker'](_0x36dded,_0x4cad8b,_0xb2ebe1,_0x1c4150),_0x3d4cb2;}['markMultiRangeInsertion'](_0x148ad3,_0x13b73a='multi',_0x19826f={}){const _0x15b66a=this['editor']['plugins']['get']('Users')['me'],_0x2f1d6c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x13b73a,'join');for(const _0x2fecc5 of this['getSuggestions']())if(_0x2fecc5['author']['id']==_0x15b66a['id']&&'insertion'==_0x2fecc5['type']&&_0x2fecc5['subType']==_0x13b73a&&Ht(_0x2fecc5,_0x19826f)&&(_0x2f1d6c(_0x2fecc5['getRanges'](),_0x148ad3)||_0x2f1d6c(_0x148ad3,_0x2fecc5['getRanges']()))){for(const _0x12ea0f of _0x148ad3)_0x2fecc5['addRange'](_0x12ea0f);return _0x2fecc5;}for(const {suggestion:_0x248ed4,meta:_0x82f324}of this['_findSuggestions'](_0x148ad3,'insertion')){if(!_0x82f324['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x82f324['containsRangeInObject'])continue;if(!Ht(_0x248ed4,_0x19826f))continue;let _0x5b52c4=!0x0;for(const _0x142f12 of _0x248ed4['getRanges']())for(const _0xedd174 of _0x148ad3)if(!_0x142f12['containsRange'](_0xedd174)){_0x5b52c4=!0x1;break;}if(_0x5b52c4)return _0x248ed4;}const _0x932914=_0x27f732(),_0x496647=_0x15b66a['id'],_0x4affae='insertion:'+_0x13b73a,_0x10a18f=this['_setSuggestionData']({'id':_0x932914,'type':_0x4affae,'createdAt':new Date(),'authorId':_0x496647,'attributes':_0x19826f});for(const _0x26386a of _0x148ad3)this['_addSuggestionMarker'](_0x4affae,_0x932914,_0x496647,_0x26386a,u['getMultiRangeId']());return _0x10a18f;}['markInlineFormat'](_0x5e00c1,_0x63cdc4,_0x55d6f1=null,_0x1c429d={}){if(_0x55d6f1=_0x55d6f1||Ut(_0x63cdc4),_0x5e00c1['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x32b848=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55d6f1,'accept');return this['forceDefaultExecution'](()=>_0x32b848([_0x5e00c1],_0x63cdc4,_0x1c429d)),null;}const _0x149d76=this['editor']['plugins']['get']('Users')['me'],_0x3c833c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e36e9,meta:_0x4cf433}of this['_findSuggestions'](_0x5e00c1,'insertion'))_0x4cf433['isOwn']&&!_0x4cf433['isInsideObject']&&_0x3c833c['push'](..._0x1e36e9['getRanges']());}const _0x2d5915=function(_0x5df397,_0x59d54b){const _0x5d08ea=[];for(const _0x2be7f1 of _0x59d54b){const _0x4a8156=_0x5df397['getIntersection'](_0x2be7f1);_0x4a8156&&_0x5d08ea['push'](_0x4a8156);}return _0x5d08ea;}(_0x5e00c1,_0x3c833c),_0x4bd0e7=function(_0x28c299,_0x45b14d){const _0x477c7f=[_0x28c299];for(const _0x5e3927 of _0x45b14d){let _0x37feed=0x0;for(;_0x37feed<_0x477c7f['length'];){const _0x1c5517=_0x477c7f[_0x37feed]['getDifference'](_0x5e3927);_0x477c7f['splice'](_0x37feed,0x1,..._0x1c5517),_0x37feed+=_0x1c5517['length'];}}return _0x477c7f;}(_0x5e00c1,_0x3c833c);_0x2d5915['length']&&this['_model']['change'](()=>{for(const _0x2aac7d of _0x2d5915){const _0x155419=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55d6f1,'accept');this['forceDefaultExecution'](()=>_0x155419([_0x2aac7d],_0x63cdc4,_0x1c429d));}});for(const _0x572312 of _0x4bd0e7){let _0x1ae572=null,_0x36d8c4=_0x572312['start'],_0x3b5731=_0x572312['end'];for(const {suggestion:_0x5a5aa2,meta:_0x5dea3f}of this['_findSuggestions'](_0x572312,'formatInline')){if(!_0x5dea3f['isOwn'])continue;if(_0x5a5aa2['subType']!=_0x55d6f1)continue;if(!Ht(_0x5a5aa2,_0x1c429d))continue;const _0x2464c2=_0x5a5aa2['getFirstRange']();if(_0x2464c2['containsRange'](_0x572312,!0x0))return null;_0x36d8c4=_0x36d8c4['isBefore'](_0x2464c2['start'])?_0x36d8c4:_0x2464c2['start'],_0x3b5731=_0x3b5731['isAfter'](_0x2464c2['end'])?_0x3b5731:_0x2464c2['end'],_0x1ae572?_0x2464c2['start']['isBefore'](_0x1ae572['getFirstRange']()['start'])?(_0x1ae572['removeMarkers'](),_0x1ae572=_0x5a5aa2):_0x5a5aa2['removeMarkers']():_0x1ae572=_0x5a5aa2;}const _0x2a92b7=this['_model']['createRange'](_0x36d8c4,_0x3b5731);if(_0x1ae572)this['_setSuggestionRange'](_0x1ae572,_0x2a92b7);else{const _0x5ea461=_0x27f732(),_0x40967e=_0x149d76['id'];this['_setSuggestionData']({'id':_0x5ea461,'type':'formatInline:'+_0x55d6f1,'data':_0x63cdc4,'createdAt':new Date(),'authorId':_0x40967e,'attributes':_0x1c429d}),this['_addSuggestionMarker']('formatInline:'+_0x55d6f1,_0x5ea461,_0x40967e,_0x2a92b7);}}return null;}['markBlockFormat'](_0x865d46,_0x4fc2a4,_0x395b96=[],_0x132a94=null,_0x255724={}){_0x4fc2a4['formatGroupId']||(_0x4fc2a4['formatGroupId']=_0x4fc2a4['commandName']),_0x4fc2a4['multipleBlocks']=_0x865d46['is']('range'),_0x132a94=_0x132a94||Ut(_0x4fc2a4);const _0xd75b5a=_0x395b96['map'](_0x2e3028=>Ft(_0x2e3028,this['_model'])),_0x429ea1=_0x865d46['is']('range')?_0x865d46:Ft(_0x865d46,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5bfd84=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x132a94,'accept');return this['forceDefaultExecution'](()=>_0x5bfd84([_0x429ea1],_0x4fc2a4,_0x255724)),null;}_0xd75b5a['push'](_0x429ea1);let _0x53c891=!0x0;for(const _0x36eb3d of _0xd75b5a)if(!this['_rangeIsInLocalUserInsertion'](_0x36eb3d)){_0x53c891=!0x1;break;}if(_0x53c891&&'always'!==this['_trackFormatChanges']){const _0x5d3a29=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x132a94,'accept');return this['forceDefaultExecution'](()=>_0x5d3a29([_0x429ea1],_0x4fc2a4,_0x255724)),null;}let _0x2a9e4f=null,_0x51f16a=_0x429ea1['start'],_0x453740=_0x429ea1['end'];for(const {suggestion:_0x367579,meta:_0x4f0de7}of this['_findSuggestions'](_0x429ea1,'formatBlock')){if(!_0x4f0de7['isOwn'])continue;if(_0x4f0de7['isNextTo']||_0x4f0de7['containsRangeInObject']||_0x4f0de7['isInsideObject'])continue;if(_0x367579['data']['formatGroupId']!=_0x4fc2a4['formatGroupId'])continue;if(!Ht(_0x367579,_0x255724))continue;const _0x28783d=_0x367579['getFirstRange']();if(_0x367579['subType']==_0x132a94){if(_0x28783d['containsRange'](_0x429ea1,!0x0))return null;_0x51f16a=_0x51f16a['isBefore'](_0x28783d['start'])?_0x51f16a:_0x28783d['start'],_0x453740=_0x453740['isAfter'](_0x28783d['end'])?_0x453740:_0x28783d['end'],_0x2a9e4f?_0x28783d['start']['isBefore'](_0x2a9e4f['getFirstRange']()['start'])?(_0x2a9e4f['removeMarkers'](),_0x2a9e4f=_0x367579):_0x367579['removeMarkers']():_0x2a9e4f=_0x367579;}else{const _0x2ea643=_0x429ea1['getIntersection'](_0x28783d);this['_cutOutSuggestionMarker'](_0x367579,_0x2ea643);}}const _0x30a668=this['editor']['plugins']['get']('Users')['me'],_0x590db5=_0x27f732(),_0x4b0d38=_0x30a668['id'];if(_0x2a9e4f)return this['_setSuggestionRange'](_0x2a9e4f,this['_model']['createRange'](_0x51f16a,_0x453740)),_0x2a9e4f;{const _0x4b0392=this['_setSuggestionData']({'id':_0x590db5,'type':'formatBlock:'+_0x132a94,'data':_0x4fc2a4,'createdAt':new Date(),'authorId':_0x4b0d38,'attributes':_0x255724});return this['_addSuggestionMarker']('formatBlock:'+_0x132a94,_0x590db5,_0x4b0d38,this['_model']['createRange'](_0x51f16a,_0x453740)),_0x4b0392;}}['markMultiRangeBlockFormat'](_0x132abc,_0x59e136,_0x4775f6=[],_0x38f1d7=null,_0x16b8fa={}){_0x59e136['formatGroupId']||(_0x59e136['formatGroupId']=_0x59e136['commandName']);const _0x381fa0=_0x132abc[0x0];_0x59e136['multipleBlocks']=_0x381fa0['is']('range'),_0x38f1d7=_0x38f1d7||Ut(_0x59e136);const _0x49284e=_0x4775f6['map'](_0x4d0424=>Ft(_0x4d0424,this['_model'])),_0x470cde=_0x381fa0['is']('range')?_0x132abc:_0x132abc['map'](_0x37849b=>Ft(_0x37849b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x385d1e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f1d7,'accept');return this['forceDefaultExecution'](()=>_0x385d1e(_0x470cde,_0x59e136,_0x16b8fa)),null;}_0x49284e['push'](..._0x470cde);let _0x54e8be=!0x0;for(const _0x5834fe of _0x49284e)if(!this['_rangeIsInLocalUserInsertion'](_0x5834fe)){_0x54e8be=!0x1;break;}if(_0x54e8be&&'always'!==this['_trackFormatChanges']){const _0x4bb09a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f1d7,'accept');return this['forceDefaultExecution'](()=>_0x4bb09a(_0x470cde,_0x59e136,_0x16b8fa)),null;}const _0xa52e5e=this['editor']['plugins']['get']('Users')['me'];for(const _0x2f25b7 of this['getSuggestions']()){if(_0x2f25b7['author']['id']!=_0xa52e5e['id'])continue;if('formatBlock'!=_0x2f25b7['type']||_0x2f25b7['data']['formatGroupId']!=_0x59e136['formatGroupId'])continue;if(!Ht(_0x2f25b7,_0x16b8fa))continue;const _0x5966e2=_0x2f25b7['subType']==_0x38f1d7;for(let _0x33cbdd=0x0;_0x33cbdd<_0x470cde['length'];_0x33cbdd++){const _0x1bf88a=_0x470cde[_0x33cbdd];for(const _0x297d23 of _0x2f25b7['getMarkers']()){const _0x18cfa2=_0x297d23['getRange']();if(_0x1bf88a['isEqual'](_0x18cfa2)){_0x5966e2?(_0x470cde['splice'](_0x33cbdd,0x1),_0x33cbdd--):_0x2f25b7['removeMarker'](_0x297d23['name']);break;}}}}if(0x0==_0x470cde['length'])return null;const _0xe0193b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x38f1d7,'join');for(const _0x193efb of this['getSuggestions']())if(_0x193efb['author']['id']==_0xa52e5e['id']&&'formatBlock'==_0x193efb['type']&&_0x193efb['data']['formatGroupId']==_0x59e136['formatGroupId']&&_0x193efb['subType']==_0x38f1d7&&Ht(_0x193efb,_0x16b8fa)&&(_0xe0193b(_0x193efb['getRanges'](),_0x470cde)||_0xe0193b(_0x470cde,_0x193efb['getRanges']()))){for(const _0x53858a of _0x470cde)_0x193efb['addRange'](_0x53858a);return _0x193efb;}const _0x5dddc8=_0x27f732(),_0x2c4ff0=_0xa52e5e['id'],_0x4e1d21='formatBlock:'+_0x38f1d7,_0x5109d5=this['_setSuggestionData']({'id':_0x5dddc8,'type':_0x4e1d21,'data':_0x59e136,'createdAt':new Date(),'authorId':_0x2c4ff0,'attributes':_0x16b8fa});for(const _0x3658d7 of _0x470cde)this['_addSuggestionMarker'](_0x4e1d21,_0x5dddc8,_0x2c4ff0,_0x3658d7,u['getMultiRangeId']());return _0x5109d5;}['markDeletion'](_0x28ea3b,_0x20155e=null,_0x50caa6={}){if(_0x28ea3b['isCollapsed'])return null;const _0x4123bd=this['editor']['plugins']['get']('Users')['me'],_0x41b6b9=new _0x948f0b(_0x28ea3b['start'],_0x28ea3b['end']);for(const {suggestion:_0x5bf784,meta:_0x294936}of this['_findSuggestions'](_0x41b6b9,'insertion'))if(_0x294936['isOwn']&&!_0x294936['isNextTo']){if(_0x5bf784['isMultiRange']){const _0xc4ef9f=_0x5bf784['getRanges']()['filter'](_0x6b9579=>'$graveyard'!=_0x6b9579['root']['rootName']);_0xc4ef9f['every'](_0x365944=>_0x41b6b9['containsRange'](_0x365944,!0x0))&&_0x5bf784['discard']();if(_0xc4ef9f['some'](_0x38380f=>_0x38380f['containsRange'](_0x41b6b9,!0x0))){const _0x10c56e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20155e,'accept');return this['forceDefaultExecution'](()=>_0x10c56e([_0x41b6b9],null,_0x50caa6)),null;}}else{const _0x893b2f=_0x41b6b9['getIntersection'](_0x5bf784['getFirstRange']());null!==_0x893b2f&&_0x5bf784['_onDiscard']([_0x893b2f],null,_0x50caa6);}}if(_0x41b6b9['detach'](),_0x41b6b9['isCollapsed']||'$graveyard'==_0x41b6b9['root']['rootName'])return null;let _0x27c88a=null,_0xb7bf3b=_0x41b6b9['start'],_0x3da952=_0x41b6b9['end'];const _0x504ebe=this['_findSuggestions'](_0x41b6b9,'deletion');for(const {suggestion:_0x50abb5,meta:_0x71496b}of _0x504ebe){const _0x1b23e3=this['_model']['createRange'](_0xb7bf3b,_0x3da952);if(_0x71496b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x71496b['containsRangeInObject']&&!_0x71496b['isInsideObject'])){if(_0x50abb5['isMultiRange']){if(!Ht(_0x50abb5,_0x50caa6))continue;let _0x1548b2=!0x0;for(const _0x21bee9 of _0x50abb5['getRanges']()){if(_0x21bee9['containsRange'](_0x1b23e3,!0x0))return _0x50abb5;_0x1b23e3['containsRange'](_0x21bee9)||(_0x1548b2=!0x1);}_0x1548b2&&_0x50abb5['discard']();}else{const _0x54b433=_0x50abb5['getFirstRange']();if(_0x54b433['containsRange'](_0x1b23e3,!0x0))return _0x50abb5;if(!Ht(_0x50abb5,_0x50caa6)){_0x1b23e3['containsRange'](_0x54b433)?_0x50abb5['removeMarkers']():_0x54b433['containsPosition'](_0xb7bf3b)?_0xb7bf3b=_0x54b433['end']:_0x54b433['containsPosition'](_0x3da952)&&(_0x3da952=_0x54b433['start']);continue;}_0xb7bf3b=_0xb7bf3b['isBefore'](_0x54b433['start'])?_0xb7bf3b:_0x54b433['start'],_0x3da952=_0x3da952['isAfter'](_0x54b433['end'])?_0x3da952:_0x54b433['end'],_0x50caa6=Object['assign']({},_0x50abb5['attributes']),_0x27c88a?_0x54b433['start']['isBefore'](_0x27c88a['getFirstRange']()['start'])?(_0x27c88a['removeMarkers'](),_0x27c88a=_0x50abb5):_0x50abb5['removeMarkers']():_0x27c88a=_0x50abb5;}}}if(_0x27c88a)return this['_setSuggestionRange'](_0x27c88a,this['_model']['createRange'](_0xb7bf3b,_0x3da952)),_0x27c88a;{const _0x5a0f22=_0x27f732(),_0x43c526=this['_model']['createRange'](_0xb7bf3b,_0x3da952),_0x234af1=_0x4123bd['id'],_0x205e49=_0x20155e?'deletion:'+_0x20155e:'deletion',_0x12aebe=this['_setSuggestionData']({'id':_0x5a0f22,'type':_0x205e49,'createdAt':new Date(),'authorId':_0x234af1,'attributes':_0x50caa6});return this['_addSuggestionMarker'](_0x205e49,_0x5a0f22,_0x234af1,_0x43c526),_0x12aebe;}}['markMultiRangeDeletion'](_0x39352f,_0x540469='multi',_0x2f737e={}){const _0x16959b=this['editor']['plugins']['get']('Users')['me'],_0x11ac4a=_0x39352f['map'](_0x4586be=>new _0x948f0b(_0x4586be['start'],_0x4586be['end'])),_0x19d072=new Set();for(const {suggestion:_0xb73e79,meta:_0x5c49f4}of this['_findSuggestions'](_0x11ac4a,'insertion'))_0x5c49f4['isOwn']&&!_0x5c49f4['isNextTo']&&_0x19d072['add'](_0xb73e79);for(const _0x24b753 of _0x19d072)if(_0x24b753['isMultiRange']){const _0x34d173=_0x24b753['getRanges']();(!_0x24b753['attributes']||!_0x24b753['attributes']['skipNestingCheck'])&&(_0x34d173['every'](_0x18253b=>_0x11ac4a['some'](_0x424398=>_0x424398['containsRange'](_0x18253b,!0x0)))&&_0x24b753['discard']());if(_0x11ac4a['every'](_0x5a2b3e=>_0x34d173['some'](_0x5ebcd6=>_0x5ebcd6['containsRange'](_0x5a2b3e,!0x0)))){const _0x4b607b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x540469,'accept');return this['forceDefaultExecution'](()=>_0x4b607b(_0x39352f,null,_0x2f737e)),null;}}else{const _0x3a7c87=_0x24b753['getFirstRange']();_0x11ac4a['some'](_0x55d088=>_0x55d088['containsRange'](_0x3a7c87,!0x0))&&_0x24b753['discard']();if(_0x11ac4a['every'](_0x2b47ee=>_0x3a7c87['containsRange'](_0x2b47ee,!0x0))){const _0x47227f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x540469,'accept');return this['forceDefaultExecution'](()=>_0x47227f(_0x11ac4a,null,_0x2f737e)),null;}}const _0x26b6f5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x540469,'join');let _0x4b3b83=null;for(const _0x1579d3 of this['getSuggestions']())if(_0x1579d3['author']['id']==_0x16959b['id']&&_0x1579d3['isInContent']&&'deletion'==_0x1579d3['type']&&_0x1579d3['subType']==_0x540469&&Ht(_0x1579d3,_0x2f737e)&&(_0x26b6f5(_0x1579d3['getRanges'](),_0x11ac4a)||_0x26b6f5(_0x11ac4a,_0x1579d3['getRanges']()))){if(_0x4b3b83){if(_0x1579d3['commentThread']&&_0x1579d3['commentThread']['length'])continue;for(const _0x3803c4 of _0x1579d3['getRanges']())_0x4b3b83['isIntersectingWithRange'](_0x3803c4)||_0x4b3b83['addRange'](_0x3803c4);_0x1579d3['removeMarkers']();}else{_0x4b3b83=_0x1579d3;for(const _0x5b0786 of _0x11ac4a)_0x1579d3['isIntersectingWithRange'](_0x5b0786)||_0x1579d3['addRange'](_0x5b0786);}}if(_0x4b3b83)return _0x4b3b83;_0x19d072['clear']();for(const {suggestion:_0x1cb749,meta:_0x49b3f0}of this['_findSuggestions'](_0x11ac4a,'deletion'))_0x49b3f0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49b3f0['containsRangeInObject']&&!_0x49b3f0['isInsideObject'])&&Ht(_0x1cb749,_0x2f737e)&&_0x19d072['add'](_0x1cb749);for(const _0x1b0a30 of _0x19d072){const _0x59df0e=_0x1b0a30['getRanges']();if(!_0x2f737e||!_0x2f737e['skipNestingCheck']){if(_0x11ac4a['every'](_0x1266ac=>_0x59df0e['some'](_0x59218a=>_0x59218a['containsRange'](_0x1266ac,!0x0))))return _0x1b0a30;}(!_0x1b0a30['attributes']||!_0x1b0a30['attributes']['skipNestingCheck'])&&(_0x59df0e['every'](_0x689c42=>_0x11ac4a['some'](_0xa90a60=>_0xa90a60['containsRange'](_0x689c42,!0x0)))&&_0x1b0a30['discard']());}const _0x3e8bf8=_0x27f732(),_0x350976=_0x16959b['id'],_0x449f00='deletion:'+_0x540469,_0x1b14b6=this['_setSuggestionData']({'id':_0x3e8bf8,'type':_0x449f00,'createdAt':new Date(),'authorId':_0x350976,'attributes':_0x2f737e});for(const _0x383e2d of _0x11ac4a)_0x383e2d['detach'](),_0x383e2d['isCollapsed']||'$graveyard'==_0x383e2d['root']['rootName']||this['_addSuggestionMarker'](_0x449f00,_0x3e8bf8,_0x350976,_0x383e2d,u['getMultiRangeId']());return _0x1b14b6;}['markAttributeChange'](_0x2fecdd,_0x7c2406,_0x3d9c75,_0x2f6a7d,_0x1cd751){if(_0x2fecdd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xe4573e=this['editor']['plugins']['get']('Users')['me']['id'],_0x64a987=Array['from'](this['_suggestions']['values']())['filter'](_0x17eb57=>'attribute'==_0x17eb57['type']&&_0x17eb57['data']['key']==_0x7c2406&&_0x17eb57['isIntersectingWithRange'](_0x2fecdd));if('default'===this['_trackFormatChanges']){const _0x1765a9=this['_findSuggestions'](_0x2fecdd,'insertion')['filter'](({meta:_0x5e7147})=>_0x5e7147['isOwn']&&!_0x5e7147['isInsideObject']&&!_0x5e7147['isNextTo'])['map'](({suggestion:_0x545b94})=>_0x545b94);_0x64a987['unshift'](..._0x1765a9);}const _0x4b9fa2=new Map([[_0x2fecdd,_0x3d9c75]]);for(const _0x1f8722 of _0x64a987){const _0x15a07a='attribute'==_0x1f8722['type']?_0x1f8722['data']['oldValue']:void 0x0,_0x3103db=_0x1f8722['getFirstRange'](),_0x6e3aac=Array['from'](_0x4b9fa2['keys']())['find'](_0x726acb=>_0x726acb['isIntersecting'](_0x3103db));if(!_0x6e3aac)continue;const _0x1555b8=_0x6e3aac['getDifference'](_0x3103db);this['_isBlockAttribute'](_0x7c2406)&&'insertion'==_0x1f8722['type']&&0x0!=_0x1555b8['length']||(_0x4b9fa2['delete'](_0x6e3aac),_0x1555b8['forEach'](_0x512874=>{_0x4b9fa2['set'](_0x512874,_0x3d9c75);}),'insertion'!=_0x1f8722['type']&&_0x15a07a!=_0x2f6a7d&&_0x4b9fa2['set'](_0x6e3aac['getIntersection'](_0x3103db),_0x15a07a));}const _0x5779b5=[];for(const [_0xb35e,_0x510202]of _0x4b9fa2){const _0x237fa6=_0x27f732(),_0x1b8624={'key':_0x7c2406,'oldValue':_0x510202,'newValue':_0x2f6a7d};_0x7c2406['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':_0x7c2406});const _0x297bbb=('attribute:'+(_0x7c2406+'|'+Ut({'newValue':_0x2f6a7d})))['substring'](0x0,0x3c),_0x302b45=this['_setSuggestionData']({'id':_0x237fa6,'type':_0x297bbb,'data':_0x1b8624,'createdAt':new Date(),'authorId':_0xe4573e,'attributes':_0x1cd751});_0x5779b5['push'](_0x302b45),this['_addSuggestionMarker'](_0x297bbb,_0x237fa6,_0xe4573e,_0xb35e);}return _0x5779b5;}['enableDefaultAttributesIntegration'](_0x4f39c4){this['enableCommand'](_0x4f39c4,(_0x12eacf,..._0x233263)=>{this['_recordAttributeChanges'](()=>{_0x12eacf(..._0x233263);});});}['registerBlockAttribute'](_0x5c8873){this['_blockAttributeKeys']['add'](_0x5c8873);}['registerInlineAttribute'](_0x29ca51){this['_inlineAttributeKeys']['add'](_0x29ca51);}['_getAttributeKey'](_0x1431a2){return'attribute'==_0x1431a2['type']?_0x1431a2['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x564af1,_0x4e6ec7){const _0x2eca49=_0x564af1['getFirstMarker']();this['_model']['change'](_0x20ebb3=>{_0x20ebb3['updateMarker'](_0x2eca49,{'range':_0x4e6ec7});});}['_addThreadToSuggestion'](_0x31fa31){const _0x4d23ba=_0x31fa31['id'],_0x19fe86=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4d23ba)||this['_commentsRepository']['addCommentThread']({'channelId':_0x19fe86,'threadId':_0x4d23ba,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x92b281=this['_commentsRepository']['getCommentThread'](_0x4d23ba);_0x92b281['unbind']('isRemovable'),_0x92b281['isRemovable']=!0x1,_0x31fa31['commentThread']=_0x92b281;}['_checkSuggestionCorrectness'](_0x8223c5,_0x45c77b,_0x117bc5,_0x56a8a6){if(_0x8223c5['type']!=_0x45c77b||_0x8223c5['subType']!=_0x117bc5||_0x8223c5['creator']['id']!=_0x56a8a6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3cf89a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x331c61,_0x708a78){const _0x3517b0=_0x331c61['getFirstRange']();if(_0x708a78['isEqual'](_0x3517b0))_0x331c61['removeMarkers']();else{if(_0x3517b0['containsRange'](_0x708a78)){const _0x589bd8=this['_model']['createPositionAt'](_0x708a78['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x331c61,this['_model']['createRange'](_0x3517b0['start'],_0x589bd8));const _0x4d0c2f=_0x27f732(),_0x4ce1ab=_0x331c61['creator']['id'],_0x2eee12=_0x331c61['type']+':'+_0x331c61['subType'];this['_setSuggestionData']({'id':_0x4d0c2f,'type':_0x2eee12,'createdAt':new Date(),'authorId':_0x4ce1ab,'data':_0x331c61['data'],'attributes':_0x331c61['attributes']});const _0x3147ff=this['_model']['createPositionAt'](_0x708a78['end']['parent'],'after'),_0x488879=this['_model']['createRange'](_0x3147ff,_0x3517b0['end']);this['_addSuggestionMarker'](_0x2eee12,_0x4d0c2f,_0x4ce1ab,_0x488879);}else{if(_0x3517b0['containsPosition'](_0x708a78['start'])){const _0x41f493=this['_model']['createPositionAt'](_0x708a78['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x331c61,this['_model']['createRange'](_0x3517b0['start'],_0x41f493));}else{const _0x5d9695=this['_model']['createPositionAt'](_0x708a78['end']['parent'],'after');this['_setSuggestionRange'](_0x331c61,this['_model']['createRange'](_0x5d9695,_0x3517b0['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1d37b3){for(const {suggestion:_0x254a8b,meta:_0x3fa44d}of this['_findSuggestions'](_0x1d37b3,'insertion')){if(!_0x3fa44d['isOwn'])continue;const _0x1c5f18=_0x254a8b['getRanges']();for(const _0x55a329 of _0x1c5f18)if(!_0x1d37b3['getDifference'](_0x55a329)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4c0e31){const _0x4abb2b=this['editor']['plugins']['get']('Users')['getUser'](_0x4c0e31);if(!_0x4abb2b)throw new _0x3cf89a('track-changes-user-not-found',this);return _0x4abb2b;}['_getExternalAuthor'](_0x2d6b6b){const _0x4e94e2=this['editor']['plugins']['get']('Users'),_0x15b794=_0x16ce2e('external:'+_0x2d6b6b),_0x365644=_0x4e94e2['getUser'](_0x15b794);return _0x365644||_0x4e94e2['addUser']({'id':_0x15b794,'name':_0x2d6b6b});}['_createSuggestion'](_0x124e38,_0x549704,_0x2f51b4,_0x4acb01,_0x187601){const _0x465fe5=this['_getAuthorFromId'](_0x4acb01),_0x4297c4=this['_suggestionFactory']['buildSuggestion'](_0x124e38,_0x549704,_0x2f51b4,_0x465fe5,_0x187601,_0xaa73bd=>{this['_updateSuggestionData'](_0x2f51b4,{'attributes':_0xaa73bd});const _0x34edcc=this['getSuggestion'](_0x2f51b4);this['_joinWithAdjacentSuggestions'](new Set([_0x34edcc])),this['_refreshSuggestionsChain'](new Set([_0x34edcc]));});return this['listenTo'](_0x4297c4,'accept',()=>{this['_updateSuggestionData'](_0x2f51b4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4297c4,'discard',()=>{this['_updateSuggestionData'](_0x2f51b4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2f51b4,_0x4297c4),this['_suggestionState']['set'](_0x4297c4,'notReady'),_0x4297c4;}['_splitMarkerName'](_0x5bd87d){const _0x4f91bb=_0x5bd87d['split'](':');return{'group':_0x4f91bb[0x0],'type':_0x4f91bb[0x1],'subType':_0x4f91bb['length']>=0x5?_0x4f91bb[0x2]:null,'id':_0x4f91bb['length']<0x5?_0x4f91bb[0x2]:_0x4f91bb[0x3],'authorId':_0x4f91bb['length']<0x5?_0x4f91bb[0x3]:_0x4f91bb[0x4],'markerCount':0x6==_0x4f91bb['length']?_0x4f91bb[0x5]:null};}['_breakSuggestionMarker'](_0x3551de,_0x29acad,_0x2f982d){const _0x51ee12=_0x3551de['getFirstRange'](),_0x3168bd=_0x51ee12['start'],_0x32dc87=_0x51ee12['end'];this['_setSuggestionRange'](_0x3551de,this['_model']['createRange'](_0x3168bd,_0x29acad));const _0x554c89=_0x27f732(),_0x455f55=_0x3551de['creator']['id'],_0x4a8301=_0x3551de['type']+(_0x3551de['subType']?':'+_0x3551de['subType']:'');this['_setSuggestionData']({'id':_0x554c89,'type':_0x4a8301,'createdAt':new Date(),'authorId':_0x455f55,'originalSuggestionId':_0x3551de['id'],'attributes':_0x3551de['attributes'],'data':_0x3551de['data']});const _0x213be2=this['_getAttributeKey'](_0x3551de);('formatBlock'==_0x3551de['type']||_0x213be2&&this['_isBlockAttribute'](_0x213be2))&&(_0x2f982d=this['_model']['createPositionBefore'](_0x2f982d['parent'])),this['_addSuggestionMarker'](_0x4a8301,_0x554c89,_0x455f55,this['_model']['createRange'](_0x2f982d,_0x32dc87));}['_findSuggestions'](_0x37f847,_0x1e51dd=null){const _0x48c6f5=[],_0x13747d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x37f847)||(_0x37f847=[_0x37f847]);for(const _0x382e15 of this['getSuggestions']()){if(!_0x382e15['isInContent'])continue;if(_0x1e51dd&&_0x382e15['type']!=_0x1e51dd)continue;let _0x23cce9=!0x1;for(const _0x2f3ccc of _0x382e15['getRanges']()){for(const _0x5f0ff0 of _0x37f847){const _0x28efb2=_0x5f0ff0['start']['isEqual'](_0x2f3ccc['end'])||_0x5f0ff0['end']['isEqual'](_0x2f3ccc['start']);if(_0x28efb2||_0x5f0ff0['getIntersection'](_0x2f3ccc)){const _0x2fe0b3=_0x5f0ff0['containsRange'](_0x2f3ccc)&&Tt(this['_model']['schema'],_0x2f3ccc['start'],_0x5f0ff0),_0x432540=_0x2f3ccc['containsRange'](_0x5f0ff0)&&Tt(this['_model']['schema'],_0x5f0ff0['start'],_0x2f3ccc);_0x48c6f5['push']({'suggestion':_0x382e15,'meta':{'isOwn':_0x13747d==_0x382e15['author'],'isNextTo':_0x28efb2,'isInsideObject':_0x2fe0b3,'containsRangeInObject':_0x432540}}),_0x23cce9=!0x0;break;}}if(_0x23cce9)break;}}return _0x48c6f5;}['_addSuggestionMarker'](_0xfc247a,_0x43fc2,_0x465bbd,_0x3c7b99,_0x3324e1){this['_model']['change'](_0x3774c6=>{let _0x4722ff='suggestion:'+_0xfc247a+':'+_0x43fc2+':'+_0x465bbd;_0x3324e1&&(_0x4722ff=_0x4722ff+':'+_0x3324e1),_0x3774c6['addMarker'](_0x4722ff,{'range':_0x3c7b99,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x59c419){const _0x5c7f0d=_0x59c419['previous'],_0x596487=_0x59c419['next'];_0x59c419['previous']=null,_0x59c419['next']=null,null!=_0x5c7f0d&&_0x5c7f0d['next']==_0x59c419&&(_0x5c7f0d['next']=_0x596487),null!=_0x596487&&_0x596487['previous']==_0x59c419&&(_0x596487['previous']=_0x5c7f0d),'ready'==this['_suggestionState']['get'](_0x59c419)&&(this['_suggestionState']['set'](_0x59c419,'removed'),this['fire']('suggestionUnloaded',_0x59c419,_0x5c7f0d,_0x596487));}['_setSuggestionData'](_0x5cce4c){const _0x153867=_0x5cce4c['id'],_0x308d72=this['addSuggestionData'](_0x5cce4c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d2cfb=this['editor']['plugins']['get']('PendingActions'),_0x1d21a6=_0x308d72['hasComments'],_0x51d4f3=_0x308d72['subType']?_0x308d72['type']+':'+_0x308d72['subType']:_0x308d72['type'],_0x3c6353=this['editor']['locale'],_0x3c557a=_0x1d2cfb['add'](o(_0x3c6353,'PENDING_ACTION_SUGGESTION')),_0x23b2e8={'id':_0x153867,'type':_0x51d4f3,'hasComments':_0x1d21a6,'data':_0x5cce4c['data']||null,'originalSuggestionId':_0x5cce4c['originalSuggestionId']||null,'attributes':_0x308d72['attributes']};this['_adapter']['addSuggestion'](_0x23b2e8)['then'](_0x1f81ee=>{_0x308d72['_saved']=!0x0,_0x1d2cfb['remove'](_0x3c557a),_0x1f81ee&&_0x1f81ee['createdAt']&&(this['_suggestions']['get'](_0x153867)['createdAt']=_0x1f81ee['createdAt']);})['catch'](_0x4dd813=>{throw _0x227421('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x308d72['discard']();}),_0x308d72['stopListening'](),this['_suggestions']['delete'](_0x308d72['id']),this['_suggestionState']['delete'](_0x308d72),_0x4dd813;});}return _0x308d72;}['_isBlockAttribute'](_0x2e72e7){return this['_blockAttributeKeys']['has'](_0x2e72e7);}['_updateSuggestionData'](_0x18c005,_0x1f7ff1){const _0x36a43a=this['editor']['plugins']['get']('PendingActions'),_0x39f7a5=this['getSuggestion'](_0x18c005);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x39f7a5['_saved']){const _0x4381ff=_0x36a43a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x18c005,_0x1f7ff1)['then'](()=>{_0x36a43a['remove'](_0x4381ff);});}else _0x39f7a5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x18c005,_0x1f7ff1);});}}['_getSuggestionData'](_0x2d78a5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3cf89a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d78a5);}['_handleNewSuggestionMarker'](_0x1e5238){const {id:_0x2ce636,type:_0x3b5de8,subType:_0x1a72d2,authorId:_0x5e1907}=this['_splitMarkerName'](_0x1e5238),_0x1a5716=this['_suggestions']['get'](_0x2ce636)||this['_createSuggestion'](_0x3b5de8,_0x1a72d2,_0x2ce636,_0x5e1907,{});switch(this['_checkSuggestionCorrectness'](_0x1a5716,_0x3b5de8,_0x1a72d2,_0x5e1907),this['_suggestionState']['get'](_0x1a5716)){case'notReady':this['_getSuggestionData'](_0x2ce636)['then'](_0x163d8e=>{let _0x21881b=Promise['resolve']();_0x163d8e['hasComments']&&(_0x21881b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ce636})),_0x21881b['then'](()=>{this['addSuggestionData'](_0x163d8e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1a5716,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ce636,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1a5716,'ready'),this['fire']('suggestionLoaded',_0x1a5716);break;case'ready':this['fire']('suggestionChanged',_0x1a5716);}return _0x1a5716['addMarkerName'](_0x1e5238),_0x1a5716;}['_refreshSuggestionsChain'](_0x310ae2){const _0xf0491e=Array['from'](_0x310ae2),_0x371e66=_0xf0491e['filter'](_0xa1b7fe=>'attribute'==_0xa1b7fe['type']);this['_refreshAttributeSuggestionsChain'](_0x371e66);const _0x4bcfba=_0xf0491e['filter'](_0x3ddd5a=>!_0x3ddd5a['isMultiRange']&&'attribute'!=_0x3ddd5a['type']),_0x7c1dfd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47b83f=>!_0x47b83f['isMultiRange']&&'attribute'!=_0x47b83f['type']),_0x19b7e2=_0x7c1dfd['filter'](_0x36e086=>!_0x310ae2['has'](_0x36e086)),_0x45b991=new Map(_0x7c1dfd['map'](_0x29a946=>[_0x29a946,this['_suggestionFactory']['getSuggestionCallback'](_0x29a946['type'],_0x29a946['subType'],'chain')])),_0x1219ea=new Map(_0x7c1dfd['map'](_0x23d6eb=>[_0x23d6eb,_0x23d6eb['getFirstRange']()])),_0x58f084=new Set(),_0x4634d5=new Set();for(let _0x3d81d5=0x0;_0x3d81d5<_0x4bcfba['length'];_0x3d81d5++)_0x51294a(_0x4bcfba[_0x3d81d5],_0x4bcfba,_0x3d81d5+0x1);for(let _0x32b6da=0x0;_0x32b6da<_0x4bcfba['length'];_0x32b6da++)_0x51294a(_0x4bcfba[_0x32b6da],_0x19b7e2,0x0);const _0x53caeb=new Set();for(let _0x107247=0x0;_0x107247<_0x4bcfba['length'];_0x107247++){const _0x1c46f5=_0x4bcfba[_0x107247];!_0x4634d5['has'](_0x1c46f5)&&_0x1c46f5['previous']&&(_0x53caeb['add'](_0x1c46f5['previous']),_0x1c46f5['previous']['next']===_0x1c46f5&&(_0x1c46f5['previous']['next']=null),_0x1c46f5['previous']=null),!_0x58f084['has'](_0x1c46f5)&&_0x1c46f5['next']&&(_0x53caeb['add'](_0x1c46f5['next']),_0x1c46f5['next']['previous']===_0x1c46f5&&(_0x1c46f5['next']['previous']=null),_0x1c46f5['next']=null);}function _0x51294a(_0x51bc53,_0x395c53,_0x5b1810){for(let _0x488da2=_0x5b1810;_0x488da2<_0x395c53['length'];_0x488da2++){const _0x104517=_0x126e0c(_0x51bc53,_0x395c53[_0x488da2]);_0x104517&&(_0x104517[0x0]['next']=_0x104517[0x1],_0x104517[0x1]['previous']=_0x104517[0x0],_0x58f084['add'](_0x104517[0x0]),_0x4634d5['add'](_0x104517[0x1]));}}function _0x126e0c(_0x443e67,_0x2ee205){if(_0x443e67['author']['id']!==_0x2ee205['author']['id'])return null;const _0x580ce7=_0x45b991['get'](_0x443e67)(_0x443e67,_0x2ee205,_0x1219ea['get'](_0x443e67),_0x1219ea['get'](_0x2ee205));if(!_0x580ce7)return null;return _0x45b991['get'](_0x2ee205)(_0x443e67,_0x2ee205,_0x1219ea['get'](_0x443e67),_0x1219ea['get'](_0x2ee205))?_0x580ce7[0x1]['commentThread']&&_0x580ce7[0x1]['commentThread']['length']?null:_0x580ce7:null;}_0x53caeb['size']&&this['_refreshSuggestionsChain'](_0x53caeb);}['_refreshAttributeSuggestionsChain'](_0x3594c2){if(0x0==_0x3594c2['length'])return;const _0x41e372=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x164e73=>'attribute'==_0x164e73['type']&&_0x164e73['_isDataLoaded']),_0x9f4170=[],_0x39f9c2=new Map();for(const _0x291571 of _0x41e372){const _0x187acb=_0x16ce2e(_0x291571['attributes']);_0x39f9c2['has'](_0x187acb)||(_0x39f9c2['set'](_0x187acb,_0x9f4170['length']),_0x9f4170['push']([]));const _0x3180e6=_0x39f9c2['get'](_0x187acb);_0x9f4170[_0x3180e6]['push'](_0x291571);}!(function(){_0x9f4170['sort']((_0x1e538d,_0x44b4b0)=>{const _0xab9b21=_0x1e538d[0x0]['createdAt'],_0x356653=_0x44b4b0[0x0]['createdAt'];return _0xab9b21==_0x356653?_0x1e538d[0x0]['attributes']['groupId']<_0x44b4b0[0x0]['attributes']['groupId']?-0x1:0x1:_0xab9b21<_0x356653?-0x1:0x1;});for(const _0xda94ec of _0x9f4170)_0xda94ec['sort']((_0x349101,_0x40d1d0)=>_0x349101['id']<_0x40d1d0['id']?-0x1:0x1);}());for(let _0x383f9d=0x0;_0x383f9d<_0x9f4170['length'];_0x383f9d++){if(0x0==_0x9f4170[_0x383f9d]['length'])continue;const _0x4f9e67=[];for(let _0x325cb7=_0x383f9d+0x1;_0x325cb7<_0x9f4170['length'];_0x325cb7++)0x0!=_0x9f4170[_0x325cb7]['length']&&_0x2be887(_0x9f4170[_0x383f9d],_0x9f4170[_0x325cb7])&&_0x4f9e67['push'](_0x325cb7);for(const _0x18d035 of _0x4f9e67)_0x9f4170[_0x383f9d]=_0x9f4170[_0x383f9d]['concat'](_0x9f4170[_0x18d035]),_0x9f4170[_0x18d035]=[];}for(const _0x245236 of _0x9f4170)for(let _0x292598=0x0;_0x292598<_0x245236['length'];_0x292598++)_0x245236[_0x292598]['next']=_0x245236[_0x292598+0x1]||null;for(const _0x23aaed of _0x9f4170)for(let _0x19378b=0x0;_0x19378b<_0x23aaed['length'];_0x19378b++)_0x23aaed[_0x19378b]['previous']=_0x23aaed[_0x19378b-0x1]||null;function _0x2be887(_0x4998d7,_0x13daf7){if(_0x4998d7[0x0]['attributes']['groupId']!==_0x13daf7[0x0]['attributes']['groupId']&&_0x4998d7[0x0]['author']!==_0x13daf7[0x0]['author'])return!0x1;if(!function(_0x445b64,_0x333e1a){if(!_0x445b64['hasComments']&&!_0x333e1a['hasComments'])return!0x0;if(_0x445b64['hasComments']&&_0x333e1a['hasComments'])return!0x1;if(_0x445b64['hasComments']&&_0x333e1a['createdAt']<_0x445b64['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x333e1a['hasComments']&&_0x445b64['createdAt']<_0x333e1a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4998d7[0x0],_0x13daf7[0x0]))return!0x1;const _0x5ec1e3=xt(_0x4998d7[0x0]['attributes'],'groupId'),_0x5ed684=xt(_0x13daf7[0x0]['attributes'],'groupId');if(!_0x35c1e7(_0x5ec1e3,_0x5ed684))return!0x1;return!!_0x4998d7['every'](_0x22a0df=>_0x13daf7['some'](_0x5eb66f=>_0x22a0df['getFirstRange']()['isEqual'](_0x5eb66f['getFirstRange']())))&&_0x13daf7['every'](_0x4f6808=>_0x4998d7['some'](_0x313494=>_0x4f6808['getFirstRange']()['isEqual'](_0x313494['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x582f65){const _0xe4a443=Array['from'](_0x582f65),_0x4bf3eb=this['getSuggestions']({'skipNotAttached':!0x0}),_0x204218=_0x4bf3eb['filter'](_0x29b3b2=>!_0x582f65['has'](_0x29b3b2)),_0x95375f=new Map(_0xe4a443['map'](_0x4a32f5=>[_0x4a32f5,this['_suggestionFactory']['getSuggestionCallback'](_0x4a32f5['type'],_0x4a32f5['subType'],'join')])),_0x357f0e=new Map(_0x4bf3eb['map'](_0x3e56f4=>[_0x3e56f4,_0x3e56f4['getRanges']()]));for(let _0x5666dd=0x0;_0x5666dd<_0xe4a443['length'];_0x5666dd++){if(_0xd1e2d(this,_0xe4a443[_0x5666dd],_0xe4a443,_0x5666dd+0x1))return!0x0;}for(let _0x151bb8=0x0;_0x151bb8<_0xe4a443['length'];_0x151bb8++){if(_0xd1e2d(this,_0xe4a443[_0x151bb8],_0x204218,0x0))return!0x0;}return!0x1;function _0xd1e2d(_0x2c90be,_0x44bc5b,_0x572974,_0x4e0aec){for(let _0x1b3135=_0x4e0aec;_0x1b3135<_0x572974['length'];_0x1b3135++){const _0x5b9bf1=_0x572974[_0x1b3135];if(_0x5b9bf1['type']!==_0x44bc5b['type']||_0x5b9bf1['author']['id']!==_0x44bc5b['author']['id']||_0x5b9bf1['subType']!==_0x44bc5b['subType'])continue;if(!Lt(_0x44bc5b,_0x5b9bf1,['groupId']))continue;if('attribute'==_0x44bc5b['type']&&_0x44bc5b['data']['oldValue']!=_0x5b9bf1['data']['oldValue'])continue;if('attribute'==_0x44bc5b['type']&&_0x2c90be['_isBlockAttribute'](_0x44bc5b['data']['key']))continue;if('formatBlock'==_0x44bc5b['type']){const _0x3f7f2b=_0x2c90be['editor']['model'],_0x555cd5=_0x44bc5b['getContainedElement']();if(_0x555cd5&&(_0x3f7f2b['schema']['isObject'](_0x555cd5)||_0x3f7f2b['schema']['isLimit'](_0x555cd5)))continue;}const _0xb2b16b=_0x95375f['get'](_0x44bc5b),_0x7bcc7b=_0x357f0e['get'](_0x44bc5b),_0xbc1599=_0x357f0e['get'](_0x5b9bf1),_0x45756b=_0x44bc5b['commentThread']&&_0x44bc5b['commentThread']['length'],_0x187759=_0x5b9bf1['commentThread']&&_0x5b9bf1['commentThread']['length'];if(!_0x45756b&&_0xb2b16b(_0xbc1599,_0x7bcc7b))return _0x2c90be['_joinSuggestions'](_0x5b9bf1,_0x44bc5b),_0x357f0e['delete'](_0x44bc5b),!0x0;if(!_0x187759&&_0xb2b16b(_0x7bcc7b,_0xbc1599))return _0x2c90be['_joinSuggestions'](_0x44bc5b,_0x5b9bf1),_0x357f0e['delete'](_0x5b9bf1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x194f0c,_0x33f85c){if(_0x194f0c['isMultiRange']){for(const _0x2d5a0a of _0x33f85c['getRanges']())_0x194f0c['addRange'](_0x2d5a0a);}else{const _0x2c7e86=_0x33f85c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x194f0c,this['_model']['createRange'](_0x194f0c['getFirstRange']()['start'],_0x2c7e86));}_0x33f85c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x58ed0c,_0x421c36){const _0x3b6d0a=_0x58ed0c['startsWith']('format')||_0x58ed0c['startsWith']('attribute')?'FORMATTING':_0x58ed0c['toUpperCase']();return o(this['editor']['locale'],_0x421c36+'_'+_0x3b6d0a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x50cdb8=this['editor'];if(!_0x50cdb8['ui'])return;const {ariaLiveAnnouncer:_0x3e44d4}=_0x50cdb8['ui'];_0x176339(this['_model'],({left:_0x2586be,entered:_0x145ae5})=>{for(const _0x461035 of _0x2586be){const {group:_0x2b92ce,type:_0x1abc55}=this['_splitMarkerName'](_0x461035['name']);if('suggestion'===_0x2b92ce){_0x3e44d4['announce'](this['_getMarkerAnnouncementText'](_0x1abc55,'LEAVE'));break;}}for(const _0x1c84bb of _0x145ae5){const {group:_0x23721a,type:_0x22a0d7}=this['_splitMarkerName'](_0x1c84bb['name']);if('suggestion'===_0x23721a){_0x3e44d4['announce'](this['_getMarkerAnnouncementText'](_0x22a0d7,'ENTER'));break;}}});}['_processAttributeChanges'](_0x21c35d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x157747=this['editor'],_0x5ee9f1=_0x157747['model']['document']['differ']['getChanges']();if(0x0==_0x5ee9f1['length'])return!0x1;const _0x5c6ddf=[],_0x57553b=_0x5ee9f1['filter'](_0xad71f6=>'attribute'==_0xad71f6['type']),_0x5bf65a=_0x5ee9f1['filter'](_0x4f0bc6=>'insert'==_0x4f0bc6['type']&&'$text'!=_0x4f0bc6['name']),_0x7f8628=_0x5ee9f1['filter'](_0x380809=>'remove'==_0x380809['type']&&'$text'!=_0x380809['name']);for(const _0xd7d778 of _0x57553b)_0x5c6ddf['push']({'key':_0xd7d778['attributeKey'],'newValue':_0xd7d778['attributeNewValue'],'oldValue':_0xd7d778['attributeOldValue'],'range':Gt(_0xd7d778['range'],_0x157747['model'])});for(const _0x184a30 of _0x5bf65a){const _0x28ab45=_0x7f8628['find'](_0xac575c=>_0xac575c['position']['isEqual'](_0x184a30['position']));_0x28ab45&&_0x5c6ddf['push']({'key':m,'newValue':_0x184a30['name'],'oldValue':_0x28ab45['name'],'range':_0x157747['model']['createRangeOn'](_0x184a30['position']['nodeAfter'])});}return 0x0!=_0x5c6ddf['length']&&this['_reduceExistingSuggestions'](_0x21c35d,_0x5c6ddf);}['_processAttributeSuggestions'](_0x475130){let _0x43be03=!0x1;const _0x4e112f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x514f45=>_0x514f45['data']['newRange']&&_0x514f45['name']['startsWith']('suggestion:attribute:'));for(const _0x554de2 of _0x4e112f){const {subType:_0x1a5fa1,id:_0x197112}=this['_splitMarkerName'](_0x554de2['name']),_0x474824=_0x1a5fa1['split']('|')[0x0];for(const _0x31a278 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x31a278['id']!=_0x197112&&'attribute'==_0x31a278['type']&&_0x31a278['data']&&_0x31a278['data']['key']==_0x474824&&_0x31a278['getFirstRange']()['isIntersecting'](_0x554de2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x31a278,_0x554de2['data']['newRange'],_0x475130),_0x43be03=!0x0);}return _0x43be03;}['_recordAttributeChanges'](_0x564bdd){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x564bdd();}['_isRegisteredAttribute'](_0x50c177){const _0xdea71f=this['_isBlockAttribute'](_0x50c177),_0x3fbd25=this['_inlineAttributeKeys']['has'](_0x50c177);return _0xdea71f||_0x3fbd25;}['_reduceExistingSuggestions'](_0x233b30,_0x10fbef){if(0x0==_0x10fbef['length'])return!0x1;let _0x4cc442=!0x1;for(const _0x7688d5 of _0x10fbef){const _0xd53e9b=this['_findSuggestions'](_0x7688d5['range'],'attribute')['filter'](_0x32c4f8=>!_0x32c4f8['meta']['isNextTo'])['map'](_0x2df871=>_0x2df871['suggestion']),_0x4063ab=_0x16ce2e({'newValue':_0x7688d5['newValue']});_0xd53e9b['filter'](_0xc2965c=>{const [_0x324540,_0x5f0e9f]=_0xc2965c['subType']['split']('|');return _0x324540==_0x7688d5['key']&&_0x5f0e9f!=_0x4063ab;})['forEach'](_0x11e603=>{this['_reduceSuggestionAttributeRange'](_0x11e603,_0x7688d5['range'],_0x233b30),_0x4cc442=!0x0;});}return _0x4cc442;}['_reduceSuggestionAttributeRange'](_0x521a91,_0x43b355,_0x52ffca){const _0x568af9=_0x521a91['getFirstRange']()['getDifference'](_0x43b355);0x0!==_0x568af9['length']?0x1!==_0x568af9['length']?this['_breakSuggestionMarker'](_0x521a91,_0x43b355['start'],_0x43b355['end']):this['_setSuggestionRange'](_0x521a91,_0x568af9[0x0]):_0x52ffca['removeMarker'](_0x521a91['getFirstMarker']());}}class Rt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5b18ce){this['_editor']=_0x5b18ce,this['_model']=_0x5b18ce['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x22aaf0,_0x5820d8,_0x58ab72,_0x2df786,_0x4fe11a,_0x47ca31){return new u(this['_model'],{'type':_0x22aaf0,'subType':_0x5820d8,'id':_0x58ab72,'author':_0x2df786,'creator':_0x2df786,'attributes':_0x4fe11a,'onAttributesChange':_0x47ca31,'onAccept':(..._0x2f5d8)=>this['getSuggestionCallback'](_0x22aaf0,_0x5820d8,'accept')(..._0x2f5d8),'onDiscard':(..._0x374bfe)=>this['getSuggestionCallback'](_0x22aaf0,_0x5820d8,'discard')(..._0x374bfe)});}['registerCustomCallback'](_0x20b8cc,_0x24b6ba,_0x9b51c4,_0x422924){const _0x58884c=_0x20b8cc+':'+_0x24b6ba+':'+_0x9b51c4;this['_customCallbacks']['set'](_0x58884c,_0x422924);}['getSuggestionCallback'](_0x512837,_0x53d785,_0x5cfd60){const _0x22ff5d=_0x512837+':'+_0x53d785+':'+_0x5cfd60;return this['_customCallbacks']['get'](_0x22ff5d)||this['_defaultCallbacks']['get'](_0x512837+':'+_0x5cfd60);}['_registerDefaultCallbacks'](){const _0x192011=()=>!0x1,_0xc15e6c=_0x2ee029=>{_0x2ee029['sort']((_0x460087,_0x5390e7)=>_0x460087['start']['isBefore'](_0x5390e7['start'])?0x1:-0x1),this['_model']['change'](_0x17332b=>{for(const _0x1d5a41 of _0x2ee029){let _0x186f2e;_0x186f2e=_0x1d5a41['end']['isAtEnd']&&_0x1d5a41['end']['parent']==_0x1d5a41['start']['nodeAfter']?_0x17332b['createSelection'](_0x1d5a41['start']['nodeAfter'],'on'):_0x17332b['createSelection'](_0x1d5a41),this['_model']['deleteContent'](_0x186f2e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3ac186=(_0x277cc4,_0x16364a)=>{_0x16364a&&this['_model']['change'](_0x36571c=>{const {commandName:_0x31bd68,commandParams:_0x2e707a=[]}=_0x16364a,_0x3e56dc=_0x277cc4['map'](_0x26c59a=>(Et(_0x26c59a)&&(_0x26c59a=this['_model']['createRange'](_0x26c59a['end'])),_0x26c59a))['filter'](_0x4af959=>'$graveyard'!==_0x4af959['root']['rootName']);if(_0x3e56dc['length']<0x1)return;const _0x5af888=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x25444f=>_0x948f0b['fromRange'](_0x25444f));_0x36571c['setSelection'](_0x3e56dc);for(const _0x57e8f2 of this['_editor']['commands']['commands']())_0x57e8f2['refresh']();_0x2e707a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31bd68,..._0x2e707a);const _0x1b3f85=_0x5af888['filter'](_0x37b0fe=>'$graveyard'!=_0x37b0fe['root']['rootName']);_0x1b3f85['length']>0x0&&_0x36571c['setSelection'](_0x1b3f85);for(const _0x204729 of _0x5af888)_0x204729['detach']();});},_0x3eb6ca=(_0xba3be5,_0x109768)=>0x1==_0xba3be5['length']&&0x1==_0x109768['length']&&_0xba3be5[0x0]['end']['isEqual'](_0x109768[0x0]['start']),_0x3cc224=(_0x52dce9,_0x45962e,_0x3dae71,_0x125399)=>Pt(_0x52dce9,_0x45962e,_0x3dae71,_0x125399,this['_model'])?[_0x52dce9,_0x45962e]:Pt(_0x45962e,_0x52dce9,_0x125399,_0x3dae71,this['_model'])?[_0x45962e,_0x52dce9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x192011),this['_defaultCallbacks']['set']('insertion:discard',_0xc15e6c),this['_defaultCallbacks']['set']('insertion:join',_0x3eb6ca),this['_defaultCallbacks']['set']('insertion:chain',_0x3cc224),this['_defaultCallbacks']['set']('deletion:accept',_0xc15e6c),this['_defaultCallbacks']['set']('deletion:discard',_0x192011),this['_defaultCallbacks']['set']('deletion:join',_0x3eb6ca),this['_defaultCallbacks']['set']('deletion:chain',_0x3cc224),this['_defaultCallbacks']['set']('formatInline:accept',_0x3ac186),this['_defaultCallbacks']['set']('formatInline:discard',_0x192011),this['_defaultCallbacks']['set']('formatInline:join',_0x3eb6ca),this['_defaultCallbacks']['set']('formatInline:chain',_0x192011),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3ac186),this['_defaultCallbacks']['set']('formatBlock:discard',_0x192011),this['_defaultCallbacks']['set']('formatBlock:join',_0x3eb6ca),this['_defaultCallbacks']['set']('formatBlock:chain',_0x192011),this['_defaultCallbacks']['set']('attribute:accept',_0x192011),this['_defaultCallbacks']['set']('attribute:discard',(_0x4c8ba2,_0xbb5002)=>{if(!_0xbb5002)return;const _0x24e2a2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x473aa3=>{if(_0xbb5002['key']==m)for(const _0x25f94d of _0x4c8ba2){const _0x7362e=_0x25f94d['start']['nodeAfter'],_0x392684=_0xbb5002['oldValue'];_0x473aa3['rename'](_0x7362e,_0x392684);}else{if(_0x24e2a2['_isBlockAttribute'](_0xbb5002['key'])){for(const _0x2bd8f3 of _0x4c8ba2)void 0x0!==_0xbb5002['oldValue']?_0x473aa3['setAttribute'](_0xbb5002['key'],_0xbb5002['oldValue'],_0x2bd8f3['start']['nodeAfter']):_0x473aa3['removeAttribute'](_0xbb5002['key'],_0x2bd8f3['start']['nodeAfter']);}else{for(const _0x451334 of _0x4c8ba2)_0xbb5002['oldValue']?_0x473aa3['setAttribute'](_0xbb5002['key'],_0xbb5002['oldValue'],_0x451334):_0x473aa3['removeAttribute'](_0xbb5002['key'],_0x451334);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3eb6ca);}}function Tt(_0x3e74c4,_0x151f99,_0x58bd56){for(const _0x4f0fd1 of _0x151f99['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4f0fd1['root']==_0x4f0fd1)return!0x1;if(!_0x58bd56['containsItem'](_0x4f0fd1))return!0x1;if(_0x3e74c4['isObject'](_0x4f0fd1)||_0x3e74c4['isLimit'](_0x4f0fd1))return!0x0;}return!0x1;}function Et(_0x12832b){return _0x12832b['end']['parent']==_0x12832b['start']['nodeAfter']&&_0x12832b['end']['isAtStart'];}function Vt(_0x46bd26,_0x4e7242,_0x5265b2,_0x19099f){const _0x393fd6=_0x1fdb21=>!_0x1fdb21['item']['is']('$textProxy')&&!_0x19099f['isObject'](_0x1fdb21['item']),_0x54d068=_0x46bd26['start']['getLastMatchingPosition'](_0x393fd6),_0x459a7e=_0x46bd26['end']['getLastMatchingPosition'](_0x393fd6,{'direction':'backward'});return(!_0x46bd26['start']['isEqual'](_0x54d068)||!_0x46bd26['end']['isEqual'](_0x459a7e))&&(_0x54d068['isBefore'](_0x459a7e)?_0x5265b2['updateMarker'](_0x4e7242,{'range':_0x5265b2['createRange'](_0x54d068,_0x459a7e)}):_0x5265b2['removeMarker'](_0x4e7242),!0x0);}function Ut(_0x1edf57){return _0x16ce2e(_0x1edf57);}function Ot(_0x502810){const _0x122f35=_0x502810['start']['nodeAfter'];return _0x122f35&&_0x122f35['is']('element');}function Gt(_0x3a59e1,_0x4b503c){return null==_0x3a59e1['end']['nodeBefore']&&_0x3a59e1['end']['parent']==_0x3a59e1['start']['nodeAfter']?Ft(_0x3a59e1['start']['nodeAfter'],_0x4b503c):_0x3a59e1;}function Ft(_0x5b3967,_0x3b648d){const _0x1a7bfe=_0x3b648d['schema']['isObject'](_0x5b3967)||_0x3b648d['schema']['isSelectable'](_0x5b3967);return _0x3b648d['createRange'](_0x3b648d['createPositionAt'](_0x5b3967,'before'),_0x1a7bfe?_0x3b648d['createPositionAfter'](_0x5b3967):_0x3b648d['createPositionAt'](_0x5b3967,'end'));}function Pt(_0x350c77,_0x1cb857,_0x3261d3,_0x4058f1,_0x561855){if(!Lt(_0x350c77,_0x1cb857))return!0x1;if(_0x3261d3['end']['isEqual'](_0x4058f1['start']))return!0x0;if(_0x350c77['type']!=_0x1cb857['type'])return!0x1;if(!_0x3261d3['end']['isTouching'](_0x4058f1['start']))return!0x1;const _0x14bde8=_0x561855['createRange'](_0x3261d3['end'],_0x4058f1['start'])['getWalker']();for(const _0x147de9 of _0x14bde8)if(['elementStart','elementEnd']['includes'](_0x147de9['type'])&&_0x561855['schema']['isLimit'](_0x147de9['item']))return!0x1;return!0x0;}function Lt(_0x53af9c,_0x5089e2,_0x31cc15=[]){return!(!_0x53af9c['_isDataLoaded']||!_0x5089e2['_isDataLoaded'])&&_0x35c1e7(xt(_0x53af9c['attributes'],_0x31cc15),xt(_0x5089e2['attributes'],_0x31cc15));}function Ht(_0xe97712,_0x166ddf){const _0x2026c5=qt(_0xe97712['attributes']),_0x59b4bd=qt(_0x166ddf);if(!_0xe97712['_isDataLoaded'])return!0x1;for(const _0x306d81 of Object['keys'](_0x59b4bd))if(!_0x35c1e7(_0x2026c5[_0x306d81],_0x59b4bd[_0x306d81]))return!0x1;return!0x0;}function qt(_0x1ee201){const _0x1d81d8=Object['assign']({},_0x1ee201);return delete _0x1d81d8['skipNestingCheck'],delete _0x1d81d8['tablePasteChainId'],_0x1d81d8;}class ne extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x28acc2(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x451d03,_0x15bd4c,_0x54cf53,_0x21a098){super(),this['model']=_0x15bd4c,this['view']=_0x54cf53,this['commentThreadController']=_0x21a098,this['_editor']=_0x451d03,this['_acceptCommand']=_0x451d03['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x451d03['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x454d72,_0x3166ef)=>_0x454d72||_0x3166ef),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2dd03e=>_0x2dd03e&&this['_editor']['model']['canEditAt'](_0x15bd4c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x39c168=>_0x39c168&&this['_editor']['model']['canEditAt'](_0x15bd4c['getRanges']())),this['_pendingAction']=null,_0x54cf53['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x54cf53,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x54cf53,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x54cf53,'change:isDirty',()=>{_0x54cf53['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 _0x512003=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x512003);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x590774{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x473f2e,_0x4e9ed4,_0xa4e79e,_0x1dda9f){super(_0x473f2e),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4e9ed4['authoredAt']),this['bind']('authoredAt')['to'](_0x4e9ed4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4e9ed4,this['_localUser']=_0xa4e79e,this['_config']=_0x1dda9f,_0x1dda9f['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:_0x50c3f5}=this['_config'];this['commentsListView']=new _0x50c3f5(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',_0x444ff7=>_0x444ff7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x255d81,_0x3ae867)=>_0x255d81||!!_0x3ae867);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4258ba}=this['_config'],_0x385962=new _0x4258ba(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x288e80=_0x385962['commentInputView'];return _0x385962['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x288e80,'value',(_0x1ddcec,_0x3f2ee4,_0x3ea583)=>!!_0x3ea583||_0x1ddcec&&!_0x3f2ee4),_0x288e80['on']('submit',(_0x48e84a,_0x16c133)=>{this['fire']('addComment',_0x16c133),_0x288e80['editor']['setData']('');}),_0x288e80['on']('cancel',()=>this['focus']()),_0x288e80['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x385962;}}class ie extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x406c25,_0x39463e,_0x2c38c0,_0x34849c){super(_0x406c25,_0x39463e,_0x2c38c0,_0x34849c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x57cf0f=>_0x57cf0f&&_0x57cf0f[0x0]?_0x57cf0f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5c9960,_0x10d3bc)=>{let _0x2c8ca9='';for(const _0x1e183e of _0x5c9960)_0x2c8ca9+='<p>'+ds(_0x1e183e['content'],_0x1e183e['color'])+'</p>';return _0x10d3bc?_0x2c8ca9:_0x39a1b4(_0x2c8ca9,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x406c25,'Accept\x20suggestion'),_0x5dc603['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x406c25,'Discard\x20suggestion'),_0x5dc603['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x315dbd(_0x406c25,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3b5919=this['bindTemplate'],_0x159a73=[{'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':_0x3b5919['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3b5919['to']('authoredAt',_0x1b09ae=>this['_config']['formatDateTime'](_0x1b09ae))}]}]},{'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']&&_0x159a73['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2e342d={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x3b5919['if']('isActive','ck-suggestion-wrapper--active'),_0x3b5919['to']('type',_0x322722=>'ck-suggestion-'+_0x322722),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':_0x159a73}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2e342d['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)),_0x2e342d;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x187c24,_0x20729f,_0x1c278d)=>{this['_descriptionElement']['innerHTML']=_0x1c278d;});}['_createButton'](_0x1e33a9,_0x12bf7f,_0x28ca25,_0x3838da,_0x22a3de){const _0x45276b=new _0x56024e(this['locale']);return _0x45276b['set']({'label':_0x1e33a9,'icon':_0x12bf7f,'tooltip':!0x0,'tooltipPosition':_0x22a3de}),_0x45276b['extendTemplate']({'attributes':{'class':_0x28ca25}}),_0x45276b['on']('execute',()=>{this['fire'](_0x3838da,this['_model']['id']);}),_0x45276b;}['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(_0x1a7b89,_0x3e200f){let _0x27bc93='';return _0x27bc93+=_0x1a7b89['split']('*')['map']((_0x2cab93,_0x279c8f)=>_0x279c8f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x2cab93)+'</span>':us(_0x2cab93))['join'](''),_0x3e200f&&(_0x27bc93+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3e200f['value']+'\x22\x20title=\x22'+_0x3e200f['title']+'\x22></span>'),_0x27bc93;}function us(_0x17b800){const _0x11b500=document['createElement']('span');return _0x11b500['innerText']=_0x17b800,_0x11b500['innerHTML'];}var ae='<!--\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 _0x15c086{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x391bb8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x112b63){super(_0x112b63),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40f9fc=this['editor']['config'];_0x40f9fc['define']('trackChanges.SuggestionThreadView',ie),_0x40f9fc['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40f9fc['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1c7f90,_0x4578c9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4b61ba,_0x19c0d1]of this['_handleControllerBuffer']){const _0x5dc013=this['_suggestionToController']['has'](_0x4b61ba);_0x5dc013||_0x19c0d1?_0x5dc013&&_0x19c0d1&&this['_destroyController'](_0x4b61ba):this['_initializeController'](_0x4b61ba);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1c7f90,_0x4578c9);}['init'](){const _0x45f23c=this['editor'],_0x3865a0=_0x45f23c['plugins']['get']('TrackChangesEditing'),_0x3a5ebf=_0x45f23c['plugins']['get']('Annotations'),_0x563e47=_0x45f23c['plugins']['get']('EditorAnnotations'),_0x4b2b95=_0x45f23c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x563e47['addSourceCollector'](()=>{const _0x562361=[];for(const [_0x1e5fdc,_0xa0f12c]of Array['from'](this['_suggestionToController'])){const _0x26bcb8=_0x1e5fdc['getAllAdjacentSuggestions'](),_0xcc60f1=[];for(const _0x27c338 of _0x26bcb8){if(!_0x27c338['isInContent'])continue;if(_0x27c338['isMultiRange']){_0xcc60f1['push'](..._0x27c338['getRanges']());continue;}const _0x55a6bc=_0x27c338['getFirstRange']();if(_0xcc60f1['length']>0x0){const _0x3cd8c3=_0xcc60f1[0x0]['getJoined'](_0x55a6bc);if(_0x3cd8c3){_0xcc60f1[0x0]=_0x3cd8c3;continue;}}_0xcc60f1['push'](_0x55a6bc);}_0x562361['push']([_0xa0f12c['view'],_0xcc60f1]);}return _0x562361;}),this['listenTo'](_0x3865a0,'suggestionLoaded',(_0x1a8535,_0x475643)=>{this['listenTo'](_0x475643,'change:previous',(_0x248fce,_0x215a3a,_0x219258,_0x2cce6f)=>{_0x475643['isInContent']&&(null==_0x219258?(this['_updateController'](_0x2cce6f['head']),this['_handleSuggestionControllerDelayed'](_0x475643,!0x1)):(this['_updateController'](_0x219258['head']),null==_0x2cce6f&&this['_handleSuggestionControllerDelayed'](_0x475643,!0x0)));}),null!==_0x475643['previous']?this['_updateController'](_0x475643['head']):this['_handleSuggestionControllerDelayed'](_0x475643,!0x1);}),this['listenTo'](_0x3865a0,'suggestionUnloaded',(_0x1baace,_0x4e696e,_0x2ffb95)=>{this['stopListening'](_0x4e696e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4e696e),this['_suggestionToController']['has'](_0x4e696e)&&this['_destroyController'](_0x4e696e),_0x2ffb95&&this['_updateController'](_0x2ffb95['head']);}),this['listenTo'](_0x3865a0,'suggestionChanged',(_0x3420ff,_0x1cef1e)=>{this['_updateController'](_0x1cef1e);}),this['listenTo'](_0x3a5ebf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4b2b95,'addComment',(_0x2ddb26,{threadId:_0x4ada8a,isFromAdapter:_0x4f54e5})=>{if(_0x4f54e5||!_0x3865a0['hasSuggestion'](_0x4ada8a))return;const _0x30e5d8=_0x3865a0['getSuggestion'](_0x4ada8a);this['_suggestionToController']['get'](_0x30e5d8)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xbea36b=this['editor']['plugins']['get']('Annotations'),_0x2109e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44a015=Array['from'](_0xbea36b['activeAnnotations'],_0xfc64cc=>_0xfc64cc['innerView'])['filter'](_0x193374=>this['_viewToController']['has'](_0x193374)),_0x37f593=[];for(const _0x2bcec1 of _0x44a015){const _0x6f1f3d=this['_viewToController']['get'](_0x2bcec1)['model']['getAllAdjacentSuggestions']();_0x37f593['push'](..._0x6f1f3d['reduce']((_0xb4c9f6,_0x19a46e)=>[..._0xb4c9f6,..._0x19a46e['getMarkerNames']()],[]));}_0x2109e7['activeMarkers']=_0x37f593;}['_addUIComponentsToFactory'](){const _0x737a73=this['editor'],_0x5a4839=_0x737a73['locale'],_0x2bae9b=o(_0x5a4839,'Track\x20changes'),_0x5dc6bc=new Wt([{'type':'switchbutton','model':new _0x3a5c24({'withText':!0x0,'isToggleable':!0x0,'label':_0x2bae9b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5c24({'withText':!0x0,'label':o(_0x5a4839,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5b7cf1 of _0x5dc6bc)if(re(_0x5b7cf1)){const _0x14b9cd=_0x737a73['commands']['get'](_0x5b7cf1['model']['commandName']);_0x5b7cf1['model']['bind']('isOn','isEnabled')['to'](_0x14b9cd,'value','isEnabled');}_0x737a73['ui']['componentFactory']['add']('trackChanges',_0x7a322=>this['_createToolbarButton'](_0x7a322,_0x5dc6bc,_0x2bae9b)),_0x737a73['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d59b0=>this['_createMenuBarMenu'](_0x2d59b0,_0x5dc6bc,_0x2bae9b));}['_createToolbarButton'](_0x1c07c6,_0x5424f2,_0xb88098){const _0x197ac0=Jt(_0x1c07c6,te),_0x4a56db=this['editor']['commands']['get']('trackChanges');_0x197ac0['buttonView']['set']({'tooltip':_0xb88098,'label':_0xb88098,'icon':ae}),_0x197ac0['buttonView']['bind']('isOn')['to'](_0x4a56db,'value'),_0x197ac0['buttonView']['on']('execute',()=>{_0x4a56db['execute'](),this['editor']['editing']['view']['focus']();}),zt(_0x197ac0,_0x5424f2,{'role':'menu'});const _0x2835c8=[];for(const _0x2646b4 of _0x5424f2)re(_0x2646b4)&&_0x2835c8['push'](this['editor']['commands']['get'](_0x2646b4['model']['commandName']));const _0x41c45a=_0x197ac0['buttonView'];return _0x41c45a['actionView']['unbind']('isEnabled'),_0x41c45a['arrowView']['unbind']('isEnabled'),_0x41c45a['actionView']['bind']('isEnabled')['to'](_0x4a56db,'isEnabled'),_0x41c45a['arrowView']['bind']('isEnabled')['toMany'](_0x2835c8,'isEnabled',(..._0x540d2a)=>_0x540d2a['some'](_0x202aba=>_0x202aba)),_0x197ac0['on']('execute',_0x5afe40=>{this['editor']['execute'](_0x5afe40['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x197ac0;}['_createMenuBarMenu'](_0x41fca4,_0x10c032,_0x59c049){const _0x23233f=new Qt(_0x41fca4),_0x4833ce=this['editor']['commands']['get']('trackChanges');_0x23233f['buttonView']['set']({'label':_0x59c049,'icon':ae});const _0x25e8aa=new Xt(_0x41fca4);for(const _0x4e28a3 of _0x10c032){if('separator'==_0x4e28a3['type']){_0x25e8aa['items']['add'](new Kt(_0x41fca4));continue;}const _0x57ed6d=new Yt(_0x41fca4,_0x23233f),_0x2b60f3=new Zt(_0x41fca4),_0x2818f4=_0x4e28a3['model'];_0x2b60f3['bind'](...Object['keys'](_0x2818f4))['to'](_0x2818f4),_0x2b60f3['delegate']('execute')['to'](_0x23233f),_0x2b60f3['on']('execute',()=>{this['editor']['execute'](_0x2818f4['commandName']),this['editor']['editing']['view']['focus']();}),_0x57ed6d['children']['add'](_0x2b60f3),_0x25e8aa['items']['add'](_0x57ed6d);}return _0x23233f['bind']('isEnabled')['to'](_0x4833ce,'isEnabled'),_0x23233f['panelView']['children']['add'](_0x25e8aa),_0x23233f;}['_initializeController'](_0x145d27){const _0x26c094=this['editor'],_0x450936=_0x26c094['config'],_0x11e734=_0x26c094['plugins']['get']('Annotations'),_0x2ae6e8=_0x26c094['plugins']['get']('CommentsRepository'),_0x1b26f0=_0x26c094['plugins']['get']('EditorAnnotations'),_0x349faf=_0x26c094['plugins']['get'](_0x391bb8)['me'],_0x26236f=_0x450936['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x49d520,CommentThreadInputView:_0x4ea307}=_0x26c094['plugins']['get']('CommentsUI');let _0x25a0b1,_0x3df32d;this['_annotationViews']['has'](_0x145d27['id'])?(_0x3df32d=this['_annotationViews']['get'](_0x145d27['id']),_0x25a0b1=_0x3df32d['mainView']):(_0x25a0b1=new _0x26236f(_0x26c094['locale'],_0x145d27,_0x349faf,{'disableComments':this['_disableComments'],'editorConfig':_0x450936['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x450936['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x450936['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x450936['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x14289b(_0x450936['get']('locale')),'CommentView':_0x450936['get']('comments')['CommentView'],'CommentsListView':_0x49d520,'CommentThreadInputView':_0x4ea307}),_0x25a0b1['acceptButton']['on']('execute',()=>{_0x26c094['editing']['view']['focus']();}),_0x25a0b1['discardButton']['on']('execute',()=>{_0x26c094['editing']['view']['focus']();}),_0x3df32d=_0x11e734['createAnnotationView'](this['editor']['locale'],_0x25a0b1),_0x3df32d['bind']('isDirty')['to'](_0x25a0b1,'isDirty'),_0x3df32d['bind']('length')['to'](_0x25a0b1),_0x3df32d['bind']('type')['to'](_0x25a0b1,'type',_0xd491c2=>'suggestion-'+_0xd491c2),this['_annotationViews']['set'](_0x145d27['id'],_0x3df32d));const _0x58a1ea=_0x2ae6e8['createCommentThreadController'](_0x145d27['commentThread'],_0x25a0b1),_0x1bb467=new ne(_0x26c094,_0x145d27,_0x25a0b1,_0x58a1ea),_0xecc650=_0x145d27['getAllAdjacentSuggestions']()['filter'](_0x59d98f=>_0x59d98f['isInContent']);_0x25a0b1['descriptionParts']=_0x26c094['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xecc650),this['_suggestionToController']['set'](_0x145d27,_0x1bb467),this['_viewToController']['set'](_0x25a0b1,_0x1bb467);const _0x1721b6=_0x11e734['createAnnotation']({'view':_0x3df32d,'target':()=>{const _0x4b28f1=[],_0x29eb2b=_0x145d27['getAllAdjacentSuggestions']()['filter'](_0x13298a=>_0x13298a['isInContent']);for(const _0x2988ae of _0x29eb2b)_0x4b28f1['push'](..._0x2988ae['getMarkers']());return _0x492e53(_0x26c094['editing'],_0x4b28f1);},'type':()=>'suggestion-'+_0x1bb467['view']['type']});_0x2ae6e8['_bindAnnotationToEditors'](_0x25a0b1,_0x1721b6),_0x11e734['add'](_0x1721b6),_0x1b26f0['registerAnnotation'](_0x1721b6);}['_destroyController'](_0xee5a5c){const _0x5e5dee=this['editor']['plugins']['get']('CommentsRepository'),_0x4e110e=this['editor']['plugins']['get']('Annotations'),_0x4ef237=this['_suggestionToController']['get'](_0xee5a5c),_0x20ef1d=_0x4ef237['view'],_0x1c06bc=_0x4e110e['getByInnerView'](_0x20ef1d);_0x5e5dee['_unbindEditors'](_0x20ef1d),_0x1c06bc&&_0x4e110e['remove'](_0x1c06bc),this['_suggestionToController']['delete'](_0xee5a5c),this['_viewToController']['delete'](_0x20ef1d),_0x4ef237['destroy']();}['_updateController'](_0x13c8fc){if(!_0x13c8fc['isInContent']||!this['_suggestionToController']['has'](_0x13c8fc))return;const _0x8b4f91=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9c309c=this['_suggestionToController']['get'](_0x13c8fc),_0x4081e6=_0x13c8fc['getAllAdjacentSuggestions']();_0x9c309c['view']['descriptionParts']=_0x8b4f91['descriptionFactory']['getDescriptions'](_0x4081e6);}['destroy'](){for(const _0x33bf6d of this['_suggestionToController']['keys']())this['_destroyController'](_0x33bf6d);for(const _0x464fd1 of this['_annotationViews']['values']())_0x464fd1['mainView']['destroy']();super['destroy']();}}function re(_0x16eaa1){return'model'in _0x16eaa1;}class k extends _0x15c086{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2d440c){this['editor']['plugins']['get'](p)['adapter']=_0x2d440c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x30047d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x30047d);}['getSuggestions']({skipNotAttached:_0xa43110=!0x1,toJSON:_0x580eef=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xa43110,'toJSON':_0x580eef});}['getSuggestion'](_0x359617){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x359617);}}const T=['Pagination'];class P extends _0x15c086{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3948e2=this['editor'];if(_0x3948e2['config']['define']('trackChangesData.editorCreator',_0x54ca34=>{const _0x124aa6=_0x3948e2['model']['document']['getRootNames']()['reduce']((_0x5ee15e,_0x10511e)=>(_0x5ee15e[_0x10511e]='',_0x5ee15e),{});return _0x3948e2['constructor']['create'](_0x124aa6,_0x54ca34);}),'function'!=typeof _0x3948e2['config']['get']('trackChangesData')['editorCreator'])throw new _0x3cf89a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x53fc38){return N(this['editor'],!0x0,_0x53fc38);}['getDataWithDiscardedSuggestions'](_0x283965){return N(this['editor'],!0x1,_0x283965);}}class D extends _0x15c086{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x425ba6){super(_0x425ba6),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(_0x9c1450){return void 0x0!==_0x9c1450['getRootsAttributes'];}async function N(_0x5dcdd7,_0x562bff,_0x2cc14e){const _0x37c0f1=_0x362255(_0x5dcdd7,T);_0x37c0f1['plugins']['push'](p,D),_0x37c0f1['rootsAttributes']=v(_0x5dcdd7)?_0x5dcdd7['getRootsAttributes']():void 0x0;const _0x46f144=document['createDocumentFragment'](),_0x5022fa=_0x5dcdd7['config']['get']('trackChangesData')['editorCreator'],_0x120612=await _0x5022fa(_0x37c0f1,()=>function(_0x39f1dd){const _0x19497c=document['createElement']('div');return _0x39f1dd['appendChild'](_0x19497c),_0x19497c;}(_0x46f144));!function(_0x4c96b9,_0x129472){const _0x146508=_0x4c96b9['model']['document']['getRootNames']()['reduce']((_0x2ab665,_0x5690b7)=>(_0x2ab665[_0x5690b7]=_0x4c96b9['data']['get']({'rootName':_0x5690b7}),_0x2ab665),{}),_0x19ca62=_0x4c96b9['plugins']['get']('Users')['users']['map'](_0x3d7966=>({'id':_0x3d7966['id'],'name':_0x3d7966['name']})),_0x4df581=_0x4c96b9['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f19dd=_0x4c96b9['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x415d65=_0x129472['plugins']['get']('Users'),_0x3bf561=_0x129472['plugins']['get']('TrackChangesEditing'),_0x5d7102=_0x129472['plugins']['get']('CommentsRepository');for(const _0x2d5aba of _0x19ca62)_0x415d65['getUser'](_0x2d5aba['id'])||_0x415d65['addUser'](_0x2d5aba);_0x415d65['me']||_0x415d65['useAnonymousUser']();for(const _0x47c172 of _0x2f19dd)_0x5d7102['addCommentThread'](_0x47c172);for(const _0x19d0b0 of _0x4df581)_0x3bf561['addSuggestionData'](_0x19d0b0);_0x129472['data']['set'](_0x146508);}(_0x5dcdd7,_0x120612),_0x120612['execute'](_0x562bff?'acceptAllSuggestions':'discardAllSuggestions');const _0x1e0085=v(_0x120612)?_0x120612['getFullData'](_0x2cc14e):_0x120612['data']['get'](_0x2cc14e);return await _0x120612['destroy'](),_0x1e0085;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|