@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241001.0 → 0.0.0-nightly-20241003.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +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.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x9ee3f1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x9c7a50,_0x1c3bef){super(),this['id']=_0x1c3bef['id'],this['type']=_0x1c3bef['type'],this['subType']=_0x1c3bef['subType']||null,this['author']=_0x1c3bef['author'],this['creator']=_0x1c3bef['creator']||_0x1c3bef['author'],this['isExternal']=Boolean(_0x1c3bef['attributes']&&_0x1c3bef['attributes']['@external']),this['data']=null,this['_model']=_0x9c7a50,this['_onAccept']=_0x1c3bef['onAccept'],this['_onDiscard']=_0x1c3bef['onDiscard'],this['_onAttributesChange']=_0x1c3bef['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1c3bef['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 _0x40c681=this;for(;_0x40c681['previous'];)_0x40c681=_0x40c681['previous'];return _0x40c681;}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'](_0x4aa50b){this['_markerNames']['add'](_0x4aa50b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2a4ce4=>this['_model']['markers']['get'](_0x2a4ce4))['filter'](_0x12aa20=>_0x12aa20);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xca71f2=>{for(const _0x32171d of this['getMarkers']())_0xca71f2['removeMarker'](_0x32171d);}),this['_markerNames']['clear']();}['removeMarker'](_0x533b92){this['_model']['change'](_0x338625=>{_0x338625['removeMarker'](_0x533b92);}),this['_markerNames']['delete'](_0x533b92);}['addRange'](_0x53a0fd){const _0x5bf126='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5bf126),this['_model']['change'](_0x2e2b14=>{_0x2e2b14['addMarker'](_0x5bf126,{'range':_0x53a0fd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3876c0){for(const _0x3c8ea1 of this['getRanges']())if(_0x3c8ea1['isIntersecting'](_0x3876c0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x50fe85=>_0x50fe85['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x498772,_0x3c9ba4)=>[..._0x498772,..._0x3c9ba4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1b8872=this['getRanges']();if(0x1!=_0x1b8872['length'])return null;const _0x548cba=_0x1b8872[0x0],_0x29e5b4=_0x548cba['start']['nodeAfter'],_0x2ddc76=_0x548cba['end']['nodeBefore'];return _0x29e5b4 instanceof _0x355757?_0x29e5b4!=_0x2ddc76?null:_0x29e5b4: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 _0x569dbe=[];let _0x13a17a=this['head'];for(;_0x13a17a;)_0x569dbe['push'](_0x13a17a),_0x13a17a=_0x13a17a['next'];return _0x569dbe;}['setAttribute'](_0x2f88df,_0x5854da){const _0x27400e=_0x4d2352(this['attributes']);_0x394d02(_0x27400e,_0x2f88df,_0x5854da),_0x3bc98d(_0x27400e,this['attributes'])||(this['attributes']=_0x27400e,this['_onAttributesChange'](_0x27400e));}['removeAttribute'](_0x419338){const _0x205984=_0x4d2352(this['attributes']);_0x4bd5bb(_0x205984,_0x419338),_0x3bc98d(_0x205984,this['attributes'])||(this['attributes']=_0x205984,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 _0x2b4c20()['substr'](0x1,0x5);}}function o(_0x1869fe,_0x2ff590,_0x4ab5ce){const t=_0x1869fe['t'];switch(_0x2ff590){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',_0x4ab5ce);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4ab5ce);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4ab5ce);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4ab5ce);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4ab5ce);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',_0x4ab5ce);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4ab5ce);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',_0x4ab5ce);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4ab5ce);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4ab5ce);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4ab5ce);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4ab5ce);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4ab5ce);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4ab5ce);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4ab5ce);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4ab5ce);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4ab5ce);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4ab5ce);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4ab5ce);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4ab5ce);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4ab5ce);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4ab5ce);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4ab5ce);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4ab5ce);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4ab5ce);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4ab5ce);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4ab5ce);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4ab5ce);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4ab5ce);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4ab5ce);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'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4ab5ce);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'},_0x4ab5ce);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4ab5ce);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4ab5ce);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'},_0x4ab5ce);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'},_0x4ab5ce);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'},_0x4ab5ce);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4ab5ce);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'},_0x4ab5ce);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'},_0x4ab5ce);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'},_0x4ab5ce);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2ff590;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5c0bd9,_0x554eba){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5c0bd9,this['_locale']=_0x554eba;}['getDescriptions'](_0x1483c2){const _0x39c2cd=[],_0x3b4ad2=new Set(),_0x1b7f6b=new Set();for(let _0x131fc1=0x0;_0x131fc1<_0x1483c2['length'];_0x131fc1++){const _0x57b49c=_0x1483c2[_0x131fc1];if(!_0x57b49c['isInContent'])continue;const _0x25ffc7=this['_handleCustomCallbackDescription'](_0x57b49c);if(_0x25ffc7){if(null!=_0x57b49c['subType']){if(_0x3b4ad2['has'](_0x57b49c['subType']))continue;_0x3b4ad2['add'](_0x57b49c['subType']);}_0x39c2cd['push'](_0x25ffc7);}else{if('attribute'!=_0x57b49c['type'])'insertion'!=_0x57b49c['type']&&'deletion'!=_0x57b49c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x39c2cd,_0x57b49c,_0x1483c2[_0x131fc1+0x1]);else{const _0x2b06c3=_0x57b49c['data']['key'];if(_0x1b7f6b['has'](_0x2b06c3))continue;_0x1b7f6b['add'](_0x57b49c['data']['key']),_0x2b06c3==m?this['_handleRenameSuggestionDescription'](_0x39c2cd,_0x57b49c):this['_handleAttributeSuggestionDescription'](_0x39c2cd,_0x57b49c);}}}return this['_resolveDescriptionItems'](_0x39c2cd);}['registerDescriptionCallback'](_0xff96f8){this['_customCallbacks']['push'](_0xff96f8);}['registerElementLabel'](_0x1156ab,_0xf5fd05,_0x5639b9=_0x408fd7['normal']){'function'==typeof _0x1156ab?_0x5d21a8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1156ab,'label':_0xf5fd05,'priority':_0x5639b9}):this['_itemLabels']['set'](_0x1156ab,_0xf5fd05);}['registerAttributeLabel'](_0x3a80c3,_0x22913d){this['_attributeLabels']['set'](_0x3a80c3,_0x22913d);}['getItemLabel'](_0x1e28e4,_0x125d88=0x1){let _0x44b649;for(const _0x400ea9 of this['_itemLabelsCallbacks'])if(_0x400ea9['matchingCallback'](_0x1e28e4)){_0x44b649=_0x400ea9['label'];break;}return _0x44b649||(_0x44b649=this['_itemLabels']['get'](_0x1e28e4['name'])),_0x44b649?_0x44b649(_0x125d88):0x1!==_0x125d88?_0x125d88+'\x20'+_0x1e28e4['name']+'s':''+_0x1e28e4['name'];}['_addDescriptionItems'](_0x25f79f,_0x21ce77){const _0x4dd1d3=_0x21ce77['getFirstRange']()['getWalker'](),_0x2577d2='insertion'==_0x21ce77['type']?'add':'remove';for(const _0x2f1f88 of _0x4dd1d3){const _0x165722=_0x2f1f88['item'],_0x33f28f=_0x25f79f[_0x25f79f['length']-0x1];if(_0x165722['is']('$textProxy'))_0x33f28f&&_0x33f28f['type']['indexOf']('Container')>-0x1&&_0x25f79f['pop'](),_0x33f28f&&'text'==_0x33f28f['type']?_0x33f28f[_0x2577d2]+=_0x165722['data']:_0x25f79f['push']({'type':'text','add':'add'==_0x2577d2?_0x165722['data']:'','remove':'remove'==_0x2577d2?_0x165722['data']:''});else{if(this['_schema']['isObject'](_0x165722)){const _0x2a3cf7=_0x165722;if(_0x33f28f&&_0x33f28f['type']['indexOf']('Container')>-0x1&&_0x25f79f['pop'](),'elementEnd'==_0x2f1f88['type'])continue;_0x33f28f&&_0x33f28f['type']==_0x2577d2+'Object'&&_0x33f28f['element']['name']==_0x2a3cf7['name']?_0x33f28f['quantity']++:_0x25f79f['push']({'type':_0x2577d2+'Object','element':_0x2a3cf7,'quantity':0x1}),_0x4dd1d3['skip'](_0x2c9784=>!('elementEnd'==_0x2c9784['type']&&_0x2c9784['item']==_0x165722));}else{if(this['_schema']['checkChild'](_0x165722,'$text')||_0x165722['is']('element','softBreak')){const _0x55de4c=_0x165722;if('add'==_0x2577d2&&'elementStart'==_0x2f1f88['type']||'remove'==_0x2577d2&&'elementEnd'==_0x2f1f88['type'])continue;if(_0x33f28f&&-0x1==_0x33f28f['type']['indexOf']('Container')){'text'==_0x33f28f['type']&&(_0x33f28f[_0x2577d2]+='\x0a');continue;}let _0x41eee0;if(_0x41eee0='add'==_0x2577d2?_0x55de4c['nextSibling']&&!this['_schema']['isObject'](_0x55de4c['nextSibling'])?_0x55de4c['nextSibling']:null:_0x55de4c['previousSibling']&&!this['_schema']['isObject'](_0x55de4c['previousSibling'])?_0x55de4c['previousSibling']:null,_0x55de4c['isEmpty']||_0x41eee0&&_0x41eee0['isEmpty']){const _0x3b775c=_0x41eee0&&_0x41eee0['isEmpty']?_0x41eee0:_0x55de4c;_0x33f28f&&_0x33f28f['type']==_0x2577d2+'EmptyContainer'&&_0x33f28f['element']['name']==_0x3b775c['name']?_0x33f28f['quantity']++:_0x25f79f['push']({'type':_0x2577d2+'EmptyContainer','element':_0x3b775c,'quantity':0x1});}else _0x25f79f['push']({'type':_0x2577d2+'Container','element':_0x55de4c});}}}}}['_resolveDescriptionItems'](_0x3b0900){const _0x25aa61=this['_locale'],_0x36dcd7=[],_0x2ccaec=[],_0x33f967=[];for(const _0x166dc5 of _0x3b0900)switch(_0x166dc5['type']){case'text':if(_0x166dc5['add']=_0x166dc5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x166dc5['remove']=_0x166dc5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x166dc5['add']&&''!=_0x166dc5['remove']){_0x36dcd7['push']({'type':'replace','content':o(_0x25aa61,'REPLACE_TEXT',['\x22'+_0x166dc5['remove']+'\x22','\x22'+_0x166dc5['add']+'\x22'])});continue;}if(null!=_0x166dc5['add']['match'](/^ +$/)){_0x36dcd7['push']({'type':'insertion','content':o(_0x25aa61,'*Insert:*\x20%0',o(_0x25aa61,'ELEMENT_SPACE',_0x166dc5['add']['length']))});continue;}if(null!=_0x166dc5['remove']['match'](/^ +$/)){_0x36dcd7['push']({'type':'deletion','content':o(_0x25aa61,'*Remove:*\x20%0',o(_0x25aa61,'ELEMENT_SPACE',_0x166dc5['remove']['length']))});continue;}if(''!=_0x166dc5['add']){_0x36dcd7['push']({'type':'insertion','content':o(_0x25aa61,'*Insert:*\x20%0','\x22'+_0x166dc5['add']+'\x22')});continue;}_0x36dcd7['push']({'type':'deletion','content':o(_0x25aa61,'*Remove:*\x20%0','\x22'+_0x166dc5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x36dcd7['push']({'type':'insertion','content':o(_0x25aa61,'*Insert:*\x20%0',this['getItemLabel'](_0x166dc5['element'],_0x166dc5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x36dcd7['push']({'type':'deletion','content':o(_0x25aa61,'*Remove:*\x20%0',this['getItemLabel'](_0x166dc5['element'],_0x166dc5['quantity']))});continue;case'addContainer':_0x36dcd7['push']({'type':'insertion','content':o(_0x25aa61,'*Split:*\x20%0',this['getItemLabel'](_0x166dc5['element'],_0x166dc5['quantity']))});continue;case'removeContainer':_0x36dcd7['push']({'type':'deletion','content':o(_0x25aa61,'*Merge:*\x20%0',this['getItemLabel'](_0x166dc5['element'],_0x166dc5['quantity']))});continue;case'addFormat':_0x2ccaec['push'](_0x166dc5['key']);continue;case'removeFormat':_0x33f967['push'](_0x166dc5['key']);continue;default:_0x36dcd7['push'](_0x166dc5);}if(_0x2ccaec['length']){const _0x1d2b68=_0x2ccaec['map'](_0x34ef41=>this['_attributeLabels']['has'](_0x34ef41)?this['_attributeLabels']['get'](_0x34ef41):_0x34ef41)['join'](',\x20');_0x36dcd7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1d2b68)});}if(_0x33f967['length']){const _0x3ca9c3=_0x33f967['map'](_0x4ec983=>this['_attributeLabels']['has'](_0x4ec983)?this['_attributeLabels']['get'](_0x4ec983):_0x4ec983)['join'](',\x20');_0x36dcd7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3ca9c3)});}return _0x36dcd7;}['_handleCustomCallbackDescription'](_0x5e28ee){for(const _0x1e99a6 of this['_customCallbacks']){const _0x2f79f3=_0x1e99a6(_0x5e28ee);if(_0x2f79f3&&'type'in _0x2f79f3)return _0x2f79f3;}}['_handleAttributeSuggestionDescription'](_0x2baab3,_0x2570d2){const _0x2b39aa=_0x2570d2['data'],_0x3112e2=void 0x0===_0x2b39aa['newValue']?'removeFormat':'addFormat';_0x2baab3['push']({'type':_0x3112e2,'key':_0x2b39aa['key']});}['_handleRenameSuggestionDescription'](_0x5df15d,_0x384d3a){_0x5df15d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x384d3a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x53d26d,_0x58934a,_0x1f0313){if(this['_addDescriptionItems'](_0x53d26d,_0x58934a),_0x1f0313&&_0x1f0313['getFirstRange']()&&!_0x58934a['getFirstRange']()['end']['isEqual'](_0x1f0313['getFirstRange']()['start'])){const _0x5486fa=_0x53d26d[_0x53d26d['length']-0x1],_0x4d4c5f='insertion'==_0x58934a['type']?'add':'remove';_0x5486fa&&'text'==_0x5486fa['type']&&(_0x5486fa[_0x4d4c5f]+='\x0a');}}}class V extends _0x328234{['afterInit'](){const _0x17c528=this['editor'],_0x39f7b9=_0x17c528['plugins']['get']('TrackChangesEditing');_0x17c528['commands']['get']('showAIAssistant')&&_0x39f7b9['enableCommand']('showAIAssistant');}}class U extends _0x328234{['afterInit'](){const _0x407c78=this['editor'],_0x4b2a5a=_0x407c78['locale'];if(!_0x407c78['plugins']['has']('AlignmentEditing'))return;const _0x1b3618=_0x407c78['plugins']['get']('TrackChangesEditing');_0x1b3618['enableDefaultAttributesIntegration']('alignment'),_0x1b3618['registerBlockAttribute']('alignment'),_0x1b3618['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4b2a5a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x440ea5=this['editor'],_0x9e44e0=_0x440ea5['locale'];_0x440ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x376258=>{if('formatBlock'!=_0x376258['type'])return;const {data:_0x47e65d}=_0x376258;if(_0x47e65d&&'alignment'==_0x47e65d['commandName']){const _0x1aecd3=_0x47e65d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x9e44e0,'*Format:*\x20%0',function(_0x281a97){switch(_0x281a97){case'left':return o(_0x9e44e0,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x9e44e0,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x9e44e0,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x9e44e0,'FORMAT_JUSTIFY_TEXT');}}(_0x1aecd3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x328234{['afterInit'](){const _0x552ccc=this['editor'],_0x28f0ff=_0x552ccc['plugins']['get']('TrackChangesEditing'),_0x2c5ffe=_0x552ccc['locale'];for(const _0x1a90a7 of ti){if(!_0x552ccc['plugins']['has'](_0x1a90a7))continue;const _0x4698f1=_0x1a90a7['slice'](0x0,-0x7)['toLowerCase'](),_0x434c50='FORMAT_'+_0x4698f1['toUpperCase']();_0x28f0ff['enableDefaultAttributesIntegration'](_0x4698f1),_0x28f0ff['registerInlineAttribute'](_0x4698f1),_0x28f0ff['descriptionFactory']['registerAttributeLabel'](_0x4698f1,o(_0x2c5ffe,_0x434c50));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51260d=this['editor'],_0x103af9=_0x51260d['locale'],_0x4270c7=_0x51260d['plugins']['get']('TrackChangesEditing');function _0x464c18(_0x41b5e0,_0x590b87){_0x4270c7['descriptionFactory']['registerDescriptionCallback'](_0x589c4c=>{if('formatInline'!=_0x589c4c['type'])return;const {data:_0x3918a0}=_0x589c4c;return _0x3918a0&&_0x3918a0['commandName']===_0x41b5e0?_0x3918a0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x103af9,'*Format:*\x20%0',_0x590b87)}:{'type':'format','content':o(_0x103af9,'*Remove\x20format:*\x20%0',_0x590b87)}:void 0x0;});}_0x464c18('bold',o(_0x103af9,'FORMAT_BOLD')),_0x464c18('italic',o(_0x103af9,'FORMAT_ITALIC')),_0x464c18('underline',o(_0x103af9,'FORMAT_UNDERLINE')),_0x464c18('code',o(_0x103af9,'FORMAT_CODE')),_0x464c18('strikethrough',o(_0x103af9,'FORMAT_STRIKETHROUGH')),_0x464c18('subscript',o(_0x103af9,'FORMAT_SUBSCRIPT')),_0x464c18('superscript',o(_0x103af9,'FORMAT_SUPERSCRIPT'));}}class F extends _0x328234{['afterInit'](){const _0x4861b8=this['editor'],_0x4448b6=_0x4861b8['locale'];if(!_0x4861b8['plugins']['has']('BlockQuoteEditing'))return;const _0x5d01aa=_0x4861b8['plugins']['get']('TrackChangesEditing'),_0x34773a=this['editor']['commands']['get']('blockQuote');_0x5d01aa['enableCommand']('blockQuote',(_0x5d4fd3,_0x437466={})=>{const _0x45a7df=this['editor']['model']['document']['selection'],_0x212b06=_0x437466&&void 0x0!==_0x437466['forceValue']?_0x437466['forceValue']:!_0x34773a['value'];let _0x12a9ac=[];if(_0x212b06){const _0x77b9c7=Array['from'](_0x45a7df['getSelectedBlocks']())['filter'](_0x129209=>oo(_0x129209)||function(_0x3bf220,_0x481425){const _0x2b3e90=_0x481425['checkChild'](_0x3bf220['parent'],'blockQuote'),_0xcebe76=_0x481425['checkChild'](['$root','blockQuote'],_0x3bf220);return _0x2b3e90&&_0xcebe76;}(_0x129209,this['editor']['model']['schema']));_0x12a9ac=to(_0x77b9c7,_0x4861b8['model']);}else{const _0xd76021=Array['from'](_0x45a7df['getSelectedBlocks']())['filter'](_0x1f6d85=>oo(_0x1f6d85));_0x12a9ac=to(_0xd76021,_0x4861b8['model']);}_0x4861b8['model']['change'](()=>{for(const _0x2a75c9 of _0x12a9ac)_0x5d01aa['markBlockFormat'](_0x2a75c9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x212b06}]});});}),_0x5d01aa['descriptionFactory']['registerDescriptionCallback'](_0x280625=>{const {data:_0x5c7e6c}=_0x280625;if(_0x5c7e6c&&'blockQuote'==_0x5c7e6c['commandName']){const _0x1b74a9=o(_0x4448b6,'ELEMENT_BLOCK_QUOTE');return _0x5c7e6c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4448b6,'*Set\x20format:*\x20%0',_0x1b74a9)}:{'type':'format','content':o(_0x4448b6,'*Remove\x20format:*\x20%0',_0x1b74a9)};}});}}function oo(_0x4231b1){return'blockQuote'==_0x4231b1['parent']['name'];}class L extends _0x328234{['afterInit'](){const _0x3d1d28=this['editor'];_0x3d1d28['plugins']['has']('CaseChange')&&(_0x3d1d28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3d1d28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3d1d28['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x328234{['afterInit'](){const _0x1876ba=this['editor'];_0x1876ba['commands']['get']('ckbox')&&_0x1876ba['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x328234{['afterInit'](){const _0x4ed767=this['editor'];if(!_0x4ed767['plugins']['has']('CodeBlock'))return;const _0x44100e=_0x4ed767['plugins']['get']('TrackChangesEditing'),_0x303ec3=_0x4ed767['locale'],_0x20d9d8=_0x4ed767['config']['get']('codeBlock')['languages'],_0x53da85=_0x4ed767['commands']['get']('codeBlock');_0x44100e['enableCommand']('indentCodeBlock'),_0x44100e['enableCommand']('outdentCodeBlock'),_0x44100e['enableCommand']('codeBlock',(_0x5bf2fa,_0x17a816={})=>{const _0x1e01df=_0x4ed767['model'],_0x563693=_0x4ed767['model']['document']['selection'],_0x48adc9=_0x17a816&&void 0x0!==_0x17a816['forceValue']?_0x17a816['forceValue']:!_0x53da85['value'];let _0xda6451;_0x17a816['language']||(_0x17a816['language']=_0x20d9d8[0x0]['language']),_0xda6451=_0x48adc9?Array['from'](_0x563693['getSelectedBlocks']())['filter'](_0x41ac4a=>eo(_0x41ac4a)||function(_0x5c4c14,_0x4474f7){if(_0x5c4c14['is']('rootElement')||_0x4474f7['isLimit'](_0x5c4c14))return!0x1;return _0x4474f7['checkChild'](_0x5c4c14['parent'],'codeBlock');}(_0x41ac4a,_0x1e01df['schema'])):Array['from'](_0x563693['getSelectedBlocks']())['filter'](_0x152ac1=>eo(_0x152ac1));const _0x2a983e=to(_0xda6451,_0x1e01df);_0x1e01df['change'](()=>{for(const _0x288b8e of _0x2a983e)_0x44100e['markBlockFormat'](_0x288b8e,{'commandName':'codeBlock','commandParams':[{..._0x17a816,'forceValue':_0x48adc9}],'formatGroupId':'blockName'});});}),(_0x44100e['descriptionFactory']['registerElementLabel']('codeBlock',_0x4877d8=>o(_0x303ec3,'ELEMENT_CODE_BLOCK',_0x4877d8)),_0x44100e['descriptionFactory']['registerDescriptionCallback'](_0x591ae1=>{if('formatBlock'!=_0x591ae1['type'])return;const _0x51c9ba=_0x303ec3['t'],{data:_0x42faf7}=_0x591ae1;if(!_0x42faf7||'codeBlock'!=_0x42faf7['commandName'])return;const _0x3be676=_0x42faf7['commandParams'][0x0]['language'],_0x3c344c=_0x51c9ba(_0x20d9d8['find'](_0x535f9f=>_0x535f9f['language']===_0x3be676)['label'])['toLowerCase']();return _0x42faf7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x303ec3,'*Set\x20format:*\x20%0',o(_0x303ec3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3c344c+')')}:{'type':'format','content':o(_0x303ec3,'*Remove\x20format:*\x20%0',o(_0x303ec3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x78d299){return'codeBlock'==_0x78d299['name'];}class q extends _0x328234{['afterInit'](){const _0x20cf6a=this['editor'];if(!_0x20cf6a['plugins']['has']('CommentsEditing'))return;_0x20cf6a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x145108,_0x207245,_0x56c362){const _0x464ae2=[];for(const _0x898567 of _0x207245['getItems']())_0x898567['hasAttribute'](_0x145108)&&_0x464ae2['push'](_0x56c362['createRangeOn'](_0x898567));return _0x464ae2;}function _e(_0x42212e,_0x164b0b,{showActiveMarker:_0x33f255=!0x0}={}){const _0x1ca10d=_0x42212e['plugins']['get']('TrackChangesEditing');return(_0x50f819,_0x9b869f,_0x372bf9)=>{if(!_0x372bf9['consumable']['test'](_0x9b869f['markerRange'],_0x50f819['name']))return;const _0x4504ec=_0x9b869f['markerRange']['getWalker'](),_0x3e6d4e=_0x9b869f['markerRange']['start'],_0x23832c=_0x42212e['model']['schema'];let _0x300446=null,_0x46872d=null,_0x48b8d0=!0x1,_0x23c8a9=!0x1;for(const _0x39a901 of _0x4504ec){const _0x595eb4=_0x39a901['item'];_0x48b8d0=_0x48b8d0||_0x23832c['isContent'](_0x595eb4);const _0x4bd72e=_0x372bf9['mapper']['toViewElement'](_0x595eb4);if(_0x4bd72e&&_0x4bd72e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x39a901['type']&&(_0x23832c['isBlock'](_0x595eb4)&&!_0x23832c['isLimit'](_0x595eb4)&&(_0x595eb4['nextSibling']||_0x3e6d4e['isAtEnd']?_0x300446&&_0x300446['parent']==_0x595eb4||(_0x300446=_0x595eb4,_0x203a3a(_0x39a901['previousPosition']),_0x23c8a9=!0x0):_0x46872d=_0x46872d||_0x39a901['previousPosition']));}function _0x203a3a(_0x2071d7){const {authorId:_0xb3cf9a}=_0x1ca10d['_splitMarkerName'](_0x9b869f['markerName']),_0x199c81=_0x372bf9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x164b0b,'data-author-id':_0xb3cf9a}),_0x120ce4=_0x372bf9['mapper']['toViewPosition'](_0x2071d7);_0x33f255&&_0x1ca10d['activeMarkers']['includes'](_0x9b869f['markerName'])&&_0x372bf9['writer']['addClass']('ck-suggestion-marker--active',_0x199c81),_0x372bf9['writer']['insert'](_0x120ce4,_0x199c81),_0x372bf9['mapper']['bindElementToMarker'](_0x199c81,_0x9b869f['markerName']);}_0x48b8d0||_0x23c8a9||!_0x46872d||_0x203a3a(_0x46872d);};}class z extends _0x328234{static get['requires'](){return[_0x131b3f];}['init'](){const _0x5a6efd=this['editor'],_0x4709fa=_0x5a6efd['plugins']['get']('TrackChangesEditing');_0x4709fa['enableCommand']('delete');const _0x7aedb5=_0x5a6efd['commands']['get']('deleteForward');_0x4709fa['enableCommand']('deleteForward',(_0x379ab2,_0x25dea3={})=>{const _0x189079=_0x5a6efd['model']['createSelection'](_0x5a6efd['model']['document']['selection']);_0x189079['isCollapsed']&&_0x5a6efd['model']['modifySelection'](_0x189079,{'direction':'forward','unit':_0x25dea3['unit']});const _0x70cec8=_0x189079['getFirstRange'](),_0x440bdb=_0xf41792['fromRange'](_0x70cec8);let _0x16305b;_0x379ab2(_0x25dea3),_0x16305b='$graveyard'==_0x440bdb['root']['rootName']?_0x5a6efd['model']['createRange'](_0x70cec8['start']):_0x5a6efd['model']['createRange'](_0x440bdb['start'],_0x440bdb['end']),_0x440bdb['detach'](),_0x5a6efd['model']['enqueueChange'](_0x7aedb5['buffer']['batch'],_0x364e9c=>{_0x7aedb5['buffer']['lock'](),_0x364e9c['setSelection'](_0x364e9c['createRange'](_0x16305b['end'])),_0x7aedb5['buffer']['unlock']();});}),_0x5a6efd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5a6efd,'merge'),{'priority':'high'}),_0x5a6efd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x9ad387,_0xcb4e52,_0x47505d)=>{_0x47505d['options']['showSuggestionHighlights']&&_e(_0x5a6efd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x9ad387,_0xcb4e52,_0x47505d);},{'priority':'high'}),_0x5a6efd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x128859,_0x7849ba,_0x51664c)=>{const _0x3134e5=_0x51664c['mapper']['markerNameToElements'](_0x7849ba['markerName']);if(_0x3134e5){for(const _0x365127 of _0x3134e5)_0x365127['is']('uiElement')&&(_0x51664c['mapper']['unbindElementFromMarkerName'](_0x365127,_0x7849ba['markerName']),_0x51664c['writer']['remove'](_0x365127));}},{'priority':'high'});}}class K extends _0x328234{['afterInit'](){const _0x26a80e=this['editor'];if(!_0x26a80e['plugins']['has']('ListEditing'))return;const _0x3de7c5=_0x26a80e['locale'],_0x4d09d5=_0x26a80e['plugins']['get']('TrackChangesEditing'),_0x4cce2f=_0x26a80e['plugins']['has']('TodoListEditing'),_0x3b3633=!!_0x26a80e['config']['get']('list.multiBlock');function _0x1797af(_0x1a63b0){return{'type':'format','content':''+o(_0x3de7c5,'*Set\x20format:*\x20%0',_0x1a63b0)};}function _0x23b960(_0x1156b3){return{'type':'format','content':''+o(_0x3de7c5,'*Remove\x20format:*\x20%0',_0x1156b3)};}_0x4d09d5['enableDefaultAttributesIntegration']('numberedList'),_0x4d09d5['enableDefaultAttributesIntegration']('bulletedList'),_0x4d09d5['enableDefaultAttributesIntegration']('customNumberedList'),_0x4d09d5['enableDefaultAttributesIntegration']('customBulletedList'),_0x4d09d5['enableDefaultAttributesIntegration']('indentList'),_0x4d09d5['enableDefaultAttributesIntegration']('outdentList'),_0x4d09d5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4d09d5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4d09d5['registerBlockAttribute']('listItemId'),_0x4d09d5['registerBlockAttribute']('listType'),_0x4d09d5['registerBlockAttribute']('listIndent'),_0x3b3633&&(_0x4d09d5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4d09d5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4cce2f&&(_0x4d09d5['enableDefaultAttributesIntegration']('todoList'),_0x4d09d5['enableDefaultAttributesIntegration']('checkTodoList'),_0x4d09d5['registerBlockAttribute']('todoListChecked'),_0x4d09d5['descriptionFactory']['registerDescriptionCallback'](_0x4f938f=>{const {data:_0x2dac9a}=_0x4f938f;if(_0x2dac9a&&'todoListChecked'==_0x2dac9a['key'])return{'type':'format','content':_0x2dac9a['newValue']?o(_0x3de7c5,'*Check\x20item*'):o(_0x3de7c5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x77040=>{if(_0x77040['batch']['isUndo'])return!0x1;let _0x1dfa8d=!0x1;const _0xb4b577=_0x4d09d5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f5ed0=>'todoListChecked'===_0x4d09d5['_getAttributeKey'](_0x4f5ed0));for(const _0x58ef1f of _0xb4b577){'todo'!=_0x58ef1f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4d09d5['_findSuggestions'](_0x58ef1f['getFirstRange'](),'attribute')['find'](_0x85b325=>'listType'===_0x4d09d5['_getAttributeKey'](_0x85b325['suggestion']))||(_0x77040['removeMarker'](_0x58ef1f['getFirstMarker']()),_0x1dfa8d=!0x0));}return _0x1dfa8d;})),_0x4d09d5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3de7c5,'FORMAT_INDENT'));const _0x260691={'type':'format','content':''};_0x4d09d5['descriptionFactory']['registerDescriptionCallback'](_0x2d83aa=>{const {data:_0xbc000d}=_0x2d83aa;if(!_0xbc000d||'listType'!=_0xbc000d['key'])return;let _0x4ca0a5=_0x2d83aa['head'];for(;_0x4ca0a5;){if(_0x4ca0a5['data']&&(('listStyle'==_0x4ca0a5['data']['key']||'listMarkerStyle'==_0x4ca0a5['data']['key'])&&(_0x4ca0a5['data']['newValue']&&'default'!=_0x4ca0a5['data']['newValue']||'default'!=_0x4ca0a5['data']['oldValue']&&!_0xbc000d['newValue'])||!_0x3b3633&&_0x4ca0a5['data']['key']==m))return _0x260691;_0x4ca0a5=_0x4ca0a5['next'];}if(null==_0xbc000d['newValue'])switch(_0xbc000d['oldValue']){case'bulleted':return _0x23b960(o(_0x3de7c5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x23b960(o(_0x3de7c5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x23b960(o(_0x3de7c5,'ELEMENT_TODO_LIST'));}switch(_0xbc000d['newValue']){case'bulleted':return _0x1797af(o(_0x3de7c5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1797af(o(_0x3de7c5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1797af(o(_0x3de7c5,'ELEMENT_TODO_LIST'));}}),_0x4d09d5['descriptionFactory']['registerDescriptionCallback'](_0x1b51e3=>{const {data:_0x333e3a}=_0x1b51e3;if(_0x333e3a&&'listIndent'==_0x333e3a['key'])return null==_0x333e3a['newValue']||null==_0x333e3a['oldValue']&&0x0==_0x333e3a['newValue']?_0x260691:void 0x0;}),_0x4d09d5['descriptionFactory']['registerDescriptionCallback'](_0x3b6e32=>{if('attribute'!=_0x3b6e32['type'])return;const {data:_0x266416}=_0x3b6e32;if(!_0x266416||'listItemId'!=_0x266416['key'])return;const _0x5bc816=Ee(_0x3b6e32);return'newValue'==_0x5bc816?{'type':'format','content':o(_0x3de7c5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5bc816?{'type':'format','content':o(_0x3de7c5,'*Split:*\x20list\x20item')}:_0x260691;}),_0x26a80e['model']['document']['registerPostFixer'](_0x263e8c=>this['listItemIdFixer'](_0x263e8c)),_0x26a80e['model']['document']['registerPostFixer'](_0x14160c=>this['noTrackChangesFixer'](_0x14160c)),_0x26a80e['model']['document']['on']('change:data',(_0x4c39c2,_0x1e9fa2)=>{if(_0x1e9fa2['isUndo']||!_0x1e9fa2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x334d02){if(_0x334d02['batch']['isUndo']||!_0x334d02['batch']['isLocal'])return!0x1;let _0x59eaf2=!0x1;const _0x212166=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e471f=>_0x1e471f['data']&&'listItemId'==_0x1e471f['data']['key'])['filter'](_0x3a64ea=>_0x3a64ea['data']['newValue']&&_0x3a64ea['data']['oldValue']);for(const _0x4e1fb7 of _0x212166)Ee(_0x4e1fb7)||(_0x334d02['removeMarker'](_0x4e1fb7['getFirstMarker']()),_0x59eaf2=!0x0);return _0x59eaf2;}['noTrackChangesFixer'](_0x59288b){if(_0x59288b['batch']['isUndo']||!_0x59288b['batch']['isLocal'])return!0x1;const _0x1248de=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1248de['trackChangesCommand']['value'])return!0x1;let _0x4d0457=!0x1;const _0x32e824=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x46427a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x27fbee=>'attribute'==_0x27fbee['type'])['filter'](_0x22438c=>_0x32e824['includes'](_0x22438c['attributeKey']));if(0x0==_0x46427a['length'])return _0x4d0457;for(const _0x4d331b of _0x46427a){const _0x50d591=_0x1248de['_findSuggestions'](_0x4d331b['range'],'attribute')['filter'](_0x3c7e5d=>!_0x3c7e5d['meta']['isNextTo'])['map'](_0x3a63f8=>_0x3a63f8['suggestion'])['filter'](_0x6a3ce9=>{const _0x46b541=_0x1248de['_getAttributeKey'](_0x6a3ce9);return _0x32e824['includes'](_0x46b541);});if(_0x50d591['length']){for(const _0x33fe8b of _0x50d591)_0x59288b['removeMarker'](_0x33fe8b['getFirstMarker']());_0x4d0457=!0x0;}}return _0x4d0457;}['assureChains'](){const _0x2a8ebd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x581098=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x33cc3e;const _0x5557b2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x39c0a3=>{if(_0x39c0a3['data']['oldRange']||!_0x39c0a3['data']['newRange'])return null;if(!_0x39c0a3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x87f24f}=_0x2a8ebd['_splitMarkerName'](_0x39c0a3['name']);if(!_0x2a8ebd['hasSuggestion'](_0x87f24f))return null;const _0x3127ef=_0x2a8ebd['getSuggestion'](_0x87f24f);return _0x581098['includes'](_0x3127ef['data']['key']);})['map'](_0x567a37=>{const {id:_0x36f801}=_0x2a8ebd['_splitMarkerName'](_0x567a37['name']),_0x1237c2=_0x2a8ebd['getSuggestion'](_0x36f801);return _0x33cc3e=_0x1237c2['attributes']['groupId'],_0x1237c2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5557b2['size'])return;const _0x2985b3=_0x2a8ebd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1dba0b=>'attribute'==_0x1dba0b['type']&&_0x1dba0b['data']&&_0x581098['includes'](_0x1dba0b['data']['key'])&&_0x1dba0b['attributes']['groupId']!=_0x33cc3e)['map'](_0x1209cf=>({'listItem':_0x1209cf['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1209cf['attributes']['groupId']})),_0x56453c=new Set();for(const {groupId:_0x4a4531,listItem:_0x738256}of _0x2985b3)_0x5557b2['has'](_0x738256)&&_0x56453c['add'](_0x4a4531);for(const _0x106a6f of _0x2a8ebd['getSuggestions']())_0x56453c['has'](_0x106a6f['attributes']['groupId'])&&_0x106a6f['setAttribute']('groupId',_0x33cc3e);}['_supportLegacySuggestions'](){const _0x2e580f=this['editor'],_0x30df29=_0x2e580f['locale'],_0x7fef6b=_0x2e580f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x7fef6b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x987560,_0x5de21b){const _0x5cba58=[];for(let _0x1c516f of _0x987560)_0x1c516f['start']['nodeAfter']===_0x1c516f['end']['parent']&&(_0x1c516f=_0x2e580f['model']['createRange'](_0x2e580f['model']['createPositionAt'](_0x1c516f['start']['nodeAfter'],0x0))),_0x5cba58['push'](_0x1c516f);_0x2e580f['model']['change'](_0x1c8f32=>{const _0x44aea9=_0x2e580f['model']['document']['selection'],_0x58c879=Array['from'](_0x44aea9['getRanges']())['map'](_0x2ad36f=>_0xf41792['fromRange'](_0x2ad36f));_0x1c8f32['setSelection'](_0x5cba58),_0x2e580f['commands']['get'](_0x5de21b['commandName'])['refresh'](),_0x5de21b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e580f['execute'](_0x5de21b['commandName'],..._0x5de21b['commandParams']),_0x1c8f32['setSelection'](_0x58c879);for(const _0x47017c of _0x58c879)_0x47017c['detach']();});}),_0x7fef6b['descriptionFactory']['registerElementLabel'](function(_0x126d29){const _0x59cad3=!_0x2e580f['model']['schema']['isObject'](_0x126d29),_0x3e8e7a=_0x126d29['previousSibling'],_0x2ad84f=_0x126d29['nextSibling'],_0x1b2663=_0x126d29['getAttribute']('listItemId'),_0x540b8b=!_0x3e8e7a||_0x3e8e7a['getAttribute']('listItemId')!==_0x1b2663,_0xea601f=!_0x2ad84f||_0x2ad84f['getAttribute']('listItemId')!==_0x1b2663;return _0x59cad3&&Boolean(_0x1b2663)&&_0x540b8b&&_0xea601f;},_0x442525=>o(_0x30df29,'ELEMENT_LIST_ITEM',_0x442525));}['_registerLegacyDescription'](){const _0x58f532=this['editor'],_0x4ce307=_0x58f532['locale'];function _0x47e99a(_0x11825a){const _0x44dca2=_0x58f532['commands']['get']('bulletedList')['value'],_0x5909e0=_0x58f532['commands']['get']('numberedList')['value'];return'numberedList'===_0x11825a?_0x44dca2:_0x5909e0;}_0x58f532['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x48a5bc){if('formatBlock'!=_0x48a5bc['type'])return;const {data:_0x3dcf95}=_0x48a5bc;if(!_0x3dcf95)return;let _0x4b1f20,_0x18ed21,_0x432c76,_0x2fd728;switch(_0x3dcf95['commandName']){case'bulletedList':_0x432c76=_0x3dcf95['commandParams'][0x0]['forceValue'],_0x2fd728=_0x47e99a(_0x3dcf95['commandName']),_0x4b1f20=_0x432c76?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2fd728&&_0x58f532['config']['get']('list.multiBlock')||(_0x4b1f20='*Change\x20to:*\x20%0'),_0x18ed21={'type':'format','content':o(_0x4ce307,_0x4b1f20,o(_0x4ce307,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x432c76=_0x3dcf95['commandParams'][0x0]['forceValue'],_0x2fd728=_0x47e99a(_0x3dcf95['commandName']),_0x4b1f20=_0x432c76?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2fd728&&_0x58f532['config']['get']('list.multiBlock')||(_0x4b1f20='*Change\x20to:*\x20%0'),_0x18ed21={'type':'format','content':o(_0x4ce307,_0x4b1f20,o(_0x4ce307,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4b1f20='*Indent:*\x20%0',_0x18ed21={'type':'format','content':o(_0x4ce307,_0x4b1f20,o(_0x4ce307,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4b1f20=function(_0x157d1d){const _0x4e5c73=_0x157d1d['getFirstRange']();let _0x2547d7=_0x4e5c73['start']['nodeAfter'];for(;_0x2547d7&&_0x4e5c73['containsItem'](_0x2547d7);){if(_0x2547d7['getAttribute']('listIndent')>0x0)return!0x1;_0x2547d7=_0x2547d7['nextSibling'];}return!0x0;}(_0x48a5bc)?o(_0x4ce307,'*Format:*\x20remove\x20from\x20%0',o(_0x4ce307,function(_0x63c3ea){return'ELEMENT_'+_0x63c3ea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x48a5bc))):o(_0x4ce307,'*Outdent:*\x20%0',o(_0x4ce307,'ELEMENT_LIST_ITEM')),_0x18ed21={'type':'format','content':_0x4b1f20};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3dcf95['multipleBlocks']&&(_0x4b1f20='*Merge:*\x20%0',_0x18ed21={'type':'deletion','content':o(_0x4ce307,_0x4b1f20,o(_0x4ce307,'ELEMENT_LIST_ITEM'))});}return _0x18ed21;});}}function Ee(_0x3b6a29){let _0x1b073c=_0x3b6a29['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1b073c;){const _0x2dd3ad=_0x1b073c['getAttribute']('listItemId');if(!_0x2dd3ad)return!0x1;if(_0x2dd3ad==_0x3b6a29['data']['newValue'])return'newValue';if(_0x2dd3ad==_0x3b6a29['data']['oldValue'])return'oldValue';_0x1b073c=_0x1b073c['previousSibling'];}return!0x1;}class pe extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3b6137=this['editor']['config']['get']('list.properties'),_0x26072a=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b6137['styles']&&(_0x26072a['enableDefaultAttributesIntegration']('listStyle'),_0x26072a['registerBlockAttribute']('listStyle')),_0x3b6137['reversed']&&(_0x26072a['enableDefaultAttributesIntegration']('listReversed'),_0x26072a['registerBlockAttribute']('listReversed')),_0x3b6137['startIndex']&&(_0x26072a['enableDefaultAttributesIntegration']('listStart'),_0x26072a['registerBlockAttribute']('listStart'));const _0x43d0a6={'type':'format','content':''};_0x26072a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x11df2e=this['editor']['locale'];_0x26072a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x11df2e,'FORMAT_LIST_REVERSED')),_0x26072a['descriptionFactory']['registerDescriptionCallback'](_0x30fc97=>{const {data:_0x264c8e}=_0x30fc97;if(_0x264c8e&&'listReversed'==_0x264c8e['key'])return null==_0x264c8e['newValue']||0x0==_0x264c8e['newValue']&&null==_0x264c8e['oldValue']?_0x43d0a6:void 0x0;}),_0x26072a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x11df2e,'FORMAT_LIST_START')),_0x26072a['descriptionFactory']['registerDescriptionCallback'](_0x570e5e=>{const {data:_0x3a89f6}=_0x570e5e;if(_0x3a89f6&&'listStart'==_0x3a89f6['key'])return null==_0x3a89f6['newValue']||0x1==_0x3a89f6['newValue']&&null==_0x3a89f6['oldValue']?_0x43d0a6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4bf963=>{if(_0x4bf963['batch']['isUndo'])return!0x1;let _0x34520b=!0x1;const _0x20cfbf=_0x26072a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4bfc58=>{const _0x2419bd=_0x26072a['_getAttributeKey'](_0x4bfc58);return'listStart'==_0x2419bd||'listReversed'==_0x2419bd;});for(const _0x4c0bb9 of _0x20cfbf){const _0xb3997d=_0x4c0bb9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xb3997d||'customNumbered'==_0xb3997d)continue;_0x26072a['_findSuggestions'](_0x4c0bb9['getFirstRange'](),'attribute')['find'](_0x132850=>'listType'==_0x26072a['_getAttributeKey'](_0x132850['suggestion']))||(_0x4bf963['removeMarker'](_0x4c0bb9['getFirstMarker']()),_0x34520b=!0x0);}return _0x34520b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x58f45c){const _0x3b2d4c=this['editor']['locale'],{data:_0x40bd76}=_0x58f45c,_0x28a54f={'type':'format','content':''};if(!_0x40bd76||'listStyle'!=_0x40bd76['key'])return;if(!_0x40bd76['oldValue'])return'default'==_0x40bd76['newValue']?_0x28a54f:{'type':'format','content':''+o(_0x3b2d4c,'*Set\x20format:*\x20%0',o(_0x3b2d4c,this['_getTranslationKeyForListStyle'](_0x40bd76['newValue'])))};if(!_0x40bd76['newValue']){if('default'==_0x40bd76['oldValue'])return _0x28a54f;let _0x55dcf7=_0x58f45c['head'];for(;_0x55dcf7;){if(_0x55dcf7['data']&&'listType'==_0x55dcf7['data']['key']&&_0x55dcf7['data']['newValue'])return _0x28a54f;_0x55dcf7=_0x55dcf7['next'];}return{'type':'format','content':''+o(_0x3b2d4c,'*Remove\x20format:*\x20%0',o(_0x3b2d4c,this['_getTranslationKeyForListStyle'](_0x40bd76['oldValue'])))};}if('default'!=_0x40bd76['newValue'])return{'type':'format','content':''+o(_0x3b2d4c,'*Set\x20format:*\x20%0',o(_0x3b2d4c,this['_getTranslationKeyForListStyle'](_0x40bd76['newValue'])))};let _0x3b4897=_0x58f45c['head'];for(;_0x3b4897;){if(_0x3b4897['data']&&'listType'==_0x3b4897['data']['key']&&_0x3b4897['data']['newValue']&&_0x3b4897['data']['oldValue'])return _0x28a54f;_0x3b4897=_0x3b4897['next'];}return{'type':'format','content':o(_0x3b2d4c,'*Set\x20format:*\x20%0',o(_0x3b2d4c,'ELEMENT_'+_0x58f45c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x13e302=this['editor'],_0x240214=_0x13e302['locale'];_0x13e302['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1138ae=>{if('formatBlock'!=_0x1138ae['type'])return;const {data:_0x13a418}=_0x1138ae;if(!_0x13a418)return;let _0x436bfa,_0x40baee;switch(_0x13a418['commandName']){case'listStyle':_0x436bfa='*Change\x20to:*\x20%0',_0x40baee={'type':'format','content':o(_0x240214,_0x436bfa,o(_0x240214,this['_getTranslationKeyForListStyle'](_0x13a418['commandParams'][0x0]['type'])))};break;case'listReversed':_0x436bfa=_0x13a418['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40baee={'type':'format','content':o(_0x240214,_0x436bfa)};break;case'listStart':_0x436bfa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40baee={'type':'format','content':o(_0x240214,_0x436bfa,_0x13a418['commandParams'][0x0]['startIndex'])};}return _0x40baee;});}['_getTranslationKeyForListStyle'](_0x369fbe){return'ELEMENT_'+function(_0x284c2a){if(ye['includes'](_0x284c2a))return'bulleted';if(Se['includes'](_0x284c2a))return'numbered';return null;}(_0x369fbe)['toUpperCase']()+'_LIST_'+_0x369fbe['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x328234{static get['requires'](){return[_0x5e4ac3];}['init'](){const _0x4f7635=this['editor'],_0x15ba43=_0x4f7635['plugins']['get']('TrackChangesEditing'),_0x658cce=_0x4f7635['commands']['get']('enter');_0x15ba43['enableCommand']('enter',()=>{_0x4f7635['model']['change'](_0x48a15a=>{const _0x5d736c=_0x4f7635['model']['document']['selection'],_0x2d48a5=_0x5d736c['getFirstPosition'](),_0x3a6c6f=_0xf41792['fromRange'](_0x5d736c['getFirstRange']());if(_0x658cce['enterBlock'](_0x48a15a)){const _0x39eb19=_0x4f7635['model']['createPositionAt'](_0x2d48a5['parent']['nextSibling'],0x0),_0x4b26fe=_0x48a15a['createRange'](_0x2d48a5,_0x39eb19);_0x15ba43['markInsertion'](_0x4b26fe);}else _0x48a15a['setSelection'](_0x48a15a['createRange'](_0x3a6c6f['end']));_0x3a6c6f['detach'](),_0x658cce['fire']('afterExecute',{'writer':_0x48a15a});});}),_0x4f7635['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4f7635,'split'),{'priority':'high'}),_0x4f7635['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2fc592,_0x492212,_0x2bb509)=>{const _0x4cf80d=_0x2bb509['mapper']['markerNameToElements'](_0x492212['markerName']);if(_0x4cf80d){for(const _0x1e2374 of _0x4cf80d)_0x1e2374['hasClass']('ck-suggestion-marker-split')&&(_0x2bb509['mapper']['unbindElementFromMarkerName'](_0x1e2374,_0x492212['markerName']),_0x2bb509['writer']['remove'](_0x1e2374));}},{'priority':'high'}),_0x4f7635['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x13626f,_0x495989,_0x1bc098)=>{_0x1bc098['options']['showSuggestionHighlights']&&_e(_0x4f7635,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x13626f,_0x495989,_0x1bc098);},{'priority':'high'});}}class X extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x10808c=this['editor']['plugins']['get']('TrackChangesEditing');_0x10808c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x10808c['enableCommand']('findNext'),_0x10808c['enableCommand']('findPrevious'),_0x10808c['enableCommand']('replace'),_0x10808c['enableCommand']('replaceAll');}['handleFindCommand'](_0x54b8b7,_0x2b778d,_0x537837={}){const _0x9dae62=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x54b8b7(_0x9adcba=>{let _0x3a3609=('string'==typeof _0x2b778d?_0x9dae62['findByTextCallback'](_0x2b778d,_0x537837):_0x2b778d)(_0x9adcba);Array['isArray'](_0x3a3609)&&(_0x3a3609={'results':_0x3a3609,'searchText':'string'==typeof _0x2b778d?_0x2b778d:''});const _0x49fb59=_0x3a3609['results']['filter'](_0x4e61e5=>!0x1===this['_isInDeletionRange'](_0x4e61e5,_0x9adcba['item']));return{..._0x3a3609,'results':_0x49fb59};},_0x537837);}['_isInDeletionRange'](_0x10158b,_0x33fdb3){const _0x407656=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33fdb3,_0x10158b['start']),this['editor']['model']['createPositionAt'](_0x33fdb3,_0x10158b['end']));for(const _0x1bb302 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x407656['getIntersection'](_0x1bb302['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 _0x328234{['afterInit'](){const _0x5462b1=this['editor']['locale'],_0x593919=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3d788f,commandName:_0xaf5d7f}of ro)this['editor']['plugins']['has'](_0x3d788f)&&(_0x593919['enableDefaultAttributesIntegration'](_0xaf5d7f),_0x593919['registerInlineAttribute'](_0xaf5d7f));_0x593919['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5462b1,'FORMAT_FONT_SIZE')),_0x593919['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5462b1,'FORMAT_FONT_FAMILY')),_0x593919['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5462b1,'FORMAT_FONT_COLOR')),_0x593919['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5462b1,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38a384=this['editor'],_0x31b0b0=_0x38a384['locale'];_0x38a384['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd40a03=>{const _0x3d51fe=_0x31b0b0['t'];if('formatInline'!=_0xd40a03['type'])return;const {data:_0x403084}=_0xd40a03;if(null!=_0x403084){if('fontSize'==_0x403084['commandName']){const _0x7cbc75=_0x403084['commandParams'][0x0]['value'];if(_0x7cbc75){const _0x3bc84e=_0x3d51fe(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3a3c5f=>_0x3a3c5f['model']==_0x7cbc75)['title'])['toLowerCase']();return{'type':'format','content':o(_0x31b0b0,'*Set\x20font\x20size:*\x20%0',_0x3bc84e)};}return{'type':'format','content':o(_0x31b0b0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x403084['commandName']){const _0x26d951=_0x403084['commandParams'][0x0]['value'];return _0x26d951?{'type':'format','content':o(_0x31b0b0,'*Set\x20font\x20family:*\x20%0',_0x26d951)}:{'type':'format','content':o(_0x31b0b0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x403084['commandName']){const _0x2560c8=_0x403084['commandParams'][0x0]['value'];if(_0x2560c8){const _0x6de905=_0x4bf0f0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x44458b=>_0x44458b['model']==_0x2560c8);let _0x147e14=_0x2560c8,_0x33c8ad='';return _0x6de905&&(_0x147e14=_0x6de905['label'],_0x33c8ad=_0x3d51fe(_0x147e14)['toLowerCase']()),{'type':'format','content':o(_0x31b0b0,'*Set\x20font\x20color:*\x20%0',_0x33c8ad)['trim'](),'color':{'value':_0x2560c8,'title':_0x33c8ad||_0x147e14}};}return{'type':'format','content':o(_0x31b0b0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x403084['commandName']){const _0x4ad53c=_0x403084['commandParams'][0x0]['value'];if(_0x4ad53c){const _0x382b85=_0x4bf0f0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x488a16=>_0x488a16['model']==_0x4ad53c);let _0x260c9e=_0x4ad53c,_0x4290db='';return _0x382b85&&(_0x260c9e=_0x382b85['label'],_0x4290db=_0x3d51fe(_0x260c9e)['toLowerCase']()),{'type':'format','content':o(_0x31b0b0,'*Set\x20font\x20background\x20color:*\x20%0',_0x4290db)['trim'](),'color':{'value':_0x4ad53c,'title':_0x4290db||_0x260c9e}};}return{'type':'format','content':o(_0x31b0b0,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x328234{['afterInit'](){const _0x2f11ef=this['editor'],_0x3c34c2=_0x2f11ef['plugins']['get']('TrackChangesEditing'),_0x3e8c80=_0x2f11ef['commands']['get']('copyFormat'),_0x34b105=_0x2f11ef['commands']['get']('pasteFormat');_0x3e8c80&&_0x34b105&&(_0x3c34c2['enableDefaultAttributesIntegration']('pasteFormat'),_0x3c34c2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1772fb=this['editor'],_0x2eedd8=_0x1772fb['locale'];_0x1772fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47b1ba=>{if('formatBlock'!=_0x47b1ba['type']&&'formatInline'!=_0x47b1ba['type'])return;const {data:_0x1d27ab}=_0x47b1ba;if(_0x1d27ab&&'pasteFormat'===_0x1d27ab['commandName']){const _0x275af8=[],_0x50a84e=_0x1d27ab['commandParams'][0x0];for(const [_0x341066,_0x1dd38e]of Object['entries'](_0x50a84e))_0x275af8['push'](so(_0x1772fb,_0x341066,_0x1dd38e));return _0x275af8['length']?{'type':'format','content':o(_0x2eedd8,'*Set\x20format\x20to:*\x20%0',_0x275af8['join'](',\x20'))}:{'type':'format','content':o(_0x2eedd8,'*Remove\x20all\x20formatting*')};}});}}function so(_0x12a4d5,_0x2beb91,_0x22b7e2){const _0x177014=_0x12a4d5['locale']['t'],_0x2ac029=_0x2beb91['split'](/(?=[A-Z])/)['join']('\x20'),_0x13723f=_0x177014(_0x2ac029['charAt'](0x0)['toUpperCase']()+_0x2ac029['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x22b7e2)return _0x13723f;if('fontColor'===_0x2beb91||'fontBackgroundColor'===_0x2beb91){const _0x3f44e7=_0x4bf0f0(_0x12a4d5['config']['get']('fontColor.colors'))['find'](_0x2b5c5f=>_0x2b5c5f['model']==_0x22b7e2);return _0x13723f+'\x20('+(_0x3f44e7?_0x177014(_0x3f44e7['label'])['toLowerCase']():_0x22b7e2)+')';}if('fontSize'===_0x2beb91&&isNaN(parseFloat(_0x22b7e2))){const _0x34c25e=_0x12a4d5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x12a4d5['config']['get']('fontSize.options'))['find'](_0x333df2=>_0x333df2['model']==_0x22b7e2);return _0x13723f+'\x20('+(_0x34c25e?_0x177014(_0x34c25e['title'])['toLowerCase']():_0x22b7e2)+')';}return _0x13723f+'\x20('+_0x22b7e2+')';}class tt extends _0x328234{['_headingOptions'];['afterInit'](){const _0x3f1792=this['editor'];if(!_0x3f1792['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3f1792['config']['get']('heading.options');const _0x3e5f67=_0x3f1792['locale'],_0x2944e5=_0x3f1792['plugins']['get']('TrackChangesEditing');_0x2944e5['enableDefaultAttributesIntegration']('heading');for(const _0x3bb9df of this['_headingOptions'])'paragraph'!=_0x3bb9df['model']&&_0x2944e5['descriptionFactory']['registerElementLabel'](_0x3bb9df['model'],_0x282ff5=>{const _0x307c44=this['_getHeadingLevel'](_0x3bb9df['model']);return null!==_0x307c44?_0xf38ba7(_0x282ff5,_0x307c44):_0x157cea(_0x282ff5,_0x3bb9df['title']);});function _0xf38ba7(_0x437c36,_0xadf101){return o(_0x3e5f67,'ELEMENT_HEADING',[_0x437c36,_0xadf101]);}function _0x157cea(_0x1c18a9,_0x1cf647){return o(_0x3e5f67,'ELEMENT_HEADING_CUSTOM',[_0x1c18a9,_0x1cf647]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fcdd7=this['editor'],_0x3b6885=_0x1fcdd7['locale'];function _0x542371(_0x4fbe63,_0x5d380b){return o(_0x3b6885,'ELEMENT_HEADING_CUSTOM',[_0x4fbe63,_0x5d380b]);}_0x1fcdd7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eb94d=>{if('formatBlock'!=_0x1eb94d['type'])return;const {data:_0x564445}=_0x1eb94d;if(_0x564445&&'heading'==_0x564445['commandName']){const _0xd8986e=_0x564445['commandParams'][0x0]['value'],_0x835f5e=this['_getHeadingLevel'](_0xd8986e);if(null!==_0x835f5e)return{'type':'format','content':o(_0x3b6885,'*Change\x20to:*\x20%0',(_0x2160a3=0x1,_0x3aab2f=_0x835f5e,o(_0x3b6885,'ELEMENT_HEADING',[_0x2160a3,_0x3aab2f])))};const _0xb9545b=this['_headingOptions']['find'](_0x481af5=>_0x481af5['model']===_0xd8986e)['title'];return{'type':'format','content':o(_0x3b6885,'*Change\x20to:*\x20%0',_0x542371(0x1,_0xb9545b))};}var _0x2160a3,_0x3aab2f;});}['_getHeadingLevel'](_0x4f8f3c){const _0x179955=_0x4f8f3c['match'](/^heading(\d+)/);if(_0x179955)return _0x179955[0x1];const _0x4ce5c9=this['_headingOptions']?.['find'](_0x13ed16=>_0x13ed16['model']==_0x4f8f3c);if(_0x4ce5c9&&_0x4ce5c9['view']){const _0x3aae96=_0x4ce5c9['view'],_0x38a6da=(_0x3aae96['name']??_0x3aae96)['match'](/^h(\d+)/);if(_0x38a6da)return _0x38a6da[0x1];}return null;}}class et extends _0x328234{['afterInit'](){const _0x235084=this['editor'];if(!_0x235084['plugins']['has']('HighlightEditing'))return;const _0x410f44=_0x235084['plugins']['get']('TrackChangesEditing'),_0x56a65e=_0x235084['locale'];_0x410f44['enableDefaultAttributesIntegration']('highlight'),_0x410f44['registerInlineAttribute']('highlight'),_0x410f44['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x56a65e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4736a4=this['editor'],_0xa2ae82=_0x4736a4['locale'];_0x4736a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x545cf1=>{if('formatInline'!=_0x545cf1['type'])return;const {data:_0x4c87f3}=_0x545cf1;if(_0x4c87f3&&'highlight'==_0x4c87f3['commandName']){const _0x17557b=_0xa2ae82['t'],_0x33a9d3=_0x4c87f3['commandParams'][0x0]['value'];if(_0x33a9d3){const _0x41c424=_0x4736a4['config']['get']('highlight.options')['find'](_0x29e96c=>_0x29e96c['model']==_0x33a9d3),_0x35ef0e=_0x17557b(_0x41c424['title'])['toLowerCase']();return{'type':'format','content':o(_0xa2ae82,'*Set\x20highlight:*\x20%0',_0x35ef0e),'color':{'value':_0x41c424['color'],'title':_0x41c424['title']}};}return{'type':'format','content':o(_0xa2ae82,'*Remove\x20highlight*',o(_0xa2ae82,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x328234{['afterInit'](){const _0x1c1b56=this['editor'];if(!_0x1c1b56['plugins']['has']('HorizontalLineEditing'))return;_0x1c1b56['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50e07e=_0x1c1b56['plugins']['get']('TrackChangesEditing'),_0x22b37e=_0x1c1b56['locale'];_0x50e07e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3dd055=>o(_0x22b37e,'ELEMENT_HORIZONTAL_LINE',_0x3dd055)),_0x1c1b56['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4224a8,{writer:_0x4600f4,options:_0x4c1234})=>{if(!_0x4c1234['showSuggestionHighlights'])return null;const _0x2fbcc9=_0x4600f4['createContainerElement']('div'),_0x3d67a2=_0x4600f4['createEmptyElement']('hr');return _0x4600f4['addClass']('ck-horizontal-line',_0x2fbcc9),_0x4600f4['insert'](_0x4600f4['createPositionAt'](_0x2fbcc9,0x0),_0x3d67a2),_0x2fbcc9;},'converterPriority':'high'});}}class st extends _0x328234{['afterInit'](){const _0x16810f=this['editor'];if(!_0x16810f['plugins']['has']('HtmlEmbed'))return;const _0x26c49c=_0x16810f['plugins']['get']('TrackChangesEditing'),_0x2b0c45=_0x16810f['locale'];_0x26c49c['descriptionFactory']['registerElementLabel']('rawHtml',_0x5d9403=>o(_0x2b0c45,'ELEMENT_HTML_EMBED',_0x5d9403)),_0x26c49c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x26c49c['registerBlockAttribute']('value'),_0x26c49c['descriptionFactory']['registerDescriptionCallback'](_0x159e82=>{if('attribute'!=_0x159e82['type'])return;const {data:_0x217c08}=_0x159e82;if(_0x217c08&&'value'==_0x217c08['key']&&_0x159e82['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x57c5a4=o(_0x2b0c45,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2b0c45,'*Change\x20%0\x20content*',_0x57c5a4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d5c3c=this['editor'],_0xf983c1=_0x2d5c3c['locale'];_0x2d5c3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e66d6=>{if('formatBlock'!=_0x4e66d6['type'])return;const {data:_0x5ca97e}=_0x4e66d6;if(_0x5ca97e&&'htmlEmbed'==_0x5ca97e['commandName']){const _0x25c889=o(_0xf983c1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf983c1,'*Change\x20%0\x20content*',_0x25c889)};}});}}class nt extends _0x328234{['afterInit'](){const _0x59d849=this['editor'];if(!_0x59d849['plugins']['has']('ImageEditing'))return;const _0x8e4505=_0x59d849['plugins']['get']('TrackChangesEditing'),_0x169484=_0x59d849['plugins']['get']('ImageUtils'),_0x2f5bdd=_0x59d849['locale'];_0x8e4505['enableCommand']('insertImage'),_0x8e4505['descriptionFactory']['registerElementLabel']('imageBlock',_0x576db2=>o(_0x2f5bdd,'ELEMENT_IMAGE',_0x576db2)),_0x8e4505['descriptionFactory']['registerElementLabel']('imageInline',_0x2c06e7=>o(_0x2f5bdd,'ELEMENT_INLINE_IMAGE',_0x2c06e7)),_0x8e4505['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2f5bdd,'ELEMENT_CAPTION')),_0x59d849['plugins']['has']('ImageUploadEditing')&&_0x8e4505['enableCommand']('uploadImage'),_0x59d849['plugins']['has']('ImageBlockEditing')&&_0x59d849['plugins']['has']('ImageInlineEditing')&&(_0x8e4505['enableCommand']('imageTypeInline',(_0xc5a3e,_0x44fd48)=>{const _0x2af183=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']);_0x59d849['model']['change'](()=>{_0x8e4505['markBlockFormat'](_0x2af183,{'commandName':'imageTypeInline','commandParams':[_0x44fd48]},[],'convertBlockImageToInline');});}),_0x8e4505['enableCommand']('imageTypeBlock',(_0x3fb6c5,_0x382015)=>{_0x59d849['model']['change'](_0x56af31=>{let _0x97561f=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']),_0x2d6090=_0x56af31['createRangeOn'](_0x97561f);const _0xaa957=_0x3cc3dd['fromPosition'](_0x2d6090['start'],'toPrevious'),_0x798228=_0x3cc3dd['fromPosition'](_0x2d6090['end'],'toNext');_0x8e4505['forceDefaultExecution'](()=>_0x3fb6c5(_0x382015)),_0x97561f=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']),_0x2d6090=_0x56af31['createRangeOn'](_0x97561f);const _0x4f6068=_0x56af31['createRange'](_0xaa957,_0x798228);_0xaa957['detach'](),_0x798228['detach'](),_0x8e4505['markBlockFormat'](_0x97561f,{'commandName':'imageTypeInline','commandParams':[_0x382015]},[],'convertInlineImageToBlock'),_0x4f6068['start']['isBefore'](_0x2d6090['start'])&&_0x8e4505['markInsertion'](_0x56af31['createRange'](_0x4f6068['start'],_0x2d6090['start']),'convertInlineImageToBlock'),_0x2d6090['end']['isBefore'](_0x4f6068['end'])&&_0x8e4505['markInsertion'](_0x56af31['createRange'](_0x2d6090['end'],_0x4f6068['end']),'convertInlineImageToBlock');});}),_0x8e4505['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8e4505['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8e4505['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8e4505['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8e4505['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8e4505['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x52a6f8])=>{const _0x3ab9d9=_0x8e4505['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x547a75=_0x52a6f8['start'],_0x383fb3=_0x52a6f8['end'];const _0x172ee9=_0x59d849['model']['schema']['getNearestSelectionRange'](_0x547a75,'backward'),_0x1ad1af=_0x59d849['model']['schema']['getNearestSelectionRange'](_0x383fb3,'forward');_0x172ee9['isCollapsed']&&(_0x547a75=_0x172ee9['start']),_0x1ad1af['isCollapsed']&&(_0x383fb3=_0x1ad1af['end']),_0x3ab9d9([_0x59d849['model']['createRange'](_0x547a75,_0x383fb3)]);}),_0x8e4505['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5093df),_0x8e4505['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5093df)),_0x59d849['plugins']['has']('ImageCaptionEditing')&&(_0x8e4505['enableCommand']('toggleImageCaption',(_0x51a07d,_0x2ec693)=>{const _0x1d8862=_0x59d849['plugins']['get']('ImageCaptionUtils');let _0x1d2c9a=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']),_0x20fe3e=_0x1d8862['getCaptionFromImageModelElement'](_0x1d2c9a);_0x59d849['model']['change'](()=>{if(_0x20fe3e)return void _0x8e4505['markDeletion'](_0x59d849['model']['createRangeOn'](_0x20fe3e));const _0x15bf37=_0x169484['isBlockImage'](_0x1d2c9a);_0x51a07d(_0x2ec693),_0x1d2c9a=_0x169484['getClosestSelectedImageElement'](_0x59d849['model']['document']['selection']),_0x20fe3e=_0x1d8862['getCaptionFromImageModelElement'](_0x1d2c9a),_0x8e4505['markInsertion'](_0x59d849['model']['createRangeOn'](_0x20fe3e),_0x15bf37?null:'imageCaption');});}),_0x8e4505['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5093df));const _0x1fd8ba=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x572eb7(_0x44ea80,_0x22f389){const _0x26f5ba=_0x1fd8ba['findIndex'](({type:_0x46afcb,subType:_0x148bb8})=>_0x44ea80['type']==_0x46afcb&&_0x44ea80['subType']==_0x148bb8),_0x3d7a39=_0x1fd8ba['findIndex'](({type:_0x5bf781,subType:_0x3b5d07})=>_0x22f389['type']==_0x5bf781&&_0x22f389['subType']==_0x3b5d07);if(_0x26f5ba<0x0||_0x3d7a39<0x0)return!0x1;const _0xee1f7a=_0x44ea80['getFirstRange'](),_0x11c01d=_0x22f389['getFirstRange']();if((0x0==_0x26f5ba||0x1==_0x26f5ba)&&0x2==_0x3d7a39&&_0xee1f7a['isIntersecting'](_0x11c01d))return!0x0;if(0x2==_0x26f5ba&&0x3==_0x3d7a39){const _0x30df54=_0x8e4505['_findSuggestions'](_0xee1f7a,'insertion')['filter'](({suggestion:_0x8e9b8e,meta:_0x5714f4})=>_0x5714f4['isOwn']&&'convertInlineImageToBlock'==_0x8e9b8e['subType']);if(_0x30df54['length']>0x1&&_0x11c01d['end']['isEqual'](_0xee1f7a['start']))return!0x0;if(0x1==_0x30df54['length']&&(_0xee1f7a['start']['isEqual'](_0x11c01d['end'])||_0xee1f7a['end']['isEqual'](_0x11c01d['start'])))return!0x0;}if(0x3==_0x26f5ba&&0x3==_0x3d7a39&&_0xee1f7a['start']['isBefore'](_0x11c01d['start'])){const _0x5f20ea=_0xee1f7a['end']['nodeAfter'],_0x10d72d=_0x11c01d['start']['nodeBefore'];return _0x169484['isBlockImage'](_0x5f20ea)&&_0x5f20ea===_0x10d72d;}return!0x1;}function _0x5093df(_0xdd4dfb,_0x31a083){return _0x572eb7(_0xdd4dfb,_0x31a083)?[_0xdd4dfb,_0x31a083]:_0x572eb7(_0x31a083,_0xdd4dfb)?[_0x31a083,_0xdd4dfb]:null;}_0x59d849['plugins']['has']('ImageResize')&&(_0x8e4505['enableDefaultAttributesIntegration']('resizeImage'),_0x8e4505['registerBlockAttribute']('resizedWidth'),_0x8e4505['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2f5bdd,'FORMAT_IMAGE_SIZE'))),_0x59d849['plugins']['has']('ImageTextAlternativeEditing')&&(_0x8e4505['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x8e4505['registerBlockAttribute']('alt')),_0x8e4505['descriptionFactory']['registerDescriptionCallback'](_0x5752fe=>{if(!!_0x1fd8ba['find'](({type:_0x51b2ed,subType:_0x3b6acf})=>_0x5752fe['type']==_0x51b2ed&&_0x5752fe['subType']==_0x3b6acf))return _0x5752fe['previous']?{}:void 0x0;}),_0x8e4505['descriptionFactory']['registerDescriptionCallback'](_0x1e9808=>{if('insertion'==_0x1e9808['type']||'deletion'==_0x1e9808['type']){const _0x2ad6f5=_0x1e9808['getContainedElement']();if(_0x2ad6f5&&_0x2ad6f5['is']('element','caption'))return{'type':'insertion'==_0x1e9808['type']?'addObject':'removeObject','element':_0x2ad6f5,'quantity':0x1};}}),_0x8e4505['descriptionFactory']['registerDescriptionCallback'](_0x4afdf5=>'formatBlock'==_0x4afdf5['type']&&'convertInlineImageToBlock'==_0x4afdf5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4afdf5['type']&&'convertBlockImageToInline'==_0x4afdf5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8e4505['descriptionFactory']['registerDescriptionCallback'](_0xb7b490=>{if('attribute'!=_0xb7b490['type'])return;const {data:_0xca953}=_0xb7b490;if(!_0xca953||'alt'!=_0xca953['key'])return;const _0x340f5b=_0xca953['newValue'];return _0x340f5b?{'type':'format','content':o(_0x2f5bdd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x340f5b+'\x22')}:{'type':'format','content':o(_0x2f5bdd,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1903bd=this['editor'],_0x28a5a8=_0x1903bd['locale'];_0x1903bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b261f=>{if('formatBlock'!=_0x1b261f['type']&&'formatInline'!=_0x1b261f['type'])return;const {data:_0x4fed45}=_0x1b261f;if(_0x4fed45){if('imageTextAlternative'==_0x4fed45['commandName']){const _0x37991b=_0x4fed45['commandParams'][0x0]['newValue'];return _0x37991b?{'type':'format','content':o(_0x28a5a8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x37991b+'\x22')}:{'type':'format','content':o(_0x28a5a8,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4fed45['commandName']){const _0x320670=_0x4fed45['commandParams'][0x0]['width'];return _0x320670?{'type':'format','content':o(_0x28a5a8,'*Set\x20image\x20width:*\x20%0',_0x320670)}:{'type':'format','content':o(_0x28a5a8,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4bba04=this['editor']['locale'],_0x147c4c=this['editor']['plugins']['get']('TrackChangesEditing');_0x147c4c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x147c4c['registerBlockAttribute']('src'),_0x147c4c['descriptionFactory']['registerDescriptionCallback'](_0x4682a6=>{if('attribute'!=_0x4682a6['type'])return;const {data:_0x4077b9}=_0x4682a6;return _0x4077b9&&'src'==_0x4077b9['key']?_0x4077b9['newValue']&&_0x4077b9['oldValue']?{'type':'format','content':o(_0x4bba04,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x350106=this['editor']['plugins']['get']('TrackChangesEditing');_0x350106['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x350106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x350106['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x350106['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cd2ea=this['editor'],_0x2b1323=_0x3cd2ea['locale'];_0x3cd2ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4abdbe=>{if('formatBlock'!=_0x4abdbe['type']&&'formatInline'!=_0x4abdbe['type'])return;const {data:_0x8ba1fb}=_0x4abdbe;if(!_0x8ba1fb||'replaceImageSource'!=_0x8ba1fb['commandName'])return;return{'type':'format','content':o(_0x2b1323,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x328234{['afterInit'](){const _0x4d3f2c=this['editor'];if(!_0x4d3f2c['plugins']['has']('ImageStyleEditing'))return;const _0x1a8b15=_0x4d3f2c['plugins']['get']('TrackChangesEditing'),_0x3bf344=_0x4d3f2c['plugins']['get']('ImageUtils'),_0x363772={};_0x1a8b15['enableCommand']('imageStyle',(_0x181e39,_0x16fa7b)=>{const _0x352eb3=_0x4d3f2c['plugins']['get']('Users')['me'],_0x4f1a70=_0x4d3f2c['commands']['get']('imageStyle');let _0x568d99=_0x3bf344['getClosestSelectedImageElement'](_0x4d3f2c['model']['document']['selection']),_0x18f5a8=_0x4d3f2c['model']['createRangeOn'](_0x568d99),_0x5ee253=_0x4f1a70['value'];if(_0x5ee253==_0x16fa7b['value'])return;const _0x2f3fd8={'commandName':'imageStyle','commandParams':[_0x16fa7b],'formatGroupId':_0x2b4c20()};_0x4d3f2c['model']['change'](()=>{if(_0x1a8b15['getSuggestions']()['filter'](_0x539353=>_0x539353['isInContent']&&_0x352eb3==_0x539353['author']&&('formatBlock'==_0x539353['type']||'formatInline'==_0x539353['type'])&&('imageStylePreApply'==_0x539353['subType']||'imageStylePostApply'==_0x539353['subType'])&&_0x539353['getFirstRange']()['isEqual'](_0x18f5a8))['forEach'](_0x573f00=>_0x1a8b15['discardSuggestion'](_0x573f00['head'])),_0x568d99=_0x3bf344['getClosestSelectedImageElement'](_0x4d3f2c['model']['document']['selection']),_0x18f5a8=_0x4d3f2c['model']['createRangeOn'](_0x568d99),_0x4f1a70['refresh'](),_0x4d3f2c['commands']['get']('imageTypeInline')['refresh'](),_0x4d3f2c['commands']['get']('imageTypeBlock')['refresh'](),_0x5ee253=_0x4f1a70['value'],_0x5ee253!=_0x16fa7b['value'])return _0x3bf344['isInlineImage'](_0x568d99)&&_0x4f1a70['shouldConvertImageType'](_0x16fa7b['value'],_0x568d99)?(_0x181e39({..._0x16fa7b,'setImageSizes':!0x1}),_0x568d99=_0x3bf344['getClosestSelectedImageElement'](_0x4d3f2c['model']['document']['selection']),void _0x1a8b15['markBlockFormat'](_0x568d99,{..._0x2f3fd8,'commandReversedParams':[{'value':_0x5ee253||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3bf344['isBlockImage'](_0x568d99)?_0x1a8b15['markBlockFormat'](_0x568d99,_0x2f3fd8,[],'imageStylePostApply'):_0x1a8b15['markInlineFormat'](_0x18f5a8,_0x2f3fd8,'imageStylePostApply'));});});for(const _0x5c1f8d of _0x4d3f2c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x363772[_0x5c1f8d['name']]=_0x5c1f8d['title']['toLowerCase']();_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x110b32])=>{_0x3bf344['setImageNaturalSizeAttributes'](_0x110b32['getContainedElement']());}),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4df31a,_0x5b4aac)=>{_0x1a8b15['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4df31a,{'commandName':_0x5b4aac['commandName'],'commandParams':_0x5b4aac['commandReversedParams']});}),_0x1a8b15['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x172c29,_0x5e6d0e){if(_0x438a2d(_0x172c29,_0x5e6d0e))return[_0x172c29,_0x5e6d0e];if(_0x438a2d(_0x5e6d0e,_0x172c29))return[_0x5e6d0e,_0x172c29];return null;});const _0x47df21=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x438a2d(_0x538fe9,_0x49ac52){const _0x5e7e56=_0x47df21['findIndex'](({type:_0x27a76d,subType:_0x42e57f})=>_0x538fe9['type']==_0x27a76d&&_0x538fe9['subType']==_0x42e57f),_0x4c7c03=_0x47df21['findIndex'](({type:_0x11720c,subType:_0x4a858f})=>_0x49ac52['type']==_0x11720c&&_0x49ac52['subType']==_0x4a858f);if(_0x5e7e56<0x0||_0x4c7c03<0x0)return!0x1;const _0x3b38f5=_0x538fe9['getFirstRange'](),_0x5ca96e=_0x49ac52['getFirstRange']();if((0x0==_0x5e7e56||0x1==_0x5e7e56)&&0x2==_0x4c7c03&&_0x3b38f5['isIntersecting'](_0x5ca96e))return!0x0;if(0x2==_0x5e7e56&&0x3==_0x4c7c03){const _0x12e0d6=_0x1a8b15['_findSuggestions'](_0x3b38f5,'insertion')['filter'](({suggestion:_0x4bc67a,meta:_0x3f52e9})=>_0x3f52e9['isOwn']&&'convertInlineImageToBlock'==_0x4bc67a['subType']);if(_0x12e0d6['length']>0x1&&_0x5ca96e['end']['isEqual'](_0x3b38f5['start']))return!0x0;if(0x1==_0x12e0d6['length']&&(_0x3b38f5['start']['isEqual'](_0x5ca96e['end'])||_0x3b38f5['end']['isEqual'](_0x5ca96e['start'])))return!0x0;}if(0x3==_0x5e7e56&&0x3==_0x4c7c03&&_0x3b38f5['start']['isBefore'](_0x5ca96e['start'])){const _0x4d40b7=_0x3b38f5['end']['nodeAfter'],_0x29524c=_0x5ca96e['start']['nodeBefore'];return _0x3bf344['isBlockImage'](_0x4d40b7)&&_0x4d40b7===_0x29524c;}return!0x1;}_0x4d3f2c['model']['document']['registerPostFixer'](()=>{let _0x54d49f=!0x1;const _0x4b38a7=Array['from'](_0x4d3f2c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x491070,data:_0x17d315}of _0x4b38a7){const {group:_0x20ba6b,type:_0x26b74b,subType:_0x4f41d7,id:_0x4228bc}=_0x1a8b15['_splitMarkerName'](_0x491070);if('suggestion'==_0x20ba6b&&_0x1a8b15['hasSuggestion'](_0x4228bc)){if('formatBlock'==_0x26b74b&&('imageStylePreApply'==_0x4f41d7||'imageStylePostApply'==_0x4f41d7)){const _0x528b96=_0x1a8b15['getSuggestion'](_0x4228bc);if(_0x17d315['newRange']){const _0x511893=_0x528b96['getFirstRange']()['getContainedElement']();if(_0x3bf344['isBlockImage'](_0x511893))continue;_0x1a8b15['discardSuggestion'](_0x528b96),_0x54d49f=!0x0;}}if('insertion'==_0x26b74b&&'imageCaption'==_0x4f41d7&&!_0x17d315['newRange']){const _0x1e4cd8=_0x1a8b15['getSuggestion'](_0x4228bc);_0x1e4cd8['next']&&_0x1e4cd8['next']['isInContent']&&(_0x1a8b15['discardSuggestion'](_0x1e4cd8['next']),_0x54d49f=!0x0);}}}return _0x54d49f;}),this['_registerLegacyDescription'](_0x363772);}['_registerLegacyDescription'](_0x137e19){const _0x313df1=this['editor'],_0x59727d=_0x313df1['locale'];_0x313df1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18a954=>{if('formatBlock'!=_0x18a954['type']&&'formatInline'!=_0x18a954['type'])return;const {data:_0x37b309}=_0x18a954;if(!_0x37b309||'imageStyle'!=_0x37b309['commandName'])return;const _0x30fbb3=_0x37b309['commandParams'][0x0]['value'];return _0x34c5cc('side'===_0x30fbb3?o(_0x59727d,'FORMAT_SIDE_IMAGE'):_0x137e19[_0x30fbb3]||_0x30fbb3);function _0x34c5cc(_0x58809d){return{'type':'format','content':o(_0x59727d,'*Format:*\x20%0',_0x58809d)};}});}}class at extends _0x328234{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x162eb8){super(_0x162eb8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1f547c=this['editor'],_0x580076=_0x1f547c['commands']['get']('importWord'),_0x19fd6b=_0x1f547c['commands']['get']('trackChanges');_0x580076&&(_0x580076['on']('execute',(_0x21939f,[,_0xa77f38])=>{this['_trackChangesValueDuringImport']=_0x19fd6b['value'],_0xa77f38['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x580076,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x580076,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x19fd6b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1f547c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x571e9a,_0x5bfe09){const {suggestions:_0x59c137}=_0x5bfe09,_0x5a3d84=this['editor']['commands']['get']('trackChanges'),_0x4d0bdb=_0x5a3d84['value'];this['_trackChangesValueDuringImport']!==_0x4d0bdb&&(_0x5a3d84['execute'](),this['_trackChangesExecuted']=!0x0),_0x59c137&&_0x59c137['forEach'](({id:_0x5d23d8,type:_0x36e39a,author:_0x4ad871,created_at:_0x4cd476})=>{const _0xb265de={'id':_0x5d23d8,'type':_0x36e39a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4ad871,'createdAt':_0x4cd476?new Date(_0x4cd476):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb265de);});}}class ct extends _0x328234{['afterInit'](){const _0x1e05db=this['editor'],_0x211d20=_0x1e05db['plugins']['get']('TrackChangesEditing');if(_0x1e05db['plugins']['has']('IndentEditing')&&(_0x211d20['enableCommand']('indent'),_0x211d20['enableCommand']('outdent')),_0x1e05db['plugins']['has']('IndentBlock')){for(const _0x232bdc of['indentBlock','outdentBlock'])_0x211d20['enableDefaultAttributesIntegration'](_0x232bdc);}const _0x13d9af=_0x1e05db['locale'];_0x211d20['registerBlockAttribute']('blockIndent'),_0x211d20['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x13d9af,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3030ce=this['editor'],_0x14d965=_0x3030ce['locale'],_0x5cb987=_0x3030ce['plugins']['get']('TrackChangesEditing');_0x5cb987['descriptionFactory']['registerDescriptionCallback'](_0x535f05=>{if('formatBlock'!=_0x535f05['type'])return;const {data:_0x39c266}=_0x535f05;if(!_0x39c266)return;if('indentBlock'!=_0x39c266['commandName']&&'outdentBlock'!=_0x39c266['commandName'])return;const _0x2c03f0=_0x535f05['getItems']()[0x0],_0x23fed8=_0x5cb987['descriptionFactory']['getItemLabel'](_0x2c03f0);return'indentBlock'==_0x39c266['commandName']?{'type':'format','content':o(_0x14d965,'*Indent:*\x20%0',_0x23fed8)}:'outdentBlock'==_0x39c266['commandName']?{'type':'format','content':o(_0x14d965,'*Outdent:*\x20%0',_0x23fed8)}:void 0x0;});}}class ut extends _0x328234{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x328234{['afterInit'](){const _0x4f4cfa=this['editor'];if(!_0x4f4cfa['plugins']['has']('LinkEditing'))return;const _0x1cdbb0=_0x4f4cfa['plugins']['get']('TrackChangesEditing'),_0x41b9e9=_0x4f4cfa['commands']['get']('link');_0x1cdbb0['enableDefaultAttributesIntegration']('link'),_0x1cdbb0['enableDefaultAttributesIntegration']('unlink'),_0x1cdbb0['registerInlineAttribute']('linkHref');for(const _0x1056cf of _0x41b9e9['manualDecorators'])_0x1cdbb0['registerInlineAttribute'](_0x1056cf['id']),_0x1cdbb0['descriptionFactory']['registerAttributeLabel'](_0x1056cf['id'],'link\x20('+_0x1056cf['label']['toLowerCase']()+')');_0x1cdbb0['descriptionFactory']['registerDescriptionCallback'](_0x597ba4=>{if('attribute'!=_0x597ba4['type'])return;const {data:_0x544800}=_0x597ba4;if(!_0x544800||'linkHref'!=_0x544800['key'])return;const _0x5d8b82=_0x544800['newValue'],_0x54d872=_0x4f4cfa['locale'];return{'type':'format','content':null==_0x5d8b82?o(_0x54d872,'*Remove\x20link*'):o(_0x54d872,'*Set\x20link:*\x20%0','\x22'+_0x5d8b82+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa8e309=this['editor'],_0x5052b1=_0xa8e309['locale'];_0xa8e309['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f48f9=>{if('formatInline'!=_0x5f48f9['type'])return;const {data:_0x31f5b1}=_0x5f48f9;if(_0x31f5b1){if('link'==_0x31f5b1['commandName']){const _0x32968b=_0x31f5b1['commandParams'][0x0];return{'type':'format','content':o(_0x5052b1,'*Set\x20link:*\x20%0','\x22'+_0x32968b+'\x22')};}return'unlink'==_0x31f5b1['commandName']?{'type':'format','content':o(_0x5052b1,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x328234{['afterInit'](){const _0x3c7fa7=this['editor'],_0x22620e=_0x3c7fa7['locale'];if(!_0x3c7fa7['plugins']['has']('LegacyListEditing'))return;const _0x4366e5=_0x3c7fa7['plugins']['get']('TrackChangesEditing'),_0x43544c=_0x3c7fa7['plugins']['has']('LegacyTodoListEditing');function _0x349a19(_0x18dc0e){return()=>{const _0x49a18d=_0x3c7fa7['model']['document']['selection'],_0x137202=_0x3c7fa7['commands']['get'](_0x18dc0e);if(_0x137202['value'])return void _0x3c7fa7['execute']('paragraph',{});const _0x293960=_0x18dc0e['slice'](0x0,-0x4),_0x362517=function(_0x179fb0,_0xcca1c6,_0x2b797c){let _0x568ef3=Array['from'](_0x179fb0)['filter'](_0x4ab7da=>function(_0x1c21db,_0x2049d3){return _0x2049d3['checkChild'](_0x1c21db['parent'],'listItem')&&!_0x2049d3['isObject'](_0x1c21db);}(_0x4ab7da,_0x2b797c));_0x568ef3=_0x568ef3['filter'](_0x2f9233=>!_0x2f9233['is']('element','listItem')||_0x2f9233['getAttribute']('listType')!=_0xcca1c6);const _0x4ec30e=new Set();for(const _0x17277a of _0x568ef3)_0x17277a['is']('element','listItem')?_0x4ec30e['add'](fe(_0x17277a)):_0x4ec30e['add'](_0x17277a);return Array['from'](_0x4ec30e);}(_0x49a18d['getSelectedBlocks'](),_0x293960,_0x3c7fa7['model']['schema']);_0x3c7fa7['model']['change'](()=>{for(const _0x294703 of _0x362517)_0x4366e5['markBlockFormat'](_0x294703,{'commandName':_0x18dc0e,'commandParams':[{'forceValue':!_0x137202['value']}],'formatGroupId':'blockName'},ue(_0x294703));});};}function _0x6ebef(_0x366f6e){return()=>{const _0x36b902=function(_0xa260e9){let _0x58abe4=Array['from'](_0xa260e9);const _0x3183eb=_0x58abe4['findIndex'](_0x5035dd=>'listItem'!=_0x5035dd['name']);return _0x3183eb>-0x1&&(_0x58abe4=_0x58abe4['slice'](0x0,_0x3183eb)),_0x58abe4;}(_0x3c7fa7['model']['document']['selection']['getSelectedBlocks']()),_0x5aa321=_0x3c7fa7['model']['createRange'](_0x3c7fa7['model']['createPositionAt'](_0x36b902[0x0],'before'),_0x3c7fa7['model']['createPositionAt'](_0x36b902[_0x36b902['length']-0x1],'end'));_0x3c7fa7['model']['change'](()=>{_0x4366e5['markBlockFormat'](_0x5aa321,{'commandName':_0x366f6e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5714ce){const _0x5149dc=new Set();for(const _0x5ad09e of _0x5714ce){let _0x40f874=_0x5ad09e['nextSibling'];for(;_0x40f874&&_0x40f874['getAttribute']('listIndent')>_0x5ad09e['getAttribute']('listIndent');)_0x5149dc['add'](_0x40f874),_0x40f874=_0x40f874['nextSibling'];}return Array['from'](_0x5149dc);}(_0x36b902));});};}_0x4366e5['enableCommand']('numberedList',_0x349a19('numberedList')),_0x4366e5['enableCommand']('bulletedList',_0x349a19('bulletedList')),_0x43544c&&_0x4366e5['enableCommand']('todoList',_0x349a19('todoList')),_0x4366e5['enableCommand']('indentList',_0x6ebef('indentList')),_0x4366e5['enableCommand']('outdentList',_0x6ebef('outdentList')),_0x43544c&&_0x4366e5['enableCommand']('checkTodoList',()=>{const _0x27278c=_0x3c7fa7['commands']['get']('checkTodoList'),_0xc7cf9c=Array['from'](_0x27278c['_selectedElements']);_0xc7cf9c['filter'](_0x59c448=>_0x59c448['getAttribute']('todoListChecked')!=_0x27278c['value']),_0x3c7fa7['model']['change'](()=>{for(const _0xd52ad4 of _0xc7cf9c)_0x4366e5['markBlockFormat'](_0xd52ad4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x27278c['value']}]});});}),_0x4366e5['descriptionFactory']['registerElementLabel']('listItem',_0x31870c=>o(_0x22620e,'ELEMENT_LIST_ITEM',_0x31870c)),_0x4366e5['descriptionFactory']['registerDescriptionCallback'](_0x1900a3=>{if('formatBlock'!=_0x1900a3['type']&&'formatInline'!=_0x1900a3['type'])return;const {data:_0x39ae1b}=_0x1900a3;if(_0x39ae1b){if('numberedList'==_0x39ae1b['commandName']||'bulletedList'==_0x39ae1b['commandName']||'todoList'==_0x39ae1b['commandName'])switch(_0x39ae1b['commandName']['replace']('List','')){case'bulleted':return _0x521df0(o(_0x22620e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x521df0(o(_0x22620e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x521df0(o(_0x22620e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x39ae1b['commandName'])return{'type':'format','content':o(_0x22620e,'*Indent:*\x20%0',o(_0x22620e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x39ae1b['commandName'])return{'type':'format','content':o(_0x22620e,'*Outdent:*\x20%0',o(_0x22620e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x39ae1b['commandName'])return _0x39ae1b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22620e,'*Check\x20item*')}:{'type':'format','content':o(_0x22620e,'*Uncheck\x20item*')};}function _0x521df0(_0x2c94c6){return{'type':'format','content':o(_0x22620e,'*Change\x20to:*\x20%0',_0x2c94c6)};}});}}function fe(_0x1c57fd){const _0x42432e=_0x1c57fd['getAttribute']('listIndent');if(0x0==_0x42432e)return _0x1c57fd;let _0x3f334c=_0x1c57fd;for(;_0x1c57fd['previousSibling']&&_0x1c57fd['previousSibling']['is']('element','listItem');){const _0x2ff9af=_0x1c57fd['previousSibling']['getAttribute']('listIndent');if(_0x2ff9af==_0x42432e)_0x3f334c=_0x1c57fd['previousSibling'];else{if(_0x2ff9af<_0x42432e)break;}_0x1c57fd=_0x1c57fd['previousSibling'];}return _0x3f334c;}function ue(_0x51180e){const _0x2c58b2=[];if(_0x51180e['is']('element','listItem')&&_0x51180e['getAttribute']('listIndent')>0x0){let _0x21fefe=_0x51180e['nextSibling'];for(;_0x21fefe&&'listItem'==_0x21fefe['name']&&_0x21fefe['getAttribute']('listIndent')==_0x51180e['getAttribute']('listIndent');)_0x2c58b2['push'](_0x21fefe),_0x21fefe=_0x21fefe['nextSibling'];}return _0x2c58b2;}class W extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x329844=this['editor']['config']['get']('list.properties'),_0x1c1ef2=this['editor']['plugins']['get']('TrackChangesEditing');_0x329844['styles']&&_0x1c1ef2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x329844['reversed']&&_0x1c1ef2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x329844['startIndex']&&_0x1c1ef2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1c1ef2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x14fc6f,_0x4a2044={}){const _0x56ec04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24bad3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x56ec04['markMultiRangeBlockFormat'](_0x24bad3,{'commandName':'listStyle','commandParams':[{'type':_0x4a2044['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x312602,_0x38f73d={}){const _0x21e351=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4473e6=this['_getSuggestionBlocks'](_0x5b57f4=>_0x5b57f4['is']('element','listItem')&&'numbered'===_0x5b57f4['getAttribute']('listType'));if(_0x4473e6['length']<0x1)return;const _0x334cdd=_0x4473e6['map'](_0x4e0812=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e0812,'before'),this['editor']['model']['createPositionAt'](_0x4e0812,0x0)));this['editor']['model']['change'](()=>{_0x21e351['markMultiRangeBlockFormat'](_0x334cdd,{'commandName':'listReversed','commandParams':[{'reversed':_0x38f73d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5af60f,_0x40d840={}){const _0x211c9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x222274=this['_getSuggestionBlocks'](_0xba13c7=>_0xba13c7['is']('element','listItem')&&'numbered'===_0xba13c7['getAttribute']('listType'));if(_0x222274['length']<0x1)return;const _0x468de0=_0x222274['map'](_0x2c8620=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2c8620,'before'),this['editor']['model']['createPositionAt'](_0x2c8620,0x0)));this['editor']['model']['change'](()=>{_0x211c9b['markMultiRangeBlockFormat'](_0x468de0,{'commandName':'listStart','commandParams':[{'startIndex':_0x40d840['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3cf059){if('formatBlock'!=_0x3cf059['type']&&'formatInline'!=_0x3cf059['type'])return;const _0x26e1e5=this['editor']['locale'],{data:_0x193d39}=_0x3cf059;if(!_0x193d39)return;let _0x5c92d2,_0x6df66e;switch(_0x193d39['commandName']){case'listStyle':_0x5c92d2='*Change\x20to:*\x20%0',_0x6df66e={'type':'format','content':o(_0x26e1e5,_0x5c92d2,o(_0x26e1e5,this['_getTranslationKeyForListStyle'](_0x193d39['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5c92d2=_0x193d39['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x6df66e={'type':'format','content':o(_0x26e1e5,_0x5c92d2)};break;case'listStart':_0x5c92d2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x6df66e={'type':'format','content':o(_0x26e1e5,_0x5c92d2,_0x193d39['commandParams'][0x0]['startIndex'])};}return _0x6df66e;}['_getSuggestionBlocksForListStyle'](){const _0x22b57e=this['editor']['plugins']['get']('LegacyListUtils');let _0x16c844=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x16c844[0x0]?.['is']('element','listItem')&&_0x16c844['unshift'](..._0x22b57e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x16c844[_0x16c844['length']-0x1]?.['is']('element','listItem')&&_0x16c844['push'](..._0x22b57e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x16c844=[...new Set(_0x16c844)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x16c844=_0x16c844['filter'](_0x5193d2=>_0x5193d2['is']('element','listItem'))),_0x16c844;}['_getSuggestionBlocks'](_0x3dd935){const _0x53fba5=this['editor']['plugins']['get']('LegacyListUtils');let _0x6b3393=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3dd935)['map'](_0x2974f0=>{const _0x24d8fa=this['editor']['model']['createPositionAt'](_0x2974f0,0x0);return[..._0x53fba5['getSiblingNodes'](_0x24d8fa,'backward'),..._0x53fba5['getSiblingNodes'](_0x24d8fa,'forward')];})['flat']();return _0x6b3393=[...new Set(_0x6b3393)],_0x6b3393;}['_getTranslationKeyForListStyle'](_0x24d8da){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x24d8da)||'default')['toUpperCase']()+'_LIST_'+_0x24d8da['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x328234{['afterInit'](){const _0x4571fd=this['editor'];if(!_0x4571fd['plugins']['has']('MediaEmbedEditing'))return;const _0xd6a22b=_0x4571fd['plugins']['get']('TrackChangesEditing'),_0x4b3624=_0x4571fd['locale'];_0xd6a22b['enableCommand']('mediaEmbed'),_0xd6a22b['descriptionFactory']['registerElementLabel']('media',_0x5f0036=>o(_0x4b3624,'ELEMENT_MEDIA',_0x5f0036)),_0x4571fd['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x31d936,{writer:_0x14bc65,options:_0x441997})=>{if(_0x441997['showSuggestionHighlights'])return _0x14bc65['createEmptyElement']('div');},'converterPriority':'high'}),_0x4571fd['data']['downcastDispatcher']['on']('attribute:url:media',(_0x718bb4,_0x36727f,_0x290039)=>{_0x290039['options']['showSuggestionHighlights']&&_0x718bb4['stop']();},{'priority':'high'});}}class mt extends _0x328234{['afterInit'](){const _0x1446bc=this['editor'];_0x1446bc['plugins']['has']('MentionEditing')&&_0x1446bc['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x328234{['afterInit'](){const _0x508c1a=this['editor'];if(!_0x508c1a['plugins']['has']('MergeFieldsEditing'))return;_0x508c1a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x508c1a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x39debc=_0x508c1a['plugins']['get']('TrackChangesEditing'),_0x3cb77f=_0x508c1a['locale'];_0x39debc['descriptionFactory']['registerElementLabel']('mergeField',_0x4904a3=>o(_0x3cb77f,'ELEMENT_MERGE_FIELD',_0x4904a3)),_0x39debc['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2676d8=>o(_0x3cb77f,'ELEMENT_MERGE_FIELD',_0x2676d8)),_0x39debc['descriptionFactory']['registerDescriptionCallback'](_0x202e2a=>{if('insertion'!=_0x202e2a['type']&&'deletion'!=_0x202e2a['type'])return;const _0x172eb5=_0x202e2a['getContainedElement']();if(null==_0x172eb5)return;if(!_0x172eb5['is']('element','mergeField')&&!_0x172eb5['is']('element','mergeFieldBlock'))return;const _0x501c52=_0x508c1a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x172eb5['getAttribute']('id'));return'insertion'==_0x202e2a['type']?{'type':'insertion','content':o(_0x3cb77f,'*Insert:*\x20%0','\x22'+_0x501c52+'\x22\x20'+o(_0x3cb77f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3cb77f,'*Remove:*\x20%0','\x22'+_0x501c52+'\x22\x20'+o(_0x3cb77f,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x328234{['afterInit'](){const _0x336562=this['editor'],_0xcf21a4=_0x336562['plugins']['get']('TrackChangesEditing');_0x336562['plugins']['has']('MultiLevelList')&&(_0xcf21a4['enableDefaultAttributesIntegration']('multiLevelList'),_0xcf21a4['registerBlockAttribute']('listMarkerStyle'),_0xcf21a4['descriptionFactory']['registerDescriptionCallback'](_0x245546=>this['handleDescriptions'](_0x245546)));}['handleDescriptions'](_0x4364d3){const _0x31bfc1=this['editor']['locale'],{data:_0x2f0787}=_0x4364d3,_0x51b666={'type':'format','content':''};if(_0x2f0787&&'listMarkerStyle'==_0x2f0787['key']){if(!_0x2f0787['oldValue'])return{'type':'format','content':o(_0x31bfc1,'*Set\x20format:*\x20%0',o(_0x31bfc1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f0787['newValue']+')'};if(!_0x2f0787['newValue']){let _0x57f8ce=_0x4364d3['head'];for(;_0x57f8ce;){if(_0x57f8ce['data']&&'listType'==_0x57f8ce['data']['key']&&_0x57f8ce['data']['newValue'])return _0x51b666;_0x57f8ce=_0x57f8ce['next'];}return{'type':'format','content':o(_0x31bfc1,'*Remove\x20format:*\x20%0',o(_0x31bfc1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f0787['oldValue']+')'};}}}}class kt extends _0x328234{['afterInit'](){const _0x5bd041=this['editor'];if(!_0x5bd041['plugins']['has']('PageBreakEditing'))return;_0x5bd041['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x369fee=_0x5bd041['plugins']['get']('TrackChangesEditing'),_0x40e251=_0x5bd041['locale'];_0x369fee['descriptionFactory']['registerElementLabel']('pageBreak',_0x57055b=>o(_0x40e251,'ELEMENT_PAGE_BREAK',_0x57055b));}}class bt extends _0x328234{['afterInit'](){const _0x29428c=this['editor'];if(!_0x29428c['plugins']['has']('Paragraph'))return;const _0x1a4dce=_0x29428c['locale'],_0x44f7ef=_0x29428c['plugins']['get']('TrackChangesEditing');_0x44f7ef['descriptionFactory']['registerElementLabel']('paragraph',_0x2b5310=>o(_0x1a4dce,'ELEMENT_PARAGRAPH',_0x2b5310)),_0x44f7ef['enableDefaultAttributesIntegration']('paragraph'),_0x44f7ef['enableCommand']('insertParagraph'),_0x29428c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x29428c),{'priority':'highest'}),_0x29428c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e088b,_0x25766b,_0x1d1650)=>{_0x1d1650['options']['showSuggestionHighlights']&&nr(_0x29428c,{'showActiveMarker':!0x1})(_0x1e088b,_0x25766b,_0x1d1650);},{'priority':'highest'});const _0x4ad5f7=_0x44f7ef['descriptionFactory'];_0x4ad5f7['registerDescriptionCallback'](_0x1e96fd=>{if('insertion'!==_0x1e96fd['type'])return;const {start:_0x4d11c7,end:_0xbda0fa}=_0x1e96fd['getFirstRange']();if(!_0x4d11c7['isTouching'](_0xbda0fa)||!_0x4d11c7['nodeAfter'])return;const _0x541bb4=_0x29428c['model']['schema'],_0x8cde8a=_0x4d11c7['nodeAfter'];return _0x541bb4['isBlock'](_0x8cde8a)&&!_0x541bb4['isLimit'](_0x8cde8a)&&_0x541bb4['checkChild'](_0x8cde8a,'$text')?{'type':'insertion','content':o(_0x1a4dce,'*Insert:*\x20%0',_0x4ad5f7['getItemLabel'](_0x8cde8a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4879c4=this['editor'],_0x1de12d=_0x4879c4['locale'];_0x4879c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bc35e=>{if('formatBlock'!=_0x3bc35e['type'])return;const {data:_0x1a5e76}=_0x3bc35e;return _0x1a5e76&&'paragraph'==_0x1a5e76['commandName']?{'type':'format','content':o(_0x1de12d,'*Change\x20to:*\x20%0',o(_0x1de12d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x54055e,{showActiveMarker:_0x1923a5=!0x0}={}){return(_0xe08ce7,_0x556763,_0x5149d9)=>{const _0x241f07=_0x54055e['plugins']['get']('TrackChangesEditing'),_0x239316=_0x556763['markerRange']['start'],_0x425193=_0x556763['markerRange']['end'],_0xdcd656=_0x54055e['model']['schema'];if(!_0x239316['isTouching'](_0x425193)||!_0x239316['nodeAfter'])return;const _0x190ae4=_0x239316['nodeAfter'];if(_0xdcd656['isBlock'](_0x190ae4)&&!_0xdcd656['isLimit'](_0x190ae4)&&_0xdcd656['checkChild'](_0x190ae4,'$text')){if(!_0x5149d9['consumable']['consume'](_0x556763['markerRange'],_0xe08ce7['name']))return;const {authorId:_0xaace3}=_0x241f07['_splitMarkerName'](_0x556763['markerName']),_0x207c85=_0x5149d9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xaace3}),_0x12c013=_0x5149d9['mapper']['toViewPosition'](_0x425193);_0x1923a5&&_0x241f07['activeMarkers']['includes'](_0x556763['markerName'])&&_0x5149d9['writer']['addClass']('ck-suggestion-marker--active',_0x207c85),_0x5149d9['writer']['insert'](_0x12c013,_0x207c85),_0x5149d9['mapper']['bindElementToMarker'](_0x207c85,_0x556763['markerName']);}};}class wt extends _0x328234{['afterInit'](){const _0x19d16a=this['editor'];if(!_0x19d16a['plugins']['has']('RemoveFormatEditing'))return;_0x19d16a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57a258=this['editor'];_0x57a258['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeb1128=>{if('formatBlock'!=_0xeb1128['type']&&'formatInline'!=_0xeb1128['type'])return;const {data:_0x1e3179}=_0xeb1128;return _0x1e3179&&'removeFormat'==_0x1e3179['commandName']?{'type':'format','content':o(_0x57a258['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x328234{['afterInit'](){const _0x2c6a6d=this['editor'];if(!_0x2c6a6d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3532c8=_0x2c6a6d['plugins']['get']('TrackChangesEditing');_0x3532c8['enableCommand']('goToPreviousRestrictedEditingException'),_0x3532c8['enableCommand']('goToNextRestrictedEditingException');const _0x77ac2a=_0x2c6a6d['plugins']['get']('RestrictedEditingModeEditing');_0x77ac2a['enableCommand']('trackChanges'),_0x77ac2a['enableCommand']('acceptSuggestion'),_0x77ac2a['enableCommand']('discardSuggestion'),_0x77ac2a['enableCommand']('acceptAllSuggestions'),_0x77ac2a['enableCommand']('discardAllSuggestions'),_0x77ac2a['enableCommand']('acceptSelectedSuggestions'),_0x77ac2a['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x328234{static get['requires'](){return[_0x51d29b];}['init'](){const _0x43a744=this['editor'],_0x71b943=_0x43a744['plugins']['get']('TrackChangesEditing');_0x71b943['enableCommand']('shiftEnter'),_0x43a744['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x43a744),{'priority':'high'}),_0x43a744['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x43a744),{'priority':'high'}),_0x43a744['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x228394,_0x30f299,_0x145924)=>{_0x145924['options']['showSuggestionHighlights']&&ge(_0x43a744,{'showActiveMarker':!0x1})(_0x228394,_0x30f299,_0x145924);}),_0x71b943['descriptionFactory']['registerElementLabel']('softBreak',_0x144f4e=>o(_0x43a744['locale'],'ELEMENT_LINE_BREAK',_0x144f4e));}}function ge(_0x1f0482,{showActiveMarker:_0x9c6a7=!0x0}={}){return(_0x5ab0a5,_0x1bef8d,_0x407730)=>{const _0x104b6e=_0x1f0482['plugins']['get']('TrackChangesEditing');if(!_0x407730['consumable']['test'](_0x1bef8d['markerRange'],_0x5ab0a5['name']))return;const _0x1bd142=_0x1f0482['model'];for(const _0x542a58 of _0x1bef8d['markerRange']['getItems']()){if(!_0x542a58['is']('element','softBreak'))continue;const _0x56dbf5='deletion'==_0x1bef8d['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1c8c3f}=_0x104b6e['_splitMarkerName'](_0x1bef8d['markerName']),_0x1421be=_0x407730['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56dbf5,'data-author-id':_0x1c8c3f}),_0x2f1cb5=_0x407730['mapper']['toViewPosition'](_0x1bd142['createPositionBefore'](_0x542a58));_0x9c6a7&&_0x104b6e['activeMarkers']['includes'](_0x1bef8d['markerName'])&&_0x407730['writer']['addClass']('ck-suggestion-marker--active',_0x1421be),_0x407730['writer']['insert'](_0x2f1cb5,_0x1421be),_0x407730['mapper']['bindElementToMarker'](_0x1421be,_0x1bef8d['markerName']);}};}class St extends _0x328234{['afterInit'](){const _0x2ed452=this['editor'],_0x3c042b=_0x2ed452['model'],_0x35b81f=_0x2ed452['locale'];if(!_0x2ed452['plugins']['has']('StandardEditingModeEditing'))return;const _0x231c8a=_0x2ed452['plugins']['get']('TrackChangesEditing'),_0x468d89='restrictedEditingException',_0x1ed1b9=_0x2ed452['commands']['get'](_0x468d89);_0x231c8a['enableCommand'](_0x468d89,(_0x37c05e,_0x3c0e3a={})=>{const _0x39d85d=_0x3c042b['document']['selection'];if(_0x39d85d['isCollapsed'])return void _0x37c05e(_0x3c0e3a);const _0x47eed8=void 0x0!==_0x3c0e3a['forceValue']?_0x3c0e3a['forceValue']:!_0x1ed1b9['value'];_0x3c042b['change'](()=>{const _0x2da8f6=Array['from'](_0x39d85d['getRanges']());for(const _0x5a4bf4 of _0x2da8f6){const _0x1e0027=_0x47eed8?[_0x5a4bf4]:io(_0x468d89,_0x5a4bf4,_0x3c042b);for(const _0x13f777 of _0x1e0027)_0x231c8a['markInlineFormat'](_0x13f777,{'commandName':_0x468d89,'commandParams':[{'forceValue':_0x47eed8}]});}});}),_0x231c8a['descriptionFactory']['registerDescriptionCallback'](_0x315c8f=>{if('formatBlock'!=_0x315c8f['type']&&'formatInline'!=_0x315c8f['type'])return;const {data:_0x35a725}=_0x315c8f;return _0x35a725&&_0x35a725['commandName']==_0x468d89?_0x35a725['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x35b81f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x35b81f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x328234{['afterInit'](){const _0x5f4f8c=this['editor'];if(!_0x5f4f8c['plugins']['has']('Style')||!_0x5f4f8c['plugins']['has']('DataSchema'))return;const _0x307cdd=_0x5f4f8c['plugins']['get']('TrackChangesEditing'),_0xd2b28b=_0x5f4f8c['locale'],_0x415b02=_0x5f4f8c['config']['get']('style')||{},_0x131937=_0x5f4f8c['plugins']['get']('GeneralHtmlSupport'),_0x5819bb=_0x5f4f8c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5f4f8c['plugins']['get']('DataSchema'),_0x415b02['definitions']);_0x307cdd['enableDefaultAttributesIntegration']('style');const _0x4178a0=new Set();for(const _0x2b3f8e of _0x5819bb['block']){const _0x12d132=_0x131937['getGhsAttributeNameForElement'](_0x2b3f8e['element']);_0x4178a0['add'](_0x12d132);}const _0x20391d=new Set();for(const _0xa42acf of _0x5819bb['inline']){const _0x1826a7=_0x131937['getGhsAttributeNameForElement'](_0xa42acf['element']);_0x20391d['add'](_0x1826a7);for(const _0x5e68ee of _0xa42acf['ghsAttributes'])_0x20391d['add'](_0x5e68ee);}for(const _0x2d8183 of _0x4178a0)_0x307cdd['registerBlockAttribute'](_0x2d8183),_0x307cdd['descriptionFactory']['registerAttributeLabel'](_0x2d8183,o(_0xd2b28b,'FORMAT_STYLE'));for(const _0x552b91 of _0x20391d)_0x307cdd['registerInlineAttribute'](_0x552b91),_0x307cdd['descriptionFactory']['registerAttributeLabel'](_0x552b91,o(_0xd2b28b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x249b9d=this['editor'],_0x4f5f83=_0x249b9d['locale'];_0x249b9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x152ded=>{if('formatBlock'!=_0x152ded['type']&&'formatInline'!=_0x152ded['type'])return;const {data:_0x4d0e69}=_0x152ded;return _0x4d0e69&&'style'===_0x4d0e69['commandName']?_0x4d0e69['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f5f83,'*Set\x20format:*\x20%0',_0x4d0e69['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4f5f83,'*Remove\x20format:*\x20%0',_0x4d0e69['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x328234{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49d824){super(_0x49d824),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xf34919=this['editor'],_0x494774=_0xf34919['model']['document']['selection'];if(!_0xf34919['plugins']['has']('TableEditing'))return;const _0x6dc08=_0xf34919['locale'],_0x2ea94f=_0xf34919['plugins']['get']('TrackChangesEditing'),_0x251317=_0xf34919['plugins']['get']('TableUtils');_0x2ea94f['descriptionFactory']['registerElementLabel']('table',_0x2ccf91=>o(_0x6dc08,'ELEMENT_TABLE',_0x2ccf91)),this['_setupColumnsRowsFixing'](),_0x2ea94f['enableCommand']('insertTable'),_0x2ea94f['enableCommand']('selectTableRow'),_0x2ea94f['enableCommand']('selectTableColumn');for(const _0x3a6955 of['insertTableRowAbove','insertTableRowBelow']){const _0x23be5e=_0xf34919['commands']['get'](_0x3a6955);_0x2ea94f['enableCommand'](_0x3a6955,_0x29f07b=>{_0xf34919['model']['change'](_0x377f8f=>{_0x29f07b();const _0x8eadb4='above'===_0x23be5e['order'],_0x40bc2f=_0x251317['getSelectionAffectedTableCells'](_0x494774),_0x385442=_0x251317['getRowIndexes'](_0x40bc2f),_0x93b74b=_0x8eadb4?_0x385442['first']-0x1:_0x385442['last']+0x1,_0x1fabf0=_0x40bc2f[0x0]['findAncestor']('table'),_0x1f95ec=_0x251317['createTableWalker'](_0x1fabf0,{'startRow':_0x93b74b,'endRow':_0x93b74b}),_0x3cd0c0=Array['from'](_0x1f95ec)['map'](_0x4f91ed=>_0x377f8f['createRangeOn'](_0x4f91ed['cell']));_0x2ea94f['markMultiRangeInsertion'](_0x3cd0c0,'tableRow');});});}for(const _0x5e13ff of['insertTableColumnLeft','insertTableColumnRight']){const _0x3a268c=_0xf34919['commands']['get'](_0x5e13ff);_0x2ea94f['enableCommand'](_0x5e13ff,_0x4999cc=>{_0xf34919['model']['change'](_0x3b8d7b=>{_0x4999cc();const _0x4082b3='left'===_0x3a268c['order'],_0x4eee6c=_0x251317['getSelectionAffectedTableCells'](_0x494774),_0x4ed919=_0x251317['getColumnIndexes'](_0x4eee6c),_0x26d42f=_0x4082b3?_0x4ed919['first']-0x1:_0x4ed919['last']+0x1,_0x5b2fda=_0x4eee6c[0x0]['findAncestor']('table'),_0x3547a6=_0x251317['createTableWalker'](_0x5b2fda,{'startRow':0x0,'column':_0x26d42f,'includeAllSlots':!0x1}),_0x59aa10=Array['from'](_0x3547a6)['map'](_0x4b1e27=>_0x3b8d7b['createRangeOn'](_0x4b1e27['cell']));_0x2ea94f['markMultiRangeInsertion'](_0x59aa10,'tableColumn');});});}for(const _0x5edd3d of['removeTableRow','removeTableColumn']){const _0x573bbc=_0x5edd3d['substr'](0xb),_0x28091d=_0x573bbc['toLowerCase'](),_0x489652=_0x28091d['substr'](0x0,0x3)+'span',_0x3a2123='table'+_0x573bbc,_0xd338d0='min'+_0x573bbc,_0x364fd6='max'+_0x573bbc;_0x2ea94f['enableCommand'](_0x5edd3d,()=>{_0xf34919['model']['change'](_0x1090f7=>{const _0x3923aa=_0x251317['getSelectionAffectedTableCells'](_0x494774),_0x44a157=_0x3923aa[0x0]['findAncestor']('table');let _0x5bea9a;if('removeTableRow'==_0x5edd3d){const _0xcfd3fe=_0x251317['getRowIndexes'](_0x3923aa);_0x5bea9a={'startRow':_0xcfd3fe['first'],'endRow':_0xcfd3fe['last'],'includeAllSlots':!0x0};}else{const _0x200706=_0x251317['getColumnIndexes'](_0x3923aa);_0x5bea9a={'startColumn':_0x200706['first'],'endColumn':_0x200706['last'],'includeAllSlots':!0x0};}const _0x3c8a97=_0x251317['createTableWalker'](_0x44a157,_0x5bea9a),_0xf3f3c6=Array['from'](_0x3c8a97)['map'](({cell:_0x2e5853})=>_0x2e5853),_0x535378=be(_0xf3f3c6['filter'](_0x4d0b10=>_0x4d0b10['hasAttribute'](_0x489652))),_0x3bdac6=be(_0xf3f3c6['filter'](_0x5ecb83=>!_0x5ecb83['hasAttribute'](_0x489652)))['map'](_0x328768=>_0x1090f7['createRangeOn'](_0x328768)),_0x3b06b7=_0x2ea94f['markMultiRangeDeletion'](_0x3bdac6,_0x3a2123);if(_0x3b06b7&&('tableRow'==_0x3b06b7['subType']||'tableColumn'==_0x3b06b7['subType'])){const _0x779909=this['_getSuggestionCoords'](_0x3b06b7);for(const _0x5e33fc of _0x535378){const _0x4e6873=_0x1090f7['createRangeOn'](_0x5e33fc),_0x3db54e=_0x251317['getCellLocation'](_0x5e33fc),_0x2fef9f=_0x5e33fc['getAttribute'](_0x489652)-0x1,_0x2efe08=_0x779909[_0xd338d0],_0x1a87d5=_0x779909[_0x364fd6];_0x2efe08<=_0x3db54e[_0x28091d]&&_0x3db54e[_0x28091d]+_0x2fef9f<=_0x1a87d5&&_0x3b06b7['addRange'](_0x4e6873);}}});});}function _0x3d1c58(_0x4988f2){const _0x112648=Array['from'](_0x494774['getRanges']())['map'](_0x495457=>_0xf41792['fromRange'](_0x495457));_0xf34919['model']['change'](_0x4d644a=>{const _0x811173=_0x4d644a['batch'];_0x4988f2=_0x4988f2['filter'](_0x3c32bf=>'$graveyard'!=_0x3c32bf['root']['rootName']),_0x4d644a['setSelection'](_0x4988f2),_0xf34919['commands']['get']('removeTableRow')['refresh'](),_0xf34919['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xf34919['model']['enqueueChange'](()=>{_0xf34919['model']['enqueueChange'](_0x811173,_0x3e51b3=>{const _0x52bd34=_0x112648['filter'](_0xb86cbe=>'$graveyard'!=_0xb86cbe['root']['rootName']);_0x52bd34['length']>0x0&&_0x3e51b3['setSelection'](_0x52bd34);for(const _0x841a2d of _0x112648)_0x841a2d['detach']();});});});}function _0x5709a3(_0x241280){_0xf34919['model']['change'](_0x5ee781=>{const _0x104353=Array['from'](_0x494774['getRanges']())['map'](_0x452a7f=>_0xf41792['fromRange'](_0x452a7f)),_0xaa84df=[];for(const _0x925484 of _0x241280)for(const _0x39ca50 of _0x925484['getItems']({'shallow':!0x0}))_0xaa84df['push'](_0x39ca50);for(const _0xa96aee of _0xaa84df)'$graveyard'!=_0xa96aee['root']['rootName']&&(_0x5ee781['setSelection'](_0x5ee781['createPositionAt'](_0xa96aee,0x0)),_0xf34919['commands']['get']('removeTableColumn')['refresh'](),_0xf34919['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x22f1ab=_0x104353['filter'](_0x37a1f9=>'$graveyard'!=_0x37a1f9['root']['rootName']);_0x22f1ab['length']>0x0&&_0x5ee781['setSelection'](_0x22f1ab);for(const _0x5a372f of _0x104353)_0x5a372f['detach']();});}function _0x5137a5(_0x563490,_0x45571b){return _0x45571b['every'](_0x2eea8a=>_0x563490['some'](_0x29dc6e=>_0x29dc6e['end']['isEqual'](_0x2eea8a['start'])||_0x2eea8a['end']['isEqual'](_0x29dc6e['start'])));}function _0x4b95d6(_0x36b916,_0x253a04){return!_0x36b916['some'](_0xb27d6f=>_0x253a04['some'](_0x2659e3=>_0xb27d6f['isIntersecting'](_0x2659e3)))&&_0x36b916['some'](_0x4d4795=>_0x253a04['some'](_0x2d28c0=>_0x4d4795['end']['isTouching'](_0x2d28c0['start'])));}_0xf34919['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe17ca7,_0x3ab207,_0x433761)=>{if(!_0x433761['options']['showSuggestionHighlights'])return;const _0x7e12a8=_0x3ab207['item'];if(!_0x7e12a8)return;const _0x1f3a9a=_0x433761['mapper']['toViewElement'](_0x7e12a8);function _0x17efdc(_0x247e9){return Array['isArray'](_0x247e9)?_0x247e9:[_0x247e9];}_0x1f3a9a&&'tableCell'===_0x7e12a8['name']&&_0x476147(_0x1f3a9a,_0x433761['writer'],(_0x85263,_0x37b247,_0x1b974c)=>_0x1b974c['addClass'](_0x17efdc(_0x37b247['classes']),_0x85263),(_0x15328f,_0x4fd6be,_0x389515)=>_0x389515['removeClass'](_0x17efdc(_0x4fd6be['classes']),_0x15328f));},{'priority':'highest'}),_0x2ea94f['descriptionFactory']['registerDescriptionCallback'](_0x1069e0=>{if('insertion'!=_0x1069e0['type']&&'deletion'!=_0x1069e0['type'])return;const _0x4c941e=_0x1069e0['getContainedElement']();if(null!=_0x4c941e&&_0x4c941e['is']('element','table')){if('insertion'==_0x1069e0['type']){const _0x425b41=_0x1069e0['getItems']()['filter'](_0x160192=>_0x160192['is']('$textProxy'))['map'](_0x227990=>_0x227990['data']);if(_0x425b41['length'])return{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x425b41['join']('\x20')+'\x22'))};}if('deletion'==_0x1069e0['type']){const _0x5b1865=_0x1069e0['getItems']()['filter'](_0x5b020e=>_0x5b020e['is']('$textProxy'))['map'](_0xdaf178=>_0xdaf178['data']);if(_0x5b1865['length'])return{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5b1865['join']('\x20')+'\x22'))};}}}),_0x2ea94f['descriptionFactory']['registerDescriptionCallback'](_0x567337=>{if('tableRow'==_0x567337['subType']){const _0x5b7af7=_0x567337['getItems']()['filter'](_0x5841e0=>_0x5841e0['is']('$textProxy'))['map'](_0x820a63=>_0x820a63['data']),_0x1f7d93=this['_getSuggestionCoords'](_0x567337),_0x365482=_0x1f7d93['maxRow']-_0x1f7d93['minRow']+0x1;if('insertion'==_0x567337['type'])return _0x5b7af7['length']?{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x365482,'\x22'+_0x5b7af7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_ROW',_0x365482))};if('deletion'==_0x567337['type'])return _0x5b7af7['length']?{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x365482,'\x22'+_0x5b7af7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_ROW',_0x365482))};}if('tableColumn'==_0x567337['subType']){const _0x463797=_0x567337['getItems']()['filter'](_0x249fc4=>_0x249fc4['is']('$textProxy'))['map'](_0x2a88ae=>_0x2a88ae['data']),_0x106a88=this['_getSuggestionCoords'](_0x567337),_0x567272=_0x106a88['maxColumn']-_0x106a88['minColumn']+0x1;if('insertion'==_0x567337['type'])return _0x463797['length']?{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x567272,'\x22'+_0x463797['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x6dc08,'*Insert:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_COLUMN',_0x567272))};if('deletion'==_0x567337['type'])return _0x463797['length']?{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x567272,'\x22'+_0x463797['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x6dc08,'*Remove:*\x20%0',o(_0x6dc08,'ELEMENT_TABLE_COLUMN',_0x567272))};}}),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3d1c58),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3d1c58),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5709a3),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5709a3),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5137a5),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5137a5),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4b95d6),_0x2ea94f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4b95d6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x27ccc0=this['editor'],_0x3f20a5=_0x27ccc0['model']['document']['selection'];return(_0x3908e5,_0x4df937)=>{_0x27ccc0['model']['change'](_0x36bfd7=>{const {commandName:_0x4b0aec,commandParams:_0x582921}=_0x4df937;let _0x1fc2da=_0x3908e5[0x0]['end']['nodeBefore'];_0x582921&&_0x582921[0x0]&&!0x1===_0x582921[0x0]['forceValue']&&(_0x1fc2da=_0x3908e5[0x0]['start']['nodeAfter']);const _0x187156=_0x36bfd7['createRangeIn'](_0x1fc2da);if('$graveyard'==_0x187156['root']['rootName'])return;const _0x586901=Array['from'](_0x3f20a5['getRanges']())['map'](_0x293d97=>_0xf41792['fromRange'](_0x293d97));_0x36bfd7['setSelection'](_0x187156),_0x27ccc0['commands']['get'](_0x4b0aec)['refresh'](),_0x582921['push']({'forceDefaultExecution':!0x0}),_0x27ccc0['execute'](_0x4b0aec,..._0x582921);const _0x4ed59a=_0x586901['filter'](_0x4edebf=>'$graveyard'!=_0x4edebf['root']['rootName']);_0x4ed59a['length']>0x0&&_0x36bfd7['setSelection'](_0x4ed59a);for(const _0x3026c7 of _0x586901)_0x3026c7['detach']();});};}['_getCoordsForCells'](_0x51f92d){const _0x5dadf8=this['editor']['plugins']['get']('TableUtils');let _0x4fb937=Number['MAX_SAFE_INTEGER'],_0x19ae7b=Number['MIN_SAFE_INTEGER'],_0x1b8e2d=Number['MAX_SAFE_INTEGER'],_0x4859ac=Number['MIN_SAFE_INTEGER'];for(const _0x18eb0d of _0x51f92d){if('$graveyard'==_0x18eb0d['root']['rootName'])continue;const {row:_0x3dc747,column:_0x3349cf}=_0x5dadf8['getCellLocation'](_0x18eb0d),_0x1fc69c=_0x18eb0d['hasAttribute']('rowspan')?_0x18eb0d['getAttribute']('rowspan')-0x1:0x0,_0x47b2b7=_0x18eb0d['hasAttribute']('colspan')?_0x18eb0d['getAttribute']('colspan')-0x1:0x0;_0x4fb937=_0x3dc747<_0x4fb937?_0x3dc747:_0x4fb937,_0x19ae7b=_0x3dc747+_0x1fc69c>_0x19ae7b?_0x3dc747+_0x1fc69c:_0x19ae7b,_0x1b8e2d=_0x3349cf<_0x1b8e2d?_0x3349cf:_0x1b8e2d,_0x4859ac=_0x3349cf+_0x47b2b7>_0x4859ac?_0x3349cf+_0x47b2b7:_0x4859ac;}return{'minRow':_0x4fb937,'maxRow':_0x19ae7b,'minColumn':_0x1b8e2d,'maxColumn':_0x4859ac};}['_setupColumnsRowsFixing'](){const _0x999d81=this['editor'],_0x3a0d79=_0x999d81['plugins']['get']('TrackChangesEditing'),_0x45409e=_0x999d81['plugins']['get']('TableUtils');_0x999d81['model']['document']['on']('change:data',()=>{const _0x10355b=Array['from'](_0x999d81['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xbc79ff,data:_0x9b0d4b}of _0x10355b){const {group:_0xc5568d,id:_0x2ff268,subType:_0x2d81ba}=_0x3a0d79['_splitMarkerName'](_0xbc79ff);if('suggestion'!=_0xc5568d)continue;if(null!=_0x9b0d4b['oldRange'])continue;const _0x766816=_0x3a0d79['getSuggestion'](_0x2ff268);this['_tablePostFixingSubtypes']['includes'](_0x2d81ba)&&this['_tableSuggestions']['add'](_0x766816);}},{'priority':'low'});const _0x1f90f4=(_0x158b3a,_0x21c9f1)=>{let _0x351351=!0x1;const _0x58d8f6=_0x21c9f1['createRangeOn'](_0x158b3a),_0x2499aa=_0x158b3a['findAncestor']('table'),_0x1ec3ee=_0x45409e['getCellLocation'](_0x158b3a);for(const _0x4825e6 of this['_tableSuggestions']){const _0x2f52a6=_0x4825e6['subType'],_0x32af38=_0x2f52a6['startsWith']('tablePaste'),_0x48f4f9=_0x2f52a6['substr'](_0x32af38?0xa:0x5),_0x3cddcf=_0x48f4f9['toLowerCase'](),_0x209825=_0x3cddcf['substr'](0x0,0x3)+'span',_0x343e2e='min'+_0x48f4f9,_0x59dccd='max'+_0x48f4f9;if(!_0x4825e6['isInContent'])continue;if(_0x2499aa!=_0x4825e6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4825e6['isIntersectingWithRange'](_0x58d8f6))continue;const _0x66c0eb=_0x158b3a['hasAttribute'](_0x209825)?_0x158b3a['getAttribute'](_0x209825)-0x1:0x0,_0x54e444=this['_getSuggestionCoords'](_0x4825e6),_0x3952d2=_0x54e444[_0x343e2e],_0x586e82=_0x54e444[_0x59dccd];_0x3952d2<=_0x1ec3ee[_0x3cddcf]&&_0x1ec3ee[_0x3cddcf]+_0x66c0eb<=_0x586e82&&(_0x4825e6['addRange'](_0x58d8f6),_0x351351=!0x0);}return _0x351351;};_0x999d81['model']['document']['registerPostFixer'](_0x411dd0=>{let _0x2af623=!0x1;for(const _0xa8ce9c of _0x999d81['model']['document']['differ']['getChanges']())if('insert'==_0xa8ce9c['type']){if('tableRow'==_0xa8ce9c['name']){for(const _0x3281f0 of _0xa8ce9c['position']['nodeAfter']['getChildren']())_0x2af623=_0x2af623||_0x1f90f4(_0x3281f0,_0x411dd0);}else'tableCell'==_0xa8ce9c['name']&&(_0x2af623=_0x2af623||_0x1f90f4(_0xa8ce9c['position']['nodeAfter'],_0x411dd0));}return _0x2af623;});}['_getSuggestionCoords'](_0x39ac71){return this['_getCoordsForCells'](_0x39ac71['getRanges']()['map'](_0x1d0c0d=>_0x1d0c0d['start']['nodeAfter']));}}function be(_0x19cc39){return Array['from'](new Set(_0x19cc39)['values']());}class vt extends _0x328234{static get['requires'](){return[It];}['afterInit'](){const _0x805cb7=this['editor'],_0x37d2b3=_0x805cb7['model']['document']['selection'],_0x11e08f=_0x805cb7['locale'];if(!_0x805cb7['plugins']['has']('TableEditing'))return;const _0x495718=_0x805cb7['plugins']['get']('TrackChangesEditing'),_0x45d0ec=_0x805cb7['plugins']['get']('TableUtils'),_0x389286=_0x805cb7['plugins']['get'](It);_0x389286['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x495718['enableCommand']('mergeTableCells',()=>{const _0x1fe895=_0x45d0ec['getSelectionAffectedTableCells'](_0x805cb7['model']['document']['selection']);_0x805cb7['model']['change'](()=>{_0x495718['markMultiRangeBlockFormat'](_0x1fe895,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x805cb7['commands']['get']('mergeTableCells')['on']('execute',(_0x55c94b,_0x54292d)=>{_0x805cb7['commands']['get']('trackChanges')['value']&&(_0x54292d['length']>0x0&&_0x54292d[_0x54292d['length']-0x1]&&_0x54292d[_0x54292d['length']-0x1]['forceDefaultExecution']||_0x495718['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x55c94b['stop']());},{'priority':'highest'});for(const _0xf1cd33 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x50ae76=_0x805cb7['commands']['get'](_0xf1cd33);_0x495718['enableCommand'](_0xf1cd33,()=>{const _0x523abf=_0x805cb7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xef8717=>_0xef8717['is']('element','tableCell')),_0x5ad28c=_0x50ae76['value'];_0x805cb7['model']['change'](()=>{_0x495718['markMultiRangeBlockFormat']([_0x523abf,_0x5ad28c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x54165e of['splitTableCellVertically','splitTableCellHorizontally']){const _0x48d4c9=_0x805cb7['commands']['get'](_0x54165e);_0x495718['enableCommand'](_0x54165e,()=>{const _0x4f28c0=_0x45d0ec['getSelectionAffectedTableCells'](_0x805cb7['model']['document']['selection'])[0x0],_0x42e6a4=_0x4f28c0['findAncestor']('table'),{column:_0x5ce9a1,row:_0x19450d}=_0x45d0ec['getCellLocation'](_0x4f28c0);let _0x2675d4=[];if('horizontally'==_0x48d4c9['direction']){const _0x40626a=_0x45d0ec['createTableWalker'](_0x42e6a4,{'startRow':_0x19450d,'endRow':_0x19450d,'includeAllSlots':!0x0});_0x2675d4=Array['from'](_0x40626a)['map'](_0x1017ba=>_0x1017ba['cell']);}else{const _0xfe37d0=_0x45d0ec['createTableWalker'](_0x42e6a4,{'column':_0x5ce9a1,'includeAllSlots':!0x0});_0x2675d4=Array['from'](_0xfe37d0)['map'](_0x103f09=>_0x103f09['cell']);}_0x805cb7['model']['change'](_0x511f46=>{_0x495718['markBlockFormat'](_0x511f46['createRangeOn'](_0x4f28c0),{'commandName':_0x54165e,'commandParams':[]},_0x2675d4,_0x54165e);});});}_0x495718['descriptionFactory']['registerDescriptionCallback'](_0x236519=>{if('formatBlock'!=_0x236519['type']&&'formatInline'!=_0x236519['type'])return;const {data:_0xb1255e}=_0x236519;return _0xb1255e&&'mergeTableCells'==_0xb1255e['commandName']?{'type':'format','content':o(_0x11e08f,'*Merge\x20cells*')}:void 0x0;}),_0x495718['descriptionFactory']['registerDescriptionCallback'](_0x170229=>{if('formatBlock'!=_0x170229['type']&&'formatInline'!=_0x170229['type'])return;const {data:_0x122687}=_0x170229;return _0x122687?'splitTableCellVertically'==_0x122687['commandName']?{'type':'format','content':o(_0x11e08f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x122687['commandName']?{'type':'format','content':o(_0x11e08f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x48f7ae=_0x389286['_acceptFormatSuggestionCallbackFactory']();for(const _0x2cf20e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x495718['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2cf20e,'accept',_0x48f7ae);for(const _0x2cae23 of['splitTableCellVertically','splitTableCellHorizontally'])_0x495718['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2cae23,'accept',_0x48f7ae);_0x495718['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5a0fb5=>{_0x805cb7['model']['change'](_0x227d83=>{const _0x3bd1dd=Array['from'](_0x37d2b3['getRanges']())['map'](_0x5514cb=>_0xf41792['fromRange'](_0x5514cb));_0x227d83['setSelection'](_0x5a0fb5),_0x805cb7['commands']['get']('mergeTableCells')['refresh'](),_0x805cb7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x56b2fe=_0x3bd1dd['filter'](_0x4861c4=>'$graveyard'!=_0x4861c4['root']['rootName']);_0x56b2fe['length']>0x0&&_0x227d83['setSelection'](_0x56b2fe);for(const _0x18bf85 of _0x3bd1dd)_0x18bf85['detach']();});});for(const _0x4f65f4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xbb9284=_0x805cb7['commands']['get'](_0x4f65f4);_0xbb9284['on']('set:isEnabled',(_0x4b41f5,_0xe7ac87,_0x538d74)=>{if(_0x538d74){const _0x584b65=_0x805cb7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x464568=>_0x464568['is']('element','tableCell'));this['_areMergableCells'](_0xbb9284['value'],_0x584b65)||(_0x4b41f5['return']=!0x1,_0x4b41f5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x16c564=this['editor']['commands']['get']('mergeTableCells'),_0x13bc3f=this['editor']['plugins']['get']('TableUtils');if(!_0x16c564['isEnabled'])return!0x1;const _0x37ca0e=_0x13bc3f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1247d7 of _0x37ca0e)for(const _0x41d371 of _0x37ca0e)if(_0x1247d7!=_0x41d371&&!this['_areMergableCells'](_0x1247d7,_0x41d371))return!0x1;return!0x0;}['_areMergableCells'](_0x4a8d9c,_0x234d52){const _0x5bd2e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x153601=this['editor']['model']['createRangeOn'](_0x4a8d9c),_0x3c954a=this['editor']['model']['createRangeOn'](_0x234d52),_0x53a2ec=new Set(),_0x1b8b1c=new Set();for(const _0x59c156 of _0x5bd2e1['getSuggestions']())if(('insertion'==_0x59c156['type']||'deletion'==_0x59c156['type']||'mergeTableCells'==_0x59c156['subType'])&&_0x59c156['isInContent']){for(const _0x520e1d of _0x59c156['getRanges']())_0x520e1d['containsRange'](_0x153601,!0x0)&&_0x53a2ec['add'](_0x59c156['type']+':'+_0x59c156['author']['id']),_0x520e1d['containsRange'](_0x3c954a,!0x0)&&_0x1b8b1c['add'](_0x59c156['type']+':'+_0x59c156['author']['id']);}if(_0x53a2ec['size']!=_0x1b8b1c['size'])return!0x1;for(const _0x202dae of _0x53a2ec)if(!_0x1b8b1c['has'](_0x202dae))return!0x1;return!0x0;}}class Ct extends _0x328234{static get['requires'](){return[It];}['afterInit'](){const _0x10f16c=this['editor'];if(!_0x10f16c['plugins']['has']('TableEditing'))return;const _0x358e88=_0x10f16c['locale'],_0x55a256=_0x10f16c['plugins']['get']('TrackChangesEditing');_0x55a256['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x55a256['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x55a256['registerBlockAttribute']('headingRows'),_0x55a256['registerBlockAttribute']('headingColumns'),_0x55a256['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x358e88,'FORMAT_HEADER_ROW')),_0x55a256['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x358e88,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5312c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc609e3=this['editor']['plugins']['get']('TableUtils'),_0x274e0f=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x53091a({showActiveMarker:_0x3d46ac=!0x0,setDataAttribute:_0x2bf8b5=!0x0}={}){return(_0x5eb29e,_0x21687a,_0x2c5e83)=>{const {type:_0x379a0d,id:_0x387f9b}=_0x5312c5['_splitMarkerName'](_0x21687a['markerName']),_0x1b0fcb=_0x5312c5['getSuggestion'](_0x387f9b),_0x41b42d=_0x1b0fcb['data'];if('formatBlock'!=_0x1b0fcb['type']||!_0x41b42d||'setTableColumnHeader'!=_0x41b42d['commandName'])return;if(_0x21687a['item'])return void _0x5eb29e['stop']();if(!_0x2c5e83['consumable']['consume'](_0x21687a['markerRange'],_0x5eb29e['name']))return;const _0x35cb91=_0x21687a['markerRange']['start']['nodeAfter'],_0xde864a=_0x21687a['markerRange']['end']['nodeBefore'],_0x15be07=_0x35cb91['parent']['parent'],{column:_0x10d9de}=_0xc609e3['getCellLocation'](_0x35cb91),{column:_0x50ce1e}=_0xc609e3['getCellLocation'](_0xde864a);for(let _0x5570dd=_0x10d9de;_0x5570dd<=_0x50ce1e;_0x5570dd++){const _0x340cb=_0xc609e3['createTableWalker'](_0x15be07,{'column':_0x5570dd,'includeAllSlots':!0x1});for(const _0xfe4933 of _0x340cb){const _0x43760f=_0xfe4933['cell'],_0x86e7d9=_0x2c5e83['mapper']['toViewElement'](_0x43760f);_0x2c5e83['writer']['addClass']('ck-suggestion-marker-'+_0x379a0d,_0x86e7d9),_0x2bf8b5&&_0x2c5e83['writer']['setAttribute']('data-suggestion',_0x387f9b,_0x86e7d9),_0x2c5e83['mapper']['bindElementToMarker'](_0x86e7d9,_0x21687a['markerName']),_0x3d46ac&&(_0x5312c5['activeMarkers']['includes'](_0x21687a['markerName'])?_0x2c5e83['writer']['addClass']('ck-suggestion-marker--active',_0x86e7d9):_0x2c5e83['writer']['removeClass']('ck-suggestion-marker--active',_0x86e7d9));}}};}_0x5312c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x274e0f),_0x5312c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x274e0f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x53091a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4416ec,_0x48dd80,_0x24b0c6)=>{_0x24b0c6['options']['showSuggestionHighlights']&&_0x53091a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4416ec,_0x48dd80,_0x24b0c6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x80b8ce,_0xcaf0ed,_0x39d594)=>{const {type:_0x3ae08d,id:_0x252a15}=_0x5312c5['_splitMarkerName'](_0xcaf0ed['markerName']),_0x205d29=_0x5312c5['getSuggestion'](_0x252a15),_0x4f9568=_0x205d29['data'];if('formatBlock'!=_0x205d29['type']||!_0x4f9568||'setTableColumnHeader'!=_0x4f9568['commandName'])return;const _0x5bb743=_0x39d594['mapper']['markerNameToElements'](_0xcaf0ed['markerName']);if(_0x5bb743){for(const _0x323c13 of _0x5bb743)_0x39d594['writer']['removeClass']('ck-suggestion-marker-'+_0x3ae08d,_0x323c13),_0x39d594['writer']['removeClass']('ck-suggestion-marker--active',_0x323c13),_0x39d594['writer']['removeAttribute']('data-suggestion',_0x323c13),_0x39d594['mapper']['unbindElementFromMarkerName'](_0x323c13,_0xcaf0ed['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e000a=this['editor'],_0x5cacb2=_0x2e000a['locale'];function _0x27a531(_0x139435){return{'type':'format','content':o(_0x5cacb2,'*Format:*\x20%0',_0x139435)};}_0x2e000a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11df79=>{if('formatBlock'!=_0x11df79['type'])return;const {data:_0x1bc0d2}=_0x11df79;if(_0x1bc0d2){if('setTableRowHeader'==_0x1bc0d2['commandName']){const _0xf725d=_0x1bc0d2['commandParams'][0x0]['forceValue'];return _0x27a531(o(_0x5cacb2,_0xf725d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1bc0d2['commandName']){const _0x13c964=_0x1bc0d2['commandParams'][0x0]['forceValue'];return _0x27a531(o(_0x5cacb2,_0x13c964?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x23eb50=>[_0x23eb50,null]));class _t extends _0x328234{static get['requires'](){return[It];}['afterInit'](){const _0x187d67=this['editor'];if(!_0x187d67['plugins']['has']('TableClipboard'))return;const _0x531cbc=_0x187d67['plugins']['get']('TrackChangesEditing'),_0x55a3aa=_0x187d67['plugins']['get']('TableUtils'),_0x56fe83=_0x187d67['plugins']['get'](It),_0x177a4a=_0x187d67['plugins']['get']('TableClipboard');_0x56fe83['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x187d67['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x187d67['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x108108=null;_0x187d67['model']['on']('insertContent',(_0x23c980,_0x173b27)=>{const [_0x3a5b11,_0x3976d1]=_0x173b27,_0x39be31=_0x173b27[_0x173b27['length']-0x1];_0x39be31&&_0x39be31['forceDefaultExecution']||_0x531cbc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x45b8cb,_0x305d38,_0x57608a,_0x158567,_0x3cd417){if(_0x305d38&&!_0x305d38['is']('documentSelection'))return!0x1;const _0x5e8053=_0x3cd417['getTableIfOnlyTableInContent'](_0x45b8cb,_0x57608a);if(!_0x5e8053||!Re(_0x5e8053,void 0x0,_0x158567))return!0x1;const _0xb1879a=_0x158567['getSelectionAffectedTableCells'](_0x57608a['document']['selection']);if(!_0xb1879a['length'])return!0x1;const _0x51d649=_0xb1879a[0x0]['findAncestor']('table'),_0x339b0f=_0x158567['getRowIndexes'](_0xb1879a),_0x42335b=_0x158567['getColumnIndexes'](_0xb1879a),_0x33efaa={'startRow':_0x339b0f['first'],'endRow':_0x339b0f['last'],'startColumn':_0x42335b['first'],'endColumn':_0x42335b['last']};return 0x1==_0xb1879a['length']&&(_0x33efaa['endRow']+=_0x158567['getRows'](_0x5e8053)-0x1,_0x33efaa['endColumn']+=_0x158567['getColumns'](_0x5e8053)-0x1),Re(_0x51d649,_0x33efaa,_0x158567);}(_0x3a5b11,_0x3976d1,_0x187d67['model'],_0x55a3aa,_0x177a4a)&&(_0x23c980['stop'](),_0x108108={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x187d67['model']['change'](()=>{_0x187d67['model']['insertContent'](_0x173b27[0x0],_0x173b27[0x1],_0x173b27[0x2],{'forceDefaultExecution':!0x0});const _0x98ea22=_0x2b4c20(),{rowInsertionRanges:_0x4723e1,columnInsertionRanges:_0x2a83d5,insertionRanges:_0x39591d,deletionRanges:_0xc7d64c,cells:_0x16250b}=_0x108108;_0x4723e1['length']&&_0x531cbc['markMultiRangeInsertion'](_0x4723e1,'tablePasteRow',{'tablePasteChainId':_0x98ea22}),_0x2a83d5['length']&&_0x531cbc['markMultiRangeInsertion'](_0x2a83d5,'tablePasteColumn',{'tablePasteChainId':_0x98ea22}),_0x39591d['length']&&(_0x531cbc['markMultiRangeInsertion'](_0x39591d,'tablePaste',{'tablePasteChainId':_0x98ea22,'skipNestingCheck':!0x0}),_0x39591d['forEach'](_0x9994f5=>_0x9994f5['detach']?.())),_0xc7d64c['length']&&(_0x531cbc['markMultiRangeDeletion'](_0xc7d64c,'tablePaste',{'tablePasteChainId':_0x98ea22,'skipNestingCheck':!0x0}),_0xc7d64c['forEach'](_0x4558b8=>_0x4558b8['detach']?.()));const _0x4a7641=_0x531cbc['markMultiRangeBlockFormat'](_0x16250b['map'](({element:_0xe605d8})=>_0xe605d8),{'formatGroupId':_0x2b4c20()},[],'tablePasteCell',{'tablePasteChainId':_0x98ea22});if(_0x4a7641){const _0x513445=_0x4a7641['getMarkers'](),_0x87ed3b=[];for(const {element:_0xadb7c2,attributes:_0x163843}of _0x16250b){if(!_0x163843)continue;const _0x3348c1=_0x187d67['model']['createRangeOn'](_0xadb7c2),_0x11cae6=_0x513445['find'](_0x69792c=>_0x69792c['getRange']()['isEqual'](_0x3348c1));_0x11cae6&&_0x87ed3b['push']([_0x11cae6['name'],_0x163843]);}_0x87ed3b['length']&&_0x4a7641['setAttribute']('markerAttributes',Object['fromEntries'](_0x87ed3b));}_0x108108=null;}));},{'priority':_0x408fd7['high']+0xa}),_0x187d67['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x464f6e,_0x44d29b)=>{const [_0x4201b7,_0xaddf43,,_0x7bcccb]=_0x44d29b;if(!_0x108108)return;_0x464f6e['stop']();const _0xeb033c=_0x4201b7['cell'],_0x15b342=_0xaddf43,_0x286cd9=ke(_0xeb033c),_0x46457f=ke(_0x15b342);_0x464f6e['return']=_0xeb033c;let _0x5a3f66=null,_0x4753ff=null;if(_0x46457f||_0x286cd9){if(_0x286cd9&&!_0x46457f){_0x7bcccb['remove'](_0xeb033c['getChild'](0x0));for(const _0x2fea64 of Array['from'](_0x15b342['getChildren']()))_0x7bcccb['insert'](_0x2fea64,_0xeb033c,'end');const _0x369baf=_0x108108['rowInsertionIndexes']['includes'](_0x4201b7['row']),_0x1a745e=_0x108108['columnInsertionIndexes']['includes'](_0x4201b7['column']);_0x369baf||_0x1a745e||(_0x5a3f66=_0xf41792['fromRange'](_0x7bcccb['createRangeIn'](_0xeb033c)));}else _0x46457f&&!_0x286cd9&&(_0x4753ff=_0x7bcccb['createRangeIn'](_0xeb033c));}else{const _0x2e3564=_0x7bcccb['createElement']('tableCellSuggestion'),_0x21c21a=_0x7bcccb['createElement']('tableCellSuggestion');_0x7bcccb['wrap'](_0x7bcccb['createRangeIn'](_0xeb033c),_0x21c21a),_0x7bcccb['insert'](_0x2e3564,_0xeb033c,0x0);for(const _0x29010e of Array['from'](_0x15b342['getChildren']()))_0x7bcccb['insert'](_0x29010e,_0x2e3564,'end');_0x5a3f66=_0xf41792['fromRange'](_0x7bcccb['createRangeOn'](_0x2e3564)),_0x4753ff=_0xf41792['fromRange'](_0x7bcccb['createRangeOn'](_0x21c21a));}const _0x4f2d70=Array['from'](_0x15b342['getAttributes']())['filter'](([_0x51489f])=>Pe['includes'](_0x51489f));_0x108108['cells']['push']({'element':_0xeb033c,'attributes':_0x4f2d70['length']?Object['fromEntries'](_0x4f2d70):null}),_0x5a3f66&&_0x108108['insertionRanges']['push'](_0x5a3f66),_0x4753ff&&_0x108108['deletionRanges']['push'](_0x4753ff);},{'priority':'high'}),_0x55a3aa['on']('insertColumns',(_0x4e51bd,_0x57a1c2)=>{const [_0x413eef,_0x5b4bf3={}]=_0x57a1c2;if(!_0x108108)return;const _0x59bf39=_0x5b4bf3['at']||0x0,_0x2c7440=_0x5b4bf3['columns']||0x1;_0x108108['columnInsertionIndexes']=new Array(_0x2c7440)['fill'](_0x59bf39)['map']((_0x1ef927,_0x271fe8)=>_0x1ef927+_0x271fe8);for(const {cell:_0x46c08f}of _0x55a3aa['createTableWalker'](_0x413eef,{'startColumn':_0x59bf39,'endColumn':_0x59bf39+_0x2c7440-0x1}))_0x108108['columnInsertionRanges']['push'](_0x187d67['model']['createRangeOn'](_0x46c08f));},{'priority':'low'}),_0x55a3aa['on']('insertRows',(_0x3fb321,_0x3ec117)=>{const [_0x1ef4b1,_0x9536ed={}]=_0x3ec117;if(!_0x108108)return;const _0x445b23=_0x9536ed['at']||0x0,_0x2c12e8=_0x9536ed['rows']||0x1;_0x108108['rowInsertionIndexes']=new Array(_0x2c12e8)['fill'](_0x445b23)['map']((_0x56dff5,_0x17260c)=>_0x56dff5+_0x17260c);for(const {cell:_0x500cae}of _0x55a3aa['createTableWalker'](_0x1ef4b1,{'startRow':_0x445b23,'endRow':_0x445b23+_0x2c12e8-0x1}))_0x108108['rowInsertionRanges']['push'](_0x187d67['model']['createRangeOn'](_0x500cae));},{'priority':'low'}),_0x531cbc['descriptionFactory']['registerDescriptionCallback'](_0xe94fd=>{if(_0xe94fd['subType']&&_0xe94fd['subType']['startsWith']('tablePaste'))return _0xe94fd['previous']?{}:{'type':'insertion','content':o(_0x187d67['locale'],'*Replace\x20table\x20cells*')};});const _0x70edbb=()=>!0x1;for(const _0x47c17f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x531cbc['_suggestionFactory']['registerCustomCallback']('insertion',_0x47c17f,'join',_0x70edbb),_0x531cbc['_suggestionFactory']['registerCustomCallback']('deletion',_0x47c17f,'join',_0x70edbb),_0x531cbc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47c17f,'join',_0x70edbb);_0x531cbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x70edbb),_0x531cbc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x52aeba,_0x46ed58,_0x48a5cf)=>{const _0x4be0d4=_0x52aeba['map'](_0x22ec0a=>_0x22ec0a['getContainedElement']())['filter'](_0x582752=>_0x582752),_0xa806b0=new Map(_0x4be0d4['map'](_0x87a69c=>[_0x87a69c,null]));if(_0x108108){for(const {element:_0xa840b3,attributes:_0x12a713}of _0x108108['cells'])_0x12a713&&_0xa806b0['set'](_0xa840b3,_0x12a713);}else{if(_0x48a5cf&&_0x48a5cf['markerAttributes'])for(const [_0x14e27b,_0x5cf66d]of Object['entries'](_0x48a5cf['markerAttributes'])){const _0x589c84=_0x187d67['model']['markers']['get'](_0x14e27b),_0x49c72d=_0x589c84?_0x589c84['getRange']()['getContainedElement']():null;_0x49c72d&&_0xa806b0['set'](_0x49c72d,_0x5cf66d);}}_0x187d67['model']['change'](_0x499e7a=>{for(const [_0x1812c3,_0x101f45]of _0xa806b0)_0x499e7a['setAttributes']({...we,..._0x101f45},_0x1812c3);});});const _0x908992=(_0x265a4a,_0x45abc3)=>{_0x531cbc['_suggestionFactory']['registerCustomCallback'](_0x265a4a,'tablePaste',_0x45abc3,(_0xe0e944,_0x5f047f,_0x5dbadc)=>{_0x187d67['model']['change'](_0x2d22c2=>{const _0x3254fe=[];for(const _0x27b092 of _0xe0e944){const _0x293a8e=_0x27b092['start']['nodeAfter'];_0x293a8e['is']('element','tableCellSuggestion')&&_0x3254fe['push'](_0x293a8e);}_0x531cbc['_suggestionFactory']['getSuggestionCallback'](_0x265a4a,null,_0x45abc3)(_0xe0e944,_0x5f047f,_0x5dbadc);for(const _0x3e9c61 of _0x3254fe)'$graveyard'!=_0x3e9c61['root']['rootName']&&_0x2d22c2['unwrap'](_0x3e9c61);});});};_0x908992('insertion','accept'),_0x908992('insertion','discard'),_0x908992('deletion','accept'),_0x908992('deletion','discard'),_0x531cbc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x239ced=>{const _0x33eed4=_0x239ced['map'](_0x742f19=>_0x742f19['getContainedElement']()),_0x4a3276=_0x33eed4[0x0]['findAncestor']('table'),{minRow:_0x2d4d5f,maxRow:_0x24a12d}=_0x56fe83['_getCoordsForCells'](_0x33eed4);_0x55a3aa['removeRows'](_0x4a3276,{'at':_0x2d4d5f,'rows':_0x24a12d-_0x2d4d5f+0x1});}),_0x531cbc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xb3786e=>{const _0x5f2f6a=_0xb3786e['map'](_0x453f0a=>_0x453f0a['getContainedElement']()),_0x247d29=_0x5f2f6a[0x0]['findAncestor']('table'),{minColumn:_0x1c3b8c,maxColumn:_0x3fad04}=_0x56fe83['_getCoordsForCells'](_0x5f2f6a);_0x55a3aa['removeColumns'](_0x247d29,{'at':_0x1c3b8c,'columns':_0x3fad04-_0x1c3b8c+0x1});});const _0x56f568=(_0xda70cb,_0x15049a)=>{if(!_0x15049a['subType']||!_0x15049a['subType']['startsWith']('tablePaste'))return;const _0x311f56=_0x15049a['attributes']['tablePasteChainId'],_0x3b88fb=_0x531cbc['getSuggestions']()['filter'](_0x3eacda=>_0x3eacda['isInContent']&&_0x3eacda['attributes']&&_0x3eacda['attributes']['tablePasteChainId']==_0x311f56);_0x3b88fb['length']&&_0x15049a['getAllAdjacentSuggestions']()['length']!=_0x3b88fb['length']&&_0x3b88fb['reduce']((_0x2fef9c,_0x43abda)=>(_0x2fef9c['next']=_0x43abda,_0x43abda['previous']=_0x2fef9c,_0x43abda));};function _0x2de001(_0x1de109,_0x20c813=!0x0){const {id:_0x1251ea,authorId:_0x2805ac}=_0x531cbc['_splitMarkerName'](_0x1de109['markerName']),_0x4cd9df=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x14f63=_0x531cbc['activeMarkers']['includes'](_0x1de109['markerName']);return _0x14f63&&_0x4cd9df['push']('ck-suggestion-marker--active'),{'classes':_0x4cd9df,'attributes':{'data-suggestion':_0x1251ea,'data-author-id':_0x2805ac},'priority':_0x14f63&&_0x20c813?0xbc2:0xbb8};}_0x531cbc['on']('suggestionLoaded',_0x56f568,{'priority':'high'}),_0x531cbc['on']('suggestionUnloaded',_0x56f568,{'priority':'high'}),_0x187d67['model']['document']['registerPostFixer'](()=>{let _0x3da0a2=!0x1;const _0x531ef4=Array['from'](_0x187d67['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x96ec0f,data:_0x59fed3}of _0x531ef4){const {group:_0x15e241,type:_0x1b80ed,id:_0x98bc4}=_0x531cbc['_splitMarkerName'](_0x96ec0f);if('suggestion'!=_0x15e241||'deletion'!=_0x1b80ed||_0x59fed3['oldRange'])continue;if(!_0x531cbc['hasSuggestion'](_0x98bc4))continue;const _0x254e37=_0x531cbc['getSuggestion'](_0x98bc4)['getRanges'](),_0x336f9d=_0x187d67['plugins']['get']('Users')['me'];for(const _0x22aa29 of _0x531cbc['getSuggestions']()){if(!_0x22aa29['isInContent']||_0x22aa29['author']!=_0x336f9d)continue;if('formatBlock'!=_0x22aa29['type']||'tablePasteCell'!=_0x22aa29['subType'])continue;if(_0x22aa29['getRanges']()['every'](_0x5f5c29=>_0x254e37['some'](_0x21a3a8=>_0x21a3a8['containsRange'](_0x5f5c29,!0x0)))){for(const _0x54191a of _0x22aa29['getAllAdjacentSuggestions']())_0x54191a['isInContent']&&(_0x54191a['discard'](),_0x3da0a2=!0x0);}}}return _0x3da0a2;}),_0x187d67['model']['document']['registerPostFixer'](_0x107ce4=>{const _0x5f3ccb=_0x187d67['commands']['get']('redo');if(!_0x5f3ccb||!_0x5f3ccb['_createdBatches']['has'](_0x107ce4['batch']))return!0x1;let _0x95b8cd=!0x1;const _0x11e6b9=_0x187d67['plugins']['get']('Users')['me'],_0x1df7b1=_0x187d67['model']['document']['differ']['getChanges'](),_0x5545fd=Array['from'](_0x187d67['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5b8061,data:_0x463cc6})=>{const {group:_0x1bc893,subType:_0x2810f4,authorId:_0x4d24cc}=_0x531cbc['_splitMarkerName'](_0x5b8061);return'suggestion'==_0x1bc893&&'tablePaste'==_0x2810f4&&_0x4d24cc==_0x11e6b9['id']&&!_0x463cc6['oldRange'];});for(const _0x441398 of _0x1df7b1){if('insert'!=_0x441398['type']||'tableCellSuggestion'!=_0x441398['name']||0x1!=_0x441398['length'])continue;const _0x120e55=_0x107ce4['createRange'](_0x441398['position'],_0x441398['position']['getShiftedBy'](0x1));if(!_0x5545fd['find'](({data:_0x566616})=>_0x566616['newRange']['isEqual'](_0x120e55))){for(const {name:_0xb34357,data:_0x32c6e2}of _0x5545fd)if(_0x120e55['containsRange'](_0x32c6e2['newRange'])){_0x107ce4['updateMarker'](_0xb34357,{'range':_0x120e55}),_0x95b8cd=!0x0;break;}}}return _0x95b8cd;}),_0x187d67['model']['document']['registerPostFixer'](_0x2fdaf6=>{let _0x23f009=!0x1;const _0x3b3322=_0x187d67['plugins']['get']('Users')['me'],_0xfee98=_0x531cbc['getSuggestions']()['filter'](_0x3ddd38=>_0x3ddd38['isInContent']&&_0x3ddd38['author']==_0x3b3322),_0x143226=new Set(),_0x3fbc99=new Set();for(const _0xf83711 of _0xfee98)if('tablePaste'==_0xf83711['subType'])for(const _0xca926d of _0xf83711['getMarkers']()){const _0x44f633=_0xca926d['getRange']()['getContainedElement']();if(_0x44f633){if(_0x44f633['is']('element','tableCellSuggestion')&&ke(_0x44f633)){_0xf83711['removeMarker'](_0xca926d['name']),_0x143226['add'](_0x44f633),_0x23f009=!0x0;const _0x4500e9=_0x44f633['nextSibling'],_0x5562a8=_0x44f633['previousSibling'],_0x14b82a=_0x4500e9&&_0x4500e9['is']('element','tableCellSuggestion'),_0x41b2aa=_0x5562a8&&_0x5562a8['is']('element','tableCellSuggestion');_0x14b82a&&!_0x143226['has'](_0x4500e9)&&_0x3fbc99['add'](_0x4500e9),_0x41b2aa&&!_0x143226['has'](_0x5562a8)&&_0x3fbc99['add'](_0x5562a8);}else _0x44f633['is']('element','paragraph')&&_0x44f633['isEmpty']&&(_0xf83711['removeMarker'](_0xca926d['name']),_0x23f009=!0x0);}}else{if('tablePasteCell'==_0xf83711['subType']){if(!_0xf83711['attributes']||!_0xf83711['attributes']['tablePasteChainId'])continue;const _0x36795f=_0xf83711['attributes']['markerAttributes'];if(_0x36795f&&Object['keys'](_0x36795f)['length'])continue;const _0x4ef18d=_0xf83711['attributes']['tablePasteChainId'];let _0x15ae92=!0x0,_0x14fb7d=!0x0;for(const _0x17b9e6 of _0xfee98)if(_0x17b9e6['subType']&&_0x17b9e6['subType']['startsWith']('tablePaste')){if(!_0x17b9e6['attributes']['tablePasteChainId']){_0x14fb7d=!0x1;break;}if(_0x17b9e6['id']!=_0xf83711['id']&&_0x17b9e6['attributes']['tablePasteChainId']==_0x4ef18d){_0x15ae92=!0x1;break;}}_0x14fb7d&&_0x15ae92&&(_0xf83711['removeMarkers'](),_0x23f009=!0x0);}}for(const _0x3b7b27 of _0x143226)_0x2fdaf6['remove'](_0x3b7b27);for(const _0x28d94f of _0x3fbc99)_0x2fdaf6['unwrap'](_0x28d94f);return _0x23f009;}),_0x187d67['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x38446b=>_0x2de001(_0x38446b),'converterPriority':'high'}),_0x187d67['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x32e07d,_0x4f43d3)=>_0x4f43d3['options']['showSuggestionHighlights']?_0x2de001(_0x32e07d,!0x1):null,'converterPriority':'high'});const _0x4765fb=_0x187d67['editing']['view'];this['listenTo'](_0x4765fb['document'],'clipboardOutput',(_0x30aae2,_0x154db7)=>{const _0x4b204f=[];for(const _0x4102ed of _0x4765fb['createRangeIn'](_0x154db7['content'])['getItems']())_0x4102ed['is']('element','suggestion-td')&&_0x4b204f['push'](_0x4102ed);_0x4765fb['change'](_0x1adabf=>{for(const _0x843d6b of _0x4b204f)_0x1adabf['move'](_0x1adabf['createRangeIn'](_0x843d6b),_0x1adabf['createPositionBefore'](_0x843d6b)),_0x1adabf['remove'](_0x843d6b);});});}}function ke(_0x345e3c){if(_0x345e3c['isEmpty'])return!0x0;const _0x4d2ff3=_0x345e3c['getChild'](0x0);return _0x4d2ff3['is']('element','paragraph')&&_0x4d2ff3['isEmpty'];}function Re(_0x1c0566,_0x12277f={},_0x470bc0){for(const {isAnchor:_0xbd9187,cellHeight:_0x586728,cellWidth:_0xfc1250}of _0x470bc0['createTableWalker'](_0x1c0566,{'includeAllSlots':!0x0,..._0x12277f}))if(!_0xbd9187||0x1!=_0x586728||0x1!=_0xfc1250)return!0x1;return!0x0;}class Nt extends _0x328234{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a9454=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a9454['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a9454['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a9454['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a9454['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a9454['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a9454['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x271e94,_0x1181d7){const _0x4be10a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2de9a5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5c52c9=_0x1181d7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x46102f=_0x2de9a5['getColumnGroupElement'](_0x5c52c9);let _0x3b4c38=_0x46102f?_0x2de9a5['getTableColumnsWidths'](_0x46102f):null,_0x50ce71=_0x5c52c9['getAttribute']('tableWidth')||null;const _0x5095dc=_0x1181d7['tableWidth']||_0x50ce71,_0x3656ad=_0x1181d7['columnWidths']||_0x3b4c38,_0x1d78d1=this['editor']['plugins']['get']('Users')['me'];for(const _0x2cc50a of _0x4be10a['getSuggestions']()){const _0x202884=_0x2cc50a['getContainedElement']();if('resizeTable'===_0x2cc50a['subType']&&_0x202884===_0x5c52c9){_0x2cc50a['author']!==_0x1d78d1&&_0x2cc50a['discard']();const _0x590032=_0x2cc50a['data']['commandParams'];_0x50ce71=_0x590032[0x0]['tableWidth'],_0x3b4c38=_0x590032[0x0]['columnWidths'];break;}}_0x271e94({'table':_0x5c52c9,'tableWidth':_0x5095dc,'columnWidths':_0x3656ad}),_0x4be10a['markBlockFormat'](_0x5c52c9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x50ce71,'columnWidths':_0x3b4c38}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1c1698){if('formatBlock'!=_0x1c1698['type']&&'formatInline'!=_0x1c1698['type'])return;const {data:_0x5d44b6}=_0x1c1698;if(_0x5d44b6&&'resizeTable'===_0x5d44b6['formatGroupId']){const _0x140802='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x140802)};}}}class Dt extends _0x328234{['afterInit'](){const _0x316deb=this['editor'];_0x316deb['plugins']['has']('Template')&&_0x316deb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x328234{['afterInit'](){const _0x1b8ccb=this['editor'];if(!_0x1b8ccb['commands']['get']('insertTableOfContents'))return;_0x1b8ccb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5d231e=_0x1b8ccb['plugins']['get']('TrackChangesEditing'),_0x4b0494=_0x1b8ccb['locale'];_0x5d231e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1318ff=>o(_0x4b0494,'ELEMENT_TABLE_OF_CONTENTS',_0x1318ff));}}class $t extends _0x328234{['afterInit'](){const _0xee801=this['editor'];if(!_0xee801['plugins']['has']('Title'))return;const _0x20b81f=_0xee801['plugins']['get']('TrackChangesEditing');_0x20b81f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xee801['locale'],'ELEMENT_TITLE')),_0xee801['model']['document']['registerPostFixer'](_0x3e9202=>{let _0x325441=!0x1;const _0x2037c1=Array['from'](_0xee801['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fefee,data:_0x5d87ad}of _0x2037c1){const {group:_0x18da86}=_0x20b81f['_splitMarkerName'](_0x2fefee);if('suggestion'!==_0x18da86||!_0x5d87ad['newRange'])continue;const _0x2fc5a3=_0x5d87ad['newRange'],_0x3f264e=_0x2fc5a3['end']['nodeBefore'];if(!_0x3f264e||!_0x3f264e['is']('element','title-content'))continue;if(!_0x2fc5a3['start']['isTouching'](_0x2fc5a3['end']))continue;const _0x55003a=_0xee801['model']['schema']['getNearestSelectionRange'](_0x2fc5a3['end'],'forward');if(_0x55003a&&_0x55003a['isCollapsed']){const _0x58f4af=_0x3e9202['createRange'](_0x2fc5a3['start'],_0x55003a['start']);_0x58f4af['isEqual'](_0x2fc5a3)||(_0x3e9202['updateMarker'](_0x2fefee,{'range':_0x58f4af}),_0x325441=!0x0);}_0x325441||(_0x3e9202['removeMarker'](_0x2fefee),_0x325441=!0x0);}return _0x325441;});}}class Bt extends _0x328234{['afterInit'](){const _0xa2aaba=this['editor'],_0x590b63=_0xa2aaba['plugins']['get']('TrackChangesEditing');_0xa2aaba['plugins']['has']('UndoEditing')&&(_0x590b63['enableCommand']('undo'),_0x590b63['enableCommand']('redo'));}}class xt extends _0x328234{static get['requires'](){return[It];}['afterInit'](){const _0x1f7b0c=this['editor'];if(!_0x1f7b0c['plugins']['has']('TableCaptionEditing'))return;_0x1f7b0c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x328234{['tableProperties'];['tableCellProperties'];constructor(_0x3b15fd){super(_0x3b15fd),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 _0x149694=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x549c7c of this['tableProperties'])_0x149694['enableCommand'](_0x549c7c,(_0x13dbd5,_0x106229)=>{const _0x5e8dbf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x549c7c,[_0x5e8dbf],this['tableProperties'],'tableProperties',_0x13dbd5,_0x106229);});_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x149694['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5cab41,_0x407186)=>this['handleDiscardAction'](this['tableProperties'],_0x5cab41,_0x407186)),_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3536c4 of this['tableCellProperties'])_0x149694['enableCommand'](_0x3536c4,(_0x104cdc,_0x3aa617)=>{const _0x5b141c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3536c4,_0x5b141c,this['tableCellProperties'],'tableCellProperties',_0x104cdc,_0x3aa617);});_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x149694['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x13f82b,_0x304ad0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x13f82b,_0x304ad0)),_0x149694['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x149694['descriptionFactory']['registerDescriptionCallback'](_0x46a087=>this['handleSuggestionDescription'](_0x46a087));}['_handlePropertyChange'](_0x2aea5f,_0x1d8cc4,_0x3b5633,_0x37255c,_0x2d6e30,_0x3025d5){const _0x2c4d48=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3025d5['batch'],()=>{for(const _0x1214a4 of _0x1d8cc4){if(this['_getSuggestion'](_0x1214a4,_0x37255c))_0x2d6e30(_0x3025d5);else{const _0x13b6cb={};for(const _0x4a8b7a of _0x3b5633){const _0x3e3391=_0x1214a4['getAttribute'](_0x4a8b7a);void 0x0!==_0x3e3391&&(_0x13b6cb[_0x4a8b7a]=_0x3e3391);}_0x2d6e30(_0x3025d5),_0x2c4d48['markBlockFormat'](_0x1214a4,{'commandParams':[_0x13b6cb]},[],_0x37255c);}}});}['handleDiscardAction'](_0x43c07f,_0x5c9556,_0x427ace){const _0x5632e0=_0x5c9556[0x0]['start']['nodeAfter'],_0xbe1f6e=_0x427ace['commandParams'][0x0];this['editor']['model']['change'](_0x394310=>{for(const _0xddd7f5 of _0x43c07f)void 0x0!==_0xbe1f6e[_0xddd7f5]?_0x394310['setAttribute'](_0xddd7f5,_0xbe1f6e[_0xddd7f5],_0x5632e0):_0x394310['removeAttribute'](_0xddd7f5,_0x5632e0);});}['handleSuggestionDescription'](_0xbc2fd){if(_0xbc2fd['data'])switch(_0xbc2fd['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'](_0x103e01,_0x140968){const _0x99a30=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2da2e4 of _0x99a30['getSuggestions']({'skipNotAttached':!0x0})){const _0x164f63=_0x2da2e4['getContainedElement']();if(_0x2da2e4['subType']===_0x140968&&_0x164f63===_0x103e01)return _0x2da2e4;}return null;}}const m='$elementName';class p extends _0x328234{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x25715a,_0x11fe9d,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(_0x2a2bad){function _0x447f46(_0x1e8963){return _0x1e8963['map'](_0x2e127d=>String['fromCharCode'](_0x2e127d))['join']('');}super(_0x2a2bad),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x223200,_0x57577c,_0x1319cd,_0x1eb1e9)=>{this['_model']['change'](()=>{for(const _0x21dcb0 of[..._0x1eb1e9,..._0x1319cd])this['_model']['markers']['has'](_0x21dcb0)&&_0x2a2bad['editing']['reconvertMarker'](_0x21dcb0);});}),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']=_0x2a2bad['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(),_0x2a2bad['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a2bad['config']['get']('trackChanges.trackFormatChanges'),_0x2a2bad['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a2bad['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2a2bad,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x447f46([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x447f46([0x34,0x30,0x34,0x38,0x32,0x30,0x30,0x32]);}['init'](){const _0x1fca45=this['editor'],_0x2840dc=(_0x296210,_0x212275)=>{if('attribute'!=_0x296210)return'ck-suggestion-marker-'+_0x296210;const _0x35db6c=_0x212275['split']('|')[0x0];return this['_isBlockAttribute'](_0x35db6c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1fca45['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x394af0=>{const {id:_0x249aee,authorId:_0x112e1f,type:_0xb668ca,subType:_0x44d9a2}=this['_splitMarkerName'](_0x394af0['markerName']),_0x1a4e25=['ck-suggestion-marker',_0x2840dc(_0xb668ca,_0x44d9a2)];let _0x21c966=0xbb8;return this['activeMarkers']['includes'](_0x394af0['markerName'])&&(_0x1a4e25['push']('ck-suggestion-marker--active'),_0x21c966=0xbc2),'deletion'==_0xb668ca&&(_0x21c966+=0x5),{'classes':_0x1a4e25,'attributes':{'data-suggestion':_0x249aee,'data-author-id':_0x112e1f},'priority':_0x21c966};}}),_0x1fca45['conversion']['for']('dataDowncast')['add'](_0x252685=>{_0x252685['on']('addMarker:suggestion',(_0xea0b5e,_0x28bf4a,_0x46e78b)=>{if(!_0x46e78b['options']['showSuggestionHighlights'])return;const _0x1c15c5=_0x28bf4a['item'];if(!_0x1c15c5)return;const _0x1abfdf=_0x46e78b['mapper']['toViewElement'](_0x1c15c5);_0x1fca45['model']['schema']['isObject'](_0x1c15c5)&&_0x1abfdf&&!_0x1abfdf['getCustomProperty']('widget')&&_0x1abfdf['is']('containerElement')&&_0x20adee(_0x1abfdf,_0x46e78b['writer']);},{'priority':'high'});}),_0x1fca45['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x47b4ec,_0x115682)=>{if(!_0x115682['options']['showSuggestionHighlights'])return null;const {type:_0x3972f3,subType:_0x5a295f}=this['_splitMarkerName'](_0x47b4ec['markerName']);return{'classes':['ck-suggestion-marker',_0x2840dc(_0x3972f3,_0x5a295f)],'priority':0xbb8};}});const _0x1d6f0c=({showActiveMarkers:_0x549fee=!0x0,isAttributeSuggestion:_0x2e3903=!0x1}={})=>(_0x2746bb,_0x2b2b05,_0x708d8d)=>{if(!_0x2b2b05['item'])return;const {id:_0x3f0991,authorId:_0x1c006c}=this['_splitMarkerName'](_0x2b2b05['markerName']);if(_0x2e3903){const _0x582376=this['_suggestions']['get'](_0x3f0991),_0x4c3838=this['_getAttributeKey'](_0x582376);if(!this['_isBlockAttribute'](_0x4c3838))return;}if(_0x2b2b05['item']['is']('selection'))return void _0x708d8d['consumable']['consume'](_0x2b2b05['item'],_0x2746bb['name']);const _0x1542d6=_0x708d8d['mapper']['toViewElement'](_0x2b2b05['item']);if(_0x2b2b05['item']['is']('element')&&_0x1fca45['model']['schema']['isBlock'](_0x2b2b05['item'])&&!_0x1542d6['getCustomProperty']('addHighlight')){_0x708d8d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1542d6),_0x708d8d['writer']['setAttribute']('data-suggestion',_0x3f0991,_0x1542d6),_0x708d8d['writer']['setAttribute']('data-author-id',_0x1c006c,_0x1542d6),_0x708d8d['mapper']['bindElementToMarker'](_0x1542d6,_0x2b2b05['markerName']),_0x549fee&&(this['activeMarkers']['includes'](_0x2b2b05['markerName'])?_0x708d8d['writer']['addClass']('ck-suggestion-marker--active',_0x1542d6):_0x708d8d['writer']['removeClass']('ck-suggestion-marker--active',_0x1542d6));for(const _0x52b98b of _0x1fca45['model']['createRangeIn'](_0x2b2b05['item'])['getItems']())_0x708d8d['consumable']['consume'](_0x52b98b,_0x2746bb['name']);_0x708d8d['consumable']['consume'](_0x2b2b05['item'],_0x2746bb['name']);}};_0x1fca45['conversion']['for']('dataDowncast')['add'](_0x498da0=>{_0x498da0['on']('addMarker:suggestion:formatBlock',(_0x5dc27a,_0x4ffa86,_0x4c52ad)=>{_0x4c52ad['options']['showSuggestionHighlights']&&_0x1d6f0c({'showActiveMarkers':!0x1})(_0x5dc27a,_0x4ffa86,_0x4c52ad);},{'priority':'highest'});}),_0x1fca45['conversion']['for']('dataDowncast')['add'](_0x2d1773=>{_0x2d1773['on']('addMarker:suggestion:attribute',(_0x38b466,_0x656fe8,_0x21f723)=>{_0x21f723['options']['showSuggestionHighlights']&&_0x1d6f0c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x38b466,_0x656fe8,_0x21f723);},{'priority':'highest'});}),_0x1fca45['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x51f888,_0x30e27c)=>_0x30e27c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x51f888['substr'](0xb)}}),_0x1fca45['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x404c40,{writer:_0x5332f3})=>{let _0x20c2e5='suggestion:'+_0x404c40['getAttribute']('suggestion-type')+':'+_0x404c40['getAttribute']('id');return _0x404c40['getAttribute']('marker-count')&&(_0x20c2e5+=':'+_0x404c40['getAttribute']('marker-count')),_0x5332f3['createElement']('$marker',{'data-name':_0x20c2e5});}}),_0x1fca45['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1fca45['conversion']['for']('editingDowncast')['add'](_0x16369a=>{_0x16369a['on']('addMarker:suggestion:formatBlock',_0x1d6f0c(),{'priority':'high'});}),_0x1fca45['conversion']['for']('editingDowncast')['add'](_0x211aae=>{_0x211aae['on']('addMarker:suggestion:attribute',_0x1d6f0c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1fca45['conversion']['for']('editingDowncast')['add'](_0x5dfa34=>{_0x5dfa34['on']('removeMarker:suggestion:formatBlock',(_0x5d5d35,_0x305d25,_0xeca696)=>{const _0x24c657=_0xeca696['mapper']['markerNameToElements'](_0x305d25['markerName']);if(_0x24c657){for(const _0x2671ac of _0x24c657)_0x2671ac['getCustomProperty']('addHighlight')||(_0xeca696['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2671ac),_0xeca696['writer']['removeAttribute']('data-suggestion',_0x2671ac),_0xeca696['writer']['removeAttribute']('data-author-id',_0x2671ac),_0xeca696['mapper']['unbindElementFromMarkerName'](_0x2671ac,_0x305d25['markerName']));}},{'priority':'high'});}),_0x1fca45['conversion']['for']('editingDowncast')['add'](_0x1484e6=>{_0x1484e6['on']('removeMarker:suggestion:attribute',(_0x33858f,_0x3cb5b7,_0x14823f)=>{const _0x397baf=_0x14823f['mapper']['markerNameToElements'](_0x3cb5b7['markerName']);if(!_0x397baf)return;const {id:_0x56f87f}=this['_splitMarkerName'](_0x3cb5b7['markerName']),_0x50931c=this['_suggestions']['get'](_0x56f87f),_0x4bd926=this['_getAttributeKey'](_0x50931c);if(this['_isBlockAttribute'](_0x4bd926)){for(const _0x9b47b9 of _0x397baf)_0x9b47b9['getCustomProperty']('addHighlight')||(_0x14823f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9b47b9),_0x14823f['writer']['removeAttribute']('data-suggestion',_0x9b47b9),_0x14823f['writer']['removeAttribute']('data-author-id',_0x9b47b9),_0x14823f['mapper']['unbindElementFromMarkerName'](_0x9b47b9,_0x3cb5b7['markerName']));}},{'priority':'high'});}),_0x1fca45['model']['document']['registerPostFixer'](_0x3573bd=>{let _0x53f384=!0x1;const _0x35e1d1=Array['from'](_0x1fca45['model']['document']['differ']['getChangedMarkers']()),_0x57f3f7=new Set();for(const {name:_0x316d13,data:_0x2a171f}of _0x35e1d1){const {group:_0x16ec0e,type:_0x7ea048,subType:_0x398b86,id:_0x1a706c}=this['_splitMarkerName'](_0x316d13);if('suggestion'!==_0x16ec0e)continue;const _0x598f47=this['_suggestions']['get'](_0x1a706c);if(null!=_0x2a171f['newRange']){'formatInline'==_0x7ea048&&(_0x53f384=_0x53f384||Ut(_0x2a171f['newRange'],_0x316d13,_0x3573bd,_0x1fca45['model']['schema']));const _0x495fdc='attribute'==_0x7ea048&&this['_isBlockAttribute'](_0x398b86['split']('|')[0x0]);if(_0x2a171f['newRange']['isCollapsed']||'$graveyard'==_0x2a171f['newRange']['root']['rootName']||'formatBlock'==_0x7ea048&&!Ft(_0x2a171f['newRange'])||_0x495fdc&&!Ft(_0x2a171f['newRange'])||'deletion'==_0x7ea048&&!(!Vt(_0x19ccf2=_0x2a171f['newRange'])&&!function(_0x250adf){return _0x250adf['start']['parent']==_0x250adf['end']['nodeBefore']&&_0x250adf['start']['isAtEnd'];}(_0x19ccf2)))_0x3573bd['removeMarker'](_0x316d13),_0x53f384=!0x0;else{if(!_0x598f47||!_0x598f47['isInContent'])continue;if(_0x2a171f['newRange']&&_0x2a171f['oldRange']&&_0x2a171f['newRange']['isEqual'](_0x2a171f['oldRange']))continue;_0x57f3f7['add'](_0x598f47);}}}var _0x19ccf2;return _0x57f3f7['size']>0x0&&(_0x53f384=!!this['_joinWithAdjacentSuggestions'](_0x57f3f7)||_0x53f384),_0x53f384;}),_0x1fca45['model']['document']['registerPostFixer'](_0x18adfb=>{let _0x1a162f=!0x1;for(const _0x4aa107 of _0x1fca45['model']['document']['differ']['getChanges']())if('insert'==_0x4aa107['type'])for(const _0x13458b of this['_suggestions']['values']()){if(_0x13458b['isMultiRange']||!_0x13458b['isInContent'])continue;const _0x3acb09='formatBlock'==_0x13458b['type'],_0x2ee36d=this['_getAttributeKey'](_0x13458b),_0x15b5f3=_0x2ee36d&&this['_isBlockAttribute'](_0x2ee36d);if(!_0x3acb09&&!_0x15b5f3)continue;const _0x492bdd=_0x13458b['getFirstRange']();if(_0x492bdd['start']['parent']!=_0x492bdd['end']['parent']&&!_0x492bdd['end']['isAtEnd']){const _0x2c99fd=_0x1fca45['model']['createPositionAt'](_0x492bdd['start']['nodeAfter'],'end'),_0x2e4409=_0x1fca45['model']['createRange'](_0x492bdd['start'],_0x2c99fd);_0x18adfb['updateMarker'](_0x13458b['getFirstMarker'](),{'range':_0x2e4409}),_0x1a162f=!0x0;}}return _0x1a162f;}),_0x1fca45['model']['document']['registerPostFixer'](_0x54cb88=>this['_processAttributeChanges'](_0x54cb88)),_0x1fca45['model']['document']['registerPostFixer'](_0x5b1659=>!_0x5b1659['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5b1659)),_0x1fca45['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1fca45['model']['document']['on']('change:data',(_0x5c8c50,_0x14046d)=>{if(!_0x14046d['isLocal']||_0x14046d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4f75ed=_0x1fca45['model']['document']['differ']['getChanges']();if(0x0==_0x4f75ed['length'])return;const _0x5e8588=[],_0xb2a1db=_0x4f75ed['filter'](_0x172347=>'attribute'==_0x172347['type']),_0x3518dc=_0x4f75ed['filter'](_0x5df69c=>'insert'==_0x5df69c['type']&&'$text'!=_0x5df69c['name']);for(const _0x5b23c1 of _0xb2a1db)this['_isRegisteredAttribute'](_0x5b23c1['attributeKey'])&&_0x5e8588['push']({'key':_0x5b23c1['attributeKey'],'newValue':_0x5b23c1['attributeNewValue'],'oldValue':_0x5b23c1['attributeOldValue'],'range':Pt(_0x5b23c1['range'],_0x1fca45['model'])});for(const _0x2e679b of _0x3518dc){if('rename'!=_0x2e679b['action']&&'refresh'!=_0x2e679b['action'])continue;const _0x5b8fa9=Lt(_0x2e679b['position']['nodeAfter'],_0x1fca45['model']),_0x19525a=_0x2e679b['before'];'rename'==_0x2e679b['action']&&_0x5e8588['push']({'key':m,'newValue':_0x2e679b['name'],'oldValue':_0x19525a['name'],'range':_0x5b8fa9});for(const [_0x106512,_0x1b9b9e]of _0x19525a['attributes']){if(!this['_isRegisteredAttribute'](_0x106512))continue;const _0x157f00=_0x2e679b['attributes']['get'](_0x106512);_0x1b9b9e!==_0x157f00&&_0x5e8588['push']({'key':_0x106512,'newValue':_0x157f00,'oldValue':_0x1b9b9e,'range':_0x5b8fa9});}for(const [_0x1bdbff,_0x4fa57c]of _0x2e679b['attributes'])this['_isRegisteredAttribute'](_0x1bdbff)&&(_0x19525a['attributes']['has'](_0x1bdbff)||_0x5e8588['push']({'key':_0x1bdbff,'newValue':_0x4fa57c,'oldValue':null,'range':_0x5b8fa9}));}0x0!=_0x5e8588['length']&&_0x1fca45['model']['enqueueChange'](_0x14046d,_0x35c9fd=>{const _0x4e3938=_0x2b4c20();for(const {range:_0x3b8063,key:_0x3ab182,oldValue:_0x50674,newValue:_0x2e1459}of _0x5e8588)this['markAttributeChange'](_0x3b8063,_0x3ab182,_0x50674,_0x2e1459,{'groupId':_0x4e3938});this['_reduceExistingSuggestions'](_0x35c9fd,_0x5e8588);});},{'priority':'lowest'}),_0x1fca45['model']['markers']['on']('update:suggestion',(_0x23b20c,_0x308219,_0x451ab0)=>{if(null==_0x451ab0){const {id:_0x677c0a}=this['_splitMarkerName'](_0x308219['name']),_0x387437=this['_suggestions']['get'](_0x677c0a);_0x387437&&_0x387437['addMarkerName'](_0x308219['name']);}}),_0x1fca45['model']['document']['on']('change:data',()=>{const _0x1019bf=Array['from'](_0x1fca45['model']['document']['differ']['getChangedMarkers']())['filter'](_0x58d037=>'suggestion'===this['_splitMarkerName'](_0x58d037['name'])['group']);if(0x0===_0x1019bf['length'])return;_0x1019bf['sort']((_0xc5b54d,_0xf3dc91)=>{const _0xd28f26=_0xc5b54d['data']['oldRange'],_0x43f3d2=_0xf3dc91['data']['oldRange'];return null===_0xd28f26&&null===_0x43f3d2?0x0:null===_0xd28f26&&null!==_0x43f3d2?-0x1:null!==_0xd28f26&&null===_0x43f3d2?0x1:_0xd28f26['start']['isBefore'](_0x43f3d2['start'])?-0x1:0x1;});const _0x9008d4=new Set(),_0x3330fa=new Set();for(const {name:_0x5ce97c,data:_0x3ebf44}of _0x1019bf){const {id:_0x46b5ae}=this['_splitMarkerName'](_0x5ce97c);if(null===_0x3ebf44['oldRange']){const _0x5ac521=this['_handleNewSuggestionMarker'](_0x5ce97c);_0x3330fa['add'](_0x5ac521);}else{const _0x18d48b=this['_suggestions']['get'](_0x46b5ae);null!==_0x3ebf44['newRange']||_0x18d48b['isInContent']?(_0x9008d4['add'](_0x18d48b['head']),_0x3330fa['add'](_0x18d48b)):this['_removeSuggestion'](_0x18d48b);}}_0x3330fa['size']>0x0&&this['_refreshSuggestionsChain'](_0x3330fa);for(const _0xcb2e0d of _0x9008d4)this['fire']('suggestionChanged',_0xcb2e0d);}),_0x1fca45['model']['on']('applyOperation',(_0x31f619,_0x40728d)=>{const _0x40856d=_0x40728d[0x0];if(!this['_suggestions']['size'])return;if(!_0x40856d['isDocumentOperation'])return;if(_0x40856d['batch']['isUndo']||!_0x40856d['batch']['isLocal'])return;let _0x39c10f,_0x375ed1;switch(_0x40856d['type']){case'insert':_0x39c10f=_0x1fca45['model']['createPositionAt'](_0x40856d['position']),_0x375ed1=_0x39c10f['getShiftedBy'](_0x40856d['howMany']);break;case'split':_0x39c10f=_0x1fca45['model']['createPositionAt'](_0x40856d['splitPosition']),_0x375ed1=_0x1fca45['model']['createPositionAt'](_0x40856d['moveTargetPosition']);break;case'move':_0x39c10f=_0x1fca45['model']['createPositionAt'](_0x40856d['targetPosition']),_0x375ed1=_0x39c10f['getShiftedBy'](_0x40856d['howMany']);break;default:return;}const _0x14a8be=_0x1fca45['model']['createRange'](_0x39c10f,_0x375ed1);_0x1fca45['model']['change'](()=>{for(const {suggestion:_0x3bfb0a,meta:_0x4a230e}of this['_findSuggestions'](_0x14a8be)){if(_0x3bfb0a['isMultiRange'])continue;if('formatInline'==_0x3bfb0a['type'])continue;const _0xec662d=this['_getAttributeKey'](_0x3bfb0a);if(_0xec662d&&this['_isBlockAttribute'](_0xec662d)&&'split'!=_0x40856d['type'])continue;const _0x2f559c=_0x3bfb0a['data']&&_0x3bfb0a['data']['multipleBlocks'];('formatBlock'!=_0x3bfb0a['type']||'split'==_0x40856d['type']&&!_0x2f559c)&&(_0x4a230e['containsRangeInObject']||'insertion'==_0x3bfb0a['type']&&_0x4a230e['isOwn']||_0x3bfb0a['getFirstRange']()['containsRange'](_0x14a8be)&&this['_breakSuggestionMarker'](_0x3bfb0a,_0x39c10f,_0x375ed1));}});},{'priority':'lowest'}),_0x1fca45['model']['on']('deleteContent',(_0x1620bd,_0xb4e71e)=>{const _0x393fa5=_0xb4e71e[0x0],_0x22bea8=_0xb4e71e[0x1];if(_0x22bea8&&_0x22bea8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x393fa5['isCollapsed'])return;const _0x14303f=_0x1fca45['model']['schema'],{start:_0x572f8d,end:_0x457d56}=_0x393fa5['getFirstRange'](),_0x1d51db=_0x572f8d['nodeAfter']&&_0x14303f['isLimit'](_0x572f8d['nodeAfter'])?null:_0x14303f['getNearestSelectionRange'](_0x572f8d,'forward'),_0x4e0f4=_0x457d56['nodeBefore']&&_0x14303f['isLimit'](_0x457d56['nodeBefore'])?null:_0x14303f['getNearestSelectionRange'](_0x457d56,'backward'),_0x30d558=_0x1fca45['model']['createRange'](_0x1d51db?_0x1d51db['start']:_0x572f8d,_0x4e0f4?_0x4e0f4['end']:_0x457d56);_0x1fca45['model']['change'](_0x3ec7aa=>{this['markDeletion'](_0x30d558);const _0x7dceca=_0x1fca45['model']['schema']['getNearestSelectionRange'](_0x30d558['start']);_0x393fa5['is']('documentSelection')?_0x3ec7aa['setSelection'](_0x7dceca):_0x393fa5['setTo'](_0x7dceca);}),_0x1620bd['stop']();},{'priority':_0x408fd7['normal']+0xa}),_0x1fca45['model']['on']('insertContent',(_0x1dbece,_0x7509df)=>{const _0x5c39b3=_0x7509df[_0x7509df['length']-0x1];_0x5c39b3&&_0x5c39b3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1fca45['model']['change'](()=>{let _0x1ad3b6=_0x1fca45['model']['insertContent'](_0x7509df[0x0],_0x7509df[0x1],_0x7509df[0x2],{'forceDefaultExecution':!0x0});if(!_0x1ad3b6)return;_0x1dbece['return']=_0x1ad3b6['clone']();const _0x33e5e1=_0x1ad3b6['end']['nodeBefore'],_0x2678d9=_0x1fca45['model']['schema'];_0x33e5e1&&_0x2678d9['isBlock'](_0x33e5e1)&&!_0x2678d9['isObject'](_0x33e5e1)&&(_0x1ad3b6=_0x1fca45['model']['createRange'](_0x1ad3b6['start'],_0x1fca45['model']['createPositionAt'](_0x33e5e1,'end'))),this['markInsertion'](_0x1ad3b6);}),_0x1dbece['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x458520=new x(_0x1fca45,this['_suggestions']);_0x1fca45['commands']['add']('acceptSuggestion',_0x458520),this['enableCommand']('acceptSuggestion');const _0x4ada37=new R(_0x1fca45,this['_suggestions']);_0x1fca45['commands']['add']('discardSuggestion',_0x4ada37),this['enableCommand']('discardSuggestion'),_0x1fca45['commands']['add']('acceptAllSuggestions',new E(_0x1fca45,_0x458520,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1fca45['commands']['add']('discardAllSuggestions',new E(_0x1fca45,_0x4ada37,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1fca45['commands']['add']('acceptSelectedSuggestions',new O(_0x1fca45,_0x458520,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1fca45['commands']['add']('discardSelectedSuggestions',new O(_0x1fca45,_0x4ada37,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x439faa=_0x1fca45['plugins']['get']('CommentsRepository');this['listenTo'](_0x439faa,'addComment',(_0x5a3a9d,{threadId:_0xf41ca})=>{const _0x36c6d4=this['_suggestions']['get'](_0xf41ca);_0x36c6d4&&_0x36c6d4['commentThread']&&0x1===_0x36c6d4['commentThread']['length']&&this['_updateSuggestionData'](_0xf41ca,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x439faa,'removeComment',(_0x443a06,{threadId:_0x32821c})=>{const _0xf32b03=this['_suggestions']['get'](_0x32821c);_0xf32b03&&_0xf32b03['commentThread']&&!_0xf32b03['commentThread']['length']&&this['_updateSuggestionData'](_0x32821c,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x143d4f){if(this['_adapter'])throw new _0x2d253a('track-changes-adapter-already-set',this);this['_adapter']=_0x143d4f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3a2de0=!0x1,toJSON:_0x50acb8=!0x1}={}){const _0x161b7b=[];for(const _0x5106b7 of this['_suggestions']['values']())_0x3a2de0&&!_0x5106b7['isInContent']||_0x161b7b['push'](_0x5106b7);return _0x50acb8?_0x161b7b['map'](_0x58da55=>_0x58da55['toJSON']()):_0x161b7b;}['getSuggestion'](_0x5c7c0a){const _0x4b0cce=this['_suggestions']['get'](_0x5c7c0a);if(!_0x4b0cce)throw new _0x2d253a('track-changes-suggestion-not-found',this);return _0x4b0cce;}['hasSuggestion'](_0x4fc0e5){return this['_suggestions']['has'](_0x4fc0e5);}['addSuggestionData'](_0x1878e5){const {authorId:_0x5bd4d8,id:_0x5ca2de,attributes:_0x3c955f}=_0x1878e5,[_0xdfa46a,_0x3ff623]=_0x1878e5['type']['split'](':'),_0x5323fd=this['_suggestions']['get'](_0x5ca2de)||this['_createSuggestion'](_0xdfa46a,_0x3ff623,_0x5ca2de,_0x5bd4d8,_0x3c955f);if(this['_addThreadToSuggestion'](_0x5323fd),this['_checkSuggestionCorrectness'](_0x5323fd,_0xdfa46a,_0x3ff623||null,_0x5bd4d8),_0x5323fd['createdAt']=_0x1878e5['createdAt'],_0x5323fd['_isDataLoaded']=!0x0,_0x3c955f&&_0x3c955f['@external']){const _0x1041f6=_0x3c955f['@external'],_0x25a073=this['_getExternalAuthor'](_0x1041f6['authorName']);_0x5323fd['authoredAt']=_0x1041f6['createdAt'],_0x5323fd['author']=_0x25a073,_0x5323fd['isExternal']=!0x0;}else _0x5323fd['authoredAt']=_0x1878e5['createdAt'];switch(_0x1878e5['data']&&(_0x5323fd['data']=_0x1878e5['data']),_0x1878e5['attributes']&&(_0x5323fd['attributes']=_0x1878e5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5323fd['_saved']=!0x0),this['_suggestionState']['get'](_0x5323fd)){case'notReady':this['_suggestionState']['set'](_0x5323fd,'dataReady');break;case'markerReady':_0x5323fd['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5323fd])),this['_refreshSuggestionsChain'](new Set([_0x5323fd])),this['_suggestionState']['set'](_0x5323fd,'ready'),this['fire']('suggestionLoaded',_0x5323fd)):this['_suggestionState']['set'](_0x5323fd,'removed');}return _0x5323fd;}['acceptSuggestion'](_0x3a658e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x379da0 of _0x3a658e['getAllAdjacentSuggestions']())_0x379da0['accept']();});});}['discardSuggestion'](_0x5c9a7a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43fcb5 of _0x5c9a7a['getAllAdjacentSuggestions']())_0x43fcb5['discard']();});});}['enableCommand'](_0x2ee2fc,_0x2d1c72){const _0xc1a58e=this['editor']['commands']['get'](_0x2ee2fc);if(!_0xc1a58e)throw new _0x2d253a('track-changes-command-not-found',this,{'commandName':_0x2ee2fc});if(this['_enabledCommands']['has'](_0xc1a58e))throw new _0x2d253a('track-changes-enable-command-twice',this,{'commandName':_0x2ee2fc});this['_enabledCommands']['add'](_0xc1a58e),_0x2d1c72&&_0xc1a58e['on']('execute',(_0x5783b3,_0x43c039)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x43c039['length']>0x0&&_0x43c039[_0x43c039['length']-0x1]&&_0x43c039[_0x43c039['length']-0x1]['forceDefaultExecution']?_0x43c039['pop']():(_0x5783b3['return']=_0x2d1c72((..._0x3b39a1)=>_0xc1a58e['execute'](..._0x3b39a1,{'forceDefaultExecution':!0x0}),..._0x43c039),_0x5783b3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x250c49){let _0xdb2733,_0x25b786;const _0x31f6cb=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xdb2733=_0x250c49();}catch(_0x43697b){_0x25b786=_0x43697b;}return _0x31f6cb||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x25b786&&_0x2d253a['rethrowUnexpectedError'](_0x25b786,this),_0xdb2733;}['markInsertion'](_0x1e0d5e,_0x3b6ed1=null,_0x59dbba={}){if(_0x1e0d5e['isCollapsed'])return null;const _0x54b9bf=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4d4585,meta:_0x56b00e}of this['_findSuggestions'](_0x1e0d5e,'insertion'))if(_0x56b00e['isOwn']){if(!_0x56b00e['isNextTo']){if(_0x56b00e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4d4585,_0x59dbba))continue;return _0x4d4585;}if(qt(_0x4d4585,_0x59dbba))return _0x4d4585;this['_breakSuggestionMarker'](_0x4d4585,_0x1e0d5e['start'],_0x1e0d5e['end']);break;}if(_0x3b6ed1==_0x4d4585['subType']&&qt(_0x4d4585,_0x59dbba)){const _0x37e3c8=_0x4d4585['getFirstRange']();return _0x37e3c8['start']['isEqual'](_0x1e0d5e['end'])?this['_setSuggestionRange'](_0x4d4585,this['_model']['createRange'](_0x1e0d5e['start'],_0x37e3c8['end'])):this['_setSuggestionRange'](_0x4d4585,this['_model']['createRange'](_0x37e3c8['start'],_0x1e0d5e['end'])),_0x4d4585;}}const _0x203e18=_0x2b4c20(),_0x557d8a=_0x54b9bf['id'],_0x248008=_0x3b6ed1?'insertion:'+_0x3b6ed1:'insertion',_0x51950c=this['_setSuggestionData']({'id':_0x203e18,'type':_0x248008,'createdAt':new Date(),'authorId':_0x557d8a,'attributes':_0x59dbba});return this['_addSuggestionMarker'](_0x248008,_0x203e18,_0x557d8a,_0x1e0d5e),_0x51950c;}['markMultiRangeInsertion'](_0x100bbe,_0x40c839='multi',_0x243765={}){const _0x577c97=this['editor']['plugins']['get']('Users')['me'],_0xc5ea52=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x40c839,'join');for(const _0x29f4ff of this['getSuggestions']())if(_0x29f4ff['author']['id']==_0x577c97['id']&&'insertion'==_0x29f4ff['type']&&_0x29f4ff['subType']==_0x40c839&&qt(_0x29f4ff,_0x243765)&&(_0xc5ea52(_0x29f4ff['getRanges'](),_0x100bbe)||_0xc5ea52(_0x100bbe,_0x29f4ff['getRanges']()))){for(const _0x367b13 of _0x100bbe)_0x29f4ff['addRange'](_0x367b13);return _0x29f4ff;}for(const {suggestion:_0x5885cb,meta:_0x1d0323}of this['_findSuggestions'](_0x100bbe,'insertion')){if(!_0x1d0323['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1d0323['containsRangeInObject'])continue;if(!qt(_0x5885cb,_0x243765))continue;let _0x14db46=!0x0;for(const _0x56691 of _0x5885cb['getRanges']())for(const _0x507289 of _0x100bbe)if(!_0x56691['containsRange'](_0x507289)){_0x14db46=!0x1;break;}if(_0x14db46)return _0x5885cb;}const _0x33f4bc=_0x2b4c20(),_0x2cc3b2=_0x577c97['id'],_0x1094c4='insertion:'+_0x40c839,_0x318f3b=this['_setSuggestionData']({'id':_0x33f4bc,'type':_0x1094c4,'createdAt':new Date(),'authorId':_0x2cc3b2,'attributes':_0x243765});for(const _0x1ae3a9 of _0x100bbe)this['_addSuggestionMarker'](_0x1094c4,_0x33f4bc,_0x2cc3b2,_0x1ae3a9,u['getMultiRangeId']());return _0x318f3b;}['markInlineFormat'](_0x341cd6,_0x7de036,_0x57115b=null,_0x5b6ba7={}){if(_0x57115b=_0x57115b||Gt(_0x7de036),_0x341cd6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1f9030=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x57115b,'accept');return this['forceDefaultExecution'](()=>_0x1f9030([_0x341cd6],_0x7de036,_0x5b6ba7)),null;}const _0x30a7e3=this['editor']['plugins']['get']('Users')['me'],_0x236280=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3e0053,meta:_0x55b5b3}of this['_findSuggestions'](_0x341cd6,'insertion'))_0x55b5b3['isOwn']&&!_0x55b5b3['isInsideObject']&&_0x236280['push'](..._0x3e0053['getRanges']());}const _0x8630cf=function(_0x4412c9,_0x566a8b){const _0x1482ac=[];for(const _0xc82c3d of _0x566a8b){const _0x506867=_0x4412c9['getIntersection'](_0xc82c3d);_0x506867&&_0x1482ac['push'](_0x506867);}return _0x1482ac;}(_0x341cd6,_0x236280),_0x1c69e1=function(_0x224903,_0x325c7c){const _0x40790c=[_0x224903];for(const _0x100faa of _0x325c7c){let _0x2409f6=0x0;for(;_0x2409f6<_0x40790c['length'];){const _0x1b5f51=_0x40790c[_0x2409f6]['getDifference'](_0x100faa);_0x40790c['splice'](_0x2409f6,0x1,..._0x1b5f51),_0x2409f6+=_0x1b5f51['length'];}}return _0x40790c;}(_0x341cd6,_0x236280);_0x8630cf['length']&&this['_model']['change'](()=>{for(const _0xb59acd of _0x8630cf){const _0x457262=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x57115b,'accept');this['forceDefaultExecution'](()=>_0x457262([_0xb59acd],_0x7de036,_0x5b6ba7));}});for(const _0x375569 of _0x1c69e1){let _0x1ac64d=null,_0x44ce4e=_0x375569['start'],_0xc10595=_0x375569['end'];for(const {suggestion:_0x4e6706,meta:_0x58e9bf}of this['_findSuggestions'](_0x375569,'formatInline')){if(!_0x58e9bf['isOwn'])continue;if(_0x4e6706['subType']!=_0x57115b)continue;if(!qt(_0x4e6706,_0x5b6ba7))continue;const _0xbe9da5=_0x4e6706['getFirstRange']();if(_0xbe9da5['containsRange'](_0x375569,!0x0))return null;_0x44ce4e=_0x44ce4e['isBefore'](_0xbe9da5['start'])?_0x44ce4e:_0xbe9da5['start'],_0xc10595=_0xc10595['isAfter'](_0xbe9da5['end'])?_0xc10595:_0xbe9da5['end'],_0x1ac64d?_0xbe9da5['start']['isBefore'](_0x1ac64d['getFirstRange']()['start'])?(_0x1ac64d['removeMarkers'](),_0x1ac64d=_0x4e6706):_0x4e6706['removeMarkers']():_0x1ac64d=_0x4e6706;}const _0x59d9a4=this['_model']['createRange'](_0x44ce4e,_0xc10595);if(_0x1ac64d)this['_setSuggestionRange'](_0x1ac64d,_0x59d9a4);else{const _0x4398b3=_0x2b4c20(),_0x99f93c=_0x30a7e3['id'];this['_setSuggestionData']({'id':_0x4398b3,'type':'formatInline:'+_0x57115b,'data':_0x7de036,'createdAt':new Date(),'authorId':_0x99f93c,'attributes':_0x5b6ba7}),this['_addSuggestionMarker']('formatInline:'+_0x57115b,_0x4398b3,_0x99f93c,_0x59d9a4);}}return null;}['markBlockFormat'](_0x5a4f4a,_0x5d7a72,_0x5496d8=[],_0x5bb7ba=null,_0xaaf593={}){_0x5d7a72['formatGroupId']||(_0x5d7a72['formatGroupId']=_0x5d7a72['commandName']),_0x5d7a72['multipleBlocks']=_0x5a4f4a['is']('range'),_0x5bb7ba=_0x5bb7ba||Gt(_0x5d7a72);const _0x223e9c=_0x5496d8['map'](_0x2d19ba=>Lt(_0x2d19ba,this['_model'])),_0x43a8f9=_0x5a4f4a['is']('range')?_0x5a4f4a:Lt(_0x5a4f4a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x439378=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb7ba,'accept');return this['forceDefaultExecution'](()=>_0x439378([_0x43a8f9],_0x5d7a72,_0xaaf593)),null;}_0x223e9c['push'](_0x43a8f9);let _0x4913a4=!0x0;for(const _0x19d853 of _0x223e9c)if(!this['_rangeIsInLocalUserInsertion'](_0x19d853)){_0x4913a4=!0x1;break;}if(_0x4913a4&&'always'!==this['_trackFormatChanges']){const _0x121133=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bb7ba,'accept');return this['forceDefaultExecution'](()=>_0x121133([_0x43a8f9],_0x5d7a72,_0xaaf593)),null;}let _0x58f8fb=null,_0x31adb7=_0x43a8f9['start'],_0x4a072e=_0x43a8f9['end'];for(const {suggestion:_0x4a9a30,meta:_0x3753b9}of this['_findSuggestions'](_0x43a8f9,'formatBlock')){if(!_0x3753b9['isOwn'])continue;if(_0x3753b9['isNextTo']||_0x3753b9['containsRangeInObject']||_0x3753b9['isInsideObject'])continue;if(_0x4a9a30['data']['formatGroupId']!=_0x5d7a72['formatGroupId'])continue;if(!qt(_0x4a9a30,_0xaaf593))continue;const _0x5369e2=_0x4a9a30['getFirstRange']();if(_0x4a9a30['subType']==_0x5bb7ba){if(_0x5369e2['containsRange'](_0x43a8f9,!0x0))return null;_0x31adb7=_0x31adb7['isBefore'](_0x5369e2['start'])?_0x31adb7:_0x5369e2['start'],_0x4a072e=_0x4a072e['isAfter'](_0x5369e2['end'])?_0x4a072e:_0x5369e2['end'],_0x58f8fb?_0x5369e2['start']['isBefore'](_0x58f8fb['getFirstRange']()['start'])?(_0x58f8fb['removeMarkers'](),_0x58f8fb=_0x4a9a30):_0x4a9a30['removeMarkers']():_0x58f8fb=_0x4a9a30;}else{const _0x52023a=_0x43a8f9['getIntersection'](_0x5369e2);this['_cutOutSuggestionMarker'](_0x4a9a30,_0x52023a);}}const _0x4bc2eb=this['editor']['plugins']['get']('Users')['me'],_0x953b5b=_0x2b4c20(),_0x5cee32=_0x4bc2eb['id'];if(_0x58f8fb)return this['_setSuggestionRange'](_0x58f8fb,this['_model']['createRange'](_0x31adb7,_0x4a072e)),_0x58f8fb;{const _0x284772=this['_setSuggestionData']({'id':_0x953b5b,'type':'formatBlock:'+_0x5bb7ba,'data':_0x5d7a72,'createdAt':new Date(),'authorId':_0x5cee32,'attributes':_0xaaf593});return this['_addSuggestionMarker']('formatBlock:'+_0x5bb7ba,_0x953b5b,_0x5cee32,this['_model']['createRange'](_0x31adb7,_0x4a072e)),_0x284772;}}['markMultiRangeBlockFormat'](_0x11e8b5,_0x5a23d2,_0x5b60f1=[],_0x1482d0=null,_0x1f6507={}){_0x5a23d2['formatGroupId']||(_0x5a23d2['formatGroupId']=_0x5a23d2['commandName']);const _0x5eeffe=_0x11e8b5[0x0];_0x5a23d2['multipleBlocks']=_0x5eeffe['is']('range'),_0x1482d0=_0x1482d0||Gt(_0x5a23d2);const _0x1909b4=_0x5b60f1['map'](_0x11a8b6=>Lt(_0x11a8b6,this['_model'])),_0x59a4a0=_0x5eeffe['is']('range')?_0x11e8b5:_0x11e8b5['map'](_0x225544=>Lt(_0x225544,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2022fd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1482d0,'accept');return this['forceDefaultExecution'](()=>_0x2022fd(_0x59a4a0,_0x5a23d2,_0x1f6507)),null;}_0x1909b4['push'](..._0x59a4a0);let _0x5cb651=!0x0;for(const _0x2f360f of _0x1909b4)if(!this['_rangeIsInLocalUserInsertion'](_0x2f360f)){_0x5cb651=!0x1;break;}if(_0x5cb651&&'always'!==this['_trackFormatChanges']){const _0x367052=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1482d0,'accept');return this['forceDefaultExecution'](()=>_0x367052(_0x59a4a0,_0x5a23d2,_0x1f6507)),null;}const _0x267033=this['editor']['plugins']['get']('Users')['me'];for(const _0xd35c4c of this['getSuggestions']()){if(_0xd35c4c['author']['id']!=_0x267033['id'])continue;if('formatBlock'!=_0xd35c4c['type']||_0xd35c4c['data']['formatGroupId']!=_0x5a23d2['formatGroupId'])continue;if(!qt(_0xd35c4c,_0x1f6507))continue;const _0x524567=_0xd35c4c['subType']==_0x1482d0;for(let _0x22d6e1=0x0;_0x22d6e1<_0x59a4a0['length'];_0x22d6e1++){const _0x175f4e=_0x59a4a0[_0x22d6e1];for(const _0x55afc2 of _0xd35c4c['getMarkers']()){const _0x54f1f0=_0x55afc2['getRange']();if(_0x175f4e['isEqual'](_0x54f1f0)){_0x524567?(_0x59a4a0['splice'](_0x22d6e1,0x1),_0x22d6e1--):_0xd35c4c['removeMarker'](_0x55afc2['name']);break;}}}}if(0x0==_0x59a4a0['length'])return null;const _0x37ff9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1482d0,'join');for(const _0x1d8835 of this['getSuggestions']())if(_0x1d8835['author']['id']==_0x267033['id']&&'formatBlock'==_0x1d8835['type']&&_0x1d8835['data']['formatGroupId']==_0x5a23d2['formatGroupId']&&_0x1d8835['subType']==_0x1482d0&&qt(_0x1d8835,_0x1f6507)&&(_0x37ff9c(_0x1d8835['getRanges'](),_0x59a4a0)||_0x37ff9c(_0x59a4a0,_0x1d8835['getRanges']()))){for(const _0x401c43 of _0x59a4a0)_0x1d8835['addRange'](_0x401c43);return _0x1d8835;}const _0x292793=_0x2b4c20(),_0x149bcd=_0x267033['id'],_0x265a42='formatBlock:'+_0x1482d0,_0x1395c9=this['_setSuggestionData']({'id':_0x292793,'type':_0x265a42,'data':_0x5a23d2,'createdAt':new Date(),'authorId':_0x149bcd,'attributes':_0x1f6507});for(const _0x29f9a9 of _0x59a4a0)this['_addSuggestionMarker'](_0x265a42,_0x292793,_0x149bcd,_0x29f9a9,u['getMultiRangeId']());return _0x1395c9;}['markDeletion'](_0x55c010,_0x25cb6d=null,_0x5a9585={}){if(_0x55c010['isCollapsed'])return null;const _0x424596=this['editor']['plugins']['get']('Users')['me'],_0x2c9daa=new _0xf41792(_0x55c010['start'],_0x55c010['end']);for(const {suggestion:_0x309633,meta:_0x2df17a}of this['_findSuggestions'](_0x2c9daa,'insertion'))if(_0x2df17a['isOwn']&&!_0x2df17a['isNextTo']){if(_0x309633['isMultiRange']){const _0x221824=_0x309633['getRanges']()['filter'](_0x38b6be=>'$graveyard'!=_0x38b6be['root']['rootName']);_0x221824['every'](_0x3289b3=>_0x2c9daa['containsRange'](_0x3289b3,!0x0))&&_0x309633['discard']();if(_0x221824['some'](_0x5593c7=>_0x5593c7['containsRange'](_0x2c9daa,!0x0))){const _0x5a84a1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25cb6d,'accept');return this['forceDefaultExecution'](()=>_0x5a84a1([_0x2c9daa],null,_0x5a9585)),null;}}else{const _0x3c175b=_0x2c9daa['getIntersection'](_0x309633['getFirstRange']());null!==_0x3c175b&&_0x309633['_onDiscard']([_0x3c175b],null,_0x5a9585);}}if(_0x2c9daa['detach'](),_0x2c9daa['isCollapsed']||'$graveyard'==_0x2c9daa['root']['rootName'])return null;let _0x5f1085=null,_0x14401c=_0x2c9daa['start'],_0x20a8dd=_0x2c9daa['end'];const _0x2bc364=this['_findSuggestions'](_0x2c9daa,'deletion');for(const {suggestion:_0x1d37d5,meta:_0x23ddc2}of _0x2bc364){const _0x1e9983=this['_model']['createRange'](_0x14401c,_0x20a8dd);if(_0x23ddc2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x23ddc2['containsRangeInObject']&&!_0x23ddc2['isInsideObject'])){if(_0x1d37d5['isMultiRange']){if(!qt(_0x1d37d5,_0x5a9585))continue;let _0x1bfdee=!0x0;for(const _0x4aceea of _0x1d37d5['getRanges']()){if(_0x4aceea['containsRange'](_0x1e9983,!0x0))return _0x1d37d5;_0x1e9983['containsRange'](_0x4aceea)||(_0x1bfdee=!0x1);}_0x1bfdee&&_0x1d37d5['discard']();}else{const _0x285a78=_0x1d37d5['getFirstRange']();if(_0x285a78['containsRange'](_0x1e9983,!0x0))return _0x1d37d5;if(!qt(_0x1d37d5,_0x5a9585)){_0x1e9983['containsRange'](_0x285a78)?_0x1d37d5['removeMarkers']():_0x285a78['containsPosition'](_0x14401c)?_0x14401c=_0x285a78['end']:_0x285a78['containsPosition'](_0x20a8dd)&&(_0x20a8dd=_0x285a78['start']);continue;}_0x14401c=_0x14401c['isBefore'](_0x285a78['start'])?_0x14401c:_0x285a78['start'],_0x20a8dd=_0x20a8dd['isAfter'](_0x285a78['end'])?_0x20a8dd:_0x285a78['end'],_0x5a9585=Object['assign']({},_0x1d37d5['attributes']),_0x5f1085?_0x285a78['start']['isBefore'](_0x5f1085['getFirstRange']()['start'])?(_0x5f1085['removeMarkers'](),_0x5f1085=_0x1d37d5):_0x1d37d5['removeMarkers']():_0x5f1085=_0x1d37d5;}}}if(_0x5f1085)return this['_setSuggestionRange'](_0x5f1085,this['_model']['createRange'](_0x14401c,_0x20a8dd)),_0x5f1085;{const _0x524b62=_0x2b4c20(),_0x1a3ec4=this['_model']['createRange'](_0x14401c,_0x20a8dd),_0x190766=_0x424596['id'],_0x484078=_0x25cb6d?'deletion:'+_0x25cb6d:'deletion',_0x690288=this['_setSuggestionData']({'id':_0x524b62,'type':_0x484078,'createdAt':new Date(),'authorId':_0x190766,'attributes':_0x5a9585});return this['_addSuggestionMarker'](_0x484078,_0x524b62,_0x190766,_0x1a3ec4),_0x690288;}}['markMultiRangeDeletion'](_0x5dccb5,_0x39995c='multi',_0x3bee83={}){const _0x1be8a=this['editor']['plugins']['get']('Users')['me'],_0x2194d3=_0x5dccb5['map'](_0x17eb51=>new _0xf41792(_0x17eb51['start'],_0x17eb51['end'])),_0x5d6d8a=new Set();for(const {suggestion:_0x92fa0,meta:_0x5827e5}of this['_findSuggestions'](_0x2194d3,'insertion'))_0x5827e5['isOwn']&&!_0x5827e5['isNextTo']&&_0x5d6d8a['add'](_0x92fa0);for(const _0x474b86 of _0x5d6d8a)if(_0x474b86['isMultiRange']){const _0x1743e6=_0x474b86['getRanges']();(!_0x474b86['attributes']||!_0x474b86['attributes']['skipNestingCheck'])&&(_0x1743e6['every'](_0x1defe8=>_0x2194d3['some'](_0x34efed=>_0x34efed['containsRange'](_0x1defe8,!0x0)))&&_0x474b86['discard']());if(_0x2194d3['every'](_0x40efba=>_0x1743e6['some'](_0x12e28d=>_0x12e28d['containsRange'](_0x40efba,!0x0)))){const _0x2dc041=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39995c,'accept');return this['forceDefaultExecution'](()=>_0x2dc041(_0x5dccb5,null,_0x3bee83)),null;}}else{const _0x5f345d=_0x474b86['getFirstRange']();_0x2194d3['some'](_0x2c80cc=>_0x2c80cc['containsRange'](_0x5f345d,!0x0))&&_0x474b86['discard']();if(_0x2194d3['every'](_0x46c8e0=>_0x5f345d['containsRange'](_0x46c8e0,!0x0))){const _0x38821d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39995c,'accept');return this['forceDefaultExecution'](()=>_0x38821d(_0x2194d3,null,_0x3bee83)),null;}}const _0x72d449=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x39995c,'join');let _0x27f4cd=null;for(const _0x1423a6 of this['getSuggestions']())if(_0x1423a6['author']['id']==_0x1be8a['id']&&_0x1423a6['isInContent']&&'deletion'==_0x1423a6['type']&&_0x1423a6['subType']==_0x39995c&&qt(_0x1423a6,_0x3bee83)&&(_0x72d449(_0x1423a6['getRanges'](),_0x2194d3)||_0x72d449(_0x2194d3,_0x1423a6['getRanges']()))){if(_0x27f4cd){if(_0x1423a6['commentThread']&&_0x1423a6['commentThread']['length'])continue;for(const _0x1e9f03 of _0x1423a6['getRanges']())_0x27f4cd['isIntersectingWithRange'](_0x1e9f03)||_0x27f4cd['addRange'](_0x1e9f03);_0x1423a6['removeMarkers']();}else{_0x27f4cd=_0x1423a6;for(const _0x2101a2 of _0x2194d3)_0x1423a6['isIntersectingWithRange'](_0x2101a2)||_0x1423a6['addRange'](_0x2101a2);}}if(_0x27f4cd)return _0x27f4cd;_0x5d6d8a['clear']();for(const {suggestion:_0xa771fb,meta:_0x1e7973}of this['_findSuggestions'](_0x2194d3,'deletion'))_0x1e7973['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e7973['containsRangeInObject']&&!_0x1e7973['isInsideObject'])&&qt(_0xa771fb,_0x3bee83)&&_0x5d6d8a['add'](_0xa771fb);for(const _0x241c5e of _0x5d6d8a){const _0x33c364=_0x241c5e['getRanges']();if(!_0x3bee83||!_0x3bee83['skipNestingCheck']){if(_0x2194d3['every'](_0x465f26=>_0x33c364['some'](_0x4e6dc1=>_0x4e6dc1['containsRange'](_0x465f26,!0x0))))return _0x241c5e;}(!_0x241c5e['attributes']||!_0x241c5e['attributes']['skipNestingCheck'])&&(_0x33c364['every'](_0x196eca=>_0x2194d3['some'](_0x1070dc=>_0x1070dc['containsRange'](_0x196eca,!0x0)))&&_0x241c5e['discard']());}const _0x3c1011=_0x2b4c20(),_0x21f492=_0x1be8a['id'],_0xeaceb9='deletion:'+_0x39995c,_0x43fdb9=this['_setSuggestionData']({'id':_0x3c1011,'type':_0xeaceb9,'createdAt':new Date(),'authorId':_0x21f492,'attributes':_0x3bee83});for(const _0xb838b5 of _0x2194d3)_0xb838b5['detach'](),_0xb838b5['isCollapsed']||'$graveyard'==_0xb838b5['root']['rootName']||this['_addSuggestionMarker'](_0xeaceb9,_0x3c1011,_0x21f492,_0xb838b5,u['getMultiRangeId']());return _0x43fdb9;}['markAttributeChange'](_0x4a7a23,_0x54aa13,_0x2e7736,_0x52c1ae,_0x36a1a5){if(_0x4a7a23['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x313525=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b5737=Array['from'](this['_suggestions']['values']())['filter'](_0x19a0c8=>'attribute'==_0x19a0c8['type']&&_0x19a0c8['data']['key']==_0x54aa13&&_0x19a0c8['isIntersectingWithRange'](_0x4a7a23));if('default'===this['_trackFormatChanges']){const _0x356bd3=this['_findSuggestions'](_0x4a7a23,'insertion')['filter'](({meta:_0x492114})=>_0x492114['isOwn']&&!_0x492114['isInsideObject']&&!_0x492114['isNextTo'])['map'](({suggestion:_0x1e73de})=>_0x1e73de);_0x4b5737['unshift'](..._0x356bd3);}const _0x181bc7=new Map([[_0x4a7a23,_0x2e7736]]);for(const _0x1b3213 of _0x4b5737){const _0x3ec388='attribute'==_0x1b3213['type']?_0x1b3213['data']['oldValue']:void 0x0,_0xb790e8=_0x1b3213['getFirstRange'](),_0x2a0634=Array['from'](_0x181bc7['keys']())['find'](_0x4db35f=>_0x4db35f['isIntersecting'](_0xb790e8));if(!_0x2a0634)continue;const _0x489916=_0x2a0634['getDifference'](_0xb790e8);this['_isBlockAttribute'](_0x54aa13)&&'insertion'==_0x1b3213['type']&&0x0!=_0x489916['length']||(_0x181bc7['delete'](_0x2a0634),_0x489916['forEach'](_0x1a0276=>{_0x181bc7['set'](_0x1a0276,_0x2e7736);}),'insertion'!=_0x1b3213['type']&&_0x3ec388!=_0x52c1ae&&_0x181bc7['set'](_0x2a0634['getIntersection'](_0xb790e8),_0x3ec388));}const _0x422cce=[];for(const [_0x193f6a,_0x507795]of _0x181bc7){const _0x3794f8=_0x2b4c20(),_0x2ae7dc={'key':_0x54aa13,'oldValue':_0x507795,'newValue':_0x52c1ae};_0x54aa13['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':_0x54aa13});const _0x179be5=('attribute:'+(_0x54aa13+'|'+Gt({'newValue':_0x52c1ae})))['substring'](0x0,0x3c),_0x1b7f18=this['_setSuggestionData']({'id':_0x3794f8,'type':_0x179be5,'data':_0x2ae7dc,'createdAt':new Date(),'authorId':_0x313525,'attributes':_0x36a1a5});_0x422cce['push'](_0x1b7f18),this['_addSuggestionMarker'](_0x179be5,_0x3794f8,_0x313525,_0x193f6a);}return _0x422cce;}['enableDefaultAttributesIntegration'](_0x37ddda){this['enableCommand'](_0x37ddda,(_0x4e3709,..._0x5976ed)=>{this['_recordAttributeChanges'](()=>{_0x4e3709(..._0x5976ed);});});}['registerBlockAttribute'](_0x10a79d){this['_blockAttributeKeys']['add'](_0x10a79d);}['registerInlineAttribute'](_0x12a983){this['_inlineAttributeKeys']['add'](_0x12a983);}['_getAttributeKey'](_0x34ccfd){return'attribute'==_0x34ccfd['type']?_0x34ccfd['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5bd8ec,_0x291bc2){const _0x1d01ee=_0x5bd8ec['getFirstMarker']();this['_model']['change'](_0x51560b=>{_0x51560b['updateMarker'](_0x1d01ee,{'range':_0x291bc2});});}['_addThreadToSuggestion'](_0x478f74){const _0x258a8e=_0x478f74['id'],_0x4e8f3c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x258a8e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4e8f3c,'threadId':_0x258a8e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x34b0f9=this['_commentsRepository']['getCommentThread'](_0x258a8e);_0x34b0f9['unbind']('isRemovable'),_0x34b0f9['isRemovable']=!0x1,_0x478f74['commentThread']=_0x34b0f9;}['_checkSuggestionCorrectness'](_0x2bfd2a,_0x480e19,_0x10b2a7,_0x36d5ee){if(_0x2bfd2a['type']!=_0x480e19||_0x2bfd2a['subType']!=_0x10b2a7||_0x2bfd2a['creator']['id']!=_0x36d5ee)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2d253a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x423de,_0x45e432){const _0x5b97ad=_0x423de['getFirstRange']();if(_0x45e432['isEqual'](_0x5b97ad))_0x423de['removeMarkers']();else{if(_0x5b97ad['containsRange'](_0x45e432)){const _0x4b3f64=this['_model']['createPositionAt'](_0x45e432['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x423de,this['_model']['createRange'](_0x5b97ad['start'],_0x4b3f64));const _0x1cf5d4=_0x2b4c20(),_0x4ae29e=_0x423de['creator']['id'],_0x233ad0=_0x423de['type']+':'+_0x423de['subType'];this['_setSuggestionData']({'id':_0x1cf5d4,'type':_0x233ad0,'createdAt':new Date(),'authorId':_0x4ae29e,'data':_0x423de['data'],'attributes':_0x423de['attributes']});const _0x274358=this['_model']['createPositionAt'](_0x45e432['end']['parent'],'after'),_0x39fda1=this['_model']['createRange'](_0x274358,_0x5b97ad['end']);this['_addSuggestionMarker'](_0x233ad0,_0x1cf5d4,_0x4ae29e,_0x39fda1);}else{if(_0x5b97ad['containsPosition'](_0x45e432['start'])){const _0x338343=this['_model']['createPositionAt'](_0x45e432['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x423de,this['_model']['createRange'](_0x5b97ad['start'],_0x338343));}else{const _0x1b03c7=this['_model']['createPositionAt'](_0x45e432['end']['parent'],'after');this['_setSuggestionRange'](_0x423de,this['_model']['createRange'](_0x1b03c7,_0x5b97ad['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x26ec13){for(const {suggestion:_0x1b3bfc,meta:_0x19dd5e}of this['_findSuggestions'](_0x26ec13,'insertion')){if(!_0x19dd5e['isOwn'])continue;const _0x5822f9=_0x1b3bfc['getRanges']();for(const _0x3b134f of _0x5822f9)if(!_0x26ec13['getDifference'](_0x3b134f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3ec237){const _0x1b7ecf=this['editor']['plugins']['get']('Users')['getUser'](_0x3ec237);if(!_0x1b7ecf)throw new _0x2d253a('track-changes-user-not-found',this);return _0x1b7ecf;}['_getExternalAuthor'](_0x2a6308){const _0x3698c4=this['editor']['plugins']['get']('Users'),_0x3fe064=_0x4eeb59('external:'+_0x2a6308),_0x14475e=_0x3698c4['getUser'](_0x3fe064);return _0x14475e||_0x3698c4['addUser']({'id':_0x3fe064,'name':_0x2a6308});}['_createSuggestion'](_0x45a029,_0x111472,_0x5311cf,_0x304a25,_0x27c15c){const _0x4a422e=this['_getAuthorFromId'](_0x304a25),_0xc312fe=this['_suggestionFactory']['buildSuggestion'](_0x45a029,_0x111472,_0x5311cf,_0x4a422e,_0x27c15c,_0x20a358=>{this['_updateSuggestionData'](_0x5311cf,{'attributes':_0x20a358});const _0x24c29a=this['getSuggestion'](_0x5311cf);this['_joinWithAdjacentSuggestions'](new Set([_0x24c29a])),this['_refreshSuggestionsChain'](new Set([_0x24c29a]));});return this['listenTo'](_0xc312fe,'accept',()=>{this['_updateSuggestionData'](_0x5311cf,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xc312fe,'discard',()=>{this['_updateSuggestionData'](_0x5311cf,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5311cf,_0xc312fe),this['_suggestionState']['set'](_0xc312fe,'notReady'),_0xc312fe;}['_splitMarkerName'](_0x4e0ae4){const _0x625ee6=_0x4e0ae4['split'](':');return{'group':_0x625ee6[0x0],'type':_0x625ee6[0x1],'subType':_0x625ee6['length']>=0x5?_0x625ee6[0x2]:null,'id':_0x625ee6['length']<0x5?_0x625ee6[0x2]:_0x625ee6[0x3],'authorId':_0x625ee6['length']<0x5?_0x625ee6[0x3]:_0x625ee6[0x4],'markerCount':0x6==_0x625ee6['length']?_0x625ee6[0x5]:null};}['_breakSuggestionMarker'](_0x10a5cd,_0x26ff90,_0x151d61){const _0x227662=_0x10a5cd['getFirstRange'](),_0xff11e4=_0x227662['start'],_0x17c635=_0x227662['end'];this['_setSuggestionRange'](_0x10a5cd,this['_model']['createRange'](_0xff11e4,_0x26ff90));const _0x3159f6=_0x2b4c20(),_0x54474e=_0x10a5cd['creator']['id'],_0x114923=_0x10a5cd['type']+(_0x10a5cd['subType']?':'+_0x10a5cd['subType']:'');this['_setSuggestionData']({'id':_0x3159f6,'type':_0x114923,'createdAt':new Date(),'authorId':_0x54474e,'originalSuggestionId':_0x10a5cd['id'],'attributes':_0x10a5cd['attributes'],'data':_0x10a5cd['data']});const _0x573538=this['_getAttributeKey'](_0x10a5cd);('formatBlock'==_0x10a5cd['type']||_0x573538&&this['_isBlockAttribute'](_0x573538))&&(_0x151d61=this['_model']['createPositionBefore'](_0x151d61['parent'])),this['_addSuggestionMarker'](_0x114923,_0x3159f6,_0x54474e,this['_model']['createRange'](_0x151d61,_0x17c635));}['_findSuggestions'](_0x8fc582,_0xb650f1=null){const _0x146892=[],_0x2b1863=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x8fc582)||(_0x8fc582=[_0x8fc582]);for(const _0x4ab12d of this['getSuggestions']()){if(!_0x4ab12d['isInContent'])continue;if(_0xb650f1&&_0x4ab12d['type']!=_0xb650f1)continue;let _0x263175=!0x1;for(const _0x2612cd of _0x4ab12d['getRanges']()){for(const _0x370928 of _0x8fc582){const _0xc95209=_0x370928['start']['isEqual'](_0x2612cd['end'])||_0x370928['end']['isEqual'](_0x2612cd['start']);if(_0xc95209||_0x370928['getIntersection'](_0x2612cd)){const _0x3c85cb=_0x370928['containsRange'](_0x2612cd)&&Ot(this['_model']['schema'],_0x2612cd['start'],_0x370928),_0x18cceb=_0x2612cd['containsRange'](_0x370928)&&Ot(this['_model']['schema'],_0x370928['start'],_0x2612cd);_0x146892['push']({'suggestion':_0x4ab12d,'meta':{'isOwn':_0x2b1863==_0x4ab12d['author'],'isNextTo':_0xc95209,'isInsideObject':_0x3c85cb,'containsRangeInObject':_0x18cceb}}),_0x263175=!0x0;break;}}if(_0x263175)break;}}return _0x146892;}['_addSuggestionMarker'](_0x20621d,_0x4a751a,_0x14d164,_0x328945,_0x4dcd32){this['_model']['change'](_0x17f5e2=>{let _0x15f57d='suggestion:'+_0x20621d+':'+_0x4a751a+':'+_0x14d164;_0x4dcd32&&(_0x15f57d=_0x15f57d+':'+_0x4dcd32),_0x17f5e2['addMarker'](_0x15f57d,{'range':_0x328945,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2b0699){const _0x2b7297=_0x2b0699['previous'],_0x4ce769=_0x2b0699['next'];_0x2b0699['previous']=null,_0x2b0699['next']=null,null!=_0x2b7297&&_0x2b7297['next']==_0x2b0699&&(_0x2b7297['next']=_0x4ce769),null!=_0x4ce769&&_0x4ce769['previous']==_0x2b0699&&(_0x4ce769['previous']=_0x2b7297),'ready'==this['_suggestionState']['get'](_0x2b0699)&&(this['_suggestionState']['set'](_0x2b0699,'removed'),this['fire']('suggestionUnloaded',_0x2b0699,_0x2b7297,_0x4ce769));}['_setSuggestionData'](_0x429145){const _0x65e13c=_0x429145['id'],_0xbc4dd9=this['addSuggestionData'](_0x429145);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5ac8f4=this['editor']['plugins']['get']('PendingActions'),_0x352cf5=_0xbc4dd9['hasComments'],_0x34e7d8=_0xbc4dd9['subType']?_0xbc4dd9['type']+':'+_0xbc4dd9['subType']:_0xbc4dd9['type'],_0x42b367=this['editor']['locale'],_0xd46ed4=_0x5ac8f4['add'](o(_0x42b367,'PENDING_ACTION_SUGGESTION')),_0x4efa8f={'id':_0x65e13c,'type':_0x34e7d8,'hasComments':_0x352cf5,'data':_0x429145['data']||null,'originalSuggestionId':_0x429145['originalSuggestionId']||null,'attributes':_0xbc4dd9['attributes']};this['_adapter']['addSuggestion'](_0x4efa8f)['then'](_0xba7353=>{_0xbc4dd9['_saved']=!0x0,_0x5ac8f4['remove'](_0xd46ed4),_0xba7353&&_0xba7353['createdAt']&&(this['_suggestions']['get'](_0x65e13c)['createdAt']=_0xba7353['createdAt']);})['catch'](_0x71c48=>{throw _0x32c801('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xbc4dd9['discard']();}),_0xbc4dd9['stopListening'](),this['_suggestions']['delete'](_0xbc4dd9['id']),this['_suggestionState']['delete'](_0xbc4dd9),_0x71c48;});}return _0xbc4dd9;}['_isBlockAttribute'](_0x539a8b){return this['_blockAttributeKeys']['has'](_0x539a8b);}['_updateSuggestionData'](_0x134d7c,_0x20ab3d){const _0x33e502=this['editor']['plugins']['get']('PendingActions'),_0x39ec32=this['getSuggestion'](_0x134d7c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x39ec32['_saved']){const _0x52c3a1=_0x33e502['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x134d7c,_0x20ab3d)['then'](()=>{_0x33e502['remove'](_0x52c3a1);});}else _0x39ec32['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x134d7c,_0x20ab3d);});}}['_getSuggestionData'](_0x701746){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2d253a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x701746);}['_handleNewSuggestionMarker'](_0x546082){const {id:_0x1e17db,type:_0x4da55a,subType:_0xe0108d,authorId:_0x3eab02}=this['_splitMarkerName'](_0x546082),_0xc67963=this['_suggestions']['get'](_0x1e17db)||this['_createSuggestion'](_0x4da55a,_0xe0108d,_0x1e17db,_0x3eab02,{});switch(this['_checkSuggestionCorrectness'](_0xc67963,_0x4da55a,_0xe0108d,_0x3eab02),this['_suggestionState']['get'](_0xc67963)){case'notReady':this['_getSuggestionData'](_0x1e17db)['then'](_0x237f3a=>{let _0x3e9ed0=Promise['resolve']();_0x237f3a['hasComments']&&(_0x3e9ed0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1e17db})),_0x3e9ed0['then'](()=>{this['addSuggestionData'](_0x237f3a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xc67963,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1e17db,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xc67963,'ready'),this['fire']('suggestionLoaded',_0xc67963);break;case'ready':this['fire']('suggestionChanged',_0xc67963);}return _0xc67963['addMarkerName'](_0x546082),_0xc67963;}['_refreshSuggestionsChain'](_0x4f61ff){const _0xf908aa=Array['from'](_0x4f61ff),_0x38ed34=_0xf908aa['filter'](_0x1dceaa=>'attribute'==_0x1dceaa['type']);this['_refreshAttributeSuggestionsChain'](_0x38ed34);const _0xa46750=_0xf908aa['filter'](_0x5e5445=>!_0x5e5445['isMultiRange']&&'attribute'!=_0x5e5445['type']),_0x197d7b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18c590=>!_0x18c590['isMultiRange']&&'attribute'!=_0x18c590['type']),_0x1f4e13=_0x197d7b['filter'](_0x1650df=>!_0x4f61ff['has'](_0x1650df)),_0x4d4456=new Map(_0x197d7b['map'](_0x499b6f=>[_0x499b6f,this['_suggestionFactory']['getSuggestionCallback'](_0x499b6f['type'],_0x499b6f['subType'],'chain')])),_0x43199b=new Map(_0x197d7b['map'](_0x59f389=>[_0x59f389,_0x59f389['getFirstRange']()])),_0x1b6c89=new Set(),_0x1f83a7=new Set();for(let _0x2206e8=0x0;_0x2206e8<_0xa46750['length'];_0x2206e8++)_0x2cf89f(_0xa46750[_0x2206e8],_0xa46750,_0x2206e8+0x1);for(let _0x2a57da=0x0;_0x2a57da<_0xa46750['length'];_0x2a57da++)_0x2cf89f(_0xa46750[_0x2a57da],_0x1f4e13,0x0);const _0x2b9ede=new Set();for(let _0x43f842=0x0;_0x43f842<_0xa46750['length'];_0x43f842++){const _0x4e1173=_0xa46750[_0x43f842];!_0x1f83a7['has'](_0x4e1173)&&_0x4e1173['previous']&&(_0x2b9ede['add'](_0x4e1173['previous']),_0x4e1173['previous']['next']===_0x4e1173&&(_0x4e1173['previous']['next']=null),_0x4e1173['previous']=null),!_0x1b6c89['has'](_0x4e1173)&&_0x4e1173['next']&&(_0x2b9ede['add'](_0x4e1173['next']),_0x4e1173['next']['previous']===_0x4e1173&&(_0x4e1173['next']['previous']=null),_0x4e1173['next']=null);}function _0x2cf89f(_0x1685e8,_0x28fd6b,_0x1df6df){for(let _0x21fbd7=_0x1df6df;_0x21fbd7<_0x28fd6b['length'];_0x21fbd7++){const _0x5539e3=_0x3b7a96(_0x1685e8,_0x28fd6b[_0x21fbd7]);_0x5539e3&&(_0x5539e3[0x0]['next']=_0x5539e3[0x1],_0x5539e3[0x1]['previous']=_0x5539e3[0x0],_0x1b6c89['add'](_0x5539e3[0x0]),_0x1f83a7['add'](_0x5539e3[0x1]));}}function _0x3b7a96(_0x2fd06c,_0x46b937){if(_0x2fd06c['author']['id']!==_0x46b937['author']['id'])return null;const _0x497839=_0x4d4456['get'](_0x2fd06c)(_0x2fd06c,_0x46b937,_0x43199b['get'](_0x2fd06c),_0x43199b['get'](_0x46b937));if(!_0x497839)return null;return _0x4d4456['get'](_0x46b937)(_0x2fd06c,_0x46b937,_0x43199b['get'](_0x2fd06c),_0x43199b['get'](_0x46b937))?_0x497839[0x1]['commentThread']&&_0x497839[0x1]['commentThread']['length']?null:_0x497839:null;}_0x2b9ede['size']&&this['_refreshSuggestionsChain'](_0x2b9ede);}['_refreshAttributeSuggestionsChain'](_0x564677){if(0x0==_0x564677['length'])return;const _0x150301=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22fc9e=>'attribute'==_0x22fc9e['type']&&_0x22fc9e['_isDataLoaded']),_0x22e8a0=[],_0x4dc13d=new Map();for(const _0x7df050 of _0x150301){const _0x249f9f=_0x4eeb59(_0x7df050['attributes']);_0x4dc13d['has'](_0x249f9f)||(_0x4dc13d['set'](_0x249f9f,_0x22e8a0['length']),_0x22e8a0['push']([]));const _0x2cb515=_0x4dc13d['get'](_0x249f9f);_0x22e8a0[_0x2cb515]['push'](_0x7df050);}!(function(){_0x22e8a0['sort']((_0x3d8d68,_0x429fdb)=>{const _0x3fab13=_0x3d8d68[0x0]['createdAt'],_0x27a49d=_0x429fdb[0x0]['createdAt'];return _0x3fab13==_0x27a49d?_0x3d8d68[0x0]['attributes']['groupId']<_0x429fdb[0x0]['attributes']['groupId']?-0x1:0x1:_0x3fab13<_0x27a49d?-0x1:0x1;});for(const _0x1e4595 of _0x22e8a0)_0x1e4595['sort']((_0x139e3e,_0x4d241c)=>_0x139e3e['id']<_0x4d241c['id']?-0x1:0x1);}());for(let _0x29dff3=0x0;_0x29dff3<_0x22e8a0['length'];_0x29dff3++){if(0x0==_0x22e8a0[_0x29dff3]['length'])continue;const _0x5c0ca6=[];for(let _0x4e5ed6=_0x29dff3+0x1;_0x4e5ed6<_0x22e8a0['length'];_0x4e5ed6++)0x0!=_0x22e8a0[_0x4e5ed6]['length']&&_0x19ceda(_0x22e8a0[_0x29dff3],_0x22e8a0[_0x4e5ed6])&&_0x5c0ca6['push'](_0x4e5ed6);for(const _0x1e2b73 of _0x5c0ca6)_0x22e8a0[_0x29dff3]=_0x22e8a0[_0x29dff3]['concat'](_0x22e8a0[_0x1e2b73]),_0x22e8a0[_0x1e2b73]=[];}for(const _0x2cf8c1 of _0x22e8a0)for(let _0x59f34b=0x0;_0x59f34b<_0x2cf8c1['length'];_0x59f34b++){const _0x50ebd3=_0x2cf8c1[_0x59f34b+0x1]||null;_0x2cf8c1[_0x59f34b]['next']!==_0x50ebd3&&(_0x2cf8c1[_0x59f34b]['next']=_0x50ebd3);}for(const _0x3d3fbc of _0x22e8a0)for(let _0x17ddc5=0x0;_0x17ddc5<_0x3d3fbc['length'];_0x17ddc5++){const _0x485fb3=_0x3d3fbc[_0x17ddc5-0x1]||null;_0x3d3fbc[_0x17ddc5]['previous']!==_0x485fb3&&(_0x3d3fbc[_0x17ddc5]['previous']=_0x485fb3);}function _0x19ceda(_0x1b6ef3,_0x52692b){if(_0x1b6ef3[0x0]['attributes']['groupId']!==_0x52692b[0x0]['attributes']['groupId']&&_0x1b6ef3[0x0]['author']!==_0x52692b[0x0]['author'])return!0x1;if(!function(_0xb09238,_0x1316c8){if(!_0xb09238['hasComments']&&!_0x1316c8['hasComments'])return!0x0;if(_0xb09238['hasComments']&&_0x1316c8['hasComments'])return!0x1;if(_0xb09238['hasComments']&&_0x1316c8['createdAt']<_0xb09238['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1316c8['hasComments']&&_0xb09238['createdAt']<_0x1316c8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1b6ef3[0x0],_0x52692b[0x0]))return!0x1;const _0x27210e=Tt(_0x1b6ef3[0x0]['attributes'],'groupId'),_0x5c87ed=Tt(_0x52692b[0x0]['attributes'],'groupId');if(!_0x3bc98d(_0x27210e,_0x5c87ed))return!0x1;return!!_0x1b6ef3['every'](_0xeb2855=>_0x52692b['some'](_0x49625a=>_0xeb2855['getFirstRange']()['isEqual'](_0x49625a['getFirstRange']())))&&_0x52692b['every'](_0x73ece5=>_0x1b6ef3['some'](_0xc6da10=>_0x73ece5['getFirstRange']()['isEqual'](_0xc6da10['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2fadcb){const _0x4ccb99=Array['from'](_0x2fadcb),_0x2379c3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2cb8ed=_0x2379c3['filter'](_0xb02510=>!_0x2fadcb['has'](_0xb02510)),_0x270e50=new Map(_0x4ccb99['map'](_0xc3356f=>[_0xc3356f,this['_suggestionFactory']['getSuggestionCallback'](_0xc3356f['type'],_0xc3356f['subType'],'join')])),_0x5a0854=new Map(_0x2379c3['map'](_0x32a64c=>[_0x32a64c,_0x32a64c['getRanges']()]));for(let _0xa2877=0x0;_0xa2877<_0x4ccb99['length'];_0xa2877++){if(_0x4757a7(this,_0x4ccb99[_0xa2877],_0x4ccb99,_0xa2877+0x1))return!0x0;}for(let _0x15a479=0x0;_0x15a479<_0x4ccb99['length'];_0x15a479++){if(_0x4757a7(this,_0x4ccb99[_0x15a479],_0x2cb8ed,0x0))return!0x0;}return!0x1;function _0x4757a7(_0x25ba81,_0x55a141,_0x6eb049,_0x254d52){for(let _0x1170fa=_0x254d52;_0x1170fa<_0x6eb049['length'];_0x1170fa++){const _0x30bf6a=_0x6eb049[_0x1170fa];if(_0x30bf6a['type']!==_0x55a141['type']||_0x30bf6a['author']['id']!==_0x55a141['author']['id']||_0x30bf6a['subType']!==_0x55a141['subType'])continue;if(!Jt(_0x55a141,_0x30bf6a))continue;if('attribute'==_0x55a141['type']&&_0x55a141['data']['oldValue']!=_0x30bf6a['data']['oldValue'])continue;if('attribute'==_0x55a141['type']&&_0x25ba81['_isBlockAttribute'](_0x55a141['data']['key']))continue;if('formatBlock'==_0x55a141['type']){const _0x550533=_0x25ba81['editor']['model'],_0x5726b9=_0x55a141['getContainedElement']();if(_0x5726b9&&(_0x550533['schema']['isObject'](_0x5726b9)||_0x550533['schema']['isLimit'](_0x5726b9)))continue;}const _0x330c2f=_0x270e50['get'](_0x55a141),_0xd7f46b=_0x5a0854['get'](_0x55a141),_0x22abf4=_0x5a0854['get'](_0x30bf6a),_0x3abe7=_0x55a141['commentThread']&&_0x55a141['commentThread']['length'],_0x2da160=_0x30bf6a['commentThread']&&_0x30bf6a['commentThread']['length'];if(!_0x3abe7&&_0x330c2f(_0x22abf4,_0xd7f46b))return _0x25ba81['_joinSuggestions'](_0x30bf6a,_0x55a141),_0x5a0854['delete'](_0x55a141),!0x0;if(!_0x2da160&&_0x330c2f(_0xd7f46b,_0x22abf4))return _0x25ba81['_joinSuggestions'](_0x55a141,_0x30bf6a),_0x5a0854['delete'](_0x30bf6a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3436a8,_0x55915b){if(_0x3436a8['isMultiRange']){for(const _0x4669cf of _0x55915b['getRanges']())_0x3436a8['addRange'](_0x4669cf);}else{const _0x44198e=_0x55915b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3436a8,this['_model']['createRange'](_0x3436a8['getFirstRange']()['start'],_0x44198e));}_0x55915b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x547061,_0x121fe6,_0x276c3f){const _0x4c0bd7=_0x547061['startsWith']('format')||_0x547061['startsWith']('attribute')?'FORMATTING':_0x547061['toUpperCase']();return o(this['editor']['locale'],_0x121fe6+'_'+_0x4c0bd7+'_SUGGESTION_ANNOUNCEMENT',_0x276c3f);}['_initAriaMarkerChangeAnnouncements'](){const _0xea04b2=this['editor'];if(!_0xea04b2['ui'])return;const {ariaLiveAnnouncer:_0x116ff0}=_0xea04b2['ui'];_0x4c46e3(this['_model'],({left:_0x2c8d7a,entered:_0x5354cc})=>{for(const _0x34fa21 of _0x2c8d7a){const {group:_0x4cafcb,type:_0xd310c2}=this['_splitMarkerName'](_0x34fa21['name']);if('suggestion'===_0x4cafcb){_0x116ff0['announce'](this['_getMarkerAnnouncementText'](_0xd310c2,'LEAVE'));break;}}for(const _0x130429 of _0x5354cc){const {group:_0x207aa0,type:_0x3c43a3}=this['_splitMarkerName'](_0x130429['name']);if('suggestion'===_0x207aa0){_0x116ff0['announce'](this['_getMarkerAnnouncementText'](_0x3c43a3,'ENTER',_0x753ada(_0x5ece77)));break;}}});}['_processAttributeChanges'](_0x3b5deb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x37c9f4=this['editor'],_0x22192e=_0x37c9f4['model']['document']['differ']['getChanges']();if(0x0==_0x22192e['length'])return!0x1;const _0x8998f2=[],_0x2e0323=_0x22192e['filter'](_0x37208d=>'attribute'==_0x37208d['type']),_0x2b2925=_0x22192e['filter'](_0x3ed285=>'insert'==_0x3ed285['type']&&'$text'!=_0x3ed285['name']),_0x39adbe=_0x22192e['filter'](_0x2b2a09=>'remove'==_0x2b2a09['type']&&'$text'!=_0x2b2a09['name']);for(const _0x49a8c7 of _0x2e0323)_0x8998f2['push']({'key':_0x49a8c7['attributeKey'],'newValue':_0x49a8c7['attributeNewValue'],'oldValue':_0x49a8c7['attributeOldValue'],'range':Pt(_0x49a8c7['range'],_0x37c9f4['model'])});for(const _0x564edb of _0x2b2925){const _0x527dcf=_0x39adbe['find'](_0x1c0fc4=>_0x1c0fc4['position']['isEqual'](_0x564edb['position']));_0x527dcf&&_0x8998f2['push']({'key':m,'newValue':_0x564edb['name'],'oldValue':_0x527dcf['name'],'range':_0x37c9f4['model']['createRangeOn'](_0x564edb['position']['nodeAfter'])});}return 0x0!=_0x8998f2['length']&&this['_reduceExistingSuggestions'](_0x3b5deb,_0x8998f2);}['_processAttributeSuggestions'](_0x301b65){let _0x1b254c=!0x1;const _0x15c4ee=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x462be9=>_0x462be9['data']['newRange']&&_0x462be9['name']['startsWith']('suggestion:attribute:'));for(const _0xbb2246 of _0x15c4ee){const {subType:_0x42344a,id:_0x57e230}=this['_splitMarkerName'](_0xbb2246['name']),_0x48b24d=_0x42344a['split']('|')[0x0];for(const _0xff4f86 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xff4f86['id']!=_0x57e230&&'attribute'==_0xff4f86['type']&&_0xff4f86['data']&&_0xff4f86['data']['key']==_0x48b24d&&_0xff4f86['getFirstRange']()['isIntersecting'](_0xbb2246['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xff4f86,_0xbb2246['data']['newRange'],_0x301b65),_0x1b254c=!0x0);}return _0x1b254c;}['_recordAttributeChanges'](_0x8eef9b){this['_recordAttributeSuggestions']=!0x0,_0x8eef9b();}['_isRegisteredAttribute'](_0x3275fd){const _0x3301ae=this['_isBlockAttribute'](_0x3275fd),_0x513aae=this['_inlineAttributeKeys']['has'](_0x3275fd);return _0x3301ae||_0x513aae;}['_reduceExistingSuggestions'](_0x233703,_0x2024b2){if(0x0==_0x2024b2['length'])return!0x1;let _0x452cb7=!0x1;for(const _0xb27d4a of _0x2024b2){const _0x1c4d20=this['_findSuggestions'](_0xb27d4a['range'],'attribute')['filter'](_0x2bf384=>!_0x2bf384['meta']['isNextTo'])['map'](_0x27aa5a=>_0x27aa5a['suggestion']),_0xd386ae=_0x4eeb59({'newValue':_0xb27d4a['newValue']});_0x1c4d20['filter'](_0xac368a=>{const [_0x48905c,_0xc14e98]=_0xac368a['subType']['split']('|');return _0x48905c==_0xb27d4a['key']&&_0xc14e98!=_0xd386ae;})['forEach'](_0x3e63d0=>{this['_reduceSuggestionAttributeRange'](_0x3e63d0,_0xb27d4a['range'],_0x233703),_0x452cb7=!0x0;});}return _0x452cb7;}['_reduceSuggestionAttributeRange'](_0x169d2e,_0x2eaa55,_0x339443){const _0x29e724=_0x169d2e['getFirstRange']()['getDifference'](_0x2eaa55);0x0!==_0x29e724['length']?0x1!==_0x29e724['length']?this['_breakSuggestionMarker'](_0x169d2e,_0x2eaa55['start'],_0x2eaa55['end']):this['_setSuggestionRange'](_0x169d2e,_0x29e724[0x0]):_0x339443['removeMarker'](_0x169d2e['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x217ef1){this['_editor']=_0x217ef1,this['_model']=_0x217ef1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3401b8,_0x119370,_0x10dccc,_0x202eb9,_0xf3e0b8,_0x513375){return new u(this['_model'],{'type':_0x3401b8,'subType':_0x119370,'id':_0x10dccc,'author':_0x202eb9,'creator':_0x202eb9,'attributes':_0xf3e0b8,'onAttributesChange':_0x513375,'onAccept':(..._0x2b9256)=>this['getSuggestionCallback'](_0x3401b8,_0x119370,'accept')(..._0x2b9256),'onDiscard':(..._0x5c8ed5)=>this['getSuggestionCallback'](_0x3401b8,_0x119370,'discard')(..._0x5c8ed5)});}['registerCustomCallback'](_0x486b6d,_0x48b2c9,_0x5a6268,_0x2ba452){const _0x2778ba=_0x486b6d+':'+_0x48b2c9+':'+_0x5a6268;this['_customCallbacks']['set'](_0x2778ba,_0x2ba452);}['getSuggestionCallback'](_0x571740,_0x57dbcb,_0x3aa383){const _0x25bc76=_0x571740+':'+_0x57dbcb+':'+_0x3aa383;return this['_customCallbacks']['get'](_0x25bc76)||this['_defaultCallbacks']['get'](_0x571740+':'+_0x3aa383);}['_registerDefaultCallbacks'](){const _0x307b1d=()=>!0x1,_0x291a68=_0x25f9ff=>{_0x25f9ff['sort']((_0x42f308,_0x38532c)=>_0x42f308['start']['isBefore'](_0x38532c['start'])?0x1:-0x1),this['_model']['change'](_0x545103=>{for(const _0x4c3aee of _0x25f9ff){let _0x41b125;_0x41b125=_0x4c3aee['end']['isAtEnd']&&_0x4c3aee['end']['parent']==_0x4c3aee['start']['nodeAfter']?_0x545103['createSelection'](_0x4c3aee['start']['nodeAfter'],'on'):_0x545103['createSelection'](_0x4c3aee),this['_model']['deleteContent'](_0x41b125,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2d3e92=(_0x293b63,_0xc057b)=>{_0xc057b&&this['_model']['change'](_0x35796c=>{const {commandName:_0x103a9f,commandParams:_0x23efb1=[]}=_0xc057b,_0x49d80f=_0x293b63['map'](_0x235f51=>(Vt(_0x235f51)&&(_0x235f51=this['_model']['createRange'](_0x235f51['end'])),_0x235f51))['filter'](_0x3d97fd=>'$graveyard'!==_0x3d97fd['root']['rootName']);if(_0x49d80f['length']<0x1)return;const _0x1fdb68=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2dcc53=>_0xf41792['fromRange'](_0x2dcc53));_0x35796c['setSelection'](_0x49d80f);for(const _0x4af3ee of this['_editor']['commands']['commands']())_0x4af3ee['refresh']();_0x23efb1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x103a9f,..._0x23efb1);const _0xeb7256=_0x1fdb68['filter'](_0x146324=>'$graveyard'!=_0x146324['root']['rootName']);_0xeb7256['length']>0x0&&_0x35796c['setSelection'](_0xeb7256);for(const _0xb6bb1f of _0x1fdb68)_0xb6bb1f['detach']();});},_0x20fab0=(_0x5e56fc,_0x106660)=>0x1==_0x5e56fc['length']&&0x1==_0x106660['length']&&_0x5e56fc[0x0]['end']['isEqual'](_0x106660[0x0]['start']),_0x70e3f3=(_0x3fcb02,_0x1941e7,_0x45c127,_0x141d08)=>Ht(_0x3fcb02,_0x1941e7,_0x45c127,_0x141d08,this['_model'])?[_0x3fcb02,_0x1941e7]:Ht(_0x1941e7,_0x3fcb02,_0x141d08,_0x45c127,this['_model'])?[_0x1941e7,_0x3fcb02]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x307b1d),this['_defaultCallbacks']['set']('insertion:discard',_0x291a68),this['_defaultCallbacks']['set']('insertion:join',_0x20fab0),this['_defaultCallbacks']['set']('insertion:chain',_0x70e3f3),this['_defaultCallbacks']['set']('deletion:accept',_0x291a68),this['_defaultCallbacks']['set']('deletion:discard',_0x307b1d),this['_defaultCallbacks']['set']('deletion:join',_0x20fab0),this['_defaultCallbacks']['set']('deletion:chain',_0x70e3f3),this['_defaultCallbacks']['set']('formatInline:accept',_0x2d3e92),this['_defaultCallbacks']['set']('formatInline:discard',_0x307b1d),this['_defaultCallbacks']['set']('formatInline:join',_0x20fab0),this['_defaultCallbacks']['set']('formatInline:chain',_0x307b1d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2d3e92),this['_defaultCallbacks']['set']('formatBlock:discard',_0x307b1d),this['_defaultCallbacks']['set']('formatBlock:join',_0x20fab0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x307b1d),this['_defaultCallbacks']['set']('attribute:accept',_0x307b1d),this['_defaultCallbacks']['set']('attribute:discard',(_0x5cee09,_0x2282f3)=>{if(!_0x2282f3)return;const _0x3247f4=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x26de4c=>{if(_0x2282f3['key']==m)for(const _0x55181e of _0x5cee09){const _0xe9a8cd=_0x55181e['start']['nodeAfter'],_0x248131=_0x2282f3['oldValue'];_0x26de4c['rename'](_0xe9a8cd,_0x248131);}else{if(_0x3247f4['_isBlockAttribute'](_0x2282f3['key'])){for(const _0x1cec6d of _0x5cee09)void 0x0!==_0x2282f3['oldValue']?_0x26de4c['setAttribute'](_0x2282f3['key'],_0x2282f3['oldValue'],_0x1cec6d['start']['nodeAfter']):_0x26de4c['removeAttribute'](_0x2282f3['key'],_0x1cec6d['start']['nodeAfter']);}else{for(const _0x230f07 of _0x5cee09)_0x2282f3['oldValue']?_0x26de4c['setAttribute'](_0x2282f3['key'],_0x2282f3['oldValue'],_0x230f07):_0x26de4c['removeAttribute'](_0x2282f3['key'],_0x230f07);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x20fab0);}}function Ot(_0x11d052,_0x41bf30,_0x56782b){for(const _0x484607 of _0x41bf30['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x484607['root']==_0x484607)return!0x1;if(!_0x56782b['containsItem'](_0x484607))return!0x1;if(_0x11d052['isObject'](_0x484607)||_0x11d052['isLimit'](_0x484607))return!0x0;}return!0x1;}function Vt(_0x168d80){return _0x168d80['end']['parent']==_0x168d80['start']['nodeAfter']&&_0x168d80['end']['isAtStart'];}function Ut(_0x53c06e,_0x9b8361,_0x266761,_0x473abf){const _0x970bd5=_0xc77ad6=>!_0xc77ad6['item']['is']('$textProxy')&&!_0x473abf['isObject'](_0xc77ad6['item']),_0x264eb7=_0x53c06e['start']['getLastMatchingPosition'](_0x970bd5),_0x7db956=_0x53c06e['end']['getLastMatchingPosition'](_0x970bd5,{'direction':'backward'});return(!_0x53c06e['start']['isEqual'](_0x264eb7)||!_0x53c06e['end']['isEqual'](_0x7db956))&&(_0x264eb7['isBefore'](_0x7db956)?_0x266761['updateMarker'](_0x9b8361,{'range':_0x266761['createRange'](_0x264eb7,_0x7db956)}):_0x266761['removeMarker'](_0x9b8361),!0x0);}function Gt(_0x318914){return _0x4eeb59(_0x318914);}function Ft(_0x360567){const _0x35196f=_0x360567['start']['nodeAfter'];return _0x35196f&&_0x35196f['is']('element');}function Pt(_0x3e7a14,_0x5a70e1){return null==_0x3e7a14['end']['nodeBefore']&&_0x3e7a14['end']['parent']==_0x3e7a14['start']['nodeAfter']?Lt(_0x3e7a14['start']['nodeAfter'],_0x5a70e1):_0x3e7a14;}function Lt(_0x26205f,_0x3ea47a){const _0x127490=_0x3ea47a['schema']['isObject'](_0x26205f)||_0x3ea47a['schema']['isSelectable'](_0x26205f);return _0x3ea47a['createRange'](_0x3ea47a['createPositionAt'](_0x26205f,'before'),_0x127490?_0x3ea47a['createPositionAfter'](_0x26205f):_0x3ea47a['createPositionAt'](_0x26205f,'end'));}function Ht(_0x108ede,_0x17b99b,_0x4a81ad,_0xcee527,_0x5a6476){if(_0x108ede['next'])return!0x1;if(!Jt(_0x108ede,_0x17b99b))return!0x1;if(_0x4a81ad['end']['isEqual'](_0xcee527['start']))return!0x0;if(_0x108ede['type']!=_0x17b99b['type'])return!0x1;if(!_0x4a81ad['end']['isTouching'](_0xcee527['start']))return!0x1;const _0x182911=_0x5a6476['createRange'](_0x4a81ad['end'],_0xcee527['start'])['getWalker']();for(const _0x23dce2 of _0x182911)if(['elementStart','elementEnd']['includes'](_0x23dce2['type'])&&_0x5a6476['schema']['isLimit'](_0x23dce2['item']))return!0x1;return!0x0;}function Jt(_0x1f6004,_0x187691){if(!_0x1f6004['_isDataLoaded']||!_0x187691['_isDataLoaded'])return!0x1;const _0x37dd38=new Set(Object['keys'](_0x1f6004['attributes'])),_0x1df42f=new Set(Object['keys'](_0x187691['attributes']));if(_0x37dd38['delete']('groupId'),_0x1df42f['delete']('groupId'),0x0==_0x37dd38['size']&&0x0==_0x1df42f['size'])return!0x0;if(_0x37dd38['size']!=_0x1df42f['size'])return!0x1;const _0x42bff6={..._0x1f6004['attributes']},_0x6233e0={..._0x187691['attributes']};return delete _0x42bff6['groupId'],delete _0x6233e0['groupId'],JSON['stringify'](_0x42bff6)==JSON['stringify'](_0x6233e0);}function qt(_0x298d44,_0x11d70a){const _0xfd8e54=zt(_0x298d44['attributes']),_0xb823e9=zt(_0x11d70a);if(!_0x298d44['_isDataLoaded'])return!0x1;for(const _0x15fb0e of Object['keys'](_0xb823e9))if(!_0x3bc98d(_0xfd8e54[_0x15fb0e],_0xb823e9[_0x15fb0e]))return!0x1;return!0x0;}function zt(_0x927090){const _0x3630f6=Object['assign']({},_0x927090);return delete _0x3630f6['skipNestingCheck'],delete _0x3630f6['tablePasteChainId'],_0x3630f6;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x9ee3f1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x336701,_0xd5be1,_0xce96bb,_0x4371b2){super(),this['model']=_0xd5be1,this['view']=_0xce96bb,this['commentThreadController']=_0x4371b2,this['_editor']=_0x336701,this['_acceptCommand']=_0x336701['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x336701['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x10ec2e,_0x4947)=>_0x10ec2e||_0x4947),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x207546=>_0x207546&&this['_editor']['model']['canEditAt'](_0xd5be1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x94dd73=>_0x94dd73&&this['_editor']['model']['canEditAt'](_0xd5be1['getRanges']())),this['_pendingAction']=null,_0xce96bb['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xce96bb,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xce96bb,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xce96bb,'change:isDirty',()=>{_0xce96bb['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 _0x2df1b1=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2df1b1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x228380{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x505eb7,_0x1bf22a,_0xf37ace,_0x45cc1e){super(_0x505eb7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3bb823(_0x505eb7,o(_0x505eb7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1bf22a['authoredAt']),this['bind']('authoredAt')['to'](_0x1bf22a),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',_0x1bf22a,'authoredAt',this,'descriptionParts',(_0x4db004,_0x3652b9,_0x5dce95)=>{const _0x38215a=_0x5dce95['map'](_0x1adc3d=>ls(_0x1adc3d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4db004-0x1,_0x1bf22a['author']['name'],_0x3652b9?_0x45cc1e['formatDateTime'](_0x3652b9):'',new DOMParser()['parseFromString'](_0x38215a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x400e93(),this['focusTracker']=new _0x261afb(),this['keystrokes']=new _0x3ca11b(),this['focusCycler']=new _0x2e8663({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x235120=>_0x235120['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1bf22a,this['_localUser']=_0xf37ace,this['_config']=_0x45cc1e,_0x45cc1e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x228aad(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2de8c6}=this['_config'];this['commentsListView']=new _0x2de8c6(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',_0xe94555=>_0xe94555+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4063af,_0xed56)=>_0x4063af||!!_0xed56);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x36ef01}=this['_config'],_0x189228=new _0x36ef01(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x35ead1=_0x189228['commentInputView'];return _0x189228['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x35ead1,'value',(_0x47a670,_0x282e95,_0x118933)=>!!_0x118933||_0x47a670&&!_0x282e95),_0x35ead1['on']('submit',(_0xcbdcd1,_0x119cbc)=>{this['fire']('addComment',_0x119cbc),_0x35ead1['editor']['setData']('');}),_0x35ead1['on']('cancel',()=>this['focus']()),_0x35ead1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x189228;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1cb335,_0x4d0892,_0xf51020,_0x234627){super(_0x1cb335,_0x4d0892,_0xf51020,_0x234627),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x49997a=>_0x49997a&&_0x49997a[0x0]?_0x49997a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xcfadd9,_0x2250c1)=>{let _0x1e8080='';for(const _0x351b6b of _0xcfadd9)_0x1e8080+='<p>'+ls(_0x351b6b['content'],_0x351b6b['color'])+'</p>';return _0x2250c1?_0x1e8080:_0x227449(_0x1e8080,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x234627['SuggestionView'](_0x1cb335,_0x4d0892,{'formatDateTime':_0x234627['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 _0x3901ea=this['bindTemplate'],_0x372db4=[this['suggestionView']];return this['commentsListView']&&_0x372db4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x372db4['push'](this['commentThreadInputView']),_0x372db4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3901ea['if']('isActive','ck-suggestion-wrapper--active'),_0x3901ea['to']('type',_0x5f4a01=>'ck-suggestion-'+_0x5f4a01),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':_0x3901ea['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x372db4};}['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 _0x228380{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x27da57,_0x2583d6,_0xef299c){super(_0x27da57),this['_model']=_0x2583d6,this['_config']=_0xef299c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2583d6),this['acceptButton']=this['_createButton'](o(_0x27da57,'Accept\x20suggestion'),_0x266fe0['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x27da57,'Discard\x20suggestion'),_0x266fe0['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1986f5(_0x27da57,_0x2583d6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x400e93([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x261afb(),this['keystrokes']=new _0x3ca11b(),this['focusCycler']=new _0x2e8663({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1f10ac=>_0x1f10ac['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3d1bee=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3d1bee['innerHTML']=this['description'],this['on']('change:description',(_0x4484a1,_0x21d68d,_0x3070dc)=>{_0x3d1bee['innerHTML']=_0x3070dc;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x53c0ec=this['bindTemplate'],_0xba8783=[{'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':_0x53c0ec['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x53c0ec['to']('authoredAt',_0x4c24bb=>this['_config']['formatDateTime'](_0x4c24bb))}]}]},{'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']&&_0xba8783['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':_0xba8783}]};}['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'](_0x5c844b,_0x1cba7a,_0x311e00,_0x22436b,_0x49c430){const _0x1df067=new _0xb1998d(this['locale']);return _0x1df067['set']({'label':_0x5c844b,'icon':_0x1cba7a,'tooltip':!0x0,'tooltipPosition':_0x49c430}),_0x1df067['extendTemplate']({'attributes':{'class':_0x311e00}}),_0x1df067['on']('execute',()=>{this['fire'](_0x22436b,this['_model']['id']);}),_0x1df067;}['_setupKeyboardNavigation'](){const _0xcdfb08=this['element'];this['keystrokes']['listenTo'](_0xcdfb08);for(const _0x31e5ef of this['focusables'])this['focusTracker']['add'](_0x31e5ef['element']),this['keystrokes']['listenTo'](_0x31e5ef['element']);this['keystrokes']['set']('enter',(_0x54ad3f,_0x410888)=>{_0xcdfb08===_0x54ad3f['target']&&(this['focusCycler']['focusFirst'](),_0x410888());}),this['keystrokes']['set']('esc',(_0x28e078,_0x2cf025)=>{_0xcdfb08!==_0x28e078['target']&&(this['focus'](),_0x2cf025());});}}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 _0x328234{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x25715a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2d0032){super(_0x2d0032),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x531671=this['editor']['config'];_0x531671['define']('trackChanges.SuggestionThreadView',re),_0x531671['define']('trackChanges.SuggestionView',ce),_0x531671['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x531671['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x39167e,_0x1bdf59){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3867bf,_0x1f719e]of this['_handleControllerBuffer']){const _0x76be79=this['_suggestionToController']['has'](_0x3867bf);_0x76be79||_0x1f719e?_0x76be79&&_0x1f719e&&this['_destroyController'](_0x3867bf):this['_initializeController'](_0x3867bf);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x39167e,_0x1bdf59);}['init'](){const _0x27d207=this['editor'],_0x353b81=_0x27d207['plugins']['get']('TrackChangesEditing'),_0x272966=_0x27d207['plugins']['get']('Annotations'),_0x5ed7fb=_0x27d207['plugins']['get']('EditorAnnotations'),_0x757b10=_0x27d207['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5ed7fb['addSourceCollector'](()=>{const _0x193236=[];for(const [_0x291ada,_0x1bb910]of Array['from'](this['_suggestionToController'])){const _0x2bf7d6=_0x291ada['getAllAdjacentSuggestions'](),_0x25a67c=[];for(const _0x1efa58 of _0x2bf7d6){if(!_0x1efa58['isInContent'])continue;if(_0x1efa58['isMultiRange']){_0x25a67c['push'](..._0x1efa58['getRanges']());continue;}const _0x39ec04=_0x1efa58['getFirstRange']();if(_0x25a67c['length']>0x0){const _0x1f2015=_0x25a67c[0x0]['getJoined'](_0x39ec04);if(_0x1f2015){_0x25a67c[0x0]=_0x1f2015;continue;}}_0x25a67c['push'](_0x39ec04);}_0x193236['push']([_0x1bb910['view'],_0x25a67c]);}return _0x193236;}),this['listenTo'](_0x353b81,'suggestionLoaded',(_0x3d6991,_0x5b3da1)=>{this['listenTo'](_0x5b3da1,'change:previous',(_0x5467ff,_0x3cff69,_0x3c3905,_0x9aa0be)=>{_0x5b3da1['isInContent']&&(null==_0x3c3905?(this['_updateController'](_0x9aa0be['head']),this['_handleSuggestionControllerDelayed'](_0x5b3da1,!0x1)):(this['_updateController'](_0x3c3905['head']),null==_0x9aa0be&&this['_handleSuggestionControllerDelayed'](_0x5b3da1,!0x0)));}),null!==_0x5b3da1['previous']?this['_updateController'](_0x5b3da1['head']):this['_handleSuggestionControllerDelayed'](_0x5b3da1,!0x1);}),this['listenTo'](_0x353b81,'suggestionUnloaded',(_0x19177c,_0xd6a89,_0x4cc4e6)=>{this['stopListening'](_0xd6a89,'change:previous'),this['_handleControllerBuffer']['delete'](_0xd6a89),this['_suggestionToController']['has'](_0xd6a89)&&this['_destroyController'](_0xd6a89),_0x4cc4e6&&this['_updateController'](_0x4cc4e6['head']);}),this['listenTo'](_0x353b81,'suggestionChanged',(_0x5560c5,_0xfb7c3d)=>{this['_updateController'](_0xfb7c3d);}),this['listenTo'](_0x272966,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x757b10,'addComment',(_0x55b77d,{threadId:_0x42d300,isFromAdapter:_0x5555ce})=>{if(_0x5555ce||!_0x353b81['hasSuggestion'](_0x42d300))return;const _0x593ad9=_0x353b81['getSuggestion'](_0x42d300);this['_suggestionToController']['get'](_0x593ad9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x4a0ca6=this['editor']['plugins']['get']('Annotations'),_0xc5a1a6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41b1ff=Array['from'](_0x4a0ca6['activeAnnotations'],_0x371205=>_0x371205['innerView'])['filter'](_0x38024d=>this['_viewToController']['has'](_0x38024d)),_0x30a3b7=[];for(const _0x10aa90 of _0x41b1ff){const _0x32cf62=this['_viewToController']['get'](_0x10aa90)['model']['getAllAdjacentSuggestions']();_0x30a3b7['push'](..._0x32cf62['reduce']((_0x207a84,_0x2b78c9)=>[..._0x207a84,..._0x2b78c9['getMarkerNames']()],[]));}_0xc5a1a6['activeMarkers']=_0x30a3b7;}['_addUIComponentsToFactory'](){const _0x5bb407=this['editor'],_0x47eca2=_0x5bb407['locale'],_0x29d963=o(_0x47eca2,'Track\x20changes'),_0x2154fb=new Wt([{'type':'switchbutton','model':new _0x1bd09f({'withText':!0x0,'isToggleable':!0x0,'label':_0x29d963,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1bd09f({'withText':!0x0,'label':o(_0x47eca2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd09f({'withText':!0x0,'label':o(_0x47eca2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd09f({'withText':!0x0,'label':o(_0x47eca2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1bd09f({'withText':!0x0,'label':o(_0x47eca2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xb65f47 of _0x2154fb)if(me(_0xb65f47)){const _0x2b9d4c=_0x5bb407['commands']['get'](_0xb65f47['model']['commandName']);_0xb65f47['model']['bind']('isOn','isEnabled')['to'](_0x2b9d4c,'value','isEnabled');}_0x5bb407['ui']['componentFactory']['add']('trackChanges',_0x41197c=>this['_createToolbarButton'](_0x41197c,_0x2154fb,_0x29d963)),_0x5bb407['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1d81f1=>this['_createMenuBarMenu'](_0x1d81f1,_0x2154fb,_0x29d963));}['_createToolbarButton'](_0x1d4e15,_0x547789,_0x2917f4){const _0xb64fbd=Qt(_0x1d4e15,_0x34e820),_0x34c220=this['editor']['commands']['get']('trackChanges');_0xb64fbd['buttonView']['set']({'tooltip':_0x2917f4,'label':_0x2917f4,'icon':he}),_0xb64fbd['buttonView']['bind']('isOn')['to'](_0x34c220,'value'),_0xb64fbd['buttonView']['on']('execute',()=>{_0x34c220['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0xb64fbd,_0x547789,{'role':'menu'});const _0x5174e3=[];for(const _0xb18e0f of _0x547789)me(_0xb18e0f)&&_0x5174e3['push'](this['editor']['commands']['get'](_0xb18e0f['model']['commandName']));const _0xfe5b5d=_0xb64fbd['buttonView'];return _0xfe5b5d['actionView']['unbind']('isEnabled'),_0xfe5b5d['arrowView']['unbind']('isEnabled'),_0xfe5b5d['actionView']['bind']('isEnabled')['to'](_0x34c220,'isEnabled'),_0xfe5b5d['arrowView']['bind']('isEnabled')['toMany'](_0x5174e3,'isEnabled',(..._0x14152d)=>_0x14152d['some'](_0x1edf03=>_0x1edf03)),_0xb64fbd['on']('execute',_0x4a88ff=>{this['editor']['execute'](_0x4a88ff['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xb64fbd;}['_createMenuBarMenu'](_0x511a95,_0x406834,_0x5d9d19){const _0x24b8fd=new Yt(_0x511a95),_0x10c8e3=this['editor']['commands']['get']('trackChanges');_0x24b8fd['buttonView']['set']({'label':_0x5d9d19,'icon':he});const _0x21a199=new Zt(_0x511a95);for(const _0x1d39af of _0x406834){if('separator'==_0x1d39af['type']){_0x21a199['items']['add'](new Xt(_0x511a95));continue;}const _0x2513b3=new te(_0x511a95,_0x24b8fd),_0x405077=new _0x45f15a(_0x511a95),_0x1fe695=_0x1d39af['model'];_0x405077['bind'](...Object['keys'](_0x1fe695))['to'](_0x1fe695),_0x405077['delegate']('execute')['to'](_0x24b8fd),_0x405077['on']('execute',()=>{this['editor']['execute'](_0x1fe695['commandName']),this['editor']['editing']['view']['focus']();}),_0x2513b3['children']['add'](_0x405077),_0x21a199['items']['add'](_0x2513b3);}return _0x24b8fd['bind']('isEnabled')['to'](_0x10c8e3,'isEnabled'),_0x24b8fd['panelView']['children']['add'](_0x21a199),_0x24b8fd;}['_initializeController'](_0x5c26bf){const _0x529d11=this['editor'],_0x257550=_0x529d11['config'],_0x191dce=_0x529d11['plugins']['get']('Annotations'),_0x42a9f8=_0x529d11['plugins']['get']('CommentsRepository'),_0x25d1e1=_0x529d11['plugins']['get']('EditorAnnotations'),_0x5b2801=_0x529d11['plugins']['get'](_0x25715a)['me'],_0x4561be=_0x257550['get']('trackChanges')['SuggestionThreadView'],_0x5de33f=_0x257550['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5f564f,CommentThreadInputView:_0x35aa3d}=_0x529d11['plugins']['get']('CommentsUI');let _0x4f949c,_0x4e88f7,_0x559230;this['_annotationViews']['has'](_0x5c26bf['id'])?(_0x4e88f7=this['_annotationViews']['get'](_0x5c26bf['id']),_0x4f949c=_0x4e88f7['mainView']):(_0x4f949c=new _0x4561be(_0x529d11['locale'],_0x5c26bf,_0x5b2801,{'disableComments':this['_disableComments'],'editorConfig':_0x257550['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x257550['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x257550['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x257550['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5a3cec(_0x257550['get']('locale')),'CommentView':_0x257550['get']('comments')['CommentView'],'CommentsListView':_0x5f564f,'CommentThreadInputView':_0x35aa3d,'SuggestionView':_0x5de33f}),_0x4f949c['suggestionView']['acceptButton']['on']('execute',()=>{_0x529d11['editing']['view']['focus']();}),_0x4f949c['suggestionView']['discardButton']['on']('execute',()=>{_0x529d11['editing']['view']['focus']();}),_0x4e88f7=_0x191dce['createAnnotationView'](this['editor']['locale'],_0x4f949c),_0x4e88f7['bind']('isDirty')['to'](_0x4f949c,'isDirty'),_0x4e88f7['bind']('length')['to'](_0x4f949c),_0x4e88f7['bind']('type')['to'](_0x4f949c,'type',_0x5db73d=>'suggestion-'+_0x5db73d),_0x4f949c['on']('escape',()=>{_0x559230['fire']('escape');}),this['_annotationViews']['set'](_0x5c26bf['id'],_0x4e88f7));const _0x2b8656=_0x42a9f8['createCommentThreadController'](_0x5c26bf['commentThread'],_0x4f949c),_0x21330b=new ae(_0x529d11,_0x5c26bf,_0x4f949c,_0x2b8656),_0x5be572=_0x5c26bf['getAllAdjacentSuggestions']()['filter'](_0x4b6f88=>_0x4b6f88['isInContent']);_0x4f949c['descriptionParts']=_0x529d11['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5be572),this['_suggestionToController']['set'](_0x5c26bf,_0x21330b),this['_viewToController']['set'](_0x4f949c,_0x21330b),_0x559230=_0x191dce['createAnnotation']({'view':_0x4e88f7,'target':()=>{const _0x173134=[],_0x48bb94=_0x5c26bf['getAllAdjacentSuggestions']()['filter'](_0x3f4fe8=>_0x3f4fe8['isInContent']);for(const _0x544362 of _0x48bb94)_0x173134['push'](..._0x544362['getMarkers']());return _0x54b84c(_0x529d11['editing'],_0x173134);},'type':()=>'suggestion-'+_0x21330b['view']['type']}),_0x42a9f8['_bindAnnotationToEditors'](_0x4f949c,_0x559230),_0x191dce['add'](_0x559230),_0x25d1e1['registerAnnotation'](_0x559230);}['_destroyController'](_0x54723a){const _0x4b53a5=this['editor']['plugins']['get']('CommentsRepository'),_0x594486=this['editor']['plugins']['get']('Annotations'),_0x5954d6=this['_suggestionToController']['get'](_0x54723a),_0x49c3f9=_0x5954d6['view'],_0x16320c=_0x594486['getByInnerView'](_0x49c3f9);_0x4b53a5['_unbindEditors'](_0x49c3f9),_0x16320c&&_0x594486['remove'](_0x16320c),this['_suggestionToController']['delete'](_0x54723a),this['_viewToController']['delete'](_0x49c3f9),_0x5954d6['destroy']();}['_updateController'](_0x5646d8){if(!_0x5646d8['isInContent']||!this['_suggestionToController']['has'](_0x5646d8))return;const _0x8f317f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d307d=this['_suggestionToController']['get'](_0x5646d8),_0x149716=_0x5646d8['getAllAdjacentSuggestions']();_0x2d307d['view']['descriptionParts']=_0x8f317f['descriptionFactory']['getDescriptions'](_0x149716);}['destroy'](){for(const _0x2b7883 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2b7883);for(const _0x4bd275 of this['_annotationViews']['values']())_0x4bd275['mainView']['destroy']();super['destroy']();}}function me(_0x2f45e1){return'model'in _0x2f45e1;}class k extends _0x328234{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x528458){this['editor']['plugins']['get'](p)['adapter']=_0x528458;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2399d4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2399d4);}['getSuggestions']({skipNotAttached:_0x5b5402=!0x1,toJSON:_0x334e25=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5b5402,'toJSON':_0x334e25});}['getSuggestion'](_0x4855c8){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4855c8);}}const T=['Pagination'];class P extends _0x328234{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5581a9=this['editor'];if(_0x5581a9['config']['define']('trackChangesData.editorCreator',_0x2f867b=>{const _0x89737a=_0x5581a9['model']['document']['getRootNames']()['reduce']((_0x414e74,_0x245e25)=>(_0x414e74[_0x245e25]='',_0x414e74),{});return _0x5581a9['constructor']['create'](_0x89737a,_0x2f867b);}),'function'!=typeof _0x5581a9['config']['get']('trackChangesData')['editorCreator'])throw new _0x2d253a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x164bbd){return N(this['editor'],!0x0,_0x164bbd);}['getDataWithDiscardedSuggestions'](_0x22e7e8){return N(this['editor'],!0x1,_0x22e7e8);}}class D extends _0x328234{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2379ba){super(_0x2379ba),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(_0x1ca7e8){return void 0x0!==_0x1ca7e8['getRootsAttributes'];}async function N(_0x523d7f,_0x181930,_0xc12b30){const _0x3ad39f=_0x323a73(_0x523d7f,T);_0x3ad39f['plugins']['push'](p,D),_0x3ad39f['rootsAttributes']=v(_0x523d7f)?_0x523d7f['getRootsAttributes']():void 0x0;const _0x3edaab=document['createDocumentFragment'](),_0x1a7f47=_0x523d7f['config']['get']('trackChangesData')['editorCreator'],_0x526029=await _0x1a7f47(_0x3ad39f,()=>function(_0x572fad){const _0x59f210=document['createElement']('div');return _0x572fad['appendChild'](_0x59f210),_0x59f210;}(_0x3edaab));!function(_0x38356a,_0x982e40){const _0x1eea53=_0x38356a['model']['document']['getRootNames']()['reduce']((_0x236039,_0x2549c7)=>(_0x236039[_0x2549c7]=_0x38356a['data']['get']({'rootName':_0x2549c7}),_0x236039),{}),_0x2dc7a0=_0x38356a['plugins']['get']('Users')['users']['map'](_0x43f397=>({'id':_0x43f397['id'],'name':_0x43f397['name']})),_0x683487=_0x38356a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4558cb=_0x38356a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56a925=_0x982e40['plugins']['get']('Users'),_0x1cf4f4=_0x982e40['plugins']['get']('TrackChangesEditing'),_0x1301da=_0x982e40['plugins']['get']('CommentsRepository');for(const _0x11f8fa of _0x1301da['getCommentThreads']())_0x11f8fa['remove']();for(const _0x44cdde of _0x2dc7a0)_0x56a925['getUser'](_0x44cdde['id'])||_0x56a925['addUser'](_0x44cdde);_0x56a925['me']||_0x56a925['useAnonymousUser']();for(const _0x41b39f of _0x4558cb)_0x1301da['addCommentThread'](_0x41b39f);for(const _0x1ea43d of _0x683487)_0x1cf4f4['addSuggestionData'](_0x1ea43d);_0x982e40['data']['set'](_0x1eea53);}(_0x523d7f,_0x526029),_0x526029['execute'](_0x181930?'acceptAllSuggestions':'discardAllSuggestions');const _0x1aa049=v(_0x526029)?_0x526029['getFullData'](_0xc12b30):_0x526029['data']['get'](_0xc12b30);return await _0x526029['destroy'](),_0x1aa049;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x8ac1b,PendingActions as _0x1ae156,icons as _0x3e8f18}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2eac2a,ObservableMixin as _0xeb514,uid as _0x38f7ff,insertToPriorityArray as _0x33f06a,priorities as _0x16f7c0,logWarning as _0x553dba,getEnvKeystrokeText as _0x246c78,FocusTracker as _0x38067e,KeystrokeHandler as _0x3e21e5,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x1342d8,View as _0x14a3c1,ViewCollection as _0x3861a5,FocusCycler as _0x269013,ViewModel as _0x42f8af,createDropdown as Qt,SplitButtonView as _0x5476ac,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x33698f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4f496e,hashObject as _0x45b703,surroundingMarkersDetector as _0x1ec403,FOCUS_ANNOTATION_KEYSTROKE as _0x20c44c,AriaDescriptionView as _0x4187e2,setupThreadKeyboardNavigation as _0x241dab,trimHtml as _0xbebc62,UserView as _0x424bea,LateFocusButtonView as _0x25d80f,getDateTimeFormatter as _0x574748,getAllMarkersDomElementsSorted as _0x231782,sanitizeEditorConfig as _0xc43cae}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5bafe3,LiveRange as _0x21472f,LivePosition as _0x5b5749}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2fff14,toWidget as _0x17c785}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x10e0a3,set as _0x359018,isEqual as _0x388927,unset as _0x63748f,omit as Tt}from'lodash-es';import{Delete as _0x17b9f8,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4c9edc,ShiftEnter as _0x11af4b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x2c77e9,_0x1ccb4a){super(_0x2c77e9),this['_enabledCommands']=_0x1ccb4a,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 _0x1035e3 of this['editor']['commands']['commands']())_0x1035e3['affectsData']&&!this['_enabledCommands']['has'](_0x1035e3)&&_0x1035e3['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x298e22 of this['editor']['commands']['commands']())_0x298e22['affectsData']&&!this['_enabledCommands']['has'](_0x298e22)&&_0x298e22['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x1ed9a7,_0x2166c1){super(_0x1ed9a7),this['_suggestions']=_0x2166c1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x20f508){const _0x1119bd=this['_suggestions']['get'](_0x20f508);if(!_0x1119bd)throw new _0x2eac2a('track-changes-accept-suggestion-not-found',this);const _0x192c24=_0x1119bd['getRanges']();this['editor']['model']['canEditAt'](_0x192c24)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1119bd);}}class R extends ts{['_suggestions'];constructor(_0x3ffc18,_0x38c4ec){super(_0x3ffc18),this['_suggestions']=_0x38c4ec,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2b0c0b){const _0x1f5d50=this['_suggestions']['get'](_0x2b0c0b);if(!_0x1f5d50)throw new _0x2eac2a('track-changes-discard-suggestion-not-found',this);const _0x4358c8=_0x1f5d50['getRanges']();this['editor']['model']['canEditAt'](_0x4358c8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1f5d50);}}function ls(_0x43e490,_0xac63fe){let _0x50d4fd='';return _0x50d4fd+=_0x43e490['split']('*')['map']((_0x3c5a41,_0x2c0524)=>_0x2c0524%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3c5a41)+'</span>':nn(_0x3c5a41))['join'](''),_0xac63fe&&(_0x50d4fd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xac63fe['value']+'\x22\x20title=\x22'+_0xac63fe['title']+'\x22></span>'),_0x50d4fd;}function nn(_0x44a1b5){const _0x42d322=document['createElement']('span');return _0x42d322['innerText']=_0x44a1b5,_0x42d322['innerHTML'];}function ss(_0x36a894){return _0x36a894['sort']((_0x5cb2a4,_0x5e0839)=>'deletion'==_0x5cb2a4['type']&&'deletion'!=_0x5e0839['type']?-0x1:'deletion'!=_0x5cb2a4['type']&&'deletion'==_0x5e0839['type']?0x1:0x0);}function to(_0x57b76f,_0x57667a){let _0x39d7a2,_0x492138=0x0;const _0x265c68=[],_0x892f56=_0x57667a['schema'];for(;_0x492138<_0x57b76f['length'];){const _0x61af8c=_0x57b76f[_0x492138],_0x2e3b0d=_0x57b76f[_0x492138+0x1];_0x39d7a2||(_0x39d7a2=_0x57667a['createPositionBefore'](_0x61af8c)),on(_0x57667a,_0x61af8c,_0x2e3b0d)||(_0x265c68['push'](_0x57667a['createRange'](_0x39d7a2,_0x892f56['isObject'](_0x61af8c)?_0x57667a['createPositionAfter'](_0x61af8c):_0x57667a['createPositionAt'](_0x61af8c,'end'))),_0x39d7a2=null),_0x492138++;}return _0x265c68;}function on(_0x37c929,_0x212d7f,_0x217b5e){if(!_0x217b5e)return!0x1;const _0x848075=_0x37c929['createPositionAfter'](_0x212d7f),_0x498728=_0x37c929['createPositionBefore'](_0x217b5e);return _0x848075['isTouching'](_0x498728);}function rs(_0x357ed8,_0x11a688,_0x2f3bf9){for(;_0x2f3bf9['length'];){const _0x321a5d=_0x2f3bf9['splice'](0x0,0x64);_0x357ed8['change'](()=>{for(const _0x95ba2d of _0x321a5d)_0x95ba2d['isInContent']&&_0x11a688['execute'](_0x95ba2d['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x1d31fb,_0x12962d,_0x59805d){super(_0x1d31fb),this['_command']=_0x12962d,this['_suggestions']=_0x59805d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xe018c=Array['from'](this['_suggestions']['values']())['some'](_0x56750e=>_0x56750e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xe018c;}['execute'](){const _0x13d1f0=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2a47ae of _0x13d1f0){const _0x4c875c=_0x2a47ae['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4c875c))return;}rs(this['editor']['model'],this['_command'],_0x13d1f0);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x18b211,_0xab97d8,_0x25716b){super(_0x18b211),this['_command']=_0xab97d8,this['_suggestions']=_0x25716b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x182cef=this['editor']['model']['document']['selection'],_0x29feb=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x583514,_0x27c444){const _0x57eabb=Array['from'](_0x583514['getRanges']()),_0x58df63=new Set();for(const _0x152947 of _0x27c444)if(_0x152947['isInContent']){for(const _0x52b944 of _0x57eabb)for(const _0x2ff9b2 of _0x152947['getRanges']())(_0x52b944['isIntersecting'](_0x2ff9b2)||_0x583514['isCollapsed']&&!_0x152947['isMultiRange']&&_0x152947['next']&&_0x2ff9b2['end']['isTouching'](_0x52b944['start']))&&_0x58df63['add'](_0x152947);}return _0x58df63;}(_0x182cef,_0x29feb),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1b5592=ss(Array['from'](this['_selectedSuggestions']));for(const _0x47888a of _0x1b5592){const _0x3a5470=_0x47888a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3a5470))return;}rs(this['editor']['model'],this['_command'],_0x1b5592);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xeb514(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x573bec,_0x4129df){super(),this['id']=_0x4129df['id'],this['type']=_0x4129df['type'],this['subType']=_0x4129df['subType']||null,this['author']=_0x4129df['author'],this['creator']=_0x4129df['creator']||_0x4129df['author'],this['isExternal']=Boolean(_0x4129df['attributes']&&_0x4129df['attributes']['@external']),this['data']=null,this['_model']=_0x573bec,this['_onAccept']=_0x4129df['onAccept'],this['_onDiscard']=_0x4129df['onDiscard'],this['_onAttributesChange']=_0x4129df['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4129df['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 _0x99711e=this;for(;_0x99711e['previous'];)_0x99711e=_0x99711e['previous'];return _0x99711e;}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'](_0x301892){this['_markerNames']['add'](_0x301892);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x272624=>this['_model']['markers']['get'](_0x272624))['filter'](_0x201d0d=>_0x201d0d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x46f2e4=>{for(const _0x13e764 of this['getMarkers']())_0x46f2e4['removeMarker'](_0x13e764);}),this['_markerNames']['clear']();}['removeMarker'](_0x313c33){this['_model']['change'](_0x45a95e=>{_0x45a95e['removeMarker'](_0x313c33);}),this['_markerNames']['delete'](_0x313c33);}['addRange'](_0x16cbe4){const _0x2fd061='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2fd061),this['_model']['change'](_0x32cc87=>{_0x32cc87['addMarker'](_0x2fd061,{'range':_0x16cbe4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x20cfd8){for(const _0x69d46 of this['getRanges']())if(_0x69d46['isIntersecting'](_0x20cfd8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5a2b5a=>_0x5a2b5a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x470b48,_0x343a43)=>[..._0x470b48,..._0x343a43['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1bcbd4=this['getRanges']();if(0x1!=_0x1bcbd4['length'])return null;const _0x5b238e=_0x1bcbd4[0x0],_0x2f1b6e=_0x5b238e['start']['nodeAfter'],_0x3325bb=_0x5b238e['end']['nodeBefore'];return _0x2f1b6e instanceof _0x5bafe3?_0x2f1b6e!=_0x3325bb?null:_0x2f1b6e: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 _0x4ab6d2=[];let _0x499bd8=this['head'];for(;_0x499bd8;)_0x4ab6d2['push'](_0x499bd8),_0x499bd8=_0x499bd8['next'];return _0x4ab6d2;}['setAttribute'](_0x2a83dd,_0x2f97d0){const _0x3df1d2=_0x10e0a3(this['attributes']);_0x359018(_0x3df1d2,_0x2a83dd,_0x2f97d0),_0x388927(_0x3df1d2,this['attributes'])||(this['attributes']=_0x3df1d2,this['_onAttributesChange'](_0x3df1d2));}['removeAttribute'](_0x1d9ffd){const _0x29b587=_0x10e0a3(this['attributes']);_0x63748f(_0x29b587,_0x1d9ffd),_0x388927(_0x29b587,this['attributes'])||(this['attributes']=_0x29b587,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 _0x38f7ff()['substr'](0x1,0x5);}}function o(_0x5a217b,_0x4cfe6f,_0x2302e9){const t=_0x5a217b['t'];switch(_0x4cfe6f){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',_0x2302e9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2302e9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2302e9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2302e9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2302e9);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',_0x2302e9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2302e9);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',_0x2302e9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2302e9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2302e9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2302e9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2302e9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2302e9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2302e9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2302e9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2302e9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2302e9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2302e9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2302e9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2302e9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2302e9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2302e9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2302e9);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'},_0x2302e9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2302e9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2302e9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2302e9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2302e9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2302e9);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'},_0x2302e9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2302e9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2302e9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2302e9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2302e9);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'},_0x2302e9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2302e9);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'},_0x2302e9);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'},_0x2302e9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2302e9);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'},_0x2302e9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2302e9);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'},_0x2302e9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2302e9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2302e9);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'},_0x2302e9);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'},_0x2302e9);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'},_0x2302e9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2302e9);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'},_0x2302e9);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'},_0x2302e9);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'},_0x2302e9);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4cfe6f;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x370611,_0x21c0a4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x370611,this['_locale']=_0x21c0a4;}['getDescriptions'](_0x463efa){const _0x5918c5=[],_0x31533d=new Set(),_0x5bdce0=new Set();for(let _0x51cfb3=0x0;_0x51cfb3<_0x463efa['length'];_0x51cfb3++){const _0x38e525=_0x463efa[_0x51cfb3];if(!_0x38e525['isInContent'])continue;const _0x314aec=this['_handleCustomCallbackDescription'](_0x38e525);if(_0x314aec){if(null!=_0x38e525['subType']){if(_0x31533d['has'](_0x38e525['subType']))continue;_0x31533d['add'](_0x38e525['subType']);}_0x5918c5['push'](_0x314aec);}else{if('attribute'!=_0x38e525['type'])'insertion'!=_0x38e525['type']&&'deletion'!=_0x38e525['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5918c5,_0x38e525,_0x463efa[_0x51cfb3+0x1]);else{const _0x2341a2=_0x38e525['data']['key'];if(_0x5bdce0['has'](_0x2341a2))continue;_0x5bdce0['add'](_0x38e525['data']['key']),_0x2341a2==m?this['_handleRenameSuggestionDescription'](_0x5918c5,_0x38e525):this['_handleAttributeSuggestionDescription'](_0x5918c5,_0x38e525);}}}return this['_resolveDescriptionItems'](_0x5918c5);}['registerDescriptionCallback'](_0x2dde58){this['_customCallbacks']['push'](_0x2dde58);}['registerElementLabel'](_0x4ac3b6,_0x4645be,_0x1e8ecb=_0x16f7c0['normal']){'function'==typeof _0x4ac3b6?_0x33f06a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4ac3b6,'label':_0x4645be,'priority':_0x1e8ecb}):this['_itemLabels']['set'](_0x4ac3b6,_0x4645be);}['registerAttributeLabel'](_0x2f55d5,_0x5c748f){this['_attributeLabels']['set'](_0x2f55d5,_0x5c748f);}['getItemLabel'](_0xb025b9,_0x9fe518=0x1){let _0x3888fb;for(const _0x5f3120 of this['_itemLabelsCallbacks'])if(_0x5f3120['matchingCallback'](_0xb025b9)){_0x3888fb=_0x5f3120['label'];break;}return _0x3888fb||(_0x3888fb=this['_itemLabels']['get'](_0xb025b9['name'])),_0x3888fb?_0x3888fb(_0x9fe518):0x1!==_0x9fe518?_0x9fe518+'\x20'+_0xb025b9['name']+'s':''+_0xb025b9['name'];}['_addDescriptionItems'](_0x2896c6,_0x2f6eb0){const _0x5bafb4=_0x2f6eb0['getFirstRange']()['getWalker'](),_0x53ed42='insertion'==_0x2f6eb0['type']?'add':'remove';for(const _0x7f2973 of _0x5bafb4){const _0x22780e=_0x7f2973['item'],_0x1c2a83=_0x2896c6[_0x2896c6['length']-0x1];if(_0x22780e['is']('$textProxy'))_0x1c2a83&&_0x1c2a83['type']['indexOf']('Container')>-0x1&&_0x2896c6['pop'](),_0x1c2a83&&'text'==_0x1c2a83['type']?_0x1c2a83[_0x53ed42]+=_0x22780e['data']:_0x2896c6['push']({'type':'text','add':'add'==_0x53ed42?_0x22780e['data']:'','remove':'remove'==_0x53ed42?_0x22780e['data']:''});else{if(this['_schema']['isObject'](_0x22780e)){const _0x4dac21=_0x22780e;if(_0x1c2a83&&_0x1c2a83['type']['indexOf']('Container')>-0x1&&_0x2896c6['pop'](),'elementEnd'==_0x7f2973['type'])continue;_0x1c2a83&&_0x1c2a83['type']==_0x53ed42+'Object'&&_0x1c2a83['element']['name']==_0x4dac21['name']?_0x1c2a83['quantity']++:_0x2896c6['push']({'type':_0x53ed42+'Object','element':_0x4dac21,'quantity':0x1}),_0x5bafb4['skip'](_0x1f2823=>!('elementEnd'==_0x1f2823['type']&&_0x1f2823['item']==_0x22780e));}else{if(this['_schema']['checkChild'](_0x22780e,'$text')||_0x22780e['is']('element','softBreak')){const _0x44b782=_0x22780e;if('add'==_0x53ed42&&'elementStart'==_0x7f2973['type']||'remove'==_0x53ed42&&'elementEnd'==_0x7f2973['type'])continue;if(_0x1c2a83&&-0x1==_0x1c2a83['type']['indexOf']('Container')){'text'==_0x1c2a83['type']&&(_0x1c2a83[_0x53ed42]+='\x0a');continue;}let _0x352762;if(_0x352762='add'==_0x53ed42?_0x44b782['nextSibling']&&!this['_schema']['isObject'](_0x44b782['nextSibling'])?_0x44b782['nextSibling']:null:_0x44b782['previousSibling']&&!this['_schema']['isObject'](_0x44b782['previousSibling'])?_0x44b782['previousSibling']:null,_0x44b782['isEmpty']||_0x352762&&_0x352762['isEmpty']){const _0x371f96=_0x352762&&_0x352762['isEmpty']?_0x352762:_0x44b782;_0x1c2a83&&_0x1c2a83['type']==_0x53ed42+'EmptyContainer'&&_0x1c2a83['element']['name']==_0x371f96['name']?_0x1c2a83['quantity']++:_0x2896c6['push']({'type':_0x53ed42+'EmptyContainer','element':_0x371f96,'quantity':0x1});}else _0x2896c6['push']({'type':_0x53ed42+'Container','element':_0x44b782});}}}}}['_resolveDescriptionItems'](_0x2378c9){const _0x2a321e=this['_locale'],_0x127972=[],_0x6baba5=[],_0x88b9a6=[];for(const _0x195983 of _0x2378c9)switch(_0x195983['type']){case'text':if(_0x195983['add']=_0x195983['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x195983['remove']=_0x195983['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x195983['add']&&''!=_0x195983['remove']){_0x127972['push']({'type':'replace','content':o(_0x2a321e,'REPLACE_TEXT',['\x22'+_0x195983['remove']+'\x22','\x22'+_0x195983['add']+'\x22'])});continue;}if(null!=_0x195983['add']['match'](/^ +$/)){_0x127972['push']({'type':'insertion','content':o(_0x2a321e,'*Insert:*\x20%0',o(_0x2a321e,'ELEMENT_SPACE',_0x195983['add']['length']))});continue;}if(null!=_0x195983['remove']['match'](/^ +$/)){_0x127972['push']({'type':'deletion','content':o(_0x2a321e,'*Remove:*\x20%0',o(_0x2a321e,'ELEMENT_SPACE',_0x195983['remove']['length']))});continue;}if(''!=_0x195983['add']){_0x127972['push']({'type':'insertion','content':o(_0x2a321e,'*Insert:*\x20%0','\x22'+_0x195983['add']+'\x22')});continue;}_0x127972['push']({'type':'deletion','content':o(_0x2a321e,'*Remove:*\x20%0','\x22'+_0x195983['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x127972['push']({'type':'insertion','content':o(_0x2a321e,'*Insert:*\x20%0',this['getItemLabel'](_0x195983['element'],_0x195983['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x127972['push']({'type':'deletion','content':o(_0x2a321e,'*Remove:*\x20%0',this['getItemLabel'](_0x195983['element'],_0x195983['quantity']))});continue;case'addContainer':_0x127972['push']({'type':'insertion','content':o(_0x2a321e,'*Split:*\x20%0',this['getItemLabel'](_0x195983['element'],_0x195983['quantity']))});continue;case'removeContainer':_0x127972['push']({'type':'deletion','content':o(_0x2a321e,'*Merge:*\x20%0',this['getItemLabel'](_0x195983['element'],_0x195983['quantity']))});continue;case'addFormat':_0x6baba5['push'](_0x195983['key']);continue;case'removeFormat':_0x88b9a6['push'](_0x195983['key']);continue;default:_0x127972['push'](_0x195983);}if(_0x6baba5['length']){const _0x181e81=_0x6baba5['map'](_0x2d61ec=>this['_attributeLabels']['has'](_0x2d61ec)?this['_attributeLabels']['get'](_0x2d61ec):_0x2d61ec)['join'](',\x20');_0x127972['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x181e81)});}if(_0x88b9a6['length']){const _0x4a012f=_0x88b9a6['map'](_0x2c30e9=>this['_attributeLabels']['has'](_0x2c30e9)?this['_attributeLabels']['get'](_0x2c30e9):_0x2c30e9)['join'](',\x20');_0x127972['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a012f)});}return _0x127972;}['_handleCustomCallbackDescription'](_0x3f8145){for(const _0x2233a0 of this['_customCallbacks']){const _0xf88be0=_0x2233a0(_0x3f8145);if(_0xf88be0&&'type'in _0xf88be0)return _0xf88be0;}}['_handleAttributeSuggestionDescription'](_0x5d699e,_0x474c74){const _0x1c6b83=_0x474c74['data'],_0xac0284=void 0x0===_0x1c6b83['newValue']?'removeFormat':'addFormat';_0x5d699e['push']({'type':_0xac0284,'key':_0x1c6b83['key']});}['_handleRenameSuggestionDescription'](_0x460614,_0x440ea5){_0x460614['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x440ea5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5bc0aa,_0xbb7630,_0x17b0e7){if(this['_addDescriptionItems'](_0x5bc0aa,_0xbb7630),_0x17b0e7&&_0x17b0e7['getFirstRange']()&&!_0xbb7630['getFirstRange']()['end']['isEqual'](_0x17b0e7['getFirstRange']()['start'])){const _0x1033ef=_0x5bc0aa[_0x5bc0aa['length']-0x1],_0x37625c='insertion'==_0xbb7630['type']?'add':'remove';_0x1033ef&&'text'==_0x1033ef['type']&&(_0x1033ef[_0x37625c]+='\x0a');}}}class V extends _0x8ac1b{['afterInit'](){const _0x1f75e3=this['editor'],_0x51f585=_0x1f75e3['plugins']['get']('TrackChangesEditing');_0x1f75e3['commands']['get']('showAIAssistant')&&_0x51f585['enableCommand']('showAIAssistant');}}class U extends _0x8ac1b{['afterInit'](){const _0x396a64=this['editor'],_0x3e940c=_0x396a64['locale'];if(!_0x396a64['plugins']['has']('AlignmentEditing'))return;const _0x3ce54a=_0x396a64['plugins']['get']('TrackChangesEditing');_0x3ce54a['enableDefaultAttributesIntegration']('alignment'),_0x3ce54a['registerBlockAttribute']('alignment'),_0x3ce54a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3e940c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49c032=this['editor'],_0x47795f=_0x49c032['locale'];_0x49c032['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x379022=>{if('formatBlock'!=_0x379022['type'])return;const {data:_0x554dd1}=_0x379022;if(_0x554dd1&&'alignment'==_0x554dd1['commandName']){const _0x3c4c52=_0x554dd1['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x47795f,'*Format:*\x20%0',function(_0x5ce28e){switch(_0x5ce28e){case'left':return o(_0x47795f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x47795f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x47795f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x47795f,'FORMAT_JUSTIFY_TEXT');}}(_0x3c4c52))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x8ac1b{['afterInit'](){const _0x15dd49=this['editor'],_0x5e6d26=_0x15dd49['plugins']['get']('TrackChangesEditing'),_0x2c33cf=_0x15dd49['locale'];for(const _0x953598 of ti){if(!_0x15dd49['plugins']['has'](_0x953598))continue;const _0x1a86bd=_0x953598['slice'](0x0,-0x7)['toLowerCase'](),_0x31a9da='FORMAT_'+_0x1a86bd['toUpperCase']();_0x5e6d26['enableDefaultAttributesIntegration'](_0x1a86bd),_0x5e6d26['registerInlineAttribute'](_0x1a86bd),_0x5e6d26['descriptionFactory']['registerAttributeLabel'](_0x1a86bd,o(_0x2c33cf,_0x31a9da));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x491c01=this['editor'],_0xc56ef=_0x491c01['locale'],_0x289b53=_0x491c01['plugins']['get']('TrackChangesEditing');function _0x35e938(_0x4d3654,_0xfbe8c5){_0x289b53['descriptionFactory']['registerDescriptionCallback'](_0x56dc77=>{if('formatInline'!=_0x56dc77['type'])return;const {data:_0x7da4e9}=_0x56dc77;return _0x7da4e9&&_0x7da4e9['commandName']===_0x4d3654?_0x7da4e9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc56ef,'*Format:*\x20%0',_0xfbe8c5)}:{'type':'format','content':o(_0xc56ef,'*Remove\x20format:*\x20%0',_0xfbe8c5)}:void 0x0;});}_0x35e938('bold',o(_0xc56ef,'FORMAT_BOLD')),_0x35e938('italic',o(_0xc56ef,'FORMAT_ITALIC')),_0x35e938('underline',o(_0xc56ef,'FORMAT_UNDERLINE')),_0x35e938('code',o(_0xc56ef,'FORMAT_CODE')),_0x35e938('strikethrough',o(_0xc56ef,'FORMAT_STRIKETHROUGH')),_0x35e938('subscript',o(_0xc56ef,'FORMAT_SUBSCRIPT')),_0x35e938('superscript',o(_0xc56ef,'FORMAT_SUPERSCRIPT'));}}class F extends _0x8ac1b{['afterInit'](){const _0x48e729=this['editor'],_0x8124e9=_0x48e729['locale'];if(!_0x48e729['plugins']['has']('BlockQuoteEditing'))return;const _0x674c24=_0x48e729['plugins']['get']('TrackChangesEditing'),_0x8a8804=this['editor']['commands']['get']('blockQuote');_0x674c24['enableCommand']('blockQuote',(_0x1ede70,_0x4abaaf={})=>{const _0x55245b=this['editor']['model']['document']['selection'],_0x2c30cd=_0x4abaaf&&void 0x0!==_0x4abaaf['forceValue']?_0x4abaaf['forceValue']:!_0x8a8804['value'];let _0x44b89c=[];if(_0x2c30cd){const _0x112ccb=Array['from'](_0x55245b['getSelectedBlocks']())['filter'](_0x419ecd=>oo(_0x419ecd)||function(_0x5cbaf8,_0xfec3be){const _0x5291ce=_0xfec3be['checkChild'](_0x5cbaf8['parent'],'blockQuote'),_0x162434=_0xfec3be['checkChild'](['$root','blockQuote'],_0x5cbaf8);return _0x5291ce&&_0x162434;}(_0x419ecd,this['editor']['model']['schema']));_0x44b89c=to(_0x112ccb,_0x48e729['model']);}else{const _0x3c4f66=Array['from'](_0x55245b['getSelectedBlocks']())['filter'](_0x27b663=>oo(_0x27b663));_0x44b89c=to(_0x3c4f66,_0x48e729['model']);}_0x48e729['model']['change'](()=>{for(const _0x195a54 of _0x44b89c)_0x674c24['markBlockFormat'](_0x195a54,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c30cd}]});});}),_0x674c24['descriptionFactory']['registerDescriptionCallback'](_0x3cde52=>{const {data:_0x2dc9c4}=_0x3cde52;if(_0x2dc9c4&&'blockQuote'==_0x2dc9c4['commandName']){const _0x24fc2=o(_0x8124e9,'ELEMENT_BLOCK_QUOTE');return _0x2dc9c4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x8124e9,'*Set\x20format:*\x20%0',_0x24fc2)}:{'type':'format','content':o(_0x8124e9,'*Remove\x20format:*\x20%0',_0x24fc2)};}});}}function oo(_0x4dc3c7){return'blockQuote'==_0x4dc3c7['parent']['name'];}class L extends _0x8ac1b{['afterInit'](){const _0x290b19=this['editor'];_0x290b19['plugins']['has']('CaseChange')&&(_0x290b19['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x290b19['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x290b19['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x8ac1b{['afterInit'](){const _0x1ca73c=this['editor'];_0x1ca73c['commands']['get']('ckbox')&&_0x1ca73c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x8ac1b{['afterInit'](){const _0x2375e9=this['editor'];if(!_0x2375e9['plugins']['has']('CodeBlock'))return;const _0x3a96fd=_0x2375e9['plugins']['get']('TrackChangesEditing'),_0x129824=_0x2375e9['locale'],_0x4be329=_0x2375e9['config']['get']('codeBlock')['languages'],_0x5af4fd=_0x2375e9['commands']['get']('codeBlock');_0x3a96fd['enableCommand']('indentCodeBlock'),_0x3a96fd['enableCommand']('outdentCodeBlock'),_0x3a96fd['enableCommand']('codeBlock',(_0xf63fc4,_0x1ed591={})=>{const _0x5f0515=_0x2375e9['model'],_0x228bc9=_0x2375e9['model']['document']['selection'],_0xbf207=_0x1ed591&&void 0x0!==_0x1ed591['forceValue']?_0x1ed591['forceValue']:!_0x5af4fd['value'];let _0x4aca1e;_0x1ed591['language']||(_0x1ed591['language']=_0x4be329[0x0]['language']),_0x4aca1e=_0xbf207?Array['from'](_0x228bc9['getSelectedBlocks']())['filter'](_0x88681b=>eo(_0x88681b)||function(_0x1e3b57,_0x502f95){if(_0x1e3b57['is']('rootElement')||_0x502f95['isLimit'](_0x1e3b57))return!0x1;return _0x502f95['checkChild'](_0x1e3b57['parent'],'codeBlock');}(_0x88681b,_0x5f0515['schema'])):Array['from'](_0x228bc9['getSelectedBlocks']())['filter'](_0x58c301=>eo(_0x58c301));const _0x15b4e1=to(_0x4aca1e,_0x5f0515);_0x5f0515['change'](()=>{for(const _0x553dd6 of _0x15b4e1)_0x3a96fd['markBlockFormat'](_0x553dd6,{'commandName':'codeBlock','commandParams':[{..._0x1ed591,'forceValue':_0xbf207}],'formatGroupId':'blockName'});});}),(_0x3a96fd['descriptionFactory']['registerElementLabel']('codeBlock',_0x563a6d=>o(_0x129824,'ELEMENT_CODE_BLOCK',_0x563a6d)),_0x3a96fd['descriptionFactory']['registerDescriptionCallback'](_0x32f8e3=>{if('formatBlock'!=_0x32f8e3['type'])return;const _0x4730b3=_0x129824['t'],{data:_0x4cf4b8}=_0x32f8e3;if(!_0x4cf4b8||'codeBlock'!=_0x4cf4b8['commandName'])return;const _0x56e7ee=_0x4cf4b8['commandParams'][0x0]['language'],_0x5e48c3=_0x4730b3(_0x4be329['find'](_0x5e7b43=>_0x5e7b43['language']===_0x56e7ee)['label'])['toLowerCase']();return _0x4cf4b8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x129824,'*Set\x20format:*\x20%0',o(_0x129824,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e48c3+')')}:{'type':'format','content':o(_0x129824,'*Remove\x20format:*\x20%0',o(_0x129824,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x36a388){return'codeBlock'==_0x36a388['name'];}class q extends _0x8ac1b{['afterInit'](){const _0x30cab1=this['editor'];if(!_0x30cab1['plugins']['has']('CommentsEditing'))return;_0x30cab1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xec9f1e,_0x34523c,_0x500b1c){const _0x1854e3=[];for(const _0xaf91e9 of _0x34523c['getItems']())_0xaf91e9['hasAttribute'](_0xec9f1e)&&_0x1854e3['push'](_0x500b1c['createRangeOn'](_0xaf91e9));return _0x1854e3;}function _e(_0x34ee56,_0x3fccc2,{showActiveMarker:_0x8c1fcd=!0x0}={}){const _0x431fd0=_0x34ee56['plugins']['get']('TrackChangesEditing');return(_0x28db9e,_0x25308a,_0x1bcf29)=>{if(!_0x1bcf29['consumable']['test'](_0x25308a['markerRange'],_0x28db9e['name']))return;const _0x387f00=_0x25308a['markerRange']['getWalker'](),_0x2cd93c=_0x25308a['markerRange']['start'],_0x9d0116=_0x34ee56['model']['schema'];let _0x27de4e=null,_0x20d887=null,_0x64b014=!0x1,_0x1e43a6=!0x1;for(const _0x2fb33b of _0x387f00){const _0x1727c0=_0x2fb33b['item'];_0x64b014=_0x64b014||_0x9d0116['isContent'](_0x1727c0);const _0x44ae08=_0x1bcf29['mapper']['toViewElement'](_0x1727c0);if(_0x44ae08&&_0x44ae08['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fb33b['type']&&(_0x9d0116['isBlock'](_0x1727c0)&&!_0x9d0116['isLimit'](_0x1727c0)&&(_0x1727c0['nextSibling']||_0x2cd93c['isAtEnd']?_0x27de4e&&_0x27de4e['parent']==_0x1727c0||(_0x27de4e=_0x1727c0,_0x501676(_0x2fb33b['previousPosition']),_0x1e43a6=!0x0):_0x20d887=_0x20d887||_0x2fb33b['previousPosition']));}function _0x501676(_0x1fa95f){const {authorId:_0x47de5b}=_0x431fd0['_splitMarkerName'](_0x25308a['markerName']),_0x21dd39=_0x1bcf29['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3fccc2,'data-author-id':_0x47de5b}),_0x4d9cad=_0x1bcf29['mapper']['toViewPosition'](_0x1fa95f);_0x8c1fcd&&_0x431fd0['activeMarkers']['includes'](_0x25308a['markerName'])&&_0x1bcf29['writer']['addClass']('ck-suggestion-marker--active',_0x21dd39),_0x1bcf29['writer']['insert'](_0x4d9cad,_0x21dd39),_0x1bcf29['mapper']['bindElementToMarker'](_0x21dd39,_0x25308a['markerName']);}_0x64b014||_0x1e43a6||!_0x20d887||_0x501676(_0x20d887);};}class z extends _0x8ac1b{static get['requires'](){return[_0x17b9f8];}['init'](){const _0x36d04e=this['editor'],_0x469b3e=_0x36d04e['plugins']['get']('TrackChangesEditing');_0x469b3e['enableCommand']('delete');const _0x6aba39=_0x36d04e['commands']['get']('deleteForward');_0x469b3e['enableCommand']('deleteForward',(_0x532e6a,_0x54e070={})=>{const _0x88c7d4=_0x36d04e['model']['createSelection'](_0x36d04e['model']['document']['selection']);_0x88c7d4['isCollapsed']&&_0x36d04e['model']['modifySelection'](_0x88c7d4,{'direction':'forward','unit':_0x54e070['unit']});const _0x11735f=_0x88c7d4['getFirstRange'](),_0x34351c=_0x21472f['fromRange'](_0x11735f);let _0xb04b25;_0x532e6a(_0x54e070),_0xb04b25='$graveyard'==_0x34351c['root']['rootName']?_0x36d04e['model']['createRange'](_0x11735f['start']):_0x36d04e['model']['createRange'](_0x34351c['start'],_0x34351c['end']),_0x34351c['detach'](),_0x36d04e['model']['enqueueChange'](_0x6aba39['buffer']['batch'],_0x2cc7e5=>{_0x6aba39['buffer']['lock'](),_0x2cc7e5['setSelection'](_0x2cc7e5['createRange'](_0xb04b25['end'])),_0x6aba39['buffer']['unlock']();});}),_0x36d04e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x36d04e,'merge'),{'priority':'high'}),_0x36d04e['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1244d9,_0x282d86,_0x3c6006)=>{_0x3c6006['options']['showSuggestionHighlights']&&_e(_0x36d04e,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1244d9,_0x282d86,_0x3c6006);},{'priority':'high'}),_0x36d04e['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xe965ac,_0x206040,_0x271d34)=>{const _0x24d4c5=_0x271d34['mapper']['markerNameToElements'](_0x206040['markerName']);if(_0x24d4c5){for(const _0x5818da of _0x24d4c5)_0x5818da['is']('uiElement')&&(_0x271d34['mapper']['unbindElementFromMarkerName'](_0x5818da,_0x206040['markerName']),_0x271d34['writer']['remove'](_0x5818da));}},{'priority':'high'});}}class K extends _0x8ac1b{['afterInit'](){const _0x276d17=this['editor'];if(!_0x276d17['plugins']['has']('ListEditing'))return;const _0x9816b1=_0x276d17['locale'],_0xe27a0a=_0x276d17['plugins']['get']('TrackChangesEditing'),_0x5a6e6c=_0x276d17['plugins']['has']('TodoListEditing'),_0x28f580=!!_0x276d17['config']['get']('list.multiBlock');function _0x52beb5(_0x187441){return{'type':'format','content':''+o(_0x9816b1,'*Set\x20format:*\x20%0',_0x187441)};}function _0x25bdcb(_0x20ae8b){return{'type':'format','content':''+o(_0x9816b1,'*Remove\x20format:*\x20%0',_0x20ae8b)};}_0xe27a0a['enableDefaultAttributesIntegration']('numberedList'),_0xe27a0a['enableDefaultAttributesIntegration']('bulletedList'),_0xe27a0a['enableDefaultAttributesIntegration']('customNumberedList'),_0xe27a0a['enableDefaultAttributesIntegration']('customBulletedList'),_0xe27a0a['enableDefaultAttributesIntegration']('indentList'),_0xe27a0a['enableDefaultAttributesIntegration']('outdentList'),_0xe27a0a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xe27a0a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xe27a0a['registerBlockAttribute']('listItemId'),_0xe27a0a['registerBlockAttribute']('listType'),_0xe27a0a['registerBlockAttribute']('listIndent'),_0x28f580&&(_0xe27a0a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xe27a0a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5a6e6c&&(_0xe27a0a['enableDefaultAttributesIntegration']('todoList'),_0xe27a0a['enableDefaultAttributesIntegration']('checkTodoList'),_0xe27a0a['registerBlockAttribute']('todoListChecked'),_0xe27a0a['descriptionFactory']['registerDescriptionCallback'](_0x8ed265=>{const {data:_0x410ccd}=_0x8ed265;if(_0x410ccd&&'todoListChecked'==_0x410ccd['key'])return{'type':'format','content':_0x410ccd['newValue']?o(_0x9816b1,'*Check\x20item*'):o(_0x9816b1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x30b26c=>{if(_0x30b26c['batch']['isUndo'])return!0x1;let _0x3ea190=!0x1;const _0x1bf202=_0xe27a0a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x401d21=>'todoListChecked'===_0xe27a0a['_getAttributeKey'](_0x401d21));for(const _0x417521 of _0x1bf202){'todo'!=_0x417521['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xe27a0a['_findSuggestions'](_0x417521['getFirstRange'](),'attribute')['find'](_0x4e7e8f=>'listType'===_0xe27a0a['_getAttributeKey'](_0x4e7e8f['suggestion']))||(_0x30b26c['removeMarker'](_0x417521['getFirstMarker']()),_0x3ea190=!0x0));}return _0x3ea190;})),_0xe27a0a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x9816b1,'FORMAT_INDENT'));const _0x1de53a={'type':'format','content':''};_0xe27a0a['descriptionFactory']['registerDescriptionCallback'](_0x2fe863=>{const {data:_0x94e58c}=_0x2fe863;if(!_0x94e58c||'listType'!=_0x94e58c['key'])return;let _0x476d0a=_0x2fe863['head'];for(;_0x476d0a;){if(_0x476d0a['data']&&(('listStyle'==_0x476d0a['data']['key']||'listMarkerStyle'==_0x476d0a['data']['key'])&&(_0x476d0a['data']['newValue']&&'default'!=_0x476d0a['data']['newValue']||'default'!=_0x476d0a['data']['oldValue']&&!_0x94e58c['newValue'])||!_0x28f580&&_0x476d0a['data']['key']==m))return _0x1de53a;_0x476d0a=_0x476d0a['next'];}if(null==_0x94e58c['newValue'])switch(_0x94e58c['oldValue']){case'bulleted':return _0x25bdcb(o(_0x9816b1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25bdcb(o(_0x9816b1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25bdcb(o(_0x9816b1,'ELEMENT_TODO_LIST'));}switch(_0x94e58c['newValue']){case'bulleted':return _0x52beb5(o(_0x9816b1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x52beb5(o(_0x9816b1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x52beb5(o(_0x9816b1,'ELEMENT_TODO_LIST'));}}),_0xe27a0a['descriptionFactory']['registerDescriptionCallback'](_0x31d4a9=>{const {data:_0xb7907}=_0x31d4a9;if(_0xb7907&&'listIndent'==_0xb7907['key'])return null==_0xb7907['newValue']||null==_0xb7907['oldValue']&&0x0==_0xb7907['newValue']?_0x1de53a:void 0x0;}),_0xe27a0a['descriptionFactory']['registerDescriptionCallback'](_0xb55cb5=>{if('attribute'!=_0xb55cb5['type'])return;const {data:_0x5bb9c5}=_0xb55cb5;if(!_0x5bb9c5||'listItemId'!=_0x5bb9c5['key'])return;const _0x3d818e=Ee(_0xb55cb5);return'newValue'==_0x3d818e?{'type':'format','content':o(_0x9816b1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d818e?{'type':'format','content':o(_0x9816b1,'*Split:*\x20list\x20item')}:_0x1de53a;}),_0x276d17['model']['document']['registerPostFixer'](_0x21a38a=>this['listItemIdFixer'](_0x21a38a)),_0x276d17['model']['document']['registerPostFixer'](_0x1d9de2=>this['noTrackChangesFixer'](_0x1d9de2)),_0x276d17['model']['document']['on']('change:data',(_0x3c8df5,_0x5f4663)=>{if(_0x5f4663['isUndo']||!_0x5f4663['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x34d098){if(_0x34d098['batch']['isUndo']||!_0x34d098['batch']['isLocal'])return!0x1;let _0x796b77=!0x1;const _0x5e19df=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x336a12=>_0x336a12['data']&&'listItemId'==_0x336a12['data']['key'])['filter'](_0x20d64d=>_0x20d64d['data']['newValue']&&_0x20d64d['data']['oldValue']);for(const _0x45e0e2 of _0x5e19df)Ee(_0x45e0e2)||(_0x34d098['removeMarker'](_0x45e0e2['getFirstMarker']()),_0x796b77=!0x0);return _0x796b77;}['noTrackChangesFixer'](_0x564f27){if(_0x564f27['batch']['isUndo']||!_0x564f27['batch']['isLocal'])return!0x1;const _0x4069de=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4069de['trackChangesCommand']['value'])return!0x1;let _0x1d52f1=!0x1;const _0x130520=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1cdfb4=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x30208a=>'attribute'==_0x30208a['type'])['filter'](_0x2a9efe=>_0x130520['includes'](_0x2a9efe['attributeKey']));if(0x0==_0x1cdfb4['length'])return _0x1d52f1;for(const _0x21bab9 of _0x1cdfb4){const _0x252ad5=_0x4069de['_findSuggestions'](_0x21bab9['range'],'attribute')['filter'](_0x7d054=>!_0x7d054['meta']['isNextTo'])['map'](_0x46c59e=>_0x46c59e['suggestion'])['filter'](_0x361e84=>{const _0x4169fa=_0x4069de['_getAttributeKey'](_0x361e84);return _0x130520['includes'](_0x4169fa);});if(_0x252ad5['length']){for(const _0x348503 of _0x252ad5)_0x564f27['removeMarker'](_0x348503['getFirstMarker']());_0x1d52f1=!0x0;}}return _0x1d52f1;}['assureChains'](){const _0x5d5dfb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57d8a3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x565d0e;const _0x4e60a6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x336c72=>{if(_0x336c72['data']['oldRange']||!_0x336c72['data']['newRange'])return null;if(!_0x336c72['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x36d9f7}=_0x5d5dfb['_splitMarkerName'](_0x336c72['name']);if(!_0x5d5dfb['hasSuggestion'](_0x36d9f7))return null;const _0x479e48=_0x5d5dfb['getSuggestion'](_0x36d9f7);return _0x57d8a3['includes'](_0x479e48['data']['key']);})['map'](_0x20c666=>{const {id:_0x3d25e7}=_0x5d5dfb['_splitMarkerName'](_0x20c666['name']),_0x48382e=_0x5d5dfb['getSuggestion'](_0x3d25e7);return _0x565d0e=_0x48382e['attributes']['groupId'],_0x48382e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4e60a6['size'])return;const _0x34a0aa=_0x5d5dfb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3cedbb=>'attribute'==_0x3cedbb['type']&&_0x3cedbb['data']&&_0x57d8a3['includes'](_0x3cedbb['data']['key'])&&_0x3cedbb['attributes']['groupId']!=_0x565d0e)['map'](_0x5b4f54=>({'listItem':_0x5b4f54['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5b4f54['attributes']['groupId']})),_0x2b013f=new Set();for(const {groupId:_0xef8c38,listItem:_0x3241de}of _0x34a0aa)_0x4e60a6['has'](_0x3241de)&&_0x2b013f['add'](_0xef8c38);for(const _0xf81239 of _0x5d5dfb['getSuggestions']())_0x2b013f['has'](_0xf81239['attributes']['groupId'])&&_0xf81239['setAttribute']('groupId',_0x565d0e);}['_supportLegacySuggestions'](){const _0x189a03=this['editor'],_0x16b519=_0x189a03['locale'],_0x188bff=_0x189a03['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x188bff['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x22bd35,_0x3c7e16){const _0x37bb02=[];for(let _0x4586bd of _0x22bd35)_0x4586bd['start']['nodeAfter']===_0x4586bd['end']['parent']&&(_0x4586bd=_0x189a03['model']['createRange'](_0x189a03['model']['createPositionAt'](_0x4586bd['start']['nodeAfter'],0x0))),_0x37bb02['push'](_0x4586bd);_0x189a03['model']['change'](_0x31e8ab=>{const _0x38b5dd=_0x189a03['model']['document']['selection'],_0x370c92=Array['from'](_0x38b5dd['getRanges']())['map'](_0x44c3b9=>_0x21472f['fromRange'](_0x44c3b9));_0x31e8ab['setSelection'](_0x37bb02),_0x189a03['commands']['get'](_0x3c7e16['commandName'])['refresh'](),_0x3c7e16['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x189a03['execute'](_0x3c7e16['commandName'],..._0x3c7e16['commandParams']),_0x31e8ab['setSelection'](_0x370c92);for(const _0x1273d0 of _0x370c92)_0x1273d0['detach']();});}),_0x188bff['descriptionFactory']['registerElementLabel'](function(_0x3a2eb8){const _0x39d814=!_0x189a03['model']['schema']['isObject'](_0x3a2eb8),_0x134502=_0x3a2eb8['previousSibling'],_0x1c992e=_0x3a2eb8['nextSibling'],_0x5a4ca4=_0x3a2eb8['getAttribute']('listItemId'),_0x11163a=!_0x134502||_0x134502['getAttribute']('listItemId')!==_0x5a4ca4,_0x5e786c=!_0x1c992e||_0x1c992e['getAttribute']('listItemId')!==_0x5a4ca4;return _0x39d814&&Boolean(_0x5a4ca4)&&_0x11163a&&_0x5e786c;},_0x9e9661=>o(_0x16b519,'ELEMENT_LIST_ITEM',_0x9e9661));}['_registerLegacyDescription'](){const _0x3e5d6f=this['editor'],_0x2ee36c=_0x3e5d6f['locale'];function _0x2974d7(_0x4770cc){const _0x55483f=_0x3e5d6f['commands']['get']('bulletedList')['value'],_0x397eb0=_0x3e5d6f['commands']['get']('numberedList')['value'];return'numberedList'===_0x4770cc?_0x55483f:_0x397eb0;}_0x3e5d6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xe3a313){if('formatBlock'!=_0xe3a313['type'])return;const {data:_0x41aace}=_0xe3a313;if(!_0x41aace)return;let _0x1ccee9,_0x26647e,_0x54ea7d,_0x20c60f;switch(_0x41aace['commandName']){case'bulletedList':_0x54ea7d=_0x41aace['commandParams'][0x0]['forceValue'],_0x20c60f=_0x2974d7(_0x41aace['commandName']),_0x1ccee9=_0x54ea7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20c60f&&_0x3e5d6f['config']['get']('list.multiBlock')||(_0x1ccee9='*Change\x20to:*\x20%0'),_0x26647e={'type':'format','content':o(_0x2ee36c,_0x1ccee9,o(_0x2ee36c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x54ea7d=_0x41aace['commandParams'][0x0]['forceValue'],_0x20c60f=_0x2974d7(_0x41aace['commandName']),_0x1ccee9=_0x54ea7d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20c60f&&_0x3e5d6f['config']['get']('list.multiBlock')||(_0x1ccee9='*Change\x20to:*\x20%0'),_0x26647e={'type':'format','content':o(_0x2ee36c,_0x1ccee9,o(_0x2ee36c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1ccee9='*Indent:*\x20%0',_0x26647e={'type':'format','content':o(_0x2ee36c,_0x1ccee9,o(_0x2ee36c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1ccee9=function(_0x19f11d){const _0x4a01c2=_0x19f11d['getFirstRange']();let _0x48c71d=_0x4a01c2['start']['nodeAfter'];for(;_0x48c71d&&_0x4a01c2['containsItem'](_0x48c71d);){if(_0x48c71d['getAttribute']('listIndent')>0x0)return!0x1;_0x48c71d=_0x48c71d['nextSibling'];}return!0x0;}(_0xe3a313)?o(_0x2ee36c,'*Format:*\x20remove\x20from\x20%0',o(_0x2ee36c,function(_0x23fb8b){return'ELEMENT_'+_0x23fb8b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xe3a313))):o(_0x2ee36c,'*Outdent:*\x20%0',o(_0x2ee36c,'ELEMENT_LIST_ITEM')),_0x26647e={'type':'format','content':_0x1ccee9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x41aace['multipleBlocks']&&(_0x1ccee9='*Merge:*\x20%0',_0x26647e={'type':'deletion','content':o(_0x2ee36c,_0x1ccee9,o(_0x2ee36c,'ELEMENT_LIST_ITEM'))});}return _0x26647e;});}}function Ee(_0x4c0797){let _0x8b2205=_0x4c0797['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x8b2205;){const _0x23d394=_0x8b2205['getAttribute']('listItemId');if(!_0x23d394)return!0x1;if(_0x23d394==_0x4c0797['data']['newValue'])return'newValue';if(_0x23d394==_0x4c0797['data']['oldValue'])return'oldValue';_0x8b2205=_0x8b2205['previousSibling'];}return!0x1;}class pe extends _0x8ac1b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x81ee61=this['editor']['config']['get']('list.properties'),_0x1c4e11=this['editor']['plugins']['get']('TrackChangesEditing');_0x81ee61['styles']&&(_0x1c4e11['enableDefaultAttributesIntegration']('listStyle'),_0x1c4e11['registerBlockAttribute']('listStyle')),_0x81ee61['reversed']&&(_0x1c4e11['enableDefaultAttributesIntegration']('listReversed'),_0x1c4e11['registerBlockAttribute']('listReversed')),_0x81ee61['startIndex']&&(_0x1c4e11['enableDefaultAttributesIntegration']('listStart'),_0x1c4e11['registerBlockAttribute']('listStart'));const _0x1ba825={'type':'format','content':''};_0x1c4e11['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x26359a=this['editor']['locale'];_0x1c4e11['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x26359a,'FORMAT_LIST_REVERSED')),_0x1c4e11['descriptionFactory']['registerDescriptionCallback'](_0x374376=>{const {data:_0x236dc8}=_0x374376;if(_0x236dc8&&'listReversed'==_0x236dc8['key'])return null==_0x236dc8['newValue']||0x0==_0x236dc8['newValue']&&null==_0x236dc8['oldValue']?_0x1ba825:void 0x0;}),_0x1c4e11['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x26359a,'FORMAT_LIST_START')),_0x1c4e11['descriptionFactory']['registerDescriptionCallback'](_0x5132f8=>{const {data:_0x585717}=_0x5132f8;if(_0x585717&&'listStart'==_0x585717['key'])return null==_0x585717['newValue']||0x1==_0x585717['newValue']&&null==_0x585717['oldValue']?_0x1ba825:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x43a47b=>{if(_0x43a47b['batch']['isUndo'])return!0x1;let _0x5dd54e=!0x1;const _0xdcc146=_0x1c4e11['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36b5ca=>{const _0x564553=_0x1c4e11['_getAttributeKey'](_0x36b5ca);return'listStart'==_0x564553||'listReversed'==_0x564553;});for(const _0x3332e0 of _0xdcc146){const _0x282611=_0x3332e0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x282611||'customNumbered'==_0x282611)continue;_0x1c4e11['_findSuggestions'](_0x3332e0['getFirstRange'](),'attribute')['find'](_0x1f3505=>'listType'==_0x1c4e11['_getAttributeKey'](_0x1f3505['suggestion']))||(_0x43a47b['removeMarker'](_0x3332e0['getFirstMarker']()),_0x5dd54e=!0x0);}return _0x5dd54e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2454d4){const _0x5258be=this['editor']['locale'],{data:_0x3f5578}=_0x2454d4,_0x5512e4={'type':'format','content':''};if(!_0x3f5578||'listStyle'!=_0x3f5578['key'])return;if(!_0x3f5578['oldValue'])return'default'==_0x3f5578['newValue']?_0x5512e4:{'type':'format','content':''+o(_0x5258be,'*Set\x20format:*\x20%0',o(_0x5258be,this['_getTranslationKeyForListStyle'](_0x3f5578['newValue'])))};if(!_0x3f5578['newValue']){if('default'==_0x3f5578['oldValue'])return _0x5512e4;let _0x19987e=_0x2454d4['head'];for(;_0x19987e;){if(_0x19987e['data']&&'listType'==_0x19987e['data']['key']&&_0x19987e['data']['newValue'])return _0x5512e4;_0x19987e=_0x19987e['next'];}return{'type':'format','content':''+o(_0x5258be,'*Remove\x20format:*\x20%0',o(_0x5258be,this['_getTranslationKeyForListStyle'](_0x3f5578['oldValue'])))};}if('default'!=_0x3f5578['newValue'])return{'type':'format','content':''+o(_0x5258be,'*Set\x20format:*\x20%0',o(_0x5258be,this['_getTranslationKeyForListStyle'](_0x3f5578['newValue'])))};let _0x81de1=_0x2454d4['head'];for(;_0x81de1;){if(_0x81de1['data']&&'listType'==_0x81de1['data']['key']&&_0x81de1['data']['newValue']&&_0x81de1['data']['oldValue'])return _0x5512e4;_0x81de1=_0x81de1['next'];}return{'type':'format','content':o(_0x5258be,'*Set\x20format:*\x20%0',o(_0x5258be,'ELEMENT_'+_0x2454d4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x31563b=this['editor'],_0x313087=_0x31563b['locale'];_0x31563b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59a2f5=>{if('formatBlock'!=_0x59a2f5['type'])return;const {data:_0x278e80}=_0x59a2f5;if(!_0x278e80)return;let _0x2f796f,_0x515303;switch(_0x278e80['commandName']){case'listStyle':_0x2f796f='*Change\x20to:*\x20%0',_0x515303={'type':'format','content':o(_0x313087,_0x2f796f,o(_0x313087,this['_getTranslationKeyForListStyle'](_0x278e80['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2f796f=_0x278e80['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x515303={'type':'format','content':o(_0x313087,_0x2f796f)};break;case'listStart':_0x2f796f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x515303={'type':'format','content':o(_0x313087,_0x2f796f,_0x278e80['commandParams'][0x0]['startIndex'])};}return _0x515303;});}['_getTranslationKeyForListStyle'](_0x3e77d6){return'ELEMENT_'+function(_0x286e11){if(ye['includes'](_0x286e11))return'bulleted';if(Se['includes'](_0x286e11))return'numbered';return null;}(_0x3e77d6)['toUpperCase']()+'_LIST_'+_0x3e77d6['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x8ac1b{static get['requires'](){return[_0x4c9edc];}['init'](){const _0x2d00d9=this['editor'],_0x51b5b9=_0x2d00d9['plugins']['get']('TrackChangesEditing'),_0x46e034=_0x2d00d9['commands']['get']('enter');_0x51b5b9['enableCommand']('enter',()=>{_0x2d00d9['model']['change'](_0x2070f7=>{const _0x5a32b5=_0x2d00d9['model']['document']['selection'],_0x10e5c1=_0x5a32b5['getFirstPosition'](),_0x330dcd=_0x21472f['fromRange'](_0x5a32b5['getFirstRange']());if(_0x46e034['enterBlock'](_0x2070f7)){const _0x1715f3=_0x2d00d9['model']['createPositionAt'](_0x10e5c1['parent']['nextSibling'],0x0),_0x51b689=_0x2070f7['createRange'](_0x10e5c1,_0x1715f3);_0x51b5b9['markInsertion'](_0x51b689);}else _0x2070f7['setSelection'](_0x2070f7['createRange'](_0x330dcd['end']));_0x330dcd['detach'](),_0x46e034['fire']('afterExecute',{'writer':_0x2070f7});});}),_0x2d00d9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2d00d9,'split'),{'priority':'high'}),_0x2d00d9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3fd547,_0x42a6f8,_0x5a003d)=>{const _0x19cc5b=_0x5a003d['mapper']['markerNameToElements'](_0x42a6f8['markerName']);if(_0x19cc5b){for(const _0x4edc39 of _0x19cc5b)_0x4edc39['hasClass']('ck-suggestion-marker-split')&&(_0x5a003d['mapper']['unbindElementFromMarkerName'](_0x4edc39,_0x42a6f8['markerName']),_0x5a003d['writer']['remove'](_0x4edc39));}},{'priority':'high'}),_0x2d00d9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x531a90,_0x1c2ad2,_0x42166f)=>{_0x42166f['options']['showSuggestionHighlights']&&_e(_0x2d00d9,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x531a90,_0x1c2ad2,_0x42166f);},{'priority':'high'});}}class X extends _0x8ac1b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x34aea9=this['editor']['plugins']['get']('TrackChangesEditing');_0x34aea9['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x34aea9['enableCommand']('findNext'),_0x34aea9['enableCommand']('findPrevious'),_0x34aea9['enableCommand']('replace'),_0x34aea9['enableCommand']('replaceAll');}['handleFindCommand'](_0x2c6b80,_0x406c89,_0x97e403={}){const _0x50eb16=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2c6b80(_0x2dd484=>{let _0x4bf805=('string'==typeof _0x406c89?_0x50eb16['findByTextCallback'](_0x406c89,_0x97e403):_0x406c89)(_0x2dd484);Array['isArray'](_0x4bf805)&&(_0x4bf805={'results':_0x4bf805,'searchText':'string'==typeof _0x406c89?_0x406c89:''});const _0x4434a9=_0x4bf805['results']['filter'](_0x25ad3f=>!0x1===this['_isInDeletionRange'](_0x25ad3f,_0x2dd484['item']));return{..._0x4bf805,'results':_0x4434a9};},_0x97e403);}['_isInDeletionRange'](_0x45f081,_0x4e3e75){const _0x94d634=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e3e75,_0x45f081['start']),this['editor']['model']['createPositionAt'](_0x4e3e75,_0x45f081['end']));for(const _0x20da55 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x94d634['getIntersection'](_0x20da55['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 _0x8ac1b{['afterInit'](){const _0x436197=this['editor']['locale'],_0x45d56c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x7af579,commandName:_0xed5096}of ro)this['editor']['plugins']['has'](_0x7af579)&&(_0x45d56c['enableDefaultAttributesIntegration'](_0xed5096),_0x45d56c['registerInlineAttribute'](_0xed5096));_0x45d56c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x436197,'FORMAT_FONT_SIZE')),_0x45d56c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x436197,'FORMAT_FONT_FAMILY')),_0x45d56c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x436197,'FORMAT_FONT_COLOR')),_0x45d56c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x436197,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x247411=this['editor'],_0x5679e7=_0x247411['locale'];_0x247411['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18f0c5=>{const _0x554903=_0x5679e7['t'];if('formatInline'!=_0x18f0c5['type'])return;const {data:_0x3ee6b8}=_0x18f0c5;if(null!=_0x3ee6b8){if('fontSize'==_0x3ee6b8['commandName']){const _0x24434f=_0x3ee6b8['commandParams'][0x0]['value'];if(_0x24434f){const _0x5f2905=_0x554903(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x118f30=>_0x118f30['model']==_0x24434f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5679e7,'*Set\x20font\x20size:*\x20%0',_0x5f2905)};}return{'type':'format','content':o(_0x5679e7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3ee6b8['commandName']){const _0x2f6d09=_0x3ee6b8['commandParams'][0x0]['value'];return _0x2f6d09?{'type':'format','content':o(_0x5679e7,'*Set\x20font\x20family:*\x20%0',_0x2f6d09)}:{'type':'format','content':o(_0x5679e7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3ee6b8['commandName']){const _0xa1ee85=_0x3ee6b8['commandParams'][0x0]['value'];if(_0xa1ee85){const _0x406a77=_0x1342d8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1014c9=>_0x1014c9['model']==_0xa1ee85);let _0x49795d=_0xa1ee85,_0x537439='';return _0x406a77&&(_0x49795d=_0x406a77['label'],_0x537439=_0x554903(_0x49795d)['toLowerCase']()),{'type':'format','content':o(_0x5679e7,'*Set\x20font\x20color:*\x20%0',_0x537439)['trim'](),'color':{'value':_0xa1ee85,'title':_0x537439||_0x49795d}};}return{'type':'format','content':o(_0x5679e7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3ee6b8['commandName']){const _0x2c7542=_0x3ee6b8['commandParams'][0x0]['value'];if(_0x2c7542){const _0xffcab1=_0x1342d8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4ab9fd=>_0x4ab9fd['model']==_0x2c7542);let _0x5444b8=_0x2c7542,_0x3ea696='';return _0xffcab1&&(_0x5444b8=_0xffcab1['label'],_0x3ea696=_0x554903(_0x5444b8)['toLowerCase']()),{'type':'format','content':o(_0x5679e7,'*Set\x20font\x20background\x20color:*\x20%0',_0x3ea696)['trim'](),'color':{'value':_0x2c7542,'title':_0x3ea696||_0x5444b8}};}return{'type':'format','content':o(_0x5679e7,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x8ac1b{['afterInit'](){const _0x595997=this['editor'],_0x481094=_0x595997['plugins']['get']('TrackChangesEditing'),_0x74f770=_0x595997['commands']['get']('copyFormat'),_0x22b02e=_0x595997['commands']['get']('pasteFormat');_0x74f770&&_0x22b02e&&(_0x481094['enableDefaultAttributesIntegration']('pasteFormat'),_0x481094['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x126a70=this['editor'],_0x30d9b2=_0x126a70['locale'];_0x126a70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f4cd3=>{if('formatBlock'!=_0x1f4cd3['type']&&'formatInline'!=_0x1f4cd3['type'])return;const {data:_0x31323d}=_0x1f4cd3;if(_0x31323d&&'pasteFormat'===_0x31323d['commandName']){const _0x5b20ea=[],_0x4822e1=_0x31323d['commandParams'][0x0];for(const [_0x537aae,_0x1b9d6e]of Object['entries'](_0x4822e1))_0x5b20ea['push'](so(_0x126a70,_0x537aae,_0x1b9d6e));return _0x5b20ea['length']?{'type':'format','content':o(_0x30d9b2,'*Set\x20format\x20to:*\x20%0',_0x5b20ea['join'](',\x20'))}:{'type':'format','content':o(_0x30d9b2,'*Remove\x20all\x20formatting*')};}});}}function so(_0xcad380,_0x5d9f59,_0xaaab7f){const _0x2a2923=_0xcad380['locale']['t'],_0x1f3dcb=_0x5d9f59['split'](/(?=[A-Z])/)['join']('\x20'),_0xe2578c=_0x2a2923(_0x1f3dcb['charAt'](0x0)['toUpperCase']()+_0x1f3dcb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xaaab7f)return _0xe2578c;if('fontColor'===_0x5d9f59||'fontBackgroundColor'===_0x5d9f59){const _0x550787=_0x1342d8(_0xcad380['config']['get']('fontColor.colors'))['find'](_0x48d0f8=>_0x48d0f8['model']==_0xaaab7f);return _0xe2578c+'\x20('+(_0x550787?_0x2a2923(_0x550787['label'])['toLowerCase']():_0xaaab7f)+')';}if('fontSize'===_0x5d9f59&&isNaN(parseFloat(_0xaaab7f))){const _0x406670=_0xcad380['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xcad380['config']['get']('fontSize.options'))['find'](_0x177671=>_0x177671['model']==_0xaaab7f);return _0xe2578c+'\x20('+(_0x406670?_0x2a2923(_0x406670['title'])['toLowerCase']():_0xaaab7f)+')';}return _0xe2578c+'\x20('+_0xaaab7f+')';}class tt extends _0x8ac1b{['_headingOptions'];['afterInit'](){const _0x29b338=this['editor'];if(!_0x29b338['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x29b338['config']['get']('heading.options');const _0x93335a=_0x29b338['locale'],_0xe5a8be=_0x29b338['plugins']['get']('TrackChangesEditing');_0xe5a8be['enableDefaultAttributesIntegration']('heading');for(const _0x5f1b75 of this['_headingOptions'])'paragraph'!=_0x5f1b75['model']&&_0xe5a8be['descriptionFactory']['registerElementLabel'](_0x5f1b75['model'],_0x1aeff2=>{const _0x215937=this['_getHeadingLevel'](_0x5f1b75['model']);return null!==_0x215937?_0x549e09(_0x1aeff2,_0x215937):_0x4d4229(_0x1aeff2,_0x5f1b75['title']);});function _0x549e09(_0x529b50,_0x142c81){return o(_0x93335a,'ELEMENT_HEADING',[_0x529b50,_0x142c81]);}function _0x4d4229(_0x28f39a,_0x5d3826){return o(_0x93335a,'ELEMENT_HEADING_CUSTOM',[_0x28f39a,_0x5d3826]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9f5092=this['editor'],_0x2e22cc=_0x9f5092['locale'];function _0x44fed8(_0x1ac9db,_0x31cd15){return o(_0x2e22cc,'ELEMENT_HEADING_CUSTOM',[_0x1ac9db,_0x31cd15]);}_0x9f5092['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5801e4=>{if('formatBlock'!=_0x5801e4['type'])return;const {data:_0x3da64e}=_0x5801e4;if(_0x3da64e&&'heading'==_0x3da64e['commandName']){const _0x74ec6b=_0x3da64e['commandParams'][0x0]['value'],_0x6f6be=this['_getHeadingLevel'](_0x74ec6b);if(null!==_0x6f6be)return{'type':'format','content':o(_0x2e22cc,'*Change\x20to:*\x20%0',(_0x30dfde=0x1,_0x1f40f0=_0x6f6be,o(_0x2e22cc,'ELEMENT_HEADING',[_0x30dfde,_0x1f40f0])))};const _0x4fcb5d=this['_headingOptions']['find'](_0x1763d5=>_0x1763d5['model']===_0x74ec6b)['title'];return{'type':'format','content':o(_0x2e22cc,'*Change\x20to:*\x20%0',_0x44fed8(0x1,_0x4fcb5d))};}var _0x30dfde,_0x1f40f0;});}['_getHeadingLevel'](_0x4226e6){const _0x4d5c44=_0x4226e6['match'](/^heading(\d+)/);if(_0x4d5c44)return _0x4d5c44[0x1];const _0x28a275=this['_headingOptions']?.['find'](_0x3485c6=>_0x3485c6['model']==_0x4226e6);if(_0x28a275&&_0x28a275['view']){const _0x4b1722=_0x28a275['view'],_0xf1fd1=(_0x4b1722['name']??_0x4b1722)['match'](/^h(\d+)/);if(_0xf1fd1)return _0xf1fd1[0x1];}return null;}}class et extends _0x8ac1b{['afterInit'](){const _0x5a10cb=this['editor'];if(!_0x5a10cb['plugins']['has']('HighlightEditing'))return;const _0x4473e2=_0x5a10cb['plugins']['get']('TrackChangesEditing'),_0x2f4bd0=_0x5a10cb['locale'];_0x4473e2['enableDefaultAttributesIntegration']('highlight'),_0x4473e2['registerInlineAttribute']('highlight'),_0x4473e2['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2f4bd0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12051e=this['editor'],_0x5d8dca=_0x12051e['locale'];_0x12051e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x81a373=>{if('formatInline'!=_0x81a373['type'])return;const {data:_0x108bef}=_0x81a373;if(_0x108bef&&'highlight'==_0x108bef['commandName']){const _0x486f72=_0x5d8dca['t'],_0x1db019=_0x108bef['commandParams'][0x0]['value'];if(_0x1db019){const _0x18730c=_0x12051e['config']['get']('highlight.options')['find'](_0x288efd=>_0x288efd['model']==_0x1db019),_0x513667=_0x486f72(_0x18730c['title'])['toLowerCase']();return{'type':'format','content':o(_0x5d8dca,'*Set\x20highlight:*\x20%0',_0x513667),'color':{'value':_0x18730c['color'],'title':_0x18730c['title']}};}return{'type':'format','content':o(_0x5d8dca,'*Remove\x20highlight*',o(_0x5d8dca,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x8ac1b{['afterInit'](){const _0x289876=this['editor'];if(!_0x289876['plugins']['has']('HorizontalLineEditing'))return;_0x289876['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a50fd=_0x289876['plugins']['get']('TrackChangesEditing'),_0x415d40=_0x289876['locale'];_0x4a50fd['descriptionFactory']['registerElementLabel']('horizontalLine',_0x32709e=>o(_0x415d40,'ELEMENT_HORIZONTAL_LINE',_0x32709e)),_0x289876['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x26eb0d,{writer:_0x599861,options:_0x4ab5ae})=>{if(!_0x4ab5ae['showSuggestionHighlights'])return null;const _0x57f320=_0x599861['createContainerElement']('div'),_0x460c06=_0x599861['createEmptyElement']('hr');return _0x599861['addClass']('ck-horizontal-line',_0x57f320),_0x599861['insert'](_0x599861['createPositionAt'](_0x57f320,0x0),_0x460c06),_0x57f320;},'converterPriority':'high'});}}class st extends _0x8ac1b{['afterInit'](){const _0x126b2e=this['editor'];if(!_0x126b2e['plugins']['has']('HtmlEmbed'))return;const _0x37b567=_0x126b2e['plugins']['get']('TrackChangesEditing'),_0xae5df2=_0x126b2e['locale'];_0x37b567['descriptionFactory']['registerElementLabel']('rawHtml',_0x79a18=>o(_0xae5df2,'ELEMENT_HTML_EMBED',_0x79a18)),_0x37b567['enableDefaultAttributesIntegration']('htmlEmbed'),_0x37b567['registerBlockAttribute']('value'),_0x37b567['descriptionFactory']['registerDescriptionCallback'](_0x245a14=>{if('attribute'!=_0x245a14['type'])return;const {data:_0x53a9be}=_0x245a14;if(_0x53a9be&&'value'==_0x53a9be['key']&&_0x245a14['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1c5778=o(_0xae5df2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xae5df2,'*Change\x20%0\x20content*',_0x1c5778)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5eefff=this['editor'],_0x383cfa=_0x5eefff['locale'];_0x5eefff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x549992=>{if('formatBlock'!=_0x549992['type'])return;const {data:_0xabe75e}=_0x549992;if(_0xabe75e&&'htmlEmbed'==_0xabe75e['commandName']){const _0x253989=o(_0x383cfa,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x383cfa,'*Change\x20%0\x20content*',_0x253989)};}});}}class nt extends _0x8ac1b{['afterInit'](){const _0x34e425=this['editor'];if(!_0x34e425['plugins']['has']('ImageEditing'))return;const _0x5778e9=_0x34e425['plugins']['get']('TrackChangesEditing'),_0xe5788b=_0x34e425['plugins']['get']('ImageUtils'),_0x778cb2=_0x34e425['locale'];_0x5778e9['enableCommand']('insertImage'),_0x5778e9['descriptionFactory']['registerElementLabel']('imageBlock',_0x290b61=>o(_0x778cb2,'ELEMENT_IMAGE',_0x290b61)),_0x5778e9['descriptionFactory']['registerElementLabel']('imageInline',_0x509100=>o(_0x778cb2,'ELEMENT_INLINE_IMAGE',_0x509100)),_0x5778e9['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x778cb2,'ELEMENT_CAPTION')),_0x34e425['plugins']['has']('ImageUploadEditing')&&_0x5778e9['enableCommand']('uploadImage'),_0x34e425['plugins']['has']('ImageBlockEditing')&&_0x34e425['plugins']['has']('ImageInlineEditing')&&(_0x5778e9['enableCommand']('imageTypeInline',(_0x55ce4d,_0x25c039)=>{const _0x3b8e5a=_0xe5788b['getClosestSelectedImageElement'](_0x34e425['model']['document']['selection']);_0x34e425['model']['change'](()=>{_0x5778e9['markBlockFormat'](_0x3b8e5a,{'commandName':'imageTypeInline','commandParams':[_0x25c039]},[],'convertBlockImageToInline');});}),_0x5778e9['enableCommand']('imageTypeBlock',(_0x21b4f5,_0x3c0f90)=>{_0x34e425['model']['change'](_0x3fb568=>{let _0x1e97c2=_0xe5788b['getClosestSelectedImageElement'](_0x34e425['model']['document']['selection']),_0x510f1b=_0x3fb568['createRangeOn'](_0x1e97c2);const _0x141890=_0x5b5749['fromPosition'](_0x510f1b['start'],'toPrevious'),_0x1614a0=_0x5b5749['fromPosition'](_0x510f1b['end'],'toNext');_0x5778e9['forceDefaultExecution'](()=>_0x21b4f5(_0x3c0f90)),_0x1e97c2=_0xe5788b['getClosestSelectedImageElement'](_0x34e425['model']['document']['selection']),_0x510f1b=_0x3fb568['createRangeOn'](_0x1e97c2);const _0xe957b1=_0x3fb568['createRange'](_0x141890,_0x1614a0);_0x141890['detach'](),_0x1614a0['detach'](),_0x5778e9['markBlockFormat'](_0x1e97c2,{'commandName':'imageTypeInline','commandParams':[_0x3c0f90]},[],'convertInlineImageToBlock'),_0xe957b1['start']['isBefore'](_0x510f1b['start'])&&_0x5778e9['markInsertion'](_0x3fb568['createRange'](_0xe957b1['start'],_0x510f1b['start']),'convertInlineImageToBlock'),_0x510f1b['end']['isBefore'](_0xe957b1['end'])&&_0x5778e9['markInsertion'](_0x3fb568['createRange'](_0x510f1b['end'],_0xe957b1['end']),'convertInlineImageToBlock');});}),_0x5778e9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5778e9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5778e9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5778e9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5778e9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5778e9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x54e56a])=>{const _0x476f65=_0x5778e9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2a73ee=_0x54e56a['start'],_0x2c1993=_0x54e56a['end'];const _0x55c7e7=_0x34e425['model']['schema']['getNearestSelectionRange'](_0x2a73ee,'backward'),_0x44876e=_0x34e425['model']['schema']['getNearestSelectionRange'](_0x2c1993,'forward');_0x55c7e7['isCollapsed']&&(_0x2a73ee=_0x55c7e7['start']),_0x44876e['isCollapsed']&&(_0x2c1993=_0x44876e['end']),_0x476f65([_0x34e425['model']['createRange'](_0x2a73ee,_0x2c1993)]);}),_0x5778e9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x8a9491),_0x5778e9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x8a9491)),_0x34e425['plugins']['has']('ImageCaptionEditing')&&(_0x5778e9['enableCommand']('toggleImageCaption',(_0x5e0bbd,_0x41ca11)=>{const _0x466cb6=_0x34e425['plugins']['get']('ImageCaptionUtils');let _0x10e4e0=_0xe5788b['getClosestSelectedImageElement'](_0x34e425['model']['document']['selection']),_0x41bf4c=_0x466cb6['getCaptionFromImageModelElement'](_0x10e4e0);_0x34e425['model']['change'](()=>{if(_0x41bf4c)return void _0x5778e9['markDeletion'](_0x34e425['model']['createRangeOn'](_0x41bf4c));const _0xc475d5=_0xe5788b['isBlockImage'](_0x10e4e0);_0x5e0bbd(_0x41ca11),_0x10e4e0=_0xe5788b['getClosestSelectedImageElement'](_0x34e425['model']['document']['selection']),_0x41bf4c=_0x466cb6['getCaptionFromImageModelElement'](_0x10e4e0),_0x5778e9['markInsertion'](_0x34e425['model']['createRangeOn'](_0x41bf4c),_0xc475d5?null:'imageCaption');});}),_0x5778e9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x8a9491));const _0x11cf26=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x54c2b8(_0x5ab29e,_0x164ac1){const _0x3f9395=_0x11cf26['findIndex'](({type:_0x471e7f,subType:_0x56ff7d})=>_0x5ab29e['type']==_0x471e7f&&_0x5ab29e['subType']==_0x56ff7d),_0x205c20=_0x11cf26['findIndex'](({type:_0x40b136,subType:_0x3a5bea})=>_0x164ac1['type']==_0x40b136&&_0x164ac1['subType']==_0x3a5bea);if(_0x3f9395<0x0||_0x205c20<0x0)return!0x1;const _0x4a6b7b=_0x5ab29e['getFirstRange'](),_0x240aed=_0x164ac1['getFirstRange']();if((0x0==_0x3f9395||0x1==_0x3f9395)&&0x2==_0x205c20&&_0x4a6b7b['isIntersecting'](_0x240aed))return!0x0;if(0x2==_0x3f9395&&0x3==_0x205c20){const _0x15de14=_0x5778e9['_findSuggestions'](_0x4a6b7b,'insertion')['filter'](({suggestion:_0x15e639,meta:_0x1ca596})=>_0x1ca596['isOwn']&&'convertInlineImageToBlock'==_0x15e639['subType']);if(_0x15de14['length']>0x1&&_0x240aed['end']['isEqual'](_0x4a6b7b['start']))return!0x0;if(0x1==_0x15de14['length']&&(_0x4a6b7b['start']['isEqual'](_0x240aed['end'])||_0x4a6b7b['end']['isEqual'](_0x240aed['start'])))return!0x0;}if(0x3==_0x3f9395&&0x3==_0x205c20&&_0x4a6b7b['start']['isBefore'](_0x240aed['start'])){const _0x1ba35d=_0x4a6b7b['end']['nodeAfter'],_0x1e06c1=_0x240aed['start']['nodeBefore'];return _0xe5788b['isBlockImage'](_0x1ba35d)&&_0x1ba35d===_0x1e06c1;}return!0x1;}function _0x8a9491(_0x11a93b,_0x18144d){return _0x54c2b8(_0x11a93b,_0x18144d)?[_0x11a93b,_0x18144d]:_0x54c2b8(_0x18144d,_0x11a93b)?[_0x18144d,_0x11a93b]:null;}_0x34e425['plugins']['has']('ImageResize')&&(_0x5778e9['enableDefaultAttributesIntegration']('resizeImage'),_0x5778e9['registerBlockAttribute']('resizedWidth'),_0x5778e9['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x778cb2,'FORMAT_IMAGE_SIZE'))),_0x34e425['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5778e9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5778e9['registerBlockAttribute']('alt')),_0x5778e9['descriptionFactory']['registerDescriptionCallback'](_0x554f85=>{if(!!_0x11cf26['find'](({type:_0x24c177,subType:_0x1278c0})=>_0x554f85['type']==_0x24c177&&_0x554f85['subType']==_0x1278c0))return _0x554f85['previous']?{}:void 0x0;}),_0x5778e9['descriptionFactory']['registerDescriptionCallback'](_0x536141=>{if('insertion'==_0x536141['type']||'deletion'==_0x536141['type']){const _0x5c84cc=_0x536141['getContainedElement']();if(_0x5c84cc&&_0x5c84cc['is']('element','caption'))return{'type':'insertion'==_0x536141['type']?'addObject':'removeObject','element':_0x5c84cc,'quantity':0x1};}}),_0x5778e9['descriptionFactory']['registerDescriptionCallback'](_0xe265dc=>'formatBlock'==_0xe265dc['type']&&'convertInlineImageToBlock'==_0xe265dc['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xe265dc['type']&&'convertBlockImageToInline'==_0xe265dc['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5778e9['descriptionFactory']['registerDescriptionCallback'](_0x31e109=>{if('attribute'!=_0x31e109['type'])return;const {data:_0x1684fa}=_0x31e109;if(!_0x1684fa||'alt'!=_0x1684fa['key'])return;const _0x568116=_0x1684fa['newValue'];return _0x568116?{'type':'format','content':o(_0x778cb2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x568116+'\x22')}:{'type':'format','content':o(_0x778cb2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d5823=this['editor'],_0x3623c2=_0x4d5823['locale'];_0x4d5823['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f12da=>{if('formatBlock'!=_0x4f12da['type']&&'formatInline'!=_0x4f12da['type'])return;const {data:_0x548876}=_0x4f12da;if(_0x548876){if('imageTextAlternative'==_0x548876['commandName']){const _0x132e45=_0x548876['commandParams'][0x0]['newValue'];return _0x132e45?{'type':'format','content':o(_0x3623c2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x132e45+'\x22')}:{'type':'format','content':o(_0x3623c2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x548876['commandName']){const _0x40570f=_0x548876['commandParams'][0x0]['width'];return _0x40570f?{'type':'format','content':o(_0x3623c2,'*Set\x20image\x20width:*\x20%0',_0x40570f)}:{'type':'format','content':o(_0x3623c2,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x8ac1b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3f13f3=this['editor']['locale'],_0x36014e=this['editor']['plugins']['get']('TrackChangesEditing');_0x36014e['enableDefaultAttributesIntegration']('replaceImageSource'),_0x36014e['registerBlockAttribute']('src'),_0x36014e['descriptionFactory']['registerDescriptionCallback'](_0x4f8f37=>{if('attribute'!=_0x4f8f37['type'])return;const {data:_0x5e9678}=_0x4f8f37;return _0x5e9678&&'src'==_0x5e9678['key']?_0x5e9678['newValue']&&_0x5e9678['oldValue']?{'type':'format','content':o(_0x3f13f3,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xbeabdd=this['editor']['plugins']['get']('TrackChangesEditing');_0xbeabdd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xbeabdd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xbeabdd['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xbeabdd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dcf08=this['editor'],_0x3abe0c=_0x4dcf08['locale'];_0x4dcf08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39249e=>{if('formatBlock'!=_0x39249e['type']&&'formatInline'!=_0x39249e['type'])return;const {data:_0x283c57}=_0x39249e;if(!_0x283c57||'replaceImageSource'!=_0x283c57['commandName'])return;return{'type':'format','content':o(_0x3abe0c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x8ac1b{['afterInit'](){const _0x486221=this['editor'];if(!_0x486221['plugins']['has']('ImageStyleEditing'))return;const _0x4e3903=_0x486221['plugins']['get']('TrackChangesEditing'),_0x1c36cd=_0x486221['plugins']['get']('ImageUtils'),_0x3d2c63={};_0x4e3903['enableCommand']('imageStyle',(_0x4f8c0f,_0x4dcc2b)=>{const _0x3bdb26=_0x486221['plugins']['get']('Users')['me'],_0xad0714=_0x486221['commands']['get']('imageStyle');let _0x3e8bf2=_0x1c36cd['getClosestSelectedImageElement'](_0x486221['model']['document']['selection']),_0x305fa0=_0x486221['model']['createRangeOn'](_0x3e8bf2),_0x50eba9=_0xad0714['value'];if(_0x50eba9==_0x4dcc2b['value'])return;const _0x48ee71={'commandName':'imageStyle','commandParams':[_0x4dcc2b],'formatGroupId':_0x38f7ff()};_0x486221['model']['change'](()=>{if(_0x4e3903['getSuggestions']()['filter'](_0x6352f8=>_0x6352f8['isInContent']&&_0x3bdb26==_0x6352f8['author']&&('formatBlock'==_0x6352f8['type']||'formatInline'==_0x6352f8['type'])&&('imageStylePreApply'==_0x6352f8['subType']||'imageStylePostApply'==_0x6352f8['subType'])&&_0x6352f8['getFirstRange']()['isEqual'](_0x305fa0))['forEach'](_0x5b5084=>_0x4e3903['discardSuggestion'](_0x5b5084['head'])),_0x3e8bf2=_0x1c36cd['getClosestSelectedImageElement'](_0x486221['model']['document']['selection']),_0x305fa0=_0x486221['model']['createRangeOn'](_0x3e8bf2),_0xad0714['refresh'](),_0x486221['commands']['get']('imageTypeInline')['refresh'](),_0x486221['commands']['get']('imageTypeBlock')['refresh'](),_0x50eba9=_0xad0714['value'],_0x50eba9!=_0x4dcc2b['value'])return _0x1c36cd['isInlineImage'](_0x3e8bf2)&&_0xad0714['shouldConvertImageType'](_0x4dcc2b['value'],_0x3e8bf2)?(_0x4f8c0f({..._0x4dcc2b,'setImageSizes':!0x1}),_0x3e8bf2=_0x1c36cd['getClosestSelectedImageElement'](_0x486221['model']['document']['selection']),void _0x4e3903['markBlockFormat'](_0x3e8bf2,{..._0x48ee71,'commandReversedParams':[{'value':_0x50eba9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1c36cd['isBlockImage'](_0x3e8bf2)?_0x4e3903['markBlockFormat'](_0x3e8bf2,_0x48ee71,[],'imageStylePostApply'):_0x4e3903['markInlineFormat'](_0x305fa0,_0x48ee71,'imageStylePostApply'));});});for(const _0x56f430 of _0x486221['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3d2c63[_0x56f430['name']]=_0x56f430['title']['toLowerCase']();_0x4e3903['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e3903['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e3903['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e3903['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x51e629])=>{_0x1c36cd['setImageNaturalSizeAttributes'](_0x51e629['getContainedElement']());}),_0x4e3903['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x512e01,_0x14c65c)=>{_0x4e3903['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x512e01,{'commandName':_0x14c65c['commandName'],'commandParams':_0x14c65c['commandReversedParams']});}),_0x4e3903['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x48245f,_0x3dd7e2){if(_0x299e24(_0x48245f,_0x3dd7e2))return[_0x48245f,_0x3dd7e2];if(_0x299e24(_0x3dd7e2,_0x48245f))return[_0x3dd7e2,_0x48245f];return null;});const _0x5b70f9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x299e24(_0x3a7a98,_0x204d18){const _0x25a56d=_0x5b70f9['findIndex'](({type:_0xb3c51,subType:_0x20608d})=>_0x3a7a98['type']==_0xb3c51&&_0x3a7a98['subType']==_0x20608d),_0x47a94d=_0x5b70f9['findIndex'](({type:_0x8901af,subType:_0x1abd9d})=>_0x204d18['type']==_0x8901af&&_0x204d18['subType']==_0x1abd9d);if(_0x25a56d<0x0||_0x47a94d<0x0)return!0x1;const _0x3efcc5=_0x3a7a98['getFirstRange'](),_0x47f79a=_0x204d18['getFirstRange']();if((0x0==_0x25a56d||0x1==_0x25a56d)&&0x2==_0x47a94d&&_0x3efcc5['isIntersecting'](_0x47f79a))return!0x0;if(0x2==_0x25a56d&&0x3==_0x47a94d){const _0x5d9678=_0x4e3903['_findSuggestions'](_0x3efcc5,'insertion')['filter'](({suggestion:_0xc0ec57,meta:_0x3d7659})=>_0x3d7659['isOwn']&&'convertInlineImageToBlock'==_0xc0ec57['subType']);if(_0x5d9678['length']>0x1&&_0x47f79a['end']['isEqual'](_0x3efcc5['start']))return!0x0;if(0x1==_0x5d9678['length']&&(_0x3efcc5['start']['isEqual'](_0x47f79a['end'])||_0x3efcc5['end']['isEqual'](_0x47f79a['start'])))return!0x0;}if(0x3==_0x25a56d&&0x3==_0x47a94d&&_0x3efcc5['start']['isBefore'](_0x47f79a['start'])){const _0x435293=_0x3efcc5['end']['nodeAfter'],_0x2e7f75=_0x47f79a['start']['nodeBefore'];return _0x1c36cd['isBlockImage'](_0x435293)&&_0x435293===_0x2e7f75;}return!0x1;}_0x486221['model']['document']['registerPostFixer'](()=>{let _0x4e5c00=!0x1;const _0x1f4753=Array['from'](_0x486221['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x129f0f,data:_0x23b3b3}of _0x1f4753){const {group:_0xff2e49,type:_0xf8311f,subType:_0x215977,id:_0x11785e}=_0x4e3903['_splitMarkerName'](_0x129f0f);if('suggestion'==_0xff2e49&&_0x4e3903['hasSuggestion'](_0x11785e)){if('formatBlock'==_0xf8311f&&('imageStylePreApply'==_0x215977||'imageStylePostApply'==_0x215977)){const _0x354452=_0x4e3903['getSuggestion'](_0x11785e);if(_0x23b3b3['newRange']){const _0x588fa2=_0x354452['getFirstRange']()['getContainedElement']();if(_0x1c36cd['isBlockImage'](_0x588fa2))continue;_0x4e3903['discardSuggestion'](_0x354452),_0x4e5c00=!0x0;}}if('insertion'==_0xf8311f&&'imageCaption'==_0x215977&&!_0x23b3b3['newRange']){const _0x539fad=_0x4e3903['getSuggestion'](_0x11785e);_0x539fad['next']&&_0x539fad['next']['isInContent']&&(_0x4e3903['discardSuggestion'](_0x539fad['next']),_0x4e5c00=!0x0);}}}return _0x4e5c00;}),this['_registerLegacyDescription'](_0x3d2c63);}['_registerLegacyDescription'](_0x288e12){const _0x1ca6a9=this['editor'],_0x5bef49=_0x1ca6a9['locale'];_0x1ca6a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa69a26=>{if('formatBlock'!=_0xa69a26['type']&&'formatInline'!=_0xa69a26['type'])return;const {data:_0x47dc7d}=_0xa69a26;if(!_0x47dc7d||'imageStyle'!=_0x47dc7d['commandName'])return;const _0x4859eb=_0x47dc7d['commandParams'][0x0]['value'];return _0x21e3da('side'===_0x4859eb?o(_0x5bef49,'FORMAT_SIDE_IMAGE'):_0x288e12[_0x4859eb]||_0x4859eb);function _0x21e3da(_0x41ecd2){return{'type':'format','content':o(_0x5bef49,'*Format:*\x20%0',_0x41ecd2)};}});}}class at extends _0x8ac1b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x11e3f4){super(_0x11e3f4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x41c37e=this['editor'],_0x1095a7=_0x41c37e['commands']['get']('importWord'),_0x53af84=_0x41c37e['commands']['get']('trackChanges');_0x1095a7&&(_0x1095a7['on']('execute',(_0x42b2c2,[,_0x4ff8b2])=>{this['_trackChangesValueDuringImport']=_0x53af84['value'],_0x4ff8b2['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1095a7,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1095a7,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x53af84['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x41c37e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x206b9b,_0x55424c){const {suggestions:_0x4411e2}=_0x55424c,_0x5c7e07=this['editor']['commands']['get']('trackChanges'),_0x2b80a1=_0x5c7e07['value'];this['_trackChangesValueDuringImport']!==_0x2b80a1&&(_0x5c7e07['execute'](),this['_trackChangesExecuted']=!0x0),_0x4411e2&&_0x4411e2['forEach'](({id:_0x420df3,type:_0x644d4a,author:_0x25ef53,created_at:_0x582467})=>{const _0x2daa95={'id':_0x420df3,'type':_0x644d4a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x25ef53,'createdAt':_0x582467?new Date(_0x582467):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2daa95);});}}class ct extends _0x8ac1b{['afterInit'](){const _0x19ed59=this['editor'],_0x1ab5e3=_0x19ed59['plugins']['get']('TrackChangesEditing');if(_0x19ed59['plugins']['has']('IndentEditing')&&(_0x1ab5e3['enableCommand']('indent'),_0x1ab5e3['enableCommand']('outdent')),_0x19ed59['plugins']['has']('IndentBlock')){for(const _0x41ede3 of['indentBlock','outdentBlock'])_0x1ab5e3['enableDefaultAttributesIntegration'](_0x41ede3);}const _0x32510c=_0x19ed59['locale'];_0x1ab5e3['registerBlockAttribute']('blockIndent'),_0x1ab5e3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x32510c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21b5f7=this['editor'],_0x39a3b3=_0x21b5f7['locale'],_0x20a2c0=_0x21b5f7['plugins']['get']('TrackChangesEditing');_0x20a2c0['descriptionFactory']['registerDescriptionCallback'](_0x179cc9=>{if('formatBlock'!=_0x179cc9['type'])return;const {data:_0x3ebe4c}=_0x179cc9;if(!_0x3ebe4c)return;if('indentBlock'!=_0x3ebe4c['commandName']&&'outdentBlock'!=_0x3ebe4c['commandName'])return;const _0x409d0b=_0x179cc9['getItems']()[0x0],_0x56a3e7=_0x20a2c0['descriptionFactory']['getItemLabel'](_0x409d0b);return'indentBlock'==_0x3ebe4c['commandName']?{'type':'format','content':o(_0x39a3b3,'*Indent:*\x20%0',_0x56a3e7)}:'outdentBlock'==_0x3ebe4c['commandName']?{'type':'format','content':o(_0x39a3b3,'*Outdent:*\x20%0',_0x56a3e7)}:void 0x0;});}}class ut extends _0x8ac1b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x8ac1b{['afterInit'](){const _0x1f9356=this['editor'];if(!_0x1f9356['plugins']['has']('LinkEditing'))return;const _0x5a1aa0=_0x1f9356['plugins']['get']('TrackChangesEditing'),_0x12589d=_0x1f9356['commands']['get']('link');_0x5a1aa0['enableDefaultAttributesIntegration']('link'),_0x5a1aa0['enableDefaultAttributesIntegration']('unlink'),_0x5a1aa0['registerInlineAttribute']('linkHref');for(const _0x40b085 of _0x12589d['manualDecorators'])_0x5a1aa0['registerInlineAttribute'](_0x40b085['id']),_0x5a1aa0['descriptionFactory']['registerAttributeLabel'](_0x40b085['id'],'link\x20('+_0x40b085['label']['toLowerCase']()+')');_0x5a1aa0['descriptionFactory']['registerDescriptionCallback'](_0x4debb=>{if('attribute'!=_0x4debb['type'])return;const {data:_0x3b0c23}=_0x4debb;if(!_0x3b0c23||'linkHref'!=_0x3b0c23['key'])return;const _0x507bd9=_0x3b0c23['newValue'],_0x358672=_0x1f9356['locale'];return{'type':'format','content':null==_0x507bd9?o(_0x358672,'*Remove\x20link*'):o(_0x358672,'*Set\x20link:*\x20%0','\x22'+_0x507bd9+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bc7e6=this['editor'],_0x3b4290=_0x3bc7e6['locale'];_0x3bc7e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8e767d=>{if('formatInline'!=_0x8e767d['type'])return;const {data:_0x4b395b}=_0x8e767d;if(_0x4b395b){if('link'==_0x4b395b['commandName']){const _0x458ea2=_0x4b395b['commandParams'][0x0];return{'type':'format','content':o(_0x3b4290,'*Set\x20link:*\x20%0','\x22'+_0x458ea2+'\x22')};}return'unlink'==_0x4b395b['commandName']?{'type':'format','content':o(_0x3b4290,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x8ac1b{['afterInit'](){const _0x2d84a8=this['editor'],_0x16d8e1=_0x2d84a8['locale'];if(!_0x2d84a8['plugins']['has']('LegacyListEditing'))return;const _0x42e685=_0x2d84a8['plugins']['get']('TrackChangesEditing'),_0x4d7f9f=_0x2d84a8['plugins']['has']('LegacyTodoListEditing');function _0x5451a2(_0x31f8dc){return()=>{const _0x15e5b5=_0x2d84a8['model']['document']['selection'],_0x272f1f=_0x2d84a8['commands']['get'](_0x31f8dc);if(_0x272f1f['value'])return void _0x2d84a8['execute']('paragraph',{});const _0xc79475=_0x31f8dc['slice'](0x0,-0x4),_0x254a71=function(_0x1ccdd3,_0x367a1d,_0x145b9f){let _0x344ae5=Array['from'](_0x1ccdd3)['filter'](_0x4f9785=>function(_0x16fe7f,_0x3a3eed){return _0x3a3eed['checkChild'](_0x16fe7f['parent'],'listItem')&&!_0x3a3eed['isObject'](_0x16fe7f);}(_0x4f9785,_0x145b9f));_0x344ae5=_0x344ae5['filter'](_0x4aab44=>!_0x4aab44['is']('element','listItem')||_0x4aab44['getAttribute']('listType')!=_0x367a1d);const _0xaa92c=new Set();for(const _0x39be66 of _0x344ae5)_0x39be66['is']('element','listItem')?_0xaa92c['add'](fe(_0x39be66)):_0xaa92c['add'](_0x39be66);return Array['from'](_0xaa92c);}(_0x15e5b5['getSelectedBlocks'](),_0xc79475,_0x2d84a8['model']['schema']);_0x2d84a8['model']['change'](()=>{for(const _0x59b945 of _0x254a71)_0x42e685['markBlockFormat'](_0x59b945,{'commandName':_0x31f8dc,'commandParams':[{'forceValue':!_0x272f1f['value']}],'formatGroupId':'blockName'},ue(_0x59b945));});};}function _0x571156(_0x50baaf){return()=>{const _0x58469f=function(_0x28198a){let _0x497c66=Array['from'](_0x28198a);const _0x4d23f9=_0x497c66['findIndex'](_0x544892=>'listItem'!=_0x544892['name']);return _0x4d23f9>-0x1&&(_0x497c66=_0x497c66['slice'](0x0,_0x4d23f9)),_0x497c66;}(_0x2d84a8['model']['document']['selection']['getSelectedBlocks']()),_0x207a4a=_0x2d84a8['model']['createRange'](_0x2d84a8['model']['createPositionAt'](_0x58469f[0x0],'before'),_0x2d84a8['model']['createPositionAt'](_0x58469f[_0x58469f['length']-0x1],'end'));_0x2d84a8['model']['change'](()=>{_0x42e685['markBlockFormat'](_0x207a4a,{'commandName':_0x50baaf,'commandParams':[],'formatGroupId':'listIndent'},function(_0x566ae2){const _0xf65c9c=new Set();for(const _0x4c24fd of _0x566ae2){let _0x439ade=_0x4c24fd['nextSibling'];for(;_0x439ade&&_0x439ade['getAttribute']('listIndent')>_0x4c24fd['getAttribute']('listIndent');)_0xf65c9c['add'](_0x439ade),_0x439ade=_0x439ade['nextSibling'];}return Array['from'](_0xf65c9c);}(_0x58469f));});};}_0x42e685['enableCommand']('numberedList',_0x5451a2('numberedList')),_0x42e685['enableCommand']('bulletedList',_0x5451a2('bulletedList')),_0x4d7f9f&&_0x42e685['enableCommand']('todoList',_0x5451a2('todoList')),_0x42e685['enableCommand']('indentList',_0x571156('indentList')),_0x42e685['enableCommand']('outdentList',_0x571156('outdentList')),_0x4d7f9f&&_0x42e685['enableCommand']('checkTodoList',()=>{const _0x59aa3a=_0x2d84a8['commands']['get']('checkTodoList'),_0x2ead6d=Array['from'](_0x59aa3a['_selectedElements']);_0x2ead6d['filter'](_0xf7b395=>_0xf7b395['getAttribute']('todoListChecked')!=_0x59aa3a['value']),_0x2d84a8['model']['change'](()=>{for(const _0x222f1d of _0x2ead6d)_0x42e685['markBlockFormat'](_0x222f1d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x59aa3a['value']}]});});}),_0x42e685['descriptionFactory']['registerElementLabel']('listItem',_0x1f928a=>o(_0x16d8e1,'ELEMENT_LIST_ITEM',_0x1f928a)),_0x42e685['descriptionFactory']['registerDescriptionCallback'](_0x359144=>{if('formatBlock'!=_0x359144['type']&&'formatInline'!=_0x359144['type'])return;const {data:_0x35c0cc}=_0x359144;if(_0x35c0cc){if('numberedList'==_0x35c0cc['commandName']||'bulletedList'==_0x35c0cc['commandName']||'todoList'==_0x35c0cc['commandName'])switch(_0x35c0cc['commandName']['replace']('List','')){case'bulleted':return _0x2cac2e(o(_0x16d8e1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2cac2e(o(_0x16d8e1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2cac2e(o(_0x16d8e1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x35c0cc['commandName'])return{'type':'format','content':o(_0x16d8e1,'*Indent:*\x20%0',o(_0x16d8e1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x35c0cc['commandName'])return{'type':'format','content':o(_0x16d8e1,'*Outdent:*\x20%0',o(_0x16d8e1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x35c0cc['commandName'])return _0x35c0cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16d8e1,'*Check\x20item*')}:{'type':'format','content':o(_0x16d8e1,'*Uncheck\x20item*')};}function _0x2cac2e(_0x43fd3d){return{'type':'format','content':o(_0x16d8e1,'*Change\x20to:*\x20%0',_0x43fd3d)};}});}}function fe(_0xe97d28){const _0x58c3e8=_0xe97d28['getAttribute']('listIndent');if(0x0==_0x58c3e8)return _0xe97d28;let _0x3dd07e=_0xe97d28;for(;_0xe97d28['previousSibling']&&_0xe97d28['previousSibling']['is']('element','listItem');){const _0x40201c=_0xe97d28['previousSibling']['getAttribute']('listIndent');if(_0x40201c==_0x58c3e8)_0x3dd07e=_0xe97d28['previousSibling'];else{if(_0x40201c<_0x58c3e8)break;}_0xe97d28=_0xe97d28['previousSibling'];}return _0x3dd07e;}function ue(_0x126e7d){const _0x26ceff=[];if(_0x126e7d['is']('element','listItem')&&_0x126e7d['getAttribute']('listIndent')>0x0){let _0x178de1=_0x126e7d['nextSibling'];for(;_0x178de1&&'listItem'==_0x178de1['name']&&_0x178de1['getAttribute']('listIndent')==_0x126e7d['getAttribute']('listIndent');)_0x26ceff['push'](_0x178de1),_0x178de1=_0x178de1['nextSibling'];}return _0x26ceff;}class W extends _0x8ac1b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x27b948=this['editor']['config']['get']('list.properties'),_0x11248b=this['editor']['plugins']['get']('TrackChangesEditing');_0x27b948['styles']&&_0x11248b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x27b948['reversed']&&_0x11248b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x27b948['startIndex']&&_0x11248b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x11248b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4f7c63,_0x40fdda={}){const _0x4e779f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55c7b8=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4e779f['markMultiRangeBlockFormat'](_0x55c7b8,{'commandName':'listStyle','commandParams':[{'type':_0x40fdda['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xffbb71,_0x37cb01={}){const _0x34e4fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4051b7=this['_getSuggestionBlocks'](_0x39a28f=>_0x39a28f['is']('element','listItem')&&'numbered'===_0x39a28f['getAttribute']('listType'));if(_0x4051b7['length']<0x1)return;const _0x20baa=_0x4051b7['map'](_0x3f0ce4=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f0ce4,'before'),this['editor']['model']['createPositionAt'](_0x3f0ce4,0x0)));this['editor']['model']['change'](()=>{_0x34e4fe['markMultiRangeBlockFormat'](_0x20baa,{'commandName':'listReversed','commandParams':[{'reversed':_0x37cb01['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x208796,_0x58855e={}){const _0xaade6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19536c=this['_getSuggestionBlocks'](_0x528f81=>_0x528f81['is']('element','listItem')&&'numbered'===_0x528f81['getAttribute']('listType'));if(_0x19536c['length']<0x1)return;const _0x1c2595=_0x19536c['map'](_0x2771d8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2771d8,'before'),this['editor']['model']['createPositionAt'](_0x2771d8,0x0)));this['editor']['model']['change'](()=>{_0xaade6['markMultiRangeBlockFormat'](_0x1c2595,{'commandName':'listStart','commandParams':[{'startIndex':_0x58855e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x37475e){if('formatBlock'!=_0x37475e['type']&&'formatInline'!=_0x37475e['type'])return;const _0x5a206c=this['editor']['locale'],{data:_0x161efa}=_0x37475e;if(!_0x161efa)return;let _0xf59bb0,_0x52c720;switch(_0x161efa['commandName']){case'listStyle':_0xf59bb0='*Change\x20to:*\x20%0',_0x52c720={'type':'format','content':o(_0x5a206c,_0xf59bb0,o(_0x5a206c,this['_getTranslationKeyForListStyle'](_0x161efa['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf59bb0=_0x161efa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x52c720={'type':'format','content':o(_0x5a206c,_0xf59bb0)};break;case'listStart':_0xf59bb0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x52c720={'type':'format','content':o(_0x5a206c,_0xf59bb0,_0x161efa['commandParams'][0x0]['startIndex'])};}return _0x52c720;}['_getSuggestionBlocksForListStyle'](){const _0x12ea98=this['editor']['plugins']['get']('LegacyListUtils');let _0x3358cf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3358cf[0x0]?.['is']('element','listItem')&&_0x3358cf['unshift'](..._0x12ea98['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3358cf[_0x3358cf['length']-0x1]?.['is']('element','listItem')&&_0x3358cf['push'](..._0x12ea98['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3358cf=[...new Set(_0x3358cf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3358cf=_0x3358cf['filter'](_0xbdcb57=>_0xbdcb57['is']('element','listItem'))),_0x3358cf;}['_getSuggestionBlocks'](_0x5a20ab){const _0x55e66e=this['editor']['plugins']['get']('LegacyListUtils');let _0x47fb90=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5a20ab)['map'](_0x49c9ce=>{const _0x1b7198=this['editor']['model']['createPositionAt'](_0x49c9ce,0x0);return[..._0x55e66e['getSiblingNodes'](_0x1b7198,'backward'),..._0x55e66e['getSiblingNodes'](_0x1b7198,'forward')];})['flat']();return _0x47fb90=[...new Set(_0x47fb90)],_0x47fb90;}['_getTranslationKeyForListStyle'](_0x2c87f7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2c87f7)||'default')['toUpperCase']()+'_LIST_'+_0x2c87f7['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x8ac1b{['afterInit'](){const _0xcb3198=this['editor'];if(!_0xcb3198['plugins']['has']('MediaEmbedEditing'))return;const _0x2026f2=_0xcb3198['plugins']['get']('TrackChangesEditing'),_0x59ecac=_0xcb3198['locale'];_0x2026f2['enableCommand']('mediaEmbed'),_0x2026f2['descriptionFactory']['registerElementLabel']('media',_0x504267=>o(_0x59ecac,'ELEMENT_MEDIA',_0x504267)),_0xcb3198['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2c2bb9,{writer:_0x5b3af1,options:_0x2c0ce3})=>{if(_0x2c0ce3['showSuggestionHighlights'])return _0x5b3af1['createEmptyElement']('div');},'converterPriority':'high'}),_0xcb3198['data']['downcastDispatcher']['on']('attribute:url:media',(_0x144c07,_0xdf46bc,_0x4b3bde)=>{_0x4b3bde['options']['showSuggestionHighlights']&&_0x144c07['stop']();},{'priority':'high'});}}class mt extends _0x8ac1b{['afterInit'](){const _0x499f05=this['editor'];_0x499f05['plugins']['has']('MentionEditing')&&_0x499f05['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x8ac1b{['afterInit'](){const _0x11d422=this['editor'];if(!_0x11d422['plugins']['has']('MergeFieldsEditing'))return;_0x11d422['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x11d422['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x290d9e=_0x11d422['plugins']['get']('TrackChangesEditing'),_0x392136=_0x11d422['locale'];_0x290d9e['descriptionFactory']['registerElementLabel']('mergeField',_0x2996b5=>o(_0x392136,'ELEMENT_MERGE_FIELD',_0x2996b5)),_0x290d9e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x27bed3=>o(_0x392136,'ELEMENT_MERGE_FIELD',_0x27bed3)),_0x290d9e['descriptionFactory']['registerDescriptionCallback'](_0xf06c7=>{if('insertion'!=_0xf06c7['type']&&'deletion'!=_0xf06c7['type'])return;const _0x196718=_0xf06c7['getContainedElement']();if(null==_0x196718)return;if(!_0x196718['is']('element','mergeField')&&!_0x196718['is']('element','mergeFieldBlock'))return;const _0xc7880c=_0x11d422['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x196718['getAttribute']('id'));return'insertion'==_0xf06c7['type']?{'type':'insertion','content':o(_0x392136,'*Insert:*\x20%0','\x22'+_0xc7880c+'\x22\x20'+o(_0x392136,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x392136,'*Remove:*\x20%0','\x22'+_0xc7880c+'\x22\x20'+o(_0x392136,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x8ac1b{['afterInit'](){const _0x10d3e7=this['editor'],_0x5c77ff=_0x10d3e7['plugins']['get']('TrackChangesEditing');_0x10d3e7['plugins']['has']('MultiLevelList')&&(_0x5c77ff['enableDefaultAttributesIntegration']('multiLevelList'),_0x5c77ff['registerBlockAttribute']('listMarkerStyle'),_0x5c77ff['descriptionFactory']['registerDescriptionCallback'](_0x94c7fd=>this['handleDescriptions'](_0x94c7fd)));}['handleDescriptions'](_0x5cf06a){const _0xd64f00=this['editor']['locale'],{data:_0x5cae8e}=_0x5cf06a,_0x34b640={'type':'format','content':''};if(_0x5cae8e&&'listMarkerStyle'==_0x5cae8e['key']){if(!_0x5cae8e['oldValue'])return{'type':'format','content':o(_0xd64f00,'*Set\x20format:*\x20%0',o(_0xd64f00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5cae8e['newValue']+')'};if(!_0x5cae8e['newValue']){let _0x2d31f5=_0x5cf06a['head'];for(;_0x2d31f5;){if(_0x2d31f5['data']&&'listType'==_0x2d31f5['data']['key']&&_0x2d31f5['data']['newValue'])return _0x34b640;_0x2d31f5=_0x2d31f5['next'];}return{'type':'format','content':o(_0xd64f00,'*Remove\x20format:*\x20%0',o(_0xd64f00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5cae8e['oldValue']+')'};}}}}class kt extends _0x8ac1b{['afterInit'](){const _0x50ba55=this['editor'];if(!_0x50ba55['plugins']['has']('PageBreakEditing'))return;_0x50ba55['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1c3507=_0x50ba55['plugins']['get']('TrackChangesEditing'),_0x228cc9=_0x50ba55['locale'];_0x1c3507['descriptionFactory']['registerElementLabel']('pageBreak',_0x3f0cfc=>o(_0x228cc9,'ELEMENT_PAGE_BREAK',_0x3f0cfc));}}class bt extends _0x8ac1b{['afterInit'](){const _0x97581e=this['editor'];if(!_0x97581e['plugins']['has']('Paragraph'))return;const _0x1ac3d6=_0x97581e['locale'],_0x134708=_0x97581e['plugins']['get']('TrackChangesEditing');_0x134708['descriptionFactory']['registerElementLabel']('paragraph',_0x580d93=>o(_0x1ac3d6,'ELEMENT_PARAGRAPH',_0x580d93)),_0x134708['enableDefaultAttributesIntegration']('paragraph'),_0x134708['enableCommand']('insertParagraph'),_0x97581e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x97581e),{'priority':'highest'}),_0x97581e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x557330,_0x5a3f9b,_0x2ed778)=>{_0x2ed778['options']['showSuggestionHighlights']&&nr(_0x97581e,{'showActiveMarker':!0x1})(_0x557330,_0x5a3f9b,_0x2ed778);},{'priority':'highest'});const _0x3bf3a2=_0x134708['descriptionFactory'];_0x3bf3a2['registerDescriptionCallback'](_0x1b62b6=>{if('insertion'!==_0x1b62b6['type'])return;const {start:_0x412c91,end:_0x355470}=_0x1b62b6['getFirstRange']();if(!_0x412c91['isTouching'](_0x355470)||!_0x412c91['nodeAfter'])return;const _0x7006c6=_0x97581e['model']['schema'],_0x3843e6=_0x412c91['nodeAfter'];return _0x7006c6['isBlock'](_0x3843e6)&&!_0x7006c6['isLimit'](_0x3843e6)&&_0x7006c6['checkChild'](_0x3843e6,'$text')?{'type':'insertion','content':o(_0x1ac3d6,'*Insert:*\x20%0',_0x3bf3a2['getItemLabel'](_0x3843e6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37a382=this['editor'],_0x3b8094=_0x37a382['locale'];_0x37a382['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa9bd3a=>{if('formatBlock'!=_0xa9bd3a['type'])return;const {data:_0x3ef550}=_0xa9bd3a;return _0x3ef550&&'paragraph'==_0x3ef550['commandName']?{'type':'format','content':o(_0x3b8094,'*Change\x20to:*\x20%0',o(_0x3b8094,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x8fe95d,{showActiveMarker:_0x550dbc=!0x0}={}){return(_0x5a7439,_0x564f5e,_0x59438d)=>{const _0x34bab2=_0x8fe95d['plugins']['get']('TrackChangesEditing'),_0x198847=_0x564f5e['markerRange']['start'],_0x21d837=_0x564f5e['markerRange']['end'],_0x3701f8=_0x8fe95d['model']['schema'];if(!_0x198847['isTouching'](_0x21d837)||!_0x198847['nodeAfter'])return;const _0x296d22=_0x198847['nodeAfter'];if(_0x3701f8['isBlock'](_0x296d22)&&!_0x3701f8['isLimit'](_0x296d22)&&_0x3701f8['checkChild'](_0x296d22,'$text')){if(!_0x59438d['consumable']['consume'](_0x564f5e['markerRange'],_0x5a7439['name']))return;const {authorId:_0x2b74c7}=_0x34bab2['_splitMarkerName'](_0x564f5e['markerName']),_0x32858f=_0x59438d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2b74c7}),_0x154c9e=_0x59438d['mapper']['toViewPosition'](_0x21d837);_0x550dbc&&_0x34bab2['activeMarkers']['includes'](_0x564f5e['markerName'])&&_0x59438d['writer']['addClass']('ck-suggestion-marker--active',_0x32858f),_0x59438d['writer']['insert'](_0x154c9e,_0x32858f),_0x59438d['mapper']['bindElementToMarker'](_0x32858f,_0x564f5e['markerName']);}};}class wt extends _0x8ac1b{['afterInit'](){const _0x1a75d6=this['editor'];if(!_0x1a75d6['plugins']['has']('RemoveFormatEditing'))return;_0x1a75d6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22b953=this['editor'];_0x22b953['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b8c90=>{if('formatBlock'!=_0x1b8c90['type']&&'formatInline'!=_0x1b8c90['type'])return;const {data:_0x412769}=_0x1b8c90;return _0x412769&&'removeFormat'==_0x412769['commandName']?{'type':'format','content':o(_0x22b953['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x8ac1b{['afterInit'](){const _0x279279=this['editor'];if(!_0x279279['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x205d59=_0x279279['plugins']['get']('TrackChangesEditing');_0x205d59['enableCommand']('goToPreviousRestrictedEditingException'),_0x205d59['enableCommand']('goToNextRestrictedEditingException');const _0x363afb=_0x279279['plugins']['get']('RestrictedEditingModeEditing');_0x363afb['enableCommand']('trackChanges'),_0x363afb['enableCommand']('acceptSuggestion'),_0x363afb['enableCommand']('discardSuggestion'),_0x363afb['enableCommand']('acceptAllSuggestions'),_0x363afb['enableCommand']('discardAllSuggestions'),_0x363afb['enableCommand']('acceptSelectedSuggestions'),_0x363afb['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x8ac1b{static get['requires'](){return[_0x11af4b];}['init'](){const _0x9fbb88=this['editor'],_0x1039e2=_0x9fbb88['plugins']['get']('TrackChangesEditing');_0x1039e2['enableCommand']('shiftEnter'),_0x9fbb88['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x9fbb88),{'priority':'high'}),_0x9fbb88['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x9fbb88),{'priority':'high'}),_0x9fbb88['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e4d08,_0x790d6,_0x58072a)=>{_0x58072a['options']['showSuggestionHighlights']&&ge(_0x9fbb88,{'showActiveMarker':!0x1})(_0x4e4d08,_0x790d6,_0x58072a);}),_0x1039e2['descriptionFactory']['registerElementLabel']('softBreak',_0x4a4fb4=>o(_0x9fbb88['locale'],'ELEMENT_LINE_BREAK',_0x4a4fb4));}}function ge(_0x3de99b,{showActiveMarker:_0xe25230=!0x0}={}){return(_0x225a0e,_0x35444f,_0x248ab4)=>{const _0x2ccfd2=_0x3de99b['plugins']['get']('TrackChangesEditing');if(!_0x248ab4['consumable']['test'](_0x35444f['markerRange'],_0x225a0e['name']))return;const _0x7348e=_0x3de99b['model'];for(const _0x32d09d of _0x35444f['markerRange']['getItems']()){if(!_0x32d09d['is']('element','softBreak'))continue;const _0x1d209a='deletion'==_0x35444f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x430278}=_0x2ccfd2['_splitMarkerName'](_0x35444f['markerName']),_0x39a53a=_0x248ab4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1d209a,'data-author-id':_0x430278}),_0x282234=_0x248ab4['mapper']['toViewPosition'](_0x7348e['createPositionBefore'](_0x32d09d));_0xe25230&&_0x2ccfd2['activeMarkers']['includes'](_0x35444f['markerName'])&&_0x248ab4['writer']['addClass']('ck-suggestion-marker--active',_0x39a53a),_0x248ab4['writer']['insert'](_0x282234,_0x39a53a),_0x248ab4['mapper']['bindElementToMarker'](_0x39a53a,_0x35444f['markerName']);}};}class St extends _0x8ac1b{['afterInit'](){const _0x58fde3=this['editor'],_0x54bb8c=_0x58fde3['model'],_0x1fd39c=_0x58fde3['locale'];if(!_0x58fde3['plugins']['has']('StandardEditingModeEditing'))return;const _0xee1007=_0x58fde3['plugins']['get']('TrackChangesEditing'),_0x1c04c3='restrictedEditingException',_0x4ef9a2=_0x58fde3['commands']['get'](_0x1c04c3);_0xee1007['enableCommand'](_0x1c04c3,(_0xc02010,_0x33ca56={})=>{const _0x10c6da=_0x54bb8c['document']['selection'];if(_0x10c6da['isCollapsed'])return void _0xc02010(_0x33ca56);const _0x51bc1b=void 0x0!==_0x33ca56['forceValue']?_0x33ca56['forceValue']:!_0x4ef9a2['value'];_0x54bb8c['change'](()=>{const _0x5c92cd=Array['from'](_0x10c6da['getRanges']());for(const _0x313fe0 of _0x5c92cd){const _0x5d2902=_0x51bc1b?[_0x313fe0]:io(_0x1c04c3,_0x313fe0,_0x54bb8c);for(const _0x1a34f5 of _0x5d2902)_0xee1007['markInlineFormat'](_0x1a34f5,{'commandName':_0x1c04c3,'commandParams':[{'forceValue':_0x51bc1b}]});}});}),_0xee1007['descriptionFactory']['registerDescriptionCallback'](_0x5e99f7=>{if('formatBlock'!=_0x5e99f7['type']&&'formatInline'!=_0x5e99f7['type'])return;const {data:_0x1fc3b6}=_0x5e99f7;return _0x1fc3b6&&_0x1fc3b6['commandName']==_0x1c04c3?_0x1fc3b6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fd39c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1fd39c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x8ac1b{['afterInit'](){const _0x448f26=this['editor'];if(!_0x448f26['plugins']['has']('Style')||!_0x448f26['plugins']['has']('DataSchema'))return;const _0xaaf8c6=_0x448f26['plugins']['get']('TrackChangesEditing'),_0x5ae37a=_0x448f26['locale'],_0x29a597=_0x448f26['config']['get']('style')||{},_0x5e6bd9=_0x448f26['plugins']['get']('GeneralHtmlSupport'),_0x3c3ac1=_0x448f26['plugins']['get']('StyleUtils')['normalizeConfig'](_0x448f26['plugins']['get']('DataSchema'),_0x29a597['definitions']);_0xaaf8c6['enableDefaultAttributesIntegration']('style');const _0x4436b6=new Set();for(const _0x153b55 of _0x3c3ac1['block']){const _0x4b13fe=_0x5e6bd9['getGhsAttributeNameForElement'](_0x153b55['element']);_0x4436b6['add'](_0x4b13fe);}const _0xf143fe=new Set();for(const _0x3a7436 of _0x3c3ac1['inline']){const _0x81fc74=_0x5e6bd9['getGhsAttributeNameForElement'](_0x3a7436['element']);_0xf143fe['add'](_0x81fc74);for(const _0x5f1b97 of _0x3a7436['ghsAttributes'])_0xf143fe['add'](_0x5f1b97);}for(const _0x38e1a7 of _0x4436b6)_0xaaf8c6['registerBlockAttribute'](_0x38e1a7),_0xaaf8c6['descriptionFactory']['registerAttributeLabel'](_0x38e1a7,o(_0x5ae37a,'FORMAT_STYLE'));for(const _0x255d22 of _0xf143fe)_0xaaf8c6['registerInlineAttribute'](_0x255d22),_0xaaf8c6['descriptionFactory']['registerAttributeLabel'](_0x255d22,o(_0x5ae37a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3938a2=this['editor'],_0x9ab1a9=_0x3938a2['locale'];_0x3938a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d66f1=>{if('formatBlock'!=_0x1d66f1['type']&&'formatInline'!=_0x1d66f1['type'])return;const {data:_0x52ddbc}=_0x1d66f1;return _0x52ddbc&&'style'===_0x52ddbc['commandName']?_0x52ddbc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9ab1a9,'*Set\x20format:*\x20%0',_0x52ddbc['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x9ab1a9,'*Remove\x20format:*\x20%0',_0x52ddbc['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x8ac1b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2d0b36){super(_0x2d0b36),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3386ad=this['editor'],_0x8d1136=_0x3386ad['model']['document']['selection'];if(!_0x3386ad['plugins']['has']('TableEditing'))return;const _0x3787fe=_0x3386ad['locale'],_0x31c979=_0x3386ad['plugins']['get']('TrackChangesEditing'),_0x5cacfc=_0x3386ad['plugins']['get']('TableUtils');_0x31c979['descriptionFactory']['registerElementLabel']('table',_0x39b8a7=>o(_0x3787fe,'ELEMENT_TABLE',_0x39b8a7)),this['_setupColumnsRowsFixing'](),_0x31c979['enableCommand']('insertTable'),_0x31c979['enableCommand']('selectTableRow'),_0x31c979['enableCommand']('selectTableColumn');for(const _0x4a84c0 of['insertTableRowAbove','insertTableRowBelow']){const _0x20c39d=_0x3386ad['commands']['get'](_0x4a84c0);_0x31c979['enableCommand'](_0x4a84c0,_0x27b376=>{_0x3386ad['model']['change'](_0x5b4b3f=>{_0x27b376();const _0x9c2129='above'===_0x20c39d['order'],_0x4c83b0=_0x5cacfc['getSelectionAffectedTableCells'](_0x8d1136),_0x2cc827=_0x5cacfc['getRowIndexes'](_0x4c83b0),_0x45a8d5=_0x9c2129?_0x2cc827['first']-0x1:_0x2cc827['last']+0x1,_0x143dd2=_0x4c83b0[0x0]['findAncestor']('table'),_0x29f5f6=_0x5cacfc['createTableWalker'](_0x143dd2,{'startRow':_0x45a8d5,'endRow':_0x45a8d5}),_0x112fb3=Array['from'](_0x29f5f6)['map'](_0x1addb6=>_0x5b4b3f['createRangeOn'](_0x1addb6['cell']));_0x31c979['markMultiRangeInsertion'](_0x112fb3,'tableRow');});});}for(const _0x52b3b5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3dc8ea=_0x3386ad['commands']['get'](_0x52b3b5);_0x31c979['enableCommand'](_0x52b3b5,_0x105d5e=>{_0x3386ad['model']['change'](_0x571072=>{_0x105d5e();const _0x1e371e='left'===_0x3dc8ea['order'],_0x2c8c9e=_0x5cacfc['getSelectionAffectedTableCells'](_0x8d1136),_0x18f33c=_0x5cacfc['getColumnIndexes'](_0x2c8c9e),_0x2f5ec5=_0x1e371e?_0x18f33c['first']-0x1:_0x18f33c['last']+0x1,_0x347c43=_0x2c8c9e[0x0]['findAncestor']('table'),_0x44932e=_0x5cacfc['createTableWalker'](_0x347c43,{'startRow':0x0,'column':_0x2f5ec5,'includeAllSlots':!0x1}),_0x177ced=Array['from'](_0x44932e)['map'](_0x3cb00f=>_0x571072['createRangeOn'](_0x3cb00f['cell']));_0x31c979['markMultiRangeInsertion'](_0x177ced,'tableColumn');});});}for(const _0x4ce379 of['removeTableRow','removeTableColumn']){const _0x177f23=_0x4ce379['substr'](0xb),_0x2e9fef=_0x177f23['toLowerCase'](),_0x3308dd=_0x2e9fef['substr'](0x0,0x3)+'span',_0x5b8268='table'+_0x177f23,_0x58a217='min'+_0x177f23,_0x522083='max'+_0x177f23;_0x31c979['enableCommand'](_0x4ce379,()=>{_0x3386ad['model']['change'](_0x2990f8=>{const _0x724186=_0x5cacfc['getSelectionAffectedTableCells'](_0x8d1136),_0x374684=_0x724186[0x0]['findAncestor']('table');let _0x56dcb7;if('removeTableRow'==_0x4ce379){const _0x146ad7=_0x5cacfc['getRowIndexes'](_0x724186);_0x56dcb7={'startRow':_0x146ad7['first'],'endRow':_0x146ad7['last'],'includeAllSlots':!0x0};}else{const _0x3f0582=_0x5cacfc['getColumnIndexes'](_0x724186);_0x56dcb7={'startColumn':_0x3f0582['first'],'endColumn':_0x3f0582['last'],'includeAllSlots':!0x0};}const _0x40d895=_0x5cacfc['createTableWalker'](_0x374684,_0x56dcb7),_0x5605c7=Array['from'](_0x40d895)['map'](({cell:_0x5e5892})=>_0x5e5892),_0x16806b=be(_0x5605c7['filter'](_0x43882e=>_0x43882e['hasAttribute'](_0x3308dd))),_0x1c0f5d=be(_0x5605c7['filter'](_0x234a8b=>!_0x234a8b['hasAttribute'](_0x3308dd)))['map'](_0x2c2225=>_0x2990f8['createRangeOn'](_0x2c2225)),_0x1451ed=_0x31c979['markMultiRangeDeletion'](_0x1c0f5d,_0x5b8268);if(_0x1451ed&&('tableRow'==_0x1451ed['subType']||'tableColumn'==_0x1451ed['subType'])){const _0xd98b24=this['_getSuggestionCoords'](_0x1451ed);for(const _0x19753f of _0x16806b){const _0x4e0c53=_0x2990f8['createRangeOn'](_0x19753f),_0x5a75e5=_0x5cacfc['getCellLocation'](_0x19753f),_0x31342c=_0x19753f['getAttribute'](_0x3308dd)-0x1,_0x38dfbc=_0xd98b24[_0x58a217],_0x23594f=_0xd98b24[_0x522083];_0x38dfbc<=_0x5a75e5[_0x2e9fef]&&_0x5a75e5[_0x2e9fef]+_0x31342c<=_0x23594f&&_0x1451ed['addRange'](_0x4e0c53);}}});});}function _0x6e17da(_0x2f1e09){const _0x28fcb6=Array['from'](_0x8d1136['getRanges']())['map'](_0x950415=>_0x21472f['fromRange'](_0x950415));_0x3386ad['model']['change'](_0x106474=>{const _0x2595b0=_0x106474['batch'];_0x2f1e09=_0x2f1e09['filter'](_0x3e4c67=>'$graveyard'!=_0x3e4c67['root']['rootName']),_0x106474['setSelection'](_0x2f1e09),_0x3386ad['commands']['get']('removeTableRow')['refresh'](),_0x3386ad['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3386ad['model']['enqueueChange'](()=>{_0x3386ad['model']['enqueueChange'](_0x2595b0,_0x533619=>{const _0x412102=_0x28fcb6['filter'](_0x310579=>'$graveyard'!=_0x310579['root']['rootName']);_0x412102['length']>0x0&&_0x533619['setSelection'](_0x412102);for(const _0x2febf7 of _0x28fcb6)_0x2febf7['detach']();});});});}function _0x2426c8(_0x2f78cd){_0x3386ad['model']['change'](_0x169fcd=>{const _0x388202=Array['from'](_0x8d1136['getRanges']())['map'](_0x29a3c8=>_0x21472f['fromRange'](_0x29a3c8)),_0x509e1a=[];for(const _0xb3f7db of _0x2f78cd)for(const _0x31407c of _0xb3f7db['getItems']({'shallow':!0x0}))_0x509e1a['push'](_0x31407c);for(const _0x307d2e of _0x509e1a)'$graveyard'!=_0x307d2e['root']['rootName']&&(_0x169fcd['setSelection'](_0x169fcd['createPositionAt'](_0x307d2e,0x0)),_0x3386ad['commands']['get']('removeTableColumn')['refresh'](),_0x3386ad['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x23c4d2=_0x388202['filter'](_0x25aead=>'$graveyard'!=_0x25aead['root']['rootName']);_0x23c4d2['length']>0x0&&_0x169fcd['setSelection'](_0x23c4d2);for(const _0x54f0b0 of _0x388202)_0x54f0b0['detach']();});}function _0x408f89(_0x1ebe30,_0x23e0d7){return _0x23e0d7['every'](_0xe4a65c=>_0x1ebe30['some'](_0x4deadb=>_0x4deadb['end']['isEqual'](_0xe4a65c['start'])||_0xe4a65c['end']['isEqual'](_0x4deadb['start'])));}function _0x5969ef(_0x4b5c05,_0x5dddac){return!_0x4b5c05['some'](_0x25b84d=>_0x5dddac['some'](_0x51f3a0=>_0x25b84d['isIntersecting'](_0x51f3a0)))&&_0x4b5c05['some'](_0x857c35=>_0x5dddac['some'](_0x48d1c0=>_0x857c35['end']['isTouching'](_0x48d1c0['start'])));}_0x3386ad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b62d7,_0x58b38c,_0x1b88c2)=>{if(!_0x1b88c2['options']['showSuggestionHighlights'])return;const _0x5c9a75=_0x58b38c['item'];if(!_0x5c9a75)return;const _0x326704=_0x1b88c2['mapper']['toViewElement'](_0x5c9a75);function _0x21c9e4(_0x811b91){return Array['isArray'](_0x811b91)?_0x811b91:[_0x811b91];}_0x326704&&'tableCell'===_0x5c9a75['name']&&_0x2fff14(_0x326704,_0x1b88c2['writer'],(_0x3fa5ce,_0x5ac07e,_0x179dfd)=>_0x179dfd['addClass'](_0x21c9e4(_0x5ac07e['classes']),_0x3fa5ce),(_0x27f797,_0x890fb0,_0x49948c)=>_0x49948c['removeClass'](_0x21c9e4(_0x890fb0['classes']),_0x27f797));},{'priority':'highest'}),_0x31c979['descriptionFactory']['registerDescriptionCallback'](_0x1ab754=>{if('insertion'!=_0x1ab754['type']&&'deletion'!=_0x1ab754['type'])return;const _0x49f95d=_0x1ab754['getContainedElement']();if(null!=_0x49f95d&&_0x49f95d['is']('element','table')){if('insertion'==_0x1ab754['type']){const _0x5407fc=_0x1ab754['getItems']()['filter'](_0x5f2671=>_0x5f2671['is']('$textProxy'))['map'](_0x37f270=>_0x37f270['data']);if(_0x5407fc['length'])return{'type':'insertion','content':o(_0x3787fe,'*Insert:*\x20%0',o(_0x3787fe,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5407fc['join']('\x20')+'\x22'))};}if('deletion'==_0x1ab754['type']){const _0x5bc229=_0x1ab754['getItems']()['filter'](_0x58ccc1=>_0x58ccc1['is']('$textProxy'))['map'](_0x488fe1=>_0x488fe1['data']);if(_0x5bc229['length'])return{'type':'deletion','content':o(_0x3787fe,'*Remove:*\x20%0',o(_0x3787fe,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5bc229['join']('\x20')+'\x22'))};}}}),_0x31c979['descriptionFactory']['registerDescriptionCallback'](_0x5ba1ce=>{if('tableRow'==_0x5ba1ce['subType']){const _0x72780d=_0x5ba1ce['getItems']()['filter'](_0x1b20bf=>_0x1b20bf['is']('$textProxy'))['map'](_0x2fd964=>_0x2fd964['data']),_0x1a9fb0=this['_getSuggestionCoords'](_0x5ba1ce),_0x1cd97c=_0x1a9fb0['maxRow']-_0x1a9fb0['minRow']+0x1;if('insertion'==_0x5ba1ce['type'])return _0x72780d['length']?{'type':'insertion','content':o(_0x3787fe,'*Insert:*\x20%0',o(_0x3787fe,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1cd97c,'\x22'+_0x72780d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3787fe,'*Insert:*\x20%0',o(_0x3787fe,'ELEMENT_TABLE_ROW',_0x1cd97c))};if('deletion'==_0x5ba1ce['type'])return _0x72780d['length']?{'type':'deletion','content':o(_0x3787fe,'*Remove:*\x20%0',o(_0x3787fe,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1cd97c,'\x22'+_0x72780d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3787fe,'*Remove:*\x20%0',o(_0x3787fe,'ELEMENT_TABLE_ROW',_0x1cd97c))};}if('tableColumn'==_0x5ba1ce['subType']){const _0x23717f=_0x5ba1ce['getItems']()['filter'](_0x398fec=>_0x398fec['is']('$textProxy'))['map'](_0x537324=>_0x537324['data']),_0x4802ed=this['_getSuggestionCoords'](_0x5ba1ce),_0x350f03=_0x4802ed['maxColumn']-_0x4802ed['minColumn']+0x1;if('insertion'==_0x5ba1ce['type'])return _0x23717f['length']?{'type':'insertion','content':o(_0x3787fe,'*Insert:*\x20%0',o(_0x3787fe,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x350f03,'\x22'+_0x23717f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3787fe,'*Insert:*\x20%0',o(_0x3787fe,'ELEMENT_TABLE_COLUMN',_0x350f03))};if('deletion'==_0x5ba1ce['type'])return _0x23717f['length']?{'type':'deletion','content':o(_0x3787fe,'*Remove:*\x20%0',o(_0x3787fe,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x350f03,'\x22'+_0x23717f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3787fe,'*Remove:*\x20%0',o(_0x3787fe,'ELEMENT_TABLE_COLUMN',_0x350f03))};}}),_0x31c979['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x6e17da),_0x31c979['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x6e17da),_0x31c979['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2426c8),_0x31c979['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2426c8),_0x31c979['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x408f89),_0x31c979['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x408f89),_0x31c979['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5969ef),_0x31c979['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5969ef);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1e8fe2=this['editor'],_0x127f06=_0x1e8fe2['model']['document']['selection'];return(_0x48b92d,_0x12fe5c)=>{_0x1e8fe2['model']['change'](_0x6421f0=>{const {commandName:_0x2fada4,commandParams:_0x465703}=_0x12fe5c;let _0x13dc6c=_0x48b92d[0x0]['end']['nodeBefore'];_0x465703&&_0x465703[0x0]&&!0x1===_0x465703[0x0]['forceValue']&&(_0x13dc6c=_0x48b92d[0x0]['start']['nodeAfter']);const _0x12702a=_0x6421f0['createRangeIn'](_0x13dc6c);if('$graveyard'==_0x12702a['root']['rootName'])return;const _0xd9e357=Array['from'](_0x127f06['getRanges']())['map'](_0x4e337c=>_0x21472f['fromRange'](_0x4e337c));_0x6421f0['setSelection'](_0x12702a),_0x1e8fe2['commands']['get'](_0x2fada4)['refresh'](),_0x465703['push']({'forceDefaultExecution':!0x0}),_0x1e8fe2['execute'](_0x2fada4,..._0x465703);const _0x19f83e=_0xd9e357['filter'](_0x1346f7=>'$graveyard'!=_0x1346f7['root']['rootName']);_0x19f83e['length']>0x0&&_0x6421f0['setSelection'](_0x19f83e);for(const _0x49a95 of _0xd9e357)_0x49a95['detach']();});};}['_getCoordsForCells'](_0x28d92b){const _0x5aaa13=this['editor']['plugins']['get']('TableUtils');let _0x5a96bb=Number['MAX_SAFE_INTEGER'],_0x9fa5fe=Number['MIN_SAFE_INTEGER'],_0x59403b=Number['MAX_SAFE_INTEGER'],_0x533f44=Number['MIN_SAFE_INTEGER'];for(const _0x5d90c0 of _0x28d92b){if('$graveyard'==_0x5d90c0['root']['rootName'])continue;const {row:_0x241fe8,column:_0x3beb44}=_0x5aaa13['getCellLocation'](_0x5d90c0),_0x5bc5b9=_0x5d90c0['hasAttribute']('rowspan')?_0x5d90c0['getAttribute']('rowspan')-0x1:0x0,_0xa87d4b=_0x5d90c0['hasAttribute']('colspan')?_0x5d90c0['getAttribute']('colspan')-0x1:0x0;_0x5a96bb=_0x241fe8<_0x5a96bb?_0x241fe8:_0x5a96bb,_0x9fa5fe=_0x241fe8+_0x5bc5b9>_0x9fa5fe?_0x241fe8+_0x5bc5b9:_0x9fa5fe,_0x59403b=_0x3beb44<_0x59403b?_0x3beb44:_0x59403b,_0x533f44=_0x3beb44+_0xa87d4b>_0x533f44?_0x3beb44+_0xa87d4b:_0x533f44;}return{'minRow':_0x5a96bb,'maxRow':_0x9fa5fe,'minColumn':_0x59403b,'maxColumn':_0x533f44};}['_setupColumnsRowsFixing'](){const _0x517baf=this['editor'],_0x16b856=_0x517baf['plugins']['get']('TrackChangesEditing'),_0x494bf4=_0x517baf['plugins']['get']('TableUtils');_0x517baf['model']['document']['on']('change:data',()=>{const _0x520d00=Array['from'](_0x517baf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23dd5b,data:_0x2609d2}of _0x520d00){const {group:_0x207f97,id:_0x27d0af,subType:_0x2fc4e7}=_0x16b856['_splitMarkerName'](_0x23dd5b);if('suggestion'!=_0x207f97)continue;if(null!=_0x2609d2['oldRange'])continue;const _0x9921a8=_0x16b856['getSuggestion'](_0x27d0af);this['_tablePostFixingSubtypes']['includes'](_0x2fc4e7)&&this['_tableSuggestions']['add'](_0x9921a8);}},{'priority':'low'});const _0x4d496f=(_0x1aa9c3,_0x48e476)=>{let _0x5496c2=!0x1;const _0x39511e=_0x48e476['createRangeOn'](_0x1aa9c3),_0x118f56=_0x1aa9c3['findAncestor']('table'),_0x4deeb3=_0x494bf4['getCellLocation'](_0x1aa9c3);for(const _0x357b5a of this['_tableSuggestions']){const _0x15c50c=_0x357b5a['subType'],_0xed52fc=_0x15c50c['startsWith']('tablePaste'),_0x1743ff=_0x15c50c['substr'](_0xed52fc?0xa:0x5),_0x30310c=_0x1743ff['toLowerCase'](),_0x31830b=_0x30310c['substr'](0x0,0x3)+'span',_0x1221ed='min'+_0x1743ff,_0x4aa047='max'+_0x1743ff;if(!_0x357b5a['isInContent'])continue;if(_0x118f56!=_0x357b5a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x357b5a['isIntersectingWithRange'](_0x39511e))continue;const _0x16dfa8=_0x1aa9c3['hasAttribute'](_0x31830b)?_0x1aa9c3['getAttribute'](_0x31830b)-0x1:0x0,_0x505491=this['_getSuggestionCoords'](_0x357b5a),_0x29f719=_0x505491[_0x1221ed],_0x218f23=_0x505491[_0x4aa047];_0x29f719<=_0x4deeb3[_0x30310c]&&_0x4deeb3[_0x30310c]+_0x16dfa8<=_0x218f23&&(_0x357b5a['addRange'](_0x39511e),_0x5496c2=!0x0);}return _0x5496c2;};_0x517baf['model']['document']['registerPostFixer'](_0x1292c4=>{let _0xb9bb48=!0x1;for(const _0x4079d9 of _0x517baf['model']['document']['differ']['getChanges']())if('insert'==_0x4079d9['type']){if('tableRow'==_0x4079d9['name']){for(const _0x47ff4b of _0x4079d9['position']['nodeAfter']['getChildren']())_0xb9bb48=_0xb9bb48||_0x4d496f(_0x47ff4b,_0x1292c4);}else'tableCell'==_0x4079d9['name']&&(_0xb9bb48=_0xb9bb48||_0x4d496f(_0x4079d9['position']['nodeAfter'],_0x1292c4));}return _0xb9bb48;});}['_getSuggestionCoords'](_0x825a9e){return this['_getCoordsForCells'](_0x825a9e['getRanges']()['map'](_0x93b7b6=>_0x93b7b6['start']['nodeAfter']));}}function be(_0x211b32){return Array['from'](new Set(_0x211b32)['values']());}class vt extends _0x8ac1b{static get['requires'](){return[It];}['afterInit'](){const _0x3b9a6a=this['editor'],_0x5f593f=_0x3b9a6a['model']['document']['selection'],_0x4859d0=_0x3b9a6a['locale'];if(!_0x3b9a6a['plugins']['has']('TableEditing'))return;const _0x179174=_0x3b9a6a['plugins']['get']('TrackChangesEditing'),_0x3c5eb2=_0x3b9a6a['plugins']['get']('TableUtils'),_0x39bd29=_0x3b9a6a['plugins']['get'](It);_0x39bd29['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x179174['enableCommand']('mergeTableCells',()=>{const _0x2605cf=_0x3c5eb2['getSelectionAffectedTableCells'](_0x3b9a6a['model']['document']['selection']);_0x3b9a6a['model']['change'](()=>{_0x179174['markMultiRangeBlockFormat'](_0x2605cf,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3b9a6a['commands']['get']('mergeTableCells')['on']('execute',(_0x2a7f28,_0x1d6f5b)=>{_0x3b9a6a['commands']['get']('trackChanges')['value']&&(_0x1d6f5b['length']>0x0&&_0x1d6f5b[_0x1d6f5b['length']-0x1]&&_0x1d6f5b[_0x1d6f5b['length']-0x1]['forceDefaultExecution']||_0x179174['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2a7f28['stop']());},{'priority':'highest'});for(const _0x22575c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4afbb6=_0x3b9a6a['commands']['get'](_0x22575c);_0x179174['enableCommand'](_0x22575c,()=>{const _0x5e4d83=_0x3b9a6a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x592253=>_0x592253['is']('element','tableCell')),_0x11fe35=_0x4afbb6['value'];_0x3b9a6a['model']['change'](()=>{_0x179174['markMultiRangeBlockFormat']([_0x5e4d83,_0x11fe35],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5ea5c1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2d4691=_0x3b9a6a['commands']['get'](_0x5ea5c1);_0x179174['enableCommand'](_0x5ea5c1,()=>{const _0x133a78=_0x3c5eb2['getSelectionAffectedTableCells'](_0x3b9a6a['model']['document']['selection'])[0x0],_0x40d346=_0x133a78['findAncestor']('table'),{column:_0x263879,row:_0x5c030d}=_0x3c5eb2['getCellLocation'](_0x133a78);let _0x1e6686=[];if('horizontally'==_0x2d4691['direction']){const _0x53ff79=_0x3c5eb2['createTableWalker'](_0x40d346,{'startRow':_0x5c030d,'endRow':_0x5c030d,'includeAllSlots':!0x0});_0x1e6686=Array['from'](_0x53ff79)['map'](_0x34ddc6=>_0x34ddc6['cell']);}else{const _0x4b0181=_0x3c5eb2['createTableWalker'](_0x40d346,{'column':_0x263879,'includeAllSlots':!0x0});_0x1e6686=Array['from'](_0x4b0181)['map'](_0x35df85=>_0x35df85['cell']);}_0x3b9a6a['model']['change'](_0x583f89=>{_0x179174['markBlockFormat'](_0x583f89['createRangeOn'](_0x133a78),{'commandName':_0x5ea5c1,'commandParams':[]},_0x1e6686,_0x5ea5c1);});});}_0x179174['descriptionFactory']['registerDescriptionCallback'](_0x212236=>{if('formatBlock'!=_0x212236['type']&&'formatInline'!=_0x212236['type'])return;const {data:_0x8dcb9d}=_0x212236;return _0x8dcb9d&&'mergeTableCells'==_0x8dcb9d['commandName']?{'type':'format','content':o(_0x4859d0,'*Merge\x20cells*')}:void 0x0;}),_0x179174['descriptionFactory']['registerDescriptionCallback'](_0x137468=>{if('formatBlock'!=_0x137468['type']&&'formatInline'!=_0x137468['type'])return;const {data:_0x106140}=_0x137468;return _0x106140?'splitTableCellVertically'==_0x106140['commandName']?{'type':'format','content':o(_0x4859d0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x106140['commandName']?{'type':'format','content':o(_0x4859d0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x53d148=_0x39bd29['_acceptFormatSuggestionCallbackFactory']();for(const _0x298825 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x179174['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x298825,'accept',_0x53d148);for(const _0x524b5b of['splitTableCellVertically','splitTableCellHorizontally'])_0x179174['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x524b5b,'accept',_0x53d148);_0x179174['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x33eaed=>{_0x3b9a6a['model']['change'](_0x3a949=>{const _0x2851f5=Array['from'](_0x5f593f['getRanges']())['map'](_0x4e9911=>_0x21472f['fromRange'](_0x4e9911));_0x3a949['setSelection'](_0x33eaed),_0x3b9a6a['commands']['get']('mergeTableCells')['refresh'](),_0x3b9a6a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5683c3=_0x2851f5['filter'](_0x3dd2a9=>'$graveyard'!=_0x3dd2a9['root']['rootName']);_0x5683c3['length']>0x0&&_0x3a949['setSelection'](_0x5683c3);for(const _0x18222d of _0x2851f5)_0x18222d['detach']();});});for(const _0x4a2681 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x911139=_0x3b9a6a['commands']['get'](_0x4a2681);_0x911139['on']('set:isEnabled',(_0x530cb2,_0x12ffab,_0x510117)=>{if(_0x510117){const _0x2eb96f=_0x3b9a6a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5bc4eb=>_0x5bc4eb['is']('element','tableCell'));this['_areMergableCells'](_0x911139['value'],_0x2eb96f)||(_0x530cb2['return']=!0x1,_0x530cb2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4a2322=this['editor']['commands']['get']('mergeTableCells'),_0x1daca7=this['editor']['plugins']['get']('TableUtils');if(!_0x4a2322['isEnabled'])return!0x1;const _0x5e14ee=_0x1daca7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xe9c5e7 of _0x5e14ee)for(const _0x4098a6 of _0x5e14ee)if(_0xe9c5e7!=_0x4098a6&&!this['_areMergableCells'](_0xe9c5e7,_0x4098a6))return!0x1;return!0x0;}['_areMergableCells'](_0x2193ce,_0x4329f6){const _0x4959df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4add33=this['editor']['model']['createRangeOn'](_0x2193ce),_0x5e90cc=this['editor']['model']['createRangeOn'](_0x4329f6),_0x35711e=new Set(),_0x542583=new Set();for(const _0x3728f7 of _0x4959df['getSuggestions']())if(('insertion'==_0x3728f7['type']||'deletion'==_0x3728f7['type']||'mergeTableCells'==_0x3728f7['subType'])&&_0x3728f7['isInContent']){for(const _0x5993e3 of _0x3728f7['getRanges']())_0x5993e3['containsRange'](_0x4add33,!0x0)&&_0x35711e['add'](_0x3728f7['type']+':'+_0x3728f7['author']['id']),_0x5993e3['containsRange'](_0x5e90cc,!0x0)&&_0x542583['add'](_0x3728f7['type']+':'+_0x3728f7['author']['id']);}if(_0x35711e['size']!=_0x542583['size'])return!0x1;for(const _0x50d4af of _0x35711e)if(!_0x542583['has'](_0x50d4af))return!0x1;return!0x0;}}class Ct extends _0x8ac1b{static get['requires'](){return[It];}['afterInit'](){const _0xe9351e=this['editor'];if(!_0xe9351e['plugins']['has']('TableEditing'))return;const _0x15b387=_0xe9351e['locale'],_0x2e01cd=_0xe9351e['plugins']['get']('TrackChangesEditing');_0x2e01cd['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2e01cd['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2e01cd['registerBlockAttribute']('headingRows'),_0x2e01cd['registerBlockAttribute']('headingColumns'),_0x2e01cd['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x15b387,'FORMAT_HEADER_ROW')),_0x2e01cd['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x15b387,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x83b6bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4eb5f3=this['editor']['plugins']['get']('TableUtils'),_0x37d619=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x242854({showActiveMarker:_0x2ccdf1=!0x0,setDataAttribute:_0x12c2c3=!0x0}={}){return(_0x5ddb55,_0x100566,_0x2bd54e)=>{const {type:_0x1c748f,id:_0x7abdca}=_0x83b6bd['_splitMarkerName'](_0x100566['markerName']),_0x14289d=_0x83b6bd['getSuggestion'](_0x7abdca),_0x289939=_0x14289d['data'];if('formatBlock'!=_0x14289d['type']||!_0x289939||'setTableColumnHeader'!=_0x289939['commandName'])return;if(_0x100566['item'])return void _0x5ddb55['stop']();if(!_0x2bd54e['consumable']['consume'](_0x100566['markerRange'],_0x5ddb55['name']))return;const _0x53dd57=_0x100566['markerRange']['start']['nodeAfter'],_0x4a2eea=_0x100566['markerRange']['end']['nodeBefore'],_0x554c43=_0x53dd57['parent']['parent'],{column:_0x11b8ec}=_0x4eb5f3['getCellLocation'](_0x53dd57),{column:_0x344882}=_0x4eb5f3['getCellLocation'](_0x4a2eea);for(let _0x499d05=_0x11b8ec;_0x499d05<=_0x344882;_0x499d05++){const _0x4355f9=_0x4eb5f3['createTableWalker'](_0x554c43,{'column':_0x499d05,'includeAllSlots':!0x1});for(const _0x191018 of _0x4355f9){const _0x525870=_0x191018['cell'],_0x4a56b5=_0x2bd54e['mapper']['toViewElement'](_0x525870);_0x2bd54e['writer']['addClass']('ck-suggestion-marker-'+_0x1c748f,_0x4a56b5),_0x12c2c3&&_0x2bd54e['writer']['setAttribute']('data-suggestion',_0x7abdca,_0x4a56b5),_0x2bd54e['mapper']['bindElementToMarker'](_0x4a56b5,_0x100566['markerName']),_0x2ccdf1&&(_0x83b6bd['activeMarkers']['includes'](_0x100566['markerName'])?_0x2bd54e['writer']['addClass']('ck-suggestion-marker--active',_0x4a56b5):_0x2bd54e['writer']['removeClass']('ck-suggestion-marker--active',_0x4a56b5));}}};}_0x83b6bd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x37d619),_0x83b6bd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x37d619),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x242854(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22a71d,_0x2d8d7a,_0xac541a)=>{_0xac541a['options']['showSuggestionHighlights']&&_0x242854({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x22a71d,_0x2d8d7a,_0xac541a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x38c386,_0x5e69fa,_0x1754ce)=>{const {type:_0xdf6adc,id:_0x37ad80}=_0x83b6bd['_splitMarkerName'](_0x5e69fa['markerName']),_0xa1e31=_0x83b6bd['getSuggestion'](_0x37ad80),_0x26a04e=_0xa1e31['data'];if('formatBlock'!=_0xa1e31['type']||!_0x26a04e||'setTableColumnHeader'!=_0x26a04e['commandName'])return;const _0x409ef8=_0x1754ce['mapper']['markerNameToElements'](_0x5e69fa['markerName']);if(_0x409ef8){for(const _0x371f98 of _0x409ef8)_0x1754ce['writer']['removeClass']('ck-suggestion-marker-'+_0xdf6adc,_0x371f98),_0x1754ce['writer']['removeClass']('ck-suggestion-marker--active',_0x371f98),_0x1754ce['writer']['removeAttribute']('data-suggestion',_0x371f98),_0x1754ce['mapper']['unbindElementFromMarkerName'](_0x371f98,_0x5e69fa['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13e742=this['editor'],_0x146356=_0x13e742['locale'];function _0x46c164(_0x489251){return{'type':'format','content':o(_0x146356,'*Format:*\x20%0',_0x489251)};}_0x13e742['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b5431=>{if('formatBlock'!=_0x1b5431['type'])return;const {data:_0x2afd52}=_0x1b5431;if(_0x2afd52){if('setTableRowHeader'==_0x2afd52['commandName']){const _0x3e1288=_0x2afd52['commandParams'][0x0]['forceValue'];return _0x46c164(o(_0x146356,_0x3e1288?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2afd52['commandName']){const _0x4b46ec=_0x2afd52['commandParams'][0x0]['forceValue'];return _0x46c164(o(_0x146356,_0x4b46ec?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x2aa7d1=>[_0x2aa7d1,null]));class _t extends _0x8ac1b{static get['requires'](){return[It];}['afterInit'](){const _0x1a9b1f=this['editor'];if(!_0x1a9b1f['plugins']['has']('TableClipboard'))return;const _0x488333=_0x1a9b1f['plugins']['get']('TrackChangesEditing'),_0x267eed=_0x1a9b1f['plugins']['get']('TableUtils'),_0x1b241e=_0x1a9b1f['plugins']['get'](It),_0x2b379a=_0x1a9b1f['plugins']['get']('TableClipboard');_0x1b241e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1a9b1f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1a9b1f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x270a2f=null;_0x1a9b1f['model']['on']('insertContent',(_0x1722e4,_0x30bb53)=>{const [_0x5d9ee8,_0x110279]=_0x30bb53,_0x5db6b6=_0x30bb53[_0x30bb53['length']-0x1];_0x5db6b6&&_0x5db6b6['forceDefaultExecution']||_0x488333['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3cf1f5,_0x49f5e0,_0x2f8025,_0x17ee7d,_0x4dbf6b){if(_0x49f5e0&&!_0x49f5e0['is']('documentSelection'))return!0x1;const _0x132882=_0x4dbf6b['getTableIfOnlyTableInContent'](_0x3cf1f5,_0x2f8025);if(!_0x132882||!Re(_0x132882,void 0x0,_0x17ee7d))return!0x1;const _0x4d59e0=_0x17ee7d['getSelectionAffectedTableCells'](_0x2f8025['document']['selection']);if(!_0x4d59e0['length'])return!0x1;const _0x2c04a8=_0x4d59e0[0x0]['findAncestor']('table'),_0x4e11a3=_0x17ee7d['getRowIndexes'](_0x4d59e0),_0x1a516c=_0x17ee7d['getColumnIndexes'](_0x4d59e0),_0x183505={'startRow':_0x4e11a3['first'],'endRow':_0x4e11a3['last'],'startColumn':_0x1a516c['first'],'endColumn':_0x1a516c['last']};return 0x1==_0x4d59e0['length']&&(_0x183505['endRow']+=_0x17ee7d['getRows'](_0x132882)-0x1,_0x183505['endColumn']+=_0x17ee7d['getColumns'](_0x132882)-0x1),Re(_0x2c04a8,_0x183505,_0x17ee7d);}(_0x5d9ee8,_0x110279,_0x1a9b1f['model'],_0x267eed,_0x2b379a)&&(_0x1722e4['stop'](),_0x270a2f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1a9b1f['model']['change'](()=>{_0x1a9b1f['model']['insertContent'](_0x30bb53[0x0],_0x30bb53[0x1],_0x30bb53[0x2],{'forceDefaultExecution':!0x0});const _0x483637=_0x38f7ff(),{rowInsertionRanges:_0xd67ea2,columnInsertionRanges:_0x2c4f95,insertionRanges:_0x597cbf,deletionRanges:_0x5a27ed,cells:_0x32c784}=_0x270a2f;_0xd67ea2['length']&&_0x488333['markMultiRangeInsertion'](_0xd67ea2,'tablePasteRow',{'tablePasteChainId':_0x483637}),_0x2c4f95['length']&&_0x488333['markMultiRangeInsertion'](_0x2c4f95,'tablePasteColumn',{'tablePasteChainId':_0x483637}),_0x597cbf['length']&&(_0x488333['markMultiRangeInsertion'](_0x597cbf,'tablePaste',{'tablePasteChainId':_0x483637,'skipNestingCheck':!0x0}),_0x597cbf['forEach'](_0x2c1816=>_0x2c1816['detach']?.())),_0x5a27ed['length']&&(_0x488333['markMultiRangeDeletion'](_0x5a27ed,'tablePaste',{'tablePasteChainId':_0x483637,'skipNestingCheck':!0x0}),_0x5a27ed['forEach'](_0x4302d4=>_0x4302d4['detach']?.()));const _0x39ab01=_0x488333['markMultiRangeBlockFormat'](_0x32c784['map'](({element:_0x59d173})=>_0x59d173),{'formatGroupId':_0x38f7ff()},[],'tablePasteCell',{'tablePasteChainId':_0x483637});if(_0x39ab01){const _0x3b7c7f=_0x39ab01['getMarkers'](),_0x5f40f7=[];for(const {element:_0x34ec27,attributes:_0x373222}of _0x32c784){if(!_0x373222)continue;const _0x383142=_0x1a9b1f['model']['createRangeOn'](_0x34ec27),_0xac93ec=_0x3b7c7f['find'](_0x30f8f9=>_0x30f8f9['getRange']()['isEqual'](_0x383142));_0xac93ec&&_0x5f40f7['push']([_0xac93ec['name'],_0x373222]);}_0x5f40f7['length']&&_0x39ab01['setAttribute']('markerAttributes',Object['fromEntries'](_0x5f40f7));}_0x270a2f=null;}));},{'priority':_0x16f7c0['high']+0xa}),_0x1a9b1f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x548fd3,_0x2c0ca1)=>{const [_0x404d3f,_0x3685f8,,_0x56cb2c]=_0x2c0ca1;if(!_0x270a2f)return;_0x548fd3['stop']();const _0x18a57e=_0x404d3f['cell'],_0x442bfc=_0x3685f8,_0x18756f=ke(_0x18a57e),_0x36ec15=ke(_0x442bfc);_0x548fd3['return']=_0x18a57e;let _0x52365b=null,_0x2dbfa4=null;if(_0x36ec15||_0x18756f){if(_0x18756f&&!_0x36ec15){_0x56cb2c['remove'](_0x18a57e['getChild'](0x0));for(const _0x377ade of Array['from'](_0x442bfc['getChildren']()))_0x56cb2c['insert'](_0x377ade,_0x18a57e,'end');const _0x1e1887=_0x270a2f['rowInsertionIndexes']['includes'](_0x404d3f['row']),_0x8baf53=_0x270a2f['columnInsertionIndexes']['includes'](_0x404d3f['column']);_0x1e1887||_0x8baf53||(_0x52365b=_0x21472f['fromRange'](_0x56cb2c['createRangeIn'](_0x18a57e)));}else _0x36ec15&&!_0x18756f&&(_0x2dbfa4=_0x56cb2c['createRangeIn'](_0x18a57e));}else{const _0x5bafd4=_0x56cb2c['createElement']('tableCellSuggestion'),_0x257b0f=_0x56cb2c['createElement']('tableCellSuggestion');_0x56cb2c['wrap'](_0x56cb2c['createRangeIn'](_0x18a57e),_0x257b0f),_0x56cb2c['insert'](_0x5bafd4,_0x18a57e,0x0);for(const _0x11e673 of Array['from'](_0x442bfc['getChildren']()))_0x56cb2c['insert'](_0x11e673,_0x5bafd4,'end');_0x52365b=_0x21472f['fromRange'](_0x56cb2c['createRangeOn'](_0x5bafd4)),_0x2dbfa4=_0x21472f['fromRange'](_0x56cb2c['createRangeOn'](_0x257b0f));}const _0x3e9859=Array['from'](_0x442bfc['getAttributes']())['filter'](([_0x290990])=>Pe['includes'](_0x290990));_0x270a2f['cells']['push']({'element':_0x18a57e,'attributes':_0x3e9859['length']?Object['fromEntries'](_0x3e9859):null}),_0x52365b&&_0x270a2f['insertionRanges']['push'](_0x52365b),_0x2dbfa4&&_0x270a2f['deletionRanges']['push'](_0x2dbfa4);},{'priority':'high'}),_0x267eed['on']('insertColumns',(_0x2b580f,_0x3fa558)=>{const [_0x1a558a,_0x4106dd={}]=_0x3fa558;if(!_0x270a2f)return;const _0x3e65c5=_0x4106dd['at']||0x0,_0x416485=_0x4106dd['columns']||0x1;_0x270a2f['columnInsertionIndexes']=new Array(_0x416485)['fill'](_0x3e65c5)['map']((_0x30cb17,_0x4fad7e)=>_0x30cb17+_0x4fad7e);for(const {cell:_0x5b1414}of _0x267eed['createTableWalker'](_0x1a558a,{'startColumn':_0x3e65c5,'endColumn':_0x3e65c5+_0x416485-0x1}))_0x270a2f['columnInsertionRanges']['push'](_0x1a9b1f['model']['createRangeOn'](_0x5b1414));},{'priority':'low'}),_0x267eed['on']('insertRows',(_0x5db106,_0x5823ac)=>{const [_0x1e68f1,_0x22b354={}]=_0x5823ac;if(!_0x270a2f)return;const _0x161964=_0x22b354['at']||0x0,_0x3d7fed=_0x22b354['rows']||0x1;_0x270a2f['rowInsertionIndexes']=new Array(_0x3d7fed)['fill'](_0x161964)['map']((_0x46dda8,_0x335a63)=>_0x46dda8+_0x335a63);for(const {cell:_0x1809bd}of _0x267eed['createTableWalker'](_0x1e68f1,{'startRow':_0x161964,'endRow':_0x161964+_0x3d7fed-0x1}))_0x270a2f['rowInsertionRanges']['push'](_0x1a9b1f['model']['createRangeOn'](_0x1809bd));},{'priority':'low'}),_0x488333['descriptionFactory']['registerDescriptionCallback'](_0x4945a5=>{if(_0x4945a5['subType']&&_0x4945a5['subType']['startsWith']('tablePaste'))return _0x4945a5['previous']?{}:{'type':'insertion','content':o(_0x1a9b1f['locale'],'*Replace\x20table\x20cells*')};});const _0x4ff7ec=()=>!0x1;for(const _0x10a8d9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x488333['_suggestionFactory']['registerCustomCallback']('insertion',_0x10a8d9,'join',_0x4ff7ec),_0x488333['_suggestionFactory']['registerCustomCallback']('deletion',_0x10a8d9,'join',_0x4ff7ec),_0x488333['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10a8d9,'join',_0x4ff7ec);_0x488333['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4ff7ec),_0x488333['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x52fd00,_0x44ed44,_0x55ae0b)=>{const _0x388881=_0x52fd00['map'](_0x255b88=>_0x255b88['getContainedElement']())['filter'](_0x34763b=>_0x34763b),_0x14c69b=new Map(_0x388881['map'](_0x242752=>[_0x242752,null]));if(_0x270a2f){for(const {element:_0x2e2206,attributes:_0x5d6860}of _0x270a2f['cells'])_0x5d6860&&_0x14c69b['set'](_0x2e2206,_0x5d6860);}else{if(_0x55ae0b&&_0x55ae0b['markerAttributes'])for(const [_0x290931,_0x326dd7]of Object['entries'](_0x55ae0b['markerAttributes'])){const _0x4d9c70=_0x1a9b1f['model']['markers']['get'](_0x290931),_0x2ef377=_0x4d9c70?_0x4d9c70['getRange']()['getContainedElement']():null;_0x2ef377&&_0x14c69b['set'](_0x2ef377,_0x326dd7);}}_0x1a9b1f['model']['change'](_0x1407e9=>{for(const [_0x3ca294,_0x5ab673]of _0x14c69b)_0x1407e9['setAttributes']({...we,..._0x5ab673},_0x3ca294);});});const _0x473337=(_0x437be9,_0x112c4b)=>{_0x488333['_suggestionFactory']['registerCustomCallback'](_0x437be9,'tablePaste',_0x112c4b,(_0xe36f0e,_0x3478e1,_0x33c459)=>{_0x1a9b1f['model']['change'](_0x44b142=>{const _0x280b69=[];for(const _0xe605f8 of _0xe36f0e){const _0x3d50aa=_0xe605f8['start']['nodeAfter'];_0x3d50aa['is']('element','tableCellSuggestion')&&_0x280b69['push'](_0x3d50aa);}_0x488333['_suggestionFactory']['getSuggestionCallback'](_0x437be9,null,_0x112c4b)(_0xe36f0e,_0x3478e1,_0x33c459);for(const _0x1e7952 of _0x280b69)'$graveyard'!=_0x1e7952['root']['rootName']&&_0x44b142['unwrap'](_0x1e7952);});});};_0x473337('insertion','accept'),_0x473337('insertion','discard'),_0x473337('deletion','accept'),_0x473337('deletion','discard'),_0x488333['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x9950d7=>{const _0x7b7409=_0x9950d7['map'](_0x53a93a=>_0x53a93a['getContainedElement']()),_0x332724=_0x7b7409[0x0]['findAncestor']('table'),{minRow:_0x15cfe9,maxRow:_0x5e74c2}=_0x1b241e['_getCoordsForCells'](_0x7b7409);_0x267eed['removeRows'](_0x332724,{'at':_0x15cfe9,'rows':_0x5e74c2-_0x15cfe9+0x1});}),_0x488333['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x22ae12=>{const _0x24491f=_0x22ae12['map'](_0x4ad696=>_0x4ad696['getContainedElement']()),_0x28902b=_0x24491f[0x0]['findAncestor']('table'),{minColumn:_0x5c9a3e,maxColumn:_0x4599dc}=_0x1b241e['_getCoordsForCells'](_0x24491f);_0x267eed['removeColumns'](_0x28902b,{'at':_0x5c9a3e,'columns':_0x4599dc-_0x5c9a3e+0x1});});const _0x3812db=(_0x4a5f5b,_0x43d5d2)=>{if(!_0x43d5d2['subType']||!_0x43d5d2['subType']['startsWith']('tablePaste'))return;const _0x2f67b2=_0x43d5d2['attributes']['tablePasteChainId'],_0xe42c65=_0x488333['getSuggestions']()['filter'](_0x34852c=>_0x34852c['isInContent']&&_0x34852c['attributes']&&_0x34852c['attributes']['tablePasteChainId']==_0x2f67b2);_0xe42c65['length']&&_0x43d5d2['getAllAdjacentSuggestions']()['length']!=_0xe42c65['length']&&_0xe42c65['reduce']((_0x33bc00,_0xdff138)=>(_0x33bc00['next']=_0xdff138,_0xdff138['previous']=_0x33bc00,_0xdff138));};function _0x393e70(_0x4ea297,_0x2a180d=!0x0){const {id:_0x11f6c5,authorId:_0x1fdf5b}=_0x488333['_splitMarkerName'](_0x4ea297['markerName']),_0x3af56f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1b23ae=_0x488333['activeMarkers']['includes'](_0x4ea297['markerName']);return _0x1b23ae&&_0x3af56f['push']('ck-suggestion-marker--active'),{'classes':_0x3af56f,'attributes':{'data-suggestion':_0x11f6c5,'data-author-id':_0x1fdf5b},'priority':_0x1b23ae&&_0x2a180d?0xbc2:0xbb8};}_0x488333['on']('suggestionLoaded',_0x3812db,{'priority':'high'}),_0x488333['on']('suggestionUnloaded',_0x3812db,{'priority':'high'}),_0x1a9b1f['model']['document']['registerPostFixer'](()=>{let _0x560234=!0x1;const _0x3543be=Array['from'](_0x1a9b1f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43355f,data:_0x2b5865}of _0x3543be){const {group:_0x4d0df8,type:_0x49b44a,id:_0x79f7e8}=_0x488333['_splitMarkerName'](_0x43355f);if('suggestion'!=_0x4d0df8||'deletion'!=_0x49b44a||_0x2b5865['oldRange'])continue;if(!_0x488333['hasSuggestion'](_0x79f7e8))continue;const _0x5aac5d=_0x488333['getSuggestion'](_0x79f7e8)['getRanges'](),_0x532703=_0x1a9b1f['plugins']['get']('Users')['me'];for(const _0x46f4a7 of _0x488333['getSuggestions']()){if(!_0x46f4a7['isInContent']||_0x46f4a7['author']!=_0x532703)continue;if('formatBlock'!=_0x46f4a7['type']||'tablePasteCell'!=_0x46f4a7['subType'])continue;if(_0x46f4a7['getRanges']()['every'](_0x2947f7=>_0x5aac5d['some'](_0x2aa6f2=>_0x2aa6f2['containsRange'](_0x2947f7,!0x0)))){for(const _0x538328 of _0x46f4a7['getAllAdjacentSuggestions']())_0x538328['isInContent']&&(_0x538328['discard'](),_0x560234=!0x0);}}}return _0x560234;}),_0x1a9b1f['model']['document']['registerPostFixer'](_0x3675fa=>{const _0x5d9fa5=_0x1a9b1f['commands']['get']('redo');if(!_0x5d9fa5||!_0x5d9fa5['_createdBatches']['has'](_0x3675fa['batch']))return!0x1;let _0x26a3a7=!0x1;const _0x53ccd8=_0x1a9b1f['plugins']['get']('Users')['me'],_0xcf8a01=_0x1a9b1f['model']['document']['differ']['getChanges'](),_0x24b84e=Array['from'](_0x1a9b1f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x30296a,data:_0x341e78})=>{const {group:_0x5365ff,subType:_0x279a7a,authorId:_0x362c41}=_0x488333['_splitMarkerName'](_0x30296a);return'suggestion'==_0x5365ff&&'tablePaste'==_0x279a7a&&_0x362c41==_0x53ccd8['id']&&!_0x341e78['oldRange'];});for(const _0x157def of _0xcf8a01){if('insert'!=_0x157def['type']||'tableCellSuggestion'!=_0x157def['name']||0x1!=_0x157def['length'])continue;const _0x4a55a1=_0x3675fa['createRange'](_0x157def['position'],_0x157def['position']['getShiftedBy'](0x1));if(!_0x24b84e['find'](({data:_0x3e5f81})=>_0x3e5f81['newRange']['isEqual'](_0x4a55a1))){for(const {name:_0x4c3fd1,data:_0x5e7466}of _0x24b84e)if(_0x4a55a1['containsRange'](_0x5e7466['newRange'])){_0x3675fa['updateMarker'](_0x4c3fd1,{'range':_0x4a55a1}),_0x26a3a7=!0x0;break;}}}return _0x26a3a7;}),_0x1a9b1f['model']['document']['registerPostFixer'](_0x46bda2=>{let _0x587205=!0x1;const _0xbb287a=_0x1a9b1f['plugins']['get']('Users')['me'],_0x51e9fe=_0x488333['getSuggestions']()['filter'](_0x214058=>_0x214058['isInContent']&&_0x214058['author']==_0xbb287a),_0x30a736=new Set(),_0x59fe3e=new Set();for(const _0x58022c of _0x51e9fe)if('tablePaste'==_0x58022c['subType'])for(const _0x360165 of _0x58022c['getMarkers']()){const _0x21896d=_0x360165['getRange']()['getContainedElement']();if(_0x21896d){if(_0x21896d['is']('element','tableCellSuggestion')&&ke(_0x21896d)){_0x58022c['removeMarker'](_0x360165['name']),_0x30a736['add'](_0x21896d),_0x587205=!0x0;const _0x9769df=_0x21896d['nextSibling'],_0x3ea4ec=_0x21896d['previousSibling'],_0x300853=_0x9769df&&_0x9769df['is']('element','tableCellSuggestion'),_0x22e367=_0x3ea4ec&&_0x3ea4ec['is']('element','tableCellSuggestion');_0x300853&&!_0x30a736['has'](_0x9769df)&&_0x59fe3e['add'](_0x9769df),_0x22e367&&!_0x30a736['has'](_0x3ea4ec)&&_0x59fe3e['add'](_0x3ea4ec);}else _0x21896d['is']('element','paragraph')&&_0x21896d['isEmpty']&&(_0x58022c['removeMarker'](_0x360165['name']),_0x587205=!0x0);}}else{if('tablePasteCell'==_0x58022c['subType']){if(!_0x58022c['attributes']||!_0x58022c['attributes']['tablePasteChainId'])continue;const _0x5582d9=_0x58022c['attributes']['markerAttributes'];if(_0x5582d9&&Object['keys'](_0x5582d9)['length'])continue;const _0x3016d8=_0x58022c['attributes']['tablePasteChainId'];let _0x51c3af=!0x0,_0x1d371c=!0x0;for(const _0x2b7f59 of _0x51e9fe)if(_0x2b7f59['subType']&&_0x2b7f59['subType']['startsWith']('tablePaste')){if(!_0x2b7f59['attributes']['tablePasteChainId']){_0x1d371c=!0x1;break;}if(_0x2b7f59['id']!=_0x58022c['id']&&_0x2b7f59['attributes']['tablePasteChainId']==_0x3016d8){_0x51c3af=!0x1;break;}}_0x1d371c&&_0x51c3af&&(_0x58022c['removeMarkers'](),_0x587205=!0x0);}}for(const _0x22f87c of _0x30a736)_0x46bda2['remove'](_0x22f87c);for(const _0x182fae of _0x59fe3e)_0x46bda2['unwrap'](_0x182fae);return _0x587205;}),_0x1a9b1f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x11a7cf=>_0x393e70(_0x11a7cf),'converterPriority':'high'}),_0x1a9b1f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4b72c4,_0x4ab9ae)=>_0x4ab9ae['options']['showSuggestionHighlights']?_0x393e70(_0x4b72c4,!0x1):null,'converterPriority':'high'});const _0x3cfa4f=_0x1a9b1f['editing']['view'];this['listenTo'](_0x3cfa4f['document'],'clipboardOutput',(_0x45ab8e,_0x139872)=>{const _0x25d348=[];for(const _0x224496 of _0x3cfa4f['createRangeIn'](_0x139872['content'])['getItems']())_0x224496['is']('element','suggestion-td')&&_0x25d348['push'](_0x224496);_0x3cfa4f['change'](_0x2a72f0=>{for(const _0x416ad9 of _0x25d348)_0x2a72f0['move'](_0x2a72f0['createRangeIn'](_0x416ad9),_0x2a72f0['createPositionBefore'](_0x416ad9)),_0x2a72f0['remove'](_0x416ad9);});});}}function ke(_0x274943){if(_0x274943['isEmpty'])return!0x0;const _0x2f24b9=_0x274943['getChild'](0x0);return _0x2f24b9['is']('element','paragraph')&&_0x2f24b9['isEmpty'];}function Re(_0x32c4fc,_0x21f4c0={},_0x5cc2b8){for(const {isAnchor:_0x13fdd8,cellHeight:_0x3aee2f,cellWidth:_0x270842}of _0x5cc2b8['createTableWalker'](_0x32c4fc,{'includeAllSlots':!0x0,..._0x21f4c0}))if(!_0x13fdd8||0x1!=_0x3aee2f||0x1!=_0x270842)return!0x1;return!0x0;}class Nt extends _0x8ac1b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x492fcf=this['editor']['plugins']['get']('TrackChangesEditing');_0x492fcf['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x492fcf['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x492fcf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x492fcf['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x492fcf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x492fcf['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x27725e,_0x353f07){const _0x23eed6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x430d06=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x370016=_0x353f07['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x67e785=_0x430d06['getColumnGroupElement'](_0x370016);let _0x5e2958=_0x67e785?_0x430d06['getTableColumnsWidths'](_0x67e785):null,_0x56493d=_0x370016['getAttribute']('tableWidth')||null;const _0x225158=_0x353f07['tableWidth']||_0x56493d,_0x55c0fe=_0x353f07['columnWidths']||_0x5e2958,_0x58ee1a=this['editor']['plugins']['get']('Users')['me'];for(const _0x80a4a6 of _0x23eed6['getSuggestions']()){const _0x1c685f=_0x80a4a6['getContainedElement']();if('resizeTable'===_0x80a4a6['subType']&&_0x1c685f===_0x370016){_0x80a4a6['author']!==_0x58ee1a&&_0x80a4a6['discard']();const _0x1d21b4=_0x80a4a6['data']['commandParams'];_0x56493d=_0x1d21b4[0x0]['tableWidth'],_0x5e2958=_0x1d21b4[0x0]['columnWidths'];break;}}_0x27725e({'table':_0x370016,'tableWidth':_0x225158,'columnWidths':_0x55c0fe}),_0x23eed6['markBlockFormat'](_0x370016,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x56493d,'columnWidths':_0x5e2958}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x347831){if('formatBlock'!=_0x347831['type']&&'formatInline'!=_0x347831['type'])return;const {data:_0x12eed9}=_0x347831;if(_0x12eed9&&'resizeTable'===_0x12eed9['formatGroupId']){const _0x397058='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x397058)};}}}class Dt extends _0x8ac1b{['afterInit'](){const _0x11a17e=this['editor'];_0x11a17e['plugins']['has']('Template')&&_0x11a17e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x8ac1b{['afterInit'](){const _0x1471f4=this['editor'];if(!_0x1471f4['commands']['get']('insertTableOfContents'))return;_0x1471f4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4b6752=_0x1471f4['plugins']['get']('TrackChangesEditing'),_0x2657ff=_0x1471f4['locale'];_0x4b6752['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5211ea=>o(_0x2657ff,'ELEMENT_TABLE_OF_CONTENTS',_0x5211ea));}}class $t extends _0x8ac1b{['afterInit'](){const _0x3465ac=this['editor'];if(!_0x3465ac['plugins']['has']('Title'))return;const _0x2a46ab=_0x3465ac['plugins']['get']('TrackChangesEditing');_0x2a46ab['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3465ac['locale'],'ELEMENT_TITLE')),_0x3465ac['model']['document']['registerPostFixer'](_0x488221=>{let _0x18f519=!0x1;const _0x49da44=Array['from'](_0x3465ac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32866e,data:_0x137da3}of _0x49da44){const {group:_0x399255}=_0x2a46ab['_splitMarkerName'](_0x32866e);if('suggestion'!==_0x399255||!_0x137da3['newRange'])continue;const _0x473239=_0x137da3['newRange'],_0x3274bc=_0x473239['end']['nodeBefore'];if(!_0x3274bc||!_0x3274bc['is']('element','title-content'))continue;if(!_0x473239['start']['isTouching'](_0x473239['end']))continue;const _0x406878=_0x3465ac['model']['schema']['getNearestSelectionRange'](_0x473239['end'],'forward');if(_0x406878&&_0x406878['isCollapsed']){const _0xa38c8e=_0x488221['createRange'](_0x473239['start'],_0x406878['start']);_0xa38c8e['isEqual'](_0x473239)||(_0x488221['updateMarker'](_0x32866e,{'range':_0xa38c8e}),_0x18f519=!0x0);}_0x18f519||(_0x488221['removeMarker'](_0x32866e),_0x18f519=!0x0);}return _0x18f519;});}}class Bt extends _0x8ac1b{['afterInit'](){const _0x2a364e=this['editor'],_0x56c7d2=_0x2a364e['plugins']['get']('TrackChangesEditing');_0x2a364e['plugins']['has']('UndoEditing')&&(_0x56c7d2['enableCommand']('undo'),_0x56c7d2['enableCommand']('redo'));}}class xt extends _0x8ac1b{static get['requires'](){return[It];}['afterInit'](){const _0x1be0f9=this['editor'];if(!_0x1be0f9['plugins']['has']('TableCaptionEditing'))return;_0x1be0f9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x8ac1b{['tableProperties'];['tableCellProperties'];constructor(_0x24052f){super(_0x24052f),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 _0x1fd399=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1e6b5e of this['tableProperties'])_0x1fd399['enableCommand'](_0x1e6b5e,(_0x5cd6ac,_0x469dd9)=>{const _0x8171d9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1e6b5e,[_0x8171d9],this['tableProperties'],'tableProperties',_0x5cd6ac,_0x469dd9);});_0x1fd399['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1fd399['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fd399['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1028ee,_0x400dce)=>this['handleDiscardAction'](this['tableProperties'],_0x1028ee,_0x400dce)),_0x1fd399['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x595479 of this['tableCellProperties'])_0x1fd399['enableCommand'](_0x595479,(_0x1a0824,_0x289e00)=>{const _0x247146=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x595479,_0x247146,this['tableCellProperties'],'tableCellProperties',_0x1a0824,_0x289e00);});_0x1fd399['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1fd399['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fd399['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x47849c,_0x585ad0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x47849c,_0x585ad0)),_0x1fd399['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1fd399['descriptionFactory']['registerDescriptionCallback'](_0x58a2c7=>this['handleSuggestionDescription'](_0x58a2c7));}['_handlePropertyChange'](_0xc1ae4,_0xd76c7e,_0x83c128,_0x41e675,_0x3f1792,_0x10f800){const _0x4cb1a2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x10f800['batch'],()=>{for(const _0x1e567b of _0xd76c7e){if(this['_getSuggestion'](_0x1e567b,_0x41e675))_0x3f1792(_0x10f800);else{const _0x3d3a79={};for(const _0x436c48 of _0x83c128){const _0x5381b7=_0x1e567b['getAttribute'](_0x436c48);void 0x0!==_0x5381b7&&(_0x3d3a79[_0x436c48]=_0x5381b7);}_0x3f1792(_0x10f800),_0x4cb1a2['markBlockFormat'](_0x1e567b,{'commandParams':[_0x3d3a79]},[],_0x41e675);}}});}['handleDiscardAction'](_0x45fac1,_0x3c12e3,_0x2a7f23){const _0x47b79b=_0x3c12e3[0x0]['start']['nodeAfter'],_0x48c003=_0x2a7f23['commandParams'][0x0];this['editor']['model']['change'](_0x17942d=>{for(const _0x585e2b of _0x45fac1)void 0x0!==_0x48c003[_0x585e2b]?_0x17942d['setAttribute'](_0x585e2b,_0x48c003[_0x585e2b],_0x47b79b):_0x17942d['removeAttribute'](_0x585e2b,_0x47b79b);});}['handleSuggestionDescription'](_0x3979d4){if(_0x3979d4['data'])switch(_0x3979d4['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'](_0x5a2b86,_0x4084ae){const _0x41e176=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xb51f5a of _0x41e176['getSuggestions']({'skipNotAttached':!0x0})){const _0x40e214=_0xb51f5a['getContainedElement']();if(_0xb51f5a['subType']===_0x4084ae&&_0x40e214===_0x5a2b86)return _0xb51f5a;}return null;}}const m='$elementName';class p extends _0x8ac1b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4f496e,_0x1ae156,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(_0x537ed){function _0x21c946(_0x274f7b){return _0x274f7b['map'](_0x393088=>String['fromCharCode'](_0x393088))['join']('');}super(_0x537ed),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x222dd0,_0x139711,_0xe723a1,_0x5f251e)=>{this['_model']['change'](()=>{for(const _0x32fc4b of[..._0x5f251e,..._0xe723a1])this['_model']['markers']['has'](_0x32fc4b)&&_0x537ed['editing']['reconvertMarker'](_0x32fc4b);});}),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']=_0x537ed['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(),_0x537ed['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x537ed['config']['get']('trackChanges.trackFormatChanges'),_0x537ed['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x537ed['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x537ed,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x21c946([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x21c946([0x34,0x30,0x34,0x38,0x32,0x30,0x30,0x36]);}['init'](){const _0x573ebd=this['editor'],_0x40cb0d=(_0x299f06,_0x2e12e6)=>{if('attribute'!=_0x299f06)return'ck-suggestion-marker-'+_0x299f06;const _0x1c0433=_0x2e12e6['split']('|')[0x0];return this['_isBlockAttribute'](_0x1c0433)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x573ebd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x456ec7=>{const {id:_0x464049,authorId:_0x240950,type:_0x3bd2f3,subType:_0x207be9}=this['_splitMarkerName'](_0x456ec7['markerName']),_0x2238e9=['ck-suggestion-marker',_0x40cb0d(_0x3bd2f3,_0x207be9)];let _0x5d17ad=0xbb8;return this['activeMarkers']['includes'](_0x456ec7['markerName'])&&(_0x2238e9['push']('ck-suggestion-marker--active'),_0x5d17ad=0xbc2),'deletion'==_0x3bd2f3&&(_0x5d17ad+=0x5),{'classes':_0x2238e9,'attributes':{'data-suggestion':_0x464049,'data-author-id':_0x240950},'priority':_0x5d17ad};}}),_0x573ebd['conversion']['for']('dataDowncast')['add'](_0x596b47=>{_0x596b47['on']('addMarker:suggestion',(_0x27f584,_0x14b5d8,_0x5b0f3e)=>{if(!_0x5b0f3e['options']['showSuggestionHighlights'])return;const _0x219474=_0x14b5d8['item'];if(!_0x219474)return;const _0x8c3919=_0x5b0f3e['mapper']['toViewElement'](_0x219474);_0x573ebd['model']['schema']['isObject'](_0x219474)&&_0x8c3919&&!_0x8c3919['getCustomProperty']('widget')&&_0x8c3919['is']('containerElement')&&_0x17c785(_0x8c3919,_0x5b0f3e['writer']);},{'priority':'high'});}),_0x573ebd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1f694e,_0x5e5d8b)=>{if(!_0x5e5d8b['options']['showSuggestionHighlights'])return null;const {type:_0x3d8f7f,subType:_0x116a78}=this['_splitMarkerName'](_0x1f694e['markerName']);return{'classes':['ck-suggestion-marker',_0x40cb0d(_0x3d8f7f,_0x116a78)],'priority':0xbb8};}});const _0x5b7e97=({showActiveMarkers:_0x5b35c0=!0x0,isAttributeSuggestion:_0x1c0a84=!0x1}={})=>(_0x28ee70,_0x2b441d,_0x399f5b)=>{if(!_0x2b441d['item'])return;const {id:_0x3d77db,authorId:_0xa28372}=this['_splitMarkerName'](_0x2b441d['markerName']);if(_0x1c0a84){const _0x566d93=this['_suggestions']['get'](_0x3d77db),_0x3522d1=this['_getAttributeKey'](_0x566d93);if(!this['_isBlockAttribute'](_0x3522d1))return;}if(_0x2b441d['item']['is']('selection'))return void _0x399f5b['consumable']['consume'](_0x2b441d['item'],_0x28ee70['name']);const _0x24b640=_0x399f5b['mapper']['toViewElement'](_0x2b441d['item']);if(_0x2b441d['item']['is']('element')&&_0x573ebd['model']['schema']['isBlock'](_0x2b441d['item'])&&!_0x24b640['getCustomProperty']('addHighlight')){_0x399f5b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x24b640),_0x399f5b['writer']['setAttribute']('data-suggestion',_0x3d77db,_0x24b640),_0x399f5b['writer']['setAttribute']('data-author-id',_0xa28372,_0x24b640),_0x399f5b['mapper']['bindElementToMarker'](_0x24b640,_0x2b441d['markerName']),_0x5b35c0&&(this['activeMarkers']['includes'](_0x2b441d['markerName'])?_0x399f5b['writer']['addClass']('ck-suggestion-marker--active',_0x24b640):_0x399f5b['writer']['removeClass']('ck-suggestion-marker--active',_0x24b640));for(const _0x248386 of _0x573ebd['model']['createRangeIn'](_0x2b441d['item'])['getItems']())_0x399f5b['consumable']['consume'](_0x248386,_0x28ee70['name']);_0x399f5b['consumable']['consume'](_0x2b441d['item'],_0x28ee70['name']);}};_0x573ebd['conversion']['for']('dataDowncast')['add'](_0x5df53b=>{_0x5df53b['on']('addMarker:suggestion:formatBlock',(_0x25c777,_0xad2250,_0x337cfa)=>{_0x337cfa['options']['showSuggestionHighlights']&&_0x5b7e97({'showActiveMarkers':!0x1})(_0x25c777,_0xad2250,_0x337cfa);},{'priority':'highest'});}),_0x573ebd['conversion']['for']('dataDowncast')['add'](_0x3d4e7c=>{_0x3d4e7c['on']('addMarker:suggestion:attribute',(_0x4bd773,_0x549539,_0x51c03b)=>{_0x51c03b['options']['showSuggestionHighlights']&&_0x5b7e97({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4bd773,_0x549539,_0x51c03b);},{'priority':'highest'});}),_0x573ebd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x40366b,_0x59c2ea)=>_0x59c2ea['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x40366b['substr'](0xb)}}),_0x573ebd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5500bc,{writer:_0x1c84b1})=>{let _0x243095='suggestion:'+_0x5500bc['getAttribute']('suggestion-type')+':'+_0x5500bc['getAttribute']('id');return _0x5500bc['getAttribute']('marker-count')&&(_0x243095+=':'+_0x5500bc['getAttribute']('marker-count')),_0x1c84b1['createElement']('$marker',{'data-name':_0x243095});}}),_0x573ebd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x573ebd['conversion']['for']('editingDowncast')['add'](_0x2e9a22=>{_0x2e9a22['on']('addMarker:suggestion:formatBlock',_0x5b7e97(),{'priority':'high'});}),_0x573ebd['conversion']['for']('editingDowncast')['add'](_0x4dc396=>{_0x4dc396['on']('addMarker:suggestion:attribute',_0x5b7e97({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x573ebd['conversion']['for']('editingDowncast')['add'](_0x4d9e20=>{_0x4d9e20['on']('removeMarker:suggestion:formatBlock',(_0x137dea,_0x87b885,_0x4d024c)=>{const _0x36079c=_0x4d024c['mapper']['markerNameToElements'](_0x87b885['markerName']);if(_0x36079c){for(const _0x2ed1ac of _0x36079c)_0x2ed1ac['getCustomProperty']('addHighlight')||(_0x4d024c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ed1ac),_0x4d024c['writer']['removeAttribute']('data-suggestion',_0x2ed1ac),_0x4d024c['writer']['removeAttribute']('data-author-id',_0x2ed1ac),_0x4d024c['mapper']['unbindElementFromMarkerName'](_0x2ed1ac,_0x87b885['markerName']));}},{'priority':'high'});}),_0x573ebd['conversion']['for']('editingDowncast')['add'](_0x2b2fbb=>{_0x2b2fbb['on']('removeMarker:suggestion:attribute',(_0x3ab5b1,_0x4363b4,_0xa13a08)=>{const _0x2fcc61=_0xa13a08['mapper']['markerNameToElements'](_0x4363b4['markerName']);if(!_0x2fcc61)return;const {id:_0x4fbee3}=this['_splitMarkerName'](_0x4363b4['markerName']),_0x4c870f=this['_suggestions']['get'](_0x4fbee3),_0xa12e94=this['_getAttributeKey'](_0x4c870f);if(this['_isBlockAttribute'](_0xa12e94)){for(const _0x28af36 of _0x2fcc61)_0x28af36['getCustomProperty']('addHighlight')||(_0xa13a08['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x28af36),_0xa13a08['writer']['removeAttribute']('data-suggestion',_0x28af36),_0xa13a08['writer']['removeAttribute']('data-author-id',_0x28af36),_0xa13a08['mapper']['unbindElementFromMarkerName'](_0x28af36,_0x4363b4['markerName']));}},{'priority':'high'});}),_0x573ebd['model']['document']['registerPostFixer'](_0x7b83c7=>{let _0x8dd448=!0x1;const _0x3fd8b4=Array['from'](_0x573ebd['model']['document']['differ']['getChangedMarkers']()),_0xf6729=new Set();for(const {name:_0x588c09,data:_0x220ae1}of _0x3fd8b4){const {group:_0x3a89c6,type:_0x283aba,subType:_0x1439c1,id:_0xbdec60}=this['_splitMarkerName'](_0x588c09);if('suggestion'!==_0x3a89c6)continue;const _0x45f2f5=this['_suggestions']['get'](_0xbdec60);if(null!=_0x220ae1['newRange']){'formatInline'==_0x283aba&&(_0x8dd448=_0x8dd448||Ut(_0x220ae1['newRange'],_0x588c09,_0x7b83c7,_0x573ebd['model']['schema']));const _0x2de346='attribute'==_0x283aba&&this['_isBlockAttribute'](_0x1439c1['split']('|')[0x0]);if(_0x220ae1['newRange']['isCollapsed']||'$graveyard'==_0x220ae1['newRange']['root']['rootName']||'formatBlock'==_0x283aba&&!Ft(_0x220ae1['newRange'])||_0x2de346&&!Ft(_0x220ae1['newRange'])||'deletion'==_0x283aba&&!(!Vt(_0x44cbd1=_0x220ae1['newRange'])&&!function(_0x1ac4fd){return _0x1ac4fd['start']['parent']==_0x1ac4fd['end']['nodeBefore']&&_0x1ac4fd['start']['isAtEnd'];}(_0x44cbd1)))_0x7b83c7['removeMarker'](_0x588c09),_0x8dd448=!0x0;else{if(!_0x45f2f5||!_0x45f2f5['isInContent'])continue;if(_0x220ae1['newRange']&&_0x220ae1['oldRange']&&_0x220ae1['newRange']['isEqual'](_0x220ae1['oldRange']))continue;_0xf6729['add'](_0x45f2f5);}}}var _0x44cbd1;return _0xf6729['size']>0x0&&(_0x8dd448=!!this['_joinWithAdjacentSuggestions'](_0xf6729)||_0x8dd448),_0x8dd448;}),_0x573ebd['model']['document']['registerPostFixer'](_0x42ba97=>{let _0x1b892a=!0x1;for(const _0x3cb67a of _0x573ebd['model']['document']['differ']['getChanges']())if('insert'==_0x3cb67a['type'])for(const _0xebeb3b of this['_suggestions']['values']()){if(_0xebeb3b['isMultiRange']||!_0xebeb3b['isInContent'])continue;const _0xe424fe='formatBlock'==_0xebeb3b['type'],_0x2d7a64=this['_getAttributeKey'](_0xebeb3b),_0x424665=_0x2d7a64&&this['_isBlockAttribute'](_0x2d7a64);if(!_0xe424fe&&!_0x424665)continue;const _0x39ea8d=_0xebeb3b['getFirstRange']();if(_0x39ea8d['start']['parent']!=_0x39ea8d['end']['parent']&&!_0x39ea8d['end']['isAtEnd']){const _0xf62c8b=_0x573ebd['model']['createPositionAt'](_0x39ea8d['start']['nodeAfter'],'end'),_0x5f24ac=_0x573ebd['model']['createRange'](_0x39ea8d['start'],_0xf62c8b);_0x42ba97['updateMarker'](_0xebeb3b['getFirstMarker'](),{'range':_0x5f24ac}),_0x1b892a=!0x0;}}return _0x1b892a;}),_0x573ebd['model']['document']['registerPostFixer'](_0x1a79f5=>this['_processAttributeChanges'](_0x1a79f5)),_0x573ebd['model']['document']['registerPostFixer'](_0x36af17=>!_0x36af17['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x36af17)),_0x573ebd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x573ebd['model']['document']['on']('change:data',(_0x345683,_0x1bfc23)=>{if(!_0x1bfc23['isLocal']||_0x1bfc23['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x21de9f=_0x573ebd['model']['document']['differ']['getChanges']();if(0x0==_0x21de9f['length'])return;const _0xff3fb2=[],_0x191c3f=_0x21de9f['filter'](_0x5d2ff4=>'attribute'==_0x5d2ff4['type']),_0x5ae5a6=_0x21de9f['filter'](_0x2e185c=>'insert'==_0x2e185c['type']&&'$text'!=_0x2e185c['name']);for(const _0x266ad3 of _0x191c3f)this['_isRegisteredAttribute'](_0x266ad3['attributeKey'])&&_0xff3fb2['push']({'key':_0x266ad3['attributeKey'],'newValue':_0x266ad3['attributeNewValue'],'oldValue':_0x266ad3['attributeOldValue'],'range':Pt(_0x266ad3['range'],_0x573ebd['model'])});for(const _0x219438 of _0x5ae5a6){if('rename'!=_0x219438['action']&&'refresh'!=_0x219438['action'])continue;const _0xaa9975=Lt(_0x219438['position']['nodeAfter'],_0x573ebd['model']),_0x7bb8b6=_0x219438['before'];'rename'==_0x219438['action']&&_0xff3fb2['push']({'key':m,'newValue':_0x219438['name'],'oldValue':_0x7bb8b6['name'],'range':_0xaa9975});for(const [_0x18bac5,_0x253707]of _0x7bb8b6['attributes']){if(!this['_isRegisteredAttribute'](_0x18bac5))continue;const _0x1f8946=_0x219438['attributes']['get'](_0x18bac5);_0x253707!==_0x1f8946&&_0xff3fb2['push']({'key':_0x18bac5,'newValue':_0x1f8946,'oldValue':_0x253707,'range':_0xaa9975});}for(const [_0xe0de60,_0x578dcc]of _0x219438['attributes'])this['_isRegisteredAttribute'](_0xe0de60)&&(_0x7bb8b6['attributes']['has'](_0xe0de60)||_0xff3fb2['push']({'key':_0xe0de60,'newValue':_0x578dcc,'oldValue':null,'range':_0xaa9975}));}0x0!=_0xff3fb2['length']&&_0x573ebd['model']['enqueueChange'](_0x1bfc23,_0x1d1569=>{const _0x35cb85=_0x38f7ff();for(const {range:_0x51126f,key:_0x1c06be,oldValue:_0x439eb3,newValue:_0x351869}of _0xff3fb2)this['markAttributeChange'](_0x51126f,_0x1c06be,_0x439eb3,_0x351869,{'groupId':_0x35cb85});this['_reduceExistingSuggestions'](_0x1d1569,_0xff3fb2);});},{'priority':'lowest'}),_0x573ebd['model']['markers']['on']('update:suggestion',(_0x2bc9f3,_0x37b0e2,_0x596c8a)=>{if(null==_0x596c8a){const {id:_0x338547}=this['_splitMarkerName'](_0x37b0e2['name']),_0x3cf9f3=this['_suggestions']['get'](_0x338547);_0x3cf9f3&&_0x3cf9f3['addMarkerName'](_0x37b0e2['name']);}}),_0x573ebd['model']['document']['on']('change:data',()=>{const _0x55351c=Array['from'](_0x573ebd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4990ca=>'suggestion'===this['_splitMarkerName'](_0x4990ca['name'])['group']);if(0x0===_0x55351c['length'])return;_0x55351c['sort']((_0x5addee,_0x4a4689)=>{const _0x4e0eee=_0x5addee['data']['oldRange'],_0x11651a=_0x4a4689['data']['oldRange'];return null===_0x4e0eee&&null===_0x11651a?0x0:null===_0x4e0eee&&null!==_0x11651a?-0x1:null!==_0x4e0eee&&null===_0x11651a?0x1:_0x4e0eee['start']['isBefore'](_0x11651a['start'])?-0x1:0x1;});const _0x40ba75=new Set(),_0x4bbe39=new Set();for(const {name:_0x1cd5e7,data:_0x120ca0}of _0x55351c){const {id:_0x28331e}=this['_splitMarkerName'](_0x1cd5e7);if(null===_0x120ca0['oldRange']){const _0xa933e=this['_handleNewSuggestionMarker'](_0x1cd5e7);_0x4bbe39['add'](_0xa933e);}else{const _0x732abb=this['_suggestions']['get'](_0x28331e);null!==_0x120ca0['newRange']||_0x732abb['isInContent']?(_0x40ba75['add'](_0x732abb['head']),_0x4bbe39['add'](_0x732abb)):this['_removeSuggestion'](_0x732abb);}}_0x4bbe39['size']>0x0&&this['_refreshSuggestionsChain'](_0x4bbe39);for(const _0x4c41dc of _0x40ba75)this['fire']('suggestionChanged',_0x4c41dc);}),_0x573ebd['model']['on']('applyOperation',(_0xab5694,_0x102685)=>{const _0x18ecd3=_0x102685[0x0];if(!this['_suggestions']['size'])return;if(!_0x18ecd3['isDocumentOperation'])return;if(_0x18ecd3['batch']['isUndo']||!_0x18ecd3['batch']['isLocal'])return;let _0x52ee5e,_0x4b24d1;switch(_0x18ecd3['type']){case'insert':_0x52ee5e=_0x573ebd['model']['createPositionAt'](_0x18ecd3['position']),_0x4b24d1=_0x52ee5e['getShiftedBy'](_0x18ecd3['howMany']);break;case'split':_0x52ee5e=_0x573ebd['model']['createPositionAt'](_0x18ecd3['splitPosition']),_0x4b24d1=_0x573ebd['model']['createPositionAt'](_0x18ecd3['moveTargetPosition']);break;case'move':_0x52ee5e=_0x573ebd['model']['createPositionAt'](_0x18ecd3['targetPosition']),_0x4b24d1=_0x52ee5e['getShiftedBy'](_0x18ecd3['howMany']);break;default:return;}const _0x29cfee=_0x573ebd['model']['createRange'](_0x52ee5e,_0x4b24d1);_0x573ebd['model']['change'](()=>{for(const {suggestion:_0x2b03ca,meta:_0x35e4b4}of this['_findSuggestions'](_0x29cfee)){if(_0x2b03ca['isMultiRange'])continue;if('formatInline'==_0x2b03ca['type'])continue;const _0x206193=this['_getAttributeKey'](_0x2b03ca);if(_0x206193&&this['_isBlockAttribute'](_0x206193)&&'split'!=_0x18ecd3['type'])continue;const _0x114db1=_0x2b03ca['data']&&_0x2b03ca['data']['multipleBlocks'];('formatBlock'!=_0x2b03ca['type']||'split'==_0x18ecd3['type']&&!_0x114db1)&&(_0x35e4b4['containsRangeInObject']||'insertion'==_0x2b03ca['type']&&_0x35e4b4['isOwn']||_0x2b03ca['getFirstRange']()['containsRange'](_0x29cfee)&&this['_breakSuggestionMarker'](_0x2b03ca,_0x52ee5e,_0x4b24d1));}});},{'priority':'lowest'}),_0x573ebd['model']['on']('deleteContent',(_0x4bfe61,_0x3f9e3c)=>{const _0x29e326=_0x3f9e3c[0x0],_0x5bbb7e=_0x3f9e3c[0x1];if(_0x5bbb7e&&_0x5bbb7e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x29e326['isCollapsed'])return;const _0x132284=_0x573ebd['model']['schema'],{start:_0x1179e5,end:_0x2184b2}=_0x29e326['getFirstRange'](),_0x1c041b=_0x1179e5['nodeAfter']&&_0x132284['isLimit'](_0x1179e5['nodeAfter'])?null:_0x132284['getNearestSelectionRange'](_0x1179e5,'forward'),_0x3f335f=_0x2184b2['nodeBefore']&&_0x132284['isLimit'](_0x2184b2['nodeBefore'])?null:_0x132284['getNearestSelectionRange'](_0x2184b2,'backward'),_0x444cf6=_0x573ebd['model']['createRange'](_0x1c041b?_0x1c041b['start']:_0x1179e5,_0x3f335f?_0x3f335f['end']:_0x2184b2);_0x573ebd['model']['change'](_0x541625=>{this['markDeletion'](_0x444cf6);const _0x45b45b=_0x573ebd['model']['schema']['getNearestSelectionRange'](_0x444cf6['start']);_0x29e326['is']('documentSelection')?_0x541625['setSelection'](_0x45b45b):_0x29e326['setTo'](_0x45b45b);}),_0x4bfe61['stop']();},{'priority':_0x16f7c0['normal']+0xa}),_0x573ebd['model']['on']('insertContent',(_0x2b9e48,_0xf15adb)=>{const _0x9e779e=_0xf15adb[_0xf15adb['length']-0x1];_0x9e779e&&_0x9e779e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x573ebd['model']['change'](()=>{let _0x2de25b=_0x573ebd['model']['insertContent'](_0xf15adb[0x0],_0xf15adb[0x1],_0xf15adb[0x2],{'forceDefaultExecution':!0x0});if(!_0x2de25b)return;_0x2b9e48['return']=_0x2de25b['clone']();const _0xb501e3=_0x2de25b['end']['nodeBefore'],_0x5c1496=_0x573ebd['model']['schema'];_0xb501e3&&_0x5c1496['isBlock'](_0xb501e3)&&!_0x5c1496['isObject'](_0xb501e3)&&(_0x2de25b=_0x573ebd['model']['createRange'](_0x2de25b['start'],_0x573ebd['model']['createPositionAt'](_0xb501e3,'end'))),this['markInsertion'](_0x2de25b);}),_0x2b9e48['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5dc340=new x(_0x573ebd,this['_suggestions']);_0x573ebd['commands']['add']('acceptSuggestion',_0x5dc340),this['enableCommand']('acceptSuggestion');const _0x33c85b=new R(_0x573ebd,this['_suggestions']);_0x573ebd['commands']['add']('discardSuggestion',_0x33c85b),this['enableCommand']('discardSuggestion'),_0x573ebd['commands']['add']('acceptAllSuggestions',new E(_0x573ebd,_0x5dc340,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x573ebd['commands']['add']('discardAllSuggestions',new E(_0x573ebd,_0x33c85b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x573ebd['commands']['add']('acceptSelectedSuggestions',new O(_0x573ebd,_0x5dc340,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x573ebd['commands']['add']('discardSelectedSuggestions',new O(_0x573ebd,_0x33c85b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x39853a=_0x573ebd['plugins']['get']('CommentsRepository');this['listenTo'](_0x39853a,'addComment',(_0x3438e7,{threadId:_0x418f16})=>{const _0x28eb73=this['_suggestions']['get'](_0x418f16);_0x28eb73&&_0x28eb73['commentThread']&&0x1===_0x28eb73['commentThread']['length']&&this['_updateSuggestionData'](_0x418f16,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x39853a,'removeComment',(_0x187921,{threadId:_0x62d90a})=>{const _0xc5fcb9=this['_suggestions']['get'](_0x62d90a);_0xc5fcb9&&_0xc5fcb9['commentThread']&&!_0xc5fcb9['commentThread']['length']&&this['_updateSuggestionData'](_0x62d90a,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5e2682){if(this['_adapter'])throw new _0x2eac2a('track-changes-adapter-already-set',this);this['_adapter']=_0x5e2682;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x44ca6d=!0x1,toJSON:_0x11e7f3=!0x1}={}){const _0x512769=[];for(const _0xe700d2 of this['_suggestions']['values']())_0x44ca6d&&!_0xe700d2['isInContent']||_0x512769['push'](_0xe700d2);return _0x11e7f3?_0x512769['map'](_0xa423f5=>_0xa423f5['toJSON']()):_0x512769;}['getSuggestion'](_0x10cdfa){const _0x5ca7ec=this['_suggestions']['get'](_0x10cdfa);if(!_0x5ca7ec)throw new _0x2eac2a('track-changes-suggestion-not-found',this);return _0x5ca7ec;}['hasSuggestion'](_0x3e2cc3){return this['_suggestions']['has'](_0x3e2cc3);}['addSuggestionData'](_0x594477){const {authorId:_0x44251f,id:_0x2b3b17,attributes:_0x1fe65a}=_0x594477,[_0x4a4a5a,_0x1c759f]=_0x594477['type']['split'](':'),_0x3f0d82=this['_suggestions']['get'](_0x2b3b17)||this['_createSuggestion'](_0x4a4a5a,_0x1c759f,_0x2b3b17,_0x44251f,_0x1fe65a);if(this['_addThreadToSuggestion'](_0x3f0d82),this['_checkSuggestionCorrectness'](_0x3f0d82,_0x4a4a5a,_0x1c759f||null,_0x44251f),_0x3f0d82['createdAt']=_0x594477['createdAt'],_0x3f0d82['_isDataLoaded']=!0x0,_0x1fe65a&&_0x1fe65a['@external']){const _0x4cf216=_0x1fe65a['@external'],_0x2d041c=this['_getExternalAuthor'](_0x4cf216['authorName']);_0x3f0d82['authoredAt']=_0x4cf216['createdAt'],_0x3f0d82['author']=_0x2d041c,_0x3f0d82['isExternal']=!0x0;}else _0x3f0d82['authoredAt']=_0x594477['createdAt'];switch(_0x594477['data']&&(_0x3f0d82['data']=_0x594477['data']),_0x594477['attributes']&&(_0x3f0d82['attributes']=_0x594477['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f0d82['_saved']=!0x0),this['_suggestionState']['get'](_0x3f0d82)){case'notReady':this['_suggestionState']['set'](_0x3f0d82,'dataReady');break;case'markerReady':_0x3f0d82['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f0d82])),this['_refreshSuggestionsChain'](new Set([_0x3f0d82])),this['_suggestionState']['set'](_0x3f0d82,'ready'),this['fire']('suggestionLoaded',_0x3f0d82)):this['_suggestionState']['set'](_0x3f0d82,'removed');}return _0x3f0d82;}['acceptSuggestion'](_0x5407ba){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1036bd of _0x5407ba['getAllAdjacentSuggestions']())_0x1036bd['accept']();});});}['discardSuggestion'](_0x2d263d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x151e12 of _0x2d263d['getAllAdjacentSuggestions']())_0x151e12['discard']();});});}['enableCommand'](_0x4d413e,_0xfd15c8){const _0x16deb3=this['editor']['commands']['get'](_0x4d413e);if(!_0x16deb3)throw new _0x2eac2a('track-changes-command-not-found',this,{'commandName':_0x4d413e});if(this['_enabledCommands']['has'](_0x16deb3))throw new _0x2eac2a('track-changes-enable-command-twice',this,{'commandName':_0x4d413e});this['_enabledCommands']['add'](_0x16deb3),_0xfd15c8&&_0x16deb3['on']('execute',(_0x519ac8,_0x48f5eb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x48f5eb['length']>0x0&&_0x48f5eb[_0x48f5eb['length']-0x1]&&_0x48f5eb[_0x48f5eb['length']-0x1]['forceDefaultExecution']?_0x48f5eb['pop']():(_0x519ac8['return']=_0xfd15c8((..._0x397fe3)=>_0x16deb3['execute'](..._0x397fe3,{'forceDefaultExecution':!0x0}),..._0x48f5eb),_0x519ac8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xd5b857){let _0x3d656d,_0x1ee26d;const _0x580200=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3d656d=_0xd5b857();}catch(_0x3d741d){_0x1ee26d=_0x3d741d;}return _0x580200||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1ee26d&&_0x2eac2a['rethrowUnexpectedError'](_0x1ee26d,this),_0x3d656d;}['markInsertion'](_0x274cf7,_0x66e389=null,_0x14c7d0={}){if(_0x274cf7['isCollapsed'])return null;const _0x4b0e94=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x309ed5,meta:_0x6ca0fc}of this['_findSuggestions'](_0x274cf7,'insertion'))if(_0x6ca0fc['isOwn']){if(!_0x6ca0fc['isNextTo']){if(_0x6ca0fc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x309ed5,_0x14c7d0))continue;return _0x309ed5;}if(qt(_0x309ed5,_0x14c7d0))return _0x309ed5;this['_breakSuggestionMarker'](_0x309ed5,_0x274cf7['start'],_0x274cf7['end']);break;}if(_0x66e389==_0x309ed5['subType']&&qt(_0x309ed5,_0x14c7d0)){const _0x12c16b=_0x309ed5['getFirstRange']();return _0x12c16b['start']['isEqual'](_0x274cf7['end'])?this['_setSuggestionRange'](_0x309ed5,this['_model']['createRange'](_0x274cf7['start'],_0x12c16b['end'])):this['_setSuggestionRange'](_0x309ed5,this['_model']['createRange'](_0x12c16b['start'],_0x274cf7['end'])),_0x309ed5;}}const _0x1e4d30=_0x38f7ff(),_0x125653=_0x4b0e94['id'],_0x13f845=_0x66e389?'insertion:'+_0x66e389:'insertion',_0x3bfaf7=this['_setSuggestionData']({'id':_0x1e4d30,'type':_0x13f845,'createdAt':new Date(),'authorId':_0x125653,'attributes':_0x14c7d0});return this['_addSuggestionMarker'](_0x13f845,_0x1e4d30,_0x125653,_0x274cf7),_0x3bfaf7;}['markMultiRangeInsertion'](_0x47e3da,_0x1c2648='multi',_0x3884d1={}){const _0x157307=this['editor']['plugins']['get']('Users')['me'],_0x24215b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1c2648,'join');for(const _0x166819 of this['getSuggestions']())if(_0x166819['author']['id']==_0x157307['id']&&'insertion'==_0x166819['type']&&_0x166819['subType']==_0x1c2648&&qt(_0x166819,_0x3884d1)&&(_0x24215b(_0x166819['getRanges'](),_0x47e3da)||_0x24215b(_0x47e3da,_0x166819['getRanges']()))){for(const _0x247f5f of _0x47e3da)_0x166819['addRange'](_0x247f5f);return _0x166819;}for(const {suggestion:_0xd1e1da,meta:_0xe3c3ee}of this['_findSuggestions'](_0x47e3da,'insertion')){if(!_0xe3c3ee['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xe3c3ee['containsRangeInObject'])continue;if(!qt(_0xd1e1da,_0x3884d1))continue;let _0x30935b=!0x0;for(const _0x1cb665 of _0xd1e1da['getRanges']())for(const _0x292ff0 of _0x47e3da)if(!_0x1cb665['containsRange'](_0x292ff0)){_0x30935b=!0x1;break;}if(_0x30935b)return _0xd1e1da;}const _0x1a02d6=_0x38f7ff(),_0x1ee17d=_0x157307['id'],_0x516cce='insertion:'+_0x1c2648,_0x5bfed3=this['_setSuggestionData']({'id':_0x1a02d6,'type':_0x516cce,'createdAt':new Date(),'authorId':_0x1ee17d,'attributes':_0x3884d1});for(const _0x587593 of _0x47e3da)this['_addSuggestionMarker'](_0x516cce,_0x1a02d6,_0x1ee17d,_0x587593,u['getMultiRangeId']());return _0x5bfed3;}['markInlineFormat'](_0x19f298,_0x47002a,_0x3b624d=null,_0xb2df47={}){if(_0x3b624d=_0x3b624d||Gt(_0x47002a),_0x19f298['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x15213f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3b624d,'accept');return this['forceDefaultExecution'](()=>_0x15213f([_0x19f298],_0x47002a,_0xb2df47)),null;}const _0x2ffb29=this['editor']['plugins']['get']('Users')['me'],_0x209414=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x41fd6d,meta:_0x1fe4d1}of this['_findSuggestions'](_0x19f298,'insertion'))_0x1fe4d1['isOwn']&&!_0x1fe4d1['isInsideObject']&&_0x209414['push'](..._0x41fd6d['getRanges']());}const _0x567f96=function(_0x379e10,_0x1a4638){const _0xdd23bd=[];for(const _0x3154ea of _0x1a4638){const _0x561bbd=_0x379e10['getIntersection'](_0x3154ea);_0x561bbd&&_0xdd23bd['push'](_0x561bbd);}return _0xdd23bd;}(_0x19f298,_0x209414),_0x31b643=function(_0x373e21,_0xa0771){const _0x179591=[_0x373e21];for(const _0x1b31f2 of _0xa0771){let _0x50e501=0x0;for(;_0x50e501<_0x179591['length'];){const _0x5d64e5=_0x179591[_0x50e501]['getDifference'](_0x1b31f2);_0x179591['splice'](_0x50e501,0x1,..._0x5d64e5),_0x50e501+=_0x5d64e5['length'];}}return _0x179591;}(_0x19f298,_0x209414);_0x567f96['length']&&this['_model']['change'](()=>{for(const _0xa9454c of _0x567f96){const _0x20b982=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3b624d,'accept');this['forceDefaultExecution'](()=>_0x20b982([_0xa9454c],_0x47002a,_0xb2df47));}});for(const _0x48b3f6 of _0x31b643){let _0x754e27=null,_0x25823a=_0x48b3f6['start'],_0x15f200=_0x48b3f6['end'];for(const {suggestion:_0x2002f1,meta:_0xaae26f}of this['_findSuggestions'](_0x48b3f6,'formatInline')){if(!_0xaae26f['isOwn'])continue;if(_0x2002f1['subType']!=_0x3b624d)continue;if(!qt(_0x2002f1,_0xb2df47))continue;const _0x13056c=_0x2002f1['getFirstRange']();if(_0x13056c['containsRange'](_0x48b3f6,!0x0))return null;_0x25823a=_0x25823a['isBefore'](_0x13056c['start'])?_0x25823a:_0x13056c['start'],_0x15f200=_0x15f200['isAfter'](_0x13056c['end'])?_0x15f200:_0x13056c['end'],_0x754e27?_0x13056c['start']['isBefore'](_0x754e27['getFirstRange']()['start'])?(_0x754e27['removeMarkers'](),_0x754e27=_0x2002f1):_0x2002f1['removeMarkers']():_0x754e27=_0x2002f1;}const _0x5c54ae=this['_model']['createRange'](_0x25823a,_0x15f200);if(_0x754e27)this['_setSuggestionRange'](_0x754e27,_0x5c54ae);else{const _0x501325=_0x38f7ff(),_0x5bd3fe=_0x2ffb29['id'];this['_setSuggestionData']({'id':_0x501325,'type':'formatInline:'+_0x3b624d,'data':_0x47002a,'createdAt':new Date(),'authorId':_0x5bd3fe,'attributes':_0xb2df47}),this['_addSuggestionMarker']('formatInline:'+_0x3b624d,_0x501325,_0x5bd3fe,_0x5c54ae);}}return null;}['markBlockFormat'](_0x3e4815,_0x5e4a44,_0x55102a=[],_0x432263=null,_0x58396c={}){_0x5e4a44['formatGroupId']||(_0x5e4a44['formatGroupId']=_0x5e4a44['commandName']),_0x5e4a44['multipleBlocks']=_0x3e4815['is']('range'),_0x432263=_0x432263||Gt(_0x5e4a44);const _0x10c9e7=_0x55102a['map'](_0x34d526=>Lt(_0x34d526,this['_model'])),_0x49e1c2=_0x3e4815['is']('range')?_0x3e4815:Lt(_0x3e4815,this['_model']);if('never'===this['_trackFormatChanges']){const _0x17d2d8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x432263,'accept');return this['forceDefaultExecution'](()=>_0x17d2d8([_0x49e1c2],_0x5e4a44,_0x58396c)),null;}_0x10c9e7['push'](_0x49e1c2);let _0x2f35cc=!0x0;for(const _0xb3ac7e of _0x10c9e7)if(!this['_rangeIsInLocalUserInsertion'](_0xb3ac7e)){_0x2f35cc=!0x1;break;}if(_0x2f35cc&&'always'!==this['_trackFormatChanges']){const _0x3594e9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x432263,'accept');return this['forceDefaultExecution'](()=>_0x3594e9([_0x49e1c2],_0x5e4a44,_0x58396c)),null;}let _0x421e40=null,_0x3494c6=_0x49e1c2['start'],_0x34dd6c=_0x49e1c2['end'];for(const {suggestion:_0x4e1028,meta:_0x236695}of this['_findSuggestions'](_0x49e1c2,'formatBlock')){if(!_0x236695['isOwn'])continue;if(_0x236695['isNextTo']||_0x236695['containsRangeInObject']||_0x236695['isInsideObject'])continue;if(_0x4e1028['data']['formatGroupId']!=_0x5e4a44['formatGroupId'])continue;if(!qt(_0x4e1028,_0x58396c))continue;const _0x356a1f=_0x4e1028['getFirstRange']();if(_0x4e1028['subType']==_0x432263){if(_0x356a1f['containsRange'](_0x49e1c2,!0x0))return null;_0x3494c6=_0x3494c6['isBefore'](_0x356a1f['start'])?_0x3494c6:_0x356a1f['start'],_0x34dd6c=_0x34dd6c['isAfter'](_0x356a1f['end'])?_0x34dd6c:_0x356a1f['end'],_0x421e40?_0x356a1f['start']['isBefore'](_0x421e40['getFirstRange']()['start'])?(_0x421e40['removeMarkers'](),_0x421e40=_0x4e1028):_0x4e1028['removeMarkers']():_0x421e40=_0x4e1028;}else{const _0x352427=_0x49e1c2['getIntersection'](_0x356a1f);this['_cutOutSuggestionMarker'](_0x4e1028,_0x352427);}}const _0x3e4300=this['editor']['plugins']['get']('Users')['me'],_0x4bde46=_0x38f7ff(),_0xebff35=_0x3e4300['id'];if(_0x421e40)return this['_setSuggestionRange'](_0x421e40,this['_model']['createRange'](_0x3494c6,_0x34dd6c)),_0x421e40;{const _0x24e3d2=this['_setSuggestionData']({'id':_0x4bde46,'type':'formatBlock:'+_0x432263,'data':_0x5e4a44,'createdAt':new Date(),'authorId':_0xebff35,'attributes':_0x58396c});return this['_addSuggestionMarker']('formatBlock:'+_0x432263,_0x4bde46,_0xebff35,this['_model']['createRange'](_0x3494c6,_0x34dd6c)),_0x24e3d2;}}['markMultiRangeBlockFormat'](_0x304d85,_0x5ccbcd,_0x56b26d=[],_0x5a8f91=null,_0x5c2b7c={}){_0x5ccbcd['formatGroupId']||(_0x5ccbcd['formatGroupId']=_0x5ccbcd['commandName']);const _0x14a424=_0x304d85[0x0];_0x5ccbcd['multipleBlocks']=_0x14a424['is']('range'),_0x5a8f91=_0x5a8f91||Gt(_0x5ccbcd);const _0x22cc4d=_0x56b26d['map'](_0x2aa4f7=>Lt(_0x2aa4f7,this['_model'])),_0x373045=_0x14a424['is']('range')?_0x304d85:_0x304d85['map'](_0x17045a=>Lt(_0x17045a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1a7f33=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a8f91,'accept');return this['forceDefaultExecution'](()=>_0x1a7f33(_0x373045,_0x5ccbcd,_0x5c2b7c)),null;}_0x22cc4d['push'](..._0x373045);let _0x5a287b=!0x0;for(const _0x5d3ad1 of _0x22cc4d)if(!this['_rangeIsInLocalUserInsertion'](_0x5d3ad1)){_0x5a287b=!0x1;break;}if(_0x5a287b&&'always'!==this['_trackFormatChanges']){const _0x5d65fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a8f91,'accept');return this['forceDefaultExecution'](()=>_0x5d65fe(_0x373045,_0x5ccbcd,_0x5c2b7c)),null;}const _0x36cf10=this['editor']['plugins']['get']('Users')['me'];for(const _0x103cb5 of this['getSuggestions']()){if(_0x103cb5['author']['id']!=_0x36cf10['id'])continue;if('formatBlock'!=_0x103cb5['type']||_0x103cb5['data']['formatGroupId']!=_0x5ccbcd['formatGroupId'])continue;if(!qt(_0x103cb5,_0x5c2b7c))continue;const _0x5cc418=_0x103cb5['subType']==_0x5a8f91;for(let _0x2f8223=0x0;_0x2f8223<_0x373045['length'];_0x2f8223++){const _0x33f263=_0x373045[_0x2f8223];for(const _0x14bcb7 of _0x103cb5['getMarkers']()){const _0x540557=_0x14bcb7['getRange']();if(_0x33f263['isEqual'](_0x540557)){_0x5cc418?(_0x373045['splice'](_0x2f8223,0x1),_0x2f8223--):_0x103cb5['removeMarker'](_0x14bcb7['name']);break;}}}}if(0x0==_0x373045['length'])return null;const _0x5da024=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a8f91,'join');for(const _0x5d68a1 of this['getSuggestions']())if(_0x5d68a1['author']['id']==_0x36cf10['id']&&'formatBlock'==_0x5d68a1['type']&&_0x5d68a1['data']['formatGroupId']==_0x5ccbcd['formatGroupId']&&_0x5d68a1['subType']==_0x5a8f91&&qt(_0x5d68a1,_0x5c2b7c)&&(_0x5da024(_0x5d68a1['getRanges'](),_0x373045)||_0x5da024(_0x373045,_0x5d68a1['getRanges']()))){for(const _0x5811ad of _0x373045)_0x5d68a1['addRange'](_0x5811ad);return _0x5d68a1;}const _0x38af7a=_0x38f7ff(),_0x18388e=_0x36cf10['id'],_0x4c43d7='formatBlock:'+_0x5a8f91,_0x1f2f6c=this['_setSuggestionData']({'id':_0x38af7a,'type':_0x4c43d7,'data':_0x5ccbcd,'createdAt':new Date(),'authorId':_0x18388e,'attributes':_0x5c2b7c});for(const _0x27a7c8 of _0x373045)this['_addSuggestionMarker'](_0x4c43d7,_0x38af7a,_0x18388e,_0x27a7c8,u['getMultiRangeId']());return _0x1f2f6c;}['markDeletion'](_0x253a2e,_0xd6fe99=null,_0x50f2d3={}){if(_0x253a2e['isCollapsed'])return null;const _0x49fb07=this['editor']['plugins']['get']('Users')['me'],_0x371422=new _0x21472f(_0x253a2e['start'],_0x253a2e['end']);for(const {suggestion:_0x4fc85c,meta:_0x88756a}of this['_findSuggestions'](_0x371422,'insertion'))if(_0x88756a['isOwn']&&!_0x88756a['isNextTo']){if(_0x4fc85c['isMultiRange']){const _0x16d60b=_0x4fc85c['getRanges']()['filter'](_0x2a418a=>'$graveyard'!=_0x2a418a['root']['rootName']);_0x16d60b['every'](_0x544498=>_0x371422['containsRange'](_0x544498,!0x0))&&_0x4fc85c['discard']();if(_0x16d60b['some'](_0x3cc622=>_0x3cc622['containsRange'](_0x371422,!0x0))){const _0x3895a8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd6fe99,'accept');return this['forceDefaultExecution'](()=>_0x3895a8([_0x371422],null,_0x50f2d3)),null;}}else{const _0x4805b9=_0x371422['getIntersection'](_0x4fc85c['getFirstRange']());null!==_0x4805b9&&_0x4fc85c['_onDiscard']([_0x4805b9],null,_0x50f2d3);}}if(_0x371422['detach'](),_0x371422['isCollapsed']||'$graveyard'==_0x371422['root']['rootName'])return null;let _0x35a8f6=null,_0x3fc981=_0x371422['start'],_0x18a280=_0x371422['end'];const _0x753e62=this['_findSuggestions'](_0x371422,'deletion');for(const {suggestion:_0x5b4398,meta:_0x57e3b3}of _0x753e62){const _0x3fde53=this['_model']['createRange'](_0x3fc981,_0x18a280);if(_0x57e3b3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57e3b3['containsRangeInObject']&&!_0x57e3b3['isInsideObject'])){if(_0x5b4398['isMultiRange']){if(!qt(_0x5b4398,_0x50f2d3))continue;let _0x10d011=!0x0;for(const _0x114cf6 of _0x5b4398['getRanges']()){if(_0x114cf6['containsRange'](_0x3fde53,!0x0))return _0x5b4398;_0x3fde53['containsRange'](_0x114cf6)||(_0x10d011=!0x1);}_0x10d011&&_0x5b4398['discard']();}else{const _0x1dce9e=_0x5b4398['getFirstRange']();if(_0x1dce9e['containsRange'](_0x3fde53,!0x0))return _0x5b4398;if(!qt(_0x5b4398,_0x50f2d3)){_0x3fde53['containsRange'](_0x1dce9e)?_0x5b4398['removeMarkers']():_0x1dce9e['containsPosition'](_0x3fc981)?_0x3fc981=_0x1dce9e['end']:_0x1dce9e['containsPosition'](_0x18a280)&&(_0x18a280=_0x1dce9e['start']);continue;}_0x3fc981=_0x3fc981['isBefore'](_0x1dce9e['start'])?_0x3fc981:_0x1dce9e['start'],_0x18a280=_0x18a280['isAfter'](_0x1dce9e['end'])?_0x18a280:_0x1dce9e['end'],_0x50f2d3=Object['assign']({},_0x5b4398['attributes']),_0x35a8f6?_0x1dce9e['start']['isBefore'](_0x35a8f6['getFirstRange']()['start'])?(_0x35a8f6['removeMarkers'](),_0x35a8f6=_0x5b4398):_0x5b4398['removeMarkers']():_0x35a8f6=_0x5b4398;}}}if(_0x35a8f6)return this['_setSuggestionRange'](_0x35a8f6,this['_model']['createRange'](_0x3fc981,_0x18a280)),_0x35a8f6;{const _0x2faf74=_0x38f7ff(),_0x190220=this['_model']['createRange'](_0x3fc981,_0x18a280),_0x1f94ed=_0x49fb07['id'],_0x24f833=_0xd6fe99?'deletion:'+_0xd6fe99:'deletion',_0x3cab49=this['_setSuggestionData']({'id':_0x2faf74,'type':_0x24f833,'createdAt':new Date(),'authorId':_0x1f94ed,'attributes':_0x50f2d3});return this['_addSuggestionMarker'](_0x24f833,_0x2faf74,_0x1f94ed,_0x190220),_0x3cab49;}}['markMultiRangeDeletion'](_0x20ef59,_0xfdef2e='multi',_0x253938={}){const _0x248adc=this['editor']['plugins']['get']('Users')['me'],_0x3aed73=_0x20ef59['map'](_0x52799e=>new _0x21472f(_0x52799e['start'],_0x52799e['end'])),_0xccbc0c=new Set();for(const {suggestion:_0x54a9b4,meta:_0xf8b0f3}of this['_findSuggestions'](_0x3aed73,'insertion'))_0xf8b0f3['isOwn']&&!_0xf8b0f3['isNextTo']&&_0xccbc0c['add'](_0x54a9b4);for(const _0x2d71eb of _0xccbc0c)if(_0x2d71eb['isMultiRange']){const _0x3a7740=_0x2d71eb['getRanges']();(!_0x2d71eb['attributes']||!_0x2d71eb['attributes']['skipNestingCheck'])&&(_0x3a7740['every'](_0x469c5f=>_0x3aed73['some'](_0x170a6d=>_0x170a6d['containsRange'](_0x469c5f,!0x0)))&&_0x2d71eb['discard']());if(_0x3aed73['every'](_0x25f07e=>_0x3a7740['some'](_0x589ad2=>_0x589ad2['containsRange'](_0x25f07e,!0x0)))){const _0x2ab1e7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xfdef2e,'accept');return this['forceDefaultExecution'](()=>_0x2ab1e7(_0x20ef59,null,_0x253938)),null;}}else{const _0xa2a87d=_0x2d71eb['getFirstRange']();_0x3aed73['some'](_0x18a294=>_0x18a294['containsRange'](_0xa2a87d,!0x0))&&_0x2d71eb['discard']();if(_0x3aed73['every'](_0x189aee=>_0xa2a87d['containsRange'](_0x189aee,!0x0))){const _0x1cfb10=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xfdef2e,'accept');return this['forceDefaultExecution'](()=>_0x1cfb10(_0x3aed73,null,_0x253938)),null;}}const _0x3e7baf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xfdef2e,'join');let _0x252763=null;for(const _0x4bd50e of this['getSuggestions']())if(_0x4bd50e['author']['id']==_0x248adc['id']&&_0x4bd50e['isInContent']&&'deletion'==_0x4bd50e['type']&&_0x4bd50e['subType']==_0xfdef2e&&qt(_0x4bd50e,_0x253938)&&(_0x3e7baf(_0x4bd50e['getRanges'](),_0x3aed73)||_0x3e7baf(_0x3aed73,_0x4bd50e['getRanges']()))){if(_0x252763){if(_0x4bd50e['commentThread']&&_0x4bd50e['commentThread']['length'])continue;for(const _0x14d12c of _0x4bd50e['getRanges']())_0x252763['isIntersectingWithRange'](_0x14d12c)||_0x252763['addRange'](_0x14d12c);_0x4bd50e['removeMarkers']();}else{_0x252763=_0x4bd50e;for(const _0x596eda of _0x3aed73)_0x4bd50e['isIntersectingWithRange'](_0x596eda)||_0x4bd50e['addRange'](_0x596eda);}}if(_0x252763)return _0x252763;_0xccbc0c['clear']();for(const {suggestion:_0x4d0d09,meta:_0x42d6e7}of this['_findSuggestions'](_0x3aed73,'deletion'))_0x42d6e7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x42d6e7['containsRangeInObject']&&!_0x42d6e7['isInsideObject'])&&qt(_0x4d0d09,_0x253938)&&_0xccbc0c['add'](_0x4d0d09);for(const _0x52ff19 of _0xccbc0c){const _0x2e8388=_0x52ff19['getRanges']();if(!_0x253938||!_0x253938['skipNestingCheck']){if(_0x3aed73['every'](_0x4b4538=>_0x2e8388['some'](_0x191772=>_0x191772['containsRange'](_0x4b4538,!0x0))))return _0x52ff19;}(!_0x52ff19['attributes']||!_0x52ff19['attributes']['skipNestingCheck'])&&(_0x2e8388['every'](_0x28181a=>_0x3aed73['some'](_0xe85794=>_0xe85794['containsRange'](_0x28181a,!0x0)))&&_0x52ff19['discard']());}const _0x4b8642=_0x38f7ff(),_0x375270=_0x248adc['id'],_0x2372b9='deletion:'+_0xfdef2e,_0x5b0dbc=this['_setSuggestionData']({'id':_0x4b8642,'type':_0x2372b9,'createdAt':new Date(),'authorId':_0x375270,'attributes':_0x253938});for(const _0x1f8b61 of _0x3aed73)_0x1f8b61['detach'](),_0x1f8b61['isCollapsed']||'$graveyard'==_0x1f8b61['root']['rootName']||this['_addSuggestionMarker'](_0x2372b9,_0x4b8642,_0x375270,_0x1f8b61,u['getMultiRangeId']());return _0x5b0dbc;}['markAttributeChange'](_0x46d381,_0x4bfda7,_0x2d946d,_0x4ce861,_0x5c52b1){if(_0x46d381['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x258cb5=this['editor']['plugins']['get']('Users')['me']['id'],_0x51a5cc=Array['from'](this['_suggestions']['values']())['filter'](_0x27bcc3=>'attribute'==_0x27bcc3['type']&&_0x27bcc3['data']['key']==_0x4bfda7&&_0x27bcc3['isIntersectingWithRange'](_0x46d381));if('default'===this['_trackFormatChanges']){const _0x4b165e=this['_findSuggestions'](_0x46d381,'insertion')['filter'](({meta:_0x2730d6})=>_0x2730d6['isOwn']&&!_0x2730d6['isInsideObject']&&!_0x2730d6['isNextTo'])['map'](({suggestion:_0x5b47e9})=>_0x5b47e9);_0x51a5cc['unshift'](..._0x4b165e);}const _0x36d539=new Map([[_0x46d381,_0x2d946d]]);for(const _0x31d49e of _0x51a5cc){const _0x1e6565='attribute'==_0x31d49e['type']?_0x31d49e['data']['oldValue']:void 0x0,_0x1f7c60=_0x31d49e['getFirstRange'](),_0x5c657d=Array['from'](_0x36d539['keys']())['find'](_0xf349cb=>_0xf349cb['isIntersecting'](_0x1f7c60));if(!_0x5c657d)continue;const _0x240081=_0x5c657d['getDifference'](_0x1f7c60);this['_isBlockAttribute'](_0x4bfda7)&&'insertion'==_0x31d49e['type']&&0x0!=_0x240081['length']||(_0x36d539['delete'](_0x5c657d),_0x240081['forEach'](_0x3e9267=>{_0x36d539['set'](_0x3e9267,_0x2d946d);}),'insertion'!=_0x31d49e['type']&&_0x1e6565!=_0x4ce861&&_0x36d539['set'](_0x5c657d['getIntersection'](_0x1f7c60),_0x1e6565));}const _0x2c2ea5=[];for(const [_0x13e7bb,_0x1264b5]of _0x36d539){const _0x122025=_0x38f7ff(),_0x47913d={'key':_0x4bfda7,'oldValue':_0x1264b5,'newValue':_0x4ce861};_0x4bfda7['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':_0x4bfda7});const _0x191b6a=('attribute:'+(_0x4bfda7+'|'+Gt({'newValue':_0x4ce861})))['substring'](0x0,0x3c),_0x3ee6bc=this['_setSuggestionData']({'id':_0x122025,'type':_0x191b6a,'data':_0x47913d,'createdAt':new Date(),'authorId':_0x258cb5,'attributes':_0x5c52b1});_0x2c2ea5['push'](_0x3ee6bc),this['_addSuggestionMarker'](_0x191b6a,_0x122025,_0x258cb5,_0x13e7bb);}return _0x2c2ea5;}['enableDefaultAttributesIntegration'](_0x234fa0){this['enableCommand'](_0x234fa0,(_0x471477,..._0x392556)=>{this['_recordAttributeChanges'](()=>{_0x471477(..._0x392556);});});}['registerBlockAttribute'](_0x20b743){this['_blockAttributeKeys']['add'](_0x20b743);}['registerInlineAttribute'](_0x26035c){this['_inlineAttributeKeys']['add'](_0x26035c);}['_getAttributeKey'](_0x1bdd88){return'attribute'==_0x1bdd88['type']?_0x1bdd88['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5dd949,_0x32d407){const _0x30cebb=_0x5dd949['getFirstMarker']();this['_model']['change'](_0x25b5ae=>{_0x25b5ae['updateMarker'](_0x30cebb,{'range':_0x32d407});});}['_addThreadToSuggestion'](_0x5d2b98){const _0x45184e=_0x5d2b98['id'],_0x1ab232=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x45184e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1ab232,'threadId':_0x45184e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3ef799=this['_commentsRepository']['getCommentThread'](_0x45184e);_0x3ef799['unbind']('isRemovable'),_0x3ef799['isRemovable']=!0x1,_0x5d2b98['commentThread']=_0x3ef799;}['_checkSuggestionCorrectness'](_0x5f3047,_0x2b9228,_0x1e5978,_0x1f4005){if(_0x5f3047['type']!=_0x2b9228||_0x5f3047['subType']!=_0x1e5978||_0x5f3047['creator']['id']!=_0x1f4005)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2eac2a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x364f22,_0x1c0c40){const _0x2be5ee=_0x364f22['getFirstRange']();if(_0x1c0c40['isEqual'](_0x2be5ee))_0x364f22['removeMarkers']();else{if(_0x2be5ee['containsRange'](_0x1c0c40)){const _0x33e3ed=this['_model']['createPositionAt'](_0x1c0c40['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x364f22,this['_model']['createRange'](_0x2be5ee['start'],_0x33e3ed));const _0x200dbd=_0x38f7ff(),_0x333abb=_0x364f22['creator']['id'],_0x119df5=_0x364f22['type']+':'+_0x364f22['subType'];this['_setSuggestionData']({'id':_0x200dbd,'type':_0x119df5,'createdAt':new Date(),'authorId':_0x333abb,'data':_0x364f22['data'],'attributes':_0x364f22['attributes']});const _0x598993=this['_model']['createPositionAt'](_0x1c0c40['end']['parent'],'after'),_0x2eff77=this['_model']['createRange'](_0x598993,_0x2be5ee['end']);this['_addSuggestionMarker'](_0x119df5,_0x200dbd,_0x333abb,_0x2eff77);}else{if(_0x2be5ee['containsPosition'](_0x1c0c40['start'])){const _0x34a1ec=this['_model']['createPositionAt'](_0x1c0c40['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x364f22,this['_model']['createRange'](_0x2be5ee['start'],_0x34a1ec));}else{const _0x6e39f3=this['_model']['createPositionAt'](_0x1c0c40['end']['parent'],'after');this['_setSuggestionRange'](_0x364f22,this['_model']['createRange'](_0x6e39f3,_0x2be5ee['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2ec367){for(const {suggestion:_0x3b180d,meta:_0x77da6e}of this['_findSuggestions'](_0x2ec367,'insertion')){if(!_0x77da6e['isOwn'])continue;const _0x4cdda2=_0x3b180d['getRanges']();for(const _0x368114 of _0x4cdda2)if(!_0x2ec367['getDifference'](_0x368114)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xc29f5d){const _0x57e01a=this['editor']['plugins']['get']('Users')['getUser'](_0xc29f5d);if(!_0x57e01a)throw new _0x2eac2a('track-changes-user-not-found',this);return _0x57e01a;}['_getExternalAuthor'](_0x41b508){const _0x378505=this['editor']['plugins']['get']('Users'),_0x4c7a67=_0x45b703('external:'+_0x41b508),_0x433131=_0x378505['getUser'](_0x4c7a67);return _0x433131||_0x378505['addUser']({'id':_0x4c7a67,'name':_0x41b508});}['_createSuggestion'](_0x4d16ca,_0x42683e,_0x1b41f4,_0x3d31ca,_0x5a0c95){const _0x148bcf=this['_getAuthorFromId'](_0x3d31ca),_0x5569eb=this['_suggestionFactory']['buildSuggestion'](_0x4d16ca,_0x42683e,_0x1b41f4,_0x148bcf,_0x5a0c95,_0x549c52=>{this['_updateSuggestionData'](_0x1b41f4,{'attributes':_0x549c52});const _0x2b45c4=this['getSuggestion'](_0x1b41f4);this['_joinWithAdjacentSuggestions'](new Set([_0x2b45c4])),this['_refreshSuggestionsChain'](new Set([_0x2b45c4]));});return this['listenTo'](_0x5569eb,'accept',()=>{this['_updateSuggestionData'](_0x1b41f4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5569eb,'discard',()=>{this['_updateSuggestionData'](_0x1b41f4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1b41f4,_0x5569eb),this['_suggestionState']['set'](_0x5569eb,'notReady'),_0x5569eb;}['_splitMarkerName'](_0x5e04a2){const _0x52fe89=_0x5e04a2['split'](':');return{'group':_0x52fe89[0x0],'type':_0x52fe89[0x1],'subType':_0x52fe89['length']>=0x5?_0x52fe89[0x2]:null,'id':_0x52fe89['length']<0x5?_0x52fe89[0x2]:_0x52fe89[0x3],'authorId':_0x52fe89['length']<0x5?_0x52fe89[0x3]:_0x52fe89[0x4],'markerCount':0x6==_0x52fe89['length']?_0x52fe89[0x5]:null};}['_breakSuggestionMarker'](_0x32ceb0,_0x182cdb,_0x10032b){const _0x5e4436=_0x32ceb0['getFirstRange'](),_0x2893d9=_0x5e4436['start'],_0x278edb=_0x5e4436['end'];this['_setSuggestionRange'](_0x32ceb0,this['_model']['createRange'](_0x2893d9,_0x182cdb));const _0x3139d1=_0x38f7ff(),_0x54d9ce=_0x32ceb0['creator']['id'],_0x28dc0e=_0x32ceb0['type']+(_0x32ceb0['subType']?':'+_0x32ceb0['subType']:'');this['_setSuggestionData']({'id':_0x3139d1,'type':_0x28dc0e,'createdAt':new Date(),'authorId':_0x54d9ce,'originalSuggestionId':_0x32ceb0['id'],'attributes':_0x32ceb0['attributes'],'data':_0x32ceb0['data']});const _0x3f18e9=this['_getAttributeKey'](_0x32ceb0);('formatBlock'==_0x32ceb0['type']||_0x3f18e9&&this['_isBlockAttribute'](_0x3f18e9))&&(_0x10032b=this['_model']['createPositionBefore'](_0x10032b['parent'])),this['_addSuggestionMarker'](_0x28dc0e,_0x3139d1,_0x54d9ce,this['_model']['createRange'](_0x10032b,_0x278edb));}['_findSuggestions'](_0x85fbd0,_0x5d0333=null){const _0x5e9352=[],_0x5235e7=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x85fbd0)||(_0x85fbd0=[_0x85fbd0]);for(const _0x561d9e of this['getSuggestions']()){if(!_0x561d9e['isInContent'])continue;if(_0x5d0333&&_0x561d9e['type']!=_0x5d0333)continue;let _0x1b5bf9=!0x1;for(const _0x56ee36 of _0x561d9e['getRanges']()){for(const _0x4ced84 of _0x85fbd0){const _0x2cea1d=_0x4ced84['start']['isEqual'](_0x56ee36['end'])||_0x4ced84['end']['isEqual'](_0x56ee36['start']);if(_0x2cea1d||_0x4ced84['getIntersection'](_0x56ee36)){const _0x52a250=_0x4ced84['containsRange'](_0x56ee36)&&Ot(this['_model']['schema'],_0x56ee36['start'],_0x4ced84),_0x5ce639=_0x56ee36['containsRange'](_0x4ced84)&&Ot(this['_model']['schema'],_0x4ced84['start'],_0x56ee36);_0x5e9352['push']({'suggestion':_0x561d9e,'meta':{'isOwn':_0x5235e7==_0x561d9e['author'],'isNextTo':_0x2cea1d,'isInsideObject':_0x52a250,'containsRangeInObject':_0x5ce639}}),_0x1b5bf9=!0x0;break;}}if(_0x1b5bf9)break;}}return _0x5e9352;}['_addSuggestionMarker'](_0x49bd39,_0x31f4a9,_0x5d3ceb,_0x55cb3c,_0x26a6f6){this['_model']['change'](_0x340fe4=>{let _0x2d6d88='suggestion:'+_0x49bd39+':'+_0x31f4a9+':'+_0x5d3ceb;_0x26a6f6&&(_0x2d6d88=_0x2d6d88+':'+_0x26a6f6),_0x340fe4['addMarker'](_0x2d6d88,{'range':_0x55cb3c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3a0b8a){const _0x114c3a=_0x3a0b8a['previous'],_0x47d968=_0x3a0b8a['next'];_0x3a0b8a['previous']=null,_0x3a0b8a['next']=null,null!=_0x114c3a&&_0x114c3a['next']==_0x3a0b8a&&(_0x114c3a['next']=_0x47d968),null!=_0x47d968&&_0x47d968['previous']==_0x3a0b8a&&(_0x47d968['previous']=_0x114c3a),'ready'==this['_suggestionState']['get'](_0x3a0b8a)&&(this['_suggestionState']['set'](_0x3a0b8a,'removed'),this['fire']('suggestionUnloaded',_0x3a0b8a,_0x114c3a,_0x47d968));}['_setSuggestionData'](_0x496ec7){const _0x3c4aa1=_0x496ec7['id'],_0x12a017=this['addSuggestionData'](_0x496ec7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xe48cf2=this['editor']['plugins']['get']('PendingActions'),_0x27e939=_0x12a017['hasComments'],_0x37a7e3=_0x12a017['subType']?_0x12a017['type']+':'+_0x12a017['subType']:_0x12a017['type'],_0x2429d1=this['editor']['locale'],_0x34225c=_0xe48cf2['add'](o(_0x2429d1,'PENDING_ACTION_SUGGESTION')),_0xb5f6fc={'id':_0x3c4aa1,'type':_0x37a7e3,'hasComments':_0x27e939,'data':_0x496ec7['data']||null,'originalSuggestionId':_0x496ec7['originalSuggestionId']||null,'attributes':_0x12a017['attributes']};this['_adapter']['addSuggestion'](_0xb5f6fc)['then'](_0x46e124=>{_0x12a017['_saved']=!0x0,_0xe48cf2['remove'](_0x34225c),_0x46e124&&_0x46e124['createdAt']&&(this['_suggestions']['get'](_0x3c4aa1)['createdAt']=_0x46e124['createdAt']);})['catch'](_0x8139cc=>{throw _0x553dba('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x12a017['discard']();}),_0x12a017['stopListening'](),this['_suggestions']['delete'](_0x12a017['id']),this['_suggestionState']['delete'](_0x12a017),_0x8139cc;});}return _0x12a017;}['_isBlockAttribute'](_0x2cea5a){return this['_blockAttributeKeys']['has'](_0x2cea5a);}['_updateSuggestionData'](_0x28ea03,_0x58f43a){const _0x13caaa=this['editor']['plugins']['get']('PendingActions'),_0x3d9502=this['getSuggestion'](_0x28ea03);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3d9502['_saved']){const _0x4cde79=_0x13caaa['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x28ea03,_0x58f43a)['then'](()=>{_0x13caaa['remove'](_0x4cde79);});}else _0x3d9502['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x28ea03,_0x58f43a);});}}['_getSuggestionData'](_0x5bf68f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2eac2a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5bf68f);}['_handleNewSuggestionMarker'](_0x1ad311){const {id:_0xd6a455,type:_0x1b9ed5,subType:_0x59cb0c,authorId:_0x2f3e57}=this['_splitMarkerName'](_0x1ad311),_0x4a3ce6=this['_suggestions']['get'](_0xd6a455)||this['_createSuggestion'](_0x1b9ed5,_0x59cb0c,_0xd6a455,_0x2f3e57,{});switch(this['_checkSuggestionCorrectness'](_0x4a3ce6,_0x1b9ed5,_0x59cb0c,_0x2f3e57),this['_suggestionState']['get'](_0x4a3ce6)){case'notReady':this['_getSuggestionData'](_0xd6a455)['then'](_0x139ff0=>{let _0xb8d089=Promise['resolve']();_0x139ff0['hasComments']&&(_0xb8d089=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xd6a455})),_0xb8d089['then'](()=>{this['addSuggestionData'](_0x139ff0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4a3ce6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xd6a455,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4a3ce6,'ready'),this['fire']('suggestionLoaded',_0x4a3ce6);break;case'ready':this['fire']('suggestionChanged',_0x4a3ce6);}return _0x4a3ce6['addMarkerName'](_0x1ad311),_0x4a3ce6;}['_refreshSuggestionsChain'](_0x2aad2c){const _0x3db6bc=Array['from'](_0x2aad2c),_0x88ef1b=_0x3db6bc['filter'](_0x4ea5de=>'attribute'==_0x4ea5de['type']);this['_refreshAttributeSuggestionsChain'](_0x88ef1b);const _0x40d5cc=_0x3db6bc['filter'](_0x4c227e=>!_0x4c227e['isMultiRange']&&'attribute'!=_0x4c227e['type']),_0x5864b6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2510b4=>!_0x2510b4['isMultiRange']&&'attribute'!=_0x2510b4['type']),_0x4bdfb7=_0x5864b6['filter'](_0x327860=>!_0x2aad2c['has'](_0x327860)),_0x269fcd=new Map(_0x5864b6['map'](_0x5cd687=>[_0x5cd687,this['_suggestionFactory']['getSuggestionCallback'](_0x5cd687['type'],_0x5cd687['subType'],'chain')])),_0x59c93e=new Map(_0x5864b6['map'](_0x3f0c41=>[_0x3f0c41,_0x3f0c41['getFirstRange']()])),_0x1868dd=new Set(),_0x141d19=new Set();for(let _0x47ddae=0x0;_0x47ddae<_0x40d5cc['length'];_0x47ddae++)_0x2909ca(_0x40d5cc[_0x47ddae],_0x40d5cc,_0x47ddae+0x1);for(let _0x1e7ec2=0x0;_0x1e7ec2<_0x40d5cc['length'];_0x1e7ec2++)_0x2909ca(_0x40d5cc[_0x1e7ec2],_0x4bdfb7,0x0);const _0x17c829=new Set();for(let _0x4edfad=0x0;_0x4edfad<_0x40d5cc['length'];_0x4edfad++){const _0x4c42ba=_0x40d5cc[_0x4edfad];!_0x141d19['has'](_0x4c42ba)&&_0x4c42ba['previous']&&(_0x17c829['add'](_0x4c42ba['previous']),_0x4c42ba['previous']['next']===_0x4c42ba&&(_0x4c42ba['previous']['next']=null),_0x4c42ba['previous']=null),!_0x1868dd['has'](_0x4c42ba)&&_0x4c42ba['next']&&(_0x17c829['add'](_0x4c42ba['next']),_0x4c42ba['next']['previous']===_0x4c42ba&&(_0x4c42ba['next']['previous']=null),_0x4c42ba['next']=null);}function _0x2909ca(_0xedb9c8,_0x3e2a15,_0x3312f8){for(let _0x51832c=_0x3312f8;_0x51832c<_0x3e2a15['length'];_0x51832c++){const _0x380c52=_0x62c1f3(_0xedb9c8,_0x3e2a15[_0x51832c]);_0x380c52&&(_0x380c52[0x0]['next']=_0x380c52[0x1],_0x380c52[0x1]['previous']=_0x380c52[0x0],_0x1868dd['add'](_0x380c52[0x0]),_0x141d19['add'](_0x380c52[0x1]));}}function _0x62c1f3(_0x20554a,_0x10d182){if(_0x20554a['author']['id']!==_0x10d182['author']['id'])return null;const _0x4d7459=_0x269fcd['get'](_0x20554a)(_0x20554a,_0x10d182,_0x59c93e['get'](_0x20554a),_0x59c93e['get'](_0x10d182));if(!_0x4d7459)return null;return _0x269fcd['get'](_0x10d182)(_0x20554a,_0x10d182,_0x59c93e['get'](_0x20554a),_0x59c93e['get'](_0x10d182))?_0x4d7459[0x1]['commentThread']&&_0x4d7459[0x1]['commentThread']['length']?null:_0x4d7459:null;}_0x17c829['size']&&this['_refreshSuggestionsChain'](_0x17c829);}['_refreshAttributeSuggestionsChain'](_0x338e71){if(0x0==_0x338e71['length'])return;const _0x1015e9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54e8fc=>'attribute'==_0x54e8fc['type']&&_0x54e8fc['_isDataLoaded']),_0x25a0b4=[],_0x5d92ac=new Map();for(const _0x2ab36a of _0x1015e9){const _0x20dd32=_0x45b703(_0x2ab36a['attributes']);_0x5d92ac['has'](_0x20dd32)||(_0x5d92ac['set'](_0x20dd32,_0x25a0b4['length']),_0x25a0b4['push']([]));const _0x53cba1=_0x5d92ac['get'](_0x20dd32);_0x25a0b4[_0x53cba1]['push'](_0x2ab36a);}!(function(){_0x25a0b4['sort']((_0xbeaf94,_0x27251d)=>{const _0x45905a=_0xbeaf94[0x0]['createdAt'],_0x1e3bde=_0x27251d[0x0]['createdAt'];return _0x45905a==_0x1e3bde?_0xbeaf94[0x0]['attributes']['groupId']<_0x27251d[0x0]['attributes']['groupId']?-0x1:0x1:_0x45905a<_0x1e3bde?-0x1:0x1;});for(const _0x180491 of _0x25a0b4)_0x180491['sort']((_0x31a995,_0x3ccb69)=>_0x31a995['id']<_0x3ccb69['id']?-0x1:0x1);}());for(let _0x3c37d6=0x0;_0x3c37d6<_0x25a0b4['length'];_0x3c37d6++){if(0x0==_0x25a0b4[_0x3c37d6]['length'])continue;const _0x20f425=[];for(let _0x16e764=_0x3c37d6+0x1;_0x16e764<_0x25a0b4['length'];_0x16e764++)0x0!=_0x25a0b4[_0x16e764]['length']&&_0x43ae28(_0x25a0b4[_0x3c37d6],_0x25a0b4[_0x16e764])&&_0x20f425['push'](_0x16e764);for(const _0x1c56aa of _0x20f425)_0x25a0b4[_0x3c37d6]=_0x25a0b4[_0x3c37d6]['concat'](_0x25a0b4[_0x1c56aa]),_0x25a0b4[_0x1c56aa]=[];}for(const _0x167fa3 of _0x25a0b4)for(let _0x10fca0=0x0;_0x10fca0<_0x167fa3['length'];_0x10fca0++){const _0x204e7a=_0x167fa3[_0x10fca0+0x1]||null;_0x167fa3[_0x10fca0]['next']!==_0x204e7a&&(_0x167fa3[_0x10fca0]['next']=_0x204e7a);}for(const _0x2c1732 of _0x25a0b4)for(let _0x2e285b=0x0;_0x2e285b<_0x2c1732['length'];_0x2e285b++){const _0x29639c=_0x2c1732[_0x2e285b-0x1]||null;_0x2c1732[_0x2e285b]['previous']!==_0x29639c&&(_0x2c1732[_0x2e285b]['previous']=_0x29639c);}function _0x43ae28(_0x2c33de,_0x4e46d1){if(_0x2c33de[0x0]['attributes']['groupId']!==_0x4e46d1[0x0]['attributes']['groupId']&&_0x2c33de[0x0]['author']!==_0x4e46d1[0x0]['author'])return!0x1;if(!function(_0x1a4098,_0xbd1285){if(!_0x1a4098['hasComments']&&!_0xbd1285['hasComments'])return!0x0;if(_0x1a4098['hasComments']&&_0xbd1285['hasComments'])return!0x1;if(_0x1a4098['hasComments']&&_0xbd1285['createdAt']<_0x1a4098['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xbd1285['hasComments']&&_0x1a4098['createdAt']<_0xbd1285['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c33de[0x0],_0x4e46d1[0x0]))return!0x1;const _0x64f256=Tt(_0x2c33de[0x0]['attributes'],'groupId'),_0xa7f5f9=Tt(_0x4e46d1[0x0]['attributes'],'groupId');if(!_0x388927(_0x64f256,_0xa7f5f9))return!0x1;return!!_0x2c33de['every'](_0x479867=>_0x4e46d1['some'](_0x1842d0=>_0x479867['getFirstRange']()['isEqual'](_0x1842d0['getFirstRange']())))&&_0x4e46d1['every'](_0x2daed5=>_0x2c33de['some'](_0x3fcd8e=>_0x2daed5['getFirstRange']()['isEqual'](_0x3fcd8e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x547d40){const _0x2a7b2b=Array['from'](_0x547d40),_0x2aa52d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x28fe31=_0x2aa52d['filter'](_0x100bfa=>!_0x547d40['has'](_0x100bfa)),_0x58db0a=new Map(_0x2a7b2b['map'](_0x24bef7=>[_0x24bef7,this['_suggestionFactory']['getSuggestionCallback'](_0x24bef7['type'],_0x24bef7['subType'],'join')])),_0x492dca=new Map(_0x2aa52d['map'](_0x5517e4=>[_0x5517e4,_0x5517e4['getRanges']()]));for(let _0x426cd8=0x0;_0x426cd8<_0x2a7b2b['length'];_0x426cd8++){if(_0x3adf12(this,_0x2a7b2b[_0x426cd8],_0x2a7b2b,_0x426cd8+0x1))return!0x0;}for(let _0x1c56dd=0x0;_0x1c56dd<_0x2a7b2b['length'];_0x1c56dd++){if(_0x3adf12(this,_0x2a7b2b[_0x1c56dd],_0x28fe31,0x0))return!0x0;}return!0x1;function _0x3adf12(_0x1de1ff,_0xa23009,_0x20d7bb,_0x469f17){for(let _0x2a7bb8=_0x469f17;_0x2a7bb8<_0x20d7bb['length'];_0x2a7bb8++){const _0x383b09=_0x20d7bb[_0x2a7bb8];if(_0x383b09['type']!==_0xa23009['type']||_0x383b09['author']['id']!==_0xa23009['author']['id']||_0x383b09['subType']!==_0xa23009['subType'])continue;if(!Jt(_0xa23009,_0x383b09))continue;if('attribute'==_0xa23009['type']&&_0xa23009['data']['oldValue']!=_0x383b09['data']['oldValue'])continue;if('attribute'==_0xa23009['type']&&_0x1de1ff['_isBlockAttribute'](_0xa23009['data']['key']))continue;if('formatBlock'==_0xa23009['type']){const _0x3c294d=_0x1de1ff['editor']['model'],_0x351ad2=_0xa23009['getContainedElement']();if(_0x351ad2&&(_0x3c294d['schema']['isObject'](_0x351ad2)||_0x3c294d['schema']['isLimit'](_0x351ad2)))continue;}const _0x321285=_0x58db0a['get'](_0xa23009),_0x3624b0=_0x492dca['get'](_0xa23009),_0x8cda5d=_0x492dca['get'](_0x383b09),_0x1bd19c=_0xa23009['commentThread']&&_0xa23009['commentThread']['length'],_0x317292=_0x383b09['commentThread']&&_0x383b09['commentThread']['length'];if(!_0x1bd19c&&_0x321285(_0x8cda5d,_0x3624b0))return _0x1de1ff['_joinSuggestions'](_0x383b09,_0xa23009),_0x492dca['delete'](_0xa23009),!0x0;if(!_0x317292&&_0x321285(_0x3624b0,_0x8cda5d))return _0x1de1ff['_joinSuggestions'](_0xa23009,_0x383b09),_0x492dca['delete'](_0x383b09),!0x0;}return!0x1;}}['_joinSuggestions'](_0x109b42,_0x3f85dc){if(_0x109b42['isMultiRange']){for(const _0x5cf15e of _0x3f85dc['getRanges']())_0x109b42['addRange'](_0x5cf15e);}else{const _0x315b44=_0x3f85dc['getFirstRange']()['end'];this['_setSuggestionRange'](_0x109b42,this['_model']['createRange'](_0x109b42['getFirstRange']()['start'],_0x315b44));}_0x3f85dc['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5e0ea5,_0x35f0a1,_0x24e8ae){const _0x54d298=_0x5e0ea5['startsWith']('format')||_0x5e0ea5['startsWith']('attribute')?'FORMATTING':_0x5e0ea5['toUpperCase']();return o(this['editor']['locale'],_0x35f0a1+'_'+_0x54d298+'_SUGGESTION_ANNOUNCEMENT',_0x24e8ae);}['_initAriaMarkerChangeAnnouncements'](){const _0x55e02b=this['editor'];if(!_0x55e02b['ui'])return;const {ariaLiveAnnouncer:_0x2205c7}=_0x55e02b['ui'];_0x1ec403(this['_model'],({left:_0x211e68,entered:_0x30f1d6})=>{for(const _0x180bfe of _0x211e68){const {group:_0x465913,type:_0x220599}=this['_splitMarkerName'](_0x180bfe['name']);if('suggestion'===_0x465913){_0x2205c7['announce'](this['_getMarkerAnnouncementText'](_0x220599,'LEAVE'));break;}}for(const _0x43ed37 of _0x30f1d6){const {group:_0x144f6c,type:_0x212b2f}=this['_splitMarkerName'](_0x43ed37['name']);if('suggestion'===_0x144f6c){_0x2205c7['announce'](this['_getMarkerAnnouncementText'](_0x212b2f,'ENTER',_0x246c78(_0x20c44c)));break;}}});}['_processAttributeChanges'](_0x53446d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x16a0f9=this['editor'],_0x12324f=_0x16a0f9['model']['document']['differ']['getChanges']();if(0x0==_0x12324f['length'])return!0x1;const _0x3dafbe=[],_0x529925=_0x12324f['filter'](_0x1cb9a2=>'attribute'==_0x1cb9a2['type']),_0x7fab70=_0x12324f['filter'](_0x3765dd=>'insert'==_0x3765dd['type']&&'$text'!=_0x3765dd['name']),_0x1557b0=_0x12324f['filter'](_0x58fd16=>'remove'==_0x58fd16['type']&&'$text'!=_0x58fd16['name']);for(const _0x3b18bc of _0x529925)_0x3dafbe['push']({'key':_0x3b18bc['attributeKey'],'newValue':_0x3b18bc['attributeNewValue'],'oldValue':_0x3b18bc['attributeOldValue'],'range':Pt(_0x3b18bc['range'],_0x16a0f9['model'])});for(const _0x141f19 of _0x7fab70){const _0x117328=_0x1557b0['find'](_0x5cd202=>_0x5cd202['position']['isEqual'](_0x141f19['position']));_0x117328&&_0x3dafbe['push']({'key':m,'newValue':_0x141f19['name'],'oldValue':_0x117328['name'],'range':_0x16a0f9['model']['createRangeOn'](_0x141f19['position']['nodeAfter'])});}return 0x0!=_0x3dafbe['length']&&this['_reduceExistingSuggestions'](_0x53446d,_0x3dafbe);}['_processAttributeSuggestions'](_0x6e1827){let _0x475d15=!0x1;const _0x175603=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x14aa1e=>_0x14aa1e['data']['newRange']&&_0x14aa1e['name']['startsWith']('suggestion:attribute:'));for(const _0x38a37b of _0x175603){const {subType:_0x324619,id:_0x59f17b}=this['_splitMarkerName'](_0x38a37b['name']),_0x5bd313=_0x324619['split']('|')[0x0];for(const _0x2f1cfe of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2f1cfe['id']!=_0x59f17b&&'attribute'==_0x2f1cfe['type']&&_0x2f1cfe['data']&&_0x2f1cfe['data']['key']==_0x5bd313&&_0x2f1cfe['getFirstRange']()['isIntersecting'](_0x38a37b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2f1cfe,_0x38a37b['data']['newRange'],_0x6e1827),_0x475d15=!0x0);}return _0x475d15;}['_recordAttributeChanges'](_0xa18502){this['_recordAttributeSuggestions']=!0x0,_0xa18502();}['_isRegisteredAttribute'](_0x445a52){const _0x451d02=this['_isBlockAttribute'](_0x445a52),_0x28f7be=this['_inlineAttributeKeys']['has'](_0x445a52);return _0x451d02||_0x28f7be;}['_reduceExistingSuggestions'](_0x40714e,_0x4496e2){if(0x0==_0x4496e2['length'])return!0x1;let _0x5bbb19=!0x1;for(const _0x47fa7d of _0x4496e2){const _0x404b6f=this['_findSuggestions'](_0x47fa7d['range'],'attribute')['filter'](_0x485517=>!_0x485517['meta']['isNextTo'])['map'](_0x4ec519=>_0x4ec519['suggestion']),_0x21c202=_0x45b703({'newValue':_0x47fa7d['newValue']});_0x404b6f['filter'](_0x3dfd94=>{const [_0x59a098,_0x31d0af]=_0x3dfd94['subType']['split']('|');return _0x59a098==_0x47fa7d['key']&&_0x31d0af!=_0x21c202;})['forEach'](_0x183e46=>{this['_reduceSuggestionAttributeRange'](_0x183e46,_0x47fa7d['range'],_0x40714e),_0x5bbb19=!0x0;});}return _0x5bbb19;}['_reduceSuggestionAttributeRange'](_0x21596f,_0x1e6a5c,_0x5481a1){const _0x29d395=_0x21596f['getFirstRange']()['getDifference'](_0x1e6a5c);0x0!==_0x29d395['length']?0x1!==_0x29d395['length']?this['_breakSuggestionMarker'](_0x21596f,_0x1e6a5c['start'],_0x1e6a5c['end']):this['_setSuggestionRange'](_0x21596f,_0x29d395[0x0]):_0x5481a1['removeMarker'](_0x21596f['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4ee3be){this['_editor']=_0x4ee3be,this['_model']=_0x4ee3be['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5059cf,_0x52abee,_0x2c63e6,_0x35760f,_0x5b67e0,_0x5c2844){return new u(this['_model'],{'type':_0x5059cf,'subType':_0x52abee,'id':_0x2c63e6,'author':_0x35760f,'creator':_0x35760f,'attributes':_0x5b67e0,'onAttributesChange':_0x5c2844,'onAccept':(..._0x2e9648)=>this['getSuggestionCallback'](_0x5059cf,_0x52abee,'accept')(..._0x2e9648),'onDiscard':(..._0x53f5ac)=>this['getSuggestionCallback'](_0x5059cf,_0x52abee,'discard')(..._0x53f5ac)});}['registerCustomCallback'](_0x915a68,_0x13ace8,_0x5447fd,_0x4c0ad4){const _0x492e5d=_0x915a68+':'+_0x13ace8+':'+_0x5447fd;this['_customCallbacks']['set'](_0x492e5d,_0x4c0ad4);}['getSuggestionCallback'](_0x1d4ca,_0x3ddc80,_0x5bba6e){const _0x1ec2b6=_0x1d4ca+':'+_0x3ddc80+':'+_0x5bba6e;return this['_customCallbacks']['get'](_0x1ec2b6)||this['_defaultCallbacks']['get'](_0x1d4ca+':'+_0x5bba6e);}['_registerDefaultCallbacks'](){const _0x41d578=()=>!0x1,_0x519e65=_0x4a7019=>{_0x4a7019['sort']((_0xb6356b,_0x5ec2a0)=>_0xb6356b['start']['isBefore'](_0x5ec2a0['start'])?0x1:-0x1),this['_model']['change'](_0x132d01=>{for(const _0x594c2f of _0x4a7019){let _0x4a6d2c;_0x4a6d2c=_0x594c2f['end']['isAtEnd']&&_0x594c2f['end']['parent']==_0x594c2f['start']['nodeAfter']?_0x132d01['createSelection'](_0x594c2f['start']['nodeAfter'],'on'):_0x132d01['createSelection'](_0x594c2f),this['_model']['deleteContent'](_0x4a6d2c,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3a7e86=(_0xf6d62c,_0x2d672f)=>{_0x2d672f&&this['_model']['change'](_0xe103c6=>{const {commandName:_0x380e80,commandParams:_0x40edb0=[]}=_0x2d672f,_0x5cb944=_0xf6d62c['map'](_0xad18b=>(Vt(_0xad18b)&&(_0xad18b=this['_model']['createRange'](_0xad18b['end'])),_0xad18b))['filter'](_0x5b855a=>'$graveyard'!==_0x5b855a['root']['rootName']);if(_0x5cb944['length']<0x1)return;const _0xbda033=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1db740=>_0x21472f['fromRange'](_0x1db740));_0xe103c6['setSelection'](_0x5cb944);for(const _0x5d8fa7 of this['_editor']['commands']['commands']())_0x5d8fa7['refresh']();_0x40edb0['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x380e80,..._0x40edb0);const _0x35a3b1=_0xbda033['filter'](_0x1ae945=>'$graveyard'!=_0x1ae945['root']['rootName']);_0x35a3b1['length']>0x0&&_0xe103c6['setSelection'](_0x35a3b1);for(const _0x1c7db7 of _0xbda033)_0x1c7db7['detach']();});},_0x48176b=(_0x68976b,_0x5660f0)=>0x1==_0x68976b['length']&&0x1==_0x5660f0['length']&&_0x68976b[0x0]['end']['isEqual'](_0x5660f0[0x0]['start']),_0x7cff29=(_0x5026ff,_0x46229a,_0x509193,_0x246e8d)=>Ht(_0x5026ff,_0x46229a,_0x509193,_0x246e8d,this['_model'])?[_0x5026ff,_0x46229a]:Ht(_0x46229a,_0x5026ff,_0x246e8d,_0x509193,this['_model'])?[_0x46229a,_0x5026ff]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x41d578),this['_defaultCallbacks']['set']('insertion:discard',_0x519e65),this['_defaultCallbacks']['set']('insertion:join',_0x48176b),this['_defaultCallbacks']['set']('insertion:chain',_0x7cff29),this['_defaultCallbacks']['set']('deletion:accept',_0x519e65),this['_defaultCallbacks']['set']('deletion:discard',_0x41d578),this['_defaultCallbacks']['set']('deletion:join',_0x48176b),this['_defaultCallbacks']['set']('deletion:chain',_0x7cff29),this['_defaultCallbacks']['set']('formatInline:accept',_0x3a7e86),this['_defaultCallbacks']['set']('formatInline:discard',_0x41d578),this['_defaultCallbacks']['set']('formatInline:join',_0x48176b),this['_defaultCallbacks']['set']('formatInline:chain',_0x41d578),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3a7e86),this['_defaultCallbacks']['set']('formatBlock:discard',_0x41d578),this['_defaultCallbacks']['set']('formatBlock:join',_0x48176b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x41d578),this['_defaultCallbacks']['set']('attribute:accept',_0x41d578),this['_defaultCallbacks']['set']('attribute:discard',(_0x2a78ad,_0x88b256)=>{if(!_0x88b256)return;const _0x25848d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1cb33d=>{if(_0x88b256['key']==m)for(const _0x2cec7f of _0x2a78ad){const _0x2aee64=_0x2cec7f['start']['nodeAfter'],_0xff42ac=_0x88b256['oldValue'];_0x1cb33d['rename'](_0x2aee64,_0xff42ac);}else{if(_0x25848d['_isBlockAttribute'](_0x88b256['key'])){for(const _0x329f28 of _0x2a78ad)void 0x0!==_0x88b256['oldValue']?_0x1cb33d['setAttribute'](_0x88b256['key'],_0x88b256['oldValue'],_0x329f28['start']['nodeAfter']):_0x1cb33d['removeAttribute'](_0x88b256['key'],_0x329f28['start']['nodeAfter']);}else{for(const _0x201c3d of _0x2a78ad)_0x88b256['oldValue']?_0x1cb33d['setAttribute'](_0x88b256['key'],_0x88b256['oldValue'],_0x201c3d):_0x1cb33d['removeAttribute'](_0x88b256['key'],_0x201c3d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x48176b);}}function Ot(_0x347d3d,_0xd64fce,_0x1e0b84){for(const _0x231d29 of _0xd64fce['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x231d29['root']==_0x231d29)return!0x1;if(!_0x1e0b84['containsItem'](_0x231d29))return!0x1;if(_0x347d3d['isObject'](_0x231d29)||_0x347d3d['isLimit'](_0x231d29))return!0x0;}return!0x1;}function Vt(_0xabc676){return _0xabc676['end']['parent']==_0xabc676['start']['nodeAfter']&&_0xabc676['end']['isAtStart'];}function Ut(_0x55e019,_0xdf4881,_0xb5e71b,_0x618ce3){const _0x51006b=_0x5577b3=>!_0x5577b3['item']['is']('$textProxy')&&!_0x618ce3['isObject'](_0x5577b3['item']),_0x323be1=_0x55e019['start']['getLastMatchingPosition'](_0x51006b),_0x56af67=_0x55e019['end']['getLastMatchingPosition'](_0x51006b,{'direction':'backward'});return(!_0x55e019['start']['isEqual'](_0x323be1)||!_0x55e019['end']['isEqual'](_0x56af67))&&(_0x323be1['isBefore'](_0x56af67)?_0xb5e71b['updateMarker'](_0xdf4881,{'range':_0xb5e71b['createRange'](_0x323be1,_0x56af67)}):_0xb5e71b['removeMarker'](_0xdf4881),!0x0);}function Gt(_0x56d19e){return _0x45b703(_0x56d19e);}function Ft(_0x21fbe8){const _0x3732e1=_0x21fbe8['start']['nodeAfter'];return _0x3732e1&&_0x3732e1['is']('element');}function Pt(_0x2cea1c,_0xc65a4b){return null==_0x2cea1c['end']['nodeBefore']&&_0x2cea1c['end']['parent']==_0x2cea1c['start']['nodeAfter']?Lt(_0x2cea1c['start']['nodeAfter'],_0xc65a4b):_0x2cea1c;}function Lt(_0x12b072,_0x4abf54){const _0x2d4ea0=_0x4abf54['schema']['isObject'](_0x12b072)||_0x4abf54['schema']['isSelectable'](_0x12b072);return _0x4abf54['createRange'](_0x4abf54['createPositionAt'](_0x12b072,'before'),_0x2d4ea0?_0x4abf54['createPositionAfter'](_0x12b072):_0x4abf54['createPositionAt'](_0x12b072,'end'));}function Ht(_0x575f7c,_0x1391b9,_0x1d35f6,_0xb2f785,_0x504d73){if(_0x575f7c['next'])return!0x1;if(!Jt(_0x575f7c,_0x1391b9))return!0x1;if(_0x1d35f6['end']['isEqual'](_0xb2f785['start']))return!0x0;if(_0x575f7c['type']!=_0x1391b9['type'])return!0x1;if(!_0x1d35f6['end']['isTouching'](_0xb2f785['start']))return!0x1;const _0x3eead8=_0x504d73['createRange'](_0x1d35f6['end'],_0xb2f785['start'])['getWalker']();for(const _0x9bc14f of _0x3eead8)if(['elementStart','elementEnd']['includes'](_0x9bc14f['type'])&&_0x504d73['schema']['isLimit'](_0x9bc14f['item']))return!0x1;return!0x0;}function Jt(_0x5970af,_0x4cf981){if(!_0x5970af['_isDataLoaded']||!_0x4cf981['_isDataLoaded'])return!0x1;const _0x565552=new Set(Object['keys'](_0x5970af['attributes'])),_0x12ab84=new Set(Object['keys'](_0x4cf981['attributes']));if(_0x565552['delete']('groupId'),_0x12ab84['delete']('groupId'),0x0==_0x565552['size']&&0x0==_0x12ab84['size'])return!0x0;if(_0x565552['size']!=_0x12ab84['size'])return!0x1;const _0xa55134={..._0x5970af['attributes']},_0xcea857={..._0x4cf981['attributes']};return delete _0xa55134['groupId'],delete _0xcea857['groupId'],JSON['stringify'](_0xa55134)==JSON['stringify'](_0xcea857);}function qt(_0x293497,_0x2e331f){const _0xdc4824=zt(_0x293497['attributes']),_0x392b91=zt(_0x2e331f);if(!_0x293497['_isDataLoaded'])return!0x1;for(const _0x467462 of Object['keys'](_0x392b91))if(!_0x388927(_0xdc4824[_0x467462],_0x392b91[_0x467462]))return!0x1;return!0x0;}function zt(_0x2352ba){const _0x5d3b1b=Object['assign']({},_0x2352ba);return delete _0x5d3b1b['skipNestingCheck'],delete _0x5d3b1b['tablePasteChainId'],_0x5d3b1b;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xeb514(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4c32e0,_0x11daa7,_0x3c0bc2,_0x3722d4){super(),this['model']=_0x11daa7,this['view']=_0x3c0bc2,this['commentThreadController']=_0x3722d4,this['_editor']=_0x4c32e0,this['_acceptCommand']=_0x4c32e0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4c32e0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5ee26e,_0x320c55)=>_0x5ee26e||_0x320c55),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x7cf3d3=>_0x7cf3d3&&this['_editor']['model']['canEditAt'](_0x11daa7['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x83c644=>_0x83c644&&this['_editor']['model']['canEditAt'](_0x11daa7['getRanges']())),this['_pendingAction']=null,_0x3c0bc2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3c0bc2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3c0bc2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3c0bc2,'change:isDirty',()=>{_0x3c0bc2['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 _0x574931=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x574931);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x14a3c1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1eb766,_0xce9556,_0x1dd3c3,_0x10a411){super(_0x1eb766),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4187e2(_0x1eb766,o(_0x1eb766,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xce9556['authoredAt']),this['bind']('authoredAt')['to'](_0xce9556),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',_0xce9556,'authoredAt',this,'descriptionParts',(_0x540b93,_0x17c7cf,_0x4ed613)=>{const _0x5f361a=_0x4ed613['map'](_0x2c3288=>ls(_0x2c3288['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x540b93-0x1,_0xce9556['author']['name'],_0x17c7cf?_0x10a411['formatDateTime'](_0x17c7cf):'',new DOMParser()['parseFromString'](_0x5f361a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3861a5(),this['focusTracker']=new _0x38067e(),this['keystrokes']=new _0x3e21e5(),this['focusCycler']=new _0x269013({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x18e69a=>_0x18e69a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xce9556,this['_localUser']=_0x1dd3c3,this['_config']=_0x10a411,_0x10a411['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x241dab(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4ed091}=this['_config'];this['commentsListView']=new _0x4ed091(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',_0x27d513=>_0x27d513+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x296e7b,_0x4a037a)=>_0x296e7b||!!_0x4a037a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x297a35}=this['_config'],_0x3895e1=new _0x297a35(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x295bde=_0x3895e1['commentInputView'];return _0x3895e1['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x295bde,'value',(_0x5aaff7,_0xd1247a,_0x2ae1a3)=>!!_0x2ae1a3||_0x5aaff7&&!_0xd1247a),_0x295bde['on']('submit',(_0x2d7ebb,_0x1a2c63)=>{this['fire']('addComment',_0x1a2c63),_0x295bde['editor']['setData']('');}),_0x295bde['on']('cancel',()=>this['focus']()),_0x295bde['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3895e1;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x16ac0e,_0xfcc3ab,_0x2d6a32,_0x5ea994){super(_0x16ac0e,_0xfcc3ab,_0x2d6a32,_0x5ea994),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5326bb=>_0x5326bb&&_0x5326bb[0x0]?_0x5326bb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b6b9b,_0x4abfce)=>{let _0x7acabb='';for(const _0x150ef9 of _0x3b6b9b)_0x7acabb+='<p>'+ls(_0x150ef9['content'],_0x150ef9['color'])+'</p>';return _0x4abfce?_0x7acabb:_0xbebc62(_0x7acabb,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5ea994['SuggestionView'](_0x16ac0e,_0xfcc3ab,{'formatDateTime':_0x5ea994['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 _0xdbfbe=this['bindTemplate'],_0x8cec3=[this['suggestionView']];return this['commentsListView']&&_0x8cec3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x8cec3['push'](this['commentThreadInputView']),_0x8cec3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xdbfbe['if']('isActive','ck-suggestion-wrapper--active'),_0xdbfbe['to']('type',_0x33e366=>'ck-suggestion-'+_0x33e366),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':_0xdbfbe['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x8cec3};}['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 _0x14a3c1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1854d6,_0x752fde,_0x3cece5){super(_0x1854d6),this['_model']=_0x752fde,this['_config']=_0x3cece5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x752fde),this['acceptButton']=this['_createButton'](o(_0x1854d6,'Accept\x20suggestion'),_0x3e8f18['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1854d6,'Discard\x20suggestion'),_0x3e8f18['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x424bea(_0x1854d6,_0x752fde['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3861a5([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x38067e(),this['keystrokes']=new _0x3e21e5(),this['focusCycler']=new _0x269013({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x506e3d=>_0x506e3d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x44cd3b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x44cd3b['innerHTML']=this['description'],this['on']('change:description',(_0x4a8aaa,_0x383374,_0x24add2)=>{_0x44cd3b['innerHTML']=_0x24add2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1c28a4=this['bindTemplate'],_0x51bbdd=[{'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':_0x1c28a4['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1c28a4['to']('authoredAt',_0x6b75d7=>this['_config']['formatDateTime'](_0x6b75d7))}]}]},{'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']&&_0x51bbdd['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':_0x51bbdd}]};}['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'](_0x2811fb,_0x848bfa,_0x5edd23,_0x449da5,_0x3fd772){const _0x370d20=new _0x25d80f(this['locale']);return _0x370d20['set']({'label':_0x2811fb,'icon':_0x848bfa,'tooltip':!0x0,'tooltipPosition':_0x3fd772}),_0x370d20['extendTemplate']({'attributes':{'class':_0x5edd23}}),_0x370d20['on']('execute',()=>{this['fire'](_0x449da5,this['_model']['id']);}),_0x370d20;}['_setupKeyboardNavigation'](){const _0x4708d9=this['element'];this['keystrokes']['listenTo'](_0x4708d9);for(const _0x5eeb50 of this['focusables'])this['focusTracker']['add'](_0x5eeb50['element']),this['keystrokes']['listenTo'](_0x5eeb50['element']);this['keystrokes']['set']('enter',(_0x2fd6f8,_0x346ea1)=>{_0x4708d9===_0x2fd6f8['target']&&(this['focusCycler']['focusFirst'](),_0x346ea1());}),this['keystrokes']['set']('esc',(_0x3f090a,_0x63346a)=>{_0x4708d9!==_0x3f090a['target']&&(this['focus'](),_0x63346a());});}}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 _0x8ac1b{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4f496e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x1a27b1){super(_0x1a27b1),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x350a28=this['editor']['config'];_0x350a28['define']('trackChanges.SuggestionThreadView',re),_0x350a28['define']('trackChanges.SuggestionView',ce),_0x350a28['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x350a28['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xa1fd54,_0x30a1f3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3d80f8,_0x485f1b]of this['_handleControllerBuffer']){const _0x58543b=this['_suggestionToController']['has'](_0x3d80f8);_0x58543b||_0x485f1b?_0x58543b&&_0x485f1b&&this['_destroyController'](_0x3d80f8):this['_initializeController'](_0x3d80f8);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xa1fd54,_0x30a1f3);}['init'](){const _0x579dae=this['editor'],_0x173c41=_0x579dae['plugins']['get']('TrackChangesEditing'),_0x15e0b1=_0x579dae['plugins']['get']('Annotations'),_0x3873c0=_0x579dae['plugins']['get']('EditorAnnotations'),_0x10776e=_0x579dae['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3873c0['addSourceCollector'](()=>{const _0x2ff319=[];for(const [_0x13def1,_0x282b59]of Array['from'](this['_suggestionToController'])){const _0x540f8f=_0x13def1['getAllAdjacentSuggestions'](),_0x2965c9=[];for(const _0x3a58c5 of _0x540f8f){if(!_0x3a58c5['isInContent'])continue;if(_0x3a58c5['isMultiRange']){_0x2965c9['push'](..._0x3a58c5['getRanges']());continue;}const _0x36edbf=_0x3a58c5['getFirstRange']();if(_0x2965c9['length']>0x0){const _0x4665e6=_0x2965c9[0x0]['getJoined'](_0x36edbf);if(_0x4665e6){_0x2965c9[0x0]=_0x4665e6;continue;}}_0x2965c9['push'](_0x36edbf);}_0x2ff319['push']([_0x282b59['view'],_0x2965c9]);}return _0x2ff319;}),this['listenTo'](_0x173c41,'suggestionLoaded',(_0x200b36,_0x4423aa)=>{this['listenTo'](_0x4423aa,'change:previous',(_0x149f89,_0x26d513,_0x379acf,_0x34f873)=>{_0x4423aa['isInContent']&&(null==_0x379acf?(this['_updateController'](_0x34f873['head']),this['_handleSuggestionControllerDelayed'](_0x4423aa,!0x1)):(this['_updateController'](_0x379acf['head']),null==_0x34f873&&this['_handleSuggestionControllerDelayed'](_0x4423aa,!0x0)));}),null!==_0x4423aa['previous']?this['_updateController'](_0x4423aa['head']):this['_handleSuggestionControllerDelayed'](_0x4423aa,!0x1);}),this['listenTo'](_0x173c41,'suggestionUnloaded',(_0x376255,_0xef77a7,_0xe0c03d)=>{this['stopListening'](_0xef77a7,'change:previous'),this['_handleControllerBuffer']['delete'](_0xef77a7),this['_suggestionToController']['has'](_0xef77a7)&&this['_destroyController'](_0xef77a7),_0xe0c03d&&this['_updateController'](_0xe0c03d['head']);}),this['listenTo'](_0x173c41,'suggestionChanged',(_0x909f01,_0x2dceff)=>{this['_updateController'](_0x2dceff);}),this['listenTo'](_0x15e0b1,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x10776e,'addComment',(_0x189fa5,{threadId:_0x1b4555,isFromAdapter:_0x2c0fe6})=>{if(_0x2c0fe6||!_0x173c41['hasSuggestion'](_0x1b4555))return;const _0xed48b4=_0x173c41['getSuggestion'](_0x1b4555);this['_suggestionToController']['get'](_0xed48b4)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3486f5=this['editor']['plugins']['get']('Annotations'),_0x33a10a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b0ab0=Array['from'](_0x3486f5['activeAnnotations'],_0xba3656=>_0xba3656['innerView'])['filter'](_0x4e0ecf=>this['_viewToController']['has'](_0x4e0ecf)),_0xf4626d=[];for(const _0x2e3e98 of _0x5b0ab0){const _0x20e77c=this['_viewToController']['get'](_0x2e3e98)['model']['getAllAdjacentSuggestions']();_0xf4626d['push'](..._0x20e77c['reduce']((_0x3e0eea,_0x4e31ac)=>[..._0x3e0eea,..._0x4e31ac['getMarkerNames']()],[]));}_0x33a10a['activeMarkers']=_0xf4626d;}['_addUIComponentsToFactory'](){const _0x33a2e0=this['editor'],_0x3c33c6=_0x33a2e0['locale'],_0x5561b1=o(_0x3c33c6,'Track\x20changes'),_0xd5d420=new Wt([{'type':'switchbutton','model':new _0x42f8af({'withText':!0x0,'isToggleable':!0x0,'label':_0x5561b1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x42f8af({'withText':!0x0,'label':o(_0x3c33c6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x42f8af({'withText':!0x0,'label':o(_0x3c33c6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x42f8af({'withText':!0x0,'label':o(_0x3c33c6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x42f8af({'withText':!0x0,'label':o(_0x3c33c6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5bde7b of _0xd5d420)if(me(_0x5bde7b)){const _0x5531c6=_0x33a2e0['commands']['get'](_0x5bde7b['model']['commandName']);_0x5bde7b['model']['bind']('isOn','isEnabled')['to'](_0x5531c6,'value','isEnabled');}_0x33a2e0['ui']['componentFactory']['add']('trackChanges',_0x51d134=>this['_createToolbarButton'](_0x51d134,_0xd5d420,_0x5561b1)),_0x33a2e0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2a8da9=>this['_createMenuBarMenu'](_0x2a8da9,_0xd5d420,_0x5561b1));}['_createToolbarButton'](_0x101bca,_0x360e2a,_0x22dac4){const _0xdd5a45=Qt(_0x101bca,_0x5476ac),_0x9fed57=this['editor']['commands']['get']('trackChanges');_0xdd5a45['buttonView']['set']({'tooltip':_0x22dac4,'label':_0x22dac4,'icon':he}),_0xdd5a45['buttonView']['bind']('isOn')['to'](_0x9fed57,'value'),_0xdd5a45['buttonView']['on']('execute',()=>{_0x9fed57['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0xdd5a45,_0x360e2a,{'role':'menu'});const _0x4e8d26=[];for(const _0x299892 of _0x360e2a)me(_0x299892)&&_0x4e8d26['push'](this['editor']['commands']['get'](_0x299892['model']['commandName']));const _0x1b6840=_0xdd5a45['buttonView'];return _0x1b6840['actionView']['unbind']('isEnabled'),_0x1b6840['arrowView']['unbind']('isEnabled'),_0x1b6840['actionView']['bind']('isEnabled')['to'](_0x9fed57,'isEnabled'),_0x1b6840['arrowView']['bind']('isEnabled')['toMany'](_0x4e8d26,'isEnabled',(..._0x5eea2f)=>_0x5eea2f['some'](_0x65bd5b=>_0x65bd5b)),_0xdd5a45['on']('execute',_0x2fdd2f=>{this['editor']['execute'](_0x2fdd2f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xdd5a45;}['_createMenuBarMenu'](_0x2189b7,_0x328e67,_0x975366){const _0x397737=new Yt(_0x2189b7),_0x133646=this['editor']['commands']['get']('trackChanges');_0x397737['buttonView']['set']({'label':_0x975366,'icon':he});const _0x42172f=new Zt(_0x2189b7);for(const _0x2aa7ca of _0x328e67){if('separator'==_0x2aa7ca['type']){_0x42172f['items']['add'](new Xt(_0x2189b7));continue;}const _0x5d0b20=new te(_0x2189b7,_0x397737),_0x1e5f48=new _0x33698f(_0x2189b7),_0x38e953=_0x2aa7ca['model'];_0x1e5f48['bind'](...Object['keys'](_0x38e953))['to'](_0x38e953),_0x1e5f48['delegate']('execute')['to'](_0x397737),_0x1e5f48['on']('execute',()=>{this['editor']['execute'](_0x38e953['commandName']),this['editor']['editing']['view']['focus']();}),_0x5d0b20['children']['add'](_0x1e5f48),_0x42172f['items']['add'](_0x5d0b20);}return _0x397737['bind']('isEnabled')['to'](_0x133646,'isEnabled'),_0x397737['panelView']['children']['add'](_0x42172f),_0x397737;}['_initializeController'](_0xedddb3){const _0x2c06a4=this['editor'],_0x4add20=_0x2c06a4['config'],_0x221e42=_0x2c06a4['plugins']['get']('Annotations'),_0x3d4112=_0x2c06a4['plugins']['get']('CommentsRepository'),_0x94dbcb=_0x2c06a4['plugins']['get']('EditorAnnotations'),_0xe7fbf=_0x2c06a4['plugins']['get'](_0x4f496e)['me'],_0x485cf1=_0x4add20['get']('trackChanges')['SuggestionThreadView'],_0x3e332b=_0x4add20['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x119b89,CommentThreadInputView:_0x3a8522}=_0x2c06a4['plugins']['get']('CommentsUI');let _0x513054,_0x202940,_0x6abd2d;this['_annotationViews']['has'](_0xedddb3['id'])?(_0x202940=this['_annotationViews']['get'](_0xedddb3['id']),_0x513054=_0x202940['mainView']):(_0x513054=new _0x485cf1(_0x2c06a4['locale'],_0xedddb3,_0xe7fbf,{'disableComments':this['_disableComments'],'editorConfig':_0x4add20['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4add20['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4add20['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4add20['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x574748(_0x4add20['get']('locale')),'CommentView':_0x4add20['get']('comments')['CommentView'],'CommentsListView':_0x119b89,'CommentThreadInputView':_0x3a8522,'SuggestionView':_0x3e332b}),_0x513054['suggestionView']['acceptButton']['on']('execute',()=>{_0x2c06a4['editing']['view']['focus']();}),_0x513054['suggestionView']['discardButton']['on']('execute',()=>{_0x2c06a4['editing']['view']['focus']();}),_0x202940=_0x221e42['createAnnotationView'](this['editor']['locale'],_0x513054),_0x202940['bind']('isDirty')['to'](_0x513054,'isDirty'),_0x202940['bind']('length')['to'](_0x513054),_0x202940['bind']('type')['to'](_0x513054,'type',_0x356af8=>'suggestion-'+_0x356af8),_0x513054['on']('escape',()=>{_0x6abd2d['fire']('escape');}),this['_annotationViews']['set'](_0xedddb3['id'],_0x202940));const _0x223f06=_0x3d4112['createCommentThreadController'](_0xedddb3['commentThread'],_0x513054),_0x427a28=new ae(_0x2c06a4,_0xedddb3,_0x513054,_0x223f06),_0x265bf6=_0xedddb3['getAllAdjacentSuggestions']()['filter'](_0x5dd02a=>_0x5dd02a['isInContent']);_0x513054['descriptionParts']=_0x2c06a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x265bf6),this['_suggestionToController']['set'](_0xedddb3,_0x427a28),this['_viewToController']['set'](_0x513054,_0x427a28),_0x6abd2d=_0x221e42['createAnnotation']({'view':_0x202940,'target':()=>{const _0x3b881a=[],_0x7b07d9=_0xedddb3['getAllAdjacentSuggestions']()['filter'](_0x41e08f=>_0x41e08f['isInContent']);for(const _0x39d3d5 of _0x7b07d9)_0x3b881a['push'](..._0x39d3d5['getMarkers']());return _0x231782(_0x2c06a4['editing'],_0x3b881a);},'type':()=>'suggestion-'+_0x427a28['view']['type']}),_0x3d4112['_bindAnnotationToEditors'](_0x513054,_0x6abd2d),_0x221e42['add'](_0x6abd2d),_0x94dbcb['registerAnnotation'](_0x6abd2d);}['_destroyController'](_0x247dff){const _0x121615=this['editor']['plugins']['get']('CommentsRepository'),_0x332a20=this['editor']['plugins']['get']('Annotations'),_0x14b3c2=this['_suggestionToController']['get'](_0x247dff),_0x652503=_0x14b3c2['view'],_0x535bf6=_0x332a20['getByInnerView'](_0x652503);_0x121615['_unbindEditors'](_0x652503),_0x535bf6&&_0x332a20['remove'](_0x535bf6),this['_suggestionToController']['delete'](_0x247dff),this['_viewToController']['delete'](_0x652503),_0x14b3c2['destroy']();}['_updateController'](_0x2ae75a){if(!_0x2ae75a['isInContent']||!this['_suggestionToController']['has'](_0x2ae75a))return;const _0xb12018=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8b87d1=this['_suggestionToController']['get'](_0x2ae75a),_0x11ed37=_0x2ae75a['getAllAdjacentSuggestions']();_0x8b87d1['view']['descriptionParts']=_0xb12018['descriptionFactory']['getDescriptions'](_0x11ed37);}['destroy'](){for(const _0x563b32 of this['_suggestionToController']['keys']())this['_destroyController'](_0x563b32);for(const _0x81d425 of this['_annotationViews']['values']())_0x81d425['mainView']['destroy']();super['destroy']();}}function me(_0xf3c31c){return'model'in _0xf3c31c;}class k extends _0x8ac1b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xb4a18c){this['editor']['plugins']['get'](p)['adapter']=_0xb4a18c;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3b3654){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3b3654);}['getSuggestions']({skipNotAttached:_0x141975=!0x1,toJSON:_0x4da268=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x141975,'toJSON':_0x4da268});}['getSuggestion'](_0x594da9){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x594da9);}}const T=['Pagination'];class P extends _0x8ac1b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x595740=this['editor'];if(_0x595740['config']['define']('trackChangesData.editorCreator',_0x311e9c=>{const _0x285434=_0x595740['model']['document']['getRootNames']()['reduce']((_0x4019a9,_0x4d91a3)=>(_0x4019a9[_0x4d91a3]='',_0x4019a9),{});return _0x595740['constructor']['create'](_0x285434,_0x311e9c);}),'function'!=typeof _0x595740['config']['get']('trackChangesData')['editorCreator'])throw new _0x2eac2a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x39dbd4){return N(this['editor'],!0x0,_0x39dbd4);}['getDataWithDiscardedSuggestions'](_0x655dc){return N(this['editor'],!0x1,_0x655dc);}}class D extends _0x8ac1b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2a6e18){super(_0x2a6e18),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(_0x4cd208){return void 0x0!==_0x4cd208['getRootsAttributes'];}async function N(_0x2cf3bf,_0x264bcd,_0x3ddea5){const _0x52ffae=_0xc43cae(_0x2cf3bf,T);_0x52ffae['plugins']['push'](p,D),_0x52ffae['rootsAttributes']=v(_0x2cf3bf)?_0x2cf3bf['getRootsAttributes']():void 0x0;const _0x538176=document['createDocumentFragment'](),_0x590870=_0x2cf3bf['config']['get']('trackChangesData')['editorCreator'],_0x4e77cf=await _0x590870(_0x52ffae,()=>function(_0x3cb4fb){const _0x5888c5=document['createElement']('div');return _0x3cb4fb['appendChild'](_0x5888c5),_0x5888c5;}(_0x538176));!function(_0x1c5eb0,_0x29dc37){const _0x522255=_0x1c5eb0['model']['document']['getRootNames']()['reduce']((_0x4c5509,_0x4cdd45)=>(_0x4c5509[_0x4cdd45]=_0x1c5eb0['data']['get']({'rootName':_0x4cdd45}),_0x4c5509),{}),_0x133afa=_0x1c5eb0['plugins']['get']('Users')['users']['map'](_0x5b0b73=>({'id':_0x5b0b73['id'],'name':_0x5b0b73['name']})),_0x3ec31f=_0x1c5eb0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xaa7f09=_0x1c5eb0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x294e6b=_0x29dc37['plugins']['get']('Users'),_0xcbf125=_0x29dc37['plugins']['get']('TrackChangesEditing'),_0x441ede=_0x29dc37['plugins']['get']('CommentsRepository');for(const _0x36bcd0 of _0x441ede['getCommentThreads']())_0x36bcd0['remove']();for(const _0x17e68c of _0x133afa)_0x294e6b['getUser'](_0x17e68c['id'])||_0x294e6b['addUser'](_0x17e68c);_0x294e6b['me']||_0x294e6b['useAnonymousUser']();for(const _0x4db274 of _0xaa7f09)_0x441ede['addCommentThread'](_0x4db274);for(const _0x92586b of _0x3ec31f)_0xcbf125['addSuggestionData'](_0x92586b);_0x29dc37['data']['set'](_0x522255);}(_0x2cf3bf,_0x4e77cf),_0x4e77cf['execute'](_0x264bcd?'acceptAllSuggestions':'discardAllSuggestions');const _0x1cd89c=v(_0x4e77cf)?_0x4e77cf['getFullData'](_0x3ddea5):_0x4e77cf['data']['get'](_0x3ddea5);return await _0x4e77cf['destroy'](),_0x1cd89c;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|