@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240923.0 → 0.0.0-nightly-20240925.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
|
-
_0x1b720e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x20a62a,_0x27bc8c){super(),this['id']=_0x27bc8c['id'],this['type']=_0x27bc8c['type'],this['subType']=_0x27bc8c['subType']||null,this['author']=_0x27bc8c['author'],this['creator']=_0x27bc8c['creator']||_0x27bc8c['author'],this['isExternal']=Boolean(_0x27bc8c['attributes']&&_0x27bc8c['attributes']['@external']),this['data']=null,this['_model']=_0x20a62a,this['_onAccept']=_0x27bc8c['onAccept'],this['_onDiscard']=_0x27bc8c['onDiscard'],this['_onAttributesChange']=_0x27bc8c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x27bc8c['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 _0x1ff0dc=this;for(;_0x1ff0dc['previous'];)_0x1ff0dc=_0x1ff0dc['previous'];return _0x1ff0dc;}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'](_0x46b1db){this['_markerNames']['add'](_0x46b1db);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1a7aed=>this['_model']['markers']['get'](_0x1a7aed))['filter'](_0x616724=>_0x616724);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3cc52d=>{for(const _0x1df1e4 of this['getMarkers']())_0x3cc52d['removeMarker'](_0x1df1e4);}),this['_markerNames']['clear']();}['removeMarker'](_0x3db6a2){this['_model']['change'](_0x198a77=>{_0x198a77['removeMarker'](_0x3db6a2);}),this['_markerNames']['delete'](_0x3db6a2);}['addRange'](_0x2e52d7){const _0x5e43e3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5e43e3),this['_model']['change'](_0x1aaaf2=>{_0x1aaaf2['addMarker'](_0x5e43e3,{'range':_0x2e52d7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x9a717e){for(const _0x23f83a of this['getRanges']())if(_0x23f83a['isIntersecting'](_0x9a717e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4e58cb=>_0x4e58cb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x501fce,_0x2b625e)=>[..._0x501fce,..._0x2b625e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4bb6aa=this['getRanges']();if(0x1!=_0x4bb6aa['length'])return null;const _0x548fce=_0x4bb6aa[0x0],_0x2eeb6f=_0x548fce['start']['nodeAfter'],_0x4066d3=_0x548fce['end']['nodeBefore'];return _0x2eeb6f instanceof _0x264d7b?_0x2eeb6f!=_0x4066d3?null:_0x2eeb6f: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 _0x529585=[];let _0x3fd817=this['head'];for(;_0x3fd817;)_0x529585['push'](_0x3fd817),_0x3fd817=_0x3fd817['next'];return _0x529585;}['setAttribute'](_0x3fb81f,_0x359846){const _0x582bac=_0x41d4f0(this['attributes']);_0x50df8a(_0x582bac,_0x3fb81f,_0x359846),_0x2366ee(_0x582bac,this['attributes'])||(this['attributes']=_0x582bac,this['_onAttributesChange'](_0x582bac));}['removeAttribute'](_0x4f6444){const _0x592566=_0x41d4f0(this['attributes']);_0x1a62b9(_0x592566,_0x4f6444),_0x2366ee(_0x592566,this['attributes'])||(this['attributes']=_0x592566,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 _0x8c81a()['substr'](0x1,0x5);}}function o(_0x2f74c8,_0x5346dd,_0x17b782){const t=_0x2f74c8['t'];switch(_0x5346dd){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',_0x17b782);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x17b782);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x17b782);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x17b782);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x17b782);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',_0x17b782);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x17b782);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',_0x17b782);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x17b782);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x17b782);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x17b782);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x17b782);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x17b782);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x17b782);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x17b782);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x17b782);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x17b782);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x17b782);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x17b782);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x17b782);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x17b782);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x17b782);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x17b782);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'},_0x17b782);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x17b782);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x17b782);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x17b782);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x17b782);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x17b782);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'},_0x17b782);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x17b782);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x17b782);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x17b782);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x17b782);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'},_0x17b782);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x17b782);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'},_0x17b782);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'},_0x17b782);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x17b782);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'},_0x17b782);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x17b782);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'},_0x17b782);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x17b782);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x17b782);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'},_0x17b782);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'},_0x17b782);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'},_0x17b782);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x17b782);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'},_0x17b782);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'},_0x17b782);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'},_0x17b782);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5346dd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x21373e,_0x2d1f0a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x21373e,this['_locale']=_0x2d1f0a;}['getDescriptions'](_0x49aa22){const _0x4d3e07=[],_0x3904b9=new Set(),_0x5c4df4=new Set();for(let _0x2134e6=0x0;_0x2134e6<_0x49aa22['length'];_0x2134e6++){const _0x3e4860=_0x49aa22[_0x2134e6];if(!_0x3e4860['isInContent'])continue;const _0xc6166=this['_handleCustomCallbackDescription'](_0x3e4860);if(_0xc6166){if(null!=_0x3e4860['subType']){if(_0x3904b9['has'](_0x3e4860['subType']))continue;_0x3904b9['add'](_0x3e4860['subType']);}_0x4d3e07['push'](_0xc6166);}else{if('attribute'!=_0x3e4860['type'])'insertion'!=_0x3e4860['type']&&'deletion'!=_0x3e4860['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4d3e07,_0x3e4860,_0x49aa22[_0x2134e6+0x1]);else{const _0x3df792=_0x3e4860['data']['key'];if(_0x5c4df4['has'](_0x3df792))continue;_0x5c4df4['add'](_0x3e4860['data']['key']),_0x3df792==m?this['_handleRenameSuggestionDescription'](_0x4d3e07,_0x3e4860):this['_handleAttributeSuggestionDescription'](_0x4d3e07,_0x3e4860);}}}return this['_resolveDescriptionItems'](_0x4d3e07);}['registerDescriptionCallback'](_0x3c6e74){this['_customCallbacks']['push'](_0x3c6e74);}['registerElementLabel'](_0x5801ad,_0x590252,_0x199a6e=_0xbd4cf9['normal']){'function'==typeof _0x5801ad?_0x2b21e1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5801ad,'label':_0x590252,'priority':_0x199a6e}):this['_itemLabels']['set'](_0x5801ad,_0x590252);}['registerAttributeLabel'](_0x452334,_0xb14ba){this['_attributeLabels']['set'](_0x452334,_0xb14ba);}['getItemLabel'](_0x3081ea,_0x46ceb8=0x1){let _0x225095;for(const _0x16085d of this['_itemLabelsCallbacks'])if(_0x16085d['matchingCallback'](_0x3081ea)){_0x225095=_0x16085d['label'];break;}return _0x225095||(_0x225095=this['_itemLabels']['get'](_0x3081ea['name'])),_0x225095?_0x225095(_0x46ceb8):0x1!==_0x46ceb8?_0x46ceb8+'\x20'+_0x3081ea['name']+'s':''+_0x3081ea['name'];}['_addDescriptionItems'](_0x462b3e,_0x3429df){const _0x49e420=_0x3429df['getFirstRange']()['getWalker'](),_0x51fbcd='insertion'==_0x3429df['type']?'add':'remove';for(const _0x132438 of _0x49e420){const _0x344231=_0x132438['item'],_0x46fc93=_0x462b3e[_0x462b3e['length']-0x1];if(_0x344231['is']('$textProxy'))_0x46fc93&&_0x46fc93['type']['indexOf']('Container')>-0x1&&_0x462b3e['pop'](),_0x46fc93&&'text'==_0x46fc93['type']?_0x46fc93[_0x51fbcd]+=_0x344231['data']:_0x462b3e['push']({'type':'text','add':'add'==_0x51fbcd?_0x344231['data']:'','remove':'remove'==_0x51fbcd?_0x344231['data']:''});else{if(this['_schema']['isObject'](_0x344231)){const _0x1ecbea=_0x344231;if(_0x46fc93&&_0x46fc93['type']['indexOf']('Container')>-0x1&&_0x462b3e['pop'](),'elementEnd'==_0x132438['type'])continue;_0x46fc93&&_0x46fc93['type']==_0x51fbcd+'Object'&&_0x46fc93['element']['name']==_0x1ecbea['name']?_0x46fc93['quantity']++:_0x462b3e['push']({'type':_0x51fbcd+'Object','element':_0x1ecbea,'quantity':0x1}),_0x49e420['skip'](_0x204730=>!('elementEnd'==_0x204730['type']&&_0x204730['item']==_0x344231));}else{if(this['_schema']['checkChild'](_0x344231,'$text')||_0x344231['is']('element','softBreak')){const _0x18af3d=_0x344231;if('add'==_0x51fbcd&&'elementStart'==_0x132438['type']||'remove'==_0x51fbcd&&'elementEnd'==_0x132438['type'])continue;if(_0x46fc93&&-0x1==_0x46fc93['type']['indexOf']('Container')){'text'==_0x46fc93['type']&&(_0x46fc93[_0x51fbcd]+='\x0a');continue;}let _0x30a06f;if(_0x30a06f='add'==_0x51fbcd?_0x18af3d['nextSibling']&&!this['_schema']['isObject'](_0x18af3d['nextSibling'])?_0x18af3d['nextSibling']:null:_0x18af3d['previousSibling']&&!this['_schema']['isObject'](_0x18af3d['previousSibling'])?_0x18af3d['previousSibling']:null,_0x18af3d['isEmpty']||_0x30a06f&&_0x30a06f['isEmpty']){const _0x3dc243=_0x30a06f&&_0x30a06f['isEmpty']?_0x30a06f:_0x18af3d;_0x46fc93&&_0x46fc93['type']==_0x51fbcd+'EmptyContainer'&&_0x46fc93['element']['name']==_0x3dc243['name']?_0x46fc93['quantity']++:_0x462b3e['push']({'type':_0x51fbcd+'EmptyContainer','element':_0x3dc243,'quantity':0x1});}else _0x462b3e['push']({'type':_0x51fbcd+'Container','element':_0x18af3d});}}}}}['_resolveDescriptionItems'](_0x377b5b){const _0x311e14=this['_locale'],_0x195699=[],_0x112ba7=[],_0x9ce886=[];for(const _0x4a1545 of _0x377b5b)switch(_0x4a1545['type']){case'text':if(_0x4a1545['add']=_0x4a1545['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4a1545['remove']=_0x4a1545['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4a1545['add']&&''!=_0x4a1545['remove']){_0x195699['push']({'type':'replace','content':o(_0x311e14,'REPLACE_TEXT',['\x22'+_0x4a1545['remove']+'\x22','\x22'+_0x4a1545['add']+'\x22'])});continue;}if(null!=_0x4a1545['add']['match'](/^ +$/)){_0x195699['push']({'type':'insertion','content':o(_0x311e14,'*Insert:*\x20%0',o(_0x311e14,'ELEMENT_SPACE',_0x4a1545['add']['length']))});continue;}if(null!=_0x4a1545['remove']['match'](/^ +$/)){_0x195699['push']({'type':'deletion','content':o(_0x311e14,'*Remove:*\x20%0',o(_0x311e14,'ELEMENT_SPACE',_0x4a1545['remove']['length']))});continue;}if(''!=_0x4a1545['add']){_0x195699['push']({'type':'insertion','content':o(_0x311e14,'*Insert:*\x20%0','\x22'+_0x4a1545['add']+'\x22')});continue;}_0x195699['push']({'type':'deletion','content':o(_0x311e14,'*Remove:*\x20%0','\x22'+_0x4a1545['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x195699['push']({'type':'insertion','content':o(_0x311e14,'*Insert:*\x20%0',this['getItemLabel'](_0x4a1545['element'],_0x4a1545['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x195699['push']({'type':'deletion','content':o(_0x311e14,'*Remove:*\x20%0',this['getItemLabel'](_0x4a1545['element'],_0x4a1545['quantity']))});continue;case'addContainer':_0x195699['push']({'type':'insertion','content':o(_0x311e14,'*Split:*\x20%0',this['getItemLabel'](_0x4a1545['element'],_0x4a1545['quantity']))});continue;case'removeContainer':_0x195699['push']({'type':'deletion','content':o(_0x311e14,'*Merge:*\x20%0',this['getItemLabel'](_0x4a1545['element'],_0x4a1545['quantity']))});continue;case'addFormat':_0x112ba7['push'](_0x4a1545['key']);continue;case'removeFormat':_0x9ce886['push'](_0x4a1545['key']);continue;default:_0x195699['push'](_0x4a1545);}if(_0x112ba7['length']){const _0x110dc7=_0x112ba7['map'](_0x4c2ff7=>this['_attributeLabels']['has'](_0x4c2ff7)?this['_attributeLabels']['get'](_0x4c2ff7):_0x4c2ff7)['join'](',\x20');_0x195699['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x110dc7)});}if(_0x9ce886['length']){const _0x49af26=_0x9ce886['map'](_0x59bcf4=>this['_attributeLabels']['has'](_0x59bcf4)?this['_attributeLabels']['get'](_0x59bcf4):_0x59bcf4)['join'](',\x20');_0x195699['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x49af26)});}return _0x195699;}['_handleCustomCallbackDescription'](_0x534322){for(const _0x46d7c2 of this['_customCallbacks']){const _0x2cb03c=_0x46d7c2(_0x534322);if(_0x2cb03c&&'type'in _0x2cb03c)return _0x2cb03c;}}['_handleAttributeSuggestionDescription'](_0x3ecbab,_0x110dcc){const _0x227d8b=_0x110dcc['data'],_0x2740b6=void 0x0===_0x227d8b['newValue']?'removeFormat':'addFormat';_0x3ecbab['push']({'type':_0x2740b6,'key':_0x227d8b['key']});}['_handleRenameSuggestionDescription'](_0x369334,_0x38c1b8){_0x369334['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x38c1b8['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2f678c,_0x3e8442,_0x3f8e17){if(this['_addDescriptionItems'](_0x2f678c,_0x3e8442),_0x3f8e17&&_0x3f8e17['getFirstRange']()&&!_0x3e8442['getFirstRange']()['end']['isEqual'](_0x3f8e17['getFirstRange']()['start'])){const _0x17a249=_0x2f678c[_0x2f678c['length']-0x1],_0x190f21='insertion'==_0x3e8442['type']?'add':'remove';_0x17a249&&'text'==_0x17a249['type']&&(_0x17a249[_0x190f21]+='\x0a');}}}class V extends _0x5b23ad{['afterInit'](){const _0x74460f=this['editor'],_0x118260=_0x74460f['plugins']['get']('TrackChangesEditing');_0x74460f['commands']['get']('showAIAssistant')&&_0x118260['enableCommand']('showAIAssistant');}}class U extends _0x5b23ad{['afterInit'](){const _0x2f651a=this['editor'],_0x525bd4=_0x2f651a['locale'];if(!_0x2f651a['plugins']['has']('AlignmentEditing'))return;const _0x571c5b=_0x2f651a['plugins']['get']('TrackChangesEditing');_0x571c5b['enableDefaultAttributesIntegration']('alignment'),_0x571c5b['registerBlockAttribute']('alignment'),_0x571c5b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x525bd4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ae421=this['editor'],_0x250e51=_0x2ae421['locale'];_0x2ae421['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa47cde=>{if('formatBlock'!=_0xa47cde['type'])return;const {data:_0x50c21f}=_0xa47cde;if(_0x50c21f&&'alignment'==_0x50c21f['commandName']){const _0x49de2f=_0x50c21f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x250e51,'*Format:*\x20%0',function(_0x4429c0){switch(_0x4429c0){case'left':return o(_0x250e51,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x250e51,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x250e51,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x250e51,'FORMAT_JUSTIFY_TEXT');}}(_0x49de2f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5b23ad{['afterInit'](){const _0x45ca4b=this['editor'],_0x929ad8=_0x45ca4b['plugins']['get']('TrackChangesEditing'),_0x88a889=_0x45ca4b['locale'];for(const _0x446f4e of ti){if(!_0x45ca4b['plugins']['has'](_0x446f4e))continue;const _0x88a46e=_0x446f4e['slice'](0x0,-0x7)['toLowerCase'](),_0x2e4d11='FORMAT_'+_0x88a46e['toUpperCase']();_0x929ad8['enableDefaultAttributesIntegration'](_0x88a46e),_0x929ad8['registerInlineAttribute'](_0x88a46e),_0x929ad8['descriptionFactory']['registerAttributeLabel'](_0x88a46e,o(_0x88a889,_0x2e4d11));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x163f1c=this['editor'],_0x10a20f=_0x163f1c['locale'],_0x18b2f1=_0x163f1c['plugins']['get']('TrackChangesEditing');function _0x23aabe(_0x291538,_0x2537d9){_0x18b2f1['descriptionFactory']['registerDescriptionCallback'](_0x4b1783=>{if('formatInline'!=_0x4b1783['type'])return;const {data:_0x23d473}=_0x4b1783;return _0x23d473&&_0x23d473['commandName']===_0x291538?_0x23d473['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10a20f,'*Format:*\x20%0',_0x2537d9)}:{'type':'format','content':o(_0x10a20f,'*Remove\x20format:*\x20%0',_0x2537d9)}:void 0x0;});}_0x23aabe('bold',o(_0x10a20f,'FORMAT_BOLD')),_0x23aabe('italic',o(_0x10a20f,'FORMAT_ITALIC')),_0x23aabe('underline',o(_0x10a20f,'FORMAT_UNDERLINE')),_0x23aabe('code',o(_0x10a20f,'FORMAT_CODE')),_0x23aabe('strikethrough',o(_0x10a20f,'FORMAT_STRIKETHROUGH')),_0x23aabe('subscript',o(_0x10a20f,'FORMAT_SUBSCRIPT')),_0x23aabe('superscript',o(_0x10a20f,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5b23ad{['afterInit'](){const _0xf676b2=this['editor'],_0x9e0942=_0xf676b2['locale'];if(!_0xf676b2['plugins']['has']('BlockQuoteEditing'))return;const _0x36bc5b=_0xf676b2['plugins']['get']('TrackChangesEditing'),_0xbfb697=this['editor']['commands']['get']('blockQuote');_0x36bc5b['enableCommand']('blockQuote',(_0x13b621,_0x25ea23={})=>{const _0x1fd575=this['editor']['model']['document']['selection'],_0x29c6b6=_0x25ea23&&void 0x0!==_0x25ea23['forceValue']?_0x25ea23['forceValue']:!_0xbfb697['value'];let _0x1bf5ce=[];if(_0x29c6b6){const _0x3f2a40=Array['from'](_0x1fd575['getSelectedBlocks']())['filter'](_0x5d10cb=>oo(_0x5d10cb)||function(_0x2d307c,_0x56eae5){const _0x3c4acc=_0x56eae5['checkChild'](_0x2d307c['parent'],'blockQuote'),_0x2b4862=_0x56eae5['checkChild'](['$root','blockQuote'],_0x2d307c);return _0x3c4acc&&_0x2b4862;}(_0x5d10cb,this['editor']['model']['schema']));_0x1bf5ce=to(_0x3f2a40,_0xf676b2['model']);}else{const _0x2e0a05=Array['from'](_0x1fd575['getSelectedBlocks']())['filter'](_0x28c16e=>oo(_0x28c16e));_0x1bf5ce=to(_0x2e0a05,_0xf676b2['model']);}_0xf676b2['model']['change'](()=>{for(const _0x534cb9 of _0x1bf5ce)_0x36bc5b['markBlockFormat'](_0x534cb9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x29c6b6}]});});}),_0x36bc5b['descriptionFactory']['registerDescriptionCallback'](_0xf83873=>{const {data:_0x3b5c64}=_0xf83873;if(_0x3b5c64&&'blockQuote'==_0x3b5c64['commandName']){const _0x2786e8=o(_0x9e0942,'ELEMENT_BLOCK_QUOTE');return _0x3b5c64['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9e0942,'*Set\x20format:*\x20%0',_0x2786e8)}:{'type':'format','content':o(_0x9e0942,'*Remove\x20format:*\x20%0',_0x2786e8)};}});}}function oo(_0x31d0f6){return'blockQuote'==_0x31d0f6['parent']['name'];}class L extends _0x5b23ad{['afterInit'](){const _0x4c6e22=this['editor'];_0x4c6e22['plugins']['has']('CaseChange')&&(_0x4c6e22['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4c6e22['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4c6e22['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5b23ad{['afterInit'](){const _0xdad6c8=this['editor'];_0xdad6c8['commands']['get']('ckbox')&&_0xdad6c8['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x5b23ad{['afterInit'](){const _0xbac8b4=this['editor'];if(!_0xbac8b4['plugins']['has']('CodeBlock'))return;const _0x3172c0=_0xbac8b4['plugins']['get']('TrackChangesEditing'),_0x4498a9=_0xbac8b4['locale'],_0x4a036c=_0xbac8b4['config']['get']('codeBlock')['languages'],_0x26f562=_0xbac8b4['commands']['get']('codeBlock');_0x3172c0['enableCommand']('indentCodeBlock'),_0x3172c0['enableCommand']('outdentCodeBlock'),_0x3172c0['enableCommand']('codeBlock',(_0x10c37a,_0x411e98={})=>{const _0x64037f=_0xbac8b4['model'],_0x57317c=_0xbac8b4['model']['document']['selection'],_0x39e3cb=_0x411e98&&void 0x0!==_0x411e98['forceValue']?_0x411e98['forceValue']:!_0x26f562['value'];let _0xebfdde;_0x411e98['language']||(_0x411e98['language']=_0x4a036c[0x0]['language']),_0xebfdde=_0x39e3cb?Array['from'](_0x57317c['getSelectedBlocks']())['filter'](_0x2d79d2=>eo(_0x2d79d2)||function(_0x1d94c7,_0x1a4234){if(_0x1d94c7['is']('rootElement')||_0x1a4234['isLimit'](_0x1d94c7))return!0x1;return _0x1a4234['checkChild'](_0x1d94c7['parent'],'codeBlock');}(_0x2d79d2,_0x64037f['schema'])):Array['from'](_0x57317c['getSelectedBlocks']())['filter'](_0x3159ef=>eo(_0x3159ef));const _0x23d3c5=to(_0xebfdde,_0x64037f);_0x64037f['change'](()=>{for(const _0x1c8b50 of _0x23d3c5)_0x3172c0['markBlockFormat'](_0x1c8b50,{'commandName':'codeBlock','commandParams':[{..._0x411e98,'forceValue':_0x39e3cb}],'formatGroupId':'blockName'});});}),(_0x3172c0['descriptionFactory']['registerElementLabel']('codeBlock',_0x19705f=>o(_0x4498a9,'ELEMENT_CODE_BLOCK',_0x19705f)),_0x3172c0['descriptionFactory']['registerDescriptionCallback'](_0x47ecf1=>{if('formatBlock'!=_0x47ecf1['type'])return;const _0x39b236=_0x4498a9['t'],{data:_0x4a268f}=_0x47ecf1;if(!_0x4a268f||'codeBlock'!=_0x4a268f['commandName'])return;const _0x2869ec=_0x4a268f['commandParams'][0x0]['language'],_0x547fe5=_0x39b236(_0x4a036c['find'](_0x4846b1=>_0x4846b1['language']===_0x2869ec)['label'])['toLowerCase']();return _0x4a268f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4498a9,'*Set\x20format:*\x20%0',o(_0x4498a9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x547fe5+')')}:{'type':'format','content':o(_0x4498a9,'*Remove\x20format:*\x20%0',o(_0x4498a9,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2986cd){return'codeBlock'==_0x2986cd['name'];}class q extends _0x5b23ad{['afterInit'](){const _0x4383f1=this['editor'];if(!_0x4383f1['plugins']['has']('CommentsEditing'))return;_0x4383f1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x25be81,_0x8fc4a3,_0xf1990e){const _0x485d76=[];for(const _0x323a84 of _0x8fc4a3['getItems']())_0x323a84['hasAttribute'](_0x25be81)&&_0x485d76['push'](_0xf1990e['createRangeOn'](_0x323a84));return _0x485d76;}function _e(_0x22842d,_0x4fd57d,{showActiveMarker:_0x56ea95=!0x0}={}){const _0x56978b=_0x22842d['plugins']['get']('TrackChangesEditing');return(_0x127989,_0x32829c,_0x42b270)=>{if(!_0x42b270['consumable']['test'](_0x32829c['markerRange'],_0x127989['name']))return;const _0x1caacc=_0x32829c['markerRange']['getWalker'](),_0xb888b1=_0x32829c['markerRange']['start'],_0x3fd7a6=_0x22842d['model']['schema'];let _0x293a4a=null,_0x59b808=null,_0x47adff=!0x1,_0x14fca6=!0x1;for(const _0x31a96c of _0x1caacc){const _0x6e5493=_0x31a96c['item'];_0x47adff=_0x47adff||_0x3fd7a6['isContent'](_0x6e5493);const _0x403c4c=_0x42b270['mapper']['toViewElement'](_0x6e5493);if(_0x403c4c&&_0x403c4c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x31a96c['type']&&(_0x3fd7a6['isBlock'](_0x6e5493)&&!_0x3fd7a6['isLimit'](_0x6e5493)&&(_0x6e5493['nextSibling']||_0xb888b1['isAtEnd']?_0x293a4a&&_0x293a4a['parent']==_0x6e5493||(_0x293a4a=_0x6e5493,_0xed6f3a(_0x31a96c['previousPosition']),_0x14fca6=!0x0):_0x59b808=_0x59b808||_0x31a96c['previousPosition']));}function _0xed6f3a(_0x26adbd){const {authorId:_0x5520d8}=_0x56978b['_splitMarkerName'](_0x32829c['markerName']),_0x56ab17=_0x42b270['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fd57d,'data-author-id':_0x5520d8}),_0x3b22b7=_0x42b270['mapper']['toViewPosition'](_0x26adbd);_0x56ea95&&_0x56978b['activeMarkers']['includes'](_0x32829c['markerName'])&&_0x42b270['writer']['addClass']('ck-suggestion-marker--active',_0x56ab17),_0x42b270['writer']['insert'](_0x3b22b7,_0x56ab17),_0x42b270['mapper']['bindElementToMarker'](_0x56ab17,_0x32829c['markerName']);}_0x47adff||_0x14fca6||!_0x59b808||_0xed6f3a(_0x59b808);};}class z extends _0x5b23ad{static get['requires'](){return[_0x5a3b86];}['init'](){const _0x3af843=this['editor'],_0x4b87ff=_0x3af843['plugins']['get']('TrackChangesEditing');_0x4b87ff['enableCommand']('delete');const _0x1ef862=_0x3af843['commands']['get']('deleteForward');_0x4b87ff['enableCommand']('deleteForward',(_0x17aef1,_0x4c581b={})=>{const _0xe3d1ba=_0x3af843['model']['createSelection'](_0x3af843['model']['document']['selection']);_0xe3d1ba['isCollapsed']&&_0x3af843['model']['modifySelection'](_0xe3d1ba,{'direction':'forward','unit':_0x4c581b['unit']});const _0xb0576=_0xe3d1ba['getFirstRange'](),_0x530e13=_0x92cefc['fromRange'](_0xb0576);let _0x110d1d;_0x17aef1(_0x4c581b),_0x110d1d='$graveyard'==_0x530e13['root']['rootName']?_0x3af843['model']['createRange'](_0xb0576['start']):_0x3af843['model']['createRange'](_0x530e13['start'],_0x530e13['end']),_0x530e13['detach'](),_0x3af843['model']['enqueueChange'](_0x1ef862['buffer']['batch'],_0x430605=>{_0x1ef862['buffer']['lock'](),_0x430605['setSelection'](_0x430605['createRange'](_0x110d1d['end'])),_0x1ef862['buffer']['unlock']();});}),_0x3af843['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3af843,'merge'),{'priority':'high'}),_0x3af843['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x196f4c,_0xe9d5ee,_0x5d0cdc)=>{_0x5d0cdc['options']['showSuggestionHighlights']&&_e(_0x3af843,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x196f4c,_0xe9d5ee,_0x5d0cdc);},{'priority':'high'}),_0x3af843['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x6825b0,_0x224f10,_0x29b16f)=>{const _0x4a64e2=_0x29b16f['mapper']['markerNameToElements'](_0x224f10['markerName']);if(_0x4a64e2){for(const _0x41d51d of _0x4a64e2)_0x41d51d['is']('uiElement')&&(_0x29b16f['mapper']['unbindElementFromMarkerName'](_0x41d51d,_0x224f10['markerName']),_0x29b16f['writer']['remove'](_0x41d51d));}},{'priority':'high'});}}class K extends _0x5b23ad{['afterInit'](){const _0x3c7c5e=this['editor'];if(!_0x3c7c5e['plugins']['has']('ListEditing'))return;const _0x1e4379=_0x3c7c5e['locale'],_0x19eebe=_0x3c7c5e['plugins']['get']('TrackChangesEditing'),_0x21a079=_0x3c7c5e['plugins']['has']('TodoListEditing'),_0x3de9a0=!!_0x3c7c5e['config']['get']('list.multiBlock');function _0x35ec44(_0x23ccff){return{'type':'format','content':''+o(_0x1e4379,'*Set\x20format:*\x20%0',_0x23ccff)};}function _0x2a4ec3(_0x436235){return{'type':'format','content':''+o(_0x1e4379,'*Remove\x20format:*\x20%0',_0x436235)};}_0x19eebe['enableDefaultAttributesIntegration']('numberedList'),_0x19eebe['enableDefaultAttributesIntegration']('bulletedList'),_0x19eebe['enableDefaultAttributesIntegration']('customNumberedList'),_0x19eebe['enableDefaultAttributesIntegration']('customBulletedList'),_0x19eebe['enableDefaultAttributesIntegration']('indentList'),_0x19eebe['enableDefaultAttributesIntegration']('outdentList'),_0x19eebe['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x19eebe['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x19eebe['registerBlockAttribute']('listItemId'),_0x19eebe['registerBlockAttribute']('listType'),_0x19eebe['registerBlockAttribute']('listIndent'),_0x3de9a0&&(_0x19eebe['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x19eebe['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x21a079&&(_0x19eebe['enableDefaultAttributesIntegration']('todoList'),_0x19eebe['enableDefaultAttributesIntegration']('checkTodoList'),_0x19eebe['registerBlockAttribute']('todoListChecked'),_0x19eebe['descriptionFactory']['registerDescriptionCallback'](_0x42add4=>{const {data:_0x1e112e}=_0x42add4;if(_0x1e112e&&'todoListChecked'==_0x1e112e['key'])return{'type':'format','content':_0x1e112e['newValue']?o(_0x1e4379,'*Check\x20item*'):o(_0x1e4379,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xc2b12c=>{if(_0xc2b12c['batch']['isUndo'])return!0x1;let _0x53732a=!0x1;const _0x442e44=_0x19eebe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x592e90=>'todoListChecked'===_0x19eebe['_getAttributeKey'](_0x592e90));for(const _0x4e0dab of _0x442e44){'todo'!=_0x4e0dab['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x19eebe['_findSuggestions'](_0x4e0dab['getFirstRange'](),'attribute')['find'](_0x44fca7=>'listType'===_0x19eebe['_getAttributeKey'](_0x44fca7['suggestion']))||(_0xc2b12c['removeMarker'](_0x4e0dab['getFirstMarker']()),_0x53732a=!0x0));}return _0x53732a;})),_0x19eebe['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1e4379,'FORMAT_INDENT'));const _0x7a688={'type':'format','content':''};_0x19eebe['descriptionFactory']['registerDescriptionCallback'](_0x1a1b0c=>{const {data:_0x1739e5}=_0x1a1b0c;if(!_0x1739e5||'listType'!=_0x1739e5['key'])return;let _0x1efdca=_0x1a1b0c['head'];for(;_0x1efdca;){if(_0x1efdca['data']&&(('listStyle'==_0x1efdca['data']['key']||'listMarkerStyle'==_0x1efdca['data']['key'])&&(_0x1efdca['data']['newValue']&&'default'!=_0x1efdca['data']['newValue']||'default'!=_0x1efdca['data']['oldValue']&&!_0x1739e5['newValue'])||!_0x3de9a0&&_0x1efdca['data']['key']==m))return _0x7a688;_0x1efdca=_0x1efdca['next'];}if(null==_0x1739e5['newValue'])switch(_0x1739e5['oldValue']){case'bulleted':return _0x2a4ec3(o(_0x1e4379,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a4ec3(o(_0x1e4379,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a4ec3(o(_0x1e4379,'ELEMENT_TODO_LIST'));}switch(_0x1739e5['newValue']){case'bulleted':return _0x35ec44(o(_0x1e4379,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35ec44(o(_0x1e4379,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35ec44(o(_0x1e4379,'ELEMENT_TODO_LIST'));}}),_0x19eebe['descriptionFactory']['registerDescriptionCallback'](_0x4ea9f8=>{const {data:_0x3acf20}=_0x4ea9f8;if(_0x3acf20&&'listIndent'==_0x3acf20['key'])return null==_0x3acf20['newValue']||null==_0x3acf20['oldValue']&&0x0==_0x3acf20['newValue']?_0x7a688:void 0x0;}),_0x19eebe['descriptionFactory']['registerDescriptionCallback'](_0x5ad3c8=>{if('attribute'!=_0x5ad3c8['type'])return;const {data:_0x568494}=_0x5ad3c8;if(!_0x568494||'listItemId'!=_0x568494['key'])return;const _0x1027d6=Ee(_0x5ad3c8);return'newValue'==_0x1027d6?{'type':'format','content':o(_0x1e4379,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1027d6?{'type':'format','content':o(_0x1e4379,'*Split:*\x20list\x20item')}:_0x7a688;}),_0x3c7c5e['model']['document']['registerPostFixer'](_0xf6603c=>this['listItemIdFixer'](_0xf6603c)),_0x3c7c5e['model']['document']['registerPostFixer'](_0x1213a5=>this['noTrackChangesFixer'](_0x1213a5)),_0x3c7c5e['model']['document']['on']('change:data',(_0x4f425c,_0x41fb33)=>{if(_0x41fb33['isUndo']||!_0x41fb33['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x344ca4){if(_0x344ca4['batch']['isUndo']||!_0x344ca4['batch']['isLocal'])return!0x1;let _0x1dcc71=!0x1;const _0x3b76cf=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7dd2b2=>_0x7dd2b2['data']&&'listItemId'==_0x7dd2b2['data']['key'])['filter'](_0x5a0139=>_0x5a0139['data']['newValue']&&_0x5a0139['data']['oldValue']);for(const _0x47be85 of _0x3b76cf)Ee(_0x47be85)||(_0x344ca4['removeMarker'](_0x47be85['getFirstMarker']()),_0x1dcc71=!0x0);return _0x1dcc71;}['noTrackChangesFixer'](_0x4c6549){if(_0x4c6549['batch']['isUndo']||!_0x4c6549['batch']['isLocal'])return!0x1;const _0x438f5a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x438f5a['trackChangesCommand']['value'])return!0x1;let _0x9fab0d=!0x1;const _0x49eb73=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x18d0ab=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x9b9dc0=>'attribute'==_0x9b9dc0['type'])['filter'](_0x3e7b33=>_0x49eb73['includes'](_0x3e7b33['attributeKey']));if(0x0==_0x18d0ab['length'])return _0x9fab0d;for(const _0x2ca980 of _0x18d0ab){const _0x3f874a=_0x438f5a['_findSuggestions'](_0x2ca980['range'],'attribute')['filter'](_0x543d2c=>!_0x543d2c['meta']['isNextTo'])['map'](_0x2bb076=>_0x2bb076['suggestion'])['filter'](_0x6d1050=>{const _0x17f015=_0x438f5a['_getAttributeKey'](_0x6d1050);return _0x49eb73['includes'](_0x17f015);});if(_0x3f874a['length']){for(const _0xdb9df9 of _0x3f874a)_0x4c6549['removeMarker'](_0xdb9df9['getFirstMarker']());_0x9fab0d=!0x0;}}return _0x9fab0d;}['assureChains'](){const _0x4a55b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa8135b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x509405;const _0x1a9caf=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x20f656=>{if(_0x20f656['data']['oldRange']||!_0x20f656['data']['newRange'])return null;if(!_0x20f656['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1c6db8}=_0x4a55b0['_splitMarkerName'](_0x20f656['name']);if(!_0x4a55b0['hasSuggestion'](_0x1c6db8))return null;const _0x35e3d2=_0x4a55b0['getSuggestion'](_0x1c6db8);return _0xa8135b['includes'](_0x35e3d2['data']['key']);})['map'](_0x5a0a29=>{const {id:_0x48eaa3}=_0x4a55b0['_splitMarkerName'](_0x5a0a29['name']),_0x6fea18=_0x4a55b0['getSuggestion'](_0x48eaa3);return _0x509405=_0x6fea18['attributes']['groupId'],_0x6fea18['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1a9caf['size'])return;const _0x2663cf=_0x4a55b0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x652463=>'attribute'==_0x652463['type']&&_0x652463['data']&&_0xa8135b['includes'](_0x652463['data']['key'])&&_0x652463['attributes']['groupId']!=_0x509405)['map'](_0x262607=>({'listItem':_0x262607['getFirstRange']()['start']['nodeAfter'],'groupId':_0x262607['attributes']['groupId']})),_0x1e69ef=new Set();for(const {groupId:_0x29c1c1,listItem:_0x1acb3a}of _0x2663cf)_0x1a9caf['has'](_0x1acb3a)&&_0x1e69ef['add'](_0x29c1c1);for(const _0x153457 of _0x4a55b0['getSuggestions']())_0x1e69ef['has'](_0x153457['attributes']['groupId'])&&_0x153457['setAttribute']('groupId',_0x509405);}['_supportLegacySuggestions'](){const _0x5b80c3=this['editor'],_0x5ed2fe=_0x5b80c3['locale'],_0xdd1a8e=_0x5b80c3['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xdd1a8e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x909934,_0x562746){const _0x4b0521=[];for(let _0x2d9d83 of _0x909934)_0x2d9d83['start']['nodeAfter']===_0x2d9d83['end']['parent']&&(_0x2d9d83=_0x5b80c3['model']['createRange'](_0x5b80c3['model']['createPositionAt'](_0x2d9d83['start']['nodeAfter'],0x0))),_0x4b0521['push'](_0x2d9d83);_0x5b80c3['model']['change'](_0x2c95c8=>{const _0x11ca1d=_0x5b80c3['model']['document']['selection'],_0xb7ac56=Array['from'](_0x11ca1d['getRanges']())['map'](_0xffc568=>_0x92cefc['fromRange'](_0xffc568));_0x2c95c8['setSelection'](_0x4b0521),_0x5b80c3['commands']['get'](_0x562746['commandName'])['refresh'](),_0x562746['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5b80c3['execute'](_0x562746['commandName'],..._0x562746['commandParams']),_0x2c95c8['setSelection'](_0xb7ac56);for(const _0x46b0b0 of _0xb7ac56)_0x46b0b0['detach']();});}),_0xdd1a8e['descriptionFactory']['registerElementLabel'](function(_0x399d09){const _0x78640f=!_0x5b80c3['model']['schema']['isObject'](_0x399d09),_0x30e6c2=_0x399d09['previousSibling'],_0x5dcc62=_0x399d09['nextSibling'],_0x4a130c=_0x399d09['getAttribute']('listItemId'),_0x274401=!_0x30e6c2||_0x30e6c2['getAttribute']('listItemId')!==_0x4a130c,_0x595e08=!_0x5dcc62||_0x5dcc62['getAttribute']('listItemId')!==_0x4a130c;return _0x78640f&&Boolean(_0x4a130c)&&_0x274401&&_0x595e08;},_0x151975=>o(_0x5ed2fe,'ELEMENT_LIST_ITEM',_0x151975));}['_registerLegacyDescription'](){const _0x348323=this['editor'],_0x5303ed=_0x348323['locale'];function _0x4cfa40(_0x55704e){const _0x127533=_0x348323['commands']['get']('bulletedList')['value'],_0x126198=_0x348323['commands']['get']('numberedList')['value'];return'numberedList'===_0x55704e?_0x127533:_0x126198;}_0x348323['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4974fb){if('formatBlock'!=_0x4974fb['type'])return;const {data:_0x37db18}=_0x4974fb;if(!_0x37db18)return;let _0x4716cd,_0x535b65,_0xbaab5,_0x30e32b;switch(_0x37db18['commandName']){case'bulletedList':_0xbaab5=_0x37db18['commandParams'][0x0]['forceValue'],_0x30e32b=_0x4cfa40(_0x37db18['commandName']),_0x4716cd=_0xbaab5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30e32b&&_0x348323['config']['get']('list.multiBlock')||(_0x4716cd='*Change\x20to:*\x20%0'),_0x535b65={'type':'format','content':o(_0x5303ed,_0x4716cd,o(_0x5303ed,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xbaab5=_0x37db18['commandParams'][0x0]['forceValue'],_0x30e32b=_0x4cfa40(_0x37db18['commandName']),_0x4716cd=_0xbaab5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30e32b&&_0x348323['config']['get']('list.multiBlock')||(_0x4716cd='*Change\x20to:*\x20%0'),_0x535b65={'type':'format','content':o(_0x5303ed,_0x4716cd,o(_0x5303ed,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4716cd='*Indent:*\x20%0',_0x535b65={'type':'format','content':o(_0x5303ed,_0x4716cd,o(_0x5303ed,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4716cd=function(_0x210564){const _0xfbe1d7=_0x210564['getFirstRange']();let _0x357914=_0xfbe1d7['start']['nodeAfter'];for(;_0x357914&&_0xfbe1d7['containsItem'](_0x357914);){if(_0x357914['getAttribute']('listIndent')>0x0)return!0x1;_0x357914=_0x357914['nextSibling'];}return!0x0;}(_0x4974fb)?o(_0x5303ed,'*Format:*\x20remove\x20from\x20%0',o(_0x5303ed,function(_0x1d235f){return'ELEMENT_'+_0x1d235f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4974fb))):o(_0x5303ed,'*Outdent:*\x20%0',o(_0x5303ed,'ELEMENT_LIST_ITEM')),_0x535b65={'type':'format','content':_0x4716cd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x37db18['multipleBlocks']&&(_0x4716cd='*Merge:*\x20%0',_0x535b65={'type':'deletion','content':o(_0x5303ed,_0x4716cd,o(_0x5303ed,'ELEMENT_LIST_ITEM'))});}return _0x535b65;});}}function Ee(_0xc0ecf7){let _0xc2f2c1=_0xc0ecf7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xc2f2c1;){const _0x380d08=_0xc2f2c1['getAttribute']('listItemId');if(!_0x380d08)return!0x1;if(_0x380d08==_0xc0ecf7['data']['newValue'])return'newValue';if(_0x380d08==_0xc0ecf7['data']['oldValue'])return'oldValue';_0xc2f2c1=_0xc2f2c1['previousSibling'];}return!0x1;}class pe extends _0x5b23ad{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x11671e=this['editor']['config']['get']('list.properties'),_0x2502bf=this['editor']['plugins']['get']('TrackChangesEditing');_0x11671e['styles']&&(_0x2502bf['enableDefaultAttributesIntegration']('listStyle'),_0x2502bf['registerBlockAttribute']('listStyle')),_0x11671e['reversed']&&(_0x2502bf['enableDefaultAttributesIntegration']('listReversed'),_0x2502bf['registerBlockAttribute']('listReversed')),_0x11671e['startIndex']&&(_0x2502bf['enableDefaultAttributesIntegration']('listStart'),_0x2502bf['registerBlockAttribute']('listStart'));const _0x5d2044={'type':'format','content':''};_0x2502bf['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x22443d=this['editor']['locale'];_0x2502bf['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x22443d,'FORMAT_LIST_REVERSED')),_0x2502bf['descriptionFactory']['registerDescriptionCallback'](_0x288e0c=>{const {data:_0x28b214}=_0x288e0c;if(_0x28b214&&'listReversed'==_0x28b214['key'])return null==_0x28b214['newValue']||0x0==_0x28b214['newValue']&&null==_0x28b214['oldValue']?_0x5d2044:void 0x0;}),_0x2502bf['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x22443d,'FORMAT_LIST_START')),_0x2502bf['descriptionFactory']['registerDescriptionCallback'](_0x36d76d=>{const {data:_0x4b0457}=_0x36d76d;if(_0x4b0457&&'listStart'==_0x4b0457['key'])return null==_0x4b0457['newValue']||0x1==_0x4b0457['newValue']&&null==_0x4b0457['oldValue']?_0x5d2044:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x445e94=>{if(_0x445e94['batch']['isUndo'])return!0x1;let _0x52e4d6=!0x1;const _0x41f501=_0x2502bf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34459f=>{const _0x55d642=_0x2502bf['_getAttributeKey'](_0x34459f);return'listStart'==_0x55d642||'listReversed'==_0x55d642;});for(const _0x5a81c0 of _0x41f501){const _0x3892ea=_0x5a81c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3892ea||'customNumbered'==_0x3892ea)continue;_0x2502bf['_findSuggestions'](_0x5a81c0['getFirstRange'](),'attribute')['find'](_0x3d9999=>'listType'==_0x2502bf['_getAttributeKey'](_0x3d9999['suggestion']))||(_0x445e94['removeMarker'](_0x5a81c0['getFirstMarker']()),_0x52e4d6=!0x0);}return _0x52e4d6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2af6e7){const _0x23465e=this['editor']['locale'],{data:_0x1d4abf}=_0x2af6e7,_0x2bdec6={'type':'format','content':''};if(!_0x1d4abf||'listStyle'!=_0x1d4abf['key'])return;if(!_0x1d4abf['oldValue'])return'default'==_0x1d4abf['newValue']?_0x2bdec6:{'type':'format','content':''+o(_0x23465e,'*Set\x20format:*\x20%0',o(_0x23465e,this['_getTranslationKeyForListStyle'](_0x1d4abf['newValue'])))};if(!_0x1d4abf['newValue']){if('default'==_0x1d4abf['oldValue'])return _0x2bdec6;let _0x3507ee=_0x2af6e7['head'];for(;_0x3507ee;){if(_0x3507ee['data']&&'listType'==_0x3507ee['data']['key']&&_0x3507ee['data']['newValue'])return _0x2bdec6;_0x3507ee=_0x3507ee['next'];}return{'type':'format','content':''+o(_0x23465e,'*Remove\x20format:*\x20%0',o(_0x23465e,this['_getTranslationKeyForListStyle'](_0x1d4abf['oldValue'])))};}if('default'!=_0x1d4abf['newValue'])return{'type':'format','content':''+o(_0x23465e,'*Set\x20format:*\x20%0',o(_0x23465e,this['_getTranslationKeyForListStyle'](_0x1d4abf['newValue'])))};let _0x3aab23=_0x2af6e7['head'];for(;_0x3aab23;){if(_0x3aab23['data']&&'listType'==_0x3aab23['data']['key']&&_0x3aab23['data']['newValue']&&_0x3aab23['data']['oldValue'])return _0x2bdec6;_0x3aab23=_0x3aab23['next'];}return{'type':'format','content':o(_0x23465e,'*Set\x20format:*\x20%0',o(_0x23465e,'ELEMENT_'+_0x2af6e7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x25161d=this['editor'],_0x481803=_0x25161d['locale'];_0x25161d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x483f01=>{if('formatBlock'!=_0x483f01['type'])return;const {data:_0x5757d2}=_0x483f01;if(!_0x5757d2)return;let _0x1ae399,_0x3b77a6;switch(_0x5757d2['commandName']){case'listStyle':_0x1ae399='*Change\x20to:*\x20%0',_0x3b77a6={'type':'format','content':o(_0x481803,_0x1ae399,o(_0x481803,this['_getTranslationKeyForListStyle'](_0x5757d2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ae399=_0x5757d2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3b77a6={'type':'format','content':o(_0x481803,_0x1ae399)};break;case'listStart':_0x1ae399='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3b77a6={'type':'format','content':o(_0x481803,_0x1ae399,_0x5757d2['commandParams'][0x0]['startIndex'])};}return _0x3b77a6;});}['_getTranslationKeyForListStyle'](_0x1c9db2){return'ELEMENT_'+function(_0x34f9b3){if(ye['includes'](_0x34f9b3))return'bulleted';if(Se['includes'](_0x34f9b3))return'numbered';return null;}(_0x1c9db2)['toUpperCase']()+'_LIST_'+_0x1c9db2['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x5b23ad{static get['requires'](){return[_0xcedd67];}['init'](){const _0x54f104=this['editor'],_0x3daa55=_0x54f104['plugins']['get']('TrackChangesEditing'),_0x277a7b=_0x54f104['commands']['get']('enter');_0x3daa55['enableCommand']('enter',()=>{_0x54f104['model']['change'](_0x1ea5aa=>{const _0x50e558=_0x54f104['model']['document']['selection'],_0x4a3efc=_0x50e558['getFirstPosition'](),_0x56549d=_0x92cefc['fromRange'](_0x50e558['getFirstRange']());if(_0x277a7b['enterBlock'](_0x1ea5aa)){const _0x53e815=_0x54f104['model']['createPositionAt'](_0x4a3efc['parent']['nextSibling'],0x0),_0x102740=_0x1ea5aa['createRange'](_0x4a3efc,_0x53e815);_0x3daa55['markInsertion'](_0x102740);}else _0x1ea5aa['setSelection'](_0x1ea5aa['createRange'](_0x56549d['end']));_0x56549d['detach'](),_0x277a7b['fire']('afterExecute',{'writer':_0x1ea5aa});});}),_0x54f104['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x54f104,'split'),{'priority':'high'}),_0x54f104['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3785bb,_0x3a621d,_0x37d752)=>{const _0x591ef8=_0x37d752['mapper']['markerNameToElements'](_0x3a621d['markerName']);if(_0x591ef8){for(const _0x35831e of _0x591ef8)_0x35831e['hasClass']('ck-suggestion-marker-split')&&(_0x37d752['mapper']['unbindElementFromMarkerName'](_0x35831e,_0x3a621d['markerName']),_0x37d752['writer']['remove'](_0x35831e));}},{'priority':'high'}),_0x54f104['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc377dd,_0x54174d,_0x4570ab)=>{_0x4570ab['options']['showSuggestionHighlights']&&_e(_0x54f104,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xc377dd,_0x54174d,_0x4570ab);},{'priority':'high'});}}class X extends _0x5b23ad{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x41e06e=this['editor']['plugins']['get']('TrackChangesEditing');_0x41e06e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x41e06e['enableCommand']('findNext'),_0x41e06e['enableCommand']('findPrevious'),_0x41e06e['enableCommand']('replace'),_0x41e06e['enableCommand']('replaceAll');}['handleFindCommand'](_0x52c89e,_0x3d1d73,_0x5cf4b0={}){const _0x49838d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x52c89e(_0x4eb12b=>{let _0x3b7077=('string'==typeof _0x3d1d73?_0x49838d['findByTextCallback'](_0x3d1d73,_0x5cf4b0):_0x3d1d73)(_0x4eb12b);Array['isArray'](_0x3b7077)&&(_0x3b7077={'results':_0x3b7077,'searchText':'string'==typeof _0x3d1d73?_0x3d1d73:''});const _0x137441=_0x3b7077['results']['filter'](_0x42726e=>!0x1===this['_isInDeletionRange'](_0x42726e,_0x4eb12b['item']));return{..._0x3b7077,'results':_0x137441};},_0x5cf4b0);}['_isInDeletionRange'](_0xd79e46,_0x55f47f){const _0x1bc0e6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x55f47f,_0xd79e46['start']),this['editor']['model']['createPositionAt'](_0x55f47f,_0xd79e46['end']));for(const _0x602b6a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1bc0e6['getIntersection'](_0x602b6a['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 _0x5b23ad{['afterInit'](){const _0xa833fd=this['editor']['locale'],_0x19e8df=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5c2b13,commandName:_0x4804a9}of ro)this['editor']['plugins']['has'](_0x5c2b13)&&(_0x19e8df['enableDefaultAttributesIntegration'](_0x4804a9),_0x19e8df['registerInlineAttribute'](_0x4804a9));_0x19e8df['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xa833fd,'FORMAT_FONT_SIZE')),_0x19e8df['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xa833fd,'FORMAT_FONT_FAMILY')),_0x19e8df['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xa833fd,'FORMAT_FONT_COLOR')),_0x19e8df['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xa833fd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51f7d5=this['editor'],_0x285cb2=_0x51f7d5['locale'];_0x51f7d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47aefc=>{const _0x51ce3c=_0x285cb2['t'];if('formatInline'!=_0x47aefc['type'])return;const {data:_0x1279c7}=_0x47aefc;if(null!=_0x1279c7){if('fontSize'==_0x1279c7['commandName']){const _0x50e37a=_0x1279c7['commandParams'][0x0]['value'];if(_0x50e37a){const _0x1a04ba=_0x51ce3c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x12886a=>_0x12886a['model']==_0x50e37a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x285cb2,'*Set\x20font\x20size:*\x20%0',_0x1a04ba)};}return{'type':'format','content':o(_0x285cb2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1279c7['commandName']){const _0x1896ee=_0x1279c7['commandParams'][0x0]['value'];return _0x1896ee?{'type':'format','content':o(_0x285cb2,'*Set\x20font\x20family:*\x20%0',_0x1896ee)}:{'type':'format','content':o(_0x285cb2,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1279c7['commandName']){const _0x494166=_0x1279c7['commandParams'][0x0]['value'];if(_0x494166){const _0x152d77=_0x54a57b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x55577c=>_0x55577c['model']==_0x494166);let _0x3c8d33=_0x494166,_0x2d99aa='';return _0x152d77&&(_0x3c8d33=_0x152d77['label'],_0x2d99aa=_0x51ce3c(_0x3c8d33)['toLowerCase']()),{'type':'format','content':o(_0x285cb2,'*Set\x20font\x20color:*\x20%0',_0x2d99aa)['trim'](),'color':{'value':_0x494166,'title':_0x2d99aa||_0x3c8d33}};}return{'type':'format','content':o(_0x285cb2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1279c7['commandName']){const _0x34cd63=_0x1279c7['commandParams'][0x0]['value'];if(_0x34cd63){const _0x4124bd=_0x54a57b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x302787=>_0x302787['model']==_0x34cd63);let _0x32cc95=_0x34cd63,_0x2667f3='';return _0x4124bd&&(_0x32cc95=_0x4124bd['label'],_0x2667f3=_0x51ce3c(_0x32cc95)['toLowerCase']()),{'type':'format','content':o(_0x285cb2,'*Set\x20font\x20background\x20color:*\x20%0',_0x2667f3)['trim'](),'color':{'value':_0x34cd63,'title':_0x2667f3||_0x32cc95}};}return{'type':'format','content':o(_0x285cb2,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x5b23ad{['afterInit'](){const _0x589dc8=this['editor'],_0x577433=_0x589dc8['plugins']['get']('TrackChangesEditing'),_0x58cca3=_0x589dc8['commands']['get']('copyFormat'),_0x2abc0a=_0x589dc8['commands']['get']('pasteFormat');_0x58cca3&&_0x2abc0a&&(_0x577433['enableDefaultAttributesIntegration']('pasteFormat'),_0x577433['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2dee3e=this['editor'],_0x4dd804=_0x2dee3e['locale'];_0x2dee3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16a8c3=>{if('formatBlock'!=_0x16a8c3['type']&&'formatInline'!=_0x16a8c3['type'])return;const {data:_0x1f8fe2}=_0x16a8c3;if(_0x1f8fe2&&'pasteFormat'===_0x1f8fe2['commandName']){const _0x43fee2=[],_0x9c9a2a=_0x1f8fe2['commandParams'][0x0];for(const [_0x4005ec,_0x244772]of Object['entries'](_0x9c9a2a))_0x43fee2['push'](so(_0x2dee3e,_0x4005ec,_0x244772));return _0x43fee2['length']?{'type':'format','content':o(_0x4dd804,'*Set\x20format\x20to:*\x20%0',_0x43fee2['join'](',\x20'))}:{'type':'format','content':o(_0x4dd804,'*Remove\x20all\x20formatting*')};}});}}function so(_0x34316c,_0x1fb598,_0xe1ae9c){const _0x49a5b6=_0x34316c['locale']['t'],_0x1196a2=_0x1fb598['split'](/(?=[A-Z])/)['join']('\x20'),_0x3fb33d=_0x49a5b6(_0x1196a2['charAt'](0x0)['toUpperCase']()+_0x1196a2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xe1ae9c)return _0x3fb33d;if('fontColor'===_0x1fb598||'fontBackgroundColor'===_0x1fb598){const _0x128a44=_0x54a57b(_0x34316c['config']['get']('fontColor.colors'))['find'](_0x52c279=>_0x52c279['model']==_0xe1ae9c);return _0x3fb33d+'\x20('+(_0x128a44?_0x49a5b6(_0x128a44['label'])['toLowerCase']():_0xe1ae9c)+')';}if('fontSize'===_0x1fb598&&isNaN(parseFloat(_0xe1ae9c))){const _0x4722c2=_0x34316c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x34316c['config']['get']('fontSize.options'))['find'](_0x31322f=>_0x31322f['model']==_0xe1ae9c);return _0x3fb33d+'\x20('+(_0x4722c2?_0x49a5b6(_0x4722c2['title'])['toLowerCase']():_0xe1ae9c)+')';}return _0x3fb33d+'\x20('+_0xe1ae9c+')';}class tt extends _0x5b23ad{['_headingOptions'];['afterInit'](){const _0x1300ec=this['editor'];if(!_0x1300ec['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1300ec['config']['get']('heading.options');const _0x4e1eb8=_0x1300ec['locale'],_0x4b72d7=_0x1300ec['plugins']['get']('TrackChangesEditing');_0x4b72d7['enableDefaultAttributesIntegration']('heading');for(const _0x1d099f of this['_headingOptions'])'paragraph'!=_0x1d099f['model']&&_0x4b72d7['descriptionFactory']['registerElementLabel'](_0x1d099f['model'],_0x31e43d=>{const _0xefcbfa=this['_getHeadingLevel'](_0x1d099f['model']);return null!==_0xefcbfa?_0x3bd512(_0x31e43d,_0xefcbfa):_0x52a5ab(_0x31e43d,_0x1d099f['title']);});function _0x3bd512(_0x232ac7,_0x4d5e5a){return o(_0x4e1eb8,'ELEMENT_HEADING',[_0x232ac7,_0x4d5e5a]);}function _0x52a5ab(_0x35a4f0,_0x23cd97){return o(_0x4e1eb8,'ELEMENT_HEADING_CUSTOM',[_0x35a4f0,_0x23cd97]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ed8dc=this['editor'],_0x247b8d=_0x3ed8dc['locale'];function _0x37af49(_0x28c5af,_0x3e6e69){return o(_0x247b8d,'ELEMENT_HEADING_CUSTOM',[_0x28c5af,_0x3e6e69]);}_0x3ed8dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x245c71=>{if('formatBlock'!=_0x245c71['type'])return;const {data:_0x207f13}=_0x245c71;if(_0x207f13&&'heading'==_0x207f13['commandName']){const _0x2206bb=_0x207f13['commandParams'][0x0]['value'],_0x5cdcfd=this['_getHeadingLevel'](_0x2206bb);if(null!==_0x5cdcfd)return{'type':'format','content':o(_0x247b8d,'*Change\x20to:*\x20%0',(_0x18bdb2=0x1,_0x3f3186=_0x5cdcfd,o(_0x247b8d,'ELEMENT_HEADING',[_0x18bdb2,_0x3f3186])))};const _0x4bbf2b=this['_headingOptions']['find'](_0x4455d8=>_0x4455d8['model']===_0x2206bb)['title'];return{'type':'format','content':o(_0x247b8d,'*Change\x20to:*\x20%0',_0x37af49(0x1,_0x4bbf2b))};}var _0x18bdb2,_0x3f3186;});}['_getHeadingLevel'](_0x339d77){const _0x1797b2=_0x339d77['match'](/^heading(\d+)/);if(_0x1797b2)return _0x1797b2[0x1];const _0x160472=this['_headingOptions']?.['find'](_0x367800=>_0x367800['model']==_0x339d77);if(_0x160472&&_0x160472['view']){const _0x495e82=_0x160472['view'],_0x5f5261=(_0x495e82['name']??_0x495e82)['match'](/^h(\d+)/);if(_0x5f5261)return _0x5f5261[0x1];}return null;}}class et extends _0x5b23ad{['afterInit'](){const _0x173fa3=this['editor'];if(!_0x173fa3['plugins']['has']('HighlightEditing'))return;const _0x1ddb15=_0x173fa3['plugins']['get']('TrackChangesEditing'),_0xd4c66e=_0x173fa3['locale'];_0x1ddb15['enableDefaultAttributesIntegration']('highlight'),_0x1ddb15['registerInlineAttribute']('highlight'),_0x1ddb15['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xd4c66e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26d8ff=this['editor'],_0x25c1b9=_0x26d8ff['locale'];_0x26d8ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x529099=>{if('formatInline'!=_0x529099['type'])return;const {data:_0xf4cb0a}=_0x529099;if(_0xf4cb0a&&'highlight'==_0xf4cb0a['commandName']){const _0x1608f8=_0x25c1b9['t'],_0xcd1deb=_0xf4cb0a['commandParams'][0x0]['value'];if(_0xcd1deb){const _0x5cd8b2=_0x26d8ff['config']['get']('highlight.options')['find'](_0x360d8b=>_0x360d8b['model']==_0xcd1deb),_0x5aee3d=_0x1608f8(_0x5cd8b2['title'])['toLowerCase']();return{'type':'format','content':o(_0x25c1b9,'*Set\x20highlight:*\x20%0',_0x5aee3d),'color':{'value':_0x5cd8b2['color'],'title':_0x5cd8b2['title']}};}return{'type':'format','content':o(_0x25c1b9,'*Remove\x20highlight*',o(_0x25c1b9,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x5b23ad{['afterInit'](){const _0xdc741=this['editor'];if(!_0xdc741['plugins']['has']('HorizontalLineEditing'))return;_0xdc741['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4ab188=_0xdc741['plugins']['get']('TrackChangesEditing'),_0x1fcc93=_0xdc741['locale'];_0x4ab188['descriptionFactory']['registerElementLabel']('horizontalLine',_0xa2681e=>o(_0x1fcc93,'ELEMENT_HORIZONTAL_LINE',_0xa2681e)),_0xdc741['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1beb44,{writer:_0x4f53b8,options:_0x3678ff})=>{if(!_0x3678ff['showSuggestionHighlights'])return null;const _0x55df97=_0x4f53b8['createContainerElement']('div'),_0x24caf3=_0x4f53b8['createEmptyElement']('hr');return _0x4f53b8['addClass']('ck-horizontal-line',_0x55df97),_0x4f53b8['insert'](_0x4f53b8['createPositionAt'](_0x55df97,0x0),_0x24caf3),_0x55df97;},'converterPriority':'high'});}}class st extends _0x5b23ad{['afterInit'](){const _0xd4fcf=this['editor'];if(!_0xd4fcf['plugins']['has']('HtmlEmbed'))return;const _0x57f0ae=_0xd4fcf['plugins']['get']('TrackChangesEditing'),_0x408a81=_0xd4fcf['locale'];_0x57f0ae['descriptionFactory']['registerElementLabel']('rawHtml',_0x5673be=>o(_0x408a81,'ELEMENT_HTML_EMBED',_0x5673be)),_0x57f0ae['enableDefaultAttributesIntegration']('htmlEmbed'),_0x57f0ae['registerBlockAttribute']('value'),_0x57f0ae['descriptionFactory']['registerDescriptionCallback'](_0x2e7a13=>{if('attribute'!=_0x2e7a13['type'])return;const {data:_0x41fe44}=_0x2e7a13;if(_0x41fe44&&'value'==_0x41fe44['key']&&_0x2e7a13['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xb268c3=o(_0x408a81,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x408a81,'*Change\x20%0\x20content*',_0xb268c3)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15a22f=this['editor'],_0x1bce64=_0x15a22f['locale'];_0x15a22f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54cdea=>{if('formatBlock'!=_0x54cdea['type'])return;const {data:_0x269e7d}=_0x54cdea;if(_0x269e7d&&'htmlEmbed'==_0x269e7d['commandName']){const _0x50fd8c=o(_0x1bce64,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1bce64,'*Change\x20%0\x20content*',_0x50fd8c)};}});}}class nt extends _0x5b23ad{['afterInit'](){const _0xc17f3=this['editor'];if(!_0xc17f3['plugins']['has']('ImageEditing'))return;const _0x5f447d=_0xc17f3['plugins']['get']('TrackChangesEditing'),_0x3f9c52=_0xc17f3['plugins']['get']('ImageUtils'),_0xa7c00=_0xc17f3['locale'];_0x5f447d['enableCommand']('insertImage'),_0x5f447d['descriptionFactory']['registerElementLabel']('imageBlock',_0x1e2dc9=>o(_0xa7c00,'ELEMENT_IMAGE',_0x1e2dc9)),_0x5f447d['descriptionFactory']['registerElementLabel']('imageInline',_0x3e80be=>o(_0xa7c00,'ELEMENT_INLINE_IMAGE',_0x3e80be)),_0x5f447d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xa7c00,'ELEMENT_CAPTION')),_0xc17f3['plugins']['has']('ImageUploadEditing')&&_0x5f447d['enableCommand']('uploadImage'),_0xc17f3['plugins']['has']('ImageBlockEditing')&&_0xc17f3['plugins']['has']('ImageInlineEditing')&&(_0x5f447d['enableCommand']('imageTypeInline',(_0x3550d0,_0x3d22a6)=>{const _0x28f374=_0x3f9c52['getClosestSelectedImageElement'](_0xc17f3['model']['document']['selection']);_0xc17f3['model']['change'](()=>{_0x5f447d['markBlockFormat'](_0x28f374,{'commandName':'imageTypeInline','commandParams':[_0x3d22a6]},[],'convertBlockImageToInline');});}),_0x5f447d['enableCommand']('imageTypeBlock',(_0x35c662,_0x57f102)=>{_0xc17f3['model']['change'](_0x2ac504=>{let _0xe44a80=_0x3f9c52['getClosestSelectedImageElement'](_0xc17f3['model']['document']['selection']),_0x4dc8f1=_0x2ac504['createRangeOn'](_0xe44a80);const _0xf1d195=_0x4e4867['fromPosition'](_0x4dc8f1['start'],'toPrevious'),_0x213eaf=_0x4e4867['fromPosition'](_0x4dc8f1['end'],'toNext');_0x5f447d['forceDefaultExecution'](()=>_0x35c662(_0x57f102)),_0xe44a80=_0x3f9c52['getClosestSelectedImageElement'](_0xc17f3['model']['document']['selection']),_0x4dc8f1=_0x2ac504['createRangeOn'](_0xe44a80);const _0x887b94=_0x2ac504['createRange'](_0xf1d195,_0x213eaf);_0xf1d195['detach'](),_0x213eaf['detach'](),_0x5f447d['markBlockFormat'](_0xe44a80,{'commandName':'imageTypeInline','commandParams':[_0x57f102]},[],'convertInlineImageToBlock'),_0x887b94['start']['isBefore'](_0x4dc8f1['start'])&&_0x5f447d['markInsertion'](_0x2ac504['createRange'](_0x887b94['start'],_0x4dc8f1['start']),'convertInlineImageToBlock'),_0x4dc8f1['end']['isBefore'](_0x887b94['end'])&&_0x5f447d['markInsertion'](_0x2ac504['createRange'](_0x4dc8f1['end'],_0x887b94['end']),'convertInlineImageToBlock');});}),_0x5f447d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5f447d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5f447d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5f447d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5f447d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5f447d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5d1ef9])=>{const _0x1acf5b=_0x5f447d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x41ec3d=_0x5d1ef9['start'],_0x292e30=_0x5d1ef9['end'];const _0x20284d=_0xc17f3['model']['schema']['getNearestSelectionRange'](_0x41ec3d,'backward'),_0x2097c2=_0xc17f3['model']['schema']['getNearestSelectionRange'](_0x292e30,'forward');_0x20284d['isCollapsed']&&(_0x41ec3d=_0x20284d['start']),_0x2097c2['isCollapsed']&&(_0x292e30=_0x2097c2['end']),_0x1acf5b([_0xc17f3['model']['createRange'](_0x41ec3d,_0x292e30)]);}),_0x5f447d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x533e81),_0x5f447d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x533e81)),_0xc17f3['plugins']['has']('ImageCaptionEditing')&&(_0x5f447d['enableCommand']('toggleImageCaption',(_0x2465c2,_0x6f3e6b)=>{const _0x9e871c=_0xc17f3['plugins']['get']('ImageCaptionUtils');let _0x37e4e2=_0x3f9c52['getClosestSelectedImageElement'](_0xc17f3['model']['document']['selection']),_0x38aa27=_0x9e871c['getCaptionFromImageModelElement'](_0x37e4e2);_0xc17f3['model']['change'](()=>{if(_0x38aa27)return void _0x5f447d['markDeletion'](_0xc17f3['model']['createRangeOn'](_0x38aa27));const _0x10a261=_0x3f9c52['isBlockImage'](_0x37e4e2);_0x2465c2(_0x6f3e6b),_0x37e4e2=_0x3f9c52['getClosestSelectedImageElement'](_0xc17f3['model']['document']['selection']),_0x38aa27=_0x9e871c['getCaptionFromImageModelElement'](_0x37e4e2),_0x5f447d['markInsertion'](_0xc17f3['model']['createRangeOn'](_0x38aa27),_0x10a261?null:'imageCaption');});}),_0x5f447d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x533e81));const _0x56c0cc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ad6a8(_0x480fed,_0x5b5bbb){const _0xd56aa0=_0x56c0cc['findIndex'](({type:_0x59bcdd,subType:_0x55ac63})=>_0x480fed['type']==_0x59bcdd&&_0x480fed['subType']==_0x55ac63),_0x31fef4=_0x56c0cc['findIndex'](({type:_0x553e04,subType:_0x56ce11})=>_0x5b5bbb['type']==_0x553e04&&_0x5b5bbb['subType']==_0x56ce11);if(_0xd56aa0<0x0||_0x31fef4<0x0)return!0x1;const _0x47ca1b=_0x480fed['getFirstRange'](),_0x21c45f=_0x5b5bbb['getFirstRange']();if((0x0==_0xd56aa0||0x1==_0xd56aa0)&&0x2==_0x31fef4&&_0x47ca1b['isIntersecting'](_0x21c45f))return!0x0;if(0x2==_0xd56aa0&&0x3==_0x31fef4){const _0x1995e8=_0x5f447d['_findSuggestions'](_0x47ca1b,'insertion')['filter'](({suggestion:_0x3cc4b0,meta:_0x478d08})=>_0x478d08['isOwn']&&'convertInlineImageToBlock'==_0x3cc4b0['subType']);if(_0x1995e8['length']>0x1&&_0x21c45f['end']['isEqual'](_0x47ca1b['start']))return!0x0;if(0x1==_0x1995e8['length']&&(_0x47ca1b['start']['isEqual'](_0x21c45f['end'])||_0x47ca1b['end']['isEqual'](_0x21c45f['start'])))return!0x0;}if(0x3==_0xd56aa0&&0x3==_0x31fef4&&_0x47ca1b['start']['isBefore'](_0x21c45f['start'])){const _0x342e70=_0x47ca1b['end']['nodeAfter'],_0x5ece6f=_0x21c45f['start']['nodeBefore'];return _0x3f9c52['isBlockImage'](_0x342e70)&&_0x342e70===_0x5ece6f;}return!0x1;}function _0x533e81(_0x422e82,_0x3782f0){return _0x4ad6a8(_0x422e82,_0x3782f0)?[_0x422e82,_0x3782f0]:_0x4ad6a8(_0x3782f0,_0x422e82)?[_0x3782f0,_0x422e82]:null;}_0xc17f3['plugins']['has']('ImageResize')&&(_0x5f447d['enableDefaultAttributesIntegration']('resizeImage'),_0x5f447d['registerBlockAttribute']('resizedWidth'),_0x5f447d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xa7c00,'FORMAT_IMAGE_SIZE'))),_0xc17f3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5f447d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5f447d['registerBlockAttribute']('alt')),_0x5f447d['descriptionFactory']['registerDescriptionCallback'](_0x59c283=>{if(!!_0x56c0cc['find'](({type:_0x38c486,subType:_0x1daa50})=>_0x59c283['type']==_0x38c486&&_0x59c283['subType']==_0x1daa50))return _0x59c283['previous']?{}:void 0x0;}),_0x5f447d['descriptionFactory']['registerDescriptionCallback'](_0x5eb588=>{if('insertion'==_0x5eb588['type']||'deletion'==_0x5eb588['type']){const _0x477840=_0x5eb588['getContainedElement']();if(_0x477840&&_0x477840['is']('element','caption'))return{'type':'insertion'==_0x5eb588['type']?'addObject':'removeObject','element':_0x477840,'quantity':0x1};}}),_0x5f447d['descriptionFactory']['registerDescriptionCallback'](_0x3efbfe=>'formatBlock'==_0x3efbfe['type']&&'convertInlineImageToBlock'==_0x3efbfe['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3efbfe['type']&&'convertBlockImageToInline'==_0x3efbfe['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5f447d['descriptionFactory']['registerDescriptionCallback'](_0x3b0d47=>{if('attribute'!=_0x3b0d47['type'])return;const {data:_0x16736b}=_0x3b0d47;if(!_0x16736b||'alt'!=_0x16736b['key'])return;const _0x2cb5bd=_0x16736b['newValue'];return _0x2cb5bd?{'type':'format','content':o(_0xa7c00,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2cb5bd+'\x22')}:{'type':'format','content':o(_0xa7c00,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf3bf4=this['editor'],_0x4fec8e=_0xcf3bf4['locale'];_0xcf3bf4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b47a2=>{if('formatBlock'!=_0x2b47a2['type']&&'formatInline'!=_0x2b47a2['type'])return;const {data:_0x5a5c10}=_0x2b47a2;if(_0x5a5c10){if('imageTextAlternative'==_0x5a5c10['commandName']){const _0x52714d=_0x5a5c10['commandParams'][0x0]['newValue'];return _0x52714d?{'type':'format','content':o(_0x4fec8e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x52714d+'\x22')}:{'type':'format','content':o(_0x4fec8e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5a5c10['commandName']){const _0x1d4a2e=_0x5a5c10['commandParams'][0x0]['width'];return _0x1d4a2e?{'type':'format','content':o(_0x4fec8e,'*Set\x20image\x20width:*\x20%0',_0x1d4a2e)}:{'type':'format','content':o(_0x4fec8e,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x5b23ad{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x69fa12=this['editor']['locale'],_0x300d3c=this['editor']['plugins']['get']('TrackChangesEditing');_0x300d3c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x300d3c['registerBlockAttribute']('src'),_0x300d3c['descriptionFactory']['registerDescriptionCallback'](_0x3be621=>{if('attribute'!=_0x3be621['type'])return;const {data:_0x5b1682}=_0x3be621;return _0x5b1682&&'src'==_0x5b1682['key']?_0x5b1682['newValue']&&_0x5b1682['oldValue']?{'type':'format','content':o(_0x69fa12,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4525b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4525b8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4525b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4525b8['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4525b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54d94b=this['editor'],_0x58f3d0=_0x54d94b['locale'];_0x54d94b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23478e=>{if('formatBlock'!=_0x23478e['type']&&'formatInline'!=_0x23478e['type'])return;const {data:_0x5bee0b}=_0x23478e;if(!_0x5bee0b||'replaceImageSource'!=_0x5bee0b['commandName'])return;return{'type':'format','content':o(_0x58f3d0,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x5b23ad{['afterInit'](){const _0x13a770=this['editor'];if(!_0x13a770['plugins']['has']('ImageStyleEditing'))return;const _0x1ccb58=_0x13a770['plugins']['get']('TrackChangesEditing'),_0x2e8d86=_0x13a770['plugins']['get']('ImageUtils'),_0x44d270={};_0x1ccb58['enableCommand']('imageStyle',(_0xf35346,_0x19fc3c)=>{const _0x5dea3b=_0x13a770['plugins']['get']('Users')['me'],_0x58c3e5=_0x13a770['commands']['get']('imageStyle');let _0x3fd94e=_0x2e8d86['getClosestSelectedImageElement'](_0x13a770['model']['document']['selection']),_0x34b9c7=_0x13a770['model']['createRangeOn'](_0x3fd94e),_0xf366e8=_0x58c3e5['value'];if(_0xf366e8==_0x19fc3c['value'])return;const _0x122c77={'commandName':'imageStyle','commandParams':[_0x19fc3c],'formatGroupId':_0x8c81a()};_0x13a770['model']['change'](()=>{if(_0x1ccb58['getSuggestions']()['filter'](_0x197081=>_0x197081['isInContent']&&_0x5dea3b==_0x197081['author']&&('formatBlock'==_0x197081['type']||'formatInline'==_0x197081['type'])&&('imageStylePreApply'==_0x197081['subType']||'imageStylePostApply'==_0x197081['subType'])&&_0x197081['getFirstRange']()['isEqual'](_0x34b9c7))['forEach'](_0xd8e5ba=>_0x1ccb58['discardSuggestion'](_0xd8e5ba['head'])),_0x3fd94e=_0x2e8d86['getClosestSelectedImageElement'](_0x13a770['model']['document']['selection']),_0x34b9c7=_0x13a770['model']['createRangeOn'](_0x3fd94e),_0x58c3e5['refresh'](),_0x13a770['commands']['get']('imageTypeInline')['refresh'](),_0x13a770['commands']['get']('imageTypeBlock')['refresh'](),_0xf366e8=_0x58c3e5['value'],_0xf366e8!=_0x19fc3c['value'])return _0x2e8d86['isInlineImage'](_0x3fd94e)&&_0x58c3e5['shouldConvertImageType'](_0x19fc3c['value'],_0x3fd94e)?(_0xf35346({..._0x19fc3c,'setImageSizes':!0x1}),_0x3fd94e=_0x2e8d86['getClosestSelectedImageElement'](_0x13a770['model']['document']['selection']),void _0x1ccb58['markBlockFormat'](_0x3fd94e,{..._0x122c77,'commandReversedParams':[{'value':_0xf366e8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2e8d86['isBlockImage'](_0x3fd94e)?_0x1ccb58['markBlockFormat'](_0x3fd94e,_0x122c77,[],'imageStylePostApply'):_0x1ccb58['markInlineFormat'](_0x34b9c7,_0x122c77,'imageStylePostApply'));});});for(const _0x1889ee of _0x13a770['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x44d270[_0x1889ee['name']]=_0x1889ee['title']['toLowerCase']();_0x1ccb58['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1ccb58['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1ccb58['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1ccb58['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x470d7b])=>{_0x2e8d86['setImageNaturalSizeAttributes'](_0x470d7b['getContainedElement']());}),_0x1ccb58['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4597ea,_0x5ba6eb)=>{_0x1ccb58['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4597ea,{'commandName':_0x5ba6eb['commandName'],'commandParams':_0x5ba6eb['commandReversedParams']});}),_0x1ccb58['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x337f1e,_0x430860){if(_0x4c7d73(_0x337f1e,_0x430860))return[_0x337f1e,_0x430860];if(_0x4c7d73(_0x430860,_0x337f1e))return[_0x430860,_0x337f1e];return null;});const _0x47eabb=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c7d73(_0x499a0f,_0xf81cd1){const _0xf523=_0x47eabb['findIndex'](({type:_0xbdc5a0,subType:_0x4ea606})=>_0x499a0f['type']==_0xbdc5a0&&_0x499a0f['subType']==_0x4ea606),_0x5d1798=_0x47eabb['findIndex'](({type:_0x3369c2,subType:_0xceb3c9})=>_0xf81cd1['type']==_0x3369c2&&_0xf81cd1['subType']==_0xceb3c9);if(_0xf523<0x0||_0x5d1798<0x0)return!0x1;const _0x3075c8=_0x499a0f['getFirstRange'](),_0x12ad74=_0xf81cd1['getFirstRange']();if((0x0==_0xf523||0x1==_0xf523)&&0x2==_0x5d1798&&_0x3075c8['isIntersecting'](_0x12ad74))return!0x0;if(0x2==_0xf523&&0x3==_0x5d1798){const _0x469745=_0x1ccb58['_findSuggestions'](_0x3075c8,'insertion')['filter'](({suggestion:_0x59985d,meta:_0x337096})=>_0x337096['isOwn']&&'convertInlineImageToBlock'==_0x59985d['subType']);if(_0x469745['length']>0x1&&_0x12ad74['end']['isEqual'](_0x3075c8['start']))return!0x0;if(0x1==_0x469745['length']&&(_0x3075c8['start']['isEqual'](_0x12ad74['end'])||_0x3075c8['end']['isEqual'](_0x12ad74['start'])))return!0x0;}if(0x3==_0xf523&&0x3==_0x5d1798&&_0x3075c8['start']['isBefore'](_0x12ad74['start'])){const _0x4a0205=_0x3075c8['end']['nodeAfter'],_0x1c97c2=_0x12ad74['start']['nodeBefore'];return _0x2e8d86['isBlockImage'](_0x4a0205)&&_0x4a0205===_0x1c97c2;}return!0x1;}_0x13a770['model']['document']['registerPostFixer'](()=>{let _0x463859=!0x1;const _0x46906e=Array['from'](_0x13a770['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d36f1,data:_0x281e88}of _0x46906e){const {group:_0x1d919e,type:_0x3ffd17,subType:_0x40a97b,id:_0x2e76a3}=_0x1ccb58['_splitMarkerName'](_0x3d36f1);if('suggestion'==_0x1d919e&&_0x1ccb58['hasSuggestion'](_0x2e76a3)){if('formatBlock'==_0x3ffd17&&('imageStylePreApply'==_0x40a97b||'imageStylePostApply'==_0x40a97b)){const _0x223eb0=_0x1ccb58['getSuggestion'](_0x2e76a3);if(_0x281e88['newRange']){const _0x244c64=_0x223eb0['getFirstRange']()['getContainedElement']();if(_0x2e8d86['isBlockImage'](_0x244c64))continue;_0x1ccb58['discardSuggestion'](_0x223eb0),_0x463859=!0x0;}}if('insertion'==_0x3ffd17&&'imageCaption'==_0x40a97b&&!_0x281e88['newRange']){const _0xf9a635=_0x1ccb58['getSuggestion'](_0x2e76a3);_0xf9a635['next']&&_0xf9a635['next']['isInContent']&&(_0x1ccb58['discardSuggestion'](_0xf9a635['next']),_0x463859=!0x0);}}}return _0x463859;}),this['_registerLegacyDescription'](_0x44d270);}['_registerLegacyDescription'](_0x3afb76){const _0x305bf7=this['editor'],_0x221437=_0x305bf7['locale'];_0x305bf7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x336c31=>{if('formatBlock'!=_0x336c31['type']&&'formatInline'!=_0x336c31['type'])return;const {data:_0x393391}=_0x336c31;if(!_0x393391||'imageStyle'!=_0x393391['commandName'])return;const _0x5193ac=_0x393391['commandParams'][0x0]['value'];return _0x568b80('side'===_0x5193ac?o(_0x221437,'FORMAT_SIDE_IMAGE'):_0x3afb76[_0x5193ac]||_0x5193ac);function _0x568b80(_0x57223f){return{'type':'format','content':o(_0x221437,'*Format:*\x20%0',_0x57223f)};}});}}class at extends _0x5b23ad{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x193448){super(_0x193448),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xaba6f8=this['editor'],_0xaa8272=_0xaba6f8['commands']['get']('importWord'),_0x5c64ff=_0xaba6f8['commands']['get']('trackChanges');_0xaa8272&&(_0xaa8272['on']('execute',(_0x62fd27,[,_0x2017e2])=>{this['_trackChangesValueDuringImport']=_0x5c64ff['value'],_0x2017e2['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xaa8272,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xaa8272,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5c64ff['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xaba6f8['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x670624,_0x2b4d01){const {suggestions:_0x436f2a}=_0x2b4d01,_0x2f628c=this['editor']['commands']['get']('trackChanges'),_0x218a51=_0x2f628c['value'];this['_trackChangesValueDuringImport']!==_0x218a51&&(_0x2f628c['execute'](),this['_trackChangesExecuted']=!0x0),_0x436f2a&&_0x436f2a['forEach'](({id:_0x21b162,type:_0x50ce45,author:_0x5e14cb,created_at:_0x2511ba})=>{const _0x538492={'id':_0x21b162,'type':_0x50ce45,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5e14cb,'createdAt':_0x2511ba?new Date(_0x2511ba):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x538492);});}}class ct extends _0x5b23ad{['afterInit'](){const _0xcac3ba=this['editor'],_0x1700c2=_0xcac3ba['plugins']['get']('TrackChangesEditing');if(_0xcac3ba['plugins']['has']('IndentEditing')&&(_0x1700c2['enableCommand']('indent'),_0x1700c2['enableCommand']('outdent')),_0xcac3ba['plugins']['has']('IndentBlock')){for(const _0x3b4973 of['indentBlock','outdentBlock'])_0x1700c2['enableDefaultAttributesIntegration'](_0x3b4973);}const _0x5ba3f8=_0xcac3ba['locale'];_0x1700c2['registerBlockAttribute']('blockIndent'),_0x1700c2['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5ba3f8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f94f7=this['editor'],_0x23d2dd=_0x4f94f7['locale'],_0x5e40b7=_0x4f94f7['plugins']['get']('TrackChangesEditing');_0x5e40b7['descriptionFactory']['registerDescriptionCallback'](_0x4eee7a=>{if('formatBlock'!=_0x4eee7a['type'])return;const {data:_0x1400b4}=_0x4eee7a;if(!_0x1400b4)return;if('indentBlock'!=_0x1400b4['commandName']&&'outdentBlock'!=_0x1400b4['commandName'])return;const _0x3ce359=_0x4eee7a['getItems']()[0x0],_0x25da07=_0x5e40b7['descriptionFactory']['getItemLabel'](_0x3ce359);return'indentBlock'==_0x1400b4['commandName']?{'type':'format','content':o(_0x23d2dd,'*Indent:*\x20%0',_0x25da07)}:'outdentBlock'==_0x1400b4['commandName']?{'type':'format','content':o(_0x23d2dd,'*Outdent:*\x20%0',_0x25da07)}:void 0x0;});}}class ut extends _0x5b23ad{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x5b23ad{['afterInit'](){const _0x5c76e6=this['editor'];if(!_0x5c76e6['plugins']['has']('LinkEditing'))return;const _0x188ece=_0x5c76e6['plugins']['get']('TrackChangesEditing'),_0x51e4c2=_0x5c76e6['commands']['get']('link');_0x188ece['enableDefaultAttributesIntegration']('link'),_0x188ece['enableDefaultAttributesIntegration']('unlink'),_0x188ece['registerInlineAttribute']('linkHref');for(const _0x519a56 of _0x51e4c2['manualDecorators'])_0x188ece['registerInlineAttribute'](_0x519a56['id']),_0x188ece['descriptionFactory']['registerAttributeLabel'](_0x519a56['id'],'link\x20('+_0x519a56['label']['toLowerCase']()+')');_0x188ece['descriptionFactory']['registerDescriptionCallback'](_0x277d70=>{if('attribute'!=_0x277d70['type'])return;const {data:_0x4215e4}=_0x277d70;if(!_0x4215e4||'linkHref'!=_0x4215e4['key'])return;const _0x2b2fa6=_0x4215e4['newValue'],_0x20fbdc=_0x5c76e6['locale'];return{'type':'format','content':null==_0x2b2fa6?o(_0x20fbdc,'*Remove\x20link*'):o(_0x20fbdc,'*Set\x20link:*\x20%0','\x22'+_0x2b2fa6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45701e=this['editor'],_0x2f4c29=_0x45701e['locale'];_0x45701e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2aad48=>{if('formatInline'!=_0x2aad48['type'])return;const {data:_0x3b6d8e}=_0x2aad48;if(_0x3b6d8e){if('link'==_0x3b6d8e['commandName']){const _0x44c810=_0x3b6d8e['commandParams'][0x0];return{'type':'format','content':o(_0x2f4c29,'*Set\x20link:*\x20%0','\x22'+_0x44c810+'\x22')};}return'unlink'==_0x3b6d8e['commandName']?{'type':'format','content':o(_0x2f4c29,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x5b23ad{['afterInit'](){const _0x14cfdf=this['editor'],_0x377642=_0x14cfdf['locale'];if(!_0x14cfdf['plugins']['has']('LegacyListEditing'))return;const _0x43d275=_0x14cfdf['plugins']['get']('TrackChangesEditing'),_0x33c297=_0x14cfdf['plugins']['has']('LegacyTodoListEditing');function _0x2d02d9(_0x456a82){return()=>{const _0x423088=_0x14cfdf['model']['document']['selection'],_0x38bb29=_0x14cfdf['commands']['get'](_0x456a82);if(_0x38bb29['value'])return void _0x14cfdf['execute']('paragraph',{});const _0x372a2a=_0x456a82['slice'](0x0,-0x4),_0x27c35d=function(_0x2c4e7a,_0x4c8989,_0x590080){let _0x55191e=Array['from'](_0x2c4e7a)['filter'](_0x1e9a82=>function(_0x27f894,_0x373b16){return _0x373b16['checkChild'](_0x27f894['parent'],'listItem')&&!_0x373b16['isObject'](_0x27f894);}(_0x1e9a82,_0x590080));_0x55191e=_0x55191e['filter'](_0x588e1c=>!_0x588e1c['is']('element','listItem')||_0x588e1c['getAttribute']('listType')!=_0x4c8989);const _0xa4f603=new Set();for(const _0x5b57fa of _0x55191e)_0x5b57fa['is']('element','listItem')?_0xa4f603['add'](fe(_0x5b57fa)):_0xa4f603['add'](_0x5b57fa);return Array['from'](_0xa4f603);}(_0x423088['getSelectedBlocks'](),_0x372a2a,_0x14cfdf['model']['schema']);_0x14cfdf['model']['change'](()=>{for(const _0x136f98 of _0x27c35d)_0x43d275['markBlockFormat'](_0x136f98,{'commandName':_0x456a82,'commandParams':[{'forceValue':!_0x38bb29['value']}],'formatGroupId':'blockName'},ue(_0x136f98));});};}function _0x52aa75(_0x4359a6){return()=>{const _0x255c08=function(_0x39261d){let _0x2c7e37=Array['from'](_0x39261d);const _0x3457d9=_0x2c7e37['findIndex'](_0x399813=>'listItem'!=_0x399813['name']);return _0x3457d9>-0x1&&(_0x2c7e37=_0x2c7e37['slice'](0x0,_0x3457d9)),_0x2c7e37;}(_0x14cfdf['model']['document']['selection']['getSelectedBlocks']()),_0x5388b6=_0x14cfdf['model']['createRange'](_0x14cfdf['model']['createPositionAt'](_0x255c08[0x0],'before'),_0x14cfdf['model']['createPositionAt'](_0x255c08[_0x255c08['length']-0x1],'end'));_0x14cfdf['model']['change'](()=>{_0x43d275['markBlockFormat'](_0x5388b6,{'commandName':_0x4359a6,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2837b4){const _0x29f43d=new Set();for(const _0x3aefb3 of _0x2837b4){let _0x4b9a1=_0x3aefb3['nextSibling'];for(;_0x4b9a1&&_0x4b9a1['getAttribute']('listIndent')>_0x3aefb3['getAttribute']('listIndent');)_0x29f43d['add'](_0x4b9a1),_0x4b9a1=_0x4b9a1['nextSibling'];}return Array['from'](_0x29f43d);}(_0x255c08));});};}_0x43d275['enableCommand']('numberedList',_0x2d02d9('numberedList')),_0x43d275['enableCommand']('bulletedList',_0x2d02d9('bulletedList')),_0x33c297&&_0x43d275['enableCommand']('todoList',_0x2d02d9('todoList')),_0x43d275['enableCommand']('indentList',_0x52aa75('indentList')),_0x43d275['enableCommand']('outdentList',_0x52aa75('outdentList')),_0x33c297&&_0x43d275['enableCommand']('checkTodoList',()=>{const _0x3e5e7a=_0x14cfdf['commands']['get']('checkTodoList'),_0x4952df=Array['from'](_0x3e5e7a['_selectedElements']);_0x4952df['filter'](_0x499597=>_0x499597['getAttribute']('todoListChecked')!=_0x3e5e7a['value']),_0x14cfdf['model']['change'](()=>{for(const _0x4c39ce of _0x4952df)_0x43d275['markBlockFormat'](_0x4c39ce,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3e5e7a['value']}]});});}),_0x43d275['descriptionFactory']['registerElementLabel']('listItem',_0x2944d3=>o(_0x377642,'ELEMENT_LIST_ITEM',_0x2944d3)),_0x43d275['descriptionFactory']['registerDescriptionCallback'](_0x5de71d=>{if('formatBlock'!=_0x5de71d['type']&&'formatInline'!=_0x5de71d['type'])return;const {data:_0x5f2a5d}=_0x5de71d;if(_0x5f2a5d){if('numberedList'==_0x5f2a5d['commandName']||'bulletedList'==_0x5f2a5d['commandName']||'todoList'==_0x5f2a5d['commandName'])switch(_0x5f2a5d['commandName']['replace']('List','')){case'bulleted':return _0x498347(o(_0x377642,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x498347(o(_0x377642,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x498347(o(_0x377642,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5f2a5d['commandName'])return{'type':'format','content':o(_0x377642,'*Indent:*\x20%0',o(_0x377642,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5f2a5d['commandName'])return{'type':'format','content':o(_0x377642,'*Outdent:*\x20%0',o(_0x377642,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5f2a5d['commandName'])return _0x5f2a5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x377642,'*Check\x20item*')}:{'type':'format','content':o(_0x377642,'*Uncheck\x20item*')};}function _0x498347(_0x5bee53){return{'type':'format','content':o(_0x377642,'*Change\x20to:*\x20%0',_0x5bee53)};}});}}function fe(_0x2cdce5){const _0x56f8c0=_0x2cdce5['getAttribute']('listIndent');if(0x0==_0x56f8c0)return _0x2cdce5;let _0x23801c=_0x2cdce5;for(;_0x2cdce5['previousSibling']&&_0x2cdce5['previousSibling']['is']('element','listItem');){const _0x26b4fc=_0x2cdce5['previousSibling']['getAttribute']('listIndent');if(_0x26b4fc==_0x56f8c0)_0x23801c=_0x2cdce5['previousSibling'];else{if(_0x26b4fc<_0x56f8c0)break;}_0x2cdce5=_0x2cdce5['previousSibling'];}return _0x23801c;}function ue(_0x4a6272){const _0x47bbaf=[];if(_0x4a6272['is']('element','listItem')&&_0x4a6272['getAttribute']('listIndent')>0x0){let _0x5b1949=_0x4a6272['nextSibling'];for(;_0x5b1949&&'listItem'==_0x5b1949['name']&&_0x5b1949['getAttribute']('listIndent')==_0x4a6272['getAttribute']('listIndent');)_0x47bbaf['push'](_0x5b1949),_0x5b1949=_0x5b1949['nextSibling'];}return _0x47bbaf;}class W extends _0x5b23ad{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x6f00cb=this['editor']['config']['get']('list.properties'),_0x52b1cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x6f00cb['styles']&&_0x52b1cf['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x6f00cb['reversed']&&_0x52b1cf['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x6f00cb['startIndex']&&_0x52b1cf['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x52b1cf['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x496c8a,_0x12a68f={}){const _0x4f2117=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8f4665=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4f2117['markMultiRangeBlockFormat'](_0x8f4665,{'commandName':'listStyle','commandParams':[{'type':_0x12a68f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4793bb,_0x144da4={}){const _0x50ee08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a0b61=this['_getSuggestionBlocks'](_0x52fb6d=>_0x52fb6d['is']('element','listItem')&&'numbered'===_0x52fb6d['getAttribute']('listType'));if(_0x5a0b61['length']<0x1)return;const _0x3262f5=_0x5a0b61['map'](_0x10c78d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10c78d,'before'),this['editor']['model']['createPositionAt'](_0x10c78d,0x0)));this['editor']['model']['change'](()=>{_0x50ee08['markMultiRangeBlockFormat'](_0x3262f5,{'commandName':'listReversed','commandParams':[{'reversed':_0x144da4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4fa9ed,_0x5c5984={}){const _0x5d7e42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1815a8=this['_getSuggestionBlocks'](_0x1dabce=>_0x1dabce['is']('element','listItem')&&'numbered'===_0x1dabce['getAttribute']('listType'));if(_0x1815a8['length']<0x1)return;const _0x1ed1dd=_0x1815a8['map'](_0xc11a07=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc11a07,'before'),this['editor']['model']['createPositionAt'](_0xc11a07,0x0)));this['editor']['model']['change'](()=>{_0x5d7e42['markMultiRangeBlockFormat'](_0x1ed1dd,{'commandName':'listStart','commandParams':[{'startIndex':_0x5c5984['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1a5e73){if('formatBlock'!=_0x1a5e73['type']&&'formatInline'!=_0x1a5e73['type'])return;const _0x114608=this['editor']['locale'],{data:_0x2c8d88}=_0x1a5e73;if(!_0x2c8d88)return;let _0x56cc9b,_0x569b66;switch(_0x2c8d88['commandName']){case'listStyle':_0x56cc9b='*Change\x20to:*\x20%0',_0x569b66={'type':'format','content':o(_0x114608,_0x56cc9b,o(_0x114608,this['_getTranslationKeyForListStyle'](_0x2c8d88['commandParams'][0x0]['type'])))};break;case'listReversed':_0x56cc9b=_0x2c8d88['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x569b66={'type':'format','content':o(_0x114608,_0x56cc9b)};break;case'listStart':_0x56cc9b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x569b66={'type':'format','content':o(_0x114608,_0x56cc9b,_0x2c8d88['commandParams'][0x0]['startIndex'])};}return _0x569b66;}['_getSuggestionBlocksForListStyle'](){const _0xedab6=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c7d2f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4c7d2f[0x0]?.['is']('element','listItem')&&_0x4c7d2f['unshift'](..._0xedab6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4c7d2f[_0x4c7d2f['length']-0x1]?.['is']('element','listItem')&&_0x4c7d2f['push'](..._0xedab6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4c7d2f=[...new Set(_0x4c7d2f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4c7d2f=_0x4c7d2f['filter'](_0x38ad27=>_0x38ad27['is']('element','listItem'))),_0x4c7d2f;}['_getSuggestionBlocks'](_0x50fcca){const _0x2facb6=this['editor']['plugins']['get']('LegacyListUtils');let _0x2585f3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x50fcca)['map'](_0x3ba693=>{const _0x34b73a=this['editor']['model']['createPositionAt'](_0x3ba693,0x0);return[..._0x2facb6['getSiblingNodes'](_0x34b73a,'backward'),..._0x2facb6['getSiblingNodes'](_0x34b73a,'forward')];})['flat']();return _0x2585f3=[...new Set(_0x2585f3)],_0x2585f3;}['_getTranslationKeyForListStyle'](_0x5b4023){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5b4023)||'default')['toUpperCase']()+'_LIST_'+_0x5b4023['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x5b23ad{['afterInit'](){const _0xc0f5ce=this['editor'];if(!_0xc0f5ce['plugins']['has']('MediaEmbedEditing'))return;const _0x4da1e1=_0xc0f5ce['plugins']['get']('TrackChangesEditing'),_0x1fd7b0=_0xc0f5ce['locale'];_0x4da1e1['enableCommand']('mediaEmbed'),_0x4da1e1['descriptionFactory']['registerElementLabel']('media',_0xa3af85=>o(_0x1fd7b0,'ELEMENT_MEDIA',_0xa3af85)),_0xc0f5ce['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3903ab,{writer:_0x48122d,options:_0x2fd3c7})=>{if(_0x2fd3c7['showSuggestionHighlights'])return _0x48122d['createEmptyElement']('div');},'converterPriority':'high'}),_0xc0f5ce['data']['downcastDispatcher']['on']('attribute:url:media',(_0x368fc5,_0x1123d4,_0x3edf4b)=>{_0x3edf4b['options']['showSuggestionHighlights']&&_0x368fc5['stop']();},{'priority':'high'});}}class mt extends _0x5b23ad{['afterInit'](){const _0x56aee5=this['editor'];_0x56aee5['plugins']['has']('MentionEditing')&&_0x56aee5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x5b23ad{['afterInit'](){const _0x58f692=this['editor'];if(!_0x58f692['plugins']['has']('MergeFieldsEditing'))return;_0x58f692['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x58f692['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x3b9863=_0x58f692['plugins']['get']('TrackChangesEditing'),_0x3dd688=_0x58f692['locale'];_0x3b9863['descriptionFactory']['registerElementLabel']('mergeField',_0x5688bd=>o(_0x3dd688,'ELEMENT_MERGE_FIELD',_0x5688bd)),_0x3b9863['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2bde91=>o(_0x3dd688,'ELEMENT_MERGE_FIELD',_0x2bde91)),_0x3b9863['descriptionFactory']['registerDescriptionCallback'](_0x14faa7=>{if('insertion'!=_0x14faa7['type']&&'deletion'!=_0x14faa7['type'])return;const _0x3ae951=_0x14faa7['getContainedElement']();if(null==_0x3ae951)return;if(!_0x3ae951['is']('element','mergeField')&&!_0x3ae951['is']('element','mergeFieldBlock'))return;const _0x1780c1=_0x58f692['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x3ae951['getAttribute']('id'));return'insertion'==_0x14faa7['type']?{'type':'insertion','content':o(_0x3dd688,'*Insert:*\x20%0','\x22'+_0x1780c1+'\x22\x20'+o(_0x3dd688,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3dd688,'*Remove:*\x20%0','\x22'+_0x1780c1+'\x22\x20'+o(_0x3dd688,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x5b23ad{['afterInit'](){const _0xfe95f2=this['editor'],_0x1dd8a2=_0xfe95f2['plugins']['get']('TrackChangesEditing');_0xfe95f2['plugins']['has']('MultiLevelList')&&(_0x1dd8a2['enableDefaultAttributesIntegration']('multiLevelList'),_0x1dd8a2['registerBlockAttribute']('listMarkerStyle'),_0x1dd8a2['descriptionFactory']['registerDescriptionCallback'](_0x3fb117=>this['handleDescriptions'](_0x3fb117)));}['handleDescriptions'](_0x58ae2b){const _0x52803c=this['editor']['locale'],{data:_0x2eab25}=_0x58ae2b,_0x586001={'type':'format','content':''};if(_0x2eab25&&'listMarkerStyle'==_0x2eab25['key']){if(!_0x2eab25['oldValue'])return{'type':'format','content':o(_0x52803c,'*Set\x20format:*\x20%0',o(_0x52803c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2eab25['newValue']+')'};if(!_0x2eab25['newValue']){let _0x582ade=_0x58ae2b['head'];for(;_0x582ade;){if(_0x582ade['data']&&'listType'==_0x582ade['data']['key']&&_0x582ade['data']['newValue'])return _0x586001;_0x582ade=_0x582ade['next'];}return{'type':'format','content':o(_0x52803c,'*Remove\x20format:*\x20%0',o(_0x52803c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2eab25['oldValue']+')'};}}}}class kt extends _0x5b23ad{['afterInit'](){const _0x5e85db=this['editor'];if(!_0x5e85db['plugins']['has']('PageBreakEditing'))return;_0x5e85db['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3ffea9=_0x5e85db['plugins']['get']('TrackChangesEditing'),_0x1dc317=_0x5e85db['locale'];_0x3ffea9['descriptionFactory']['registerElementLabel']('pageBreak',_0x4f5afa=>o(_0x1dc317,'ELEMENT_PAGE_BREAK',_0x4f5afa));}}class bt extends _0x5b23ad{['afterInit'](){const _0x28503e=this['editor'];if(!_0x28503e['plugins']['has']('Paragraph'))return;const _0x450051=_0x28503e['locale'],_0x297e15=_0x28503e['plugins']['get']('TrackChangesEditing');_0x297e15['descriptionFactory']['registerElementLabel']('paragraph',_0x1c8187=>o(_0x450051,'ELEMENT_PARAGRAPH',_0x1c8187)),_0x297e15['enableDefaultAttributesIntegration']('paragraph'),_0x297e15['enableCommand']('insertParagraph'),_0x28503e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x28503e),{'priority':'highest'}),_0x28503e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f1339,_0x60ba66,_0x4b4b93)=>{_0x4b4b93['options']['showSuggestionHighlights']&&nr(_0x28503e,{'showActiveMarker':!0x1})(_0x4f1339,_0x60ba66,_0x4b4b93);},{'priority':'highest'});const _0x2e8026=_0x297e15['descriptionFactory'];_0x2e8026['registerDescriptionCallback'](_0x3be1a0=>{if('insertion'!==_0x3be1a0['type'])return;const {start:_0x269a15,end:_0x2ca707}=_0x3be1a0['getFirstRange']();if(!_0x269a15['isTouching'](_0x2ca707)||!_0x269a15['nodeAfter'])return;const _0x18d264=_0x28503e['model']['schema'],_0x3a6af6=_0x269a15['nodeAfter'];return _0x18d264['isBlock'](_0x3a6af6)&&!_0x18d264['isLimit'](_0x3a6af6)&&_0x18d264['checkChild'](_0x3a6af6,'$text')?{'type':'insertion','content':o(_0x450051,'*Insert:*\x20%0',_0x2e8026['getItemLabel'](_0x3a6af6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2569f9=this['editor'],_0x11a55c=_0x2569f9['locale'];_0x2569f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x344588=>{if('formatBlock'!=_0x344588['type'])return;const {data:_0x4380d}=_0x344588;return _0x4380d&&'paragraph'==_0x4380d['commandName']?{'type':'format','content':o(_0x11a55c,'*Change\x20to:*\x20%0',o(_0x11a55c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x42446a,{showActiveMarker:_0x3b1557=!0x0}={}){return(_0x4f52f0,_0x3da72f,_0x1ceded)=>{const _0x4b8650=_0x42446a['plugins']['get']('TrackChangesEditing'),_0x45ea8e=_0x3da72f['markerRange']['start'],_0x5e624d=_0x3da72f['markerRange']['end'],_0x59c4c8=_0x42446a['model']['schema'];if(!_0x45ea8e['isTouching'](_0x5e624d)||!_0x45ea8e['nodeAfter'])return;const _0x33ed82=_0x45ea8e['nodeAfter'];if(_0x59c4c8['isBlock'](_0x33ed82)&&!_0x59c4c8['isLimit'](_0x33ed82)&&_0x59c4c8['checkChild'](_0x33ed82,'$text')){if(!_0x1ceded['consumable']['consume'](_0x3da72f['markerRange'],_0x4f52f0['name']))return;const {authorId:_0xf03db2}=_0x4b8650['_splitMarkerName'](_0x3da72f['markerName']),_0x522945=_0x1ceded['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xf03db2}),_0x5074c1=_0x1ceded['mapper']['toViewPosition'](_0x5e624d);_0x3b1557&&_0x4b8650['activeMarkers']['includes'](_0x3da72f['markerName'])&&_0x1ceded['writer']['addClass']('ck-suggestion-marker--active',_0x522945),_0x1ceded['writer']['insert'](_0x5074c1,_0x522945),_0x1ceded['mapper']['bindElementToMarker'](_0x522945,_0x3da72f['markerName']);}};}class wt extends _0x5b23ad{['afterInit'](){const _0x424e51=this['editor'];if(!_0x424e51['plugins']['has']('RemoveFormatEditing'))return;_0x424e51['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e3952=this['editor'];_0x5e3952['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1af203=>{if('formatBlock'!=_0x1af203['type']&&'formatInline'!=_0x1af203['type'])return;const {data:_0x55f23b}=_0x1af203;return _0x55f23b&&'removeFormat'==_0x55f23b['commandName']?{'type':'format','content':o(_0x5e3952['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x5b23ad{['afterInit'](){const _0x4123a2=this['editor'];if(!_0x4123a2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x40e5a6=_0x4123a2['plugins']['get']('TrackChangesEditing');_0x40e5a6['enableCommand']('goToPreviousRestrictedEditingException'),_0x40e5a6['enableCommand']('goToNextRestrictedEditingException');const _0x59a12e=_0x4123a2['plugins']['get']('RestrictedEditingModeEditing');_0x59a12e['enableCommand']('trackChanges'),_0x59a12e['enableCommand']('acceptSuggestion'),_0x59a12e['enableCommand']('discardSuggestion'),_0x59a12e['enableCommand']('acceptAllSuggestions'),_0x59a12e['enableCommand']('discardAllSuggestions'),_0x59a12e['enableCommand']('acceptSelectedSuggestions'),_0x59a12e['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x5b23ad{static get['requires'](){return[_0x18440f];}['init'](){const _0x40d73c=this['editor'],_0x58a335=_0x40d73c['plugins']['get']('TrackChangesEditing');_0x58a335['enableCommand']('shiftEnter'),_0x40d73c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x40d73c),{'priority':'high'}),_0x40d73c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x40d73c),{'priority':'high'}),_0x40d73c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x505ec2,_0x540eda,_0xe7fba8)=>{_0xe7fba8['options']['showSuggestionHighlights']&&ge(_0x40d73c,{'showActiveMarker':!0x1})(_0x505ec2,_0x540eda,_0xe7fba8);}),_0x58a335['descriptionFactory']['registerElementLabel']('softBreak',_0x4e72c0=>o(_0x40d73c['locale'],'ELEMENT_LINE_BREAK',_0x4e72c0));}}function ge(_0x87b19d,{showActiveMarker:_0x5b23fd=!0x0}={}){return(_0x3e3f57,_0x527c9f,_0x4465f2)=>{const _0x3eb985=_0x87b19d['plugins']['get']('TrackChangesEditing');if(!_0x4465f2['consumable']['test'](_0x527c9f['markerRange'],_0x3e3f57['name']))return;const _0x3b11a7=_0x87b19d['model'];for(const _0x22814a of _0x527c9f['markerRange']['getItems']()){if(!_0x22814a['is']('element','softBreak'))continue;const _0x41edda='deletion'==_0x527c9f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3797eb}=_0x3eb985['_splitMarkerName'](_0x527c9f['markerName']),_0x53b25f=_0x4465f2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x41edda,'data-author-id':_0x3797eb}),_0x83906d=_0x4465f2['mapper']['toViewPosition'](_0x3b11a7['createPositionBefore'](_0x22814a));_0x5b23fd&&_0x3eb985['activeMarkers']['includes'](_0x527c9f['markerName'])&&_0x4465f2['writer']['addClass']('ck-suggestion-marker--active',_0x53b25f),_0x4465f2['writer']['insert'](_0x83906d,_0x53b25f),_0x4465f2['mapper']['bindElementToMarker'](_0x53b25f,_0x527c9f['markerName']);}};}class St extends _0x5b23ad{['afterInit'](){const _0x2da938=this['editor'],_0x5565f2=_0x2da938['model'],_0x236188=_0x2da938['locale'];if(!_0x2da938['plugins']['has']('StandardEditingModeEditing'))return;const _0x7cb329=_0x2da938['plugins']['get']('TrackChangesEditing'),_0x5a7c7b='restrictedEditingException',_0x5bc3ff=_0x2da938['commands']['get'](_0x5a7c7b);_0x7cb329['enableCommand'](_0x5a7c7b,(_0x4a02c0,_0x5e37f9={})=>{const _0x53d178=_0x5565f2['document']['selection'];if(_0x53d178['isCollapsed'])return void _0x4a02c0(_0x5e37f9);const _0x5802a5=void 0x0!==_0x5e37f9['forceValue']?_0x5e37f9['forceValue']:!_0x5bc3ff['value'];_0x5565f2['change'](()=>{const _0x5c6101=Array['from'](_0x53d178['getRanges']());for(const _0x35c93e of _0x5c6101){const _0x44ba3f=_0x5802a5?[_0x35c93e]:io(_0x5a7c7b,_0x35c93e,_0x5565f2);for(const _0x3e6904 of _0x44ba3f)_0x7cb329['markInlineFormat'](_0x3e6904,{'commandName':_0x5a7c7b,'commandParams':[{'forceValue':_0x5802a5}]});}});}),_0x7cb329['descriptionFactory']['registerDescriptionCallback'](_0x2069b6=>{if('formatBlock'!=_0x2069b6['type']&&'formatInline'!=_0x2069b6['type'])return;const {data:_0x1cc9eb}=_0x2069b6;return _0x1cc9eb&&_0x1cc9eb['commandName']==_0x5a7c7b?_0x1cc9eb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x236188,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x236188,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x5b23ad{['afterInit'](){const _0x27c05d=this['editor'];if(!_0x27c05d['plugins']['has']('Style')||!_0x27c05d['plugins']['has']('DataSchema'))return;const _0x59675e=_0x27c05d['plugins']['get']('TrackChangesEditing'),_0x60e2fa=_0x27c05d['locale'],_0x19ef6b=_0x27c05d['config']['get']('style')||{},_0xd932ed=_0x27c05d['plugins']['get']('GeneralHtmlSupport'),_0x5306f4=_0x27c05d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x27c05d['plugins']['get']('DataSchema'),_0x19ef6b['definitions']);_0x59675e['enableDefaultAttributesIntegration']('style');const _0x5dfc13=new Set();for(const _0x165877 of _0x5306f4['block']){const _0x1b56b7=_0xd932ed['getGhsAttributeNameForElement'](_0x165877['element']);_0x5dfc13['add'](_0x1b56b7);}const _0x4dfa83=new Set();for(const _0x9cd6b2 of _0x5306f4['inline']){const _0x48cc12=_0xd932ed['getGhsAttributeNameForElement'](_0x9cd6b2['element']);_0x4dfa83['add'](_0x48cc12);for(const _0x2461ad of _0x9cd6b2['ghsAttributes'])_0x4dfa83['add'](_0x2461ad);}for(const _0x8a4db7 of _0x5dfc13)_0x59675e['registerBlockAttribute'](_0x8a4db7),_0x59675e['descriptionFactory']['registerAttributeLabel'](_0x8a4db7,o(_0x60e2fa,'FORMAT_STYLE'));for(const _0x246ca9 of _0x4dfa83)_0x59675e['registerInlineAttribute'](_0x246ca9),_0x59675e['descriptionFactory']['registerAttributeLabel'](_0x246ca9,o(_0x60e2fa,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a21cc=this['editor'],_0x4c0cc9=_0x4a21cc['locale'];_0x4a21cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x485453=>{if('formatBlock'!=_0x485453['type']&&'formatInline'!=_0x485453['type'])return;const {data:_0x163954}=_0x485453;return _0x163954&&'style'===_0x163954['commandName']?_0x163954['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c0cc9,'*Set\x20format:*\x20%0',_0x163954['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4c0cc9,'*Remove\x20format:*\x20%0',_0x163954['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x5b23ad{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x16c848){super(_0x16c848),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5a4fe9=this['editor'],_0x147dd5=_0x5a4fe9['model']['document']['selection'];if(!_0x5a4fe9['plugins']['has']('TableEditing'))return;const _0x390594=_0x5a4fe9['locale'],_0x28b9e1=_0x5a4fe9['plugins']['get']('TrackChangesEditing'),_0x4fb569=_0x5a4fe9['plugins']['get']('TableUtils');_0x28b9e1['descriptionFactory']['registerElementLabel']('table',_0x1aaf68=>o(_0x390594,'ELEMENT_TABLE',_0x1aaf68)),this['_setupColumnsRowsFixing'](),_0x28b9e1['enableCommand']('insertTable'),_0x28b9e1['enableCommand']('selectTableRow'),_0x28b9e1['enableCommand']('selectTableColumn');for(const _0x5f2aed of['insertTableRowAbove','insertTableRowBelow']){const _0x5ceb1a=_0x5a4fe9['commands']['get'](_0x5f2aed);_0x28b9e1['enableCommand'](_0x5f2aed,_0x4a3fd1=>{_0x5a4fe9['model']['change'](_0x2fd5bb=>{_0x4a3fd1();const _0xc5dbf1='above'===_0x5ceb1a['order'],_0x44368d=_0x4fb569['getSelectionAffectedTableCells'](_0x147dd5),_0x264761=_0x4fb569['getRowIndexes'](_0x44368d),_0x2482b9=_0xc5dbf1?_0x264761['first']-0x1:_0x264761['last']+0x1,_0x477772=_0x44368d[0x0]['findAncestor']('table'),_0x166842=_0x4fb569['createTableWalker'](_0x477772,{'startRow':_0x2482b9,'endRow':_0x2482b9}),_0x232e58=Array['from'](_0x166842)['map'](_0x4cff34=>_0x2fd5bb['createRangeOn'](_0x4cff34['cell']));_0x28b9e1['markMultiRangeInsertion'](_0x232e58,'tableRow');});});}for(const _0x20ed85 of['insertTableColumnLeft','insertTableColumnRight']){const _0x469596=_0x5a4fe9['commands']['get'](_0x20ed85);_0x28b9e1['enableCommand'](_0x20ed85,_0x42aa3b=>{_0x5a4fe9['model']['change'](_0x449dbb=>{_0x42aa3b();const _0x46c94e='left'===_0x469596['order'],_0x580df0=_0x4fb569['getSelectionAffectedTableCells'](_0x147dd5),_0x1efb91=_0x4fb569['getColumnIndexes'](_0x580df0),_0xc533de=_0x46c94e?_0x1efb91['first']-0x1:_0x1efb91['last']+0x1,_0x4537aa=_0x580df0[0x0]['findAncestor']('table'),_0x29feea=_0x4fb569['createTableWalker'](_0x4537aa,{'startRow':0x0,'column':_0xc533de,'includeAllSlots':!0x1}),_0x2d68c1=Array['from'](_0x29feea)['map'](_0x442c20=>_0x449dbb['createRangeOn'](_0x442c20['cell']));_0x28b9e1['markMultiRangeInsertion'](_0x2d68c1,'tableColumn');});});}for(const _0x5b6fcb of['removeTableRow','removeTableColumn']){const _0x1439cb=_0x5b6fcb['substr'](0xb),_0x498eb7=_0x1439cb['toLowerCase'](),_0xd00978=_0x498eb7['substr'](0x0,0x3)+'span',_0x5b4651='table'+_0x1439cb,_0x97efed='min'+_0x1439cb,_0x197b51='max'+_0x1439cb;_0x28b9e1['enableCommand'](_0x5b6fcb,()=>{_0x5a4fe9['model']['change'](_0x2780bd=>{const _0x1c1b71=_0x4fb569['getSelectionAffectedTableCells'](_0x147dd5),_0x299a74=_0x1c1b71[0x0]['findAncestor']('table');let _0x161abe;if('removeTableRow'==_0x5b6fcb){const _0x3a18ca=_0x4fb569['getRowIndexes'](_0x1c1b71);_0x161abe={'startRow':_0x3a18ca['first'],'endRow':_0x3a18ca['last'],'includeAllSlots':!0x0};}else{const _0x4a7c53=_0x4fb569['getColumnIndexes'](_0x1c1b71);_0x161abe={'startColumn':_0x4a7c53['first'],'endColumn':_0x4a7c53['last'],'includeAllSlots':!0x0};}const _0x33da96=_0x4fb569['createTableWalker'](_0x299a74,_0x161abe),_0x1f2bcc=Array['from'](_0x33da96)['map'](({cell:_0x1e5320})=>_0x1e5320),_0x46b4e1=be(_0x1f2bcc['filter'](_0x46f330=>_0x46f330['hasAttribute'](_0xd00978))),_0x243495=be(_0x1f2bcc['filter'](_0x5148fa=>!_0x5148fa['hasAttribute'](_0xd00978)))['map'](_0x230b15=>_0x2780bd['createRangeOn'](_0x230b15)),_0x370b12=_0x28b9e1['markMultiRangeDeletion'](_0x243495,_0x5b4651);if(_0x370b12&&('tableRow'==_0x370b12['subType']||'tableColumn'==_0x370b12['subType'])){const _0x326d25=this['_getSuggestionCoords'](_0x370b12);for(const _0x253e17 of _0x46b4e1){const _0x5f99dd=_0x2780bd['createRangeOn'](_0x253e17),_0x55af40=_0x4fb569['getCellLocation'](_0x253e17),_0x5f294b=_0x253e17['getAttribute'](_0xd00978)-0x1,_0x4918da=_0x326d25[_0x97efed],_0xe15aea=_0x326d25[_0x197b51];_0x4918da<=_0x55af40[_0x498eb7]&&_0x55af40[_0x498eb7]+_0x5f294b<=_0xe15aea&&_0x370b12['addRange'](_0x5f99dd);}}});});}function _0x24df82(_0x163ecf){const _0x5c6bc0=Array['from'](_0x147dd5['getRanges']())['map'](_0xbc80c0=>_0x92cefc['fromRange'](_0xbc80c0));_0x5a4fe9['model']['change'](_0x4d15b6=>{const _0x5000ff=_0x4d15b6['batch'];_0x163ecf=_0x163ecf['filter'](_0xa728f1=>'$graveyard'!=_0xa728f1['root']['rootName']),_0x4d15b6['setSelection'](_0x163ecf),_0x5a4fe9['commands']['get']('removeTableRow')['refresh'](),_0x5a4fe9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5a4fe9['model']['enqueueChange'](()=>{_0x5a4fe9['model']['enqueueChange'](_0x5000ff,_0x1084dd=>{const _0x3ab17d=_0x5c6bc0['filter'](_0x37a2a7=>'$graveyard'!=_0x37a2a7['root']['rootName']);_0x3ab17d['length']>0x0&&_0x1084dd['setSelection'](_0x3ab17d);for(const _0x2d9799 of _0x5c6bc0)_0x2d9799['detach']();});});});}function _0x5d4d09(_0x41b8a9){_0x5a4fe9['model']['change'](_0x15cdcf=>{const _0x5081aa=Array['from'](_0x147dd5['getRanges']())['map'](_0x4a0117=>_0x92cefc['fromRange'](_0x4a0117)),_0x381671=[];for(const _0xf2179e of _0x41b8a9)for(const _0x23b28f of _0xf2179e['getItems']({'shallow':!0x0}))_0x381671['push'](_0x23b28f);for(const _0x3ab929 of _0x381671)'$graveyard'!=_0x3ab929['root']['rootName']&&(_0x15cdcf['setSelection'](_0x15cdcf['createPositionAt'](_0x3ab929,0x0)),_0x5a4fe9['commands']['get']('removeTableColumn')['refresh'](),_0x5a4fe9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3af51f=_0x5081aa['filter'](_0xfa5f56=>'$graveyard'!=_0xfa5f56['root']['rootName']);_0x3af51f['length']>0x0&&_0x15cdcf['setSelection'](_0x3af51f);for(const _0x2f374a of _0x5081aa)_0x2f374a['detach']();});}function _0x876652(_0x3b60ee,_0x1b6f91){return _0x1b6f91['every'](_0x3b60b6=>_0x3b60ee['some'](_0x12a1dd=>_0x12a1dd['end']['isEqual'](_0x3b60b6['start'])||_0x3b60b6['end']['isEqual'](_0x12a1dd['start'])));}function _0x491a97(_0x27c090,_0x47d00f){return!_0x27c090['some'](_0x35d01d=>_0x47d00f['some'](_0x4addcd=>_0x35d01d['isIntersecting'](_0x4addcd)))&&_0x27c090['some'](_0x6efc84=>_0x47d00f['some'](_0x501d90=>_0x6efc84['end']['isTouching'](_0x501d90['start'])));}_0x5a4fe9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36272e,_0x32160a,_0x5b67eb)=>{if(!_0x5b67eb['options']['showSuggestionHighlights'])return;const _0x4e2fbc=_0x32160a['item'];if(!_0x4e2fbc)return;const _0x4d28c6=_0x5b67eb['mapper']['toViewElement'](_0x4e2fbc);function _0x43c355(_0x2707b3){return Array['isArray'](_0x2707b3)?_0x2707b3:[_0x2707b3];}_0x4d28c6&&'tableCell'===_0x4e2fbc['name']&&_0x54031d(_0x4d28c6,_0x5b67eb['writer'],(_0x572ed7,_0x1da553,_0x1a7752)=>_0x1a7752['addClass'](_0x43c355(_0x1da553['classes']),_0x572ed7),(_0xf99f81,_0x96ab1d,_0x2a9223)=>_0x2a9223['removeClass'](_0x43c355(_0x96ab1d['classes']),_0xf99f81));},{'priority':'highest'}),_0x28b9e1['descriptionFactory']['registerDescriptionCallback'](_0xd4e334=>{if('insertion'!=_0xd4e334['type']&&'deletion'!=_0xd4e334['type'])return;const _0x64911d=_0xd4e334['getContainedElement']();if(null!=_0x64911d&&_0x64911d['is']('element','table')){if('insertion'==_0xd4e334['type']){const _0x1011fb=_0xd4e334['getItems']()['filter'](_0x3a704e=>_0x3a704e['is']('$textProxy'))['map'](_0x1bb072=>_0x1bb072['data']);if(_0x1011fb['length'])return{'type':'insertion','content':o(_0x390594,'*Insert:*\x20%0',o(_0x390594,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1011fb['join']('\x20')+'\x22'))};}if('deletion'==_0xd4e334['type']){const _0x172321=_0xd4e334['getItems']()['filter'](_0x421f4c=>_0x421f4c['is']('$textProxy'))['map'](_0x1362d8=>_0x1362d8['data']);if(_0x172321['length'])return{'type':'deletion','content':o(_0x390594,'*Remove:*\x20%0',o(_0x390594,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x172321['join']('\x20')+'\x22'))};}}}),_0x28b9e1['descriptionFactory']['registerDescriptionCallback'](_0xd78a57=>{if('tableRow'==_0xd78a57['subType']){const _0xdc9e11=_0xd78a57['getItems']()['filter'](_0x1cf950=>_0x1cf950['is']('$textProxy'))['map'](_0x4d1df4=>_0x4d1df4['data']),_0x250e86=this['_getSuggestionCoords'](_0xd78a57),_0x380982=_0x250e86['maxRow']-_0x250e86['minRow']+0x1;if('insertion'==_0xd78a57['type'])return _0xdc9e11['length']?{'type':'insertion','content':o(_0x390594,'*Insert:*\x20%0',o(_0x390594,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x380982,'\x22'+_0xdc9e11['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x390594,'*Insert:*\x20%0',o(_0x390594,'ELEMENT_TABLE_ROW',_0x380982))};if('deletion'==_0xd78a57['type'])return _0xdc9e11['length']?{'type':'deletion','content':o(_0x390594,'*Remove:*\x20%0',o(_0x390594,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x380982,'\x22'+_0xdc9e11['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x390594,'*Remove:*\x20%0',o(_0x390594,'ELEMENT_TABLE_ROW',_0x380982))};}if('tableColumn'==_0xd78a57['subType']){const _0x1c8577=_0xd78a57['getItems']()['filter'](_0x192282=>_0x192282['is']('$textProxy'))['map'](_0x1c4069=>_0x1c4069['data']),_0x2e9d3a=this['_getSuggestionCoords'](_0xd78a57),_0x32cb7a=_0x2e9d3a['maxColumn']-_0x2e9d3a['minColumn']+0x1;if('insertion'==_0xd78a57['type'])return _0x1c8577['length']?{'type':'insertion','content':o(_0x390594,'*Insert:*\x20%0',o(_0x390594,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x32cb7a,'\x22'+_0x1c8577['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x390594,'*Insert:*\x20%0',o(_0x390594,'ELEMENT_TABLE_COLUMN',_0x32cb7a))};if('deletion'==_0xd78a57['type'])return _0x1c8577['length']?{'type':'deletion','content':o(_0x390594,'*Remove:*\x20%0',o(_0x390594,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x32cb7a,'\x22'+_0x1c8577['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x390594,'*Remove:*\x20%0',o(_0x390594,'ELEMENT_TABLE_COLUMN',_0x32cb7a))};}}),_0x28b9e1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x24df82),_0x28b9e1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x24df82),_0x28b9e1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5d4d09),_0x28b9e1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5d4d09),_0x28b9e1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x876652),_0x28b9e1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x876652),_0x28b9e1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x491a97),_0x28b9e1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x491a97);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2b3068=this['editor'],_0x283523=_0x2b3068['model']['document']['selection'];return(_0x45bd88,_0x123ab7)=>{_0x2b3068['model']['change'](_0x1ca238=>{const {commandName:_0x474dad,commandParams:_0x1ba03b}=_0x123ab7;let _0x4b4482=_0x45bd88[0x0]['end']['nodeBefore'];_0x1ba03b&&_0x1ba03b[0x0]&&!0x1===_0x1ba03b[0x0]['forceValue']&&(_0x4b4482=_0x45bd88[0x0]['start']['nodeAfter']);const _0xaa86b5=_0x1ca238['createRangeIn'](_0x4b4482);if('$graveyard'==_0xaa86b5['root']['rootName'])return;const _0x48b379=Array['from'](_0x283523['getRanges']())['map'](_0xc031=>_0x92cefc['fromRange'](_0xc031));_0x1ca238['setSelection'](_0xaa86b5),_0x2b3068['commands']['get'](_0x474dad)['refresh'](),_0x1ba03b['push']({'forceDefaultExecution':!0x0}),_0x2b3068['execute'](_0x474dad,..._0x1ba03b);const _0x4c70a7=_0x48b379['filter'](_0x272e57=>'$graveyard'!=_0x272e57['root']['rootName']);_0x4c70a7['length']>0x0&&_0x1ca238['setSelection'](_0x4c70a7);for(const _0x2f1f4 of _0x48b379)_0x2f1f4['detach']();});};}['_getCoordsForCells'](_0xea5d0a){const _0x1b2610=this['editor']['plugins']['get']('TableUtils');let _0x777b84=Number['MAX_SAFE_INTEGER'],_0x2971ff=Number['MIN_SAFE_INTEGER'],_0xe43937=Number['MAX_SAFE_INTEGER'],_0x3d4f72=Number['MIN_SAFE_INTEGER'];for(const _0x535efc of _0xea5d0a){if('$graveyard'==_0x535efc['root']['rootName'])continue;const {row:_0x2cf27d,column:_0xc913ae}=_0x1b2610['getCellLocation'](_0x535efc),_0x32a0bd=_0x535efc['hasAttribute']('rowspan')?_0x535efc['getAttribute']('rowspan')-0x1:0x0,_0x2f81c7=_0x535efc['hasAttribute']('colspan')?_0x535efc['getAttribute']('colspan')-0x1:0x0;_0x777b84=_0x2cf27d<_0x777b84?_0x2cf27d:_0x777b84,_0x2971ff=_0x2cf27d+_0x32a0bd>_0x2971ff?_0x2cf27d+_0x32a0bd:_0x2971ff,_0xe43937=_0xc913ae<_0xe43937?_0xc913ae:_0xe43937,_0x3d4f72=_0xc913ae+_0x2f81c7>_0x3d4f72?_0xc913ae+_0x2f81c7:_0x3d4f72;}return{'minRow':_0x777b84,'maxRow':_0x2971ff,'minColumn':_0xe43937,'maxColumn':_0x3d4f72};}['_setupColumnsRowsFixing'](){const _0x589925=this['editor'],_0x17d362=_0x589925['plugins']['get']('TrackChangesEditing'),_0xc374b3=_0x589925['plugins']['get']('TableUtils');_0x589925['model']['document']['on']('change:data',()=>{const _0x200611=Array['from'](_0x589925['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f13c9,data:_0x5d1c4a}of _0x200611){const {group:_0x277478,id:_0x40bc89,subType:_0x5bc841}=_0x17d362['_splitMarkerName'](_0x4f13c9);if('suggestion'!=_0x277478)continue;if(null!=_0x5d1c4a['oldRange'])continue;const _0x206e14=_0x17d362['getSuggestion'](_0x40bc89);this['_tablePostFixingSubtypes']['includes'](_0x5bc841)&&this['_tableSuggestions']['add'](_0x206e14);}},{'priority':'low'});const _0xce2197=(_0x5740f2,_0x3b0aa0)=>{let _0x3967d3=!0x1;const _0x34e0a6=_0x3b0aa0['createRangeOn'](_0x5740f2),_0x35b9d2=_0x5740f2['findAncestor']('table'),_0xae98a3=_0xc374b3['getCellLocation'](_0x5740f2);for(const _0x2a9c4d of this['_tableSuggestions']){const _0x531005=_0x2a9c4d['subType'],_0x4c51c9=_0x531005['startsWith']('tablePaste'),_0x13e859=_0x531005['substr'](_0x4c51c9?0xa:0x5),_0x5dfdc5=_0x13e859['toLowerCase'](),_0x4ca0fd=_0x5dfdc5['substr'](0x0,0x3)+'span',_0x3c3bdb='min'+_0x13e859,_0x4a246e='max'+_0x13e859;if(!_0x2a9c4d['isInContent'])continue;if(_0x35b9d2!=_0x2a9c4d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2a9c4d['isIntersectingWithRange'](_0x34e0a6))continue;const _0x57c1bf=_0x5740f2['hasAttribute'](_0x4ca0fd)?_0x5740f2['getAttribute'](_0x4ca0fd)-0x1:0x0,_0x183600=this['_getSuggestionCoords'](_0x2a9c4d),_0x3c96dc=_0x183600[_0x3c3bdb],_0x4e0f6e=_0x183600[_0x4a246e];_0x3c96dc<=_0xae98a3[_0x5dfdc5]&&_0xae98a3[_0x5dfdc5]+_0x57c1bf<=_0x4e0f6e&&(_0x2a9c4d['addRange'](_0x34e0a6),_0x3967d3=!0x0);}return _0x3967d3;};_0x589925['model']['document']['registerPostFixer'](_0x209049=>{let _0x410b5b=!0x1;for(const _0x1a05d1 of _0x589925['model']['document']['differ']['getChanges']())if('insert'==_0x1a05d1['type']){if('tableRow'==_0x1a05d1['name']){for(const _0x2dad34 of _0x1a05d1['position']['nodeAfter']['getChildren']())_0x410b5b=_0x410b5b||_0xce2197(_0x2dad34,_0x209049);}else'tableCell'==_0x1a05d1['name']&&(_0x410b5b=_0x410b5b||_0xce2197(_0x1a05d1['position']['nodeAfter'],_0x209049));}return _0x410b5b;});}['_getSuggestionCoords'](_0x5b630e){return this['_getCoordsForCells'](_0x5b630e['getRanges']()['map'](_0x284852=>_0x284852['start']['nodeAfter']));}}function be(_0x427097){return Array['from'](new Set(_0x427097)['values']());}class vt extends _0x5b23ad{static get['requires'](){return[It];}['afterInit'](){const _0x5bb1ec=this['editor'],_0x65096e=_0x5bb1ec['model']['document']['selection'],_0x116517=_0x5bb1ec['locale'];if(!_0x5bb1ec['plugins']['has']('TableEditing'))return;const _0x42c28c=_0x5bb1ec['plugins']['get']('TrackChangesEditing'),_0x361df4=_0x5bb1ec['plugins']['get']('TableUtils'),_0x5b6d88=_0x5bb1ec['plugins']['get'](It);_0x5b6d88['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x42c28c['enableCommand']('mergeTableCells',()=>{const _0xee9cf9=_0x361df4['getSelectionAffectedTableCells'](_0x5bb1ec['model']['document']['selection']);_0x5bb1ec['model']['change'](()=>{_0x42c28c['markMultiRangeBlockFormat'](_0xee9cf9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5bb1ec['commands']['get']('mergeTableCells')['on']('execute',(_0x26a78a,_0x10d202)=>{_0x5bb1ec['commands']['get']('trackChanges')['value']&&(_0x10d202['length']>0x0&&_0x10d202[_0x10d202['length']-0x1]&&_0x10d202[_0x10d202['length']-0x1]['forceDefaultExecution']||_0x42c28c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x26a78a['stop']());},{'priority':'highest'});for(const _0x2987db of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x107c7d=_0x5bb1ec['commands']['get'](_0x2987db);_0x42c28c['enableCommand'](_0x2987db,()=>{const _0x40dffe=_0x5bb1ec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5b5b8c=>_0x5b5b8c['is']('element','tableCell')),_0x11ad47=_0x107c7d['value'];_0x5bb1ec['model']['change'](()=>{_0x42c28c['markMultiRangeBlockFormat']([_0x40dffe,_0x11ad47],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x19b4c9 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x38c290=_0x5bb1ec['commands']['get'](_0x19b4c9);_0x42c28c['enableCommand'](_0x19b4c9,()=>{const _0x1949ce=_0x361df4['getSelectionAffectedTableCells'](_0x5bb1ec['model']['document']['selection'])[0x0],_0x3c914c=_0x1949ce['findAncestor']('table'),{column:_0x5c5bcf,row:_0x59a83f}=_0x361df4['getCellLocation'](_0x1949ce);let _0x2d03de=[];if('horizontally'==_0x38c290['direction']){const _0x14c722=_0x361df4['createTableWalker'](_0x3c914c,{'startRow':_0x59a83f,'endRow':_0x59a83f,'includeAllSlots':!0x0});_0x2d03de=Array['from'](_0x14c722)['map'](_0x744560=>_0x744560['cell']);}else{const _0x1c580d=_0x361df4['createTableWalker'](_0x3c914c,{'column':_0x5c5bcf,'includeAllSlots':!0x0});_0x2d03de=Array['from'](_0x1c580d)['map'](_0x5c4cf5=>_0x5c4cf5['cell']);}_0x5bb1ec['model']['change'](_0x3c5f33=>{_0x42c28c['markBlockFormat'](_0x3c5f33['createRangeOn'](_0x1949ce),{'commandName':_0x19b4c9,'commandParams':[]},_0x2d03de,_0x19b4c9);});});}_0x42c28c['descriptionFactory']['registerDescriptionCallback'](_0x178801=>{if('formatBlock'!=_0x178801['type']&&'formatInline'!=_0x178801['type'])return;const {data:_0x1faba4}=_0x178801;return _0x1faba4&&'mergeTableCells'==_0x1faba4['commandName']?{'type':'format','content':o(_0x116517,'*Merge\x20cells*')}:void 0x0;}),_0x42c28c['descriptionFactory']['registerDescriptionCallback'](_0x4dbe57=>{if('formatBlock'!=_0x4dbe57['type']&&'formatInline'!=_0x4dbe57['type'])return;const {data:_0x464815}=_0x4dbe57;return _0x464815?'splitTableCellVertically'==_0x464815['commandName']?{'type':'format','content':o(_0x116517,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x464815['commandName']?{'type':'format','content':o(_0x116517,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x252c3b=_0x5b6d88['_acceptFormatSuggestionCallbackFactory']();for(const _0x10b2b0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x42c28c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10b2b0,'accept',_0x252c3b);for(const _0x2f9efe of['splitTableCellVertically','splitTableCellHorizontally'])_0x42c28c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f9efe,'accept',_0x252c3b);_0x42c28c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x59b446=>{_0x5bb1ec['model']['change'](_0x59a8f0=>{const _0x369162=Array['from'](_0x65096e['getRanges']())['map'](_0x57424e=>_0x92cefc['fromRange'](_0x57424e));_0x59a8f0['setSelection'](_0x59b446),_0x5bb1ec['commands']['get']('mergeTableCells')['refresh'](),_0x5bb1ec['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3c19d3=_0x369162['filter'](_0x2d6a03=>'$graveyard'!=_0x2d6a03['root']['rootName']);_0x3c19d3['length']>0x0&&_0x59a8f0['setSelection'](_0x3c19d3);for(const _0x5910a3 of _0x369162)_0x5910a3['detach']();});});for(const _0x23e699 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x9b14e6=_0x5bb1ec['commands']['get'](_0x23e699);_0x9b14e6['on']('set:isEnabled',(_0x5085e3,_0x34d5e1,_0x1e195d)=>{if(_0x1e195d){const _0x1e42d4=_0x5bb1ec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x16d75c=>_0x16d75c['is']('element','tableCell'));this['_areMergableCells'](_0x9b14e6['value'],_0x1e42d4)||(_0x5085e3['return']=!0x1,_0x5085e3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2534b8=this['editor']['commands']['get']('mergeTableCells'),_0x3fc3d8=this['editor']['plugins']['get']('TableUtils');if(!_0x2534b8['isEnabled'])return!0x1;const _0x47014c=_0x3fc3d8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x45a60d of _0x47014c)for(const _0xbe24e7 of _0x47014c)if(_0x45a60d!=_0xbe24e7&&!this['_areMergableCells'](_0x45a60d,_0xbe24e7))return!0x1;return!0x0;}['_areMergableCells'](_0x4c57d1,_0x5da996){const _0x4c7bcf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ee394=this['editor']['model']['createRangeOn'](_0x4c57d1),_0x5ceed8=this['editor']['model']['createRangeOn'](_0x5da996),_0x4daabd=new Set(),_0xfda40b=new Set();for(const _0x6625ae of _0x4c7bcf['getSuggestions']())if(('insertion'==_0x6625ae['type']||'deletion'==_0x6625ae['type']||'mergeTableCells'==_0x6625ae['subType'])&&_0x6625ae['isInContent']){for(const _0x58c269 of _0x6625ae['getRanges']())_0x58c269['containsRange'](_0x3ee394,!0x0)&&_0x4daabd['add'](_0x6625ae['type']+':'+_0x6625ae['author']['id']),_0x58c269['containsRange'](_0x5ceed8,!0x0)&&_0xfda40b['add'](_0x6625ae['type']+':'+_0x6625ae['author']['id']);}if(_0x4daabd['size']!=_0xfda40b['size'])return!0x1;for(const _0xcd6868 of _0x4daabd)if(!_0xfda40b['has'](_0xcd6868))return!0x1;return!0x0;}}class Ct extends _0x5b23ad{static get['requires'](){return[It];}['afterInit'](){const _0x4b9ab0=this['editor'];if(!_0x4b9ab0['plugins']['has']('TableEditing'))return;const _0x3ffbca=_0x4b9ab0['locale'],_0x1b172a=_0x4b9ab0['plugins']['get']('TrackChangesEditing');_0x1b172a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b172a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b172a['registerBlockAttribute']('headingRows'),_0x1b172a['registerBlockAttribute']('headingColumns'),_0x1b172a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3ffbca,'FORMAT_HEADER_ROW')),_0x1b172a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3ffbca,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4ba49d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x58de0c=this['editor']['plugins']['get']('TableUtils'),_0x579d82=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x281bac({showActiveMarker:_0x391dce=!0x0,setDataAttribute:_0x4864bb=!0x0}={}){return(_0x17cf68,_0x4b435f,_0x5d8459)=>{const {type:_0x492967,id:_0x260bab}=_0x4ba49d['_splitMarkerName'](_0x4b435f['markerName']),_0x5564f5=_0x4ba49d['getSuggestion'](_0x260bab),_0x399579=_0x5564f5['data'];if('formatBlock'!=_0x5564f5['type']||!_0x399579||'setTableColumnHeader'!=_0x399579['commandName'])return;if(_0x4b435f['item'])return void _0x17cf68['stop']();if(!_0x5d8459['consumable']['consume'](_0x4b435f['markerRange'],_0x17cf68['name']))return;const _0x9c0261=_0x4b435f['markerRange']['start']['nodeAfter'],_0xec0beb=_0x4b435f['markerRange']['end']['nodeBefore'],_0x10554f=_0x9c0261['parent']['parent'],{column:_0x142376}=_0x58de0c['getCellLocation'](_0x9c0261),{column:_0x5c9454}=_0x58de0c['getCellLocation'](_0xec0beb);for(let _0x30bb92=_0x142376;_0x30bb92<=_0x5c9454;_0x30bb92++){const _0x282720=_0x58de0c['createTableWalker'](_0x10554f,{'column':_0x30bb92,'includeAllSlots':!0x1});for(const _0x1530aa of _0x282720){const _0x341f04=_0x1530aa['cell'],_0x46d3ed=_0x5d8459['mapper']['toViewElement'](_0x341f04);_0x5d8459['writer']['addClass']('ck-suggestion-marker-'+_0x492967,_0x46d3ed),_0x4864bb&&_0x5d8459['writer']['setAttribute']('data-suggestion',_0x260bab,_0x46d3ed),_0x5d8459['mapper']['bindElementToMarker'](_0x46d3ed,_0x4b435f['markerName']),_0x391dce&&(_0x4ba49d['activeMarkers']['includes'](_0x4b435f['markerName'])?_0x5d8459['writer']['addClass']('ck-suggestion-marker--active',_0x46d3ed):_0x5d8459['writer']['removeClass']('ck-suggestion-marker--active',_0x46d3ed));}}};}_0x4ba49d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x579d82),_0x4ba49d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x579d82),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x281bac(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x126845,_0x1e78d5,_0x43a01e)=>{_0x43a01e['options']['showSuggestionHighlights']&&_0x281bac({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x126845,_0x1e78d5,_0x43a01e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3c3b6a,_0x28ee1e,_0x20b50b)=>{const {type:_0xe11fb,id:_0x24ab6a}=_0x4ba49d['_splitMarkerName'](_0x28ee1e['markerName']),_0x447718=_0x4ba49d['getSuggestion'](_0x24ab6a),_0x19e64e=_0x447718['data'];if('formatBlock'!=_0x447718['type']||!_0x19e64e||'setTableColumnHeader'!=_0x19e64e['commandName'])return;const _0x51d3f7=_0x20b50b['mapper']['markerNameToElements'](_0x28ee1e['markerName']);if(_0x51d3f7){for(const _0x45f46c of _0x51d3f7)_0x20b50b['writer']['removeClass']('ck-suggestion-marker-'+_0xe11fb,_0x45f46c),_0x20b50b['writer']['removeClass']('ck-suggestion-marker--active',_0x45f46c),_0x20b50b['writer']['removeAttribute']('data-suggestion',_0x45f46c),_0x20b50b['mapper']['unbindElementFromMarkerName'](_0x45f46c,_0x28ee1e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x130fed=this['editor'],_0x578037=_0x130fed['locale'];function _0x2ab447(_0x5686e3){return{'type':'format','content':o(_0x578037,'*Format:*\x20%0',_0x5686e3)};}_0x130fed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x333b02=>{if('formatBlock'!=_0x333b02['type'])return;const {data:_0x952166}=_0x333b02;if(_0x952166){if('setTableRowHeader'==_0x952166['commandName']){const _0x149de9=_0x952166['commandParams'][0x0]['forceValue'];return _0x2ab447(o(_0x578037,_0x149de9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x952166['commandName']){const _0x31d18f=_0x952166['commandParams'][0x0]['forceValue'];return _0x2ab447(o(_0x578037,_0x31d18f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x1dbead=>[_0x1dbead,null]));class _t extends _0x5b23ad{static get['requires'](){return[It];}['afterInit'](){const _0x1dcc52=this['editor'];if(!_0x1dcc52['plugins']['has']('TableClipboard'))return;const _0x4c7604=_0x1dcc52['plugins']['get']('TrackChangesEditing'),_0x330d97=_0x1dcc52['plugins']['get']('TableUtils'),_0x39533b=_0x1dcc52['plugins']['get'](It),_0x430d90=_0x1dcc52['plugins']['get']('TableClipboard');_0x39533b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1dcc52['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1dcc52['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x86b0ce=null;_0x1dcc52['model']['on']('insertContent',(_0x238c06,_0x1b9c87)=>{const [_0x5b7f6c,_0x541f52]=_0x1b9c87,_0x1a8caa=_0x1b9c87[_0x1b9c87['length']-0x1];_0x1a8caa&&_0x1a8caa['forceDefaultExecution']||_0x4c7604['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x44a3aa,_0x4c6859,_0x49ad78,_0x3af219,_0xe4160c){if(_0x4c6859&&!_0x4c6859['is']('documentSelection'))return!0x1;const _0x2dda0b=_0xe4160c['getTableIfOnlyTableInContent'](_0x44a3aa,_0x49ad78);if(!_0x2dda0b||!Re(_0x2dda0b,void 0x0,_0x3af219))return!0x1;const _0x500131=_0x3af219['getSelectionAffectedTableCells'](_0x49ad78['document']['selection']);if(!_0x500131['length'])return!0x1;const _0x5defc6=_0x500131[0x0]['findAncestor']('table'),_0x47f8ca=_0x3af219['getRowIndexes'](_0x500131),_0x339ec4=_0x3af219['getColumnIndexes'](_0x500131),_0x8cd4d9={'startRow':_0x47f8ca['first'],'endRow':_0x47f8ca['last'],'startColumn':_0x339ec4['first'],'endColumn':_0x339ec4['last']};return 0x1==_0x500131['length']&&(_0x8cd4d9['endRow']+=_0x3af219['getRows'](_0x2dda0b)-0x1,_0x8cd4d9['endColumn']+=_0x3af219['getColumns'](_0x2dda0b)-0x1),Re(_0x5defc6,_0x8cd4d9,_0x3af219);}(_0x5b7f6c,_0x541f52,_0x1dcc52['model'],_0x330d97,_0x430d90)&&(_0x238c06['stop'](),_0x86b0ce={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1dcc52['model']['change'](()=>{_0x1dcc52['model']['insertContent'](_0x1b9c87[0x0],_0x1b9c87[0x1],_0x1b9c87[0x2],{'forceDefaultExecution':!0x0});const _0x5559d0=_0x8c81a(),{rowInsertionRanges:_0x154aa2,columnInsertionRanges:_0xa9e645,insertionRanges:_0x324cd9,deletionRanges:_0x5824af,cells:_0x4b00de}=_0x86b0ce;_0x154aa2['length']&&_0x4c7604['markMultiRangeInsertion'](_0x154aa2,'tablePasteRow',{'tablePasteChainId':_0x5559d0}),_0xa9e645['length']&&_0x4c7604['markMultiRangeInsertion'](_0xa9e645,'tablePasteColumn',{'tablePasteChainId':_0x5559d0}),_0x324cd9['length']&&(_0x4c7604['markMultiRangeInsertion'](_0x324cd9,'tablePaste',{'tablePasteChainId':_0x5559d0,'skipNestingCheck':!0x0}),_0x324cd9['forEach'](_0x259978=>_0x259978['detach']?.())),_0x5824af['length']&&(_0x4c7604['markMultiRangeDeletion'](_0x5824af,'tablePaste',{'tablePasteChainId':_0x5559d0,'skipNestingCheck':!0x0}),_0x5824af['forEach'](_0x4cb299=>_0x4cb299['detach']?.()));const _0x2d3137=_0x4c7604['markMultiRangeBlockFormat'](_0x4b00de['map'](({element:_0x44b706})=>_0x44b706),{'formatGroupId':_0x8c81a()},[],'tablePasteCell',{'tablePasteChainId':_0x5559d0});if(_0x2d3137){const _0x2ceef2=_0x2d3137['getMarkers'](),_0x58982b=[];for(const {element:_0x3e8c56,attributes:_0x2c7db1}of _0x4b00de){if(!_0x2c7db1)continue;const _0x567442=_0x1dcc52['model']['createRangeOn'](_0x3e8c56),_0x23292c=_0x2ceef2['find'](_0x5232e2=>_0x5232e2['getRange']()['isEqual'](_0x567442));_0x23292c&&_0x58982b['push']([_0x23292c['name'],_0x2c7db1]);}_0x58982b['length']&&_0x2d3137['setAttribute']('markerAttributes',Object['fromEntries'](_0x58982b));}_0x86b0ce=null;}));},{'priority':_0xbd4cf9['high']+0xa}),_0x1dcc52['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5f2766,_0x5213c9)=>{const [_0xdb61c,_0x32d184,,_0x510f32]=_0x5213c9;if(!_0x86b0ce)return;_0x5f2766['stop']();const _0x4b8eed=_0xdb61c['cell'],_0x596e80=_0x32d184,_0x4482f4=ke(_0x4b8eed),_0x2de518=ke(_0x596e80);_0x5f2766['return']=_0x4b8eed;let _0x523426=null,_0x18f316=null;if(_0x2de518||_0x4482f4){if(_0x4482f4&&!_0x2de518){_0x510f32['remove'](_0x4b8eed['getChild'](0x0));for(const _0x9a6868 of Array['from'](_0x596e80['getChildren']()))_0x510f32['insert'](_0x9a6868,_0x4b8eed,'end');const _0xa27830=_0x86b0ce['rowInsertionIndexes']['includes'](_0xdb61c['row']),_0x10abff=_0x86b0ce['columnInsertionIndexes']['includes'](_0xdb61c['column']);_0xa27830||_0x10abff||(_0x523426=_0x92cefc['fromRange'](_0x510f32['createRangeIn'](_0x4b8eed)));}else _0x2de518&&!_0x4482f4&&(_0x18f316=_0x510f32['createRangeIn'](_0x4b8eed));}else{const _0x4871ab=_0x510f32['createElement']('tableCellSuggestion'),_0x54eb10=_0x510f32['createElement']('tableCellSuggestion');_0x510f32['wrap'](_0x510f32['createRangeIn'](_0x4b8eed),_0x54eb10),_0x510f32['insert'](_0x4871ab,_0x4b8eed,0x0);for(const _0xe025ed of Array['from'](_0x596e80['getChildren']()))_0x510f32['insert'](_0xe025ed,_0x4871ab,'end');_0x523426=_0x92cefc['fromRange'](_0x510f32['createRangeOn'](_0x4871ab)),_0x18f316=_0x92cefc['fromRange'](_0x510f32['createRangeOn'](_0x54eb10));}const _0x1a4486=Array['from'](_0x596e80['getAttributes']())['filter'](([_0x10ae49])=>Pe['includes'](_0x10ae49));_0x86b0ce['cells']['push']({'element':_0x4b8eed,'attributes':_0x1a4486['length']?Object['fromEntries'](_0x1a4486):null}),_0x523426&&_0x86b0ce['insertionRanges']['push'](_0x523426),_0x18f316&&_0x86b0ce['deletionRanges']['push'](_0x18f316);},{'priority':'high'}),_0x330d97['on']('insertColumns',(_0x1731f0,_0x26cead)=>{const [_0x48c163,_0x2e1566={}]=_0x26cead;if(!_0x86b0ce)return;const _0x5e3665=_0x2e1566['at']||0x0,_0x45eaf3=_0x2e1566['columns']||0x1;_0x86b0ce['columnInsertionIndexes']=new Array(_0x45eaf3)['fill'](_0x5e3665)['map']((_0x5a44c6,_0x7710b3)=>_0x5a44c6+_0x7710b3);for(const {cell:_0x39eb2d}of _0x330d97['createTableWalker'](_0x48c163,{'startColumn':_0x5e3665,'endColumn':_0x5e3665+_0x45eaf3-0x1}))_0x86b0ce['columnInsertionRanges']['push'](_0x1dcc52['model']['createRangeOn'](_0x39eb2d));},{'priority':'low'}),_0x330d97['on']('insertRows',(_0x15b820,_0x4aca9c)=>{const [_0x405477,_0x93a56d={}]=_0x4aca9c;if(!_0x86b0ce)return;const _0x4837c9=_0x93a56d['at']||0x0,_0x5705ea=_0x93a56d['rows']||0x1;_0x86b0ce['rowInsertionIndexes']=new Array(_0x5705ea)['fill'](_0x4837c9)['map']((_0x2e4a00,_0x5d2e28)=>_0x2e4a00+_0x5d2e28);for(const {cell:_0x58c156}of _0x330d97['createTableWalker'](_0x405477,{'startRow':_0x4837c9,'endRow':_0x4837c9+_0x5705ea-0x1}))_0x86b0ce['rowInsertionRanges']['push'](_0x1dcc52['model']['createRangeOn'](_0x58c156));},{'priority':'low'}),_0x4c7604['descriptionFactory']['registerDescriptionCallback'](_0x387e17=>{if(_0x387e17['subType']&&_0x387e17['subType']['startsWith']('tablePaste'))return _0x387e17['previous']?{}:{'type':'insertion','content':o(_0x1dcc52['locale'],'*Replace\x20table\x20cells*')};});const _0x3a1ae2=()=>!0x1;for(const _0x1037d4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c7604['_suggestionFactory']['registerCustomCallback']('insertion',_0x1037d4,'join',_0x3a1ae2),_0x4c7604['_suggestionFactory']['registerCustomCallback']('deletion',_0x1037d4,'join',_0x3a1ae2),_0x4c7604['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1037d4,'join',_0x3a1ae2);_0x4c7604['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3a1ae2),_0x4c7604['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x105a55,_0x4c3fb0,_0x7a620a)=>{const _0x527dff=_0x105a55['map'](_0x53fc36=>_0x53fc36['getContainedElement']())['filter'](_0x97ba4e=>_0x97ba4e),_0x1de29c=new Map(_0x527dff['map'](_0x5e25ce=>[_0x5e25ce,null]));if(_0x86b0ce){for(const {element:_0x5bbc76,attributes:_0x4c620a}of _0x86b0ce['cells'])_0x4c620a&&_0x1de29c['set'](_0x5bbc76,_0x4c620a);}else{if(_0x7a620a&&_0x7a620a['markerAttributes'])for(const [_0xf504a1,_0x3d8f67]of Object['entries'](_0x7a620a['markerAttributes'])){const _0x2fe504=_0x1dcc52['model']['markers']['get'](_0xf504a1),_0x4aca02=_0x2fe504?_0x2fe504['getRange']()['getContainedElement']():null;_0x4aca02&&_0x1de29c['set'](_0x4aca02,_0x3d8f67);}}_0x1dcc52['model']['change'](_0x51f8ec=>{for(const [_0x5b2ba4,_0x370716]of _0x1de29c)_0x51f8ec['setAttributes']({...we,..._0x370716},_0x5b2ba4);});});const _0x3cfaec=(_0x3159bb,_0x4fb0ce)=>{_0x4c7604['_suggestionFactory']['registerCustomCallback'](_0x3159bb,'tablePaste',_0x4fb0ce,(_0x47faed,_0x29f9b2,_0x216511)=>{_0x1dcc52['model']['change'](_0x2ae162=>{const _0x3fd23b=[];for(const _0x5c4f28 of _0x47faed){const _0x3252d3=_0x5c4f28['start']['nodeAfter'];_0x3252d3['is']('element','tableCellSuggestion')&&_0x3fd23b['push'](_0x3252d3);}_0x4c7604['_suggestionFactory']['getSuggestionCallback'](_0x3159bb,null,_0x4fb0ce)(_0x47faed,_0x29f9b2,_0x216511);for(const _0x54f42e of _0x3fd23b)'$graveyard'!=_0x54f42e['root']['rootName']&&_0x2ae162['unwrap'](_0x54f42e);});});};_0x3cfaec('insertion','accept'),_0x3cfaec('insertion','discard'),_0x3cfaec('deletion','accept'),_0x3cfaec('deletion','discard'),_0x4c7604['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x15af7c=>{const _0x4fd132=_0x15af7c['map'](_0x4f89de=>_0x4f89de['getContainedElement']()),_0x558fa2=_0x4fd132[0x0]['findAncestor']('table'),{minRow:_0x364d3d,maxRow:_0x20be70}=_0x39533b['_getCoordsForCells'](_0x4fd132);_0x330d97['removeRows'](_0x558fa2,{'at':_0x364d3d,'rows':_0x20be70-_0x364d3d+0x1});}),_0x4c7604['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x317daa=>{const _0x2d6230=_0x317daa['map'](_0x59a995=>_0x59a995['getContainedElement']()),_0x33596a=_0x2d6230[0x0]['findAncestor']('table'),{minColumn:_0x1b3e7f,maxColumn:_0x24e92c}=_0x39533b['_getCoordsForCells'](_0x2d6230);_0x330d97['removeColumns'](_0x33596a,{'at':_0x1b3e7f,'columns':_0x24e92c-_0x1b3e7f+0x1});});const _0x37d393=(_0x2d8ce0,_0xab140e)=>{if(!_0xab140e['subType']||!_0xab140e['subType']['startsWith']('tablePaste'))return;const _0x18a611=_0xab140e['attributes']['tablePasteChainId'],_0x184238=_0x4c7604['getSuggestions']()['filter'](_0x22a8e5=>_0x22a8e5['isInContent']&&_0x22a8e5['attributes']&&_0x22a8e5['attributes']['tablePasteChainId']==_0x18a611);_0x184238['length']&&_0xab140e['getAllAdjacentSuggestions']()['length']!=_0x184238['length']&&_0x184238['reduce']((_0x10656,_0x682c1c)=>(_0x10656['next']=_0x682c1c,_0x682c1c['previous']=_0x10656,_0x682c1c));};function _0x18dac3(_0x1b5d73,_0x4f45ec=!0x0){const {id:_0x6dae50,authorId:_0x24b159}=_0x4c7604['_splitMarkerName'](_0x1b5d73['markerName']),_0x5a326f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x121e5c=_0x4c7604['activeMarkers']['includes'](_0x1b5d73['markerName']);return _0x121e5c&&_0x5a326f['push']('ck-suggestion-marker--active'),{'classes':_0x5a326f,'attributes':{'data-suggestion':_0x6dae50,'data-author-id':_0x24b159},'priority':_0x121e5c&&_0x4f45ec?0xbc2:0xbb8};}_0x4c7604['on']('suggestionLoaded',_0x37d393,{'priority':'high'}),_0x4c7604['on']('suggestionUnloaded',_0x37d393,{'priority':'high'}),_0x1dcc52['model']['document']['registerPostFixer'](()=>{let _0x4013d4=!0x1;const _0x219087=Array['from'](_0x1dcc52['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20e04c,data:_0x1cfe1b}of _0x219087){const {group:_0x3a66c8,type:_0x33312c,id:_0x449ac3}=_0x4c7604['_splitMarkerName'](_0x20e04c);if('suggestion'!=_0x3a66c8||'deletion'!=_0x33312c||_0x1cfe1b['oldRange'])continue;if(!_0x4c7604['hasSuggestion'](_0x449ac3))continue;const _0x120a71=_0x4c7604['getSuggestion'](_0x449ac3)['getRanges'](),_0x5da241=_0x1dcc52['plugins']['get']('Users')['me'];for(const _0x59a8bb of _0x4c7604['getSuggestions']()){if(!_0x59a8bb['isInContent']||_0x59a8bb['author']!=_0x5da241)continue;if('formatBlock'!=_0x59a8bb['type']||'tablePasteCell'!=_0x59a8bb['subType'])continue;if(_0x59a8bb['getRanges']()['every'](_0x2310bd=>_0x120a71['some'](_0x17308a=>_0x17308a['containsRange'](_0x2310bd,!0x0)))){for(const _0x275c4b of _0x59a8bb['getAllAdjacentSuggestions']())_0x275c4b['isInContent']&&(_0x275c4b['discard'](),_0x4013d4=!0x0);}}}return _0x4013d4;}),_0x1dcc52['model']['document']['registerPostFixer'](_0xb62828=>{const _0x46e681=_0x1dcc52['commands']['get']('redo');if(!_0x46e681||!_0x46e681['_createdBatches']['has'](_0xb62828['batch']))return!0x1;let _0x24ad46=!0x1;const _0xe0a81f=_0x1dcc52['plugins']['get']('Users')['me'],_0x580693=_0x1dcc52['model']['document']['differ']['getChanges'](),_0x1c7af8=Array['from'](_0x1dcc52['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1e46ed,data:_0x562d43})=>{const {group:_0x28c341,subType:_0x41932f,authorId:_0x49f2d7}=_0x4c7604['_splitMarkerName'](_0x1e46ed);return'suggestion'==_0x28c341&&'tablePaste'==_0x41932f&&_0x49f2d7==_0xe0a81f['id']&&!_0x562d43['oldRange'];});for(const _0x2ed559 of _0x580693){if('insert'!=_0x2ed559['type']||'tableCellSuggestion'!=_0x2ed559['name']||0x1!=_0x2ed559['length'])continue;const _0x441b33=_0xb62828['createRange'](_0x2ed559['position'],_0x2ed559['position']['getShiftedBy'](0x1));if(!_0x1c7af8['find'](({data:_0x5af944})=>_0x5af944['newRange']['isEqual'](_0x441b33))){for(const {name:_0x34a7a1,data:_0x54addb}of _0x1c7af8)if(_0x441b33['containsRange'](_0x54addb['newRange'])){_0xb62828['updateMarker'](_0x34a7a1,{'range':_0x441b33}),_0x24ad46=!0x0;break;}}}return _0x24ad46;}),_0x1dcc52['model']['document']['registerPostFixer'](_0x3bae7e=>{let _0x34cd4a=!0x1;const _0x5271bd=_0x1dcc52['plugins']['get']('Users')['me'],_0x22516=_0x4c7604['getSuggestions']()['filter'](_0x33535f=>_0x33535f['isInContent']&&_0x33535f['author']==_0x5271bd),_0x20d36a=new Set(),_0x1f1717=new Set();for(const _0x22eca0 of _0x22516)if('tablePaste'==_0x22eca0['subType'])for(const _0x546467 of _0x22eca0['getMarkers']()){const _0x57a3dc=_0x546467['getRange']()['getContainedElement']();if(_0x57a3dc){if(_0x57a3dc['is']('element','tableCellSuggestion')&&ke(_0x57a3dc)){_0x22eca0['removeMarker'](_0x546467['name']),_0x20d36a['add'](_0x57a3dc),_0x34cd4a=!0x0;const _0x5286f3=_0x57a3dc['nextSibling'],_0x3fc627=_0x57a3dc['previousSibling'],_0x1a252d=_0x5286f3&&_0x5286f3['is']('element','tableCellSuggestion'),_0x1d4818=_0x3fc627&&_0x3fc627['is']('element','tableCellSuggestion');_0x1a252d&&!_0x20d36a['has'](_0x5286f3)&&_0x1f1717['add'](_0x5286f3),_0x1d4818&&!_0x20d36a['has'](_0x3fc627)&&_0x1f1717['add'](_0x3fc627);}else _0x57a3dc['is']('element','paragraph')&&_0x57a3dc['isEmpty']&&(_0x22eca0['removeMarker'](_0x546467['name']),_0x34cd4a=!0x0);}}else{if('tablePasteCell'==_0x22eca0['subType']){if(!_0x22eca0['attributes']||!_0x22eca0['attributes']['tablePasteChainId'])continue;const _0x41b861=_0x22eca0['attributes']['markerAttributes'];if(_0x41b861&&Object['keys'](_0x41b861)['length'])continue;const _0x1bef7a=_0x22eca0['attributes']['tablePasteChainId'];let _0x2c4ad8=!0x0,_0x5dadf1=!0x0;for(const _0x5cc145 of _0x22516)if(_0x5cc145['subType']&&_0x5cc145['subType']['startsWith']('tablePaste')){if(!_0x5cc145['attributes']['tablePasteChainId']){_0x5dadf1=!0x1;break;}if(_0x5cc145['id']!=_0x22eca0['id']&&_0x5cc145['attributes']['tablePasteChainId']==_0x1bef7a){_0x2c4ad8=!0x1;break;}}_0x5dadf1&&_0x2c4ad8&&(_0x22eca0['removeMarkers'](),_0x34cd4a=!0x0);}}for(const _0x34b135 of _0x20d36a)_0x3bae7e['remove'](_0x34b135);for(const _0x37d508 of _0x1f1717)_0x3bae7e['unwrap'](_0x37d508);return _0x34cd4a;}),_0x1dcc52['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x491c39=>_0x18dac3(_0x491c39),'converterPriority':'high'}),_0x1dcc52['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x520831,_0x473692)=>_0x473692['options']['showSuggestionHighlights']?_0x18dac3(_0x520831,!0x1):null,'converterPriority':'high'});const _0x32670d=_0x1dcc52['editing']['view'];this['listenTo'](_0x32670d['document'],'clipboardOutput',(_0x287285,_0x20e44c)=>{const _0x533232=[];for(const _0x514e17 of _0x32670d['createRangeIn'](_0x20e44c['content'])['getItems']())_0x514e17['is']('element','suggestion-td')&&_0x533232['push'](_0x514e17);_0x32670d['change'](_0x3a0440=>{for(const _0x136006 of _0x533232)_0x3a0440['move'](_0x3a0440['createRangeIn'](_0x136006),_0x3a0440['createPositionBefore'](_0x136006)),_0x3a0440['remove'](_0x136006);});});}}function ke(_0x1127be){if(_0x1127be['isEmpty'])return!0x0;const _0x2f2041=_0x1127be['getChild'](0x0);return _0x2f2041['is']('element','paragraph')&&_0x2f2041['isEmpty'];}function Re(_0x213b07,_0x257d2b={},_0x5b565c){for(const {isAnchor:_0x2bb61b,cellHeight:_0x3ec278,cellWidth:_0x111bb9}of _0x5b565c['createTableWalker'](_0x213b07,{'includeAllSlots':!0x0,..._0x257d2b}))if(!_0x2bb61b||0x1!=_0x3ec278||0x1!=_0x111bb9)return!0x1;return!0x0;}class Nt extends _0x5b23ad{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x57dc3d=this['editor']['plugins']['get']('TrackChangesEditing');_0x57dc3d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x57dc3d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x57dc3d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x57dc3d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x57dc3d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x57dc3d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f5032,_0x547b69){const _0x5e4220=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5557a0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x91dbac=_0x547b69['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x295b18=_0x5557a0['getColumnGroupElement'](_0x91dbac);let _0x179595=_0x295b18?_0x5557a0['getTableColumnsWidths'](_0x295b18):null,_0x34f61e=_0x91dbac['getAttribute']('tableWidth')||null;const _0x2f320c=_0x547b69['tableWidth']||_0x34f61e,_0x174606=_0x547b69['columnWidths']||_0x179595,_0x3e4c81=this['editor']['plugins']['get']('Users')['me'];for(const _0x2b179b of _0x5e4220['getSuggestions']()){const _0x417020=_0x2b179b['getContainedElement']();if('resizeTable'===_0x2b179b['subType']&&_0x417020===_0x91dbac){_0x2b179b['author']!==_0x3e4c81&&_0x2b179b['discard']();const _0x2abc02=_0x2b179b['data']['commandParams'];_0x34f61e=_0x2abc02[0x0]['tableWidth'],_0x179595=_0x2abc02[0x0]['columnWidths'];break;}}_0x2f5032({'table':_0x91dbac,'tableWidth':_0x2f320c,'columnWidths':_0x174606}),_0x5e4220['markBlockFormat'](_0x91dbac,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x34f61e,'columnWidths':_0x179595}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x35175a){if('formatBlock'!=_0x35175a['type']&&'formatInline'!=_0x35175a['type'])return;const {data:_0x3050f9}=_0x35175a;if(_0x3050f9&&'resizeTable'===_0x3050f9['formatGroupId']){const _0x5db4d6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5db4d6)};}}}class Dt extends _0x5b23ad{['afterInit'](){const _0xec4a98=this['editor'];_0xec4a98['plugins']['has']('Template')&&_0xec4a98['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x5b23ad{['afterInit'](){const _0x5d0a24=this['editor'];if(!_0x5d0a24['commands']['get']('insertTableOfContents'))return;_0x5d0a24['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5b17b6=_0x5d0a24['plugins']['get']('TrackChangesEditing'),_0x5cb4d3=_0x5d0a24['locale'];_0x5b17b6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4eff23=>o(_0x5cb4d3,'ELEMENT_TABLE_OF_CONTENTS',_0x4eff23));}}class $t extends _0x5b23ad{['afterInit'](){const _0x428fe3=this['editor'];if(!_0x428fe3['plugins']['has']('Title'))return;const _0x54e831=_0x428fe3['plugins']['get']('TrackChangesEditing');_0x54e831['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x428fe3['locale'],'ELEMENT_TITLE')),_0x428fe3['model']['document']['registerPostFixer'](_0x509de3=>{let _0x401d3a=!0x1;const _0x578762=Array['from'](_0x428fe3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f733b,data:_0x5d6925}of _0x578762){const {group:_0x453f02}=_0x54e831['_splitMarkerName'](_0x2f733b);if('suggestion'!==_0x453f02||!_0x5d6925['newRange'])continue;const _0x37e0cd=_0x5d6925['newRange'],_0x55d4ab=_0x37e0cd['end']['nodeBefore'];if(!_0x55d4ab||!_0x55d4ab['is']('element','title-content'))continue;if(!_0x37e0cd['start']['isTouching'](_0x37e0cd['end']))continue;const _0x2bdbc7=_0x428fe3['model']['schema']['getNearestSelectionRange'](_0x37e0cd['end'],'forward');if(_0x2bdbc7&&_0x2bdbc7['isCollapsed']){const _0x27fc69=_0x509de3['createRange'](_0x37e0cd['start'],_0x2bdbc7['start']);_0x27fc69['isEqual'](_0x37e0cd)||(_0x509de3['updateMarker'](_0x2f733b,{'range':_0x27fc69}),_0x401d3a=!0x0);}_0x401d3a||(_0x509de3['removeMarker'](_0x2f733b),_0x401d3a=!0x0);}return _0x401d3a;});}}class Bt extends _0x5b23ad{['afterInit'](){const _0x3a65c8=this['editor'],_0x1d478d=_0x3a65c8['plugins']['get']('TrackChangesEditing');_0x3a65c8['plugins']['has']('UndoEditing')&&(_0x1d478d['enableCommand']('undo'),_0x1d478d['enableCommand']('redo'));}}class xt extends _0x5b23ad{static get['requires'](){return[It];}['afterInit'](){const _0x3bf920=this['editor'];if(!_0x3bf920['plugins']['has']('TableCaptionEditing'))return;_0x3bf920['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x5b23ad{['tableProperties'];['tableCellProperties'];constructor(_0x1ae487){super(_0x1ae487),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 _0x34700d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2d688a of this['tableProperties'])_0x34700d['enableCommand'](_0x2d688a,(_0x48131a,_0xe79fb9)=>{const _0x3880cc=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2d688a,[_0x3880cc],this['tableProperties'],'tableProperties',_0x48131a,_0xe79fb9);});_0x34700d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x34700d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34700d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x454ea5,_0x89a166)=>this['handleDiscardAction'](this['tableProperties'],_0x454ea5,_0x89a166)),_0x34700d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4a7a24 of this['tableCellProperties'])_0x34700d['enableCommand'](_0x4a7a24,(_0x2d20dc,_0x4787fa)=>{const _0xbd1b46=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4a7a24,_0xbd1b46,this['tableCellProperties'],'tableCellProperties',_0x2d20dc,_0x4787fa);});_0x34700d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x34700d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34700d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xa24a29,_0x38eef3)=>this['handleDiscardAction'](this['tableCellProperties'],_0xa24a29,_0x38eef3)),_0x34700d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x34700d['descriptionFactory']['registerDescriptionCallback'](_0x4349b2=>this['handleSuggestionDescription'](_0x4349b2));}['_handlePropertyChange'](_0x3c7038,_0x1238fe,_0x173c3a,_0x4bbd9d,_0x2c094f,_0x30c3d3){const _0x1f811a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x30c3d3['batch'],()=>{for(const _0x3dd8b8 of _0x1238fe){if(this['_getSuggestion'](_0x3dd8b8,_0x4bbd9d))_0x2c094f(_0x30c3d3);else{const _0x48d357={};for(const _0x3aef94 of _0x173c3a){const _0x5a01ff=_0x3dd8b8['getAttribute'](_0x3aef94);void 0x0!==_0x5a01ff&&(_0x48d357[_0x3aef94]=_0x5a01ff);}_0x2c094f(_0x30c3d3),_0x1f811a['markBlockFormat'](_0x3dd8b8,{'commandParams':[_0x48d357]},[],_0x4bbd9d);}}});}['handleDiscardAction'](_0x362132,_0x4bc223,_0x75b32d){const _0x111dfc=_0x4bc223[0x0]['start']['nodeAfter'],_0x3d0a9c=_0x75b32d['commandParams'][0x0];this['editor']['model']['change'](_0x44fc28=>{for(const _0x489b0f of _0x362132)void 0x0!==_0x3d0a9c[_0x489b0f]?_0x44fc28['setAttribute'](_0x489b0f,_0x3d0a9c[_0x489b0f],_0x111dfc):_0x44fc28['removeAttribute'](_0x489b0f,_0x111dfc);});}['handleSuggestionDescription'](_0x1bbfc5){if(_0x1bbfc5['data'])switch(_0x1bbfc5['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'](_0x2237d0,_0x1fa082){const _0x4487df=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x452edd of _0x4487df['getSuggestions']({'skipNotAttached':!0x0})){const _0x5ecf33=_0x452edd['getContainedElement']();if(_0x452edd['subType']===_0x1fa082&&_0x5ecf33===_0x2237d0)return _0x452edd;}return null;}}const m='$elementName';class p extends _0x5b23ad{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xf6c12e,_0x5883c9,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(_0x37f7d6){function _0x3ebaed(_0x246e1a){return _0x246e1a['map'](_0x1a443d=>String['fromCharCode'](_0x1a443d))['join']('');}super(_0x37f7d6),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x38826c,_0x2ae047,_0x1627bb,_0x1bfcec)=>{this['_model']['change'](()=>{for(const _0x3b54d0 of[..._0x1bfcec,..._0x1627bb])this['_model']['markers']['has'](_0x3b54d0)&&_0x37f7d6['editing']['reconvertMarker'](_0x3b54d0);});}),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']=_0x37f7d6['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(),_0x37f7d6['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x37f7d6['config']['get']('trackChanges.trackFormatChanges'),_0x37f7d6['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x37f7d6['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x37f7d6,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3ebaed([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3ebaed([0x34,0x30,0x34,0x38,0x31,0x38,0x34,0x36]);}['init'](){const _0x149a36=this['editor'],_0x926aab=(_0x4554c0,_0x13c6aa)=>{if('attribute'!=_0x4554c0)return'ck-suggestion-marker-'+_0x4554c0;const _0x2e1008=_0x13c6aa['split']('|')[0x0];return this['_isBlockAttribute'](_0x2e1008)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x149a36['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x36d5d3=>{const {id:_0x3eaab6,authorId:_0x26bfe3,type:_0x5e8d0c,subType:_0x12eb46}=this['_splitMarkerName'](_0x36d5d3['markerName']),_0x3df09f=['ck-suggestion-marker',_0x926aab(_0x5e8d0c,_0x12eb46)];let _0x1d07e6=0xbb8;return this['activeMarkers']['includes'](_0x36d5d3['markerName'])&&(_0x3df09f['push']('ck-suggestion-marker--active'),_0x1d07e6=0xbc2),'deletion'==_0x5e8d0c&&(_0x1d07e6+=0x5),{'classes':_0x3df09f,'attributes':{'data-suggestion':_0x3eaab6,'data-author-id':_0x26bfe3},'priority':_0x1d07e6};}}),_0x149a36['conversion']['for']('dataDowncast')['add'](_0x4fdd9a=>{_0x4fdd9a['on']('addMarker:suggestion',(_0x5b7ce8,_0x1e937d,_0x50eb15)=>{if(!_0x50eb15['options']['showSuggestionHighlights'])return;const _0x4f671c=_0x1e937d['item'];if(!_0x4f671c)return;const _0x4c90ac=_0x50eb15['mapper']['toViewElement'](_0x4f671c);_0x149a36['model']['schema']['isObject'](_0x4f671c)&&_0x4c90ac&&!_0x4c90ac['getCustomProperty']('widget')&&_0x4c90ac['is']('containerElement')&&_0x40414d(_0x4c90ac,_0x50eb15['writer']);},{'priority':'high'});}),_0x149a36['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5dcf31,_0x349bc7)=>{if(!_0x349bc7['options']['showSuggestionHighlights'])return null;const {type:_0x47ee7b,subType:_0x39e31c}=this['_splitMarkerName'](_0x5dcf31['markerName']);return{'classes':['ck-suggestion-marker',_0x926aab(_0x47ee7b,_0x39e31c)],'priority':0xbb8};}});const _0x20d548=({showActiveMarkers:_0x4e083f=!0x0,isAttributeSuggestion:_0x50e326=!0x1}={})=>(_0x301b4d,_0x188281,_0x2c36f5)=>{if(!_0x188281['item'])return;const {id:_0x43fce2,authorId:_0xbbac04}=this['_splitMarkerName'](_0x188281['markerName']);if(_0x50e326){const _0x453c6b=this['_suggestions']['get'](_0x43fce2),_0x450267=this['_getAttributeKey'](_0x453c6b);if(!this['_isBlockAttribute'](_0x450267))return;}if(_0x188281['item']['is']('selection'))return void _0x2c36f5['consumable']['consume'](_0x188281['item'],_0x301b4d['name']);const _0x13287e=_0x2c36f5['mapper']['toViewElement'](_0x188281['item']);if(_0x188281['item']['is']('element')&&_0x149a36['model']['schema']['isBlock'](_0x188281['item'])&&!_0x13287e['getCustomProperty']('addHighlight')){_0x2c36f5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x13287e),_0x2c36f5['writer']['setAttribute']('data-suggestion',_0x43fce2,_0x13287e),_0x2c36f5['writer']['setAttribute']('data-author-id',_0xbbac04,_0x13287e),_0x2c36f5['mapper']['bindElementToMarker'](_0x13287e,_0x188281['markerName']),_0x4e083f&&(this['activeMarkers']['includes'](_0x188281['markerName'])?_0x2c36f5['writer']['addClass']('ck-suggestion-marker--active',_0x13287e):_0x2c36f5['writer']['removeClass']('ck-suggestion-marker--active',_0x13287e));for(const _0x28b795 of _0x149a36['model']['createRangeIn'](_0x188281['item'])['getItems']())_0x2c36f5['consumable']['consume'](_0x28b795,_0x301b4d['name']);_0x2c36f5['consumable']['consume'](_0x188281['item'],_0x301b4d['name']);}};_0x149a36['conversion']['for']('dataDowncast')['add'](_0x106dc9=>{_0x106dc9['on']('addMarker:suggestion:formatBlock',(_0x19a3a2,_0x53e400,_0x588e43)=>{_0x588e43['options']['showSuggestionHighlights']&&_0x20d548({'showActiveMarkers':!0x1})(_0x19a3a2,_0x53e400,_0x588e43);},{'priority':'highest'});}),_0x149a36['conversion']['for']('dataDowncast')['add'](_0x121b6f=>{_0x121b6f['on']('addMarker:suggestion:attribute',(_0x3524ed,_0xdb3d8d,_0xf1ed18)=>{_0xf1ed18['options']['showSuggestionHighlights']&&_0x20d548({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3524ed,_0xdb3d8d,_0xf1ed18);},{'priority':'highest'});}),_0x149a36['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x480b3e,_0x1138bc)=>_0x1138bc['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x480b3e['substr'](0xb)}}),_0x149a36['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x9235c9,{writer:_0x8c8ef7})=>{let _0x3aee0b='suggestion:'+_0x9235c9['getAttribute']('suggestion-type')+':'+_0x9235c9['getAttribute']('id');return _0x9235c9['getAttribute']('marker-count')&&(_0x3aee0b+=':'+_0x9235c9['getAttribute']('marker-count')),_0x8c8ef7['createElement']('$marker',{'data-name':_0x3aee0b});}}),_0x149a36['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x149a36['conversion']['for']('editingDowncast')['add'](_0x3867bc=>{_0x3867bc['on']('addMarker:suggestion:formatBlock',_0x20d548(),{'priority':'high'});}),_0x149a36['conversion']['for']('editingDowncast')['add'](_0x50d4a5=>{_0x50d4a5['on']('addMarker:suggestion:attribute',_0x20d548({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x149a36['conversion']['for']('editingDowncast')['add'](_0x18e6f3=>{_0x18e6f3['on']('removeMarker:suggestion:formatBlock',(_0x54fe68,_0x610cc2,_0x598878)=>{const _0x57e707=_0x598878['mapper']['markerNameToElements'](_0x610cc2['markerName']);if(_0x57e707){for(const _0x40a688 of _0x57e707)_0x40a688['getCustomProperty']('addHighlight')||(_0x598878['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x40a688),_0x598878['writer']['removeAttribute']('data-suggestion',_0x40a688),_0x598878['writer']['removeAttribute']('data-author-id',_0x40a688),_0x598878['mapper']['unbindElementFromMarkerName'](_0x40a688,_0x610cc2['markerName']));}},{'priority':'high'});}),_0x149a36['conversion']['for']('editingDowncast')['add'](_0x2e1341=>{_0x2e1341['on']('removeMarker:suggestion:attribute',(_0x13f837,_0x5e1dbb,_0x27b039)=>{const _0x2e247a=_0x27b039['mapper']['markerNameToElements'](_0x5e1dbb['markerName']);if(!_0x2e247a)return;const {id:_0x513437}=this['_splitMarkerName'](_0x5e1dbb['markerName']),_0x36857e=this['_suggestions']['get'](_0x513437),_0x5aedbb=this['_getAttributeKey'](_0x36857e);if(this['_isBlockAttribute'](_0x5aedbb)){for(const _0x28be05 of _0x2e247a)_0x28be05['getCustomProperty']('addHighlight')||(_0x27b039['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x28be05),_0x27b039['writer']['removeAttribute']('data-suggestion',_0x28be05),_0x27b039['writer']['removeAttribute']('data-author-id',_0x28be05),_0x27b039['mapper']['unbindElementFromMarkerName'](_0x28be05,_0x5e1dbb['markerName']));}},{'priority':'high'});}),_0x149a36['model']['document']['registerPostFixer'](_0xe4705e=>{let _0x5c6e9c=!0x1;const _0x59e76c=Array['from'](_0x149a36['model']['document']['differ']['getChangedMarkers']()),_0x417b3d=new Set();for(const {name:_0x251a72,data:_0x1f43f7}of _0x59e76c){const {group:_0x168427,type:_0x28535d,subType:_0x11b454,id:_0x3b223b}=this['_splitMarkerName'](_0x251a72);if('suggestion'!==_0x168427)continue;const _0x75d8da=this['_suggestions']['get'](_0x3b223b);if(null!=_0x1f43f7['newRange']){'formatInline'==_0x28535d&&(_0x5c6e9c=_0x5c6e9c||Ut(_0x1f43f7['newRange'],_0x251a72,_0xe4705e,_0x149a36['model']['schema']));const _0x463c5c='attribute'==_0x28535d&&this['_isBlockAttribute'](_0x11b454['split']('|')[0x0]);if(_0x1f43f7['newRange']['isCollapsed']||'$graveyard'==_0x1f43f7['newRange']['root']['rootName']||'formatBlock'==_0x28535d&&!Ft(_0x1f43f7['newRange'])||_0x463c5c&&!Ft(_0x1f43f7['newRange'])||'deletion'==_0x28535d&&!(!Vt(_0x412f43=_0x1f43f7['newRange'])&&!function(_0x137ead){return _0x137ead['start']['parent']==_0x137ead['end']['nodeBefore']&&_0x137ead['start']['isAtEnd'];}(_0x412f43)))_0xe4705e['removeMarker'](_0x251a72),_0x5c6e9c=!0x0;else{if(!_0x75d8da||!_0x75d8da['isInContent'])continue;if(_0x1f43f7['newRange']&&_0x1f43f7['oldRange']&&_0x1f43f7['newRange']['isEqual'](_0x1f43f7['oldRange']))continue;_0x417b3d['add'](_0x75d8da);}}}var _0x412f43;return _0x417b3d['size']>0x0&&(_0x5c6e9c=!!this['_joinWithAdjacentSuggestions'](_0x417b3d)||_0x5c6e9c),_0x5c6e9c;}),_0x149a36['model']['document']['registerPostFixer'](_0x38cb16=>{let _0x329f1=!0x1;for(const _0x5ad660 of _0x149a36['model']['document']['differ']['getChanges']())if('insert'==_0x5ad660['type'])for(const _0x924824 of this['_suggestions']['values']()){if(_0x924824['isMultiRange']||!_0x924824['isInContent'])continue;const _0x2299f1='formatBlock'==_0x924824['type'],_0x504eba=this['_getAttributeKey'](_0x924824),_0x2ad064=_0x504eba&&this['_isBlockAttribute'](_0x504eba);if(!_0x2299f1&&!_0x2ad064)continue;const _0x20b217=_0x924824['getFirstRange']();if(_0x20b217['start']['parent']!=_0x20b217['end']['parent']&&!_0x20b217['end']['isAtEnd']){const _0xe9c387=_0x149a36['model']['createPositionAt'](_0x20b217['start']['nodeAfter'],'end'),_0x587b2a=_0x149a36['model']['createRange'](_0x20b217['start'],_0xe9c387);_0x38cb16['updateMarker'](_0x924824['getFirstMarker'](),{'range':_0x587b2a}),_0x329f1=!0x0;}}return _0x329f1;}),_0x149a36['model']['document']['registerPostFixer'](_0x5a5846=>this['_processAttributeChanges'](_0x5a5846)),_0x149a36['model']['document']['registerPostFixer'](_0x5a9d88=>!_0x5a9d88['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5a9d88)),_0x149a36['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x149a36['model']['document']['on']('change:data',(_0x40d75a,_0x1b35ae)=>{if(!_0x1b35ae['isLocal']||_0x1b35ae['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x20cb63=_0x149a36['model']['document']['differ']['getChanges']();if(0x0==_0x20cb63['length'])return;const _0x4db2eb=[],_0x5157b8=_0x20cb63['filter'](_0xf63575=>'attribute'==_0xf63575['type']),_0x548e9c=_0x20cb63['filter'](_0x128412=>'insert'==_0x128412['type']&&'$text'!=_0x128412['name']);for(const _0x57eb9e of _0x5157b8)this['_isRegisteredAttribute'](_0x57eb9e['attributeKey'])&&_0x4db2eb['push']({'key':_0x57eb9e['attributeKey'],'newValue':_0x57eb9e['attributeNewValue'],'oldValue':_0x57eb9e['attributeOldValue'],'range':Pt(_0x57eb9e['range'],_0x149a36['model'])});for(const _0x261974 of _0x548e9c){if('rename'!=_0x261974['action']&&'refresh'!=_0x261974['action'])continue;const _0x7bd4e3=Lt(_0x261974['position']['nodeAfter'],_0x149a36['model']),_0x5761f4=_0x261974['before'];'rename'==_0x261974['action']&&_0x4db2eb['push']({'key':m,'newValue':_0x261974['name'],'oldValue':_0x5761f4['name'],'range':_0x7bd4e3});for(const [_0xb2aa1,_0x1560e3]of _0x5761f4['attributes']){if(!this['_isRegisteredAttribute'](_0xb2aa1))continue;const _0x2c09de=_0x261974['attributes']['get'](_0xb2aa1);_0x1560e3!==_0x2c09de&&_0x4db2eb['push']({'key':_0xb2aa1,'newValue':_0x2c09de,'oldValue':_0x1560e3,'range':_0x7bd4e3});}for(const [_0x4127f9,_0x4cf122]of _0x261974['attributes'])this['_isRegisteredAttribute'](_0x4127f9)&&(_0x5761f4['attributes']['has'](_0x4127f9)||_0x4db2eb['push']({'key':_0x4127f9,'newValue':_0x4cf122,'oldValue':null,'range':_0x7bd4e3}));}0x0!=_0x4db2eb['length']&&_0x149a36['model']['enqueueChange'](_0x1b35ae,_0x369303=>{const _0x5834ee=_0x8c81a();for(const {range:_0x10feed,key:_0x27f546,oldValue:_0x41d569,newValue:_0x1b8517}of _0x4db2eb)this['markAttributeChange'](_0x10feed,_0x27f546,_0x41d569,_0x1b8517,{'groupId':_0x5834ee});this['_reduceExistingSuggestions'](_0x369303,_0x4db2eb);});},{'priority':'lowest'}),_0x149a36['model']['markers']['on']('update:suggestion',(_0x48b3aa,_0x58adf1,_0x45fcfe)=>{if(null==_0x45fcfe){const {id:_0x6540ba}=this['_splitMarkerName'](_0x58adf1['name']),_0x487e5e=this['_suggestions']['get'](_0x6540ba);_0x487e5e&&_0x487e5e['addMarkerName'](_0x58adf1['name']);}}),_0x149a36['model']['document']['on']('change:data',()=>{const _0x3cd5d7=Array['from'](_0x149a36['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2cd7c8=>'suggestion'===this['_splitMarkerName'](_0x2cd7c8['name'])['group']);if(0x0===_0x3cd5d7['length'])return;_0x3cd5d7['sort']((_0x3879ac,_0x22129d)=>{const _0x508885=_0x3879ac['data']['oldRange'],_0x355904=_0x22129d['data']['oldRange'];return null===_0x508885&&null===_0x355904?0x0:null===_0x508885&&null!==_0x355904?-0x1:null!==_0x508885&&null===_0x355904?0x1:_0x508885['start']['isBefore'](_0x355904['start'])?-0x1:0x1;});const _0x292617=new Set(),_0x4e9df4=new Set();for(const {name:_0x1c3a58,data:_0x30d273}of _0x3cd5d7){const {id:_0x4fca02}=this['_splitMarkerName'](_0x1c3a58);if(null===_0x30d273['oldRange']){const _0x5d860b=this['_handleNewSuggestionMarker'](_0x1c3a58);_0x4e9df4['add'](_0x5d860b);}else{const _0x6d07a8=this['_suggestions']['get'](_0x4fca02);null!==_0x30d273['newRange']||_0x6d07a8['isInContent']?(_0x292617['add'](_0x6d07a8['head']),_0x4e9df4['add'](_0x6d07a8)):this['_removeSuggestion'](_0x6d07a8);}}_0x4e9df4['size']>0x0&&this['_refreshSuggestionsChain'](_0x4e9df4);for(const _0xd91c79 of _0x292617)this['fire']('suggestionChanged',_0xd91c79);}),_0x149a36['model']['on']('applyOperation',(_0x4c2656,_0x3caaf9)=>{const _0x42d15e=_0x3caaf9[0x0];if(!this['_suggestions']['size'])return;if(!_0x42d15e['isDocumentOperation'])return;if(_0x42d15e['batch']['isUndo']||!_0x42d15e['batch']['isLocal'])return;let _0x186cb7,_0x4aefd5;switch(_0x42d15e['type']){case'insert':_0x186cb7=_0x149a36['model']['createPositionAt'](_0x42d15e['position']),_0x4aefd5=_0x186cb7['getShiftedBy'](_0x42d15e['howMany']);break;case'split':_0x186cb7=_0x149a36['model']['createPositionAt'](_0x42d15e['splitPosition']),_0x4aefd5=_0x149a36['model']['createPositionAt'](_0x42d15e['moveTargetPosition']);break;case'move':_0x186cb7=_0x149a36['model']['createPositionAt'](_0x42d15e['targetPosition']),_0x4aefd5=_0x186cb7['getShiftedBy'](_0x42d15e['howMany']);break;default:return;}const _0x4c634d=_0x149a36['model']['createRange'](_0x186cb7,_0x4aefd5);_0x149a36['model']['change'](()=>{for(const {suggestion:_0x556f1a,meta:_0x20c3d5}of this['_findSuggestions'](_0x4c634d)){if(_0x556f1a['isMultiRange'])continue;if('formatInline'==_0x556f1a['type'])continue;const _0x2c703a=this['_getAttributeKey'](_0x556f1a);if(_0x2c703a&&this['_isBlockAttribute'](_0x2c703a)&&'split'!=_0x42d15e['type'])continue;const _0xa6d79b=_0x556f1a['data']&&_0x556f1a['data']['multipleBlocks'];('formatBlock'!=_0x556f1a['type']||'split'==_0x42d15e['type']&&!_0xa6d79b)&&(_0x20c3d5['containsRangeInObject']||'insertion'==_0x556f1a['type']&&_0x20c3d5['isOwn']||_0x556f1a['getFirstRange']()['containsRange'](_0x4c634d)&&this['_breakSuggestionMarker'](_0x556f1a,_0x186cb7,_0x4aefd5));}});},{'priority':'lowest'}),_0x149a36['model']['on']('deleteContent',(_0x21bf9e,_0x4f0b88)=>{const _0x98b5cf=_0x4f0b88[0x0],_0x2e5049=_0x4f0b88[0x1];if(_0x2e5049&&_0x2e5049['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x98b5cf['isCollapsed'])return;const _0x20fd5d=_0x149a36['model']['schema'],{start:_0x21d288,end:_0x287cb4}=_0x98b5cf['getFirstRange'](),_0x11a581=_0x21d288['nodeAfter']&&_0x20fd5d['isLimit'](_0x21d288['nodeAfter'])?null:_0x20fd5d['getNearestSelectionRange'](_0x21d288,'forward'),_0x31388a=_0x287cb4['nodeBefore']&&_0x20fd5d['isLimit'](_0x287cb4['nodeBefore'])?null:_0x20fd5d['getNearestSelectionRange'](_0x287cb4,'backward'),_0x2ed19d=_0x149a36['model']['createRange'](_0x11a581?_0x11a581['start']:_0x21d288,_0x31388a?_0x31388a['end']:_0x287cb4);_0x149a36['model']['change'](_0x41ac2d=>{this['markDeletion'](_0x2ed19d);const _0x246710=_0x149a36['model']['schema']['getNearestSelectionRange'](_0x2ed19d['start']);_0x98b5cf['is']('documentSelection')?_0x41ac2d['setSelection'](_0x246710):_0x98b5cf['setTo'](_0x246710);}),_0x21bf9e['stop']();},{'priority':_0xbd4cf9['normal']+0xa}),_0x149a36['model']['on']('insertContent',(_0x4b014c,_0x3c84b4)=>{const _0x3c19f5=_0x3c84b4[_0x3c84b4['length']-0x1];_0x3c19f5&&_0x3c19f5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x149a36['model']['change'](()=>{let _0x4a3187=_0x149a36['model']['insertContent'](_0x3c84b4[0x0],_0x3c84b4[0x1],_0x3c84b4[0x2],{'forceDefaultExecution':!0x0});if(!_0x4a3187)return;_0x4b014c['return']=_0x4a3187['clone']();const _0x309029=_0x4a3187['end']['nodeBefore'],_0x678538=_0x149a36['model']['schema'];_0x309029&&_0x678538['isBlock'](_0x309029)&&!_0x678538['isObject'](_0x309029)&&(_0x4a3187=_0x149a36['model']['createRange'](_0x4a3187['start'],_0x149a36['model']['createPositionAt'](_0x309029,'end'))),this['markInsertion'](_0x4a3187);}),_0x4b014c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4b9b4d=new x(_0x149a36,this['_suggestions']);_0x149a36['commands']['add']('acceptSuggestion',_0x4b9b4d),this['enableCommand']('acceptSuggestion');const _0x1e0e6e=new R(_0x149a36,this['_suggestions']);_0x149a36['commands']['add']('discardSuggestion',_0x1e0e6e),this['enableCommand']('discardSuggestion'),_0x149a36['commands']['add']('acceptAllSuggestions',new E(_0x149a36,_0x4b9b4d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x149a36['commands']['add']('discardAllSuggestions',new E(_0x149a36,_0x1e0e6e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x149a36['commands']['add']('acceptSelectedSuggestions',new O(_0x149a36,_0x4b9b4d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x149a36['commands']['add']('discardSelectedSuggestions',new O(_0x149a36,_0x1e0e6e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2f08a7=_0x149a36['plugins']['get']('CommentsRepository');this['listenTo'](_0x2f08a7,'addComment',(_0x50af27,{threadId:_0x3b3e8f})=>{const _0x10a312=this['_suggestions']['get'](_0x3b3e8f);_0x10a312&&_0x10a312['commentThread']&&0x1===_0x10a312['commentThread']['length']&&this['_updateSuggestionData'](_0x3b3e8f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2f08a7,'removeComment',(_0x157777,{threadId:_0xbc2e95})=>{const _0xb94dad=this['_suggestions']['get'](_0xbc2e95);_0xb94dad&&_0xb94dad['commentThread']&&!_0xb94dad['commentThread']['length']&&this['_updateSuggestionData'](_0xbc2e95,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x338805){if(this['_adapter'])throw new _0x4ade7a('track-changes-adapter-already-set',this);this['_adapter']=_0x338805;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x213a9f=!0x1,toJSON:_0x13d5c3=!0x1}={}){const _0x2c8cc1=[];for(const _0x3e956a of this['_suggestions']['values']())_0x213a9f&&!_0x3e956a['isInContent']||_0x2c8cc1['push'](_0x3e956a);return _0x13d5c3?_0x2c8cc1['map'](_0x44f4a5=>_0x44f4a5['toJSON']()):_0x2c8cc1;}['getSuggestion'](_0x11014c){const _0x527ed1=this['_suggestions']['get'](_0x11014c);if(!_0x527ed1)throw new _0x4ade7a('track-changes-suggestion-not-found',this);return _0x527ed1;}['hasSuggestion'](_0x3da68b){return this['_suggestions']['has'](_0x3da68b);}['addSuggestionData'](_0xe5e02f){const {authorId:_0x46f054,id:_0x5510e4,attributes:_0x4c79f5}=_0xe5e02f,[_0x2d88ca,_0x34b14e]=_0xe5e02f['type']['split'](':'),_0xbbb11b=this['_suggestions']['get'](_0x5510e4)||this['_createSuggestion'](_0x2d88ca,_0x34b14e,_0x5510e4,_0x46f054,_0x4c79f5);if(this['_addThreadToSuggestion'](_0xbbb11b),this['_checkSuggestionCorrectness'](_0xbbb11b,_0x2d88ca,_0x34b14e||null,_0x46f054),_0xbbb11b['createdAt']=_0xe5e02f['createdAt'],_0xbbb11b['_isDataLoaded']=!0x0,_0x4c79f5&&_0x4c79f5['@external']){const _0x59f8bf=_0x4c79f5['@external'],_0x23ca16=this['_getExternalAuthor'](_0x59f8bf['authorName']);_0xbbb11b['authoredAt']=_0x59f8bf['createdAt'],_0xbbb11b['author']=_0x23ca16,_0xbbb11b['isExternal']=!0x0;}else _0xbbb11b['authoredAt']=_0xe5e02f['createdAt'];switch(_0xe5e02f['data']&&(_0xbbb11b['data']=_0xe5e02f['data']),_0xe5e02f['attributes']&&(_0xbbb11b['attributes']=_0xe5e02f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xbbb11b['_saved']=!0x0),this['_suggestionState']['get'](_0xbbb11b)){case'notReady':this['_suggestionState']['set'](_0xbbb11b,'dataReady');break;case'markerReady':_0xbbb11b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xbbb11b])),this['_refreshSuggestionsChain'](new Set([_0xbbb11b])),this['_suggestionState']['set'](_0xbbb11b,'ready'),this['fire']('suggestionLoaded',_0xbbb11b)):this['_suggestionState']['set'](_0xbbb11b,'removed');}return _0xbbb11b;}['acceptSuggestion'](_0x3c77dd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x29f89e of _0x3c77dd['getAllAdjacentSuggestions']())_0x29f89e['accept']();});});}['discardSuggestion'](_0xea722){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x40518c of _0xea722['getAllAdjacentSuggestions']())_0x40518c['discard']();});});}['enableCommand'](_0x3e4260,_0x92a71){const _0xb3ad2e=this['editor']['commands']['get'](_0x3e4260);if(!_0xb3ad2e)throw new _0x4ade7a('track-changes-command-not-found',this,{'commandName':_0x3e4260});if(this['_enabledCommands']['has'](_0xb3ad2e))throw new _0x4ade7a('track-changes-enable-command-twice',this,{'commandName':_0x3e4260});this['_enabledCommands']['add'](_0xb3ad2e),_0x92a71&&_0xb3ad2e['on']('execute',(_0x5c20ce,_0x5b3fea)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b3fea['length']>0x0&&_0x5b3fea[_0x5b3fea['length']-0x1]&&_0x5b3fea[_0x5b3fea['length']-0x1]['forceDefaultExecution']?_0x5b3fea['pop']():(_0x5c20ce['return']=_0x92a71((..._0x39e295)=>_0xb3ad2e['execute'](..._0x39e295,{'forceDefaultExecution':!0x0}),..._0x5b3fea),_0x5c20ce['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x27a724){let _0x197cb3,_0x29f731;const _0x3f18cf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x197cb3=_0x27a724();}catch(_0x5de7e2){_0x29f731=_0x5de7e2;}return _0x3f18cf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x29f731&&_0x4ade7a['rethrowUnexpectedError'](_0x29f731,this),_0x197cb3;}['markInsertion'](_0x1990bf,_0x20e7e0=null,_0x1c5580={}){if(_0x1990bf['isCollapsed'])return null;const _0x4d6960=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4764a3,meta:_0x3054b2}of this['_findSuggestions'](_0x1990bf,'insertion'))if(_0x3054b2['isOwn']){if(!_0x3054b2['isNextTo']){if(_0x3054b2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4764a3,_0x1c5580))continue;return _0x4764a3;}if(qt(_0x4764a3,_0x1c5580))return _0x4764a3;this['_breakSuggestionMarker'](_0x4764a3,_0x1990bf['start'],_0x1990bf['end']);break;}if(_0x20e7e0==_0x4764a3['subType']&&qt(_0x4764a3,_0x1c5580)){const _0x259229=_0x4764a3['getFirstRange']();return _0x259229['start']['isEqual'](_0x1990bf['end'])?this['_setSuggestionRange'](_0x4764a3,this['_model']['createRange'](_0x1990bf['start'],_0x259229['end'])):this['_setSuggestionRange'](_0x4764a3,this['_model']['createRange'](_0x259229['start'],_0x1990bf['end'])),_0x4764a3;}}const _0x5e268f=_0x8c81a(),_0x176e47=_0x4d6960['id'],_0x5845d9=_0x20e7e0?'insertion:'+_0x20e7e0:'insertion',_0x36ce2a=this['_setSuggestionData']({'id':_0x5e268f,'type':_0x5845d9,'createdAt':new Date(),'authorId':_0x176e47,'attributes':_0x1c5580});return this['_addSuggestionMarker'](_0x5845d9,_0x5e268f,_0x176e47,_0x1990bf),_0x36ce2a;}['markMultiRangeInsertion'](_0x10444b,_0x5e1b49='multi',_0x2ff624={}){const _0x1529dd=this['editor']['plugins']['get']('Users')['me'],_0xdddccb=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5e1b49,'join');for(const _0x1ba6b9 of this['getSuggestions']())if(_0x1ba6b9['author']['id']==_0x1529dd['id']&&'insertion'==_0x1ba6b9['type']&&_0x1ba6b9['subType']==_0x5e1b49&&qt(_0x1ba6b9,_0x2ff624)&&(_0xdddccb(_0x1ba6b9['getRanges'](),_0x10444b)||_0xdddccb(_0x10444b,_0x1ba6b9['getRanges']()))){for(const _0x3d89c7 of _0x10444b)_0x1ba6b9['addRange'](_0x3d89c7);return _0x1ba6b9;}for(const {suggestion:_0xfbfbd3,meta:_0x47376b}of this['_findSuggestions'](_0x10444b,'insertion')){if(!_0x47376b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x47376b['containsRangeInObject'])continue;if(!qt(_0xfbfbd3,_0x2ff624))continue;let _0xd608d1=!0x0;for(const _0x8856f7 of _0xfbfbd3['getRanges']())for(const _0x2fb7b8 of _0x10444b)if(!_0x8856f7['containsRange'](_0x2fb7b8)){_0xd608d1=!0x1;break;}if(_0xd608d1)return _0xfbfbd3;}const _0xba4867=_0x8c81a(),_0x536122=_0x1529dd['id'],_0x24ee6d='insertion:'+_0x5e1b49,_0xdc0d0e=this['_setSuggestionData']({'id':_0xba4867,'type':_0x24ee6d,'createdAt':new Date(),'authorId':_0x536122,'attributes':_0x2ff624});for(const _0x4ecc4f of _0x10444b)this['_addSuggestionMarker'](_0x24ee6d,_0xba4867,_0x536122,_0x4ecc4f,u['getMultiRangeId']());return _0xdc0d0e;}['markInlineFormat'](_0x2f68b7,_0x407adc,_0x43736e=null,_0x31bc92={}){if(_0x43736e=_0x43736e||Gt(_0x407adc),_0x2f68b7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1e27c6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x43736e,'accept');return this['forceDefaultExecution'](()=>_0x1e27c6([_0x2f68b7],_0x407adc,_0x31bc92)),null;}const _0x188f7e=this['editor']['plugins']['get']('Users')['me'],_0x6c943e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2ab6ff,meta:_0x599068}of this['_findSuggestions'](_0x2f68b7,'insertion'))_0x599068['isOwn']&&!_0x599068['isInsideObject']&&_0x6c943e['push'](..._0x2ab6ff['getRanges']());}const _0x5e9bf1=function(_0x2ef835,_0x9c2e75){const _0x442a50=[];for(const _0x30e0fe of _0x9c2e75){const _0x3846ee=_0x2ef835['getIntersection'](_0x30e0fe);_0x3846ee&&_0x442a50['push'](_0x3846ee);}return _0x442a50;}(_0x2f68b7,_0x6c943e),_0x1c40b3=function(_0x29888d,_0x3c10f9){const _0x3759b6=[_0x29888d];for(const _0x1f2b92 of _0x3c10f9){let _0x13be75=0x0;for(;_0x13be75<_0x3759b6['length'];){const _0x1030e8=_0x3759b6[_0x13be75]['getDifference'](_0x1f2b92);_0x3759b6['splice'](_0x13be75,0x1,..._0x1030e8),_0x13be75+=_0x1030e8['length'];}}return _0x3759b6;}(_0x2f68b7,_0x6c943e);_0x5e9bf1['length']&&this['_model']['change'](()=>{for(const _0x17b691 of _0x5e9bf1){const _0x56e1c2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x43736e,'accept');this['forceDefaultExecution'](()=>_0x56e1c2([_0x17b691],_0x407adc,_0x31bc92));}});for(const _0x394cd1 of _0x1c40b3){let _0x23cca4=null,_0x1c9164=_0x394cd1['start'],_0x4f5434=_0x394cd1['end'];for(const {suggestion:_0x33ae00,meta:_0x435860}of this['_findSuggestions'](_0x394cd1,'formatInline')){if(!_0x435860['isOwn'])continue;if(_0x33ae00['subType']!=_0x43736e)continue;if(!qt(_0x33ae00,_0x31bc92))continue;const _0x31bb65=_0x33ae00['getFirstRange']();if(_0x31bb65['containsRange'](_0x394cd1,!0x0))return null;_0x1c9164=_0x1c9164['isBefore'](_0x31bb65['start'])?_0x1c9164:_0x31bb65['start'],_0x4f5434=_0x4f5434['isAfter'](_0x31bb65['end'])?_0x4f5434:_0x31bb65['end'],_0x23cca4?_0x31bb65['start']['isBefore'](_0x23cca4['getFirstRange']()['start'])?(_0x23cca4['removeMarkers'](),_0x23cca4=_0x33ae00):_0x33ae00['removeMarkers']():_0x23cca4=_0x33ae00;}const _0x59cc88=this['_model']['createRange'](_0x1c9164,_0x4f5434);if(_0x23cca4)this['_setSuggestionRange'](_0x23cca4,_0x59cc88);else{const _0xafaba6=_0x8c81a(),_0xbad099=_0x188f7e['id'];this['_setSuggestionData']({'id':_0xafaba6,'type':'formatInline:'+_0x43736e,'data':_0x407adc,'createdAt':new Date(),'authorId':_0xbad099,'attributes':_0x31bc92}),this['_addSuggestionMarker']('formatInline:'+_0x43736e,_0xafaba6,_0xbad099,_0x59cc88);}}return null;}['markBlockFormat'](_0x23f299,_0xecb860,_0xab98a1=[],_0x31862d=null,_0x1a3562={}){_0xecb860['formatGroupId']||(_0xecb860['formatGroupId']=_0xecb860['commandName']),_0xecb860['multipleBlocks']=_0x23f299['is']('range'),_0x31862d=_0x31862d||Gt(_0xecb860);const _0x5bd6bc=_0xab98a1['map'](_0xa2b43a=>Lt(_0xa2b43a,this['_model'])),_0x344dd3=_0x23f299['is']('range')?_0x23f299:Lt(_0x23f299,this['_model']);if('never'===this['_trackFormatChanges']){const _0x47f89d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31862d,'accept');return this['forceDefaultExecution'](()=>_0x47f89d([_0x344dd3],_0xecb860,_0x1a3562)),null;}_0x5bd6bc['push'](_0x344dd3);let _0x366416=!0x0;for(const _0x4d06a0 of _0x5bd6bc)if(!this['_rangeIsInLocalUserInsertion'](_0x4d06a0)){_0x366416=!0x1;break;}if(_0x366416&&'always'!==this['_trackFormatChanges']){const _0x529a53=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31862d,'accept');return this['forceDefaultExecution'](()=>_0x529a53([_0x344dd3],_0xecb860,_0x1a3562)),null;}let _0x5c5e45=null,_0x4060b9=_0x344dd3['start'],_0x405783=_0x344dd3['end'];for(const {suggestion:_0x39d49c,meta:_0x3f3fa8}of this['_findSuggestions'](_0x344dd3,'formatBlock')){if(!_0x3f3fa8['isOwn'])continue;if(_0x3f3fa8['isNextTo']||_0x3f3fa8['containsRangeInObject']||_0x3f3fa8['isInsideObject'])continue;if(_0x39d49c['data']['formatGroupId']!=_0xecb860['formatGroupId'])continue;if(!qt(_0x39d49c,_0x1a3562))continue;const _0x512fd5=_0x39d49c['getFirstRange']();if(_0x39d49c['subType']==_0x31862d){if(_0x512fd5['containsRange'](_0x344dd3,!0x0))return null;_0x4060b9=_0x4060b9['isBefore'](_0x512fd5['start'])?_0x4060b9:_0x512fd5['start'],_0x405783=_0x405783['isAfter'](_0x512fd5['end'])?_0x405783:_0x512fd5['end'],_0x5c5e45?_0x512fd5['start']['isBefore'](_0x5c5e45['getFirstRange']()['start'])?(_0x5c5e45['removeMarkers'](),_0x5c5e45=_0x39d49c):_0x39d49c['removeMarkers']():_0x5c5e45=_0x39d49c;}else{const _0x23ff9e=_0x344dd3['getIntersection'](_0x512fd5);this['_cutOutSuggestionMarker'](_0x39d49c,_0x23ff9e);}}const _0x21fc2d=this['editor']['plugins']['get']('Users')['me'],_0x37f9e3=_0x8c81a(),_0x56499b=_0x21fc2d['id'];if(_0x5c5e45)return this['_setSuggestionRange'](_0x5c5e45,this['_model']['createRange'](_0x4060b9,_0x405783)),_0x5c5e45;{const _0x28648e=this['_setSuggestionData']({'id':_0x37f9e3,'type':'formatBlock:'+_0x31862d,'data':_0xecb860,'createdAt':new Date(),'authorId':_0x56499b,'attributes':_0x1a3562});return this['_addSuggestionMarker']('formatBlock:'+_0x31862d,_0x37f9e3,_0x56499b,this['_model']['createRange'](_0x4060b9,_0x405783)),_0x28648e;}}['markMultiRangeBlockFormat'](_0x5e8fb3,_0x47a0d2,_0x1b0d0d=[],_0x1c5941=null,_0x2e0b66={}){_0x47a0d2['formatGroupId']||(_0x47a0d2['formatGroupId']=_0x47a0d2['commandName']);const _0x5b58a5=_0x5e8fb3[0x0];_0x47a0d2['multipleBlocks']=_0x5b58a5['is']('range'),_0x1c5941=_0x1c5941||Gt(_0x47a0d2);const _0x5b861=_0x1b0d0d['map'](_0x4c6ea8=>Lt(_0x4c6ea8,this['_model'])),_0x13ec2f=_0x5b58a5['is']('range')?_0x5e8fb3:_0x5e8fb3['map'](_0x5e7b52=>Lt(_0x5e7b52,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1ba50a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c5941,'accept');return this['forceDefaultExecution'](()=>_0x1ba50a(_0x13ec2f,_0x47a0d2,_0x2e0b66)),null;}_0x5b861['push'](..._0x13ec2f);let _0x18fb4d=!0x0;for(const _0x51462e of _0x5b861)if(!this['_rangeIsInLocalUserInsertion'](_0x51462e)){_0x18fb4d=!0x1;break;}if(_0x18fb4d&&'always'!==this['_trackFormatChanges']){const _0x5219d1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c5941,'accept');return this['forceDefaultExecution'](()=>_0x5219d1(_0x13ec2f,_0x47a0d2,_0x2e0b66)),null;}const _0x1a91d5=this['editor']['plugins']['get']('Users')['me'];for(const _0x56774b of this['getSuggestions']()){if(_0x56774b['author']['id']!=_0x1a91d5['id'])continue;if('formatBlock'!=_0x56774b['type']||_0x56774b['data']['formatGroupId']!=_0x47a0d2['formatGroupId'])continue;if(!qt(_0x56774b,_0x2e0b66))continue;const _0x40b946=_0x56774b['subType']==_0x1c5941;for(let _0x4ad61a=0x0;_0x4ad61a<_0x13ec2f['length'];_0x4ad61a++){const _0x8c300b=_0x13ec2f[_0x4ad61a];for(const _0x2b0bec of _0x56774b['getMarkers']()){const _0x57c4e7=_0x2b0bec['getRange']();if(_0x8c300b['isEqual'](_0x57c4e7)){_0x40b946?(_0x13ec2f['splice'](_0x4ad61a,0x1),_0x4ad61a--):_0x56774b['removeMarker'](_0x2b0bec['name']);break;}}}}if(0x0==_0x13ec2f['length'])return null;const _0xbda2e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c5941,'join');for(const _0x418c57 of this['getSuggestions']())if(_0x418c57['author']['id']==_0x1a91d5['id']&&'formatBlock'==_0x418c57['type']&&_0x418c57['data']['formatGroupId']==_0x47a0d2['formatGroupId']&&_0x418c57['subType']==_0x1c5941&&qt(_0x418c57,_0x2e0b66)&&(_0xbda2e0(_0x418c57['getRanges'](),_0x13ec2f)||_0xbda2e0(_0x13ec2f,_0x418c57['getRanges']()))){for(const _0x151f10 of _0x13ec2f)_0x418c57['addRange'](_0x151f10);return _0x418c57;}const _0x2cf761=_0x8c81a(),_0x2b713a=_0x1a91d5['id'],_0x21d71f='formatBlock:'+_0x1c5941,_0x25cf79=this['_setSuggestionData']({'id':_0x2cf761,'type':_0x21d71f,'data':_0x47a0d2,'createdAt':new Date(),'authorId':_0x2b713a,'attributes':_0x2e0b66});for(const _0x401080 of _0x13ec2f)this['_addSuggestionMarker'](_0x21d71f,_0x2cf761,_0x2b713a,_0x401080,u['getMultiRangeId']());return _0x25cf79;}['markDeletion'](_0x376928,_0xbd2437=null,_0x425765={}){if(_0x376928['isCollapsed'])return null;const _0x3f8250=this['editor']['plugins']['get']('Users')['me'],_0x58863c=new _0x92cefc(_0x376928['start'],_0x376928['end']);for(const {suggestion:_0x33b236,meta:_0x1dd0b4}of this['_findSuggestions'](_0x58863c,'insertion'))if(_0x1dd0b4['isOwn']&&!_0x1dd0b4['isNextTo']){if(_0x33b236['isMultiRange']){const _0x3887f0=_0x33b236['getRanges']()['filter'](_0xd281b=>'$graveyard'!=_0xd281b['root']['rootName']);_0x3887f0['every'](_0x28cc08=>_0x58863c['containsRange'](_0x28cc08,!0x0))&&_0x33b236['discard']();if(_0x3887f0['some'](_0x246e98=>_0x246e98['containsRange'](_0x58863c,!0x0))){const _0xa23f13=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbd2437,'accept');return this['forceDefaultExecution'](()=>_0xa23f13([_0x58863c],null,_0x425765)),null;}}else{const _0x5c0be0=_0x58863c['getIntersection'](_0x33b236['getFirstRange']());null!==_0x5c0be0&&_0x33b236['_onDiscard']([_0x5c0be0],null,_0x425765);}}if(_0x58863c['detach'](),_0x58863c['isCollapsed']||'$graveyard'==_0x58863c['root']['rootName'])return null;let _0x2b6c82=null,_0x3ba4b7=_0x58863c['start'],_0x2581a1=_0x58863c['end'];const _0x26980d=this['_findSuggestions'](_0x58863c,'deletion');for(const {suggestion:_0x18ee9c,meta:_0x4ac1b1}of _0x26980d){const _0x599324=this['_model']['createRange'](_0x3ba4b7,_0x2581a1);if(_0x4ac1b1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4ac1b1['containsRangeInObject']&&!_0x4ac1b1['isInsideObject'])){if(_0x18ee9c['isMultiRange']){if(!qt(_0x18ee9c,_0x425765))continue;let _0x118c91=!0x0;for(const _0x188ca0 of _0x18ee9c['getRanges']()){if(_0x188ca0['containsRange'](_0x599324,!0x0))return _0x18ee9c;_0x599324['containsRange'](_0x188ca0)||(_0x118c91=!0x1);}_0x118c91&&_0x18ee9c['discard']();}else{const _0x594008=_0x18ee9c['getFirstRange']();if(_0x594008['containsRange'](_0x599324,!0x0))return _0x18ee9c;if(!qt(_0x18ee9c,_0x425765)){_0x599324['containsRange'](_0x594008)?_0x18ee9c['removeMarkers']():_0x594008['containsPosition'](_0x3ba4b7)?_0x3ba4b7=_0x594008['end']:_0x594008['containsPosition'](_0x2581a1)&&(_0x2581a1=_0x594008['start']);continue;}_0x3ba4b7=_0x3ba4b7['isBefore'](_0x594008['start'])?_0x3ba4b7:_0x594008['start'],_0x2581a1=_0x2581a1['isAfter'](_0x594008['end'])?_0x2581a1:_0x594008['end'],_0x425765=Object['assign']({},_0x18ee9c['attributes']),_0x2b6c82?_0x594008['start']['isBefore'](_0x2b6c82['getFirstRange']()['start'])?(_0x2b6c82['removeMarkers'](),_0x2b6c82=_0x18ee9c):_0x18ee9c['removeMarkers']():_0x2b6c82=_0x18ee9c;}}}if(_0x2b6c82)return this['_setSuggestionRange'](_0x2b6c82,this['_model']['createRange'](_0x3ba4b7,_0x2581a1)),_0x2b6c82;{const _0x18b3aa=_0x8c81a(),_0x10b95b=this['_model']['createRange'](_0x3ba4b7,_0x2581a1),_0x315423=_0x3f8250['id'],_0x181cf3=_0xbd2437?'deletion:'+_0xbd2437:'deletion',_0x5f22dd=this['_setSuggestionData']({'id':_0x18b3aa,'type':_0x181cf3,'createdAt':new Date(),'authorId':_0x315423,'attributes':_0x425765});return this['_addSuggestionMarker'](_0x181cf3,_0x18b3aa,_0x315423,_0x10b95b),_0x5f22dd;}}['markMultiRangeDeletion'](_0x17ed47,_0x706cb1='multi',_0x3b6702={}){const _0x129fbf=this['editor']['plugins']['get']('Users')['me'],_0x55c3f0=_0x17ed47['map'](_0x4ad6bc=>new _0x92cefc(_0x4ad6bc['start'],_0x4ad6bc['end'])),_0x1b1c63=new Set();for(const {suggestion:_0x465289,meta:_0x1a6d77}of this['_findSuggestions'](_0x55c3f0,'insertion'))_0x1a6d77['isOwn']&&!_0x1a6d77['isNextTo']&&_0x1b1c63['add'](_0x465289);for(const _0x227d86 of _0x1b1c63)if(_0x227d86['isMultiRange']){const _0x316fe0=_0x227d86['getRanges']();(!_0x227d86['attributes']||!_0x227d86['attributes']['skipNestingCheck'])&&(_0x316fe0['every'](_0x590cf=>_0x55c3f0['some'](_0x53c96e=>_0x53c96e['containsRange'](_0x590cf,!0x0)))&&_0x227d86['discard']());if(_0x55c3f0['every'](_0x3966d6=>_0x316fe0['some'](_0x299455=>_0x299455['containsRange'](_0x3966d6,!0x0)))){const _0xff2983=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x706cb1,'accept');return this['forceDefaultExecution'](()=>_0xff2983(_0x17ed47,null,_0x3b6702)),null;}}else{const _0x180cd7=_0x227d86['getFirstRange']();_0x55c3f0['some'](_0x179f2c=>_0x179f2c['containsRange'](_0x180cd7,!0x0))&&_0x227d86['discard']();if(_0x55c3f0['every'](_0x37e1c8=>_0x180cd7['containsRange'](_0x37e1c8,!0x0))){const _0x36107c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x706cb1,'accept');return this['forceDefaultExecution'](()=>_0x36107c(_0x55c3f0,null,_0x3b6702)),null;}}const _0x31451=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x706cb1,'join');let _0x330fa3=null;for(const _0x24ea5c of this['getSuggestions']())if(_0x24ea5c['author']['id']==_0x129fbf['id']&&_0x24ea5c['isInContent']&&'deletion'==_0x24ea5c['type']&&_0x24ea5c['subType']==_0x706cb1&&qt(_0x24ea5c,_0x3b6702)&&(_0x31451(_0x24ea5c['getRanges'](),_0x55c3f0)||_0x31451(_0x55c3f0,_0x24ea5c['getRanges']()))){if(_0x330fa3){if(_0x24ea5c['commentThread']&&_0x24ea5c['commentThread']['length'])continue;for(const _0x3f71e0 of _0x24ea5c['getRanges']())_0x330fa3['isIntersectingWithRange'](_0x3f71e0)||_0x330fa3['addRange'](_0x3f71e0);_0x24ea5c['removeMarkers']();}else{_0x330fa3=_0x24ea5c;for(const _0x3898bc of _0x55c3f0)_0x24ea5c['isIntersectingWithRange'](_0x3898bc)||_0x24ea5c['addRange'](_0x3898bc);}}if(_0x330fa3)return _0x330fa3;_0x1b1c63['clear']();for(const {suggestion:_0x24a335,meta:_0x10d8d9}of this['_findSuggestions'](_0x55c3f0,'deletion'))_0x10d8d9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x10d8d9['containsRangeInObject']&&!_0x10d8d9['isInsideObject'])&&qt(_0x24a335,_0x3b6702)&&_0x1b1c63['add'](_0x24a335);for(const _0x26ec15 of _0x1b1c63){const _0x42884a=_0x26ec15['getRanges']();if(!_0x3b6702||!_0x3b6702['skipNestingCheck']){if(_0x55c3f0['every'](_0x59ea17=>_0x42884a['some'](_0x1e7180=>_0x1e7180['containsRange'](_0x59ea17,!0x0))))return _0x26ec15;}(!_0x26ec15['attributes']||!_0x26ec15['attributes']['skipNestingCheck'])&&(_0x42884a['every'](_0x58fa47=>_0x55c3f0['some'](_0x29586c=>_0x29586c['containsRange'](_0x58fa47,!0x0)))&&_0x26ec15['discard']());}const _0x3d316e=_0x8c81a(),_0x3238e5=_0x129fbf['id'],_0x5aeb0b='deletion:'+_0x706cb1,_0x271c37=this['_setSuggestionData']({'id':_0x3d316e,'type':_0x5aeb0b,'createdAt':new Date(),'authorId':_0x3238e5,'attributes':_0x3b6702});for(const _0x1a246e of _0x55c3f0)_0x1a246e['detach'](),_0x1a246e['isCollapsed']||'$graveyard'==_0x1a246e['root']['rootName']||this['_addSuggestionMarker'](_0x5aeb0b,_0x3d316e,_0x3238e5,_0x1a246e,u['getMultiRangeId']());return _0x271c37;}['markAttributeChange'](_0x3c5a29,_0x4ef420,_0x4ec273,_0x45f194,_0x49ecd7){if(_0x3c5a29['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5e3ecc=this['editor']['plugins']['get']('Users')['me']['id'],_0xae43fa=Array['from'](this['_suggestions']['values']())['filter'](_0x2c4575=>'attribute'==_0x2c4575['type']&&_0x2c4575['data']['key']==_0x4ef420&&_0x2c4575['isIntersectingWithRange'](_0x3c5a29));if('default'===this['_trackFormatChanges']){const _0x4c9179=this['_findSuggestions'](_0x3c5a29,'insertion')['filter'](({meta:_0x2a7a83})=>_0x2a7a83['isOwn']&&!_0x2a7a83['isInsideObject']&&!_0x2a7a83['isNextTo'])['map'](({suggestion:_0x2b181b})=>_0x2b181b);_0xae43fa['unshift'](..._0x4c9179);}const _0x1d7a4d=new Map([[_0x3c5a29,_0x4ec273]]);for(const _0x3d27dd of _0xae43fa){const _0x54fd8e='attribute'==_0x3d27dd['type']?_0x3d27dd['data']['oldValue']:void 0x0,_0x363ccf=_0x3d27dd['getFirstRange'](),_0x2b5b8f=Array['from'](_0x1d7a4d['keys']())['find'](_0x3001e3=>_0x3001e3['isIntersecting'](_0x363ccf));if(!_0x2b5b8f)continue;const _0x941edd=_0x2b5b8f['getDifference'](_0x363ccf);this['_isBlockAttribute'](_0x4ef420)&&'insertion'==_0x3d27dd['type']&&0x0!=_0x941edd['length']||(_0x1d7a4d['delete'](_0x2b5b8f),_0x941edd['forEach'](_0x77bf19=>{_0x1d7a4d['set'](_0x77bf19,_0x4ec273);}),'insertion'!=_0x3d27dd['type']&&_0x54fd8e!=_0x45f194&&_0x1d7a4d['set'](_0x2b5b8f['getIntersection'](_0x363ccf),_0x54fd8e));}const _0x26020d=[];for(const [_0x1b8100,_0x226029]of _0x1d7a4d){const _0x136ce0=_0x8c81a(),_0x35ed36={'key':_0x4ef420,'oldValue':_0x226029,'newValue':_0x45f194};_0x4ef420['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':_0x4ef420});const _0x4b3bc7=('attribute:'+(_0x4ef420+'|'+Gt({'newValue':_0x45f194})))['substring'](0x0,0x3c),_0x55e6d8=this['_setSuggestionData']({'id':_0x136ce0,'type':_0x4b3bc7,'data':_0x35ed36,'createdAt':new Date(),'authorId':_0x5e3ecc,'attributes':_0x49ecd7});_0x26020d['push'](_0x55e6d8),this['_addSuggestionMarker'](_0x4b3bc7,_0x136ce0,_0x5e3ecc,_0x1b8100);}return _0x26020d;}['enableDefaultAttributesIntegration'](_0x103a13){this['enableCommand'](_0x103a13,(_0x2a8363,..._0x202c14)=>{this['_recordAttributeChanges'](()=>{_0x2a8363(..._0x202c14);});});}['registerBlockAttribute'](_0x37ca78){this['_blockAttributeKeys']['add'](_0x37ca78);}['registerInlineAttribute'](_0x356ad4){this['_inlineAttributeKeys']['add'](_0x356ad4);}['_getAttributeKey'](_0x5c88ef){return'attribute'==_0x5c88ef['type']?_0x5c88ef['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x20e483,_0x51e31e){const _0x10720a=_0x20e483['getFirstMarker']();this['_model']['change'](_0x41fd8e=>{_0x41fd8e['updateMarker'](_0x10720a,{'range':_0x51e31e});});}['_addThreadToSuggestion'](_0x371b77){const _0x34299b=_0x371b77['id'],_0x3f1e6e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x34299b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3f1e6e,'threadId':_0x34299b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x93d25e=this['_commentsRepository']['getCommentThread'](_0x34299b);_0x93d25e['unbind']('isRemovable'),_0x93d25e['isRemovable']=!0x1,_0x371b77['commentThread']=_0x93d25e;}['_checkSuggestionCorrectness'](_0xf2bf05,_0x50844d,_0x2f4ca6,_0x5a038e){if(_0xf2bf05['type']!=_0x50844d||_0xf2bf05['subType']!=_0x2f4ca6||_0xf2bf05['creator']['id']!=_0x5a038e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ade7a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x202513,_0x75edc6){const _0x46726b=_0x202513['getFirstRange']();if(_0x75edc6['isEqual'](_0x46726b))_0x202513['removeMarkers']();else{if(_0x46726b['containsRange'](_0x75edc6)){const _0x32b4ec=this['_model']['createPositionAt'](_0x75edc6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x202513,this['_model']['createRange'](_0x46726b['start'],_0x32b4ec));const _0x28dd69=_0x8c81a(),_0x70c459=_0x202513['creator']['id'],_0x39143c=_0x202513['type']+':'+_0x202513['subType'];this['_setSuggestionData']({'id':_0x28dd69,'type':_0x39143c,'createdAt':new Date(),'authorId':_0x70c459,'data':_0x202513['data'],'attributes':_0x202513['attributes']});const _0x49cb43=this['_model']['createPositionAt'](_0x75edc6['end']['parent'],'after'),_0x546416=this['_model']['createRange'](_0x49cb43,_0x46726b['end']);this['_addSuggestionMarker'](_0x39143c,_0x28dd69,_0x70c459,_0x546416);}else{if(_0x46726b['containsPosition'](_0x75edc6['start'])){const _0xb7be72=this['_model']['createPositionAt'](_0x75edc6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x202513,this['_model']['createRange'](_0x46726b['start'],_0xb7be72));}else{const _0x280ca1=this['_model']['createPositionAt'](_0x75edc6['end']['parent'],'after');this['_setSuggestionRange'](_0x202513,this['_model']['createRange'](_0x280ca1,_0x46726b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5095c8){for(const {suggestion:_0x3a4464,meta:_0x2a10b8}of this['_findSuggestions'](_0x5095c8,'insertion')){if(!_0x2a10b8['isOwn'])continue;const _0x72a76c=_0x3a4464['getRanges']();for(const _0x126fd7 of _0x72a76c)if(!_0x5095c8['getDifference'](_0x126fd7)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4026ff){const _0x17342d=this['editor']['plugins']['get']('Users')['getUser'](_0x4026ff);if(!_0x17342d)throw new _0x4ade7a('track-changes-user-not-found',this);return _0x17342d;}['_getExternalAuthor'](_0x5be8e7){const _0x32cfe2=this['editor']['plugins']['get']('Users'),_0x12f2f1=_0x146027('external:'+_0x5be8e7),_0x2f8dbc=_0x32cfe2['getUser'](_0x12f2f1);return _0x2f8dbc||_0x32cfe2['addUser']({'id':_0x12f2f1,'name':_0x5be8e7});}['_createSuggestion'](_0x2e715a,_0x47e261,_0x223589,_0x451378,_0x30a58c){const _0x15754e=this['_getAuthorFromId'](_0x451378),_0x346e0d=this['_suggestionFactory']['buildSuggestion'](_0x2e715a,_0x47e261,_0x223589,_0x15754e,_0x30a58c,_0x540e1d=>{this['_updateSuggestionData'](_0x223589,{'attributes':_0x540e1d});const _0x401180=this['getSuggestion'](_0x223589);this['_joinWithAdjacentSuggestions'](new Set([_0x401180])),this['_refreshSuggestionsChain'](new Set([_0x401180]));});return this['listenTo'](_0x346e0d,'accept',()=>{this['_updateSuggestionData'](_0x223589,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x346e0d,'discard',()=>{this['_updateSuggestionData'](_0x223589,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x223589,_0x346e0d),this['_suggestionState']['set'](_0x346e0d,'notReady'),_0x346e0d;}['_splitMarkerName'](_0x3951d3){const _0x349231=_0x3951d3['split'](':');return{'group':_0x349231[0x0],'type':_0x349231[0x1],'subType':_0x349231['length']>=0x5?_0x349231[0x2]:null,'id':_0x349231['length']<0x5?_0x349231[0x2]:_0x349231[0x3],'authorId':_0x349231['length']<0x5?_0x349231[0x3]:_0x349231[0x4],'markerCount':0x6==_0x349231['length']?_0x349231[0x5]:null};}['_breakSuggestionMarker'](_0x106b31,_0x50f464,_0x5bfe71){const _0xb39335=_0x106b31['getFirstRange'](),_0x2f21b3=_0xb39335['start'],_0x20241b=_0xb39335['end'];this['_setSuggestionRange'](_0x106b31,this['_model']['createRange'](_0x2f21b3,_0x50f464));const _0x5ab4c7=_0x8c81a(),_0x415046=_0x106b31['creator']['id'],_0x3a8d22=_0x106b31['type']+(_0x106b31['subType']?':'+_0x106b31['subType']:'');this['_setSuggestionData']({'id':_0x5ab4c7,'type':_0x3a8d22,'createdAt':new Date(),'authorId':_0x415046,'originalSuggestionId':_0x106b31['id'],'attributes':_0x106b31['attributes'],'data':_0x106b31['data']});const _0x4e18e2=this['_getAttributeKey'](_0x106b31);('formatBlock'==_0x106b31['type']||_0x4e18e2&&this['_isBlockAttribute'](_0x4e18e2))&&(_0x5bfe71=this['_model']['createPositionBefore'](_0x5bfe71['parent'])),this['_addSuggestionMarker'](_0x3a8d22,_0x5ab4c7,_0x415046,this['_model']['createRange'](_0x5bfe71,_0x20241b));}['_findSuggestions'](_0x346ebd,_0x4aa848=null){const _0x30995b=[],_0x322117=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x346ebd)||(_0x346ebd=[_0x346ebd]);for(const _0x5dd4f7 of this['getSuggestions']()){if(!_0x5dd4f7['isInContent'])continue;if(_0x4aa848&&_0x5dd4f7['type']!=_0x4aa848)continue;let _0x33ddd7=!0x1;for(const _0x26b50b of _0x5dd4f7['getRanges']()){for(const _0x2eaa49 of _0x346ebd){const _0x1d2106=_0x2eaa49['start']['isEqual'](_0x26b50b['end'])||_0x2eaa49['end']['isEqual'](_0x26b50b['start']);if(_0x1d2106||_0x2eaa49['getIntersection'](_0x26b50b)){const _0x59751d=_0x2eaa49['containsRange'](_0x26b50b)&&Ot(this['_model']['schema'],_0x26b50b['start'],_0x2eaa49),_0x59f17f=_0x26b50b['containsRange'](_0x2eaa49)&&Ot(this['_model']['schema'],_0x2eaa49['start'],_0x26b50b);_0x30995b['push']({'suggestion':_0x5dd4f7,'meta':{'isOwn':_0x322117==_0x5dd4f7['author'],'isNextTo':_0x1d2106,'isInsideObject':_0x59751d,'containsRangeInObject':_0x59f17f}}),_0x33ddd7=!0x0;break;}}if(_0x33ddd7)break;}}return _0x30995b;}['_addSuggestionMarker'](_0x440141,_0x2c097d,_0x17bdec,_0x4da4e5,_0x2fad11){this['_model']['change'](_0x1c796=>{let _0xdc747a='suggestion:'+_0x440141+':'+_0x2c097d+':'+_0x17bdec;_0x2fad11&&(_0xdc747a=_0xdc747a+':'+_0x2fad11),_0x1c796['addMarker'](_0xdc747a,{'range':_0x4da4e5,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x25b08e){const _0x7275a8=_0x25b08e['previous'],_0x2a5ce6=_0x25b08e['next'];_0x25b08e['previous']=null,_0x25b08e['next']=null,null!=_0x7275a8&&_0x7275a8['next']==_0x25b08e&&(_0x7275a8['next']=_0x2a5ce6),null!=_0x2a5ce6&&_0x2a5ce6['previous']==_0x25b08e&&(_0x2a5ce6['previous']=_0x7275a8),'ready'==this['_suggestionState']['get'](_0x25b08e)&&(this['_suggestionState']['set'](_0x25b08e,'removed'),this['fire']('suggestionUnloaded',_0x25b08e,_0x7275a8,_0x2a5ce6));}['_setSuggestionData'](_0x225fb2){const _0x30c60b=_0x225fb2['id'],_0x429c73=this['addSuggestionData'](_0x225fb2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x22f677=this['editor']['plugins']['get']('PendingActions'),_0x1dd564=_0x429c73['hasComments'],_0x19955c=_0x429c73['subType']?_0x429c73['type']+':'+_0x429c73['subType']:_0x429c73['type'],_0x410ee8=this['editor']['locale'],_0x158735=_0x22f677['add'](o(_0x410ee8,'PENDING_ACTION_SUGGESTION')),_0x11b7d8={'id':_0x30c60b,'type':_0x19955c,'hasComments':_0x1dd564,'data':_0x225fb2['data']||null,'originalSuggestionId':_0x225fb2['originalSuggestionId']||null,'attributes':_0x429c73['attributes']};this['_adapter']['addSuggestion'](_0x11b7d8)['then'](_0x4cb312=>{_0x429c73['_saved']=!0x0,_0x22f677['remove'](_0x158735),_0x4cb312&&_0x4cb312['createdAt']&&(this['_suggestions']['get'](_0x30c60b)['createdAt']=_0x4cb312['createdAt']);})['catch'](_0x2f75df=>{throw _0x37616b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x429c73['discard']();}),_0x429c73['stopListening'](),this['_suggestions']['delete'](_0x429c73['id']),this['_suggestionState']['delete'](_0x429c73),_0x2f75df;});}return _0x429c73;}['_isBlockAttribute'](_0x9159ac){return this['_blockAttributeKeys']['has'](_0x9159ac);}['_updateSuggestionData'](_0x1a4793,_0x211e04){const _0x28062e=this['editor']['plugins']['get']('PendingActions'),_0x3a4c16=this['getSuggestion'](_0x1a4793);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3a4c16['_saved']){const _0x8c123e=_0x28062e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1a4793,_0x211e04)['then'](()=>{_0x28062e['remove'](_0x8c123e);});}else _0x3a4c16['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1a4793,_0x211e04);});}}['_getSuggestionData'](_0x4fec8f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ade7a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4fec8f);}['_handleNewSuggestionMarker'](_0x225383){const {id:_0x14e214,type:_0x33a2d1,subType:_0x154b4e,authorId:_0x1b39bf}=this['_splitMarkerName'](_0x225383),_0x79778f=this['_suggestions']['get'](_0x14e214)||this['_createSuggestion'](_0x33a2d1,_0x154b4e,_0x14e214,_0x1b39bf,{});switch(this['_checkSuggestionCorrectness'](_0x79778f,_0x33a2d1,_0x154b4e,_0x1b39bf),this['_suggestionState']['get'](_0x79778f)){case'notReady':this['_getSuggestionData'](_0x14e214)['then'](_0x117e59=>{let _0x22f3b0=Promise['resolve']();_0x117e59['hasComments']&&(_0x22f3b0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x14e214})),_0x22f3b0['then'](()=>{this['addSuggestionData'](_0x117e59)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x79778f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x14e214,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x79778f,'ready'),this['fire']('suggestionLoaded',_0x79778f);break;case'ready':this['fire']('suggestionChanged',_0x79778f);}return _0x79778f['addMarkerName'](_0x225383),_0x79778f;}['_refreshSuggestionsChain'](_0x249bb8){const _0x2b0494=Array['from'](_0x249bb8),_0x1b6f39=_0x2b0494['filter'](_0xe6dd94=>'attribute'==_0xe6dd94['type']);this['_refreshAttributeSuggestionsChain'](_0x1b6f39);const _0x149c7b=_0x2b0494['filter'](_0x1bac04=>!_0x1bac04['isMultiRange']&&'attribute'!=_0x1bac04['type']),_0xee95be=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5211ba=>!_0x5211ba['isMultiRange']&&'attribute'!=_0x5211ba['type']),_0x35805c=_0xee95be['filter'](_0x41fd16=>!_0x249bb8['has'](_0x41fd16)),_0x9c6df3=new Map(_0xee95be['map'](_0x768c04=>[_0x768c04,this['_suggestionFactory']['getSuggestionCallback'](_0x768c04['type'],_0x768c04['subType'],'chain')])),_0x818d7e=new Map(_0xee95be['map'](_0x4c77d5=>[_0x4c77d5,_0x4c77d5['getFirstRange']()])),_0x180a65=new Set(),_0x850537=new Set();for(let _0x105f2f=0x0;_0x105f2f<_0x149c7b['length'];_0x105f2f++)_0x284094(_0x149c7b[_0x105f2f],_0x149c7b,_0x105f2f+0x1);for(let _0x42e60f=0x0;_0x42e60f<_0x149c7b['length'];_0x42e60f++)_0x284094(_0x149c7b[_0x42e60f],_0x35805c,0x0);const _0x79ded6=new Set();for(let _0x147c45=0x0;_0x147c45<_0x149c7b['length'];_0x147c45++){const _0x5e795d=_0x149c7b[_0x147c45];!_0x850537['has'](_0x5e795d)&&_0x5e795d['previous']&&(_0x79ded6['add'](_0x5e795d['previous']),_0x5e795d['previous']['next']===_0x5e795d&&(_0x5e795d['previous']['next']=null),_0x5e795d['previous']=null),!_0x180a65['has'](_0x5e795d)&&_0x5e795d['next']&&(_0x79ded6['add'](_0x5e795d['next']),_0x5e795d['next']['previous']===_0x5e795d&&(_0x5e795d['next']['previous']=null),_0x5e795d['next']=null);}function _0x284094(_0x4ca903,_0x2ef8dc,_0x57d205){for(let _0x20375d=_0x57d205;_0x20375d<_0x2ef8dc['length'];_0x20375d++){const _0x167589=_0x4c9525(_0x4ca903,_0x2ef8dc[_0x20375d]);_0x167589&&(_0x167589[0x0]['next']=_0x167589[0x1],_0x167589[0x1]['previous']=_0x167589[0x0],_0x180a65['add'](_0x167589[0x0]),_0x850537['add'](_0x167589[0x1]));}}function _0x4c9525(_0x308d42,_0x1c5a55){if(_0x308d42['author']['id']!==_0x1c5a55['author']['id'])return null;const _0x37d2be=_0x9c6df3['get'](_0x308d42)(_0x308d42,_0x1c5a55,_0x818d7e['get'](_0x308d42),_0x818d7e['get'](_0x1c5a55));if(!_0x37d2be)return null;return _0x9c6df3['get'](_0x1c5a55)(_0x308d42,_0x1c5a55,_0x818d7e['get'](_0x308d42),_0x818d7e['get'](_0x1c5a55))?_0x37d2be[0x1]['commentThread']&&_0x37d2be[0x1]['commentThread']['length']?null:_0x37d2be:null;}_0x79ded6['size']&&this['_refreshSuggestionsChain'](_0x79ded6);}['_refreshAttributeSuggestionsChain'](_0x4562d3){if(0x0==_0x4562d3['length'])return;const _0x5cfd6c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9ad99c=>'attribute'==_0x9ad99c['type']&&_0x9ad99c['_isDataLoaded']),_0x508a11=[],_0x236662=new Map();for(const _0x4a6875 of _0x5cfd6c){const _0x3902c5=_0x146027(_0x4a6875['attributes']);_0x236662['has'](_0x3902c5)||(_0x236662['set'](_0x3902c5,_0x508a11['length']),_0x508a11['push']([]));const _0x1ccc3a=_0x236662['get'](_0x3902c5);_0x508a11[_0x1ccc3a]['push'](_0x4a6875);}!(function(){_0x508a11['sort']((_0x41e772,_0x146633)=>{const _0x5c3e60=_0x41e772[0x0]['createdAt'],_0x26e464=_0x146633[0x0]['createdAt'];return _0x5c3e60==_0x26e464?_0x41e772[0x0]['attributes']['groupId']<_0x146633[0x0]['attributes']['groupId']?-0x1:0x1:_0x5c3e60<_0x26e464?-0x1:0x1;});for(const _0x5e2d10 of _0x508a11)_0x5e2d10['sort']((_0x21e4f8,_0x57a328)=>_0x21e4f8['id']<_0x57a328['id']?-0x1:0x1);}());for(let _0x212946=0x0;_0x212946<_0x508a11['length'];_0x212946++){if(0x0==_0x508a11[_0x212946]['length'])continue;const _0x42eb25=[];for(let _0x15bd7c=_0x212946+0x1;_0x15bd7c<_0x508a11['length'];_0x15bd7c++)0x0!=_0x508a11[_0x15bd7c]['length']&&_0x293c8(_0x508a11[_0x212946],_0x508a11[_0x15bd7c])&&_0x42eb25['push'](_0x15bd7c);for(const _0x131463 of _0x42eb25)_0x508a11[_0x212946]=_0x508a11[_0x212946]['concat'](_0x508a11[_0x131463]),_0x508a11[_0x131463]=[];}for(const _0x4f7147 of _0x508a11)for(let _0x4a125b=0x0;_0x4a125b<_0x4f7147['length'];_0x4a125b++){const _0x52d603=_0x4f7147[_0x4a125b+0x1]||null;_0x4f7147[_0x4a125b]['next']!==_0x52d603&&(_0x4f7147[_0x4a125b]['next']=_0x52d603);}for(const _0x16d412 of _0x508a11)for(let _0x58e4df=0x0;_0x58e4df<_0x16d412['length'];_0x58e4df++){const _0x460c07=_0x16d412[_0x58e4df-0x1]||null;_0x16d412[_0x58e4df]['previous']!==_0x460c07&&(_0x16d412[_0x58e4df]['previous']=_0x460c07);}function _0x293c8(_0x2fb2da,_0x2767a0){if(_0x2fb2da[0x0]['attributes']['groupId']!==_0x2767a0[0x0]['attributes']['groupId']&&_0x2fb2da[0x0]['author']!==_0x2767a0[0x0]['author'])return!0x1;if(!function(_0x274c3d,_0x2f9136){if(!_0x274c3d['hasComments']&&!_0x2f9136['hasComments'])return!0x0;if(_0x274c3d['hasComments']&&_0x2f9136['hasComments'])return!0x1;if(_0x274c3d['hasComments']&&_0x2f9136['createdAt']<_0x274c3d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2f9136['hasComments']&&_0x274c3d['createdAt']<_0x2f9136['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2fb2da[0x0],_0x2767a0[0x0]))return!0x1;const _0x29e248=Tt(_0x2fb2da[0x0]['attributes'],'groupId'),_0x1e19cc=Tt(_0x2767a0[0x0]['attributes'],'groupId');if(!_0x2366ee(_0x29e248,_0x1e19cc))return!0x1;return!!_0x2fb2da['every'](_0x32e659=>_0x2767a0['some'](_0x42a29f=>_0x32e659['getFirstRange']()['isEqual'](_0x42a29f['getFirstRange']())))&&_0x2767a0['every'](_0x102373=>_0x2fb2da['some'](_0x3e1fdb=>_0x102373['getFirstRange']()['isEqual'](_0x3e1fdb['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe8db11){const _0x4be18b=Array['from'](_0xe8db11),_0x29fa68=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4458f8=_0x29fa68['filter'](_0x3d732d=>!_0xe8db11['has'](_0x3d732d)),_0x9c1403=new Map(_0x4be18b['map'](_0x3931f6=>[_0x3931f6,this['_suggestionFactory']['getSuggestionCallback'](_0x3931f6['type'],_0x3931f6['subType'],'join')])),_0x16400a=new Map(_0x29fa68['map'](_0x204bc9=>[_0x204bc9,_0x204bc9['getRanges']()]));for(let _0x3e8ad9=0x0;_0x3e8ad9<_0x4be18b['length'];_0x3e8ad9++){if(_0x4beb32(this,_0x4be18b[_0x3e8ad9],_0x4be18b,_0x3e8ad9+0x1))return!0x0;}for(let _0x568fc7=0x0;_0x568fc7<_0x4be18b['length'];_0x568fc7++){if(_0x4beb32(this,_0x4be18b[_0x568fc7],_0x4458f8,0x0))return!0x0;}return!0x1;function _0x4beb32(_0x207973,_0xa0fdc4,_0x53e8eb,_0x3792de){for(let _0x2d1d61=_0x3792de;_0x2d1d61<_0x53e8eb['length'];_0x2d1d61++){const _0x4b50bb=_0x53e8eb[_0x2d1d61];if(_0x4b50bb['type']!==_0xa0fdc4['type']||_0x4b50bb['author']['id']!==_0xa0fdc4['author']['id']||_0x4b50bb['subType']!==_0xa0fdc4['subType'])continue;if(!Jt(_0xa0fdc4,_0x4b50bb))continue;if('attribute'==_0xa0fdc4['type']&&_0xa0fdc4['data']['oldValue']!=_0x4b50bb['data']['oldValue'])continue;if('attribute'==_0xa0fdc4['type']&&_0x207973['_isBlockAttribute'](_0xa0fdc4['data']['key']))continue;if('formatBlock'==_0xa0fdc4['type']){const _0x5bda22=_0x207973['editor']['model'],_0x4978ec=_0xa0fdc4['getContainedElement']();if(_0x4978ec&&(_0x5bda22['schema']['isObject'](_0x4978ec)||_0x5bda22['schema']['isLimit'](_0x4978ec)))continue;}const _0x55921a=_0x9c1403['get'](_0xa0fdc4),_0x18a365=_0x16400a['get'](_0xa0fdc4),_0x40037f=_0x16400a['get'](_0x4b50bb),_0x11f41d=_0xa0fdc4['commentThread']&&_0xa0fdc4['commentThread']['length'],_0x5764ee=_0x4b50bb['commentThread']&&_0x4b50bb['commentThread']['length'];if(!_0x11f41d&&_0x55921a(_0x40037f,_0x18a365))return _0x207973['_joinSuggestions'](_0x4b50bb,_0xa0fdc4),_0x16400a['delete'](_0xa0fdc4),!0x0;if(!_0x5764ee&&_0x55921a(_0x18a365,_0x40037f))return _0x207973['_joinSuggestions'](_0xa0fdc4,_0x4b50bb),_0x16400a['delete'](_0x4b50bb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x56cca5,_0x3eb914){if(_0x56cca5['isMultiRange']){for(const _0x1e7a0b of _0x3eb914['getRanges']())_0x56cca5['addRange'](_0x1e7a0b);}else{const _0x1a7e65=_0x3eb914['getFirstRange']()['end'];this['_setSuggestionRange'](_0x56cca5,this['_model']['createRange'](_0x56cca5['getFirstRange']()['start'],_0x1a7e65));}_0x3eb914['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4cb704,_0x7d1426,_0x2e2763){const _0xbc4c27=_0x4cb704['startsWith']('format')||_0x4cb704['startsWith']('attribute')?'FORMATTING':_0x4cb704['toUpperCase']();return o(this['editor']['locale'],_0x7d1426+'_'+_0xbc4c27+'_SUGGESTION_ANNOUNCEMENT',_0x2e2763);}['_initAriaMarkerChangeAnnouncements'](){const _0x728a49=this['editor'];if(!_0x728a49['ui'])return;const {ariaLiveAnnouncer:_0x581ca6}=_0x728a49['ui'];_0x57b7e1(this['_model'],({left:_0x2f3653,entered:_0xc28b8a})=>{for(const _0x33c366 of _0x2f3653){const {group:_0x5bfc03,type:_0x22ed8b}=this['_splitMarkerName'](_0x33c366['name']);if('suggestion'===_0x5bfc03){_0x581ca6['announce'](this['_getMarkerAnnouncementText'](_0x22ed8b,'LEAVE'));break;}}for(const _0x2a8f7c of _0xc28b8a){const {group:_0x5924db,type:_0x5522fe}=this['_splitMarkerName'](_0x2a8f7c['name']);if('suggestion'===_0x5924db){_0x581ca6['announce'](this['_getMarkerAnnouncementText'](_0x5522fe,'ENTER',_0x11359d(_0x29bed4)));break;}}});}['_processAttributeChanges'](_0x3fec7a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x31e908=this['editor'],_0x349c26=_0x31e908['model']['document']['differ']['getChanges']();if(0x0==_0x349c26['length'])return!0x1;const _0x4b5bbe=[],_0x4ea46f=_0x349c26['filter'](_0x3acb87=>'attribute'==_0x3acb87['type']),_0x464a42=_0x349c26['filter'](_0x23c464=>'insert'==_0x23c464['type']&&'$text'!=_0x23c464['name']),_0x9843fe=_0x349c26['filter'](_0x4a017a=>'remove'==_0x4a017a['type']&&'$text'!=_0x4a017a['name']);for(const _0xcfc48 of _0x4ea46f)_0x4b5bbe['push']({'key':_0xcfc48['attributeKey'],'newValue':_0xcfc48['attributeNewValue'],'oldValue':_0xcfc48['attributeOldValue'],'range':Pt(_0xcfc48['range'],_0x31e908['model'])});for(const _0x1554c7 of _0x464a42){const _0x150356=_0x9843fe['find'](_0xf68055=>_0xf68055['position']['isEqual'](_0x1554c7['position']));_0x150356&&_0x4b5bbe['push']({'key':m,'newValue':_0x1554c7['name'],'oldValue':_0x150356['name'],'range':_0x31e908['model']['createRangeOn'](_0x1554c7['position']['nodeAfter'])});}return 0x0!=_0x4b5bbe['length']&&this['_reduceExistingSuggestions'](_0x3fec7a,_0x4b5bbe);}['_processAttributeSuggestions'](_0x3cd409){let _0x44eda2=!0x1;const _0x2718f5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x182425=>_0x182425['data']['newRange']&&_0x182425['name']['startsWith']('suggestion:attribute:'));for(const _0x3c974f of _0x2718f5){const {subType:_0x180d74,id:_0x37e201}=this['_splitMarkerName'](_0x3c974f['name']),_0x329e78=_0x180d74['split']('|')[0x0];for(const _0x5ea5b4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5ea5b4['id']!=_0x37e201&&'attribute'==_0x5ea5b4['type']&&_0x5ea5b4['data']&&_0x5ea5b4['data']['key']==_0x329e78&&_0x5ea5b4['getFirstRange']()['isIntersecting'](_0x3c974f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5ea5b4,_0x3c974f['data']['newRange'],_0x3cd409),_0x44eda2=!0x0);}return _0x44eda2;}['_recordAttributeChanges'](_0x1d1700){this['_recordAttributeSuggestions']=!0x0,_0x1d1700();}['_isRegisteredAttribute'](_0x7c06ef){const _0x57cae5=this['_isBlockAttribute'](_0x7c06ef),_0x4c293a=this['_inlineAttributeKeys']['has'](_0x7c06ef);return _0x57cae5||_0x4c293a;}['_reduceExistingSuggestions'](_0x5f16f8,_0x58ed91){if(0x0==_0x58ed91['length'])return!0x1;let _0x2ff262=!0x1;for(const _0x2a45b3 of _0x58ed91){const _0x508d25=this['_findSuggestions'](_0x2a45b3['range'],'attribute')['filter'](_0x25de7f=>!_0x25de7f['meta']['isNextTo'])['map'](_0x43e0f7=>_0x43e0f7['suggestion']),_0x50f0f1=_0x146027({'newValue':_0x2a45b3['newValue']});_0x508d25['filter'](_0xe3845e=>{const [_0x51ee7d,_0x160b91]=_0xe3845e['subType']['split']('|');return _0x51ee7d==_0x2a45b3['key']&&_0x160b91!=_0x50f0f1;})['forEach'](_0x122eb0=>{this['_reduceSuggestionAttributeRange'](_0x122eb0,_0x2a45b3['range'],_0x5f16f8),_0x2ff262=!0x0;});}return _0x2ff262;}['_reduceSuggestionAttributeRange'](_0x450796,_0x4335a1,_0x102e3){const _0x889777=_0x450796['getFirstRange']()['getDifference'](_0x4335a1);0x0!==_0x889777['length']?0x1!==_0x889777['length']?this['_breakSuggestionMarker'](_0x450796,_0x4335a1['start'],_0x4335a1['end']):this['_setSuggestionRange'](_0x450796,_0x889777[0x0]):_0x102e3['removeMarker'](_0x450796['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4a70a7){this['_editor']=_0x4a70a7,this['_model']=_0x4a70a7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3a5c71,_0x5ae1e2,_0x14dda2,_0x26d4c8,_0x1df954,_0x5a3c73){return new u(this['_model'],{'type':_0x3a5c71,'subType':_0x5ae1e2,'id':_0x14dda2,'author':_0x26d4c8,'creator':_0x26d4c8,'attributes':_0x1df954,'onAttributesChange':_0x5a3c73,'onAccept':(..._0x5c4632)=>this['getSuggestionCallback'](_0x3a5c71,_0x5ae1e2,'accept')(..._0x5c4632),'onDiscard':(..._0xb726cd)=>this['getSuggestionCallback'](_0x3a5c71,_0x5ae1e2,'discard')(..._0xb726cd)});}['registerCustomCallback'](_0x213137,_0x324369,_0x507ff8,_0x37f516){const _0x101f3f=_0x213137+':'+_0x324369+':'+_0x507ff8;this['_customCallbacks']['set'](_0x101f3f,_0x37f516);}['getSuggestionCallback'](_0x47cf8a,_0x49d82f,_0x382788){const _0x50d77e=_0x47cf8a+':'+_0x49d82f+':'+_0x382788;return this['_customCallbacks']['get'](_0x50d77e)||this['_defaultCallbacks']['get'](_0x47cf8a+':'+_0x382788);}['_registerDefaultCallbacks'](){const _0x2fc136=()=>!0x1,_0x2cb174=_0x3a8cad=>{_0x3a8cad['sort']((_0x430d03,_0x2e4141)=>_0x430d03['start']['isBefore'](_0x2e4141['start'])?0x1:-0x1),this['_model']['change'](_0x2d2351=>{for(const _0x3114a7 of _0x3a8cad){let _0x9fb89b;_0x9fb89b=_0x3114a7['end']['isAtEnd']&&_0x3114a7['end']['parent']==_0x3114a7['start']['nodeAfter']?_0x2d2351['createSelection'](_0x3114a7['start']['nodeAfter'],'on'):_0x2d2351['createSelection'](_0x3114a7),this['_model']['deleteContent'](_0x9fb89b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3853f3=(_0x166461,_0x4082de)=>{_0x4082de&&this['_model']['change'](_0x23f980=>{const {commandName:_0x326bbb,commandParams:_0x3a593c=[]}=_0x4082de,_0x3a57b9=_0x166461['map'](_0x10be49=>(Vt(_0x10be49)&&(_0x10be49=this['_model']['createRange'](_0x10be49['end'])),_0x10be49))['filter'](_0x20f4c9=>'$graveyard'!==_0x20f4c9['root']['rootName']);if(_0x3a57b9['length']<0x1)return;const _0x3a06a5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x64fff9=>_0x92cefc['fromRange'](_0x64fff9));_0x23f980['setSelection'](_0x3a57b9);for(const _0x19593e of this['_editor']['commands']['commands']())_0x19593e['refresh']();_0x3a593c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x326bbb,..._0x3a593c);const _0x28c568=_0x3a06a5['filter'](_0x3b93ac=>'$graveyard'!=_0x3b93ac['root']['rootName']);_0x28c568['length']>0x0&&_0x23f980['setSelection'](_0x28c568);for(const _0x2b2afc of _0x3a06a5)_0x2b2afc['detach']();});},_0x3b5451=(_0x59b470,_0x198043)=>0x1==_0x59b470['length']&&0x1==_0x198043['length']&&_0x59b470[0x0]['end']['isEqual'](_0x198043[0x0]['start']),_0x24ec35=(_0x315005,_0x3a4fff,_0x1d48e0,_0x218f7e)=>Ht(_0x315005,_0x3a4fff,_0x1d48e0,_0x218f7e,this['_model'])?[_0x315005,_0x3a4fff]:Ht(_0x3a4fff,_0x315005,_0x218f7e,_0x1d48e0,this['_model'])?[_0x3a4fff,_0x315005]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2fc136),this['_defaultCallbacks']['set']('insertion:discard',_0x2cb174),this['_defaultCallbacks']['set']('insertion:join',_0x3b5451),this['_defaultCallbacks']['set']('insertion:chain',_0x24ec35),this['_defaultCallbacks']['set']('deletion:accept',_0x2cb174),this['_defaultCallbacks']['set']('deletion:discard',_0x2fc136),this['_defaultCallbacks']['set']('deletion:join',_0x3b5451),this['_defaultCallbacks']['set']('deletion:chain',_0x24ec35),this['_defaultCallbacks']['set']('formatInline:accept',_0x3853f3),this['_defaultCallbacks']['set']('formatInline:discard',_0x2fc136),this['_defaultCallbacks']['set']('formatInline:join',_0x3b5451),this['_defaultCallbacks']['set']('formatInline:chain',_0x2fc136),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3853f3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2fc136),this['_defaultCallbacks']['set']('formatBlock:join',_0x3b5451),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2fc136),this['_defaultCallbacks']['set']('attribute:accept',_0x2fc136),this['_defaultCallbacks']['set']('attribute:discard',(_0x5a6b69,_0x3fad9a)=>{if(!_0x3fad9a)return;const _0x2648bd=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xda8bde=>{if(_0x3fad9a['key']==m)for(const _0x17874e of _0x5a6b69){const _0x35c615=_0x17874e['start']['nodeAfter'],_0x237af4=_0x3fad9a['oldValue'];_0xda8bde['rename'](_0x35c615,_0x237af4);}else{if(_0x2648bd['_isBlockAttribute'](_0x3fad9a['key'])){for(const _0x4f2f6e of _0x5a6b69)void 0x0!==_0x3fad9a['oldValue']?_0xda8bde['setAttribute'](_0x3fad9a['key'],_0x3fad9a['oldValue'],_0x4f2f6e['start']['nodeAfter']):_0xda8bde['removeAttribute'](_0x3fad9a['key'],_0x4f2f6e['start']['nodeAfter']);}else{for(const _0x4f9f76 of _0x5a6b69)_0x3fad9a['oldValue']?_0xda8bde['setAttribute'](_0x3fad9a['key'],_0x3fad9a['oldValue'],_0x4f9f76):_0xda8bde['removeAttribute'](_0x3fad9a['key'],_0x4f9f76);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3b5451);}}function Ot(_0x2c48d7,_0x5a7196,_0x4f2343){for(const _0x1b3cef of _0x5a7196['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1b3cef['root']==_0x1b3cef)return!0x1;if(!_0x4f2343['containsItem'](_0x1b3cef))return!0x1;if(_0x2c48d7['isObject'](_0x1b3cef)||_0x2c48d7['isLimit'](_0x1b3cef))return!0x0;}return!0x1;}function Vt(_0x57820c){return _0x57820c['end']['parent']==_0x57820c['start']['nodeAfter']&&_0x57820c['end']['isAtStart'];}function Ut(_0x4b97af,_0x1b628d,_0x21116b,_0xa2c21f){const _0x3ae76b=_0x2a771f=>!_0x2a771f['item']['is']('$textProxy')&&!_0xa2c21f['isObject'](_0x2a771f['item']),_0x389325=_0x4b97af['start']['getLastMatchingPosition'](_0x3ae76b),_0x3d75bd=_0x4b97af['end']['getLastMatchingPosition'](_0x3ae76b,{'direction':'backward'});return(!_0x4b97af['start']['isEqual'](_0x389325)||!_0x4b97af['end']['isEqual'](_0x3d75bd))&&(_0x389325['isBefore'](_0x3d75bd)?_0x21116b['updateMarker'](_0x1b628d,{'range':_0x21116b['createRange'](_0x389325,_0x3d75bd)}):_0x21116b['removeMarker'](_0x1b628d),!0x0);}function Gt(_0x510f77){return _0x146027(_0x510f77);}function Ft(_0x479f93){const _0x44d9d1=_0x479f93['start']['nodeAfter'];return _0x44d9d1&&_0x44d9d1['is']('element');}function Pt(_0x91b275,_0x97af8b){return null==_0x91b275['end']['nodeBefore']&&_0x91b275['end']['parent']==_0x91b275['start']['nodeAfter']?Lt(_0x91b275['start']['nodeAfter'],_0x97af8b):_0x91b275;}function Lt(_0x40b8f6,_0x49e660){const _0x3f51b2=_0x49e660['schema']['isObject'](_0x40b8f6)||_0x49e660['schema']['isSelectable'](_0x40b8f6);return _0x49e660['createRange'](_0x49e660['createPositionAt'](_0x40b8f6,'before'),_0x3f51b2?_0x49e660['createPositionAfter'](_0x40b8f6):_0x49e660['createPositionAt'](_0x40b8f6,'end'));}function Ht(_0x400344,_0x1eaff7,_0x2e9200,_0x3376f0,_0x440d1f){if(_0x400344['next'])return!0x1;if(!Jt(_0x400344,_0x1eaff7))return!0x1;if(_0x2e9200['end']['isEqual'](_0x3376f0['start']))return!0x0;if(_0x400344['type']!=_0x1eaff7['type'])return!0x1;if(!_0x2e9200['end']['isTouching'](_0x3376f0['start']))return!0x1;const _0x405359=_0x440d1f['createRange'](_0x2e9200['end'],_0x3376f0['start'])['getWalker']();for(const _0x5ce1ce of _0x405359)if(['elementStart','elementEnd']['includes'](_0x5ce1ce['type'])&&_0x440d1f['schema']['isLimit'](_0x5ce1ce['item']))return!0x1;return!0x0;}function Jt(_0x2d0c37,_0x443711){if(!_0x2d0c37['_isDataLoaded']||!_0x443711['_isDataLoaded'])return!0x1;const _0x21718b=new Set(Object['keys'](_0x2d0c37['attributes'])),_0x13fee1=new Set(Object['keys'](_0x443711['attributes']));if(_0x21718b['delete']('groupId'),_0x13fee1['delete']('groupId'),0x0==_0x21718b['size']&&0x0==_0x13fee1['size'])return!0x0;if(_0x21718b['size']!=_0x13fee1['size'])return!0x1;const _0x244227={..._0x2d0c37['attributes']},_0x20d428={..._0x443711['attributes']};return delete _0x244227['groupId'],delete _0x20d428['groupId'],JSON['stringify'](_0x244227)==JSON['stringify'](_0x20d428);}function qt(_0x4c3d35,_0x29e6b4){const _0x350dbe=zt(_0x4c3d35['attributes']),_0xba7d37=zt(_0x29e6b4);if(!_0x4c3d35['_isDataLoaded'])return!0x1;for(const _0x3a5b47 of Object['keys'](_0xba7d37))if(!_0x2366ee(_0x350dbe[_0x3a5b47],_0xba7d37[_0x3a5b47]))return!0x1;return!0x0;}function zt(_0x1cddfc){const _0x14c366=Object['assign']({},_0x1cddfc);return delete _0x14c366['skipNestingCheck'],delete _0x14c366['tablePasteChainId'],_0x14c366;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1b720e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x37b29b,_0x395aaa,_0x2705ef,_0x2a0675){super(),this['model']=_0x395aaa,this['view']=_0x2705ef,this['commentThreadController']=_0x2a0675,this['_editor']=_0x37b29b,this['_acceptCommand']=_0x37b29b['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x37b29b['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3ca92c,_0x5cd68d)=>_0x3ca92c||_0x5cd68d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x55a4ab=>_0x55a4ab&&this['_editor']['model']['canEditAt'](_0x395aaa['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x57021b=>_0x57021b&&this['_editor']['model']['canEditAt'](_0x395aaa['getRanges']())),this['_pendingAction']=null,_0x2705ef['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2705ef,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2705ef,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2705ef,'change:isDirty',()=>{_0x2705ef['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 _0x5f36c4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5f36c4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xd75a18{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x390cd4,_0x18266b,_0x4d9e63,_0xc66db5){super(_0x390cd4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4a253a(_0x390cd4,o(_0x390cd4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x18266b['authoredAt']),this['bind']('authoredAt')['to'](_0x18266b),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',_0x18266b,'authoredAt',this,'descriptionParts',(_0x49d6b9,_0x46dfd8,_0x3180d0)=>{const _0x1dc19a=_0x3180d0['map'](_0x5296a7=>ls(_0x5296a7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x49d6b9-0x1,_0x18266b['author']['name'],_0x46dfd8?_0xc66db5['formatDateTime'](_0x46dfd8):'',new DOMParser()['parseFromString'](_0x1dc19a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x351d5e(),this['focusTracker']=new _0x4b1e99(),this['keystrokes']=new _0x5d5a74(),this['focusCycler']=new _0x18113d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3e8877=>_0x3e8877['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x18266b,this['_localUser']=_0x4d9e63,this['_config']=_0xc66db5,_0xc66db5['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x21cde7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x585f0d}=this['_config'];this['commentsListView']=new _0x585f0d(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',_0x2c888d=>_0x2c888d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5edae5,_0x38bb2f)=>_0x5edae5||!!_0x38bb2f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2ca61c}=this['_config'],_0x27aca8=new _0x2ca61c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5d997e=_0x27aca8['commentInputView'];return _0x27aca8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5d997e,'value',(_0x19ffd7,_0x4da19f,_0x593791)=>!!_0x593791||_0x19ffd7&&!_0x4da19f),_0x5d997e['on']('submit',(_0x3e28e9,_0xe83b4c)=>{this['fire']('addComment',_0xe83b4c),_0x5d997e['editor']['setData']('');}),_0x5d997e['on']('cancel',()=>this['focus']()),_0x5d997e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x27aca8;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2d0ccb,_0x4eeae0,_0x20a14f,_0x3387d5){super(_0x2d0ccb,_0x4eeae0,_0x20a14f,_0x3387d5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5c680b=>_0x5c680b&&_0x5c680b[0x0]?_0x5c680b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x363305,_0x45d9af)=>{let _0x26766d='';for(const _0xff10a5 of _0x363305)_0x26766d+='<p>'+ls(_0xff10a5['content'],_0xff10a5['color'])+'</p>';return _0x45d9af?_0x26766d:_0x247616(_0x26766d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3387d5['SuggestionView'](_0x2d0ccb,_0x4eeae0,{'formatDateTime':_0x3387d5['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 _0x584628=this['bindTemplate'],_0x48df46=[this['suggestionView']];return this['commentsListView']&&_0x48df46['push'](this['commentsListView']),this['commentThreadInputView']&&_0x48df46['push'](this['commentThreadInputView']),_0x48df46['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x584628['if']('isActive','ck-suggestion-wrapper--active'),_0x584628['to']('type',_0xbbcadb=>'ck-suggestion-'+_0xbbcadb),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':_0x584628['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x48df46};}['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 _0xd75a18{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x535065,_0xfab8ba,_0x5adaf7){super(_0x535065),this['_model']=_0xfab8ba,this['_config']=_0x5adaf7,this['set']('description',''),this['bind']('authoredAt')['to'](_0xfab8ba),this['acceptButton']=this['_createButton'](o(_0x535065,'Accept\x20suggestion'),_0x11b16f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x535065,'Discard\x20suggestion'),_0x11b16f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x23f33d(_0x535065,_0xfab8ba['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x351d5e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4b1e99(),this['keystrokes']=new _0x5d5a74(),this['focusCycler']=new _0x18113d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2ea5c8=>_0x2ea5c8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x262fe6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x262fe6['innerHTML']=this['description'],this['on']('change:description',(_0x1e4fff,_0x17ddfd,_0xfaece6)=>{_0x262fe6['innerHTML']=_0xfaece6;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4246d0=this['bindTemplate'],_0x36b768=[{'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':_0x4246d0['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4246d0['to']('authoredAt',_0x53422a=>this['_config']['formatDateTime'](_0x53422a))}]}]},{'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']&&_0x36b768['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':_0x36b768}]};}['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'](_0x2c0782,_0xc1187,_0x30ea1d,_0x245ef,_0x282299){const _0x280f39=new _0x1bbfef(this['locale']);return _0x280f39['set']({'label':_0x2c0782,'icon':_0xc1187,'tooltip':!0x0,'tooltipPosition':_0x282299}),_0x280f39['extendTemplate']({'attributes':{'class':_0x30ea1d}}),_0x280f39['on']('execute',()=>{this['fire'](_0x245ef,this['_model']['id']);}),_0x280f39;}['_setupKeyboardNavigation'](){const _0x258c92=this['element'];this['keystrokes']['listenTo'](_0x258c92);for(const _0x37050c of this['focusables'])this['focusTracker']['add'](_0x37050c['element']),this['keystrokes']['listenTo'](_0x37050c['element']);this['keystrokes']['set']('enter',(_0xd55489,_0x1f9400)=>{_0x258c92===_0xd55489['target']&&(this['focusCycler']['focusFirst'](),_0x1f9400());}),this['keystrokes']['set']('esc',(_0x3c12ad,_0x5319c4)=>{_0x258c92!==_0x3c12ad['target']&&(this['focus'](),_0x5319c4());});}}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 _0x5b23ad{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xf6c12e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x103965){super(_0x103965),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x286b26=this['editor']['config'];_0x286b26['define']('trackChanges.SuggestionThreadView',re),_0x286b26['define']('trackChanges.SuggestionView',ce),_0x286b26['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x286b26['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x26de6b,_0x5e52ee){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3db722,_0xe98f03]of this['_handleControllerBuffer']){const _0x321fb5=this['_suggestionToController']['has'](_0x3db722);_0x321fb5||_0xe98f03?_0x321fb5&&_0xe98f03&&this['_destroyController'](_0x3db722):this['_initializeController'](_0x3db722);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x26de6b,_0x5e52ee);}['init'](){const _0x1ac23a=this['editor'],_0x182365=_0x1ac23a['plugins']['get']('TrackChangesEditing'),_0x2ee9dc=_0x1ac23a['plugins']['get']('Annotations'),_0x16dd1f=_0x1ac23a['plugins']['get']('EditorAnnotations'),_0x4971fe=_0x1ac23a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x16dd1f['addSourceCollector'](()=>{const _0x222aa5=[];for(const [_0xd6886,_0x5b401b]of Array['from'](this['_suggestionToController'])){const _0x3b4a81=_0xd6886['getAllAdjacentSuggestions'](),_0x41511a=[];for(const _0x2f05f7 of _0x3b4a81){if(!_0x2f05f7['isInContent'])continue;if(_0x2f05f7['isMultiRange']){_0x41511a['push'](..._0x2f05f7['getRanges']());continue;}const _0x4f3baf=_0x2f05f7['getFirstRange']();if(_0x41511a['length']>0x0){const _0x310cf6=_0x41511a[0x0]['getJoined'](_0x4f3baf);if(_0x310cf6){_0x41511a[0x0]=_0x310cf6;continue;}}_0x41511a['push'](_0x4f3baf);}_0x222aa5['push']([_0x5b401b['view'],_0x41511a]);}return _0x222aa5;}),this['listenTo'](_0x182365,'suggestionLoaded',(_0x2a4e0b,_0x2fd647)=>{this['listenTo'](_0x2fd647,'change:previous',(_0x425f95,_0x40d8f4,_0x118ebe,_0x39c679)=>{_0x2fd647['isInContent']&&(null==_0x118ebe?(this['_updateController'](_0x39c679['head']),this['_handleSuggestionControllerDelayed'](_0x2fd647,!0x1)):(this['_updateController'](_0x118ebe['head']),null==_0x39c679&&this['_handleSuggestionControllerDelayed'](_0x2fd647,!0x0)));}),null!==_0x2fd647['previous']?this['_updateController'](_0x2fd647['head']):this['_handleSuggestionControllerDelayed'](_0x2fd647,!0x1);}),this['listenTo'](_0x182365,'suggestionUnloaded',(_0x2dc937,_0x1c5b2f,_0x442f69)=>{this['stopListening'](_0x1c5b2f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1c5b2f),this['_suggestionToController']['has'](_0x1c5b2f)&&this['_destroyController'](_0x1c5b2f),_0x442f69&&this['_updateController'](_0x442f69['head']);}),this['listenTo'](_0x182365,'suggestionChanged',(_0x415ae3,_0x2ef37a)=>{this['_updateController'](_0x2ef37a);}),this['listenTo'](_0x2ee9dc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4971fe,'addComment',(_0x42b119,{threadId:_0x441dbe,isFromAdapter:_0x1e4280})=>{if(_0x1e4280||!_0x182365['hasSuggestion'](_0x441dbe))return;const _0x7c1e6c=_0x182365['getSuggestion'](_0x441dbe);this['_suggestionToController']['get'](_0x7c1e6c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x149353=this['editor']['plugins']['get']('Annotations'),_0x385545=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2181bd=Array['from'](_0x149353['activeAnnotations'],_0xa215a1=>_0xa215a1['innerView'])['filter'](_0x3a9d17=>this['_viewToController']['has'](_0x3a9d17)),_0x104cf2=[];for(const _0x3724e0 of _0x2181bd){const _0x232aaa=this['_viewToController']['get'](_0x3724e0)['model']['getAllAdjacentSuggestions']();_0x104cf2['push'](..._0x232aaa['reduce']((_0x1a93c9,_0x1f43d1)=>[..._0x1a93c9,..._0x1f43d1['getMarkerNames']()],[]));}_0x385545['activeMarkers']=_0x104cf2;}['_addUIComponentsToFactory'](){const _0x40c772=this['editor'],_0x3cff30=_0x40c772['locale'],_0xfe5fb0=o(_0x3cff30,'Track\x20changes'),_0x38f48e=new Wt([{'type':'switchbutton','model':new _0x399e69({'withText':!0x0,'isToggleable':!0x0,'label':_0xfe5fb0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x399e69({'withText':!0x0,'label':o(_0x3cff30,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x399e69({'withText':!0x0,'label':o(_0x3cff30,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x399e69({'withText':!0x0,'label':o(_0x3cff30,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x399e69({'withText':!0x0,'label':o(_0x3cff30,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x427c7a of _0x38f48e)if(me(_0x427c7a)){const _0x35289c=_0x40c772['commands']['get'](_0x427c7a['model']['commandName']);_0x427c7a['model']['bind']('isOn','isEnabled')['to'](_0x35289c,'value','isEnabled');}_0x40c772['ui']['componentFactory']['add']('trackChanges',_0x57bdd3=>this['_createToolbarButton'](_0x57bdd3,_0x38f48e,_0xfe5fb0)),_0x40c772['ui']['componentFactory']['add']('menuBar:trackChanges',_0x411f06=>this['_createMenuBarMenu'](_0x411f06,_0x38f48e,_0xfe5fb0));}['_createToolbarButton'](_0x184597,_0x5166c8,_0x5afdf1){const _0x2226b8=Qt(_0x184597,_0x5ef823),_0x55d84c=this['editor']['commands']['get']('trackChanges');_0x2226b8['buttonView']['set']({'tooltip':_0x5afdf1,'label':_0x5afdf1,'icon':he}),_0x2226b8['buttonView']['bind']('isOn')['to'](_0x55d84c,'value'),_0x2226b8['buttonView']['on']('execute',()=>{_0x55d84c['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x2226b8,_0x5166c8,{'role':'menu'});const _0x231d12=[];for(const _0x1f62d3 of _0x5166c8)me(_0x1f62d3)&&_0x231d12['push'](this['editor']['commands']['get'](_0x1f62d3['model']['commandName']));const _0x194faa=_0x2226b8['buttonView'];return _0x194faa['actionView']['unbind']('isEnabled'),_0x194faa['arrowView']['unbind']('isEnabled'),_0x194faa['actionView']['bind']('isEnabled')['to'](_0x55d84c,'isEnabled'),_0x194faa['arrowView']['bind']('isEnabled')['toMany'](_0x231d12,'isEnabled',(..._0x559084)=>_0x559084['some'](_0x306d5e=>_0x306d5e)),_0x2226b8['on']('execute',_0x46acf1=>{this['editor']['execute'](_0x46acf1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2226b8;}['_createMenuBarMenu'](_0x29be4d,_0x1e17eb,_0x179354){const _0x13b2db=new Yt(_0x29be4d),_0x30120b=this['editor']['commands']['get']('trackChanges');_0x13b2db['buttonView']['set']({'label':_0x179354,'icon':he});const _0xf6d0c2=new Zt(_0x29be4d);for(const _0x27bab9 of _0x1e17eb){if('separator'==_0x27bab9['type']){_0xf6d0c2['items']['add'](new Xt(_0x29be4d));continue;}const _0x279290=new te(_0x29be4d,_0x13b2db),_0x72cb6b=new _0x3d0f99(_0x29be4d),_0x483809=_0x27bab9['model'];_0x72cb6b['bind'](...Object['keys'](_0x483809))['to'](_0x483809),_0x72cb6b['delegate']('execute')['to'](_0x13b2db),_0x72cb6b['on']('execute',()=>{this['editor']['execute'](_0x483809['commandName']),this['editor']['editing']['view']['focus']();}),_0x279290['children']['add'](_0x72cb6b),_0xf6d0c2['items']['add'](_0x279290);}return _0x13b2db['bind']('isEnabled')['to'](_0x30120b,'isEnabled'),_0x13b2db['panelView']['children']['add'](_0xf6d0c2),_0x13b2db;}['_initializeController'](_0x54a11d){const _0x1600b4=this['editor'],_0x177a06=_0x1600b4['config'],_0x4b1926=_0x1600b4['plugins']['get']('Annotations'),_0x51466b=_0x1600b4['plugins']['get']('CommentsRepository'),_0x42dbe4=_0x1600b4['plugins']['get']('EditorAnnotations'),_0x578f7d=_0x1600b4['plugins']['get'](_0xf6c12e)['me'],_0x449f5b=_0x177a06['get']('trackChanges')['SuggestionThreadView'],_0x65e21b=_0x177a06['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1c750f,CommentThreadInputView:_0xb35e2c}=_0x1600b4['plugins']['get']('CommentsUI');let _0x135eb8,_0x1c17b3,_0x5a22c4;this['_annotationViews']['has'](_0x54a11d['id'])?(_0x1c17b3=this['_annotationViews']['get'](_0x54a11d['id']),_0x135eb8=_0x1c17b3['mainView']):(_0x135eb8=new _0x449f5b(_0x1600b4['locale'],_0x54a11d,_0x578f7d,{'disableComments':this['_disableComments'],'editorConfig':_0x177a06['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x177a06['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x177a06['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x177a06['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5c8259(_0x177a06['get']('locale')),'CommentView':_0x177a06['get']('comments')['CommentView'],'CommentsListView':_0x1c750f,'CommentThreadInputView':_0xb35e2c,'SuggestionView':_0x65e21b}),_0x135eb8['suggestionView']['acceptButton']['on']('execute',()=>{_0x1600b4['editing']['view']['focus']();}),_0x135eb8['suggestionView']['discardButton']['on']('execute',()=>{_0x1600b4['editing']['view']['focus']();}),_0x1c17b3=_0x4b1926['createAnnotationView'](this['editor']['locale'],_0x135eb8),_0x1c17b3['bind']('isDirty')['to'](_0x135eb8,'isDirty'),_0x1c17b3['bind']('length')['to'](_0x135eb8),_0x1c17b3['bind']('type')['to'](_0x135eb8,'type',_0x55c08c=>'suggestion-'+_0x55c08c),_0x135eb8['on']('escape',()=>{_0x5a22c4['fire']('escape');}),this['_annotationViews']['set'](_0x54a11d['id'],_0x1c17b3));const _0x10ec83=_0x51466b['createCommentThreadController'](_0x54a11d['commentThread'],_0x135eb8),_0x34dace=new ae(_0x1600b4,_0x54a11d,_0x135eb8,_0x10ec83),_0x97689=_0x54a11d['getAllAdjacentSuggestions']()['filter'](_0x591d32=>_0x591d32['isInContent']);_0x135eb8['descriptionParts']=_0x1600b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x97689),this['_suggestionToController']['set'](_0x54a11d,_0x34dace),this['_viewToController']['set'](_0x135eb8,_0x34dace),_0x5a22c4=_0x4b1926['createAnnotation']({'view':_0x1c17b3,'target':()=>{const _0x305604=[],_0x4b11a0=_0x54a11d['getAllAdjacentSuggestions']()['filter'](_0x4f2599=>_0x4f2599['isInContent']);for(const _0x146007 of _0x4b11a0)_0x305604['push'](..._0x146007['getMarkers']());return _0xa54393(_0x1600b4['editing'],_0x305604);},'type':()=>'suggestion-'+_0x34dace['view']['type']}),_0x51466b['_bindAnnotationToEditors'](_0x135eb8,_0x5a22c4),_0x4b1926['add'](_0x5a22c4),_0x42dbe4['registerAnnotation'](_0x5a22c4);}['_destroyController'](_0x322be2){const _0x417577=this['editor']['plugins']['get']('CommentsRepository'),_0x42d3e4=this['editor']['plugins']['get']('Annotations'),_0x44d7d3=this['_suggestionToController']['get'](_0x322be2),_0x4fb66b=_0x44d7d3['view'],_0x3948eb=_0x42d3e4['getByInnerView'](_0x4fb66b);_0x417577['_unbindEditors'](_0x4fb66b),_0x3948eb&&_0x42d3e4['remove'](_0x3948eb),this['_suggestionToController']['delete'](_0x322be2),this['_viewToController']['delete'](_0x4fb66b),_0x44d7d3['destroy']();}['_updateController'](_0x505e5f){if(!_0x505e5f['isInContent']||!this['_suggestionToController']['has'](_0x505e5f))return;const _0x1124a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d97c8=this['_suggestionToController']['get'](_0x505e5f),_0x2c362e=_0x505e5f['getAllAdjacentSuggestions']();_0x1d97c8['view']['descriptionParts']=_0x1124a0['descriptionFactory']['getDescriptions'](_0x2c362e);}['destroy'](){for(const _0x6be6a0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x6be6a0);for(const _0x3b508a of this['_annotationViews']['values']())_0x3b508a['mainView']['destroy']();super['destroy']();}}function me(_0x5bc551){return'model'in _0x5bc551;}class k extends _0x5b23ad{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3064f6){this['editor']['plugins']['get'](p)['adapter']=_0x3064f6;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x27fadd){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x27fadd);}['getSuggestions']({skipNotAttached:_0x37cd78=!0x1,toJSON:_0x12b0ed=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x37cd78,'toJSON':_0x12b0ed});}['getSuggestion'](_0x4dc9b4){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4dc9b4);}}const T=['Pagination'];class P extends _0x5b23ad{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x54c784=this['editor'];if(_0x54c784['config']['define']('trackChangesData.editorCreator',_0x324371=>{const _0x48a5a0=_0x54c784['model']['document']['getRootNames']()['reduce']((_0x1e9db1,_0x41263a)=>(_0x1e9db1[_0x41263a]='',_0x1e9db1),{});return _0x54c784['constructor']['create'](_0x48a5a0,_0x324371);}),'function'!=typeof _0x54c784['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ade7a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3ee1c7){return N(this['editor'],!0x0,_0x3ee1c7);}['getDataWithDiscardedSuggestions'](_0x1f924f){return N(this['editor'],!0x1,_0x1f924f);}}class D extends _0x5b23ad{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x1fb1b4){super(_0x1fb1b4),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(_0x2a783e){return void 0x0!==_0x2a783e['getRootsAttributes'];}async function N(_0x3e1d0c,_0x964960,_0x129e6f){const _0x5530f1=_0xe4860c(_0x3e1d0c,T);_0x5530f1['plugins']['push'](p,D),_0x5530f1['rootsAttributes']=v(_0x3e1d0c)?_0x3e1d0c['getRootsAttributes']():void 0x0;const _0x126a2d=document['createDocumentFragment'](),_0x39f3af=_0x3e1d0c['config']['get']('trackChangesData')['editorCreator'],_0x30a1a9=await _0x39f3af(_0x5530f1,()=>function(_0x54669d){const _0x2829f9=document['createElement']('div');return _0x54669d['appendChild'](_0x2829f9),_0x2829f9;}(_0x126a2d));!function(_0x1182a0,_0x384bc1){const _0x483f3a=_0x1182a0['model']['document']['getRootNames']()['reduce']((_0x4dfda5,_0x321be0)=>(_0x4dfda5[_0x321be0]=_0x1182a0['data']['get']({'rootName':_0x321be0}),_0x4dfda5),{}),_0x371bb2=_0x1182a0['plugins']['get']('Users')['users']['map'](_0x171db8=>({'id':_0x171db8['id'],'name':_0x171db8['name']})),_0x21b709=_0x1182a0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x58d6e9=_0x1182a0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x52b2e9=_0x384bc1['plugins']['get']('Users'),_0x27cb7b=_0x384bc1['plugins']['get']('TrackChangesEditing'),_0x20333b=_0x384bc1['plugins']['get']('CommentsRepository');for(const _0x481ce8 of _0x20333b['getCommentThreads']())_0x481ce8['remove']();for(const _0x123bf4 of _0x371bb2)_0x52b2e9['getUser'](_0x123bf4['id'])||_0x52b2e9['addUser'](_0x123bf4);_0x52b2e9['me']||_0x52b2e9['useAnonymousUser']();for(const _0x2f05c1 of _0x58d6e9)_0x20333b['addCommentThread'](_0x2f05c1);for(const _0xe4a1a2 of _0x21b709)_0x27cb7b['addSuggestionData'](_0xe4a1a2);_0x384bc1['data']['set'](_0x483f3a);}(_0x3e1d0c,_0x30a1a9),_0x30a1a9['execute'](_0x964960?'acceptAllSuggestions':'discardAllSuggestions');const _0x10cd91=v(_0x30a1a9)?_0x30a1a9['getFullData'](_0x129e6f):_0x30a1a9['data']['get'](_0x129e6f);return await _0x30a1a9['destroy'](),_0x10cd91;}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 _0x3cc490,PendingActions as _0x28f729,icons as _0x3b920d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1e75e0,ObservableMixin as _0x2bfc2e,uid as _0x36eeaa,insertToPriorityArray as _0x3c123a,priorities as _0x1b23c8,logWarning as _0x249a14,getEnvKeystrokeText as _0xb9abf9,FocusTracker as _0x1a6770,KeystrokeHandler as _0xec262a,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4a8582,View as _0x141ea4,ViewCollection as _0x3031f9,FocusCycler as _0xeffe40,ViewModel as _0x1be4ba,createDropdown as Qt,SplitButtonView as _0x1aa0e2,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x2c9755}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x854ae2,hashObject as _0x2287f9,surroundingMarkersDetector as _0x32db40,FOCUS_ANNOTATION_KEYSTROKE as _0x4438d0,AriaDescriptionView as _0x407379,setupThreadKeyboardNavigation as _0xee32ad,trimHtml as _0x381f86,UserView as _0x3afdf9,LateFocusButtonView as _0x456809,getDateTimeFormatter as _0x507d6b,getAllMarkersDomElementsSorted as _0x393583,sanitizeEditorConfig as _0x39574}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x23b48d,LiveRange as _0x5ed280,LivePosition as _0x2e45ca}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4976b6,toWidget as _0x3c7c86}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5a8191,set as _0x1c70cf,isEqual as _0x2d7d66,unset as _0x42fad5,omit as Tt}from'lodash-es';import{Delete as _0x133b98,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5bb9ca,ShiftEnter as _0xca3ce1}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x3b6ed6,_0x2bbb65){super(_0x3b6ed6),this['_enabledCommands']=_0x2bbb65,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 _0x3c9e7f of this['editor']['commands']['commands']())_0x3c9e7f['affectsData']&&!this['_enabledCommands']['has'](_0x3c9e7f)&&_0x3c9e7f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x87e86b of this['editor']['commands']['commands']())_0x87e86b['affectsData']&&!this['_enabledCommands']['has'](_0x87e86b)&&_0x87e86b['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x5c05d2,_0x1c1858){super(_0x5c05d2),this['_suggestions']=_0x1c1858,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x59ab05){const _0xd380d0=this['_suggestions']['get'](_0x59ab05);if(!_0xd380d0)throw new _0x1e75e0('track-changes-accept-suggestion-not-found',this);const _0x2957d8=_0xd380d0['getRanges']();this['editor']['model']['canEditAt'](_0x2957d8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd380d0);}}class R extends ts{['_suggestions'];constructor(_0x153d65,_0x334858){super(_0x153d65),this['_suggestions']=_0x334858,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f9d34){const _0x23aec1=this['_suggestions']['get'](_0x3f9d34);if(!_0x23aec1)throw new _0x1e75e0('track-changes-discard-suggestion-not-found',this);const _0x21d1b2=_0x23aec1['getRanges']();this['editor']['model']['canEditAt'](_0x21d1b2)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x23aec1);}}function ls(_0x4a76da,_0x3d6af7){let _0x3c6b2f='';return _0x3c6b2f+=_0x4a76da['split']('*')['map']((_0x158fb9,_0x2fb9f8)=>_0x2fb9f8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x158fb9)+'</span>':nn(_0x158fb9))['join'](''),_0x3d6af7&&(_0x3c6b2f+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3d6af7['value']+'\x22\x20title=\x22'+_0x3d6af7['title']+'\x22></span>'),_0x3c6b2f;}function nn(_0x22b28a){const _0x1e77c0=document['createElement']('span');return _0x1e77c0['innerText']=_0x22b28a,_0x1e77c0['innerHTML'];}function ss(_0xc4789){return _0xc4789['sort']((_0x852e67,_0x5556ee)=>'deletion'==_0x852e67['type']&&'deletion'!=_0x5556ee['type']?-0x1:'deletion'!=_0x852e67['type']&&'deletion'==_0x5556ee['type']?0x1:0x0);}function to(_0x3ea70b,_0x2269cb){let _0x589013,_0x3007f7=0x0;const _0x83ca0=[],_0x5eea57=_0x2269cb['schema'];for(;_0x3007f7<_0x3ea70b['length'];){const _0x594db0=_0x3ea70b[_0x3007f7],_0x198155=_0x3ea70b[_0x3007f7+0x1];_0x589013||(_0x589013=_0x2269cb['createPositionBefore'](_0x594db0)),on(_0x2269cb,_0x594db0,_0x198155)||(_0x83ca0['push'](_0x2269cb['createRange'](_0x589013,_0x5eea57['isObject'](_0x594db0)?_0x2269cb['createPositionAfter'](_0x594db0):_0x2269cb['createPositionAt'](_0x594db0,'end'))),_0x589013=null),_0x3007f7++;}return _0x83ca0;}function on(_0xab0011,_0x364975,_0x45234f){if(!_0x45234f)return!0x1;const _0x4597ee=_0xab0011['createPositionAfter'](_0x364975),_0x43f442=_0xab0011['createPositionBefore'](_0x45234f);return _0x4597ee['isTouching'](_0x43f442);}function rs(_0x2c997f,_0x344aba,_0x2575b9){for(;_0x2575b9['length'];){const _0x1e9182=_0x2575b9['splice'](0x0,0x64);_0x2c997f['change'](()=>{for(const _0x1c1217 of _0x1e9182)_0x1c1217['isInContent']&&_0x344aba['execute'](_0x1c1217['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x3c3e60,_0x1f6865,_0x62bb7b){super(_0x3c3e60),this['_command']=_0x1f6865,this['_suggestions']=_0x62bb7b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2400a7=Array['from'](this['_suggestions']['values']())['some'](_0x3fd768=>_0x3fd768['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2400a7;}['execute'](){const _0x51e546=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5bbe53 of _0x51e546){const _0x35118e=_0x5bbe53['getRanges']();if(!this['editor']['model']['canEditAt'](_0x35118e))return;}rs(this['editor']['model'],this['_command'],_0x51e546);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x31a215,_0x385ee9,_0x5acf01){super(_0x31a215),this['_command']=_0x385ee9,this['_suggestions']=_0x5acf01,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x34327e=this['editor']['model']['document']['selection'],_0x35fca5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3db525,_0x24e900){const _0x3ee302=Array['from'](_0x3db525['getRanges']()),_0x34dc43=new Set();for(const _0x6cdcec of _0x24e900)if(_0x6cdcec['isInContent']){for(const _0x1ecf85 of _0x3ee302)for(const _0x47f7aa of _0x6cdcec['getRanges']())(_0x1ecf85['isIntersecting'](_0x47f7aa)||_0x3db525['isCollapsed']&&!_0x6cdcec['isMultiRange']&&_0x6cdcec['next']&&_0x47f7aa['end']['isTouching'](_0x1ecf85['start']))&&_0x34dc43['add'](_0x6cdcec);}return _0x34dc43;}(_0x34327e,_0x35fca5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x356ecd=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4426d2 of _0x356ecd){const _0x4b451c=_0x4426d2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b451c))return;}rs(this['editor']['model'],this['_command'],_0x356ecd);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2bfc2e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1ad9d0,_0xdc4e05){super(),this['id']=_0xdc4e05['id'],this['type']=_0xdc4e05['type'],this['subType']=_0xdc4e05['subType']||null,this['author']=_0xdc4e05['author'],this['creator']=_0xdc4e05['creator']||_0xdc4e05['author'],this['isExternal']=Boolean(_0xdc4e05['attributes']&&_0xdc4e05['attributes']['@external']),this['data']=null,this['_model']=_0x1ad9d0,this['_onAccept']=_0xdc4e05['onAccept'],this['_onDiscard']=_0xdc4e05['onDiscard'],this['_onAttributesChange']=_0xdc4e05['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xdc4e05['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 _0x4e569e=this;for(;_0x4e569e['previous'];)_0x4e569e=_0x4e569e['previous'];return _0x4e569e;}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'](_0x585ed5){this['_markerNames']['add'](_0x585ed5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3857d5=>this['_model']['markers']['get'](_0x3857d5))['filter'](_0x3b7ffc=>_0x3b7ffc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x11588b=>{for(const _0x471528 of this['getMarkers']())_0x11588b['removeMarker'](_0x471528);}),this['_markerNames']['clear']();}['removeMarker'](_0x4229d4){this['_model']['change'](_0xbeb68d=>{_0xbeb68d['removeMarker'](_0x4229d4);}),this['_markerNames']['delete'](_0x4229d4);}['addRange'](_0x3f43be){const _0x1d4882='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x1d4882),this['_model']['change'](_0x20fc70=>{_0x20fc70['addMarker'](_0x1d4882,{'range':_0x3f43be,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4ac27d){for(const _0x5c09e0 of this['getRanges']())if(_0x5c09e0['isIntersecting'](_0x4ac27d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x441b57=>_0x441b57['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x22babf,_0x3c65a1)=>[..._0x22babf,..._0x3c65a1['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x57b0cd=this['getRanges']();if(0x1!=_0x57b0cd['length'])return null;const _0x7fa725=_0x57b0cd[0x0],_0xad4927=_0x7fa725['start']['nodeAfter'],_0x5cdb36=_0x7fa725['end']['nodeBefore'];return _0xad4927 instanceof _0x23b48d?_0xad4927!=_0x5cdb36?null:_0xad4927: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 _0x202821=[];let _0x574fd9=this['head'];for(;_0x574fd9;)_0x202821['push'](_0x574fd9),_0x574fd9=_0x574fd9['next'];return _0x202821;}['setAttribute'](_0x25d129,_0x2d51d){const _0x1708da=_0x5a8191(this['attributes']);_0x1c70cf(_0x1708da,_0x25d129,_0x2d51d),_0x2d7d66(_0x1708da,this['attributes'])||(this['attributes']=_0x1708da,this['_onAttributesChange'](_0x1708da));}['removeAttribute'](_0x1e7a91){const _0x1dcebb=_0x5a8191(this['attributes']);_0x42fad5(_0x1dcebb,_0x1e7a91),_0x2d7d66(_0x1dcebb,this['attributes'])||(this['attributes']=_0x1dcebb,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 _0x36eeaa()['substr'](0x1,0x5);}}function o(_0x1b3d01,_0x12f5b9,_0x13e0e3){const t=_0x1b3d01['t'];switch(_0x12f5b9){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',_0x13e0e3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x13e0e3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x13e0e3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x13e0e3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x13e0e3);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',_0x13e0e3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x13e0e3);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',_0x13e0e3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x13e0e3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x13e0e3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x13e0e3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x13e0e3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x13e0e3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x13e0e3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x13e0e3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x13e0e3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x13e0e3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x13e0e3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x13e0e3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x13e0e3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x13e0e3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x13e0e3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x13e0e3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x13e0e3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x13e0e3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x13e0e3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x13e0e3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x13e0e3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x13e0e3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x13e0e3);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'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x13e0e3);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'},_0x13e0e3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x13e0e3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x13e0e3);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'},_0x13e0e3);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'},_0x13e0e3);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'},_0x13e0e3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x13e0e3);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'},_0x13e0e3);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'},_0x13e0e3);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'},_0x13e0e3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x12f5b9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3ba966,_0xa71215){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3ba966,this['_locale']=_0xa71215;}['getDescriptions'](_0x1ee2bf){const _0x31554b=[],_0x5d730c=new Set(),_0x1b28d6=new Set();for(let _0x147c66=0x0;_0x147c66<_0x1ee2bf['length'];_0x147c66++){const _0x2554e4=_0x1ee2bf[_0x147c66];if(!_0x2554e4['isInContent'])continue;const _0x5f32b5=this['_handleCustomCallbackDescription'](_0x2554e4);if(_0x5f32b5){if(null!=_0x2554e4['subType']){if(_0x5d730c['has'](_0x2554e4['subType']))continue;_0x5d730c['add'](_0x2554e4['subType']);}_0x31554b['push'](_0x5f32b5);}else{if('attribute'!=_0x2554e4['type'])'insertion'!=_0x2554e4['type']&&'deletion'!=_0x2554e4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x31554b,_0x2554e4,_0x1ee2bf[_0x147c66+0x1]);else{const _0x1a0340=_0x2554e4['data']['key'];if(_0x1b28d6['has'](_0x1a0340))continue;_0x1b28d6['add'](_0x2554e4['data']['key']),_0x1a0340==m?this['_handleRenameSuggestionDescription'](_0x31554b,_0x2554e4):this['_handleAttributeSuggestionDescription'](_0x31554b,_0x2554e4);}}}return this['_resolveDescriptionItems'](_0x31554b);}['registerDescriptionCallback'](_0x54f57f){this['_customCallbacks']['push'](_0x54f57f);}['registerElementLabel'](_0x23425f,_0xe75c2e,_0x144c26=_0x1b23c8['normal']){'function'==typeof _0x23425f?_0x3c123a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x23425f,'label':_0xe75c2e,'priority':_0x144c26}):this['_itemLabels']['set'](_0x23425f,_0xe75c2e);}['registerAttributeLabel'](_0x475662,_0x50914e){this['_attributeLabels']['set'](_0x475662,_0x50914e);}['getItemLabel'](_0x59a80f,_0x146e17=0x1){let _0x4e3415;for(const _0x426d94 of this['_itemLabelsCallbacks'])if(_0x426d94['matchingCallback'](_0x59a80f)){_0x4e3415=_0x426d94['label'];break;}return _0x4e3415||(_0x4e3415=this['_itemLabels']['get'](_0x59a80f['name'])),_0x4e3415?_0x4e3415(_0x146e17):0x1!==_0x146e17?_0x146e17+'\x20'+_0x59a80f['name']+'s':''+_0x59a80f['name'];}['_addDescriptionItems'](_0x4338b4,_0x369bb9){const _0x6d3809=_0x369bb9['getFirstRange']()['getWalker'](),_0x5319d4='insertion'==_0x369bb9['type']?'add':'remove';for(const _0xad8f54 of _0x6d3809){const _0x1e146c=_0xad8f54['item'],_0x24feef=_0x4338b4[_0x4338b4['length']-0x1];if(_0x1e146c['is']('$textProxy'))_0x24feef&&_0x24feef['type']['indexOf']('Container')>-0x1&&_0x4338b4['pop'](),_0x24feef&&'text'==_0x24feef['type']?_0x24feef[_0x5319d4]+=_0x1e146c['data']:_0x4338b4['push']({'type':'text','add':'add'==_0x5319d4?_0x1e146c['data']:'','remove':'remove'==_0x5319d4?_0x1e146c['data']:''});else{if(this['_schema']['isObject'](_0x1e146c)){const _0xc124ae=_0x1e146c;if(_0x24feef&&_0x24feef['type']['indexOf']('Container')>-0x1&&_0x4338b4['pop'](),'elementEnd'==_0xad8f54['type'])continue;_0x24feef&&_0x24feef['type']==_0x5319d4+'Object'&&_0x24feef['element']['name']==_0xc124ae['name']?_0x24feef['quantity']++:_0x4338b4['push']({'type':_0x5319d4+'Object','element':_0xc124ae,'quantity':0x1}),_0x6d3809['skip'](_0x4202cc=>!('elementEnd'==_0x4202cc['type']&&_0x4202cc['item']==_0x1e146c));}else{if(this['_schema']['checkChild'](_0x1e146c,'$text')||_0x1e146c['is']('element','softBreak')){const _0x549e29=_0x1e146c;if('add'==_0x5319d4&&'elementStart'==_0xad8f54['type']||'remove'==_0x5319d4&&'elementEnd'==_0xad8f54['type'])continue;if(_0x24feef&&-0x1==_0x24feef['type']['indexOf']('Container')){'text'==_0x24feef['type']&&(_0x24feef[_0x5319d4]+='\x0a');continue;}let _0x11de76;if(_0x11de76='add'==_0x5319d4?_0x549e29['nextSibling']&&!this['_schema']['isObject'](_0x549e29['nextSibling'])?_0x549e29['nextSibling']:null:_0x549e29['previousSibling']&&!this['_schema']['isObject'](_0x549e29['previousSibling'])?_0x549e29['previousSibling']:null,_0x549e29['isEmpty']||_0x11de76&&_0x11de76['isEmpty']){const _0x2ea1e2=_0x11de76&&_0x11de76['isEmpty']?_0x11de76:_0x549e29;_0x24feef&&_0x24feef['type']==_0x5319d4+'EmptyContainer'&&_0x24feef['element']['name']==_0x2ea1e2['name']?_0x24feef['quantity']++:_0x4338b4['push']({'type':_0x5319d4+'EmptyContainer','element':_0x2ea1e2,'quantity':0x1});}else _0x4338b4['push']({'type':_0x5319d4+'Container','element':_0x549e29});}}}}}['_resolveDescriptionItems'](_0x2e2b35){const _0x3e90c3=this['_locale'],_0x535cc1=[],_0x30ff45=[],_0x383b88=[];for(const _0x5cbb99 of _0x2e2b35)switch(_0x5cbb99['type']){case'text':if(_0x5cbb99['add']=_0x5cbb99['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5cbb99['remove']=_0x5cbb99['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5cbb99['add']&&''!=_0x5cbb99['remove']){_0x535cc1['push']({'type':'replace','content':o(_0x3e90c3,'REPLACE_TEXT',['\x22'+_0x5cbb99['remove']+'\x22','\x22'+_0x5cbb99['add']+'\x22'])});continue;}if(null!=_0x5cbb99['add']['match'](/^ +$/)){_0x535cc1['push']({'type':'insertion','content':o(_0x3e90c3,'*Insert:*\x20%0',o(_0x3e90c3,'ELEMENT_SPACE',_0x5cbb99['add']['length']))});continue;}if(null!=_0x5cbb99['remove']['match'](/^ +$/)){_0x535cc1['push']({'type':'deletion','content':o(_0x3e90c3,'*Remove:*\x20%0',o(_0x3e90c3,'ELEMENT_SPACE',_0x5cbb99['remove']['length']))});continue;}if(''!=_0x5cbb99['add']){_0x535cc1['push']({'type':'insertion','content':o(_0x3e90c3,'*Insert:*\x20%0','\x22'+_0x5cbb99['add']+'\x22')});continue;}_0x535cc1['push']({'type':'deletion','content':o(_0x3e90c3,'*Remove:*\x20%0','\x22'+_0x5cbb99['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x535cc1['push']({'type':'insertion','content':o(_0x3e90c3,'*Insert:*\x20%0',this['getItemLabel'](_0x5cbb99['element'],_0x5cbb99['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x535cc1['push']({'type':'deletion','content':o(_0x3e90c3,'*Remove:*\x20%0',this['getItemLabel'](_0x5cbb99['element'],_0x5cbb99['quantity']))});continue;case'addContainer':_0x535cc1['push']({'type':'insertion','content':o(_0x3e90c3,'*Split:*\x20%0',this['getItemLabel'](_0x5cbb99['element'],_0x5cbb99['quantity']))});continue;case'removeContainer':_0x535cc1['push']({'type':'deletion','content':o(_0x3e90c3,'*Merge:*\x20%0',this['getItemLabel'](_0x5cbb99['element'],_0x5cbb99['quantity']))});continue;case'addFormat':_0x30ff45['push'](_0x5cbb99['key']);continue;case'removeFormat':_0x383b88['push'](_0x5cbb99['key']);continue;default:_0x535cc1['push'](_0x5cbb99);}if(_0x30ff45['length']){const _0x46e310=_0x30ff45['map'](_0x308002=>this['_attributeLabels']['has'](_0x308002)?this['_attributeLabels']['get'](_0x308002):_0x308002)['join'](',\x20');_0x535cc1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x46e310)});}if(_0x383b88['length']){const _0x50faff=_0x383b88['map'](_0x1d871a=>this['_attributeLabels']['has'](_0x1d871a)?this['_attributeLabels']['get'](_0x1d871a):_0x1d871a)['join'](',\x20');_0x535cc1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x50faff)});}return _0x535cc1;}['_handleCustomCallbackDescription'](_0x3037c8){for(const _0x4da99c of this['_customCallbacks']){const _0xbfaa88=_0x4da99c(_0x3037c8);if(_0xbfaa88&&'type'in _0xbfaa88)return _0xbfaa88;}}['_handleAttributeSuggestionDescription'](_0x192198,_0x419dab){const _0x1cbb0f=_0x419dab['data'],_0x59db98=void 0x0===_0x1cbb0f['newValue']?'removeFormat':'addFormat';_0x192198['push']({'type':_0x59db98,'key':_0x1cbb0f['key']});}['_handleRenameSuggestionDescription'](_0x2d7df8,_0x3fa9ec){_0x2d7df8['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3fa9ec['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3e0874,_0x23a83b,_0x4692a3){if(this['_addDescriptionItems'](_0x3e0874,_0x23a83b),_0x4692a3&&_0x4692a3['getFirstRange']()&&!_0x23a83b['getFirstRange']()['end']['isEqual'](_0x4692a3['getFirstRange']()['start'])){const _0x13c5f5=_0x3e0874[_0x3e0874['length']-0x1],_0xe4cee5='insertion'==_0x23a83b['type']?'add':'remove';_0x13c5f5&&'text'==_0x13c5f5['type']&&(_0x13c5f5[_0xe4cee5]+='\x0a');}}}class V extends _0x3cc490{['afterInit'](){const _0x8ff792=this['editor'],_0x24ff15=_0x8ff792['plugins']['get']('TrackChangesEditing');_0x8ff792['commands']['get']('showAIAssistant')&&_0x24ff15['enableCommand']('showAIAssistant');}}class U extends _0x3cc490{['afterInit'](){const _0x500761=this['editor'],_0x22f35b=_0x500761['locale'];if(!_0x500761['plugins']['has']('AlignmentEditing'))return;const _0x2c5cc2=_0x500761['plugins']['get']('TrackChangesEditing');_0x2c5cc2['enableDefaultAttributesIntegration']('alignment'),_0x2c5cc2['registerBlockAttribute']('alignment'),_0x2c5cc2['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x22f35b,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31b449=this['editor'],_0x4e5f29=_0x31b449['locale'];_0x31b449['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32a59c=>{if('formatBlock'!=_0x32a59c['type'])return;const {data:_0xdd673e}=_0x32a59c;if(_0xdd673e&&'alignment'==_0xdd673e['commandName']){const _0x370f21=_0xdd673e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e5f29,'*Format:*\x20%0',function(_0x143ea7){switch(_0x143ea7){case'left':return o(_0x4e5f29,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e5f29,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e5f29,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e5f29,'FORMAT_JUSTIFY_TEXT');}}(_0x370f21))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3cc490{['afterInit'](){const _0xee7cb3=this['editor'],_0x1699dc=_0xee7cb3['plugins']['get']('TrackChangesEditing'),_0x13df0d=_0xee7cb3['locale'];for(const _0x1f2a31 of ti){if(!_0xee7cb3['plugins']['has'](_0x1f2a31))continue;const _0x182d1a=_0x1f2a31['slice'](0x0,-0x7)['toLowerCase'](),_0x42ce3c='FORMAT_'+_0x182d1a['toUpperCase']();_0x1699dc['enableDefaultAttributesIntegration'](_0x182d1a),_0x1699dc['registerInlineAttribute'](_0x182d1a),_0x1699dc['descriptionFactory']['registerAttributeLabel'](_0x182d1a,o(_0x13df0d,_0x42ce3c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b8a2b=this['editor'],_0x2b22ee=_0x2b8a2b['locale'],_0xc75e2f=_0x2b8a2b['plugins']['get']('TrackChangesEditing');function _0x3cdbcd(_0x5e56d9,_0x43a070){_0xc75e2f['descriptionFactory']['registerDescriptionCallback'](_0x5739cb=>{if('formatInline'!=_0x5739cb['type'])return;const {data:_0x6ea94}=_0x5739cb;return _0x6ea94&&_0x6ea94['commandName']===_0x5e56d9?_0x6ea94['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2b22ee,'*Format:*\x20%0',_0x43a070)}:{'type':'format','content':o(_0x2b22ee,'*Remove\x20format:*\x20%0',_0x43a070)}:void 0x0;});}_0x3cdbcd('bold',o(_0x2b22ee,'FORMAT_BOLD')),_0x3cdbcd('italic',o(_0x2b22ee,'FORMAT_ITALIC')),_0x3cdbcd('underline',o(_0x2b22ee,'FORMAT_UNDERLINE')),_0x3cdbcd('code',o(_0x2b22ee,'FORMAT_CODE')),_0x3cdbcd('strikethrough',o(_0x2b22ee,'FORMAT_STRIKETHROUGH')),_0x3cdbcd('subscript',o(_0x2b22ee,'FORMAT_SUBSCRIPT')),_0x3cdbcd('superscript',o(_0x2b22ee,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3cc490{['afterInit'](){const _0x5c10d7=this['editor'],_0x58ff2d=_0x5c10d7['locale'];if(!_0x5c10d7['plugins']['has']('BlockQuoteEditing'))return;const _0x594c07=_0x5c10d7['plugins']['get']('TrackChangesEditing'),_0x155f24=this['editor']['commands']['get']('blockQuote');_0x594c07['enableCommand']('blockQuote',(_0x53b71e,_0x2224a6={})=>{const _0x132bf6=this['editor']['model']['document']['selection'],_0x4c08fb=_0x2224a6&&void 0x0!==_0x2224a6['forceValue']?_0x2224a6['forceValue']:!_0x155f24['value'];let _0x1ce5eb=[];if(_0x4c08fb){const _0x48947a=Array['from'](_0x132bf6['getSelectedBlocks']())['filter'](_0x1ec543=>oo(_0x1ec543)||function(_0x57f35b,_0x5babe1){const _0x103a55=_0x5babe1['checkChild'](_0x57f35b['parent'],'blockQuote'),_0x2ec3b3=_0x5babe1['checkChild'](['$root','blockQuote'],_0x57f35b);return _0x103a55&&_0x2ec3b3;}(_0x1ec543,this['editor']['model']['schema']));_0x1ce5eb=to(_0x48947a,_0x5c10d7['model']);}else{const _0x4c276a=Array['from'](_0x132bf6['getSelectedBlocks']())['filter'](_0x4d9427=>oo(_0x4d9427));_0x1ce5eb=to(_0x4c276a,_0x5c10d7['model']);}_0x5c10d7['model']['change'](()=>{for(const _0x43b6c8 of _0x1ce5eb)_0x594c07['markBlockFormat'](_0x43b6c8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c08fb}]});});}),_0x594c07['descriptionFactory']['registerDescriptionCallback'](_0x245ce0=>{const {data:_0x404468}=_0x245ce0;if(_0x404468&&'blockQuote'==_0x404468['commandName']){const _0x329b91=o(_0x58ff2d,'ELEMENT_BLOCK_QUOTE');return _0x404468['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58ff2d,'*Set\x20format:*\x20%0',_0x329b91)}:{'type':'format','content':o(_0x58ff2d,'*Remove\x20format:*\x20%0',_0x329b91)};}});}}function oo(_0x7fc08e){return'blockQuote'==_0x7fc08e['parent']['name'];}class L extends _0x3cc490{['afterInit'](){const _0x364611=this['editor'];_0x364611['plugins']['has']('CaseChange')&&(_0x364611['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x364611['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x364611['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3cc490{['afterInit'](){const _0x25b0eb=this['editor'];_0x25b0eb['commands']['get']('ckbox')&&_0x25b0eb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3cc490{['afterInit'](){const _0x2f8456=this['editor'];if(!_0x2f8456['plugins']['has']('CodeBlock'))return;const _0xa0b6f4=_0x2f8456['plugins']['get']('TrackChangesEditing'),_0x3a4193=_0x2f8456['locale'],_0x4bf1a2=_0x2f8456['config']['get']('codeBlock')['languages'],_0x3c2da3=_0x2f8456['commands']['get']('codeBlock');_0xa0b6f4['enableCommand']('indentCodeBlock'),_0xa0b6f4['enableCommand']('outdentCodeBlock'),_0xa0b6f4['enableCommand']('codeBlock',(_0x4b5795,_0x45a310={})=>{const _0x2cf175=_0x2f8456['model'],_0x353c2f=_0x2f8456['model']['document']['selection'],_0xedc2c2=_0x45a310&&void 0x0!==_0x45a310['forceValue']?_0x45a310['forceValue']:!_0x3c2da3['value'];let _0x32ab7d;_0x45a310['language']||(_0x45a310['language']=_0x4bf1a2[0x0]['language']),_0x32ab7d=_0xedc2c2?Array['from'](_0x353c2f['getSelectedBlocks']())['filter'](_0x4136e7=>eo(_0x4136e7)||function(_0x3bc5e5,_0x1f9c0a){if(_0x3bc5e5['is']('rootElement')||_0x1f9c0a['isLimit'](_0x3bc5e5))return!0x1;return _0x1f9c0a['checkChild'](_0x3bc5e5['parent'],'codeBlock');}(_0x4136e7,_0x2cf175['schema'])):Array['from'](_0x353c2f['getSelectedBlocks']())['filter'](_0x48c6b3=>eo(_0x48c6b3));const _0x3dc3dd=to(_0x32ab7d,_0x2cf175);_0x2cf175['change'](()=>{for(const _0x4b7c92 of _0x3dc3dd)_0xa0b6f4['markBlockFormat'](_0x4b7c92,{'commandName':'codeBlock','commandParams':[{..._0x45a310,'forceValue':_0xedc2c2}],'formatGroupId':'blockName'});});}),(_0xa0b6f4['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d874b=>o(_0x3a4193,'ELEMENT_CODE_BLOCK',_0x4d874b)),_0xa0b6f4['descriptionFactory']['registerDescriptionCallback'](_0x5519ec=>{if('formatBlock'!=_0x5519ec['type'])return;const _0x5d116f=_0x3a4193['t'],{data:_0x31decb}=_0x5519ec;if(!_0x31decb||'codeBlock'!=_0x31decb['commandName'])return;const _0x3f9052=_0x31decb['commandParams'][0x0]['language'],_0x469075=_0x5d116f(_0x4bf1a2['find'](_0x3f8e2c=>_0x3f8e2c['language']===_0x3f9052)['label'])['toLowerCase']();return _0x31decb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a4193,'*Set\x20format:*\x20%0',o(_0x3a4193,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x469075+')')}:{'type':'format','content':o(_0x3a4193,'*Remove\x20format:*\x20%0',o(_0x3a4193,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x55c148){return'codeBlock'==_0x55c148['name'];}class q extends _0x3cc490{['afterInit'](){const _0x39d31d=this['editor'];if(!_0x39d31d['plugins']['has']('CommentsEditing'))return;_0x39d31d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4061f5,_0x6a8ca2,_0x42644f){const _0x36eb11=[];for(const _0x3b1d78 of _0x6a8ca2['getItems']())_0x3b1d78['hasAttribute'](_0x4061f5)&&_0x36eb11['push'](_0x42644f['createRangeOn'](_0x3b1d78));return _0x36eb11;}function _e(_0x1f8f19,_0xb4d9e0,{showActiveMarker:_0xe4fdd0=!0x0}={}){const _0x2723c3=_0x1f8f19['plugins']['get']('TrackChangesEditing');return(_0x486d00,_0x4a982e,_0x42e303)=>{if(!_0x42e303['consumable']['test'](_0x4a982e['markerRange'],_0x486d00['name']))return;const _0x47b771=_0x4a982e['markerRange']['getWalker'](),_0xbf3a64=_0x4a982e['markerRange']['start'],_0x505642=_0x1f8f19['model']['schema'];let _0x563cf3=null,_0x419045=null,_0x28b526=!0x1,_0x4df0ba=!0x1;for(const _0x42d269 of _0x47b771){const _0x32cb12=_0x42d269['item'];_0x28b526=_0x28b526||_0x505642['isContent'](_0x32cb12);const _0x3cc436=_0x42e303['mapper']['toViewElement'](_0x32cb12);if(_0x3cc436&&_0x3cc436['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x42d269['type']&&(_0x505642['isBlock'](_0x32cb12)&&!_0x505642['isLimit'](_0x32cb12)&&(_0x32cb12['nextSibling']||_0xbf3a64['isAtEnd']?_0x563cf3&&_0x563cf3['parent']==_0x32cb12||(_0x563cf3=_0x32cb12,_0x144782(_0x42d269['previousPosition']),_0x4df0ba=!0x0):_0x419045=_0x419045||_0x42d269['previousPosition']));}function _0x144782(_0x20b76b){const {authorId:_0x1418d5}=_0x2723c3['_splitMarkerName'](_0x4a982e['markerName']),_0xa65931=_0x42e303['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb4d9e0,'data-author-id':_0x1418d5}),_0x404f2f=_0x42e303['mapper']['toViewPosition'](_0x20b76b);_0xe4fdd0&&_0x2723c3['activeMarkers']['includes'](_0x4a982e['markerName'])&&_0x42e303['writer']['addClass']('ck-suggestion-marker--active',_0xa65931),_0x42e303['writer']['insert'](_0x404f2f,_0xa65931),_0x42e303['mapper']['bindElementToMarker'](_0xa65931,_0x4a982e['markerName']);}_0x28b526||_0x4df0ba||!_0x419045||_0x144782(_0x419045);};}class z extends _0x3cc490{static get['requires'](){return[_0x133b98];}['init'](){const _0x1e6c69=this['editor'],_0x1ff6bf=_0x1e6c69['plugins']['get']('TrackChangesEditing');_0x1ff6bf['enableCommand']('delete');const _0xa98544=_0x1e6c69['commands']['get']('deleteForward');_0x1ff6bf['enableCommand']('deleteForward',(_0x5e5da0,_0x3523bc={})=>{const _0x169687=_0x1e6c69['model']['createSelection'](_0x1e6c69['model']['document']['selection']);_0x169687['isCollapsed']&&_0x1e6c69['model']['modifySelection'](_0x169687,{'direction':'forward','unit':_0x3523bc['unit']});const _0x11a201=_0x169687['getFirstRange'](),_0x2f1f03=_0x5ed280['fromRange'](_0x11a201);let _0x3bd2ac;_0x5e5da0(_0x3523bc),_0x3bd2ac='$graveyard'==_0x2f1f03['root']['rootName']?_0x1e6c69['model']['createRange'](_0x11a201['start']):_0x1e6c69['model']['createRange'](_0x2f1f03['start'],_0x2f1f03['end']),_0x2f1f03['detach'](),_0x1e6c69['model']['enqueueChange'](_0xa98544['buffer']['batch'],_0x3d3acd=>{_0xa98544['buffer']['lock'](),_0x3d3acd['setSelection'](_0x3d3acd['createRange'](_0x3bd2ac['end'])),_0xa98544['buffer']['unlock']();});}),_0x1e6c69['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1e6c69,'merge'),{'priority':'high'}),_0x1e6c69['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1a3517,_0x869693,_0x14bf50)=>{_0x14bf50['options']['showSuggestionHighlights']&&_e(_0x1e6c69,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1a3517,_0x869693,_0x14bf50);},{'priority':'high'}),_0x1e6c69['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xdfb0b7,_0x1e961c,_0x1c8982)=>{const _0x4ba057=_0x1c8982['mapper']['markerNameToElements'](_0x1e961c['markerName']);if(_0x4ba057){for(const _0x58393a of _0x4ba057)_0x58393a['is']('uiElement')&&(_0x1c8982['mapper']['unbindElementFromMarkerName'](_0x58393a,_0x1e961c['markerName']),_0x1c8982['writer']['remove'](_0x58393a));}},{'priority':'high'});}}class K extends _0x3cc490{['afterInit'](){const _0x213e7c=this['editor'];if(!_0x213e7c['plugins']['has']('ListEditing'))return;const _0x2035f0=_0x213e7c['locale'],_0x483917=_0x213e7c['plugins']['get']('TrackChangesEditing'),_0x355429=_0x213e7c['plugins']['has']('TodoListEditing'),_0x3f7f34=!!_0x213e7c['config']['get']('list.multiBlock');function _0x371133(_0x56b41f){return{'type':'format','content':''+o(_0x2035f0,'*Set\x20format:*\x20%0',_0x56b41f)};}function _0x5bd258(_0x4c0509){return{'type':'format','content':''+o(_0x2035f0,'*Remove\x20format:*\x20%0',_0x4c0509)};}_0x483917['enableDefaultAttributesIntegration']('numberedList'),_0x483917['enableDefaultAttributesIntegration']('bulletedList'),_0x483917['enableDefaultAttributesIntegration']('customNumberedList'),_0x483917['enableDefaultAttributesIntegration']('customBulletedList'),_0x483917['enableDefaultAttributesIntegration']('indentList'),_0x483917['enableDefaultAttributesIntegration']('outdentList'),_0x483917['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x483917['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x483917['registerBlockAttribute']('listItemId'),_0x483917['registerBlockAttribute']('listType'),_0x483917['registerBlockAttribute']('listIndent'),_0x3f7f34&&(_0x483917['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x483917['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x355429&&(_0x483917['enableDefaultAttributesIntegration']('todoList'),_0x483917['enableDefaultAttributesIntegration']('checkTodoList'),_0x483917['registerBlockAttribute']('todoListChecked'),_0x483917['descriptionFactory']['registerDescriptionCallback'](_0x2820de=>{const {data:_0x1f49ab}=_0x2820de;if(_0x1f49ab&&'todoListChecked'==_0x1f49ab['key'])return{'type':'format','content':_0x1f49ab['newValue']?o(_0x2035f0,'*Check\x20item*'):o(_0x2035f0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x435329=>{if(_0x435329['batch']['isUndo'])return!0x1;let _0x32eef9=!0x1;const _0x3f4668=_0x483917['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x124560=>'todoListChecked'===_0x483917['_getAttributeKey'](_0x124560));for(const _0x885dd0 of _0x3f4668){'todo'!=_0x885dd0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x483917['_findSuggestions'](_0x885dd0['getFirstRange'](),'attribute')['find'](_0x20ea0b=>'listType'===_0x483917['_getAttributeKey'](_0x20ea0b['suggestion']))||(_0x435329['removeMarker'](_0x885dd0['getFirstMarker']()),_0x32eef9=!0x0));}return _0x32eef9;})),_0x483917['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2035f0,'FORMAT_INDENT'));const _0x23cfed={'type':'format','content':''};_0x483917['descriptionFactory']['registerDescriptionCallback'](_0x28f25b=>{const {data:_0x2629d3}=_0x28f25b;if(!_0x2629d3||'listType'!=_0x2629d3['key'])return;let _0x544bae=_0x28f25b['head'];for(;_0x544bae;){if(_0x544bae['data']&&(('listStyle'==_0x544bae['data']['key']||'listMarkerStyle'==_0x544bae['data']['key'])&&(_0x544bae['data']['newValue']&&'default'!=_0x544bae['data']['newValue']||'default'!=_0x544bae['data']['oldValue']&&!_0x2629d3['newValue'])||!_0x3f7f34&&_0x544bae['data']['key']==m))return _0x23cfed;_0x544bae=_0x544bae['next'];}if(null==_0x2629d3['newValue'])switch(_0x2629d3['oldValue']){case'bulleted':return _0x5bd258(o(_0x2035f0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5bd258(o(_0x2035f0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5bd258(o(_0x2035f0,'ELEMENT_TODO_LIST'));}switch(_0x2629d3['newValue']){case'bulleted':return _0x371133(o(_0x2035f0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x371133(o(_0x2035f0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x371133(o(_0x2035f0,'ELEMENT_TODO_LIST'));}}),_0x483917['descriptionFactory']['registerDescriptionCallback'](_0x28107a=>{const {data:_0x35b31b}=_0x28107a;if(_0x35b31b&&'listIndent'==_0x35b31b['key'])return null==_0x35b31b['newValue']||null==_0x35b31b['oldValue']&&0x0==_0x35b31b['newValue']?_0x23cfed:void 0x0;}),_0x483917['descriptionFactory']['registerDescriptionCallback'](_0x405ef7=>{if('attribute'!=_0x405ef7['type'])return;const {data:_0x481b63}=_0x405ef7;if(!_0x481b63||'listItemId'!=_0x481b63['key'])return;const _0x209f62=Ee(_0x405ef7);return'newValue'==_0x209f62?{'type':'format','content':o(_0x2035f0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x209f62?{'type':'format','content':o(_0x2035f0,'*Split:*\x20list\x20item')}:_0x23cfed;}),_0x213e7c['model']['document']['registerPostFixer'](_0x35ea94=>this['listItemIdFixer'](_0x35ea94)),_0x213e7c['model']['document']['registerPostFixer'](_0x3461ff=>this['noTrackChangesFixer'](_0x3461ff)),_0x213e7c['model']['document']['on']('change:data',(_0x43c88a,_0x34bb0a)=>{if(_0x34bb0a['isUndo']||!_0x34bb0a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1cd991){if(_0x1cd991['batch']['isUndo']||!_0x1cd991['batch']['isLocal'])return!0x1;let _0x53d6fa=!0x1;const _0x306513=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x525a3f=>_0x525a3f['data']&&'listItemId'==_0x525a3f['data']['key'])['filter'](_0x542a52=>_0x542a52['data']['newValue']&&_0x542a52['data']['oldValue']);for(const _0x19f739 of _0x306513)Ee(_0x19f739)||(_0x1cd991['removeMarker'](_0x19f739['getFirstMarker']()),_0x53d6fa=!0x0);return _0x53d6fa;}['noTrackChangesFixer'](_0x273adb){if(_0x273adb['batch']['isUndo']||!_0x273adb['batch']['isLocal'])return!0x1;const _0x4c717d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4c717d['trackChangesCommand']['value'])return!0x1;let _0x9c3d36=!0x1;const _0xede9f8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x508542=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x53e3cd=>'attribute'==_0x53e3cd['type'])['filter'](_0x5529e1=>_0xede9f8['includes'](_0x5529e1['attributeKey']));if(0x0==_0x508542['length'])return _0x9c3d36;for(const _0x37d4d3 of _0x508542){const _0x50b586=_0x4c717d['_findSuggestions'](_0x37d4d3['range'],'attribute')['filter'](_0x447331=>!_0x447331['meta']['isNextTo'])['map'](_0x1b4538=>_0x1b4538['suggestion'])['filter'](_0x18e9a1=>{const _0x1f0fda=_0x4c717d['_getAttributeKey'](_0x18e9a1);return _0xede9f8['includes'](_0x1f0fda);});if(_0x50b586['length']){for(const _0x5719aa of _0x50b586)_0x273adb['removeMarker'](_0x5719aa['getFirstMarker']());_0x9c3d36=!0x0;}}return _0x9c3d36;}['assureChains'](){const _0x131b40=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30b3db=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1a7cf5;const _0x3ff364=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59783a=>{if(_0x59783a['data']['oldRange']||!_0x59783a['data']['newRange'])return null;if(!_0x59783a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x33f250}=_0x131b40['_splitMarkerName'](_0x59783a['name']);if(!_0x131b40['hasSuggestion'](_0x33f250))return null;const _0x45d6d1=_0x131b40['getSuggestion'](_0x33f250);return _0x30b3db['includes'](_0x45d6d1['data']['key']);})['map'](_0x927b2f=>{const {id:_0x262e8e}=_0x131b40['_splitMarkerName'](_0x927b2f['name']),_0xfb6586=_0x131b40['getSuggestion'](_0x262e8e);return _0x1a7cf5=_0xfb6586['attributes']['groupId'],_0xfb6586['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3ff364['size'])return;const _0x53266f=_0x131b40['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c4b76=>'attribute'==_0x3c4b76['type']&&_0x3c4b76['data']&&_0x30b3db['includes'](_0x3c4b76['data']['key'])&&_0x3c4b76['attributes']['groupId']!=_0x1a7cf5)['map'](_0x4f5272=>({'listItem':_0x4f5272['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4f5272['attributes']['groupId']})),_0x4c1e25=new Set();for(const {groupId:_0x10b03b,listItem:_0x10bc9d}of _0x53266f)_0x3ff364['has'](_0x10bc9d)&&_0x4c1e25['add'](_0x10b03b);for(const _0x15a544 of _0x131b40['getSuggestions']())_0x4c1e25['has'](_0x15a544['attributes']['groupId'])&&_0x15a544['setAttribute']('groupId',_0x1a7cf5);}['_supportLegacySuggestions'](){const _0x3da9b5=this['editor'],_0x142a34=_0x3da9b5['locale'],_0x102c53=_0x3da9b5['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x102c53['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2a4d5d,_0x56434e){const _0x5a8f78=[];for(let _0x58937a of _0x2a4d5d)_0x58937a['start']['nodeAfter']===_0x58937a['end']['parent']&&(_0x58937a=_0x3da9b5['model']['createRange'](_0x3da9b5['model']['createPositionAt'](_0x58937a['start']['nodeAfter'],0x0))),_0x5a8f78['push'](_0x58937a);_0x3da9b5['model']['change'](_0xc82356=>{const _0x38acb2=_0x3da9b5['model']['document']['selection'],_0x486e5b=Array['from'](_0x38acb2['getRanges']())['map'](_0x4c16fe=>_0x5ed280['fromRange'](_0x4c16fe));_0xc82356['setSelection'](_0x5a8f78),_0x3da9b5['commands']['get'](_0x56434e['commandName'])['refresh'](),_0x56434e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3da9b5['execute'](_0x56434e['commandName'],..._0x56434e['commandParams']),_0xc82356['setSelection'](_0x486e5b);for(const _0x2d6405 of _0x486e5b)_0x2d6405['detach']();});}),_0x102c53['descriptionFactory']['registerElementLabel'](function(_0x5bdca7){const _0x549e6e=!_0x3da9b5['model']['schema']['isObject'](_0x5bdca7),_0x3d3154=_0x5bdca7['previousSibling'],_0x3a05c4=_0x5bdca7['nextSibling'],_0x15a967=_0x5bdca7['getAttribute']('listItemId'),_0x29930e=!_0x3d3154||_0x3d3154['getAttribute']('listItemId')!==_0x15a967,_0x5db92d=!_0x3a05c4||_0x3a05c4['getAttribute']('listItemId')!==_0x15a967;return _0x549e6e&&Boolean(_0x15a967)&&_0x29930e&&_0x5db92d;},_0x4f8999=>o(_0x142a34,'ELEMENT_LIST_ITEM',_0x4f8999));}['_registerLegacyDescription'](){const _0x41d8c6=this['editor'],_0x129e9a=_0x41d8c6['locale'];function _0x1b92eb(_0x174a69){const _0x18a574=_0x41d8c6['commands']['get']('bulletedList')['value'],_0x12f139=_0x41d8c6['commands']['get']('numberedList')['value'];return'numberedList'===_0x174a69?_0x18a574:_0x12f139;}_0x41d8c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3fa2d8){if('formatBlock'!=_0x3fa2d8['type'])return;const {data:_0x15ee07}=_0x3fa2d8;if(!_0x15ee07)return;let _0x1ca37d,_0x1ec349,_0xeb87f6,_0x381897;switch(_0x15ee07['commandName']){case'bulletedList':_0xeb87f6=_0x15ee07['commandParams'][0x0]['forceValue'],_0x381897=_0x1b92eb(_0x15ee07['commandName']),_0x1ca37d=_0xeb87f6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x381897&&_0x41d8c6['config']['get']('list.multiBlock')||(_0x1ca37d='*Change\x20to:*\x20%0'),_0x1ec349={'type':'format','content':o(_0x129e9a,_0x1ca37d,o(_0x129e9a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xeb87f6=_0x15ee07['commandParams'][0x0]['forceValue'],_0x381897=_0x1b92eb(_0x15ee07['commandName']),_0x1ca37d=_0xeb87f6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x381897&&_0x41d8c6['config']['get']('list.multiBlock')||(_0x1ca37d='*Change\x20to:*\x20%0'),_0x1ec349={'type':'format','content':o(_0x129e9a,_0x1ca37d,o(_0x129e9a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1ca37d='*Indent:*\x20%0',_0x1ec349={'type':'format','content':o(_0x129e9a,_0x1ca37d,o(_0x129e9a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1ca37d=function(_0x2fc969){const _0x208db0=_0x2fc969['getFirstRange']();let _0x97db7c=_0x208db0['start']['nodeAfter'];for(;_0x97db7c&&_0x208db0['containsItem'](_0x97db7c);){if(_0x97db7c['getAttribute']('listIndent')>0x0)return!0x1;_0x97db7c=_0x97db7c['nextSibling'];}return!0x0;}(_0x3fa2d8)?o(_0x129e9a,'*Format:*\x20remove\x20from\x20%0',o(_0x129e9a,function(_0x258ffe){return'ELEMENT_'+_0x258ffe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3fa2d8))):o(_0x129e9a,'*Outdent:*\x20%0',o(_0x129e9a,'ELEMENT_LIST_ITEM')),_0x1ec349={'type':'format','content':_0x1ca37d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x15ee07['multipleBlocks']&&(_0x1ca37d='*Merge:*\x20%0',_0x1ec349={'type':'deletion','content':o(_0x129e9a,_0x1ca37d,o(_0x129e9a,'ELEMENT_LIST_ITEM'))});}return _0x1ec349;});}}function Ee(_0x25ed44){let _0x4ab9d8=_0x25ed44['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4ab9d8;){const _0x1d74d7=_0x4ab9d8['getAttribute']('listItemId');if(!_0x1d74d7)return!0x1;if(_0x1d74d7==_0x25ed44['data']['newValue'])return'newValue';if(_0x1d74d7==_0x25ed44['data']['oldValue'])return'oldValue';_0x4ab9d8=_0x4ab9d8['previousSibling'];}return!0x1;}class pe extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x196b21=this['editor']['config']['get']('list.properties'),_0x3a6f54=this['editor']['plugins']['get']('TrackChangesEditing');_0x196b21['styles']&&(_0x3a6f54['enableDefaultAttributesIntegration']('listStyle'),_0x3a6f54['registerBlockAttribute']('listStyle')),_0x196b21['reversed']&&(_0x3a6f54['enableDefaultAttributesIntegration']('listReversed'),_0x3a6f54['registerBlockAttribute']('listReversed')),_0x196b21['startIndex']&&(_0x3a6f54['enableDefaultAttributesIntegration']('listStart'),_0x3a6f54['registerBlockAttribute']('listStart'));const _0x381e9b={'type':'format','content':''};_0x3a6f54['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3d3bc8=this['editor']['locale'];_0x3a6f54['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3d3bc8,'FORMAT_LIST_REVERSED')),_0x3a6f54['descriptionFactory']['registerDescriptionCallback'](_0x3aff8a=>{const {data:_0x3a2ea8}=_0x3aff8a;if(_0x3a2ea8&&'listReversed'==_0x3a2ea8['key'])return null==_0x3a2ea8['newValue']||0x0==_0x3a2ea8['newValue']&&null==_0x3a2ea8['oldValue']?_0x381e9b:void 0x0;}),_0x3a6f54['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3d3bc8,'FORMAT_LIST_START')),_0x3a6f54['descriptionFactory']['registerDescriptionCallback'](_0x54a879=>{const {data:_0x2e6fec}=_0x54a879;if(_0x2e6fec&&'listStart'==_0x2e6fec['key'])return null==_0x2e6fec['newValue']||0x1==_0x2e6fec['newValue']&&null==_0x2e6fec['oldValue']?_0x381e9b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x178092=>{if(_0x178092['batch']['isUndo'])return!0x1;let _0x135dc6=!0x1;const _0x4d466c=_0x3a6f54['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x128c9d=>{const _0x6c67a9=_0x3a6f54['_getAttributeKey'](_0x128c9d);return'listStart'==_0x6c67a9||'listReversed'==_0x6c67a9;});for(const _0x44f4f5 of _0x4d466c){const _0x587f6e=_0x44f4f5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x587f6e||'customNumbered'==_0x587f6e)continue;_0x3a6f54['_findSuggestions'](_0x44f4f5['getFirstRange'](),'attribute')['find'](_0x66dc7d=>'listType'==_0x3a6f54['_getAttributeKey'](_0x66dc7d['suggestion']))||(_0x178092['removeMarker'](_0x44f4f5['getFirstMarker']()),_0x135dc6=!0x0);}return _0x135dc6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5caf57){const _0x23876a=this['editor']['locale'],{data:_0x53eb5c}=_0x5caf57,_0x2db5d9={'type':'format','content':''};if(!_0x53eb5c||'listStyle'!=_0x53eb5c['key'])return;if(!_0x53eb5c['oldValue'])return'default'==_0x53eb5c['newValue']?_0x2db5d9:{'type':'format','content':''+o(_0x23876a,'*Set\x20format:*\x20%0',o(_0x23876a,this['_getTranslationKeyForListStyle'](_0x53eb5c['newValue'])))};if(!_0x53eb5c['newValue']){if('default'==_0x53eb5c['oldValue'])return _0x2db5d9;let _0x3febc1=_0x5caf57['head'];for(;_0x3febc1;){if(_0x3febc1['data']&&'listType'==_0x3febc1['data']['key']&&_0x3febc1['data']['newValue'])return _0x2db5d9;_0x3febc1=_0x3febc1['next'];}return{'type':'format','content':''+o(_0x23876a,'*Remove\x20format:*\x20%0',o(_0x23876a,this['_getTranslationKeyForListStyle'](_0x53eb5c['oldValue'])))};}if('default'!=_0x53eb5c['newValue'])return{'type':'format','content':''+o(_0x23876a,'*Set\x20format:*\x20%0',o(_0x23876a,this['_getTranslationKeyForListStyle'](_0x53eb5c['newValue'])))};let _0x12bbfb=_0x5caf57['head'];for(;_0x12bbfb;){if(_0x12bbfb['data']&&'listType'==_0x12bbfb['data']['key']&&_0x12bbfb['data']['newValue']&&_0x12bbfb['data']['oldValue'])return _0x2db5d9;_0x12bbfb=_0x12bbfb['next'];}return{'type':'format','content':o(_0x23876a,'*Set\x20format:*\x20%0',o(_0x23876a,'ELEMENT_'+_0x5caf57['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x148836=this['editor'],_0x4c36c1=_0x148836['locale'];_0x148836['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x136aeb=>{if('formatBlock'!=_0x136aeb['type'])return;const {data:_0x4f81d1}=_0x136aeb;if(!_0x4f81d1)return;let _0x5ebe59,_0x407923;switch(_0x4f81d1['commandName']){case'listStyle':_0x5ebe59='*Change\x20to:*\x20%0',_0x407923={'type':'format','content':o(_0x4c36c1,_0x5ebe59,o(_0x4c36c1,this['_getTranslationKeyForListStyle'](_0x4f81d1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5ebe59=_0x4f81d1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x407923={'type':'format','content':o(_0x4c36c1,_0x5ebe59)};break;case'listStart':_0x5ebe59='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x407923={'type':'format','content':o(_0x4c36c1,_0x5ebe59,_0x4f81d1['commandParams'][0x0]['startIndex'])};}return _0x407923;});}['_getTranslationKeyForListStyle'](_0x47590d){return'ELEMENT_'+function(_0x55eb5c){if(ye['includes'](_0x55eb5c))return'bulleted';if(Se['includes'](_0x55eb5c))return'numbered';return null;}(_0x47590d)['toUpperCase']()+'_LIST_'+_0x47590d['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3cc490{static get['requires'](){return[_0x5bb9ca];}['init'](){const _0x3a01d1=this['editor'],_0x4a2073=_0x3a01d1['plugins']['get']('TrackChangesEditing'),_0x3b559f=_0x3a01d1['commands']['get']('enter');_0x4a2073['enableCommand']('enter',()=>{_0x3a01d1['model']['change'](_0x3e78ed=>{const _0x435b21=_0x3a01d1['model']['document']['selection'],_0x181603=_0x435b21['getFirstPosition'](),_0x29d061=_0x5ed280['fromRange'](_0x435b21['getFirstRange']());if(_0x3b559f['enterBlock'](_0x3e78ed)){const _0x3c383b=_0x3a01d1['model']['createPositionAt'](_0x181603['parent']['nextSibling'],0x0),_0x249503=_0x3e78ed['createRange'](_0x181603,_0x3c383b);_0x4a2073['markInsertion'](_0x249503);}else _0x3e78ed['setSelection'](_0x3e78ed['createRange'](_0x29d061['end']));_0x29d061['detach'](),_0x3b559f['fire']('afterExecute',{'writer':_0x3e78ed});});}),_0x3a01d1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x3a01d1,'split'),{'priority':'high'}),_0x3a01d1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x86eb6c,_0x5164d7,_0x4cf8d5)=>{const _0x4cdf83=_0x4cf8d5['mapper']['markerNameToElements'](_0x5164d7['markerName']);if(_0x4cdf83){for(const _0x1d684b of _0x4cdf83)_0x1d684b['hasClass']('ck-suggestion-marker-split')&&(_0x4cf8d5['mapper']['unbindElementFromMarkerName'](_0x1d684b,_0x5164d7['markerName']),_0x4cf8d5['writer']['remove'](_0x1d684b));}},{'priority':'high'}),_0x3a01d1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x8b0eab,_0x171662,_0x495f9d)=>{_0x495f9d['options']['showSuggestionHighlights']&&_e(_0x3a01d1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x8b0eab,_0x171662,_0x495f9d);},{'priority':'high'});}}class X extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3f52d4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f52d4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3f52d4['enableCommand']('findNext'),_0x3f52d4['enableCommand']('findPrevious'),_0x3f52d4['enableCommand']('replace'),_0x3f52d4['enableCommand']('replaceAll');}['handleFindCommand'](_0x5bb408,_0xe63073,_0x7fcb7c={}){const _0x4cd34b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5bb408(_0xe71ca3=>{let _0x5ccf5c=('string'==typeof _0xe63073?_0x4cd34b['findByTextCallback'](_0xe63073,_0x7fcb7c):_0xe63073)(_0xe71ca3);Array['isArray'](_0x5ccf5c)&&(_0x5ccf5c={'results':_0x5ccf5c,'searchText':'string'==typeof _0xe63073?_0xe63073:''});const _0x474324=_0x5ccf5c['results']['filter'](_0x1dd4c1=>!0x1===this['_isInDeletionRange'](_0x1dd4c1,_0xe71ca3['item']));return{..._0x5ccf5c,'results':_0x474324};},_0x7fcb7c);}['_isInDeletionRange'](_0x5bac26,_0x1fdceb){const _0x42bc05=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1fdceb,_0x5bac26['start']),this['editor']['model']['createPositionAt'](_0x1fdceb,_0x5bac26['end']));for(const _0x2a36f7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x42bc05['getIntersection'](_0x2a36f7['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 _0x3cc490{['afterInit'](){const _0x2a4c85=this['editor']['locale'],_0x18aa3a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x56c611,commandName:_0x1500b1}of ro)this['editor']['plugins']['has'](_0x56c611)&&(_0x18aa3a['enableDefaultAttributesIntegration'](_0x1500b1),_0x18aa3a['registerInlineAttribute'](_0x1500b1));_0x18aa3a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2a4c85,'FORMAT_FONT_SIZE')),_0x18aa3a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2a4c85,'FORMAT_FONT_FAMILY')),_0x18aa3a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2a4c85,'FORMAT_FONT_COLOR')),_0x18aa3a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2a4c85,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b57b0=this['editor'],_0x2ceb4e=_0x3b57b0['locale'];_0x3b57b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44094d=>{const _0x4f7c77=_0x2ceb4e['t'];if('formatInline'!=_0x44094d['type'])return;const {data:_0xe930a3}=_0x44094d;if(null!=_0xe930a3){if('fontSize'==_0xe930a3['commandName']){const _0x212ccb=_0xe930a3['commandParams'][0x0]['value'];if(_0x212ccb){const _0x27de51=_0x4f7c77(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1fcafb=>_0x1fcafb['model']==_0x212ccb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2ceb4e,'*Set\x20font\x20size:*\x20%0',_0x27de51)};}return{'type':'format','content':o(_0x2ceb4e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xe930a3['commandName']){const _0x427ef7=_0xe930a3['commandParams'][0x0]['value'];return _0x427ef7?{'type':'format','content':o(_0x2ceb4e,'*Set\x20font\x20family:*\x20%0',_0x427ef7)}:{'type':'format','content':o(_0x2ceb4e,'*Reset\x20font\x20family*')};}if('fontColor'==_0xe930a3['commandName']){const _0x107ab8=_0xe930a3['commandParams'][0x0]['value'];if(_0x107ab8){const _0x5d29c5=_0x4a8582(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c415c=>_0x5c415c['model']==_0x107ab8);let _0x1e1bde=_0x107ab8,_0x7b05dc='';return _0x5d29c5&&(_0x1e1bde=_0x5d29c5['label'],_0x7b05dc=_0x4f7c77(_0x1e1bde)['toLowerCase']()),{'type':'format','content':o(_0x2ceb4e,'*Set\x20font\x20color:*\x20%0',_0x7b05dc)['trim'](),'color':{'value':_0x107ab8,'title':_0x7b05dc||_0x1e1bde}};}return{'type':'format','content':o(_0x2ceb4e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xe930a3['commandName']){const _0x11c982=_0xe930a3['commandParams'][0x0]['value'];if(_0x11c982){const _0x42729f=_0x4a8582(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x6a8e2d=>_0x6a8e2d['model']==_0x11c982);let _0x482f78=_0x11c982,_0x425df9='';return _0x42729f&&(_0x482f78=_0x42729f['label'],_0x425df9=_0x4f7c77(_0x482f78)['toLowerCase']()),{'type':'format','content':o(_0x2ceb4e,'*Set\x20font\x20background\x20color:*\x20%0',_0x425df9)['trim'](),'color':{'value':_0x11c982,'title':_0x425df9||_0x482f78}};}return{'type':'format','content':o(_0x2ceb4e,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3cc490{['afterInit'](){const _0x31652b=this['editor'],_0x5b29af=_0x31652b['plugins']['get']('TrackChangesEditing'),_0x11026c=_0x31652b['commands']['get']('copyFormat'),_0x2be002=_0x31652b['commands']['get']('pasteFormat');_0x11026c&&_0x2be002&&(_0x5b29af['enableDefaultAttributesIntegration']('pasteFormat'),_0x5b29af['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x17f929=this['editor'],_0x16ce14=_0x17f929['locale'];_0x17f929['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b07d2=>{if('formatBlock'!=_0x3b07d2['type']&&'formatInline'!=_0x3b07d2['type'])return;const {data:_0x29ea7f}=_0x3b07d2;if(_0x29ea7f&&'pasteFormat'===_0x29ea7f['commandName']){const _0x4cadc2=[],_0x586d95=_0x29ea7f['commandParams'][0x0];for(const [_0x37017d,_0x5b4c88]of Object['entries'](_0x586d95))_0x4cadc2['push'](so(_0x17f929,_0x37017d,_0x5b4c88));return _0x4cadc2['length']?{'type':'format','content':o(_0x16ce14,'*Set\x20format\x20to:*\x20%0',_0x4cadc2['join'](',\x20'))}:{'type':'format','content':o(_0x16ce14,'*Remove\x20all\x20formatting*')};}});}}function so(_0xca145d,_0x52903f,_0x8c0877){const _0x389402=_0xca145d['locale']['t'],_0x2e6172=_0x52903f['split'](/(?=[A-Z])/)['join']('\x20'),_0x300253=_0x389402(_0x2e6172['charAt'](0x0)['toUpperCase']()+_0x2e6172['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x8c0877)return _0x300253;if('fontColor'===_0x52903f||'fontBackgroundColor'===_0x52903f){const _0x56ae62=_0x4a8582(_0xca145d['config']['get']('fontColor.colors'))['find'](_0x459a6f=>_0x459a6f['model']==_0x8c0877);return _0x300253+'\x20('+(_0x56ae62?_0x389402(_0x56ae62['label'])['toLowerCase']():_0x8c0877)+')';}if('fontSize'===_0x52903f&&isNaN(parseFloat(_0x8c0877))){const _0x28b6f7=_0xca145d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xca145d['config']['get']('fontSize.options'))['find'](_0x269c25=>_0x269c25['model']==_0x8c0877);return _0x300253+'\x20('+(_0x28b6f7?_0x389402(_0x28b6f7['title'])['toLowerCase']():_0x8c0877)+')';}return _0x300253+'\x20('+_0x8c0877+')';}class tt extends _0x3cc490{['_headingOptions'];['afterInit'](){const _0x3b2324=this['editor'];if(!_0x3b2324['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3b2324['config']['get']('heading.options');const _0x98c8d4=_0x3b2324['locale'],_0x42343e=_0x3b2324['plugins']['get']('TrackChangesEditing');_0x42343e['enableDefaultAttributesIntegration']('heading');for(const _0x4c17ae of this['_headingOptions'])'paragraph'!=_0x4c17ae['model']&&_0x42343e['descriptionFactory']['registerElementLabel'](_0x4c17ae['model'],_0x90eb6e=>{const _0xfc42b=this['_getHeadingLevel'](_0x4c17ae['model']);return null!==_0xfc42b?_0x556f8a(_0x90eb6e,_0xfc42b):_0x4d8903(_0x90eb6e,_0x4c17ae['title']);});function _0x556f8a(_0x3b728c,_0x46c818){return o(_0x98c8d4,'ELEMENT_HEADING',[_0x3b728c,_0x46c818]);}function _0x4d8903(_0x1decc1,_0x3c700d){return o(_0x98c8d4,'ELEMENT_HEADING_CUSTOM',[_0x1decc1,_0x3c700d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x166ad4=this['editor'],_0x44152e=_0x166ad4['locale'];function _0x255ec3(_0x354891,_0x45915f){return o(_0x44152e,'ELEMENT_HEADING_CUSTOM',[_0x354891,_0x45915f]);}_0x166ad4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x157cef=>{if('formatBlock'!=_0x157cef['type'])return;const {data:_0x199070}=_0x157cef;if(_0x199070&&'heading'==_0x199070['commandName']){const _0x5a4fcd=_0x199070['commandParams'][0x0]['value'],_0x8bd92=this['_getHeadingLevel'](_0x5a4fcd);if(null!==_0x8bd92)return{'type':'format','content':o(_0x44152e,'*Change\x20to:*\x20%0',(_0x18e68d=0x1,_0x2af36b=_0x8bd92,o(_0x44152e,'ELEMENT_HEADING',[_0x18e68d,_0x2af36b])))};const _0x461be4=this['_headingOptions']['find'](_0x35f2a0=>_0x35f2a0['model']===_0x5a4fcd)['title'];return{'type':'format','content':o(_0x44152e,'*Change\x20to:*\x20%0',_0x255ec3(0x1,_0x461be4))};}var _0x18e68d,_0x2af36b;});}['_getHeadingLevel'](_0x308870){const _0x4f5a7f=_0x308870['match'](/^heading(\d+)/);if(_0x4f5a7f)return _0x4f5a7f[0x1];const _0x308c70=this['_headingOptions']?.['find'](_0x3a3c9d=>_0x3a3c9d['model']==_0x308870);if(_0x308c70&&_0x308c70['view']){const _0x2f8211=_0x308c70['view'],_0x1f6625=(_0x2f8211['name']??_0x2f8211)['match'](/^h(\d+)/);if(_0x1f6625)return _0x1f6625[0x1];}return null;}}class et extends _0x3cc490{['afterInit'](){const _0x4dcf05=this['editor'];if(!_0x4dcf05['plugins']['has']('HighlightEditing'))return;const _0x1c180a=_0x4dcf05['plugins']['get']('TrackChangesEditing'),_0x112d47=_0x4dcf05['locale'];_0x1c180a['enableDefaultAttributesIntegration']('highlight'),_0x1c180a['registerInlineAttribute']('highlight'),_0x1c180a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x112d47,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x761b8e=this['editor'],_0x4b7c24=_0x761b8e['locale'];_0x761b8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cabf4=>{if('formatInline'!=_0x5cabf4['type'])return;const {data:_0x25625a}=_0x5cabf4;if(_0x25625a&&'highlight'==_0x25625a['commandName']){const _0x201ebd=_0x4b7c24['t'],_0x49baed=_0x25625a['commandParams'][0x0]['value'];if(_0x49baed){const _0x243f75=_0x761b8e['config']['get']('highlight.options')['find'](_0x3f2386=>_0x3f2386['model']==_0x49baed),_0xdb6d96=_0x201ebd(_0x243f75['title'])['toLowerCase']();return{'type':'format','content':o(_0x4b7c24,'*Set\x20highlight:*\x20%0',_0xdb6d96),'color':{'value':_0x243f75['color'],'title':_0x243f75['title']}};}return{'type':'format','content':o(_0x4b7c24,'*Remove\x20highlight*',o(_0x4b7c24,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3cc490{['afterInit'](){const _0x4620ed=this['editor'];if(!_0x4620ed['plugins']['has']('HorizontalLineEditing'))return;_0x4620ed['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x55f16d=_0x4620ed['plugins']['get']('TrackChangesEditing'),_0x354a43=_0x4620ed['locale'];_0x55f16d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x425baf=>o(_0x354a43,'ELEMENT_HORIZONTAL_LINE',_0x425baf)),_0x4620ed['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x38aaef,{writer:_0x1fb667,options:_0x5aeebb})=>{if(!_0x5aeebb['showSuggestionHighlights'])return null;const _0x558f19=_0x1fb667['createContainerElement']('div'),_0x235320=_0x1fb667['createEmptyElement']('hr');return _0x1fb667['addClass']('ck-horizontal-line',_0x558f19),_0x1fb667['insert'](_0x1fb667['createPositionAt'](_0x558f19,0x0),_0x235320),_0x558f19;},'converterPriority':'high'});}}class st extends _0x3cc490{['afterInit'](){const _0x12f8e7=this['editor'];if(!_0x12f8e7['plugins']['has']('HtmlEmbed'))return;const _0x39ff5c=_0x12f8e7['plugins']['get']('TrackChangesEditing'),_0x51baeb=_0x12f8e7['locale'];_0x39ff5c['descriptionFactory']['registerElementLabel']('rawHtml',_0x4d701d=>o(_0x51baeb,'ELEMENT_HTML_EMBED',_0x4d701d)),_0x39ff5c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x39ff5c['registerBlockAttribute']('value'),_0x39ff5c['descriptionFactory']['registerDescriptionCallback'](_0x80089b=>{if('attribute'!=_0x80089b['type'])return;const {data:_0x228b17}=_0x80089b;if(_0x228b17&&'value'==_0x228b17['key']&&_0x80089b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x45809d=o(_0x51baeb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x51baeb,'*Change\x20%0\x20content*',_0x45809d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x336f2d=this['editor'],_0x60c22f=_0x336f2d['locale'];_0x336f2d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x328b7a=>{if('formatBlock'!=_0x328b7a['type'])return;const {data:_0x1c9fc7}=_0x328b7a;if(_0x1c9fc7&&'htmlEmbed'==_0x1c9fc7['commandName']){const _0x38ce41=o(_0x60c22f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x60c22f,'*Change\x20%0\x20content*',_0x38ce41)};}});}}class nt extends _0x3cc490{['afterInit'](){const _0x3f185f=this['editor'];if(!_0x3f185f['plugins']['has']('ImageEditing'))return;const _0x3fc1e4=_0x3f185f['plugins']['get']('TrackChangesEditing'),_0x3b05ec=_0x3f185f['plugins']['get']('ImageUtils'),_0x339d31=_0x3f185f['locale'];_0x3fc1e4['enableCommand']('insertImage'),_0x3fc1e4['descriptionFactory']['registerElementLabel']('imageBlock',_0x4729f4=>o(_0x339d31,'ELEMENT_IMAGE',_0x4729f4)),_0x3fc1e4['descriptionFactory']['registerElementLabel']('imageInline',_0x27face=>o(_0x339d31,'ELEMENT_INLINE_IMAGE',_0x27face)),_0x3fc1e4['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x339d31,'ELEMENT_CAPTION')),_0x3f185f['plugins']['has']('ImageUploadEditing')&&_0x3fc1e4['enableCommand']('uploadImage'),_0x3f185f['plugins']['has']('ImageBlockEditing')&&_0x3f185f['plugins']['has']('ImageInlineEditing')&&(_0x3fc1e4['enableCommand']('imageTypeInline',(_0x100fa2,_0x47b2f5)=>{const _0x411bc0=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']);_0x3f185f['model']['change'](()=>{_0x3fc1e4['markBlockFormat'](_0x411bc0,{'commandName':'imageTypeInline','commandParams':[_0x47b2f5]},[],'convertBlockImageToInline');});}),_0x3fc1e4['enableCommand']('imageTypeBlock',(_0x64aa3e,_0x963c93)=>{_0x3f185f['model']['change'](_0x56d02c=>{let _0x259afb=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']),_0x276d2a=_0x56d02c['createRangeOn'](_0x259afb);const _0x18bb41=_0x2e45ca['fromPosition'](_0x276d2a['start'],'toPrevious'),_0x24c698=_0x2e45ca['fromPosition'](_0x276d2a['end'],'toNext');_0x3fc1e4['forceDefaultExecution'](()=>_0x64aa3e(_0x963c93)),_0x259afb=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']),_0x276d2a=_0x56d02c['createRangeOn'](_0x259afb);const _0x3832c8=_0x56d02c['createRange'](_0x18bb41,_0x24c698);_0x18bb41['detach'](),_0x24c698['detach'](),_0x3fc1e4['markBlockFormat'](_0x259afb,{'commandName':'imageTypeInline','commandParams':[_0x963c93]},[],'convertInlineImageToBlock'),_0x3832c8['start']['isBefore'](_0x276d2a['start'])&&_0x3fc1e4['markInsertion'](_0x56d02c['createRange'](_0x3832c8['start'],_0x276d2a['start']),'convertInlineImageToBlock'),_0x276d2a['end']['isBefore'](_0x3832c8['end'])&&_0x3fc1e4['markInsertion'](_0x56d02c['createRange'](_0x276d2a['end'],_0x3832c8['end']),'convertInlineImageToBlock');});}),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3fc1e4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x187c05])=>{const _0x47004e=_0x3fc1e4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x455c71=_0x187c05['start'],_0x4bfd67=_0x187c05['end'];const _0x2a231f=_0x3f185f['model']['schema']['getNearestSelectionRange'](_0x455c71,'backward'),_0x2530b6=_0x3f185f['model']['schema']['getNearestSelectionRange'](_0x4bfd67,'forward');_0x2a231f['isCollapsed']&&(_0x455c71=_0x2a231f['start']),_0x2530b6['isCollapsed']&&(_0x4bfd67=_0x2530b6['end']),_0x47004e([_0x3f185f['model']['createRange'](_0x455c71,_0x4bfd67)]);}),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4d6188),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4d6188)),_0x3f185f['plugins']['has']('ImageCaptionEditing')&&(_0x3fc1e4['enableCommand']('toggleImageCaption',(_0x389856,_0x5a3905)=>{const _0x37a11c=_0x3f185f['plugins']['get']('ImageCaptionUtils');let _0x64c9cd=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']),_0x21fbc0=_0x37a11c['getCaptionFromImageModelElement'](_0x64c9cd);_0x3f185f['model']['change'](()=>{if(_0x21fbc0)return void _0x3fc1e4['markDeletion'](_0x3f185f['model']['createRangeOn'](_0x21fbc0));const _0x369b4a=_0x3b05ec['isBlockImage'](_0x64c9cd);_0x389856(_0x5a3905),_0x64c9cd=_0x3b05ec['getClosestSelectedImageElement'](_0x3f185f['model']['document']['selection']),_0x21fbc0=_0x37a11c['getCaptionFromImageModelElement'](_0x64c9cd),_0x3fc1e4['markInsertion'](_0x3f185f['model']['createRangeOn'](_0x21fbc0),_0x369b4a?null:'imageCaption');});}),_0x3fc1e4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4d6188));const _0x3a6bb7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1012fa(_0xd2d53,_0xb65110){const _0x421b00=_0x3a6bb7['findIndex'](({type:_0x4566ba,subType:_0x38cde6})=>_0xd2d53['type']==_0x4566ba&&_0xd2d53['subType']==_0x38cde6),_0x2390a9=_0x3a6bb7['findIndex'](({type:_0x5588b8,subType:_0x1cfe1d})=>_0xb65110['type']==_0x5588b8&&_0xb65110['subType']==_0x1cfe1d);if(_0x421b00<0x0||_0x2390a9<0x0)return!0x1;const _0x84dd23=_0xd2d53['getFirstRange'](),_0x185cc9=_0xb65110['getFirstRange']();if((0x0==_0x421b00||0x1==_0x421b00)&&0x2==_0x2390a9&&_0x84dd23['isIntersecting'](_0x185cc9))return!0x0;if(0x2==_0x421b00&&0x3==_0x2390a9){const _0x179bdb=_0x3fc1e4['_findSuggestions'](_0x84dd23,'insertion')['filter'](({suggestion:_0x2ed99b,meta:_0x34de62})=>_0x34de62['isOwn']&&'convertInlineImageToBlock'==_0x2ed99b['subType']);if(_0x179bdb['length']>0x1&&_0x185cc9['end']['isEqual'](_0x84dd23['start']))return!0x0;if(0x1==_0x179bdb['length']&&(_0x84dd23['start']['isEqual'](_0x185cc9['end'])||_0x84dd23['end']['isEqual'](_0x185cc9['start'])))return!0x0;}if(0x3==_0x421b00&&0x3==_0x2390a9&&_0x84dd23['start']['isBefore'](_0x185cc9['start'])){const _0x48dcc6=_0x84dd23['end']['nodeAfter'],_0x1cb96e=_0x185cc9['start']['nodeBefore'];return _0x3b05ec['isBlockImage'](_0x48dcc6)&&_0x48dcc6===_0x1cb96e;}return!0x1;}function _0x4d6188(_0x15379d,_0x6888aa){return _0x1012fa(_0x15379d,_0x6888aa)?[_0x15379d,_0x6888aa]:_0x1012fa(_0x6888aa,_0x15379d)?[_0x6888aa,_0x15379d]:null;}_0x3f185f['plugins']['has']('ImageResize')&&(_0x3fc1e4['enableDefaultAttributesIntegration']('resizeImage'),_0x3fc1e4['registerBlockAttribute']('resizedWidth'),_0x3fc1e4['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x339d31,'FORMAT_IMAGE_SIZE'))),_0x3f185f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3fc1e4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3fc1e4['registerBlockAttribute']('alt')),_0x3fc1e4['descriptionFactory']['registerDescriptionCallback'](_0x294611=>{if(!!_0x3a6bb7['find'](({type:_0x1241cd,subType:_0xd32008})=>_0x294611['type']==_0x1241cd&&_0x294611['subType']==_0xd32008))return _0x294611['previous']?{}:void 0x0;}),_0x3fc1e4['descriptionFactory']['registerDescriptionCallback'](_0x201f3d=>{if('insertion'==_0x201f3d['type']||'deletion'==_0x201f3d['type']){const _0x2ac247=_0x201f3d['getContainedElement']();if(_0x2ac247&&_0x2ac247['is']('element','caption'))return{'type':'insertion'==_0x201f3d['type']?'addObject':'removeObject','element':_0x2ac247,'quantity':0x1};}}),_0x3fc1e4['descriptionFactory']['registerDescriptionCallback'](_0x5e3300=>'formatBlock'==_0x5e3300['type']&&'convertInlineImageToBlock'==_0x5e3300['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5e3300['type']&&'convertBlockImageToInline'==_0x5e3300['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3fc1e4['descriptionFactory']['registerDescriptionCallback'](_0x1320c8=>{if('attribute'!=_0x1320c8['type'])return;const {data:_0x28ad35}=_0x1320c8;if(!_0x28ad35||'alt'!=_0x28ad35['key'])return;const _0x2d5c63=_0x28ad35['newValue'];return _0x2d5c63?{'type':'format','content':o(_0x339d31,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d5c63+'\x22')}:{'type':'format','content':o(_0x339d31,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a4a01=this['editor'],_0x531e0b=_0x2a4a01['locale'];_0x2a4a01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa48f9c=>{if('formatBlock'!=_0xa48f9c['type']&&'formatInline'!=_0xa48f9c['type'])return;const {data:_0x41a8be}=_0xa48f9c;if(_0x41a8be){if('imageTextAlternative'==_0x41a8be['commandName']){const _0x2b512a=_0x41a8be['commandParams'][0x0]['newValue'];return _0x2b512a?{'type':'format','content':o(_0x531e0b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2b512a+'\x22')}:{'type':'format','content':o(_0x531e0b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x41a8be['commandName']){const _0x1d8862=_0x41a8be['commandParams'][0x0]['width'];return _0x1d8862?{'type':'format','content':o(_0x531e0b,'*Set\x20image\x20width:*\x20%0',_0x1d8862)}:{'type':'format','content':o(_0x531e0b,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x43b129=this['editor']['locale'],_0x3e4681=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e4681['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3e4681['registerBlockAttribute']('src'),_0x3e4681['descriptionFactory']['registerDescriptionCallback'](_0x4d1ccf=>{if('attribute'!=_0x4d1ccf['type'])return;const {data:_0x27f9fc}=_0x4d1ccf;return _0x27f9fc&&'src'==_0x27f9fc['key']?_0x27f9fc['newValue']&&_0x27f9fc['oldValue']?{'type':'format','content':o(_0x43b129,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1b6d06=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b6d06['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1b6d06['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1b6d06['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1b6d06['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b2ab=this['editor'],_0x51b393=_0x1b2ab['locale'];_0x1b2ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c2c5e=>{if('formatBlock'!=_0x5c2c5e['type']&&'formatInline'!=_0x5c2c5e['type'])return;const {data:_0x577540}=_0x5c2c5e;if(!_0x577540||'replaceImageSource'!=_0x577540['commandName'])return;return{'type':'format','content':o(_0x51b393,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3cc490{['afterInit'](){const _0x1925bc=this['editor'];if(!_0x1925bc['plugins']['has']('ImageStyleEditing'))return;const _0x432d2d=_0x1925bc['plugins']['get']('TrackChangesEditing'),_0x4e8816=_0x1925bc['plugins']['get']('ImageUtils'),_0x52c84b={};_0x432d2d['enableCommand']('imageStyle',(_0x55dc74,_0x2945c3)=>{const _0x357449=_0x1925bc['plugins']['get']('Users')['me'],_0x3b1c90=_0x1925bc['commands']['get']('imageStyle');let _0x4b49f0=_0x4e8816['getClosestSelectedImageElement'](_0x1925bc['model']['document']['selection']),_0x4fd52f=_0x1925bc['model']['createRangeOn'](_0x4b49f0),_0x478d16=_0x3b1c90['value'];if(_0x478d16==_0x2945c3['value'])return;const _0x379ab4={'commandName':'imageStyle','commandParams':[_0x2945c3],'formatGroupId':_0x36eeaa()};_0x1925bc['model']['change'](()=>{if(_0x432d2d['getSuggestions']()['filter'](_0x587f33=>_0x587f33['isInContent']&&_0x357449==_0x587f33['author']&&('formatBlock'==_0x587f33['type']||'formatInline'==_0x587f33['type'])&&('imageStylePreApply'==_0x587f33['subType']||'imageStylePostApply'==_0x587f33['subType'])&&_0x587f33['getFirstRange']()['isEqual'](_0x4fd52f))['forEach'](_0x31deec=>_0x432d2d['discardSuggestion'](_0x31deec['head'])),_0x4b49f0=_0x4e8816['getClosestSelectedImageElement'](_0x1925bc['model']['document']['selection']),_0x4fd52f=_0x1925bc['model']['createRangeOn'](_0x4b49f0),_0x3b1c90['refresh'](),_0x1925bc['commands']['get']('imageTypeInline')['refresh'](),_0x1925bc['commands']['get']('imageTypeBlock')['refresh'](),_0x478d16=_0x3b1c90['value'],_0x478d16!=_0x2945c3['value'])return _0x4e8816['isInlineImage'](_0x4b49f0)&&_0x3b1c90['shouldConvertImageType'](_0x2945c3['value'],_0x4b49f0)?(_0x55dc74({..._0x2945c3,'setImageSizes':!0x1}),_0x4b49f0=_0x4e8816['getClosestSelectedImageElement'](_0x1925bc['model']['document']['selection']),void _0x432d2d['markBlockFormat'](_0x4b49f0,{..._0x379ab4,'commandReversedParams':[{'value':_0x478d16||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4e8816['isBlockImage'](_0x4b49f0)?_0x432d2d['markBlockFormat'](_0x4b49f0,_0x379ab4,[],'imageStylePostApply'):_0x432d2d['markInlineFormat'](_0x4fd52f,_0x379ab4,'imageStylePostApply'));});});for(const _0xaa8cfb of _0x1925bc['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x52c84b[_0xaa8cfb['name']]=_0xaa8cfb['title']['toLowerCase']();_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x44dab0])=>{_0x4e8816['setImageNaturalSizeAttributes'](_0x44dab0['getContainedElement']());}),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2c3b93,_0x3f0a08)=>{_0x432d2d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2c3b93,{'commandName':_0x3f0a08['commandName'],'commandParams':_0x3f0a08['commandReversedParams']});}),_0x432d2d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1cdaa2,_0x3835da){if(_0x1bb7df(_0x1cdaa2,_0x3835da))return[_0x1cdaa2,_0x3835da];if(_0x1bb7df(_0x3835da,_0x1cdaa2))return[_0x3835da,_0x1cdaa2];return null;});const _0x2177bf=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1bb7df(_0x19e988,_0x2d1052){const _0x2d933f=_0x2177bf['findIndex'](({type:_0x37a775,subType:_0x27a4ab})=>_0x19e988['type']==_0x37a775&&_0x19e988['subType']==_0x27a4ab),_0x2f7f75=_0x2177bf['findIndex'](({type:_0x5075ae,subType:_0xd6d002})=>_0x2d1052['type']==_0x5075ae&&_0x2d1052['subType']==_0xd6d002);if(_0x2d933f<0x0||_0x2f7f75<0x0)return!0x1;const _0x3d7ce5=_0x19e988['getFirstRange'](),_0x37ff2a=_0x2d1052['getFirstRange']();if((0x0==_0x2d933f||0x1==_0x2d933f)&&0x2==_0x2f7f75&&_0x3d7ce5['isIntersecting'](_0x37ff2a))return!0x0;if(0x2==_0x2d933f&&0x3==_0x2f7f75){const _0x473792=_0x432d2d['_findSuggestions'](_0x3d7ce5,'insertion')['filter'](({suggestion:_0x2da292,meta:_0x128251})=>_0x128251['isOwn']&&'convertInlineImageToBlock'==_0x2da292['subType']);if(_0x473792['length']>0x1&&_0x37ff2a['end']['isEqual'](_0x3d7ce5['start']))return!0x0;if(0x1==_0x473792['length']&&(_0x3d7ce5['start']['isEqual'](_0x37ff2a['end'])||_0x3d7ce5['end']['isEqual'](_0x37ff2a['start'])))return!0x0;}if(0x3==_0x2d933f&&0x3==_0x2f7f75&&_0x3d7ce5['start']['isBefore'](_0x37ff2a['start'])){const _0x538c37=_0x3d7ce5['end']['nodeAfter'],_0x576d7d=_0x37ff2a['start']['nodeBefore'];return _0x4e8816['isBlockImage'](_0x538c37)&&_0x538c37===_0x576d7d;}return!0x1;}_0x1925bc['model']['document']['registerPostFixer'](()=>{let _0x3d9404=!0x1;const _0x647d6e=Array['from'](_0x1925bc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b415a,data:_0x232b68}of _0x647d6e){const {group:_0x1a2c9f,type:_0x2e7d80,subType:_0x821c43,id:_0x22f264}=_0x432d2d['_splitMarkerName'](_0x2b415a);if('suggestion'==_0x1a2c9f&&_0x432d2d['hasSuggestion'](_0x22f264)){if('formatBlock'==_0x2e7d80&&('imageStylePreApply'==_0x821c43||'imageStylePostApply'==_0x821c43)){const _0x1dba3e=_0x432d2d['getSuggestion'](_0x22f264);if(_0x232b68['newRange']){const _0x946d68=_0x1dba3e['getFirstRange']()['getContainedElement']();if(_0x4e8816['isBlockImage'](_0x946d68))continue;_0x432d2d['discardSuggestion'](_0x1dba3e),_0x3d9404=!0x0;}}if('insertion'==_0x2e7d80&&'imageCaption'==_0x821c43&&!_0x232b68['newRange']){const _0x2be87e=_0x432d2d['getSuggestion'](_0x22f264);_0x2be87e['next']&&_0x2be87e['next']['isInContent']&&(_0x432d2d['discardSuggestion'](_0x2be87e['next']),_0x3d9404=!0x0);}}}return _0x3d9404;}),this['_registerLegacyDescription'](_0x52c84b);}['_registerLegacyDescription'](_0x4582a2){const _0x2f354b=this['editor'],_0x5e1232=_0x2f354b['locale'];_0x2f354b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f8862=>{if('formatBlock'!=_0x4f8862['type']&&'formatInline'!=_0x4f8862['type'])return;const {data:_0xa89052}=_0x4f8862;if(!_0xa89052||'imageStyle'!=_0xa89052['commandName'])return;const _0x1854a9=_0xa89052['commandParams'][0x0]['value'];return _0x25f54('side'===_0x1854a9?o(_0x5e1232,'FORMAT_SIDE_IMAGE'):_0x4582a2[_0x1854a9]||_0x1854a9);function _0x25f54(_0x4da63c){return{'type':'format','content':o(_0x5e1232,'*Format:*\x20%0',_0x4da63c)};}});}}class at extends _0x3cc490{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x25f8d4){super(_0x25f8d4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x30a895=this['editor'],_0x4cc80b=_0x30a895['commands']['get']('importWord'),_0x34e6a8=_0x30a895['commands']['get']('trackChanges');_0x4cc80b&&(_0x4cc80b['on']('execute',(_0x3317b7,[,_0x371efc])=>{this['_trackChangesValueDuringImport']=_0x34e6a8['value'],_0x371efc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4cc80b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4cc80b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x34e6a8['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x30a895['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x356117,_0x5678ac){const {suggestions:_0x269582}=_0x5678ac,_0x3ed877=this['editor']['commands']['get']('trackChanges'),_0x34a7ac=_0x3ed877['value'];this['_trackChangesValueDuringImport']!==_0x34a7ac&&(_0x3ed877['execute'](),this['_trackChangesExecuted']=!0x0),_0x269582&&_0x269582['forEach'](({id:_0x212531,type:_0x52b939,author:_0x4407d3,created_at:_0x417fc2})=>{const _0x1ebcc4={'id':_0x212531,'type':_0x52b939,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4407d3,'createdAt':_0x417fc2?new Date(_0x417fc2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1ebcc4);});}}class ct extends _0x3cc490{['afterInit'](){const _0x364e2c=this['editor'],_0x5c65a2=_0x364e2c['plugins']['get']('TrackChangesEditing');if(_0x364e2c['plugins']['has']('IndentEditing')&&(_0x5c65a2['enableCommand']('indent'),_0x5c65a2['enableCommand']('outdent')),_0x364e2c['plugins']['has']('IndentBlock')){for(const _0x11c80f of['indentBlock','outdentBlock'])_0x5c65a2['enableDefaultAttributesIntegration'](_0x11c80f);}const _0x15b5f1=_0x364e2c['locale'];_0x5c65a2['registerBlockAttribute']('blockIndent'),_0x5c65a2['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x15b5f1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42cc9c=this['editor'],_0x415db8=_0x42cc9c['locale'],_0x5d42e3=_0x42cc9c['plugins']['get']('TrackChangesEditing');_0x5d42e3['descriptionFactory']['registerDescriptionCallback'](_0x30be5e=>{if('formatBlock'!=_0x30be5e['type'])return;const {data:_0x1a5c48}=_0x30be5e;if(!_0x1a5c48)return;if('indentBlock'!=_0x1a5c48['commandName']&&'outdentBlock'!=_0x1a5c48['commandName'])return;const _0xb32cdf=_0x30be5e['getItems']()[0x0],_0x58086e=_0x5d42e3['descriptionFactory']['getItemLabel'](_0xb32cdf);return'indentBlock'==_0x1a5c48['commandName']?{'type':'format','content':o(_0x415db8,'*Indent:*\x20%0',_0x58086e)}:'outdentBlock'==_0x1a5c48['commandName']?{'type':'format','content':o(_0x415db8,'*Outdent:*\x20%0',_0x58086e)}:void 0x0;});}}class ut extends _0x3cc490{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3cc490{['afterInit'](){const _0x54bcca=this['editor'];if(!_0x54bcca['plugins']['has']('LinkEditing'))return;const _0x11070d=_0x54bcca['plugins']['get']('TrackChangesEditing'),_0x3f65c5=_0x54bcca['commands']['get']('link');_0x11070d['enableDefaultAttributesIntegration']('link'),_0x11070d['enableDefaultAttributesIntegration']('unlink'),_0x11070d['registerInlineAttribute']('linkHref');for(const _0x43f16b of _0x3f65c5['manualDecorators'])_0x11070d['registerInlineAttribute'](_0x43f16b['id']),_0x11070d['descriptionFactory']['registerAttributeLabel'](_0x43f16b['id'],'link\x20('+_0x43f16b['label']['toLowerCase']()+')');_0x11070d['descriptionFactory']['registerDescriptionCallback'](_0x2a7d7e=>{if('attribute'!=_0x2a7d7e['type'])return;const {data:_0x28492e}=_0x2a7d7e;if(!_0x28492e||'linkHref'!=_0x28492e['key'])return;const _0x189eed=_0x28492e['newValue'],_0x5d9128=_0x54bcca['locale'];return{'type':'format','content':null==_0x189eed?o(_0x5d9128,'*Remove\x20link*'):o(_0x5d9128,'*Set\x20link:*\x20%0','\x22'+_0x189eed+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5551c6=this['editor'],_0x5b5678=_0x5551c6['locale'];_0x5551c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414387=>{if('formatInline'!=_0x414387['type'])return;const {data:_0xcdfa8b}=_0x414387;if(_0xcdfa8b){if('link'==_0xcdfa8b['commandName']){const _0x2737cf=_0xcdfa8b['commandParams'][0x0];return{'type':'format','content':o(_0x5b5678,'*Set\x20link:*\x20%0','\x22'+_0x2737cf+'\x22')};}return'unlink'==_0xcdfa8b['commandName']?{'type':'format','content':o(_0x5b5678,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3cc490{['afterInit'](){const _0x2770ef=this['editor'],_0x540896=_0x2770ef['locale'];if(!_0x2770ef['plugins']['has']('LegacyListEditing'))return;const _0x17bc17=_0x2770ef['plugins']['get']('TrackChangesEditing'),_0xb9e078=_0x2770ef['plugins']['has']('LegacyTodoListEditing');function _0x4c350d(_0x5a3cdc){return()=>{const _0x1360eb=_0x2770ef['model']['document']['selection'],_0x157c96=_0x2770ef['commands']['get'](_0x5a3cdc);if(_0x157c96['value'])return void _0x2770ef['execute']('paragraph',{});const _0x39ca44=_0x5a3cdc['slice'](0x0,-0x4),_0x2cfcb0=function(_0x2c12bb,_0x16b78e,_0x398b70){let _0x2a157f=Array['from'](_0x2c12bb)['filter'](_0x302118=>function(_0x46bc51,_0x116cab){return _0x116cab['checkChild'](_0x46bc51['parent'],'listItem')&&!_0x116cab['isObject'](_0x46bc51);}(_0x302118,_0x398b70));_0x2a157f=_0x2a157f['filter'](_0x29ecc5=>!_0x29ecc5['is']('element','listItem')||_0x29ecc5['getAttribute']('listType')!=_0x16b78e);const _0xa766d7=new Set();for(const _0x763cb2 of _0x2a157f)_0x763cb2['is']('element','listItem')?_0xa766d7['add'](fe(_0x763cb2)):_0xa766d7['add'](_0x763cb2);return Array['from'](_0xa766d7);}(_0x1360eb['getSelectedBlocks'](),_0x39ca44,_0x2770ef['model']['schema']);_0x2770ef['model']['change'](()=>{for(const _0x574e03 of _0x2cfcb0)_0x17bc17['markBlockFormat'](_0x574e03,{'commandName':_0x5a3cdc,'commandParams':[{'forceValue':!_0x157c96['value']}],'formatGroupId':'blockName'},ue(_0x574e03));});};}function _0x2b3793(_0x497709){return()=>{const _0x2e67cb=function(_0xd136b4){let _0x53c583=Array['from'](_0xd136b4);const _0x1b14c7=_0x53c583['findIndex'](_0x28658b=>'listItem'!=_0x28658b['name']);return _0x1b14c7>-0x1&&(_0x53c583=_0x53c583['slice'](0x0,_0x1b14c7)),_0x53c583;}(_0x2770ef['model']['document']['selection']['getSelectedBlocks']()),_0xa8e77c=_0x2770ef['model']['createRange'](_0x2770ef['model']['createPositionAt'](_0x2e67cb[0x0],'before'),_0x2770ef['model']['createPositionAt'](_0x2e67cb[_0x2e67cb['length']-0x1],'end'));_0x2770ef['model']['change'](()=>{_0x17bc17['markBlockFormat'](_0xa8e77c,{'commandName':_0x497709,'commandParams':[],'formatGroupId':'listIndent'},function(_0x270908){const _0x39aed1=new Set();for(const _0x121226 of _0x270908){let _0x295e76=_0x121226['nextSibling'];for(;_0x295e76&&_0x295e76['getAttribute']('listIndent')>_0x121226['getAttribute']('listIndent');)_0x39aed1['add'](_0x295e76),_0x295e76=_0x295e76['nextSibling'];}return Array['from'](_0x39aed1);}(_0x2e67cb));});};}_0x17bc17['enableCommand']('numberedList',_0x4c350d('numberedList')),_0x17bc17['enableCommand']('bulletedList',_0x4c350d('bulletedList')),_0xb9e078&&_0x17bc17['enableCommand']('todoList',_0x4c350d('todoList')),_0x17bc17['enableCommand']('indentList',_0x2b3793('indentList')),_0x17bc17['enableCommand']('outdentList',_0x2b3793('outdentList')),_0xb9e078&&_0x17bc17['enableCommand']('checkTodoList',()=>{const _0xc193b6=_0x2770ef['commands']['get']('checkTodoList'),_0x54cf48=Array['from'](_0xc193b6['_selectedElements']);_0x54cf48['filter'](_0xbecf30=>_0xbecf30['getAttribute']('todoListChecked')!=_0xc193b6['value']),_0x2770ef['model']['change'](()=>{for(const _0x359c5b of _0x54cf48)_0x17bc17['markBlockFormat'](_0x359c5b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc193b6['value']}]});});}),_0x17bc17['descriptionFactory']['registerElementLabel']('listItem',_0x4b85f0=>o(_0x540896,'ELEMENT_LIST_ITEM',_0x4b85f0)),_0x17bc17['descriptionFactory']['registerDescriptionCallback'](_0xeaf4da=>{if('formatBlock'!=_0xeaf4da['type']&&'formatInline'!=_0xeaf4da['type'])return;const {data:_0x3b26de}=_0xeaf4da;if(_0x3b26de){if('numberedList'==_0x3b26de['commandName']||'bulletedList'==_0x3b26de['commandName']||'todoList'==_0x3b26de['commandName'])switch(_0x3b26de['commandName']['replace']('List','')){case'bulleted':return _0x3828da(o(_0x540896,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3828da(o(_0x540896,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3828da(o(_0x540896,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3b26de['commandName'])return{'type':'format','content':o(_0x540896,'*Indent:*\x20%0',o(_0x540896,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3b26de['commandName'])return{'type':'format','content':o(_0x540896,'*Outdent:*\x20%0',o(_0x540896,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3b26de['commandName'])return _0x3b26de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x540896,'*Check\x20item*')}:{'type':'format','content':o(_0x540896,'*Uncheck\x20item*')};}function _0x3828da(_0x324ada){return{'type':'format','content':o(_0x540896,'*Change\x20to:*\x20%0',_0x324ada)};}});}}function fe(_0x550ffc){const _0x2e771e=_0x550ffc['getAttribute']('listIndent');if(0x0==_0x2e771e)return _0x550ffc;let _0x30d91d=_0x550ffc;for(;_0x550ffc['previousSibling']&&_0x550ffc['previousSibling']['is']('element','listItem');){const _0x6629=_0x550ffc['previousSibling']['getAttribute']('listIndent');if(_0x6629==_0x2e771e)_0x30d91d=_0x550ffc['previousSibling'];else{if(_0x6629<_0x2e771e)break;}_0x550ffc=_0x550ffc['previousSibling'];}return _0x30d91d;}function ue(_0x53992e){const _0x406f39=[];if(_0x53992e['is']('element','listItem')&&_0x53992e['getAttribute']('listIndent')>0x0){let _0x4ebcd4=_0x53992e['nextSibling'];for(;_0x4ebcd4&&'listItem'==_0x4ebcd4['name']&&_0x4ebcd4['getAttribute']('listIndent')==_0x53992e['getAttribute']('listIndent');)_0x406f39['push'](_0x4ebcd4),_0x4ebcd4=_0x4ebcd4['nextSibling'];}return _0x406f39;}class W extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x80e49b=this['editor']['config']['get']('list.properties'),_0x12f0e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x80e49b['styles']&&_0x12f0e2['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x80e49b['reversed']&&_0x12f0e2['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x80e49b['startIndex']&&_0x12f0e2['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x12f0e2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ebbaf,_0x3a7c52={}){const _0x111e6c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a9f6a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x111e6c['markMultiRangeBlockFormat'](_0x5a9f6a,{'commandName':'listStyle','commandParams':[{'type':_0x3a7c52['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2cb191,_0x4f5fe3={}){const _0x69f763=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe07c88=this['_getSuggestionBlocks'](_0x1b9de6=>_0x1b9de6['is']('element','listItem')&&'numbered'===_0x1b9de6['getAttribute']('listType'));if(_0xe07c88['length']<0x1)return;const _0xb9cca8=_0xe07c88['map'](_0x109ef0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x109ef0,'before'),this['editor']['model']['createPositionAt'](_0x109ef0,0x0)));this['editor']['model']['change'](()=>{_0x69f763['markMultiRangeBlockFormat'](_0xb9cca8,{'commandName':'listReversed','commandParams':[{'reversed':_0x4f5fe3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xd266e2,_0x157395={}){const _0x5b3445=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f6b68=this['_getSuggestionBlocks'](_0x110647=>_0x110647['is']('element','listItem')&&'numbered'===_0x110647['getAttribute']('listType'));if(_0x1f6b68['length']<0x1)return;const _0x1eb159=_0x1f6b68['map'](_0x329a1a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x329a1a,'before'),this['editor']['model']['createPositionAt'](_0x329a1a,0x0)));this['editor']['model']['change'](()=>{_0x5b3445['markMultiRangeBlockFormat'](_0x1eb159,{'commandName':'listStart','commandParams':[{'startIndex':_0x157395['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x20101e){if('formatBlock'!=_0x20101e['type']&&'formatInline'!=_0x20101e['type'])return;const _0x4bc9bc=this['editor']['locale'],{data:_0x14bf84}=_0x20101e;if(!_0x14bf84)return;let _0x1bf93a,_0x480347;switch(_0x14bf84['commandName']){case'listStyle':_0x1bf93a='*Change\x20to:*\x20%0',_0x480347={'type':'format','content':o(_0x4bc9bc,_0x1bf93a,o(_0x4bc9bc,this['_getTranslationKeyForListStyle'](_0x14bf84['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bf93a=_0x14bf84['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x480347={'type':'format','content':o(_0x4bc9bc,_0x1bf93a)};break;case'listStart':_0x1bf93a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x480347={'type':'format','content':o(_0x4bc9bc,_0x1bf93a,_0x14bf84['commandParams'][0x0]['startIndex'])};}return _0x480347;}['_getSuggestionBlocksForListStyle'](){const _0x4cd317=this['editor']['plugins']['get']('LegacyListUtils');let _0x508b84=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x508b84[0x0]?.['is']('element','listItem')&&_0x508b84['unshift'](..._0x4cd317['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x508b84[_0x508b84['length']-0x1]?.['is']('element','listItem')&&_0x508b84['push'](..._0x4cd317['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x508b84=[...new Set(_0x508b84)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x508b84=_0x508b84['filter'](_0x1d9317=>_0x1d9317['is']('element','listItem'))),_0x508b84;}['_getSuggestionBlocks'](_0x361358){const _0x4e490b=this['editor']['plugins']['get']('LegacyListUtils');let _0xf3d1da=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x361358)['map'](_0xa35448=>{const _0x1cc480=this['editor']['model']['createPositionAt'](_0xa35448,0x0);return[..._0x4e490b['getSiblingNodes'](_0x1cc480,'backward'),..._0x4e490b['getSiblingNodes'](_0x1cc480,'forward')];})['flat']();return _0xf3d1da=[...new Set(_0xf3d1da)],_0xf3d1da;}['_getTranslationKeyForListStyle'](_0x4a72cb){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4a72cb)||'default')['toUpperCase']()+'_LIST_'+_0x4a72cb['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3cc490{['afterInit'](){const _0x2febea=this['editor'];if(!_0x2febea['plugins']['has']('MediaEmbedEditing'))return;const _0x5a5010=_0x2febea['plugins']['get']('TrackChangesEditing'),_0x20a4fe=_0x2febea['locale'];_0x5a5010['enableCommand']('mediaEmbed'),_0x5a5010['descriptionFactory']['registerElementLabel']('media',_0x493bb8=>o(_0x20a4fe,'ELEMENT_MEDIA',_0x493bb8)),_0x2febea['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x517065,{writer:_0x5808db,options:_0x53c83b})=>{if(_0x53c83b['showSuggestionHighlights'])return _0x5808db['createEmptyElement']('div');},'converterPriority':'high'}),_0x2febea['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4fa3de,_0x5c61ce,_0x1adb16)=>{_0x1adb16['options']['showSuggestionHighlights']&&_0x4fa3de['stop']();},{'priority':'high'});}}class mt extends _0x3cc490{['afterInit'](){const _0x2a74a0=this['editor'];_0x2a74a0['plugins']['has']('MentionEditing')&&_0x2a74a0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3cc490{['afterInit'](){const _0x587103=this['editor'];if(!_0x587103['plugins']['has']('MergeFieldsEditing'))return;_0x587103['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x587103['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0xe731dc=_0x587103['plugins']['get']('TrackChangesEditing'),_0x35980d=_0x587103['locale'];_0xe731dc['descriptionFactory']['registerElementLabel']('mergeField',_0x54f880=>o(_0x35980d,'ELEMENT_MERGE_FIELD',_0x54f880)),_0xe731dc['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5d2834=>o(_0x35980d,'ELEMENT_MERGE_FIELD',_0x5d2834)),_0xe731dc['descriptionFactory']['registerDescriptionCallback'](_0x90d188=>{if('insertion'!=_0x90d188['type']&&'deletion'!=_0x90d188['type'])return;const _0x376308=_0x90d188['getContainedElement']();if(null==_0x376308)return;if(!_0x376308['is']('element','mergeField')&&!_0x376308['is']('element','mergeFieldBlock'))return;const _0x44dc40=_0x587103['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x376308['getAttribute']('id'));return'insertion'==_0x90d188['type']?{'type':'insertion','content':o(_0x35980d,'*Insert:*\x20%0','\x22'+_0x44dc40+'\x22\x20'+o(_0x35980d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x35980d,'*Remove:*\x20%0','\x22'+_0x44dc40+'\x22\x20'+o(_0x35980d,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3cc490{['afterInit'](){const _0x35a03d=this['editor'],_0x5e7692=_0x35a03d['plugins']['get']('TrackChangesEditing');_0x35a03d['plugins']['has']('MultiLevelList')&&(_0x5e7692['enableDefaultAttributesIntegration']('multiLevelList'),_0x5e7692['registerBlockAttribute']('listMarkerStyle'),_0x5e7692['descriptionFactory']['registerDescriptionCallback'](_0x34988f=>this['handleDescriptions'](_0x34988f)));}['handleDescriptions'](_0x313121){const _0x31bc81=this['editor']['locale'],{data:_0x44830d}=_0x313121,_0x3e1e7e={'type':'format','content':''};if(_0x44830d&&'listMarkerStyle'==_0x44830d['key']){if(!_0x44830d['oldValue'])return{'type':'format','content':o(_0x31bc81,'*Set\x20format:*\x20%0',o(_0x31bc81,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44830d['newValue']+')'};if(!_0x44830d['newValue']){let _0x368648=_0x313121['head'];for(;_0x368648;){if(_0x368648['data']&&'listType'==_0x368648['data']['key']&&_0x368648['data']['newValue'])return _0x3e1e7e;_0x368648=_0x368648['next'];}return{'type':'format','content':o(_0x31bc81,'*Remove\x20format:*\x20%0',o(_0x31bc81,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x44830d['oldValue']+')'};}}}}class kt extends _0x3cc490{['afterInit'](){const _0x5b401e=this['editor'];if(!_0x5b401e['plugins']['has']('PageBreakEditing'))return;_0x5b401e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5e10bc=_0x5b401e['plugins']['get']('TrackChangesEditing'),_0x487ec5=_0x5b401e['locale'];_0x5e10bc['descriptionFactory']['registerElementLabel']('pageBreak',_0x4175e1=>o(_0x487ec5,'ELEMENT_PAGE_BREAK',_0x4175e1));}}class bt extends _0x3cc490{['afterInit'](){const _0x1f666b=this['editor'];if(!_0x1f666b['plugins']['has']('Paragraph'))return;const _0x473d13=_0x1f666b['locale'],_0x3968b7=_0x1f666b['plugins']['get']('TrackChangesEditing');_0x3968b7['descriptionFactory']['registerElementLabel']('paragraph',_0x1c730c=>o(_0x473d13,'ELEMENT_PARAGRAPH',_0x1c730c)),_0x3968b7['enableDefaultAttributesIntegration']('paragraph'),_0x3968b7['enableCommand']('insertParagraph'),_0x1f666b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1f666b),{'priority':'highest'}),_0x1f666b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3e3f9f,_0x27cc35,_0x119c27)=>{_0x119c27['options']['showSuggestionHighlights']&&nr(_0x1f666b,{'showActiveMarker':!0x1})(_0x3e3f9f,_0x27cc35,_0x119c27);},{'priority':'highest'});const _0x137683=_0x3968b7['descriptionFactory'];_0x137683['registerDescriptionCallback'](_0x5a1414=>{if('insertion'!==_0x5a1414['type'])return;const {start:_0x28e3d1,end:_0x43e7a5}=_0x5a1414['getFirstRange']();if(!_0x28e3d1['isTouching'](_0x43e7a5)||!_0x28e3d1['nodeAfter'])return;const _0x2fc735=_0x1f666b['model']['schema'],_0x1b22fa=_0x28e3d1['nodeAfter'];return _0x2fc735['isBlock'](_0x1b22fa)&&!_0x2fc735['isLimit'](_0x1b22fa)&&_0x2fc735['checkChild'](_0x1b22fa,'$text')?{'type':'insertion','content':o(_0x473d13,'*Insert:*\x20%0',_0x137683['getItemLabel'](_0x1b22fa,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52d500=this['editor'],_0x37b9de=_0x52d500['locale'];_0x52d500['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bd3f0=>{if('formatBlock'!=_0x3bd3f0['type'])return;const {data:_0x36b3b0}=_0x3bd3f0;return _0x36b3b0&&'paragraph'==_0x36b3b0['commandName']?{'type':'format','content':o(_0x37b9de,'*Change\x20to:*\x20%0',o(_0x37b9de,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xeb859e,{showActiveMarker:_0x446960=!0x0}={}){return(_0x4a270d,_0x3e3f68,_0x5d72b8)=>{const _0xd0592c=_0xeb859e['plugins']['get']('TrackChangesEditing'),_0x49d35a=_0x3e3f68['markerRange']['start'],_0x5a0764=_0x3e3f68['markerRange']['end'],_0x132654=_0xeb859e['model']['schema'];if(!_0x49d35a['isTouching'](_0x5a0764)||!_0x49d35a['nodeAfter'])return;const _0x29ce1e=_0x49d35a['nodeAfter'];if(_0x132654['isBlock'](_0x29ce1e)&&!_0x132654['isLimit'](_0x29ce1e)&&_0x132654['checkChild'](_0x29ce1e,'$text')){if(!_0x5d72b8['consumable']['consume'](_0x3e3f68['markerRange'],_0x4a270d['name']))return;const {authorId:_0x344c09}=_0xd0592c['_splitMarkerName'](_0x3e3f68['markerName']),_0x2b0903=_0x5d72b8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x344c09}),_0x53650d=_0x5d72b8['mapper']['toViewPosition'](_0x5a0764);_0x446960&&_0xd0592c['activeMarkers']['includes'](_0x3e3f68['markerName'])&&_0x5d72b8['writer']['addClass']('ck-suggestion-marker--active',_0x2b0903),_0x5d72b8['writer']['insert'](_0x53650d,_0x2b0903),_0x5d72b8['mapper']['bindElementToMarker'](_0x2b0903,_0x3e3f68['markerName']);}};}class wt extends _0x3cc490{['afterInit'](){const _0x2a98aa=this['editor'];if(!_0x2a98aa['plugins']['has']('RemoveFormatEditing'))return;_0x2a98aa['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd1e797=this['editor'];_0xd1e797['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222641=>{if('formatBlock'!=_0x222641['type']&&'formatInline'!=_0x222641['type'])return;const {data:_0x25cf99}=_0x222641;return _0x25cf99&&'removeFormat'==_0x25cf99['commandName']?{'type':'format','content':o(_0xd1e797['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3cc490{['afterInit'](){const _0x423f0c=this['editor'];if(!_0x423f0c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x46f677=_0x423f0c['plugins']['get']('TrackChangesEditing');_0x46f677['enableCommand']('goToPreviousRestrictedEditingException'),_0x46f677['enableCommand']('goToNextRestrictedEditingException');const _0x26f5ed=_0x423f0c['plugins']['get']('RestrictedEditingModeEditing');_0x26f5ed['enableCommand']('trackChanges'),_0x26f5ed['enableCommand']('acceptSuggestion'),_0x26f5ed['enableCommand']('discardSuggestion'),_0x26f5ed['enableCommand']('acceptAllSuggestions'),_0x26f5ed['enableCommand']('discardAllSuggestions'),_0x26f5ed['enableCommand']('acceptSelectedSuggestions'),_0x26f5ed['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3cc490{static get['requires'](){return[_0xca3ce1];}['init'](){const _0x585a9e=this['editor'],_0x210f4f=_0x585a9e['plugins']['get']('TrackChangesEditing');_0x210f4f['enableCommand']('shiftEnter'),_0x585a9e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x585a9e),{'priority':'high'}),_0x585a9e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x585a9e),{'priority':'high'}),_0x585a9e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4cffd0,_0x1fdaac,_0x24ab88)=>{_0x24ab88['options']['showSuggestionHighlights']&&ge(_0x585a9e,{'showActiveMarker':!0x1})(_0x4cffd0,_0x1fdaac,_0x24ab88);}),_0x210f4f['descriptionFactory']['registerElementLabel']('softBreak',_0x3208a9=>o(_0x585a9e['locale'],'ELEMENT_LINE_BREAK',_0x3208a9));}}function ge(_0x20cf48,{showActiveMarker:_0x4826b4=!0x0}={}){return(_0xb7e6ab,_0x498ad0,_0x528242)=>{const _0x2db28f=_0x20cf48['plugins']['get']('TrackChangesEditing');if(!_0x528242['consumable']['test'](_0x498ad0['markerRange'],_0xb7e6ab['name']))return;const _0x2410b3=_0x20cf48['model'];for(const _0x1b723a of _0x498ad0['markerRange']['getItems']()){if(!_0x1b723a['is']('element','softBreak'))continue;const _0x523ac2='deletion'==_0x498ad0['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x8e177f}=_0x2db28f['_splitMarkerName'](_0x498ad0['markerName']),_0x49e979=_0x528242['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x523ac2,'data-author-id':_0x8e177f}),_0x557c90=_0x528242['mapper']['toViewPosition'](_0x2410b3['createPositionBefore'](_0x1b723a));_0x4826b4&&_0x2db28f['activeMarkers']['includes'](_0x498ad0['markerName'])&&_0x528242['writer']['addClass']('ck-suggestion-marker--active',_0x49e979),_0x528242['writer']['insert'](_0x557c90,_0x49e979),_0x528242['mapper']['bindElementToMarker'](_0x49e979,_0x498ad0['markerName']);}};}class St extends _0x3cc490{['afterInit'](){const _0x595244=this['editor'],_0x4904e9=_0x595244['model'],_0x4c9c28=_0x595244['locale'];if(!_0x595244['plugins']['has']('StandardEditingModeEditing'))return;const _0xad319e=_0x595244['plugins']['get']('TrackChangesEditing'),_0x27f2bf='restrictedEditingException',_0x555410=_0x595244['commands']['get'](_0x27f2bf);_0xad319e['enableCommand'](_0x27f2bf,(_0x53ed8c,_0x3f7cdd={})=>{const _0x12271c=_0x4904e9['document']['selection'];if(_0x12271c['isCollapsed'])return void _0x53ed8c(_0x3f7cdd);const _0x3c6816=void 0x0!==_0x3f7cdd['forceValue']?_0x3f7cdd['forceValue']:!_0x555410['value'];_0x4904e9['change'](()=>{const _0x50d96a=Array['from'](_0x12271c['getRanges']());for(const _0x448f33 of _0x50d96a){const _0x516621=_0x3c6816?[_0x448f33]:io(_0x27f2bf,_0x448f33,_0x4904e9);for(const _0x5e0858 of _0x516621)_0xad319e['markInlineFormat'](_0x5e0858,{'commandName':_0x27f2bf,'commandParams':[{'forceValue':_0x3c6816}]});}});}),_0xad319e['descriptionFactory']['registerDescriptionCallback'](_0x11311d=>{if('formatBlock'!=_0x11311d['type']&&'formatInline'!=_0x11311d['type'])return;const {data:_0x1e034d}=_0x11311d;return _0x1e034d&&_0x1e034d['commandName']==_0x27f2bf?_0x1e034d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c9c28,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4c9c28,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3cc490{['afterInit'](){const _0x51621b=this['editor'];if(!_0x51621b['plugins']['has']('Style')||!_0x51621b['plugins']['has']('DataSchema'))return;const _0x22fbaf=_0x51621b['plugins']['get']('TrackChangesEditing'),_0x4dcc28=_0x51621b['locale'],_0xaf81b5=_0x51621b['config']['get']('style')||{},_0x302a33=_0x51621b['plugins']['get']('GeneralHtmlSupport'),_0x25bd46=_0x51621b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x51621b['plugins']['get']('DataSchema'),_0xaf81b5['definitions']);_0x22fbaf['enableDefaultAttributesIntegration']('style');const _0x49c620=new Set();for(const _0x5d30cb of _0x25bd46['block']){const _0x29070c=_0x302a33['getGhsAttributeNameForElement'](_0x5d30cb['element']);_0x49c620['add'](_0x29070c);}const _0x1c70f6=new Set();for(const _0x427a16 of _0x25bd46['inline']){const _0x3da209=_0x302a33['getGhsAttributeNameForElement'](_0x427a16['element']);_0x1c70f6['add'](_0x3da209);for(const _0x266767 of _0x427a16['ghsAttributes'])_0x1c70f6['add'](_0x266767);}for(const _0x52b6e3 of _0x49c620)_0x22fbaf['registerBlockAttribute'](_0x52b6e3),_0x22fbaf['descriptionFactory']['registerAttributeLabel'](_0x52b6e3,o(_0x4dcc28,'FORMAT_STYLE'));for(const _0x374660 of _0x1c70f6)_0x22fbaf['registerInlineAttribute'](_0x374660),_0x22fbaf['descriptionFactory']['registerAttributeLabel'](_0x374660,o(_0x4dcc28,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x411722=this['editor'],_0x4caf2c=_0x411722['locale'];_0x411722['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11849e=>{if('formatBlock'!=_0x11849e['type']&&'formatInline'!=_0x11849e['type'])return;const {data:_0x2af801}=_0x11849e;return _0x2af801&&'style'===_0x2af801['commandName']?_0x2af801['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4caf2c,'*Set\x20format:*\x20%0',_0x2af801['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4caf2c,'*Remove\x20format:*\x20%0',_0x2af801['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3cc490{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x53f117){super(_0x53f117),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4e8fff=this['editor'],_0x5c7cef=_0x4e8fff['model']['document']['selection'];if(!_0x4e8fff['plugins']['has']('TableEditing'))return;const _0xfd370e=_0x4e8fff['locale'],_0x132408=_0x4e8fff['plugins']['get']('TrackChangesEditing'),_0x4ed272=_0x4e8fff['plugins']['get']('TableUtils');_0x132408['descriptionFactory']['registerElementLabel']('table',_0xf8cf18=>o(_0xfd370e,'ELEMENT_TABLE',_0xf8cf18)),this['_setupColumnsRowsFixing'](),_0x132408['enableCommand']('insertTable'),_0x132408['enableCommand']('selectTableRow'),_0x132408['enableCommand']('selectTableColumn');for(const _0x389165 of['insertTableRowAbove','insertTableRowBelow']){const _0x2532c9=_0x4e8fff['commands']['get'](_0x389165);_0x132408['enableCommand'](_0x389165,_0x5a06a1=>{_0x4e8fff['model']['change'](_0x2e7476=>{_0x5a06a1();const _0x576cd0='above'===_0x2532c9['order'],_0x9a76ea=_0x4ed272['getSelectionAffectedTableCells'](_0x5c7cef),_0x1f4398=_0x4ed272['getRowIndexes'](_0x9a76ea),_0x54987c=_0x576cd0?_0x1f4398['first']-0x1:_0x1f4398['last']+0x1,_0x3a101b=_0x9a76ea[0x0]['findAncestor']('table'),_0x3b1347=_0x4ed272['createTableWalker'](_0x3a101b,{'startRow':_0x54987c,'endRow':_0x54987c}),_0xc2deb0=Array['from'](_0x3b1347)['map'](_0x26f5ec=>_0x2e7476['createRangeOn'](_0x26f5ec['cell']));_0x132408['markMultiRangeInsertion'](_0xc2deb0,'tableRow');});});}for(const _0x11f655 of['insertTableColumnLeft','insertTableColumnRight']){const _0x35791d=_0x4e8fff['commands']['get'](_0x11f655);_0x132408['enableCommand'](_0x11f655,_0x3c6019=>{_0x4e8fff['model']['change'](_0x242768=>{_0x3c6019();const _0x1db42b='left'===_0x35791d['order'],_0x2c05ee=_0x4ed272['getSelectionAffectedTableCells'](_0x5c7cef),_0x379afb=_0x4ed272['getColumnIndexes'](_0x2c05ee),_0x1c8577=_0x1db42b?_0x379afb['first']-0x1:_0x379afb['last']+0x1,_0xabf43a=_0x2c05ee[0x0]['findAncestor']('table'),_0x16c1f2=_0x4ed272['createTableWalker'](_0xabf43a,{'startRow':0x0,'column':_0x1c8577,'includeAllSlots':!0x1}),_0x4a10dc=Array['from'](_0x16c1f2)['map'](_0x2a606a=>_0x242768['createRangeOn'](_0x2a606a['cell']));_0x132408['markMultiRangeInsertion'](_0x4a10dc,'tableColumn');});});}for(const _0x2ce554 of['removeTableRow','removeTableColumn']){const _0x1d674e=_0x2ce554['substr'](0xb),_0x48e412=_0x1d674e['toLowerCase'](),_0x7e5bac=_0x48e412['substr'](0x0,0x3)+'span',_0x5989a5='table'+_0x1d674e,_0x2a7db3='min'+_0x1d674e,_0x2343fa='max'+_0x1d674e;_0x132408['enableCommand'](_0x2ce554,()=>{_0x4e8fff['model']['change'](_0x2035e0=>{const _0x15ddc6=_0x4ed272['getSelectionAffectedTableCells'](_0x5c7cef),_0x349b09=_0x15ddc6[0x0]['findAncestor']('table');let _0x3f35f0;if('removeTableRow'==_0x2ce554){const _0x2f2615=_0x4ed272['getRowIndexes'](_0x15ddc6);_0x3f35f0={'startRow':_0x2f2615['first'],'endRow':_0x2f2615['last'],'includeAllSlots':!0x0};}else{const _0x369ab3=_0x4ed272['getColumnIndexes'](_0x15ddc6);_0x3f35f0={'startColumn':_0x369ab3['first'],'endColumn':_0x369ab3['last'],'includeAllSlots':!0x0};}const _0x4c97fa=_0x4ed272['createTableWalker'](_0x349b09,_0x3f35f0),_0x6863b6=Array['from'](_0x4c97fa)['map'](({cell:_0x8bc333})=>_0x8bc333),_0x2df059=be(_0x6863b6['filter'](_0x196eab=>_0x196eab['hasAttribute'](_0x7e5bac))),_0x1f9f2f=be(_0x6863b6['filter'](_0x5b55ab=>!_0x5b55ab['hasAttribute'](_0x7e5bac)))['map'](_0x51a2fe=>_0x2035e0['createRangeOn'](_0x51a2fe)),_0x470d28=_0x132408['markMultiRangeDeletion'](_0x1f9f2f,_0x5989a5);if(_0x470d28&&('tableRow'==_0x470d28['subType']||'tableColumn'==_0x470d28['subType'])){const _0x2d7e46=this['_getSuggestionCoords'](_0x470d28);for(const _0x393220 of _0x2df059){const _0x2c33c6=_0x2035e0['createRangeOn'](_0x393220),_0x1c2290=_0x4ed272['getCellLocation'](_0x393220),_0x414477=_0x393220['getAttribute'](_0x7e5bac)-0x1,_0xbfe3bc=_0x2d7e46[_0x2a7db3],_0x274582=_0x2d7e46[_0x2343fa];_0xbfe3bc<=_0x1c2290[_0x48e412]&&_0x1c2290[_0x48e412]+_0x414477<=_0x274582&&_0x470d28['addRange'](_0x2c33c6);}}});});}function _0x38336c(_0x419e45){const _0x594dab=Array['from'](_0x5c7cef['getRanges']())['map'](_0x55f078=>_0x5ed280['fromRange'](_0x55f078));_0x4e8fff['model']['change'](_0x17d474=>{const _0x2d8b5=_0x17d474['batch'];_0x419e45=_0x419e45['filter'](_0x3db5bc=>'$graveyard'!=_0x3db5bc['root']['rootName']),_0x17d474['setSelection'](_0x419e45),_0x4e8fff['commands']['get']('removeTableRow')['refresh'](),_0x4e8fff['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4e8fff['model']['enqueueChange'](()=>{_0x4e8fff['model']['enqueueChange'](_0x2d8b5,_0x11e0fb=>{const _0x2bf419=_0x594dab['filter'](_0x412cc0=>'$graveyard'!=_0x412cc0['root']['rootName']);_0x2bf419['length']>0x0&&_0x11e0fb['setSelection'](_0x2bf419);for(const _0x9c9543 of _0x594dab)_0x9c9543['detach']();});});});}function _0x4758b3(_0x421bac){_0x4e8fff['model']['change'](_0xa86c=>{const _0x2f7fac=Array['from'](_0x5c7cef['getRanges']())['map'](_0x52f84a=>_0x5ed280['fromRange'](_0x52f84a)),_0x234d2=[];for(const _0x2d7fa5 of _0x421bac)for(const _0x5962e5 of _0x2d7fa5['getItems']({'shallow':!0x0}))_0x234d2['push'](_0x5962e5);for(const _0x549e72 of _0x234d2)'$graveyard'!=_0x549e72['root']['rootName']&&(_0xa86c['setSelection'](_0xa86c['createPositionAt'](_0x549e72,0x0)),_0x4e8fff['commands']['get']('removeTableColumn')['refresh'](),_0x4e8fff['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5a0f62=_0x2f7fac['filter'](_0x1262e6=>'$graveyard'!=_0x1262e6['root']['rootName']);_0x5a0f62['length']>0x0&&_0xa86c['setSelection'](_0x5a0f62);for(const _0xbc7be5 of _0x2f7fac)_0xbc7be5['detach']();});}function _0x34823e(_0xdc4b86,_0x946a4f){return _0x946a4f['every'](_0x3a77bc=>_0xdc4b86['some'](_0x4cd637=>_0x4cd637['end']['isEqual'](_0x3a77bc['start'])||_0x3a77bc['end']['isEqual'](_0x4cd637['start'])));}function _0x3f53a4(_0x41b3ee,_0x2b1bc8){return!_0x41b3ee['some'](_0x33e98f=>_0x2b1bc8['some'](_0x4f867d=>_0x33e98f['isIntersecting'](_0x4f867d)))&&_0x41b3ee['some'](_0x17d7c7=>_0x2b1bc8['some'](_0x2f1112=>_0x17d7c7['end']['isTouching'](_0x2f1112['start'])));}_0x4e8fff['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3971aa,_0x697ba9,_0x95ab16)=>{if(!_0x95ab16['options']['showSuggestionHighlights'])return;const _0x1e45d8=_0x697ba9['item'];if(!_0x1e45d8)return;const _0x2737c8=_0x95ab16['mapper']['toViewElement'](_0x1e45d8);function _0x30724b(_0x488f3a){return Array['isArray'](_0x488f3a)?_0x488f3a:[_0x488f3a];}_0x2737c8&&'tableCell'===_0x1e45d8['name']&&_0x4976b6(_0x2737c8,_0x95ab16['writer'],(_0x1421ee,_0x4780fa,_0x45d912)=>_0x45d912['addClass'](_0x30724b(_0x4780fa['classes']),_0x1421ee),(_0x90142a,_0x16ae85,_0x46f3bf)=>_0x46f3bf['removeClass'](_0x30724b(_0x16ae85['classes']),_0x90142a));},{'priority':'highest'}),_0x132408['descriptionFactory']['registerDescriptionCallback'](_0x45b8e0=>{if('insertion'!=_0x45b8e0['type']&&'deletion'!=_0x45b8e0['type'])return;const _0x2187bd=_0x45b8e0['getContainedElement']();if(null!=_0x2187bd&&_0x2187bd['is']('element','table')){if('insertion'==_0x45b8e0['type']){const _0x147a72=_0x45b8e0['getItems']()['filter'](_0x6b169d=>_0x6b169d['is']('$textProxy'))['map'](_0x443730=>_0x443730['data']);if(_0x147a72['length'])return{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x147a72['join']('\x20')+'\x22'))};}if('deletion'==_0x45b8e0['type']){const _0x5c793b=_0x45b8e0['getItems']()['filter'](_0x5e5386=>_0x5e5386['is']('$textProxy'))['map'](_0x4f2183=>_0x4f2183['data']);if(_0x5c793b['length'])return{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c793b['join']('\x20')+'\x22'))};}}}),_0x132408['descriptionFactory']['registerDescriptionCallback'](_0x205525=>{if('tableRow'==_0x205525['subType']){const _0x580cb0=_0x205525['getItems']()['filter'](_0x550b85=>_0x550b85['is']('$textProxy'))['map'](_0x39ae93=>_0x39ae93['data']),_0x395d4f=this['_getSuggestionCoords'](_0x205525),_0x4fb438=_0x395d4f['maxRow']-_0x395d4f['minRow']+0x1;if('insertion'==_0x205525['type'])return _0x580cb0['length']?{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fb438,'\x22'+_0x580cb0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_ROW',_0x4fb438))};if('deletion'==_0x205525['type'])return _0x580cb0['length']?{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4fb438,'\x22'+_0x580cb0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_ROW',_0x4fb438))};}if('tableColumn'==_0x205525['subType']){const _0x201c10=_0x205525['getItems']()['filter'](_0x2201e0=>_0x2201e0['is']('$textProxy'))['map'](_0x147a16=>_0x147a16['data']),_0x1436be=this['_getSuggestionCoords'](_0x205525),_0xaa6564=_0x1436be['maxColumn']-_0x1436be['minColumn']+0x1;if('insertion'==_0x205525['type'])return _0x201c10['length']?{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xaa6564,'\x22'+_0x201c10['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xfd370e,'*Insert:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_COLUMN',_0xaa6564))};if('deletion'==_0x205525['type'])return _0x201c10['length']?{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xaa6564,'\x22'+_0x201c10['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xfd370e,'*Remove:*\x20%0',o(_0xfd370e,'ELEMENT_TABLE_COLUMN',_0xaa6564))};}}),_0x132408['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x38336c),_0x132408['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x38336c),_0x132408['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4758b3),_0x132408['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4758b3),_0x132408['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x34823e),_0x132408['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x34823e),_0x132408['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3f53a4),_0x132408['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3f53a4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f8116=this['editor'],_0x4612ef=_0x4f8116['model']['document']['selection'];return(_0x276c81,_0x375a31)=>{_0x4f8116['model']['change'](_0x3b7ac9=>{const {commandName:_0x21c233,commandParams:_0x2e4cb3}=_0x375a31;let _0x19710c=_0x276c81[0x0]['end']['nodeBefore'];_0x2e4cb3&&_0x2e4cb3[0x0]&&!0x1===_0x2e4cb3[0x0]['forceValue']&&(_0x19710c=_0x276c81[0x0]['start']['nodeAfter']);const _0x16cf20=_0x3b7ac9['createRangeIn'](_0x19710c);if('$graveyard'==_0x16cf20['root']['rootName'])return;const _0x5dca03=Array['from'](_0x4612ef['getRanges']())['map'](_0x5d404e=>_0x5ed280['fromRange'](_0x5d404e));_0x3b7ac9['setSelection'](_0x16cf20),_0x4f8116['commands']['get'](_0x21c233)['refresh'](),_0x2e4cb3['push']({'forceDefaultExecution':!0x0}),_0x4f8116['execute'](_0x21c233,..._0x2e4cb3);const _0x1723e5=_0x5dca03['filter'](_0x313341=>'$graveyard'!=_0x313341['root']['rootName']);_0x1723e5['length']>0x0&&_0x3b7ac9['setSelection'](_0x1723e5);for(const _0x274d7f of _0x5dca03)_0x274d7f['detach']();});};}['_getCoordsForCells'](_0x2130d0){const _0x18b742=this['editor']['plugins']['get']('TableUtils');let _0x4360fa=Number['MAX_SAFE_INTEGER'],_0x433a8b=Number['MIN_SAFE_INTEGER'],_0x11c75d=Number['MAX_SAFE_INTEGER'],_0x5359fc=Number['MIN_SAFE_INTEGER'];for(const _0x4cd234 of _0x2130d0){if('$graveyard'==_0x4cd234['root']['rootName'])continue;const {row:_0x150c05,column:_0x12a1b9}=_0x18b742['getCellLocation'](_0x4cd234),_0x17b7a0=_0x4cd234['hasAttribute']('rowspan')?_0x4cd234['getAttribute']('rowspan')-0x1:0x0,_0x272fd7=_0x4cd234['hasAttribute']('colspan')?_0x4cd234['getAttribute']('colspan')-0x1:0x0;_0x4360fa=_0x150c05<_0x4360fa?_0x150c05:_0x4360fa,_0x433a8b=_0x150c05+_0x17b7a0>_0x433a8b?_0x150c05+_0x17b7a0:_0x433a8b,_0x11c75d=_0x12a1b9<_0x11c75d?_0x12a1b9:_0x11c75d,_0x5359fc=_0x12a1b9+_0x272fd7>_0x5359fc?_0x12a1b9+_0x272fd7:_0x5359fc;}return{'minRow':_0x4360fa,'maxRow':_0x433a8b,'minColumn':_0x11c75d,'maxColumn':_0x5359fc};}['_setupColumnsRowsFixing'](){const _0x5b5cea=this['editor'],_0x3a4fc1=_0x5b5cea['plugins']['get']('TrackChangesEditing'),_0x223d9a=_0x5b5cea['plugins']['get']('TableUtils');_0x5b5cea['model']['document']['on']('change:data',()=>{const _0x12df63=Array['from'](_0x5b5cea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32ae54,data:_0x24254a}of _0x12df63){const {group:_0x1e4364,id:_0x416d1e,subType:_0x2d34dd}=_0x3a4fc1['_splitMarkerName'](_0x32ae54);if('suggestion'!=_0x1e4364)continue;if(null!=_0x24254a['oldRange'])continue;const _0x26167f=_0x3a4fc1['getSuggestion'](_0x416d1e);this['_tablePostFixingSubtypes']['includes'](_0x2d34dd)&&this['_tableSuggestions']['add'](_0x26167f);}},{'priority':'low'});const _0x5417de=(_0x2e5954,_0x13e62a)=>{let _0x3945a1=!0x1;const _0x294313=_0x13e62a['createRangeOn'](_0x2e5954),_0x84277d=_0x2e5954['findAncestor']('table'),_0x319015=_0x223d9a['getCellLocation'](_0x2e5954);for(const _0x38a595 of this['_tableSuggestions']){const _0x44085a=_0x38a595['subType'],_0xbcc0ff=_0x44085a['startsWith']('tablePaste'),_0x49c711=_0x44085a['substr'](_0xbcc0ff?0xa:0x5),_0x126ae2=_0x49c711['toLowerCase'](),_0x3a6e55=_0x126ae2['substr'](0x0,0x3)+'span',_0x405759='min'+_0x49c711,_0x5c5bc4='max'+_0x49c711;if(!_0x38a595['isInContent'])continue;if(_0x84277d!=_0x38a595['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x38a595['isIntersectingWithRange'](_0x294313))continue;const _0x220bf7=_0x2e5954['hasAttribute'](_0x3a6e55)?_0x2e5954['getAttribute'](_0x3a6e55)-0x1:0x0,_0x524909=this['_getSuggestionCoords'](_0x38a595),_0x54f4cc=_0x524909[_0x405759],_0x4ff005=_0x524909[_0x5c5bc4];_0x54f4cc<=_0x319015[_0x126ae2]&&_0x319015[_0x126ae2]+_0x220bf7<=_0x4ff005&&(_0x38a595['addRange'](_0x294313),_0x3945a1=!0x0);}return _0x3945a1;};_0x5b5cea['model']['document']['registerPostFixer'](_0x1fecd7=>{let _0x3f64c7=!0x1;for(const _0x28809a of _0x5b5cea['model']['document']['differ']['getChanges']())if('insert'==_0x28809a['type']){if('tableRow'==_0x28809a['name']){for(const _0x518b62 of _0x28809a['position']['nodeAfter']['getChildren']())_0x3f64c7=_0x3f64c7||_0x5417de(_0x518b62,_0x1fecd7);}else'tableCell'==_0x28809a['name']&&(_0x3f64c7=_0x3f64c7||_0x5417de(_0x28809a['position']['nodeAfter'],_0x1fecd7));}return _0x3f64c7;});}['_getSuggestionCoords'](_0x20a0cf){return this['_getCoordsForCells'](_0x20a0cf['getRanges']()['map'](_0x4cfa57=>_0x4cfa57['start']['nodeAfter']));}}function be(_0xfb5cfb){return Array['from'](new Set(_0xfb5cfb)['values']());}class vt extends _0x3cc490{static get['requires'](){return[It];}['afterInit'](){const _0x541ad9=this['editor'],_0x25e5ad=_0x541ad9['model']['document']['selection'],_0x183490=_0x541ad9['locale'];if(!_0x541ad9['plugins']['has']('TableEditing'))return;const _0x39b191=_0x541ad9['plugins']['get']('TrackChangesEditing'),_0x51f5c8=_0x541ad9['plugins']['get']('TableUtils'),_0x3870cf=_0x541ad9['plugins']['get'](It);_0x3870cf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x39b191['enableCommand']('mergeTableCells',()=>{const _0x17463f=_0x51f5c8['getSelectionAffectedTableCells'](_0x541ad9['model']['document']['selection']);_0x541ad9['model']['change'](()=>{_0x39b191['markMultiRangeBlockFormat'](_0x17463f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x541ad9['commands']['get']('mergeTableCells')['on']('execute',(_0x48d01e,_0x4fa59f)=>{_0x541ad9['commands']['get']('trackChanges')['value']&&(_0x4fa59f['length']>0x0&&_0x4fa59f[_0x4fa59f['length']-0x1]&&_0x4fa59f[_0x4fa59f['length']-0x1]['forceDefaultExecution']||_0x39b191['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x48d01e['stop']());},{'priority':'highest'});for(const _0x34c144 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x398d13=_0x541ad9['commands']['get'](_0x34c144);_0x39b191['enableCommand'](_0x34c144,()=>{const _0xa4f6dd=_0x541ad9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ab6f0=>_0x3ab6f0['is']('element','tableCell')),_0x4f8fc8=_0x398d13['value'];_0x541ad9['model']['change'](()=>{_0x39b191['markMultiRangeBlockFormat']([_0xa4f6dd,_0x4f8fc8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x490322 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x54242a=_0x541ad9['commands']['get'](_0x490322);_0x39b191['enableCommand'](_0x490322,()=>{const _0x2bc5ec=_0x51f5c8['getSelectionAffectedTableCells'](_0x541ad9['model']['document']['selection'])[0x0],_0x42a724=_0x2bc5ec['findAncestor']('table'),{column:_0x24fd5f,row:_0x32f7a5}=_0x51f5c8['getCellLocation'](_0x2bc5ec);let _0x102960=[];if('horizontally'==_0x54242a['direction']){const _0x5b3711=_0x51f5c8['createTableWalker'](_0x42a724,{'startRow':_0x32f7a5,'endRow':_0x32f7a5,'includeAllSlots':!0x0});_0x102960=Array['from'](_0x5b3711)['map'](_0x411f08=>_0x411f08['cell']);}else{const _0x490742=_0x51f5c8['createTableWalker'](_0x42a724,{'column':_0x24fd5f,'includeAllSlots':!0x0});_0x102960=Array['from'](_0x490742)['map'](_0x5d1bec=>_0x5d1bec['cell']);}_0x541ad9['model']['change'](_0x2d0921=>{_0x39b191['markBlockFormat'](_0x2d0921['createRangeOn'](_0x2bc5ec),{'commandName':_0x490322,'commandParams':[]},_0x102960,_0x490322);});});}_0x39b191['descriptionFactory']['registerDescriptionCallback'](_0x11d945=>{if('formatBlock'!=_0x11d945['type']&&'formatInline'!=_0x11d945['type'])return;const {data:_0x3325ed}=_0x11d945;return _0x3325ed&&'mergeTableCells'==_0x3325ed['commandName']?{'type':'format','content':o(_0x183490,'*Merge\x20cells*')}:void 0x0;}),_0x39b191['descriptionFactory']['registerDescriptionCallback'](_0x26fc0e=>{if('formatBlock'!=_0x26fc0e['type']&&'formatInline'!=_0x26fc0e['type'])return;const {data:_0x3996be}=_0x26fc0e;return _0x3996be?'splitTableCellVertically'==_0x3996be['commandName']?{'type':'format','content':o(_0x183490,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3996be['commandName']?{'type':'format','content':o(_0x183490,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x116361=_0x3870cf['_acceptFormatSuggestionCallbackFactory']();for(const _0x167317 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x39b191['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x167317,'accept',_0x116361);for(const _0x2fbfe8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x39b191['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fbfe8,'accept',_0x116361);_0x39b191['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1a4885=>{_0x541ad9['model']['change'](_0x32c32b=>{const _0x4cd2cb=Array['from'](_0x25e5ad['getRanges']())['map'](_0x10096c=>_0x5ed280['fromRange'](_0x10096c));_0x32c32b['setSelection'](_0x1a4885),_0x541ad9['commands']['get']('mergeTableCells')['refresh'](),_0x541ad9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4d724e=_0x4cd2cb['filter'](_0x2f28dc=>'$graveyard'!=_0x2f28dc['root']['rootName']);_0x4d724e['length']>0x0&&_0x32c32b['setSelection'](_0x4d724e);for(const _0x3126df of _0x4cd2cb)_0x3126df['detach']();});});for(const _0x5f4448 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x19b67f=_0x541ad9['commands']['get'](_0x5f4448);_0x19b67f['on']('set:isEnabled',(_0xb9649b,_0xd9d57,_0x197176)=>{if(_0x197176){const _0x32b939=_0x541ad9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x28f191=>_0x28f191['is']('element','tableCell'));this['_areMergableCells'](_0x19b67f['value'],_0x32b939)||(_0xb9649b['return']=!0x1,_0xb9649b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1efae5=this['editor']['commands']['get']('mergeTableCells'),_0x48954e=this['editor']['plugins']['get']('TableUtils');if(!_0x1efae5['isEnabled'])return!0x1;const _0x4f56b9=_0x48954e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x760a55 of _0x4f56b9)for(const _0x28b7a7 of _0x4f56b9)if(_0x760a55!=_0x28b7a7&&!this['_areMergableCells'](_0x760a55,_0x28b7a7))return!0x1;return!0x0;}['_areMergableCells'](_0x2b0f75,_0x2d37aa){const _0x11e6ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x579bfb=this['editor']['model']['createRangeOn'](_0x2b0f75),_0x2c009b=this['editor']['model']['createRangeOn'](_0x2d37aa),_0x2ff3e8=new Set(),_0x594334=new Set();for(const _0x10a238 of _0x11e6ec['getSuggestions']())if(('insertion'==_0x10a238['type']||'deletion'==_0x10a238['type']||'mergeTableCells'==_0x10a238['subType'])&&_0x10a238['isInContent']){for(const _0x138695 of _0x10a238['getRanges']())_0x138695['containsRange'](_0x579bfb,!0x0)&&_0x2ff3e8['add'](_0x10a238['type']+':'+_0x10a238['author']['id']),_0x138695['containsRange'](_0x2c009b,!0x0)&&_0x594334['add'](_0x10a238['type']+':'+_0x10a238['author']['id']);}if(_0x2ff3e8['size']!=_0x594334['size'])return!0x1;for(const _0x1a8a56 of _0x2ff3e8)if(!_0x594334['has'](_0x1a8a56))return!0x1;return!0x0;}}class Ct extends _0x3cc490{static get['requires'](){return[It];}['afterInit'](){const _0x88f5fa=this['editor'];if(!_0x88f5fa['plugins']['has']('TableEditing'))return;const _0x36b61=_0x88f5fa['locale'],_0x565502=_0x88f5fa['plugins']['get']('TrackChangesEditing');_0x565502['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x565502['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x565502['registerBlockAttribute']('headingRows'),_0x565502['registerBlockAttribute']('headingColumns'),_0x565502['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x36b61,'FORMAT_HEADER_ROW')),_0x565502['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x36b61,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x58523a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x493ca6=this['editor']['plugins']['get']('TableUtils'),_0x487bd4=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x329209({showActiveMarker:_0x253482=!0x0,setDataAttribute:_0x14f711=!0x0}={}){return(_0x3c7f60,_0x3b8673,_0x3157ff)=>{const {type:_0x3e735e,id:_0x2a21fd}=_0x58523a['_splitMarkerName'](_0x3b8673['markerName']),_0x3d9693=_0x58523a['getSuggestion'](_0x2a21fd),_0x4bae93=_0x3d9693['data'];if('formatBlock'!=_0x3d9693['type']||!_0x4bae93||'setTableColumnHeader'!=_0x4bae93['commandName'])return;if(_0x3b8673['item'])return void _0x3c7f60['stop']();if(!_0x3157ff['consumable']['consume'](_0x3b8673['markerRange'],_0x3c7f60['name']))return;const _0x445e77=_0x3b8673['markerRange']['start']['nodeAfter'],_0xe02c19=_0x3b8673['markerRange']['end']['nodeBefore'],_0x529ecf=_0x445e77['parent']['parent'],{column:_0x228ccc}=_0x493ca6['getCellLocation'](_0x445e77),{column:_0x1150fd}=_0x493ca6['getCellLocation'](_0xe02c19);for(let _0xc68655=_0x228ccc;_0xc68655<=_0x1150fd;_0xc68655++){const _0x22b174=_0x493ca6['createTableWalker'](_0x529ecf,{'column':_0xc68655,'includeAllSlots':!0x1});for(const _0x374e3c of _0x22b174){const _0x576959=_0x374e3c['cell'],_0x5d3506=_0x3157ff['mapper']['toViewElement'](_0x576959);_0x3157ff['writer']['addClass']('ck-suggestion-marker-'+_0x3e735e,_0x5d3506),_0x14f711&&_0x3157ff['writer']['setAttribute']('data-suggestion',_0x2a21fd,_0x5d3506),_0x3157ff['mapper']['bindElementToMarker'](_0x5d3506,_0x3b8673['markerName']),_0x253482&&(_0x58523a['activeMarkers']['includes'](_0x3b8673['markerName'])?_0x3157ff['writer']['addClass']('ck-suggestion-marker--active',_0x5d3506):_0x3157ff['writer']['removeClass']('ck-suggestion-marker--active',_0x5d3506));}}};}_0x58523a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x487bd4),_0x58523a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x487bd4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x329209(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x551236,_0x356794,_0x5e63ff)=>{_0x5e63ff['options']['showSuggestionHighlights']&&_0x329209({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x551236,_0x356794,_0x5e63ff);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5e528a,_0x4259c7,_0x21b1e8)=>{const {type:_0x27cb1c,id:_0x1640b5}=_0x58523a['_splitMarkerName'](_0x4259c7['markerName']),_0x50a24a=_0x58523a['getSuggestion'](_0x1640b5),_0x25b206=_0x50a24a['data'];if('formatBlock'!=_0x50a24a['type']||!_0x25b206||'setTableColumnHeader'!=_0x25b206['commandName'])return;const _0x1061cb=_0x21b1e8['mapper']['markerNameToElements'](_0x4259c7['markerName']);if(_0x1061cb){for(const _0x497d17 of _0x1061cb)_0x21b1e8['writer']['removeClass']('ck-suggestion-marker-'+_0x27cb1c,_0x497d17),_0x21b1e8['writer']['removeClass']('ck-suggestion-marker--active',_0x497d17),_0x21b1e8['writer']['removeAttribute']('data-suggestion',_0x497d17),_0x21b1e8['mapper']['unbindElementFromMarkerName'](_0x497d17,_0x4259c7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x145702=this['editor'],_0x130bf1=_0x145702['locale'];function _0x14240d(_0x5320d6){return{'type':'format','content':o(_0x130bf1,'*Format:*\x20%0',_0x5320d6)};}_0x145702['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e2b8c=>{if('formatBlock'!=_0x1e2b8c['type'])return;const {data:_0x57b085}=_0x1e2b8c;if(_0x57b085){if('setTableRowHeader'==_0x57b085['commandName']){const _0x339136=_0x57b085['commandParams'][0x0]['forceValue'];return _0x14240d(o(_0x130bf1,_0x339136?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x57b085['commandName']){const _0x2fb388=_0x57b085['commandParams'][0x0]['forceValue'];return _0x14240d(o(_0x130bf1,_0x2fb388?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x3667df=>[_0x3667df,null]));class _t extends _0x3cc490{static get['requires'](){return[It];}['afterInit'](){const _0x10b2de=this['editor'];if(!_0x10b2de['plugins']['has']('TableClipboard'))return;const _0x4e06b4=_0x10b2de['plugins']['get']('TrackChangesEditing'),_0x1e2bb8=_0x10b2de['plugins']['get']('TableUtils'),_0x1c29fc=_0x10b2de['plugins']['get'](It),_0x55282f=_0x10b2de['plugins']['get']('TableClipboard');_0x1c29fc['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x10b2de['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x10b2de['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2e3bde=null;_0x10b2de['model']['on']('insertContent',(_0x58d909,_0x326462)=>{const [_0x17c923,_0x1100ca]=_0x326462,_0x3d08ad=_0x326462[_0x326462['length']-0x1];_0x3d08ad&&_0x3d08ad['forceDefaultExecution']||_0x4e06b4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1364b4,_0x3a1c5a,_0x47c56e,_0x1a63de,_0xf4f5f5){if(_0x3a1c5a&&!_0x3a1c5a['is']('documentSelection'))return!0x1;const _0x4f0b47=_0xf4f5f5['getTableIfOnlyTableInContent'](_0x1364b4,_0x47c56e);if(!_0x4f0b47||!Re(_0x4f0b47,void 0x0,_0x1a63de))return!0x1;const _0x4578b5=_0x1a63de['getSelectionAffectedTableCells'](_0x47c56e['document']['selection']);if(!_0x4578b5['length'])return!0x1;const _0x40c57c=_0x4578b5[0x0]['findAncestor']('table'),_0x5e5c63=_0x1a63de['getRowIndexes'](_0x4578b5),_0x5987d8=_0x1a63de['getColumnIndexes'](_0x4578b5),_0x59710c={'startRow':_0x5e5c63['first'],'endRow':_0x5e5c63['last'],'startColumn':_0x5987d8['first'],'endColumn':_0x5987d8['last']};return 0x1==_0x4578b5['length']&&(_0x59710c['endRow']+=_0x1a63de['getRows'](_0x4f0b47)-0x1,_0x59710c['endColumn']+=_0x1a63de['getColumns'](_0x4f0b47)-0x1),Re(_0x40c57c,_0x59710c,_0x1a63de);}(_0x17c923,_0x1100ca,_0x10b2de['model'],_0x1e2bb8,_0x55282f)&&(_0x58d909['stop'](),_0x2e3bde={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x10b2de['model']['change'](()=>{_0x10b2de['model']['insertContent'](_0x326462[0x0],_0x326462[0x1],_0x326462[0x2],{'forceDefaultExecution':!0x0});const _0x26f077=_0x36eeaa(),{rowInsertionRanges:_0x18be10,columnInsertionRanges:_0x1b0741,insertionRanges:_0x422de7,deletionRanges:_0xd9c061,cells:_0x2a6221}=_0x2e3bde;_0x18be10['length']&&_0x4e06b4['markMultiRangeInsertion'](_0x18be10,'tablePasteRow',{'tablePasteChainId':_0x26f077}),_0x1b0741['length']&&_0x4e06b4['markMultiRangeInsertion'](_0x1b0741,'tablePasteColumn',{'tablePasteChainId':_0x26f077}),_0x422de7['length']&&(_0x4e06b4['markMultiRangeInsertion'](_0x422de7,'tablePaste',{'tablePasteChainId':_0x26f077,'skipNestingCheck':!0x0}),_0x422de7['forEach'](_0x159fd2=>_0x159fd2['detach']?.())),_0xd9c061['length']&&(_0x4e06b4['markMultiRangeDeletion'](_0xd9c061,'tablePaste',{'tablePasteChainId':_0x26f077,'skipNestingCheck':!0x0}),_0xd9c061['forEach'](_0x25e209=>_0x25e209['detach']?.()));const _0x2ab347=_0x4e06b4['markMultiRangeBlockFormat'](_0x2a6221['map'](({element:_0x22d4cd})=>_0x22d4cd),{'formatGroupId':_0x36eeaa()},[],'tablePasteCell',{'tablePasteChainId':_0x26f077});if(_0x2ab347){const _0x28f4a4=_0x2ab347['getMarkers'](),_0x57d86e=[];for(const {element:_0x222a62,attributes:_0x31c291}of _0x2a6221){if(!_0x31c291)continue;const _0x56bfcb=_0x10b2de['model']['createRangeOn'](_0x222a62),_0x545ade=_0x28f4a4['find'](_0x511335=>_0x511335['getRange']()['isEqual'](_0x56bfcb));_0x545ade&&_0x57d86e['push']([_0x545ade['name'],_0x31c291]);}_0x57d86e['length']&&_0x2ab347['setAttribute']('markerAttributes',Object['fromEntries'](_0x57d86e));}_0x2e3bde=null;}));},{'priority':_0x1b23c8['high']+0xa}),_0x10b2de['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x515443,_0x578d77)=>{const [_0x4eb23a,_0x100adc,,_0x5104b4]=_0x578d77;if(!_0x2e3bde)return;_0x515443['stop']();const _0x49db7d=_0x4eb23a['cell'],_0x206981=_0x100adc,_0x295bbe=ke(_0x49db7d),_0xa072b2=ke(_0x206981);_0x515443['return']=_0x49db7d;let _0x413941=null,_0x69d044=null;if(_0xa072b2||_0x295bbe){if(_0x295bbe&&!_0xa072b2){_0x5104b4['remove'](_0x49db7d['getChild'](0x0));for(const _0x2344d4 of Array['from'](_0x206981['getChildren']()))_0x5104b4['insert'](_0x2344d4,_0x49db7d,'end');const _0x2a670f=_0x2e3bde['rowInsertionIndexes']['includes'](_0x4eb23a['row']),_0x3b524d=_0x2e3bde['columnInsertionIndexes']['includes'](_0x4eb23a['column']);_0x2a670f||_0x3b524d||(_0x413941=_0x5ed280['fromRange'](_0x5104b4['createRangeIn'](_0x49db7d)));}else _0xa072b2&&!_0x295bbe&&(_0x69d044=_0x5104b4['createRangeIn'](_0x49db7d));}else{const _0x47679d=_0x5104b4['createElement']('tableCellSuggestion'),_0x49ac9b=_0x5104b4['createElement']('tableCellSuggestion');_0x5104b4['wrap'](_0x5104b4['createRangeIn'](_0x49db7d),_0x49ac9b),_0x5104b4['insert'](_0x47679d,_0x49db7d,0x0);for(const _0x4fb7be of Array['from'](_0x206981['getChildren']()))_0x5104b4['insert'](_0x4fb7be,_0x47679d,'end');_0x413941=_0x5ed280['fromRange'](_0x5104b4['createRangeOn'](_0x47679d)),_0x69d044=_0x5ed280['fromRange'](_0x5104b4['createRangeOn'](_0x49ac9b));}const _0x4cafb8=Array['from'](_0x206981['getAttributes']())['filter'](([_0x2fafb2])=>Pe['includes'](_0x2fafb2));_0x2e3bde['cells']['push']({'element':_0x49db7d,'attributes':_0x4cafb8['length']?Object['fromEntries'](_0x4cafb8):null}),_0x413941&&_0x2e3bde['insertionRanges']['push'](_0x413941),_0x69d044&&_0x2e3bde['deletionRanges']['push'](_0x69d044);},{'priority':'high'}),_0x1e2bb8['on']('insertColumns',(_0x4b19fd,_0x7c3089)=>{const [_0x4c893b,_0x5a13bd={}]=_0x7c3089;if(!_0x2e3bde)return;const _0x515dbf=_0x5a13bd['at']||0x0,_0x1c9fe2=_0x5a13bd['columns']||0x1;_0x2e3bde['columnInsertionIndexes']=new Array(_0x1c9fe2)['fill'](_0x515dbf)['map']((_0x450237,_0x1a814b)=>_0x450237+_0x1a814b);for(const {cell:_0x13f496}of _0x1e2bb8['createTableWalker'](_0x4c893b,{'startColumn':_0x515dbf,'endColumn':_0x515dbf+_0x1c9fe2-0x1}))_0x2e3bde['columnInsertionRanges']['push'](_0x10b2de['model']['createRangeOn'](_0x13f496));},{'priority':'low'}),_0x1e2bb8['on']('insertRows',(_0x5a3c3a,_0x1a9639)=>{const [_0x2542f9,_0x508129={}]=_0x1a9639;if(!_0x2e3bde)return;const _0x2f7a8c=_0x508129['at']||0x0,_0x77a0c0=_0x508129['rows']||0x1;_0x2e3bde['rowInsertionIndexes']=new Array(_0x77a0c0)['fill'](_0x2f7a8c)['map']((_0x20c9c9,_0x3a2810)=>_0x20c9c9+_0x3a2810);for(const {cell:_0x4fc23f}of _0x1e2bb8['createTableWalker'](_0x2542f9,{'startRow':_0x2f7a8c,'endRow':_0x2f7a8c+_0x77a0c0-0x1}))_0x2e3bde['rowInsertionRanges']['push'](_0x10b2de['model']['createRangeOn'](_0x4fc23f));},{'priority':'low'}),_0x4e06b4['descriptionFactory']['registerDescriptionCallback'](_0x5d2df8=>{if(_0x5d2df8['subType']&&_0x5d2df8['subType']['startsWith']('tablePaste'))return _0x5d2df8['previous']?{}:{'type':'insertion','content':o(_0x10b2de['locale'],'*Replace\x20table\x20cells*')};});const _0x8b624a=()=>!0x1;for(const _0x532cde of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e06b4['_suggestionFactory']['registerCustomCallback']('insertion',_0x532cde,'join',_0x8b624a),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('deletion',_0x532cde,'join',_0x8b624a),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x532cde,'join',_0x8b624a);_0x4e06b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x8b624a),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3a56ca,_0x53999f,_0x52cff3)=>{const _0x149083=_0x3a56ca['map'](_0x9df39=>_0x9df39['getContainedElement']())['filter'](_0x2fcafa=>_0x2fcafa),_0x13bc3a=new Map(_0x149083['map'](_0x3eb8e5=>[_0x3eb8e5,null]));if(_0x2e3bde){for(const {element:_0x3cdd55,attributes:_0x258ec2}of _0x2e3bde['cells'])_0x258ec2&&_0x13bc3a['set'](_0x3cdd55,_0x258ec2);}else{if(_0x52cff3&&_0x52cff3['markerAttributes'])for(const [_0x4a7f90,_0x566b43]of Object['entries'](_0x52cff3['markerAttributes'])){const _0x250049=_0x10b2de['model']['markers']['get'](_0x4a7f90),_0xb484a9=_0x250049?_0x250049['getRange']()['getContainedElement']():null;_0xb484a9&&_0x13bc3a['set'](_0xb484a9,_0x566b43);}}_0x10b2de['model']['change'](_0x31de14=>{for(const [_0x592f9b,_0x195855]of _0x13bc3a)_0x31de14['setAttributes']({...we,..._0x195855},_0x592f9b);});});const _0x166282=(_0x3b5a5a,_0x2090ce)=>{_0x4e06b4['_suggestionFactory']['registerCustomCallback'](_0x3b5a5a,'tablePaste',_0x2090ce,(_0x51b5fd,_0x489b27,_0x18fe4f)=>{_0x10b2de['model']['change'](_0x969b49=>{const _0x2031f8=[];for(const _0x14da27 of _0x51b5fd){const _0x477a92=_0x14da27['start']['nodeAfter'];_0x477a92['is']('element','tableCellSuggestion')&&_0x2031f8['push'](_0x477a92);}_0x4e06b4['_suggestionFactory']['getSuggestionCallback'](_0x3b5a5a,null,_0x2090ce)(_0x51b5fd,_0x489b27,_0x18fe4f);for(const _0xafa9ee of _0x2031f8)'$graveyard'!=_0xafa9ee['root']['rootName']&&_0x969b49['unwrap'](_0xafa9ee);});});};_0x166282('insertion','accept'),_0x166282('insertion','discard'),_0x166282('deletion','accept'),_0x166282('deletion','discard'),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4a143e=>{const _0x2cb21b=_0x4a143e['map'](_0x1dfbb5=>_0x1dfbb5['getContainedElement']()),_0xe2ebd4=_0x2cb21b[0x0]['findAncestor']('table'),{minRow:_0xd7ae27,maxRow:_0x49554c}=_0x1c29fc['_getCoordsForCells'](_0x2cb21b);_0x1e2bb8['removeRows'](_0xe2ebd4,{'at':_0xd7ae27,'rows':_0x49554c-_0xd7ae27+0x1});}),_0x4e06b4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x46ef48=>{const _0xab16e=_0x46ef48['map'](_0x1f9417=>_0x1f9417['getContainedElement']()),_0x2d95ae=_0xab16e[0x0]['findAncestor']('table'),{minColumn:_0x1c6462,maxColumn:_0x46d7c9}=_0x1c29fc['_getCoordsForCells'](_0xab16e);_0x1e2bb8['removeColumns'](_0x2d95ae,{'at':_0x1c6462,'columns':_0x46d7c9-_0x1c6462+0x1});});const _0x12cdab=(_0x46ee2a,_0xa7de5a)=>{if(!_0xa7de5a['subType']||!_0xa7de5a['subType']['startsWith']('tablePaste'))return;const _0xa10a7d=_0xa7de5a['attributes']['tablePasteChainId'],_0x3403a7=_0x4e06b4['getSuggestions']()['filter'](_0xbf09e2=>_0xbf09e2['isInContent']&&_0xbf09e2['attributes']&&_0xbf09e2['attributes']['tablePasteChainId']==_0xa10a7d);_0x3403a7['length']&&_0xa7de5a['getAllAdjacentSuggestions']()['length']!=_0x3403a7['length']&&_0x3403a7['reduce']((_0x2193fa,_0x6a4cc0)=>(_0x2193fa['next']=_0x6a4cc0,_0x6a4cc0['previous']=_0x2193fa,_0x6a4cc0));};function _0x4cf612(_0xe2b030,_0x4e17c2=!0x0){const {id:_0x561846,authorId:_0x5dd4fe}=_0x4e06b4['_splitMarkerName'](_0xe2b030['markerName']),_0xcd2d36=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d2f06=_0x4e06b4['activeMarkers']['includes'](_0xe2b030['markerName']);return _0x1d2f06&&_0xcd2d36['push']('ck-suggestion-marker--active'),{'classes':_0xcd2d36,'attributes':{'data-suggestion':_0x561846,'data-author-id':_0x5dd4fe},'priority':_0x1d2f06&&_0x4e17c2?0xbc2:0xbb8};}_0x4e06b4['on']('suggestionLoaded',_0x12cdab,{'priority':'high'}),_0x4e06b4['on']('suggestionUnloaded',_0x12cdab,{'priority':'high'}),_0x10b2de['model']['document']['registerPostFixer'](()=>{let _0x13664b=!0x1;const _0x2277b1=Array['from'](_0x10b2de['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45cf45,data:_0x2d8db9}of _0x2277b1){const {group:_0x320648,type:_0x162cfb,id:_0x436325}=_0x4e06b4['_splitMarkerName'](_0x45cf45);if('suggestion'!=_0x320648||'deletion'!=_0x162cfb||_0x2d8db9['oldRange'])continue;if(!_0x4e06b4['hasSuggestion'](_0x436325))continue;const _0x539d11=_0x4e06b4['getSuggestion'](_0x436325)['getRanges'](),_0x48ed27=_0x10b2de['plugins']['get']('Users')['me'];for(const _0x33468b of _0x4e06b4['getSuggestions']()){if(!_0x33468b['isInContent']||_0x33468b['author']!=_0x48ed27)continue;if('formatBlock'!=_0x33468b['type']||'tablePasteCell'!=_0x33468b['subType'])continue;if(_0x33468b['getRanges']()['every'](_0x30ee12=>_0x539d11['some'](_0x163838=>_0x163838['containsRange'](_0x30ee12,!0x0)))){for(const _0x27335a of _0x33468b['getAllAdjacentSuggestions']())_0x27335a['isInContent']&&(_0x27335a['discard'](),_0x13664b=!0x0);}}}return _0x13664b;}),_0x10b2de['model']['document']['registerPostFixer'](_0x42d073=>{const _0x474a6d=_0x10b2de['commands']['get']('redo');if(!_0x474a6d||!_0x474a6d['_createdBatches']['has'](_0x42d073['batch']))return!0x1;let _0x4c6f43=!0x1;const _0x3e7719=_0x10b2de['plugins']['get']('Users')['me'],_0x354e66=_0x10b2de['model']['document']['differ']['getChanges'](),_0x9e5bb8=Array['from'](_0x10b2de['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2042c9,data:_0x27254f})=>{const {group:_0x258a58,subType:_0x3c7c16,authorId:_0xaad714}=_0x4e06b4['_splitMarkerName'](_0x2042c9);return'suggestion'==_0x258a58&&'tablePaste'==_0x3c7c16&&_0xaad714==_0x3e7719['id']&&!_0x27254f['oldRange'];});for(const _0x55107e of _0x354e66){if('insert'!=_0x55107e['type']||'tableCellSuggestion'!=_0x55107e['name']||0x1!=_0x55107e['length'])continue;const _0x1c1d58=_0x42d073['createRange'](_0x55107e['position'],_0x55107e['position']['getShiftedBy'](0x1));if(!_0x9e5bb8['find'](({data:_0x4be02c})=>_0x4be02c['newRange']['isEqual'](_0x1c1d58))){for(const {name:_0x19709d,data:_0x1f7170}of _0x9e5bb8)if(_0x1c1d58['containsRange'](_0x1f7170['newRange'])){_0x42d073['updateMarker'](_0x19709d,{'range':_0x1c1d58}),_0x4c6f43=!0x0;break;}}}return _0x4c6f43;}),_0x10b2de['model']['document']['registerPostFixer'](_0x5bc6a8=>{let _0x4a3d95=!0x1;const _0xe7f285=_0x10b2de['plugins']['get']('Users')['me'],_0xbaf7d8=_0x4e06b4['getSuggestions']()['filter'](_0x379307=>_0x379307['isInContent']&&_0x379307['author']==_0xe7f285),_0x2f8f15=new Set(),_0x36424c=new Set();for(const _0x502ae8 of _0xbaf7d8)if('tablePaste'==_0x502ae8['subType'])for(const _0x4684b0 of _0x502ae8['getMarkers']()){const _0x1e9bf5=_0x4684b0['getRange']()['getContainedElement']();if(_0x1e9bf5){if(_0x1e9bf5['is']('element','tableCellSuggestion')&&ke(_0x1e9bf5)){_0x502ae8['removeMarker'](_0x4684b0['name']),_0x2f8f15['add'](_0x1e9bf5),_0x4a3d95=!0x0;const _0x12b9a3=_0x1e9bf5['nextSibling'],_0x51a83b=_0x1e9bf5['previousSibling'],_0x5a6bbb=_0x12b9a3&&_0x12b9a3['is']('element','tableCellSuggestion'),_0x3be51b=_0x51a83b&&_0x51a83b['is']('element','tableCellSuggestion');_0x5a6bbb&&!_0x2f8f15['has'](_0x12b9a3)&&_0x36424c['add'](_0x12b9a3),_0x3be51b&&!_0x2f8f15['has'](_0x51a83b)&&_0x36424c['add'](_0x51a83b);}else _0x1e9bf5['is']('element','paragraph')&&_0x1e9bf5['isEmpty']&&(_0x502ae8['removeMarker'](_0x4684b0['name']),_0x4a3d95=!0x0);}}else{if('tablePasteCell'==_0x502ae8['subType']){if(!_0x502ae8['attributes']||!_0x502ae8['attributes']['tablePasteChainId'])continue;const _0x54394a=_0x502ae8['attributes']['markerAttributes'];if(_0x54394a&&Object['keys'](_0x54394a)['length'])continue;const _0x34aa72=_0x502ae8['attributes']['tablePasteChainId'];let _0x513f92=!0x0,_0x152733=!0x0;for(const _0x3b5988 of _0xbaf7d8)if(_0x3b5988['subType']&&_0x3b5988['subType']['startsWith']('tablePaste')){if(!_0x3b5988['attributes']['tablePasteChainId']){_0x152733=!0x1;break;}if(_0x3b5988['id']!=_0x502ae8['id']&&_0x3b5988['attributes']['tablePasteChainId']==_0x34aa72){_0x513f92=!0x1;break;}}_0x152733&&_0x513f92&&(_0x502ae8['removeMarkers'](),_0x4a3d95=!0x0);}}for(const _0x12c93c of _0x2f8f15)_0x5bc6a8['remove'](_0x12c93c);for(const _0x126ad0 of _0x36424c)_0x5bc6a8['unwrap'](_0x126ad0);return _0x4a3d95;}),_0x10b2de['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4774eb=>_0x4cf612(_0x4774eb),'converterPriority':'high'}),_0x10b2de['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xc3a82,_0x624a66)=>_0x624a66['options']['showSuggestionHighlights']?_0x4cf612(_0xc3a82,!0x1):null,'converterPriority':'high'});const _0x324f96=_0x10b2de['editing']['view'];this['listenTo'](_0x324f96['document'],'clipboardOutput',(_0x1030b0,_0x257945)=>{const _0x286268=[];for(const _0x15f72e of _0x324f96['createRangeIn'](_0x257945['content'])['getItems']())_0x15f72e['is']('element','suggestion-td')&&_0x286268['push'](_0x15f72e);_0x324f96['change'](_0x1d6124=>{for(const _0xbea894 of _0x286268)_0x1d6124['move'](_0x1d6124['createRangeIn'](_0xbea894),_0x1d6124['createPositionBefore'](_0xbea894)),_0x1d6124['remove'](_0xbea894);});});}}function ke(_0xcfe4bc){if(_0xcfe4bc['isEmpty'])return!0x0;const _0x5b515d=_0xcfe4bc['getChild'](0x0);return _0x5b515d['is']('element','paragraph')&&_0x5b515d['isEmpty'];}function Re(_0x4f4045,_0x581ac0={},_0x2b6926){for(const {isAnchor:_0x5959ee,cellHeight:_0x3f4700,cellWidth:_0x3789df}of _0x2b6926['createTableWalker'](_0x4f4045,{'includeAllSlots':!0x0,..._0x581ac0}))if(!_0x5959ee||0x1!=_0x3f4700||0x1!=_0x3789df)return!0x1;return!0x0;}class Nt extends _0x3cc490{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x287f1d=this['editor']['plugins']['get']('TrackChangesEditing');_0x287f1d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x287f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x287f1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x287f1d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x287f1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x287f1d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5e6855,_0x225c40){const _0x4408b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b9ca7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x34b86f=_0x225c40['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x26055c=_0x1b9ca7['getColumnGroupElement'](_0x34b86f);let _0x48e201=_0x26055c?_0x1b9ca7['getTableColumnsWidths'](_0x26055c):null,_0x49da4f=_0x34b86f['getAttribute']('tableWidth')||null;const _0x3f1fba=_0x225c40['tableWidth']||_0x49da4f,_0x253721=_0x225c40['columnWidths']||_0x48e201,_0x3ba30e=this['editor']['plugins']['get']('Users')['me'];for(const _0x11f43d of _0x4408b7['getSuggestions']()){const _0x52cc6a=_0x11f43d['getContainedElement']();if('resizeTable'===_0x11f43d['subType']&&_0x52cc6a===_0x34b86f){_0x11f43d['author']!==_0x3ba30e&&_0x11f43d['discard']();const _0x496638=_0x11f43d['data']['commandParams'];_0x49da4f=_0x496638[0x0]['tableWidth'],_0x48e201=_0x496638[0x0]['columnWidths'];break;}}_0x5e6855({'table':_0x34b86f,'tableWidth':_0x3f1fba,'columnWidths':_0x253721}),_0x4408b7['markBlockFormat'](_0x34b86f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x49da4f,'columnWidths':_0x48e201}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x485cd9){if('formatBlock'!=_0x485cd9['type']&&'formatInline'!=_0x485cd9['type'])return;const {data:_0x1e9419}=_0x485cd9;if(_0x1e9419&&'resizeTable'===_0x1e9419['formatGroupId']){const _0x5e094b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5e094b)};}}}class Dt extends _0x3cc490{['afterInit'](){const _0x2b5dc2=this['editor'];_0x2b5dc2['plugins']['has']('Template')&&_0x2b5dc2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3cc490{['afterInit'](){const _0x348327=this['editor'];if(!_0x348327['commands']['get']('insertTableOfContents'))return;_0x348327['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4d8b7d=_0x348327['plugins']['get']('TrackChangesEditing'),_0x5a039a=_0x348327['locale'];_0x4d8b7d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3bad47=>o(_0x5a039a,'ELEMENT_TABLE_OF_CONTENTS',_0x3bad47));}}class $t extends _0x3cc490{['afterInit'](){const _0x44016c=this['editor'];if(!_0x44016c['plugins']['has']('Title'))return;const _0x44f689=_0x44016c['plugins']['get']('TrackChangesEditing');_0x44f689['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x44016c['locale'],'ELEMENT_TITLE')),_0x44016c['model']['document']['registerPostFixer'](_0x573634=>{let _0x5b8727=!0x1;const _0x455b5c=Array['from'](_0x44016c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fc4b5,data:_0xdc8e6f}of _0x455b5c){const {group:_0x14ab63}=_0x44f689['_splitMarkerName'](_0x2fc4b5);if('suggestion'!==_0x14ab63||!_0xdc8e6f['newRange'])continue;const _0x14a6af=_0xdc8e6f['newRange'],_0x4f8185=_0x14a6af['end']['nodeBefore'];if(!_0x4f8185||!_0x4f8185['is']('element','title-content'))continue;if(!_0x14a6af['start']['isTouching'](_0x14a6af['end']))continue;const _0x2adccb=_0x44016c['model']['schema']['getNearestSelectionRange'](_0x14a6af['end'],'forward');if(_0x2adccb&&_0x2adccb['isCollapsed']){const _0x52796f=_0x573634['createRange'](_0x14a6af['start'],_0x2adccb['start']);_0x52796f['isEqual'](_0x14a6af)||(_0x573634['updateMarker'](_0x2fc4b5,{'range':_0x52796f}),_0x5b8727=!0x0);}_0x5b8727||(_0x573634['removeMarker'](_0x2fc4b5),_0x5b8727=!0x0);}return _0x5b8727;});}}class Bt extends _0x3cc490{['afterInit'](){const _0x24df61=this['editor'],_0x4d626d=_0x24df61['plugins']['get']('TrackChangesEditing');_0x24df61['plugins']['has']('UndoEditing')&&(_0x4d626d['enableCommand']('undo'),_0x4d626d['enableCommand']('redo'));}}class xt extends _0x3cc490{static get['requires'](){return[It];}['afterInit'](){const _0x53b8ba=this['editor'];if(!_0x53b8ba['plugins']['has']('TableCaptionEditing'))return;_0x53b8ba['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x3cc490{['tableProperties'];['tableCellProperties'];constructor(_0x54bf09){super(_0x54bf09),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 _0x592d18=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x37b54e of this['tableProperties'])_0x592d18['enableCommand'](_0x37b54e,(_0x4acc02,_0x9d05a7)=>{const _0x40d45a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x37b54e,[_0x40d45a],this['tableProperties'],'tableProperties',_0x4acc02,_0x9d05a7);});_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x592d18['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1adcca,_0x2f547b)=>this['handleDiscardAction'](this['tableProperties'],_0x1adcca,_0x2f547b)),_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x35da41 of this['tableCellProperties'])_0x592d18['enableCommand'](_0x35da41,(_0x317a00,_0x50bbe8)=>{const _0x102ea7=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x35da41,_0x102ea7,this['tableCellProperties'],'tableCellProperties',_0x317a00,_0x50bbe8);});_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x592d18['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4a2e1c,_0x46a326)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4a2e1c,_0x46a326)),_0x592d18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x592d18['descriptionFactory']['registerDescriptionCallback'](_0x855126=>this['handleSuggestionDescription'](_0x855126));}['_handlePropertyChange'](_0x4f16dc,_0x330964,_0x3c1740,_0x1cd8b3,_0x119697,_0x2fc691){const _0x27cdf8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2fc691['batch'],()=>{for(const _0x25878e of _0x330964){if(this['_getSuggestion'](_0x25878e,_0x1cd8b3))_0x119697(_0x2fc691);else{const _0x3ea591={};for(const _0x26a465 of _0x3c1740){const _0x11c37e=_0x25878e['getAttribute'](_0x26a465);void 0x0!==_0x11c37e&&(_0x3ea591[_0x26a465]=_0x11c37e);}_0x119697(_0x2fc691),_0x27cdf8['markBlockFormat'](_0x25878e,{'commandParams':[_0x3ea591]},[],_0x1cd8b3);}}});}['handleDiscardAction'](_0x16dee3,_0x368192,_0x1949eb){const _0x2e9b95=_0x368192[0x0]['start']['nodeAfter'],_0x277a4b=_0x1949eb['commandParams'][0x0];this['editor']['model']['change'](_0x41de61=>{for(const _0x1571b2 of _0x16dee3)void 0x0!==_0x277a4b[_0x1571b2]?_0x41de61['setAttribute'](_0x1571b2,_0x277a4b[_0x1571b2],_0x2e9b95):_0x41de61['removeAttribute'](_0x1571b2,_0x2e9b95);});}['handleSuggestionDescription'](_0x12ab27){if(_0x12ab27['data'])switch(_0x12ab27['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'](_0x35a743,_0x59d9b4){const _0xf46a99=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x29e359 of _0xf46a99['getSuggestions']({'skipNotAttached':!0x0})){const _0x3a5a51=_0x29e359['getContainedElement']();if(_0x29e359['subType']===_0x59d9b4&&_0x3a5a51===_0x35a743)return _0x29e359;}return null;}}const m='$elementName';class p extends _0x3cc490{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x854ae2,_0x28f729,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(_0x52bc4b){function _0x38b421(_0x342707){return _0x342707['map'](_0xb51d5c=>String['fromCharCode'](_0xb51d5c))['join']('');}super(_0x52bc4b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1ecfde,_0x36dcf0,_0x404032,_0x25c097)=>{this['_model']['change'](()=>{for(const _0x3cc2d9 of[..._0x25c097,..._0x404032])this['_model']['markers']['has'](_0x3cc2d9)&&_0x52bc4b['editing']['reconvertMarker'](_0x3cc2d9);});}),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']=_0x52bc4b['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(),_0x52bc4b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x52bc4b['config']['get']('trackChanges.trackFormatChanges'),_0x52bc4b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x52bc4b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x52bc4b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x38b421([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x38b421([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x30]);}['init'](){const _0x2606bf=this['editor'],_0x6be350=(_0x127f6f,_0x5af86c)=>{if('attribute'!=_0x127f6f)return'ck-suggestion-marker-'+_0x127f6f;const _0x4bc80d=_0x5af86c['split']('|')[0x0];return this['_isBlockAttribute'](_0x4bc80d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2606bf['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1790ce=>{const {id:_0xcde600,authorId:_0x22c2bf,type:_0x84687a,subType:_0x45970f}=this['_splitMarkerName'](_0x1790ce['markerName']),_0x24b8b4=['ck-suggestion-marker',_0x6be350(_0x84687a,_0x45970f)];let _0x4c2ef2=0xbb8;return this['activeMarkers']['includes'](_0x1790ce['markerName'])&&(_0x24b8b4['push']('ck-suggestion-marker--active'),_0x4c2ef2=0xbc2),'deletion'==_0x84687a&&(_0x4c2ef2+=0x5),{'classes':_0x24b8b4,'attributes':{'data-suggestion':_0xcde600,'data-author-id':_0x22c2bf},'priority':_0x4c2ef2};}}),_0x2606bf['conversion']['for']('dataDowncast')['add'](_0x79b5c6=>{_0x79b5c6['on']('addMarker:suggestion',(_0x4f83f0,_0x2a792f,_0x446aff)=>{if(!_0x446aff['options']['showSuggestionHighlights'])return;const _0x43631d=_0x2a792f['item'];if(!_0x43631d)return;const _0x5c4459=_0x446aff['mapper']['toViewElement'](_0x43631d);_0x2606bf['model']['schema']['isObject'](_0x43631d)&&_0x5c4459&&!_0x5c4459['getCustomProperty']('widget')&&_0x5c4459['is']('containerElement')&&_0x3c7c86(_0x5c4459,_0x446aff['writer']);},{'priority':'high'});}),_0x2606bf['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2cb047,_0x4e6047)=>{if(!_0x4e6047['options']['showSuggestionHighlights'])return null;const {type:_0x59ea7b,subType:_0x4cfe58}=this['_splitMarkerName'](_0x2cb047['markerName']);return{'classes':['ck-suggestion-marker',_0x6be350(_0x59ea7b,_0x4cfe58)],'priority':0xbb8};}});const _0x7bd4b0=({showActiveMarkers:_0x3378e7=!0x0,isAttributeSuggestion:_0x2b8814=!0x1}={})=>(_0x48fadf,_0x4e4d2f,_0x49ff03)=>{if(!_0x4e4d2f['item'])return;const {id:_0x2b819b,authorId:_0xb04c8e}=this['_splitMarkerName'](_0x4e4d2f['markerName']);if(_0x2b8814){const _0x494698=this['_suggestions']['get'](_0x2b819b),_0x1417f8=this['_getAttributeKey'](_0x494698);if(!this['_isBlockAttribute'](_0x1417f8))return;}if(_0x4e4d2f['item']['is']('selection'))return void _0x49ff03['consumable']['consume'](_0x4e4d2f['item'],_0x48fadf['name']);const _0x578ea7=_0x49ff03['mapper']['toViewElement'](_0x4e4d2f['item']);if(_0x4e4d2f['item']['is']('element')&&_0x2606bf['model']['schema']['isBlock'](_0x4e4d2f['item'])&&!_0x578ea7['getCustomProperty']('addHighlight')){_0x49ff03['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x578ea7),_0x49ff03['writer']['setAttribute']('data-suggestion',_0x2b819b,_0x578ea7),_0x49ff03['writer']['setAttribute']('data-author-id',_0xb04c8e,_0x578ea7),_0x49ff03['mapper']['bindElementToMarker'](_0x578ea7,_0x4e4d2f['markerName']),_0x3378e7&&(this['activeMarkers']['includes'](_0x4e4d2f['markerName'])?_0x49ff03['writer']['addClass']('ck-suggestion-marker--active',_0x578ea7):_0x49ff03['writer']['removeClass']('ck-suggestion-marker--active',_0x578ea7));for(const _0x2ba146 of _0x2606bf['model']['createRangeIn'](_0x4e4d2f['item'])['getItems']())_0x49ff03['consumable']['consume'](_0x2ba146,_0x48fadf['name']);_0x49ff03['consumable']['consume'](_0x4e4d2f['item'],_0x48fadf['name']);}};_0x2606bf['conversion']['for']('dataDowncast')['add'](_0x22e057=>{_0x22e057['on']('addMarker:suggestion:formatBlock',(_0x25e765,_0x36ce20,_0x527213)=>{_0x527213['options']['showSuggestionHighlights']&&_0x7bd4b0({'showActiveMarkers':!0x1})(_0x25e765,_0x36ce20,_0x527213);},{'priority':'highest'});}),_0x2606bf['conversion']['for']('dataDowncast')['add'](_0x19c91c=>{_0x19c91c['on']('addMarker:suggestion:attribute',(_0xbb004,_0x393307,_0x4f0e10)=>{_0x4f0e10['options']['showSuggestionHighlights']&&_0x7bd4b0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0xbb004,_0x393307,_0x4f0e10);},{'priority':'highest'});}),_0x2606bf['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1bb3f4,_0x45ecb1)=>_0x45ecb1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1bb3f4['substr'](0xb)}}),_0x2606bf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x32b2a5,{writer:_0x32646d})=>{let _0x528d8a='suggestion:'+_0x32b2a5['getAttribute']('suggestion-type')+':'+_0x32b2a5['getAttribute']('id');return _0x32b2a5['getAttribute']('marker-count')&&(_0x528d8a+=':'+_0x32b2a5['getAttribute']('marker-count')),_0x32646d['createElement']('$marker',{'data-name':_0x528d8a});}}),_0x2606bf['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2606bf['conversion']['for']('editingDowncast')['add'](_0x367f6f=>{_0x367f6f['on']('addMarker:suggestion:formatBlock',_0x7bd4b0(),{'priority':'high'});}),_0x2606bf['conversion']['for']('editingDowncast')['add'](_0x24c902=>{_0x24c902['on']('addMarker:suggestion:attribute',_0x7bd4b0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2606bf['conversion']['for']('editingDowncast')['add'](_0x242a52=>{_0x242a52['on']('removeMarker:suggestion:formatBlock',(_0x502430,_0x164ce1,_0x313dfc)=>{const _0xf32f93=_0x313dfc['mapper']['markerNameToElements'](_0x164ce1['markerName']);if(_0xf32f93){for(const _0x92b878 of _0xf32f93)_0x92b878['getCustomProperty']('addHighlight')||(_0x313dfc['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x92b878),_0x313dfc['writer']['removeAttribute']('data-suggestion',_0x92b878),_0x313dfc['writer']['removeAttribute']('data-author-id',_0x92b878),_0x313dfc['mapper']['unbindElementFromMarkerName'](_0x92b878,_0x164ce1['markerName']));}},{'priority':'high'});}),_0x2606bf['conversion']['for']('editingDowncast')['add'](_0x3d2674=>{_0x3d2674['on']('removeMarker:suggestion:attribute',(_0x296ca9,_0x5b7991,_0x38777e)=>{const _0x50f889=_0x38777e['mapper']['markerNameToElements'](_0x5b7991['markerName']);if(!_0x50f889)return;const {id:_0x1cdc53}=this['_splitMarkerName'](_0x5b7991['markerName']),_0x5861ac=this['_suggestions']['get'](_0x1cdc53),_0xb3d360=this['_getAttributeKey'](_0x5861ac);if(this['_isBlockAttribute'](_0xb3d360)){for(const _0x45b5d3 of _0x50f889)_0x45b5d3['getCustomProperty']('addHighlight')||(_0x38777e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45b5d3),_0x38777e['writer']['removeAttribute']('data-suggestion',_0x45b5d3),_0x38777e['writer']['removeAttribute']('data-author-id',_0x45b5d3),_0x38777e['mapper']['unbindElementFromMarkerName'](_0x45b5d3,_0x5b7991['markerName']));}},{'priority':'high'});}),_0x2606bf['model']['document']['registerPostFixer'](_0x54c645=>{let _0x12f99e=!0x1;const _0x227126=Array['from'](_0x2606bf['model']['document']['differ']['getChangedMarkers']()),_0x5d540f=new Set();for(const {name:_0x5d9a2c,data:_0x1e60a7}of _0x227126){const {group:_0x8e0714,type:_0x211892,subType:_0x5dec43,id:_0x5466c8}=this['_splitMarkerName'](_0x5d9a2c);if('suggestion'!==_0x8e0714)continue;const _0x259edf=this['_suggestions']['get'](_0x5466c8);if(null!=_0x1e60a7['newRange']){'formatInline'==_0x211892&&(_0x12f99e=_0x12f99e||Ut(_0x1e60a7['newRange'],_0x5d9a2c,_0x54c645,_0x2606bf['model']['schema']));const _0x1abc95='attribute'==_0x211892&&this['_isBlockAttribute'](_0x5dec43['split']('|')[0x0]);if(_0x1e60a7['newRange']['isCollapsed']||'$graveyard'==_0x1e60a7['newRange']['root']['rootName']||'formatBlock'==_0x211892&&!Ft(_0x1e60a7['newRange'])||_0x1abc95&&!Ft(_0x1e60a7['newRange'])||'deletion'==_0x211892&&!(!Vt(_0x28d8d8=_0x1e60a7['newRange'])&&!function(_0x4d8287){return _0x4d8287['start']['parent']==_0x4d8287['end']['nodeBefore']&&_0x4d8287['start']['isAtEnd'];}(_0x28d8d8)))_0x54c645['removeMarker'](_0x5d9a2c),_0x12f99e=!0x0;else{if(!_0x259edf||!_0x259edf['isInContent'])continue;if(_0x1e60a7['newRange']&&_0x1e60a7['oldRange']&&_0x1e60a7['newRange']['isEqual'](_0x1e60a7['oldRange']))continue;_0x5d540f['add'](_0x259edf);}}}var _0x28d8d8;return _0x5d540f['size']>0x0&&(_0x12f99e=!!this['_joinWithAdjacentSuggestions'](_0x5d540f)||_0x12f99e),_0x12f99e;}),_0x2606bf['model']['document']['registerPostFixer'](_0x7703db=>{let _0x2d63b0=!0x1;for(const _0x3dad5f of _0x2606bf['model']['document']['differ']['getChanges']())if('insert'==_0x3dad5f['type'])for(const _0x176c05 of this['_suggestions']['values']()){if(_0x176c05['isMultiRange']||!_0x176c05['isInContent'])continue;const _0x5dddb7='formatBlock'==_0x176c05['type'],_0x27e207=this['_getAttributeKey'](_0x176c05),_0x4c92a7=_0x27e207&&this['_isBlockAttribute'](_0x27e207);if(!_0x5dddb7&&!_0x4c92a7)continue;const _0x39be37=_0x176c05['getFirstRange']();if(_0x39be37['start']['parent']!=_0x39be37['end']['parent']&&!_0x39be37['end']['isAtEnd']){const _0x2239b4=_0x2606bf['model']['createPositionAt'](_0x39be37['start']['nodeAfter'],'end'),_0xd4cc6a=_0x2606bf['model']['createRange'](_0x39be37['start'],_0x2239b4);_0x7703db['updateMarker'](_0x176c05['getFirstMarker'](),{'range':_0xd4cc6a}),_0x2d63b0=!0x0;}}return _0x2d63b0;}),_0x2606bf['model']['document']['registerPostFixer'](_0xb38e34=>this['_processAttributeChanges'](_0xb38e34)),_0x2606bf['model']['document']['registerPostFixer'](_0x254a14=>!_0x254a14['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x254a14)),_0x2606bf['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2606bf['model']['document']['on']('change:data',(_0x2e398b,_0x5a1e59)=>{if(!_0x5a1e59['isLocal']||_0x5a1e59['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x45bfb2=_0x2606bf['model']['document']['differ']['getChanges']();if(0x0==_0x45bfb2['length'])return;const _0x154f1f=[],_0x5009c6=_0x45bfb2['filter'](_0x30e77f=>'attribute'==_0x30e77f['type']),_0x27822b=_0x45bfb2['filter'](_0x16698c=>'insert'==_0x16698c['type']&&'$text'!=_0x16698c['name']);for(const _0x3ed7ea of _0x5009c6)this['_isRegisteredAttribute'](_0x3ed7ea['attributeKey'])&&_0x154f1f['push']({'key':_0x3ed7ea['attributeKey'],'newValue':_0x3ed7ea['attributeNewValue'],'oldValue':_0x3ed7ea['attributeOldValue'],'range':Pt(_0x3ed7ea['range'],_0x2606bf['model'])});for(const _0x16304a of _0x27822b){if('rename'!=_0x16304a['action']&&'refresh'!=_0x16304a['action'])continue;const _0x423396=Lt(_0x16304a['position']['nodeAfter'],_0x2606bf['model']),_0x5a4e4f=_0x16304a['before'];'rename'==_0x16304a['action']&&_0x154f1f['push']({'key':m,'newValue':_0x16304a['name'],'oldValue':_0x5a4e4f['name'],'range':_0x423396});for(const [_0x4b1a4c,_0x5141a5]of _0x5a4e4f['attributes']){if(!this['_isRegisteredAttribute'](_0x4b1a4c))continue;const _0x4617d8=_0x16304a['attributes']['get'](_0x4b1a4c);_0x5141a5!==_0x4617d8&&_0x154f1f['push']({'key':_0x4b1a4c,'newValue':_0x4617d8,'oldValue':_0x5141a5,'range':_0x423396});}for(const [_0x13bae3,_0x94049e]of _0x16304a['attributes'])this['_isRegisteredAttribute'](_0x13bae3)&&(_0x5a4e4f['attributes']['has'](_0x13bae3)||_0x154f1f['push']({'key':_0x13bae3,'newValue':_0x94049e,'oldValue':null,'range':_0x423396}));}0x0!=_0x154f1f['length']&&_0x2606bf['model']['enqueueChange'](_0x5a1e59,_0x4d5b48=>{const _0x99506a=_0x36eeaa();for(const {range:_0x42f366,key:_0x6f9ce5,oldValue:_0x5edb39,newValue:_0x160091}of _0x154f1f)this['markAttributeChange'](_0x42f366,_0x6f9ce5,_0x5edb39,_0x160091,{'groupId':_0x99506a});this['_reduceExistingSuggestions'](_0x4d5b48,_0x154f1f);});},{'priority':'lowest'}),_0x2606bf['model']['markers']['on']('update:suggestion',(_0x510d56,_0x17b05b,_0x4a83f7)=>{if(null==_0x4a83f7){const {id:_0x3240cd}=this['_splitMarkerName'](_0x17b05b['name']),_0x2e46fb=this['_suggestions']['get'](_0x3240cd);_0x2e46fb&&_0x2e46fb['addMarkerName'](_0x17b05b['name']);}}),_0x2606bf['model']['document']['on']('change:data',()=>{const _0x3a07bd=Array['from'](_0x2606bf['model']['document']['differ']['getChangedMarkers']())['filter'](_0x292d5c=>'suggestion'===this['_splitMarkerName'](_0x292d5c['name'])['group']);if(0x0===_0x3a07bd['length'])return;_0x3a07bd['sort']((_0x580dd7,_0x10901d)=>{const _0x2f9372=_0x580dd7['data']['oldRange'],_0x3e3569=_0x10901d['data']['oldRange'];return null===_0x2f9372&&null===_0x3e3569?0x0:null===_0x2f9372&&null!==_0x3e3569?-0x1:null!==_0x2f9372&&null===_0x3e3569?0x1:_0x2f9372['start']['isBefore'](_0x3e3569['start'])?-0x1:0x1;});const _0xf6412e=new Set(),_0x195e23=new Set();for(const {name:_0x230b5c,data:_0xd31879}of _0x3a07bd){const {id:_0x4e60b9}=this['_splitMarkerName'](_0x230b5c);if(null===_0xd31879['oldRange']){const _0x4fd512=this['_handleNewSuggestionMarker'](_0x230b5c);_0x195e23['add'](_0x4fd512);}else{const _0x354f86=this['_suggestions']['get'](_0x4e60b9);null!==_0xd31879['newRange']||_0x354f86['isInContent']?(_0xf6412e['add'](_0x354f86['head']),_0x195e23['add'](_0x354f86)):this['_removeSuggestion'](_0x354f86);}}_0x195e23['size']>0x0&&this['_refreshSuggestionsChain'](_0x195e23);for(const _0x5bdee5 of _0xf6412e)this['fire']('suggestionChanged',_0x5bdee5);}),_0x2606bf['model']['on']('applyOperation',(_0x3e9603,_0x34a192)=>{const _0x2b693e=_0x34a192[0x0];if(!this['_suggestions']['size'])return;if(!_0x2b693e['isDocumentOperation'])return;if(_0x2b693e['batch']['isUndo']||!_0x2b693e['batch']['isLocal'])return;let _0x389f1b,_0x524acd;switch(_0x2b693e['type']){case'insert':_0x389f1b=_0x2606bf['model']['createPositionAt'](_0x2b693e['position']),_0x524acd=_0x389f1b['getShiftedBy'](_0x2b693e['howMany']);break;case'split':_0x389f1b=_0x2606bf['model']['createPositionAt'](_0x2b693e['splitPosition']),_0x524acd=_0x2606bf['model']['createPositionAt'](_0x2b693e['moveTargetPosition']);break;case'move':_0x389f1b=_0x2606bf['model']['createPositionAt'](_0x2b693e['targetPosition']),_0x524acd=_0x389f1b['getShiftedBy'](_0x2b693e['howMany']);break;default:return;}const _0x484936=_0x2606bf['model']['createRange'](_0x389f1b,_0x524acd);_0x2606bf['model']['change'](()=>{for(const {suggestion:_0x44b49b,meta:_0x44ba77}of this['_findSuggestions'](_0x484936)){if(_0x44b49b['isMultiRange'])continue;if('formatInline'==_0x44b49b['type'])continue;const _0x5bfa56=this['_getAttributeKey'](_0x44b49b);if(_0x5bfa56&&this['_isBlockAttribute'](_0x5bfa56)&&'split'!=_0x2b693e['type'])continue;const _0x25d67c=_0x44b49b['data']&&_0x44b49b['data']['multipleBlocks'];('formatBlock'!=_0x44b49b['type']||'split'==_0x2b693e['type']&&!_0x25d67c)&&(_0x44ba77['containsRangeInObject']||'insertion'==_0x44b49b['type']&&_0x44ba77['isOwn']||_0x44b49b['getFirstRange']()['containsRange'](_0x484936)&&this['_breakSuggestionMarker'](_0x44b49b,_0x389f1b,_0x524acd));}});},{'priority':'lowest'}),_0x2606bf['model']['on']('deleteContent',(_0x5d13b8,_0x2bce3d)=>{const _0x23592f=_0x2bce3d[0x0],_0x5ff737=_0x2bce3d[0x1];if(_0x5ff737&&_0x5ff737['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x23592f['isCollapsed'])return;const _0x26cfe3=_0x2606bf['model']['schema'],{start:_0x536b9d,end:_0x4334d6}=_0x23592f['getFirstRange'](),_0x3978ec=_0x536b9d['nodeAfter']&&_0x26cfe3['isLimit'](_0x536b9d['nodeAfter'])?null:_0x26cfe3['getNearestSelectionRange'](_0x536b9d,'forward'),_0x7acfab=_0x4334d6['nodeBefore']&&_0x26cfe3['isLimit'](_0x4334d6['nodeBefore'])?null:_0x26cfe3['getNearestSelectionRange'](_0x4334d6,'backward'),_0x3177a4=_0x2606bf['model']['createRange'](_0x3978ec?_0x3978ec['start']:_0x536b9d,_0x7acfab?_0x7acfab['end']:_0x4334d6);_0x2606bf['model']['change'](_0x15b7f4=>{this['markDeletion'](_0x3177a4);const _0x553e3b=_0x2606bf['model']['schema']['getNearestSelectionRange'](_0x3177a4['start']);_0x23592f['is']('documentSelection')?_0x15b7f4['setSelection'](_0x553e3b):_0x23592f['setTo'](_0x553e3b);}),_0x5d13b8['stop']();},{'priority':_0x1b23c8['normal']+0xa}),_0x2606bf['model']['on']('insertContent',(_0xbea696,_0x1a40b3)=>{const _0x540892=_0x1a40b3[_0x1a40b3['length']-0x1];_0x540892&&_0x540892['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2606bf['model']['change'](()=>{let _0x3cc32b=_0x2606bf['model']['insertContent'](_0x1a40b3[0x0],_0x1a40b3[0x1],_0x1a40b3[0x2],{'forceDefaultExecution':!0x0});if(!_0x3cc32b)return;_0xbea696['return']=_0x3cc32b['clone']();const _0x1f2884=_0x3cc32b['end']['nodeBefore'],_0x4e5c3a=_0x2606bf['model']['schema'];_0x1f2884&&_0x4e5c3a['isBlock'](_0x1f2884)&&!_0x4e5c3a['isObject'](_0x1f2884)&&(_0x3cc32b=_0x2606bf['model']['createRange'](_0x3cc32b['start'],_0x2606bf['model']['createPositionAt'](_0x1f2884,'end'))),this['markInsertion'](_0x3cc32b);}),_0xbea696['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1a5baf=new x(_0x2606bf,this['_suggestions']);_0x2606bf['commands']['add']('acceptSuggestion',_0x1a5baf),this['enableCommand']('acceptSuggestion');const _0x42d2c0=new R(_0x2606bf,this['_suggestions']);_0x2606bf['commands']['add']('discardSuggestion',_0x42d2c0),this['enableCommand']('discardSuggestion'),_0x2606bf['commands']['add']('acceptAllSuggestions',new E(_0x2606bf,_0x1a5baf,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2606bf['commands']['add']('discardAllSuggestions',new E(_0x2606bf,_0x42d2c0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2606bf['commands']['add']('acceptSelectedSuggestions',new O(_0x2606bf,_0x1a5baf,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2606bf['commands']['add']('discardSelectedSuggestions',new O(_0x2606bf,_0x42d2c0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x375105=_0x2606bf['plugins']['get']('CommentsRepository');this['listenTo'](_0x375105,'addComment',(_0x4d4568,{threadId:_0x3e6519})=>{const _0x3bb74f=this['_suggestions']['get'](_0x3e6519);_0x3bb74f&&_0x3bb74f['commentThread']&&0x1===_0x3bb74f['commentThread']['length']&&this['_updateSuggestionData'](_0x3e6519,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x375105,'removeComment',(_0x385952,{threadId:_0x5a4716})=>{const _0x129c1c=this['_suggestions']['get'](_0x5a4716);_0x129c1c&&_0x129c1c['commentThread']&&!_0x129c1c['commentThread']['length']&&this['_updateSuggestionData'](_0x5a4716,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x48fc96){if(this['_adapter'])throw new _0x1e75e0('track-changes-adapter-already-set',this);this['_adapter']=_0x48fc96;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x6ce809=!0x1,toJSON:_0x53ce74=!0x1}={}){const _0x943f89=[];for(const _0x3579c4 of this['_suggestions']['values']())_0x6ce809&&!_0x3579c4['isInContent']||_0x943f89['push'](_0x3579c4);return _0x53ce74?_0x943f89['map'](_0x1225f2=>_0x1225f2['toJSON']()):_0x943f89;}['getSuggestion'](_0x4acf7e){const _0x5c9261=this['_suggestions']['get'](_0x4acf7e);if(!_0x5c9261)throw new _0x1e75e0('track-changes-suggestion-not-found',this);return _0x5c9261;}['hasSuggestion'](_0x4d4da7){return this['_suggestions']['has'](_0x4d4da7);}['addSuggestionData'](_0x2a46a8){const {authorId:_0x5cb8f,id:_0x49ddf0,attributes:_0x4e76a9}=_0x2a46a8,[_0x2d0e94,_0x5331a4]=_0x2a46a8['type']['split'](':'),_0x1d4404=this['_suggestions']['get'](_0x49ddf0)||this['_createSuggestion'](_0x2d0e94,_0x5331a4,_0x49ddf0,_0x5cb8f,_0x4e76a9);if(this['_addThreadToSuggestion'](_0x1d4404),this['_checkSuggestionCorrectness'](_0x1d4404,_0x2d0e94,_0x5331a4||null,_0x5cb8f),_0x1d4404['createdAt']=_0x2a46a8['createdAt'],_0x1d4404['_isDataLoaded']=!0x0,_0x4e76a9&&_0x4e76a9['@external']){const _0x302c7c=_0x4e76a9['@external'],_0x547e1a=this['_getExternalAuthor'](_0x302c7c['authorName']);_0x1d4404['authoredAt']=_0x302c7c['createdAt'],_0x1d4404['author']=_0x547e1a,_0x1d4404['isExternal']=!0x0;}else _0x1d4404['authoredAt']=_0x2a46a8['createdAt'];switch(_0x2a46a8['data']&&(_0x1d4404['data']=_0x2a46a8['data']),_0x2a46a8['attributes']&&(_0x1d4404['attributes']=_0x2a46a8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1d4404['_saved']=!0x0),this['_suggestionState']['get'](_0x1d4404)){case'notReady':this['_suggestionState']['set'](_0x1d4404,'dataReady');break;case'markerReady':_0x1d4404['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1d4404])),this['_refreshSuggestionsChain'](new Set([_0x1d4404])),this['_suggestionState']['set'](_0x1d4404,'ready'),this['fire']('suggestionLoaded',_0x1d4404)):this['_suggestionState']['set'](_0x1d4404,'removed');}return _0x1d4404;}['acceptSuggestion'](_0x2bae40){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1fddb4 of _0x2bae40['getAllAdjacentSuggestions']())_0x1fddb4['accept']();});});}['discardSuggestion'](_0x3a5acf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15e8cb of _0x3a5acf['getAllAdjacentSuggestions']())_0x15e8cb['discard']();});});}['enableCommand'](_0x3ce07a,_0x335b92){const _0x3be37f=this['editor']['commands']['get'](_0x3ce07a);if(!_0x3be37f)throw new _0x1e75e0('track-changes-command-not-found',this,{'commandName':_0x3ce07a});if(this['_enabledCommands']['has'](_0x3be37f))throw new _0x1e75e0('track-changes-enable-command-twice',this,{'commandName':_0x3ce07a});this['_enabledCommands']['add'](_0x3be37f),_0x335b92&&_0x3be37f['on']('execute',(_0x57dbaf,_0x20af4c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x20af4c['length']>0x0&&_0x20af4c[_0x20af4c['length']-0x1]&&_0x20af4c[_0x20af4c['length']-0x1]['forceDefaultExecution']?_0x20af4c['pop']():(_0x57dbaf['return']=_0x335b92((..._0x1c8609)=>_0x3be37f['execute'](..._0x1c8609,{'forceDefaultExecution':!0x0}),..._0x20af4c),_0x57dbaf['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x593023){let _0x33d6af,_0x16c964;const _0x56c6ed=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x33d6af=_0x593023();}catch(_0x2f8033){_0x16c964=_0x2f8033;}return _0x56c6ed||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x16c964&&_0x1e75e0['rethrowUnexpectedError'](_0x16c964,this),_0x33d6af;}['markInsertion'](_0x5a7a11,_0x3ae368=null,_0x332157={}){if(_0x5a7a11['isCollapsed'])return null;const _0x15d921=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1d90cd,meta:_0x9ac229}of this['_findSuggestions'](_0x5a7a11,'insertion'))if(_0x9ac229['isOwn']){if(!_0x9ac229['isNextTo']){if(_0x9ac229['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1d90cd,_0x332157))continue;return _0x1d90cd;}if(qt(_0x1d90cd,_0x332157))return _0x1d90cd;this['_breakSuggestionMarker'](_0x1d90cd,_0x5a7a11['start'],_0x5a7a11['end']);break;}if(_0x3ae368==_0x1d90cd['subType']&&qt(_0x1d90cd,_0x332157)){const _0xa7fcd7=_0x1d90cd['getFirstRange']();return _0xa7fcd7['start']['isEqual'](_0x5a7a11['end'])?this['_setSuggestionRange'](_0x1d90cd,this['_model']['createRange'](_0x5a7a11['start'],_0xa7fcd7['end'])):this['_setSuggestionRange'](_0x1d90cd,this['_model']['createRange'](_0xa7fcd7['start'],_0x5a7a11['end'])),_0x1d90cd;}}const _0x32ee11=_0x36eeaa(),_0x99b680=_0x15d921['id'],_0x6e06ff=_0x3ae368?'insertion:'+_0x3ae368:'insertion',_0x2b1ae9=this['_setSuggestionData']({'id':_0x32ee11,'type':_0x6e06ff,'createdAt':new Date(),'authorId':_0x99b680,'attributes':_0x332157});return this['_addSuggestionMarker'](_0x6e06ff,_0x32ee11,_0x99b680,_0x5a7a11),_0x2b1ae9;}['markMultiRangeInsertion'](_0x536ba3,_0xe30a53='multi',_0x4d2566={}){const _0x457da2=this['editor']['plugins']['get']('Users')['me'],_0x514350=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xe30a53,'join');for(const _0x7c33b4 of this['getSuggestions']())if(_0x7c33b4['author']['id']==_0x457da2['id']&&'insertion'==_0x7c33b4['type']&&_0x7c33b4['subType']==_0xe30a53&&qt(_0x7c33b4,_0x4d2566)&&(_0x514350(_0x7c33b4['getRanges'](),_0x536ba3)||_0x514350(_0x536ba3,_0x7c33b4['getRanges']()))){for(const _0x75733a of _0x536ba3)_0x7c33b4['addRange'](_0x75733a);return _0x7c33b4;}for(const {suggestion:_0x367a10,meta:_0x1866de}of this['_findSuggestions'](_0x536ba3,'insertion')){if(!_0x1866de['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1866de['containsRangeInObject'])continue;if(!qt(_0x367a10,_0x4d2566))continue;let _0x445b12=!0x0;for(const _0x3e44d1 of _0x367a10['getRanges']())for(const _0x2c6e98 of _0x536ba3)if(!_0x3e44d1['containsRange'](_0x2c6e98)){_0x445b12=!0x1;break;}if(_0x445b12)return _0x367a10;}const _0x1138f0=_0x36eeaa(),_0x228e93=_0x457da2['id'],_0x506230='insertion:'+_0xe30a53,_0x35842e=this['_setSuggestionData']({'id':_0x1138f0,'type':_0x506230,'createdAt':new Date(),'authorId':_0x228e93,'attributes':_0x4d2566});for(const _0x31a953 of _0x536ba3)this['_addSuggestionMarker'](_0x506230,_0x1138f0,_0x228e93,_0x31a953,u['getMultiRangeId']());return _0x35842e;}['markInlineFormat'](_0xe360ba,_0x557fa6,_0xe5bb6=null,_0x3c172a={}){if(_0xe5bb6=_0xe5bb6||Gt(_0x557fa6),_0xe360ba['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2a88d5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe5bb6,'accept');return this['forceDefaultExecution'](()=>_0x2a88d5([_0xe360ba],_0x557fa6,_0x3c172a)),null;}const _0x1c3566=this['editor']['plugins']['get']('Users')['me'],_0x22c2a5=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3ac88e,meta:_0x292511}of this['_findSuggestions'](_0xe360ba,'insertion'))_0x292511['isOwn']&&!_0x292511['isInsideObject']&&_0x22c2a5['push'](..._0x3ac88e['getRanges']());}const _0x5c24ff=function(_0xa8621,_0x10c970){const _0x2800e2=[];for(const _0x3af175 of _0x10c970){const _0x37b19e=_0xa8621['getIntersection'](_0x3af175);_0x37b19e&&_0x2800e2['push'](_0x37b19e);}return _0x2800e2;}(_0xe360ba,_0x22c2a5),_0x52279e=function(_0x5d6e4f,_0x3ab741){const _0x3d17fa=[_0x5d6e4f];for(const _0x431b0c of _0x3ab741){let _0x5f04d3=0x0;for(;_0x5f04d3<_0x3d17fa['length'];){const _0x1c9226=_0x3d17fa[_0x5f04d3]['getDifference'](_0x431b0c);_0x3d17fa['splice'](_0x5f04d3,0x1,..._0x1c9226),_0x5f04d3+=_0x1c9226['length'];}}return _0x3d17fa;}(_0xe360ba,_0x22c2a5);_0x5c24ff['length']&&this['_model']['change'](()=>{for(const _0x206559 of _0x5c24ff){const _0x206ddf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xe5bb6,'accept');this['forceDefaultExecution'](()=>_0x206ddf([_0x206559],_0x557fa6,_0x3c172a));}});for(const _0x3db43e of _0x52279e){let _0x434ca1=null,_0x2079dd=_0x3db43e['start'],_0x23407e=_0x3db43e['end'];for(const {suggestion:_0x32c8d1,meta:_0x10a028}of this['_findSuggestions'](_0x3db43e,'formatInline')){if(!_0x10a028['isOwn'])continue;if(_0x32c8d1['subType']!=_0xe5bb6)continue;if(!qt(_0x32c8d1,_0x3c172a))continue;const _0x5af6cc=_0x32c8d1['getFirstRange']();if(_0x5af6cc['containsRange'](_0x3db43e,!0x0))return null;_0x2079dd=_0x2079dd['isBefore'](_0x5af6cc['start'])?_0x2079dd:_0x5af6cc['start'],_0x23407e=_0x23407e['isAfter'](_0x5af6cc['end'])?_0x23407e:_0x5af6cc['end'],_0x434ca1?_0x5af6cc['start']['isBefore'](_0x434ca1['getFirstRange']()['start'])?(_0x434ca1['removeMarkers'](),_0x434ca1=_0x32c8d1):_0x32c8d1['removeMarkers']():_0x434ca1=_0x32c8d1;}const _0x2a348e=this['_model']['createRange'](_0x2079dd,_0x23407e);if(_0x434ca1)this['_setSuggestionRange'](_0x434ca1,_0x2a348e);else{const _0x7a336f=_0x36eeaa(),_0x4a0553=_0x1c3566['id'];this['_setSuggestionData']({'id':_0x7a336f,'type':'formatInline:'+_0xe5bb6,'data':_0x557fa6,'createdAt':new Date(),'authorId':_0x4a0553,'attributes':_0x3c172a}),this['_addSuggestionMarker']('formatInline:'+_0xe5bb6,_0x7a336f,_0x4a0553,_0x2a348e);}}return null;}['markBlockFormat'](_0x30ae91,_0x22d807,_0x3e1e8f=[],_0x552f6=null,_0x138b41={}){_0x22d807['formatGroupId']||(_0x22d807['formatGroupId']=_0x22d807['commandName']),_0x22d807['multipleBlocks']=_0x30ae91['is']('range'),_0x552f6=_0x552f6||Gt(_0x22d807);const _0x561e87=_0x3e1e8f['map'](_0x4f2c9e=>Lt(_0x4f2c9e,this['_model'])),_0x29d589=_0x30ae91['is']('range')?_0x30ae91:Lt(_0x30ae91,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5584b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x552f6,'accept');return this['forceDefaultExecution'](()=>_0x5584b3([_0x29d589],_0x22d807,_0x138b41)),null;}_0x561e87['push'](_0x29d589);let _0x3568da=!0x0;for(const _0x4a9cc2 of _0x561e87)if(!this['_rangeIsInLocalUserInsertion'](_0x4a9cc2)){_0x3568da=!0x1;break;}if(_0x3568da&&'always'!==this['_trackFormatChanges']){const _0x3d1824=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x552f6,'accept');return this['forceDefaultExecution'](()=>_0x3d1824([_0x29d589],_0x22d807,_0x138b41)),null;}let _0x2c7335=null,_0x568f15=_0x29d589['start'],_0x3ba661=_0x29d589['end'];for(const {suggestion:_0x25b96e,meta:_0x5eb39a}of this['_findSuggestions'](_0x29d589,'formatBlock')){if(!_0x5eb39a['isOwn'])continue;if(_0x5eb39a['isNextTo']||_0x5eb39a['containsRangeInObject']||_0x5eb39a['isInsideObject'])continue;if(_0x25b96e['data']['formatGroupId']!=_0x22d807['formatGroupId'])continue;if(!qt(_0x25b96e,_0x138b41))continue;const _0x57c31e=_0x25b96e['getFirstRange']();if(_0x25b96e['subType']==_0x552f6){if(_0x57c31e['containsRange'](_0x29d589,!0x0))return null;_0x568f15=_0x568f15['isBefore'](_0x57c31e['start'])?_0x568f15:_0x57c31e['start'],_0x3ba661=_0x3ba661['isAfter'](_0x57c31e['end'])?_0x3ba661:_0x57c31e['end'],_0x2c7335?_0x57c31e['start']['isBefore'](_0x2c7335['getFirstRange']()['start'])?(_0x2c7335['removeMarkers'](),_0x2c7335=_0x25b96e):_0x25b96e['removeMarkers']():_0x2c7335=_0x25b96e;}else{const _0x176b65=_0x29d589['getIntersection'](_0x57c31e);this['_cutOutSuggestionMarker'](_0x25b96e,_0x176b65);}}const _0x134b45=this['editor']['plugins']['get']('Users')['me'],_0x5dc60a=_0x36eeaa(),_0xdf7ba2=_0x134b45['id'];if(_0x2c7335)return this['_setSuggestionRange'](_0x2c7335,this['_model']['createRange'](_0x568f15,_0x3ba661)),_0x2c7335;{const _0x1efef7=this['_setSuggestionData']({'id':_0x5dc60a,'type':'formatBlock:'+_0x552f6,'data':_0x22d807,'createdAt':new Date(),'authorId':_0xdf7ba2,'attributes':_0x138b41});return this['_addSuggestionMarker']('formatBlock:'+_0x552f6,_0x5dc60a,_0xdf7ba2,this['_model']['createRange'](_0x568f15,_0x3ba661)),_0x1efef7;}}['markMultiRangeBlockFormat'](_0x3d9141,_0x18cbe7,_0x375809=[],_0x30a118=null,_0x2ce42a={}){_0x18cbe7['formatGroupId']||(_0x18cbe7['formatGroupId']=_0x18cbe7['commandName']);const _0x2c4125=_0x3d9141[0x0];_0x18cbe7['multipleBlocks']=_0x2c4125['is']('range'),_0x30a118=_0x30a118||Gt(_0x18cbe7);const _0x27d505=_0x375809['map'](_0x134d87=>Lt(_0x134d87,this['_model'])),_0x45c859=_0x2c4125['is']('range')?_0x3d9141:_0x3d9141['map'](_0x4f0f7a=>Lt(_0x4f0f7a,this['_model']));if('never'===this['_trackFormatChanges']){const _0xf3b53a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30a118,'accept');return this['forceDefaultExecution'](()=>_0xf3b53a(_0x45c859,_0x18cbe7,_0x2ce42a)),null;}_0x27d505['push'](..._0x45c859);let _0x1e8057=!0x0;for(const _0x2d8a90 of _0x27d505)if(!this['_rangeIsInLocalUserInsertion'](_0x2d8a90)){_0x1e8057=!0x1;break;}if(_0x1e8057&&'always'!==this['_trackFormatChanges']){const _0x4478a0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30a118,'accept');return this['forceDefaultExecution'](()=>_0x4478a0(_0x45c859,_0x18cbe7,_0x2ce42a)),null;}const _0x233cea=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d9574 of this['getSuggestions']()){if(_0x4d9574['author']['id']!=_0x233cea['id'])continue;if('formatBlock'!=_0x4d9574['type']||_0x4d9574['data']['formatGroupId']!=_0x18cbe7['formatGroupId'])continue;if(!qt(_0x4d9574,_0x2ce42a))continue;const _0x57819d=_0x4d9574['subType']==_0x30a118;for(let _0x47c942=0x0;_0x47c942<_0x45c859['length'];_0x47c942++){const _0x2136e4=_0x45c859[_0x47c942];for(const _0x4fdb85 of _0x4d9574['getMarkers']()){const _0x38b892=_0x4fdb85['getRange']();if(_0x2136e4['isEqual'](_0x38b892)){_0x57819d?(_0x45c859['splice'](_0x47c942,0x1),_0x47c942--):_0x4d9574['removeMarker'](_0x4fdb85['name']);break;}}}}if(0x0==_0x45c859['length'])return null;const _0x3751bb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30a118,'join');for(const _0x6986d4 of this['getSuggestions']())if(_0x6986d4['author']['id']==_0x233cea['id']&&'formatBlock'==_0x6986d4['type']&&_0x6986d4['data']['formatGroupId']==_0x18cbe7['formatGroupId']&&_0x6986d4['subType']==_0x30a118&&qt(_0x6986d4,_0x2ce42a)&&(_0x3751bb(_0x6986d4['getRanges'](),_0x45c859)||_0x3751bb(_0x45c859,_0x6986d4['getRanges']()))){for(const _0x193d7b of _0x45c859)_0x6986d4['addRange'](_0x193d7b);return _0x6986d4;}const _0x22cfec=_0x36eeaa(),_0x59bb43=_0x233cea['id'],_0x579e52='formatBlock:'+_0x30a118,_0x54895a=this['_setSuggestionData']({'id':_0x22cfec,'type':_0x579e52,'data':_0x18cbe7,'createdAt':new Date(),'authorId':_0x59bb43,'attributes':_0x2ce42a});for(const _0x184809 of _0x45c859)this['_addSuggestionMarker'](_0x579e52,_0x22cfec,_0x59bb43,_0x184809,u['getMultiRangeId']());return _0x54895a;}['markDeletion'](_0x159cea,_0x5c27c8=null,_0x488678={}){if(_0x159cea['isCollapsed'])return null;const _0x28a904=this['editor']['plugins']['get']('Users')['me'],_0xec0510=new _0x5ed280(_0x159cea['start'],_0x159cea['end']);for(const {suggestion:_0xcc3e79,meta:_0x5a98a3}of this['_findSuggestions'](_0xec0510,'insertion'))if(_0x5a98a3['isOwn']&&!_0x5a98a3['isNextTo']){if(_0xcc3e79['isMultiRange']){const _0x3bdd9d=_0xcc3e79['getRanges']()['filter'](_0x3c0f80=>'$graveyard'!=_0x3c0f80['root']['rootName']);_0x3bdd9d['every'](_0x1c5bab=>_0xec0510['containsRange'](_0x1c5bab,!0x0))&&_0xcc3e79['discard']();if(_0x3bdd9d['some'](_0x428d14=>_0x428d14['containsRange'](_0xec0510,!0x0))){const _0x1d066f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c27c8,'accept');return this['forceDefaultExecution'](()=>_0x1d066f([_0xec0510],null,_0x488678)),null;}}else{const _0x191274=_0xec0510['getIntersection'](_0xcc3e79['getFirstRange']());null!==_0x191274&&_0xcc3e79['_onDiscard']([_0x191274],null,_0x488678);}}if(_0xec0510['detach'](),_0xec0510['isCollapsed']||'$graveyard'==_0xec0510['root']['rootName'])return null;let _0x5362d7=null,_0x16745b=_0xec0510['start'],_0x3d8270=_0xec0510['end'];const _0x467590=this['_findSuggestions'](_0xec0510,'deletion');for(const {suggestion:_0x43c355,meta:_0x5a2603}of _0x467590){const _0x132be4=this['_model']['createRange'](_0x16745b,_0x3d8270);if(_0x5a2603['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5a2603['containsRangeInObject']&&!_0x5a2603['isInsideObject'])){if(_0x43c355['isMultiRange']){if(!qt(_0x43c355,_0x488678))continue;let _0x48a74f=!0x0;for(const _0x1b02e5 of _0x43c355['getRanges']()){if(_0x1b02e5['containsRange'](_0x132be4,!0x0))return _0x43c355;_0x132be4['containsRange'](_0x1b02e5)||(_0x48a74f=!0x1);}_0x48a74f&&_0x43c355['discard']();}else{const _0x55d64c=_0x43c355['getFirstRange']();if(_0x55d64c['containsRange'](_0x132be4,!0x0))return _0x43c355;if(!qt(_0x43c355,_0x488678)){_0x132be4['containsRange'](_0x55d64c)?_0x43c355['removeMarkers']():_0x55d64c['containsPosition'](_0x16745b)?_0x16745b=_0x55d64c['end']:_0x55d64c['containsPosition'](_0x3d8270)&&(_0x3d8270=_0x55d64c['start']);continue;}_0x16745b=_0x16745b['isBefore'](_0x55d64c['start'])?_0x16745b:_0x55d64c['start'],_0x3d8270=_0x3d8270['isAfter'](_0x55d64c['end'])?_0x3d8270:_0x55d64c['end'],_0x488678=Object['assign']({},_0x43c355['attributes']),_0x5362d7?_0x55d64c['start']['isBefore'](_0x5362d7['getFirstRange']()['start'])?(_0x5362d7['removeMarkers'](),_0x5362d7=_0x43c355):_0x43c355['removeMarkers']():_0x5362d7=_0x43c355;}}}if(_0x5362d7)return this['_setSuggestionRange'](_0x5362d7,this['_model']['createRange'](_0x16745b,_0x3d8270)),_0x5362d7;{const _0x1ab93a=_0x36eeaa(),_0x3a3993=this['_model']['createRange'](_0x16745b,_0x3d8270),_0x3b5476=_0x28a904['id'],_0x3b3bf9=_0x5c27c8?'deletion:'+_0x5c27c8:'deletion',_0x42c23e=this['_setSuggestionData']({'id':_0x1ab93a,'type':_0x3b3bf9,'createdAt':new Date(),'authorId':_0x3b5476,'attributes':_0x488678});return this['_addSuggestionMarker'](_0x3b3bf9,_0x1ab93a,_0x3b5476,_0x3a3993),_0x42c23e;}}['markMultiRangeDeletion'](_0x56804a,_0x30bd57='multi',_0x34eed2={}){const _0x2b10b0=this['editor']['plugins']['get']('Users')['me'],_0x4ca720=_0x56804a['map'](_0x400b27=>new _0x5ed280(_0x400b27['start'],_0x400b27['end'])),_0x231e3b=new Set();for(const {suggestion:_0x4718c9,meta:_0x30b6be}of this['_findSuggestions'](_0x4ca720,'insertion'))_0x30b6be['isOwn']&&!_0x30b6be['isNextTo']&&_0x231e3b['add'](_0x4718c9);for(const _0x245ce4 of _0x231e3b)if(_0x245ce4['isMultiRange']){const _0x45d57a=_0x245ce4['getRanges']();(!_0x245ce4['attributes']||!_0x245ce4['attributes']['skipNestingCheck'])&&(_0x45d57a['every'](_0x54ff9b=>_0x4ca720['some'](_0x259b41=>_0x259b41['containsRange'](_0x54ff9b,!0x0)))&&_0x245ce4['discard']());if(_0x4ca720['every'](_0x11acf8=>_0x45d57a['some'](_0xb2161f=>_0xb2161f['containsRange'](_0x11acf8,!0x0)))){const _0x2795dd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30bd57,'accept');return this['forceDefaultExecution'](()=>_0x2795dd(_0x56804a,null,_0x34eed2)),null;}}else{const _0x370f5e=_0x245ce4['getFirstRange']();_0x4ca720['some'](_0x508e72=>_0x508e72['containsRange'](_0x370f5e,!0x0))&&_0x245ce4['discard']();if(_0x4ca720['every'](_0x201f72=>_0x370f5e['containsRange'](_0x201f72,!0x0))){const _0x408327=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30bd57,'accept');return this['forceDefaultExecution'](()=>_0x408327(_0x4ca720,null,_0x34eed2)),null;}}const _0xff0e03=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x30bd57,'join');let _0x2a0d2f=null;for(const _0xcd15eb of this['getSuggestions']())if(_0xcd15eb['author']['id']==_0x2b10b0['id']&&_0xcd15eb['isInContent']&&'deletion'==_0xcd15eb['type']&&_0xcd15eb['subType']==_0x30bd57&&qt(_0xcd15eb,_0x34eed2)&&(_0xff0e03(_0xcd15eb['getRanges'](),_0x4ca720)||_0xff0e03(_0x4ca720,_0xcd15eb['getRanges']()))){if(_0x2a0d2f){if(_0xcd15eb['commentThread']&&_0xcd15eb['commentThread']['length'])continue;for(const _0x23fde4 of _0xcd15eb['getRanges']())_0x2a0d2f['isIntersectingWithRange'](_0x23fde4)||_0x2a0d2f['addRange'](_0x23fde4);_0xcd15eb['removeMarkers']();}else{_0x2a0d2f=_0xcd15eb;for(const _0x401da0 of _0x4ca720)_0xcd15eb['isIntersectingWithRange'](_0x401da0)||_0xcd15eb['addRange'](_0x401da0);}}if(_0x2a0d2f)return _0x2a0d2f;_0x231e3b['clear']();for(const {suggestion:_0x463a39,meta:_0x44010b}of this['_findSuggestions'](_0x4ca720,'deletion'))_0x44010b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x44010b['containsRangeInObject']&&!_0x44010b['isInsideObject'])&&qt(_0x463a39,_0x34eed2)&&_0x231e3b['add'](_0x463a39);for(const _0x1e681e of _0x231e3b){const _0x3fb545=_0x1e681e['getRanges']();if(!_0x34eed2||!_0x34eed2['skipNestingCheck']){if(_0x4ca720['every'](_0x51c1ac=>_0x3fb545['some'](_0x4f882e=>_0x4f882e['containsRange'](_0x51c1ac,!0x0))))return _0x1e681e;}(!_0x1e681e['attributes']||!_0x1e681e['attributes']['skipNestingCheck'])&&(_0x3fb545['every'](_0x1643f0=>_0x4ca720['some'](_0xf9e0d7=>_0xf9e0d7['containsRange'](_0x1643f0,!0x0)))&&_0x1e681e['discard']());}const _0x53f29f=_0x36eeaa(),_0x5b922d=_0x2b10b0['id'],_0x44d163='deletion:'+_0x30bd57,_0x7aad32=this['_setSuggestionData']({'id':_0x53f29f,'type':_0x44d163,'createdAt':new Date(),'authorId':_0x5b922d,'attributes':_0x34eed2});for(const _0x49c96b of _0x4ca720)_0x49c96b['detach'](),_0x49c96b['isCollapsed']||'$graveyard'==_0x49c96b['root']['rootName']||this['_addSuggestionMarker'](_0x44d163,_0x53f29f,_0x5b922d,_0x49c96b,u['getMultiRangeId']());return _0x7aad32;}['markAttributeChange'](_0x5bb10c,_0x351b0b,_0x6d2876,_0x13daaa,_0x208ce7){if(_0x5bb10c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xf1a003=this['editor']['plugins']['get']('Users')['me']['id'],_0x301493=Array['from'](this['_suggestions']['values']())['filter'](_0x1b3ad5=>'attribute'==_0x1b3ad5['type']&&_0x1b3ad5['data']['key']==_0x351b0b&&_0x1b3ad5['isIntersectingWithRange'](_0x5bb10c));if('default'===this['_trackFormatChanges']){const _0x3f7282=this['_findSuggestions'](_0x5bb10c,'insertion')['filter'](({meta:_0x383bf5})=>_0x383bf5['isOwn']&&!_0x383bf5['isInsideObject']&&!_0x383bf5['isNextTo'])['map'](({suggestion:_0x45876e})=>_0x45876e);_0x301493['unshift'](..._0x3f7282);}const _0x5e323d=new Map([[_0x5bb10c,_0x6d2876]]);for(const _0xaf2979 of _0x301493){const _0x40f1f1='attribute'==_0xaf2979['type']?_0xaf2979['data']['oldValue']:void 0x0,_0x368956=_0xaf2979['getFirstRange'](),_0x5210da=Array['from'](_0x5e323d['keys']())['find'](_0x2b8810=>_0x2b8810['isIntersecting'](_0x368956));if(!_0x5210da)continue;const _0x4c7687=_0x5210da['getDifference'](_0x368956);this['_isBlockAttribute'](_0x351b0b)&&'insertion'==_0xaf2979['type']&&0x0!=_0x4c7687['length']||(_0x5e323d['delete'](_0x5210da),_0x4c7687['forEach'](_0x424555=>{_0x5e323d['set'](_0x424555,_0x6d2876);}),'insertion'!=_0xaf2979['type']&&_0x40f1f1!=_0x13daaa&&_0x5e323d['set'](_0x5210da['getIntersection'](_0x368956),_0x40f1f1));}const _0x6bec87=[];for(const [_0x8aaa39,_0x5200be]of _0x5e323d){const _0x3d0e96=_0x36eeaa(),_0xd50ca4={'key':_0x351b0b,'oldValue':_0x5200be,'newValue':_0x13daaa};_0x351b0b['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':_0x351b0b});const _0xbc1830=('attribute:'+(_0x351b0b+'|'+Gt({'newValue':_0x13daaa})))['substring'](0x0,0x3c),_0x16fa08=this['_setSuggestionData']({'id':_0x3d0e96,'type':_0xbc1830,'data':_0xd50ca4,'createdAt':new Date(),'authorId':_0xf1a003,'attributes':_0x208ce7});_0x6bec87['push'](_0x16fa08),this['_addSuggestionMarker'](_0xbc1830,_0x3d0e96,_0xf1a003,_0x8aaa39);}return _0x6bec87;}['enableDefaultAttributesIntegration'](_0x923534){this['enableCommand'](_0x923534,(_0x5c3f65,..._0x47dd9a)=>{this['_recordAttributeChanges'](()=>{_0x5c3f65(..._0x47dd9a);});});}['registerBlockAttribute'](_0x59fb9d){this['_blockAttributeKeys']['add'](_0x59fb9d);}['registerInlineAttribute'](_0x1054b0){this['_inlineAttributeKeys']['add'](_0x1054b0);}['_getAttributeKey'](_0x36d915){return'attribute'==_0x36d915['type']?_0x36d915['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x9215d8,_0x45516d){const _0x5bfc49=_0x9215d8['getFirstMarker']();this['_model']['change'](_0x1fc74c=>{_0x1fc74c['updateMarker'](_0x5bfc49,{'range':_0x45516d});});}['_addThreadToSuggestion'](_0x55e526){const _0x5779f7=_0x55e526['id'],_0x56efe3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5779f7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x56efe3,'threadId':_0x5779f7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x89e9a=this['_commentsRepository']['getCommentThread'](_0x5779f7);_0x89e9a['unbind']('isRemovable'),_0x89e9a['isRemovable']=!0x1,_0x55e526['commentThread']=_0x89e9a;}['_checkSuggestionCorrectness'](_0x3917dc,_0x115fb5,_0x1523e6,_0x2dfa4e){if(_0x3917dc['type']!=_0x115fb5||_0x3917dc['subType']!=_0x1523e6||_0x3917dc['creator']['id']!=_0x2dfa4e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1e75e0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x518961,_0x55eb0a){const _0x2c0de6=_0x518961['getFirstRange']();if(_0x55eb0a['isEqual'](_0x2c0de6))_0x518961['removeMarkers']();else{if(_0x2c0de6['containsRange'](_0x55eb0a)){const _0x417a30=this['_model']['createPositionAt'](_0x55eb0a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x518961,this['_model']['createRange'](_0x2c0de6['start'],_0x417a30));const _0x427fe4=_0x36eeaa(),_0x20c09b=_0x518961['creator']['id'],_0x76a5ce=_0x518961['type']+':'+_0x518961['subType'];this['_setSuggestionData']({'id':_0x427fe4,'type':_0x76a5ce,'createdAt':new Date(),'authorId':_0x20c09b,'data':_0x518961['data'],'attributes':_0x518961['attributes']});const _0x253a87=this['_model']['createPositionAt'](_0x55eb0a['end']['parent'],'after'),_0x17a7ff=this['_model']['createRange'](_0x253a87,_0x2c0de6['end']);this['_addSuggestionMarker'](_0x76a5ce,_0x427fe4,_0x20c09b,_0x17a7ff);}else{if(_0x2c0de6['containsPosition'](_0x55eb0a['start'])){const _0x1681f5=this['_model']['createPositionAt'](_0x55eb0a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x518961,this['_model']['createRange'](_0x2c0de6['start'],_0x1681f5));}else{const _0x2fd27c=this['_model']['createPositionAt'](_0x55eb0a['end']['parent'],'after');this['_setSuggestionRange'](_0x518961,this['_model']['createRange'](_0x2fd27c,_0x2c0de6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5c637c){for(const {suggestion:_0x245530,meta:_0x36a0a5}of this['_findSuggestions'](_0x5c637c,'insertion')){if(!_0x36a0a5['isOwn'])continue;const _0x938420=_0x245530['getRanges']();for(const _0x1457cd of _0x938420)if(!_0x5c637c['getDifference'](_0x1457cd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x24949d){const _0x4b1683=this['editor']['plugins']['get']('Users')['getUser'](_0x24949d);if(!_0x4b1683)throw new _0x1e75e0('track-changes-user-not-found',this);return _0x4b1683;}['_getExternalAuthor'](_0x283908){const _0x2e7d87=this['editor']['plugins']['get']('Users'),_0x99fd3a=_0x2287f9('external:'+_0x283908),_0x594623=_0x2e7d87['getUser'](_0x99fd3a);return _0x594623||_0x2e7d87['addUser']({'id':_0x99fd3a,'name':_0x283908});}['_createSuggestion'](_0x43ee89,_0x57dcc1,_0x16875d,_0x23c52e,_0x5ed841){const _0x2d2c3b=this['_getAuthorFromId'](_0x23c52e),_0x1c1bb1=this['_suggestionFactory']['buildSuggestion'](_0x43ee89,_0x57dcc1,_0x16875d,_0x2d2c3b,_0x5ed841,_0x390b6a=>{this['_updateSuggestionData'](_0x16875d,{'attributes':_0x390b6a});const _0x50e528=this['getSuggestion'](_0x16875d);this['_joinWithAdjacentSuggestions'](new Set([_0x50e528])),this['_refreshSuggestionsChain'](new Set([_0x50e528]));});return this['listenTo'](_0x1c1bb1,'accept',()=>{this['_updateSuggestionData'](_0x16875d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1c1bb1,'discard',()=>{this['_updateSuggestionData'](_0x16875d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x16875d,_0x1c1bb1),this['_suggestionState']['set'](_0x1c1bb1,'notReady'),_0x1c1bb1;}['_splitMarkerName'](_0xd941d6){const _0x4184fb=_0xd941d6['split'](':');return{'group':_0x4184fb[0x0],'type':_0x4184fb[0x1],'subType':_0x4184fb['length']>=0x5?_0x4184fb[0x2]:null,'id':_0x4184fb['length']<0x5?_0x4184fb[0x2]:_0x4184fb[0x3],'authorId':_0x4184fb['length']<0x5?_0x4184fb[0x3]:_0x4184fb[0x4],'markerCount':0x6==_0x4184fb['length']?_0x4184fb[0x5]:null};}['_breakSuggestionMarker'](_0x42f835,_0xdc0867,_0x2c9876){const _0x52b127=_0x42f835['getFirstRange'](),_0x3255be=_0x52b127['start'],_0x52a82e=_0x52b127['end'];this['_setSuggestionRange'](_0x42f835,this['_model']['createRange'](_0x3255be,_0xdc0867));const _0x2fed32=_0x36eeaa(),_0x5d0b75=_0x42f835['creator']['id'],_0x17cf3e=_0x42f835['type']+(_0x42f835['subType']?':'+_0x42f835['subType']:'');this['_setSuggestionData']({'id':_0x2fed32,'type':_0x17cf3e,'createdAt':new Date(),'authorId':_0x5d0b75,'originalSuggestionId':_0x42f835['id'],'attributes':_0x42f835['attributes'],'data':_0x42f835['data']});const _0x4917a2=this['_getAttributeKey'](_0x42f835);('formatBlock'==_0x42f835['type']||_0x4917a2&&this['_isBlockAttribute'](_0x4917a2))&&(_0x2c9876=this['_model']['createPositionBefore'](_0x2c9876['parent'])),this['_addSuggestionMarker'](_0x17cf3e,_0x2fed32,_0x5d0b75,this['_model']['createRange'](_0x2c9876,_0x52a82e));}['_findSuggestions'](_0x867e15,_0x3d71e7=null){const _0x2b1586=[],_0x3955d4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x867e15)||(_0x867e15=[_0x867e15]);for(const _0x2934cf of this['getSuggestions']()){if(!_0x2934cf['isInContent'])continue;if(_0x3d71e7&&_0x2934cf['type']!=_0x3d71e7)continue;let _0xa8d5ac=!0x1;for(const _0x351c5d of _0x2934cf['getRanges']()){for(const _0x41e74d of _0x867e15){const _0x4eabfd=_0x41e74d['start']['isEqual'](_0x351c5d['end'])||_0x41e74d['end']['isEqual'](_0x351c5d['start']);if(_0x4eabfd||_0x41e74d['getIntersection'](_0x351c5d)){const _0x3aceef=_0x41e74d['containsRange'](_0x351c5d)&&Ot(this['_model']['schema'],_0x351c5d['start'],_0x41e74d),_0x2e9809=_0x351c5d['containsRange'](_0x41e74d)&&Ot(this['_model']['schema'],_0x41e74d['start'],_0x351c5d);_0x2b1586['push']({'suggestion':_0x2934cf,'meta':{'isOwn':_0x3955d4==_0x2934cf['author'],'isNextTo':_0x4eabfd,'isInsideObject':_0x3aceef,'containsRangeInObject':_0x2e9809}}),_0xa8d5ac=!0x0;break;}}if(_0xa8d5ac)break;}}return _0x2b1586;}['_addSuggestionMarker'](_0x146aa5,_0x3c3dac,_0x3fa01e,_0x552b04,_0x3cbd11){this['_model']['change'](_0x97987e=>{let _0x54e9f9='suggestion:'+_0x146aa5+':'+_0x3c3dac+':'+_0x3fa01e;_0x3cbd11&&(_0x54e9f9=_0x54e9f9+':'+_0x3cbd11),_0x97987e['addMarker'](_0x54e9f9,{'range':_0x552b04,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x461ad0){const _0x35b7b3=_0x461ad0['previous'],_0x516625=_0x461ad0['next'];_0x461ad0['previous']=null,_0x461ad0['next']=null,null!=_0x35b7b3&&_0x35b7b3['next']==_0x461ad0&&(_0x35b7b3['next']=_0x516625),null!=_0x516625&&_0x516625['previous']==_0x461ad0&&(_0x516625['previous']=_0x35b7b3),'ready'==this['_suggestionState']['get'](_0x461ad0)&&(this['_suggestionState']['set'](_0x461ad0,'removed'),this['fire']('suggestionUnloaded',_0x461ad0,_0x35b7b3,_0x516625));}['_setSuggestionData'](_0x9ec1cb){const _0x170a02=_0x9ec1cb['id'],_0x5a2dc3=this['addSuggestionData'](_0x9ec1cb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1124fb=this['editor']['plugins']['get']('PendingActions'),_0x1793eb=_0x5a2dc3['hasComments'],_0x4ea0cf=_0x5a2dc3['subType']?_0x5a2dc3['type']+':'+_0x5a2dc3['subType']:_0x5a2dc3['type'],_0xc6633b=this['editor']['locale'],_0x5cfc48=_0x1124fb['add'](o(_0xc6633b,'PENDING_ACTION_SUGGESTION')),_0x31a402={'id':_0x170a02,'type':_0x4ea0cf,'hasComments':_0x1793eb,'data':_0x9ec1cb['data']||null,'originalSuggestionId':_0x9ec1cb['originalSuggestionId']||null,'attributes':_0x5a2dc3['attributes']};this['_adapter']['addSuggestion'](_0x31a402)['then'](_0x313833=>{_0x5a2dc3['_saved']=!0x0,_0x1124fb['remove'](_0x5cfc48),_0x313833&&_0x313833['createdAt']&&(this['_suggestions']['get'](_0x170a02)['createdAt']=_0x313833['createdAt']);})['catch'](_0x31933b=>{throw _0x249a14('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5a2dc3['discard']();}),_0x5a2dc3['stopListening'](),this['_suggestions']['delete'](_0x5a2dc3['id']),this['_suggestionState']['delete'](_0x5a2dc3),_0x31933b;});}return _0x5a2dc3;}['_isBlockAttribute'](_0x4827bf){return this['_blockAttributeKeys']['has'](_0x4827bf);}['_updateSuggestionData'](_0x344bdb,_0x533848){const _0x80d66=this['editor']['plugins']['get']('PendingActions'),_0x29801b=this['getSuggestion'](_0x344bdb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x29801b['_saved']){const _0x2122c3=_0x80d66['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x344bdb,_0x533848)['then'](()=>{_0x80d66['remove'](_0x2122c3);});}else _0x29801b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x344bdb,_0x533848);});}}['_getSuggestionData'](_0x5dc4bd){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1e75e0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5dc4bd);}['_handleNewSuggestionMarker'](_0x2e8d32){const {id:_0x22b1c4,type:_0x19f503,subType:_0x503251,authorId:_0xb4a99f}=this['_splitMarkerName'](_0x2e8d32),_0x4c009e=this['_suggestions']['get'](_0x22b1c4)||this['_createSuggestion'](_0x19f503,_0x503251,_0x22b1c4,_0xb4a99f,{});switch(this['_checkSuggestionCorrectness'](_0x4c009e,_0x19f503,_0x503251,_0xb4a99f),this['_suggestionState']['get'](_0x4c009e)){case'notReady':this['_getSuggestionData'](_0x22b1c4)['then'](_0xcae5cc=>{let _0x16e544=Promise['resolve']();_0xcae5cc['hasComments']&&(_0x16e544=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x22b1c4})),_0x16e544['then'](()=>{this['addSuggestionData'](_0xcae5cc)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4c009e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x22b1c4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4c009e,'ready'),this['fire']('suggestionLoaded',_0x4c009e);break;case'ready':this['fire']('suggestionChanged',_0x4c009e);}return _0x4c009e['addMarkerName'](_0x2e8d32),_0x4c009e;}['_refreshSuggestionsChain'](_0x418db9){const _0x17698b=Array['from'](_0x418db9),_0x5cabda=_0x17698b['filter'](_0x13b63e=>'attribute'==_0x13b63e['type']);this['_refreshAttributeSuggestionsChain'](_0x5cabda);const _0x480b84=_0x17698b['filter'](_0x153965=>!_0x153965['isMultiRange']&&'attribute'!=_0x153965['type']),_0x1c654d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fe221=>!_0x4fe221['isMultiRange']&&'attribute'!=_0x4fe221['type']),_0x243b27=_0x1c654d['filter'](_0xc05f6=>!_0x418db9['has'](_0xc05f6)),_0x1d6e8e=new Map(_0x1c654d['map'](_0x3418f0=>[_0x3418f0,this['_suggestionFactory']['getSuggestionCallback'](_0x3418f0['type'],_0x3418f0['subType'],'chain')])),_0x2686d1=new Map(_0x1c654d['map'](_0x233c87=>[_0x233c87,_0x233c87['getFirstRange']()])),_0x574a73=new Set(),_0x4037f2=new Set();for(let _0x4d838e=0x0;_0x4d838e<_0x480b84['length'];_0x4d838e++)_0x345ec6(_0x480b84[_0x4d838e],_0x480b84,_0x4d838e+0x1);for(let _0x48ac09=0x0;_0x48ac09<_0x480b84['length'];_0x48ac09++)_0x345ec6(_0x480b84[_0x48ac09],_0x243b27,0x0);const _0x3b6589=new Set();for(let _0x1723f9=0x0;_0x1723f9<_0x480b84['length'];_0x1723f9++){const _0xb66969=_0x480b84[_0x1723f9];!_0x4037f2['has'](_0xb66969)&&_0xb66969['previous']&&(_0x3b6589['add'](_0xb66969['previous']),_0xb66969['previous']['next']===_0xb66969&&(_0xb66969['previous']['next']=null),_0xb66969['previous']=null),!_0x574a73['has'](_0xb66969)&&_0xb66969['next']&&(_0x3b6589['add'](_0xb66969['next']),_0xb66969['next']['previous']===_0xb66969&&(_0xb66969['next']['previous']=null),_0xb66969['next']=null);}function _0x345ec6(_0x2ae5d4,_0x94b9fc,_0x53bf3c){for(let _0x29c7b6=_0x53bf3c;_0x29c7b6<_0x94b9fc['length'];_0x29c7b6++){const _0x1b3922=_0x414e32(_0x2ae5d4,_0x94b9fc[_0x29c7b6]);_0x1b3922&&(_0x1b3922[0x0]['next']=_0x1b3922[0x1],_0x1b3922[0x1]['previous']=_0x1b3922[0x0],_0x574a73['add'](_0x1b3922[0x0]),_0x4037f2['add'](_0x1b3922[0x1]));}}function _0x414e32(_0x4943b8,_0x34ebe0){if(_0x4943b8['author']['id']!==_0x34ebe0['author']['id'])return null;const _0x4de010=_0x1d6e8e['get'](_0x4943b8)(_0x4943b8,_0x34ebe0,_0x2686d1['get'](_0x4943b8),_0x2686d1['get'](_0x34ebe0));if(!_0x4de010)return null;return _0x1d6e8e['get'](_0x34ebe0)(_0x4943b8,_0x34ebe0,_0x2686d1['get'](_0x4943b8),_0x2686d1['get'](_0x34ebe0))?_0x4de010[0x1]['commentThread']&&_0x4de010[0x1]['commentThread']['length']?null:_0x4de010:null;}_0x3b6589['size']&&this['_refreshSuggestionsChain'](_0x3b6589);}['_refreshAttributeSuggestionsChain'](_0xe42d45){if(0x0==_0xe42d45['length'])return;const _0x3c8433=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f0730=>'attribute'==_0x2f0730['type']&&_0x2f0730['_isDataLoaded']),_0x470d13=[],_0x225e92=new Map();for(const _0x4dad5b of _0x3c8433){const _0x10a17d=_0x2287f9(_0x4dad5b['attributes']);_0x225e92['has'](_0x10a17d)||(_0x225e92['set'](_0x10a17d,_0x470d13['length']),_0x470d13['push']([]));const _0x4ddddd=_0x225e92['get'](_0x10a17d);_0x470d13[_0x4ddddd]['push'](_0x4dad5b);}!(function(){_0x470d13['sort']((_0x114cfa,_0x2ce0bd)=>{const _0x232ce4=_0x114cfa[0x0]['createdAt'],_0x2fa40d=_0x2ce0bd[0x0]['createdAt'];return _0x232ce4==_0x2fa40d?_0x114cfa[0x0]['attributes']['groupId']<_0x2ce0bd[0x0]['attributes']['groupId']?-0x1:0x1:_0x232ce4<_0x2fa40d?-0x1:0x1;});for(const _0x5f3bb1 of _0x470d13)_0x5f3bb1['sort']((_0xd438f1,_0xdd5741)=>_0xd438f1['id']<_0xdd5741['id']?-0x1:0x1);}());for(let _0x2417ed=0x0;_0x2417ed<_0x470d13['length'];_0x2417ed++){if(0x0==_0x470d13[_0x2417ed]['length'])continue;const _0x5ba4fd=[];for(let _0x2f8808=_0x2417ed+0x1;_0x2f8808<_0x470d13['length'];_0x2f8808++)0x0!=_0x470d13[_0x2f8808]['length']&&_0x3b13c3(_0x470d13[_0x2417ed],_0x470d13[_0x2f8808])&&_0x5ba4fd['push'](_0x2f8808);for(const _0xfa1210 of _0x5ba4fd)_0x470d13[_0x2417ed]=_0x470d13[_0x2417ed]['concat'](_0x470d13[_0xfa1210]),_0x470d13[_0xfa1210]=[];}for(const _0x3670ad of _0x470d13)for(let _0x3a359a=0x0;_0x3a359a<_0x3670ad['length'];_0x3a359a++){const _0x442a8a=_0x3670ad[_0x3a359a+0x1]||null;_0x3670ad[_0x3a359a]['next']!==_0x442a8a&&(_0x3670ad[_0x3a359a]['next']=_0x442a8a);}for(const _0x5a9b79 of _0x470d13)for(let _0x31d591=0x0;_0x31d591<_0x5a9b79['length'];_0x31d591++){const _0x46b952=_0x5a9b79[_0x31d591-0x1]||null;_0x5a9b79[_0x31d591]['previous']!==_0x46b952&&(_0x5a9b79[_0x31d591]['previous']=_0x46b952);}function _0x3b13c3(_0x56e7e0,_0x2166f1){if(_0x56e7e0[0x0]['attributes']['groupId']!==_0x2166f1[0x0]['attributes']['groupId']&&_0x56e7e0[0x0]['author']!==_0x2166f1[0x0]['author'])return!0x1;if(!function(_0x3a5899,_0x4f0a36){if(!_0x3a5899['hasComments']&&!_0x4f0a36['hasComments'])return!0x0;if(_0x3a5899['hasComments']&&_0x4f0a36['hasComments'])return!0x1;if(_0x3a5899['hasComments']&&_0x4f0a36['createdAt']<_0x3a5899['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4f0a36['hasComments']&&_0x3a5899['createdAt']<_0x4f0a36['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x56e7e0[0x0],_0x2166f1[0x0]))return!0x1;const _0x2e1fa8=Tt(_0x56e7e0[0x0]['attributes'],'groupId'),_0x3d0420=Tt(_0x2166f1[0x0]['attributes'],'groupId');if(!_0x2d7d66(_0x2e1fa8,_0x3d0420))return!0x1;return!!_0x56e7e0['every'](_0x30e5e7=>_0x2166f1['some'](_0x2799a9=>_0x30e5e7['getFirstRange']()['isEqual'](_0x2799a9['getFirstRange']())))&&_0x2166f1['every'](_0x23b0cb=>_0x56e7e0['some'](_0xedc5d3=>_0x23b0cb['getFirstRange']()['isEqual'](_0xedc5d3['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x524bfa){const _0x46fece=Array['from'](_0x524bfa),_0x23a0bc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x58a23b=_0x23a0bc['filter'](_0x12a401=>!_0x524bfa['has'](_0x12a401)),_0x2ffb8c=new Map(_0x46fece['map'](_0x107e40=>[_0x107e40,this['_suggestionFactory']['getSuggestionCallback'](_0x107e40['type'],_0x107e40['subType'],'join')])),_0x28bbb8=new Map(_0x23a0bc['map'](_0x813897=>[_0x813897,_0x813897['getRanges']()]));for(let _0x303581=0x0;_0x303581<_0x46fece['length'];_0x303581++){if(_0x319df0(this,_0x46fece[_0x303581],_0x46fece,_0x303581+0x1))return!0x0;}for(let _0x29025c=0x0;_0x29025c<_0x46fece['length'];_0x29025c++){if(_0x319df0(this,_0x46fece[_0x29025c],_0x58a23b,0x0))return!0x0;}return!0x1;function _0x319df0(_0x20a65d,_0x40c1bc,_0x499aea,_0x26aba9){for(let _0x44730f=_0x26aba9;_0x44730f<_0x499aea['length'];_0x44730f++){const _0x1de424=_0x499aea[_0x44730f];if(_0x1de424['type']!==_0x40c1bc['type']||_0x1de424['author']['id']!==_0x40c1bc['author']['id']||_0x1de424['subType']!==_0x40c1bc['subType'])continue;if(!Jt(_0x40c1bc,_0x1de424))continue;if('attribute'==_0x40c1bc['type']&&_0x40c1bc['data']['oldValue']!=_0x1de424['data']['oldValue'])continue;if('attribute'==_0x40c1bc['type']&&_0x20a65d['_isBlockAttribute'](_0x40c1bc['data']['key']))continue;if('formatBlock'==_0x40c1bc['type']){const _0x164d86=_0x20a65d['editor']['model'],_0x23a722=_0x40c1bc['getContainedElement']();if(_0x23a722&&(_0x164d86['schema']['isObject'](_0x23a722)||_0x164d86['schema']['isLimit'](_0x23a722)))continue;}const _0x561971=_0x2ffb8c['get'](_0x40c1bc),_0x753cb7=_0x28bbb8['get'](_0x40c1bc),_0x373942=_0x28bbb8['get'](_0x1de424),_0x3972df=_0x40c1bc['commentThread']&&_0x40c1bc['commentThread']['length'],_0x541473=_0x1de424['commentThread']&&_0x1de424['commentThread']['length'];if(!_0x3972df&&_0x561971(_0x373942,_0x753cb7))return _0x20a65d['_joinSuggestions'](_0x1de424,_0x40c1bc),_0x28bbb8['delete'](_0x40c1bc),!0x0;if(!_0x541473&&_0x561971(_0x753cb7,_0x373942))return _0x20a65d['_joinSuggestions'](_0x40c1bc,_0x1de424),_0x28bbb8['delete'](_0x1de424),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2b93e4,_0x7eae17){if(_0x2b93e4['isMultiRange']){for(const _0x283346 of _0x7eae17['getRanges']())_0x2b93e4['addRange'](_0x283346);}else{const _0x543650=_0x7eae17['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2b93e4,this['_model']['createRange'](_0x2b93e4['getFirstRange']()['start'],_0x543650));}_0x7eae17['removeMarkers']();}['_getMarkerAnnouncementText'](_0xe17f34,_0x596a25,_0x481eac){const _0x4f5925=_0xe17f34['startsWith']('format')||_0xe17f34['startsWith']('attribute')?'FORMATTING':_0xe17f34['toUpperCase']();return o(this['editor']['locale'],_0x596a25+'_'+_0x4f5925+'_SUGGESTION_ANNOUNCEMENT',_0x481eac);}['_initAriaMarkerChangeAnnouncements'](){const _0x3c41d5=this['editor'];if(!_0x3c41d5['ui'])return;const {ariaLiveAnnouncer:_0x437476}=_0x3c41d5['ui'];_0x32db40(this['_model'],({left:_0xd3f5d,entered:_0x398436})=>{for(const _0x16cdfa of _0xd3f5d){const {group:_0x133bc6,type:_0x14aedb}=this['_splitMarkerName'](_0x16cdfa['name']);if('suggestion'===_0x133bc6){_0x437476['announce'](this['_getMarkerAnnouncementText'](_0x14aedb,'LEAVE'));break;}}for(const _0x377c1e of _0x398436){const {group:_0x374f61,type:_0x218a1e}=this['_splitMarkerName'](_0x377c1e['name']);if('suggestion'===_0x374f61){_0x437476['announce'](this['_getMarkerAnnouncementText'](_0x218a1e,'ENTER',_0xb9abf9(_0x4438d0)));break;}}});}['_processAttributeChanges'](_0x268335){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4e2c07=this['editor'],_0xcfd983=_0x4e2c07['model']['document']['differ']['getChanges']();if(0x0==_0xcfd983['length'])return!0x1;const _0x324991=[],_0x1344c5=_0xcfd983['filter'](_0x3c3c04=>'attribute'==_0x3c3c04['type']),_0x15a388=_0xcfd983['filter'](_0x175912=>'insert'==_0x175912['type']&&'$text'!=_0x175912['name']),_0x5c40db=_0xcfd983['filter'](_0x5b2dec=>'remove'==_0x5b2dec['type']&&'$text'!=_0x5b2dec['name']);for(const _0x417ce4 of _0x1344c5)_0x324991['push']({'key':_0x417ce4['attributeKey'],'newValue':_0x417ce4['attributeNewValue'],'oldValue':_0x417ce4['attributeOldValue'],'range':Pt(_0x417ce4['range'],_0x4e2c07['model'])});for(const _0x249513 of _0x15a388){const _0x516707=_0x5c40db['find'](_0x1d67cf=>_0x1d67cf['position']['isEqual'](_0x249513['position']));_0x516707&&_0x324991['push']({'key':m,'newValue':_0x249513['name'],'oldValue':_0x516707['name'],'range':_0x4e2c07['model']['createRangeOn'](_0x249513['position']['nodeAfter'])});}return 0x0!=_0x324991['length']&&this['_reduceExistingSuggestions'](_0x268335,_0x324991);}['_processAttributeSuggestions'](_0x2dbf43){let _0x1b7b91=!0x1;const _0x18a697=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x297ff1=>_0x297ff1['data']['newRange']&&_0x297ff1['name']['startsWith']('suggestion:attribute:'));for(const _0x253bdc of _0x18a697){const {subType:_0x4e5535,id:_0x22ae1f}=this['_splitMarkerName'](_0x253bdc['name']),_0x4a2982=_0x4e5535['split']('|')[0x0];for(const _0x150aaf of this['getSuggestions']({'skipNotAttached':!0x0}))_0x150aaf['id']!=_0x22ae1f&&'attribute'==_0x150aaf['type']&&_0x150aaf['data']&&_0x150aaf['data']['key']==_0x4a2982&&_0x150aaf['getFirstRange']()['isIntersecting'](_0x253bdc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x150aaf,_0x253bdc['data']['newRange'],_0x2dbf43),_0x1b7b91=!0x0);}return _0x1b7b91;}['_recordAttributeChanges'](_0x505d4f){this['_recordAttributeSuggestions']=!0x0,_0x505d4f();}['_isRegisteredAttribute'](_0x3880ca){const _0x2a6278=this['_isBlockAttribute'](_0x3880ca),_0x3b5d3a=this['_inlineAttributeKeys']['has'](_0x3880ca);return _0x2a6278||_0x3b5d3a;}['_reduceExistingSuggestions'](_0x479752,_0xed0a96){if(0x0==_0xed0a96['length'])return!0x1;let _0x1b9c45=!0x1;for(const _0x1dfdd9 of _0xed0a96){const _0x551092=this['_findSuggestions'](_0x1dfdd9['range'],'attribute')['filter'](_0x4a5729=>!_0x4a5729['meta']['isNextTo'])['map'](_0x75056=>_0x75056['suggestion']),_0x4d91df=_0x2287f9({'newValue':_0x1dfdd9['newValue']});_0x551092['filter'](_0x150af8=>{const [_0x57f488,_0x200279]=_0x150af8['subType']['split']('|');return _0x57f488==_0x1dfdd9['key']&&_0x200279!=_0x4d91df;})['forEach'](_0x3beb2f=>{this['_reduceSuggestionAttributeRange'](_0x3beb2f,_0x1dfdd9['range'],_0x479752),_0x1b9c45=!0x0;});}return _0x1b9c45;}['_reduceSuggestionAttributeRange'](_0x5c8a28,_0x5bd07e,_0x360a09){const _0x5e9bac=_0x5c8a28['getFirstRange']()['getDifference'](_0x5bd07e);0x0!==_0x5e9bac['length']?0x1!==_0x5e9bac['length']?this['_breakSuggestionMarker'](_0x5c8a28,_0x5bd07e['start'],_0x5bd07e['end']):this['_setSuggestionRange'](_0x5c8a28,_0x5e9bac[0x0]):_0x360a09['removeMarker'](_0x5c8a28['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xae4f41){this['_editor']=_0xae4f41,this['_model']=_0xae4f41['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1861c1,_0x2d6300,_0x474971,_0x5bc630,_0xb8f6c0,_0x2f20d2){return new u(this['_model'],{'type':_0x1861c1,'subType':_0x2d6300,'id':_0x474971,'author':_0x5bc630,'creator':_0x5bc630,'attributes':_0xb8f6c0,'onAttributesChange':_0x2f20d2,'onAccept':(..._0x488766)=>this['getSuggestionCallback'](_0x1861c1,_0x2d6300,'accept')(..._0x488766),'onDiscard':(..._0x5cefbd)=>this['getSuggestionCallback'](_0x1861c1,_0x2d6300,'discard')(..._0x5cefbd)});}['registerCustomCallback'](_0x5646ad,_0x2c7aa9,_0x414a10,_0x23251d){const _0x27d578=_0x5646ad+':'+_0x2c7aa9+':'+_0x414a10;this['_customCallbacks']['set'](_0x27d578,_0x23251d);}['getSuggestionCallback'](_0x41e46c,_0x5790f8,_0x2ec808){const _0x4fa87c=_0x41e46c+':'+_0x5790f8+':'+_0x2ec808;return this['_customCallbacks']['get'](_0x4fa87c)||this['_defaultCallbacks']['get'](_0x41e46c+':'+_0x2ec808);}['_registerDefaultCallbacks'](){const _0x45c710=()=>!0x1,_0x2da135=_0x271ca8=>{_0x271ca8['sort']((_0x17d19d,_0x2f7936)=>_0x17d19d['start']['isBefore'](_0x2f7936['start'])?0x1:-0x1),this['_model']['change'](_0x250189=>{for(const _0x516c49 of _0x271ca8){let _0x562ac5;_0x562ac5=_0x516c49['end']['isAtEnd']&&_0x516c49['end']['parent']==_0x516c49['start']['nodeAfter']?_0x250189['createSelection'](_0x516c49['start']['nodeAfter'],'on'):_0x250189['createSelection'](_0x516c49),this['_model']['deleteContent'](_0x562ac5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4b552f=(_0x194d5c,_0x1c8668)=>{_0x1c8668&&this['_model']['change'](_0x47e852=>{const {commandName:_0x424c24,commandParams:_0x1203f5=[]}=_0x1c8668,_0x271aeb=_0x194d5c['map'](_0x15fe57=>(Vt(_0x15fe57)&&(_0x15fe57=this['_model']['createRange'](_0x15fe57['end'])),_0x15fe57))['filter'](_0x839f13=>'$graveyard'!==_0x839f13['root']['rootName']);if(_0x271aeb['length']<0x1)return;const _0x240a77=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1af607=>_0x5ed280['fromRange'](_0x1af607));_0x47e852['setSelection'](_0x271aeb);for(const _0x479c42 of this['_editor']['commands']['commands']())_0x479c42['refresh']();_0x1203f5['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x424c24,..._0x1203f5);const _0x490421=_0x240a77['filter'](_0x3e5d93=>'$graveyard'!=_0x3e5d93['root']['rootName']);_0x490421['length']>0x0&&_0x47e852['setSelection'](_0x490421);for(const _0x56eef1 of _0x240a77)_0x56eef1['detach']();});},_0x2e273f=(_0x343946,_0x468d55)=>0x1==_0x343946['length']&&0x1==_0x468d55['length']&&_0x343946[0x0]['end']['isEqual'](_0x468d55[0x0]['start']),_0x3a2ca9=(_0xc968dc,_0x4b5565,_0x2b0144,_0x2e8b38)=>Ht(_0xc968dc,_0x4b5565,_0x2b0144,_0x2e8b38,this['_model'])?[_0xc968dc,_0x4b5565]:Ht(_0x4b5565,_0xc968dc,_0x2e8b38,_0x2b0144,this['_model'])?[_0x4b5565,_0xc968dc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x45c710),this['_defaultCallbacks']['set']('insertion:discard',_0x2da135),this['_defaultCallbacks']['set']('insertion:join',_0x2e273f),this['_defaultCallbacks']['set']('insertion:chain',_0x3a2ca9),this['_defaultCallbacks']['set']('deletion:accept',_0x2da135),this['_defaultCallbacks']['set']('deletion:discard',_0x45c710),this['_defaultCallbacks']['set']('deletion:join',_0x2e273f),this['_defaultCallbacks']['set']('deletion:chain',_0x3a2ca9),this['_defaultCallbacks']['set']('formatInline:accept',_0x4b552f),this['_defaultCallbacks']['set']('formatInline:discard',_0x45c710),this['_defaultCallbacks']['set']('formatInline:join',_0x2e273f),this['_defaultCallbacks']['set']('formatInline:chain',_0x45c710),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4b552f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x45c710),this['_defaultCallbacks']['set']('formatBlock:join',_0x2e273f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x45c710),this['_defaultCallbacks']['set']('attribute:accept',_0x45c710),this['_defaultCallbacks']['set']('attribute:discard',(_0xb0c938,_0x44e002)=>{if(!_0x44e002)return;const _0x4ec050=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x51ec7d=>{if(_0x44e002['key']==m)for(const _0x17afd7 of _0xb0c938){const _0xcf2474=_0x17afd7['start']['nodeAfter'],_0x4020d2=_0x44e002['oldValue'];_0x51ec7d['rename'](_0xcf2474,_0x4020d2);}else{if(_0x4ec050['_isBlockAttribute'](_0x44e002['key'])){for(const _0x57f6b5 of _0xb0c938)void 0x0!==_0x44e002['oldValue']?_0x51ec7d['setAttribute'](_0x44e002['key'],_0x44e002['oldValue'],_0x57f6b5['start']['nodeAfter']):_0x51ec7d['removeAttribute'](_0x44e002['key'],_0x57f6b5['start']['nodeAfter']);}else{for(const _0x1f91fb of _0xb0c938)_0x44e002['oldValue']?_0x51ec7d['setAttribute'](_0x44e002['key'],_0x44e002['oldValue'],_0x1f91fb):_0x51ec7d['removeAttribute'](_0x44e002['key'],_0x1f91fb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2e273f);}}function Ot(_0x66f178,_0xa0688c,_0x50d335){for(const _0x55e7db of _0xa0688c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x55e7db['root']==_0x55e7db)return!0x1;if(!_0x50d335['containsItem'](_0x55e7db))return!0x1;if(_0x66f178['isObject'](_0x55e7db)||_0x66f178['isLimit'](_0x55e7db))return!0x0;}return!0x1;}function Vt(_0x5f4054){return _0x5f4054['end']['parent']==_0x5f4054['start']['nodeAfter']&&_0x5f4054['end']['isAtStart'];}function Ut(_0x2c9573,_0x5b7b34,_0x1261dc,_0x4ed797){const _0x231140=_0x2673f7=>!_0x2673f7['item']['is']('$textProxy')&&!_0x4ed797['isObject'](_0x2673f7['item']),_0xb291=_0x2c9573['start']['getLastMatchingPosition'](_0x231140),_0x2b6802=_0x2c9573['end']['getLastMatchingPosition'](_0x231140,{'direction':'backward'});return(!_0x2c9573['start']['isEqual'](_0xb291)||!_0x2c9573['end']['isEqual'](_0x2b6802))&&(_0xb291['isBefore'](_0x2b6802)?_0x1261dc['updateMarker'](_0x5b7b34,{'range':_0x1261dc['createRange'](_0xb291,_0x2b6802)}):_0x1261dc['removeMarker'](_0x5b7b34),!0x0);}function Gt(_0x53d5b3){return _0x2287f9(_0x53d5b3);}function Ft(_0x553480){const _0x2e4840=_0x553480['start']['nodeAfter'];return _0x2e4840&&_0x2e4840['is']('element');}function Pt(_0x42c423,_0x11923b){return null==_0x42c423['end']['nodeBefore']&&_0x42c423['end']['parent']==_0x42c423['start']['nodeAfter']?Lt(_0x42c423['start']['nodeAfter'],_0x11923b):_0x42c423;}function Lt(_0x4040bb,_0xc31e2b){const _0x4868f9=_0xc31e2b['schema']['isObject'](_0x4040bb)||_0xc31e2b['schema']['isSelectable'](_0x4040bb);return _0xc31e2b['createRange'](_0xc31e2b['createPositionAt'](_0x4040bb,'before'),_0x4868f9?_0xc31e2b['createPositionAfter'](_0x4040bb):_0xc31e2b['createPositionAt'](_0x4040bb,'end'));}function Ht(_0x52ee56,_0x8ab25e,_0x4b1922,_0x4c41af,_0x4a2968){if(_0x52ee56['next'])return!0x1;if(!Jt(_0x52ee56,_0x8ab25e))return!0x1;if(_0x4b1922['end']['isEqual'](_0x4c41af['start']))return!0x0;if(_0x52ee56['type']!=_0x8ab25e['type'])return!0x1;if(!_0x4b1922['end']['isTouching'](_0x4c41af['start']))return!0x1;const _0x4cb352=_0x4a2968['createRange'](_0x4b1922['end'],_0x4c41af['start'])['getWalker']();for(const _0x4af2ee of _0x4cb352)if(['elementStart','elementEnd']['includes'](_0x4af2ee['type'])&&_0x4a2968['schema']['isLimit'](_0x4af2ee['item']))return!0x1;return!0x0;}function Jt(_0x12195c,_0x64f0c1){if(!_0x12195c['_isDataLoaded']||!_0x64f0c1['_isDataLoaded'])return!0x1;const _0x4fa682=new Set(Object['keys'](_0x12195c['attributes'])),_0x22d5b7=new Set(Object['keys'](_0x64f0c1['attributes']));if(_0x4fa682['delete']('groupId'),_0x22d5b7['delete']('groupId'),0x0==_0x4fa682['size']&&0x0==_0x22d5b7['size'])return!0x0;if(_0x4fa682['size']!=_0x22d5b7['size'])return!0x1;const _0x1f4640={..._0x12195c['attributes']},_0x2676dc={..._0x64f0c1['attributes']};return delete _0x1f4640['groupId'],delete _0x2676dc['groupId'],JSON['stringify'](_0x1f4640)==JSON['stringify'](_0x2676dc);}function qt(_0x3572f6,_0x22f3e4){const _0x140a10=zt(_0x3572f6['attributes']),_0x56b422=zt(_0x22f3e4);if(!_0x3572f6['_isDataLoaded'])return!0x1;for(const _0x1a317f of Object['keys'](_0x56b422))if(!_0x2d7d66(_0x140a10[_0x1a317f],_0x56b422[_0x1a317f]))return!0x1;return!0x0;}function zt(_0x3fec80){const _0x13d7fa=Object['assign']({},_0x3fec80);return delete _0x13d7fa['skipNestingCheck'],delete _0x13d7fa['tablePasteChainId'],_0x13d7fa;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2bfc2e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3fa4e0,_0x3ab196,_0x3b8472,_0x19b32b){super(),this['model']=_0x3ab196,this['view']=_0x3b8472,this['commentThreadController']=_0x19b32b,this['_editor']=_0x3fa4e0,this['_acceptCommand']=_0x3fa4e0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3fa4e0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x40043b,_0x2d8972)=>_0x40043b||_0x2d8972),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2a32fd=>_0x2a32fd&&this['_editor']['model']['canEditAt'](_0x3ab196['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42d05e=>_0x42d05e&&this['_editor']['model']['canEditAt'](_0x3ab196['getRanges']())),this['_pendingAction']=null,_0x3b8472['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3b8472,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3b8472,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3b8472,'change:isDirty',()=>{_0x3b8472['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 _0x411747=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x411747);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x141ea4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x12932d,_0x42d5bf,_0x4c6de8,_0xae8b86){super(_0x12932d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x407379(_0x12932d,o(_0x12932d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x42d5bf['authoredAt']),this['bind']('authoredAt')['to'](_0x42d5bf),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',_0x42d5bf,'authoredAt',this,'descriptionParts',(_0x17b3d0,_0x10a3ed,_0x458c98)=>{const _0x2249ec=_0x458c98['map'](_0x5f49e0=>ls(_0x5f49e0['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x17b3d0-0x1,_0x42d5bf['author']['name'],_0x10a3ed?_0xae8b86['formatDateTime'](_0x10a3ed):'',new DOMParser()['parseFromString'](_0x2249ec,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3031f9(),this['focusTracker']=new _0x1a6770(),this['keystrokes']=new _0xec262a(),this['focusCycler']=new _0xeffe40({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x173105=>_0x173105['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x42d5bf,this['_localUser']=_0x4c6de8,this['_config']=_0xae8b86,_0xae8b86['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xee32ad(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x486630}=this['_config'];this['commentsListView']=new _0x486630(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',_0x38f72f=>_0x38f72f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x195a46,_0x366b67)=>_0x195a46||!!_0x366b67);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x51946b}=this['_config'],_0x2cf83e=new _0x51946b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x53dd9e=_0x2cf83e['commentInputView'];return _0x2cf83e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x53dd9e,'value',(_0x50fa51,_0x454ff7,_0x3dc69b)=>!!_0x3dc69b||_0x50fa51&&!_0x454ff7),_0x53dd9e['on']('submit',(_0x1e6052,_0x31d3b6)=>{this['fire']('addComment',_0x31d3b6),_0x53dd9e['editor']['setData']('');}),_0x53dd9e['on']('cancel',()=>this['focus']()),_0x53dd9e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2cf83e;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1c6869,_0x1f987e,_0x5130a3,_0x227904){super(_0x1c6869,_0x1f987e,_0x5130a3,_0x227904),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5aca65=>_0x5aca65&&_0x5aca65[0x0]?_0x5aca65[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x608c63,_0x3cec12)=>{let _0x2ad277='';for(const _0x107150 of _0x608c63)_0x2ad277+='<p>'+ls(_0x107150['content'],_0x107150['color'])+'</p>';return _0x3cec12?_0x2ad277:_0x381f86(_0x2ad277,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x227904['SuggestionView'](_0x1c6869,_0x1f987e,{'formatDateTime':_0x227904['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 _0x346f68=this['bindTemplate'],_0x186daa=[this['suggestionView']];return this['commentsListView']&&_0x186daa['push'](this['commentsListView']),this['commentThreadInputView']&&_0x186daa['push'](this['commentThreadInputView']),_0x186daa['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x346f68['if']('isActive','ck-suggestion-wrapper--active'),_0x346f68['to']('type',_0x3caf1b=>'ck-suggestion-'+_0x3caf1b),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':_0x346f68['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x186daa};}['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 _0x141ea4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x6755e2,_0x20fa4b,_0x3569a5){super(_0x6755e2),this['_model']=_0x20fa4b,this['_config']=_0x3569a5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x20fa4b),this['acceptButton']=this['_createButton'](o(_0x6755e2,'Accept\x20suggestion'),_0x3b920d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x6755e2,'Discard\x20suggestion'),_0x3b920d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3afdf9(_0x6755e2,_0x20fa4b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3031f9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1a6770(),this['keystrokes']=new _0xec262a(),this['focusCycler']=new _0xeffe40({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x49bcec=>_0x49bcec['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2332b9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2332b9['innerHTML']=this['description'],this['on']('change:description',(_0x24b0af,_0xa1d04e,_0x393b4a)=>{_0x2332b9['innerHTML']=_0x393b4a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3cc5a6=this['bindTemplate'],_0x58fc64=[{'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':_0x3cc5a6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3cc5a6['to']('authoredAt',_0x8d5998=>this['_config']['formatDateTime'](_0x8d5998))}]}]},{'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']&&_0x58fc64['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':_0x58fc64}]};}['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'](_0x36591b,_0x4fdfb0,_0x1ed633,_0x197af3,_0x596a4d){const _0x354cd9=new _0x456809(this['locale']);return _0x354cd9['set']({'label':_0x36591b,'icon':_0x4fdfb0,'tooltip':!0x0,'tooltipPosition':_0x596a4d}),_0x354cd9['extendTemplate']({'attributes':{'class':_0x1ed633}}),_0x354cd9['on']('execute',()=>{this['fire'](_0x197af3,this['_model']['id']);}),_0x354cd9;}['_setupKeyboardNavigation'](){const _0x5bfac0=this['element'];this['keystrokes']['listenTo'](_0x5bfac0);for(const _0x1674b2 of this['focusables'])this['focusTracker']['add'](_0x1674b2['element']),this['keystrokes']['listenTo'](_0x1674b2['element']);this['keystrokes']['set']('enter',(_0x33b18c,_0x3b26c0)=>{_0x5bfac0===_0x33b18c['target']&&(this['focusCycler']['focusFirst'](),_0x3b26c0());}),this['keystrokes']['set']('esc',(_0x8ed411,_0x4b78cc)=>{_0x5bfac0!==_0x8ed411['target']&&(this['focus'](),_0x4b78cc());});}}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 _0x3cc490{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x854ae2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2ce2fc){super(_0x2ce2fc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x487be2=this['editor']['config'];_0x487be2['define']('trackChanges.SuggestionThreadView',re),_0x487be2['define']('trackChanges.SuggestionView',ce),_0x487be2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x487be2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2975cb,_0x4f2d5f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x70fd90,_0x2f4d9d]of this['_handleControllerBuffer']){const _0x3f0a31=this['_suggestionToController']['has'](_0x70fd90);_0x3f0a31||_0x2f4d9d?_0x3f0a31&&_0x2f4d9d&&this['_destroyController'](_0x70fd90):this['_initializeController'](_0x70fd90);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2975cb,_0x4f2d5f);}['init'](){const _0x5b961d=this['editor'],_0x459d89=_0x5b961d['plugins']['get']('TrackChangesEditing'),_0x449ba8=_0x5b961d['plugins']['get']('Annotations'),_0x4af66f=_0x5b961d['plugins']['get']('EditorAnnotations'),_0x3dccdf=_0x5b961d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4af66f['addSourceCollector'](()=>{const _0x4a8e6d=[];for(const [_0x567e18,_0x2488aa]of Array['from'](this['_suggestionToController'])){const _0x424ade=_0x567e18['getAllAdjacentSuggestions'](),_0x25c3e2=[];for(const _0x5a71e5 of _0x424ade){if(!_0x5a71e5['isInContent'])continue;if(_0x5a71e5['isMultiRange']){_0x25c3e2['push'](..._0x5a71e5['getRanges']());continue;}const _0x56bf5f=_0x5a71e5['getFirstRange']();if(_0x25c3e2['length']>0x0){const _0x1301ee=_0x25c3e2[0x0]['getJoined'](_0x56bf5f);if(_0x1301ee){_0x25c3e2[0x0]=_0x1301ee;continue;}}_0x25c3e2['push'](_0x56bf5f);}_0x4a8e6d['push']([_0x2488aa['view'],_0x25c3e2]);}return _0x4a8e6d;}),this['listenTo'](_0x459d89,'suggestionLoaded',(_0x250f83,_0x18f276)=>{this['listenTo'](_0x18f276,'change:previous',(_0x25a9de,_0xa3dda9,_0x2eb352,_0x5811a8)=>{_0x18f276['isInContent']&&(null==_0x2eb352?(this['_updateController'](_0x5811a8['head']),this['_handleSuggestionControllerDelayed'](_0x18f276,!0x1)):(this['_updateController'](_0x2eb352['head']),null==_0x5811a8&&this['_handleSuggestionControllerDelayed'](_0x18f276,!0x0)));}),null!==_0x18f276['previous']?this['_updateController'](_0x18f276['head']):this['_handleSuggestionControllerDelayed'](_0x18f276,!0x1);}),this['listenTo'](_0x459d89,'suggestionUnloaded',(_0x2f0169,_0x379b1a,_0x24f4ce)=>{this['stopListening'](_0x379b1a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x379b1a),this['_suggestionToController']['has'](_0x379b1a)&&this['_destroyController'](_0x379b1a),_0x24f4ce&&this['_updateController'](_0x24f4ce['head']);}),this['listenTo'](_0x459d89,'suggestionChanged',(_0x3a7fb7,_0x40af07)=>{this['_updateController'](_0x40af07);}),this['listenTo'](_0x449ba8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3dccdf,'addComment',(_0x532081,{threadId:_0x40c785,isFromAdapter:_0x2f8f84})=>{if(_0x2f8f84||!_0x459d89['hasSuggestion'](_0x40c785))return;const _0x599e14=_0x459d89['getSuggestion'](_0x40c785);this['_suggestionToController']['get'](_0x599e14)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x223b2b=this['editor']['plugins']['get']('Annotations'),_0x578f8f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe0284d=Array['from'](_0x223b2b['activeAnnotations'],_0xee0e4b=>_0xee0e4b['innerView'])['filter'](_0xa630ec=>this['_viewToController']['has'](_0xa630ec)),_0x291262=[];for(const _0x4e989a of _0xe0284d){const _0x3d3b23=this['_viewToController']['get'](_0x4e989a)['model']['getAllAdjacentSuggestions']();_0x291262['push'](..._0x3d3b23['reduce']((_0xf2c3a0,_0x4b55e7)=>[..._0xf2c3a0,..._0x4b55e7['getMarkerNames']()],[]));}_0x578f8f['activeMarkers']=_0x291262;}['_addUIComponentsToFactory'](){const _0x1f9b51=this['editor'],_0x1c3c01=_0x1f9b51['locale'],_0x2d9c9f=o(_0x1c3c01,'Track\x20changes'),_0x2b66f5=new Wt([{'type':'switchbutton','model':new _0x1be4ba({'withText':!0x0,'isToggleable':!0x0,'label':_0x2d9c9f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1be4ba({'withText':!0x0,'label':o(_0x1c3c01,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1be4ba({'withText':!0x0,'label':o(_0x1c3c01,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1be4ba({'withText':!0x0,'label':o(_0x1c3c01,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1be4ba({'withText':!0x0,'label':o(_0x1c3c01,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x519a9e of _0x2b66f5)if(me(_0x519a9e)){const _0x18d648=_0x1f9b51['commands']['get'](_0x519a9e['model']['commandName']);_0x519a9e['model']['bind']('isOn','isEnabled')['to'](_0x18d648,'value','isEnabled');}_0x1f9b51['ui']['componentFactory']['add']('trackChanges',_0x5607af=>this['_createToolbarButton'](_0x5607af,_0x2b66f5,_0x2d9c9f)),_0x1f9b51['ui']['componentFactory']['add']('menuBar:trackChanges',_0x33573c=>this['_createMenuBarMenu'](_0x33573c,_0x2b66f5,_0x2d9c9f));}['_createToolbarButton'](_0x5b3f5b,_0x53636f,_0x4ddcb4){const _0x201e17=Qt(_0x5b3f5b,_0x1aa0e2),_0xbcd4e6=this['editor']['commands']['get']('trackChanges');_0x201e17['buttonView']['set']({'tooltip':_0x4ddcb4,'label':_0x4ddcb4,'icon':he}),_0x201e17['buttonView']['bind']('isOn')['to'](_0xbcd4e6,'value'),_0x201e17['buttonView']['on']('execute',()=>{_0xbcd4e6['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x201e17,_0x53636f,{'role':'menu'});const _0x5f8073=[];for(const _0x2b97be of _0x53636f)me(_0x2b97be)&&_0x5f8073['push'](this['editor']['commands']['get'](_0x2b97be['model']['commandName']));const _0x17b27f=_0x201e17['buttonView'];return _0x17b27f['actionView']['unbind']('isEnabled'),_0x17b27f['arrowView']['unbind']('isEnabled'),_0x17b27f['actionView']['bind']('isEnabled')['to'](_0xbcd4e6,'isEnabled'),_0x17b27f['arrowView']['bind']('isEnabled')['toMany'](_0x5f8073,'isEnabled',(..._0x7cc268)=>_0x7cc268['some'](_0x5b0f28=>_0x5b0f28)),_0x201e17['on']('execute',_0x57bf93=>{this['editor']['execute'](_0x57bf93['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x201e17;}['_createMenuBarMenu'](_0x38ac47,_0x4ad69a,_0xd93cad){const _0x288487=new Yt(_0x38ac47),_0x55f971=this['editor']['commands']['get']('trackChanges');_0x288487['buttonView']['set']({'label':_0xd93cad,'icon':he});const _0x2322e7=new Zt(_0x38ac47);for(const _0x59d1e3 of _0x4ad69a){if('separator'==_0x59d1e3['type']){_0x2322e7['items']['add'](new Xt(_0x38ac47));continue;}const _0xa55082=new te(_0x38ac47,_0x288487),_0x56c09f=new _0x2c9755(_0x38ac47),_0xc6d531=_0x59d1e3['model'];_0x56c09f['bind'](...Object['keys'](_0xc6d531))['to'](_0xc6d531),_0x56c09f['delegate']('execute')['to'](_0x288487),_0x56c09f['on']('execute',()=>{this['editor']['execute'](_0xc6d531['commandName']),this['editor']['editing']['view']['focus']();}),_0xa55082['children']['add'](_0x56c09f),_0x2322e7['items']['add'](_0xa55082);}return _0x288487['bind']('isEnabled')['to'](_0x55f971,'isEnabled'),_0x288487['panelView']['children']['add'](_0x2322e7),_0x288487;}['_initializeController'](_0x43de75){const _0x919fa1=this['editor'],_0x4a2221=_0x919fa1['config'],_0x571bfa=_0x919fa1['plugins']['get']('Annotations'),_0x41613a=_0x919fa1['plugins']['get']('CommentsRepository'),_0x4e12cc=_0x919fa1['plugins']['get']('EditorAnnotations'),_0x268da2=_0x919fa1['plugins']['get'](_0x854ae2)['me'],_0xd74505=_0x4a2221['get']('trackChanges')['SuggestionThreadView'],_0x526061=_0x4a2221['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51de29,CommentThreadInputView:_0xc46848}=_0x919fa1['plugins']['get']('CommentsUI');let _0x55da71,_0x4478a1,_0x4234d5;this['_annotationViews']['has'](_0x43de75['id'])?(_0x4478a1=this['_annotationViews']['get'](_0x43de75['id']),_0x55da71=_0x4478a1['mainView']):(_0x55da71=new _0xd74505(_0x919fa1['locale'],_0x43de75,_0x268da2,{'disableComments':this['_disableComments'],'editorConfig':_0x4a2221['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x4a2221['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a2221['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a2221['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x507d6b(_0x4a2221['get']('locale')),'CommentView':_0x4a2221['get']('comments')['CommentView'],'CommentsListView':_0x51de29,'CommentThreadInputView':_0xc46848,'SuggestionView':_0x526061}),_0x55da71['suggestionView']['acceptButton']['on']('execute',()=>{_0x919fa1['editing']['view']['focus']();}),_0x55da71['suggestionView']['discardButton']['on']('execute',()=>{_0x919fa1['editing']['view']['focus']();}),_0x4478a1=_0x571bfa['createAnnotationView'](this['editor']['locale'],_0x55da71),_0x4478a1['bind']('isDirty')['to'](_0x55da71,'isDirty'),_0x4478a1['bind']('length')['to'](_0x55da71),_0x4478a1['bind']('type')['to'](_0x55da71,'type',_0x5ee9e2=>'suggestion-'+_0x5ee9e2),_0x55da71['on']('escape',()=>{_0x4234d5['fire']('escape');}),this['_annotationViews']['set'](_0x43de75['id'],_0x4478a1));const _0x596e98=_0x41613a['createCommentThreadController'](_0x43de75['commentThread'],_0x55da71),_0x36689c=new ae(_0x919fa1,_0x43de75,_0x55da71,_0x596e98),_0x15d09c=_0x43de75['getAllAdjacentSuggestions']()['filter'](_0x5f3afa=>_0x5f3afa['isInContent']);_0x55da71['descriptionParts']=_0x919fa1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x15d09c),this['_suggestionToController']['set'](_0x43de75,_0x36689c),this['_viewToController']['set'](_0x55da71,_0x36689c),_0x4234d5=_0x571bfa['createAnnotation']({'view':_0x4478a1,'target':()=>{const _0x574c62=[],_0x40e7c5=_0x43de75['getAllAdjacentSuggestions']()['filter'](_0x2b1132=>_0x2b1132['isInContent']);for(const _0x126bec of _0x40e7c5)_0x574c62['push'](..._0x126bec['getMarkers']());return _0x393583(_0x919fa1['editing'],_0x574c62);},'type':()=>'suggestion-'+_0x36689c['view']['type']}),_0x41613a['_bindAnnotationToEditors'](_0x55da71,_0x4234d5),_0x571bfa['add'](_0x4234d5),_0x4e12cc['registerAnnotation'](_0x4234d5);}['_destroyController'](_0x242f12){const _0x5b2b95=this['editor']['plugins']['get']('CommentsRepository'),_0x3cf1fe=this['editor']['plugins']['get']('Annotations'),_0x56027f=this['_suggestionToController']['get'](_0x242f12),_0xd88bdd=_0x56027f['view'],_0x17c144=_0x3cf1fe['getByInnerView'](_0xd88bdd);_0x5b2b95['_unbindEditors'](_0xd88bdd),_0x17c144&&_0x3cf1fe['remove'](_0x17c144),this['_suggestionToController']['delete'](_0x242f12),this['_viewToController']['delete'](_0xd88bdd),_0x56027f['destroy']();}['_updateController'](_0x3568c6){if(!_0x3568c6['isInContent']||!this['_suggestionToController']['has'](_0x3568c6))return;const _0x31ec82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23c6fe=this['_suggestionToController']['get'](_0x3568c6),_0x20c8f6=_0x3568c6['getAllAdjacentSuggestions']();_0x23c6fe['view']['descriptionParts']=_0x31ec82['descriptionFactory']['getDescriptions'](_0x20c8f6);}['destroy'](){for(const _0xf0a8b8 of this['_suggestionToController']['keys']())this['_destroyController'](_0xf0a8b8);for(const _0x2aae52 of this['_annotationViews']['values']())_0x2aae52['mainView']['destroy']();super['destroy']();}}function me(_0x4ec683){return'model'in _0x4ec683;}class k extends _0x3cc490{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3a7de6){this['editor']['plugins']['get'](p)['adapter']=_0x3a7de6;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x53722d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x53722d);}['getSuggestions']({skipNotAttached:_0x5d1e7b=!0x1,toJSON:_0x4d7d48=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5d1e7b,'toJSON':_0x4d7d48});}['getSuggestion'](_0x1fe32d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1fe32d);}}const T=['Pagination'];class P extends _0x3cc490{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4b5e85=this['editor'];if(_0x4b5e85['config']['define']('trackChangesData.editorCreator',_0x2d50d0=>{const _0x400970=_0x4b5e85['model']['document']['getRootNames']()['reduce']((_0x36c053,_0x1999c3)=>(_0x36c053[_0x1999c3]='',_0x36c053),{});return _0x4b5e85['constructor']['create'](_0x400970,_0x2d50d0);}),'function'!=typeof _0x4b5e85['config']['get']('trackChangesData')['editorCreator'])throw new _0x1e75e0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x59046a){return N(this['editor'],!0x0,_0x59046a);}['getDataWithDiscardedSuggestions'](_0x115f83){return N(this['editor'],!0x1,_0x115f83);}}class D extends _0x3cc490{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x176b1a){super(_0x176b1a),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(_0x4c26da){return void 0x0!==_0x4c26da['getRootsAttributes'];}async function N(_0x20b7d6,_0x1aab90,_0x21810b){const _0x3273c3=_0x39574(_0x20b7d6,T);_0x3273c3['plugins']['push'](p,D),_0x3273c3['rootsAttributes']=v(_0x20b7d6)?_0x20b7d6['getRootsAttributes']():void 0x0;const _0x242b10=document['createDocumentFragment'](),_0x34c551=_0x20b7d6['config']['get']('trackChangesData')['editorCreator'],_0x5d1088=await _0x34c551(_0x3273c3,()=>function(_0x16a1b3){const _0x4000af=document['createElement']('div');return _0x16a1b3['appendChild'](_0x4000af),_0x4000af;}(_0x242b10));!function(_0x1de874,_0x2c5442){const _0x2c06d9=_0x1de874['model']['document']['getRootNames']()['reduce']((_0x39a47c,_0x5d9f08)=>(_0x39a47c[_0x5d9f08]=_0x1de874['data']['get']({'rootName':_0x5d9f08}),_0x39a47c),{}),_0x37231d=_0x1de874['plugins']['get']('Users')['users']['map'](_0x48f625=>({'id':_0x48f625['id'],'name':_0x48f625['name']})),_0x3396ff=_0x1de874['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1e2727=_0x1de874['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3224af=_0x2c5442['plugins']['get']('Users'),_0x26d98d=_0x2c5442['plugins']['get']('TrackChangesEditing'),_0x5f5aa5=_0x2c5442['plugins']['get']('CommentsRepository');for(const _0x3de7ae of _0x5f5aa5['getCommentThreads']())_0x3de7ae['remove']();for(const _0x30b253 of _0x37231d)_0x3224af['getUser'](_0x30b253['id'])||_0x3224af['addUser'](_0x30b253);_0x3224af['me']||_0x3224af['useAnonymousUser']();for(const _0x359944 of _0x1e2727)_0x5f5aa5['addCommentThread'](_0x359944);for(const _0xbe249b of _0x3396ff)_0x26d98d['addSuggestionData'](_0xbe249b);_0x2c5442['data']['set'](_0x2c06d9);}(_0x20b7d6,_0x5d1088),_0x5d1088['execute'](_0x1aab90?'acceptAllSuggestions':'discardAllSuggestions');const _0x4d666a=v(_0x5d1088)?_0x5d1088['getFullData'](_0x21810b):_0x5d1088['data']['get'](_0x21810b);return await _0x5d1088['destroy'](),_0x4d666a;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|