@ckeditor/ckeditor5-track-changes 43.0.0-alpha.5 → 43.0.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.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/trackchangesconfig.d.ts +7 -0
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/ui/suggestioncontroller.d.ts +1 -1
- package/dist/ui/view/basesuggestionthreadview.d.ts +8 -2
- package/dist/ui/view/suggestionthreadview.d.ts +42 -137
- package/dist/ui/view/suggestionview.d.ts +194 -0
- package/package.json +10 -10
- 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.d.ts +1 -0
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesconfig.d.ts +7 -0
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.d.ts +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.d.ts +8 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.d.ts +42 -137
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.d.ts +190 -0
- package/src/ui/view/suggestionview.js +23 -0
- 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
|
-
_0x13b011(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xb3fddb,_0x5869af){super(),this['id']=_0x5869af['id'],this['type']=_0x5869af['type'],this['subType']=_0x5869af['subType']||null,this['author']=_0x5869af['author'],this['creator']=_0x5869af['creator']||_0x5869af['author'],this['isExternal']=Boolean(_0x5869af['attributes']&&_0x5869af['attributes']['@external']),this['data']=null,this['_model']=_0xb3fddb,this['_onAccept']=_0x5869af['onAccept'],this['_onDiscard']=_0x5869af['onDiscard'],this['_onAttributesChange']=_0x5869af['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5869af['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 _0x3928eb=this;for(;_0x3928eb['previous'];)_0x3928eb=_0x3928eb['previous'];return _0x3928eb;}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'](_0x5c0bc2){this['_markerNames']['add'](_0x5c0bc2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x11508e=>this['_model']['markers']['get'](_0x11508e))['filter'](_0x3eff18=>_0x3eff18);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x41c3ad=>{for(const _0x6f2403 of this['getMarkers']())_0x41c3ad['removeMarker'](_0x6f2403);}),this['_markerNames']['clear']();}['removeMarker'](_0x1c731d){this['_model']['change'](_0x531579=>{_0x531579['removeMarker'](_0x1c731d);}),this['_markerNames']['delete'](_0x1c731d);}['addRange'](_0x22e304){const _0x59d658='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x59d658),this['_model']['change'](_0x1ba5b0=>{_0x1ba5b0['addMarker'](_0x59d658,{'range':_0x22e304,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xc0aca9){for(const _0x38a756 of this['getRanges']())if(_0x38a756['isIntersecting'](_0xc0aca9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4c8479=>_0x4c8479['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4231e0,_0x3c875f)=>[..._0x4231e0,..._0x3c875f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x17a616=this['getRanges']();if(0x1!=_0x17a616['length'])return null;const _0x800e68=_0x17a616[0x0],_0x496cfa=_0x800e68['start']['nodeAfter'],_0x42c7e2=_0x800e68['end']['nodeBefore'];return _0x496cfa instanceof _0x4320f2?_0x496cfa!=_0x42c7e2?null:_0x496cfa: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 _0x5cc24a=[];let _0x504a58=this['head'];for(;_0x504a58;)_0x5cc24a['push'](_0x504a58),_0x504a58=_0x504a58['next'];return _0x5cc24a;}['setAttribute'](_0x283433,_0x3b9fb5){const _0x375744=_0x17a888(this['attributes']);_0x1eb5b2(_0x375744,_0x283433,_0x3b9fb5),_0x49fb27(_0x375744,this['attributes'])||(this['attributes']=_0x375744,this['_onAttributesChange'](_0x375744));}['removeAttribute'](_0x71b03a){const _0x338cb1=_0x17a888(this['attributes']);_0x27b5b4(_0x338cb1,_0x71b03a),_0x49fb27(_0x338cb1,this['attributes'])||(this['attributes']=_0x338cb1,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 _0x49822d()['substr'](0x1,0x5);}}function o(_0x55702c,_0x353d94,_0x3b255b){const t=_0x55702c['t'];switch(_0x353d94){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',_0x3b255b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3b255b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3b255b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3b255b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3b255b);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',_0x3b255b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3b255b);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',_0x3b255b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3b255b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3b255b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3b255b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3b255b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3b255b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3b255b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3b255b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3b255b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3b255b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3b255b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3b255b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3b255b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3b255b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3b255b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3b255b);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'},_0x3b255b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3b255b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3b255b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3b255b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3b255b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3b255b);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'},_0x3b255b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3b255b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3b255b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3b255b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3b255b);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'},_0x3b255b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3b255b);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'},_0x3b255b);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'},_0x3b255b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3b255b);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'},_0x3b255b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3b255b);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'},_0x3b255b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3b255b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3b255b);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x3b255b);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'},_0x3b255b);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'},_0x3b255b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3b255b);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x3b255b);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x3b255b);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x3b255b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x353d94;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x312a6e,_0x40d027){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x312a6e,this['_locale']=_0x40d027;}['getDescriptions'](_0x432914){const _0x436f92=[],_0x5d4609=new Set(),_0x10265b=new Set();for(let _0x5c08bd=0x0;_0x5c08bd<_0x432914['length'];_0x5c08bd++){const _0x469222=_0x432914[_0x5c08bd];if(!_0x469222['isInContent'])continue;const _0x946875=this['_handleCustomCallbackDescription'](_0x469222);if(_0x946875){if(null!=_0x469222['subType']){if(_0x5d4609['has'](_0x469222['subType']))continue;_0x5d4609['add'](_0x469222['subType']);}_0x436f92['push'](_0x946875);}else{if('attribute'!=_0x469222['type'])'insertion'!=_0x469222['type']&&'deletion'!=_0x469222['type']||this['_handleInsertRemoveSuggestionDescription'](_0x436f92,_0x469222,_0x432914[_0x5c08bd+0x1]);else{const _0x38e794=_0x469222['data']['key'];if(_0x10265b['has'](_0x38e794))continue;_0x10265b['add'](_0x469222['data']['key']),_0x38e794==m?this['_handleRenameSuggestionDescription'](_0x436f92,_0x469222):this['_handleAttributeSuggestionDescription'](_0x436f92,_0x469222);}}}return this['_resolveDescriptionItems'](_0x436f92);}['registerDescriptionCallback'](_0x2369e3){this['_customCallbacks']['push'](_0x2369e3);}['registerElementLabel'](_0x33e8db,_0x37a6f7,_0x235728=_0x504bb7['normal']){'function'==typeof _0x33e8db?_0x5c7ba4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x33e8db,'label':_0x37a6f7,'priority':_0x235728}):this['_itemLabels']['set'](_0x33e8db,_0x37a6f7);}['registerAttributeLabel'](_0x13d5f3,_0x1f30cd){this['_attributeLabels']['set'](_0x13d5f3,_0x1f30cd);}['getItemLabel'](_0x27a7ce,_0x1d1082=0x1){let _0x910ae8;for(const _0x1123fc of this['_itemLabelsCallbacks'])if(_0x1123fc['matchingCallback'](_0x27a7ce)){_0x910ae8=_0x1123fc['label'];break;}return _0x910ae8||(_0x910ae8=this['_itemLabels']['get'](_0x27a7ce['name'])),_0x910ae8?_0x910ae8(_0x1d1082):0x1!==_0x1d1082?_0x1d1082+'\x20'+_0x27a7ce['name']+'s':''+_0x27a7ce['name'];}['_addDescriptionItems'](_0x38c812,_0xe6f184){const _0x3089db=_0xe6f184['getFirstRange']()['getWalker'](),_0x3d98f4='insertion'==_0xe6f184['type']?'add':'remove';for(const _0x2a7d1f of _0x3089db){const _0x195510=_0x2a7d1f['item'],_0x1b86e1=_0x38c812[_0x38c812['length']-0x1];if(_0x195510['is']('$textProxy'))_0x1b86e1&&_0x1b86e1['type']['indexOf']('Container')>-0x1&&_0x38c812['pop'](),_0x1b86e1&&'text'==_0x1b86e1['type']?_0x1b86e1[_0x3d98f4]+=_0x195510['data']:_0x38c812['push']({'type':'text','add':'add'==_0x3d98f4?_0x195510['data']:'','remove':'remove'==_0x3d98f4?_0x195510['data']:''});else{if(this['_schema']['isObject'](_0x195510)){const _0x4ab7c8=_0x195510;if(_0x1b86e1&&_0x1b86e1['type']['indexOf']('Container')>-0x1&&_0x38c812['pop'](),'elementEnd'==_0x2a7d1f['type'])continue;_0x1b86e1&&_0x1b86e1['type']==_0x3d98f4+'Object'&&_0x1b86e1['element']['name']==_0x4ab7c8['name']?_0x1b86e1['quantity']++:_0x38c812['push']({'type':_0x3d98f4+'Object','element':_0x4ab7c8,'quantity':0x1}),_0x3089db['skip'](_0x3678bd=>!('elementEnd'==_0x3678bd['type']&&_0x3678bd['item']==_0x195510));}else{if(this['_schema']['checkChild'](_0x195510,'$text')||_0x195510['is']('element','softBreak')){const _0x1a0ef6=_0x195510;if('add'==_0x3d98f4&&'elementStart'==_0x2a7d1f['type']||'remove'==_0x3d98f4&&'elementEnd'==_0x2a7d1f['type'])continue;if(_0x1b86e1&&-0x1==_0x1b86e1['type']['indexOf']('Container')){'text'==_0x1b86e1['type']&&(_0x1b86e1[_0x3d98f4]+='\x0a');continue;}let _0x24fe79;if(_0x24fe79='add'==_0x3d98f4?_0x1a0ef6['nextSibling']&&!this['_schema']['isObject'](_0x1a0ef6['nextSibling'])?_0x1a0ef6['nextSibling']:null:_0x1a0ef6['previousSibling']&&!this['_schema']['isObject'](_0x1a0ef6['previousSibling'])?_0x1a0ef6['previousSibling']:null,_0x1a0ef6['isEmpty']||_0x24fe79&&_0x24fe79['isEmpty']){const _0x805573=_0x24fe79&&_0x24fe79['isEmpty']?_0x24fe79:_0x1a0ef6;_0x1b86e1&&_0x1b86e1['type']==_0x3d98f4+'EmptyContainer'&&_0x1b86e1['element']['name']==_0x805573['name']?_0x1b86e1['quantity']++:_0x38c812['push']({'type':_0x3d98f4+'EmptyContainer','element':_0x805573,'quantity':0x1});}else _0x38c812['push']({'type':_0x3d98f4+'Container','element':_0x1a0ef6});}}}}}['_resolveDescriptionItems'](_0x51864b){const _0x30a99a=this['_locale'],_0x40f5f2=[],_0x2f3f93=[],_0x3569f6=[];for(const _0x557abd of _0x51864b)switch(_0x557abd['type']){case'text':if(_0x557abd['add']=_0x557abd['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x557abd['remove']=_0x557abd['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x557abd['add']&&''!=_0x557abd['remove']){_0x40f5f2['push']({'type':'replace','content':o(_0x30a99a,'REPLACE_TEXT',['\x22'+_0x557abd['remove']+'\x22','\x22'+_0x557abd['add']+'\x22'])});continue;}if(null!=_0x557abd['add']['match'](/^ +$/)){_0x40f5f2['push']({'type':'insertion','content':o(_0x30a99a,'*Insert:*\x20%0',o(_0x30a99a,'ELEMENT_SPACE',_0x557abd['add']['length']))});continue;}if(null!=_0x557abd['remove']['match'](/^ +$/)){_0x40f5f2['push']({'type':'deletion','content':o(_0x30a99a,'*Remove:*\x20%0',o(_0x30a99a,'ELEMENT_SPACE',_0x557abd['remove']['length']))});continue;}if(''!=_0x557abd['add']){_0x40f5f2['push']({'type':'insertion','content':o(_0x30a99a,'*Insert:*\x20%0','\x22'+_0x557abd['add']+'\x22')});continue;}_0x40f5f2['push']({'type':'deletion','content':o(_0x30a99a,'*Remove:*\x20%0','\x22'+_0x557abd['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x40f5f2['push']({'type':'insertion','content':o(_0x30a99a,'*Insert:*\x20%0',this['getItemLabel'](_0x557abd['element'],_0x557abd['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x40f5f2['push']({'type':'deletion','content':o(_0x30a99a,'*Remove:*\x20%0',this['getItemLabel'](_0x557abd['element'],_0x557abd['quantity']))});continue;case'addContainer':_0x40f5f2['push']({'type':'insertion','content':o(_0x30a99a,'*Split:*\x20%0',this['getItemLabel'](_0x557abd['element'],_0x557abd['quantity']))});continue;case'removeContainer':_0x40f5f2['push']({'type':'deletion','content':o(_0x30a99a,'*Merge:*\x20%0',this['getItemLabel'](_0x557abd['element'],_0x557abd['quantity']))});continue;case'addFormat':_0x2f3f93['push'](_0x557abd['key']);continue;case'removeFormat':_0x3569f6['push'](_0x557abd['key']);continue;default:_0x40f5f2['push'](_0x557abd);}if(_0x2f3f93['length']){const _0x476431=_0x2f3f93['map'](_0x2dced0=>this['_attributeLabels']['has'](_0x2dced0)?this['_attributeLabels']['get'](_0x2dced0):_0x2dced0)['join'](',\x20');_0x40f5f2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x476431)});}if(_0x3569f6['length']){const _0x40bb6b=_0x3569f6['map'](_0x5077f7=>this['_attributeLabels']['has'](_0x5077f7)?this['_attributeLabels']['get'](_0x5077f7):_0x5077f7)['join'](',\x20');_0x40f5f2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x40bb6b)});}return _0x40f5f2;}['_handleCustomCallbackDescription'](_0xf220d5){for(const _0x5af612 of this['_customCallbacks']){const _0x357631=_0x5af612(_0xf220d5);if(_0x357631&&'type'in _0x357631)return _0x357631;}}['_handleAttributeSuggestionDescription'](_0x560d0d,_0x59e731){const _0x5280a7=_0x59e731['data'],_0xc3fe68=void 0x0===_0x5280a7['newValue']?'removeFormat':'addFormat';_0x560d0d['push']({'type':_0xc3fe68,'key':_0x5280a7['key']});}['_handleRenameSuggestionDescription'](_0x5d029d,_0x20a7fe){_0x5d029d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x20a7fe['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3d546d,_0x5423b7,_0x184527){if(this['_addDescriptionItems'](_0x3d546d,_0x5423b7),_0x184527&&_0x184527['getFirstRange']()&&!_0x5423b7['getFirstRange']()['end']['isEqual'](_0x184527['getFirstRange']()['start'])){const _0x39ff1a=_0x3d546d[_0x3d546d['length']-0x1],_0x5012e0='insertion'==_0x5423b7['type']?'add':'remove';_0x39ff1a&&'text'==_0x39ff1a['type']&&(_0x39ff1a[_0x5012e0]+='\x0a');}}}class V extends _0x266c89{['afterInit'](){const _0x493d15=this['editor'],_0x226f73=_0x493d15['plugins']['get']('TrackChangesEditing');_0x493d15['commands']['get']('showAIAssistant')&&_0x226f73['enableCommand']('showAIAssistant');}}class U extends _0x266c89{['afterInit'](){const _0x5c7b27=this['editor'],_0x4eb3da=_0x5c7b27['locale'];if(!_0x5c7b27['plugins']['has']('AlignmentEditing'))return;const _0x19056d=_0x5c7b27['plugins']['get']('TrackChangesEditing');_0x19056d['enableDefaultAttributesIntegration']('alignment'),_0x19056d['registerBlockAttribute']('alignment'),_0x19056d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4eb3da,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cd659=this['editor'],_0x353a97=_0x5cd659['locale'];_0x5cd659['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c3729=>{if('formatBlock'!=_0x3c3729['type'])return;const {data:_0x395fa1}=_0x3c3729;if(_0x395fa1&&'alignment'==_0x395fa1['commandName']){const _0x5ab2a0=_0x395fa1['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x353a97,'*Format:*\x20%0',function(_0x496418){switch(_0x496418){case'left':return o(_0x353a97,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x353a97,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x353a97,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x353a97,'FORMAT_JUSTIFY_TEXT');}}(_0x5ab2a0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x266c89{['afterInit'](){const _0x275624=this['editor'],_0x1efafe=_0x275624['plugins']['get']('TrackChangesEditing'),_0x2a74a2=_0x275624['locale'];for(const _0x2f17e2 of ti){if(!_0x275624['plugins']['has'](_0x2f17e2))continue;const _0x5b80c0=_0x2f17e2['slice'](0x0,-0x7)['toLowerCase'](),_0x589499='FORMAT_'+_0x5b80c0['toUpperCase']();_0x1efafe['enableDefaultAttributesIntegration'](_0x5b80c0),_0x1efafe['registerInlineAttribute'](_0x5b80c0),_0x1efafe['descriptionFactory']['registerAttributeLabel'](_0x5b80c0,o(_0x2a74a2,_0x589499));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ffd9b=this['editor'],_0x4e9cc1=_0x4ffd9b['locale'],_0x16a43a=_0x4ffd9b['plugins']['get']('TrackChangesEditing');function _0x15e9e3(_0x7d0dbf,_0x3e9d8f){_0x16a43a['descriptionFactory']['registerDescriptionCallback'](_0x244898=>{if('formatInline'!=_0x244898['type'])return;const {data:_0x252751}=_0x244898;return _0x252751&&_0x252751['commandName']===_0x7d0dbf?_0x252751['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e9cc1,'*Format:*\x20%0',_0x3e9d8f)}:{'type':'format','content':o(_0x4e9cc1,'*Remove\x20format:*\x20%0',_0x3e9d8f)}:void 0x0;});}_0x15e9e3('bold',o(_0x4e9cc1,'FORMAT_BOLD')),_0x15e9e3('italic',o(_0x4e9cc1,'FORMAT_ITALIC')),_0x15e9e3('underline',o(_0x4e9cc1,'FORMAT_UNDERLINE')),_0x15e9e3('code',o(_0x4e9cc1,'FORMAT_CODE')),_0x15e9e3('strikethrough',o(_0x4e9cc1,'FORMAT_STRIKETHROUGH')),_0x15e9e3('subscript',o(_0x4e9cc1,'FORMAT_SUBSCRIPT')),_0x15e9e3('superscript',o(_0x4e9cc1,'FORMAT_SUPERSCRIPT'));}}class F extends _0x266c89{['afterInit'](){const _0x1c6c9f=this['editor'],_0x4392c2=_0x1c6c9f['locale'];if(!_0x1c6c9f['plugins']['has']('BlockQuoteEditing'))return;const _0x5e8435=_0x1c6c9f['plugins']['get']('TrackChangesEditing'),_0x129049=this['editor']['commands']['get']('blockQuote');_0x5e8435['enableCommand']('blockQuote',(_0x3398d3,_0x41f7db={})=>{const _0x3240cd=this['editor']['model']['document']['selection'],_0x126f0b=_0x41f7db&&void 0x0!==_0x41f7db['forceValue']?_0x41f7db['forceValue']:!_0x129049['value'];let _0xb8f6d9=[];if(_0x126f0b){const _0x3630c0=Array['from'](_0x3240cd['getSelectedBlocks']())['filter'](_0x43a252=>oo(_0x43a252)||function(_0x402b2f,_0x667795){const _0x4cc966=_0x667795['checkChild'](_0x402b2f['parent'],'blockQuote'),_0x2e7989=_0x667795['checkChild'](['$root','blockQuote'],_0x402b2f);return _0x4cc966&&_0x2e7989;}(_0x43a252,this['editor']['model']['schema']));_0xb8f6d9=to(_0x3630c0,_0x1c6c9f['model']);}else{const _0x3f26da=Array['from'](_0x3240cd['getSelectedBlocks']())['filter'](_0x1a72e8=>oo(_0x1a72e8));_0xb8f6d9=to(_0x3f26da,_0x1c6c9f['model']);}_0x1c6c9f['model']['change'](()=>{for(const _0x1a95d8 of _0xb8f6d9)_0x5e8435['markBlockFormat'](_0x1a95d8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x126f0b}]});});}),_0x5e8435['descriptionFactory']['registerDescriptionCallback'](_0x4714a9=>{const {data:_0x4b9c4a}=_0x4714a9;if(_0x4b9c4a&&'blockQuote'==_0x4b9c4a['commandName']){const _0x45f3a9=o(_0x4392c2,'ELEMENT_BLOCK_QUOTE');return _0x4b9c4a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4392c2,'*Set\x20format:*\x20%0',_0x45f3a9)}:{'type':'format','content':o(_0x4392c2,'*Remove\x20format:*\x20%0',_0x45f3a9)};}});}}function oo(_0x1c82e8){return'blockQuote'==_0x1c82e8['parent']['name'];}class L extends _0x266c89{['afterInit'](){const _0x326cbd=this['editor'];_0x326cbd['plugins']['has']('CaseChange')&&(_0x326cbd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x326cbd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x326cbd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x266c89{['afterInit'](){const _0x3b718a=this['editor'];_0x3b718a['commands']['get']('ckbox')&&_0x3b718a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x266c89{['afterInit'](){const _0x588e21=this['editor'];if(!_0x588e21['plugins']['has']('CodeBlock'))return;const _0x59cf0f=_0x588e21['plugins']['get']('TrackChangesEditing'),_0x4a83d3=_0x588e21['locale'],_0x43fcb0=_0x588e21['config']['get']('codeBlock')['languages'],_0x3ab7f0=_0x588e21['commands']['get']('codeBlock');_0x59cf0f['enableCommand']('indentCodeBlock'),_0x59cf0f['enableCommand']('outdentCodeBlock'),_0x59cf0f['enableCommand']('codeBlock',(_0x52619c,_0x2c8de={})=>{const _0xdbe6fd=_0x588e21['model'],_0xdea977=_0x588e21['model']['document']['selection'],_0x1e456a=_0x2c8de&&void 0x0!==_0x2c8de['forceValue']?_0x2c8de['forceValue']:!_0x3ab7f0['value'];let _0x7d219a;_0x2c8de['language']||(_0x2c8de['language']=_0x43fcb0[0x0]['language']),_0x7d219a=_0x1e456a?Array['from'](_0xdea977['getSelectedBlocks']())['filter'](_0x48c874=>eo(_0x48c874)||function(_0x239e33,_0x3b9baf){if(_0x239e33['is']('rootElement')||_0x3b9baf['isLimit'](_0x239e33))return!0x1;return _0x3b9baf['checkChild'](_0x239e33['parent'],'codeBlock');}(_0x48c874,_0xdbe6fd['schema'])):Array['from'](_0xdea977['getSelectedBlocks']())['filter'](_0x28b283=>eo(_0x28b283));const _0x38f0ed=to(_0x7d219a,_0xdbe6fd);_0xdbe6fd['change'](()=>{for(const _0x40c5f5 of _0x38f0ed)_0x59cf0f['markBlockFormat'](_0x40c5f5,{'commandName':'codeBlock','commandParams':[{..._0x2c8de,'forceValue':_0x1e456a}],'formatGroupId':'blockName'});});}),(_0x59cf0f['descriptionFactory']['registerElementLabel']('codeBlock',_0x445842=>o(_0x4a83d3,'ELEMENT_CODE_BLOCK',_0x445842)),_0x59cf0f['descriptionFactory']['registerDescriptionCallback'](_0x4bd8ad=>{if('formatBlock'!=_0x4bd8ad['type'])return;const _0x2f374a=_0x4a83d3['t'],{data:_0x1fbfda}=_0x4bd8ad;if(!_0x1fbfda||'codeBlock'!=_0x1fbfda['commandName'])return;const _0x4b5967=_0x1fbfda['commandParams'][0x0]['language'],_0x2adcf5=_0x2f374a(_0x43fcb0['find'](_0x52d3e2=>_0x52d3e2['language']===_0x4b5967)['label'])['toLowerCase']();return _0x1fbfda['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a83d3,'*Set\x20format:*\x20%0',o(_0x4a83d3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2adcf5+')')}:{'type':'format','content':o(_0x4a83d3,'*Remove\x20format:*\x20%0',o(_0x4a83d3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x542fd4){return'codeBlock'==_0x542fd4['name'];}class q extends _0x266c89{['afterInit'](){const _0x4380e4=this['editor'];if(!_0x4380e4['plugins']['has']('CommentsEditing'))return;_0x4380e4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xdbd481,_0x197ebc,_0x3b5ce3){const _0x51c6ad=[];for(const _0x2dfa13 of _0x197ebc['getItems']())_0x2dfa13['hasAttribute'](_0xdbd481)&&_0x51c6ad['push'](_0x3b5ce3['createRangeOn'](_0x2dfa13));return _0x51c6ad;}function _e(_0x2f29ea,_0x341376,{showActiveMarker:_0xc21aa0=!0x0}={}){const _0x3211b8=_0x2f29ea['plugins']['get']('TrackChangesEditing');return(_0x179524,_0x17944e,_0x4b5c67)=>{if(!_0x4b5c67['consumable']['test'](_0x17944e['markerRange'],_0x179524['name']))return;const _0x3cc991=_0x17944e['markerRange']['getWalker'](),_0x3c76d5=_0x17944e['markerRange']['start'],_0xe3d656=_0x2f29ea['model']['schema'];let _0x318f44=null,_0x40a7d9=null,_0x265803=!0x1,_0x374057=!0x1;for(const _0x264286 of _0x3cc991){const _0x506a69=_0x264286['item'];_0x265803=_0x265803||_0xe3d656['isContent'](_0x506a69);const _0x2159e7=_0x4b5c67['mapper']['toViewElement'](_0x506a69);if(_0x2159e7&&_0x2159e7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x264286['type']&&(_0xe3d656['isBlock'](_0x506a69)&&!_0xe3d656['isLimit'](_0x506a69)&&(_0x506a69['nextSibling']||_0x3c76d5['isAtEnd']?_0x318f44&&_0x318f44['parent']==_0x506a69||(_0x318f44=_0x506a69,_0x156a0e(_0x264286['previousPosition']),_0x374057=!0x0):_0x40a7d9=_0x40a7d9||_0x264286['previousPosition']));}function _0x156a0e(_0x5d670d){const _0x218ed8=_0x4b5c67['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x341376}),_0x4607cc=_0x4b5c67['mapper']['toViewPosition'](_0x5d670d);_0xc21aa0&&_0x3211b8['activeMarkers']['includes'](_0x17944e['markerName'])&&_0x4b5c67['writer']['addClass']('ck-suggestion-marker--active',_0x218ed8),_0x4b5c67['writer']['insert'](_0x4607cc,_0x218ed8),_0x4b5c67['mapper']['bindElementToMarker'](_0x218ed8,_0x17944e['markerName']);}_0x265803||_0x374057||!_0x40a7d9||_0x156a0e(_0x40a7d9);};}class z extends _0x266c89{static get['requires'](){return[_0x231f45];}['init'](){const _0x10c1fa=this['editor'],_0x38c6cc=_0x10c1fa['plugins']['get']('TrackChangesEditing');_0x38c6cc['enableCommand']('delete');const _0xa723bc=_0x10c1fa['commands']['get']('deleteForward');_0x38c6cc['enableCommand']('deleteForward',(_0x1df755,_0x567949={})=>{const _0x3d751a=_0x10c1fa['model']['createSelection'](_0x10c1fa['model']['document']['selection']);_0x3d751a['isCollapsed']&&_0x10c1fa['model']['modifySelection'](_0x3d751a,{'direction':'forward','unit':_0x567949['unit']});const _0x46b3b9=_0x3d751a['getFirstRange'](),_0x75bb9f=_0x542340['fromRange'](_0x46b3b9);let _0x5123a5;_0x1df755(_0x567949),_0x5123a5='$graveyard'==_0x75bb9f['root']['rootName']?_0x10c1fa['model']['createRange'](_0x46b3b9['start']):_0x10c1fa['model']['createRange'](_0x75bb9f['start'],_0x75bb9f['end']),_0x75bb9f['detach'](),_0x10c1fa['model']['enqueueChange'](_0xa723bc['buffer']['batch'],_0x51f01e=>{_0xa723bc['buffer']['lock'](),_0x51f01e['setSelection'](_0x51f01e['createRange'](_0x5123a5['end'])),_0xa723bc['buffer']['unlock']();});}),_0x10c1fa['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x10c1fa,'merge'),{'priority':'high'}),_0x10c1fa['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2c9cbc,_0x623fde,_0x17de13)=>{_0x17de13['options']['showSuggestionHighlights']&&_e(_0x10c1fa,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2c9cbc,_0x623fde,_0x17de13);},{'priority':'high'}),_0x10c1fa['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x55b16b,_0x5ae9a5,_0x5e8e48)=>{const _0x14ed94=_0x5e8e48['mapper']['markerNameToElements'](_0x5ae9a5['markerName']);if(_0x14ed94){for(const _0x55dd07 of _0x14ed94)_0x55dd07['is']('uiElement')&&(_0x5e8e48['mapper']['unbindElementFromMarkerName'](_0x55dd07,_0x5ae9a5['markerName']),_0x5e8e48['writer']['remove'](_0x55dd07));}},{'priority':'high'});}}class K extends _0x266c89{['afterInit'](){const _0x206ca3=this['editor'];if(!_0x206ca3['plugins']['has']('ListEditing'))return;const _0x8b36cc=_0x206ca3['locale'],_0x45b52f=_0x206ca3['plugins']['get']('TrackChangesEditing'),_0x5cafa2=_0x206ca3['plugins']['has']('TodoListEditing'),_0x3d123d=!!_0x206ca3['config']['get']('list.multiBlock');function _0x2edfd3(_0x5aa604){return{'type':'format','content':''+o(_0x8b36cc,'*Set\x20format:*\x20%0',_0x5aa604)};}function _0x3dae71(_0x4e57d4){return{'type':'format','content':''+o(_0x8b36cc,'*Remove\x20format:*\x20%0',_0x4e57d4)};}_0x45b52f['enableDefaultAttributesIntegration']('numberedList'),_0x45b52f['enableDefaultAttributesIntegration']('bulletedList'),_0x45b52f['enableDefaultAttributesIntegration']('customNumberedList'),_0x45b52f['enableDefaultAttributesIntegration']('customBulletedList'),_0x45b52f['enableDefaultAttributesIntegration']('indentList'),_0x45b52f['enableDefaultAttributesIntegration']('outdentList'),_0x45b52f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x45b52f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x45b52f['registerBlockAttribute']('listItemId'),_0x45b52f['registerBlockAttribute']('listType'),_0x45b52f['registerBlockAttribute']('listIndent'),_0x3d123d&&(_0x45b52f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x45b52f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5cafa2&&(_0x45b52f['enableDefaultAttributesIntegration']('todoList'),_0x45b52f['enableDefaultAttributesIntegration']('checkTodoList'),_0x45b52f['registerBlockAttribute']('todoListChecked'),_0x45b52f['descriptionFactory']['registerDescriptionCallback'](_0x4e68d3=>{const {data:_0x19d9c1}=_0x4e68d3;if(_0x19d9c1&&'todoListChecked'==_0x19d9c1['key'])return{'type':'format','content':_0x19d9c1['newValue']?o(_0x8b36cc,'*Check\x20item*'):o(_0x8b36cc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x94eb6=>{if(_0x94eb6['batch']['isUndo'])return!0x1;let _0x505b6a=!0x1;const _0x4fd00d=_0x45b52f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2010d4=>'todoListChecked'===_0x45b52f['_getAttributeKey'](_0x2010d4));for(const _0x5e4e9a of _0x4fd00d){'todo'!=_0x5e4e9a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x45b52f['_findSuggestions'](_0x5e4e9a['getFirstRange'](),'attribute')['find'](_0x2f19d2=>'listType'===_0x45b52f['_getAttributeKey'](_0x2f19d2['suggestion']))||(_0x94eb6['removeMarker'](_0x5e4e9a['getFirstMarker']()),_0x505b6a=!0x0));}return _0x505b6a;})),_0x45b52f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x8b36cc,'FORMAT_INDENT'));const _0x11d738={'type':'format','content':''};_0x45b52f['descriptionFactory']['registerDescriptionCallback'](_0x30c768=>{const {data:_0x1fe2bf}=_0x30c768;if(!_0x1fe2bf||'listType'!=_0x1fe2bf['key'])return;let _0x54dcbd=_0x30c768['head'];for(;_0x54dcbd;){if(_0x54dcbd['data']&&(('listStyle'==_0x54dcbd['data']['key']||'listMarkerStyle'==_0x54dcbd['data']['key'])&&(_0x54dcbd['data']['newValue']&&'default'!=_0x54dcbd['data']['newValue']||'default'!=_0x54dcbd['data']['oldValue']&&!_0x1fe2bf['newValue'])||!_0x3d123d&&_0x54dcbd['data']['key']==m))return _0x11d738;_0x54dcbd=_0x54dcbd['next'];}if(null==_0x1fe2bf['newValue'])switch(_0x1fe2bf['oldValue']){case'bulleted':return _0x3dae71(o(_0x8b36cc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3dae71(o(_0x8b36cc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3dae71(o(_0x8b36cc,'ELEMENT_TODO_LIST'));}switch(_0x1fe2bf['newValue']){case'bulleted':return _0x2edfd3(o(_0x8b36cc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2edfd3(o(_0x8b36cc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2edfd3(o(_0x8b36cc,'ELEMENT_TODO_LIST'));}}),_0x45b52f['descriptionFactory']['registerDescriptionCallback'](_0x14c074=>{const {data:_0x239257}=_0x14c074;if(_0x239257&&'listIndent'==_0x239257['key'])return null==_0x239257['newValue']||null==_0x239257['oldValue']&&0x0==_0x239257['newValue']?_0x11d738:void 0x0;}),_0x45b52f['descriptionFactory']['registerDescriptionCallback'](_0xe1bea2=>{if('attribute'!=_0xe1bea2['type'])return;const {data:_0x3cb003}=_0xe1bea2;if(!_0x3cb003||'listItemId'!=_0x3cb003['key'])return;const _0x3915ac=le(_0xe1bea2);return'newValue'==_0x3915ac?{'type':'format','content':o(_0x8b36cc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3915ac?{'type':'format','content':o(_0x8b36cc,'*Split:*\x20list\x20item')}:_0x11d738;}),_0x206ca3['model']['document']['registerPostFixer'](_0x41afb8=>this['listItemIdFixer'](_0x41afb8)),_0x206ca3['model']['document']['registerPostFixer'](_0x48b475=>this['noTrackChangesFixer'](_0x48b475)),_0x206ca3['model']['document']['on']('change:data',(_0x1a9f43,_0x2697a2)=>{if(_0x2697a2['isUndo']||!_0x2697a2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2faa14){if(_0x2faa14['batch']['isUndo']||!_0x2faa14['batch']['isLocal'])return!0x1;let _0x1263d5=!0x1;const _0x58544a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ecd21=>_0x2ecd21['data']&&'listItemId'==_0x2ecd21['data']['key'])['filter'](_0x11d9d1=>_0x11d9d1['data']['newValue']&&_0x11d9d1['data']['oldValue']);for(const _0x1f550f of _0x58544a)le(_0x1f550f)||(_0x2faa14['removeMarker'](_0x1f550f['getFirstMarker']()),_0x1263d5=!0x0);return _0x1263d5;}['noTrackChangesFixer'](_0x1cefae){if(_0x1cefae['batch']['isUndo']||!_0x1cefae['batch']['isLocal'])return!0x1;const _0x4699c1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4699c1['trackChangesCommand']['value'])return!0x1;let _0x1ee56c=!0x1;const _0x1fcddc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5a5e01=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x43bab3=>'attribute'==_0x43bab3['type'])['filter'](_0x400e74=>_0x1fcddc['includes'](_0x400e74['attributeKey']));if(0x0==_0x5a5e01['length'])return _0x1ee56c;for(const _0x34884f of _0x5a5e01){const _0x4b5339=_0x4699c1['_findSuggestions'](_0x34884f['range'],'attribute')['filter'](_0x1735db=>!_0x1735db['meta']['isNextTo'])['map'](_0x45f920=>_0x45f920['suggestion'])['filter'](_0x269712=>{const _0x35f46a=_0x4699c1['_getAttributeKey'](_0x269712);return _0x1fcddc['includes'](_0x35f46a);});if(_0x4b5339['length']){for(const _0x4be63e of _0x4b5339)_0x1cefae['removeMarker'](_0x4be63e['getFirstMarker']());_0x1ee56c=!0x0;}}return _0x1ee56c;}['assureChains'](){const _0x502afc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x531d52=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4a40e3;const _0x7d6294=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11d7ba=>{if(_0x11d7ba['data']['oldRange']||!_0x11d7ba['data']['newRange'])return null;if(!_0x11d7ba['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x43ad47}=_0x502afc['_splitMarkerName'](_0x11d7ba['name']);if(!_0x502afc['hasSuggestion'](_0x43ad47))return null;const _0x38193f=_0x502afc['getSuggestion'](_0x43ad47);return _0x531d52['includes'](_0x38193f['data']['key']);})['map'](_0x338925=>{const {id:_0x18e315}=_0x502afc['_splitMarkerName'](_0x338925['name']),_0x1e4a8a=_0x502afc['getSuggestion'](_0x18e315);return _0x4a40e3=_0x1e4a8a['attributes']['groupId'],_0x1e4a8a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x7d6294['size'])return;const _0x34ed67=_0x502afc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3366a9=>'attribute'==_0x3366a9['type']&&_0x3366a9['data']&&_0x531d52['includes'](_0x3366a9['data']['key'])&&_0x3366a9['attributes']['groupId']!=_0x4a40e3)['map'](_0xcbedbd=>({'listItem':_0xcbedbd['getFirstRange']()['start']['nodeAfter'],'groupId':_0xcbedbd['attributes']['groupId']})),_0x54ac36=new Set();for(const {groupId:_0x1cfe3d,listItem:_0x176e4f}of _0x34ed67)_0x7d6294['has'](_0x176e4f)&&_0x54ac36['add'](_0x1cfe3d);for(const _0x2ce115 of _0x502afc['getSuggestions']())_0x54ac36['has'](_0x2ce115['attributes']['groupId'])&&_0x2ce115['setAttribute']('groupId',_0x4a40e3);}['_supportLegacySuggestions'](){const _0x1b8430=this['editor'],_0x1b1809=_0x1b8430['locale'],_0xb2dc05=_0x1b8430['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xb2dc05['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5d1a2b,_0xfebb9c){const _0x3a841a=[];for(let _0xb051 of _0x5d1a2b)_0xb051['start']['nodeAfter']===_0xb051['end']['parent']&&(_0xb051=_0x1b8430['model']['createRange'](_0x1b8430['model']['createPositionAt'](_0xb051['start']['nodeAfter'],0x0))),_0x3a841a['push'](_0xb051);_0x1b8430['model']['change'](_0x4e9f2a=>{const _0x46f1f9=_0x1b8430['model']['document']['selection'],_0x25499c=Array['from'](_0x46f1f9['getRanges']())['map'](_0x57ee16=>_0x542340['fromRange'](_0x57ee16));_0x4e9f2a['setSelection'](_0x3a841a),_0x1b8430['commands']['get'](_0xfebb9c['commandName'])['refresh'](),_0xfebb9c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1b8430['execute'](_0xfebb9c['commandName'],..._0xfebb9c['commandParams']),_0x4e9f2a['setSelection'](_0x25499c);for(const _0x34a0ba of _0x25499c)_0x34a0ba['detach']();});}),_0xb2dc05['descriptionFactory']['registerElementLabel'](function(_0x291c9d){const _0x343bfa=!_0x1b8430['model']['schema']['isObject'](_0x291c9d),_0x3c8808=_0x291c9d['previousSibling'],_0x51b2bf=_0x291c9d['nextSibling'],_0x378fe8=_0x291c9d['getAttribute']('listItemId'),_0x2f88c6=!_0x3c8808||_0x3c8808['getAttribute']('listItemId')!==_0x378fe8,_0x4957ed=!_0x51b2bf||_0x51b2bf['getAttribute']('listItemId')!==_0x378fe8;return _0x343bfa&&Boolean(_0x378fe8)&&_0x2f88c6&&_0x4957ed;},_0x2ed85e=>o(_0x1b1809,'ELEMENT_LIST_ITEM',_0x2ed85e));}['_registerLegacyDescription'](){const _0x258a53=this['editor'],_0x457b0d=_0x258a53['locale'];function _0x3518c4(_0x570534){const _0x33d451=_0x258a53['commands']['get']('bulletedList')['value'],_0x2f73f6=_0x258a53['commands']['get']('numberedList')['value'];return'numberedList'===_0x570534?_0x33d451:_0x2f73f6;}_0x258a53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x18d156){if('formatBlock'!=_0x18d156['type'])return;const {data:_0x4e3181}=_0x18d156;if(!_0x4e3181)return;let _0x13876d,_0x42fee4,_0x3f3ab1,_0x496bca;switch(_0x4e3181['commandName']){case'bulletedList':_0x3f3ab1=_0x4e3181['commandParams'][0x0]['forceValue'],_0x496bca=_0x3518c4(_0x4e3181['commandName']),_0x13876d=_0x3f3ab1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x496bca&&_0x258a53['config']['get']('list.multiBlock')||(_0x13876d='*Change\x20to:*\x20%0'),_0x42fee4={'type':'format','content':o(_0x457b0d,_0x13876d,o(_0x457b0d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3f3ab1=_0x4e3181['commandParams'][0x0]['forceValue'],_0x496bca=_0x3518c4(_0x4e3181['commandName']),_0x13876d=_0x3f3ab1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x496bca&&_0x258a53['config']['get']('list.multiBlock')||(_0x13876d='*Change\x20to:*\x20%0'),_0x42fee4={'type':'format','content':o(_0x457b0d,_0x13876d,o(_0x457b0d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x13876d='*Indent:*\x20%0',_0x42fee4={'type':'format','content':o(_0x457b0d,_0x13876d,o(_0x457b0d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x13876d=function(_0x1e6c1e){const _0x2898cb=_0x1e6c1e['getFirstRange']();let _0x148594=_0x2898cb['start']['nodeAfter'];for(;_0x148594&&_0x2898cb['containsItem'](_0x148594);){if(_0x148594['getAttribute']('listIndent')>0x0)return!0x1;_0x148594=_0x148594['nextSibling'];}return!0x0;}(_0x18d156)?o(_0x457b0d,'*Format:*\x20remove\x20from\x20%0',o(_0x457b0d,function(_0x1e0e11){return'ELEMENT_'+_0x1e0e11['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x18d156))):o(_0x457b0d,'*Outdent:*\x20%0',o(_0x457b0d,'ELEMENT_LIST_ITEM')),_0x42fee4={'type':'format','content':_0x13876d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4e3181['multipleBlocks']&&(_0x13876d='*Merge:*\x20%0',_0x42fee4={'type':'deletion','content':o(_0x457b0d,_0x13876d,o(_0x457b0d,'ELEMENT_LIST_ITEM'))});}return _0x42fee4;});}}function le(_0x138152){let _0xcb2160=_0x138152['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xcb2160;){const _0x39c64b=_0xcb2160['getAttribute']('listItemId');if(!_0x39c64b)return!0x1;if(_0x39c64b==_0x138152['data']['newValue'])return'newValue';if(_0x39c64b==_0x138152['data']['oldValue'])return'oldValue';_0xcb2160=_0xcb2160['previousSibling'];}return!0x1;}class pe extends _0x266c89{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4db6a3=this['editor']['config']['get']('list.properties'),_0x205cf8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4db6a3['styles']&&(_0x205cf8['enableDefaultAttributesIntegration']('listStyle'),_0x205cf8['registerBlockAttribute']('listStyle')),_0x4db6a3['reversed']&&(_0x205cf8['enableDefaultAttributesIntegration']('listReversed'),_0x205cf8['registerBlockAttribute']('listReversed')),_0x4db6a3['startIndex']&&(_0x205cf8['enableDefaultAttributesIntegration']('listStart'),_0x205cf8['registerBlockAttribute']('listStart'));const _0x4dd8fe={'type':'format','content':''};_0x205cf8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x179ae6=this['editor']['locale'];_0x205cf8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x179ae6,'FORMAT_LIST_REVERSED')),_0x205cf8['descriptionFactory']['registerDescriptionCallback'](_0x19e0a8=>{const {data:_0xb6396a}=_0x19e0a8;if(_0xb6396a&&'listReversed'==_0xb6396a['key'])return null==_0xb6396a['newValue']||0x0==_0xb6396a['newValue']&&null==_0xb6396a['oldValue']?_0x4dd8fe:void 0x0;}),_0x205cf8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x179ae6,'FORMAT_LIST_START')),_0x205cf8['descriptionFactory']['registerDescriptionCallback'](_0x3f1e1c=>{const {data:_0x50cc14}=_0x3f1e1c;if(_0x50cc14&&'listStart'==_0x50cc14['key'])return null==_0x50cc14['newValue']||0x1==_0x50cc14['newValue']&&null==_0x50cc14['oldValue']?_0x4dd8fe:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x22d957=>{if(_0x22d957['batch']['isUndo'])return!0x1;let _0x17b0a6=!0x1;const _0x4ed2fb=_0x205cf8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45563d=>{const _0x2fc3c5=_0x205cf8['_getAttributeKey'](_0x45563d);return'listStart'==_0x2fc3c5||'listReversed'==_0x2fc3c5;});for(const _0x3d3b3b of _0x4ed2fb){const _0x2e3c85=_0x3d3b3b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2e3c85||'customNumbered'==_0x2e3c85)continue;_0x205cf8['_findSuggestions'](_0x3d3b3b['getFirstRange'](),'attribute')['find'](_0x1a47e5=>'listType'==_0x205cf8['_getAttributeKey'](_0x1a47e5['suggestion']))||(_0x22d957['removeMarker'](_0x3d3b3b['getFirstMarker']()),_0x17b0a6=!0x0);}return _0x17b0a6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5df7a7){const _0x5d22ef=this['editor']['locale'],{data:_0x59999d}=_0x5df7a7,_0xa7a2b6={'type':'format','content':''};if(!_0x59999d||'listStyle'!=_0x59999d['key'])return;if(!_0x59999d['oldValue'])return'default'==_0x59999d['newValue']?_0xa7a2b6:{'type':'format','content':''+o(_0x5d22ef,'*Set\x20format:*\x20%0',o(_0x5d22ef,this['_getTranslationKeyForListStyle'](_0x59999d['newValue'])))};if(!_0x59999d['newValue']){if('default'==_0x59999d['oldValue'])return _0xa7a2b6;let _0x4c6052=_0x5df7a7['head'];for(;_0x4c6052;){if(_0x4c6052['data']&&'listType'==_0x4c6052['data']['key']&&_0x4c6052['data']['newValue'])return _0xa7a2b6;_0x4c6052=_0x4c6052['next'];}return{'type':'format','content':''+o(_0x5d22ef,'*Remove\x20format:*\x20%0',o(_0x5d22ef,this['_getTranslationKeyForListStyle'](_0x59999d['oldValue'])))};}if('default'!=_0x59999d['newValue'])return{'type':'format','content':''+o(_0x5d22ef,'*Set\x20format:*\x20%0',o(_0x5d22ef,this['_getTranslationKeyForListStyle'](_0x59999d['newValue'])))};let _0x3dd6ca=_0x5df7a7['head'];for(;_0x3dd6ca;){if(_0x3dd6ca['data']&&'listType'==_0x3dd6ca['data']['key']&&_0x3dd6ca['data']['newValue']&&_0x3dd6ca['data']['oldValue'])return _0xa7a2b6;_0x3dd6ca=_0x3dd6ca['next'];}return{'type':'format','content':o(_0x5d22ef,'*Set\x20format:*\x20%0',o(_0x5d22ef,'ELEMENT_'+_0x5df7a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4d6759=this['editor'],_0x29a192=_0x4d6759['locale'];_0x4d6759['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbd4f57=>{if('formatBlock'!=_0xbd4f57['type'])return;const {data:_0x29d515}=_0xbd4f57;if(!_0x29d515)return;let _0x358f20,_0x30b289;switch(_0x29d515['commandName']){case'listStyle':_0x358f20='*Change\x20to:*\x20%0',_0x30b289={'type':'format','content':o(_0x29a192,_0x358f20,o(_0x29a192,this['_getTranslationKeyForListStyle'](_0x29d515['commandParams'][0x0]['type'])))};break;case'listReversed':_0x358f20=_0x29d515['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x30b289={'type':'format','content':o(_0x29a192,_0x358f20)};break;case'listStart':_0x358f20='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x30b289={'type':'format','content':o(_0x29a192,_0x358f20,_0x29d515['commandParams'][0x0]['startIndex'])};}return _0x30b289;});}['_getTranslationKeyForListStyle'](_0x2b950d){return'ELEMENT_'+function(_0x233c22){if(ye['includes'](_0x233c22))return'bulleted';if(Se['includes'](_0x233c22))return'numbered';return null;}(_0x2b950d)['toUpperCase']()+'_LIST_'+_0x2b950d['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x266c89{static get['requires'](){return[_0xeb11a3];}['init'](){const _0x32abbc=this['editor'],_0x31ee7f=_0x32abbc['plugins']['get']('TrackChangesEditing'),_0x15540b=_0x32abbc['commands']['get']('enter');_0x31ee7f['enableCommand']('enter',()=>{_0x32abbc['model']['change'](_0x404c0=>{const _0x2b2eea=_0x32abbc['model']['document']['selection'],_0xb36a41=_0x2b2eea['getFirstPosition'](),_0x228bcb=_0x542340['fromRange'](_0x2b2eea['getFirstRange']());if(_0x15540b['enterBlock'](_0x404c0)){const _0x3ed024=_0x32abbc['model']['createPositionAt'](_0xb36a41['parent']['nextSibling'],0x0),_0x346fba=_0x404c0['createRange'](_0xb36a41,_0x3ed024);_0x31ee7f['markInsertion'](_0x346fba);}else _0x404c0['setSelection'](_0x404c0['createRange'](_0x228bcb['end']));_0x228bcb['detach'](),_0x15540b['fire']('afterExecute',{'writer':_0x404c0});});}),_0x32abbc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x32abbc,'split'),{'priority':'high'}),_0x32abbc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x20f84a,_0x112385,_0x48cac8)=>{const _0x364bbd=_0x48cac8['mapper']['markerNameToElements'](_0x112385['markerName']);if(_0x364bbd){for(const _0x182f76 of _0x364bbd)_0x182f76['hasClass']('ck-suggestion-marker-split')&&(_0x48cac8['mapper']['unbindElementFromMarkerName'](_0x182f76,_0x112385['markerName']),_0x48cac8['writer']['remove'](_0x182f76));}},{'priority':'high'}),_0x32abbc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5bf350,_0x31e033,_0x5f2cb4)=>{_0x5f2cb4['options']['showSuggestionHighlights']&&_e(_0x32abbc,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5bf350,_0x31e033,_0x5f2cb4);},{'priority':'high'});}}class X extends _0x266c89{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x59742b=this['editor']['plugins']['get']('TrackChangesEditing');_0x59742b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x59742b['enableCommand']('findNext'),_0x59742b['enableCommand']('findPrevious'),_0x59742b['enableCommand']('replace'),_0x59742b['enableCommand']('replaceAll');}['handleFindCommand'](_0x1a4268,_0x9a4ade,_0x519768={}){const _0x4e8f33=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1a4268(_0x108087=>{let _0x2a79ac=('string'==typeof _0x9a4ade?_0x4e8f33['findByTextCallback'](_0x9a4ade,_0x519768):_0x9a4ade)(_0x108087);Array['isArray'](_0x2a79ac)&&(_0x2a79ac={'results':_0x2a79ac,'searchText':'string'==typeof _0x9a4ade?_0x9a4ade:''});const _0x50e9eb=_0x2a79ac['results']['filter'](_0x5871ea=>!0x1===this['_isInDeletionRange'](_0x5871ea,_0x108087['item']));return{..._0x2a79ac,'results':_0x50e9eb};},_0x519768);}['_isInDeletionRange'](_0x1aed37,_0x493b99){const _0x3651fc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x493b99,_0x1aed37['start']),this['editor']['model']['createPositionAt'](_0x493b99,_0x1aed37['end']));for(const _0x424b80 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3651fc['getIntersection'](_0x424b80['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x266c89{['afterInit'](){const _0x44c9d2=this['editor']['locale'],_0x3a0a2e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x256f92,commandName:_0xdbde2d}of ro)this['editor']['plugins']['has'](_0x256f92)&&(_0x3a0a2e['enableDefaultAttributesIntegration'](_0xdbde2d),_0x3a0a2e['registerInlineAttribute'](_0xdbde2d));_0x3a0a2e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x44c9d2,'FORMAT_FONT_SIZE')),_0x3a0a2e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x44c9d2,'FORMAT_FONT_FAMILY')),_0x3a0a2e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x44c9d2,'FORMAT_FONT_COLOR')),_0x3a0a2e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x44c9d2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f3fc4=this['editor'],_0x3c5b74=_0x1f3fc4['locale'];_0x1f3fc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5be38f=>{const _0x42bd61=_0x3c5b74['t'];if('formatInline'!=_0x5be38f['type'])return;const {data:_0x1aea56}=_0x5be38f;if(null!=_0x1aea56){if('fontSize'==_0x1aea56['commandName']){const _0x104f12=_0x1aea56['commandParams'][0x0]['value'];if(_0x104f12){const _0x4feba3=_0x42bd61(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x466f0c=>_0x466f0c['model']==_0x104f12)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3c5b74,'*Set\x20font\x20size:*\x20%0',_0x4feba3)};}return{'type':'format','content':o(_0x3c5b74,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1aea56['commandName']){const _0x51eacc=_0x1aea56['commandParams'][0x0]['value'];return _0x51eacc?{'type':'format','content':o(_0x3c5b74,'*Set\x20font\x20family:*\x20%0',_0x51eacc)}:{'type':'format','content':o(_0x3c5b74,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1aea56['commandName']){const _0x5ed848=_0x1aea56['commandParams'][0x0]['value'];if(_0x5ed848){const _0x2d96b4=_0x21a271(this['editor']['config']['get']('fontColor.colors'))['find'](_0x127843=>_0x127843['model']==_0x5ed848);let _0x59b326=_0x5ed848,_0x95ca94='';return _0x2d96b4&&(_0x59b326=_0x2d96b4['label'],_0x95ca94=_0x42bd61(_0x59b326)['toLowerCase']()),{'type':'format','content':o(_0x3c5b74,'*Set\x20font\x20color:*\x20%0',_0x95ca94)['trim'](),'color':{'value':_0x5ed848,'title':_0x95ca94||_0x59b326}};}return{'type':'format','content':o(_0x3c5b74,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1aea56['commandName']){const _0x59b365=_0x1aea56['commandParams'][0x0]['value'];if(_0x59b365){const _0x29bdcb=_0x21a271(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x579eb2=>_0x579eb2['model']==_0x59b365);let _0x4659d8=_0x59b365,_0x4677bc='';return _0x29bdcb&&(_0x4659d8=_0x29bdcb['label'],_0x4677bc=_0x42bd61(_0x4659d8)['toLowerCase']()),{'type':'format','content':o(_0x3c5b74,'*Set\x20font\x20background\x20color:*\x20%0',_0x4677bc)['trim'](),'color':{'value':_0x59b365,'title':_0x4677bc||_0x4659d8}};}return{'type':'format','content':o(_0x3c5b74,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x266c89{['afterInit'](){const _0x22df5a=this['editor'],_0x87484e=_0x22df5a['plugins']['get']('TrackChangesEditing'),_0x35a37d=_0x22df5a['commands']['get']('copyFormat'),_0x733027=_0x22df5a['commands']['get']('pasteFormat');_0x35a37d&&_0x733027&&(_0x87484e['enableDefaultAttributesIntegration']('pasteFormat'),_0x87484e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x481d61=this['editor'],_0x49ca3a=_0x481d61['locale'];_0x481d61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2937f5=>{if('formatBlock'!=_0x2937f5['type']&&'formatInline'!=_0x2937f5['type'])return;const {data:_0x1b1a8a}=_0x2937f5;if(_0x1b1a8a&&'pasteFormat'===_0x1b1a8a['commandName']){const _0x4d9125=[],_0x17f14e=_0x1b1a8a['commandParams'][0x0];for(const [_0x449a2a,_0x19c29e]of Object['entries'](_0x17f14e))_0x4d9125['push'](so(_0x481d61,_0x449a2a,_0x19c29e));return _0x4d9125['length']?{'type':'format','content':o(_0x49ca3a,'*Set\x20format\x20to:*\x20%0',_0x4d9125['join'](',\x20'))}:{'type':'format','content':o(_0x49ca3a,'*Remove\x20all\x20formatting*')};}});}}function so(_0x128e90,_0x3fd362,_0x47f05e){const _0x343fdd=_0x128e90['locale']['t'],_0x99ebf9=_0x3fd362['split'](/(?=[A-Z])/)['join']('\x20'),_0x30b97e=_0x343fdd(_0x99ebf9['charAt'](0x0)['toUpperCase']()+_0x99ebf9['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x47f05e)return _0x30b97e;if('fontColor'===_0x3fd362||'fontBackgroundColor'===_0x3fd362){const _0x447dc9=_0x21a271(_0x128e90['config']['get']('fontColor.colors'))['find'](_0x21da3e=>_0x21da3e['model']==_0x47f05e);return _0x30b97e+'\x20('+(_0x447dc9?_0x343fdd(_0x447dc9['label'])['toLowerCase']():_0x47f05e)+')';}if('fontSize'===_0x3fd362&&isNaN(parseFloat(_0x47f05e))){const _0x3429af=_0x128e90['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x128e90['config']['get']('fontSize.options'))['find'](_0x5272ae=>_0x5272ae['model']==_0x47f05e);return _0x30b97e+'\x20('+(_0x3429af?_0x343fdd(_0x3429af['title'])['toLowerCase']():_0x47f05e)+')';}return _0x30b97e+'\x20('+_0x47f05e+')';}class tt extends _0x266c89{['_headingOptions'];['afterInit'](){const _0x511983=this['editor'];if(!_0x511983['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x511983['config']['get']('heading.options');const _0x12471e=_0x511983['locale'],_0x32040b=_0x511983['plugins']['get']('TrackChangesEditing');_0x32040b['enableDefaultAttributesIntegration']('heading');for(const _0x6aa0e8 of this['_headingOptions'])'paragraph'!=_0x6aa0e8['model']&&_0x32040b['descriptionFactory']['registerElementLabel'](_0x6aa0e8['model'],_0x127d31=>{const _0x3f1a36=this['_getHeadingLevel'](_0x6aa0e8['model']);return null!==_0x3f1a36?_0x43503e(_0x127d31,_0x3f1a36):_0x100a62(_0x127d31,_0x6aa0e8['title']);});function _0x43503e(_0x5e55d3,_0x3b7096){return o(_0x12471e,'ELEMENT_HEADING',[_0x5e55d3,_0x3b7096]);}function _0x100a62(_0x3094cd,_0xbd4dbc){return o(_0x12471e,'ELEMENT_HEADING_CUSTOM',[_0x3094cd,_0xbd4dbc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a06d9=this['editor'],_0x476c73=_0x5a06d9['locale'];function _0x181040(_0xdec0bc,_0x101e84){return o(_0x476c73,'ELEMENT_HEADING_CUSTOM',[_0xdec0bc,_0x101e84]);}_0x5a06d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20181d=>{if('formatBlock'!=_0x20181d['type'])return;const {data:_0x189aad}=_0x20181d;if(_0x189aad&&'heading'==_0x189aad['commandName']){const _0x57a3fa=_0x189aad['commandParams'][0x0]['value'],_0x553289=this['_getHeadingLevel'](_0x57a3fa);if(null!==_0x553289)return{'type':'format','content':o(_0x476c73,'*Change\x20to:*\x20%0',(_0xf38826=0x1,_0x2b2063=_0x553289,o(_0x476c73,'ELEMENT_HEADING',[_0xf38826,_0x2b2063])))};const _0x54c191=this['_headingOptions']['find'](_0x26089b=>_0x26089b['model']===_0x57a3fa)['title'];return{'type':'format','content':o(_0x476c73,'*Change\x20to:*\x20%0',_0x181040(0x1,_0x54c191))};}var _0xf38826,_0x2b2063;});}['_getHeadingLevel'](_0x23e013){const _0x1e8c14=_0x23e013['match'](/^heading(\d+)/);if(_0x1e8c14)return _0x1e8c14[0x1];const _0x5505b3=this['_headingOptions']?.['find'](_0x216d8f=>_0x216d8f['model']==_0x23e013);if(_0x5505b3&&_0x5505b3['view']){const _0x45a4e2=_0x5505b3['view'],_0x1a4654=(_0x45a4e2['name']??_0x45a4e2)['match'](/^h(\d+)/);if(_0x1a4654)return _0x1a4654[0x1];}return null;}}class et extends _0x266c89{['afterInit'](){const _0x538a46=this['editor'];if(!_0x538a46['plugins']['has']('HighlightEditing'))return;const _0x398694=_0x538a46['plugins']['get']('TrackChangesEditing'),_0xfc480e=_0x538a46['locale'];_0x398694['enableDefaultAttributesIntegration']('highlight'),_0x398694['registerInlineAttribute']('highlight'),_0x398694['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xfc480e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13d11c=this['editor'],_0x1bb639=_0x13d11c['locale'];_0x13d11c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2082e8=>{if('formatInline'!=_0x2082e8['type'])return;const {data:_0x3dcd01}=_0x2082e8;if(_0x3dcd01&&'highlight'==_0x3dcd01['commandName']){const _0x5517fd=_0x1bb639['t'],_0x2b4da3=_0x3dcd01['commandParams'][0x0]['value'];if(_0x2b4da3){const _0xf72d0a=_0x13d11c['config']['get']('highlight.options')['find'](_0x4dd65d=>_0x4dd65d['model']==_0x2b4da3),_0x3e4ef4=_0x5517fd(_0xf72d0a['title'])['toLowerCase']();return{'type':'format','content':o(_0x1bb639,'*Set\x20highlight:*\x20%0',_0x3e4ef4),'color':{'value':_0xf72d0a['color'],'title':_0xf72d0a['title']}};}return{'type':'format','content':o(_0x1bb639,'*Remove\x20highlight*',o(_0x1bb639,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x266c89{['afterInit'](){const _0x470010=this['editor'];if(!_0x470010['plugins']['has']('HorizontalLineEditing'))return;_0x470010['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4f6340=_0x470010['plugins']['get']('TrackChangesEditing'),_0x1bce18=_0x470010['locale'];_0x4f6340['descriptionFactory']['registerElementLabel']('horizontalLine',_0x50c2ea=>o(_0x1bce18,'ELEMENT_HORIZONTAL_LINE',_0x50c2ea)),_0x470010['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xc0a11b,{writer:_0x493e40,options:_0x2a8e9b})=>{if(!_0x2a8e9b['showSuggestionHighlights'])return null;const _0x41844b=_0x493e40['createContainerElement']('div'),_0x53f2b6=_0x493e40['createEmptyElement']('hr');return _0x493e40['addClass']('ck-horizontal-line',_0x41844b),_0x493e40['insert'](_0x493e40['createPositionAt'](_0x41844b,0x0),_0x53f2b6),_0x41844b;},'converterPriority':'high'});}}class st extends _0x266c89{['afterInit'](){const _0x3384a4=this['editor'];if(!_0x3384a4['plugins']['has']('HtmlEmbed'))return;const _0x2b5315=_0x3384a4['plugins']['get']('TrackChangesEditing'),_0x4f777f=_0x3384a4['locale'];_0x2b5315['descriptionFactory']['registerElementLabel']('rawHtml',_0x446ba5=>o(_0x4f777f,'ELEMENT_HTML_EMBED',_0x446ba5)),_0x2b5315['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2b5315['registerBlockAttribute']('value'),_0x2b5315['descriptionFactory']['registerDescriptionCallback'](_0x4359b9=>{if('attribute'!=_0x4359b9['type'])return;const {data:_0x31fa42}=_0x4359b9;if(_0x31fa42&&'value'==_0x31fa42['key']&&_0x4359b9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x521d40=o(_0x4f777f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4f777f,'*Change\x20%0\x20content*',_0x521d40)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21aed2=this['editor'],_0x2923a4=_0x21aed2['locale'];_0x21aed2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50ce9f=>{if('formatBlock'!=_0x50ce9f['type'])return;const {data:_0x5a5170}=_0x50ce9f;if(_0x5a5170&&'htmlEmbed'==_0x5a5170['commandName']){const _0x2c36f3=o(_0x2923a4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2923a4,'*Change\x20%0\x20content*',_0x2c36f3)};}});}}class nt extends _0x266c89{['afterInit'](){const _0x1f0632=this['editor'];if(!_0x1f0632['plugins']['has']('ImageEditing'))return;const _0x39ed87=_0x1f0632['plugins']['get']('TrackChangesEditing'),_0xc9574f=_0x1f0632['plugins']['get']('ImageUtils'),_0x9ba577=_0x1f0632['locale'];_0x39ed87['enableCommand']('insertImage'),_0x39ed87['descriptionFactory']['registerElementLabel']('imageBlock',_0x2981fe=>o(_0x9ba577,'ELEMENT_IMAGE',_0x2981fe)),_0x39ed87['descriptionFactory']['registerElementLabel']('imageInline',_0x402e21=>o(_0x9ba577,'ELEMENT_INLINE_IMAGE',_0x402e21)),_0x39ed87['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x9ba577,'ELEMENT_CAPTION')),_0x1f0632['plugins']['has']('ImageUploadEditing')&&_0x39ed87['enableCommand']('uploadImage'),_0x1f0632['plugins']['has']('ImageBlockEditing')&&_0x1f0632['plugins']['has']('ImageInlineEditing')&&(_0x39ed87['enableCommand']('imageTypeInline',(_0xfc2963,_0x13a638)=>{const _0x7740c0=_0xc9574f['getClosestSelectedImageElement'](_0x1f0632['model']['document']['selection']);_0x1f0632['model']['change'](()=>{_0x39ed87['markBlockFormat'](_0x7740c0,{'commandName':'imageTypeInline','commandParams':[_0x13a638]},[],'convertBlockImageToInline');});}),_0x39ed87['enableCommand']('imageTypeBlock',(_0x4d738b,_0x230a19)=>{_0x1f0632['model']['change'](_0x50ec7a=>{let _0x1bcf5a=_0xc9574f['getClosestSelectedImageElement'](_0x1f0632['model']['document']['selection']),_0xa65b67=_0x50ec7a['createRangeOn'](_0x1bcf5a);const _0xb36726=_0x363aaa['fromPosition'](_0xa65b67['start'],'toPrevious'),_0x1bd5db=_0x363aaa['fromPosition'](_0xa65b67['end'],'toNext');_0x39ed87['forceDefaultExecution'](()=>_0x4d738b(_0x230a19)),_0x1bcf5a=_0xc9574f['getClosestSelectedImageElement'](_0x1f0632['model']['document']['selection']),_0xa65b67=_0x50ec7a['createRangeOn'](_0x1bcf5a);const _0x52384f=_0x50ec7a['createRange'](_0xb36726,_0x1bd5db);_0xb36726['detach'](),_0x1bd5db['detach'](),_0x39ed87['markBlockFormat'](_0x1bcf5a,{'commandName':'imageTypeInline','commandParams':[_0x230a19]},[],'convertInlineImageToBlock'),_0x52384f['start']['isBefore'](_0xa65b67['start'])&&_0x39ed87['markInsertion'](_0x50ec7a['createRange'](_0x52384f['start'],_0xa65b67['start']),'convertInlineImageToBlock'),_0xa65b67['end']['isBefore'](_0x52384f['end'])&&_0x39ed87['markInsertion'](_0x50ec7a['createRange'](_0xa65b67['end'],_0x52384f['end']),'convertInlineImageToBlock');});}),_0x39ed87['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x39ed87['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x39ed87['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x39ed87['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x39ed87['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x39ed87['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x21edd5])=>{const _0x652239=_0x39ed87['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4c30e4=_0x21edd5['start'],_0xbeaa7a=_0x21edd5['end'];const _0x5a32b6=_0x1f0632['model']['schema']['getNearestSelectionRange'](_0x4c30e4,'backward'),_0x2fd96b=_0x1f0632['model']['schema']['getNearestSelectionRange'](_0xbeaa7a,'forward');_0x5a32b6['isCollapsed']&&(_0x4c30e4=_0x5a32b6['start']),_0x2fd96b['isCollapsed']&&(_0xbeaa7a=_0x2fd96b['end']),_0x652239([_0x1f0632['model']['createRange'](_0x4c30e4,_0xbeaa7a)]);}),_0x39ed87['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3694a6),_0x39ed87['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3694a6)),_0x1f0632['plugins']['has']('ImageCaptionEditing')&&(_0x39ed87['enableCommand']('toggleImageCaption',(_0x4fcc3e,_0x2ff3c7)=>{const _0x26378b=_0x1f0632['plugins']['get']('ImageCaptionUtils');let _0x283738=_0xc9574f['getClosestSelectedImageElement'](_0x1f0632['model']['document']['selection']),_0x47bb5e=_0x26378b['getCaptionFromImageModelElement'](_0x283738);_0x1f0632['model']['change'](()=>{if(_0x47bb5e)return void _0x39ed87['markDeletion'](_0x1f0632['model']['createRangeOn'](_0x47bb5e));const _0x11fb77=_0xc9574f['isBlockImage'](_0x283738);_0x4fcc3e(_0x2ff3c7),_0x283738=_0xc9574f['getClosestSelectedImageElement'](_0x1f0632['model']['document']['selection']),_0x47bb5e=_0x26378b['getCaptionFromImageModelElement'](_0x283738),_0x39ed87['markInsertion'](_0x1f0632['model']['createRangeOn'](_0x47bb5e),_0x11fb77?null:'imageCaption');});}),_0x39ed87['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3694a6));const _0x495e0e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4a04a8(_0x38355f,_0x5ebcb4){const _0x23978d=_0x495e0e['findIndex'](({type:_0x38063a,subType:_0x519fd9})=>_0x38355f['type']==_0x38063a&&_0x38355f['subType']==_0x519fd9),_0x1ccc04=_0x495e0e['findIndex'](({type:_0x533529,subType:_0x14273f})=>_0x5ebcb4['type']==_0x533529&&_0x5ebcb4['subType']==_0x14273f);if(_0x23978d<0x0||_0x1ccc04<0x0)return!0x1;const _0x18dceb=_0x38355f['getFirstRange'](),_0x571b95=_0x5ebcb4['getFirstRange']();if((0x0==_0x23978d||0x1==_0x23978d)&&0x2==_0x1ccc04&&_0x18dceb['isIntersecting'](_0x571b95))return!0x0;if(0x2==_0x23978d&&0x3==_0x1ccc04){const _0x4afa3e=_0x39ed87['_findSuggestions'](_0x18dceb,'insertion')['filter'](({suggestion:_0x45070e,meta:_0x122bf0})=>_0x122bf0['isOwn']&&'convertInlineImageToBlock'==_0x45070e['subType']);if(_0x4afa3e['length']>0x1&&_0x571b95['end']['isEqual'](_0x18dceb['start']))return!0x0;if(0x1==_0x4afa3e['length']&&(_0x18dceb['start']['isEqual'](_0x571b95['end'])||_0x18dceb['end']['isEqual'](_0x571b95['start'])))return!0x0;}if(0x3==_0x23978d&&0x3==_0x1ccc04&&_0x18dceb['start']['isBefore'](_0x571b95['start'])){const _0x5aead8=_0x18dceb['end']['nodeAfter'],_0x288901=_0x571b95['start']['nodeBefore'];return _0xc9574f['isBlockImage'](_0x5aead8)&&_0x5aead8===_0x288901;}return!0x1;}function _0x3694a6(_0x8591a5,_0x5cf18e){return _0x4a04a8(_0x8591a5,_0x5cf18e)?[_0x8591a5,_0x5cf18e]:_0x4a04a8(_0x5cf18e,_0x8591a5)?[_0x5cf18e,_0x8591a5]:null;}_0x1f0632['plugins']['has']('ImageResize')&&(_0x39ed87['enableDefaultAttributesIntegration']('resizeImage'),_0x39ed87['registerBlockAttribute']('resizedWidth'),_0x39ed87['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x9ba577,'FORMAT_IMAGE_SIZE'))),_0x1f0632['plugins']['has']('ImageTextAlternativeEditing')&&(_0x39ed87['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x39ed87['registerBlockAttribute']('alt')),_0x39ed87['descriptionFactory']['registerDescriptionCallback'](_0x59f803=>{if(!!_0x495e0e['find'](({type:_0x2e2887,subType:_0x124441})=>_0x59f803['type']==_0x2e2887&&_0x59f803['subType']==_0x124441))return _0x59f803['previous']?{}:void 0x0;}),_0x39ed87['descriptionFactory']['registerDescriptionCallback'](_0x4e0f72=>{if('insertion'==_0x4e0f72['type']||'deletion'==_0x4e0f72['type']){const _0x4ca2d5=_0x4e0f72['getContainedElement']();if(_0x4ca2d5&&_0x4ca2d5['is']('element','caption'))return{'type':'insertion'==_0x4e0f72['type']?'addObject':'removeObject','element':_0x4ca2d5,'quantity':0x1};}}),_0x39ed87['descriptionFactory']['registerDescriptionCallback'](_0x4772a7=>'formatBlock'==_0x4772a7['type']&&'convertInlineImageToBlock'==_0x4772a7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4772a7['type']&&'convertBlockImageToInline'==_0x4772a7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x39ed87['descriptionFactory']['registerDescriptionCallback'](_0x226032=>{if('attribute'!=_0x226032['type'])return;const {data:_0x327fa7}=_0x226032;if(!_0x327fa7||'alt'!=_0x327fa7['key'])return;const _0xf1c886=_0x327fa7['newValue'];return _0xf1c886?{'type':'format','content':o(_0x9ba577,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xf1c886+'\x22')}:{'type':'format','content':o(_0x9ba577,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x452ce2=this['editor'],_0x263bbf=_0x452ce2['locale'];_0x452ce2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d2b8c=>{if('formatBlock'!=_0x2d2b8c['type']&&'formatInline'!=_0x2d2b8c['type'])return;const {data:_0x194b8d}=_0x2d2b8c;if(_0x194b8d){if('imageTextAlternative'==_0x194b8d['commandName']){const _0x4b262f=_0x194b8d['commandParams'][0x0]['newValue'];return _0x4b262f?{'type':'format','content':o(_0x263bbf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4b262f+'\x22')}:{'type':'format','content':o(_0x263bbf,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x194b8d['commandName']){const _0x387027=_0x194b8d['commandParams'][0x0]['width'];return _0x387027?{'type':'format','content':o(_0x263bbf,'*Set\x20image\x20width:*\x20%0',_0x387027)}:{'type':'format','content':o(_0x263bbf,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x266c89{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x40a967=this['editor']['locale'],_0x14eff7=this['editor']['plugins']['get']('TrackChangesEditing');_0x14eff7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x14eff7['registerBlockAttribute']('src'),_0x14eff7['descriptionFactory']['registerDescriptionCallback'](_0x1411a4=>{if('attribute'!=_0x1411a4['type'])return;const {data:_0x889ca0}=_0x1411a4;return _0x889ca0&&'src'==_0x889ca0['key']?_0x889ca0['newValue']&&_0x889ca0['oldValue']?{'type':'format','content':o(_0x40a967,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f7247=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f7247['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4f7247['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f7247['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4f7247['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5541c1=this['editor'],_0x591451=_0x5541c1['locale'];_0x5541c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x510ace=>{if('formatBlock'!=_0x510ace['type']&&'formatInline'!=_0x510ace['type'])return;const {data:_0x412128}=_0x510ace;if(!_0x412128||'replaceImageSource'!=_0x412128['commandName'])return;return{'type':'format','content':o(_0x591451,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x266c89{['afterInit'](){const _0x38ab3a=this['editor'];if(!_0x38ab3a['plugins']['has']('ImageStyleEditing'))return;const _0x1efa2d=_0x38ab3a['plugins']['get']('TrackChangesEditing'),_0x301c98=_0x38ab3a['plugins']['get']('ImageUtils'),_0x21e39c={};_0x1efa2d['enableCommand']('imageStyle',(_0x6d3317,_0xae2f53)=>{const _0x11276c=_0x38ab3a['plugins']['get']('Users')['me'],_0x41b468=_0x38ab3a['commands']['get']('imageStyle');let _0x4dc154=_0x301c98['getClosestSelectedImageElement'](_0x38ab3a['model']['document']['selection']),_0x19a687=_0x38ab3a['model']['createRangeOn'](_0x4dc154),_0x1f4586=_0x41b468['value'];if(_0x1f4586==_0xae2f53['value'])return;const _0x35f06b={'commandName':'imageStyle','commandParams':[_0xae2f53],'formatGroupId':_0x49822d()};_0x38ab3a['model']['change'](()=>{if(_0x1efa2d['getSuggestions']()['filter'](_0x1898b1=>_0x1898b1['isInContent']&&_0x11276c==_0x1898b1['author']&&('formatBlock'==_0x1898b1['type']||'formatInline'==_0x1898b1['type'])&&('imageStylePreApply'==_0x1898b1['subType']||'imageStylePostApply'==_0x1898b1['subType'])&&_0x1898b1['getFirstRange']()['isEqual'](_0x19a687))['forEach'](_0x1cc5f7=>_0x1efa2d['discardSuggestion'](_0x1cc5f7['head'])),_0x4dc154=_0x301c98['getClosestSelectedImageElement'](_0x38ab3a['model']['document']['selection']),_0x19a687=_0x38ab3a['model']['createRangeOn'](_0x4dc154),_0x41b468['refresh'](),_0x38ab3a['commands']['get']('imageTypeInline')['refresh'](),_0x38ab3a['commands']['get']('imageTypeBlock')['refresh'](),_0x1f4586=_0x41b468['value'],_0x1f4586!=_0xae2f53['value'])return _0x301c98['isInlineImage'](_0x4dc154)&&_0x41b468['shouldConvertImageType'](_0xae2f53['value'],_0x4dc154)?(_0x6d3317({..._0xae2f53,'setImageSizes':!0x1}),_0x4dc154=_0x301c98['getClosestSelectedImageElement'](_0x38ab3a['model']['document']['selection']),void _0x1efa2d['markBlockFormat'](_0x4dc154,{..._0x35f06b,'commandReversedParams':[{'value':_0x1f4586||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x301c98['isBlockImage'](_0x4dc154)?_0x1efa2d['markBlockFormat'](_0x4dc154,_0x35f06b,[],'imageStylePostApply'):_0x1efa2d['markInlineFormat'](_0x19a687,_0x35f06b,'imageStylePostApply'));});});for(const _0x48aa1d of _0x38ab3a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x21e39c[_0x48aa1d['name']]=_0x48aa1d['title']['toLowerCase']();_0x1efa2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1efa2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1efa2d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1efa2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x531b9d])=>{_0x301c98['setImageNaturalSizeAttributes'](_0x531b9d['getContainedElement']());}),_0x1efa2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d6976,_0x59c6c5)=>{_0x1efa2d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d6976,{'commandName':_0x59c6c5['commandName'],'commandParams':_0x59c6c5['commandReversedParams']});}),_0x1efa2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xc5de2c,_0x104df7){if(_0x1a113f(_0xc5de2c,_0x104df7))return[_0xc5de2c,_0x104df7];if(_0x1a113f(_0x104df7,_0xc5de2c))return[_0x104df7,_0xc5de2c];return null;});const _0x3c3c3e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1a113f(_0x4c4ed0,_0x51f676){const _0x49d596=_0x3c3c3e['findIndex'](({type:_0x504874,subType:_0x4fdb9c})=>_0x4c4ed0['type']==_0x504874&&_0x4c4ed0['subType']==_0x4fdb9c),_0x1a8780=_0x3c3c3e['findIndex'](({type:_0x3ea28d,subType:_0x569506})=>_0x51f676['type']==_0x3ea28d&&_0x51f676['subType']==_0x569506);if(_0x49d596<0x0||_0x1a8780<0x0)return!0x1;const _0x3dacca=_0x4c4ed0['getFirstRange'](),_0xa5b7eb=_0x51f676['getFirstRange']();if((0x0==_0x49d596||0x1==_0x49d596)&&0x2==_0x1a8780&&_0x3dacca['isIntersecting'](_0xa5b7eb))return!0x0;if(0x2==_0x49d596&&0x3==_0x1a8780){const _0x761bc0=_0x1efa2d['_findSuggestions'](_0x3dacca,'insertion')['filter'](({suggestion:_0x3bb0df,meta:_0x3d70f2})=>_0x3d70f2['isOwn']&&'convertInlineImageToBlock'==_0x3bb0df['subType']);if(_0x761bc0['length']>0x1&&_0xa5b7eb['end']['isEqual'](_0x3dacca['start']))return!0x0;if(0x1==_0x761bc0['length']&&(_0x3dacca['start']['isEqual'](_0xa5b7eb['end'])||_0x3dacca['end']['isEqual'](_0xa5b7eb['start'])))return!0x0;}if(0x3==_0x49d596&&0x3==_0x1a8780&&_0x3dacca['start']['isBefore'](_0xa5b7eb['start'])){const _0x22a119=_0x3dacca['end']['nodeAfter'],_0x35cd35=_0xa5b7eb['start']['nodeBefore'];return _0x301c98['isBlockImage'](_0x22a119)&&_0x22a119===_0x35cd35;}return!0x1;}_0x38ab3a['model']['document']['registerPostFixer'](()=>{let _0xb23181=!0x1;const _0x25ba59=Array['from'](_0x38ab3a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27321e,data:_0x3647dd}of _0x25ba59){const {group:_0x4ea3db,type:_0x1fd2e9,subType:_0x56d599,id:_0x3586ad}=_0x1efa2d['_splitMarkerName'](_0x27321e);if('suggestion'==_0x4ea3db&&_0x1efa2d['hasSuggestion'](_0x3586ad)){if('formatBlock'==_0x1fd2e9&&('imageStylePreApply'==_0x56d599||'imageStylePostApply'==_0x56d599)){const _0x53aa78=_0x1efa2d['getSuggestion'](_0x3586ad);if(_0x3647dd['newRange']){const _0x2de319=_0x53aa78['getFirstRange']()['getContainedElement']();if(_0x301c98['isBlockImage'](_0x2de319))continue;_0x1efa2d['discardSuggestion'](_0x53aa78),_0xb23181=!0x0;}}if('insertion'==_0x1fd2e9&&'imageCaption'==_0x56d599&&!_0x3647dd['newRange']){const _0x4b2e16=_0x1efa2d['getSuggestion'](_0x3586ad);_0x4b2e16['next']&&_0x4b2e16['next']['isInContent']&&(_0x1efa2d['discardSuggestion'](_0x4b2e16['next']),_0xb23181=!0x0);}}}return _0xb23181;}),this['_registerLegacyDescription'](_0x21e39c);}['_registerLegacyDescription'](_0xcf890){const _0x20d1b1=this['editor'],_0x7fd969=_0x20d1b1['locale'];_0x20d1b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25934b=>{if('formatBlock'!=_0x25934b['type']&&'formatInline'!=_0x25934b['type'])return;const {data:_0xd5782c}=_0x25934b;if(!_0xd5782c||'imageStyle'!=_0xd5782c['commandName'])return;const _0x348036=_0xd5782c['commandParams'][0x0]['value'];return _0x4a5aa5('side'===_0x348036?o(_0x7fd969,'FORMAT_SIDE_IMAGE'):_0xcf890[_0x348036]||_0x348036);function _0x4a5aa5(_0x5a18ea){return{'type':'format','content':o(_0x7fd969,'*Format:*\x20%0',_0x5a18ea)};}});}}class at extends _0x266c89{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x24af14){super(_0x24af14),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4a1580=this['editor'],_0x4eff4d=_0x4a1580['commands']['get']('importWord'),_0x15429e=_0x4a1580['commands']['get']('trackChanges');_0x4eff4d&&(_0x4eff4d['on']('execute',(_0x555f10,[,_0x37da08])=>{this['_trackChangesValueDuringImport']=_0x15429e['value'],_0x37da08['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4eff4d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4eff4d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x15429e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4a1580['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4c4fd0,_0x384fe9){const {suggestions:_0x5035a5}=_0x384fe9,_0x21e14a=this['editor']['commands']['get']('trackChanges'),_0x4e8fd1=_0x21e14a['value'];this['_trackChangesValueDuringImport']!==_0x4e8fd1&&(_0x21e14a['execute'](),this['_trackChangesExecuted']=!0x0),_0x5035a5&&_0x5035a5['forEach'](({id:_0x246076,type:_0x4f66a3,author:_0x106a07,created_at:_0x1df44a})=>{const _0x11260e={'id':_0x246076,'type':_0x4f66a3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x106a07,'createdAt':_0x1df44a?new Date(_0x1df44a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x11260e);});}}class ct extends _0x266c89{['afterInit'](){const _0x3159e4=this['editor'],_0x4590e5=_0x3159e4['plugins']['get']('TrackChangesEditing');if(_0x3159e4['plugins']['has']('IndentEditing')&&(_0x4590e5['enableCommand']('indent'),_0x4590e5['enableCommand']('outdent')),_0x3159e4['plugins']['has']('IndentBlock')){for(const _0x504a43 of['indentBlock','outdentBlock'])_0x4590e5['enableDefaultAttributesIntegration'](_0x504a43);}const _0x12d355=_0x3159e4['locale'];_0x4590e5['registerBlockAttribute']('blockIndent'),_0x4590e5['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x12d355,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48a75f=this['editor'],_0x58740d=_0x48a75f['locale'],_0x216d67=_0x48a75f['plugins']['get']('TrackChangesEditing');_0x216d67['descriptionFactory']['registerDescriptionCallback'](_0x3202e4=>{if('formatBlock'!=_0x3202e4['type'])return;const {data:_0x1685e7}=_0x3202e4;if(!_0x1685e7)return;if('indentBlock'!=_0x1685e7['commandName']&&'outdentBlock'!=_0x1685e7['commandName'])return;const _0x5734e2=_0x3202e4['getItems']()[0x0],_0x1f8834=_0x216d67['descriptionFactory']['getItemLabel'](_0x5734e2);return'indentBlock'==_0x1685e7['commandName']?{'type':'format','content':o(_0x58740d,'*Indent:*\x20%0',_0x1f8834)}:'outdentBlock'==_0x1685e7['commandName']?{'type':'format','content':o(_0x58740d,'*Outdent:*\x20%0',_0x1f8834)}:void 0x0;});}}class ut extends _0x266c89{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x266c89{['afterInit'](){const _0x5afe21=this['editor'];if(!_0x5afe21['plugins']['has']('LinkEditing'))return;const _0x3e342d=_0x5afe21['plugins']['get']('TrackChangesEditing'),_0x4445be=_0x5afe21['commands']['get']('link');_0x3e342d['enableDefaultAttributesIntegration']('link'),_0x3e342d['enableDefaultAttributesIntegration']('unlink'),_0x3e342d['registerInlineAttribute']('linkHref');for(const _0x494ac4 of _0x4445be['manualDecorators'])_0x3e342d['registerInlineAttribute'](_0x494ac4['id']),_0x3e342d['descriptionFactory']['registerAttributeLabel'](_0x494ac4['id'],'link\x20('+_0x494ac4['label']['toLowerCase']()+')');_0x3e342d['descriptionFactory']['registerDescriptionCallback'](_0x55c1f4=>{if('attribute'!=_0x55c1f4['type'])return;const {data:_0x1e2864}=_0x55c1f4;if(!_0x1e2864||'linkHref'!=_0x1e2864['key'])return;const _0x1e7739=_0x1e2864['newValue'],_0x320aa7=_0x5afe21['locale'];return{'type':'format','content':null==_0x1e7739?o(_0x320aa7,'*Remove\x20link*'):o(_0x320aa7,'*Set\x20link:*\x20%0','\x22'+_0x1e7739+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b3704=this['editor'],_0x43f1d0=_0x3b3704['locale'];_0x3b3704['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ed3d3=>{if('formatInline'!=_0x3ed3d3['type'])return;const {data:_0x1fe975}=_0x3ed3d3;if(_0x1fe975){if('link'==_0x1fe975['commandName']){const _0x10af9b=_0x1fe975['commandParams'][0x0];return{'type':'format','content':o(_0x43f1d0,'*Set\x20link:*\x20%0','\x22'+_0x10af9b+'\x22')};}return'unlink'==_0x1fe975['commandName']?{'type':'format','content':o(_0x43f1d0,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x266c89{['afterInit'](){const _0x142144=this['editor'],_0x45da75=_0x142144['locale'];if(!_0x142144['plugins']['has']('LegacyListEditing'))return;const _0x160bc0=_0x142144['plugins']['get']('TrackChangesEditing'),_0x1e3bdb=_0x142144['plugins']['has']('LegacyTodoListEditing');function _0x49aa98(_0x4e922a){return()=>{const _0x26496d=_0x142144['model']['document']['selection'],_0x521ac6=_0x142144['commands']['get'](_0x4e922a);if(_0x521ac6['value'])return void _0x142144['execute']('paragraph',{});const _0x244d01=_0x4e922a['slice'](0x0,-0x4),_0x6ba139=function(_0x535b7b,_0x4276f8,_0x1e977a){let _0x149382=Array['from'](_0x535b7b)['filter'](_0x462495=>function(_0x348e02,_0x24c174){return _0x24c174['checkChild'](_0x348e02['parent'],'listItem')&&!_0x24c174['isObject'](_0x348e02);}(_0x462495,_0x1e977a));_0x149382=_0x149382['filter'](_0x2aeadb=>!_0x2aeadb['is']('element','listItem')||_0x2aeadb['getAttribute']('listType')!=_0x4276f8);const _0x1bbd03=new Set();for(const _0x34d7ff of _0x149382)_0x34d7ff['is']('element','listItem')?_0x1bbd03['add'](fe(_0x34d7ff)):_0x1bbd03['add'](_0x34d7ff);return Array['from'](_0x1bbd03);}(_0x26496d['getSelectedBlocks'](),_0x244d01,_0x142144['model']['schema']);_0x142144['model']['change'](()=>{for(const _0x32cdd2 of _0x6ba139)_0x160bc0['markBlockFormat'](_0x32cdd2,{'commandName':_0x4e922a,'commandParams':[{'forceValue':!_0x521ac6['value']}],'formatGroupId':'blockName'},ue(_0x32cdd2));});};}function _0x650712(_0x5ca540){return()=>{const _0x533a22=function(_0x23bec7){let _0x4afef8=Array['from'](_0x23bec7);const _0x51d5c5=_0x4afef8['findIndex'](_0x41ac84=>'listItem'!=_0x41ac84['name']);return _0x51d5c5>-0x1&&(_0x4afef8=_0x4afef8['slice'](0x0,_0x51d5c5)),_0x4afef8;}(_0x142144['model']['document']['selection']['getSelectedBlocks']()),_0x12b5e2=_0x142144['model']['createRange'](_0x142144['model']['createPositionAt'](_0x533a22[0x0],'before'),_0x142144['model']['createPositionAt'](_0x533a22[_0x533a22['length']-0x1],'end'));_0x142144['model']['change'](()=>{_0x160bc0['markBlockFormat'](_0x12b5e2,{'commandName':_0x5ca540,'commandParams':[],'formatGroupId':'listIndent'},function(_0xce11b4){const _0x2e58a6=new Set();for(const _0x853b6d of _0xce11b4){let _0x45a2b0=_0x853b6d['nextSibling'];for(;_0x45a2b0&&_0x45a2b0['getAttribute']('listIndent')>_0x853b6d['getAttribute']('listIndent');)_0x2e58a6['add'](_0x45a2b0),_0x45a2b0=_0x45a2b0['nextSibling'];}return Array['from'](_0x2e58a6);}(_0x533a22));});};}_0x160bc0['enableCommand']('numberedList',_0x49aa98('numberedList')),_0x160bc0['enableCommand']('bulletedList',_0x49aa98('bulletedList')),_0x1e3bdb&&_0x160bc0['enableCommand']('todoList',_0x49aa98('todoList')),_0x160bc0['enableCommand']('indentList',_0x650712('indentList')),_0x160bc0['enableCommand']('outdentList',_0x650712('outdentList')),_0x1e3bdb&&_0x160bc0['enableCommand']('checkTodoList',()=>{const _0x492088=_0x142144['commands']['get']('checkTodoList'),_0x3eb3f7=Array['from'](_0x492088['_selectedElements']);_0x3eb3f7['filter'](_0xaa2727=>_0xaa2727['getAttribute']('todoListChecked')!=_0x492088['value']),_0x142144['model']['change'](()=>{for(const _0x511d71 of _0x3eb3f7)_0x160bc0['markBlockFormat'](_0x511d71,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x492088['value']}]});});}),_0x160bc0['descriptionFactory']['registerElementLabel']('listItem',_0x47bd04=>o(_0x45da75,'ELEMENT_LIST_ITEM',_0x47bd04)),_0x160bc0['descriptionFactory']['registerDescriptionCallback'](_0x412fbb=>{if('formatBlock'!=_0x412fbb['type']&&'formatInline'!=_0x412fbb['type'])return;const {data:_0x36e63f}=_0x412fbb;if(_0x36e63f){if('numberedList'==_0x36e63f['commandName']||'bulletedList'==_0x36e63f['commandName']||'todoList'==_0x36e63f['commandName'])switch(_0x36e63f['commandName']['replace']('List','')){case'bulleted':return _0x461a48(o(_0x45da75,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x461a48(o(_0x45da75,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x461a48(o(_0x45da75,'ELEMENT_TODO_LIST'));}if('indentList'==_0x36e63f['commandName'])return{'type':'format','content':o(_0x45da75,'*Indent:*\x20%0',o(_0x45da75,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x36e63f['commandName'])return{'type':'format','content':o(_0x45da75,'*Outdent:*\x20%0',o(_0x45da75,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x36e63f['commandName'])return _0x36e63f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x45da75,'*Check\x20item*')}:{'type':'format','content':o(_0x45da75,'*Uncheck\x20item*')};}function _0x461a48(_0x2fddbf){return{'type':'format','content':o(_0x45da75,'*Change\x20to:*\x20%0',_0x2fddbf)};}});}}function fe(_0x22d1b5){const _0x23d0dc=_0x22d1b5['getAttribute']('listIndent');if(0x0==_0x23d0dc)return _0x22d1b5;let _0x1d8b6b=_0x22d1b5;for(;_0x22d1b5['previousSibling']&&_0x22d1b5['previousSibling']['is']('element','listItem');){const _0x208609=_0x22d1b5['previousSibling']['getAttribute']('listIndent');if(_0x208609==_0x23d0dc)_0x1d8b6b=_0x22d1b5['previousSibling'];else{if(_0x208609<_0x23d0dc)break;}_0x22d1b5=_0x22d1b5['previousSibling'];}return _0x1d8b6b;}function ue(_0x3d4bb7){const _0x7dcad2=[];if(_0x3d4bb7['is']('element','listItem')&&_0x3d4bb7['getAttribute']('listIndent')>0x0){let _0x18bbc5=_0x3d4bb7['nextSibling'];for(;_0x18bbc5&&'listItem'==_0x18bbc5['name']&&_0x18bbc5['getAttribute']('listIndent')==_0x3d4bb7['getAttribute']('listIndent');)_0x7dcad2['push'](_0x18bbc5),_0x18bbc5=_0x18bbc5['nextSibling'];}return _0x7dcad2;}class W extends _0x266c89{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xfeca0d=this['editor']['config']['get']('list.properties'),_0xb33dc1=this['editor']['plugins']['get']('TrackChangesEditing');_0xfeca0d['styles']&&_0xb33dc1['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xfeca0d['reversed']&&_0xb33dc1['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xfeca0d['startIndex']&&_0xb33dc1['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xb33dc1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4887bd,_0x37e8b9={}){const _0x56a1a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0xee1984=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x56a1a3['markMultiRangeBlockFormat'](_0xee1984,{'commandName':'listStyle','commandParams':[{'type':_0x37e8b9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x20ab11,_0x2c6317={}){const _0xeb86d9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e4ab1=this['_getSuggestionBlocks'](_0x12e84e=>_0x12e84e['is']('element','listItem')&&'numbered'===_0x12e84e['getAttribute']('listType'));if(_0x1e4ab1['length']<0x1)return;const _0x178f1e=_0x1e4ab1['map'](_0x2341e5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2341e5,'before'),this['editor']['model']['createPositionAt'](_0x2341e5,0x0)));this['editor']['model']['change'](()=>{_0xeb86d9['markMultiRangeBlockFormat'](_0x178f1e,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c6317['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x42dea2,_0x4ee360={}){const _0x2257d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5eda18=this['_getSuggestionBlocks'](_0x1a00b1=>_0x1a00b1['is']('element','listItem')&&'numbered'===_0x1a00b1['getAttribute']('listType'));if(_0x5eda18['length']<0x1)return;const _0x2b29c5=_0x5eda18['map'](_0x4026b3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4026b3,'before'),this['editor']['model']['createPositionAt'](_0x4026b3,0x0)));this['editor']['model']['change'](()=>{_0x2257d8['markMultiRangeBlockFormat'](_0x2b29c5,{'commandName':'listStart','commandParams':[{'startIndex':_0x4ee360['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x272473){if('formatBlock'!=_0x272473['type']&&'formatInline'!=_0x272473['type'])return;const _0x590388=this['editor']['locale'],{data:_0x2aa5a8}=_0x272473;if(!_0x2aa5a8)return;let _0x3b8177,_0x5bf243;switch(_0x2aa5a8['commandName']){case'listStyle':_0x3b8177='*Change\x20to:*\x20%0',_0x5bf243={'type':'format','content':o(_0x590388,_0x3b8177,o(_0x590388,this['_getTranslationKeyForListStyle'](_0x2aa5a8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3b8177=_0x2aa5a8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5bf243={'type':'format','content':o(_0x590388,_0x3b8177)};break;case'listStart':_0x3b8177='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5bf243={'type':'format','content':o(_0x590388,_0x3b8177,_0x2aa5a8['commandParams'][0x0]['startIndex'])};}return _0x5bf243;}['_getSuggestionBlocksForListStyle'](){const _0x5aa223=this['editor']['plugins']['get']('LegacyListUtils');let _0x338177=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x338177[0x0]?.['is']('element','listItem')&&_0x338177['unshift'](..._0x5aa223['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x338177[_0x338177['length']-0x1]?.['is']('element','listItem')&&_0x338177['push'](..._0x5aa223['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x338177=[...new Set(_0x338177)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x338177=_0x338177['filter'](_0x356630=>_0x356630['is']('element','listItem'))),_0x338177;}['_getSuggestionBlocks'](_0x8573f9){const _0x28014e=this['editor']['plugins']['get']('LegacyListUtils');let _0x38044b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x8573f9)['map'](_0x16f2d9=>{const _0x41af93=this['editor']['model']['createPositionAt'](_0x16f2d9,0x0);return[..._0x28014e['getSiblingNodes'](_0x41af93,'backward'),..._0x28014e['getSiblingNodes'](_0x41af93,'forward')];})['flat']();return _0x38044b=[...new Set(_0x38044b)],_0x38044b;}['_getTranslationKeyForListStyle'](_0xc0f98c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xc0f98c)||'default')['toUpperCase']()+'_LIST_'+_0xc0f98c['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x266c89{['afterInit'](){const _0x4ea916=this['editor'];if(!_0x4ea916['plugins']['has']('MediaEmbedEditing'))return;const _0x2d8eb3=_0x4ea916['plugins']['get']('TrackChangesEditing'),_0x3d618c=_0x4ea916['locale'];_0x2d8eb3['enableCommand']('mediaEmbed'),_0x2d8eb3['descriptionFactory']['registerElementLabel']('media',_0x584e63=>o(_0x3d618c,'ELEMENT_MEDIA',_0x584e63)),_0x4ea916['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x35c4e7,{writer:_0x53866d,options:_0x2d4ac4})=>{if(_0x2d4ac4['showSuggestionHighlights'])return _0x53866d['createEmptyElement']('div');},'converterPriority':'high'}),_0x4ea916['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3ca5c7,_0xa0b7c3,_0x53931c)=>{_0x53931c['options']['showSuggestionHighlights']&&_0x3ca5c7['stop']();},{'priority':'high'});}}class mt extends _0x266c89{['afterInit'](){const _0x98959=this['editor'];_0x98959['plugins']['has']('MentionEditing')&&_0x98959['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x266c89{['afterInit'](){const _0x1156c2=this['editor'];if(!_0x1156c2['commands']['get']('insertMergeField'))return;_0x1156c2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x598ea0=_0x1156c2['plugins']['get']('TrackChangesEditing'),_0x3a56df=_0x1156c2['locale'];_0x598ea0['descriptionFactory']['registerElementLabel']('mergeField',_0x27b5a3=>o(_0x3a56df,'ELEMENT_MERGE_FIELD',_0x27b5a3)),_0x598ea0['descriptionFactory']['registerDescriptionCallback'](_0x3854d0=>{if('insertion'!=_0x3854d0['type']&&'deletion'!=_0x3854d0['type'])return;const _0x267f7c=_0x3854d0['getContainedElement']();if(null==_0x267f7c)return;if(!_0x267f7c['is']('element','mergeField'))return;const _0x3ace65=_0x1156c2['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x267f7c['getAttribute']('id'));return'insertion'==_0x3854d0['type']?{'type':'insertion','content':o(_0x3a56df,'*Insert:*\x20%0','\x22'+_0x3ace65+'\x22\x20'+o(_0x3a56df,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3a56df,'*Remove:*\x20%0','\x22'+_0x3ace65+'\x22\x20'+o(_0x3a56df,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x266c89{['afterInit'](){const _0x558d7e=this['editor'],_0x254c55=_0x558d7e['plugins']['get']('TrackChangesEditing');_0x558d7e['plugins']['has']('MultiLevelList')&&(_0x254c55['enableDefaultAttributesIntegration']('multiLevelList'),_0x254c55['registerBlockAttribute']('listMarkerStyle'),_0x254c55['descriptionFactory']['registerDescriptionCallback'](_0x57a33c=>this['handleDescriptions'](_0x57a33c)));}['handleDescriptions'](_0xc136c7){const _0x12370d=this['editor']['locale'],{data:_0x4f7607}=_0xc136c7,_0x411684={'type':'format','content':''};if(_0x4f7607&&'listMarkerStyle'==_0x4f7607['key']){if(!_0x4f7607['oldValue'])return{'type':'format','content':o(_0x12370d,'*Set\x20format:*\x20%0',o(_0x12370d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f7607['newValue']+')'};if(!_0x4f7607['newValue']){let _0x719314=_0xc136c7['head'];for(;_0x719314;){if(_0x719314['data']&&'listType'==_0x719314['data']['key']&&_0x719314['data']['newValue'])return _0x411684;_0x719314=_0x719314['next'];}return{'type':'format','content':o(_0x12370d,'*Remove\x20format:*\x20%0',o(_0x12370d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f7607['oldValue']+')'};}}}}class kt extends _0x266c89{['afterInit'](){const _0x27dedf=this['editor'];if(!_0x27dedf['plugins']['has']('PageBreakEditing'))return;_0x27dedf['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2d78a5=_0x27dedf['plugins']['get']('TrackChangesEditing'),_0x9201a5=_0x27dedf['locale'];_0x2d78a5['descriptionFactory']['registerElementLabel']('pageBreak',_0xfbc3ea=>o(_0x9201a5,'ELEMENT_PAGE_BREAK',_0xfbc3ea));}}class bt extends _0x266c89{['afterInit'](){const _0x444ac2=this['editor'];if(!_0x444ac2['plugins']['has']('Paragraph'))return;const _0x3c0ad2=_0x444ac2['locale'],_0x1f10bf=_0x444ac2['plugins']['get']('TrackChangesEditing');_0x1f10bf['descriptionFactory']['registerElementLabel']('paragraph',_0xabba86=>o(_0x3c0ad2,'ELEMENT_PARAGRAPH',_0xabba86)),_0x1f10bf['enableDefaultAttributesIntegration']('paragraph'),_0x1f10bf['enableCommand']('insertParagraph'),_0x444ac2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x444ac2),{'priority':'highest'}),_0x444ac2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x50019d,_0x245ed7,_0x47d0cd)=>{_0x47d0cd['options']['showSuggestionHighlights']&&nr(_0x444ac2,{'showActiveMarker':!0x1})(_0x50019d,_0x245ed7,_0x47d0cd);},{'priority':'highest'});const _0x59e8c0=_0x1f10bf['descriptionFactory'];_0x59e8c0['registerDescriptionCallback'](_0x28041a=>{if('insertion'!==_0x28041a['type'])return;const {start:_0x549db5,end:_0x482b01}=_0x28041a['getFirstRange']();if(!_0x549db5['isTouching'](_0x482b01)||!_0x549db5['nodeAfter'])return;const _0x4709f9=_0x444ac2['model']['schema'],_0x288d5a=_0x549db5['nodeAfter'];return _0x4709f9['isBlock'](_0x288d5a)&&!_0x4709f9['isLimit'](_0x288d5a)&&_0x4709f9['checkChild'](_0x288d5a,'$text')?{'type':'insertion','content':o(_0x3c0ad2,'*Insert:*\x20%0',_0x59e8c0['getItemLabel'](_0x288d5a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x383473=this['editor'],_0x5858e3=_0x383473['locale'];_0x383473['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4efb2e=>{if('formatBlock'!=_0x4efb2e['type'])return;const {data:_0x5a70a2}=_0x4efb2e;return _0x5a70a2&&'paragraph'==_0x5a70a2['commandName']?{'type':'format','content':o(_0x5858e3,'*Change\x20to:*\x20%0',o(_0x5858e3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x478f35,{showActiveMarker:_0xb938d9=!0x0}={}){return(_0x722538,_0x47cde4,_0x4d8466)=>{const _0x6b6f9b=_0x478f35['plugins']['get']('TrackChangesEditing'),_0x255610=_0x47cde4['markerRange']['start'],_0x3d9819=_0x47cde4['markerRange']['end'],_0x4cd93c=_0x478f35['model']['schema'];if(!_0x255610['isTouching'](_0x3d9819)||!_0x255610['nodeAfter'])return;const _0x95e664=_0x255610['nodeAfter'];if(_0x4cd93c['isBlock'](_0x95e664)&&!_0x4cd93c['isLimit'](_0x95e664)&&_0x4cd93c['checkChild'](_0x95e664,'$text')){if(!_0x4d8466['consumable']['consume'](_0x47cde4['markerRange'],_0x722538['name']))return;const _0x2c87ff=_0x4d8466['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x3459d6=_0x4d8466['mapper']['toViewPosition'](_0x3d9819);_0xb938d9&&_0x6b6f9b['activeMarkers']['includes'](_0x47cde4['markerName'])&&_0x4d8466['writer']['addClass']('ck-suggestion-marker--active',_0x2c87ff),_0x4d8466['writer']['insert'](_0x3459d6,_0x2c87ff),_0x4d8466['mapper']['bindElementToMarker'](_0x2c87ff,_0x47cde4['markerName']);}};}class wt extends _0x266c89{['afterInit'](){const _0x315e10=this['editor'];if(!_0x315e10['plugins']['has']('RemoveFormatEditing'))return;_0x315e10['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2434c1=this['editor'];_0x2434c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43a4b4=>{if('formatBlock'!=_0x43a4b4['type']&&'formatInline'!=_0x43a4b4['type'])return;const {data:_0x3c9bb0}=_0x43a4b4;return _0x3c9bb0&&'removeFormat'==_0x3c9bb0['commandName']?{'type':'format','content':o(_0x2434c1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x266c89{['afterInit'](){const _0x5bfa46=this['editor'];if(!_0x5bfa46['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x86eff1=_0x5bfa46['plugins']['get']('TrackChangesEditing');_0x86eff1['enableCommand']('goToPreviousRestrictedEditingException'),_0x86eff1['enableCommand']('goToNextRestrictedEditingException');const _0x526bfb=_0x5bfa46['plugins']['get']('RestrictedEditingModeEditing');_0x526bfb['enableCommand']('trackChanges'),_0x526bfb['enableCommand']('acceptSuggestion'),_0x526bfb['enableCommand']('discardSuggestion'),_0x526bfb['enableCommand']('acceptAllSuggestions'),_0x526bfb['enableCommand']('discardAllSuggestions'),_0x526bfb['enableCommand']('acceptSelectedSuggestions'),_0x526bfb['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x266c89{static get['requires'](){return[_0x172fb6];}['init'](){const _0x1aad3b=this['editor'],_0x1ab8da=_0x1aad3b['plugins']['get']('TrackChangesEditing');_0x1ab8da['enableCommand']('shiftEnter'),_0x1aad3b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x1aad3b),{'priority':'high'}),_0x1aad3b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x1aad3b),{'priority':'high'}),_0x1aad3b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x552a23,_0x4cf3a4,_0x561958)=>{_0x561958['options']['showSuggestionHighlights']&&ge(_0x1aad3b,{'showActiveMarker':!0x1})(_0x552a23,_0x4cf3a4,_0x561958);}),_0x1ab8da['descriptionFactory']['registerElementLabel']('softBreak',_0x357425=>o(_0x1aad3b['locale'],'ELEMENT_LINE_BREAK',_0x357425));}}function ge(_0x2136dd,{showActiveMarker:_0x5c701c=!0x0}={}){return(_0x50e8d6,_0xa9dbac,_0x5b4b11)=>{const _0x4344a2=_0x2136dd['plugins']['get']('TrackChangesEditing');if(!_0x5b4b11['consumable']['test'](_0xa9dbac['markerRange'],_0x50e8d6['name']))return;const _0x5eda46=_0x2136dd['model'];for(const _0x7de7b0 of _0xa9dbac['markerRange']['getItems']()){if(!_0x7de7b0['is']('element','softBreak'))continue;const _0x35a05a='deletion'==_0xa9dbac['markerName']['split'](':')[0x1]?'merge':'split',_0x12a147=_0x5b4b11['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35a05a}),_0x3b5b51=_0x5b4b11['mapper']['toViewPosition'](_0x5eda46['createPositionBefore'](_0x7de7b0));_0x5c701c&&_0x4344a2['activeMarkers']['includes'](_0xa9dbac['markerName'])&&_0x5b4b11['writer']['addClass']('ck-suggestion-marker--active',_0x12a147),_0x5b4b11['writer']['insert'](_0x3b5b51,_0x12a147),_0x5b4b11['mapper']['bindElementToMarker'](_0x12a147,_0xa9dbac['markerName']);}};}class St extends _0x266c89{['afterInit'](){const _0x126469=this['editor'],_0x432fd4=_0x126469['model'],_0x3c896a=_0x126469['locale'];if(!_0x126469['plugins']['has']('StandardEditingModeEditing'))return;const _0x31d30c=_0x126469['plugins']['get']('TrackChangesEditing'),_0x211d4e='restrictedEditingException',_0x240e7b=_0x126469['commands']['get'](_0x211d4e);_0x31d30c['enableCommand'](_0x211d4e,(_0x39127a,_0x14d719={})=>{const _0x2b6cf8=_0x432fd4['document']['selection'];if(_0x2b6cf8['isCollapsed'])return void _0x39127a(_0x14d719);const _0x107986=void 0x0!==_0x14d719['forceValue']?_0x14d719['forceValue']:!_0x240e7b['value'];_0x432fd4['change'](()=>{const _0x5b13f9=Array['from'](_0x2b6cf8['getRanges']());for(const _0x5c789a of _0x5b13f9){const _0x81f52a=_0x107986?[_0x5c789a]:io(_0x211d4e,_0x5c789a,_0x432fd4);for(const _0x208549 of _0x81f52a)_0x31d30c['markInlineFormat'](_0x208549,{'commandName':_0x211d4e,'commandParams':[{'forceValue':_0x107986}]});}});}),_0x31d30c['descriptionFactory']['registerDescriptionCallback'](_0x1cf308=>{if('formatBlock'!=_0x1cf308['type']&&'formatInline'!=_0x1cf308['type'])return;const {data:_0x2df56e}=_0x1cf308;return _0x2df56e&&_0x2df56e['commandName']==_0x211d4e?_0x2df56e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c896a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3c896a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x266c89{['afterInit'](){const _0x3c1e61=this['editor'];if(!_0x3c1e61['plugins']['has']('Style')||!_0x3c1e61['plugins']['has']('DataSchema'))return;const _0x26a2f8=_0x3c1e61['plugins']['get']('TrackChangesEditing'),_0x19f13c=_0x3c1e61['locale'],_0x5747e1=_0x3c1e61['config']['get']('style')||{},_0x21fef4=_0x3c1e61['plugins']['get']('GeneralHtmlSupport'),_0x3c9479=_0x3c1e61['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3c1e61['plugins']['get']('DataSchema'),_0x5747e1['definitions']);_0x26a2f8['enableDefaultAttributesIntegration']('style');const _0xde54b0=new Set();for(const _0x222253 of _0x3c9479['block']){const _0x183782=_0x21fef4['getGhsAttributeNameForElement'](_0x222253['element']);_0xde54b0['add'](_0x183782);}const _0x32500b=new Set();for(const _0x1a020b of _0x3c9479['inline']){const _0x438659=_0x21fef4['getGhsAttributeNameForElement'](_0x1a020b['element']);_0x32500b['add'](_0x438659);for(const _0x2df2f5 of _0x1a020b['ghsAttributes'])_0x32500b['add'](_0x2df2f5);}for(const _0x5a52ab of _0xde54b0)_0x26a2f8['registerBlockAttribute'](_0x5a52ab),_0x26a2f8['descriptionFactory']['registerAttributeLabel'](_0x5a52ab,o(_0x19f13c,'FORMAT_STYLE'));for(const _0x1ae8ce of _0x32500b)_0x26a2f8['registerInlineAttribute'](_0x1ae8ce),_0x26a2f8['descriptionFactory']['registerAttributeLabel'](_0x1ae8ce,o(_0x19f13c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10602b=this['editor'],_0x200332=_0x10602b['locale'];_0x10602b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x139a58=>{if('formatBlock'!=_0x139a58['type']&&'formatInline'!=_0x139a58['type'])return;const {data:_0x1d1bbb}=_0x139a58;return _0x1d1bbb&&'style'===_0x1d1bbb['commandName']?_0x1d1bbb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x200332,'*Set\x20format:*\x20%0',_0x1d1bbb['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x200332,'*Remove\x20format:*\x20%0',_0x1d1bbb['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x266c89{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x145a80){super(_0x145a80),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x25070b=this['editor'],_0x2fe64c=_0x25070b['model']['document']['selection'];if(!_0x25070b['plugins']['has']('TableEditing'))return;const _0x2e8a96=_0x25070b['locale'],_0x3af1d0=_0x25070b['plugins']['get']('TrackChangesEditing'),_0x22616e=_0x25070b['plugins']['get']('TableUtils');_0x3af1d0['descriptionFactory']['registerElementLabel']('table',_0x3517ce=>o(_0x2e8a96,'ELEMENT_TABLE',_0x3517ce)),this['_setupColumnsRowsFixing'](),_0x3af1d0['enableCommand']('insertTable'),_0x3af1d0['enableCommand']('selectTableRow'),_0x3af1d0['enableCommand']('selectTableColumn');for(const _0x5f5e07 of['insertTableRowAbove','insertTableRowBelow']){const _0x396e48=_0x25070b['commands']['get'](_0x5f5e07);_0x3af1d0['enableCommand'](_0x5f5e07,_0x213da0=>{_0x25070b['model']['change'](_0x44514c=>{_0x213da0();const _0x42b3e2='above'===_0x396e48['order'],_0x2a8873=_0x22616e['getSelectionAffectedTableCells'](_0x2fe64c),_0x10c161=_0x22616e['getRowIndexes'](_0x2a8873),_0x3b5036=_0x42b3e2?_0x10c161['first']-0x1:_0x10c161['last']+0x1,_0x3c936a=_0x2a8873[0x0]['findAncestor']('table'),_0x35f40c=_0x22616e['createTableWalker'](_0x3c936a,{'startRow':_0x3b5036,'endRow':_0x3b5036}),_0x4c466d=Array['from'](_0x35f40c)['map'](_0x4ddb92=>_0x44514c['createRangeOn'](_0x4ddb92['cell']));_0x3af1d0['markMultiRangeInsertion'](_0x4c466d,'tableRow');});});}for(const _0x335c9c of['insertTableColumnLeft','insertTableColumnRight']){const _0x262b0b=_0x25070b['commands']['get'](_0x335c9c);_0x3af1d0['enableCommand'](_0x335c9c,_0x4b44da=>{_0x25070b['model']['change'](_0x4edf7f=>{_0x4b44da();const _0x2bcbd4='left'===_0x262b0b['order'],_0x5155dc=_0x22616e['getSelectionAffectedTableCells'](_0x2fe64c),_0x34316b=_0x22616e['getColumnIndexes'](_0x5155dc),_0x893d6d=_0x2bcbd4?_0x34316b['first']-0x1:_0x34316b['last']+0x1,_0x4c5249=_0x5155dc[0x0]['findAncestor']('table'),_0x29347a=_0x22616e['createTableWalker'](_0x4c5249,{'startRow':0x0,'column':_0x893d6d,'includeAllSlots':!0x1}),_0x39bd6a=Array['from'](_0x29347a)['map'](_0x2f2b1b=>_0x4edf7f['createRangeOn'](_0x2f2b1b['cell']));_0x3af1d0['markMultiRangeInsertion'](_0x39bd6a,'tableColumn');});});}for(const _0x2ce98a of['removeTableRow','removeTableColumn']){const _0x500352=_0x2ce98a['substr'](0xb),_0x125839=_0x500352['toLowerCase'](),_0x29abc3=_0x125839['substr'](0x0,0x3)+'span',_0x28980b='table'+_0x500352,_0x452ee5='min'+_0x500352,_0xc57fc4='max'+_0x500352;_0x3af1d0['enableCommand'](_0x2ce98a,()=>{_0x25070b['model']['change'](_0x45e0e1=>{const _0xdc392b=_0x22616e['getSelectionAffectedTableCells'](_0x2fe64c),_0x484223=_0xdc392b[0x0]['findAncestor']('table');let _0x4d63a0;if('removeTableRow'==_0x2ce98a){const _0x4e6fab=_0x22616e['getRowIndexes'](_0xdc392b);_0x4d63a0={'startRow':_0x4e6fab['first'],'endRow':_0x4e6fab['last'],'includeAllSlots':!0x0};}else{const _0x26aab8=_0x22616e['getColumnIndexes'](_0xdc392b);_0x4d63a0={'startColumn':_0x26aab8['first'],'endColumn':_0x26aab8['last'],'includeAllSlots':!0x0};}const _0x41557d=_0x22616e['createTableWalker'](_0x484223,_0x4d63a0),_0x3da1c4=Array['from'](_0x41557d)['map'](({cell:_0x3a8f96})=>_0x3a8f96),_0x227c96=Ee(_0x3da1c4['filter'](_0x2e34f2=>_0x2e34f2['hasAttribute'](_0x29abc3))),_0x335e0d=Ee(_0x3da1c4['filter'](_0x28cc76=>!_0x28cc76['hasAttribute'](_0x29abc3)))['map'](_0x856d3c=>_0x45e0e1['createRangeOn'](_0x856d3c)),_0x5bf4e1=_0x3af1d0['markMultiRangeDeletion'](_0x335e0d,_0x28980b);if(_0x5bf4e1&&('tableRow'==_0x5bf4e1['subType']||'tableColumn'==_0x5bf4e1['subType'])){const _0x361804=this['_getSuggestionCoords'](_0x5bf4e1);for(const _0xd19b00 of _0x227c96){const _0x5755d9=_0x45e0e1['createRangeOn'](_0xd19b00),_0xc68c7f=_0x22616e['getCellLocation'](_0xd19b00),_0x5edc6b=_0xd19b00['getAttribute'](_0x29abc3)-0x1,_0x363a1b=_0x361804[_0x452ee5],_0x3fc826=_0x361804[_0xc57fc4];_0x363a1b<=_0xc68c7f[_0x125839]&&_0xc68c7f[_0x125839]+_0x5edc6b<=_0x3fc826&&_0x5bf4e1['addRange'](_0x5755d9);}}});});}function _0x26f810(_0x5ec30d){const _0x1b6511=Array['from'](_0x2fe64c['getRanges']())['map'](_0x5a268c=>_0x542340['fromRange'](_0x5a268c));_0x25070b['model']['change'](_0x344c70=>{const _0x47a64a=_0x344c70['batch'];_0x5ec30d=_0x5ec30d['filter'](_0x414c93=>'$graveyard'!=_0x414c93['root']['rootName']),_0x344c70['setSelection'](_0x5ec30d),_0x25070b['commands']['get']('removeTableRow')['refresh'](),_0x25070b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x25070b['model']['enqueueChange'](()=>{_0x25070b['model']['enqueueChange'](_0x47a64a,_0x5dd98b=>{const _0x279b09=_0x1b6511['filter'](_0x4fa9cf=>'$graveyard'!=_0x4fa9cf['root']['rootName']);_0x279b09['length']>0x0&&_0x5dd98b['setSelection'](_0x279b09);for(const _0x7f0b8a of _0x1b6511)_0x7f0b8a['detach']();});});});}function _0x2b1176(_0x1db283){_0x25070b['model']['change'](_0x35fd98=>{const _0x60d28=Array['from'](_0x2fe64c['getRanges']())['map'](_0xf3c35e=>_0x542340['fromRange'](_0xf3c35e)),_0x4a8b84=[];for(const _0x2079c3 of _0x1db283)for(const _0x5065dc of _0x2079c3['getItems']({'shallow':!0x0}))_0x4a8b84['push'](_0x5065dc);for(const _0x4b2a9b of _0x4a8b84)'$graveyard'!=_0x4b2a9b['root']['rootName']&&(_0x35fd98['setSelection'](_0x35fd98['createPositionAt'](_0x4b2a9b,0x0)),_0x25070b['commands']['get']('removeTableColumn')['refresh'](),_0x25070b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xf8217a=_0x60d28['filter'](_0x4de1b7=>'$graveyard'!=_0x4de1b7['root']['rootName']);_0xf8217a['length']>0x0&&_0x35fd98['setSelection'](_0xf8217a);for(const _0x57f8c6 of _0x60d28)_0x57f8c6['detach']();});}function _0x48cb72(_0x3e9f19,_0x142321){return _0x142321['every'](_0x2433f0=>_0x3e9f19['some'](_0x2d8703=>_0x2d8703['end']['isEqual'](_0x2433f0['start'])||_0x2433f0['end']['isEqual'](_0x2d8703['start'])));}function _0x320d86(_0x4f99cf,_0x52951c){return!_0x4f99cf['some'](_0x40554e=>_0x52951c['some'](_0x35f326=>_0x40554e['isIntersecting'](_0x35f326)))&&_0x4f99cf['some'](_0x3dc47d=>_0x52951c['some'](_0x312620=>_0x3dc47d['end']['isTouching'](_0x312620['start'])));}_0x25070b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b9ea0,_0x27abbb,_0x4e9485)=>{if(!_0x4e9485['options']['showSuggestionHighlights'])return;const _0x8db61=_0x27abbb['item'];if(!_0x8db61)return;const _0x80230d=_0x4e9485['mapper']['toViewElement'](_0x8db61);function _0x387675(_0x43e5a4){return Array['isArray'](_0x43e5a4)?_0x43e5a4:[_0x43e5a4];}_0x80230d&&'tableCell'===_0x8db61['name']&&_0x51ff30(_0x80230d,_0x4e9485['writer'],(_0x49070c,_0x10208d,_0xf4cb25)=>_0xf4cb25['addClass'](_0x387675(_0x10208d['classes']),_0x49070c),(_0x48beb7,_0x5567ec,_0x46706c)=>_0x46706c['removeClass'](_0x387675(_0x5567ec['classes']),_0x48beb7));},{'priority':'highest'}),_0x3af1d0['descriptionFactory']['registerDescriptionCallback'](_0x1b0157=>{if('insertion'!=_0x1b0157['type']&&'deletion'!=_0x1b0157['type'])return;const _0x26d069=_0x1b0157['getContainedElement']();if(null!=_0x26d069&&_0x26d069['is']('element','table')){if('insertion'==_0x1b0157['type']){const _0x981d4e=_0x1b0157['getItems']()['filter'](_0x19a655=>_0x19a655['is']('$textProxy'))['map'](_0x5276b7=>_0x5276b7['data']);if(_0x981d4e['length'])return{'type':'insertion','content':o(_0x2e8a96,'*Insert:*\x20%0',o(_0x2e8a96,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x981d4e['join']('\x20')+'\x22'))};}if('deletion'==_0x1b0157['type']){const _0x37e5d4=_0x1b0157['getItems']()['filter'](_0xe72d1b=>_0xe72d1b['is']('$textProxy'))['map'](_0x4ad25c=>_0x4ad25c['data']);if(_0x37e5d4['length'])return{'type':'deletion','content':o(_0x2e8a96,'*Remove:*\x20%0',o(_0x2e8a96,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37e5d4['join']('\x20')+'\x22'))};}}}),_0x3af1d0['descriptionFactory']['registerDescriptionCallback'](_0x452fa5=>{if('tableRow'==_0x452fa5['subType']){const _0x2d420c=_0x452fa5['getItems']()['filter'](_0x4d645d=>_0x4d645d['is']('$textProxy'))['map'](_0x40bf80=>_0x40bf80['data']),_0x1f2814=this['_getSuggestionCoords'](_0x452fa5),_0x51500b=_0x1f2814['maxRow']-_0x1f2814['minRow']+0x1;if('insertion'==_0x452fa5['type'])return _0x2d420c['length']?{'type':'insertion','content':o(_0x2e8a96,'*Insert:*\x20%0',o(_0x2e8a96,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x51500b,'\x22'+_0x2d420c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2e8a96,'*Insert:*\x20%0',o(_0x2e8a96,'ELEMENT_TABLE_ROW',_0x51500b))};if('deletion'==_0x452fa5['type'])return _0x2d420c['length']?{'type':'deletion','content':o(_0x2e8a96,'*Remove:*\x20%0',o(_0x2e8a96,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x51500b,'\x22'+_0x2d420c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2e8a96,'*Remove:*\x20%0',o(_0x2e8a96,'ELEMENT_TABLE_ROW',_0x51500b))};}if('tableColumn'==_0x452fa5['subType']){const _0xb50e32=_0x452fa5['getItems']()['filter'](_0x19e064=>_0x19e064['is']('$textProxy'))['map'](_0x5dfb1c=>_0x5dfb1c['data']),_0x343e20=this['_getSuggestionCoords'](_0x452fa5),_0xdfa918=_0x343e20['maxColumn']-_0x343e20['minColumn']+0x1;if('insertion'==_0x452fa5['type'])return _0xb50e32['length']?{'type':'insertion','content':o(_0x2e8a96,'*Insert:*\x20%0',o(_0x2e8a96,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdfa918,'\x22'+_0xb50e32['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2e8a96,'*Insert:*\x20%0',o(_0x2e8a96,'ELEMENT_TABLE_COLUMN',_0xdfa918))};if('deletion'==_0x452fa5['type'])return _0xb50e32['length']?{'type':'deletion','content':o(_0x2e8a96,'*Remove:*\x20%0',o(_0x2e8a96,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xdfa918,'\x22'+_0xb50e32['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2e8a96,'*Remove:*\x20%0',o(_0x2e8a96,'ELEMENT_TABLE_COLUMN',_0xdfa918))};}}),_0x3af1d0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x26f810),_0x3af1d0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x26f810),_0x3af1d0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2b1176),_0x3af1d0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2b1176),_0x3af1d0['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x48cb72),_0x3af1d0['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x48cb72),_0x3af1d0['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x320d86),_0x3af1d0['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x320d86);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1341ac=this['editor'],_0x33dee3=_0x1341ac['model']['document']['selection'];return(_0x5d5d66,_0x519eee)=>{_0x1341ac['model']['change'](_0x9a077b=>{const {commandName:_0x34454e,commandParams:_0x3c2837}=_0x519eee;let _0x5d8024=_0x5d5d66[0x0]['end']['nodeBefore'];_0x3c2837&&_0x3c2837[0x0]&&!0x1===_0x3c2837[0x0]['forceValue']&&(_0x5d8024=_0x5d5d66[0x0]['start']['nodeAfter']);const _0x3909f1=_0x9a077b['createRangeIn'](_0x5d8024);if('$graveyard'==_0x3909f1['root']['rootName'])return;const _0x24c41c=Array['from'](_0x33dee3['getRanges']())['map'](_0x160a59=>_0x542340['fromRange'](_0x160a59));_0x9a077b['setSelection'](_0x3909f1),_0x1341ac['commands']['get'](_0x34454e)['refresh'](),_0x3c2837['push']({'forceDefaultExecution':!0x0}),_0x1341ac['execute'](_0x34454e,..._0x3c2837);const _0x4d0c81=_0x24c41c['filter'](_0x511c3d=>'$graveyard'!=_0x511c3d['root']['rootName']);_0x4d0c81['length']>0x0&&_0x9a077b['setSelection'](_0x4d0c81);for(const _0x58b291 of _0x24c41c)_0x58b291['detach']();});};}['_getCoordsForCells'](_0x1a255b){const _0x9c90e1=this['editor']['plugins']['get']('TableUtils');let _0x538d67=Number['MAX_SAFE_INTEGER'],_0x509b20=Number['MIN_SAFE_INTEGER'],_0x13fc9e=Number['MAX_SAFE_INTEGER'],_0xcb98f7=Number['MIN_SAFE_INTEGER'];for(const _0x3e6bd6 of _0x1a255b){if('$graveyard'==_0x3e6bd6['root']['rootName'])continue;const {row:_0x6855b2,column:_0x390d10}=_0x9c90e1['getCellLocation'](_0x3e6bd6),_0x15a48c=_0x3e6bd6['hasAttribute']('rowspan')?_0x3e6bd6['getAttribute']('rowspan')-0x1:0x0,_0x5163fa=_0x3e6bd6['hasAttribute']('colspan')?_0x3e6bd6['getAttribute']('colspan')-0x1:0x0;_0x538d67=_0x6855b2<_0x538d67?_0x6855b2:_0x538d67,_0x509b20=_0x6855b2+_0x15a48c>_0x509b20?_0x6855b2+_0x15a48c:_0x509b20,_0x13fc9e=_0x390d10<_0x13fc9e?_0x390d10:_0x13fc9e,_0xcb98f7=_0x390d10+_0x5163fa>_0xcb98f7?_0x390d10+_0x5163fa:_0xcb98f7;}return{'minRow':_0x538d67,'maxRow':_0x509b20,'minColumn':_0x13fc9e,'maxColumn':_0xcb98f7};}['_setupColumnsRowsFixing'](){const _0x31e749=this['editor'],_0x415943=_0x31e749['plugins']['get']('TrackChangesEditing'),_0x5f4a8c=_0x31e749['plugins']['get']('TableUtils');_0x31e749['model']['document']['on']('change:data',()=>{const _0x2f5b68=Array['from'](_0x31e749['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1be9a6,data:_0x300339}of _0x2f5b68){const {group:_0x676981,id:_0x5c6014,subType:_0x986946}=_0x415943['_splitMarkerName'](_0x1be9a6);if('suggestion'!=_0x676981)continue;if(null!=_0x300339['oldRange'])continue;const _0xb15f27=_0x415943['getSuggestion'](_0x5c6014);this['_tablePostFixingSubtypes']['includes'](_0x986946)&&this['_tableSuggestions']['add'](_0xb15f27);}},{'priority':'low'});const _0x18da29=(_0x59e985,_0x189de5)=>{let _0x5b5aa6=!0x1;const _0x2079e5=_0x189de5['createRangeOn'](_0x59e985),_0x523db3=_0x59e985['findAncestor']('table'),_0x4207ec=_0x5f4a8c['getCellLocation'](_0x59e985);for(const _0xab6f9c of this['_tableSuggestions']){const _0x1fcf7c=_0xab6f9c['subType'],_0x44a6d6=_0x1fcf7c['startsWith']('tablePaste'),_0x57162c=_0x1fcf7c['substr'](_0x44a6d6?0xa:0x5),_0x463fc8=_0x57162c['toLowerCase'](),_0x4b340f=_0x463fc8['substr'](0x0,0x3)+'span',_0x5c829f='min'+_0x57162c,_0x2ae19b='max'+_0x57162c;if(!_0xab6f9c['isInContent'])continue;if(_0x523db3!=_0xab6f9c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xab6f9c['isIntersectingWithRange'](_0x2079e5))continue;const _0x183caf=_0x59e985['hasAttribute'](_0x4b340f)?_0x59e985['getAttribute'](_0x4b340f)-0x1:0x0,_0x511c42=this['_getSuggestionCoords'](_0xab6f9c),_0x30a64c=_0x511c42[_0x5c829f],_0x2db45f=_0x511c42[_0x2ae19b];_0x30a64c<=_0x4207ec[_0x463fc8]&&_0x4207ec[_0x463fc8]+_0x183caf<=_0x2db45f&&(_0xab6f9c['addRange'](_0x2079e5),_0x5b5aa6=!0x0);}return _0x5b5aa6;};_0x31e749['model']['document']['registerPostFixer'](_0x1b5d4a=>{let _0x238171=!0x1;for(const _0x4d4c30 of _0x31e749['model']['document']['differ']['getChanges']())if('insert'==_0x4d4c30['type']){if('tableRow'==_0x4d4c30['name']){for(const _0x199320 of _0x4d4c30['position']['nodeAfter']['getChildren']())_0x238171=_0x238171||_0x18da29(_0x199320,_0x1b5d4a);}else'tableCell'==_0x4d4c30['name']&&(_0x238171=_0x238171||_0x18da29(_0x4d4c30['position']['nodeAfter'],_0x1b5d4a));}return _0x238171;});}['_getSuggestionCoords'](_0x17754e){return this['_getCoordsForCells'](_0x17754e['getRanges']()['map'](_0x22a5b9=>_0x22a5b9['start']['nodeAfter']));}}function Ee(_0x303dec){return Array['from'](new Set(_0x303dec)['values']());}class vt extends _0x266c89{static get['requires'](){return[It];}['afterInit'](){const _0xb6997=this['editor'],_0x355a9a=_0xb6997['model']['document']['selection'],_0x2d645d=_0xb6997['locale'];if(!_0xb6997['plugins']['has']('TableEditing'))return;const _0x3398bb=_0xb6997['plugins']['get']('TrackChangesEditing'),_0x1cd1b9=_0xb6997['plugins']['get']('TableUtils'),_0x19c00b=_0xb6997['plugins']['get'](It);_0x19c00b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3398bb['enableCommand']('mergeTableCells',()=>{const _0x1ea65d=_0x1cd1b9['getSelectionAffectedTableCells'](_0xb6997['model']['document']['selection']);_0xb6997['model']['change'](()=>{_0x3398bb['markMultiRangeBlockFormat'](_0x1ea65d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xb6997['commands']['get']('mergeTableCells')['on']('execute',(_0x5399d3,_0x456b24)=>{_0xb6997['commands']['get']('trackChanges')['value']&&(_0x456b24['length']>0x0&&_0x456b24[_0x456b24['length']-0x1]&&_0x456b24[_0x456b24['length']-0x1]['forceDefaultExecution']||_0x3398bb['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5399d3['stop']());},{'priority':'highest'});for(const _0x4d7dd4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x40737e=_0xb6997['commands']['get'](_0x4d7dd4);_0x3398bb['enableCommand'](_0x4d7dd4,()=>{const _0x63d135=_0xb6997['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x406666=>_0x406666['is']('element','tableCell')),_0x5f52e2=_0x40737e['value'];_0xb6997['model']['change'](()=>{_0x3398bb['markMultiRangeBlockFormat']([_0x63d135,_0x5f52e2],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x281b75 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x39fe9a=_0xb6997['commands']['get'](_0x281b75);_0x3398bb['enableCommand'](_0x281b75,()=>{const _0x540bf9=_0x1cd1b9['getSelectionAffectedTableCells'](_0xb6997['model']['document']['selection'])[0x0],_0x30cd93=_0x540bf9['findAncestor']('table'),{column:_0x226d2f,row:_0x5e747e}=_0x1cd1b9['getCellLocation'](_0x540bf9);let _0xbceaa9=[];if('horizontally'==_0x39fe9a['direction']){const _0x473ba5=_0x1cd1b9['createTableWalker'](_0x30cd93,{'startRow':_0x5e747e,'endRow':_0x5e747e,'includeAllSlots':!0x0});_0xbceaa9=Array['from'](_0x473ba5)['map'](_0x143678=>_0x143678['cell']);}else{const _0x370824=_0x1cd1b9['createTableWalker'](_0x30cd93,{'column':_0x226d2f,'includeAllSlots':!0x0});_0xbceaa9=Array['from'](_0x370824)['map'](_0x14f854=>_0x14f854['cell']);}_0xb6997['model']['change'](_0x455672=>{_0x3398bb['markBlockFormat'](_0x455672['createRangeOn'](_0x540bf9),{'commandName':_0x281b75,'commandParams':[]},_0xbceaa9,_0x281b75);});});}_0x3398bb['descriptionFactory']['registerDescriptionCallback'](_0x5ca141=>{if('formatBlock'!=_0x5ca141['type']&&'formatInline'!=_0x5ca141['type'])return;const {data:_0x4f85f3}=_0x5ca141;return _0x4f85f3&&'mergeTableCells'==_0x4f85f3['commandName']?{'type':'format','content':o(_0x2d645d,'*Merge\x20cells*')}:void 0x0;}),_0x3398bb['descriptionFactory']['registerDescriptionCallback'](_0x341774=>{if('formatBlock'!=_0x341774['type']&&'formatInline'!=_0x341774['type'])return;const {data:_0x2f73c4}=_0x341774;return _0x2f73c4?'splitTableCellVertically'==_0x2f73c4['commandName']?{'type':'format','content':o(_0x2d645d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2f73c4['commandName']?{'type':'format','content':o(_0x2d645d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x22c0d6=_0x19c00b['_acceptFormatSuggestionCallbackFactory']();for(const _0x5b1f36 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3398bb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b1f36,'accept',_0x22c0d6);for(const _0x47c58b of['splitTableCellVertically','splitTableCellHorizontally'])_0x3398bb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47c58b,'accept',_0x22c0d6);_0x3398bb['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x379211=>{_0xb6997['model']['change'](_0x346ddd=>{const _0x227284=Array['from'](_0x355a9a['getRanges']())['map'](_0x2540a2=>_0x542340['fromRange'](_0x2540a2));_0x346ddd['setSelection'](_0x379211),_0xb6997['commands']['get']('mergeTableCells')['refresh'](),_0xb6997['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2ea2fe=_0x227284['filter'](_0x22a497=>'$graveyard'!=_0x22a497['root']['rootName']);_0x2ea2fe['length']>0x0&&_0x346ddd['setSelection'](_0x2ea2fe);for(const _0x367b7a of _0x227284)_0x367b7a['detach']();});});for(const _0x1c2897 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x47b98e=_0xb6997['commands']['get'](_0x1c2897);_0x47b98e['on']('set:isEnabled',(_0x30e42c,_0x195087,_0x3de6c5)=>{if(_0x3de6c5){const _0x186a6b=_0xb6997['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13a3c5=>_0x13a3c5['is']('element','tableCell'));this['_areMergableCells'](_0x47b98e['value'],_0x186a6b)||(_0x30e42c['return']=!0x1,_0x30e42c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xf15eea=this['editor']['commands']['get']('mergeTableCells'),_0x1aa344=this['editor']['plugins']['get']('TableUtils');if(!_0xf15eea['isEnabled'])return!0x1;const _0x1c8e44=_0x1aa344['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x534d65 of _0x1c8e44)for(const _0x14e899 of _0x1c8e44)if(_0x534d65!=_0x14e899&&!this['_areMergableCells'](_0x534d65,_0x14e899))return!0x1;return!0x0;}['_areMergableCells'](_0x34c1d9,_0x54a80f){const _0x3eff92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ed8d9=this['editor']['model']['createRangeOn'](_0x34c1d9),_0x31449f=this['editor']['model']['createRangeOn'](_0x54a80f),_0x355a03=new Set(),_0x167844=new Set();for(const _0x1c1016 of _0x3eff92['getSuggestions']())if(('insertion'==_0x1c1016['type']||'deletion'==_0x1c1016['type']||'mergeTableCells'==_0x1c1016['subType'])&&_0x1c1016['isInContent']){for(const _0x1a5794 of _0x1c1016['getRanges']())_0x1a5794['containsRange'](_0x2ed8d9,!0x0)&&_0x355a03['add'](_0x1c1016['type']+':'+_0x1c1016['author']['id']),_0x1a5794['containsRange'](_0x31449f,!0x0)&&_0x167844['add'](_0x1c1016['type']+':'+_0x1c1016['author']['id']);}if(_0x355a03['size']!=_0x167844['size'])return!0x1;for(const _0x309d87 of _0x355a03)if(!_0x167844['has'](_0x309d87))return!0x1;return!0x0;}}class Ct extends _0x266c89{static get['requires'](){return[It];}['afterInit'](){const _0x2240d2=this['editor'];if(!_0x2240d2['plugins']['has']('TableEditing'))return;const _0x384f98=_0x2240d2['locale'],_0x44bca1=_0x2240d2['plugins']['get']('TrackChangesEditing');_0x44bca1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x44bca1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x44bca1['registerBlockAttribute']('headingRows'),_0x44bca1['registerBlockAttribute']('headingColumns'),_0x44bca1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x384f98,'FORMAT_HEADER_ROW')),_0x44bca1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x384f98,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xa25ba0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39bfb5=this['editor']['plugins']['get']('TableUtils'),_0x284c3f=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x355e6d({showActiveMarker:_0x48dc99=!0x0,setDataAttribute:_0x388734=!0x0}={}){return(_0x28d23f,_0x37c5dd,_0x54252c)=>{const {type:_0x5bfb10,id:_0x2914e5}=_0xa25ba0['_splitMarkerName'](_0x37c5dd['markerName']),_0x17630a=_0xa25ba0['getSuggestion'](_0x2914e5),_0x2eeebc=_0x17630a['data'];if('formatBlock'!=_0x17630a['type']||!_0x2eeebc||'setTableColumnHeader'!=_0x2eeebc['commandName'])return;if(_0x37c5dd['item'])return void _0x28d23f['stop']();if(!_0x54252c['consumable']['consume'](_0x37c5dd['markerRange'],_0x28d23f['name']))return;const _0x44739d=_0x37c5dd['markerRange']['start']['nodeAfter'],_0x132117=_0x37c5dd['markerRange']['end']['nodeBefore'],_0x4af4ee=_0x44739d['parent']['parent'],{column:_0x2a520f}=_0x39bfb5['getCellLocation'](_0x44739d),{column:_0x1e1a99}=_0x39bfb5['getCellLocation'](_0x132117);for(let _0x3a4db5=_0x2a520f;_0x3a4db5<=_0x1e1a99;_0x3a4db5++){const _0x12937e=_0x39bfb5['createTableWalker'](_0x4af4ee,{'column':_0x3a4db5,'includeAllSlots':!0x1});for(const _0x1c256a of _0x12937e){const _0x1ad0c7=_0x1c256a['cell'],_0x55c584=_0x54252c['mapper']['toViewElement'](_0x1ad0c7);_0x54252c['writer']['addClass']('ck-suggestion-marker-'+_0x5bfb10,_0x55c584),_0x388734&&_0x54252c['writer']['setAttribute']('data-suggestion',_0x2914e5,_0x55c584),_0x54252c['mapper']['bindElementToMarker'](_0x55c584,_0x37c5dd['markerName']),_0x48dc99&&(_0xa25ba0['activeMarkers']['includes'](_0x37c5dd['markerName'])?_0x54252c['writer']['addClass']('ck-suggestion-marker--active',_0x55c584):_0x54252c['writer']['removeClass']('ck-suggestion-marker--active',_0x55c584));}}};}_0xa25ba0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x284c3f),_0xa25ba0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x284c3f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x355e6d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2ded8b,_0x21a009,_0x4461f5)=>{_0x4461f5['options']['showSuggestionHighlights']&&_0x355e6d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2ded8b,_0x21a009,_0x4461f5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x359630,_0x1421ee,_0x1c151c)=>{const {type:_0x3b54e9,id:_0x54a158}=_0xa25ba0['_splitMarkerName'](_0x1421ee['markerName']),_0x335a62=_0xa25ba0['getSuggestion'](_0x54a158),_0x323b60=_0x335a62['data'];if('formatBlock'!=_0x335a62['type']||!_0x323b60||'setTableColumnHeader'!=_0x323b60['commandName'])return;const _0x205238=_0x1c151c['mapper']['markerNameToElements'](_0x1421ee['markerName']);if(_0x205238){for(const _0x157c87 of _0x205238)_0x1c151c['writer']['removeClass']('ck-suggestion-marker-'+_0x3b54e9,_0x157c87),_0x1c151c['writer']['removeClass']('ck-suggestion-marker--active',_0x157c87),_0x1c151c['writer']['removeAttribute']('data-suggestion',_0x157c87),_0x1c151c['mapper']['unbindElementFromMarkerName'](_0x157c87,_0x1421ee['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27c9cb=this['editor'],_0x183ebc=_0x27c9cb['locale'];function _0x59e732(_0x166691){return{'type':'format','content':o(_0x183ebc,'*Format:*\x20%0',_0x166691)};}_0x27c9cb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24336f=>{if('formatBlock'!=_0x24336f['type'])return;const {data:_0x251d79}=_0x24336f;if(_0x251d79){if('setTableRowHeader'==_0x251d79['commandName']){const _0xd53630=_0x251d79['commandParams'][0x0]['forceValue'];return _0x59e732(o(_0x183ebc,_0xd53630?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x251d79['commandName']){const _0x2be7e7=_0x251d79['commandParams'][0x0]['forceValue'];return _0x59e732(o(_0x183ebc,_0x2be7e7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Ce=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Pe=Object['fromEntries'](Ce['map'](_0x4720b3=>[_0x4720b3,null]));class _t extends _0x266c89{static get['requires'](){return[It];}['afterInit'](){const _0x4dd354=this['editor'];if(!_0x4dd354['plugins']['has']('TableClipboard'))return;const _0x38740d=_0x4dd354['plugins']['get']('TrackChangesEditing'),_0x1bb628=_0x4dd354['plugins']['get']('TableUtils'),_0x14b73b=_0x4dd354['plugins']['get'](It),_0x1f0dc7=_0x4dd354['plugins']['get']('TableClipboard');_0x14b73b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4dd354['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4dd354['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x55b2d5=null;_0x4dd354['model']['on']('insertContent',(_0x406ca9,_0x3ab2c6)=>{const [_0x1b458f,_0x3be79b]=_0x3ab2c6,_0x56f235=_0x3ab2c6[_0x3ab2c6['length']-0x1];_0x56f235&&_0x56f235['forceDefaultExecution']||_0x38740d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5eb999,_0x552274,_0x26c67b,_0x165e1a,_0x37056c){if(_0x552274&&!_0x552274['is']('documentSelection'))return!0x1;const _0x300b81=_0x37056c['getTableIfOnlyTableInContent'](_0x5eb999,_0x26c67b);if(!_0x300b81||!ke(_0x300b81,void 0x0,_0x165e1a))return!0x1;const _0x500537=_0x165e1a['getSelectionAffectedTableCells'](_0x26c67b['document']['selection']);if(!_0x500537['length'])return!0x1;const _0x4cc7a5=_0x500537[0x0]['findAncestor']('table'),_0x47e7c0=_0x165e1a['getRowIndexes'](_0x500537),_0x42e95d=_0x165e1a['getColumnIndexes'](_0x500537),_0x450d11={'startRow':_0x47e7c0['first'],'endRow':_0x47e7c0['last'],'startColumn':_0x42e95d['first'],'endColumn':_0x42e95d['last']};return 0x1==_0x500537['length']&&(_0x450d11['endRow']+=_0x165e1a['getRows'](_0x300b81)-0x1,_0x450d11['endColumn']+=_0x165e1a['getColumns'](_0x300b81)-0x1),ke(_0x4cc7a5,_0x450d11,_0x165e1a);}(_0x1b458f,_0x3be79b,_0x4dd354['model'],_0x1bb628,_0x1f0dc7)&&(_0x406ca9['stop'](),_0x55b2d5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4dd354['model']['change'](()=>{_0x4dd354['model']['insertContent'](_0x3ab2c6[0x0],_0x3ab2c6[0x1],_0x3ab2c6[0x2],{'forceDefaultExecution':!0x0});const _0x5e7eed=_0x49822d(),{rowInsertionRanges:_0x438041,columnInsertionRanges:_0x1d7f70,insertionRanges:_0x4fe832,deletionRanges:_0x140b09,cells:_0x93bcf4}=_0x55b2d5;_0x438041['length']&&_0x38740d['markMultiRangeInsertion'](_0x438041,'tablePasteRow',{'tablePasteChainId':_0x5e7eed}),_0x1d7f70['length']&&_0x38740d['markMultiRangeInsertion'](_0x1d7f70,'tablePasteColumn',{'tablePasteChainId':_0x5e7eed}),_0x4fe832['length']&&(_0x38740d['markMultiRangeInsertion'](_0x4fe832,'tablePaste',{'tablePasteChainId':_0x5e7eed,'skipNestingCheck':!0x0}),_0x4fe832['forEach'](_0x4152c5=>_0x4152c5['detach']?.())),_0x140b09['length']&&(_0x38740d['markMultiRangeDeletion'](_0x140b09,'tablePaste',{'tablePasteChainId':_0x5e7eed,'skipNestingCheck':!0x0}),_0x140b09['forEach'](_0x59ff17=>_0x59ff17['detach']?.()));const _0x503210=_0x38740d['markMultiRangeBlockFormat'](_0x93bcf4['map'](({element:_0x200d16})=>_0x200d16),{'formatGroupId':_0x49822d()},[],'tablePasteCell',{'tablePasteChainId':_0x5e7eed});if(_0x503210){const _0x1d61c4=_0x503210['getMarkers'](),_0xadf645=[];for(const {element:_0x33f613,attributes:_0xf7589d}of _0x93bcf4){if(!_0xf7589d)continue;const _0x4832c9=_0x4dd354['model']['createRangeOn'](_0x33f613),_0x12aefd=_0x1d61c4['find'](_0xaf58b4=>_0xaf58b4['getRange']()['isEqual'](_0x4832c9));_0x12aefd&&_0xadf645['push']([_0x12aefd['name'],_0xf7589d]);}_0xadf645['length']&&_0x503210['setAttribute']('markerAttributes',Object['fromEntries'](_0xadf645));}_0x55b2d5=null;}));},{'priority':_0x504bb7['high']+0xa}),_0x4dd354['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xb8b80b,_0x15c4c2)=>{const [_0x3f9495,_0x3c7561,,_0x2b6bb4]=_0x15c4c2;if(!_0x55b2d5)return;_0xb8b80b['stop']();const _0x4c1a0a=_0x3f9495['cell'],_0x972bba=_0x3c7561,_0x267000=we(_0x4c1a0a),_0x24f0cd=we(_0x972bba);_0xb8b80b['return']=_0x4c1a0a;let _0x47811f=null,_0x34e5da=null;if(_0x24f0cd||_0x267000){if(_0x267000&&!_0x24f0cd){_0x2b6bb4['remove'](_0x4c1a0a['getChild'](0x0));for(const _0x448c2c of Array['from'](_0x972bba['getChildren']()))_0x2b6bb4['insert'](_0x448c2c,_0x4c1a0a,'end');const _0x421f13=_0x55b2d5['rowInsertionIndexes']['includes'](_0x3f9495['row']),_0x2f2885=_0x55b2d5['columnInsertionIndexes']['includes'](_0x3f9495['column']);_0x421f13||_0x2f2885||(_0x47811f=_0x542340['fromRange'](_0x2b6bb4['createRangeIn'](_0x4c1a0a)));}else _0x24f0cd&&!_0x267000&&(_0x34e5da=_0x2b6bb4['createRangeIn'](_0x4c1a0a));}else{const _0x266f43=_0x2b6bb4['createElement']('tableCellSuggestion'),_0x45ede3=_0x2b6bb4['createElement']('tableCellSuggestion');_0x2b6bb4['wrap'](_0x2b6bb4['createRangeIn'](_0x4c1a0a),_0x45ede3),_0x2b6bb4['insert'](_0x266f43,_0x4c1a0a,0x0);for(const _0x513f87 of Array['from'](_0x972bba['getChildren']()))_0x2b6bb4['insert'](_0x513f87,_0x266f43,'end');_0x47811f=_0x542340['fromRange'](_0x2b6bb4['createRangeOn'](_0x266f43)),_0x34e5da=_0x542340['fromRange'](_0x2b6bb4['createRangeOn'](_0x45ede3));}const _0x1b2dc3=Array['from'](_0x972bba['getAttributes']())['filter'](([_0x519026])=>Ce['includes'](_0x519026));_0x55b2d5['cells']['push']({'element':_0x4c1a0a,'attributes':_0x1b2dc3['length']?Object['fromEntries'](_0x1b2dc3):null}),_0x47811f&&_0x55b2d5['insertionRanges']['push'](_0x47811f),_0x34e5da&&_0x55b2d5['deletionRanges']['push'](_0x34e5da);},{'priority':'high'}),_0x1bb628['on']('insertColumns',(_0x238170,_0x5b8ea2)=>{const [_0x5481ba,_0x159886={}]=_0x5b8ea2;if(!_0x55b2d5)return;const _0x12cc72=_0x159886['at']||0x0,_0x90872a=_0x159886['columns']||0x1;_0x55b2d5['columnInsertionIndexes']=new Array(_0x90872a)['fill'](_0x12cc72)['map']((_0x4e28b7,_0x3ab61f)=>_0x4e28b7+_0x3ab61f);for(const {cell:_0xd51940}of _0x1bb628['createTableWalker'](_0x5481ba,{'startColumn':_0x12cc72,'endColumn':_0x12cc72+_0x90872a-0x1}))_0x55b2d5['columnInsertionRanges']['push'](_0x4dd354['model']['createRangeOn'](_0xd51940));},{'priority':'low'}),_0x1bb628['on']('insertRows',(_0x4ee330,_0x17a76f)=>{const [_0x1fa462,_0x207d0d={}]=_0x17a76f;if(!_0x55b2d5)return;const _0x4a31bd=_0x207d0d['at']||0x0,_0x5e68b9=_0x207d0d['rows']||0x1;_0x55b2d5['rowInsertionIndexes']=new Array(_0x5e68b9)['fill'](_0x4a31bd)['map']((_0x37fde5,_0x5be526)=>_0x37fde5+_0x5be526);for(const {cell:_0x20afd3}of _0x1bb628['createTableWalker'](_0x1fa462,{'startRow':_0x4a31bd,'endRow':_0x4a31bd+_0x5e68b9-0x1}))_0x55b2d5['rowInsertionRanges']['push'](_0x4dd354['model']['createRangeOn'](_0x20afd3));},{'priority':'low'}),_0x38740d['descriptionFactory']['registerDescriptionCallback'](_0x42d978=>{if(_0x42d978['subType']&&_0x42d978['subType']['startsWith']('tablePaste'))return _0x42d978['previous']?{}:{'type':'insertion','content':o(_0x4dd354['locale'],'*Replace\x20table\x20cells*')};});const _0x2c4a67=()=>!0x1;for(const _0x3c1665 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x38740d['_suggestionFactory']['registerCustomCallback']('insertion',_0x3c1665,'join',_0x2c4a67),_0x38740d['_suggestionFactory']['registerCustomCallback']('deletion',_0x3c1665,'join',_0x2c4a67),_0x38740d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c1665,'join',_0x2c4a67);_0x38740d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2c4a67),_0x38740d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1428dd,_0x565ea9,_0x48a239)=>{const _0x396b1=_0x1428dd['map'](_0x162f86=>_0x162f86['getContainedElement']())['filter'](_0x310fd6=>_0x310fd6),_0x20b721=new Map(_0x396b1['map'](_0x1b7058=>[_0x1b7058,null]));if(_0x55b2d5){for(const {element:_0x5b1b88,attributes:_0x1d7711}of _0x55b2d5['cells'])_0x1d7711&&_0x20b721['set'](_0x5b1b88,_0x1d7711);}else{if(_0x48a239&&_0x48a239['markerAttributes'])for(const [_0x28da20,_0x286dc3]of Object['entries'](_0x48a239['markerAttributes'])){const _0x2ea5ad=_0x4dd354['model']['markers']['get'](_0x28da20),_0x1f85b9=_0x2ea5ad?_0x2ea5ad['getRange']()['getContainedElement']():null;_0x1f85b9&&_0x20b721['set'](_0x1f85b9,_0x286dc3);}}_0x4dd354['model']['change'](_0xff2b9d=>{for(const [_0xabf900,_0x53f83d]of _0x20b721)_0xff2b9d['setAttributes']({...Pe,..._0x53f83d},_0xabf900);});});const _0x2eb7ae=(_0x5db598,_0x3c1c4e)=>{_0x38740d['_suggestionFactory']['registerCustomCallback'](_0x5db598,'tablePaste',_0x3c1c4e,(_0x3d29bd,_0x2e630f,_0x34a31d)=>{_0x4dd354['model']['change'](_0x116ecf=>{const _0xc57a32=[];for(const _0x2161c8 of _0x3d29bd){const _0x423479=_0x2161c8['start']['nodeAfter'];_0x423479['is']('element','tableCellSuggestion')&&_0xc57a32['push'](_0x423479);}_0x38740d['_suggestionFactory']['getSuggestionCallback'](_0x5db598,null,_0x3c1c4e)(_0x3d29bd,_0x2e630f,_0x34a31d);for(const _0x53473a of _0xc57a32)'$graveyard'!=_0x53473a['root']['rootName']&&_0x116ecf['unwrap'](_0x53473a);});});};_0x2eb7ae('insertion','accept'),_0x2eb7ae('insertion','discard'),_0x2eb7ae('deletion','accept'),_0x2eb7ae('deletion','discard'),_0x38740d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x25a91a=>{const _0x229023=_0x25a91a['map'](_0x4afcea=>_0x4afcea['getContainedElement']()),_0x18bcea=_0x229023[0x0]['findAncestor']('table'),{minRow:_0x4e2af8,maxRow:_0x3b4d11}=_0x14b73b['_getCoordsForCells'](_0x229023);_0x1bb628['removeRows'](_0x18bcea,{'at':_0x4e2af8,'rows':_0x3b4d11-_0x4e2af8+0x1});}),_0x38740d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x34cea9=>{const _0xb12f80=_0x34cea9['map'](_0x7a5738=>_0x7a5738['getContainedElement']()),_0x207625=_0xb12f80[0x0]['findAncestor']('table'),{minColumn:_0x2c0297,maxColumn:_0x58569f}=_0x14b73b['_getCoordsForCells'](_0xb12f80);_0x1bb628['removeColumns'](_0x207625,{'at':_0x2c0297,'columns':_0x58569f-_0x2c0297+0x1});});const _0x173a18=(_0x22cc58,_0x1841e3)=>{if(!_0x1841e3['subType']||!_0x1841e3['subType']['startsWith']('tablePaste'))return;const _0x4286f2=_0x1841e3['attributes']['tablePasteChainId'],_0x175697=_0x38740d['getSuggestions']()['filter'](_0x2df4dc=>_0x2df4dc['isInContent']&&_0x2df4dc['attributes']&&_0x2df4dc['attributes']['tablePasteChainId']==_0x4286f2);_0x175697['length']&&_0x1841e3['getAllAdjacentSuggestions']()['length']!=_0x175697['length']&&_0x175697['reduce']((_0x49c7e8,_0x1251aa)=>(_0x49c7e8['next']=_0x1251aa,_0x1251aa['previous']=_0x49c7e8,_0x1251aa));};function _0x2923e4(_0x265218,_0x12b860=!0x0){const {id:_0x56d86f}=_0x38740d['_splitMarkerName'](_0x265218['markerName']),_0x56e56f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3cd320=_0x38740d['activeMarkers']['includes'](_0x265218['markerName']);return _0x3cd320&&_0x56e56f['push']('ck-suggestion-marker--active'),{'classes':_0x56e56f,'attributes':{'data-suggestion':_0x56d86f},'priority':_0x3cd320&&_0x12b860?0xbc2:0xbb8};}_0x38740d['on']('suggestionLoaded',_0x173a18,{'priority':'high'}),_0x38740d['on']('suggestionUnloaded',_0x173a18,{'priority':'high'}),_0x4dd354['model']['document']['registerPostFixer'](()=>{let _0x2037fb=!0x1;const _0x71a1ee=Array['from'](_0x4dd354['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ed8d8,data:_0x34ac62}of _0x71a1ee){const {group:_0x2f6cd,type:_0x1337ae,id:_0x5636b4}=_0x38740d['_splitMarkerName'](_0x4ed8d8);if('suggestion'!=_0x2f6cd||'deletion'!=_0x1337ae||_0x34ac62['oldRange'])continue;if(!_0x38740d['hasSuggestion'](_0x5636b4))continue;const _0x76d371=_0x38740d['getSuggestion'](_0x5636b4)['getRanges'](),_0x2975cf=_0x4dd354['plugins']['get']('Users')['me'];for(const _0x4af91b of _0x38740d['getSuggestions']()){if(!_0x4af91b['isInContent']||_0x4af91b['author']!=_0x2975cf)continue;if('formatBlock'!=_0x4af91b['type']||'tablePasteCell'!=_0x4af91b['subType'])continue;if(_0x4af91b['getRanges']()['every'](_0x5b4f63=>_0x76d371['some'](_0xbddd17=>_0xbddd17['containsRange'](_0x5b4f63,!0x0)))){for(const _0x5ef77a of _0x4af91b['getAllAdjacentSuggestions']())_0x5ef77a['isInContent']&&(_0x5ef77a['discard'](),_0x2037fb=!0x0);}}}return _0x2037fb;}),_0x4dd354['model']['document']['registerPostFixer'](_0x477fed=>{const _0x16329d=_0x4dd354['commands']['get']('redo');if(!_0x16329d||!_0x16329d['_createdBatches']['has'](_0x477fed['batch']))return!0x1;let _0xca8bc1=!0x1;const _0x58b9d9=_0x4dd354['plugins']['get']('Users')['me'],_0x5620fb=_0x4dd354['model']['document']['differ']['getChanges'](),_0x3c9cd6=Array['from'](_0x4dd354['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x169e37,data:_0x551047})=>{const {group:_0x2ae92e,subType:_0xe3f07d,authorId:_0x552d1b}=_0x38740d['_splitMarkerName'](_0x169e37);return'suggestion'==_0x2ae92e&&'tablePaste'==_0xe3f07d&&_0x552d1b==_0x58b9d9['id']&&!_0x551047['oldRange'];});for(const _0x3bbff9 of _0x5620fb){if('insert'!=_0x3bbff9['type']||'tableCellSuggestion'!=_0x3bbff9['name']||0x1!=_0x3bbff9['length'])continue;const _0x5ad796=_0x477fed['createRange'](_0x3bbff9['position'],_0x3bbff9['position']['getShiftedBy'](0x1));if(!_0x3c9cd6['find'](({data:_0x184502})=>_0x184502['newRange']['isEqual'](_0x5ad796))){for(const {name:_0xdb0786,data:_0x337867}of _0x3c9cd6)if(_0x5ad796['containsRange'](_0x337867['newRange'])){_0x477fed['updateMarker'](_0xdb0786,{'range':_0x5ad796}),_0xca8bc1=!0x0;break;}}}return _0xca8bc1;}),_0x4dd354['model']['document']['registerPostFixer'](_0x327528=>{let _0x4fd56a=!0x1;const _0x5dd211=_0x4dd354['plugins']['get']('Users')['me'],_0x349a5a=_0x38740d['getSuggestions']()['filter'](_0x5a62f5=>_0x5a62f5['isInContent']&&_0x5a62f5['author']==_0x5dd211),_0x17af51=new Set(),_0xfcaa22=new Set();for(const _0x270911 of _0x349a5a)if('tablePaste'==_0x270911['subType'])for(const _0x38b227 of _0x270911['getMarkers']()){const _0x127704=_0x38b227['getRange']()['getContainedElement']();if(_0x127704){if(_0x127704['is']('element','tableCellSuggestion')&&we(_0x127704)){_0x270911['removeMarker'](_0x38b227['name']),_0x17af51['add'](_0x127704),_0x4fd56a=!0x0;const _0x2c01da=_0x127704['nextSibling'],_0x548afd=_0x127704['previousSibling'],_0x30b409=_0x2c01da&&_0x2c01da['is']('element','tableCellSuggestion'),_0x54b8ba=_0x548afd&&_0x548afd['is']('element','tableCellSuggestion');_0x30b409&&!_0x17af51['has'](_0x2c01da)&&_0xfcaa22['add'](_0x2c01da),_0x54b8ba&&!_0x17af51['has'](_0x548afd)&&_0xfcaa22['add'](_0x548afd);}else _0x127704['is']('element','paragraph')&&_0x127704['isEmpty']&&(_0x270911['removeMarker'](_0x38b227['name']),_0x4fd56a=!0x0);}}else{if('tablePasteCell'==_0x270911['subType']){if(!_0x270911['attributes']||!_0x270911['attributes']['tablePasteChainId'])continue;const _0x192331=_0x270911['attributes']['markerAttributes'];if(_0x192331&&Object['keys'](_0x192331)['length'])continue;const _0x544901=_0x270911['attributes']['tablePasteChainId'];let _0xccdbd9=!0x0,_0x44f4bd=!0x0;for(const _0x4cd844 of _0x349a5a)if(_0x4cd844['subType']&&_0x4cd844['subType']['startsWith']('tablePaste')){if(!_0x4cd844['attributes']['tablePasteChainId']){_0x44f4bd=!0x1;break;}if(_0x4cd844['id']!=_0x270911['id']&&_0x4cd844['attributes']['tablePasteChainId']==_0x544901){_0xccdbd9=!0x1;break;}}_0x44f4bd&&_0xccdbd9&&(_0x270911['removeMarkers'](),_0x4fd56a=!0x0);}}for(const _0x113d5e of _0x17af51)_0x327528['remove'](_0x113d5e);for(const _0x332b8f of _0xfcaa22)_0x327528['unwrap'](_0x332b8f);return _0x4fd56a;}),_0x4dd354['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xb76606,_0x47ff74)=>_0x2923e4(_0xb76606),'converterPriority':'high'}),_0x4dd354['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x165cc0,_0x329fb5)=>_0x329fb5['options']['showSuggestionHighlights']?_0x2923e4(_0x165cc0,!0x1):null,'converterPriority':'high'});const _0x4ae8e5=_0x4dd354['editing']['view'];this['listenTo'](_0x4ae8e5['document'],'clipboardOutput',(_0x56e305,_0x460953)=>{const _0x1b5512=[];for(const _0x1f72ff of _0x4ae8e5['createRangeIn'](_0x460953['content'])['getItems']())_0x1f72ff['is']('element','suggestion-td')&&_0x1b5512['push'](_0x1f72ff);_0x4ae8e5['change'](_0x2fb321=>{for(const _0x3fedd7 of _0x1b5512)_0x2fb321['move'](_0x2fb321['createRangeIn'](_0x3fedd7),_0x2fb321['createPositionBefore'](_0x3fedd7)),_0x2fb321['remove'](_0x3fedd7);});});}}function we(_0x4184ff){if(_0x4184ff['isEmpty'])return!0x0;const _0x4fb7d1=_0x4184ff['getChild'](0x0);return _0x4fb7d1['is']('element','paragraph')&&_0x4fb7d1['isEmpty'];}function ke(_0x159d12,_0x19d0bf={},_0x1141fc){for(const {isAnchor:_0x21963a,cellHeight:_0x51e8e8,cellWidth:_0x188f4f}of _0x1141fc['createTableWalker'](_0x159d12,{'includeAllSlots':!0x0,..._0x19d0bf}))if(!_0x21963a||0x1!=_0x51e8e8||0x1!=_0x188f4f)return!0x1;return!0x0;}class Nt extends _0x266c89{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x32b712=this['editor']['plugins']['get']('TrackChangesEditing');_0x32b712['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x32b712['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x32b712['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32b712['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x32b712['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x32b712['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4e8a0b,_0x4e3361){const _0x1c3120=this['editor']['plugins']['get']('TrackChangesEditing'),_0x93a1f8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1a5b3b=_0x4e3361['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x38d309=_0x93a1f8['getColumnGroupElement'](_0x1a5b3b);let _0x3a4874=_0x38d309?_0x93a1f8['getTableColumnsWidths'](_0x38d309):null,_0x213d7a=_0x1a5b3b['getAttribute']('tableWidth')||null;const _0x2e6a0a=_0x4e3361['tableWidth']||_0x213d7a,_0x483c76=_0x4e3361['columnWidths']||_0x3a4874,_0x1bb8a5=this['editor']['plugins']['get']('Users')['me'];for(const _0x54f79c of _0x1c3120['getSuggestions']()){const _0x2fdb44=_0x54f79c['getContainedElement']();if('resizeTable'===_0x54f79c['subType']&&_0x2fdb44===_0x1a5b3b){_0x54f79c['author']!==_0x1bb8a5&&_0x54f79c['discard']();const _0x126cf9=_0x54f79c['data']['commandParams'];_0x213d7a=_0x126cf9[0x0]['tableWidth'],_0x3a4874=_0x126cf9[0x0]['columnWidths'];break;}}_0x4e8a0b({'table':_0x1a5b3b,'tableWidth':_0x2e6a0a,'columnWidths':_0x483c76}),_0x1c3120['markBlockFormat'](_0x1a5b3b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x213d7a,'columnWidths':_0x3a4874}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x56dc44){if('formatBlock'!=_0x56dc44['type']&&'formatInline'!=_0x56dc44['type'])return;const {data:_0xaef6c}=_0x56dc44;if(_0xaef6c&&'resizeTable'===_0xaef6c['formatGroupId']){const _0x11b784='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x11b784)};}}}class Dt extends _0x266c89{['afterInit'](){const _0x221d59=this['editor'];_0x221d59['plugins']['has']('Template')&&_0x221d59['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x266c89{['afterInit'](){const _0x2bf3fb=this['editor'];if(!_0x2bf3fb['commands']['get']('insertTableOfContents'))return;_0x2bf3fb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4ebb83=_0x2bf3fb['plugins']['get']('TrackChangesEditing'),_0x10ccd0=_0x2bf3fb['locale'];_0x4ebb83['descriptionFactory']['registerElementLabel']('tableOfContents',_0x293276=>o(_0x10ccd0,'ELEMENT_TABLE_OF_CONTENTS',_0x293276));}}class $t extends _0x266c89{['afterInit'](){const _0x32dc81=this['editor'];if(!_0x32dc81['plugins']['has']('Title'))return;const _0x2f6bf7=_0x32dc81['plugins']['get']('TrackChangesEditing');_0x2f6bf7['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x32dc81['locale'],'ELEMENT_TITLE')),_0x32dc81['model']['document']['registerPostFixer'](_0x356884=>{let _0x2fc689=!0x1;const _0x5b3450=Array['from'](_0x32dc81['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x458320,data:_0x5cfbd8}of _0x5b3450){const {group:_0x5cb830}=_0x2f6bf7['_splitMarkerName'](_0x458320);if('suggestion'!==_0x5cb830||!_0x5cfbd8['newRange'])continue;const _0x282ac0=_0x5cfbd8['newRange'],_0x514768=_0x282ac0['end']['nodeBefore'];if(!_0x514768||!_0x514768['is']('element','title-content'))continue;if(!_0x282ac0['start']['isTouching'](_0x282ac0['end']))continue;const _0x5e4597=_0x32dc81['model']['schema']['getNearestSelectionRange'](_0x282ac0['end'],'forward');if(_0x5e4597&&_0x5e4597['isCollapsed']){const _0x3fadd5=_0x356884['createRange'](_0x282ac0['start'],_0x5e4597['start']);_0x3fadd5['isEqual'](_0x282ac0)||(_0x356884['updateMarker'](_0x458320,{'range':_0x3fadd5}),_0x2fc689=!0x0);}_0x2fc689||(_0x356884['removeMarker'](_0x458320),_0x2fc689=!0x0);}return _0x2fc689;});}}class Bt extends _0x266c89{['afterInit'](){const _0x3bfe0c=this['editor'],_0x310cbf=_0x3bfe0c['plugins']['get']('TrackChangesEditing');_0x3bfe0c['plugins']['has']('UndoEditing')&&(_0x310cbf['enableCommand']('undo'),_0x310cbf['enableCommand']('redo'));}}class xt extends _0x266c89{static get['requires'](){return[It];}['afterInit'](){const _0x2c42aa=this['editor'];if(!_0x2c42aa['plugins']['has']('TableCaptionEditing'))return;_0x2c42aa['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x266c89{['tableProperties'];['tableCellProperties'];constructor(_0x566979){super(_0x566979),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 _0x53c19b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4d0316 of this['tableProperties'])_0x53c19b['enableCommand'](_0x4d0316,(_0x2c8874,_0x37184c)=>{const _0x3b072f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4d0316,[_0x3b072f],this['tableProperties'],'tableProperties',_0x2c8874,_0x37184c);});_0x53c19b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x53c19b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53c19b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x57611e,_0x478d72)=>this['handleDiscardAction'](this['tableProperties'],_0x57611e,_0x478d72)),_0x53c19b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x29a78c of this['tableCellProperties'])_0x53c19b['enableCommand'](_0x29a78c,(_0x20b011,_0x1f1ba2)=>{const _0x456f33=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x29a78c,_0x456f33,this['tableCellProperties'],'tableCellProperties',_0x20b011,_0x1f1ba2);});_0x53c19b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x53c19b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53c19b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x28c46f,_0x1ca2e8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x28c46f,_0x1ca2e8)),_0x53c19b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x53c19b['descriptionFactory']['registerDescriptionCallback'](_0x567d0a=>this['handleSuggestionDescription'](_0x567d0a));}['_handlePropertyChange'](_0x51dc15,_0x3c6e2d,_0x2d3a7c,_0x35aca0,_0x14fe43,_0x1bb8b9){const _0x26ca04=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1bb8b9['batch'],()=>{for(const _0x1a09d3 of _0x3c6e2d){if(this['_getSuggestion'](_0x1a09d3,_0x35aca0))_0x14fe43(_0x1bb8b9);else{const _0x3810e6={};for(const _0x43794f of _0x2d3a7c){const _0x33aa47=_0x1a09d3['getAttribute'](_0x43794f);void 0x0!==_0x33aa47&&(_0x3810e6[_0x43794f]=_0x33aa47);}_0x14fe43(_0x1bb8b9),_0x26ca04['markBlockFormat'](_0x1a09d3,{'commandParams':[_0x3810e6]},[],_0x35aca0);}}});}['handleDiscardAction'](_0x333cb5,_0x5413f4,_0x4b943a){const _0x144993=_0x5413f4[0x0]['start']['nodeAfter'],_0x338d08=_0x4b943a['commandParams'][0x0];this['editor']['model']['change'](_0x2a255a=>{for(const _0x30c7e of _0x333cb5)void 0x0!==_0x338d08[_0x30c7e]?_0x2a255a['setAttribute'](_0x30c7e,_0x338d08[_0x30c7e],_0x144993):_0x2a255a['removeAttribute'](_0x30c7e,_0x144993);});}['handleSuggestionDescription'](_0x2eeae6){if(_0x2eeae6['data'])switch(_0x2eeae6['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'](_0x292e09,_0x1fd564){const _0x131b3a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2a52d5 of _0x131b3a['getSuggestions']({'skipNotAttached':!0x0})){const _0x3cad1c=_0x2a52d5['getContainedElement']();if(_0x2a52d5['subType']===_0x1fd564&&_0x3cad1c===_0x292e09)return _0x2a52d5;}return null;}}const m='$elementName';class p extends _0x266c89{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x24db66,_0x26464c,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x5bfe55){function _0x2ac4a4(_0x311daa){return _0x311daa['map'](_0x236268=>String['fromCharCode'](_0x236268))['join']('');}super(_0x5bfe55),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1d22f3,_0x4d446f,_0x1f9113,_0x16d9b9)=>{this['_model']['change'](()=>{for(const _0x4dc5e8 of[..._0x16d9b9,..._0x1f9113])this['_model']['markers']['has'](_0x4dc5e8)&&_0x5bfe55['editing']['reconvertMarker'](_0x4dc5e8);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5bfe55['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(),_0x5bfe55['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5bfe55['config']['get']('trackChanges.trackFormatChanges'),_0x5bfe55['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5bfe55['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5bfe55,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2ac4a4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2ac4a4([0x34,0x30,0x34,0x38,0x31,0x36,0x31,0x32]);}['init'](){const _0xe3e2ee=this['editor'],_0x1625e2=(_0x46e6a0,_0x10772d)=>{if('attribute'!=_0x46e6a0)return'ck-suggestion-marker-'+_0x46e6a0;const _0x453105=_0x10772d['split']('|')[0x0];return this['_isBlockAttribute'](_0x453105)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xe3e2ee['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2d89ad=>{const {id:_0x44866d,type:_0x229157,subType:_0x1948d6}=this['_splitMarkerName'](_0x2d89ad['markerName']),_0x15386d=['ck-suggestion-marker',_0x1625e2(_0x229157,_0x1948d6)];let _0x1c8203=0xbb8;return this['activeMarkers']['includes'](_0x2d89ad['markerName'])&&(_0x15386d['push']('ck-suggestion-marker--active'),_0x1c8203=0xbc2),'deletion'==_0x229157&&(_0x1c8203+=0x5),{'classes':_0x15386d,'attributes':{'data-suggestion':_0x44866d},'priority':_0x1c8203};}}),_0xe3e2ee['conversion']['for']('dataDowncast')['add'](_0x4642c6=>{_0x4642c6['on']('addMarker:suggestion',(_0x17c393,_0x641e12,_0x4f26ae)=>{if(!_0x4f26ae['options']['showSuggestionHighlights'])return;const _0x482d43=_0x641e12['item'];if(!_0x482d43)return;const _0x3c2201=_0x4f26ae['mapper']['toViewElement'](_0x482d43);_0xe3e2ee['model']['schema']['isObject'](_0x482d43)&&_0x3c2201&&!_0x3c2201['getCustomProperty']('widget')&&_0x3c2201['is']('containerElement')&&_0x491ab3(_0x3c2201,_0x4f26ae['writer']);},{'priority':'high'});}),_0xe3e2ee['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3c5a9c,_0x34c76b)=>{if(!_0x34c76b['options']['showSuggestionHighlights'])return null;const {type:_0x3103a7,subType:_0x1b3295}=this['_splitMarkerName'](_0x3c5a9c['markerName']);return{'classes':['ck-suggestion-marker',_0x1625e2(_0x3103a7,_0x1b3295)],'priority':0xbb8};}});const _0x3c0f93=({showActiveMarkers:_0x5df319=!0x0,isAttributeSuggestion:_0xb6f157=!0x1}={})=>(_0x4172d6,_0x123420,_0x24de44)=>{if(!_0x123420['item'])return;const {id:_0x2b99a6}=this['_splitMarkerName'](_0x123420['markerName']);if(_0xb6f157){const _0x5668e9=this['_suggestions']['get'](_0x2b99a6),_0x2a6ae4=this['_getAttributeKey'](_0x5668e9);if(!this['_isBlockAttribute'](_0x2a6ae4))return;}if(_0x123420['item']['is']('selection'))return void _0x24de44['consumable']['consume'](_0x123420['item'],_0x4172d6['name']);const _0x3a7d36=_0x24de44['mapper']['toViewElement'](_0x123420['item']);if(_0x123420['item']['is']('element')&&_0xe3e2ee['model']['schema']['isBlock'](_0x123420['item'])&&!_0x3a7d36['getCustomProperty']('addHighlight')){_0x24de44['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3a7d36),_0x24de44['writer']['setAttribute']('data-suggestion',_0x2b99a6,_0x3a7d36),_0x24de44['mapper']['bindElementToMarker'](_0x3a7d36,_0x123420['markerName']),_0x5df319&&(this['activeMarkers']['includes'](_0x123420['markerName'])?_0x24de44['writer']['addClass']('ck-suggestion-marker--active',_0x3a7d36):_0x24de44['writer']['removeClass']('ck-suggestion-marker--active',_0x3a7d36));for(const _0x35e5f5 of _0xe3e2ee['model']['createRangeIn'](_0x123420['item'])['getItems']())_0x24de44['consumable']['consume'](_0x35e5f5,_0x4172d6['name']);_0x24de44['consumable']['consume'](_0x123420['item'],_0x4172d6['name']);}};_0xe3e2ee['conversion']['for']('dataDowncast')['add'](_0x171570=>{_0x171570['on']('addMarker:suggestion:formatBlock',(_0x9121aa,_0x451578,_0x561eb5)=>{_0x561eb5['options']['showSuggestionHighlights']&&_0x3c0f93({'showActiveMarkers':!0x1})(_0x9121aa,_0x451578,_0x561eb5);},{'priority':'highest'});}),_0xe3e2ee['conversion']['for']('dataDowncast')['add'](_0x1ed87e=>{_0x1ed87e['on']('addMarker:suggestion:attribute',(_0xfdcf44,_0x221acf,_0x27c2fd)=>{_0x27c2fd['options']['showSuggestionHighlights']&&_0x3c0f93({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xfdcf44,_0x221acf,_0x27c2fd);},{'priority':'highest'});}),_0xe3e2ee['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xaa9a40,_0x30b17a)=>_0x30b17a['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xaa9a40['substr'](0xb)}}),_0xe3e2ee['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x28040f,{writer:_0x37ca9d})=>{let _0x5539da='suggestion:'+_0x28040f['getAttribute']('suggestion-type')+':'+_0x28040f['getAttribute']('id');return _0x28040f['getAttribute']('marker-count')&&(_0x5539da+=':'+_0x28040f['getAttribute']('marker-count')),_0x37ca9d['createElement']('$marker',{'data-name':_0x5539da});}}),_0xe3e2ee['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xe3e2ee['conversion']['for']('editingDowncast')['add'](_0x1fc434=>{_0x1fc434['on']('addMarker:suggestion:formatBlock',_0x3c0f93(),{'priority':'high'});}),_0xe3e2ee['conversion']['for']('editingDowncast')['add'](_0x13eb04=>{_0x13eb04['on']('addMarker:suggestion:attribute',_0x3c0f93({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xe3e2ee['conversion']['for']('editingDowncast')['add'](_0x2f4ccc=>{_0x2f4ccc['on']('removeMarker:suggestion:formatBlock',(_0xfefa4,_0x1566aa,_0xa0fc81)=>{const _0x4fb148=_0xa0fc81['mapper']['markerNameToElements'](_0x1566aa['markerName']);if(_0x4fb148){for(const _0x9a205c of _0x4fb148)_0x9a205c['getCustomProperty']('addHighlight')||(_0xa0fc81['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9a205c),_0xa0fc81['writer']['removeAttribute']('data-suggestion',_0x9a205c),_0xa0fc81['mapper']['unbindElementFromMarkerName'](_0x9a205c,_0x1566aa['markerName']));}},{'priority':'high'});}),_0xe3e2ee['conversion']['for']('editingDowncast')['add'](_0x39314a=>{_0x39314a['on']('removeMarker:suggestion:attribute',(_0xf9bf47,_0x415bed,_0x446254)=>{const _0x185bbc=_0x446254['mapper']['markerNameToElements'](_0x415bed['markerName']);if(!_0x185bbc)return;const {id:_0x212863}=this['_splitMarkerName'](_0x415bed['markerName']),_0x15409c=this['_suggestions']['get'](_0x212863),_0xe16f72=this['_getAttributeKey'](_0x15409c);if(this['_isBlockAttribute'](_0xe16f72)){for(const _0x5d7b6f of _0x185bbc)_0x5d7b6f['getCustomProperty']('addHighlight')||(_0x446254['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5d7b6f),_0x446254['writer']['removeAttribute']('data-suggestion',_0x5d7b6f),_0x446254['mapper']['unbindElementFromMarkerName'](_0x5d7b6f,_0x415bed['markerName']));}},{'priority':'high'});}),_0xe3e2ee['model']['document']['registerPostFixer'](_0x2624bc=>{let _0x449264=!0x1;const _0x266878=Array['from'](_0xe3e2ee['model']['document']['differ']['getChangedMarkers']()),_0x1ac757=new Set();for(const {name:_0x4fb81b,data:_0x4ef11c}of _0x266878){const {group:_0x579f78,type:_0x4e2f9e,subType:_0x598aa7,id:_0x1c0fd8}=this['_splitMarkerName'](_0x4fb81b);if('suggestion'!==_0x579f78)continue;const _0x1dc4a9=this['_suggestions']['get'](_0x1c0fd8);if(null!=_0x4ef11c['newRange']){'formatInline'==_0x4e2f9e&&(_0x449264=_0x449264||Ut(_0x4ef11c['newRange'],_0x4fb81b,_0x2624bc,_0xe3e2ee['model']['schema']));const _0xe276e9='attribute'==_0x4e2f9e&&this['_isBlockAttribute'](_0x598aa7['split']('|')[0x0]);if(_0x4ef11c['newRange']['isCollapsed']||'$graveyard'==_0x4ef11c['newRange']['root']['rootName']||'formatBlock'==_0x4e2f9e&&!Ft(_0x4ef11c['newRange'])||_0xe276e9&&!Ft(_0x4ef11c['newRange'])||'deletion'==_0x4e2f9e&&!(!Vt(_0x2406f4=_0x4ef11c['newRange'])&&!function(_0x4f32b8){return _0x4f32b8['start']['parent']==_0x4f32b8['end']['nodeBefore']&&_0x4f32b8['start']['isAtEnd'];}(_0x2406f4)))_0x2624bc['removeMarker'](_0x4fb81b),_0x449264=!0x0;else{if(!_0x1dc4a9||!_0x1dc4a9['isInContent'])continue;if(_0x4ef11c['newRange']&&_0x4ef11c['oldRange']&&_0x4ef11c['newRange']['isEqual'](_0x4ef11c['oldRange']))continue;_0x1ac757['add'](_0x1dc4a9);}}}var _0x2406f4;return _0x1ac757['size']>0x0&&(_0x449264=!!this['_joinWithAdjacentSuggestions'](_0x1ac757)||_0x449264),_0x449264;}),_0xe3e2ee['model']['document']['registerPostFixer'](_0x374467=>{let _0x4a64f9=!0x1;for(const _0x10f76 of _0xe3e2ee['model']['document']['differ']['getChanges']())if('insert'==_0x10f76['type'])for(const _0x41b49 of this['_suggestions']['values']()){if(_0x41b49['isMultiRange']||!_0x41b49['isInContent'])continue;const _0x1de5ac='formatBlock'==_0x41b49['type'],_0x56f0af=this['_getAttributeKey'](_0x41b49),_0x5c5336=_0x56f0af&&this['_isBlockAttribute'](_0x56f0af);if(!_0x1de5ac&&!_0x5c5336)continue;const _0x1f0bb0=_0x41b49['getFirstRange']();if(_0x1f0bb0['start']['parent']!=_0x1f0bb0['end']['parent']&&!_0x1f0bb0['end']['isAtEnd']){const _0x2d20dc=_0xe3e2ee['model']['createPositionAt'](_0x1f0bb0['start']['nodeAfter'],'end'),_0x21ef2e=_0xe3e2ee['model']['createRange'](_0x1f0bb0['start'],_0x2d20dc);_0x374467['updateMarker'](_0x41b49['getFirstMarker'](),{'range':_0x21ef2e}),_0x4a64f9=!0x0;}}return _0x4a64f9;}),_0xe3e2ee['model']['document']['registerPostFixer'](_0x820e5b=>this['_processAttributeChanges'](_0x820e5b)),_0xe3e2ee['model']['document']['registerPostFixer'](_0xe4c477=>!_0xe4c477['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xe4c477)),_0xe3e2ee['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xe3e2ee['model']['document']['on']('change:data',(_0x46d5f5,_0x56f1f4)=>{if(!_0x56f1f4['isLocal']||_0x56f1f4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x23211b=_0xe3e2ee['model']['document']['differ']['getChanges']();if(0x0==_0x23211b['length'])return;const _0x30efcf=[],_0xac57df=_0x23211b['filter'](_0x4b7bf1=>'attribute'==_0x4b7bf1['type']),_0x4eace8=_0x23211b['filter'](_0x3b4d8f=>'insert'==_0x3b4d8f['type']&&'$text'!=_0x3b4d8f['name']);for(const _0x147ddf of _0xac57df)this['_isRegisteredAttribute'](_0x147ddf['attributeKey'])&&_0x30efcf['push']({'key':_0x147ddf['attributeKey'],'newValue':_0x147ddf['attributeNewValue'],'oldValue':_0x147ddf['attributeOldValue'],'range':Pt(_0x147ddf['range'],_0xe3e2ee['model'])});for(const _0x57a165 of _0x4eace8){if('rename'!=_0x57a165['action']&&'refresh'!=_0x57a165['action'])continue;const _0x353371=Lt(_0x57a165['position']['nodeAfter'],_0xe3e2ee['model']),_0x15eb38=_0x57a165['before'];'rename'==_0x57a165['action']&&_0x30efcf['push']({'key':m,'newValue':_0x57a165['name'],'oldValue':_0x15eb38['name'],'range':_0x353371});for(const [_0xdba4a0,_0x13e329]of _0x15eb38['attributes']){if(!this['_isRegisteredAttribute'](_0xdba4a0))continue;const _0x32357f=_0x57a165['attributes']['get'](_0xdba4a0);_0x13e329!==_0x32357f&&_0x30efcf['push']({'key':_0xdba4a0,'newValue':_0x32357f,'oldValue':_0x13e329,'range':_0x353371});}for(const [_0x555fda,_0x5e897c]of _0x57a165['attributes'])this['_isRegisteredAttribute'](_0x555fda)&&(_0x15eb38['attributes']['has'](_0x555fda)||_0x30efcf['push']({'key':_0x555fda,'newValue':_0x5e897c,'oldValue':null,'range':_0x353371}));}0x0!=_0x30efcf['length']&&_0xe3e2ee['model']['enqueueChange'](_0x56f1f4,_0x4c8aba=>{const _0x1fce88=_0x49822d();for(const {range:_0x3555f0,key:_0x114ade,oldValue:_0x5f28da,newValue:_0x313cdd}of _0x30efcf)this['markAttributeChange'](_0x3555f0,_0x114ade,_0x5f28da,_0x313cdd,{'groupId':_0x1fce88});this['_reduceExistingSuggestions'](_0x4c8aba,_0x30efcf);});},{'priority':'lowest'}),_0xe3e2ee['model']['markers']['on']('update:suggestion',(_0x2cdbba,_0x1a4294,_0x3506bd)=>{if(null==_0x3506bd){const {id:_0x4e6869}=this['_splitMarkerName'](_0x1a4294['name']),_0x138548=this['_suggestions']['get'](_0x4e6869);_0x138548&&_0x138548['addMarkerName'](_0x1a4294['name']);}}),_0xe3e2ee['model']['document']['on']('change:data',()=>{const _0x2446c2=Array['from'](_0xe3e2ee['model']['document']['differ']['getChangedMarkers']())['filter'](_0x35b906=>'suggestion'===this['_splitMarkerName'](_0x35b906['name'])['group']);if(0x0===_0x2446c2['length'])return;_0x2446c2['sort']((_0x4c0391,_0xfd0043)=>{const _0x557ef1=_0x4c0391['data']['oldRange'],_0x372e95=_0xfd0043['data']['oldRange'];return null===_0x557ef1&&null===_0x372e95?0x0:null===_0x557ef1&&null!==_0x372e95?-0x1:null!==_0x557ef1&&null===_0x372e95?0x1:_0x557ef1['start']['isBefore'](_0x372e95['start'])?-0x1:0x1;});const _0x1cd94a=new Set(),_0x47feb0=new Set();for(const {name:_0x548941,data:_0x5321df}of _0x2446c2){const {id:_0x58a768}=this['_splitMarkerName'](_0x548941);if(null===_0x5321df['oldRange']){const _0x902482=this['_handleNewSuggestionMarker'](_0x548941);_0x47feb0['add'](_0x902482);}else{const _0x948403=this['_suggestions']['get'](_0x58a768);null!==_0x5321df['newRange']||_0x948403['isInContent']?(_0x1cd94a['add'](_0x948403['head']),_0x47feb0['add'](_0x948403)):this['_removeSuggestion'](_0x948403);}}_0x47feb0['size']>0x0&&this['_refreshSuggestionsChain'](_0x47feb0);for(const _0x3e464d of _0x1cd94a)this['fire']('suggestionChanged',_0x3e464d);}),_0xe3e2ee['model']['on']('applyOperation',(_0x4d78ea,_0x82b176)=>{const _0x241b25=_0x82b176[0x0];if(!this['_suggestions']['size'])return;if(!_0x241b25['isDocumentOperation'])return;if(_0x241b25['batch']['isUndo']||!_0x241b25['batch']['isLocal'])return;let _0x30058b,_0x1731ca;switch(_0x241b25['type']){case'insert':_0x30058b=_0xe3e2ee['model']['createPositionAt'](_0x241b25['position']),_0x1731ca=_0x30058b['getShiftedBy'](_0x241b25['howMany']);break;case'split':_0x30058b=_0xe3e2ee['model']['createPositionAt'](_0x241b25['splitPosition']),_0x1731ca=_0xe3e2ee['model']['createPositionAt'](_0x241b25['moveTargetPosition']);break;case'move':_0x30058b=_0xe3e2ee['model']['createPositionAt'](_0x241b25['targetPosition']),_0x1731ca=_0x30058b['getShiftedBy'](_0x241b25['howMany']);break;default:return;}const _0x39b450=_0xe3e2ee['model']['createRange'](_0x30058b,_0x1731ca);_0xe3e2ee['model']['change'](()=>{for(const {suggestion:_0xe081ac,meta:_0x8027b7}of this['_findSuggestions'](_0x39b450)){if(_0xe081ac['isMultiRange'])continue;if('formatInline'==_0xe081ac['type'])continue;const _0x39fa3b=this['_getAttributeKey'](_0xe081ac);if(_0x39fa3b&&this['_isBlockAttribute'](_0x39fa3b)&&'split'!=_0x241b25['type'])continue;const _0x3fd0d5=_0xe081ac['data']&&_0xe081ac['data']['multipleBlocks'];('formatBlock'!=_0xe081ac['type']||'split'==_0x241b25['type']&&!_0x3fd0d5)&&(_0x8027b7['containsRangeInObject']||'insertion'==_0xe081ac['type']&&_0x8027b7['isOwn']||_0xe081ac['getFirstRange']()['containsRange'](_0x39b450)&&this['_breakSuggestionMarker'](_0xe081ac,_0x30058b,_0x1731ca));}});},{'priority':'lowest'}),_0xe3e2ee['model']['on']('deleteContent',(_0x2ef1c,_0x3b6ec4)=>{const _0x18cac1=_0x3b6ec4[0x0],_0x484290=_0x3b6ec4[0x1];if(_0x484290&&_0x484290['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x18cac1['isCollapsed'])return;const _0x3e0ccc=_0xe3e2ee['model']['schema'],{start:_0x4832f6,end:_0x50f19b}=_0x18cac1['getFirstRange'](),_0x4112a2=_0x4832f6['nodeAfter']&&_0x3e0ccc['isLimit'](_0x4832f6['nodeAfter'])?null:_0x3e0ccc['getNearestSelectionRange'](_0x4832f6,'forward'),_0x959eb3=_0x50f19b['nodeBefore']&&_0x3e0ccc['isLimit'](_0x50f19b['nodeBefore'])?null:_0x3e0ccc['getNearestSelectionRange'](_0x50f19b,'backward'),_0x25edc9=_0xe3e2ee['model']['createRange'](_0x4112a2?_0x4112a2['start']:_0x4832f6,_0x959eb3?_0x959eb3['end']:_0x50f19b);_0xe3e2ee['model']['change'](_0x258104=>{this['markDeletion'](_0x25edc9);const _0x380dde=_0xe3e2ee['model']['schema']['getNearestSelectionRange'](_0x25edc9['start']);_0x18cac1['is']('documentSelection')?_0x258104['setSelection'](_0x380dde):_0x18cac1['setTo'](_0x380dde);}),_0x2ef1c['stop']();},{'priority':_0x504bb7['normal']+0xa}),_0xe3e2ee['model']['on']('insertContent',(_0x2d2815,_0x21bb30)=>{const _0x3abba2=_0x21bb30[_0x21bb30['length']-0x1];_0x3abba2&&_0x3abba2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xe3e2ee['model']['change'](()=>{let _0x7da67=_0xe3e2ee['model']['insertContent'](_0x21bb30[0x0],_0x21bb30[0x1],_0x21bb30[0x2],{'forceDefaultExecution':!0x0});if(!_0x7da67)return;_0x2d2815['return']=_0x7da67['clone']();const _0x1b5161=_0x7da67['end']['nodeBefore'],_0x7d8aa4=_0xe3e2ee['model']['schema'];_0x1b5161&&_0x7d8aa4['isBlock'](_0x1b5161)&&!_0x7d8aa4['isObject'](_0x1b5161)&&(_0x7da67=_0xe3e2ee['model']['createRange'](_0x7da67['start'],_0xe3e2ee['model']['createPositionAt'](_0x1b5161,'end'))),this['markInsertion'](_0x7da67);}),_0x2d2815['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1d74dd=new x(_0xe3e2ee,this['_suggestions']);_0xe3e2ee['commands']['add']('acceptSuggestion',_0x1d74dd),this['enableCommand']('acceptSuggestion');const _0x1848aa=new R(_0xe3e2ee,this['_suggestions']);_0xe3e2ee['commands']['add']('discardSuggestion',_0x1848aa),this['enableCommand']('discardSuggestion'),_0xe3e2ee['commands']['add']('acceptAllSuggestions',new E(_0xe3e2ee,_0x1d74dd,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xe3e2ee['commands']['add']('discardAllSuggestions',new E(_0xe3e2ee,_0x1848aa,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xe3e2ee['commands']['add']('acceptSelectedSuggestions',new O(_0xe3e2ee,_0x1d74dd,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xe3e2ee['commands']['add']('discardSelectedSuggestions',new O(_0xe3e2ee,_0x1848aa,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xa3270b=_0xe3e2ee['plugins']['get']('CommentsRepository');this['listenTo'](_0xa3270b,'addComment',(_0x528b01,{threadId:_0x572131})=>{const _0x4ef7fa=this['_suggestions']['get'](_0x572131);_0x4ef7fa&&_0x4ef7fa['commentThread']&&0x1===_0x4ef7fa['commentThread']['length']&&this['_updateSuggestionData'](_0x572131,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xa3270b,'removeComment',(_0x3d8033,{threadId:_0x2de171})=>{const _0x311b2e=this['_suggestions']['get'](_0x2de171);_0x311b2e&&_0x311b2e['commentThread']&&!_0x311b2e['commentThread']['length']&&this['_updateSuggestionData'](_0x2de171,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x45eb8c){if(this['_adapter'])throw new _0x3d68a7('track-changes-adapter-already-set',this);this['_adapter']=_0x45eb8c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2de74b=!0x1,toJSON:_0x588644=!0x1}={}){const _0x2fcbd3=[];for(const _0x4e624d of this['_suggestions']['values']())_0x2de74b&&!_0x4e624d['isInContent']||_0x2fcbd3['push'](_0x4e624d);return _0x588644?_0x2fcbd3['map'](_0x4a5b79=>_0x4a5b79['toJSON']()):_0x2fcbd3;}['getSuggestion'](_0xbbe988){const _0x470f06=this['_suggestions']['get'](_0xbbe988);if(!_0x470f06)throw new _0x3d68a7('track-changes-suggestion-not-found',this);return _0x470f06;}['hasSuggestion'](_0x4f5b7c){return this['_suggestions']['has'](_0x4f5b7c);}['addSuggestionData'](_0x1f74e1){const {authorId:_0x1aac48,id:_0x2fa3dd,attributes:_0x246178}=_0x1f74e1,[_0x5766bb,_0x13d8bd]=_0x1f74e1['type']['split'](':'),_0x5518d9=this['_suggestions']['get'](_0x2fa3dd)||this['_createSuggestion'](_0x5766bb,_0x13d8bd,_0x2fa3dd,_0x1aac48,_0x246178);if(this['_addThreadToSuggestion'](_0x5518d9),this['_checkSuggestionCorrectness'](_0x5518d9,_0x5766bb,_0x13d8bd||null,_0x1aac48),_0x5518d9['createdAt']=_0x1f74e1['createdAt'],_0x5518d9['_isDataLoaded']=!0x0,_0x246178&&_0x246178['@external']){const _0x14de5b=_0x246178['@external'],_0x49f88b=this['_getExternalAuthor'](_0x14de5b['authorName']);_0x5518d9['authoredAt']=_0x14de5b['createdAt'],_0x5518d9['author']=_0x49f88b,_0x5518d9['isExternal']=!0x0;}else _0x5518d9['authoredAt']=_0x1f74e1['createdAt'];switch(_0x1f74e1['data']&&(_0x5518d9['data']=_0x1f74e1['data']),_0x1f74e1['attributes']&&(_0x5518d9['attributes']=_0x1f74e1['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5518d9['_saved']=!0x0),this['_suggestionState']['get'](_0x5518d9)){case'notReady':this['_suggestionState']['set'](_0x5518d9,'dataReady');break;case'markerReady':_0x5518d9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5518d9])),this['_refreshSuggestionsChain'](new Set([_0x5518d9])),this['_suggestionState']['set'](_0x5518d9,'ready'),this['fire']('suggestionLoaded',_0x5518d9)):this['_suggestionState']['set'](_0x5518d9,'removed');}return _0x5518d9;}['acceptSuggestion'](_0x392a8d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1d870b of _0x392a8d['getAllAdjacentSuggestions']())_0x1d870b['accept']();});});}['discardSuggestion'](_0x1edaf2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x33aeec of _0x1edaf2['getAllAdjacentSuggestions']())_0x33aeec['discard']();});});}['enableCommand'](_0x54dd6e,_0x17690b){const _0x218f97=this['editor']['commands']['get'](_0x54dd6e);if(!_0x218f97)throw new _0x3d68a7('track-changes-command-not-found',this,{'commandName':_0x54dd6e});if(this['_enabledCommands']['has'](_0x218f97))throw new _0x3d68a7('track-changes-enable-command-twice',this,{'commandName':_0x54dd6e});this['_enabledCommands']['add'](_0x218f97),_0x17690b&&_0x218f97['on']('execute',(_0x2ee3f3,_0x2d14c7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2d14c7['length']>0x0&&_0x2d14c7[_0x2d14c7['length']-0x1]&&_0x2d14c7[_0x2d14c7['length']-0x1]['forceDefaultExecution']?_0x2d14c7['pop']():(_0x2ee3f3['return']=_0x17690b((..._0x39cdd8)=>_0x218f97['execute'](..._0x39cdd8,{'forceDefaultExecution':!0x0}),..._0x2d14c7),_0x2ee3f3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x15bd0d){let _0x444da3,_0x410842;const _0x3c39c5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x444da3=_0x15bd0d();}catch(_0x339f44){_0x410842=_0x339f44;}return _0x3c39c5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x410842&&_0x3d68a7['rethrowUnexpectedError'](_0x410842,this),_0x444da3;}['markInsertion'](_0x70f59,_0x23e491=null,_0x5a19d3={}){if(_0x70f59['isCollapsed'])return null;const _0xc2349=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x28ce31,meta:_0x3cd516}of this['_findSuggestions'](_0x70f59,'insertion'))if(_0x3cd516['isOwn']){if(!_0x3cd516['isNextTo']){if(_0x3cd516['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x28ce31,_0x5a19d3))continue;return _0x28ce31;}if(qt(_0x28ce31,_0x5a19d3))return _0x28ce31;this['_breakSuggestionMarker'](_0x28ce31,_0x70f59['start'],_0x70f59['end']);break;}if(_0x23e491==_0x28ce31['subType']&&qt(_0x28ce31,_0x5a19d3)){const _0x59795c=_0x28ce31['getFirstRange']();return _0x59795c['start']['isEqual'](_0x70f59['end'])?this['_setSuggestionRange'](_0x28ce31,this['_model']['createRange'](_0x70f59['start'],_0x59795c['end'])):this['_setSuggestionRange'](_0x28ce31,this['_model']['createRange'](_0x59795c['start'],_0x70f59['end'])),_0x28ce31;}}const _0x1bd757=_0x49822d(),_0x58f03f=_0xc2349['id'],_0x1861db=_0x23e491?'insertion:'+_0x23e491:'insertion',_0x464cb4=this['_setSuggestionData']({'id':_0x1bd757,'type':_0x1861db,'createdAt':new Date(),'authorId':_0x58f03f,'attributes':_0x5a19d3});return this['_addSuggestionMarker'](_0x1861db,_0x1bd757,_0x58f03f,_0x70f59),_0x464cb4;}['markMultiRangeInsertion'](_0x2e9ee5,_0x4efbae='multi',_0x3ceded={}){const _0x8fa9db=this['editor']['plugins']['get']('Users')['me'],_0x2e9aa2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4efbae,'join');for(const _0x897ce7 of this['getSuggestions']())if(_0x897ce7['author']['id']==_0x8fa9db['id']&&'insertion'==_0x897ce7['type']&&_0x897ce7['subType']==_0x4efbae&&qt(_0x897ce7,_0x3ceded)&&(_0x2e9aa2(_0x897ce7['getRanges'](),_0x2e9ee5)||_0x2e9aa2(_0x2e9ee5,_0x897ce7['getRanges']()))){for(const _0x1f75ae of _0x2e9ee5)_0x897ce7['addRange'](_0x1f75ae);return _0x897ce7;}for(const {suggestion:_0x3326c0,meta:_0x1c31ff}of this['_findSuggestions'](_0x2e9ee5,'insertion')){if(!_0x1c31ff['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1c31ff['containsRangeInObject'])continue;if(!qt(_0x3326c0,_0x3ceded))continue;let _0x4f391a=!0x0;for(const _0x4dc62a of _0x3326c0['getRanges']())for(const _0x1b1940 of _0x2e9ee5)if(!_0x4dc62a['containsRange'](_0x1b1940)){_0x4f391a=!0x1;break;}if(_0x4f391a)return _0x3326c0;}const _0x229b7f=_0x49822d(),_0x583857=_0x8fa9db['id'],_0x2a5741='insertion:'+_0x4efbae,_0x5efb06=this['_setSuggestionData']({'id':_0x229b7f,'type':_0x2a5741,'createdAt':new Date(),'authorId':_0x583857,'attributes':_0x3ceded});for(const _0x2f80d1 of _0x2e9ee5)this['_addSuggestionMarker'](_0x2a5741,_0x229b7f,_0x583857,_0x2f80d1,u['getMultiRangeId']());return _0x5efb06;}['markInlineFormat'](_0x5a979d,_0x3bc0d6,_0x30a943=null,_0x28e782={}){if(_0x30a943=_0x30a943||Gt(_0x3bc0d6),_0x5a979d['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xcde3b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30a943,'accept');return this['forceDefaultExecution'](()=>_0xcde3b([_0x5a979d],_0x3bc0d6,_0x28e782)),null;}const _0x4b7387=this['editor']['plugins']['get']('Users')['me'],_0x3d66bc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xac982f,meta:_0x4c0931}of this['_findSuggestions'](_0x5a979d,'insertion'))_0x4c0931['isOwn']&&!_0x4c0931['isInsideObject']&&_0x3d66bc['push'](..._0xac982f['getRanges']());}const _0x2474b5=function(_0x36539d,_0x170e85){const _0x461150=[];for(const _0x743d97 of _0x170e85){const _0x1c0e73=_0x36539d['getIntersection'](_0x743d97);_0x1c0e73&&_0x461150['push'](_0x1c0e73);}return _0x461150;}(_0x5a979d,_0x3d66bc),_0x3d9caa=function(_0x587174,_0x633188){const _0x350202=[_0x587174];for(const _0x4a3f44 of _0x633188){let _0x47b28e=0x0;for(;_0x47b28e<_0x350202['length'];){const _0x1152e1=_0x350202[_0x47b28e]['getDifference'](_0x4a3f44);_0x350202['splice'](_0x47b28e,0x1,..._0x1152e1),_0x47b28e+=_0x1152e1['length'];}}return _0x350202;}(_0x5a979d,_0x3d66bc);_0x2474b5['length']&&this['_model']['change'](()=>{for(const _0x3a1e1c of _0x2474b5){const _0x43ae43=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x30a943,'accept');this['forceDefaultExecution'](()=>_0x43ae43([_0x3a1e1c],_0x3bc0d6,_0x28e782));}});for(const _0x2d777a of _0x3d9caa){let _0x48ef2e=null,_0x20ef35=_0x2d777a['start'],_0x198d44=_0x2d777a['end'];for(const {suggestion:_0x165a3f,meta:_0x559018}of this['_findSuggestions'](_0x2d777a,'formatInline')){if(!_0x559018['isOwn'])continue;if(_0x165a3f['subType']!=_0x30a943)continue;if(!qt(_0x165a3f,_0x28e782))continue;const _0x4f7274=_0x165a3f['getFirstRange']();if(_0x4f7274['containsRange'](_0x2d777a,!0x0))return null;_0x20ef35=_0x20ef35['isBefore'](_0x4f7274['start'])?_0x20ef35:_0x4f7274['start'],_0x198d44=_0x198d44['isAfter'](_0x4f7274['end'])?_0x198d44:_0x4f7274['end'],_0x48ef2e?_0x4f7274['start']['isBefore'](_0x48ef2e['getFirstRange']()['start'])?(_0x48ef2e['removeMarkers'](),_0x48ef2e=_0x165a3f):_0x165a3f['removeMarkers']():_0x48ef2e=_0x165a3f;}const _0x248f0c=this['_model']['createRange'](_0x20ef35,_0x198d44);if(_0x48ef2e)this['_setSuggestionRange'](_0x48ef2e,_0x248f0c);else{const _0x40a007=_0x49822d(),_0x43c3d8=_0x4b7387['id'];this['_setSuggestionData']({'id':_0x40a007,'type':'formatInline:'+_0x30a943,'data':_0x3bc0d6,'createdAt':new Date(),'authorId':_0x43c3d8,'attributes':_0x28e782}),this['_addSuggestionMarker']('formatInline:'+_0x30a943,_0x40a007,_0x43c3d8,_0x248f0c);}}return null;}['markBlockFormat'](_0x2769bd,_0x204c79,_0x144ba3=[],_0x3c3a6c=null,_0x642a9e={}){_0x204c79['formatGroupId']||(_0x204c79['formatGroupId']=_0x204c79['commandName']),_0x204c79['multipleBlocks']=_0x2769bd['is']('range'),_0x3c3a6c=_0x3c3a6c||Gt(_0x204c79);const _0x2b21f6=_0x144ba3['map'](_0x5808df=>Lt(_0x5808df,this['_model'])),_0x56b24d=_0x2769bd['is']('range')?_0x2769bd:Lt(_0x2769bd,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2b25b1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c3a6c,'accept');return this['forceDefaultExecution'](()=>_0x2b25b1([_0x56b24d],_0x204c79,_0x642a9e)),null;}_0x2b21f6['push'](_0x56b24d);let _0x32149d=!0x0;for(const _0x105907 of _0x2b21f6)if(!this['_rangeIsInLocalUserInsertion'](_0x105907)){_0x32149d=!0x1;break;}if(_0x32149d&&'always'!==this['_trackFormatChanges']){const _0x5f5cd5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c3a6c,'accept');return this['forceDefaultExecution'](()=>_0x5f5cd5([_0x56b24d],_0x204c79,_0x642a9e)),null;}let _0xcb7755=null,_0xa45d4c=_0x56b24d['start'],_0x3b5441=_0x56b24d['end'];for(const {suggestion:_0x22d9e3,meta:_0x2f9ef1}of this['_findSuggestions'](_0x56b24d,'formatBlock')){if(!_0x2f9ef1['isOwn'])continue;if(_0x2f9ef1['isNextTo']||_0x2f9ef1['containsRangeInObject']||_0x2f9ef1['isInsideObject'])continue;if(_0x22d9e3['data']['formatGroupId']!=_0x204c79['formatGroupId'])continue;if(!qt(_0x22d9e3,_0x642a9e))continue;const _0x386291=_0x22d9e3['getFirstRange']();if(_0x22d9e3['subType']==_0x3c3a6c){if(_0x386291['containsRange'](_0x56b24d,!0x0))return null;_0xa45d4c=_0xa45d4c['isBefore'](_0x386291['start'])?_0xa45d4c:_0x386291['start'],_0x3b5441=_0x3b5441['isAfter'](_0x386291['end'])?_0x3b5441:_0x386291['end'],_0xcb7755?_0x386291['start']['isBefore'](_0xcb7755['getFirstRange']()['start'])?(_0xcb7755['removeMarkers'](),_0xcb7755=_0x22d9e3):_0x22d9e3['removeMarkers']():_0xcb7755=_0x22d9e3;}else{const _0x28ee98=_0x56b24d['getIntersection'](_0x386291);this['_cutOutSuggestionMarker'](_0x22d9e3,_0x28ee98);}}const _0x4b65db=this['editor']['plugins']['get']('Users')['me'],_0xae17d4=_0x49822d(),_0x30e9bd=_0x4b65db['id'];if(_0xcb7755)return this['_setSuggestionRange'](_0xcb7755,this['_model']['createRange'](_0xa45d4c,_0x3b5441)),_0xcb7755;{const _0x8b4df5=this['_setSuggestionData']({'id':_0xae17d4,'type':'formatBlock:'+_0x3c3a6c,'data':_0x204c79,'createdAt':new Date(),'authorId':_0x30e9bd,'attributes':_0x642a9e});return this['_addSuggestionMarker']('formatBlock:'+_0x3c3a6c,_0xae17d4,_0x30e9bd,this['_model']['createRange'](_0xa45d4c,_0x3b5441)),_0x8b4df5;}}['markMultiRangeBlockFormat'](_0x2df9b4,_0x7c549,_0x3fcbc5=[],_0x5ef18a=null,_0x558cd9={}){_0x7c549['formatGroupId']||(_0x7c549['formatGroupId']=_0x7c549['commandName']);const _0x12c56a=_0x2df9b4[0x0];_0x7c549['multipleBlocks']=_0x12c56a['is']('range'),_0x5ef18a=_0x5ef18a||Gt(_0x7c549);const _0x35ff62=_0x3fcbc5['map'](_0x40027a=>Lt(_0x40027a,this['_model'])),_0x309bcf=_0x12c56a['is']('range')?_0x2df9b4:_0x2df9b4['map'](_0x2fb56b=>Lt(_0x2fb56b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4b6c22=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ef18a,'accept');return this['forceDefaultExecution'](()=>_0x4b6c22(_0x309bcf,_0x7c549,_0x558cd9)),null;}_0x35ff62['push'](..._0x309bcf);let _0x19098b=!0x0;for(const _0x48dafc of _0x35ff62)if(!this['_rangeIsInLocalUserInsertion'](_0x48dafc)){_0x19098b=!0x1;break;}if(_0x19098b&&'always'!==this['_trackFormatChanges']){const _0x3887f0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ef18a,'accept');return this['forceDefaultExecution'](()=>_0x3887f0(_0x309bcf,_0x7c549,_0x558cd9)),null;}const _0x3a113c=this['editor']['plugins']['get']('Users')['me'];for(const _0x34c82d of this['getSuggestions']()){if(_0x34c82d['author']['id']!=_0x3a113c['id'])continue;if('formatBlock'!=_0x34c82d['type']||_0x34c82d['data']['formatGroupId']!=_0x7c549['formatGroupId'])continue;if(!qt(_0x34c82d,_0x558cd9))continue;const _0x609e23=_0x34c82d['subType']==_0x5ef18a;for(let _0x2d72e8=0x0;_0x2d72e8<_0x309bcf['length'];_0x2d72e8++){const _0x11ff0d=_0x309bcf[_0x2d72e8];for(const _0x19b791 of _0x34c82d['getMarkers']()){const _0x1589d7=_0x19b791['getRange']();if(_0x11ff0d['isEqual'](_0x1589d7)){_0x609e23?(_0x309bcf['splice'](_0x2d72e8,0x1),_0x2d72e8--):_0x34c82d['removeMarker'](_0x19b791['name']);break;}}}}if(0x0==_0x309bcf['length'])return null;const _0x37c8c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5ef18a,'join');for(const _0x365e91 of this['getSuggestions']())if(_0x365e91['author']['id']==_0x3a113c['id']&&'formatBlock'==_0x365e91['type']&&_0x365e91['data']['formatGroupId']==_0x7c549['formatGroupId']&&_0x365e91['subType']==_0x5ef18a&&qt(_0x365e91,_0x558cd9)&&(_0x37c8c9(_0x365e91['getRanges'](),_0x309bcf)||_0x37c8c9(_0x309bcf,_0x365e91['getRanges']()))){for(const _0x212b2c of _0x309bcf)_0x365e91['addRange'](_0x212b2c);return _0x365e91;}const _0x5e3675=_0x49822d(),_0x26fbbf=_0x3a113c['id'],_0xf8decc='formatBlock:'+_0x5ef18a,_0x1ac2a2=this['_setSuggestionData']({'id':_0x5e3675,'type':_0xf8decc,'data':_0x7c549,'createdAt':new Date(),'authorId':_0x26fbbf,'attributes':_0x558cd9});for(const _0x1a7e0b of _0x309bcf)this['_addSuggestionMarker'](_0xf8decc,_0x5e3675,_0x26fbbf,_0x1a7e0b,u['getMultiRangeId']());return _0x1ac2a2;}['markDeletion'](_0x4de0dc,_0x952e94=null,_0x1d737b={}){if(_0x4de0dc['isCollapsed'])return null;const _0x51995a=this['editor']['plugins']['get']('Users')['me'],_0x5f349c=new _0x542340(_0x4de0dc['start'],_0x4de0dc['end']);for(const {suggestion:_0x2998c7,meta:_0x3b7af6}of this['_findSuggestions'](_0x5f349c,'insertion'))if(_0x3b7af6['isOwn']&&!_0x3b7af6['isNextTo']){if(_0x2998c7['isMultiRange']){const _0x33eda3=_0x2998c7['getRanges']()['filter'](_0x533d89=>'$graveyard'!=_0x533d89['root']['rootName']);_0x33eda3['every'](_0x558e5a=>_0x5f349c['containsRange'](_0x558e5a,!0x0))&&_0x2998c7['discard']();if(_0x33eda3['some'](_0x3331c3=>_0x3331c3['containsRange'](_0x5f349c,!0x0))){const _0x34e5e9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x952e94,'accept');return this['forceDefaultExecution'](()=>_0x34e5e9([_0x5f349c],null,_0x1d737b)),null;}}else{const _0x5d7006=_0x5f349c['getIntersection'](_0x2998c7['getFirstRange']());null!==_0x5d7006&&_0x2998c7['_onDiscard']([_0x5d7006],null,_0x1d737b);}}if(_0x5f349c['detach'](),_0x5f349c['isCollapsed']||'$graveyard'==_0x5f349c['root']['rootName'])return null;let _0x7ada80=null,_0x42dad4=_0x5f349c['start'],_0x55c459=_0x5f349c['end'];const _0x42583e=this['_findSuggestions'](_0x5f349c,'deletion');for(const {suggestion:_0x1c0236,meta:_0x443c42}of _0x42583e){const _0x3bd9dd=this['_model']['createRange'](_0x42dad4,_0x55c459);if(_0x443c42['isOwn']&&(this['_mergeNestedSuggestions']||!_0x443c42['containsRangeInObject']&&!_0x443c42['isInsideObject'])){if(_0x1c0236['isMultiRange']){if(!qt(_0x1c0236,_0x1d737b))continue;let _0x1ccd4c=!0x0;for(const _0x434b34 of _0x1c0236['getRanges']()){if(_0x434b34['containsRange'](_0x3bd9dd,!0x0))return _0x1c0236;_0x3bd9dd['containsRange'](_0x434b34)||(_0x1ccd4c=!0x1);}_0x1ccd4c&&_0x1c0236['discard']();}else{const _0x1f8950=_0x1c0236['getFirstRange']();if(_0x1f8950['containsRange'](_0x3bd9dd,!0x0))return _0x1c0236;if(!qt(_0x1c0236,_0x1d737b)){_0x3bd9dd['containsRange'](_0x1f8950)?_0x1c0236['removeMarkers']():_0x1f8950['containsPosition'](_0x42dad4)?_0x42dad4=_0x1f8950['end']:_0x1f8950['containsPosition'](_0x55c459)&&(_0x55c459=_0x1f8950['start']);continue;}_0x42dad4=_0x42dad4['isBefore'](_0x1f8950['start'])?_0x42dad4:_0x1f8950['start'],_0x55c459=_0x55c459['isAfter'](_0x1f8950['end'])?_0x55c459:_0x1f8950['end'],_0x1d737b=Object['assign']({},_0x1c0236['attributes']),_0x7ada80?_0x1f8950['start']['isBefore'](_0x7ada80['getFirstRange']()['start'])?(_0x7ada80['removeMarkers'](),_0x7ada80=_0x1c0236):_0x1c0236['removeMarkers']():_0x7ada80=_0x1c0236;}}}if(_0x7ada80)return this['_setSuggestionRange'](_0x7ada80,this['_model']['createRange'](_0x42dad4,_0x55c459)),_0x7ada80;{const _0x575c0d=_0x49822d(),_0x220db0=this['_model']['createRange'](_0x42dad4,_0x55c459),_0x58afc6=_0x51995a['id'],_0x46bbd6=_0x952e94?'deletion:'+_0x952e94:'deletion',_0x54a0cd=this['_setSuggestionData']({'id':_0x575c0d,'type':_0x46bbd6,'createdAt':new Date(),'authorId':_0x58afc6,'attributes':_0x1d737b});return this['_addSuggestionMarker'](_0x46bbd6,_0x575c0d,_0x58afc6,_0x220db0),_0x54a0cd;}}['markMultiRangeDeletion'](_0x8b00d0,_0x23f473='multi',_0x26a96b={}){const _0x13f7a3=this['editor']['plugins']['get']('Users')['me'],_0x444566=_0x8b00d0['map'](_0x554ef0=>new _0x542340(_0x554ef0['start'],_0x554ef0['end'])),_0x3512d3=new Set();for(const {suggestion:_0x480787,meta:_0x43983a}of this['_findSuggestions'](_0x444566,'insertion'))_0x43983a['isOwn']&&!_0x43983a['isNextTo']&&_0x3512d3['add'](_0x480787);for(const _0xb358aa of _0x3512d3)if(_0xb358aa['isMultiRange']){const _0x2ec16a=_0xb358aa['getRanges']();(!_0xb358aa['attributes']||!_0xb358aa['attributes']['skipNestingCheck'])&&(_0x2ec16a['every'](_0x1190f9=>_0x444566['some'](_0x4e213c=>_0x4e213c['containsRange'](_0x1190f9,!0x0)))&&_0xb358aa['discard']());if(_0x444566['every'](_0x41fb54=>_0x2ec16a['some'](_0x2ed13e=>_0x2ed13e['containsRange'](_0x41fb54,!0x0)))){const _0x582fcc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x23f473,'accept');return this['forceDefaultExecution'](()=>_0x582fcc(_0x8b00d0,null,_0x26a96b)),null;}}else{const _0x1bd443=_0xb358aa['getFirstRange']();_0x444566['some'](_0x469a6e=>_0x469a6e['containsRange'](_0x1bd443,!0x0))&&_0xb358aa['discard']();if(_0x444566['every'](_0x3ba04c=>_0x1bd443['containsRange'](_0x3ba04c,!0x0))){const _0x22706a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x23f473,'accept');return this['forceDefaultExecution'](()=>_0x22706a(_0x444566,null,_0x26a96b)),null;}}const _0x3ef2ab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x23f473,'join');let _0x52ab77=null;for(const _0x2b1f3a of this['getSuggestions']())if(_0x2b1f3a['author']['id']==_0x13f7a3['id']&&_0x2b1f3a['isInContent']&&'deletion'==_0x2b1f3a['type']&&_0x2b1f3a['subType']==_0x23f473&&qt(_0x2b1f3a,_0x26a96b)&&(_0x3ef2ab(_0x2b1f3a['getRanges'](),_0x444566)||_0x3ef2ab(_0x444566,_0x2b1f3a['getRanges']()))){if(_0x52ab77){if(_0x2b1f3a['commentThread']&&_0x2b1f3a['commentThread']['length'])continue;for(const _0x28c465 of _0x2b1f3a['getRanges']())_0x52ab77['isIntersectingWithRange'](_0x28c465)||_0x52ab77['addRange'](_0x28c465);_0x2b1f3a['removeMarkers']();}else{_0x52ab77=_0x2b1f3a;for(const _0x5dc716 of _0x444566)_0x2b1f3a['isIntersectingWithRange'](_0x5dc716)||_0x2b1f3a['addRange'](_0x5dc716);}}if(_0x52ab77)return _0x52ab77;_0x3512d3['clear']();for(const {suggestion:_0x31fb39,meta:_0x2a528e}of this['_findSuggestions'](_0x444566,'deletion'))_0x2a528e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2a528e['containsRangeInObject']&&!_0x2a528e['isInsideObject'])&&qt(_0x31fb39,_0x26a96b)&&_0x3512d3['add'](_0x31fb39);for(const _0x508a83 of _0x3512d3){const _0x1d215f=_0x508a83['getRanges']();if(!_0x26a96b||!_0x26a96b['skipNestingCheck']){if(_0x444566['every'](_0x24fd73=>_0x1d215f['some'](_0x473b67=>_0x473b67['containsRange'](_0x24fd73,!0x0))))return _0x508a83;}(!_0x508a83['attributes']||!_0x508a83['attributes']['skipNestingCheck'])&&(_0x1d215f['every'](_0x10cf53=>_0x444566['some'](_0x4ac748=>_0x4ac748['containsRange'](_0x10cf53,!0x0)))&&_0x508a83['discard']());}const _0x44c847=_0x49822d(),_0x3cd40e=_0x13f7a3['id'],_0x4f6ca8='deletion:'+_0x23f473,_0x4516b0=this['_setSuggestionData']({'id':_0x44c847,'type':_0x4f6ca8,'createdAt':new Date(),'authorId':_0x3cd40e,'attributes':_0x26a96b});for(const _0x4e5d76 of _0x444566)_0x4e5d76['detach'](),_0x4e5d76['isCollapsed']||'$graveyard'==_0x4e5d76['root']['rootName']||this['_addSuggestionMarker'](_0x4f6ca8,_0x44c847,_0x3cd40e,_0x4e5d76,u['getMultiRangeId']());return _0x4516b0;}['markAttributeChange'](_0x2fc3d8,_0x5a71d2,_0x3127a0,_0x1e9a42,_0x2cf474){if(_0x2fc3d8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x452a0a=this['editor']['plugins']['get']('Users')['me']['id'],_0x5befbb=Array['from'](this['_suggestions']['values']())['filter'](_0x428b78=>'attribute'==_0x428b78['type']&&_0x428b78['data']['key']==_0x5a71d2&&_0x428b78['isIntersectingWithRange'](_0x2fc3d8));if('default'===this['_trackFormatChanges']){const _0x20011b=this['_findSuggestions'](_0x2fc3d8,'insertion')['filter'](({meta:_0x303abe})=>_0x303abe['isOwn']&&!_0x303abe['isInsideObject']&&!_0x303abe['isNextTo'])['map'](({suggestion:_0x46fa53})=>_0x46fa53);_0x5befbb['unshift'](..._0x20011b);}const _0x38940e=new Map([[_0x2fc3d8,_0x3127a0]]);for(const _0x49fc88 of _0x5befbb){const _0x1b30da='attribute'==_0x49fc88['type']?_0x49fc88['data']['oldValue']:void 0x0,_0x4097ab=_0x49fc88['getFirstRange'](),_0x123306=Array['from'](_0x38940e['keys']())['find'](_0x151241=>_0x151241['isIntersecting'](_0x4097ab));if(!_0x123306)continue;const _0x554f16=_0x123306['getDifference'](_0x4097ab);this['_isBlockAttribute'](_0x5a71d2)&&'insertion'==_0x49fc88['type']&&0x0!=_0x554f16['length']||(_0x38940e['delete'](_0x123306),_0x554f16['forEach'](_0x127d48=>{_0x38940e['set'](_0x127d48,_0x3127a0);}),'insertion'!=_0x49fc88['type']&&_0x1b30da!=_0x1e9a42&&_0x38940e['set'](_0x123306['getIntersection'](_0x4097ab),_0x1b30da));}const _0x495442=[];for(const [_0x706ad7,_0x4c378e]of _0x38940e){const _0x54a8f3=_0x49822d(),_0x23c36b={'key':_0x5a71d2,'oldValue':_0x4c378e,'newValue':_0x1e9a42};_0x5a71d2['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':_0x5a71d2});const _0x55e461=('attribute:'+(_0x5a71d2+'|'+Gt({'newValue':_0x1e9a42})))['substring'](0x0,0x3c),_0x268943=this['_setSuggestionData']({'id':_0x54a8f3,'type':_0x55e461,'data':_0x23c36b,'createdAt':new Date(),'authorId':_0x452a0a,'attributes':_0x2cf474});_0x495442['push'](_0x268943),this['_addSuggestionMarker'](_0x55e461,_0x54a8f3,_0x452a0a,_0x706ad7);}return _0x495442;}['enableDefaultAttributesIntegration'](_0x404abd){this['enableCommand'](_0x404abd,(_0x35843a,..._0x361802)=>{this['_recordAttributeChanges'](()=>{_0x35843a(..._0x361802);});});}['registerBlockAttribute'](_0x4573d5){this['_blockAttributeKeys']['add'](_0x4573d5);}['registerInlineAttribute'](_0x3a7d2c){this['_inlineAttributeKeys']['add'](_0x3a7d2c);}['_getAttributeKey'](_0x1602cd){return'attribute'==_0x1602cd['type']?_0x1602cd['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x452083,_0xcdbf19){const _0x1d6bdd=_0x452083['getFirstMarker']();this['_model']['change'](_0x461160=>{_0x461160['updateMarker'](_0x1d6bdd,{'range':_0xcdbf19});});}['_addThreadToSuggestion'](_0x1d8d25){const _0x5dbe3f=_0x1d8d25['id'],_0x321602=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5dbe3f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x321602,'threadId':_0x5dbe3f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x926160=this['_commentsRepository']['getCommentThread'](_0x5dbe3f);_0x926160['unbind']('isRemovable'),_0x926160['isRemovable']=!0x1,_0x1d8d25['commentThread']=_0x926160;}['_checkSuggestionCorrectness'](_0x3d92e8,_0x1f11c6,_0x37d4cc,_0x280b95){if(_0x3d92e8['type']!=_0x1f11c6||_0x3d92e8['subType']!=_0x37d4cc||_0x3d92e8['creator']['id']!=_0x280b95)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3d68a7('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x33b2de,_0x842458){const _0x5aec0f=_0x33b2de['getFirstRange']();if(_0x842458['isEqual'](_0x5aec0f))_0x33b2de['removeMarkers']();else{if(_0x5aec0f['containsRange'](_0x842458)){const _0x5eda24=this['_model']['createPositionAt'](_0x842458['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33b2de,this['_model']['createRange'](_0x5aec0f['start'],_0x5eda24));const _0x355dc5=_0x49822d(),_0x41d583=_0x33b2de['creator']['id'],_0x4d7f34=_0x33b2de['type']+':'+_0x33b2de['subType'];this['_setSuggestionData']({'id':_0x355dc5,'type':_0x4d7f34,'createdAt':new Date(),'authorId':_0x41d583,'data':_0x33b2de['data'],'attributes':_0x33b2de['attributes']});const _0x4b159d=this['_model']['createPositionAt'](_0x842458['end']['parent'],'after'),_0x3f5c8d=this['_model']['createRange'](_0x4b159d,_0x5aec0f['end']);this['_addSuggestionMarker'](_0x4d7f34,_0x355dc5,_0x41d583,_0x3f5c8d);}else{if(_0x5aec0f['containsPosition'](_0x842458['start'])){const _0x306c4d=this['_model']['createPositionAt'](_0x842458['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33b2de,this['_model']['createRange'](_0x5aec0f['start'],_0x306c4d));}else{const _0x1cf7ff=this['_model']['createPositionAt'](_0x842458['end']['parent'],'after');this['_setSuggestionRange'](_0x33b2de,this['_model']['createRange'](_0x1cf7ff,_0x5aec0f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2fba29){for(const {suggestion:_0x4db73f,meta:_0x1ee6cc}of this['_findSuggestions'](_0x2fba29,'insertion')){if(!_0x1ee6cc['isOwn'])continue;const _0x4e50cc=_0x4db73f['getRanges']();for(const _0x39a89e of _0x4e50cc)if(!_0x2fba29['getDifference'](_0x39a89e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3cae78){const _0x3f16ae=this['editor']['plugins']['get']('Users')['getUser'](_0x3cae78);if(!_0x3f16ae)throw new _0x3d68a7('track-changes-user-not-found',this);return _0x3f16ae;}['_getExternalAuthor'](_0x38f2c6){const _0x4a17c1=this['editor']['plugins']['get']('Users'),_0x3917e7=_0x4b68ef('external:'+_0x38f2c6),_0x47a551=_0x4a17c1['getUser'](_0x3917e7);return _0x47a551||_0x4a17c1['addUser']({'id':_0x3917e7,'name':_0x38f2c6});}['_createSuggestion'](_0x4ab6ec,_0x2b9ad0,_0x192625,_0x1943ab,_0x57b8e8){const _0x15871e=this['_getAuthorFromId'](_0x1943ab),_0x427673=this['_suggestionFactory']['buildSuggestion'](_0x4ab6ec,_0x2b9ad0,_0x192625,_0x15871e,_0x57b8e8,_0x234694=>{this['_updateSuggestionData'](_0x192625,{'attributes':_0x234694});const _0x559423=this['getSuggestion'](_0x192625);this['_joinWithAdjacentSuggestions'](new Set([_0x559423])),this['_refreshSuggestionsChain'](new Set([_0x559423]));});return this['listenTo'](_0x427673,'accept',()=>{this['_updateSuggestionData'](_0x192625,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x427673,'discard',()=>{this['_updateSuggestionData'](_0x192625,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x192625,_0x427673),this['_suggestionState']['set'](_0x427673,'notReady'),_0x427673;}['_splitMarkerName'](_0x4518dc){const _0x4b6469=_0x4518dc['split'](':');return{'group':_0x4b6469[0x0],'type':_0x4b6469[0x1],'subType':_0x4b6469['length']>=0x5?_0x4b6469[0x2]:null,'id':_0x4b6469['length']<0x5?_0x4b6469[0x2]:_0x4b6469[0x3],'authorId':_0x4b6469['length']<0x5?_0x4b6469[0x3]:_0x4b6469[0x4],'markerCount':0x6==_0x4b6469['length']?_0x4b6469[0x5]:null};}['_breakSuggestionMarker'](_0x32a93a,_0x184d34,_0x26e6a7){const _0x3bbee8=_0x32a93a['getFirstRange'](),_0x7b2a75=_0x3bbee8['start'],_0x881452=_0x3bbee8['end'];this['_setSuggestionRange'](_0x32a93a,this['_model']['createRange'](_0x7b2a75,_0x184d34));const _0x42b335=_0x49822d(),_0x5dee83=_0x32a93a['creator']['id'],_0x21769f=_0x32a93a['type']+(_0x32a93a['subType']?':'+_0x32a93a['subType']:'');this['_setSuggestionData']({'id':_0x42b335,'type':_0x21769f,'createdAt':new Date(),'authorId':_0x5dee83,'originalSuggestionId':_0x32a93a['id'],'attributes':_0x32a93a['attributes'],'data':_0x32a93a['data']});const _0x20e8fe=this['_getAttributeKey'](_0x32a93a);('formatBlock'==_0x32a93a['type']||_0x20e8fe&&this['_isBlockAttribute'](_0x20e8fe))&&(_0x26e6a7=this['_model']['createPositionBefore'](_0x26e6a7['parent'])),this['_addSuggestionMarker'](_0x21769f,_0x42b335,_0x5dee83,this['_model']['createRange'](_0x26e6a7,_0x881452));}['_findSuggestions'](_0x3bd108,_0xd9149b=null){const _0x386a18=[],_0x1712fc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3bd108)||(_0x3bd108=[_0x3bd108]);for(const _0x587f41 of this['getSuggestions']()){if(!_0x587f41['isInContent'])continue;if(_0xd9149b&&_0x587f41['type']!=_0xd9149b)continue;let _0x290bb6=!0x1;for(const _0x191cf0 of _0x587f41['getRanges']()){for(const _0x3ba055 of _0x3bd108){const _0x581eff=_0x3ba055['start']['isEqual'](_0x191cf0['end'])||_0x3ba055['end']['isEqual'](_0x191cf0['start']);if(_0x581eff||_0x3ba055['getIntersection'](_0x191cf0)){const _0x334a50=_0x3ba055['containsRange'](_0x191cf0)&&Ot(this['_model']['schema'],_0x191cf0['start'],_0x3ba055),_0x17116a=_0x191cf0['containsRange'](_0x3ba055)&&Ot(this['_model']['schema'],_0x3ba055['start'],_0x191cf0);_0x386a18['push']({'suggestion':_0x587f41,'meta':{'isOwn':_0x1712fc==_0x587f41['author'],'isNextTo':_0x581eff,'isInsideObject':_0x334a50,'containsRangeInObject':_0x17116a}}),_0x290bb6=!0x0;break;}}if(_0x290bb6)break;}}return _0x386a18;}['_addSuggestionMarker'](_0x2a0881,_0x2b7932,_0x4699f4,_0x373378,_0x42d9b5){this['_model']['change'](_0x2c06a8=>{let _0x57ac71='suggestion:'+_0x2a0881+':'+_0x2b7932+':'+_0x4699f4;_0x42d9b5&&(_0x57ac71=_0x57ac71+':'+_0x42d9b5),_0x2c06a8['addMarker'](_0x57ac71,{'range':_0x373378,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4de190){const _0x96d96d=_0x4de190['previous'],_0x46dc53=_0x4de190['next'];_0x4de190['previous']=null,_0x4de190['next']=null,null!=_0x96d96d&&_0x96d96d['next']==_0x4de190&&(_0x96d96d['next']=_0x46dc53),null!=_0x46dc53&&_0x46dc53['previous']==_0x4de190&&(_0x46dc53['previous']=_0x96d96d),'ready'==this['_suggestionState']['get'](_0x4de190)&&(this['_suggestionState']['set'](_0x4de190,'removed'),this['fire']('suggestionUnloaded',_0x4de190,_0x96d96d,_0x46dc53));}['_setSuggestionData'](_0x46fa12){const _0x8a8275=_0x46fa12['id'],_0x3184af=this['addSuggestionData'](_0x46fa12);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xd13c39=this['editor']['plugins']['get']('PendingActions'),_0x354cde=_0x3184af['hasComments'],_0x548bd9=_0x3184af['subType']?_0x3184af['type']+':'+_0x3184af['subType']:_0x3184af['type'],_0x3b87d5=this['editor']['locale'],_0x5aa684=_0xd13c39['add'](o(_0x3b87d5,'PENDING_ACTION_SUGGESTION')),_0x377cb6={'id':_0x8a8275,'type':_0x548bd9,'hasComments':_0x354cde,'data':_0x46fa12['data']||null,'originalSuggestionId':_0x46fa12['originalSuggestionId']||null,'attributes':_0x3184af['attributes']};this['_adapter']['addSuggestion'](_0x377cb6)['then'](_0x47c18f=>{_0x3184af['_saved']=!0x0,_0xd13c39['remove'](_0x5aa684),_0x47c18f&&_0x47c18f['createdAt']&&(this['_suggestions']['get'](_0x8a8275)['createdAt']=_0x47c18f['createdAt']);})['catch'](_0x227031=>{throw _0x49a028('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3184af['discard']();}),_0x3184af['stopListening'](),this['_suggestions']['delete'](_0x3184af['id']),this['_suggestionState']['delete'](_0x3184af),_0x227031;});}return _0x3184af;}['_isBlockAttribute'](_0x20d24e){return this['_blockAttributeKeys']['has'](_0x20d24e);}['_updateSuggestionData'](_0x1d265d,_0x43ba92){const _0x587c24=this['editor']['plugins']['get']('PendingActions'),_0x405d1f=this['getSuggestion'](_0x1d265d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x405d1f['_saved']){const _0x3534f3=_0x587c24['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1d265d,_0x43ba92)['then'](()=>{_0x587c24['remove'](_0x3534f3);});}else _0x405d1f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1d265d,_0x43ba92);});}}['_getSuggestionData'](_0x5b74c4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3d68a7('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5b74c4);}['_handleNewSuggestionMarker'](_0x355345){const {id:_0x521ef5,type:_0x4c0425,subType:_0x321135,authorId:_0x5b6f7e}=this['_splitMarkerName'](_0x355345),_0x1d1ec2=this['_suggestions']['get'](_0x521ef5)||this['_createSuggestion'](_0x4c0425,_0x321135,_0x521ef5,_0x5b6f7e,{});switch(this['_checkSuggestionCorrectness'](_0x1d1ec2,_0x4c0425,_0x321135,_0x5b6f7e),this['_suggestionState']['get'](_0x1d1ec2)){case'notReady':this['_getSuggestionData'](_0x521ef5)['then'](_0x238c22=>{let _0x111290=Promise['resolve']();_0x238c22['hasComments']&&(_0x111290=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x521ef5})),_0x111290['then'](()=>{this['addSuggestionData'](_0x238c22)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1d1ec2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x521ef5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1d1ec2,'ready'),this['fire']('suggestionLoaded',_0x1d1ec2);break;case'ready':this['fire']('suggestionChanged',_0x1d1ec2);}return _0x1d1ec2['addMarkerName'](_0x355345),_0x1d1ec2;}['_refreshSuggestionsChain'](_0x47dbed){const _0x1eae7a=Array['from'](_0x47dbed),_0x382435=_0x1eae7a['filter'](_0x2c23b3=>'attribute'==_0x2c23b3['type']);this['_refreshAttributeSuggestionsChain'](_0x382435);const _0x25ddcf=_0x1eae7a['filter'](_0x57f9bb=>!_0x57f9bb['isMultiRange']&&'attribute'!=_0x57f9bb['type']),_0x1c74f6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xbed48b=>!_0xbed48b['isMultiRange']&&'attribute'!=_0xbed48b['type']),_0x3bc2d9=_0x1c74f6['filter'](_0x3dac24=>!_0x47dbed['has'](_0x3dac24)),_0x3be881=new Map(_0x1c74f6['map'](_0x907fe=>[_0x907fe,this['_suggestionFactory']['getSuggestionCallback'](_0x907fe['type'],_0x907fe['subType'],'chain')])),_0x1063b8=new Map(_0x1c74f6['map'](_0x1882fb=>[_0x1882fb,_0x1882fb['getFirstRange']()])),_0x89b492=new Set(),_0x4566c2=new Set();for(let _0x2c6697=0x0;_0x2c6697<_0x25ddcf['length'];_0x2c6697++)_0x481db4(_0x25ddcf[_0x2c6697],_0x25ddcf,_0x2c6697+0x1);for(let _0x2bcf6f=0x0;_0x2bcf6f<_0x25ddcf['length'];_0x2bcf6f++)_0x481db4(_0x25ddcf[_0x2bcf6f],_0x3bc2d9,0x0);const _0x51f1fd=new Set();for(let _0x129778=0x0;_0x129778<_0x25ddcf['length'];_0x129778++){const _0x3e18df=_0x25ddcf[_0x129778];!_0x4566c2['has'](_0x3e18df)&&_0x3e18df['previous']&&(_0x51f1fd['add'](_0x3e18df['previous']),_0x3e18df['previous']['next']===_0x3e18df&&(_0x3e18df['previous']['next']=null),_0x3e18df['previous']=null),!_0x89b492['has'](_0x3e18df)&&_0x3e18df['next']&&(_0x51f1fd['add'](_0x3e18df['next']),_0x3e18df['next']['previous']===_0x3e18df&&(_0x3e18df['next']['previous']=null),_0x3e18df['next']=null);}function _0x481db4(_0x3db9b5,_0x33b6fe,_0x25e19f){for(let _0x368b21=_0x25e19f;_0x368b21<_0x33b6fe['length'];_0x368b21++){const _0x583175=_0x136662(_0x3db9b5,_0x33b6fe[_0x368b21]);_0x583175&&(_0x583175[0x0]['next']=_0x583175[0x1],_0x583175[0x1]['previous']=_0x583175[0x0],_0x89b492['add'](_0x583175[0x0]),_0x4566c2['add'](_0x583175[0x1]));}}function _0x136662(_0x473d52,_0x124eb7){if(_0x473d52['author']['id']!==_0x124eb7['author']['id'])return null;const _0x347688=_0x3be881['get'](_0x473d52)(_0x473d52,_0x124eb7,_0x1063b8['get'](_0x473d52),_0x1063b8['get'](_0x124eb7));if(!_0x347688)return null;return _0x3be881['get'](_0x124eb7)(_0x473d52,_0x124eb7,_0x1063b8['get'](_0x473d52),_0x1063b8['get'](_0x124eb7))?_0x347688[0x1]['commentThread']&&_0x347688[0x1]['commentThread']['length']?null:_0x347688:null;}_0x51f1fd['size']&&this['_refreshSuggestionsChain'](_0x51f1fd);}['_refreshAttributeSuggestionsChain'](_0x5518aa){if(0x0==_0x5518aa['length'])return;const _0x39225e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f4b26=>'attribute'==_0x4f4b26['type']&&_0x4f4b26['_isDataLoaded']),_0x5b3ab0=[],_0x73ad96=new Map();for(const _0xc2614a of _0x39225e){const _0x2badf8=_0x4b68ef(_0xc2614a['attributes']);_0x73ad96['has'](_0x2badf8)||(_0x73ad96['set'](_0x2badf8,_0x5b3ab0['length']),_0x5b3ab0['push']([]));const _0x325512=_0x73ad96['get'](_0x2badf8);_0x5b3ab0[_0x325512]['push'](_0xc2614a);}!(function(){_0x5b3ab0['sort']((_0xf5e337,_0x4eb6b7)=>{const _0x1ec422=_0xf5e337[0x0]['createdAt'],_0x3c3313=_0x4eb6b7[0x0]['createdAt'];return _0x1ec422==_0x3c3313?_0xf5e337[0x0]['attributes']['groupId']<_0x4eb6b7[0x0]['attributes']['groupId']?-0x1:0x1:_0x1ec422<_0x3c3313?-0x1:0x1;});for(const _0x531b15 of _0x5b3ab0)_0x531b15['sort']((_0x1903c8,_0x1a68ea)=>_0x1903c8['id']<_0x1a68ea['id']?-0x1:0x1);}());for(let _0x298670=0x0;_0x298670<_0x5b3ab0['length'];_0x298670++){if(0x0==_0x5b3ab0[_0x298670]['length'])continue;const _0x2cb367=[];for(let _0x14527c=_0x298670+0x1;_0x14527c<_0x5b3ab0['length'];_0x14527c++)0x0!=_0x5b3ab0[_0x14527c]['length']&&_0x1d9b27(_0x5b3ab0[_0x298670],_0x5b3ab0[_0x14527c])&&_0x2cb367['push'](_0x14527c);for(const _0x48b46a of _0x2cb367)_0x5b3ab0[_0x298670]=_0x5b3ab0[_0x298670]['concat'](_0x5b3ab0[_0x48b46a]),_0x5b3ab0[_0x48b46a]=[];}for(const _0x39b6d3 of _0x5b3ab0)for(let _0x564e9f=0x0;_0x564e9f<_0x39b6d3['length'];_0x564e9f++){const _0x5ce1ce=_0x39b6d3[_0x564e9f+0x1]||null;_0x39b6d3[_0x564e9f]['next']!==_0x5ce1ce&&(_0x39b6d3[_0x564e9f]['next']=_0x5ce1ce);}for(const _0x4b8286 of _0x5b3ab0)for(let _0x11c6f5=0x0;_0x11c6f5<_0x4b8286['length'];_0x11c6f5++){const _0x227435=_0x4b8286[_0x11c6f5-0x1]||null;_0x4b8286[_0x11c6f5]['previous']!==_0x227435&&(_0x4b8286[_0x11c6f5]['previous']=_0x227435);}function _0x1d9b27(_0x1964ac,_0x4abddb){if(_0x1964ac[0x0]['attributes']['groupId']!==_0x4abddb[0x0]['attributes']['groupId']&&_0x1964ac[0x0]['author']!==_0x4abddb[0x0]['author'])return!0x1;if(!function(_0x5b8a0b,_0x166d66){if(!_0x5b8a0b['hasComments']&&!_0x166d66['hasComments'])return!0x0;if(_0x5b8a0b['hasComments']&&_0x166d66['hasComments'])return!0x1;if(_0x5b8a0b['hasComments']&&_0x166d66['createdAt']<_0x5b8a0b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x166d66['hasComments']&&_0x5b8a0b['createdAt']<_0x166d66['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1964ac[0x0],_0x4abddb[0x0]))return!0x1;const _0x5d7010=Tt(_0x1964ac[0x0]['attributes'],'groupId'),_0x3d834a=Tt(_0x4abddb[0x0]['attributes'],'groupId');if(!_0x49fb27(_0x5d7010,_0x3d834a))return!0x1;return!!_0x1964ac['every'](_0x3e02dd=>_0x4abddb['some'](_0x15790a=>_0x3e02dd['getFirstRange']()['isEqual'](_0x15790a['getFirstRange']())))&&_0x4abddb['every'](_0xbbcec=>_0x1964ac['some'](_0x171a28=>_0xbbcec['getFirstRange']()['isEqual'](_0x171a28['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1f9c54){const _0x12f371=Array['from'](_0x1f9c54),_0x1bd2bc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x586dc5=_0x1bd2bc['filter'](_0x445b60=>!_0x1f9c54['has'](_0x445b60)),_0x190b32=new Map(_0x12f371['map'](_0x47c4d7=>[_0x47c4d7,this['_suggestionFactory']['getSuggestionCallback'](_0x47c4d7['type'],_0x47c4d7['subType'],'join')])),_0x58fd6f=new Map(_0x1bd2bc['map'](_0x121d49=>[_0x121d49,_0x121d49['getRanges']()]));for(let _0x38b4b4=0x0;_0x38b4b4<_0x12f371['length'];_0x38b4b4++){if(_0x12bdf5(this,_0x12f371[_0x38b4b4],_0x12f371,_0x38b4b4+0x1))return!0x0;}for(let _0x10981d=0x0;_0x10981d<_0x12f371['length'];_0x10981d++){if(_0x12bdf5(this,_0x12f371[_0x10981d],_0x586dc5,0x0))return!0x0;}return!0x1;function _0x12bdf5(_0x2a284d,_0x133c52,_0x5a3be6,_0x527570){for(let _0xad0392=_0x527570;_0xad0392<_0x5a3be6['length'];_0xad0392++){const _0x5cbea1=_0x5a3be6[_0xad0392];if(_0x5cbea1['type']!==_0x133c52['type']||_0x5cbea1['author']['id']!==_0x133c52['author']['id']||_0x5cbea1['subType']!==_0x133c52['subType'])continue;if(!Jt(_0x133c52,_0x5cbea1))continue;if('attribute'==_0x133c52['type']&&_0x133c52['data']['oldValue']!=_0x5cbea1['data']['oldValue'])continue;if('attribute'==_0x133c52['type']&&_0x2a284d['_isBlockAttribute'](_0x133c52['data']['key']))continue;if('formatBlock'==_0x133c52['type']){const _0x56a4ef=_0x2a284d['editor']['model'],_0x4956d7=_0x133c52['getContainedElement']();if(_0x4956d7&&(_0x56a4ef['schema']['isObject'](_0x4956d7)||_0x56a4ef['schema']['isLimit'](_0x4956d7)))continue;}const _0x54907e=_0x190b32['get'](_0x133c52),_0x5cf479=_0x58fd6f['get'](_0x133c52),_0x3c7ec2=_0x58fd6f['get'](_0x5cbea1),_0x22f18f=_0x133c52['commentThread']&&_0x133c52['commentThread']['length'],_0x9461a2=_0x5cbea1['commentThread']&&_0x5cbea1['commentThread']['length'];if(!_0x22f18f&&_0x54907e(_0x3c7ec2,_0x5cf479))return _0x2a284d['_joinSuggestions'](_0x5cbea1,_0x133c52),_0x58fd6f['delete'](_0x133c52),!0x0;if(!_0x9461a2&&_0x54907e(_0x5cf479,_0x3c7ec2))return _0x2a284d['_joinSuggestions'](_0x133c52,_0x5cbea1),_0x58fd6f['delete'](_0x5cbea1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x18b33f,_0x53d65c){if(_0x18b33f['isMultiRange']){for(const _0x4609e2 of _0x53d65c['getRanges']())_0x18b33f['addRange'](_0x4609e2);}else{const _0x14a571=_0x53d65c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x18b33f,this['_model']['createRange'](_0x18b33f['getFirstRange']()['start'],_0x14a571));}_0x53d65c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x17e751,_0x2c6bb8,_0xf54830){const _0x43a0a9=_0x17e751['startsWith']('format')||_0x17e751['startsWith']('attribute')?'FORMATTING':_0x17e751['toUpperCase']();return o(this['editor']['locale'],_0x2c6bb8+'_'+_0x43a0a9+'_SUGGESTION_ANNOUNCEMENT',_0xf54830);}['_initAriaMarkerChangeAnnouncements'](){const _0x24ac5e=this['editor'];if(!_0x24ac5e['ui'])return;const {ariaLiveAnnouncer:_0x1292d8}=_0x24ac5e['ui'];_0x343835(this['_model'],({left:_0x482a84,entered:_0x316c75})=>{for(const _0x3ce206 of _0x482a84){const {group:_0x45d92b,type:_0x2803ca}=this['_splitMarkerName'](_0x3ce206['name']);if('suggestion'===_0x45d92b){_0x1292d8['announce'](this['_getMarkerAnnouncementText'](_0x2803ca,'LEAVE'));break;}}for(const _0x10b331 of _0x316c75){const {group:_0x5aa2c9,type:_0x158f52}=this['_splitMarkerName'](_0x10b331['name']);if('suggestion'===_0x5aa2c9){_0x1292d8['announce'](this['_getMarkerAnnouncementText'](_0x158f52,'ENTER',_0x12a168(_0x563bb2)));break;}}});}['_processAttributeChanges'](_0x5138c1){if(this['_recordAttributeSuggestions'])return!0x1;const _0xef8063=this['editor'],_0x364320=_0xef8063['model']['document']['differ']['getChanges']();if(0x0==_0x364320['length'])return!0x1;const _0x7c196=[],_0x3e23bf=_0x364320['filter'](_0x59a207=>'attribute'==_0x59a207['type']),_0x2db966=_0x364320['filter'](_0x3994a8=>'insert'==_0x3994a8['type']&&'$text'!=_0x3994a8['name']),_0x5f5517=_0x364320['filter'](_0x757d68=>'remove'==_0x757d68['type']&&'$text'!=_0x757d68['name']);for(const _0x13900c of _0x3e23bf)_0x7c196['push']({'key':_0x13900c['attributeKey'],'newValue':_0x13900c['attributeNewValue'],'oldValue':_0x13900c['attributeOldValue'],'range':Pt(_0x13900c['range'],_0xef8063['model'])});for(const _0x40bd18 of _0x2db966){const _0x3ac8c8=_0x5f5517['find'](_0x320438=>_0x320438['position']['isEqual'](_0x40bd18['position']));_0x3ac8c8&&_0x7c196['push']({'key':m,'newValue':_0x40bd18['name'],'oldValue':_0x3ac8c8['name'],'range':_0xef8063['model']['createRangeOn'](_0x40bd18['position']['nodeAfter'])});}return 0x0!=_0x7c196['length']&&this['_reduceExistingSuggestions'](_0x5138c1,_0x7c196);}['_processAttributeSuggestions'](_0x5a950f){let _0x3e8850=!0x1;const _0x4a9487=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5f3d2e=>_0x5f3d2e['data']['newRange']&&_0x5f3d2e['name']['startsWith']('suggestion:attribute:'));for(const _0x1b2c4a of _0x4a9487){const {subType:_0x42b319,id:_0x152063}=this['_splitMarkerName'](_0x1b2c4a['name']),_0x1cabe7=_0x42b319['split']('|')[0x0];for(const _0x49aa32 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x49aa32['id']!=_0x152063&&'attribute'==_0x49aa32['type']&&_0x49aa32['data']&&_0x49aa32['data']['key']==_0x1cabe7&&_0x49aa32['getFirstRange']()['isIntersecting'](_0x1b2c4a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x49aa32,_0x1b2c4a['data']['newRange'],_0x5a950f),_0x3e8850=!0x0);}return _0x3e8850;}['_recordAttributeChanges'](_0x41e985){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x41e985();}['_isRegisteredAttribute'](_0x5f18e8){const _0x704268=this['_isBlockAttribute'](_0x5f18e8),_0x1fb769=this['_inlineAttributeKeys']['has'](_0x5f18e8);return _0x704268||_0x1fb769;}['_reduceExistingSuggestions'](_0x2f85f8,_0x35c6ed){if(0x0==_0x35c6ed['length'])return!0x1;let _0x22442a=!0x1;for(const _0x4e97ba of _0x35c6ed){const _0x140ec0=this['_findSuggestions'](_0x4e97ba['range'],'attribute')['filter'](_0x1efda3=>!_0x1efda3['meta']['isNextTo'])['map'](_0x1142a4=>_0x1142a4['suggestion']),_0x3eb87b=_0x4b68ef({'newValue':_0x4e97ba['newValue']});_0x140ec0['filter'](_0x324473=>{const [_0x1382c4,_0x3b32ad]=_0x324473['subType']['split']('|');return _0x1382c4==_0x4e97ba['key']&&_0x3b32ad!=_0x3eb87b;})['forEach'](_0x59ae29=>{this['_reduceSuggestionAttributeRange'](_0x59ae29,_0x4e97ba['range'],_0x2f85f8),_0x22442a=!0x0;});}return _0x22442a;}['_reduceSuggestionAttributeRange'](_0x530a4c,_0x15bd87,_0x4dd6b3){const _0x557fb5=_0x530a4c['getFirstRange']()['getDifference'](_0x15bd87);0x0!==_0x557fb5['length']?0x1!==_0x557fb5['length']?this['_breakSuggestionMarker'](_0x530a4c,_0x15bd87['start'],_0x15bd87['end']):this['_setSuggestionRange'](_0x530a4c,_0x557fb5[0x0]):_0x4dd6b3['removeMarker'](_0x530a4c['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3b49d3){this['_editor']=_0x3b49d3,this['_model']=_0x3b49d3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xf5b79d,_0x509690,_0x42e5f0,_0x2f24a0,_0xdafe91,_0x3b4fdc){return new u(this['_model'],{'type':_0xf5b79d,'subType':_0x509690,'id':_0x42e5f0,'author':_0x2f24a0,'creator':_0x2f24a0,'attributes':_0xdafe91,'onAttributesChange':_0x3b4fdc,'onAccept':(..._0x98ffdb)=>this['getSuggestionCallback'](_0xf5b79d,_0x509690,'accept')(..._0x98ffdb),'onDiscard':(..._0x2301e6)=>this['getSuggestionCallback'](_0xf5b79d,_0x509690,'discard')(..._0x2301e6)});}['registerCustomCallback'](_0x4d51e2,_0x4abd8f,_0x3f48ea,_0xaa5a91){const _0x4ba9cc=_0x4d51e2+':'+_0x4abd8f+':'+_0x3f48ea;this['_customCallbacks']['set'](_0x4ba9cc,_0xaa5a91);}['getSuggestionCallback'](_0x4d0699,_0x502a26,_0x481b3c){const _0x50f661=_0x4d0699+':'+_0x502a26+':'+_0x481b3c;return this['_customCallbacks']['get'](_0x50f661)||this['_defaultCallbacks']['get'](_0x4d0699+':'+_0x481b3c);}['_registerDefaultCallbacks'](){const _0x552193=()=>!0x1,_0x3ec7ab=_0x5371e8=>{_0x5371e8['sort']((_0x27373c,_0x98c21a)=>_0x27373c['start']['isBefore'](_0x98c21a['start'])?0x1:-0x1),this['_model']['change'](_0xd9ab8b=>{for(const _0x3aec50 of _0x5371e8){let _0x57a398;_0x57a398=_0x3aec50['end']['isAtEnd']&&_0x3aec50['end']['parent']==_0x3aec50['start']['nodeAfter']?_0xd9ab8b['createSelection'](_0x3aec50['start']['nodeAfter'],'on'):_0xd9ab8b['createSelection'](_0x3aec50),this['_model']['deleteContent'](_0x57a398,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x542978=(_0x1d7531,_0x4964a7)=>{_0x4964a7&&this['_model']['change'](_0x4926fd=>{const {commandName:_0x52457c,commandParams:_0x3c933a=[]}=_0x4964a7,_0x28363e=_0x1d7531['map'](_0x2961e7=>(Vt(_0x2961e7)&&(_0x2961e7=this['_model']['createRange'](_0x2961e7['end'])),_0x2961e7))['filter'](_0x2da012=>'$graveyard'!==_0x2da012['root']['rootName']);if(_0x28363e['length']<0x1)return;const _0x21fee5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x918a61=>_0x542340['fromRange'](_0x918a61));_0x4926fd['setSelection'](_0x28363e);for(const _0x399c87 of this['_editor']['commands']['commands']())_0x399c87['refresh']();_0x3c933a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x52457c,..._0x3c933a);const _0x575c7b=_0x21fee5['filter'](_0x58e923=>'$graveyard'!=_0x58e923['root']['rootName']);_0x575c7b['length']>0x0&&_0x4926fd['setSelection'](_0x575c7b);for(const _0x57bc57 of _0x21fee5)_0x57bc57['detach']();});},_0x254de7=(_0x20c136,_0x2beef0)=>0x1==_0x20c136['length']&&0x1==_0x2beef0['length']&&_0x20c136[0x0]['end']['isEqual'](_0x2beef0[0x0]['start']),_0x97da02=(_0x715ee3,_0x19043b,_0x439c26,_0x17652b)=>Ht(_0x715ee3,_0x19043b,_0x439c26,_0x17652b,this['_model'])?[_0x715ee3,_0x19043b]:Ht(_0x19043b,_0x715ee3,_0x17652b,_0x439c26,this['_model'])?[_0x19043b,_0x715ee3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x552193),this['_defaultCallbacks']['set']('insertion:discard',_0x3ec7ab),this['_defaultCallbacks']['set']('insertion:join',_0x254de7),this['_defaultCallbacks']['set']('insertion:chain',_0x97da02),this['_defaultCallbacks']['set']('deletion:accept',_0x3ec7ab),this['_defaultCallbacks']['set']('deletion:discard',_0x552193),this['_defaultCallbacks']['set']('deletion:join',_0x254de7),this['_defaultCallbacks']['set']('deletion:chain',_0x97da02),this['_defaultCallbacks']['set']('formatInline:accept',_0x542978),this['_defaultCallbacks']['set']('formatInline:discard',_0x552193),this['_defaultCallbacks']['set']('formatInline:join',_0x254de7),this['_defaultCallbacks']['set']('formatInline:chain',_0x552193),this['_defaultCallbacks']['set']('formatBlock:accept',_0x542978),this['_defaultCallbacks']['set']('formatBlock:discard',_0x552193),this['_defaultCallbacks']['set']('formatBlock:join',_0x254de7),this['_defaultCallbacks']['set']('formatBlock:chain',_0x552193),this['_defaultCallbacks']['set']('attribute:accept',_0x552193),this['_defaultCallbacks']['set']('attribute:discard',(_0x269060,_0x2c5797)=>{if(!_0x2c5797)return;const _0x1484b1=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x14f78e=>{if(_0x2c5797['key']==m)for(const _0x2e4b14 of _0x269060){const _0x1f25fc=_0x2e4b14['start']['nodeAfter'],_0x77b39b=_0x2c5797['oldValue'];_0x14f78e['rename'](_0x1f25fc,_0x77b39b);}else{if(_0x1484b1['_isBlockAttribute'](_0x2c5797['key'])){for(const _0x436ad9 of _0x269060)void 0x0!==_0x2c5797['oldValue']?_0x14f78e['setAttribute'](_0x2c5797['key'],_0x2c5797['oldValue'],_0x436ad9['start']['nodeAfter']):_0x14f78e['removeAttribute'](_0x2c5797['key'],_0x436ad9['start']['nodeAfter']);}else{for(const _0x3d3472 of _0x269060)_0x2c5797['oldValue']?_0x14f78e['setAttribute'](_0x2c5797['key'],_0x2c5797['oldValue'],_0x3d3472):_0x14f78e['removeAttribute'](_0x2c5797['key'],_0x3d3472);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x254de7);}}function Ot(_0x4e6aef,_0x2d729a,_0xe6dc2b){for(const _0x353c6d of _0x2d729a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x353c6d['root']==_0x353c6d)return!0x1;if(!_0xe6dc2b['containsItem'](_0x353c6d))return!0x1;if(_0x4e6aef['isObject'](_0x353c6d)||_0x4e6aef['isLimit'](_0x353c6d))return!0x0;}return!0x1;}function Vt(_0x59c521){return _0x59c521['end']['parent']==_0x59c521['start']['nodeAfter']&&_0x59c521['end']['isAtStart'];}function Ut(_0x4d3667,_0x5a5be9,_0x5465e1,_0x38cd1d){const _0x102d6c=_0x32297a=>!_0x32297a['item']['is']('$textProxy')&&!_0x38cd1d['isObject'](_0x32297a['item']),_0x209c42=_0x4d3667['start']['getLastMatchingPosition'](_0x102d6c),_0x39b778=_0x4d3667['end']['getLastMatchingPosition'](_0x102d6c,{'direction':'backward'});return(!_0x4d3667['start']['isEqual'](_0x209c42)||!_0x4d3667['end']['isEqual'](_0x39b778))&&(_0x209c42['isBefore'](_0x39b778)?_0x5465e1['updateMarker'](_0x5a5be9,{'range':_0x5465e1['createRange'](_0x209c42,_0x39b778)}):_0x5465e1['removeMarker'](_0x5a5be9),!0x0);}function Gt(_0x2e7a29){return _0x4b68ef(_0x2e7a29);}function Ft(_0x3f3149){const _0x308c2a=_0x3f3149['start']['nodeAfter'];return _0x308c2a&&_0x308c2a['is']('element');}function Pt(_0x1fdd09,_0xd9219c){return null==_0x1fdd09['end']['nodeBefore']&&_0x1fdd09['end']['parent']==_0x1fdd09['start']['nodeAfter']?Lt(_0x1fdd09['start']['nodeAfter'],_0xd9219c):_0x1fdd09;}function Lt(_0x13ae81,_0x1555ef){const _0x3de4f7=_0x1555ef['schema']['isObject'](_0x13ae81)||_0x1555ef['schema']['isSelectable'](_0x13ae81);return _0x1555ef['createRange'](_0x1555ef['createPositionAt'](_0x13ae81,'before'),_0x3de4f7?_0x1555ef['createPositionAfter'](_0x13ae81):_0x1555ef['createPositionAt'](_0x13ae81,'end'));}function Ht(_0x11146e,_0x53d3d3,_0x9fe53f,_0x1ea4d6,_0x5926a9){if(_0x11146e['next'])return!0x1;if(!Jt(_0x11146e,_0x53d3d3))return!0x1;if(_0x9fe53f['end']['isEqual'](_0x1ea4d6['start']))return!0x0;if(_0x11146e['type']!=_0x53d3d3['type'])return!0x1;if(!_0x9fe53f['end']['isTouching'](_0x1ea4d6['start']))return!0x1;const _0x3a3c27=_0x5926a9['createRange'](_0x9fe53f['end'],_0x1ea4d6['start'])['getWalker']();for(const _0x4885c4 of _0x3a3c27)if(['elementStart','elementEnd']['includes'](_0x4885c4['type'])&&_0x5926a9['schema']['isLimit'](_0x4885c4['item']))return!0x1;return!0x0;}function Jt(_0x5b397a,_0x53bb8c){if(!_0x5b397a['_isDataLoaded']||!_0x53bb8c['_isDataLoaded'])return!0x1;const _0x3548fa=new Set(Object['keys'](_0x5b397a['attributes'])),_0x1aac62=new Set(Object['keys'](_0x53bb8c['attributes']));if(_0x3548fa['delete']('groupId'),_0x1aac62['delete']('groupId'),0x0==_0x3548fa['size']&&0x0==_0x1aac62['size'])return!0x0;if(_0x3548fa['size']!=_0x1aac62['size'])return!0x1;const _0x182b04={..._0x5b397a['attributes']},_0x526fda={..._0x53bb8c['attributes']};return delete _0x182b04['groupId'],delete _0x526fda['groupId'],JSON['stringify'](_0x182b04)==JSON['stringify'](_0x526fda);}function qt(_0x525938,_0x403699){const _0x31a841=zt(_0x525938['attributes']),_0xa1b741=zt(_0x403699);if(!_0x525938['_isDataLoaded'])return!0x1;for(const _0x400c0e of Object['keys'](_0xa1b741))if(!_0x49fb27(_0x31a841[_0x400c0e],_0xa1b741[_0x400c0e]))return!0x1;return!0x0;}function zt(_0x2e253c){const _0x244d8e=Object['assign']({},_0x2e253c);return delete _0x244d8e['skipNestingCheck'],delete _0x244d8e['tablePasteChainId'],_0x244d8e;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x13b011(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x134b71,_0x3457eb,_0xd0e049,_0x47c84d){super(),this['model']=_0x3457eb,this['view']=_0xd0e049,this['commentThreadController']=_0x47c84d,this['_editor']=_0x134b71,this['_acceptCommand']=_0x134b71['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x134b71['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3af97b,_0x444216)=>_0x3af97b||_0x444216),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1d0184=>_0x1d0184&&this['_editor']['model']['canEditAt'](_0x3457eb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5b1f94=>_0x5b1f94&&this['_editor']['model']['canEditAt'](_0x3457eb['getRanges']())),this['_pendingAction']=null,_0xd0e049['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xd0e049,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xd0e049,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xd0e049,'change:isDirty',()=>{_0xd0e049['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 _0x3e2c86=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3e2c86);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x381225{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4aa969,_0x200373,_0x44ce34,_0xb5df45){super(_0x4aa969),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3fddae(_0x4aa969,o(_0x4aa969,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x200373['authoredAt']),this['bind']('authoredAt')['to'](_0x200373),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x200373,'authoredAt',this,'descriptionParts',(_0x3a4302,_0x3ad798,_0x19a616)=>{const _0x1b1497=_0x19a616['map'](_0x3cc757=>ls(_0x3cc757['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3a4302-0x1,_0x200373['author']['name'],_0x3ad798?_0xb5df45['formatDateTime'](_0x3ad798):'',new DOMParser()['parseFromString'](_0x1b1497,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1dbeaa(),this['focusTracker']=new _0x280b81(),this['keystrokes']=new _0xee9339(),this['focusCycler']=new _0x33620a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x530c4d=>_0x530c4d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x200373,this['_localUser']=_0x44ce34,this['_config']=_0xb5df45,_0xb5df45['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3fa51a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x517385}=this['_config'];this['commentsListView']=new _0x517385(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',_0x2b5a0a=>_0x2b5a0a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3b83e4,_0x498591)=>_0x3b83e4||!!_0x498591);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x35dd6a}=this['_config'],_0x3ba84d=new _0x35dd6a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1e349f=_0x3ba84d['commentInputView'];return _0x3ba84d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1e349f,'value',(_0x4ceefd,_0x7dff20,_0x323099)=>!!_0x323099||_0x4ceefd&&!_0x7dff20),_0x1e349f['on']('submit',(_0x4c7cd5,_0x371dee)=>{this['fire']('addComment',_0x371dee),_0x1e349f['editor']['setData']('');}),_0x1e349f['on']('cancel',()=>this['focus']()),_0x1e349f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3ba84d;}}class re extends us{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x4a7daa,_0x2b82da,_0x438f06,_0x8d8f7f){super(_0x4a7daa,_0x2b82da,_0x438f06,_0x8d8f7f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3df412=>_0x3df412&&_0x3df412[0x0]?_0x3df412[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3c38cc,_0x2aa667)=>{let _0x5cd25b='';for(const _0x5b2004 of _0x3c38cc)_0x5cd25b+='<p>'+ls(_0x5b2004['content'],_0x5b2004['color'])+'</p>';return _0x2aa667?_0x5cd25b:_0x36a08d(_0x5cd25b,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4a7daa,'Accept\x20suggestion'),_0x1c8cac['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4a7daa,'Discard\x20suggestion'),_0x1c8cac['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x29b738(_0x4a7daa,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']['addMany']([this['acceptButton'],this['discardButton']]),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x225b78=this['bindTemplate'],_0x4fe72c=[{'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':_0x225b78['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x225b78['to']('authoredAt',_0x1791d4=>this['_config']['formatDateTime'](_0x1791d4))}]}]},{'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']&&_0x4fe72c['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3436b6={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x225b78['if']('isActive','ck-suggestion-wrapper--active'),_0x225b78['to']('type',_0x5ddb96=>'ck-suggestion-'+_0x5ddb96),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':0x0,'role':'listitem','aria-label':_0x225b78['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x4fe72c},this['ariaDescriptionView']]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3436b6['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)),_0x3436b6;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x4e3258,_0x322bb2,_0x206ce2)=>{this['_descriptionElement']['innerHTML']=_0x206ce2;});}['_createButton'](_0x1feb55,_0x5c5301,_0x10cf6f,_0x34c1e2,_0xc8fac6){const _0x53298a=new _0x31ec2f(this['locale']);return _0x53298a['set']({'label':_0x1feb55,'icon':_0x5c5301,'tooltip':!0x0,'tooltipPosition':_0xc8fac6}),_0x53298a['extendTemplate']({'attributes':{'class':_0x10cf6f}}),_0x53298a['on']('execute',()=>{this['fire'](_0x34c1e2,this['_model']['id']);}),_0x53298a;}['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;}}var ce='<!--\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\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x266c89{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x24db66,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x5c7dfc){super(_0x5c7dfc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1a6458=this['editor']['config'];_0x1a6458['define']('trackChanges.SuggestionThreadView',re),_0x1a6458['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1a6458['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x4d3835,_0x321426){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4832a3,_0x489ff6]of this['_handleControllerBuffer']){const _0x58b649=this['_suggestionToController']['has'](_0x4832a3);_0x58b649||_0x489ff6?_0x58b649&&_0x489ff6&&this['_destroyController'](_0x4832a3):this['_initializeController'](_0x4832a3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4d3835,_0x321426);}['init'](){const _0xd4af8d=this['editor'],_0x50e0e3=_0xd4af8d['plugins']['get']('TrackChangesEditing'),_0x145ea2=_0xd4af8d['plugins']['get']('Annotations'),_0x1d7b99=_0xd4af8d['plugins']['get']('EditorAnnotations'),_0x41c085=_0xd4af8d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1d7b99['addSourceCollector'](()=>{const _0x2ba2d3=[];for(const [_0xeafac7,_0x1c7a26]of Array['from'](this['_suggestionToController'])){const _0x2c5c1f=_0xeafac7['getAllAdjacentSuggestions'](),_0xcb3117=[];for(const _0x48a878 of _0x2c5c1f){if(!_0x48a878['isInContent'])continue;if(_0x48a878['isMultiRange']){_0xcb3117['push'](..._0x48a878['getRanges']());continue;}const _0x164630=_0x48a878['getFirstRange']();if(_0xcb3117['length']>0x0){const _0x102f0a=_0xcb3117[0x0]['getJoined'](_0x164630);if(_0x102f0a){_0xcb3117[0x0]=_0x102f0a;continue;}}_0xcb3117['push'](_0x164630);}_0x2ba2d3['push']([_0x1c7a26['view'],_0xcb3117]);}return _0x2ba2d3;}),this['listenTo'](_0x50e0e3,'suggestionLoaded',(_0x330971,_0x4cd7ad)=>{this['listenTo'](_0x4cd7ad,'change:previous',(_0x25e77d,_0x58e85a,_0x2d8a44,_0x2f4e6f)=>{_0x4cd7ad['isInContent']&&(null==_0x2d8a44?(this['_updateController'](_0x2f4e6f['head']),this['_handleSuggestionControllerDelayed'](_0x4cd7ad,!0x1)):(this['_updateController'](_0x2d8a44['head']),null==_0x2f4e6f&&this['_handleSuggestionControllerDelayed'](_0x4cd7ad,!0x0)));}),null!==_0x4cd7ad['previous']?this['_updateController'](_0x4cd7ad['head']):this['_handleSuggestionControllerDelayed'](_0x4cd7ad,!0x1);}),this['listenTo'](_0x50e0e3,'suggestionUnloaded',(_0x53ccb6,_0x37d511,_0x24407c)=>{this['stopListening'](_0x37d511,'change:previous'),this['_handleControllerBuffer']['delete'](_0x37d511),this['_suggestionToController']['has'](_0x37d511)&&this['_destroyController'](_0x37d511),_0x24407c&&this['_updateController'](_0x24407c['head']);}),this['listenTo'](_0x50e0e3,'suggestionChanged',(_0x5065e2,_0x22eb66)=>{this['_updateController'](_0x22eb66);}),this['listenTo'](_0x145ea2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x41c085,'addComment',(_0x30ecce,{threadId:_0x2fd1bb,isFromAdapter:_0x21f7cd})=>{if(_0x21f7cd||!_0x50e0e3['hasSuggestion'](_0x2fd1bb))return;const _0x96deda=_0x50e0e3['getSuggestion'](_0x2fd1bb);this['_suggestionToController']['get'](_0x96deda)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x53901d=this['editor']['plugins']['get']('Annotations'),_0x5d22e7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1616c2=Array['from'](_0x53901d['activeAnnotations'],_0x3ee1e7=>_0x3ee1e7['innerView'])['filter'](_0x580b3d=>this['_viewToController']['has'](_0x580b3d)),_0x2da09d=[];for(const _0x3f4744 of _0x1616c2){const _0xf5ad8c=this['_viewToController']['get'](_0x3f4744)['model']['getAllAdjacentSuggestions']();_0x2da09d['push'](..._0xf5ad8c['reduce']((_0x1e1028,_0x14786c)=>[..._0x1e1028,..._0x14786c['getMarkerNames']()],[]));}_0x5d22e7['activeMarkers']=_0x2da09d;}['_addUIComponentsToFactory'](){const _0x136c68=this['editor'],_0x20802e=_0x136c68['locale'],_0x449e1b=o(_0x20802e,'Track\x20changes'),_0x52d7fe=new Wt([{'type':'switchbutton','model':new _0x48e8dd({'withText':!0x0,'isToggleable':!0x0,'label':_0x449e1b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x48e8dd({'withText':!0x0,'label':o(_0x20802e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x48e8dd({'withText':!0x0,'label':o(_0x20802e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x48e8dd({'withText':!0x0,'label':o(_0x20802e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x48e8dd({'withText':!0x0,'label':o(_0x20802e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2c06c0 of _0x52d7fe)if(he(_0x2c06c0)){const _0x4258d9=_0x136c68['commands']['get'](_0x2c06c0['model']['commandName']);_0x2c06c0['model']['bind']('isOn','isEnabled')['to'](_0x4258d9,'value','isEnabled');}_0x136c68['ui']['componentFactory']['add']('trackChanges',_0x4b4897=>this['_createToolbarButton'](_0x4b4897,_0x52d7fe,_0x449e1b)),_0x136c68['ui']['componentFactory']['add']('menuBar:trackChanges',_0x881a1=>this['_createMenuBarMenu'](_0x881a1,_0x52d7fe,_0x449e1b));}['_createToolbarButton'](_0x196834,_0x47dde0,_0x4fe4c5){const _0x14ea9d=Qt(_0x196834,_0x3f6f88),_0x1860b3=this['editor']['commands']['get']('trackChanges');_0x14ea9d['buttonView']['set']({'tooltip':_0x4fe4c5,'label':_0x4fe4c5,'icon':ce}),_0x14ea9d['buttonView']['bind']('isOn')['to'](_0x1860b3,'value'),_0x14ea9d['buttonView']['on']('execute',()=>{_0x1860b3['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x14ea9d,_0x47dde0,{'role':'menu'});const _0x52c9aa=[];for(const _0x50315c of _0x47dde0)he(_0x50315c)&&_0x52c9aa['push'](this['editor']['commands']['get'](_0x50315c['model']['commandName']));const _0x20d666=_0x14ea9d['buttonView'];return _0x20d666['actionView']['unbind']('isEnabled'),_0x20d666['arrowView']['unbind']('isEnabled'),_0x20d666['actionView']['bind']('isEnabled')['to'](_0x1860b3,'isEnabled'),_0x20d666['arrowView']['bind']('isEnabled')['toMany'](_0x52c9aa,'isEnabled',(..._0x5372d3)=>_0x5372d3['some'](_0x2d7314=>_0x2d7314)),_0x14ea9d['on']('execute',_0x2db568=>{this['editor']['execute'](_0x2db568['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x14ea9d;}['_createMenuBarMenu'](_0x31eac9,_0x5253fc,_0x570592){const _0x4a2961=new Yt(_0x31eac9),_0x459dce=this['editor']['commands']['get']('trackChanges');_0x4a2961['buttonView']['set']({'label':_0x570592,'icon':ce});const _0x1625c6=new Zt(_0x31eac9);for(const _0x6636a0 of _0x5253fc){if('separator'==_0x6636a0['type']){_0x1625c6['items']['add'](new Xt(_0x31eac9));continue;}const _0xa0192=new te(_0x31eac9,_0x4a2961),_0x538b0e=new _0x3104b7(_0x31eac9),_0x221d03=_0x6636a0['model'];_0x538b0e['bind'](...Object['keys'](_0x221d03))['to'](_0x221d03),_0x538b0e['delegate']('execute')['to'](_0x4a2961),_0x538b0e['on']('execute',()=>{this['editor']['execute'](_0x221d03['commandName']),this['editor']['editing']['view']['focus']();}),_0xa0192['children']['add'](_0x538b0e),_0x1625c6['items']['add'](_0xa0192);}return _0x4a2961['bind']('isEnabled')['to'](_0x459dce,'isEnabled'),_0x4a2961['panelView']['children']['add'](_0x1625c6),_0x4a2961;}['_initializeController'](_0x199c87){const _0x22ef98=this['editor'],_0x23a832=_0x22ef98['config'],_0x1e3071=_0x22ef98['plugins']['get']('Annotations'),_0x1accca=_0x22ef98['plugins']['get']('CommentsRepository'),_0x13e776=_0x22ef98['plugins']['get']('EditorAnnotations'),_0x43d456=_0x22ef98['plugins']['get'](_0x24db66)['me'],_0x490cd4=_0x23a832['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3db88c,CommentThreadInputView:_0x61b70}=_0x22ef98['plugins']['get']('CommentsUI');let _0x2093ac,_0x3cdb7e;this['_annotationViews']['has'](_0x199c87['id'])?(_0x3cdb7e=this['_annotationViews']['get'](_0x199c87['id']),_0x2093ac=_0x3cdb7e['mainView']):(_0x2093ac=new _0x490cd4(_0x22ef98['locale'],_0x199c87,_0x43d456,{'disableComments':this['_disableComments'],'editorConfig':_0x23a832['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x23a832['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x23a832['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x23a832['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3e95a9(_0x23a832['get']('locale')),'CommentView':_0x23a832['get']('comments')['CommentView'],'CommentsListView':_0x3db88c,'CommentThreadInputView':_0x61b70}),_0x2093ac['acceptButton']['on']('execute',()=>{_0x22ef98['editing']['view']['focus']();}),_0x2093ac['discardButton']['on']('execute',()=>{_0x22ef98['editing']['view']['focus']();}),_0x3cdb7e=_0x1e3071['createAnnotationView'](this['editor']['locale'],_0x2093ac),_0x3cdb7e['bind']('isDirty')['to'](_0x2093ac,'isDirty'),_0x3cdb7e['bind']('length')['to'](_0x2093ac),_0x3cdb7e['bind']('type')['to'](_0x2093ac,'type',_0x3d892a=>'suggestion-'+_0x3d892a),this['listenTo'](_0x2093ac,'escape',()=>{_0x22ef98['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x199c87['id'],_0x3cdb7e));const _0x4c9018=_0x1accca['createCommentThreadController'](_0x199c87['commentThread'],_0x2093ac),_0x48b2a8=new ae(_0x22ef98,_0x199c87,_0x2093ac,_0x4c9018),_0x34b7b6=_0x199c87['getAllAdjacentSuggestions']()['filter'](_0x4039d7=>_0x4039d7['isInContent']);_0x2093ac['descriptionParts']=_0x22ef98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x34b7b6),this['_suggestionToController']['set'](_0x199c87,_0x48b2a8),this['_viewToController']['set'](_0x2093ac,_0x48b2a8);const _0x182e83=_0x1e3071['createAnnotation']({'view':_0x3cdb7e,'target':()=>{const _0x17decd=[],_0x5a52d7=_0x199c87['getAllAdjacentSuggestions']()['filter'](_0x4e4e15=>_0x4e4e15['isInContent']);for(const _0x284cd9 of _0x5a52d7)_0x17decd['push'](..._0x284cd9['getMarkers']());return _0x269c89(_0x22ef98['editing'],_0x17decd);},'type':()=>'suggestion-'+_0x48b2a8['view']['type']});_0x1accca['_bindAnnotationToEditors'](_0x2093ac,_0x182e83),_0x1e3071['add'](_0x182e83),_0x13e776['registerAnnotation'](_0x182e83);}['_destroyController'](_0x4ae9ae){const _0x2f7f86=this['editor']['plugins']['get']('CommentsRepository'),_0x253f64=this['editor']['plugins']['get']('Annotations'),_0x13db3c=this['_suggestionToController']['get'](_0x4ae9ae),_0x33a159=_0x13db3c['view'],_0xcae73d=_0x253f64['getByInnerView'](_0x33a159);_0x2f7f86['_unbindEditors'](_0x33a159),_0xcae73d&&_0x253f64['remove'](_0xcae73d),this['_suggestionToController']['delete'](_0x4ae9ae),this['_viewToController']['delete'](_0x33a159),_0x13db3c['destroy']();}['_updateController'](_0x280da8){if(!_0x280da8['isInContent']||!this['_suggestionToController']['has'](_0x280da8))return;const _0x266710=this['editor']['plugins']['get']('TrackChangesEditing'),_0x225a11=this['_suggestionToController']['get'](_0x280da8),_0x27595d=_0x280da8['getAllAdjacentSuggestions']();_0x225a11['view']['descriptionParts']=_0x266710['descriptionFactory']['getDescriptions'](_0x27595d);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x563bb2,(_0x57e920,_0x1af16d)=>{const _0x48871e=this['editor']['plugins']['get'](k),_0x452320=this['editor']['plugins']['get'](p);if(!_0x452320['activeMarkers']['length'])return;const {id:_0x5d6381}=_0x452320['_splitMarkerName'](_0x452320['activeMarkers'][0x0]),_0x60bbec=_0x48871e['getSuggestion'](_0x5d6381);_0x60bbec&&(this['_suggestionToController']['get'](_0x60bbec)['view']['focus'](),_0x1af16d());});}['destroy'](){for(const _0x3e7754 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3e7754);for(const _0xca56ba of this['_annotationViews']['values']())_0xca56ba['mainView']['destroy']();super['destroy']();}}function he(_0x5c1946){return'model'in _0x5c1946;}class k extends _0x266c89{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3cd32){this['editor']['plugins']['get'](p)['adapter']=_0x3cd32;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x39212a){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x39212a);}['getSuggestions']({skipNotAttached:_0x464bb5=!0x1,toJSON:_0x14c2a0=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x464bb5,'toJSON':_0x14c2a0});}['getSuggestion'](_0x546590){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x546590);}}const T=['Pagination'];class P extends _0x266c89{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x547c26=this['editor'];if(_0x547c26['config']['define']('trackChangesData.editorCreator',_0x70ab7e=>{const _0x1d64e7=_0x547c26['model']['document']['getRootNames']()['reduce']((_0x7f8d82,_0x5af1ee)=>(_0x7f8d82[_0x5af1ee]='',_0x7f8d82),{});return _0x547c26['constructor']['create'](_0x1d64e7,_0x70ab7e);}),'function'!=typeof _0x547c26['config']['get']('trackChangesData')['editorCreator'])throw new _0x3d68a7('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x520e99){return N(this['editor'],!0x0,_0x520e99);}['getDataWithDiscardedSuggestions'](_0x19876c){return N(this['editor'],!0x1,_0x19876c);}}class D extends _0x266c89{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x558273){super(_0x558273),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(_0x1c2a12){return void 0x0!==_0x1c2a12['getRootsAttributes'];}async function N(_0xb4a073,_0x41738a,_0x388a61){const _0x211d02=_0x3df758(_0xb4a073,T);_0x211d02['plugins']['push'](p,D),_0x211d02['rootsAttributes']=v(_0xb4a073)?_0xb4a073['getRootsAttributes']():void 0x0;const _0x389ddd=document['createDocumentFragment'](),_0x1f86e3=_0xb4a073['config']['get']('trackChangesData')['editorCreator'],_0x406c45=await _0x1f86e3(_0x211d02,()=>function(_0x3e3232){const _0x485642=document['createElement']('div');return _0x3e3232['appendChild'](_0x485642),_0x485642;}(_0x389ddd));!function(_0x2f9894,_0x18175b){const _0x145297=_0x2f9894['model']['document']['getRootNames']()['reduce']((_0x31b259,_0x54ea65)=>(_0x31b259[_0x54ea65]=_0x2f9894['data']['get']({'rootName':_0x54ea65}),_0x31b259),{}),_0x5d505a=_0x2f9894['plugins']['get']('Users')['users']['map'](_0x3dfb4c=>({'id':_0x3dfb4c['id'],'name':_0x3dfb4c['name']})),_0x1231f1=_0x2f9894['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10e46d=_0x2f9894['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1bef7a=_0x18175b['plugins']['get']('Users'),_0x213069=_0x18175b['plugins']['get']('TrackChangesEditing'),_0x56aa8a=_0x18175b['plugins']['get']('CommentsRepository');for(const _0x22f2d9 of _0x5d505a)_0x1bef7a['getUser'](_0x22f2d9['id'])||_0x1bef7a['addUser'](_0x22f2d9);_0x1bef7a['me']||_0x1bef7a['useAnonymousUser']();for(const _0x33b850 of _0x10e46d)_0x56aa8a['addCommentThread'](_0x33b850);for(const _0x18f92e of _0x1231f1)_0x213069['addSuggestionData'](_0x18f92e);_0x18175b['data']['set'](_0x145297);}(_0xb4a073,_0x406c45),_0x406c45['execute'](_0x41738a?'acceptAllSuggestions':'discardAllSuggestions');const _0x319dd1=v(_0x406c45)?_0x406c45['getFullData'](_0x388a61):_0x406c45['data']['get'](_0x388a61);return await _0x406c45['destroy'](),_0x319dd1;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x2aa107,PendingActions as _0x510953,icons as _0x4a4e5c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x58ef43,ObservableMixin as _0x102118,uid as _0x1a2714,insertToPriorityArray as _0x39a684,priorities as _0x32b979,logWarning as _0x36ad2d,getEnvKeystrokeText as _0x3394ef,FocusTracker as _0x365400,KeystrokeHandler as _0x3007a1,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3fdb8c,View as _0x425d52,ViewCollection as _0x320a5b,FocusCycler as _0x40bae3,ViewModel as _0x3cb1a1,createDropdown as Qt,SplitButtonView as _0x2372dc,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x334699}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3544d0,hashObject as _0x4ea248,surroundingMarkersDetector as _0xa87bae,ENTER_THREAD_KEYSTROKE as _0x3841be,AriaDescriptionView as _0x3c0433,setupThreadKeyboardNavigation as _0x33c295,trimHtml as _0x24e872,UserView as _0x11a006,LateFocusButtonView as _0x4a9266,getDateTimeFormatter as _0x25c6ce,getAllMarkersDomElementsSorted as _0x101415,sanitizeEditorConfig as _0x23cd20}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5cc88d,LiveRange as _0x5b36f3,LivePosition as _0x181194}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x15fa23,toWidget as _0x312517}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x52bf5f,set as _0xc277cf,isEqual as _0x468224,unset as _0x231db2,omit as Tt}from'lodash-es';import{Delete as _0x1e2757,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2c52fd,ShiftEnter as _0x1f69e9}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x3c898d,_0x1eed0c){super(_0x3c898d),this['_enabledCommands']=_0x1eed0c,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 _0xb3efdb of this['editor']['commands']['commands']())_0xb3efdb['affectsData']&&!this['_enabledCommands']['has'](_0xb3efdb)&&_0xb3efdb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1b6cd7 of this['editor']['commands']['commands']())_0x1b6cd7['affectsData']&&!this['_enabledCommands']['has'](_0x1b6cd7)&&_0x1b6cd7['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x5aa5da,_0x122e18){super(_0x5aa5da),this['_suggestions']=_0x122e18,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4807c4){const _0x12d3b7=this['_suggestions']['get'](_0x4807c4);if(!_0x12d3b7)throw new _0x58ef43('track-changes-accept-suggestion-not-found',this);const _0x4ff423=_0x12d3b7['getRanges']();this['editor']['model']['canEditAt'](_0x4ff423)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x12d3b7);}}class R extends ts{['_suggestions'];constructor(_0x25ae8e,_0x239f98){super(_0x25ae8e),this['_suggestions']=_0x239f98,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xcfed27){const _0xe73822=this['_suggestions']['get'](_0xcfed27);if(!_0xe73822)throw new _0x58ef43('track-changes-discard-suggestion-not-found',this);const _0x2bbe6b=_0xe73822['getRanges']();this['editor']['model']['canEditAt'](_0x2bbe6b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xe73822);}}function ls(_0x46df1a,_0x1dd4ed){let _0xd27d45='';return _0xd27d45+=_0x46df1a['split']('*')['map']((_0x2dc023,_0x59d122)=>_0x59d122%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2dc023)+'</span>':nn(_0x2dc023))['join'](''),_0x1dd4ed&&(_0xd27d45+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1dd4ed['value']+'\x22\x20title=\x22'+_0x1dd4ed['title']+'\x22></span>'),_0xd27d45;}function nn(_0x253f95){const _0x3bf25f=document['createElement']('span');return _0x3bf25f['innerText']=_0x253f95,_0x3bf25f['innerHTML'];}function ss(_0x36ce09){return _0x36ce09['sort']((_0x1e250b,_0x16718f)=>'deletion'==_0x1e250b['type']&&'deletion'!=_0x16718f['type']?-0x1:'deletion'!=_0x1e250b['type']&&'deletion'==_0x16718f['type']?0x1:0x0);}function to(_0xac7c30,_0x59736a){let _0x525b8d,_0x1cdabb=0x0;const _0x2602a3=[],_0xf63939=_0x59736a['schema'];for(;_0x1cdabb<_0xac7c30['length'];){const _0x4421cb=_0xac7c30[_0x1cdabb],_0x17d2c8=_0xac7c30[_0x1cdabb+0x1];_0x525b8d||(_0x525b8d=_0x59736a['createPositionBefore'](_0x4421cb)),on(_0x59736a,_0x4421cb,_0x17d2c8)||(_0x2602a3['push'](_0x59736a['createRange'](_0x525b8d,_0xf63939['isObject'](_0x4421cb)?_0x59736a['createPositionAfter'](_0x4421cb):_0x59736a['createPositionAt'](_0x4421cb,'end'))),_0x525b8d=null),_0x1cdabb++;}return _0x2602a3;}function on(_0x43f690,_0xd94278,_0x34ee9c){if(!_0x34ee9c)return!0x1;const _0x20510e=_0x43f690['createPositionAfter'](_0xd94278),_0x228b09=_0x43f690['createPositionBefore'](_0x34ee9c);return _0x20510e['isTouching'](_0x228b09);}function rs(_0x411db1,_0x373a4d,_0x46d753){for(;_0x46d753['length'];){const _0x5d4dd2=_0x46d753['splice'](0x0,0x64);_0x411db1['change'](()=>{for(const _0x390290 of _0x5d4dd2)_0x390290['isInContent']&&_0x373a4d['execute'](_0x390290['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x14a4cd,_0x5e9529,_0x16aee9){super(_0x14a4cd),this['_command']=_0x5e9529,this['_suggestions']=_0x16aee9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xfe374c=Array['from'](this['_suggestions']['values']())['some'](_0x4719f8=>_0x4719f8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xfe374c;}['execute'](){const _0x2fc7cb=ss(Array['from'](this['_suggestions']['values']()));for(const _0x59ae38 of _0x2fc7cb){const _0x4b7d62=_0x59ae38['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b7d62))return;}rs(this['editor']['model'],this['_command'],_0x2fc7cb);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4b5e77,_0xe78b39,_0x12a399){super(_0x4b5e77),this['_command']=_0xe78b39,this['_suggestions']=_0x12a399,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x8e6f4a=this['editor']['model']['document']['selection'],_0x393fdb=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x142ec1,_0x2dac81){const _0x46c00b=Array['from'](_0x142ec1['getRanges']()),_0x512ee4=new Set();for(const _0x19e1a8 of _0x2dac81)if(_0x19e1a8['isInContent']){for(const _0x1a5192 of _0x46c00b)for(const _0x5f1d3a of _0x19e1a8['getRanges']())(_0x1a5192['isIntersecting'](_0x5f1d3a)||_0x142ec1['isCollapsed']&&!_0x19e1a8['isMultiRange']&&_0x19e1a8['next']&&_0x5f1d3a['end']['isTouching'](_0x1a5192['start']))&&_0x512ee4['add'](_0x19e1a8);}return _0x512ee4;}(_0x8e6f4a,_0x393fdb),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x32e5c7=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2e5f41 of _0x32e5c7){const _0x5c0547=_0x2e5f41['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c0547))return;}rs(this['editor']['model'],this['_command'],_0x32e5c7);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x102118(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x22c698,_0x7f8e44){super(),this['id']=_0x7f8e44['id'],this['type']=_0x7f8e44['type'],this['subType']=_0x7f8e44['subType']||null,this['author']=_0x7f8e44['author'],this['creator']=_0x7f8e44['creator']||_0x7f8e44['author'],this['isExternal']=Boolean(_0x7f8e44['attributes']&&_0x7f8e44['attributes']['@external']),this['data']=null,this['_model']=_0x22c698,this['_onAccept']=_0x7f8e44['onAccept'],this['_onDiscard']=_0x7f8e44['onDiscard'],this['_onAttributesChange']=_0x7f8e44['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x7f8e44['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 _0x51bd82=this;for(;_0x51bd82['previous'];)_0x51bd82=_0x51bd82['previous'];return _0x51bd82;}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'](_0x5682d5){this['_markerNames']['add'](_0x5682d5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5eb3e5=>this['_model']['markers']['get'](_0x5eb3e5))['filter'](_0xaaa13c=>_0xaaa13c);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x419860=>{for(const _0x2af5b2 of this['getMarkers']())_0x419860['removeMarker'](_0x2af5b2);}),this['_markerNames']['clear']();}['removeMarker'](_0x36b50f){this['_model']['change'](_0x14c882=>{_0x14c882['removeMarker'](_0x36b50f);}),this['_markerNames']['delete'](_0x36b50f);}['addRange'](_0x84d348){const _0x548d12='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x548d12),this['_model']['change'](_0x2ae0fe=>{_0x2ae0fe['addMarker'](_0x548d12,{'range':_0x84d348,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4e3486){for(const _0x14661f of this['getRanges']())if(_0x14661f['isIntersecting'](_0x4e3486))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3ed56b=>_0x3ed56b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3dd035,_0x2b9055)=>[..._0x3dd035,..._0x2b9055['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x10ddad=this['getRanges']();if(0x1!=_0x10ddad['length'])return null;const _0x46fc27=_0x10ddad[0x0],_0x4e2456=_0x46fc27['start']['nodeAfter'],_0x5e9987=_0x46fc27['end']['nodeBefore'];return _0x4e2456 instanceof _0x5cc88d?_0x4e2456!=_0x5e9987?null:_0x4e2456: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 _0x3efaf3=[];let _0x46f4b7=this['head'];for(;_0x46f4b7;)_0x3efaf3['push'](_0x46f4b7),_0x46f4b7=_0x46f4b7['next'];return _0x3efaf3;}['setAttribute'](_0x24af3b,_0x4e3a39){const _0x3ed41b=_0x52bf5f(this['attributes']);_0xc277cf(_0x3ed41b,_0x24af3b,_0x4e3a39),_0x468224(_0x3ed41b,this['attributes'])||(this['attributes']=_0x3ed41b,this['_onAttributesChange'](_0x3ed41b));}['removeAttribute'](_0x31984d){const _0x2febbe=_0x52bf5f(this['attributes']);_0x231db2(_0x2febbe,_0x31984d),_0x468224(_0x2febbe,this['attributes'])||(this['attributes']=_0x2febbe,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 _0x1a2714()['substr'](0x1,0x5);}}function o(_0x41c9e2,_0x3045ff,_0x39f54f){const t=_0x41c9e2['t'];switch(_0x3045ff){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',_0x39f54f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x39f54f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x39f54f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x39f54f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x39f54f);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',_0x39f54f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x39f54f);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',_0x39f54f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x39f54f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x39f54f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x39f54f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x39f54f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x39f54f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x39f54f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x39f54f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x39f54f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x39f54f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x39f54f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x39f54f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x39f54f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x39f54f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x39f54f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x39f54f);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'},_0x39f54f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x39f54f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x39f54f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x39f54f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x39f54f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x39f54f);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'},_0x39f54f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x39f54f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x39f54f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x39f54f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x39f54f);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'},_0x39f54f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x39f54f);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'},_0x39f54f);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'},_0x39f54f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x39f54f);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'},_0x39f54f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x39f54f);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'},_0x39f54f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x39f54f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x39f54f);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x39f54f);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'},_0x39f54f);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'},_0x39f54f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x39f54f);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x39f54f);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.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x39f54f);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x39f54f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3045ff;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x153f87,_0x19c6ef){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x153f87,this['_locale']=_0x19c6ef;}['getDescriptions'](_0x137431){const _0x9b883d=[],_0x5a3936=new Set(),_0x2f2758=new Set();for(let _0x34c3ed=0x0;_0x34c3ed<_0x137431['length'];_0x34c3ed++){const _0x210a3f=_0x137431[_0x34c3ed];if(!_0x210a3f['isInContent'])continue;const _0x1fec3a=this['_handleCustomCallbackDescription'](_0x210a3f);if(_0x1fec3a){if(null!=_0x210a3f['subType']){if(_0x5a3936['has'](_0x210a3f['subType']))continue;_0x5a3936['add'](_0x210a3f['subType']);}_0x9b883d['push'](_0x1fec3a);}else{if('attribute'!=_0x210a3f['type'])'insertion'!=_0x210a3f['type']&&'deletion'!=_0x210a3f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x9b883d,_0x210a3f,_0x137431[_0x34c3ed+0x1]);else{const _0x4898b4=_0x210a3f['data']['key'];if(_0x2f2758['has'](_0x4898b4))continue;_0x2f2758['add'](_0x210a3f['data']['key']),_0x4898b4==m?this['_handleRenameSuggestionDescription'](_0x9b883d,_0x210a3f):this['_handleAttributeSuggestionDescription'](_0x9b883d,_0x210a3f);}}}return this['_resolveDescriptionItems'](_0x9b883d);}['registerDescriptionCallback'](_0x543d91){this['_customCallbacks']['push'](_0x543d91);}['registerElementLabel'](_0x186f61,_0x4bedeb,_0x55853d=_0x32b979['normal']){'function'==typeof _0x186f61?_0x39a684(this['_itemLabelsCallbacks'],{'matchingCallback':_0x186f61,'label':_0x4bedeb,'priority':_0x55853d}):this['_itemLabels']['set'](_0x186f61,_0x4bedeb);}['registerAttributeLabel'](_0x24275f,_0x1e18ba){this['_attributeLabels']['set'](_0x24275f,_0x1e18ba);}['getItemLabel'](_0x419c9c,_0x5c78ec=0x1){let _0x16b66;for(const _0x2565bd of this['_itemLabelsCallbacks'])if(_0x2565bd['matchingCallback'](_0x419c9c)){_0x16b66=_0x2565bd['label'];break;}return _0x16b66||(_0x16b66=this['_itemLabels']['get'](_0x419c9c['name'])),_0x16b66?_0x16b66(_0x5c78ec):0x1!==_0x5c78ec?_0x5c78ec+'\x20'+_0x419c9c['name']+'s':''+_0x419c9c['name'];}['_addDescriptionItems'](_0x1f8dfe,_0x1b2a9f){const _0xb551aa=_0x1b2a9f['getFirstRange']()['getWalker'](),_0x583d42='insertion'==_0x1b2a9f['type']?'add':'remove';for(const _0x53f3ad of _0xb551aa){const _0x31778b=_0x53f3ad['item'],_0x5ce5c6=_0x1f8dfe[_0x1f8dfe['length']-0x1];if(_0x31778b['is']('$textProxy'))_0x5ce5c6&&_0x5ce5c6['type']['indexOf']('Container')>-0x1&&_0x1f8dfe['pop'](),_0x5ce5c6&&'text'==_0x5ce5c6['type']?_0x5ce5c6[_0x583d42]+=_0x31778b['data']:_0x1f8dfe['push']({'type':'text','add':'add'==_0x583d42?_0x31778b['data']:'','remove':'remove'==_0x583d42?_0x31778b['data']:''});else{if(this['_schema']['isObject'](_0x31778b)){const _0x338abc=_0x31778b;if(_0x5ce5c6&&_0x5ce5c6['type']['indexOf']('Container')>-0x1&&_0x1f8dfe['pop'](),'elementEnd'==_0x53f3ad['type'])continue;_0x5ce5c6&&_0x5ce5c6['type']==_0x583d42+'Object'&&_0x5ce5c6['element']['name']==_0x338abc['name']?_0x5ce5c6['quantity']++:_0x1f8dfe['push']({'type':_0x583d42+'Object','element':_0x338abc,'quantity':0x1}),_0xb551aa['skip'](_0x5341f3=>!('elementEnd'==_0x5341f3['type']&&_0x5341f3['item']==_0x31778b));}else{if(this['_schema']['checkChild'](_0x31778b,'$text')||_0x31778b['is']('element','softBreak')){const _0x4e5d08=_0x31778b;if('add'==_0x583d42&&'elementStart'==_0x53f3ad['type']||'remove'==_0x583d42&&'elementEnd'==_0x53f3ad['type'])continue;if(_0x5ce5c6&&-0x1==_0x5ce5c6['type']['indexOf']('Container')){'text'==_0x5ce5c6['type']&&(_0x5ce5c6[_0x583d42]+='\x0a');continue;}let _0x22f4e0;if(_0x22f4e0='add'==_0x583d42?_0x4e5d08['nextSibling']&&!this['_schema']['isObject'](_0x4e5d08['nextSibling'])?_0x4e5d08['nextSibling']:null:_0x4e5d08['previousSibling']&&!this['_schema']['isObject'](_0x4e5d08['previousSibling'])?_0x4e5d08['previousSibling']:null,_0x4e5d08['isEmpty']||_0x22f4e0&&_0x22f4e0['isEmpty']){const _0x49d13e=_0x22f4e0&&_0x22f4e0['isEmpty']?_0x22f4e0:_0x4e5d08;_0x5ce5c6&&_0x5ce5c6['type']==_0x583d42+'EmptyContainer'&&_0x5ce5c6['element']['name']==_0x49d13e['name']?_0x5ce5c6['quantity']++:_0x1f8dfe['push']({'type':_0x583d42+'EmptyContainer','element':_0x49d13e,'quantity':0x1});}else _0x1f8dfe['push']({'type':_0x583d42+'Container','element':_0x4e5d08});}}}}}['_resolveDescriptionItems'](_0x5d6224){const _0x3c31cb=this['_locale'],_0x47abcd=[],_0x5a9095=[],_0x315ed9=[];for(const _0x4eb26b of _0x5d6224)switch(_0x4eb26b['type']){case'text':if(_0x4eb26b['add']=_0x4eb26b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4eb26b['remove']=_0x4eb26b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4eb26b['add']&&''!=_0x4eb26b['remove']){_0x47abcd['push']({'type':'replace','content':o(_0x3c31cb,'REPLACE_TEXT',['\x22'+_0x4eb26b['remove']+'\x22','\x22'+_0x4eb26b['add']+'\x22'])});continue;}if(null!=_0x4eb26b['add']['match'](/^ +$/)){_0x47abcd['push']({'type':'insertion','content':o(_0x3c31cb,'*Insert:*\x20%0',o(_0x3c31cb,'ELEMENT_SPACE',_0x4eb26b['add']['length']))});continue;}if(null!=_0x4eb26b['remove']['match'](/^ +$/)){_0x47abcd['push']({'type':'deletion','content':o(_0x3c31cb,'*Remove:*\x20%0',o(_0x3c31cb,'ELEMENT_SPACE',_0x4eb26b['remove']['length']))});continue;}if(''!=_0x4eb26b['add']){_0x47abcd['push']({'type':'insertion','content':o(_0x3c31cb,'*Insert:*\x20%0','\x22'+_0x4eb26b['add']+'\x22')});continue;}_0x47abcd['push']({'type':'deletion','content':o(_0x3c31cb,'*Remove:*\x20%0','\x22'+_0x4eb26b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x47abcd['push']({'type':'insertion','content':o(_0x3c31cb,'*Insert:*\x20%0',this['getItemLabel'](_0x4eb26b['element'],_0x4eb26b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x47abcd['push']({'type':'deletion','content':o(_0x3c31cb,'*Remove:*\x20%0',this['getItemLabel'](_0x4eb26b['element'],_0x4eb26b['quantity']))});continue;case'addContainer':_0x47abcd['push']({'type':'insertion','content':o(_0x3c31cb,'*Split:*\x20%0',this['getItemLabel'](_0x4eb26b['element'],_0x4eb26b['quantity']))});continue;case'removeContainer':_0x47abcd['push']({'type':'deletion','content':o(_0x3c31cb,'*Merge:*\x20%0',this['getItemLabel'](_0x4eb26b['element'],_0x4eb26b['quantity']))});continue;case'addFormat':_0x5a9095['push'](_0x4eb26b['key']);continue;case'removeFormat':_0x315ed9['push'](_0x4eb26b['key']);continue;default:_0x47abcd['push'](_0x4eb26b);}if(_0x5a9095['length']){const _0x52b3bf=_0x5a9095['map'](_0x295be5=>this['_attributeLabels']['has'](_0x295be5)?this['_attributeLabels']['get'](_0x295be5):_0x295be5)['join'](',\x20');_0x47abcd['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x52b3bf)});}if(_0x315ed9['length']){const _0x1e88b5=_0x315ed9['map'](_0x39b54e=>this['_attributeLabels']['has'](_0x39b54e)?this['_attributeLabels']['get'](_0x39b54e):_0x39b54e)['join'](',\x20');_0x47abcd['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1e88b5)});}return _0x47abcd;}['_handleCustomCallbackDescription'](_0x58b125){for(const _0x55d0e8 of this['_customCallbacks']){const _0x1bfe68=_0x55d0e8(_0x58b125);if(_0x1bfe68&&'type'in _0x1bfe68)return _0x1bfe68;}}['_handleAttributeSuggestionDescription'](_0x49bff8,_0x4b6572){const _0x25be02=_0x4b6572['data'],_0x1d00d5=void 0x0===_0x25be02['newValue']?'removeFormat':'addFormat';_0x49bff8['push']({'type':_0x1d00d5,'key':_0x25be02['key']});}['_handleRenameSuggestionDescription'](_0x724755,_0x3fab8b){_0x724755['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3fab8b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5bee56,_0x2a27e9,_0xac66c5){if(this['_addDescriptionItems'](_0x5bee56,_0x2a27e9),_0xac66c5&&_0xac66c5['getFirstRange']()&&!_0x2a27e9['getFirstRange']()['end']['isEqual'](_0xac66c5['getFirstRange']()['start'])){const _0x4b33ae=_0x5bee56[_0x5bee56['length']-0x1],_0x402d49='insertion'==_0x2a27e9['type']?'add':'remove';_0x4b33ae&&'text'==_0x4b33ae['type']&&(_0x4b33ae[_0x402d49]+='\x0a');}}}class V extends _0x2aa107{['afterInit'](){const _0x3b5536=this['editor'],_0x307ff0=_0x3b5536['plugins']['get']('TrackChangesEditing');_0x3b5536['commands']['get']('showAIAssistant')&&_0x307ff0['enableCommand']('showAIAssistant');}}class U extends _0x2aa107{['afterInit'](){const _0x5883eb=this['editor'],_0x386fd6=_0x5883eb['locale'];if(!_0x5883eb['plugins']['has']('AlignmentEditing'))return;const _0x3f3f7b=_0x5883eb['plugins']['get']('TrackChangesEditing');_0x3f3f7b['enableDefaultAttributesIntegration']('alignment'),_0x3f3f7b['registerBlockAttribute']('alignment'),_0x3f3f7b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x386fd6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56f064=this['editor'],_0xca4fcc=_0x56f064['locale'];_0x56f064['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1fb502=>{if('formatBlock'!=_0x1fb502['type'])return;const {data:_0x525f78}=_0x1fb502;if(_0x525f78&&'alignment'==_0x525f78['commandName']){const _0x4cbcf5=_0x525f78['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xca4fcc,'*Format:*\x20%0',function(_0xd98ced){switch(_0xd98ced){case'left':return o(_0xca4fcc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xca4fcc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xca4fcc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xca4fcc,'FORMAT_JUSTIFY_TEXT');}}(_0x4cbcf5))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2aa107{['afterInit'](){const _0x8c8c2b=this['editor'],_0x59393c=_0x8c8c2b['plugins']['get']('TrackChangesEditing'),_0x4d2a44=_0x8c8c2b['locale'];for(const _0x4319f0 of ti){if(!_0x8c8c2b['plugins']['has'](_0x4319f0))continue;const _0x4dc5d4=_0x4319f0['slice'](0x0,-0x7)['toLowerCase'](),_0x3506b4='FORMAT_'+_0x4dc5d4['toUpperCase']();_0x59393c['enableDefaultAttributesIntegration'](_0x4dc5d4),_0x59393c['registerInlineAttribute'](_0x4dc5d4),_0x59393c['descriptionFactory']['registerAttributeLabel'](_0x4dc5d4,o(_0x4d2a44,_0x3506b4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e3d45=this['editor'],_0xc187dd=_0x3e3d45['locale'],_0x42f2cf=_0x3e3d45['plugins']['get']('TrackChangesEditing');function _0x45d097(_0x1e7d44,_0x4ad7b4){_0x42f2cf['descriptionFactory']['registerDescriptionCallback'](_0x4010bd=>{if('formatInline'!=_0x4010bd['type'])return;const {data:_0x15c537}=_0x4010bd;return _0x15c537&&_0x15c537['commandName']===_0x1e7d44?_0x15c537['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc187dd,'*Format:*\x20%0',_0x4ad7b4)}:{'type':'format','content':o(_0xc187dd,'*Remove\x20format:*\x20%0',_0x4ad7b4)}:void 0x0;});}_0x45d097('bold',o(_0xc187dd,'FORMAT_BOLD')),_0x45d097('italic',o(_0xc187dd,'FORMAT_ITALIC')),_0x45d097('underline',o(_0xc187dd,'FORMAT_UNDERLINE')),_0x45d097('code',o(_0xc187dd,'FORMAT_CODE')),_0x45d097('strikethrough',o(_0xc187dd,'FORMAT_STRIKETHROUGH')),_0x45d097('subscript',o(_0xc187dd,'FORMAT_SUBSCRIPT')),_0x45d097('superscript',o(_0xc187dd,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2aa107{['afterInit'](){const _0x31f8fb=this['editor'],_0x54acf8=_0x31f8fb['locale'];if(!_0x31f8fb['plugins']['has']('BlockQuoteEditing'))return;const _0x3f62ef=_0x31f8fb['plugins']['get']('TrackChangesEditing'),_0x3fcc46=this['editor']['commands']['get']('blockQuote');_0x3f62ef['enableCommand']('blockQuote',(_0x215aa9,_0x491ea7={})=>{const _0x22bd83=this['editor']['model']['document']['selection'],_0x428b46=_0x491ea7&&void 0x0!==_0x491ea7['forceValue']?_0x491ea7['forceValue']:!_0x3fcc46['value'];let _0x2905fb=[];if(_0x428b46){const _0x4bf667=Array['from'](_0x22bd83['getSelectedBlocks']())['filter'](_0x40cbf6=>oo(_0x40cbf6)||function(_0x31eca2,_0x435a03){const _0x466113=_0x435a03['checkChild'](_0x31eca2['parent'],'blockQuote'),_0x634969=_0x435a03['checkChild'](['$root','blockQuote'],_0x31eca2);return _0x466113&&_0x634969;}(_0x40cbf6,this['editor']['model']['schema']));_0x2905fb=to(_0x4bf667,_0x31f8fb['model']);}else{const _0x25e292=Array['from'](_0x22bd83['getSelectedBlocks']())['filter'](_0x58858d=>oo(_0x58858d));_0x2905fb=to(_0x25e292,_0x31f8fb['model']);}_0x31f8fb['model']['change'](()=>{for(const _0x399bce of _0x2905fb)_0x3f62ef['markBlockFormat'](_0x399bce,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x428b46}]});});}),_0x3f62ef['descriptionFactory']['registerDescriptionCallback'](_0xce4b98=>{const {data:_0x149cd9}=_0xce4b98;if(_0x149cd9&&'blockQuote'==_0x149cd9['commandName']){const _0x4ccb3b=o(_0x54acf8,'ELEMENT_BLOCK_QUOTE');return _0x149cd9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54acf8,'*Set\x20format:*\x20%0',_0x4ccb3b)}:{'type':'format','content':o(_0x54acf8,'*Remove\x20format:*\x20%0',_0x4ccb3b)};}});}}function oo(_0x1b6990){return'blockQuote'==_0x1b6990['parent']['name'];}class L extends _0x2aa107{['afterInit'](){const _0x3ae0d4=this['editor'];_0x3ae0d4['plugins']['has']('CaseChange')&&(_0x3ae0d4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3ae0d4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3ae0d4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2aa107{['afterInit'](){const _0x4bf49a=this['editor'];_0x4bf49a['commands']['get']('ckbox')&&_0x4bf49a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x2aa107{['afterInit'](){const _0x49b934=this['editor'];if(!_0x49b934['plugins']['has']('CodeBlock'))return;const _0x4a84c0=_0x49b934['plugins']['get']('TrackChangesEditing'),_0x1c8d27=_0x49b934['locale'],_0x2ff6f2=_0x49b934['config']['get']('codeBlock')['languages'],_0x2aad4d=_0x49b934['commands']['get']('codeBlock');_0x4a84c0['enableCommand']('indentCodeBlock'),_0x4a84c0['enableCommand']('outdentCodeBlock'),_0x4a84c0['enableCommand']('codeBlock',(_0x556b70,_0x27e80a={})=>{const _0xc71a93=_0x49b934['model'],_0xefc54e=_0x49b934['model']['document']['selection'],_0xa0bcd6=_0x27e80a&&void 0x0!==_0x27e80a['forceValue']?_0x27e80a['forceValue']:!_0x2aad4d['value'];let _0x14358b;_0x27e80a['language']||(_0x27e80a['language']=_0x2ff6f2[0x0]['language']),_0x14358b=_0xa0bcd6?Array['from'](_0xefc54e['getSelectedBlocks']())['filter'](_0x1787a6=>eo(_0x1787a6)||function(_0x506b19,_0x92c776){if(_0x506b19['is']('rootElement')||_0x92c776['isLimit'](_0x506b19))return!0x1;return _0x92c776['checkChild'](_0x506b19['parent'],'codeBlock');}(_0x1787a6,_0xc71a93['schema'])):Array['from'](_0xefc54e['getSelectedBlocks']())['filter'](_0x45594c=>eo(_0x45594c));const _0x3b28b4=to(_0x14358b,_0xc71a93);_0xc71a93['change'](()=>{for(const _0x533d3a of _0x3b28b4)_0x4a84c0['markBlockFormat'](_0x533d3a,{'commandName':'codeBlock','commandParams':[{..._0x27e80a,'forceValue':_0xa0bcd6}],'formatGroupId':'blockName'});});}),(_0x4a84c0['descriptionFactory']['registerElementLabel']('codeBlock',_0x3c39a9=>o(_0x1c8d27,'ELEMENT_CODE_BLOCK',_0x3c39a9)),_0x4a84c0['descriptionFactory']['registerDescriptionCallback'](_0x2435d3=>{if('formatBlock'!=_0x2435d3['type'])return;const _0x41306a=_0x1c8d27['t'],{data:_0x3b92ce}=_0x2435d3;if(!_0x3b92ce||'codeBlock'!=_0x3b92ce['commandName'])return;const _0x2ee36d=_0x3b92ce['commandParams'][0x0]['language'],_0x4469b6=_0x41306a(_0x2ff6f2['find'](_0x2d5b05=>_0x2d5b05['language']===_0x2ee36d)['label'])['toLowerCase']();return _0x3b92ce['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c8d27,'*Set\x20format:*\x20%0',o(_0x1c8d27,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4469b6+')')}:{'type':'format','content':o(_0x1c8d27,'*Remove\x20format:*\x20%0',o(_0x1c8d27,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x11b8cf){return'codeBlock'==_0x11b8cf['name'];}class q extends _0x2aa107{['afterInit'](){const _0x38cfad=this['editor'];if(!_0x38cfad['plugins']['has']('CommentsEditing'))return;_0x38cfad['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1174a6,_0x290af5,_0x419419){const _0x4f75ff=[];for(const _0x4b7ee6 of _0x290af5['getItems']())_0x4b7ee6['hasAttribute'](_0x1174a6)&&_0x4f75ff['push'](_0x419419['createRangeOn'](_0x4b7ee6));return _0x4f75ff;}function _e(_0x9619a6,_0x520cdb,{showActiveMarker:_0x26905c=!0x0}={}){const _0x46d8e7=_0x9619a6['plugins']['get']('TrackChangesEditing');return(_0x3a1059,_0x27f7f9,_0x650aa0)=>{if(!_0x650aa0['consumable']['test'](_0x27f7f9['markerRange'],_0x3a1059['name']))return;const _0x415d55=_0x27f7f9['markerRange']['getWalker'](),_0x2a6e19=_0x27f7f9['markerRange']['start'],_0x109851=_0x9619a6['model']['schema'];let _0x249896=null,_0x1624db=null,_0x10244a=!0x1,_0x2cbcc7=!0x1;for(const _0x300679 of _0x415d55){const _0x29a2c7=_0x300679['item'];_0x10244a=_0x10244a||_0x109851['isContent'](_0x29a2c7);const _0x340a72=_0x650aa0['mapper']['toViewElement'](_0x29a2c7);if(_0x340a72&&_0x340a72['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x300679['type']&&(_0x109851['isBlock'](_0x29a2c7)&&!_0x109851['isLimit'](_0x29a2c7)&&(_0x29a2c7['nextSibling']||_0x2a6e19['isAtEnd']?_0x249896&&_0x249896['parent']==_0x29a2c7||(_0x249896=_0x29a2c7,_0x25fe88(_0x300679['previousPosition']),_0x2cbcc7=!0x0):_0x1624db=_0x1624db||_0x300679['previousPosition']));}function _0x25fe88(_0x1494e2){const _0x321483=_0x650aa0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x520cdb}),_0x3e9fdc=_0x650aa0['mapper']['toViewPosition'](_0x1494e2);_0x26905c&&_0x46d8e7['activeMarkers']['includes'](_0x27f7f9['markerName'])&&_0x650aa0['writer']['addClass']('ck-suggestion-marker--active',_0x321483),_0x650aa0['writer']['insert'](_0x3e9fdc,_0x321483),_0x650aa0['mapper']['bindElementToMarker'](_0x321483,_0x27f7f9['markerName']);}_0x10244a||_0x2cbcc7||!_0x1624db||_0x25fe88(_0x1624db);};}class z extends _0x2aa107{static get['requires'](){return[_0x1e2757];}['init'](){const _0x491f1f=this['editor'],_0xf5933=_0x491f1f['plugins']['get']('TrackChangesEditing');_0xf5933['enableCommand']('delete');const _0x371959=_0x491f1f['commands']['get']('deleteForward');_0xf5933['enableCommand']('deleteForward',(_0x3d1125,_0x665268={})=>{const _0x142aac=_0x491f1f['model']['createSelection'](_0x491f1f['model']['document']['selection']);_0x142aac['isCollapsed']&&_0x491f1f['model']['modifySelection'](_0x142aac,{'direction':'forward','unit':_0x665268['unit']});const _0x70c4a=_0x142aac['getFirstRange'](),_0x3e0c1b=_0x5b36f3['fromRange'](_0x70c4a);let _0x2c626a;_0x3d1125(_0x665268),_0x2c626a='$graveyard'==_0x3e0c1b['root']['rootName']?_0x491f1f['model']['createRange'](_0x70c4a['start']):_0x491f1f['model']['createRange'](_0x3e0c1b['start'],_0x3e0c1b['end']),_0x3e0c1b['detach'](),_0x491f1f['model']['enqueueChange'](_0x371959['buffer']['batch'],_0x105fca=>{_0x371959['buffer']['lock'](),_0x105fca['setSelection'](_0x105fca['createRange'](_0x2c626a['end'])),_0x371959['buffer']['unlock']();});}),_0x491f1f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x491f1f,'merge'),{'priority':'high'}),_0x491f1f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xa3d32c,_0x240596,_0x209893)=>{_0x209893['options']['showSuggestionHighlights']&&_e(_0x491f1f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xa3d32c,_0x240596,_0x209893);},{'priority':'high'}),_0x491f1f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x238545,_0x40dc66,_0x4e1631)=>{const _0x56b91c=_0x4e1631['mapper']['markerNameToElements'](_0x40dc66['markerName']);if(_0x56b91c){for(const _0x44bb95 of _0x56b91c)_0x44bb95['is']('uiElement')&&(_0x4e1631['mapper']['unbindElementFromMarkerName'](_0x44bb95,_0x40dc66['markerName']),_0x4e1631['writer']['remove'](_0x44bb95));}},{'priority':'high'});}}class K extends _0x2aa107{['afterInit'](){const _0x270736=this['editor'];if(!_0x270736['plugins']['has']('ListEditing'))return;const _0x24cf64=_0x270736['locale'],_0x2e23a8=_0x270736['plugins']['get']('TrackChangesEditing'),_0x1534c6=_0x270736['plugins']['has']('TodoListEditing'),_0x57bb48=!!_0x270736['config']['get']('list.multiBlock');function _0x3dcde4(_0x47270f){return{'type':'format','content':''+o(_0x24cf64,'*Set\x20format:*\x20%0',_0x47270f)};}function _0x2cab83(_0x54ee5e){return{'type':'format','content':''+o(_0x24cf64,'*Remove\x20format:*\x20%0',_0x54ee5e)};}_0x2e23a8['enableDefaultAttributesIntegration']('numberedList'),_0x2e23a8['enableDefaultAttributesIntegration']('bulletedList'),_0x2e23a8['enableDefaultAttributesIntegration']('customNumberedList'),_0x2e23a8['enableDefaultAttributesIntegration']('customBulletedList'),_0x2e23a8['enableDefaultAttributesIntegration']('indentList'),_0x2e23a8['enableDefaultAttributesIntegration']('outdentList'),_0x2e23a8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2e23a8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2e23a8['registerBlockAttribute']('listItemId'),_0x2e23a8['registerBlockAttribute']('listType'),_0x2e23a8['registerBlockAttribute']('listIndent'),_0x57bb48&&(_0x2e23a8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2e23a8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1534c6&&(_0x2e23a8['enableDefaultAttributesIntegration']('todoList'),_0x2e23a8['enableDefaultAttributesIntegration']('checkTodoList'),_0x2e23a8['registerBlockAttribute']('todoListChecked'),_0x2e23a8['descriptionFactory']['registerDescriptionCallback'](_0x400c01=>{const {data:_0x5d1d47}=_0x400c01;if(_0x5d1d47&&'todoListChecked'==_0x5d1d47['key'])return{'type':'format','content':_0x5d1d47['newValue']?o(_0x24cf64,'*Check\x20item*'):o(_0x24cf64,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4ef5a4=>{if(_0x4ef5a4['batch']['isUndo'])return!0x1;let _0x191935=!0x1;const _0x271bfb=_0x2e23a8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9f46f0=>'todoListChecked'===_0x2e23a8['_getAttributeKey'](_0x9f46f0));for(const _0x25bf0a of _0x271bfb){'todo'!=_0x25bf0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2e23a8['_findSuggestions'](_0x25bf0a['getFirstRange'](),'attribute')['find'](_0x1319c1=>'listType'===_0x2e23a8['_getAttributeKey'](_0x1319c1['suggestion']))||(_0x4ef5a4['removeMarker'](_0x25bf0a['getFirstMarker']()),_0x191935=!0x0));}return _0x191935;})),_0x2e23a8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x24cf64,'FORMAT_INDENT'));const _0x52a829={'type':'format','content':''};_0x2e23a8['descriptionFactory']['registerDescriptionCallback'](_0x1ec8c5=>{const {data:_0x448408}=_0x1ec8c5;if(!_0x448408||'listType'!=_0x448408['key'])return;let _0x471759=_0x1ec8c5['head'];for(;_0x471759;){if(_0x471759['data']&&(('listStyle'==_0x471759['data']['key']||'listMarkerStyle'==_0x471759['data']['key'])&&(_0x471759['data']['newValue']&&'default'!=_0x471759['data']['newValue']||'default'!=_0x471759['data']['oldValue']&&!_0x448408['newValue'])||!_0x57bb48&&_0x471759['data']['key']==m))return _0x52a829;_0x471759=_0x471759['next'];}if(null==_0x448408['newValue'])switch(_0x448408['oldValue']){case'bulleted':return _0x2cab83(o(_0x24cf64,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2cab83(o(_0x24cf64,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2cab83(o(_0x24cf64,'ELEMENT_TODO_LIST'));}switch(_0x448408['newValue']){case'bulleted':return _0x3dcde4(o(_0x24cf64,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3dcde4(o(_0x24cf64,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3dcde4(o(_0x24cf64,'ELEMENT_TODO_LIST'));}}),_0x2e23a8['descriptionFactory']['registerDescriptionCallback'](_0x4f89c2=>{const {data:_0x367266}=_0x4f89c2;if(_0x367266&&'listIndent'==_0x367266['key'])return null==_0x367266['newValue']||null==_0x367266['oldValue']&&0x0==_0x367266['newValue']?_0x52a829:void 0x0;}),_0x2e23a8['descriptionFactory']['registerDescriptionCallback'](_0x3ebde6=>{if('attribute'!=_0x3ebde6['type'])return;const {data:_0x55a1e8}=_0x3ebde6;if(!_0x55a1e8||'listItemId'!=_0x55a1e8['key'])return;const _0x36490d=Ee(_0x3ebde6);return'newValue'==_0x36490d?{'type':'format','content':o(_0x24cf64,'*Merge:*\x20list\x20item')}:'oldValue'==_0x36490d?{'type':'format','content':o(_0x24cf64,'*Split:*\x20list\x20item')}:_0x52a829;}),_0x270736['model']['document']['registerPostFixer'](_0x4bc656=>this['listItemIdFixer'](_0x4bc656)),_0x270736['model']['document']['registerPostFixer'](_0x325559=>this['noTrackChangesFixer'](_0x325559)),_0x270736['model']['document']['on']('change:data',(_0x10d338,_0x670602)=>{if(_0x670602['isUndo']||!_0x670602['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x386c7d){if(_0x386c7d['batch']['isUndo']||!_0x386c7d['batch']['isLocal'])return!0x1;let _0x17f89e=!0x1;const _0xc346e4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x555d65=>_0x555d65['data']&&'listItemId'==_0x555d65['data']['key'])['filter'](_0x53430d=>_0x53430d['data']['newValue']&&_0x53430d['data']['oldValue']);for(const _0x537a52 of _0xc346e4)Ee(_0x537a52)||(_0x386c7d['removeMarker'](_0x537a52['getFirstMarker']()),_0x17f89e=!0x0);return _0x17f89e;}['noTrackChangesFixer'](_0x308936){if(_0x308936['batch']['isUndo']||!_0x308936['batch']['isLocal'])return!0x1;const _0x1bf0d7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1bf0d7['trackChangesCommand']['value'])return!0x1;let _0x5228f9=!0x1;const _0x4593eb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x30bbf1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3e07bc=>'attribute'==_0x3e07bc['type'])['filter'](_0x35af9e=>_0x4593eb['includes'](_0x35af9e['attributeKey']));if(0x0==_0x30bbf1['length'])return _0x5228f9;for(const _0x46b29e of _0x30bbf1){const _0x17a619=_0x1bf0d7['_findSuggestions'](_0x46b29e['range'],'attribute')['filter'](_0x22daa0=>!_0x22daa0['meta']['isNextTo'])['map'](_0x2f3177=>_0x2f3177['suggestion'])['filter'](_0x42957e=>{const _0x24eb2e=_0x1bf0d7['_getAttributeKey'](_0x42957e);return _0x4593eb['includes'](_0x24eb2e);});if(_0x17a619['length']){for(const _0x2b6ec7 of _0x17a619)_0x308936['removeMarker'](_0x2b6ec7['getFirstMarker']());_0x5228f9=!0x0;}}return _0x5228f9;}['assureChains'](){const _0x2b9f0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x450d96=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1e98f2;const _0x564cc0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x28ba01=>{if(_0x28ba01['data']['oldRange']||!_0x28ba01['data']['newRange'])return null;if(!_0x28ba01['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5e19b2}=_0x2b9f0e['_splitMarkerName'](_0x28ba01['name']);if(!_0x2b9f0e['hasSuggestion'](_0x5e19b2))return null;const _0x451199=_0x2b9f0e['getSuggestion'](_0x5e19b2);return _0x450d96['includes'](_0x451199['data']['key']);})['map'](_0x25c875=>{const {id:_0x35a9f9}=_0x2b9f0e['_splitMarkerName'](_0x25c875['name']),_0x441a83=_0x2b9f0e['getSuggestion'](_0x35a9f9);return _0x1e98f2=_0x441a83['attributes']['groupId'],_0x441a83['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x564cc0['size'])return;const _0x22ff1f=_0x2b9f0e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xad005d=>'attribute'==_0xad005d['type']&&_0xad005d['data']&&_0x450d96['includes'](_0xad005d['data']['key'])&&_0xad005d['attributes']['groupId']!=_0x1e98f2)['map'](_0x163de1=>({'listItem':_0x163de1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x163de1['attributes']['groupId']})),_0x2fc7f0=new Set();for(const {groupId:_0x39199d,listItem:_0x532f2a}of _0x22ff1f)_0x564cc0['has'](_0x532f2a)&&_0x2fc7f0['add'](_0x39199d);for(const _0x4d1bf8 of _0x2b9f0e['getSuggestions']())_0x2fc7f0['has'](_0x4d1bf8['attributes']['groupId'])&&_0x4d1bf8['setAttribute']('groupId',_0x1e98f2);}['_supportLegacySuggestions'](){const _0x3b7035=this['editor'],_0x4eef36=_0x3b7035['locale'],_0x276a81=_0x3b7035['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x276a81['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3d979c,_0x406b40){const _0x5b1276=[];for(let _0x3f1e95 of _0x3d979c)_0x3f1e95['start']['nodeAfter']===_0x3f1e95['end']['parent']&&(_0x3f1e95=_0x3b7035['model']['createRange'](_0x3b7035['model']['createPositionAt'](_0x3f1e95['start']['nodeAfter'],0x0))),_0x5b1276['push'](_0x3f1e95);_0x3b7035['model']['change'](_0x249e2f=>{const _0x4ee8ed=_0x3b7035['model']['document']['selection'],_0x2b6aa7=Array['from'](_0x4ee8ed['getRanges']())['map'](_0x27c235=>_0x5b36f3['fromRange'](_0x27c235));_0x249e2f['setSelection'](_0x5b1276),_0x3b7035['commands']['get'](_0x406b40['commandName'])['refresh'](),_0x406b40['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3b7035['execute'](_0x406b40['commandName'],..._0x406b40['commandParams']),_0x249e2f['setSelection'](_0x2b6aa7);for(const _0x20c304 of _0x2b6aa7)_0x20c304['detach']();});}),_0x276a81['descriptionFactory']['registerElementLabel'](function(_0x34a29){const _0x35245c=!_0x3b7035['model']['schema']['isObject'](_0x34a29),_0x1f8e0d=_0x34a29['previousSibling'],_0xa46d0a=_0x34a29['nextSibling'],_0x2d0291=_0x34a29['getAttribute']('listItemId'),_0xd4d0ab=!_0x1f8e0d||_0x1f8e0d['getAttribute']('listItemId')!==_0x2d0291,_0x46f69d=!_0xa46d0a||_0xa46d0a['getAttribute']('listItemId')!==_0x2d0291;return _0x35245c&&Boolean(_0x2d0291)&&_0xd4d0ab&&_0x46f69d;},_0x55735a=>o(_0x4eef36,'ELEMENT_LIST_ITEM',_0x55735a));}['_registerLegacyDescription'](){const _0x38ce9d=this['editor'],_0x573af6=_0x38ce9d['locale'];function _0x4acd0c(_0x150ee2){const _0x234fc5=_0x38ce9d['commands']['get']('bulletedList')['value'],_0x15d805=_0x38ce9d['commands']['get']('numberedList')['value'];return'numberedList'===_0x150ee2?_0x234fc5:_0x15d805;}_0x38ce9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x53e81d){if('formatBlock'!=_0x53e81d['type'])return;const {data:_0x1feafb}=_0x53e81d;if(!_0x1feafb)return;let _0x31e77e,_0x40e1cb,_0x191d87,_0x214596;switch(_0x1feafb['commandName']){case'bulletedList':_0x191d87=_0x1feafb['commandParams'][0x0]['forceValue'],_0x214596=_0x4acd0c(_0x1feafb['commandName']),_0x31e77e=_0x191d87?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x214596&&_0x38ce9d['config']['get']('list.multiBlock')||(_0x31e77e='*Change\x20to:*\x20%0'),_0x40e1cb={'type':'format','content':o(_0x573af6,_0x31e77e,o(_0x573af6,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x191d87=_0x1feafb['commandParams'][0x0]['forceValue'],_0x214596=_0x4acd0c(_0x1feafb['commandName']),_0x31e77e=_0x191d87?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x214596&&_0x38ce9d['config']['get']('list.multiBlock')||(_0x31e77e='*Change\x20to:*\x20%0'),_0x40e1cb={'type':'format','content':o(_0x573af6,_0x31e77e,o(_0x573af6,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x31e77e='*Indent:*\x20%0',_0x40e1cb={'type':'format','content':o(_0x573af6,_0x31e77e,o(_0x573af6,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x31e77e=function(_0x199f09){const _0x2f3cd7=_0x199f09['getFirstRange']();let _0x580522=_0x2f3cd7['start']['nodeAfter'];for(;_0x580522&&_0x2f3cd7['containsItem'](_0x580522);){if(_0x580522['getAttribute']('listIndent')>0x0)return!0x1;_0x580522=_0x580522['nextSibling'];}return!0x0;}(_0x53e81d)?o(_0x573af6,'*Format:*\x20remove\x20from\x20%0',o(_0x573af6,function(_0x2c3c5c){return'ELEMENT_'+_0x2c3c5c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x53e81d))):o(_0x573af6,'*Outdent:*\x20%0',o(_0x573af6,'ELEMENT_LIST_ITEM')),_0x40e1cb={'type':'format','content':_0x31e77e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1feafb['multipleBlocks']&&(_0x31e77e='*Merge:*\x20%0',_0x40e1cb={'type':'deletion','content':o(_0x573af6,_0x31e77e,o(_0x573af6,'ELEMENT_LIST_ITEM'))});}return _0x40e1cb;});}}function Ee(_0x1be31c){let _0x3de89f=_0x1be31c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3de89f;){const _0x2dd9fa=_0x3de89f['getAttribute']('listItemId');if(!_0x2dd9fa)return!0x1;if(_0x2dd9fa==_0x1be31c['data']['newValue'])return'newValue';if(_0x2dd9fa==_0x1be31c['data']['oldValue'])return'oldValue';_0x3de89f=_0x3de89f['previousSibling'];}return!0x1;}class pe extends _0x2aa107{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1257a3=this['editor']['config']['get']('list.properties'),_0x190fa8=this['editor']['plugins']['get']('TrackChangesEditing');_0x1257a3['styles']&&(_0x190fa8['enableDefaultAttributesIntegration']('listStyle'),_0x190fa8['registerBlockAttribute']('listStyle')),_0x1257a3['reversed']&&(_0x190fa8['enableDefaultAttributesIntegration']('listReversed'),_0x190fa8['registerBlockAttribute']('listReversed')),_0x1257a3['startIndex']&&(_0x190fa8['enableDefaultAttributesIntegration']('listStart'),_0x190fa8['registerBlockAttribute']('listStart'));const _0x3a432d={'type':'format','content':''};_0x190fa8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3197c4=this['editor']['locale'];_0x190fa8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3197c4,'FORMAT_LIST_REVERSED')),_0x190fa8['descriptionFactory']['registerDescriptionCallback'](_0x9073ef=>{const {data:_0x3ed4f7}=_0x9073ef;if(_0x3ed4f7&&'listReversed'==_0x3ed4f7['key'])return null==_0x3ed4f7['newValue']||0x0==_0x3ed4f7['newValue']&&null==_0x3ed4f7['oldValue']?_0x3a432d:void 0x0;}),_0x190fa8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3197c4,'FORMAT_LIST_START')),_0x190fa8['descriptionFactory']['registerDescriptionCallback'](_0x3b5ecd=>{const {data:_0x1b07dd}=_0x3b5ecd;if(_0x1b07dd&&'listStart'==_0x1b07dd['key'])return null==_0x1b07dd['newValue']||0x1==_0x1b07dd['newValue']&&null==_0x1b07dd['oldValue']?_0x3a432d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3ef3f9=>{if(_0x3ef3f9['batch']['isUndo'])return!0x1;let _0x43cda8=!0x1;const _0x11af93=_0x190fa8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x278dc6=>{const _0xf30c7f=_0x190fa8['_getAttributeKey'](_0x278dc6);return'listStart'==_0xf30c7f||'listReversed'==_0xf30c7f;});for(const _0x2905d5 of _0x11af93){const _0x2748e2=_0x2905d5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2748e2||'customNumbered'==_0x2748e2)continue;_0x190fa8['_findSuggestions'](_0x2905d5['getFirstRange'](),'attribute')['find'](_0x91c0e6=>'listType'==_0x190fa8['_getAttributeKey'](_0x91c0e6['suggestion']))||(_0x3ef3f9['removeMarker'](_0x2905d5['getFirstMarker']()),_0x43cda8=!0x0);}return _0x43cda8;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x406996){const _0xd2f051=this['editor']['locale'],{data:_0x1abd7f}=_0x406996,_0x3520b9={'type':'format','content':''};if(!_0x1abd7f||'listStyle'!=_0x1abd7f['key'])return;if(!_0x1abd7f['oldValue'])return'default'==_0x1abd7f['newValue']?_0x3520b9:{'type':'format','content':''+o(_0xd2f051,'*Set\x20format:*\x20%0',o(_0xd2f051,this['_getTranslationKeyForListStyle'](_0x1abd7f['newValue'])))};if(!_0x1abd7f['newValue']){if('default'==_0x1abd7f['oldValue'])return _0x3520b9;let _0x3fd31e=_0x406996['head'];for(;_0x3fd31e;){if(_0x3fd31e['data']&&'listType'==_0x3fd31e['data']['key']&&_0x3fd31e['data']['newValue'])return _0x3520b9;_0x3fd31e=_0x3fd31e['next'];}return{'type':'format','content':''+o(_0xd2f051,'*Remove\x20format:*\x20%0',o(_0xd2f051,this['_getTranslationKeyForListStyle'](_0x1abd7f['oldValue'])))};}if('default'!=_0x1abd7f['newValue'])return{'type':'format','content':''+o(_0xd2f051,'*Set\x20format:*\x20%0',o(_0xd2f051,this['_getTranslationKeyForListStyle'](_0x1abd7f['newValue'])))};let _0x17ed52=_0x406996['head'];for(;_0x17ed52;){if(_0x17ed52['data']&&'listType'==_0x17ed52['data']['key']&&_0x17ed52['data']['newValue']&&_0x17ed52['data']['oldValue'])return _0x3520b9;_0x17ed52=_0x17ed52['next'];}return{'type':'format','content':o(_0xd2f051,'*Set\x20format:*\x20%0',o(_0xd2f051,'ELEMENT_'+_0x406996['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4fcab3=this['editor'],_0x31bb0b=_0x4fcab3['locale'];_0x4fcab3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c67d4=>{if('formatBlock'!=_0x4c67d4['type'])return;const {data:_0x242b28}=_0x4c67d4;if(!_0x242b28)return;let _0x358239,_0x246579;switch(_0x242b28['commandName']){case'listStyle':_0x358239='*Change\x20to:*\x20%0',_0x246579={'type':'format','content':o(_0x31bb0b,_0x358239,o(_0x31bb0b,this['_getTranslationKeyForListStyle'](_0x242b28['commandParams'][0x0]['type'])))};break;case'listReversed':_0x358239=_0x242b28['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x246579={'type':'format','content':o(_0x31bb0b,_0x358239)};break;case'listStart':_0x358239='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x246579={'type':'format','content':o(_0x31bb0b,_0x358239,_0x242b28['commandParams'][0x0]['startIndex'])};}return _0x246579;});}['_getTranslationKeyForListStyle'](_0x494de0){return'ELEMENT_'+function(_0x3bd03){if(ye['includes'](_0x3bd03))return'bulleted';if(Se['includes'](_0x3bd03))return'numbered';return null;}(_0x494de0)['toUpperCase']()+'_LIST_'+_0x494de0['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2aa107{static get['requires'](){return[_0x2c52fd];}['init'](){const _0x1b7b2c=this['editor'],_0x565d66=_0x1b7b2c['plugins']['get']('TrackChangesEditing'),_0x4962dd=_0x1b7b2c['commands']['get']('enter');_0x565d66['enableCommand']('enter',()=>{_0x1b7b2c['model']['change'](_0x99a11a=>{const _0x69fb95=_0x1b7b2c['model']['document']['selection'],_0x3c60a0=_0x69fb95['getFirstPosition'](),_0x37f54c=_0x5b36f3['fromRange'](_0x69fb95['getFirstRange']());if(_0x4962dd['enterBlock'](_0x99a11a)){const _0x1da4a5=_0x1b7b2c['model']['createPositionAt'](_0x3c60a0['parent']['nextSibling'],0x0),_0x335b16=_0x99a11a['createRange'](_0x3c60a0,_0x1da4a5);_0x565d66['markInsertion'](_0x335b16);}else _0x99a11a['setSelection'](_0x99a11a['createRange'](_0x37f54c['end']));_0x37f54c['detach'](),_0x4962dd['fire']('afterExecute',{'writer':_0x99a11a});});}),_0x1b7b2c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x1b7b2c,'split'),{'priority':'high'}),_0x1b7b2c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1e9a8d,_0x5e78ed,_0x158f9b)=>{const _0x4e626f=_0x158f9b['mapper']['markerNameToElements'](_0x5e78ed['markerName']);if(_0x4e626f){for(const _0x2f8f91 of _0x4e626f)_0x2f8f91['hasClass']('ck-suggestion-marker-split')&&(_0x158f9b['mapper']['unbindElementFromMarkerName'](_0x2f8f91,_0x5e78ed['markerName']),_0x158f9b['writer']['remove'](_0x2f8f91));}},{'priority':'high'}),_0x1b7b2c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x692f63,_0x18714a,_0xf033c6)=>{_0xf033c6['options']['showSuggestionHighlights']&&_e(_0x1b7b2c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x692f63,_0x18714a,_0xf033c6);},{'priority':'high'});}}class X extends _0x2aa107{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1eb6d8=this['editor']['plugins']['get']('TrackChangesEditing');_0x1eb6d8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1eb6d8['enableCommand']('findNext'),_0x1eb6d8['enableCommand']('findPrevious'),_0x1eb6d8['enableCommand']('replace'),_0x1eb6d8['enableCommand']('replaceAll');}['handleFindCommand'](_0x41bacc,_0x4e03c6,_0x34d35a={}){const _0x35f119=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x41bacc(_0x347748=>{let _0x45d07a=('string'==typeof _0x4e03c6?_0x35f119['findByTextCallback'](_0x4e03c6,_0x34d35a):_0x4e03c6)(_0x347748);Array['isArray'](_0x45d07a)&&(_0x45d07a={'results':_0x45d07a,'searchText':'string'==typeof _0x4e03c6?_0x4e03c6:''});const _0x17b39a=_0x45d07a['results']['filter'](_0x3ea66a=>!0x1===this['_isInDeletionRange'](_0x3ea66a,_0x347748['item']));return{..._0x45d07a,'results':_0x17b39a};},_0x34d35a);}['_isInDeletionRange'](_0x553655,_0x467de5){const _0x414e1e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x467de5,_0x553655['start']),this['editor']['model']['createPositionAt'](_0x467de5,_0x553655['end']));for(const _0xf6e9fa of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x414e1e['getIntersection'](_0xf6e9fa['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x2aa107{['afterInit'](){const _0x57bd49=this['editor']['locale'],_0x4cd4c1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2ef9a9,commandName:_0x5971af}of ro)this['editor']['plugins']['has'](_0x2ef9a9)&&(_0x4cd4c1['enableDefaultAttributesIntegration'](_0x5971af),_0x4cd4c1['registerInlineAttribute'](_0x5971af));_0x4cd4c1['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x57bd49,'FORMAT_FONT_SIZE')),_0x4cd4c1['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x57bd49,'FORMAT_FONT_FAMILY')),_0x4cd4c1['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x57bd49,'FORMAT_FONT_COLOR')),_0x4cd4c1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x57bd49,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48ec37=this['editor'],_0x3e19ef=_0x48ec37['locale'];_0x48ec37['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b2b87=>{const _0x957c79=_0x3e19ef['t'];if('formatInline'!=_0x4b2b87['type'])return;const {data:_0x2495f3}=_0x4b2b87;if(null!=_0x2495f3){if('fontSize'==_0x2495f3['commandName']){const _0x2d9b41=_0x2495f3['commandParams'][0x0]['value'];if(_0x2d9b41){const _0x1ca0fd=_0x957c79(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x17a7c8=>_0x17a7c8['model']==_0x2d9b41)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3e19ef,'*Set\x20font\x20size:*\x20%0',_0x1ca0fd)};}return{'type':'format','content':o(_0x3e19ef,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2495f3['commandName']){const _0x2b70db=_0x2495f3['commandParams'][0x0]['value'];return _0x2b70db?{'type':'format','content':o(_0x3e19ef,'*Set\x20font\x20family:*\x20%0',_0x2b70db)}:{'type':'format','content':o(_0x3e19ef,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2495f3['commandName']){const _0x5d633f=_0x2495f3['commandParams'][0x0]['value'];if(_0x5d633f){const _0x50ec06=_0x3fdb8c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x11e2a1=>_0x11e2a1['model']==_0x5d633f);let _0x2c3ae5=_0x5d633f,_0x56c612='';return _0x50ec06&&(_0x2c3ae5=_0x50ec06['label'],_0x56c612=_0x957c79(_0x2c3ae5)['toLowerCase']()),{'type':'format','content':o(_0x3e19ef,'*Set\x20font\x20color:*\x20%0',_0x56c612)['trim'](),'color':{'value':_0x5d633f,'title':_0x56c612||_0x2c3ae5}};}return{'type':'format','content':o(_0x3e19ef,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2495f3['commandName']){const _0x119055=_0x2495f3['commandParams'][0x0]['value'];if(_0x119055){const _0x371c43=_0x3fdb8c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x162b58=>_0x162b58['model']==_0x119055);let _0x3e7f1d=_0x119055,_0x470124='';return _0x371c43&&(_0x3e7f1d=_0x371c43['label'],_0x470124=_0x957c79(_0x3e7f1d)['toLowerCase']()),{'type':'format','content':o(_0x3e19ef,'*Set\x20font\x20background\x20color:*\x20%0',_0x470124)['trim'](),'color':{'value':_0x119055,'title':_0x470124||_0x3e7f1d}};}return{'type':'format','content':o(_0x3e19ef,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x2aa107{['afterInit'](){const _0x1cafe2=this['editor'],_0x588056=_0x1cafe2['plugins']['get']('TrackChangesEditing'),_0x4a5ffc=_0x1cafe2['commands']['get']('copyFormat'),_0x127269=_0x1cafe2['commands']['get']('pasteFormat');_0x4a5ffc&&_0x127269&&(_0x588056['enableDefaultAttributesIntegration']('pasteFormat'),_0x588056['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x122185=this['editor'],_0x35b937=_0x122185['locale'];_0x122185['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ec15b=>{if('formatBlock'!=_0x4ec15b['type']&&'formatInline'!=_0x4ec15b['type'])return;const {data:_0x3fe1b3}=_0x4ec15b;if(_0x3fe1b3&&'pasteFormat'===_0x3fe1b3['commandName']){const _0x49a15a=[],_0x9b860c=_0x3fe1b3['commandParams'][0x0];for(const [_0x5a649b,_0x275f3d]of Object['entries'](_0x9b860c))_0x49a15a['push'](so(_0x122185,_0x5a649b,_0x275f3d));return _0x49a15a['length']?{'type':'format','content':o(_0x35b937,'*Set\x20format\x20to:*\x20%0',_0x49a15a['join'](',\x20'))}:{'type':'format','content':o(_0x35b937,'*Remove\x20all\x20formatting*')};}});}}function so(_0x156508,_0x1cd506,_0xbfc669){const _0x5c25d3=_0x156508['locale']['t'],_0x962d26=_0x1cd506['split'](/(?=[A-Z])/)['join']('\x20'),_0x3590e4=_0x5c25d3(_0x962d26['charAt'](0x0)['toUpperCase']()+_0x962d26['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xbfc669)return _0x3590e4;if('fontColor'===_0x1cd506||'fontBackgroundColor'===_0x1cd506){const _0x3ac5c6=_0x3fdb8c(_0x156508['config']['get']('fontColor.colors'))['find'](_0x344648=>_0x344648['model']==_0xbfc669);return _0x3590e4+'\x20('+(_0x3ac5c6?_0x5c25d3(_0x3ac5c6['label'])['toLowerCase']():_0xbfc669)+')';}if('fontSize'===_0x1cd506&&isNaN(parseFloat(_0xbfc669))){const _0x36a416=_0x156508['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x156508['config']['get']('fontSize.options'))['find'](_0x1577cb=>_0x1577cb['model']==_0xbfc669);return _0x3590e4+'\x20('+(_0x36a416?_0x5c25d3(_0x36a416['title'])['toLowerCase']():_0xbfc669)+')';}return _0x3590e4+'\x20('+_0xbfc669+')';}class tt extends _0x2aa107{['_headingOptions'];['afterInit'](){const _0x542e78=this['editor'];if(!_0x542e78['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x542e78['config']['get']('heading.options');const _0x4ccb6c=_0x542e78['locale'],_0x4889e8=_0x542e78['plugins']['get']('TrackChangesEditing');_0x4889e8['enableDefaultAttributesIntegration']('heading');for(const _0x10e033 of this['_headingOptions'])'paragraph'!=_0x10e033['model']&&_0x4889e8['descriptionFactory']['registerElementLabel'](_0x10e033['model'],_0x54f460=>{const _0x5c30be=this['_getHeadingLevel'](_0x10e033['model']);return null!==_0x5c30be?_0x43df47(_0x54f460,_0x5c30be):_0x2a140b(_0x54f460,_0x10e033['title']);});function _0x43df47(_0x5b7948,_0x3442f6){return o(_0x4ccb6c,'ELEMENT_HEADING',[_0x5b7948,_0x3442f6]);}function _0x2a140b(_0x456ba9,_0x9a94c1){return o(_0x4ccb6c,'ELEMENT_HEADING_CUSTOM',[_0x456ba9,_0x9a94c1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d5371=this['editor'],_0x26ec83=_0x2d5371['locale'];function _0x371823(_0x79b552,_0xe9ee11){return o(_0x26ec83,'ELEMENT_HEADING_CUSTOM',[_0x79b552,_0xe9ee11]);}_0x2d5371['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c15af=>{if('formatBlock'!=_0x2c15af['type'])return;const {data:_0x2048de}=_0x2c15af;if(_0x2048de&&'heading'==_0x2048de['commandName']){const _0xda6aca=_0x2048de['commandParams'][0x0]['value'],_0x302cfd=this['_getHeadingLevel'](_0xda6aca);if(null!==_0x302cfd)return{'type':'format','content':o(_0x26ec83,'*Change\x20to:*\x20%0',(_0x511a4c=0x1,_0xb5d283=_0x302cfd,o(_0x26ec83,'ELEMENT_HEADING',[_0x511a4c,_0xb5d283])))};const _0x5c0d32=this['_headingOptions']['find'](_0x739d23=>_0x739d23['model']===_0xda6aca)['title'];return{'type':'format','content':o(_0x26ec83,'*Change\x20to:*\x20%0',_0x371823(0x1,_0x5c0d32))};}var _0x511a4c,_0xb5d283;});}['_getHeadingLevel'](_0x365cd5){const _0x3b2471=_0x365cd5['match'](/^heading(\d+)/);if(_0x3b2471)return _0x3b2471[0x1];const _0x384bd1=this['_headingOptions']?.['find'](_0x1b613b=>_0x1b613b['model']==_0x365cd5);if(_0x384bd1&&_0x384bd1['view']){const _0x58f7d3=_0x384bd1['view'],_0x37252c=(_0x58f7d3['name']??_0x58f7d3)['match'](/^h(\d+)/);if(_0x37252c)return _0x37252c[0x1];}return null;}}class et extends _0x2aa107{['afterInit'](){const _0x57b8f1=this['editor'];if(!_0x57b8f1['plugins']['has']('HighlightEditing'))return;const _0x246959=_0x57b8f1['plugins']['get']('TrackChangesEditing'),_0x1c8a4e=_0x57b8f1['locale'];_0x246959['enableDefaultAttributesIntegration']('highlight'),_0x246959['registerInlineAttribute']('highlight'),_0x246959['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1c8a4e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a4396=this['editor'],_0x41c0cb=_0x3a4396['locale'];_0x3a4396['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49afdf=>{if('formatInline'!=_0x49afdf['type'])return;const {data:_0x585a0c}=_0x49afdf;if(_0x585a0c&&'highlight'==_0x585a0c['commandName']){const _0x45d9ec=_0x41c0cb['t'],_0x6762b4=_0x585a0c['commandParams'][0x0]['value'];if(_0x6762b4){const _0x89d15e=_0x3a4396['config']['get']('highlight.options')['find'](_0x1b5577=>_0x1b5577['model']==_0x6762b4),_0x103175=_0x45d9ec(_0x89d15e['title'])['toLowerCase']();return{'type':'format','content':o(_0x41c0cb,'*Set\x20highlight:*\x20%0',_0x103175),'color':{'value':_0x89d15e['color'],'title':_0x89d15e['title']}};}return{'type':'format','content':o(_0x41c0cb,'*Remove\x20highlight*',o(_0x41c0cb,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2aa107{['afterInit'](){const _0x4c302b=this['editor'];if(!_0x4c302b['plugins']['has']('HorizontalLineEditing'))return;_0x4c302b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2ce9a1=_0x4c302b['plugins']['get']('TrackChangesEditing'),_0x461b0c=_0x4c302b['locale'];_0x2ce9a1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x39553e=>o(_0x461b0c,'ELEMENT_HORIZONTAL_LINE',_0x39553e)),_0x4c302b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2251f1,{writer:_0x4d5b2c,options:_0x400111})=>{if(!_0x400111['showSuggestionHighlights'])return null;const _0x1b27d4=_0x4d5b2c['createContainerElement']('div'),_0x5a23d6=_0x4d5b2c['createEmptyElement']('hr');return _0x4d5b2c['addClass']('ck-horizontal-line',_0x1b27d4),_0x4d5b2c['insert'](_0x4d5b2c['createPositionAt'](_0x1b27d4,0x0),_0x5a23d6),_0x1b27d4;},'converterPriority':'high'});}}class st extends _0x2aa107{['afterInit'](){const _0x2c20b6=this['editor'];if(!_0x2c20b6['plugins']['has']('HtmlEmbed'))return;const _0x1e8191=_0x2c20b6['plugins']['get']('TrackChangesEditing'),_0x1bf997=_0x2c20b6['locale'];_0x1e8191['descriptionFactory']['registerElementLabel']('rawHtml',_0x125cd6=>o(_0x1bf997,'ELEMENT_HTML_EMBED',_0x125cd6)),_0x1e8191['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1e8191['registerBlockAttribute']('value'),_0x1e8191['descriptionFactory']['registerDescriptionCallback'](_0x390a3e=>{if('attribute'!=_0x390a3e['type'])return;const {data:_0x1e1259}=_0x390a3e;if(_0x1e1259&&'value'==_0x1e1259['key']&&_0x390a3e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x151aae=o(_0x1bf997,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1bf997,'*Change\x20%0\x20content*',_0x151aae)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45c19f=this['editor'],_0x2024df=_0x45c19f['locale'];_0x45c19f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e99f2=>{if('formatBlock'!=_0x2e99f2['type'])return;const {data:_0x1f563b}=_0x2e99f2;if(_0x1f563b&&'htmlEmbed'==_0x1f563b['commandName']){const _0x12facf=o(_0x2024df,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2024df,'*Change\x20%0\x20content*',_0x12facf)};}});}}class nt extends _0x2aa107{['afterInit'](){const _0x2c8a15=this['editor'];if(!_0x2c8a15['plugins']['has']('ImageEditing'))return;const _0x44a1fb=_0x2c8a15['plugins']['get']('TrackChangesEditing'),_0x4f60c3=_0x2c8a15['plugins']['get']('ImageUtils'),_0x53853a=_0x2c8a15['locale'];_0x44a1fb['enableCommand']('insertImage'),_0x44a1fb['descriptionFactory']['registerElementLabel']('imageBlock',_0x7a50e9=>o(_0x53853a,'ELEMENT_IMAGE',_0x7a50e9)),_0x44a1fb['descriptionFactory']['registerElementLabel']('imageInline',_0x34f3a6=>o(_0x53853a,'ELEMENT_INLINE_IMAGE',_0x34f3a6)),_0x44a1fb['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x53853a,'ELEMENT_CAPTION')),_0x2c8a15['plugins']['has']('ImageUploadEditing')&&_0x44a1fb['enableCommand']('uploadImage'),_0x2c8a15['plugins']['has']('ImageBlockEditing')&&_0x2c8a15['plugins']['has']('ImageInlineEditing')&&(_0x44a1fb['enableCommand']('imageTypeInline',(_0x3db0cf,_0x48cb39)=>{const _0x5467a9=_0x4f60c3['getClosestSelectedImageElement'](_0x2c8a15['model']['document']['selection']);_0x2c8a15['model']['change'](()=>{_0x44a1fb['markBlockFormat'](_0x5467a9,{'commandName':'imageTypeInline','commandParams':[_0x48cb39]},[],'convertBlockImageToInline');});}),_0x44a1fb['enableCommand']('imageTypeBlock',(_0x159470,_0x4a2d15)=>{_0x2c8a15['model']['change'](_0x1ab2e1=>{let _0x1a1147=_0x4f60c3['getClosestSelectedImageElement'](_0x2c8a15['model']['document']['selection']),_0x38176d=_0x1ab2e1['createRangeOn'](_0x1a1147);const _0xf10ea8=_0x181194['fromPosition'](_0x38176d['start'],'toPrevious'),_0xb28b9a=_0x181194['fromPosition'](_0x38176d['end'],'toNext');_0x44a1fb['forceDefaultExecution'](()=>_0x159470(_0x4a2d15)),_0x1a1147=_0x4f60c3['getClosestSelectedImageElement'](_0x2c8a15['model']['document']['selection']),_0x38176d=_0x1ab2e1['createRangeOn'](_0x1a1147);const _0x33e051=_0x1ab2e1['createRange'](_0xf10ea8,_0xb28b9a);_0xf10ea8['detach'](),_0xb28b9a['detach'](),_0x44a1fb['markBlockFormat'](_0x1a1147,{'commandName':'imageTypeInline','commandParams':[_0x4a2d15]},[],'convertInlineImageToBlock'),_0x33e051['start']['isBefore'](_0x38176d['start'])&&_0x44a1fb['markInsertion'](_0x1ab2e1['createRange'](_0x33e051['start'],_0x38176d['start']),'convertInlineImageToBlock'),_0x38176d['end']['isBefore'](_0x33e051['end'])&&_0x44a1fb['markInsertion'](_0x1ab2e1['createRange'](_0x38176d['end'],_0x33e051['end']),'convertInlineImageToBlock');});}),_0x44a1fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x44a1fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x44a1fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x44a1fb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x44a1fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x44a1fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3f7aa7])=>{const _0x2351df=_0x44a1fb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2d7d6b=_0x3f7aa7['start'],_0x54ac9e=_0x3f7aa7['end'];const _0x1e243d=_0x2c8a15['model']['schema']['getNearestSelectionRange'](_0x2d7d6b,'backward'),_0x24009=_0x2c8a15['model']['schema']['getNearestSelectionRange'](_0x54ac9e,'forward');_0x1e243d['isCollapsed']&&(_0x2d7d6b=_0x1e243d['start']),_0x24009['isCollapsed']&&(_0x54ac9e=_0x24009['end']),_0x2351df([_0x2c8a15['model']['createRange'](_0x2d7d6b,_0x54ac9e)]);}),_0x44a1fb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x86d964),_0x44a1fb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x86d964)),_0x2c8a15['plugins']['has']('ImageCaptionEditing')&&(_0x44a1fb['enableCommand']('toggleImageCaption',(_0x3025af,_0x4413b7)=>{const _0x4e5102=_0x2c8a15['plugins']['get']('ImageCaptionUtils');let _0x1cf724=_0x4f60c3['getClosestSelectedImageElement'](_0x2c8a15['model']['document']['selection']),_0x14c823=_0x4e5102['getCaptionFromImageModelElement'](_0x1cf724);_0x2c8a15['model']['change'](()=>{if(_0x14c823)return void _0x44a1fb['markDeletion'](_0x2c8a15['model']['createRangeOn'](_0x14c823));const _0x35f20a=_0x4f60c3['isBlockImage'](_0x1cf724);_0x3025af(_0x4413b7),_0x1cf724=_0x4f60c3['getClosestSelectedImageElement'](_0x2c8a15['model']['document']['selection']),_0x14c823=_0x4e5102['getCaptionFromImageModelElement'](_0x1cf724),_0x44a1fb['markInsertion'](_0x2c8a15['model']['createRangeOn'](_0x14c823),_0x35f20a?null:'imageCaption');});}),_0x44a1fb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x86d964));const _0x3f4dd3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x19e9ba(_0x290c7b,_0x446084){const _0x16729b=_0x3f4dd3['findIndex'](({type:_0x4abdda,subType:_0x3d8967})=>_0x290c7b['type']==_0x4abdda&&_0x290c7b['subType']==_0x3d8967),_0x4dce99=_0x3f4dd3['findIndex'](({type:_0x3647e9,subType:_0x104549})=>_0x446084['type']==_0x3647e9&&_0x446084['subType']==_0x104549);if(_0x16729b<0x0||_0x4dce99<0x0)return!0x1;const _0x48056a=_0x290c7b['getFirstRange'](),_0x5bb6b2=_0x446084['getFirstRange']();if((0x0==_0x16729b||0x1==_0x16729b)&&0x2==_0x4dce99&&_0x48056a['isIntersecting'](_0x5bb6b2))return!0x0;if(0x2==_0x16729b&&0x3==_0x4dce99){const _0x3c7b12=_0x44a1fb['_findSuggestions'](_0x48056a,'insertion')['filter'](({suggestion:_0x421e21,meta:_0x387a1a})=>_0x387a1a['isOwn']&&'convertInlineImageToBlock'==_0x421e21['subType']);if(_0x3c7b12['length']>0x1&&_0x5bb6b2['end']['isEqual'](_0x48056a['start']))return!0x0;if(0x1==_0x3c7b12['length']&&(_0x48056a['start']['isEqual'](_0x5bb6b2['end'])||_0x48056a['end']['isEqual'](_0x5bb6b2['start'])))return!0x0;}if(0x3==_0x16729b&&0x3==_0x4dce99&&_0x48056a['start']['isBefore'](_0x5bb6b2['start'])){const _0x4de8de=_0x48056a['end']['nodeAfter'],_0x4bec73=_0x5bb6b2['start']['nodeBefore'];return _0x4f60c3['isBlockImage'](_0x4de8de)&&_0x4de8de===_0x4bec73;}return!0x1;}function _0x86d964(_0x2ab8b0,_0x132557){return _0x19e9ba(_0x2ab8b0,_0x132557)?[_0x2ab8b0,_0x132557]:_0x19e9ba(_0x132557,_0x2ab8b0)?[_0x132557,_0x2ab8b0]:null;}_0x2c8a15['plugins']['has']('ImageResize')&&(_0x44a1fb['enableDefaultAttributesIntegration']('resizeImage'),_0x44a1fb['registerBlockAttribute']('resizedWidth'),_0x44a1fb['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x53853a,'FORMAT_IMAGE_SIZE'))),_0x2c8a15['plugins']['has']('ImageTextAlternativeEditing')&&(_0x44a1fb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x44a1fb['registerBlockAttribute']('alt')),_0x44a1fb['descriptionFactory']['registerDescriptionCallback'](_0x2bc661=>{if(!!_0x3f4dd3['find'](({type:_0x57b783,subType:_0x3db365})=>_0x2bc661['type']==_0x57b783&&_0x2bc661['subType']==_0x3db365))return _0x2bc661['previous']?{}:void 0x0;}),_0x44a1fb['descriptionFactory']['registerDescriptionCallback'](_0x3f2469=>{if('insertion'==_0x3f2469['type']||'deletion'==_0x3f2469['type']){const _0xe197ec=_0x3f2469['getContainedElement']();if(_0xe197ec&&_0xe197ec['is']('element','caption'))return{'type':'insertion'==_0x3f2469['type']?'addObject':'removeObject','element':_0xe197ec,'quantity':0x1};}}),_0x44a1fb['descriptionFactory']['registerDescriptionCallback'](_0x44af76=>'formatBlock'==_0x44af76['type']&&'convertInlineImageToBlock'==_0x44af76['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x44af76['type']&&'convertBlockImageToInline'==_0x44af76['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x44a1fb['descriptionFactory']['registerDescriptionCallback'](_0x48a69d=>{if('attribute'!=_0x48a69d['type'])return;const {data:_0x284cad}=_0x48a69d;if(!_0x284cad||'alt'!=_0x284cad['key'])return;const _0x34c2ba=_0x284cad['newValue'];return _0x34c2ba?{'type':'format','content':o(_0x53853a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34c2ba+'\x22')}:{'type':'format','content':o(_0x53853a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10c208=this['editor'],_0x60623=_0x10c208['locale'];_0x10c208['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10740f=>{if('formatBlock'!=_0x10740f['type']&&'formatInline'!=_0x10740f['type'])return;const {data:_0x3313fc}=_0x10740f;if(_0x3313fc){if('imageTextAlternative'==_0x3313fc['commandName']){const _0x450a2a=_0x3313fc['commandParams'][0x0]['newValue'];return _0x450a2a?{'type':'format','content':o(_0x60623,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x450a2a+'\x22')}:{'type':'format','content':o(_0x60623,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3313fc['commandName']){const _0x65e80c=_0x3313fc['commandParams'][0x0]['width'];return _0x65e80c?{'type':'format','content':o(_0x60623,'*Set\x20image\x20width:*\x20%0',_0x65e80c)}:{'type':'format','content':o(_0x60623,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x2aa107{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x363e07=this['editor']['locale'],_0x63499c=this['editor']['plugins']['get']('TrackChangesEditing');_0x63499c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x63499c['registerBlockAttribute']('src'),_0x63499c['descriptionFactory']['registerDescriptionCallback'](_0x3649e1=>{if('attribute'!=_0x3649e1['type'])return;const {data:_0x599725}=_0x3649e1;return _0x599725&&'src'==_0x599725['key']?_0x599725['newValue']&&_0x599725['oldValue']?{'type':'format','content':o(_0x363e07,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x49cb07=this['editor']['plugins']['get']('TrackChangesEditing');_0x49cb07['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x49cb07['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x49cb07['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x49cb07['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4393e5=this['editor'],_0x2f616a=_0x4393e5['locale'];_0x4393e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ce196=>{if('formatBlock'!=_0x4ce196['type']&&'formatInline'!=_0x4ce196['type'])return;const {data:_0xca5e11}=_0x4ce196;if(!_0xca5e11||'replaceImageSource'!=_0xca5e11['commandName'])return;return{'type':'format','content':o(_0x2f616a,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x2aa107{['afterInit'](){const _0x4d8d59=this['editor'];if(!_0x4d8d59['plugins']['has']('ImageStyleEditing'))return;const _0x5156ca=_0x4d8d59['plugins']['get']('TrackChangesEditing'),_0x4d3a54=_0x4d8d59['plugins']['get']('ImageUtils'),_0x4e71c0={};_0x5156ca['enableCommand']('imageStyle',(_0x3be3c6,_0x3d6b7c)=>{const _0x365687=_0x4d8d59['plugins']['get']('Users')['me'],_0x32e740=_0x4d8d59['commands']['get']('imageStyle');let _0x211ce0=_0x4d3a54['getClosestSelectedImageElement'](_0x4d8d59['model']['document']['selection']),_0x499891=_0x4d8d59['model']['createRangeOn'](_0x211ce0),_0x367742=_0x32e740['value'];if(_0x367742==_0x3d6b7c['value'])return;const _0x4d330e={'commandName':'imageStyle','commandParams':[_0x3d6b7c],'formatGroupId':_0x1a2714()};_0x4d8d59['model']['change'](()=>{if(_0x5156ca['getSuggestions']()['filter'](_0x5733c6=>_0x5733c6['isInContent']&&_0x365687==_0x5733c6['author']&&('formatBlock'==_0x5733c6['type']||'formatInline'==_0x5733c6['type'])&&('imageStylePreApply'==_0x5733c6['subType']||'imageStylePostApply'==_0x5733c6['subType'])&&_0x5733c6['getFirstRange']()['isEqual'](_0x499891))['forEach'](_0x5402e8=>_0x5156ca['discardSuggestion'](_0x5402e8['head'])),_0x211ce0=_0x4d3a54['getClosestSelectedImageElement'](_0x4d8d59['model']['document']['selection']),_0x499891=_0x4d8d59['model']['createRangeOn'](_0x211ce0),_0x32e740['refresh'](),_0x4d8d59['commands']['get']('imageTypeInline')['refresh'](),_0x4d8d59['commands']['get']('imageTypeBlock')['refresh'](),_0x367742=_0x32e740['value'],_0x367742!=_0x3d6b7c['value'])return _0x4d3a54['isInlineImage'](_0x211ce0)&&_0x32e740['shouldConvertImageType'](_0x3d6b7c['value'],_0x211ce0)?(_0x3be3c6({..._0x3d6b7c,'setImageSizes':!0x1}),_0x211ce0=_0x4d3a54['getClosestSelectedImageElement'](_0x4d8d59['model']['document']['selection']),void _0x5156ca['markBlockFormat'](_0x211ce0,{..._0x4d330e,'commandReversedParams':[{'value':_0x367742||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4d3a54['isBlockImage'](_0x211ce0)?_0x5156ca['markBlockFormat'](_0x211ce0,_0x4d330e,[],'imageStylePostApply'):_0x5156ca['markInlineFormat'](_0x499891,_0x4d330e,'imageStylePostApply'));});});for(const _0x204754 of _0x4d8d59['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4e71c0[_0x204754['name']]=_0x204754['title']['toLowerCase']();_0x5156ca['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5156ca['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5156ca['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5156ca['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4fe93f])=>{_0x4d3a54['setImageNaturalSizeAttributes'](_0x4fe93f['getContainedElement']());}),_0x5156ca['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x26ce5c,_0x2a1109)=>{_0x5156ca['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x26ce5c,{'commandName':_0x2a1109['commandName'],'commandParams':_0x2a1109['commandReversedParams']});}),_0x5156ca['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x31de1d,_0x14ada0){if(_0x1b4374(_0x31de1d,_0x14ada0))return[_0x31de1d,_0x14ada0];if(_0x1b4374(_0x14ada0,_0x31de1d))return[_0x14ada0,_0x31de1d];return null;});const _0x26d747=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1b4374(_0x1eebb9,_0x49a1ff){const _0x5d7f21=_0x26d747['findIndex'](({type:_0x425c36,subType:_0x5e2320})=>_0x1eebb9['type']==_0x425c36&&_0x1eebb9['subType']==_0x5e2320),_0x5087b8=_0x26d747['findIndex'](({type:_0x51a242,subType:_0x104b61})=>_0x49a1ff['type']==_0x51a242&&_0x49a1ff['subType']==_0x104b61);if(_0x5d7f21<0x0||_0x5087b8<0x0)return!0x1;const _0x148ba7=_0x1eebb9['getFirstRange'](),_0x288727=_0x49a1ff['getFirstRange']();if((0x0==_0x5d7f21||0x1==_0x5d7f21)&&0x2==_0x5087b8&&_0x148ba7['isIntersecting'](_0x288727))return!0x0;if(0x2==_0x5d7f21&&0x3==_0x5087b8){const _0x2a516f=_0x5156ca['_findSuggestions'](_0x148ba7,'insertion')['filter'](({suggestion:_0x4cb6f3,meta:_0x1243a6})=>_0x1243a6['isOwn']&&'convertInlineImageToBlock'==_0x4cb6f3['subType']);if(_0x2a516f['length']>0x1&&_0x288727['end']['isEqual'](_0x148ba7['start']))return!0x0;if(0x1==_0x2a516f['length']&&(_0x148ba7['start']['isEqual'](_0x288727['end'])||_0x148ba7['end']['isEqual'](_0x288727['start'])))return!0x0;}if(0x3==_0x5d7f21&&0x3==_0x5087b8&&_0x148ba7['start']['isBefore'](_0x288727['start'])){const _0x2c8868=_0x148ba7['end']['nodeAfter'],_0xa88eb9=_0x288727['start']['nodeBefore'];return _0x4d3a54['isBlockImage'](_0x2c8868)&&_0x2c8868===_0xa88eb9;}return!0x1;}_0x4d8d59['model']['document']['registerPostFixer'](()=>{let _0x2421cb=!0x1;const _0xb07e3=Array['from'](_0x4d8d59['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x52709b,data:_0x3d309d}of _0xb07e3){const {group:_0xe46f5e,type:_0x384c1c,subType:_0x2f7a05,id:_0x278a21}=_0x5156ca['_splitMarkerName'](_0x52709b);if('suggestion'==_0xe46f5e&&_0x5156ca['hasSuggestion'](_0x278a21)){if('formatBlock'==_0x384c1c&&('imageStylePreApply'==_0x2f7a05||'imageStylePostApply'==_0x2f7a05)){const _0x1e9c62=_0x5156ca['getSuggestion'](_0x278a21);if(_0x3d309d['newRange']){const _0x33804c=_0x1e9c62['getFirstRange']()['getContainedElement']();if(_0x4d3a54['isBlockImage'](_0x33804c))continue;_0x5156ca['discardSuggestion'](_0x1e9c62),_0x2421cb=!0x0;}}if('insertion'==_0x384c1c&&'imageCaption'==_0x2f7a05&&!_0x3d309d['newRange']){const _0x427599=_0x5156ca['getSuggestion'](_0x278a21);_0x427599['next']&&_0x427599['next']['isInContent']&&(_0x5156ca['discardSuggestion'](_0x427599['next']),_0x2421cb=!0x0);}}}return _0x2421cb;}),this['_registerLegacyDescription'](_0x4e71c0);}['_registerLegacyDescription'](_0x5c9c45){const _0x3da050=this['editor'],_0x37c423=_0x3da050['locale'];_0x3da050['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45092a=>{if('formatBlock'!=_0x45092a['type']&&'formatInline'!=_0x45092a['type'])return;const {data:_0x128fa3}=_0x45092a;if(!_0x128fa3||'imageStyle'!=_0x128fa3['commandName'])return;const _0x34ce39=_0x128fa3['commandParams'][0x0]['value'];return _0x43e972('side'===_0x34ce39?o(_0x37c423,'FORMAT_SIDE_IMAGE'):_0x5c9c45[_0x34ce39]||_0x34ce39);function _0x43e972(_0x2cd21b){return{'type':'format','content':o(_0x37c423,'*Format:*\x20%0',_0x2cd21b)};}});}}class at extends _0x2aa107{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2a4460){super(_0x2a4460),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5b7ea5=this['editor'],_0x2aed64=_0x5b7ea5['commands']['get']('importWord'),_0x2c0da0=_0x5b7ea5['commands']['get']('trackChanges');_0x2aed64&&(_0x2aed64['on']('execute',(_0x5b6822,[,_0x56594e])=>{this['_trackChangesValueDuringImport']=_0x2c0da0['value'],_0x56594e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2aed64,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2aed64,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c0da0['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5b7ea5['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1ab9db,_0x5ea621){const {suggestions:_0x54d0f8}=_0x5ea621,_0x2c7fa5=this['editor']['commands']['get']('trackChanges'),_0x17d2d6=_0x2c7fa5['value'];this['_trackChangesValueDuringImport']!==_0x17d2d6&&(_0x2c7fa5['execute'](),this['_trackChangesExecuted']=!0x0),_0x54d0f8&&_0x54d0f8['forEach'](({id:_0xce854d,type:_0x571d8d,author:_0x54ed69,created_at:_0xc41ca9})=>{const _0x194e85={'id':_0xce854d,'type':_0x571d8d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x54ed69,'createdAt':_0xc41ca9?new Date(_0xc41ca9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x194e85);});}}class ct extends _0x2aa107{['afterInit'](){const _0x3bea9f=this['editor'],_0x3fc4b6=_0x3bea9f['plugins']['get']('TrackChangesEditing');if(_0x3bea9f['plugins']['has']('IndentEditing')&&(_0x3fc4b6['enableCommand']('indent'),_0x3fc4b6['enableCommand']('outdent')),_0x3bea9f['plugins']['has']('IndentBlock')){for(const _0x70897c of['indentBlock','outdentBlock'])_0x3fc4b6['enableDefaultAttributesIntegration'](_0x70897c);}const _0x41af52=_0x3bea9f['locale'];_0x3fc4b6['registerBlockAttribute']('blockIndent'),_0x3fc4b6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x41af52,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8e1184=this['editor'],_0x54517c=_0x8e1184['locale'],_0x169555=_0x8e1184['plugins']['get']('TrackChangesEditing');_0x169555['descriptionFactory']['registerDescriptionCallback'](_0x261c0d=>{if('formatBlock'!=_0x261c0d['type'])return;const {data:_0x54de1e}=_0x261c0d;if(!_0x54de1e)return;if('indentBlock'!=_0x54de1e['commandName']&&'outdentBlock'!=_0x54de1e['commandName'])return;const _0x162985=_0x261c0d['getItems']()[0x0],_0x51f261=_0x169555['descriptionFactory']['getItemLabel'](_0x162985);return'indentBlock'==_0x54de1e['commandName']?{'type':'format','content':o(_0x54517c,'*Indent:*\x20%0',_0x51f261)}:'outdentBlock'==_0x54de1e['commandName']?{'type':'format','content':o(_0x54517c,'*Outdent:*\x20%0',_0x51f261)}:void 0x0;});}}class ut extends _0x2aa107{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2aa107{['afterInit'](){const _0x286642=this['editor'];if(!_0x286642['plugins']['has']('LinkEditing'))return;const _0x4c3bfa=_0x286642['plugins']['get']('TrackChangesEditing'),_0x14fa26=_0x286642['commands']['get']('link');_0x4c3bfa['enableDefaultAttributesIntegration']('link'),_0x4c3bfa['enableDefaultAttributesIntegration']('unlink'),_0x4c3bfa['registerInlineAttribute']('linkHref');for(const _0x453396 of _0x14fa26['manualDecorators'])_0x4c3bfa['registerInlineAttribute'](_0x453396['id']),_0x4c3bfa['descriptionFactory']['registerAttributeLabel'](_0x453396['id'],'link\x20('+_0x453396['label']['toLowerCase']()+')');_0x4c3bfa['descriptionFactory']['registerDescriptionCallback'](_0x290648=>{if('attribute'!=_0x290648['type'])return;const {data:_0x3cf6ba}=_0x290648;if(!_0x3cf6ba||'linkHref'!=_0x3cf6ba['key'])return;const _0x6d359d=_0x3cf6ba['newValue'],_0x16e1b1=_0x286642['locale'];return{'type':'format','content':null==_0x6d359d?o(_0x16e1b1,'*Remove\x20link*'):o(_0x16e1b1,'*Set\x20link:*\x20%0','\x22'+_0x6d359d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bc752=this['editor'],_0x260d2d=_0x3bc752['locale'];_0x3bc752['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46659d=>{if('formatInline'!=_0x46659d['type'])return;const {data:_0x39b309}=_0x46659d;if(_0x39b309){if('link'==_0x39b309['commandName']){const _0x48228c=_0x39b309['commandParams'][0x0];return{'type':'format','content':o(_0x260d2d,'*Set\x20link:*\x20%0','\x22'+_0x48228c+'\x22')};}return'unlink'==_0x39b309['commandName']?{'type':'format','content':o(_0x260d2d,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2aa107{['afterInit'](){const _0x240c70=this['editor'],_0x1961ea=_0x240c70['locale'];if(!_0x240c70['plugins']['has']('LegacyListEditing'))return;const _0xfa86f0=_0x240c70['plugins']['get']('TrackChangesEditing'),_0x2a2839=_0x240c70['plugins']['has']('LegacyTodoListEditing');function _0x320f51(_0x221582){return()=>{const _0x4ec2d4=_0x240c70['model']['document']['selection'],_0x51b0bc=_0x240c70['commands']['get'](_0x221582);if(_0x51b0bc['value'])return void _0x240c70['execute']('paragraph',{});const _0x251240=_0x221582['slice'](0x0,-0x4),_0x494059=function(_0x59b0c4,_0xf8358e,_0x5ceec4){let _0xc5524f=Array['from'](_0x59b0c4)['filter'](_0x5b3d33=>function(_0x117a9b,_0x2ceec0){return _0x2ceec0['checkChild'](_0x117a9b['parent'],'listItem')&&!_0x2ceec0['isObject'](_0x117a9b);}(_0x5b3d33,_0x5ceec4));_0xc5524f=_0xc5524f['filter'](_0x66191f=>!_0x66191f['is']('element','listItem')||_0x66191f['getAttribute']('listType')!=_0xf8358e);const _0x3d1c41=new Set();for(const _0x4cb15f of _0xc5524f)_0x4cb15f['is']('element','listItem')?_0x3d1c41['add'](fe(_0x4cb15f)):_0x3d1c41['add'](_0x4cb15f);return Array['from'](_0x3d1c41);}(_0x4ec2d4['getSelectedBlocks'](),_0x251240,_0x240c70['model']['schema']);_0x240c70['model']['change'](()=>{for(const _0x452a31 of _0x494059)_0xfa86f0['markBlockFormat'](_0x452a31,{'commandName':_0x221582,'commandParams':[{'forceValue':!_0x51b0bc['value']}],'formatGroupId':'blockName'},ue(_0x452a31));});};}function _0x397462(_0x3df46f){return()=>{const _0x350755=function(_0x13027d){let _0x333a14=Array['from'](_0x13027d);const _0x4cd0aa=_0x333a14['findIndex'](_0x36fb38=>'listItem'!=_0x36fb38['name']);return _0x4cd0aa>-0x1&&(_0x333a14=_0x333a14['slice'](0x0,_0x4cd0aa)),_0x333a14;}(_0x240c70['model']['document']['selection']['getSelectedBlocks']()),_0x21bb66=_0x240c70['model']['createRange'](_0x240c70['model']['createPositionAt'](_0x350755[0x0],'before'),_0x240c70['model']['createPositionAt'](_0x350755[_0x350755['length']-0x1],'end'));_0x240c70['model']['change'](()=>{_0xfa86f0['markBlockFormat'](_0x21bb66,{'commandName':_0x3df46f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x49c840){const _0x54f07f=new Set();for(const _0x54a183 of _0x49c840){let _0x44a09c=_0x54a183['nextSibling'];for(;_0x44a09c&&_0x44a09c['getAttribute']('listIndent')>_0x54a183['getAttribute']('listIndent');)_0x54f07f['add'](_0x44a09c),_0x44a09c=_0x44a09c['nextSibling'];}return Array['from'](_0x54f07f);}(_0x350755));});};}_0xfa86f0['enableCommand']('numberedList',_0x320f51('numberedList')),_0xfa86f0['enableCommand']('bulletedList',_0x320f51('bulletedList')),_0x2a2839&&_0xfa86f0['enableCommand']('todoList',_0x320f51('todoList')),_0xfa86f0['enableCommand']('indentList',_0x397462('indentList')),_0xfa86f0['enableCommand']('outdentList',_0x397462('outdentList')),_0x2a2839&&_0xfa86f0['enableCommand']('checkTodoList',()=>{const _0x5dcadf=_0x240c70['commands']['get']('checkTodoList'),_0x32c692=Array['from'](_0x5dcadf['_selectedElements']);_0x32c692['filter'](_0x128a5f=>_0x128a5f['getAttribute']('todoListChecked')!=_0x5dcadf['value']),_0x240c70['model']['change'](()=>{for(const _0x51b1d1 of _0x32c692)_0xfa86f0['markBlockFormat'](_0x51b1d1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5dcadf['value']}]});});}),_0xfa86f0['descriptionFactory']['registerElementLabel']('listItem',_0x55422c=>o(_0x1961ea,'ELEMENT_LIST_ITEM',_0x55422c)),_0xfa86f0['descriptionFactory']['registerDescriptionCallback'](_0x295e42=>{if('formatBlock'!=_0x295e42['type']&&'formatInline'!=_0x295e42['type'])return;const {data:_0xa2cdc1}=_0x295e42;if(_0xa2cdc1){if('numberedList'==_0xa2cdc1['commandName']||'bulletedList'==_0xa2cdc1['commandName']||'todoList'==_0xa2cdc1['commandName'])switch(_0xa2cdc1['commandName']['replace']('List','')){case'bulleted':return _0x2e39be(o(_0x1961ea,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e39be(o(_0x1961ea,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e39be(o(_0x1961ea,'ELEMENT_TODO_LIST'));}if('indentList'==_0xa2cdc1['commandName'])return{'type':'format','content':o(_0x1961ea,'*Indent:*\x20%0',o(_0x1961ea,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xa2cdc1['commandName'])return{'type':'format','content':o(_0x1961ea,'*Outdent:*\x20%0',o(_0x1961ea,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xa2cdc1['commandName'])return _0xa2cdc1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1961ea,'*Check\x20item*')}:{'type':'format','content':o(_0x1961ea,'*Uncheck\x20item*')};}function _0x2e39be(_0x28247c){return{'type':'format','content':o(_0x1961ea,'*Change\x20to:*\x20%0',_0x28247c)};}});}}function fe(_0xcc8b3b){const _0x5b6e15=_0xcc8b3b['getAttribute']('listIndent');if(0x0==_0x5b6e15)return _0xcc8b3b;let _0x212110=_0xcc8b3b;for(;_0xcc8b3b['previousSibling']&&_0xcc8b3b['previousSibling']['is']('element','listItem');){const _0x1dffa6=_0xcc8b3b['previousSibling']['getAttribute']('listIndent');if(_0x1dffa6==_0x5b6e15)_0x212110=_0xcc8b3b['previousSibling'];else{if(_0x1dffa6<_0x5b6e15)break;}_0xcc8b3b=_0xcc8b3b['previousSibling'];}return _0x212110;}function ue(_0x34f909){const _0x2a53f9=[];if(_0x34f909['is']('element','listItem')&&_0x34f909['getAttribute']('listIndent')>0x0){let _0x43b94f=_0x34f909['nextSibling'];for(;_0x43b94f&&'listItem'==_0x43b94f['name']&&_0x43b94f['getAttribute']('listIndent')==_0x34f909['getAttribute']('listIndent');)_0x2a53f9['push'](_0x43b94f),_0x43b94f=_0x43b94f['nextSibling'];}return _0x2a53f9;}class W extends _0x2aa107{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4fc23d=this['editor']['config']['get']('list.properties'),_0x1d92c9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fc23d['styles']&&_0x1d92c9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4fc23d['reversed']&&_0x1d92c9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4fc23d['startIndex']&&_0x1d92c9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1d92c9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x240751,_0x307d4b={}){const _0x5e7f96=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38775a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5e7f96['markMultiRangeBlockFormat'](_0x38775a,{'commandName':'listStyle','commandParams':[{'type':_0x307d4b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5431a6,_0x5aaff4={}){const _0x215113=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57d11e=this['_getSuggestionBlocks'](_0x5db4c4=>_0x5db4c4['is']('element','listItem')&&'numbered'===_0x5db4c4['getAttribute']('listType'));if(_0x57d11e['length']<0x1)return;const _0x5b3387=_0x57d11e['map'](_0x1104fd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1104fd,'before'),this['editor']['model']['createPositionAt'](_0x1104fd,0x0)));this['editor']['model']['change'](()=>{_0x215113['markMultiRangeBlockFormat'](_0x5b3387,{'commandName':'listReversed','commandParams':[{'reversed':_0x5aaff4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x48e607,_0x80a1e7={}){const _0x55cc89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b6794=this['_getSuggestionBlocks'](_0x37e0ab=>_0x37e0ab['is']('element','listItem')&&'numbered'===_0x37e0ab['getAttribute']('listType'));if(_0x2b6794['length']<0x1)return;const _0x4c2ccd=_0x2b6794['map'](_0x27250b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27250b,'before'),this['editor']['model']['createPositionAt'](_0x27250b,0x0)));this['editor']['model']['change'](()=>{_0x55cc89['markMultiRangeBlockFormat'](_0x4c2ccd,{'commandName':'listStart','commandParams':[{'startIndex':_0x80a1e7['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5ac936){if('formatBlock'!=_0x5ac936['type']&&'formatInline'!=_0x5ac936['type'])return;const _0xecaa8e=this['editor']['locale'],{data:_0x27ab53}=_0x5ac936;if(!_0x27ab53)return;let _0x3c5871,_0x5d234b;switch(_0x27ab53['commandName']){case'listStyle':_0x3c5871='*Change\x20to:*\x20%0',_0x5d234b={'type':'format','content':o(_0xecaa8e,_0x3c5871,o(_0xecaa8e,this['_getTranslationKeyForListStyle'](_0x27ab53['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3c5871=_0x27ab53['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5d234b={'type':'format','content':o(_0xecaa8e,_0x3c5871)};break;case'listStart':_0x3c5871='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5d234b={'type':'format','content':o(_0xecaa8e,_0x3c5871,_0x27ab53['commandParams'][0x0]['startIndex'])};}return _0x5d234b;}['_getSuggestionBlocksForListStyle'](){const _0xbe201a=this['editor']['plugins']['get']('LegacyListUtils');let _0x91dbf9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x91dbf9[0x0]?.['is']('element','listItem')&&_0x91dbf9['unshift'](..._0xbe201a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x91dbf9[_0x91dbf9['length']-0x1]?.['is']('element','listItem')&&_0x91dbf9['push'](..._0xbe201a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x91dbf9=[...new Set(_0x91dbf9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x91dbf9=_0x91dbf9['filter'](_0xd0dd0c=>_0xd0dd0c['is']('element','listItem'))),_0x91dbf9;}['_getSuggestionBlocks'](_0x26b801){const _0x515b46=this['editor']['plugins']['get']('LegacyListUtils');let _0x266463=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x26b801)['map'](_0x5470b4=>{const _0x385f11=this['editor']['model']['createPositionAt'](_0x5470b4,0x0);return[..._0x515b46['getSiblingNodes'](_0x385f11,'backward'),..._0x515b46['getSiblingNodes'](_0x385f11,'forward')];})['flat']();return _0x266463=[...new Set(_0x266463)],_0x266463;}['_getTranslationKeyForListStyle'](_0x4ed873){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4ed873)||'default')['toUpperCase']()+'_LIST_'+_0x4ed873['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x2aa107{['afterInit'](){const _0x3ca307=this['editor'];if(!_0x3ca307['plugins']['has']('MediaEmbedEditing'))return;const _0x5c5cab=_0x3ca307['plugins']['get']('TrackChangesEditing'),_0x2e6503=_0x3ca307['locale'];_0x5c5cab['enableCommand']('mediaEmbed'),_0x5c5cab['descriptionFactory']['registerElementLabel']('media',_0x313881=>o(_0x2e6503,'ELEMENT_MEDIA',_0x313881)),_0x3ca307['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x10de37,{writer:_0x1bb145,options:_0x2447a4})=>{if(_0x2447a4['showSuggestionHighlights'])return _0x1bb145['createEmptyElement']('div');},'converterPriority':'high'}),_0x3ca307['data']['downcastDispatcher']['on']('attribute:url:media',(_0x355fec,_0x383e79,_0xcf4291)=>{_0xcf4291['options']['showSuggestionHighlights']&&_0x355fec['stop']();},{'priority':'high'});}}class mt extends _0x2aa107{['afterInit'](){const _0x343bb0=this['editor'];_0x343bb0['plugins']['has']('MentionEditing')&&_0x343bb0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2aa107{['afterInit'](){const _0x54f177=this['editor'];if(!_0x54f177['commands']['get']('insertMergeField'))return;_0x54f177['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x230408=_0x54f177['plugins']['get']('TrackChangesEditing'),_0x33a231=_0x54f177['locale'];_0x230408['descriptionFactory']['registerElementLabel']('mergeField',_0x45188b=>o(_0x33a231,'ELEMENT_MERGE_FIELD',_0x45188b)),_0x230408['descriptionFactory']['registerDescriptionCallback'](_0x3bedbe=>{if('insertion'!=_0x3bedbe['type']&&'deletion'!=_0x3bedbe['type'])return;const _0xfb25fd=_0x3bedbe['getContainedElement']();if(null==_0xfb25fd)return;if(!_0xfb25fd['is']('element','mergeField'))return;const _0x3d01c6=_0x54f177['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xfb25fd['getAttribute']('id'));return'insertion'==_0x3bedbe['type']?{'type':'insertion','content':o(_0x33a231,'*Insert:*\x20%0','\x22'+_0x3d01c6+'\x22\x20'+o(_0x33a231,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x33a231,'*Remove:*\x20%0','\x22'+_0x3d01c6+'\x22\x20'+o(_0x33a231,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x2aa107{['afterInit'](){const _0x569987=this['editor'],_0x28ad3b=_0x569987['plugins']['get']('TrackChangesEditing');_0x569987['plugins']['has']('MultiLevelList')&&(_0x28ad3b['enableDefaultAttributesIntegration']('multiLevelList'),_0x28ad3b['registerBlockAttribute']('listMarkerStyle'),_0x28ad3b['descriptionFactory']['registerDescriptionCallback'](_0xe72473=>this['handleDescriptions'](_0xe72473)));}['handleDescriptions'](_0x484dc0){const _0x1cf49f=this['editor']['locale'],{data:_0x2c0063}=_0x484dc0,_0xd2e608={'type':'format','content':''};if(_0x2c0063&&'listMarkerStyle'==_0x2c0063['key']){if(!_0x2c0063['oldValue'])return{'type':'format','content':o(_0x1cf49f,'*Set\x20format:*\x20%0',o(_0x1cf49f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2c0063['newValue']+')'};if(!_0x2c0063['newValue']){let _0x564e39=_0x484dc0['head'];for(;_0x564e39;){if(_0x564e39['data']&&'listType'==_0x564e39['data']['key']&&_0x564e39['data']['newValue'])return _0xd2e608;_0x564e39=_0x564e39['next'];}return{'type':'format','content':o(_0x1cf49f,'*Remove\x20format:*\x20%0',o(_0x1cf49f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2c0063['oldValue']+')'};}}}}class kt extends _0x2aa107{['afterInit'](){const _0x541ac9=this['editor'];if(!_0x541ac9['plugins']['has']('PageBreakEditing'))return;_0x541ac9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x45f620=_0x541ac9['plugins']['get']('TrackChangesEditing'),_0x4cf1a7=_0x541ac9['locale'];_0x45f620['descriptionFactory']['registerElementLabel']('pageBreak',_0x304759=>o(_0x4cf1a7,'ELEMENT_PAGE_BREAK',_0x304759));}}class bt extends _0x2aa107{['afterInit'](){const _0x4bdd28=this['editor'];if(!_0x4bdd28['plugins']['has']('Paragraph'))return;const _0xd78dec=_0x4bdd28['locale'],_0x554c01=_0x4bdd28['plugins']['get']('TrackChangesEditing');_0x554c01['descriptionFactory']['registerElementLabel']('paragraph',_0x554590=>o(_0xd78dec,'ELEMENT_PARAGRAPH',_0x554590)),_0x554c01['enableDefaultAttributesIntegration']('paragraph'),_0x554c01['enableCommand']('insertParagraph'),_0x4bdd28['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4bdd28),{'priority':'highest'}),_0x4bdd28['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x706c29,_0x1a6136,_0x3ab2e2)=>{_0x3ab2e2['options']['showSuggestionHighlights']&&nr(_0x4bdd28,{'showActiveMarker':!0x1})(_0x706c29,_0x1a6136,_0x3ab2e2);},{'priority':'highest'});const _0x24c14b=_0x554c01['descriptionFactory'];_0x24c14b['registerDescriptionCallback'](_0x49b671=>{if('insertion'!==_0x49b671['type'])return;const {start:_0x2e552f,end:_0x3d7094}=_0x49b671['getFirstRange']();if(!_0x2e552f['isTouching'](_0x3d7094)||!_0x2e552f['nodeAfter'])return;const _0x383f77=_0x4bdd28['model']['schema'],_0x33e4da=_0x2e552f['nodeAfter'];return _0x383f77['isBlock'](_0x33e4da)&&!_0x383f77['isLimit'](_0x33e4da)&&_0x383f77['checkChild'](_0x33e4da,'$text')?{'type':'insertion','content':o(_0xd78dec,'*Insert:*\x20%0',_0x24c14b['getItemLabel'](_0x33e4da,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17507e=this['editor'],_0x575f84=_0x17507e['locale'];_0x17507e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x141e00=>{if('formatBlock'!=_0x141e00['type'])return;const {data:_0x226b83}=_0x141e00;return _0x226b83&&'paragraph'==_0x226b83['commandName']?{'type':'format','content':o(_0x575f84,'*Change\x20to:*\x20%0',o(_0x575f84,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x4087cf,{showActiveMarker:_0x503840=!0x0}={}){return(_0x284c3e,_0x48585a,_0x5593c2)=>{const _0x5bbd32=_0x4087cf['plugins']['get']('TrackChangesEditing'),_0x3fe8e5=_0x48585a['markerRange']['start'],_0x56aa01=_0x48585a['markerRange']['end'],_0x80cd26=_0x4087cf['model']['schema'];if(!_0x3fe8e5['isTouching'](_0x56aa01)||!_0x3fe8e5['nodeAfter'])return;const _0x5a7d9a=_0x3fe8e5['nodeAfter'];if(_0x80cd26['isBlock'](_0x5a7d9a)&&!_0x80cd26['isLimit'](_0x5a7d9a)&&_0x80cd26['checkChild'](_0x5a7d9a,'$text')){if(!_0x5593c2['consumable']['consume'](_0x48585a['markerRange'],_0x284c3e['name']))return;const _0x3b8114=_0x5593c2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x59b42a=_0x5593c2['mapper']['toViewPosition'](_0x56aa01);_0x503840&&_0x5bbd32['activeMarkers']['includes'](_0x48585a['markerName'])&&_0x5593c2['writer']['addClass']('ck-suggestion-marker--active',_0x3b8114),_0x5593c2['writer']['insert'](_0x59b42a,_0x3b8114),_0x5593c2['mapper']['bindElementToMarker'](_0x3b8114,_0x48585a['markerName']);}};}class wt extends _0x2aa107{['afterInit'](){const _0x11883e=this['editor'];if(!_0x11883e['plugins']['has']('RemoveFormatEditing'))return;_0x11883e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52519f=this['editor'];_0x52519f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4621ee=>{if('formatBlock'!=_0x4621ee['type']&&'formatInline'!=_0x4621ee['type'])return;const {data:_0x2fea77}=_0x4621ee;return _0x2fea77&&'removeFormat'==_0x2fea77['commandName']?{'type':'format','content':o(_0x52519f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2aa107{['afterInit'](){const _0x470ec4=this['editor'];if(!_0x470ec4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4db7c2=_0x470ec4['plugins']['get']('TrackChangesEditing');_0x4db7c2['enableCommand']('goToPreviousRestrictedEditingException'),_0x4db7c2['enableCommand']('goToNextRestrictedEditingException');const _0x4fb593=_0x470ec4['plugins']['get']('RestrictedEditingModeEditing');_0x4fb593['enableCommand']('trackChanges'),_0x4fb593['enableCommand']('acceptSuggestion'),_0x4fb593['enableCommand']('discardSuggestion'),_0x4fb593['enableCommand']('acceptAllSuggestions'),_0x4fb593['enableCommand']('discardAllSuggestions'),_0x4fb593['enableCommand']('acceptSelectedSuggestions'),_0x4fb593['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2aa107{static get['requires'](){return[_0x1f69e9];}['init'](){const _0x30f585=this['editor'],_0x2e161a=_0x30f585['plugins']['get']('TrackChangesEditing');_0x2e161a['enableCommand']('shiftEnter'),_0x30f585['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x30f585),{'priority':'high'}),_0x30f585['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x30f585),{'priority':'high'}),_0x30f585['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1fdb11,_0x9e9a7e,_0x1f1540)=>{_0x1f1540['options']['showSuggestionHighlights']&&ge(_0x30f585,{'showActiveMarker':!0x1})(_0x1fdb11,_0x9e9a7e,_0x1f1540);}),_0x2e161a['descriptionFactory']['registerElementLabel']('softBreak',_0x14e67d=>o(_0x30f585['locale'],'ELEMENT_LINE_BREAK',_0x14e67d));}}function ge(_0x865132,{showActiveMarker:_0x3b8fb7=!0x0}={}){return(_0x5da9c3,_0x6bb264,_0x2d76ba)=>{const _0x5af36c=_0x865132['plugins']['get']('TrackChangesEditing');if(!_0x2d76ba['consumable']['test'](_0x6bb264['markerRange'],_0x5da9c3['name']))return;const _0xce524f=_0x865132['model'];for(const _0x3535bf of _0x6bb264['markerRange']['getItems']()){if(!_0x3535bf['is']('element','softBreak'))continue;const _0x74158b='deletion'==_0x6bb264['markerName']['split'](':')[0x1]?'merge':'split',_0x4be226=_0x2d76ba['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x74158b}),_0x4428d3=_0x2d76ba['mapper']['toViewPosition'](_0xce524f['createPositionBefore'](_0x3535bf));_0x3b8fb7&&_0x5af36c['activeMarkers']['includes'](_0x6bb264['markerName'])&&_0x2d76ba['writer']['addClass']('ck-suggestion-marker--active',_0x4be226),_0x2d76ba['writer']['insert'](_0x4428d3,_0x4be226),_0x2d76ba['mapper']['bindElementToMarker'](_0x4be226,_0x6bb264['markerName']);}};}class St extends _0x2aa107{['afterInit'](){const _0x1ee3ae=this['editor'],_0xa5433a=_0x1ee3ae['model'],_0x1b63d3=_0x1ee3ae['locale'];if(!_0x1ee3ae['plugins']['has']('StandardEditingModeEditing'))return;const _0x3cdcc4=_0x1ee3ae['plugins']['get']('TrackChangesEditing'),_0x1974c2='restrictedEditingException',_0x57d0ba=_0x1ee3ae['commands']['get'](_0x1974c2);_0x3cdcc4['enableCommand'](_0x1974c2,(_0x4b1e86,_0x22eb11={})=>{const _0x39bdee=_0xa5433a['document']['selection'];if(_0x39bdee['isCollapsed'])return void _0x4b1e86(_0x22eb11);const _0x12120f=void 0x0!==_0x22eb11['forceValue']?_0x22eb11['forceValue']:!_0x57d0ba['value'];_0xa5433a['change'](()=>{const _0x2a4821=Array['from'](_0x39bdee['getRanges']());for(const _0x1241fc of _0x2a4821){const _0x55ee72=_0x12120f?[_0x1241fc]:io(_0x1974c2,_0x1241fc,_0xa5433a);for(const _0x3e6668 of _0x55ee72)_0x3cdcc4['markInlineFormat'](_0x3e6668,{'commandName':_0x1974c2,'commandParams':[{'forceValue':_0x12120f}]});}});}),_0x3cdcc4['descriptionFactory']['registerDescriptionCallback'](_0x2b3061=>{if('formatBlock'!=_0x2b3061['type']&&'formatInline'!=_0x2b3061['type'])return;const {data:_0x52787b}=_0x2b3061;return _0x52787b&&_0x52787b['commandName']==_0x1974c2?_0x52787b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b63d3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1b63d3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x2aa107{['afterInit'](){const _0x58700c=this['editor'];if(!_0x58700c['plugins']['has']('Style')||!_0x58700c['plugins']['has']('DataSchema'))return;const _0x298dc0=_0x58700c['plugins']['get']('TrackChangesEditing'),_0x54dbed=_0x58700c['locale'],_0x3426fb=_0x58700c['config']['get']('style')||{},_0x50d624=_0x58700c['plugins']['get']('GeneralHtmlSupport'),_0x489d27=_0x58700c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x58700c['plugins']['get']('DataSchema'),_0x3426fb['definitions']);_0x298dc0['enableDefaultAttributesIntegration']('style');const _0x250557=new Set();for(const _0x4ad457 of _0x489d27['block']){const _0x5b318e=_0x50d624['getGhsAttributeNameForElement'](_0x4ad457['element']);_0x250557['add'](_0x5b318e);}const _0x3578b6=new Set();for(const _0x467402 of _0x489d27['inline']){const _0x3ea61a=_0x50d624['getGhsAttributeNameForElement'](_0x467402['element']);_0x3578b6['add'](_0x3ea61a);for(const _0x52245f of _0x467402['ghsAttributes'])_0x3578b6['add'](_0x52245f);}for(const _0x3adc3f of _0x250557)_0x298dc0['registerBlockAttribute'](_0x3adc3f),_0x298dc0['descriptionFactory']['registerAttributeLabel'](_0x3adc3f,o(_0x54dbed,'FORMAT_STYLE'));for(const _0x2be515 of _0x3578b6)_0x298dc0['registerInlineAttribute'](_0x2be515),_0x298dc0['descriptionFactory']['registerAttributeLabel'](_0x2be515,o(_0x54dbed,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ca4e2=this['editor'],_0xabe739=_0x3ca4e2['locale'];_0x3ca4e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bdf4b=>{if('formatBlock'!=_0x4bdf4b['type']&&'formatInline'!=_0x4bdf4b['type'])return;const {data:_0x34ede}=_0x4bdf4b;return _0x34ede&&'style'===_0x34ede['commandName']?_0x34ede['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xabe739,'*Set\x20format:*\x20%0',_0x34ede['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xabe739,'*Remove\x20format:*\x20%0',_0x34ede['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x2aa107{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xa7571){super(_0xa7571),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x458c0d=this['editor'],_0x325112=_0x458c0d['model']['document']['selection'];if(!_0x458c0d['plugins']['has']('TableEditing'))return;const _0x38544a=_0x458c0d['locale'],_0x12fbb6=_0x458c0d['plugins']['get']('TrackChangesEditing'),_0x26eec7=_0x458c0d['plugins']['get']('TableUtils');_0x12fbb6['descriptionFactory']['registerElementLabel']('table',_0x140b3b=>o(_0x38544a,'ELEMENT_TABLE',_0x140b3b)),this['_setupColumnsRowsFixing'](),_0x12fbb6['enableCommand']('insertTable'),_0x12fbb6['enableCommand']('selectTableRow'),_0x12fbb6['enableCommand']('selectTableColumn');for(const _0x14b0f8 of['insertTableRowAbove','insertTableRowBelow']){const _0x44f11b=_0x458c0d['commands']['get'](_0x14b0f8);_0x12fbb6['enableCommand'](_0x14b0f8,_0x47f6a8=>{_0x458c0d['model']['change'](_0x4111c6=>{_0x47f6a8();const _0x802815='above'===_0x44f11b['order'],_0x5958d3=_0x26eec7['getSelectionAffectedTableCells'](_0x325112),_0x2d84d1=_0x26eec7['getRowIndexes'](_0x5958d3),_0x2b0958=_0x802815?_0x2d84d1['first']-0x1:_0x2d84d1['last']+0x1,_0x5cb97f=_0x5958d3[0x0]['findAncestor']('table'),_0x3f888b=_0x26eec7['createTableWalker'](_0x5cb97f,{'startRow':_0x2b0958,'endRow':_0x2b0958}),_0x2fc000=Array['from'](_0x3f888b)['map'](_0x24ea2e=>_0x4111c6['createRangeOn'](_0x24ea2e['cell']));_0x12fbb6['markMultiRangeInsertion'](_0x2fc000,'tableRow');});});}for(const _0x23567d of['insertTableColumnLeft','insertTableColumnRight']){const _0x41b3d2=_0x458c0d['commands']['get'](_0x23567d);_0x12fbb6['enableCommand'](_0x23567d,_0x55f5e8=>{_0x458c0d['model']['change'](_0x298d2a=>{_0x55f5e8();const _0x3aa843='left'===_0x41b3d2['order'],_0x45a625=_0x26eec7['getSelectionAffectedTableCells'](_0x325112),_0xa9ab8a=_0x26eec7['getColumnIndexes'](_0x45a625),_0x2e57c7=_0x3aa843?_0xa9ab8a['first']-0x1:_0xa9ab8a['last']+0x1,_0x5888c6=_0x45a625[0x0]['findAncestor']('table'),_0x3aa3cb=_0x26eec7['createTableWalker'](_0x5888c6,{'startRow':0x0,'column':_0x2e57c7,'includeAllSlots':!0x1}),_0x4a674d=Array['from'](_0x3aa3cb)['map'](_0x16274d=>_0x298d2a['createRangeOn'](_0x16274d['cell']));_0x12fbb6['markMultiRangeInsertion'](_0x4a674d,'tableColumn');});});}for(const _0x621785 of['removeTableRow','removeTableColumn']){const _0x31c820=_0x621785['substr'](0xb),_0x3735ca=_0x31c820['toLowerCase'](),_0x54f325=_0x3735ca['substr'](0x0,0x3)+'span',_0x2fb5ee='table'+_0x31c820,_0x392e60='min'+_0x31c820,_0x13b7a1='max'+_0x31c820;_0x12fbb6['enableCommand'](_0x621785,()=>{_0x458c0d['model']['change'](_0x3eae19=>{const _0xa0ccf0=_0x26eec7['getSelectionAffectedTableCells'](_0x325112),_0x3eef66=_0xa0ccf0[0x0]['findAncestor']('table');let _0x5ba202;if('removeTableRow'==_0x621785){const _0x4a2df5=_0x26eec7['getRowIndexes'](_0xa0ccf0);_0x5ba202={'startRow':_0x4a2df5['first'],'endRow':_0x4a2df5['last'],'includeAllSlots':!0x0};}else{const _0x1602d0=_0x26eec7['getColumnIndexes'](_0xa0ccf0);_0x5ba202={'startColumn':_0x1602d0['first'],'endColumn':_0x1602d0['last'],'includeAllSlots':!0x0};}const _0x3f667f=_0x26eec7['createTableWalker'](_0x3eef66,_0x5ba202),_0x25f15c=Array['from'](_0x3f667f)['map'](({cell:_0x475340})=>_0x475340),_0x37583e=be(_0x25f15c['filter'](_0x2f1a94=>_0x2f1a94['hasAttribute'](_0x54f325))),_0x66913a=be(_0x25f15c['filter'](_0xbf39fa=>!_0xbf39fa['hasAttribute'](_0x54f325)))['map'](_0x5ca775=>_0x3eae19['createRangeOn'](_0x5ca775)),_0x379010=_0x12fbb6['markMultiRangeDeletion'](_0x66913a,_0x2fb5ee);if(_0x379010&&('tableRow'==_0x379010['subType']||'tableColumn'==_0x379010['subType'])){const _0x2b402a=this['_getSuggestionCoords'](_0x379010);for(const _0x34ade4 of _0x37583e){const _0x5d18aa=_0x3eae19['createRangeOn'](_0x34ade4),_0x49dc30=_0x26eec7['getCellLocation'](_0x34ade4),_0x3fdedd=_0x34ade4['getAttribute'](_0x54f325)-0x1,_0x3b4037=_0x2b402a[_0x392e60],_0x451eff=_0x2b402a[_0x13b7a1];_0x3b4037<=_0x49dc30[_0x3735ca]&&_0x49dc30[_0x3735ca]+_0x3fdedd<=_0x451eff&&_0x379010['addRange'](_0x5d18aa);}}});});}function _0x5ebec7(_0x1175c0){const _0x3de059=Array['from'](_0x325112['getRanges']())['map'](_0x2cdc4c=>_0x5b36f3['fromRange'](_0x2cdc4c));_0x458c0d['model']['change'](_0x3ad138=>{const _0x2d81e0=_0x3ad138['batch'];_0x1175c0=_0x1175c0['filter'](_0x46c31b=>'$graveyard'!=_0x46c31b['root']['rootName']),_0x3ad138['setSelection'](_0x1175c0),_0x458c0d['commands']['get']('removeTableRow')['refresh'](),_0x458c0d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x458c0d['model']['enqueueChange'](()=>{_0x458c0d['model']['enqueueChange'](_0x2d81e0,_0x2d96a9=>{const _0x5041fe=_0x3de059['filter'](_0x18acdf=>'$graveyard'!=_0x18acdf['root']['rootName']);_0x5041fe['length']>0x0&&_0x2d96a9['setSelection'](_0x5041fe);for(const _0x4441e5 of _0x3de059)_0x4441e5['detach']();});});});}function _0x51d35b(_0x48546a){_0x458c0d['model']['change'](_0x31c6a3=>{const _0x319041=Array['from'](_0x325112['getRanges']())['map'](_0x4913e5=>_0x5b36f3['fromRange'](_0x4913e5)),_0x4f89c8=[];for(const _0xbe1241 of _0x48546a)for(const _0x235ae2 of _0xbe1241['getItems']({'shallow':!0x0}))_0x4f89c8['push'](_0x235ae2);for(const _0x33f799 of _0x4f89c8)'$graveyard'!=_0x33f799['root']['rootName']&&(_0x31c6a3['setSelection'](_0x31c6a3['createPositionAt'](_0x33f799,0x0)),_0x458c0d['commands']['get']('removeTableColumn')['refresh'](),_0x458c0d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3d11db=_0x319041['filter'](_0x518703=>'$graveyard'!=_0x518703['root']['rootName']);_0x3d11db['length']>0x0&&_0x31c6a3['setSelection'](_0x3d11db);for(const _0xc38a5c of _0x319041)_0xc38a5c['detach']();});}function _0x251d5c(_0x1e29f6,_0x54da5d){return _0x54da5d['every'](_0x2879be=>_0x1e29f6['some'](_0x4b2ebb=>_0x4b2ebb['end']['isEqual'](_0x2879be['start'])||_0x2879be['end']['isEqual'](_0x4b2ebb['start'])));}function _0x4964b3(_0x434618,_0x41a887){return!_0x434618['some'](_0x4e2a0b=>_0x41a887['some'](_0x582688=>_0x4e2a0b['isIntersecting'](_0x582688)))&&_0x434618['some'](_0x3490e8=>_0x41a887['some'](_0x3362d7=>_0x3490e8['end']['isTouching'](_0x3362d7['start'])));}_0x458c0d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f2ac2,_0x444182,_0x38d77e)=>{if(!_0x38d77e['options']['showSuggestionHighlights'])return;const _0x593fcd=_0x444182['item'];if(!_0x593fcd)return;const _0x2ec28a=_0x38d77e['mapper']['toViewElement'](_0x593fcd);function _0x4500dd(_0x6226c1){return Array['isArray'](_0x6226c1)?_0x6226c1:[_0x6226c1];}_0x2ec28a&&'tableCell'===_0x593fcd['name']&&_0x15fa23(_0x2ec28a,_0x38d77e['writer'],(_0x304f06,_0x4e7edc,_0x422879)=>_0x422879['addClass'](_0x4500dd(_0x4e7edc['classes']),_0x304f06),(_0x1babdc,_0x3d3e92,_0x555851)=>_0x555851['removeClass'](_0x4500dd(_0x3d3e92['classes']),_0x1babdc));},{'priority':'highest'}),_0x12fbb6['descriptionFactory']['registerDescriptionCallback'](_0x5d14a7=>{if('insertion'!=_0x5d14a7['type']&&'deletion'!=_0x5d14a7['type'])return;const _0x233d45=_0x5d14a7['getContainedElement']();if(null!=_0x233d45&&_0x233d45['is']('element','table')){if('insertion'==_0x5d14a7['type']){const _0x5deaef=_0x5d14a7['getItems']()['filter'](_0x1f8de8=>_0x1f8de8['is']('$textProxy'))['map'](_0x2c3d41=>_0x2c3d41['data']);if(_0x5deaef['length'])return{'type':'insertion','content':o(_0x38544a,'*Insert:*\x20%0',o(_0x38544a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5deaef['join']('\x20')+'\x22'))};}if('deletion'==_0x5d14a7['type']){const _0x1220db=_0x5d14a7['getItems']()['filter'](_0x3dbe31=>_0x3dbe31['is']('$textProxy'))['map'](_0x4a7aad=>_0x4a7aad['data']);if(_0x1220db['length'])return{'type':'deletion','content':o(_0x38544a,'*Remove:*\x20%0',o(_0x38544a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1220db['join']('\x20')+'\x22'))};}}}),_0x12fbb6['descriptionFactory']['registerDescriptionCallback'](_0xe274ec=>{if('tableRow'==_0xe274ec['subType']){const _0x540e43=_0xe274ec['getItems']()['filter'](_0x443f9b=>_0x443f9b['is']('$textProxy'))['map'](_0x53e2cb=>_0x53e2cb['data']),_0x5fc86a=this['_getSuggestionCoords'](_0xe274ec),_0xc1dc2f=_0x5fc86a['maxRow']-_0x5fc86a['minRow']+0x1;if('insertion'==_0xe274ec['type'])return _0x540e43['length']?{'type':'insertion','content':o(_0x38544a,'*Insert:*\x20%0',o(_0x38544a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc1dc2f,'\x22'+_0x540e43['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x38544a,'*Insert:*\x20%0',o(_0x38544a,'ELEMENT_TABLE_ROW',_0xc1dc2f))};if('deletion'==_0xe274ec['type'])return _0x540e43['length']?{'type':'deletion','content':o(_0x38544a,'*Remove:*\x20%0',o(_0x38544a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xc1dc2f,'\x22'+_0x540e43['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x38544a,'*Remove:*\x20%0',o(_0x38544a,'ELEMENT_TABLE_ROW',_0xc1dc2f))};}if('tableColumn'==_0xe274ec['subType']){const _0x4531ff=_0xe274ec['getItems']()['filter'](_0x5e95de=>_0x5e95de['is']('$textProxy'))['map'](_0x3311a6=>_0x3311a6['data']),_0x4d8e27=this['_getSuggestionCoords'](_0xe274ec),_0x4ae605=_0x4d8e27['maxColumn']-_0x4d8e27['minColumn']+0x1;if('insertion'==_0xe274ec['type'])return _0x4531ff['length']?{'type':'insertion','content':o(_0x38544a,'*Insert:*\x20%0',o(_0x38544a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ae605,'\x22'+_0x4531ff['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x38544a,'*Insert:*\x20%0',o(_0x38544a,'ELEMENT_TABLE_COLUMN',_0x4ae605))};if('deletion'==_0xe274ec['type'])return _0x4531ff['length']?{'type':'deletion','content':o(_0x38544a,'*Remove:*\x20%0',o(_0x38544a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4ae605,'\x22'+_0x4531ff['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x38544a,'*Remove:*\x20%0',o(_0x38544a,'ELEMENT_TABLE_COLUMN',_0x4ae605))};}}),_0x12fbb6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5ebec7),_0x12fbb6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5ebec7),_0x12fbb6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x51d35b),_0x12fbb6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x51d35b),_0x12fbb6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x251d5c),_0x12fbb6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x251d5c),_0x12fbb6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4964b3),_0x12fbb6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4964b3);}['_acceptFormatSuggestionCallbackFactory'](){const _0xfb226a=this['editor'],_0x1e4851=_0xfb226a['model']['document']['selection'];return(_0x20ce74,_0x1c731d)=>{_0xfb226a['model']['change'](_0x41cbe5=>{const {commandName:_0x4d0ee7,commandParams:_0x57ff05}=_0x1c731d;let _0x409bbc=_0x20ce74[0x0]['end']['nodeBefore'];_0x57ff05&&_0x57ff05[0x0]&&!0x1===_0x57ff05[0x0]['forceValue']&&(_0x409bbc=_0x20ce74[0x0]['start']['nodeAfter']);const _0x32f30c=_0x41cbe5['createRangeIn'](_0x409bbc);if('$graveyard'==_0x32f30c['root']['rootName'])return;const _0x4f2035=Array['from'](_0x1e4851['getRanges']())['map'](_0x3cba67=>_0x5b36f3['fromRange'](_0x3cba67));_0x41cbe5['setSelection'](_0x32f30c),_0xfb226a['commands']['get'](_0x4d0ee7)['refresh'](),_0x57ff05['push']({'forceDefaultExecution':!0x0}),_0xfb226a['execute'](_0x4d0ee7,..._0x57ff05);const _0x40e355=_0x4f2035['filter'](_0x20ee2c=>'$graveyard'!=_0x20ee2c['root']['rootName']);_0x40e355['length']>0x0&&_0x41cbe5['setSelection'](_0x40e355);for(const _0x1eb832 of _0x4f2035)_0x1eb832['detach']();});};}['_getCoordsForCells'](_0x25ca6f){const _0x267c8c=this['editor']['plugins']['get']('TableUtils');let _0x7dab0b=Number['MAX_SAFE_INTEGER'],_0x5de67e=Number['MIN_SAFE_INTEGER'],_0x24e7cd=Number['MAX_SAFE_INTEGER'],_0x47ab7e=Number['MIN_SAFE_INTEGER'];for(const _0x299ade of _0x25ca6f){if('$graveyard'==_0x299ade['root']['rootName'])continue;const {row:_0x51f300,column:_0x3fb1bf}=_0x267c8c['getCellLocation'](_0x299ade),_0x2847a3=_0x299ade['hasAttribute']('rowspan')?_0x299ade['getAttribute']('rowspan')-0x1:0x0,_0x564b4d=_0x299ade['hasAttribute']('colspan')?_0x299ade['getAttribute']('colspan')-0x1:0x0;_0x7dab0b=_0x51f300<_0x7dab0b?_0x51f300:_0x7dab0b,_0x5de67e=_0x51f300+_0x2847a3>_0x5de67e?_0x51f300+_0x2847a3:_0x5de67e,_0x24e7cd=_0x3fb1bf<_0x24e7cd?_0x3fb1bf:_0x24e7cd,_0x47ab7e=_0x3fb1bf+_0x564b4d>_0x47ab7e?_0x3fb1bf+_0x564b4d:_0x47ab7e;}return{'minRow':_0x7dab0b,'maxRow':_0x5de67e,'minColumn':_0x24e7cd,'maxColumn':_0x47ab7e};}['_setupColumnsRowsFixing'](){const _0x3f0dbd=this['editor'],_0x120384=_0x3f0dbd['plugins']['get']('TrackChangesEditing'),_0x1b772b=_0x3f0dbd['plugins']['get']('TableUtils');_0x3f0dbd['model']['document']['on']('change:data',()=>{const _0x4f461a=Array['from'](_0x3f0dbd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35dcb5,data:_0x2381a3}of _0x4f461a){const {group:_0x31aa7c,id:_0xfb54d8,subType:_0x1107a7}=_0x120384['_splitMarkerName'](_0x35dcb5);if('suggestion'!=_0x31aa7c)continue;if(null!=_0x2381a3['oldRange'])continue;const _0x2ac1c4=_0x120384['getSuggestion'](_0xfb54d8);this['_tablePostFixingSubtypes']['includes'](_0x1107a7)&&this['_tableSuggestions']['add'](_0x2ac1c4);}},{'priority':'low'});const _0x177160=(_0x5ed70c,_0x137d6b)=>{let _0x352354=!0x1;const _0x1b9c52=_0x137d6b['createRangeOn'](_0x5ed70c),_0x342041=_0x5ed70c['findAncestor']('table'),_0x25ded8=_0x1b772b['getCellLocation'](_0x5ed70c);for(const _0x54dd5e of this['_tableSuggestions']){const _0x29fbfe=_0x54dd5e['subType'],_0x139eba=_0x29fbfe['startsWith']('tablePaste'),_0x1ecdcd=_0x29fbfe['substr'](_0x139eba?0xa:0x5),_0x1de64e=_0x1ecdcd['toLowerCase'](),_0x3d430d=_0x1de64e['substr'](0x0,0x3)+'span',_0x377452='min'+_0x1ecdcd,_0x53566e='max'+_0x1ecdcd;if(!_0x54dd5e['isInContent'])continue;if(_0x342041!=_0x54dd5e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x54dd5e['isIntersectingWithRange'](_0x1b9c52))continue;const _0x15de2=_0x5ed70c['hasAttribute'](_0x3d430d)?_0x5ed70c['getAttribute'](_0x3d430d)-0x1:0x0,_0x3318cc=this['_getSuggestionCoords'](_0x54dd5e),_0x58a3c6=_0x3318cc[_0x377452],_0x5582ee=_0x3318cc[_0x53566e];_0x58a3c6<=_0x25ded8[_0x1de64e]&&_0x25ded8[_0x1de64e]+_0x15de2<=_0x5582ee&&(_0x54dd5e['addRange'](_0x1b9c52),_0x352354=!0x0);}return _0x352354;};_0x3f0dbd['model']['document']['registerPostFixer'](_0x55d273=>{let _0x56a418=!0x1;for(const _0x2cce5b of _0x3f0dbd['model']['document']['differ']['getChanges']())if('insert'==_0x2cce5b['type']){if('tableRow'==_0x2cce5b['name']){for(const _0x24293c of _0x2cce5b['position']['nodeAfter']['getChildren']())_0x56a418=_0x56a418||_0x177160(_0x24293c,_0x55d273);}else'tableCell'==_0x2cce5b['name']&&(_0x56a418=_0x56a418||_0x177160(_0x2cce5b['position']['nodeAfter'],_0x55d273));}return _0x56a418;});}['_getSuggestionCoords'](_0x51538f){return this['_getCoordsForCells'](_0x51538f['getRanges']()['map'](_0x1e3a06=>_0x1e3a06['start']['nodeAfter']));}}function be(_0x32fe93){return Array['from'](new Set(_0x32fe93)['values']());}class vt extends _0x2aa107{static get['requires'](){return[It];}['afterInit'](){const _0x28652b=this['editor'],_0x22e896=_0x28652b['model']['document']['selection'],_0x5e65d3=_0x28652b['locale'];if(!_0x28652b['plugins']['has']('TableEditing'))return;const _0x177e61=_0x28652b['plugins']['get']('TrackChangesEditing'),_0x121600=_0x28652b['plugins']['get']('TableUtils'),_0x1a8778=_0x28652b['plugins']['get'](It);_0x1a8778['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x177e61['enableCommand']('mergeTableCells',()=>{const _0x5f5479=_0x121600['getSelectionAffectedTableCells'](_0x28652b['model']['document']['selection']);_0x28652b['model']['change'](()=>{_0x177e61['markMultiRangeBlockFormat'](_0x5f5479,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x28652b['commands']['get']('mergeTableCells')['on']('execute',(_0x5aa6a5,_0x3cba6e)=>{_0x28652b['commands']['get']('trackChanges')['value']&&(_0x3cba6e['length']>0x0&&_0x3cba6e[_0x3cba6e['length']-0x1]&&_0x3cba6e[_0x3cba6e['length']-0x1]['forceDefaultExecution']||_0x177e61['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5aa6a5['stop']());},{'priority':'highest'});for(const _0x595be9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5663ec=_0x28652b['commands']['get'](_0x595be9);_0x177e61['enableCommand'](_0x595be9,()=>{const _0x1601a3=_0x28652b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d46fc=>_0x2d46fc['is']('element','tableCell')),_0x2f496e=_0x5663ec['value'];_0x28652b['model']['change'](()=>{_0x177e61['markMultiRangeBlockFormat']([_0x1601a3,_0x2f496e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xeb920c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x505936=_0x28652b['commands']['get'](_0xeb920c);_0x177e61['enableCommand'](_0xeb920c,()=>{const _0x32e962=_0x121600['getSelectionAffectedTableCells'](_0x28652b['model']['document']['selection'])[0x0],_0x5066d7=_0x32e962['findAncestor']('table'),{column:_0x18e916,row:_0x550316}=_0x121600['getCellLocation'](_0x32e962);let _0x4f38c2=[];if('horizontally'==_0x505936['direction']){const _0x2ec4cd=_0x121600['createTableWalker'](_0x5066d7,{'startRow':_0x550316,'endRow':_0x550316,'includeAllSlots':!0x0});_0x4f38c2=Array['from'](_0x2ec4cd)['map'](_0x10478c=>_0x10478c['cell']);}else{const _0x1d9b85=_0x121600['createTableWalker'](_0x5066d7,{'column':_0x18e916,'includeAllSlots':!0x0});_0x4f38c2=Array['from'](_0x1d9b85)['map'](_0x57b7fe=>_0x57b7fe['cell']);}_0x28652b['model']['change'](_0x412be0=>{_0x177e61['markBlockFormat'](_0x412be0['createRangeOn'](_0x32e962),{'commandName':_0xeb920c,'commandParams':[]},_0x4f38c2,_0xeb920c);});});}_0x177e61['descriptionFactory']['registerDescriptionCallback'](_0x5ccf2c=>{if('formatBlock'!=_0x5ccf2c['type']&&'formatInline'!=_0x5ccf2c['type'])return;const {data:_0xeefba4}=_0x5ccf2c;return _0xeefba4&&'mergeTableCells'==_0xeefba4['commandName']?{'type':'format','content':o(_0x5e65d3,'*Merge\x20cells*')}:void 0x0;}),_0x177e61['descriptionFactory']['registerDescriptionCallback'](_0x59d094=>{if('formatBlock'!=_0x59d094['type']&&'formatInline'!=_0x59d094['type'])return;const {data:_0x152d93}=_0x59d094;return _0x152d93?'splitTableCellVertically'==_0x152d93['commandName']?{'type':'format','content':o(_0x5e65d3,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x152d93['commandName']?{'type':'format','content':o(_0x5e65d3,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x40e836=_0x1a8778['_acceptFormatSuggestionCallbackFactory']();for(const _0x1bf885 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x177e61['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1bf885,'accept',_0x40e836);for(const _0x36f60e of['splitTableCellVertically','splitTableCellHorizontally'])_0x177e61['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36f60e,'accept',_0x40e836);_0x177e61['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x36813a=>{_0x28652b['model']['change'](_0x4f9185=>{const _0x43b2bf=Array['from'](_0x22e896['getRanges']())['map'](_0x39a8a7=>_0x5b36f3['fromRange'](_0x39a8a7));_0x4f9185['setSelection'](_0x36813a),_0x28652b['commands']['get']('mergeTableCells')['refresh'](),_0x28652b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x10c411=_0x43b2bf['filter'](_0x377ea1=>'$graveyard'!=_0x377ea1['root']['rootName']);_0x10c411['length']>0x0&&_0x4f9185['setSelection'](_0x10c411);for(const _0x5ea680 of _0x43b2bf)_0x5ea680['detach']();});});for(const _0x496417 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x31f459=_0x28652b['commands']['get'](_0x496417);_0x31f459['on']('set:isEnabled',(_0x47c30a,_0x18e840,_0x39d69f)=>{if(_0x39d69f){const _0x49a8c8=_0x28652b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x16df7b=>_0x16df7b['is']('element','tableCell'));this['_areMergableCells'](_0x31f459['value'],_0x49a8c8)||(_0x47c30a['return']=!0x1,_0x47c30a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x18a65a=this['editor']['commands']['get']('mergeTableCells'),_0x3f2e07=this['editor']['plugins']['get']('TableUtils');if(!_0x18a65a['isEnabled'])return!0x1;const _0x4ba860=_0x3f2e07['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4ce137 of _0x4ba860)for(const _0x2eb7c8 of _0x4ba860)if(_0x4ce137!=_0x2eb7c8&&!this['_areMergableCells'](_0x4ce137,_0x2eb7c8))return!0x1;return!0x0;}['_areMergableCells'](_0x391409,_0x574104){const _0xec9382=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6fefef=this['editor']['model']['createRangeOn'](_0x391409),_0x15fce9=this['editor']['model']['createRangeOn'](_0x574104),_0x597c25=new Set(),_0xb9d8a1=new Set();for(const _0x35ae70 of _0xec9382['getSuggestions']())if(('insertion'==_0x35ae70['type']||'deletion'==_0x35ae70['type']||'mergeTableCells'==_0x35ae70['subType'])&&_0x35ae70['isInContent']){for(const _0x268593 of _0x35ae70['getRanges']())_0x268593['containsRange'](_0x6fefef,!0x0)&&_0x597c25['add'](_0x35ae70['type']+':'+_0x35ae70['author']['id']),_0x268593['containsRange'](_0x15fce9,!0x0)&&_0xb9d8a1['add'](_0x35ae70['type']+':'+_0x35ae70['author']['id']);}if(_0x597c25['size']!=_0xb9d8a1['size'])return!0x1;for(const _0x12404c of _0x597c25)if(!_0xb9d8a1['has'](_0x12404c))return!0x1;return!0x0;}}class Ct extends _0x2aa107{static get['requires'](){return[It];}['afterInit'](){const _0x8ffaec=this['editor'];if(!_0x8ffaec['plugins']['has']('TableEditing'))return;const _0x5c724a=_0x8ffaec['locale'],_0x22dabf=_0x8ffaec['plugins']['get']('TrackChangesEditing');_0x22dabf['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x22dabf['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x22dabf['registerBlockAttribute']('headingRows'),_0x22dabf['registerBlockAttribute']('headingColumns'),_0x22dabf['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5c724a,'FORMAT_HEADER_ROW')),_0x22dabf['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5c724a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5e8100=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4512f7=this['editor']['plugins']['get']('TableUtils'),_0x1e927d=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x63d981({showActiveMarker:_0x5d669f=!0x0,setDataAttribute:_0x2c579d=!0x0}={}){return(_0x4ff035,_0x540f23,_0x54c6ab)=>{const {type:_0x135672,id:_0x5045e4}=_0x5e8100['_splitMarkerName'](_0x540f23['markerName']),_0x4fd48d=_0x5e8100['getSuggestion'](_0x5045e4),_0x1df2a5=_0x4fd48d['data'];if('formatBlock'!=_0x4fd48d['type']||!_0x1df2a5||'setTableColumnHeader'!=_0x1df2a5['commandName'])return;if(_0x540f23['item'])return void _0x4ff035['stop']();if(!_0x54c6ab['consumable']['consume'](_0x540f23['markerRange'],_0x4ff035['name']))return;const _0x243ca7=_0x540f23['markerRange']['start']['nodeAfter'],_0x2ee965=_0x540f23['markerRange']['end']['nodeBefore'],_0x114f2d=_0x243ca7['parent']['parent'],{column:_0x23c94c}=_0x4512f7['getCellLocation'](_0x243ca7),{column:_0x5eba74}=_0x4512f7['getCellLocation'](_0x2ee965);for(let _0x4efa74=_0x23c94c;_0x4efa74<=_0x5eba74;_0x4efa74++){const _0x44a65a=_0x4512f7['createTableWalker'](_0x114f2d,{'column':_0x4efa74,'includeAllSlots':!0x1});for(const _0x2a1916 of _0x44a65a){const _0x49f899=_0x2a1916['cell'],_0x40a23c=_0x54c6ab['mapper']['toViewElement'](_0x49f899);_0x54c6ab['writer']['addClass']('ck-suggestion-marker-'+_0x135672,_0x40a23c),_0x2c579d&&_0x54c6ab['writer']['setAttribute']('data-suggestion',_0x5045e4,_0x40a23c),_0x54c6ab['mapper']['bindElementToMarker'](_0x40a23c,_0x540f23['markerName']),_0x5d669f&&(_0x5e8100['activeMarkers']['includes'](_0x540f23['markerName'])?_0x54c6ab['writer']['addClass']('ck-suggestion-marker--active',_0x40a23c):_0x54c6ab['writer']['removeClass']('ck-suggestion-marker--active',_0x40a23c));}}};}_0x5e8100['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1e927d),_0x5e8100['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1e927d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x63d981(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a3767,_0x4ff71c,_0x54e3e7)=>{_0x54e3e7['options']['showSuggestionHighlights']&&_0x63d981({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2a3767,_0x4ff71c,_0x54e3e7);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x42e81c,_0x22f4ad,_0x245aa8)=>{const {type:_0x2621f5,id:_0x1137b1}=_0x5e8100['_splitMarkerName'](_0x22f4ad['markerName']),_0x22e6b7=_0x5e8100['getSuggestion'](_0x1137b1),_0x413b47=_0x22e6b7['data'];if('formatBlock'!=_0x22e6b7['type']||!_0x413b47||'setTableColumnHeader'!=_0x413b47['commandName'])return;const _0x47f918=_0x245aa8['mapper']['markerNameToElements'](_0x22f4ad['markerName']);if(_0x47f918){for(const _0x450439 of _0x47f918)_0x245aa8['writer']['removeClass']('ck-suggestion-marker-'+_0x2621f5,_0x450439),_0x245aa8['writer']['removeClass']('ck-suggestion-marker--active',_0x450439),_0x245aa8['writer']['removeAttribute']('data-suggestion',_0x450439),_0x245aa8['mapper']['unbindElementFromMarkerName'](_0x450439,_0x22f4ad['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x509677=this['editor'],_0x5b9920=_0x509677['locale'];function _0x29da4b(_0x5df07e){return{'type':'format','content':o(_0x5b9920,'*Format:*\x20%0',_0x5df07e)};}_0x509677['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57d5cd=>{if('formatBlock'!=_0x57d5cd['type'])return;const {data:_0x88c920}=_0x57d5cd;if(_0x88c920){if('setTableRowHeader'==_0x88c920['commandName']){const _0x3520df=_0x88c920['commandParams'][0x0]['forceValue'];return _0x29da4b(o(_0x5b9920,_0x3520df?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x88c920['commandName']){const _0x54c0b2=_0x88c920['commandParams'][0x0]['forceValue'];return _0x29da4b(o(_0x5b9920,_0x54c0b2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x280087=>[_0x280087,null]));class _t extends _0x2aa107{static get['requires'](){return[It];}['afterInit'](){const _0x439fb4=this['editor'];if(!_0x439fb4['plugins']['has']('TableClipboard'))return;const _0x50b779=_0x439fb4['plugins']['get']('TrackChangesEditing'),_0x219807=_0x439fb4['plugins']['get']('TableUtils'),_0x123adf=_0x439fb4['plugins']['get'](It),_0x159e36=_0x439fb4['plugins']['get']('TableClipboard');_0x123adf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x439fb4['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x439fb4['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2e380a=null;_0x439fb4['model']['on']('insertContent',(_0x52192c,_0x49df45)=>{const [_0x14e64b,_0x5b1e31]=_0x49df45,_0x6d4e47=_0x49df45[_0x49df45['length']-0x1];_0x6d4e47&&_0x6d4e47['forceDefaultExecution']||_0x50b779['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x346dd8,_0x3e9ce7,_0x17203c,_0x403b4d,_0xd9565d){if(_0x3e9ce7&&!_0x3e9ce7['is']('documentSelection'))return!0x1;const _0x1d25cb=_0xd9565d['getTableIfOnlyTableInContent'](_0x346dd8,_0x17203c);if(!_0x1d25cb||!Re(_0x1d25cb,void 0x0,_0x403b4d))return!0x1;const _0x31de96=_0x403b4d['getSelectionAffectedTableCells'](_0x17203c['document']['selection']);if(!_0x31de96['length'])return!0x1;const _0x205bb5=_0x31de96[0x0]['findAncestor']('table'),_0x226a91=_0x403b4d['getRowIndexes'](_0x31de96),_0x48da00=_0x403b4d['getColumnIndexes'](_0x31de96),_0x3dca8d={'startRow':_0x226a91['first'],'endRow':_0x226a91['last'],'startColumn':_0x48da00['first'],'endColumn':_0x48da00['last']};return 0x1==_0x31de96['length']&&(_0x3dca8d['endRow']+=_0x403b4d['getRows'](_0x1d25cb)-0x1,_0x3dca8d['endColumn']+=_0x403b4d['getColumns'](_0x1d25cb)-0x1),Re(_0x205bb5,_0x3dca8d,_0x403b4d);}(_0x14e64b,_0x5b1e31,_0x439fb4['model'],_0x219807,_0x159e36)&&(_0x52192c['stop'](),_0x2e380a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x439fb4['model']['change'](()=>{_0x439fb4['model']['insertContent'](_0x49df45[0x0],_0x49df45[0x1],_0x49df45[0x2],{'forceDefaultExecution':!0x0});const _0x13027c=_0x1a2714(),{rowInsertionRanges:_0x4ab275,columnInsertionRanges:_0x4aff4a,insertionRanges:_0x217eda,deletionRanges:_0x7a0d50,cells:_0x291289}=_0x2e380a;_0x4ab275['length']&&_0x50b779['markMultiRangeInsertion'](_0x4ab275,'tablePasteRow',{'tablePasteChainId':_0x13027c}),_0x4aff4a['length']&&_0x50b779['markMultiRangeInsertion'](_0x4aff4a,'tablePasteColumn',{'tablePasteChainId':_0x13027c}),_0x217eda['length']&&(_0x50b779['markMultiRangeInsertion'](_0x217eda,'tablePaste',{'tablePasteChainId':_0x13027c,'skipNestingCheck':!0x0}),_0x217eda['forEach'](_0x2fa94b=>_0x2fa94b['detach']?.())),_0x7a0d50['length']&&(_0x50b779['markMultiRangeDeletion'](_0x7a0d50,'tablePaste',{'tablePasteChainId':_0x13027c,'skipNestingCheck':!0x0}),_0x7a0d50['forEach'](_0x1bad2f=>_0x1bad2f['detach']?.()));const _0x302c67=_0x50b779['markMultiRangeBlockFormat'](_0x291289['map'](({element:_0x5db6ac})=>_0x5db6ac),{'formatGroupId':_0x1a2714()},[],'tablePasteCell',{'tablePasteChainId':_0x13027c});if(_0x302c67){const _0x1deb4b=_0x302c67['getMarkers'](),_0x245099=[];for(const {element:_0x35676a,attributes:_0x10b2bb}of _0x291289){if(!_0x10b2bb)continue;const _0xa15e07=_0x439fb4['model']['createRangeOn'](_0x35676a),_0xe21932=_0x1deb4b['find'](_0x10354a=>_0x10354a['getRange']()['isEqual'](_0xa15e07));_0xe21932&&_0x245099['push']([_0xe21932['name'],_0x10b2bb]);}_0x245099['length']&&_0x302c67['setAttribute']('markerAttributes',Object['fromEntries'](_0x245099));}_0x2e380a=null;}));},{'priority':_0x32b979['high']+0xa}),_0x439fb4['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x421bce,_0x432a88)=>{const [_0x14df8f,_0x103dd7,,_0x4744c2]=_0x432a88;if(!_0x2e380a)return;_0x421bce['stop']();const _0x834266=_0x14df8f['cell'],_0x5a5476=_0x103dd7,_0x2bb59c=ke(_0x834266),_0xc07536=ke(_0x5a5476);_0x421bce['return']=_0x834266;let _0x14d78a=null,_0x55152f=null;if(_0xc07536||_0x2bb59c){if(_0x2bb59c&&!_0xc07536){_0x4744c2['remove'](_0x834266['getChild'](0x0));for(const _0x506a51 of Array['from'](_0x5a5476['getChildren']()))_0x4744c2['insert'](_0x506a51,_0x834266,'end');const _0x512401=_0x2e380a['rowInsertionIndexes']['includes'](_0x14df8f['row']),_0x1a696e=_0x2e380a['columnInsertionIndexes']['includes'](_0x14df8f['column']);_0x512401||_0x1a696e||(_0x14d78a=_0x5b36f3['fromRange'](_0x4744c2['createRangeIn'](_0x834266)));}else _0xc07536&&!_0x2bb59c&&(_0x55152f=_0x4744c2['createRangeIn'](_0x834266));}else{const _0x116cfe=_0x4744c2['createElement']('tableCellSuggestion'),_0x55685b=_0x4744c2['createElement']('tableCellSuggestion');_0x4744c2['wrap'](_0x4744c2['createRangeIn'](_0x834266),_0x55685b),_0x4744c2['insert'](_0x116cfe,_0x834266,0x0);for(const _0x52294a of Array['from'](_0x5a5476['getChildren']()))_0x4744c2['insert'](_0x52294a,_0x116cfe,'end');_0x14d78a=_0x5b36f3['fromRange'](_0x4744c2['createRangeOn'](_0x116cfe)),_0x55152f=_0x5b36f3['fromRange'](_0x4744c2['createRangeOn'](_0x55685b));}const _0x308860=Array['from'](_0x5a5476['getAttributes']())['filter'](([_0x52ae06])=>Pe['includes'](_0x52ae06));_0x2e380a['cells']['push']({'element':_0x834266,'attributes':_0x308860['length']?Object['fromEntries'](_0x308860):null}),_0x14d78a&&_0x2e380a['insertionRanges']['push'](_0x14d78a),_0x55152f&&_0x2e380a['deletionRanges']['push'](_0x55152f);},{'priority':'high'}),_0x219807['on']('insertColumns',(_0x47f56c,_0x14ecdc)=>{const [_0xe805c8,_0x56aa88={}]=_0x14ecdc;if(!_0x2e380a)return;const _0x1b4d6d=_0x56aa88['at']||0x0,_0x4546df=_0x56aa88['columns']||0x1;_0x2e380a['columnInsertionIndexes']=new Array(_0x4546df)['fill'](_0x1b4d6d)['map']((_0x5ab3d8,_0x1279b0)=>_0x5ab3d8+_0x1279b0);for(const {cell:_0x47e7c2}of _0x219807['createTableWalker'](_0xe805c8,{'startColumn':_0x1b4d6d,'endColumn':_0x1b4d6d+_0x4546df-0x1}))_0x2e380a['columnInsertionRanges']['push'](_0x439fb4['model']['createRangeOn'](_0x47e7c2));},{'priority':'low'}),_0x219807['on']('insertRows',(_0x5eb2fb,_0x4266f9)=>{const [_0xc65bf2,_0x292bbb={}]=_0x4266f9;if(!_0x2e380a)return;const _0x4f17b9=_0x292bbb['at']||0x0,_0x3462dd=_0x292bbb['rows']||0x1;_0x2e380a['rowInsertionIndexes']=new Array(_0x3462dd)['fill'](_0x4f17b9)['map']((_0x5d977d,_0x3e6ba2)=>_0x5d977d+_0x3e6ba2);for(const {cell:_0x591951}of _0x219807['createTableWalker'](_0xc65bf2,{'startRow':_0x4f17b9,'endRow':_0x4f17b9+_0x3462dd-0x1}))_0x2e380a['rowInsertionRanges']['push'](_0x439fb4['model']['createRangeOn'](_0x591951));},{'priority':'low'}),_0x50b779['descriptionFactory']['registerDescriptionCallback'](_0x3ac84f=>{if(_0x3ac84f['subType']&&_0x3ac84f['subType']['startsWith']('tablePaste'))return _0x3ac84f['previous']?{}:{'type':'insertion','content':o(_0x439fb4['locale'],'*Replace\x20table\x20cells*')};});const _0x472597=()=>!0x1;for(const _0x412782 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x50b779['_suggestionFactory']['registerCustomCallback']('insertion',_0x412782,'join',_0x472597),_0x50b779['_suggestionFactory']['registerCustomCallback']('deletion',_0x412782,'join',_0x472597),_0x50b779['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x412782,'join',_0x472597);_0x50b779['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x472597),_0x50b779['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2e6156,_0x108e96,_0x13fa06)=>{const _0x5bcee9=_0x2e6156['map'](_0x569aa7=>_0x569aa7['getContainedElement']())['filter'](_0x436f3a=>_0x436f3a),_0x1816cd=new Map(_0x5bcee9['map'](_0x22bfcf=>[_0x22bfcf,null]));if(_0x2e380a){for(const {element:_0x469fdd,attributes:_0xafb96a}of _0x2e380a['cells'])_0xafb96a&&_0x1816cd['set'](_0x469fdd,_0xafb96a);}else{if(_0x13fa06&&_0x13fa06['markerAttributes'])for(const [_0x653f50,_0x36ca55]of Object['entries'](_0x13fa06['markerAttributes'])){const _0x42dec7=_0x439fb4['model']['markers']['get'](_0x653f50),_0x423d23=_0x42dec7?_0x42dec7['getRange']()['getContainedElement']():null;_0x423d23&&_0x1816cd['set'](_0x423d23,_0x36ca55);}}_0x439fb4['model']['change'](_0x49aff8=>{for(const [_0x419a83,_0x9e5eb8]of _0x1816cd)_0x49aff8['setAttributes']({...we,..._0x9e5eb8},_0x419a83);});});const _0x47fe39=(_0x5ece76,_0x5bf917)=>{_0x50b779['_suggestionFactory']['registerCustomCallback'](_0x5ece76,'tablePaste',_0x5bf917,(_0x57ed60,_0x180adf,_0x2d1564)=>{_0x439fb4['model']['change'](_0x150600=>{const _0x48c199=[];for(const _0x143c71 of _0x57ed60){const _0x439854=_0x143c71['start']['nodeAfter'];_0x439854['is']('element','tableCellSuggestion')&&_0x48c199['push'](_0x439854);}_0x50b779['_suggestionFactory']['getSuggestionCallback'](_0x5ece76,null,_0x5bf917)(_0x57ed60,_0x180adf,_0x2d1564);for(const _0x1e3239 of _0x48c199)'$graveyard'!=_0x1e3239['root']['rootName']&&_0x150600['unwrap'](_0x1e3239);});});};_0x47fe39('insertion','accept'),_0x47fe39('insertion','discard'),_0x47fe39('deletion','accept'),_0x47fe39('deletion','discard'),_0x50b779['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5b213a=>{const _0x375c64=_0x5b213a['map'](_0x20d1d0=>_0x20d1d0['getContainedElement']()),_0x1f9d92=_0x375c64[0x0]['findAncestor']('table'),{minRow:_0x3ee499,maxRow:_0x37660a}=_0x123adf['_getCoordsForCells'](_0x375c64);_0x219807['removeRows'](_0x1f9d92,{'at':_0x3ee499,'rows':_0x37660a-_0x3ee499+0x1});}),_0x50b779['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2f1ead=>{const _0xa2ec2=_0x2f1ead['map'](_0x427fba=>_0x427fba['getContainedElement']()),_0x35f872=_0xa2ec2[0x0]['findAncestor']('table'),{minColumn:_0x25217d,maxColumn:_0x351c10}=_0x123adf['_getCoordsForCells'](_0xa2ec2);_0x219807['removeColumns'](_0x35f872,{'at':_0x25217d,'columns':_0x351c10-_0x25217d+0x1});});const _0x35444d=(_0x89c018,_0x131f64)=>{if(!_0x131f64['subType']||!_0x131f64['subType']['startsWith']('tablePaste'))return;const _0x31d0db=_0x131f64['attributes']['tablePasteChainId'],_0x17856d=_0x50b779['getSuggestions']()['filter'](_0x3ffd7c=>_0x3ffd7c['isInContent']&&_0x3ffd7c['attributes']&&_0x3ffd7c['attributes']['tablePasteChainId']==_0x31d0db);_0x17856d['length']&&_0x131f64['getAllAdjacentSuggestions']()['length']!=_0x17856d['length']&&_0x17856d['reduce']((_0x27d146,_0xc1c1e4)=>(_0x27d146['next']=_0xc1c1e4,_0xc1c1e4['previous']=_0x27d146,_0xc1c1e4));};function _0xa4eb06(_0xd57d52,_0x4f4c4b=!0x0){const {id:_0x2f0de4}=_0x50b779['_splitMarkerName'](_0xd57d52['markerName']),_0x588c3f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4e1dad=_0x50b779['activeMarkers']['includes'](_0xd57d52['markerName']);return _0x4e1dad&&_0x588c3f['push']('ck-suggestion-marker--active'),{'classes':_0x588c3f,'attributes':{'data-suggestion':_0x2f0de4},'priority':_0x4e1dad&&_0x4f4c4b?0xbc2:0xbb8};}_0x50b779['on']('suggestionLoaded',_0x35444d,{'priority':'high'}),_0x50b779['on']('suggestionUnloaded',_0x35444d,{'priority':'high'}),_0x439fb4['model']['document']['registerPostFixer'](()=>{let _0x592a35=!0x1;const _0x20171c=Array['from'](_0x439fb4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xdf1a69,data:_0xab9869}of _0x20171c){const {group:_0x3bec0a,type:_0x49f121,id:_0x3dcdee}=_0x50b779['_splitMarkerName'](_0xdf1a69);if('suggestion'!=_0x3bec0a||'deletion'!=_0x49f121||_0xab9869['oldRange'])continue;if(!_0x50b779['hasSuggestion'](_0x3dcdee))continue;const _0x378d6f=_0x50b779['getSuggestion'](_0x3dcdee)['getRanges'](),_0x21a627=_0x439fb4['plugins']['get']('Users')['me'];for(const _0x37ac59 of _0x50b779['getSuggestions']()){if(!_0x37ac59['isInContent']||_0x37ac59['author']!=_0x21a627)continue;if('formatBlock'!=_0x37ac59['type']||'tablePasteCell'!=_0x37ac59['subType'])continue;if(_0x37ac59['getRanges']()['every'](_0x51853c=>_0x378d6f['some'](_0x1e5d52=>_0x1e5d52['containsRange'](_0x51853c,!0x0)))){for(const _0xf566eb of _0x37ac59['getAllAdjacentSuggestions']())_0xf566eb['isInContent']&&(_0xf566eb['discard'](),_0x592a35=!0x0);}}}return _0x592a35;}),_0x439fb4['model']['document']['registerPostFixer'](_0x383b72=>{const _0x12abc3=_0x439fb4['commands']['get']('redo');if(!_0x12abc3||!_0x12abc3['_createdBatches']['has'](_0x383b72['batch']))return!0x1;let _0x5cf240=!0x1;const _0x103d05=_0x439fb4['plugins']['get']('Users')['me'],_0x235d9a=_0x439fb4['model']['document']['differ']['getChanges'](),_0x2f5097=Array['from'](_0x439fb4['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3dcf6f,data:_0x13c7aa})=>{const {group:_0x4cf12b,subType:_0x7d617b,authorId:_0x17c380}=_0x50b779['_splitMarkerName'](_0x3dcf6f);return'suggestion'==_0x4cf12b&&'tablePaste'==_0x7d617b&&_0x17c380==_0x103d05['id']&&!_0x13c7aa['oldRange'];});for(const _0x52317c of _0x235d9a){if('insert'!=_0x52317c['type']||'tableCellSuggestion'!=_0x52317c['name']||0x1!=_0x52317c['length'])continue;const _0x3e0868=_0x383b72['createRange'](_0x52317c['position'],_0x52317c['position']['getShiftedBy'](0x1));if(!_0x2f5097['find'](({data:_0x21562e})=>_0x21562e['newRange']['isEqual'](_0x3e0868))){for(const {name:_0x38c0e7,data:_0x537be3}of _0x2f5097)if(_0x3e0868['containsRange'](_0x537be3['newRange'])){_0x383b72['updateMarker'](_0x38c0e7,{'range':_0x3e0868}),_0x5cf240=!0x0;break;}}}return _0x5cf240;}),_0x439fb4['model']['document']['registerPostFixer'](_0x5ea2af=>{let _0x540b9e=!0x1;const _0x129385=_0x439fb4['plugins']['get']('Users')['me'],_0x414705=_0x50b779['getSuggestions']()['filter'](_0x39e7f6=>_0x39e7f6['isInContent']&&_0x39e7f6['author']==_0x129385),_0x5564bc=new Set(),_0x3951a8=new Set();for(const _0x102ce8 of _0x414705)if('tablePaste'==_0x102ce8['subType'])for(const _0x16c9bd of _0x102ce8['getMarkers']()){const _0x278e2b=_0x16c9bd['getRange']()['getContainedElement']();if(_0x278e2b){if(_0x278e2b['is']('element','tableCellSuggestion')&&ke(_0x278e2b)){_0x102ce8['removeMarker'](_0x16c9bd['name']),_0x5564bc['add'](_0x278e2b),_0x540b9e=!0x0;const _0x4875dc=_0x278e2b['nextSibling'],_0x3b6347=_0x278e2b['previousSibling'],_0x5996ac=_0x4875dc&&_0x4875dc['is']('element','tableCellSuggestion'),_0xa75977=_0x3b6347&&_0x3b6347['is']('element','tableCellSuggestion');_0x5996ac&&!_0x5564bc['has'](_0x4875dc)&&_0x3951a8['add'](_0x4875dc),_0xa75977&&!_0x5564bc['has'](_0x3b6347)&&_0x3951a8['add'](_0x3b6347);}else _0x278e2b['is']('element','paragraph')&&_0x278e2b['isEmpty']&&(_0x102ce8['removeMarker'](_0x16c9bd['name']),_0x540b9e=!0x0);}}else{if('tablePasteCell'==_0x102ce8['subType']){if(!_0x102ce8['attributes']||!_0x102ce8['attributes']['tablePasteChainId'])continue;const _0x43b197=_0x102ce8['attributes']['markerAttributes'];if(_0x43b197&&Object['keys'](_0x43b197)['length'])continue;const _0x54a77a=_0x102ce8['attributes']['tablePasteChainId'];let _0x175b14=!0x0,_0x3c35ed=!0x0;for(const _0x2842b8 of _0x414705)if(_0x2842b8['subType']&&_0x2842b8['subType']['startsWith']('tablePaste')){if(!_0x2842b8['attributes']['tablePasteChainId']){_0x3c35ed=!0x1;break;}if(_0x2842b8['id']!=_0x102ce8['id']&&_0x2842b8['attributes']['tablePasteChainId']==_0x54a77a){_0x175b14=!0x1;break;}}_0x3c35ed&&_0x175b14&&(_0x102ce8['removeMarkers'](),_0x540b9e=!0x0);}}for(const _0x5167e8 of _0x5564bc)_0x5ea2af['remove'](_0x5167e8);for(const _0x516291 of _0x3951a8)_0x5ea2af['unwrap'](_0x516291);return _0x540b9e;}),_0x439fb4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5d6678,_0x310aca)=>_0xa4eb06(_0x5d6678),'converterPriority':'high'}),_0x439fb4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x34523e,_0x31cead)=>_0x31cead['options']['showSuggestionHighlights']?_0xa4eb06(_0x34523e,!0x1):null,'converterPriority':'high'});const _0x17f0c2=_0x439fb4['editing']['view'];this['listenTo'](_0x17f0c2['document'],'clipboardOutput',(_0x227495,_0x4e1015)=>{const _0x580e90=[];for(const _0x7d6575 of _0x17f0c2['createRangeIn'](_0x4e1015['content'])['getItems']())_0x7d6575['is']('element','suggestion-td')&&_0x580e90['push'](_0x7d6575);_0x17f0c2['change'](_0x465915=>{for(const _0x317502 of _0x580e90)_0x465915['move'](_0x465915['createRangeIn'](_0x317502),_0x465915['createPositionBefore'](_0x317502)),_0x465915['remove'](_0x317502);});});}}function ke(_0x464d16){if(_0x464d16['isEmpty'])return!0x0;const _0x588e0b=_0x464d16['getChild'](0x0);return _0x588e0b['is']('element','paragraph')&&_0x588e0b['isEmpty'];}function Re(_0x295ffd,_0x1d8581={},_0x241b24){for(const {isAnchor:_0x48ecda,cellHeight:_0x11bfbc,cellWidth:_0xb989be}of _0x241b24['createTableWalker'](_0x295ffd,{'includeAllSlots':!0x0,..._0x1d8581}))if(!_0x48ecda||0x1!=_0x11bfbc||0x1!=_0xb989be)return!0x1;return!0x0;}class Nt extends _0x2aa107{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4d7f3e=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d7f3e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4d7f3e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4d7f3e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d7f3e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4d7f3e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4d7f3e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x10df2c,_0x5aaba6){const _0x5e250c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x524613=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x41a3bc=_0x5aaba6['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x14e975=_0x524613['getColumnGroupElement'](_0x41a3bc);let _0x9a450b=_0x14e975?_0x524613['getTableColumnsWidths'](_0x14e975):null,_0x5478a9=_0x41a3bc['getAttribute']('tableWidth')||null;const _0x19dbcd=_0x5aaba6['tableWidth']||_0x5478a9,_0x2f0b1e=_0x5aaba6['columnWidths']||_0x9a450b,_0x46a21f=this['editor']['plugins']['get']('Users')['me'];for(const _0x2b34c6 of _0x5e250c['getSuggestions']()){const _0x5ee732=_0x2b34c6['getContainedElement']();if('resizeTable'===_0x2b34c6['subType']&&_0x5ee732===_0x41a3bc){_0x2b34c6['author']!==_0x46a21f&&_0x2b34c6['discard']();const _0x464f67=_0x2b34c6['data']['commandParams'];_0x5478a9=_0x464f67[0x0]['tableWidth'],_0x9a450b=_0x464f67[0x0]['columnWidths'];break;}}_0x10df2c({'table':_0x41a3bc,'tableWidth':_0x19dbcd,'columnWidths':_0x2f0b1e}),_0x5e250c['markBlockFormat'](_0x41a3bc,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5478a9,'columnWidths':_0x9a450b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x999fdb){if('formatBlock'!=_0x999fdb['type']&&'formatInline'!=_0x999fdb['type'])return;const {data:_0x44f682}=_0x999fdb;if(_0x44f682&&'resizeTable'===_0x44f682['formatGroupId']){const _0x48b6d7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x48b6d7)};}}}class Dt extends _0x2aa107{['afterInit'](){const _0x55335b=this['editor'];_0x55335b['plugins']['has']('Template')&&_0x55335b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2aa107{['afterInit'](){const _0x528516=this['editor'];if(!_0x528516['commands']['get']('insertTableOfContents'))return;_0x528516['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x10642b=_0x528516['plugins']['get']('TrackChangesEditing'),_0x558af2=_0x528516['locale'];_0x10642b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x39458a=>o(_0x558af2,'ELEMENT_TABLE_OF_CONTENTS',_0x39458a));}}class $t extends _0x2aa107{['afterInit'](){const _0x143716=this['editor'];if(!_0x143716['plugins']['has']('Title'))return;const _0x490b16=_0x143716['plugins']['get']('TrackChangesEditing');_0x490b16['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x143716['locale'],'ELEMENT_TITLE')),_0x143716['model']['document']['registerPostFixer'](_0x5db428=>{let _0x1c3377=!0x1;const _0x474cab=Array['from'](_0x143716['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5d2764,data:_0x44942b}of _0x474cab){const {group:_0x1a97cd}=_0x490b16['_splitMarkerName'](_0x5d2764);if('suggestion'!==_0x1a97cd||!_0x44942b['newRange'])continue;const _0x1ea614=_0x44942b['newRange'],_0x2e5343=_0x1ea614['end']['nodeBefore'];if(!_0x2e5343||!_0x2e5343['is']('element','title-content'))continue;if(!_0x1ea614['start']['isTouching'](_0x1ea614['end']))continue;const _0xe2bc50=_0x143716['model']['schema']['getNearestSelectionRange'](_0x1ea614['end'],'forward');if(_0xe2bc50&&_0xe2bc50['isCollapsed']){const _0x25bb6c=_0x5db428['createRange'](_0x1ea614['start'],_0xe2bc50['start']);_0x25bb6c['isEqual'](_0x1ea614)||(_0x5db428['updateMarker'](_0x5d2764,{'range':_0x25bb6c}),_0x1c3377=!0x0);}_0x1c3377||(_0x5db428['removeMarker'](_0x5d2764),_0x1c3377=!0x0);}return _0x1c3377;});}}class Bt extends _0x2aa107{['afterInit'](){const _0x4318d7=this['editor'],_0x6e1bda=_0x4318d7['plugins']['get']('TrackChangesEditing');_0x4318d7['plugins']['has']('UndoEditing')&&(_0x6e1bda['enableCommand']('undo'),_0x6e1bda['enableCommand']('redo'));}}class xt extends _0x2aa107{static get['requires'](){return[It];}['afterInit'](){const _0x2f781c=this['editor'];if(!_0x2f781c['plugins']['has']('TableCaptionEditing'))return;_0x2f781c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x2aa107{['tableProperties'];['tableCellProperties'];constructor(_0x3e25ac){super(_0x3e25ac),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 _0x372ea2=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2a8492 of this['tableProperties'])_0x372ea2['enableCommand'](_0x2a8492,(_0x361a37,_0x2c48f7)=>{const _0x5935c8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2a8492,[_0x5935c8],this['tableProperties'],'tableProperties',_0x361a37,_0x2c48f7);});_0x372ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x372ea2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x372ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2c5e92,_0x64cde7)=>this['handleDiscardAction'](this['tableProperties'],_0x2c5e92,_0x64cde7)),_0x372ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x51f26b of this['tableCellProperties'])_0x372ea2['enableCommand'](_0x51f26b,(_0x31daf9,_0x48dfcc)=>{const _0x3b46c0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x51f26b,_0x3b46c0,this['tableCellProperties'],'tableCellProperties',_0x31daf9,_0x48dfcc);});_0x372ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x372ea2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x372ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5497bb,_0x1991d5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5497bb,_0x1991d5)),_0x372ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x372ea2['descriptionFactory']['registerDescriptionCallback'](_0x54df10=>this['handleSuggestionDescription'](_0x54df10));}['_handlePropertyChange'](_0x55b55a,_0x3b12ed,_0x6171cf,_0x2413e0,_0x364b24,_0x149981){const _0x21be81=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x149981['batch'],()=>{for(const _0x1c77fd of _0x3b12ed){if(this['_getSuggestion'](_0x1c77fd,_0x2413e0))_0x364b24(_0x149981);else{const _0x4327a3={};for(const _0x204eb6 of _0x6171cf){const _0x432c04=_0x1c77fd['getAttribute'](_0x204eb6);void 0x0!==_0x432c04&&(_0x4327a3[_0x204eb6]=_0x432c04);}_0x364b24(_0x149981),_0x21be81['markBlockFormat'](_0x1c77fd,{'commandParams':[_0x4327a3]},[],_0x2413e0);}}});}['handleDiscardAction'](_0x24bd3c,_0x507610,_0x4b1766){const _0x2550fd=_0x507610[0x0]['start']['nodeAfter'],_0x3ab788=_0x4b1766['commandParams'][0x0];this['editor']['model']['change'](_0x1d8697=>{for(const _0x330382 of _0x24bd3c)void 0x0!==_0x3ab788[_0x330382]?_0x1d8697['setAttribute'](_0x330382,_0x3ab788[_0x330382],_0x2550fd):_0x1d8697['removeAttribute'](_0x330382,_0x2550fd);});}['handleSuggestionDescription'](_0x534bef){if(_0x534bef['data'])switch(_0x534bef['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'](_0x213563,_0x102067){const _0x1b159b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xc803e0 of _0x1b159b['getSuggestions']({'skipNotAttached':!0x0})){const _0x2278fa=_0xc803e0['getContainedElement']();if(_0xc803e0['subType']===_0x102067&&_0x2278fa===_0x213563)return _0xc803e0;}return null;}}const m='$elementName';class p extends _0x2aa107{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3544d0,_0x510953,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x344c23){function _0x2bbe4d(_0x956e01){return _0x956e01['map'](_0x404043=>String['fromCharCode'](_0x404043))['join']('');}super(_0x344c23),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xb80226,_0x496dc7,_0x2c03c1,_0x2e37cc)=>{this['_model']['change'](()=>{for(const _0x106f77 of[..._0x2e37cc,..._0x2c03c1])this['_model']['markers']['has'](_0x106f77)&&_0x344c23['editing']['reconvertMarker'](_0x106f77);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x344c23['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(),_0x344c23['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x344c23['config']['get']('trackChanges.trackFormatChanges'),_0x344c23['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x344c23['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x344c23,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2bbe4d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2bbe4d([0x34,0x30,0x34,0x38,0x31,0x36,0x31,0x34]);}['init'](){const _0x2cd8c2=this['editor'],_0x450e1f=(_0x1446f9,_0x324dcd)=>{if('attribute'!=_0x1446f9)return'ck-suggestion-marker-'+_0x1446f9;const _0x309826=_0x324dcd['split']('|')[0x0];return this['_isBlockAttribute'](_0x309826)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2cd8c2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2bf0ca=>{const {id:_0x420fa4,type:_0x148820,subType:_0x4c660f}=this['_splitMarkerName'](_0x2bf0ca['markerName']),_0x562664=['ck-suggestion-marker',_0x450e1f(_0x148820,_0x4c660f)];let _0x16b259=0xbb8;return this['activeMarkers']['includes'](_0x2bf0ca['markerName'])&&(_0x562664['push']('ck-suggestion-marker--active'),_0x16b259=0xbc2),'deletion'==_0x148820&&(_0x16b259+=0x5),{'classes':_0x562664,'attributes':{'data-suggestion':_0x420fa4},'priority':_0x16b259};}}),_0x2cd8c2['conversion']['for']('dataDowncast')['add'](_0x263efb=>{_0x263efb['on']('addMarker:suggestion',(_0x26a871,_0x14cfcb,_0x4e95b1)=>{if(!_0x4e95b1['options']['showSuggestionHighlights'])return;const _0x32631b=_0x14cfcb['item'];if(!_0x32631b)return;const _0x378250=_0x4e95b1['mapper']['toViewElement'](_0x32631b);_0x2cd8c2['model']['schema']['isObject'](_0x32631b)&&_0x378250&&!_0x378250['getCustomProperty']('widget')&&_0x378250['is']('containerElement')&&_0x312517(_0x378250,_0x4e95b1['writer']);},{'priority':'high'});}),_0x2cd8c2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x467928,_0xc10ea8)=>{if(!_0xc10ea8['options']['showSuggestionHighlights'])return null;const {type:_0x34c458,subType:_0x4a5e59}=this['_splitMarkerName'](_0x467928['markerName']);return{'classes':['ck-suggestion-marker',_0x450e1f(_0x34c458,_0x4a5e59)],'priority':0xbb8};}});const _0x535f27=({showActiveMarkers:_0x5ca454=!0x0,isAttributeSuggestion:_0x5a645b=!0x1}={})=>(_0x21ed62,_0x1d8274,_0x293efd)=>{if(!_0x1d8274['item'])return;const {id:_0x5852ef}=this['_splitMarkerName'](_0x1d8274['markerName']);if(_0x5a645b){const _0x436855=this['_suggestions']['get'](_0x5852ef),_0x5969dd=this['_getAttributeKey'](_0x436855);if(!this['_isBlockAttribute'](_0x5969dd))return;}if(_0x1d8274['item']['is']('selection'))return void _0x293efd['consumable']['consume'](_0x1d8274['item'],_0x21ed62['name']);const _0x193a00=_0x293efd['mapper']['toViewElement'](_0x1d8274['item']);if(_0x1d8274['item']['is']('element')&&_0x2cd8c2['model']['schema']['isBlock'](_0x1d8274['item'])&&!_0x193a00['getCustomProperty']('addHighlight')){_0x293efd['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x193a00),_0x293efd['writer']['setAttribute']('data-suggestion',_0x5852ef,_0x193a00),_0x293efd['mapper']['bindElementToMarker'](_0x193a00,_0x1d8274['markerName']),_0x5ca454&&(this['activeMarkers']['includes'](_0x1d8274['markerName'])?_0x293efd['writer']['addClass']('ck-suggestion-marker--active',_0x193a00):_0x293efd['writer']['removeClass']('ck-suggestion-marker--active',_0x193a00));for(const _0x3edb90 of _0x2cd8c2['model']['createRangeIn'](_0x1d8274['item'])['getItems']())_0x293efd['consumable']['consume'](_0x3edb90,_0x21ed62['name']);_0x293efd['consumable']['consume'](_0x1d8274['item'],_0x21ed62['name']);}};_0x2cd8c2['conversion']['for']('dataDowncast')['add'](_0x1aa0aa=>{_0x1aa0aa['on']('addMarker:suggestion:formatBlock',(_0x4aa8a3,_0x2fbd12,_0x181396)=>{_0x181396['options']['showSuggestionHighlights']&&_0x535f27({'showActiveMarkers':!0x1})(_0x4aa8a3,_0x2fbd12,_0x181396);},{'priority':'highest'});}),_0x2cd8c2['conversion']['for']('dataDowncast')['add'](_0x1b450c=>{_0x1b450c['on']('addMarker:suggestion:attribute',(_0x422228,_0x9357ee,_0x2e96c7)=>{_0x2e96c7['options']['showSuggestionHighlights']&&_0x535f27({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x422228,_0x9357ee,_0x2e96c7);},{'priority':'highest'});}),_0x2cd8c2['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x279f48,_0x12d16f)=>_0x12d16f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x279f48['substr'](0xb)}}),_0x2cd8c2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3f6734,{writer:_0x4fb692})=>{let _0x44c487='suggestion:'+_0x3f6734['getAttribute']('suggestion-type')+':'+_0x3f6734['getAttribute']('id');return _0x3f6734['getAttribute']('marker-count')&&(_0x44c487+=':'+_0x3f6734['getAttribute']('marker-count')),_0x4fb692['createElement']('$marker',{'data-name':_0x44c487});}}),_0x2cd8c2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2cd8c2['conversion']['for']('editingDowncast')['add'](_0x333368=>{_0x333368['on']('addMarker:suggestion:formatBlock',_0x535f27(),{'priority':'high'});}),_0x2cd8c2['conversion']['for']('editingDowncast')['add'](_0x5db90f=>{_0x5db90f['on']('addMarker:suggestion:attribute',_0x535f27({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2cd8c2['conversion']['for']('editingDowncast')['add'](_0x13c764=>{_0x13c764['on']('removeMarker:suggestion:formatBlock',(_0x5ba369,_0xe9c816,_0x3d7b7f)=>{const _0x4b1759=_0x3d7b7f['mapper']['markerNameToElements'](_0xe9c816['markerName']);if(_0x4b1759){for(const _0x314254 of _0x4b1759)_0x314254['getCustomProperty']('addHighlight')||(_0x3d7b7f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x314254),_0x3d7b7f['writer']['removeAttribute']('data-suggestion',_0x314254),_0x3d7b7f['mapper']['unbindElementFromMarkerName'](_0x314254,_0xe9c816['markerName']));}},{'priority':'high'});}),_0x2cd8c2['conversion']['for']('editingDowncast')['add'](_0x5f07b6=>{_0x5f07b6['on']('removeMarker:suggestion:attribute',(_0x3c32a6,_0x57dfb4,_0x31d867)=>{const _0x23bcba=_0x31d867['mapper']['markerNameToElements'](_0x57dfb4['markerName']);if(!_0x23bcba)return;const {id:_0x5d6dba}=this['_splitMarkerName'](_0x57dfb4['markerName']),_0x5dc336=this['_suggestions']['get'](_0x5d6dba),_0x439c47=this['_getAttributeKey'](_0x5dc336);if(this['_isBlockAttribute'](_0x439c47)){for(const _0x10255b of _0x23bcba)_0x10255b['getCustomProperty']('addHighlight')||(_0x31d867['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x10255b),_0x31d867['writer']['removeAttribute']('data-suggestion',_0x10255b),_0x31d867['mapper']['unbindElementFromMarkerName'](_0x10255b,_0x57dfb4['markerName']));}},{'priority':'high'});}),_0x2cd8c2['model']['document']['registerPostFixer'](_0x510573=>{let _0x20c734=!0x1;const _0x540e5a=Array['from'](_0x2cd8c2['model']['document']['differ']['getChangedMarkers']()),_0x3ecb61=new Set();for(const {name:_0x1e1cd7,data:_0x98d781}of _0x540e5a){const {group:_0x452062,type:_0xd1d133,subType:_0xd265d5,id:_0x4fd04d}=this['_splitMarkerName'](_0x1e1cd7);if('suggestion'!==_0x452062)continue;const _0xd4bbdf=this['_suggestions']['get'](_0x4fd04d);if(null!=_0x98d781['newRange']){'formatInline'==_0xd1d133&&(_0x20c734=_0x20c734||Ut(_0x98d781['newRange'],_0x1e1cd7,_0x510573,_0x2cd8c2['model']['schema']));const _0x4c6124='attribute'==_0xd1d133&&this['_isBlockAttribute'](_0xd265d5['split']('|')[0x0]);if(_0x98d781['newRange']['isCollapsed']||'$graveyard'==_0x98d781['newRange']['root']['rootName']||'formatBlock'==_0xd1d133&&!Ft(_0x98d781['newRange'])||_0x4c6124&&!Ft(_0x98d781['newRange'])||'deletion'==_0xd1d133&&!(!Vt(_0x179490=_0x98d781['newRange'])&&!function(_0x4acb8c){return _0x4acb8c['start']['parent']==_0x4acb8c['end']['nodeBefore']&&_0x4acb8c['start']['isAtEnd'];}(_0x179490)))_0x510573['removeMarker'](_0x1e1cd7),_0x20c734=!0x0;else{if(!_0xd4bbdf||!_0xd4bbdf['isInContent'])continue;if(_0x98d781['newRange']&&_0x98d781['oldRange']&&_0x98d781['newRange']['isEqual'](_0x98d781['oldRange']))continue;_0x3ecb61['add'](_0xd4bbdf);}}}var _0x179490;return _0x3ecb61['size']>0x0&&(_0x20c734=!!this['_joinWithAdjacentSuggestions'](_0x3ecb61)||_0x20c734),_0x20c734;}),_0x2cd8c2['model']['document']['registerPostFixer'](_0x4f37c0=>{let _0x587ad4=!0x1;for(const _0x2d4019 of _0x2cd8c2['model']['document']['differ']['getChanges']())if('insert'==_0x2d4019['type'])for(const _0x115460 of this['_suggestions']['values']()){if(_0x115460['isMultiRange']||!_0x115460['isInContent'])continue;const _0x10ade0='formatBlock'==_0x115460['type'],_0x313cd9=this['_getAttributeKey'](_0x115460),_0x207e0b=_0x313cd9&&this['_isBlockAttribute'](_0x313cd9);if(!_0x10ade0&&!_0x207e0b)continue;const _0x45cc61=_0x115460['getFirstRange']();if(_0x45cc61['start']['parent']!=_0x45cc61['end']['parent']&&!_0x45cc61['end']['isAtEnd']){const _0x5c0d14=_0x2cd8c2['model']['createPositionAt'](_0x45cc61['start']['nodeAfter'],'end'),_0x6fa35e=_0x2cd8c2['model']['createRange'](_0x45cc61['start'],_0x5c0d14);_0x4f37c0['updateMarker'](_0x115460['getFirstMarker'](),{'range':_0x6fa35e}),_0x587ad4=!0x0;}}return _0x587ad4;}),_0x2cd8c2['model']['document']['registerPostFixer'](_0x5ded20=>this['_processAttributeChanges'](_0x5ded20)),_0x2cd8c2['model']['document']['registerPostFixer'](_0x1c8123=>!_0x1c8123['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1c8123)),_0x2cd8c2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2cd8c2['model']['document']['on']('change:data',(_0x5602ed,_0x27e834)=>{if(!_0x27e834['isLocal']||_0x27e834['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x461bc1=_0x2cd8c2['model']['document']['differ']['getChanges']();if(0x0==_0x461bc1['length'])return;const _0x306ed3=[],_0x28106b=_0x461bc1['filter'](_0x504139=>'attribute'==_0x504139['type']),_0x43ea75=_0x461bc1['filter'](_0x3f54d2=>'insert'==_0x3f54d2['type']&&'$text'!=_0x3f54d2['name']);for(const _0x29454c of _0x28106b)this['_isRegisteredAttribute'](_0x29454c['attributeKey'])&&_0x306ed3['push']({'key':_0x29454c['attributeKey'],'newValue':_0x29454c['attributeNewValue'],'oldValue':_0x29454c['attributeOldValue'],'range':Pt(_0x29454c['range'],_0x2cd8c2['model'])});for(const _0x24c151 of _0x43ea75){if('rename'!=_0x24c151['action']&&'refresh'!=_0x24c151['action'])continue;const _0x45dd88=Lt(_0x24c151['position']['nodeAfter'],_0x2cd8c2['model']),_0x11ffed=_0x24c151['before'];'rename'==_0x24c151['action']&&_0x306ed3['push']({'key':m,'newValue':_0x24c151['name'],'oldValue':_0x11ffed['name'],'range':_0x45dd88});for(const [_0x58b811,_0xb0ab74]of _0x11ffed['attributes']){if(!this['_isRegisteredAttribute'](_0x58b811))continue;const _0x5d756c=_0x24c151['attributes']['get'](_0x58b811);_0xb0ab74!==_0x5d756c&&_0x306ed3['push']({'key':_0x58b811,'newValue':_0x5d756c,'oldValue':_0xb0ab74,'range':_0x45dd88});}for(const [_0x40cd70,_0x53991]of _0x24c151['attributes'])this['_isRegisteredAttribute'](_0x40cd70)&&(_0x11ffed['attributes']['has'](_0x40cd70)||_0x306ed3['push']({'key':_0x40cd70,'newValue':_0x53991,'oldValue':null,'range':_0x45dd88}));}0x0!=_0x306ed3['length']&&_0x2cd8c2['model']['enqueueChange'](_0x27e834,_0x5da1ce=>{const _0x4b808d=_0x1a2714();for(const {range:_0xa63f8f,key:_0x1fd862,oldValue:_0x301186,newValue:_0x1f6fd0}of _0x306ed3)this['markAttributeChange'](_0xa63f8f,_0x1fd862,_0x301186,_0x1f6fd0,{'groupId':_0x4b808d});this['_reduceExistingSuggestions'](_0x5da1ce,_0x306ed3);});},{'priority':'lowest'}),_0x2cd8c2['model']['markers']['on']('update:suggestion',(_0x55ba20,_0x42fba7,_0x2964cd)=>{if(null==_0x2964cd){const {id:_0x505ede}=this['_splitMarkerName'](_0x42fba7['name']),_0x1188a9=this['_suggestions']['get'](_0x505ede);_0x1188a9&&_0x1188a9['addMarkerName'](_0x42fba7['name']);}}),_0x2cd8c2['model']['document']['on']('change:data',()=>{const _0x55d2b8=Array['from'](_0x2cd8c2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1625b4=>'suggestion'===this['_splitMarkerName'](_0x1625b4['name'])['group']);if(0x0===_0x55d2b8['length'])return;_0x55d2b8['sort']((_0x1a291d,_0x324d91)=>{const _0x23dbf9=_0x1a291d['data']['oldRange'],_0x19fdc=_0x324d91['data']['oldRange'];return null===_0x23dbf9&&null===_0x19fdc?0x0:null===_0x23dbf9&&null!==_0x19fdc?-0x1:null!==_0x23dbf9&&null===_0x19fdc?0x1:_0x23dbf9['start']['isBefore'](_0x19fdc['start'])?-0x1:0x1;});const _0x4f2a04=new Set(),_0x4ce446=new Set();for(const {name:_0x4454e1,data:_0x31a207}of _0x55d2b8){const {id:_0x3ad637}=this['_splitMarkerName'](_0x4454e1);if(null===_0x31a207['oldRange']){const _0x4da15a=this['_handleNewSuggestionMarker'](_0x4454e1);_0x4ce446['add'](_0x4da15a);}else{const _0x36b4d4=this['_suggestions']['get'](_0x3ad637);null!==_0x31a207['newRange']||_0x36b4d4['isInContent']?(_0x4f2a04['add'](_0x36b4d4['head']),_0x4ce446['add'](_0x36b4d4)):this['_removeSuggestion'](_0x36b4d4);}}_0x4ce446['size']>0x0&&this['_refreshSuggestionsChain'](_0x4ce446);for(const _0x13c161 of _0x4f2a04)this['fire']('suggestionChanged',_0x13c161);}),_0x2cd8c2['model']['on']('applyOperation',(_0x40e007,_0x197dc9)=>{const _0x2bd2c3=_0x197dc9[0x0];if(!this['_suggestions']['size'])return;if(!_0x2bd2c3['isDocumentOperation'])return;if(_0x2bd2c3['batch']['isUndo']||!_0x2bd2c3['batch']['isLocal'])return;let _0x322e9f,_0x2eb66b;switch(_0x2bd2c3['type']){case'insert':_0x322e9f=_0x2cd8c2['model']['createPositionAt'](_0x2bd2c3['position']),_0x2eb66b=_0x322e9f['getShiftedBy'](_0x2bd2c3['howMany']);break;case'split':_0x322e9f=_0x2cd8c2['model']['createPositionAt'](_0x2bd2c3['splitPosition']),_0x2eb66b=_0x2cd8c2['model']['createPositionAt'](_0x2bd2c3['moveTargetPosition']);break;case'move':_0x322e9f=_0x2cd8c2['model']['createPositionAt'](_0x2bd2c3['targetPosition']),_0x2eb66b=_0x322e9f['getShiftedBy'](_0x2bd2c3['howMany']);break;default:return;}const _0x4e37c3=_0x2cd8c2['model']['createRange'](_0x322e9f,_0x2eb66b);_0x2cd8c2['model']['change'](()=>{for(const {suggestion:_0x57e01c,meta:_0x224ee8}of this['_findSuggestions'](_0x4e37c3)){if(_0x57e01c['isMultiRange'])continue;if('formatInline'==_0x57e01c['type'])continue;const _0x502d58=this['_getAttributeKey'](_0x57e01c);if(_0x502d58&&this['_isBlockAttribute'](_0x502d58)&&'split'!=_0x2bd2c3['type'])continue;const _0x46c6b3=_0x57e01c['data']&&_0x57e01c['data']['multipleBlocks'];('formatBlock'!=_0x57e01c['type']||'split'==_0x2bd2c3['type']&&!_0x46c6b3)&&(_0x224ee8['containsRangeInObject']||'insertion'==_0x57e01c['type']&&_0x224ee8['isOwn']||_0x57e01c['getFirstRange']()['containsRange'](_0x4e37c3)&&this['_breakSuggestionMarker'](_0x57e01c,_0x322e9f,_0x2eb66b));}});},{'priority':'lowest'}),_0x2cd8c2['model']['on']('deleteContent',(_0x543eda,_0x55e32c)=>{const _0x4bd7d4=_0x55e32c[0x0],_0x21089b=_0x55e32c[0x1];if(_0x21089b&&_0x21089b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4bd7d4['isCollapsed'])return;const _0x44eaca=_0x2cd8c2['model']['schema'],{start:_0x7f8230,end:_0x143037}=_0x4bd7d4['getFirstRange'](),_0x27af92=_0x7f8230['nodeAfter']&&_0x44eaca['isLimit'](_0x7f8230['nodeAfter'])?null:_0x44eaca['getNearestSelectionRange'](_0x7f8230,'forward'),_0x2d7711=_0x143037['nodeBefore']&&_0x44eaca['isLimit'](_0x143037['nodeBefore'])?null:_0x44eaca['getNearestSelectionRange'](_0x143037,'backward'),_0x29a345=_0x2cd8c2['model']['createRange'](_0x27af92?_0x27af92['start']:_0x7f8230,_0x2d7711?_0x2d7711['end']:_0x143037);_0x2cd8c2['model']['change'](_0xd3670f=>{this['markDeletion'](_0x29a345);const _0x30402f=_0x2cd8c2['model']['schema']['getNearestSelectionRange'](_0x29a345['start']);_0x4bd7d4['is']('documentSelection')?_0xd3670f['setSelection'](_0x30402f):_0x4bd7d4['setTo'](_0x30402f);}),_0x543eda['stop']();},{'priority':_0x32b979['normal']+0xa}),_0x2cd8c2['model']['on']('insertContent',(_0x526d0e,_0x437bda)=>{const _0x54c10f=_0x437bda[_0x437bda['length']-0x1];_0x54c10f&&_0x54c10f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2cd8c2['model']['change'](()=>{let _0x3073f6=_0x2cd8c2['model']['insertContent'](_0x437bda[0x0],_0x437bda[0x1],_0x437bda[0x2],{'forceDefaultExecution':!0x0});if(!_0x3073f6)return;_0x526d0e['return']=_0x3073f6['clone']();const _0xfc4a89=_0x3073f6['end']['nodeBefore'],_0x1d64c6=_0x2cd8c2['model']['schema'];_0xfc4a89&&_0x1d64c6['isBlock'](_0xfc4a89)&&!_0x1d64c6['isObject'](_0xfc4a89)&&(_0x3073f6=_0x2cd8c2['model']['createRange'](_0x3073f6['start'],_0x2cd8c2['model']['createPositionAt'](_0xfc4a89,'end'))),this['markInsertion'](_0x3073f6);}),_0x526d0e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x27fa6e=new x(_0x2cd8c2,this['_suggestions']);_0x2cd8c2['commands']['add']('acceptSuggestion',_0x27fa6e),this['enableCommand']('acceptSuggestion');const _0x4c727a=new R(_0x2cd8c2,this['_suggestions']);_0x2cd8c2['commands']['add']('discardSuggestion',_0x4c727a),this['enableCommand']('discardSuggestion'),_0x2cd8c2['commands']['add']('acceptAllSuggestions',new E(_0x2cd8c2,_0x27fa6e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2cd8c2['commands']['add']('discardAllSuggestions',new E(_0x2cd8c2,_0x4c727a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2cd8c2['commands']['add']('acceptSelectedSuggestions',new O(_0x2cd8c2,_0x27fa6e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2cd8c2['commands']['add']('discardSelectedSuggestions',new O(_0x2cd8c2,_0x4c727a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x37b964=_0x2cd8c2['plugins']['get']('CommentsRepository');this['listenTo'](_0x37b964,'addComment',(_0x1ddee8,{threadId:_0x56f0d4})=>{const _0x333535=this['_suggestions']['get'](_0x56f0d4);_0x333535&&_0x333535['commentThread']&&0x1===_0x333535['commentThread']['length']&&this['_updateSuggestionData'](_0x56f0d4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x37b964,'removeComment',(_0x3978a0,{threadId:_0x2876f2})=>{const _0x530250=this['_suggestions']['get'](_0x2876f2);_0x530250&&_0x530250['commentThread']&&!_0x530250['commentThread']['length']&&this['_updateSuggestionData'](_0x2876f2,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1ac8ed){if(this['_adapter'])throw new _0x58ef43('track-changes-adapter-already-set',this);this['_adapter']=_0x1ac8ed;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2c220e=!0x1,toJSON:_0x1c3149=!0x1}={}){const _0x3d966a=[];for(const _0x53cdcf of this['_suggestions']['values']())_0x2c220e&&!_0x53cdcf['isInContent']||_0x3d966a['push'](_0x53cdcf);return _0x1c3149?_0x3d966a['map'](_0x3126a9=>_0x3126a9['toJSON']()):_0x3d966a;}['getSuggestion'](_0x431574){const _0x89ea41=this['_suggestions']['get'](_0x431574);if(!_0x89ea41)throw new _0x58ef43('track-changes-suggestion-not-found',this);return _0x89ea41;}['hasSuggestion'](_0x3ef32c){return this['_suggestions']['has'](_0x3ef32c);}['addSuggestionData'](_0x22813e){const {authorId:_0x1d3d6d,id:_0x44d6f1,attributes:_0x476f89}=_0x22813e,[_0x3e8d6a,_0x4402f0]=_0x22813e['type']['split'](':'),_0x3e79a1=this['_suggestions']['get'](_0x44d6f1)||this['_createSuggestion'](_0x3e8d6a,_0x4402f0,_0x44d6f1,_0x1d3d6d,_0x476f89);if(this['_addThreadToSuggestion'](_0x3e79a1),this['_checkSuggestionCorrectness'](_0x3e79a1,_0x3e8d6a,_0x4402f0||null,_0x1d3d6d),_0x3e79a1['createdAt']=_0x22813e['createdAt'],_0x3e79a1['_isDataLoaded']=!0x0,_0x476f89&&_0x476f89['@external']){const _0x3e1e87=_0x476f89['@external'],_0x50009f=this['_getExternalAuthor'](_0x3e1e87['authorName']);_0x3e79a1['authoredAt']=_0x3e1e87['createdAt'],_0x3e79a1['author']=_0x50009f,_0x3e79a1['isExternal']=!0x0;}else _0x3e79a1['authoredAt']=_0x22813e['createdAt'];switch(_0x22813e['data']&&(_0x3e79a1['data']=_0x22813e['data']),_0x22813e['attributes']&&(_0x3e79a1['attributes']=_0x22813e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3e79a1['_saved']=!0x0),this['_suggestionState']['get'](_0x3e79a1)){case'notReady':this['_suggestionState']['set'](_0x3e79a1,'dataReady');break;case'markerReady':_0x3e79a1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3e79a1])),this['_refreshSuggestionsChain'](new Set([_0x3e79a1])),this['_suggestionState']['set'](_0x3e79a1,'ready'),this['fire']('suggestionLoaded',_0x3e79a1)):this['_suggestionState']['set'](_0x3e79a1,'removed');}return _0x3e79a1;}['acceptSuggestion'](_0xbf8bc6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43ea94 of _0xbf8bc6['getAllAdjacentSuggestions']())_0x43ea94['accept']();});});}['discardSuggestion'](_0x4fcc0c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x119538 of _0x4fcc0c['getAllAdjacentSuggestions']())_0x119538['discard']();});});}['enableCommand'](_0x439507,_0x35e11c){const _0x5cd71c=this['editor']['commands']['get'](_0x439507);if(!_0x5cd71c)throw new _0x58ef43('track-changes-command-not-found',this,{'commandName':_0x439507});if(this['_enabledCommands']['has'](_0x5cd71c))throw new _0x58ef43('track-changes-enable-command-twice',this,{'commandName':_0x439507});this['_enabledCommands']['add'](_0x5cd71c),_0x35e11c&&_0x5cd71c['on']('execute',(_0x4798d2,_0x2bc261)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2bc261['length']>0x0&&_0x2bc261[_0x2bc261['length']-0x1]&&_0x2bc261[_0x2bc261['length']-0x1]['forceDefaultExecution']?_0x2bc261['pop']():(_0x4798d2['return']=_0x35e11c((..._0x279ec5)=>_0x5cd71c['execute'](..._0x279ec5,{'forceDefaultExecution':!0x0}),..._0x2bc261),_0x4798d2['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x10f534){let _0x1f5e45,_0x2f109e;const _0x2c20ca=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1f5e45=_0x10f534();}catch(_0x1526e8){_0x2f109e=_0x1526e8;}return _0x2c20ca||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2f109e&&_0x58ef43['rethrowUnexpectedError'](_0x2f109e,this),_0x1f5e45;}['markInsertion'](_0x26979a,_0x374034=null,_0x46b92c={}){if(_0x26979a['isCollapsed'])return null;const _0x53f3fb=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x14a19a,meta:_0x246b46}of this['_findSuggestions'](_0x26979a,'insertion'))if(_0x246b46['isOwn']){if(!_0x246b46['isNextTo']){if(_0x246b46['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x14a19a,_0x46b92c))continue;return _0x14a19a;}if(qt(_0x14a19a,_0x46b92c))return _0x14a19a;this['_breakSuggestionMarker'](_0x14a19a,_0x26979a['start'],_0x26979a['end']);break;}if(_0x374034==_0x14a19a['subType']&&qt(_0x14a19a,_0x46b92c)){const _0x33a7f4=_0x14a19a['getFirstRange']();return _0x33a7f4['start']['isEqual'](_0x26979a['end'])?this['_setSuggestionRange'](_0x14a19a,this['_model']['createRange'](_0x26979a['start'],_0x33a7f4['end'])):this['_setSuggestionRange'](_0x14a19a,this['_model']['createRange'](_0x33a7f4['start'],_0x26979a['end'])),_0x14a19a;}}const _0x1ead63=_0x1a2714(),_0x2d75a8=_0x53f3fb['id'],_0x29e220=_0x374034?'insertion:'+_0x374034:'insertion',_0x243a20=this['_setSuggestionData']({'id':_0x1ead63,'type':_0x29e220,'createdAt':new Date(),'authorId':_0x2d75a8,'attributes':_0x46b92c});return this['_addSuggestionMarker'](_0x29e220,_0x1ead63,_0x2d75a8,_0x26979a),_0x243a20;}['markMultiRangeInsertion'](_0x86913b,_0x521ffc='multi',_0x2a06eb={}){const _0x70794f=this['editor']['plugins']['get']('Users')['me'],_0xceff65=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x521ffc,'join');for(const _0x4bddd4 of this['getSuggestions']())if(_0x4bddd4['author']['id']==_0x70794f['id']&&'insertion'==_0x4bddd4['type']&&_0x4bddd4['subType']==_0x521ffc&&qt(_0x4bddd4,_0x2a06eb)&&(_0xceff65(_0x4bddd4['getRanges'](),_0x86913b)||_0xceff65(_0x86913b,_0x4bddd4['getRanges']()))){for(const _0x521890 of _0x86913b)_0x4bddd4['addRange'](_0x521890);return _0x4bddd4;}for(const {suggestion:_0x47643c,meta:_0x503236}of this['_findSuggestions'](_0x86913b,'insertion')){if(!_0x503236['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x503236['containsRangeInObject'])continue;if(!qt(_0x47643c,_0x2a06eb))continue;let _0x47f7ad=!0x0;for(const _0x43d64f of _0x47643c['getRanges']())for(const _0x581381 of _0x86913b)if(!_0x43d64f['containsRange'](_0x581381)){_0x47f7ad=!0x1;break;}if(_0x47f7ad)return _0x47643c;}const _0x3c3ab6=_0x1a2714(),_0x353aa9=_0x70794f['id'],_0xc45e39='insertion:'+_0x521ffc,_0x401643=this['_setSuggestionData']({'id':_0x3c3ab6,'type':_0xc45e39,'createdAt':new Date(),'authorId':_0x353aa9,'attributes':_0x2a06eb});for(const _0x45255e of _0x86913b)this['_addSuggestionMarker'](_0xc45e39,_0x3c3ab6,_0x353aa9,_0x45255e,u['getMultiRangeId']());return _0x401643;}['markInlineFormat'](_0x2b250d,_0x5e3b53,_0x20cadb=null,_0x4b20d1={}){if(_0x20cadb=_0x20cadb||Gt(_0x5e3b53),_0x2b250d['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3083c9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x20cadb,'accept');return this['forceDefaultExecution'](()=>_0x3083c9([_0x2b250d],_0x5e3b53,_0x4b20d1)),null;}const _0x572935=this['editor']['plugins']['get']('Users')['me'],_0x2bcb49=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x359204,meta:_0x37caed}of this['_findSuggestions'](_0x2b250d,'insertion'))_0x37caed['isOwn']&&!_0x37caed['isInsideObject']&&_0x2bcb49['push'](..._0x359204['getRanges']());}const _0x1f624b=function(_0x12ae53,_0x7d2453){const _0x3c3277=[];for(const _0x5d439e of _0x7d2453){const _0x4b40e7=_0x12ae53['getIntersection'](_0x5d439e);_0x4b40e7&&_0x3c3277['push'](_0x4b40e7);}return _0x3c3277;}(_0x2b250d,_0x2bcb49),_0x3e45f9=function(_0x5482cc,_0x271d07){const _0x1aadfb=[_0x5482cc];for(const _0x1c3c5c of _0x271d07){let _0x1861fd=0x0;for(;_0x1861fd<_0x1aadfb['length'];){const _0x539867=_0x1aadfb[_0x1861fd]['getDifference'](_0x1c3c5c);_0x1aadfb['splice'](_0x1861fd,0x1,..._0x539867),_0x1861fd+=_0x539867['length'];}}return _0x1aadfb;}(_0x2b250d,_0x2bcb49);_0x1f624b['length']&&this['_model']['change'](()=>{for(const _0x5c7ae5 of _0x1f624b){const _0x578fb2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x20cadb,'accept');this['forceDefaultExecution'](()=>_0x578fb2([_0x5c7ae5],_0x5e3b53,_0x4b20d1));}});for(const _0x1a9317 of _0x3e45f9){let _0x1fc5a9=null,_0x4b3dd1=_0x1a9317['start'],_0x154ed8=_0x1a9317['end'];for(const {suggestion:_0x3241c4,meta:_0x52c2d6}of this['_findSuggestions'](_0x1a9317,'formatInline')){if(!_0x52c2d6['isOwn'])continue;if(_0x3241c4['subType']!=_0x20cadb)continue;if(!qt(_0x3241c4,_0x4b20d1))continue;const _0xa4ba0d=_0x3241c4['getFirstRange']();if(_0xa4ba0d['containsRange'](_0x1a9317,!0x0))return null;_0x4b3dd1=_0x4b3dd1['isBefore'](_0xa4ba0d['start'])?_0x4b3dd1:_0xa4ba0d['start'],_0x154ed8=_0x154ed8['isAfter'](_0xa4ba0d['end'])?_0x154ed8:_0xa4ba0d['end'],_0x1fc5a9?_0xa4ba0d['start']['isBefore'](_0x1fc5a9['getFirstRange']()['start'])?(_0x1fc5a9['removeMarkers'](),_0x1fc5a9=_0x3241c4):_0x3241c4['removeMarkers']():_0x1fc5a9=_0x3241c4;}const _0x8c7dec=this['_model']['createRange'](_0x4b3dd1,_0x154ed8);if(_0x1fc5a9)this['_setSuggestionRange'](_0x1fc5a9,_0x8c7dec);else{const _0xf3cd10=_0x1a2714(),_0x545b32=_0x572935['id'];this['_setSuggestionData']({'id':_0xf3cd10,'type':'formatInline:'+_0x20cadb,'data':_0x5e3b53,'createdAt':new Date(),'authorId':_0x545b32,'attributes':_0x4b20d1}),this['_addSuggestionMarker']('formatInline:'+_0x20cadb,_0xf3cd10,_0x545b32,_0x8c7dec);}}return null;}['markBlockFormat'](_0x2c8dab,_0x256766,_0x107a08=[],_0x57392b=null,_0x5d4439={}){_0x256766['formatGroupId']||(_0x256766['formatGroupId']=_0x256766['commandName']),_0x256766['multipleBlocks']=_0x2c8dab['is']('range'),_0x57392b=_0x57392b||Gt(_0x256766);const _0x48f43f=_0x107a08['map'](_0xbd4527=>Lt(_0xbd4527,this['_model'])),_0x1be2c7=_0x2c8dab['is']('range')?_0x2c8dab:Lt(_0x2c8dab,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3bdb4e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57392b,'accept');return this['forceDefaultExecution'](()=>_0x3bdb4e([_0x1be2c7],_0x256766,_0x5d4439)),null;}_0x48f43f['push'](_0x1be2c7);let _0x3adbc8=!0x0;for(const _0x4ea72d of _0x48f43f)if(!this['_rangeIsInLocalUserInsertion'](_0x4ea72d)){_0x3adbc8=!0x1;break;}if(_0x3adbc8&&'always'!==this['_trackFormatChanges']){const _0x377d03=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57392b,'accept');return this['forceDefaultExecution'](()=>_0x377d03([_0x1be2c7],_0x256766,_0x5d4439)),null;}let _0x56923a=null,_0x611582=_0x1be2c7['start'],_0x21e207=_0x1be2c7['end'];for(const {suggestion:_0x1670ad,meta:_0x341005}of this['_findSuggestions'](_0x1be2c7,'formatBlock')){if(!_0x341005['isOwn'])continue;if(_0x341005['isNextTo']||_0x341005['containsRangeInObject']||_0x341005['isInsideObject'])continue;if(_0x1670ad['data']['formatGroupId']!=_0x256766['formatGroupId'])continue;if(!qt(_0x1670ad,_0x5d4439))continue;const _0x124e82=_0x1670ad['getFirstRange']();if(_0x1670ad['subType']==_0x57392b){if(_0x124e82['containsRange'](_0x1be2c7,!0x0))return null;_0x611582=_0x611582['isBefore'](_0x124e82['start'])?_0x611582:_0x124e82['start'],_0x21e207=_0x21e207['isAfter'](_0x124e82['end'])?_0x21e207:_0x124e82['end'],_0x56923a?_0x124e82['start']['isBefore'](_0x56923a['getFirstRange']()['start'])?(_0x56923a['removeMarkers'](),_0x56923a=_0x1670ad):_0x1670ad['removeMarkers']():_0x56923a=_0x1670ad;}else{const _0x304b3e=_0x1be2c7['getIntersection'](_0x124e82);this['_cutOutSuggestionMarker'](_0x1670ad,_0x304b3e);}}const _0x109b2f=this['editor']['plugins']['get']('Users')['me'],_0x138d10=_0x1a2714(),_0x341c50=_0x109b2f['id'];if(_0x56923a)return this['_setSuggestionRange'](_0x56923a,this['_model']['createRange'](_0x611582,_0x21e207)),_0x56923a;{const _0x5565c8=this['_setSuggestionData']({'id':_0x138d10,'type':'formatBlock:'+_0x57392b,'data':_0x256766,'createdAt':new Date(),'authorId':_0x341c50,'attributes':_0x5d4439});return this['_addSuggestionMarker']('formatBlock:'+_0x57392b,_0x138d10,_0x341c50,this['_model']['createRange'](_0x611582,_0x21e207)),_0x5565c8;}}['markMultiRangeBlockFormat'](_0x1766ac,_0x2c4e8e,_0x66ca21=[],_0x4219b2=null,_0x10949f={}){_0x2c4e8e['formatGroupId']||(_0x2c4e8e['formatGroupId']=_0x2c4e8e['commandName']);const _0xd3cf9b=_0x1766ac[0x0];_0x2c4e8e['multipleBlocks']=_0xd3cf9b['is']('range'),_0x4219b2=_0x4219b2||Gt(_0x2c4e8e);const _0x1b8b82=_0x66ca21['map'](_0x4e3657=>Lt(_0x4e3657,this['_model'])),_0x939ad2=_0xd3cf9b['is']('range')?_0x1766ac:_0x1766ac['map'](_0x14315b=>Lt(_0x14315b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4fabbb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4219b2,'accept');return this['forceDefaultExecution'](()=>_0x4fabbb(_0x939ad2,_0x2c4e8e,_0x10949f)),null;}_0x1b8b82['push'](..._0x939ad2);let _0xe06f49=!0x0;for(const _0x152fc6 of _0x1b8b82)if(!this['_rangeIsInLocalUserInsertion'](_0x152fc6)){_0xe06f49=!0x1;break;}if(_0xe06f49&&'always'!==this['_trackFormatChanges']){const _0x4207e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4219b2,'accept');return this['forceDefaultExecution'](()=>_0x4207e7(_0x939ad2,_0x2c4e8e,_0x10949f)),null;}const _0x322baa=this['editor']['plugins']['get']('Users')['me'];for(const _0x2a69b1 of this['getSuggestions']()){if(_0x2a69b1['author']['id']!=_0x322baa['id'])continue;if('formatBlock'!=_0x2a69b1['type']||_0x2a69b1['data']['formatGroupId']!=_0x2c4e8e['formatGroupId'])continue;if(!qt(_0x2a69b1,_0x10949f))continue;const _0x5f51f1=_0x2a69b1['subType']==_0x4219b2;for(let _0x141f24=0x0;_0x141f24<_0x939ad2['length'];_0x141f24++){const _0x7930cc=_0x939ad2[_0x141f24];for(const _0x2f1d2d of _0x2a69b1['getMarkers']()){const _0x5e16e7=_0x2f1d2d['getRange']();if(_0x7930cc['isEqual'](_0x5e16e7)){_0x5f51f1?(_0x939ad2['splice'](_0x141f24,0x1),_0x141f24--):_0x2a69b1['removeMarker'](_0x2f1d2d['name']);break;}}}}if(0x0==_0x939ad2['length'])return null;const _0x43312d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4219b2,'join');for(const _0x16f49e of this['getSuggestions']())if(_0x16f49e['author']['id']==_0x322baa['id']&&'formatBlock'==_0x16f49e['type']&&_0x16f49e['data']['formatGroupId']==_0x2c4e8e['formatGroupId']&&_0x16f49e['subType']==_0x4219b2&&qt(_0x16f49e,_0x10949f)&&(_0x43312d(_0x16f49e['getRanges'](),_0x939ad2)||_0x43312d(_0x939ad2,_0x16f49e['getRanges']()))){for(const _0x3da3d5 of _0x939ad2)_0x16f49e['addRange'](_0x3da3d5);return _0x16f49e;}const _0x471240=_0x1a2714(),_0x2ac7c9=_0x322baa['id'],_0x3f96eb='formatBlock:'+_0x4219b2,_0x337382=this['_setSuggestionData']({'id':_0x471240,'type':_0x3f96eb,'data':_0x2c4e8e,'createdAt':new Date(),'authorId':_0x2ac7c9,'attributes':_0x10949f});for(const _0x84d077 of _0x939ad2)this['_addSuggestionMarker'](_0x3f96eb,_0x471240,_0x2ac7c9,_0x84d077,u['getMultiRangeId']());return _0x337382;}['markDeletion'](_0x3c4564,_0x18ce87=null,_0x1de78d={}){if(_0x3c4564['isCollapsed'])return null;const _0x707b1e=this['editor']['plugins']['get']('Users')['me'],_0x4b2165=new _0x5b36f3(_0x3c4564['start'],_0x3c4564['end']);for(const {suggestion:_0x35d5da,meta:_0x53f8aa}of this['_findSuggestions'](_0x4b2165,'insertion'))if(_0x53f8aa['isOwn']&&!_0x53f8aa['isNextTo']){if(_0x35d5da['isMultiRange']){const _0x521a95=_0x35d5da['getRanges']()['filter'](_0x50be82=>'$graveyard'!=_0x50be82['root']['rootName']);_0x521a95['every'](_0x412562=>_0x4b2165['containsRange'](_0x412562,!0x0))&&_0x35d5da['discard']();if(_0x521a95['some'](_0x5923e2=>_0x5923e2['containsRange'](_0x4b2165,!0x0))){const _0x144262=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x18ce87,'accept');return this['forceDefaultExecution'](()=>_0x144262([_0x4b2165],null,_0x1de78d)),null;}}else{const _0x28b358=_0x4b2165['getIntersection'](_0x35d5da['getFirstRange']());null!==_0x28b358&&_0x35d5da['_onDiscard']([_0x28b358],null,_0x1de78d);}}if(_0x4b2165['detach'](),_0x4b2165['isCollapsed']||'$graveyard'==_0x4b2165['root']['rootName'])return null;let _0x239467=null,_0x1d124f=_0x4b2165['start'],_0x31020f=_0x4b2165['end'];const _0x1b83f1=this['_findSuggestions'](_0x4b2165,'deletion');for(const {suggestion:_0x478d76,meta:_0x25cf2e}of _0x1b83f1){const _0x85d328=this['_model']['createRange'](_0x1d124f,_0x31020f);if(_0x25cf2e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x25cf2e['containsRangeInObject']&&!_0x25cf2e['isInsideObject'])){if(_0x478d76['isMultiRange']){if(!qt(_0x478d76,_0x1de78d))continue;let _0x193c32=!0x0;for(const _0x50000c of _0x478d76['getRanges']()){if(_0x50000c['containsRange'](_0x85d328,!0x0))return _0x478d76;_0x85d328['containsRange'](_0x50000c)||(_0x193c32=!0x1);}_0x193c32&&_0x478d76['discard']();}else{const _0x5a6929=_0x478d76['getFirstRange']();if(_0x5a6929['containsRange'](_0x85d328,!0x0))return _0x478d76;if(!qt(_0x478d76,_0x1de78d)){_0x85d328['containsRange'](_0x5a6929)?_0x478d76['removeMarkers']():_0x5a6929['containsPosition'](_0x1d124f)?_0x1d124f=_0x5a6929['end']:_0x5a6929['containsPosition'](_0x31020f)&&(_0x31020f=_0x5a6929['start']);continue;}_0x1d124f=_0x1d124f['isBefore'](_0x5a6929['start'])?_0x1d124f:_0x5a6929['start'],_0x31020f=_0x31020f['isAfter'](_0x5a6929['end'])?_0x31020f:_0x5a6929['end'],_0x1de78d=Object['assign']({},_0x478d76['attributes']),_0x239467?_0x5a6929['start']['isBefore'](_0x239467['getFirstRange']()['start'])?(_0x239467['removeMarkers'](),_0x239467=_0x478d76):_0x478d76['removeMarkers']():_0x239467=_0x478d76;}}}if(_0x239467)return this['_setSuggestionRange'](_0x239467,this['_model']['createRange'](_0x1d124f,_0x31020f)),_0x239467;{const _0x44f631=_0x1a2714(),_0x28e26f=this['_model']['createRange'](_0x1d124f,_0x31020f),_0x32db51=_0x707b1e['id'],_0x41ce0f=_0x18ce87?'deletion:'+_0x18ce87:'deletion',_0x609c8d=this['_setSuggestionData']({'id':_0x44f631,'type':_0x41ce0f,'createdAt':new Date(),'authorId':_0x32db51,'attributes':_0x1de78d});return this['_addSuggestionMarker'](_0x41ce0f,_0x44f631,_0x32db51,_0x28e26f),_0x609c8d;}}['markMultiRangeDeletion'](_0x2e2de4,_0x3d7893='multi',_0x4bcc42={}){const _0x3b96c3=this['editor']['plugins']['get']('Users')['me'],_0x1b36d5=_0x2e2de4['map'](_0x475653=>new _0x5b36f3(_0x475653['start'],_0x475653['end'])),_0x34d994=new Set();for(const {suggestion:_0x407bb2,meta:_0x2ae63d}of this['_findSuggestions'](_0x1b36d5,'insertion'))_0x2ae63d['isOwn']&&!_0x2ae63d['isNextTo']&&_0x34d994['add'](_0x407bb2);for(const _0x574cea of _0x34d994)if(_0x574cea['isMultiRange']){const _0xaf7c1=_0x574cea['getRanges']();(!_0x574cea['attributes']||!_0x574cea['attributes']['skipNestingCheck'])&&(_0xaf7c1['every'](_0x311c16=>_0x1b36d5['some'](_0x31642e=>_0x31642e['containsRange'](_0x311c16,!0x0)))&&_0x574cea['discard']());if(_0x1b36d5['every'](_0x295b44=>_0xaf7c1['some'](_0x331a46=>_0x331a46['containsRange'](_0x295b44,!0x0)))){const _0x3ed438=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d7893,'accept');return this['forceDefaultExecution'](()=>_0x3ed438(_0x2e2de4,null,_0x4bcc42)),null;}}else{const _0x473a50=_0x574cea['getFirstRange']();_0x1b36d5['some'](_0x293698=>_0x293698['containsRange'](_0x473a50,!0x0))&&_0x574cea['discard']();if(_0x1b36d5['every'](_0x3ddbce=>_0x473a50['containsRange'](_0x3ddbce,!0x0))){const _0x34482a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d7893,'accept');return this['forceDefaultExecution'](()=>_0x34482a(_0x1b36d5,null,_0x4bcc42)),null;}}const _0x16e04a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3d7893,'join');let _0x4f0419=null;for(const _0x119e62 of this['getSuggestions']())if(_0x119e62['author']['id']==_0x3b96c3['id']&&_0x119e62['isInContent']&&'deletion'==_0x119e62['type']&&_0x119e62['subType']==_0x3d7893&&qt(_0x119e62,_0x4bcc42)&&(_0x16e04a(_0x119e62['getRanges'](),_0x1b36d5)||_0x16e04a(_0x1b36d5,_0x119e62['getRanges']()))){if(_0x4f0419){if(_0x119e62['commentThread']&&_0x119e62['commentThread']['length'])continue;for(const _0x494b19 of _0x119e62['getRanges']())_0x4f0419['isIntersectingWithRange'](_0x494b19)||_0x4f0419['addRange'](_0x494b19);_0x119e62['removeMarkers']();}else{_0x4f0419=_0x119e62;for(const _0x4369d0 of _0x1b36d5)_0x119e62['isIntersectingWithRange'](_0x4369d0)||_0x119e62['addRange'](_0x4369d0);}}if(_0x4f0419)return _0x4f0419;_0x34d994['clear']();for(const {suggestion:_0x492e8b,meta:_0x56b017}of this['_findSuggestions'](_0x1b36d5,'deletion'))_0x56b017['isOwn']&&(this['_mergeNestedSuggestions']||!_0x56b017['containsRangeInObject']&&!_0x56b017['isInsideObject'])&&qt(_0x492e8b,_0x4bcc42)&&_0x34d994['add'](_0x492e8b);for(const _0x176e45 of _0x34d994){const _0x3372b9=_0x176e45['getRanges']();if(!_0x4bcc42||!_0x4bcc42['skipNestingCheck']){if(_0x1b36d5['every'](_0x107d24=>_0x3372b9['some'](_0x2f0ace=>_0x2f0ace['containsRange'](_0x107d24,!0x0))))return _0x176e45;}(!_0x176e45['attributes']||!_0x176e45['attributes']['skipNestingCheck'])&&(_0x3372b9['every'](_0x2a8683=>_0x1b36d5['some'](_0x50a478=>_0x50a478['containsRange'](_0x2a8683,!0x0)))&&_0x176e45['discard']());}const _0x41c6b7=_0x1a2714(),_0x592cc3=_0x3b96c3['id'],_0x512452='deletion:'+_0x3d7893,_0x23bf14=this['_setSuggestionData']({'id':_0x41c6b7,'type':_0x512452,'createdAt':new Date(),'authorId':_0x592cc3,'attributes':_0x4bcc42});for(const _0x5a212e of _0x1b36d5)_0x5a212e['detach'](),_0x5a212e['isCollapsed']||'$graveyard'==_0x5a212e['root']['rootName']||this['_addSuggestionMarker'](_0x512452,_0x41c6b7,_0x592cc3,_0x5a212e,u['getMultiRangeId']());return _0x23bf14;}['markAttributeChange'](_0x2a4437,_0x4b09ae,_0x290c5f,_0x11ae57,_0x5d3819){if(_0x2a4437['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x243934=this['editor']['plugins']['get']('Users')['me']['id'],_0x25565d=Array['from'](this['_suggestions']['values']())['filter'](_0x3712ce=>'attribute'==_0x3712ce['type']&&_0x3712ce['data']['key']==_0x4b09ae&&_0x3712ce['isIntersectingWithRange'](_0x2a4437));if('default'===this['_trackFormatChanges']){const _0xfd06e3=this['_findSuggestions'](_0x2a4437,'insertion')['filter'](({meta:_0x2b5ee0})=>_0x2b5ee0['isOwn']&&!_0x2b5ee0['isInsideObject']&&!_0x2b5ee0['isNextTo'])['map'](({suggestion:_0x447c77})=>_0x447c77);_0x25565d['unshift'](..._0xfd06e3);}const _0x887968=new Map([[_0x2a4437,_0x290c5f]]);for(const _0x4eeaad of _0x25565d){const _0x189f23='attribute'==_0x4eeaad['type']?_0x4eeaad['data']['oldValue']:void 0x0,_0x2cf9ee=_0x4eeaad['getFirstRange'](),_0x45b0a8=Array['from'](_0x887968['keys']())['find'](_0x37e448=>_0x37e448['isIntersecting'](_0x2cf9ee));if(!_0x45b0a8)continue;const _0x30df0c=_0x45b0a8['getDifference'](_0x2cf9ee);this['_isBlockAttribute'](_0x4b09ae)&&'insertion'==_0x4eeaad['type']&&0x0!=_0x30df0c['length']||(_0x887968['delete'](_0x45b0a8),_0x30df0c['forEach'](_0x5a0de9=>{_0x887968['set'](_0x5a0de9,_0x290c5f);}),'insertion'!=_0x4eeaad['type']&&_0x189f23!=_0x11ae57&&_0x887968['set'](_0x45b0a8['getIntersection'](_0x2cf9ee),_0x189f23));}const _0x3e10a0=[];for(const [_0x530287,_0x3bd673]of _0x887968){const _0x37a9ee=_0x1a2714(),_0x363e2c={'key':_0x4b09ae,'oldValue':_0x3bd673,'newValue':_0x11ae57};_0x4b09ae['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':_0x4b09ae});const _0x53672c=('attribute:'+(_0x4b09ae+'|'+Gt({'newValue':_0x11ae57})))['substring'](0x0,0x3c),_0x12fc0e=this['_setSuggestionData']({'id':_0x37a9ee,'type':_0x53672c,'data':_0x363e2c,'createdAt':new Date(),'authorId':_0x243934,'attributes':_0x5d3819});_0x3e10a0['push'](_0x12fc0e),this['_addSuggestionMarker'](_0x53672c,_0x37a9ee,_0x243934,_0x530287);}return _0x3e10a0;}['enableDefaultAttributesIntegration'](_0x202e7e){this['enableCommand'](_0x202e7e,(_0x36d4b8,..._0x579b80)=>{this['_recordAttributeChanges'](()=>{_0x36d4b8(..._0x579b80);});});}['registerBlockAttribute'](_0x399f2d){this['_blockAttributeKeys']['add'](_0x399f2d);}['registerInlineAttribute'](_0x928422){this['_inlineAttributeKeys']['add'](_0x928422);}['_getAttributeKey'](_0x10776d){return'attribute'==_0x10776d['type']?_0x10776d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x42c957,_0xb4b276){const _0x228c16=_0x42c957['getFirstMarker']();this['_model']['change'](_0x54e69a=>{_0x54e69a['updateMarker'](_0x228c16,{'range':_0xb4b276});});}['_addThreadToSuggestion'](_0x4d7ac3){const _0x2c4e16=_0x4d7ac3['id'],_0x12aafe=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2c4e16)||this['_commentsRepository']['addCommentThread']({'channelId':_0x12aafe,'threadId':_0x2c4e16,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x20046d=this['_commentsRepository']['getCommentThread'](_0x2c4e16);_0x20046d['unbind']('isRemovable'),_0x20046d['isRemovable']=!0x1,_0x4d7ac3['commentThread']=_0x20046d;}['_checkSuggestionCorrectness'](_0x5f11b2,_0x1e22ba,_0x25093c,_0x2d9f00){if(_0x5f11b2['type']!=_0x1e22ba||_0x5f11b2['subType']!=_0x25093c||_0x5f11b2['creator']['id']!=_0x2d9f00)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x58ef43('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2e61c4,_0x5cbef7){const _0x5d05f3=_0x2e61c4['getFirstRange']();if(_0x5cbef7['isEqual'](_0x5d05f3))_0x2e61c4['removeMarkers']();else{if(_0x5d05f3['containsRange'](_0x5cbef7)){const _0x797ce3=this['_model']['createPositionAt'](_0x5cbef7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2e61c4,this['_model']['createRange'](_0x5d05f3['start'],_0x797ce3));const _0x3c45a4=_0x1a2714(),_0x5a0a5b=_0x2e61c4['creator']['id'],_0x128283=_0x2e61c4['type']+':'+_0x2e61c4['subType'];this['_setSuggestionData']({'id':_0x3c45a4,'type':_0x128283,'createdAt':new Date(),'authorId':_0x5a0a5b,'data':_0x2e61c4['data'],'attributes':_0x2e61c4['attributes']});const _0x3f2942=this['_model']['createPositionAt'](_0x5cbef7['end']['parent'],'after'),_0xbf06c6=this['_model']['createRange'](_0x3f2942,_0x5d05f3['end']);this['_addSuggestionMarker'](_0x128283,_0x3c45a4,_0x5a0a5b,_0xbf06c6);}else{if(_0x5d05f3['containsPosition'](_0x5cbef7['start'])){const _0x40ef2a=this['_model']['createPositionAt'](_0x5cbef7['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2e61c4,this['_model']['createRange'](_0x5d05f3['start'],_0x40ef2a));}else{const _0x244fb1=this['_model']['createPositionAt'](_0x5cbef7['end']['parent'],'after');this['_setSuggestionRange'](_0x2e61c4,this['_model']['createRange'](_0x244fb1,_0x5d05f3['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2b0e26){for(const {suggestion:_0x27a578,meta:_0x5ac979}of this['_findSuggestions'](_0x2b0e26,'insertion')){if(!_0x5ac979['isOwn'])continue;const _0x2d9f79=_0x27a578['getRanges']();for(const _0x3fa393 of _0x2d9f79)if(!_0x2b0e26['getDifference'](_0x3fa393)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x215d01){const _0x1b60fa=this['editor']['plugins']['get']('Users')['getUser'](_0x215d01);if(!_0x1b60fa)throw new _0x58ef43('track-changes-user-not-found',this);return _0x1b60fa;}['_getExternalAuthor'](_0x210f81){const _0x517e42=this['editor']['plugins']['get']('Users'),_0x400338=_0x4ea248('external:'+_0x210f81),_0x202caf=_0x517e42['getUser'](_0x400338);return _0x202caf||_0x517e42['addUser']({'id':_0x400338,'name':_0x210f81});}['_createSuggestion'](_0x214e9f,_0xa549b1,_0x2e2d1e,_0x1b1300,_0x1a617e){const _0x30e5ed=this['_getAuthorFromId'](_0x1b1300),_0x2eb1ee=this['_suggestionFactory']['buildSuggestion'](_0x214e9f,_0xa549b1,_0x2e2d1e,_0x30e5ed,_0x1a617e,_0x316df0=>{this['_updateSuggestionData'](_0x2e2d1e,{'attributes':_0x316df0});const _0x510bb9=this['getSuggestion'](_0x2e2d1e);this['_joinWithAdjacentSuggestions'](new Set([_0x510bb9])),this['_refreshSuggestionsChain'](new Set([_0x510bb9]));});return this['listenTo'](_0x2eb1ee,'accept',()=>{this['_updateSuggestionData'](_0x2e2d1e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2eb1ee,'discard',()=>{this['_updateSuggestionData'](_0x2e2d1e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2e2d1e,_0x2eb1ee),this['_suggestionState']['set'](_0x2eb1ee,'notReady'),_0x2eb1ee;}['_splitMarkerName'](_0x480635){const _0x18f430=_0x480635['split'](':');return{'group':_0x18f430[0x0],'type':_0x18f430[0x1],'subType':_0x18f430['length']>=0x5?_0x18f430[0x2]:null,'id':_0x18f430['length']<0x5?_0x18f430[0x2]:_0x18f430[0x3],'authorId':_0x18f430['length']<0x5?_0x18f430[0x3]:_0x18f430[0x4],'markerCount':0x6==_0x18f430['length']?_0x18f430[0x5]:null};}['_breakSuggestionMarker'](_0xd70f90,_0x38b7f0,_0x5b1ed7){const _0x862820=_0xd70f90['getFirstRange'](),_0x5a7387=_0x862820['start'],_0x37958d=_0x862820['end'];this['_setSuggestionRange'](_0xd70f90,this['_model']['createRange'](_0x5a7387,_0x38b7f0));const _0x2d4e20=_0x1a2714(),_0x3201b9=_0xd70f90['creator']['id'],_0x3d96ba=_0xd70f90['type']+(_0xd70f90['subType']?':'+_0xd70f90['subType']:'');this['_setSuggestionData']({'id':_0x2d4e20,'type':_0x3d96ba,'createdAt':new Date(),'authorId':_0x3201b9,'originalSuggestionId':_0xd70f90['id'],'attributes':_0xd70f90['attributes'],'data':_0xd70f90['data']});const _0x37c2ba=this['_getAttributeKey'](_0xd70f90);('formatBlock'==_0xd70f90['type']||_0x37c2ba&&this['_isBlockAttribute'](_0x37c2ba))&&(_0x5b1ed7=this['_model']['createPositionBefore'](_0x5b1ed7['parent'])),this['_addSuggestionMarker'](_0x3d96ba,_0x2d4e20,_0x3201b9,this['_model']['createRange'](_0x5b1ed7,_0x37958d));}['_findSuggestions'](_0x57d95a,_0x5bd233=null){const _0x317b83=[],_0x1f6722=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x57d95a)||(_0x57d95a=[_0x57d95a]);for(const _0x3f5159 of this['getSuggestions']()){if(!_0x3f5159['isInContent'])continue;if(_0x5bd233&&_0x3f5159['type']!=_0x5bd233)continue;let _0x1fbd28=!0x1;for(const _0x2b7f9f of _0x3f5159['getRanges']()){for(const _0x3bfc50 of _0x57d95a){const _0x412343=_0x3bfc50['start']['isEqual'](_0x2b7f9f['end'])||_0x3bfc50['end']['isEqual'](_0x2b7f9f['start']);if(_0x412343||_0x3bfc50['getIntersection'](_0x2b7f9f)){const _0x143c58=_0x3bfc50['containsRange'](_0x2b7f9f)&&Ot(this['_model']['schema'],_0x2b7f9f['start'],_0x3bfc50),_0x29be9b=_0x2b7f9f['containsRange'](_0x3bfc50)&&Ot(this['_model']['schema'],_0x3bfc50['start'],_0x2b7f9f);_0x317b83['push']({'suggestion':_0x3f5159,'meta':{'isOwn':_0x1f6722==_0x3f5159['author'],'isNextTo':_0x412343,'isInsideObject':_0x143c58,'containsRangeInObject':_0x29be9b}}),_0x1fbd28=!0x0;break;}}if(_0x1fbd28)break;}}return _0x317b83;}['_addSuggestionMarker'](_0x1c62a9,_0x51820d,_0x5ed7d3,_0x1d32d5,_0x323a78){this['_model']['change'](_0x415ff8=>{let _0x3bd9c5='suggestion:'+_0x1c62a9+':'+_0x51820d+':'+_0x5ed7d3;_0x323a78&&(_0x3bd9c5=_0x3bd9c5+':'+_0x323a78),_0x415ff8['addMarker'](_0x3bd9c5,{'range':_0x1d32d5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5eab06){const _0x292f90=_0x5eab06['previous'],_0x2820b4=_0x5eab06['next'];_0x5eab06['previous']=null,_0x5eab06['next']=null,null!=_0x292f90&&_0x292f90['next']==_0x5eab06&&(_0x292f90['next']=_0x2820b4),null!=_0x2820b4&&_0x2820b4['previous']==_0x5eab06&&(_0x2820b4['previous']=_0x292f90),'ready'==this['_suggestionState']['get'](_0x5eab06)&&(this['_suggestionState']['set'](_0x5eab06,'removed'),this['fire']('suggestionUnloaded',_0x5eab06,_0x292f90,_0x2820b4));}['_setSuggestionData'](_0x33ebe2){const _0x2f02cc=_0x33ebe2['id'],_0x1a7359=this['addSuggestionData'](_0x33ebe2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x175b31=this['editor']['plugins']['get']('PendingActions'),_0x1e5e8f=_0x1a7359['hasComments'],_0x22b041=_0x1a7359['subType']?_0x1a7359['type']+':'+_0x1a7359['subType']:_0x1a7359['type'],_0x5a10a8=this['editor']['locale'],_0x6b1973=_0x175b31['add'](o(_0x5a10a8,'PENDING_ACTION_SUGGESTION')),_0x4cc0bd={'id':_0x2f02cc,'type':_0x22b041,'hasComments':_0x1e5e8f,'data':_0x33ebe2['data']||null,'originalSuggestionId':_0x33ebe2['originalSuggestionId']||null,'attributes':_0x1a7359['attributes']};this['_adapter']['addSuggestion'](_0x4cc0bd)['then'](_0x51de6b=>{_0x1a7359['_saved']=!0x0,_0x175b31['remove'](_0x6b1973),_0x51de6b&&_0x51de6b['createdAt']&&(this['_suggestions']['get'](_0x2f02cc)['createdAt']=_0x51de6b['createdAt']);})['catch'](_0x199335=>{throw _0x36ad2d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1a7359['discard']();}),_0x1a7359['stopListening'](),this['_suggestions']['delete'](_0x1a7359['id']),this['_suggestionState']['delete'](_0x1a7359),_0x199335;});}return _0x1a7359;}['_isBlockAttribute'](_0x42bc9e){return this['_blockAttributeKeys']['has'](_0x42bc9e);}['_updateSuggestionData'](_0x46c29e,_0x1bea3e){const _0x36d4cb=this['editor']['plugins']['get']('PendingActions'),_0xfbf98c=this['getSuggestion'](_0x46c29e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xfbf98c['_saved']){const _0x2619e3=_0x36d4cb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x46c29e,_0x1bea3e)['then'](()=>{_0x36d4cb['remove'](_0x2619e3);});}else _0xfbf98c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x46c29e,_0x1bea3e);});}}['_getSuggestionData'](_0x3a820f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x58ef43('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a820f);}['_handleNewSuggestionMarker'](_0x1653e7){const {id:_0x30ed55,type:_0x2ec623,subType:_0x55c523,authorId:_0x558e0c}=this['_splitMarkerName'](_0x1653e7),_0x317839=this['_suggestions']['get'](_0x30ed55)||this['_createSuggestion'](_0x2ec623,_0x55c523,_0x30ed55,_0x558e0c,{});switch(this['_checkSuggestionCorrectness'](_0x317839,_0x2ec623,_0x55c523,_0x558e0c),this['_suggestionState']['get'](_0x317839)){case'notReady':this['_getSuggestionData'](_0x30ed55)['then'](_0x1b4c29=>{let _0x468397=Promise['resolve']();_0x1b4c29['hasComments']&&(_0x468397=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x30ed55})),_0x468397['then'](()=>{this['addSuggestionData'](_0x1b4c29)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x317839,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x30ed55,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x317839,'ready'),this['fire']('suggestionLoaded',_0x317839);break;case'ready':this['fire']('suggestionChanged',_0x317839);}return _0x317839['addMarkerName'](_0x1653e7),_0x317839;}['_refreshSuggestionsChain'](_0x31de77){const _0x16c360=Array['from'](_0x31de77),_0x26727b=_0x16c360['filter'](_0x36b008=>'attribute'==_0x36b008['type']);this['_refreshAttributeSuggestionsChain'](_0x26727b);const _0x43be7f=_0x16c360['filter'](_0x33c0cc=>!_0x33c0cc['isMultiRange']&&'attribute'!=_0x33c0cc['type']),_0x1165ee=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dc595=>!_0x5dc595['isMultiRange']&&'attribute'!=_0x5dc595['type']),_0x58e56a=_0x1165ee['filter'](_0x4f666f=>!_0x31de77['has'](_0x4f666f)),_0x37beed=new Map(_0x1165ee['map'](_0x5e6bcf=>[_0x5e6bcf,this['_suggestionFactory']['getSuggestionCallback'](_0x5e6bcf['type'],_0x5e6bcf['subType'],'chain')])),_0x5fef47=new Map(_0x1165ee['map'](_0x13c41d=>[_0x13c41d,_0x13c41d['getFirstRange']()])),_0x45f553=new Set(),_0x1f6f3a=new Set();for(let _0x3bb6e2=0x0;_0x3bb6e2<_0x43be7f['length'];_0x3bb6e2++)_0x527065(_0x43be7f[_0x3bb6e2],_0x43be7f,_0x3bb6e2+0x1);for(let _0x825fef=0x0;_0x825fef<_0x43be7f['length'];_0x825fef++)_0x527065(_0x43be7f[_0x825fef],_0x58e56a,0x0);const _0x4220df=new Set();for(let _0x2fbfe1=0x0;_0x2fbfe1<_0x43be7f['length'];_0x2fbfe1++){const _0x520531=_0x43be7f[_0x2fbfe1];!_0x1f6f3a['has'](_0x520531)&&_0x520531['previous']&&(_0x4220df['add'](_0x520531['previous']),_0x520531['previous']['next']===_0x520531&&(_0x520531['previous']['next']=null),_0x520531['previous']=null),!_0x45f553['has'](_0x520531)&&_0x520531['next']&&(_0x4220df['add'](_0x520531['next']),_0x520531['next']['previous']===_0x520531&&(_0x520531['next']['previous']=null),_0x520531['next']=null);}function _0x527065(_0x314851,_0xf07f38,_0x433469){for(let _0x49e553=_0x433469;_0x49e553<_0xf07f38['length'];_0x49e553++){const _0x10b253=_0x19dfde(_0x314851,_0xf07f38[_0x49e553]);_0x10b253&&(_0x10b253[0x0]['next']=_0x10b253[0x1],_0x10b253[0x1]['previous']=_0x10b253[0x0],_0x45f553['add'](_0x10b253[0x0]),_0x1f6f3a['add'](_0x10b253[0x1]));}}function _0x19dfde(_0x44418e,_0x1f896b){if(_0x44418e['author']['id']!==_0x1f896b['author']['id'])return null;const _0x319875=_0x37beed['get'](_0x44418e)(_0x44418e,_0x1f896b,_0x5fef47['get'](_0x44418e),_0x5fef47['get'](_0x1f896b));if(!_0x319875)return null;return _0x37beed['get'](_0x1f896b)(_0x44418e,_0x1f896b,_0x5fef47['get'](_0x44418e),_0x5fef47['get'](_0x1f896b))?_0x319875[0x1]['commentThread']&&_0x319875[0x1]['commentThread']['length']?null:_0x319875:null;}_0x4220df['size']&&this['_refreshSuggestionsChain'](_0x4220df);}['_refreshAttributeSuggestionsChain'](_0x27094f){if(0x0==_0x27094f['length'])return;const _0x1823c1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46b034=>'attribute'==_0x46b034['type']&&_0x46b034['_isDataLoaded']),_0x2c243d=[],_0x5e8027=new Map();for(const _0x5ee528 of _0x1823c1){const _0x3557a9=_0x4ea248(_0x5ee528['attributes']);_0x5e8027['has'](_0x3557a9)||(_0x5e8027['set'](_0x3557a9,_0x2c243d['length']),_0x2c243d['push']([]));const _0x575d38=_0x5e8027['get'](_0x3557a9);_0x2c243d[_0x575d38]['push'](_0x5ee528);}!(function(){_0x2c243d['sort']((_0x3c6576,_0x34885f)=>{const _0x7c50ef=_0x3c6576[0x0]['createdAt'],_0x38b986=_0x34885f[0x0]['createdAt'];return _0x7c50ef==_0x38b986?_0x3c6576[0x0]['attributes']['groupId']<_0x34885f[0x0]['attributes']['groupId']?-0x1:0x1:_0x7c50ef<_0x38b986?-0x1:0x1;});for(const _0x1fc497 of _0x2c243d)_0x1fc497['sort']((_0x541d31,_0x29d8d7)=>_0x541d31['id']<_0x29d8d7['id']?-0x1:0x1);}());for(let _0x2f5a0b=0x0;_0x2f5a0b<_0x2c243d['length'];_0x2f5a0b++){if(0x0==_0x2c243d[_0x2f5a0b]['length'])continue;const _0xe0cc48=[];for(let _0x1e2587=_0x2f5a0b+0x1;_0x1e2587<_0x2c243d['length'];_0x1e2587++)0x0!=_0x2c243d[_0x1e2587]['length']&&_0x4bcbf2(_0x2c243d[_0x2f5a0b],_0x2c243d[_0x1e2587])&&_0xe0cc48['push'](_0x1e2587);for(const _0x3850dd of _0xe0cc48)_0x2c243d[_0x2f5a0b]=_0x2c243d[_0x2f5a0b]['concat'](_0x2c243d[_0x3850dd]),_0x2c243d[_0x3850dd]=[];}for(const _0x1039a4 of _0x2c243d)for(let _0x26b035=0x0;_0x26b035<_0x1039a4['length'];_0x26b035++){const _0x306588=_0x1039a4[_0x26b035+0x1]||null;_0x1039a4[_0x26b035]['next']!==_0x306588&&(_0x1039a4[_0x26b035]['next']=_0x306588);}for(const _0x908dff of _0x2c243d)for(let _0x4c940f=0x0;_0x4c940f<_0x908dff['length'];_0x4c940f++){const _0x1abbd2=_0x908dff[_0x4c940f-0x1]||null;_0x908dff[_0x4c940f]['previous']!==_0x1abbd2&&(_0x908dff[_0x4c940f]['previous']=_0x1abbd2);}function _0x4bcbf2(_0x561571,_0x4a40a3){if(_0x561571[0x0]['attributes']['groupId']!==_0x4a40a3[0x0]['attributes']['groupId']&&_0x561571[0x0]['author']!==_0x4a40a3[0x0]['author'])return!0x1;if(!function(_0x36bbd8,_0x21faec){if(!_0x36bbd8['hasComments']&&!_0x21faec['hasComments'])return!0x0;if(_0x36bbd8['hasComments']&&_0x21faec['hasComments'])return!0x1;if(_0x36bbd8['hasComments']&&_0x21faec['createdAt']<_0x36bbd8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x21faec['hasComments']&&_0x36bbd8['createdAt']<_0x21faec['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x561571[0x0],_0x4a40a3[0x0]))return!0x1;const _0x1b22ec=Tt(_0x561571[0x0]['attributes'],'groupId'),_0x19fbe2=Tt(_0x4a40a3[0x0]['attributes'],'groupId');if(!_0x468224(_0x1b22ec,_0x19fbe2))return!0x1;return!!_0x561571['every'](_0x1ae7fb=>_0x4a40a3['some'](_0x437a58=>_0x1ae7fb['getFirstRange']()['isEqual'](_0x437a58['getFirstRange']())))&&_0x4a40a3['every'](_0x4d69a5=>_0x561571['some'](_0x987cb6=>_0x4d69a5['getFirstRange']()['isEqual'](_0x987cb6['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x10d2b1){const _0x4ec03c=Array['from'](_0x10d2b1),_0x21c3d0=this['getSuggestions']({'skipNotAttached':!0x0}),_0x35a634=_0x21c3d0['filter'](_0x1e07c7=>!_0x10d2b1['has'](_0x1e07c7)),_0x45b623=new Map(_0x4ec03c['map'](_0x3a1f73=>[_0x3a1f73,this['_suggestionFactory']['getSuggestionCallback'](_0x3a1f73['type'],_0x3a1f73['subType'],'join')])),_0x1e88a0=new Map(_0x21c3d0['map'](_0x5882da=>[_0x5882da,_0x5882da['getRanges']()]));for(let _0xcf32db=0x0;_0xcf32db<_0x4ec03c['length'];_0xcf32db++){if(_0x1443c6(this,_0x4ec03c[_0xcf32db],_0x4ec03c,_0xcf32db+0x1))return!0x0;}for(let _0x1ecc5=0x0;_0x1ecc5<_0x4ec03c['length'];_0x1ecc5++){if(_0x1443c6(this,_0x4ec03c[_0x1ecc5],_0x35a634,0x0))return!0x0;}return!0x1;function _0x1443c6(_0x99b09c,_0x182843,_0x21e3c6,_0x4e37a3){for(let _0x901afc=_0x4e37a3;_0x901afc<_0x21e3c6['length'];_0x901afc++){const _0x5673d0=_0x21e3c6[_0x901afc];if(_0x5673d0['type']!==_0x182843['type']||_0x5673d0['author']['id']!==_0x182843['author']['id']||_0x5673d0['subType']!==_0x182843['subType'])continue;if(!Jt(_0x182843,_0x5673d0))continue;if('attribute'==_0x182843['type']&&_0x182843['data']['oldValue']!=_0x5673d0['data']['oldValue'])continue;if('attribute'==_0x182843['type']&&_0x99b09c['_isBlockAttribute'](_0x182843['data']['key']))continue;if('formatBlock'==_0x182843['type']){const _0x200ee7=_0x99b09c['editor']['model'],_0x4681a7=_0x182843['getContainedElement']();if(_0x4681a7&&(_0x200ee7['schema']['isObject'](_0x4681a7)||_0x200ee7['schema']['isLimit'](_0x4681a7)))continue;}const _0x27e208=_0x45b623['get'](_0x182843),_0x1de5ca=_0x1e88a0['get'](_0x182843),_0x42da5d=_0x1e88a0['get'](_0x5673d0),_0x15b46b=_0x182843['commentThread']&&_0x182843['commentThread']['length'],_0x4ebf63=_0x5673d0['commentThread']&&_0x5673d0['commentThread']['length'];if(!_0x15b46b&&_0x27e208(_0x42da5d,_0x1de5ca))return _0x99b09c['_joinSuggestions'](_0x5673d0,_0x182843),_0x1e88a0['delete'](_0x182843),!0x0;if(!_0x4ebf63&&_0x27e208(_0x1de5ca,_0x42da5d))return _0x99b09c['_joinSuggestions'](_0x182843,_0x5673d0),_0x1e88a0['delete'](_0x5673d0),!0x0;}return!0x1;}}['_joinSuggestions'](_0x494ebe,_0x3847fd){if(_0x494ebe['isMultiRange']){for(const _0x41315d of _0x3847fd['getRanges']())_0x494ebe['addRange'](_0x41315d);}else{const _0x47d57f=_0x3847fd['getFirstRange']()['end'];this['_setSuggestionRange'](_0x494ebe,this['_model']['createRange'](_0x494ebe['getFirstRange']()['start'],_0x47d57f));}_0x3847fd['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3ff43b,_0x32a2a6,_0x531326){const _0x6fb198=_0x3ff43b['startsWith']('format')||_0x3ff43b['startsWith']('attribute')?'FORMATTING':_0x3ff43b['toUpperCase']();return o(this['editor']['locale'],_0x32a2a6+'_'+_0x6fb198+'_SUGGESTION_ANNOUNCEMENT',_0x531326);}['_initAriaMarkerChangeAnnouncements'](){const _0x346f44=this['editor'];if(!_0x346f44['ui'])return;const {ariaLiveAnnouncer:_0x531139}=_0x346f44['ui'];_0xa87bae(this['_model'],({left:_0x44a4e5,entered:_0x567d83})=>{for(const _0x34f7db of _0x44a4e5){const {group:_0x112686,type:_0x48c7de}=this['_splitMarkerName'](_0x34f7db['name']);if('suggestion'===_0x112686){_0x531139['announce'](this['_getMarkerAnnouncementText'](_0x48c7de,'LEAVE'));break;}}for(const _0x52db15 of _0x567d83){const {group:_0x41338b,type:_0x3f6699}=this['_splitMarkerName'](_0x52db15['name']);if('suggestion'===_0x41338b){_0x531139['announce'](this['_getMarkerAnnouncementText'](_0x3f6699,'ENTER',_0x3394ef(_0x3841be)));break;}}});}['_processAttributeChanges'](_0x12da95){if(this['_recordAttributeSuggestions'])return!0x1;const _0x186e43=this['editor'],_0x244d39=_0x186e43['model']['document']['differ']['getChanges']();if(0x0==_0x244d39['length'])return!0x1;const _0x58d9a9=[],_0x5b7e79=_0x244d39['filter'](_0x7d2ea2=>'attribute'==_0x7d2ea2['type']),_0x338ea7=_0x244d39['filter'](_0x5baf6f=>'insert'==_0x5baf6f['type']&&'$text'!=_0x5baf6f['name']),_0xf67ee6=_0x244d39['filter'](_0x15e704=>'remove'==_0x15e704['type']&&'$text'!=_0x15e704['name']);for(const _0x483eb2 of _0x5b7e79)_0x58d9a9['push']({'key':_0x483eb2['attributeKey'],'newValue':_0x483eb2['attributeNewValue'],'oldValue':_0x483eb2['attributeOldValue'],'range':Pt(_0x483eb2['range'],_0x186e43['model'])});for(const _0x249833 of _0x338ea7){const _0x41fc23=_0xf67ee6['find'](_0x2bd73d=>_0x2bd73d['position']['isEqual'](_0x249833['position']));_0x41fc23&&_0x58d9a9['push']({'key':m,'newValue':_0x249833['name'],'oldValue':_0x41fc23['name'],'range':_0x186e43['model']['createRangeOn'](_0x249833['position']['nodeAfter'])});}return 0x0!=_0x58d9a9['length']&&this['_reduceExistingSuggestions'](_0x12da95,_0x58d9a9);}['_processAttributeSuggestions'](_0x64a04e){let _0x5cd9ca=!0x1;const _0x1dc3a6=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1d657f=>_0x1d657f['data']['newRange']&&_0x1d657f['name']['startsWith']('suggestion:attribute:'));for(const _0x37e145 of _0x1dc3a6){const {subType:_0x481fb7,id:_0x1dcd5f}=this['_splitMarkerName'](_0x37e145['name']),_0x22a62a=_0x481fb7['split']('|')[0x0];for(const _0x2b4504 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2b4504['id']!=_0x1dcd5f&&'attribute'==_0x2b4504['type']&&_0x2b4504['data']&&_0x2b4504['data']['key']==_0x22a62a&&_0x2b4504['getFirstRange']()['isIntersecting'](_0x37e145['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2b4504,_0x37e145['data']['newRange'],_0x64a04e),_0x5cd9ca=!0x0);}return _0x5cd9ca;}['_recordAttributeChanges'](_0x4e5bc6){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4e5bc6();}['_isRegisteredAttribute'](_0x229fb1){const _0x29fb1e=this['_isBlockAttribute'](_0x229fb1),_0x288f5c=this['_inlineAttributeKeys']['has'](_0x229fb1);return _0x29fb1e||_0x288f5c;}['_reduceExistingSuggestions'](_0x242407,_0x1f6fde){if(0x0==_0x1f6fde['length'])return!0x1;let _0x3bc131=!0x1;for(const _0xc49ed4 of _0x1f6fde){const _0x1bf893=this['_findSuggestions'](_0xc49ed4['range'],'attribute')['filter'](_0x9e9ba1=>!_0x9e9ba1['meta']['isNextTo'])['map'](_0x2a5c7a=>_0x2a5c7a['suggestion']),_0x49a5d6=_0x4ea248({'newValue':_0xc49ed4['newValue']});_0x1bf893['filter'](_0x3cfc9b=>{const [_0x35083a,_0x4f4d8a]=_0x3cfc9b['subType']['split']('|');return _0x35083a==_0xc49ed4['key']&&_0x4f4d8a!=_0x49a5d6;})['forEach'](_0x279c5b=>{this['_reduceSuggestionAttributeRange'](_0x279c5b,_0xc49ed4['range'],_0x242407),_0x3bc131=!0x0;});}return _0x3bc131;}['_reduceSuggestionAttributeRange'](_0x382897,_0x2d9199,_0x3abd1d){const _0x2f56ca=_0x382897['getFirstRange']()['getDifference'](_0x2d9199);0x0!==_0x2f56ca['length']?0x1!==_0x2f56ca['length']?this['_breakSuggestionMarker'](_0x382897,_0x2d9199['start'],_0x2d9199['end']):this['_setSuggestionRange'](_0x382897,_0x2f56ca[0x0]):_0x3abd1d['removeMarker'](_0x382897['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x153370){this['_editor']=_0x153370,this['_model']=_0x153370['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x10c62d,_0xd7b189,_0x2ecc49,_0x4b37b9,_0x5a0b29,_0x5a1f09){return new u(this['_model'],{'type':_0x10c62d,'subType':_0xd7b189,'id':_0x2ecc49,'author':_0x4b37b9,'creator':_0x4b37b9,'attributes':_0x5a0b29,'onAttributesChange':_0x5a1f09,'onAccept':(..._0x589478)=>this['getSuggestionCallback'](_0x10c62d,_0xd7b189,'accept')(..._0x589478),'onDiscard':(..._0x3d66b1)=>this['getSuggestionCallback'](_0x10c62d,_0xd7b189,'discard')(..._0x3d66b1)});}['registerCustomCallback'](_0x2be4e5,_0x83055,_0x35aaa1,_0x4605c2){const _0x29e28b=_0x2be4e5+':'+_0x83055+':'+_0x35aaa1;this['_customCallbacks']['set'](_0x29e28b,_0x4605c2);}['getSuggestionCallback'](_0x2561cc,_0x2d1adb,_0x14bb98){const _0x514f96=_0x2561cc+':'+_0x2d1adb+':'+_0x14bb98;return this['_customCallbacks']['get'](_0x514f96)||this['_defaultCallbacks']['get'](_0x2561cc+':'+_0x14bb98);}['_registerDefaultCallbacks'](){const _0x51ad66=()=>!0x1,_0x166c77=_0x4c32e8=>{_0x4c32e8['sort']((_0x11a59c,_0x441cf1)=>_0x11a59c['start']['isBefore'](_0x441cf1['start'])?0x1:-0x1),this['_model']['change'](_0x598227=>{for(const _0x119fd5 of _0x4c32e8){let _0x14d37e;_0x14d37e=_0x119fd5['end']['isAtEnd']&&_0x119fd5['end']['parent']==_0x119fd5['start']['nodeAfter']?_0x598227['createSelection'](_0x119fd5['start']['nodeAfter'],'on'):_0x598227['createSelection'](_0x119fd5),this['_model']['deleteContent'](_0x14d37e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x100b56=(_0x2d94b1,_0x40d5d1)=>{_0x40d5d1&&this['_model']['change'](_0x113e3d=>{const {commandName:_0x3abd6b,commandParams:_0x3804b2=[]}=_0x40d5d1,_0x296c32=_0x2d94b1['map'](_0x61c79e=>(Vt(_0x61c79e)&&(_0x61c79e=this['_model']['createRange'](_0x61c79e['end'])),_0x61c79e))['filter'](_0x59988a=>'$graveyard'!==_0x59988a['root']['rootName']);if(_0x296c32['length']<0x1)return;const _0x54522e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5124e0=>_0x5b36f3['fromRange'](_0x5124e0));_0x113e3d['setSelection'](_0x296c32);for(const _0x529b23 of this['_editor']['commands']['commands']())_0x529b23['refresh']();_0x3804b2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3abd6b,..._0x3804b2);const _0x5cbba4=_0x54522e['filter'](_0x1a2007=>'$graveyard'!=_0x1a2007['root']['rootName']);_0x5cbba4['length']>0x0&&_0x113e3d['setSelection'](_0x5cbba4);for(const _0x3864bc of _0x54522e)_0x3864bc['detach']();});},_0x44bec8=(_0x4e481b,_0xcbd24a)=>0x1==_0x4e481b['length']&&0x1==_0xcbd24a['length']&&_0x4e481b[0x0]['end']['isEqual'](_0xcbd24a[0x0]['start']),_0x2efed6=(_0x3afa43,_0x339bf2,_0x107df6,_0x39f573)=>Ht(_0x3afa43,_0x339bf2,_0x107df6,_0x39f573,this['_model'])?[_0x3afa43,_0x339bf2]:Ht(_0x339bf2,_0x3afa43,_0x39f573,_0x107df6,this['_model'])?[_0x339bf2,_0x3afa43]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x51ad66),this['_defaultCallbacks']['set']('insertion:discard',_0x166c77),this['_defaultCallbacks']['set']('insertion:join',_0x44bec8),this['_defaultCallbacks']['set']('insertion:chain',_0x2efed6),this['_defaultCallbacks']['set']('deletion:accept',_0x166c77),this['_defaultCallbacks']['set']('deletion:discard',_0x51ad66),this['_defaultCallbacks']['set']('deletion:join',_0x44bec8),this['_defaultCallbacks']['set']('deletion:chain',_0x2efed6),this['_defaultCallbacks']['set']('formatInline:accept',_0x100b56),this['_defaultCallbacks']['set']('formatInline:discard',_0x51ad66),this['_defaultCallbacks']['set']('formatInline:join',_0x44bec8),this['_defaultCallbacks']['set']('formatInline:chain',_0x51ad66),this['_defaultCallbacks']['set']('formatBlock:accept',_0x100b56),this['_defaultCallbacks']['set']('formatBlock:discard',_0x51ad66),this['_defaultCallbacks']['set']('formatBlock:join',_0x44bec8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x51ad66),this['_defaultCallbacks']['set']('attribute:accept',_0x51ad66),this['_defaultCallbacks']['set']('attribute:discard',(_0xd02349,_0x53d9da)=>{if(!_0x53d9da)return;const _0x38a012=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x119fd7=>{if(_0x53d9da['key']==m)for(const _0x2e35f of _0xd02349){const _0x2eeb1c=_0x2e35f['start']['nodeAfter'],_0x31dbb1=_0x53d9da['oldValue'];_0x119fd7['rename'](_0x2eeb1c,_0x31dbb1);}else{if(_0x38a012['_isBlockAttribute'](_0x53d9da['key'])){for(const _0x5aa2c0 of _0xd02349)void 0x0!==_0x53d9da['oldValue']?_0x119fd7['setAttribute'](_0x53d9da['key'],_0x53d9da['oldValue'],_0x5aa2c0['start']['nodeAfter']):_0x119fd7['removeAttribute'](_0x53d9da['key'],_0x5aa2c0['start']['nodeAfter']);}else{for(const _0x5ccdc6 of _0xd02349)_0x53d9da['oldValue']?_0x119fd7['setAttribute'](_0x53d9da['key'],_0x53d9da['oldValue'],_0x5ccdc6):_0x119fd7['removeAttribute'](_0x53d9da['key'],_0x5ccdc6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x44bec8);}}function Ot(_0x25fe8d,_0x5bbcc2,_0x5dfb06){for(const _0x3108d6 of _0x5bbcc2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3108d6['root']==_0x3108d6)return!0x1;if(!_0x5dfb06['containsItem'](_0x3108d6))return!0x1;if(_0x25fe8d['isObject'](_0x3108d6)||_0x25fe8d['isLimit'](_0x3108d6))return!0x0;}return!0x1;}function Vt(_0x335f0a){return _0x335f0a['end']['parent']==_0x335f0a['start']['nodeAfter']&&_0x335f0a['end']['isAtStart'];}function Ut(_0x4d9297,_0x30eb1f,_0x596ba8,_0x3d7553){const _0x1ec198=_0x5f5a95=>!_0x5f5a95['item']['is']('$textProxy')&&!_0x3d7553['isObject'](_0x5f5a95['item']),_0x4f5366=_0x4d9297['start']['getLastMatchingPosition'](_0x1ec198),_0x27161d=_0x4d9297['end']['getLastMatchingPosition'](_0x1ec198,{'direction':'backward'});return(!_0x4d9297['start']['isEqual'](_0x4f5366)||!_0x4d9297['end']['isEqual'](_0x27161d))&&(_0x4f5366['isBefore'](_0x27161d)?_0x596ba8['updateMarker'](_0x30eb1f,{'range':_0x596ba8['createRange'](_0x4f5366,_0x27161d)}):_0x596ba8['removeMarker'](_0x30eb1f),!0x0);}function Gt(_0x9bffbc){return _0x4ea248(_0x9bffbc);}function Ft(_0x4d1a60){const _0x499bac=_0x4d1a60['start']['nodeAfter'];return _0x499bac&&_0x499bac['is']('element');}function Pt(_0x1df9d4,_0x589a29){return null==_0x1df9d4['end']['nodeBefore']&&_0x1df9d4['end']['parent']==_0x1df9d4['start']['nodeAfter']?Lt(_0x1df9d4['start']['nodeAfter'],_0x589a29):_0x1df9d4;}function Lt(_0x47cf36,_0x3372ac){const _0x56049e=_0x3372ac['schema']['isObject'](_0x47cf36)||_0x3372ac['schema']['isSelectable'](_0x47cf36);return _0x3372ac['createRange'](_0x3372ac['createPositionAt'](_0x47cf36,'before'),_0x56049e?_0x3372ac['createPositionAfter'](_0x47cf36):_0x3372ac['createPositionAt'](_0x47cf36,'end'));}function Ht(_0x59ca56,_0x1c6ccd,_0x559f2c,_0xfcb801,_0x11a558){if(_0x59ca56['next'])return!0x1;if(!Jt(_0x59ca56,_0x1c6ccd))return!0x1;if(_0x559f2c['end']['isEqual'](_0xfcb801['start']))return!0x0;if(_0x59ca56['type']!=_0x1c6ccd['type'])return!0x1;if(!_0x559f2c['end']['isTouching'](_0xfcb801['start']))return!0x1;const _0xe94a9d=_0x11a558['createRange'](_0x559f2c['end'],_0xfcb801['start'])['getWalker']();for(const _0x5e3198 of _0xe94a9d)if(['elementStart','elementEnd']['includes'](_0x5e3198['type'])&&_0x11a558['schema']['isLimit'](_0x5e3198['item']))return!0x1;return!0x0;}function Jt(_0x251905,_0x3847f6){if(!_0x251905['_isDataLoaded']||!_0x3847f6['_isDataLoaded'])return!0x1;const _0x2772f3=new Set(Object['keys'](_0x251905['attributes'])),_0x449c95=new Set(Object['keys'](_0x3847f6['attributes']));if(_0x2772f3['delete']('groupId'),_0x449c95['delete']('groupId'),0x0==_0x2772f3['size']&&0x0==_0x449c95['size'])return!0x0;if(_0x2772f3['size']!=_0x449c95['size'])return!0x1;const _0x2029c0={..._0x251905['attributes']},_0x267f3b={..._0x3847f6['attributes']};return delete _0x2029c0['groupId'],delete _0x267f3b['groupId'],JSON['stringify'](_0x2029c0)==JSON['stringify'](_0x267f3b);}function qt(_0x38faf2,_0x54a3e5){const _0x592923=zt(_0x38faf2['attributes']),_0x5daf42=zt(_0x54a3e5);if(!_0x38faf2['_isDataLoaded'])return!0x1;for(const _0x40f60c of Object['keys'](_0x5daf42))if(!_0x468224(_0x592923[_0x40f60c],_0x5daf42[_0x40f60c]))return!0x1;return!0x0;}function zt(_0x64f25){const _0x7af544=Object['assign']({},_0x64f25);return delete _0x7af544['skipNestingCheck'],delete _0x7af544['tablePasteChainId'],_0x7af544;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x102118(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x7ad91d,_0x36fac7,_0x28cca2,_0x5db7c5){super(),this['model']=_0x36fac7,this['view']=_0x28cca2,this['commentThreadController']=_0x5db7c5,this['_editor']=_0x7ad91d,this['_acceptCommand']=_0x7ad91d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x7ad91d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3e8039,_0x525b20)=>_0x3e8039||_0x525b20),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xdea5a7=>_0xdea5a7&&this['_editor']['model']['canEditAt'](_0x36fac7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2aea97=>_0x2aea97&&this['_editor']['model']['canEditAt'](_0x36fac7['getRanges']())),this['_pendingAction']=null,_0x28cca2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x28cca2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x28cca2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x28cca2,'change:isDirty',()=>{_0x28cca2['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 _0x5880ed=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5880ed);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x425d52{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x40697a,_0x48638d,_0x441e67,_0x2524f4){super(_0x40697a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3c0433(_0x40697a,o(_0x40697a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x48638d['authoredAt']),this['bind']('authoredAt')['to'](_0x48638d),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x48638d,'authoredAt',this,'descriptionParts',(_0xd07781,_0x570070,_0x36cea2)=>{const _0x11e437=_0x36cea2['map'](_0x11c843=>ls(_0x11c843['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xd07781-0x1,_0x48638d['author']['name'],_0x570070?_0x2524f4['formatDateTime'](_0x570070):'',new DOMParser()['parseFromString'](_0x11e437,'text/html')['body']['textContent']]);}),this['focusables']=new _0x320a5b(),this['focusTracker']=new _0x365400(),this['keystrokes']=new _0x3007a1(),this['focusCycler']=new _0x40bae3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x9387b1=>_0x9387b1['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x48638d,this['_localUser']=_0x441e67,this['_config']=_0x2524f4,_0x2524f4['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x33c295(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1f614a}=this['_config'];this['commentsListView']=new _0x1f614a(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',_0xf2b472=>_0xf2b472+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2a6e60,_0x23e286)=>_0x2a6e60||!!_0x23e286);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4c193b}=this['_config'],_0x4074ed=new _0x4c193b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2f2a79=_0x4074ed['commentInputView'];return _0x4074ed['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2f2a79,'value',(_0x3d175c,_0x463225,_0x19e408)=>!!_0x19e408||_0x3d175c&&!_0x463225),_0x2f2a79['on']('submit',(_0x135b35,_0x2867dc)=>{this['fire']('addComment',_0x2867dc),_0x2f2a79['editor']['setData']('');}),_0x2f2a79['on']('cancel',()=>this['focus']()),_0x2f2a79['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4074ed;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x85c983,_0xdb1dd1,_0x557de6,_0x1e4f1e){super(_0x85c983,_0xdb1dd1,_0x557de6,_0x1e4f1e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x27e57f=>_0x27e57f&&_0x27e57f[0x0]?_0x27e57f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x38ca13,_0x1e9cd3)=>{let _0x2d88be='';for(const _0x4261b6 of _0x38ca13)_0x2d88be+='<p>'+ls(_0x4261b6['content'],_0x4261b6['color'])+'</p>';return _0x1e9cd3?_0x2d88be:_0x24e872(_0x2d88be,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1e4f1e['SuggestionView'](_0x85c983,_0xdb1dd1,{'formatDateTime':_0x1e4f1e['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1b2491=this['bindTemplate'],_0x415037=[this['suggestionView']];return this['commentsListView']&&_0x415037['push'](this['commentsListView']),this['commentThreadInputView']&&_0x415037['push'](this['commentThreadInputView']),_0x415037['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1b2491['if']('isActive','ck-suggestion-wrapper--active'),_0x1b2491['to']('type',_0x5f4aa8=>'ck-suggestion-'+_0x5f4aa8),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':0x0,'role':'listitem','aria-label':_0x1b2491['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x415037};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ce extends _0x425d52{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x6af8cd,_0x3bea41,_0x414dd5){super(_0x6af8cd),this['_model']=_0x3bea41,this['_config']=_0x414dd5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3bea41),this['acceptButton']=this['_createButton'](o(_0x6af8cd,'Accept\x20suggestion'),_0x4a4e5c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x6af8cd,'Discard\x20suggestion'),_0x4a4e5c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x11a006(_0x6af8cd,_0x3bea41['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x320a5b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x365400(),this['keystrokes']=new _0x3007a1(),this['focusCycler']=new _0x40bae3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xca11a6=>_0xca11a6['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x191f08=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x191f08['innerHTML']=this['description'],this['on']('change:description',(_0xa6dab9,_0x28dda7,_0x2af189)=>{_0x191f08['innerHTML']=_0x2af189;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x33f2c3=this['bindTemplate'],_0x4042ef=[{'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':_0x33f2c3['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x33f2c3['to']('authoredAt',_0x5e9183=>this['_config']['formatDateTime'](_0x5e9183))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x4042ef['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x4042ef}]};}['focus'](){this['element']['focus']();}['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;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x349d12,_0x44d3f8,_0xf4e6ad,_0x45e5f2,_0x154823){const _0x46ab74=new _0x4a9266(this['locale']);return _0x46ab74['set']({'label':_0x349d12,'icon':_0x44d3f8,'tooltip':!0x0,'tooltipPosition':_0x154823}),_0x46ab74['extendTemplate']({'attributes':{'class':_0xf4e6ad}}),_0x46ab74['on']('execute',()=>{this['fire'](_0x45e5f2,this['_model']['id']);}),_0x46ab74;}['_setupKeyboardNavigation'](){const _0x57f278=this['element'];this['keystrokes']['listenTo'](_0x57f278);for(const _0x4242d0 of this['focusables'])this['focusTracker']['add'](_0x4242d0['element']),this['keystrokes']['listenTo'](_0x4242d0['element']);this['keystrokes']['set']('enter',(_0x2328c8,_0x54091c)=>{_0x57f278===_0x2328c8['target']&&(this['focusCycler']['focusFirst'](),_0x54091c());}),this['keystrokes']['set']('esc',(_0xd55ce9,_0x1e7fd8)=>{_0x57f278!==_0xd55ce9['target']&&(this['focus'](),_0x1e7fd8());});}}var he='<!--\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\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x2aa107{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3544d0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x174dcb){super(_0x174dcb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x18a24a=this['editor']['config'];_0x18a24a['define']('trackChanges.SuggestionThreadView',re),_0x18a24a['define']('trackChanges.SuggestionView',ce),_0x18a24a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x18a24a['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x13b385,_0x5e3fd7){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4fa995,_0x1c2a6c]of this['_handleControllerBuffer']){const _0x4c8ac4=this['_suggestionToController']['has'](_0x4fa995);_0x4c8ac4||_0x1c2a6c?_0x4c8ac4&&_0x1c2a6c&&this['_destroyController'](_0x4fa995):this['_initializeController'](_0x4fa995);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x13b385,_0x5e3fd7);}['init'](){const _0x1c4788=this['editor'],_0x1b92a6=_0x1c4788['plugins']['get']('TrackChangesEditing'),_0x5cbf70=_0x1c4788['plugins']['get']('Annotations'),_0x2bd4f5=_0x1c4788['plugins']['get']('EditorAnnotations'),_0x345dc8=_0x1c4788['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2bd4f5['addSourceCollector'](()=>{const _0x1088b4=[];for(const [_0x42ffbf,_0x3b650f]of Array['from'](this['_suggestionToController'])){const _0x28c504=_0x42ffbf['getAllAdjacentSuggestions'](),_0x337b5d=[];for(const _0x1f2fe5 of _0x28c504){if(!_0x1f2fe5['isInContent'])continue;if(_0x1f2fe5['isMultiRange']){_0x337b5d['push'](..._0x1f2fe5['getRanges']());continue;}const _0x5acf3d=_0x1f2fe5['getFirstRange']();if(_0x337b5d['length']>0x0){const _0x576879=_0x337b5d[0x0]['getJoined'](_0x5acf3d);if(_0x576879){_0x337b5d[0x0]=_0x576879;continue;}}_0x337b5d['push'](_0x5acf3d);}_0x1088b4['push']([_0x3b650f['view'],_0x337b5d]);}return _0x1088b4;}),this['listenTo'](_0x1b92a6,'suggestionLoaded',(_0x1a3590,_0x10b77b)=>{this['listenTo'](_0x10b77b,'change:previous',(_0x5d58f3,_0x5bd60d,_0x847b0c,_0x29c886)=>{_0x10b77b['isInContent']&&(null==_0x847b0c?(this['_updateController'](_0x29c886['head']),this['_handleSuggestionControllerDelayed'](_0x10b77b,!0x1)):(this['_updateController'](_0x847b0c['head']),null==_0x29c886&&this['_handleSuggestionControllerDelayed'](_0x10b77b,!0x0)));}),null!==_0x10b77b['previous']?this['_updateController'](_0x10b77b['head']):this['_handleSuggestionControllerDelayed'](_0x10b77b,!0x1);}),this['listenTo'](_0x1b92a6,'suggestionUnloaded',(_0x33f4c3,_0x31f2e7,_0x4147e1)=>{this['stopListening'](_0x31f2e7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x31f2e7),this['_suggestionToController']['has'](_0x31f2e7)&&this['_destroyController'](_0x31f2e7),_0x4147e1&&this['_updateController'](_0x4147e1['head']);}),this['listenTo'](_0x1b92a6,'suggestionChanged',(_0x1bcee1,_0x495a05)=>{this['_updateController'](_0x495a05);}),this['listenTo'](_0x5cbf70,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x345dc8,'addComment',(_0x4cf6bf,{threadId:_0x294517,isFromAdapter:_0x483900})=>{if(_0x483900||!_0x1b92a6['hasSuggestion'](_0x294517))return;const _0x5a07f8=_0x1b92a6['getSuggestion'](_0x294517);this['_suggestionToController']['get'](_0x5a07f8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x437910=this['editor']['plugins']['get']('Annotations'),_0x332050=this['editor']['plugins']['get']('TrackChangesEditing'),_0x163af7=Array['from'](_0x437910['activeAnnotations'],_0x46ed94=>_0x46ed94['innerView'])['filter'](_0x4f592d=>this['_viewToController']['has'](_0x4f592d)),_0x317750=[];for(const _0x16da45 of _0x163af7){const _0x16318e=this['_viewToController']['get'](_0x16da45)['model']['getAllAdjacentSuggestions']();_0x317750['push'](..._0x16318e['reduce']((_0x10c6d9,_0x3a7ab4)=>[..._0x10c6d9,..._0x3a7ab4['getMarkerNames']()],[]));}_0x332050['activeMarkers']=_0x317750;}['_addUIComponentsToFactory'](){const _0x156289=this['editor'],_0x198321=_0x156289['locale'],_0x11ae1e=o(_0x198321,'Track\x20changes'),_0x52aefa=new Wt([{'type':'switchbutton','model':new _0x3cb1a1({'withText':!0x0,'isToggleable':!0x0,'label':_0x11ae1e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3cb1a1({'withText':!0x0,'label':o(_0x198321,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3cb1a1({'withText':!0x0,'label':o(_0x198321,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3cb1a1({'withText':!0x0,'label':o(_0x198321,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3cb1a1({'withText':!0x0,'label':o(_0x198321,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x60df9a of _0x52aefa)if(me(_0x60df9a)){const _0x319a07=_0x156289['commands']['get'](_0x60df9a['model']['commandName']);_0x60df9a['model']['bind']('isOn','isEnabled')['to'](_0x319a07,'value','isEnabled');}_0x156289['ui']['componentFactory']['add']('trackChanges',_0x3878a4=>this['_createToolbarButton'](_0x3878a4,_0x52aefa,_0x11ae1e)),_0x156289['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4499ff=>this['_createMenuBarMenu'](_0x4499ff,_0x52aefa,_0x11ae1e));}['_createToolbarButton'](_0xd0f5f5,_0x48ab15,_0x34e7a8){const _0x33e7d9=Qt(_0xd0f5f5,_0x2372dc),_0x196778=this['editor']['commands']['get']('trackChanges');_0x33e7d9['buttonView']['set']({'tooltip':_0x34e7a8,'label':_0x34e7a8,'icon':he}),_0x33e7d9['buttonView']['bind']('isOn')['to'](_0x196778,'value'),_0x33e7d9['buttonView']['on']('execute',()=>{_0x196778['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x33e7d9,_0x48ab15,{'role':'menu'});const _0x3c7b99=[];for(const _0x35431b of _0x48ab15)me(_0x35431b)&&_0x3c7b99['push'](this['editor']['commands']['get'](_0x35431b['model']['commandName']));const _0x429299=_0x33e7d9['buttonView'];return _0x429299['actionView']['unbind']('isEnabled'),_0x429299['arrowView']['unbind']('isEnabled'),_0x429299['actionView']['bind']('isEnabled')['to'](_0x196778,'isEnabled'),_0x429299['arrowView']['bind']('isEnabled')['toMany'](_0x3c7b99,'isEnabled',(..._0x541313)=>_0x541313['some'](_0x17eb76=>_0x17eb76)),_0x33e7d9['on']('execute',_0x2cb395=>{this['editor']['execute'](_0x2cb395['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x33e7d9;}['_createMenuBarMenu'](_0x2ff851,_0x520aeb,_0x5c147f){const _0x47722f=new Yt(_0x2ff851),_0x2f6faa=this['editor']['commands']['get']('trackChanges');_0x47722f['buttonView']['set']({'label':_0x5c147f,'icon':he});const _0x1577d7=new Zt(_0x2ff851);for(const _0x39f268 of _0x520aeb){if('separator'==_0x39f268['type']){_0x1577d7['items']['add'](new Xt(_0x2ff851));continue;}const _0x9880b1=new te(_0x2ff851,_0x47722f),_0xea4064=new _0x334699(_0x2ff851),_0x2a1528=_0x39f268['model'];_0xea4064['bind'](...Object['keys'](_0x2a1528))['to'](_0x2a1528),_0xea4064['delegate']('execute')['to'](_0x47722f),_0xea4064['on']('execute',()=>{this['editor']['execute'](_0x2a1528['commandName']),this['editor']['editing']['view']['focus']();}),_0x9880b1['children']['add'](_0xea4064),_0x1577d7['items']['add'](_0x9880b1);}return _0x47722f['bind']('isEnabled')['to'](_0x2f6faa,'isEnabled'),_0x47722f['panelView']['children']['add'](_0x1577d7),_0x47722f;}['_initializeController'](_0x542d88){const _0x29c9b2=this['editor'],_0x53c55b=_0x29c9b2['config'],_0x5537d8=_0x29c9b2['plugins']['get']('Annotations'),_0x4208a1=_0x29c9b2['plugins']['get']('CommentsRepository'),_0x1906b9=_0x29c9b2['plugins']['get']('EditorAnnotations'),_0x4714cc=_0x29c9b2['plugins']['get'](_0x3544d0)['me'],_0x3cb3da=_0x53c55b['get']('trackChanges')['SuggestionThreadView'],_0x4a6f6d=_0x53c55b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x16543a,CommentThreadInputView:_0x5c87a3}=_0x29c9b2['plugins']['get']('CommentsUI');let _0xff52e2,_0x35740c;this['_annotationViews']['has'](_0x542d88['id'])?(_0x35740c=this['_annotationViews']['get'](_0x542d88['id']),_0xff52e2=_0x35740c['mainView']):(_0xff52e2=new _0x3cb3da(_0x29c9b2['locale'],_0x542d88,_0x4714cc,{'disableComments':this['_disableComments'],'editorConfig':_0x53c55b['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x53c55b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x53c55b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x53c55b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25c6ce(_0x53c55b['get']('locale')),'CommentView':_0x53c55b['get']('comments')['CommentView'],'CommentsListView':_0x16543a,'CommentThreadInputView':_0x5c87a3,'SuggestionView':_0x4a6f6d}),_0xff52e2['suggestionView']['acceptButton']['on']('execute',()=>{_0x29c9b2['editing']['view']['focus']();}),_0xff52e2['suggestionView']['discardButton']['on']('execute',()=>{_0x29c9b2['editing']['view']['focus']();}),_0x35740c=_0x5537d8['createAnnotationView'](this['editor']['locale'],_0xff52e2),_0x35740c['bind']('isDirty')['to'](_0xff52e2,'isDirty'),_0x35740c['bind']('length')['to'](_0xff52e2),_0x35740c['bind']('type')['to'](_0xff52e2,'type',_0xc8e64d=>'suggestion-'+_0xc8e64d),this['listenTo'](_0xff52e2,'escape',()=>{_0x29c9b2['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x542d88['id'],_0x35740c));const _0x4d88b2=_0x4208a1['createCommentThreadController'](_0x542d88['commentThread'],_0xff52e2),_0x366a2a=new ae(_0x29c9b2,_0x542d88,_0xff52e2,_0x4d88b2),_0x21c9c6=_0x542d88['getAllAdjacentSuggestions']()['filter'](_0x20d2da=>_0x20d2da['isInContent']);_0xff52e2['descriptionParts']=_0x29c9b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x21c9c6),this['_suggestionToController']['set'](_0x542d88,_0x366a2a),this['_viewToController']['set'](_0xff52e2,_0x366a2a);const _0x304117=_0x5537d8['createAnnotation']({'view':_0x35740c,'target':()=>{const _0x533927=[],_0x3ec17c=_0x542d88['getAllAdjacentSuggestions']()['filter'](_0xf27c09=>_0xf27c09['isInContent']);for(const _0x5a0bfa of _0x3ec17c)_0x533927['push'](..._0x5a0bfa['getMarkers']());return _0x101415(_0x29c9b2['editing'],_0x533927);},'type':()=>'suggestion-'+_0x366a2a['view']['type']});_0x4208a1['_bindAnnotationToEditors'](_0xff52e2,_0x304117),_0x5537d8['add'](_0x304117),_0x1906b9['registerAnnotation'](_0x304117);}['_destroyController'](_0x469b85){const _0xa43898=this['editor']['plugins']['get']('CommentsRepository'),_0x3bea8c=this['editor']['plugins']['get']('Annotations'),_0x46e0bc=this['_suggestionToController']['get'](_0x469b85),_0x37eebd=_0x46e0bc['view'],_0x67b136=_0x3bea8c['getByInnerView'](_0x37eebd);_0xa43898['_unbindEditors'](_0x37eebd),_0x67b136&&_0x3bea8c['remove'](_0x67b136),this['_suggestionToController']['delete'](_0x469b85),this['_viewToController']['delete'](_0x37eebd),_0x46e0bc['destroy']();}['_updateController'](_0x47cff3){if(!_0x47cff3['isInContent']||!this['_suggestionToController']['has'](_0x47cff3))return;const _0x143a55=this['editor']['plugins']['get']('TrackChangesEditing'),_0x427da8=this['_suggestionToController']['get'](_0x47cff3),_0x57dc0e=_0x47cff3['getAllAdjacentSuggestions']();_0x427da8['view']['descriptionParts']=_0x143a55['descriptionFactory']['getDescriptions'](_0x57dc0e);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x3841be,(_0x1fdf77,_0x5b46b3)=>{const _0x256a94=this['editor']['plugins']['get'](k),_0x36d6ea=this['editor']['plugins']['get'](p);if(!_0x36d6ea['activeMarkers']['length'])return;const {id:_0x57e96c}=_0x36d6ea['_splitMarkerName'](_0x36d6ea['activeMarkers'][0x0]),_0x1431f6=_0x256a94['getSuggestion'](_0x57e96c);_0x1431f6&&(this['_suggestionToController']['get'](_0x1431f6)['view']['focus'](),_0x5b46b3());});}['destroy'](){for(const _0x184b53 of this['_suggestionToController']['keys']())this['_destroyController'](_0x184b53);for(const _0x58b6d0 of this['_annotationViews']['values']())_0x58b6d0['mainView']['destroy']();super['destroy']();}}function me(_0x4515dd){return'model'in _0x4515dd;}class k extends _0x2aa107{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x28a170){this['editor']['plugins']['get'](p)['adapter']=_0x28a170;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3ad20d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3ad20d);}['getSuggestions']({skipNotAttached:_0x28f83a=!0x1,toJSON:_0x245986=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x28f83a,'toJSON':_0x245986});}['getSuggestion'](_0x4f3d3a){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4f3d3a);}}const T=['Pagination'];class P extends _0x2aa107{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5592c6=this['editor'];if(_0x5592c6['config']['define']('trackChangesData.editorCreator',_0x53bce3=>{const _0x323c4c=_0x5592c6['model']['document']['getRootNames']()['reduce']((_0x4175b7,_0x25be16)=>(_0x4175b7[_0x25be16]='',_0x4175b7),{});return _0x5592c6['constructor']['create'](_0x323c4c,_0x53bce3);}),'function'!=typeof _0x5592c6['config']['get']('trackChangesData')['editorCreator'])throw new _0x58ef43('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1d6f81){return N(this['editor'],!0x0,_0x1d6f81);}['getDataWithDiscardedSuggestions'](_0x4b75f5){return N(this['editor'],!0x1,_0x4b75f5);}}class D extends _0x2aa107{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2cd059){super(_0x2cd059),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(_0x39a5d8){return void 0x0!==_0x39a5d8['getRootsAttributes'];}async function N(_0x62c8b4,_0x358bc2,_0x4bc526){const _0x5a2bac=_0x23cd20(_0x62c8b4,T);_0x5a2bac['plugins']['push'](p,D),_0x5a2bac['rootsAttributes']=v(_0x62c8b4)?_0x62c8b4['getRootsAttributes']():void 0x0;const _0x3198cb=document['createDocumentFragment'](),_0x37a3f8=_0x62c8b4['config']['get']('trackChangesData')['editorCreator'],_0x8f39ec=await _0x37a3f8(_0x5a2bac,()=>function(_0x4cb410){const _0x1d57b7=document['createElement']('div');return _0x4cb410['appendChild'](_0x1d57b7),_0x1d57b7;}(_0x3198cb));!function(_0x908db3,_0x2e4feb){const _0x4c41f3=_0x908db3['model']['document']['getRootNames']()['reduce']((_0x5e4935,_0x16b057)=>(_0x5e4935[_0x16b057]=_0x908db3['data']['get']({'rootName':_0x16b057}),_0x5e4935),{}),_0x41dcf5=_0x908db3['plugins']['get']('Users')['users']['map'](_0x1f59ba=>({'id':_0x1f59ba['id'],'name':_0x1f59ba['name']})),_0x121fd2=_0x908db3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x310cde=_0x908db3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x246a62=_0x2e4feb['plugins']['get']('Users'),_0x101705=_0x2e4feb['plugins']['get']('TrackChangesEditing'),_0x6fcfb4=_0x2e4feb['plugins']['get']('CommentsRepository');for(const _0x163822 of _0x41dcf5)_0x246a62['getUser'](_0x163822['id'])||_0x246a62['addUser'](_0x163822);_0x246a62['me']||_0x246a62['useAnonymousUser']();for(const _0x50931f of _0x310cde)_0x6fcfb4['addCommentThread'](_0x50931f);for(const _0x3afae6 of _0x121fd2)_0x101705['addSuggestionData'](_0x3afae6);_0x2e4feb['data']['set'](_0x4c41f3);}(_0x62c8b4,_0x8f39ec),_0x8f39ec['execute'](_0x358bc2?'acceptAllSuggestions':'discardAllSuggestions');const _0x4908b5=v(_0x8f39ec)?_0x8f39ec['getFullData'](_0x4bc526):_0x8f39ec['data']['get'](_0x4bc526);return await _0x8f39ec['destroy'](),_0x4908b5;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|