@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240701.0 → 0.0.0-nightly-20240702.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 _0x16481a,PendingActions as _0x598d5a,icons as _0x53c6c6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x35d108,ObservableMixin as _0x136a63,uid as _0x287d7d,insertToPriorityArray as _0x33d0b0,priorities as _0x13dea8,logWarning as _0x1d1d01,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x5e1628,View as _0x59c07b,ButtonView as _0x4c6253,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 _0x214dba,hashObject as _0xdafb0a,surroundingMarkersDetector as _0x3da964,trimHtml as _0x399d49,UserView as _0x364e1f,getDateTimeFormatter as _0x4b1dd6,getAllMarkersDomElementsSorted as _0x39b42e,sanitizeEditorConfig as _0x5870c3}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x35f47f,LiveRange as _0x55c0b1,LivePosition as _0x787259}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x394db3,toWidget as _0x1ae684}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x15050a,set as _0x552b72,isEqual as _0x4de750,unset as _0x2cf5bc,omit as Bt}from'lodash-es';import{Delete as _0x3e6133,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x22e146,ShiftEnter as _0x51d96c}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x461290,_0x4d8bdb){super(_0x461290),this['_enabledCommands']=_0x4d8bdb,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 _0xfbd1e0 of this['editor']['commands']['commands']())_0xfbd1e0['affectsData']&&!this['_enabledCommands']['has'](_0xfbd1e0)&&_0xfbd1e0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3d5490 of this['editor']['commands']['commands']())_0x3d5490['affectsData']&&!this['_enabledCommands']['has'](_0x3d5490)&&_0x3d5490['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x1244d8,_0x31c09b){super(_0x1244d8),this['_suggestions']=_0x31c09b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x21e60e){const _0xc0e730=this['_suggestions']['get'](_0x21e60e);if(!_0xc0e730)throw new _0x35d108('track-changes-accept-suggestion-not-found',this);const _0x2917f6=_0xc0e730['getRanges']();this['editor']['model']['canEditAt'](_0x2917f6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xc0e730);}}class B extends ts{['_suggestions'];constructor(_0x237528,_0x28eda8){super(_0x237528),this['_suggestions']=_0x28eda8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x45fb39){const _0x40c871=this['_suggestions']['get'](_0x45fb39);if(!_0x40c871)throw new _0x35d108('track-changes-discard-suggestion-not-found',this);const _0x67d26f=_0x40c871['getRanges']();this['editor']['model']['canEditAt'](_0x67d26f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x40c871);}}function ss(_0x57064e){return _0x57064e['sort']((_0xef94dc,_0x227033)=>'deletion'==_0xef94dc['type']&&'deletion'!=_0x227033['type']?-0x1:'deletion'!=_0xef94dc['type']&&'deletion'==_0x227033['type']?0x1:0x0);}function to(_0x469f73,_0x212d97){let _0x25b7c8,_0x1fd65c=0x0;const _0x341515=[],_0x12673=_0x212d97['schema'];for(;_0x1fd65c<_0x469f73['length'];){const _0x1805f1=_0x469f73[_0x1fd65c],_0x49316c=_0x469f73[_0x1fd65c+0x1];_0x25b7c8||(_0x25b7c8=_0x212d97['createPositionBefore'](_0x1805f1)),co(_0x212d97,_0x1805f1,_0x49316c)||(_0x341515['push'](_0x212d97['createRange'](_0x25b7c8,_0x12673['isObject'](_0x1805f1)?_0x212d97['createPositionAfter'](_0x1805f1):_0x212d97['createPositionAt'](_0x1805f1,'end'))),_0x25b7c8=null),_0x1fd65c++;}return _0x341515;}function co(_0x35378e,_0x5867b5,_0x46b180){if(!_0x46b180)return!0x1;const _0x14a67c=_0x35378e['createPositionAfter'](_0x5867b5),_0x57f4e5=_0x35378e['createPositionBefore'](_0x46b180);return _0x14a67c['isTouching'](_0x57f4e5);}function rs(_0x38ed41,_0x5baeb2,_0x22b3e3){for(;_0x22b3e3['length'];){const _0x539b8b=_0x22b3e3['splice'](0x0,0x64);_0x38ed41['change'](()=>{for(const _0x4839b1 of _0x539b8b)_0x4839b1['isInContent']&&_0x5baeb2['execute'](_0x4839b1['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x4c969d,_0xb1eb9a,_0x3c4149){super(_0x4c969d),this['_command']=_0xb1eb9a,this['_suggestions']=_0x3c4149,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x23a450=Array['from'](this['_suggestions']['values']())['some'](_0xa43155=>_0xa43155['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x23a450;}['execute'](){const _0x5ddceb=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3b9c11 of _0x5ddceb){const _0x4b5a52=_0x3b9c11['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b5a52))return;}rs(this['editor']['model'],this['_command'],_0x5ddceb);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x330cab,_0x3564e0,_0x1733e1){super(_0x330cab),this['_command']=_0x3564e0,this['_suggestions']=_0x1733e1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x40754b=this['editor']['model']['document']['selection'],_0x418b9c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x422dd0,_0x46e1ef){const _0x627a5f=Array['from'](_0x422dd0['getRanges']()),_0x3456ed=new Set();for(const _0x3497f3 of _0x46e1ef)if(_0x3497f3['isInContent']){for(const _0x15b632 of _0x627a5f)for(const _0x151791 of _0x3497f3['getRanges']())(_0x15b632['isIntersecting'](_0x151791)||_0x422dd0['isCollapsed']&&!_0x3497f3['isMultiRange']&&_0x3497f3['next']&&_0x151791['end']['isTouching'](_0x15b632['start']))&&_0x3456ed['add'](_0x3497f3);}return _0x3456ed;}(_0x40754b,_0x418b9c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x577525=ss(Array['from'](this['_selectedSuggestions']));for(const _0x34b19d of _0x577525){const _0x27377=_0x34b19d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x27377))return;}rs(this['editor']['model'],this['_command'],_0x577525);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x136a63(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x39ed7f,_0x355c3d){super(),this['id']=_0x355c3d['id'],this['type']=_0x355c3d['type'],this['subType']=_0x355c3d['subType']||null,this['author']=_0x355c3d['author'],this['creator']=_0x355c3d['creator']||_0x355c3d['author'],this['isExternal']=Boolean(_0x355c3d['attributes']&&_0x355c3d['attributes']['@external']),this['data']=null,this['_model']=_0x39ed7f,this['_onAccept']=_0x355c3d['onAccept'],this['_onDiscard']=_0x355c3d['onDiscard'],this['_onAttributesChange']=_0x355c3d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x355c3d['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 _0x2e7910=this;for(;_0x2e7910['previous'];)_0x2e7910=_0x2e7910['previous'];return _0x2e7910;}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'](_0x428300){this['_markerNames']['add'](_0x428300);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x557018=>this['_model']['markers']['get'](_0x557018))['filter'](_0x335ddd=>_0x335ddd);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x195bdf=>{for(const _0x502e7e of this['getMarkers']())_0x195bdf['removeMarker'](_0x502e7e);}),this['_markerNames']['clear']();}['removeMarker'](_0x333bb8){this['_model']['change'](_0x129bf9=>{_0x129bf9['removeMarker'](_0x333bb8);}),this['_markerNames']['delete'](_0x333bb8);}['addRange'](_0x1eeb06){const _0x8b7b49='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x8b7b49),this['_model']['change'](_0x4c5cf5=>{_0x4c5cf5['addMarker'](_0x8b7b49,{'range':_0x1eeb06,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x7074ad){for(const _0x16d128 of this['getRanges']())if(_0x16d128['isIntersecting'](_0x7074ad))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xcbb2cd=>_0xcbb2cd['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x555f96,_0x1a710b)=>[..._0x555f96,..._0x1a710b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x113b73=this['getRanges']();if(0x1!=_0x113b73['length'])return null;const _0x371734=_0x113b73[0x0],_0x335a62=_0x371734['start']['nodeAfter'],_0x16ea5b=_0x371734['end']['nodeBefore'];return _0x335a62 instanceof _0x35f47f?_0x335a62!=_0x16ea5b?null:_0x335a62: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 _0xfeaf8e=[];let _0x1b3c86=this['head'];for(;_0x1b3c86;)_0xfeaf8e['push'](_0x1b3c86),_0x1b3c86=_0x1b3c86['next'];return _0xfeaf8e;}['setAttribute'](_0xa5dd7a,_0x1c466d){const _0x1dd510=_0x15050a(this['attributes']);_0x552b72(_0x1dd510,_0xa5dd7a,_0x1c466d),_0x4de750(_0x1dd510,this['attributes'])||(this['attributes']=_0x1dd510,this['_onAttributesChange'](_0x1dd510));}['removeAttribute'](_0x43375b){const _0x5e6f1c=_0x15050a(this['attributes']);_0x2cf5bc(_0x5e6f1c,_0x43375b),_0x4de750(_0x5e6f1c,this['attributes'])||(this['attributes']=_0x5e6f1c,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 _0x287d7d()['substr'](0x1,0x5);}}function o(_0x19ac33,_0x1008e3,_0x3145ef){const t=_0x19ac33['t'];switch(_0x1008e3){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',_0x3145ef);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3145ef);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3145ef);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3145ef);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3145ef);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',_0x3145ef);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3145ef);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',_0x3145ef);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3145ef);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3145ef);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3145ef);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3145ef);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3145ef);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3145ef);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3145ef);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3145ef);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3145ef);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3145ef);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3145ef);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3145ef);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3145ef);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3145ef);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3145ef);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'},_0x3145ef);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3145ef);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3145ef);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3145ef);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3145ef);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3145ef);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'},_0x3145ef);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3145ef);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3145ef);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3145ef);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3145ef);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'},_0x3145ef);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3145ef);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'},_0x3145ef);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'},_0x3145ef);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3145ef);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'},_0x3145ef);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3145ef);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'},_0x3145ef);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3145ef);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3145ef);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'},_0x3145ef);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'},_0x3145ef);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 _0x1008e3;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x35c90a,_0x3e8686){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x35c90a,this['_locale']=_0x3e8686;}['getDescriptions'](_0x337d54){const _0x32004d=[],_0x269736=new Set(),_0x130af5=new Set();for(let _0x5b8fbb=0x0;_0x5b8fbb<_0x337d54['length'];_0x5b8fbb++){const _0x4aa4bb=_0x337d54[_0x5b8fbb];if(!_0x4aa4bb['isInContent'])continue;const _0x58743c=this['_handleCustomCallbackDescription'](_0x4aa4bb);if(_0x58743c){if(null!=_0x4aa4bb['subType']){if(_0x269736['has'](_0x4aa4bb['subType']))continue;_0x269736['add'](_0x4aa4bb['subType']);}_0x32004d['push'](_0x58743c);}else{if('attribute'!=_0x4aa4bb['type'])'insertion'!=_0x4aa4bb['type']&&'deletion'!=_0x4aa4bb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x32004d,_0x4aa4bb,_0x337d54[_0x5b8fbb+0x1]);else{const _0x5c0b6d=_0x4aa4bb['data']['key'];if(_0x130af5['has'](_0x5c0b6d))continue;_0x130af5['add'](_0x4aa4bb['data']['key']),_0x5c0b6d==m?this['_handleRenameSuggestionDescription'](_0x32004d,_0x4aa4bb):this['_handleAttributeSuggestionDescription'](_0x32004d,_0x4aa4bb);}}}return this['_resolveDescriptionItems'](_0x32004d);}['registerDescriptionCallback'](_0x2af042){this['_customCallbacks']['push'](_0x2af042);}['registerElementLabel'](_0xf9c0ab,_0x7f7b8c,_0x90884c=_0x13dea8['normal']){'function'==typeof _0xf9c0ab?_0x33d0b0(this['_itemLabelsCallbacks'],{'matchingCallback':_0xf9c0ab,'label':_0x7f7b8c,'priority':_0x90884c}):this['_itemLabels']['set'](_0xf9c0ab,_0x7f7b8c);}['registerAttributeLabel'](_0x772c7,_0x54462f){this['_attributeLabels']['set'](_0x772c7,_0x54462f);}['getItemLabel'](_0x5e9865,_0x2565c3=0x1){let _0x2f4a7a;for(const _0x2c2274 of this['_itemLabelsCallbacks'])if(_0x2c2274['matchingCallback'](_0x5e9865)){_0x2f4a7a=_0x2c2274['label'];break;}return _0x2f4a7a||(_0x2f4a7a=this['_itemLabels']['get'](_0x5e9865['name'])),_0x2f4a7a?_0x2f4a7a(_0x2565c3):0x1!==_0x2565c3?_0x2565c3+'\x20'+_0x5e9865['name']+'s':''+_0x5e9865['name'];}['_addDescriptionItems'](_0xf34a96,_0x4212c1){const _0x33ba4f=_0x4212c1['getFirstRange']()['getWalker'](),_0x2d3cd4='insertion'==_0x4212c1['type']?'add':'remove';for(const _0x5e7496 of _0x33ba4f){const _0x4d08cf=_0x5e7496['item'],_0x3dcf2e=_0xf34a96[_0xf34a96['length']-0x1];if(_0x4d08cf['is']('$textProxy'))_0x3dcf2e&&_0x3dcf2e['type']['indexOf']('Container')>-0x1&&_0xf34a96['pop'](),_0x3dcf2e&&'text'==_0x3dcf2e['type']?_0x3dcf2e[_0x2d3cd4]+=_0x4d08cf['data']:_0xf34a96['push']({'type':'text','add':'add'==_0x2d3cd4?_0x4d08cf['data']:'','remove':'remove'==_0x2d3cd4?_0x4d08cf['data']:''});else{if(this['_schema']['isObject'](_0x4d08cf)){const _0x286c40=_0x4d08cf;if(_0x3dcf2e&&_0x3dcf2e['type']['indexOf']('Container')>-0x1&&_0xf34a96['pop'](),'elementEnd'==_0x5e7496['type'])continue;_0x3dcf2e&&_0x3dcf2e['type']==_0x2d3cd4+'Object'&&_0x3dcf2e['element']['name']==_0x286c40['name']?_0x3dcf2e['quantity']++:_0xf34a96['push']({'type':_0x2d3cd4+'Object','element':_0x286c40,'quantity':0x1}),_0x33ba4f['skip'](_0x3c5d76=>!('elementEnd'==_0x3c5d76['type']&&_0x3c5d76['item']==_0x4d08cf));}else{if(this['_schema']['checkChild'](_0x4d08cf,'$text')||_0x4d08cf['is']('element','softBreak')){const _0x1f8733=_0x4d08cf;if('add'==_0x2d3cd4&&'elementStart'==_0x5e7496['type']||'remove'==_0x2d3cd4&&'elementEnd'==_0x5e7496['type'])continue;if(_0x3dcf2e&&-0x1==_0x3dcf2e['type']['indexOf']('Container')){'text'==_0x3dcf2e['type']&&(_0x3dcf2e[_0x2d3cd4]+='\x0a');continue;}let _0x5e867c;if(_0x5e867c='add'==_0x2d3cd4?_0x1f8733['nextSibling']&&!this['_schema']['isObject'](_0x1f8733['nextSibling'])?_0x1f8733['nextSibling']:null:_0x1f8733['previousSibling']&&!this['_schema']['isObject'](_0x1f8733['previousSibling'])?_0x1f8733['previousSibling']:null,_0x1f8733['isEmpty']||_0x5e867c&&_0x5e867c['isEmpty']){const _0x45392e=_0x5e867c&&_0x5e867c['isEmpty']?_0x5e867c:_0x1f8733;_0x3dcf2e&&_0x3dcf2e['type']==_0x2d3cd4+'EmptyContainer'&&_0x3dcf2e['element']['name']==_0x45392e['name']?_0x3dcf2e['quantity']++:_0xf34a96['push']({'type':_0x2d3cd4+'EmptyContainer','element':_0x45392e,'quantity':0x1});}else _0xf34a96['push']({'type':_0x2d3cd4+'Container','element':_0x1f8733});}}}}}['_resolveDescriptionItems'](_0x25e6f4){const _0x146341=this['_locale'],_0x100b09=[],_0x487a50=[],_0x56cdb5=[];for(const _0x468a3f of _0x25e6f4)switch(_0x468a3f['type']){case'text':if(_0x468a3f['add']=_0x468a3f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x468a3f['remove']=_0x468a3f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x468a3f['add']&&''!=_0x468a3f['remove']){_0x100b09['push']({'type':'replace','content':o(_0x146341,'REPLACE_TEXT',['\x22'+_0x468a3f['remove']+'\x22','\x22'+_0x468a3f['add']+'\x22'])});continue;}if(null!=_0x468a3f['add']['match'](/^ +$/)){_0x100b09['push']({'type':'insertion','content':o(_0x146341,'*Insert:*\x20%0',o(_0x146341,'ELEMENT_SPACE',_0x468a3f['add']['length']))});continue;}if(null!=_0x468a3f['remove']['match'](/^ +$/)){_0x100b09['push']({'type':'deletion','content':o(_0x146341,'*Remove:*\x20%0',o(_0x146341,'ELEMENT_SPACE',_0x468a3f['remove']['length']))});continue;}if(''!=_0x468a3f['add']){_0x100b09['push']({'type':'insertion','content':o(_0x146341,'*Insert:*\x20%0','\x22'+_0x468a3f['add']+'\x22')});continue;}_0x100b09['push']({'type':'deletion','content':o(_0x146341,'*Remove:*\x20%0','\x22'+_0x468a3f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x100b09['push']({'type':'insertion','content':o(_0x146341,'*Insert:*\x20%0',this['getItemLabel'](_0x468a3f['element'],_0x468a3f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x100b09['push']({'type':'deletion','content':o(_0x146341,'*Remove:*\x20%0',this['getItemLabel'](_0x468a3f['element'],_0x468a3f['quantity']))});continue;case'addContainer':_0x100b09['push']({'type':'insertion','content':o(_0x146341,'*Split:*\x20%0',this['getItemLabel'](_0x468a3f['element'],_0x468a3f['quantity']))});continue;case'removeContainer':_0x100b09['push']({'type':'deletion','content':o(_0x146341,'*Merge:*\x20%0',this['getItemLabel'](_0x468a3f['element'],_0x468a3f['quantity']))});continue;case'addFormat':_0x487a50['push'](_0x468a3f['key']);continue;case'removeFormat':_0x56cdb5['push'](_0x468a3f['key']);continue;default:_0x100b09['push'](_0x468a3f);}if(_0x487a50['length']){const _0x97ec29=_0x487a50['map'](_0x454a7c=>this['_attributeLabels']['has'](_0x454a7c)?this['_attributeLabels']['get'](_0x454a7c):_0x454a7c)['join'](',\x20');_0x100b09['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x97ec29)});}if(_0x56cdb5['length']){const _0x50509a=_0x56cdb5['map'](_0x1d13cd=>this['_attributeLabels']['has'](_0x1d13cd)?this['_attributeLabels']['get'](_0x1d13cd):_0x1d13cd)['join'](',\x20');_0x100b09['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x50509a)});}return _0x100b09;}['_handleCustomCallbackDescription'](_0x2ad00a){for(const _0x524df9 of this['_customCallbacks']){const _0x37c8b5=_0x524df9(_0x2ad00a);if(_0x37c8b5&&'type'in _0x37c8b5)return _0x37c8b5;}}['_handleAttributeSuggestionDescription'](_0x49af72,_0x4be2be){const _0xae50a0=_0x4be2be['data'],_0x539d6e=void 0x0===_0xae50a0['newValue']?'removeFormat':'addFormat';_0x49af72['push']({'type':_0x539d6e,'key':_0xae50a0['key']});}['_handleRenameSuggestionDescription'](_0x373d53,_0x4e0ba6){_0x373d53['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4e0ba6['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4164c8,_0x16fc42,_0x59ebee){if(this['_addDescriptionItems'](_0x4164c8,_0x16fc42),_0x59ebee&&_0x59ebee['getFirstRange']()&&!_0x16fc42['getFirstRange']()['end']['isEqual'](_0x59ebee['getFirstRange']()['start'])){const _0x262cc3=_0x4164c8[_0x4164c8['length']-0x1],_0x5acdd2='insertion'==_0x16fc42['type']?'add':'remove';_0x262cc3&&'text'==_0x262cc3['type']&&(_0x262cc3[_0x5acdd2]+='\x0a');}}}class E extends _0x16481a{['afterInit'](){const _0x927256=this['editor'],_0x4e68c1=_0x927256['plugins']['get']('TrackChangesEditing');_0x927256['commands']['get']('showAIAssistant')&&_0x4e68c1['enableCommand']('showAIAssistant');}}class V extends _0x16481a{['afterInit'](){const _0x19e03a=this['editor'],_0x3b0e18=_0x19e03a['locale'];if(!_0x19e03a['plugins']['has']('AlignmentEditing'))return;const _0x3b3a70=_0x19e03a['plugins']['get']('TrackChangesEditing');_0x3b3a70['enableDefaultAttributesIntegration']('alignment'),_0x3b3a70['registerBlockAttribute']('alignment'),_0x3b3a70['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3b0e18,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56be8d=this['editor'],_0x18e778=_0x56be8d['locale'];_0x56be8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28394c=>{if('formatBlock'!=_0x28394c['type'])return;const {data:_0xfdc21d}=_0x28394c;if(_0xfdc21d&&'alignment'==_0xfdc21d['commandName']){const _0x243b2e=_0xfdc21d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x18e778,'*Format:*\x20%0',function(_0x117a45){switch(_0x117a45){case'left':return o(_0x18e778,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x18e778,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x18e778,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x18e778,'FORMAT_JUSTIFY_TEXT');}}(_0x243b2e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x16481a{['afterInit'](){const _0x564e23=this['editor'],_0x16fbcc=_0x564e23['plugins']['get']('TrackChangesEditing'),_0x49b4d4=_0x564e23['locale'];for(const _0x2a8de1 of ti){if(!_0x564e23['plugins']['has'](_0x2a8de1))continue;const _0x1d24fc=_0x2a8de1['slice'](0x0,-0x7)['toLowerCase'](),_0x34c5cb='FORMAT_'+_0x1d24fc['toUpperCase']();_0x16fbcc['enableDefaultAttributesIntegration'](_0x1d24fc),_0x16fbcc['registerInlineAttribute'](_0x1d24fc),_0x16fbcc['descriptionFactory']['registerAttributeLabel'](_0x1d24fc,o(_0x49b4d4,_0x34c5cb));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c49a5=this['editor'],_0x18e5b2=_0x1c49a5['locale'],_0x68f325=_0x1c49a5['plugins']['get']('TrackChangesEditing');function _0x47fbe0(_0x35afd3,_0x93c6a6){_0x68f325['descriptionFactory']['registerDescriptionCallback'](_0x322bbd=>{if('formatInline'!=_0x322bbd['type'])return;const {data:_0x48e6ef}=_0x322bbd;return _0x48e6ef&&_0x48e6ef['commandName']===_0x35afd3?_0x48e6ef['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18e5b2,'*Format:*\x20%0',_0x93c6a6)}:{'type':'format','content':o(_0x18e5b2,'*Remove\x20format:*\x20%0',_0x93c6a6)}:void 0x0;});}_0x47fbe0('bold',o(_0x18e5b2,'FORMAT_BOLD')),_0x47fbe0('italic',o(_0x18e5b2,'FORMAT_ITALIC')),_0x47fbe0('underline',o(_0x18e5b2,'FORMAT_UNDERLINE')),_0x47fbe0('code',o(_0x18e5b2,'FORMAT_CODE')),_0x47fbe0('strikethrough',o(_0x18e5b2,'FORMAT_STRIKETHROUGH')),_0x47fbe0('subscript',o(_0x18e5b2,'FORMAT_SUBSCRIPT')),_0x47fbe0('superscript',o(_0x18e5b2,'FORMAT_SUPERSCRIPT'));}}class O extends _0x16481a{['afterInit'](){const _0x3ea3f6=this['editor'],_0xf08199=_0x3ea3f6['locale'];if(!_0x3ea3f6['plugins']['has']('BlockQuoteEditing'))return;const _0xb3b6ee=_0x3ea3f6['plugins']['get']('TrackChangesEditing'),_0x3cb034=this['editor']['commands']['get']('blockQuote');_0xb3b6ee['enableCommand']('blockQuote',(_0x1be1cf,_0x1aa76b={})=>{const _0x88045e=this['editor']['model']['document']['selection'],_0x5bfdf2=_0x1aa76b&&void 0x0!==_0x1aa76b['forceValue']?_0x1aa76b['forceValue']:!_0x3cb034['value'];let _0x55a53e=[];if(_0x5bfdf2){const _0x44cd59=Array['from'](_0x88045e['getSelectedBlocks']())['filter'](_0x39e913=>oo(_0x39e913)||function(_0x434801,_0x34a7ac){const _0x28891c=_0x34a7ac['checkChild'](_0x434801['parent'],'blockQuote'),_0x39aee2=_0x34a7ac['checkChild'](['$root','blockQuote'],_0x434801);return _0x28891c&&_0x39aee2;}(_0x39e913,this['editor']['model']['schema']));_0x55a53e=to(_0x44cd59,_0x3ea3f6['model']);}else{const _0x160d21=Array['from'](_0x88045e['getSelectedBlocks']())['filter'](_0x9a6f47=>oo(_0x9a6f47));_0x55a53e=to(_0x160d21,_0x3ea3f6['model']);}_0x3ea3f6['model']['change'](()=>{for(const _0x40c071 of _0x55a53e)_0xb3b6ee['markBlockFormat'](_0x40c071,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5bfdf2}]});});}),_0xb3b6ee['descriptionFactory']['registerDescriptionCallback'](_0x29cfbc=>{const {data:_0x55fb5d}=_0x29cfbc;if(_0x55fb5d&&'blockQuote'==_0x55fb5d['commandName']){const _0x14bee8=o(_0xf08199,'ELEMENT_BLOCK_QUOTE');return _0x55fb5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf08199,'*Set\x20format:*\x20%0',_0x14bee8)}:{'type':'format','content':o(_0xf08199,'*Remove\x20format:*\x20%0',_0x14bee8)};}});}}function oo(_0x577d03){return'blockQuote'==_0x577d03['parent']['name'];}class G extends _0x16481a{['afterInit'](){const _0x371ae0=this['editor'];_0x371ae0['plugins']['has']('CaseChange')&&(_0x371ae0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x371ae0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x371ae0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x16481a{['afterInit'](){const _0x37df07=this['editor'];_0x37df07['commands']['get']('ckbox')&&_0x37df07['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x16481a{['afterInit'](){const _0x2803fe=this['editor'];if(!_0x2803fe['plugins']['has']('CodeBlock'))return;const _0x5ae6c5=_0x2803fe['plugins']['get']('TrackChangesEditing'),_0x487f8e=_0x2803fe['locale'],_0x45fc79=_0x2803fe['config']['get']('codeBlock')['languages'],_0x84048a=_0x2803fe['commands']['get']('codeBlock');_0x5ae6c5['enableCommand']('indentCodeBlock'),_0x5ae6c5['enableCommand']('outdentCodeBlock'),_0x5ae6c5['enableCommand']('codeBlock',(_0x318e90,_0x52703a={})=>{const _0x631f80=_0x2803fe['model'],_0x4201d4=_0x2803fe['model']['document']['selection'],_0x114171=_0x52703a&&void 0x0!==_0x52703a['forceValue']?_0x52703a['forceValue']:!_0x84048a['value'];let _0xba6e3c;_0x52703a['language']||(_0x52703a['language']=_0x45fc79[0x0]['language']),_0xba6e3c=_0x114171?Array['from'](_0x4201d4['getSelectedBlocks']())['filter'](_0x1194fb=>eo(_0x1194fb)||function(_0x20a2ae,_0x4284be){if(_0x20a2ae['is']('rootElement')||_0x4284be['isLimit'](_0x20a2ae))return!0x1;return _0x4284be['checkChild'](_0x20a2ae['parent'],'codeBlock');}(_0x1194fb,_0x631f80['schema'])):Array['from'](_0x4201d4['getSelectedBlocks']())['filter'](_0x2b0133=>eo(_0x2b0133));const _0x3acea4=to(_0xba6e3c,_0x631f80);_0x631f80['change'](()=>{for(const _0x301f28 of _0x3acea4)_0x5ae6c5['markBlockFormat'](_0x301f28,{'commandName':'codeBlock','commandParams':[{..._0x52703a,'forceValue':_0x114171}],'formatGroupId':'blockName'});});}),(_0x5ae6c5['descriptionFactory']['registerElementLabel']('codeBlock',_0x4017b6=>o(_0x487f8e,'ELEMENT_CODE_BLOCK',_0x4017b6)),_0x5ae6c5['descriptionFactory']['registerDescriptionCallback'](_0x2feb4a=>{if('formatBlock'!=_0x2feb4a['type'])return;const _0x2977be=_0x487f8e['t'],{data:_0x568b5f}=_0x2feb4a;if(!_0x568b5f||'codeBlock'!=_0x568b5f['commandName'])return;const _0x316098=_0x568b5f['commandParams'][0x0]['language'],_0x33f105=_0x2977be(_0x45fc79['find'](_0x4528dd=>_0x4528dd['language']===_0x316098)['label'])['toLowerCase']();return _0x568b5f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x487f8e,'*Set\x20format:*\x20%0',o(_0x487f8e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x33f105+')')}:{'type':'format','content':o(_0x487f8e,'*Remove\x20format:*\x20%0',o(_0x487f8e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3491c3){return'codeBlock'==_0x3491c3['name'];}class H extends _0x16481a{['afterInit'](){const _0x5ae7b9=this['editor'];if(!_0x5ae7b9['plugins']['has']('CommentsEditing'))return;_0x5ae7b9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x583d28,_0x59992b,_0x118472){const _0x108f16=[];for(const _0x5b52a1 of _0x59992b['getItems']())_0x5b52a1['hasAttribute'](_0x583d28)&&_0x108f16['push'](_0x118472['createRangeOn'](_0x5b52a1));return _0x108f16;}function _e(_0x1559f8,_0x54216a,{showActiveMarker:_0x5b14f8=!0x0}={}){const _0x25e5a5=_0x1559f8['plugins']['get']('TrackChangesEditing');return(_0x3706e9,_0x33915a,_0xbb115e)=>{if(!_0xbb115e['consumable']['test'](_0x33915a['markerRange'],_0x3706e9['name']))return;const _0x2abc99=_0x33915a['markerRange']['getWalker'](),_0x3829b6=_0x33915a['markerRange']['start'],_0x561356=_0x1559f8['model']['schema'];let _0x53c9f6=null,_0x24dee2=null,_0x335249=!0x1,_0x540568=!0x1;for(const _0x409eb0 of _0x2abc99){const _0x25f3f6=_0x409eb0['item'];_0x335249=_0x335249||_0x561356['isContent'](_0x25f3f6);const _0x57325c=_0xbb115e['mapper']['toViewElement'](_0x25f3f6);if(_0x57325c&&_0x57325c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x409eb0['type']&&(_0x561356['isBlock'](_0x25f3f6)&&!_0x561356['isLimit'](_0x25f3f6)&&(_0x25f3f6['nextSibling']||_0x3829b6['isAtEnd']?_0x53c9f6&&_0x53c9f6['parent']==_0x25f3f6||(_0x53c9f6=_0x25f3f6,_0x22c5d8(_0x409eb0['previousPosition']),_0x540568=!0x0):_0x24dee2=_0x24dee2||_0x409eb0['previousPosition']));}function _0x22c5d8(_0x357649){const _0x54edff=_0xbb115e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54216a}),_0x475547=_0xbb115e['mapper']['toViewPosition'](_0x357649);_0x5b14f8&&_0x25e5a5['activeMarkers']['includes'](_0x33915a['markerName'])&&_0xbb115e['writer']['addClass']('ck-suggestion-marker--active',_0x54edff),_0xbb115e['writer']['insert'](_0x475547,_0x54edff),_0xbb115e['mapper']['bindElementToMarker'](_0x54edff,_0x33915a['markerName']);}_0x335249||_0x540568||!_0x24dee2||_0x22c5d8(_0x24dee2);};}class q extends _0x16481a{static get['requires'](){return[_0x3e6133];}['init'](){const _0xb8aeba=this['editor'],_0x64a097=_0xb8aeba['plugins']['get']('TrackChangesEditing');_0x64a097['enableCommand']('delete');const _0x3aec84=_0xb8aeba['commands']['get']('deleteForward');_0x64a097['enableCommand']('deleteForward',(_0x1c497b,_0x30ded6={})=>{const _0x3ef93c=_0xb8aeba['model']['createSelection'](_0xb8aeba['model']['document']['selection']);_0x3ef93c['isCollapsed']&&_0xb8aeba['model']['modifySelection'](_0x3ef93c,{'direction':'forward','unit':_0x30ded6['unit']});const _0x2bfca5=_0x3ef93c['getFirstRange'](),_0x5bc09f=_0x55c0b1['fromRange'](_0x2bfca5);let _0x20b09e;_0x1c497b(_0x30ded6),_0x20b09e='$graveyard'==_0x5bc09f['root']['rootName']?_0xb8aeba['model']['createRange'](_0x2bfca5['start']):_0xb8aeba['model']['createRange'](_0x5bc09f['start'],_0x5bc09f['end']),_0x5bc09f['detach'](),_0xb8aeba['model']['enqueueChange'](_0x3aec84['buffer']['batch'],_0x5915bf=>{_0x3aec84['buffer']['lock'](),_0x5915bf['setSelection'](_0x5915bf['createRange'](_0x20b09e['end'])),_0x3aec84['buffer']['unlock']();});}),_0xb8aeba['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xb8aeba,'merge'),{'priority':'high'}),_0xb8aeba['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x56a31b,_0x32c2ce,_0x438bef)=>{_0x438bef['options']['showSuggestionHighlights']&&_e(_0xb8aeba,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x56a31b,_0x32c2ce,_0x438bef);},{'priority':'high'}),_0xb8aeba['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3ca79f,_0xff9af2,_0x1529b0)=>{const _0x1c09f6=_0x1529b0['mapper']['markerNameToElements'](_0xff9af2['markerName']);if(_0x1c09f6){for(const _0x220ef5 of _0x1c09f6)_0x220ef5['is']('uiElement')&&(_0x1529b0['mapper']['unbindElementFromMarkerName'](_0x220ef5,_0xff9af2['markerName']),_0x1529b0['writer']['remove'](_0x220ef5));}},{'priority':'high'});}}class z extends _0x16481a{['afterInit'](){const _0x3c80c2=this['editor'];if(!_0x3c80c2['plugins']['has']('ListEditing'))return;const _0x1c3525=_0x3c80c2['locale'],_0x17df51=_0x3c80c2['plugins']['get']('TrackChangesEditing'),_0x5be238=_0x3c80c2['plugins']['has']('TodoListEditing'),_0x17f464=!!_0x3c80c2['config']['get']('list.multiBlock');function _0x37b362(_0x5686eb){return{'type':'format','content':''+o(_0x1c3525,'*Set\x20format:*\x20%0',_0x5686eb)};}function _0x40f53b(_0x198997){return{'type':'format','content':''+o(_0x1c3525,'*Remove\x20format:*\x20%0',_0x198997)};}_0x17df51['enableDefaultAttributesIntegration']('numberedList'),_0x17df51['enableDefaultAttributesIntegration']('bulletedList'),_0x17df51['enableDefaultAttributesIntegration']('customNumberedList'),_0x17df51['enableDefaultAttributesIntegration']('customBulletedList'),_0x17df51['enableDefaultAttributesIntegration']('indentList'),_0x17df51['enableDefaultAttributesIntegration']('outdentList'),_0x17df51['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x17df51['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x17df51['registerBlockAttribute']('listItemId'),_0x17df51['registerBlockAttribute']('listType'),_0x17df51['registerBlockAttribute']('listIndent'),_0x17f464&&(_0x17df51['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x17df51['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5be238&&(_0x17df51['enableDefaultAttributesIntegration']('todoList'),_0x17df51['enableDefaultAttributesIntegration']('checkTodoList'),_0x17df51['registerBlockAttribute']('todoListChecked'),_0x17df51['descriptionFactory']['registerDescriptionCallback'](_0x27d3bf=>{const {data:_0x4af4c8}=_0x27d3bf;if(_0x4af4c8&&'todoListChecked'==_0x4af4c8['key'])return{'type':'format','content':_0x4af4c8['newValue']?o(_0x1c3525,'*Check\x20item*'):o(_0x1c3525,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x32fd16=>{if(_0x32fd16['batch']['isUndo'])return!0x1;let _0x47d86c=!0x1;const _0x4cce71=_0x17df51['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26c235=>'todoListChecked'===_0x17df51['_getAttributeKey'](_0x26c235));for(const _0x44da8c of _0x4cce71){'todo'!=_0x44da8c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x17df51['_findSuggestions'](_0x44da8c['getFirstRange'](),'attribute')['find'](_0xbf1131=>'listType'===_0x17df51['_getAttributeKey'](_0xbf1131['suggestion']))||(_0x32fd16['removeMarker'](_0x44da8c['getFirstMarker']()),_0x47d86c=!0x0));}return _0x47d86c;})),_0x17df51['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1c3525,'FORMAT_INDENT'));const _0x4b1729={'type':'format','content':''};_0x17df51['descriptionFactory']['registerDescriptionCallback'](_0x3e7b22=>{const {data:_0x57275a}=_0x3e7b22;if(!_0x57275a||'listType'!=_0x57275a['key'])return;let _0x47234e=_0x3e7b22['head'];for(;_0x47234e;){if(_0x47234e['data']&&(('listStyle'==_0x47234e['data']['key']||'listMarkerStyle'==_0x47234e['data']['key'])&&(_0x47234e['data']['newValue']&&'default'!=_0x47234e['data']['newValue']||'default'!=_0x47234e['data']['oldValue']&&!_0x57275a['newValue'])||!_0x17f464&&_0x47234e['data']['key']==m))return _0x4b1729;_0x47234e=_0x47234e['next'];}if(null==_0x57275a['newValue'])switch(_0x57275a['oldValue']){case'bulleted':return _0x40f53b(o(_0x1c3525,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40f53b(o(_0x1c3525,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40f53b(o(_0x1c3525,'ELEMENT_TODO_LIST'));}switch(_0x57275a['newValue']){case'bulleted':return _0x37b362(o(_0x1c3525,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x37b362(o(_0x1c3525,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x37b362(o(_0x1c3525,'ELEMENT_TODO_LIST'));}}),_0x17df51['descriptionFactory']['registerDescriptionCallback'](_0x519965=>{const {data:_0x58e32b}=_0x519965;if(_0x58e32b&&'listIndent'==_0x58e32b['key'])return null==_0x58e32b['newValue']||null==_0x58e32b['oldValue']&&0x0==_0x58e32b['newValue']?_0x4b1729:void 0x0;}),_0x17df51['descriptionFactory']['registerDescriptionCallback'](_0x240ae1=>{if('attribute'!=_0x240ae1['type'])return;const {data:_0x5886dd}=_0x240ae1;if(!_0x5886dd||'listItemId'!=_0x5886dd['key'])return;const _0x57ebb3=le(_0x240ae1);return'newValue'==_0x57ebb3?{'type':'format','content':o(_0x1c3525,'*Merge:*\x20list\x20item')}:'oldValue'==_0x57ebb3?{'type':'format','content':o(_0x1c3525,'*Split:*\x20list\x20item')}:_0x4b1729;}),_0x3c80c2['model']['document']['registerPostFixer'](_0xe3f40=>this['listItemIdFixer'](_0xe3f40)),_0x3c80c2['model']['document']['registerPostFixer'](_0x2bfbf5=>this['noTrackChangesFixer'](_0x2bfbf5)),_0x3c80c2['model']['document']['registerPostFixer'](_0x22e935=>this['assureChains'](_0x22e935)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x56f613){if(_0x56f613['batch']['isUndo']||!_0x56f613['batch']['isLocal'])return!0x1;let _0x246916=!0x1;const _0x54ae6f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17959f=>_0x17959f['data']&&'listItemId'==_0x17959f['data']['key'])['filter'](_0x1bacbb=>_0x1bacbb['data']['newValue']&&_0x1bacbb['data']['oldValue']);for(const _0x27491b of _0x54ae6f)le(_0x27491b)||(_0x56f613['removeMarker'](_0x27491b['getFirstMarker']()),_0x246916=!0x0);return _0x246916;}['noTrackChangesFixer'](_0x154f0b){if(_0x154f0b['batch']['isUndo']||!_0x154f0b['batch']['isLocal'])return!0x1;const _0x5ad3f5=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5ad3f5['trackChangesCommand']['value'])return!0x1;let _0x58db05=!0x1;const _0x1098b2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x445d20=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x30135f=>'attribute'==_0x30135f['type'])['filter'](_0x51013e=>_0x1098b2['includes'](_0x51013e['attributeKey']));if(0x0==_0x445d20['length'])return _0x58db05;for(const _0x2e5288 of _0x445d20){const _0xedbc3a=_0x5ad3f5['_findSuggestions'](_0x2e5288['range'],'attribute')['filter'](_0x4f5b66=>!_0x4f5b66['meta']['isNextTo'])['map'](_0x4f5bd1=>_0x4f5bd1['suggestion'])['filter'](_0x8ef0a0=>{const _0x27350f=_0x5ad3f5['_getAttributeKey'](_0x8ef0a0);return _0x1098b2['includes'](_0x27350f);});if(_0xedbc3a['length']){for(const _0x623f01 of _0xedbc3a)_0x154f0b['removeMarker'](_0x623f01['getFirstMarker']());_0x58db05=!0x0;}}return _0x58db05;}['assureChains'](_0x20a5ba){if(_0x20a5ba['batch']['isUndo']||!_0x20a5ba['batch']['isLocal'])return!0x1;const _0x35a246=this['editor']['plugins']['get']('TrackChangesEditing');let _0x2c14f4=!0x1;const _0x5c8bc0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x2a3dcb of _0x35a246['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d082f=_0x35a246['_findSuggestions'](_0x2a3dcb['getFirstRange'](),'attribute')['map'](_0x163d29=>_0x163d29['suggestion'])['filter'](_0x482d24=>_0x482d24['data']&&_0x5c8bc0['includes'](_0x482d24['data']['key']));if(!_0x5d082f['length'])continue;const _0x3f180b=_0x5d082f[0x0]['head']['attributes']['groupId'];if(!_0x5d082f['every'](_0x4100f4=>_0x4100f4['attributes']['groupId']===_0x3f180b)){for(const _0x20d86e of _0x5d082f)_0x166e4d(_0x20d86e,_0x3f180b)&&(_0x2c14f4=!0x0);}}return _0x2c14f4;function _0x17965b(_0x38bf7c,_0x19652d){for(const _0x2dc3e6 of _0x35a246['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x357900=>'attribute'==_0x357900['type']&&_0x357900['attributes']['groupId']==_0x38bf7c))_0x2dc3e6['setAttribute']('groupId',_0x19652d);}function _0x166e4d(_0x2f0a8f,_0x46d48b){let _0x1d53b1=_0x2f0a8f['head'],_0x5cbf09=!0x1;for(;_0x1d53b1;)_0x1d53b1['attributes']['groupId']!=_0x46d48b&&(_0x17965b(_0x1d53b1['attributes']['groupId'],_0x46d48b),_0x1d53b1['setAttribute']('groupId',_0x46d48b),_0x5cbf09=!0x0),_0x1d53b1=_0x1d53b1['next'];return _0x5cbf09;}}['_supportLegacySuggestions'](){const _0x3aee2d=this['editor'],_0x4b0144=_0x3aee2d['locale'],_0x821a10=_0x3aee2d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x821a10['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x458879,_0x2c08ff){const _0x2c8f39=[];for(let _0x242e29 of _0x458879)_0x242e29['start']['nodeAfter']===_0x242e29['end']['parent']&&(_0x242e29=_0x3aee2d['model']['createRange'](_0x3aee2d['model']['createPositionAt'](_0x242e29['start']['nodeAfter'],0x0))),_0x2c8f39['push'](_0x242e29);_0x3aee2d['model']['change'](_0x53d303=>{const _0x53e563=_0x3aee2d['model']['document']['selection'],_0x1925cb=Array['from'](_0x53e563['getRanges']())['map'](_0x177ed3=>_0x55c0b1['fromRange'](_0x177ed3));_0x53d303['setSelection'](_0x2c8f39),_0x3aee2d['commands']['get'](_0x2c08ff['commandName'])['refresh'](),_0x2c08ff['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3aee2d['execute'](_0x2c08ff['commandName'],..._0x2c08ff['commandParams']),_0x53d303['setSelection'](_0x1925cb);for(const _0x3e316f of _0x1925cb)_0x3e316f['detach']();});}),_0x821a10['descriptionFactory']['registerElementLabel'](function(_0x41a6e2){const _0xabc638=!_0x3aee2d['model']['schema']['isObject'](_0x41a6e2),_0x1ea525=_0x41a6e2['previousSibling'],_0x21a090=_0x41a6e2['nextSibling'],_0x70d164=_0x41a6e2['getAttribute']('listItemId'),_0x72f497=!_0x1ea525||_0x1ea525['getAttribute']('listItemId')!==_0x70d164,_0x16b861=!_0x21a090||_0x21a090['getAttribute']('listItemId')!==_0x70d164;return _0xabc638&&Boolean(_0x70d164)&&_0x72f497&&_0x16b861;},_0x57eb98=>o(_0x4b0144,'ELEMENT_LIST_ITEM',_0x57eb98));}['_registerLegacyDescription'](){const _0xced12a=this['editor'],_0x4c1eca=_0xced12a['locale'];function _0x97c4b6(_0x4c112e){const _0x3ace45=_0xced12a['commands']['get']('bulletedList')['value'],_0x446e21=_0xced12a['commands']['get']('numberedList')['value'];return'numberedList'===_0x4c112e?_0x3ace45:_0x446e21;}_0xced12a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x285755){if('formatBlock'!=_0x285755['type'])return;const {data:_0xf9af47}=_0x285755;if(!_0xf9af47)return;let _0x4c451c,_0x5b4296,_0x6f8cd4,_0x12561d;switch(_0xf9af47['commandName']){case'bulletedList':_0x6f8cd4=_0xf9af47['commandParams'][0x0]['forceValue'],_0x12561d=_0x97c4b6(_0xf9af47['commandName']),_0x4c451c=_0x6f8cd4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x12561d&&_0xced12a['config']['get']('list.multiBlock')||(_0x4c451c='*Change\x20to:*\x20%0'),_0x5b4296={'type':'format','content':o(_0x4c1eca,_0x4c451c,o(_0x4c1eca,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x6f8cd4=_0xf9af47['commandParams'][0x0]['forceValue'],_0x12561d=_0x97c4b6(_0xf9af47['commandName']),_0x4c451c=_0x6f8cd4?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x12561d&&_0xced12a['config']['get']('list.multiBlock')||(_0x4c451c='*Change\x20to:*\x20%0'),_0x5b4296={'type':'format','content':o(_0x4c1eca,_0x4c451c,o(_0x4c1eca,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4c451c='*Indent:*\x20%0',_0x5b4296={'type':'format','content':o(_0x4c1eca,_0x4c451c,o(_0x4c1eca,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4c451c=function(_0x3f8577){const _0x5ed01a=_0x3f8577['getFirstRange']();let _0x2f3f19=_0x5ed01a['start']['nodeAfter'];for(;_0x2f3f19&&_0x5ed01a['containsItem'](_0x2f3f19);){if(_0x2f3f19['getAttribute']('listIndent')>0x0)return!0x1;_0x2f3f19=_0x2f3f19['nextSibling'];}return!0x0;}(_0x285755)?o(_0x4c1eca,'*Format:*\x20remove\x20from\x20%0',o(_0x4c1eca,function(_0x2bd444){return'ELEMENT_'+_0x2bd444['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x285755))):o(_0x4c1eca,'*Outdent:*\x20%0',o(_0x4c1eca,'ELEMENT_LIST_ITEM')),_0x5b4296={'type':'format','content':_0x4c451c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xf9af47['multipleBlocks']&&(_0x4c451c='*Merge:*\x20%0',_0x5b4296={'type':'deletion','content':o(_0x4c1eca,_0x4c451c,o(_0x4c1eca,'ELEMENT_LIST_ITEM'))});}return _0x5b4296;});}}function le(_0x314568){let _0x4108d0=_0x314568['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4108d0;){const _0x452a37=_0x4108d0['getAttribute']('listItemId');if(!_0x452a37)return!0x1;if(_0x452a37==_0x314568['data']['newValue'])return'newValue';if(_0x452a37==_0x314568['data']['oldValue'])return'oldValue';_0x4108d0=_0x4108d0['previousSibling'];}return!0x1;}class ue extends _0x16481a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x27bad0=this['editor']['config']['get']('list.properties'),_0x1bf164=this['editor']['plugins']['get']('TrackChangesEditing');_0x27bad0['styles']&&(_0x1bf164['enableDefaultAttributesIntegration']('listStyle'),_0x1bf164['registerBlockAttribute']('listStyle')),_0x27bad0['reversed']&&(_0x1bf164['enableDefaultAttributesIntegration']('listReversed'),_0x1bf164['registerBlockAttribute']('listReversed')),_0x27bad0['startIndex']&&(_0x1bf164['enableDefaultAttributesIntegration']('listStart'),_0x1bf164['registerBlockAttribute']('listStart'));const _0x5ae588={'type':'format','content':''};_0x1bf164['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x129100=this['editor']['locale'];_0x1bf164['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x129100,'FORMAT_LIST_REVERSED')),_0x1bf164['descriptionFactory']['registerDescriptionCallback'](_0x4e7767=>{const {data:_0x2da2bf}=_0x4e7767;if(_0x2da2bf&&'listReversed'==_0x2da2bf['key'])return null==_0x2da2bf['newValue']||0x0==_0x2da2bf['newValue']&&null==_0x2da2bf['oldValue']?_0x5ae588:void 0x0;}),_0x1bf164['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x129100,'FORMAT_LIST_START')),_0x1bf164['descriptionFactory']['registerDescriptionCallback'](_0x533502=>{const {data:_0x5b4a3b}=_0x533502;if(_0x5b4a3b&&'listStart'==_0x5b4a3b['key'])return null==_0x5b4a3b['newValue']||0x1==_0x5b4a3b['newValue']&&null==_0x5b4a3b['oldValue']?_0x5ae588:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2d516b=>{if(_0x2d516b['batch']['isUndo'])return!0x1;let _0x57b279=!0x1;const _0x3b6243=_0x1bf164['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d0c70=>{const _0x412664=_0x1bf164['_getAttributeKey'](_0x5d0c70);return'listStart'==_0x412664||'listReversed'==_0x412664;});for(const _0x518ecb of _0x3b6243){const _0x36be6b=_0x518ecb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x36be6b||'customNumbered'==_0x36be6b)continue;_0x1bf164['_findSuggestions'](_0x518ecb['getFirstRange'](),'attribute')['find'](_0x1bebb8=>'listType'==_0x1bf164['_getAttributeKey'](_0x1bebb8['suggestion']))||(_0x2d516b['removeMarker'](_0x518ecb['getFirstMarker']()),_0x57b279=!0x0);}return _0x57b279;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xaf3b30){const _0x1d8795=this['editor']['locale'],{data:_0x20f7b5}=_0xaf3b30,_0x574c9b={'type':'format','content':''};if(!_0x20f7b5||'listStyle'!=_0x20f7b5['key'])return;if(!_0x20f7b5['oldValue'])return'default'==_0x20f7b5['newValue']?_0x574c9b:{'type':'format','content':''+o(_0x1d8795,'*Set\x20format:*\x20%0',o(_0x1d8795,this['_getTranslationKeyForListStyle'](_0x20f7b5['newValue'])))};if(!_0x20f7b5['newValue']){if('default'==_0x20f7b5['oldValue'])return _0x574c9b;let _0x4c5b37=_0xaf3b30['head'];for(;_0x4c5b37;){if(_0x4c5b37['data']&&'listType'==_0x4c5b37['data']['key']&&_0x4c5b37['data']['newValue'])return _0x574c9b;_0x4c5b37=_0x4c5b37['next'];}return{'type':'format','content':''+o(_0x1d8795,'*Remove\x20format:*\x20%0',o(_0x1d8795,this['_getTranslationKeyForListStyle'](_0x20f7b5['oldValue'])))};}if('default'!=_0x20f7b5['newValue'])return{'type':'format','content':''+o(_0x1d8795,'*Set\x20format:*\x20%0',o(_0x1d8795,this['_getTranslationKeyForListStyle'](_0x20f7b5['newValue'])))};let _0x249f17=_0xaf3b30['head'];for(;_0x249f17;){if(_0x249f17['data']&&'listType'==_0x249f17['data']['key']&&_0x249f17['data']['newValue']&&_0x249f17['data']['oldValue'])return _0x574c9b;_0x249f17=_0x249f17['next'];}return{'type':'format','content':o(_0x1d8795,'*Set\x20format:*\x20%0',o(_0x1d8795,'ELEMENT_'+_0xaf3b30['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xe5cdaa=this['editor'],_0x1f0ec7=_0xe5cdaa['locale'];_0xe5cdaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a0b62=>{if('formatBlock'!=_0x3a0b62['type'])return;const {data:_0x8002de}=_0x3a0b62;if(!_0x8002de)return;let _0x554416,_0x426a0e;switch(_0x8002de['commandName']){case'listStyle':_0x554416='*Change\x20to:*\x20%0',_0x426a0e={'type':'format','content':o(_0x1f0ec7,_0x554416,o(_0x1f0ec7,this['_getTranslationKeyForListStyle'](_0x8002de['commandParams'][0x0]['type'])))};break;case'listReversed':_0x554416=_0x8002de['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x426a0e={'type':'format','content':o(_0x1f0ec7,_0x554416)};break;case'listStart':_0x554416='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x426a0e={'type':'format','content':o(_0x1f0ec7,_0x554416,_0x8002de['commandParams'][0x0]['startIndex'])};}return _0x426a0e;});}['_getTranslationKeyForListStyle'](_0x540276){return'ELEMENT_'+function(_0x58bcd3){if(pe['includes'](_0x58bcd3))return'bulleted';if(ye['includes'](_0x58bcd3))return'numbered';return null;}(_0x540276)['toUpperCase']()+'_LIST_'+_0x540276['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x16481a{static get['requires'](){return[_0x22e146];}['init'](){const _0x2345c6=this['editor'],_0x410504=_0x2345c6['plugins']['get']('TrackChangesEditing'),_0x5e2039=_0x2345c6['commands']['get']('enter');_0x410504['enableCommand']('enter',()=>{_0x2345c6['model']['change'](_0x845f7f=>{const _0x46a851=_0x2345c6['model']['document']['selection'],_0x5b810b=_0x46a851['getFirstPosition'](),_0xc15533=_0x55c0b1['fromRange'](_0x46a851['getFirstRange']());if(_0x5e2039['enterBlock'](_0x845f7f)){const _0x141d5f=_0x2345c6['model']['createPositionAt'](_0x5b810b['parent']['nextSibling'],0x0),_0x1e928b=_0x845f7f['createRange'](_0x5b810b,_0x141d5f);_0x410504['markInsertion'](_0x1e928b);}else _0x845f7f['setSelection'](_0x845f7f['createRange'](_0xc15533['end']));_0xc15533['detach'](),_0x5e2039['fire']('afterExecute',{'writer':_0x845f7f});});}),_0x2345c6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2345c6,'split'),{'priority':'high'}),_0x2345c6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x25b506,_0x4ceea3,_0x3675ca)=>{const _0x582e99=_0x3675ca['mapper']['markerNameToElements'](_0x4ceea3['markerName']);if(_0x582e99){for(const _0x295265 of _0x582e99)_0x295265['hasClass']('ck-suggestion-marker-split')&&(_0x3675ca['mapper']['unbindElementFromMarkerName'](_0x295265,_0x4ceea3['markerName']),_0x3675ca['writer']['remove'](_0x295265));}},{'priority':'high'}),_0x2345c6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5008ce,_0x28bbd4,_0x5994e6)=>{_0x5994e6['options']['showSuggestionHighlights']&&_e(_0x2345c6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5008ce,_0x28bbd4,_0x5994e6);},{'priority':'high'});}}class J extends _0x16481a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x24acc0=this['editor']['plugins']['get']('TrackChangesEditing');_0x24acc0['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x24acc0['enableCommand']('findNext'),_0x24acc0['enableCommand']('findPrevious'),_0x24acc0['enableCommand']('replace'),_0x24acc0['enableCommand']('replaceAll');}['handleFindCommand'](_0x107240,_0x327394,_0x49a5ab={}){const _0x1b11f1=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x107240(_0x1d34cd=>('string'==typeof _0x327394?_0x1b11f1['findByTextCallback'](_0x327394,_0x49a5ab):_0x327394)(_0x1d34cd)['filter'](_0x21f581=>!0x1===this['_isInDeletionRange'](_0x21f581,_0x1d34cd['item'])),_0x49a5ab);}['_isInDeletionRange'](_0x3f25e3,_0x4ce6ac){const _0x44d2ca=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4ce6ac,_0x3f25e3['start']),this['editor']['model']['createPositionAt'](_0x4ce6ac,_0x3f25e3['end']));for(const _0x1ed16d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x44d2ca['getIntersection'](_0x1ed16d['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 _0x16481a{['afterInit'](){const _0x3fdaff=this['editor']['locale'],_0x429616=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5e35a3,commandName:_0x4b99ae}of ro)this['editor']['plugins']['has'](_0x5e35a3)&&(_0x429616['enableDefaultAttributesIntegration'](_0x4b99ae),_0x429616['registerInlineAttribute'](_0x4b99ae));_0x429616['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3fdaff,'FORMAT_FONT_SIZE')),_0x429616['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3fdaff,'FORMAT_FONT_FAMILY')),_0x429616['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3fdaff,'FORMAT_FONT_COLOR')),_0x429616['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3fdaff,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bbd64=this['editor'],_0x2bde48=_0x1bbd64['locale'];_0x1bbd64['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b42ca=>{const _0x41e5b4=_0x2bde48['t'];if('formatInline'!=_0x5b42ca['type'])return;const {data:_0x3e9bb1}=_0x5b42ca;if(null!=_0x3e9bb1){if('fontSize'==_0x3e9bb1['commandName']){const _0x36ea33=_0x3e9bb1['commandParams'][0x0]['value'];if(_0x36ea33){const _0x2d9ab7=_0x41e5b4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1a4dfd=>_0x1a4dfd['model']==_0x36ea33)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2bde48,'*Set\x20font\x20size:*\x20%0',_0x2d9ab7)};}return{'type':'format','content':o(_0x2bde48,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3e9bb1['commandName']){const _0x232054=_0x3e9bb1['commandParams'][0x0]['value'];return _0x232054?{'type':'format','content':o(_0x2bde48,'*Set\x20font\x20family:*\x20%0',_0x232054)}:{'type':'format','content':o(_0x2bde48,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3e9bb1['commandName']){const _0x139740=_0x3e9bb1['commandParams'][0x0]['value'];if(_0x139740){const _0x59060d=_0x5e1628(this['editor']['config']['get']('fontColor.colors'))['find'](_0x224949=>_0x224949['model']==_0x139740);let _0x347e3e=_0x139740,_0x51c948='';return _0x59060d&&(_0x347e3e=_0x59060d['label'],_0x51c948=_0x41e5b4(_0x347e3e)['toLowerCase']()),{'type':'format','content':o(_0x2bde48,'*Set\x20font\x20color:*\x20%0',_0x51c948)['trim'](),'color':{'value':_0x139740,'title':_0x51c948||_0x347e3e}};}return{'type':'format','content':o(_0x2bde48,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3e9bb1['commandName']){const _0x242c8b=_0x3e9bb1['commandParams'][0x0]['value'];if(_0x242c8b){const _0x291630=_0x5e1628(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xe03dc6=>_0xe03dc6['model']==_0x242c8b);let _0x2d8ec6=_0x242c8b,_0x5256a4='';return _0x291630&&(_0x2d8ec6=_0x291630['label'],_0x5256a4=_0x41e5b4(_0x2d8ec6)['toLowerCase']()),{'type':'format','content':o(_0x2bde48,'*Set\x20font\x20background\x20color:*\x20%0',_0x5256a4)['trim'](),'color':{'value':_0x242c8b,'title':_0x5256a4||_0x2d8ec6}};}return{'type':'format','content':o(_0x2bde48,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x16481a{['afterInit'](){const _0x4f85ac=this['editor'],_0x490e7b=_0x4f85ac['plugins']['get']('TrackChangesEditing'),_0x3375f4=_0x4f85ac['commands']['get']('copyFormat'),_0x317e9f=_0x4f85ac['commands']['get']('pasteFormat');_0x3375f4&&_0x317e9f&&(_0x490e7b['enableDefaultAttributesIntegration']('pasteFormat'),_0x490e7b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x538eef=this['editor'],_0x5b3a9f=_0x538eef['locale'];_0x538eef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47d24c=>{if('formatBlock'!=_0x47d24c['type']&&'formatInline'!=_0x47d24c['type'])return;const {data:_0x303503}=_0x47d24c;if(_0x303503&&'pasteFormat'===_0x303503['commandName']){const _0xe60b30=[],_0x4f4689=_0x303503['commandParams'][0x0];for(const [_0x3b66cd,_0x3e8f7a]of Object['entries'](_0x4f4689))_0xe60b30['push'](so(_0x538eef,_0x3b66cd,_0x3e8f7a));return _0xe60b30['length']?{'type':'format','content':o(_0x5b3a9f,'*Set\x20format\x20to:*\x20%0',_0xe60b30['join'](',\x20'))}:{'type':'format','content':o(_0x5b3a9f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x531364,_0x3e052e,_0x459327){const _0x5c8f0d=_0x531364['locale']['t'],_0x5d5c64=_0x3e052e['split'](/(?=[A-Z])/)['join']('\x20'),_0x1c28ca=_0x5c8f0d(_0x5d5c64['charAt'](0x0)['toUpperCase']()+_0x5d5c64['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x459327)return _0x1c28ca;if('fontColor'===_0x3e052e||'fontBackgroundColor'===_0x3e052e){const _0x13e514=_0x5e1628(_0x531364['config']['get']('fontColor.colors'))['find'](_0x25e058=>_0x25e058['model']==_0x459327);return _0x1c28ca+'\x20('+(_0x13e514?_0x5c8f0d(_0x13e514['label'])['toLowerCase']():_0x459327)+')';}if('fontSize'===_0x3e052e&&isNaN(parseFloat(_0x459327))){const _0x12c8ee=_0x531364['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x531364['config']['get']('fontSize.options'))['find'](_0x5c5cda=>_0x5c5cda['model']==_0x459327);return _0x1c28ca+'\x20('+(_0x12c8ee?_0x5c8f0d(_0x12c8ee['title'])['toLowerCase']():_0x459327)+')';}return _0x1c28ca+'\x20('+_0x459327+')';}class Y extends _0x16481a{['_headingOptions'];['afterInit'](){const _0x562bf4=this['editor'];if(!_0x562bf4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x562bf4['config']['get']('heading.options');const _0x37a24=_0x562bf4['locale'],_0x32a642=_0x562bf4['plugins']['get']('TrackChangesEditing');_0x32a642['enableDefaultAttributesIntegration']('heading');for(const _0x22c7f5 of this['_headingOptions'])'paragraph'!=_0x22c7f5['model']&&_0x32a642['descriptionFactory']['registerElementLabel'](_0x22c7f5['model'],_0x4baeb4=>{const _0x145c92=this['_getHeadingLevel'](_0x22c7f5['model']);return null!==_0x145c92?_0x578360(_0x4baeb4,_0x145c92):_0x326496(_0x4baeb4,_0x22c7f5['title']);});function _0x578360(_0x15d91b,_0x218468){return o(_0x37a24,'ELEMENT_HEADING',[_0x15d91b,_0x218468]);}function _0x326496(_0x5ce30c,_0x3e331e){return o(_0x37a24,'ELEMENT_HEADING_CUSTOM',[_0x5ce30c,_0x3e331e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2035cc=this['editor'],_0x3a2433=_0x2035cc['locale'];function _0x4af330(_0x2dec1f,_0x40efd2){return o(_0x3a2433,'ELEMENT_HEADING_CUSTOM',[_0x2dec1f,_0x40efd2]);}_0x2035cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4858fb=>{if('formatBlock'!=_0x4858fb['type'])return;const {data:_0x5b8c0f}=_0x4858fb;if(_0x5b8c0f&&'heading'==_0x5b8c0f['commandName']){const _0x190b68=_0x5b8c0f['commandParams'][0x0]['value'],_0x583311=this['_getHeadingLevel'](_0x190b68);if(null!==_0x583311)return{'type':'format','content':o(_0x3a2433,'*Change\x20to:*\x20%0',(_0x154ef3=0x1,_0x5c0538=_0x583311,o(_0x3a2433,'ELEMENT_HEADING',[_0x154ef3,_0x5c0538])))};const _0x176cd5=this['_headingOptions']['find'](_0x222570=>_0x222570['model']===_0x190b68)['title'];return{'type':'format','content':o(_0x3a2433,'*Change\x20to:*\x20%0',_0x4af330(0x1,_0x176cd5))};}var _0x154ef3,_0x5c0538;});}['_getHeadingLevel'](_0x21d0e8){const _0xb392fd=_0x21d0e8['match'](/^heading(\d+)/);if(_0xb392fd)return _0xb392fd[0x1];const _0x1a04e3=this['_headingOptions']?.['find'](_0x4f3c74=>_0x4f3c74['model']==_0x21d0e8);if(_0x1a04e3&&_0x1a04e3['view']){const _0x262d1d=_0x1a04e3['view'],_0x1e7efd=(_0x262d1d['name']??_0x262d1d)['match'](/^h(\d+)/);if(_0x1e7efd)return _0x1e7efd[0x1];}return null;}}class Z extends _0x16481a{['afterInit'](){const _0x5cbdd6=this['editor'];if(!_0x5cbdd6['plugins']['has']('HighlightEditing'))return;const _0x4bd0dc=_0x5cbdd6['plugins']['get']('TrackChangesEditing'),_0x42f8c5=_0x5cbdd6['locale'];_0x4bd0dc['enableDefaultAttributesIntegration']('highlight'),_0x4bd0dc['registerInlineAttribute']('highlight'),_0x4bd0dc['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x42f8c5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1839fe=this['editor'],_0x404e5d=_0x1839fe['locale'];_0x1839fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11ad5e=>{if('formatInline'!=_0x11ad5e['type'])return;const {data:_0x2e157c}=_0x11ad5e;if(_0x2e157c&&'highlight'==_0x2e157c['commandName']){const _0x5c57fc=_0x404e5d['t'],_0xf93787=_0x2e157c['commandParams'][0x0]['value'];if(_0xf93787){const _0x461b84=_0x1839fe['config']['get']('highlight.options')['find'](_0x4bff55=>_0x4bff55['model']==_0xf93787),_0x403d75=_0x5c57fc(_0x461b84['title'])['toLowerCase']();return{'type':'format','content':o(_0x404e5d,'*Set\x20highlight:*\x20%0',_0x403d75),'color':{'value':_0x461b84['color'],'title':_0x461b84['title']}};}return{'type':'format','content':o(_0x404e5d,'*Remove\x20highlight*',o(_0x404e5d,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x16481a{['afterInit'](){const _0x5e7d8e=this['editor'];if(!_0x5e7d8e['plugins']['has']('HorizontalLineEditing'))return;_0x5e7d8e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x562fef=_0x5e7d8e['plugins']['get']('TrackChangesEditing'),_0xff6c3a=_0x5e7d8e['locale'];_0x562fef['descriptionFactory']['registerElementLabel']('horizontalLine',_0xf5de19=>o(_0xff6c3a,'ELEMENT_HORIZONTAL_LINE',_0xf5de19)),_0x5e7d8e['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x44d142,{writer:_0xae8c73,options:_0x5b355c})=>{if(!_0x5b355c['showSuggestionHighlights'])return null;const _0x2c617a=_0xae8c73['createContainerElement']('div'),_0x54ce40=_0xae8c73['createEmptyElement']('hr');return _0xae8c73['addClass']('ck-horizontal-line',_0x2c617a),_0xae8c73['insert'](_0xae8c73['createPositionAt'](_0x2c617a,0x0),_0x54ce40),_0x2c617a;},'converterPriority':'high'});}}class et extends _0x16481a{['afterInit'](){const _0x5d55d2=this['editor'];if(!_0x5d55d2['plugins']['has']('HtmlEmbed'))return;const _0x436a39=_0x5d55d2['plugins']['get']('TrackChangesEditing'),_0x2b5e1d=_0x5d55d2['locale'];_0x436a39['descriptionFactory']['registerElementLabel']('rawHtml',_0x47534e=>o(_0x2b5e1d,'ELEMENT_HTML_EMBED',_0x47534e)),_0x436a39['enableDefaultAttributesIntegration']('htmlEmbed'),_0x436a39['registerBlockAttribute']('value'),_0x436a39['descriptionFactory']['registerDescriptionCallback'](_0x536909=>{if('attribute'!=_0x536909['type'])return;const {data:_0x7962e9}=_0x536909;if(_0x7962e9&&'value'==_0x7962e9['key']&&_0x536909['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3f555c=o(_0x2b5e1d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b5e1d,'*Change\x20%0\x20content*',_0x3f555c)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f9ec8=this['editor'],_0x20f527=_0x4f9ec8['locale'];_0x4f9ec8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2298bf=>{if('formatBlock'!=_0x2298bf['type'])return;const {data:_0x485fbc}=_0x2298bf;if(_0x485fbc&&'htmlEmbed'==_0x485fbc['commandName']){const _0x5a812a=o(_0x20f527,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x20f527,'*Change\x20%0\x20content*',_0x5a812a)};}});}}class it extends _0x16481a{['afterInit'](){const _0xc9ef2e=this['editor'];if(!_0xc9ef2e['plugins']['has']('ImageEditing'))return;const _0x427218=_0xc9ef2e['plugins']['get']('TrackChangesEditing'),_0x20e6d9=_0xc9ef2e['plugins']['get']('ImageUtils'),_0x4580fe=_0xc9ef2e['locale'];_0x427218['enableCommand']('insertImage'),_0x427218['descriptionFactory']['registerElementLabel']('imageBlock',_0x42e5fe=>o(_0x4580fe,'ELEMENT_IMAGE',_0x42e5fe)),_0x427218['descriptionFactory']['registerElementLabel']('imageInline',_0x133405=>o(_0x4580fe,'ELEMENT_INLINE_IMAGE',_0x133405)),_0x427218['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4580fe,'ELEMENT_CAPTION')),_0xc9ef2e['plugins']['has']('ImageUploadEditing')&&_0x427218['enableCommand']('uploadImage'),_0xc9ef2e['plugins']['has']('ImageBlockEditing')&&_0xc9ef2e['plugins']['has']('ImageInlineEditing')&&(_0x427218['enableCommand']('imageTypeInline',(_0x7081d3,_0x2cb108)=>{const _0x56550e=_0x20e6d9['getClosestSelectedImageElement'](_0xc9ef2e['model']['document']['selection']);_0xc9ef2e['model']['change'](()=>{_0x427218['markBlockFormat'](_0x56550e,{'commandName':'imageTypeInline','commandParams':[_0x2cb108]},[],'convertBlockImageToInline');});}),_0x427218['enableCommand']('imageTypeBlock',(_0x296af7,_0x5f56bb)=>{_0xc9ef2e['model']['change'](_0x3f9da6=>{let _0x2eb792=_0x20e6d9['getClosestSelectedImageElement'](_0xc9ef2e['model']['document']['selection']),_0x39cfcb=_0x3f9da6['createRangeOn'](_0x2eb792);const _0x2aca89=_0x787259['fromPosition'](_0x39cfcb['start'],'toPrevious'),_0x22daa2=_0x787259['fromPosition'](_0x39cfcb['end'],'toNext');_0x427218['forceDefaultExecution'](()=>_0x296af7(_0x5f56bb)),_0x2eb792=_0x20e6d9['getClosestSelectedImageElement'](_0xc9ef2e['model']['document']['selection']),_0x39cfcb=_0x3f9da6['createRangeOn'](_0x2eb792);const _0x52255a=_0x3f9da6['createRange'](_0x2aca89,_0x22daa2);_0x2aca89['detach'](),_0x22daa2['detach'](),_0x427218['markBlockFormat'](_0x2eb792,{'commandName':'imageTypeInline','commandParams':[_0x5f56bb]},[],'convertInlineImageToBlock'),_0x52255a['start']['isBefore'](_0x39cfcb['start'])&&_0x427218['markInsertion'](_0x3f9da6['createRange'](_0x52255a['start'],_0x39cfcb['start']),'convertInlineImageToBlock'),_0x39cfcb['end']['isBefore'](_0x52255a['end'])&&_0x427218['markInsertion'](_0x3f9da6['createRange'](_0x39cfcb['end'],_0x52255a['end']),'convertInlineImageToBlock');});}),_0x427218['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x427218['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x427218['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x427218['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x427218['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x427218['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x13a152])=>{const _0x1bab36=_0x427218['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x269d0d=_0x13a152['start'],_0x2e35c0=_0x13a152['end'];const _0x187569=_0xc9ef2e['model']['schema']['getNearestSelectionRange'](_0x269d0d,'backward'),_0x1117d9=_0xc9ef2e['model']['schema']['getNearestSelectionRange'](_0x2e35c0,'forward');_0x187569['isCollapsed']&&(_0x269d0d=_0x187569['start']),_0x1117d9['isCollapsed']&&(_0x2e35c0=_0x1117d9['end']),_0x1bab36([_0xc9ef2e['model']['createRange'](_0x269d0d,_0x2e35c0)]);}),_0x427218['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x10644f),_0x427218['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x10644f)),_0xc9ef2e['plugins']['has']('ImageCaptionEditing')&&(_0x427218['enableCommand']('toggleImageCaption',(_0x243bf3,_0x4d4da6)=>{const _0x26eba1=_0xc9ef2e['plugins']['get']('ImageCaptionUtils');let _0x48283b=_0x20e6d9['getClosestSelectedImageElement'](_0xc9ef2e['model']['document']['selection']),_0x471e56=_0x26eba1['getCaptionFromImageModelElement'](_0x48283b);_0xc9ef2e['model']['change'](()=>{if(_0x471e56)return void _0x427218['markDeletion'](_0xc9ef2e['model']['createRangeOn'](_0x471e56));const _0x2f0d07=_0x20e6d9['isBlockImage'](_0x48283b);_0x243bf3(_0x4d4da6),_0x48283b=_0x20e6d9['getClosestSelectedImageElement'](_0xc9ef2e['model']['document']['selection']),_0x471e56=_0x26eba1['getCaptionFromImageModelElement'](_0x48283b),_0x427218['markInsertion'](_0xc9ef2e['model']['createRangeOn'](_0x471e56),_0x2f0d07?null:'imageCaption');});}),_0x427218['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x10644f));const _0x221ec7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x433b09(_0x3dfb59,_0x484e66){const _0x2a059d=_0x221ec7['findIndex'](({type:_0x39a1a6,subType:_0x24743f})=>_0x3dfb59['type']==_0x39a1a6&&_0x3dfb59['subType']==_0x24743f),_0x327522=_0x221ec7['findIndex'](({type:_0x468957,subType:_0x61cbe1})=>_0x484e66['type']==_0x468957&&_0x484e66['subType']==_0x61cbe1);if(_0x2a059d<0x0||_0x327522<0x0)return!0x1;const _0x2f979d=_0x3dfb59['getFirstRange'](),_0x2870a4=_0x484e66['getFirstRange']();if((0x0==_0x2a059d||0x1==_0x2a059d)&&0x2==_0x327522&&_0x2f979d['isIntersecting'](_0x2870a4))return!0x0;if(0x2==_0x2a059d&&0x3==_0x327522){const _0x46c27a=_0x427218['_findSuggestions'](_0x2f979d,'insertion')['filter'](({suggestion:_0x5f00eb,meta:_0x5619cc})=>_0x5619cc['isOwn']&&'convertInlineImageToBlock'==_0x5f00eb['subType']);if(_0x46c27a['length']>0x1&&_0x2870a4['end']['isEqual'](_0x2f979d['start']))return!0x0;if(0x1==_0x46c27a['length']&&(_0x2f979d['start']['isEqual'](_0x2870a4['end'])||_0x2f979d['end']['isEqual'](_0x2870a4['start'])))return!0x0;}if(0x3==_0x2a059d&&0x3==_0x327522&&_0x2f979d['start']['isBefore'](_0x2870a4['start'])){const _0x2fbc07=_0x2f979d['end']['nodeAfter'],_0x202e2a=_0x2870a4['start']['nodeBefore'];return _0x20e6d9['isBlockImage'](_0x2fbc07)&&_0x2fbc07===_0x202e2a;}return!0x1;}function _0x10644f(_0x467639,_0xdb8a46){return _0x433b09(_0x467639,_0xdb8a46)?[_0x467639,_0xdb8a46]:_0x433b09(_0xdb8a46,_0x467639)?[_0xdb8a46,_0x467639]:null;}_0xc9ef2e['plugins']['has']('ImageResize')&&(_0x427218['enableDefaultAttributesIntegration']('resizeImage'),_0x427218['registerBlockAttribute']('resizedWidth'),_0x427218['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4580fe,'FORMAT_IMAGE_SIZE'))),_0xc9ef2e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x427218['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x427218['registerBlockAttribute']('alt')),_0x427218['descriptionFactory']['registerDescriptionCallback'](_0xd345cf=>{if(!!_0x221ec7['find'](({type:_0x104d56,subType:_0x4add19})=>_0xd345cf['type']==_0x104d56&&_0xd345cf['subType']==_0x4add19))return _0xd345cf['previous']?{}:void 0x0;}),_0x427218['descriptionFactory']['registerDescriptionCallback'](_0x2794bf=>{if('insertion'==_0x2794bf['type']||'deletion'==_0x2794bf['type']){const _0x581bba=_0x2794bf['getContainedElement']();if(_0x581bba&&_0x581bba['is']('element','caption'))return{'type':'insertion'==_0x2794bf['type']?'addObject':'removeObject','element':_0x581bba,'quantity':0x1};}}),_0x427218['descriptionFactory']['registerDescriptionCallback'](_0x2474c1=>'formatBlock'==_0x2474c1['type']&&'convertInlineImageToBlock'==_0x2474c1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2474c1['type']&&'convertBlockImageToInline'==_0x2474c1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x427218['descriptionFactory']['registerDescriptionCallback'](_0x42f2af=>{if('attribute'!=_0x42f2af['type'])return;const {data:_0x45226c}=_0x42f2af;if(!_0x45226c||'alt'!=_0x45226c['key'])return;const _0x50dd00=_0x45226c['newValue'];return _0x50dd00?{'type':'format','content':o(_0x4580fe,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x50dd00+'\x22')}:{'type':'format','content':o(_0x4580fe,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8b6c99=this['editor'],_0x41149e=_0x8b6c99['locale'];_0x8b6c99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x276639=>{if('formatBlock'!=_0x276639['type']&&'formatInline'!=_0x276639['type'])return;const {data:_0x5f257a}=_0x276639;if(_0x5f257a){if('imageTextAlternative'==_0x5f257a['commandName']){const _0x5c8f21=_0x5f257a['commandParams'][0x0]['newValue'];return _0x5c8f21?{'type':'format','content':o(_0x41149e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c8f21+'\x22')}:{'type':'format','content':o(_0x41149e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5f257a['commandName']){const _0x1299d0=_0x5f257a['commandParams'][0x0]['width'];return _0x1299d0?{'type':'format','content':o(_0x41149e,'*Set\x20image\x20width:*\x20%0',_0x1299d0)}:{'type':'format','content':o(_0x41149e,'*Reset\x20image\x20width*')};}}});}}class st extends _0x16481a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x237d7e=this['editor']['locale'],_0xc35852=this['editor']['plugins']['get']('TrackChangesEditing');_0xc35852['enableDefaultAttributesIntegration']('replaceImageSource'),_0xc35852['registerBlockAttribute']('src'),_0xc35852['descriptionFactory']['registerDescriptionCallback'](_0x2ca8af=>{if('attribute'!=_0x2ca8af['type'])return;const {data:_0x423dad}=_0x2ca8af;return _0x423dad&&'src'==_0x423dad['key']?_0x423dad['newValue']&&_0x423dad['oldValue']?{'type':'format','content':o(_0x237d7e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e1754=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e1754['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4e1754['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4e1754['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4e1754['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x818316=this['editor'],_0x419bf9=_0x818316['locale'];_0x818316['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34acb3=>{if('formatBlock'!=_0x34acb3['type']&&'formatInline'!=_0x34acb3['type'])return;const {data:_0x13db46}=_0x34acb3;if(!_0x13db46||'replaceImageSource'!=_0x13db46['commandName'])return;return{'type':'format','content':o(_0x419bf9,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x16481a{['afterInit'](){const _0x1b9957=this['editor'];if(!_0x1b9957['plugins']['has']('ImageStyleEditing'))return;const _0x37c344=_0x1b9957['plugins']['get']('TrackChangesEditing'),_0x1549b8=_0x1b9957['plugins']['get']('ImageUtils'),_0x529bdf={};_0x37c344['enableCommand']('imageStyle',(_0x4d9ae8,_0x30480b)=>{const _0xd04a19=_0x1b9957['plugins']['get']('Users')['me'],_0x48aadb=_0x1b9957['commands']['get']('imageStyle');let _0x17eae5=_0x1549b8['getClosestSelectedImageElement'](_0x1b9957['model']['document']['selection']),_0x1db5ac=_0x1b9957['model']['createRangeOn'](_0x17eae5),_0x47998b=_0x48aadb['value'];if(_0x47998b==_0x30480b['value'])return;const _0x166751={'commandName':'imageStyle','commandParams':[_0x30480b],'formatGroupId':_0x287d7d()};_0x1b9957['model']['change'](()=>{if(_0x37c344['getSuggestions']()['filter'](_0x330d03=>_0x330d03['isInContent']&&_0xd04a19==_0x330d03['author']&&('formatBlock'==_0x330d03['type']||'formatInline'==_0x330d03['type'])&&('imageStylePreApply'==_0x330d03['subType']||'imageStylePostApply'==_0x330d03['subType'])&&_0x330d03['getFirstRange']()['isEqual'](_0x1db5ac))['forEach'](_0x286084=>_0x37c344['discardSuggestion'](_0x286084['head'])),_0x17eae5=_0x1549b8['getClosestSelectedImageElement'](_0x1b9957['model']['document']['selection']),_0x1db5ac=_0x1b9957['model']['createRangeOn'](_0x17eae5),_0x48aadb['refresh'](),_0x1b9957['commands']['get']('imageTypeInline')['refresh'](),_0x1b9957['commands']['get']('imageTypeBlock')['refresh'](),_0x47998b=_0x48aadb['value'],_0x47998b!=_0x30480b['value'])return _0x1549b8['isInlineImage'](_0x17eae5)&&_0x48aadb['shouldConvertImageType'](_0x30480b['value'],_0x17eae5)?(_0x4d9ae8({..._0x30480b,'setImageSizes':!0x1}),_0x17eae5=_0x1549b8['getClosestSelectedImageElement'](_0x1b9957['model']['document']['selection']),void _0x37c344['markBlockFormat'](_0x17eae5,{..._0x166751,'commandReversedParams':[{'value':_0x47998b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1549b8['isBlockImage'](_0x17eae5)?_0x37c344['markBlockFormat'](_0x17eae5,_0x166751,[],'imageStylePostApply'):_0x37c344['markInlineFormat'](_0x1db5ac,_0x166751,'imageStylePostApply'));});});for(const _0x12d4aa of _0x1b9957['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x529bdf[_0x12d4aa['name']]=_0x12d4aa['title']['toLowerCase']();_0x37c344['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x37c344['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x37c344['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x37c344['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x48fcb8])=>{_0x1549b8['setImageNaturalSizeAttributes'](_0x48fcb8['getContainedElement']());}),_0x37c344['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x17d8c4,_0xd21a8c)=>{_0x37c344['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x17d8c4,{'commandName':_0xd21a8c['commandName'],'commandParams':_0xd21a8c['commandReversedParams']});}),_0x37c344['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1d4cb1,_0x2022ed){if(_0x425ca8(_0x1d4cb1,_0x2022ed))return[_0x1d4cb1,_0x2022ed];if(_0x425ca8(_0x2022ed,_0x1d4cb1))return[_0x2022ed,_0x1d4cb1];return null;});const _0x15eb6a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x425ca8(_0x1404f7,_0x449e57){const _0x1d051b=_0x15eb6a['findIndex'](({type:_0x4131fa,subType:_0x3b0daf})=>_0x1404f7['type']==_0x4131fa&&_0x1404f7['subType']==_0x3b0daf),_0xd89221=_0x15eb6a['findIndex'](({type:_0x21af25,subType:_0x2fe3f8})=>_0x449e57['type']==_0x21af25&&_0x449e57['subType']==_0x2fe3f8);if(_0x1d051b<0x0||_0xd89221<0x0)return!0x1;const _0x304c49=_0x1404f7['getFirstRange'](),_0xd8e7bf=_0x449e57['getFirstRange']();if((0x0==_0x1d051b||0x1==_0x1d051b)&&0x2==_0xd89221&&_0x304c49['isIntersecting'](_0xd8e7bf))return!0x0;if(0x2==_0x1d051b&&0x3==_0xd89221){const _0x3eb28f=_0x37c344['_findSuggestions'](_0x304c49,'insertion')['filter'](({suggestion:_0x59d26a,meta:_0x48966a})=>_0x48966a['isOwn']&&'convertInlineImageToBlock'==_0x59d26a['subType']);if(_0x3eb28f['length']>0x1&&_0xd8e7bf['end']['isEqual'](_0x304c49['start']))return!0x0;if(0x1==_0x3eb28f['length']&&(_0x304c49['start']['isEqual'](_0xd8e7bf['end'])||_0x304c49['end']['isEqual'](_0xd8e7bf['start'])))return!0x0;}if(0x3==_0x1d051b&&0x3==_0xd89221&&_0x304c49['start']['isBefore'](_0xd8e7bf['start'])){const _0x522c71=_0x304c49['end']['nodeAfter'],_0x3a7f14=_0xd8e7bf['start']['nodeBefore'];return _0x1549b8['isBlockImage'](_0x522c71)&&_0x522c71===_0x3a7f14;}return!0x1;}_0x1b9957['model']['document']['registerPostFixer'](()=>{let _0x2fe719=!0x1;const _0x457dd3=Array['from'](_0x1b9957['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x418449,data:_0x2b9288}of _0x457dd3){const {group:_0x6a3fdd,type:_0x42002f,subType:_0x59004c,id:_0x41a6d0}=_0x37c344['_splitMarkerName'](_0x418449);if('suggestion'==_0x6a3fdd&&_0x37c344['hasSuggestion'](_0x41a6d0)){if('formatBlock'==_0x42002f&&('imageStylePreApply'==_0x59004c||'imageStylePostApply'==_0x59004c)){const _0x6ef8e=_0x37c344['getSuggestion'](_0x41a6d0);if(_0x2b9288['newRange']){const _0x413d85=_0x6ef8e['getFirstRange']()['getContainedElement']();if(_0x1549b8['isBlockImage'](_0x413d85))continue;_0x37c344['discardSuggestion'](_0x6ef8e),_0x2fe719=!0x0;}}if('insertion'==_0x42002f&&'imageCaption'==_0x59004c&&!_0x2b9288['newRange']){const _0x3440f2=_0x37c344['getSuggestion'](_0x41a6d0);_0x3440f2['next']&&_0x3440f2['next']['isInContent']&&(_0x37c344['discardSuggestion'](_0x3440f2['next']),_0x2fe719=!0x0);}}}return _0x2fe719;}),this['_registerLegacyDescription'](_0x529bdf);}['_registerLegacyDescription'](_0x1c6f5b){const _0x5cd656=this['editor'],_0x10c5a8=_0x5cd656['locale'];_0x5cd656['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x642a40=>{if('formatBlock'!=_0x642a40['type']&&'formatInline'!=_0x642a40['type'])return;const {data:_0x11e51c}=_0x642a40;if(!_0x11e51c||'imageStyle'!=_0x11e51c['commandName'])return;const _0x5d2248=_0x11e51c['commandParams'][0x0]['value'];return _0x8dc8aa('side'===_0x5d2248?o(_0x10c5a8,'FORMAT_SIDE_IMAGE'):_0x1c6f5b[_0x5d2248]||_0x5d2248);function _0x8dc8aa(_0x248034){return{'type':'format','content':o(_0x10c5a8,'*Format:*\x20%0',_0x248034)};}});}}class ot extends _0x16481a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4b8374){super(_0x4b8374),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x41bcda=this['editor'],_0x26597a=_0x41bcda['commands']['get']('importWord'),_0x25e215=_0x41bcda['commands']['get']('trackChanges');_0x26597a&&(_0x26597a['on']('execute',(_0x417e1d,[,_0x106c50])=>{this['_trackChangesValueDuringImport']=_0x25e215['value'],_0x106c50['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x26597a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x26597a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x25e215['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x41bcda['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x33e382,_0x2dc5eb){const {suggestions:_0x42e4f1}=_0x2dc5eb,_0x56a1fd=this['editor']['commands']['get']('trackChanges'),_0x2afaf0=_0x56a1fd['value'];this['_trackChangesValueDuringImport']!==_0x2afaf0&&(_0x56a1fd['execute'](),this['_trackChangesExecuted']=!0x0),_0x42e4f1&&_0x42e4f1['forEach'](({id:_0x12ae96,type:_0x4fe7af,author:_0x3566e9,created_at:_0x34be09})=>{const _0xdba4b8={'id':_0x12ae96,'type':_0x4fe7af,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3566e9,'createdAt':_0x34be09?new Date(_0x34be09):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xdba4b8);});}}class rt extends _0x16481a{['afterInit'](){const _0x15e9a7=this['editor'],_0x358d76=_0x15e9a7['plugins']['get']('TrackChangesEditing');if(_0x15e9a7['plugins']['has']('IndentEditing')&&(_0x358d76['enableCommand']('indent'),_0x358d76['enableCommand']('outdent')),_0x15e9a7['plugins']['has']('IndentBlock')){for(const _0x4ee83c of['indentBlock','outdentBlock'])_0x358d76['enableDefaultAttributesIntegration'](_0x4ee83c);}const _0x324717=_0x15e9a7['locale'];_0x358d76['registerBlockAttribute']('blockIndent'),_0x358d76['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x324717,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29607c=this['editor'],_0xfa0118=_0x29607c['locale'],_0x3c3737=_0x29607c['plugins']['get']('TrackChangesEditing');_0x3c3737['descriptionFactory']['registerDescriptionCallback'](_0x56fccc=>{if('formatBlock'!=_0x56fccc['type'])return;const {data:_0x2ecb27}=_0x56fccc;if(!_0x2ecb27)return;if('indentBlock'!=_0x2ecb27['commandName']&&'outdentBlock'!=_0x2ecb27['commandName'])return;const _0x50e405=_0x56fccc['getItems']()[0x0],_0x494ae8=_0x3c3737['descriptionFactory']['getItemLabel'](_0x50e405);return'indentBlock'==_0x2ecb27['commandName']?{'type':'format','content':o(_0xfa0118,'*Indent:*\x20%0',_0x494ae8)}:'outdentBlock'==_0x2ecb27['commandName']?{'type':'format','content':o(_0xfa0118,'*Outdent:*\x20%0',_0x494ae8)}:void 0x0;});}}class at extends _0x16481a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x16481a{['afterInit'](){const _0x1c4ad4=this['editor'];if(!_0x1c4ad4['plugins']['has']('LinkEditing'))return;const _0x2b6a5a=_0x1c4ad4['plugins']['get']('TrackChangesEditing'),_0x14c199=_0x1c4ad4['commands']['get']('link');_0x2b6a5a['enableDefaultAttributesIntegration']('link'),_0x2b6a5a['enableDefaultAttributesIntegration']('unlink'),_0x2b6a5a['registerInlineAttribute']('linkHref');for(const _0x470b79 of _0x14c199['manualDecorators'])_0x2b6a5a['registerInlineAttribute'](_0x470b79['id']),_0x2b6a5a['descriptionFactory']['registerAttributeLabel'](_0x470b79['id'],'link\x20('+_0x470b79['label']['toLowerCase']()+')');_0x2b6a5a['descriptionFactory']['registerDescriptionCallback'](_0x2b57e0=>{if('attribute'!=_0x2b57e0['type'])return;const {data:_0x2e0387}=_0x2b57e0;if(!_0x2e0387||'linkHref'!=_0x2e0387['key'])return;const _0x2cc4f3=_0x2e0387['newValue'],_0x50b600=_0x1c4ad4['locale'];return{'type':'format','content':null==_0x2cc4f3?o(_0x50b600,'*Remove\x20link*'):o(_0x50b600,'*Set\x20link:*\x20%0','\x22'+_0x2cc4f3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25f3c6=this['editor'],_0x1c3c07=_0x25f3c6['locale'];_0x25f3c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d1c75=>{if('formatInline'!=_0x3d1c75['type'])return;const {data:_0x490e9c}=_0x3d1c75;if(_0x490e9c){if('link'==_0x490e9c['commandName']){const _0x1fc842=_0x490e9c['commandParams'][0x0];return{'type':'format','content':o(_0x1c3c07,'*Set\x20link:*\x20%0','\x22'+_0x1fc842+'\x22')};}return'unlink'==_0x490e9c['commandName']?{'type':'format','content':o(_0x1c3c07,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x16481a{['afterInit'](){const _0xfca512=this['editor'],_0x626361=_0xfca512['locale'];if(!_0xfca512['plugins']['has']('LegacyListEditing'))return;const _0x4d52da=_0xfca512['plugins']['get']('TrackChangesEditing'),_0x140cdf=_0xfca512['plugins']['has']('LegacyTodoListEditing');function _0x2e78f8(_0x15d8dc){return()=>{const _0x4eb982=_0xfca512['model']['document']['selection'],_0x3c92a1=_0xfca512['commands']['get'](_0x15d8dc);if(_0x3c92a1['value'])return void _0xfca512['execute']('paragraph',{});const _0x2a414e=_0x15d8dc['slice'](0x0,-0x4),_0x16e48b=function(_0x34499f,_0x17649c,_0x139dba){let _0x4fa811=Array['from'](_0x34499f)['filter'](_0x48bd44=>function(_0x582dce,_0x3556cd){return _0x3556cd['checkChild'](_0x582dce['parent'],'listItem')&&!_0x3556cd['isObject'](_0x582dce);}(_0x48bd44,_0x139dba));_0x4fa811=_0x4fa811['filter'](_0x37c0cc=>!_0x37c0cc['is']('element','listItem')||_0x37c0cc['getAttribute']('listType')!=_0x17649c);const _0x3edf27=new Set();for(const _0xb188b4 of _0x4fa811)_0xb188b4['is']('element','listItem')?_0x3edf27['add'](me(_0xb188b4)):_0x3edf27['add'](_0xb188b4);return Array['from'](_0x3edf27);}(_0x4eb982['getSelectedBlocks'](),_0x2a414e,_0xfca512['model']['schema']);_0xfca512['model']['change'](()=>{for(const _0x40086a of _0x16e48b)_0x4d52da['markBlockFormat'](_0x40086a,{'commandName':_0x15d8dc,'commandParams':[{'forceValue':!_0x3c92a1['value']}],'formatGroupId':'blockName'},fe(_0x40086a));});};}function _0x290d81(_0x585cd3){return()=>{const _0x5cfe40=function(_0x4ab197){let _0x35ff21=Array['from'](_0x4ab197);const _0x2600e2=_0x35ff21['findIndex'](_0xa08619=>'listItem'!=_0xa08619['name']);return _0x2600e2>-0x1&&(_0x35ff21=_0x35ff21['slice'](0x0,_0x2600e2)),_0x35ff21;}(_0xfca512['model']['document']['selection']['getSelectedBlocks']()),_0x5b82cd=_0xfca512['model']['createRange'](_0xfca512['model']['createPositionAt'](_0x5cfe40[0x0],'before'),_0xfca512['model']['createPositionAt'](_0x5cfe40[_0x5cfe40['length']-0x1],'end'));_0xfca512['model']['change'](()=>{_0x4d52da['markBlockFormat'](_0x5b82cd,{'commandName':_0x585cd3,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1695c6){const _0x126c3e=new Set();for(const _0x582cfc of _0x1695c6){let _0x21f42a=_0x582cfc['nextSibling'];for(;_0x21f42a&&_0x21f42a['getAttribute']('listIndent')>_0x582cfc['getAttribute']('listIndent');)_0x126c3e['add'](_0x21f42a),_0x21f42a=_0x21f42a['nextSibling'];}return Array['from'](_0x126c3e);}(_0x5cfe40));});};}_0x4d52da['enableCommand']('numberedList',_0x2e78f8('numberedList')),_0x4d52da['enableCommand']('bulletedList',_0x2e78f8('bulletedList')),_0x140cdf&&_0x4d52da['enableCommand']('todoList',_0x2e78f8('todoList')),_0x4d52da['enableCommand']('indentList',_0x290d81('indentList')),_0x4d52da['enableCommand']('outdentList',_0x290d81('outdentList')),_0x140cdf&&_0x4d52da['enableCommand']('checkTodoList',()=>{const _0x2eccba=_0xfca512['commands']['get']('checkTodoList'),_0x23fb7f=Array['from'](_0x2eccba['_selectedElements']);_0x23fb7f['filter'](_0x55d229=>_0x55d229['getAttribute']('todoListChecked')!=_0x2eccba['value']),_0xfca512['model']['change'](()=>{for(const _0x4bd3cb of _0x23fb7f)_0x4d52da['markBlockFormat'](_0x4bd3cb,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2eccba['value']}]});});}),_0x4d52da['descriptionFactory']['registerElementLabel']('listItem',_0x4a5294=>o(_0x626361,'ELEMENT_LIST_ITEM',_0x4a5294)),_0x4d52da['descriptionFactory']['registerDescriptionCallback'](_0x13524a=>{if('formatBlock'!=_0x13524a['type']&&'formatInline'!=_0x13524a['type'])return;const {data:_0x2630e1}=_0x13524a;if(_0x2630e1){if('numberedList'==_0x2630e1['commandName']||'bulletedList'==_0x2630e1['commandName']||'todoList'==_0x2630e1['commandName'])switch(_0x2630e1['commandName']['replace']('List','')){case'bulleted':return _0x2b2d7a(o(_0x626361,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b2d7a(o(_0x626361,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b2d7a(o(_0x626361,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2630e1['commandName'])return{'type':'format','content':o(_0x626361,'*Indent:*\x20%0',o(_0x626361,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2630e1['commandName'])return{'type':'format','content':o(_0x626361,'*Outdent:*\x20%0',o(_0x626361,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2630e1['commandName'])return _0x2630e1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x626361,'*Check\x20item*')}:{'type':'format','content':o(_0x626361,'*Uncheck\x20item*')};}function _0x2b2d7a(_0x14d2c4){return{'type':'format','content':o(_0x626361,'*Change\x20to:*\x20%0',_0x14d2c4)};}});}}function me(_0x51f5a7){const _0x164a41=_0x51f5a7['getAttribute']('listIndent');if(0x0==_0x164a41)return _0x51f5a7;let _0x1422db=_0x51f5a7;for(;_0x51f5a7['previousSibling']&&_0x51f5a7['previousSibling']['is']('element','listItem');){const _0x2b37dc=_0x51f5a7['previousSibling']['getAttribute']('listIndent');if(_0x2b37dc==_0x164a41)_0x1422db=_0x51f5a7['previousSibling'];else{if(_0x2b37dc<_0x164a41)break;}_0x51f5a7=_0x51f5a7['previousSibling'];}return _0x1422db;}function fe(_0x3f9ad3){const _0x6c11c4=[];if(_0x3f9ad3['is']('element','listItem')&&_0x3f9ad3['getAttribute']('listIndent')>0x0){let _0x57d89c=_0x3f9ad3['nextSibling'];for(;_0x57d89c&&'listItem'==_0x57d89c['name']&&_0x57d89c['getAttribute']('listIndent')==_0x3f9ad3['getAttribute']('listIndent');)_0x6c11c4['push'](_0x57d89c),_0x57d89c=_0x57d89c['nextSibling'];}return _0x6c11c4;}class K extends _0x16481a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2e6776=this['editor']['config']['get']('list.properties'),_0x17f24e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e6776['styles']&&_0x17f24e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2e6776['reversed']&&_0x17f24e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2e6776['startIndex']&&_0x17f24e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x17f24e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x13a71c,_0x1ba74f={}){const _0x48c7ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x154a73=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x48c7ca['markMultiRangeBlockFormat'](_0x154a73,{'commandName':'listStyle','commandParams':[{'type':_0x1ba74f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xa1d572,_0x317e68={}){const _0x5d854e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31679f=this['_getSuggestionBlocks'](_0x1ef8d1=>_0x1ef8d1['is']('element','listItem')&&'numbered'===_0x1ef8d1['getAttribute']('listType'));if(_0x31679f['length']<0x1)return;const _0x202b5c=_0x31679f['map'](_0x5abb01=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5abb01,'before'),this['editor']['model']['createPositionAt'](_0x5abb01,0x0)));this['editor']['model']['change'](()=>{_0x5d854e['markMultiRangeBlockFormat'](_0x202b5c,{'commandName':'listReversed','commandParams':[{'reversed':_0x317e68['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xa16a9d,_0x35fd58={}){const _0x43d9c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31e962=this['_getSuggestionBlocks'](_0xd70ad2=>_0xd70ad2['is']('element','listItem')&&'numbered'===_0xd70ad2['getAttribute']('listType'));if(_0x31e962['length']<0x1)return;const _0x5db930=_0x31e962['map'](_0x4f3ee8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f3ee8,'before'),this['editor']['model']['createPositionAt'](_0x4f3ee8,0x0)));this['editor']['model']['change'](()=>{_0x43d9c9['markMultiRangeBlockFormat'](_0x5db930,{'commandName':'listStart','commandParams':[{'startIndex':_0x35fd58['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x29de09){if('formatBlock'!=_0x29de09['type']&&'formatInline'!=_0x29de09['type'])return;const _0x5cf54=this['editor']['locale'],{data:_0x5219af}=_0x29de09;if(!_0x5219af)return;let _0x1f1965,_0x493a33;switch(_0x5219af['commandName']){case'listStyle':_0x1f1965='*Change\x20to:*\x20%0',_0x493a33={'type':'format','content':o(_0x5cf54,_0x1f1965,o(_0x5cf54,this['_getTranslationKeyForListStyle'](_0x5219af['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1f1965=_0x5219af['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x493a33={'type':'format','content':o(_0x5cf54,_0x1f1965)};break;case'listStart':_0x1f1965='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x493a33={'type':'format','content':o(_0x5cf54,_0x1f1965,_0x5219af['commandParams'][0x0]['startIndex'])};}return _0x493a33;}['_getSuggestionBlocksForListStyle'](){const _0x203c37=this['editor']['plugins']['get']('LegacyListUtils');let _0x100432=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x100432[0x0]?.['is']('element','listItem')&&_0x100432['unshift'](..._0x203c37['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x100432[_0x100432['length']-0x1]?.['is']('element','listItem')&&_0x100432['push'](..._0x203c37['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x100432=[...new Set(_0x100432)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x100432=_0x100432['filter'](_0xcfb9a9=>_0xcfb9a9['is']('element','listItem'))),_0x100432;}['_getSuggestionBlocks'](_0x21a144){const _0x340bee=this['editor']['plugins']['get']('LegacyListUtils');let _0x1a10fd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x21a144)['map'](_0x1f9ebf=>{const _0x2a9baf=this['editor']['model']['createPositionAt'](_0x1f9ebf,0x0);return[..._0x340bee['getSiblingNodes'](_0x2a9baf,'backward'),..._0x340bee['getSiblingNodes'](_0x2a9baf,'forward')];})['flat']();return _0x1a10fd=[...new Set(_0x1a10fd)],_0x1a10fd;}['_getTranslationKeyForListStyle'](_0x348b71){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x348b71)||'default')['toUpperCase']()+'_LIST_'+_0x348b71['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x16481a{['afterInit'](){const _0x15a3be=this['editor'];if(!_0x15a3be['plugins']['has']('MediaEmbedEditing'))return;const _0x315f5d=_0x15a3be['plugins']['get']('TrackChangesEditing'),_0x56865d=_0x15a3be['locale'];_0x315f5d['enableCommand']('mediaEmbed'),_0x315f5d['descriptionFactory']['registerElementLabel']('media',_0x5d6850=>o(_0x56865d,'ELEMENT_MEDIA',_0x5d6850)),_0x15a3be['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3bab6d,{writer:_0x380b32,options:_0x163fec})=>{if(_0x163fec['showSuggestionHighlights'])return _0x380b32['createEmptyElement']('div');},'converterPriority':'high'}),_0x15a3be['data']['downcastDispatcher']['on']('attribute:url:media',(_0x34b159,_0x3f0abc,_0x59453d)=>{_0x59453d['options']['showSuggestionHighlights']&&_0x34b159['stop']();},{'priority':'high'});}}class gt extends _0x16481a{['afterInit'](){const _0xa9613e=this['editor'];_0xa9613e['plugins']['has']('MentionEditing')&&_0xa9613e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x16481a{['afterInit'](){const _0x4cbab0=this['editor'],_0x50392f=_0x4cbab0['plugins']['get']('TrackChangesEditing');_0x4cbab0['plugins']['has']('MultiLevelList')&&(_0x50392f['enableDefaultAttributesIntegration']('multiLevelList'),_0x50392f['registerBlockAttribute']('listMarkerStyle'),_0x50392f['descriptionFactory']['registerDescriptionCallback'](_0x4edacb=>this['handleDescriptions'](_0x4edacb)));}['handleDescriptions'](_0x1688f1){const _0x4e421f=this['editor']['locale'],{data:_0x477e63}=_0x1688f1,_0x5d63e0={'type':'format','content':''};if(_0x477e63&&'listMarkerStyle'==_0x477e63['key']){if(!_0x477e63['oldValue'])return{'type':'format','content':o(_0x4e421f,'*Set\x20format:*\x20%0',o(_0x4e421f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x477e63['newValue']+')'};if(!_0x477e63['newValue']){let _0x10cebb=_0x1688f1['head'];for(;_0x10cebb;){if(_0x10cebb['data']&&'listType'==_0x10cebb['data']['key']&&_0x10cebb['data']['newValue'])return _0x5d63e0;_0x10cebb=_0x10cebb['next'];}return{'type':'format','content':o(_0x4e421f,'*Remove\x20format:*\x20%0',o(_0x4e421f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x477e63['oldValue']+')'};}}}}class mt extends _0x16481a{['afterInit'](){const _0x3a17cd=this['editor'];if(!_0x3a17cd['plugins']['has']('PageBreakEditing'))return;_0x3a17cd['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x58a9cd=_0x3a17cd['plugins']['get']('TrackChangesEditing'),_0x283d1b=_0x3a17cd['locale'];_0x58a9cd['descriptionFactory']['registerElementLabel']('pageBreak',_0x311976=>o(_0x283d1b,'ELEMENT_PAGE_BREAK',_0x311976));}}class dt extends _0x16481a{['afterInit'](){const _0x12b497=this['editor'];if(!_0x12b497['plugins']['has']('Paragraph'))return;const _0x257e4a=_0x12b497['locale'],_0x1fe064=_0x12b497['plugins']['get']('TrackChangesEditing');_0x1fe064['descriptionFactory']['registerElementLabel']('paragraph',_0x3e5532=>o(_0x257e4a,'ELEMENT_PARAGRAPH',_0x3e5532)),_0x1fe064['enableDefaultAttributesIntegration']('paragraph'),_0x1fe064['enableCommand']('insertParagraph'),_0x12b497['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x12b497),{'priority':'highest'}),_0x12b497['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b2910,_0x39626c,_0x4f350a)=>{_0x4f350a['options']['showSuggestionHighlights']&&nr(_0x12b497,{'showActiveMarker':!0x1})(_0x1b2910,_0x39626c,_0x4f350a);},{'priority':'highest'});const _0x3c4492=_0x1fe064['descriptionFactory'];_0x3c4492['registerDescriptionCallback'](_0x2118a3=>{if('insertion'!==_0x2118a3['type'])return;const {start:_0x2b4ad7,end:_0x573b36}=_0x2118a3['getFirstRange']();if(!_0x2b4ad7['isTouching'](_0x573b36)||!_0x2b4ad7['nodeAfter'])return;const _0x369570=_0x12b497['model']['schema'],_0x494946=_0x2b4ad7['nodeAfter'];return _0x369570['isBlock'](_0x494946)&&!_0x369570['isLimit'](_0x494946)&&_0x369570['checkChild'](_0x494946,'$text')?{'type':'insertion','content':o(_0x257e4a,'*Insert:*\x20%0',_0x3c4492['getItemLabel'](_0x494946,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa9d582=this['editor'],_0x4511a8=_0xa9d582['locale'];_0xa9d582['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a1714=>{if('formatBlock'!=_0x5a1714['type'])return;const {data:_0x342517}=_0x5a1714;return _0x342517&&'paragraph'==_0x342517['commandName']?{'type':'format','content':o(_0x4511a8,'*Change\x20to:*\x20%0',o(_0x4511a8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x14e7a1,{showActiveMarker:_0x4f49f1=!0x0}={}){return(_0x1aa387,_0x22dc74,_0x3e964f)=>{const _0x213b78=_0x14e7a1['plugins']['get']('TrackChangesEditing'),_0x4c8038=_0x22dc74['markerRange']['start'],_0x4a5c48=_0x22dc74['markerRange']['end'],_0x1ff133=_0x14e7a1['model']['schema'];if(!_0x4c8038['isTouching'](_0x4a5c48)||!_0x4c8038['nodeAfter'])return;const _0x1e7f56=_0x4c8038['nodeAfter'];if(_0x1ff133['isBlock'](_0x1e7f56)&&!_0x1ff133['isLimit'](_0x1e7f56)&&_0x1ff133['checkChild'](_0x1e7f56,'$text')){if(!_0x3e964f['consumable']['consume'](_0x22dc74['markerRange'],_0x1aa387['name']))return;const _0x519cfe=_0x3e964f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2b212c=_0x3e964f['mapper']['toViewPosition'](_0x4a5c48);_0x4f49f1&&_0x213b78['activeMarkers']['includes'](_0x22dc74['markerName'])&&_0x3e964f['writer']['addClass']('ck-suggestion-marker--active',_0x519cfe),_0x3e964f['writer']['insert'](_0x2b212c,_0x519cfe),_0x3e964f['mapper']['bindElementToMarker'](_0x519cfe,_0x22dc74['markerName']);}};}class pt extends _0x16481a{['afterInit'](){const _0x4f35e0=this['editor'];if(!_0x4f35e0['plugins']['has']('RemoveFormatEditing'))return;_0x4f35e0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x372c18=this['editor'];_0x372c18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b0d58=>{if('formatBlock'!=_0x2b0d58['type']&&'formatInline'!=_0x2b0d58['type'])return;const {data:_0x3ed535}=_0x2b0d58;return _0x3ed535&&'removeFormat'==_0x3ed535['commandName']?{'type':'format','content':o(_0x372c18['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x16481a{['afterInit'](){const _0x2720f5=this['editor'];if(!_0x2720f5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x509257=_0x2720f5['plugins']['get']('TrackChangesEditing');_0x509257['enableCommand']('goToPreviousRestrictedEditingException'),_0x509257['enableCommand']('goToNextRestrictedEditingException');const _0x40c8c3=_0x2720f5['plugins']['get']('RestrictedEditingModeEditing');_0x40c8c3['enableCommand']('trackChanges'),_0x40c8c3['enableCommand']('acceptSuggestion'),_0x40c8c3['enableCommand']('discardSuggestion'),_0x40c8c3['enableCommand']('acceptAllSuggestions'),_0x40c8c3['enableCommand']('discardAllSuggestions'),_0x40c8c3['enableCommand']('acceptSelectedSuggestions'),_0x40c8c3['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x16481a{static get['requires'](){return[_0x51d96c];}['init'](){const _0x41e4b6=this['editor'],_0x19d0ea=_0x41e4b6['plugins']['get']('TrackChangesEditing');_0x19d0ea['enableCommand']('shiftEnter'),_0x41e4b6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x41e4b6),{'priority':'high'}),_0x41e4b6['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x41e4b6),{'priority':'high'}),_0x41e4b6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x192afe,_0x2930b2,_0x4a0da6)=>{_0x4a0da6['options']['showSuggestionHighlights']&&de(_0x41e4b6,{'showActiveMarker':!0x1})(_0x192afe,_0x2930b2,_0x4a0da6);}),_0x19d0ea['descriptionFactory']['registerElementLabel']('softBreak',_0x2f8210=>o(_0x41e4b6['locale'],'ELEMENT_LINE_BREAK',_0x2f8210));}}function de(_0x55d89e,{showActiveMarker:_0x255d37=!0x0}={}){return(_0x7d463b,_0x269a64,_0x28c78f)=>{const _0x3c0408=_0x55d89e['plugins']['get']('TrackChangesEditing');if(!_0x28c78f['consumable']['test'](_0x269a64['markerRange'],_0x7d463b['name']))return;const _0x2c6aad=_0x55d89e['model'];for(const _0x1c2cfb of _0x269a64['markerRange']['getItems']()){if(!_0x1c2cfb['is']('element','softBreak'))continue;const _0x215b1e='deletion'==_0x269a64['markerName']['split'](':')[0x1]?'merge':'split',_0x23b7c6=_0x28c78f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x215b1e}),_0x120c5f=_0x28c78f['mapper']['toViewPosition'](_0x2c6aad['createPositionBefore'](_0x1c2cfb));_0x255d37&&_0x3c0408['activeMarkers']['includes'](_0x269a64['markerName'])&&_0x28c78f['writer']['addClass']('ck-suggestion-marker--active',_0x23b7c6),_0x28c78f['writer']['insert'](_0x120c5f,_0x23b7c6),_0x28c78f['mapper']['bindElementToMarker'](_0x23b7c6,_0x269a64['markerName']);}};}class wt extends _0x16481a{['afterInit'](){const _0x4bae6b=this['editor'],_0x4846ce=_0x4bae6b['model'],_0x52d755=_0x4bae6b['locale'];if(!_0x4bae6b['plugins']['has']('StandardEditingModeEditing'))return;const _0x86017a=_0x4bae6b['plugins']['get']('TrackChangesEditing'),_0x3dbb1b='restrictedEditingException',_0x20c965=_0x4bae6b['commands']['get'](_0x3dbb1b);_0x86017a['enableCommand'](_0x3dbb1b,(_0x34538c,_0x472ede={})=>{const _0x44c74d=_0x4846ce['document']['selection'];if(_0x44c74d['isCollapsed'])return void _0x34538c(_0x472ede);const _0x581c79=void 0x0!==_0x472ede['forceValue']?_0x472ede['forceValue']:!_0x20c965['value'];_0x4846ce['change'](()=>{const _0x127734=Array['from'](_0x44c74d['getRanges']());for(const _0x36afb9 of _0x127734){const _0x22c3d0=_0x581c79?[_0x36afb9]:io(_0x3dbb1b,_0x36afb9,_0x4846ce);for(const _0x28d453 of _0x22c3d0)_0x86017a['markInlineFormat'](_0x28d453,{'commandName':_0x3dbb1b,'commandParams':[{'forceValue':_0x581c79}]});}});}),_0x86017a['descriptionFactory']['registerDescriptionCallback'](_0x5dc4ad=>{if('formatBlock'!=_0x5dc4ad['type']&&'formatInline'!=_0x5dc4ad['type'])return;const {data:_0x253b74}=_0x5dc4ad;return _0x253b74&&_0x253b74['commandName']==_0x3dbb1b?_0x253b74['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52d755,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x52d755,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x16481a{['afterInit'](){const _0x50f1da=this['editor'];if(!_0x50f1da['plugins']['has']('Style')||!_0x50f1da['plugins']['has']('DataSchema'))return;const _0x4013a3=_0x50f1da['plugins']['get']('TrackChangesEditing'),_0x435a00=_0x50f1da['locale'],_0x1cf171=_0x50f1da['config']['get']('style')||{},_0x5be559=_0x50f1da['plugins']['get']('GeneralHtmlSupport'),_0x54e7c5=_0x50f1da['plugins']['get']('StyleUtils')['normalizeConfig'](_0x50f1da['plugins']['get']('DataSchema'),_0x1cf171['definitions']);_0x4013a3['enableDefaultAttributesIntegration']('style');const _0x3f194d=new Set();for(const _0xbe8cd2 of _0x54e7c5['block']){const _0x2d5320=_0x5be559['getGhsAttributeNameForElement'](_0xbe8cd2['element']);_0x3f194d['add'](_0x2d5320);}const _0x2fe1b7=new Set();for(const _0x4a2ca4 of _0x54e7c5['inline']){const _0xd4f1c0=_0x5be559['getGhsAttributeNameForElement'](_0x4a2ca4['element']);_0x2fe1b7['add'](_0xd4f1c0);for(const _0x517a05 of _0x4a2ca4['ghsAttributes'])_0x2fe1b7['add'](_0x517a05);}for(const _0x2fae00 of _0x3f194d)_0x4013a3['registerBlockAttribute'](_0x2fae00),_0x4013a3['descriptionFactory']['registerAttributeLabel'](_0x2fae00,o(_0x435a00,'FORMAT_STYLE'));for(const _0x205fd5 of _0x2fe1b7)_0x4013a3['registerInlineAttribute'](_0x205fd5),_0x4013a3['descriptionFactory']['registerAttributeLabel'](_0x205fd5,o(_0x435a00,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x183169=this['editor'],_0xde6be3=_0x183169['locale'];_0x183169['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33a5a9=>{if('formatBlock'!=_0x33a5a9['type']&&'formatInline'!=_0x33a5a9['type'])return;const {data:_0x95e5fd}=_0x33a5a9;return _0x95e5fd&&'style'===_0x95e5fd['commandName']?_0x95e5fd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xde6be3,'*Set\x20format:*\x20%0',_0x95e5fd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xde6be3,'*Remove\x20format:*\x20%0',_0x95e5fd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x16481a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x584523){super(_0x584523),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3b28c1=this['editor'],_0x570268=_0x3b28c1['model']['document']['selection'];if(!_0x3b28c1['plugins']['has']('TableEditing'))return;const _0x2aac67=_0x3b28c1['locale'],_0x5122e7=_0x3b28c1['plugins']['get']('TrackChangesEditing'),_0x47e86c=_0x3b28c1['plugins']['get']('TableUtils');_0x5122e7['descriptionFactory']['registerElementLabel']('table',_0x272e0a=>o(_0x2aac67,'ELEMENT_TABLE',_0x272e0a)),this['_setupColumnsRowsFixing'](),_0x5122e7['enableCommand']('insertTable'),_0x5122e7['enableCommand']('selectTableRow'),_0x5122e7['enableCommand']('selectTableColumn');for(const _0x19d049 of['insertTableRowAbove','insertTableRowBelow']){const _0x468969=_0x3b28c1['commands']['get'](_0x19d049);_0x5122e7['enableCommand'](_0x19d049,_0x26a16b=>{_0x3b28c1['model']['change'](_0x169c93=>{_0x26a16b();const _0x5d3d3b='above'===_0x468969['order'],_0x2839fc=_0x47e86c['getSelectionAffectedTableCells'](_0x570268),_0x2853ac=_0x47e86c['getRowIndexes'](_0x2839fc),_0x36179b=_0x5d3d3b?_0x2853ac['first']-0x1:_0x2853ac['last']+0x1,_0x3e4bb3=_0x2839fc[0x0]['findAncestor']('table'),_0xfffca8=_0x47e86c['createTableWalker'](_0x3e4bb3,{'startRow':_0x36179b,'endRow':_0x36179b}),_0x4e676a=Array['from'](_0xfffca8)['map'](_0x15b3c9=>_0x169c93['createRangeOn'](_0x15b3c9['cell']));_0x5122e7['markMultiRangeInsertion'](_0x4e676a,'tableRow');});});}for(const _0x63437d of['insertTableColumnLeft','insertTableColumnRight']){const _0x49131c=_0x3b28c1['commands']['get'](_0x63437d);_0x5122e7['enableCommand'](_0x63437d,_0x32f37f=>{_0x3b28c1['model']['change'](_0x4ef445=>{_0x32f37f();const _0x4f5964='left'===_0x49131c['order'],_0x573f05=_0x47e86c['getSelectionAffectedTableCells'](_0x570268),_0x5855db=_0x47e86c['getColumnIndexes'](_0x573f05),_0x31cba9=_0x4f5964?_0x5855db['first']-0x1:_0x5855db['last']+0x1,_0xcfb82=_0x573f05[0x0]['findAncestor']('table'),_0x2db932=_0x47e86c['createTableWalker'](_0xcfb82,{'startRow':0x0,'column':_0x31cba9,'includeAllSlots':!0x1}),_0x2b4d66=Array['from'](_0x2db932)['map'](_0x421b33=>_0x4ef445['createRangeOn'](_0x421b33['cell']));_0x5122e7['markMultiRangeInsertion'](_0x2b4d66,'tableColumn');});});}for(const _0x1bc40b of['removeTableRow','removeTableColumn']){const _0xa19297=_0x1bc40b['substr'](0xb),_0x5896f6=_0xa19297['toLowerCase'](),_0x307d3d=_0x5896f6['substr'](0x0,0x3)+'span',_0x45b796='table'+_0xa19297,_0x1b78bb='min'+_0xa19297,_0x36c197='max'+_0xa19297;_0x5122e7['enableCommand'](_0x1bc40b,()=>{_0x3b28c1['model']['change'](_0xcfd91b=>{const _0x3a532b=_0x47e86c['getSelectionAffectedTableCells'](_0x570268),_0x159209=_0x3a532b[0x0]['findAncestor']('table');let _0x551dbb;if('removeTableRow'==_0x1bc40b){const _0x16980d=_0x47e86c['getRowIndexes'](_0x3a532b);_0x551dbb={'startRow':_0x16980d['first'],'endRow':_0x16980d['last'],'includeAllSlots':!0x0};}else{const _0x518d21=_0x47e86c['getColumnIndexes'](_0x3a532b);_0x551dbb={'startColumn':_0x518d21['first'],'endColumn':_0x518d21['last'],'includeAllSlots':!0x0};}const _0x3674eb=_0x47e86c['createTableWalker'](_0x159209,_0x551dbb),_0x2600fb=Array['from'](_0x3674eb)['map'](({cell:_0x3119c8})=>_0x3119c8),_0x103f22=Ee(_0x2600fb['filter'](_0x560133=>_0x560133['hasAttribute'](_0x307d3d))),_0x1fcbe5=Ee(_0x2600fb['filter'](_0x2051ae=>!_0x2051ae['hasAttribute'](_0x307d3d)))['map'](_0x112abf=>_0xcfd91b['createRangeOn'](_0x112abf)),_0x5f4afa=_0x5122e7['markMultiRangeDeletion'](_0x1fcbe5,_0x45b796);if(_0x5f4afa&&('tableRow'==_0x5f4afa['subType']||'tableColumn'==_0x5f4afa['subType'])){const _0xe8d62a=this['_getSuggestionCoords'](_0x5f4afa);for(const _0x520786 of _0x103f22){const _0x409134=_0xcfd91b['createRangeOn'](_0x520786),_0x58d082=_0x47e86c['getCellLocation'](_0x520786),_0x291dd0=_0x520786['getAttribute'](_0x307d3d)-0x1,_0x6f1aac=_0xe8d62a[_0x1b78bb],_0x5a4fba=_0xe8d62a[_0x36c197];_0x6f1aac<=_0x58d082[_0x5896f6]&&_0x58d082[_0x5896f6]+_0x291dd0<=_0x5a4fba&&_0x5f4afa['addRange'](_0x409134);}}});});}function _0xbca64a(_0x322cd5){const _0x12336f=Array['from'](_0x570268['getRanges']())['map'](_0x2ec531=>_0x55c0b1['fromRange'](_0x2ec531));_0x3b28c1['model']['change'](_0x2ef1fe=>{const _0x53d477=_0x2ef1fe['batch'];_0x322cd5=_0x322cd5['filter'](_0x18d081=>'$graveyard'!=_0x18d081['root']['rootName']),_0x2ef1fe['setSelection'](_0x322cd5),_0x3b28c1['commands']['get']('removeTableRow')['refresh'](),_0x3b28c1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3b28c1['model']['enqueueChange'](()=>{_0x3b28c1['model']['enqueueChange'](_0x53d477,_0x9b1d3a=>{const _0x3be2d1=_0x12336f['filter'](_0x5076ef=>'$graveyard'!=_0x5076ef['root']['rootName']);_0x3be2d1['length']>0x0&&_0x9b1d3a['setSelection'](_0x3be2d1);for(const _0x41b207 of _0x12336f)_0x41b207['detach']();});});});}function _0xcf0255(_0x56ee2c){_0x3b28c1['model']['change'](_0x3b9acf=>{const _0xc556ec=Array['from'](_0x570268['getRanges']())['map'](_0x12c4d1=>_0x55c0b1['fromRange'](_0x12c4d1)),_0x30ba09=[];for(const _0x4ee7be of _0x56ee2c)for(const _0x26b35a of _0x4ee7be['getItems']({'shallow':!0x0}))_0x30ba09['push'](_0x26b35a);for(const _0x3515cb of _0x30ba09)'$graveyard'!=_0x3515cb['root']['rootName']&&(_0x3b9acf['setSelection'](_0x3b9acf['createPositionAt'](_0x3515cb,0x0)),_0x3b28c1['commands']['get']('removeTableColumn')['refresh'](),_0x3b28c1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x465a90=_0xc556ec['filter'](_0x1f3418=>'$graveyard'!=_0x1f3418['root']['rootName']);_0x465a90['length']>0x0&&_0x3b9acf['setSelection'](_0x465a90);for(const _0x291096 of _0xc556ec)_0x291096['detach']();});}function _0x1b963a(_0x14d6f5,_0x1df216){return _0x1df216['every'](_0x361309=>_0x14d6f5['some'](_0x178345=>_0x178345['end']['isEqual'](_0x361309['start'])||_0x361309['end']['isEqual'](_0x178345['start'])));}function _0x32a8e0(_0x4c5fc9,_0x31b95a){return!_0x4c5fc9['some'](_0x1c57ca=>_0x31b95a['some'](_0x570106=>_0x1c57ca['isIntersecting'](_0x570106)))&&_0x4c5fc9['some'](_0x237de6=>_0x31b95a['some'](_0x4b7c9d=>_0x237de6['end']['isTouching'](_0x4b7c9d['start'])));}_0x3b28c1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c8d01,_0x318c82,_0xa8c377)=>{if(!_0xa8c377['options']['showSuggestionHighlights'])return;const _0x14da82=_0x318c82['item'];if(!_0x14da82)return;const _0x5e402f=_0xa8c377['mapper']['toViewElement'](_0x14da82);function _0x55e5d1(_0x54f236){return Array['isArray'](_0x54f236)?_0x54f236:[_0x54f236];}_0x5e402f&&'tableCell'===_0x14da82['name']&&_0x394db3(_0x5e402f,_0xa8c377['writer'],(_0x3e2d4d,_0x1f2990,_0xc348f3)=>_0xc348f3['addClass'](_0x55e5d1(_0x1f2990['classes']),_0x3e2d4d),(_0x93e534,_0x1a6112,_0x380bf4)=>_0x380bf4['removeClass'](_0x55e5d1(_0x1a6112['classes']),_0x93e534));},{'priority':'highest'}),_0x5122e7['descriptionFactory']['registerDescriptionCallback'](_0x43a78c=>{if('insertion'!=_0x43a78c['type']&&'deletion'!=_0x43a78c['type'])return;const _0x4fe59a=_0x43a78c['getContainedElement']();if(null!=_0x4fe59a&&_0x4fe59a['is']('element','table')){if('insertion'==_0x43a78c['type']){const _0x3f7533=_0x43a78c['getItems']()['filter'](_0x58de11=>_0x58de11['is']('$textProxy'))['map'](_0xf256e1=>_0xf256e1['data']);if(_0x3f7533['length'])return{'type':'insertion','content':o(_0x2aac67,'*Insert:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f7533['join']('\x20')+'\x22'))};}if('deletion'==_0x43a78c['type']){const _0x6e48e0=_0x43a78c['getItems']()['filter'](_0xa6f170=>_0xa6f170['is']('$textProxy'))['map'](_0x4a14ad=>_0x4a14ad['data']);if(_0x6e48e0['length'])return{'type':'deletion','content':o(_0x2aac67,'*Remove:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x6e48e0['join']('\x20')+'\x22'))};}}}),_0x5122e7['descriptionFactory']['registerDescriptionCallback'](_0x40d53d=>{if('tableRow'==_0x40d53d['subType']){const _0x8f9aca=_0x40d53d['getItems']()['filter'](_0x5285d2=>_0x5285d2['is']('$textProxy'))['map'](_0x343d7b=>_0x343d7b['data']),_0x16071e=this['_getSuggestionCoords'](_0x40d53d),_0x4f5cdb=_0x16071e['maxRow']-_0x16071e['minRow']+0x1;if('insertion'==_0x40d53d['type'])return _0x8f9aca['length']?{'type':'insertion','content':o(_0x2aac67,'*Insert:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f5cdb,'\x22'+_0x8f9aca['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2aac67,'*Insert:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_ROW',_0x4f5cdb))};if('deletion'==_0x40d53d['type'])return _0x8f9aca['length']?{'type':'deletion','content':o(_0x2aac67,'*Remove:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4f5cdb,'\x22'+_0x8f9aca['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2aac67,'*Remove:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_ROW',_0x4f5cdb))};}if('tableColumn'==_0x40d53d['subType']){const _0x569098=_0x40d53d['getItems']()['filter'](_0x3c6e1a=>_0x3c6e1a['is']('$textProxy'))['map'](_0x4da26b=>_0x4da26b['data']),_0x45625f=this['_getSuggestionCoords'](_0x40d53d),_0x4ed4e0=_0x45625f['maxColumn']-_0x45625f['minColumn']+0x1;if('insertion'==_0x40d53d['type'])return _0x569098['length']?{'type':'insertion','content':o(_0x2aac67,'*Insert:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ed4e0,'\x22'+_0x569098['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2aac67,'*Insert:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_COLUMN',_0x4ed4e0))};if('deletion'==_0x40d53d['type'])return _0x569098['length']?{'type':'deletion','content':o(_0x2aac67,'*Remove:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ed4e0,'\x22'+_0x569098['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2aac67,'*Remove:*\x20%0',o(_0x2aac67,'ELEMENT_TABLE_COLUMN',_0x4ed4e0))};}}),_0x5122e7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xbca64a),_0x5122e7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xbca64a),_0x5122e7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xcf0255),_0x5122e7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xcf0255),_0x5122e7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1b963a),_0x5122e7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1b963a),_0x5122e7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x32a8e0),_0x5122e7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x32a8e0);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2777f1=this['editor'],_0x171d0d=_0x2777f1['model']['document']['selection'];return(_0x572935,_0x5b269d)=>{_0x2777f1['model']['change'](_0x1fffc1=>{const {commandName:_0x2146c4,commandParams:_0x8b8348}=_0x5b269d;let _0x1a2111=_0x572935[0x0]['end']['nodeBefore'];_0x8b8348&&_0x8b8348[0x0]&&!0x1===_0x8b8348[0x0]['forceValue']&&(_0x1a2111=_0x572935[0x0]['start']['nodeAfter']);const _0x499b80=_0x1fffc1['createRangeIn'](_0x1a2111);if('$graveyard'==_0x499b80['root']['rootName'])return;const _0x428370=Array['from'](_0x171d0d['getRanges']())['map'](_0x34fea3=>_0x55c0b1['fromRange'](_0x34fea3));_0x1fffc1['setSelection'](_0x499b80),_0x2777f1['commands']['get'](_0x2146c4)['refresh'](),_0x8b8348['push']({'forceDefaultExecution':!0x0}),_0x2777f1['execute'](_0x2146c4,..._0x8b8348);const _0xe3a0db=_0x428370['filter'](_0x58db70=>'$graveyard'!=_0x58db70['root']['rootName']);_0xe3a0db['length']>0x0&&_0x1fffc1['setSelection'](_0xe3a0db);for(const _0x4cf65e of _0x428370)_0x4cf65e['detach']();});};}['_getCoordsForCells'](_0x2e6b2f){const _0x410d33=this['editor']['plugins']['get']('TableUtils');let _0x2b879d=Number['MAX_SAFE_INTEGER'],_0x2b9c61=Number['MIN_SAFE_INTEGER'],_0xf8116b=Number['MAX_SAFE_INTEGER'],_0x51941c=Number['MIN_SAFE_INTEGER'];for(const _0x56eac6 of _0x2e6b2f){if('$graveyard'==_0x56eac6['root']['rootName'])continue;const {row:_0x2c324b,column:_0x21f2ae}=_0x410d33['getCellLocation'](_0x56eac6),_0x3b7e6a=_0x56eac6['hasAttribute']('rowspan')?_0x56eac6['getAttribute']('rowspan')-0x1:0x0,_0x11fd4e=_0x56eac6['hasAttribute']('colspan')?_0x56eac6['getAttribute']('colspan')-0x1:0x0;_0x2b879d=_0x2c324b<_0x2b879d?_0x2c324b:_0x2b879d,_0x2b9c61=_0x2c324b+_0x3b7e6a>_0x2b9c61?_0x2c324b+_0x3b7e6a:_0x2b9c61,_0xf8116b=_0x21f2ae<_0xf8116b?_0x21f2ae:_0xf8116b,_0x51941c=_0x21f2ae+_0x11fd4e>_0x51941c?_0x21f2ae+_0x11fd4e:_0x51941c;}return{'minRow':_0x2b879d,'maxRow':_0x2b9c61,'minColumn':_0xf8116b,'maxColumn':_0x51941c};}['_setupColumnsRowsFixing'](){const _0x584f4a=this['editor'],_0x4232b0=_0x584f4a['plugins']['get']('TrackChangesEditing'),_0xad7c41=_0x584f4a['plugins']['get']('TableUtils');_0x584f4a['model']['document']['on']('change:data',()=>{const _0x593345=Array['from'](_0x584f4a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45c1af,data:_0x2208ba}of _0x593345){const {group:_0x165635,id:_0x499c40,subType:_0x3bd965}=_0x4232b0['_splitMarkerName'](_0x45c1af);if('suggestion'!=_0x165635)continue;if(null!=_0x2208ba['oldRange'])continue;const _0x3b6c66=_0x4232b0['getSuggestion'](_0x499c40);this['_tablePostFixingSubtypes']['includes'](_0x3bd965)&&this['_tableSuggestions']['add'](_0x3b6c66);}},{'priority':'low'});const _0x4cf454=(_0x1aacdf,_0x3199d1)=>{let _0x1a994a=!0x1;const _0xb03c55=_0x3199d1['createRangeOn'](_0x1aacdf),_0x52dee9=_0x1aacdf['findAncestor']('table'),_0x562fb1=_0xad7c41['getCellLocation'](_0x1aacdf);for(const _0x1d8159 of this['_tableSuggestions']){const _0x7ff04d=_0x1d8159['subType'],_0x16a257=_0x7ff04d['startsWith']('tablePaste'),_0x6a4f66=_0x7ff04d['substr'](_0x16a257?0xa:0x5),_0x155497=_0x6a4f66['toLowerCase'](),_0x2e1254=_0x155497['substr'](0x0,0x3)+'span',_0x4b9985='min'+_0x6a4f66,_0x3821d8='max'+_0x6a4f66;if(!_0x1d8159['isInContent'])continue;if(_0x52dee9!=_0x1d8159['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1d8159['isIntersectingWithRange'](_0xb03c55))continue;const _0x4c7f53=_0x1aacdf['hasAttribute'](_0x2e1254)?_0x1aacdf['getAttribute'](_0x2e1254)-0x1:0x0,_0x49e432=this['_getSuggestionCoords'](_0x1d8159),_0x1aad03=_0x49e432[_0x4b9985],_0x40fb59=_0x49e432[_0x3821d8];_0x1aad03<=_0x562fb1[_0x155497]&&_0x562fb1[_0x155497]+_0x4c7f53<=_0x40fb59&&(_0x1d8159['addRange'](_0xb03c55),_0x1a994a=!0x0);}return _0x1a994a;};_0x584f4a['model']['document']['registerPostFixer'](_0x40a29e=>{let _0x5df9d7=!0x1;for(const _0xd6440f of _0x584f4a['model']['document']['differ']['getChanges']())if('insert'==_0xd6440f['type']){if('tableRow'==_0xd6440f['name']){for(const _0x574f49 of _0xd6440f['position']['nodeAfter']['getChildren']())_0x5df9d7=_0x5df9d7||_0x4cf454(_0x574f49,_0x40a29e);}else'tableCell'==_0xd6440f['name']&&(_0x5df9d7=_0x5df9d7||_0x4cf454(_0xd6440f['position']['nodeAfter'],_0x40a29e));}return _0x5df9d7;});}['_getSuggestionCoords'](_0x284cdc){return this['_getCoordsForCells'](_0x284cdc['getRanges']()['map'](_0x1910a6=>_0x1910a6['start']['nodeAfter']));}}function Ee(_0x5179ed){return Array['from'](new Set(_0x5179ed)['values']());}class St extends _0x16481a{static get['requires'](){return[jt];}['afterInit'](){const _0x39c066=this['editor'],_0x5f2790=_0x39c066['model']['document']['selection'],_0x229e9d=_0x39c066['locale'];if(!_0x39c066['plugins']['has']('TableEditing'))return;const _0xc873d1=_0x39c066['plugins']['get']('TrackChangesEditing'),_0x237eee=_0x39c066['plugins']['get']('TableUtils'),_0x4854e3=_0x39c066['plugins']['get'](jt);_0x4854e3['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xc873d1['enableCommand']('mergeTableCells',()=>{const _0xe79e05=_0x237eee['getSelectionAffectedTableCells'](_0x39c066['model']['document']['selection']);_0x39c066['model']['change'](()=>{_0xc873d1['markMultiRangeBlockFormat'](_0xe79e05,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x39c066['commands']['get']('mergeTableCells')['on']('execute',(_0x1f136d,_0x510fda)=>{_0x39c066['commands']['get']('trackChanges')['value']&&(_0x510fda['length']>0x0&&_0x510fda[_0x510fda['length']-0x1]&&_0x510fda[_0x510fda['length']-0x1]['forceDefaultExecution']||_0xc873d1['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1f136d['stop']());},{'priority':'highest'});for(const _0x185d3e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x581444=_0x39c066['commands']['get'](_0x185d3e);_0xc873d1['enableCommand'](_0x185d3e,()=>{const _0x3a6059=_0x39c066['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4da5df=>_0x4da5df['is']('element','tableCell')),_0x249e51=_0x581444['value'];_0x39c066['model']['change'](()=>{_0xc873d1['markMultiRangeBlockFormat']([_0x3a6059,_0x249e51],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3721dc of['splitTableCellVertically','splitTableCellHorizontally']){const _0x37f724=_0x39c066['commands']['get'](_0x3721dc);_0xc873d1['enableCommand'](_0x3721dc,()=>{const _0x155608=_0x237eee['getSelectionAffectedTableCells'](_0x39c066['model']['document']['selection'])[0x0],_0xba9a7=_0x155608['findAncestor']('table'),{column:_0x13a614,row:_0x1abcf9}=_0x237eee['getCellLocation'](_0x155608);let _0x5c5d69=[];if('horizontally'==_0x37f724['direction']){const _0x183228=_0x237eee['createTableWalker'](_0xba9a7,{'startRow':_0x1abcf9,'endRow':_0x1abcf9,'includeAllSlots':!0x0});_0x5c5d69=Array['from'](_0x183228)['map'](_0x59151f=>_0x59151f['cell']);}else{const _0x3c8080=_0x237eee['createTableWalker'](_0xba9a7,{'column':_0x13a614,'includeAllSlots':!0x0});_0x5c5d69=Array['from'](_0x3c8080)['map'](_0x4e2a70=>_0x4e2a70['cell']);}_0x39c066['model']['change'](_0x2b4eea=>{_0xc873d1['markBlockFormat'](_0x2b4eea['createRangeOn'](_0x155608),{'commandName':_0x3721dc,'commandParams':[]},_0x5c5d69,_0x3721dc);});});}_0xc873d1['descriptionFactory']['registerDescriptionCallback'](_0x37c015=>{if('formatBlock'!=_0x37c015['type']&&'formatInline'!=_0x37c015['type'])return;const {data:_0x593209}=_0x37c015;return _0x593209&&'mergeTableCells'==_0x593209['commandName']?{'type':'format','content':o(_0x229e9d,'*Merge\x20cells*')}:void 0x0;}),_0xc873d1['descriptionFactory']['registerDescriptionCallback'](_0x494eac=>{if('formatBlock'!=_0x494eac['type']&&'formatInline'!=_0x494eac['type'])return;const {data:_0x36b629}=_0x494eac;return _0x36b629?'splitTableCellVertically'==_0x36b629['commandName']?{'type':'format','content':o(_0x229e9d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x36b629['commandName']?{'type':'format','content':o(_0x229e9d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x375105=_0x4854e3['_acceptFormatSuggestionCallbackFactory']();for(const _0x4f0b0b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xc873d1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f0b0b,'accept',_0x375105);for(const _0x4e0d68 of['splitTableCellVertically','splitTableCellHorizontally'])_0xc873d1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e0d68,'accept',_0x375105);_0xc873d1['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x7850cc=>{_0x39c066['model']['change'](_0x1e787e=>{const _0x44eba0=Array['from'](_0x5f2790['getRanges']())['map'](_0x117342=>_0x55c0b1['fromRange'](_0x117342));_0x1e787e['setSelection'](_0x7850cc),_0x39c066['commands']['get']('mergeTableCells')['refresh'](),_0x39c066['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x316533=_0x44eba0['filter'](_0x31e3f2=>'$graveyard'!=_0x31e3f2['root']['rootName']);_0x316533['length']>0x0&&_0x1e787e['setSelection'](_0x316533);for(const _0x2d725a of _0x44eba0)_0x2d725a['detach']();});});for(const _0x963db1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x12b3b8=_0x39c066['commands']['get'](_0x963db1);_0x12b3b8['on']('set:isEnabled',(_0x3805ac,_0x1ec8b0,_0x54d285)=>{if(_0x54d285){const _0x484516=_0x39c066['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2c13bc=>_0x2c13bc['is']('element','tableCell'));this['_areMergableCells'](_0x12b3b8['value'],_0x484516)||(_0x3805ac['return']=!0x1,_0x3805ac['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x186792=this['editor']['commands']['get']('mergeTableCells'),_0x597947=this['editor']['plugins']['get']('TableUtils');if(!_0x186792['isEnabled'])return!0x1;const _0x45009e=_0x597947['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a10bc of _0x45009e)for(const _0x7405ef of _0x45009e)if(_0x5a10bc!=_0x7405ef&&!this['_areMergableCells'](_0x5a10bc,_0x7405ef))return!0x1;return!0x0;}['_areMergableCells'](_0x1c1af0,_0x45df){const _0xba9bda=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19ef3a=this['editor']['model']['createRangeOn'](_0x1c1af0),_0x1af9fd=this['editor']['model']['createRangeOn'](_0x45df),_0x1272d6=new Set(),_0x5a4835=new Set();for(const _0x2c707a of _0xba9bda['getSuggestions']())if(('insertion'==_0x2c707a['type']||'deletion'==_0x2c707a['type']||'mergeTableCells'==_0x2c707a['subType'])&&_0x2c707a['isInContent']){for(const _0x4f139f of _0x2c707a['getRanges']())_0x4f139f['containsRange'](_0x19ef3a,!0x0)&&_0x1272d6['add'](_0x2c707a['type']+':'+_0x2c707a['author']['id']),_0x4f139f['containsRange'](_0x1af9fd,!0x0)&&_0x5a4835['add'](_0x2c707a['type']+':'+_0x2c707a['author']['id']);}if(_0x1272d6['size']!=_0x5a4835['size'])return!0x1;for(const _0x20baa4 of _0x1272d6)if(!_0x5a4835['has'](_0x20baa4))return!0x1;return!0x0;}}class At extends _0x16481a{static get['requires'](){return[jt];}['afterInit'](){const _0x2b0dc1=this['editor'];if(!_0x2b0dc1['plugins']['has']('TableEditing'))return;const _0x50130a=_0x2b0dc1['locale'],_0x2196b7=_0x2b0dc1['plugins']['get']('TrackChangesEditing');_0x2196b7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2196b7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2196b7['registerBlockAttribute']('headingRows'),_0x2196b7['registerBlockAttribute']('headingColumns'),_0x2196b7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x50130a,'FORMAT_HEADER_ROW')),_0x2196b7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x50130a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x285495=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d35c3=this['editor']['plugins']['get']('TableUtils'),_0x190abc=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x4bd3c0({showActiveMarker:_0x50680a=!0x0,setDataAttribute:_0x1b8aea=!0x0}={}){return(_0x83f97f,_0x30284f,_0x91d57b)=>{const {type:_0x132610,id:_0x1587aa}=_0x285495['_splitMarkerName'](_0x30284f['markerName']),_0x22521a=_0x285495['getSuggestion'](_0x1587aa),_0x302f23=_0x22521a['data'];if('formatBlock'!=_0x22521a['type']||!_0x302f23||'setTableColumnHeader'!=_0x302f23['commandName'])return;if(_0x30284f['item'])return void _0x83f97f['stop']();if(!_0x91d57b['consumable']['consume'](_0x30284f['markerRange'],_0x83f97f['name']))return;const _0x4bc8ce=_0x30284f['markerRange']['start']['nodeAfter'],_0x4b3690=_0x30284f['markerRange']['end']['nodeBefore'],_0x5d4d26=_0x4bc8ce['parent']['parent'],{column:_0x1d669a}=_0x1d35c3['getCellLocation'](_0x4bc8ce),{column:_0x37ed06}=_0x1d35c3['getCellLocation'](_0x4b3690);for(let _0x6c1f66=_0x1d669a;_0x6c1f66<=_0x37ed06;_0x6c1f66++){const _0x11973c=_0x1d35c3['createTableWalker'](_0x5d4d26,{'column':_0x6c1f66,'includeAllSlots':!0x1});for(const _0x2b6a6e of _0x11973c){const _0xa930a9=_0x2b6a6e['cell'],_0x1e0675=_0x91d57b['mapper']['toViewElement'](_0xa930a9);_0x91d57b['writer']['addClass']('ck-suggestion-marker-'+_0x132610,_0x1e0675),_0x1b8aea&&_0x91d57b['writer']['setAttribute']('data-suggestion',_0x1587aa,_0x1e0675),_0x91d57b['mapper']['bindElementToMarker'](_0x1e0675,_0x30284f['markerName']),_0x50680a&&(_0x285495['activeMarkers']['includes'](_0x30284f['markerName'])?_0x91d57b['writer']['addClass']('ck-suggestion-marker--active',_0x1e0675):_0x91d57b['writer']['removeClass']('ck-suggestion-marker--active',_0x1e0675));}}};}_0x285495['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x190abc),_0x285495['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x190abc),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4bd3c0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x373b44,_0xaab777,_0x916e31)=>{_0x916e31['options']['showSuggestionHighlights']&&_0x4bd3c0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x373b44,_0xaab777,_0x916e31);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xdad555,_0x4ab8e7,_0x503413)=>{const {type:_0x544655,id:_0x375aad}=_0x285495['_splitMarkerName'](_0x4ab8e7['markerName']),_0x30d7f6=_0x285495['getSuggestion'](_0x375aad),_0x5e51cb=_0x30d7f6['data'];if('formatBlock'!=_0x30d7f6['type']||!_0x5e51cb||'setTableColumnHeader'!=_0x5e51cb['commandName'])return;const _0x11573f=_0x503413['mapper']['markerNameToElements'](_0x4ab8e7['markerName']);if(_0x11573f){for(const _0x2fef8b of _0x11573f)_0x503413['writer']['removeClass']('ck-suggestion-marker-'+_0x544655,_0x2fef8b),_0x503413['writer']['removeClass']('ck-suggestion-marker--active',_0x2fef8b),_0x503413['writer']['removeAttribute']('data-suggestion',_0x2fef8b),_0x503413['mapper']['unbindElementFromMarkerName'](_0x2fef8b,_0x4ab8e7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x463474=this['editor'],_0x51072d=_0x463474['locale'];function _0x1fe842(_0x1d41a0){return{'type':'format','content':o(_0x51072d,'*Format:*\x20%0',_0x1d41a0)};}_0x463474['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bf1a0=>{if('formatBlock'!=_0x2bf1a0['type'])return;const {data:_0x1ca3ab}=_0x2bf1a0;if(_0x1ca3ab){if('setTableRowHeader'==_0x1ca3ab['commandName']){const _0x53bbb3=_0x1ca3ab['commandParams'][0x0]['forceValue'];return _0x1fe842(o(_0x51072d,_0x53bbb3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1ca3ab['commandName']){const _0x25b6cb=_0x1ca3ab['commandParams'][0x0]['forceValue'];return _0x1fe842(o(_0x51072d,_0x25b6cb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0xada53b=>[_0xada53b,null]));class It extends _0x16481a{static get['requires'](){return[jt];}['afterInit'](){const _0xee09c3=this['editor'];if(!_0xee09c3['plugins']['has']('TableClipboard'))return;const _0x4e1cbb=_0xee09c3['plugins']['get']('TrackChangesEditing'),_0x4501fd=_0xee09c3['plugins']['get']('TableUtils'),_0x384639=_0xee09c3['plugins']['get'](jt),_0x4e5d3a=_0xee09c3['plugins']['get']('TableClipboard');_0x384639['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xee09c3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xee09c3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2400d7=null;_0xee09c3['model']['on']('insertContent',(_0x3bf8b3,_0x1a5bdc)=>{const [_0x14ece8,_0xf8aed7]=_0x1a5bdc,_0x3b2f4e=_0x1a5bdc[_0x1a5bdc['length']-0x1];_0x3b2f4e&&_0x3b2f4e['forceDefaultExecution']||_0x4e1cbb['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x460de2,_0x34c347,_0x47ee5d,_0x557232,_0x4d09bf){if(_0x34c347&&!_0x34c347['is']('documentSelection'))return!0x1;const _0xd96788=_0x4d09bf['getTableIfOnlyTableInContent'](_0x460de2,_0x47ee5d);if(!_0xd96788||!he(_0xd96788,void 0x0,_0x557232))return!0x1;const _0x8418a5=_0x557232['getSelectionAffectedTableCells'](_0x47ee5d['document']['selection']);if(!_0x8418a5['length'])return!0x1;const _0x10e786=_0x8418a5[0x0]['findAncestor']('table'),_0x522b4c=_0x557232['getRowIndexes'](_0x8418a5),_0x31ab7d=_0x557232['getColumnIndexes'](_0x8418a5),_0x4f85b2={'startRow':_0x522b4c['first'],'endRow':_0x522b4c['last'],'startColumn':_0x31ab7d['first'],'endColumn':_0x31ab7d['last']};return 0x1==_0x8418a5['length']&&(_0x4f85b2['endRow']+=_0x557232['getRows'](_0xd96788)-0x1,_0x4f85b2['endColumn']+=_0x557232['getColumns'](_0xd96788)-0x1),he(_0x10e786,_0x4f85b2,_0x557232);}(_0x14ece8,_0xf8aed7,_0xee09c3['model'],_0x4501fd,_0x4e5d3a)&&(_0x3bf8b3['stop'](),_0x2400d7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xee09c3['model']['change'](()=>{_0xee09c3['model']['insertContent'](_0x1a5bdc[0x0],_0x1a5bdc[0x1],_0x1a5bdc[0x2],{'forceDefaultExecution':!0x0});const _0x2cb500=_0x287d7d(),{rowInsertionRanges:_0xa1b666,columnInsertionRanges:_0x4b5708,insertionRanges:_0x34d712,deletionRanges:_0x57bb64,cells:_0x3976cf}=_0x2400d7;_0xa1b666['length']&&_0x4e1cbb['markMultiRangeInsertion'](_0xa1b666,'tablePasteRow',{'tablePasteChainId':_0x2cb500}),_0x4b5708['length']&&_0x4e1cbb['markMultiRangeInsertion'](_0x4b5708,'tablePasteColumn',{'tablePasteChainId':_0x2cb500}),_0x34d712['length']&&(_0x4e1cbb['markMultiRangeInsertion'](_0x34d712,'tablePaste',{'tablePasteChainId':_0x2cb500,'skipNestingCheck':!0x0}),_0x34d712['forEach'](_0x398ac9=>_0x398ac9['detach']?.())),_0x57bb64['length']&&(_0x4e1cbb['markMultiRangeDeletion'](_0x57bb64,'tablePaste',{'tablePasteChainId':_0x2cb500,'skipNestingCheck':!0x0}),_0x57bb64['forEach'](_0xa5b754=>_0xa5b754['detach']?.()));const _0x50b8a7=_0x4e1cbb['markMultiRangeBlockFormat'](_0x3976cf['map'](({element:_0x2eefe2})=>_0x2eefe2),{'formatGroupId':_0x287d7d()},[],'tablePasteCell',{'tablePasteChainId':_0x2cb500});if(_0x50b8a7){const _0x42ca6a=_0x50b8a7['getMarkers'](),_0x710c94=[];for(const {element:_0x2d2797,attributes:_0x43c909}of _0x3976cf){if(!_0x43c909)continue;const _0x50933f=_0xee09c3['model']['createRangeOn'](_0x2d2797),_0x149b2c=_0x42ca6a['find'](_0x4dfa8f=>_0x4dfa8f['getRange']()['isEqual'](_0x50933f));_0x149b2c&&_0x710c94['push']([_0x149b2c['name'],_0x43c909]);}_0x710c94['length']&&_0x50b8a7['setAttribute']('markerAttributes',Object['fromEntries'](_0x710c94));}_0x2400d7=null;}));},{'priority':_0x13dea8['high']+0xa}),_0xee09c3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x38a185,_0x466191)=>{const [_0x70b31f,_0x372e50,,_0x1e51d0]=_0x466191;if(!_0x2400d7)return;_0x38a185['stop']();const _0x1c75e8=_0x70b31f['cell'],_0x313b11=_0x372e50,_0x18dc24=Pe(_0x1c75e8),_0x543a09=Pe(_0x313b11);_0x38a185['return']=_0x1c75e8;let _0x4e05f5=null,_0x50de09=null;if(_0x543a09||_0x18dc24){if(_0x18dc24&&!_0x543a09){_0x1e51d0['remove'](_0x1c75e8['getChild'](0x0));for(const _0x5b64d1 of Array['from'](_0x313b11['getChildren']()))_0x1e51d0['insert'](_0x5b64d1,_0x1c75e8,'end');const _0x514ab1=_0x2400d7['rowInsertionIndexes']['includes'](_0x70b31f['row']),_0x1abad3=_0x2400d7['columnInsertionIndexes']['includes'](_0x70b31f['column']);_0x514ab1||_0x1abad3||(_0x4e05f5=_0x55c0b1['fromRange'](_0x1e51d0['createRangeIn'](_0x1c75e8)));}else _0x543a09&&!_0x18dc24&&(_0x50de09=_0x1e51d0['createRangeIn'](_0x1c75e8));}else{const _0x472c83=_0x1e51d0['createElement']('tableCellSuggestion'),_0x3f6dd2=_0x1e51d0['createElement']('tableCellSuggestion');_0x1e51d0['wrap'](_0x1e51d0['createRangeIn'](_0x1c75e8),_0x3f6dd2),_0x1e51d0['insert'](_0x472c83,_0x1c75e8,0x0);for(const _0x5e4f9b of Array['from'](_0x313b11['getChildren']()))_0x1e51d0['insert'](_0x5e4f9b,_0x472c83,'end');_0x4e05f5=_0x55c0b1['fromRange'](_0x1e51d0['createRangeOn'](_0x472c83)),_0x50de09=_0x55c0b1['fromRange'](_0x1e51d0['createRangeOn'](_0x3f6dd2));}const _0x5085be=Array['from'](_0x313b11['getAttributes']())['filter'](([_0x5adee6])=>ge['includes'](_0x5adee6));_0x2400d7['cells']['push']({'element':_0x1c75e8,'attributes':_0x5085be['length']?Object['fromEntries'](_0x5085be):null}),_0x4e05f5&&_0x2400d7['insertionRanges']['push'](_0x4e05f5),_0x50de09&&_0x2400d7['deletionRanges']['push'](_0x50de09);},{'priority':'high'}),_0x4501fd['on']('insertColumns',(_0x456b04,_0x1baf28)=>{const [_0x536bdd,_0x2ff201={}]=_0x1baf28;if(!_0x2400d7)return;const _0x23379f=_0x2ff201['at']||0x0,_0x32e435=_0x2ff201['columns']||0x1;_0x2400d7['columnInsertionIndexes']=new Array(_0x32e435)['fill'](_0x23379f)['map']((_0x1a64f4,_0x351d8c)=>_0x1a64f4+_0x351d8c);for(const {cell:_0x4e98e3}of _0x4501fd['createTableWalker'](_0x536bdd,{'startColumn':_0x23379f,'endColumn':_0x23379f+_0x32e435-0x1}))_0x2400d7['columnInsertionRanges']['push'](_0xee09c3['model']['createRangeOn'](_0x4e98e3));},{'priority':'low'}),_0x4501fd['on']('insertRows',(_0x4c2870,_0x6ae257)=>{const [_0x5afdef,_0x300f65={}]=_0x6ae257;if(!_0x2400d7)return;const _0x89b025=_0x300f65['at']||0x0,_0x79a260=_0x300f65['rows']||0x1;_0x2400d7['rowInsertionIndexes']=new Array(_0x79a260)['fill'](_0x89b025)['map']((_0x27a01f,_0x3a23b5)=>_0x27a01f+_0x3a23b5);for(const {cell:_0x4d953d}of _0x4501fd['createTableWalker'](_0x5afdef,{'startRow':_0x89b025,'endRow':_0x89b025+_0x79a260-0x1}))_0x2400d7['rowInsertionRanges']['push'](_0xee09c3['model']['createRangeOn'](_0x4d953d));},{'priority':'low'}),_0x4e1cbb['descriptionFactory']['registerDescriptionCallback'](_0x1a2118=>{if(_0x1a2118['subType']&&_0x1a2118['subType']['startsWith']('tablePaste'))return _0x1a2118['previous']?{}:{'type':'insertion','content':o(_0xee09c3['locale'],'*Replace\x20table\x20cells*')};});const _0x46360d=()=>!0x1;for(const _0x402ca6 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('insertion',_0x402ca6,'join',_0x46360d),_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('deletion',_0x402ca6,'join',_0x46360d),_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x402ca6,'join',_0x46360d);_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x46360d),_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5c24e2,_0x2e34a7,_0xa8e14d)=>{const _0x4d215b=_0x5c24e2['map'](_0x2ea364=>_0x2ea364['getContainedElement']())['filter'](_0x148f35=>_0x148f35),_0x28e833=new Map(_0x4d215b['map'](_0x3ab51d=>[_0x3ab51d,null]));if(_0x2400d7){for(const {element:_0x350e90,attributes:_0x58578f}of _0x2400d7['cells'])_0x58578f&&_0x28e833['set'](_0x350e90,_0x58578f);}else{if(_0xa8e14d&&_0xa8e14d['markerAttributes'])for(const [_0x33ed38,_0x8d205b]of Object['entries'](_0xa8e14d['markerAttributes'])){const _0x22e261=_0xee09c3['model']['markers']['get'](_0x33ed38),_0x558ba0=_0x22e261?_0x22e261['getRange']()['getContainedElement']():null;_0x558ba0&&_0x28e833['set'](_0x558ba0,_0x8d205b);}}_0xee09c3['model']['change'](_0x3fbf7d=>{for(const [_0x56e001,_0xe442ab]of _0x28e833)_0x3fbf7d['setAttributes']({...Ce,..._0xe442ab},_0x56e001);});});const _0x241608=(_0x2a4406,_0xaa28f6)=>{_0x4e1cbb['_suggestionFactory']['registerCustomCallback'](_0x2a4406,'tablePaste',_0xaa28f6,(_0x11d9aa,_0x33edc1,_0x277629)=>{_0xee09c3['model']['change'](_0x4bee08=>{const _0x544626=[];for(const _0x456b71 of _0x11d9aa){const _0x4dc465=_0x456b71['start']['nodeAfter'];_0x4dc465['is']('element','tableCellSuggestion')&&_0x544626['push'](_0x4dc465);}_0x4e1cbb['_suggestionFactory']['getSuggestionCallback'](_0x2a4406,null,_0xaa28f6)(_0x11d9aa,_0x33edc1,_0x277629);for(const _0x31c717 of _0x544626)'$graveyard'!=_0x31c717['root']['rootName']&&_0x4bee08['unwrap'](_0x31c717);});});};_0x241608('insertion','accept'),_0x241608('insertion','discard'),_0x241608('deletion','accept'),_0x241608('deletion','discard'),_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x341646=>{const _0x544f92=_0x341646['map'](_0xfbbd63=>_0xfbbd63['getContainedElement']()),_0x3378a2=_0x544f92[0x0]['findAncestor']('table'),{minRow:_0x4d398f,maxRow:_0x25f189}=_0x384639['_getCoordsForCells'](_0x544f92);_0x4501fd['removeRows'](_0x3378a2,{'at':_0x4d398f,'rows':_0x25f189-_0x4d398f+0x1});}),_0x4e1cbb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x21f695=>{const _0x19157a=_0x21f695['map'](_0x38b995=>_0x38b995['getContainedElement']()),_0x406477=_0x19157a[0x0]['findAncestor']('table'),{minColumn:_0x37a742,maxColumn:_0x411867}=_0x384639['_getCoordsForCells'](_0x19157a);_0x4501fd['removeColumns'](_0x406477,{'at':_0x37a742,'columns':_0x411867-_0x37a742+0x1});});const _0x1d24b2=(_0x24eb78,_0x1f2c98)=>{if(!_0x1f2c98['subType']||!_0x1f2c98['subType']['startsWith']('tablePaste'))return;const _0x5b7eda=_0x1f2c98['attributes']['tablePasteChainId'],_0x540fcb=_0x4e1cbb['getSuggestions']()['filter'](_0x4a387f=>_0x4a387f['isInContent']&&_0x4a387f['attributes']&&_0x4a387f['attributes']['tablePasteChainId']==_0x5b7eda);_0x540fcb['length']&&_0x1f2c98['getAllAdjacentSuggestions']()['length']!=_0x540fcb['length']&&_0x540fcb['reduce']((_0x4dc401,_0x2239d2)=>(_0x4dc401['next']=_0x2239d2,_0x2239d2['previous']=_0x4dc401,_0x2239d2));};function _0x22aa39(_0x161249,_0x86d48d=!0x0){const {id:_0x54a123}=_0x4e1cbb['_splitMarkerName'](_0x161249['markerName']),_0x38d933=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2bebd0=_0x4e1cbb['activeMarkers']['includes'](_0x161249['markerName']);return _0x2bebd0&&_0x38d933['push']('ck-suggestion-marker--active'),{'classes':_0x38d933,'attributes':{'data-suggestion':_0x54a123},'priority':_0x2bebd0&&_0x86d48d?0xbc2:0xbb8};}_0x4e1cbb['on']('suggestionLoaded',_0x1d24b2,{'priority':'high'}),_0x4e1cbb['on']('suggestionUnloaded',_0x1d24b2,{'priority':'high'}),_0xee09c3['model']['document']['registerPostFixer'](()=>{let _0x2398d8=!0x1;const _0x5221bb=Array['from'](_0xee09c3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b20b7,data:_0x3b6d10}of _0x5221bb){const {group:_0x5392bd,type:_0x29a444,id:_0x51bf32}=_0x4e1cbb['_splitMarkerName'](_0x5b20b7);if('suggestion'!=_0x5392bd||'deletion'!=_0x29a444||_0x3b6d10['oldRange'])continue;if(!_0x4e1cbb['hasSuggestion'](_0x51bf32))continue;const _0x2b1856=_0x4e1cbb['getSuggestion'](_0x51bf32)['getRanges'](),_0x45be47=_0xee09c3['plugins']['get']('Users')['me'];for(const _0x3f6d44 of _0x4e1cbb['getSuggestions']()){if(!_0x3f6d44['isInContent']||_0x3f6d44['author']!=_0x45be47)continue;if('formatBlock'!=_0x3f6d44['type']||'tablePasteCell'!=_0x3f6d44['subType'])continue;if(_0x3f6d44['getRanges']()['every'](_0x52f0d9=>_0x2b1856['some'](_0x3405f8=>_0x3405f8['containsRange'](_0x52f0d9,!0x0)))){for(const _0x437587 of _0x3f6d44['getAllAdjacentSuggestions']())_0x437587['isInContent']&&(_0x437587['discard'](),_0x2398d8=!0x0);}}}return _0x2398d8;}),_0xee09c3['model']['document']['registerPostFixer'](_0x2cb7f0=>{const _0x59f21c=_0xee09c3['commands']['get']('redo');if(!_0x59f21c||!_0x59f21c['_createdBatches']['has'](_0x2cb7f0['batch']))return!0x1;let _0x4a59f3=!0x1;const _0x4c8465=_0xee09c3['plugins']['get']('Users')['me'],_0x37a2d3=_0xee09c3['model']['document']['differ']['getChanges'](),_0x22575f=Array['from'](_0xee09c3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x530e94,data:_0xf12795})=>{const {group:_0x367544,subType:_0x3643ac,authorId:_0x2d0fa4}=_0x4e1cbb['_splitMarkerName'](_0x530e94);return'suggestion'==_0x367544&&'tablePaste'==_0x3643ac&&_0x2d0fa4==_0x4c8465['id']&&!_0xf12795['oldRange'];});for(const _0x3d35a4 of _0x37a2d3){if('insert'!=_0x3d35a4['type']||'tableCellSuggestion'!=_0x3d35a4['name']||0x1!=_0x3d35a4['length'])continue;const _0x2a5a9a=_0x2cb7f0['createRange'](_0x3d35a4['position'],_0x3d35a4['position']['getShiftedBy'](0x1));if(!_0x22575f['find'](({data:_0x5e2e78})=>_0x5e2e78['newRange']['isEqual'](_0x2a5a9a))){for(const {name:_0x1c8012,data:_0x5dbe2d}of _0x22575f)if(_0x2a5a9a['containsRange'](_0x5dbe2d['newRange'])){_0x2cb7f0['updateMarker'](_0x1c8012,{'range':_0x2a5a9a}),_0x4a59f3=!0x0;break;}}}return _0x4a59f3;}),_0xee09c3['model']['document']['registerPostFixer'](_0x346d76=>{let _0x1ca614=!0x1;const _0x373a2a=_0xee09c3['plugins']['get']('Users')['me'],_0xefb249=_0x4e1cbb['getSuggestions']()['filter'](_0x2aeeea=>_0x2aeeea['isInContent']&&_0x2aeeea['author']==_0x373a2a),_0x49bd4f=new Set(),_0x26b90b=new Set();for(const _0x316e29 of _0xefb249)if('tablePaste'==_0x316e29['subType'])for(const _0x37cba2 of _0x316e29['getMarkers']()){const _0x289a60=_0x37cba2['getRange']()['getContainedElement']();if(_0x289a60){if(_0x289a60['is']('element','tableCellSuggestion')&&Pe(_0x289a60)){_0x316e29['removeMarker'](_0x37cba2['name']),_0x49bd4f['add'](_0x289a60),_0x1ca614=!0x0;const _0x4152fd=_0x289a60['nextSibling'],_0x42ff56=_0x289a60['previousSibling'],_0x23a1b4=_0x4152fd&&_0x4152fd['is']('element','tableCellSuggestion'),_0x5edbe5=_0x42ff56&&_0x42ff56['is']('element','tableCellSuggestion');_0x23a1b4&&!_0x49bd4f['has'](_0x4152fd)&&_0x26b90b['add'](_0x4152fd),_0x5edbe5&&!_0x49bd4f['has'](_0x42ff56)&&_0x26b90b['add'](_0x42ff56);}else _0x289a60['is']('element','paragraph')&&_0x289a60['isEmpty']&&(_0x316e29['removeMarker'](_0x37cba2['name']),_0x1ca614=!0x0);}}else{if('tablePasteCell'==_0x316e29['subType']){if(!_0x316e29['attributes']||!_0x316e29['attributes']['tablePasteChainId'])continue;const _0x385ae2=_0x316e29['attributes']['markerAttributes'];if(_0x385ae2&&Object['keys'](_0x385ae2)['length'])continue;const _0x3a2f7f=_0x316e29['attributes']['tablePasteChainId'];let _0x30ea12=!0x0,_0x15fc07=!0x0;for(const _0x34fbaf of _0xefb249)if(_0x34fbaf['subType']&&_0x34fbaf['subType']['startsWith']('tablePaste')){if(!_0x34fbaf['attributes']['tablePasteChainId']){_0x15fc07=!0x1;break;}if(_0x34fbaf['id']!=_0x316e29['id']&&_0x34fbaf['attributes']['tablePasteChainId']==_0x3a2f7f){_0x30ea12=!0x1;break;}}_0x15fc07&&_0x30ea12&&(_0x316e29['removeMarkers'](),_0x1ca614=!0x0);}}for(const _0x48dae8 of _0x49bd4f)_0x346d76['remove'](_0x48dae8);for(const _0x56516a of _0x26b90b)_0x346d76['unwrap'](_0x56516a);return _0x1ca614;}),_0xee09c3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3fae41,_0x53fa21)=>_0x22aa39(_0x3fae41),'converterPriority':'high'}),_0xee09c3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4407f0,_0x4686cb)=>_0x4686cb['options']['showSuggestionHighlights']?_0x22aa39(_0x4407f0,!0x1):null,'converterPriority':'high'});const _0x5ed555=_0xee09c3['editing']['view'];this['listenTo'](_0x5ed555['document'],'clipboardOutput',(_0x5a0a28,_0x3810db)=>{const _0x51060e=[];for(const _0x19d575 of _0x5ed555['createRangeIn'](_0x3810db['content'])['getItems']())_0x19d575['is']('element','suggestion-td')&&_0x51060e['push'](_0x19d575);_0x5ed555['change'](_0x2c5cd6=>{for(const _0x489251 of _0x51060e)_0x2c5cd6['move'](_0x2c5cd6['createRangeIn'](_0x489251),_0x2c5cd6['createPositionBefore'](_0x489251)),_0x2c5cd6['remove'](_0x489251);});});}}function Pe(_0x3e7229){if(_0x3e7229['isEmpty'])return!0x0;const _0x541308=_0x3e7229['getChild'](0x0);return _0x541308['is']('element','paragraph')&&_0x541308['isEmpty'];}function he(_0x3c3297,_0x5ddd07={},_0x2cd70f){for(const {isAnchor:_0x5e3cc7,cellHeight:_0x377b37,cellWidth:_0x552d37}of _0x2cd70f['createTableWalker'](_0x3c3297,{'includeAllSlots':!0x0,..._0x5ddd07}))if(!_0x5e3cc7||0x1!=_0x377b37||0x1!=_0x552d37)return!0x1;return!0x0;}class vt extends _0x16481a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xb5d9ed=this['editor']['plugins']['get']('TrackChangesEditing');_0xb5d9ed['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xb5d9ed['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xb5d9ed['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb5d9ed['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xb5d9ed['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xb5d9ed['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2864e7,_0x4caf11){const _0x327878=this['editor']['plugins']['get']('TrackChangesEditing'),_0xedb49e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x27c805=_0x4caf11['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4490d0=_0xedb49e['getColumnGroupElement'](_0x27c805);let _0x5d0110=_0x4490d0?_0xedb49e['getTableColumnsWidths'](_0x4490d0):null,_0x2cd6fd=_0x27c805['getAttribute']('tableWidth')||null;const _0x56fd46=_0x4caf11['tableWidth']||_0x2cd6fd,_0x38ee42=_0x4caf11['columnWidths']||_0x5d0110,_0x3a67a8=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ff6c2 of _0x327878['getSuggestions']()){const _0x4be313=_0x3ff6c2['getContainedElement']();if('resizeTable'===_0x3ff6c2['subType']&&_0x4be313===_0x27c805){_0x3ff6c2['author']!==_0x3a67a8&&_0x3ff6c2['discard']();const _0x2d61be=_0x3ff6c2['data']['commandParams'];_0x2cd6fd=_0x2d61be[0x0]['tableWidth'],_0x5d0110=_0x2d61be[0x0]['columnWidths'];break;}}_0x2864e7({'table':_0x27c805,'tableWidth':_0x56fd46,'columnWidths':_0x38ee42}),_0x327878['markBlockFormat'](_0x27c805,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2cd6fd,'columnWidths':_0x5d0110}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x228078){if('formatBlock'!=_0x228078['type']&&'formatInline'!=_0x228078['type'])return;const {data:_0x238692}=_0x228078;if(_0x238692&&'resizeTable'===_0x238692['formatGroupId']){const _0x3d1e83='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3d1e83)};}}}class Ct extends _0x16481a{['afterInit'](){const _0x1bc12c=this['editor'];_0x1bc12c['plugins']['has']('Template')&&_0x1bc12c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x16481a{['afterInit'](){const _0x5baa2d=this['editor'];if(!_0x5baa2d['commands']['get']('insertTableOfContents'))return;_0x5baa2d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x33c07a=_0x5baa2d['plugins']['get']('TrackChangesEditing'),_0x5ecd8f=_0x5baa2d['locale'];_0x33c07a['descriptionFactory']['registerElementLabel']('tableOfContents',_0x595af1=>o(_0x5ecd8f,'ELEMENT_TABLE_OF_CONTENTS',_0x595af1));}}class Dt extends _0x16481a{['afterInit'](){const _0x56c552=this['editor'];if(!_0x56c552['plugins']['has']('Title'))return;const _0x168e22=_0x56c552['plugins']['get']('TrackChangesEditing');_0x168e22['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x56c552['locale'],'ELEMENT_TITLE')),_0x56c552['model']['document']['registerPostFixer'](_0x17e84e=>{let _0x414b1e=!0x1;const _0x34faed=Array['from'](_0x56c552['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3ef972,data:_0x4e5064}of _0x34faed){const {group:_0x2a31dd}=_0x168e22['_splitMarkerName'](_0x3ef972);if('suggestion'!==_0x2a31dd||!_0x4e5064['newRange'])continue;const _0x3a626e=_0x4e5064['newRange'],_0x3e4021=_0x3a626e['end']['nodeBefore'];if(!_0x3e4021||!_0x3e4021['is']('element','title-content'))continue;if(!_0x3a626e['start']['isTouching'](_0x3a626e['end']))continue;const _0x53a72d=_0x56c552['model']['schema']['getNearestSelectionRange'](_0x3a626e['end'],'forward');if(_0x53a72d&&_0x53a72d['isCollapsed']){const _0x31e2f5=_0x17e84e['createRange'](_0x3a626e['start'],_0x53a72d['start']);_0x31e2f5['isEqual'](_0x3a626e)||(_0x17e84e['updateMarker'](_0x3ef972,{'range':_0x31e2f5}),_0x414b1e=!0x0);}_0x414b1e||(_0x17e84e['removeMarker'](_0x3ef972),_0x414b1e=!0x0);}return _0x414b1e;});}}class Nt extends _0x16481a{['afterInit'](){const _0x5d4a27=this['editor'],_0x19efa6=_0x5d4a27['plugins']['get']('TrackChangesEditing');_0x5d4a27['plugins']['has']('UndoEditing')&&(_0x19efa6['enableCommand']('undo'),_0x19efa6['enableCommand']('redo'));}}class Mt extends _0x16481a{static get['requires'](){return[jt];}['afterInit'](){const _0x59bbe2=this['editor'];if(!_0x59bbe2['plugins']['has']('TableCaptionEditing'))return;_0x59bbe2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x16481a{['tableProperties'];['tableCellProperties'];constructor(_0x1a9e04){super(_0x1a9e04),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 _0x1cd73f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4605c2 of this['tableProperties'])_0x1cd73f['enableCommand'](_0x4605c2,(_0x3bfd60,_0x2b35e8)=>{const _0x41e73a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4605c2,[_0x41e73a],this['tableProperties'],'tableProperties',_0x3bfd60,_0x2b35e8);});_0x1cd73f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1cd73f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cd73f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x47344e,_0x239779)=>this['handleDiscardAction'](this['tableProperties'],_0x47344e,_0x239779)),_0x1cd73f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1d5929 of this['tableCellProperties'])_0x1cd73f['enableCommand'](_0x1d5929,(_0x3e45c4,_0x54e053)=>{const _0x49564f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1d5929,_0x49564f,this['tableCellProperties'],'tableCellProperties',_0x3e45c4,_0x54e053);});_0x1cd73f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1cd73f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cd73f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x424ed1,_0x449a82)=>this['handleDiscardAction'](this['tableCellProperties'],_0x424ed1,_0x449a82)),_0x1cd73f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1cd73f['descriptionFactory']['registerDescriptionCallback'](_0x1a3250=>this['handleSuggestionDescription'](_0x1a3250));}['_handlePropertyChange'](_0x5ee272,_0x19a9c8,_0x3e22fe,_0x225efc,_0x5784e2,_0x5891b1){const _0x517e41=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5891b1['batch'],()=>{for(const _0x5292fc of _0x19a9c8){if(this['_getSuggestion'](_0x5292fc,_0x225efc))_0x5784e2(_0x5891b1);else{const _0x24cf6d={};for(const _0x246672 of _0x3e22fe){const _0x5a9638=_0x5292fc['getAttribute'](_0x246672);void 0x0!==_0x5a9638&&(_0x24cf6d[_0x246672]=_0x5a9638);}_0x5784e2(_0x5891b1),_0x517e41['markBlockFormat'](_0x5292fc,{'commandParams':[_0x24cf6d]},[],_0x225efc);}}});}['handleDiscardAction'](_0x1dcfce,_0x4c7895,_0x403f6e){const _0x2479c1=_0x4c7895[0x0]['start']['nodeAfter'],_0x85b2f0=_0x403f6e['commandParams'][0x0];this['editor']['model']['change'](_0x41b1c0=>{for(const _0x4e78a4 of _0x1dcfce)void 0x0!==_0x85b2f0[_0x4e78a4]?_0x41b1c0['setAttribute'](_0x4e78a4,_0x85b2f0[_0x4e78a4],_0x2479c1):_0x41b1c0['removeAttribute'](_0x4e78a4,_0x2479c1);});}['handleSuggestionDescription'](_0x57f2ff){if(_0x57f2ff['data'])switch(_0x57f2ff['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'](_0x29cba4,_0xd84aad){const _0x3f74ad=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x51c301 of _0x3f74ad['getSuggestions']({'skipNotAttached':!0x0})){const _0x4e5b90=_0x51c301['getContainedElement']();if(_0x51c301['subType']===_0xd84aad&&_0x4e5b90===_0x29cba4)return _0x51c301;}return null;}}const m='$elementName';class p extends _0x16481a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x214dba,_0x598d5a,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(_0x54d1ea){function _0x56c649(_0xa4dfab){return _0xa4dfab['map'](_0x5cd3cb=>String['fromCharCode'](_0x5cd3cb))['join']('');}super(_0x54d1ea),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4908c0,_0x45e53f,_0xa2b2a5,_0x2d5b8c)=>{this['_model']['change'](()=>{for(const _0x2dc0fa of[..._0x2d5b8c,..._0xa2b2a5])this['_model']['markers']['has'](_0x2dc0fa)&&_0x54d1ea['editing']['reconvertMarker'](_0x2dc0fa);});}),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']=_0x54d1ea['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(),_0x54d1ea['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x54d1ea['config']['get']('trackChanges.trackFormatChanges'),_0x54d1ea['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x54d1ea['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x54d1ea,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x56c649([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x56c649([0x34,0x30,0x34,0x38,0x31,0x34,0x30,0x34]);}['init'](){const _0x5506b9=this['editor'],_0x289492=(_0x3dc55e,_0xc8d1cc)=>{if('attribute'!=_0x3dc55e)return'ck-suggestion-marker-'+_0x3dc55e;const _0x5720b7=_0xc8d1cc['split']('|')[0x0];return this['_isBlockAttribute'](_0x5720b7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5506b9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4bd115=>{const {id:_0x1066dc,type:_0x4ca0d0,subType:_0x1f842e}=this['_splitMarkerName'](_0x4bd115['markerName']),_0x17d27c=['ck-suggestion-marker',_0x289492(_0x4ca0d0,_0x1f842e)];let _0x6c0de9=0xbb8;return this['activeMarkers']['includes'](_0x4bd115['markerName'])&&(_0x17d27c['push']('ck-suggestion-marker--active'),_0x6c0de9=0xbc2),'deletion'==_0x4ca0d0&&(_0x6c0de9+=0x5),{'classes':_0x17d27c,'attributes':{'data-suggestion':_0x1066dc},'priority':_0x6c0de9};}}),_0x5506b9['conversion']['for']('dataDowncast')['add'](_0x337e9e=>{_0x337e9e['on']('addMarker:suggestion',(_0x2b136b,_0x3fab9a,_0x245247)=>{if(!_0x245247['options']['showSuggestionHighlights'])return;const _0x2dd644=_0x3fab9a['item'];if(!_0x2dd644)return;const _0x204ba9=_0x245247['mapper']['toViewElement'](_0x2dd644);_0x5506b9['model']['schema']['isObject'](_0x2dd644)&&_0x204ba9&&!_0x204ba9['getCustomProperty']('widget')&&_0x204ba9['is']('containerElement')&&_0x1ae684(_0x204ba9,_0x245247['writer']);},{'priority':'high'});}),_0x5506b9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x502e95,_0x125294)=>{if(!_0x125294['options']['showSuggestionHighlights'])return null;const {type:_0x3b8a7b,subType:_0x5296ee}=this['_splitMarkerName'](_0x502e95['markerName']);return{'classes':['ck-suggestion-marker',_0x289492(_0x3b8a7b,_0x5296ee)],'priority':0xbb8};}});const _0x26b5b0=({showActiveMarkers:_0x417c30=!0x0,isAttributeSuggestion:_0x547e20=!0x1}={})=>(_0x48deb3,_0x1f9b9a,_0x4e17d4)=>{if(!_0x1f9b9a['item'])return;const {id:_0x35f3ad}=this['_splitMarkerName'](_0x1f9b9a['markerName']);if(_0x547e20){const _0x2c4dfd=this['_suggestions']['get'](_0x35f3ad),_0x398af9=this['_getAttributeKey'](_0x2c4dfd);if(!this['_isBlockAttribute'](_0x398af9))return;}if(_0x1f9b9a['item']['is']('selection'))return void _0x4e17d4['consumable']['consume'](_0x1f9b9a['item'],_0x48deb3['name']);const _0x4f302d=_0x4e17d4['mapper']['toViewElement'](_0x1f9b9a['item']);if(_0x1f9b9a['item']['is']('element')&&_0x5506b9['model']['schema']['isBlock'](_0x1f9b9a['item'])&&!_0x4f302d['getCustomProperty']('addHighlight')){_0x4e17d4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f302d),_0x4e17d4['writer']['setAttribute']('data-suggestion',_0x35f3ad,_0x4f302d),_0x4e17d4['mapper']['bindElementToMarker'](_0x4f302d,_0x1f9b9a['markerName']),_0x417c30&&(this['activeMarkers']['includes'](_0x1f9b9a['markerName'])?_0x4e17d4['writer']['addClass']('ck-suggestion-marker--active',_0x4f302d):_0x4e17d4['writer']['removeClass']('ck-suggestion-marker--active',_0x4f302d));for(const _0x55ed69 of _0x5506b9['model']['createRangeIn'](_0x1f9b9a['item'])['getItems']())_0x4e17d4['consumable']['consume'](_0x55ed69,_0x48deb3['name']);_0x4e17d4['consumable']['consume'](_0x1f9b9a['item'],_0x48deb3['name']);}};_0x5506b9['conversion']['for']('dataDowncast')['add'](_0x3656a4=>{_0x3656a4['on']('addMarker:suggestion:formatBlock',(_0x2268fb,_0x4c5c36,_0x81f19c)=>{_0x81f19c['options']['showSuggestionHighlights']&&_0x26b5b0({'showActiveMarkers':!0x1})(_0x2268fb,_0x4c5c36,_0x81f19c);},{'priority':'highest'});}),_0x5506b9['conversion']['for']('dataDowncast')['add'](_0x11a5cf=>{_0x11a5cf['on']('addMarker:suggestion:attribute',(_0x46692a,_0x30c8a7,_0xc10c58)=>{_0xc10c58['options']['showSuggestionHighlights']&&_0x26b5b0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x46692a,_0x30c8a7,_0xc10c58);},{'priority':'highest'});}),_0x5506b9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5d75a1,_0x30f29a)=>_0x30f29a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5d75a1['substr'](0xb)}}),_0x5506b9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5ffb53,{writer:_0xc648a2})=>{let _0x495159='suggestion:'+_0x5ffb53['getAttribute']('suggestion-type')+':'+_0x5ffb53['getAttribute']('id');return _0x5ffb53['getAttribute']('marker-count')&&(_0x495159+=':'+_0x5ffb53['getAttribute']('marker-count')),_0xc648a2['createElement']('$marker',{'data-name':_0x495159});}}),_0x5506b9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5506b9['conversion']['for']('editingDowncast')['add'](_0x5db53c=>{_0x5db53c['on']('addMarker:suggestion:formatBlock',_0x26b5b0(),{'priority':'high'});}),_0x5506b9['conversion']['for']('editingDowncast')['add'](_0x3feaf9=>{_0x3feaf9['on']('addMarker:suggestion:attribute',_0x26b5b0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5506b9['conversion']['for']('editingDowncast')['add'](_0x226654=>{_0x226654['on']('removeMarker:suggestion:formatBlock',(_0x28e005,_0x3b9d2f,_0x44efb2)=>{const _0x39de5a=_0x44efb2['mapper']['markerNameToElements'](_0x3b9d2f['markerName']);if(_0x39de5a){for(const _0x21186c of _0x39de5a)_0x21186c['getCustomProperty']('addHighlight')||(_0x44efb2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x21186c),_0x44efb2['writer']['removeAttribute']('data-suggestion',_0x21186c),_0x44efb2['mapper']['unbindElementFromMarkerName'](_0x21186c,_0x3b9d2f['markerName']));}},{'priority':'high'});}),_0x5506b9['conversion']['for']('editingDowncast')['add'](_0x316487=>{_0x316487['on']('removeMarker:suggestion:attribute',(_0x7837dc,_0x31be90,_0x4cad05)=>{const _0x26904d=_0x4cad05['mapper']['markerNameToElements'](_0x31be90['markerName']);if(!_0x26904d)return;const {id:_0x1f1d58}=this['_splitMarkerName'](_0x31be90['markerName']),_0x51cd3c=this['_suggestions']['get'](_0x1f1d58),_0x59e756=this['_getAttributeKey'](_0x51cd3c);if(this['_isBlockAttribute'](_0x59e756)){for(const _0x578af8 of _0x26904d)_0x578af8['getCustomProperty']('addHighlight')||(_0x4cad05['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x578af8),_0x4cad05['writer']['removeAttribute']('data-suggestion',_0x578af8),_0x4cad05['mapper']['unbindElementFromMarkerName'](_0x578af8,_0x31be90['markerName']));}},{'priority':'high'});}),_0x5506b9['model']['document']['registerPostFixer'](_0x467837=>{let _0x503d3b=!0x1;const _0x1421e1=Array['from'](_0x5506b9['model']['document']['differ']['getChangedMarkers']()),_0x251910=new Set();for(const {name:_0xd7bc20,data:_0x4ca0b6}of _0x1421e1){const {group:_0x3825db,type:_0x55bfe0,subType:_0x338c19,id:_0x8be056}=this['_splitMarkerName'](_0xd7bc20);if('suggestion'!==_0x3825db)continue;const _0x1124d0=this['_suggestions']['get'](_0x8be056);if(null!=_0x4ca0b6['newRange']){'formatInline'==_0x55bfe0&&(_0x503d3b=_0x503d3b||Et(_0x4ca0b6['newRange'],_0xd7bc20,_0x467837,_0x5506b9['model']['schema']));const _0x59f5df='attribute'==_0x55bfe0&&this['_isBlockAttribute'](_0x338c19['split']('|')[0x0]);if(_0x4ca0b6['newRange']['isCollapsed']||'$graveyard'==_0x4ca0b6['newRange']['root']['rootName']||'formatBlock'==_0x55bfe0&&!Ut(_0x4ca0b6['newRange'])||_0x59f5df&&!Ut(_0x4ca0b6['newRange'])||'deletion'==_0x55bfe0&&!(!Tt(_0x3202ee=_0x4ca0b6['newRange'])&&!function(_0x5b3c34){return _0x5b3c34['start']['parent']==_0x5b3c34['end']['nodeBefore']&&_0x5b3c34['start']['isAtEnd'];}(_0x3202ee)))_0x467837['removeMarker'](_0xd7bc20),_0x503d3b=!0x0;else{if(!_0x1124d0||!_0x1124d0['isInContent'])continue;_0x251910['add'](_0x1124d0);}}}var _0x3202ee;return _0x251910['size']>0x0&&(_0x503d3b=!!this['_joinWithAdjacentSuggestions'](_0x251910)||_0x503d3b),_0x503d3b;}),_0x5506b9['model']['document']['registerPostFixer'](_0x147b22=>{let _0x3097ac=!0x1;for(const _0x4bb52e of _0x5506b9['model']['document']['differ']['getChanges']())if('insert'==_0x4bb52e['type'])for(const _0x2a715e of this['_suggestions']['values']()){if(_0x2a715e['isMultiRange']||!_0x2a715e['isInContent'])continue;const _0x2ec4f1='formatBlock'==_0x2a715e['type'],_0x289809=this['_getAttributeKey'](_0x2a715e),_0x212230=_0x289809&&this['_isBlockAttribute'](_0x289809);if(!_0x2ec4f1&&!_0x212230)continue;const _0x10c785=_0x2a715e['getFirstRange']();if(_0x10c785['start']['parent']!=_0x10c785['end']['parent']&&!_0x10c785['end']['isAtEnd']){const _0x46f831=_0x5506b9['model']['createPositionAt'](_0x10c785['start']['nodeAfter'],'end'),_0x50d0bd=_0x5506b9['model']['createRange'](_0x10c785['start'],_0x46f831);_0x147b22['updateMarker'](_0x2a715e['getFirstMarker'](),{'range':_0x50d0bd}),_0x3097ac=!0x0;}}return _0x3097ac;}),_0x5506b9['model']['document']['registerPostFixer'](_0x153b1a=>this['_processAttributeChanges'](_0x153b1a)),_0x5506b9['model']['document']['registerPostFixer'](_0x3e1788=>!_0x3e1788['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3e1788)),_0x5506b9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5506b9['model']['document']['on']('change:data',(_0xc866c7,_0x12f733)=>{if(!_0x12f733['isLocal']||_0x12f733['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5871d4=_0x5506b9['model']['document']['differ']['getChanges']();if(0x0==_0x5871d4['length'])return;const _0x379aa3=[],_0x2615c5=_0x5871d4['filter'](_0x33471f=>'attribute'==_0x33471f['type']),_0x386fdb=_0x5871d4['filter'](_0x27af76=>'insert'==_0x27af76['type']&&'$text'!=_0x27af76['name']);for(const _0x58805b of _0x2615c5)this['_isRegisteredAttribute'](_0x58805b['attributeKey'])&&_0x379aa3['push']({'key':_0x58805b['attributeKey'],'newValue':_0x58805b['attributeNewValue'],'oldValue':_0x58805b['attributeOldValue'],'range':Ot(_0x58805b['range'],_0x5506b9['model'])});for(const _0x16dc7b of _0x386fdb){if('rename'!=_0x16dc7b['action']&&'refresh'!=_0x16dc7b['action'])continue;const _0x4db526=Gt(_0x16dc7b['position']['nodeAfter'],_0x5506b9['model']),_0x2c3ea1=_0x16dc7b['before'];'rename'==_0x16dc7b['action']&&_0x379aa3['push']({'key':m,'newValue':_0x16dc7b['name'],'oldValue':_0x2c3ea1['name'],'range':_0x4db526});for(const [_0x11d4e0,_0x33440e]of _0x2c3ea1['attributes']){if(!this['_isRegisteredAttribute'](_0x11d4e0))continue;const _0x52eee0=_0x16dc7b['attributes']['get'](_0x11d4e0);_0x33440e!==_0x52eee0&&_0x379aa3['push']({'key':_0x11d4e0,'newValue':_0x52eee0,'oldValue':_0x33440e,'range':_0x4db526});}for(const [_0x4aa475,_0x2c0756]of _0x16dc7b['attributes'])this['_isRegisteredAttribute'](_0x4aa475)&&(_0x2c3ea1['attributes']['has'](_0x4aa475)||_0x379aa3['push']({'key':_0x4aa475,'newValue':_0x2c0756,'oldValue':null,'range':_0x4db526}));}0x0!=_0x379aa3['length']&&_0x5506b9['model']['enqueueChange'](_0x12f733,_0x312b20=>{const _0xaa4f45=_0x287d7d();for(const {range:_0x3de682,key:_0x120743,oldValue:_0x3aff59,newValue:_0x4b5e14}of _0x379aa3)this['markAttributeChange'](_0x3de682,_0x120743,_0x3aff59,_0x4b5e14,{'groupId':_0xaa4f45});this['_reduceExistingSuggestions'](_0x312b20,_0x379aa3);});},{'priority':'lowest'}),_0x5506b9['model']['markers']['on']('update:suggestion',(_0x4fbaf7,_0x3a2d0e,_0x579230)=>{if(null==_0x579230){const {id:_0x590b4c}=this['_splitMarkerName'](_0x3a2d0e['name']),_0x526b45=this['_suggestions']['get'](_0x590b4c);_0x526b45&&_0x526b45['addMarkerName'](_0x3a2d0e['name']);}}),_0x5506b9['model']['document']['on']('change:data',()=>{const _0x2954b6=Array['from'](_0x5506b9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x108945=>'suggestion'===this['_splitMarkerName'](_0x108945['name'])['group']);if(0x0===_0x2954b6['length'])return;_0x2954b6['sort']((_0x4fb5c6,_0x11e138)=>{const _0x24d111=_0x4fb5c6['data']['oldRange'],_0x4c2ca2=_0x11e138['data']['oldRange'];return null===_0x24d111&&null===_0x4c2ca2?0x0:null===_0x24d111&&null!==_0x4c2ca2?-0x1:null!==_0x24d111&&null===_0x4c2ca2?0x1:_0x24d111['start']['isBefore'](_0x4c2ca2['start'])?-0x1:0x1;});const _0x255824=new Set(),_0x48c122=new Set();for(const {name:_0x27be9d,data:_0x5db2c0}of _0x2954b6){const {id:_0x1e97eb}=this['_splitMarkerName'](_0x27be9d);if(null===_0x5db2c0['oldRange']){const _0x15e647=this['_handleNewSuggestionMarker'](_0x27be9d);_0x48c122['add'](_0x15e647);}else{const _0xe56231=this['_suggestions']['get'](_0x1e97eb);null!==_0x5db2c0['newRange']||_0xe56231['isInContent']?(_0x255824['add'](_0xe56231['head']),_0x48c122['add'](_0xe56231)):this['_removeSuggestion'](_0xe56231);}}_0x48c122['size']>0x0&&this['_refreshSuggestionsChain'](_0x48c122);for(const _0x15c147 of _0x255824)this['fire']('suggestionChanged',_0x15c147);}),_0x5506b9['model']['on']('applyOperation',(_0x1fda30,_0x4f2ac9)=>{const _0x17c547=_0x4f2ac9[0x0];if(!this['_suggestions']['size'])return;if(!_0x17c547['isDocumentOperation'])return;if(_0x17c547['batch']['isUndo']||!_0x17c547['batch']['isLocal'])return;let _0x56ef10,_0x1335fa;switch(_0x17c547['type']){case'insert':_0x56ef10=_0x5506b9['model']['createPositionAt'](_0x17c547['position']),_0x1335fa=_0x56ef10['getShiftedBy'](_0x17c547['howMany']);break;case'split':_0x56ef10=_0x5506b9['model']['createPositionAt'](_0x17c547['splitPosition']),_0x1335fa=_0x5506b9['model']['createPositionAt'](_0x17c547['moveTargetPosition']);break;case'move':_0x56ef10=_0x5506b9['model']['createPositionAt'](_0x17c547['targetPosition']),_0x1335fa=_0x56ef10['getShiftedBy'](_0x17c547['howMany']);break;default:return;}const _0x2fb007=_0x5506b9['model']['createRange'](_0x56ef10,_0x1335fa);_0x5506b9['model']['change'](()=>{for(const {suggestion:_0x3cf82b,meta:_0x1b90f9}of this['_findSuggestions'](_0x2fb007)){if(_0x3cf82b['isMultiRange'])continue;if('formatInline'==_0x3cf82b['type'])continue;const _0x376fc3=this['_getAttributeKey'](_0x3cf82b);if(_0x376fc3&&this['_isBlockAttribute'](_0x376fc3)&&'split'!=_0x17c547['type'])continue;const _0x3554f5=_0x3cf82b['data']&&_0x3cf82b['data']['multipleBlocks'];('formatBlock'!=_0x3cf82b['type']||'split'==_0x17c547['type']&&!_0x3554f5)&&(_0x1b90f9['containsRangeInObject']||'insertion'==_0x3cf82b['type']&&_0x1b90f9['isOwn']||_0x3cf82b['getFirstRange']()['containsRange'](_0x2fb007)&&this['_breakSuggestionMarker'](_0x3cf82b,_0x56ef10,_0x1335fa));}});},{'priority':'lowest'}),_0x5506b9['model']['on']('deleteContent',(_0x46313c,_0x51eadc)=>{const _0x2cc9fc=_0x51eadc[0x0],_0x15837d=_0x51eadc[0x1];if(_0x15837d&&_0x15837d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2cc9fc['isCollapsed'])return;const _0x3ca88a=_0x5506b9['model']['schema'],{start:_0x49d69c,end:_0xcc47a4}=_0x2cc9fc['getFirstRange'](),_0x3c0d0c=_0x49d69c['nodeAfter']&&_0x3ca88a['isLimit'](_0x49d69c['nodeAfter'])?null:_0x3ca88a['getNearestSelectionRange'](_0x49d69c,'forward'),_0x7899af=_0xcc47a4['nodeBefore']&&_0x3ca88a['isLimit'](_0xcc47a4['nodeBefore'])?null:_0x3ca88a['getNearestSelectionRange'](_0xcc47a4,'backward'),_0x26a6a3=_0x5506b9['model']['createRange'](_0x3c0d0c?_0x3c0d0c['start']:_0x49d69c,_0x7899af?_0x7899af['end']:_0xcc47a4);_0x5506b9['model']['change'](_0x178f30=>{this['markDeletion'](_0x26a6a3);const _0x39f3d0=_0x5506b9['model']['schema']['getNearestSelectionRange'](_0x26a6a3['start']);_0x2cc9fc['is']('documentSelection')?_0x178f30['setSelection'](_0x39f3d0):_0x2cc9fc['setTo'](_0x39f3d0);}),_0x46313c['stop']();},{'priority':_0x13dea8['normal']+0xa}),_0x5506b9['model']['on']('insertContent',(_0x54514e,_0x1473cd)=>{const _0x40f860=_0x1473cd[_0x1473cd['length']-0x1];_0x40f860&&_0x40f860['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5506b9['model']['change'](()=>{let _0xdcf3f5=_0x5506b9['model']['insertContent'](_0x1473cd[0x0],_0x1473cd[0x1],_0x1473cd[0x2],{'forceDefaultExecution':!0x0});if(!_0xdcf3f5)return;_0x54514e['return']=_0xdcf3f5['clone']();const _0x3ebd70=_0xdcf3f5['end']['nodeBefore'],_0x2b0b4e=_0x5506b9['model']['schema'];_0x3ebd70&&_0x2b0b4e['isBlock'](_0x3ebd70)&&!_0x2b0b4e['isObject'](_0x3ebd70)&&(_0xdcf3f5=_0x5506b9['model']['createRange'](_0xdcf3f5['start'],_0x5506b9['model']['createPositionAt'](_0x3ebd70,'end'))),this['markInsertion'](_0xdcf3f5);}),_0x54514e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x245516=new $(_0x5506b9,this['_suggestions']);_0x5506b9['commands']['add']('acceptSuggestion',_0x245516),this['enableCommand']('acceptSuggestion');const _0x278c5b=new B(_0x5506b9,this['_suggestions']);_0x5506b9['commands']['add']('discardSuggestion',_0x278c5b),this['enableCommand']('discardSuggestion'),_0x5506b9['commands']['add']('acceptAllSuggestions',new x(_0x5506b9,_0x245516,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5506b9['commands']['add']('discardAllSuggestions',new x(_0x5506b9,_0x278c5b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5506b9['commands']['add']('acceptSelectedSuggestions',new R(_0x5506b9,_0x245516,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5506b9['commands']['add']('discardSelectedSuggestions',new R(_0x5506b9,_0x278c5b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x213bd8=_0x5506b9['plugins']['get']('CommentsRepository');this['listenTo'](_0x213bd8,'addComment',(_0x4820c8,{threadId:_0x1af899})=>{const _0x3aad56=this['_suggestions']['get'](_0x1af899);_0x3aad56&&_0x3aad56['commentThread']&&0x1===_0x3aad56['commentThread']['length']&&this['_updateSuggestionData'](_0x1af899,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x213bd8,'removeComment',(_0x271ae2,{threadId:_0x51bf38})=>{const _0x1db2dc=this['_suggestions']['get'](_0x51bf38);_0x1db2dc&&_0x1db2dc['commentThread']&&!_0x1db2dc['commentThread']['length']&&this['_updateSuggestionData'](_0x51bf38,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x2a5e24){if(this['_adapter'])throw new _0x35d108('track-changes-adapter-already-set',this);this['_adapter']=_0x2a5e24;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x47b1a6=!0x1,toJSON:_0x57ffce=!0x1}={}){const _0x5343e6=[];for(const _0x48f28d of this['_suggestions']['values']())_0x47b1a6&&!_0x48f28d['isInContent']||_0x5343e6['push'](_0x48f28d);return _0x57ffce?_0x5343e6['map'](_0x4118b2=>_0x4118b2['toJSON']()):_0x5343e6;}['getSuggestion'](_0x331ee2){const _0x30a54=this['_suggestions']['get'](_0x331ee2);if(!_0x30a54)throw new _0x35d108('track-changes-suggestion-not-found',this);return _0x30a54;}['hasSuggestion'](_0x566fe5){return this['_suggestions']['has'](_0x566fe5);}['addSuggestionData'](_0x52f3a7){const {authorId:_0x3b9666,id:_0x9ddb83,attributes:_0x24e4ff}=_0x52f3a7,[_0x4d7a18,_0x285b62]=_0x52f3a7['type']['split'](':'),_0x45ab85=this['_suggestions']['get'](_0x9ddb83)||this['_createSuggestion'](_0x4d7a18,_0x285b62,_0x9ddb83,_0x3b9666,_0x24e4ff);if(this['_addThreadToSuggestion'](_0x45ab85),this['_checkSuggestionCorrectness'](_0x45ab85,_0x4d7a18,_0x285b62||null,_0x3b9666),_0x45ab85['createdAt']=_0x52f3a7['createdAt'],_0x45ab85['_isDataLoaded']=!0x0,_0x24e4ff&&_0x24e4ff['@external']){const _0x4c8bfd=_0x24e4ff['@external'],_0xb85651=this['_getExternalAuthor'](_0x4c8bfd['authorName']);_0x45ab85['authoredAt']=_0x4c8bfd['createdAt'],_0x45ab85['author']=_0xb85651,_0x45ab85['isExternal']=!0x0;}else _0x45ab85['authoredAt']=_0x52f3a7['createdAt'];switch(_0x52f3a7['data']&&(_0x45ab85['data']=_0x52f3a7['data']),_0x52f3a7['attributes']&&(_0x45ab85['attributes']=_0x52f3a7['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x45ab85['_saved']=!0x0),this['_suggestionState']['get'](_0x45ab85)){case'notReady':this['_suggestionState']['set'](_0x45ab85,'dataReady');break;case'markerReady':_0x45ab85['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x45ab85])),this['_refreshSuggestionsChain'](new Set([_0x45ab85])),this['_suggestionState']['set'](_0x45ab85,'ready'),this['fire']('suggestionLoaded',_0x45ab85)):this['_suggestionState']['set'](_0x45ab85,'removed');}return _0x45ab85;}['acceptSuggestion'](_0xf96dfb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x39b4e7 of _0xf96dfb['getAllAdjacentSuggestions']())_0x39b4e7['accept']();});});}['discardSuggestion'](_0x18236a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x353984 of _0x18236a['getAllAdjacentSuggestions']())_0x353984['discard']();});});}['enableCommand'](_0x1b1020,_0x10bad6){const _0x29a99f=this['editor']['commands']['get'](_0x1b1020);if(!_0x29a99f)throw new _0x35d108('track-changes-command-not-found',this,{'commandName':_0x1b1020});if(this['_enabledCommands']['has'](_0x29a99f))throw new _0x35d108('track-changes-enable-command-twice',this,{'commandName':_0x1b1020});this['_enabledCommands']['add'](_0x29a99f),_0x10bad6&&_0x29a99f['on']('execute',(_0x4dcc2b,_0x4d830f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4d830f['length']>0x0&&_0x4d830f[_0x4d830f['length']-0x1]&&_0x4d830f[_0x4d830f['length']-0x1]['forceDefaultExecution']?_0x4d830f['pop']():(_0x4dcc2b['return']=_0x10bad6((..._0x690fd3)=>_0x29a99f['execute'](..._0x690fd3,{'forceDefaultExecution':!0x0}),..._0x4d830f),_0x4dcc2b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x21dc4c){let _0x28c253,_0x52bd6b;const _0x5cb1c6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x28c253=_0x21dc4c();}catch(_0xcc7420){_0x52bd6b=_0xcc7420;}return _0x5cb1c6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x52bd6b&&_0x35d108['rethrowUnexpectedError'](_0x52bd6b,this),_0x28c253;}['markInsertion'](_0x1e4b23,_0x2096a9=null,_0x4da93a={}){if(_0x1e4b23['isCollapsed'])return null;const _0x3f4361=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2e9625,meta:_0x1421df}of this['_findSuggestions'](_0x1e4b23,'insertion'))if(_0x1421df['isOwn']){if(!_0x1421df['isNextTo']){if(_0x1421df['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x2e9625,_0x4da93a))continue;return _0x2e9625;}if(Lt(_0x2e9625,_0x4da93a))return _0x2e9625;this['_breakSuggestionMarker'](_0x2e9625,_0x1e4b23['start'],_0x1e4b23['end']);break;}if(_0x2096a9==_0x2e9625['subType']&&Lt(_0x2e9625,_0x4da93a)){const _0x5ae5a5=_0x2e9625['getFirstRange']();return _0x5ae5a5['start']['isEqual'](_0x1e4b23['end'])?this['_setSuggestionRange'](_0x2e9625,this['_model']['createRange'](_0x1e4b23['start'],_0x5ae5a5['end'])):this['_setSuggestionRange'](_0x2e9625,this['_model']['createRange'](_0x5ae5a5['start'],_0x1e4b23['end'])),_0x2e9625;}}const _0x18880d=_0x287d7d(),_0x321ec3=_0x3f4361['id'],_0x211dba=_0x2096a9?'insertion:'+_0x2096a9:'insertion',_0x27c9cc=this['_setSuggestionData']({'id':_0x18880d,'type':_0x211dba,'createdAt':new Date(),'authorId':_0x321ec3,'attributes':_0x4da93a});return this['_addSuggestionMarker'](_0x211dba,_0x18880d,_0x321ec3,_0x1e4b23),_0x27c9cc;}['markMultiRangeInsertion'](_0x4efe2c,_0x51c192='multi',_0x4866fd={}){const _0x38ac7e=this['editor']['plugins']['get']('Users')['me'],_0x4d2ccc=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x51c192,'join');for(const _0x138f10 of this['getSuggestions']())if(_0x138f10['author']['id']==_0x38ac7e['id']&&'insertion'==_0x138f10['type']&&_0x138f10['subType']==_0x51c192&&Lt(_0x138f10,_0x4866fd)&&(_0x4d2ccc(_0x138f10['getRanges'](),_0x4efe2c)||_0x4d2ccc(_0x4efe2c,_0x138f10['getRanges']()))){for(const _0x23e5b6 of _0x4efe2c)_0x138f10['addRange'](_0x23e5b6);return _0x138f10;}for(const {suggestion:_0xba4cca,meta:_0x2add3f}of this['_findSuggestions'](_0x4efe2c,'insertion')){if(!_0x2add3f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2add3f['containsRangeInObject'])continue;if(!Lt(_0xba4cca,_0x4866fd))continue;let _0x3eb22a=!0x0;for(const _0x216f2f of _0xba4cca['getRanges']())for(const _0x3268fd of _0x4efe2c)if(!_0x216f2f['containsRange'](_0x3268fd)){_0x3eb22a=!0x1;break;}if(_0x3eb22a)return _0xba4cca;}const _0x4a2424=_0x287d7d(),_0x274ebf=_0x38ac7e['id'],_0x430a39='insertion:'+_0x51c192,_0xd7acd0=this['_setSuggestionData']({'id':_0x4a2424,'type':_0x430a39,'createdAt':new Date(),'authorId':_0x274ebf,'attributes':_0x4866fd});for(const _0x3190f8 of _0x4efe2c)this['_addSuggestionMarker'](_0x430a39,_0x4a2424,_0x274ebf,_0x3190f8,u['getMultiRangeId']());return _0xd7acd0;}['markInlineFormat'](_0x319f42,_0x28d4b5,_0x416b50=null,_0x5d95bc={}){if(_0x416b50=_0x416b50||Vt(_0x28d4b5),_0x319f42['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2f942d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x416b50,'accept');return this['forceDefaultExecution'](()=>_0x2f942d([_0x319f42],_0x28d4b5,_0x5d95bc)),null;}const _0x3f45b6=this['editor']['plugins']['get']('Users')['me'],_0x32eecd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x783afb,meta:_0x43edc1}of this['_findSuggestions'](_0x319f42,'insertion'))_0x43edc1['isOwn']&&!_0x43edc1['isInsideObject']&&_0x32eecd['push'](..._0x783afb['getRanges']());}const _0x1edcd6=function(_0x41fff0,_0x51e471){const _0x16a180=[];for(const _0x26404a of _0x51e471){const _0x3e8e02=_0x41fff0['getIntersection'](_0x26404a);_0x3e8e02&&_0x16a180['push'](_0x3e8e02);}return _0x16a180;}(_0x319f42,_0x32eecd),_0x35164d=function(_0x4ffdee,_0xcdd626){const _0x500f9d=[_0x4ffdee];for(const _0xf9ec08 of _0xcdd626){let _0x1df959=0x0;for(;_0x1df959<_0x500f9d['length'];){const _0x167f0d=_0x500f9d[_0x1df959]['getDifference'](_0xf9ec08);_0x500f9d['splice'](_0x1df959,0x1,..._0x167f0d),_0x1df959+=_0x167f0d['length'];}}return _0x500f9d;}(_0x319f42,_0x32eecd);_0x1edcd6['length']&&this['_model']['change'](()=>{for(const _0x570eca of _0x1edcd6){const _0x4c552c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x416b50,'accept');this['forceDefaultExecution'](()=>_0x4c552c([_0x570eca],_0x28d4b5,_0x5d95bc));}});for(const _0xd41065 of _0x35164d){let _0x55bbed=null,_0x10e37a=_0xd41065['start'],_0xf815e0=_0xd41065['end'];for(const {suggestion:_0x374856,meta:_0x19b15a}of this['_findSuggestions'](_0xd41065,'formatInline')){if(!_0x19b15a['isOwn'])continue;if(_0x374856['subType']!=_0x416b50)continue;if(!Lt(_0x374856,_0x5d95bc))continue;const _0x1ec58d=_0x374856['getFirstRange']();if(_0x1ec58d['containsRange'](_0xd41065,!0x0))return null;_0x10e37a=_0x10e37a['isBefore'](_0x1ec58d['start'])?_0x10e37a:_0x1ec58d['start'],_0xf815e0=_0xf815e0['isAfter'](_0x1ec58d['end'])?_0xf815e0:_0x1ec58d['end'],_0x55bbed?_0x1ec58d['start']['isBefore'](_0x55bbed['getFirstRange']()['start'])?(_0x55bbed['removeMarkers'](),_0x55bbed=_0x374856):_0x374856['removeMarkers']():_0x55bbed=_0x374856;}const _0xcaf941=this['_model']['createRange'](_0x10e37a,_0xf815e0);if(_0x55bbed)this['_setSuggestionRange'](_0x55bbed,_0xcaf941);else{const _0x10c015=_0x287d7d(),_0xc34763=_0x3f45b6['id'];this['_setSuggestionData']({'id':_0x10c015,'type':'formatInline:'+_0x416b50,'data':_0x28d4b5,'createdAt':new Date(),'authorId':_0xc34763,'attributes':_0x5d95bc}),this['_addSuggestionMarker']('formatInline:'+_0x416b50,_0x10c015,_0xc34763,_0xcaf941);}}return null;}['markBlockFormat'](_0x361458,_0x2b71da,_0x219ed0=[],_0x11fa6a=null,_0x1a744c={}){_0x2b71da['formatGroupId']||(_0x2b71da['formatGroupId']=_0x2b71da['commandName']),_0x2b71da['multipleBlocks']=_0x361458['is']('range'),_0x11fa6a=_0x11fa6a||Vt(_0x2b71da);const _0x577202=_0x219ed0['map'](_0x563cdf=>Gt(_0x563cdf,this['_model'])),_0x3bc21e=_0x361458['is']('range')?_0x361458:Gt(_0x361458,this['_model']);if('never'===this['_trackFormatChanges']){const _0x21d537=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11fa6a,'accept');return this['forceDefaultExecution'](()=>_0x21d537([_0x3bc21e],_0x2b71da,_0x1a744c)),null;}_0x577202['push'](_0x3bc21e);let _0x5736fb=!0x0;for(const _0x1524f6 of _0x577202)if(!this['_rangeIsInLocalUserInsertion'](_0x1524f6)){_0x5736fb=!0x1;break;}if(_0x5736fb&&'always'!==this['_trackFormatChanges']){const _0x2ee175=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11fa6a,'accept');return this['forceDefaultExecution'](()=>_0x2ee175([_0x3bc21e],_0x2b71da,_0x1a744c)),null;}let _0x3fa326=null,_0x24de41=_0x3bc21e['start'],_0x21fa6d=_0x3bc21e['end'];for(const {suggestion:_0x48817b,meta:_0x56c588}of this['_findSuggestions'](_0x3bc21e,'formatBlock')){if(!_0x56c588['isOwn'])continue;if(_0x56c588['isNextTo']||_0x56c588['containsRangeInObject']||_0x56c588['isInsideObject'])continue;if(_0x48817b['data']['formatGroupId']!=_0x2b71da['formatGroupId'])continue;if(!Lt(_0x48817b,_0x1a744c))continue;const _0x4e7e0e=_0x48817b['getFirstRange']();if(_0x48817b['subType']==_0x11fa6a){if(_0x4e7e0e['containsRange'](_0x3bc21e,!0x0))return null;_0x24de41=_0x24de41['isBefore'](_0x4e7e0e['start'])?_0x24de41:_0x4e7e0e['start'],_0x21fa6d=_0x21fa6d['isAfter'](_0x4e7e0e['end'])?_0x21fa6d:_0x4e7e0e['end'],_0x3fa326?_0x4e7e0e['start']['isBefore'](_0x3fa326['getFirstRange']()['start'])?(_0x3fa326['removeMarkers'](),_0x3fa326=_0x48817b):_0x48817b['removeMarkers']():_0x3fa326=_0x48817b;}else{const _0x2aaab8=_0x3bc21e['getIntersection'](_0x4e7e0e);this['_cutOutSuggestionMarker'](_0x48817b,_0x2aaab8);}}const _0x5c8846=this['editor']['plugins']['get']('Users')['me'],_0x7785f8=_0x287d7d(),_0x19c344=_0x5c8846['id'];if(_0x3fa326)return this['_setSuggestionRange'](_0x3fa326,this['_model']['createRange'](_0x24de41,_0x21fa6d)),_0x3fa326;{const _0x2bd66c=this['_setSuggestionData']({'id':_0x7785f8,'type':'formatBlock:'+_0x11fa6a,'data':_0x2b71da,'createdAt':new Date(),'authorId':_0x19c344,'attributes':_0x1a744c});return this['_addSuggestionMarker']('formatBlock:'+_0x11fa6a,_0x7785f8,_0x19c344,this['_model']['createRange'](_0x24de41,_0x21fa6d)),_0x2bd66c;}}['markMultiRangeBlockFormat'](_0x17c6f2,_0x5a6220,_0x42472f=[],_0x158b5a=null,_0x4a3a6c={}){_0x5a6220['formatGroupId']||(_0x5a6220['formatGroupId']=_0x5a6220['commandName']);const _0x180f8d=_0x17c6f2[0x0];_0x5a6220['multipleBlocks']=_0x180f8d['is']('range'),_0x158b5a=_0x158b5a||Vt(_0x5a6220);const _0x84387b=_0x42472f['map'](_0x5a3afd=>Gt(_0x5a3afd,this['_model'])),_0x5a4dfb=_0x180f8d['is']('range')?_0x17c6f2:_0x17c6f2['map'](_0x3c71cb=>Gt(_0x3c71cb,this['_model']));if('never'===this['_trackFormatChanges']){const _0x15ce8a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x158b5a,'accept');return this['forceDefaultExecution'](()=>_0x15ce8a(_0x5a4dfb,_0x5a6220,_0x4a3a6c)),null;}_0x84387b['push'](..._0x5a4dfb);let _0x4384a5=!0x0;for(const _0x44b0a0 of _0x84387b)if(!this['_rangeIsInLocalUserInsertion'](_0x44b0a0)){_0x4384a5=!0x1;break;}if(_0x4384a5&&'always'!==this['_trackFormatChanges']){const _0x290375=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x158b5a,'accept');return this['forceDefaultExecution'](()=>_0x290375(_0x5a4dfb,_0x5a6220,_0x4a3a6c)),null;}const _0x109f2a=this['editor']['plugins']['get']('Users')['me'];for(const _0x13b69c of this['getSuggestions']()){if(_0x13b69c['author']['id']!=_0x109f2a['id'])continue;if('formatBlock'!=_0x13b69c['type']||_0x13b69c['data']['formatGroupId']!=_0x5a6220['formatGroupId'])continue;if(!Lt(_0x13b69c,_0x4a3a6c))continue;const _0xe463d9=_0x13b69c['subType']==_0x158b5a;for(let _0x37149a=0x0;_0x37149a<_0x5a4dfb['length'];_0x37149a++){const _0x2314a1=_0x5a4dfb[_0x37149a];for(const _0x2156ac of _0x13b69c['getMarkers']()){const _0x373cb4=_0x2156ac['getRange']();if(_0x2314a1['isEqual'](_0x373cb4)){_0xe463d9?(_0x5a4dfb['splice'](_0x37149a,0x1),_0x37149a--):_0x13b69c['removeMarker'](_0x2156ac['name']);break;}}}}if(0x0==_0x5a4dfb['length'])return null;const _0x1b2f23=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x158b5a,'join');for(const _0x3b343f of this['getSuggestions']())if(_0x3b343f['author']['id']==_0x109f2a['id']&&'formatBlock'==_0x3b343f['type']&&_0x3b343f['data']['formatGroupId']==_0x5a6220['formatGroupId']&&_0x3b343f['subType']==_0x158b5a&&Lt(_0x3b343f,_0x4a3a6c)&&(_0x1b2f23(_0x3b343f['getRanges'](),_0x5a4dfb)||_0x1b2f23(_0x5a4dfb,_0x3b343f['getRanges']()))){for(const _0x37402a of _0x5a4dfb)_0x3b343f['addRange'](_0x37402a);return _0x3b343f;}const _0x30eec7=_0x287d7d(),_0x3e886b=_0x109f2a['id'],_0xbcfb71='formatBlock:'+_0x158b5a,_0xdc64ef=this['_setSuggestionData']({'id':_0x30eec7,'type':_0xbcfb71,'data':_0x5a6220,'createdAt':new Date(),'authorId':_0x3e886b,'attributes':_0x4a3a6c});for(const _0x2c56e9 of _0x5a4dfb)this['_addSuggestionMarker'](_0xbcfb71,_0x30eec7,_0x3e886b,_0x2c56e9,u['getMultiRangeId']());return _0xdc64ef;}['markDeletion'](_0x2d4593,_0x152424=null,_0x238d66={}){if(_0x2d4593['isCollapsed'])return null;const _0x4c3400=this['editor']['plugins']['get']('Users')['me'],_0x122892=new _0x55c0b1(_0x2d4593['start'],_0x2d4593['end']);for(const {suggestion:_0x135569,meta:_0x3df971}of this['_findSuggestions'](_0x122892,'insertion'))if(_0x3df971['isOwn']&&!_0x3df971['isNextTo']){if(_0x135569['isMultiRange']){const _0x32be6b=_0x135569['getRanges']()['filter'](_0x3469cf=>'$graveyard'!=_0x3469cf['root']['rootName']);_0x32be6b['every'](_0x2ba6c0=>_0x122892['containsRange'](_0x2ba6c0,!0x0))&&_0x135569['discard']();if(_0x32be6b['some'](_0x73a483=>_0x73a483['containsRange'](_0x122892,!0x0))){const _0x429719=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x152424,'accept');return this['forceDefaultExecution'](()=>_0x429719([_0x122892],null,_0x238d66)),null;}}else{const _0x51b449=_0x122892['getIntersection'](_0x135569['getFirstRange']());null!==_0x51b449&&_0x135569['_onDiscard']([_0x51b449],null,_0x238d66);}}if(_0x122892['detach'](),_0x122892['isCollapsed']||'$graveyard'==_0x122892['root']['rootName'])return null;let _0x123f7a=null,_0x5853ca=_0x122892['start'],_0x6a5421=_0x122892['end'];const _0x28a83a=this['_findSuggestions'](_0x122892,'deletion');for(const {suggestion:_0x2c33fd,meta:_0x44a824}of _0x28a83a){const _0x5b9e34=this['_model']['createRange'](_0x5853ca,_0x6a5421);if(_0x44a824['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44a824['containsRangeInObject']&&!_0x44a824['isInsideObject'])){if(_0x2c33fd['isMultiRange']){if(!Lt(_0x2c33fd,_0x238d66))continue;let _0x5e59c7=!0x0;for(const _0x4f5e5f of _0x2c33fd['getRanges']()){if(_0x4f5e5f['containsRange'](_0x5b9e34,!0x0))return _0x2c33fd;_0x5b9e34['containsRange'](_0x4f5e5f)||(_0x5e59c7=!0x1);}_0x5e59c7&&_0x2c33fd['discard']();}else{const _0x46e71a=_0x2c33fd['getFirstRange']();if(_0x46e71a['containsRange'](_0x5b9e34,!0x0))return _0x2c33fd;if(!Lt(_0x2c33fd,_0x238d66)){_0x5b9e34['containsRange'](_0x46e71a)?_0x2c33fd['removeMarkers']():_0x46e71a['containsPosition'](_0x5853ca)?_0x5853ca=_0x46e71a['end']:_0x46e71a['containsPosition'](_0x6a5421)&&(_0x6a5421=_0x46e71a['start']);continue;}_0x5853ca=_0x5853ca['isBefore'](_0x46e71a['start'])?_0x5853ca:_0x46e71a['start'],_0x6a5421=_0x6a5421['isAfter'](_0x46e71a['end'])?_0x6a5421:_0x46e71a['end'],_0x238d66=Object['assign']({},_0x2c33fd['attributes']),_0x123f7a?_0x46e71a['start']['isBefore'](_0x123f7a['getFirstRange']()['start'])?(_0x123f7a['removeMarkers'](),_0x123f7a=_0x2c33fd):_0x2c33fd['removeMarkers']():_0x123f7a=_0x2c33fd;}}}if(_0x123f7a)return this['_setSuggestionRange'](_0x123f7a,this['_model']['createRange'](_0x5853ca,_0x6a5421)),_0x123f7a;{const _0x4c0208=_0x287d7d(),_0x2767f0=this['_model']['createRange'](_0x5853ca,_0x6a5421),_0x296e10=_0x4c3400['id'],_0x236a4b=_0x152424?'deletion:'+_0x152424:'deletion',_0x3f6ab7=this['_setSuggestionData']({'id':_0x4c0208,'type':_0x236a4b,'createdAt':new Date(),'authorId':_0x296e10,'attributes':_0x238d66});return this['_addSuggestionMarker'](_0x236a4b,_0x4c0208,_0x296e10,_0x2767f0),_0x3f6ab7;}}['markMultiRangeDeletion'](_0x195b0d,_0x46dca6='multi',_0x5ad968={}){const _0x153fcf=this['editor']['plugins']['get']('Users')['me'],_0x4678ae=_0x195b0d['map'](_0x339e20=>new _0x55c0b1(_0x339e20['start'],_0x339e20['end'])),_0x4540b2=new Set();for(const {suggestion:_0x4b5158,meta:_0xaf0088}of this['_findSuggestions'](_0x4678ae,'insertion'))_0xaf0088['isOwn']&&!_0xaf0088['isNextTo']&&_0x4540b2['add'](_0x4b5158);for(const _0x407e72 of _0x4540b2)if(_0x407e72['isMultiRange']){const _0x538bee=_0x407e72['getRanges']();(!_0x407e72['attributes']||!_0x407e72['attributes']['skipNestingCheck'])&&(_0x538bee['every'](_0x4ce2db=>_0x4678ae['some'](_0x3b2ff4=>_0x3b2ff4['containsRange'](_0x4ce2db,!0x0)))&&_0x407e72['discard']());if(_0x4678ae['every'](_0x5e073f=>_0x538bee['some'](_0x4e53c8=>_0x4e53c8['containsRange'](_0x5e073f,!0x0)))){const _0x13bab8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46dca6,'accept');return this['forceDefaultExecution'](()=>_0x13bab8(_0x195b0d,null,_0x5ad968)),null;}}else{const _0x2c15df=_0x407e72['getFirstRange']();_0x4678ae['some'](_0x4f588b=>_0x4f588b['containsRange'](_0x2c15df,!0x0))&&_0x407e72['discard']();if(_0x4678ae['every'](_0x436640=>_0x2c15df['containsRange'](_0x436640,!0x0))){const _0xc8950f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46dca6,'accept');return this['forceDefaultExecution'](()=>_0xc8950f(_0x4678ae,null,_0x5ad968)),null;}}const _0x27abf6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46dca6,'join');let _0xdb1d15=null;for(const _0x455b55 of this['getSuggestions']())if(_0x455b55['author']['id']==_0x153fcf['id']&&_0x455b55['isInContent']&&'deletion'==_0x455b55['type']&&_0x455b55['subType']==_0x46dca6&&Lt(_0x455b55,_0x5ad968)&&(_0x27abf6(_0x455b55['getRanges'](),_0x4678ae)||_0x27abf6(_0x4678ae,_0x455b55['getRanges']()))){if(_0xdb1d15){if(_0x455b55['commentThread']&&_0x455b55['commentThread']['length'])continue;for(const _0x503bef of _0x455b55['getRanges']())_0xdb1d15['isIntersectingWithRange'](_0x503bef)||_0xdb1d15['addRange'](_0x503bef);_0x455b55['removeMarkers']();}else{_0xdb1d15=_0x455b55;for(const _0x583f3e of _0x4678ae)_0x455b55['isIntersectingWithRange'](_0x583f3e)||_0x455b55['addRange'](_0x583f3e);}}if(_0xdb1d15)return _0xdb1d15;_0x4540b2['clear']();for(const {suggestion:_0x507a1c,meta:_0x5322c9}of this['_findSuggestions'](_0x4678ae,'deletion'))_0x5322c9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5322c9['containsRangeInObject']&&!_0x5322c9['isInsideObject'])&&Lt(_0x507a1c,_0x5ad968)&&_0x4540b2['add'](_0x507a1c);for(const _0x5cfbba of _0x4540b2){const _0x181192=_0x5cfbba['getRanges']();if(!_0x5ad968||!_0x5ad968['skipNestingCheck']){if(_0x4678ae['every'](_0x2400b2=>_0x181192['some'](_0x584ef8=>_0x584ef8['containsRange'](_0x2400b2,!0x0))))return _0x5cfbba;}(!_0x5cfbba['attributes']||!_0x5cfbba['attributes']['skipNestingCheck'])&&(_0x181192['every'](_0x6b68b5=>_0x4678ae['some'](_0x25615d=>_0x25615d['containsRange'](_0x6b68b5,!0x0)))&&_0x5cfbba['discard']());}const _0x23d46f=_0x287d7d(),_0x541955=_0x153fcf['id'],_0x2b0b19='deletion:'+_0x46dca6,_0x152d0e=this['_setSuggestionData']({'id':_0x23d46f,'type':_0x2b0b19,'createdAt':new Date(),'authorId':_0x541955,'attributes':_0x5ad968});for(const _0x101c5f of _0x4678ae)_0x101c5f['detach'](),_0x101c5f['isCollapsed']||'$graveyard'==_0x101c5f['root']['rootName']||this['_addSuggestionMarker'](_0x2b0b19,_0x23d46f,_0x541955,_0x101c5f,u['getMultiRangeId']());return _0x152d0e;}['markAttributeChange'](_0x1c5b49,_0x2b0e3c,_0x547a01,_0x4f4dcc,_0x249cca){if(_0x1c5b49['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xa7b6db=this['editor']['plugins']['get']('Users')['me']['id'],_0x399d3d=Array['from'](this['_suggestions']['values']())['filter'](_0x4dca63=>'attribute'==_0x4dca63['type']&&_0x4dca63['data']['key']==_0x2b0e3c&&_0x4dca63['isIntersectingWithRange'](_0x1c5b49));if('default'===this['_trackFormatChanges']){const _0x123ffb=this['_findSuggestions'](_0x1c5b49,'insertion')['filter'](({meta:_0x1a93b0})=>_0x1a93b0['isOwn']&&!_0x1a93b0['isInsideObject']&&!_0x1a93b0['isNextTo'])['map'](({suggestion:_0x4a8150})=>_0x4a8150);_0x399d3d['unshift'](..._0x123ffb);}const _0x2f0a1b=new Map([[_0x1c5b49,_0x547a01]]);for(const _0x434a37 of _0x399d3d){const _0x176279='attribute'==_0x434a37['type']?_0x434a37['data']['oldValue']:void 0x0,_0x4adb90=_0x434a37['getFirstRange'](),_0x228e0c=Array['from'](_0x2f0a1b['keys']())['find'](_0x10a6ad=>_0x10a6ad['isIntersecting'](_0x4adb90));if(!_0x228e0c)continue;const _0x44274e=_0x228e0c['getDifference'](_0x4adb90);this['_isBlockAttribute'](_0x2b0e3c)&&'insertion'==_0x434a37['type']&&0x0!=_0x44274e['length']||(_0x2f0a1b['delete'](_0x228e0c),_0x44274e['forEach'](_0x1ecc45=>{_0x2f0a1b['set'](_0x1ecc45,_0x547a01);}),'insertion'!=_0x434a37['type']&&_0x176279!=_0x4f4dcc&&_0x2f0a1b['set'](_0x228e0c['getIntersection'](_0x4adb90),_0x176279));}const _0x444e83=[];for(const [_0x293779,_0x374a49]of _0x2f0a1b){const _0x1fd3b1=_0x287d7d(),_0x44c775={'key':_0x2b0e3c,'oldValue':_0x374a49,'newValue':_0x4f4dcc};_0x2b0e3c['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':_0x2b0e3c});const _0x3eb7b1=('attribute:'+(_0x2b0e3c+'|'+Vt({'newValue':_0x4f4dcc})))['substring'](0x0,0x3c),_0x55bfb9=this['_setSuggestionData']({'id':_0x1fd3b1,'type':_0x3eb7b1,'data':_0x44c775,'createdAt':new Date(),'authorId':_0xa7b6db,'attributes':_0x249cca});_0x444e83['push'](_0x55bfb9),this['_addSuggestionMarker'](_0x3eb7b1,_0x1fd3b1,_0xa7b6db,_0x293779);}return _0x444e83;}['enableDefaultAttributesIntegration'](_0x3551da){this['enableCommand'](_0x3551da,(_0x15f348,..._0x3d1cae)=>{this['_recordAttributeChanges'](()=>{_0x15f348(..._0x3d1cae);});});}['registerBlockAttribute'](_0x18a16a){this['_blockAttributeKeys']['add'](_0x18a16a);}['registerInlineAttribute'](_0xa104e3){this['_inlineAttributeKeys']['add'](_0xa104e3);}['_getAttributeKey'](_0x394a25){return'attribute'==_0x394a25['type']?_0x394a25['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4a8686,_0x554436){const _0x6d3696=_0x4a8686['getFirstMarker']();this['_model']['change'](_0x121cc9=>{_0x121cc9['updateMarker'](_0x6d3696,{'range':_0x554436});});}['_addThreadToSuggestion'](_0xf9173a){const _0x1c1560=_0xf9173a['id'],_0x1da892=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1c1560)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1da892,'threadId':_0x1c1560,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x53f1ab=this['_commentsRepository']['getCommentThread'](_0x1c1560);_0x53f1ab['unbind']('isRemovable'),_0x53f1ab['isRemovable']=!0x1,_0xf9173a['commentThread']=_0x53f1ab;}['_checkSuggestionCorrectness'](_0x298c02,_0x48daf0,_0x177b59,_0x3cba21){if(_0x298c02['type']!=_0x48daf0||_0x298c02['subType']!=_0x177b59||_0x298c02['creator']['id']!=_0x3cba21)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x35d108('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x234eed,_0xb241ee){const _0x32d182=_0x234eed['getFirstRange']();if(_0xb241ee['isEqual'](_0x32d182))_0x234eed['removeMarkers']();else{if(_0x32d182['containsRange'](_0xb241ee)){const _0x583295=this['_model']['createPositionAt'](_0xb241ee['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x234eed,this['_model']['createRange'](_0x32d182['start'],_0x583295));const _0x2c082a=_0x287d7d(),_0x4ee0a5=_0x234eed['creator']['id'],_0x5cfa19=_0x234eed['type']+':'+_0x234eed['subType'];this['_setSuggestionData']({'id':_0x2c082a,'type':_0x5cfa19,'createdAt':new Date(),'authorId':_0x4ee0a5,'data':_0x234eed['data'],'attributes':_0x234eed['attributes']});const _0x4842f2=this['_model']['createPositionAt'](_0xb241ee['end']['parent'],'after'),_0x3bb19f=this['_model']['createRange'](_0x4842f2,_0x32d182['end']);this['_addSuggestionMarker'](_0x5cfa19,_0x2c082a,_0x4ee0a5,_0x3bb19f);}else{if(_0x32d182['containsPosition'](_0xb241ee['start'])){const _0xba8da2=this['_model']['createPositionAt'](_0xb241ee['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x234eed,this['_model']['createRange'](_0x32d182['start'],_0xba8da2));}else{const _0x39cbd8=this['_model']['createPositionAt'](_0xb241ee['end']['parent'],'after');this['_setSuggestionRange'](_0x234eed,this['_model']['createRange'](_0x39cbd8,_0x32d182['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x144378){for(const {suggestion:_0x4c9347,meta:_0x4c6604}of this['_findSuggestions'](_0x144378,'insertion')){if(!_0x4c6604['isOwn'])continue;const _0x5037ce=_0x4c9347['getRanges']();for(const _0xa3f650 of _0x5037ce)if(!_0x144378['getDifference'](_0xa3f650)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5c033d){const _0x2f33af=this['editor']['plugins']['get']('Users')['getUser'](_0x5c033d);if(!_0x2f33af)throw new _0x35d108('track-changes-user-not-found',this);return _0x2f33af;}['_getExternalAuthor'](_0x5f177b){const _0x21f710=this['editor']['plugins']['get']('Users'),_0x52ac43=_0xdafb0a('external:'+_0x5f177b),_0x34ce7d=_0x21f710['getUser'](_0x52ac43);return _0x34ce7d||_0x21f710['addUser']({'id':_0x52ac43,'name':_0x5f177b});}['_createSuggestion'](_0x4b5e36,_0x33054d,_0x51f18f,_0xe065a,_0x56d604){const _0xcaf2a0=this['_getAuthorFromId'](_0xe065a),_0x3d4c47=this['_suggestionFactory']['buildSuggestion'](_0x4b5e36,_0x33054d,_0x51f18f,_0xcaf2a0,_0x56d604,_0x82b5c=>{this['_updateSuggestionData'](_0x51f18f,{'attributes':_0x82b5c});const _0x56148c=this['getSuggestion'](_0x51f18f);this['_joinWithAdjacentSuggestions'](new Set([_0x56148c])),this['_refreshSuggestionsChain'](new Set([_0x56148c]));});return this['listenTo'](_0x3d4c47,'accept',()=>{this['_updateSuggestionData'](_0x51f18f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3d4c47,'discard',()=>{this['_updateSuggestionData'](_0x51f18f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x51f18f,_0x3d4c47),this['_suggestionState']['set'](_0x3d4c47,'notReady'),_0x3d4c47;}['_splitMarkerName'](_0x3fc6c7){const _0x4a4983=_0x3fc6c7['split'](':');return{'group':_0x4a4983[0x0],'type':_0x4a4983[0x1],'subType':_0x4a4983['length']>=0x5?_0x4a4983[0x2]:null,'id':_0x4a4983['length']<0x5?_0x4a4983[0x2]:_0x4a4983[0x3],'authorId':_0x4a4983['length']<0x5?_0x4a4983[0x3]:_0x4a4983[0x4],'markerCount':0x6==_0x4a4983['length']?_0x4a4983[0x5]:null};}['_breakSuggestionMarker'](_0x502729,_0x408989,_0x394a6b){const _0x186a34=_0x502729['getFirstRange'](),_0x5c69d4=_0x186a34['start'],_0x580013=_0x186a34['end'];this['_setSuggestionRange'](_0x502729,this['_model']['createRange'](_0x5c69d4,_0x408989));const _0x275da1=_0x287d7d(),_0x22f5d6=_0x502729['creator']['id'],_0x2a3462=_0x502729['type']+(_0x502729['subType']?':'+_0x502729['subType']:'');this['_setSuggestionData']({'id':_0x275da1,'type':_0x2a3462,'createdAt':new Date(),'authorId':_0x22f5d6,'originalSuggestionId':_0x502729['id'],'attributes':_0x502729['attributes'],'data':_0x502729['data']});const _0x37f700=this['_getAttributeKey'](_0x502729);('formatBlock'==_0x502729['type']||_0x37f700&&this['_isBlockAttribute'](_0x37f700))&&(_0x394a6b=this['_model']['createPositionBefore'](_0x394a6b['parent'])),this['_addSuggestionMarker'](_0x2a3462,_0x275da1,_0x22f5d6,this['_model']['createRange'](_0x394a6b,_0x580013));}['_findSuggestions'](_0x1c5a14,_0xf64fa3=null){const _0x255ee6=[],_0x166e09=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1c5a14)||(_0x1c5a14=[_0x1c5a14]);for(const _0x1bb0f1 of this['getSuggestions']()){if(!_0x1bb0f1['isInContent'])continue;if(_0xf64fa3&&_0x1bb0f1['type']!=_0xf64fa3)continue;let _0x42b120=!0x1;for(const _0x15ec1e of _0x1bb0f1['getRanges']()){for(const _0x158cef of _0x1c5a14){const _0x1c1406=_0x158cef['start']['isEqual'](_0x15ec1e['end'])||_0x158cef['end']['isEqual'](_0x15ec1e['start']);if(_0x1c1406||_0x158cef['getIntersection'](_0x15ec1e)){const _0x396c91=_0x158cef['containsRange'](_0x15ec1e)&&Rt(this['_model']['schema'],_0x15ec1e['start'],_0x158cef),_0x4b2e41=_0x15ec1e['containsRange'](_0x158cef)&&Rt(this['_model']['schema'],_0x158cef['start'],_0x15ec1e);_0x255ee6['push']({'suggestion':_0x1bb0f1,'meta':{'isOwn':_0x166e09==_0x1bb0f1['author'],'isNextTo':_0x1c1406,'isInsideObject':_0x396c91,'containsRangeInObject':_0x4b2e41}}),_0x42b120=!0x0;break;}}if(_0x42b120)break;}}return _0x255ee6;}['_addSuggestionMarker'](_0x53629b,_0x2eb46a,_0x732c0c,_0x31eff5,_0x24cb18){this['_model']['change'](_0x27e34b=>{let _0x194eb3='suggestion:'+_0x53629b+':'+_0x2eb46a+':'+_0x732c0c;_0x24cb18&&(_0x194eb3=_0x194eb3+':'+_0x24cb18),_0x27e34b['addMarker'](_0x194eb3,{'range':_0x31eff5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e7393){const _0x4035aa=_0x1e7393['previous'],_0x290e3a=_0x1e7393['next'];_0x1e7393['previous']=null,_0x1e7393['next']=null,null!=_0x4035aa&&_0x4035aa['next']==_0x1e7393&&(_0x4035aa['next']=_0x290e3a),null!=_0x290e3a&&_0x290e3a['previous']==_0x1e7393&&(_0x290e3a['previous']=_0x4035aa),'ready'==this['_suggestionState']['get'](_0x1e7393)&&(this['_suggestionState']['set'](_0x1e7393,'removed'),this['fire']('suggestionUnloaded',_0x1e7393,_0x4035aa,_0x290e3a));}['_setSuggestionData'](_0x5f2604){const _0x2cca59=_0x5f2604['id'],_0x23a353=this['addSuggestionData'](_0x5f2604);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2249a1=this['editor']['plugins']['get']('PendingActions'),_0x26324c=_0x23a353['hasComments'],_0x1eb6df=_0x23a353['subType']?_0x23a353['type']+':'+_0x23a353['subType']:_0x23a353['type'],_0x5b8375=this['editor']['locale'],_0x4ffcd0=_0x2249a1['add'](o(_0x5b8375,'PENDING_ACTION_SUGGESTION')),_0x5598be={'id':_0x2cca59,'type':_0x1eb6df,'hasComments':_0x26324c,'data':_0x5f2604['data']||null,'originalSuggestionId':_0x5f2604['originalSuggestionId']||null,'attributes':_0x23a353['attributes']};this['_adapter']['addSuggestion'](_0x5598be)['then'](_0x11b10c=>{_0x23a353['_saved']=!0x0,_0x2249a1['remove'](_0x4ffcd0),_0x11b10c&&_0x11b10c['createdAt']&&(this['_suggestions']['get'](_0x2cca59)['createdAt']=_0x11b10c['createdAt']);})['catch'](_0x3a0bd1=>{throw _0x1d1d01('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x23a353['discard']();}),_0x23a353['stopListening'](),this['_suggestions']['delete'](_0x23a353['id']),this['_suggestionState']['delete'](_0x23a353),_0x3a0bd1;});}return _0x23a353;}['_isBlockAttribute'](_0x527c01){return this['_blockAttributeKeys']['has'](_0x527c01);}['_updateSuggestionData'](_0x5c4f40,_0x35f98d){const _0x3b3798=this['editor']['plugins']['get']('PendingActions'),_0x3448d3=this['getSuggestion'](_0x5c4f40);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3448d3['_saved']){const _0x2bd4ed=_0x3b3798['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5c4f40,_0x35f98d)['then'](()=>{_0x3b3798['remove'](_0x2bd4ed);});}else _0x3448d3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5c4f40,_0x35f98d);});}}['_getSuggestionData'](_0x144335){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x35d108('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x144335);}['_handleNewSuggestionMarker'](_0x45f2e9){const {id:_0x4520e8,type:_0x3f6f48,subType:_0x3701fb,authorId:_0x3461ba}=this['_splitMarkerName'](_0x45f2e9),_0x3d7877=this['_suggestions']['get'](_0x4520e8)||this['_createSuggestion'](_0x3f6f48,_0x3701fb,_0x4520e8,_0x3461ba,{});switch(this['_checkSuggestionCorrectness'](_0x3d7877,_0x3f6f48,_0x3701fb,_0x3461ba),this['_suggestionState']['get'](_0x3d7877)){case'notReady':this['_getSuggestionData'](_0x4520e8)['then'](_0x4e5b8e=>{let _0x81b8b4=Promise['resolve']();_0x4e5b8e['hasComments']&&(_0x81b8b4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4520e8})),_0x81b8b4['then'](()=>{this['addSuggestionData'](_0x4e5b8e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3d7877,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4520e8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3d7877,'ready'),this['fire']('suggestionLoaded',_0x3d7877);break;case'ready':this['fire']('suggestionChanged',_0x3d7877);}return _0x3d7877['addMarkerName'](_0x45f2e9),_0x3d7877;}['_refreshSuggestionsChain'](_0x237b16){const _0x2ccf39=Array['from'](_0x237b16),_0x374fc7=_0x2ccf39['filter'](_0x335097=>'attribute'==_0x335097['type']);this['_refreshAttributeSuggestionsChain'](_0x374fc7);const _0x5229df=_0x2ccf39['filter'](_0x9ac072=>!_0x9ac072['isMultiRange']&&'attribute'!=_0x9ac072['type']),_0xda36c9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1068bf=>!_0x1068bf['isMultiRange']&&'attribute'!=_0x1068bf['type']),_0x258957=_0xda36c9['filter'](_0x2ce37b=>!_0x237b16['has'](_0x2ce37b)),_0x10f21c=new Map(_0xda36c9['map'](_0x14d35c=>[_0x14d35c,this['_suggestionFactory']['getSuggestionCallback'](_0x14d35c['type'],_0x14d35c['subType'],'chain')])),_0x7348d4=new Map(_0xda36c9['map'](_0x19ddb2=>[_0x19ddb2,_0x19ddb2['getFirstRange']()])),_0x3f1c03=new Set(),_0x488c99=new Set();for(let _0x216cec=0x0;_0x216cec<_0x5229df['length'];_0x216cec++)_0x5d6663(_0x5229df[_0x216cec],_0x5229df,_0x216cec+0x1);for(let _0x4f4d93=0x0;_0x4f4d93<_0x5229df['length'];_0x4f4d93++)_0x5d6663(_0x5229df[_0x4f4d93],_0x258957,0x0);const _0x5f3370=new Set();for(let _0x2f08b8=0x0;_0x2f08b8<_0x5229df['length'];_0x2f08b8++){const _0x165ed0=_0x5229df[_0x2f08b8];!_0x488c99['has'](_0x165ed0)&&_0x165ed0['previous']&&(_0x5f3370['add'](_0x165ed0['previous']),_0x165ed0['previous']['next']===_0x165ed0&&(_0x165ed0['previous']['next']=null),_0x165ed0['previous']=null),!_0x3f1c03['has'](_0x165ed0)&&_0x165ed0['next']&&(_0x5f3370['add'](_0x165ed0['next']),_0x165ed0['next']['previous']===_0x165ed0&&(_0x165ed0['next']['previous']=null),_0x165ed0['next']=null);}function _0x5d6663(_0x11f86b,_0x546371,_0x568654){for(let _0x143793=_0x568654;_0x143793<_0x546371['length'];_0x143793++){const _0x54de71=_0x3a817c(_0x11f86b,_0x546371[_0x143793]);_0x54de71&&(_0x54de71[0x0]['next']=_0x54de71[0x1],_0x54de71[0x1]['previous']=_0x54de71[0x0],_0x3f1c03['add'](_0x54de71[0x0]),_0x488c99['add'](_0x54de71[0x1]));}}function _0x3a817c(_0x251975,_0x19e3bb){if(_0x251975['author']['id']!==_0x19e3bb['author']['id'])return null;const _0x363ad6=_0x10f21c['get'](_0x251975)(_0x251975,_0x19e3bb,_0x7348d4['get'](_0x251975),_0x7348d4['get'](_0x19e3bb));if(!_0x363ad6)return null;return _0x10f21c['get'](_0x19e3bb)(_0x251975,_0x19e3bb,_0x7348d4['get'](_0x251975),_0x7348d4['get'](_0x19e3bb))?_0x363ad6[0x1]['commentThread']&&_0x363ad6[0x1]['commentThread']['length']?null:_0x363ad6:null;}_0x5f3370['size']&&this['_refreshSuggestionsChain'](_0x5f3370);}['_refreshAttributeSuggestionsChain'](_0x37c95e){if(0x0==_0x37c95e['length'])return;const _0x88d395=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e3d96=>'attribute'==_0x5e3d96['type']&&_0x5e3d96['_isDataLoaded']),_0x389d81=[],_0x9c1465=new Map();for(const _0x4a2177 of _0x88d395){const _0x455eda=_0xdafb0a(_0x4a2177['attributes']);_0x9c1465['has'](_0x455eda)||(_0x9c1465['set'](_0x455eda,_0x389d81['length']),_0x389d81['push']([]));const _0x3330e6=_0x9c1465['get'](_0x455eda);_0x389d81[_0x3330e6]['push'](_0x4a2177);}!(function(){_0x389d81['sort']((_0x19c9c8,_0x1e69bc)=>{const _0x2e7ff2=_0x19c9c8[0x0]['createdAt'],_0x266168=_0x1e69bc[0x0]['createdAt'];return _0x2e7ff2==_0x266168?_0x19c9c8[0x0]['attributes']['groupId']<_0x1e69bc[0x0]['attributes']['groupId']?-0x1:0x1:_0x2e7ff2<_0x266168?-0x1:0x1;});for(const _0x43bc6d of _0x389d81)_0x43bc6d['sort']((_0x5ae305,_0x4726b2)=>_0x5ae305['id']<_0x4726b2['id']?-0x1:0x1);}());for(let _0x25ee12=0x0;_0x25ee12<_0x389d81['length'];_0x25ee12++){if(0x0==_0x389d81[_0x25ee12]['length'])continue;const _0x3fc192=[];for(let _0x2f3995=_0x25ee12+0x1;_0x2f3995<_0x389d81['length'];_0x2f3995++)0x0!=_0x389d81[_0x2f3995]['length']&&_0x14c0db(_0x389d81[_0x25ee12],_0x389d81[_0x2f3995])&&_0x3fc192['push'](_0x2f3995);for(const _0x140c0c of _0x3fc192)_0x389d81[_0x25ee12]=_0x389d81[_0x25ee12]['concat'](_0x389d81[_0x140c0c]),_0x389d81[_0x140c0c]=[];}for(const _0x51a4c5 of _0x389d81)for(let _0x32a5ac=0x0;_0x32a5ac<_0x51a4c5['length'];_0x32a5ac++)_0x51a4c5[_0x32a5ac]['next']=_0x51a4c5[_0x32a5ac+0x1]||null;for(const _0x58f0ce of _0x389d81)for(let _0x4ada21=0x0;_0x4ada21<_0x58f0ce['length'];_0x4ada21++)_0x58f0ce[_0x4ada21]['previous']=_0x58f0ce[_0x4ada21-0x1]||null;function _0x14c0db(_0x1661db,_0x28898a){if(_0x1661db[0x0]['attributes']['groupId']!==_0x28898a[0x0]['attributes']['groupId']&&_0x1661db[0x0]['author']!==_0x28898a[0x0]['author'])return!0x1;if(!function(_0x38e4c2,_0x26d282){if(!_0x38e4c2['hasComments']&&!_0x26d282['hasComments'])return!0x0;if(_0x38e4c2['hasComments']&&_0x26d282['hasComments'])return!0x1;if(_0x38e4c2['hasComments']&&_0x26d282['createdAt']<_0x38e4c2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x26d282['hasComments']&&_0x38e4c2['createdAt']<_0x26d282['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1661db[0x0],_0x28898a[0x0]))return!0x1;const _0x5135af=Bt(_0x1661db[0x0]['attributes'],'groupId'),_0x156797=Bt(_0x28898a[0x0]['attributes'],'groupId');if(!_0x4de750(_0x5135af,_0x156797))return!0x1;return!!_0x1661db['every'](_0xf530ba=>_0x28898a['some'](_0x5dd51c=>_0xf530ba['getFirstRange']()['isEqual'](_0x5dd51c['getFirstRange']())))&&_0x28898a['every'](_0x3f74eb=>_0x1661db['some'](_0x11e884=>_0x3f74eb['getFirstRange']()['isEqual'](_0x11e884['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2a5507){const _0x4cd16c=Array['from'](_0x2a5507),_0x3ccc87=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5cd867=_0x3ccc87['filter'](_0x235bfa=>!_0x2a5507['has'](_0x235bfa)),_0x2994de=new Map(_0x4cd16c['map'](_0x1439c7=>[_0x1439c7,this['_suggestionFactory']['getSuggestionCallback'](_0x1439c7['type'],_0x1439c7['subType'],'join')])),_0x503b19=new Map(_0x3ccc87['map'](_0x2b8a7b=>[_0x2b8a7b,_0x2b8a7b['getRanges']()]));for(let _0x4984bd=0x0;_0x4984bd<_0x4cd16c['length'];_0x4984bd++){if(_0x18934c(this,_0x4cd16c[_0x4984bd],_0x4cd16c,_0x4984bd+0x1))return!0x0;}for(let _0x59dad1=0x0;_0x59dad1<_0x4cd16c['length'];_0x59dad1++){if(_0x18934c(this,_0x4cd16c[_0x59dad1],_0x5cd867,0x0))return!0x0;}return!0x1;function _0x18934c(_0x2dfe1b,_0x3e22d5,_0x1e31d3,_0x35dc87){for(let _0xa8f17c=_0x35dc87;_0xa8f17c<_0x1e31d3['length'];_0xa8f17c++){const _0x1ddb52=_0x1e31d3[_0xa8f17c];if(_0x1ddb52['type']!==_0x3e22d5['type']||_0x1ddb52['author']['id']!==_0x3e22d5['author']['id']||_0x1ddb52['subType']!==_0x3e22d5['subType'])continue;if(!Pt(_0x3e22d5,_0x1ddb52,['groupId']))continue;if('attribute'==_0x3e22d5['type']&&_0x3e22d5['data']['oldValue']!=_0x1ddb52['data']['oldValue'])continue;if('attribute'==_0x3e22d5['type']&&_0x2dfe1b['_isBlockAttribute'](_0x3e22d5['data']['key']))continue;if('formatBlock'==_0x3e22d5['type']){const _0x5a0b5e=_0x2dfe1b['editor']['model'],_0x43fee5=_0x3e22d5['getContainedElement']();if(_0x43fee5&&(_0x5a0b5e['schema']['isObject'](_0x43fee5)||_0x5a0b5e['schema']['isLimit'](_0x43fee5)))continue;}const _0x172ac4=_0x2994de['get'](_0x3e22d5),_0x4768d2=_0x503b19['get'](_0x3e22d5),_0x528b02=_0x503b19['get'](_0x1ddb52),_0x2a2bf6=_0x3e22d5['commentThread']&&_0x3e22d5['commentThread']['length'],_0x15fa04=_0x1ddb52['commentThread']&&_0x1ddb52['commentThread']['length'];if(!_0x2a2bf6&&_0x172ac4(_0x528b02,_0x4768d2))return _0x2dfe1b['_joinSuggestions'](_0x1ddb52,_0x3e22d5),_0x503b19['delete'](_0x3e22d5),!0x0;if(!_0x15fa04&&_0x172ac4(_0x4768d2,_0x528b02))return _0x2dfe1b['_joinSuggestions'](_0x3e22d5,_0x1ddb52),_0x503b19['delete'](_0x1ddb52),!0x0;}return!0x1;}}['_joinSuggestions'](_0x8aeb3b,_0x155f3c){if(_0x8aeb3b['isMultiRange']){for(const _0x3ea00b of _0x155f3c['getRanges']())_0x8aeb3b['addRange'](_0x3ea00b);}else{const _0x22afa9=_0x155f3c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x8aeb3b,this['_model']['createRange'](_0x8aeb3b['getFirstRange']()['start'],_0x22afa9));}_0x155f3c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1ab560,_0xf50b09){const _0x5dd11c=_0x1ab560['startsWith']('format')||_0x1ab560['startsWith']('attribute')?'FORMATTING':_0x1ab560['toUpperCase']();return o(this['editor']['locale'],_0xf50b09+'_'+_0x5dd11c+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x486620=this['editor'];if(!_0x486620['ui'])return;const {ariaLiveAnnouncer:_0xd2101e}=_0x486620['ui'];_0x3da964(this['_model'],({left:_0x28f0fd,entered:_0x3bbbc4})=>{for(const _0x2b7f9b of _0x28f0fd){const {group:_0x3221e2,type:_0x34133f}=this['_splitMarkerName'](_0x2b7f9b['name']);if('suggestion'===_0x3221e2){_0xd2101e['announce'](this['_getMarkerAnnouncementText'](_0x34133f,'LEAVE'));break;}}for(const _0x11e68b of _0x3bbbc4){const {group:_0x1f0a14,type:_0x18298e}=this['_splitMarkerName'](_0x11e68b['name']);if('suggestion'===_0x1f0a14){_0xd2101e['announce'](this['_getMarkerAnnouncementText'](_0x18298e,'ENTER'));break;}}});}['_processAttributeChanges'](_0x3a9656){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf31b1c=this['editor'],_0x74932d=_0xf31b1c['model']['document']['differ']['getChanges']();if(0x0==_0x74932d['length'])return!0x1;const _0x2345d5=[],_0x20a5f6=_0x74932d['filter'](_0x250fe3=>'attribute'==_0x250fe3['type']),_0x403df0=_0x74932d['filter'](_0xd12e28=>'insert'==_0xd12e28['type']&&'$text'!=_0xd12e28['name']),_0x178f41=_0x74932d['filter'](_0x54258a=>'remove'==_0x54258a['type']&&'$text'!=_0x54258a['name']);for(const _0x204035 of _0x20a5f6)_0x2345d5['push']({'key':_0x204035['attributeKey'],'newValue':_0x204035['attributeNewValue'],'oldValue':_0x204035['attributeOldValue'],'range':Ot(_0x204035['range'],_0xf31b1c['model'])});for(const _0x4fa5a0 of _0x403df0){const _0x517713=_0x178f41['find'](_0x20a0aa=>_0x20a0aa['position']['isEqual'](_0x4fa5a0['position']));_0x517713&&_0x2345d5['push']({'key':m,'newValue':_0x4fa5a0['name'],'oldValue':_0x517713['name'],'range':_0xf31b1c['model']['createRangeOn'](_0x4fa5a0['position']['nodeAfter'])});}return 0x0!=_0x2345d5['length']&&this['_reduceExistingSuggestions'](_0x3a9656,_0x2345d5);}['_processAttributeSuggestions'](_0x399da2){let _0x426a9f=!0x1;const _0x4c5943=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3fe8a0=>_0x3fe8a0['data']['newRange']&&_0x3fe8a0['name']['startsWith']('suggestion:attribute:'));for(const _0x5b93b7 of _0x4c5943){const {subType:_0x20c2ce,id:_0x3eb417}=this['_splitMarkerName'](_0x5b93b7['name']),_0x4739d8=_0x20c2ce['split']('|')[0x0];for(const _0x28c957 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x28c957['id']!=_0x3eb417&&'attribute'==_0x28c957['type']&&_0x28c957['data']&&_0x28c957['data']['key']==_0x4739d8&&_0x28c957['getFirstRange']()['isIntersecting'](_0x5b93b7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x28c957,_0x5b93b7['data']['newRange'],_0x399da2),_0x426a9f=!0x0);}return _0x426a9f;}['_recordAttributeChanges'](_0x4312de){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4312de();}['_isRegisteredAttribute'](_0x31e626){const _0x571324=this['_isBlockAttribute'](_0x31e626),_0xe375c4=this['_inlineAttributeKeys']['has'](_0x31e626);return _0x571324||_0xe375c4;}['_reduceExistingSuggestions'](_0x23927d,_0x1ef744){if(0x0==_0x1ef744['length'])return!0x1;let _0x209782=!0x1;for(const _0x1bcca5 of _0x1ef744){const _0xe4fbea=this['_findSuggestions'](_0x1bcca5['range'],'attribute')['filter'](_0xf4fdda=>!_0xf4fdda['meta']['isNextTo'])['map'](_0x5e82e5=>_0x5e82e5['suggestion']),_0x117ca5=_0xdafb0a({'newValue':_0x1bcca5['newValue']});_0xe4fbea['filter'](_0x5f3225=>{const [_0x1ee9ce,_0x4d6c8d]=_0x5f3225['subType']['split']('|');return _0x1ee9ce==_0x1bcca5['key']&&_0x4d6c8d!=_0x117ca5;})['forEach'](_0x217a78=>{this['_reduceSuggestionAttributeRange'](_0x217a78,_0x1bcca5['range'],_0x23927d),_0x209782=!0x0;});}return _0x209782;}['_reduceSuggestionAttributeRange'](_0x27b329,_0x2978b9,_0x769043){const _0x408e49=_0x27b329['getFirstRange']()['getDifference'](_0x2978b9);0x0!==_0x408e49['length']?0x1!==_0x408e49['length']?this['_breakSuggestionMarker'](_0x27b329,_0x2978b9['start'],_0x2978b9['end']):this['_setSuggestionRange'](_0x27b329,_0x408e49[0x0]):_0x769043['removeMarker'](_0x27b329['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x21c894){this['_editor']=_0x21c894,this['_model']=_0x21c894['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x9bcd25,_0x106190,_0x5dc175,_0x5d758a,_0x5f1afa,_0xef991){return new u(this['_model'],{'type':_0x9bcd25,'subType':_0x106190,'id':_0x5dc175,'author':_0x5d758a,'creator':_0x5d758a,'attributes':_0x5f1afa,'onAttributesChange':_0xef991,'onAccept':(..._0x462ab4)=>this['getSuggestionCallback'](_0x9bcd25,_0x106190,'accept')(..._0x462ab4),'onDiscard':(..._0x52abfe)=>this['getSuggestionCallback'](_0x9bcd25,_0x106190,'discard')(..._0x52abfe)});}['registerCustomCallback'](_0x2df096,_0x13620c,_0x70dba3,_0x222814){const _0x4fad13=_0x2df096+':'+_0x13620c+':'+_0x70dba3;this['_customCallbacks']['set'](_0x4fad13,_0x222814);}['getSuggestionCallback'](_0x473a37,_0x534d5f,_0x1d1cf3){const _0x30efe1=_0x473a37+':'+_0x534d5f+':'+_0x1d1cf3;return this['_customCallbacks']['get'](_0x30efe1)||this['_defaultCallbacks']['get'](_0x473a37+':'+_0x1d1cf3);}['_registerDefaultCallbacks'](){const _0x2668c3=()=>!0x1,_0x3086bf=_0xb99542=>{_0xb99542['sort']((_0x2564f0,_0x2d33f6)=>_0x2564f0['start']['isBefore'](_0x2d33f6['start'])?0x1:-0x1),this['_model']['change'](_0xf01278=>{for(const _0x5a28e4 of _0xb99542){let _0x542e96;_0x542e96=_0x5a28e4['end']['isAtEnd']&&_0x5a28e4['end']['parent']==_0x5a28e4['start']['nodeAfter']?_0xf01278['createSelection'](_0x5a28e4['start']['nodeAfter'],'on'):_0xf01278['createSelection'](_0x5a28e4),this['_model']['deleteContent'](_0x542e96,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x514ba8=(_0x436483,_0xb31d0d)=>{_0xb31d0d&&this['_model']['change'](_0x299858=>{const {commandName:_0x415c4c,commandParams:_0x3e0d49=[]}=_0xb31d0d,_0x571041=_0x436483['map'](_0x48dcd8=>(Tt(_0x48dcd8)&&(_0x48dcd8=this['_model']['createRange'](_0x48dcd8['end'])),_0x48dcd8))['filter'](_0x529d5c=>'$graveyard'!==_0x529d5c['root']['rootName']);if(_0x571041['length']<0x1)return;const _0x5666c7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x16af8e=>_0x55c0b1['fromRange'](_0x16af8e));_0x299858['setSelection'](_0x571041);for(const _0x2fd779 of this['_editor']['commands']['commands']())_0x2fd779['refresh']();_0x3e0d49['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x415c4c,..._0x3e0d49);const _0x40006a=_0x5666c7['filter'](_0x4d7e3f=>'$graveyard'!=_0x4d7e3f['root']['rootName']);_0x40006a['length']>0x0&&_0x299858['setSelection'](_0x40006a);for(const _0x170834 of _0x5666c7)_0x170834['detach']();});},_0x53d43b=(_0x516201,_0x44fcbf)=>0x1==_0x516201['length']&&0x1==_0x44fcbf['length']&&_0x516201[0x0]['end']['isEqual'](_0x44fcbf[0x0]['start']),_0x2f2079=(_0x127913,_0x529740,_0x4b507f,_0x553a01)=>Ft(_0x127913,_0x529740,_0x4b507f,_0x553a01,this['_model'])?[_0x127913,_0x529740]:Ft(_0x529740,_0x127913,_0x553a01,_0x4b507f,this['_model'])?[_0x529740,_0x127913]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2668c3),this['_defaultCallbacks']['set']('insertion:discard',_0x3086bf),this['_defaultCallbacks']['set']('insertion:join',_0x53d43b),this['_defaultCallbacks']['set']('insertion:chain',_0x2f2079),this['_defaultCallbacks']['set']('deletion:accept',_0x3086bf),this['_defaultCallbacks']['set']('deletion:discard',_0x2668c3),this['_defaultCallbacks']['set']('deletion:join',_0x53d43b),this['_defaultCallbacks']['set']('deletion:chain',_0x2f2079),this['_defaultCallbacks']['set']('formatInline:accept',_0x514ba8),this['_defaultCallbacks']['set']('formatInline:discard',_0x2668c3),this['_defaultCallbacks']['set']('formatInline:join',_0x53d43b),this['_defaultCallbacks']['set']('formatInline:chain',_0x2668c3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x514ba8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2668c3),this['_defaultCallbacks']['set']('formatBlock:join',_0x53d43b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2668c3),this['_defaultCallbacks']['set']('attribute:accept',_0x2668c3),this['_defaultCallbacks']['set']('attribute:discard',(_0x2937ce,_0x4ec2d4)=>{if(!_0x4ec2d4)return;const _0x1f64e5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5c845e=>{if(_0x4ec2d4['key']==m)for(const _0x21fda5 of _0x2937ce){const _0x4f187d=_0x21fda5['start']['nodeAfter'],_0x339eed=_0x4ec2d4['oldValue'];_0x5c845e['rename'](_0x4f187d,_0x339eed);}else{if(_0x1f64e5['_isBlockAttribute'](_0x4ec2d4['key'])){for(const _0x369502 of _0x2937ce)void 0x0!==_0x4ec2d4['oldValue']?_0x5c845e['setAttribute'](_0x4ec2d4['key'],_0x4ec2d4['oldValue'],_0x369502['start']['nodeAfter']):_0x5c845e['removeAttribute'](_0x4ec2d4['key'],_0x369502['start']['nodeAfter']);}else{for(const _0x56ff44 of _0x2937ce)_0x4ec2d4['oldValue']?_0x5c845e['setAttribute'](_0x4ec2d4['key'],_0x4ec2d4['oldValue'],_0x56ff44):_0x5c845e['removeAttribute'](_0x4ec2d4['key'],_0x56ff44);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x53d43b);}}function Rt(_0xfe3f7,_0x463638,_0x3b04d9){for(const _0x2ad6b4 of _0x463638['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2ad6b4['root']==_0x2ad6b4)return!0x1;if(!_0x3b04d9['containsItem'](_0x2ad6b4))return!0x1;if(_0xfe3f7['isObject'](_0x2ad6b4)||_0xfe3f7['isLimit'](_0x2ad6b4))return!0x0;}return!0x1;}function Tt(_0x28a991){return _0x28a991['end']['parent']==_0x28a991['start']['nodeAfter']&&_0x28a991['end']['isAtStart'];}function Et(_0x3339c4,_0x3eba75,_0x8cde1c,_0x3f0e7c){const _0x2cdcce=_0xd2df61=>!_0xd2df61['item']['is']('$textProxy')&&!_0x3f0e7c['isObject'](_0xd2df61['item']),_0x2f01b8=_0x3339c4['start']['getLastMatchingPosition'](_0x2cdcce),_0x227c60=_0x3339c4['end']['getLastMatchingPosition'](_0x2cdcce,{'direction':'backward'});return(!_0x3339c4['start']['isEqual'](_0x2f01b8)||!_0x3339c4['end']['isEqual'](_0x227c60))&&(_0x2f01b8['isBefore'](_0x227c60)?_0x8cde1c['updateMarker'](_0x3eba75,{'range':_0x8cde1c['createRange'](_0x2f01b8,_0x227c60)}):_0x8cde1c['removeMarker'](_0x3eba75),!0x0);}function Vt(_0x259b62){return _0xdafb0a(_0x259b62);}function Ut(_0x40ec15){const _0x135be6=_0x40ec15['start']['nodeAfter'];return _0x135be6&&_0x135be6['is']('element');}function Ot(_0x4a3f1f,_0x24aee9){return null==_0x4a3f1f['end']['nodeBefore']&&_0x4a3f1f['end']['parent']==_0x4a3f1f['start']['nodeAfter']?Gt(_0x4a3f1f['start']['nodeAfter'],_0x24aee9):_0x4a3f1f;}function Gt(_0x2ea757,_0x4c88ae){const _0x475a33=_0x4c88ae['schema']['isObject'](_0x2ea757)||_0x4c88ae['schema']['isSelectable'](_0x2ea757);return _0x4c88ae['createRange'](_0x4c88ae['createPositionAt'](_0x2ea757,'before'),_0x475a33?_0x4c88ae['createPositionAfter'](_0x2ea757):_0x4c88ae['createPositionAt'](_0x2ea757,'end'));}function Ft(_0x28fe5a,_0x2505b8,_0x579aa8,_0x2cce8a,_0x428b2b){if(!Pt(_0x28fe5a,_0x2505b8))return!0x1;if(_0x579aa8['end']['isEqual'](_0x2cce8a['start']))return!0x0;if(_0x28fe5a['type']!=_0x2505b8['type'])return!0x1;if(!_0x579aa8['end']['isTouching'](_0x2cce8a['start']))return!0x1;const _0x39b096=_0x428b2b['createRange'](_0x579aa8['end'],_0x2cce8a['start'])['getWalker']();for(const _0x1bf582 of _0x39b096)if(['elementStart','elementEnd']['includes'](_0x1bf582['type'])&&_0x428b2b['schema']['isLimit'](_0x1bf582['item']))return!0x1;return!0x0;}function Pt(_0x5cd3d8,_0xffc12d,_0x1ff9a9=[]){return!(!_0x5cd3d8['_isDataLoaded']||!_0xffc12d['_isDataLoaded'])&&_0x4de750(Bt(_0x5cd3d8['attributes'],_0x1ff9a9),Bt(_0xffc12d['attributes'],_0x1ff9a9));}function Lt(_0x4e0c43,_0x2a14f9){const _0x223339=Ht(_0x4e0c43['attributes']),_0x3a68b1=Ht(_0x2a14f9);if(!_0x4e0c43['_isDataLoaded'])return!0x1;for(const _0x24527b of Object['keys'](_0x3a68b1))if(!_0x4de750(_0x223339[_0x24527b],_0x3a68b1[_0x24527b]))return!0x1;return!0x0;}function Ht(_0x398c89){const _0x463361=Object['assign']({},_0x398c89);return delete _0x463361['skipNestingCheck'],delete _0x463361['tablePasteChainId'],_0x463361;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x136a63(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x576cd0,_0x17e188,_0x17558c,_0x4dfce3){super(),this['model']=_0x17e188,this['view']=_0x17558c,this['commentThreadController']=_0x4dfce3,this['_editor']=_0x576cd0,this['_acceptCommand']=_0x576cd0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x576cd0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x727b95,_0x285e46)=>_0x727b95||_0x285e46),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2f2bd5=>_0x2f2bd5&&this['_editor']['model']['canEditAt'](_0x17e188['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2965af=>_0x2965af&&this['_editor']['model']['canEditAt'](_0x17e188['getRanges']())),this['_pendingAction']=null,_0x17558c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x17558c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x17558c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x17558c,'change:isDirty',()=>{_0x17558c['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 _0x24ec95=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x24ec95);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x59c07b{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3cfcc1,_0x2146ef,_0x3ced22,_0x10aab4){super(_0x3cfcc1),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x2146ef['authoredAt']),this['bind']('authoredAt')['to'](_0x2146ef),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x2146ef,this['_localUser']=_0x3ced22,this['_config']=_0x10aab4,_0x10aab4['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:_0x34c3ea}=this['_config'];this['commentsListView']=new _0x34c3ea(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',_0x3d1bd3=>_0x3d1bd3+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x7079af,_0x2df2c4)=>_0x7079af||!!_0x2df2c4);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4c8912}=this['_config'],_0x4dbfab=new _0x4c8912(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x8e507a=_0x4dbfab['commentInputView'];return _0x4dbfab['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x8e507a,'value',(_0x960698,_0x5eeef8,_0x308a05)=>!!_0x308a05||_0x960698&&!_0x5eeef8),_0x8e507a['on']('submit',(_0x2f44e9,_0x377fb5)=>{this['fire']('addComment',_0x377fb5),_0x8e507a['editor']['setData']('');}),_0x8e507a['on']('cancel',()=>this['focus']()),_0x8e507a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4dbfab;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2db5d6,_0x475229,_0x482254,_0x42a965){super(_0x2db5d6,_0x475229,_0x482254,_0x42a965),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5cc3d1=>_0x5cc3d1&&_0x5cc3d1[0x0]?_0x5cc3d1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe9eac6,_0x531add)=>{let _0x551bb2='';for(const _0x1e6de4 of _0xe9eac6)_0x551bb2+='<p>'+ds(_0x1e6de4['content'],_0x1e6de4['color'])+'</p>';return _0x531add?_0x551bb2:_0x399d49(_0x551bb2,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2db5d6,'Accept\x20suggestion'),_0x53c6c6['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2db5d6,'Discard\x20suggestion'),_0x53c6c6['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x364e1f(_0x2db5d6,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2f900e=this['bindTemplate'],_0x5ad060=[{'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':_0x2f900e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2f900e['to']('authoredAt',_0x38635d=>this['_config']['formatDateTime'](_0x38635d))}]}]},{'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']&&_0x5ad060['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x2ddbe8={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x2f900e['if']('isActive','ck-suggestion-wrapper--active'),_0x2f900e['to']('type',_0x49bba7=>'ck-suggestion-'+_0x49bba7),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':_0x5ad060}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x2ddbe8['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)),_0x2ddbe8;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5b44aa,_0x5bf0a1,_0x5f4734)=>{this['_descriptionElement']['innerHTML']=_0x5f4734;});}['_createButton'](_0xbcdc13,_0x3700b4,_0x9e395e,_0x47c3a6,_0x4850c6){const _0x13079f=new _0x4c6253(this['locale']);return _0x13079f['set']({'label':_0xbcdc13,'icon':_0x3700b4,'tooltip':!0x0,'tooltipPosition':_0x4850c6}),_0x13079f['extendTemplate']({'attributes':{'class':_0x9e395e}}),_0x13079f['on']('execute',()=>{this['fire'](_0x47c3a6,this['_model']['id']);}),_0x13079f;}['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(_0x41ab1c,_0x3dd100){let _0x4776db='';return _0x4776db+=_0x41ab1c['split']('*')['map']((_0x5ee598,_0x33479b)=>_0x33479b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5ee598)+'</span>':us(_0x5ee598))['join'](''),_0x3dd100&&(_0x4776db+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3dd100['value']+'\x22\x20title=\x22'+_0x3dd100['title']+'\x22></span>'),_0x4776db;}function us(_0x6e9048){const _0x19cb9c=document['createElement']('span');return _0x19cb9c['innerText']=_0x6e9048,_0x19cb9c['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 _0x16481a{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x214dba,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x21f7c0){super(_0x21f7c0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5237bb=this['editor']['config'];_0x5237bb['define']('trackChanges.SuggestionThreadView',ne),_0x5237bb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5237bb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2bfa81,_0xfdd7a3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x417245,_0x4ae4a0]of this['_handleControllerBuffer']){const _0x536594=this['_suggestionToController']['has'](_0x417245);_0x536594||_0x4ae4a0?_0x536594&&_0x4ae4a0&&this['_destroyController'](_0x417245):this['_initializeController'](_0x417245);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2bfa81,_0xfdd7a3);}['init'](){const _0x27c577=this['editor'],_0x1791ef=_0x27c577['plugins']['get']('TrackChangesEditing'),_0x4b2db9=_0x27c577['plugins']['get']('Annotations'),_0x41bddb=_0x27c577['plugins']['get']('EditorAnnotations'),_0xa6a785=_0x27c577['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x41bddb['addSourceCollector'](()=>{const _0x935bc1=[];for(const [_0xbf53e4,_0x4c8ed6]of Array['from'](this['_suggestionToController'])){const _0x4f87a7=_0xbf53e4['getAllAdjacentSuggestions'](),_0x5d1b4e=[];for(const _0x3c0a7a of _0x4f87a7){if(!_0x3c0a7a['isInContent'])continue;if(_0x3c0a7a['isMultiRange']){_0x5d1b4e['push'](..._0x3c0a7a['getRanges']());continue;}const _0x40b80b=_0x3c0a7a['getFirstRange']();if(_0x5d1b4e['length']>0x0){const _0x75b042=_0x5d1b4e[0x0]['getJoined'](_0x40b80b);if(_0x75b042){_0x5d1b4e[0x0]=_0x75b042;continue;}}_0x5d1b4e['push'](_0x40b80b);}_0x935bc1['push']([_0x4c8ed6['view'],_0x5d1b4e]);}return _0x935bc1;}),this['listenTo'](_0x1791ef,'suggestionLoaded',(_0x1c7207,_0x2b4af7)=>{this['listenTo'](_0x2b4af7,'change:previous',(_0x5d5b0e,_0x196852,_0x1d89e2,_0x5498bd)=>{_0x2b4af7['isInContent']&&(null==_0x1d89e2?(this['_updateController'](_0x5498bd['head']),this['_handleSuggestionControllerDelayed'](_0x2b4af7,!0x1)):(this['_updateController'](_0x1d89e2['head']),null==_0x5498bd&&this['_handleSuggestionControllerDelayed'](_0x2b4af7,!0x0)));}),null!==_0x2b4af7['previous']?this['_updateController'](_0x2b4af7['head']):this['_handleSuggestionControllerDelayed'](_0x2b4af7,!0x1);}),this['listenTo'](_0x1791ef,'suggestionUnloaded',(_0x57e6ea,_0x31d821,_0x1d0fe6)=>{this['stopListening'](_0x31d821,'change:previous'),this['_handleControllerBuffer']['delete'](_0x31d821),this['_suggestionToController']['has'](_0x31d821)&&this['_destroyController'](_0x31d821),_0x1d0fe6&&this['_updateController'](_0x1d0fe6['head']);}),this['listenTo'](_0x1791ef,'suggestionChanged',(_0x637bbe,_0x42a8ae)=>{this['_updateController'](_0x42a8ae);}),this['listenTo'](_0x4b2db9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xa6a785,'addComment',(_0x3f16ba,{threadId:_0x2d53e3,isFromAdapter:_0xc5735b})=>{if(_0xc5735b||!_0x1791ef['hasSuggestion'](_0x2d53e3))return;const _0x33fdc9=_0x1791ef['getSuggestion'](_0x2d53e3);this['_suggestionToController']['get'](_0x33fdc9)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2f0e43=this['editor']['plugins']['get']('Annotations'),_0x1e1df9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4879e5=Array['from'](_0x2f0e43['activeAnnotations'],_0x362462=>_0x362462['innerView'])['filter'](_0x285b2d=>this['_viewToController']['has'](_0x285b2d)),_0x51e64c=[];for(const _0x3a5acf of _0x4879e5){const _0x266497=this['_viewToController']['get'](_0x3a5acf)['model']['getAllAdjacentSuggestions']();_0x51e64c['push'](..._0x266497['reduce']((_0x453088,_0x1f0b19)=>[..._0x453088,..._0x1f0b19['getMarkerNames']()],[]));}_0x1e1df9['activeMarkers']=_0x51e64c;}['_addUIComponentsToFactory'](){const _0xef52c2=this['editor'],_0x51f6c1=_0xef52c2['locale'],_0x2b04c7=o(_0x51f6c1,'Track\x20changes'),_0x431644=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x2b04c7,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51f6c1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51f6c1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51f6c1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51f6c1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5e7b69 of _0x431644)if(ae(_0x5e7b69)){const _0x491948=_0xef52c2['commands']['get'](_0x5e7b69['model']['commandName']);_0x5e7b69['model']['bind']('isOn','isEnabled')['to'](_0x491948,'value','isEnabled');}_0xef52c2['ui']['componentFactory']['add']('trackChanges',_0x2b7ab7=>this['_createToolbarButton'](_0x2b7ab7,_0x431644,_0x2b04c7)),_0xef52c2['ui']['componentFactory']['add']('menuBar:trackChanges',_0xa0daa9=>this['_createMenuBarMenu'](_0xa0daa9,_0x431644,_0x2b04c7));}['_createToolbarButton'](_0xfa8c70,_0x5136a2,_0x2091c5){const _0x1f99f0=zt(_0xfa8c70,Zt),_0x1172b4=this['editor']['commands']['get']('trackChanges');_0x1f99f0['buttonView']['set']({'tooltip':_0x2091c5,'label':_0x2091c5,'icon':ie}),_0x1f99f0['buttonView']['bind']('isOn')['to'](_0x1172b4,'value'),_0x1f99f0['buttonView']['on']('execute',()=>{_0x1172b4['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1f99f0,_0x5136a2,{'role':'menu'});const _0x51ef89=[];for(const _0x1bf8f5 of _0x5136a2)ae(_0x1bf8f5)&&_0x51ef89['push'](this['editor']['commands']['get'](_0x1bf8f5['model']['commandName']));const _0x57844a=_0x1f99f0['buttonView'];return _0x57844a['actionView']['unbind']('isEnabled'),_0x57844a['arrowView']['unbind']('isEnabled'),_0x57844a['actionView']['bind']('isEnabled')['to'](_0x1172b4,'isEnabled'),_0x57844a['arrowView']['bind']('isEnabled')['toMany'](_0x51ef89,'isEnabled',(..._0x3056bc)=>_0x3056bc['some'](_0x1e39a0=>_0x1e39a0)),_0x1f99f0['on']('execute',_0x1b124d=>{this['editor']['execute'](_0x1b124d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f99f0;}['_createMenuBarMenu'](_0x1a43ba,_0x28716e,_0x1c78bd){const _0x418d01=new Kt(_0x1a43ba),_0xb6222d=this['editor']['commands']['get']('trackChanges');_0x418d01['buttonView']['set']({'label':_0x1c78bd,'icon':ie});const _0x4b2b66=new Qt(_0x1a43ba);for(const _0x3f7bce of _0x28716e){if('separator'==_0x3f7bce['type']){_0x4b2b66['items']['add'](new Jt(_0x1a43ba));continue;}const _0x4ef0d2=new Xt(_0x1a43ba,_0x418d01),_0x1fb559=new Yt(_0x1a43ba),_0x59c0c9=_0x3f7bce['model'];_0x1fb559['bind'](...Object['keys'](_0x59c0c9))['to'](_0x59c0c9),_0x1fb559['delegate']('execute')['to'](_0x418d01),_0x1fb559['on']('execute',()=>{this['editor']['execute'](_0x59c0c9['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ef0d2['children']['add'](_0x1fb559),_0x4b2b66['items']['add'](_0x4ef0d2);}return _0x418d01['bind']('isEnabled')['to'](_0xb6222d,'isEnabled'),_0x418d01['panelView']['children']['add'](_0x4b2b66),_0x418d01;}['_initializeController'](_0x181f3e){const _0x55ad19=this['editor'],_0x24f06d=_0x55ad19['config'],_0x440fcf=_0x55ad19['plugins']['get']('Annotations'),_0x1652b1=_0x55ad19['plugins']['get']('CommentsRepository'),_0x334a2e=_0x55ad19['plugins']['get']('EditorAnnotations'),_0x50566a=_0x55ad19['plugins']['get'](_0x214dba)['me'],_0x27fabc=_0x24f06d['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x18c0e8,CommentThreadInputView:_0x3ecfd7}=_0x55ad19['plugins']['get']('CommentsUI');let _0x5614d9,_0x58876a;this['_annotationViews']['has'](_0x181f3e['id'])?(_0x58876a=this['_annotationViews']['get'](_0x181f3e['id']),_0x5614d9=_0x58876a['mainView']):(_0x5614d9=new _0x27fabc(_0x55ad19['locale'],_0x181f3e,_0x50566a,{'disableComments':this['_disableComments'],'editorConfig':_0x24f06d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x24f06d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x24f06d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x24f06d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4b1dd6(_0x24f06d['get']('locale')),'CommentView':_0x24f06d['get']('comments')['CommentView'],'CommentsListView':_0x18c0e8,'CommentThreadInputView':_0x3ecfd7}),_0x5614d9['acceptButton']['on']('execute',()=>{_0x55ad19['editing']['view']['focus']();}),_0x5614d9['discardButton']['on']('execute',()=>{_0x55ad19['editing']['view']['focus']();}),_0x58876a=_0x440fcf['createAnnotationView'](this['editor']['locale'],_0x5614d9),_0x58876a['bind']('isDirty')['to'](_0x5614d9,'isDirty'),_0x58876a['bind']('length')['to'](_0x5614d9),_0x58876a['bind']('type')['to'](_0x5614d9,'type',_0x5a5ae1=>'suggestion-'+_0x5a5ae1),this['_annotationViews']['set'](_0x181f3e['id'],_0x58876a));const _0x18791f=_0x1652b1['createCommentThreadController'](_0x181f3e['commentThread'],_0x5614d9),_0x5765dd=new oe(_0x55ad19,_0x181f3e,_0x5614d9,_0x18791f),_0xe62a9f=_0x181f3e['getAllAdjacentSuggestions']()['filter'](_0x310759=>_0x310759['isInContent']);_0x5614d9['descriptionParts']=_0x55ad19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xe62a9f),this['_suggestionToController']['set'](_0x181f3e,_0x5765dd),this['_viewToController']['set'](_0x5614d9,_0x5765dd);const _0x21e65c=_0x440fcf['createAnnotation']({'view':_0x58876a,'target':()=>{const _0x4215a6=[],_0x437a34=_0x181f3e['getAllAdjacentSuggestions']()['filter'](_0x503053=>_0x503053['isInContent']);for(const _0x475272 of _0x437a34)_0x4215a6['push'](..._0x475272['getMarkers']());return _0x39b42e(_0x55ad19['editing'],_0x4215a6);},'type':()=>'suggestion-'+_0x5765dd['view']['type']});_0x1652b1['_bindAnnotationToEditors'](_0x5614d9,_0x21e65c),_0x440fcf['add'](_0x21e65c),_0x334a2e['registerAnnotation'](_0x21e65c);}['_destroyController'](_0x3dddda){const _0x5185f5=this['editor']['plugins']['get']('CommentsRepository'),_0x30836b=this['editor']['plugins']['get']('Annotations'),_0x3e448c=this['_suggestionToController']['get'](_0x3dddda),_0x131340=_0x3e448c['view'],_0x97035b=_0x30836b['getByInnerView'](_0x131340);_0x5185f5['_unbindEditors'](_0x131340),_0x97035b&&_0x30836b['remove'](_0x97035b),this['_suggestionToController']['delete'](_0x3dddda),this['_viewToController']['delete'](_0x131340),_0x3e448c['destroy']();}['_updateController'](_0x5f1928){if(!_0x5f1928['isInContent']||!this['_suggestionToController']['has'](_0x5f1928))return;const _0x3b5ade=this['editor']['plugins']['get']('TrackChangesEditing'),_0x574af5=this['_suggestionToController']['get'](_0x5f1928),_0x962deb=_0x5f1928['getAllAdjacentSuggestions']();_0x574af5['view']['descriptionParts']=_0x3b5ade['descriptionFactory']['getDescriptions'](_0x962deb);}['destroy'](){for(const _0x571a87 of this['_suggestionToController']['keys']())this['_destroyController'](_0x571a87);for(const _0x162c40 of this['_annotationViews']['values']())_0x162c40['mainView']['destroy']();super['destroy']();}}function ae(_0x4916b8){return'model'in _0x4916b8;}class k extends _0x16481a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5596bf){this['editor']['plugins']['get'](p)['adapter']=_0x5596bf;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x47e8ac){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x47e8ac);}['getSuggestions']({skipNotAttached:_0x70251a=!0x1,toJSON:_0x553ab3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x70251a,'toJSON':_0x553ab3});}['getSuggestion'](_0x288343){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x288343);}}const T=['Pagination'];class P extends _0x16481a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0xb86a62=this['editor'];if(_0xb86a62['config']['define']('trackChangesData.editorCreator',_0x19bd8b=>{const _0x4cfa09=_0xb86a62['model']['document']['getRootNames']()['reduce']((_0x2dac13,_0x13019e)=>(_0x2dac13[_0x13019e]='',_0x2dac13),{});return _0xb86a62['constructor']['create'](_0x4cfa09,_0x19bd8b);}),'function'!=typeof _0xb86a62['config']['get']('trackChangesData')['editorCreator'])throw new _0x35d108('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x408d73){return N(this['editor'],!0x0,_0x408d73);}['getDataWithDiscardedSuggestions'](_0x211977){return N(this['editor'],!0x1,_0x211977);}}class D extends _0x16481a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x36f8a2){super(_0x36f8a2),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(_0x3f72be){return void 0x0!==_0x3f72be['getRootsAttributes'];}async function N(_0x428f59,_0x4eee09,_0x116487){const _0xa78ed0=_0x5870c3(_0x428f59,T);_0xa78ed0['plugins']['push'](p,D),_0xa78ed0['rootsAttributes']=v(_0x428f59)?_0x428f59['getRootsAttributes']():void 0x0;const _0x5aa678=document['createDocumentFragment'](),_0x13ae5d=_0x428f59['config']['get']('trackChangesData')['editorCreator'],_0xe32781=await _0x13ae5d(_0xa78ed0,()=>function(_0x115674){const _0x2be89f=document['createElement']('div');return _0x115674['appendChild'](_0x2be89f),_0x2be89f;}(_0x5aa678));!function(_0x4f2d25,_0x530d4c){const _0x23d4de=_0x4f2d25['model']['document']['getRootNames']()['reduce']((_0x291d2d,_0x1f82c6)=>(_0x291d2d[_0x1f82c6]=_0x4f2d25['data']['get']({'rootName':_0x1f82c6}),_0x291d2d),{}),_0x5e9efe=_0x4f2d25['plugins']['get']('Users')['users']['map'](_0xeecd64=>({'id':_0xeecd64['id'],'name':_0xeecd64['name']})),_0x3d80a9=_0x4f2d25['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x21198e=_0x4f2d25['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x23ea3f=_0x530d4c['plugins']['get']('Users'),_0x5037f5=_0x530d4c['plugins']['get']('TrackChangesEditing'),_0x146025=_0x530d4c['plugins']['get']('CommentsRepository');for(const _0x5bef21 of _0x5e9efe)_0x23ea3f['getUser'](_0x5bef21['id'])||_0x23ea3f['addUser'](_0x5bef21);_0x23ea3f['me']||_0x23ea3f['useAnonymousUser']();for(const _0x43e5b3 of _0x21198e)_0x146025['addCommentThread'](_0x43e5b3);for(const _0x207b4 of _0x3d80a9)_0x5037f5['addSuggestionData'](_0x207b4);_0x530d4c['data']['set'](_0x23d4de);}(_0x428f59,_0xe32781),_0xe32781['execute'](_0x4eee09?'acceptAllSuggestions':'discardAllSuggestions');const _0x4815a4=v(_0xe32781)?_0xe32781['getFullData'](_0x116487):_0xe32781['data']['get'](_0x116487);return await _0xe32781['destroy'](),_0x4815a4;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|