@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240701.0 → 0.0.0-nightly-20240703.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x1c46a4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x130401,_0xbae2cd){super(),this['id']=_0xbae2cd['id'],this['type']=_0xbae2cd['type'],this['subType']=_0xbae2cd['subType']||null,this['author']=_0xbae2cd['author'],this['creator']=_0xbae2cd['creator']||_0xbae2cd['author'],this['isExternal']=Boolean(_0xbae2cd['attributes']&&_0xbae2cd['attributes']['@external']),this['data']=null,this['_model']=_0x130401,this['_onAccept']=_0xbae2cd['onAccept'],this['_onDiscard']=_0xbae2cd['onDiscard'],this['_onAttributesChange']=_0xbae2cd['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xbae2cd['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 _0x38ce46=this;for(;_0x38ce46['previous'];)_0x38ce46=_0x38ce46['previous'];return _0x38ce46;}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'](_0x328772){this['_markerNames']['add'](_0x328772);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x585227=>this['_model']['markers']['get'](_0x585227))['filter'](_0x290556=>_0x290556);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x13c558=>{for(const _0x42a502 of this['getMarkers']())_0x13c558['removeMarker'](_0x42a502);}),this['_markerNames']['clear']();}['removeMarker'](_0x13d28b){this['_model']['change'](_0x1330a4=>{_0x1330a4['removeMarker'](_0x13d28b);}),this['_markerNames']['delete'](_0x13d28b);}['addRange'](_0x5af905){const _0x2955ef='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2955ef),this['_model']['change'](_0x16754d=>{_0x16754d['addMarker'](_0x2955ef,{'range':_0x5af905,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x25567f){for(const _0x4ce938 of this['getRanges']())if(_0x4ce938['isIntersecting'](_0x25567f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x24b277=>_0x24b277['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1c2c96,_0x4163d9)=>[..._0x1c2c96,..._0x4163d9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5b3d4d=this['getRanges']();if(0x1!=_0x5b3d4d['length'])return null;const _0x507e11=_0x5b3d4d[0x0],_0xe210d0=_0x507e11['start']['nodeAfter'],_0x1c18c7=_0x507e11['end']['nodeBefore'];return _0xe210d0 instanceof _0x14aea3?_0xe210d0!=_0x1c18c7?null:_0xe210d0: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 _0x1434ca=[];let _0x2bb86a=this['head'];for(;_0x2bb86a;)_0x1434ca['push'](_0x2bb86a),_0x2bb86a=_0x2bb86a['next'];return _0x1434ca;}['setAttribute'](_0x2bb0b5,_0x27c312){const _0x50b28e=_0x17b5ce(this['attributes']);_0x474996(_0x50b28e,_0x2bb0b5,_0x27c312),_0x108982(_0x50b28e,this['attributes'])||(this['attributes']=_0x50b28e,this['_onAttributesChange'](_0x50b28e));}['removeAttribute'](_0x24d3d5){const _0x517819=_0x17b5ce(this['attributes']);_0x180805(_0x517819,_0x24d3d5),_0x108982(_0x517819,this['attributes'])||(this['attributes']=_0x517819,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 _0x56bbb0()['substr'](0x1,0x5);}}function o(_0x4b408a,_0x3858dd,_0x4f82db){const t=_0x4b408a['t'];switch(_0x3858dd){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',_0x4f82db);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4f82db);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4f82db);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4f82db);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4f82db);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',_0x4f82db);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4f82db);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',_0x4f82db);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4f82db);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4f82db);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4f82db);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4f82db);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4f82db);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4f82db);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4f82db);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4f82db);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4f82db);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4f82db);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4f82db);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4f82db);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4f82db);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4f82db);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4f82db);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'},_0x4f82db);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4f82db);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4f82db);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4f82db);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4f82db);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4f82db);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'},_0x4f82db);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4f82db);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4f82db);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4f82db);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4f82db);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'},_0x4f82db);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4f82db);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'},_0x4f82db);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'},_0x4f82db);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4f82db);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'},_0x4f82db);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4f82db);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'},_0x4f82db);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4f82db);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4f82db);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4f82db);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'},_0x4f82db);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 _0x3858dd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3917b6,_0x4e7ea6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3917b6,this['_locale']=_0x4e7ea6;}['getDescriptions'](_0x263a31){const _0x4b009a=[],_0x2aa942=new Set(),_0x61a34c=new Set();for(let _0x26b417=0x0;_0x26b417<_0x263a31['length'];_0x26b417++){const _0x16ea04=_0x263a31[_0x26b417];if(!_0x16ea04['isInContent'])continue;const _0xc2afdd=this['_handleCustomCallbackDescription'](_0x16ea04);if(_0xc2afdd){if(null!=_0x16ea04['subType']){if(_0x2aa942['has'](_0x16ea04['subType']))continue;_0x2aa942['add'](_0x16ea04['subType']);}_0x4b009a['push'](_0xc2afdd);}else{if('attribute'!=_0x16ea04['type'])'insertion'!=_0x16ea04['type']&&'deletion'!=_0x16ea04['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4b009a,_0x16ea04,_0x263a31[_0x26b417+0x1]);else{const _0x2d83fb=_0x16ea04['data']['key'];if(_0x61a34c['has'](_0x2d83fb))continue;_0x61a34c['add'](_0x16ea04['data']['key']),_0x2d83fb==m?this['_handleRenameSuggestionDescription'](_0x4b009a,_0x16ea04):this['_handleAttributeSuggestionDescription'](_0x4b009a,_0x16ea04);}}}return this['_resolveDescriptionItems'](_0x4b009a);}['registerDescriptionCallback'](_0x440e9a){this['_customCallbacks']['push'](_0x440e9a);}['registerElementLabel'](_0x2ad091,_0x1b4527,_0x58d74a=_0x897be0['normal']){'function'==typeof _0x2ad091?_0xd9b6b6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2ad091,'label':_0x1b4527,'priority':_0x58d74a}):this['_itemLabels']['set'](_0x2ad091,_0x1b4527);}['registerAttributeLabel'](_0x506bf5,_0x434e37){this['_attributeLabels']['set'](_0x506bf5,_0x434e37);}['getItemLabel'](_0x48533b,_0x50b463=0x1){let _0x276502;for(const _0x15c8d3 of this['_itemLabelsCallbacks'])if(_0x15c8d3['matchingCallback'](_0x48533b)){_0x276502=_0x15c8d3['label'];break;}return _0x276502||(_0x276502=this['_itemLabels']['get'](_0x48533b['name'])),_0x276502?_0x276502(_0x50b463):0x1!==_0x50b463?_0x50b463+'\x20'+_0x48533b['name']+'s':''+_0x48533b['name'];}['_addDescriptionItems'](_0x12a612,_0x4868a7){const _0x45b024=_0x4868a7['getFirstRange']()['getWalker'](),_0x457151='insertion'==_0x4868a7['type']?'add':'remove';for(const _0x2d864b of _0x45b024){const _0x3b063b=_0x2d864b['item'],_0x4f4ec6=_0x12a612[_0x12a612['length']-0x1];if(_0x3b063b['is']('$textProxy'))_0x4f4ec6&&_0x4f4ec6['type']['indexOf']('Container')>-0x1&&_0x12a612['pop'](),_0x4f4ec6&&'text'==_0x4f4ec6['type']?_0x4f4ec6[_0x457151]+=_0x3b063b['data']:_0x12a612['push']({'type':'text','add':'add'==_0x457151?_0x3b063b['data']:'','remove':'remove'==_0x457151?_0x3b063b['data']:''});else{if(this['_schema']['isObject'](_0x3b063b)){const _0x1459c8=_0x3b063b;if(_0x4f4ec6&&_0x4f4ec6['type']['indexOf']('Container')>-0x1&&_0x12a612['pop'](),'elementEnd'==_0x2d864b['type'])continue;_0x4f4ec6&&_0x4f4ec6['type']==_0x457151+'Object'&&_0x4f4ec6['element']['name']==_0x1459c8['name']?_0x4f4ec6['quantity']++:_0x12a612['push']({'type':_0x457151+'Object','element':_0x1459c8,'quantity':0x1}),_0x45b024['skip'](_0x47561b=>!('elementEnd'==_0x47561b['type']&&_0x47561b['item']==_0x3b063b));}else{if(this['_schema']['checkChild'](_0x3b063b,'$text')||_0x3b063b['is']('element','softBreak')){const _0x5970d0=_0x3b063b;if('add'==_0x457151&&'elementStart'==_0x2d864b['type']||'remove'==_0x457151&&'elementEnd'==_0x2d864b['type'])continue;if(_0x4f4ec6&&-0x1==_0x4f4ec6['type']['indexOf']('Container')){'text'==_0x4f4ec6['type']&&(_0x4f4ec6[_0x457151]+='\x0a');continue;}let _0x488093;if(_0x488093='add'==_0x457151?_0x5970d0['nextSibling']&&!this['_schema']['isObject'](_0x5970d0['nextSibling'])?_0x5970d0['nextSibling']:null:_0x5970d0['previousSibling']&&!this['_schema']['isObject'](_0x5970d0['previousSibling'])?_0x5970d0['previousSibling']:null,_0x5970d0['isEmpty']||_0x488093&&_0x488093['isEmpty']){const _0x55ec43=_0x488093&&_0x488093['isEmpty']?_0x488093:_0x5970d0;_0x4f4ec6&&_0x4f4ec6['type']==_0x457151+'EmptyContainer'&&_0x4f4ec6['element']['name']==_0x55ec43['name']?_0x4f4ec6['quantity']++:_0x12a612['push']({'type':_0x457151+'EmptyContainer','element':_0x55ec43,'quantity':0x1});}else _0x12a612['push']({'type':_0x457151+'Container','element':_0x5970d0});}}}}}['_resolveDescriptionItems'](_0x78a3de){const _0x526d26=this['_locale'],_0x337523=[],_0x24f4ba=[],_0x432b6e=[];for(const _0x521385 of _0x78a3de)switch(_0x521385['type']){case'text':if(_0x521385['add']=_0x521385['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x521385['remove']=_0x521385['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x521385['add']&&''!=_0x521385['remove']){_0x337523['push']({'type':'replace','content':o(_0x526d26,'REPLACE_TEXT',['\x22'+_0x521385['remove']+'\x22','\x22'+_0x521385['add']+'\x22'])});continue;}if(null!=_0x521385['add']['match'](/^ +$/)){_0x337523['push']({'type':'insertion','content':o(_0x526d26,'*Insert:*\x20%0',o(_0x526d26,'ELEMENT_SPACE',_0x521385['add']['length']))});continue;}if(null!=_0x521385['remove']['match'](/^ +$/)){_0x337523['push']({'type':'deletion','content':o(_0x526d26,'*Remove:*\x20%0',o(_0x526d26,'ELEMENT_SPACE',_0x521385['remove']['length']))});continue;}if(''!=_0x521385['add']){_0x337523['push']({'type':'insertion','content':o(_0x526d26,'*Insert:*\x20%0','\x22'+_0x521385['add']+'\x22')});continue;}_0x337523['push']({'type':'deletion','content':o(_0x526d26,'*Remove:*\x20%0','\x22'+_0x521385['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x337523['push']({'type':'insertion','content':o(_0x526d26,'*Insert:*\x20%0',this['getItemLabel'](_0x521385['element'],_0x521385['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x337523['push']({'type':'deletion','content':o(_0x526d26,'*Remove:*\x20%0',this['getItemLabel'](_0x521385['element'],_0x521385['quantity']))});continue;case'addContainer':_0x337523['push']({'type':'insertion','content':o(_0x526d26,'*Split:*\x20%0',this['getItemLabel'](_0x521385['element'],_0x521385['quantity']))});continue;case'removeContainer':_0x337523['push']({'type':'deletion','content':o(_0x526d26,'*Merge:*\x20%0',this['getItemLabel'](_0x521385['element'],_0x521385['quantity']))});continue;case'addFormat':_0x24f4ba['push'](_0x521385['key']);continue;case'removeFormat':_0x432b6e['push'](_0x521385['key']);continue;default:_0x337523['push'](_0x521385);}if(_0x24f4ba['length']){const _0x4db627=_0x24f4ba['map'](_0x16cb7e=>this['_attributeLabels']['has'](_0x16cb7e)?this['_attributeLabels']['get'](_0x16cb7e):_0x16cb7e)['join'](',\x20');_0x337523['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4db627)});}if(_0x432b6e['length']){const _0x8a0782=_0x432b6e['map'](_0x56a535=>this['_attributeLabels']['has'](_0x56a535)?this['_attributeLabels']['get'](_0x56a535):_0x56a535)['join'](',\x20');_0x337523['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x8a0782)});}return _0x337523;}['_handleCustomCallbackDescription'](_0x1f1f65){for(const _0x50a5d8 of this['_customCallbacks']){const _0x299947=_0x50a5d8(_0x1f1f65);if(_0x299947&&'type'in _0x299947)return _0x299947;}}['_handleAttributeSuggestionDescription'](_0x6810bb,_0x1395fe){const _0x5941ca=_0x1395fe['data'],_0x3d2a50=void 0x0===_0x5941ca['newValue']?'removeFormat':'addFormat';_0x6810bb['push']({'type':_0x3d2a50,'key':_0x5941ca['key']});}['_handleRenameSuggestionDescription'](_0x29d408,_0x573e4a){_0x29d408['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x573e4a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x223580,_0xdb6881,_0x50de7d){if(this['_addDescriptionItems'](_0x223580,_0xdb6881),_0x50de7d&&_0x50de7d['getFirstRange']()&&!_0xdb6881['getFirstRange']()['end']['isEqual'](_0x50de7d['getFirstRange']()['start'])){const _0x5b96ca=_0x223580[_0x223580['length']-0x1],_0x11040a='insertion'==_0xdb6881['type']?'add':'remove';_0x5b96ca&&'text'==_0x5b96ca['type']&&(_0x5b96ca[_0x11040a]+='\x0a');}}}class E extends _0x5552f2{['afterInit'](){const _0x111e0e=this['editor'],_0x4a9ae7=_0x111e0e['plugins']['get']('TrackChangesEditing');_0x111e0e['commands']['get']('showAIAssistant')&&_0x4a9ae7['enableCommand']('showAIAssistant');}}class V extends _0x5552f2{['afterInit'](){const _0xe9b7d7=this['editor'],_0x526cc2=_0xe9b7d7['locale'];if(!_0xe9b7d7['plugins']['has']('AlignmentEditing'))return;const _0x57f56e=_0xe9b7d7['plugins']['get']('TrackChangesEditing');_0x57f56e['enableDefaultAttributesIntegration']('alignment'),_0x57f56e['registerBlockAttribute']('alignment'),_0x57f56e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x526cc2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37e509=this['editor'],_0x3d2da7=_0x37e509['locale'];_0x37e509['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a27bd=>{if('formatBlock'!=_0x2a27bd['type'])return;const {data:_0x2dacba}=_0x2a27bd;if(_0x2dacba&&'alignment'==_0x2dacba['commandName']){const _0x41a086=_0x2dacba['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3d2da7,'*Format:*\x20%0',function(_0x24cfa8){switch(_0x24cfa8){case'left':return o(_0x3d2da7,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3d2da7,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3d2da7,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3d2da7,'FORMAT_JUSTIFY_TEXT');}}(_0x41a086))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x5552f2{['afterInit'](){const _0x48f89f=this['editor'],_0x356af8=_0x48f89f['plugins']['get']('TrackChangesEditing'),_0x34044a=_0x48f89f['locale'];for(const _0x31e8c4 of ti){if(!_0x48f89f['plugins']['has'](_0x31e8c4))continue;const _0x3b5da3=_0x31e8c4['slice'](0x0,-0x7)['toLowerCase'](),_0x2ae03d='FORMAT_'+_0x3b5da3['toUpperCase']();_0x356af8['enableDefaultAttributesIntegration'](_0x3b5da3),_0x356af8['registerInlineAttribute'](_0x3b5da3),_0x356af8['descriptionFactory']['registerAttributeLabel'](_0x3b5da3,o(_0x34044a,_0x2ae03d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd0033d=this['editor'],_0x563c59=_0xd0033d['locale'],_0x179dc7=_0xd0033d['plugins']['get']('TrackChangesEditing');function _0x487e19(_0x19ad92,_0x3358da){_0x179dc7['descriptionFactory']['registerDescriptionCallback'](_0x51b264=>{if('formatInline'!=_0x51b264['type'])return;const {data:_0x16f981}=_0x51b264;return _0x16f981&&_0x16f981['commandName']===_0x19ad92?_0x16f981['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x563c59,'*Format:*\x20%0',_0x3358da)}:{'type':'format','content':o(_0x563c59,'*Remove\x20format:*\x20%0',_0x3358da)}:void 0x0;});}_0x487e19('bold',o(_0x563c59,'FORMAT_BOLD')),_0x487e19('italic',o(_0x563c59,'FORMAT_ITALIC')),_0x487e19('underline',o(_0x563c59,'FORMAT_UNDERLINE')),_0x487e19('code',o(_0x563c59,'FORMAT_CODE')),_0x487e19('strikethrough',o(_0x563c59,'FORMAT_STRIKETHROUGH')),_0x487e19('subscript',o(_0x563c59,'FORMAT_SUBSCRIPT')),_0x487e19('superscript',o(_0x563c59,'FORMAT_SUPERSCRIPT'));}}class O extends _0x5552f2{['afterInit'](){const _0xc09e57=this['editor'],_0x2c0ce5=_0xc09e57['locale'];if(!_0xc09e57['plugins']['has']('BlockQuoteEditing'))return;const _0x5d208a=_0xc09e57['plugins']['get']('TrackChangesEditing'),_0x16c787=this['editor']['commands']['get']('blockQuote');_0x5d208a['enableCommand']('blockQuote',(_0x357cd3,_0x38996c={})=>{const _0x3eee1a=this['editor']['model']['document']['selection'],_0x2a75f3=_0x38996c&&void 0x0!==_0x38996c['forceValue']?_0x38996c['forceValue']:!_0x16c787['value'];let _0x3bccf4=[];if(_0x2a75f3){const _0x49fe49=Array['from'](_0x3eee1a['getSelectedBlocks']())['filter'](_0x22c95f=>oo(_0x22c95f)||function(_0x590df2,_0x556e61){const _0xdab675=_0x556e61['checkChild'](_0x590df2['parent'],'blockQuote'),_0x224c2a=_0x556e61['checkChild'](['$root','blockQuote'],_0x590df2);return _0xdab675&&_0x224c2a;}(_0x22c95f,this['editor']['model']['schema']));_0x3bccf4=to(_0x49fe49,_0xc09e57['model']);}else{const _0x5299dc=Array['from'](_0x3eee1a['getSelectedBlocks']())['filter'](_0x502207=>oo(_0x502207));_0x3bccf4=to(_0x5299dc,_0xc09e57['model']);}_0xc09e57['model']['change'](()=>{for(const _0x39950c of _0x3bccf4)_0x5d208a['markBlockFormat'](_0x39950c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2a75f3}]});});}),_0x5d208a['descriptionFactory']['registerDescriptionCallback'](_0x275f2b=>{const {data:_0x40b7c9}=_0x275f2b;if(_0x40b7c9&&'blockQuote'==_0x40b7c9['commandName']){const _0x4b127f=o(_0x2c0ce5,'ELEMENT_BLOCK_QUOTE');return _0x40b7c9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c0ce5,'*Set\x20format:*\x20%0',_0x4b127f)}:{'type':'format','content':o(_0x2c0ce5,'*Remove\x20format:*\x20%0',_0x4b127f)};}});}}function oo(_0x55f56c){return'blockQuote'==_0x55f56c['parent']['name'];}class G extends _0x5552f2{['afterInit'](){const _0x56ae8b=this['editor'];_0x56ae8b['plugins']['has']('CaseChange')&&(_0x56ae8b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x56ae8b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x56ae8b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x5552f2{['afterInit'](){const _0x2b884=this['editor'];_0x2b884['commands']['get']('ckbox')&&_0x2b884['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x5552f2{['afterInit'](){const _0x5a8590=this['editor'];if(!_0x5a8590['plugins']['has']('CodeBlock'))return;const _0x2a91ec=_0x5a8590['plugins']['get']('TrackChangesEditing'),_0x94306c=_0x5a8590['locale'],_0x83e0e8=_0x5a8590['config']['get']('codeBlock')['languages'],_0x3020f8=_0x5a8590['commands']['get']('codeBlock');_0x2a91ec['enableCommand']('indentCodeBlock'),_0x2a91ec['enableCommand']('outdentCodeBlock'),_0x2a91ec['enableCommand']('codeBlock',(_0x1bd603,_0x574d8d={})=>{const _0x221b20=_0x5a8590['model'],_0x49f08c=_0x5a8590['model']['document']['selection'],_0x28626e=_0x574d8d&&void 0x0!==_0x574d8d['forceValue']?_0x574d8d['forceValue']:!_0x3020f8['value'];let _0x7981ca;_0x574d8d['language']||(_0x574d8d['language']=_0x83e0e8[0x0]['language']),_0x7981ca=_0x28626e?Array['from'](_0x49f08c['getSelectedBlocks']())['filter'](_0x481c1c=>eo(_0x481c1c)||function(_0x2ebccc,_0x18cfc1){if(_0x2ebccc['is']('rootElement')||_0x18cfc1['isLimit'](_0x2ebccc))return!0x1;return _0x18cfc1['checkChild'](_0x2ebccc['parent'],'codeBlock');}(_0x481c1c,_0x221b20['schema'])):Array['from'](_0x49f08c['getSelectedBlocks']())['filter'](_0x514000=>eo(_0x514000));const _0x168708=to(_0x7981ca,_0x221b20);_0x221b20['change'](()=>{for(const _0x3ae62f of _0x168708)_0x2a91ec['markBlockFormat'](_0x3ae62f,{'commandName':'codeBlock','commandParams':[{..._0x574d8d,'forceValue':_0x28626e}],'formatGroupId':'blockName'});});}),(_0x2a91ec['descriptionFactory']['registerElementLabel']('codeBlock',_0x4e34a7=>o(_0x94306c,'ELEMENT_CODE_BLOCK',_0x4e34a7)),_0x2a91ec['descriptionFactory']['registerDescriptionCallback'](_0x457c93=>{if('formatBlock'!=_0x457c93['type'])return;const _0xfe8281=_0x94306c['t'],{data:_0x4d36c8}=_0x457c93;if(!_0x4d36c8||'codeBlock'!=_0x4d36c8['commandName'])return;const _0x1aa458=_0x4d36c8['commandParams'][0x0]['language'],_0x1474fd=_0xfe8281(_0x83e0e8['find'](_0x77f0f4=>_0x77f0f4['language']===_0x1aa458)['label'])['toLowerCase']();return _0x4d36c8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x94306c,'*Set\x20format:*\x20%0',o(_0x94306c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1474fd+')')}:{'type':'format','content':o(_0x94306c,'*Remove\x20format:*\x20%0',o(_0x94306c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x24da12){return'codeBlock'==_0x24da12['name'];}class H extends _0x5552f2{['afterInit'](){const _0x2ce048=this['editor'];if(!_0x2ce048['plugins']['has']('CommentsEditing'))return;_0x2ce048['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5883bc,_0x379967,_0x2817e5){const _0x7617e9=[];for(const _0x25831 of _0x379967['getItems']())_0x25831['hasAttribute'](_0x5883bc)&&_0x7617e9['push'](_0x2817e5['createRangeOn'](_0x25831));return _0x7617e9;}function _e(_0x53ffc6,_0x3a8a13,{showActiveMarker:_0x41e528=!0x0}={}){const _0x188593=_0x53ffc6['plugins']['get']('TrackChangesEditing');return(_0x1de836,_0x3ba7b0,_0x9d5f90)=>{if(!_0x9d5f90['consumable']['test'](_0x3ba7b0['markerRange'],_0x1de836['name']))return;const _0x5919cb=_0x3ba7b0['markerRange']['getWalker'](),_0x34cc09=_0x3ba7b0['markerRange']['start'],_0xf45703=_0x53ffc6['model']['schema'];let _0x3f771b=null,_0x40ca11=null,_0xbdb1d6=!0x1,_0x5b09e9=!0x1;for(const _0x5daf88 of _0x5919cb){const _0x1ce128=_0x5daf88['item'];_0xbdb1d6=_0xbdb1d6||_0xf45703['isContent'](_0x1ce128);const _0x29c98e=_0x9d5f90['mapper']['toViewElement'](_0x1ce128);if(_0x29c98e&&_0x29c98e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5daf88['type']&&(_0xf45703['isBlock'](_0x1ce128)&&!_0xf45703['isLimit'](_0x1ce128)&&(_0x1ce128['nextSibling']||_0x34cc09['isAtEnd']?_0x3f771b&&_0x3f771b['parent']==_0x1ce128||(_0x3f771b=_0x1ce128,_0x2c67dc(_0x5daf88['previousPosition']),_0x5b09e9=!0x0):_0x40ca11=_0x40ca11||_0x5daf88['previousPosition']));}function _0x2c67dc(_0x37db5c){const _0x3f677a=_0x9d5f90['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a8a13}),_0x22c6b7=_0x9d5f90['mapper']['toViewPosition'](_0x37db5c);_0x41e528&&_0x188593['activeMarkers']['includes'](_0x3ba7b0['markerName'])&&_0x9d5f90['writer']['addClass']('ck-suggestion-marker--active',_0x3f677a),_0x9d5f90['writer']['insert'](_0x22c6b7,_0x3f677a),_0x9d5f90['mapper']['bindElementToMarker'](_0x3f677a,_0x3ba7b0['markerName']);}_0xbdb1d6||_0x5b09e9||!_0x40ca11||_0x2c67dc(_0x40ca11);};}class q extends _0x5552f2{static get['requires'](){return[_0x588ff9];}['init'](){const _0x4dc64a=this['editor'],_0x25b7bc=_0x4dc64a['plugins']['get']('TrackChangesEditing');_0x25b7bc['enableCommand']('delete');const _0x24a002=_0x4dc64a['commands']['get']('deleteForward');_0x25b7bc['enableCommand']('deleteForward',(_0x56bad9,_0xc537b6={})=>{const _0x24d878=_0x4dc64a['model']['createSelection'](_0x4dc64a['model']['document']['selection']);_0x24d878['isCollapsed']&&_0x4dc64a['model']['modifySelection'](_0x24d878,{'direction':'forward','unit':_0xc537b6['unit']});const _0x266136=_0x24d878['getFirstRange'](),_0x225d89=_0x3c7933['fromRange'](_0x266136);let _0x2880cf;_0x56bad9(_0xc537b6),_0x2880cf='$graveyard'==_0x225d89['root']['rootName']?_0x4dc64a['model']['createRange'](_0x266136['start']):_0x4dc64a['model']['createRange'](_0x225d89['start'],_0x225d89['end']),_0x225d89['detach'](),_0x4dc64a['model']['enqueueChange'](_0x24a002['buffer']['batch'],_0x251cd6=>{_0x24a002['buffer']['lock'](),_0x251cd6['setSelection'](_0x251cd6['createRange'](_0x2880cf['end'])),_0x24a002['buffer']['unlock']();});}),_0x4dc64a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4dc64a,'merge'),{'priority':'high'}),_0x4dc64a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38d83f,_0x499595,_0x48649a)=>{_0x48649a['options']['showSuggestionHighlights']&&_e(_0x4dc64a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x38d83f,_0x499595,_0x48649a);},{'priority':'high'}),_0x4dc64a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3d8217,_0x11da12,_0x21e175)=>{const _0xc5e1e6=_0x21e175['mapper']['markerNameToElements'](_0x11da12['markerName']);if(_0xc5e1e6){for(const _0x22bfb4 of _0xc5e1e6)_0x22bfb4['is']('uiElement')&&(_0x21e175['mapper']['unbindElementFromMarkerName'](_0x22bfb4,_0x11da12['markerName']),_0x21e175['writer']['remove'](_0x22bfb4));}},{'priority':'high'});}}class z extends _0x5552f2{['afterInit'](){const _0x23ecff=this['editor'];if(!_0x23ecff['plugins']['has']('ListEditing'))return;const _0x55d28d=_0x23ecff['locale'],_0x119c52=_0x23ecff['plugins']['get']('TrackChangesEditing'),_0xa89121=_0x23ecff['plugins']['has']('TodoListEditing'),_0x2ad9c1=!!_0x23ecff['config']['get']('list.multiBlock');function _0x32e1bc(_0x3c4fdd){return{'type':'format','content':''+o(_0x55d28d,'*Set\x20format:*\x20%0',_0x3c4fdd)};}function _0x316f5c(_0x5f28ec){return{'type':'format','content':''+o(_0x55d28d,'*Remove\x20format:*\x20%0',_0x5f28ec)};}_0x119c52['enableDefaultAttributesIntegration']('numberedList'),_0x119c52['enableDefaultAttributesIntegration']('bulletedList'),_0x119c52['enableDefaultAttributesIntegration']('customNumberedList'),_0x119c52['enableDefaultAttributesIntegration']('customBulletedList'),_0x119c52['enableDefaultAttributesIntegration']('indentList'),_0x119c52['enableDefaultAttributesIntegration']('outdentList'),_0x119c52['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x119c52['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x119c52['registerBlockAttribute']('listItemId'),_0x119c52['registerBlockAttribute']('listType'),_0x119c52['registerBlockAttribute']('listIndent'),_0x2ad9c1&&(_0x119c52['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x119c52['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xa89121&&(_0x119c52['enableDefaultAttributesIntegration']('todoList'),_0x119c52['enableDefaultAttributesIntegration']('checkTodoList'),_0x119c52['registerBlockAttribute']('todoListChecked'),_0x119c52['descriptionFactory']['registerDescriptionCallback'](_0x51c928=>{const {data:_0x4f7ecc}=_0x51c928;if(_0x4f7ecc&&'todoListChecked'==_0x4f7ecc['key'])return{'type':'format','content':_0x4f7ecc['newValue']?o(_0x55d28d,'*Check\x20item*'):o(_0x55d28d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x47d532=>{if(_0x47d532['batch']['isUndo'])return!0x1;let _0x417a87=!0x1;const _0x58a8b3=_0x119c52['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2458a4=>'todoListChecked'===_0x119c52['_getAttributeKey'](_0x2458a4));for(const _0x277fc7 of _0x58a8b3){'todo'!=_0x277fc7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x119c52['_findSuggestions'](_0x277fc7['getFirstRange'](),'attribute')['find'](_0x59ff66=>'listType'===_0x119c52['_getAttributeKey'](_0x59ff66['suggestion']))||(_0x47d532['removeMarker'](_0x277fc7['getFirstMarker']()),_0x417a87=!0x0));}return _0x417a87;})),_0x119c52['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x55d28d,'FORMAT_INDENT'));const _0x150288={'type':'format','content':''};_0x119c52['descriptionFactory']['registerDescriptionCallback'](_0x43ad5d=>{const {data:_0x50f25d}=_0x43ad5d;if(!_0x50f25d||'listType'!=_0x50f25d['key'])return;let _0x3cf35a=_0x43ad5d['head'];for(;_0x3cf35a;){if(_0x3cf35a['data']&&(('listStyle'==_0x3cf35a['data']['key']||'listMarkerStyle'==_0x3cf35a['data']['key'])&&(_0x3cf35a['data']['newValue']&&'default'!=_0x3cf35a['data']['newValue']||'default'!=_0x3cf35a['data']['oldValue']&&!_0x50f25d['newValue'])||!_0x2ad9c1&&_0x3cf35a['data']['key']==m))return _0x150288;_0x3cf35a=_0x3cf35a['next'];}if(null==_0x50f25d['newValue'])switch(_0x50f25d['oldValue']){case'bulleted':return _0x316f5c(o(_0x55d28d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x316f5c(o(_0x55d28d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x316f5c(o(_0x55d28d,'ELEMENT_TODO_LIST'));}switch(_0x50f25d['newValue']){case'bulleted':return _0x32e1bc(o(_0x55d28d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x32e1bc(o(_0x55d28d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x32e1bc(o(_0x55d28d,'ELEMENT_TODO_LIST'));}}),_0x119c52['descriptionFactory']['registerDescriptionCallback'](_0x12c23a=>{const {data:_0x3bb0d5}=_0x12c23a;if(_0x3bb0d5&&'listIndent'==_0x3bb0d5['key'])return null==_0x3bb0d5['newValue']||null==_0x3bb0d5['oldValue']&&0x0==_0x3bb0d5['newValue']?_0x150288:void 0x0;}),_0x119c52['descriptionFactory']['registerDescriptionCallback'](_0x1f0dde=>{if('attribute'!=_0x1f0dde['type'])return;const {data:_0x19d8eb}=_0x1f0dde;if(!_0x19d8eb||'listItemId'!=_0x19d8eb['key'])return;const _0x3dd78c=le(_0x1f0dde);return'newValue'==_0x3dd78c?{'type':'format','content':o(_0x55d28d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3dd78c?{'type':'format','content':o(_0x55d28d,'*Split:*\x20list\x20item')}:_0x150288;}),_0x23ecff['model']['document']['registerPostFixer'](_0x61c58a=>this['listItemIdFixer'](_0x61c58a)),_0x23ecff['model']['document']['registerPostFixer'](_0x1514b6=>this['noTrackChangesFixer'](_0x1514b6)),_0x23ecff['model']['document']['registerPostFixer'](_0x3931f7=>this['assureChains'](_0x3931f7)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3e2266){if(_0x3e2266['batch']['isUndo']||!_0x3e2266['batch']['isLocal'])return!0x1;let _0x29bfff=!0x1;const _0xbe121a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3af824=>_0x3af824['data']&&'listItemId'==_0x3af824['data']['key'])['filter'](_0x221cbd=>_0x221cbd['data']['newValue']&&_0x221cbd['data']['oldValue']);for(const _0x39fdbf of _0xbe121a)le(_0x39fdbf)||(_0x3e2266['removeMarker'](_0x39fdbf['getFirstMarker']()),_0x29bfff=!0x0);return _0x29bfff;}['noTrackChangesFixer'](_0x7d7bdc){if(_0x7d7bdc['batch']['isUndo']||!_0x7d7bdc['batch']['isLocal'])return!0x1;const _0x4cdfcd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4cdfcd['trackChangesCommand']['value'])return!0x1;let _0xce76ba=!0x1;const _0x5b7b52=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3062c5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3cdd11=>'attribute'==_0x3cdd11['type'])['filter'](_0x3d6675=>_0x5b7b52['includes'](_0x3d6675['attributeKey']));if(0x0==_0x3062c5['length'])return _0xce76ba;for(const _0x2348dd of _0x3062c5){const _0x335bdd=_0x4cdfcd['_findSuggestions'](_0x2348dd['range'],'attribute')['filter'](_0x58c71e=>!_0x58c71e['meta']['isNextTo'])['map'](_0xb2e020=>_0xb2e020['suggestion'])['filter'](_0x6455c3=>{const _0x4dfd31=_0x4cdfcd['_getAttributeKey'](_0x6455c3);return _0x5b7b52['includes'](_0x4dfd31);});if(_0x335bdd['length']){for(const _0xdab98c of _0x335bdd)_0x7d7bdc['removeMarker'](_0xdab98c['getFirstMarker']());_0xce76ba=!0x0;}}return _0xce76ba;}['assureChains'](_0x52d0e3){if(_0x52d0e3['batch']['isUndo']||!_0x52d0e3['batch']['isLocal'])return!0x1;const _0x38176c=this['editor']['plugins']['get']('TrackChangesEditing');let _0x316e89=!0x1;const _0xe19893=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5c171c of _0x38176c['getSuggestions']({'skipNotAttached':!0x0})){const _0x5cd10a=_0x38176c['_findSuggestions'](_0x5c171c['getFirstRange'](),'attribute')['map'](_0x402bdf=>_0x402bdf['suggestion'])['filter'](_0x297fab=>_0x297fab['data']&&_0xe19893['includes'](_0x297fab['data']['key']));if(!_0x5cd10a['length'])continue;const _0x4c2dc4=_0x5cd10a[0x0]['head']['attributes']['groupId'];if(!_0x5cd10a['every'](_0x8dfada=>_0x8dfada['attributes']['groupId']===_0x4c2dc4)){for(const _0x223a7d of _0x5cd10a)_0x1b1863(_0x223a7d,_0x4c2dc4)&&(_0x316e89=!0x0);}}return _0x316e89;function _0x36520b(_0x36fc57,_0x1f84d9){for(const _0x31a29d of _0x38176c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe1fabb=>'attribute'==_0xe1fabb['type']&&_0xe1fabb['attributes']['groupId']==_0x36fc57))_0x31a29d['setAttribute']('groupId',_0x1f84d9);}function _0x1b1863(_0x596847,_0x38e747){let _0x293edb=_0x596847['head'],_0x460ab6=!0x1;for(;_0x293edb;)_0x293edb['attributes']['groupId']!=_0x38e747&&(_0x36520b(_0x293edb['attributes']['groupId'],_0x38e747),_0x293edb['setAttribute']('groupId',_0x38e747),_0x460ab6=!0x0),_0x293edb=_0x293edb['next'];return _0x460ab6;}}['_supportLegacySuggestions'](){const _0x103dc8=this['editor'],_0x593b80=_0x103dc8['locale'],_0x31b3ad=_0x103dc8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x31b3ad['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x44d37b,_0x51ac88){const _0x12a6a8=[];for(let _0x14a82b of _0x44d37b)_0x14a82b['start']['nodeAfter']===_0x14a82b['end']['parent']&&(_0x14a82b=_0x103dc8['model']['createRange'](_0x103dc8['model']['createPositionAt'](_0x14a82b['start']['nodeAfter'],0x0))),_0x12a6a8['push'](_0x14a82b);_0x103dc8['model']['change'](_0x589638=>{const _0x4cedc4=_0x103dc8['model']['document']['selection'],_0x1d12e6=Array['from'](_0x4cedc4['getRanges']())['map'](_0x4d7f9f=>_0x3c7933['fromRange'](_0x4d7f9f));_0x589638['setSelection'](_0x12a6a8),_0x103dc8['commands']['get'](_0x51ac88['commandName'])['refresh'](),_0x51ac88['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x103dc8['execute'](_0x51ac88['commandName'],..._0x51ac88['commandParams']),_0x589638['setSelection'](_0x1d12e6);for(const _0x555912 of _0x1d12e6)_0x555912['detach']();});}),_0x31b3ad['descriptionFactory']['registerElementLabel'](function(_0x40d158){const _0x407554=!_0x103dc8['model']['schema']['isObject'](_0x40d158),_0x26d5d8=_0x40d158['previousSibling'],_0x4dca04=_0x40d158['nextSibling'],_0x44c098=_0x40d158['getAttribute']('listItemId'),_0x4b882b=!_0x26d5d8||_0x26d5d8['getAttribute']('listItemId')!==_0x44c098,_0x56b6e5=!_0x4dca04||_0x4dca04['getAttribute']('listItemId')!==_0x44c098;return _0x407554&&Boolean(_0x44c098)&&_0x4b882b&&_0x56b6e5;},_0x548216=>o(_0x593b80,'ELEMENT_LIST_ITEM',_0x548216));}['_registerLegacyDescription'](){const _0x51bf8d=this['editor'],_0x3c241a=_0x51bf8d['locale'];function _0x2d0693(_0xbfcab4){const _0x2fb170=_0x51bf8d['commands']['get']('bulletedList')['value'],_0x49280c=_0x51bf8d['commands']['get']('numberedList')['value'];return'numberedList'===_0xbfcab4?_0x2fb170:_0x49280c;}_0x51bf8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x42e0d0){if('formatBlock'!=_0x42e0d0['type'])return;const {data:_0x32a904}=_0x42e0d0;if(!_0x32a904)return;let _0x34b42d,_0x1c96ca,_0x10bb3a,_0x26ff13;switch(_0x32a904['commandName']){case'bulletedList':_0x10bb3a=_0x32a904['commandParams'][0x0]['forceValue'],_0x26ff13=_0x2d0693(_0x32a904['commandName']),_0x34b42d=_0x10bb3a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x26ff13&&_0x51bf8d['config']['get']('list.multiBlock')||(_0x34b42d='*Change\x20to:*\x20%0'),_0x1c96ca={'type':'format','content':o(_0x3c241a,_0x34b42d,o(_0x3c241a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x10bb3a=_0x32a904['commandParams'][0x0]['forceValue'],_0x26ff13=_0x2d0693(_0x32a904['commandName']),_0x34b42d=_0x10bb3a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x26ff13&&_0x51bf8d['config']['get']('list.multiBlock')||(_0x34b42d='*Change\x20to:*\x20%0'),_0x1c96ca={'type':'format','content':o(_0x3c241a,_0x34b42d,o(_0x3c241a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x34b42d='*Indent:*\x20%0',_0x1c96ca={'type':'format','content':o(_0x3c241a,_0x34b42d,o(_0x3c241a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x34b42d=function(_0x2ef096){const _0x330a54=_0x2ef096['getFirstRange']();let _0x5afa7d=_0x330a54['start']['nodeAfter'];for(;_0x5afa7d&&_0x330a54['containsItem'](_0x5afa7d);){if(_0x5afa7d['getAttribute']('listIndent')>0x0)return!0x1;_0x5afa7d=_0x5afa7d['nextSibling'];}return!0x0;}(_0x42e0d0)?o(_0x3c241a,'*Format:*\x20remove\x20from\x20%0',o(_0x3c241a,function(_0x5a0fec){return'ELEMENT_'+_0x5a0fec['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x42e0d0))):o(_0x3c241a,'*Outdent:*\x20%0',o(_0x3c241a,'ELEMENT_LIST_ITEM')),_0x1c96ca={'type':'format','content':_0x34b42d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x32a904['multipleBlocks']&&(_0x34b42d='*Merge:*\x20%0',_0x1c96ca={'type':'deletion','content':o(_0x3c241a,_0x34b42d,o(_0x3c241a,'ELEMENT_LIST_ITEM'))});}return _0x1c96ca;});}}function le(_0x142da4){let _0x5b1060=_0x142da4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5b1060;){const _0x5a8a0f=_0x5b1060['getAttribute']('listItemId');if(!_0x5a8a0f)return!0x1;if(_0x5a8a0f==_0x142da4['data']['newValue'])return'newValue';if(_0x5a8a0f==_0x142da4['data']['oldValue'])return'oldValue';_0x5b1060=_0x5b1060['previousSibling'];}return!0x1;}class ue extends _0x5552f2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x36b397=this['editor']['config']['get']('list.properties'),_0xa26439=this['editor']['plugins']['get']('TrackChangesEditing');_0x36b397['styles']&&(_0xa26439['enableDefaultAttributesIntegration']('listStyle'),_0xa26439['registerBlockAttribute']('listStyle')),_0x36b397['reversed']&&(_0xa26439['enableDefaultAttributesIntegration']('listReversed'),_0xa26439['registerBlockAttribute']('listReversed')),_0x36b397['startIndex']&&(_0xa26439['enableDefaultAttributesIntegration']('listStart'),_0xa26439['registerBlockAttribute']('listStart'));const _0x3de2b9={'type':'format','content':''};_0xa26439['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2ab2eb=this['editor']['locale'];_0xa26439['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2ab2eb,'FORMAT_LIST_REVERSED')),_0xa26439['descriptionFactory']['registerDescriptionCallback'](_0xc6dd3=>{const {data:_0x4807bb}=_0xc6dd3;if(_0x4807bb&&'listReversed'==_0x4807bb['key'])return null==_0x4807bb['newValue']||0x0==_0x4807bb['newValue']&&null==_0x4807bb['oldValue']?_0x3de2b9:void 0x0;}),_0xa26439['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2ab2eb,'FORMAT_LIST_START')),_0xa26439['descriptionFactory']['registerDescriptionCallback'](_0x4022a6=>{const {data:_0x2c9183}=_0x4022a6;if(_0x2c9183&&'listStart'==_0x2c9183['key'])return null==_0x2c9183['newValue']||0x1==_0x2c9183['newValue']&&null==_0x2c9183['oldValue']?_0x3de2b9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x10ebf6=>{if(_0x10ebf6['batch']['isUndo'])return!0x1;let _0x1ec570=!0x1;const _0x50367b=_0xa26439['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x362dfc=>{const _0x2f5f68=_0xa26439['_getAttributeKey'](_0x362dfc);return'listStart'==_0x2f5f68||'listReversed'==_0x2f5f68;});for(const _0x28324f of _0x50367b){const _0x36b570=_0x28324f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x36b570||'customNumbered'==_0x36b570)continue;_0xa26439['_findSuggestions'](_0x28324f['getFirstRange'](),'attribute')['find'](_0x422679=>'listType'==_0xa26439['_getAttributeKey'](_0x422679['suggestion']))||(_0x10ebf6['removeMarker'](_0x28324f['getFirstMarker']()),_0x1ec570=!0x0);}return _0x1ec570;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2c80a4){const _0x4e368c=this['editor']['locale'],{data:_0x3b00d0}=_0x2c80a4,_0x5385c4={'type':'format','content':''};if(!_0x3b00d0||'listStyle'!=_0x3b00d0['key'])return;if(!_0x3b00d0['oldValue'])return'default'==_0x3b00d0['newValue']?_0x5385c4:{'type':'format','content':''+o(_0x4e368c,'*Set\x20format:*\x20%0',o(_0x4e368c,this['_getTranslationKeyForListStyle'](_0x3b00d0['newValue'])))};if(!_0x3b00d0['newValue']){if('default'==_0x3b00d0['oldValue'])return _0x5385c4;let _0x305fa3=_0x2c80a4['head'];for(;_0x305fa3;){if(_0x305fa3['data']&&'listType'==_0x305fa3['data']['key']&&_0x305fa3['data']['newValue'])return _0x5385c4;_0x305fa3=_0x305fa3['next'];}return{'type':'format','content':''+o(_0x4e368c,'*Remove\x20format:*\x20%0',o(_0x4e368c,this['_getTranslationKeyForListStyle'](_0x3b00d0['oldValue'])))};}if('default'!=_0x3b00d0['newValue'])return{'type':'format','content':''+o(_0x4e368c,'*Set\x20format:*\x20%0',o(_0x4e368c,this['_getTranslationKeyForListStyle'](_0x3b00d0['newValue'])))};let _0x2fd306=_0x2c80a4['head'];for(;_0x2fd306;){if(_0x2fd306['data']&&'listType'==_0x2fd306['data']['key']&&_0x2fd306['data']['newValue']&&_0x2fd306['data']['oldValue'])return _0x5385c4;_0x2fd306=_0x2fd306['next'];}return{'type':'format','content':o(_0x4e368c,'*Set\x20format:*\x20%0',o(_0x4e368c,'ELEMENT_'+_0x2c80a4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x271e3f=this['editor'],_0x37bdf3=_0x271e3f['locale'];_0x271e3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59dd18=>{if('formatBlock'!=_0x59dd18['type'])return;const {data:_0x11910c}=_0x59dd18;if(!_0x11910c)return;let _0x40ac55,_0x30e2f7;switch(_0x11910c['commandName']){case'listStyle':_0x40ac55='*Change\x20to:*\x20%0',_0x30e2f7={'type':'format','content':o(_0x37bdf3,_0x40ac55,o(_0x37bdf3,this['_getTranslationKeyForListStyle'](_0x11910c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40ac55=_0x11910c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30e2f7={'type':'format','content':o(_0x37bdf3,_0x40ac55)};break;case'listStart':_0x40ac55='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30e2f7={'type':'format','content':o(_0x37bdf3,_0x40ac55,_0x11910c['commandParams'][0x0]['startIndex'])};}return _0x30e2f7;});}['_getTranslationKeyForListStyle'](_0x1feb87){return'ELEMENT_'+function(_0x354e69){if(pe['includes'](_0x354e69))return'bulleted';if(ye['includes'](_0x354e69))return'numbered';return null;}(_0x1feb87)['toUpperCase']()+'_LIST_'+_0x1feb87['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x5552f2{static get['requires'](){return[_0x478a6d];}['init'](){const _0x2488e3=this['editor'],_0x40790c=_0x2488e3['plugins']['get']('TrackChangesEditing'),_0xd90c3b=_0x2488e3['commands']['get']('enter');_0x40790c['enableCommand']('enter',()=>{_0x2488e3['model']['change'](_0x554850=>{const _0x85cf3d=_0x2488e3['model']['document']['selection'],_0x516b86=_0x85cf3d['getFirstPosition'](),_0x2d088c=_0x3c7933['fromRange'](_0x85cf3d['getFirstRange']());if(_0xd90c3b['enterBlock'](_0x554850)){const _0x25b193=_0x2488e3['model']['createPositionAt'](_0x516b86['parent']['nextSibling'],0x0),_0xc6ee98=_0x554850['createRange'](_0x516b86,_0x25b193);_0x40790c['markInsertion'](_0xc6ee98);}else _0x554850['setSelection'](_0x554850['createRange'](_0x2d088c['end']));_0x2d088c['detach'](),_0xd90c3b['fire']('afterExecute',{'writer':_0x554850});});}),_0x2488e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2488e3,'split'),{'priority':'high'}),_0x2488e3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5c2aa5,_0x203f1f,_0x1fc6c1)=>{const _0x102398=_0x1fc6c1['mapper']['markerNameToElements'](_0x203f1f['markerName']);if(_0x102398){for(const _0x5b93ec of _0x102398)_0x5b93ec['hasClass']('ck-suggestion-marker-split')&&(_0x1fc6c1['mapper']['unbindElementFromMarkerName'](_0x5b93ec,_0x203f1f['markerName']),_0x1fc6c1['writer']['remove'](_0x5b93ec));}},{'priority':'high'}),_0x2488e3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xae0d1e,_0x71861a,_0x237aed)=>{_0x237aed['options']['showSuggestionHighlights']&&_e(_0x2488e3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xae0d1e,_0x71861a,_0x237aed);},{'priority':'high'});}}class J extends _0x5552f2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3e7d03=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e7d03['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3e7d03['enableCommand']('findNext'),_0x3e7d03['enableCommand']('findPrevious'),_0x3e7d03['enableCommand']('replace'),_0x3e7d03['enableCommand']('replaceAll');}['handleFindCommand'](_0x2681ba,_0x5846cd,_0x4cce24={}){const _0x3df608=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2681ba(_0x12348c=>('string'==typeof _0x5846cd?_0x3df608['findByTextCallback'](_0x5846cd,_0x4cce24):_0x5846cd)(_0x12348c)['filter'](_0x194474=>!0x1===this['_isInDeletionRange'](_0x194474,_0x12348c['item'])),_0x4cce24);}['_isInDeletionRange'](_0xe510c8,_0x296a8a){const _0x4d8f6e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x296a8a,_0xe510c8['start']),this['editor']['model']['createPositionAt'](_0x296a8a,_0xe510c8['end']));for(const _0x16c700 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4d8f6e['getIntersection'](_0x16c700['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 _0x5552f2{['afterInit'](){const _0x4f9c76=this['editor']['locale'],_0x1cb223=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x51fbc6,commandName:_0x2d5f63}of ro)this['editor']['plugins']['has'](_0x51fbc6)&&(_0x1cb223['enableDefaultAttributesIntegration'](_0x2d5f63),_0x1cb223['registerInlineAttribute'](_0x2d5f63));_0x1cb223['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4f9c76,'FORMAT_FONT_SIZE')),_0x1cb223['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4f9c76,'FORMAT_FONT_FAMILY')),_0x1cb223['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4f9c76,'FORMAT_FONT_COLOR')),_0x1cb223['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4f9c76,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x112bf5=this['editor'],_0x64fcdd=_0x112bf5['locale'];_0x112bf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2df38d=>{const _0x334d56=_0x64fcdd['t'];if('formatInline'!=_0x2df38d['type'])return;const {data:_0x2038d1}=_0x2df38d;if(null!=_0x2038d1){if('fontSize'==_0x2038d1['commandName']){const _0x1d6755=_0x2038d1['commandParams'][0x0]['value'];if(_0x1d6755){const _0x522a4b=_0x334d56(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3022a0=>_0x3022a0['model']==_0x1d6755)['title'])['toLowerCase']();return{'type':'format','content':o(_0x64fcdd,'*Set\x20font\x20size:*\x20%0',_0x522a4b)};}return{'type':'format','content':o(_0x64fcdd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2038d1['commandName']){const _0xf61b22=_0x2038d1['commandParams'][0x0]['value'];return _0xf61b22?{'type':'format','content':o(_0x64fcdd,'*Set\x20font\x20family:*\x20%0',_0xf61b22)}:{'type':'format','content':o(_0x64fcdd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2038d1['commandName']){const _0x2f6437=_0x2038d1['commandParams'][0x0]['value'];if(_0x2f6437){const _0x4ad2fc=_0x22a5e7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x20aa39=>_0x20aa39['model']==_0x2f6437);let _0x5732d4=_0x2f6437,_0x58f3c7='';return _0x4ad2fc&&(_0x5732d4=_0x4ad2fc['label'],_0x58f3c7=_0x334d56(_0x5732d4)['toLowerCase']()),{'type':'format','content':o(_0x64fcdd,'*Set\x20font\x20color:*\x20%0',_0x58f3c7)['trim'](),'color':{'value':_0x2f6437,'title':_0x58f3c7||_0x5732d4}};}return{'type':'format','content':o(_0x64fcdd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2038d1['commandName']){const _0x2d72f9=_0x2038d1['commandParams'][0x0]['value'];if(_0x2d72f9){const _0x5d123f=_0x22a5e7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1b4041=>_0x1b4041['model']==_0x2d72f9);let _0x976b37=_0x2d72f9,_0xce3f47='';return _0x5d123f&&(_0x976b37=_0x5d123f['label'],_0xce3f47=_0x334d56(_0x976b37)['toLowerCase']()),{'type':'format','content':o(_0x64fcdd,'*Set\x20font\x20background\x20color:*\x20%0',_0xce3f47)['trim'](),'color':{'value':_0x2d72f9,'title':_0xce3f47||_0x976b37}};}return{'type':'format','content':o(_0x64fcdd,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x5552f2{['afterInit'](){const _0x53e3f5=this['editor'],_0x8b434e=_0x53e3f5['plugins']['get']('TrackChangesEditing'),_0x14d7d6=_0x53e3f5['commands']['get']('copyFormat'),_0x4fcf3e=_0x53e3f5['commands']['get']('pasteFormat');_0x14d7d6&&_0x4fcf3e&&(_0x8b434e['enableDefaultAttributesIntegration']('pasteFormat'),_0x8b434e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xa6707f=this['editor'],_0x470e89=_0xa6707f['locale'];_0xa6707f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x345569=>{if('formatBlock'!=_0x345569['type']&&'formatInline'!=_0x345569['type'])return;const {data:_0x19b5c6}=_0x345569;if(_0x19b5c6&&'pasteFormat'===_0x19b5c6['commandName']){const _0xbcc424=[],_0x410c05=_0x19b5c6['commandParams'][0x0];for(const [_0x73464a,_0x5e344d]of Object['entries'](_0x410c05))_0xbcc424['push'](so(_0xa6707f,_0x73464a,_0x5e344d));return _0xbcc424['length']?{'type':'format','content':o(_0x470e89,'*Set\x20format\x20to:*\x20%0',_0xbcc424['join'](',\x20'))}:{'type':'format','content':o(_0x470e89,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1e9950,_0x361adb,_0x4559ea){const _0x40cf91=_0x1e9950['locale']['t'],_0x38239d=_0x361adb['split'](/(?=[A-Z])/)['join']('\x20'),_0x48df71=_0x40cf91(_0x38239d['charAt'](0x0)['toUpperCase']()+_0x38239d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4559ea)return _0x48df71;if('fontColor'===_0x361adb||'fontBackgroundColor'===_0x361adb){const _0x4c5f0f=_0x22a5e7(_0x1e9950['config']['get']('fontColor.colors'))['find'](_0x16b17b=>_0x16b17b['model']==_0x4559ea);return _0x48df71+'\x20('+(_0x4c5f0f?_0x40cf91(_0x4c5f0f['label'])['toLowerCase']():_0x4559ea)+')';}if('fontSize'===_0x361adb&&isNaN(parseFloat(_0x4559ea))){const _0x1e96af=_0x1e9950['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1e9950['config']['get']('fontSize.options'))['find'](_0xa8a73c=>_0xa8a73c['model']==_0x4559ea);return _0x48df71+'\x20('+(_0x1e96af?_0x40cf91(_0x1e96af['title'])['toLowerCase']():_0x4559ea)+')';}return _0x48df71+'\x20('+_0x4559ea+')';}class Y extends _0x5552f2{['_headingOptions'];['afterInit'](){const _0x3e196b=this['editor'];if(!_0x3e196b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3e196b['config']['get']('heading.options');const _0x4f634b=_0x3e196b['locale'],_0x4779cf=_0x3e196b['plugins']['get']('TrackChangesEditing');_0x4779cf['enableDefaultAttributesIntegration']('heading');for(const _0x5b29b8 of this['_headingOptions'])'paragraph'!=_0x5b29b8['model']&&_0x4779cf['descriptionFactory']['registerElementLabel'](_0x5b29b8['model'],_0x2ef87b=>{const _0x3937f3=this['_getHeadingLevel'](_0x5b29b8['model']);return null!==_0x3937f3?_0x481926(_0x2ef87b,_0x3937f3):_0x384f4b(_0x2ef87b,_0x5b29b8['title']);});function _0x481926(_0x1e76b9,_0x163419){return o(_0x4f634b,'ELEMENT_HEADING',[_0x1e76b9,_0x163419]);}function _0x384f4b(_0x1dec9b,_0x577796){return o(_0x4f634b,'ELEMENT_HEADING_CUSTOM',[_0x1dec9b,_0x577796]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ea181=this['editor'],_0x4ac6c2=_0x3ea181['locale'];function _0x8ba9e7(_0x31f1f8,_0x280f39){return o(_0x4ac6c2,'ELEMENT_HEADING_CUSTOM',[_0x31f1f8,_0x280f39]);}_0x3ea181['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc86e4f=>{if('formatBlock'!=_0xc86e4f['type'])return;const {data:_0x52225a}=_0xc86e4f;if(_0x52225a&&'heading'==_0x52225a['commandName']){const _0x78f4c9=_0x52225a['commandParams'][0x0]['value'],_0xc7b758=this['_getHeadingLevel'](_0x78f4c9);if(null!==_0xc7b758)return{'type':'format','content':o(_0x4ac6c2,'*Change\x20to:*\x20%0',(_0x411846=0x1,_0x46f9e8=_0xc7b758,o(_0x4ac6c2,'ELEMENT_HEADING',[_0x411846,_0x46f9e8])))};const _0x57ca83=this['_headingOptions']['find'](_0x10afba=>_0x10afba['model']===_0x78f4c9)['title'];return{'type':'format','content':o(_0x4ac6c2,'*Change\x20to:*\x20%0',_0x8ba9e7(0x1,_0x57ca83))};}var _0x411846,_0x46f9e8;});}['_getHeadingLevel'](_0x3e9d35){const _0x3ec349=_0x3e9d35['match'](/^heading(\d+)/);if(_0x3ec349)return _0x3ec349[0x1];const _0x7089a=this['_headingOptions']?.['find'](_0x43ddc3=>_0x43ddc3['model']==_0x3e9d35);if(_0x7089a&&_0x7089a['view']){const _0x28a27a=_0x7089a['view'],_0x4369ee=(_0x28a27a['name']??_0x28a27a)['match'](/^h(\d+)/);if(_0x4369ee)return _0x4369ee[0x1];}return null;}}class Z extends _0x5552f2{['afterInit'](){const _0x395d76=this['editor'];if(!_0x395d76['plugins']['has']('HighlightEditing'))return;const _0x5c038f=_0x395d76['plugins']['get']('TrackChangesEditing'),_0x1cbbc6=_0x395d76['locale'];_0x5c038f['enableDefaultAttributesIntegration']('highlight'),_0x5c038f['registerInlineAttribute']('highlight'),_0x5c038f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1cbbc6,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17b0b6=this['editor'],_0x21494c=_0x17b0b6['locale'];_0x17b0b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41b801=>{if('formatInline'!=_0x41b801['type'])return;const {data:_0xd5e344}=_0x41b801;if(_0xd5e344&&'highlight'==_0xd5e344['commandName']){const _0x18fef9=_0x21494c['t'],_0x2fbe3b=_0xd5e344['commandParams'][0x0]['value'];if(_0x2fbe3b){const _0x2da430=_0x17b0b6['config']['get']('highlight.options')['find'](_0x1ff64a=>_0x1ff64a['model']==_0x2fbe3b),_0x1367da=_0x18fef9(_0x2da430['title'])['toLowerCase']();return{'type':'format','content':o(_0x21494c,'*Set\x20highlight:*\x20%0',_0x1367da),'color':{'value':_0x2da430['color'],'title':_0x2da430['title']}};}return{'type':'format','content':o(_0x21494c,'*Remove\x20highlight*',o(_0x21494c,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x5552f2{['afterInit'](){const _0xaac7f7=this['editor'];if(!_0xaac7f7['plugins']['has']('HorizontalLineEditing'))return;_0xaac7f7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa9e04d=_0xaac7f7['plugins']['get']('TrackChangesEditing'),_0x3dc81b=_0xaac7f7['locale'];_0xa9e04d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3ad665=>o(_0x3dc81b,'ELEMENT_HORIZONTAL_LINE',_0x3ad665)),_0xaac7f7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x560bda,{writer:_0x422c1d,options:_0xe270fb})=>{if(!_0xe270fb['showSuggestionHighlights'])return null;const _0x2fa46a=_0x422c1d['createContainerElement']('div'),_0xc6224c=_0x422c1d['createEmptyElement']('hr');return _0x422c1d['addClass']('ck-horizontal-line',_0x2fa46a),_0x422c1d['insert'](_0x422c1d['createPositionAt'](_0x2fa46a,0x0),_0xc6224c),_0x2fa46a;},'converterPriority':'high'});}}class et extends _0x5552f2{['afterInit'](){const _0x3ec367=this['editor'];if(!_0x3ec367['plugins']['has']('HtmlEmbed'))return;const _0x54cc0b=_0x3ec367['plugins']['get']('TrackChangesEditing'),_0x5c852f=_0x3ec367['locale'];_0x54cc0b['descriptionFactory']['registerElementLabel']('rawHtml',_0x2697bc=>o(_0x5c852f,'ELEMENT_HTML_EMBED',_0x2697bc)),_0x54cc0b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x54cc0b['registerBlockAttribute']('value'),_0x54cc0b['descriptionFactory']['registerDescriptionCallback'](_0x143342=>{if('attribute'!=_0x143342['type'])return;const {data:_0x157591}=_0x143342;if(_0x157591&&'value'==_0x157591['key']&&_0x143342['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x52796b=o(_0x5c852f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5c852f,'*Change\x20%0\x20content*',_0x52796b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x336287=this['editor'],_0x336b9b=_0x336287['locale'];_0x336287['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dc506=>{if('formatBlock'!=_0x2dc506['type'])return;const {data:_0xdfc1ab}=_0x2dc506;if(_0xdfc1ab&&'htmlEmbed'==_0xdfc1ab['commandName']){const _0x454b9d=o(_0x336b9b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x336b9b,'*Change\x20%0\x20content*',_0x454b9d)};}});}}class it extends _0x5552f2{['afterInit'](){const _0x4ae709=this['editor'];if(!_0x4ae709['plugins']['has']('ImageEditing'))return;const _0x3b6776=_0x4ae709['plugins']['get']('TrackChangesEditing'),_0x1f83bc=_0x4ae709['plugins']['get']('ImageUtils'),_0x40e7a2=_0x4ae709['locale'];_0x3b6776['enableCommand']('insertImage'),_0x3b6776['descriptionFactory']['registerElementLabel']('imageBlock',_0x58d287=>o(_0x40e7a2,'ELEMENT_IMAGE',_0x58d287)),_0x3b6776['descriptionFactory']['registerElementLabel']('imageInline',_0x30fe35=>o(_0x40e7a2,'ELEMENT_INLINE_IMAGE',_0x30fe35)),_0x3b6776['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x40e7a2,'ELEMENT_CAPTION')),_0x4ae709['plugins']['has']('ImageUploadEditing')&&_0x3b6776['enableCommand']('uploadImage'),_0x4ae709['plugins']['has']('ImageBlockEditing')&&_0x4ae709['plugins']['has']('ImageInlineEditing')&&(_0x3b6776['enableCommand']('imageTypeInline',(_0x3fdcd4,_0x2f9739)=>{const _0x30ba87=_0x1f83bc['getClosestSelectedImageElement'](_0x4ae709['model']['document']['selection']);_0x4ae709['model']['change'](()=>{_0x3b6776['markBlockFormat'](_0x30ba87,{'commandName':'imageTypeInline','commandParams':[_0x2f9739]},[],'convertBlockImageToInline');});}),_0x3b6776['enableCommand']('imageTypeBlock',(_0x548d48,_0x58b40f)=>{_0x4ae709['model']['change'](_0x56e8e1=>{let _0x578eba=_0x1f83bc['getClosestSelectedImageElement'](_0x4ae709['model']['document']['selection']),_0x57be35=_0x56e8e1['createRangeOn'](_0x578eba);const _0x566f44=_0x57e445['fromPosition'](_0x57be35['start'],'toPrevious'),_0x385eec=_0x57e445['fromPosition'](_0x57be35['end'],'toNext');_0x3b6776['forceDefaultExecution'](()=>_0x548d48(_0x58b40f)),_0x578eba=_0x1f83bc['getClosestSelectedImageElement'](_0x4ae709['model']['document']['selection']),_0x57be35=_0x56e8e1['createRangeOn'](_0x578eba);const _0x30d59f=_0x56e8e1['createRange'](_0x566f44,_0x385eec);_0x566f44['detach'](),_0x385eec['detach'](),_0x3b6776['markBlockFormat'](_0x578eba,{'commandName':'imageTypeInline','commandParams':[_0x58b40f]},[],'convertInlineImageToBlock'),_0x30d59f['start']['isBefore'](_0x57be35['start'])&&_0x3b6776['markInsertion'](_0x56e8e1['createRange'](_0x30d59f['start'],_0x57be35['start']),'convertInlineImageToBlock'),_0x57be35['end']['isBefore'](_0x30d59f['end'])&&_0x3b6776['markInsertion'](_0x56e8e1['createRange'](_0x57be35['end'],_0x30d59f['end']),'convertInlineImageToBlock');});}),_0x3b6776['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3b6776['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3b6776['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3b6776['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3b6776['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3b6776['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xf38609])=>{const _0x37f980=_0x3b6776['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xf55cec=_0xf38609['start'],_0x108a47=_0xf38609['end'];const _0x525f70=_0x4ae709['model']['schema']['getNearestSelectionRange'](_0xf55cec,'backward'),_0x4e70c6=_0x4ae709['model']['schema']['getNearestSelectionRange'](_0x108a47,'forward');_0x525f70['isCollapsed']&&(_0xf55cec=_0x525f70['start']),_0x4e70c6['isCollapsed']&&(_0x108a47=_0x4e70c6['end']),_0x37f980([_0x4ae709['model']['createRange'](_0xf55cec,_0x108a47)]);}),_0x3b6776['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4df5f1),_0x3b6776['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4df5f1)),_0x4ae709['plugins']['has']('ImageCaptionEditing')&&(_0x3b6776['enableCommand']('toggleImageCaption',(_0x5334d1,_0x59c1b5)=>{const _0x260af0=_0x4ae709['plugins']['get']('ImageCaptionUtils');let _0x808cc9=_0x1f83bc['getClosestSelectedImageElement'](_0x4ae709['model']['document']['selection']),_0x138f78=_0x260af0['getCaptionFromImageModelElement'](_0x808cc9);_0x4ae709['model']['change'](()=>{if(_0x138f78)return void _0x3b6776['markDeletion'](_0x4ae709['model']['createRangeOn'](_0x138f78));const _0x51efd4=_0x1f83bc['isBlockImage'](_0x808cc9);_0x5334d1(_0x59c1b5),_0x808cc9=_0x1f83bc['getClosestSelectedImageElement'](_0x4ae709['model']['document']['selection']),_0x138f78=_0x260af0['getCaptionFromImageModelElement'](_0x808cc9),_0x3b6776['markInsertion'](_0x4ae709['model']['createRangeOn'](_0x138f78),_0x51efd4?null:'imageCaption');});}),_0x3b6776['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4df5f1));const _0x42486c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x52d333(_0x2bb510,_0x22f4f9){const _0x29565e=_0x42486c['findIndex'](({type:_0x412aba,subType:_0x21257d})=>_0x2bb510['type']==_0x412aba&&_0x2bb510['subType']==_0x21257d),_0x2ef2be=_0x42486c['findIndex'](({type:_0x156ad4,subType:_0xc13498})=>_0x22f4f9['type']==_0x156ad4&&_0x22f4f9['subType']==_0xc13498);if(_0x29565e<0x0||_0x2ef2be<0x0)return!0x1;const _0x4423ea=_0x2bb510['getFirstRange'](),_0x1b6cf1=_0x22f4f9['getFirstRange']();if((0x0==_0x29565e||0x1==_0x29565e)&&0x2==_0x2ef2be&&_0x4423ea['isIntersecting'](_0x1b6cf1))return!0x0;if(0x2==_0x29565e&&0x3==_0x2ef2be){const _0x2bad5f=_0x3b6776['_findSuggestions'](_0x4423ea,'insertion')['filter'](({suggestion:_0xae1e2d,meta:_0xba2fe5})=>_0xba2fe5['isOwn']&&'convertInlineImageToBlock'==_0xae1e2d['subType']);if(_0x2bad5f['length']>0x1&&_0x1b6cf1['end']['isEqual'](_0x4423ea['start']))return!0x0;if(0x1==_0x2bad5f['length']&&(_0x4423ea['start']['isEqual'](_0x1b6cf1['end'])||_0x4423ea['end']['isEqual'](_0x1b6cf1['start'])))return!0x0;}if(0x3==_0x29565e&&0x3==_0x2ef2be&&_0x4423ea['start']['isBefore'](_0x1b6cf1['start'])){const _0x45edd9=_0x4423ea['end']['nodeAfter'],_0x5a9287=_0x1b6cf1['start']['nodeBefore'];return _0x1f83bc['isBlockImage'](_0x45edd9)&&_0x45edd9===_0x5a9287;}return!0x1;}function _0x4df5f1(_0x3f8cc9,_0x2b6082){return _0x52d333(_0x3f8cc9,_0x2b6082)?[_0x3f8cc9,_0x2b6082]:_0x52d333(_0x2b6082,_0x3f8cc9)?[_0x2b6082,_0x3f8cc9]:null;}_0x4ae709['plugins']['has']('ImageResize')&&(_0x3b6776['enableDefaultAttributesIntegration']('resizeImage'),_0x3b6776['registerBlockAttribute']('resizedWidth'),_0x3b6776['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x40e7a2,'FORMAT_IMAGE_SIZE'))),_0x4ae709['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3b6776['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3b6776['registerBlockAttribute']('alt')),_0x3b6776['descriptionFactory']['registerDescriptionCallback'](_0x2013ea=>{if(!!_0x42486c['find'](({type:_0x3d7848,subType:_0x41ae0c})=>_0x2013ea['type']==_0x3d7848&&_0x2013ea['subType']==_0x41ae0c))return _0x2013ea['previous']?{}:void 0x0;}),_0x3b6776['descriptionFactory']['registerDescriptionCallback'](_0x2f2bb5=>{if('insertion'==_0x2f2bb5['type']||'deletion'==_0x2f2bb5['type']){const _0xa02338=_0x2f2bb5['getContainedElement']();if(_0xa02338&&_0xa02338['is']('element','caption'))return{'type':'insertion'==_0x2f2bb5['type']?'addObject':'removeObject','element':_0xa02338,'quantity':0x1};}}),_0x3b6776['descriptionFactory']['registerDescriptionCallback'](_0x1461e3=>'formatBlock'==_0x1461e3['type']&&'convertInlineImageToBlock'==_0x1461e3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1461e3['type']&&'convertBlockImageToInline'==_0x1461e3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3b6776['descriptionFactory']['registerDescriptionCallback'](_0x2474dc=>{if('attribute'!=_0x2474dc['type'])return;const {data:_0x3be365}=_0x2474dc;if(!_0x3be365||'alt'!=_0x3be365['key'])return;const _0x348910=_0x3be365['newValue'];return _0x348910?{'type':'format','content':o(_0x40e7a2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x348910+'\x22')}:{'type':'format','content':o(_0x40e7a2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532a3e=this['editor'],_0x4b7632=_0x532a3e['locale'];_0x532a3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e90aa=>{if('formatBlock'!=_0x1e90aa['type']&&'formatInline'!=_0x1e90aa['type'])return;const {data:_0xc4f1a2}=_0x1e90aa;if(_0xc4f1a2){if('imageTextAlternative'==_0xc4f1a2['commandName']){const _0x3f571a=_0xc4f1a2['commandParams'][0x0]['newValue'];return _0x3f571a?{'type':'format','content':o(_0x4b7632,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3f571a+'\x22')}:{'type':'format','content':o(_0x4b7632,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xc4f1a2['commandName']){const _0xa7e0bf=_0xc4f1a2['commandParams'][0x0]['width'];return _0xa7e0bf?{'type':'format','content':o(_0x4b7632,'*Set\x20image\x20width:*\x20%0',_0xa7e0bf)}:{'type':'format','content':o(_0x4b7632,'*Reset\x20image\x20width*')};}}});}}class st extends _0x5552f2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x37c2f8=this['editor']['locale'],_0x3a009b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a009b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3a009b['registerBlockAttribute']('src'),_0x3a009b['descriptionFactory']['registerDescriptionCallback'](_0x4efeab=>{if('attribute'!=_0x4efeab['type'])return;const {data:_0x4e552d}=_0x4efeab;return _0x4e552d&&'src'==_0x4e552d['key']?_0x4e552d['newValue']&&_0x4e552d['oldValue']?{'type':'format','content':o(_0x37c2f8,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5825cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5825cd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5825cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5825cd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5825cd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3814df=this['editor'],_0x1d2778=_0x3814df['locale'];_0x3814df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5231ad=>{if('formatBlock'!=_0x5231ad['type']&&'formatInline'!=_0x5231ad['type'])return;const {data:_0x2ad77d}=_0x5231ad;if(!_0x2ad77d||'replaceImageSource'!=_0x2ad77d['commandName'])return;return{'type':'format','content':o(_0x1d2778,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x5552f2{['afterInit'](){const _0x519c8d=this['editor'];if(!_0x519c8d['plugins']['has']('ImageStyleEditing'))return;const _0x1fa309=_0x519c8d['plugins']['get']('TrackChangesEditing'),_0x208aa8=_0x519c8d['plugins']['get']('ImageUtils'),_0x55c46f={};_0x1fa309['enableCommand']('imageStyle',(_0x43fbfc,_0x1bd942)=>{const _0x5e8764=_0x519c8d['plugins']['get']('Users')['me'],_0x101baa=_0x519c8d['commands']['get']('imageStyle');let _0x5d9db5=_0x208aa8['getClosestSelectedImageElement'](_0x519c8d['model']['document']['selection']),_0x440194=_0x519c8d['model']['createRangeOn'](_0x5d9db5),_0xe94763=_0x101baa['value'];if(_0xe94763==_0x1bd942['value'])return;const _0x2cc0e2={'commandName':'imageStyle','commandParams':[_0x1bd942],'formatGroupId':_0x56bbb0()};_0x519c8d['model']['change'](()=>{if(_0x1fa309['getSuggestions']()['filter'](_0x537341=>_0x537341['isInContent']&&_0x5e8764==_0x537341['author']&&('formatBlock'==_0x537341['type']||'formatInline'==_0x537341['type'])&&('imageStylePreApply'==_0x537341['subType']||'imageStylePostApply'==_0x537341['subType'])&&_0x537341['getFirstRange']()['isEqual'](_0x440194))['forEach'](_0x5dc573=>_0x1fa309['discardSuggestion'](_0x5dc573['head'])),_0x5d9db5=_0x208aa8['getClosestSelectedImageElement'](_0x519c8d['model']['document']['selection']),_0x440194=_0x519c8d['model']['createRangeOn'](_0x5d9db5),_0x101baa['refresh'](),_0x519c8d['commands']['get']('imageTypeInline')['refresh'](),_0x519c8d['commands']['get']('imageTypeBlock')['refresh'](),_0xe94763=_0x101baa['value'],_0xe94763!=_0x1bd942['value'])return _0x208aa8['isInlineImage'](_0x5d9db5)&&_0x101baa['shouldConvertImageType'](_0x1bd942['value'],_0x5d9db5)?(_0x43fbfc({..._0x1bd942,'setImageSizes':!0x1}),_0x5d9db5=_0x208aa8['getClosestSelectedImageElement'](_0x519c8d['model']['document']['selection']),void _0x1fa309['markBlockFormat'](_0x5d9db5,{..._0x2cc0e2,'commandReversedParams':[{'value':_0xe94763||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x208aa8['isBlockImage'](_0x5d9db5)?_0x1fa309['markBlockFormat'](_0x5d9db5,_0x2cc0e2,[],'imageStylePostApply'):_0x1fa309['markInlineFormat'](_0x440194,_0x2cc0e2,'imageStylePostApply'));});});for(const _0xfe5453 of _0x519c8d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x55c46f[_0xfe5453['name']]=_0xfe5453['title']['toLowerCase']();_0x1fa309['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1fa309['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1fa309['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1fa309['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x36abc1])=>{_0x208aa8['setImageNaturalSizeAttributes'](_0x36abc1['getContainedElement']());}),_0x1fa309['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x570b56,_0x50bf50)=>{_0x1fa309['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x570b56,{'commandName':_0x50bf50['commandName'],'commandParams':_0x50bf50['commandReversedParams']});}),_0x1fa309['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x417b81,_0x23b9b2){if(_0xa0a7f2(_0x417b81,_0x23b9b2))return[_0x417b81,_0x23b9b2];if(_0xa0a7f2(_0x23b9b2,_0x417b81))return[_0x23b9b2,_0x417b81];return null;});const _0x43e644=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xa0a7f2(_0x30bcfe,_0x53549b){const _0x418369=_0x43e644['findIndex'](({type:_0x105313,subType:_0x89de46})=>_0x30bcfe['type']==_0x105313&&_0x30bcfe['subType']==_0x89de46),_0x209f68=_0x43e644['findIndex'](({type:_0x38cecb,subType:_0x9a7471})=>_0x53549b['type']==_0x38cecb&&_0x53549b['subType']==_0x9a7471);if(_0x418369<0x0||_0x209f68<0x0)return!0x1;const _0x128fed=_0x30bcfe['getFirstRange'](),_0x32058c=_0x53549b['getFirstRange']();if((0x0==_0x418369||0x1==_0x418369)&&0x2==_0x209f68&&_0x128fed['isIntersecting'](_0x32058c))return!0x0;if(0x2==_0x418369&&0x3==_0x209f68){const _0x4c9ad2=_0x1fa309['_findSuggestions'](_0x128fed,'insertion')['filter'](({suggestion:_0x2261f1,meta:_0x2676ba})=>_0x2676ba['isOwn']&&'convertInlineImageToBlock'==_0x2261f1['subType']);if(_0x4c9ad2['length']>0x1&&_0x32058c['end']['isEqual'](_0x128fed['start']))return!0x0;if(0x1==_0x4c9ad2['length']&&(_0x128fed['start']['isEqual'](_0x32058c['end'])||_0x128fed['end']['isEqual'](_0x32058c['start'])))return!0x0;}if(0x3==_0x418369&&0x3==_0x209f68&&_0x128fed['start']['isBefore'](_0x32058c['start'])){const _0x3d02e5=_0x128fed['end']['nodeAfter'],_0x2c909d=_0x32058c['start']['nodeBefore'];return _0x208aa8['isBlockImage'](_0x3d02e5)&&_0x3d02e5===_0x2c909d;}return!0x1;}_0x519c8d['model']['document']['registerPostFixer'](()=>{let _0x1bb597=!0x1;const _0x336111=Array['from'](_0x519c8d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4cf423,data:_0x4165ce}of _0x336111){const {group:_0x12f145,type:_0x8d245b,subType:_0x11985c,id:_0x1d0217}=_0x1fa309['_splitMarkerName'](_0x4cf423);if('suggestion'==_0x12f145&&_0x1fa309['hasSuggestion'](_0x1d0217)){if('formatBlock'==_0x8d245b&&('imageStylePreApply'==_0x11985c||'imageStylePostApply'==_0x11985c)){const _0x5ac3a9=_0x1fa309['getSuggestion'](_0x1d0217);if(_0x4165ce['newRange']){const _0x87bd4c=_0x5ac3a9['getFirstRange']()['getContainedElement']();if(_0x208aa8['isBlockImage'](_0x87bd4c))continue;_0x1fa309['discardSuggestion'](_0x5ac3a9),_0x1bb597=!0x0;}}if('insertion'==_0x8d245b&&'imageCaption'==_0x11985c&&!_0x4165ce['newRange']){const _0x18e43f=_0x1fa309['getSuggestion'](_0x1d0217);_0x18e43f['next']&&_0x18e43f['next']['isInContent']&&(_0x1fa309['discardSuggestion'](_0x18e43f['next']),_0x1bb597=!0x0);}}}return _0x1bb597;}),this['_registerLegacyDescription'](_0x55c46f);}['_registerLegacyDescription'](_0x24cb9f){const _0x4a7056=this['editor'],_0x3283f4=_0x4a7056['locale'];_0x4a7056['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ca35a=>{if('formatBlock'!=_0x1ca35a['type']&&'formatInline'!=_0x1ca35a['type'])return;const {data:_0x17197f}=_0x1ca35a;if(!_0x17197f||'imageStyle'!=_0x17197f['commandName'])return;const _0x3e9b67=_0x17197f['commandParams'][0x0]['value'];return _0x52f178('side'===_0x3e9b67?o(_0x3283f4,'FORMAT_SIDE_IMAGE'):_0x24cb9f[_0x3e9b67]||_0x3e9b67);function _0x52f178(_0xf4495a){return{'type':'format','content':o(_0x3283f4,'*Format:*\x20%0',_0xf4495a)};}});}}class ot extends _0x5552f2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5c57f3){super(_0x5c57f3),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4aba0c=this['editor'],_0x4d9027=_0x4aba0c['commands']['get']('importWord'),_0x7b2181=_0x4aba0c['commands']['get']('trackChanges');_0x4d9027&&(_0x4d9027['on']('execute',(_0x1b0253,[,_0x34d299])=>{this['_trackChangesValueDuringImport']=_0x7b2181['value'],_0x34d299['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4d9027,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4d9027,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x7b2181['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4aba0c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x12520c,_0x4e3cb1){const {suggestions:_0x98bdcf}=_0x4e3cb1,_0x3357f4=this['editor']['commands']['get']('trackChanges'),_0x2a8e02=_0x3357f4['value'];this['_trackChangesValueDuringImport']!==_0x2a8e02&&(_0x3357f4['execute'](),this['_trackChangesExecuted']=!0x0),_0x98bdcf&&_0x98bdcf['forEach'](({id:_0x415a62,type:_0x6308e3,author:_0x2b0145,created_at:_0x8ff14b})=>{const _0x3e9348={'id':_0x415a62,'type':_0x6308e3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2b0145,'createdAt':_0x8ff14b?new Date(_0x8ff14b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3e9348);});}}class rt extends _0x5552f2{['afterInit'](){const _0x5ce1c9=this['editor'],_0x1ea476=_0x5ce1c9['plugins']['get']('TrackChangesEditing');if(_0x5ce1c9['plugins']['has']('IndentEditing')&&(_0x1ea476['enableCommand']('indent'),_0x1ea476['enableCommand']('outdent')),_0x5ce1c9['plugins']['has']('IndentBlock')){for(const _0x35916f of['indentBlock','outdentBlock'])_0x1ea476['enableDefaultAttributesIntegration'](_0x35916f);}const _0x343a7a=_0x5ce1c9['locale'];_0x1ea476['registerBlockAttribute']('blockIndent'),_0x1ea476['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x343a7a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe6b8be=this['editor'],_0x45f9a3=_0xe6b8be['locale'],_0x157830=_0xe6b8be['plugins']['get']('TrackChangesEditing');_0x157830['descriptionFactory']['registerDescriptionCallback'](_0x47909d=>{if('formatBlock'!=_0x47909d['type'])return;const {data:_0x1f7a09}=_0x47909d;if(!_0x1f7a09)return;if('indentBlock'!=_0x1f7a09['commandName']&&'outdentBlock'!=_0x1f7a09['commandName'])return;const _0x21dc0f=_0x47909d['getItems']()[0x0],_0x1fcef3=_0x157830['descriptionFactory']['getItemLabel'](_0x21dc0f);return'indentBlock'==_0x1f7a09['commandName']?{'type':'format','content':o(_0x45f9a3,'*Indent:*\x20%0',_0x1fcef3)}:'outdentBlock'==_0x1f7a09['commandName']?{'type':'format','content':o(_0x45f9a3,'*Outdent:*\x20%0',_0x1fcef3)}:void 0x0;});}}class at extends _0x5552f2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x5552f2{['afterInit'](){const _0x8a8e25=this['editor'];if(!_0x8a8e25['plugins']['has']('LinkEditing'))return;const _0x30b0ba=_0x8a8e25['plugins']['get']('TrackChangesEditing'),_0x2e2837=_0x8a8e25['commands']['get']('link');_0x30b0ba['enableDefaultAttributesIntegration']('link'),_0x30b0ba['enableDefaultAttributesIntegration']('unlink'),_0x30b0ba['registerInlineAttribute']('linkHref');for(const _0x176957 of _0x2e2837['manualDecorators'])_0x30b0ba['registerInlineAttribute'](_0x176957['id']),_0x30b0ba['descriptionFactory']['registerAttributeLabel'](_0x176957['id'],'link\x20('+_0x176957['label']['toLowerCase']()+')');_0x30b0ba['descriptionFactory']['registerDescriptionCallback'](_0x50eb18=>{if('attribute'!=_0x50eb18['type'])return;const {data:_0x1df63d}=_0x50eb18;if(!_0x1df63d||'linkHref'!=_0x1df63d['key'])return;const _0x1871dd=_0x1df63d['newValue'],_0x1f8b5e=_0x8a8e25['locale'];return{'type':'format','content':null==_0x1871dd?o(_0x1f8b5e,'*Remove\x20link*'):o(_0x1f8b5e,'*Set\x20link:*\x20%0','\x22'+_0x1871dd+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x177218=this['editor'],_0x51eb05=_0x177218['locale'];_0x177218['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e9df2=>{if('formatInline'!=_0x2e9df2['type'])return;const {data:_0x6b80a9}=_0x2e9df2;if(_0x6b80a9){if('link'==_0x6b80a9['commandName']){const _0xc5c643=_0x6b80a9['commandParams'][0x0];return{'type':'format','content':o(_0x51eb05,'*Set\x20link:*\x20%0','\x22'+_0xc5c643+'\x22')};}return'unlink'==_0x6b80a9['commandName']?{'type':'format','content':o(_0x51eb05,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x5552f2{['afterInit'](){const _0x4add7d=this['editor'],_0x472899=_0x4add7d['locale'];if(!_0x4add7d['plugins']['has']('LegacyListEditing'))return;const _0x70dc09=_0x4add7d['plugins']['get']('TrackChangesEditing'),_0x526755=_0x4add7d['plugins']['has']('LegacyTodoListEditing');function _0x5017db(_0x3f6065){return()=>{const _0x25b1bf=_0x4add7d['model']['document']['selection'],_0x31a8d2=_0x4add7d['commands']['get'](_0x3f6065);if(_0x31a8d2['value'])return void _0x4add7d['execute']('paragraph',{});const _0x56d101=_0x3f6065['slice'](0x0,-0x4),_0x597d02=function(_0x2a0acc,_0x1c9e2e,_0x553dae){let _0x24cff5=Array['from'](_0x2a0acc)['filter'](_0x2e0aa7=>function(_0x310a87,_0x155867){return _0x155867['checkChild'](_0x310a87['parent'],'listItem')&&!_0x155867['isObject'](_0x310a87);}(_0x2e0aa7,_0x553dae));_0x24cff5=_0x24cff5['filter'](_0x4c6e54=>!_0x4c6e54['is']('element','listItem')||_0x4c6e54['getAttribute']('listType')!=_0x1c9e2e);const _0x311c12=new Set();for(const _0x1f96ce of _0x24cff5)_0x1f96ce['is']('element','listItem')?_0x311c12['add'](me(_0x1f96ce)):_0x311c12['add'](_0x1f96ce);return Array['from'](_0x311c12);}(_0x25b1bf['getSelectedBlocks'](),_0x56d101,_0x4add7d['model']['schema']);_0x4add7d['model']['change'](()=>{for(const _0x5a78ec of _0x597d02)_0x70dc09['markBlockFormat'](_0x5a78ec,{'commandName':_0x3f6065,'commandParams':[{'forceValue':!_0x31a8d2['value']}],'formatGroupId':'blockName'},fe(_0x5a78ec));});};}function _0x24cf71(_0x3b3847){return()=>{const _0x4b4b28=function(_0x373e46){let _0x2bf45d=Array['from'](_0x373e46);const _0x4b092c=_0x2bf45d['findIndex'](_0x9ef525=>'listItem'!=_0x9ef525['name']);return _0x4b092c>-0x1&&(_0x2bf45d=_0x2bf45d['slice'](0x0,_0x4b092c)),_0x2bf45d;}(_0x4add7d['model']['document']['selection']['getSelectedBlocks']()),_0x39e38f=_0x4add7d['model']['createRange'](_0x4add7d['model']['createPositionAt'](_0x4b4b28[0x0],'before'),_0x4add7d['model']['createPositionAt'](_0x4b4b28[_0x4b4b28['length']-0x1],'end'));_0x4add7d['model']['change'](()=>{_0x70dc09['markBlockFormat'](_0x39e38f,{'commandName':_0x3b3847,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5b0223){const _0xd85b44=new Set();for(const _0x17ab1c of _0x5b0223){let _0x3b53c0=_0x17ab1c['nextSibling'];for(;_0x3b53c0&&_0x3b53c0['getAttribute']('listIndent')>_0x17ab1c['getAttribute']('listIndent');)_0xd85b44['add'](_0x3b53c0),_0x3b53c0=_0x3b53c0['nextSibling'];}return Array['from'](_0xd85b44);}(_0x4b4b28));});};}_0x70dc09['enableCommand']('numberedList',_0x5017db('numberedList')),_0x70dc09['enableCommand']('bulletedList',_0x5017db('bulletedList')),_0x526755&&_0x70dc09['enableCommand']('todoList',_0x5017db('todoList')),_0x70dc09['enableCommand']('indentList',_0x24cf71('indentList')),_0x70dc09['enableCommand']('outdentList',_0x24cf71('outdentList')),_0x526755&&_0x70dc09['enableCommand']('checkTodoList',()=>{const _0xef234f=_0x4add7d['commands']['get']('checkTodoList'),_0x15f7ff=Array['from'](_0xef234f['_selectedElements']);_0x15f7ff['filter'](_0xb83f0f=>_0xb83f0f['getAttribute']('todoListChecked')!=_0xef234f['value']),_0x4add7d['model']['change'](()=>{for(const _0x567813 of _0x15f7ff)_0x70dc09['markBlockFormat'](_0x567813,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xef234f['value']}]});});}),_0x70dc09['descriptionFactory']['registerElementLabel']('listItem',_0x54751f=>o(_0x472899,'ELEMENT_LIST_ITEM',_0x54751f)),_0x70dc09['descriptionFactory']['registerDescriptionCallback'](_0x1992fc=>{if('formatBlock'!=_0x1992fc['type']&&'formatInline'!=_0x1992fc['type'])return;const {data:_0x9b8e95}=_0x1992fc;if(_0x9b8e95){if('numberedList'==_0x9b8e95['commandName']||'bulletedList'==_0x9b8e95['commandName']||'todoList'==_0x9b8e95['commandName'])switch(_0x9b8e95['commandName']['replace']('List','')){case'bulleted':return _0xb69bb(o(_0x472899,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xb69bb(o(_0x472899,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xb69bb(o(_0x472899,'ELEMENT_TODO_LIST'));}if('indentList'==_0x9b8e95['commandName'])return{'type':'format','content':o(_0x472899,'*Indent:*\x20%0',o(_0x472899,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x9b8e95['commandName'])return{'type':'format','content':o(_0x472899,'*Outdent:*\x20%0',o(_0x472899,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x9b8e95['commandName'])return _0x9b8e95['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x472899,'*Check\x20item*')}:{'type':'format','content':o(_0x472899,'*Uncheck\x20item*')};}function _0xb69bb(_0x7d527f){return{'type':'format','content':o(_0x472899,'*Change\x20to:*\x20%0',_0x7d527f)};}});}}function me(_0x255eef){const _0x1481d8=_0x255eef['getAttribute']('listIndent');if(0x0==_0x1481d8)return _0x255eef;let _0x519096=_0x255eef;for(;_0x255eef['previousSibling']&&_0x255eef['previousSibling']['is']('element','listItem');){const _0x1e6ab8=_0x255eef['previousSibling']['getAttribute']('listIndent');if(_0x1e6ab8==_0x1481d8)_0x519096=_0x255eef['previousSibling'];else{if(_0x1e6ab8<_0x1481d8)break;}_0x255eef=_0x255eef['previousSibling'];}return _0x519096;}function fe(_0x4a00f5){const _0x12e113=[];if(_0x4a00f5['is']('element','listItem')&&_0x4a00f5['getAttribute']('listIndent')>0x0){let _0x3b63d3=_0x4a00f5['nextSibling'];for(;_0x3b63d3&&'listItem'==_0x3b63d3['name']&&_0x3b63d3['getAttribute']('listIndent')==_0x4a00f5['getAttribute']('listIndent');)_0x12e113['push'](_0x3b63d3),_0x3b63d3=_0x3b63d3['nextSibling'];}return _0x12e113;}class K extends _0x5552f2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x258df6=this['editor']['config']['get']('list.properties'),_0xf6f261=this['editor']['plugins']['get']('TrackChangesEditing');_0x258df6['styles']&&_0xf6f261['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x258df6['reversed']&&_0xf6f261['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x258df6['startIndex']&&_0xf6f261['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xf6f261['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4215e9,_0x31489f={}){const _0x421bd8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45a3fc=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x421bd8['markMultiRangeBlockFormat'](_0x45a3fc,{'commandName':'listStyle','commandParams':[{'type':_0x31489f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x353025,_0x130ba7={}){const _0xef1cf7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x470b81=this['_getSuggestionBlocks'](_0x14d79d=>_0x14d79d['is']('element','listItem')&&'numbered'===_0x14d79d['getAttribute']('listType'));if(_0x470b81['length']<0x1)return;const _0xc60723=_0x470b81['map'](_0x21b298=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x21b298,'before'),this['editor']['model']['createPositionAt'](_0x21b298,0x0)));this['editor']['model']['change'](()=>{_0xef1cf7['markMultiRangeBlockFormat'](_0xc60723,{'commandName':'listReversed','commandParams':[{'reversed':_0x130ba7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x16ef12,_0xbb1593={}){const _0x43bf8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x376211=this['_getSuggestionBlocks'](_0x2a79b7=>_0x2a79b7['is']('element','listItem')&&'numbered'===_0x2a79b7['getAttribute']('listType'));if(_0x376211['length']<0x1)return;const _0x56ddaa=_0x376211['map'](_0x3ae33d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3ae33d,'before'),this['editor']['model']['createPositionAt'](_0x3ae33d,0x0)));this['editor']['model']['change'](()=>{_0x43bf8a['markMultiRangeBlockFormat'](_0x56ddaa,{'commandName':'listStart','commandParams':[{'startIndex':_0xbb1593['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xa4e6fb){if('formatBlock'!=_0xa4e6fb['type']&&'formatInline'!=_0xa4e6fb['type'])return;const _0x208068=this['editor']['locale'],{data:_0x170c6c}=_0xa4e6fb;if(!_0x170c6c)return;let _0x36e2c0,_0x13ea5f;switch(_0x170c6c['commandName']){case'listStyle':_0x36e2c0='*Change\x20to:*\x20%0',_0x13ea5f={'type':'format','content':o(_0x208068,_0x36e2c0,o(_0x208068,this['_getTranslationKeyForListStyle'](_0x170c6c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36e2c0=_0x170c6c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x13ea5f={'type':'format','content':o(_0x208068,_0x36e2c0)};break;case'listStart':_0x36e2c0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x13ea5f={'type':'format','content':o(_0x208068,_0x36e2c0,_0x170c6c['commandParams'][0x0]['startIndex'])};}return _0x13ea5f;}['_getSuggestionBlocksForListStyle'](){const _0x44695d=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e272a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3e272a[0x0]?.['is']('element','listItem')&&_0x3e272a['unshift'](..._0x44695d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3e272a[_0x3e272a['length']-0x1]?.['is']('element','listItem')&&_0x3e272a['push'](..._0x44695d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3e272a=[...new Set(_0x3e272a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3e272a=_0x3e272a['filter'](_0x97460c=>_0x97460c['is']('element','listItem'))),_0x3e272a;}['_getSuggestionBlocks'](_0x439d8d){const _0x1c2202=this['editor']['plugins']['get']('LegacyListUtils');let _0x108f7a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x439d8d)['map'](_0x2e4abd=>{const _0x3b5116=this['editor']['model']['createPositionAt'](_0x2e4abd,0x0);return[..._0x1c2202['getSiblingNodes'](_0x3b5116,'backward'),..._0x1c2202['getSiblingNodes'](_0x3b5116,'forward')];})['flat']();return _0x108f7a=[...new Set(_0x108f7a)],_0x108f7a;}['_getTranslationKeyForListStyle'](_0x377940){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x377940)||'default')['toUpperCase']()+'_LIST_'+_0x377940['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x5552f2{['afterInit'](){const _0x585b39=this['editor'];if(!_0x585b39['plugins']['has']('MediaEmbedEditing'))return;const _0x5cde50=_0x585b39['plugins']['get']('TrackChangesEditing'),_0x5f2e2a=_0x585b39['locale'];_0x5cde50['enableCommand']('mediaEmbed'),_0x5cde50['descriptionFactory']['registerElementLabel']('media',_0x364c6f=>o(_0x5f2e2a,'ELEMENT_MEDIA',_0x364c6f)),_0x585b39['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5af753,{writer:_0x3d82df,options:_0x19d844})=>{if(_0x19d844['showSuggestionHighlights'])return _0x3d82df['createEmptyElement']('div');},'converterPriority':'high'}),_0x585b39['data']['downcastDispatcher']['on']('attribute:url:media',(_0x43090e,_0x1baa7d,_0xe79692)=>{_0xe79692['options']['showSuggestionHighlights']&&_0x43090e['stop']();},{'priority':'high'});}}class gt extends _0x5552f2{['afterInit'](){const _0x9ad1f=this['editor'];_0x9ad1f['plugins']['has']('MentionEditing')&&_0x9ad1f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x5552f2{['afterInit'](){const _0x123279=this['editor'],_0x50769e=_0x123279['plugins']['get']('TrackChangesEditing');_0x123279['plugins']['has']('MultiLevelList')&&(_0x50769e['enableDefaultAttributesIntegration']('multiLevelList'),_0x50769e['registerBlockAttribute']('listMarkerStyle'),_0x50769e['descriptionFactory']['registerDescriptionCallback'](_0xd7fe3c=>this['handleDescriptions'](_0xd7fe3c)));}['handleDescriptions'](_0x5d1514){const _0x195373=this['editor']['locale'],{data:_0x212ba7}=_0x5d1514,_0x240f22={'type':'format','content':''};if(_0x212ba7&&'listMarkerStyle'==_0x212ba7['key']){if(!_0x212ba7['oldValue'])return{'type':'format','content':o(_0x195373,'*Set\x20format:*\x20%0',o(_0x195373,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x212ba7['newValue']+')'};if(!_0x212ba7['newValue']){let _0x3b2998=_0x5d1514['head'];for(;_0x3b2998;){if(_0x3b2998['data']&&'listType'==_0x3b2998['data']['key']&&_0x3b2998['data']['newValue'])return _0x240f22;_0x3b2998=_0x3b2998['next'];}return{'type':'format','content':o(_0x195373,'*Remove\x20format:*\x20%0',o(_0x195373,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x212ba7['oldValue']+')'};}}}}class mt extends _0x5552f2{['afterInit'](){const _0x240944=this['editor'];if(!_0x240944['plugins']['has']('PageBreakEditing'))return;_0x240944['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x14e8a3=_0x240944['plugins']['get']('TrackChangesEditing'),_0x203faa=_0x240944['locale'];_0x14e8a3['descriptionFactory']['registerElementLabel']('pageBreak',_0x425bbc=>o(_0x203faa,'ELEMENT_PAGE_BREAK',_0x425bbc));}}class dt extends _0x5552f2{['afterInit'](){const _0x5775da=this['editor'];if(!_0x5775da['plugins']['has']('Paragraph'))return;const _0x364116=_0x5775da['locale'],_0x1af445=_0x5775da['plugins']['get']('TrackChangesEditing');_0x1af445['descriptionFactory']['registerElementLabel']('paragraph',_0x4259f2=>o(_0x364116,'ELEMENT_PARAGRAPH',_0x4259f2)),_0x1af445['enableDefaultAttributesIntegration']('paragraph'),_0x1af445['enableCommand']('insertParagraph'),_0x5775da['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5775da),{'priority':'highest'}),_0x5775da['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b1d25,_0x34f819,_0x6c1060)=>{_0x6c1060['options']['showSuggestionHighlights']&&nr(_0x5775da,{'showActiveMarker':!0x1})(_0x2b1d25,_0x34f819,_0x6c1060);},{'priority':'highest'});const _0x5128a3=_0x1af445['descriptionFactory'];_0x5128a3['registerDescriptionCallback'](_0x288912=>{if('insertion'!==_0x288912['type'])return;const {start:_0x1300cb,end:_0x479399}=_0x288912['getFirstRange']();if(!_0x1300cb['isTouching'](_0x479399)||!_0x1300cb['nodeAfter'])return;const _0x52fb45=_0x5775da['model']['schema'],_0x2b1261=_0x1300cb['nodeAfter'];return _0x52fb45['isBlock'](_0x2b1261)&&!_0x52fb45['isLimit'](_0x2b1261)&&_0x52fb45['checkChild'](_0x2b1261,'$text')?{'type':'insertion','content':o(_0x364116,'*Insert:*\x20%0',_0x5128a3['getItemLabel'](_0x2b1261,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d7d29=this['editor'],_0x9eaeec=_0x3d7d29['locale'];_0x3d7d29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33af59=>{if('formatBlock'!=_0x33af59['type'])return;const {data:_0x18d520}=_0x33af59;return _0x18d520&&'paragraph'==_0x18d520['commandName']?{'type':'format','content':o(_0x9eaeec,'*Change\x20to:*\x20%0',o(_0x9eaeec,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x431fa8,{showActiveMarker:_0x22db0a=!0x0}={}){return(_0x47f802,_0x5b20c3,_0x4c9f33)=>{const _0x2b3b4c=_0x431fa8['plugins']['get']('TrackChangesEditing'),_0x476fe8=_0x5b20c3['markerRange']['start'],_0xaa4434=_0x5b20c3['markerRange']['end'],_0x117a63=_0x431fa8['model']['schema'];if(!_0x476fe8['isTouching'](_0xaa4434)||!_0x476fe8['nodeAfter'])return;const _0x3a0266=_0x476fe8['nodeAfter'];if(_0x117a63['isBlock'](_0x3a0266)&&!_0x117a63['isLimit'](_0x3a0266)&&_0x117a63['checkChild'](_0x3a0266,'$text')){if(!_0x4c9f33['consumable']['consume'](_0x5b20c3['markerRange'],_0x47f802['name']))return;const _0x18be37=_0x4c9f33['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5783a4=_0x4c9f33['mapper']['toViewPosition'](_0xaa4434);_0x22db0a&&_0x2b3b4c['activeMarkers']['includes'](_0x5b20c3['markerName'])&&_0x4c9f33['writer']['addClass']('ck-suggestion-marker--active',_0x18be37),_0x4c9f33['writer']['insert'](_0x5783a4,_0x18be37),_0x4c9f33['mapper']['bindElementToMarker'](_0x18be37,_0x5b20c3['markerName']);}};}class pt extends _0x5552f2{['afterInit'](){const _0x5c2d04=this['editor'];if(!_0x5c2d04['plugins']['has']('RemoveFormatEditing'))return;_0x5c2d04['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2733ae=this['editor'];_0x2733ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x402dfa=>{if('formatBlock'!=_0x402dfa['type']&&'formatInline'!=_0x402dfa['type'])return;const {data:_0x34b12d}=_0x402dfa;return _0x34b12d&&'removeFormat'==_0x34b12d['commandName']?{'type':'format','content':o(_0x2733ae['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x5552f2{['afterInit'](){const _0x3f9538=this['editor'];if(!_0x3f9538['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x417407=_0x3f9538['plugins']['get']('TrackChangesEditing');_0x417407['enableCommand']('goToPreviousRestrictedEditingException'),_0x417407['enableCommand']('goToNextRestrictedEditingException');const _0x3b657d=_0x3f9538['plugins']['get']('RestrictedEditingModeEditing');_0x3b657d['enableCommand']('trackChanges'),_0x3b657d['enableCommand']('acceptSuggestion'),_0x3b657d['enableCommand']('discardSuggestion'),_0x3b657d['enableCommand']('acceptAllSuggestions'),_0x3b657d['enableCommand']('discardAllSuggestions'),_0x3b657d['enableCommand']('acceptSelectedSuggestions'),_0x3b657d['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x5552f2{static get['requires'](){return[_0x294218];}['init'](){const _0x938e2c=this['editor'],_0x42772f=_0x938e2c['plugins']['get']('TrackChangesEditing');_0x42772f['enableCommand']('shiftEnter'),_0x938e2c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x938e2c),{'priority':'high'}),_0x938e2c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x938e2c),{'priority':'high'}),_0x938e2c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x106917,_0x529a7e,_0x54c058)=>{_0x54c058['options']['showSuggestionHighlights']&&de(_0x938e2c,{'showActiveMarker':!0x1})(_0x106917,_0x529a7e,_0x54c058);}),_0x42772f['descriptionFactory']['registerElementLabel']('softBreak',_0x1f1b11=>o(_0x938e2c['locale'],'ELEMENT_LINE_BREAK',_0x1f1b11));}}function de(_0x2c8403,{showActiveMarker:_0x23ae90=!0x0}={}){return(_0x48a1d3,_0x4516e4,_0x231d45)=>{const _0x259e80=_0x2c8403['plugins']['get']('TrackChangesEditing');if(!_0x231d45['consumable']['test'](_0x4516e4['markerRange'],_0x48a1d3['name']))return;const _0x13008b=_0x2c8403['model'];for(const _0x53112d of _0x4516e4['markerRange']['getItems']()){if(!_0x53112d['is']('element','softBreak'))continue;const _0x2afd35='deletion'==_0x4516e4['markerName']['split'](':')[0x1]?'merge':'split',_0x4e8f74=_0x231d45['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2afd35}),_0x10f5ad=_0x231d45['mapper']['toViewPosition'](_0x13008b['createPositionBefore'](_0x53112d));_0x23ae90&&_0x259e80['activeMarkers']['includes'](_0x4516e4['markerName'])&&_0x231d45['writer']['addClass']('ck-suggestion-marker--active',_0x4e8f74),_0x231d45['writer']['insert'](_0x10f5ad,_0x4e8f74),_0x231d45['mapper']['bindElementToMarker'](_0x4e8f74,_0x4516e4['markerName']);}};}class wt extends _0x5552f2{['afterInit'](){const _0x3c13a7=this['editor'],_0x123975=_0x3c13a7['model'],_0x2cc67a=_0x3c13a7['locale'];if(!_0x3c13a7['plugins']['has']('StandardEditingModeEditing'))return;const _0x5a4148=_0x3c13a7['plugins']['get']('TrackChangesEditing'),_0x3d6b96='restrictedEditingException',_0x2f9ca4=_0x3c13a7['commands']['get'](_0x3d6b96);_0x5a4148['enableCommand'](_0x3d6b96,(_0x31900a,_0x5a7d20={})=>{const _0x275ede=_0x123975['document']['selection'];if(_0x275ede['isCollapsed'])return void _0x31900a(_0x5a7d20);const _0x2a851f=void 0x0!==_0x5a7d20['forceValue']?_0x5a7d20['forceValue']:!_0x2f9ca4['value'];_0x123975['change'](()=>{const _0x35cd92=Array['from'](_0x275ede['getRanges']());for(const _0x4f205d of _0x35cd92){const _0x2a829e=_0x2a851f?[_0x4f205d]:io(_0x3d6b96,_0x4f205d,_0x123975);for(const _0x294b3a of _0x2a829e)_0x5a4148['markInlineFormat'](_0x294b3a,{'commandName':_0x3d6b96,'commandParams':[{'forceValue':_0x2a851f}]});}});}),_0x5a4148['descriptionFactory']['registerDescriptionCallback'](_0x3821d5=>{if('formatBlock'!=_0x3821d5['type']&&'formatInline'!=_0x3821d5['type'])return;const {data:_0x21a4d7}=_0x3821d5;return _0x21a4d7&&_0x21a4d7['commandName']==_0x3d6b96?_0x21a4d7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2cc67a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2cc67a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x5552f2{['afterInit'](){const _0x365f93=this['editor'];if(!_0x365f93['plugins']['has']('Style')||!_0x365f93['plugins']['has']('DataSchema'))return;const _0x1a6ace=_0x365f93['plugins']['get']('TrackChangesEditing'),_0x2f95f3=_0x365f93['locale'],_0x257bec=_0x365f93['config']['get']('style')||{},_0x4f08eb=_0x365f93['plugins']['get']('GeneralHtmlSupport'),_0x574f6a=_0x365f93['plugins']['get']('StyleUtils')['normalizeConfig'](_0x365f93['plugins']['get']('DataSchema'),_0x257bec['definitions']);_0x1a6ace['enableDefaultAttributesIntegration']('style');const _0x2a879e=new Set();for(const _0x14a951 of _0x574f6a['block']){const _0x5549e8=_0x4f08eb['getGhsAttributeNameForElement'](_0x14a951['element']);_0x2a879e['add'](_0x5549e8);}const _0x615a36=new Set();for(const _0x2ce382 of _0x574f6a['inline']){const _0x193e40=_0x4f08eb['getGhsAttributeNameForElement'](_0x2ce382['element']);_0x615a36['add'](_0x193e40);for(const _0x134e4e of _0x2ce382['ghsAttributes'])_0x615a36['add'](_0x134e4e);}for(const _0x5888ed of _0x2a879e)_0x1a6ace['registerBlockAttribute'](_0x5888ed),_0x1a6ace['descriptionFactory']['registerAttributeLabel'](_0x5888ed,o(_0x2f95f3,'FORMAT_STYLE'));for(const _0x15562b of _0x615a36)_0x1a6ace['registerInlineAttribute'](_0x15562b),_0x1a6ace['descriptionFactory']['registerAttributeLabel'](_0x15562b,o(_0x2f95f3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19b434=this['editor'],_0x52692b=_0x19b434['locale'];_0x19b434['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa81f90=>{if('formatBlock'!=_0xa81f90['type']&&'formatInline'!=_0xa81f90['type'])return;const {data:_0x54d0db}=_0xa81f90;return _0x54d0db&&'style'===_0x54d0db['commandName']?_0x54d0db['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52692b,'*Set\x20format:*\x20%0',_0x54d0db['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x52692b,'*Remove\x20format:*\x20%0',_0x54d0db['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x5552f2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3d01bf){super(_0x3d01bf),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2748ed=this['editor'],_0x2d6346=_0x2748ed['model']['document']['selection'];if(!_0x2748ed['plugins']['has']('TableEditing'))return;const _0x3cbb57=_0x2748ed['locale'],_0x322d7e=_0x2748ed['plugins']['get']('TrackChangesEditing'),_0x43571c=_0x2748ed['plugins']['get']('TableUtils');_0x322d7e['descriptionFactory']['registerElementLabel']('table',_0x37afe9=>o(_0x3cbb57,'ELEMENT_TABLE',_0x37afe9)),this['_setupColumnsRowsFixing'](),_0x322d7e['enableCommand']('insertTable'),_0x322d7e['enableCommand']('selectTableRow'),_0x322d7e['enableCommand']('selectTableColumn');for(const _0x381f5b of['insertTableRowAbove','insertTableRowBelow']){const _0x33f654=_0x2748ed['commands']['get'](_0x381f5b);_0x322d7e['enableCommand'](_0x381f5b,_0x33b670=>{_0x2748ed['model']['change'](_0x9b66eb=>{_0x33b670();const _0x4526de='above'===_0x33f654['order'],_0x1b3ce5=_0x43571c['getSelectionAffectedTableCells'](_0x2d6346),_0x5f2413=_0x43571c['getRowIndexes'](_0x1b3ce5),_0x49c2f0=_0x4526de?_0x5f2413['first']-0x1:_0x5f2413['last']+0x1,_0x463f84=_0x1b3ce5[0x0]['findAncestor']('table'),_0x4f462a=_0x43571c['createTableWalker'](_0x463f84,{'startRow':_0x49c2f0,'endRow':_0x49c2f0}),_0x574266=Array['from'](_0x4f462a)['map'](_0x16eab9=>_0x9b66eb['createRangeOn'](_0x16eab9['cell']));_0x322d7e['markMultiRangeInsertion'](_0x574266,'tableRow');});});}for(const _0x25d961 of['insertTableColumnLeft','insertTableColumnRight']){const _0x19bbb7=_0x2748ed['commands']['get'](_0x25d961);_0x322d7e['enableCommand'](_0x25d961,_0x545aba=>{_0x2748ed['model']['change'](_0x2d35d5=>{_0x545aba();const _0x3d9a92='left'===_0x19bbb7['order'],_0x152699=_0x43571c['getSelectionAffectedTableCells'](_0x2d6346),_0x3bed1a=_0x43571c['getColumnIndexes'](_0x152699),_0xaab702=_0x3d9a92?_0x3bed1a['first']-0x1:_0x3bed1a['last']+0x1,_0x48336e=_0x152699[0x0]['findAncestor']('table'),_0x2a8348=_0x43571c['createTableWalker'](_0x48336e,{'startRow':0x0,'column':_0xaab702,'includeAllSlots':!0x1}),_0x3cd7f1=Array['from'](_0x2a8348)['map'](_0x2835d5=>_0x2d35d5['createRangeOn'](_0x2835d5['cell']));_0x322d7e['markMultiRangeInsertion'](_0x3cd7f1,'tableColumn');});});}for(const _0x4b35c6 of['removeTableRow','removeTableColumn']){const _0x1b8e2c=_0x4b35c6['substr'](0xb),_0x28dd28=_0x1b8e2c['toLowerCase'](),_0x22f1e2=_0x28dd28['substr'](0x0,0x3)+'span',_0x5a7184='table'+_0x1b8e2c,_0x41039b='min'+_0x1b8e2c,_0x13e174='max'+_0x1b8e2c;_0x322d7e['enableCommand'](_0x4b35c6,()=>{_0x2748ed['model']['change'](_0x3ed149=>{const _0x2be2e0=_0x43571c['getSelectionAffectedTableCells'](_0x2d6346),_0xf5fcf6=_0x2be2e0[0x0]['findAncestor']('table');let _0x97361e;if('removeTableRow'==_0x4b35c6){const _0x11ac13=_0x43571c['getRowIndexes'](_0x2be2e0);_0x97361e={'startRow':_0x11ac13['first'],'endRow':_0x11ac13['last'],'includeAllSlots':!0x0};}else{const _0x32f308=_0x43571c['getColumnIndexes'](_0x2be2e0);_0x97361e={'startColumn':_0x32f308['first'],'endColumn':_0x32f308['last'],'includeAllSlots':!0x0};}const _0x592f80=_0x43571c['createTableWalker'](_0xf5fcf6,_0x97361e),_0x2c993a=Array['from'](_0x592f80)['map'](({cell:_0x535746})=>_0x535746),_0x4afd1f=Ee(_0x2c993a['filter'](_0x4bf70d=>_0x4bf70d['hasAttribute'](_0x22f1e2))),_0x435ce7=Ee(_0x2c993a['filter'](_0x2d557b=>!_0x2d557b['hasAttribute'](_0x22f1e2)))['map'](_0x40bb88=>_0x3ed149['createRangeOn'](_0x40bb88)),_0x476569=_0x322d7e['markMultiRangeDeletion'](_0x435ce7,_0x5a7184);if(_0x476569&&('tableRow'==_0x476569['subType']||'tableColumn'==_0x476569['subType'])){const _0x3cc1fc=this['_getSuggestionCoords'](_0x476569);for(const _0x25ee38 of _0x4afd1f){const _0x256071=_0x3ed149['createRangeOn'](_0x25ee38),_0x2a44fa=_0x43571c['getCellLocation'](_0x25ee38),_0x522537=_0x25ee38['getAttribute'](_0x22f1e2)-0x1,_0x33a912=_0x3cc1fc[_0x41039b],_0x479d33=_0x3cc1fc[_0x13e174];_0x33a912<=_0x2a44fa[_0x28dd28]&&_0x2a44fa[_0x28dd28]+_0x522537<=_0x479d33&&_0x476569['addRange'](_0x256071);}}});});}function _0x280e2a(_0x5d5c0a){const _0x51c578=Array['from'](_0x2d6346['getRanges']())['map'](_0x2af7d4=>_0x3c7933['fromRange'](_0x2af7d4));_0x2748ed['model']['change'](_0x5d5789=>{const _0x18dcdb=_0x5d5789['batch'];_0x5d5c0a=_0x5d5c0a['filter'](_0x35bcdf=>'$graveyard'!=_0x35bcdf['root']['rootName']),_0x5d5789['setSelection'](_0x5d5c0a),_0x2748ed['commands']['get']('removeTableRow')['refresh'](),_0x2748ed['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2748ed['model']['enqueueChange'](()=>{_0x2748ed['model']['enqueueChange'](_0x18dcdb,_0x439e53=>{const _0x52e4dd=_0x51c578['filter'](_0x2a66af=>'$graveyard'!=_0x2a66af['root']['rootName']);_0x52e4dd['length']>0x0&&_0x439e53['setSelection'](_0x52e4dd);for(const _0x1d4aaa of _0x51c578)_0x1d4aaa['detach']();});});});}function _0x373a6f(_0x17e3ed){_0x2748ed['model']['change'](_0x6bc479=>{const _0x31bb82=Array['from'](_0x2d6346['getRanges']())['map'](_0x31c65a=>_0x3c7933['fromRange'](_0x31c65a)),_0x12ea39=[];for(const _0x164994 of _0x17e3ed)for(const _0x524b9f of _0x164994['getItems']({'shallow':!0x0}))_0x12ea39['push'](_0x524b9f);for(const _0x2af400 of _0x12ea39)'$graveyard'!=_0x2af400['root']['rootName']&&(_0x6bc479['setSelection'](_0x6bc479['createPositionAt'](_0x2af400,0x0)),_0x2748ed['commands']['get']('removeTableColumn')['refresh'](),_0x2748ed['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1b8ceb=_0x31bb82['filter'](_0x1a10e8=>'$graveyard'!=_0x1a10e8['root']['rootName']);_0x1b8ceb['length']>0x0&&_0x6bc479['setSelection'](_0x1b8ceb);for(const _0x4d62e9 of _0x31bb82)_0x4d62e9['detach']();});}function _0x500c23(_0x5c51ca,_0x58626c){return _0x58626c['every'](_0xefcf16=>_0x5c51ca['some'](_0x133385=>_0x133385['end']['isEqual'](_0xefcf16['start'])||_0xefcf16['end']['isEqual'](_0x133385['start'])));}function _0x17a8a5(_0x1a8be5,_0x130496){return!_0x1a8be5['some'](_0x45e0b1=>_0x130496['some'](_0x3213dd=>_0x45e0b1['isIntersecting'](_0x3213dd)))&&_0x1a8be5['some'](_0x54995e=>_0x130496['some'](_0xbcd0d6=>_0x54995e['end']['isTouching'](_0xbcd0d6['start'])));}_0x2748ed['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x33bf82,_0x379ea4,_0x35404f)=>{if(!_0x35404f['options']['showSuggestionHighlights'])return;const _0x5a952e=_0x379ea4['item'];if(!_0x5a952e)return;const _0x32f17a=_0x35404f['mapper']['toViewElement'](_0x5a952e);function _0x4e2a70(_0x547109){return Array['isArray'](_0x547109)?_0x547109:[_0x547109];}_0x32f17a&&'tableCell'===_0x5a952e['name']&&_0x1f494b(_0x32f17a,_0x35404f['writer'],(_0x36b788,_0x472914,_0x4330e3)=>_0x4330e3['addClass'](_0x4e2a70(_0x472914['classes']),_0x36b788),(_0x3fe36,_0x376941,_0x3de5ec)=>_0x3de5ec['removeClass'](_0x4e2a70(_0x376941['classes']),_0x3fe36));},{'priority':'highest'}),_0x322d7e['descriptionFactory']['registerDescriptionCallback'](_0x21f18d=>{if('insertion'!=_0x21f18d['type']&&'deletion'!=_0x21f18d['type'])return;const _0x333635=_0x21f18d['getContainedElement']();if(null!=_0x333635&&_0x333635['is']('element','table')){if('insertion'==_0x21f18d['type']){const _0x5d9b73=_0x21f18d['getItems']()['filter'](_0x36627c=>_0x36627c['is']('$textProxy'))['map'](_0x29358a=>_0x29358a['data']);if(_0x5d9b73['length'])return{'type':'insertion','content':o(_0x3cbb57,'*Insert:*\x20%0',o(_0x3cbb57,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5d9b73['join']('\x20')+'\x22'))};}if('deletion'==_0x21f18d['type']){const _0x17098d=_0x21f18d['getItems']()['filter'](_0xa04f84=>_0xa04f84['is']('$textProxy'))['map'](_0x2ee160=>_0x2ee160['data']);if(_0x17098d['length'])return{'type':'deletion','content':o(_0x3cbb57,'*Remove:*\x20%0',o(_0x3cbb57,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x17098d['join']('\x20')+'\x22'))};}}}),_0x322d7e['descriptionFactory']['registerDescriptionCallback'](_0x40ce99=>{if('tableRow'==_0x40ce99['subType']){const _0xae230e=_0x40ce99['getItems']()['filter'](_0x51ef59=>_0x51ef59['is']('$textProxy'))['map'](_0x54ceaf=>_0x54ceaf['data']),_0x5a5ac5=this['_getSuggestionCoords'](_0x40ce99),_0x165b46=_0x5a5ac5['maxRow']-_0x5a5ac5['minRow']+0x1;if('insertion'==_0x40ce99['type'])return _0xae230e['length']?{'type':'insertion','content':o(_0x3cbb57,'*Insert:*\x20%0',o(_0x3cbb57,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x165b46,'\x22'+_0xae230e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3cbb57,'*Insert:*\x20%0',o(_0x3cbb57,'ELEMENT_TABLE_ROW',_0x165b46))};if('deletion'==_0x40ce99['type'])return _0xae230e['length']?{'type':'deletion','content':o(_0x3cbb57,'*Remove:*\x20%0',o(_0x3cbb57,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x165b46,'\x22'+_0xae230e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3cbb57,'*Remove:*\x20%0',o(_0x3cbb57,'ELEMENT_TABLE_ROW',_0x165b46))};}if('tableColumn'==_0x40ce99['subType']){const _0x455462=_0x40ce99['getItems']()['filter'](_0x2af1e4=>_0x2af1e4['is']('$textProxy'))['map'](_0x3c3c0f=>_0x3c3c0f['data']),_0xe66372=this['_getSuggestionCoords'](_0x40ce99),_0xfb585c=_0xe66372['maxColumn']-_0xe66372['minColumn']+0x1;if('insertion'==_0x40ce99['type'])return _0x455462['length']?{'type':'insertion','content':o(_0x3cbb57,'*Insert:*\x20%0',o(_0x3cbb57,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfb585c,'\x22'+_0x455462['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3cbb57,'*Insert:*\x20%0',o(_0x3cbb57,'ELEMENT_TABLE_COLUMN',_0xfb585c))};if('deletion'==_0x40ce99['type'])return _0x455462['length']?{'type':'deletion','content':o(_0x3cbb57,'*Remove:*\x20%0',o(_0x3cbb57,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfb585c,'\x22'+_0x455462['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3cbb57,'*Remove:*\x20%0',o(_0x3cbb57,'ELEMENT_TABLE_COLUMN',_0xfb585c))};}}),_0x322d7e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x280e2a),_0x322d7e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x280e2a),_0x322d7e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x373a6f),_0x322d7e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x373a6f),_0x322d7e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x500c23),_0x322d7e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x500c23),_0x322d7e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x17a8a5),_0x322d7e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x17a8a5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x43dcb6=this['editor'],_0x511327=_0x43dcb6['model']['document']['selection'];return(_0x86ba9,_0x181246)=>{_0x43dcb6['model']['change'](_0x207fb6=>{const {commandName:_0x55bb08,commandParams:_0x109c26}=_0x181246;let _0x1d30ba=_0x86ba9[0x0]['end']['nodeBefore'];_0x109c26&&_0x109c26[0x0]&&!0x1===_0x109c26[0x0]['forceValue']&&(_0x1d30ba=_0x86ba9[0x0]['start']['nodeAfter']);const _0x2cff77=_0x207fb6['createRangeIn'](_0x1d30ba);if('$graveyard'==_0x2cff77['root']['rootName'])return;const _0xb9287e=Array['from'](_0x511327['getRanges']())['map'](_0x4d2976=>_0x3c7933['fromRange'](_0x4d2976));_0x207fb6['setSelection'](_0x2cff77),_0x43dcb6['commands']['get'](_0x55bb08)['refresh'](),_0x109c26['push']({'forceDefaultExecution':!0x0}),_0x43dcb6['execute'](_0x55bb08,..._0x109c26);const _0x3c3ceb=_0xb9287e['filter'](_0x21eda1=>'$graveyard'!=_0x21eda1['root']['rootName']);_0x3c3ceb['length']>0x0&&_0x207fb6['setSelection'](_0x3c3ceb);for(const _0x4d0cbc of _0xb9287e)_0x4d0cbc['detach']();});};}['_getCoordsForCells'](_0x153fcc){const _0x506f4e=this['editor']['plugins']['get']('TableUtils');let _0x52de34=Number['MAX_SAFE_INTEGER'],_0x3673c3=Number['MIN_SAFE_INTEGER'],_0x1f9658=Number['MAX_SAFE_INTEGER'],_0x3b8ffb=Number['MIN_SAFE_INTEGER'];for(const _0x147497 of _0x153fcc){if('$graveyard'==_0x147497['root']['rootName'])continue;const {row:_0x4f898a,column:_0x3afd60}=_0x506f4e['getCellLocation'](_0x147497),_0x392a3f=_0x147497['hasAttribute']('rowspan')?_0x147497['getAttribute']('rowspan')-0x1:0x0,_0x5d822d=_0x147497['hasAttribute']('colspan')?_0x147497['getAttribute']('colspan')-0x1:0x0;_0x52de34=_0x4f898a<_0x52de34?_0x4f898a:_0x52de34,_0x3673c3=_0x4f898a+_0x392a3f>_0x3673c3?_0x4f898a+_0x392a3f:_0x3673c3,_0x1f9658=_0x3afd60<_0x1f9658?_0x3afd60:_0x1f9658,_0x3b8ffb=_0x3afd60+_0x5d822d>_0x3b8ffb?_0x3afd60+_0x5d822d:_0x3b8ffb;}return{'minRow':_0x52de34,'maxRow':_0x3673c3,'minColumn':_0x1f9658,'maxColumn':_0x3b8ffb};}['_setupColumnsRowsFixing'](){const _0x3634b4=this['editor'],_0x274a32=_0x3634b4['plugins']['get']('TrackChangesEditing'),_0x55d618=_0x3634b4['plugins']['get']('TableUtils');_0x3634b4['model']['document']['on']('change:data',()=>{const _0x5734d3=Array['from'](_0x3634b4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d3c51,data:_0x2b4f8e}of _0x5734d3){const {group:_0x2ff4f7,id:_0x57016f,subType:_0x1d3b44}=_0x274a32['_splitMarkerName'](_0x2d3c51);if('suggestion'!=_0x2ff4f7)continue;if(null!=_0x2b4f8e['oldRange'])continue;const _0x1d128b=_0x274a32['getSuggestion'](_0x57016f);this['_tablePostFixingSubtypes']['includes'](_0x1d3b44)&&this['_tableSuggestions']['add'](_0x1d128b);}},{'priority':'low'});const _0x460b98=(_0x424d08,_0x3117fb)=>{let _0x541000=!0x1;const _0x2520b5=_0x3117fb['createRangeOn'](_0x424d08),_0x5e2b5e=_0x424d08['findAncestor']('table'),_0x1c4f80=_0x55d618['getCellLocation'](_0x424d08);for(const _0x1fa338 of this['_tableSuggestions']){const _0x332c57=_0x1fa338['subType'],_0x44ee1a=_0x332c57['startsWith']('tablePaste'),_0x1755d3=_0x332c57['substr'](_0x44ee1a?0xa:0x5),_0x227719=_0x1755d3['toLowerCase'](),_0x1b65ea=_0x227719['substr'](0x0,0x3)+'span',_0x150c4a='min'+_0x1755d3,_0x150a7c='max'+_0x1755d3;if(!_0x1fa338['isInContent'])continue;if(_0x5e2b5e!=_0x1fa338['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1fa338['isIntersectingWithRange'](_0x2520b5))continue;const _0x1af60a=_0x424d08['hasAttribute'](_0x1b65ea)?_0x424d08['getAttribute'](_0x1b65ea)-0x1:0x0,_0x381735=this['_getSuggestionCoords'](_0x1fa338),_0x1f1475=_0x381735[_0x150c4a],_0x32158e=_0x381735[_0x150a7c];_0x1f1475<=_0x1c4f80[_0x227719]&&_0x1c4f80[_0x227719]+_0x1af60a<=_0x32158e&&(_0x1fa338['addRange'](_0x2520b5),_0x541000=!0x0);}return _0x541000;};_0x3634b4['model']['document']['registerPostFixer'](_0x998b94=>{let _0x11ca71=!0x1;for(const _0x356afb of _0x3634b4['model']['document']['differ']['getChanges']())if('insert'==_0x356afb['type']){if('tableRow'==_0x356afb['name']){for(const _0x1e4544 of _0x356afb['position']['nodeAfter']['getChildren']())_0x11ca71=_0x11ca71||_0x460b98(_0x1e4544,_0x998b94);}else'tableCell'==_0x356afb['name']&&(_0x11ca71=_0x11ca71||_0x460b98(_0x356afb['position']['nodeAfter'],_0x998b94));}return _0x11ca71;});}['_getSuggestionCoords'](_0x370e20){return this['_getCoordsForCells'](_0x370e20['getRanges']()['map'](_0x4e337f=>_0x4e337f['start']['nodeAfter']));}}function Ee(_0x318b7e){return Array['from'](new Set(_0x318b7e)['values']());}class St extends _0x5552f2{static get['requires'](){return[jt];}['afterInit'](){const _0x5de93e=this['editor'],_0x67f013=_0x5de93e['model']['document']['selection'],_0x527e95=_0x5de93e['locale'];if(!_0x5de93e['plugins']['has']('TableEditing'))return;const _0x3d2d69=_0x5de93e['plugins']['get']('TrackChangesEditing'),_0x1de394=_0x5de93e['plugins']['get']('TableUtils'),_0x56371f=_0x5de93e['plugins']['get'](jt);_0x56371f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d2d69['enableCommand']('mergeTableCells',()=>{const _0x9f31dc=_0x1de394['getSelectionAffectedTableCells'](_0x5de93e['model']['document']['selection']);_0x5de93e['model']['change'](()=>{_0x3d2d69['markMultiRangeBlockFormat'](_0x9f31dc,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5de93e['commands']['get']('mergeTableCells')['on']('execute',(_0xa6f73e,_0x558536)=>{_0x5de93e['commands']['get']('trackChanges')['value']&&(_0x558536['length']>0x0&&_0x558536[_0x558536['length']-0x1]&&_0x558536[_0x558536['length']-0x1]['forceDefaultExecution']||_0x3d2d69['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xa6f73e['stop']());},{'priority':'highest'});for(const _0x314d34 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x52984a=_0x5de93e['commands']['get'](_0x314d34);_0x3d2d69['enableCommand'](_0x314d34,()=>{const _0x5e003d=_0x5de93e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x16c6ae=>_0x16c6ae['is']('element','tableCell')),_0x555626=_0x52984a['value'];_0x5de93e['model']['change'](()=>{_0x3d2d69['markMultiRangeBlockFormat']([_0x5e003d,_0x555626],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2a0ddc of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c3ac8=_0x5de93e['commands']['get'](_0x2a0ddc);_0x3d2d69['enableCommand'](_0x2a0ddc,()=>{const _0x2fac28=_0x1de394['getSelectionAffectedTableCells'](_0x5de93e['model']['document']['selection'])[0x0],_0x2ad310=_0x2fac28['findAncestor']('table'),{column:_0x14ed6b,row:_0x5d169e}=_0x1de394['getCellLocation'](_0x2fac28);let _0x331b1d=[];if('horizontally'==_0x1c3ac8['direction']){const _0x553ca8=_0x1de394['createTableWalker'](_0x2ad310,{'startRow':_0x5d169e,'endRow':_0x5d169e,'includeAllSlots':!0x0});_0x331b1d=Array['from'](_0x553ca8)['map'](_0x28f0b9=>_0x28f0b9['cell']);}else{const _0x97d139=_0x1de394['createTableWalker'](_0x2ad310,{'column':_0x14ed6b,'includeAllSlots':!0x0});_0x331b1d=Array['from'](_0x97d139)['map'](_0x121ae1=>_0x121ae1['cell']);}_0x5de93e['model']['change'](_0x15e095=>{_0x3d2d69['markBlockFormat'](_0x15e095['createRangeOn'](_0x2fac28),{'commandName':_0x2a0ddc,'commandParams':[]},_0x331b1d,_0x2a0ddc);});});}_0x3d2d69['descriptionFactory']['registerDescriptionCallback'](_0x5f5179=>{if('formatBlock'!=_0x5f5179['type']&&'formatInline'!=_0x5f5179['type'])return;const {data:_0x38ca0d}=_0x5f5179;return _0x38ca0d&&'mergeTableCells'==_0x38ca0d['commandName']?{'type':'format','content':o(_0x527e95,'*Merge\x20cells*')}:void 0x0;}),_0x3d2d69['descriptionFactory']['registerDescriptionCallback'](_0x20b6b0=>{if('formatBlock'!=_0x20b6b0['type']&&'formatInline'!=_0x20b6b0['type'])return;const {data:_0x241e86}=_0x20b6b0;return _0x241e86?'splitTableCellVertically'==_0x241e86['commandName']?{'type':'format','content':o(_0x527e95,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x241e86['commandName']?{'type':'format','content':o(_0x527e95,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x48f7fb=_0x56371f['_acceptFormatSuggestionCallbackFactory']();for(const _0x235115 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d2d69['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x235115,'accept',_0x48f7fb);for(const _0x2c05cc of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d2d69['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c05cc,'accept',_0x48f7fb);_0x3d2d69['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x92711=>{_0x5de93e['model']['change'](_0x700db2=>{const _0x55f9cb=Array['from'](_0x67f013['getRanges']())['map'](_0x221a0a=>_0x3c7933['fromRange'](_0x221a0a));_0x700db2['setSelection'](_0x92711),_0x5de93e['commands']['get']('mergeTableCells')['refresh'](),_0x5de93e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x65a51b=_0x55f9cb['filter'](_0x6e5a29=>'$graveyard'!=_0x6e5a29['root']['rootName']);_0x65a51b['length']>0x0&&_0x700db2['setSelection'](_0x65a51b);for(const _0x43e4df of _0x55f9cb)_0x43e4df['detach']();});});for(const _0x22a376 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xfdf208=_0x5de93e['commands']['get'](_0x22a376);_0xfdf208['on']('set:isEnabled',(_0x530513,_0x5b6534,_0x15b759)=>{if(_0x15b759){const _0x23dc10=_0x5de93e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33cd41=>_0x33cd41['is']('element','tableCell'));this['_areMergableCells'](_0xfdf208['value'],_0x23dc10)||(_0x530513['return']=!0x1,_0x530513['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1b0c5f=this['editor']['commands']['get']('mergeTableCells'),_0x65fa1f=this['editor']['plugins']['get']('TableUtils');if(!_0x1b0c5f['isEnabled'])return!0x1;const _0x5bae0f=_0x65fa1f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x235a94 of _0x5bae0f)for(const _0x569a19 of _0x5bae0f)if(_0x235a94!=_0x569a19&&!this['_areMergableCells'](_0x235a94,_0x569a19))return!0x1;return!0x0;}['_areMergableCells'](_0x31b517,_0x17e179){const _0x143e0f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd54c11=this['editor']['model']['createRangeOn'](_0x31b517),_0x105d00=this['editor']['model']['createRangeOn'](_0x17e179),_0x420dea=new Set(),_0x5a99cf=new Set();for(const _0x439ed1 of _0x143e0f['getSuggestions']())if(('insertion'==_0x439ed1['type']||'deletion'==_0x439ed1['type']||'mergeTableCells'==_0x439ed1['subType'])&&_0x439ed1['isInContent']){for(const _0x18625d of _0x439ed1['getRanges']())_0x18625d['containsRange'](_0xd54c11,!0x0)&&_0x420dea['add'](_0x439ed1['type']+':'+_0x439ed1['author']['id']),_0x18625d['containsRange'](_0x105d00,!0x0)&&_0x5a99cf['add'](_0x439ed1['type']+':'+_0x439ed1['author']['id']);}if(_0x420dea['size']!=_0x5a99cf['size'])return!0x1;for(const _0x3567d9 of _0x420dea)if(!_0x5a99cf['has'](_0x3567d9))return!0x1;return!0x0;}}class At extends _0x5552f2{static get['requires'](){return[jt];}['afterInit'](){const _0xb34336=this['editor'];if(!_0xb34336['plugins']['has']('TableEditing'))return;const _0x38cd4b=_0xb34336['locale'],_0x470c17=_0xb34336['plugins']['get']('TrackChangesEditing');_0x470c17['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x470c17['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x470c17['registerBlockAttribute']('headingRows'),_0x470c17['registerBlockAttribute']('headingColumns'),_0x470c17['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x38cd4b,'FORMAT_HEADER_ROW')),_0x470c17['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x38cd4b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5bd168=this['editor']['plugins']['get']('TrackChangesEditing'),_0x467f46=this['editor']['plugins']['get']('TableUtils'),_0x56a392=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x23669c({showActiveMarker:_0x4bd23b=!0x0,setDataAttribute:_0x275eac=!0x0}={}){return(_0x54f95b,_0x2be9e1,_0x180829)=>{const {type:_0x3ecf72,id:_0xd58e20}=_0x5bd168['_splitMarkerName'](_0x2be9e1['markerName']),_0x44b221=_0x5bd168['getSuggestion'](_0xd58e20),_0x2f5dbc=_0x44b221['data'];if('formatBlock'!=_0x44b221['type']||!_0x2f5dbc||'setTableColumnHeader'!=_0x2f5dbc['commandName'])return;if(_0x2be9e1['item'])return void _0x54f95b['stop']();if(!_0x180829['consumable']['consume'](_0x2be9e1['markerRange'],_0x54f95b['name']))return;const _0x29269c=_0x2be9e1['markerRange']['start']['nodeAfter'],_0x1a0f5b=_0x2be9e1['markerRange']['end']['nodeBefore'],_0x24f24e=_0x29269c['parent']['parent'],{column:_0x31110c}=_0x467f46['getCellLocation'](_0x29269c),{column:_0x40afd8}=_0x467f46['getCellLocation'](_0x1a0f5b);for(let _0x1d50b5=_0x31110c;_0x1d50b5<=_0x40afd8;_0x1d50b5++){const _0x5440b9=_0x467f46['createTableWalker'](_0x24f24e,{'column':_0x1d50b5,'includeAllSlots':!0x1});for(const _0x5c332b of _0x5440b9){const _0x31bc25=_0x5c332b['cell'],_0x54fc86=_0x180829['mapper']['toViewElement'](_0x31bc25);_0x180829['writer']['addClass']('ck-suggestion-marker-'+_0x3ecf72,_0x54fc86),_0x275eac&&_0x180829['writer']['setAttribute']('data-suggestion',_0xd58e20,_0x54fc86),_0x180829['mapper']['bindElementToMarker'](_0x54fc86,_0x2be9e1['markerName']),_0x4bd23b&&(_0x5bd168['activeMarkers']['includes'](_0x2be9e1['markerName'])?_0x180829['writer']['addClass']('ck-suggestion-marker--active',_0x54fc86):_0x180829['writer']['removeClass']('ck-suggestion-marker--active',_0x54fc86));}}};}_0x5bd168['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x56a392),_0x5bd168['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x56a392),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x23669c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x243d6d,_0x5eacb5,_0x1734de)=>{_0x1734de['options']['showSuggestionHighlights']&&_0x23669c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x243d6d,_0x5eacb5,_0x1734de);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x422406,_0x5b52bc,_0x323619)=>{const {type:_0x30461b,id:_0x58a092}=_0x5bd168['_splitMarkerName'](_0x5b52bc['markerName']),_0x1a6c7d=_0x5bd168['getSuggestion'](_0x58a092),_0x18f4f5=_0x1a6c7d['data'];if('formatBlock'!=_0x1a6c7d['type']||!_0x18f4f5||'setTableColumnHeader'!=_0x18f4f5['commandName'])return;const _0x4d75eb=_0x323619['mapper']['markerNameToElements'](_0x5b52bc['markerName']);if(_0x4d75eb){for(const _0x2b08b7 of _0x4d75eb)_0x323619['writer']['removeClass']('ck-suggestion-marker-'+_0x30461b,_0x2b08b7),_0x323619['writer']['removeClass']('ck-suggestion-marker--active',_0x2b08b7),_0x323619['writer']['removeAttribute']('data-suggestion',_0x2b08b7),_0x323619['mapper']['unbindElementFromMarkerName'](_0x2b08b7,_0x5b52bc['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28da00=this['editor'],_0x488a39=_0x28da00['locale'];function _0x24aed1(_0x3c05bf){return{'type':'format','content':o(_0x488a39,'*Format:*\x20%0',_0x3c05bf)};}_0x28da00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x236ffc=>{if('formatBlock'!=_0x236ffc['type'])return;const {data:_0x2589c5}=_0x236ffc;if(_0x2589c5){if('setTableRowHeader'==_0x2589c5['commandName']){const _0x53ecf4=_0x2589c5['commandParams'][0x0]['forceValue'];return _0x24aed1(o(_0x488a39,_0x53ecf4?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2589c5['commandName']){const _0x9a5c36=_0x2589c5['commandParams'][0x0]['forceValue'];return _0x24aed1(o(_0x488a39,_0x9a5c36?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x1c49a7=>[_0x1c49a7,null]));class It extends _0x5552f2{static get['requires'](){return[jt];}['afterInit'](){const _0x41a6fe=this['editor'];if(!_0x41a6fe['plugins']['has']('TableClipboard'))return;const _0x5eabe7=_0x41a6fe['plugins']['get']('TrackChangesEditing'),_0x3d55c1=_0x41a6fe['plugins']['get']('TableUtils'),_0x22a037=_0x41a6fe['plugins']['get'](jt),_0x1919cc=_0x41a6fe['plugins']['get']('TableClipboard');_0x22a037['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x41a6fe['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x41a6fe['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x78bd1f=null;_0x41a6fe['model']['on']('insertContent',(_0x201d72,_0x24b529)=>{const [_0x1171f0,_0x122310]=_0x24b529,_0x5ddb6f=_0x24b529[_0x24b529['length']-0x1];_0x5ddb6f&&_0x5ddb6f['forceDefaultExecution']||_0x5eabe7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x26eed5,_0x192f5c,_0x331e0f,_0x1de981,_0x38af0b){if(_0x192f5c&&!_0x192f5c['is']('documentSelection'))return!0x1;const _0x1a72de=_0x38af0b['getTableIfOnlyTableInContent'](_0x26eed5,_0x331e0f);if(!_0x1a72de||!he(_0x1a72de,void 0x0,_0x1de981))return!0x1;const _0x4a901b=_0x1de981['getSelectionAffectedTableCells'](_0x331e0f['document']['selection']);if(!_0x4a901b['length'])return!0x1;const _0x59d584=_0x4a901b[0x0]['findAncestor']('table'),_0x284e84=_0x1de981['getRowIndexes'](_0x4a901b),_0x397b16=_0x1de981['getColumnIndexes'](_0x4a901b),_0x3c1a2c={'startRow':_0x284e84['first'],'endRow':_0x284e84['last'],'startColumn':_0x397b16['first'],'endColumn':_0x397b16['last']};return 0x1==_0x4a901b['length']&&(_0x3c1a2c['endRow']+=_0x1de981['getRows'](_0x1a72de)-0x1,_0x3c1a2c['endColumn']+=_0x1de981['getColumns'](_0x1a72de)-0x1),he(_0x59d584,_0x3c1a2c,_0x1de981);}(_0x1171f0,_0x122310,_0x41a6fe['model'],_0x3d55c1,_0x1919cc)&&(_0x201d72['stop'](),_0x78bd1f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x41a6fe['model']['change'](()=>{_0x41a6fe['model']['insertContent'](_0x24b529[0x0],_0x24b529[0x1],_0x24b529[0x2],{'forceDefaultExecution':!0x0});const _0x227eb3=_0x56bbb0(),{rowInsertionRanges:_0x9dc631,columnInsertionRanges:_0x153171,insertionRanges:_0x32da8b,deletionRanges:_0xfe8646,cells:_0x598d72}=_0x78bd1f;_0x9dc631['length']&&_0x5eabe7['markMultiRangeInsertion'](_0x9dc631,'tablePasteRow',{'tablePasteChainId':_0x227eb3}),_0x153171['length']&&_0x5eabe7['markMultiRangeInsertion'](_0x153171,'tablePasteColumn',{'tablePasteChainId':_0x227eb3}),_0x32da8b['length']&&(_0x5eabe7['markMultiRangeInsertion'](_0x32da8b,'tablePaste',{'tablePasteChainId':_0x227eb3,'skipNestingCheck':!0x0}),_0x32da8b['forEach'](_0x292ee6=>_0x292ee6['detach']?.())),_0xfe8646['length']&&(_0x5eabe7['markMultiRangeDeletion'](_0xfe8646,'tablePaste',{'tablePasteChainId':_0x227eb3,'skipNestingCheck':!0x0}),_0xfe8646['forEach'](_0x20ed82=>_0x20ed82['detach']?.()));const _0x5a72ad=_0x5eabe7['markMultiRangeBlockFormat'](_0x598d72['map'](({element:_0x4fb478})=>_0x4fb478),{'formatGroupId':_0x56bbb0()},[],'tablePasteCell',{'tablePasteChainId':_0x227eb3});if(_0x5a72ad){const _0xa22850=_0x5a72ad['getMarkers'](),_0x29353e=[];for(const {element:_0x414c7b,attributes:_0x19144e}of _0x598d72){if(!_0x19144e)continue;const _0x212e33=_0x41a6fe['model']['createRangeOn'](_0x414c7b),_0x48415f=_0xa22850['find'](_0x4a65dc=>_0x4a65dc['getRange']()['isEqual'](_0x212e33));_0x48415f&&_0x29353e['push']([_0x48415f['name'],_0x19144e]);}_0x29353e['length']&&_0x5a72ad['setAttribute']('markerAttributes',Object['fromEntries'](_0x29353e));}_0x78bd1f=null;}));},{'priority':_0x897be0['high']+0xa}),_0x41a6fe['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xea8bf3,_0x5d9b91)=>{const [_0x51100c,_0x5dff4d,,_0x5062de]=_0x5d9b91;if(!_0x78bd1f)return;_0xea8bf3['stop']();const _0xff3090=_0x51100c['cell'],_0x3fa7ce=_0x5dff4d,_0x180fa8=Pe(_0xff3090),_0x5e1606=Pe(_0x3fa7ce);_0xea8bf3['return']=_0xff3090;let _0x5ef650=null,_0x4b97ce=null;if(_0x5e1606||_0x180fa8){if(_0x180fa8&&!_0x5e1606){_0x5062de['remove'](_0xff3090['getChild'](0x0));for(const _0x18f839 of Array['from'](_0x3fa7ce['getChildren']()))_0x5062de['insert'](_0x18f839,_0xff3090,'end');const _0x20d72f=_0x78bd1f['rowInsertionIndexes']['includes'](_0x51100c['row']),_0x4860e3=_0x78bd1f['columnInsertionIndexes']['includes'](_0x51100c['column']);_0x20d72f||_0x4860e3||(_0x5ef650=_0x3c7933['fromRange'](_0x5062de['createRangeIn'](_0xff3090)));}else _0x5e1606&&!_0x180fa8&&(_0x4b97ce=_0x5062de['createRangeIn'](_0xff3090));}else{const _0x425f52=_0x5062de['createElement']('tableCellSuggestion'),_0x107d5f=_0x5062de['createElement']('tableCellSuggestion');_0x5062de['wrap'](_0x5062de['createRangeIn'](_0xff3090),_0x107d5f),_0x5062de['insert'](_0x425f52,_0xff3090,0x0);for(const _0x470967 of Array['from'](_0x3fa7ce['getChildren']()))_0x5062de['insert'](_0x470967,_0x425f52,'end');_0x5ef650=_0x3c7933['fromRange'](_0x5062de['createRangeOn'](_0x425f52)),_0x4b97ce=_0x3c7933['fromRange'](_0x5062de['createRangeOn'](_0x107d5f));}const _0x95c62c=Array['from'](_0x3fa7ce['getAttributes']())['filter'](([_0x376818])=>ge['includes'](_0x376818));_0x78bd1f['cells']['push']({'element':_0xff3090,'attributes':_0x95c62c['length']?Object['fromEntries'](_0x95c62c):null}),_0x5ef650&&_0x78bd1f['insertionRanges']['push'](_0x5ef650),_0x4b97ce&&_0x78bd1f['deletionRanges']['push'](_0x4b97ce);},{'priority':'high'}),_0x3d55c1['on']('insertColumns',(_0x543da9,_0x99fb77)=>{const [_0x4970d4,_0xa746bf={}]=_0x99fb77;if(!_0x78bd1f)return;const _0x33cebb=_0xa746bf['at']||0x0,_0x128ec8=_0xa746bf['columns']||0x1;_0x78bd1f['columnInsertionIndexes']=new Array(_0x128ec8)['fill'](_0x33cebb)['map']((_0x1a272d,_0x4c7618)=>_0x1a272d+_0x4c7618);for(const {cell:_0x5e1437}of _0x3d55c1['createTableWalker'](_0x4970d4,{'startColumn':_0x33cebb,'endColumn':_0x33cebb+_0x128ec8-0x1}))_0x78bd1f['columnInsertionRanges']['push'](_0x41a6fe['model']['createRangeOn'](_0x5e1437));},{'priority':'low'}),_0x3d55c1['on']('insertRows',(_0x57928e,_0x5db5a4)=>{const [_0x312a82,_0x50a326={}]=_0x5db5a4;if(!_0x78bd1f)return;const _0x70101b=_0x50a326['at']||0x0,_0x3d87ff=_0x50a326['rows']||0x1;_0x78bd1f['rowInsertionIndexes']=new Array(_0x3d87ff)['fill'](_0x70101b)['map']((_0x114e2f,_0x541a67)=>_0x114e2f+_0x541a67);for(const {cell:_0x1a0cb5}of _0x3d55c1['createTableWalker'](_0x312a82,{'startRow':_0x70101b,'endRow':_0x70101b+_0x3d87ff-0x1}))_0x78bd1f['rowInsertionRanges']['push'](_0x41a6fe['model']['createRangeOn'](_0x1a0cb5));},{'priority':'low'}),_0x5eabe7['descriptionFactory']['registerDescriptionCallback'](_0x3d6ff3=>{if(_0x3d6ff3['subType']&&_0x3d6ff3['subType']['startsWith']('tablePaste'))return _0x3d6ff3['previous']?{}:{'type':'insertion','content':o(_0x41a6fe['locale'],'*Replace\x20table\x20cells*')};});const _0x4cfdae=()=>!0x1;for(const _0x144d01 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5eabe7['_suggestionFactory']['registerCustomCallback']('insertion',_0x144d01,'join',_0x4cfdae),_0x5eabe7['_suggestionFactory']['registerCustomCallback']('deletion',_0x144d01,'join',_0x4cfdae),_0x5eabe7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x144d01,'join',_0x4cfdae);_0x5eabe7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4cfdae),_0x5eabe7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x32cd39,_0x48d89e,_0x4aef24)=>{const _0x580cf2=_0x32cd39['map'](_0x58c92f=>_0x58c92f['getContainedElement']())['filter'](_0x785498=>_0x785498),_0x3fd6a4=new Map(_0x580cf2['map'](_0x54af59=>[_0x54af59,null]));if(_0x78bd1f){for(const {element:_0x29fc26,attributes:_0x366a51}of _0x78bd1f['cells'])_0x366a51&&_0x3fd6a4['set'](_0x29fc26,_0x366a51);}else{if(_0x4aef24&&_0x4aef24['markerAttributes'])for(const [_0x5c0b46,_0x4ea037]of Object['entries'](_0x4aef24['markerAttributes'])){const _0x375629=_0x41a6fe['model']['markers']['get'](_0x5c0b46),_0x1c858d=_0x375629?_0x375629['getRange']()['getContainedElement']():null;_0x1c858d&&_0x3fd6a4['set'](_0x1c858d,_0x4ea037);}}_0x41a6fe['model']['change'](_0x3dd4a3=>{for(const [_0x1650fe,_0x1b9454]of _0x3fd6a4)_0x3dd4a3['setAttributes']({...Ce,..._0x1b9454},_0x1650fe);});});const _0x10059d=(_0x3e6d9d,_0x1db124)=>{_0x5eabe7['_suggestionFactory']['registerCustomCallback'](_0x3e6d9d,'tablePaste',_0x1db124,(_0x1db0cc,_0x1f4a72,_0x49b40b)=>{_0x41a6fe['model']['change'](_0x4c1e7a=>{const _0x582daf=[];for(const _0x46c556 of _0x1db0cc){const _0x21a3b4=_0x46c556['start']['nodeAfter'];_0x21a3b4['is']('element','tableCellSuggestion')&&_0x582daf['push'](_0x21a3b4);}_0x5eabe7['_suggestionFactory']['getSuggestionCallback'](_0x3e6d9d,null,_0x1db124)(_0x1db0cc,_0x1f4a72,_0x49b40b);for(const _0x39d170 of _0x582daf)'$graveyard'!=_0x39d170['root']['rootName']&&_0x4c1e7a['unwrap'](_0x39d170);});});};_0x10059d('insertion','accept'),_0x10059d('insertion','discard'),_0x10059d('deletion','accept'),_0x10059d('deletion','discard'),_0x5eabe7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x171665=>{const _0x3e8dc4=_0x171665['map'](_0xed7c15=>_0xed7c15['getContainedElement']()),_0x2d88cd=_0x3e8dc4[0x0]['findAncestor']('table'),{minRow:_0x313cc0,maxRow:_0x57bbb3}=_0x22a037['_getCoordsForCells'](_0x3e8dc4);_0x3d55c1['removeRows'](_0x2d88cd,{'at':_0x313cc0,'rows':_0x57bbb3-_0x313cc0+0x1});}),_0x5eabe7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x26ddfb=>{const _0x2e8af8=_0x26ddfb['map'](_0x2dce03=>_0x2dce03['getContainedElement']()),_0x595610=_0x2e8af8[0x0]['findAncestor']('table'),{minColumn:_0x5b5f53,maxColumn:_0x3bc851}=_0x22a037['_getCoordsForCells'](_0x2e8af8);_0x3d55c1['removeColumns'](_0x595610,{'at':_0x5b5f53,'columns':_0x3bc851-_0x5b5f53+0x1});});const _0x1de5f1=(_0x154879,_0x33fa52)=>{if(!_0x33fa52['subType']||!_0x33fa52['subType']['startsWith']('tablePaste'))return;const _0x389ee6=_0x33fa52['attributes']['tablePasteChainId'],_0x14a0f3=_0x5eabe7['getSuggestions']()['filter'](_0x3f08d4=>_0x3f08d4['isInContent']&&_0x3f08d4['attributes']&&_0x3f08d4['attributes']['tablePasteChainId']==_0x389ee6);_0x14a0f3['length']&&_0x33fa52['getAllAdjacentSuggestions']()['length']!=_0x14a0f3['length']&&_0x14a0f3['reduce']((_0x4d983a,_0x2f8cdb)=>(_0x4d983a['next']=_0x2f8cdb,_0x2f8cdb['previous']=_0x4d983a,_0x2f8cdb));};function _0x903c71(_0x536f0c,_0x36952a=!0x0){const {id:_0x721a7b}=_0x5eabe7['_splitMarkerName'](_0x536f0c['markerName']),_0x5a500b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3152af=_0x5eabe7['activeMarkers']['includes'](_0x536f0c['markerName']);return _0x3152af&&_0x5a500b['push']('ck-suggestion-marker--active'),{'classes':_0x5a500b,'attributes':{'data-suggestion':_0x721a7b},'priority':_0x3152af&&_0x36952a?0xbc2:0xbb8};}_0x5eabe7['on']('suggestionLoaded',_0x1de5f1,{'priority':'high'}),_0x5eabe7['on']('suggestionUnloaded',_0x1de5f1,{'priority':'high'}),_0x41a6fe['model']['document']['registerPostFixer'](()=>{let _0x2e6fa7=!0x1;const _0x2d07e0=Array['from'](_0x41a6fe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x153b7f,data:_0x20dbe9}of _0x2d07e0){const {group:_0x1102c2,type:_0x3e0db7,id:_0x2f27e6}=_0x5eabe7['_splitMarkerName'](_0x153b7f);if('suggestion'!=_0x1102c2||'deletion'!=_0x3e0db7||_0x20dbe9['oldRange'])continue;if(!_0x5eabe7['hasSuggestion'](_0x2f27e6))continue;const _0x39a458=_0x5eabe7['getSuggestion'](_0x2f27e6)['getRanges'](),_0x29c16c=_0x41a6fe['plugins']['get']('Users')['me'];for(const _0x75a79f of _0x5eabe7['getSuggestions']()){if(!_0x75a79f['isInContent']||_0x75a79f['author']!=_0x29c16c)continue;if('formatBlock'!=_0x75a79f['type']||'tablePasteCell'!=_0x75a79f['subType'])continue;if(_0x75a79f['getRanges']()['every'](_0x4c03dc=>_0x39a458['some'](_0x2c20ba=>_0x2c20ba['containsRange'](_0x4c03dc,!0x0)))){for(const _0x113854 of _0x75a79f['getAllAdjacentSuggestions']())_0x113854['isInContent']&&(_0x113854['discard'](),_0x2e6fa7=!0x0);}}}return _0x2e6fa7;}),_0x41a6fe['model']['document']['registerPostFixer'](_0x56aada=>{const _0x2fd38d=_0x41a6fe['commands']['get']('redo');if(!_0x2fd38d||!_0x2fd38d['_createdBatches']['has'](_0x56aada['batch']))return!0x1;let _0x107f7c=!0x1;const _0x127020=_0x41a6fe['plugins']['get']('Users')['me'],_0x5cc48e=_0x41a6fe['model']['document']['differ']['getChanges'](),_0x4d8fa4=Array['from'](_0x41a6fe['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x38205c,data:_0x1d1c90})=>{const {group:_0x379c76,subType:_0x942c7,authorId:_0x287bc0}=_0x5eabe7['_splitMarkerName'](_0x38205c);return'suggestion'==_0x379c76&&'tablePaste'==_0x942c7&&_0x287bc0==_0x127020['id']&&!_0x1d1c90['oldRange'];});for(const _0x560182 of _0x5cc48e){if('insert'!=_0x560182['type']||'tableCellSuggestion'!=_0x560182['name']||0x1!=_0x560182['length'])continue;const _0x2f4525=_0x56aada['createRange'](_0x560182['position'],_0x560182['position']['getShiftedBy'](0x1));if(!_0x4d8fa4['find'](({data:_0x56db30})=>_0x56db30['newRange']['isEqual'](_0x2f4525))){for(const {name:_0x4e2821,data:_0x1dd845}of _0x4d8fa4)if(_0x2f4525['containsRange'](_0x1dd845['newRange'])){_0x56aada['updateMarker'](_0x4e2821,{'range':_0x2f4525}),_0x107f7c=!0x0;break;}}}return _0x107f7c;}),_0x41a6fe['model']['document']['registerPostFixer'](_0x2a10e1=>{let _0x18117b=!0x1;const _0x2d8c84=_0x41a6fe['plugins']['get']('Users')['me'],_0x1f6c5c=_0x5eabe7['getSuggestions']()['filter'](_0x2d1ca3=>_0x2d1ca3['isInContent']&&_0x2d1ca3['author']==_0x2d8c84),_0x2a7cef=new Set(),_0x5b834d=new Set();for(const _0x3de206 of _0x1f6c5c)if('tablePaste'==_0x3de206['subType'])for(const _0x37bf9e of _0x3de206['getMarkers']()){const _0x5628cf=_0x37bf9e['getRange']()['getContainedElement']();if(_0x5628cf){if(_0x5628cf['is']('element','tableCellSuggestion')&&Pe(_0x5628cf)){_0x3de206['removeMarker'](_0x37bf9e['name']),_0x2a7cef['add'](_0x5628cf),_0x18117b=!0x0;const _0x41247e=_0x5628cf['nextSibling'],_0x16c203=_0x5628cf['previousSibling'],_0x249a21=_0x41247e&&_0x41247e['is']('element','tableCellSuggestion'),_0x3eb372=_0x16c203&&_0x16c203['is']('element','tableCellSuggestion');_0x249a21&&!_0x2a7cef['has'](_0x41247e)&&_0x5b834d['add'](_0x41247e),_0x3eb372&&!_0x2a7cef['has'](_0x16c203)&&_0x5b834d['add'](_0x16c203);}else _0x5628cf['is']('element','paragraph')&&_0x5628cf['isEmpty']&&(_0x3de206['removeMarker'](_0x37bf9e['name']),_0x18117b=!0x0);}}else{if('tablePasteCell'==_0x3de206['subType']){if(!_0x3de206['attributes']||!_0x3de206['attributes']['tablePasteChainId'])continue;const _0x3a7bcc=_0x3de206['attributes']['markerAttributes'];if(_0x3a7bcc&&Object['keys'](_0x3a7bcc)['length'])continue;const _0x44df37=_0x3de206['attributes']['tablePasteChainId'];let _0x1119c6=!0x0,_0x52422e=!0x0;for(const _0x108f54 of _0x1f6c5c)if(_0x108f54['subType']&&_0x108f54['subType']['startsWith']('tablePaste')){if(!_0x108f54['attributes']['tablePasteChainId']){_0x52422e=!0x1;break;}if(_0x108f54['id']!=_0x3de206['id']&&_0x108f54['attributes']['tablePasteChainId']==_0x44df37){_0x1119c6=!0x1;break;}}_0x52422e&&_0x1119c6&&(_0x3de206['removeMarkers'](),_0x18117b=!0x0);}}for(const _0x585855 of _0x2a7cef)_0x2a10e1['remove'](_0x585855);for(const _0x55d011 of _0x5b834d)_0x2a10e1['unwrap'](_0x55d011);return _0x18117b;}),_0x41a6fe['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3a0402,_0xf3450a)=>_0x903c71(_0x3a0402),'converterPriority':'high'}),_0x41a6fe['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1462e3,_0x30ddab)=>_0x30ddab['options']['showSuggestionHighlights']?_0x903c71(_0x1462e3,!0x1):null,'converterPriority':'high'});const _0x7d1acf=_0x41a6fe['editing']['view'];this['listenTo'](_0x7d1acf['document'],'clipboardOutput',(_0x4402b0,_0x4409c3)=>{const _0x14778b=[];for(const _0x34c12e of _0x7d1acf['createRangeIn'](_0x4409c3['content'])['getItems']())_0x34c12e['is']('element','suggestion-td')&&_0x14778b['push'](_0x34c12e);_0x7d1acf['change'](_0x51a648=>{for(const _0x17e045 of _0x14778b)_0x51a648['move'](_0x51a648['createRangeIn'](_0x17e045),_0x51a648['createPositionBefore'](_0x17e045)),_0x51a648['remove'](_0x17e045);});});}}function Pe(_0x580f11){if(_0x580f11['isEmpty'])return!0x0;const _0x4f67e9=_0x580f11['getChild'](0x0);return _0x4f67e9['is']('element','paragraph')&&_0x4f67e9['isEmpty'];}function he(_0x1c899d,_0x35098e={},_0x492aae){for(const {isAnchor:_0x5acd9c,cellHeight:_0x2eb631,cellWidth:_0x48eb6b}of _0x492aae['createTableWalker'](_0x1c899d,{'includeAllSlots':!0x0,..._0x35098e}))if(!_0x5acd9c||0x1!=_0x2eb631||0x1!=_0x48eb6b)return!0x1;return!0x0;}class vt extends _0x5552f2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x42e455=this['editor']['plugins']['get']('TrackChangesEditing');_0x42e455['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x42e455['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x42e455['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x42e455['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x42e455['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x42e455['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4fa9f7,_0x577f95){const _0x4b86b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ffc16=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x36df91=_0x577f95['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x367d20=_0x4ffc16['getColumnGroupElement'](_0x36df91);let _0x11bd50=_0x367d20?_0x4ffc16['getTableColumnsWidths'](_0x367d20):null,_0x44b4ba=_0x36df91['getAttribute']('tableWidth')||null;const _0x2ad585=_0x577f95['tableWidth']||_0x44b4ba,_0x5379a8=_0x577f95['columnWidths']||_0x11bd50,_0x583344=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f5f5a of _0x4b86b2['getSuggestions']()){const _0x4c25c2=_0x1f5f5a['getContainedElement']();if('resizeTable'===_0x1f5f5a['subType']&&_0x4c25c2===_0x36df91){_0x1f5f5a['author']!==_0x583344&&_0x1f5f5a['discard']();const _0x1094c2=_0x1f5f5a['data']['commandParams'];_0x44b4ba=_0x1094c2[0x0]['tableWidth'],_0x11bd50=_0x1094c2[0x0]['columnWidths'];break;}}_0x4fa9f7({'table':_0x36df91,'tableWidth':_0x2ad585,'columnWidths':_0x5379a8}),_0x4b86b2['markBlockFormat'](_0x36df91,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x44b4ba,'columnWidths':_0x11bd50}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4695f5){if('formatBlock'!=_0x4695f5['type']&&'formatInline'!=_0x4695f5['type'])return;const {data:_0x227563}=_0x4695f5;if(_0x227563&&'resizeTable'===_0x227563['formatGroupId']){const _0x2f4102='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2f4102)};}}}class Ct extends _0x5552f2{['afterInit'](){const _0x27bfb5=this['editor'];_0x27bfb5['plugins']['has']('Template')&&_0x27bfb5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x5552f2{['afterInit'](){const _0xe52b86=this['editor'];if(!_0xe52b86['commands']['get']('insertTableOfContents'))return;_0xe52b86['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x34c40b=_0xe52b86['plugins']['get']('TrackChangesEditing'),_0x64efe1=_0xe52b86['locale'];_0x34c40b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5a0358=>o(_0x64efe1,'ELEMENT_TABLE_OF_CONTENTS',_0x5a0358));}}class Dt extends _0x5552f2{['afterInit'](){const _0x257c9c=this['editor'];if(!_0x257c9c['plugins']['has']('Title'))return;const _0x34b04a=_0x257c9c['plugins']['get']('TrackChangesEditing');_0x34b04a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x257c9c['locale'],'ELEMENT_TITLE')),_0x257c9c['model']['document']['registerPostFixer'](_0x260d62=>{let _0x53d5ee=!0x1;const _0x37a584=Array['from'](_0x257c9c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14d2fe,data:_0x569273}of _0x37a584){const {group:_0x22b3ca}=_0x34b04a['_splitMarkerName'](_0x14d2fe);if('suggestion'!==_0x22b3ca||!_0x569273['newRange'])continue;const _0x43109d=_0x569273['newRange'],_0x312b01=_0x43109d['end']['nodeBefore'];if(!_0x312b01||!_0x312b01['is']('element','title-content'))continue;if(!_0x43109d['start']['isTouching'](_0x43109d['end']))continue;const _0x5ac4ed=_0x257c9c['model']['schema']['getNearestSelectionRange'](_0x43109d['end'],'forward');if(_0x5ac4ed&&_0x5ac4ed['isCollapsed']){const _0x93ce63=_0x260d62['createRange'](_0x43109d['start'],_0x5ac4ed['start']);_0x93ce63['isEqual'](_0x43109d)||(_0x260d62['updateMarker'](_0x14d2fe,{'range':_0x93ce63}),_0x53d5ee=!0x0);}_0x53d5ee||(_0x260d62['removeMarker'](_0x14d2fe),_0x53d5ee=!0x0);}return _0x53d5ee;});}}class Nt extends _0x5552f2{['afterInit'](){const _0x1cdf6c=this['editor'],_0x3c8e0b=_0x1cdf6c['plugins']['get']('TrackChangesEditing');_0x1cdf6c['plugins']['has']('UndoEditing')&&(_0x3c8e0b['enableCommand']('undo'),_0x3c8e0b['enableCommand']('redo'));}}class Mt extends _0x5552f2{static get['requires'](){return[jt];}['afterInit'](){const _0xa19580=this['editor'];if(!_0xa19580['plugins']['has']('TableCaptionEditing'))return;_0xa19580['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x5552f2{['tableProperties'];['tableCellProperties'];constructor(_0x3f9c7f){super(_0x3f9c7f),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 _0x1ae23c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x318830 of this['tableProperties'])_0x1ae23c['enableCommand'](_0x318830,(_0xe3eb6c,_0x4fbeac)=>{const _0x32a003=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x318830,[_0x32a003],this['tableProperties'],'tableProperties',_0xe3eb6c,_0x4fbeac);});_0x1ae23c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1ae23c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ae23c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3e696b,_0x5657ef)=>this['handleDiscardAction'](this['tableProperties'],_0x3e696b,_0x5657ef)),_0x1ae23c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x8fcab6 of this['tableCellProperties'])_0x1ae23c['enableCommand'](_0x8fcab6,(_0x302f2b,_0xe3e59a)=>{const _0x2fb17b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x8fcab6,_0x2fb17b,this['tableCellProperties'],'tableCellProperties',_0x302f2b,_0xe3e59a);});_0x1ae23c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1ae23c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ae23c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5c8b91,_0x27608d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5c8b91,_0x27608d)),_0x1ae23c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1ae23c['descriptionFactory']['registerDescriptionCallback'](_0x2f51bc=>this['handleSuggestionDescription'](_0x2f51bc));}['_handlePropertyChange'](_0x10545f,_0xb670c,_0x5444c6,_0x4ca6a0,_0x462905,_0x1aa0cb){const _0xf3c4f0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1aa0cb['batch'],()=>{for(const _0x24ca64 of _0xb670c){if(this['_getSuggestion'](_0x24ca64,_0x4ca6a0))_0x462905(_0x1aa0cb);else{const _0x536a28={};for(const _0xa067a5 of _0x5444c6){const _0x7dbaf4=_0x24ca64['getAttribute'](_0xa067a5);void 0x0!==_0x7dbaf4&&(_0x536a28[_0xa067a5]=_0x7dbaf4);}_0x462905(_0x1aa0cb),_0xf3c4f0['markBlockFormat'](_0x24ca64,{'commandParams':[_0x536a28]},[],_0x4ca6a0);}}});}['handleDiscardAction'](_0x1529ea,_0x3a4e05,_0x912b03){const _0x1f9e7e=_0x3a4e05[0x0]['start']['nodeAfter'],_0x39aee7=_0x912b03['commandParams'][0x0];this['editor']['model']['change'](_0x5be783=>{for(const _0x3dad17 of _0x1529ea)void 0x0!==_0x39aee7[_0x3dad17]?_0x5be783['setAttribute'](_0x3dad17,_0x39aee7[_0x3dad17],_0x1f9e7e):_0x5be783['removeAttribute'](_0x3dad17,_0x1f9e7e);});}['handleSuggestionDescription'](_0xf35b1c){if(_0xf35b1c['data'])switch(_0xf35b1c['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'](_0x27cc0e,_0x1ff6f9){const _0x14c49a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x33f6ef of _0x14c49a['getSuggestions']({'skipNotAttached':!0x0})){const _0x5ab29b=_0x33f6ef['getContainedElement']();if(_0x33f6ef['subType']===_0x1ff6f9&&_0x5ab29b===_0x27cc0e)return _0x33f6ef;}return null;}}const m='$elementName';class p extends _0x5552f2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x256320,_0x5b3013,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x367f3f){function _0x2e88bc(_0x4c8159){return _0x4c8159['map'](_0x5bb6cf=>String['fromCharCode'](_0x5bb6cf))['join']('');}super(_0x367f3f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4b8e41,_0x4b8067,_0x294ac6,_0x715307)=>{this['_model']['change'](()=>{for(const _0x188811 of[..._0x715307,..._0x294ac6])this['_model']['markers']['has'](_0x188811)&&_0x367f3f['editing']['reconvertMarker'](_0x188811);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x367f3f['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(),_0x367f3f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x367f3f['config']['get']('trackChanges.trackFormatChanges'),_0x367f3f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x367f3f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x367f3f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2e88bc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2e88bc([0x34,0x30,0x34,0x38,0x31,0x34,0x30,0x32]);}['init'](){const _0x5c5aac=this['editor'],_0x46aaf0=(_0x4988da,_0x3c39b3)=>{if('attribute'!=_0x4988da)return'ck-suggestion-marker-'+_0x4988da;const _0x262627=_0x3c39b3['split']('|')[0x0];return this['_isBlockAttribute'](_0x262627)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5c5aac['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4d7491=>{const {id:_0x520880,type:_0x4e5f83,subType:_0x400979}=this['_splitMarkerName'](_0x4d7491['markerName']),_0x496215=['ck-suggestion-marker',_0x46aaf0(_0x4e5f83,_0x400979)];let _0x5de02a=0xbb8;return this['activeMarkers']['includes'](_0x4d7491['markerName'])&&(_0x496215['push']('ck-suggestion-marker--active'),_0x5de02a=0xbc2),'deletion'==_0x4e5f83&&(_0x5de02a+=0x5),{'classes':_0x496215,'attributes':{'data-suggestion':_0x520880},'priority':_0x5de02a};}}),_0x5c5aac['conversion']['for']('dataDowncast')['add'](_0x1170b1=>{_0x1170b1['on']('addMarker:suggestion',(_0x2a9ea1,_0x30c44b,_0x2cb732)=>{if(!_0x2cb732['options']['showSuggestionHighlights'])return;const _0x492839=_0x30c44b['item'];if(!_0x492839)return;const _0x203bda=_0x2cb732['mapper']['toViewElement'](_0x492839);_0x5c5aac['model']['schema']['isObject'](_0x492839)&&_0x203bda&&!_0x203bda['getCustomProperty']('widget')&&_0x203bda['is']('containerElement')&&_0x429e16(_0x203bda,_0x2cb732['writer']);},{'priority':'high'});}),_0x5c5aac['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x18fd6b,_0x30f045)=>{if(!_0x30f045['options']['showSuggestionHighlights'])return null;const {type:_0x3e3668,subType:_0x1d69c7}=this['_splitMarkerName'](_0x18fd6b['markerName']);return{'classes':['ck-suggestion-marker',_0x46aaf0(_0x3e3668,_0x1d69c7)],'priority':0xbb8};}});const _0x55c526=({showActiveMarkers:_0x1fe8f5=!0x0,isAttributeSuggestion:_0x447163=!0x1}={})=>(_0x505c60,_0xf9dca9,_0x9c76b9)=>{if(!_0xf9dca9['item'])return;const {id:_0x54f8f3}=this['_splitMarkerName'](_0xf9dca9['markerName']);if(_0x447163){const _0x3319e2=this['_suggestions']['get'](_0x54f8f3),_0x546f71=this['_getAttributeKey'](_0x3319e2);if(!this['_isBlockAttribute'](_0x546f71))return;}if(_0xf9dca9['item']['is']('selection'))return void _0x9c76b9['consumable']['consume'](_0xf9dca9['item'],_0x505c60['name']);const _0x2ffc3f=_0x9c76b9['mapper']['toViewElement'](_0xf9dca9['item']);if(_0xf9dca9['item']['is']('element')&&_0x5c5aac['model']['schema']['isBlock'](_0xf9dca9['item'])&&!_0x2ffc3f['getCustomProperty']('addHighlight')){_0x9c76b9['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2ffc3f),_0x9c76b9['writer']['setAttribute']('data-suggestion',_0x54f8f3,_0x2ffc3f),_0x9c76b9['mapper']['bindElementToMarker'](_0x2ffc3f,_0xf9dca9['markerName']),_0x1fe8f5&&(this['activeMarkers']['includes'](_0xf9dca9['markerName'])?_0x9c76b9['writer']['addClass']('ck-suggestion-marker--active',_0x2ffc3f):_0x9c76b9['writer']['removeClass']('ck-suggestion-marker--active',_0x2ffc3f));for(const _0x594118 of _0x5c5aac['model']['createRangeIn'](_0xf9dca9['item'])['getItems']())_0x9c76b9['consumable']['consume'](_0x594118,_0x505c60['name']);_0x9c76b9['consumable']['consume'](_0xf9dca9['item'],_0x505c60['name']);}};_0x5c5aac['conversion']['for']('dataDowncast')['add'](_0x189dad=>{_0x189dad['on']('addMarker:suggestion:formatBlock',(_0x2bf07f,_0x420713,_0x1ad8a5)=>{_0x1ad8a5['options']['showSuggestionHighlights']&&_0x55c526({'showActiveMarkers':!0x1})(_0x2bf07f,_0x420713,_0x1ad8a5);},{'priority':'highest'});}),_0x5c5aac['conversion']['for']('dataDowncast')['add'](_0x1cb5fd=>{_0x1cb5fd['on']('addMarker:suggestion:attribute',(_0x9511ba,_0xd9beb5,_0xb5dc71)=>{_0xb5dc71['options']['showSuggestionHighlights']&&_0x55c526({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x9511ba,_0xd9beb5,_0xb5dc71);},{'priority':'highest'});}),_0x5c5aac['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x35d65f,_0x526c70)=>_0x526c70['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x35d65f['substr'](0xb)}}),_0x5c5aac['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x38d9cd,{writer:_0x14f499})=>{let _0x3b873f='suggestion:'+_0x38d9cd['getAttribute']('suggestion-type')+':'+_0x38d9cd['getAttribute']('id');return _0x38d9cd['getAttribute']('marker-count')&&(_0x3b873f+=':'+_0x38d9cd['getAttribute']('marker-count')),_0x14f499['createElement']('$marker',{'data-name':_0x3b873f});}}),_0x5c5aac['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5c5aac['conversion']['for']('editingDowncast')['add'](_0x2542ec=>{_0x2542ec['on']('addMarker:suggestion:formatBlock',_0x55c526(),{'priority':'high'});}),_0x5c5aac['conversion']['for']('editingDowncast')['add'](_0x42dc98=>{_0x42dc98['on']('addMarker:suggestion:attribute',_0x55c526({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5c5aac['conversion']['for']('editingDowncast')['add'](_0x47697a=>{_0x47697a['on']('removeMarker:suggestion:formatBlock',(_0x2a6040,_0x4da1d6,_0x386e80)=>{const _0x388ec4=_0x386e80['mapper']['markerNameToElements'](_0x4da1d6['markerName']);if(_0x388ec4){for(const _0x23aa7d of _0x388ec4)_0x23aa7d['getCustomProperty']('addHighlight')||(_0x386e80['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x23aa7d),_0x386e80['writer']['removeAttribute']('data-suggestion',_0x23aa7d),_0x386e80['mapper']['unbindElementFromMarkerName'](_0x23aa7d,_0x4da1d6['markerName']));}},{'priority':'high'});}),_0x5c5aac['conversion']['for']('editingDowncast')['add'](_0xf7c024=>{_0xf7c024['on']('removeMarker:suggestion:attribute',(_0x44af1b,_0x390806,_0x195e1c)=>{const _0x5ec284=_0x195e1c['mapper']['markerNameToElements'](_0x390806['markerName']);if(!_0x5ec284)return;const {id:_0x4c0f14}=this['_splitMarkerName'](_0x390806['markerName']),_0x3a77a5=this['_suggestions']['get'](_0x4c0f14),_0x262a78=this['_getAttributeKey'](_0x3a77a5);if(this['_isBlockAttribute'](_0x262a78)){for(const _0x3a1706 of _0x5ec284)_0x3a1706['getCustomProperty']('addHighlight')||(_0x195e1c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3a1706),_0x195e1c['writer']['removeAttribute']('data-suggestion',_0x3a1706),_0x195e1c['mapper']['unbindElementFromMarkerName'](_0x3a1706,_0x390806['markerName']));}},{'priority':'high'});}),_0x5c5aac['model']['document']['registerPostFixer'](_0x5efdc6=>{let _0x1688b5=!0x1;const _0x15cd43=Array['from'](_0x5c5aac['model']['document']['differ']['getChangedMarkers']()),_0x3e2531=new Set();for(const {name:_0x28b291,data:_0x35ce7c}of _0x15cd43){const {group:_0x1f3be5,type:_0x3585f3,subType:_0x289601,id:_0x2001b9}=this['_splitMarkerName'](_0x28b291);if('suggestion'!==_0x1f3be5)continue;const _0x36ab74=this['_suggestions']['get'](_0x2001b9);if(null!=_0x35ce7c['newRange']){'formatInline'==_0x3585f3&&(_0x1688b5=_0x1688b5||Et(_0x35ce7c['newRange'],_0x28b291,_0x5efdc6,_0x5c5aac['model']['schema']));const _0x257f78='attribute'==_0x3585f3&&this['_isBlockAttribute'](_0x289601['split']('|')[0x0]);if(_0x35ce7c['newRange']['isCollapsed']||'$graveyard'==_0x35ce7c['newRange']['root']['rootName']||'formatBlock'==_0x3585f3&&!Ut(_0x35ce7c['newRange'])||_0x257f78&&!Ut(_0x35ce7c['newRange'])||'deletion'==_0x3585f3&&!(!Tt(_0x45a590=_0x35ce7c['newRange'])&&!function(_0x20b859){return _0x20b859['start']['parent']==_0x20b859['end']['nodeBefore']&&_0x20b859['start']['isAtEnd'];}(_0x45a590)))_0x5efdc6['removeMarker'](_0x28b291),_0x1688b5=!0x0;else{if(!_0x36ab74||!_0x36ab74['isInContent'])continue;_0x3e2531['add'](_0x36ab74);}}}var _0x45a590;return _0x3e2531['size']>0x0&&(_0x1688b5=!!this['_joinWithAdjacentSuggestions'](_0x3e2531)||_0x1688b5),_0x1688b5;}),_0x5c5aac['model']['document']['registerPostFixer'](_0x4121c2=>{let _0x5adb5b=!0x1;for(const _0x3d14af of _0x5c5aac['model']['document']['differ']['getChanges']())if('insert'==_0x3d14af['type'])for(const _0x108c3a of this['_suggestions']['values']()){if(_0x108c3a['isMultiRange']||!_0x108c3a['isInContent'])continue;const _0x4b4831='formatBlock'==_0x108c3a['type'],_0x376ea6=this['_getAttributeKey'](_0x108c3a),_0x1cb3ce=_0x376ea6&&this['_isBlockAttribute'](_0x376ea6);if(!_0x4b4831&&!_0x1cb3ce)continue;const _0x331f73=_0x108c3a['getFirstRange']();if(_0x331f73['start']['parent']!=_0x331f73['end']['parent']&&!_0x331f73['end']['isAtEnd']){const _0x108899=_0x5c5aac['model']['createPositionAt'](_0x331f73['start']['nodeAfter'],'end'),_0x11bdcf=_0x5c5aac['model']['createRange'](_0x331f73['start'],_0x108899);_0x4121c2['updateMarker'](_0x108c3a['getFirstMarker'](),{'range':_0x11bdcf}),_0x5adb5b=!0x0;}}return _0x5adb5b;}),_0x5c5aac['model']['document']['registerPostFixer'](_0x114f77=>this['_processAttributeChanges'](_0x114f77)),_0x5c5aac['model']['document']['registerPostFixer'](_0x5a6e4d=>!_0x5a6e4d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5a6e4d)),_0x5c5aac['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5c5aac['model']['document']['on']('change:data',(_0x3cf001,_0x550459)=>{if(!_0x550459['isLocal']||_0x550459['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5df8bc=_0x5c5aac['model']['document']['differ']['getChanges']();if(0x0==_0x5df8bc['length'])return;const _0x18ead1=[],_0x15302a=_0x5df8bc['filter'](_0x48071a=>'attribute'==_0x48071a['type']),_0x1ef721=_0x5df8bc['filter'](_0x5a6ca4=>'insert'==_0x5a6ca4['type']&&'$text'!=_0x5a6ca4['name']);for(const _0x141d40 of _0x15302a)this['_isRegisteredAttribute'](_0x141d40['attributeKey'])&&_0x18ead1['push']({'key':_0x141d40['attributeKey'],'newValue':_0x141d40['attributeNewValue'],'oldValue':_0x141d40['attributeOldValue'],'range':Ot(_0x141d40['range'],_0x5c5aac['model'])});for(const _0x11fb57 of _0x1ef721){if('rename'!=_0x11fb57['action']&&'refresh'!=_0x11fb57['action'])continue;const _0x86caa1=Gt(_0x11fb57['position']['nodeAfter'],_0x5c5aac['model']),_0x10c7d6=_0x11fb57['before'];'rename'==_0x11fb57['action']&&_0x18ead1['push']({'key':m,'newValue':_0x11fb57['name'],'oldValue':_0x10c7d6['name'],'range':_0x86caa1});for(const [_0x1ddc11,_0x232a56]of _0x10c7d6['attributes']){if(!this['_isRegisteredAttribute'](_0x1ddc11))continue;const _0x46c782=_0x11fb57['attributes']['get'](_0x1ddc11);_0x232a56!==_0x46c782&&_0x18ead1['push']({'key':_0x1ddc11,'newValue':_0x46c782,'oldValue':_0x232a56,'range':_0x86caa1});}for(const [_0x4ee575,_0x512319]of _0x11fb57['attributes'])this['_isRegisteredAttribute'](_0x4ee575)&&(_0x10c7d6['attributes']['has'](_0x4ee575)||_0x18ead1['push']({'key':_0x4ee575,'newValue':_0x512319,'oldValue':null,'range':_0x86caa1}));}0x0!=_0x18ead1['length']&&_0x5c5aac['model']['enqueueChange'](_0x550459,_0x3ade93=>{const _0x294f0d=_0x56bbb0();for(const {range:_0x48001c,key:_0x1667b7,oldValue:_0x3675e0,newValue:_0x56bd42}of _0x18ead1)this['markAttributeChange'](_0x48001c,_0x1667b7,_0x3675e0,_0x56bd42,{'groupId':_0x294f0d});this['_reduceExistingSuggestions'](_0x3ade93,_0x18ead1);});},{'priority':'lowest'}),_0x5c5aac['model']['markers']['on']('update:suggestion',(_0x535eb0,_0x4e337d,_0x4798c0)=>{if(null==_0x4798c0){const {id:_0x3b3942}=this['_splitMarkerName'](_0x4e337d['name']),_0x4b17cb=this['_suggestions']['get'](_0x3b3942);_0x4b17cb&&_0x4b17cb['addMarkerName'](_0x4e337d['name']);}}),_0x5c5aac['model']['document']['on']('change:data',()=>{const _0x432467=Array['from'](_0x5c5aac['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4af83c=>'suggestion'===this['_splitMarkerName'](_0x4af83c['name'])['group']);if(0x0===_0x432467['length'])return;_0x432467['sort']((_0x568b37,_0x53a3ea)=>{const _0x43d57a=_0x568b37['data']['oldRange'],_0x132064=_0x53a3ea['data']['oldRange'];return null===_0x43d57a&&null===_0x132064?0x0:null===_0x43d57a&&null!==_0x132064?-0x1:null!==_0x43d57a&&null===_0x132064?0x1:_0x43d57a['start']['isBefore'](_0x132064['start'])?-0x1:0x1;});const _0x59d4e2=new Set(),_0x271b37=new Set();for(const {name:_0x3b205e,data:_0x5e2b3d}of _0x432467){const {id:_0x5e8357}=this['_splitMarkerName'](_0x3b205e);if(null===_0x5e2b3d['oldRange']){const _0x3783ca=this['_handleNewSuggestionMarker'](_0x3b205e);_0x271b37['add'](_0x3783ca);}else{const _0x121421=this['_suggestions']['get'](_0x5e8357);null!==_0x5e2b3d['newRange']||_0x121421['isInContent']?(_0x59d4e2['add'](_0x121421['head']),_0x271b37['add'](_0x121421)):this['_removeSuggestion'](_0x121421);}}_0x271b37['size']>0x0&&this['_refreshSuggestionsChain'](_0x271b37);for(const _0x5f4d32 of _0x59d4e2)this['fire']('suggestionChanged',_0x5f4d32);}),_0x5c5aac['model']['on']('applyOperation',(_0x287978,_0x73fb8f)=>{const _0x461fa0=_0x73fb8f[0x0];if(!this['_suggestions']['size'])return;if(!_0x461fa0['isDocumentOperation'])return;if(_0x461fa0['batch']['isUndo']||!_0x461fa0['batch']['isLocal'])return;let _0x4ee405,_0xac4e66;switch(_0x461fa0['type']){case'insert':_0x4ee405=_0x5c5aac['model']['createPositionAt'](_0x461fa0['position']),_0xac4e66=_0x4ee405['getShiftedBy'](_0x461fa0['howMany']);break;case'split':_0x4ee405=_0x5c5aac['model']['createPositionAt'](_0x461fa0['splitPosition']),_0xac4e66=_0x5c5aac['model']['createPositionAt'](_0x461fa0['moveTargetPosition']);break;case'move':_0x4ee405=_0x5c5aac['model']['createPositionAt'](_0x461fa0['targetPosition']),_0xac4e66=_0x4ee405['getShiftedBy'](_0x461fa0['howMany']);break;default:return;}const _0x42397a=_0x5c5aac['model']['createRange'](_0x4ee405,_0xac4e66);_0x5c5aac['model']['change'](()=>{for(const {suggestion:_0xb425e3,meta:_0x1769dc}of this['_findSuggestions'](_0x42397a)){if(_0xb425e3['isMultiRange'])continue;if('formatInline'==_0xb425e3['type'])continue;const _0x594daa=this['_getAttributeKey'](_0xb425e3);if(_0x594daa&&this['_isBlockAttribute'](_0x594daa)&&'split'!=_0x461fa0['type'])continue;const _0x43d8d9=_0xb425e3['data']&&_0xb425e3['data']['multipleBlocks'];('formatBlock'!=_0xb425e3['type']||'split'==_0x461fa0['type']&&!_0x43d8d9)&&(_0x1769dc['containsRangeInObject']||'insertion'==_0xb425e3['type']&&_0x1769dc['isOwn']||_0xb425e3['getFirstRange']()['containsRange'](_0x42397a)&&this['_breakSuggestionMarker'](_0xb425e3,_0x4ee405,_0xac4e66));}});},{'priority':'lowest'}),_0x5c5aac['model']['on']('deleteContent',(_0x1e5fdc,_0x3d5d87)=>{const _0xc8c767=_0x3d5d87[0x0],_0x1199c0=_0x3d5d87[0x1];if(_0x1199c0&&_0x1199c0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xc8c767['isCollapsed'])return;const _0x249381=_0x5c5aac['model']['schema'],{start:_0x1da685,end:_0x313ed2}=_0xc8c767['getFirstRange'](),_0x190508=_0x1da685['nodeAfter']&&_0x249381['isLimit'](_0x1da685['nodeAfter'])?null:_0x249381['getNearestSelectionRange'](_0x1da685,'forward'),_0x5a6df3=_0x313ed2['nodeBefore']&&_0x249381['isLimit'](_0x313ed2['nodeBefore'])?null:_0x249381['getNearestSelectionRange'](_0x313ed2,'backward'),_0x187164=_0x5c5aac['model']['createRange'](_0x190508?_0x190508['start']:_0x1da685,_0x5a6df3?_0x5a6df3['end']:_0x313ed2);_0x5c5aac['model']['change'](_0xbe6b04=>{this['markDeletion'](_0x187164);const _0x163c11=_0x5c5aac['model']['schema']['getNearestSelectionRange'](_0x187164['start']);_0xc8c767['is']('documentSelection')?_0xbe6b04['setSelection'](_0x163c11):_0xc8c767['setTo'](_0x163c11);}),_0x1e5fdc['stop']();},{'priority':_0x897be0['normal']+0xa}),_0x5c5aac['model']['on']('insertContent',(_0x59c54e,_0x239890)=>{const _0x3b90d6=_0x239890[_0x239890['length']-0x1];_0x3b90d6&&_0x3b90d6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5c5aac['model']['change'](()=>{let _0x55913c=_0x5c5aac['model']['insertContent'](_0x239890[0x0],_0x239890[0x1],_0x239890[0x2],{'forceDefaultExecution':!0x0});if(!_0x55913c)return;_0x59c54e['return']=_0x55913c['clone']();const _0x5c2e35=_0x55913c['end']['nodeBefore'],_0x226d52=_0x5c5aac['model']['schema'];_0x5c2e35&&_0x226d52['isBlock'](_0x5c2e35)&&!_0x226d52['isObject'](_0x5c2e35)&&(_0x55913c=_0x5c5aac['model']['createRange'](_0x55913c['start'],_0x5c5aac['model']['createPositionAt'](_0x5c2e35,'end'))),this['markInsertion'](_0x55913c);}),_0x59c54e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x20cb19=new $(_0x5c5aac,this['_suggestions']);_0x5c5aac['commands']['add']('acceptSuggestion',_0x20cb19),this['enableCommand']('acceptSuggestion');const _0x5f315b=new B(_0x5c5aac,this['_suggestions']);_0x5c5aac['commands']['add']('discardSuggestion',_0x5f315b),this['enableCommand']('discardSuggestion'),_0x5c5aac['commands']['add']('acceptAllSuggestions',new x(_0x5c5aac,_0x20cb19,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5c5aac['commands']['add']('discardAllSuggestions',new x(_0x5c5aac,_0x5f315b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5c5aac['commands']['add']('acceptSelectedSuggestions',new R(_0x5c5aac,_0x20cb19,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5c5aac['commands']['add']('discardSelectedSuggestions',new R(_0x5c5aac,_0x5f315b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x15ccb0=_0x5c5aac['plugins']['get']('CommentsRepository');this['listenTo'](_0x15ccb0,'addComment',(_0x1a6f79,{threadId:_0x3ae0de})=>{const _0x54108d=this['_suggestions']['get'](_0x3ae0de);_0x54108d&&_0x54108d['commentThread']&&0x1===_0x54108d['commentThread']['length']&&this['_updateSuggestionData'](_0x3ae0de,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x15ccb0,'removeComment',(_0xd821be,{threadId:_0x1b654d})=>{const _0x6e34f2=this['_suggestions']['get'](_0x1b654d);_0x6e34f2&&_0x6e34f2['commentThread']&&!_0x6e34f2['commentThread']['length']&&this['_updateSuggestionData'](_0x1b654d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x30afc5){if(this['_adapter'])throw new _0x2d02e0('track-changes-adapter-already-set',this);this['_adapter']=_0x30afc5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5dbdce=!0x1,toJSON:_0x32146f=!0x1}={}){const _0x5e1a56=[];for(const _0x140e50 of this['_suggestions']['values']())_0x5dbdce&&!_0x140e50['isInContent']||_0x5e1a56['push'](_0x140e50);return _0x32146f?_0x5e1a56['map'](_0x553f07=>_0x553f07['toJSON']()):_0x5e1a56;}['getSuggestion'](_0x1a9596){const _0x269c30=this['_suggestions']['get'](_0x1a9596);if(!_0x269c30)throw new _0x2d02e0('track-changes-suggestion-not-found',this);return _0x269c30;}['hasSuggestion'](_0x4009e8){return this['_suggestions']['has'](_0x4009e8);}['addSuggestionData'](_0x3c586e){const {authorId:_0x9cc07e,id:_0x5553d8,attributes:_0x2126d4}=_0x3c586e,[_0x2b3688,_0x1cc4ab]=_0x3c586e['type']['split'](':'),_0x338e8a=this['_suggestions']['get'](_0x5553d8)||this['_createSuggestion'](_0x2b3688,_0x1cc4ab,_0x5553d8,_0x9cc07e,_0x2126d4);if(this['_addThreadToSuggestion'](_0x338e8a),this['_checkSuggestionCorrectness'](_0x338e8a,_0x2b3688,_0x1cc4ab||null,_0x9cc07e),_0x338e8a['createdAt']=_0x3c586e['createdAt'],_0x338e8a['_isDataLoaded']=!0x0,_0x2126d4&&_0x2126d4['@external']){const _0x21f8bd=_0x2126d4['@external'],_0x1672ab=this['_getExternalAuthor'](_0x21f8bd['authorName']);_0x338e8a['authoredAt']=_0x21f8bd['createdAt'],_0x338e8a['author']=_0x1672ab,_0x338e8a['isExternal']=!0x0;}else _0x338e8a['authoredAt']=_0x3c586e['createdAt'];switch(_0x3c586e['data']&&(_0x338e8a['data']=_0x3c586e['data']),_0x3c586e['attributes']&&(_0x338e8a['attributes']=_0x3c586e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x338e8a['_saved']=!0x0),this['_suggestionState']['get'](_0x338e8a)){case'notReady':this['_suggestionState']['set'](_0x338e8a,'dataReady');break;case'markerReady':_0x338e8a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x338e8a])),this['_refreshSuggestionsChain'](new Set([_0x338e8a])),this['_suggestionState']['set'](_0x338e8a,'ready'),this['fire']('suggestionLoaded',_0x338e8a)):this['_suggestionState']['set'](_0x338e8a,'removed');}return _0x338e8a;}['acceptSuggestion'](_0x2e20e4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4b88e9 of _0x2e20e4['getAllAdjacentSuggestions']())_0x4b88e9['accept']();});});}['discardSuggestion'](_0x59de39){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x65869b of _0x59de39['getAllAdjacentSuggestions']())_0x65869b['discard']();});});}['enableCommand'](_0x30d920,_0x5abd98){const _0x4e3965=this['editor']['commands']['get'](_0x30d920);if(!_0x4e3965)throw new _0x2d02e0('track-changes-command-not-found',this,{'commandName':_0x30d920});if(this['_enabledCommands']['has'](_0x4e3965))throw new _0x2d02e0('track-changes-enable-command-twice',this,{'commandName':_0x30d920});this['_enabledCommands']['add'](_0x4e3965),_0x5abd98&&_0x4e3965['on']('execute',(_0x1df612,_0xf2a696)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xf2a696['length']>0x0&&_0xf2a696[_0xf2a696['length']-0x1]&&_0xf2a696[_0xf2a696['length']-0x1]['forceDefaultExecution']?_0xf2a696['pop']():(_0x1df612['return']=_0x5abd98((..._0x274e51)=>_0x4e3965['execute'](..._0x274e51,{'forceDefaultExecution':!0x0}),..._0xf2a696),_0x1df612['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x47f5bd){let _0x4cdf69,_0x554a66;const _0x937717=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4cdf69=_0x47f5bd();}catch(_0x1d5549){_0x554a66=_0x1d5549;}return _0x937717||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x554a66&&_0x2d02e0['rethrowUnexpectedError'](_0x554a66,this),_0x4cdf69;}['markInsertion'](_0x5ad7e8,_0x22b2cb=null,_0x18c87c={}){if(_0x5ad7e8['isCollapsed'])return null;const _0x320b4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2d9f95,meta:_0x3f4b4d}of this['_findSuggestions'](_0x5ad7e8,'insertion'))if(_0x3f4b4d['isOwn']){if(!_0x3f4b4d['isNextTo']){if(_0x3f4b4d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2d9f95,_0x18c87c))continue;return _0x2d9f95;}if(Lt(_0x2d9f95,_0x18c87c))return _0x2d9f95;this['_breakSuggestionMarker'](_0x2d9f95,_0x5ad7e8['start'],_0x5ad7e8['end']);break;}if(_0x22b2cb==_0x2d9f95['subType']&&Lt(_0x2d9f95,_0x18c87c)){const _0x2c3604=_0x2d9f95['getFirstRange']();return _0x2c3604['start']['isEqual'](_0x5ad7e8['end'])?this['_setSuggestionRange'](_0x2d9f95,this['_model']['createRange'](_0x5ad7e8['start'],_0x2c3604['end'])):this['_setSuggestionRange'](_0x2d9f95,this['_model']['createRange'](_0x2c3604['start'],_0x5ad7e8['end'])),_0x2d9f95;}}const _0x3d5f69=_0x56bbb0(),_0x3889b6=_0x320b4['id'],_0x33819b=_0x22b2cb?'insertion:'+_0x22b2cb:'insertion',_0x485934=this['_setSuggestionData']({'id':_0x3d5f69,'type':_0x33819b,'createdAt':new Date(),'authorId':_0x3889b6,'attributes':_0x18c87c});return this['_addSuggestionMarker'](_0x33819b,_0x3d5f69,_0x3889b6,_0x5ad7e8),_0x485934;}['markMultiRangeInsertion'](_0x2382be,_0x47f905='multi',_0x25ebdd={}){const _0x5638ba=this['editor']['plugins']['get']('Users')['me'],_0x388f70=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x47f905,'join');for(const _0x899aa6 of this['getSuggestions']())if(_0x899aa6['author']['id']==_0x5638ba['id']&&'insertion'==_0x899aa6['type']&&_0x899aa6['subType']==_0x47f905&&Lt(_0x899aa6,_0x25ebdd)&&(_0x388f70(_0x899aa6['getRanges'](),_0x2382be)||_0x388f70(_0x2382be,_0x899aa6['getRanges']()))){for(const _0x3eb068 of _0x2382be)_0x899aa6['addRange'](_0x3eb068);return _0x899aa6;}for(const {suggestion:_0x356dad,meta:_0x3cd81f}of this['_findSuggestions'](_0x2382be,'insertion')){if(!_0x3cd81f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3cd81f['containsRangeInObject'])continue;if(!Lt(_0x356dad,_0x25ebdd))continue;let _0xd28489=!0x0;for(const _0x1e9e88 of _0x356dad['getRanges']())for(const _0x2fbe50 of _0x2382be)if(!_0x1e9e88['containsRange'](_0x2fbe50)){_0xd28489=!0x1;break;}if(_0xd28489)return _0x356dad;}const _0x5096a6=_0x56bbb0(),_0x133638=_0x5638ba['id'],_0x16d363='insertion:'+_0x47f905,_0x16c7dd=this['_setSuggestionData']({'id':_0x5096a6,'type':_0x16d363,'createdAt':new Date(),'authorId':_0x133638,'attributes':_0x25ebdd});for(const _0x37b455 of _0x2382be)this['_addSuggestionMarker'](_0x16d363,_0x5096a6,_0x133638,_0x37b455,u['getMultiRangeId']());return _0x16c7dd;}['markInlineFormat'](_0x2e56ea,_0x461c32,_0x5dcd5c=null,_0x2050cb={}){if(_0x5dcd5c=_0x5dcd5c||Vt(_0x461c32),_0x2e56ea['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5d3bfe=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5dcd5c,'accept');return this['forceDefaultExecution'](()=>_0x5d3bfe([_0x2e56ea],_0x461c32,_0x2050cb)),null;}const _0x456ed8=this['editor']['plugins']['get']('Users')['me'],_0x30c066=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2fffb6,meta:_0x14e0c3}of this['_findSuggestions'](_0x2e56ea,'insertion'))_0x14e0c3['isOwn']&&!_0x14e0c3['isInsideObject']&&_0x30c066['push'](..._0x2fffb6['getRanges']());}const _0x2c7d62=function(_0x43862b,_0x3068db){const _0x441aee=[];for(const _0x38cca2 of _0x3068db){const _0x25fcbc=_0x43862b['getIntersection'](_0x38cca2);_0x25fcbc&&_0x441aee['push'](_0x25fcbc);}return _0x441aee;}(_0x2e56ea,_0x30c066),_0x405984=function(_0x6756cd,_0x5bb9b5){const _0x104004=[_0x6756cd];for(const _0x328788 of _0x5bb9b5){let _0x546e94=0x0;for(;_0x546e94<_0x104004['length'];){const _0x583a1d=_0x104004[_0x546e94]['getDifference'](_0x328788);_0x104004['splice'](_0x546e94,0x1,..._0x583a1d),_0x546e94+=_0x583a1d['length'];}}return _0x104004;}(_0x2e56ea,_0x30c066);_0x2c7d62['length']&&this['_model']['change'](()=>{for(const _0x3ed2d9 of _0x2c7d62){const _0x15ef0d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5dcd5c,'accept');this['forceDefaultExecution'](()=>_0x15ef0d([_0x3ed2d9],_0x461c32,_0x2050cb));}});for(const _0x38f17c of _0x405984){let _0x242d1c=null,_0x12fce7=_0x38f17c['start'],_0x1f99dd=_0x38f17c['end'];for(const {suggestion:_0xbce2d7,meta:_0x1fcc79}of this['_findSuggestions'](_0x38f17c,'formatInline')){if(!_0x1fcc79['isOwn'])continue;if(_0xbce2d7['subType']!=_0x5dcd5c)continue;if(!Lt(_0xbce2d7,_0x2050cb))continue;const _0x48412b=_0xbce2d7['getFirstRange']();if(_0x48412b['containsRange'](_0x38f17c,!0x0))return null;_0x12fce7=_0x12fce7['isBefore'](_0x48412b['start'])?_0x12fce7:_0x48412b['start'],_0x1f99dd=_0x1f99dd['isAfter'](_0x48412b['end'])?_0x1f99dd:_0x48412b['end'],_0x242d1c?_0x48412b['start']['isBefore'](_0x242d1c['getFirstRange']()['start'])?(_0x242d1c['removeMarkers'](),_0x242d1c=_0xbce2d7):_0xbce2d7['removeMarkers']():_0x242d1c=_0xbce2d7;}const _0x3503f6=this['_model']['createRange'](_0x12fce7,_0x1f99dd);if(_0x242d1c)this['_setSuggestionRange'](_0x242d1c,_0x3503f6);else{const _0x5fc161=_0x56bbb0(),_0x3de660=_0x456ed8['id'];this['_setSuggestionData']({'id':_0x5fc161,'type':'formatInline:'+_0x5dcd5c,'data':_0x461c32,'createdAt':new Date(),'authorId':_0x3de660,'attributes':_0x2050cb}),this['_addSuggestionMarker']('formatInline:'+_0x5dcd5c,_0x5fc161,_0x3de660,_0x3503f6);}}return null;}['markBlockFormat'](_0x21d995,_0x39a707,_0x24969c=[],_0x347637=null,_0x51f86b={}){_0x39a707['formatGroupId']||(_0x39a707['formatGroupId']=_0x39a707['commandName']),_0x39a707['multipleBlocks']=_0x21d995['is']('range'),_0x347637=_0x347637||Vt(_0x39a707);const _0x1e8dd5=_0x24969c['map'](_0x3dc089=>Gt(_0x3dc089,this['_model'])),_0x38497a=_0x21d995['is']('range')?_0x21d995:Gt(_0x21d995,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3a32c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x347637,'accept');return this['forceDefaultExecution'](()=>_0x3a32c4([_0x38497a],_0x39a707,_0x51f86b)),null;}_0x1e8dd5['push'](_0x38497a);let _0x431fe7=!0x0;for(const _0x502dd9 of _0x1e8dd5)if(!this['_rangeIsInLocalUserInsertion'](_0x502dd9)){_0x431fe7=!0x1;break;}if(_0x431fe7&&'always'!==this['_trackFormatChanges']){const _0x4c3bb9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x347637,'accept');return this['forceDefaultExecution'](()=>_0x4c3bb9([_0x38497a],_0x39a707,_0x51f86b)),null;}let _0x55f240=null,_0x413913=_0x38497a['start'],_0x481b15=_0x38497a['end'];for(const {suggestion:_0x477756,meta:_0x4a736b}of this['_findSuggestions'](_0x38497a,'formatBlock')){if(!_0x4a736b['isOwn'])continue;if(_0x4a736b['isNextTo']||_0x4a736b['containsRangeInObject']||_0x4a736b['isInsideObject'])continue;if(_0x477756['data']['formatGroupId']!=_0x39a707['formatGroupId'])continue;if(!Lt(_0x477756,_0x51f86b))continue;const _0x5c5116=_0x477756['getFirstRange']();if(_0x477756['subType']==_0x347637){if(_0x5c5116['containsRange'](_0x38497a,!0x0))return null;_0x413913=_0x413913['isBefore'](_0x5c5116['start'])?_0x413913:_0x5c5116['start'],_0x481b15=_0x481b15['isAfter'](_0x5c5116['end'])?_0x481b15:_0x5c5116['end'],_0x55f240?_0x5c5116['start']['isBefore'](_0x55f240['getFirstRange']()['start'])?(_0x55f240['removeMarkers'](),_0x55f240=_0x477756):_0x477756['removeMarkers']():_0x55f240=_0x477756;}else{const _0x44f596=_0x38497a['getIntersection'](_0x5c5116);this['_cutOutSuggestionMarker'](_0x477756,_0x44f596);}}const _0x2e54ef=this['editor']['plugins']['get']('Users')['me'],_0x4346ba=_0x56bbb0(),_0x5b4a93=_0x2e54ef['id'];if(_0x55f240)return this['_setSuggestionRange'](_0x55f240,this['_model']['createRange'](_0x413913,_0x481b15)),_0x55f240;{const _0x3b35da=this['_setSuggestionData']({'id':_0x4346ba,'type':'formatBlock:'+_0x347637,'data':_0x39a707,'createdAt':new Date(),'authorId':_0x5b4a93,'attributes':_0x51f86b});return this['_addSuggestionMarker']('formatBlock:'+_0x347637,_0x4346ba,_0x5b4a93,this['_model']['createRange'](_0x413913,_0x481b15)),_0x3b35da;}}['markMultiRangeBlockFormat'](_0x50c56c,_0x19c80b,_0xb3b384=[],_0x351e58=null,_0x1c802e={}){_0x19c80b['formatGroupId']||(_0x19c80b['formatGroupId']=_0x19c80b['commandName']);const _0x65a339=_0x50c56c[0x0];_0x19c80b['multipleBlocks']=_0x65a339['is']('range'),_0x351e58=_0x351e58||Vt(_0x19c80b);const _0x94f0d6=_0xb3b384['map'](_0x39a19a=>Gt(_0x39a19a,this['_model'])),_0x46116d=_0x65a339['is']('range')?_0x50c56c:_0x50c56c['map'](_0x594572=>Gt(_0x594572,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3fe421=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x351e58,'accept');return this['forceDefaultExecution'](()=>_0x3fe421(_0x46116d,_0x19c80b,_0x1c802e)),null;}_0x94f0d6['push'](..._0x46116d);let _0x45f6ba=!0x0;for(const _0x168ee7 of _0x94f0d6)if(!this['_rangeIsInLocalUserInsertion'](_0x168ee7)){_0x45f6ba=!0x1;break;}if(_0x45f6ba&&'always'!==this['_trackFormatChanges']){const _0x331fad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x351e58,'accept');return this['forceDefaultExecution'](()=>_0x331fad(_0x46116d,_0x19c80b,_0x1c802e)),null;}const _0x3c7cbe=this['editor']['plugins']['get']('Users')['me'];for(const _0x4003a6 of this['getSuggestions']()){if(_0x4003a6['author']['id']!=_0x3c7cbe['id'])continue;if('formatBlock'!=_0x4003a6['type']||_0x4003a6['data']['formatGroupId']!=_0x19c80b['formatGroupId'])continue;if(!Lt(_0x4003a6,_0x1c802e))continue;const _0xfcea20=_0x4003a6['subType']==_0x351e58;for(let _0x12ee02=0x0;_0x12ee02<_0x46116d['length'];_0x12ee02++){const _0x415430=_0x46116d[_0x12ee02];for(const _0x30c40b of _0x4003a6['getMarkers']()){const _0x46ec24=_0x30c40b['getRange']();if(_0x415430['isEqual'](_0x46ec24)){_0xfcea20?(_0x46116d['splice'](_0x12ee02,0x1),_0x12ee02--):_0x4003a6['removeMarker'](_0x30c40b['name']);break;}}}}if(0x0==_0x46116d['length'])return null;const _0x3b2500=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x351e58,'join');for(const _0x305e38 of this['getSuggestions']())if(_0x305e38['author']['id']==_0x3c7cbe['id']&&'formatBlock'==_0x305e38['type']&&_0x305e38['data']['formatGroupId']==_0x19c80b['formatGroupId']&&_0x305e38['subType']==_0x351e58&&Lt(_0x305e38,_0x1c802e)&&(_0x3b2500(_0x305e38['getRanges'](),_0x46116d)||_0x3b2500(_0x46116d,_0x305e38['getRanges']()))){for(const _0x4f0055 of _0x46116d)_0x305e38['addRange'](_0x4f0055);return _0x305e38;}const _0x252c29=_0x56bbb0(),_0x2364c2=_0x3c7cbe['id'],_0x54b4df='formatBlock:'+_0x351e58,_0x446720=this['_setSuggestionData']({'id':_0x252c29,'type':_0x54b4df,'data':_0x19c80b,'createdAt':new Date(),'authorId':_0x2364c2,'attributes':_0x1c802e});for(const _0x210dc3 of _0x46116d)this['_addSuggestionMarker'](_0x54b4df,_0x252c29,_0x2364c2,_0x210dc3,u['getMultiRangeId']());return _0x446720;}['markDeletion'](_0x103374,_0x522778=null,_0x5c5341={}){if(_0x103374['isCollapsed'])return null;const _0x29ec1d=this['editor']['plugins']['get']('Users')['me'],_0x503c4d=new _0x3c7933(_0x103374['start'],_0x103374['end']);for(const {suggestion:_0x5e3814,meta:_0x4b3114}of this['_findSuggestions'](_0x503c4d,'insertion'))if(_0x4b3114['isOwn']&&!_0x4b3114['isNextTo']){if(_0x5e3814['isMultiRange']){const _0x42a59c=_0x5e3814['getRanges']()['filter'](_0x181ee2=>'$graveyard'!=_0x181ee2['root']['rootName']);_0x42a59c['every'](_0x274a28=>_0x503c4d['containsRange'](_0x274a28,!0x0))&&_0x5e3814['discard']();if(_0x42a59c['some'](_0x520033=>_0x520033['containsRange'](_0x503c4d,!0x0))){const _0xe30e5f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x522778,'accept');return this['forceDefaultExecution'](()=>_0xe30e5f([_0x503c4d],null,_0x5c5341)),null;}}else{const _0x247427=_0x503c4d['getIntersection'](_0x5e3814['getFirstRange']());null!==_0x247427&&_0x5e3814['_onDiscard']([_0x247427],null,_0x5c5341);}}if(_0x503c4d['detach'](),_0x503c4d['isCollapsed']||'$graveyard'==_0x503c4d['root']['rootName'])return null;let _0x37b5ee=null,_0x59530d=_0x503c4d['start'],_0x24bb3b=_0x503c4d['end'];const _0x1c5744=this['_findSuggestions'](_0x503c4d,'deletion');for(const {suggestion:_0xebb3cf,meta:_0x235209}of _0x1c5744){const _0x4e366b=this['_model']['createRange'](_0x59530d,_0x24bb3b);if(_0x235209['isOwn']&&(this['_mergeNestedSuggestions']||!_0x235209['containsRangeInObject']&&!_0x235209['isInsideObject'])){if(_0xebb3cf['isMultiRange']){if(!Lt(_0xebb3cf,_0x5c5341))continue;let _0x350607=!0x0;for(const _0x5b1a54 of _0xebb3cf['getRanges']()){if(_0x5b1a54['containsRange'](_0x4e366b,!0x0))return _0xebb3cf;_0x4e366b['containsRange'](_0x5b1a54)||(_0x350607=!0x1);}_0x350607&&_0xebb3cf['discard']();}else{const _0x3f8b8e=_0xebb3cf['getFirstRange']();if(_0x3f8b8e['containsRange'](_0x4e366b,!0x0))return _0xebb3cf;if(!Lt(_0xebb3cf,_0x5c5341)){_0x4e366b['containsRange'](_0x3f8b8e)?_0xebb3cf['removeMarkers']():_0x3f8b8e['containsPosition'](_0x59530d)?_0x59530d=_0x3f8b8e['end']:_0x3f8b8e['containsPosition'](_0x24bb3b)&&(_0x24bb3b=_0x3f8b8e['start']);continue;}_0x59530d=_0x59530d['isBefore'](_0x3f8b8e['start'])?_0x59530d:_0x3f8b8e['start'],_0x24bb3b=_0x24bb3b['isAfter'](_0x3f8b8e['end'])?_0x24bb3b:_0x3f8b8e['end'],_0x5c5341=Object['assign']({},_0xebb3cf['attributes']),_0x37b5ee?_0x3f8b8e['start']['isBefore'](_0x37b5ee['getFirstRange']()['start'])?(_0x37b5ee['removeMarkers'](),_0x37b5ee=_0xebb3cf):_0xebb3cf['removeMarkers']():_0x37b5ee=_0xebb3cf;}}}if(_0x37b5ee)return this['_setSuggestionRange'](_0x37b5ee,this['_model']['createRange'](_0x59530d,_0x24bb3b)),_0x37b5ee;{const _0x1b69dc=_0x56bbb0(),_0x1a381b=this['_model']['createRange'](_0x59530d,_0x24bb3b),_0x5ea4e3=_0x29ec1d['id'],_0x4f6ce1=_0x522778?'deletion:'+_0x522778:'deletion',_0x8f418c=this['_setSuggestionData']({'id':_0x1b69dc,'type':_0x4f6ce1,'createdAt':new Date(),'authorId':_0x5ea4e3,'attributes':_0x5c5341});return this['_addSuggestionMarker'](_0x4f6ce1,_0x1b69dc,_0x5ea4e3,_0x1a381b),_0x8f418c;}}['markMultiRangeDeletion'](_0x2313d8,_0x1864c4='multi',_0x272544={}){const _0x598d28=this['editor']['plugins']['get']('Users')['me'],_0x1d63f9=_0x2313d8['map'](_0x4af3a2=>new _0x3c7933(_0x4af3a2['start'],_0x4af3a2['end'])),_0x176d09=new Set();for(const {suggestion:_0x5478ff,meta:_0x20a77d}of this['_findSuggestions'](_0x1d63f9,'insertion'))_0x20a77d['isOwn']&&!_0x20a77d['isNextTo']&&_0x176d09['add'](_0x5478ff);for(const _0x26ae08 of _0x176d09)if(_0x26ae08['isMultiRange']){const _0x53b30d=_0x26ae08['getRanges']();(!_0x26ae08['attributes']||!_0x26ae08['attributes']['skipNestingCheck'])&&(_0x53b30d['every'](_0x213d6b=>_0x1d63f9['some'](_0x18b017=>_0x18b017['containsRange'](_0x213d6b,!0x0)))&&_0x26ae08['discard']());if(_0x1d63f9['every'](_0x42a886=>_0x53b30d['some'](_0x556b18=>_0x556b18['containsRange'](_0x42a886,!0x0)))){const _0x376e70=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1864c4,'accept');return this['forceDefaultExecution'](()=>_0x376e70(_0x2313d8,null,_0x272544)),null;}}else{const _0x12d8c7=_0x26ae08['getFirstRange']();_0x1d63f9['some'](_0x26777f=>_0x26777f['containsRange'](_0x12d8c7,!0x0))&&_0x26ae08['discard']();if(_0x1d63f9['every'](_0x518a42=>_0x12d8c7['containsRange'](_0x518a42,!0x0))){const _0xf8e318=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1864c4,'accept');return this['forceDefaultExecution'](()=>_0xf8e318(_0x1d63f9,null,_0x272544)),null;}}const _0x3d0df6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1864c4,'join');let _0x4bc7e9=null;for(const _0x486817 of this['getSuggestions']())if(_0x486817['author']['id']==_0x598d28['id']&&_0x486817['isInContent']&&'deletion'==_0x486817['type']&&_0x486817['subType']==_0x1864c4&&Lt(_0x486817,_0x272544)&&(_0x3d0df6(_0x486817['getRanges'](),_0x1d63f9)||_0x3d0df6(_0x1d63f9,_0x486817['getRanges']()))){if(_0x4bc7e9){if(_0x486817['commentThread']&&_0x486817['commentThread']['length'])continue;for(const _0x1b56fc of _0x486817['getRanges']())_0x4bc7e9['isIntersectingWithRange'](_0x1b56fc)||_0x4bc7e9['addRange'](_0x1b56fc);_0x486817['removeMarkers']();}else{_0x4bc7e9=_0x486817;for(const _0x1aefae of _0x1d63f9)_0x486817['isIntersectingWithRange'](_0x1aefae)||_0x486817['addRange'](_0x1aefae);}}if(_0x4bc7e9)return _0x4bc7e9;_0x176d09['clear']();for(const {suggestion:_0x4c1bc3,meta:_0x40d1db}of this['_findSuggestions'](_0x1d63f9,'deletion'))_0x40d1db['isOwn']&&(this['_mergeNestedSuggestions']||!_0x40d1db['containsRangeInObject']&&!_0x40d1db['isInsideObject'])&&Lt(_0x4c1bc3,_0x272544)&&_0x176d09['add'](_0x4c1bc3);for(const _0x3c6975 of _0x176d09){const _0xcd7c97=_0x3c6975['getRanges']();if(!_0x272544||!_0x272544['skipNestingCheck']){if(_0x1d63f9['every'](_0x421c69=>_0xcd7c97['some'](_0x47af49=>_0x47af49['containsRange'](_0x421c69,!0x0))))return _0x3c6975;}(!_0x3c6975['attributes']||!_0x3c6975['attributes']['skipNestingCheck'])&&(_0xcd7c97['every'](_0x113620=>_0x1d63f9['some'](_0x2c1436=>_0x2c1436['containsRange'](_0x113620,!0x0)))&&_0x3c6975['discard']());}const _0x1a95b4=_0x56bbb0(),_0xd3cb57=_0x598d28['id'],_0x4c94f7='deletion:'+_0x1864c4,_0x265dc7=this['_setSuggestionData']({'id':_0x1a95b4,'type':_0x4c94f7,'createdAt':new Date(),'authorId':_0xd3cb57,'attributes':_0x272544});for(const _0x2969cf of _0x1d63f9)_0x2969cf['detach'](),_0x2969cf['isCollapsed']||'$graveyard'==_0x2969cf['root']['rootName']||this['_addSuggestionMarker'](_0x4c94f7,_0x1a95b4,_0xd3cb57,_0x2969cf,u['getMultiRangeId']());return _0x265dc7;}['markAttributeChange'](_0x34ab3e,_0x5ecf84,_0x30a98a,_0x1e2279,_0x34c7a0){if(_0x34ab3e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x45daa7=this['editor']['plugins']['get']('Users')['me']['id'],_0x36616c=Array['from'](this['_suggestions']['values']())['filter'](_0x2b259d=>'attribute'==_0x2b259d['type']&&_0x2b259d['data']['key']==_0x5ecf84&&_0x2b259d['isIntersectingWithRange'](_0x34ab3e));if('default'===this['_trackFormatChanges']){const _0x59a8fb=this['_findSuggestions'](_0x34ab3e,'insertion')['filter'](({meta:_0xe313ba})=>_0xe313ba['isOwn']&&!_0xe313ba['isInsideObject']&&!_0xe313ba['isNextTo'])['map'](({suggestion:_0x1eb31b})=>_0x1eb31b);_0x36616c['unshift'](..._0x59a8fb);}const _0x342993=new Map([[_0x34ab3e,_0x30a98a]]);for(const _0xb090a1 of _0x36616c){const _0x2310da='attribute'==_0xb090a1['type']?_0xb090a1['data']['oldValue']:void 0x0,_0x1d561d=_0xb090a1['getFirstRange'](),_0x2a7fae=Array['from'](_0x342993['keys']())['find'](_0x3d1553=>_0x3d1553['isIntersecting'](_0x1d561d));if(!_0x2a7fae)continue;const _0x139ed9=_0x2a7fae['getDifference'](_0x1d561d);this['_isBlockAttribute'](_0x5ecf84)&&'insertion'==_0xb090a1['type']&&0x0!=_0x139ed9['length']||(_0x342993['delete'](_0x2a7fae),_0x139ed9['forEach'](_0x4c0cd0=>{_0x342993['set'](_0x4c0cd0,_0x30a98a);}),'insertion'!=_0xb090a1['type']&&_0x2310da!=_0x1e2279&&_0x342993['set'](_0x2a7fae['getIntersection'](_0x1d561d),_0x2310da));}const _0x2b1eb0=[];for(const [_0xd6be3e,_0xc91500]of _0x342993){const _0x44bbe1=_0x56bbb0(),_0x3a885d={'key':_0x5ecf84,'oldValue':_0xc91500,'newValue':_0x1e2279};_0x5ecf84['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':_0x5ecf84});const _0x3e024a=('attribute:'+(_0x5ecf84+'|'+Vt({'newValue':_0x1e2279})))['substring'](0x0,0x3c),_0x330d82=this['_setSuggestionData']({'id':_0x44bbe1,'type':_0x3e024a,'data':_0x3a885d,'createdAt':new Date(),'authorId':_0x45daa7,'attributes':_0x34c7a0});_0x2b1eb0['push'](_0x330d82),this['_addSuggestionMarker'](_0x3e024a,_0x44bbe1,_0x45daa7,_0xd6be3e);}return _0x2b1eb0;}['enableDefaultAttributesIntegration'](_0x152c62){this['enableCommand'](_0x152c62,(_0x3017f9,..._0x393071)=>{this['_recordAttributeChanges'](()=>{_0x3017f9(..._0x393071);});});}['registerBlockAttribute'](_0x4a574c){this['_blockAttributeKeys']['add'](_0x4a574c);}['registerInlineAttribute'](_0x26f280){this['_inlineAttributeKeys']['add'](_0x26f280);}['_getAttributeKey'](_0x8eabdc){return'attribute'==_0x8eabdc['type']?_0x8eabdc['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1dcfa9,_0x4651e0){const _0x4e8821=_0x1dcfa9['getFirstMarker']();this['_model']['change'](_0x10ad9f=>{_0x10ad9f['updateMarker'](_0x4e8821,{'range':_0x4651e0});});}['_addThreadToSuggestion'](_0x25a4c3){const _0x34d10b=_0x25a4c3['id'],_0x3b8159=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x34d10b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3b8159,'threadId':_0x34d10b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x30861a=this['_commentsRepository']['getCommentThread'](_0x34d10b);_0x30861a['unbind']('isRemovable'),_0x30861a['isRemovable']=!0x1,_0x25a4c3['commentThread']=_0x30861a;}['_checkSuggestionCorrectness'](_0x24649a,_0x29f895,_0x3475,_0x137f72){if(_0x24649a['type']!=_0x29f895||_0x24649a['subType']!=_0x3475||_0x24649a['creator']['id']!=_0x137f72)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2d02e0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3bad3d,_0x218f16){const _0x465945=_0x3bad3d['getFirstRange']();if(_0x218f16['isEqual'](_0x465945))_0x3bad3d['removeMarkers']();else{if(_0x465945['containsRange'](_0x218f16)){const _0x3b7817=this['_model']['createPositionAt'](_0x218f16['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3bad3d,this['_model']['createRange'](_0x465945['start'],_0x3b7817));const _0x75d44=_0x56bbb0(),_0x226f39=_0x3bad3d['creator']['id'],_0xca6fee=_0x3bad3d['type']+':'+_0x3bad3d['subType'];this['_setSuggestionData']({'id':_0x75d44,'type':_0xca6fee,'createdAt':new Date(),'authorId':_0x226f39,'data':_0x3bad3d['data'],'attributes':_0x3bad3d['attributes']});const _0x105bd6=this['_model']['createPositionAt'](_0x218f16['end']['parent'],'after'),_0x3572d0=this['_model']['createRange'](_0x105bd6,_0x465945['end']);this['_addSuggestionMarker'](_0xca6fee,_0x75d44,_0x226f39,_0x3572d0);}else{if(_0x465945['containsPosition'](_0x218f16['start'])){const _0x201be8=this['_model']['createPositionAt'](_0x218f16['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3bad3d,this['_model']['createRange'](_0x465945['start'],_0x201be8));}else{const _0x58e076=this['_model']['createPositionAt'](_0x218f16['end']['parent'],'after');this['_setSuggestionRange'](_0x3bad3d,this['_model']['createRange'](_0x58e076,_0x465945['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x410cba){for(const {suggestion:_0x5e04ab,meta:_0x5411ab}of this['_findSuggestions'](_0x410cba,'insertion')){if(!_0x5411ab['isOwn'])continue;const _0x2b58c2=_0x5e04ab['getRanges']();for(const _0x5d1cbe of _0x2b58c2)if(!_0x410cba['getDifference'](_0x5d1cbe)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x35a407){const _0x45e117=this['editor']['plugins']['get']('Users')['getUser'](_0x35a407);if(!_0x45e117)throw new _0x2d02e0('track-changes-user-not-found',this);return _0x45e117;}['_getExternalAuthor'](_0x60a0c2){const _0xf020a6=this['editor']['plugins']['get']('Users'),_0x4cbce3=_0x55df95('external:'+_0x60a0c2),_0x56dc44=_0xf020a6['getUser'](_0x4cbce3);return _0x56dc44||_0xf020a6['addUser']({'id':_0x4cbce3,'name':_0x60a0c2});}['_createSuggestion'](_0x4467b4,_0x321d07,_0x26c350,_0xe34f60,_0x1b9eb8){const _0x1c549d=this['_getAuthorFromId'](_0xe34f60),_0x2c834f=this['_suggestionFactory']['buildSuggestion'](_0x4467b4,_0x321d07,_0x26c350,_0x1c549d,_0x1b9eb8,_0xb8140c=>{this['_updateSuggestionData'](_0x26c350,{'attributes':_0xb8140c});const _0x32417b=this['getSuggestion'](_0x26c350);this['_joinWithAdjacentSuggestions'](new Set([_0x32417b])),this['_refreshSuggestionsChain'](new Set([_0x32417b]));});return this['listenTo'](_0x2c834f,'accept',()=>{this['_updateSuggestionData'](_0x26c350,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2c834f,'discard',()=>{this['_updateSuggestionData'](_0x26c350,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x26c350,_0x2c834f),this['_suggestionState']['set'](_0x2c834f,'notReady'),_0x2c834f;}['_splitMarkerName'](_0x422191){const _0x3e5ebb=_0x422191['split'](':');return{'group':_0x3e5ebb[0x0],'type':_0x3e5ebb[0x1],'subType':_0x3e5ebb['length']>=0x5?_0x3e5ebb[0x2]:null,'id':_0x3e5ebb['length']<0x5?_0x3e5ebb[0x2]:_0x3e5ebb[0x3],'authorId':_0x3e5ebb['length']<0x5?_0x3e5ebb[0x3]:_0x3e5ebb[0x4],'markerCount':0x6==_0x3e5ebb['length']?_0x3e5ebb[0x5]:null};}['_breakSuggestionMarker'](_0x458ad1,_0x6dd555,_0x1062ba){const _0x4c1f58=_0x458ad1['getFirstRange'](),_0x3ca67f=_0x4c1f58['start'],_0xaad47b=_0x4c1f58['end'];this['_setSuggestionRange'](_0x458ad1,this['_model']['createRange'](_0x3ca67f,_0x6dd555));const _0x3ed36c=_0x56bbb0(),_0x566436=_0x458ad1['creator']['id'],_0x53d614=_0x458ad1['type']+(_0x458ad1['subType']?':'+_0x458ad1['subType']:'');this['_setSuggestionData']({'id':_0x3ed36c,'type':_0x53d614,'createdAt':new Date(),'authorId':_0x566436,'originalSuggestionId':_0x458ad1['id'],'attributes':_0x458ad1['attributes'],'data':_0x458ad1['data']});const _0x51834b=this['_getAttributeKey'](_0x458ad1);('formatBlock'==_0x458ad1['type']||_0x51834b&&this['_isBlockAttribute'](_0x51834b))&&(_0x1062ba=this['_model']['createPositionBefore'](_0x1062ba['parent'])),this['_addSuggestionMarker'](_0x53d614,_0x3ed36c,_0x566436,this['_model']['createRange'](_0x1062ba,_0xaad47b));}['_findSuggestions'](_0x12c2c8,_0x5e80d6=null){const _0x3c0094=[],_0x1a3ea9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x12c2c8)||(_0x12c2c8=[_0x12c2c8]);for(const _0x16c473 of this['getSuggestions']()){if(!_0x16c473['isInContent'])continue;if(_0x5e80d6&&_0x16c473['type']!=_0x5e80d6)continue;let _0x16760b=!0x1;for(const _0x40ca4a of _0x16c473['getRanges']()){for(const _0x45676c of _0x12c2c8){const _0x38b5c1=_0x45676c['start']['isEqual'](_0x40ca4a['end'])||_0x45676c['end']['isEqual'](_0x40ca4a['start']);if(_0x38b5c1||_0x45676c['getIntersection'](_0x40ca4a)){const _0x2f3fd5=_0x45676c['containsRange'](_0x40ca4a)&&Rt(this['_model']['schema'],_0x40ca4a['start'],_0x45676c),_0x597c48=_0x40ca4a['containsRange'](_0x45676c)&&Rt(this['_model']['schema'],_0x45676c['start'],_0x40ca4a);_0x3c0094['push']({'suggestion':_0x16c473,'meta':{'isOwn':_0x1a3ea9==_0x16c473['author'],'isNextTo':_0x38b5c1,'isInsideObject':_0x2f3fd5,'containsRangeInObject':_0x597c48}}),_0x16760b=!0x0;break;}}if(_0x16760b)break;}}return _0x3c0094;}['_addSuggestionMarker'](_0x123acc,_0x4147b8,_0xb46450,_0x1fefec,_0x3c1916){this['_model']['change'](_0x2d0c22=>{let _0x1d39f1='suggestion:'+_0x123acc+':'+_0x4147b8+':'+_0xb46450;_0x3c1916&&(_0x1d39f1=_0x1d39f1+':'+_0x3c1916),_0x2d0c22['addMarker'](_0x1d39f1,{'range':_0x1fefec,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x18d09a){const _0x312f94=_0x18d09a['previous'],_0x496ad9=_0x18d09a['next'];_0x18d09a['previous']=null,_0x18d09a['next']=null,null!=_0x312f94&&_0x312f94['next']==_0x18d09a&&(_0x312f94['next']=_0x496ad9),null!=_0x496ad9&&_0x496ad9['previous']==_0x18d09a&&(_0x496ad9['previous']=_0x312f94),'ready'==this['_suggestionState']['get'](_0x18d09a)&&(this['_suggestionState']['set'](_0x18d09a,'removed'),this['fire']('suggestionUnloaded',_0x18d09a,_0x312f94,_0x496ad9));}['_setSuggestionData'](_0x2ffad5){const _0x42a98b=_0x2ffad5['id'],_0x41560d=this['addSuggestionData'](_0x2ffad5);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4a2919=this['editor']['plugins']['get']('PendingActions'),_0x5a2097=_0x41560d['hasComments'],_0x41ac13=_0x41560d['subType']?_0x41560d['type']+':'+_0x41560d['subType']:_0x41560d['type'],_0x22467c=this['editor']['locale'],_0x3855ee=_0x4a2919['add'](o(_0x22467c,'PENDING_ACTION_SUGGESTION')),_0x15dcfc={'id':_0x42a98b,'type':_0x41ac13,'hasComments':_0x5a2097,'data':_0x2ffad5['data']||null,'originalSuggestionId':_0x2ffad5['originalSuggestionId']||null,'attributes':_0x41560d['attributes']};this['_adapter']['addSuggestion'](_0x15dcfc)['then'](_0x3dd497=>{_0x41560d['_saved']=!0x0,_0x4a2919['remove'](_0x3855ee),_0x3dd497&&_0x3dd497['createdAt']&&(this['_suggestions']['get'](_0x42a98b)['createdAt']=_0x3dd497['createdAt']);})['catch'](_0x5434f7=>{throw _0x3bf2ef('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x41560d['discard']();}),_0x41560d['stopListening'](),this['_suggestions']['delete'](_0x41560d['id']),this['_suggestionState']['delete'](_0x41560d),_0x5434f7;});}return _0x41560d;}['_isBlockAttribute'](_0x7d0b57){return this['_blockAttributeKeys']['has'](_0x7d0b57);}['_updateSuggestionData'](_0x129045,_0x245401){const _0x362b3d=this['editor']['plugins']['get']('PendingActions'),_0x452c19=this['getSuggestion'](_0x129045);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x452c19['_saved']){const _0x5ee03b=_0x362b3d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x129045,_0x245401)['then'](()=>{_0x362b3d['remove'](_0x5ee03b);});}else _0x452c19['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x129045,_0x245401);});}}['_getSuggestionData'](_0x2e72dc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2d02e0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2e72dc);}['_handleNewSuggestionMarker'](_0x49470f){const {id:_0x5523bc,type:_0x433b41,subType:_0x859ca5,authorId:_0x3c6677}=this['_splitMarkerName'](_0x49470f),_0x3cbf28=this['_suggestions']['get'](_0x5523bc)||this['_createSuggestion'](_0x433b41,_0x859ca5,_0x5523bc,_0x3c6677,{});switch(this['_checkSuggestionCorrectness'](_0x3cbf28,_0x433b41,_0x859ca5,_0x3c6677),this['_suggestionState']['get'](_0x3cbf28)){case'notReady':this['_getSuggestionData'](_0x5523bc)['then'](_0x161736=>{let _0x5a6241=Promise['resolve']();_0x161736['hasComments']&&(_0x5a6241=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5523bc})),_0x5a6241['then'](()=>{this['addSuggestionData'](_0x161736)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3cbf28,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5523bc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3cbf28,'ready'),this['fire']('suggestionLoaded',_0x3cbf28);break;case'ready':this['fire']('suggestionChanged',_0x3cbf28);}return _0x3cbf28['addMarkerName'](_0x49470f),_0x3cbf28;}['_refreshSuggestionsChain'](_0x283e7c){const _0x456142=Array['from'](_0x283e7c),_0x296ce7=_0x456142['filter'](_0x359c70=>'attribute'==_0x359c70['type']);this['_refreshAttributeSuggestionsChain'](_0x296ce7);const _0x565733=_0x456142['filter'](_0x230ce9=>!_0x230ce9['isMultiRange']&&'attribute'!=_0x230ce9['type']),_0x317acf=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x136026=>!_0x136026['isMultiRange']&&'attribute'!=_0x136026['type']),_0x1f6ff0=_0x317acf['filter'](_0x40253b=>!_0x283e7c['has'](_0x40253b)),_0x182477=new Map(_0x317acf['map'](_0x2f8e07=>[_0x2f8e07,this['_suggestionFactory']['getSuggestionCallback'](_0x2f8e07['type'],_0x2f8e07['subType'],'chain')])),_0x31d8f3=new Map(_0x317acf['map'](_0x2f172b=>[_0x2f172b,_0x2f172b['getFirstRange']()])),_0xc01c13=new Set(),_0x396346=new Set();for(let _0x4fca0d=0x0;_0x4fca0d<_0x565733['length'];_0x4fca0d++)_0x2cccfc(_0x565733[_0x4fca0d],_0x565733,_0x4fca0d+0x1);for(let _0x1b98b3=0x0;_0x1b98b3<_0x565733['length'];_0x1b98b3++)_0x2cccfc(_0x565733[_0x1b98b3],_0x1f6ff0,0x0);const _0x9fef36=new Set();for(let _0x1ec574=0x0;_0x1ec574<_0x565733['length'];_0x1ec574++){const _0x208e8a=_0x565733[_0x1ec574];!_0x396346['has'](_0x208e8a)&&_0x208e8a['previous']&&(_0x9fef36['add'](_0x208e8a['previous']),_0x208e8a['previous']['next']===_0x208e8a&&(_0x208e8a['previous']['next']=null),_0x208e8a['previous']=null),!_0xc01c13['has'](_0x208e8a)&&_0x208e8a['next']&&(_0x9fef36['add'](_0x208e8a['next']),_0x208e8a['next']['previous']===_0x208e8a&&(_0x208e8a['next']['previous']=null),_0x208e8a['next']=null);}function _0x2cccfc(_0x6cb170,_0x45dba0,_0x3657e7){for(let _0xe78534=_0x3657e7;_0xe78534<_0x45dba0['length'];_0xe78534++){const _0x40d598=_0x5bc03a(_0x6cb170,_0x45dba0[_0xe78534]);_0x40d598&&(_0x40d598[0x0]['next']=_0x40d598[0x1],_0x40d598[0x1]['previous']=_0x40d598[0x0],_0xc01c13['add'](_0x40d598[0x0]),_0x396346['add'](_0x40d598[0x1]));}}function _0x5bc03a(_0x5ef9c2,_0x2118ac){if(_0x5ef9c2['author']['id']!==_0x2118ac['author']['id'])return null;const _0x10bc39=_0x182477['get'](_0x5ef9c2)(_0x5ef9c2,_0x2118ac,_0x31d8f3['get'](_0x5ef9c2),_0x31d8f3['get'](_0x2118ac));if(!_0x10bc39)return null;return _0x182477['get'](_0x2118ac)(_0x5ef9c2,_0x2118ac,_0x31d8f3['get'](_0x5ef9c2),_0x31d8f3['get'](_0x2118ac))?_0x10bc39[0x1]['commentThread']&&_0x10bc39[0x1]['commentThread']['length']?null:_0x10bc39:null;}_0x9fef36['size']&&this['_refreshSuggestionsChain'](_0x9fef36);}['_refreshAttributeSuggestionsChain'](_0x4037d9){if(0x0==_0x4037d9['length'])return;const _0x586b7d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b865c=>'attribute'==_0x2b865c['type']&&_0x2b865c['_isDataLoaded']),_0x1ebc47=[],_0x133ee4=new Map();for(const _0x488550 of _0x586b7d){const _0x1f5059=_0x55df95(_0x488550['attributes']);_0x133ee4['has'](_0x1f5059)||(_0x133ee4['set'](_0x1f5059,_0x1ebc47['length']),_0x1ebc47['push']([]));const _0x599cad=_0x133ee4['get'](_0x1f5059);_0x1ebc47[_0x599cad]['push'](_0x488550);}!(function(){_0x1ebc47['sort']((_0x784d3d,_0x475bec)=>{const _0x325691=_0x784d3d[0x0]['createdAt'],_0x443695=_0x475bec[0x0]['createdAt'];return _0x325691==_0x443695?_0x784d3d[0x0]['attributes']['groupId']<_0x475bec[0x0]['attributes']['groupId']?-0x1:0x1:_0x325691<_0x443695?-0x1:0x1;});for(const _0x57d324 of _0x1ebc47)_0x57d324['sort']((_0x19ac12,_0x17394a)=>_0x19ac12['id']<_0x17394a['id']?-0x1:0x1);}());for(let _0x2f3ed6=0x0;_0x2f3ed6<_0x1ebc47['length'];_0x2f3ed6++){if(0x0==_0x1ebc47[_0x2f3ed6]['length'])continue;const _0x80d4c4=[];for(let _0x2ead72=_0x2f3ed6+0x1;_0x2ead72<_0x1ebc47['length'];_0x2ead72++)0x0!=_0x1ebc47[_0x2ead72]['length']&&_0x315fa1(_0x1ebc47[_0x2f3ed6],_0x1ebc47[_0x2ead72])&&_0x80d4c4['push'](_0x2ead72);for(const _0x2f5751 of _0x80d4c4)_0x1ebc47[_0x2f3ed6]=_0x1ebc47[_0x2f3ed6]['concat'](_0x1ebc47[_0x2f5751]),_0x1ebc47[_0x2f5751]=[];}for(const _0x28b209 of _0x1ebc47)for(let _0x2f5cf6=0x0;_0x2f5cf6<_0x28b209['length'];_0x2f5cf6++)_0x28b209[_0x2f5cf6]['next']=_0x28b209[_0x2f5cf6+0x1]||null;for(const _0x509f99 of _0x1ebc47)for(let _0x56c60d=0x0;_0x56c60d<_0x509f99['length'];_0x56c60d++)_0x509f99[_0x56c60d]['previous']=_0x509f99[_0x56c60d-0x1]||null;function _0x315fa1(_0x326a79,_0x650fb0){if(_0x326a79[0x0]['attributes']['groupId']!==_0x650fb0[0x0]['attributes']['groupId']&&_0x326a79[0x0]['author']!==_0x650fb0[0x0]['author'])return!0x1;if(!function(_0x5dc5a1,_0x41c2a7){if(!_0x5dc5a1['hasComments']&&!_0x41c2a7['hasComments'])return!0x0;if(_0x5dc5a1['hasComments']&&_0x41c2a7['hasComments'])return!0x1;if(_0x5dc5a1['hasComments']&&_0x41c2a7['createdAt']<_0x5dc5a1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x41c2a7['hasComments']&&_0x5dc5a1['createdAt']<_0x41c2a7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x326a79[0x0],_0x650fb0[0x0]))return!0x1;const _0x265e6c=Bt(_0x326a79[0x0]['attributes'],'groupId'),_0x9f6f8d=Bt(_0x650fb0[0x0]['attributes'],'groupId');if(!_0x108982(_0x265e6c,_0x9f6f8d))return!0x1;return!!_0x326a79['every'](_0x3b4514=>_0x650fb0['some'](_0x3e8c70=>_0x3b4514['getFirstRange']()['isEqual'](_0x3e8c70['getFirstRange']())))&&_0x650fb0['every'](_0x437623=>_0x326a79['some'](_0x232bce=>_0x437623['getFirstRange']()['isEqual'](_0x232bce['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xa19fea){const _0x3e436d=Array['from'](_0xa19fea),_0x2afe9f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x17d3a8=_0x2afe9f['filter'](_0x3c7d76=>!_0xa19fea['has'](_0x3c7d76)),_0x3c8a24=new Map(_0x3e436d['map'](_0x36de2b=>[_0x36de2b,this['_suggestionFactory']['getSuggestionCallback'](_0x36de2b['type'],_0x36de2b['subType'],'join')])),_0x20bbd9=new Map(_0x2afe9f['map'](_0xc5adf0=>[_0xc5adf0,_0xc5adf0['getRanges']()]));for(let _0x4eedb8=0x0;_0x4eedb8<_0x3e436d['length'];_0x4eedb8++){if(_0x5219fe(this,_0x3e436d[_0x4eedb8],_0x3e436d,_0x4eedb8+0x1))return!0x0;}for(let _0xd2e48c=0x0;_0xd2e48c<_0x3e436d['length'];_0xd2e48c++){if(_0x5219fe(this,_0x3e436d[_0xd2e48c],_0x17d3a8,0x0))return!0x0;}return!0x1;function _0x5219fe(_0x462834,_0x35f7a6,_0x5ace2f,_0x4293f6){for(let _0x209ac2=_0x4293f6;_0x209ac2<_0x5ace2f['length'];_0x209ac2++){const _0x2e2fec=_0x5ace2f[_0x209ac2];if(_0x2e2fec['type']!==_0x35f7a6['type']||_0x2e2fec['author']['id']!==_0x35f7a6['author']['id']||_0x2e2fec['subType']!==_0x35f7a6['subType'])continue;if(!Pt(_0x35f7a6,_0x2e2fec,['groupId']))continue;if('attribute'==_0x35f7a6['type']&&_0x35f7a6['data']['oldValue']!=_0x2e2fec['data']['oldValue'])continue;if('attribute'==_0x35f7a6['type']&&_0x462834['_isBlockAttribute'](_0x35f7a6['data']['key']))continue;if('formatBlock'==_0x35f7a6['type']){const _0x405400=_0x462834['editor']['model'],_0x112909=_0x35f7a6['getContainedElement']();if(_0x112909&&(_0x405400['schema']['isObject'](_0x112909)||_0x405400['schema']['isLimit'](_0x112909)))continue;}const _0x45c1c0=_0x3c8a24['get'](_0x35f7a6),_0x2b4466=_0x20bbd9['get'](_0x35f7a6),_0x555b6c=_0x20bbd9['get'](_0x2e2fec),_0x1c536a=_0x35f7a6['commentThread']&&_0x35f7a6['commentThread']['length'],_0x37656a=_0x2e2fec['commentThread']&&_0x2e2fec['commentThread']['length'];if(!_0x1c536a&&_0x45c1c0(_0x555b6c,_0x2b4466))return _0x462834['_joinSuggestions'](_0x2e2fec,_0x35f7a6),_0x20bbd9['delete'](_0x35f7a6),!0x0;if(!_0x37656a&&_0x45c1c0(_0x2b4466,_0x555b6c))return _0x462834['_joinSuggestions'](_0x35f7a6,_0x2e2fec),_0x20bbd9['delete'](_0x2e2fec),!0x0;}return!0x1;}}['_joinSuggestions'](_0x23da3b,_0x34186f){if(_0x23da3b['isMultiRange']){for(const _0xacae15 of _0x34186f['getRanges']())_0x23da3b['addRange'](_0xacae15);}else{const _0x4c3f7e=_0x34186f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x23da3b,this['_model']['createRange'](_0x23da3b['getFirstRange']()['start'],_0x4c3f7e));}_0x34186f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3127d0,_0x4b3129){const _0x262129=_0x3127d0['startsWith']('format')||_0x3127d0['startsWith']('attribute')?'FORMATTING':_0x3127d0['toUpperCase']();return o(this['editor']['locale'],_0x4b3129+'_'+_0x262129+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x47c996=this['editor'];if(!_0x47c996['ui'])return;const {ariaLiveAnnouncer:_0x388b2e}=_0x47c996['ui'];_0x5771bc(this['_model'],({left:_0x3b3daf,entered:_0x56f699})=>{for(const _0x23fe59 of _0x3b3daf){const {group:_0x88ae3d,type:_0x44ca6c}=this['_splitMarkerName'](_0x23fe59['name']);if('suggestion'===_0x88ae3d){_0x388b2e['announce'](this['_getMarkerAnnouncementText'](_0x44ca6c,'LEAVE'));break;}}for(const _0x45e97e of _0x56f699){const {group:_0x25e085,type:_0x1740f3}=this['_splitMarkerName'](_0x45e97e['name']);if('suggestion'===_0x25e085){_0x388b2e['announce'](this['_getMarkerAnnouncementText'](_0x1740f3,'ENTER'));break;}}});}['_processAttributeChanges'](_0x5ad580){if(this['_recordAttributeSuggestions'])return!0x1;const _0x140f7e=this['editor'],_0x5c6a26=_0x140f7e['model']['document']['differ']['getChanges']();if(0x0==_0x5c6a26['length'])return!0x1;const _0x51e456=[],_0x3a8827=_0x5c6a26['filter'](_0x52ebda=>'attribute'==_0x52ebda['type']),_0x16940d=_0x5c6a26['filter'](_0x72232f=>'insert'==_0x72232f['type']&&'$text'!=_0x72232f['name']),_0x5aa7c3=_0x5c6a26['filter'](_0x1c2a40=>'remove'==_0x1c2a40['type']&&'$text'!=_0x1c2a40['name']);for(const _0x282a93 of _0x3a8827)_0x51e456['push']({'key':_0x282a93['attributeKey'],'newValue':_0x282a93['attributeNewValue'],'oldValue':_0x282a93['attributeOldValue'],'range':Ot(_0x282a93['range'],_0x140f7e['model'])});for(const _0x930642 of _0x16940d){const _0x167bf0=_0x5aa7c3['find'](_0x16e4f2=>_0x16e4f2['position']['isEqual'](_0x930642['position']));_0x167bf0&&_0x51e456['push']({'key':m,'newValue':_0x930642['name'],'oldValue':_0x167bf0['name'],'range':_0x140f7e['model']['createRangeOn'](_0x930642['position']['nodeAfter'])});}return 0x0!=_0x51e456['length']&&this['_reduceExistingSuggestions'](_0x5ad580,_0x51e456);}['_processAttributeSuggestions'](_0x3b1a17){let _0xfb87df=!0x1;const _0x152bb4=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x227688=>_0x227688['data']['newRange']&&_0x227688['name']['startsWith']('suggestion:attribute:'));for(const _0x3cbbfe of _0x152bb4){const {subType:_0x37c8bf,id:_0x5a3869}=this['_splitMarkerName'](_0x3cbbfe['name']),_0x51bea1=_0x37c8bf['split']('|')[0x0];for(const _0x28b1cd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x28b1cd['id']!=_0x5a3869&&'attribute'==_0x28b1cd['type']&&_0x28b1cd['data']&&_0x28b1cd['data']['key']==_0x51bea1&&_0x28b1cd['getFirstRange']()['isIntersecting'](_0x3cbbfe['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x28b1cd,_0x3cbbfe['data']['newRange'],_0x3b1a17),_0xfb87df=!0x0);}return _0xfb87df;}['_recordAttributeChanges'](_0x52aea3){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x52aea3();}['_isRegisteredAttribute'](_0x261db3){const _0xe658b4=this['_isBlockAttribute'](_0x261db3),_0x3d2d68=this['_inlineAttributeKeys']['has'](_0x261db3);return _0xe658b4||_0x3d2d68;}['_reduceExistingSuggestions'](_0x1cbbb3,_0x26d213){if(0x0==_0x26d213['length'])return!0x1;let _0x1d914b=!0x1;for(const _0x3b6daf of _0x26d213){const _0x42b408=this['_findSuggestions'](_0x3b6daf['range'],'attribute')['filter'](_0x595b52=>!_0x595b52['meta']['isNextTo'])['map'](_0x294684=>_0x294684['suggestion']),_0x5abb8a=_0x55df95({'newValue':_0x3b6daf['newValue']});_0x42b408['filter'](_0x1ff97b=>{const [_0x2b9668,_0x162840]=_0x1ff97b['subType']['split']('|');return _0x2b9668==_0x3b6daf['key']&&_0x162840!=_0x5abb8a;})['forEach'](_0x28dde0=>{this['_reduceSuggestionAttributeRange'](_0x28dde0,_0x3b6daf['range'],_0x1cbbb3),_0x1d914b=!0x0;});}return _0x1d914b;}['_reduceSuggestionAttributeRange'](_0x7c9e9c,_0x536900,_0x42d53f){const _0xf363f=_0x7c9e9c['getFirstRange']()['getDifference'](_0x536900);0x0!==_0xf363f['length']?0x1!==_0xf363f['length']?this['_breakSuggestionMarker'](_0x7c9e9c,_0x536900['start'],_0x536900['end']):this['_setSuggestionRange'](_0x7c9e9c,_0xf363f[0x0]):_0x42d53f['removeMarker'](_0x7c9e9c['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2c0d0f){this['_editor']=_0x2c0d0f,this['_model']=_0x2c0d0f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3a00e1,_0x185811,_0xe110d6,_0xd97d02,_0x474204,_0xbb0738){return new u(this['_model'],{'type':_0x3a00e1,'subType':_0x185811,'id':_0xe110d6,'author':_0xd97d02,'creator':_0xd97d02,'attributes':_0x474204,'onAttributesChange':_0xbb0738,'onAccept':(..._0x48e9a0)=>this['getSuggestionCallback'](_0x3a00e1,_0x185811,'accept')(..._0x48e9a0),'onDiscard':(..._0x383069)=>this['getSuggestionCallback'](_0x3a00e1,_0x185811,'discard')(..._0x383069)});}['registerCustomCallback'](_0x5bf687,_0x28a097,_0x545881,_0x2d6c63){const _0x336fbe=_0x5bf687+':'+_0x28a097+':'+_0x545881;this['_customCallbacks']['set'](_0x336fbe,_0x2d6c63);}['getSuggestionCallback'](_0x407a6f,_0x1ccae1,_0x3aa0fd){const _0x2fc86d=_0x407a6f+':'+_0x1ccae1+':'+_0x3aa0fd;return this['_customCallbacks']['get'](_0x2fc86d)||this['_defaultCallbacks']['get'](_0x407a6f+':'+_0x3aa0fd);}['_registerDefaultCallbacks'](){const _0x333c84=()=>!0x1,_0x2bb019=_0x344542=>{_0x344542['sort']((_0x1e8e6a,_0x54130b)=>_0x1e8e6a['start']['isBefore'](_0x54130b['start'])?0x1:-0x1),this['_model']['change'](_0x14e2d7=>{for(const _0x57ca90 of _0x344542){let _0x4d1e89;_0x4d1e89=_0x57ca90['end']['isAtEnd']&&_0x57ca90['end']['parent']==_0x57ca90['start']['nodeAfter']?_0x14e2d7['createSelection'](_0x57ca90['start']['nodeAfter'],'on'):_0x14e2d7['createSelection'](_0x57ca90),this['_model']['deleteContent'](_0x4d1e89,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2d5dce=(_0x2c5e25,_0x212e66)=>{_0x212e66&&this['_model']['change'](_0x9147b4=>{const {commandName:_0x1ac6ab,commandParams:_0x125df6=[]}=_0x212e66,_0x15427d=_0x2c5e25['map'](_0x160d18=>(Tt(_0x160d18)&&(_0x160d18=this['_model']['createRange'](_0x160d18['end'])),_0x160d18))['filter'](_0x265e24=>'$graveyard'!==_0x265e24['root']['rootName']);if(_0x15427d['length']<0x1)return;const _0x26f5fa=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x273cdc=>_0x3c7933['fromRange'](_0x273cdc));_0x9147b4['setSelection'](_0x15427d);for(const _0x5a1aa1 of this['_editor']['commands']['commands']())_0x5a1aa1['refresh']();_0x125df6['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1ac6ab,..._0x125df6);const _0xf9fc1=_0x26f5fa['filter'](_0x41aaad=>'$graveyard'!=_0x41aaad['root']['rootName']);_0xf9fc1['length']>0x0&&_0x9147b4['setSelection'](_0xf9fc1);for(const _0x55bdfd of _0x26f5fa)_0x55bdfd['detach']();});},_0x3a29fb=(_0x31d718,_0x2872e0)=>0x1==_0x31d718['length']&&0x1==_0x2872e0['length']&&_0x31d718[0x0]['end']['isEqual'](_0x2872e0[0x0]['start']),_0x599b84=(_0x5f22bd,_0x3b1f31,_0x30ea43,_0x363a0d)=>Ft(_0x5f22bd,_0x3b1f31,_0x30ea43,_0x363a0d,this['_model'])?[_0x5f22bd,_0x3b1f31]:Ft(_0x3b1f31,_0x5f22bd,_0x363a0d,_0x30ea43,this['_model'])?[_0x3b1f31,_0x5f22bd]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x333c84),this['_defaultCallbacks']['set']('insertion:discard',_0x2bb019),this['_defaultCallbacks']['set']('insertion:join',_0x3a29fb),this['_defaultCallbacks']['set']('insertion:chain',_0x599b84),this['_defaultCallbacks']['set']('deletion:accept',_0x2bb019),this['_defaultCallbacks']['set']('deletion:discard',_0x333c84),this['_defaultCallbacks']['set']('deletion:join',_0x3a29fb),this['_defaultCallbacks']['set']('deletion:chain',_0x599b84),this['_defaultCallbacks']['set']('formatInline:accept',_0x2d5dce),this['_defaultCallbacks']['set']('formatInline:discard',_0x333c84),this['_defaultCallbacks']['set']('formatInline:join',_0x3a29fb),this['_defaultCallbacks']['set']('formatInline:chain',_0x333c84),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2d5dce),this['_defaultCallbacks']['set']('formatBlock:discard',_0x333c84),this['_defaultCallbacks']['set']('formatBlock:join',_0x3a29fb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x333c84),this['_defaultCallbacks']['set']('attribute:accept',_0x333c84),this['_defaultCallbacks']['set']('attribute:discard',(_0x2590a5,_0x2758b4)=>{if(!_0x2758b4)return;const _0x385899=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x39317b=>{if(_0x2758b4['key']==m)for(const _0x2e1e0c of _0x2590a5){const _0x5ec9d3=_0x2e1e0c['start']['nodeAfter'],_0x1e7e33=_0x2758b4['oldValue'];_0x39317b['rename'](_0x5ec9d3,_0x1e7e33);}else{if(_0x385899['_isBlockAttribute'](_0x2758b4['key'])){for(const _0x294b0a of _0x2590a5)void 0x0!==_0x2758b4['oldValue']?_0x39317b['setAttribute'](_0x2758b4['key'],_0x2758b4['oldValue'],_0x294b0a['start']['nodeAfter']):_0x39317b['removeAttribute'](_0x2758b4['key'],_0x294b0a['start']['nodeAfter']);}else{for(const _0x4cb0f3 of _0x2590a5)_0x2758b4['oldValue']?_0x39317b['setAttribute'](_0x2758b4['key'],_0x2758b4['oldValue'],_0x4cb0f3):_0x39317b['removeAttribute'](_0x2758b4['key'],_0x4cb0f3);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3a29fb);}}function Rt(_0x1015b4,_0x1c7ea5,_0x326fe2){for(const _0x47b719 of _0x1c7ea5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x47b719['root']==_0x47b719)return!0x1;if(!_0x326fe2['containsItem'](_0x47b719))return!0x1;if(_0x1015b4['isObject'](_0x47b719)||_0x1015b4['isLimit'](_0x47b719))return!0x0;}return!0x1;}function Tt(_0x29b315){return _0x29b315['end']['parent']==_0x29b315['start']['nodeAfter']&&_0x29b315['end']['isAtStart'];}function Et(_0x194ad3,_0x31ec57,_0x574818,_0x29a563){const _0x3a919e=_0x2a4b37=>!_0x2a4b37['item']['is']('$textProxy')&&!_0x29a563['isObject'](_0x2a4b37['item']),_0x1b49d1=_0x194ad3['start']['getLastMatchingPosition'](_0x3a919e),_0x17e52=_0x194ad3['end']['getLastMatchingPosition'](_0x3a919e,{'direction':'backward'});return(!_0x194ad3['start']['isEqual'](_0x1b49d1)||!_0x194ad3['end']['isEqual'](_0x17e52))&&(_0x1b49d1['isBefore'](_0x17e52)?_0x574818['updateMarker'](_0x31ec57,{'range':_0x574818['createRange'](_0x1b49d1,_0x17e52)}):_0x574818['removeMarker'](_0x31ec57),!0x0);}function Vt(_0x13e8d2){return _0x55df95(_0x13e8d2);}function Ut(_0x3a40c5){const _0x37426b=_0x3a40c5['start']['nodeAfter'];return _0x37426b&&_0x37426b['is']('element');}function Ot(_0x3962ad,_0x1a9090){return null==_0x3962ad['end']['nodeBefore']&&_0x3962ad['end']['parent']==_0x3962ad['start']['nodeAfter']?Gt(_0x3962ad['start']['nodeAfter'],_0x1a9090):_0x3962ad;}function Gt(_0x3b0a2e,_0x5b894a){const _0x1398e0=_0x5b894a['schema']['isObject'](_0x3b0a2e)||_0x5b894a['schema']['isSelectable'](_0x3b0a2e);return _0x5b894a['createRange'](_0x5b894a['createPositionAt'](_0x3b0a2e,'before'),_0x1398e0?_0x5b894a['createPositionAfter'](_0x3b0a2e):_0x5b894a['createPositionAt'](_0x3b0a2e,'end'));}function Ft(_0x27285e,_0x5cbf4f,_0x399dd7,_0x459fc5,_0xa49c2a){if(!Pt(_0x27285e,_0x5cbf4f))return!0x1;if(_0x399dd7['end']['isEqual'](_0x459fc5['start']))return!0x0;if(_0x27285e['type']!=_0x5cbf4f['type'])return!0x1;if(!_0x399dd7['end']['isTouching'](_0x459fc5['start']))return!0x1;const _0x3ee88d=_0xa49c2a['createRange'](_0x399dd7['end'],_0x459fc5['start'])['getWalker']();for(const _0x877a95 of _0x3ee88d)if(['elementStart','elementEnd']['includes'](_0x877a95['type'])&&_0xa49c2a['schema']['isLimit'](_0x877a95['item']))return!0x1;return!0x0;}function Pt(_0x51eee3,_0x1e5c01,_0x36056e=[]){return!(!_0x51eee3['_isDataLoaded']||!_0x1e5c01['_isDataLoaded'])&&_0x108982(Bt(_0x51eee3['attributes'],_0x36056e),Bt(_0x1e5c01['attributes'],_0x36056e));}function Lt(_0x5b3a79,_0x18b689){const _0x3d08e0=Ht(_0x5b3a79['attributes']),_0x112201=Ht(_0x18b689);if(!_0x5b3a79['_isDataLoaded'])return!0x1;for(const _0x4a056c of Object['keys'](_0x112201))if(!_0x108982(_0x3d08e0[_0x4a056c],_0x112201[_0x4a056c]))return!0x1;return!0x0;}function Ht(_0x5ab27f){const _0xef0eb4=Object['assign']({},_0x5ab27f);return delete _0xef0eb4['skipNestingCheck'],delete _0xef0eb4['tablePasteChainId'],_0xef0eb4;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1c46a4(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2d159e,_0x33fc0e,_0x1e5918,_0x3bef0c){super(),this['model']=_0x33fc0e,this['view']=_0x1e5918,this['commentThreadController']=_0x3bef0c,this['_editor']=_0x2d159e,this['_acceptCommand']=_0x2d159e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2d159e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1991b6,_0xa22b73)=>_0x1991b6||_0xa22b73),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2cfd51=>_0x2cfd51&&this['_editor']['model']['canEditAt'](_0x33fc0e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3d9880=>_0x3d9880&&this['_editor']['model']['canEditAt'](_0x33fc0e['getRanges']())),this['_pendingAction']=null,_0x1e5918['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1e5918,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1e5918,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1e5918,'change:isDirty',()=>{_0x1e5918['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 _0x47b6e0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x47b6e0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xe0c798{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x4d83e2,_0x3671df,_0x5d810d,_0x1bcac5){super(_0x4d83e2),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3671df['authoredAt']),this['bind']('authoredAt')['to'](_0x3671df),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3671df,this['_localUser']=_0x5d810d,this['_config']=_0x1bcac5,_0x1bcac5['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:_0x1c1be0}=this['_config'];this['commentsListView']=new _0x1c1be0(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',_0x15f512=>_0x15f512+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x94b990,_0x5ca1d5)=>_0x94b990||!!_0x5ca1d5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x169064}=this['_config'],_0x12261a=new _0x169064(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x23b19f=_0x12261a['commentInputView'];return _0x12261a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x23b19f,'value',(_0x394a3a,_0x21c640,_0xdd335e)=>!!_0xdd335e||_0x394a3a&&!_0x21c640),_0x23b19f['on']('submit',(_0x213449,_0x5af3a8)=>{this['fire']('addComment',_0x5af3a8),_0x23b19f['editor']['setData']('');}),_0x23b19f['on']('cancel',()=>this['focus']()),_0x23b19f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x12261a;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x21b07e,_0x2e321f,_0x5118e6,_0x528d17){super(_0x21b07e,_0x2e321f,_0x5118e6,_0x528d17),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xd0f19f=>_0xd0f19f&&_0xd0f19f[0x0]?_0xd0f19f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1ee4ed,_0x5ce1df)=>{let _0x2a562b='';for(const _0x376c44 of _0x1ee4ed)_0x2a562b+='<p>'+ds(_0x376c44['content'],_0x376c44['color'])+'</p>';return _0x5ce1df?_0x2a562b:_0x3b0c39(_0x2a562b,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x21b07e,'Accept\x20suggestion'),_0x6be1a3['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x21b07e,'Discard\x20suggestion'),_0x6be1a3['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x280dc0(_0x21b07e,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x4a3698=this['bindTemplate'],_0x5060b1=[{'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':_0x4a3698['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4a3698['to']('authoredAt',_0x33db1c=>this['_config']['formatDateTime'](_0x33db1c))}]}]},{'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']&&_0x5060b1['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xa5a94f={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x4a3698['if']('isActive','ck-suggestion-wrapper--active'),_0x4a3698['to']('type',_0x3a0f5b=>'ck-suggestion-'+_0x3a0f5b),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':_0x5060b1}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xa5a94f['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)),_0xa5a94f;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x4fb9f9,_0x36928e,_0x1fb41d)=>{this['_descriptionElement']['innerHTML']=_0x1fb41d;});}['_createButton'](_0x218322,_0x54bb18,_0x9a6bcb,_0x4124b9,_0x407b8d){const _0x5957a0=new _0x28349a(this['locale']);return _0x5957a0['set']({'label':_0x218322,'icon':_0x54bb18,'tooltip':!0x0,'tooltipPosition':_0x407b8d}),_0x5957a0['extendTemplate']({'attributes':{'class':_0x9a6bcb}}),_0x5957a0['on']('execute',()=>{this['fire'](_0x4124b9,this['_model']['id']);}),_0x5957a0;}['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(_0x25a768,_0x10aade){let _0x1746d9='';return _0x1746d9+=_0x25a768['split']('*')['map']((_0x5e3240,_0x20dbdd)=>_0x20dbdd%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5e3240)+'</span>':us(_0x5e3240))['join'](''),_0x10aade&&(_0x1746d9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x10aade['value']+'\x22\x20title=\x22'+_0x10aade['title']+'\x22></span>'),_0x1746d9;}function us(_0x2c44e4){const _0x110301=document['createElement']('span');return _0x110301['innerText']=_0x2c44e4,_0x110301['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x5552f2{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x256320,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x559ebf){super(_0x559ebf),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x52ce2a=this['editor']['config'];_0x52ce2a['define']('trackChanges.SuggestionThreadView',ne),_0x52ce2a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x52ce2a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4d431c,_0x2985af){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x205174,_0x566482]of this['_handleControllerBuffer']){const _0x408616=this['_suggestionToController']['has'](_0x205174);_0x408616||_0x566482?_0x408616&&_0x566482&&this['_destroyController'](_0x205174):this['_initializeController'](_0x205174);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4d431c,_0x2985af);}['init'](){const _0x4000b1=this['editor'],_0x63c379=_0x4000b1['plugins']['get']('TrackChangesEditing'),_0x30bf5e=_0x4000b1['plugins']['get']('Annotations'),_0x48d838=_0x4000b1['plugins']['get']('EditorAnnotations'),_0x77f55=_0x4000b1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x48d838['addSourceCollector'](()=>{const _0x41aff9=[];for(const [_0x7a4e79,_0x1d1d06]of Array['from'](this['_suggestionToController'])){const _0x302c0d=_0x7a4e79['getAllAdjacentSuggestions'](),_0x3d6591=[];for(const _0x21096d of _0x302c0d){if(!_0x21096d['isInContent'])continue;if(_0x21096d['isMultiRange']){_0x3d6591['push'](..._0x21096d['getRanges']());continue;}const _0x3dfaac=_0x21096d['getFirstRange']();if(_0x3d6591['length']>0x0){const _0x37faba=_0x3d6591[0x0]['getJoined'](_0x3dfaac);if(_0x37faba){_0x3d6591[0x0]=_0x37faba;continue;}}_0x3d6591['push'](_0x3dfaac);}_0x41aff9['push']([_0x1d1d06['view'],_0x3d6591]);}return _0x41aff9;}),this['listenTo'](_0x63c379,'suggestionLoaded',(_0x21d90e,_0x3bd5d4)=>{this['listenTo'](_0x3bd5d4,'change:previous',(_0x53480b,_0x4cd627,_0x39719b,_0x1e0a37)=>{_0x3bd5d4['isInContent']&&(null==_0x39719b?(this['_updateController'](_0x1e0a37['head']),this['_handleSuggestionControllerDelayed'](_0x3bd5d4,!0x1)):(this['_updateController'](_0x39719b['head']),null==_0x1e0a37&&this['_handleSuggestionControllerDelayed'](_0x3bd5d4,!0x0)));}),null!==_0x3bd5d4['previous']?this['_updateController'](_0x3bd5d4['head']):this['_handleSuggestionControllerDelayed'](_0x3bd5d4,!0x1);}),this['listenTo'](_0x63c379,'suggestionUnloaded',(_0x192e5e,_0x5eee54,_0x364672)=>{this['stopListening'](_0x5eee54,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5eee54),this['_suggestionToController']['has'](_0x5eee54)&&this['_destroyController'](_0x5eee54),_0x364672&&this['_updateController'](_0x364672['head']);}),this['listenTo'](_0x63c379,'suggestionChanged',(_0x55a6f2,_0x1a1c74)=>{this['_updateController'](_0x1a1c74);}),this['listenTo'](_0x30bf5e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x77f55,'addComment',(_0x2c1acc,{threadId:_0x388d1a,isFromAdapter:_0x319618})=>{if(_0x319618||!_0x63c379['hasSuggestion'](_0x388d1a))return;const _0x5ef8db=_0x63c379['getSuggestion'](_0x388d1a);this['_suggestionToController']['get'](_0x5ef8db)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2bc325=this['editor']['plugins']['get']('Annotations'),_0x62642c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b93e7=Array['from'](_0x2bc325['activeAnnotations'],_0x4fea60=>_0x4fea60['innerView'])['filter'](_0xdca970=>this['_viewToController']['has'](_0xdca970)),_0x2ed5ae=[];for(const _0x587414 of _0x1b93e7){const _0x1a1e83=this['_viewToController']['get'](_0x587414)['model']['getAllAdjacentSuggestions']();_0x2ed5ae['push'](..._0x1a1e83['reduce']((_0x56af42,_0x2777d2)=>[..._0x56af42,..._0x2777d2['getMarkerNames']()],[]));}_0x62642c['activeMarkers']=_0x2ed5ae;}['_addUIComponentsToFactory'](){const _0x617db3=this['editor'],_0x30206c=_0x617db3['locale'],_0x343263=o(_0x30206c,'Track\x20changes'),_0x48a30e=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x343263,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30206c,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30206c,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30206c,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30206c,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x102b60 of _0x48a30e)if(ae(_0x102b60)){const _0x41cacd=_0x617db3['commands']['get'](_0x102b60['model']['commandName']);_0x102b60['model']['bind']('isOn','isEnabled')['to'](_0x41cacd,'value','isEnabled');}_0x617db3['ui']['componentFactory']['add']('trackChanges',_0x5871bc=>this['_createToolbarButton'](_0x5871bc,_0x48a30e,_0x343263)),_0x617db3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2354f8=>this['_createMenuBarMenu'](_0x2354f8,_0x48a30e,_0x343263));}['_createToolbarButton'](_0x4f461a,_0x11e0a3,_0x32f8b7){const _0x2749e9=zt(_0x4f461a,Zt),_0xc39773=this['editor']['commands']['get']('trackChanges');_0x2749e9['buttonView']['set']({'tooltip':_0x32f8b7,'label':_0x32f8b7,'icon':ie}),_0x2749e9['buttonView']['bind']('isOn')['to'](_0xc39773,'value'),_0x2749e9['buttonView']['on']('execute',()=>{_0xc39773['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x2749e9,_0x11e0a3,{'role':'menu'});const _0x259a7d=[];for(const _0x7e9335 of _0x11e0a3)ae(_0x7e9335)&&_0x259a7d['push'](this['editor']['commands']['get'](_0x7e9335['model']['commandName']));const _0x1ad624=_0x2749e9['buttonView'];return _0x1ad624['actionView']['unbind']('isEnabled'),_0x1ad624['arrowView']['unbind']('isEnabled'),_0x1ad624['actionView']['bind']('isEnabled')['to'](_0xc39773,'isEnabled'),_0x1ad624['arrowView']['bind']('isEnabled')['toMany'](_0x259a7d,'isEnabled',(..._0x551454)=>_0x551454['some'](_0x4e6a88=>_0x4e6a88)),_0x2749e9['on']('execute',_0x5d9050=>{this['editor']['execute'](_0x5d9050['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2749e9;}['_createMenuBarMenu'](_0xbb1ef8,_0x3a5c49,_0x54fbb4){const _0x583f2e=new Kt(_0xbb1ef8),_0x2f7c41=this['editor']['commands']['get']('trackChanges');_0x583f2e['buttonView']['set']({'label':_0x54fbb4,'icon':ie});const _0x192701=new Qt(_0xbb1ef8);for(const _0xda341d of _0x3a5c49){if('separator'==_0xda341d['type']){_0x192701['items']['add'](new Jt(_0xbb1ef8));continue;}const _0x1d9d3d=new Xt(_0xbb1ef8,_0x583f2e),_0x4ff446=new Yt(_0xbb1ef8),_0x2d9f88=_0xda341d['model'];_0x4ff446['bind'](...Object['keys'](_0x2d9f88))['to'](_0x2d9f88),_0x4ff446['delegate']('execute')['to'](_0x583f2e),_0x4ff446['on']('execute',()=>{this['editor']['execute'](_0x2d9f88['commandName']),this['editor']['editing']['view']['focus']();}),_0x1d9d3d['children']['add'](_0x4ff446),_0x192701['items']['add'](_0x1d9d3d);}return _0x583f2e['bind']('isEnabled')['to'](_0x2f7c41,'isEnabled'),_0x583f2e['panelView']['children']['add'](_0x192701),_0x583f2e;}['_initializeController'](_0x103c6a){const _0x436b88=this['editor'],_0x2e7bb9=_0x436b88['config'],_0x4a4b6c=_0x436b88['plugins']['get']('Annotations'),_0x5a0e7e=_0x436b88['plugins']['get']('CommentsRepository'),_0x37778d=_0x436b88['plugins']['get']('EditorAnnotations'),_0x1f5a13=_0x436b88['plugins']['get'](_0x256320)['me'],_0xb559e3=_0x2e7bb9['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1e784d,CommentThreadInputView:_0xa337b}=_0x436b88['plugins']['get']('CommentsUI');let _0xbecdd5,_0x17ade0;this['_annotationViews']['has'](_0x103c6a['id'])?(_0x17ade0=this['_annotationViews']['get'](_0x103c6a['id']),_0xbecdd5=_0x17ade0['mainView']):(_0xbecdd5=new _0xb559e3(_0x436b88['locale'],_0x103c6a,_0x1f5a13,{'disableComments':this['_disableComments'],'editorConfig':_0x2e7bb9['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x2e7bb9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2e7bb9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2e7bb9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x581092(_0x2e7bb9['get']('locale')),'CommentView':_0x2e7bb9['get']('comments')['CommentView'],'CommentsListView':_0x1e784d,'CommentThreadInputView':_0xa337b}),_0xbecdd5['acceptButton']['on']('execute',()=>{_0x436b88['editing']['view']['focus']();}),_0xbecdd5['discardButton']['on']('execute',()=>{_0x436b88['editing']['view']['focus']();}),_0x17ade0=_0x4a4b6c['createAnnotationView'](this['editor']['locale'],_0xbecdd5),_0x17ade0['bind']('isDirty')['to'](_0xbecdd5,'isDirty'),_0x17ade0['bind']('length')['to'](_0xbecdd5),_0x17ade0['bind']('type')['to'](_0xbecdd5,'type',_0x4fe129=>'suggestion-'+_0x4fe129),this['_annotationViews']['set'](_0x103c6a['id'],_0x17ade0));const _0x2485c7=_0x5a0e7e['createCommentThreadController'](_0x103c6a['commentThread'],_0xbecdd5),_0x1b6332=new oe(_0x436b88,_0x103c6a,_0xbecdd5,_0x2485c7),_0x35ccb3=_0x103c6a['getAllAdjacentSuggestions']()['filter'](_0x1ed6a6=>_0x1ed6a6['isInContent']);_0xbecdd5['descriptionParts']=_0x436b88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x35ccb3),this['_suggestionToController']['set'](_0x103c6a,_0x1b6332),this['_viewToController']['set'](_0xbecdd5,_0x1b6332);const _0x55e672=_0x4a4b6c['createAnnotation']({'view':_0x17ade0,'target':()=>{const _0x244f1c=[],_0x447494=_0x103c6a['getAllAdjacentSuggestions']()['filter'](_0x4be363=>_0x4be363['isInContent']);for(const _0x3bfc60 of _0x447494)_0x244f1c['push'](..._0x3bfc60['getMarkers']());return _0x1628c1(_0x436b88['editing'],_0x244f1c);},'type':()=>'suggestion-'+_0x1b6332['view']['type']});_0x5a0e7e['_bindAnnotationToEditors'](_0xbecdd5,_0x55e672),_0x4a4b6c['add'](_0x55e672),_0x37778d['registerAnnotation'](_0x55e672);}['_destroyController'](_0x5e42e5){const _0x50d922=this['editor']['plugins']['get']('CommentsRepository'),_0x242df7=this['editor']['plugins']['get']('Annotations'),_0x5bab57=this['_suggestionToController']['get'](_0x5e42e5),_0x19e652=_0x5bab57['view'],_0x52c075=_0x242df7['getByInnerView'](_0x19e652);_0x50d922['_unbindEditors'](_0x19e652),_0x52c075&&_0x242df7['remove'](_0x52c075),this['_suggestionToController']['delete'](_0x5e42e5),this['_viewToController']['delete'](_0x19e652),_0x5bab57['destroy']();}['_updateController'](_0x32e85e){if(!_0x32e85e['isInContent']||!this['_suggestionToController']['has'](_0x32e85e))return;const _0x3a1f7c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10c0a9=this['_suggestionToController']['get'](_0x32e85e),_0x27f54e=_0x32e85e['getAllAdjacentSuggestions']();_0x10c0a9['view']['descriptionParts']=_0x3a1f7c['descriptionFactory']['getDescriptions'](_0x27f54e);}['destroy'](){for(const _0x3765d9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3765d9);for(const _0xc5b6af of this['_annotationViews']['values']())_0xc5b6af['mainView']['destroy']();super['destroy']();}}function ae(_0x10837e){return'model'in _0x10837e;}class k extends _0x5552f2{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xed488){this['editor']['plugins']['get'](p)['adapter']=_0xed488;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4e5f37){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4e5f37);}['getSuggestions']({skipNotAttached:_0x33c4b5=!0x1,toJSON:_0x215c18=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x33c4b5,'toJSON':_0x215c18});}['getSuggestion'](_0x498d4d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x498d4d);}}const T=['Pagination'];class P extends _0x5552f2{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x555f21=this['editor'];if(_0x555f21['config']['define']('trackChangesData.editorCreator',_0x56c2f8=>{const _0x195699=_0x555f21['model']['document']['getRootNames']()['reduce']((_0x24816b,_0x173619)=>(_0x24816b[_0x173619]='',_0x24816b),{});return _0x555f21['constructor']['create'](_0x195699,_0x56c2f8);}),'function'!=typeof _0x555f21['config']['get']('trackChangesData')['editorCreator'])throw new _0x2d02e0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x14d779){return N(this['editor'],!0x0,_0x14d779);}['getDataWithDiscardedSuggestions'](_0x313b70){return N(this['editor'],!0x1,_0x313b70);}}class D extends _0x5552f2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x415d27){super(_0x415d27),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(_0x26422d){return void 0x0!==_0x26422d['getRootsAttributes'];}async function N(_0x54648b,_0xde416c,_0x53ce0c){const _0x2524d9=_0x3f984b(_0x54648b,T);_0x2524d9['plugins']['push'](p,D),_0x2524d9['rootsAttributes']=v(_0x54648b)?_0x54648b['getRootsAttributes']():void 0x0;const _0x6d071e=document['createDocumentFragment'](),_0xa50f19=_0x54648b['config']['get']('trackChangesData')['editorCreator'],_0x5a26bc=await _0xa50f19(_0x2524d9,()=>function(_0x5770a5){const _0x5dcd1c=document['createElement']('div');return _0x5770a5['appendChild'](_0x5dcd1c),_0x5dcd1c;}(_0x6d071e));!function(_0x124e1f,_0x1b703a){const _0x2df7e2=_0x124e1f['model']['document']['getRootNames']()['reduce']((_0x118ab8,_0x357e11)=>(_0x118ab8[_0x357e11]=_0x124e1f['data']['get']({'rootName':_0x357e11}),_0x118ab8),{}),_0x1c7294=_0x124e1f['plugins']['get']('Users')['users']['map'](_0xf7bc11=>({'id':_0xf7bc11['id'],'name':_0xf7bc11['name']})),_0x3f73c7=_0x124e1f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5ea9a6=_0x124e1f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4387b9=_0x1b703a['plugins']['get']('Users'),_0x1b0efc=_0x1b703a['plugins']['get']('TrackChangesEditing'),_0x42ee55=_0x1b703a['plugins']['get']('CommentsRepository');for(const _0x221b1f of _0x1c7294)_0x4387b9['getUser'](_0x221b1f['id'])||_0x4387b9['addUser'](_0x221b1f);_0x4387b9['me']||_0x4387b9['useAnonymousUser']();for(const _0x5f2dec of _0x5ea9a6)_0x42ee55['addCommentThread'](_0x5f2dec);for(const _0x7c4d68 of _0x3f73c7)_0x1b0efc['addSuggestionData'](_0x7c4d68);_0x1b703a['data']['set'](_0x2df7e2);}(_0x54648b,_0x5a26bc),_0x5a26bc['execute'](_0xde416c?'acceptAllSuggestions':'discardAllSuggestions');const _0x3fd886=v(_0x5a26bc)?_0x5a26bc['getFullData'](_0x53ce0c):_0x5a26bc['data']['get'](_0x53ce0c);return await _0x5a26bc['destroy'](),_0x3fd886;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x1367c6,PendingActions as _0x4c1d57,icons as _0x5d0072}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0xb8c959,ObservableMixin as _0x4e1d0a,uid as _0x22411c,insertToPriorityArray as _0x22521c,priorities as _0x4d67f8,logWarning as _0x2409cd,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x28ac03,View as _0x41761a,ButtonView as _0x588b59,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x54f297,hashObject as _0x33246c,surroundingMarkersDetector as _0xd88263,trimHtml as _0x357300,UserView as _0x23d4a5,getDateTimeFormatter as _0x4ae577,getAllMarkersDomElementsSorted as _0x15c842,sanitizeEditorConfig as _0x24a4b7}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x824b1a,LiveRange as _0x24837b,LivePosition as _0x12ff97}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x43bcd0,toWidget as _0xd8b030}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x59444f,set as _0xc56700,isEqual as _0x2d0f6d,unset as _0x5d3be2,omit as Bt}from'lodash-es';import{Delete as _0x1726d8,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x18c42d,ShiftEnter as _0x5a4f72}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x4ff826,_0x226442){super(_0x4ff826),this['_enabledCommands']=_0x226442,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 _0x36e928 of this['editor']['commands']['commands']())_0x36e928['affectsData']&&!this['_enabledCommands']['has'](_0x36e928)&&_0x36e928['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2ce3bb of this['editor']['commands']['commands']())_0x2ce3bb['affectsData']&&!this['_enabledCommands']['has'](_0x2ce3bb)&&_0x2ce3bb['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x3475ba,_0x4903c4){super(_0x3475ba),this['_suggestions']=_0x4903c4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2e0299){const _0x3ed1be=this['_suggestions']['get'](_0x2e0299);if(!_0x3ed1be)throw new _0xb8c959('track-changes-accept-suggestion-not-found',this);const _0x4a9175=_0x3ed1be['getRanges']();this['editor']['model']['canEditAt'](_0x4a9175)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3ed1be);}}class B extends ts{['_suggestions'];constructor(_0x367f22,_0x2bc336){super(_0x367f22),this['_suggestions']=_0x2bc336,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x145205){const _0xea4a54=this['_suggestions']['get'](_0x145205);if(!_0xea4a54)throw new _0xb8c959('track-changes-discard-suggestion-not-found',this);const _0x1ea50a=_0xea4a54['getRanges']();this['editor']['model']['canEditAt'](_0x1ea50a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xea4a54);}}function ss(_0x5a53d3){return _0x5a53d3['sort']((_0x20c706,_0x16eac3)=>'deletion'==_0x20c706['type']&&'deletion'!=_0x16eac3['type']?-0x1:'deletion'!=_0x20c706['type']&&'deletion'==_0x16eac3['type']?0x1:0x0);}function to(_0x1076bc,_0x427318){let _0x232088,_0x134854=0x0;const _0x175be7=[],_0x320b4c=_0x427318['schema'];for(;_0x134854<_0x1076bc['length'];){const _0x29c5a7=_0x1076bc[_0x134854],_0x1e77a9=_0x1076bc[_0x134854+0x1];_0x232088||(_0x232088=_0x427318['createPositionBefore'](_0x29c5a7)),co(_0x427318,_0x29c5a7,_0x1e77a9)||(_0x175be7['push'](_0x427318['createRange'](_0x232088,_0x320b4c['isObject'](_0x29c5a7)?_0x427318['createPositionAfter'](_0x29c5a7):_0x427318['createPositionAt'](_0x29c5a7,'end'))),_0x232088=null),_0x134854++;}return _0x175be7;}function co(_0xc77f7e,_0x1ded9e,_0x5deb87){if(!_0x5deb87)return!0x1;const _0x9aa921=_0xc77f7e['createPositionAfter'](_0x1ded9e),_0x39dbbd=_0xc77f7e['createPositionBefore'](_0x5deb87);return _0x9aa921['isTouching'](_0x39dbbd);}function rs(_0x534a9e,_0x38d2e1,_0x306c54){for(;_0x306c54['length'];){const _0xee198f=_0x306c54['splice'](0x0,0x64);_0x534a9e['change'](()=>{for(const _0x44e45d of _0xee198f)_0x44e45d['isInContent']&&_0x38d2e1['execute'](_0x44e45d['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x3cee02,_0x5ecc03,_0x2b142d){super(_0x3cee02),this['_command']=_0x5ecc03,this['_suggestions']=_0x2b142d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x560dee=Array['from'](this['_suggestions']['values']())['some'](_0x3e6dfb=>_0x3e6dfb['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x560dee;}['execute'](){const _0x228a9d=ss(Array['from'](this['_suggestions']['values']()));for(const _0xf9e0e of _0x228a9d){const _0x361b81=_0xf9e0e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x361b81))return;}rs(this['editor']['model'],this['_command'],_0x228a9d);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3fb8b1,_0x3cec73,_0x15b473){super(_0x3fb8b1),this['_command']=_0x3cec73,this['_suggestions']=_0x15b473,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x485c54=this['editor']['model']['document']['selection'],_0x29b52c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x10030c,_0x3969d3){const _0x522dbd=Array['from'](_0x10030c['getRanges']()),_0x440289=new Set();for(const _0x6c1d40 of _0x3969d3)if(_0x6c1d40['isInContent']){for(const _0x226717 of _0x522dbd)for(const _0x4db089 of _0x6c1d40['getRanges']())(_0x226717['isIntersecting'](_0x4db089)||_0x10030c['isCollapsed']&&!_0x6c1d40['isMultiRange']&&_0x6c1d40['next']&&_0x4db089['end']['isTouching'](_0x226717['start']))&&_0x440289['add'](_0x6c1d40);}return _0x440289;}(_0x485c54,_0x29b52c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xbebd3d=ss(Array['from'](this['_selectedSuggestions']));for(const _0x340dde of _0xbebd3d){const _0x293528=_0x340dde['getRanges']();if(!this['editor']['model']['canEditAt'](_0x293528))return;}rs(this['editor']['model'],this['_command'],_0xbebd3d);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4e1d0a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1a20af,_0x3d4fb4){super(),this['id']=_0x3d4fb4['id'],this['type']=_0x3d4fb4['type'],this['subType']=_0x3d4fb4['subType']||null,this['author']=_0x3d4fb4['author'],this['creator']=_0x3d4fb4['creator']||_0x3d4fb4['author'],this['isExternal']=Boolean(_0x3d4fb4['attributes']&&_0x3d4fb4['attributes']['@external']),this['data']=null,this['_model']=_0x1a20af,this['_onAccept']=_0x3d4fb4['onAccept'],this['_onDiscard']=_0x3d4fb4['onDiscard'],this['_onAttributesChange']=_0x3d4fb4['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3d4fb4['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 _0x3a520c=this;for(;_0x3a520c['previous'];)_0x3a520c=_0x3a520c['previous'];return _0x3a520c;}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'](_0x5a15de){this['_markerNames']['add'](_0x5a15de);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x274681=>this['_model']['markers']['get'](_0x274681))['filter'](_0x1eb7ae=>_0x1eb7ae);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4bf6bf=>{for(const _0x1351a7 of this['getMarkers']())_0x4bf6bf['removeMarker'](_0x1351a7);}),this['_markerNames']['clear']();}['removeMarker'](_0x14e9ff){this['_model']['change'](_0x44b698=>{_0x44b698['removeMarker'](_0x14e9ff);}),this['_markerNames']['delete'](_0x14e9ff);}['addRange'](_0x3d5baa){const _0x3aed75='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3aed75),this['_model']['change'](_0x35bff1=>{_0x35bff1['addMarker'](_0x3aed75,{'range':_0x3d5baa,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x358147){for(const _0x3ce9f9 of this['getRanges']())if(_0x3ce9f9['isIntersecting'](_0x358147))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1e0eb5=>_0x1e0eb5['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x53b73f,_0x2a50f8)=>[..._0x53b73f,..._0x2a50f8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5d9c53=this['getRanges']();if(0x1!=_0x5d9c53['length'])return null;const _0x423389=_0x5d9c53[0x0],_0x128473=_0x423389['start']['nodeAfter'],_0x55464f=_0x423389['end']['nodeBefore'];return _0x128473 instanceof _0x824b1a?_0x128473!=_0x55464f?null:_0x128473: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 _0xdc607=[];let _0x2fe009=this['head'];for(;_0x2fe009;)_0xdc607['push'](_0x2fe009),_0x2fe009=_0x2fe009['next'];return _0xdc607;}['setAttribute'](_0x2b8cb0,_0x5b03c7){const _0x13cfdd=_0x59444f(this['attributes']);_0xc56700(_0x13cfdd,_0x2b8cb0,_0x5b03c7),_0x2d0f6d(_0x13cfdd,this['attributes'])||(this['attributes']=_0x13cfdd,this['_onAttributesChange'](_0x13cfdd));}['removeAttribute'](_0x464c13){const _0x5187c6=_0x59444f(this['attributes']);_0x5d3be2(_0x5187c6,_0x464c13),_0x2d0f6d(_0x5187c6,this['attributes'])||(this['attributes']=_0x5187c6,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 _0x22411c()['substr'](0x1,0x5);}}function o(_0x508069,_0x526cf9,_0x1afca7){const t=_0x508069['t'];switch(_0x526cf9){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',_0x1afca7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1afca7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1afca7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1afca7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1afca7);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',_0x1afca7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1afca7);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',_0x1afca7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1afca7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1afca7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1afca7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1afca7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1afca7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1afca7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1afca7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1afca7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1afca7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1afca7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1afca7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1afca7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1afca7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1afca7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1afca7);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'},_0x1afca7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1afca7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1afca7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1afca7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1afca7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1afca7);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'},_0x1afca7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1afca7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1afca7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1afca7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1afca7);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'},_0x1afca7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1afca7);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'},_0x1afca7);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'},_0x1afca7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1afca7);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'},_0x1afca7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1afca7);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'},_0x1afca7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1afca7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1afca7);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1afca7);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'},_0x1afca7);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 _0x526cf9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x909da3,_0x28d9d0){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x909da3,this['_locale']=_0x28d9d0;}['getDescriptions'](_0x42e625){const _0x15586b=[],_0x596771=new Set(),_0x525d59=new Set();for(let _0x58b4f6=0x0;_0x58b4f6<_0x42e625['length'];_0x58b4f6++){const _0x5b9624=_0x42e625[_0x58b4f6];if(!_0x5b9624['isInContent'])continue;const _0x3af495=this['_handleCustomCallbackDescription'](_0x5b9624);if(_0x3af495){if(null!=_0x5b9624['subType']){if(_0x596771['has'](_0x5b9624['subType']))continue;_0x596771['add'](_0x5b9624['subType']);}_0x15586b['push'](_0x3af495);}else{if('attribute'!=_0x5b9624['type'])'insertion'!=_0x5b9624['type']&&'deletion'!=_0x5b9624['type']||this['_handleInsertRemoveSuggestionDescription'](_0x15586b,_0x5b9624,_0x42e625[_0x58b4f6+0x1]);else{const _0x3df241=_0x5b9624['data']['key'];if(_0x525d59['has'](_0x3df241))continue;_0x525d59['add'](_0x5b9624['data']['key']),_0x3df241==m?this['_handleRenameSuggestionDescription'](_0x15586b,_0x5b9624):this['_handleAttributeSuggestionDescription'](_0x15586b,_0x5b9624);}}}return this['_resolveDescriptionItems'](_0x15586b);}['registerDescriptionCallback'](_0x482f94){this['_customCallbacks']['push'](_0x482f94);}['registerElementLabel'](_0xb87403,_0xcc0612,_0x1e17c2=_0x4d67f8['normal']){'function'==typeof _0xb87403?_0x22521c(this['_itemLabelsCallbacks'],{'matchingCallback':_0xb87403,'label':_0xcc0612,'priority':_0x1e17c2}):this['_itemLabels']['set'](_0xb87403,_0xcc0612);}['registerAttributeLabel'](_0x20b345,_0x1bc072){this['_attributeLabels']['set'](_0x20b345,_0x1bc072);}['getItemLabel'](_0x3a7678,_0x499bb5=0x1){let _0x2ea283;for(const _0x4d21f of this['_itemLabelsCallbacks'])if(_0x4d21f['matchingCallback'](_0x3a7678)){_0x2ea283=_0x4d21f['label'];break;}return _0x2ea283||(_0x2ea283=this['_itemLabels']['get'](_0x3a7678['name'])),_0x2ea283?_0x2ea283(_0x499bb5):0x1!==_0x499bb5?_0x499bb5+'\x20'+_0x3a7678['name']+'s':''+_0x3a7678['name'];}['_addDescriptionItems'](_0x36e3ab,_0x845ffb){const _0x53886f=_0x845ffb['getFirstRange']()['getWalker'](),_0x3f090c='insertion'==_0x845ffb['type']?'add':'remove';for(const _0x4e7867 of _0x53886f){const _0x10312f=_0x4e7867['item'],_0x12fd23=_0x36e3ab[_0x36e3ab['length']-0x1];if(_0x10312f['is']('$textProxy'))_0x12fd23&&_0x12fd23['type']['indexOf']('Container')>-0x1&&_0x36e3ab['pop'](),_0x12fd23&&'text'==_0x12fd23['type']?_0x12fd23[_0x3f090c]+=_0x10312f['data']:_0x36e3ab['push']({'type':'text','add':'add'==_0x3f090c?_0x10312f['data']:'','remove':'remove'==_0x3f090c?_0x10312f['data']:''});else{if(this['_schema']['isObject'](_0x10312f)){const _0x39ff7b=_0x10312f;if(_0x12fd23&&_0x12fd23['type']['indexOf']('Container')>-0x1&&_0x36e3ab['pop'](),'elementEnd'==_0x4e7867['type'])continue;_0x12fd23&&_0x12fd23['type']==_0x3f090c+'Object'&&_0x12fd23['element']['name']==_0x39ff7b['name']?_0x12fd23['quantity']++:_0x36e3ab['push']({'type':_0x3f090c+'Object','element':_0x39ff7b,'quantity':0x1}),_0x53886f['skip'](_0x117a42=>!('elementEnd'==_0x117a42['type']&&_0x117a42['item']==_0x10312f));}else{if(this['_schema']['checkChild'](_0x10312f,'$text')||_0x10312f['is']('element','softBreak')){const _0x199e04=_0x10312f;if('add'==_0x3f090c&&'elementStart'==_0x4e7867['type']||'remove'==_0x3f090c&&'elementEnd'==_0x4e7867['type'])continue;if(_0x12fd23&&-0x1==_0x12fd23['type']['indexOf']('Container')){'text'==_0x12fd23['type']&&(_0x12fd23[_0x3f090c]+='\x0a');continue;}let _0x4e9bc0;if(_0x4e9bc0='add'==_0x3f090c?_0x199e04['nextSibling']&&!this['_schema']['isObject'](_0x199e04['nextSibling'])?_0x199e04['nextSibling']:null:_0x199e04['previousSibling']&&!this['_schema']['isObject'](_0x199e04['previousSibling'])?_0x199e04['previousSibling']:null,_0x199e04['isEmpty']||_0x4e9bc0&&_0x4e9bc0['isEmpty']){const _0x78a3d6=_0x4e9bc0&&_0x4e9bc0['isEmpty']?_0x4e9bc0:_0x199e04;_0x12fd23&&_0x12fd23['type']==_0x3f090c+'EmptyContainer'&&_0x12fd23['element']['name']==_0x78a3d6['name']?_0x12fd23['quantity']++:_0x36e3ab['push']({'type':_0x3f090c+'EmptyContainer','element':_0x78a3d6,'quantity':0x1});}else _0x36e3ab['push']({'type':_0x3f090c+'Container','element':_0x199e04});}}}}}['_resolveDescriptionItems'](_0x24cf41){const _0x577d2c=this['_locale'],_0x4bfdac=[],_0x7ba86=[],_0x342115=[];for(const _0x41ddcc of _0x24cf41)switch(_0x41ddcc['type']){case'text':if(_0x41ddcc['add']=_0x41ddcc['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x41ddcc['remove']=_0x41ddcc['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x41ddcc['add']&&''!=_0x41ddcc['remove']){_0x4bfdac['push']({'type':'replace','content':o(_0x577d2c,'REPLACE_TEXT',['\x22'+_0x41ddcc['remove']+'\x22','\x22'+_0x41ddcc['add']+'\x22'])});continue;}if(null!=_0x41ddcc['add']['match'](/^ +$/)){_0x4bfdac['push']({'type':'insertion','content':o(_0x577d2c,'*Insert:*\x20%0',o(_0x577d2c,'ELEMENT_SPACE',_0x41ddcc['add']['length']))});continue;}if(null!=_0x41ddcc['remove']['match'](/^ +$/)){_0x4bfdac['push']({'type':'deletion','content':o(_0x577d2c,'*Remove:*\x20%0',o(_0x577d2c,'ELEMENT_SPACE',_0x41ddcc['remove']['length']))});continue;}if(''!=_0x41ddcc['add']){_0x4bfdac['push']({'type':'insertion','content':o(_0x577d2c,'*Insert:*\x20%0','\x22'+_0x41ddcc['add']+'\x22')});continue;}_0x4bfdac['push']({'type':'deletion','content':o(_0x577d2c,'*Remove:*\x20%0','\x22'+_0x41ddcc['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4bfdac['push']({'type':'insertion','content':o(_0x577d2c,'*Insert:*\x20%0',this['getItemLabel'](_0x41ddcc['element'],_0x41ddcc['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4bfdac['push']({'type':'deletion','content':o(_0x577d2c,'*Remove:*\x20%0',this['getItemLabel'](_0x41ddcc['element'],_0x41ddcc['quantity']))});continue;case'addContainer':_0x4bfdac['push']({'type':'insertion','content':o(_0x577d2c,'*Split:*\x20%0',this['getItemLabel'](_0x41ddcc['element'],_0x41ddcc['quantity']))});continue;case'removeContainer':_0x4bfdac['push']({'type':'deletion','content':o(_0x577d2c,'*Merge:*\x20%0',this['getItemLabel'](_0x41ddcc['element'],_0x41ddcc['quantity']))});continue;case'addFormat':_0x7ba86['push'](_0x41ddcc['key']);continue;case'removeFormat':_0x342115['push'](_0x41ddcc['key']);continue;default:_0x4bfdac['push'](_0x41ddcc);}if(_0x7ba86['length']){const _0x2ef6d9=_0x7ba86['map'](_0x556603=>this['_attributeLabels']['has'](_0x556603)?this['_attributeLabels']['get'](_0x556603):_0x556603)['join'](',\x20');_0x4bfdac['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2ef6d9)});}if(_0x342115['length']){const _0x19003f=_0x342115['map'](_0x26c978=>this['_attributeLabels']['has'](_0x26c978)?this['_attributeLabels']['get'](_0x26c978):_0x26c978)['join'](',\x20');_0x4bfdac['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x19003f)});}return _0x4bfdac;}['_handleCustomCallbackDescription'](_0x3d0429){for(const _0x4b5e57 of this['_customCallbacks']){const _0x45c40e=_0x4b5e57(_0x3d0429);if(_0x45c40e&&'type'in _0x45c40e)return _0x45c40e;}}['_handleAttributeSuggestionDescription'](_0x160cf2,_0x27c4c7){const _0x334f2b=_0x27c4c7['data'],_0x54e44a=void 0x0===_0x334f2b['newValue']?'removeFormat':'addFormat';_0x160cf2['push']({'type':_0x54e44a,'key':_0x334f2b['key']});}['_handleRenameSuggestionDescription'](_0x5d25f0,_0x37016c){_0x5d25f0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x37016c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5335e0,_0x522bec,_0x516fb4){if(this['_addDescriptionItems'](_0x5335e0,_0x522bec),_0x516fb4&&_0x516fb4['getFirstRange']()&&!_0x522bec['getFirstRange']()['end']['isEqual'](_0x516fb4['getFirstRange']()['start'])){const _0x329ae1=_0x5335e0[_0x5335e0['length']-0x1],_0x4c6834='insertion'==_0x522bec['type']?'add':'remove';_0x329ae1&&'text'==_0x329ae1['type']&&(_0x329ae1[_0x4c6834]+='\x0a');}}}class E extends _0x1367c6{['afterInit'](){const _0x1d6b75=this['editor'],_0x2daa1a=_0x1d6b75['plugins']['get']('TrackChangesEditing');_0x1d6b75['commands']['get']('showAIAssistant')&&_0x2daa1a['enableCommand']('showAIAssistant');}}class V extends _0x1367c6{['afterInit'](){const _0x54526a=this['editor'],_0x39fdc5=_0x54526a['locale'];if(!_0x54526a['plugins']['has']('AlignmentEditing'))return;const _0x5d9c2d=_0x54526a['plugins']['get']('TrackChangesEditing');_0x5d9c2d['enableDefaultAttributesIntegration']('alignment'),_0x5d9c2d['registerBlockAttribute']('alignment'),_0x5d9c2d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x39fdc5,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56750e=this['editor'],_0x1575b0=_0x56750e['locale'];_0x56750e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ae4ff=>{if('formatBlock'!=_0x2ae4ff['type'])return;const {data:_0x139e5b}=_0x2ae4ff;if(_0x139e5b&&'alignment'==_0x139e5b['commandName']){const _0x2ccd14=_0x139e5b['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1575b0,'*Format:*\x20%0',function(_0x59efcc){switch(_0x59efcc){case'left':return o(_0x1575b0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1575b0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1575b0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1575b0,'FORMAT_JUSTIFY_TEXT');}}(_0x2ccd14))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1367c6{['afterInit'](){const _0x3400b1=this['editor'],_0x67b65c=_0x3400b1['plugins']['get']('TrackChangesEditing'),_0xe4245e=_0x3400b1['locale'];for(const _0x5728a4 of ti){if(!_0x3400b1['plugins']['has'](_0x5728a4))continue;const _0x31e91d=_0x5728a4['slice'](0x0,-0x7)['toLowerCase'](),_0x1e3f06='FORMAT_'+_0x31e91d['toUpperCase']();_0x67b65c['enableDefaultAttributesIntegration'](_0x31e91d),_0x67b65c['registerInlineAttribute'](_0x31e91d),_0x67b65c['descriptionFactory']['registerAttributeLabel'](_0x31e91d,o(_0xe4245e,_0x1e3f06));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x741b9c=this['editor'],_0x38195f=_0x741b9c['locale'],_0x57065a=_0x741b9c['plugins']['get']('TrackChangesEditing');function _0x39a8cf(_0x14c5fc,_0x19eaaf){_0x57065a['descriptionFactory']['registerDescriptionCallback'](_0x1a610b=>{if('formatInline'!=_0x1a610b['type'])return;const {data:_0x207bc6}=_0x1a610b;return _0x207bc6&&_0x207bc6['commandName']===_0x14c5fc?_0x207bc6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38195f,'*Format:*\x20%0',_0x19eaaf)}:{'type':'format','content':o(_0x38195f,'*Remove\x20format:*\x20%0',_0x19eaaf)}:void 0x0;});}_0x39a8cf('bold',o(_0x38195f,'FORMAT_BOLD')),_0x39a8cf('italic',o(_0x38195f,'FORMAT_ITALIC')),_0x39a8cf('underline',o(_0x38195f,'FORMAT_UNDERLINE')),_0x39a8cf('code',o(_0x38195f,'FORMAT_CODE')),_0x39a8cf('strikethrough',o(_0x38195f,'FORMAT_STRIKETHROUGH')),_0x39a8cf('subscript',o(_0x38195f,'FORMAT_SUBSCRIPT')),_0x39a8cf('superscript',o(_0x38195f,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1367c6{['afterInit'](){const _0x24b426=this['editor'],_0x389840=_0x24b426['locale'];if(!_0x24b426['plugins']['has']('BlockQuoteEditing'))return;const _0x5d7641=_0x24b426['plugins']['get']('TrackChangesEditing'),_0x30ac8d=this['editor']['commands']['get']('blockQuote');_0x5d7641['enableCommand']('blockQuote',(_0x33c8d0,_0x18bb99={})=>{const _0x349f71=this['editor']['model']['document']['selection'],_0x147b04=_0x18bb99&&void 0x0!==_0x18bb99['forceValue']?_0x18bb99['forceValue']:!_0x30ac8d['value'];let _0x241738=[];if(_0x147b04){const _0x21e4ab=Array['from'](_0x349f71['getSelectedBlocks']())['filter'](_0x5be7f5=>oo(_0x5be7f5)||function(_0x4bba75,_0x5de1d7){const _0x23230c=_0x5de1d7['checkChild'](_0x4bba75['parent'],'blockQuote'),_0x5cef31=_0x5de1d7['checkChild'](['$root','blockQuote'],_0x4bba75);return _0x23230c&&_0x5cef31;}(_0x5be7f5,this['editor']['model']['schema']));_0x241738=to(_0x21e4ab,_0x24b426['model']);}else{const _0x27eaf9=Array['from'](_0x349f71['getSelectedBlocks']())['filter'](_0x2330be=>oo(_0x2330be));_0x241738=to(_0x27eaf9,_0x24b426['model']);}_0x24b426['model']['change'](()=>{for(const _0x1e84a6 of _0x241738)_0x5d7641['markBlockFormat'](_0x1e84a6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x147b04}]});});}),_0x5d7641['descriptionFactory']['registerDescriptionCallback'](_0x3f44e6=>{const {data:_0x20174d}=_0x3f44e6;if(_0x20174d&&'blockQuote'==_0x20174d['commandName']){const _0x199eba=o(_0x389840,'ELEMENT_BLOCK_QUOTE');return _0x20174d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x389840,'*Set\x20format:*\x20%0',_0x199eba)}:{'type':'format','content':o(_0x389840,'*Remove\x20format:*\x20%0',_0x199eba)};}});}}function oo(_0x1f0466){return'blockQuote'==_0x1f0466['parent']['name'];}class G extends _0x1367c6{['afterInit'](){const _0x192e91=this['editor'];_0x192e91['plugins']['has']('CaseChange')&&(_0x192e91['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x192e91['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x192e91['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1367c6{['afterInit'](){const _0x6dc4fa=this['editor'];_0x6dc4fa['commands']['get']('ckbox')&&_0x6dc4fa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1367c6{['afterInit'](){const _0x1aba8f=this['editor'];if(!_0x1aba8f['plugins']['has']('CodeBlock'))return;const _0x595734=_0x1aba8f['plugins']['get']('TrackChangesEditing'),_0x33da1e=_0x1aba8f['locale'],_0x50b483=_0x1aba8f['config']['get']('codeBlock')['languages'],_0xd4c1b6=_0x1aba8f['commands']['get']('codeBlock');_0x595734['enableCommand']('indentCodeBlock'),_0x595734['enableCommand']('outdentCodeBlock'),_0x595734['enableCommand']('codeBlock',(_0x474dd0,_0x48a2c8={})=>{const _0x4b63d5=_0x1aba8f['model'],_0x117de4=_0x1aba8f['model']['document']['selection'],_0x5757cc=_0x48a2c8&&void 0x0!==_0x48a2c8['forceValue']?_0x48a2c8['forceValue']:!_0xd4c1b6['value'];let _0x35c480;_0x48a2c8['language']||(_0x48a2c8['language']=_0x50b483[0x0]['language']),_0x35c480=_0x5757cc?Array['from'](_0x117de4['getSelectedBlocks']())['filter'](_0x70f89f=>eo(_0x70f89f)||function(_0x1b7f91,_0xc81011){if(_0x1b7f91['is']('rootElement')||_0xc81011['isLimit'](_0x1b7f91))return!0x1;return _0xc81011['checkChild'](_0x1b7f91['parent'],'codeBlock');}(_0x70f89f,_0x4b63d5['schema'])):Array['from'](_0x117de4['getSelectedBlocks']())['filter'](_0x175958=>eo(_0x175958));const _0x159415=to(_0x35c480,_0x4b63d5);_0x4b63d5['change'](()=>{for(const _0xe2e93d of _0x159415)_0x595734['markBlockFormat'](_0xe2e93d,{'commandName':'codeBlock','commandParams':[{..._0x48a2c8,'forceValue':_0x5757cc}],'formatGroupId':'blockName'});});}),(_0x595734['descriptionFactory']['registerElementLabel']('codeBlock',_0x346776=>o(_0x33da1e,'ELEMENT_CODE_BLOCK',_0x346776)),_0x595734['descriptionFactory']['registerDescriptionCallback'](_0x25f97f=>{if('formatBlock'!=_0x25f97f['type'])return;const _0x175089=_0x33da1e['t'],{data:_0xec8c5d}=_0x25f97f;if(!_0xec8c5d||'codeBlock'!=_0xec8c5d['commandName'])return;const _0x14d6e4=_0xec8c5d['commandParams'][0x0]['language'],_0xe6bf26=_0x175089(_0x50b483['find'](_0x574791=>_0x574791['language']===_0x14d6e4)['label'])['toLowerCase']();return _0xec8c5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33da1e,'*Set\x20format:*\x20%0',o(_0x33da1e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xe6bf26+')')}:{'type':'format','content':o(_0x33da1e,'*Remove\x20format:*\x20%0',o(_0x33da1e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x28edc4){return'codeBlock'==_0x28edc4['name'];}class H extends _0x1367c6{['afterInit'](){const _0x1bbce2=this['editor'];if(!_0x1bbce2['plugins']['has']('CommentsEditing'))return;_0x1bbce2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x184b43,_0x1f14e3,_0x5ecb2d){const _0x5d60c6=[];for(const _0x322f56 of _0x1f14e3['getItems']())_0x322f56['hasAttribute'](_0x184b43)&&_0x5d60c6['push'](_0x5ecb2d['createRangeOn'](_0x322f56));return _0x5d60c6;}function _e(_0x42c21d,_0x2cecb5,{showActiveMarker:_0x5a60ac=!0x0}={}){const _0x34e4ff=_0x42c21d['plugins']['get']('TrackChangesEditing');return(_0x10cf83,_0x49515f,_0x3ad359)=>{if(!_0x3ad359['consumable']['test'](_0x49515f['markerRange'],_0x10cf83['name']))return;const _0x47b679=_0x49515f['markerRange']['getWalker'](),_0x2b1b83=_0x49515f['markerRange']['start'],_0xf06c75=_0x42c21d['model']['schema'];let _0x2f2ce2=null,_0x2dc29d=null,_0x522af2=!0x1,_0x415197=!0x1;for(const _0x37172e of _0x47b679){const _0x3b685c=_0x37172e['item'];_0x522af2=_0x522af2||_0xf06c75['isContent'](_0x3b685c);const _0x1b7f62=_0x3ad359['mapper']['toViewElement'](_0x3b685c);if(_0x1b7f62&&_0x1b7f62['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x37172e['type']&&(_0xf06c75['isBlock'](_0x3b685c)&&!_0xf06c75['isLimit'](_0x3b685c)&&(_0x3b685c['nextSibling']||_0x2b1b83['isAtEnd']?_0x2f2ce2&&_0x2f2ce2['parent']==_0x3b685c||(_0x2f2ce2=_0x3b685c,_0x11d7b5(_0x37172e['previousPosition']),_0x415197=!0x0):_0x2dc29d=_0x2dc29d||_0x37172e['previousPosition']));}function _0x11d7b5(_0x21d2b3){const _0x2aaaee=_0x3ad359['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cecb5}),_0x1a962d=_0x3ad359['mapper']['toViewPosition'](_0x21d2b3);_0x5a60ac&&_0x34e4ff['activeMarkers']['includes'](_0x49515f['markerName'])&&_0x3ad359['writer']['addClass']('ck-suggestion-marker--active',_0x2aaaee),_0x3ad359['writer']['insert'](_0x1a962d,_0x2aaaee),_0x3ad359['mapper']['bindElementToMarker'](_0x2aaaee,_0x49515f['markerName']);}_0x522af2||_0x415197||!_0x2dc29d||_0x11d7b5(_0x2dc29d);};}class q extends _0x1367c6{static get['requires'](){return[_0x1726d8];}['init'](){const _0x352ff0=this['editor'],_0x348a9c=_0x352ff0['plugins']['get']('TrackChangesEditing');_0x348a9c['enableCommand']('delete');const _0x22ffd8=_0x352ff0['commands']['get']('deleteForward');_0x348a9c['enableCommand']('deleteForward',(_0x109d30,_0x412bd5={})=>{const _0x2fb528=_0x352ff0['model']['createSelection'](_0x352ff0['model']['document']['selection']);_0x2fb528['isCollapsed']&&_0x352ff0['model']['modifySelection'](_0x2fb528,{'direction':'forward','unit':_0x412bd5['unit']});const _0xa937d4=_0x2fb528['getFirstRange'](),_0xcc54cc=_0x24837b['fromRange'](_0xa937d4);let _0x248e1d;_0x109d30(_0x412bd5),_0x248e1d='$graveyard'==_0xcc54cc['root']['rootName']?_0x352ff0['model']['createRange'](_0xa937d4['start']):_0x352ff0['model']['createRange'](_0xcc54cc['start'],_0xcc54cc['end']),_0xcc54cc['detach'](),_0x352ff0['model']['enqueueChange'](_0x22ffd8['buffer']['batch'],_0x5c7cbb=>{_0x22ffd8['buffer']['lock'](),_0x5c7cbb['setSelection'](_0x5c7cbb['createRange'](_0x248e1d['end'])),_0x22ffd8['buffer']['unlock']();});}),_0x352ff0['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x352ff0,'merge'),{'priority':'high'}),_0x352ff0['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1bd810,_0x12232b,_0x1aae4a)=>{_0x1aae4a['options']['showSuggestionHighlights']&&_e(_0x352ff0,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1bd810,_0x12232b,_0x1aae4a);},{'priority':'high'}),_0x352ff0['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x42dae2,_0x59bf47,_0x397746)=>{const _0x2efc40=_0x397746['mapper']['markerNameToElements'](_0x59bf47['markerName']);if(_0x2efc40){for(const _0x4b338e of _0x2efc40)_0x4b338e['is']('uiElement')&&(_0x397746['mapper']['unbindElementFromMarkerName'](_0x4b338e,_0x59bf47['markerName']),_0x397746['writer']['remove'](_0x4b338e));}},{'priority':'high'});}}class z extends _0x1367c6{['afterInit'](){const _0x551c0c=this['editor'];if(!_0x551c0c['plugins']['has']('ListEditing'))return;const _0x502f0c=_0x551c0c['locale'],_0x156cb8=_0x551c0c['plugins']['get']('TrackChangesEditing'),_0x10360e=_0x551c0c['plugins']['has']('TodoListEditing'),_0x475b5d=!!_0x551c0c['config']['get']('list.multiBlock');function _0x3c0d64(_0x57ca8e){return{'type':'format','content':''+o(_0x502f0c,'*Set\x20format:*\x20%0',_0x57ca8e)};}function _0x1ca058(_0x5209b0){return{'type':'format','content':''+o(_0x502f0c,'*Remove\x20format:*\x20%0',_0x5209b0)};}_0x156cb8['enableDefaultAttributesIntegration']('numberedList'),_0x156cb8['enableDefaultAttributesIntegration']('bulletedList'),_0x156cb8['enableDefaultAttributesIntegration']('customNumberedList'),_0x156cb8['enableDefaultAttributesIntegration']('customBulletedList'),_0x156cb8['enableDefaultAttributesIntegration']('indentList'),_0x156cb8['enableDefaultAttributesIntegration']('outdentList'),_0x156cb8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x156cb8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x156cb8['registerBlockAttribute']('listItemId'),_0x156cb8['registerBlockAttribute']('listType'),_0x156cb8['registerBlockAttribute']('listIndent'),_0x475b5d&&(_0x156cb8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x156cb8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x10360e&&(_0x156cb8['enableDefaultAttributesIntegration']('todoList'),_0x156cb8['enableDefaultAttributesIntegration']('checkTodoList'),_0x156cb8['registerBlockAttribute']('todoListChecked'),_0x156cb8['descriptionFactory']['registerDescriptionCallback'](_0x5a2741=>{const {data:_0x23d329}=_0x5a2741;if(_0x23d329&&'todoListChecked'==_0x23d329['key'])return{'type':'format','content':_0x23d329['newValue']?o(_0x502f0c,'*Check\x20item*'):o(_0x502f0c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x951eb1=>{if(_0x951eb1['batch']['isUndo'])return!0x1;let _0x373721=!0x1;const _0x2bdbb2=_0x156cb8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x351789=>'todoListChecked'===_0x156cb8['_getAttributeKey'](_0x351789));for(const _0x3b6a7b of _0x2bdbb2){'todo'!=_0x3b6a7b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x156cb8['_findSuggestions'](_0x3b6a7b['getFirstRange'](),'attribute')['find'](_0x502a5f=>'listType'===_0x156cb8['_getAttributeKey'](_0x502a5f['suggestion']))||(_0x951eb1['removeMarker'](_0x3b6a7b['getFirstMarker']()),_0x373721=!0x0));}return _0x373721;})),_0x156cb8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x502f0c,'FORMAT_INDENT'));const _0x5cccc2={'type':'format','content':''};_0x156cb8['descriptionFactory']['registerDescriptionCallback'](_0x529bca=>{const {data:_0x22a148}=_0x529bca;if(!_0x22a148||'listType'!=_0x22a148['key'])return;let _0x1fcb67=_0x529bca['head'];for(;_0x1fcb67;){if(_0x1fcb67['data']&&(('listStyle'==_0x1fcb67['data']['key']||'listMarkerStyle'==_0x1fcb67['data']['key'])&&(_0x1fcb67['data']['newValue']&&'default'!=_0x1fcb67['data']['newValue']||'default'!=_0x1fcb67['data']['oldValue']&&!_0x22a148['newValue'])||!_0x475b5d&&_0x1fcb67['data']['key']==m))return _0x5cccc2;_0x1fcb67=_0x1fcb67['next'];}if(null==_0x22a148['newValue'])switch(_0x22a148['oldValue']){case'bulleted':return _0x1ca058(o(_0x502f0c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ca058(o(_0x502f0c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ca058(o(_0x502f0c,'ELEMENT_TODO_LIST'));}switch(_0x22a148['newValue']){case'bulleted':return _0x3c0d64(o(_0x502f0c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c0d64(o(_0x502f0c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c0d64(o(_0x502f0c,'ELEMENT_TODO_LIST'));}}),_0x156cb8['descriptionFactory']['registerDescriptionCallback'](_0x4e87f5=>{const {data:_0x4cf357}=_0x4e87f5;if(_0x4cf357&&'listIndent'==_0x4cf357['key'])return null==_0x4cf357['newValue']||null==_0x4cf357['oldValue']&&0x0==_0x4cf357['newValue']?_0x5cccc2:void 0x0;}),_0x156cb8['descriptionFactory']['registerDescriptionCallback'](_0x193520=>{if('attribute'!=_0x193520['type'])return;const {data:_0xdc1cd5}=_0x193520;if(!_0xdc1cd5||'listItemId'!=_0xdc1cd5['key'])return;const _0x554fb=le(_0x193520);return'newValue'==_0x554fb?{'type':'format','content':o(_0x502f0c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x554fb?{'type':'format','content':o(_0x502f0c,'*Split:*\x20list\x20item')}:_0x5cccc2;}),_0x551c0c['model']['document']['registerPostFixer'](_0x46eb05=>this['listItemIdFixer'](_0x46eb05)),_0x551c0c['model']['document']['registerPostFixer'](_0x530848=>this['noTrackChangesFixer'](_0x530848)),_0x551c0c['model']['document']['registerPostFixer'](_0xeb1cfd=>this['assureChains'](_0xeb1cfd)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x48e41c){if(_0x48e41c['batch']['isUndo']||!_0x48e41c['batch']['isLocal'])return!0x1;let _0x409123=!0x1;const _0x56b3c2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1dbc0e=>_0x1dbc0e['data']&&'listItemId'==_0x1dbc0e['data']['key'])['filter'](_0xd2412e=>_0xd2412e['data']['newValue']&&_0xd2412e['data']['oldValue']);for(const _0x1a8dae of _0x56b3c2)le(_0x1a8dae)||(_0x48e41c['removeMarker'](_0x1a8dae['getFirstMarker']()),_0x409123=!0x0);return _0x409123;}['noTrackChangesFixer'](_0x51efa4){if(_0x51efa4['batch']['isUndo']||!_0x51efa4['batch']['isLocal'])return!0x1;const _0x3b6956=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3b6956['trackChangesCommand']['value'])return!0x1;let _0x157d19=!0x1;const _0x506b33=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5275a6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xf87a6=>'attribute'==_0xf87a6['type'])['filter'](_0x12daf1=>_0x506b33['includes'](_0x12daf1['attributeKey']));if(0x0==_0x5275a6['length'])return _0x157d19;for(const _0x4c2991 of _0x5275a6){const _0x12c402=_0x3b6956['_findSuggestions'](_0x4c2991['range'],'attribute')['filter'](_0x5b83f0=>!_0x5b83f0['meta']['isNextTo'])['map'](_0x382a66=>_0x382a66['suggestion'])['filter'](_0x25d270=>{const _0x10c2f0=_0x3b6956['_getAttributeKey'](_0x25d270);return _0x506b33['includes'](_0x10c2f0);});if(_0x12c402['length']){for(const _0x55902c of _0x12c402)_0x51efa4['removeMarker'](_0x55902c['getFirstMarker']());_0x157d19=!0x0;}}return _0x157d19;}['assureChains'](_0x18d446){if(_0x18d446['batch']['isUndo']||!_0x18d446['batch']['isLocal'])return!0x1;const _0x6805b3=this['editor']['plugins']['get']('TrackChangesEditing');let _0x25cb56=!0x1;const _0x3e067c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x491647 of _0x6805b3['getSuggestions']({'skipNotAttached':!0x0})){const _0x3eb1c6=_0x6805b3['_findSuggestions'](_0x491647['getFirstRange'](),'attribute')['map'](_0x25da16=>_0x25da16['suggestion'])['filter'](_0x309d0=>_0x309d0['data']&&_0x3e067c['includes'](_0x309d0['data']['key']));if(!_0x3eb1c6['length'])continue;const _0x7ba7d=_0x3eb1c6[0x0]['head']['attributes']['groupId'];if(!_0x3eb1c6['every'](_0x49237e=>_0x49237e['attributes']['groupId']===_0x7ba7d)){for(const _0xcc330b of _0x3eb1c6)_0x4a454a(_0xcc330b,_0x7ba7d)&&(_0x25cb56=!0x0);}}return _0x25cb56;function _0x133bf5(_0x5ba984,_0x204e99){for(const _0x322a5c of _0x6805b3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7f5243=>'attribute'==_0x7f5243['type']&&_0x7f5243['attributes']['groupId']==_0x5ba984))_0x322a5c['setAttribute']('groupId',_0x204e99);}function _0x4a454a(_0x1a84f1,_0x45ad3d){let _0x2ca4ed=_0x1a84f1['head'],_0x3da327=!0x1;for(;_0x2ca4ed;)_0x2ca4ed['attributes']['groupId']!=_0x45ad3d&&(_0x133bf5(_0x2ca4ed['attributes']['groupId'],_0x45ad3d),_0x2ca4ed['setAttribute']('groupId',_0x45ad3d),_0x3da327=!0x0),_0x2ca4ed=_0x2ca4ed['next'];return _0x3da327;}}['_supportLegacySuggestions'](){const _0xabcc30=this['editor'],_0x1c43e0=_0xabcc30['locale'],_0x2fd10d=_0xabcc30['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2fd10d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xabb132,_0xd3527a){const _0x23f666=[];for(let _0x2633c8 of _0xabb132)_0x2633c8['start']['nodeAfter']===_0x2633c8['end']['parent']&&(_0x2633c8=_0xabcc30['model']['createRange'](_0xabcc30['model']['createPositionAt'](_0x2633c8['start']['nodeAfter'],0x0))),_0x23f666['push'](_0x2633c8);_0xabcc30['model']['change'](_0x347dd5=>{const _0x15cbf4=_0xabcc30['model']['document']['selection'],_0x38823d=Array['from'](_0x15cbf4['getRanges']())['map'](_0x40fa9f=>_0x24837b['fromRange'](_0x40fa9f));_0x347dd5['setSelection'](_0x23f666),_0xabcc30['commands']['get'](_0xd3527a['commandName'])['refresh'](),_0xd3527a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xabcc30['execute'](_0xd3527a['commandName'],..._0xd3527a['commandParams']),_0x347dd5['setSelection'](_0x38823d);for(const _0x32efff of _0x38823d)_0x32efff['detach']();});}),_0x2fd10d['descriptionFactory']['registerElementLabel'](function(_0x3e4bea){const _0x47fa81=!_0xabcc30['model']['schema']['isObject'](_0x3e4bea),_0x1e7af8=_0x3e4bea['previousSibling'],_0x5ce95d=_0x3e4bea['nextSibling'],_0x439abb=_0x3e4bea['getAttribute']('listItemId'),_0x3a989e=!_0x1e7af8||_0x1e7af8['getAttribute']('listItemId')!==_0x439abb,_0x3364a9=!_0x5ce95d||_0x5ce95d['getAttribute']('listItemId')!==_0x439abb;return _0x47fa81&&Boolean(_0x439abb)&&_0x3a989e&&_0x3364a9;},_0xb9950a=>o(_0x1c43e0,'ELEMENT_LIST_ITEM',_0xb9950a));}['_registerLegacyDescription'](){const _0x2e4d59=this['editor'],_0x397eda=_0x2e4d59['locale'];function _0x2832c6(_0x243d65){const _0x313812=_0x2e4d59['commands']['get']('bulletedList')['value'],_0x435ad5=_0x2e4d59['commands']['get']('numberedList')['value'];return'numberedList'===_0x243d65?_0x313812:_0x435ad5;}_0x2e4d59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x152be9){if('formatBlock'!=_0x152be9['type'])return;const {data:_0xcbf9ca}=_0x152be9;if(!_0xcbf9ca)return;let _0x558c29,_0x54ea47,_0x31d201,_0x11aa59;switch(_0xcbf9ca['commandName']){case'bulletedList':_0x31d201=_0xcbf9ca['commandParams'][0x0]['forceValue'],_0x11aa59=_0x2832c6(_0xcbf9ca['commandName']),_0x558c29=_0x31d201?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11aa59&&_0x2e4d59['config']['get']('list.multiBlock')||(_0x558c29='*Change\x20to:*\x20%0'),_0x54ea47={'type':'format','content':o(_0x397eda,_0x558c29,o(_0x397eda,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x31d201=_0xcbf9ca['commandParams'][0x0]['forceValue'],_0x11aa59=_0x2832c6(_0xcbf9ca['commandName']),_0x558c29=_0x31d201?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11aa59&&_0x2e4d59['config']['get']('list.multiBlock')||(_0x558c29='*Change\x20to:*\x20%0'),_0x54ea47={'type':'format','content':o(_0x397eda,_0x558c29,o(_0x397eda,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x558c29='*Indent:*\x20%0',_0x54ea47={'type':'format','content':o(_0x397eda,_0x558c29,o(_0x397eda,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x558c29=function(_0x3d0349){const _0x406253=_0x3d0349['getFirstRange']();let _0x18ebfd=_0x406253['start']['nodeAfter'];for(;_0x18ebfd&&_0x406253['containsItem'](_0x18ebfd);){if(_0x18ebfd['getAttribute']('listIndent')>0x0)return!0x1;_0x18ebfd=_0x18ebfd['nextSibling'];}return!0x0;}(_0x152be9)?o(_0x397eda,'*Format:*\x20remove\x20from\x20%0',o(_0x397eda,function(_0x29e7ab){return'ELEMENT_'+_0x29e7ab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x152be9))):o(_0x397eda,'*Outdent:*\x20%0',o(_0x397eda,'ELEMENT_LIST_ITEM')),_0x54ea47={'type':'format','content':_0x558c29};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xcbf9ca['multipleBlocks']&&(_0x558c29='*Merge:*\x20%0',_0x54ea47={'type':'deletion','content':o(_0x397eda,_0x558c29,o(_0x397eda,'ELEMENT_LIST_ITEM'))});}return _0x54ea47;});}}function le(_0x4cb9c0){let _0x232afc=_0x4cb9c0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x232afc;){const _0x4177cd=_0x232afc['getAttribute']('listItemId');if(!_0x4177cd)return!0x1;if(_0x4177cd==_0x4cb9c0['data']['newValue'])return'newValue';if(_0x4177cd==_0x4cb9c0['data']['oldValue'])return'oldValue';_0x232afc=_0x232afc['previousSibling'];}return!0x1;}class ue extends _0x1367c6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x529ba6=this['editor']['config']['get']('list.properties'),_0x2d03d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x529ba6['styles']&&(_0x2d03d7['enableDefaultAttributesIntegration']('listStyle'),_0x2d03d7['registerBlockAttribute']('listStyle')),_0x529ba6['reversed']&&(_0x2d03d7['enableDefaultAttributesIntegration']('listReversed'),_0x2d03d7['registerBlockAttribute']('listReversed')),_0x529ba6['startIndex']&&(_0x2d03d7['enableDefaultAttributesIntegration']('listStart'),_0x2d03d7['registerBlockAttribute']('listStart'));const _0x6044f9={'type':'format','content':''};_0x2d03d7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x148dab=this['editor']['locale'];_0x2d03d7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x148dab,'FORMAT_LIST_REVERSED')),_0x2d03d7['descriptionFactory']['registerDescriptionCallback'](_0x526d1d=>{const {data:_0x3d3af4}=_0x526d1d;if(_0x3d3af4&&'listReversed'==_0x3d3af4['key'])return null==_0x3d3af4['newValue']||0x0==_0x3d3af4['newValue']&&null==_0x3d3af4['oldValue']?_0x6044f9:void 0x0;}),_0x2d03d7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x148dab,'FORMAT_LIST_START')),_0x2d03d7['descriptionFactory']['registerDescriptionCallback'](_0x5d7702=>{const {data:_0x52bd71}=_0x5d7702;if(_0x52bd71&&'listStart'==_0x52bd71['key'])return null==_0x52bd71['newValue']||0x1==_0x52bd71['newValue']&&null==_0x52bd71['oldValue']?_0x6044f9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1ecc86=>{if(_0x1ecc86['batch']['isUndo'])return!0x1;let _0x34d5e7=!0x1;const _0x28f998=_0x2d03d7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4be261=>{const _0x4bd99f=_0x2d03d7['_getAttributeKey'](_0x4be261);return'listStart'==_0x4bd99f||'listReversed'==_0x4bd99f;});for(const _0x5be473 of _0x28f998){const _0x27eb60=_0x5be473['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x27eb60||'customNumbered'==_0x27eb60)continue;_0x2d03d7['_findSuggestions'](_0x5be473['getFirstRange'](),'attribute')['find'](_0x4daad4=>'listType'==_0x2d03d7['_getAttributeKey'](_0x4daad4['suggestion']))||(_0x1ecc86['removeMarker'](_0x5be473['getFirstMarker']()),_0x34d5e7=!0x0);}return _0x34d5e7;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2b3110){const _0x29f893=this['editor']['locale'],{data:_0x1ef9d6}=_0x2b3110,_0x42818d={'type':'format','content':''};if(!_0x1ef9d6||'listStyle'!=_0x1ef9d6['key'])return;if(!_0x1ef9d6['oldValue'])return'default'==_0x1ef9d6['newValue']?_0x42818d:{'type':'format','content':''+o(_0x29f893,'*Set\x20format:*\x20%0',o(_0x29f893,this['_getTranslationKeyForListStyle'](_0x1ef9d6['newValue'])))};if(!_0x1ef9d6['newValue']){if('default'==_0x1ef9d6['oldValue'])return _0x42818d;let _0xbce0b9=_0x2b3110['head'];for(;_0xbce0b9;){if(_0xbce0b9['data']&&'listType'==_0xbce0b9['data']['key']&&_0xbce0b9['data']['newValue'])return _0x42818d;_0xbce0b9=_0xbce0b9['next'];}return{'type':'format','content':''+o(_0x29f893,'*Remove\x20format:*\x20%0',o(_0x29f893,this['_getTranslationKeyForListStyle'](_0x1ef9d6['oldValue'])))};}if('default'!=_0x1ef9d6['newValue'])return{'type':'format','content':''+o(_0x29f893,'*Set\x20format:*\x20%0',o(_0x29f893,this['_getTranslationKeyForListStyle'](_0x1ef9d6['newValue'])))};let _0x3332e5=_0x2b3110['head'];for(;_0x3332e5;){if(_0x3332e5['data']&&'listType'==_0x3332e5['data']['key']&&_0x3332e5['data']['newValue']&&_0x3332e5['data']['oldValue'])return _0x42818d;_0x3332e5=_0x3332e5['next'];}return{'type':'format','content':o(_0x29f893,'*Set\x20format:*\x20%0',o(_0x29f893,'ELEMENT_'+_0x2b3110['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3cd49d=this['editor'],_0x3c5d92=_0x3cd49d['locale'];_0x3cd49d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fd54f=>{if('formatBlock'!=_0x1fd54f['type'])return;const {data:_0x507501}=_0x1fd54f;if(!_0x507501)return;let _0x339770,_0x2b187d;switch(_0x507501['commandName']){case'listStyle':_0x339770='*Change\x20to:*\x20%0',_0x2b187d={'type':'format','content':o(_0x3c5d92,_0x339770,o(_0x3c5d92,this['_getTranslationKeyForListStyle'](_0x507501['commandParams'][0x0]['type'])))};break;case'listReversed':_0x339770=_0x507501['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2b187d={'type':'format','content':o(_0x3c5d92,_0x339770)};break;case'listStart':_0x339770='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b187d={'type':'format','content':o(_0x3c5d92,_0x339770,_0x507501['commandParams'][0x0]['startIndex'])};}return _0x2b187d;});}['_getTranslationKeyForListStyle'](_0xfed7f9){return'ELEMENT_'+function(_0x100e0e){if(pe['includes'](_0x100e0e))return'bulleted';if(ye['includes'](_0x100e0e))return'numbered';return null;}(_0xfed7f9)['toUpperCase']()+'_LIST_'+_0xfed7f9['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1367c6{static get['requires'](){return[_0x18c42d];}['init'](){const _0x1fdaaf=this['editor'],_0x6f411b=_0x1fdaaf['plugins']['get']('TrackChangesEditing'),_0x412447=_0x1fdaaf['commands']['get']('enter');_0x6f411b['enableCommand']('enter',()=>{_0x1fdaaf['model']['change'](_0x406f85=>{const _0x3e8f28=_0x1fdaaf['model']['document']['selection'],_0x2f47ca=_0x3e8f28['getFirstPosition'](),_0x35373b=_0x24837b['fromRange'](_0x3e8f28['getFirstRange']());if(_0x412447['enterBlock'](_0x406f85)){const _0x5474c6=_0x1fdaaf['model']['createPositionAt'](_0x2f47ca['parent']['nextSibling'],0x0),_0x1d04e6=_0x406f85['createRange'](_0x2f47ca,_0x5474c6);_0x6f411b['markInsertion'](_0x1d04e6);}else _0x406f85['setSelection'](_0x406f85['createRange'](_0x35373b['end']));_0x35373b['detach'](),_0x412447['fire']('afterExecute',{'writer':_0x406f85});});}),_0x1fdaaf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1fdaaf,'split'),{'priority':'high'}),_0x1fdaaf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1dc7b4,_0x47d4d8,_0x1ff5a2)=>{const _0x2d1542=_0x1ff5a2['mapper']['markerNameToElements'](_0x47d4d8['markerName']);if(_0x2d1542){for(const _0x58d662 of _0x2d1542)_0x58d662['hasClass']('ck-suggestion-marker-split')&&(_0x1ff5a2['mapper']['unbindElementFromMarkerName'](_0x58d662,_0x47d4d8['markerName']),_0x1ff5a2['writer']['remove'](_0x58d662));}},{'priority':'high'}),_0x1fdaaf['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2a5c02,_0x2985fc,_0x195604)=>{_0x195604['options']['showSuggestionHighlights']&&_e(_0x1fdaaf,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2a5c02,_0x2985fc,_0x195604);},{'priority':'high'});}}class J extends _0x1367c6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x537407=this['editor']['plugins']['get']('TrackChangesEditing');_0x537407['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x537407['enableCommand']('findNext'),_0x537407['enableCommand']('findPrevious'),_0x537407['enableCommand']('replace'),_0x537407['enableCommand']('replaceAll');}['handleFindCommand'](_0x32eb05,_0x2ce972,_0x1ed83e={}){const _0xc546b9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x32eb05(_0x43cb56=>{let _0x5e95db=('string'==typeof _0x2ce972?_0xc546b9['findByTextCallback'](_0x2ce972,_0x1ed83e):_0x2ce972)(_0x43cb56);Array['isArray'](_0x5e95db)&&(_0x5e95db={'results':_0x5e95db,'searchText':'string'==typeof _0x2ce972?_0x2ce972:''});const _0xf281d8=_0x5e95db['results']['filter'](_0x31af60=>!0x1===this['_isInDeletionRange'](_0x31af60,_0x43cb56['item']));return{..._0x5e95db,'results':_0xf281d8};},_0x1ed83e);}['_isInDeletionRange'](_0x2944df,_0x27d487){const _0x4bfea2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27d487,_0x2944df['start']),this['editor']['model']['createPositionAt'](_0x27d487,_0x2944df['end']));for(const _0x31074e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4bfea2['getIntersection'](_0x31074e['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 _0x1367c6{['afterInit'](){const _0x11b4dd=this['editor']['locale'],_0x2d1155=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4df492,commandName:_0x391712}of ro)this['editor']['plugins']['has'](_0x4df492)&&(_0x2d1155['enableDefaultAttributesIntegration'](_0x391712),_0x2d1155['registerInlineAttribute'](_0x391712));_0x2d1155['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11b4dd,'FORMAT_FONT_SIZE')),_0x2d1155['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11b4dd,'FORMAT_FONT_FAMILY')),_0x2d1155['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11b4dd,'FORMAT_FONT_COLOR')),_0x2d1155['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11b4dd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530cda=this['editor'],_0x4a1298=_0x530cda['locale'];_0x530cda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17eff0=>{const _0x59fa4f=_0x4a1298['t'];if('formatInline'!=_0x17eff0['type'])return;const {data:_0x459931}=_0x17eff0;if(null!=_0x459931){if('fontSize'==_0x459931['commandName']){const _0x52d9c2=_0x459931['commandParams'][0x0]['value'];if(_0x52d9c2){const _0x19a9f0=_0x59fa4f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x55c40d=>_0x55c40d['model']==_0x52d9c2)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4a1298,'*Set\x20font\x20size:*\x20%0',_0x19a9f0)};}return{'type':'format','content':o(_0x4a1298,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x459931['commandName']){const _0x2c49df=_0x459931['commandParams'][0x0]['value'];return _0x2c49df?{'type':'format','content':o(_0x4a1298,'*Set\x20font\x20family:*\x20%0',_0x2c49df)}:{'type':'format','content':o(_0x4a1298,'*Reset\x20font\x20family*')};}if('fontColor'==_0x459931['commandName']){const _0x1f7e6b=_0x459931['commandParams'][0x0]['value'];if(_0x1f7e6b){const _0x42c609=_0x28ac03(this['editor']['config']['get']('fontColor.colors'))['find'](_0x53e0fe=>_0x53e0fe['model']==_0x1f7e6b);let _0x40f9b6=_0x1f7e6b,_0x1b6f92='';return _0x42c609&&(_0x40f9b6=_0x42c609['label'],_0x1b6f92=_0x59fa4f(_0x40f9b6)['toLowerCase']()),{'type':'format','content':o(_0x4a1298,'*Set\x20font\x20color:*\x20%0',_0x1b6f92)['trim'](),'color':{'value':_0x1f7e6b,'title':_0x1b6f92||_0x40f9b6}};}return{'type':'format','content':o(_0x4a1298,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x459931['commandName']){const _0x428a64=_0x459931['commandParams'][0x0]['value'];if(_0x428a64){const _0x5897aa=_0x28ac03(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x51e6b6=>_0x51e6b6['model']==_0x428a64);let _0x34fca3=_0x428a64,_0x37ebb8='';return _0x5897aa&&(_0x34fca3=_0x5897aa['label'],_0x37ebb8=_0x59fa4f(_0x34fca3)['toLowerCase']()),{'type':'format','content':o(_0x4a1298,'*Set\x20font\x20background\x20color:*\x20%0',_0x37ebb8)['trim'](),'color':{'value':_0x428a64,'title':_0x37ebb8||_0x34fca3}};}return{'type':'format','content':o(_0x4a1298,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1367c6{['afterInit'](){const _0x27771e=this['editor'],_0x5bfe2d=_0x27771e['plugins']['get']('TrackChangesEditing'),_0x3e4baf=_0x27771e['commands']['get']('copyFormat'),_0x2392a4=_0x27771e['commands']['get']('pasteFormat');_0x3e4baf&&_0x2392a4&&(_0x5bfe2d['enableDefaultAttributesIntegration']('pasteFormat'),_0x5bfe2d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3ab256=this['editor'],_0x39e2d6=_0x3ab256['locale'];_0x3ab256['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cde54=>{if('formatBlock'!=_0x4cde54['type']&&'formatInline'!=_0x4cde54['type'])return;const {data:_0x5bed6e}=_0x4cde54;if(_0x5bed6e&&'pasteFormat'===_0x5bed6e['commandName']){const _0x52d984=[],_0x5cb7ee=_0x5bed6e['commandParams'][0x0];for(const [_0x38338f,_0x1ff525]of Object['entries'](_0x5cb7ee))_0x52d984['push'](so(_0x3ab256,_0x38338f,_0x1ff525));return _0x52d984['length']?{'type':'format','content':o(_0x39e2d6,'*Set\x20format\x20to:*\x20%0',_0x52d984['join'](',\x20'))}:{'type':'format','content':o(_0x39e2d6,'*Remove\x20all\x20formatting*')};}});}}function so(_0x230f3e,_0x1946a4,_0x3af116){const _0x320f79=_0x230f3e['locale']['t'],_0xcdf756=_0x1946a4['split'](/(?=[A-Z])/)['join']('\x20'),_0xfd1bcc=_0x320f79(_0xcdf756['charAt'](0x0)['toUpperCase']()+_0xcdf756['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3af116)return _0xfd1bcc;if('fontColor'===_0x1946a4||'fontBackgroundColor'===_0x1946a4){const _0x1681ee=_0x28ac03(_0x230f3e['config']['get']('fontColor.colors'))['find'](_0x180559=>_0x180559['model']==_0x3af116);return _0xfd1bcc+'\x20('+(_0x1681ee?_0x320f79(_0x1681ee['label'])['toLowerCase']():_0x3af116)+')';}if('fontSize'===_0x1946a4&&isNaN(parseFloat(_0x3af116))){const _0x140482=_0x230f3e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x230f3e['config']['get']('fontSize.options'))['find'](_0x183f91=>_0x183f91['model']==_0x3af116);return _0xfd1bcc+'\x20('+(_0x140482?_0x320f79(_0x140482['title'])['toLowerCase']():_0x3af116)+')';}return _0xfd1bcc+'\x20('+_0x3af116+')';}class Y extends _0x1367c6{['_headingOptions'];['afterInit'](){const _0x4cb6d4=this['editor'];if(!_0x4cb6d4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4cb6d4['config']['get']('heading.options');const _0xd77359=_0x4cb6d4['locale'],_0x3b5d7d=_0x4cb6d4['plugins']['get']('TrackChangesEditing');_0x3b5d7d['enableDefaultAttributesIntegration']('heading');for(const _0x3801c4 of this['_headingOptions'])'paragraph'!=_0x3801c4['model']&&_0x3b5d7d['descriptionFactory']['registerElementLabel'](_0x3801c4['model'],_0x12f6b3=>{const _0x21362b=this['_getHeadingLevel'](_0x3801c4['model']);return null!==_0x21362b?_0x51fe27(_0x12f6b3,_0x21362b):_0x4caf7d(_0x12f6b3,_0x3801c4['title']);});function _0x51fe27(_0x25d011,_0x1b8aee){return o(_0xd77359,'ELEMENT_HEADING',[_0x25d011,_0x1b8aee]);}function _0x4caf7d(_0x2a4faa,_0x1c2301){return o(_0xd77359,'ELEMENT_HEADING_CUSTOM',[_0x2a4faa,_0x1c2301]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x160625=this['editor'],_0x5e4d19=_0x160625['locale'];function _0x2a513d(_0x35dc09,_0x22cf44){return o(_0x5e4d19,'ELEMENT_HEADING_CUSTOM',[_0x35dc09,_0x22cf44]);}_0x160625['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41287a=>{if('formatBlock'!=_0x41287a['type'])return;const {data:_0x36bf50}=_0x41287a;if(_0x36bf50&&'heading'==_0x36bf50['commandName']){const _0x1bb49f=_0x36bf50['commandParams'][0x0]['value'],_0x5ad629=this['_getHeadingLevel'](_0x1bb49f);if(null!==_0x5ad629)return{'type':'format','content':o(_0x5e4d19,'*Change\x20to:*\x20%0',(_0x4793cb=0x1,_0xc21310=_0x5ad629,o(_0x5e4d19,'ELEMENT_HEADING',[_0x4793cb,_0xc21310])))};const _0x275ed4=this['_headingOptions']['find'](_0x2eba3c=>_0x2eba3c['model']===_0x1bb49f)['title'];return{'type':'format','content':o(_0x5e4d19,'*Change\x20to:*\x20%0',_0x2a513d(0x1,_0x275ed4))};}var _0x4793cb,_0xc21310;});}['_getHeadingLevel'](_0xe44439){const _0x1943cf=_0xe44439['match'](/^heading(\d+)/);if(_0x1943cf)return _0x1943cf[0x1];const _0x4dc780=this['_headingOptions']?.['find'](_0x13f0f3=>_0x13f0f3['model']==_0xe44439);if(_0x4dc780&&_0x4dc780['view']){const _0x22bacf=_0x4dc780['view'],_0x640570=(_0x22bacf['name']??_0x22bacf)['match'](/^h(\d+)/);if(_0x640570)return _0x640570[0x1];}return null;}}class Z extends _0x1367c6{['afterInit'](){const _0x32980c=this['editor'];if(!_0x32980c['plugins']['has']('HighlightEditing'))return;const _0x5adaf7=_0x32980c['plugins']['get']('TrackChangesEditing'),_0xebcedd=_0x32980c['locale'];_0x5adaf7['enableDefaultAttributesIntegration']('highlight'),_0x5adaf7['registerInlineAttribute']('highlight'),_0x5adaf7['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xebcedd,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13cdef=this['editor'],_0x158502=_0x13cdef['locale'];_0x13cdef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26a544=>{if('formatInline'!=_0x26a544['type'])return;const {data:_0xe90402}=_0x26a544;if(_0xe90402&&'highlight'==_0xe90402['commandName']){const _0x1ff8ee=_0x158502['t'],_0x538a0c=_0xe90402['commandParams'][0x0]['value'];if(_0x538a0c){const _0x155bc0=_0x13cdef['config']['get']('highlight.options')['find'](_0x5a89e8=>_0x5a89e8['model']==_0x538a0c),_0xdc7e11=_0x1ff8ee(_0x155bc0['title'])['toLowerCase']();return{'type':'format','content':o(_0x158502,'*Set\x20highlight:*\x20%0',_0xdc7e11),'color':{'value':_0x155bc0['color'],'title':_0x155bc0['title']}};}return{'type':'format','content':o(_0x158502,'*Remove\x20highlight*',o(_0x158502,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1367c6{['afterInit'](){const _0x54889a=this['editor'];if(!_0x54889a['plugins']['has']('HorizontalLineEditing'))return;_0x54889a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2b5a8e=_0x54889a['plugins']['get']('TrackChangesEditing'),_0x281565=_0x54889a['locale'];_0x2b5a8e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4436ab=>o(_0x281565,'ELEMENT_HORIZONTAL_LINE',_0x4436ab)),_0x54889a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x23e0f2,{writer:_0x4ea2e1,options:_0x3fd931})=>{if(!_0x3fd931['showSuggestionHighlights'])return null;const _0x142f82=_0x4ea2e1['createContainerElement']('div'),_0x23d4dc=_0x4ea2e1['createEmptyElement']('hr');return _0x4ea2e1['addClass']('ck-horizontal-line',_0x142f82),_0x4ea2e1['insert'](_0x4ea2e1['createPositionAt'](_0x142f82,0x0),_0x23d4dc),_0x142f82;},'converterPriority':'high'});}}class et extends _0x1367c6{['afterInit'](){const _0x10ed16=this['editor'];if(!_0x10ed16['plugins']['has']('HtmlEmbed'))return;const _0x1a4912=_0x10ed16['plugins']['get']('TrackChangesEditing'),_0x53c3c=_0x10ed16['locale'];_0x1a4912['descriptionFactory']['registerElementLabel']('rawHtml',_0x471ec9=>o(_0x53c3c,'ELEMENT_HTML_EMBED',_0x471ec9)),_0x1a4912['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1a4912['registerBlockAttribute']('value'),_0x1a4912['descriptionFactory']['registerDescriptionCallback'](_0x5eb0c7=>{if('attribute'!=_0x5eb0c7['type'])return;const {data:_0x32c63a}=_0x5eb0c7;if(_0x32c63a&&'value'==_0x32c63a['key']&&_0x5eb0c7['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56e930=o(_0x53c3c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x53c3c,'*Change\x20%0\x20content*',_0x56e930)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c3a52=this['editor'],_0xb7c4b1=_0x2c3a52['locale'];_0x2c3a52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2313d0=>{if('formatBlock'!=_0x2313d0['type'])return;const {data:_0x30cc14}=_0x2313d0;if(_0x30cc14&&'htmlEmbed'==_0x30cc14['commandName']){const _0x3c39d0=o(_0xb7c4b1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xb7c4b1,'*Change\x20%0\x20content*',_0x3c39d0)};}});}}class it extends _0x1367c6{['afterInit'](){const _0x4e04e5=this['editor'];if(!_0x4e04e5['plugins']['has']('ImageEditing'))return;const _0x39b7b=_0x4e04e5['plugins']['get']('TrackChangesEditing'),_0x2d26cc=_0x4e04e5['plugins']['get']('ImageUtils'),_0x228ba1=_0x4e04e5['locale'];_0x39b7b['enableCommand']('insertImage'),_0x39b7b['descriptionFactory']['registerElementLabel']('imageBlock',_0xca505a=>o(_0x228ba1,'ELEMENT_IMAGE',_0xca505a)),_0x39b7b['descriptionFactory']['registerElementLabel']('imageInline',_0x2dbcbf=>o(_0x228ba1,'ELEMENT_INLINE_IMAGE',_0x2dbcbf)),_0x39b7b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x228ba1,'ELEMENT_CAPTION')),_0x4e04e5['plugins']['has']('ImageUploadEditing')&&_0x39b7b['enableCommand']('uploadImage'),_0x4e04e5['plugins']['has']('ImageBlockEditing')&&_0x4e04e5['plugins']['has']('ImageInlineEditing')&&(_0x39b7b['enableCommand']('imageTypeInline',(_0x95ca59,_0x4bb175)=>{const _0x429314=_0x2d26cc['getClosestSelectedImageElement'](_0x4e04e5['model']['document']['selection']);_0x4e04e5['model']['change'](()=>{_0x39b7b['markBlockFormat'](_0x429314,{'commandName':'imageTypeInline','commandParams':[_0x4bb175]},[],'convertBlockImageToInline');});}),_0x39b7b['enableCommand']('imageTypeBlock',(_0xddb3bd,_0x3a3366)=>{_0x4e04e5['model']['change'](_0x54bf94=>{let _0xb09112=_0x2d26cc['getClosestSelectedImageElement'](_0x4e04e5['model']['document']['selection']),_0x2277ba=_0x54bf94['createRangeOn'](_0xb09112);const _0x8d1ce5=_0x12ff97['fromPosition'](_0x2277ba['start'],'toPrevious'),_0x593780=_0x12ff97['fromPosition'](_0x2277ba['end'],'toNext');_0x39b7b['forceDefaultExecution'](()=>_0xddb3bd(_0x3a3366)),_0xb09112=_0x2d26cc['getClosestSelectedImageElement'](_0x4e04e5['model']['document']['selection']),_0x2277ba=_0x54bf94['createRangeOn'](_0xb09112);const _0x3f87a3=_0x54bf94['createRange'](_0x8d1ce5,_0x593780);_0x8d1ce5['detach'](),_0x593780['detach'](),_0x39b7b['markBlockFormat'](_0xb09112,{'commandName':'imageTypeInline','commandParams':[_0x3a3366]},[],'convertInlineImageToBlock'),_0x3f87a3['start']['isBefore'](_0x2277ba['start'])&&_0x39b7b['markInsertion'](_0x54bf94['createRange'](_0x3f87a3['start'],_0x2277ba['start']),'convertInlineImageToBlock'),_0x2277ba['end']['isBefore'](_0x3f87a3['end'])&&_0x39b7b['markInsertion'](_0x54bf94['createRange'](_0x2277ba['end'],_0x3f87a3['end']),'convertInlineImageToBlock');});}),_0x39b7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x39b7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x39b7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x39b7b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x39b7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x39b7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xc651ce])=>{const _0x939f19=_0x39b7b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xae2f6c=_0xc651ce['start'],_0x2607cc=_0xc651ce['end'];const _0x25b7a5=_0x4e04e5['model']['schema']['getNearestSelectionRange'](_0xae2f6c,'backward'),_0x4cc045=_0x4e04e5['model']['schema']['getNearestSelectionRange'](_0x2607cc,'forward');_0x25b7a5['isCollapsed']&&(_0xae2f6c=_0x25b7a5['start']),_0x4cc045['isCollapsed']&&(_0x2607cc=_0x4cc045['end']),_0x939f19([_0x4e04e5['model']['createRange'](_0xae2f6c,_0x2607cc)]);}),_0x39b7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x25887a),_0x39b7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x25887a)),_0x4e04e5['plugins']['has']('ImageCaptionEditing')&&(_0x39b7b['enableCommand']('toggleImageCaption',(_0x49692a,_0x1e26c8)=>{const _0x520641=_0x4e04e5['plugins']['get']('ImageCaptionUtils');let _0x410d06=_0x2d26cc['getClosestSelectedImageElement'](_0x4e04e5['model']['document']['selection']),_0x3329ed=_0x520641['getCaptionFromImageModelElement'](_0x410d06);_0x4e04e5['model']['change'](()=>{if(_0x3329ed)return void _0x39b7b['markDeletion'](_0x4e04e5['model']['createRangeOn'](_0x3329ed));const _0x2faef5=_0x2d26cc['isBlockImage'](_0x410d06);_0x49692a(_0x1e26c8),_0x410d06=_0x2d26cc['getClosestSelectedImageElement'](_0x4e04e5['model']['document']['selection']),_0x3329ed=_0x520641['getCaptionFromImageModelElement'](_0x410d06),_0x39b7b['markInsertion'](_0x4e04e5['model']['createRangeOn'](_0x3329ed),_0x2faef5?null:'imageCaption');});}),_0x39b7b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x25887a));const _0x187c64=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3a8347(_0x16e90e,_0x3e2511){const _0xe646b3=_0x187c64['findIndex'](({type:_0x8c7777,subType:_0x2b447b})=>_0x16e90e['type']==_0x8c7777&&_0x16e90e['subType']==_0x2b447b),_0xc22352=_0x187c64['findIndex'](({type:_0x2dbf51,subType:_0x5bc92e})=>_0x3e2511['type']==_0x2dbf51&&_0x3e2511['subType']==_0x5bc92e);if(_0xe646b3<0x0||_0xc22352<0x0)return!0x1;const _0x5a0da9=_0x16e90e['getFirstRange'](),_0x5096b7=_0x3e2511['getFirstRange']();if((0x0==_0xe646b3||0x1==_0xe646b3)&&0x2==_0xc22352&&_0x5a0da9['isIntersecting'](_0x5096b7))return!0x0;if(0x2==_0xe646b3&&0x3==_0xc22352){const _0x359515=_0x39b7b['_findSuggestions'](_0x5a0da9,'insertion')['filter'](({suggestion:_0xe11d97,meta:_0x56f479})=>_0x56f479['isOwn']&&'convertInlineImageToBlock'==_0xe11d97['subType']);if(_0x359515['length']>0x1&&_0x5096b7['end']['isEqual'](_0x5a0da9['start']))return!0x0;if(0x1==_0x359515['length']&&(_0x5a0da9['start']['isEqual'](_0x5096b7['end'])||_0x5a0da9['end']['isEqual'](_0x5096b7['start'])))return!0x0;}if(0x3==_0xe646b3&&0x3==_0xc22352&&_0x5a0da9['start']['isBefore'](_0x5096b7['start'])){const _0x2d38fb=_0x5a0da9['end']['nodeAfter'],_0x22d86a=_0x5096b7['start']['nodeBefore'];return _0x2d26cc['isBlockImage'](_0x2d38fb)&&_0x2d38fb===_0x22d86a;}return!0x1;}function _0x25887a(_0x54d746,_0x4d7c4a){return _0x3a8347(_0x54d746,_0x4d7c4a)?[_0x54d746,_0x4d7c4a]:_0x3a8347(_0x4d7c4a,_0x54d746)?[_0x4d7c4a,_0x54d746]:null;}_0x4e04e5['plugins']['has']('ImageResize')&&(_0x39b7b['enableDefaultAttributesIntegration']('resizeImage'),_0x39b7b['registerBlockAttribute']('resizedWidth'),_0x39b7b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x228ba1,'FORMAT_IMAGE_SIZE'))),_0x4e04e5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x39b7b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x39b7b['registerBlockAttribute']('alt')),_0x39b7b['descriptionFactory']['registerDescriptionCallback'](_0x421f2d=>{if(!!_0x187c64['find'](({type:_0xdcff7a,subType:_0x430156})=>_0x421f2d['type']==_0xdcff7a&&_0x421f2d['subType']==_0x430156))return _0x421f2d['previous']?{}:void 0x0;}),_0x39b7b['descriptionFactory']['registerDescriptionCallback'](_0x33d3e0=>{if('insertion'==_0x33d3e0['type']||'deletion'==_0x33d3e0['type']){const _0x15ea44=_0x33d3e0['getContainedElement']();if(_0x15ea44&&_0x15ea44['is']('element','caption'))return{'type':'insertion'==_0x33d3e0['type']?'addObject':'removeObject','element':_0x15ea44,'quantity':0x1};}}),_0x39b7b['descriptionFactory']['registerDescriptionCallback'](_0x52dd09=>'formatBlock'==_0x52dd09['type']&&'convertInlineImageToBlock'==_0x52dd09['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x52dd09['type']&&'convertBlockImageToInline'==_0x52dd09['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x39b7b['descriptionFactory']['registerDescriptionCallback'](_0x51c5b3=>{if('attribute'!=_0x51c5b3['type'])return;const {data:_0x3ba666}=_0x51c5b3;if(!_0x3ba666||'alt'!=_0x3ba666['key'])return;const _0x1e9be4=_0x3ba666['newValue'];return _0x1e9be4?{'type':'format','content':o(_0x228ba1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1e9be4+'\x22')}:{'type':'format','content':o(_0x228ba1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a972c=this['editor'],_0x59ef2d=_0x2a972c['locale'];_0x2a972c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x151535=>{if('formatBlock'!=_0x151535['type']&&'formatInline'!=_0x151535['type'])return;const {data:_0x2796bc}=_0x151535;if(_0x2796bc){if('imageTextAlternative'==_0x2796bc['commandName']){const _0x1405ea=_0x2796bc['commandParams'][0x0]['newValue'];return _0x1405ea?{'type':'format','content':o(_0x59ef2d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1405ea+'\x22')}:{'type':'format','content':o(_0x59ef2d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2796bc['commandName']){const _0x3d9aec=_0x2796bc['commandParams'][0x0]['width'];return _0x3d9aec?{'type':'format','content':o(_0x59ef2d,'*Set\x20image\x20width:*\x20%0',_0x3d9aec)}:{'type':'format','content':o(_0x59ef2d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1367c6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1d7793=this['editor']['locale'],_0x11bb8e=this['editor']['plugins']['get']('TrackChangesEditing');_0x11bb8e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x11bb8e['registerBlockAttribute']('src'),_0x11bb8e['descriptionFactory']['registerDescriptionCallback'](_0x74834c=>{if('attribute'!=_0x74834c['type'])return;const {data:_0x26c928}=_0x74834c;return _0x26c928&&'src'==_0x26c928['key']?_0x26c928['newValue']&&_0x26c928['oldValue']?{'type':'format','content':o(_0x1d7793,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5109e5=this['editor']['plugins']['get']('TrackChangesEditing');_0x5109e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5109e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5109e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5109e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12cca3=this['editor'],_0xff107f=_0x12cca3['locale'];_0x12cca3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x367106=>{if('formatBlock'!=_0x367106['type']&&'formatInline'!=_0x367106['type'])return;const {data:_0x55ebad}=_0x367106;if(!_0x55ebad||'replaceImageSource'!=_0x55ebad['commandName'])return;return{'type':'format','content':o(_0xff107f,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1367c6{['afterInit'](){const _0x11dbf6=this['editor'];if(!_0x11dbf6['plugins']['has']('ImageStyleEditing'))return;const _0x5ed47c=_0x11dbf6['plugins']['get']('TrackChangesEditing'),_0x1929d9=_0x11dbf6['plugins']['get']('ImageUtils'),_0x4145e1={};_0x5ed47c['enableCommand']('imageStyle',(_0x5b8675,_0x373ffd)=>{const _0xd3b272=_0x11dbf6['plugins']['get']('Users')['me'],_0x492ef3=_0x11dbf6['commands']['get']('imageStyle');let _0x69724b=_0x1929d9['getClosestSelectedImageElement'](_0x11dbf6['model']['document']['selection']),_0x17c4bf=_0x11dbf6['model']['createRangeOn'](_0x69724b),_0x3cb118=_0x492ef3['value'];if(_0x3cb118==_0x373ffd['value'])return;const _0x49aa96={'commandName':'imageStyle','commandParams':[_0x373ffd],'formatGroupId':_0x22411c()};_0x11dbf6['model']['change'](()=>{if(_0x5ed47c['getSuggestions']()['filter'](_0x7431b9=>_0x7431b9['isInContent']&&_0xd3b272==_0x7431b9['author']&&('formatBlock'==_0x7431b9['type']||'formatInline'==_0x7431b9['type'])&&('imageStylePreApply'==_0x7431b9['subType']||'imageStylePostApply'==_0x7431b9['subType'])&&_0x7431b9['getFirstRange']()['isEqual'](_0x17c4bf))['forEach'](_0x2dbb7d=>_0x5ed47c['discardSuggestion'](_0x2dbb7d['head'])),_0x69724b=_0x1929d9['getClosestSelectedImageElement'](_0x11dbf6['model']['document']['selection']),_0x17c4bf=_0x11dbf6['model']['createRangeOn'](_0x69724b),_0x492ef3['refresh'](),_0x11dbf6['commands']['get']('imageTypeInline')['refresh'](),_0x11dbf6['commands']['get']('imageTypeBlock')['refresh'](),_0x3cb118=_0x492ef3['value'],_0x3cb118!=_0x373ffd['value'])return _0x1929d9['isInlineImage'](_0x69724b)&&_0x492ef3['shouldConvertImageType'](_0x373ffd['value'],_0x69724b)?(_0x5b8675({..._0x373ffd,'setImageSizes':!0x1}),_0x69724b=_0x1929d9['getClosestSelectedImageElement'](_0x11dbf6['model']['document']['selection']),void _0x5ed47c['markBlockFormat'](_0x69724b,{..._0x49aa96,'commandReversedParams':[{'value':_0x3cb118||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1929d9['isBlockImage'](_0x69724b)?_0x5ed47c['markBlockFormat'](_0x69724b,_0x49aa96,[],'imageStylePostApply'):_0x5ed47c['markInlineFormat'](_0x17c4bf,_0x49aa96,'imageStylePostApply'));});});for(const _0x40dbc1 of _0x11dbf6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4145e1[_0x40dbc1['name']]=_0x40dbc1['title']['toLowerCase']();_0x5ed47c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5ed47c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5ed47c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5ed47c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x55f1be])=>{_0x1929d9['setImageNaturalSizeAttributes'](_0x55f1be['getContainedElement']());}),_0x5ed47c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1d08ee,_0x3185c1)=>{_0x5ed47c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1d08ee,{'commandName':_0x3185c1['commandName'],'commandParams':_0x3185c1['commandReversedParams']});}),_0x5ed47c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x114faf,_0xeada2f){if(_0x1c00fd(_0x114faf,_0xeada2f))return[_0x114faf,_0xeada2f];if(_0x1c00fd(_0xeada2f,_0x114faf))return[_0xeada2f,_0x114faf];return null;});const _0x404574=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1c00fd(_0x252b0d,_0x1cade6){const _0x2d2169=_0x404574['findIndex'](({type:_0x4dbb0e,subType:_0x53d1b2})=>_0x252b0d['type']==_0x4dbb0e&&_0x252b0d['subType']==_0x53d1b2),_0x53c798=_0x404574['findIndex'](({type:_0x5e0962,subType:_0x4e0637})=>_0x1cade6['type']==_0x5e0962&&_0x1cade6['subType']==_0x4e0637);if(_0x2d2169<0x0||_0x53c798<0x0)return!0x1;const _0x33a3bd=_0x252b0d['getFirstRange'](),_0x4a9db9=_0x1cade6['getFirstRange']();if((0x0==_0x2d2169||0x1==_0x2d2169)&&0x2==_0x53c798&&_0x33a3bd['isIntersecting'](_0x4a9db9))return!0x0;if(0x2==_0x2d2169&&0x3==_0x53c798){const _0x4ec148=_0x5ed47c['_findSuggestions'](_0x33a3bd,'insertion')['filter'](({suggestion:_0x1edf76,meta:_0x43a214})=>_0x43a214['isOwn']&&'convertInlineImageToBlock'==_0x1edf76['subType']);if(_0x4ec148['length']>0x1&&_0x4a9db9['end']['isEqual'](_0x33a3bd['start']))return!0x0;if(0x1==_0x4ec148['length']&&(_0x33a3bd['start']['isEqual'](_0x4a9db9['end'])||_0x33a3bd['end']['isEqual'](_0x4a9db9['start'])))return!0x0;}if(0x3==_0x2d2169&&0x3==_0x53c798&&_0x33a3bd['start']['isBefore'](_0x4a9db9['start'])){const _0x1d91db=_0x33a3bd['end']['nodeAfter'],_0x325713=_0x4a9db9['start']['nodeBefore'];return _0x1929d9['isBlockImage'](_0x1d91db)&&_0x1d91db===_0x325713;}return!0x1;}_0x11dbf6['model']['document']['registerPostFixer'](()=>{let _0x3e2577=!0x1;const _0x4c710b=Array['from'](_0x11dbf6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d7bb1,data:_0x462116}of _0x4c710b){const {group:_0x5e7fa4,type:_0x1ec178,subType:_0x3b0374,id:_0x463f71}=_0x5ed47c['_splitMarkerName'](_0x1d7bb1);if('suggestion'==_0x5e7fa4&&_0x5ed47c['hasSuggestion'](_0x463f71)){if('formatBlock'==_0x1ec178&&('imageStylePreApply'==_0x3b0374||'imageStylePostApply'==_0x3b0374)){const _0x27a09b=_0x5ed47c['getSuggestion'](_0x463f71);if(_0x462116['newRange']){const _0x1318c5=_0x27a09b['getFirstRange']()['getContainedElement']();if(_0x1929d9['isBlockImage'](_0x1318c5))continue;_0x5ed47c['discardSuggestion'](_0x27a09b),_0x3e2577=!0x0;}}if('insertion'==_0x1ec178&&'imageCaption'==_0x3b0374&&!_0x462116['newRange']){const _0x5da81a=_0x5ed47c['getSuggestion'](_0x463f71);_0x5da81a['next']&&_0x5da81a['next']['isInContent']&&(_0x5ed47c['discardSuggestion'](_0x5da81a['next']),_0x3e2577=!0x0);}}}return _0x3e2577;}),this['_registerLegacyDescription'](_0x4145e1);}['_registerLegacyDescription'](_0x27b201){const _0x38cc53=this['editor'],_0x30d931=_0x38cc53['locale'];_0x38cc53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55d961=>{if('formatBlock'!=_0x55d961['type']&&'formatInline'!=_0x55d961['type'])return;const {data:_0x146600}=_0x55d961;if(!_0x146600||'imageStyle'!=_0x146600['commandName'])return;const _0x71bffe=_0x146600['commandParams'][0x0]['value'];return _0x6b20f3('side'===_0x71bffe?o(_0x30d931,'FORMAT_SIDE_IMAGE'):_0x27b201[_0x71bffe]||_0x71bffe);function _0x6b20f3(_0x48c791){return{'type':'format','content':o(_0x30d931,'*Format:*\x20%0',_0x48c791)};}});}}class ot extends _0x1367c6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5ab83c){super(_0x5ab83c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xc64abf=this['editor'],_0x243df9=_0xc64abf['commands']['get']('importWord'),_0x1bbc83=_0xc64abf['commands']['get']('trackChanges');_0x243df9&&(_0x243df9['on']('execute',(_0x212955,[,_0x2365bf])=>{this['_trackChangesValueDuringImport']=_0x1bbc83['value'],_0x2365bf['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x243df9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x243df9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1bbc83['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xc64abf['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x51cc7b,_0x1c972f){const {suggestions:_0x51975d}=_0x1c972f,_0x4dc941=this['editor']['commands']['get']('trackChanges'),_0x39d6c0=_0x4dc941['value'];this['_trackChangesValueDuringImport']!==_0x39d6c0&&(_0x4dc941['execute'](),this['_trackChangesExecuted']=!0x0),_0x51975d&&_0x51975d['forEach'](({id:_0x2f4fab,type:_0x1a2d72,author:_0x2ee3bf,created_at:_0x22cb83})=>{const _0x266baf={'id':_0x2f4fab,'type':_0x1a2d72,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2ee3bf,'createdAt':_0x22cb83?new Date(_0x22cb83):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x266baf);});}}class rt extends _0x1367c6{['afterInit'](){const _0x24c5f7=this['editor'],_0x56ee56=_0x24c5f7['plugins']['get']('TrackChangesEditing');if(_0x24c5f7['plugins']['has']('IndentEditing')&&(_0x56ee56['enableCommand']('indent'),_0x56ee56['enableCommand']('outdent')),_0x24c5f7['plugins']['has']('IndentBlock')){for(const _0x13559c of['indentBlock','outdentBlock'])_0x56ee56['enableDefaultAttributesIntegration'](_0x13559c);}const _0x43414d=_0x24c5f7['locale'];_0x56ee56['registerBlockAttribute']('blockIndent'),_0x56ee56['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x43414d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e8dd2=this['editor'],_0x1436e2=_0x5e8dd2['locale'],_0x5bd0e8=_0x5e8dd2['plugins']['get']('TrackChangesEditing');_0x5bd0e8['descriptionFactory']['registerDescriptionCallback'](_0x1aaf3a=>{if('formatBlock'!=_0x1aaf3a['type'])return;const {data:_0x2e470c}=_0x1aaf3a;if(!_0x2e470c)return;if('indentBlock'!=_0x2e470c['commandName']&&'outdentBlock'!=_0x2e470c['commandName'])return;const _0x34ad4e=_0x1aaf3a['getItems']()[0x0],_0x463e24=_0x5bd0e8['descriptionFactory']['getItemLabel'](_0x34ad4e);return'indentBlock'==_0x2e470c['commandName']?{'type':'format','content':o(_0x1436e2,'*Indent:*\x20%0',_0x463e24)}:'outdentBlock'==_0x2e470c['commandName']?{'type':'format','content':o(_0x1436e2,'*Outdent:*\x20%0',_0x463e24)}:void 0x0;});}}class at extends _0x1367c6{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1367c6{['afterInit'](){const _0x656709=this['editor'];if(!_0x656709['plugins']['has']('LinkEditing'))return;const _0x4a1c0d=_0x656709['plugins']['get']('TrackChangesEditing'),_0x4b803e=_0x656709['commands']['get']('link');_0x4a1c0d['enableDefaultAttributesIntegration']('link'),_0x4a1c0d['enableDefaultAttributesIntegration']('unlink'),_0x4a1c0d['registerInlineAttribute']('linkHref');for(const _0x4cfb82 of _0x4b803e['manualDecorators'])_0x4a1c0d['registerInlineAttribute'](_0x4cfb82['id']),_0x4a1c0d['descriptionFactory']['registerAttributeLabel'](_0x4cfb82['id'],'link\x20('+_0x4cfb82['label']['toLowerCase']()+')');_0x4a1c0d['descriptionFactory']['registerDescriptionCallback'](_0x949e39=>{if('attribute'!=_0x949e39['type'])return;const {data:_0x4a4199}=_0x949e39;if(!_0x4a4199||'linkHref'!=_0x4a4199['key'])return;const _0x148293=_0x4a4199['newValue'],_0x556c54=_0x656709['locale'];return{'type':'format','content':null==_0x148293?o(_0x556c54,'*Remove\x20link*'):o(_0x556c54,'*Set\x20link:*\x20%0','\x22'+_0x148293+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56b2ae=this['editor'],_0x45f03b=_0x56b2ae['locale'];_0x56b2ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2469=>{if('formatInline'!=_0x1b2469['type'])return;const {data:_0x1cf93a}=_0x1b2469;if(_0x1cf93a){if('link'==_0x1cf93a['commandName']){const _0x34786c=_0x1cf93a['commandParams'][0x0];return{'type':'format','content':o(_0x45f03b,'*Set\x20link:*\x20%0','\x22'+_0x34786c+'\x22')};}return'unlink'==_0x1cf93a['commandName']?{'type':'format','content':o(_0x45f03b,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1367c6{['afterInit'](){const _0x3fac3c=this['editor'],_0x4c0eba=_0x3fac3c['locale'];if(!_0x3fac3c['plugins']['has']('LegacyListEditing'))return;const _0x7a8191=_0x3fac3c['plugins']['get']('TrackChangesEditing'),_0x42686e=_0x3fac3c['plugins']['has']('LegacyTodoListEditing');function _0x4e752d(_0x49a0f3){return()=>{const _0x5ce7e1=_0x3fac3c['model']['document']['selection'],_0x24ae14=_0x3fac3c['commands']['get'](_0x49a0f3);if(_0x24ae14['value'])return void _0x3fac3c['execute']('paragraph',{});const _0x2997b1=_0x49a0f3['slice'](0x0,-0x4),_0xe88a2c=function(_0x3ecf2c,_0x44f8f0,_0x3984ea){let _0x28e270=Array['from'](_0x3ecf2c)['filter'](_0x299183=>function(_0x29e895,_0x485ec5){return _0x485ec5['checkChild'](_0x29e895['parent'],'listItem')&&!_0x485ec5['isObject'](_0x29e895);}(_0x299183,_0x3984ea));_0x28e270=_0x28e270['filter'](_0x91ede=>!_0x91ede['is']('element','listItem')||_0x91ede['getAttribute']('listType')!=_0x44f8f0);const _0x1d50d9=new Set();for(const _0x461e79 of _0x28e270)_0x461e79['is']('element','listItem')?_0x1d50d9['add'](me(_0x461e79)):_0x1d50d9['add'](_0x461e79);return Array['from'](_0x1d50d9);}(_0x5ce7e1['getSelectedBlocks'](),_0x2997b1,_0x3fac3c['model']['schema']);_0x3fac3c['model']['change'](()=>{for(const _0x1f1cf8 of _0xe88a2c)_0x7a8191['markBlockFormat'](_0x1f1cf8,{'commandName':_0x49a0f3,'commandParams':[{'forceValue':!_0x24ae14['value']}],'formatGroupId':'blockName'},fe(_0x1f1cf8));});};}function _0x2fcb2d(_0x5c7b00){return()=>{const _0x126251=function(_0x17de9a){let _0x189756=Array['from'](_0x17de9a);const _0x155ac8=_0x189756['findIndex'](_0x4bdca5=>'listItem'!=_0x4bdca5['name']);return _0x155ac8>-0x1&&(_0x189756=_0x189756['slice'](0x0,_0x155ac8)),_0x189756;}(_0x3fac3c['model']['document']['selection']['getSelectedBlocks']()),_0x403264=_0x3fac3c['model']['createRange'](_0x3fac3c['model']['createPositionAt'](_0x126251[0x0],'before'),_0x3fac3c['model']['createPositionAt'](_0x126251[_0x126251['length']-0x1],'end'));_0x3fac3c['model']['change'](()=>{_0x7a8191['markBlockFormat'](_0x403264,{'commandName':_0x5c7b00,'commandParams':[],'formatGroupId':'listIndent'},function(_0x216859){const _0x3b4f34=new Set();for(const _0x43e88a of _0x216859){let _0x42e562=_0x43e88a['nextSibling'];for(;_0x42e562&&_0x42e562['getAttribute']('listIndent')>_0x43e88a['getAttribute']('listIndent');)_0x3b4f34['add'](_0x42e562),_0x42e562=_0x42e562['nextSibling'];}return Array['from'](_0x3b4f34);}(_0x126251));});};}_0x7a8191['enableCommand']('numberedList',_0x4e752d('numberedList')),_0x7a8191['enableCommand']('bulletedList',_0x4e752d('bulletedList')),_0x42686e&&_0x7a8191['enableCommand']('todoList',_0x4e752d('todoList')),_0x7a8191['enableCommand']('indentList',_0x2fcb2d('indentList')),_0x7a8191['enableCommand']('outdentList',_0x2fcb2d('outdentList')),_0x42686e&&_0x7a8191['enableCommand']('checkTodoList',()=>{const _0x35144c=_0x3fac3c['commands']['get']('checkTodoList'),_0x3217f6=Array['from'](_0x35144c['_selectedElements']);_0x3217f6['filter'](_0x126a21=>_0x126a21['getAttribute']('todoListChecked')!=_0x35144c['value']),_0x3fac3c['model']['change'](()=>{for(const _0x4a5a59 of _0x3217f6)_0x7a8191['markBlockFormat'](_0x4a5a59,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x35144c['value']}]});});}),_0x7a8191['descriptionFactory']['registerElementLabel']('listItem',_0xd16cdb=>o(_0x4c0eba,'ELEMENT_LIST_ITEM',_0xd16cdb)),_0x7a8191['descriptionFactory']['registerDescriptionCallback'](_0x190072=>{if('formatBlock'!=_0x190072['type']&&'formatInline'!=_0x190072['type'])return;const {data:_0x490f1e}=_0x190072;if(_0x490f1e){if('numberedList'==_0x490f1e['commandName']||'bulletedList'==_0x490f1e['commandName']||'todoList'==_0x490f1e['commandName'])switch(_0x490f1e['commandName']['replace']('List','')){case'bulleted':return _0x5c5574(o(_0x4c0eba,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c5574(o(_0x4c0eba,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c5574(o(_0x4c0eba,'ELEMENT_TODO_LIST'));}if('indentList'==_0x490f1e['commandName'])return{'type':'format','content':o(_0x4c0eba,'*Indent:*\x20%0',o(_0x4c0eba,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x490f1e['commandName'])return{'type':'format','content':o(_0x4c0eba,'*Outdent:*\x20%0',o(_0x4c0eba,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x490f1e['commandName'])return _0x490f1e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c0eba,'*Check\x20item*')}:{'type':'format','content':o(_0x4c0eba,'*Uncheck\x20item*')};}function _0x5c5574(_0x29007a){return{'type':'format','content':o(_0x4c0eba,'*Change\x20to:*\x20%0',_0x29007a)};}});}}function me(_0x2d4bad){const _0xd1a70d=_0x2d4bad['getAttribute']('listIndent');if(0x0==_0xd1a70d)return _0x2d4bad;let _0x37736c=_0x2d4bad;for(;_0x2d4bad['previousSibling']&&_0x2d4bad['previousSibling']['is']('element','listItem');){const _0x37e317=_0x2d4bad['previousSibling']['getAttribute']('listIndent');if(_0x37e317==_0xd1a70d)_0x37736c=_0x2d4bad['previousSibling'];else{if(_0x37e317<_0xd1a70d)break;}_0x2d4bad=_0x2d4bad['previousSibling'];}return _0x37736c;}function fe(_0x125f8a){const _0x1fbfa3=[];if(_0x125f8a['is']('element','listItem')&&_0x125f8a['getAttribute']('listIndent')>0x0){let _0x3b645c=_0x125f8a['nextSibling'];for(;_0x3b645c&&'listItem'==_0x3b645c['name']&&_0x3b645c['getAttribute']('listIndent')==_0x125f8a['getAttribute']('listIndent');)_0x1fbfa3['push'](_0x3b645c),_0x3b645c=_0x3b645c['nextSibling'];}return _0x1fbfa3;}class K extends _0x1367c6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x396c31=this['editor']['config']['get']('list.properties'),_0x47cb94=this['editor']['plugins']['get']('TrackChangesEditing');_0x396c31['styles']&&_0x47cb94['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x396c31['reversed']&&_0x47cb94['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x396c31['startIndex']&&_0x47cb94['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x47cb94['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x55123e,_0x1414a0={}){const _0x27d2fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dbe44=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x27d2fa['markMultiRangeBlockFormat'](_0x4dbe44,{'commandName':'listStyle','commandParams':[{'type':_0x1414a0['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x465bde,_0x2d687f={}){const _0x36c92a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3227e0=this['_getSuggestionBlocks'](_0x3cbff0=>_0x3cbff0['is']('element','listItem')&&'numbered'===_0x3cbff0['getAttribute']('listType'));if(_0x3227e0['length']<0x1)return;const _0x2cd963=_0x3227e0['map'](_0xb97e92=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb97e92,'before'),this['editor']['model']['createPositionAt'](_0xb97e92,0x0)));this['editor']['model']['change'](()=>{_0x36c92a['markMultiRangeBlockFormat'](_0x2cd963,{'commandName':'listReversed','commandParams':[{'reversed':_0x2d687f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5da509,_0x3b3714={}){const _0xd49b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ce7fc=this['_getSuggestionBlocks'](_0x2436f3=>_0x2436f3['is']('element','listItem')&&'numbered'===_0x2436f3['getAttribute']('listType'));if(_0x2ce7fc['length']<0x1)return;const _0x5824af=_0x2ce7fc['map'](_0x54cfbe=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54cfbe,'before'),this['editor']['model']['createPositionAt'](_0x54cfbe,0x0)));this['editor']['model']['change'](()=>{_0xd49b7['markMultiRangeBlockFormat'](_0x5824af,{'commandName':'listStart','commandParams':[{'startIndex':_0x3b3714['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x48126b){if('formatBlock'!=_0x48126b['type']&&'formatInline'!=_0x48126b['type'])return;const _0x22dd2a=this['editor']['locale'],{data:_0x5109de}=_0x48126b;if(!_0x5109de)return;let _0xe204e0,_0x225e47;switch(_0x5109de['commandName']){case'listStyle':_0xe204e0='*Change\x20to:*\x20%0',_0x225e47={'type':'format','content':o(_0x22dd2a,_0xe204e0,o(_0x22dd2a,this['_getTranslationKeyForListStyle'](_0x5109de['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe204e0=_0x5109de['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x225e47={'type':'format','content':o(_0x22dd2a,_0xe204e0)};break;case'listStart':_0xe204e0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x225e47={'type':'format','content':o(_0x22dd2a,_0xe204e0,_0x5109de['commandParams'][0x0]['startIndex'])};}return _0x225e47;}['_getSuggestionBlocksForListStyle'](){const _0x137635=this['editor']['plugins']['get']('LegacyListUtils');let _0x464466=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x464466[0x0]?.['is']('element','listItem')&&_0x464466['unshift'](..._0x137635['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x464466[_0x464466['length']-0x1]?.['is']('element','listItem')&&_0x464466['push'](..._0x137635['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x464466=[...new Set(_0x464466)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x464466=_0x464466['filter'](_0x3616fa=>_0x3616fa['is']('element','listItem'))),_0x464466;}['_getSuggestionBlocks'](_0x437357){const _0x2dbac3=this['editor']['plugins']['get']('LegacyListUtils');let _0x2643cd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x437357)['map'](_0x49ef3a=>{const _0x1c1567=this['editor']['model']['createPositionAt'](_0x49ef3a,0x0);return[..._0x2dbac3['getSiblingNodes'](_0x1c1567,'backward'),..._0x2dbac3['getSiblingNodes'](_0x1c1567,'forward')];})['flat']();return _0x2643cd=[...new Set(_0x2643cd)],_0x2643cd;}['_getTranslationKeyForListStyle'](_0x4c54e6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4c54e6)||'default')['toUpperCase']()+'_LIST_'+_0x4c54e6['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1367c6{['afterInit'](){const _0x5e4899=this['editor'];if(!_0x5e4899['plugins']['has']('MediaEmbedEditing'))return;const _0x4799c7=_0x5e4899['plugins']['get']('TrackChangesEditing'),_0x46f823=_0x5e4899['locale'];_0x4799c7['enableCommand']('mediaEmbed'),_0x4799c7['descriptionFactory']['registerElementLabel']('media',_0x108f4f=>o(_0x46f823,'ELEMENT_MEDIA',_0x108f4f)),_0x5e4899['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2f9323,{writer:_0x140b58,options:_0x55466b})=>{if(_0x55466b['showSuggestionHighlights'])return _0x140b58['createEmptyElement']('div');},'converterPriority':'high'}),_0x5e4899['data']['downcastDispatcher']['on']('attribute:url:media',(_0x342aef,_0x35bc43,_0x344a4b)=>{_0x344a4b['options']['showSuggestionHighlights']&&_0x342aef['stop']();},{'priority':'high'});}}class gt extends _0x1367c6{['afterInit'](){const _0x23bcb0=this['editor'];_0x23bcb0['plugins']['has']('MentionEditing')&&_0x23bcb0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1367c6{['afterInit'](){const _0x5b88c8=this['editor'],_0x3599b4=_0x5b88c8['plugins']['get']('TrackChangesEditing');_0x5b88c8['plugins']['has']('MultiLevelList')&&(_0x3599b4['enableDefaultAttributesIntegration']('multiLevelList'),_0x3599b4['registerBlockAttribute']('listMarkerStyle'),_0x3599b4['descriptionFactory']['registerDescriptionCallback'](_0x10d1f2=>this['handleDescriptions'](_0x10d1f2)));}['handleDescriptions'](_0x3a7030){const _0x4bba0e=this['editor']['locale'],{data:_0x1a59f4}=_0x3a7030,_0x21498a={'type':'format','content':''};if(_0x1a59f4&&'listMarkerStyle'==_0x1a59f4['key']){if(!_0x1a59f4['oldValue'])return{'type':'format','content':o(_0x4bba0e,'*Set\x20format:*\x20%0',o(_0x4bba0e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a59f4['newValue']+')'};if(!_0x1a59f4['newValue']){let _0x1a9617=_0x3a7030['head'];for(;_0x1a9617;){if(_0x1a9617['data']&&'listType'==_0x1a9617['data']['key']&&_0x1a9617['data']['newValue'])return _0x21498a;_0x1a9617=_0x1a9617['next'];}return{'type':'format','content':o(_0x4bba0e,'*Remove\x20format:*\x20%0',o(_0x4bba0e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1a59f4['oldValue']+')'};}}}}class mt extends _0x1367c6{['afterInit'](){const _0x1b62d4=this['editor'];if(!_0x1b62d4['plugins']['has']('PageBreakEditing'))return;_0x1b62d4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x83272d=_0x1b62d4['plugins']['get']('TrackChangesEditing'),_0x3d146a=_0x1b62d4['locale'];_0x83272d['descriptionFactory']['registerElementLabel']('pageBreak',_0x51b7d1=>o(_0x3d146a,'ELEMENT_PAGE_BREAK',_0x51b7d1));}}class dt extends _0x1367c6{['afterInit'](){const _0x52017a=this['editor'];if(!_0x52017a['plugins']['has']('Paragraph'))return;const _0x40c2dc=_0x52017a['locale'],_0x22f35f=_0x52017a['plugins']['get']('TrackChangesEditing');_0x22f35f['descriptionFactory']['registerElementLabel']('paragraph',_0x23554a=>o(_0x40c2dc,'ELEMENT_PARAGRAPH',_0x23554a)),_0x22f35f['enableDefaultAttributesIntegration']('paragraph'),_0x22f35f['enableCommand']('insertParagraph'),_0x52017a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x52017a),{'priority':'highest'}),_0x52017a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x571926,_0x16d54d,_0x32e08f)=>{_0x32e08f['options']['showSuggestionHighlights']&&nr(_0x52017a,{'showActiveMarker':!0x1})(_0x571926,_0x16d54d,_0x32e08f);},{'priority':'highest'});const _0xaacb06=_0x22f35f['descriptionFactory'];_0xaacb06['registerDescriptionCallback'](_0x20820d=>{if('insertion'!==_0x20820d['type'])return;const {start:_0x44cf46,end:_0xce4ed4}=_0x20820d['getFirstRange']();if(!_0x44cf46['isTouching'](_0xce4ed4)||!_0x44cf46['nodeAfter'])return;const _0x3a9377=_0x52017a['model']['schema'],_0x31a282=_0x44cf46['nodeAfter'];return _0x3a9377['isBlock'](_0x31a282)&&!_0x3a9377['isLimit'](_0x31a282)&&_0x3a9377['checkChild'](_0x31a282,'$text')?{'type':'insertion','content':o(_0x40c2dc,'*Insert:*\x20%0',_0xaacb06['getItemLabel'](_0x31a282,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54fff6=this['editor'],_0x306583=_0x54fff6['locale'];_0x54fff6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x590778=>{if('formatBlock'!=_0x590778['type'])return;const {data:_0x1baa6c}=_0x590778;return _0x1baa6c&&'paragraph'==_0x1baa6c['commandName']?{'type':'format','content':o(_0x306583,'*Change\x20to:*\x20%0',o(_0x306583,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x52287d,{showActiveMarker:_0x3bbaa0=!0x0}={}){return(_0x5b6d10,_0x5a0772,_0x436e61)=>{const _0x21d0a3=_0x52287d['plugins']['get']('TrackChangesEditing'),_0x2e03a1=_0x5a0772['markerRange']['start'],_0x1bd2e3=_0x5a0772['markerRange']['end'],_0x3eca26=_0x52287d['model']['schema'];if(!_0x2e03a1['isTouching'](_0x1bd2e3)||!_0x2e03a1['nodeAfter'])return;const _0x487766=_0x2e03a1['nodeAfter'];if(_0x3eca26['isBlock'](_0x487766)&&!_0x3eca26['isLimit'](_0x487766)&&_0x3eca26['checkChild'](_0x487766,'$text')){if(!_0x436e61['consumable']['consume'](_0x5a0772['markerRange'],_0x5b6d10['name']))return;const _0x251f9d=_0x436e61['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2ba542=_0x436e61['mapper']['toViewPosition'](_0x1bd2e3);_0x3bbaa0&&_0x21d0a3['activeMarkers']['includes'](_0x5a0772['markerName'])&&_0x436e61['writer']['addClass']('ck-suggestion-marker--active',_0x251f9d),_0x436e61['writer']['insert'](_0x2ba542,_0x251f9d),_0x436e61['mapper']['bindElementToMarker'](_0x251f9d,_0x5a0772['markerName']);}};}class pt extends _0x1367c6{['afterInit'](){const _0x4bfa70=this['editor'];if(!_0x4bfa70['plugins']['has']('RemoveFormatEditing'))return;_0x4bfa70['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a98a4=this['editor'];_0x2a98a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x466563=>{if('formatBlock'!=_0x466563['type']&&'formatInline'!=_0x466563['type'])return;const {data:_0x8d7d93}=_0x466563;return _0x8d7d93&&'removeFormat'==_0x8d7d93['commandName']?{'type':'format','content':o(_0x2a98a4['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1367c6{['afterInit'](){const _0x1684ef=this['editor'];if(!_0x1684ef['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3e1a28=_0x1684ef['plugins']['get']('TrackChangesEditing');_0x3e1a28['enableCommand']('goToPreviousRestrictedEditingException'),_0x3e1a28['enableCommand']('goToNextRestrictedEditingException');const _0xc67786=_0x1684ef['plugins']['get']('RestrictedEditingModeEditing');_0xc67786['enableCommand']('trackChanges'),_0xc67786['enableCommand']('acceptSuggestion'),_0xc67786['enableCommand']('discardSuggestion'),_0xc67786['enableCommand']('acceptAllSuggestions'),_0xc67786['enableCommand']('discardAllSuggestions'),_0xc67786['enableCommand']('acceptSelectedSuggestions'),_0xc67786['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1367c6{static get['requires'](){return[_0x5a4f72];}['init'](){const _0x573a6a=this['editor'],_0x48ea1f=_0x573a6a['plugins']['get']('TrackChangesEditing');_0x48ea1f['enableCommand']('shiftEnter'),_0x573a6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x573a6a),{'priority':'high'}),_0x573a6a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x573a6a),{'priority':'high'}),_0x573a6a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18e524,_0x41f13e,_0x7ed3b6)=>{_0x7ed3b6['options']['showSuggestionHighlights']&&de(_0x573a6a,{'showActiveMarker':!0x1})(_0x18e524,_0x41f13e,_0x7ed3b6);}),_0x48ea1f['descriptionFactory']['registerElementLabel']('softBreak',_0x1d5e8b=>o(_0x573a6a['locale'],'ELEMENT_LINE_BREAK',_0x1d5e8b));}}function de(_0x4ec36c,{showActiveMarker:_0x460b6d=!0x0}={}){return(_0x5e0249,_0x22e57e,_0x2ef535)=>{const _0x1f91a4=_0x4ec36c['plugins']['get']('TrackChangesEditing');if(!_0x2ef535['consumable']['test'](_0x22e57e['markerRange'],_0x5e0249['name']))return;const _0x115b15=_0x4ec36c['model'];for(const _0x47c189 of _0x22e57e['markerRange']['getItems']()){if(!_0x47c189['is']('element','softBreak'))continue;const _0x5e7061='deletion'==_0x22e57e['markerName']['split'](':')[0x1]?'merge':'split',_0x4726d0=_0x2ef535['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e7061}),_0x48df10=_0x2ef535['mapper']['toViewPosition'](_0x115b15['createPositionBefore'](_0x47c189));_0x460b6d&&_0x1f91a4['activeMarkers']['includes'](_0x22e57e['markerName'])&&_0x2ef535['writer']['addClass']('ck-suggestion-marker--active',_0x4726d0),_0x2ef535['writer']['insert'](_0x48df10,_0x4726d0),_0x2ef535['mapper']['bindElementToMarker'](_0x4726d0,_0x22e57e['markerName']);}};}class wt extends _0x1367c6{['afterInit'](){const _0x170bc9=this['editor'],_0x2c5ba7=_0x170bc9['model'],_0x55bbd6=_0x170bc9['locale'];if(!_0x170bc9['plugins']['has']('StandardEditingModeEditing'))return;const _0x2319d1=_0x170bc9['plugins']['get']('TrackChangesEditing'),_0x57cc7c='restrictedEditingException',_0x167ef3=_0x170bc9['commands']['get'](_0x57cc7c);_0x2319d1['enableCommand'](_0x57cc7c,(_0x223c2f,_0x34346a={})=>{const _0x232b7f=_0x2c5ba7['document']['selection'];if(_0x232b7f['isCollapsed'])return void _0x223c2f(_0x34346a);const _0x22122c=void 0x0!==_0x34346a['forceValue']?_0x34346a['forceValue']:!_0x167ef3['value'];_0x2c5ba7['change'](()=>{const _0x46e656=Array['from'](_0x232b7f['getRanges']());for(const _0x3044d8 of _0x46e656){const _0x349bc9=_0x22122c?[_0x3044d8]:io(_0x57cc7c,_0x3044d8,_0x2c5ba7);for(const _0x16c474 of _0x349bc9)_0x2319d1['markInlineFormat'](_0x16c474,{'commandName':_0x57cc7c,'commandParams':[{'forceValue':_0x22122c}]});}});}),_0x2319d1['descriptionFactory']['registerDescriptionCallback'](_0x9248a6=>{if('formatBlock'!=_0x9248a6['type']&&'formatInline'!=_0x9248a6['type'])return;const {data:_0x53812e}=_0x9248a6;return _0x53812e&&_0x53812e['commandName']==_0x57cc7c?_0x53812e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55bbd6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x55bbd6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1367c6{['afterInit'](){const _0x264680=this['editor'];if(!_0x264680['plugins']['has']('Style')||!_0x264680['plugins']['has']('DataSchema'))return;const _0x58ae82=_0x264680['plugins']['get']('TrackChangesEditing'),_0x3e2b43=_0x264680['locale'],_0x4e4f61=_0x264680['config']['get']('style')||{},_0xb5b923=_0x264680['plugins']['get']('GeneralHtmlSupport'),_0x5e8a4b=_0x264680['plugins']['get']('StyleUtils')['normalizeConfig'](_0x264680['plugins']['get']('DataSchema'),_0x4e4f61['definitions']);_0x58ae82['enableDefaultAttributesIntegration']('style');const _0x3c012c=new Set();for(const _0x49f63c of _0x5e8a4b['block']){const _0x378aac=_0xb5b923['getGhsAttributeNameForElement'](_0x49f63c['element']);_0x3c012c['add'](_0x378aac);}const _0x7b36d3=new Set();for(const _0x5665a7 of _0x5e8a4b['inline']){const _0x57c02f=_0xb5b923['getGhsAttributeNameForElement'](_0x5665a7['element']);_0x7b36d3['add'](_0x57c02f);for(const _0x2487f0 of _0x5665a7['ghsAttributes'])_0x7b36d3['add'](_0x2487f0);}for(const _0x53bb81 of _0x3c012c)_0x58ae82['registerBlockAttribute'](_0x53bb81),_0x58ae82['descriptionFactory']['registerAttributeLabel'](_0x53bb81,o(_0x3e2b43,'FORMAT_STYLE'));for(const _0x279a08 of _0x7b36d3)_0x58ae82['registerInlineAttribute'](_0x279a08),_0x58ae82['descriptionFactory']['registerAttributeLabel'](_0x279a08,o(_0x3e2b43,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x494e28=this['editor'],_0x4f93ef=_0x494e28['locale'];_0x494e28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43278e=>{if('formatBlock'!=_0x43278e['type']&&'formatInline'!=_0x43278e['type'])return;const {data:_0x25ad09}=_0x43278e;return _0x25ad09&&'style'===_0x25ad09['commandName']?_0x25ad09['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f93ef,'*Set\x20format:*\x20%0',_0x25ad09['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4f93ef,'*Remove\x20format:*\x20%0',_0x25ad09['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1367c6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1fe863){super(_0x1fe863),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x500c35=this['editor'],_0x3088ae=_0x500c35['model']['document']['selection'];if(!_0x500c35['plugins']['has']('TableEditing'))return;const _0x43c1f2=_0x500c35['locale'],_0xc80bf9=_0x500c35['plugins']['get']('TrackChangesEditing'),_0x5a5125=_0x500c35['plugins']['get']('TableUtils');_0xc80bf9['descriptionFactory']['registerElementLabel']('table',_0x5c9701=>o(_0x43c1f2,'ELEMENT_TABLE',_0x5c9701)),this['_setupColumnsRowsFixing'](),_0xc80bf9['enableCommand']('insertTable'),_0xc80bf9['enableCommand']('selectTableRow'),_0xc80bf9['enableCommand']('selectTableColumn');for(const _0x1e311d of['insertTableRowAbove','insertTableRowBelow']){const _0x485e8b=_0x500c35['commands']['get'](_0x1e311d);_0xc80bf9['enableCommand'](_0x1e311d,_0x187dde=>{_0x500c35['model']['change'](_0x2b4737=>{_0x187dde();const _0x1c2818='above'===_0x485e8b['order'],_0x537d35=_0x5a5125['getSelectionAffectedTableCells'](_0x3088ae),_0x32fc9e=_0x5a5125['getRowIndexes'](_0x537d35),_0x2f66d4=_0x1c2818?_0x32fc9e['first']-0x1:_0x32fc9e['last']+0x1,_0x30b042=_0x537d35[0x0]['findAncestor']('table'),_0x35cffc=_0x5a5125['createTableWalker'](_0x30b042,{'startRow':_0x2f66d4,'endRow':_0x2f66d4}),_0x1355b5=Array['from'](_0x35cffc)['map'](_0x22287b=>_0x2b4737['createRangeOn'](_0x22287b['cell']));_0xc80bf9['markMultiRangeInsertion'](_0x1355b5,'tableRow');});});}for(const _0x56c73f of['insertTableColumnLeft','insertTableColumnRight']){const _0xe1742a=_0x500c35['commands']['get'](_0x56c73f);_0xc80bf9['enableCommand'](_0x56c73f,_0x5c24d0=>{_0x500c35['model']['change'](_0x57e03d=>{_0x5c24d0();const _0x2813fc='left'===_0xe1742a['order'],_0x175764=_0x5a5125['getSelectionAffectedTableCells'](_0x3088ae),_0x4b43cd=_0x5a5125['getColumnIndexes'](_0x175764),_0x3f8b55=_0x2813fc?_0x4b43cd['first']-0x1:_0x4b43cd['last']+0x1,_0x40ccc8=_0x175764[0x0]['findAncestor']('table'),_0x1245e9=_0x5a5125['createTableWalker'](_0x40ccc8,{'startRow':0x0,'column':_0x3f8b55,'includeAllSlots':!0x1}),_0x2b6449=Array['from'](_0x1245e9)['map'](_0x42a182=>_0x57e03d['createRangeOn'](_0x42a182['cell']));_0xc80bf9['markMultiRangeInsertion'](_0x2b6449,'tableColumn');});});}for(const _0x1ff30a of['removeTableRow','removeTableColumn']){const _0x107fc5=_0x1ff30a['substr'](0xb),_0x3d3690=_0x107fc5['toLowerCase'](),_0x34bfe5=_0x3d3690['substr'](0x0,0x3)+'span',_0x2fcf55='table'+_0x107fc5,_0x2d9d4a='min'+_0x107fc5,_0x52d943='max'+_0x107fc5;_0xc80bf9['enableCommand'](_0x1ff30a,()=>{_0x500c35['model']['change'](_0xcf9497=>{const _0x14b4a6=_0x5a5125['getSelectionAffectedTableCells'](_0x3088ae),_0x116db2=_0x14b4a6[0x0]['findAncestor']('table');let _0x1acc24;if('removeTableRow'==_0x1ff30a){const _0x42317e=_0x5a5125['getRowIndexes'](_0x14b4a6);_0x1acc24={'startRow':_0x42317e['first'],'endRow':_0x42317e['last'],'includeAllSlots':!0x0};}else{const _0xd7ac9b=_0x5a5125['getColumnIndexes'](_0x14b4a6);_0x1acc24={'startColumn':_0xd7ac9b['first'],'endColumn':_0xd7ac9b['last'],'includeAllSlots':!0x0};}const _0x5a5d10=_0x5a5125['createTableWalker'](_0x116db2,_0x1acc24),_0x253589=Array['from'](_0x5a5d10)['map'](({cell:_0x7c5f0b})=>_0x7c5f0b),_0xd4f41a=Ee(_0x253589['filter'](_0x1c5551=>_0x1c5551['hasAttribute'](_0x34bfe5))),_0x4cce80=Ee(_0x253589['filter'](_0x3d0299=>!_0x3d0299['hasAttribute'](_0x34bfe5)))['map'](_0x26253e=>_0xcf9497['createRangeOn'](_0x26253e)),_0x14da37=_0xc80bf9['markMultiRangeDeletion'](_0x4cce80,_0x2fcf55);if(_0x14da37&&('tableRow'==_0x14da37['subType']||'tableColumn'==_0x14da37['subType'])){const _0xe9daca=this['_getSuggestionCoords'](_0x14da37);for(const _0x4d28cf of _0xd4f41a){const _0x296105=_0xcf9497['createRangeOn'](_0x4d28cf),_0x1ca490=_0x5a5125['getCellLocation'](_0x4d28cf),_0x40e55b=_0x4d28cf['getAttribute'](_0x34bfe5)-0x1,_0x5ea826=_0xe9daca[_0x2d9d4a],_0x59608e=_0xe9daca[_0x52d943];_0x5ea826<=_0x1ca490[_0x3d3690]&&_0x1ca490[_0x3d3690]+_0x40e55b<=_0x59608e&&_0x14da37['addRange'](_0x296105);}}});});}function _0x59362e(_0x567669){const _0x4fefc6=Array['from'](_0x3088ae['getRanges']())['map'](_0x453ed9=>_0x24837b['fromRange'](_0x453ed9));_0x500c35['model']['change'](_0x416338=>{const _0x33657c=_0x416338['batch'];_0x567669=_0x567669['filter'](_0x49bea6=>'$graveyard'!=_0x49bea6['root']['rootName']),_0x416338['setSelection'](_0x567669),_0x500c35['commands']['get']('removeTableRow')['refresh'](),_0x500c35['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x500c35['model']['enqueueChange'](()=>{_0x500c35['model']['enqueueChange'](_0x33657c,_0x4c00c1=>{const _0x1031dd=_0x4fefc6['filter'](_0x189197=>'$graveyard'!=_0x189197['root']['rootName']);_0x1031dd['length']>0x0&&_0x4c00c1['setSelection'](_0x1031dd);for(const _0x3267a2 of _0x4fefc6)_0x3267a2['detach']();});});});}function _0x559548(_0x375698){_0x500c35['model']['change'](_0x30a642=>{const _0x1adc57=Array['from'](_0x3088ae['getRanges']())['map'](_0xbfa6c7=>_0x24837b['fromRange'](_0xbfa6c7)),_0x3b2f0f=[];for(const _0x5c23b7 of _0x375698)for(const _0x134641 of _0x5c23b7['getItems']({'shallow':!0x0}))_0x3b2f0f['push'](_0x134641);for(const _0x45ca98 of _0x3b2f0f)'$graveyard'!=_0x45ca98['root']['rootName']&&(_0x30a642['setSelection'](_0x30a642['createPositionAt'](_0x45ca98,0x0)),_0x500c35['commands']['get']('removeTableColumn')['refresh'](),_0x500c35['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x57bcbd=_0x1adc57['filter'](_0x5deb46=>'$graveyard'!=_0x5deb46['root']['rootName']);_0x57bcbd['length']>0x0&&_0x30a642['setSelection'](_0x57bcbd);for(const _0x1b483f of _0x1adc57)_0x1b483f['detach']();});}function _0x507061(_0x3074ba,_0x794f78){return _0x794f78['every'](_0x4b83e4=>_0x3074ba['some'](_0x43d681=>_0x43d681['end']['isEqual'](_0x4b83e4['start'])||_0x4b83e4['end']['isEqual'](_0x43d681['start'])));}function _0x21173a(_0x11a0a9,_0x307436){return!_0x11a0a9['some'](_0x15dd2d=>_0x307436['some'](_0x3222c3=>_0x15dd2d['isIntersecting'](_0x3222c3)))&&_0x11a0a9['some'](_0x3a87ef=>_0x307436['some'](_0x257e53=>_0x3a87ef['end']['isTouching'](_0x257e53['start'])));}_0x500c35['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3cf0ce,_0x853dc3,_0x149fe7)=>{if(!_0x149fe7['options']['showSuggestionHighlights'])return;const _0x52360a=_0x853dc3['item'];if(!_0x52360a)return;const _0x19cf4f=_0x149fe7['mapper']['toViewElement'](_0x52360a);function _0x5f5aa2(_0xef9079){return Array['isArray'](_0xef9079)?_0xef9079:[_0xef9079];}_0x19cf4f&&'tableCell'===_0x52360a['name']&&_0x43bcd0(_0x19cf4f,_0x149fe7['writer'],(_0x401de7,_0x5ce7a1,_0x2b7aa6)=>_0x2b7aa6['addClass'](_0x5f5aa2(_0x5ce7a1['classes']),_0x401de7),(_0x322211,_0x2bcdc1,_0x4208dc)=>_0x4208dc['removeClass'](_0x5f5aa2(_0x2bcdc1['classes']),_0x322211));},{'priority':'highest'}),_0xc80bf9['descriptionFactory']['registerDescriptionCallback'](_0x3e60df=>{if('insertion'!=_0x3e60df['type']&&'deletion'!=_0x3e60df['type'])return;const _0x24a536=_0x3e60df['getContainedElement']();if(null!=_0x24a536&&_0x24a536['is']('element','table')){if('insertion'==_0x3e60df['type']){const _0x19e025=_0x3e60df['getItems']()['filter'](_0x21a768=>_0x21a768['is']('$textProxy'))['map'](_0x3a9b4d=>_0x3a9b4d['data']);if(_0x19e025['length'])return{'type':'insertion','content':o(_0x43c1f2,'*Insert:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19e025['join']('\x20')+'\x22'))};}if('deletion'==_0x3e60df['type']){const _0xd34f89=_0x3e60df['getItems']()['filter'](_0x1d650d=>_0x1d650d['is']('$textProxy'))['map'](_0x18e979=>_0x18e979['data']);if(_0xd34f89['length'])return{'type':'deletion','content':o(_0x43c1f2,'*Remove:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xd34f89['join']('\x20')+'\x22'))};}}}),_0xc80bf9['descriptionFactory']['registerDescriptionCallback'](_0x5467c7=>{if('tableRow'==_0x5467c7['subType']){const _0x21a4bd=_0x5467c7['getItems']()['filter'](_0x1a187d=>_0x1a187d['is']('$textProxy'))['map'](_0x1e9f39=>_0x1e9f39['data']),_0x4c04aa=this['_getSuggestionCoords'](_0x5467c7),_0x141fd7=_0x4c04aa['maxRow']-_0x4c04aa['minRow']+0x1;if('insertion'==_0x5467c7['type'])return _0x21a4bd['length']?{'type':'insertion','content':o(_0x43c1f2,'*Insert:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x141fd7,'\x22'+_0x21a4bd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x43c1f2,'*Insert:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_ROW',_0x141fd7))};if('deletion'==_0x5467c7['type'])return _0x21a4bd['length']?{'type':'deletion','content':o(_0x43c1f2,'*Remove:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x141fd7,'\x22'+_0x21a4bd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x43c1f2,'*Remove:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_ROW',_0x141fd7))};}if('tableColumn'==_0x5467c7['subType']){const _0x307c12=_0x5467c7['getItems']()['filter'](_0x3bdf74=>_0x3bdf74['is']('$textProxy'))['map'](_0x30d597=>_0x30d597['data']),_0x359b3a=this['_getSuggestionCoords'](_0x5467c7),_0x37944d=_0x359b3a['maxColumn']-_0x359b3a['minColumn']+0x1;if('insertion'==_0x5467c7['type'])return _0x307c12['length']?{'type':'insertion','content':o(_0x43c1f2,'*Insert:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x37944d,'\x22'+_0x307c12['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x43c1f2,'*Insert:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_COLUMN',_0x37944d))};if('deletion'==_0x5467c7['type'])return _0x307c12['length']?{'type':'deletion','content':o(_0x43c1f2,'*Remove:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x37944d,'\x22'+_0x307c12['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x43c1f2,'*Remove:*\x20%0',o(_0x43c1f2,'ELEMENT_TABLE_COLUMN',_0x37944d))};}}),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x59362e),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x59362e),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x559548),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x559548),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x507061),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x507061),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x21173a),_0xc80bf9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x21173a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x438a19=this['editor'],_0x13b2d7=_0x438a19['model']['document']['selection'];return(_0xf47928,_0x4aefce)=>{_0x438a19['model']['change'](_0x3ce5ac=>{const {commandName:_0x4e4eff,commandParams:_0x2778cc}=_0x4aefce;let _0x4f184c=_0xf47928[0x0]['end']['nodeBefore'];_0x2778cc&&_0x2778cc[0x0]&&!0x1===_0x2778cc[0x0]['forceValue']&&(_0x4f184c=_0xf47928[0x0]['start']['nodeAfter']);const _0x3e7daf=_0x3ce5ac['createRangeIn'](_0x4f184c);if('$graveyard'==_0x3e7daf['root']['rootName'])return;const _0x5534d4=Array['from'](_0x13b2d7['getRanges']())['map'](_0x5c1eb4=>_0x24837b['fromRange'](_0x5c1eb4));_0x3ce5ac['setSelection'](_0x3e7daf),_0x438a19['commands']['get'](_0x4e4eff)['refresh'](),_0x2778cc['push']({'forceDefaultExecution':!0x0}),_0x438a19['execute'](_0x4e4eff,..._0x2778cc);const _0x183aa3=_0x5534d4['filter'](_0x53ba65=>'$graveyard'!=_0x53ba65['root']['rootName']);_0x183aa3['length']>0x0&&_0x3ce5ac['setSelection'](_0x183aa3);for(const _0x1da74a of _0x5534d4)_0x1da74a['detach']();});};}['_getCoordsForCells'](_0x26882d){const _0x22d7f7=this['editor']['plugins']['get']('TableUtils');let _0x73c09b=Number['MAX_SAFE_INTEGER'],_0x3534fa=Number['MIN_SAFE_INTEGER'],_0x524cfa=Number['MAX_SAFE_INTEGER'],_0x2dc0b4=Number['MIN_SAFE_INTEGER'];for(const _0x37a479 of _0x26882d){if('$graveyard'==_0x37a479['root']['rootName'])continue;const {row:_0x22554b,column:_0x5d4fa0}=_0x22d7f7['getCellLocation'](_0x37a479),_0x28a0d6=_0x37a479['hasAttribute']('rowspan')?_0x37a479['getAttribute']('rowspan')-0x1:0x0,_0x5c089e=_0x37a479['hasAttribute']('colspan')?_0x37a479['getAttribute']('colspan')-0x1:0x0;_0x73c09b=_0x22554b<_0x73c09b?_0x22554b:_0x73c09b,_0x3534fa=_0x22554b+_0x28a0d6>_0x3534fa?_0x22554b+_0x28a0d6:_0x3534fa,_0x524cfa=_0x5d4fa0<_0x524cfa?_0x5d4fa0:_0x524cfa,_0x2dc0b4=_0x5d4fa0+_0x5c089e>_0x2dc0b4?_0x5d4fa0+_0x5c089e:_0x2dc0b4;}return{'minRow':_0x73c09b,'maxRow':_0x3534fa,'minColumn':_0x524cfa,'maxColumn':_0x2dc0b4};}['_setupColumnsRowsFixing'](){const _0x460e3e=this['editor'],_0xaf77a4=_0x460e3e['plugins']['get']('TrackChangesEditing'),_0x3c5a62=_0x460e3e['plugins']['get']('TableUtils');_0x460e3e['model']['document']['on']('change:data',()=>{const _0x89cf32=Array['from'](_0x460e3e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x171e11,data:_0x5e457a}of _0x89cf32){const {group:_0x118f92,id:_0x40c74f,subType:_0x168296}=_0xaf77a4['_splitMarkerName'](_0x171e11);if('suggestion'!=_0x118f92)continue;if(null!=_0x5e457a['oldRange'])continue;const _0x101dfa=_0xaf77a4['getSuggestion'](_0x40c74f);this['_tablePostFixingSubtypes']['includes'](_0x168296)&&this['_tableSuggestions']['add'](_0x101dfa);}},{'priority':'low'});const _0x1c909d=(_0x5b4708,_0xfe70ae)=>{let _0x53a8ad=!0x1;const _0x5533a5=_0xfe70ae['createRangeOn'](_0x5b4708),_0x2e9528=_0x5b4708['findAncestor']('table'),_0x5a8029=_0x3c5a62['getCellLocation'](_0x5b4708);for(const _0x3199b5 of this['_tableSuggestions']){const _0x290582=_0x3199b5['subType'],_0x5f3358=_0x290582['startsWith']('tablePaste'),_0x14b7e5=_0x290582['substr'](_0x5f3358?0xa:0x5),_0xff7abc=_0x14b7e5['toLowerCase'](),_0xb51aa2=_0xff7abc['substr'](0x0,0x3)+'span',_0x5af73a='min'+_0x14b7e5,_0x2f35ad='max'+_0x14b7e5;if(!_0x3199b5['isInContent'])continue;if(_0x2e9528!=_0x3199b5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3199b5['isIntersectingWithRange'](_0x5533a5))continue;const _0x38bd9b=_0x5b4708['hasAttribute'](_0xb51aa2)?_0x5b4708['getAttribute'](_0xb51aa2)-0x1:0x0,_0x4b50da=this['_getSuggestionCoords'](_0x3199b5),_0x329ac3=_0x4b50da[_0x5af73a],_0x442536=_0x4b50da[_0x2f35ad];_0x329ac3<=_0x5a8029[_0xff7abc]&&_0x5a8029[_0xff7abc]+_0x38bd9b<=_0x442536&&(_0x3199b5['addRange'](_0x5533a5),_0x53a8ad=!0x0);}return _0x53a8ad;};_0x460e3e['model']['document']['registerPostFixer'](_0x31969c=>{let _0x296855=!0x1;for(const _0x1caaa2 of _0x460e3e['model']['document']['differ']['getChanges']())if('insert'==_0x1caaa2['type']){if('tableRow'==_0x1caaa2['name']){for(const _0x257255 of _0x1caaa2['position']['nodeAfter']['getChildren']())_0x296855=_0x296855||_0x1c909d(_0x257255,_0x31969c);}else'tableCell'==_0x1caaa2['name']&&(_0x296855=_0x296855||_0x1c909d(_0x1caaa2['position']['nodeAfter'],_0x31969c));}return _0x296855;});}['_getSuggestionCoords'](_0xf98ae7){return this['_getCoordsForCells'](_0xf98ae7['getRanges']()['map'](_0x57e5ad=>_0x57e5ad['start']['nodeAfter']));}}function Ee(_0xa8eb47){return Array['from'](new Set(_0xa8eb47)['values']());}class St extends _0x1367c6{static get['requires'](){return[jt];}['afterInit'](){const _0x45462b=this['editor'],_0x48c941=_0x45462b['model']['document']['selection'],_0x5a6f36=_0x45462b['locale'];if(!_0x45462b['plugins']['has']('TableEditing'))return;const _0x8f1dd0=_0x45462b['plugins']['get']('TrackChangesEditing'),_0x5e26ef=_0x45462b['plugins']['get']('TableUtils'),_0x3ab1cf=_0x45462b['plugins']['get'](jt);_0x3ab1cf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x8f1dd0['enableCommand']('mergeTableCells',()=>{const _0x1fedce=_0x5e26ef['getSelectionAffectedTableCells'](_0x45462b['model']['document']['selection']);_0x45462b['model']['change'](()=>{_0x8f1dd0['markMultiRangeBlockFormat'](_0x1fedce,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x45462b['commands']['get']('mergeTableCells')['on']('execute',(_0x440899,_0x48741a)=>{_0x45462b['commands']['get']('trackChanges')['value']&&(_0x48741a['length']>0x0&&_0x48741a[_0x48741a['length']-0x1]&&_0x48741a[_0x48741a['length']-0x1]['forceDefaultExecution']||_0x8f1dd0['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x440899['stop']());},{'priority':'highest'});for(const _0x2a8334 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x354116=_0x45462b['commands']['get'](_0x2a8334);_0x8f1dd0['enableCommand'](_0x2a8334,()=>{const _0x53b0d6=_0x45462b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f10b9=>_0x3f10b9['is']('element','tableCell')),_0x5b711c=_0x354116['value'];_0x45462b['model']['change'](()=>{_0x8f1dd0['markMultiRangeBlockFormat']([_0x53b0d6,_0x5b711c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1dfd6b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3c9017=_0x45462b['commands']['get'](_0x1dfd6b);_0x8f1dd0['enableCommand'](_0x1dfd6b,()=>{const _0x56efc7=_0x5e26ef['getSelectionAffectedTableCells'](_0x45462b['model']['document']['selection'])[0x0],_0x5a62d1=_0x56efc7['findAncestor']('table'),{column:_0x16b34b,row:_0x18af96}=_0x5e26ef['getCellLocation'](_0x56efc7);let _0x310183=[];if('horizontally'==_0x3c9017['direction']){const _0x2df314=_0x5e26ef['createTableWalker'](_0x5a62d1,{'startRow':_0x18af96,'endRow':_0x18af96,'includeAllSlots':!0x0});_0x310183=Array['from'](_0x2df314)['map'](_0x1c367c=>_0x1c367c['cell']);}else{const _0x52543b=_0x5e26ef['createTableWalker'](_0x5a62d1,{'column':_0x16b34b,'includeAllSlots':!0x0});_0x310183=Array['from'](_0x52543b)['map'](_0x8c453e=>_0x8c453e['cell']);}_0x45462b['model']['change'](_0x7f98be=>{_0x8f1dd0['markBlockFormat'](_0x7f98be['createRangeOn'](_0x56efc7),{'commandName':_0x1dfd6b,'commandParams':[]},_0x310183,_0x1dfd6b);});});}_0x8f1dd0['descriptionFactory']['registerDescriptionCallback'](_0x77d5ed=>{if('formatBlock'!=_0x77d5ed['type']&&'formatInline'!=_0x77d5ed['type'])return;const {data:_0x4d4a80}=_0x77d5ed;return _0x4d4a80&&'mergeTableCells'==_0x4d4a80['commandName']?{'type':'format','content':o(_0x5a6f36,'*Merge\x20cells*')}:void 0x0;}),_0x8f1dd0['descriptionFactory']['registerDescriptionCallback'](_0x33b7d7=>{if('formatBlock'!=_0x33b7d7['type']&&'formatInline'!=_0x33b7d7['type'])return;const {data:_0x188930}=_0x33b7d7;return _0x188930?'splitTableCellVertically'==_0x188930['commandName']?{'type':'format','content':o(_0x5a6f36,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x188930['commandName']?{'type':'format','content':o(_0x5a6f36,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x23b7f9=_0x3ab1cf['_acceptFormatSuggestionCallbackFactory']();for(const _0x112e7e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x8f1dd0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x112e7e,'accept',_0x23b7f9);for(const _0x1c0af3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x8f1dd0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c0af3,'accept',_0x23b7f9);_0x8f1dd0['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5bbc2d=>{_0x45462b['model']['change'](_0x4063b0=>{const _0x139c37=Array['from'](_0x48c941['getRanges']())['map'](_0x1d2fb1=>_0x24837b['fromRange'](_0x1d2fb1));_0x4063b0['setSelection'](_0x5bbc2d),_0x45462b['commands']['get']('mergeTableCells')['refresh'](),_0x45462b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x50ee1d=_0x139c37['filter'](_0x19d51d=>'$graveyard'!=_0x19d51d['root']['rootName']);_0x50ee1d['length']>0x0&&_0x4063b0['setSelection'](_0x50ee1d);for(const _0xbda60c of _0x139c37)_0xbda60c['detach']();});});for(const _0x25b2dc of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2ae6f0=_0x45462b['commands']['get'](_0x25b2dc);_0x2ae6f0['on']('set:isEnabled',(_0x3d754e,_0x17c753,_0x4d933d)=>{if(_0x4d933d){const _0x5ac8ab=_0x45462b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xea7fa8=>_0xea7fa8['is']('element','tableCell'));this['_areMergableCells'](_0x2ae6f0['value'],_0x5ac8ab)||(_0x3d754e['return']=!0x1,_0x3d754e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x9482d4=this['editor']['commands']['get']('mergeTableCells'),_0x154c0e=this['editor']['plugins']['get']('TableUtils');if(!_0x9482d4['isEnabled'])return!0x1;const _0xa2ef56=_0x154c0e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x58406e of _0xa2ef56)for(const _0x243b23 of _0xa2ef56)if(_0x58406e!=_0x243b23&&!this['_areMergableCells'](_0x58406e,_0x243b23))return!0x1;return!0x0;}['_areMergableCells'](_0x2f5644,_0x7345f7){const _0x5f310e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb97f0b=this['editor']['model']['createRangeOn'](_0x2f5644),_0x173710=this['editor']['model']['createRangeOn'](_0x7345f7),_0x39c220=new Set(),_0x359709=new Set();for(const _0x46767c of _0x5f310e['getSuggestions']())if(('insertion'==_0x46767c['type']||'deletion'==_0x46767c['type']||'mergeTableCells'==_0x46767c['subType'])&&_0x46767c['isInContent']){for(const _0x346d14 of _0x46767c['getRanges']())_0x346d14['containsRange'](_0xb97f0b,!0x0)&&_0x39c220['add'](_0x46767c['type']+':'+_0x46767c['author']['id']),_0x346d14['containsRange'](_0x173710,!0x0)&&_0x359709['add'](_0x46767c['type']+':'+_0x46767c['author']['id']);}if(_0x39c220['size']!=_0x359709['size'])return!0x1;for(const _0x32364d of _0x39c220)if(!_0x359709['has'](_0x32364d))return!0x1;return!0x0;}}class At extends _0x1367c6{static get['requires'](){return[jt];}['afterInit'](){const _0x46962f=this['editor'];if(!_0x46962f['plugins']['has']('TableEditing'))return;const _0x343e9c=_0x46962f['locale'],_0x360bc7=_0x46962f['plugins']['get']('TrackChangesEditing');_0x360bc7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x360bc7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x360bc7['registerBlockAttribute']('headingRows'),_0x360bc7['registerBlockAttribute']('headingColumns'),_0x360bc7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x343e9c,'FORMAT_HEADER_ROW')),_0x360bc7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x343e9c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f8664=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15a3e2=this['editor']['plugins']['get']('TableUtils'),_0x29117c=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x28edfb({showActiveMarker:_0x1ee162=!0x0,setDataAttribute:_0x352d2e=!0x0}={}){return(_0x32c5fe,_0x214835,_0x2ef40d)=>{const {type:_0x1a6be3,id:_0x265c38}=_0x4f8664['_splitMarkerName'](_0x214835['markerName']),_0x203d70=_0x4f8664['getSuggestion'](_0x265c38),_0x2e32e7=_0x203d70['data'];if('formatBlock'!=_0x203d70['type']||!_0x2e32e7||'setTableColumnHeader'!=_0x2e32e7['commandName'])return;if(_0x214835['item'])return void _0x32c5fe['stop']();if(!_0x2ef40d['consumable']['consume'](_0x214835['markerRange'],_0x32c5fe['name']))return;const _0x58b4d3=_0x214835['markerRange']['start']['nodeAfter'],_0x3c4106=_0x214835['markerRange']['end']['nodeBefore'],_0x285807=_0x58b4d3['parent']['parent'],{column:_0x3be161}=_0x15a3e2['getCellLocation'](_0x58b4d3),{column:_0x422d66}=_0x15a3e2['getCellLocation'](_0x3c4106);for(let _0x5552a5=_0x3be161;_0x5552a5<=_0x422d66;_0x5552a5++){const _0x8e886d=_0x15a3e2['createTableWalker'](_0x285807,{'column':_0x5552a5,'includeAllSlots':!0x1});for(const _0x19f163 of _0x8e886d){const _0x2fb040=_0x19f163['cell'],_0x168383=_0x2ef40d['mapper']['toViewElement'](_0x2fb040);_0x2ef40d['writer']['addClass']('ck-suggestion-marker-'+_0x1a6be3,_0x168383),_0x352d2e&&_0x2ef40d['writer']['setAttribute']('data-suggestion',_0x265c38,_0x168383),_0x2ef40d['mapper']['bindElementToMarker'](_0x168383,_0x214835['markerName']),_0x1ee162&&(_0x4f8664['activeMarkers']['includes'](_0x214835['markerName'])?_0x2ef40d['writer']['addClass']('ck-suggestion-marker--active',_0x168383):_0x2ef40d['writer']['removeClass']('ck-suggestion-marker--active',_0x168383));}}};}_0x4f8664['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x29117c),_0x4f8664['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x29117c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x28edfb(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f4fa4,_0x507a03,_0x139d35)=>{_0x139d35['options']['showSuggestionHighlights']&&_0x28edfb({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2f4fa4,_0x507a03,_0x139d35);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x94f598,_0x48c171,_0x36d847)=>{const {type:_0x4d5d6d,id:_0x1fb878}=_0x4f8664['_splitMarkerName'](_0x48c171['markerName']),_0x36903e=_0x4f8664['getSuggestion'](_0x1fb878),_0x1aa0c9=_0x36903e['data'];if('formatBlock'!=_0x36903e['type']||!_0x1aa0c9||'setTableColumnHeader'!=_0x1aa0c9['commandName'])return;const _0x4d8bf8=_0x36d847['mapper']['markerNameToElements'](_0x48c171['markerName']);if(_0x4d8bf8){for(const _0x3cee80 of _0x4d8bf8)_0x36d847['writer']['removeClass']('ck-suggestion-marker-'+_0x4d5d6d,_0x3cee80),_0x36d847['writer']['removeClass']('ck-suggestion-marker--active',_0x3cee80),_0x36d847['writer']['removeAttribute']('data-suggestion',_0x3cee80),_0x36d847['mapper']['unbindElementFromMarkerName'](_0x3cee80,_0x48c171['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36ba24=this['editor'],_0x194793=_0x36ba24['locale'];function _0x49597d(_0x1af864){return{'type':'format','content':o(_0x194793,'*Format:*\x20%0',_0x1af864)};}_0x36ba24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x613146=>{if('formatBlock'!=_0x613146['type'])return;const {data:_0x53c2dd}=_0x613146;if(_0x53c2dd){if('setTableRowHeader'==_0x53c2dd['commandName']){const _0x3f6671=_0x53c2dd['commandParams'][0x0]['forceValue'];return _0x49597d(o(_0x194793,_0x3f6671?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x53c2dd['commandName']){const _0x5101ea=_0x53c2dd['commandParams'][0x0]['forceValue'];return _0x49597d(o(_0x194793,_0x5101ea?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x57c02e=>[_0x57c02e,null]));class It extends _0x1367c6{static get['requires'](){return[jt];}['afterInit'](){const _0x311e3d=this['editor'];if(!_0x311e3d['plugins']['has']('TableClipboard'))return;const _0x3e5f75=_0x311e3d['plugins']['get']('TrackChangesEditing'),_0x13f0a0=_0x311e3d['plugins']['get']('TableUtils'),_0x44e17e=_0x311e3d['plugins']['get'](jt),_0x5d7d07=_0x311e3d['plugins']['get']('TableClipboard');_0x44e17e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x311e3d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x311e3d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1a1339=null;_0x311e3d['model']['on']('insertContent',(_0x1d91d4,_0x53d138)=>{const [_0x28692c,_0x512cc3]=_0x53d138,_0x42bc7a=_0x53d138[_0x53d138['length']-0x1];_0x42bc7a&&_0x42bc7a['forceDefaultExecution']||_0x3e5f75['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x235e7a,_0x48fd61,_0x1967f1,_0x49a4a9,_0x35d223){if(_0x48fd61&&!_0x48fd61['is']('documentSelection'))return!0x1;const _0x1de774=_0x35d223['getTableIfOnlyTableInContent'](_0x235e7a,_0x1967f1);if(!_0x1de774||!he(_0x1de774,void 0x0,_0x49a4a9))return!0x1;const _0x3e1489=_0x49a4a9['getSelectionAffectedTableCells'](_0x1967f1['document']['selection']);if(!_0x3e1489['length'])return!0x1;const _0x136467=_0x3e1489[0x0]['findAncestor']('table'),_0xa9f251=_0x49a4a9['getRowIndexes'](_0x3e1489),_0x319d71=_0x49a4a9['getColumnIndexes'](_0x3e1489),_0x21bfa9={'startRow':_0xa9f251['first'],'endRow':_0xa9f251['last'],'startColumn':_0x319d71['first'],'endColumn':_0x319d71['last']};return 0x1==_0x3e1489['length']&&(_0x21bfa9['endRow']+=_0x49a4a9['getRows'](_0x1de774)-0x1,_0x21bfa9['endColumn']+=_0x49a4a9['getColumns'](_0x1de774)-0x1),he(_0x136467,_0x21bfa9,_0x49a4a9);}(_0x28692c,_0x512cc3,_0x311e3d['model'],_0x13f0a0,_0x5d7d07)&&(_0x1d91d4['stop'](),_0x1a1339={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x311e3d['model']['change'](()=>{_0x311e3d['model']['insertContent'](_0x53d138[0x0],_0x53d138[0x1],_0x53d138[0x2],{'forceDefaultExecution':!0x0});const _0x37abc9=_0x22411c(),{rowInsertionRanges:_0x227748,columnInsertionRanges:_0x2de309,insertionRanges:_0x2b3cb1,deletionRanges:_0x2c4bf9,cells:_0x271304}=_0x1a1339;_0x227748['length']&&_0x3e5f75['markMultiRangeInsertion'](_0x227748,'tablePasteRow',{'tablePasteChainId':_0x37abc9}),_0x2de309['length']&&_0x3e5f75['markMultiRangeInsertion'](_0x2de309,'tablePasteColumn',{'tablePasteChainId':_0x37abc9}),_0x2b3cb1['length']&&(_0x3e5f75['markMultiRangeInsertion'](_0x2b3cb1,'tablePaste',{'tablePasteChainId':_0x37abc9,'skipNestingCheck':!0x0}),_0x2b3cb1['forEach'](_0x15bda5=>_0x15bda5['detach']?.())),_0x2c4bf9['length']&&(_0x3e5f75['markMultiRangeDeletion'](_0x2c4bf9,'tablePaste',{'tablePasteChainId':_0x37abc9,'skipNestingCheck':!0x0}),_0x2c4bf9['forEach'](_0xa44e6e=>_0xa44e6e['detach']?.()));const _0x35483f=_0x3e5f75['markMultiRangeBlockFormat'](_0x271304['map'](({element:_0x3d72ce})=>_0x3d72ce),{'formatGroupId':_0x22411c()},[],'tablePasteCell',{'tablePasteChainId':_0x37abc9});if(_0x35483f){const _0x2462a1=_0x35483f['getMarkers'](),_0x2352a1=[];for(const {element:_0x3eed8a,attributes:_0x55b984}of _0x271304){if(!_0x55b984)continue;const _0x4e84e6=_0x311e3d['model']['createRangeOn'](_0x3eed8a),_0x530d95=_0x2462a1['find'](_0x3aa6af=>_0x3aa6af['getRange']()['isEqual'](_0x4e84e6));_0x530d95&&_0x2352a1['push']([_0x530d95['name'],_0x55b984]);}_0x2352a1['length']&&_0x35483f['setAttribute']('markerAttributes',Object['fromEntries'](_0x2352a1));}_0x1a1339=null;}));},{'priority':_0x4d67f8['high']+0xa}),_0x311e3d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x427968,_0x420d81)=>{const [_0x3cbe91,_0x4b41bf,,_0x4f4c47]=_0x420d81;if(!_0x1a1339)return;_0x427968['stop']();const _0x4c147d=_0x3cbe91['cell'],_0x4923b8=_0x4b41bf,_0x88a85c=Pe(_0x4c147d),_0x22aba6=Pe(_0x4923b8);_0x427968['return']=_0x4c147d;let _0x1eff3a=null,_0x1413e2=null;if(_0x22aba6||_0x88a85c){if(_0x88a85c&&!_0x22aba6){_0x4f4c47['remove'](_0x4c147d['getChild'](0x0));for(const _0x3d1929 of Array['from'](_0x4923b8['getChildren']()))_0x4f4c47['insert'](_0x3d1929,_0x4c147d,'end');const _0x2d48c7=_0x1a1339['rowInsertionIndexes']['includes'](_0x3cbe91['row']),_0x2a3084=_0x1a1339['columnInsertionIndexes']['includes'](_0x3cbe91['column']);_0x2d48c7||_0x2a3084||(_0x1eff3a=_0x24837b['fromRange'](_0x4f4c47['createRangeIn'](_0x4c147d)));}else _0x22aba6&&!_0x88a85c&&(_0x1413e2=_0x4f4c47['createRangeIn'](_0x4c147d));}else{const _0x538cbd=_0x4f4c47['createElement']('tableCellSuggestion'),_0x10d3a2=_0x4f4c47['createElement']('tableCellSuggestion');_0x4f4c47['wrap'](_0x4f4c47['createRangeIn'](_0x4c147d),_0x10d3a2),_0x4f4c47['insert'](_0x538cbd,_0x4c147d,0x0);for(const _0x3d9506 of Array['from'](_0x4923b8['getChildren']()))_0x4f4c47['insert'](_0x3d9506,_0x538cbd,'end');_0x1eff3a=_0x24837b['fromRange'](_0x4f4c47['createRangeOn'](_0x538cbd)),_0x1413e2=_0x24837b['fromRange'](_0x4f4c47['createRangeOn'](_0x10d3a2));}const _0x159edb=Array['from'](_0x4923b8['getAttributes']())['filter'](([_0x295167])=>ge['includes'](_0x295167));_0x1a1339['cells']['push']({'element':_0x4c147d,'attributes':_0x159edb['length']?Object['fromEntries'](_0x159edb):null}),_0x1eff3a&&_0x1a1339['insertionRanges']['push'](_0x1eff3a),_0x1413e2&&_0x1a1339['deletionRanges']['push'](_0x1413e2);},{'priority':'high'}),_0x13f0a0['on']('insertColumns',(_0x52d8c6,_0x4fe12a)=>{const [_0x46c65a,_0x5cd583={}]=_0x4fe12a;if(!_0x1a1339)return;const _0x4d3545=_0x5cd583['at']||0x0,_0x7cf52a=_0x5cd583['columns']||0x1;_0x1a1339['columnInsertionIndexes']=new Array(_0x7cf52a)['fill'](_0x4d3545)['map']((_0x104f6e,_0x185bc0)=>_0x104f6e+_0x185bc0);for(const {cell:_0x3348ca}of _0x13f0a0['createTableWalker'](_0x46c65a,{'startColumn':_0x4d3545,'endColumn':_0x4d3545+_0x7cf52a-0x1}))_0x1a1339['columnInsertionRanges']['push'](_0x311e3d['model']['createRangeOn'](_0x3348ca));},{'priority':'low'}),_0x13f0a0['on']('insertRows',(_0x192041,_0x267891)=>{const [_0x43609f,_0xe356fa={}]=_0x267891;if(!_0x1a1339)return;const _0x52d484=_0xe356fa['at']||0x0,_0x51e039=_0xe356fa['rows']||0x1;_0x1a1339['rowInsertionIndexes']=new Array(_0x51e039)['fill'](_0x52d484)['map']((_0x2a8e59,_0x2b08ac)=>_0x2a8e59+_0x2b08ac);for(const {cell:_0x4ffe61}of _0x13f0a0['createTableWalker'](_0x43609f,{'startRow':_0x52d484,'endRow':_0x52d484+_0x51e039-0x1}))_0x1a1339['rowInsertionRanges']['push'](_0x311e3d['model']['createRangeOn'](_0x4ffe61));},{'priority':'low'}),_0x3e5f75['descriptionFactory']['registerDescriptionCallback'](_0x214a53=>{if(_0x214a53['subType']&&_0x214a53['subType']['startsWith']('tablePaste'))return _0x214a53['previous']?{}:{'type':'insertion','content':o(_0x311e3d['locale'],'*Replace\x20table\x20cells*')};});const _0x2ed107=()=>!0x1;for(const _0x1ff09f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3e5f75['_suggestionFactory']['registerCustomCallback']('insertion',_0x1ff09f,'join',_0x2ed107),_0x3e5f75['_suggestionFactory']['registerCustomCallback']('deletion',_0x1ff09f,'join',_0x2ed107),_0x3e5f75['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ff09f,'join',_0x2ed107);_0x3e5f75['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2ed107),_0x3e5f75['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x35d7fb,_0x279623,_0x2df5a3)=>{const _0x2b827c=_0x35d7fb['map'](_0x5ebba5=>_0x5ebba5['getContainedElement']())['filter'](_0x5c41d6=>_0x5c41d6),_0x2cf004=new Map(_0x2b827c['map'](_0x1fd5aa=>[_0x1fd5aa,null]));if(_0x1a1339){for(const {element:_0x1f5186,attributes:_0x44a9b9}of _0x1a1339['cells'])_0x44a9b9&&_0x2cf004['set'](_0x1f5186,_0x44a9b9);}else{if(_0x2df5a3&&_0x2df5a3['markerAttributes'])for(const [_0x4d3629,_0x398180]of Object['entries'](_0x2df5a3['markerAttributes'])){const _0x6a0a9c=_0x311e3d['model']['markers']['get'](_0x4d3629),_0xd9d17f=_0x6a0a9c?_0x6a0a9c['getRange']()['getContainedElement']():null;_0xd9d17f&&_0x2cf004['set'](_0xd9d17f,_0x398180);}}_0x311e3d['model']['change'](_0x150aa2=>{for(const [_0x520a5c,_0x29c129]of _0x2cf004)_0x150aa2['setAttributes']({...Ce,..._0x29c129},_0x520a5c);});});const _0x56eb13=(_0xad89fc,_0x248a0b)=>{_0x3e5f75['_suggestionFactory']['registerCustomCallback'](_0xad89fc,'tablePaste',_0x248a0b,(_0x29d59a,_0x3b90fa,_0x52e713)=>{_0x311e3d['model']['change'](_0x128335=>{const _0x40e044=[];for(const _0x28707 of _0x29d59a){const _0x29f351=_0x28707['start']['nodeAfter'];_0x29f351['is']('element','tableCellSuggestion')&&_0x40e044['push'](_0x29f351);}_0x3e5f75['_suggestionFactory']['getSuggestionCallback'](_0xad89fc,null,_0x248a0b)(_0x29d59a,_0x3b90fa,_0x52e713);for(const _0x4c0c65 of _0x40e044)'$graveyard'!=_0x4c0c65['root']['rootName']&&_0x128335['unwrap'](_0x4c0c65);});});};_0x56eb13('insertion','accept'),_0x56eb13('insertion','discard'),_0x56eb13('deletion','accept'),_0x56eb13('deletion','discard'),_0x3e5f75['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x187ea9=>{const _0x336253=_0x187ea9['map'](_0x4a0ec8=>_0x4a0ec8['getContainedElement']()),_0x4ef93a=_0x336253[0x0]['findAncestor']('table'),{minRow:_0x340d24,maxRow:_0x40d492}=_0x44e17e['_getCoordsForCells'](_0x336253);_0x13f0a0['removeRows'](_0x4ef93a,{'at':_0x340d24,'rows':_0x40d492-_0x340d24+0x1});}),_0x3e5f75['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1dd79f=>{const _0x1ce17d=_0x1dd79f['map'](_0xe3880a=>_0xe3880a['getContainedElement']()),_0x124a5a=_0x1ce17d[0x0]['findAncestor']('table'),{minColumn:_0x55be82,maxColumn:_0x1aab7f}=_0x44e17e['_getCoordsForCells'](_0x1ce17d);_0x13f0a0['removeColumns'](_0x124a5a,{'at':_0x55be82,'columns':_0x1aab7f-_0x55be82+0x1});});const _0x2b8000=(_0x19e46f,_0x469473)=>{if(!_0x469473['subType']||!_0x469473['subType']['startsWith']('tablePaste'))return;const _0x5f2ba0=_0x469473['attributes']['tablePasteChainId'],_0x253cd1=_0x3e5f75['getSuggestions']()['filter'](_0x4d45f9=>_0x4d45f9['isInContent']&&_0x4d45f9['attributes']&&_0x4d45f9['attributes']['tablePasteChainId']==_0x5f2ba0);_0x253cd1['length']&&_0x469473['getAllAdjacentSuggestions']()['length']!=_0x253cd1['length']&&_0x253cd1['reduce']((_0x3c2322,_0x181844)=>(_0x3c2322['next']=_0x181844,_0x181844['previous']=_0x3c2322,_0x181844));};function _0x4378f5(_0x5e31f8,_0x1e1185=!0x0){const {id:_0x514de7}=_0x3e5f75['_splitMarkerName'](_0x5e31f8['markerName']),_0x45c084=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x495936=_0x3e5f75['activeMarkers']['includes'](_0x5e31f8['markerName']);return _0x495936&&_0x45c084['push']('ck-suggestion-marker--active'),{'classes':_0x45c084,'attributes':{'data-suggestion':_0x514de7},'priority':_0x495936&&_0x1e1185?0xbc2:0xbb8};}_0x3e5f75['on']('suggestionLoaded',_0x2b8000,{'priority':'high'}),_0x3e5f75['on']('suggestionUnloaded',_0x2b8000,{'priority':'high'}),_0x311e3d['model']['document']['registerPostFixer'](()=>{let _0x2a84c6=!0x1;const _0x3db1d3=Array['from'](_0x311e3d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24cf75,data:_0x4926aa}of _0x3db1d3){const {group:_0x4ebd1a,type:_0x45511e,id:_0x580d90}=_0x3e5f75['_splitMarkerName'](_0x24cf75);if('suggestion'!=_0x4ebd1a||'deletion'!=_0x45511e||_0x4926aa['oldRange'])continue;if(!_0x3e5f75['hasSuggestion'](_0x580d90))continue;const _0xc49f87=_0x3e5f75['getSuggestion'](_0x580d90)['getRanges'](),_0x55586a=_0x311e3d['plugins']['get']('Users')['me'];for(const _0x1c0b61 of _0x3e5f75['getSuggestions']()){if(!_0x1c0b61['isInContent']||_0x1c0b61['author']!=_0x55586a)continue;if('formatBlock'!=_0x1c0b61['type']||'tablePasteCell'!=_0x1c0b61['subType'])continue;if(_0x1c0b61['getRanges']()['every'](_0x20a236=>_0xc49f87['some'](_0x4983ee=>_0x4983ee['containsRange'](_0x20a236,!0x0)))){for(const _0x5d6a20 of _0x1c0b61['getAllAdjacentSuggestions']())_0x5d6a20['isInContent']&&(_0x5d6a20['discard'](),_0x2a84c6=!0x0);}}}return _0x2a84c6;}),_0x311e3d['model']['document']['registerPostFixer'](_0x157dd3=>{const _0xf80e78=_0x311e3d['commands']['get']('redo');if(!_0xf80e78||!_0xf80e78['_createdBatches']['has'](_0x157dd3['batch']))return!0x1;let _0x4d7eb4=!0x1;const _0x5581c9=_0x311e3d['plugins']['get']('Users')['me'],_0x2b34b2=_0x311e3d['model']['document']['differ']['getChanges'](),_0x5a180b=Array['from'](_0x311e3d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x142e2d,data:_0x2cde97})=>{const {group:_0x37bcee,subType:_0x5ad269,authorId:_0x5d888a}=_0x3e5f75['_splitMarkerName'](_0x142e2d);return'suggestion'==_0x37bcee&&'tablePaste'==_0x5ad269&&_0x5d888a==_0x5581c9['id']&&!_0x2cde97['oldRange'];});for(const _0x5e5e97 of _0x2b34b2){if('insert'!=_0x5e5e97['type']||'tableCellSuggestion'!=_0x5e5e97['name']||0x1!=_0x5e5e97['length'])continue;const _0x2f514b=_0x157dd3['createRange'](_0x5e5e97['position'],_0x5e5e97['position']['getShiftedBy'](0x1));if(!_0x5a180b['find'](({data:_0x2757d1})=>_0x2757d1['newRange']['isEqual'](_0x2f514b))){for(const {name:_0x1e1eda,data:_0x58b887}of _0x5a180b)if(_0x2f514b['containsRange'](_0x58b887['newRange'])){_0x157dd3['updateMarker'](_0x1e1eda,{'range':_0x2f514b}),_0x4d7eb4=!0x0;break;}}}return _0x4d7eb4;}),_0x311e3d['model']['document']['registerPostFixer'](_0x5d3864=>{let _0x98fedd=!0x1;const _0x51a3d9=_0x311e3d['plugins']['get']('Users')['me'],_0x509940=_0x3e5f75['getSuggestions']()['filter'](_0x11ffce=>_0x11ffce['isInContent']&&_0x11ffce['author']==_0x51a3d9),_0x1229f3=new Set(),_0xc0b64a=new Set();for(const _0x348eeb of _0x509940)if('tablePaste'==_0x348eeb['subType'])for(const _0x3fabd3 of _0x348eeb['getMarkers']()){const _0x4a37f1=_0x3fabd3['getRange']()['getContainedElement']();if(_0x4a37f1){if(_0x4a37f1['is']('element','tableCellSuggestion')&&Pe(_0x4a37f1)){_0x348eeb['removeMarker'](_0x3fabd3['name']),_0x1229f3['add'](_0x4a37f1),_0x98fedd=!0x0;const _0x3660d6=_0x4a37f1['nextSibling'],_0x4f1868=_0x4a37f1['previousSibling'],_0x52dc19=_0x3660d6&&_0x3660d6['is']('element','tableCellSuggestion'),_0x49c91e=_0x4f1868&&_0x4f1868['is']('element','tableCellSuggestion');_0x52dc19&&!_0x1229f3['has'](_0x3660d6)&&_0xc0b64a['add'](_0x3660d6),_0x49c91e&&!_0x1229f3['has'](_0x4f1868)&&_0xc0b64a['add'](_0x4f1868);}else _0x4a37f1['is']('element','paragraph')&&_0x4a37f1['isEmpty']&&(_0x348eeb['removeMarker'](_0x3fabd3['name']),_0x98fedd=!0x0);}}else{if('tablePasteCell'==_0x348eeb['subType']){if(!_0x348eeb['attributes']||!_0x348eeb['attributes']['tablePasteChainId'])continue;const _0x291be0=_0x348eeb['attributes']['markerAttributes'];if(_0x291be0&&Object['keys'](_0x291be0)['length'])continue;const _0x17b66d=_0x348eeb['attributes']['tablePasteChainId'];let _0x5c4f51=!0x0,_0x3b21a2=!0x0;for(const _0x567ca3 of _0x509940)if(_0x567ca3['subType']&&_0x567ca3['subType']['startsWith']('tablePaste')){if(!_0x567ca3['attributes']['tablePasteChainId']){_0x3b21a2=!0x1;break;}if(_0x567ca3['id']!=_0x348eeb['id']&&_0x567ca3['attributes']['tablePasteChainId']==_0x17b66d){_0x5c4f51=!0x1;break;}}_0x3b21a2&&_0x5c4f51&&(_0x348eeb['removeMarkers'](),_0x98fedd=!0x0);}}for(const _0x4b79af of _0x1229f3)_0x5d3864['remove'](_0x4b79af);for(const _0x4153d6 of _0xc0b64a)_0x5d3864['unwrap'](_0x4153d6);return _0x98fedd;}),_0x311e3d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x19ad95,_0xd31f1)=>_0x4378f5(_0x19ad95),'converterPriority':'high'}),_0x311e3d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4d6967,_0xc966a8)=>_0xc966a8['options']['showSuggestionHighlights']?_0x4378f5(_0x4d6967,!0x1):null,'converterPriority':'high'});const _0x520819=_0x311e3d['editing']['view'];this['listenTo'](_0x520819['document'],'clipboardOutput',(_0x28bc1b,_0x57e6a1)=>{const _0x501261=[];for(const _0x1b23fe of _0x520819['createRangeIn'](_0x57e6a1['content'])['getItems']())_0x1b23fe['is']('element','suggestion-td')&&_0x501261['push'](_0x1b23fe);_0x520819['change'](_0x2cd14f=>{for(const _0x1a25df of _0x501261)_0x2cd14f['move'](_0x2cd14f['createRangeIn'](_0x1a25df),_0x2cd14f['createPositionBefore'](_0x1a25df)),_0x2cd14f['remove'](_0x1a25df);});});}}function Pe(_0x4466ca){if(_0x4466ca['isEmpty'])return!0x0;const _0x46e5d9=_0x4466ca['getChild'](0x0);return _0x46e5d9['is']('element','paragraph')&&_0x46e5d9['isEmpty'];}function he(_0x24c36a,_0xf07791={},_0x31e3cd){for(const {isAnchor:_0x400d0e,cellHeight:_0x2a890a,cellWidth:_0xa4fdae}of _0x31e3cd['createTableWalker'](_0x24c36a,{'includeAllSlots':!0x0,..._0xf07791}))if(!_0x400d0e||0x1!=_0x2a890a||0x1!=_0xa4fdae)return!0x1;return!0x0;}class vt extends _0x1367c6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x9aa219=this['editor']['plugins']['get']('TrackChangesEditing');_0x9aa219['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x9aa219['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x9aa219['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x9aa219['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x9aa219['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x9aa219['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1b2447,_0x4aa649){const _0x1f0d09=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ab10b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xd474f=_0x4aa649['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3cda05=_0x2ab10b['getColumnGroupElement'](_0xd474f);let _0x513116=_0x3cda05?_0x2ab10b['getTableColumnsWidths'](_0x3cda05):null,_0x13265d=_0xd474f['getAttribute']('tableWidth')||null;const _0x3e6fcb=_0x4aa649['tableWidth']||_0x13265d,_0xc096a4=_0x4aa649['columnWidths']||_0x513116,_0x1cc49a=this['editor']['plugins']['get']('Users')['me'];for(const _0x14221c of _0x1f0d09['getSuggestions']()){const _0x46b865=_0x14221c['getContainedElement']();if('resizeTable'===_0x14221c['subType']&&_0x46b865===_0xd474f){_0x14221c['author']!==_0x1cc49a&&_0x14221c['discard']();const _0x1c733c=_0x14221c['data']['commandParams'];_0x13265d=_0x1c733c[0x0]['tableWidth'],_0x513116=_0x1c733c[0x0]['columnWidths'];break;}}_0x1b2447({'table':_0xd474f,'tableWidth':_0x3e6fcb,'columnWidths':_0xc096a4}),_0x1f0d09['markBlockFormat'](_0xd474f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x13265d,'columnWidths':_0x513116}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x18b585){if('formatBlock'!=_0x18b585['type']&&'formatInline'!=_0x18b585['type'])return;const {data:_0x4a7bae}=_0x18b585;if(_0x4a7bae&&'resizeTable'===_0x4a7bae['formatGroupId']){const _0x258d91='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x258d91)};}}}class Ct extends _0x1367c6{['afterInit'](){const _0x433e2b=this['editor'];_0x433e2b['plugins']['has']('Template')&&_0x433e2b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1367c6{['afterInit'](){const _0x1d9625=this['editor'];if(!_0x1d9625['commands']['get']('insertTableOfContents'))return;_0x1d9625['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4efd2d=_0x1d9625['plugins']['get']('TrackChangesEditing'),_0x1bb3b1=_0x1d9625['locale'];_0x4efd2d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x12475e=>o(_0x1bb3b1,'ELEMENT_TABLE_OF_CONTENTS',_0x12475e));}}class Dt extends _0x1367c6{['afterInit'](){const _0x13721e=this['editor'];if(!_0x13721e['plugins']['has']('Title'))return;const _0x233e0a=_0x13721e['plugins']['get']('TrackChangesEditing');_0x233e0a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x13721e['locale'],'ELEMENT_TITLE')),_0x13721e['model']['document']['registerPostFixer'](_0x3e722b=>{let _0x35f71b=!0x1;const _0x481fa2=Array['from'](_0x13721e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29abd3,data:_0x4a6430}of _0x481fa2){const {group:_0x379b18}=_0x233e0a['_splitMarkerName'](_0x29abd3);if('suggestion'!==_0x379b18||!_0x4a6430['newRange'])continue;const _0x3c15a3=_0x4a6430['newRange'],_0x5723d7=_0x3c15a3['end']['nodeBefore'];if(!_0x5723d7||!_0x5723d7['is']('element','title-content'))continue;if(!_0x3c15a3['start']['isTouching'](_0x3c15a3['end']))continue;const _0x32afe4=_0x13721e['model']['schema']['getNearestSelectionRange'](_0x3c15a3['end'],'forward');if(_0x32afe4&&_0x32afe4['isCollapsed']){const _0xc75a61=_0x3e722b['createRange'](_0x3c15a3['start'],_0x32afe4['start']);_0xc75a61['isEqual'](_0x3c15a3)||(_0x3e722b['updateMarker'](_0x29abd3,{'range':_0xc75a61}),_0x35f71b=!0x0);}_0x35f71b||(_0x3e722b['removeMarker'](_0x29abd3),_0x35f71b=!0x0);}return _0x35f71b;});}}class Nt extends _0x1367c6{['afterInit'](){const _0xc1b82b=this['editor'],_0x58ad66=_0xc1b82b['plugins']['get']('TrackChangesEditing');_0xc1b82b['plugins']['has']('UndoEditing')&&(_0x58ad66['enableCommand']('undo'),_0x58ad66['enableCommand']('redo'));}}class Mt extends _0x1367c6{static get['requires'](){return[jt];}['afterInit'](){const _0x15b82e=this['editor'];if(!_0x15b82e['plugins']['has']('TableCaptionEditing'))return;_0x15b82e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1367c6{['tableProperties'];['tableCellProperties'];constructor(_0x90a34d){super(_0x90a34d),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 _0x5c1378=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x20c239 of this['tableProperties'])_0x5c1378['enableCommand'](_0x20c239,(_0x3b46e9,_0x5341ed)=>{const _0x38f725=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x20c239,[_0x38f725],this['tableProperties'],'tableProperties',_0x3b46e9,_0x5341ed);});_0x5c1378['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5c1378['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c1378['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x51cf5a,_0x281de5)=>this['handleDiscardAction'](this['tableProperties'],_0x51cf5a,_0x281de5)),_0x5c1378['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x126197 of this['tableCellProperties'])_0x5c1378['enableCommand'](_0x126197,(_0x1fa0a6,_0x41208b)=>{const _0x4e1860=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x126197,_0x4e1860,this['tableCellProperties'],'tableCellProperties',_0x1fa0a6,_0x41208b);});_0x5c1378['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5c1378['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c1378['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4fc8b9,_0x4177ab)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4fc8b9,_0x4177ab)),_0x5c1378['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5c1378['descriptionFactory']['registerDescriptionCallback'](_0x3ac4e9=>this['handleSuggestionDescription'](_0x3ac4e9));}['_handlePropertyChange'](_0x9901db,_0x406b50,_0x2c45ee,_0x4c42a3,_0x4d11ad,_0x6b093d){const _0x5793e1=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x6b093d['batch'],()=>{for(const _0x43364c of _0x406b50){if(this['_getSuggestion'](_0x43364c,_0x4c42a3))_0x4d11ad(_0x6b093d);else{const _0x23be97={};for(const _0x462189 of _0x2c45ee){const _0x634a7e=_0x43364c['getAttribute'](_0x462189);void 0x0!==_0x634a7e&&(_0x23be97[_0x462189]=_0x634a7e);}_0x4d11ad(_0x6b093d),_0x5793e1['markBlockFormat'](_0x43364c,{'commandParams':[_0x23be97]},[],_0x4c42a3);}}});}['handleDiscardAction'](_0x3f2163,_0x559763,_0x1ab5f0){const _0x244b85=_0x559763[0x0]['start']['nodeAfter'],_0x49a81f=_0x1ab5f0['commandParams'][0x0];this['editor']['model']['change'](_0x16e98f=>{for(const _0x5ec6f2 of _0x3f2163)void 0x0!==_0x49a81f[_0x5ec6f2]?_0x16e98f['setAttribute'](_0x5ec6f2,_0x49a81f[_0x5ec6f2],_0x244b85):_0x16e98f['removeAttribute'](_0x5ec6f2,_0x244b85);});}['handleSuggestionDescription'](_0x5ddcab){if(_0x5ddcab['data'])switch(_0x5ddcab['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'](_0x59f271,_0x2bb893){const _0x8e0363=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x56d622 of _0x8e0363['getSuggestions']({'skipNotAttached':!0x0})){const _0x59aa32=_0x56d622['getContainedElement']();if(_0x56d622['subType']===_0x2bb893&&_0x59aa32===_0x59f271)return _0x56d622;}return null;}}const m='$elementName';class p extends _0x1367c6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x54f297,_0x4c1d57,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0xfce86b){function _0x5d5a75(_0x4b54c4){return _0x4b54c4['map'](_0x880d90=>String['fromCharCode'](_0x880d90))['join']('');}super(_0xfce86b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x32cec8,_0x2b3b7a,_0x36b83a,_0x4945df)=>{this['_model']['change'](()=>{for(const _0x23e4cf of[..._0x4945df,..._0x36b83a])this['_model']['markers']['has'](_0x23e4cf)&&_0xfce86b['editing']['reconvertMarker'](_0x23e4cf);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xfce86b['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(),_0xfce86b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xfce86b['config']['get']('trackChanges.trackFormatChanges'),_0xfce86b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xfce86b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0xfce86b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5d5a75([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5d5a75([0x34,0x30,0x34,0x38,0x31,0x34,0x30,0x36]);}['init'](){const _0x106d27=this['editor'],_0x13ef26=(_0x5c6489,_0x2e8f2d)=>{if('attribute'!=_0x5c6489)return'ck-suggestion-marker-'+_0x5c6489;const _0x5a07f2=_0x2e8f2d['split']('|')[0x0];return this['_isBlockAttribute'](_0x5a07f2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x106d27['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1284e2=>{const {id:_0x110d89,type:_0x564ba6,subType:_0x5a677b}=this['_splitMarkerName'](_0x1284e2['markerName']),_0x1be849=['ck-suggestion-marker',_0x13ef26(_0x564ba6,_0x5a677b)];let _0x149271=0xbb8;return this['activeMarkers']['includes'](_0x1284e2['markerName'])&&(_0x1be849['push']('ck-suggestion-marker--active'),_0x149271=0xbc2),'deletion'==_0x564ba6&&(_0x149271+=0x5),{'classes':_0x1be849,'attributes':{'data-suggestion':_0x110d89},'priority':_0x149271};}}),_0x106d27['conversion']['for']('dataDowncast')['add'](_0x351544=>{_0x351544['on']('addMarker:suggestion',(_0x3e8e83,_0x7ac5fb,_0x259bd0)=>{if(!_0x259bd0['options']['showSuggestionHighlights'])return;const _0x2114b4=_0x7ac5fb['item'];if(!_0x2114b4)return;const _0x39cb5a=_0x259bd0['mapper']['toViewElement'](_0x2114b4);_0x106d27['model']['schema']['isObject'](_0x2114b4)&&_0x39cb5a&&!_0x39cb5a['getCustomProperty']('widget')&&_0x39cb5a['is']('containerElement')&&_0xd8b030(_0x39cb5a,_0x259bd0['writer']);},{'priority':'high'});}),_0x106d27['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3781ef,_0x3865c6)=>{if(!_0x3865c6['options']['showSuggestionHighlights'])return null;const {type:_0x191279,subType:_0x2f359f}=this['_splitMarkerName'](_0x3781ef['markerName']);return{'classes':['ck-suggestion-marker',_0x13ef26(_0x191279,_0x2f359f)],'priority':0xbb8};}});const _0x531bca=({showActiveMarkers:_0x55e31e=!0x0,isAttributeSuggestion:_0x45931b=!0x1}={})=>(_0x4d58a2,_0x1d948d,_0x4acb2f)=>{if(!_0x1d948d['item'])return;const {id:_0x418484}=this['_splitMarkerName'](_0x1d948d['markerName']);if(_0x45931b){const _0x5a1b7b=this['_suggestions']['get'](_0x418484),_0xfcb6f6=this['_getAttributeKey'](_0x5a1b7b);if(!this['_isBlockAttribute'](_0xfcb6f6))return;}if(_0x1d948d['item']['is']('selection'))return void _0x4acb2f['consumable']['consume'](_0x1d948d['item'],_0x4d58a2['name']);const _0x14ddf8=_0x4acb2f['mapper']['toViewElement'](_0x1d948d['item']);if(_0x1d948d['item']['is']('element')&&_0x106d27['model']['schema']['isBlock'](_0x1d948d['item'])&&!_0x14ddf8['getCustomProperty']('addHighlight')){_0x4acb2f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x14ddf8),_0x4acb2f['writer']['setAttribute']('data-suggestion',_0x418484,_0x14ddf8),_0x4acb2f['mapper']['bindElementToMarker'](_0x14ddf8,_0x1d948d['markerName']),_0x55e31e&&(this['activeMarkers']['includes'](_0x1d948d['markerName'])?_0x4acb2f['writer']['addClass']('ck-suggestion-marker--active',_0x14ddf8):_0x4acb2f['writer']['removeClass']('ck-suggestion-marker--active',_0x14ddf8));for(const _0x2987e7 of _0x106d27['model']['createRangeIn'](_0x1d948d['item'])['getItems']())_0x4acb2f['consumable']['consume'](_0x2987e7,_0x4d58a2['name']);_0x4acb2f['consumable']['consume'](_0x1d948d['item'],_0x4d58a2['name']);}};_0x106d27['conversion']['for']('dataDowncast')['add'](_0x3b1e35=>{_0x3b1e35['on']('addMarker:suggestion:formatBlock',(_0x3627b5,_0x46dc6b,_0x8217ea)=>{_0x8217ea['options']['showSuggestionHighlights']&&_0x531bca({'showActiveMarkers':!0x1})(_0x3627b5,_0x46dc6b,_0x8217ea);},{'priority':'highest'});}),_0x106d27['conversion']['for']('dataDowncast')['add'](_0x5a1c56=>{_0x5a1c56['on']('addMarker:suggestion:attribute',(_0x40dd91,_0x2d52e3,_0x1a8ed2)=>{_0x1a8ed2['options']['showSuggestionHighlights']&&_0x531bca({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x40dd91,_0x2d52e3,_0x1a8ed2);},{'priority':'highest'});}),_0x106d27['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xb50012,_0x1f9fb3)=>_0x1f9fb3['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xb50012['substr'](0xb)}}),_0x106d27['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2ef0f5,{writer:_0x233326})=>{let _0x1c6f48='suggestion:'+_0x2ef0f5['getAttribute']('suggestion-type')+':'+_0x2ef0f5['getAttribute']('id');return _0x2ef0f5['getAttribute']('marker-count')&&(_0x1c6f48+=':'+_0x2ef0f5['getAttribute']('marker-count')),_0x233326['createElement']('$marker',{'data-name':_0x1c6f48});}}),_0x106d27['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x106d27['conversion']['for']('editingDowncast')['add'](_0x17a5d0=>{_0x17a5d0['on']('addMarker:suggestion:formatBlock',_0x531bca(),{'priority':'high'});}),_0x106d27['conversion']['for']('editingDowncast')['add'](_0x422930=>{_0x422930['on']('addMarker:suggestion:attribute',_0x531bca({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x106d27['conversion']['for']('editingDowncast')['add'](_0x11f71=>{_0x11f71['on']('removeMarker:suggestion:formatBlock',(_0x56be0b,_0x3471bd,_0x36db49)=>{const _0x37285f=_0x36db49['mapper']['markerNameToElements'](_0x3471bd['markerName']);if(_0x37285f){for(const _0x3c97d7 of _0x37285f)_0x3c97d7['getCustomProperty']('addHighlight')||(_0x36db49['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c97d7),_0x36db49['writer']['removeAttribute']('data-suggestion',_0x3c97d7),_0x36db49['mapper']['unbindElementFromMarkerName'](_0x3c97d7,_0x3471bd['markerName']));}},{'priority':'high'});}),_0x106d27['conversion']['for']('editingDowncast')['add'](_0x21ff52=>{_0x21ff52['on']('removeMarker:suggestion:attribute',(_0x30f5a2,_0x15fa2d,_0x84beb0)=>{const _0x1a1e6e=_0x84beb0['mapper']['markerNameToElements'](_0x15fa2d['markerName']);if(!_0x1a1e6e)return;const {id:_0xbda92d}=this['_splitMarkerName'](_0x15fa2d['markerName']),_0x5566dd=this['_suggestions']['get'](_0xbda92d),_0x577f75=this['_getAttributeKey'](_0x5566dd);if(this['_isBlockAttribute'](_0x577f75)){for(const _0x32a279 of _0x1a1e6e)_0x32a279['getCustomProperty']('addHighlight')||(_0x84beb0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x32a279),_0x84beb0['writer']['removeAttribute']('data-suggestion',_0x32a279),_0x84beb0['mapper']['unbindElementFromMarkerName'](_0x32a279,_0x15fa2d['markerName']));}},{'priority':'high'});}),_0x106d27['model']['document']['registerPostFixer'](_0xe71523=>{let _0xc51b82=!0x1;const _0x4bbe4b=Array['from'](_0x106d27['model']['document']['differ']['getChangedMarkers']()),_0x43b2b0=new Set();for(const {name:_0x94ac49,data:_0x16204a}of _0x4bbe4b){const {group:_0x36a07d,type:_0x557802,subType:_0x1a39be,id:_0x565774}=this['_splitMarkerName'](_0x94ac49);if('suggestion'!==_0x36a07d)continue;const _0x10cb31=this['_suggestions']['get'](_0x565774);if(null!=_0x16204a['newRange']){'formatInline'==_0x557802&&(_0xc51b82=_0xc51b82||Et(_0x16204a['newRange'],_0x94ac49,_0xe71523,_0x106d27['model']['schema']));const _0x5b043b='attribute'==_0x557802&&this['_isBlockAttribute'](_0x1a39be['split']('|')[0x0]);if(_0x16204a['newRange']['isCollapsed']||'$graveyard'==_0x16204a['newRange']['root']['rootName']||'formatBlock'==_0x557802&&!Ut(_0x16204a['newRange'])||_0x5b043b&&!Ut(_0x16204a['newRange'])||'deletion'==_0x557802&&!(!Tt(_0x1e238e=_0x16204a['newRange'])&&!function(_0x21b23c){return _0x21b23c['start']['parent']==_0x21b23c['end']['nodeBefore']&&_0x21b23c['start']['isAtEnd'];}(_0x1e238e)))_0xe71523['removeMarker'](_0x94ac49),_0xc51b82=!0x0;else{if(!_0x10cb31||!_0x10cb31['isInContent'])continue;_0x43b2b0['add'](_0x10cb31);}}}var _0x1e238e;return _0x43b2b0['size']>0x0&&(_0xc51b82=!!this['_joinWithAdjacentSuggestions'](_0x43b2b0)||_0xc51b82),_0xc51b82;}),_0x106d27['model']['document']['registerPostFixer'](_0x49b08e=>{let _0x4cafdb=!0x1;for(const _0x527cfe of _0x106d27['model']['document']['differ']['getChanges']())if('insert'==_0x527cfe['type'])for(const _0x2cb6f8 of this['_suggestions']['values']()){if(_0x2cb6f8['isMultiRange']||!_0x2cb6f8['isInContent'])continue;const _0x36fc2='formatBlock'==_0x2cb6f8['type'],_0x4622d6=this['_getAttributeKey'](_0x2cb6f8),_0x49a441=_0x4622d6&&this['_isBlockAttribute'](_0x4622d6);if(!_0x36fc2&&!_0x49a441)continue;const _0x3bf3b1=_0x2cb6f8['getFirstRange']();if(_0x3bf3b1['start']['parent']!=_0x3bf3b1['end']['parent']&&!_0x3bf3b1['end']['isAtEnd']){const _0x3c008f=_0x106d27['model']['createPositionAt'](_0x3bf3b1['start']['nodeAfter'],'end'),_0x46174e=_0x106d27['model']['createRange'](_0x3bf3b1['start'],_0x3c008f);_0x49b08e['updateMarker'](_0x2cb6f8['getFirstMarker'](),{'range':_0x46174e}),_0x4cafdb=!0x0;}}return _0x4cafdb;}),_0x106d27['model']['document']['registerPostFixer'](_0x1aa70d=>this['_processAttributeChanges'](_0x1aa70d)),_0x106d27['model']['document']['registerPostFixer'](_0x1e1435=>!_0x1e1435['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1e1435)),_0x106d27['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x106d27['model']['document']['on']('change:data',(_0x118f8a,_0x217239)=>{if(!_0x217239['isLocal']||_0x217239['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4281e7=_0x106d27['model']['document']['differ']['getChanges']();if(0x0==_0x4281e7['length'])return;const _0x1edc62=[],_0x419f0f=_0x4281e7['filter'](_0x263cef=>'attribute'==_0x263cef['type']),_0x52a689=_0x4281e7['filter'](_0x16af5a=>'insert'==_0x16af5a['type']&&'$text'!=_0x16af5a['name']);for(const _0x5079a2 of _0x419f0f)this['_isRegisteredAttribute'](_0x5079a2['attributeKey'])&&_0x1edc62['push']({'key':_0x5079a2['attributeKey'],'newValue':_0x5079a2['attributeNewValue'],'oldValue':_0x5079a2['attributeOldValue'],'range':Ot(_0x5079a2['range'],_0x106d27['model'])});for(const _0x4cb086 of _0x52a689){if('rename'!=_0x4cb086['action']&&'refresh'!=_0x4cb086['action'])continue;const _0x156248=Gt(_0x4cb086['position']['nodeAfter'],_0x106d27['model']),_0x5974bd=_0x4cb086['before'];'rename'==_0x4cb086['action']&&_0x1edc62['push']({'key':m,'newValue':_0x4cb086['name'],'oldValue':_0x5974bd['name'],'range':_0x156248});for(const [_0x3a8ec7,_0x9c1c45]of _0x5974bd['attributes']){if(!this['_isRegisteredAttribute'](_0x3a8ec7))continue;const _0x690c9c=_0x4cb086['attributes']['get'](_0x3a8ec7);_0x9c1c45!==_0x690c9c&&_0x1edc62['push']({'key':_0x3a8ec7,'newValue':_0x690c9c,'oldValue':_0x9c1c45,'range':_0x156248});}for(const [_0x341537,_0x56a02a]of _0x4cb086['attributes'])this['_isRegisteredAttribute'](_0x341537)&&(_0x5974bd['attributes']['has'](_0x341537)||_0x1edc62['push']({'key':_0x341537,'newValue':_0x56a02a,'oldValue':null,'range':_0x156248}));}0x0!=_0x1edc62['length']&&_0x106d27['model']['enqueueChange'](_0x217239,_0x39b366=>{const _0x4df24a=_0x22411c();for(const {range:_0xff81a8,key:_0x244de5,oldValue:_0xf0a413,newValue:_0x546cf2}of _0x1edc62)this['markAttributeChange'](_0xff81a8,_0x244de5,_0xf0a413,_0x546cf2,{'groupId':_0x4df24a});this['_reduceExistingSuggestions'](_0x39b366,_0x1edc62);});},{'priority':'lowest'}),_0x106d27['model']['markers']['on']('update:suggestion',(_0x1f3d8a,_0x2752a9,_0x1d79a9)=>{if(null==_0x1d79a9){const {id:_0x2f6dfc}=this['_splitMarkerName'](_0x2752a9['name']),_0x53deb4=this['_suggestions']['get'](_0x2f6dfc);_0x53deb4&&_0x53deb4['addMarkerName'](_0x2752a9['name']);}}),_0x106d27['model']['document']['on']('change:data',()=>{const _0x7f3f8b=Array['from'](_0x106d27['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1724a6=>'suggestion'===this['_splitMarkerName'](_0x1724a6['name'])['group']);if(0x0===_0x7f3f8b['length'])return;_0x7f3f8b['sort']((_0x2565f4,_0x14d2e9)=>{const _0x484ee9=_0x2565f4['data']['oldRange'],_0x30f562=_0x14d2e9['data']['oldRange'];return null===_0x484ee9&&null===_0x30f562?0x0:null===_0x484ee9&&null!==_0x30f562?-0x1:null!==_0x484ee9&&null===_0x30f562?0x1:_0x484ee9['start']['isBefore'](_0x30f562['start'])?-0x1:0x1;});const _0x5c0495=new Set(),_0x3029e2=new Set();for(const {name:_0x3eff7,data:_0x117445}of _0x7f3f8b){const {id:_0x4c1633}=this['_splitMarkerName'](_0x3eff7);if(null===_0x117445['oldRange']){const _0x3c7e36=this['_handleNewSuggestionMarker'](_0x3eff7);_0x3029e2['add'](_0x3c7e36);}else{const _0xfb0d06=this['_suggestions']['get'](_0x4c1633);null!==_0x117445['newRange']||_0xfb0d06['isInContent']?(_0x5c0495['add'](_0xfb0d06['head']),_0x3029e2['add'](_0xfb0d06)):this['_removeSuggestion'](_0xfb0d06);}}_0x3029e2['size']>0x0&&this['_refreshSuggestionsChain'](_0x3029e2);for(const _0x46b094 of _0x5c0495)this['fire']('suggestionChanged',_0x46b094);}),_0x106d27['model']['on']('applyOperation',(_0x163809,_0xd24c5c)=>{const _0x570aac=_0xd24c5c[0x0];if(!this['_suggestions']['size'])return;if(!_0x570aac['isDocumentOperation'])return;if(_0x570aac['batch']['isUndo']||!_0x570aac['batch']['isLocal'])return;let _0x1618b0,_0x14cc1b;switch(_0x570aac['type']){case'insert':_0x1618b0=_0x106d27['model']['createPositionAt'](_0x570aac['position']),_0x14cc1b=_0x1618b0['getShiftedBy'](_0x570aac['howMany']);break;case'split':_0x1618b0=_0x106d27['model']['createPositionAt'](_0x570aac['splitPosition']),_0x14cc1b=_0x106d27['model']['createPositionAt'](_0x570aac['moveTargetPosition']);break;case'move':_0x1618b0=_0x106d27['model']['createPositionAt'](_0x570aac['targetPosition']),_0x14cc1b=_0x1618b0['getShiftedBy'](_0x570aac['howMany']);break;default:return;}const _0x4f5652=_0x106d27['model']['createRange'](_0x1618b0,_0x14cc1b);_0x106d27['model']['change'](()=>{for(const {suggestion:_0x268d63,meta:_0x537619}of this['_findSuggestions'](_0x4f5652)){if(_0x268d63['isMultiRange'])continue;if('formatInline'==_0x268d63['type'])continue;const _0x5de79e=this['_getAttributeKey'](_0x268d63);if(_0x5de79e&&this['_isBlockAttribute'](_0x5de79e)&&'split'!=_0x570aac['type'])continue;const _0x503161=_0x268d63['data']&&_0x268d63['data']['multipleBlocks'];('formatBlock'!=_0x268d63['type']||'split'==_0x570aac['type']&&!_0x503161)&&(_0x537619['containsRangeInObject']||'insertion'==_0x268d63['type']&&_0x537619['isOwn']||_0x268d63['getFirstRange']()['containsRange'](_0x4f5652)&&this['_breakSuggestionMarker'](_0x268d63,_0x1618b0,_0x14cc1b));}});},{'priority':'lowest'}),_0x106d27['model']['on']('deleteContent',(_0x17725a,_0x5e14d9)=>{const _0x236627=_0x5e14d9[0x0],_0x4783fb=_0x5e14d9[0x1];if(_0x4783fb&&_0x4783fb['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x236627['isCollapsed'])return;const _0x3881d4=_0x106d27['model']['schema'],{start:_0x160930,end:_0x2dff04}=_0x236627['getFirstRange'](),_0x5bd2de=_0x160930['nodeAfter']&&_0x3881d4['isLimit'](_0x160930['nodeAfter'])?null:_0x3881d4['getNearestSelectionRange'](_0x160930,'forward'),_0x14e52d=_0x2dff04['nodeBefore']&&_0x3881d4['isLimit'](_0x2dff04['nodeBefore'])?null:_0x3881d4['getNearestSelectionRange'](_0x2dff04,'backward'),_0x3ce2ff=_0x106d27['model']['createRange'](_0x5bd2de?_0x5bd2de['start']:_0x160930,_0x14e52d?_0x14e52d['end']:_0x2dff04);_0x106d27['model']['change'](_0x2fa76a=>{this['markDeletion'](_0x3ce2ff);const _0x3eeeea=_0x106d27['model']['schema']['getNearestSelectionRange'](_0x3ce2ff['start']);_0x236627['is']('documentSelection')?_0x2fa76a['setSelection'](_0x3eeeea):_0x236627['setTo'](_0x3eeeea);}),_0x17725a['stop']();},{'priority':_0x4d67f8['normal']+0xa}),_0x106d27['model']['on']('insertContent',(_0x4b2576,_0x221130)=>{const _0x43687d=_0x221130[_0x221130['length']-0x1];_0x43687d&&_0x43687d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x106d27['model']['change'](()=>{let _0x122545=_0x106d27['model']['insertContent'](_0x221130[0x0],_0x221130[0x1],_0x221130[0x2],{'forceDefaultExecution':!0x0});if(!_0x122545)return;_0x4b2576['return']=_0x122545['clone']();const _0x3e83fc=_0x122545['end']['nodeBefore'],_0x22cea5=_0x106d27['model']['schema'];_0x3e83fc&&_0x22cea5['isBlock'](_0x3e83fc)&&!_0x22cea5['isObject'](_0x3e83fc)&&(_0x122545=_0x106d27['model']['createRange'](_0x122545['start'],_0x106d27['model']['createPositionAt'](_0x3e83fc,'end'))),this['markInsertion'](_0x122545);}),_0x4b2576['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x572edc=new $(_0x106d27,this['_suggestions']);_0x106d27['commands']['add']('acceptSuggestion',_0x572edc),this['enableCommand']('acceptSuggestion');const _0x3f0e38=new B(_0x106d27,this['_suggestions']);_0x106d27['commands']['add']('discardSuggestion',_0x3f0e38),this['enableCommand']('discardSuggestion'),_0x106d27['commands']['add']('acceptAllSuggestions',new x(_0x106d27,_0x572edc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x106d27['commands']['add']('discardAllSuggestions',new x(_0x106d27,_0x3f0e38,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x106d27['commands']['add']('acceptSelectedSuggestions',new R(_0x106d27,_0x572edc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x106d27['commands']['add']('discardSelectedSuggestions',new R(_0x106d27,_0x3f0e38,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x136d97=_0x106d27['plugins']['get']('CommentsRepository');this['listenTo'](_0x136d97,'addComment',(_0x46a502,{threadId:_0x23dfb2})=>{const _0x299ed7=this['_suggestions']['get'](_0x23dfb2);_0x299ed7&&_0x299ed7['commentThread']&&0x1===_0x299ed7['commentThread']['length']&&this['_updateSuggestionData'](_0x23dfb2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x136d97,'removeComment',(_0x26f4d2,{threadId:_0x2008bb})=>{const _0x1088b4=this['_suggestions']['get'](_0x2008bb);_0x1088b4&&_0x1088b4['commentThread']&&!_0x1088b4['commentThread']['length']&&this['_updateSuggestionData'](_0x2008bb,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1e47a7){if(this['_adapter'])throw new _0xb8c959('track-changes-adapter-already-set',this);this['_adapter']=_0x1e47a7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b4c91=!0x1,toJSON:_0x353080=!0x1}={}){const _0x47543f=[];for(const _0x406408 of this['_suggestions']['values']())_0x4b4c91&&!_0x406408['isInContent']||_0x47543f['push'](_0x406408);return _0x353080?_0x47543f['map'](_0x57dbd6=>_0x57dbd6['toJSON']()):_0x47543f;}['getSuggestion'](_0x47739a){const _0x5a02fe=this['_suggestions']['get'](_0x47739a);if(!_0x5a02fe)throw new _0xb8c959('track-changes-suggestion-not-found',this);return _0x5a02fe;}['hasSuggestion'](_0x22cc1c){return this['_suggestions']['has'](_0x22cc1c);}['addSuggestionData'](_0x288a35){const {authorId:_0x4ae9ae,id:_0x31244b,attributes:_0x454872}=_0x288a35,[_0x240d9f,_0xd235f1]=_0x288a35['type']['split'](':'),_0x36972c=this['_suggestions']['get'](_0x31244b)||this['_createSuggestion'](_0x240d9f,_0xd235f1,_0x31244b,_0x4ae9ae,_0x454872);if(this['_addThreadToSuggestion'](_0x36972c),this['_checkSuggestionCorrectness'](_0x36972c,_0x240d9f,_0xd235f1||null,_0x4ae9ae),_0x36972c['createdAt']=_0x288a35['createdAt'],_0x36972c['_isDataLoaded']=!0x0,_0x454872&&_0x454872['@external']){const _0x48409c=_0x454872['@external'],_0x264e26=this['_getExternalAuthor'](_0x48409c['authorName']);_0x36972c['authoredAt']=_0x48409c['createdAt'],_0x36972c['author']=_0x264e26,_0x36972c['isExternal']=!0x0;}else _0x36972c['authoredAt']=_0x288a35['createdAt'];switch(_0x288a35['data']&&(_0x36972c['data']=_0x288a35['data']),_0x288a35['attributes']&&(_0x36972c['attributes']=_0x288a35['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x36972c['_saved']=!0x0),this['_suggestionState']['get'](_0x36972c)){case'notReady':this['_suggestionState']['set'](_0x36972c,'dataReady');break;case'markerReady':_0x36972c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x36972c])),this['_refreshSuggestionsChain'](new Set([_0x36972c])),this['_suggestionState']['set'](_0x36972c,'ready'),this['fire']('suggestionLoaded',_0x36972c)):this['_suggestionState']['set'](_0x36972c,'removed');}return _0x36972c;}['acceptSuggestion'](_0x381d80){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x19dcf5 of _0x381d80['getAllAdjacentSuggestions']())_0x19dcf5['accept']();});});}['discardSuggestion'](_0x4b9e6a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x138981 of _0x4b9e6a['getAllAdjacentSuggestions']())_0x138981['discard']();});});}['enableCommand'](_0x37e85a,_0x306924){const _0x17febd=this['editor']['commands']['get'](_0x37e85a);if(!_0x17febd)throw new _0xb8c959('track-changes-command-not-found',this,{'commandName':_0x37e85a});if(this['_enabledCommands']['has'](_0x17febd))throw new _0xb8c959('track-changes-enable-command-twice',this,{'commandName':_0x37e85a});this['_enabledCommands']['add'](_0x17febd),_0x306924&&_0x17febd['on']('execute',(_0x58d6e5,_0x5d7f81)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5d7f81['length']>0x0&&_0x5d7f81[_0x5d7f81['length']-0x1]&&_0x5d7f81[_0x5d7f81['length']-0x1]['forceDefaultExecution']?_0x5d7f81['pop']():(_0x58d6e5['return']=_0x306924((..._0x18ff27)=>_0x17febd['execute'](..._0x18ff27,{'forceDefaultExecution':!0x0}),..._0x5d7f81),_0x58d6e5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5ea26f){let _0x56541f,_0x3ff285;const _0x437242=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x56541f=_0x5ea26f();}catch(_0x46ccc0){_0x3ff285=_0x46ccc0;}return _0x437242||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3ff285&&_0xb8c959['rethrowUnexpectedError'](_0x3ff285,this),_0x56541f;}['markInsertion'](_0x4436cb,_0x24060b=null,_0x2c8099={}){if(_0x4436cb['isCollapsed'])return null;const _0x2bf144=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xb8f4a6,meta:_0x55e82b}of this['_findSuggestions'](_0x4436cb,'insertion'))if(_0x55e82b['isOwn']){if(!_0x55e82b['isNextTo']){if(_0x55e82b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0xb8f4a6,_0x2c8099))continue;return _0xb8f4a6;}if(Lt(_0xb8f4a6,_0x2c8099))return _0xb8f4a6;this['_breakSuggestionMarker'](_0xb8f4a6,_0x4436cb['start'],_0x4436cb['end']);break;}if(_0x24060b==_0xb8f4a6['subType']&&Lt(_0xb8f4a6,_0x2c8099)){const _0x362186=_0xb8f4a6['getFirstRange']();return _0x362186['start']['isEqual'](_0x4436cb['end'])?this['_setSuggestionRange'](_0xb8f4a6,this['_model']['createRange'](_0x4436cb['start'],_0x362186['end'])):this['_setSuggestionRange'](_0xb8f4a6,this['_model']['createRange'](_0x362186['start'],_0x4436cb['end'])),_0xb8f4a6;}}const _0x36dca3=_0x22411c(),_0x2f32b1=_0x2bf144['id'],_0x35aa6c=_0x24060b?'insertion:'+_0x24060b:'insertion',_0x13b299=this['_setSuggestionData']({'id':_0x36dca3,'type':_0x35aa6c,'createdAt':new Date(),'authorId':_0x2f32b1,'attributes':_0x2c8099});return this['_addSuggestionMarker'](_0x35aa6c,_0x36dca3,_0x2f32b1,_0x4436cb),_0x13b299;}['markMultiRangeInsertion'](_0x22e2f5,_0x134d54='multi',_0xe08da3={}){const _0x4c14ef=this['editor']['plugins']['get']('Users')['me'],_0x2c04da=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x134d54,'join');for(const _0x163e56 of this['getSuggestions']())if(_0x163e56['author']['id']==_0x4c14ef['id']&&'insertion'==_0x163e56['type']&&_0x163e56['subType']==_0x134d54&&Lt(_0x163e56,_0xe08da3)&&(_0x2c04da(_0x163e56['getRanges'](),_0x22e2f5)||_0x2c04da(_0x22e2f5,_0x163e56['getRanges']()))){for(const _0x192d07 of _0x22e2f5)_0x163e56['addRange'](_0x192d07);return _0x163e56;}for(const {suggestion:_0x39db46,meta:_0xa7dba6}of this['_findSuggestions'](_0x22e2f5,'insertion')){if(!_0xa7dba6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xa7dba6['containsRangeInObject'])continue;if(!Lt(_0x39db46,_0xe08da3))continue;let _0x6bb46e=!0x0;for(const _0x2319f9 of _0x39db46['getRanges']())for(const _0x4b0ac4 of _0x22e2f5)if(!_0x2319f9['containsRange'](_0x4b0ac4)){_0x6bb46e=!0x1;break;}if(_0x6bb46e)return _0x39db46;}const _0x3170dd=_0x22411c(),_0x37d685=_0x4c14ef['id'],_0x205864='insertion:'+_0x134d54,_0x6a37ce=this['_setSuggestionData']({'id':_0x3170dd,'type':_0x205864,'createdAt':new Date(),'authorId':_0x37d685,'attributes':_0xe08da3});for(const _0x532a14 of _0x22e2f5)this['_addSuggestionMarker'](_0x205864,_0x3170dd,_0x37d685,_0x532a14,u['getMultiRangeId']());return _0x6a37ce;}['markInlineFormat'](_0x4d478f,_0x239c1a,_0x2221bb=null,_0x5a08f3={}){if(_0x2221bb=_0x2221bb||Vt(_0x239c1a),_0x4d478f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x363b79=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2221bb,'accept');return this['forceDefaultExecution'](()=>_0x363b79([_0x4d478f],_0x239c1a,_0x5a08f3)),null;}const _0x5c30be=this['editor']['plugins']['get']('Users')['me'],_0x3c5cf3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x292c38,meta:_0x248f5d}of this['_findSuggestions'](_0x4d478f,'insertion'))_0x248f5d['isOwn']&&!_0x248f5d['isInsideObject']&&_0x3c5cf3['push'](..._0x292c38['getRanges']());}const _0x12195c=function(_0x3f37ba,_0x2ed56d){const _0x257171=[];for(const _0x414aa1 of _0x2ed56d){const _0x1d1d3b=_0x3f37ba['getIntersection'](_0x414aa1);_0x1d1d3b&&_0x257171['push'](_0x1d1d3b);}return _0x257171;}(_0x4d478f,_0x3c5cf3),_0x418418=function(_0x185676,_0x4253e8){const _0x2ab634=[_0x185676];for(const _0x184dfa of _0x4253e8){let _0x224c24=0x0;for(;_0x224c24<_0x2ab634['length'];){const _0x4e7092=_0x2ab634[_0x224c24]['getDifference'](_0x184dfa);_0x2ab634['splice'](_0x224c24,0x1,..._0x4e7092),_0x224c24+=_0x4e7092['length'];}}return _0x2ab634;}(_0x4d478f,_0x3c5cf3);_0x12195c['length']&&this['_model']['change'](()=>{for(const _0x1d6273 of _0x12195c){const _0x5344be=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2221bb,'accept');this['forceDefaultExecution'](()=>_0x5344be([_0x1d6273],_0x239c1a,_0x5a08f3));}});for(const _0xfd42d7 of _0x418418){let _0x3c77ff=null,_0x188168=_0xfd42d7['start'],_0x1eeeae=_0xfd42d7['end'];for(const {suggestion:_0xec0c5f,meta:_0x39bc2f}of this['_findSuggestions'](_0xfd42d7,'formatInline')){if(!_0x39bc2f['isOwn'])continue;if(_0xec0c5f['subType']!=_0x2221bb)continue;if(!Lt(_0xec0c5f,_0x5a08f3))continue;const _0x57aaa1=_0xec0c5f['getFirstRange']();if(_0x57aaa1['containsRange'](_0xfd42d7,!0x0))return null;_0x188168=_0x188168['isBefore'](_0x57aaa1['start'])?_0x188168:_0x57aaa1['start'],_0x1eeeae=_0x1eeeae['isAfter'](_0x57aaa1['end'])?_0x1eeeae:_0x57aaa1['end'],_0x3c77ff?_0x57aaa1['start']['isBefore'](_0x3c77ff['getFirstRange']()['start'])?(_0x3c77ff['removeMarkers'](),_0x3c77ff=_0xec0c5f):_0xec0c5f['removeMarkers']():_0x3c77ff=_0xec0c5f;}const _0x4aff2e=this['_model']['createRange'](_0x188168,_0x1eeeae);if(_0x3c77ff)this['_setSuggestionRange'](_0x3c77ff,_0x4aff2e);else{const _0x13890c=_0x22411c(),_0x44e63f=_0x5c30be['id'];this['_setSuggestionData']({'id':_0x13890c,'type':'formatInline:'+_0x2221bb,'data':_0x239c1a,'createdAt':new Date(),'authorId':_0x44e63f,'attributes':_0x5a08f3}),this['_addSuggestionMarker']('formatInline:'+_0x2221bb,_0x13890c,_0x44e63f,_0x4aff2e);}}return null;}['markBlockFormat'](_0x3b48e4,_0x455118,_0x1bb183=[],_0x51747e=null,_0x333baa={}){_0x455118['formatGroupId']||(_0x455118['formatGroupId']=_0x455118['commandName']),_0x455118['multipleBlocks']=_0x3b48e4['is']('range'),_0x51747e=_0x51747e||Vt(_0x455118);const _0x38db37=_0x1bb183['map'](_0x401357=>Gt(_0x401357,this['_model'])),_0x494dcb=_0x3b48e4['is']('range')?_0x3b48e4:Gt(_0x3b48e4,this['_model']);if('never'===this['_trackFormatChanges']){const _0xd0ee70=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51747e,'accept');return this['forceDefaultExecution'](()=>_0xd0ee70([_0x494dcb],_0x455118,_0x333baa)),null;}_0x38db37['push'](_0x494dcb);let _0x2153e2=!0x0;for(const _0x428cf4 of _0x38db37)if(!this['_rangeIsInLocalUserInsertion'](_0x428cf4)){_0x2153e2=!0x1;break;}if(_0x2153e2&&'always'!==this['_trackFormatChanges']){const _0x51bd06=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x51747e,'accept');return this['forceDefaultExecution'](()=>_0x51bd06([_0x494dcb],_0x455118,_0x333baa)),null;}let _0x30417c=null,_0x4b9687=_0x494dcb['start'],_0x15ae4a=_0x494dcb['end'];for(const {suggestion:_0x1c075b,meta:_0x43e272}of this['_findSuggestions'](_0x494dcb,'formatBlock')){if(!_0x43e272['isOwn'])continue;if(_0x43e272['isNextTo']||_0x43e272['containsRangeInObject']||_0x43e272['isInsideObject'])continue;if(_0x1c075b['data']['formatGroupId']!=_0x455118['formatGroupId'])continue;if(!Lt(_0x1c075b,_0x333baa))continue;const _0x32a8bd=_0x1c075b['getFirstRange']();if(_0x1c075b['subType']==_0x51747e){if(_0x32a8bd['containsRange'](_0x494dcb,!0x0))return null;_0x4b9687=_0x4b9687['isBefore'](_0x32a8bd['start'])?_0x4b9687:_0x32a8bd['start'],_0x15ae4a=_0x15ae4a['isAfter'](_0x32a8bd['end'])?_0x15ae4a:_0x32a8bd['end'],_0x30417c?_0x32a8bd['start']['isBefore'](_0x30417c['getFirstRange']()['start'])?(_0x30417c['removeMarkers'](),_0x30417c=_0x1c075b):_0x1c075b['removeMarkers']():_0x30417c=_0x1c075b;}else{const _0x3067d0=_0x494dcb['getIntersection'](_0x32a8bd);this['_cutOutSuggestionMarker'](_0x1c075b,_0x3067d0);}}const _0x1ac26b=this['editor']['plugins']['get']('Users')['me'],_0x56a5a9=_0x22411c(),_0x321ccb=_0x1ac26b['id'];if(_0x30417c)return this['_setSuggestionRange'](_0x30417c,this['_model']['createRange'](_0x4b9687,_0x15ae4a)),_0x30417c;{const _0x3dab63=this['_setSuggestionData']({'id':_0x56a5a9,'type':'formatBlock:'+_0x51747e,'data':_0x455118,'createdAt':new Date(),'authorId':_0x321ccb,'attributes':_0x333baa});return this['_addSuggestionMarker']('formatBlock:'+_0x51747e,_0x56a5a9,_0x321ccb,this['_model']['createRange'](_0x4b9687,_0x15ae4a)),_0x3dab63;}}['markMultiRangeBlockFormat'](_0x43c0a8,_0x18bbe2,_0x4e6046=[],_0x2c491c=null,_0x2c122d={}){_0x18bbe2['formatGroupId']||(_0x18bbe2['formatGroupId']=_0x18bbe2['commandName']);const _0x1f3198=_0x43c0a8[0x0];_0x18bbe2['multipleBlocks']=_0x1f3198['is']('range'),_0x2c491c=_0x2c491c||Vt(_0x18bbe2);const _0x2a80a8=_0x4e6046['map'](_0x4da4d9=>Gt(_0x4da4d9,this['_model'])),_0x455638=_0x1f3198['is']('range')?_0x43c0a8:_0x43c0a8['map'](_0x38d0f9=>Gt(_0x38d0f9,this['_model']));if('never'===this['_trackFormatChanges']){const _0x16a9e6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c491c,'accept');return this['forceDefaultExecution'](()=>_0x16a9e6(_0x455638,_0x18bbe2,_0x2c122d)),null;}_0x2a80a8['push'](..._0x455638);let _0x22ce62=!0x0;for(const _0x3ab2c4 of _0x2a80a8)if(!this['_rangeIsInLocalUserInsertion'](_0x3ab2c4)){_0x22ce62=!0x1;break;}if(_0x22ce62&&'always'!==this['_trackFormatChanges']){const _0x4914b7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c491c,'accept');return this['forceDefaultExecution'](()=>_0x4914b7(_0x455638,_0x18bbe2,_0x2c122d)),null;}const _0xcdca3a=this['editor']['plugins']['get']('Users')['me'];for(const _0x11ee78 of this['getSuggestions']()){if(_0x11ee78['author']['id']!=_0xcdca3a['id'])continue;if('formatBlock'!=_0x11ee78['type']||_0x11ee78['data']['formatGroupId']!=_0x18bbe2['formatGroupId'])continue;if(!Lt(_0x11ee78,_0x2c122d))continue;const _0x17947c=_0x11ee78['subType']==_0x2c491c;for(let _0x410673=0x0;_0x410673<_0x455638['length'];_0x410673++){const _0x5885df=_0x455638[_0x410673];for(const _0x4e53c3 of _0x11ee78['getMarkers']()){const _0x4f5d2e=_0x4e53c3['getRange']();if(_0x5885df['isEqual'](_0x4f5d2e)){_0x17947c?(_0x455638['splice'](_0x410673,0x1),_0x410673--):_0x11ee78['removeMarker'](_0x4e53c3['name']);break;}}}}if(0x0==_0x455638['length'])return null;const _0x45e225=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c491c,'join');for(const _0x108a23 of this['getSuggestions']())if(_0x108a23['author']['id']==_0xcdca3a['id']&&'formatBlock'==_0x108a23['type']&&_0x108a23['data']['formatGroupId']==_0x18bbe2['formatGroupId']&&_0x108a23['subType']==_0x2c491c&&Lt(_0x108a23,_0x2c122d)&&(_0x45e225(_0x108a23['getRanges'](),_0x455638)||_0x45e225(_0x455638,_0x108a23['getRanges']()))){for(const _0x11bdc0 of _0x455638)_0x108a23['addRange'](_0x11bdc0);return _0x108a23;}const _0x1fcdc3=_0x22411c(),_0x22850c=_0xcdca3a['id'],_0x4fc934='formatBlock:'+_0x2c491c,_0x3e829f=this['_setSuggestionData']({'id':_0x1fcdc3,'type':_0x4fc934,'data':_0x18bbe2,'createdAt':new Date(),'authorId':_0x22850c,'attributes':_0x2c122d});for(const _0x5b4023 of _0x455638)this['_addSuggestionMarker'](_0x4fc934,_0x1fcdc3,_0x22850c,_0x5b4023,u['getMultiRangeId']());return _0x3e829f;}['markDeletion'](_0x395234,_0x671997=null,_0x557443={}){if(_0x395234['isCollapsed'])return null;const _0x1be717=this['editor']['plugins']['get']('Users')['me'],_0x2cbba8=new _0x24837b(_0x395234['start'],_0x395234['end']);for(const {suggestion:_0x4fd242,meta:_0x23552d}of this['_findSuggestions'](_0x2cbba8,'insertion'))if(_0x23552d['isOwn']&&!_0x23552d['isNextTo']){if(_0x4fd242['isMultiRange']){const _0x11429e=_0x4fd242['getRanges']()['filter'](_0x33090f=>'$graveyard'!=_0x33090f['root']['rootName']);_0x11429e['every'](_0x39c4de=>_0x2cbba8['containsRange'](_0x39c4de,!0x0))&&_0x4fd242['discard']();if(_0x11429e['some'](_0xff167c=>_0xff167c['containsRange'](_0x2cbba8,!0x0))){const _0x4c7bdc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x671997,'accept');return this['forceDefaultExecution'](()=>_0x4c7bdc([_0x2cbba8],null,_0x557443)),null;}}else{const _0x176c1b=_0x2cbba8['getIntersection'](_0x4fd242['getFirstRange']());null!==_0x176c1b&&_0x4fd242['_onDiscard']([_0x176c1b],null,_0x557443);}}if(_0x2cbba8['detach'](),_0x2cbba8['isCollapsed']||'$graveyard'==_0x2cbba8['root']['rootName'])return null;let _0x21ab19=null,_0x5dc10a=_0x2cbba8['start'],_0x4939cf=_0x2cbba8['end'];const _0xf87fb9=this['_findSuggestions'](_0x2cbba8,'deletion');for(const {suggestion:_0x28b1b6,meta:_0x252556}of _0xf87fb9){const _0x3e0873=this['_model']['createRange'](_0x5dc10a,_0x4939cf);if(_0x252556['isOwn']&&(this['_mergeNestedSuggestions']||!_0x252556['containsRangeInObject']&&!_0x252556['isInsideObject'])){if(_0x28b1b6['isMultiRange']){if(!Lt(_0x28b1b6,_0x557443))continue;let _0x2fbbb1=!0x0;for(const _0x4f8df2 of _0x28b1b6['getRanges']()){if(_0x4f8df2['containsRange'](_0x3e0873,!0x0))return _0x28b1b6;_0x3e0873['containsRange'](_0x4f8df2)||(_0x2fbbb1=!0x1);}_0x2fbbb1&&_0x28b1b6['discard']();}else{const _0x5c9acf=_0x28b1b6['getFirstRange']();if(_0x5c9acf['containsRange'](_0x3e0873,!0x0))return _0x28b1b6;if(!Lt(_0x28b1b6,_0x557443)){_0x3e0873['containsRange'](_0x5c9acf)?_0x28b1b6['removeMarkers']():_0x5c9acf['containsPosition'](_0x5dc10a)?_0x5dc10a=_0x5c9acf['end']:_0x5c9acf['containsPosition'](_0x4939cf)&&(_0x4939cf=_0x5c9acf['start']);continue;}_0x5dc10a=_0x5dc10a['isBefore'](_0x5c9acf['start'])?_0x5dc10a:_0x5c9acf['start'],_0x4939cf=_0x4939cf['isAfter'](_0x5c9acf['end'])?_0x4939cf:_0x5c9acf['end'],_0x557443=Object['assign']({},_0x28b1b6['attributes']),_0x21ab19?_0x5c9acf['start']['isBefore'](_0x21ab19['getFirstRange']()['start'])?(_0x21ab19['removeMarkers'](),_0x21ab19=_0x28b1b6):_0x28b1b6['removeMarkers']():_0x21ab19=_0x28b1b6;}}}if(_0x21ab19)return this['_setSuggestionRange'](_0x21ab19,this['_model']['createRange'](_0x5dc10a,_0x4939cf)),_0x21ab19;{const _0xaa7f6e=_0x22411c(),_0x4c746c=this['_model']['createRange'](_0x5dc10a,_0x4939cf),_0x51c1a9=_0x1be717['id'],_0xf58561=_0x671997?'deletion:'+_0x671997:'deletion',_0x149ae9=this['_setSuggestionData']({'id':_0xaa7f6e,'type':_0xf58561,'createdAt':new Date(),'authorId':_0x51c1a9,'attributes':_0x557443});return this['_addSuggestionMarker'](_0xf58561,_0xaa7f6e,_0x51c1a9,_0x4c746c),_0x149ae9;}}['markMultiRangeDeletion'](_0x52cf17,_0x4fa783='multi',_0x299089={}){const _0x30f02c=this['editor']['plugins']['get']('Users')['me'],_0x3072f9=_0x52cf17['map'](_0x4b9837=>new _0x24837b(_0x4b9837['start'],_0x4b9837['end'])),_0x3f3c44=new Set();for(const {suggestion:_0x55734d,meta:_0x1dfdfe}of this['_findSuggestions'](_0x3072f9,'insertion'))_0x1dfdfe['isOwn']&&!_0x1dfdfe['isNextTo']&&_0x3f3c44['add'](_0x55734d);for(const _0x22bf94 of _0x3f3c44)if(_0x22bf94['isMultiRange']){const _0x3e244a=_0x22bf94['getRanges']();(!_0x22bf94['attributes']||!_0x22bf94['attributes']['skipNestingCheck'])&&(_0x3e244a['every'](_0x4dcef3=>_0x3072f9['some'](_0x461527=>_0x461527['containsRange'](_0x4dcef3,!0x0)))&&_0x22bf94['discard']());if(_0x3072f9['every'](_0x297a45=>_0x3e244a['some'](_0x7c03ad=>_0x7c03ad['containsRange'](_0x297a45,!0x0)))){const _0x26fe49=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fa783,'accept');return this['forceDefaultExecution'](()=>_0x26fe49(_0x52cf17,null,_0x299089)),null;}}else{const _0x14bc41=_0x22bf94['getFirstRange']();_0x3072f9['some'](_0x23ebe6=>_0x23ebe6['containsRange'](_0x14bc41,!0x0))&&_0x22bf94['discard']();if(_0x3072f9['every'](_0x257f95=>_0x14bc41['containsRange'](_0x257f95,!0x0))){const _0x1a57a8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fa783,'accept');return this['forceDefaultExecution'](()=>_0x1a57a8(_0x3072f9,null,_0x299089)),null;}}const _0x5d03fe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fa783,'join');let _0xec5233=null;for(const _0x5ea9ed of this['getSuggestions']())if(_0x5ea9ed['author']['id']==_0x30f02c['id']&&_0x5ea9ed['isInContent']&&'deletion'==_0x5ea9ed['type']&&_0x5ea9ed['subType']==_0x4fa783&&Lt(_0x5ea9ed,_0x299089)&&(_0x5d03fe(_0x5ea9ed['getRanges'](),_0x3072f9)||_0x5d03fe(_0x3072f9,_0x5ea9ed['getRanges']()))){if(_0xec5233){if(_0x5ea9ed['commentThread']&&_0x5ea9ed['commentThread']['length'])continue;for(const _0x11b3b9 of _0x5ea9ed['getRanges']())_0xec5233['isIntersectingWithRange'](_0x11b3b9)||_0xec5233['addRange'](_0x11b3b9);_0x5ea9ed['removeMarkers']();}else{_0xec5233=_0x5ea9ed;for(const _0x2131c9 of _0x3072f9)_0x5ea9ed['isIntersectingWithRange'](_0x2131c9)||_0x5ea9ed['addRange'](_0x2131c9);}}if(_0xec5233)return _0xec5233;_0x3f3c44['clear']();for(const {suggestion:_0xc502f2,meta:_0x4687aa}of this['_findSuggestions'](_0x3072f9,'deletion'))_0x4687aa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4687aa['containsRangeInObject']&&!_0x4687aa['isInsideObject'])&&Lt(_0xc502f2,_0x299089)&&_0x3f3c44['add'](_0xc502f2);for(const _0x4d2038 of _0x3f3c44){const _0x5bad54=_0x4d2038['getRanges']();if(!_0x299089||!_0x299089['skipNestingCheck']){if(_0x3072f9['every'](_0x22ffcb=>_0x5bad54['some'](_0x1c0c74=>_0x1c0c74['containsRange'](_0x22ffcb,!0x0))))return _0x4d2038;}(!_0x4d2038['attributes']||!_0x4d2038['attributes']['skipNestingCheck'])&&(_0x5bad54['every'](_0x3e14a0=>_0x3072f9['some'](_0x147413=>_0x147413['containsRange'](_0x3e14a0,!0x0)))&&_0x4d2038['discard']());}const _0x4d9684=_0x22411c(),_0x4ee716=_0x30f02c['id'],_0x2fa149='deletion:'+_0x4fa783,_0x5105bf=this['_setSuggestionData']({'id':_0x4d9684,'type':_0x2fa149,'createdAt':new Date(),'authorId':_0x4ee716,'attributes':_0x299089});for(const _0x160124 of _0x3072f9)_0x160124['detach'](),_0x160124['isCollapsed']||'$graveyard'==_0x160124['root']['rootName']||this['_addSuggestionMarker'](_0x2fa149,_0x4d9684,_0x4ee716,_0x160124,u['getMultiRangeId']());return _0x5105bf;}['markAttributeChange'](_0x2cec90,_0x3c5cc7,_0x2d998d,_0x334aa7,_0xa3400){if(_0x2cec90['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2af519=this['editor']['plugins']['get']('Users')['me']['id'],_0x124865=Array['from'](this['_suggestions']['values']())['filter'](_0x5c2d05=>'attribute'==_0x5c2d05['type']&&_0x5c2d05['data']['key']==_0x3c5cc7&&_0x5c2d05['isIntersectingWithRange'](_0x2cec90));if('default'===this['_trackFormatChanges']){const _0x51033e=this['_findSuggestions'](_0x2cec90,'insertion')['filter'](({meta:_0x4165e1})=>_0x4165e1['isOwn']&&!_0x4165e1['isInsideObject']&&!_0x4165e1['isNextTo'])['map'](({suggestion:_0x1c2788})=>_0x1c2788);_0x124865['unshift'](..._0x51033e);}const _0x555d36=new Map([[_0x2cec90,_0x2d998d]]);for(const _0x3cc895 of _0x124865){const _0x3437fe='attribute'==_0x3cc895['type']?_0x3cc895['data']['oldValue']:void 0x0,_0x7225a4=_0x3cc895['getFirstRange'](),_0x2e085e=Array['from'](_0x555d36['keys']())['find'](_0x229591=>_0x229591['isIntersecting'](_0x7225a4));if(!_0x2e085e)continue;const _0x3e233e=_0x2e085e['getDifference'](_0x7225a4);this['_isBlockAttribute'](_0x3c5cc7)&&'insertion'==_0x3cc895['type']&&0x0!=_0x3e233e['length']||(_0x555d36['delete'](_0x2e085e),_0x3e233e['forEach'](_0x1fded1=>{_0x555d36['set'](_0x1fded1,_0x2d998d);}),'insertion'!=_0x3cc895['type']&&_0x3437fe!=_0x334aa7&&_0x555d36['set'](_0x2e085e['getIntersection'](_0x7225a4),_0x3437fe));}const _0xf6eda5=[];for(const [_0x24e829,_0x4e3f9e]of _0x555d36){const _0x2400c6=_0x22411c(),_0x34f726={'key':_0x3c5cc7,'oldValue':_0x4e3f9e,'newValue':_0x334aa7};_0x3c5cc7['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':_0x3c5cc7});const _0x10d1f7=('attribute:'+(_0x3c5cc7+'|'+Vt({'newValue':_0x334aa7})))['substring'](0x0,0x3c),_0x1c71bb=this['_setSuggestionData']({'id':_0x2400c6,'type':_0x10d1f7,'data':_0x34f726,'createdAt':new Date(),'authorId':_0x2af519,'attributes':_0xa3400});_0xf6eda5['push'](_0x1c71bb),this['_addSuggestionMarker'](_0x10d1f7,_0x2400c6,_0x2af519,_0x24e829);}return _0xf6eda5;}['enableDefaultAttributesIntegration'](_0x243cc9){this['enableCommand'](_0x243cc9,(_0xf43317,..._0x3959be)=>{this['_recordAttributeChanges'](()=>{_0xf43317(..._0x3959be);});});}['registerBlockAttribute'](_0x49f397){this['_blockAttributeKeys']['add'](_0x49f397);}['registerInlineAttribute'](_0x19de9b){this['_inlineAttributeKeys']['add'](_0x19de9b);}['_getAttributeKey'](_0xa91e0d){return'attribute'==_0xa91e0d['type']?_0xa91e0d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4ad5e9,_0x1ac345){const _0x1726e8=_0x4ad5e9['getFirstMarker']();this['_model']['change'](_0x5f3b55=>{_0x5f3b55['updateMarker'](_0x1726e8,{'range':_0x1ac345});});}['_addThreadToSuggestion'](_0xc1b1bc){const _0x179e33=_0xc1b1bc['id'],_0x4f6cfe=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x179e33)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4f6cfe,'threadId':_0x179e33,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2abeee=this['_commentsRepository']['getCommentThread'](_0x179e33);_0x2abeee['unbind']('isRemovable'),_0x2abeee['isRemovable']=!0x1,_0xc1b1bc['commentThread']=_0x2abeee;}['_checkSuggestionCorrectness'](_0x54b784,_0x656154,_0x28758e,_0x1a12c3){if(_0x54b784['type']!=_0x656154||_0x54b784['subType']!=_0x28758e||_0x54b784['creator']['id']!=_0x1a12c3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xb8c959('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x6a3954,_0xe14ea){const _0x3bd7a9=_0x6a3954['getFirstRange']();if(_0xe14ea['isEqual'](_0x3bd7a9))_0x6a3954['removeMarkers']();else{if(_0x3bd7a9['containsRange'](_0xe14ea)){const _0x3a2622=this['_model']['createPositionAt'](_0xe14ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x6a3954,this['_model']['createRange'](_0x3bd7a9['start'],_0x3a2622));const _0x205b54=_0x22411c(),_0x1e4946=_0x6a3954['creator']['id'],_0x37bfb2=_0x6a3954['type']+':'+_0x6a3954['subType'];this['_setSuggestionData']({'id':_0x205b54,'type':_0x37bfb2,'createdAt':new Date(),'authorId':_0x1e4946,'data':_0x6a3954['data'],'attributes':_0x6a3954['attributes']});const _0x4d9688=this['_model']['createPositionAt'](_0xe14ea['end']['parent'],'after'),_0x5795d2=this['_model']['createRange'](_0x4d9688,_0x3bd7a9['end']);this['_addSuggestionMarker'](_0x37bfb2,_0x205b54,_0x1e4946,_0x5795d2);}else{if(_0x3bd7a9['containsPosition'](_0xe14ea['start'])){const _0x46b04d=this['_model']['createPositionAt'](_0xe14ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x6a3954,this['_model']['createRange'](_0x3bd7a9['start'],_0x46b04d));}else{const _0x22c75c=this['_model']['createPositionAt'](_0xe14ea['end']['parent'],'after');this['_setSuggestionRange'](_0x6a3954,this['_model']['createRange'](_0x22c75c,_0x3bd7a9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x489a30){for(const {suggestion:_0xe58524,meta:_0x1ecf09}of this['_findSuggestions'](_0x489a30,'insertion')){if(!_0x1ecf09['isOwn'])continue;const _0x26a7f5=_0xe58524['getRanges']();for(const _0x3febaf of _0x26a7f5)if(!_0x489a30['getDifference'](_0x3febaf)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xddb619){const _0x4707e3=this['editor']['plugins']['get']('Users')['getUser'](_0xddb619);if(!_0x4707e3)throw new _0xb8c959('track-changes-user-not-found',this);return _0x4707e3;}['_getExternalAuthor'](_0x3817c1){const _0x59f343=this['editor']['plugins']['get']('Users'),_0x4447a8=_0x33246c('external:'+_0x3817c1),_0x5985d1=_0x59f343['getUser'](_0x4447a8);return _0x5985d1||_0x59f343['addUser']({'id':_0x4447a8,'name':_0x3817c1});}['_createSuggestion'](_0x30c56f,_0x3cb5ab,_0x205ba4,_0x31f7b6,_0x21b55d){const _0x392c4f=this['_getAuthorFromId'](_0x31f7b6),_0x2d9c89=this['_suggestionFactory']['buildSuggestion'](_0x30c56f,_0x3cb5ab,_0x205ba4,_0x392c4f,_0x21b55d,_0x233251=>{this['_updateSuggestionData'](_0x205ba4,{'attributes':_0x233251});const _0x296e7f=this['getSuggestion'](_0x205ba4);this['_joinWithAdjacentSuggestions'](new Set([_0x296e7f])),this['_refreshSuggestionsChain'](new Set([_0x296e7f]));});return this['listenTo'](_0x2d9c89,'accept',()=>{this['_updateSuggestionData'](_0x205ba4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2d9c89,'discard',()=>{this['_updateSuggestionData'](_0x205ba4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x205ba4,_0x2d9c89),this['_suggestionState']['set'](_0x2d9c89,'notReady'),_0x2d9c89;}['_splitMarkerName'](_0xc1e9){const _0x101ba8=_0xc1e9['split'](':');return{'group':_0x101ba8[0x0],'type':_0x101ba8[0x1],'subType':_0x101ba8['length']>=0x5?_0x101ba8[0x2]:null,'id':_0x101ba8['length']<0x5?_0x101ba8[0x2]:_0x101ba8[0x3],'authorId':_0x101ba8['length']<0x5?_0x101ba8[0x3]:_0x101ba8[0x4],'markerCount':0x6==_0x101ba8['length']?_0x101ba8[0x5]:null};}['_breakSuggestionMarker'](_0xd17772,_0x2c21ed,_0xb3ae55){const _0x614706=_0xd17772['getFirstRange'](),_0x121e03=_0x614706['start'],_0x129550=_0x614706['end'];this['_setSuggestionRange'](_0xd17772,this['_model']['createRange'](_0x121e03,_0x2c21ed));const _0x142ee2=_0x22411c(),_0x1d5026=_0xd17772['creator']['id'],_0x28e1ff=_0xd17772['type']+(_0xd17772['subType']?':'+_0xd17772['subType']:'');this['_setSuggestionData']({'id':_0x142ee2,'type':_0x28e1ff,'createdAt':new Date(),'authorId':_0x1d5026,'originalSuggestionId':_0xd17772['id'],'attributes':_0xd17772['attributes'],'data':_0xd17772['data']});const _0xe96ff4=this['_getAttributeKey'](_0xd17772);('formatBlock'==_0xd17772['type']||_0xe96ff4&&this['_isBlockAttribute'](_0xe96ff4))&&(_0xb3ae55=this['_model']['createPositionBefore'](_0xb3ae55['parent'])),this['_addSuggestionMarker'](_0x28e1ff,_0x142ee2,_0x1d5026,this['_model']['createRange'](_0xb3ae55,_0x129550));}['_findSuggestions'](_0x402316,_0x17444d=null){const _0x1a6986=[],_0x14a01e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x402316)||(_0x402316=[_0x402316]);for(const _0x3cdd61 of this['getSuggestions']()){if(!_0x3cdd61['isInContent'])continue;if(_0x17444d&&_0x3cdd61['type']!=_0x17444d)continue;let _0x7217f3=!0x1;for(const _0x904d90 of _0x3cdd61['getRanges']()){for(const _0x2c6440 of _0x402316){const _0x2902af=_0x2c6440['start']['isEqual'](_0x904d90['end'])||_0x2c6440['end']['isEqual'](_0x904d90['start']);if(_0x2902af||_0x2c6440['getIntersection'](_0x904d90)){const _0x307766=_0x2c6440['containsRange'](_0x904d90)&&Rt(this['_model']['schema'],_0x904d90['start'],_0x2c6440),_0x4894c0=_0x904d90['containsRange'](_0x2c6440)&&Rt(this['_model']['schema'],_0x2c6440['start'],_0x904d90);_0x1a6986['push']({'suggestion':_0x3cdd61,'meta':{'isOwn':_0x14a01e==_0x3cdd61['author'],'isNextTo':_0x2902af,'isInsideObject':_0x307766,'containsRangeInObject':_0x4894c0}}),_0x7217f3=!0x0;break;}}if(_0x7217f3)break;}}return _0x1a6986;}['_addSuggestionMarker'](_0xd9a416,_0x5c45c2,_0x487dfa,_0x22d940,_0x41be08){this['_model']['change'](_0x28d479=>{let _0x157eda='suggestion:'+_0xd9a416+':'+_0x5c45c2+':'+_0x487dfa;_0x41be08&&(_0x157eda=_0x157eda+':'+_0x41be08),_0x28d479['addMarker'](_0x157eda,{'range':_0x22d940,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x23d7a9){const _0x45ee3f=_0x23d7a9['previous'],_0x2a666b=_0x23d7a9['next'];_0x23d7a9['previous']=null,_0x23d7a9['next']=null,null!=_0x45ee3f&&_0x45ee3f['next']==_0x23d7a9&&(_0x45ee3f['next']=_0x2a666b),null!=_0x2a666b&&_0x2a666b['previous']==_0x23d7a9&&(_0x2a666b['previous']=_0x45ee3f),'ready'==this['_suggestionState']['get'](_0x23d7a9)&&(this['_suggestionState']['set'](_0x23d7a9,'removed'),this['fire']('suggestionUnloaded',_0x23d7a9,_0x45ee3f,_0x2a666b));}['_setSuggestionData'](_0x724e5d){const _0x7ee4e8=_0x724e5d['id'],_0x239dc7=this['addSuggestionData'](_0x724e5d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x27d1dd=this['editor']['plugins']['get']('PendingActions'),_0x46e8c4=_0x239dc7['hasComments'],_0x379207=_0x239dc7['subType']?_0x239dc7['type']+':'+_0x239dc7['subType']:_0x239dc7['type'],_0x9c1ebf=this['editor']['locale'],_0x3d2d1b=_0x27d1dd['add'](o(_0x9c1ebf,'PENDING_ACTION_SUGGESTION')),_0x17ddca={'id':_0x7ee4e8,'type':_0x379207,'hasComments':_0x46e8c4,'data':_0x724e5d['data']||null,'originalSuggestionId':_0x724e5d['originalSuggestionId']||null,'attributes':_0x239dc7['attributes']};this['_adapter']['addSuggestion'](_0x17ddca)['then'](_0x367286=>{_0x239dc7['_saved']=!0x0,_0x27d1dd['remove'](_0x3d2d1b),_0x367286&&_0x367286['createdAt']&&(this['_suggestions']['get'](_0x7ee4e8)['createdAt']=_0x367286['createdAt']);})['catch'](_0x2350f8=>{throw _0x2409cd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x239dc7['discard']();}),_0x239dc7['stopListening'](),this['_suggestions']['delete'](_0x239dc7['id']),this['_suggestionState']['delete'](_0x239dc7),_0x2350f8;});}return _0x239dc7;}['_isBlockAttribute'](_0x1a414d){return this['_blockAttributeKeys']['has'](_0x1a414d);}['_updateSuggestionData'](_0x15226a,_0x4880c5){const _0x29995d=this['editor']['plugins']['get']('PendingActions'),_0x406eea=this['getSuggestion'](_0x15226a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x406eea['_saved']){const _0x6d805c=_0x29995d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x15226a,_0x4880c5)['then'](()=>{_0x29995d['remove'](_0x6d805c);});}else _0x406eea['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x15226a,_0x4880c5);});}}['_getSuggestionData'](_0x3f8d45){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xb8c959('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3f8d45);}['_handleNewSuggestionMarker'](_0x44d8fb){const {id:_0x49582c,type:_0x31d11d,subType:_0x4d74ed,authorId:_0x5e7dad}=this['_splitMarkerName'](_0x44d8fb),_0x3ee80a=this['_suggestions']['get'](_0x49582c)||this['_createSuggestion'](_0x31d11d,_0x4d74ed,_0x49582c,_0x5e7dad,{});switch(this['_checkSuggestionCorrectness'](_0x3ee80a,_0x31d11d,_0x4d74ed,_0x5e7dad),this['_suggestionState']['get'](_0x3ee80a)){case'notReady':this['_getSuggestionData'](_0x49582c)['then'](_0x219dad=>{let _0x2e39ab=Promise['resolve']();_0x219dad['hasComments']&&(_0x2e39ab=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x49582c})),_0x2e39ab['then'](()=>{this['addSuggestionData'](_0x219dad)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3ee80a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x49582c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3ee80a,'ready'),this['fire']('suggestionLoaded',_0x3ee80a);break;case'ready':this['fire']('suggestionChanged',_0x3ee80a);}return _0x3ee80a['addMarkerName'](_0x44d8fb),_0x3ee80a;}['_refreshSuggestionsChain'](_0x4774bb){const _0x2d2ecc=Array['from'](_0x4774bb),_0x127013=_0x2d2ecc['filter'](_0x41e0d6=>'attribute'==_0x41e0d6['type']);this['_refreshAttributeSuggestionsChain'](_0x127013);const _0xbf9dc3=_0x2d2ecc['filter'](_0x20a875=>!_0x20a875['isMultiRange']&&'attribute'!=_0x20a875['type']),_0x1e1592=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e8e89=>!_0x4e8e89['isMultiRange']&&'attribute'!=_0x4e8e89['type']),_0x3719c9=_0x1e1592['filter'](_0x1d3412=>!_0x4774bb['has'](_0x1d3412)),_0x2f866b=new Map(_0x1e1592['map'](_0x4f94ce=>[_0x4f94ce,this['_suggestionFactory']['getSuggestionCallback'](_0x4f94ce['type'],_0x4f94ce['subType'],'chain')])),_0x38d865=new Map(_0x1e1592['map'](_0x1dff9e=>[_0x1dff9e,_0x1dff9e['getFirstRange']()])),_0x1aea19=new Set(),_0x59e980=new Set();for(let _0x17c675=0x0;_0x17c675<_0xbf9dc3['length'];_0x17c675++)_0x5ee400(_0xbf9dc3[_0x17c675],_0xbf9dc3,_0x17c675+0x1);for(let _0x488860=0x0;_0x488860<_0xbf9dc3['length'];_0x488860++)_0x5ee400(_0xbf9dc3[_0x488860],_0x3719c9,0x0);const _0x488caa=new Set();for(let _0x47b7c6=0x0;_0x47b7c6<_0xbf9dc3['length'];_0x47b7c6++){const _0x300ed7=_0xbf9dc3[_0x47b7c6];!_0x59e980['has'](_0x300ed7)&&_0x300ed7['previous']&&(_0x488caa['add'](_0x300ed7['previous']),_0x300ed7['previous']['next']===_0x300ed7&&(_0x300ed7['previous']['next']=null),_0x300ed7['previous']=null),!_0x1aea19['has'](_0x300ed7)&&_0x300ed7['next']&&(_0x488caa['add'](_0x300ed7['next']),_0x300ed7['next']['previous']===_0x300ed7&&(_0x300ed7['next']['previous']=null),_0x300ed7['next']=null);}function _0x5ee400(_0x1d916f,_0x5f479d,_0x6a8b11){for(let _0xa1972a=_0x6a8b11;_0xa1972a<_0x5f479d['length'];_0xa1972a++){const _0x2f6a53=_0xc33c76(_0x1d916f,_0x5f479d[_0xa1972a]);_0x2f6a53&&(_0x2f6a53[0x0]['next']=_0x2f6a53[0x1],_0x2f6a53[0x1]['previous']=_0x2f6a53[0x0],_0x1aea19['add'](_0x2f6a53[0x0]),_0x59e980['add'](_0x2f6a53[0x1]));}}function _0xc33c76(_0x1062ff,_0x53e3c0){if(_0x1062ff['author']['id']!==_0x53e3c0['author']['id'])return null;const _0x43b70b=_0x2f866b['get'](_0x1062ff)(_0x1062ff,_0x53e3c0,_0x38d865['get'](_0x1062ff),_0x38d865['get'](_0x53e3c0));if(!_0x43b70b)return null;return _0x2f866b['get'](_0x53e3c0)(_0x1062ff,_0x53e3c0,_0x38d865['get'](_0x1062ff),_0x38d865['get'](_0x53e3c0))?_0x43b70b[0x1]['commentThread']&&_0x43b70b[0x1]['commentThread']['length']?null:_0x43b70b:null;}_0x488caa['size']&&this['_refreshSuggestionsChain'](_0x488caa);}['_refreshAttributeSuggestionsChain'](_0x3686c7){if(0x0==_0x3686c7['length'])return;const _0x17dda1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x466242=>'attribute'==_0x466242['type']&&_0x466242['_isDataLoaded']),_0x532acc=[],_0x2c5437=new Map();for(const _0x4dd1b0 of _0x17dda1){const _0x3226a3=_0x33246c(_0x4dd1b0['attributes']);_0x2c5437['has'](_0x3226a3)||(_0x2c5437['set'](_0x3226a3,_0x532acc['length']),_0x532acc['push']([]));const _0x211a72=_0x2c5437['get'](_0x3226a3);_0x532acc[_0x211a72]['push'](_0x4dd1b0);}!(function(){_0x532acc['sort']((_0x4e89ad,_0x3f8e0f)=>{const _0x23ce36=_0x4e89ad[0x0]['createdAt'],_0x4f85a3=_0x3f8e0f[0x0]['createdAt'];return _0x23ce36==_0x4f85a3?_0x4e89ad[0x0]['attributes']['groupId']<_0x3f8e0f[0x0]['attributes']['groupId']?-0x1:0x1:_0x23ce36<_0x4f85a3?-0x1:0x1;});for(const _0x1fc141 of _0x532acc)_0x1fc141['sort']((_0x3fa248,_0x5a55a6)=>_0x3fa248['id']<_0x5a55a6['id']?-0x1:0x1);}());for(let _0x55c89c=0x0;_0x55c89c<_0x532acc['length'];_0x55c89c++){if(0x0==_0x532acc[_0x55c89c]['length'])continue;const _0x3d2421=[];for(let _0x36a2c7=_0x55c89c+0x1;_0x36a2c7<_0x532acc['length'];_0x36a2c7++)0x0!=_0x532acc[_0x36a2c7]['length']&&_0x3a05e2(_0x532acc[_0x55c89c],_0x532acc[_0x36a2c7])&&_0x3d2421['push'](_0x36a2c7);for(const _0x5485f2 of _0x3d2421)_0x532acc[_0x55c89c]=_0x532acc[_0x55c89c]['concat'](_0x532acc[_0x5485f2]),_0x532acc[_0x5485f2]=[];}for(const _0x2cc49f of _0x532acc)for(let _0x2a32c7=0x0;_0x2a32c7<_0x2cc49f['length'];_0x2a32c7++)_0x2cc49f[_0x2a32c7]['next']=_0x2cc49f[_0x2a32c7+0x1]||null;for(const _0x52170c of _0x532acc)for(let _0x20e4e2=0x0;_0x20e4e2<_0x52170c['length'];_0x20e4e2++)_0x52170c[_0x20e4e2]['previous']=_0x52170c[_0x20e4e2-0x1]||null;function _0x3a05e2(_0x427b81,_0x23c84a){if(_0x427b81[0x0]['attributes']['groupId']!==_0x23c84a[0x0]['attributes']['groupId']&&_0x427b81[0x0]['author']!==_0x23c84a[0x0]['author'])return!0x1;if(!function(_0x4a081d,_0x5cf4d7){if(!_0x4a081d['hasComments']&&!_0x5cf4d7['hasComments'])return!0x0;if(_0x4a081d['hasComments']&&_0x5cf4d7['hasComments'])return!0x1;if(_0x4a081d['hasComments']&&_0x5cf4d7['createdAt']<_0x4a081d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5cf4d7['hasComments']&&_0x4a081d['createdAt']<_0x5cf4d7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x427b81[0x0],_0x23c84a[0x0]))return!0x1;const _0x584329=Bt(_0x427b81[0x0]['attributes'],'groupId'),_0x588b44=Bt(_0x23c84a[0x0]['attributes'],'groupId');if(!_0x2d0f6d(_0x584329,_0x588b44))return!0x1;return!!_0x427b81['every'](_0x354d4a=>_0x23c84a['some'](_0x352d5c=>_0x354d4a['getFirstRange']()['isEqual'](_0x352d5c['getFirstRange']())))&&_0x23c84a['every'](_0x56385f=>_0x427b81['some'](_0x5e064f=>_0x56385f['getFirstRange']()['isEqual'](_0x5e064f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x594e09){const _0x580f5f=Array['from'](_0x594e09),_0x29712a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x23f39b=_0x29712a['filter'](_0x47b1b6=>!_0x594e09['has'](_0x47b1b6)),_0x1c9ee9=new Map(_0x580f5f['map'](_0x185e0f=>[_0x185e0f,this['_suggestionFactory']['getSuggestionCallback'](_0x185e0f['type'],_0x185e0f['subType'],'join')])),_0x588a1b=new Map(_0x29712a['map'](_0x7e0601=>[_0x7e0601,_0x7e0601['getRanges']()]));for(let _0x15f246=0x0;_0x15f246<_0x580f5f['length'];_0x15f246++){if(_0x352995(this,_0x580f5f[_0x15f246],_0x580f5f,_0x15f246+0x1))return!0x0;}for(let _0x1a1403=0x0;_0x1a1403<_0x580f5f['length'];_0x1a1403++){if(_0x352995(this,_0x580f5f[_0x1a1403],_0x23f39b,0x0))return!0x0;}return!0x1;function _0x352995(_0x4c6552,_0x4ac759,_0x54f75a,_0x1c4c23){for(let _0x3ec4af=_0x1c4c23;_0x3ec4af<_0x54f75a['length'];_0x3ec4af++){const _0x5e975f=_0x54f75a[_0x3ec4af];if(_0x5e975f['type']!==_0x4ac759['type']||_0x5e975f['author']['id']!==_0x4ac759['author']['id']||_0x5e975f['subType']!==_0x4ac759['subType'])continue;if(!Pt(_0x4ac759,_0x5e975f,['groupId']))continue;if('attribute'==_0x4ac759['type']&&_0x4ac759['data']['oldValue']!=_0x5e975f['data']['oldValue'])continue;if('attribute'==_0x4ac759['type']&&_0x4c6552['_isBlockAttribute'](_0x4ac759['data']['key']))continue;if('formatBlock'==_0x4ac759['type']){const _0x26463d=_0x4c6552['editor']['model'],_0x155a7e=_0x4ac759['getContainedElement']();if(_0x155a7e&&(_0x26463d['schema']['isObject'](_0x155a7e)||_0x26463d['schema']['isLimit'](_0x155a7e)))continue;}const _0x58a2dd=_0x1c9ee9['get'](_0x4ac759),_0x5c8469=_0x588a1b['get'](_0x4ac759),_0x5e50e6=_0x588a1b['get'](_0x5e975f),_0x4cd93a=_0x4ac759['commentThread']&&_0x4ac759['commentThread']['length'],_0x305304=_0x5e975f['commentThread']&&_0x5e975f['commentThread']['length'];if(!_0x4cd93a&&_0x58a2dd(_0x5e50e6,_0x5c8469))return _0x4c6552['_joinSuggestions'](_0x5e975f,_0x4ac759),_0x588a1b['delete'](_0x4ac759),!0x0;if(!_0x305304&&_0x58a2dd(_0x5c8469,_0x5e50e6))return _0x4c6552['_joinSuggestions'](_0x4ac759,_0x5e975f),_0x588a1b['delete'](_0x5e975f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x53deda,_0x2f5b0a){if(_0x53deda['isMultiRange']){for(const _0x2ebb73 of _0x2f5b0a['getRanges']())_0x53deda['addRange'](_0x2ebb73);}else{const _0x40a151=_0x2f5b0a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x53deda,this['_model']['createRange'](_0x53deda['getFirstRange']()['start'],_0x40a151));}_0x2f5b0a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x238415,_0x71cd4){const _0x532d29=_0x238415['startsWith']('format')||_0x238415['startsWith']('attribute')?'FORMATTING':_0x238415['toUpperCase']();return o(this['editor']['locale'],_0x71cd4+'_'+_0x532d29+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x597c9e=this['editor'];if(!_0x597c9e['ui'])return;const {ariaLiveAnnouncer:_0x228949}=_0x597c9e['ui'];_0xd88263(this['_model'],({left:_0x3faf5d,entered:_0x20f2ec})=>{for(const _0x190c29 of _0x3faf5d){const {group:_0x33a9da,type:_0x389d98}=this['_splitMarkerName'](_0x190c29['name']);if('suggestion'===_0x33a9da){_0x228949['announce'](this['_getMarkerAnnouncementText'](_0x389d98,'LEAVE'));break;}}for(const _0xf9de95 of _0x20f2ec){const {group:_0x5b25f9,type:_0x21f09c}=this['_splitMarkerName'](_0xf9de95['name']);if('suggestion'===_0x5b25f9){_0x228949['announce'](this['_getMarkerAnnouncementText'](_0x21f09c,'ENTER'));break;}}});}['_processAttributeChanges'](_0x21c53d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5122ee=this['editor'],_0x152299=_0x5122ee['model']['document']['differ']['getChanges']();if(0x0==_0x152299['length'])return!0x1;const _0x432f77=[],_0x271ca6=_0x152299['filter'](_0x1b24df=>'attribute'==_0x1b24df['type']),_0x5d51e9=_0x152299['filter'](_0x1aa00c=>'insert'==_0x1aa00c['type']&&'$text'!=_0x1aa00c['name']),_0x3564ea=_0x152299['filter'](_0x575d15=>'remove'==_0x575d15['type']&&'$text'!=_0x575d15['name']);for(const _0x2e63b3 of _0x271ca6)_0x432f77['push']({'key':_0x2e63b3['attributeKey'],'newValue':_0x2e63b3['attributeNewValue'],'oldValue':_0x2e63b3['attributeOldValue'],'range':Ot(_0x2e63b3['range'],_0x5122ee['model'])});for(const _0x2b46b1 of _0x5d51e9){const _0x404306=_0x3564ea['find'](_0x1514ae=>_0x1514ae['position']['isEqual'](_0x2b46b1['position']));_0x404306&&_0x432f77['push']({'key':m,'newValue':_0x2b46b1['name'],'oldValue':_0x404306['name'],'range':_0x5122ee['model']['createRangeOn'](_0x2b46b1['position']['nodeAfter'])});}return 0x0!=_0x432f77['length']&&this['_reduceExistingSuggestions'](_0x21c53d,_0x432f77);}['_processAttributeSuggestions'](_0x1de49e){let _0xb261cf=!0x1;const _0x2f9b43=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2f331b=>_0x2f331b['data']['newRange']&&_0x2f331b['name']['startsWith']('suggestion:attribute:'));for(const _0x79dea6 of _0x2f9b43){const {subType:_0x328bb3,id:_0x31731e}=this['_splitMarkerName'](_0x79dea6['name']),_0x1d6888=_0x328bb3['split']('|')[0x0];for(const _0x232906 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x232906['id']!=_0x31731e&&'attribute'==_0x232906['type']&&_0x232906['data']&&_0x232906['data']['key']==_0x1d6888&&_0x232906['getFirstRange']()['isIntersecting'](_0x79dea6['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x232906,_0x79dea6['data']['newRange'],_0x1de49e),_0xb261cf=!0x0);}return _0xb261cf;}['_recordAttributeChanges'](_0x4ac81f){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4ac81f();}['_isRegisteredAttribute'](_0x2f65a7){const _0x18a7df=this['_isBlockAttribute'](_0x2f65a7),_0x2ccf6e=this['_inlineAttributeKeys']['has'](_0x2f65a7);return _0x18a7df||_0x2ccf6e;}['_reduceExistingSuggestions'](_0x489074,_0x12acdd){if(0x0==_0x12acdd['length'])return!0x1;let _0x420ec5=!0x1;for(const _0x5ab0df of _0x12acdd){const _0x3e3952=this['_findSuggestions'](_0x5ab0df['range'],'attribute')['filter'](_0x4d106e=>!_0x4d106e['meta']['isNextTo'])['map'](_0x537a87=>_0x537a87['suggestion']),_0x1ab043=_0x33246c({'newValue':_0x5ab0df['newValue']});_0x3e3952['filter'](_0x35e427=>{const [_0x2805d0,_0x4b272a]=_0x35e427['subType']['split']('|');return _0x2805d0==_0x5ab0df['key']&&_0x4b272a!=_0x1ab043;})['forEach'](_0x1633f5=>{this['_reduceSuggestionAttributeRange'](_0x1633f5,_0x5ab0df['range'],_0x489074),_0x420ec5=!0x0;});}return _0x420ec5;}['_reduceSuggestionAttributeRange'](_0x5481b1,_0x3b1cb6,_0x410672){const _0x4679b7=_0x5481b1['getFirstRange']()['getDifference'](_0x3b1cb6);0x0!==_0x4679b7['length']?0x1!==_0x4679b7['length']?this['_breakSuggestionMarker'](_0x5481b1,_0x3b1cb6['start'],_0x3b1cb6['end']):this['_setSuggestionRange'](_0x5481b1,_0x4679b7[0x0]):_0x410672['removeMarker'](_0x5481b1['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5650ec){this['_editor']=_0x5650ec,this['_model']=_0x5650ec['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2e8208,_0x34bd6f,_0xe00bf9,_0x3af9f7,_0x8e9779,_0x46f105){return new u(this['_model'],{'type':_0x2e8208,'subType':_0x34bd6f,'id':_0xe00bf9,'author':_0x3af9f7,'creator':_0x3af9f7,'attributes':_0x8e9779,'onAttributesChange':_0x46f105,'onAccept':(..._0x4215ff)=>this['getSuggestionCallback'](_0x2e8208,_0x34bd6f,'accept')(..._0x4215ff),'onDiscard':(..._0x3670d3)=>this['getSuggestionCallback'](_0x2e8208,_0x34bd6f,'discard')(..._0x3670d3)});}['registerCustomCallback'](_0x365d2b,_0x22bdff,_0x17bb02,_0x2b3475){const _0x30b989=_0x365d2b+':'+_0x22bdff+':'+_0x17bb02;this['_customCallbacks']['set'](_0x30b989,_0x2b3475);}['getSuggestionCallback'](_0x48d6f8,_0x2c774a,_0x58c577){const _0x357497=_0x48d6f8+':'+_0x2c774a+':'+_0x58c577;return this['_customCallbacks']['get'](_0x357497)||this['_defaultCallbacks']['get'](_0x48d6f8+':'+_0x58c577);}['_registerDefaultCallbacks'](){const _0x44b2ea=()=>!0x1,_0x3bcf25=_0x1c55cc=>{_0x1c55cc['sort']((_0x15a476,_0x5463d1)=>_0x15a476['start']['isBefore'](_0x5463d1['start'])?0x1:-0x1),this['_model']['change'](_0x2a18e8=>{for(const _0x5f217b of _0x1c55cc){let _0x298691;_0x298691=_0x5f217b['end']['isAtEnd']&&_0x5f217b['end']['parent']==_0x5f217b['start']['nodeAfter']?_0x2a18e8['createSelection'](_0x5f217b['start']['nodeAfter'],'on'):_0x2a18e8['createSelection'](_0x5f217b),this['_model']['deleteContent'](_0x298691,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x45e9a2=(_0x4fc229,_0xec0197)=>{_0xec0197&&this['_model']['change'](_0x45428a=>{const {commandName:_0x7fec50,commandParams:_0x4e0e59=[]}=_0xec0197,_0x50842a=_0x4fc229['map'](_0x3b29b3=>(Tt(_0x3b29b3)&&(_0x3b29b3=this['_model']['createRange'](_0x3b29b3['end'])),_0x3b29b3))['filter'](_0x25ac20=>'$graveyard'!==_0x25ac20['root']['rootName']);if(_0x50842a['length']<0x1)return;const _0x36d2e3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x410f32=>_0x24837b['fromRange'](_0x410f32));_0x45428a['setSelection'](_0x50842a);for(const _0x2c9bc9 of this['_editor']['commands']['commands']())_0x2c9bc9['refresh']();_0x4e0e59['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x7fec50,..._0x4e0e59);const _0x434f84=_0x36d2e3['filter'](_0x5f2ad9=>'$graveyard'!=_0x5f2ad9['root']['rootName']);_0x434f84['length']>0x0&&_0x45428a['setSelection'](_0x434f84);for(const _0x3bac0f of _0x36d2e3)_0x3bac0f['detach']();});},_0x25b3d4=(_0x2ca6c6,_0x5a17f2)=>0x1==_0x2ca6c6['length']&&0x1==_0x5a17f2['length']&&_0x2ca6c6[0x0]['end']['isEqual'](_0x5a17f2[0x0]['start']),_0x382a5d=(_0x53850d,_0x1c713a,_0xf3a2c8,_0xcf4f42)=>Ft(_0x53850d,_0x1c713a,_0xf3a2c8,_0xcf4f42,this['_model'])?[_0x53850d,_0x1c713a]:Ft(_0x1c713a,_0x53850d,_0xcf4f42,_0xf3a2c8,this['_model'])?[_0x1c713a,_0x53850d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x44b2ea),this['_defaultCallbacks']['set']('insertion:discard',_0x3bcf25),this['_defaultCallbacks']['set']('insertion:join',_0x25b3d4),this['_defaultCallbacks']['set']('insertion:chain',_0x382a5d),this['_defaultCallbacks']['set']('deletion:accept',_0x3bcf25),this['_defaultCallbacks']['set']('deletion:discard',_0x44b2ea),this['_defaultCallbacks']['set']('deletion:join',_0x25b3d4),this['_defaultCallbacks']['set']('deletion:chain',_0x382a5d),this['_defaultCallbacks']['set']('formatInline:accept',_0x45e9a2),this['_defaultCallbacks']['set']('formatInline:discard',_0x44b2ea),this['_defaultCallbacks']['set']('formatInline:join',_0x25b3d4),this['_defaultCallbacks']['set']('formatInline:chain',_0x44b2ea),this['_defaultCallbacks']['set']('formatBlock:accept',_0x45e9a2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x44b2ea),this['_defaultCallbacks']['set']('formatBlock:join',_0x25b3d4),this['_defaultCallbacks']['set']('formatBlock:chain',_0x44b2ea),this['_defaultCallbacks']['set']('attribute:accept',_0x44b2ea),this['_defaultCallbacks']['set']('attribute:discard',(_0x59b7de,_0x304e35)=>{if(!_0x304e35)return;const _0x57938e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xa58595=>{if(_0x304e35['key']==m)for(const _0x345b0d of _0x59b7de){const _0x30d788=_0x345b0d['start']['nodeAfter'],_0x51a594=_0x304e35['oldValue'];_0xa58595['rename'](_0x30d788,_0x51a594);}else{if(_0x57938e['_isBlockAttribute'](_0x304e35['key'])){for(const _0xd1ca9d of _0x59b7de)void 0x0!==_0x304e35['oldValue']?_0xa58595['setAttribute'](_0x304e35['key'],_0x304e35['oldValue'],_0xd1ca9d['start']['nodeAfter']):_0xa58595['removeAttribute'](_0x304e35['key'],_0xd1ca9d['start']['nodeAfter']);}else{for(const _0x509a7d of _0x59b7de)_0x304e35['oldValue']?_0xa58595['setAttribute'](_0x304e35['key'],_0x304e35['oldValue'],_0x509a7d):_0xa58595['removeAttribute'](_0x304e35['key'],_0x509a7d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x25b3d4);}}function Rt(_0x551021,_0x6e37a1,_0x5f0e0d){for(const _0x5b5354 of _0x6e37a1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b5354['root']==_0x5b5354)return!0x1;if(!_0x5f0e0d['containsItem'](_0x5b5354))return!0x1;if(_0x551021['isObject'](_0x5b5354)||_0x551021['isLimit'](_0x5b5354))return!0x0;}return!0x1;}function Tt(_0x129ebb){return _0x129ebb['end']['parent']==_0x129ebb['start']['nodeAfter']&&_0x129ebb['end']['isAtStart'];}function Et(_0xc4e57a,_0x51afe2,_0x3be4e1,_0x3620b8){const _0x228d5e=_0x3e3ab0=>!_0x3e3ab0['item']['is']('$textProxy')&&!_0x3620b8['isObject'](_0x3e3ab0['item']),_0x27b384=_0xc4e57a['start']['getLastMatchingPosition'](_0x228d5e),_0xdaf79f=_0xc4e57a['end']['getLastMatchingPosition'](_0x228d5e,{'direction':'backward'});return(!_0xc4e57a['start']['isEqual'](_0x27b384)||!_0xc4e57a['end']['isEqual'](_0xdaf79f))&&(_0x27b384['isBefore'](_0xdaf79f)?_0x3be4e1['updateMarker'](_0x51afe2,{'range':_0x3be4e1['createRange'](_0x27b384,_0xdaf79f)}):_0x3be4e1['removeMarker'](_0x51afe2),!0x0);}function Vt(_0x4f6344){return _0x33246c(_0x4f6344);}function Ut(_0x3ce67e){const _0x2af34=_0x3ce67e['start']['nodeAfter'];return _0x2af34&&_0x2af34['is']('element');}function Ot(_0x29fb3a,_0x58bb86){return null==_0x29fb3a['end']['nodeBefore']&&_0x29fb3a['end']['parent']==_0x29fb3a['start']['nodeAfter']?Gt(_0x29fb3a['start']['nodeAfter'],_0x58bb86):_0x29fb3a;}function Gt(_0x33e18d,_0x10d732){const _0x306469=_0x10d732['schema']['isObject'](_0x33e18d)||_0x10d732['schema']['isSelectable'](_0x33e18d);return _0x10d732['createRange'](_0x10d732['createPositionAt'](_0x33e18d,'before'),_0x306469?_0x10d732['createPositionAfter'](_0x33e18d):_0x10d732['createPositionAt'](_0x33e18d,'end'));}function Ft(_0x3c1711,_0x2954d4,_0x1a8783,_0x263368,_0x3bbf61){if(!Pt(_0x3c1711,_0x2954d4))return!0x1;if(_0x1a8783['end']['isEqual'](_0x263368['start']))return!0x0;if(_0x3c1711['type']!=_0x2954d4['type'])return!0x1;if(!_0x1a8783['end']['isTouching'](_0x263368['start']))return!0x1;const _0x10ab8c=_0x3bbf61['createRange'](_0x1a8783['end'],_0x263368['start'])['getWalker']();for(const _0x5a00a1 of _0x10ab8c)if(['elementStart','elementEnd']['includes'](_0x5a00a1['type'])&&_0x3bbf61['schema']['isLimit'](_0x5a00a1['item']))return!0x1;return!0x0;}function Pt(_0x18a8ef,_0xc771c5,_0x2947b1=[]){return!(!_0x18a8ef['_isDataLoaded']||!_0xc771c5['_isDataLoaded'])&&_0x2d0f6d(Bt(_0x18a8ef['attributes'],_0x2947b1),Bt(_0xc771c5['attributes'],_0x2947b1));}function Lt(_0x3da004,_0x43e6f6){const _0x5ed8f8=Ht(_0x3da004['attributes']),_0x3198de=Ht(_0x43e6f6);if(!_0x3da004['_isDataLoaded'])return!0x1;for(const _0x3e406f of Object['keys'](_0x3198de))if(!_0x2d0f6d(_0x5ed8f8[_0x3e406f],_0x3198de[_0x3e406f]))return!0x1;return!0x0;}function Ht(_0x497aac){const _0x58069a=Object['assign']({},_0x497aac);return delete _0x58069a['skipNestingCheck'],delete _0x58069a['tablePasteChainId'],_0x58069a;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4e1d0a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4ed5f4,_0x2e30d6,_0x4f17e2,_0x2dfa21){super(),this['model']=_0x2e30d6,this['view']=_0x4f17e2,this['commentThreadController']=_0x2dfa21,this['_editor']=_0x4ed5f4,this['_acceptCommand']=_0x4ed5f4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4ed5f4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4df05e,_0x43fdc6)=>_0x4df05e||_0x43fdc6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1a4a38=>_0x1a4a38&&this['_editor']['model']['canEditAt'](_0x2e30d6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x140d1e=>_0x140d1e&&this['_editor']['model']['canEditAt'](_0x2e30d6['getRanges']())),this['_pendingAction']=null,_0x4f17e2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4f17e2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4f17e2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4f17e2,'change:isDirty',()=>{_0x4f17e2['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 _0x5dee87=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5dee87);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x41761a{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x20331c,_0x4aa8d4,_0x1789bd,_0x5b8283){super(_0x20331c),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4aa8d4['authoredAt']),this['bind']('authoredAt')['to'](_0x4aa8d4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4aa8d4,this['_localUser']=_0x1789bd,this['_config']=_0x5b8283,_0x5b8283['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:_0x20f614}=this['_config'];this['commentsListView']=new _0x20f614(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',_0x569c45=>_0x569c45+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x34bdf7,_0x12550b)=>_0x34bdf7||!!_0x12550b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x277efa}=this['_config'],_0x4d1181=new _0x277efa(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5227f1=_0x4d1181['commentInputView'];return _0x4d1181['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5227f1,'value',(_0x648c3c,_0x4c7066,_0x5323e7)=>!!_0x5323e7||_0x648c3c&&!_0x4c7066),_0x5227f1['on']('submit',(_0x2e57e6,_0x48be8c)=>{this['fire']('addComment',_0x48be8c),_0x5227f1['editor']['setData']('');}),_0x5227f1['on']('cancel',()=>this['focus']()),_0x5227f1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4d1181;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x50be68,_0x20e0c3,_0x313d9b,_0x3dc9bf){super(_0x50be68,_0x20e0c3,_0x313d9b,_0x3dc9bf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x10cb14=>_0x10cb14&&_0x10cb14[0x0]?_0x10cb14[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x26fe5d,_0x50426d)=>{let _0x47218e='';for(const _0x437b34 of _0x26fe5d)_0x47218e+='<p>'+ds(_0x437b34['content'],_0x437b34['color'])+'</p>';return _0x50426d?_0x47218e:_0x357300(_0x47218e,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x50be68,'Accept\x20suggestion'),_0x5d0072['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x50be68,'Discard\x20suggestion'),_0x5d0072['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x23d4a5(_0x50be68,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x21cf3d=this['bindTemplate'],_0x236416=[{'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':_0x21cf3d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x21cf3d['to']('authoredAt',_0x408749=>this['_config']['formatDateTime'](_0x408749))}]}]},{'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']&&_0x236416['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x151905={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x21cf3d['if']('isActive','ck-suggestion-wrapper--active'),_0x21cf3d['to']('type',_0x359af6=>'ck-suggestion-'+_0x359af6),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':_0x236416}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x151905['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)),_0x151905;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x50d398,_0x75ceed,_0xe221a7)=>{this['_descriptionElement']['innerHTML']=_0xe221a7;});}['_createButton'](_0x4cc715,_0x212841,_0x1e6231,_0x35b1f1,_0x583520){const _0x16b48d=new _0x588b59(this['locale']);return _0x16b48d['set']({'label':_0x4cc715,'icon':_0x212841,'tooltip':!0x0,'tooltipPosition':_0x583520}),_0x16b48d['extendTemplate']({'attributes':{'class':_0x1e6231}}),_0x16b48d['on']('execute',()=>{this['fire'](_0x35b1f1,this['_model']['id']);}),_0x16b48d;}['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(_0x3439f0,_0x138c4a){let _0x3e467a='';return _0x3e467a+=_0x3439f0['split']('*')['map']((_0x114f03,_0x18ce9e)=>_0x18ce9e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x114f03)+'</span>':us(_0x114f03))['join'](''),_0x138c4a&&(_0x3e467a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x138c4a['value']+'\x22\x20title=\x22'+_0x138c4a['title']+'\x22></span>'),_0x3e467a;}function us(_0x24fb2b){const _0x1af448=document['createElement']('span');return _0x1af448['innerText']=_0x24fb2b,_0x1af448['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x1367c6{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x54f297,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x48980a){super(_0x48980a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1fb17e=this['editor']['config'];_0x1fb17e['define']('trackChanges.SuggestionThreadView',ne),_0x1fb17e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1fb17e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x399ec0,_0x5db3e6){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5d9be7,_0x3c7aee]of this['_handleControllerBuffer']){const _0x559bb8=this['_suggestionToController']['has'](_0x5d9be7);_0x559bb8||_0x3c7aee?_0x559bb8&&_0x3c7aee&&this['_destroyController'](_0x5d9be7):this['_initializeController'](_0x5d9be7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x399ec0,_0x5db3e6);}['init'](){const _0x1125ec=this['editor'],_0x5e7c25=_0x1125ec['plugins']['get']('TrackChangesEditing'),_0x390ee3=_0x1125ec['plugins']['get']('Annotations'),_0x36e41f=_0x1125ec['plugins']['get']('EditorAnnotations'),_0x5e9b86=_0x1125ec['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x36e41f['addSourceCollector'](()=>{const _0x341798=[];for(const [_0x4638e1,_0x564e43]of Array['from'](this['_suggestionToController'])){const _0x264a39=_0x4638e1['getAllAdjacentSuggestions'](),_0x15336d=[];for(const _0x264d8f of _0x264a39){if(!_0x264d8f['isInContent'])continue;if(_0x264d8f['isMultiRange']){_0x15336d['push'](..._0x264d8f['getRanges']());continue;}const _0x43d103=_0x264d8f['getFirstRange']();if(_0x15336d['length']>0x0){const _0xfcebfe=_0x15336d[0x0]['getJoined'](_0x43d103);if(_0xfcebfe){_0x15336d[0x0]=_0xfcebfe;continue;}}_0x15336d['push'](_0x43d103);}_0x341798['push']([_0x564e43['view'],_0x15336d]);}return _0x341798;}),this['listenTo'](_0x5e7c25,'suggestionLoaded',(_0x14b0b3,_0x592ad2)=>{this['listenTo'](_0x592ad2,'change:previous',(_0xbf0992,_0x4182ed,_0x5041e0,_0x11b3c3)=>{_0x592ad2['isInContent']&&(null==_0x5041e0?(this['_updateController'](_0x11b3c3['head']),this['_handleSuggestionControllerDelayed'](_0x592ad2,!0x1)):(this['_updateController'](_0x5041e0['head']),null==_0x11b3c3&&this['_handleSuggestionControllerDelayed'](_0x592ad2,!0x0)));}),null!==_0x592ad2['previous']?this['_updateController'](_0x592ad2['head']):this['_handleSuggestionControllerDelayed'](_0x592ad2,!0x1);}),this['listenTo'](_0x5e7c25,'suggestionUnloaded',(_0x2d8f62,_0x4c0b86,_0x17958b)=>{this['stopListening'](_0x4c0b86,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4c0b86),this['_suggestionToController']['has'](_0x4c0b86)&&this['_destroyController'](_0x4c0b86),_0x17958b&&this['_updateController'](_0x17958b['head']);}),this['listenTo'](_0x5e7c25,'suggestionChanged',(_0x159b9a,_0x5697b4)=>{this['_updateController'](_0x5697b4);}),this['listenTo'](_0x390ee3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5e9b86,'addComment',(_0x3179cf,{threadId:_0x2300c,isFromAdapter:_0x5cf24e})=>{if(_0x5cf24e||!_0x5e7c25['hasSuggestion'](_0x2300c))return;const _0x3f3e43=_0x5e7c25['getSuggestion'](_0x2300c);this['_suggestionToController']['get'](_0x3f3e43)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x339a2f=this['editor']['plugins']['get']('Annotations'),_0x221777=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8d1d0f=Array['from'](_0x339a2f['activeAnnotations'],_0x486af0=>_0x486af0['innerView'])['filter'](_0x116c29=>this['_viewToController']['has'](_0x116c29)),_0x120fba=[];for(const _0x24b384 of _0x8d1d0f){const _0x4eb428=this['_viewToController']['get'](_0x24b384)['model']['getAllAdjacentSuggestions']();_0x120fba['push'](..._0x4eb428['reduce']((_0x44bc94,_0x11434e)=>[..._0x44bc94,..._0x11434e['getMarkerNames']()],[]));}_0x221777['activeMarkers']=_0x120fba;}['_addUIComponentsToFactory'](){const _0x55c65b=this['editor'],_0x18ba70=_0x55c65b['locale'],_0x36cd6c=o(_0x18ba70,'Track\x20changes'),_0x19d5b0=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x36cd6c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x18ba70,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x18ba70,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x18ba70,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x18ba70,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3e697f of _0x19d5b0)if(ae(_0x3e697f)){const _0x259516=_0x55c65b['commands']['get'](_0x3e697f['model']['commandName']);_0x3e697f['model']['bind']('isOn','isEnabled')['to'](_0x259516,'value','isEnabled');}_0x55c65b['ui']['componentFactory']['add']('trackChanges',_0x3f14ce=>this['_createToolbarButton'](_0x3f14ce,_0x19d5b0,_0x36cd6c)),_0x55c65b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2a03a9=>this['_createMenuBarMenu'](_0x2a03a9,_0x19d5b0,_0x36cd6c));}['_createToolbarButton'](_0x3c4b19,_0x120608,_0x103ce9){const _0x1a8e66=zt(_0x3c4b19,Zt),_0x546c21=this['editor']['commands']['get']('trackChanges');_0x1a8e66['buttonView']['set']({'tooltip':_0x103ce9,'label':_0x103ce9,'icon':ie}),_0x1a8e66['buttonView']['bind']('isOn')['to'](_0x546c21,'value'),_0x1a8e66['buttonView']['on']('execute',()=>{_0x546c21['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1a8e66,_0x120608,{'role':'menu'});const _0x5e741a=[];for(const _0x201ed8 of _0x120608)ae(_0x201ed8)&&_0x5e741a['push'](this['editor']['commands']['get'](_0x201ed8['model']['commandName']));const _0x2c066a=_0x1a8e66['buttonView'];return _0x2c066a['actionView']['unbind']('isEnabled'),_0x2c066a['arrowView']['unbind']('isEnabled'),_0x2c066a['actionView']['bind']('isEnabled')['to'](_0x546c21,'isEnabled'),_0x2c066a['arrowView']['bind']('isEnabled')['toMany'](_0x5e741a,'isEnabled',(..._0x4c203e)=>_0x4c203e['some'](_0x43f13e=>_0x43f13e)),_0x1a8e66['on']('execute',_0x3ca22b=>{this['editor']['execute'](_0x3ca22b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1a8e66;}['_createMenuBarMenu'](_0x4f343b,_0x4f4a7f,_0x1ff5e1){const _0x2aac54=new Kt(_0x4f343b),_0x41cbc3=this['editor']['commands']['get']('trackChanges');_0x2aac54['buttonView']['set']({'label':_0x1ff5e1,'icon':ie});const _0x5aa50b=new Qt(_0x4f343b);for(const _0x26c946 of _0x4f4a7f){if('separator'==_0x26c946['type']){_0x5aa50b['items']['add'](new Jt(_0x4f343b));continue;}const _0x2e0d75=new Xt(_0x4f343b,_0x2aac54),_0xb0ac4e=new Yt(_0x4f343b),_0x19fde7=_0x26c946['model'];_0xb0ac4e['bind'](...Object['keys'](_0x19fde7))['to'](_0x19fde7),_0xb0ac4e['delegate']('execute')['to'](_0x2aac54),_0xb0ac4e['on']('execute',()=>{this['editor']['execute'](_0x19fde7['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e0d75['children']['add'](_0xb0ac4e),_0x5aa50b['items']['add'](_0x2e0d75);}return _0x2aac54['bind']('isEnabled')['to'](_0x41cbc3,'isEnabled'),_0x2aac54['panelView']['children']['add'](_0x5aa50b),_0x2aac54;}['_initializeController'](_0x28f5a5){const _0x123914=this['editor'],_0x4bd413=_0x123914['config'],_0x5008d7=_0x123914['plugins']['get']('Annotations'),_0x2d41df=_0x123914['plugins']['get']('CommentsRepository'),_0x177de4=_0x123914['plugins']['get']('EditorAnnotations'),_0x2f62ee=_0x123914['plugins']['get'](_0x54f297)['me'],_0x2e1c16=_0x4bd413['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1dfda9,CommentThreadInputView:_0x5975d2}=_0x123914['plugins']['get']('CommentsUI');let _0x23fd19,_0x50aca6;this['_annotationViews']['has'](_0x28f5a5['id'])?(_0x50aca6=this['_annotationViews']['get'](_0x28f5a5['id']),_0x23fd19=_0x50aca6['mainView']):(_0x23fd19=new _0x2e1c16(_0x123914['locale'],_0x28f5a5,_0x2f62ee,{'disableComments':this['_disableComments'],'editorConfig':_0x4bd413['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4bd413['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4bd413['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4bd413['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4ae577(_0x4bd413['get']('locale')),'CommentView':_0x4bd413['get']('comments')['CommentView'],'CommentsListView':_0x1dfda9,'CommentThreadInputView':_0x5975d2}),_0x23fd19['acceptButton']['on']('execute',()=>{_0x123914['editing']['view']['focus']();}),_0x23fd19['discardButton']['on']('execute',()=>{_0x123914['editing']['view']['focus']();}),_0x50aca6=_0x5008d7['createAnnotationView'](this['editor']['locale'],_0x23fd19),_0x50aca6['bind']('isDirty')['to'](_0x23fd19,'isDirty'),_0x50aca6['bind']('length')['to'](_0x23fd19),_0x50aca6['bind']('type')['to'](_0x23fd19,'type',_0xce6efa=>'suggestion-'+_0xce6efa),this['_annotationViews']['set'](_0x28f5a5['id'],_0x50aca6));const _0xd88048=_0x2d41df['createCommentThreadController'](_0x28f5a5['commentThread'],_0x23fd19),_0x1fd698=new oe(_0x123914,_0x28f5a5,_0x23fd19,_0xd88048),_0x1a3ed6=_0x28f5a5['getAllAdjacentSuggestions']()['filter'](_0x1686f0=>_0x1686f0['isInContent']);_0x23fd19['descriptionParts']=_0x123914['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1a3ed6),this['_suggestionToController']['set'](_0x28f5a5,_0x1fd698),this['_viewToController']['set'](_0x23fd19,_0x1fd698);const _0x1328b8=_0x5008d7['createAnnotation']({'view':_0x50aca6,'target':()=>{const _0x3b5c83=[],_0x27f772=_0x28f5a5['getAllAdjacentSuggestions']()['filter'](_0xe49ff8=>_0xe49ff8['isInContent']);for(const _0x1717f9 of _0x27f772)_0x3b5c83['push'](..._0x1717f9['getMarkers']());return _0x15c842(_0x123914['editing'],_0x3b5c83);},'type':()=>'suggestion-'+_0x1fd698['view']['type']});_0x2d41df['_bindAnnotationToEditors'](_0x23fd19,_0x1328b8),_0x5008d7['add'](_0x1328b8),_0x177de4['registerAnnotation'](_0x1328b8);}['_destroyController'](_0x11be63){const _0x219524=this['editor']['plugins']['get']('CommentsRepository'),_0x59b0fd=this['editor']['plugins']['get']('Annotations'),_0x40f516=this['_suggestionToController']['get'](_0x11be63),_0x5cbfb1=_0x40f516['view'],_0xd2458e=_0x59b0fd['getByInnerView'](_0x5cbfb1);_0x219524['_unbindEditors'](_0x5cbfb1),_0xd2458e&&_0x59b0fd['remove'](_0xd2458e),this['_suggestionToController']['delete'](_0x11be63),this['_viewToController']['delete'](_0x5cbfb1),_0x40f516['destroy']();}['_updateController'](_0x145639){if(!_0x145639['isInContent']||!this['_suggestionToController']['has'](_0x145639))return;const _0x42650e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f41e6=this['_suggestionToController']['get'](_0x145639),_0x3db5e9=_0x145639['getAllAdjacentSuggestions']();_0x1f41e6['view']['descriptionParts']=_0x42650e['descriptionFactory']['getDescriptions'](_0x3db5e9);}['destroy'](){for(const _0x11358a of this['_suggestionToController']['keys']())this['_destroyController'](_0x11358a);for(const _0x25c597 of this['_annotationViews']['values']())_0x25c597['mainView']['destroy']();super['destroy']();}}function ae(_0x354315){return'model'in _0x354315;}class k extends _0x1367c6{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4da560){this['editor']['plugins']['get'](p)['adapter']=_0x4da560;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xa41a80){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xa41a80);}['getSuggestions']({skipNotAttached:_0x12e2cd=!0x1,toJSON:_0x16a29d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x12e2cd,'toJSON':_0x16a29d});}['getSuggestion'](_0x2a985a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2a985a);}}const T=['Pagination'];class P extends _0x1367c6{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x493b5e=this['editor'];if(_0x493b5e['config']['define']('trackChangesData.editorCreator',_0x26b693=>{const _0x135740=_0x493b5e['model']['document']['getRootNames']()['reduce']((_0x58d3ab,_0x11a962)=>(_0x58d3ab[_0x11a962]='',_0x58d3ab),{});return _0x493b5e['constructor']['create'](_0x135740,_0x26b693);}),'function'!=typeof _0x493b5e['config']['get']('trackChangesData')['editorCreator'])throw new _0xb8c959('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2e41cb){return N(this['editor'],!0x0,_0x2e41cb);}['getDataWithDiscardedSuggestions'](_0x459d7e){return N(this['editor'],!0x1,_0x459d7e);}}class D extends _0x1367c6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x11e0da){super(_0x11e0da),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(_0xf55866){return void 0x0!==_0xf55866['getRootsAttributes'];}async function N(_0x5720ff,_0x4fe8db,_0x48e14e){const _0x4e9cb1=_0x24a4b7(_0x5720ff,T);_0x4e9cb1['plugins']['push'](p,D),_0x4e9cb1['rootsAttributes']=v(_0x5720ff)?_0x5720ff['getRootsAttributes']():void 0x0;const _0x17e873=document['createDocumentFragment'](),_0x33f7e3=_0x5720ff['config']['get']('trackChangesData')['editorCreator'],_0x4094e1=await _0x33f7e3(_0x4e9cb1,()=>function(_0x3d334b){const _0x1ff3eb=document['createElement']('div');return _0x3d334b['appendChild'](_0x1ff3eb),_0x1ff3eb;}(_0x17e873));!function(_0x6f42ad,_0x8932e3){const _0x52219d=_0x6f42ad['model']['document']['getRootNames']()['reduce']((_0x5e1d2c,_0x102e3a)=>(_0x5e1d2c[_0x102e3a]=_0x6f42ad['data']['get']({'rootName':_0x102e3a}),_0x5e1d2c),{}),_0x37fbc4=_0x6f42ad['plugins']['get']('Users')['users']['map'](_0x186841=>({'id':_0x186841['id'],'name':_0x186841['name']})),_0x186403=_0x6f42ad['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x8a66f2=_0x6f42ad['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x449e08=_0x8932e3['plugins']['get']('Users'),_0x185fb1=_0x8932e3['plugins']['get']('TrackChangesEditing'),_0x32472e=_0x8932e3['plugins']['get']('CommentsRepository');for(const _0x174a3e of _0x37fbc4)_0x449e08['getUser'](_0x174a3e['id'])||_0x449e08['addUser'](_0x174a3e);_0x449e08['me']||_0x449e08['useAnonymousUser']();for(const _0x380bf7 of _0x8a66f2)_0x32472e['addCommentThread'](_0x380bf7);for(const _0x5aba91 of _0x186403)_0x185fb1['addSuggestionData'](_0x5aba91);_0x8932e3['data']['set'](_0x52219d);}(_0x5720ff,_0x4094e1),_0x4094e1['execute'](_0x4fe8db?'acceptAllSuggestions':'discardAllSuggestions');const _0x178840=v(_0x4094e1)?_0x4094e1['getFullData'](_0x48e14e):_0x4094e1['data']['get'](_0x48e14e);return await _0x4094e1['destroy'](),_0x178840;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|