@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241016.0 → 0.0.0-nightly-20241018.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/integrations/tableproperties.d.ts +8 -0
- package/dist/trackchanges.d.ts +8 -0
- package/dist/trackchangesdata.d.ts +8 -0
- package/dist/trackchangesediting.d.ts +8 -0
- package/dist/trackchangesui.d.ts +8 -0
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/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.d.ts +8 -0
- 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.d.ts +8 -0
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.d.ts +8 -0
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.d.ts +8 -0
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.d.ts +8 -0
- 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
|
-
_0xecfd75(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x47563d,_0x5580d8){super(),this['id']=_0x5580d8['id'],this['type']=_0x5580d8['type'],this['subType']=_0x5580d8['subType']||null,this['author']=_0x5580d8['author'],this['creator']=_0x5580d8['creator']||_0x5580d8['author'],this['isExternal']=Boolean(_0x5580d8['attributes']&&_0x5580d8['attributes']['@external']),this['data']=null,this['_model']=_0x47563d,this['_onAccept']=_0x5580d8['onAccept'],this['_onDiscard']=_0x5580d8['onDiscard'],this['_onAttributesChange']=_0x5580d8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5580d8['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 _0x5c6867=this;for(;_0x5c6867['previous'];)_0x5c6867=_0x5c6867['previous'];return _0x5c6867;}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'](_0x8d6baf){this['_markerNames']['add'](_0x8d6baf);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5376df=>this['_model']['markers']['get'](_0x5376df))['filter'](_0x26b40d=>_0x26b40d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x34c6b3=>{for(const _0x1cdc81 of this['getMarkers']())_0x34c6b3['removeMarker'](_0x1cdc81);}),this['_markerNames']['clear']();}['removeMarker'](_0x2098b6){this['_model']['change'](_0x50b8c=>{_0x50b8c['removeMarker'](_0x2098b6);}),this['_markerNames']['delete'](_0x2098b6);}['addRange'](_0x1ebfed){const _0x3d6c53='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3d6c53),this['_model']['change'](_0x39241d=>{_0x39241d['addMarker'](_0x3d6c53,{'range':_0x1ebfed,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1f38b9){for(const _0x3ecd94 of this['getRanges']())if(_0x3ecd94['isIntersecting'](_0x1f38b9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x442019=>_0x442019['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3d6a23,_0x495864)=>[..._0x3d6a23,..._0x495864['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x46649c=this['getRanges']();if(0x1!=_0x46649c['length'])return null;const _0x17cf99=_0x46649c[0x0],_0x53b69c=_0x17cf99['start']['nodeAfter'],_0x238b46=_0x17cf99['end']['nodeBefore'];return _0x53b69c instanceof _0x1a5965?_0x53b69c!=_0x238b46?null:_0x53b69c: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 _0x3c9ac9=[];let _0x34fd8c=this['head'];for(;_0x34fd8c;)_0x3c9ac9['push'](_0x34fd8c),_0x34fd8c=_0x34fd8c['next'];return _0x3c9ac9;}['setAttribute'](_0x1f626b,_0x2b3ca1){const _0x49a32a=_0x430798(this['attributes']);_0x28c5fa(_0x49a32a,_0x1f626b,_0x2b3ca1),_0x4d1bff(_0x49a32a,this['attributes'])||(this['attributes']=_0x49a32a,this['_onAttributesChange'](_0x49a32a));}['removeAttribute'](_0x3768ae){const _0x20de32=_0x430798(this['attributes']);_0x45103c(_0x20de32,_0x3768ae),_0x4d1bff(_0x20de32,this['attributes'])||(this['attributes']=_0x20de32,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 _0x30a933()['substr'](0x1,0x5);}}function o(_0x11c027,_0x2febb0,_0x14bc73){const t=_0x11c027['t'];switch(_0x2febb0){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',_0x14bc73);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x14bc73);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x14bc73);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x14bc73);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x14bc73);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',_0x14bc73);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x14bc73);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',_0x14bc73);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x14bc73);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x14bc73);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x14bc73);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x14bc73);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x14bc73);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x14bc73);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x14bc73);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x14bc73);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x14bc73);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x14bc73);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x14bc73);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x14bc73);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x14bc73);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x14bc73);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x14bc73);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'},_0x14bc73);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x14bc73);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x14bc73);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x14bc73);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x14bc73);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x14bc73);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x14bc73);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x14bc73);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x14bc73);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'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x14bc73);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'},_0x14bc73);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x14bc73);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x14bc73);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'},_0x14bc73);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'},_0x14bc73);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'},_0x14bc73);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x14bc73);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'},_0x14bc73);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'},_0x14bc73);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'},_0x14bc73);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2febb0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x11ede8,_0x2aae2a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x11ede8,this['_locale']=_0x2aae2a;}['getDescriptions'](_0x13cddf){const _0x22d634=[],_0x5964b7=new Set(),_0x4c96ab=new Set();for(let _0x59594c=0x0;_0x59594c<_0x13cddf['length'];_0x59594c++){const _0x2327c4=_0x13cddf[_0x59594c];if(!_0x2327c4['isInContent'])continue;const _0xb2699=this['_handleCustomCallbackDescription'](_0x2327c4);if(_0xb2699){if(null!=_0x2327c4['subType']){if(_0x5964b7['has'](_0x2327c4['subType']))continue;_0x5964b7['add'](_0x2327c4['subType']);}_0x22d634['push'](_0xb2699);}else{if('attribute'!=_0x2327c4['type'])'insertion'!=_0x2327c4['type']&&'deletion'!=_0x2327c4['type']||this['_handleInsertRemoveSuggestionDescription'](_0x22d634,_0x2327c4,_0x13cddf[_0x59594c+0x1]);else{const _0x436240=_0x2327c4['data']['key'];if(_0x4c96ab['has'](_0x436240))continue;_0x4c96ab['add'](_0x2327c4['data']['key']),_0x436240==m?this['_handleRenameSuggestionDescription'](_0x22d634,_0x2327c4):this['_handleAttributeSuggestionDescription'](_0x22d634,_0x2327c4);}}}return this['_resolveDescriptionItems'](_0x22d634);}['registerDescriptionCallback'](_0x2afeb8){this['_customCallbacks']['push'](_0x2afeb8);}['registerElementLabel'](_0x2e7d4b,_0x14d8ee,_0x5bfca6=_0x55e6df['normal']){'function'==typeof _0x2e7d4b?_0x5905be(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2e7d4b,'label':_0x14d8ee,'priority':_0x5bfca6}):this['_itemLabels']['set'](_0x2e7d4b,_0x14d8ee);}['registerAttributeLabel'](_0x3014aa,_0x57839c){this['_attributeLabels']['set'](_0x3014aa,_0x57839c);}['getItemLabel'](_0x4d5904,_0x2988c4=0x1){let _0x302f54;for(const _0x4f7f7d of this['_itemLabelsCallbacks'])if(_0x4f7f7d['matchingCallback'](_0x4d5904)){_0x302f54=_0x4f7f7d['label'];break;}return _0x302f54||(_0x302f54=this['_itemLabels']['get'](_0x4d5904['name'])),_0x302f54?_0x302f54(_0x2988c4):0x1!==_0x2988c4?_0x2988c4+'\x20'+_0x4d5904['name']+'s':''+_0x4d5904['name'];}['_addDescriptionItems'](_0x6df408,_0x11c6e9){const _0x33ce4a=_0x11c6e9['getFirstRange']()['getWalker'](),_0x490cd8='insertion'==_0x11c6e9['type']?'add':'remove';for(const _0x399312 of _0x33ce4a){const _0x3aba2a=_0x399312['item'],_0x217961=_0x6df408[_0x6df408['length']-0x1];if(_0x3aba2a['is']('$textProxy'))_0x217961&&_0x217961['type']['indexOf']('Container')>-0x1&&_0x6df408['pop'](),_0x217961&&'text'==_0x217961['type']?_0x217961[_0x490cd8]+=_0x3aba2a['data']:_0x6df408['push']({'type':'text','add':'add'==_0x490cd8?_0x3aba2a['data']:'','remove':'remove'==_0x490cd8?_0x3aba2a['data']:''});else{if(this['_schema']['isObject'](_0x3aba2a)){const _0x27f1f8=_0x3aba2a;if(_0x217961&&_0x217961['type']['indexOf']('Container')>-0x1&&_0x6df408['pop'](),'elementEnd'==_0x399312['type'])continue;_0x217961&&_0x217961['type']==_0x490cd8+'Object'&&_0x217961['element']['name']==_0x27f1f8['name']?_0x217961['quantity']++:_0x6df408['push']({'type':_0x490cd8+'Object','element':_0x27f1f8,'quantity':0x1}),_0x33ce4a['skip'](_0x191ba9=>!('elementEnd'==_0x191ba9['type']&&_0x191ba9['item']==_0x3aba2a));}else{if(this['_schema']['checkChild'](_0x3aba2a,'$text')||_0x3aba2a['is']('element','softBreak')){const _0x57871b=_0x3aba2a;if('add'==_0x490cd8&&'elementStart'==_0x399312['type']||'remove'==_0x490cd8&&'elementEnd'==_0x399312['type'])continue;if(_0x217961&&-0x1==_0x217961['type']['indexOf']('Container')){'text'==_0x217961['type']&&(_0x217961[_0x490cd8]+='\x0a');continue;}let _0x419a6c;if(_0x419a6c='add'==_0x490cd8?_0x57871b['nextSibling']&&!this['_schema']['isObject'](_0x57871b['nextSibling'])?_0x57871b['nextSibling']:null:_0x57871b['previousSibling']&&!this['_schema']['isObject'](_0x57871b['previousSibling'])?_0x57871b['previousSibling']:null,_0x57871b['isEmpty']||_0x419a6c&&_0x419a6c['isEmpty']){const _0x312ac0=_0x419a6c&&_0x419a6c['isEmpty']?_0x419a6c:_0x57871b;_0x217961&&_0x217961['type']==_0x490cd8+'EmptyContainer'&&_0x217961['element']['name']==_0x312ac0['name']?_0x217961['quantity']++:_0x6df408['push']({'type':_0x490cd8+'EmptyContainer','element':_0x312ac0,'quantity':0x1});}else _0x6df408['push']({'type':_0x490cd8+'Container','element':_0x57871b});}}}}}['_resolveDescriptionItems'](_0x1ac68e){const _0x267313=this['_locale'],_0x4849af=[],_0x44463e=[],_0x1af690=[];for(const _0x43d633 of _0x1ac68e)switch(_0x43d633['type']){case'text':if(_0x43d633['add']=_0x43d633['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x43d633['remove']=_0x43d633['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x43d633['add']&&''!=_0x43d633['remove']){_0x4849af['push']({'type':'replace','content':o(_0x267313,'REPLACE_TEXT',['\x22'+_0x43d633['remove']+'\x22','\x22'+_0x43d633['add']+'\x22'])});continue;}if(null!=_0x43d633['add']['match'](/^ +$/)){_0x4849af['push']({'type':'insertion','content':o(_0x267313,'*Insert:*\x20%0',o(_0x267313,'ELEMENT_SPACE',_0x43d633['add']['length']))});continue;}if(null!=_0x43d633['remove']['match'](/^ +$/)){_0x4849af['push']({'type':'deletion','content':o(_0x267313,'*Remove:*\x20%0',o(_0x267313,'ELEMENT_SPACE',_0x43d633['remove']['length']))});continue;}if(''!=_0x43d633['add']){_0x4849af['push']({'type':'insertion','content':o(_0x267313,'*Insert:*\x20%0','\x22'+_0x43d633['add']+'\x22')});continue;}_0x4849af['push']({'type':'deletion','content':o(_0x267313,'*Remove:*\x20%0','\x22'+_0x43d633['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4849af['push']({'type':'insertion','content':o(_0x267313,'*Insert:*\x20%0',this['getItemLabel'](_0x43d633['element'],_0x43d633['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4849af['push']({'type':'deletion','content':o(_0x267313,'*Remove:*\x20%0',this['getItemLabel'](_0x43d633['element'],_0x43d633['quantity']))});continue;case'addContainer':_0x4849af['push']({'type':'insertion','content':o(_0x267313,'*Split:*\x20%0',this['getItemLabel'](_0x43d633['element'],_0x43d633['quantity']))});continue;case'removeContainer':_0x4849af['push']({'type':'deletion','content':o(_0x267313,'*Merge:*\x20%0',this['getItemLabel'](_0x43d633['element'],_0x43d633['quantity']))});continue;case'addFormat':_0x44463e['push'](_0x43d633['key']);continue;case'removeFormat':_0x1af690['push'](_0x43d633['key']);continue;default:_0x4849af['push'](_0x43d633);}if(_0x44463e['length']){const _0x480d95=_0x44463e['map'](_0x42c32b=>this['_attributeLabels']['has'](_0x42c32b)?this['_attributeLabels']['get'](_0x42c32b):_0x42c32b)['join'](',\x20');_0x4849af['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x480d95)});}if(_0x1af690['length']){const _0x54739f=_0x1af690['map'](_0x1855a1=>this['_attributeLabels']['has'](_0x1855a1)?this['_attributeLabels']['get'](_0x1855a1):_0x1855a1)['join'](',\x20');_0x4849af['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x54739f)});}return _0x4849af;}['_handleCustomCallbackDescription'](_0x246e0b){for(const _0x3b2ce5 of this['_customCallbacks']){const _0xe4da64=_0x3b2ce5(_0x246e0b);if(_0xe4da64&&'type'in _0xe4da64)return _0xe4da64;}}['_handleAttributeSuggestionDescription'](_0x47c8f8,_0x42247b){const _0x589aa2=_0x42247b['data'],_0xdb775b=void 0x0===_0x589aa2['newValue']?'removeFormat':'addFormat';_0x47c8f8['push']({'type':_0xdb775b,'key':_0x589aa2['key']});}['_handleRenameSuggestionDescription'](_0x2c9a56,_0x45e34e){_0x2c9a56['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x45e34e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5318cc,_0xd65d2f,_0x3510e5){if(this['_addDescriptionItems'](_0x5318cc,_0xd65d2f),_0x3510e5&&_0x3510e5['getFirstRange']()&&!_0xd65d2f['getFirstRange']()['end']['isEqual'](_0x3510e5['getFirstRange']()['start'])){const _0x22c3a1=_0x5318cc[_0x5318cc['length']-0x1],_0x17f351='insertion'==_0xd65d2f['type']?'add':'remove';_0x22c3a1&&'text'==_0x22c3a1['type']&&(_0x22c3a1[_0x17f351]+='\x0a');}}}class V extends _0x2be873{['afterInit'](){const _0x4918f2=this['editor'],_0x278c28=_0x4918f2['plugins']['get']('TrackChangesEditing');_0x4918f2['commands']['get']('showAIAssistant')&&_0x278c28['enableCommand']('showAIAssistant');}}class U extends _0x2be873{['afterInit'](){const _0x11a94e=this['editor'],_0x51e282=_0x11a94e['locale'];if(!_0x11a94e['plugins']['has']('AlignmentEditing'))return;const _0x3b4a16=_0x11a94e['plugins']['get']('TrackChangesEditing');_0x3b4a16['enableDefaultAttributesIntegration']('alignment'),_0x3b4a16['registerBlockAttribute']('alignment'),_0x3b4a16['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x51e282,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2afa5a=this['editor'],_0x5210d9=_0x2afa5a['locale'];_0x2afa5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fe0ba=>{if('formatBlock'!=_0x3fe0ba['type'])return;const {data:_0x5d89a8}=_0x3fe0ba;if(_0x5d89a8&&'alignment'==_0x5d89a8['commandName']){const _0x3c464a=_0x5d89a8['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5210d9,'*Format:*\x20%0',function(_0x4d7661){switch(_0x4d7661){case'left':return o(_0x5210d9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5210d9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5210d9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5210d9,'FORMAT_JUSTIFY_TEXT');}}(_0x3c464a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2be873{['afterInit'](){const _0x1eebda=this['editor'],_0x4aa636=_0x1eebda['plugins']['get']('TrackChangesEditing'),_0x51ce8a=_0x1eebda['locale'];for(const _0xf8a62c of ti){if(!_0x1eebda['plugins']['has'](_0xf8a62c))continue;const _0x55fd20=_0xf8a62c['slice'](0x0,-0x7)['toLowerCase'](),_0x350055='FORMAT_'+_0x55fd20['toUpperCase']();_0x4aa636['enableDefaultAttributesIntegration'](_0x55fd20),_0x4aa636['registerInlineAttribute'](_0x55fd20),_0x4aa636['descriptionFactory']['registerAttributeLabel'](_0x55fd20,o(_0x51ce8a,_0x350055));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47a570=this['editor'],_0x408eb2=_0x47a570['locale'],_0x5a3499=_0x47a570['plugins']['get']('TrackChangesEditing');function _0x102a88(_0x2b5129,_0x1398e3){_0x5a3499['descriptionFactory']['registerDescriptionCallback'](_0xb73648=>{if('formatInline'!=_0xb73648['type'])return;const {data:_0x41d520}=_0xb73648;return _0x41d520&&_0x41d520['commandName']===_0x2b5129?_0x41d520['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x408eb2,'*Format:*\x20%0',_0x1398e3)}:{'type':'format','content':o(_0x408eb2,'*Remove\x20format:*\x20%0',_0x1398e3)}:void 0x0;});}_0x102a88('bold',o(_0x408eb2,'FORMAT_BOLD')),_0x102a88('italic',o(_0x408eb2,'FORMAT_ITALIC')),_0x102a88('underline',o(_0x408eb2,'FORMAT_UNDERLINE')),_0x102a88('code',o(_0x408eb2,'FORMAT_CODE')),_0x102a88('strikethrough',o(_0x408eb2,'FORMAT_STRIKETHROUGH')),_0x102a88('subscript',o(_0x408eb2,'FORMAT_SUBSCRIPT')),_0x102a88('superscript',o(_0x408eb2,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2be873{['afterInit'](){const _0x2abd95=this['editor'],_0x534ca0=_0x2abd95['locale'];if(!_0x2abd95['plugins']['has']('BlockQuoteEditing'))return;const _0x2f93bc=_0x2abd95['plugins']['get']('TrackChangesEditing'),_0x214b5f=this['editor']['commands']['get']('blockQuote');_0x2f93bc['enableCommand']('blockQuote',(_0x3495c7,_0x165dd4={})=>{const _0x57bf5b=this['editor']['model']['document']['selection'],_0x12e914=_0x165dd4&&void 0x0!==_0x165dd4['forceValue']?_0x165dd4['forceValue']:!_0x214b5f['value'];let _0x1ced7d=[];if(_0x12e914){const _0x2248f4=Array['from'](_0x57bf5b['getSelectedBlocks']())['filter'](_0x49e8fa=>oo(_0x49e8fa)||function(_0x11bdf4,_0x309978){const _0x115451=_0x309978['checkChild'](_0x11bdf4['parent'],'blockQuote'),_0x35410c=_0x309978['checkChild'](['$root','blockQuote'],_0x11bdf4);return _0x115451&&_0x35410c;}(_0x49e8fa,this['editor']['model']['schema']));_0x1ced7d=to(_0x2248f4,_0x2abd95['model']);}else{const _0x58dd0c=Array['from'](_0x57bf5b['getSelectedBlocks']())['filter'](_0x1850d6=>oo(_0x1850d6));_0x1ced7d=to(_0x58dd0c,_0x2abd95['model']);}_0x2abd95['model']['change'](()=>{for(const _0x236d58 of _0x1ced7d)_0x2f93bc['markBlockFormat'](_0x236d58,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x12e914}]});});}),_0x2f93bc['descriptionFactory']['registerDescriptionCallback'](_0xd71f47=>{const {data:_0xc2c74d}=_0xd71f47;if(_0xc2c74d&&'blockQuote'==_0xc2c74d['commandName']){const _0x3b40e2=o(_0x534ca0,'ELEMENT_BLOCK_QUOTE');return _0xc2c74d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x534ca0,'*Set\x20format:*\x20%0',_0x3b40e2)}:{'type':'format','content':o(_0x534ca0,'*Remove\x20format:*\x20%0',_0x3b40e2)};}});}}function oo(_0x35a096){return'blockQuote'==_0x35a096['parent']['name'];}class L extends _0x2be873{['afterInit'](){const _0x50dd23=this['editor'];_0x50dd23['plugins']['has']('CaseChange')&&(_0x50dd23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x50dd23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x50dd23['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2be873{['afterInit'](){const _0x52cb1d=this['editor'];_0x52cb1d['commands']['get']('ckbox')&&_0x52cb1d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x2be873{['afterInit'](){const _0x47d6ae=this['editor'];if(!_0x47d6ae['plugins']['has']('CodeBlock'))return;const _0x43766b=_0x47d6ae['plugins']['get']('TrackChangesEditing'),_0x42bfff=_0x47d6ae['locale'],_0x489852=_0x47d6ae['config']['get']('codeBlock')['languages'],_0x4ad779=_0x47d6ae['commands']['get']('codeBlock');_0x43766b['enableCommand']('indentCodeBlock'),_0x43766b['enableCommand']('outdentCodeBlock'),_0x43766b['enableCommand']('codeBlock',(_0x4d7935,_0x1df5a7={})=>{const _0x3f0414=_0x47d6ae['model'],_0x254254=_0x47d6ae['model']['document']['selection'],_0x1ff997=_0x1df5a7&&void 0x0!==_0x1df5a7['forceValue']?_0x1df5a7['forceValue']:!_0x4ad779['value'];let _0x5534d5;_0x1df5a7['language']||(_0x1df5a7['language']=_0x489852[0x0]['language']),_0x5534d5=_0x1ff997?Array['from'](_0x254254['getSelectedBlocks']())['filter'](_0x329ac3=>eo(_0x329ac3)||function(_0x4b9adb,_0x3051c2){if(_0x4b9adb['is']('rootElement')||_0x3051c2['isLimit'](_0x4b9adb))return!0x1;return _0x3051c2['checkChild'](_0x4b9adb['parent'],'codeBlock');}(_0x329ac3,_0x3f0414['schema'])):Array['from'](_0x254254['getSelectedBlocks']())['filter'](_0x273065=>eo(_0x273065));const _0x136351=to(_0x5534d5,_0x3f0414);_0x3f0414['change'](()=>{for(const _0x3ad025 of _0x136351)_0x43766b['markBlockFormat'](_0x3ad025,{'commandName':'codeBlock','commandParams':[{..._0x1df5a7,'forceValue':_0x1ff997}],'formatGroupId':'blockName'});});}),(_0x43766b['descriptionFactory']['registerElementLabel']('codeBlock',_0x3fa3df=>o(_0x42bfff,'ELEMENT_CODE_BLOCK',_0x3fa3df)),_0x43766b['descriptionFactory']['registerDescriptionCallback'](_0x251b96=>{if('formatBlock'!=_0x251b96['type'])return;const _0x4737ca=_0x42bfff['t'],{data:_0x11d420}=_0x251b96;if(!_0x11d420||'codeBlock'!=_0x11d420['commandName'])return;const _0x3a0eb0=_0x11d420['commandParams'][0x0]['language'],_0x3b139d=_0x4737ca(_0x489852['find'](_0x14b7b9=>_0x14b7b9['language']===_0x3a0eb0)['label'])['toLowerCase']();return _0x11d420['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42bfff,'*Set\x20format:*\x20%0',o(_0x42bfff,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3b139d+')')}:{'type':'format','content':o(_0x42bfff,'*Remove\x20format:*\x20%0',o(_0x42bfff,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x163560){return'codeBlock'==_0x163560['name'];}class q extends _0x2be873{['afterInit'](){const _0x2ff608=this['editor'];if(!_0x2ff608['plugins']['has']('CommentsEditing'))return;_0x2ff608['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x49cdc4,_0x156f26,_0x5932ce){const _0x2b84c8=[];for(const _0x5c3f99 of _0x156f26['getItems']())_0x5c3f99['hasAttribute'](_0x49cdc4)&&_0x2b84c8['push'](_0x5932ce['createRangeOn'](_0x5c3f99));return _0x2b84c8;}function _e(_0x3ae054,_0x5f2b39,{showActiveMarker:_0x41f723=!0x0}={}){const _0x4e46bb=_0x3ae054['plugins']['get']('TrackChangesEditing');return(_0x3175a2,_0x41c3ba,_0x147f10)=>{if(!_0x147f10['consumable']['test'](_0x41c3ba['markerRange'],_0x3175a2['name']))return;const _0x57b33c=_0x41c3ba['markerRange']['getWalker'](),_0x58bae7=_0x41c3ba['markerRange']['start'],_0x17483a=_0x3ae054['model']['schema'];let _0x4fb368=null,_0x47675c=null,_0x36c757=!0x1,_0x2dded3=!0x1;for(const _0x208300 of _0x57b33c){const _0x28cd2c=_0x208300['item'];_0x36c757=_0x36c757||_0x17483a['isContent'](_0x28cd2c);const _0x441f6f=_0x147f10['mapper']['toViewElement'](_0x28cd2c);if(_0x441f6f&&_0x441f6f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x208300['type']&&(_0x17483a['isBlock'](_0x28cd2c)&&!_0x17483a['isLimit'](_0x28cd2c)&&(_0x28cd2c['nextSibling']||_0x58bae7['isAtEnd']?_0x4fb368&&_0x4fb368['parent']==_0x28cd2c||(_0x4fb368=_0x28cd2c,_0x15cb14(_0x208300['previousPosition']),_0x2dded3=!0x0):_0x47675c=_0x47675c||_0x208300['previousPosition']));}function _0x15cb14(_0x44cb02){const {authorId:_0x25cfb6}=_0x4e46bb['_splitMarkerName'](_0x41c3ba['markerName']),_0x17931d=_0x147f10['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5f2b39,'data-author-id':_0x25cfb6}),_0x204602=_0x147f10['mapper']['toViewPosition'](_0x44cb02);_0x41f723&&_0x4e46bb['activeMarkers']['includes'](_0x41c3ba['markerName'])&&_0x147f10['writer']['addClass']('ck-suggestion-marker--active',_0x17931d),_0x147f10['writer']['insert'](_0x204602,_0x17931d),_0x147f10['mapper']['bindElementToMarker'](_0x17931d,_0x41c3ba['markerName']);}_0x36c757||_0x2dded3||!_0x47675c||_0x15cb14(_0x47675c);};}class z extends _0x2be873{static get['requires'](){return[_0x3c22a1];}['init'](){const _0x2ec3a9=this['editor'],_0x4738d0=_0x2ec3a9['plugins']['get']('TrackChangesEditing');_0x4738d0['enableCommand']('delete');const _0x5d961a=_0x2ec3a9['commands']['get']('deleteForward');_0x4738d0['enableCommand']('deleteForward',(_0x3b18d7,_0x5e025d={})=>{const _0x4cb356=_0x2ec3a9['model']['createSelection'](_0x2ec3a9['model']['document']['selection']);_0x4cb356['isCollapsed']&&_0x2ec3a9['model']['modifySelection'](_0x4cb356,{'direction':'forward','unit':_0x5e025d['unit']});const _0x23f572=_0x4cb356['getFirstRange'](),_0x4012e0=_0x3f00a1['fromRange'](_0x23f572);let _0xd9748d;_0x3b18d7(_0x5e025d),_0xd9748d='$graveyard'==_0x4012e0['root']['rootName']?_0x2ec3a9['model']['createRange'](_0x23f572['start']):_0x2ec3a9['model']['createRange'](_0x4012e0['start'],_0x4012e0['end']),_0x4012e0['detach'](),_0x2ec3a9['model']['enqueueChange'](_0x5d961a['buffer']['batch'],_0x305fb1=>{_0x5d961a['buffer']['lock'](),_0x305fb1['setSelection'](_0x305fb1['createRange'](_0xd9748d['end'])),_0x5d961a['buffer']['unlock']();});}),_0x2ec3a9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2ec3a9,'merge'),{'priority':'high'}),_0x2ec3a9['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3360db,_0x496e13,_0x29200b)=>{_0x29200b['options']['showSuggestionHighlights']&&_e(_0x2ec3a9,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3360db,_0x496e13,_0x29200b);},{'priority':'high'}),_0x2ec3a9['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5f3183,_0x2b2aaf,_0x294a6b)=>{const _0x42ff21=_0x294a6b['mapper']['markerNameToElements'](_0x2b2aaf['markerName']);if(_0x42ff21){for(const _0x3243a8 of _0x42ff21)_0x3243a8['is']('uiElement')&&(_0x294a6b['mapper']['unbindElementFromMarkerName'](_0x3243a8,_0x2b2aaf['markerName']),_0x294a6b['writer']['remove'](_0x3243a8));}},{'priority':'high'});}}class K extends _0x2be873{['afterInit'](){const _0x427a72=this['editor'];if(!_0x427a72['plugins']['has']('ListEditing'))return;const _0x4a9244=_0x427a72['locale'],_0x550e00=_0x427a72['plugins']['get']('TrackChangesEditing'),_0x1c696f=_0x427a72['plugins']['has']('TodoListEditing'),_0x161a46=!!_0x427a72['config']['get']('list.multiBlock');function _0x1b350f(_0x495568){return{'type':'format','content':''+o(_0x4a9244,'*Set\x20format:*\x20%0',_0x495568)};}function _0x1f3220(_0x2e2759){return{'type':'format','content':''+o(_0x4a9244,'*Remove\x20format:*\x20%0',_0x2e2759)};}_0x550e00['enableDefaultAttributesIntegration']('numberedList'),_0x550e00['enableDefaultAttributesIntegration']('bulletedList'),_0x550e00['enableDefaultAttributesIntegration']('customNumberedList'),_0x550e00['enableDefaultAttributesIntegration']('customBulletedList'),_0x550e00['enableDefaultAttributesIntegration']('indentList'),_0x550e00['enableDefaultAttributesIntegration']('outdentList'),_0x550e00['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x550e00['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x550e00['registerBlockAttribute']('listItemId'),_0x550e00['registerBlockAttribute']('listType'),_0x550e00['registerBlockAttribute']('listIndent'),_0x161a46&&(_0x550e00['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x550e00['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1c696f&&(_0x550e00['enableDefaultAttributesIntegration']('todoList'),_0x550e00['enableDefaultAttributesIntegration']('checkTodoList'),_0x550e00['registerBlockAttribute']('todoListChecked'),_0x550e00['descriptionFactory']['registerDescriptionCallback'](_0x2e408b=>{const {data:_0x24812e}=_0x2e408b;if(_0x24812e&&'todoListChecked'==_0x24812e['key'])return{'type':'format','content':_0x24812e['newValue']?o(_0x4a9244,'*Check\x20item*'):o(_0x4a9244,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1b3d96=>{if(_0x1b3d96['batch']['isUndo'])return!0x1;let _0x55e873=!0x1;const _0x1be916=_0x550e00['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d8110=>'todoListChecked'===_0x550e00['_getAttributeKey'](_0x4d8110));for(const _0x468fa3 of _0x1be916){'todo'!=_0x468fa3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x550e00['_findSuggestions'](_0x468fa3['getFirstRange'](),'attribute')['find'](_0x55ad74=>'listType'===_0x550e00['_getAttributeKey'](_0x55ad74['suggestion']))||(_0x1b3d96['removeMarker'](_0x468fa3['getFirstMarker']()),_0x55e873=!0x0));}return _0x55e873;})),_0x550e00['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4a9244,'FORMAT_INDENT'));const _0x37ed48={'type':'format','content':''};_0x550e00['descriptionFactory']['registerDescriptionCallback'](_0x501a3b=>{const {data:_0x1227a1}=_0x501a3b;if(!_0x1227a1||'listType'!=_0x1227a1['key'])return;let _0x52dba5=_0x501a3b['head'];for(;_0x52dba5;){if(_0x52dba5['data']&&(('listStyle'==_0x52dba5['data']['key']||'listMarkerStyle'==_0x52dba5['data']['key'])&&(_0x52dba5['data']['newValue']&&'default'!=_0x52dba5['data']['newValue']||'default'!=_0x52dba5['data']['oldValue']&&!_0x1227a1['newValue'])||!_0x161a46&&_0x52dba5['data']['key']==m))return _0x37ed48;_0x52dba5=_0x52dba5['next'];}if(null==_0x1227a1['newValue'])switch(_0x1227a1['oldValue']){case'bulleted':return _0x1f3220(o(_0x4a9244,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f3220(o(_0x4a9244,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f3220(o(_0x4a9244,'ELEMENT_TODO_LIST'));}switch(_0x1227a1['newValue']){case'bulleted':return _0x1b350f(o(_0x4a9244,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b350f(o(_0x4a9244,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b350f(o(_0x4a9244,'ELEMENT_TODO_LIST'));}}),_0x550e00['descriptionFactory']['registerDescriptionCallback'](_0x575a84=>{const {data:_0xeae561}=_0x575a84;if(_0xeae561&&'listIndent'==_0xeae561['key'])return null==_0xeae561['newValue']||null==_0xeae561['oldValue']&&0x0==_0xeae561['newValue']?_0x37ed48:void 0x0;}),_0x550e00['descriptionFactory']['registerDescriptionCallback'](_0x59abea=>{if('attribute'!=_0x59abea['type'])return;const {data:_0x2de92c}=_0x59abea;if(!_0x2de92c||'listItemId'!=_0x2de92c['key'])return;const _0x5dbf7b=Ee(_0x59abea);return'newValue'==_0x5dbf7b?{'type':'format','content':o(_0x4a9244,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5dbf7b?{'type':'format','content':o(_0x4a9244,'*Split:*\x20list\x20item')}:_0x37ed48;}),_0x427a72['model']['document']['registerPostFixer'](_0x144894=>this['listItemIdFixer'](_0x144894)),_0x427a72['model']['document']['registerPostFixer'](_0xece51f=>this['noTrackChangesFixer'](_0xece51f)),_0x427a72['model']['document']['on']('change:data',(_0x832fe4,_0x1bbf5e)=>{if(_0x1bbf5e['isUndo']||!_0x1bbf5e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1950dc){if(_0x1950dc['batch']['isUndo']||!_0x1950dc['batch']['isLocal'])return!0x1;let _0x32dc93=!0x1;const _0x488caa=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e2a18=>_0x4e2a18['data']&&'listItemId'==_0x4e2a18['data']['key'])['filter'](_0x1b24ea=>_0x1b24ea['data']['newValue']&&_0x1b24ea['data']['oldValue']);for(const _0x752f07 of _0x488caa)Ee(_0x752f07)||(_0x1950dc['removeMarker'](_0x752f07['getFirstMarker']()),_0x32dc93=!0x0);return _0x32dc93;}['noTrackChangesFixer'](_0x35ee2f){if(_0x35ee2f['batch']['isUndo']||!_0x35ee2f['batch']['isLocal'])return!0x1;const _0x4f521f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4f521f['trackChangesCommand']['value'])return!0x1;let _0x4cf007=!0x1;const _0x3ecc69=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x24ca6e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x53ad56=>'attribute'==_0x53ad56['type'])['filter'](_0x3f9e03=>_0x3ecc69['includes'](_0x3f9e03['attributeKey']));if(0x0==_0x24ca6e['length'])return _0x4cf007;for(const _0x448f88 of _0x24ca6e){const _0x548627=_0x4f521f['_findSuggestions'](_0x448f88['range'],'attribute')['filter'](_0xfc7870=>!_0xfc7870['meta']['isNextTo'])['map'](_0x2acbc4=>_0x2acbc4['suggestion'])['filter'](_0x19dd96=>{const _0x3f92f0=_0x4f521f['_getAttributeKey'](_0x19dd96);return _0x3ecc69['includes'](_0x3f92f0);});if(_0x548627['length']){for(const _0x2a749c of _0x548627)_0x35ee2f['removeMarker'](_0x2a749c['getFirstMarker']());_0x4cf007=!0x0;}}return _0x4cf007;}['assureChains'](){const _0x1aaf36=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3263cb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x294be1;const _0x2aa2b8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1ec99f=>{if(_0x1ec99f['data']['oldRange']||!_0x1ec99f['data']['newRange'])return null;if(!_0x1ec99f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1ca126}=_0x1aaf36['_splitMarkerName'](_0x1ec99f['name']);if(!_0x1aaf36['hasSuggestion'](_0x1ca126))return null;const _0x17829f=_0x1aaf36['getSuggestion'](_0x1ca126);return _0x3263cb['includes'](_0x17829f['data']['key']);})['map'](_0x4f4e93=>{const {id:_0x43da2a}=_0x1aaf36['_splitMarkerName'](_0x4f4e93['name']),_0x12f2e1=_0x1aaf36['getSuggestion'](_0x43da2a);return _0x294be1=_0x12f2e1['attributes']['groupId'],_0x12f2e1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2aa2b8['size'])return;const _0x4f0ed9=_0x1aaf36['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ca285=>'attribute'==_0x1ca285['type']&&_0x1ca285['data']&&_0x3263cb['includes'](_0x1ca285['data']['key'])&&_0x1ca285['attributes']['groupId']!=_0x294be1)['map'](_0x195b8c=>({'listItem':_0x195b8c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x195b8c['attributes']['groupId']})),_0x420dd3=new Set();for(const {groupId:_0x6ab042,listItem:_0x4908b1}of _0x4f0ed9)_0x2aa2b8['has'](_0x4908b1)&&_0x420dd3['add'](_0x6ab042);for(const _0x235d23 of _0x1aaf36['getSuggestions']())_0x420dd3['has'](_0x235d23['attributes']['groupId'])&&_0x235d23['setAttribute']('groupId',_0x294be1);}['_supportLegacySuggestions'](){const _0x1225e4=this['editor'],_0x1e3d08=_0x1225e4['locale'],_0x52914e=_0x1225e4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x52914e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x36f9fc,_0x4d39f5){const _0x6543e9=[];for(let _0x4339e4 of _0x36f9fc)_0x4339e4['start']['nodeAfter']===_0x4339e4['end']['parent']&&(_0x4339e4=_0x1225e4['model']['createRange'](_0x1225e4['model']['createPositionAt'](_0x4339e4['start']['nodeAfter'],0x0))),_0x6543e9['push'](_0x4339e4);_0x1225e4['model']['change'](_0x454d5a=>{const _0x50853c=_0x1225e4['model']['document']['selection'],_0x1a57fa=Array['from'](_0x50853c['getRanges']())['map'](_0x268c69=>_0x3f00a1['fromRange'](_0x268c69));_0x454d5a['setSelection'](_0x6543e9),_0x1225e4['commands']['get'](_0x4d39f5['commandName'])['refresh'](),_0x4d39f5['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1225e4['execute'](_0x4d39f5['commandName'],..._0x4d39f5['commandParams']),_0x454d5a['setSelection'](_0x1a57fa);for(const _0x4621fd of _0x1a57fa)_0x4621fd['detach']();});}),_0x52914e['descriptionFactory']['registerElementLabel'](function(_0x3f8c17){const _0x140e89=!_0x1225e4['model']['schema']['isObject'](_0x3f8c17),_0x689576=_0x3f8c17['previousSibling'],_0x33d806=_0x3f8c17['nextSibling'],_0x4c7916=_0x3f8c17['getAttribute']('listItemId'),_0x268365=!_0x689576||_0x689576['getAttribute']('listItemId')!==_0x4c7916,_0x187f98=!_0x33d806||_0x33d806['getAttribute']('listItemId')!==_0x4c7916;return _0x140e89&&Boolean(_0x4c7916)&&_0x268365&&_0x187f98;},_0x169c36=>o(_0x1e3d08,'ELEMENT_LIST_ITEM',_0x169c36));}['_registerLegacyDescription'](){const _0xf82026=this['editor'],_0x19cc2f=_0xf82026['locale'];function _0x39f8b8(_0x569edc){const _0x5d0f76=_0xf82026['commands']['get']('bulletedList')['value'],_0x3eb85f=_0xf82026['commands']['get']('numberedList')['value'];return'numberedList'===_0x569edc?_0x5d0f76:_0x3eb85f;}_0xf82026['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2237f5){if('formatBlock'!=_0x2237f5['type'])return;const {data:_0x51f7c2}=_0x2237f5;if(!_0x51f7c2)return;let _0x31d4eb,_0x549097,_0x19b418,_0x26f102;switch(_0x51f7c2['commandName']){case'bulletedList':_0x19b418=_0x51f7c2['commandParams'][0x0]['forceValue'],_0x26f102=_0x39f8b8(_0x51f7c2['commandName']),_0x31d4eb=_0x19b418?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x26f102&&_0xf82026['config']['get']('list.multiBlock')||(_0x31d4eb='*Change\x20to:*\x20%0'),_0x549097={'type':'format','content':o(_0x19cc2f,_0x31d4eb,o(_0x19cc2f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x19b418=_0x51f7c2['commandParams'][0x0]['forceValue'],_0x26f102=_0x39f8b8(_0x51f7c2['commandName']),_0x31d4eb=_0x19b418?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x26f102&&_0xf82026['config']['get']('list.multiBlock')||(_0x31d4eb='*Change\x20to:*\x20%0'),_0x549097={'type':'format','content':o(_0x19cc2f,_0x31d4eb,o(_0x19cc2f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x31d4eb='*Indent:*\x20%0',_0x549097={'type':'format','content':o(_0x19cc2f,_0x31d4eb,o(_0x19cc2f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x31d4eb=function(_0x2b3d5d){const _0x5cc1f5=_0x2b3d5d['getFirstRange']();let _0x34fa80=_0x5cc1f5['start']['nodeAfter'];for(;_0x34fa80&&_0x5cc1f5['containsItem'](_0x34fa80);){if(_0x34fa80['getAttribute']('listIndent')>0x0)return!0x1;_0x34fa80=_0x34fa80['nextSibling'];}return!0x0;}(_0x2237f5)?o(_0x19cc2f,'*Format:*\x20remove\x20from\x20%0',o(_0x19cc2f,function(_0x20ca2d){return'ELEMENT_'+_0x20ca2d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2237f5))):o(_0x19cc2f,'*Outdent:*\x20%0',o(_0x19cc2f,'ELEMENT_LIST_ITEM')),_0x549097={'type':'format','content':_0x31d4eb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x51f7c2['multipleBlocks']&&(_0x31d4eb='*Merge:*\x20%0',_0x549097={'type':'deletion','content':o(_0x19cc2f,_0x31d4eb,o(_0x19cc2f,'ELEMENT_LIST_ITEM'))});}return _0x549097;});}}function Ee(_0x47f232){let _0x5ae702=_0x47f232['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5ae702;){const _0x4c692e=_0x5ae702['getAttribute']('listItemId');if(!_0x4c692e)return!0x1;if(_0x4c692e==_0x47f232['data']['newValue'])return'newValue';if(_0x4c692e==_0x47f232['data']['oldValue'])return'oldValue';_0x5ae702=_0x5ae702['previousSibling'];}return!0x1;}class pe extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x133eec=this['editor']['config']['get']('list.properties'),_0x5e8517=this['editor']['plugins']['get']('TrackChangesEditing');_0x133eec['styles']&&(_0x5e8517['enableDefaultAttributesIntegration']('listStyle'),_0x5e8517['registerBlockAttribute']('listStyle')),_0x133eec['reversed']&&(_0x5e8517['enableDefaultAttributesIntegration']('listReversed'),_0x5e8517['registerBlockAttribute']('listReversed')),_0x133eec['startIndex']&&(_0x5e8517['enableDefaultAttributesIntegration']('listStart'),_0x5e8517['registerBlockAttribute']('listStart'));const _0x1e1a9a={'type':'format','content':''};_0x5e8517['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5526bb=this['editor']['locale'];_0x5e8517['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5526bb,'FORMAT_LIST_REVERSED')),_0x5e8517['descriptionFactory']['registerDescriptionCallback'](_0x42ed04=>{const {data:_0x4f865e}=_0x42ed04;if(_0x4f865e&&'listReversed'==_0x4f865e['key'])return null==_0x4f865e['newValue']||0x0==_0x4f865e['newValue']&&null==_0x4f865e['oldValue']?_0x1e1a9a:void 0x0;}),_0x5e8517['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5526bb,'FORMAT_LIST_START')),_0x5e8517['descriptionFactory']['registerDescriptionCallback'](_0x542a07=>{const {data:_0x1e7fff}=_0x542a07;if(_0x1e7fff&&'listStart'==_0x1e7fff['key'])return null==_0x1e7fff['newValue']||0x1==_0x1e7fff['newValue']&&null==_0x1e7fff['oldValue']?_0x1e1a9a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x11eaa2=>{if(_0x11eaa2['batch']['isUndo'])return!0x1;let _0x156289=!0x1;const _0x2edc4f=_0x5e8517['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1047ff=>{const _0xa25f45=_0x5e8517['_getAttributeKey'](_0x1047ff);return'listStart'==_0xa25f45||'listReversed'==_0xa25f45;});for(const _0x385987 of _0x2edc4f){const _0x3d577d=_0x385987['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3d577d||'customNumbered'==_0x3d577d)continue;_0x5e8517['_findSuggestions'](_0x385987['getFirstRange'](),'attribute')['find'](_0x1cdf80=>'listType'==_0x5e8517['_getAttributeKey'](_0x1cdf80['suggestion']))||(_0x11eaa2['removeMarker'](_0x385987['getFirstMarker']()),_0x156289=!0x0);}return _0x156289;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xe36ab9){const _0x43a962=this['editor']['locale'],{data:_0x4fd864}=_0xe36ab9,_0x4dc540={'type':'format','content':''};if(!_0x4fd864||'listStyle'!=_0x4fd864['key'])return;if(!_0x4fd864['oldValue'])return'default'==_0x4fd864['newValue']?_0x4dc540:{'type':'format','content':''+o(_0x43a962,'*Set\x20format:*\x20%0',o(_0x43a962,this['_getTranslationKeyForListStyle'](_0x4fd864['newValue'])))};if(!_0x4fd864['newValue']){if('default'==_0x4fd864['oldValue'])return _0x4dc540;let _0x2b7928=_0xe36ab9['head'];for(;_0x2b7928;){if(_0x2b7928['data']&&'listType'==_0x2b7928['data']['key']&&_0x2b7928['data']['newValue'])return _0x4dc540;_0x2b7928=_0x2b7928['next'];}return{'type':'format','content':''+o(_0x43a962,'*Remove\x20format:*\x20%0',o(_0x43a962,this['_getTranslationKeyForListStyle'](_0x4fd864['oldValue'])))};}if('default'!=_0x4fd864['newValue'])return{'type':'format','content':''+o(_0x43a962,'*Set\x20format:*\x20%0',o(_0x43a962,this['_getTranslationKeyForListStyle'](_0x4fd864['newValue'])))};let _0x1d2f23=_0xe36ab9['head'];for(;_0x1d2f23;){if(_0x1d2f23['data']&&'listType'==_0x1d2f23['data']['key']&&_0x1d2f23['data']['newValue']&&_0x1d2f23['data']['oldValue'])return _0x4dc540;_0x1d2f23=_0x1d2f23['next'];}return{'type':'format','content':o(_0x43a962,'*Set\x20format:*\x20%0',o(_0x43a962,'ELEMENT_'+_0xe36ab9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1311a6=this['editor'],_0x355de6=_0x1311a6['locale'];_0x1311a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8d9d6e=>{if('formatBlock'!=_0x8d9d6e['type'])return;const {data:_0x6887ca}=_0x8d9d6e;if(!_0x6887ca)return;let _0x1bee14,_0x5f199e;switch(_0x6887ca['commandName']){case'listStyle':_0x1bee14='*Change\x20to:*\x20%0',_0x5f199e={'type':'format','content':o(_0x355de6,_0x1bee14,o(_0x355de6,this['_getTranslationKeyForListStyle'](_0x6887ca['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bee14=_0x6887ca['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5f199e={'type':'format','content':o(_0x355de6,_0x1bee14)};break;case'listStart':_0x1bee14='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5f199e={'type':'format','content':o(_0x355de6,_0x1bee14,_0x6887ca['commandParams'][0x0]['startIndex'])};}return _0x5f199e;});}['_getTranslationKeyForListStyle'](_0x3867ea){return'ELEMENT_'+function(_0x2aea00){if(ye['includes'](_0x2aea00))return'bulleted';if(Se['includes'](_0x2aea00))return'numbered';return null;}(_0x3867ea)['toUpperCase']()+'_LIST_'+_0x3867ea['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2be873{static get['requires'](){return[_0x17bcc1];}['init'](){const _0x5d48ec=this['editor'],_0x8c0477=_0x5d48ec['plugins']['get']('TrackChangesEditing'),_0x1bf42e=_0x5d48ec['commands']['get']('enter');_0x8c0477['enableCommand']('enter',()=>{_0x5d48ec['model']['change'](_0x3213f6=>{const _0x24c006=_0x5d48ec['model']['document']['selection'],_0x323092=_0x24c006['getFirstPosition'](),_0x2cd824=_0x3f00a1['fromRange'](_0x24c006['getFirstRange']());if(_0x1bf42e['enterBlock'](_0x3213f6)){const _0x52ff3a=_0x5d48ec['model']['createPositionAt'](_0x323092['parent']['nextSibling'],0x0),_0xd8214b=_0x3213f6['createRange'](_0x323092,_0x52ff3a);_0x8c0477['markInsertion'](_0xd8214b);}else _0x3213f6['setSelection'](_0x3213f6['createRange'](_0x2cd824['end']));_0x2cd824['detach'](),_0x1bf42e['fire']('afterExecute',{'writer':_0x3213f6});});}),_0x5d48ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5d48ec,'split'),{'priority':'high'}),_0x5d48ec['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c701f,_0x517193,_0x5a2229)=>{const _0x268213=_0x5a2229['mapper']['markerNameToElements'](_0x517193['markerName']);if(_0x268213){for(const _0x4f1cbd of _0x268213)_0x4f1cbd['hasClass']('ck-suggestion-marker-split')&&(_0x5a2229['mapper']['unbindElementFromMarkerName'](_0x4f1cbd,_0x517193['markerName']),_0x5a2229['writer']['remove'](_0x4f1cbd));}},{'priority':'high'}),_0x5d48ec['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xb4ef7c,_0x56d00e,_0xc0e57a)=>{_0xc0e57a['options']['showSuggestionHighlights']&&_e(_0x5d48ec,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xb4ef7c,_0x56d00e,_0xc0e57a);},{'priority':'high'});}}class X extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x385932=this['editor']['plugins']['get']('TrackChangesEditing');_0x385932['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x385932['enableCommand']('findNext'),_0x385932['enableCommand']('findPrevious'),_0x385932['enableCommand']('replace'),_0x385932['enableCommand']('replaceAll');}['handleFindCommand'](_0x48dd15,_0x1a85a2,_0x289322={}){const _0x466864=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x48dd15(_0x337cff=>{let _0x15d22f=('string'==typeof _0x1a85a2?_0x466864['findByTextCallback'](_0x1a85a2,_0x289322):_0x1a85a2)(_0x337cff);Array['isArray'](_0x15d22f)&&(_0x15d22f={'results':_0x15d22f,'searchText':'string'==typeof _0x1a85a2?_0x1a85a2:''});const _0x48020c=_0x15d22f['results']['filter'](_0x578b7d=>!0x1===this['_isInDeletionRange'](_0x578b7d,_0x337cff['item']));return{..._0x15d22f,'results':_0x48020c};},_0x289322);}['_isInDeletionRange'](_0xa83973,_0x48e5f0){const _0x5932a6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x48e5f0,_0xa83973['start']),this['editor']['model']['createPositionAt'](_0x48e5f0,_0xa83973['end']));for(const _0x3cf41a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5932a6['getIntersection'](_0x3cf41a['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 _0x2be873{['afterInit'](){const _0x26bae9=this['editor']['locale'],_0x37c8c9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2ab546,commandName:_0x8fab4c}of ro)this['editor']['plugins']['has'](_0x2ab546)&&(_0x37c8c9['enableDefaultAttributesIntegration'](_0x8fab4c),_0x37c8c9['registerInlineAttribute'](_0x8fab4c));_0x37c8c9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x26bae9,'FORMAT_FONT_SIZE')),_0x37c8c9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x26bae9,'FORMAT_FONT_FAMILY')),_0x37c8c9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x26bae9,'FORMAT_FONT_COLOR')),_0x37c8c9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x26bae9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86e6a7=this['editor'],_0x32e473=_0x86e6a7['locale'];_0x86e6a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc167ff=>{const _0x175962=_0x32e473['t'];if('formatInline'!=_0xc167ff['type'])return;const {data:_0x27eaa8}=_0xc167ff;if(null!=_0x27eaa8){if('fontSize'==_0x27eaa8['commandName']){const _0x11ee7a=_0x27eaa8['commandParams'][0x0]['value'];if(_0x11ee7a){const _0x3e65d6=_0x175962(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2e7636=>_0x2e7636['model']==_0x11ee7a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x32e473,'*Set\x20font\x20size:*\x20%0',_0x3e65d6)};}return{'type':'format','content':o(_0x32e473,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27eaa8['commandName']){const _0x265cb1=_0x27eaa8['commandParams'][0x0]['value'];return _0x265cb1?{'type':'format','content':o(_0x32e473,'*Set\x20font\x20family:*\x20%0',_0x265cb1)}:{'type':'format','content':o(_0x32e473,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27eaa8['commandName']){const _0x366dcf=_0x27eaa8['commandParams'][0x0]['value'];if(_0x366dcf){const _0xd98847=_0x408f0d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x6c19c9=>_0x6c19c9['model']==_0x366dcf);let _0x1214ba=_0x366dcf,_0x17ada3='';return _0xd98847&&(_0x1214ba=_0xd98847['label'],_0x17ada3=_0x175962(_0x1214ba)['toLowerCase']()),{'type':'format','content':o(_0x32e473,'*Set\x20font\x20color:*\x20%0',_0x17ada3)['trim'](),'color':{'value':_0x366dcf,'title':_0x17ada3||_0x1214ba}};}return{'type':'format','content':o(_0x32e473,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27eaa8['commandName']){const _0x3494cb=_0x27eaa8['commandParams'][0x0]['value'];if(_0x3494cb){const _0x9d40a6=_0x408f0d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x34ed5d=>_0x34ed5d['model']==_0x3494cb);let _0x25203e=_0x3494cb,_0xe45ea7='';return _0x9d40a6&&(_0x25203e=_0x9d40a6['label'],_0xe45ea7=_0x175962(_0x25203e)['toLowerCase']()),{'type':'format','content':o(_0x32e473,'*Set\x20font\x20background\x20color:*\x20%0',_0xe45ea7)['trim'](),'color':{'value':_0x3494cb,'title':_0xe45ea7||_0x25203e}};}return{'type':'format','content':o(_0x32e473,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x2be873{['afterInit'](){const _0x1a79de=this['editor'],_0x4a6b66=_0x1a79de['plugins']['get']('TrackChangesEditing'),_0x329ea0=_0x1a79de['commands']['get']('copyFormat'),_0x4ecf50=_0x1a79de['commands']['get']('pasteFormat');_0x329ea0&&_0x4ecf50&&(_0x4a6b66['enableDefaultAttributesIntegration']('pasteFormat'),_0x4a6b66['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x374942=this['editor'],_0xe704bb=_0x374942['locale'];_0x374942['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49bac1=>{if('formatBlock'!=_0x49bac1['type']&&'formatInline'!=_0x49bac1['type'])return;const {data:_0x233b54}=_0x49bac1;if(_0x233b54&&'pasteFormat'===_0x233b54['commandName']){const _0x2ab860=[],_0x406912=_0x233b54['commandParams'][0x0];for(const [_0x128f4e,_0x5870bf]of Object['entries'](_0x406912))_0x2ab860['push'](so(_0x374942,_0x128f4e,_0x5870bf));return _0x2ab860['length']?{'type':'format','content':o(_0xe704bb,'*Set\x20format\x20to:*\x20%0',_0x2ab860['join'](',\x20'))}:{'type':'format','content':o(_0xe704bb,'*Remove\x20all\x20formatting*')};}});}}function so(_0xc1cf88,_0x66749b,_0x140325){const _0x5e3ab9=_0xc1cf88['locale']['t'],_0xfaba1=_0x66749b['split'](/(?=[A-Z])/)['join']('\x20'),_0x20ef50=_0x5e3ab9(_0xfaba1['charAt'](0x0)['toUpperCase']()+_0xfaba1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x140325)return _0x20ef50;if('fontColor'===_0x66749b||'fontBackgroundColor'===_0x66749b){const _0x102b19=_0x408f0d(_0xc1cf88['config']['get']('fontColor.colors'))['find'](_0x3414ac=>_0x3414ac['model']==_0x140325);return _0x20ef50+'\x20('+(_0x102b19?_0x5e3ab9(_0x102b19['label'])['toLowerCase']():_0x140325)+')';}if('fontSize'===_0x66749b&&isNaN(parseFloat(_0x140325))){const _0x7ed143=_0xc1cf88['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xc1cf88['config']['get']('fontSize.options'))['find'](_0x16ab3e=>_0x16ab3e['model']==_0x140325);return _0x20ef50+'\x20('+(_0x7ed143?_0x5e3ab9(_0x7ed143['title'])['toLowerCase']():_0x140325)+')';}return _0x20ef50+'\x20('+_0x140325+')';}class tt extends _0x2be873{['_headingOptions'];['afterInit'](){const _0x389801=this['editor'];if(!_0x389801['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x389801['config']['get']('heading.options');const _0x3ace88=_0x389801['locale'],_0x33eac2=_0x389801['plugins']['get']('TrackChangesEditing');_0x33eac2['enableDefaultAttributesIntegration']('heading');for(const _0x3befd1 of this['_headingOptions'])'paragraph'!=_0x3befd1['model']&&_0x33eac2['descriptionFactory']['registerElementLabel'](_0x3befd1['model'],_0x5e828a=>{const _0x5b18b0=this['_getHeadingLevel'](_0x3befd1['model']);return null!==_0x5b18b0?_0x1b21b8(_0x5e828a,_0x5b18b0):_0x245312(_0x5e828a,_0x3befd1['title']);});function _0x1b21b8(_0x24b333,_0x4fa84d){return o(_0x3ace88,'ELEMENT_HEADING',[_0x24b333,_0x4fa84d]);}function _0x245312(_0x11bd02,_0x2255f2){return o(_0x3ace88,'ELEMENT_HEADING_CUSTOM',[_0x11bd02,_0x2255f2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4956fd=this['editor'],_0x5c9dea=_0x4956fd['locale'];function _0x13dc63(_0x4e9016,_0x429902){return o(_0x5c9dea,'ELEMENT_HEADING_CUSTOM',[_0x4e9016,_0x429902]);}_0x4956fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24251a=>{if('formatBlock'!=_0x24251a['type'])return;const {data:_0x559c0b}=_0x24251a;if(_0x559c0b&&'heading'==_0x559c0b['commandName']){const _0x3e822b=_0x559c0b['commandParams'][0x0]['value'],_0x41ed1e=this['_getHeadingLevel'](_0x3e822b);if(null!==_0x41ed1e)return{'type':'format','content':o(_0x5c9dea,'*Change\x20to:*\x20%0',(_0x3f1973=0x1,_0x291158=_0x41ed1e,o(_0x5c9dea,'ELEMENT_HEADING',[_0x3f1973,_0x291158])))};const _0x3cb98e=this['_headingOptions']['find'](_0x4cd6c6=>_0x4cd6c6['model']===_0x3e822b)['title'];return{'type':'format','content':o(_0x5c9dea,'*Change\x20to:*\x20%0',_0x13dc63(0x1,_0x3cb98e))};}var _0x3f1973,_0x291158;});}['_getHeadingLevel'](_0x24ee5a){const _0x239cc9=_0x24ee5a['match'](/^heading(\d+)/);if(_0x239cc9)return _0x239cc9[0x1];const _0x47c163=this['_headingOptions']?.['find'](_0x12dcef=>_0x12dcef['model']==_0x24ee5a);if(_0x47c163&&_0x47c163['view']){const _0x1dda47=_0x47c163['view'],_0x4a55d3=(_0x1dda47['name']??_0x1dda47)['match'](/^h(\d+)/);if(_0x4a55d3)return _0x4a55d3[0x1];}return null;}}class et extends _0x2be873{['afterInit'](){const _0x5df836=this['editor'];if(!_0x5df836['plugins']['has']('HighlightEditing'))return;const _0xf17db8=_0x5df836['plugins']['get']('TrackChangesEditing'),_0x5c9022=_0x5df836['locale'];_0xf17db8['enableDefaultAttributesIntegration']('highlight'),_0xf17db8['registerInlineAttribute']('highlight'),_0xf17db8['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5c9022,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x241617=this['editor'],_0x8c3d5f=_0x241617['locale'];_0x241617['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d2e65=>{if('formatInline'!=_0x3d2e65['type'])return;const {data:_0x4e4963}=_0x3d2e65;if(_0x4e4963&&'highlight'==_0x4e4963['commandName']){const _0x898b73=_0x8c3d5f['t'],_0x97d3be=_0x4e4963['commandParams'][0x0]['value'];if(_0x97d3be){const _0x4d5ccb=_0x241617['config']['get']('highlight.options')['find'](_0xd0bc9f=>_0xd0bc9f['model']==_0x97d3be),_0x22c40c=_0x898b73(_0x4d5ccb['title'])['toLowerCase']();return{'type':'format','content':o(_0x8c3d5f,'*Set\x20highlight:*\x20%0',_0x22c40c),'color':{'value':_0x4d5ccb['color'],'title':_0x4d5ccb['title']}};}return{'type':'format','content':o(_0x8c3d5f,'*Remove\x20highlight*',o(_0x8c3d5f,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2be873{['afterInit'](){const _0x5690dd=this['editor'];if(!_0x5690dd['plugins']['has']('HorizontalLineEditing'))return;_0x5690dd['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x29120f=_0x5690dd['plugins']['get']('TrackChangesEditing'),_0x4d7379=_0x5690dd['locale'];_0x29120f['descriptionFactory']['registerElementLabel']('horizontalLine',_0xd8189f=>o(_0x4d7379,'ELEMENT_HORIZONTAL_LINE',_0xd8189f)),_0x5690dd['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x136ff8,{writer:_0x6847d8,options:_0x4ad3dc})=>{if(!_0x4ad3dc['showSuggestionHighlights'])return null;const _0x2ba48a=_0x6847d8['createContainerElement']('div'),_0x454721=_0x6847d8['createEmptyElement']('hr');return _0x6847d8['addClass']('ck-horizontal-line',_0x2ba48a),_0x6847d8['insert'](_0x6847d8['createPositionAt'](_0x2ba48a,0x0),_0x454721),_0x2ba48a;},'converterPriority':'high'});}}class st extends _0x2be873{['afterInit'](){const _0x4bc325=this['editor'];if(!_0x4bc325['plugins']['has']('HtmlEmbed'))return;const _0xe82575=_0x4bc325['plugins']['get']('TrackChangesEditing'),_0x1e92e9=_0x4bc325['locale'];_0xe82575['descriptionFactory']['registerElementLabel']('rawHtml',_0x691f6e=>o(_0x1e92e9,'ELEMENT_HTML_EMBED',_0x691f6e)),_0xe82575['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe82575['registerBlockAttribute']('value'),_0xe82575['descriptionFactory']['registerDescriptionCallback'](_0x32a380=>{if('attribute'!=_0x32a380['type'])return;const {data:_0x1325d9}=_0x32a380;if(_0x1325d9&&'value'==_0x1325d9['key']&&_0x32a380['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x46ca9d=o(_0x1e92e9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e92e9,'*Change\x20%0\x20content*',_0x46ca9d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55436f=this['editor'],_0xf19a65=_0x55436f['locale'];_0x55436f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9722=>{if('formatBlock'!=_0x3c9722['type'])return;const {data:_0x2a8793}=_0x3c9722;if(_0x2a8793&&'htmlEmbed'==_0x2a8793['commandName']){const _0x160c55=o(_0xf19a65,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xf19a65,'*Change\x20%0\x20content*',_0x160c55)};}});}}class nt extends _0x2be873{['afterInit'](){const _0x28d8ec=this['editor'];if(!_0x28d8ec['plugins']['has']('ImageEditing'))return;const _0x3b1c64=_0x28d8ec['plugins']['get']('TrackChangesEditing'),_0x399d82=_0x28d8ec['plugins']['get']('ImageUtils'),_0x53be14=_0x28d8ec['locale'];_0x3b1c64['enableCommand']('insertImage'),_0x3b1c64['descriptionFactory']['registerElementLabel']('imageBlock',_0x396431=>o(_0x53be14,'ELEMENT_IMAGE',_0x396431)),_0x3b1c64['descriptionFactory']['registerElementLabel']('imageInline',_0x469f14=>o(_0x53be14,'ELEMENT_INLINE_IMAGE',_0x469f14)),_0x3b1c64['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x53be14,'ELEMENT_CAPTION')),_0x28d8ec['plugins']['has']('ImageUploadEditing')&&_0x3b1c64['enableCommand']('uploadImage'),_0x28d8ec['plugins']['has']('ImageBlockEditing')&&_0x28d8ec['plugins']['has']('ImageInlineEditing')&&(_0x3b1c64['enableCommand']('imageTypeInline',(_0x21be26,_0x31a92e)=>{const _0x30fccc=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']);_0x28d8ec['model']['change'](()=>{_0x3b1c64['markBlockFormat'](_0x30fccc,{'commandName':'imageTypeInline','commandParams':[_0x31a92e]},[],'convertBlockImageToInline');});}),_0x3b1c64['enableCommand']('imageTypeBlock',(_0x4beec4,_0x2371bc)=>{_0x28d8ec['model']['change'](_0x19e474=>{let _0x434c7b=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']),_0x4ad28c=_0x19e474['createRangeOn'](_0x434c7b);const _0x50373b=_0xe63aa9['fromPosition'](_0x4ad28c['start'],'toPrevious'),_0x3ad86e=_0xe63aa9['fromPosition'](_0x4ad28c['end'],'toNext');_0x3b1c64['forceDefaultExecution'](()=>_0x4beec4(_0x2371bc)),_0x434c7b=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']),_0x4ad28c=_0x19e474['createRangeOn'](_0x434c7b);const _0x3ce038=_0x19e474['createRange'](_0x50373b,_0x3ad86e);_0x50373b['detach'](),_0x3ad86e['detach'](),_0x3b1c64['markBlockFormat'](_0x434c7b,{'commandName':'imageTypeInline','commandParams':[_0x2371bc]},[],'convertInlineImageToBlock'),_0x3ce038['start']['isBefore'](_0x4ad28c['start'])&&_0x3b1c64['markInsertion'](_0x19e474['createRange'](_0x3ce038['start'],_0x4ad28c['start']),'convertInlineImageToBlock'),_0x4ad28c['end']['isBefore'](_0x3ce038['end'])&&_0x3b1c64['markInsertion'](_0x19e474['createRange'](_0x4ad28c['end'],_0x3ce038['end']),'convertInlineImageToBlock');});}),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3b1c64['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3c7a68])=>{const _0x532a3f=_0x3b1c64['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3f9506=_0x3c7a68['start'],_0x48fa2c=_0x3c7a68['end'];const _0x3ece60=_0x28d8ec['model']['schema']['getNearestSelectionRange'](_0x3f9506,'backward'),_0xa48f3c=_0x28d8ec['model']['schema']['getNearestSelectionRange'](_0x48fa2c,'forward');_0x3ece60['isCollapsed']&&(_0x3f9506=_0x3ece60['start']),_0xa48f3c['isCollapsed']&&(_0x48fa2c=_0xa48f3c['end']),_0x532a3f([_0x28d8ec['model']['createRange'](_0x3f9506,_0x48fa2c)]);}),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x26b20b),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x26b20b)),_0x28d8ec['plugins']['has']('ImageCaptionEditing')&&(_0x3b1c64['enableCommand']('toggleImageCaption',(_0x3e724b,_0x43d0a4)=>{const _0xdd6167=_0x28d8ec['plugins']['get']('ImageCaptionUtils');let _0x16d2cf=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']),_0x1d2006=_0xdd6167['getCaptionFromImageModelElement'](_0x16d2cf);_0x28d8ec['model']['change'](()=>{if(_0x1d2006)return void _0x3b1c64['markDeletion'](_0x28d8ec['model']['createRangeOn'](_0x1d2006));const _0x57a900=_0x399d82['isBlockImage'](_0x16d2cf);_0x3e724b(_0x43d0a4),_0x16d2cf=_0x399d82['getClosestSelectedImageElement'](_0x28d8ec['model']['document']['selection']),_0x1d2006=_0xdd6167['getCaptionFromImageModelElement'](_0x16d2cf),_0x3b1c64['markInsertion'](_0x28d8ec['model']['createRangeOn'](_0x1d2006),_0x57a900?null:'imageCaption');});}),_0x3b1c64['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x26b20b));const _0x10310c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x489186(_0x5d9bf0,_0x2b9e44){const _0xddf5e9=_0x10310c['findIndex'](({type:_0x32ff8e,subType:_0x5c7009})=>_0x5d9bf0['type']==_0x32ff8e&&_0x5d9bf0['subType']==_0x5c7009),_0xd9e1d1=_0x10310c['findIndex'](({type:_0x294683,subType:_0x3d862e})=>_0x2b9e44['type']==_0x294683&&_0x2b9e44['subType']==_0x3d862e);if(_0xddf5e9<0x0||_0xd9e1d1<0x0)return!0x1;const _0x4336c8=_0x5d9bf0['getFirstRange'](),_0x1fa494=_0x2b9e44['getFirstRange']();if((0x0==_0xddf5e9||0x1==_0xddf5e9)&&0x2==_0xd9e1d1&&_0x4336c8['isIntersecting'](_0x1fa494))return!0x0;if(0x2==_0xddf5e9&&0x3==_0xd9e1d1){const _0x2c1db8=_0x3b1c64['_findSuggestions'](_0x4336c8,'insertion')['filter'](({suggestion:_0x21d0ac,meta:_0x59dc19})=>_0x59dc19['isOwn']&&'convertInlineImageToBlock'==_0x21d0ac['subType']);if(_0x2c1db8['length']>0x1&&_0x1fa494['end']['isEqual'](_0x4336c8['start']))return!0x0;if(0x1==_0x2c1db8['length']&&(_0x4336c8['start']['isEqual'](_0x1fa494['end'])||_0x4336c8['end']['isEqual'](_0x1fa494['start'])))return!0x0;}if(0x3==_0xddf5e9&&0x3==_0xd9e1d1&&_0x4336c8['start']['isBefore'](_0x1fa494['start'])){const _0x3f98f5=_0x4336c8['end']['nodeAfter'],_0x153f4d=_0x1fa494['start']['nodeBefore'];return _0x399d82['isBlockImage'](_0x3f98f5)&&_0x3f98f5===_0x153f4d;}return!0x1;}function _0x26b20b(_0x298f8b,_0x5773e0){return _0x489186(_0x298f8b,_0x5773e0)?[_0x298f8b,_0x5773e0]:_0x489186(_0x5773e0,_0x298f8b)?[_0x5773e0,_0x298f8b]:null;}_0x28d8ec['plugins']['has']('ImageResize')&&(_0x3b1c64['enableDefaultAttributesIntegration']('resizeImage'),_0x3b1c64['registerBlockAttribute']('resizedWidth'),_0x3b1c64['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x53be14,'FORMAT_IMAGE_SIZE'))),_0x28d8ec['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3b1c64['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3b1c64['registerBlockAttribute']('alt')),_0x3b1c64['descriptionFactory']['registerDescriptionCallback'](_0x5f3d59=>{if(!!_0x10310c['find'](({type:_0x2bd2b4,subType:_0x18730d})=>_0x5f3d59['type']==_0x2bd2b4&&_0x5f3d59['subType']==_0x18730d))return _0x5f3d59['previous']?{}:void 0x0;}),_0x3b1c64['descriptionFactory']['registerDescriptionCallback'](_0x319eeb=>{if('insertion'==_0x319eeb['type']||'deletion'==_0x319eeb['type']){const _0x56b863=_0x319eeb['getContainedElement']();if(_0x56b863&&_0x56b863['is']('element','caption'))return{'type':'insertion'==_0x319eeb['type']?'addObject':'removeObject','element':_0x56b863,'quantity':0x1};}}),_0x3b1c64['descriptionFactory']['registerDescriptionCallback'](_0x5ce22b=>'formatBlock'==_0x5ce22b['type']&&'convertInlineImageToBlock'==_0x5ce22b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5ce22b['type']&&'convertBlockImageToInline'==_0x5ce22b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3b1c64['descriptionFactory']['registerDescriptionCallback'](_0x45b85c=>{if('attribute'!=_0x45b85c['type'])return;const {data:_0xe51217}=_0x45b85c;if(!_0xe51217||'alt'!=_0xe51217['key'])return;const _0x282c65=_0xe51217['newValue'];return _0x282c65?{'type':'format','content':o(_0x53be14,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x282c65+'\x22')}:{'type':'format','content':o(_0x53be14,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x228a80=this['editor'],_0x1f7d05=_0x228a80['locale'];_0x228a80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9957f0=>{if('formatBlock'!=_0x9957f0['type']&&'formatInline'!=_0x9957f0['type'])return;const {data:_0x216c7f}=_0x9957f0;if(_0x216c7f){if('imageTextAlternative'==_0x216c7f['commandName']){const _0x5c77ad=_0x216c7f['commandParams'][0x0]['newValue'];return _0x5c77ad?{'type':'format','content':o(_0x1f7d05,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5c77ad+'\x22')}:{'type':'format','content':o(_0x1f7d05,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x216c7f['commandName']){const _0x209cb6=_0x216c7f['commandParams'][0x0]['width'];return _0x209cb6?{'type':'format','content':o(_0x1f7d05,'*Set\x20image\x20width:*\x20%0',_0x209cb6)}:{'type':'format','content':o(_0x1f7d05,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5edb8b=this['editor']['locale'],_0x34510c=this['editor']['plugins']['get']('TrackChangesEditing');_0x34510c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x34510c['registerBlockAttribute']('src'),_0x34510c['descriptionFactory']['registerDescriptionCallback'](_0x1a0781=>{if('attribute'!=_0x1a0781['type'])return;const {data:_0x519c05}=_0x1a0781;return _0x519c05&&'src'==_0x519c05['key']?_0x519c05['newValue']&&_0x519c05['oldValue']?{'type':'format','content':o(_0x5edb8b,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3c2838=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c2838['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3c2838['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c2838['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3c2838['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x522e45=this['editor'],_0x262846=_0x522e45['locale'];_0x522e45['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c808d=>{if('formatBlock'!=_0x4c808d['type']&&'formatInline'!=_0x4c808d['type'])return;const {data:_0x4efc73}=_0x4c808d;if(!_0x4efc73||'replaceImageSource'!=_0x4efc73['commandName'])return;return{'type':'format','content':o(_0x262846,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x2be873{['afterInit'](){const _0x3efa7a=this['editor'];if(!_0x3efa7a['plugins']['has']('ImageStyleEditing'))return;const _0x4e93f8=_0x3efa7a['plugins']['get']('TrackChangesEditing'),_0x3543ae=_0x3efa7a['plugins']['get']('ImageUtils'),_0x4f16b2={};_0x4e93f8['enableCommand']('imageStyle',(_0x3119d5,_0x22b37e)=>{const _0x3d2483=_0x3efa7a['plugins']['get']('Users')['me'],_0x40d723=_0x3efa7a['commands']['get']('imageStyle');let _0x21f703=_0x3543ae['getClosestSelectedImageElement'](_0x3efa7a['model']['document']['selection']),_0x14e0a5=_0x3efa7a['model']['createRangeOn'](_0x21f703),_0x1948b8=_0x40d723['value'];if(_0x1948b8==_0x22b37e['value'])return;const _0x53695a={'commandName':'imageStyle','commandParams':[_0x22b37e],'formatGroupId':_0x30a933()};_0x3efa7a['model']['change'](()=>{if(_0x4e93f8['getSuggestions']()['filter'](_0x4cd6cc=>_0x4cd6cc['isInContent']&&_0x3d2483==_0x4cd6cc['author']&&('formatBlock'==_0x4cd6cc['type']||'formatInline'==_0x4cd6cc['type'])&&('imageStylePreApply'==_0x4cd6cc['subType']||'imageStylePostApply'==_0x4cd6cc['subType'])&&_0x4cd6cc['getFirstRange']()['isEqual'](_0x14e0a5))['forEach'](_0x175ab1=>_0x4e93f8['discardSuggestion'](_0x175ab1['head'])),_0x21f703=_0x3543ae['getClosestSelectedImageElement'](_0x3efa7a['model']['document']['selection']),_0x14e0a5=_0x3efa7a['model']['createRangeOn'](_0x21f703),_0x40d723['refresh'](),_0x3efa7a['commands']['get']('imageTypeInline')['refresh'](),_0x3efa7a['commands']['get']('imageTypeBlock')['refresh'](),_0x1948b8=_0x40d723['value'],_0x1948b8!=_0x22b37e['value'])return _0x3543ae['isInlineImage'](_0x21f703)&&_0x40d723['shouldConvertImageType'](_0x22b37e['value'],_0x21f703)?(_0x3119d5({..._0x22b37e,'setImageSizes':!0x1}),_0x21f703=_0x3543ae['getClosestSelectedImageElement'](_0x3efa7a['model']['document']['selection']),void _0x4e93f8['markBlockFormat'](_0x21f703,{..._0x53695a,'commandReversedParams':[{'value':_0x1948b8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3543ae['isBlockImage'](_0x21f703)?_0x4e93f8['markBlockFormat'](_0x21f703,_0x53695a,[],'imageStylePostApply'):_0x4e93f8['markInlineFormat'](_0x14e0a5,_0x53695a,'imageStylePostApply'));});});for(const _0x5bbccb of _0x3efa7a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4f16b2[_0x5bbccb['name']]=_0x5bbccb['title']['toLowerCase']();_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4d248e])=>{_0x3543ae['setImageNaturalSizeAttributes'](_0x4d248e['getContainedElement']());}),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2986bc,_0x33624f)=>{_0x4e93f8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2986bc,{'commandName':_0x33624f['commandName'],'commandParams':_0x33624f['commandReversedParams']});}),_0x4e93f8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x260c07,_0x3cd383){if(_0x4c3284(_0x260c07,_0x3cd383))return[_0x260c07,_0x3cd383];if(_0x4c3284(_0x3cd383,_0x260c07))return[_0x3cd383,_0x260c07];return null;});const _0x234a5e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c3284(_0x5b5b26,_0x158ba0){const _0x202a27=_0x234a5e['findIndex'](({type:_0x446ff7,subType:_0x789b55})=>_0x5b5b26['type']==_0x446ff7&&_0x5b5b26['subType']==_0x789b55),_0x3def62=_0x234a5e['findIndex'](({type:_0x21d5ba,subType:_0x26bdc0})=>_0x158ba0['type']==_0x21d5ba&&_0x158ba0['subType']==_0x26bdc0);if(_0x202a27<0x0||_0x3def62<0x0)return!0x1;const _0x43ac37=_0x5b5b26['getFirstRange'](),_0x3c3988=_0x158ba0['getFirstRange']();if((0x0==_0x202a27||0x1==_0x202a27)&&0x2==_0x3def62&&_0x43ac37['isIntersecting'](_0x3c3988))return!0x0;if(0x2==_0x202a27&&0x3==_0x3def62){const _0x29d476=_0x4e93f8['_findSuggestions'](_0x43ac37,'insertion')['filter'](({suggestion:_0x2e969e,meta:_0x14f5c9})=>_0x14f5c9['isOwn']&&'convertInlineImageToBlock'==_0x2e969e['subType']);if(_0x29d476['length']>0x1&&_0x3c3988['end']['isEqual'](_0x43ac37['start']))return!0x0;if(0x1==_0x29d476['length']&&(_0x43ac37['start']['isEqual'](_0x3c3988['end'])||_0x43ac37['end']['isEqual'](_0x3c3988['start'])))return!0x0;}if(0x3==_0x202a27&&0x3==_0x3def62&&_0x43ac37['start']['isBefore'](_0x3c3988['start'])){const _0x516115=_0x43ac37['end']['nodeAfter'],_0x298994=_0x3c3988['start']['nodeBefore'];return _0x3543ae['isBlockImage'](_0x516115)&&_0x516115===_0x298994;}return!0x1;}_0x3efa7a['model']['document']['registerPostFixer'](()=>{let _0x5480cc=!0x1;const _0xc688e2=Array['from'](_0x3efa7a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5975bb,data:_0x4143fd}of _0xc688e2){const {group:_0x1050ee,type:_0x189172,subType:_0x4dee74,id:_0x1d4a3e}=_0x4e93f8['_splitMarkerName'](_0x5975bb);if('suggestion'==_0x1050ee&&_0x4e93f8['hasSuggestion'](_0x1d4a3e)){if('formatBlock'==_0x189172&&('imageStylePreApply'==_0x4dee74||'imageStylePostApply'==_0x4dee74)){const _0x2d3e5d=_0x4e93f8['getSuggestion'](_0x1d4a3e);if(_0x4143fd['newRange']){const _0x458b96=_0x2d3e5d['getFirstRange']()['getContainedElement']();if(_0x3543ae['isBlockImage'](_0x458b96))continue;_0x4e93f8['discardSuggestion'](_0x2d3e5d),_0x5480cc=!0x0;}}if('insertion'==_0x189172&&'imageCaption'==_0x4dee74&&!_0x4143fd['newRange']){const _0x112651=_0x4e93f8['getSuggestion'](_0x1d4a3e);_0x112651['next']&&_0x112651['next']['isInContent']&&(_0x4e93f8['discardSuggestion'](_0x112651['next']),_0x5480cc=!0x0);}}}return _0x5480cc;}),this['_registerLegacyDescription'](_0x4f16b2);}['_registerLegacyDescription'](_0x4207b5){const _0x542536=this['editor'],_0xc7aa46=_0x542536['locale'];_0x542536['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e13c0=>{if('formatBlock'!=_0x5e13c0['type']&&'formatInline'!=_0x5e13c0['type'])return;const {data:_0x52bf2d}=_0x5e13c0;if(!_0x52bf2d||'imageStyle'!=_0x52bf2d['commandName'])return;const _0x30ec5d=_0x52bf2d['commandParams'][0x0]['value'];return _0x29b845('side'===_0x30ec5d?o(_0xc7aa46,'FORMAT_SIDE_IMAGE'):_0x4207b5[_0x30ec5d]||_0x30ec5d);function _0x29b845(_0x5dc392){return{'type':'format','content':o(_0xc7aa46,'*Format:*\x20%0',_0x5dc392)};}});}}class at extends _0x2be873{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1d8a09){super(_0x1d8a09),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xe59817=this['editor'],_0x23d3d8=_0xe59817['commands']['get']('importWord'),_0x119951=_0xe59817['commands']['get']('trackChanges');_0x23d3d8&&(_0x23d3d8['on']('execute',(_0x317114,[,_0x4f5a8c])=>{this['_trackChangesValueDuringImport']=_0x119951['value'],_0x4f5a8c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x23d3d8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x23d3d8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x119951['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xe59817['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x16c41d,_0x106a30){const {suggestions:_0xbc8c56}=_0x106a30,_0x3eb4a=this['editor']['commands']['get']('trackChanges'),_0x5c2ee4=_0x3eb4a['value'];this['_trackChangesValueDuringImport']!==_0x5c2ee4&&(_0x3eb4a['execute'](),this['_trackChangesExecuted']=!0x0),_0xbc8c56&&_0xbc8c56['forEach'](({id:_0x2ac032,type:_0x545737,author:_0xbed74,created_at:_0x5aac1e})=>{const _0x2628df={'id':_0x2ac032,'type':_0x545737,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xbed74,'createdAt':_0x5aac1e?new Date(_0x5aac1e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2628df);});}}class ct extends _0x2be873{['afterInit'](){const _0x4076cd=this['editor'],_0x1d0a1b=_0x4076cd['plugins']['get']('TrackChangesEditing');if(_0x4076cd['plugins']['has']('IndentEditing')&&(_0x1d0a1b['enableCommand']('indent'),_0x1d0a1b['enableCommand']('outdent')),_0x4076cd['plugins']['has']('IndentBlock')){for(const _0x4e4d6c of['indentBlock','outdentBlock'])_0x1d0a1b['enableDefaultAttributesIntegration'](_0x4e4d6c);}const _0xeb2213=_0x4076cd['locale'];_0x1d0a1b['registerBlockAttribute']('blockIndent'),_0x1d0a1b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xeb2213,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cef17=this['editor'],_0x1b61c3=_0x2cef17['locale'],_0x8be4f=_0x2cef17['plugins']['get']('TrackChangesEditing');_0x8be4f['descriptionFactory']['registerDescriptionCallback'](_0x51d5ef=>{if('formatBlock'!=_0x51d5ef['type'])return;const {data:_0x47b1a0}=_0x51d5ef;if(!_0x47b1a0)return;if('indentBlock'!=_0x47b1a0['commandName']&&'outdentBlock'!=_0x47b1a0['commandName'])return;const _0x543ed8=_0x51d5ef['getItems']()[0x0],_0x52b62a=_0x8be4f['descriptionFactory']['getItemLabel'](_0x543ed8);return'indentBlock'==_0x47b1a0['commandName']?{'type':'format','content':o(_0x1b61c3,'*Indent:*\x20%0',_0x52b62a)}:'outdentBlock'==_0x47b1a0['commandName']?{'type':'format','content':o(_0x1b61c3,'*Outdent:*\x20%0',_0x52b62a)}:void 0x0;});}}class ut extends _0x2be873{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2be873{['afterInit'](){const _0x25d575=this['editor'];if(!_0x25d575['plugins']['has']('LinkEditing'))return;const _0x46cf53=_0x25d575['plugins']['get']('TrackChangesEditing'),_0x59f722=_0x25d575['commands']['get']('link');_0x46cf53['enableDefaultAttributesIntegration']('link'),_0x46cf53['enableDefaultAttributesIntegration']('unlink'),_0x46cf53['registerInlineAttribute']('linkHref');for(const _0x223d4a of _0x59f722['manualDecorators'])_0x46cf53['registerInlineAttribute'](_0x223d4a['id']),_0x46cf53['descriptionFactory']['registerAttributeLabel'](_0x223d4a['id'],'link\x20('+_0x223d4a['label']['toLowerCase']()+')');_0x46cf53['descriptionFactory']['registerDescriptionCallback'](_0x4a69d3=>{if('attribute'!=_0x4a69d3['type'])return;const {data:_0x3f634d}=_0x4a69d3;if(!_0x3f634d||'linkHref'!=_0x3f634d['key'])return;const _0x5157b6=_0x3f634d['newValue'],_0x3ed602=_0x25d575['locale'];return{'type':'format','content':null==_0x5157b6?o(_0x3ed602,'*Remove\x20link*'):o(_0x3ed602,'*Set\x20link:*\x20%0','\x22'+_0x5157b6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b4517=this['editor'],_0x5c1642=_0x5b4517['locale'];_0x5b4517['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12a77b=>{if('formatInline'!=_0x12a77b['type'])return;const {data:_0x117115}=_0x12a77b;if(_0x117115){if('link'==_0x117115['commandName']){const _0x4a77ba=_0x117115['commandParams'][0x0];return{'type':'format','content':o(_0x5c1642,'*Set\x20link:*\x20%0','\x22'+_0x4a77ba+'\x22')};}return'unlink'==_0x117115['commandName']?{'type':'format','content':o(_0x5c1642,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2be873{['afterInit'](){const _0x4b5867=this['editor'],_0x304b68=_0x4b5867['locale'];if(!_0x4b5867['plugins']['has']('LegacyListEditing'))return;const _0x4d1f67=_0x4b5867['plugins']['get']('TrackChangesEditing'),_0x466689=_0x4b5867['plugins']['has']('LegacyTodoListEditing');function _0x19202f(_0x2ea129){return()=>{const _0xb9f61e=_0x4b5867['model']['document']['selection'],_0x3d2345=_0x4b5867['commands']['get'](_0x2ea129);if(_0x3d2345['value'])return void _0x4b5867['execute']('paragraph',{});const _0x55fa66=_0x2ea129['slice'](0x0,-0x4),_0xfeecd6=function(_0x685184,_0x11d077,_0x26e763){let _0x394410=Array['from'](_0x685184)['filter'](_0x5a3f17=>function(_0xc4817d,_0x234aaf){return _0x234aaf['checkChild'](_0xc4817d['parent'],'listItem')&&!_0x234aaf['isObject'](_0xc4817d);}(_0x5a3f17,_0x26e763));_0x394410=_0x394410['filter'](_0x38267a=>!_0x38267a['is']('element','listItem')||_0x38267a['getAttribute']('listType')!=_0x11d077);const _0x1625ad=new Set();for(const _0x11dcbc of _0x394410)_0x11dcbc['is']('element','listItem')?_0x1625ad['add'](fe(_0x11dcbc)):_0x1625ad['add'](_0x11dcbc);return Array['from'](_0x1625ad);}(_0xb9f61e['getSelectedBlocks'](),_0x55fa66,_0x4b5867['model']['schema']);_0x4b5867['model']['change'](()=>{for(const _0x2587eb of _0xfeecd6)_0x4d1f67['markBlockFormat'](_0x2587eb,{'commandName':_0x2ea129,'commandParams':[{'forceValue':!_0x3d2345['value']}],'formatGroupId':'blockName'},ue(_0x2587eb));});};}function _0x3aaf9b(_0x5609d4){return()=>{const _0x138c0d=function(_0x8cd07a){let _0x3b86a7=Array['from'](_0x8cd07a);const _0x25fbec=_0x3b86a7['findIndex'](_0x5b876c=>'listItem'!=_0x5b876c['name']);return _0x25fbec>-0x1&&(_0x3b86a7=_0x3b86a7['slice'](0x0,_0x25fbec)),_0x3b86a7;}(_0x4b5867['model']['document']['selection']['getSelectedBlocks']()),_0x18c307=_0x4b5867['model']['createRange'](_0x4b5867['model']['createPositionAt'](_0x138c0d[0x0],'before'),_0x4b5867['model']['createPositionAt'](_0x138c0d[_0x138c0d['length']-0x1],'end'));_0x4b5867['model']['change'](()=>{_0x4d1f67['markBlockFormat'](_0x18c307,{'commandName':_0x5609d4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x49c9b2){const _0x40fb0c=new Set();for(const _0x39e4a3 of _0x49c9b2){let _0x3c5537=_0x39e4a3['nextSibling'];for(;_0x3c5537&&_0x3c5537['getAttribute']('listIndent')>_0x39e4a3['getAttribute']('listIndent');)_0x40fb0c['add'](_0x3c5537),_0x3c5537=_0x3c5537['nextSibling'];}return Array['from'](_0x40fb0c);}(_0x138c0d));});};}_0x4d1f67['enableCommand']('numberedList',_0x19202f('numberedList')),_0x4d1f67['enableCommand']('bulletedList',_0x19202f('bulletedList')),_0x466689&&_0x4d1f67['enableCommand']('todoList',_0x19202f('todoList')),_0x4d1f67['enableCommand']('indentList',_0x3aaf9b('indentList')),_0x4d1f67['enableCommand']('outdentList',_0x3aaf9b('outdentList')),_0x466689&&_0x4d1f67['enableCommand']('checkTodoList',()=>{const _0x3e5e0c=_0x4b5867['commands']['get']('checkTodoList'),_0x47ab40=Array['from'](_0x3e5e0c['_selectedElements']);_0x47ab40['filter'](_0x5e1a36=>_0x5e1a36['getAttribute']('todoListChecked')!=_0x3e5e0c['value']),_0x4b5867['model']['change'](()=>{for(const _0x2ac170 of _0x47ab40)_0x4d1f67['markBlockFormat'](_0x2ac170,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3e5e0c['value']}]});});}),_0x4d1f67['descriptionFactory']['registerElementLabel']('listItem',_0x339363=>o(_0x304b68,'ELEMENT_LIST_ITEM',_0x339363)),_0x4d1f67['descriptionFactory']['registerDescriptionCallback'](_0x4b250b=>{if('formatBlock'!=_0x4b250b['type']&&'formatInline'!=_0x4b250b['type'])return;const {data:_0x521912}=_0x4b250b;if(_0x521912){if('numberedList'==_0x521912['commandName']||'bulletedList'==_0x521912['commandName']||'todoList'==_0x521912['commandName'])switch(_0x521912['commandName']['replace']('List','')){case'bulleted':return _0x21a551(o(_0x304b68,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x21a551(o(_0x304b68,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x21a551(o(_0x304b68,'ELEMENT_TODO_LIST'));}if('indentList'==_0x521912['commandName'])return{'type':'format','content':o(_0x304b68,'*Indent:*\x20%0',o(_0x304b68,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x521912['commandName'])return{'type':'format','content':o(_0x304b68,'*Outdent:*\x20%0',o(_0x304b68,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x521912['commandName'])return _0x521912['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x304b68,'*Check\x20item*')}:{'type':'format','content':o(_0x304b68,'*Uncheck\x20item*')};}function _0x21a551(_0x51a02c){return{'type':'format','content':o(_0x304b68,'*Change\x20to:*\x20%0',_0x51a02c)};}});}}function fe(_0x18a12d){const _0x3c3ddf=_0x18a12d['getAttribute']('listIndent');if(0x0==_0x3c3ddf)return _0x18a12d;let _0x5a1462=_0x18a12d;for(;_0x18a12d['previousSibling']&&_0x18a12d['previousSibling']['is']('element','listItem');){const _0x56e352=_0x18a12d['previousSibling']['getAttribute']('listIndent');if(_0x56e352==_0x3c3ddf)_0x5a1462=_0x18a12d['previousSibling'];else{if(_0x56e352<_0x3c3ddf)break;}_0x18a12d=_0x18a12d['previousSibling'];}return _0x5a1462;}function ue(_0x5864e6){const _0x1f6b51=[];if(_0x5864e6['is']('element','listItem')&&_0x5864e6['getAttribute']('listIndent')>0x0){let _0x48a6a6=_0x5864e6['nextSibling'];for(;_0x48a6a6&&'listItem'==_0x48a6a6['name']&&_0x48a6a6['getAttribute']('listIndent')==_0x5864e6['getAttribute']('listIndent');)_0x1f6b51['push'](_0x48a6a6),_0x48a6a6=_0x48a6a6['nextSibling'];}return _0x1f6b51;}class W extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xf99a4e=this['editor']['config']['get']('list.properties'),_0x1ef838=this['editor']['plugins']['get']('TrackChangesEditing');_0xf99a4e['styles']&&_0x1ef838['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xf99a4e['reversed']&&_0x1ef838['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xf99a4e['startIndex']&&_0x1ef838['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1ef838['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1bfce3,_0xd3a3e9={}){const _0xf44c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ba8bd=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xf44c1['markMultiRangeBlockFormat'](_0x1ba8bd,{'commandName':'listStyle','commandParams':[{'type':_0xd3a3e9['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4fa1cf,_0x47d84f={}){const _0xda3c45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44d449=this['_getSuggestionBlocks'](_0x308302=>_0x308302['is']('element','listItem')&&'numbered'===_0x308302['getAttribute']('listType'));if(_0x44d449['length']<0x1)return;const _0xd54253=_0x44d449['map'](_0x438a5a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x438a5a,'before'),this['editor']['model']['createPositionAt'](_0x438a5a,0x0)));this['editor']['model']['change'](()=>{_0xda3c45['markMultiRangeBlockFormat'](_0xd54253,{'commandName':'listReversed','commandParams':[{'reversed':_0x47d84f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1a71b1,_0x5c14ab={}){const _0x2fbe41=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39d451=this['_getSuggestionBlocks'](_0x490413=>_0x490413['is']('element','listItem')&&'numbered'===_0x490413['getAttribute']('listType'));if(_0x39d451['length']<0x1)return;const _0xbd8832=_0x39d451['map'](_0x15511a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15511a,'before'),this['editor']['model']['createPositionAt'](_0x15511a,0x0)));this['editor']['model']['change'](()=>{_0x2fbe41['markMultiRangeBlockFormat'](_0xbd8832,{'commandName':'listStart','commandParams':[{'startIndex':_0x5c14ab['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x56875f){if('formatBlock'!=_0x56875f['type']&&'formatInline'!=_0x56875f['type'])return;const _0x170dc5=this['editor']['locale'],{data:_0x424142}=_0x56875f;if(!_0x424142)return;let _0xfb64d3,_0x51a472;switch(_0x424142['commandName']){case'listStyle':_0xfb64d3='*Change\x20to:*\x20%0',_0x51a472={'type':'format','content':o(_0x170dc5,_0xfb64d3,o(_0x170dc5,this['_getTranslationKeyForListStyle'](_0x424142['commandParams'][0x0]['type'])))};break;case'listReversed':_0xfb64d3=_0x424142['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51a472={'type':'format','content':o(_0x170dc5,_0xfb64d3)};break;case'listStart':_0xfb64d3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51a472={'type':'format','content':o(_0x170dc5,_0xfb64d3,_0x424142['commandParams'][0x0]['startIndex'])};}return _0x51a472;}['_getSuggestionBlocksForListStyle'](){const _0x1311c4=this['editor']['plugins']['get']('LegacyListUtils');let _0x31c15b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x31c15b[0x0]?.['is']('element','listItem')&&_0x31c15b['unshift'](..._0x1311c4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x31c15b[_0x31c15b['length']-0x1]?.['is']('element','listItem')&&_0x31c15b['push'](..._0x1311c4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x31c15b=[...new Set(_0x31c15b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x31c15b=_0x31c15b['filter'](_0x28da08=>_0x28da08['is']('element','listItem'))),_0x31c15b;}['_getSuggestionBlocks'](_0x2dc3b6){const _0x4f496a=this['editor']['plugins']['get']('LegacyListUtils');let _0xe64c9d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2dc3b6)['map'](_0x3ac0ca=>{const _0x492c3d=this['editor']['model']['createPositionAt'](_0x3ac0ca,0x0);return[..._0x4f496a['getSiblingNodes'](_0x492c3d,'backward'),..._0x4f496a['getSiblingNodes'](_0x492c3d,'forward')];})['flat']();return _0xe64c9d=[...new Set(_0xe64c9d)],_0xe64c9d;}['_getTranslationKeyForListStyle'](_0x489b6c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x489b6c)||'default')['toUpperCase']()+'_LIST_'+_0x489b6c['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x2be873{['afterInit'](){const _0x2e43e2=this['editor'];if(!_0x2e43e2['plugins']['has']('MediaEmbedEditing'))return;const _0x284770=_0x2e43e2['plugins']['get']('TrackChangesEditing'),_0x14ea33=_0x2e43e2['locale'];_0x284770['enableCommand']('mediaEmbed'),_0x284770['descriptionFactory']['registerElementLabel']('media',_0x81ef6e=>o(_0x14ea33,'ELEMENT_MEDIA',_0x81ef6e)),_0x2e43e2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x45ac32,{writer:_0xb03df1,options:_0x130b92})=>{if(_0x130b92['showSuggestionHighlights'])return _0xb03df1['createEmptyElement']('div');},'converterPriority':'high'}),_0x2e43e2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x445e74,_0x13e53d,_0x4d78d5)=>{_0x4d78d5['options']['showSuggestionHighlights']&&_0x445e74['stop']();},{'priority':'high'});}}class mt extends _0x2be873{['afterInit'](){const _0x50afb7=this['editor'];_0x50afb7['plugins']['has']('MentionEditing')&&_0x50afb7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2be873{['afterInit'](){const _0x5d90d7=this['editor'];if(!_0x5d90d7['plugins']['has']('MergeFieldsEditing'))return;_0x5d90d7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5d90d7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2bccbf=_0x5d90d7['plugins']['get']('TrackChangesEditing'),_0x47d5c9=_0x5d90d7['locale'];_0x2bccbf['descriptionFactory']['registerElementLabel']('mergeField',_0x16563d=>o(_0x47d5c9,'ELEMENT_MERGE_FIELD',_0x16563d)),_0x2bccbf['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5cbee1=>o(_0x47d5c9,'ELEMENT_MERGE_FIELD',_0x5cbee1)),_0x2bccbf['descriptionFactory']['registerDescriptionCallback'](_0x4d3452=>{if('insertion'!=_0x4d3452['type']&&'deletion'!=_0x4d3452['type'])return;const _0x208f4d=_0x4d3452['getContainedElement']();if(null==_0x208f4d)return;if(!_0x208f4d['is']('element','mergeField')&&!_0x208f4d['is']('element','mergeFieldBlock'))return;const _0x365928=_0x5d90d7['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x208f4d['getAttribute']('id'));return'insertion'==_0x4d3452['type']?{'type':'insertion','content':o(_0x47d5c9,'*Insert:*\x20%0','\x22'+_0x365928+'\x22\x20'+o(_0x47d5c9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x47d5c9,'*Remove:*\x20%0','\x22'+_0x365928+'\x22\x20'+o(_0x47d5c9,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x2be873{['afterInit'](){const _0x1f0a50=this['editor'],_0x468e7b=_0x1f0a50['plugins']['get']('TrackChangesEditing');_0x1f0a50['plugins']['has']('MultiLevelList')&&(_0x468e7b['enableDefaultAttributesIntegration']('multiLevelList'),_0x468e7b['registerBlockAttribute']('listMarkerStyle'),_0x468e7b['descriptionFactory']['registerDescriptionCallback'](_0x33ae45=>this['handleDescriptions'](_0x33ae45)));}['handleDescriptions'](_0x2081cc){const _0x859aa7=this['editor']['locale'],{data:_0x42ed56}=_0x2081cc,_0x4c49ea={'type':'format','content':''};if(_0x42ed56&&'listMarkerStyle'==_0x42ed56['key']){if(!_0x42ed56['oldValue'])return{'type':'format','content':o(_0x859aa7,'*Set\x20format:*\x20%0',o(_0x859aa7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x42ed56['newValue']+')'};if(!_0x42ed56['newValue']){let _0x48bf55=_0x2081cc['head'];for(;_0x48bf55;){if(_0x48bf55['data']&&'listType'==_0x48bf55['data']['key']&&_0x48bf55['data']['newValue'])return _0x4c49ea;_0x48bf55=_0x48bf55['next'];}return{'type':'format','content':o(_0x859aa7,'*Remove\x20format:*\x20%0',o(_0x859aa7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x42ed56['oldValue']+')'};}}}}class kt extends _0x2be873{['afterInit'](){const _0x5bb492=this['editor'];if(!_0x5bb492['plugins']['has']('PageBreakEditing'))return;_0x5bb492['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d80ce=_0x5bb492['plugins']['get']('TrackChangesEditing'),_0x314ba8=_0x5bb492['locale'];_0x3d80ce['descriptionFactory']['registerElementLabel']('pageBreak',_0x2e6307=>o(_0x314ba8,'ELEMENT_PAGE_BREAK',_0x2e6307));}}class bt extends _0x2be873{['afterInit'](){const _0x1c1824=this['editor'];if(!_0x1c1824['plugins']['has']('Paragraph'))return;const _0x37966b=_0x1c1824['locale'],_0x19853f=_0x1c1824['plugins']['get']('TrackChangesEditing');_0x19853f['descriptionFactory']['registerElementLabel']('paragraph',_0x2f8d0b=>o(_0x37966b,'ELEMENT_PARAGRAPH',_0x2f8d0b)),_0x19853f['enableDefaultAttributesIntegration']('paragraph'),_0x19853f['enableCommand']('insertParagraph'),_0x1c1824['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1c1824),{'priority':'highest'}),_0x1c1824['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5f19fb,_0x243aa5,_0x26037c)=>{_0x26037c['options']['showSuggestionHighlights']&&nr(_0x1c1824,{'showActiveMarker':!0x1})(_0x5f19fb,_0x243aa5,_0x26037c);},{'priority':'highest'});const _0x33635f=_0x19853f['descriptionFactory'];_0x33635f['registerDescriptionCallback'](_0x1404e4=>{if('insertion'!==_0x1404e4['type'])return;const {start:_0x365b73,end:_0x278d99}=_0x1404e4['getFirstRange']();if(!_0x365b73['isTouching'](_0x278d99)||!_0x365b73['nodeAfter'])return;const _0x337b9f=_0x1c1824['model']['schema'],_0xf66a02=_0x365b73['nodeAfter'];return _0x337b9f['isBlock'](_0xf66a02)&&!_0x337b9f['isLimit'](_0xf66a02)&&_0x337b9f['checkChild'](_0xf66a02,'$text')?{'type':'insertion','content':o(_0x37966b,'*Insert:*\x20%0',_0x33635f['getItemLabel'](_0xf66a02,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b0a3c=this['editor'],_0x5ef7a3=_0x9b0a3c['locale'];_0x9b0a3c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f4c59=>{if('formatBlock'!=_0x4f4c59['type'])return;const {data:_0x3d9e86}=_0x4f4c59;return _0x3d9e86&&'paragraph'==_0x3d9e86['commandName']?{'type':'format','content':o(_0x5ef7a3,'*Change\x20to:*\x20%0',o(_0x5ef7a3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xd33620,{showActiveMarker:_0x1a0c25=!0x0}={}){return(_0x19561c,_0x500fc4,_0x56b410)=>{const _0x36f260=_0xd33620['plugins']['get']('TrackChangesEditing'),_0x4b050f=_0x500fc4['markerRange']['start'],_0x18bf5c=_0x500fc4['markerRange']['end'],_0x5061c6=_0xd33620['model']['schema'];if(!_0x4b050f['isTouching'](_0x18bf5c)||!_0x4b050f['nodeAfter'])return;const _0x42db96=_0x4b050f['nodeAfter'];if(_0x5061c6['isBlock'](_0x42db96)&&!_0x5061c6['isLimit'](_0x42db96)&&_0x5061c6['checkChild'](_0x42db96,'$text')){if(!_0x56b410['consumable']['consume'](_0x500fc4['markerRange'],_0x19561c['name']))return;const {authorId:_0x5ec5be}=_0x36f260['_splitMarkerName'](_0x500fc4['markerName']),_0x5251ce=_0x56b410['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5ec5be}),_0x5dc376=_0x56b410['mapper']['toViewPosition'](_0x18bf5c);_0x1a0c25&&_0x36f260['activeMarkers']['includes'](_0x500fc4['markerName'])&&_0x56b410['writer']['addClass']('ck-suggestion-marker--active',_0x5251ce),_0x56b410['writer']['insert'](_0x5dc376,_0x5251ce),_0x56b410['mapper']['bindElementToMarker'](_0x5251ce,_0x500fc4['markerName']);}};}class wt extends _0x2be873{['afterInit'](){const _0x4dd9b0=this['editor'];if(!_0x4dd9b0['plugins']['has']('RemoveFormatEditing'))return;_0x4dd9b0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17ac25=this['editor'];_0x17ac25['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x373b43=>{if('formatBlock'!=_0x373b43['type']&&'formatInline'!=_0x373b43['type'])return;const {data:_0x4ce1eb}=_0x373b43;return _0x4ce1eb&&'removeFormat'==_0x4ce1eb['commandName']?{'type':'format','content':o(_0x17ac25['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2be873{['afterInit'](){const _0x1da0d6=this['editor'];if(!_0x1da0d6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2a68cb=_0x1da0d6['plugins']['get']('TrackChangesEditing');_0x2a68cb['enableCommand']('goToPreviousRestrictedEditingException'),_0x2a68cb['enableCommand']('goToNextRestrictedEditingException');const _0x5ab66f=_0x1da0d6['plugins']['get']('RestrictedEditingModeEditing');_0x5ab66f['enableCommand']('trackChanges'),_0x5ab66f['enableCommand']('acceptSuggestion'),_0x5ab66f['enableCommand']('discardSuggestion'),_0x5ab66f['enableCommand']('acceptAllSuggestions'),_0x5ab66f['enableCommand']('discardAllSuggestions'),_0x5ab66f['enableCommand']('acceptSelectedSuggestions'),_0x5ab66f['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2be873{static get['requires'](){return[_0x4c1f0c];}['init'](){const _0x659dad=this['editor'],_0x1a7479=_0x659dad['plugins']['get']('TrackChangesEditing');_0x1a7479['enableCommand']('shiftEnter'),_0x659dad['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x659dad),{'priority':'high'}),_0x659dad['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x659dad),{'priority':'high'}),_0x659dad['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x470086,_0x3cba45,_0x91a94b)=>{_0x91a94b['options']['showSuggestionHighlights']&&ge(_0x659dad,{'showActiveMarker':!0x1})(_0x470086,_0x3cba45,_0x91a94b);}),_0x1a7479['descriptionFactory']['registerElementLabel']('softBreak',_0x505789=>o(_0x659dad['locale'],'ELEMENT_LINE_BREAK',_0x505789));}}function ge(_0x2430c5,{showActiveMarker:_0x561b66=!0x0}={}){return(_0xa2e621,_0x4ea9a9,_0x19fa76)=>{const _0x5281e8=_0x2430c5['plugins']['get']('TrackChangesEditing');if(!_0x19fa76['consumable']['test'](_0x4ea9a9['markerRange'],_0xa2e621['name']))return;const _0x183e0e=_0x2430c5['model'];for(const _0x56c38e of _0x4ea9a9['markerRange']['getItems']()){if(!_0x56c38e['is']('element','softBreak'))continue;const _0x245210='deletion'==_0x4ea9a9['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3291be}=_0x5281e8['_splitMarkerName'](_0x4ea9a9['markerName']),_0x4c1e7e=_0x19fa76['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x245210,'data-author-id':_0x3291be}),_0x514f88=_0x19fa76['mapper']['toViewPosition'](_0x183e0e['createPositionBefore'](_0x56c38e));_0x561b66&&_0x5281e8['activeMarkers']['includes'](_0x4ea9a9['markerName'])&&_0x19fa76['writer']['addClass']('ck-suggestion-marker--active',_0x4c1e7e),_0x19fa76['writer']['insert'](_0x514f88,_0x4c1e7e),_0x19fa76['mapper']['bindElementToMarker'](_0x4c1e7e,_0x4ea9a9['markerName']);}};}class St extends _0x2be873{['afterInit'](){const _0x627b55=this['editor'],_0x36f9d5=_0x627b55['model'],_0x4fb556=_0x627b55['locale'];if(!_0x627b55['plugins']['has']('StandardEditingModeEditing'))return;const _0x59e31e=_0x627b55['plugins']['get']('TrackChangesEditing'),_0x57686a='restrictedEditingException',_0x4246de=_0x627b55['commands']['get'](_0x57686a);_0x59e31e['enableCommand'](_0x57686a,(_0x2729a2,_0x380f6d={})=>{const _0x13a66c=_0x36f9d5['document']['selection'];if(_0x13a66c['isCollapsed'])return void _0x2729a2(_0x380f6d);const _0x7c58ab=void 0x0!==_0x380f6d['forceValue']?_0x380f6d['forceValue']:!_0x4246de['value'];_0x36f9d5['change'](()=>{const _0x5a6dce=Array['from'](_0x13a66c['getRanges']());for(const _0x4206a4 of _0x5a6dce){const _0x4ce89c=_0x7c58ab?[_0x4206a4]:io(_0x57686a,_0x4206a4,_0x36f9d5);for(const _0x14d29a of _0x4ce89c)_0x59e31e['markInlineFormat'](_0x14d29a,{'commandName':_0x57686a,'commandParams':[{'forceValue':_0x7c58ab}]});}});}),_0x59e31e['descriptionFactory']['registerDescriptionCallback'](_0x451729=>{if('formatBlock'!=_0x451729['type']&&'formatInline'!=_0x451729['type'])return;const {data:_0x57c22f}=_0x451729;return _0x57c22f&&_0x57c22f['commandName']==_0x57686a?_0x57c22f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fb556,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fb556,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x2be873{['afterInit'](){const _0xd57c78=this['editor'];if(!_0xd57c78['plugins']['has']('Style')||!_0xd57c78['plugins']['has']('DataSchema'))return;const _0x3d84aa=_0xd57c78['plugins']['get']('TrackChangesEditing'),_0x1f1716=_0xd57c78['locale'],_0x20e426=_0xd57c78['config']['get']('style')||{},_0x4db3dd=_0xd57c78['plugins']['get']('GeneralHtmlSupport'),_0x553673=_0xd57c78['plugins']['get']('StyleUtils')['normalizeConfig'](_0xd57c78['plugins']['get']('DataSchema'),_0x20e426['definitions']);_0x3d84aa['enableDefaultAttributesIntegration']('style');const _0x591b70=new Set();for(const _0x10fded of _0x553673['block']){const _0x5bacfa=_0x4db3dd['getGhsAttributeNameForElement'](_0x10fded['element']);_0x591b70['add'](_0x5bacfa);}const _0x3238db=new Set();for(const _0x2831dd of _0x553673['inline']){const _0x402921=_0x4db3dd['getGhsAttributeNameForElement'](_0x2831dd['element']);_0x3238db['add'](_0x402921);for(const _0x23665b of _0x2831dd['ghsAttributes'])_0x3238db['add'](_0x23665b);}for(const _0x2296b3 of _0x591b70)_0x3d84aa['registerBlockAttribute'](_0x2296b3),_0x3d84aa['descriptionFactory']['registerAttributeLabel'](_0x2296b3,o(_0x1f1716,'FORMAT_STYLE'));for(const _0x1056bc of _0x3238db)_0x3d84aa['registerInlineAttribute'](_0x1056bc),_0x3d84aa['descriptionFactory']['registerAttributeLabel'](_0x1056bc,o(_0x1f1716,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x450051=this['editor'],_0x2c56ab=_0x450051['locale'];_0x450051['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30ccdc=>{if('formatBlock'!=_0x30ccdc['type']&&'formatInline'!=_0x30ccdc['type'])return;const {data:_0x4d8ad5}=_0x30ccdc;return _0x4d8ad5&&'style'===_0x4d8ad5['commandName']?_0x4d8ad5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2c56ab,'*Set\x20format:*\x20%0',_0x4d8ad5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2c56ab,'*Remove\x20format:*\x20%0',_0x4d8ad5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x2be873{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4c3333){super(_0x4c3333),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x285108=this['editor'],_0x24db77=_0x285108['model']['document']['selection'];if(!_0x285108['plugins']['has']('TableEditing'))return;const _0x3a6817=_0x285108['locale'],_0x5d617d=_0x285108['plugins']['get']('TrackChangesEditing'),_0x51bb5c=_0x285108['plugins']['get']('TableUtils');_0x5d617d['descriptionFactory']['registerElementLabel']('table',_0x47bc2d=>o(_0x3a6817,'ELEMENT_TABLE',_0x47bc2d)),this['_setupColumnsRowsFixing'](),_0x5d617d['enableCommand']('insertTable'),_0x5d617d['enableCommand']('selectTableRow'),_0x5d617d['enableCommand']('selectTableColumn');for(const _0xcd21e0 of['insertTableRowAbove','insertTableRowBelow']){const _0x23ca7c=_0x285108['commands']['get'](_0xcd21e0);_0x5d617d['enableCommand'](_0xcd21e0,_0x14bc4b=>{_0x285108['model']['change'](_0x131dab=>{_0x14bc4b();const _0x1f7a61='above'===_0x23ca7c['order'],_0x230d1f=_0x51bb5c['getSelectionAffectedTableCells'](_0x24db77),_0x4ef701=_0x51bb5c['getRowIndexes'](_0x230d1f),_0x32f5ed=_0x1f7a61?_0x4ef701['first']-0x1:_0x4ef701['last']+0x1,_0x3d2c4b=_0x230d1f[0x0]['findAncestor']('table'),_0xea03ef=_0x51bb5c['createTableWalker'](_0x3d2c4b,{'startRow':_0x32f5ed,'endRow':_0x32f5ed}),_0xc62abf=Array['from'](_0xea03ef)['map'](_0x442401=>_0x131dab['createRangeOn'](_0x442401['cell']));_0x5d617d['markMultiRangeInsertion'](_0xc62abf,'tableRow');});});}for(const _0x452dcc of['insertTableColumnLeft','insertTableColumnRight']){const _0x141349=_0x285108['commands']['get'](_0x452dcc);_0x5d617d['enableCommand'](_0x452dcc,_0xb09f83=>{_0x285108['model']['change'](_0x1a6690=>{_0xb09f83();const _0x4cd591='left'===_0x141349['order'],_0x4e7e08=_0x51bb5c['getSelectionAffectedTableCells'](_0x24db77),_0xba1a18=_0x51bb5c['getColumnIndexes'](_0x4e7e08),_0xfa4aeb=_0x4cd591?_0xba1a18['first']-0x1:_0xba1a18['last']+0x1,_0xe73493=_0x4e7e08[0x0]['findAncestor']('table'),_0x1e5fdc=_0x51bb5c['createTableWalker'](_0xe73493,{'startRow':0x0,'column':_0xfa4aeb,'includeAllSlots':!0x1}),_0x5015f9=Array['from'](_0x1e5fdc)['map'](_0x30bf13=>_0x1a6690['createRangeOn'](_0x30bf13['cell']));_0x5d617d['markMultiRangeInsertion'](_0x5015f9,'tableColumn');});});}for(const _0xb5f4bd of['removeTableRow','removeTableColumn']){const _0x2702cd=_0xb5f4bd['substr'](0xb),_0x96db2a=_0x2702cd['toLowerCase'](),_0x58a76d=_0x96db2a['substr'](0x0,0x3)+'span',_0x418a3c='table'+_0x2702cd,_0x26df0c='min'+_0x2702cd,_0x47a8b1='max'+_0x2702cd;_0x5d617d['enableCommand'](_0xb5f4bd,()=>{_0x285108['model']['change'](_0x3430dc=>{const _0x39eab8=_0x51bb5c['getSelectionAffectedTableCells'](_0x24db77),_0x5c2c2e=_0x39eab8[0x0]['findAncestor']('table');let _0x819d8c;if('removeTableRow'==_0xb5f4bd){const _0x400107=_0x51bb5c['getRowIndexes'](_0x39eab8);_0x819d8c={'startRow':_0x400107['first'],'endRow':_0x400107['last'],'includeAllSlots':!0x0};}else{const _0x2f9a88=_0x51bb5c['getColumnIndexes'](_0x39eab8);_0x819d8c={'startColumn':_0x2f9a88['first'],'endColumn':_0x2f9a88['last'],'includeAllSlots':!0x0};}const _0x44b9fd=_0x51bb5c['createTableWalker'](_0x5c2c2e,_0x819d8c),_0x344c17=Array['from'](_0x44b9fd)['map'](({cell:_0x182b9f})=>_0x182b9f),_0x4d7dac=be(_0x344c17['filter'](_0x456160=>_0x456160['hasAttribute'](_0x58a76d))),_0x3d0a21=be(_0x344c17['filter'](_0x4efcce=>!_0x4efcce['hasAttribute'](_0x58a76d)))['map'](_0x30e411=>_0x3430dc['createRangeOn'](_0x30e411)),_0xbf0486=_0x5d617d['markMultiRangeDeletion'](_0x3d0a21,_0x418a3c);if(_0xbf0486&&('tableRow'==_0xbf0486['subType']||'tableColumn'==_0xbf0486['subType'])){const _0x323904=this['_getSuggestionCoords'](_0xbf0486);for(const _0x2e557e of _0x4d7dac){const _0x4a0b2d=_0x3430dc['createRangeOn'](_0x2e557e),_0xf00d1b=_0x51bb5c['getCellLocation'](_0x2e557e),_0x49a3fc=_0x2e557e['getAttribute'](_0x58a76d)-0x1,_0x441db1=_0x323904[_0x26df0c],_0x9b633=_0x323904[_0x47a8b1];_0x441db1<=_0xf00d1b[_0x96db2a]&&_0xf00d1b[_0x96db2a]+_0x49a3fc<=_0x9b633&&_0xbf0486['addRange'](_0x4a0b2d);}}});});}function _0x1bbb20(_0x46acbd){const _0x18ecfc=Array['from'](_0x24db77['getRanges']())['map'](_0x3c5c7b=>_0x3f00a1['fromRange'](_0x3c5c7b));_0x285108['model']['change'](_0x3df5e2=>{const _0x524171=_0x3df5e2['batch'];_0x46acbd=_0x46acbd['filter'](_0x5eb7a6=>'$graveyard'!=_0x5eb7a6['root']['rootName']),_0x3df5e2['setSelection'](_0x46acbd),_0x285108['commands']['get']('removeTableRow')['refresh'](),_0x285108['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x285108['model']['enqueueChange'](()=>{_0x285108['model']['enqueueChange'](_0x524171,_0x1b3a00=>{const _0x362ae9=_0x18ecfc['filter'](_0x13a79f=>'$graveyard'!=_0x13a79f['root']['rootName']);_0x362ae9['length']>0x0&&_0x1b3a00['setSelection'](_0x362ae9);for(const _0x3ede1d of _0x18ecfc)_0x3ede1d['detach']();});});});}function _0x37f8c7(_0x546175){_0x285108['model']['change'](_0xc5746e=>{const _0x41093b=Array['from'](_0x24db77['getRanges']())['map'](_0x38b558=>_0x3f00a1['fromRange'](_0x38b558)),_0x4c6aa1=[];for(const _0x48f0f8 of _0x546175)for(const _0x58c5f0 of _0x48f0f8['getItems']({'shallow':!0x0}))_0x4c6aa1['push'](_0x58c5f0);for(const _0x144948 of _0x4c6aa1)'$graveyard'!=_0x144948['root']['rootName']&&(_0xc5746e['setSelection'](_0xc5746e['createPositionAt'](_0x144948,0x0)),_0x285108['commands']['get']('removeTableColumn')['refresh'](),_0x285108['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1136a6=_0x41093b['filter'](_0x2d672a=>'$graveyard'!=_0x2d672a['root']['rootName']);_0x1136a6['length']>0x0&&_0xc5746e['setSelection'](_0x1136a6);for(const _0x101506 of _0x41093b)_0x101506['detach']();});}function _0x37b0ad(_0x2d079f,_0x27e01e){return _0x27e01e['every'](_0xbc9b8a=>_0x2d079f['some'](_0x4188bd=>_0x4188bd['end']['isEqual'](_0xbc9b8a['start'])||_0xbc9b8a['end']['isEqual'](_0x4188bd['start'])));}function _0x23734e(_0x24bf19,_0x538e36){return!_0x24bf19['some'](_0x1eeabd=>_0x538e36['some'](_0x105a03=>_0x1eeabd['isIntersecting'](_0x105a03)))&&_0x24bf19['some'](_0x22d723=>_0x538e36['some'](_0x30b428=>_0x22d723['end']['isTouching'](_0x30b428['start'])));}_0x285108['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x622290,_0x438821,_0x50bd18)=>{if(!_0x50bd18['options']['showSuggestionHighlights'])return;const _0x46f3b2=_0x438821['item'];if(!_0x46f3b2)return;const _0x312a11=_0x50bd18['mapper']['toViewElement'](_0x46f3b2);function _0x3febbf(_0xea43bc){return Array['isArray'](_0xea43bc)?_0xea43bc:[_0xea43bc];}_0x312a11&&'tableCell'===_0x46f3b2['name']&&_0x52e27(_0x312a11,_0x50bd18['writer'],(_0x133d93,_0x5e295f,_0x45be47)=>_0x45be47['addClass'](_0x3febbf(_0x5e295f['classes']),_0x133d93),(_0x5ecae5,_0x1c1c14,_0x173aa6)=>_0x173aa6['removeClass'](_0x3febbf(_0x1c1c14['classes']),_0x5ecae5));},{'priority':'highest'}),_0x5d617d['descriptionFactory']['registerDescriptionCallback'](_0x485ebe=>{if('insertion'!=_0x485ebe['type']&&'deletion'!=_0x485ebe['type'])return;const _0x32b5c9=_0x485ebe['getContainedElement']();if(null!=_0x32b5c9&&_0x32b5c9['is']('element','table')){if('insertion'==_0x485ebe['type']){const _0x30584b=_0x485ebe['getItems']()['filter'](_0x116364=>_0x116364['is']('$textProxy'))['map'](_0x5e2222=>_0x5e2222['data']);if(_0x30584b['length'])return{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x30584b['join']('\x20')+'\x22'))};}if('deletion'==_0x485ebe['type']){const _0x99fa0=_0x485ebe['getItems']()['filter'](_0x41830a=>_0x41830a['is']('$textProxy'))['map'](_0x361e11=>_0x361e11['data']);if(_0x99fa0['length'])return{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x99fa0['join']('\x20')+'\x22'))};}}}),_0x5d617d['descriptionFactory']['registerDescriptionCallback'](_0x246df1=>{if('tableRow'==_0x246df1['subType']){const _0x4b21cd=_0x246df1['getItems']()['filter'](_0x473047=>_0x473047['is']('$textProxy'))['map'](_0x576449=>_0x576449['data']),_0x45af35=this['_getSuggestionCoords'](_0x246df1),_0x2820b6=_0x45af35['maxRow']-_0x45af35['minRow']+0x1;if('insertion'==_0x246df1['type'])return _0x4b21cd['length']?{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2820b6,'\x22'+_0x4b21cd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_ROW',_0x2820b6))};if('deletion'==_0x246df1['type'])return _0x4b21cd['length']?{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2820b6,'\x22'+_0x4b21cd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_ROW',_0x2820b6))};}if('tableColumn'==_0x246df1['subType']){const _0x285805=_0x246df1['getItems']()['filter'](_0x37f15d=>_0x37f15d['is']('$textProxy'))['map'](_0x15baf7=>_0x15baf7['data']),_0x186e30=this['_getSuggestionCoords'](_0x246df1),_0x34ee44=_0x186e30['maxColumn']-_0x186e30['minColumn']+0x1;if('insertion'==_0x246df1['type'])return _0x285805['length']?{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ee44,'\x22'+_0x285805['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3a6817,'*Insert:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_COLUMN',_0x34ee44))};if('deletion'==_0x246df1['type'])return _0x285805['length']?{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ee44,'\x22'+_0x285805['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3a6817,'*Remove:*\x20%0',o(_0x3a6817,'ELEMENT_TABLE_COLUMN',_0x34ee44))};}}),_0x5d617d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1bbb20),_0x5d617d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1bbb20),_0x5d617d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x37f8c7),_0x5d617d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x37f8c7),_0x5d617d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x37b0ad),_0x5d617d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x37b0ad),_0x5d617d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x23734e),_0x5d617d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x23734e);}['_acceptFormatSuggestionCallbackFactory'](){const _0xe81e0d=this['editor'],_0xb52729=_0xe81e0d['model']['document']['selection'];return(_0x103f59,_0x2feecf)=>{_0xe81e0d['model']['change'](_0x568293=>{const {commandName:_0x548b95,commandParams:_0x548798}=_0x2feecf;let _0x1e1e1f=_0x103f59[0x0]['end']['nodeBefore'];_0x548798&&_0x548798[0x0]&&!0x1===_0x548798[0x0]['forceValue']&&(_0x1e1e1f=_0x103f59[0x0]['start']['nodeAfter']);const _0x22fd20=_0x568293['createRangeIn'](_0x1e1e1f);if('$graveyard'==_0x22fd20['root']['rootName'])return;const _0x20bb13=Array['from'](_0xb52729['getRanges']())['map'](_0x2a1df9=>_0x3f00a1['fromRange'](_0x2a1df9));_0x568293['setSelection'](_0x22fd20),_0xe81e0d['commands']['get'](_0x548b95)['refresh'](),_0x548798['push']({'forceDefaultExecution':!0x0}),_0xe81e0d['execute'](_0x548b95,..._0x548798);const _0x5adddc=_0x20bb13['filter'](_0x1be6b9=>'$graveyard'!=_0x1be6b9['root']['rootName']);_0x5adddc['length']>0x0&&_0x568293['setSelection'](_0x5adddc);for(const _0x49f91b of _0x20bb13)_0x49f91b['detach']();});};}['_getCoordsForCells'](_0x13e859){const _0x2756a9=this['editor']['plugins']['get']('TableUtils');let _0x125bd4=Number['MAX_SAFE_INTEGER'],_0x2af93d=Number['MIN_SAFE_INTEGER'],_0x2f8963=Number['MAX_SAFE_INTEGER'],_0x44ec64=Number['MIN_SAFE_INTEGER'];for(const _0x4ac7e7 of _0x13e859){if('$graveyard'==_0x4ac7e7['root']['rootName'])continue;const {row:_0x5d85c8,column:_0x2aa22e}=_0x2756a9['getCellLocation'](_0x4ac7e7),_0x40693f=_0x4ac7e7['hasAttribute']('rowspan')?_0x4ac7e7['getAttribute']('rowspan')-0x1:0x0,_0x252a76=_0x4ac7e7['hasAttribute']('colspan')?_0x4ac7e7['getAttribute']('colspan')-0x1:0x0;_0x125bd4=_0x5d85c8<_0x125bd4?_0x5d85c8:_0x125bd4,_0x2af93d=_0x5d85c8+_0x40693f>_0x2af93d?_0x5d85c8+_0x40693f:_0x2af93d,_0x2f8963=_0x2aa22e<_0x2f8963?_0x2aa22e:_0x2f8963,_0x44ec64=_0x2aa22e+_0x252a76>_0x44ec64?_0x2aa22e+_0x252a76:_0x44ec64;}return{'minRow':_0x125bd4,'maxRow':_0x2af93d,'minColumn':_0x2f8963,'maxColumn':_0x44ec64};}['_setupColumnsRowsFixing'](){const _0x160330=this['editor'],_0x386c38=_0x160330['plugins']['get']('TrackChangesEditing'),_0x154b33=_0x160330['plugins']['get']('TableUtils');_0x160330['model']['document']['on']('change:data',()=>{const _0x3a717f=Array['from'](_0x160330['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45e7bc,data:_0x2f7bd9}of _0x3a717f){const {group:_0x4aae10,id:_0x53b3ce,subType:_0x4edd1f}=_0x386c38['_splitMarkerName'](_0x45e7bc);if('suggestion'!=_0x4aae10)continue;if(null!=_0x2f7bd9['oldRange'])continue;const _0x37b23d=_0x386c38['getSuggestion'](_0x53b3ce);this['_tablePostFixingSubtypes']['includes'](_0x4edd1f)&&this['_tableSuggestions']['add'](_0x37b23d);}},{'priority':'low'});const _0x3db48d=(_0x28701b,_0x3ff145)=>{let _0x4ac6b3=!0x1;const _0x4db52e=_0x3ff145['createRangeOn'](_0x28701b),_0x2c382d=_0x28701b['findAncestor']('table'),_0x419b12=_0x154b33['getCellLocation'](_0x28701b);for(const _0x54c6f3 of this['_tableSuggestions']){const _0x24cb22=_0x54c6f3['subType'],_0x156b2c=_0x24cb22['startsWith']('tablePaste'),_0x193e57=_0x24cb22['substr'](_0x156b2c?0xa:0x5),_0x549ae7=_0x193e57['toLowerCase'](),_0x547bfc=_0x549ae7['substr'](0x0,0x3)+'span',_0x461dc8='min'+_0x193e57,_0xbd0a32='max'+_0x193e57;if(!_0x54c6f3['isInContent'])continue;if(_0x2c382d!=_0x54c6f3['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x54c6f3['isIntersectingWithRange'](_0x4db52e))continue;const _0x585950=_0x28701b['hasAttribute'](_0x547bfc)?_0x28701b['getAttribute'](_0x547bfc)-0x1:0x0,_0x22af8a=this['_getSuggestionCoords'](_0x54c6f3),_0x325315=_0x22af8a[_0x461dc8],_0x48946b=_0x22af8a[_0xbd0a32];_0x325315<=_0x419b12[_0x549ae7]&&_0x419b12[_0x549ae7]+_0x585950<=_0x48946b&&(_0x54c6f3['addRange'](_0x4db52e),_0x4ac6b3=!0x0);}return _0x4ac6b3;};_0x160330['model']['document']['registerPostFixer'](_0x227a6a=>{let _0x3f76c0=!0x1;for(const _0x5988e1 of _0x160330['model']['document']['differ']['getChanges']())if('insert'==_0x5988e1['type']){if('tableRow'==_0x5988e1['name']){for(const _0x23f268 of _0x5988e1['position']['nodeAfter']['getChildren']())_0x3f76c0=_0x3f76c0||_0x3db48d(_0x23f268,_0x227a6a);}else'tableCell'==_0x5988e1['name']&&(_0x3f76c0=_0x3f76c0||_0x3db48d(_0x5988e1['position']['nodeAfter'],_0x227a6a));}return _0x3f76c0;});}['_getSuggestionCoords'](_0x192eee){return this['_getCoordsForCells'](_0x192eee['getRanges']()['map'](_0x3a8b04=>_0x3a8b04['start']['nodeAfter']));}}function be(_0x245eb7){return Array['from'](new Set(_0x245eb7)['values']());}class vt extends _0x2be873{static get['requires'](){return[It];}['afterInit'](){const _0x35fa14=this['editor'],_0xe1f913=_0x35fa14['model']['document']['selection'],_0x549885=_0x35fa14['locale'];if(!_0x35fa14['plugins']['has']('TableEditing'))return;const _0x20b763=_0x35fa14['plugins']['get']('TrackChangesEditing'),_0xdcec64=_0x35fa14['plugins']['get']('TableUtils'),_0x433850=_0x35fa14['plugins']['get'](It);_0x433850['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x20b763['enableCommand']('mergeTableCells',()=>{const _0x129ee6=_0xdcec64['getSelectionAffectedTableCells'](_0x35fa14['model']['document']['selection']);_0x35fa14['model']['change'](()=>{_0x20b763['markMultiRangeBlockFormat'](_0x129ee6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x35fa14['commands']['get']('mergeTableCells')['on']('execute',(_0x486fe8,_0x4e8d43)=>{_0x35fa14['commands']['get']('trackChanges')['value']&&(_0x4e8d43['length']>0x0&&_0x4e8d43[_0x4e8d43['length']-0x1]&&_0x4e8d43[_0x4e8d43['length']-0x1]['forceDefaultExecution']||_0x20b763['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x486fe8['stop']());},{'priority':'highest'});for(const _0x453629 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x39f404=_0x35fa14['commands']['get'](_0x453629);_0x20b763['enableCommand'](_0x453629,()=>{const _0x509d18=_0x35fa14['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ad691=>_0x4ad691['is']('element','tableCell')),_0x4f98a6=_0x39f404['value'];_0x35fa14['model']['change'](()=>{_0x20b763['markMultiRangeBlockFormat']([_0x509d18,_0x4f98a6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x102776 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5d000b=_0x35fa14['commands']['get'](_0x102776);_0x20b763['enableCommand'](_0x102776,()=>{const _0x291f8d=_0xdcec64['getSelectionAffectedTableCells'](_0x35fa14['model']['document']['selection'])[0x0],_0x20c133=_0x291f8d['findAncestor']('table'),{column:_0x405ec4,row:_0x33dc26}=_0xdcec64['getCellLocation'](_0x291f8d);let _0x434a81=[];if('horizontally'==_0x5d000b['direction']){const _0x1cdc5b=_0xdcec64['createTableWalker'](_0x20c133,{'startRow':_0x33dc26,'endRow':_0x33dc26,'includeAllSlots':!0x0});_0x434a81=Array['from'](_0x1cdc5b)['map'](_0x4b5c7c=>_0x4b5c7c['cell']);}else{const _0x17a9c6=_0xdcec64['createTableWalker'](_0x20c133,{'column':_0x405ec4,'includeAllSlots':!0x0});_0x434a81=Array['from'](_0x17a9c6)['map'](_0x436339=>_0x436339['cell']);}_0x35fa14['model']['change'](_0x5a7074=>{_0x20b763['markBlockFormat'](_0x5a7074['createRangeOn'](_0x291f8d),{'commandName':_0x102776,'commandParams':[]},_0x434a81,_0x102776);});});}_0x20b763['descriptionFactory']['registerDescriptionCallback'](_0xcc9d93=>{if('formatBlock'!=_0xcc9d93['type']&&'formatInline'!=_0xcc9d93['type'])return;const {data:_0x1e2b40}=_0xcc9d93;return _0x1e2b40&&'mergeTableCells'==_0x1e2b40['commandName']?{'type':'format','content':o(_0x549885,'*Merge\x20cells*')}:void 0x0;}),_0x20b763['descriptionFactory']['registerDescriptionCallback'](_0x42e050=>{if('formatBlock'!=_0x42e050['type']&&'formatInline'!=_0x42e050['type'])return;const {data:_0x2ff899}=_0x42e050;return _0x2ff899?'splitTableCellVertically'==_0x2ff899['commandName']?{'type':'format','content':o(_0x549885,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2ff899['commandName']?{'type':'format','content':o(_0x549885,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x578df9=_0x433850['_acceptFormatSuggestionCallbackFactory']();for(const _0x11ff6a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x20b763['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x11ff6a,'accept',_0x578df9);for(const _0x593cf9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x20b763['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x593cf9,'accept',_0x578df9);_0x20b763['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x273f7d=>{_0x35fa14['model']['change'](_0x268265=>{const _0x351a41=Array['from'](_0xe1f913['getRanges']())['map'](_0x52f07e=>_0x3f00a1['fromRange'](_0x52f07e));_0x268265['setSelection'](_0x273f7d),_0x35fa14['commands']['get']('mergeTableCells')['refresh'](),_0x35fa14['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x54cb31=_0x351a41['filter'](_0x40a192=>'$graveyard'!=_0x40a192['root']['rootName']);_0x54cb31['length']>0x0&&_0x268265['setSelection'](_0x54cb31);for(const _0x59f04d of _0x351a41)_0x59f04d['detach']();});});for(const _0x53eadd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x19ce30=_0x35fa14['commands']['get'](_0x53eadd);_0x19ce30['on']('set:isEnabled',(_0x1f0f3c,_0x34048b,_0x405c6f)=>{if(_0x405c6f){const _0x5cd6e5=_0x35fa14['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x22820e=>_0x22820e['is']('element','tableCell'));this['_areMergableCells'](_0x19ce30['value'],_0x5cd6e5)||(_0x1f0f3c['return']=!0x1,_0x1f0f3c['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x30689c=this['editor']['commands']['get']('mergeTableCells'),_0x28922a=this['editor']['plugins']['get']('TableUtils');if(!_0x30689c['isEnabled'])return!0x1;const _0x566aa7=_0x28922a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x11fd5 of _0x566aa7)for(const _0x5ae60d of _0x566aa7)if(_0x11fd5!=_0x5ae60d&&!this['_areMergableCells'](_0x11fd5,_0x5ae60d))return!0x1;return!0x0;}['_areMergableCells'](_0x245f3d,_0x4224c5){const _0x1e8610=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10d3e6=this['editor']['model']['createRangeOn'](_0x245f3d),_0x30d8ed=this['editor']['model']['createRangeOn'](_0x4224c5),_0x975291=new Set(),_0x25e4f2=new Set();for(const _0x8d8c20 of _0x1e8610['getSuggestions']())if(('insertion'==_0x8d8c20['type']||'deletion'==_0x8d8c20['type']||'mergeTableCells'==_0x8d8c20['subType'])&&_0x8d8c20['isInContent']){for(const _0x946550 of _0x8d8c20['getRanges']())_0x946550['containsRange'](_0x10d3e6,!0x0)&&_0x975291['add'](_0x8d8c20['type']+':'+_0x8d8c20['author']['id']),_0x946550['containsRange'](_0x30d8ed,!0x0)&&_0x25e4f2['add'](_0x8d8c20['type']+':'+_0x8d8c20['author']['id']);}if(_0x975291['size']!=_0x25e4f2['size'])return!0x1;for(const _0x413eef of _0x975291)if(!_0x25e4f2['has'](_0x413eef))return!0x1;return!0x0;}}class Ct extends _0x2be873{static get['requires'](){return[It];}['afterInit'](){const _0x591807=this['editor'];if(!_0x591807['plugins']['has']('TableEditing'))return;const _0x1c7813=_0x591807['locale'],_0x33160a=_0x591807['plugins']['get']('TrackChangesEditing');_0x33160a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x33160a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x33160a['registerBlockAttribute']('headingRows'),_0x33160a['registerBlockAttribute']('headingColumns'),_0x33160a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1c7813,'FORMAT_HEADER_ROW')),_0x33160a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1c7813,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4f8ef2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x369a84=this['editor']['plugins']['get']('TableUtils'),_0x2ce712=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x51c830({showActiveMarker:_0x431243=!0x0,setDataAttribute:_0x50926a=!0x0}={}){return(_0x234f52,_0x5a624a,_0x5d0e08)=>{const {type:_0x490fe0,id:_0x2260f1}=_0x4f8ef2['_splitMarkerName'](_0x5a624a['markerName']),_0xdf2d4b=_0x4f8ef2['getSuggestion'](_0x2260f1),_0x1ea5bd=_0xdf2d4b['data'];if('formatBlock'!=_0xdf2d4b['type']||!_0x1ea5bd||'setTableColumnHeader'!=_0x1ea5bd['commandName'])return;if(_0x5a624a['item'])return void _0x234f52['stop']();if(!_0x5d0e08['consumable']['consume'](_0x5a624a['markerRange'],_0x234f52['name']))return;const _0x1fd130=_0x5a624a['markerRange']['start']['nodeAfter'],_0x1c0fcc=_0x5a624a['markerRange']['end']['nodeBefore'],_0x5da5f9=_0x1fd130['parent']['parent'],{column:_0x518dfd}=_0x369a84['getCellLocation'](_0x1fd130),{column:_0x53889d}=_0x369a84['getCellLocation'](_0x1c0fcc);for(let _0x3385cd=_0x518dfd;_0x3385cd<=_0x53889d;_0x3385cd++){const _0x2d164f=_0x369a84['createTableWalker'](_0x5da5f9,{'column':_0x3385cd,'includeAllSlots':!0x1});for(const _0x5d84be of _0x2d164f){const _0x3afd44=_0x5d84be['cell'],_0x249e5a=_0x5d0e08['mapper']['toViewElement'](_0x3afd44);_0x5d0e08['writer']['addClass']('ck-suggestion-marker-'+_0x490fe0,_0x249e5a),_0x50926a&&_0x5d0e08['writer']['setAttribute']('data-suggestion',_0x2260f1,_0x249e5a),_0x5d0e08['mapper']['bindElementToMarker'](_0x249e5a,_0x5a624a['markerName']),_0x431243&&(_0x4f8ef2['activeMarkers']['includes'](_0x5a624a['markerName'])?_0x5d0e08['writer']['addClass']('ck-suggestion-marker--active',_0x249e5a):_0x5d0e08['writer']['removeClass']('ck-suggestion-marker--active',_0x249e5a));}}};}_0x4f8ef2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2ce712),_0x4f8ef2['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2ce712),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x51c830(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x506373,_0x5c080a,_0x21893b)=>{_0x21893b['options']['showSuggestionHighlights']&&_0x51c830({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x506373,_0x5c080a,_0x21893b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4648c4,_0x5ca089,_0x571b9b)=>{const {type:_0x34bca7,id:_0x2e52ec}=_0x4f8ef2['_splitMarkerName'](_0x5ca089['markerName']),_0x288e54=_0x4f8ef2['getSuggestion'](_0x2e52ec),_0x1ebb3d=_0x288e54['data'];if('formatBlock'!=_0x288e54['type']||!_0x1ebb3d||'setTableColumnHeader'!=_0x1ebb3d['commandName'])return;const _0x4d6afd=_0x571b9b['mapper']['markerNameToElements'](_0x5ca089['markerName']);if(_0x4d6afd){for(const _0x45b778 of _0x4d6afd)_0x571b9b['writer']['removeClass']('ck-suggestion-marker-'+_0x34bca7,_0x45b778),_0x571b9b['writer']['removeClass']('ck-suggestion-marker--active',_0x45b778),_0x571b9b['writer']['removeAttribute']('data-suggestion',_0x45b778),_0x571b9b['mapper']['unbindElementFromMarkerName'](_0x45b778,_0x5ca089['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f2e2e=this['editor'],_0x5174e3=_0x1f2e2e['locale'];function _0x4734d0(_0x6b7cc0){return{'type':'format','content':o(_0x5174e3,'*Format:*\x20%0',_0x6b7cc0)};}_0x1f2e2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x236da9=>{if('formatBlock'!=_0x236da9['type'])return;const {data:_0x581b05}=_0x236da9;if(_0x581b05){if('setTableRowHeader'==_0x581b05['commandName']){const _0xa9c63a=_0x581b05['commandParams'][0x0]['forceValue'];return _0x4734d0(o(_0x5174e3,_0xa9c63a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x581b05['commandName']){const _0x13b43a=_0x581b05['commandParams'][0x0]['forceValue'];return _0x4734d0(o(_0x5174e3,_0x13b43a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x490e8c=>[_0x490e8c,null]));class _t extends _0x2be873{static get['requires'](){return[It];}['afterInit'](){const _0x4faba2=this['editor'];if(!_0x4faba2['plugins']['has']('TableClipboard'))return;const _0x22a85c=_0x4faba2['plugins']['get']('TrackChangesEditing'),_0x24cb5d=_0x4faba2['plugins']['get']('TableUtils'),_0x29252d=_0x4faba2['plugins']['get'](It),_0xeececf=_0x4faba2['plugins']['get']('TableClipboard');_0x29252d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4faba2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4faba2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x134ba4=null;_0x4faba2['model']['on']('insertContent',(_0x3f2ba6,_0xb154ae)=>{const [_0x341a73,_0x443fdd]=_0xb154ae,_0x10901c=_0xb154ae[_0xb154ae['length']-0x1];_0x10901c&&_0x10901c['forceDefaultExecution']||_0x22a85c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x46d4a3,_0x29c33b,_0x8cac5b,_0x106ada,_0x2af9e6){if(_0x29c33b&&!_0x29c33b['is']('documentSelection'))return!0x1;const _0x247d6d=_0x2af9e6['getTableIfOnlyTableInContent'](_0x46d4a3,_0x8cac5b);if(!_0x247d6d||!Re(_0x247d6d,void 0x0,_0x106ada))return!0x1;const _0x1bb16c=_0x106ada['getSelectionAffectedTableCells'](_0x8cac5b['document']['selection']);if(!_0x1bb16c['length'])return!0x1;const _0x212880=_0x1bb16c[0x0]['findAncestor']('table'),_0x5b61f9=_0x106ada['getRowIndexes'](_0x1bb16c),_0x53bb75=_0x106ada['getColumnIndexes'](_0x1bb16c),_0x4e1c46={'startRow':_0x5b61f9['first'],'endRow':_0x5b61f9['last'],'startColumn':_0x53bb75['first'],'endColumn':_0x53bb75['last']};return 0x1==_0x1bb16c['length']&&(_0x4e1c46['endRow']+=_0x106ada['getRows'](_0x247d6d)-0x1,_0x4e1c46['endColumn']+=_0x106ada['getColumns'](_0x247d6d)-0x1),Re(_0x212880,_0x4e1c46,_0x106ada);}(_0x341a73,_0x443fdd,_0x4faba2['model'],_0x24cb5d,_0xeececf)&&(_0x3f2ba6['stop'](),_0x134ba4={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4faba2['model']['change'](()=>{_0x4faba2['model']['insertContent'](_0xb154ae[0x0],_0xb154ae[0x1],_0xb154ae[0x2],{'forceDefaultExecution':!0x0});const _0x1144eb=_0x30a933(),{rowInsertionRanges:_0x2055bc,columnInsertionRanges:_0x38f234,insertionRanges:_0x5bc897,deletionRanges:_0x498784,cells:_0x4974fe}=_0x134ba4;_0x2055bc['length']&&_0x22a85c['markMultiRangeInsertion'](_0x2055bc,'tablePasteRow',{'tablePasteChainId':_0x1144eb}),_0x38f234['length']&&_0x22a85c['markMultiRangeInsertion'](_0x38f234,'tablePasteColumn',{'tablePasteChainId':_0x1144eb}),_0x5bc897['length']&&(_0x22a85c['markMultiRangeInsertion'](_0x5bc897,'tablePaste',{'tablePasteChainId':_0x1144eb,'skipNestingCheck':!0x0}),_0x5bc897['forEach'](_0x2d5faa=>_0x2d5faa['detach']?.())),_0x498784['length']&&(_0x22a85c['markMultiRangeDeletion'](_0x498784,'tablePaste',{'tablePasteChainId':_0x1144eb,'skipNestingCheck':!0x0}),_0x498784['forEach'](_0x58a668=>_0x58a668['detach']?.()));const _0x14dc41=_0x22a85c['markMultiRangeBlockFormat'](_0x4974fe['map'](({element:_0x359d53})=>_0x359d53),{'formatGroupId':_0x30a933()},[],'tablePasteCell',{'tablePasteChainId':_0x1144eb});if(_0x14dc41){const _0x5b2361=_0x14dc41['getMarkers'](),_0x2d2a6a=[];for(const {element:_0x106d56,attributes:_0x1a7741}of _0x4974fe){if(!_0x1a7741)continue;const _0x15464d=_0x4faba2['model']['createRangeOn'](_0x106d56),_0x44ebb6=_0x5b2361['find'](_0x27cfe9=>_0x27cfe9['getRange']()['isEqual'](_0x15464d));_0x44ebb6&&_0x2d2a6a['push']([_0x44ebb6['name'],_0x1a7741]);}_0x2d2a6a['length']&&_0x14dc41['setAttribute']('markerAttributes',Object['fromEntries'](_0x2d2a6a));}_0x134ba4=null;}));},{'priority':_0x55e6df['high']+0xa}),_0x4faba2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x20ea8c,_0x42066c)=>{const [_0x880487,_0x7034ab,,_0x2d5e89]=_0x42066c;if(!_0x134ba4)return;_0x20ea8c['stop']();const _0xa2880c=_0x880487['cell'],_0x56581c=_0x7034ab,_0x5a192d=ke(_0xa2880c),_0x21809c=ke(_0x56581c);_0x20ea8c['return']=_0xa2880c;let _0x444128=null,_0x3cdc37=null;if(_0x21809c||_0x5a192d){if(_0x5a192d&&!_0x21809c){_0x2d5e89['remove'](_0xa2880c['getChild'](0x0));for(const _0x1852bd of Array['from'](_0x56581c['getChildren']()))_0x2d5e89['insert'](_0x1852bd,_0xa2880c,'end');const _0x540a32=_0x134ba4['rowInsertionIndexes']['includes'](_0x880487['row']),_0x4dc031=_0x134ba4['columnInsertionIndexes']['includes'](_0x880487['column']);_0x540a32||_0x4dc031||(_0x444128=_0x3f00a1['fromRange'](_0x2d5e89['createRangeIn'](_0xa2880c)));}else _0x21809c&&!_0x5a192d&&(_0x3cdc37=_0x2d5e89['createRangeIn'](_0xa2880c));}else{const _0x3398ab=_0x2d5e89['createElement']('tableCellSuggestion'),_0x2932ed=_0x2d5e89['createElement']('tableCellSuggestion');_0x2d5e89['wrap'](_0x2d5e89['createRangeIn'](_0xa2880c),_0x2932ed),_0x2d5e89['insert'](_0x3398ab,_0xa2880c,0x0);for(const _0x19caff of Array['from'](_0x56581c['getChildren']()))_0x2d5e89['insert'](_0x19caff,_0x3398ab,'end');_0x444128=_0x3f00a1['fromRange'](_0x2d5e89['createRangeOn'](_0x3398ab)),_0x3cdc37=_0x3f00a1['fromRange'](_0x2d5e89['createRangeOn'](_0x2932ed));}const _0x553431=Array['from'](_0x56581c['getAttributes']())['filter'](([_0x12ed5a])=>Pe['includes'](_0x12ed5a));_0x134ba4['cells']['push']({'element':_0xa2880c,'attributes':_0x553431['length']?Object['fromEntries'](_0x553431):null}),_0x444128&&_0x134ba4['insertionRanges']['push'](_0x444128),_0x3cdc37&&_0x134ba4['deletionRanges']['push'](_0x3cdc37);},{'priority':'high'}),_0x24cb5d['on']('insertColumns',(_0xd5da56,_0x8f98af)=>{const [_0x5f2714,_0x572b1b={}]=_0x8f98af;if(!_0x134ba4)return;const _0x303ed8=_0x572b1b['at']||0x0,_0x4ccc48=_0x572b1b['columns']||0x1;_0x134ba4['columnInsertionIndexes']=new Array(_0x4ccc48)['fill'](_0x303ed8)['map']((_0x4768c1,_0xab8e62)=>_0x4768c1+_0xab8e62);for(const {cell:_0x5c2518}of _0x24cb5d['createTableWalker'](_0x5f2714,{'startColumn':_0x303ed8,'endColumn':_0x303ed8+_0x4ccc48-0x1}))_0x134ba4['columnInsertionRanges']['push'](_0x4faba2['model']['createRangeOn'](_0x5c2518));},{'priority':'low'}),_0x24cb5d['on']('insertRows',(_0x3bc739,_0x176253)=>{const [_0x27277f,_0xaf619={}]=_0x176253;if(!_0x134ba4)return;const _0x250e50=_0xaf619['at']||0x0,_0x153277=_0xaf619['rows']||0x1;_0x134ba4['rowInsertionIndexes']=new Array(_0x153277)['fill'](_0x250e50)['map']((_0x10e8fc,_0x3547d4)=>_0x10e8fc+_0x3547d4);for(const {cell:_0xed6989}of _0x24cb5d['createTableWalker'](_0x27277f,{'startRow':_0x250e50,'endRow':_0x250e50+_0x153277-0x1}))_0x134ba4['rowInsertionRanges']['push'](_0x4faba2['model']['createRangeOn'](_0xed6989));},{'priority':'low'}),_0x22a85c['descriptionFactory']['registerDescriptionCallback'](_0x9a525c=>{if(_0x9a525c['subType']&&_0x9a525c['subType']['startsWith']('tablePaste'))return _0x9a525c['previous']?{}:{'type':'insertion','content':o(_0x4faba2['locale'],'*Replace\x20table\x20cells*')};});const _0x3d7faf=()=>!0x1;for(const _0x1400fb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x22a85c['_suggestionFactory']['registerCustomCallback']('insertion',_0x1400fb,'join',_0x3d7faf),_0x22a85c['_suggestionFactory']['registerCustomCallback']('deletion',_0x1400fb,'join',_0x3d7faf),_0x22a85c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1400fb,'join',_0x3d7faf);_0x22a85c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3d7faf),_0x22a85c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xfc6fe1,_0x82d132,_0x3b64c6)=>{const _0x423e16=_0xfc6fe1['map'](_0x52c673=>_0x52c673['getContainedElement']())['filter'](_0xdc6156=>_0xdc6156),_0x2e0d42=new Map(_0x423e16['map'](_0x4165e9=>[_0x4165e9,null]));if(_0x134ba4){for(const {element:_0x5605f3,attributes:_0x31303e}of _0x134ba4['cells'])_0x31303e&&_0x2e0d42['set'](_0x5605f3,_0x31303e);}else{if(_0x3b64c6&&_0x3b64c6['markerAttributes'])for(const [_0x5049fa,_0x32766b]of Object['entries'](_0x3b64c6['markerAttributes'])){const _0x785423=_0x4faba2['model']['markers']['get'](_0x5049fa),_0x2fe4ba=_0x785423?_0x785423['getRange']()['getContainedElement']():null;_0x2fe4ba&&_0x2e0d42['set'](_0x2fe4ba,_0x32766b);}}_0x4faba2['model']['change'](_0x1b9231=>{for(const [_0x46e816,_0x5e1960]of _0x2e0d42)_0x1b9231['setAttributes']({...we,..._0x5e1960},_0x46e816);});});const _0x1fb9e7=(_0xf7cb4b,_0x3dbe65)=>{_0x22a85c['_suggestionFactory']['registerCustomCallback'](_0xf7cb4b,'tablePaste',_0x3dbe65,(_0x58256d,_0x351e0b,_0x4d071e)=>{_0x4faba2['model']['change'](_0x50a300=>{const _0x228340=[];for(const _0x14b1a1 of _0x58256d){const _0xc914d2=_0x14b1a1['start']['nodeAfter'];_0xc914d2['is']('element','tableCellSuggestion')&&_0x228340['push'](_0xc914d2);}_0x22a85c['_suggestionFactory']['getSuggestionCallback'](_0xf7cb4b,null,_0x3dbe65)(_0x58256d,_0x351e0b,_0x4d071e);for(const _0x3816c8 of _0x228340)'$graveyard'!=_0x3816c8['root']['rootName']&&_0x50a300['unwrap'](_0x3816c8);});});};_0x1fb9e7('insertion','accept'),_0x1fb9e7('insertion','discard'),_0x1fb9e7('deletion','accept'),_0x1fb9e7('deletion','discard'),_0x22a85c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x55ce6d=>{const _0x20c37a=_0x55ce6d['map'](_0x390a5e=>_0x390a5e['getContainedElement']()),_0x2ad610=_0x20c37a[0x0]['findAncestor']('table'),{minRow:_0x5c0ad0,maxRow:_0x311335}=_0x29252d['_getCoordsForCells'](_0x20c37a);_0x24cb5d['removeRows'](_0x2ad610,{'at':_0x5c0ad0,'rows':_0x311335-_0x5c0ad0+0x1});}),_0x22a85c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x45ffb8=>{const _0x4b250f=_0x45ffb8['map'](_0x297a60=>_0x297a60['getContainedElement']()),_0x2f2e57=_0x4b250f[0x0]['findAncestor']('table'),{minColumn:_0x9ed2da,maxColumn:_0x5f306e}=_0x29252d['_getCoordsForCells'](_0x4b250f);_0x24cb5d['removeColumns'](_0x2f2e57,{'at':_0x9ed2da,'columns':_0x5f306e-_0x9ed2da+0x1});});const _0x38e4ea=(_0x4b7f29,_0x17d49f)=>{if(!_0x17d49f['subType']||!_0x17d49f['subType']['startsWith']('tablePaste'))return;const _0x41e441=_0x17d49f['attributes']['tablePasteChainId'],_0x4b92bc=_0x22a85c['getSuggestions']()['filter'](_0x592899=>_0x592899['isInContent']&&_0x592899['attributes']&&_0x592899['attributes']['tablePasteChainId']==_0x41e441);_0x4b92bc['length']&&_0x17d49f['getAllAdjacentSuggestions']()['length']!=_0x4b92bc['length']&&_0x4b92bc['reduce']((_0x52c628,_0x56428c)=>(_0x52c628['next']=_0x56428c,_0x56428c['previous']=_0x52c628,_0x56428c));};function _0x574eec(_0x447bc4,_0x5035c4=!0x0){const {id:_0x281337,authorId:_0x27a4f9}=_0x22a85c['_splitMarkerName'](_0x447bc4['markerName']),_0x20da65=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x20832b=_0x22a85c['activeMarkers']['includes'](_0x447bc4['markerName']);return _0x20832b&&_0x20da65['push']('ck-suggestion-marker--active'),{'classes':_0x20da65,'attributes':{'data-suggestion':_0x281337,'data-author-id':_0x27a4f9},'priority':_0x20832b&&_0x5035c4?0xbc2:0xbb8};}_0x22a85c['on']('suggestionLoaded',_0x38e4ea,{'priority':'high'}),_0x22a85c['on']('suggestionUnloaded',_0x38e4ea,{'priority':'high'}),_0x4faba2['model']['document']['registerPostFixer'](()=>{let _0x43b259=!0x1;const _0x2515c5=Array['from'](_0x4faba2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb49faa,data:_0x407d74}of _0x2515c5){const {group:_0x466544,type:_0x49e1e2,id:_0x16c2eb}=_0x22a85c['_splitMarkerName'](_0xb49faa);if('suggestion'!=_0x466544||'deletion'!=_0x49e1e2||_0x407d74['oldRange'])continue;if(!_0x22a85c['hasSuggestion'](_0x16c2eb))continue;const _0x5a80bd=_0x22a85c['getSuggestion'](_0x16c2eb)['getRanges'](),_0x2bc5cd=_0x4faba2['plugins']['get']('Users')['me'];for(const _0x17eaec of _0x22a85c['getSuggestions']()){if(!_0x17eaec['isInContent']||_0x17eaec['author']!=_0x2bc5cd)continue;if('formatBlock'!=_0x17eaec['type']||'tablePasteCell'!=_0x17eaec['subType'])continue;if(_0x17eaec['getRanges']()['every'](_0x50e229=>_0x5a80bd['some'](_0x4d0b58=>_0x4d0b58['containsRange'](_0x50e229,!0x0)))){for(const _0x41a376 of _0x17eaec['getAllAdjacentSuggestions']())_0x41a376['isInContent']&&(_0x41a376['discard'](),_0x43b259=!0x0);}}}return _0x43b259;}),_0x4faba2['model']['document']['registerPostFixer'](_0x473278=>{const _0x22c3e2=_0x4faba2['commands']['get']('redo');if(!_0x22c3e2||!_0x22c3e2['_createdBatches']['has'](_0x473278['batch']))return!0x1;let _0x488717=!0x1;const _0x299fa9=_0x4faba2['plugins']['get']('Users')['me'],_0x3367c5=_0x4faba2['model']['document']['differ']['getChanges'](),_0x917086=Array['from'](_0x4faba2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x42f84f,data:_0x3103ec})=>{const {group:_0xb4962,subType:_0x29d8cd,authorId:_0x7fddbe}=_0x22a85c['_splitMarkerName'](_0x42f84f);return'suggestion'==_0xb4962&&'tablePaste'==_0x29d8cd&&_0x7fddbe==_0x299fa9['id']&&!_0x3103ec['oldRange'];});for(const _0x1c8cf1 of _0x3367c5){if('insert'!=_0x1c8cf1['type']||'tableCellSuggestion'!=_0x1c8cf1['name']||0x1!=_0x1c8cf1['length'])continue;const _0x1f5514=_0x473278['createRange'](_0x1c8cf1['position'],_0x1c8cf1['position']['getShiftedBy'](0x1));if(!_0x917086['find'](({data:_0x325d7e})=>_0x325d7e['newRange']['isEqual'](_0x1f5514))){for(const {name:_0x3c59ed,data:_0x50d592}of _0x917086)if(_0x1f5514['containsRange'](_0x50d592['newRange'])){_0x473278['updateMarker'](_0x3c59ed,{'range':_0x1f5514}),_0x488717=!0x0;break;}}}return _0x488717;}),_0x4faba2['model']['document']['registerPostFixer'](_0x7fbfb8=>{let _0x37358c=!0x1;const _0xf1cc5b=_0x4faba2['plugins']['get']('Users')['me'],_0x2a5b59=_0x22a85c['getSuggestions']()['filter'](_0x22aa0d=>_0x22aa0d['isInContent']&&_0x22aa0d['author']==_0xf1cc5b),_0x1db839=new Set(),_0x3a635c=new Set();for(const _0x56a7a1 of _0x2a5b59)if('tablePaste'==_0x56a7a1['subType'])for(const _0x532f9a of _0x56a7a1['getMarkers']()){const _0x5306b6=_0x532f9a['getRange']()['getContainedElement']();if(_0x5306b6){if(_0x5306b6['is']('element','tableCellSuggestion')&&ke(_0x5306b6)){_0x56a7a1['removeMarker'](_0x532f9a['name']),_0x1db839['add'](_0x5306b6),_0x37358c=!0x0;const _0x308cd3=_0x5306b6['nextSibling'],_0x43e3d7=_0x5306b6['previousSibling'],_0x57c498=_0x308cd3&&_0x308cd3['is']('element','tableCellSuggestion'),_0x521ebc=_0x43e3d7&&_0x43e3d7['is']('element','tableCellSuggestion');_0x57c498&&!_0x1db839['has'](_0x308cd3)&&_0x3a635c['add'](_0x308cd3),_0x521ebc&&!_0x1db839['has'](_0x43e3d7)&&_0x3a635c['add'](_0x43e3d7);}else _0x5306b6['is']('element','paragraph')&&_0x5306b6['isEmpty']&&(_0x56a7a1['removeMarker'](_0x532f9a['name']),_0x37358c=!0x0);}}else{if('tablePasteCell'==_0x56a7a1['subType']){if(!_0x56a7a1['attributes']||!_0x56a7a1['attributes']['tablePasteChainId'])continue;const _0x3acf45=_0x56a7a1['attributes']['markerAttributes'];if(_0x3acf45&&Object['keys'](_0x3acf45)['length'])continue;const _0x51fc1a=_0x56a7a1['attributes']['tablePasteChainId'];let _0x55e4a9=!0x0,_0x542750=!0x0;for(const _0x3126e2 of _0x2a5b59)if(_0x3126e2['subType']&&_0x3126e2['subType']['startsWith']('tablePaste')){if(!_0x3126e2['attributes']['tablePasteChainId']){_0x542750=!0x1;break;}if(_0x3126e2['id']!=_0x56a7a1['id']&&_0x3126e2['attributes']['tablePasteChainId']==_0x51fc1a){_0x55e4a9=!0x1;break;}}_0x542750&&_0x55e4a9&&(_0x56a7a1['removeMarkers'](),_0x37358c=!0x0);}}for(const _0x27d830 of _0x1db839)_0x7fbfb8['remove'](_0x27d830);for(const _0x1f9d12 of _0x3a635c)_0x7fbfb8['unwrap'](_0x1f9d12);return _0x37358c;}),_0x4faba2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5f537a=>_0x574eec(_0x5f537a),'converterPriority':'high'}),_0x4faba2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x120115,_0x39cf3d)=>_0x39cf3d['options']['showSuggestionHighlights']?_0x574eec(_0x120115,!0x1):null,'converterPriority':'high'});const _0x198574=_0x4faba2['editing']['view'];this['listenTo'](_0x198574['document'],'clipboardOutput',(_0x3f01fd,_0x2f89cb)=>{const _0x121027=[];for(const _0x18290 of _0x198574['createRangeIn'](_0x2f89cb['content'])['getItems']())_0x18290['is']('element','suggestion-td')&&_0x121027['push'](_0x18290);_0x198574['change'](_0x3ca658=>{for(const _0x403a44 of _0x121027)_0x3ca658['move'](_0x3ca658['createRangeIn'](_0x403a44),_0x3ca658['createPositionBefore'](_0x403a44)),_0x3ca658['remove'](_0x403a44);});});}}function ke(_0x400cbc){if(_0x400cbc['isEmpty'])return!0x0;const _0x2bf991=_0x400cbc['getChild'](0x0);return _0x2bf991['is']('element','paragraph')&&_0x2bf991['isEmpty'];}function Re(_0x295733,_0x5c6118={},_0x2b5a14){for(const {isAnchor:_0x40b3b5,cellHeight:_0x2b4c4a,cellWidth:_0x53327e}of _0x2b5a14['createTableWalker'](_0x295733,{'includeAllSlots':!0x0,..._0x5c6118}))if(!_0x40b3b5||0x1!=_0x2b4c4a||0x1!=_0x53327e)return!0x1;return!0x0;}class Nt extends _0x2be873{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x41ecba=this['editor']['plugins']['get']('TrackChangesEditing');_0x41ecba['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x41ecba['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x41ecba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41ecba['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x41ecba['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x41ecba['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2a4353,_0x15da52){const _0x2be0fb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37b83c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x6e959e=_0x15da52['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4e5efd=_0x37b83c['getColumnGroupElement'](_0x6e959e);let _0x4d62da=_0x4e5efd?_0x37b83c['getTableColumnsWidths'](_0x4e5efd):null,_0x116fd9=_0x6e959e['getAttribute']('tableWidth')||null;const _0xa4f0dc=_0x15da52['tableWidth']||_0x116fd9,_0x3f5f3d=_0x15da52['columnWidths']||_0x4d62da,_0x1db3e8=this['editor']['plugins']['get']('Users')['me'];for(const _0x353770 of _0x2be0fb['getSuggestions']()){const _0x26ac83=_0x353770['getContainedElement']();if('resizeTable'===_0x353770['subType']&&_0x26ac83===_0x6e959e){_0x353770['author']!==_0x1db3e8&&_0x353770['discard']();const _0x33b801=_0x353770['data']['commandParams'];_0x116fd9=_0x33b801[0x0]['tableWidth'],_0x4d62da=_0x33b801[0x0]['columnWidths'];break;}}_0x2a4353({'table':_0x6e959e,'tableWidth':_0xa4f0dc,'columnWidths':_0x3f5f3d}),_0x2be0fb['markBlockFormat'](_0x6e959e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x116fd9,'columnWidths':_0x4d62da}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa6d37e){if('formatBlock'!=_0xa6d37e['type']&&'formatInline'!=_0xa6d37e['type'])return;const {data:_0x1a400c}=_0xa6d37e;if(_0x1a400c&&'resizeTable'===_0x1a400c['formatGroupId']){const _0x54c7e7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x54c7e7)};}}}class Dt extends _0x2be873{['afterInit'](){const _0x2530bb=this['editor'];_0x2530bb['plugins']['has']('Template')&&_0x2530bb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2be873{['afterInit'](){const _0x53b200=this['editor'];if(!_0x53b200['commands']['get']('insertTableOfContents'))return;_0x53b200['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xc6958b=_0x53b200['plugins']['get']('TrackChangesEditing'),_0x4982bc=_0x53b200['locale'];_0xc6958b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x8fbc2f=>o(_0x4982bc,'ELEMENT_TABLE_OF_CONTENTS',_0x8fbc2f));}}class $t extends _0x2be873{['afterInit'](){const _0x541579=this['editor'];if(!_0x541579['plugins']['has']('Title'))return;const _0xa323af=_0x541579['plugins']['get']('TrackChangesEditing');_0xa323af['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x541579['locale'],'ELEMENT_TITLE')),_0x541579['model']['document']['registerPostFixer'](_0x4e79d7=>{let _0x45c3cb=!0x1;const _0x12352d=Array['from'](_0x541579['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x329a99,data:_0x42d89b}of _0x12352d){const {group:_0x1eb62f}=_0xa323af['_splitMarkerName'](_0x329a99);if('suggestion'!==_0x1eb62f||!_0x42d89b['newRange'])continue;const _0x4efdc1=_0x42d89b['newRange'],_0x3e33b7=_0x4efdc1['end']['nodeBefore'];if(!_0x3e33b7||!_0x3e33b7['is']('element','title-content'))continue;if(!_0x4efdc1['start']['isTouching'](_0x4efdc1['end']))continue;const _0x5f1c97=_0x541579['model']['schema']['getNearestSelectionRange'](_0x4efdc1['end'],'forward');if(_0x5f1c97&&_0x5f1c97['isCollapsed']){const _0x47b424=_0x4e79d7['createRange'](_0x4efdc1['start'],_0x5f1c97['start']);_0x47b424['isEqual'](_0x4efdc1)||(_0x4e79d7['updateMarker'](_0x329a99,{'range':_0x47b424}),_0x45c3cb=!0x0);}_0x45c3cb||(_0x4e79d7['removeMarker'](_0x329a99),_0x45c3cb=!0x0);}return _0x45c3cb;});}}class Bt extends _0x2be873{['afterInit'](){const _0x34ae0a=this['editor'],_0x240262=_0x34ae0a['plugins']['get']('TrackChangesEditing');_0x34ae0a['plugins']['has']('UndoEditing')&&(_0x240262['enableCommand']('undo'),_0x240262['enableCommand']('redo'));}}class xt extends _0x2be873{static get['requires'](){return[It];}['afterInit'](){const _0x60deca=this['editor'];if(!_0x60deca['plugins']['has']('TableCaptionEditing'))return;_0x60deca['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x2be873{['tableProperties'];['tableCellProperties'];constructor(_0xab463){super(_0xab463),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 _0x3c0b86=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1baa93 of this['tableProperties'])_0x3c0b86['enableCommand'](_0x1baa93,(_0x19a177,_0x1eab7a)=>{const _0x442975=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1baa93,[_0x442975],this['tableProperties'],'tableProperties',_0x19a177,_0x1eab7a);});_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3c0b86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x542e82,_0x355ddd)=>this['handleDiscardAction'](this['tableProperties'],_0x542e82,_0x355ddd)),_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x410656 of this['tableCellProperties'])_0x3c0b86['enableCommand'](_0x410656,(_0x4e3105,_0x468221)=>{const _0x1dae7b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x410656,_0x1dae7b,this['tableCellProperties'],'tableCellProperties',_0x4e3105,_0x468221);});_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3c0b86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x45c6d7,_0x4ea63c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x45c6d7,_0x4ea63c)),_0x3c0b86['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3c0b86['descriptionFactory']['registerDescriptionCallback'](_0x445920=>this['handleSuggestionDescription'](_0x445920));}['_handlePropertyChange'](_0x2d00c7,_0x5b1285,_0x51008a,_0x1d63e6,_0x3650e7,_0xc69ede){const _0x548cf5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc69ede['batch'],()=>{for(const _0x235c35 of _0x5b1285){if(this['_getSuggestion'](_0x235c35,_0x1d63e6))_0x3650e7(_0xc69ede);else{const _0x490179={};for(const _0x420298 of _0x51008a){const _0x6bb3e=_0x235c35['getAttribute'](_0x420298);void 0x0!==_0x6bb3e&&(_0x490179[_0x420298]=_0x6bb3e);}_0x3650e7(_0xc69ede),_0x548cf5['markBlockFormat'](_0x235c35,{'commandParams':[_0x490179]},[],_0x1d63e6);}}});}['handleDiscardAction'](_0x1eb96a,_0x1e3ddc,_0x72758f){const _0x4eb560=_0x1e3ddc[0x0]['start']['nodeAfter'],_0x1b51f3=_0x72758f['commandParams'][0x0];this['editor']['model']['change'](_0x4d6ad7=>{for(const _0x44e642 of _0x1eb96a)void 0x0!==_0x1b51f3[_0x44e642]?_0x4d6ad7['setAttribute'](_0x44e642,_0x1b51f3[_0x44e642],_0x4eb560):_0x4d6ad7['removeAttribute'](_0x44e642,_0x4eb560);});}['handleSuggestionDescription'](_0x1e0cb2){if(_0x1e0cb2['data'])switch(_0x1e0cb2['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'](_0x17d7ba,_0x870d26){const _0x3f8591=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x325eea of _0x3f8591['getSuggestions']({'skipNotAttached':!0x0})){const _0x20de14=_0x325eea['getContainedElement']();if(_0x325eea['subType']===_0x870d26&&_0x20de14===_0x17d7ba)return _0x325eea;}return null;}}const m='$elementName';class p extends _0x2be873{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x10e3b2,_0x1b3abf,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(_0x3e2940){function _0x32ae33(_0xf399a){return _0xf399a['map'](_0x559b17=>String['fromCharCode'](_0x559b17))['join']('');}super(_0x3e2940),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4695e2,_0x3187cb,_0x1938a0,_0x202047)=>{this['_model']['change'](()=>{for(const _0x331ffe of[..._0x202047,..._0x1938a0])this['_model']['markers']['has'](_0x331ffe)&&_0x3e2940['editing']['reconvertMarker'](_0x331ffe);});}),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']=_0x3e2940['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(),_0x3e2940['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3e2940['config']['get']('trackChanges.trackFormatChanges'),_0x3e2940['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3e2940['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3e2940,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x32ae33([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x32ae33([0x34,0x30,0x34,0x38,0x32,0x30,0x33,0x32]);}['init'](){const _0x59435a=this['editor'],_0x848bc3=(_0x4d469a,_0x3b0496)=>{if('attribute'!=_0x4d469a)return'ck-suggestion-marker-'+_0x4d469a;const _0x1c973e=_0x3b0496['split']('|')[0x0];return this['_isBlockAttribute'](_0x1c973e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x59435a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1f4ba1=>{const {id:_0x5ea544,authorId:_0x58df76,type:_0x71ff31,subType:_0x23e26c}=this['_splitMarkerName'](_0x1f4ba1['markerName']),_0x49f652=['ck-suggestion-marker',_0x848bc3(_0x71ff31,_0x23e26c)];let _0x34538a=0xbb8;return this['activeMarkers']['includes'](_0x1f4ba1['markerName'])&&(_0x49f652['push']('ck-suggestion-marker--active'),_0x34538a=0xbc2),'deletion'==_0x71ff31&&(_0x34538a+=0x5),{'classes':_0x49f652,'attributes':{'data-suggestion':_0x5ea544,'data-author-id':_0x58df76},'priority':_0x34538a};}}),_0x59435a['conversion']['for']('dataDowncast')['add'](_0x2949e2=>{_0x2949e2['on']('addMarker:suggestion',(_0x46df8d,_0x5cf658,_0x27655f)=>{if(!_0x27655f['options']['showSuggestionHighlights'])return;const _0xc5aea=_0x5cf658['item'];if(!_0xc5aea)return;const _0xa706a5=_0x27655f['mapper']['toViewElement'](_0xc5aea);_0x59435a['model']['schema']['isObject'](_0xc5aea)&&_0xa706a5&&!_0xa706a5['getCustomProperty']('widget')&&_0xa706a5['is']('containerElement')&&_0x4e21a2(_0xa706a5,_0x27655f['writer']);},{'priority':'high'});}),_0x59435a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x289959,_0x16efd7)=>{if(!_0x16efd7['options']['showSuggestionHighlights'])return null;const {type:_0x237ce4,subType:_0x26540d}=this['_splitMarkerName'](_0x289959['markerName']);return{'classes':['ck-suggestion-marker',_0x848bc3(_0x237ce4,_0x26540d)],'priority':0xbb8};}});const _0x404145=({showActiveMarkers:_0x42fa9c=!0x0,isAttributeSuggestion:_0x30c4f8=!0x1}={})=>(_0x4cfd74,_0x21f138,_0x47b46f)=>{if(!_0x21f138['item'])return;const {id:_0x2cee0d,authorId:_0x4534b7}=this['_splitMarkerName'](_0x21f138['markerName']);if(_0x30c4f8){const _0x371a5c=this['_suggestions']['get'](_0x2cee0d),_0x5c7153=this['_getAttributeKey'](_0x371a5c);if(!this['_isBlockAttribute'](_0x5c7153))return;}if(_0x21f138['item']['is']('selection'))return void _0x47b46f['consumable']['consume'](_0x21f138['item'],_0x4cfd74['name']);const _0x23d845=_0x47b46f['mapper']['toViewElement'](_0x21f138['item']);if(_0x21f138['item']['is']('element')&&_0x59435a['model']['schema']['isBlock'](_0x21f138['item'])&&!_0x23d845['getCustomProperty']('addHighlight')){_0x47b46f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x23d845),_0x47b46f['writer']['setAttribute']('data-suggestion',_0x2cee0d,_0x23d845),_0x47b46f['writer']['setAttribute']('data-author-id',_0x4534b7,_0x23d845),_0x47b46f['mapper']['bindElementToMarker'](_0x23d845,_0x21f138['markerName']),_0x42fa9c&&(this['activeMarkers']['includes'](_0x21f138['markerName'])?_0x47b46f['writer']['addClass']('ck-suggestion-marker--active',_0x23d845):_0x47b46f['writer']['removeClass']('ck-suggestion-marker--active',_0x23d845));for(const _0x21a753 of _0x59435a['model']['createRangeIn'](_0x21f138['item'])['getItems']())_0x47b46f['consumable']['consume'](_0x21a753,_0x4cfd74['name']);_0x47b46f['consumable']['consume'](_0x21f138['item'],_0x4cfd74['name']);}};_0x59435a['conversion']['for']('dataDowncast')['add'](_0x1d5752=>{_0x1d5752['on']('addMarker:suggestion:formatBlock',(_0xf421e9,_0x4f28ec,_0x4dd83e)=>{_0x4dd83e['options']['showSuggestionHighlights']&&_0x404145({'showActiveMarkers':!0x1})(_0xf421e9,_0x4f28ec,_0x4dd83e);},{'priority':'highest'});}),_0x59435a['conversion']['for']('dataDowncast')['add'](_0x1b154e=>{_0x1b154e['on']('addMarker:suggestion:attribute',(_0x5332fa,_0x3e5278,_0x2ea542)=>{_0x2ea542['options']['showSuggestionHighlights']&&_0x404145({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5332fa,_0x3e5278,_0x2ea542);},{'priority':'highest'});}),_0x59435a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xdaec85,_0xcf9447)=>_0xcf9447['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xdaec85['substr'](0xb)}}),_0x59435a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2f2578,{writer:_0x48c402})=>{let _0x440f75='suggestion:'+_0x2f2578['getAttribute']('suggestion-type')+':'+_0x2f2578['getAttribute']('id');return _0x2f2578['getAttribute']('marker-count')&&(_0x440f75+=':'+_0x2f2578['getAttribute']('marker-count')),_0x48c402['createElement']('$marker',{'data-name':_0x440f75});}}),_0x59435a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x59435a['conversion']['for']('editingDowncast')['add'](_0x59e220=>{_0x59e220['on']('addMarker:suggestion:formatBlock',_0x404145(),{'priority':'high'});}),_0x59435a['conversion']['for']('editingDowncast')['add'](_0x99c108=>{_0x99c108['on']('addMarker:suggestion:attribute',_0x404145({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x59435a['conversion']['for']('editingDowncast')['add'](_0x2fcaec=>{_0x2fcaec['on']('removeMarker:suggestion:formatBlock',(_0x5518d7,_0x488ef7,_0x4bcbf2)=>{const _0x300337=_0x4bcbf2['mapper']['markerNameToElements'](_0x488ef7['markerName']);if(_0x300337){for(const _0x59f557 of _0x300337)_0x59f557['getCustomProperty']('addHighlight')||(_0x4bcbf2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x59f557),_0x4bcbf2['writer']['removeAttribute']('data-suggestion',_0x59f557),_0x4bcbf2['writer']['removeAttribute']('data-author-id',_0x59f557),_0x4bcbf2['mapper']['unbindElementFromMarkerName'](_0x59f557,_0x488ef7['markerName']));}},{'priority':'high'});}),_0x59435a['conversion']['for']('editingDowncast')['add'](_0x513496=>{_0x513496['on']('removeMarker:suggestion:attribute',(_0x40e921,_0x44cbb3,_0x1dff05)=>{const _0x2217e6=_0x1dff05['mapper']['markerNameToElements'](_0x44cbb3['markerName']);if(!_0x2217e6)return;const {id:_0x5d2267}=this['_splitMarkerName'](_0x44cbb3['markerName']),_0x51edc1=this['_suggestions']['get'](_0x5d2267),_0x229ab7=this['_getAttributeKey'](_0x51edc1);if(this['_isBlockAttribute'](_0x229ab7)){for(const _0x253438 of _0x2217e6)_0x253438['getCustomProperty']('addHighlight')||(_0x1dff05['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x253438),_0x1dff05['writer']['removeAttribute']('data-suggestion',_0x253438),_0x1dff05['writer']['removeAttribute']('data-author-id',_0x253438),_0x1dff05['mapper']['unbindElementFromMarkerName'](_0x253438,_0x44cbb3['markerName']));}},{'priority':'high'});}),_0x59435a['model']['document']['registerPostFixer'](_0x39f4b4=>{let _0x30569f=!0x1;const _0x2beafc=Array['from'](_0x59435a['model']['document']['differ']['getChangedMarkers']()),_0x4d8988=new Set();for(const {name:_0x9806a4,data:_0x19b49d}of _0x2beafc){const {group:_0x5ea698,type:_0x3f11f6,subType:_0x1c73eb,id:_0x39aaa7}=this['_splitMarkerName'](_0x9806a4);if('suggestion'!==_0x5ea698)continue;const _0x2fa2e1=this['_suggestions']['get'](_0x39aaa7);if(null!=_0x19b49d['newRange']){'formatInline'==_0x3f11f6&&(_0x30569f=_0x30569f||Ut(_0x19b49d['newRange'],_0x9806a4,_0x39f4b4,_0x59435a['model']['schema']));const _0x4095c3='attribute'==_0x3f11f6&&this['_isBlockAttribute'](_0x1c73eb['split']('|')[0x0]);if(_0x19b49d['newRange']['isCollapsed']||'$graveyard'==_0x19b49d['newRange']['root']['rootName']||'formatBlock'==_0x3f11f6&&!Ft(_0x19b49d['newRange'])||_0x4095c3&&!Ft(_0x19b49d['newRange'])||'deletion'==_0x3f11f6&&!(!Vt(_0x504d6e=_0x19b49d['newRange'])&&!function(_0x478041){return _0x478041['start']['parent']==_0x478041['end']['nodeBefore']&&_0x478041['start']['isAtEnd'];}(_0x504d6e)))_0x39f4b4['removeMarker'](_0x9806a4),_0x30569f=!0x0;else{if(!_0x2fa2e1||!_0x2fa2e1['isInContent'])continue;if(_0x19b49d['newRange']&&_0x19b49d['oldRange']&&_0x19b49d['newRange']['isEqual'](_0x19b49d['oldRange']))continue;_0x4d8988['add'](_0x2fa2e1);}}}var _0x504d6e;return _0x4d8988['size']>0x0&&(_0x30569f=!!this['_joinWithAdjacentSuggestions'](_0x4d8988)||_0x30569f),_0x30569f;}),_0x59435a['model']['document']['registerPostFixer'](_0x26df6d=>{let _0x3a877c=!0x1;for(const _0x41b6e7 of _0x59435a['model']['document']['differ']['getChanges']())if('insert'==_0x41b6e7['type'])for(const _0x3b9151 of this['_suggestions']['values']()){if(_0x3b9151['isMultiRange']||!_0x3b9151['isInContent'])continue;const _0x1dbcea='formatBlock'==_0x3b9151['type'],_0x1f7867=this['_getAttributeKey'](_0x3b9151),_0x13e78b=_0x1f7867&&this['_isBlockAttribute'](_0x1f7867);if(!_0x1dbcea&&!_0x13e78b)continue;const _0x519a67=_0x3b9151['getFirstRange']();if(_0x519a67['start']['parent']!=_0x519a67['end']['parent']&&!_0x519a67['end']['isAtEnd']){const _0x52575c=_0x59435a['model']['createPositionAt'](_0x519a67['start']['nodeAfter'],'end'),_0x2b6a56=_0x59435a['model']['createRange'](_0x519a67['start'],_0x52575c);_0x26df6d['updateMarker'](_0x3b9151['getFirstMarker'](),{'range':_0x2b6a56}),_0x3a877c=!0x0;}}return _0x3a877c;}),_0x59435a['model']['document']['registerPostFixer'](_0x1dd203=>this['_processAttributeChanges'](_0x1dd203)),_0x59435a['model']['document']['registerPostFixer'](_0x2a0ccb=>!_0x2a0ccb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2a0ccb)),_0x59435a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x59435a['model']['document']['on']('change:data',(_0x4fd9a1,_0x350a8d)=>{if(!_0x350a8d['isLocal']||_0x350a8d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2e21fe=_0x59435a['model']['document']['differ']['getChanges']();if(0x0==_0x2e21fe['length'])return;const _0x31de74=[],_0x35a54d=_0x2e21fe['filter'](_0x3c9303=>'attribute'==_0x3c9303['type']),_0x2b8c1b=_0x2e21fe['filter'](_0x30164e=>'insert'==_0x30164e['type']&&'$text'!=_0x30164e['name']);for(const _0x5f20b8 of _0x35a54d)this['_isRegisteredAttribute'](_0x5f20b8['attributeKey'])&&_0x31de74['push']({'key':_0x5f20b8['attributeKey'],'newValue':_0x5f20b8['attributeNewValue'],'oldValue':_0x5f20b8['attributeOldValue'],'range':Pt(_0x5f20b8['range'],_0x59435a['model'])});for(const _0x261ed2 of _0x2b8c1b){if('rename'!=_0x261ed2['action']&&'refresh'!=_0x261ed2['action'])continue;const _0xadce43=Lt(_0x261ed2['position']['nodeAfter'],_0x59435a['model']),_0x28d66a=_0x261ed2['before'];'rename'==_0x261ed2['action']&&_0x31de74['push']({'key':m,'newValue':_0x261ed2['name'],'oldValue':_0x28d66a['name'],'range':_0xadce43});for(const [_0x3933e8,_0x4b4765]of _0x28d66a['attributes']){if(!this['_isRegisteredAttribute'](_0x3933e8))continue;const _0x56e27e=_0x261ed2['attributes']['get'](_0x3933e8);_0x4b4765!==_0x56e27e&&_0x31de74['push']({'key':_0x3933e8,'newValue':_0x56e27e,'oldValue':_0x4b4765,'range':_0xadce43});}for(const [_0x2e0057,_0xa8fe83]of _0x261ed2['attributes'])this['_isRegisteredAttribute'](_0x2e0057)&&(_0x28d66a['attributes']['has'](_0x2e0057)||_0x31de74['push']({'key':_0x2e0057,'newValue':_0xa8fe83,'oldValue':null,'range':_0xadce43}));}0x0!=_0x31de74['length']&&_0x59435a['model']['enqueueChange'](_0x350a8d,_0x43454f=>{const _0x10c47f=_0x30a933();for(const {range:_0xeba509,key:_0x1b579a,oldValue:_0x10b28c,newValue:_0x562f37}of _0x31de74)this['markAttributeChange'](_0xeba509,_0x1b579a,_0x10b28c,_0x562f37,{'groupId':_0x10c47f});this['_reduceExistingSuggestions'](_0x43454f,_0x31de74);});},{'priority':'lowest'}),_0x59435a['model']['markers']['on']('update:suggestion',(_0x225fd3,_0x3ca94a,_0x567fcc)=>{if(null==_0x567fcc){const {id:_0x534a5b}=this['_splitMarkerName'](_0x3ca94a['name']),_0x153c1b=this['_suggestions']['get'](_0x534a5b);_0x153c1b&&_0x153c1b['addMarkerName'](_0x3ca94a['name']);}}),_0x59435a['model']['document']['on']('change:data',()=>{const _0x675caf=Array['from'](_0x59435a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2931bf=>'suggestion'===this['_splitMarkerName'](_0x2931bf['name'])['group']);if(0x0===_0x675caf['length'])return;_0x675caf['sort']((_0x3050d5,_0x299793)=>{const _0x2e157b=_0x3050d5['data']['oldRange'],_0x2c6e33=_0x299793['data']['oldRange'];return null===_0x2e157b&&null===_0x2c6e33?0x0:null===_0x2e157b&&null!==_0x2c6e33?-0x1:null!==_0x2e157b&&null===_0x2c6e33?0x1:_0x2e157b['start']['isBefore'](_0x2c6e33['start'])?-0x1:0x1;});const _0x3c6754=new Set(),_0x24c7e3=new Set();for(const {name:_0x1f5c54,data:_0x506aa9}of _0x675caf){const {id:_0x40c8b7}=this['_splitMarkerName'](_0x1f5c54);if(null===_0x506aa9['oldRange']){const _0x4a2c36=this['_handleNewSuggestionMarker'](_0x1f5c54);_0x24c7e3['add'](_0x4a2c36);}else{const _0x5c6b9e=this['_suggestions']['get'](_0x40c8b7);null!==_0x506aa9['newRange']||_0x5c6b9e['isInContent']?(_0x3c6754['add'](_0x5c6b9e['head']),_0x24c7e3['add'](_0x5c6b9e)):this['_removeSuggestion'](_0x5c6b9e);}}_0x24c7e3['size']>0x0&&this['_refreshSuggestionsChain'](_0x24c7e3);for(const _0x9be876 of _0x3c6754)this['fire']('suggestionChanged',_0x9be876);}),_0x59435a['model']['on']('applyOperation',(_0x197bd7,_0x1ea16d)=>{const _0x54b2d7=_0x1ea16d[0x0];if(!this['_suggestions']['size'])return;if(!_0x54b2d7['isDocumentOperation'])return;if(_0x54b2d7['batch']['isUndo']||!_0x54b2d7['batch']['isLocal'])return;let _0x201d4b,_0x12514c;switch(_0x54b2d7['type']){case'insert':_0x201d4b=_0x59435a['model']['createPositionAt'](_0x54b2d7['position']),_0x12514c=_0x201d4b['getShiftedBy'](_0x54b2d7['howMany']);break;case'split':_0x201d4b=_0x59435a['model']['createPositionAt'](_0x54b2d7['splitPosition']),_0x12514c=_0x59435a['model']['createPositionAt'](_0x54b2d7['moveTargetPosition']);break;case'move':_0x201d4b=_0x59435a['model']['createPositionAt'](_0x54b2d7['targetPosition']),_0x12514c=_0x201d4b['getShiftedBy'](_0x54b2d7['howMany']);break;default:return;}const _0x5db81b=_0x59435a['model']['createRange'](_0x201d4b,_0x12514c);_0x59435a['model']['change'](()=>{for(const {suggestion:_0x4abffe,meta:_0x20ec95}of this['_findSuggestions'](_0x5db81b)){if(_0x4abffe['isMultiRange'])continue;if('formatInline'==_0x4abffe['type'])continue;const _0x3d11a3=this['_getAttributeKey'](_0x4abffe);if(_0x3d11a3&&this['_isBlockAttribute'](_0x3d11a3)&&'split'!=_0x54b2d7['type'])continue;const _0x2d9454=_0x4abffe['data']&&_0x4abffe['data']['multipleBlocks'];('formatBlock'!=_0x4abffe['type']||'split'==_0x54b2d7['type']&&!_0x2d9454)&&(_0x20ec95['containsRangeInObject']||'insertion'==_0x4abffe['type']&&_0x20ec95['isOwn']||_0x4abffe['getFirstRange']()['containsRange'](_0x5db81b)&&this['_breakSuggestionMarker'](_0x4abffe,_0x201d4b,_0x12514c));}});},{'priority':'lowest'}),_0x59435a['model']['on']('deleteContent',(_0x460f9e,_0x44011f)=>{const _0x2c36e5=_0x44011f[0x0],_0x12af47=_0x44011f[0x1];if(_0x12af47&&_0x12af47['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2c36e5['isCollapsed'])return;const _0x5a1e7d=_0x59435a['model']['schema'],{start:_0x82fec3,end:_0x1ae6cb}=_0x2c36e5['getFirstRange'](),_0x4a5a9b=_0x82fec3['nodeAfter']&&_0x5a1e7d['isLimit'](_0x82fec3['nodeAfter'])?null:_0x5a1e7d['getNearestSelectionRange'](_0x82fec3,'forward'),_0x2846a5=_0x1ae6cb['nodeBefore']&&_0x5a1e7d['isLimit'](_0x1ae6cb['nodeBefore'])?null:_0x5a1e7d['getNearestSelectionRange'](_0x1ae6cb,'backward'),_0x5649ca=_0x59435a['model']['createRange'](_0x4a5a9b?_0x4a5a9b['start']:_0x82fec3,_0x2846a5?_0x2846a5['end']:_0x1ae6cb);_0x59435a['model']['change'](_0x105251=>{this['markDeletion'](_0x5649ca);const _0x155019=_0x59435a['model']['schema']['getNearestSelectionRange'](_0x5649ca['start']);_0x2c36e5['is']('documentSelection')?_0x105251['setSelection'](_0x155019):_0x2c36e5['setTo'](_0x155019);}),_0x460f9e['stop']();},{'priority':_0x55e6df['normal']+0xa}),_0x59435a['model']['on']('insertContent',(_0x2ae9b9,_0x1fc317)=>{const _0x5ea7d8=_0x1fc317[_0x1fc317['length']-0x1];_0x5ea7d8&&_0x5ea7d8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x59435a['model']['change'](()=>{let _0x2ece01=_0x59435a['model']['insertContent'](_0x1fc317[0x0],_0x1fc317[0x1],_0x1fc317[0x2],{'forceDefaultExecution':!0x0});if(!_0x2ece01)return;_0x2ae9b9['return']=_0x2ece01['clone']();const _0x498bcb=_0x2ece01['end']['nodeBefore'],_0x5d310f=_0x59435a['model']['schema'];_0x498bcb&&_0x5d310f['isBlock'](_0x498bcb)&&!_0x5d310f['isObject'](_0x498bcb)&&(_0x2ece01=_0x59435a['model']['createRange'](_0x2ece01['start'],_0x59435a['model']['createPositionAt'](_0x498bcb,'end'))),this['markInsertion'](_0x2ece01);}),_0x2ae9b9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x22406c=new x(_0x59435a,this['_suggestions']);_0x59435a['commands']['add']('acceptSuggestion',_0x22406c),this['enableCommand']('acceptSuggestion');const _0x14ee8f=new R(_0x59435a,this['_suggestions']);_0x59435a['commands']['add']('discardSuggestion',_0x14ee8f),this['enableCommand']('discardSuggestion'),_0x59435a['commands']['add']('acceptAllSuggestions',new E(_0x59435a,_0x22406c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x59435a['commands']['add']('discardAllSuggestions',new E(_0x59435a,_0x14ee8f,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x59435a['commands']['add']('acceptSelectedSuggestions',new O(_0x59435a,_0x22406c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x59435a['commands']['add']('discardSelectedSuggestions',new O(_0x59435a,_0x14ee8f,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x152070=_0x59435a['plugins']['get']('CommentsRepository');this['listenTo'](_0x152070,'addComment',(_0x2c750d,{threadId:_0x3d9287})=>{const _0x384031=this['_suggestions']['get'](_0x3d9287);_0x384031&&_0x384031['commentThread']&&0x1===_0x384031['commentThread']['length']&&this['_updateSuggestionData'](_0x3d9287,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x152070,'removeComment',(_0x214558,{threadId:_0x2eb95e})=>{const _0xe6c4b8=this['_suggestions']['get'](_0x2eb95e);_0xe6c4b8&&_0xe6c4b8['commentThread']&&!_0xe6c4b8['commentThread']['length']&&this['_updateSuggestionData'](_0x2eb95e,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x439359){if(this['_adapter'])throw new _0x9ee824('track-changes-adapter-already-set',this);this['_adapter']=_0x439359;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xf566b1=!0x1,toJSON:_0x44d4e6=!0x1}={}){const _0x5b4c2e=[];for(const _0x41f032 of this['_suggestions']['values']())_0xf566b1&&!_0x41f032['isInContent']||_0x5b4c2e['push'](_0x41f032);return _0x44d4e6?_0x5b4c2e['map'](_0x4fd1d0=>_0x4fd1d0['toJSON']()):_0x5b4c2e;}['getSuggestion'](_0x5b0cc8){const _0x549e79=this['_suggestions']['get'](_0x5b0cc8);if(!_0x549e79)throw new _0x9ee824('track-changes-suggestion-not-found',this);return _0x549e79;}['hasSuggestion'](_0x409bcf){return this['_suggestions']['has'](_0x409bcf);}['addSuggestionData'](_0x5bc7bf){const {authorId:_0x29eff7,id:_0x3918dd,attributes:_0x40e592}=_0x5bc7bf,[_0x488699,_0x497917]=_0x5bc7bf['type']['split'](':'),_0x23287e=this['_suggestions']['get'](_0x3918dd)||this['_createSuggestion'](_0x488699,_0x497917,_0x3918dd,_0x29eff7,_0x40e592);if(this['_addThreadToSuggestion'](_0x23287e),this['_checkSuggestionCorrectness'](_0x23287e,_0x488699,_0x497917||null,_0x29eff7),_0x23287e['createdAt']=_0x5bc7bf['createdAt'],_0x23287e['_isDataLoaded']=!0x0,_0x40e592&&_0x40e592['@external']){const _0x401f41=_0x40e592['@external'],_0x4fc9c7=this['_getExternalAuthor'](_0x401f41['authorName']);_0x23287e['authoredAt']=_0x401f41['createdAt'],_0x23287e['author']=_0x4fc9c7,_0x23287e['isExternal']=!0x0;}else _0x23287e['authoredAt']=_0x5bc7bf['createdAt'];switch(_0x5bc7bf['data']&&(_0x23287e['data']=_0x5bc7bf['data']),_0x5bc7bf['attributes']&&(_0x23287e['attributes']=_0x5bc7bf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x23287e['_saved']=!0x0),this['_suggestionState']['get'](_0x23287e)){case'notReady':this['_suggestionState']['set'](_0x23287e,'dataReady');break;case'markerReady':_0x23287e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x23287e])),this['_refreshSuggestionsChain'](new Set([_0x23287e])),this['_suggestionState']['set'](_0x23287e,'ready'),this['fire']('suggestionLoaded',_0x23287e)):this['_suggestionState']['set'](_0x23287e,'removed');}return _0x23287e;}['acceptSuggestion'](_0x2588ff){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x395905 of _0x2588ff['getAllAdjacentSuggestions']())_0x395905['accept']();});});}['discardSuggestion'](_0xc7bf0f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x200944 of _0xc7bf0f['getAllAdjacentSuggestions']())_0x200944['discard']();});});}['enableCommand'](_0x30eaf5,_0xfcd18c){const _0x40143e=this['editor']['commands']['get'](_0x30eaf5);if(!_0x40143e)throw new _0x9ee824('track-changes-command-not-found',this,{'commandName':_0x30eaf5});if(this['_enabledCommands']['has'](_0x40143e))throw new _0x9ee824('track-changes-enable-command-twice',this,{'commandName':_0x30eaf5});this['_enabledCommands']['add'](_0x40143e),_0xfcd18c&&_0x40143e['on']('execute',(_0x6a285,_0x568f4b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x568f4b['length']>0x0&&_0x568f4b[_0x568f4b['length']-0x1]&&_0x568f4b[_0x568f4b['length']-0x1]['forceDefaultExecution']?_0x568f4b['pop']():(_0x6a285['return']=_0xfcd18c((..._0x4ecac2)=>_0x40143e['execute'](..._0x4ecac2,{'forceDefaultExecution':!0x0}),..._0x568f4b),_0x6a285['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x56c4ca){let _0xc0533,_0x11b23f;const _0x483712=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xc0533=_0x56c4ca();}catch(_0x3565e1){_0x11b23f=_0x3565e1;}return _0x483712||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x11b23f&&_0x9ee824['rethrowUnexpectedError'](_0x11b23f,this),_0xc0533;}['markInsertion'](_0x54fa98,_0x35fbe5=null,_0x57aace={}){if(_0x54fa98['isCollapsed'])return null;const _0x2f4af1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3b7f2f,meta:_0x2f6f91}of this['_findSuggestions'](_0x54fa98,'insertion'))if(_0x2f6f91['isOwn']){if(!_0x2f6f91['isNextTo']){if(_0x2f6f91['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x3b7f2f,_0x57aace))continue;return _0x3b7f2f;}if(qt(_0x3b7f2f,_0x57aace))return _0x3b7f2f;this['_breakSuggestionMarker'](_0x3b7f2f,_0x54fa98['start'],_0x54fa98['end']);break;}if(_0x35fbe5==_0x3b7f2f['subType']&&qt(_0x3b7f2f,_0x57aace)){const _0x2f7f41=_0x3b7f2f['getFirstRange']();return _0x2f7f41['start']['isEqual'](_0x54fa98['end'])?this['_setSuggestionRange'](_0x3b7f2f,this['_model']['createRange'](_0x54fa98['start'],_0x2f7f41['end'])):this['_setSuggestionRange'](_0x3b7f2f,this['_model']['createRange'](_0x2f7f41['start'],_0x54fa98['end'])),_0x3b7f2f;}}const _0x5420cd=_0x30a933(),_0x44c38d=_0x2f4af1['id'],_0x5b5810=_0x35fbe5?'insertion:'+_0x35fbe5:'insertion',_0x4f014d=this['_setSuggestionData']({'id':_0x5420cd,'type':_0x5b5810,'createdAt':new Date(),'authorId':_0x44c38d,'attributes':_0x57aace});return this['_addSuggestionMarker'](_0x5b5810,_0x5420cd,_0x44c38d,_0x54fa98),_0x4f014d;}['markMultiRangeInsertion'](_0x41d68b,_0x40ed52='multi',_0x3855f1={}){const _0x2f1a76=this['editor']['plugins']['get']('Users')['me'],_0x38a236=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x40ed52,'join');for(const _0x216c56 of this['getSuggestions']())if(_0x216c56['author']['id']==_0x2f1a76['id']&&'insertion'==_0x216c56['type']&&_0x216c56['subType']==_0x40ed52&&qt(_0x216c56,_0x3855f1)&&(_0x38a236(_0x216c56['getRanges'](),_0x41d68b)||_0x38a236(_0x41d68b,_0x216c56['getRanges']()))){for(const _0x22d72d of _0x41d68b)_0x216c56['addRange'](_0x22d72d);return _0x216c56;}for(const {suggestion:_0x3314d2,meta:_0x689d8b}of this['_findSuggestions'](_0x41d68b,'insertion')){if(!_0x689d8b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x689d8b['containsRangeInObject'])continue;if(!qt(_0x3314d2,_0x3855f1))continue;let _0x3f9a7c=!0x0;for(const _0x34d770 of _0x3314d2['getRanges']())for(const _0x5e7388 of _0x41d68b)if(!_0x34d770['containsRange'](_0x5e7388)){_0x3f9a7c=!0x1;break;}if(_0x3f9a7c)return _0x3314d2;}const _0x333108=_0x30a933(),_0xd93ebc=_0x2f1a76['id'],_0xfa9aa0='insertion:'+_0x40ed52,_0x3e9710=this['_setSuggestionData']({'id':_0x333108,'type':_0xfa9aa0,'createdAt':new Date(),'authorId':_0xd93ebc,'attributes':_0x3855f1});for(const _0x49bb80 of _0x41d68b)this['_addSuggestionMarker'](_0xfa9aa0,_0x333108,_0xd93ebc,_0x49bb80,u['getMultiRangeId']());return _0x3e9710;}['markInlineFormat'](_0x1ec3fe,_0x3fd4be,_0x9a1c80=null,_0x2b2d0a={}){if(_0x9a1c80=_0x9a1c80||Gt(_0x3fd4be),_0x1ec3fe['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1c2eda=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x9a1c80,'accept');return this['forceDefaultExecution'](()=>_0x1c2eda([_0x1ec3fe],_0x3fd4be,_0x2b2d0a)),null;}const _0x9b6fd2=this['editor']['plugins']['get']('Users')['me'],_0x2ce6f2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x161276,meta:_0x1f62ea}of this['_findSuggestions'](_0x1ec3fe,'insertion'))_0x1f62ea['isOwn']&&!_0x1f62ea['isInsideObject']&&_0x2ce6f2['push'](..._0x161276['getRanges']());}const _0x2d8ad5=function(_0x430f5c,_0x5351c3){const _0x5035cb=[];for(const _0x17aa61 of _0x5351c3){const _0x4faba9=_0x430f5c['getIntersection'](_0x17aa61);_0x4faba9&&_0x5035cb['push'](_0x4faba9);}return _0x5035cb;}(_0x1ec3fe,_0x2ce6f2),_0xb65b3c=function(_0xfe55ab,_0x57e72f){const _0xae9c96=[_0xfe55ab];for(const _0x2cab64 of _0x57e72f){let _0x46af01=0x0;for(;_0x46af01<_0xae9c96['length'];){const _0x3e0b8b=_0xae9c96[_0x46af01]['getDifference'](_0x2cab64);_0xae9c96['splice'](_0x46af01,0x1,..._0x3e0b8b),_0x46af01+=_0x3e0b8b['length'];}}return _0xae9c96;}(_0x1ec3fe,_0x2ce6f2);_0x2d8ad5['length']&&this['_model']['change'](()=>{for(const _0x26069b of _0x2d8ad5){const _0x4a3efa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x9a1c80,'accept');this['forceDefaultExecution'](()=>_0x4a3efa([_0x26069b],_0x3fd4be,_0x2b2d0a));}});for(const _0x10eb67 of _0xb65b3c){let _0x4819ad=null,_0x5bb607=_0x10eb67['start'],_0x3704b6=_0x10eb67['end'];for(const {suggestion:_0x330418,meta:_0x30a5c4}of this['_findSuggestions'](_0x10eb67,'formatInline')){if(!_0x30a5c4['isOwn'])continue;if(_0x330418['subType']!=_0x9a1c80)continue;if(!qt(_0x330418,_0x2b2d0a))continue;const _0x5515af=_0x330418['getFirstRange']();if(_0x5515af['containsRange'](_0x10eb67,!0x0))return null;_0x5bb607=_0x5bb607['isBefore'](_0x5515af['start'])?_0x5bb607:_0x5515af['start'],_0x3704b6=_0x3704b6['isAfter'](_0x5515af['end'])?_0x3704b6:_0x5515af['end'],_0x4819ad?_0x5515af['start']['isBefore'](_0x4819ad['getFirstRange']()['start'])?(_0x4819ad['removeMarkers'](),_0x4819ad=_0x330418):_0x330418['removeMarkers']():_0x4819ad=_0x330418;}const _0x24302f=this['_model']['createRange'](_0x5bb607,_0x3704b6);if(_0x4819ad)this['_setSuggestionRange'](_0x4819ad,_0x24302f);else{const _0x2940a9=_0x30a933(),_0x48ce21=_0x9b6fd2['id'];this['_setSuggestionData']({'id':_0x2940a9,'type':'formatInline:'+_0x9a1c80,'data':_0x3fd4be,'createdAt':new Date(),'authorId':_0x48ce21,'attributes':_0x2b2d0a}),this['_addSuggestionMarker']('formatInline:'+_0x9a1c80,_0x2940a9,_0x48ce21,_0x24302f);}}return null;}['markBlockFormat'](_0x5c4ee6,_0x5483fc,_0x50eb42=[],_0x29df7a=null,_0x14bb03={}){_0x5483fc['formatGroupId']||(_0x5483fc['formatGroupId']=_0x5483fc['commandName']),_0x5483fc['multipleBlocks']=_0x5c4ee6['is']('range'),_0x29df7a=_0x29df7a||Gt(_0x5483fc);const _0x3e8ff9=_0x50eb42['map'](_0x159608=>Lt(_0x159608,this['_model'])),_0x1cf7be=_0x5c4ee6['is']('range')?_0x5c4ee6:Lt(_0x5c4ee6,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4dfae8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29df7a,'accept');return this['forceDefaultExecution'](()=>_0x4dfae8([_0x1cf7be],_0x5483fc,_0x14bb03)),null;}_0x3e8ff9['push'](_0x1cf7be);let _0x2002d4=!0x0;for(const _0xaccd86 of _0x3e8ff9)if(!this['_rangeIsInLocalUserInsertion'](_0xaccd86)){_0x2002d4=!0x1;break;}if(_0x2002d4&&'always'!==this['_trackFormatChanges']){const _0x147b4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x29df7a,'accept');return this['forceDefaultExecution'](()=>_0x147b4f([_0x1cf7be],_0x5483fc,_0x14bb03)),null;}let _0x13b034=null,_0x3a5ea7=_0x1cf7be['start'],_0x5838a1=_0x1cf7be['end'];for(const {suggestion:_0x24b833,meta:_0x4c2616}of this['_findSuggestions'](_0x1cf7be,'formatBlock')){if(!_0x4c2616['isOwn'])continue;if(_0x4c2616['isNextTo']||_0x4c2616['containsRangeInObject']||_0x4c2616['isInsideObject'])continue;if(_0x24b833['data']['formatGroupId']!=_0x5483fc['formatGroupId'])continue;if(!qt(_0x24b833,_0x14bb03))continue;const _0x29a079=_0x24b833['getFirstRange']();if(_0x24b833['subType']==_0x29df7a){if(_0x29a079['containsRange'](_0x1cf7be,!0x0))return null;_0x3a5ea7=_0x3a5ea7['isBefore'](_0x29a079['start'])?_0x3a5ea7:_0x29a079['start'],_0x5838a1=_0x5838a1['isAfter'](_0x29a079['end'])?_0x5838a1:_0x29a079['end'],_0x13b034?_0x29a079['start']['isBefore'](_0x13b034['getFirstRange']()['start'])?(_0x13b034['removeMarkers'](),_0x13b034=_0x24b833):_0x24b833['removeMarkers']():_0x13b034=_0x24b833;}else{const _0x33fa3f=_0x1cf7be['getIntersection'](_0x29a079);this['_cutOutSuggestionMarker'](_0x24b833,_0x33fa3f);}}const _0x5c6b0f=this['editor']['plugins']['get']('Users')['me'],_0xbc82b6=_0x30a933(),_0x5458ca=_0x5c6b0f['id'];if(_0x13b034)return this['_setSuggestionRange'](_0x13b034,this['_model']['createRange'](_0x3a5ea7,_0x5838a1)),_0x13b034;{const _0x173cae=this['_setSuggestionData']({'id':_0xbc82b6,'type':'formatBlock:'+_0x29df7a,'data':_0x5483fc,'createdAt':new Date(),'authorId':_0x5458ca,'attributes':_0x14bb03});return this['_addSuggestionMarker']('formatBlock:'+_0x29df7a,_0xbc82b6,_0x5458ca,this['_model']['createRange'](_0x3a5ea7,_0x5838a1)),_0x173cae;}}['markMultiRangeBlockFormat'](_0x20992e,_0x23eefa,_0x4c6a3f=[],_0x1cbf73=null,_0x4e2340={}){_0x23eefa['formatGroupId']||(_0x23eefa['formatGroupId']=_0x23eefa['commandName']);const _0x5a3e0f=_0x20992e[0x0];_0x23eefa['multipleBlocks']=_0x5a3e0f['is']('range'),_0x1cbf73=_0x1cbf73||Gt(_0x23eefa);const _0x54e2dd=_0x4c6a3f['map'](_0x395c22=>Lt(_0x395c22,this['_model'])),_0xcf69df=_0x5a3e0f['is']('range')?_0x20992e:_0x20992e['map'](_0x4e385a=>Lt(_0x4e385a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3c5bc8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1cbf73,'accept');return this['forceDefaultExecution'](()=>_0x3c5bc8(_0xcf69df,_0x23eefa,_0x4e2340)),null;}_0x54e2dd['push'](..._0xcf69df);let _0x2d0632=!0x0;for(const _0x1f2289 of _0x54e2dd)if(!this['_rangeIsInLocalUserInsertion'](_0x1f2289)){_0x2d0632=!0x1;break;}if(_0x2d0632&&'always'!==this['_trackFormatChanges']){const _0x115251=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1cbf73,'accept');return this['forceDefaultExecution'](()=>_0x115251(_0xcf69df,_0x23eefa,_0x4e2340)),null;}const _0x4277af=this['editor']['plugins']['get']('Users')['me'];for(const _0x159fb3 of this['getSuggestions']()){if(_0x159fb3['author']['id']!=_0x4277af['id'])continue;if('formatBlock'!=_0x159fb3['type']||_0x159fb3['data']['formatGroupId']!=_0x23eefa['formatGroupId'])continue;if(!qt(_0x159fb3,_0x4e2340))continue;const _0x2d7551=_0x159fb3['subType']==_0x1cbf73;for(let _0x44487a=0x0;_0x44487a<_0xcf69df['length'];_0x44487a++){const _0x1eca95=_0xcf69df[_0x44487a];for(const _0xed8a39 of _0x159fb3['getMarkers']()){const _0x151e2c=_0xed8a39['getRange']();if(_0x1eca95['isEqual'](_0x151e2c)){_0x2d7551?(_0xcf69df['splice'](_0x44487a,0x1),_0x44487a--):_0x159fb3['removeMarker'](_0xed8a39['name']);break;}}}}if(0x0==_0xcf69df['length'])return null;const _0x3f6f47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1cbf73,'join');for(const _0x1cecc7 of this['getSuggestions']())if(_0x1cecc7['author']['id']==_0x4277af['id']&&'formatBlock'==_0x1cecc7['type']&&_0x1cecc7['data']['formatGroupId']==_0x23eefa['formatGroupId']&&_0x1cecc7['subType']==_0x1cbf73&&qt(_0x1cecc7,_0x4e2340)&&(_0x3f6f47(_0x1cecc7['getRanges'](),_0xcf69df)||_0x3f6f47(_0xcf69df,_0x1cecc7['getRanges']()))){for(const _0x4a9cb7 of _0xcf69df)_0x1cecc7['addRange'](_0x4a9cb7);return _0x1cecc7;}const _0x5749d0=_0x30a933(),_0x30d641=_0x4277af['id'],_0x402657='formatBlock:'+_0x1cbf73,_0x484546=this['_setSuggestionData']({'id':_0x5749d0,'type':_0x402657,'data':_0x23eefa,'createdAt':new Date(),'authorId':_0x30d641,'attributes':_0x4e2340});for(const _0x1d5692 of _0xcf69df)this['_addSuggestionMarker'](_0x402657,_0x5749d0,_0x30d641,_0x1d5692,u['getMultiRangeId']());return _0x484546;}['markDeletion'](_0xeab110,_0x106148=null,_0x2fa97c={}){if(_0xeab110['isCollapsed'])return null;const _0x47deae=this['editor']['plugins']['get']('Users')['me'],_0x22ac16=new _0x3f00a1(_0xeab110['start'],_0xeab110['end']);for(const {suggestion:_0x4ec1f1,meta:_0x31c9d5}of this['_findSuggestions'](_0x22ac16,'insertion'))if(_0x31c9d5['isOwn']&&!_0x31c9d5['isNextTo']){if(_0x4ec1f1['isMultiRange']){const _0xf3d571=_0x4ec1f1['getRanges']()['filter'](_0x5f2efc=>'$graveyard'!=_0x5f2efc['root']['rootName']);_0xf3d571['every'](_0x277f62=>_0x22ac16['containsRange'](_0x277f62,!0x0))&&_0x4ec1f1['discard']();if(_0xf3d571['some'](_0x384d93=>_0x384d93['containsRange'](_0x22ac16,!0x0))){const _0x155487=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x106148,'accept');return this['forceDefaultExecution'](()=>_0x155487([_0x22ac16],null,_0x2fa97c)),null;}}else{const _0x7c2bb3=_0x22ac16['getIntersection'](_0x4ec1f1['getFirstRange']());null!==_0x7c2bb3&&_0x4ec1f1['_onDiscard']([_0x7c2bb3],null,_0x2fa97c);}}if(_0x22ac16['detach'](),_0x22ac16['isCollapsed']||'$graveyard'==_0x22ac16['root']['rootName'])return null;let _0x53d914=null,_0x3bb891=_0x22ac16['start'],_0x4f1bfa=_0x22ac16['end'];const _0xb523a9=this['_findSuggestions'](_0x22ac16,'deletion');for(const {suggestion:_0x43eb97,meta:_0xfb5d92}of _0xb523a9){const _0x3d2c01=this['_model']['createRange'](_0x3bb891,_0x4f1bfa);if(_0xfb5d92['isOwn']&&(this['_mergeNestedSuggestions']||!_0xfb5d92['containsRangeInObject']&&!_0xfb5d92['isInsideObject'])){if(_0x43eb97['isMultiRange']){if(!qt(_0x43eb97,_0x2fa97c))continue;let _0x7151a=!0x0;for(const _0x3450c3 of _0x43eb97['getRanges']()){if(_0x3450c3['containsRange'](_0x3d2c01,!0x0))return _0x43eb97;_0x3d2c01['containsRange'](_0x3450c3)||(_0x7151a=!0x1);}_0x7151a&&_0x43eb97['discard']();}else{const _0xe9543e=_0x43eb97['getFirstRange']();if(_0xe9543e['containsRange'](_0x3d2c01,!0x0))return _0x43eb97;if(!qt(_0x43eb97,_0x2fa97c)){_0x3d2c01['containsRange'](_0xe9543e)?_0x43eb97['removeMarkers']():_0xe9543e['containsPosition'](_0x3bb891)?_0x3bb891=_0xe9543e['end']:_0xe9543e['containsPosition'](_0x4f1bfa)&&(_0x4f1bfa=_0xe9543e['start']);continue;}_0x3bb891=_0x3bb891['isBefore'](_0xe9543e['start'])?_0x3bb891:_0xe9543e['start'],_0x4f1bfa=_0x4f1bfa['isAfter'](_0xe9543e['end'])?_0x4f1bfa:_0xe9543e['end'],_0x2fa97c=Object['assign']({},_0x43eb97['attributes']),_0x53d914?_0xe9543e['start']['isBefore'](_0x53d914['getFirstRange']()['start'])?(_0x53d914['removeMarkers'](),_0x53d914=_0x43eb97):_0x43eb97['removeMarkers']():_0x53d914=_0x43eb97;}}}if(_0x53d914)return this['_setSuggestionRange'](_0x53d914,this['_model']['createRange'](_0x3bb891,_0x4f1bfa)),_0x53d914;{const _0x50d1f8=_0x30a933(),_0x26d02e=this['_model']['createRange'](_0x3bb891,_0x4f1bfa),_0x2d7314=_0x47deae['id'],_0x170827=_0x106148?'deletion:'+_0x106148:'deletion',_0x100ca0=this['_setSuggestionData']({'id':_0x50d1f8,'type':_0x170827,'createdAt':new Date(),'authorId':_0x2d7314,'attributes':_0x2fa97c});return this['_addSuggestionMarker'](_0x170827,_0x50d1f8,_0x2d7314,_0x26d02e),_0x100ca0;}}['markMultiRangeDeletion'](_0x159f5a,_0x4151a8='multi',_0xd8e90d={}){const _0x5607d6=this['editor']['plugins']['get']('Users')['me'],_0x4cf775=_0x159f5a['map'](_0x5bf387=>new _0x3f00a1(_0x5bf387['start'],_0x5bf387['end'])),_0x5c56a6=new Set();for(const {suggestion:_0x3f546,meta:_0x405795}of this['_findSuggestions'](_0x4cf775,'insertion'))_0x405795['isOwn']&&!_0x405795['isNextTo']&&_0x5c56a6['add'](_0x3f546);for(const _0x26efc6 of _0x5c56a6)if(_0x26efc6['isMultiRange']){const _0x532935=_0x26efc6['getRanges']();(!_0x26efc6['attributes']||!_0x26efc6['attributes']['skipNestingCheck'])&&(_0x532935['every'](_0x5e6cf2=>_0x4cf775['some'](_0x40d1d8=>_0x40d1d8['containsRange'](_0x5e6cf2,!0x0)))&&_0x26efc6['discard']());if(_0x4cf775['every'](_0x47a5fb=>_0x532935['some'](_0x390ee1=>_0x390ee1['containsRange'](_0x47a5fb,!0x0)))){const _0x50212c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4151a8,'accept');return this['forceDefaultExecution'](()=>_0x50212c(_0x159f5a,null,_0xd8e90d)),null;}}else{const _0x4351f2=_0x26efc6['getFirstRange']();_0x4cf775['some'](_0x4bd80f=>_0x4bd80f['containsRange'](_0x4351f2,!0x0))&&_0x26efc6['discard']();if(_0x4cf775['every'](_0x2ed83d=>_0x4351f2['containsRange'](_0x2ed83d,!0x0))){const _0x1dd9a5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4151a8,'accept');return this['forceDefaultExecution'](()=>_0x1dd9a5(_0x4cf775,null,_0xd8e90d)),null;}}const _0x32919f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4151a8,'join');let _0x365aa2=null;for(const _0x44f305 of this['getSuggestions']())if(_0x44f305['author']['id']==_0x5607d6['id']&&_0x44f305['isInContent']&&'deletion'==_0x44f305['type']&&_0x44f305['subType']==_0x4151a8&&qt(_0x44f305,_0xd8e90d)&&(_0x32919f(_0x44f305['getRanges'](),_0x4cf775)||_0x32919f(_0x4cf775,_0x44f305['getRanges']()))){if(_0x365aa2){if(_0x44f305['commentThread']&&_0x44f305['commentThread']['length'])continue;for(const _0x336bb9 of _0x44f305['getRanges']())_0x365aa2['isIntersectingWithRange'](_0x336bb9)||_0x365aa2['addRange'](_0x336bb9);_0x44f305['removeMarkers']();}else{_0x365aa2=_0x44f305;for(const _0x4f97ca of _0x4cf775)_0x44f305['isIntersectingWithRange'](_0x4f97ca)||_0x44f305['addRange'](_0x4f97ca);}}if(_0x365aa2)return _0x365aa2;_0x5c56a6['clear']();for(const {suggestion:_0x5cb10d,meta:_0x4838d7}of this['_findSuggestions'](_0x4cf775,'deletion'))_0x4838d7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4838d7['containsRangeInObject']&&!_0x4838d7['isInsideObject'])&&qt(_0x5cb10d,_0xd8e90d)&&_0x5c56a6['add'](_0x5cb10d);for(const _0x7f2f97 of _0x5c56a6){const _0x2370dc=_0x7f2f97['getRanges']();if(!_0xd8e90d||!_0xd8e90d['skipNestingCheck']){if(_0x4cf775['every'](_0x4a4f65=>_0x2370dc['some'](_0x33da11=>_0x33da11['containsRange'](_0x4a4f65,!0x0))))return _0x7f2f97;}(!_0x7f2f97['attributes']||!_0x7f2f97['attributes']['skipNestingCheck'])&&(_0x2370dc['every'](_0x163ea3=>_0x4cf775['some'](_0x3c9bff=>_0x3c9bff['containsRange'](_0x163ea3,!0x0)))&&_0x7f2f97['discard']());}const _0x148376=_0x30a933(),_0x2cfebf=_0x5607d6['id'],_0x5d3caf='deletion:'+_0x4151a8,_0x5bf5c2=this['_setSuggestionData']({'id':_0x148376,'type':_0x5d3caf,'createdAt':new Date(),'authorId':_0x2cfebf,'attributes':_0xd8e90d});for(const _0x3ebc28 of _0x4cf775)_0x3ebc28['detach'](),_0x3ebc28['isCollapsed']||'$graveyard'==_0x3ebc28['root']['rootName']||this['_addSuggestionMarker'](_0x5d3caf,_0x148376,_0x2cfebf,_0x3ebc28,u['getMultiRangeId']());return _0x5bf5c2;}['markAttributeChange'](_0x479a75,_0x5dfe2a,_0x6a28f6,_0x3a90ce,_0x2b45ae){if(_0x479a75['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4c9e53=this['editor']['plugins']['get']('Users')['me']['id'],_0x424090=Array['from'](this['_suggestions']['values']())['filter'](_0x4f39aa=>'attribute'==_0x4f39aa['type']&&_0x4f39aa['data']['key']==_0x5dfe2a&&_0x4f39aa['isIntersectingWithRange'](_0x479a75));if('default'===this['_trackFormatChanges']){const _0x28b763=this['_findSuggestions'](_0x479a75,'insertion')['filter'](({meta:_0x518329})=>_0x518329['isOwn']&&!_0x518329['isInsideObject']&&!_0x518329['isNextTo'])['map'](({suggestion:_0x4b9089})=>_0x4b9089);_0x424090['unshift'](..._0x28b763);}const _0x1ac789=new Map([[_0x479a75,_0x6a28f6]]);for(const _0x5dee8a of _0x424090){const _0x21324b='attribute'==_0x5dee8a['type']?_0x5dee8a['data']['oldValue']:void 0x0,_0x3d6c4e=_0x5dee8a['getFirstRange'](),_0x25a09d=Array['from'](_0x1ac789['keys']())['find'](_0x1c5cff=>_0x1c5cff['isIntersecting'](_0x3d6c4e));if(!_0x25a09d)continue;const _0x5ac073=_0x25a09d['getDifference'](_0x3d6c4e);this['_isBlockAttribute'](_0x5dfe2a)&&'insertion'==_0x5dee8a['type']&&0x0!=_0x5ac073['length']||(_0x1ac789['delete'](_0x25a09d),_0x5ac073['forEach'](_0x38b9b6=>{_0x1ac789['set'](_0x38b9b6,_0x6a28f6);}),'insertion'!=_0x5dee8a['type']&&_0x21324b!=_0x3a90ce&&_0x1ac789['set'](_0x25a09d['getIntersection'](_0x3d6c4e),_0x21324b));}const _0x31d741=[];for(const [_0xeed958,_0x347383]of _0x1ac789){const _0x5e83dc=_0x30a933(),_0x3581d7={'key':_0x5dfe2a,'oldValue':_0x347383,'newValue':_0x3a90ce};_0x5dfe2a['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':_0x5dfe2a});const _0x675a2d=('attribute:'+(_0x5dfe2a+'|'+Gt({'newValue':_0x3a90ce})))['substring'](0x0,0x3c),_0x4d203a=this['_setSuggestionData']({'id':_0x5e83dc,'type':_0x675a2d,'data':_0x3581d7,'createdAt':new Date(),'authorId':_0x4c9e53,'attributes':_0x2b45ae});_0x31d741['push'](_0x4d203a),this['_addSuggestionMarker'](_0x675a2d,_0x5e83dc,_0x4c9e53,_0xeed958);}return _0x31d741;}['enableDefaultAttributesIntegration'](_0xce7213){this['enableCommand'](_0xce7213,(_0x359fbb,..._0x4f7bb6)=>{this['_recordAttributeChanges'](()=>{_0x359fbb(..._0x4f7bb6);});});}['registerBlockAttribute'](_0x2762d3){this['_blockAttributeKeys']['add'](_0x2762d3);}['registerInlineAttribute'](_0x12d91e){this['_inlineAttributeKeys']['add'](_0x12d91e);}['_getAttributeKey'](_0x1f462b){return'attribute'==_0x1f462b['type']?_0x1f462b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x38766c,_0x1a1dfd){const _0xedccfc=_0x38766c['getFirstMarker']();this['_model']['change'](_0x3fb428=>{_0x3fb428['updateMarker'](_0xedccfc,{'range':_0x1a1dfd});});}['_addThreadToSuggestion'](_0x2378a8){const _0xcb8cf3=_0x2378a8['id'],_0x3ba402=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xcb8cf3)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ba402,'threadId':_0xcb8cf3,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1fd814=this['_commentsRepository']['getCommentThread'](_0xcb8cf3);_0x1fd814['unbind']('isRemovable'),_0x1fd814['isRemovable']=!0x1,_0x2378a8['commentThread']=_0x1fd814;}['_checkSuggestionCorrectness'](_0x22b273,_0x517a8d,_0x4de767,_0x3a1bd8){if(_0x22b273['type']!=_0x517a8d||_0x22b273['subType']!=_0x4de767||_0x22b273['creator']['id']!=_0x3a1bd8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x9ee824('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x40999f,_0x4e834e){const _0x4b1bea=_0x40999f['getFirstRange']();if(_0x4e834e['isEqual'](_0x4b1bea))_0x40999f['removeMarkers']();else{if(_0x4b1bea['containsRange'](_0x4e834e)){const _0xeadf92=this['_model']['createPositionAt'](_0x4e834e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40999f,this['_model']['createRange'](_0x4b1bea['start'],_0xeadf92));const _0x45b86e=_0x30a933(),_0xba8bb=_0x40999f['creator']['id'],_0x244d7d=_0x40999f['type']+':'+_0x40999f['subType'];this['_setSuggestionData']({'id':_0x45b86e,'type':_0x244d7d,'createdAt':new Date(),'authorId':_0xba8bb,'data':_0x40999f['data'],'attributes':_0x40999f['attributes']});const _0x1450e5=this['_model']['createPositionAt'](_0x4e834e['end']['parent'],'after'),_0x424209=this['_model']['createRange'](_0x1450e5,_0x4b1bea['end']);this['_addSuggestionMarker'](_0x244d7d,_0x45b86e,_0xba8bb,_0x424209);}else{if(_0x4b1bea['containsPosition'](_0x4e834e['start'])){const _0x217851=this['_model']['createPositionAt'](_0x4e834e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40999f,this['_model']['createRange'](_0x4b1bea['start'],_0x217851));}else{const _0x3f0432=this['_model']['createPositionAt'](_0x4e834e['end']['parent'],'after');this['_setSuggestionRange'](_0x40999f,this['_model']['createRange'](_0x3f0432,_0x4b1bea['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2baef1){for(const {suggestion:_0x4e6317,meta:_0x5539ba}of this['_findSuggestions'](_0x2baef1,'insertion')){if(!_0x5539ba['isOwn'])continue;const _0x5c6ac6=_0x4e6317['getRanges']();for(const _0x455b29 of _0x5c6ac6)if(!_0x2baef1['getDifference'](_0x455b29)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x22d99a){const _0x3eda14=this['editor']['plugins']['get']('Users')['getUser'](_0x22d99a);if(!_0x3eda14)throw new _0x9ee824('track-changes-user-not-found',this);return _0x3eda14;}['_getExternalAuthor'](_0x17429d){const _0x84424c=this['editor']['plugins']['get']('Users'),_0x5417ce=_0x4dc8f2('external:'+_0x17429d),_0x508187=_0x84424c['getUser'](_0x5417ce);return _0x508187||_0x84424c['addUser']({'id':_0x5417ce,'name':_0x17429d});}['_createSuggestion'](_0x45d193,_0x2ba86a,_0x16b384,_0x393537,_0x5f39ae){const _0x20fb04=this['_getAuthorFromId'](_0x393537),_0x1ce699=this['_suggestionFactory']['buildSuggestion'](_0x45d193,_0x2ba86a,_0x16b384,_0x20fb04,_0x5f39ae,_0x3282f6=>{this['_updateSuggestionData'](_0x16b384,{'attributes':_0x3282f6});const _0x1e90fa=this['getSuggestion'](_0x16b384);this['_joinWithAdjacentSuggestions'](new Set([_0x1e90fa])),this['_refreshSuggestionsChain'](new Set([_0x1e90fa]));});return this['listenTo'](_0x1ce699,'accept',()=>{this['_updateSuggestionData'](_0x16b384,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1ce699,'discard',()=>{this['_updateSuggestionData'](_0x16b384,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x16b384,_0x1ce699),this['_suggestionState']['set'](_0x1ce699,'notReady'),_0x1ce699;}['_splitMarkerName'](_0x471042){const _0x4fcfb4=_0x471042['split'](':');return{'group':_0x4fcfb4[0x0],'type':_0x4fcfb4[0x1],'subType':_0x4fcfb4['length']>=0x5?_0x4fcfb4[0x2]:null,'id':_0x4fcfb4['length']<0x5?_0x4fcfb4[0x2]:_0x4fcfb4[0x3],'authorId':_0x4fcfb4['length']<0x5?_0x4fcfb4[0x3]:_0x4fcfb4[0x4],'markerCount':0x6==_0x4fcfb4['length']?_0x4fcfb4[0x5]:null};}['_breakSuggestionMarker'](_0x5a6dd0,_0x54a3cc,_0x3ba4bd){const _0x181b17=_0x5a6dd0['getFirstRange'](),_0x1e4349=_0x181b17['start'],_0x1b539f=_0x181b17['end'];this['_setSuggestionRange'](_0x5a6dd0,this['_model']['createRange'](_0x1e4349,_0x54a3cc));const _0x55a9d8=_0x30a933(),_0x1ac8da=_0x5a6dd0['creator']['id'],_0x454f15=_0x5a6dd0['type']+(_0x5a6dd0['subType']?':'+_0x5a6dd0['subType']:'');this['_setSuggestionData']({'id':_0x55a9d8,'type':_0x454f15,'createdAt':new Date(),'authorId':_0x1ac8da,'originalSuggestionId':_0x5a6dd0['id'],'attributes':_0x5a6dd0['attributes'],'data':_0x5a6dd0['data']});const _0x372eb0=this['_getAttributeKey'](_0x5a6dd0);('formatBlock'==_0x5a6dd0['type']||_0x372eb0&&this['_isBlockAttribute'](_0x372eb0))&&(_0x3ba4bd=this['_model']['createPositionBefore'](_0x3ba4bd['parent'])),this['_addSuggestionMarker'](_0x454f15,_0x55a9d8,_0x1ac8da,this['_model']['createRange'](_0x3ba4bd,_0x1b539f));}['_findSuggestions'](_0x31428f,_0x5a0158=null){const _0x82e701=[],_0x5311f0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x31428f)||(_0x31428f=[_0x31428f]);for(const _0x368ad5 of this['getSuggestions']()){if(!_0x368ad5['isInContent'])continue;if(_0x5a0158&&_0x368ad5['type']!=_0x5a0158)continue;let _0x26ec8b=!0x1;for(const _0x398d22 of _0x368ad5['getRanges']()){for(const _0x2bab31 of _0x31428f){const _0x56d5ad=_0x2bab31['start']['isEqual'](_0x398d22['end'])||_0x2bab31['end']['isEqual'](_0x398d22['start']);if(_0x56d5ad||_0x2bab31['getIntersection'](_0x398d22)){const _0x48714a=_0x2bab31['containsRange'](_0x398d22)&&Ot(this['_model']['schema'],_0x398d22['start'],_0x2bab31),_0x3c0dd5=_0x398d22['containsRange'](_0x2bab31)&&Ot(this['_model']['schema'],_0x2bab31['start'],_0x398d22);_0x82e701['push']({'suggestion':_0x368ad5,'meta':{'isOwn':_0x5311f0==_0x368ad5['author'],'isNextTo':_0x56d5ad,'isInsideObject':_0x48714a,'containsRangeInObject':_0x3c0dd5}}),_0x26ec8b=!0x0;break;}}if(_0x26ec8b)break;}}return _0x82e701;}['_addSuggestionMarker'](_0x22f93f,_0x33127e,_0x4be949,_0x48f7fd,_0x43f340){this['_model']['change'](_0x110c82=>{let _0xd90cb3='suggestion:'+_0x22f93f+':'+_0x33127e+':'+_0x4be949;_0x43f340&&(_0xd90cb3=_0xd90cb3+':'+_0x43f340),_0x110c82['addMarker'](_0xd90cb3,{'range':_0x48f7fd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x441b98){const _0x3f0e4d=_0x441b98['previous'],_0x543689=_0x441b98['next'];_0x441b98['previous']=null,_0x441b98['next']=null,null!=_0x3f0e4d&&_0x3f0e4d['next']==_0x441b98&&(_0x3f0e4d['next']=_0x543689),null!=_0x543689&&_0x543689['previous']==_0x441b98&&(_0x543689['previous']=_0x3f0e4d),'ready'==this['_suggestionState']['get'](_0x441b98)&&(this['_suggestionState']['set'](_0x441b98,'removed'),this['fire']('suggestionUnloaded',_0x441b98,_0x3f0e4d,_0x543689));}['_setSuggestionData'](_0x29322e){const _0x405e52=_0x29322e['id'],_0x6ba29e=this['addSuggestionData'](_0x29322e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x43b3bd=this['editor']['plugins']['get']('PendingActions'),_0x466a02=_0x6ba29e['hasComments'],_0x1066f4=_0x6ba29e['subType']?_0x6ba29e['type']+':'+_0x6ba29e['subType']:_0x6ba29e['type'],_0x148404=this['editor']['locale'],_0x57329f=_0x43b3bd['add'](o(_0x148404,'PENDING_ACTION_SUGGESTION')),_0x4aeb01={'id':_0x405e52,'type':_0x1066f4,'hasComments':_0x466a02,'data':_0x29322e['data']||null,'originalSuggestionId':_0x29322e['originalSuggestionId']||null,'attributes':_0x6ba29e['attributes']};this['_adapter']['addSuggestion'](_0x4aeb01)['then'](_0x5b9cf0=>{_0x6ba29e['_saved']=!0x0,_0x43b3bd['remove'](_0x57329f),_0x5b9cf0&&_0x5b9cf0['createdAt']&&(this['_suggestions']['get'](_0x405e52)['createdAt']=_0x5b9cf0['createdAt']);})['catch'](_0x5a5eda=>{throw _0x494922('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x6ba29e['discard']();}),_0x6ba29e['stopListening'](),this['_suggestions']['delete'](_0x6ba29e['id']),this['_suggestionState']['delete'](_0x6ba29e),_0x5a5eda;});}return _0x6ba29e;}['_isBlockAttribute'](_0x2a2833){return this['_blockAttributeKeys']['has'](_0x2a2833);}['_updateSuggestionData'](_0x361602,_0x3e4e74){const _0x1becf4=this['editor']['plugins']['get']('PendingActions'),_0x18d3bb=this['getSuggestion'](_0x361602);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x18d3bb['_saved']){const _0x5a4bb9=_0x1becf4['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x361602,_0x3e4e74)['then'](()=>{_0x1becf4['remove'](_0x5a4bb9);});}else _0x18d3bb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x361602,_0x3e4e74);});}}['_getSuggestionData'](_0x1109fc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x9ee824('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1109fc);}['_handleNewSuggestionMarker'](_0x50214b){const {id:_0x257ecb,type:_0x251ec6,subType:_0x3fcdf1,authorId:_0x4f13aa}=this['_splitMarkerName'](_0x50214b),_0x362352=this['_suggestions']['get'](_0x257ecb)||this['_createSuggestion'](_0x251ec6,_0x3fcdf1,_0x257ecb,_0x4f13aa,{});switch(this['_checkSuggestionCorrectness'](_0x362352,_0x251ec6,_0x3fcdf1,_0x4f13aa),this['_suggestionState']['get'](_0x362352)){case'notReady':this['_getSuggestionData'](_0x257ecb)['then'](_0x9eac0a=>{let _0xf552f4=Promise['resolve']();_0x9eac0a['hasComments']&&(_0xf552f4=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x257ecb})),_0xf552f4['then'](()=>{this['addSuggestionData'](_0x9eac0a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x362352,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x257ecb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x362352,'ready'),this['fire']('suggestionLoaded',_0x362352);break;case'ready':this['fire']('suggestionChanged',_0x362352);}return _0x362352['addMarkerName'](_0x50214b),_0x362352;}['_refreshSuggestionsChain'](_0x4c6397){const _0x50a6eb=Array['from'](_0x4c6397),_0x1d6aaa=_0x50a6eb['filter'](_0x14ee04=>'attribute'==_0x14ee04['type']);this['_refreshAttributeSuggestionsChain'](_0x1d6aaa);const _0x33f10a=_0x50a6eb['filter'](_0x2f05fe=>!_0x2f05fe['isMultiRange']&&'attribute'!=_0x2f05fe['type']),_0x521237=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x428b4a=>!_0x428b4a['isMultiRange']&&'attribute'!=_0x428b4a['type']),_0x415ed4=_0x521237['filter'](_0x5533fe=>!_0x4c6397['has'](_0x5533fe)),_0x2501af=new Map(_0x521237['map'](_0x39f383=>[_0x39f383,this['_suggestionFactory']['getSuggestionCallback'](_0x39f383['type'],_0x39f383['subType'],'chain')])),_0x334343=new Map(_0x521237['map'](_0x267251=>[_0x267251,_0x267251['getFirstRange']()])),_0x45dcf7=new Set(),_0x14fa62=new Set();for(let _0x1106e4=0x0;_0x1106e4<_0x33f10a['length'];_0x1106e4++)_0x3777c7(_0x33f10a[_0x1106e4],_0x33f10a,_0x1106e4+0x1);for(let _0x1301cd=0x0;_0x1301cd<_0x33f10a['length'];_0x1301cd++)_0x3777c7(_0x33f10a[_0x1301cd],_0x415ed4,0x0);const _0x5dee4b=new Set();for(let _0xd24ba8=0x0;_0xd24ba8<_0x33f10a['length'];_0xd24ba8++){const _0x12897a=_0x33f10a[_0xd24ba8];!_0x14fa62['has'](_0x12897a)&&_0x12897a['previous']&&(_0x5dee4b['add'](_0x12897a['previous']),_0x12897a['previous']['next']===_0x12897a&&(_0x12897a['previous']['next']=null),_0x12897a['previous']=null),!_0x45dcf7['has'](_0x12897a)&&_0x12897a['next']&&(_0x5dee4b['add'](_0x12897a['next']),_0x12897a['next']['previous']===_0x12897a&&(_0x12897a['next']['previous']=null),_0x12897a['next']=null);}function _0x3777c7(_0x40132c,_0x23b8a6,_0x44869b){for(let _0x2541e2=_0x44869b;_0x2541e2<_0x23b8a6['length'];_0x2541e2++){const _0x88c884=_0x192609(_0x40132c,_0x23b8a6[_0x2541e2]);_0x88c884&&(_0x88c884[0x0]['next']=_0x88c884[0x1],_0x88c884[0x1]['previous']=_0x88c884[0x0],_0x45dcf7['add'](_0x88c884[0x0]),_0x14fa62['add'](_0x88c884[0x1]));}}function _0x192609(_0x596322,_0x158636){if(_0x596322['author']['id']!==_0x158636['author']['id'])return null;const _0x508712=_0x2501af['get'](_0x596322)(_0x596322,_0x158636,_0x334343['get'](_0x596322),_0x334343['get'](_0x158636));if(!_0x508712)return null;return _0x2501af['get'](_0x158636)(_0x596322,_0x158636,_0x334343['get'](_0x596322),_0x334343['get'](_0x158636))?_0x508712[0x1]['commentThread']&&_0x508712[0x1]['commentThread']['length']?null:_0x508712:null;}_0x5dee4b['size']&&this['_refreshSuggestionsChain'](_0x5dee4b);}['_refreshAttributeSuggestionsChain'](_0x534829){if(0x0==_0x534829['length'])return;const _0x702817=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x36662f=>'attribute'==_0x36662f['type']&&_0x36662f['_isDataLoaded']),_0x3e2494=[],_0x2c1cc7=new Map();for(const _0x46950e of _0x702817){const _0x2bc00c=_0x4dc8f2(_0x46950e['attributes']);_0x2c1cc7['has'](_0x2bc00c)||(_0x2c1cc7['set'](_0x2bc00c,_0x3e2494['length']),_0x3e2494['push']([]));const _0x10e79c=_0x2c1cc7['get'](_0x2bc00c);_0x3e2494[_0x10e79c]['push'](_0x46950e);}!(function(){_0x3e2494['sort']((_0xd51fba,_0x1c566b)=>{const _0x6b77c4=_0xd51fba[0x0]['createdAt'],_0x4b6396=_0x1c566b[0x0]['createdAt'];return _0x6b77c4==_0x4b6396?_0xd51fba[0x0]['attributes']['groupId']<_0x1c566b[0x0]['attributes']['groupId']?-0x1:0x1:_0x6b77c4<_0x4b6396?-0x1:0x1;});for(const _0x23f73a of _0x3e2494)_0x23f73a['sort']((_0x33eac3,_0x270284)=>_0x33eac3['id']<_0x270284['id']?-0x1:0x1);}());for(let _0x264628=0x0;_0x264628<_0x3e2494['length'];_0x264628++){if(0x0==_0x3e2494[_0x264628]['length'])continue;const _0x43b48f=[];for(let _0x45ed3f=_0x264628+0x1;_0x45ed3f<_0x3e2494['length'];_0x45ed3f++)0x0!=_0x3e2494[_0x45ed3f]['length']&&_0x1c9a05(_0x3e2494[_0x264628],_0x3e2494[_0x45ed3f])&&_0x43b48f['push'](_0x45ed3f);for(const _0x1b1c1b of _0x43b48f)_0x3e2494[_0x264628]=_0x3e2494[_0x264628]['concat'](_0x3e2494[_0x1b1c1b]),_0x3e2494[_0x1b1c1b]=[];}for(const _0x4a7cbd of _0x3e2494)for(let _0x223cec=0x0;_0x223cec<_0x4a7cbd['length'];_0x223cec++){const _0x54654e=_0x4a7cbd[_0x223cec+0x1]||null;_0x4a7cbd[_0x223cec]['next']!==_0x54654e&&(_0x4a7cbd[_0x223cec]['next']=_0x54654e);}for(const _0x5413b5 of _0x3e2494)for(let _0x2a194b=0x0;_0x2a194b<_0x5413b5['length'];_0x2a194b++){const _0x5bbed7=_0x5413b5[_0x2a194b-0x1]||null;_0x5413b5[_0x2a194b]['previous']!==_0x5bbed7&&(_0x5413b5[_0x2a194b]['previous']=_0x5bbed7);}function _0x1c9a05(_0x19369b,_0xd13cd2){if(_0x19369b[0x0]['attributes']['groupId']!==_0xd13cd2[0x0]['attributes']['groupId']&&_0x19369b[0x0]['author']!==_0xd13cd2[0x0]['author'])return!0x1;if(!function(_0x5bcdd5,_0xe24b6c){if(!_0x5bcdd5['hasComments']&&!_0xe24b6c['hasComments'])return!0x0;if(_0x5bcdd5['hasComments']&&_0xe24b6c['hasComments'])return!0x1;if(_0x5bcdd5['hasComments']&&_0xe24b6c['createdAt']<_0x5bcdd5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe24b6c['hasComments']&&_0x5bcdd5['createdAt']<_0xe24b6c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x19369b[0x0],_0xd13cd2[0x0]))return!0x1;const _0x58f7b6=Tt(_0x19369b[0x0]['attributes'],'groupId'),_0x320c82=Tt(_0xd13cd2[0x0]['attributes'],'groupId');if(!_0x4d1bff(_0x58f7b6,_0x320c82))return!0x1;return!!_0x19369b['every'](_0x179bbf=>_0xd13cd2['some'](_0xdf3dd8=>_0x179bbf['getFirstRange']()['isEqual'](_0xdf3dd8['getFirstRange']())))&&_0xd13cd2['every'](_0x1bf8bf=>_0x19369b['some'](_0x41b331=>_0x1bf8bf['getFirstRange']()['isEqual'](_0x41b331['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xcbe462){const _0x298a1f=Array['from'](_0xcbe462),_0x23827f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x453313=_0x23827f['filter'](_0x1bc7a4=>!_0xcbe462['has'](_0x1bc7a4)),_0x57f85f=new Map(_0x298a1f['map'](_0x1d6052=>[_0x1d6052,this['_suggestionFactory']['getSuggestionCallback'](_0x1d6052['type'],_0x1d6052['subType'],'join')])),_0x58b9ef=new Map(_0x23827f['map'](_0x56ae6a=>[_0x56ae6a,_0x56ae6a['getRanges']()]));for(let _0x4d6344=0x0;_0x4d6344<_0x298a1f['length'];_0x4d6344++){if(_0xca2781(this,_0x298a1f[_0x4d6344],_0x298a1f,_0x4d6344+0x1))return!0x0;}for(let _0x5b9a16=0x0;_0x5b9a16<_0x298a1f['length'];_0x5b9a16++){if(_0xca2781(this,_0x298a1f[_0x5b9a16],_0x453313,0x0))return!0x0;}return!0x1;function _0xca2781(_0x13848e,_0xa2bc21,_0x1dc409,_0x5461e3){for(let _0x30c6f0=_0x5461e3;_0x30c6f0<_0x1dc409['length'];_0x30c6f0++){const _0x315cdb=_0x1dc409[_0x30c6f0];if(_0x315cdb['type']!==_0xa2bc21['type']||_0x315cdb['author']['id']!==_0xa2bc21['author']['id']||_0x315cdb['subType']!==_0xa2bc21['subType'])continue;if(!Jt(_0xa2bc21,_0x315cdb))continue;if('attribute'==_0xa2bc21['type']&&_0xa2bc21['data']['oldValue']!=_0x315cdb['data']['oldValue'])continue;if('attribute'==_0xa2bc21['type']&&_0x13848e['_isBlockAttribute'](_0xa2bc21['data']['key']))continue;if('formatBlock'==_0xa2bc21['type']){const _0xea4669=_0x13848e['editor']['model'],_0x1891f8=_0xa2bc21['getContainedElement']();if(_0x1891f8&&(_0xea4669['schema']['isObject'](_0x1891f8)||_0xea4669['schema']['isLimit'](_0x1891f8)))continue;}const _0x130124=_0x57f85f['get'](_0xa2bc21),_0xd9130b=_0x58b9ef['get'](_0xa2bc21),_0xc52536=_0x58b9ef['get'](_0x315cdb),_0x1c0195=_0xa2bc21['commentThread']&&_0xa2bc21['commentThread']['length'],_0x29fdcb=_0x315cdb['commentThread']&&_0x315cdb['commentThread']['length'];if(!_0x1c0195&&_0x130124(_0xc52536,_0xd9130b))return _0x13848e['_joinSuggestions'](_0x315cdb,_0xa2bc21),_0x58b9ef['delete'](_0xa2bc21),!0x0;if(!_0x29fdcb&&_0x130124(_0xd9130b,_0xc52536))return _0x13848e['_joinSuggestions'](_0xa2bc21,_0x315cdb),_0x58b9ef['delete'](_0x315cdb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1bd770,_0x970f31){if(_0x1bd770['isMultiRange']){for(const _0x2122a0 of _0x970f31['getRanges']())_0x1bd770['addRange'](_0x2122a0);}else{const _0x1cd35c=_0x970f31['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1bd770,this['_model']['createRange'](_0x1bd770['getFirstRange']()['start'],_0x1cd35c));}_0x970f31['removeMarkers']();}['_getMarkerAnnouncementText'](_0x21c6a0,_0x5c630f,_0x4f16ee){const _0x28ca81=_0x21c6a0['startsWith']('format')||_0x21c6a0['startsWith']('attribute')?'FORMATTING':_0x21c6a0['toUpperCase']();return o(this['editor']['locale'],_0x5c630f+'_'+_0x28ca81+'_SUGGESTION_ANNOUNCEMENT',_0x4f16ee);}['_initAriaMarkerChangeAnnouncements'](){const _0x18100c=this['editor'];if(!_0x18100c['ui'])return;const {ariaLiveAnnouncer:_0x4cb29c}=_0x18100c['ui'];_0x499b97(this['_model'],({left:_0x7ab21d,entered:_0x3eb42e})=>{for(const _0x126943 of _0x7ab21d){const {group:_0x5d65d8,type:_0x2d901e}=this['_splitMarkerName'](_0x126943['name']);if('suggestion'===_0x5d65d8){_0x4cb29c['announce'](this['_getMarkerAnnouncementText'](_0x2d901e,'LEAVE'));break;}}for(const _0x760c0e of _0x3eb42e){const {group:_0x5a75da,type:_0x5b7294}=this['_splitMarkerName'](_0x760c0e['name']);if('suggestion'===_0x5a75da){_0x4cb29c['announce'](this['_getMarkerAnnouncementText'](_0x5b7294,'ENTER',_0x45ae70(_0x2f3654)));break;}}});}['_processAttributeChanges'](_0x7a08de){if(this['_recordAttributeSuggestions'])return!0x1;const _0x462f0d=this['editor'],_0x342916=_0x462f0d['model']['document']['differ']['getChanges']();if(0x0==_0x342916['length'])return!0x1;const _0x3686df=[],_0x9f10e7=_0x342916['filter'](_0x3d8cd0=>'attribute'==_0x3d8cd0['type']),_0xa2f72=_0x342916['filter'](_0x220fa3=>'insert'==_0x220fa3['type']&&'$text'!=_0x220fa3['name']),_0xbcf51d=_0x342916['filter'](_0x5c4875=>'remove'==_0x5c4875['type']&&'$text'!=_0x5c4875['name']);for(const _0x47f4ee of _0x9f10e7)_0x3686df['push']({'key':_0x47f4ee['attributeKey'],'newValue':_0x47f4ee['attributeNewValue'],'oldValue':_0x47f4ee['attributeOldValue'],'range':Pt(_0x47f4ee['range'],_0x462f0d['model'])});for(const _0x2e7022 of _0xa2f72){const _0x3c7a45=_0xbcf51d['find'](_0xb7c421=>_0xb7c421['position']['isEqual'](_0x2e7022['position']));_0x3c7a45&&_0x3686df['push']({'key':m,'newValue':_0x2e7022['name'],'oldValue':_0x3c7a45['name'],'range':_0x462f0d['model']['createRangeOn'](_0x2e7022['position']['nodeAfter'])});}return 0x0!=_0x3686df['length']&&this['_reduceExistingSuggestions'](_0x7a08de,_0x3686df);}['_processAttributeSuggestions'](_0x3d2b9d){let _0x49b165=!0x1;const _0x27dace=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x31c759=>_0x31c759['data']['newRange']&&_0x31c759['name']['startsWith']('suggestion:attribute:'));for(const _0x5ab54d of _0x27dace){const {subType:_0x3a780c,id:_0x311fbe}=this['_splitMarkerName'](_0x5ab54d['name']),_0x30b4da=_0x3a780c['split']('|')[0x0];for(const _0x190b26 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x190b26['id']!=_0x311fbe&&'attribute'==_0x190b26['type']&&_0x190b26['data']&&_0x190b26['data']['key']==_0x30b4da&&_0x190b26['getFirstRange']()['isIntersecting'](_0x5ab54d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x190b26,_0x5ab54d['data']['newRange'],_0x3d2b9d),_0x49b165=!0x0);}return _0x49b165;}['_recordAttributeChanges'](_0x37b89a){this['_recordAttributeSuggestions']=!0x0,_0x37b89a();}['_isRegisteredAttribute'](_0x23af35){const _0x27904f=this['_isBlockAttribute'](_0x23af35),_0x7da5ba=this['_inlineAttributeKeys']['has'](_0x23af35);return _0x27904f||_0x7da5ba;}['_reduceExistingSuggestions'](_0x3305f4,_0x10ebf5){if(0x0==_0x10ebf5['length'])return!0x1;let _0x49b5ba=!0x1;for(const _0x2d33d0 of _0x10ebf5){const _0xb83586=this['_findSuggestions'](_0x2d33d0['range'],'attribute')['filter'](_0x51313a=>!_0x51313a['meta']['isNextTo'])['map'](_0x38703f=>_0x38703f['suggestion']),_0x55e377=_0x4dc8f2({'newValue':_0x2d33d0['newValue']});_0xb83586['filter'](_0x17fb0e=>{const [_0x4c68c6,_0x3de279]=_0x17fb0e['subType']['split']('|');return _0x4c68c6==_0x2d33d0['key']&&_0x3de279!=_0x55e377;})['forEach'](_0x796446=>{this['_reduceSuggestionAttributeRange'](_0x796446,_0x2d33d0['range'],_0x3305f4),_0x49b5ba=!0x0;});}return _0x49b5ba;}['_reduceSuggestionAttributeRange'](_0x5be168,_0xf33f02,_0x51e01b){const _0xd5d445=_0x5be168['getFirstRange']()['getDifference'](_0xf33f02);0x0!==_0xd5d445['length']?0x1!==_0xd5d445['length']?this['_breakSuggestionMarker'](_0x5be168,_0xf33f02['start'],_0xf33f02['end']):this['_setSuggestionRange'](_0x5be168,_0xd5d445[0x0]):_0x51e01b['removeMarker'](_0x5be168['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x21dff2){this['_editor']=_0x21dff2,this['_model']=_0x21dff2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x30af5d,_0x97281f,_0x4ed9c1,_0x2e0ffa,_0x23dcc8,_0x4bf733){return new u(this['_model'],{'type':_0x30af5d,'subType':_0x97281f,'id':_0x4ed9c1,'author':_0x2e0ffa,'creator':_0x2e0ffa,'attributes':_0x23dcc8,'onAttributesChange':_0x4bf733,'onAccept':(..._0x2bbf46)=>this['getSuggestionCallback'](_0x30af5d,_0x97281f,'accept')(..._0x2bbf46),'onDiscard':(..._0xb6fed3)=>this['getSuggestionCallback'](_0x30af5d,_0x97281f,'discard')(..._0xb6fed3)});}['registerCustomCallback'](_0x463fd0,_0x29a2ac,_0x5d5709,_0x159473){const _0x3e9007=_0x463fd0+':'+_0x29a2ac+':'+_0x5d5709;this['_customCallbacks']['set'](_0x3e9007,_0x159473);}['getSuggestionCallback'](_0x47d95f,_0x1643a4,_0x33292d){const _0x228e42=_0x47d95f+':'+_0x1643a4+':'+_0x33292d;return this['_customCallbacks']['get'](_0x228e42)||this['_defaultCallbacks']['get'](_0x47d95f+':'+_0x33292d);}['_registerDefaultCallbacks'](){const _0x4c4d16=()=>!0x1,_0x1f5572=_0x2d8dcd=>{_0x2d8dcd['sort']((_0x49feed,_0x5ee711)=>_0x49feed['start']['isBefore'](_0x5ee711['start'])?0x1:-0x1),this['_model']['change'](_0x152d9b=>{for(const _0x162b4b of _0x2d8dcd){let _0x5e99d3;_0x5e99d3=_0x162b4b['end']['isAtEnd']&&_0x162b4b['end']['parent']==_0x162b4b['start']['nodeAfter']?_0x152d9b['createSelection'](_0x162b4b['start']['nodeAfter'],'on'):_0x152d9b['createSelection'](_0x162b4b),this['_model']['deleteContent'](_0x5e99d3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5994a4=(_0x4e9df1,_0x460086)=>{_0x460086&&this['_model']['change'](_0x1a55a3=>{const {commandName:_0x1dd26c,commandParams:_0x8eeb77=[]}=_0x460086,_0x48edbe=_0x4e9df1['map'](_0x2cb35b=>(Vt(_0x2cb35b)&&(_0x2cb35b=this['_model']['createRange'](_0x2cb35b['end'])),_0x2cb35b))['filter'](_0x43ac8f=>'$graveyard'!==_0x43ac8f['root']['rootName']);if(_0x48edbe['length']<0x1)return;const _0x5deed6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5b4d54=>_0x3f00a1['fromRange'](_0x5b4d54));_0x1a55a3['setSelection'](_0x48edbe);for(const _0x3ea52a of this['_editor']['commands']['commands']())_0x3ea52a['refresh']();_0x8eeb77['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1dd26c,..._0x8eeb77);const _0x18559c=_0x5deed6['filter'](_0x52ac14=>'$graveyard'!=_0x52ac14['root']['rootName']);_0x18559c['length']>0x0&&_0x1a55a3['setSelection'](_0x18559c);for(const _0x2cdc1e of _0x5deed6)_0x2cdc1e['detach']();});},_0xb578e8=(_0x598a71,_0xaf96ea)=>0x1==_0x598a71['length']&&0x1==_0xaf96ea['length']&&_0x598a71[0x0]['end']['isEqual'](_0xaf96ea[0x0]['start']),_0x5c7f90=(_0x84d265,_0x31571a,_0x1af29a,_0x5f4295)=>Ht(_0x84d265,_0x31571a,_0x1af29a,_0x5f4295,this['_model'])?[_0x84d265,_0x31571a]:Ht(_0x31571a,_0x84d265,_0x5f4295,_0x1af29a,this['_model'])?[_0x31571a,_0x84d265]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4c4d16),this['_defaultCallbacks']['set']('insertion:discard',_0x1f5572),this['_defaultCallbacks']['set']('insertion:join',_0xb578e8),this['_defaultCallbacks']['set']('insertion:chain',_0x5c7f90),this['_defaultCallbacks']['set']('deletion:accept',_0x1f5572),this['_defaultCallbacks']['set']('deletion:discard',_0x4c4d16),this['_defaultCallbacks']['set']('deletion:join',_0xb578e8),this['_defaultCallbacks']['set']('deletion:chain',_0x5c7f90),this['_defaultCallbacks']['set']('formatInline:accept',_0x5994a4),this['_defaultCallbacks']['set']('formatInline:discard',_0x4c4d16),this['_defaultCallbacks']['set']('formatInline:join',_0xb578e8),this['_defaultCallbacks']['set']('formatInline:chain',_0x4c4d16),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5994a4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4c4d16),this['_defaultCallbacks']['set']('formatBlock:join',_0xb578e8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4c4d16),this['_defaultCallbacks']['set']('attribute:accept',_0x4c4d16),this['_defaultCallbacks']['set']('attribute:discard',(_0x1dfb36,_0x4f6f21)=>{if(!_0x4f6f21)return;const _0xc7ab67=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x21fc5a=>{if(_0x4f6f21['key']==m)for(const _0x189eca of _0x1dfb36){const _0x3d7d1e=_0x189eca['start']['nodeAfter'],_0x2373ea=_0x4f6f21['oldValue'];_0x21fc5a['rename'](_0x3d7d1e,_0x2373ea);}else{if(_0xc7ab67['_isBlockAttribute'](_0x4f6f21['key'])){for(const _0x23a8e4 of _0x1dfb36)void 0x0!==_0x4f6f21['oldValue']?_0x21fc5a['setAttribute'](_0x4f6f21['key'],_0x4f6f21['oldValue'],_0x23a8e4['start']['nodeAfter']):_0x21fc5a['removeAttribute'](_0x4f6f21['key'],_0x23a8e4['start']['nodeAfter']);}else{for(const _0x175e6c of _0x1dfb36)_0x4f6f21['oldValue']?_0x21fc5a['setAttribute'](_0x4f6f21['key'],_0x4f6f21['oldValue'],_0x175e6c):_0x21fc5a['removeAttribute'](_0x4f6f21['key'],_0x175e6c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xb578e8);}}function Ot(_0x3e5af5,_0x582cb1,_0x2ff338){for(const _0x54e5d3 of _0x582cb1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x54e5d3['root']==_0x54e5d3)return!0x1;if(!_0x2ff338['containsItem'](_0x54e5d3))return!0x1;if(_0x3e5af5['isObject'](_0x54e5d3)||_0x3e5af5['isLimit'](_0x54e5d3))return!0x0;}return!0x1;}function Vt(_0x5affb2){return _0x5affb2['end']['parent']==_0x5affb2['start']['nodeAfter']&&_0x5affb2['end']['isAtStart'];}function Ut(_0x5e3a34,_0x61c92c,_0x6fb89b,_0x27d039){const _0x1865d8=_0x4c3ff3=>!_0x4c3ff3['item']['is']('$textProxy')&&!_0x27d039['isObject'](_0x4c3ff3['item']),_0x5ab24e=_0x5e3a34['start']['getLastMatchingPosition'](_0x1865d8),_0x5e8ca2=_0x5e3a34['end']['getLastMatchingPosition'](_0x1865d8,{'direction':'backward'});return(!_0x5e3a34['start']['isEqual'](_0x5ab24e)||!_0x5e3a34['end']['isEqual'](_0x5e8ca2))&&(_0x5ab24e['isBefore'](_0x5e8ca2)?_0x6fb89b['updateMarker'](_0x61c92c,{'range':_0x6fb89b['createRange'](_0x5ab24e,_0x5e8ca2)}):_0x6fb89b['removeMarker'](_0x61c92c),!0x0);}function Gt(_0x3bfd7d){return _0x4dc8f2(_0x3bfd7d);}function Ft(_0x8db2ba){const _0x57fdc1=_0x8db2ba['start']['nodeAfter'];return _0x57fdc1&&_0x57fdc1['is']('element');}function Pt(_0xdf5581,_0x2b138d){return null==_0xdf5581['end']['nodeBefore']&&_0xdf5581['end']['parent']==_0xdf5581['start']['nodeAfter']?Lt(_0xdf5581['start']['nodeAfter'],_0x2b138d):_0xdf5581;}function Lt(_0x23e9d1,_0x36330f){const _0x26ba74=_0x36330f['schema']['isObject'](_0x23e9d1)||_0x36330f['schema']['isSelectable'](_0x23e9d1);return _0x36330f['createRange'](_0x36330f['createPositionAt'](_0x23e9d1,'before'),_0x26ba74?_0x36330f['createPositionAfter'](_0x23e9d1):_0x36330f['createPositionAt'](_0x23e9d1,'end'));}function Ht(_0x1a50d0,_0x4166c6,_0x5317fc,_0x439d22,_0x94ea6b){if(_0x1a50d0['next'])return!0x1;if(!Jt(_0x1a50d0,_0x4166c6))return!0x1;if(_0x5317fc['end']['isEqual'](_0x439d22['start']))return!0x0;if(_0x1a50d0['type']!=_0x4166c6['type'])return!0x1;if(!_0x5317fc['end']['isTouching'](_0x439d22['start']))return!0x1;const _0x2fa72a=_0x94ea6b['createRange'](_0x5317fc['end'],_0x439d22['start'])['getWalker']();for(const _0x34fd43 of _0x2fa72a)if(['elementStart','elementEnd']['includes'](_0x34fd43['type'])&&_0x94ea6b['schema']['isLimit'](_0x34fd43['item']))return!0x1;return!0x0;}function Jt(_0x3c9239,_0x2ef30e){if(!_0x3c9239['_isDataLoaded']||!_0x2ef30e['_isDataLoaded'])return!0x1;const _0x1ef69a=new Set(Object['keys'](_0x3c9239['attributes'])),_0x162783=new Set(Object['keys'](_0x2ef30e['attributes']));if(_0x1ef69a['delete']('groupId'),_0x162783['delete']('groupId'),0x0==_0x1ef69a['size']&&0x0==_0x162783['size'])return!0x0;if(_0x1ef69a['size']!=_0x162783['size'])return!0x1;const _0x15bbb0={..._0x3c9239['attributes']},_0x79e450={..._0x2ef30e['attributes']};return delete _0x15bbb0['groupId'],delete _0x79e450['groupId'],JSON['stringify'](_0x15bbb0)==JSON['stringify'](_0x79e450);}function qt(_0x566711,_0x1d6d89){const _0x176fb1=zt(_0x566711['attributes']),_0x46da23=zt(_0x1d6d89);if(!_0x566711['_isDataLoaded'])return!0x1;for(const _0x35be5c of Object['keys'](_0x46da23))if(!_0x4d1bff(_0x176fb1[_0x35be5c],_0x46da23[_0x35be5c]))return!0x1;return!0x0;}function zt(_0x36cbd0){const _0x4ad4b4=Object['assign']({},_0x36cbd0);return delete _0x4ad4b4['skipNestingCheck'],delete _0x4ad4b4['tablePasteChainId'],_0x4ad4b4;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0xecfd75(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3bed93,_0x5665ed,_0x3a13b0,_0x4f5dcb){super(),this['model']=_0x5665ed,this['view']=_0x3a13b0,this['commentThreadController']=_0x4f5dcb,this['_editor']=_0x3bed93,this['_acceptCommand']=_0x3bed93['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3bed93['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x45f89d,_0x112b22)=>_0x45f89d||_0x112b22),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5027b1=>_0x5027b1&&this['_editor']['model']['canEditAt'](_0x5665ed['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4ae5c2=>_0x4ae5c2&&this['_editor']['model']['canEditAt'](_0x5665ed['getRanges']())),this['_pendingAction']=null,_0x3a13b0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3a13b0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3a13b0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3a13b0,'change:isDirty',()=>{_0x3a13b0['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 _0x26774e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x26774e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x35fcbe{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x236351,_0x29a445,_0x1ae38f,_0x2aa725){super(_0x236351),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4d57e8(_0x236351,o(_0x236351,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x29a445['authoredAt']),this['bind']('authoredAt')['to'](_0x29a445),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',_0x29a445,'authoredAt',this,'descriptionParts',(_0x577c81,_0x1f84d1,_0x5d191d)=>{const _0x18b276=_0x5d191d['map'](_0x5ccbd5=>ls(_0x5ccbd5['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x577c81-0x1,_0x29a445['author']['name'],_0x1f84d1?_0x2aa725['formatDateTime'](_0x1f84d1):'',new DOMParser()['parseFromString'](_0x18b276,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3700b4(),this['focusTracker']=new _0x2d9544(),this['keystrokes']=new _0xfa6b48(),this['focusCycler']=new _0x815bc6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x26107b=>_0x26107b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x29a445,this['_localUser']=_0x1ae38f,this['_config']=_0x2aa725,_0x2aa725['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x136a89(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x51573c}=this['_config'];this['commentsListView']=new _0x51573c(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',_0x39fc4f=>_0x39fc4f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x563426,_0x433667)=>_0x563426||!!_0x433667);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4d2785}=this['_config'],_0x5355fe=new _0x4d2785(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4273d3=_0x5355fe['commentInputView'];return _0x5355fe['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4273d3,'value',(_0x8ca762,_0x92045d,_0x25acab)=>!!_0x25acab||_0x8ca762&&!_0x92045d),_0x4273d3['on']('submit',(_0x2358ac,_0x533616)=>{this['fire']('addComment',_0x533616),_0x4273d3['editor']['setData']('');}),_0x4273d3['on']('cancel',()=>this['focus']()),_0x4273d3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5355fe;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1e6e3b,_0x44f11c,_0x585970,_0x403127){super(_0x1e6e3b,_0x44f11c,_0x585970,_0x403127),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x199477=>_0x199477&&_0x199477[0x0]?_0x199477[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x39691f,_0xf7a5d2)=>{let _0x488881='';for(const _0x374b2b of _0x39691f)_0x488881+='<p>'+ls(_0x374b2b['content'],_0x374b2b['color'])+'</p>';return _0xf7a5d2?_0x488881:_0x5b6ce9(_0x488881,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x403127['SuggestionView'](_0x1e6e3b,_0x44f11c,{'formatDateTime':_0x403127['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 _0xe67361=this['bindTemplate'],_0x450a06=[this['suggestionView']];return this['commentsListView']&&_0x450a06['push'](this['commentsListView']),this['commentThreadInputView']&&_0x450a06['push'](this['commentThreadInputView']),_0x450a06['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xe67361['if']('isActive','ck-suggestion-wrapper--active'),_0xe67361['to']('type',_0x1a5543=>'ck-suggestion-'+_0x1a5543),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':_0xe67361['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x450a06};}['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 _0x35fcbe{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x28d971,_0x45f5eb,_0x1cf9f0){super(_0x28d971),this['_model']=_0x45f5eb,this['_config']=_0x1cf9f0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x45f5eb),this['acceptButton']=this['_createButton'](o(_0x28d971,'Accept\x20suggestion'),_0x24919e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x28d971,'Discard\x20suggestion'),_0x24919e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2251ad(_0x28d971,_0x45f5eb['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3700b4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2d9544(),this['keystrokes']=new _0xfa6b48(),this['focusCycler']=new _0x815bc6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xee353c=>_0xee353c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2ac768=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2ac768['innerHTML']=this['description'],this['on']('change:description',(_0x4958c3,_0x2726f1,_0x466645)=>{_0x2ac768['innerHTML']=_0x466645;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x449ba9=this['bindTemplate'],_0x753af3=[{'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':_0x449ba9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x449ba9['to']('authoredAt',_0x2cc9d9=>this['_config']['formatDateTime'](_0x2cc9d9))}]}]},{'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']&&_0x753af3['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':_0x753af3}]};}['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'](_0x3370e2,_0x128284,_0x27d883,_0x2d09a2,_0x4ac503){const _0x2454b4=new _0x1b29a6(this['locale']);return _0x2454b4['set']({'label':_0x3370e2,'icon':_0x128284,'tooltip':!0x0,'tooltipPosition':_0x4ac503}),_0x2454b4['extendTemplate']({'attributes':{'class':_0x27d883}}),_0x2454b4['on']('execute',()=>{this['fire'](_0x2d09a2,this['_model']['id']);}),_0x2454b4;}['_setupKeyboardNavigation'](){const _0x4ecae2=this['element'];this['keystrokes']['listenTo'](_0x4ecae2);for(const _0x4371f6 of this['focusables'])this['focusTracker']['add'](_0x4371f6['element']),this['keystrokes']['listenTo'](_0x4371f6['element']);this['keystrokes']['set']('enter',(_0x1e5db7,_0x161429)=>{_0x4ecae2===_0x1e5db7['target']&&(this['focusCycler']['focusFirst'](),_0x161429());}),this['keystrokes']['set']('esc',(_0x902a55,_0x268b7e)=>{_0x4ecae2!==_0x902a55['target']&&(this['focus'](),_0x268b7e());});}}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 _0x2be873{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x10e3b2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x194c57){super(_0x194c57),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5244b8=this['editor']['config'];_0x5244b8['define']('trackChanges.SuggestionThreadView',re),_0x5244b8['define']('trackChanges.SuggestionView',ce),_0x5244b8['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5244b8['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xbe57f1,_0x821c33){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x189208,_0x5aaf03]of this['_handleControllerBuffer']){const _0xd2fe27=this['_suggestionToController']['has'](_0x189208);_0xd2fe27||_0x5aaf03?_0xd2fe27&&_0x5aaf03&&this['_destroyController'](_0x189208):this['_initializeController'](_0x189208);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xbe57f1,_0x821c33);}['init'](){const _0x351623=this['editor'],_0x3e5250=_0x351623['plugins']['get']('TrackChangesEditing'),_0x22d587=_0x351623['plugins']['get']('Annotations'),_0x41348e=_0x351623['plugins']['get']('EditorAnnotations'),_0x4ac80e=_0x351623['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x41348e['addSourceCollector'](()=>{const _0x9d863e=[];for(const [_0x6c5e21,_0x347ab7]of Array['from'](this['_suggestionToController'])){const _0x24fbbf=_0x6c5e21['getAllAdjacentSuggestions'](),_0x5a9abe=[];for(const _0x2e020a of _0x24fbbf){if(!_0x2e020a['isInContent'])continue;if(_0x2e020a['isMultiRange']){_0x5a9abe['push'](..._0x2e020a['getRanges']());continue;}const _0x3755c7=_0x2e020a['getFirstRange']();if(_0x5a9abe['length']>0x0){const _0x137fcb=_0x5a9abe[0x0]['getJoined'](_0x3755c7);if(_0x137fcb){_0x5a9abe[0x0]=_0x137fcb;continue;}}_0x5a9abe['push'](_0x3755c7);}_0x9d863e['push']([_0x347ab7['view'],_0x5a9abe]);}return _0x9d863e;}),this['listenTo'](_0x3e5250,'suggestionLoaded',(_0x5c472a,_0x50e035)=>{this['listenTo'](_0x50e035,'change:previous',(_0x4b1259,_0x38c5a3,_0x27ef87,_0x47a056)=>{_0x50e035['isInContent']&&(null==_0x27ef87?(this['_updateController'](_0x47a056['head']),this['_handleSuggestionControllerDelayed'](_0x50e035,!0x1)):(this['_updateController'](_0x27ef87['head']),null==_0x47a056&&this['_handleSuggestionControllerDelayed'](_0x50e035,!0x0)));}),null!==_0x50e035['previous']?this['_updateController'](_0x50e035['head']):this['_handleSuggestionControllerDelayed'](_0x50e035,!0x1);}),this['listenTo'](_0x3e5250,'suggestionUnloaded',(_0x4ab2cb,_0x4ca8da,_0x258866)=>{this['stopListening'](_0x4ca8da,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4ca8da),this['_suggestionToController']['has'](_0x4ca8da)&&this['_destroyController'](_0x4ca8da),_0x258866&&this['_updateController'](_0x258866['head']);}),this['listenTo'](_0x3e5250,'suggestionChanged',(_0xd30bc3,_0x246def)=>{this['_updateController'](_0x246def);}),this['listenTo'](_0x22d587,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4ac80e,'addComment',(_0x3c9e11,{threadId:_0x59481d,isFromAdapter:_0x3317c8})=>{if(_0x3317c8||!_0x3e5250['hasSuggestion'](_0x59481d))return;const _0x79cfc8=_0x3e5250['getSuggestion'](_0x59481d);this['_suggestionToController']['get'](_0x79cfc8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x317045=this['editor']['plugins']['get']('Annotations'),_0x457ae7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x302ca3=Array['from'](_0x317045['activeAnnotations'],_0x24bbfe=>_0x24bbfe['innerView'])['filter'](_0x424a69=>this['_viewToController']['has'](_0x424a69)),_0x29d949=[];for(const _0x432c36 of _0x302ca3){const _0x3179c4=this['_viewToController']['get'](_0x432c36)['model']['getAllAdjacentSuggestions']();_0x29d949['push'](..._0x3179c4['reduce']((_0x30a516,_0x24f4de)=>[..._0x30a516,..._0x24f4de['getMarkerNames']()],[]));}_0x457ae7['activeMarkers']=_0x29d949;}['_addUIComponentsToFactory'](){const _0x3cf014=this['editor'],_0x2fb4c1=_0x3cf014['locale'],_0x227caf=o(_0x2fb4c1,'Track\x20changes'),_0x2d3a43=new Wt([{'type':'switchbutton','model':new _0xe79664({'withText':!0x0,'isToggleable':!0x0,'label':_0x227caf,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe79664({'withText':!0x0,'label':o(_0x2fb4c1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe79664({'withText':!0x0,'label':o(_0x2fb4c1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe79664({'withText':!0x0,'label':o(_0x2fb4c1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe79664({'withText':!0x0,'label':o(_0x2fb4c1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x845e41 of _0x2d3a43)if(me(_0x845e41)){const _0x26ff18=_0x3cf014['commands']['get'](_0x845e41['model']['commandName']);_0x845e41['model']['bind']('isOn','isEnabled')['to'](_0x26ff18,'value','isEnabled');}_0x3cf014['ui']['componentFactory']['add']('trackChanges',_0x594d5d=>this['_createToolbarButton'](_0x594d5d,_0x2d3a43,_0x227caf)),_0x3cf014['ui']['componentFactory']['add']('menuBar:trackChanges',_0x374ec0=>this['_createMenuBarMenu'](_0x374ec0,_0x2d3a43,_0x227caf));}['_createToolbarButton'](_0x36a769,_0x56e05e,_0x156a74){const _0x10e106=Qt(_0x36a769,_0x5e8136),_0x55e860=this['editor']['commands']['get']('trackChanges');_0x10e106['buttonView']['set']({'tooltip':_0x156a74,'label':_0x156a74,'icon':he}),_0x10e106['buttonView']['bind']('isOn')['to'](_0x55e860,'value'),_0x10e106['buttonView']['on']('execute',()=>{_0x55e860['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x10e106,_0x56e05e,{'role':'menu'});const _0x2bdaa2=[];for(const _0x121786 of _0x56e05e)me(_0x121786)&&_0x2bdaa2['push'](this['editor']['commands']['get'](_0x121786['model']['commandName']));const _0x3cc33c=_0x10e106['buttonView'];return _0x3cc33c['actionView']['unbind']('isEnabled'),_0x3cc33c['arrowView']['unbind']('isEnabled'),_0x3cc33c['actionView']['bind']('isEnabled')['to'](_0x55e860,'isEnabled'),_0x3cc33c['arrowView']['bind']('isEnabled')['toMany'](_0x2bdaa2,'isEnabled',(..._0x245e60)=>_0x245e60['some'](_0x4929bc=>_0x4929bc)),_0x10e106['on']('execute',_0x544860=>{this['editor']['execute'](_0x544860['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x10e106;}['_createMenuBarMenu'](_0x37f8c8,_0x482c20,_0x1fbbef){const _0x134e0e=new Yt(_0x37f8c8),_0x29a303=this['editor']['commands']['get']('trackChanges');_0x134e0e['buttonView']['set']({'label':_0x1fbbef,'icon':he});const _0x510768=new Zt(_0x37f8c8);for(const _0x1eb2db of _0x482c20){if('separator'==_0x1eb2db['type']){_0x510768['items']['add'](new Xt(_0x37f8c8));continue;}const _0x23e564=new te(_0x37f8c8,_0x134e0e),_0x7ad0c5=new _0x14497f(_0x37f8c8),_0x796cb3=_0x1eb2db['model'];_0x7ad0c5['bind'](...Object['keys'](_0x796cb3))['to'](_0x796cb3),_0x7ad0c5['delegate']('execute')['to'](_0x134e0e),_0x7ad0c5['on']('execute',()=>{this['editor']['execute'](_0x796cb3['commandName']),this['editor']['editing']['view']['focus']();}),_0x23e564['children']['add'](_0x7ad0c5),_0x510768['items']['add'](_0x23e564);}return _0x134e0e['bind']('isEnabled')['to'](_0x29a303,'isEnabled'),_0x134e0e['panelView']['children']['add'](_0x510768),_0x134e0e;}['_initializeController'](_0x3a6a4e){const _0x54c07a=this['editor'],_0x35cc6a=_0x54c07a['config'],_0x246984=_0x54c07a['plugins']['get']('Annotations'),_0x18e9fa=_0x54c07a['plugins']['get']('CommentsRepository'),_0x4a6462=_0x54c07a['plugins']['get']('EditorAnnotations'),_0x4cc353=_0x54c07a['plugins']['get'](_0x10e3b2)['me'],_0x6eab91=_0x35cc6a['get']('trackChanges')['SuggestionThreadView'],_0x132491=_0x35cc6a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2850d0,CommentThreadInputView:_0x2d9ea4}=_0x54c07a['plugins']['get']('CommentsUI');let _0x539f7e,_0x2981ec,_0x4ffb45;this['_annotationViews']['has'](_0x3a6a4e['id'])?(_0x2981ec=this['_annotationViews']['get'](_0x3a6a4e['id']),_0x539f7e=_0x2981ec['mainView']):(_0x539f7e=new _0x6eab91(_0x54c07a['locale'],_0x3a6a4e,_0x4cc353,{'disableComments':this['_disableComments'],'editorConfig':_0x35cc6a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x35cc6a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x35cc6a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x35cc6a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2e8695(_0x35cc6a['get']('locale')),'CommentView':_0x35cc6a['get']('comments')['CommentView'],'CommentsListView':_0x2850d0,'CommentThreadInputView':_0x2d9ea4,'SuggestionView':_0x132491}),_0x539f7e['suggestionView']['acceptButton']['on']('execute',()=>{_0x54c07a['editing']['view']['focus']();}),_0x539f7e['suggestionView']['discardButton']['on']('execute',()=>{_0x54c07a['editing']['view']['focus']();}),_0x2981ec=_0x246984['createAnnotationView'](this['editor']['locale'],_0x539f7e),_0x2981ec['bind']('isDirty')['to'](_0x539f7e,'isDirty'),_0x2981ec['bind']('length')['to'](_0x539f7e),_0x2981ec['bind']('type')['to'](_0x539f7e,'type',_0x485bf9=>'suggestion-'+_0x485bf9),_0x539f7e['on']('escape',()=>{_0x4ffb45['fire']('escape');}),this['_annotationViews']['set'](_0x3a6a4e['id'],_0x2981ec));const _0x3618eb=_0x18e9fa['createCommentThreadController'](_0x3a6a4e['commentThread'],_0x539f7e),_0x51d417=new ae(_0x54c07a,_0x3a6a4e,_0x539f7e,_0x3618eb),_0x4c0124=_0x3a6a4e['getAllAdjacentSuggestions']()['filter'](_0x2b25ed=>_0x2b25ed['isInContent']);_0x539f7e['descriptionParts']=_0x54c07a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4c0124),this['_suggestionToController']['set'](_0x3a6a4e,_0x51d417),this['_viewToController']['set'](_0x539f7e,_0x51d417),_0x4ffb45=_0x246984['createAnnotation']({'view':_0x2981ec,'target':()=>{const _0x598786=[],_0x35d382=_0x3a6a4e['getAllAdjacentSuggestions']()['filter'](_0x425e76=>_0x425e76['isInContent']);for(const _0x4fdd28 of _0x35d382)_0x598786['push'](..._0x4fdd28['getMarkers']());return _0x1d452d(_0x54c07a['editing'],_0x598786);},'type':()=>'suggestion-'+_0x51d417['view']['type']}),_0x18e9fa['_bindAnnotationToEditors'](_0x539f7e,_0x4ffb45),_0x246984['add'](_0x4ffb45),_0x4a6462['registerAnnotation'](_0x4ffb45);}['_destroyController'](_0x3c0956){const _0x1caf52=this['editor']['plugins']['get']('CommentsRepository'),_0x53d75d=this['editor']['plugins']['get']('Annotations'),_0x271d6f=this['_suggestionToController']['get'](_0x3c0956),_0x2ba09f=_0x271d6f['view'],_0x3c852d=_0x53d75d['getByInnerView'](_0x2ba09f);_0x1caf52['_unbindEditors'](_0x2ba09f),_0x3c852d&&_0x53d75d['remove'](_0x3c852d),this['_suggestionToController']['delete'](_0x3c0956),this['_viewToController']['delete'](_0x2ba09f),_0x271d6f['destroy']();}['_updateController'](_0x2ab972){if(!_0x2ab972['isInContent']||!this['_suggestionToController']['has'](_0x2ab972))return;const _0x1d3d0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20e6eb=this['_suggestionToController']['get'](_0x2ab972),_0x1649a6=_0x2ab972['getAllAdjacentSuggestions']();_0x20e6eb['view']['descriptionParts']=_0x1d3d0a['descriptionFactory']['getDescriptions'](_0x1649a6);}['destroy'](){for(const _0x26f6af of this['_suggestionToController']['keys']())this['_destroyController'](_0x26f6af);for(const _0x1376a4 of this['_annotationViews']['values']())_0x1376a4['mainView']['destroy']();super['destroy']();}}function me(_0x2fa636){return'model'in _0x2fa636;}class k extends _0x2be873{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x1f1a48){this['editor']['plugins']['get'](p)['adapter']=_0x1f1a48;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2aa517){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2aa517);}['getSuggestions']({skipNotAttached:_0x2433e3=!0x1,toJSON:_0x35f63a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2433e3,'toJSON':_0x35f63a});}['getSuggestion'](_0x2f247d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2f247d);}}const T=['Pagination'];class P extends _0x2be873{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x541848=this['editor'];if(_0x541848['config']['define']('trackChangesData.editorCreator',_0x476188=>{const _0x5ba2c6=_0x541848['model']['document']['getRootNames']()['reduce']((_0x24e3c3,_0xff70af)=>(_0x24e3c3[_0xff70af]='',_0x24e3c3),{});return _0x541848['constructor']['create'](_0x5ba2c6,_0x476188);}),'function'!=typeof _0x541848['config']['get']('trackChangesData')['editorCreator'])throw new _0x9ee824('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x29574e){return N(this['editor'],!0x0,_0x29574e);}['getDataWithDiscardedSuggestions'](_0x72eecd){return N(this['editor'],!0x1,_0x72eecd);}}class D extends _0x2be873{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x129548){super(_0x129548),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(_0x569f80){return void 0x0!==_0x569f80['getRootsAttributes'];}async function N(_0x40593c,_0x5dea89,_0x31684b){const _0x1c2f3d=_0x36c3fd(_0x40593c,T);_0x1c2f3d['plugins']['push'](p,D),_0x1c2f3d['rootsAttributes']=v(_0x40593c)?_0x40593c['getRootsAttributes']():void 0x0;const _0x58c880=document['createDocumentFragment'](),_0x6fd9e3=_0x40593c['config']['get']('trackChangesData')['editorCreator'],_0x21f26b=await _0x6fd9e3(_0x1c2f3d,()=>function(_0x13a212){const _0x4eb568=document['createElement']('div');return _0x13a212['appendChild'](_0x4eb568),_0x4eb568;}(_0x58c880));!function(_0x1c4564,_0x53ae89){const _0x3b331d=_0x1c4564['model']['document']['getRootNames']()['reduce']((_0x5de5c2,_0x3dcf73)=>(_0x5de5c2[_0x3dcf73]=_0x1c4564['data']['get']({'rootName':_0x3dcf73}),_0x5de5c2),{}),_0x5cfd65=_0x1c4564['plugins']['get']('Users')['users']['map'](_0x1b9b27=>({'id':_0x1b9b27['id'],'name':_0x1b9b27['name']})),_0x2f2f92=_0x1c4564['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x125eb1=_0x1c4564['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4a5466=_0x53ae89['plugins']['get']('Users'),_0xa8d8c9=_0x53ae89['plugins']['get']('TrackChangesEditing'),_0x53da7d=_0x53ae89['plugins']['get']('CommentsRepository');for(const _0x274696 of _0x53da7d['getCommentThreads']())_0x274696['remove']();for(const _0x32bd41 of _0x5cfd65)_0x4a5466['getUser'](_0x32bd41['id'])||_0x4a5466['addUser'](_0x32bd41);_0x4a5466['me']||_0x4a5466['useAnonymousUser']();for(const _0x163242 of _0x125eb1)_0x53da7d['addCommentThread'](_0x163242);for(const _0x43afa3 of _0x2f2f92)_0xa8d8c9['addSuggestionData'](_0x43afa3);_0x53ae89['data']['set'](_0x3b331d);}(_0x40593c,_0x21f26b),_0x21f26b['execute'](_0x5dea89?'acceptAllSuggestions':'discardAllSuggestions');const _0x6e16cc=v(_0x21f26b)?_0x21f26b['getFullData'](_0x31684b):_0x21f26b['data']['get'](_0x31684b);return await _0x21f26b['destroy'](),_0x6e16cc;}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 _0x488752,PendingActions as _0x5bce31,icons as _0x1c3b1a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2a8e99,ObservableMixin as _0xe943fa,uid as _0x3309d5,insertToPriorityArray as _0x41ccb9,priorities as _0x30ed80,logWarning as _0x3bdc4b,getEnvKeystrokeText as _0x292fdd,FocusTracker as _0x5836c7,KeystrokeHandler as _0xaf721f,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xf31189,View as _0x4bb188,ViewCollection as _0x5b5e4d,FocusCycler as _0x486be6,ViewModel as _0x2feba1,createDropdown as Qt,SplitButtonView as _0x390abd,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5c7349}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x574e89,hashObject as _0x3c9b9d,surroundingMarkersDetector as _0x8d8bfa,FOCUS_ANNOTATION_KEYSTROKE as _0x524270,AriaDescriptionView as _0x4167f2,setupThreadKeyboardNavigation as _0x767110,trimHtml as _0x4acbd0,UserView as _0x39c45e,LateFocusButtonView as _0xaadc98,getDateTimeFormatter as _0x252609,getAllMarkersDomElementsSorted as _0x364a65,sanitizeEditorConfig as _0x573cfe}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2cb6f1,LiveRange as _0xd05373,LivePosition as _0x4e5e66}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4deab7,toWidget as _0x1f49eb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4d329f,set as _0x27de68,isEqual as _0x127c5c,unset as _0x4e18af,omit as Rt}from'lodash-es';import{Delete as _0x4e3c76,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x13b7f2,ShiftEnter as _0x2d82c0}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x206b96,_0x383ab9){super(_0x206b96),this['_enabledCommands']=_0x383ab9,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 _0x4ab009 of this['editor']['commands']['commands']())_0x4ab009['affectsData']&&!this['_enabledCommands']['has'](_0x4ab009)&&_0x4ab009['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xb08a6c of this['editor']['commands']['commands']())_0xb08a6c['affectsData']&&!this['_enabledCommands']['has'](_0xb08a6c)&&_0xb08a6c['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x6c553b,_0x42ce28){super(_0x6c553b),this['_suggestions']=_0x42ce28,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x437701){const _0x2717bb=this['_suggestions']['get'](_0x437701);if(!_0x2717bb)throw new _0x2a8e99('track-changes-accept-suggestion-not-found',this);const _0x2fc9e2=_0x2717bb['getRanges']();this['editor']['model']['canEditAt'](_0x2fc9e2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2717bb);}}class O extends ts{['_suggestions'];constructor(_0x55a12a,_0x55f0b8){super(_0x55a12a),this['_suggestions']=_0x55f0b8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x30b574){const _0x3d7350=this['_suggestions']['get'](_0x30b574);if(!_0x3d7350)throw new _0x2a8e99('track-changes-discard-suggestion-not-found',this);const _0x3d7365=_0x3d7350['getRanges']();this['editor']['model']['canEditAt'](_0x3d7365)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3d7350);}}function ls(_0xc0205e,_0x842056){let _0x1f5a1d='';return _0x1f5a1d+=_0xc0205e['split']('*')['map']((_0x7fc709,_0x12eb54)=>_0x12eb54%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x7fc709)+'</span>':nn(_0x7fc709))['join'](''),_0x842056&&(_0x1f5a1d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x842056['value']+'\x22\x20title=\x22'+_0x842056['title']+'\x22></span>'),_0x1f5a1d;}function nn(_0x477220){const _0x506cbb=document['createElement']('span');return _0x506cbb['innerText']=_0x477220,_0x506cbb['innerHTML'];}function ss(_0x4e38ba){return _0x4e38ba['sort']((_0xbf1175,_0x4d260c)=>'deletion'==_0xbf1175['type']&&'deletion'!=_0x4d260c['type']?-0x1:'deletion'!=_0xbf1175['type']&&'deletion'==_0x4d260c['type']?0x1:0x0);}function to(_0x4df360,_0x4a4494){let _0x22d40d,_0x4e1ce=0x0;const _0x4370ec=[],_0xad29ee=_0x4a4494['schema'];for(;_0x4e1ce<_0x4df360['length'];){const _0x1ade30=_0x4df360[_0x4e1ce],_0x341f35=_0x4df360[_0x4e1ce+0x1];_0x22d40d||(_0x22d40d=_0x4a4494['createPositionBefore'](_0x1ade30)),on(_0x4a4494,_0x1ade30,_0x341f35)||(_0x4370ec['push'](_0x4a4494['createRange'](_0x22d40d,_0xad29ee['isObject'](_0x1ade30)?_0x4a4494['createPositionAfter'](_0x1ade30):_0x4a4494['createPositionAt'](_0x1ade30,'end'))),_0x22d40d=null),_0x4e1ce++;}return _0x4370ec;}function on(_0x22edb8,_0x5e4415,_0x2aad35){if(!_0x2aad35)return!0x1;const _0x286d3e=_0x22edb8['createPositionAfter'](_0x5e4415),_0x4e15b4=_0x22edb8['createPositionBefore'](_0x2aad35);return _0x286d3e['isTouching'](_0x4e15b4);}function rs(_0x27b553,_0x4dbae0,_0x749513){for(;_0x749513['length'];){const _0x5bf6a2=_0x749513['splice'](0x0,0x64);_0x27b553['change'](()=>{for(const _0x4cceab of _0x5bf6a2)_0x4cceab['isInContent']&&_0x4dbae0['execute'](_0x4cceab['id']);});}}class R extends ts{['_command'];['_suggestions'];constructor(_0x3a184c,_0x1cd2d6,_0x50e1e2){super(_0x3a184c),this['_command']=_0x1cd2d6,this['_suggestions']=_0x50e1e2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4216a3=Array['from'](this['_suggestions']['values']())['some'](_0x2240e0=>_0x2240e0['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4216a3;}['execute'](){const _0x504960=ss(Array['from'](this['_suggestions']['values']()));for(const _0x53772a of _0x504960){const _0x285793=_0x53772a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x285793))return;}rs(this['editor']['model'],this['_command'],_0x504960);}}class E extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2ed105,_0x56aa38,_0xaf8aeb){super(_0x2ed105),this['_command']=_0x56aa38,this['_suggestions']=_0xaf8aeb,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3df8ec=this['editor']['model']['document']['selection'],_0x17357c=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4e848b,_0x571c72){const _0x353964=Array['from'](_0x4e848b['getRanges']()),_0x461757=new Set();for(const _0x5eec9e of _0x571c72)if(_0x5eec9e['isInContent']){for(const _0x312cb4 of _0x353964)for(const _0x4a1914 of _0x5eec9e['getRanges']())(_0x312cb4['isIntersecting'](_0x4a1914)||_0x4e848b['isCollapsed']&&!_0x5eec9e['isMultiRange']&&_0x5eec9e['next']&&_0x4a1914['end']['isTouching'](_0x312cb4['start']))&&_0x461757['add'](_0x5eec9e);}return _0x461757;}(_0x3df8ec,_0x17357c),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x298e4c=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1253aa of _0x298e4c){const _0x2cc8f6=_0x1253aa['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2cc8f6))return;}rs(this['editor']['model'],this['_command'],_0x298e4c);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xe943fa(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x35253f,_0x497917){super(),this['id']=_0x497917['id'],this['type']=_0x497917['type'],this['subType']=_0x497917['subType']||null,this['author']=_0x497917['author'],this['creator']=_0x497917['creator']||_0x497917['author'],this['isExternal']=Boolean(_0x497917['attributes']&&_0x497917['attributes']['@external']),this['data']=null,this['_model']=_0x35253f,this['_onAccept']=_0x497917['onAccept'],this['_onDiscard']=_0x497917['onDiscard'],this['_onAttributesChange']=_0x497917['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x497917['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 _0x41a1a8=this;for(;_0x41a1a8['previous'];)_0x41a1a8=_0x41a1a8['previous'];return _0x41a1a8;}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'](_0xf3fc1){this['_markerNames']['add'](_0xf3fc1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x9afb87=>this['_model']['markers']['get'](_0x9afb87))['filter'](_0x1e9bf0=>_0x1e9bf0);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1d7460=>{for(const _0x3c97c9 of this['getMarkers']())_0x1d7460['removeMarker'](_0x3c97c9);}),this['_markerNames']['clear']();}['removeMarker'](_0xdd5f13){this['_model']['change'](_0x99e810=>{_0x99e810['removeMarker'](_0xdd5f13);}),this['_markerNames']['delete'](_0xdd5f13);}['addRange'](_0x17a1ec){const _0x4910d4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4910d4),this['_model']['change'](_0x5c4d6f=>{_0x5c4d6f['addMarker'](_0x4910d4,{'range':_0x17a1ec,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x43c471){for(const _0x2cbbb9 of this['getRanges']())if(_0x2cbbb9['isIntersecting'](_0x43c471))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5cb81d=>_0x5cb81d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1fcbed,_0x5880db)=>[..._0x1fcbed,..._0x5880db['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x24914a=this['getRanges']();if(0x1!=_0x24914a['length'])return null;const _0x1dd929=_0x24914a[0x0],_0x3eb652=_0x1dd929['start']['nodeAfter'],_0x3ade0f=_0x1dd929['end']['nodeBefore'];return _0x3eb652 instanceof _0x2cb6f1?_0x3eb652!=_0x3ade0f?null:_0x3eb652: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 _0x44f803=[];let _0x1757b9=this['head'];for(;_0x1757b9;)_0x44f803['push'](_0x1757b9),_0x1757b9=_0x1757b9['next'];return _0x44f803;}['setAttribute'](_0x51f93c,_0x347dfd){const _0xf7c528=_0x4d329f(this['attributes']);_0x27de68(_0xf7c528,_0x51f93c,_0x347dfd),_0x127c5c(_0xf7c528,this['attributes'])||(this['attributes']=_0xf7c528,this['_onAttributesChange'](_0xf7c528));}['removeAttribute'](_0x4e54e0){const _0x7949e4=_0x4d329f(this['attributes']);_0x4e18af(_0x7949e4,_0x4e54e0),_0x127c5c(_0x7949e4,this['attributes'])||(this['attributes']=_0x7949e4,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 _0x3309d5()['substr'](0x1,0x5);}}function o(_0x3036da,_0xa8753e,_0x9329d1){const t=_0x3036da['t'];switch(_0xa8753e){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',_0x9329d1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x9329d1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x9329d1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x9329d1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x9329d1);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',_0x9329d1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x9329d1);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',_0x9329d1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x9329d1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x9329d1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x9329d1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x9329d1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x9329d1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x9329d1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x9329d1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x9329d1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x9329d1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x9329d1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x9329d1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x9329d1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x9329d1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x9329d1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x9329d1);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'},_0x9329d1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x9329d1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x9329d1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x9329d1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x9329d1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x9329d1);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'},_0x9329d1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x9329d1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x9329d1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x9329d1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x9329d1);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'},_0x9329d1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x9329d1);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'},_0x9329d1);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'},_0x9329d1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x9329d1);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'},_0x9329d1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x9329d1);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'},_0x9329d1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x9329d1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x9329d1);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'},_0x9329d1);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'},_0x9329d1);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'},_0x9329d1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x9329d1);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'},_0x9329d1);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'},_0x9329d1);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'},_0x9329d1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xa8753e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3f5bda,_0x1ab4d5){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3f5bda,this['_locale']=_0x1ab4d5;}['getDescriptions'](_0x149465){const _0x3c4ea7=[],_0x3fcaa5=new Set(),_0x5e0de2=new Set();for(let _0x22c563=0x0;_0x22c563<_0x149465['length'];_0x22c563++){const _0x417e11=_0x149465[_0x22c563];if(!_0x417e11['isInContent'])continue;const _0x45fb53=this['_handleCustomCallbackDescription'](_0x417e11);if(_0x45fb53){if(null!=_0x417e11['subType']){if(_0x3fcaa5['has'](_0x417e11['subType']))continue;_0x3fcaa5['add'](_0x417e11['subType']);}_0x3c4ea7['push'](_0x45fb53);}else{if('attribute'!=_0x417e11['type'])'insertion'!=_0x417e11['type']&&'deletion'!=_0x417e11['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3c4ea7,_0x417e11,_0x149465[_0x22c563+0x1]);else{const _0x15d4c4=_0x417e11['data']['key'];if(_0x5e0de2['has'](_0x15d4c4))continue;_0x5e0de2['add'](_0x417e11['data']['key']),_0x15d4c4==m?this['_handleRenameSuggestionDescription'](_0x3c4ea7,_0x417e11):this['_handleAttributeSuggestionDescription'](_0x3c4ea7,_0x417e11);}}}return this['_resolveDescriptionItems'](_0x3c4ea7);}['registerDescriptionCallback'](_0x99bbb){this['_customCallbacks']['push'](_0x99bbb);}['registerElementLabel'](_0x26c3d9,_0x1a43d2,_0x1e6dbe=_0x30ed80['normal']){'function'==typeof _0x26c3d9?_0x41ccb9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x26c3d9,'label':_0x1a43d2,'priority':_0x1e6dbe}):this['_itemLabels']['set'](_0x26c3d9,_0x1a43d2);}['registerAttributeLabel'](_0x46443f,_0x46667f){this['_attributeLabels']['set'](_0x46443f,_0x46667f);}['getItemLabel'](_0x507a72,_0x32f67a=0x1){let _0xdff72f;for(const _0xfb9dc4 of this['_itemLabelsCallbacks'])if(_0xfb9dc4['matchingCallback'](_0x507a72)){_0xdff72f=_0xfb9dc4['label'];break;}return _0xdff72f||(_0xdff72f=this['_itemLabels']['get'](_0x507a72['name'])),_0xdff72f?_0xdff72f(_0x32f67a):0x1!==_0x32f67a?_0x32f67a+'\x20'+_0x507a72['name']+'s':''+_0x507a72['name'];}['_addDescriptionItems'](_0x4cdd9f,_0x4e0fd0){const _0x389b56=_0x4e0fd0['getFirstRange']()['getWalker'](),_0x1fdd8f='insertion'==_0x4e0fd0['type']?'add':'remove';for(const _0x59d27e of _0x389b56){const _0x5f5203=_0x59d27e['item'],_0x53875b=_0x4cdd9f[_0x4cdd9f['length']-0x1];if(_0x5f5203['is']('$textProxy'))_0x53875b&&_0x53875b['type']['indexOf']('Container')>-0x1&&_0x4cdd9f['pop'](),_0x53875b&&'text'==_0x53875b['type']?_0x53875b[_0x1fdd8f]+=_0x5f5203['data']:_0x4cdd9f['push']({'type':'text','add':'add'==_0x1fdd8f?_0x5f5203['data']:'','remove':'remove'==_0x1fdd8f?_0x5f5203['data']:''});else{if(this['_schema']['isObject'](_0x5f5203)){const _0x5cc1e6=_0x5f5203;if(_0x53875b&&_0x53875b['type']['indexOf']('Container')>-0x1&&_0x4cdd9f['pop'](),'elementEnd'==_0x59d27e['type'])continue;_0x53875b&&_0x53875b['type']==_0x1fdd8f+'Object'&&_0x53875b['element']['name']==_0x5cc1e6['name']?_0x53875b['quantity']++:_0x4cdd9f['push']({'type':_0x1fdd8f+'Object','element':_0x5cc1e6,'quantity':0x1}),_0x389b56['skip'](_0x21f553=>!('elementEnd'==_0x21f553['type']&&_0x21f553['item']==_0x5f5203));}else{if(this['_schema']['checkChild'](_0x5f5203,'$text')||_0x5f5203['is']('element','softBreak')){const _0x44d868=_0x5f5203;if('add'==_0x1fdd8f&&'elementStart'==_0x59d27e['type']||'remove'==_0x1fdd8f&&'elementEnd'==_0x59d27e['type'])continue;if(_0x53875b&&-0x1==_0x53875b['type']['indexOf']('Container')){'text'==_0x53875b['type']&&(_0x53875b[_0x1fdd8f]+='\x0a');continue;}let _0x28ae30;if(_0x28ae30='add'==_0x1fdd8f?_0x44d868['nextSibling']&&!this['_schema']['isObject'](_0x44d868['nextSibling'])?_0x44d868['nextSibling']:null:_0x44d868['previousSibling']&&!this['_schema']['isObject'](_0x44d868['previousSibling'])?_0x44d868['previousSibling']:null,_0x44d868['isEmpty']||_0x28ae30&&_0x28ae30['isEmpty']){const _0x5c6711=_0x28ae30&&_0x28ae30['isEmpty']?_0x28ae30:_0x44d868;_0x53875b&&_0x53875b['type']==_0x1fdd8f+'EmptyContainer'&&_0x53875b['element']['name']==_0x5c6711['name']?_0x53875b['quantity']++:_0x4cdd9f['push']({'type':_0x1fdd8f+'EmptyContainer','element':_0x5c6711,'quantity':0x1});}else _0x4cdd9f['push']({'type':_0x1fdd8f+'Container','element':_0x44d868});}}}}}['_resolveDescriptionItems'](_0x46cda9){const _0x1222f3=this['_locale'],_0x1ab34a=[],_0xbbed99=[],_0x5c5207=[];for(const _0x215291 of _0x46cda9)switch(_0x215291['type']){case'text':if(_0x215291['add']=_0x215291['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x215291['remove']=_0x215291['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x215291['add']&&''!=_0x215291['remove']){_0x1ab34a['push']({'type':'replace','content':o(_0x1222f3,'REPLACE_TEXT',['\x22'+_0x215291['remove']+'\x22','\x22'+_0x215291['add']+'\x22'])});continue;}if(null!=_0x215291['add']['match'](/^ +$/)){_0x1ab34a['push']({'type':'insertion','content':o(_0x1222f3,'*Insert:*\x20%0',o(_0x1222f3,'ELEMENT_SPACE',_0x215291['add']['length']))});continue;}if(null!=_0x215291['remove']['match'](/^ +$/)){_0x1ab34a['push']({'type':'deletion','content':o(_0x1222f3,'*Remove:*\x20%0',o(_0x1222f3,'ELEMENT_SPACE',_0x215291['remove']['length']))});continue;}if(''!=_0x215291['add']){_0x1ab34a['push']({'type':'insertion','content':o(_0x1222f3,'*Insert:*\x20%0','\x22'+_0x215291['add']+'\x22')});continue;}_0x1ab34a['push']({'type':'deletion','content':o(_0x1222f3,'*Remove:*\x20%0','\x22'+_0x215291['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1ab34a['push']({'type':'insertion','content':o(_0x1222f3,'*Insert:*\x20%0',this['getItemLabel'](_0x215291['element'],_0x215291['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1ab34a['push']({'type':'deletion','content':o(_0x1222f3,'*Remove:*\x20%0',this['getItemLabel'](_0x215291['element'],_0x215291['quantity']))});continue;case'addContainer':_0x1ab34a['push']({'type':'insertion','content':o(_0x1222f3,'*Split:*\x20%0',this['getItemLabel'](_0x215291['element'],_0x215291['quantity']))});continue;case'removeContainer':_0x1ab34a['push']({'type':'deletion','content':o(_0x1222f3,'*Merge:*\x20%0',this['getItemLabel'](_0x215291['element'],_0x215291['quantity']))});continue;case'addFormat':_0xbbed99['push'](_0x215291['key']);continue;case'removeFormat':_0x5c5207['push'](_0x215291['key']);continue;default:_0x1ab34a['push'](_0x215291);}if(_0xbbed99['length']){const _0x3c6c32=_0xbbed99['map'](_0x3f87e0=>this['_attributeLabels']['has'](_0x3f87e0)?this['_attributeLabels']['get'](_0x3f87e0):_0x3f87e0)['join'](',\x20');_0x1ab34a['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3c6c32)});}if(_0x5c5207['length']){const _0x33ef72=_0x5c5207['map'](_0x1ddd34=>this['_attributeLabels']['has'](_0x1ddd34)?this['_attributeLabels']['get'](_0x1ddd34):_0x1ddd34)['join'](',\x20');_0x1ab34a['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x33ef72)});}return _0x1ab34a;}['_handleCustomCallbackDescription'](_0x530257){for(const _0x370f21 of this['_customCallbacks']){const _0xe9724a=_0x370f21(_0x530257);if(_0xe9724a&&'type'in _0xe9724a)return _0xe9724a;}}['_handleAttributeSuggestionDescription'](_0x92596c,_0x4afdc4){const _0x22fb93=_0x4afdc4['data'],_0x50ba13=void 0x0===_0x22fb93['newValue']?'removeFormat':'addFormat';_0x92596c['push']({'type':_0x50ba13,'key':_0x22fb93['key']});}['_handleRenameSuggestionDescription'](_0x16e275,_0xe3e122){_0x16e275['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xe3e122['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x41fb5d,_0x4fa0ae,_0xd04e10){if(this['_addDescriptionItems'](_0x41fb5d,_0x4fa0ae),_0xd04e10&&_0xd04e10['getFirstRange']()&&!_0x4fa0ae['getFirstRange']()['end']['isEqual'](_0xd04e10['getFirstRange']()['start'])){const _0x527241=_0x41fb5d[_0x41fb5d['length']-0x1],_0x845cf5='insertion'==_0x4fa0ae['type']?'add':'remove';_0x527241&&'text'==_0x527241['type']&&(_0x527241[_0x845cf5]+='\x0a');}}}class V extends _0x488752{['afterInit'](){const _0x979722=this['editor'],_0xf4a559=_0x979722['plugins']['get']('TrackChangesEditing');_0x979722['commands']['get']('showAIAssistant')&&_0xf4a559['enableCommand']('showAIAssistant');}}class U extends _0x488752{['afterInit'](){const _0x62be19=this['editor'],_0x579d2f=_0x62be19['locale'];if(!_0x62be19['plugins']['has']('AlignmentEditing'))return;const _0x536c67=_0x62be19['plugins']['get']('TrackChangesEditing');_0x536c67['enableDefaultAttributesIntegration']('alignment'),_0x536c67['registerBlockAttribute']('alignment'),_0x536c67['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x579d2f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d2221=this['editor'],_0x4b34ee=_0x5d2221['locale'];_0x5d2221['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44f3d0=>{if('formatBlock'!=_0x44f3d0['type'])return;const {data:_0x4b8b26}=_0x44f3d0;if(_0x4b8b26&&'alignment'==_0x4b8b26['commandName']){const _0x4244a6=_0x4b8b26['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4b34ee,'*Format:*\x20%0',function(_0x7d24b){switch(_0x7d24b){case'left':return o(_0x4b34ee,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4b34ee,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4b34ee,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4b34ee,'FORMAT_JUSTIFY_TEXT');}}(_0x4244a6))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x488752{['afterInit'](){const _0xc9eb9c=this['editor'],_0x4623d5=_0xc9eb9c['plugins']['get']('TrackChangesEditing'),_0x610b41=_0xc9eb9c['locale'];for(const _0x1ac7fc of ti){if(!_0xc9eb9c['plugins']['has'](_0x1ac7fc))continue;const _0x4a28d1=_0x1ac7fc['slice'](0x0,-0x7)['toLowerCase'](),_0x551ddd='FORMAT_'+_0x4a28d1['toUpperCase']();_0x4623d5['enableDefaultAttributesIntegration'](_0x4a28d1),_0x4623d5['registerInlineAttribute'](_0x4a28d1),_0x4623d5['descriptionFactory']['registerAttributeLabel'](_0x4a28d1,o(_0x610b41,_0x551ddd));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5632b3=this['editor'],_0x576fdc=_0x5632b3['locale'],_0x168305=_0x5632b3['plugins']['get']('TrackChangesEditing');function _0x1cff37(_0x534ded,_0x457f26){_0x168305['descriptionFactory']['registerDescriptionCallback'](_0x211272=>{if('formatInline'!=_0x211272['type'])return;const {data:_0x417522}=_0x211272;return _0x417522&&_0x417522['commandName']===_0x534ded?_0x417522['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x576fdc,'*Format:*\x20%0',_0x457f26)}:{'type':'format','content':o(_0x576fdc,'*Remove\x20format:*\x20%0',_0x457f26)}:void 0x0;});}_0x1cff37('bold',o(_0x576fdc,'FORMAT_BOLD')),_0x1cff37('italic',o(_0x576fdc,'FORMAT_ITALIC')),_0x1cff37('underline',o(_0x576fdc,'FORMAT_UNDERLINE')),_0x1cff37('code',o(_0x576fdc,'FORMAT_CODE')),_0x1cff37('strikethrough',o(_0x576fdc,'FORMAT_STRIKETHROUGH')),_0x1cff37('subscript',o(_0x576fdc,'FORMAT_SUBSCRIPT')),_0x1cff37('superscript',o(_0x576fdc,'FORMAT_SUPERSCRIPT'));}}class F extends _0x488752{['afterInit'](){const _0x41bab=this['editor'],_0x4dc6d4=_0x41bab['locale'];if(!_0x41bab['plugins']['has']('BlockQuoteEditing'))return;const _0x375310=_0x41bab['plugins']['get']('TrackChangesEditing'),_0x523fbb=this['editor']['commands']['get']('blockQuote');_0x375310['enableCommand']('blockQuote',(_0x37d1f1,_0x1e30d8={})=>{const _0x5de4c2=this['editor']['model']['document']['selection'],_0x1ffa76=_0x1e30d8&&void 0x0!==_0x1e30d8['forceValue']?_0x1e30d8['forceValue']:!_0x523fbb['value'];let _0x24b264=[];if(_0x1ffa76){const _0x38d0b5=Array['from'](_0x5de4c2['getSelectedBlocks']())['filter'](_0x3f2f6a=>oo(_0x3f2f6a)||function(_0x4d6aba,_0x2c2909){const _0x2d1c75=_0x2c2909['checkChild'](_0x4d6aba['parent'],'blockQuote'),_0x43b744=_0x2c2909['checkChild'](['$root','blockQuote'],_0x4d6aba);return _0x2d1c75&&_0x43b744;}(_0x3f2f6a,this['editor']['model']['schema']));_0x24b264=to(_0x38d0b5,_0x41bab['model']);}else{const _0x2ebad4=Array['from'](_0x5de4c2['getSelectedBlocks']())['filter'](_0x358049=>oo(_0x358049));_0x24b264=to(_0x2ebad4,_0x41bab['model']);}_0x41bab['model']['change'](()=>{for(const _0x40e061 of _0x24b264)_0x375310['markBlockFormat'](_0x40e061,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1ffa76}]});});}),_0x375310['descriptionFactory']['registerDescriptionCallback'](_0x272eeb=>{const {data:_0x52a384}=_0x272eeb;if(_0x52a384&&'blockQuote'==_0x52a384['commandName']){const _0x17e73b=o(_0x4dc6d4,'ELEMENT_BLOCK_QUOTE');return _0x52a384['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4dc6d4,'*Set\x20format:*\x20%0',_0x17e73b)}:{'type':'format','content':o(_0x4dc6d4,'*Remove\x20format:*\x20%0',_0x17e73b)};}});}}function oo(_0x1ae14e){return'blockQuote'==_0x1ae14e['parent']['name'];}class L extends _0x488752{['afterInit'](){const _0x500132=this['editor'];_0x500132['plugins']['has']('CaseChange')&&(_0x500132['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x500132['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x500132['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x488752{['afterInit'](){const _0x3414bd=this['editor'];_0x3414bd['commands']['get']('ckbox')&&_0x3414bd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x488752{['afterInit'](){const _0x3aaace=this['editor'];if(!_0x3aaace['plugins']['has']('CodeBlock'))return;const _0x529a4f=_0x3aaace['plugins']['get']('TrackChangesEditing'),_0x4c2a7f=_0x3aaace['locale'],_0xfca715=_0x3aaace['config']['get']('codeBlock')['languages'],_0x37df70=_0x3aaace['commands']['get']('codeBlock');_0x529a4f['enableCommand']('indentCodeBlock'),_0x529a4f['enableCommand']('outdentCodeBlock'),_0x529a4f['enableCommand']('codeBlock',(_0x5de0bd,_0x2efb2a={})=>{const _0x3a55ca=_0x3aaace['model'],_0x50b4b2=_0x3aaace['model']['document']['selection'],_0x332a05=_0x2efb2a&&void 0x0!==_0x2efb2a['forceValue']?_0x2efb2a['forceValue']:!_0x37df70['value'];let _0x212c5b;_0x2efb2a['language']||(_0x2efb2a['language']=_0xfca715[0x0]['language']),_0x212c5b=_0x332a05?Array['from'](_0x50b4b2['getSelectedBlocks']())['filter'](_0x5dd207=>eo(_0x5dd207)||function(_0x5acc48,_0x2d2c19){if(_0x5acc48['is']('rootElement')||_0x2d2c19['isLimit'](_0x5acc48))return!0x1;return _0x2d2c19['checkChild'](_0x5acc48['parent'],'codeBlock');}(_0x5dd207,_0x3a55ca['schema'])):Array['from'](_0x50b4b2['getSelectedBlocks']())['filter'](_0x4c7c0c=>eo(_0x4c7c0c));const _0x4662bb=to(_0x212c5b,_0x3a55ca);_0x3a55ca['change'](()=>{for(const _0x51865d of _0x4662bb)_0x529a4f['markBlockFormat'](_0x51865d,{'commandName':'codeBlock','commandParams':[{..._0x2efb2a,'forceValue':_0x332a05}],'formatGroupId':'blockName'});});}),(_0x529a4f['descriptionFactory']['registerElementLabel']('codeBlock',_0x3e771e=>o(_0x4c2a7f,'ELEMENT_CODE_BLOCK',_0x3e771e)),_0x529a4f['descriptionFactory']['registerDescriptionCallback'](_0x1aa7b7=>{if('formatBlock'!=_0x1aa7b7['type'])return;const _0xfba237=_0x4c2a7f['t'],{data:_0x347333}=_0x1aa7b7;if(!_0x347333||'codeBlock'!=_0x347333['commandName'])return;const _0x27c92a=_0x347333['commandParams'][0x0]['language'],_0x4375db=_0xfba237(_0xfca715['find'](_0xa45f79=>_0xa45f79['language']===_0x27c92a)['label'])['toLowerCase']();return _0x347333['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c2a7f,'*Set\x20format:*\x20%0',o(_0x4c2a7f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4375db+')')}:{'type':'format','content':o(_0x4c2a7f,'*Remove\x20format:*\x20%0',o(_0x4c2a7f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1c664a){return'codeBlock'==_0x1c664a['name'];}class q extends _0x488752{['afterInit'](){const _0x2e2ba1=this['editor'];if(!_0x2e2ba1['plugins']['has']('CommentsEditing'))return;_0x2e2ba1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x39235c,_0x245cf5,_0x5e0d81){const _0x793d53=[];for(const _0x172219 of _0x245cf5['getItems']())_0x172219['hasAttribute'](_0x39235c)&&_0x793d53['push'](_0x5e0d81['createRangeOn'](_0x172219));return _0x793d53;}function _e(_0x2ba13b,_0x4a6e16,{showActiveMarker:_0x52895d=!0x0}={}){const _0x125fd6=_0x2ba13b['plugins']['get']('TrackChangesEditing');return(_0x109dcd,_0x386d79,_0x441c3a)=>{if(!_0x441c3a['consumable']['test'](_0x386d79['markerRange'],_0x109dcd['name']))return;const _0x1e651d=_0x386d79['markerRange']['getWalker'](),_0xf69dec=_0x386d79['markerRange']['start'],_0x71835f=_0x2ba13b['model']['schema'];let _0x1d07fa=null,_0x34303e=null,_0x3a25ca=!0x1,_0x4f224a=!0x1;for(const _0x4c2604 of _0x1e651d){const _0x34ac24=_0x4c2604['item'];_0x3a25ca=_0x3a25ca||_0x71835f['isContent'](_0x34ac24);const _0x16ea6e=_0x441c3a['mapper']['toViewElement'](_0x34ac24);if(_0x16ea6e&&_0x16ea6e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4c2604['type']&&(_0x71835f['isBlock'](_0x34ac24)&&!_0x71835f['isLimit'](_0x34ac24)&&(_0x34ac24['nextSibling']||_0xf69dec['isAtEnd']?_0x1d07fa&&_0x1d07fa['parent']==_0x34ac24||(_0x1d07fa=_0x34ac24,_0x3b55fe(_0x4c2604['previousPosition']),_0x4f224a=!0x0):_0x34303e=_0x34303e||_0x4c2604['previousPosition']));}function _0x3b55fe(_0x1f82a3){const {authorId:_0x5dab54}=_0x125fd6['_splitMarkerName'](_0x386d79['markerName']),_0xabb4c3=_0x441c3a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a6e16,'data-author-id':_0x5dab54}),_0x150f7b=_0x441c3a['mapper']['toViewPosition'](_0x1f82a3);_0x52895d&&_0x125fd6['activeMarkers']['includes'](_0x386d79['markerName'])&&_0x441c3a['writer']['addClass']('ck-suggestion-marker--active',_0xabb4c3),_0x441c3a['writer']['insert'](_0x150f7b,_0xabb4c3),_0x441c3a['mapper']['bindElementToMarker'](_0xabb4c3,_0x386d79['markerName']);}_0x3a25ca||_0x4f224a||!_0x34303e||_0x3b55fe(_0x34303e);};}class z extends _0x488752{static get['requires'](){return[_0x4e3c76];}['init'](){const _0x4acd01=this['editor'],_0x3ffb2b=_0x4acd01['plugins']['get']('TrackChangesEditing');_0x3ffb2b['enableCommand']('delete');const _0x662570=_0x4acd01['commands']['get']('deleteForward');_0x3ffb2b['enableCommand']('deleteForward',(_0x2d00e3,_0x56c9ed={})=>{const _0x34c480=_0x4acd01['model']['createSelection'](_0x4acd01['model']['document']['selection']);_0x34c480['isCollapsed']&&_0x4acd01['model']['modifySelection'](_0x34c480,{'direction':'forward','unit':_0x56c9ed['unit']});const _0x26370b=_0x34c480['getFirstRange'](),_0x1b948a=_0xd05373['fromRange'](_0x26370b);let _0x435327;_0x2d00e3(_0x56c9ed),_0x435327='$graveyard'==_0x1b948a['root']['rootName']?_0x4acd01['model']['createRange'](_0x26370b['start']):_0x4acd01['model']['createRange'](_0x1b948a['start'],_0x1b948a['end']),_0x1b948a['detach'](),_0x4acd01['model']['enqueueChange'](_0x662570['buffer']['batch'],_0x358c17=>{_0x662570['buffer']['lock'](),_0x358c17['setSelection'](_0x358c17['createRange'](_0x435327['end'])),_0x662570['buffer']['unlock']();});}),_0x4acd01['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4acd01,'merge'),{'priority':'high'}),_0x4acd01['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x283689,_0x4ddd15,_0x939360)=>{_0x939360['options']['showSuggestionHighlights']&&_e(_0x4acd01,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x283689,_0x4ddd15,_0x939360);},{'priority':'high'}),_0x4acd01['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x363a06,_0x1e4414,_0x39d970)=>{const _0x5b028f=_0x39d970['mapper']['markerNameToElements'](_0x1e4414['markerName']);if(_0x5b028f){for(const _0x463f87 of _0x5b028f)_0x463f87['is']('uiElement')&&(_0x39d970['mapper']['unbindElementFromMarkerName'](_0x463f87,_0x1e4414['markerName']),_0x39d970['writer']['remove'](_0x463f87));}},{'priority':'high'});}}class K extends _0x488752{['afterInit'](){const _0x641aff=this['editor'];if(!_0x641aff['plugins']['has']('ListEditing'))return;const _0x3b4459=_0x641aff['locale'],_0x408e05=_0x641aff['plugins']['get']('TrackChangesEditing'),_0x14fe3a=_0x641aff['plugins']['has']('TodoListEditing'),_0x47f67f=!!_0x641aff['config']['get']('list.multiBlock');function _0x4196bc(_0x59a64c){return{'type':'format','content':''+o(_0x3b4459,'*Set\x20format:*\x20%0',_0x59a64c)};}function _0xe5d54b(_0x44f8d4){return{'type':'format','content':''+o(_0x3b4459,'*Remove\x20format:*\x20%0',_0x44f8d4)};}_0x408e05['enableDefaultAttributesIntegration']('numberedList'),_0x408e05['enableDefaultAttributesIntegration']('bulletedList'),_0x408e05['enableDefaultAttributesIntegration']('customNumberedList'),_0x408e05['enableDefaultAttributesIntegration']('customBulletedList'),_0x408e05['enableDefaultAttributesIntegration']('indentList'),_0x408e05['enableDefaultAttributesIntegration']('outdentList'),_0x408e05['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x408e05['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x408e05['registerBlockAttribute']('listItemId'),_0x408e05['registerBlockAttribute']('listType'),_0x408e05['registerBlockAttribute']('listIndent'),_0x47f67f&&(_0x408e05['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x408e05['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x14fe3a&&(_0x408e05['enableDefaultAttributesIntegration']('todoList'),_0x408e05['enableDefaultAttributesIntegration']('checkTodoList'),_0x408e05['registerBlockAttribute']('todoListChecked'),_0x408e05['descriptionFactory']['registerDescriptionCallback'](_0xf27f1b=>{const {data:_0x5ef7ae}=_0xf27f1b;if(_0x5ef7ae&&'todoListChecked'==_0x5ef7ae['key'])return{'type':'format','content':_0x5ef7ae['newValue']?o(_0x3b4459,'*Check\x20item*'):o(_0x3b4459,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x139a3c=>{if(_0x139a3c['batch']['isUndo'])return!0x1;let _0x200a1d=!0x1;const _0x3f7c13=_0x408e05['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2becaa=>'todoListChecked'===_0x408e05['_getAttributeKey'](_0x2becaa));for(const _0x418a62 of _0x3f7c13){'todo'!=_0x418a62['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x408e05['_findSuggestions'](_0x418a62['getFirstRange'](),'attribute')['find'](_0xa7444e=>'listType'===_0x408e05['_getAttributeKey'](_0xa7444e['suggestion']))||(_0x139a3c['removeMarker'](_0x418a62['getFirstMarker']()),_0x200a1d=!0x0));}return _0x200a1d;})),_0x408e05['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3b4459,'FORMAT_INDENT'));const _0x1984da={'type':'format','content':''};_0x408e05['descriptionFactory']['registerDescriptionCallback'](_0x165ee0=>{const {data:_0x3a49ed}=_0x165ee0;if(!_0x3a49ed||'listType'!=_0x3a49ed['key'])return;let _0x5ec600=_0x165ee0['head'];for(;_0x5ec600;){if(_0x5ec600['data']&&(('listStyle'==_0x5ec600['data']['key']||'listMarkerStyle'==_0x5ec600['data']['key'])&&(_0x5ec600['data']['newValue']&&'default'!=_0x5ec600['data']['newValue']||'default'!=_0x5ec600['data']['oldValue']&&!_0x3a49ed['newValue'])||!_0x47f67f&&_0x5ec600['data']['key']==m))return _0x1984da;_0x5ec600=_0x5ec600['next'];}if(null==_0x3a49ed['newValue'])switch(_0x3a49ed['oldValue']){case'bulleted':return _0xe5d54b(o(_0x3b4459,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe5d54b(o(_0x3b4459,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe5d54b(o(_0x3b4459,'ELEMENT_TODO_LIST'));}switch(_0x3a49ed['newValue']){case'bulleted':return _0x4196bc(o(_0x3b4459,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4196bc(o(_0x3b4459,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4196bc(o(_0x3b4459,'ELEMENT_TODO_LIST'));}}),_0x408e05['descriptionFactory']['registerDescriptionCallback'](_0x2133dd=>{const {data:_0x3b373c}=_0x2133dd;if(_0x3b373c&&'listIndent'==_0x3b373c['key'])return null==_0x3b373c['newValue']||null==_0x3b373c['oldValue']&&0x0==_0x3b373c['newValue']?_0x1984da:void 0x0;}),_0x408e05['descriptionFactory']['registerDescriptionCallback'](_0x227090=>{if('attribute'!=_0x227090['type'])return;const {data:_0x1dbfcd}=_0x227090;if(!_0x1dbfcd||'listItemId'!=_0x1dbfcd['key'])return;const _0x1d3c19=Ee(_0x227090);return'newValue'==_0x1d3c19?{'type':'format','content':o(_0x3b4459,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1d3c19?{'type':'format','content':o(_0x3b4459,'*Split:*\x20list\x20item')}:_0x1984da;}),_0x641aff['model']['document']['registerPostFixer'](_0x4b331d=>this['listItemIdFixer'](_0x4b331d)),_0x641aff['model']['document']['registerPostFixer'](_0x472bd3=>this['noTrackChangesFixer'](_0x472bd3)),_0x641aff['model']['document']['on']('change:data',(_0x993d68,_0x369f1b)=>{if(_0x369f1b['isUndo']||!_0x369f1b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x268438){if(_0x268438['batch']['isUndo']||!_0x268438['batch']['isLocal'])return!0x1;let _0xedb82c=!0x1;const _0x26a75f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5af2aa=>_0x5af2aa['data']&&'listItemId'==_0x5af2aa['data']['key'])['filter'](_0x39e988=>_0x39e988['data']['newValue']&&_0x39e988['data']['oldValue']);for(const _0x2cb149 of _0x26a75f)Ee(_0x2cb149)||(_0x268438['removeMarker'](_0x2cb149['getFirstMarker']()),_0xedb82c=!0x0);return _0xedb82c;}['noTrackChangesFixer'](_0x340c8c){if(_0x340c8c['batch']['isUndo']||!_0x340c8c['batch']['isLocal'])return!0x1;const _0x42eb62=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x42eb62['trackChangesCommand']['value'])return!0x1;let _0x5bf2ec=!0x1;const _0x3e0e4f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4c2f40=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x53ee74=>'attribute'==_0x53ee74['type'])['filter'](_0x377c20=>_0x3e0e4f['includes'](_0x377c20['attributeKey']));if(0x0==_0x4c2f40['length'])return _0x5bf2ec;for(const _0x32acc4 of _0x4c2f40){const _0x4e3250=_0x42eb62['_findSuggestions'](_0x32acc4['range'],'attribute')['filter'](_0x2e8c18=>!_0x2e8c18['meta']['isNextTo'])['map'](_0x177621=>_0x177621['suggestion'])['filter'](_0x3f991d=>{const _0x1bf579=_0x42eb62['_getAttributeKey'](_0x3f991d);return _0x3e0e4f['includes'](_0x1bf579);});if(_0x4e3250['length']){for(const _0xf03e2f of _0x4e3250)_0x340c8c['removeMarker'](_0xf03e2f['getFirstMarker']());_0x5bf2ec=!0x0;}}return _0x5bf2ec;}['assureChains'](){const _0x4a143e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc8a623=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2a43ed;const _0x15a3b2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b4e7a=>{if(_0x1b4e7a['data']['oldRange']||!_0x1b4e7a['data']['newRange'])return null;if(!_0x1b4e7a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xa759c2}=_0x4a143e['_splitMarkerName'](_0x1b4e7a['name']);if(!_0x4a143e['hasSuggestion'](_0xa759c2))return null;const _0x477803=_0x4a143e['getSuggestion'](_0xa759c2);return _0xc8a623['includes'](_0x477803['data']['key']);})['map'](_0x513516=>{const {id:_0x56beb0}=_0x4a143e['_splitMarkerName'](_0x513516['name']),_0x5ec007=_0x4a143e['getSuggestion'](_0x56beb0);return _0x2a43ed=_0x5ec007['attributes']['groupId'],_0x5ec007['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x15a3b2['size'])return;const _0x46fdfc=_0x4a143e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x431205=>'attribute'==_0x431205['type']&&_0x431205['data']&&_0xc8a623['includes'](_0x431205['data']['key'])&&_0x431205['attributes']['groupId']!=_0x2a43ed)['map'](_0x4d3adf=>({'listItem':_0x4d3adf['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4d3adf['attributes']['groupId']})),_0x437a66=new Set();for(const {groupId:_0x360e1f,listItem:_0x1f208e}of _0x46fdfc)_0x15a3b2['has'](_0x1f208e)&&_0x437a66['add'](_0x360e1f);for(const _0x799054 of _0x4a143e['getSuggestions']())_0x437a66['has'](_0x799054['attributes']['groupId'])&&_0x799054['setAttribute']('groupId',_0x2a43ed);}['_supportLegacySuggestions'](){const _0x17f7dd=this['editor'],_0x4ca6b2=_0x17f7dd['locale'],_0x50ad7c=_0x17f7dd['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x50ad7c['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x169ce9,_0x3de8ff){const _0x342774=[];for(let _0x49f6ba of _0x169ce9)_0x49f6ba['start']['nodeAfter']===_0x49f6ba['end']['parent']&&(_0x49f6ba=_0x17f7dd['model']['createRange'](_0x17f7dd['model']['createPositionAt'](_0x49f6ba['start']['nodeAfter'],0x0))),_0x342774['push'](_0x49f6ba);_0x17f7dd['model']['change'](_0x36cb85=>{const _0x95860e=_0x17f7dd['model']['document']['selection'],_0x52fc41=Array['from'](_0x95860e['getRanges']())['map'](_0x53d58f=>_0xd05373['fromRange'](_0x53d58f));_0x36cb85['setSelection'](_0x342774),_0x17f7dd['commands']['get'](_0x3de8ff['commandName'])['refresh'](),_0x3de8ff['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x17f7dd['execute'](_0x3de8ff['commandName'],..._0x3de8ff['commandParams']),_0x36cb85['setSelection'](_0x52fc41);for(const _0x83de3d of _0x52fc41)_0x83de3d['detach']();});}),_0x50ad7c['descriptionFactory']['registerElementLabel'](function(_0x429985){const _0x43796f=!_0x17f7dd['model']['schema']['isObject'](_0x429985),_0x34d9f2=_0x429985['previousSibling'],_0x38b8bd=_0x429985['nextSibling'],_0x471a98=_0x429985['getAttribute']('listItemId'),_0x11a0b5=!_0x34d9f2||_0x34d9f2['getAttribute']('listItemId')!==_0x471a98,_0x1f4e50=!_0x38b8bd||_0x38b8bd['getAttribute']('listItemId')!==_0x471a98;return _0x43796f&&Boolean(_0x471a98)&&_0x11a0b5&&_0x1f4e50;},_0x495b43=>o(_0x4ca6b2,'ELEMENT_LIST_ITEM',_0x495b43));}['_registerLegacyDescription'](){const _0x42ba51=this['editor'],_0x11b172=_0x42ba51['locale'];function _0x188052(_0x2f9b55){const _0x8e919a=_0x42ba51['commands']['get']('bulletedList')['value'],_0x2c32cb=_0x42ba51['commands']['get']('numberedList')['value'];return'numberedList'===_0x2f9b55?_0x8e919a:_0x2c32cb;}_0x42ba51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5d868c){if('formatBlock'!=_0x5d868c['type'])return;const {data:_0x24f305}=_0x5d868c;if(!_0x24f305)return;let _0x528695,_0x2d552a,_0x3de844,_0xb14644;switch(_0x24f305['commandName']){case'bulletedList':_0x3de844=_0x24f305['commandParams'][0x0]['forceValue'],_0xb14644=_0x188052(_0x24f305['commandName']),_0x528695=_0x3de844?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb14644&&_0x42ba51['config']['get']('list.multiBlock')||(_0x528695='*Change\x20to:*\x20%0'),_0x2d552a={'type':'format','content':o(_0x11b172,_0x528695,o(_0x11b172,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3de844=_0x24f305['commandParams'][0x0]['forceValue'],_0xb14644=_0x188052(_0x24f305['commandName']),_0x528695=_0x3de844?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb14644&&_0x42ba51['config']['get']('list.multiBlock')||(_0x528695='*Change\x20to:*\x20%0'),_0x2d552a={'type':'format','content':o(_0x11b172,_0x528695,o(_0x11b172,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x528695='*Indent:*\x20%0',_0x2d552a={'type':'format','content':o(_0x11b172,_0x528695,o(_0x11b172,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x528695=function(_0x14c383){const _0x3cbf36=_0x14c383['getFirstRange']();let _0x1a5b38=_0x3cbf36['start']['nodeAfter'];for(;_0x1a5b38&&_0x3cbf36['containsItem'](_0x1a5b38);){if(_0x1a5b38['getAttribute']('listIndent')>0x0)return!0x1;_0x1a5b38=_0x1a5b38['nextSibling'];}return!0x0;}(_0x5d868c)?o(_0x11b172,'*Format:*\x20remove\x20from\x20%0',o(_0x11b172,function(_0x4359d9){return'ELEMENT_'+_0x4359d9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5d868c))):o(_0x11b172,'*Outdent:*\x20%0',o(_0x11b172,'ELEMENT_LIST_ITEM')),_0x2d552a={'type':'format','content':_0x528695};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x24f305['multipleBlocks']&&(_0x528695='*Merge:*\x20%0',_0x2d552a={'type':'deletion','content':o(_0x11b172,_0x528695,o(_0x11b172,'ELEMENT_LIST_ITEM'))});}return _0x2d552a;});}}function Ee(_0x2b6df0){let _0x1bf50e=_0x2b6df0['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1bf50e;){const _0x2dc7a1=_0x1bf50e['getAttribute']('listItemId');if(!_0x2dc7a1)return!0x1;if(_0x2dc7a1==_0x2b6df0['data']['newValue'])return'newValue';if(_0x2dc7a1==_0x2b6df0['data']['oldValue'])return'oldValue';_0x1bf50e=_0x1bf50e['previousSibling'];}return!0x1;}class pe extends _0x488752{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x46069a=this['editor']['config']['get']('list.properties'),_0x1bfb91=this['editor']['plugins']['get']('TrackChangesEditing');_0x46069a['styles']&&(_0x1bfb91['enableDefaultAttributesIntegration']('listStyle'),_0x1bfb91['registerBlockAttribute']('listStyle')),_0x46069a['reversed']&&(_0x1bfb91['enableDefaultAttributesIntegration']('listReversed'),_0x1bfb91['registerBlockAttribute']('listReversed')),_0x46069a['startIndex']&&(_0x1bfb91['enableDefaultAttributesIntegration']('listStart'),_0x1bfb91['registerBlockAttribute']('listStart'));const _0x1148f2={'type':'format','content':''};_0x1bfb91['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5b4024=this['editor']['locale'];_0x1bfb91['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5b4024,'FORMAT_LIST_REVERSED')),_0x1bfb91['descriptionFactory']['registerDescriptionCallback'](_0x2ac7b4=>{const {data:_0x4257e1}=_0x2ac7b4;if(_0x4257e1&&'listReversed'==_0x4257e1['key'])return null==_0x4257e1['newValue']||0x0==_0x4257e1['newValue']&&null==_0x4257e1['oldValue']?_0x1148f2:void 0x0;}),_0x1bfb91['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5b4024,'FORMAT_LIST_START')),_0x1bfb91['descriptionFactory']['registerDescriptionCallback'](_0x2aa7ba=>{const {data:_0xd8a435}=_0x2aa7ba;if(_0xd8a435&&'listStart'==_0xd8a435['key'])return null==_0xd8a435['newValue']||0x1==_0xd8a435['newValue']&&null==_0xd8a435['oldValue']?_0x1148f2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xec8c4a=>{if(_0xec8c4a['batch']['isUndo'])return!0x1;let _0x345006=!0x1;const _0x493d75=_0x1bfb91['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4295e7=>{const _0x4d0071=_0x1bfb91['_getAttributeKey'](_0x4295e7);return'listStart'==_0x4d0071||'listReversed'==_0x4d0071;});for(const _0x487af7 of _0x493d75){const _0x1b1c48=_0x487af7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1b1c48||'customNumbered'==_0x1b1c48)continue;_0x1bfb91['_findSuggestions'](_0x487af7['getFirstRange'](),'attribute')['find'](_0xf1647b=>'listType'==_0x1bfb91['_getAttributeKey'](_0xf1647b['suggestion']))||(_0xec8c4a['removeMarker'](_0x487af7['getFirstMarker']()),_0x345006=!0x0);}return _0x345006;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x59770d){const _0x55ab34=this['editor']['locale'],{data:_0x4fe509}=_0x59770d,_0x2be3f1={'type':'format','content':''};if(!_0x4fe509||'listStyle'!=_0x4fe509['key'])return;if(!_0x4fe509['oldValue'])return'default'==_0x4fe509['newValue']?_0x2be3f1:{'type':'format','content':''+o(_0x55ab34,'*Set\x20format:*\x20%0',o(_0x55ab34,this['_getTranslationKeyForListStyle'](_0x4fe509['newValue'])))};if(!_0x4fe509['newValue']){if('default'==_0x4fe509['oldValue'])return _0x2be3f1;let _0x512b0b=_0x59770d['head'];for(;_0x512b0b;){if(_0x512b0b['data']&&'listType'==_0x512b0b['data']['key']&&_0x512b0b['data']['newValue'])return _0x2be3f1;_0x512b0b=_0x512b0b['next'];}return{'type':'format','content':''+o(_0x55ab34,'*Remove\x20format:*\x20%0',o(_0x55ab34,this['_getTranslationKeyForListStyle'](_0x4fe509['oldValue'])))};}if('default'!=_0x4fe509['newValue'])return{'type':'format','content':''+o(_0x55ab34,'*Set\x20format:*\x20%0',o(_0x55ab34,this['_getTranslationKeyForListStyle'](_0x4fe509['newValue'])))};let _0x174aca=_0x59770d['head'];for(;_0x174aca;){if(_0x174aca['data']&&'listType'==_0x174aca['data']['key']&&_0x174aca['data']['newValue']&&_0x174aca['data']['oldValue'])return _0x2be3f1;_0x174aca=_0x174aca['next'];}return{'type':'format','content':o(_0x55ab34,'*Set\x20format:*\x20%0',o(_0x55ab34,'ELEMENT_'+_0x59770d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4586f6=this['editor'],_0x213291=_0x4586f6['locale'];_0x4586f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f7139=>{if('formatBlock'!=_0x2f7139['type'])return;const {data:_0x3ee4ea}=_0x2f7139;if(!_0x3ee4ea)return;let _0x413def,_0x336b26;switch(_0x3ee4ea['commandName']){case'listStyle':_0x413def='*Change\x20to:*\x20%0',_0x336b26={'type':'format','content':o(_0x213291,_0x413def,o(_0x213291,this['_getTranslationKeyForListStyle'](_0x3ee4ea['commandParams'][0x0]['type'])))};break;case'listReversed':_0x413def=_0x3ee4ea['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x336b26={'type':'format','content':o(_0x213291,_0x413def)};break;case'listStart':_0x413def='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x336b26={'type':'format','content':o(_0x213291,_0x413def,_0x3ee4ea['commandParams'][0x0]['startIndex'])};}return _0x336b26;});}['_getTranslationKeyForListStyle'](_0x27a805){return'ELEMENT_'+function(_0x324f07){if(ye['includes'](_0x324f07))return'bulleted';if(Se['includes'](_0x324f07))return'numbered';return null;}(_0x27a805)['toUpperCase']()+'_LIST_'+_0x27a805['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x488752{static get['requires'](){return[_0x13b7f2];}['init'](){const _0xdfda34=this['editor'],_0x187f8b=_0xdfda34['plugins']['get']('TrackChangesEditing'),_0x86af59=_0xdfda34['commands']['get']('enter');_0x187f8b['enableCommand']('enter',()=>{_0xdfda34['model']['change'](_0x2e14eb=>{const _0x1698ed=_0xdfda34['model']['document']['selection'],_0x3e0bd0=_0x1698ed['getFirstPosition'](),_0x44e922=_0xd05373['fromRange'](_0x1698ed['getFirstRange']());if(_0x86af59['enterBlock'](_0x2e14eb)){const _0x589230=_0xdfda34['model']['createPositionAt'](_0x3e0bd0['parent']['nextSibling'],0x0),_0x131611=_0x2e14eb['createRange'](_0x3e0bd0,_0x589230);_0x187f8b['markInsertion'](_0x131611);}else _0x2e14eb['setSelection'](_0x2e14eb['createRange'](_0x44e922['end']));_0x44e922['detach'](),_0x86af59['fire']('afterExecute',{'writer':_0x2e14eb});});}),_0xdfda34['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xdfda34,'split'),{'priority':'high'}),_0xdfda34['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x186817,_0x5dfb9a,_0x4567f2)=>{const _0x3f22a4=_0x4567f2['mapper']['markerNameToElements'](_0x5dfb9a['markerName']);if(_0x3f22a4){for(const _0x45852e of _0x3f22a4)_0x45852e['hasClass']('ck-suggestion-marker-split')&&(_0x4567f2['mapper']['unbindElementFromMarkerName'](_0x45852e,_0x5dfb9a['markerName']),_0x4567f2['writer']['remove'](_0x45852e));}},{'priority':'high'}),_0xdfda34['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xf658c1,_0x14e725,_0x489215)=>{_0x489215['options']['showSuggestionHighlights']&&_e(_0xdfda34,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xf658c1,_0x14e725,_0x489215);},{'priority':'high'});}}class X extends _0x488752{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x568417=this['editor']['plugins']['get']('TrackChangesEditing');_0x568417['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x568417['enableCommand']('findNext'),_0x568417['enableCommand']('findPrevious'),_0x568417['enableCommand']('replace'),_0x568417['enableCommand']('replaceAll');}['handleFindCommand'](_0x42033a,_0x14de17,_0x5433cb={}){const _0x383230=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x42033a(_0x32497e=>{let _0x2eb4d8=('string'==typeof _0x14de17?_0x383230['findByTextCallback'](_0x14de17,_0x5433cb):_0x14de17)(_0x32497e);Array['isArray'](_0x2eb4d8)&&(_0x2eb4d8={'results':_0x2eb4d8,'searchText':'string'==typeof _0x14de17?_0x14de17:''});const _0x5f2cca=_0x2eb4d8['results']['filter'](_0x4debb0=>!0x1===this['_isInDeletionRange'](_0x4debb0,_0x32497e['item']));return{..._0x2eb4d8,'results':_0x5f2cca};},_0x5433cb);}['_isInDeletionRange'](_0x425ad8,_0x205860){const _0x371c37=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x205860,_0x425ad8['start']),this['editor']['model']['createPositionAt'](_0x205860,_0x425ad8['end']));for(const _0x524093 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x371c37['getIntersection'](_0x524093['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 _0x488752{['afterInit'](){const _0x3092ad=this['editor']['locale'],_0x19e783=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x9a665c,commandName:_0x580ac0}of ro)this['editor']['plugins']['has'](_0x9a665c)&&(_0x19e783['enableDefaultAttributesIntegration'](_0x580ac0),_0x19e783['registerInlineAttribute'](_0x580ac0));_0x19e783['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3092ad,'FORMAT_FONT_SIZE')),_0x19e783['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3092ad,'FORMAT_FONT_FAMILY')),_0x19e783['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3092ad,'FORMAT_FONT_COLOR')),_0x19e783['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3092ad,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x440418=this['editor'],_0x4784c0=_0x440418['locale'];_0x440418['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b8f98=>{const _0x51dc2a=_0x4784c0['t'];if('formatInline'!=_0x2b8f98['type'])return;const {data:_0x4e84cc}=_0x2b8f98;if(null!=_0x4e84cc){if('fontSize'==_0x4e84cc['commandName']){const _0x853254=_0x4e84cc['commandParams'][0x0]['value'];if(_0x853254){const _0x3d897f=_0x51dc2a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x48e957=>_0x48e957['model']==_0x853254)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4784c0,'*Set\x20font\x20size:*\x20%0',_0x3d897f)};}return{'type':'format','content':o(_0x4784c0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4e84cc['commandName']){const _0x40abf7=_0x4e84cc['commandParams'][0x0]['value'];return _0x40abf7?{'type':'format','content':o(_0x4784c0,'*Set\x20font\x20family:*\x20%0',_0x40abf7)}:{'type':'format','content':o(_0x4784c0,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4e84cc['commandName']){const _0x320fee=_0x4e84cc['commandParams'][0x0]['value'];if(_0x320fee){const _0x491453=_0xf31189(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1519b5=>_0x1519b5['model']==_0x320fee);let _0x258a54=_0x320fee,_0x2dc6f6='';return _0x491453&&(_0x258a54=_0x491453['label'],_0x2dc6f6=_0x51dc2a(_0x258a54)['toLowerCase']()),{'type':'format','content':o(_0x4784c0,'*Set\x20font\x20color:*\x20%0',_0x2dc6f6)['trim'](),'color':{'value':_0x320fee,'title':_0x2dc6f6||_0x258a54}};}return{'type':'format','content':o(_0x4784c0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4e84cc['commandName']){const _0x49244b=_0x4e84cc['commandParams'][0x0]['value'];if(_0x49244b){const _0x2b01ac=_0xf31189(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47c285=>_0x47c285['model']==_0x49244b);let _0x3438e4=_0x49244b,_0x31f44e='';return _0x2b01ac&&(_0x3438e4=_0x2b01ac['label'],_0x31f44e=_0x51dc2a(_0x3438e4)['toLowerCase']()),{'type':'format','content':o(_0x4784c0,'*Set\x20font\x20background\x20color:*\x20%0',_0x31f44e)['trim'](),'color':{'value':_0x49244b,'title':_0x31f44e||_0x3438e4}};}return{'type':'format','content':o(_0x4784c0,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x488752{['afterInit'](){const _0x312e16=this['editor'],_0x1b5c6d=_0x312e16['plugins']['get']('TrackChangesEditing'),_0xfcd17a=_0x312e16['commands']['get']('copyFormat'),_0x29b715=_0x312e16['commands']['get']('pasteFormat');_0xfcd17a&&_0x29b715&&(_0x1b5c6d['enableDefaultAttributesIntegration']('pasteFormat'),_0x1b5c6d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x531e21=this['editor'],_0x29b87e=_0x531e21['locale'];_0x531e21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c256e=>{if('formatBlock'!=_0x3c256e['type']&&'formatInline'!=_0x3c256e['type'])return;const {data:_0x3cdccb}=_0x3c256e;if(_0x3cdccb&&'pasteFormat'===_0x3cdccb['commandName']){const _0x58ff65=[],_0x12e0fe=_0x3cdccb['commandParams'][0x0];for(const [_0x2cd17f,_0xb32a04]of Object['entries'](_0x12e0fe))_0x58ff65['push'](so(_0x531e21,_0x2cd17f,_0xb32a04));return _0x58ff65['length']?{'type':'format','content':o(_0x29b87e,'*Set\x20format\x20to:*\x20%0',_0x58ff65['join'](',\x20'))}:{'type':'format','content':o(_0x29b87e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1db20c,_0x1b5683,_0x59808e){const _0x4c1657=_0x1db20c['locale']['t'],_0x12b6e2=_0x1b5683['split'](/(?=[A-Z])/)['join']('\x20'),_0x1267fa=_0x4c1657(_0x12b6e2['charAt'](0x0)['toUpperCase']()+_0x12b6e2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x59808e)return _0x1267fa;if('fontColor'===_0x1b5683||'fontBackgroundColor'===_0x1b5683){const _0x4b697e=_0xf31189(_0x1db20c['config']['get']('fontColor.colors'))['find'](_0x5875a8=>_0x5875a8['model']==_0x59808e);return _0x1267fa+'\x20('+(_0x4b697e?_0x4c1657(_0x4b697e['label'])['toLowerCase']():_0x59808e)+')';}if('fontSize'===_0x1b5683&&isNaN(parseFloat(_0x59808e))){const _0x8f8cd9=_0x1db20c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1db20c['config']['get']('fontSize.options'))['find'](_0x11925f=>_0x11925f['model']==_0x59808e);return _0x1267fa+'\x20('+(_0x8f8cd9?_0x4c1657(_0x8f8cd9['title'])['toLowerCase']():_0x59808e)+')';}return _0x1267fa+'\x20('+_0x59808e+')';}class tt extends _0x488752{['_headingOptions'];['afterInit'](){const _0x1d2575=this['editor'];if(!_0x1d2575['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1d2575['config']['get']('heading.options');const _0x4c8ba3=_0x1d2575['locale'],_0x40b2c4=_0x1d2575['plugins']['get']('TrackChangesEditing');_0x40b2c4['enableDefaultAttributesIntegration']('heading');for(const _0x1d8379 of this['_headingOptions'])'paragraph'!=_0x1d8379['model']&&_0x40b2c4['descriptionFactory']['registerElementLabel'](_0x1d8379['model'],_0x509946=>{const _0x3370e4=this['_getHeadingLevel'](_0x1d8379['model']);return null!==_0x3370e4?_0x5e920e(_0x509946,_0x3370e4):_0x70f5e7(_0x509946,_0x1d8379['title']);});function _0x5e920e(_0x149616,_0x2f4b6a){return o(_0x4c8ba3,'ELEMENT_HEADING',[_0x149616,_0x2f4b6a]);}function _0x70f5e7(_0x1ab8de,_0x4eb77a){return o(_0x4c8ba3,'ELEMENT_HEADING_CUSTOM',[_0x1ab8de,_0x4eb77a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23e40e=this['editor'],_0x1d3469=_0x23e40e['locale'];function _0x3c82e0(_0x416703,_0x5770df){return o(_0x1d3469,'ELEMENT_HEADING_CUSTOM',[_0x416703,_0x5770df]);}_0x23e40e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x464233=>{if('formatBlock'!=_0x464233['type'])return;const {data:_0x45be79}=_0x464233;if(_0x45be79&&'heading'==_0x45be79['commandName']){const _0x4cf6c3=_0x45be79['commandParams'][0x0]['value'],_0x1ae7b9=this['_getHeadingLevel'](_0x4cf6c3);if(null!==_0x1ae7b9)return{'type':'format','content':o(_0x1d3469,'*Change\x20to:*\x20%0',(_0x56781c=0x1,_0x234bab=_0x1ae7b9,o(_0x1d3469,'ELEMENT_HEADING',[_0x56781c,_0x234bab])))};const _0x3af992=this['_headingOptions']['find'](_0x1acc8c=>_0x1acc8c['model']===_0x4cf6c3)['title'];return{'type':'format','content':o(_0x1d3469,'*Change\x20to:*\x20%0',_0x3c82e0(0x1,_0x3af992))};}var _0x56781c,_0x234bab;});}['_getHeadingLevel'](_0x32018b){const _0x110179=_0x32018b['match'](/^heading(\d+)/);if(_0x110179)return _0x110179[0x1];const _0x5a910e=this['_headingOptions']?.['find'](_0x2d2c11=>_0x2d2c11['model']==_0x32018b);if(_0x5a910e&&_0x5a910e['view']){const _0xd2133b=_0x5a910e['view'],_0x28f885=(_0xd2133b['name']??_0xd2133b)['match'](/^h(\d+)/);if(_0x28f885)return _0x28f885[0x1];}return null;}}class et extends _0x488752{['afterInit'](){const _0x363b00=this['editor'];if(!_0x363b00['plugins']['has']('HighlightEditing'))return;const _0x28d29d=_0x363b00['plugins']['get']('TrackChangesEditing'),_0x1b2955=_0x363b00['locale'];_0x28d29d['enableDefaultAttributesIntegration']('highlight'),_0x28d29d['registerInlineAttribute']('highlight'),_0x28d29d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1b2955,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e8d35=this['editor'],_0x13dc2d=_0x4e8d35['locale'];_0x4e8d35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40de3d=>{if('formatInline'!=_0x40de3d['type'])return;const {data:_0x5f0005}=_0x40de3d;if(_0x5f0005&&'highlight'==_0x5f0005['commandName']){const _0xdd8052=_0x13dc2d['t'],_0x4b1e21=_0x5f0005['commandParams'][0x0]['value'];if(_0x4b1e21){const _0x248cee=_0x4e8d35['config']['get']('highlight.options')['find'](_0x459696=>_0x459696['model']==_0x4b1e21),_0x1a4c2e=_0xdd8052(_0x248cee['title'])['toLowerCase']();return{'type':'format','content':o(_0x13dc2d,'*Set\x20highlight:*\x20%0',_0x1a4c2e),'color':{'value':_0x248cee['color'],'title':_0x248cee['title']}};}return{'type':'format','content':o(_0x13dc2d,'*Remove\x20highlight*',o(_0x13dc2d,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x488752{['afterInit'](){const _0x4db820=this['editor'];if(!_0x4db820['plugins']['has']('HorizontalLineEditing'))return;_0x4db820['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x34438a=_0x4db820['plugins']['get']('TrackChangesEditing'),_0x851aaf=_0x4db820['locale'];_0x34438a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2ff8d4=>o(_0x851aaf,'ELEMENT_HORIZONTAL_LINE',_0x2ff8d4)),_0x4db820['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x741954,{writer:_0x29ea2f,options:_0x50ac01})=>{if(!_0x50ac01['showSuggestionHighlights'])return null;const _0x32d105=_0x29ea2f['createContainerElement']('div'),_0x450ee8=_0x29ea2f['createEmptyElement']('hr');return _0x29ea2f['addClass']('ck-horizontal-line',_0x32d105),_0x29ea2f['insert'](_0x29ea2f['createPositionAt'](_0x32d105,0x0),_0x450ee8),_0x32d105;},'converterPriority':'high'});}}class st extends _0x488752{['afterInit'](){const _0x5b269d=this['editor'];if(!_0x5b269d['plugins']['has']('HtmlEmbed'))return;const _0x168d42=_0x5b269d['plugins']['get']('TrackChangesEditing'),_0x1de50c=_0x5b269d['locale'];_0x168d42['descriptionFactory']['registerElementLabel']('rawHtml',_0x41496c=>o(_0x1de50c,'ELEMENT_HTML_EMBED',_0x41496c)),_0x168d42['enableDefaultAttributesIntegration']('htmlEmbed'),_0x168d42['registerBlockAttribute']('value'),_0x168d42['descriptionFactory']['registerDescriptionCallback'](_0x3277d9=>{if('attribute'!=_0x3277d9['type'])return;const {data:_0x266608}=_0x3277d9;if(_0x266608&&'value'==_0x266608['key']&&_0x3277d9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56db6d=o(_0x1de50c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1de50c,'*Change\x20%0\x20content*',_0x56db6d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x549160=this['editor'],_0x19e8e8=_0x549160['locale'];_0x549160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1055cd=>{if('formatBlock'!=_0x1055cd['type'])return;const {data:_0x357eff}=_0x1055cd;if(_0x357eff&&'htmlEmbed'==_0x357eff['commandName']){const _0x43b402=o(_0x19e8e8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x19e8e8,'*Change\x20%0\x20content*',_0x43b402)};}});}}class nt extends _0x488752{['afterInit'](){const _0x321b0b=this['editor'];if(!_0x321b0b['plugins']['has']('ImageEditing'))return;const _0x464075=_0x321b0b['plugins']['get']('TrackChangesEditing'),_0x2d7394=_0x321b0b['plugins']['get']('ImageUtils'),_0x3d8a6c=_0x321b0b['locale'];_0x464075['enableCommand']('insertImage'),_0x464075['descriptionFactory']['registerElementLabel']('imageBlock',_0x4589e4=>o(_0x3d8a6c,'ELEMENT_IMAGE',_0x4589e4)),_0x464075['descriptionFactory']['registerElementLabel']('imageInline',_0x486515=>o(_0x3d8a6c,'ELEMENT_INLINE_IMAGE',_0x486515)),_0x464075['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3d8a6c,'ELEMENT_CAPTION')),_0x321b0b['plugins']['has']('ImageUploadEditing')&&_0x464075['enableCommand']('uploadImage'),_0x321b0b['plugins']['has']('ImageBlockEditing')&&_0x321b0b['plugins']['has']('ImageInlineEditing')&&(_0x464075['enableCommand']('imageTypeInline',(_0x22da6f,_0x43031c)=>{const _0xed45fc=_0x2d7394['getClosestSelectedImageElement'](_0x321b0b['model']['document']['selection']);_0x321b0b['model']['change'](()=>{_0x464075['markBlockFormat'](_0xed45fc,{'commandName':'imageTypeInline','commandParams':[_0x43031c]},[],'convertBlockImageToInline');});}),_0x464075['enableCommand']('imageTypeBlock',(_0x2c77b6,_0x299b68)=>{_0x321b0b['model']['change'](_0x4c00bf=>{let _0x23cb56=_0x2d7394['getClosestSelectedImageElement'](_0x321b0b['model']['document']['selection']),_0x333e42=_0x4c00bf['createRangeOn'](_0x23cb56);const _0x474862=_0x4e5e66['fromPosition'](_0x333e42['start'],'toPrevious'),_0x9f33b5=_0x4e5e66['fromPosition'](_0x333e42['end'],'toNext');_0x464075['forceDefaultExecution'](()=>_0x2c77b6(_0x299b68)),_0x23cb56=_0x2d7394['getClosestSelectedImageElement'](_0x321b0b['model']['document']['selection']),_0x333e42=_0x4c00bf['createRangeOn'](_0x23cb56);const _0x51c7bd=_0x4c00bf['createRange'](_0x474862,_0x9f33b5);_0x474862['detach'](),_0x9f33b5['detach'](),_0x464075['markBlockFormat'](_0x23cb56,{'commandName':'imageTypeInline','commandParams':[_0x299b68]},[],'convertInlineImageToBlock'),_0x51c7bd['start']['isBefore'](_0x333e42['start'])&&_0x464075['markInsertion'](_0x4c00bf['createRange'](_0x51c7bd['start'],_0x333e42['start']),'convertInlineImageToBlock'),_0x333e42['end']['isBefore'](_0x51c7bd['end'])&&_0x464075['markInsertion'](_0x4c00bf['createRange'](_0x333e42['end'],_0x51c7bd['end']),'convertInlineImageToBlock');});}),_0x464075['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x464075['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x464075['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x464075['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x464075['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x464075['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x49f58a])=>{const _0x52a829=_0x464075['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x10feef=_0x49f58a['start'],_0x6945aa=_0x49f58a['end'];const _0x2cb06d=_0x321b0b['model']['schema']['getNearestSelectionRange'](_0x10feef,'backward'),_0x58a17d=_0x321b0b['model']['schema']['getNearestSelectionRange'](_0x6945aa,'forward');_0x2cb06d['isCollapsed']&&(_0x10feef=_0x2cb06d['start']),_0x58a17d['isCollapsed']&&(_0x6945aa=_0x58a17d['end']),_0x52a829([_0x321b0b['model']['createRange'](_0x10feef,_0x6945aa)]);}),_0x464075['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x124af6),_0x464075['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x124af6)),_0x321b0b['plugins']['has']('ImageCaptionEditing')&&(_0x464075['enableCommand']('toggleImageCaption',(_0x493abc,_0x66e03)=>{const _0x5a79a5=_0x321b0b['plugins']['get']('ImageCaptionUtils');let _0x49c687=_0x2d7394['getClosestSelectedImageElement'](_0x321b0b['model']['document']['selection']),_0x59d2ed=_0x5a79a5['getCaptionFromImageModelElement'](_0x49c687);_0x321b0b['model']['change'](()=>{if(_0x59d2ed)return void _0x464075['markDeletion'](_0x321b0b['model']['createRangeOn'](_0x59d2ed));const _0x48c0ca=_0x2d7394['isBlockImage'](_0x49c687);_0x493abc(_0x66e03),_0x49c687=_0x2d7394['getClosestSelectedImageElement'](_0x321b0b['model']['document']['selection']),_0x59d2ed=_0x5a79a5['getCaptionFromImageModelElement'](_0x49c687),_0x464075['markInsertion'](_0x321b0b['model']['createRangeOn'](_0x59d2ed),_0x48c0ca?null:'imageCaption');});}),_0x464075['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x124af6));const _0x2680e8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e5f78(_0x4ccf7b,_0x1248cc){const _0x21d6a1=_0x2680e8['findIndex'](({type:_0x3c732c,subType:_0x5c8a44})=>_0x4ccf7b['type']==_0x3c732c&&_0x4ccf7b['subType']==_0x5c8a44),_0x9c0ded=_0x2680e8['findIndex'](({type:_0x3271a5,subType:_0x2405ae})=>_0x1248cc['type']==_0x3271a5&&_0x1248cc['subType']==_0x2405ae);if(_0x21d6a1<0x0||_0x9c0ded<0x0)return!0x1;const _0x3052da=_0x4ccf7b['getFirstRange'](),_0x36cb9a=_0x1248cc['getFirstRange']();if((0x0==_0x21d6a1||0x1==_0x21d6a1)&&0x2==_0x9c0ded&&_0x3052da['isIntersecting'](_0x36cb9a))return!0x0;if(0x2==_0x21d6a1&&0x3==_0x9c0ded){const _0x1febca=_0x464075['_findSuggestions'](_0x3052da,'insertion')['filter'](({suggestion:_0x3afdac,meta:_0x5cb6ff})=>_0x5cb6ff['isOwn']&&'convertInlineImageToBlock'==_0x3afdac['subType']);if(_0x1febca['length']>0x1&&_0x36cb9a['end']['isEqual'](_0x3052da['start']))return!0x0;if(0x1==_0x1febca['length']&&(_0x3052da['start']['isEqual'](_0x36cb9a['end'])||_0x3052da['end']['isEqual'](_0x36cb9a['start'])))return!0x0;}if(0x3==_0x21d6a1&&0x3==_0x9c0ded&&_0x3052da['start']['isBefore'](_0x36cb9a['start'])){const _0x5df8db=_0x3052da['end']['nodeAfter'],_0x5f3cac=_0x36cb9a['start']['nodeBefore'];return _0x2d7394['isBlockImage'](_0x5df8db)&&_0x5df8db===_0x5f3cac;}return!0x1;}function _0x124af6(_0x48b5ad,_0x25d549){return _0x3e5f78(_0x48b5ad,_0x25d549)?[_0x48b5ad,_0x25d549]:_0x3e5f78(_0x25d549,_0x48b5ad)?[_0x25d549,_0x48b5ad]:null;}_0x321b0b['plugins']['has']('ImageResize')&&(_0x464075['enableDefaultAttributesIntegration']('resizeImage'),_0x464075['registerBlockAttribute']('resizedWidth'),_0x464075['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3d8a6c,'FORMAT_IMAGE_SIZE'))),_0x321b0b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x464075['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x464075['registerBlockAttribute']('alt')),_0x464075['descriptionFactory']['registerDescriptionCallback'](_0x3e5bf8=>{if(!!_0x2680e8['find'](({type:_0x22627e,subType:_0x3892f1})=>_0x3e5bf8['type']==_0x22627e&&_0x3e5bf8['subType']==_0x3892f1))return _0x3e5bf8['previous']?{}:void 0x0;}),_0x464075['descriptionFactory']['registerDescriptionCallback'](_0x2f3a37=>{if('insertion'==_0x2f3a37['type']||'deletion'==_0x2f3a37['type']){const _0x32cb65=_0x2f3a37['getContainedElement']();if(_0x32cb65&&_0x32cb65['is']('element','caption'))return{'type':'insertion'==_0x2f3a37['type']?'addObject':'removeObject','element':_0x32cb65,'quantity':0x1};}}),_0x464075['descriptionFactory']['registerDescriptionCallback'](_0xe49e7c=>'formatBlock'==_0xe49e7c['type']&&'convertInlineImageToBlock'==_0xe49e7c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xe49e7c['type']&&'convertBlockImageToInline'==_0xe49e7c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x464075['descriptionFactory']['registerDescriptionCallback'](_0x4366cf=>{if('attribute'!=_0x4366cf['type'])return;const {data:_0x1e895c}=_0x4366cf;if(!_0x1e895c||'alt'!=_0x1e895c['key'])return;const _0x41da0b=_0x1e895c['newValue'];return _0x41da0b?{'type':'format','content':o(_0x3d8a6c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x41da0b+'\x22')}:{'type':'format','content':o(_0x3d8a6c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53b770=this['editor'],_0x53e06a=_0x53b770['locale'];_0x53b770['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48c20f=>{if('formatBlock'!=_0x48c20f['type']&&'formatInline'!=_0x48c20f['type'])return;const {data:_0x58fa4b}=_0x48c20f;if(_0x58fa4b){if('imageTextAlternative'==_0x58fa4b['commandName']){const _0x4082b9=_0x58fa4b['commandParams'][0x0]['newValue'];return _0x4082b9?{'type':'format','content':o(_0x53e06a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4082b9+'\x22')}:{'type':'format','content':o(_0x53e06a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x58fa4b['commandName']){const _0x5b14e7=_0x58fa4b['commandParams'][0x0]['width'];return _0x5b14e7?{'type':'format','content':o(_0x53e06a,'*Set\x20image\x20width:*\x20%0',_0x5b14e7)}:{'type':'format','content':o(_0x53e06a,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x488752{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x470619=this['editor']['locale'],_0x29222a=this['editor']['plugins']['get']('TrackChangesEditing');_0x29222a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x29222a['registerBlockAttribute']('src'),_0x29222a['descriptionFactory']['registerDescriptionCallback'](_0x3030ae=>{if('attribute'!=_0x3030ae['type'])return;const {data:_0x301576}=_0x3030ae;return _0x301576&&'src'==_0x301576['key']?_0x301576['newValue']&&_0x301576['oldValue']?{'type':'format','content':o(_0x470619,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fb2b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fb2b5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4fb2b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fb2b5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4fb2b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20ef5c=this['editor'],_0x377d8a=_0x20ef5c['locale'];_0x20ef5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7e2e2e=>{if('formatBlock'!=_0x7e2e2e['type']&&'formatInline'!=_0x7e2e2e['type'])return;const {data:_0x52bf1a}=_0x7e2e2e;if(!_0x52bf1a||'replaceImageSource'!=_0x52bf1a['commandName'])return;return{'type':'format','content':o(_0x377d8a,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x488752{['afterInit'](){const _0xfd786b=this['editor'];if(!_0xfd786b['plugins']['has']('ImageStyleEditing'))return;const _0xfb9a9e=_0xfd786b['plugins']['get']('TrackChangesEditing'),_0x1df01b=_0xfd786b['plugins']['get']('ImageUtils'),_0x110781={};_0xfb9a9e['enableCommand']('imageStyle',(_0x7a1075,_0x5ba553)=>{const _0x5b3c1c=_0xfd786b['plugins']['get']('Users')['me'],_0x436ff4=_0xfd786b['commands']['get']('imageStyle');let _0x305d33=_0x1df01b['getClosestSelectedImageElement'](_0xfd786b['model']['document']['selection']),_0x31acb5=_0xfd786b['model']['createRangeOn'](_0x305d33),_0x4a92f2=_0x436ff4['value'];if(_0x4a92f2==_0x5ba553['value'])return;const _0xb6b008={'commandName':'imageStyle','commandParams':[_0x5ba553],'formatGroupId':_0x3309d5()};_0xfd786b['model']['change'](()=>{if(_0xfb9a9e['getSuggestions']()['filter'](_0xf52951=>_0xf52951['isInContent']&&_0x5b3c1c==_0xf52951['author']&&('formatBlock'==_0xf52951['type']||'formatInline'==_0xf52951['type'])&&('imageStylePreApply'==_0xf52951['subType']||'imageStylePostApply'==_0xf52951['subType'])&&_0xf52951['getFirstRange']()['isEqual'](_0x31acb5))['forEach'](_0x20d133=>_0xfb9a9e['discardSuggestion'](_0x20d133['head'])),_0x305d33=_0x1df01b['getClosestSelectedImageElement'](_0xfd786b['model']['document']['selection']),_0x31acb5=_0xfd786b['model']['createRangeOn'](_0x305d33),_0x436ff4['refresh'](),_0xfd786b['commands']['get']('imageTypeInline')['refresh'](),_0xfd786b['commands']['get']('imageTypeBlock')['refresh'](),_0x4a92f2=_0x436ff4['value'],_0x4a92f2!=_0x5ba553['value'])return _0x1df01b['isInlineImage'](_0x305d33)&&_0x436ff4['shouldConvertImageType'](_0x5ba553['value'],_0x305d33)?(_0x7a1075({..._0x5ba553,'setImageSizes':!0x1}),_0x305d33=_0x1df01b['getClosestSelectedImageElement'](_0xfd786b['model']['document']['selection']),void _0xfb9a9e['markBlockFormat'](_0x305d33,{..._0xb6b008,'commandReversedParams':[{'value':_0x4a92f2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1df01b['isBlockImage'](_0x305d33)?_0xfb9a9e['markBlockFormat'](_0x305d33,_0xb6b008,[],'imageStylePostApply'):_0xfb9a9e['markInlineFormat'](_0x31acb5,_0xb6b008,'imageStylePostApply'));});});for(const _0x289ca0 of _0xfd786b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x110781[_0x289ca0['name']]=_0x289ca0['title']['toLowerCase']();_0xfb9a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xfb9a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xfb9a9e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xfb9a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5a3666])=>{_0x1df01b['setImageNaturalSizeAttributes'](_0x5a3666['getContainedElement']());}),_0xfb9a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x111e6d,_0x2a04e0)=>{_0xfb9a9e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x111e6d,{'commandName':_0x2a04e0['commandName'],'commandParams':_0x2a04e0['commandReversedParams']});}),_0xfb9a9e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x377f2f,_0x2ad0bf){if(_0x53ca5e(_0x377f2f,_0x2ad0bf))return[_0x377f2f,_0x2ad0bf];if(_0x53ca5e(_0x2ad0bf,_0x377f2f))return[_0x2ad0bf,_0x377f2f];return null;});const _0x426743=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x53ca5e(_0x4228e,_0x11b1e9){const _0x5c669b=_0x426743['findIndex'](({type:_0x4f9396,subType:_0x4c2b36})=>_0x4228e['type']==_0x4f9396&&_0x4228e['subType']==_0x4c2b36),_0x3a18f1=_0x426743['findIndex'](({type:_0x3bb203,subType:_0x344237})=>_0x11b1e9['type']==_0x3bb203&&_0x11b1e9['subType']==_0x344237);if(_0x5c669b<0x0||_0x3a18f1<0x0)return!0x1;const _0x1bde31=_0x4228e['getFirstRange'](),_0x4fc16d=_0x11b1e9['getFirstRange']();if((0x0==_0x5c669b||0x1==_0x5c669b)&&0x2==_0x3a18f1&&_0x1bde31['isIntersecting'](_0x4fc16d))return!0x0;if(0x2==_0x5c669b&&0x3==_0x3a18f1){const _0x43caf5=_0xfb9a9e['_findSuggestions'](_0x1bde31,'insertion')['filter'](({suggestion:_0xdc71ef,meta:_0x505206})=>_0x505206['isOwn']&&'convertInlineImageToBlock'==_0xdc71ef['subType']);if(_0x43caf5['length']>0x1&&_0x4fc16d['end']['isEqual'](_0x1bde31['start']))return!0x0;if(0x1==_0x43caf5['length']&&(_0x1bde31['start']['isEqual'](_0x4fc16d['end'])||_0x1bde31['end']['isEqual'](_0x4fc16d['start'])))return!0x0;}if(0x3==_0x5c669b&&0x3==_0x3a18f1&&_0x1bde31['start']['isBefore'](_0x4fc16d['start'])){const _0x40a914=_0x1bde31['end']['nodeAfter'],_0x4b6616=_0x4fc16d['start']['nodeBefore'];return _0x1df01b['isBlockImage'](_0x40a914)&&_0x40a914===_0x4b6616;}return!0x1;}_0xfd786b['model']['document']['registerPostFixer'](()=>{let _0x413bb5=!0x1;const _0x2cde23=Array['from'](_0xfd786b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x218ade,data:_0x434805}of _0x2cde23){const {group:_0x12eda2,type:_0x2f077a,subType:_0x57e9ad,id:_0xe25e51}=_0xfb9a9e['_splitMarkerName'](_0x218ade);if('suggestion'==_0x12eda2&&_0xfb9a9e['hasSuggestion'](_0xe25e51)){if('formatBlock'==_0x2f077a&&('imageStylePreApply'==_0x57e9ad||'imageStylePostApply'==_0x57e9ad)){const _0xfede2f=_0xfb9a9e['getSuggestion'](_0xe25e51);if(_0x434805['newRange']){const _0xee6939=_0xfede2f['getFirstRange']()['getContainedElement']();if(_0x1df01b['isBlockImage'](_0xee6939))continue;_0xfb9a9e['discardSuggestion'](_0xfede2f),_0x413bb5=!0x0;}}if('insertion'==_0x2f077a&&'imageCaption'==_0x57e9ad&&!_0x434805['newRange']){const _0x4d22d8=_0xfb9a9e['getSuggestion'](_0xe25e51);_0x4d22d8['next']&&_0x4d22d8['next']['isInContent']&&(_0xfb9a9e['discardSuggestion'](_0x4d22d8['next']),_0x413bb5=!0x0);}}}return _0x413bb5;}),this['_registerLegacyDescription'](_0x110781);}['_registerLegacyDescription'](_0x42ab5e){const _0x39dea6=this['editor'],_0x2a6b6b=_0x39dea6['locale'];_0x39dea6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ec1c=>{if('formatBlock'!=_0x27ec1c['type']&&'formatInline'!=_0x27ec1c['type'])return;const {data:_0x549927}=_0x27ec1c;if(!_0x549927||'imageStyle'!=_0x549927['commandName'])return;const _0x5cacca=_0x549927['commandParams'][0x0]['value'];return _0x2adff5('side'===_0x5cacca?o(_0x2a6b6b,'FORMAT_SIDE_IMAGE'):_0x42ab5e[_0x5cacca]||_0x5cacca);function _0x2adff5(_0x41ba01){return{'type':'format','content':o(_0x2a6b6b,'*Format:*\x20%0',_0x41ba01)};}});}}class at extends _0x488752{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1c9f7a){super(_0x1c9f7a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1c5d37=this['editor'],_0x3b58a3=_0x1c5d37['commands']['get']('importWord'),_0x31f7c2=_0x1c5d37['commands']['get']('trackChanges');_0x3b58a3&&(_0x3b58a3['on']('execute',(_0x5017eb,[,_0x5ea7ab])=>{this['_trackChangesValueDuringImport']=_0x31f7c2['value'],_0x5ea7ab['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3b58a3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3b58a3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x31f7c2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1c5d37['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5bd0fb,_0xd485fb){const {suggestions:_0x42eeb7}=_0xd485fb,_0x13a058=this['editor']['commands']['get']('trackChanges'),_0x2bc7b7=_0x13a058['value'];this['_trackChangesValueDuringImport']!==_0x2bc7b7&&(_0x13a058['execute'](),this['_trackChangesExecuted']=!0x0),_0x42eeb7&&_0x42eeb7['forEach'](({id:_0x1cfda4,type:_0x1b66a3,author:_0x3f50da,created_at:_0x566b5c})=>{const _0x1f8864={'id':_0x1cfda4,'type':_0x1b66a3,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3f50da,'createdAt':_0x566b5c?new Date(_0x566b5c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1f8864);});}}class ct extends _0x488752{['afterInit'](){const _0x3bd7cd=this['editor'],_0x3f9c77=_0x3bd7cd['plugins']['get']('TrackChangesEditing');if(_0x3bd7cd['plugins']['has']('IndentEditing')&&(_0x3f9c77['enableCommand']('indent'),_0x3f9c77['enableCommand']('outdent')),_0x3bd7cd['plugins']['has']('IndentBlock')){for(const _0x3bc6eb of['indentBlock','outdentBlock'])_0x3f9c77['enableDefaultAttributesIntegration'](_0x3bc6eb);}const _0x37e507=_0x3bd7cd['locale'];_0x3f9c77['registerBlockAttribute']('blockIndent'),_0x3f9c77['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x37e507,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x599d93=this['editor'],_0x415170=_0x599d93['locale'],_0x21490b=_0x599d93['plugins']['get']('TrackChangesEditing');_0x21490b['descriptionFactory']['registerDescriptionCallback'](_0x4c9f3a=>{if('formatBlock'!=_0x4c9f3a['type'])return;const {data:_0x4abddc}=_0x4c9f3a;if(!_0x4abddc)return;if('indentBlock'!=_0x4abddc['commandName']&&'outdentBlock'!=_0x4abddc['commandName'])return;const _0x21e8cf=_0x4c9f3a['getItems']()[0x0],_0x2c4c90=_0x21490b['descriptionFactory']['getItemLabel'](_0x21e8cf);return'indentBlock'==_0x4abddc['commandName']?{'type':'format','content':o(_0x415170,'*Indent:*\x20%0',_0x2c4c90)}:'outdentBlock'==_0x4abddc['commandName']?{'type':'format','content':o(_0x415170,'*Outdent:*\x20%0',_0x2c4c90)}:void 0x0;});}}class ut extends _0x488752{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x488752{['afterInit'](){const _0x350da8=this['editor'];if(!_0x350da8['plugins']['has']('LinkEditing'))return;const _0x550aef=_0x350da8['plugins']['get']('TrackChangesEditing'),_0x2e70f8=_0x350da8['commands']['get']('link');_0x550aef['enableDefaultAttributesIntegration']('link'),_0x550aef['enableDefaultAttributesIntegration']('unlink'),_0x550aef['registerInlineAttribute']('linkHref');for(const _0x47dfad of _0x2e70f8['manualDecorators'])_0x550aef['registerInlineAttribute'](_0x47dfad['id']),_0x550aef['descriptionFactory']['registerAttributeLabel'](_0x47dfad['id'],'link\x20('+_0x47dfad['label']['toLowerCase']()+')');_0x550aef['descriptionFactory']['registerDescriptionCallback'](_0x2ac286=>{if('attribute'!=_0x2ac286['type'])return;const {data:_0x420129}=_0x2ac286;if(!_0x420129||'linkHref'!=_0x420129['key'])return;const _0x545a0d=_0x420129['newValue'],_0x393b11=_0x350da8['locale'];return{'type':'format','content':null==_0x545a0d?o(_0x393b11,'*Remove\x20link*'):o(_0x393b11,'*Set\x20link:*\x20%0','\x22'+_0x545a0d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44b105=this['editor'],_0x56e271=_0x44b105['locale'];_0x44b105['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50661d=>{if('formatInline'!=_0x50661d['type'])return;const {data:_0x28faa5}=_0x50661d;if(_0x28faa5){if('link'==_0x28faa5['commandName']){const _0xc3f0bf=_0x28faa5['commandParams'][0x0];return{'type':'format','content':o(_0x56e271,'*Set\x20link:*\x20%0','\x22'+_0xc3f0bf+'\x22')};}return'unlink'==_0x28faa5['commandName']?{'type':'format','content':o(_0x56e271,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x488752{['afterInit'](){const _0x23846a=this['editor'],_0x4cac01=_0x23846a['locale'];if(!_0x23846a['plugins']['has']('LegacyListEditing'))return;const _0x1cb343=_0x23846a['plugins']['get']('TrackChangesEditing'),_0x56daae=_0x23846a['plugins']['has']('LegacyTodoListEditing');function _0x9f5860(_0x3f3e7b){return()=>{const _0x323114=_0x23846a['model']['document']['selection'],_0x372add=_0x23846a['commands']['get'](_0x3f3e7b);if(_0x372add['value'])return void _0x23846a['execute']('paragraph',{});const _0xadd6b1=_0x3f3e7b['slice'](0x0,-0x4),_0x3a8f98=function(_0x24b904,_0x435237,_0xe983ac){let _0x3d5096=Array['from'](_0x24b904)['filter'](_0x6d8b48=>function(_0x5ecf55,_0xe00282){return _0xe00282['checkChild'](_0x5ecf55['parent'],'listItem')&&!_0xe00282['isObject'](_0x5ecf55);}(_0x6d8b48,_0xe983ac));_0x3d5096=_0x3d5096['filter'](_0x4826a2=>!_0x4826a2['is']('element','listItem')||_0x4826a2['getAttribute']('listType')!=_0x435237);const _0x16aa77=new Set();for(const _0x178640 of _0x3d5096)_0x178640['is']('element','listItem')?_0x16aa77['add'](fe(_0x178640)):_0x16aa77['add'](_0x178640);return Array['from'](_0x16aa77);}(_0x323114['getSelectedBlocks'](),_0xadd6b1,_0x23846a['model']['schema']);_0x23846a['model']['change'](()=>{for(const _0x5db5f3 of _0x3a8f98)_0x1cb343['markBlockFormat'](_0x5db5f3,{'commandName':_0x3f3e7b,'commandParams':[{'forceValue':!_0x372add['value']}],'formatGroupId':'blockName'},ue(_0x5db5f3));});};}function _0x3b2309(_0x599e96){return()=>{const _0x5654d3=function(_0x44a6af){let _0x57d336=Array['from'](_0x44a6af);const _0x1b21f3=_0x57d336['findIndex'](_0x5eaded=>'listItem'!=_0x5eaded['name']);return _0x1b21f3>-0x1&&(_0x57d336=_0x57d336['slice'](0x0,_0x1b21f3)),_0x57d336;}(_0x23846a['model']['document']['selection']['getSelectedBlocks']()),_0x2c5838=_0x23846a['model']['createRange'](_0x23846a['model']['createPositionAt'](_0x5654d3[0x0],'before'),_0x23846a['model']['createPositionAt'](_0x5654d3[_0x5654d3['length']-0x1],'end'));_0x23846a['model']['change'](()=>{_0x1cb343['markBlockFormat'](_0x2c5838,{'commandName':_0x599e96,'commandParams':[],'formatGroupId':'listIndent'},function(_0x28dd52){const _0x1a362e=new Set();for(const _0x541b8c of _0x28dd52){let _0x32630f=_0x541b8c['nextSibling'];for(;_0x32630f&&_0x32630f['getAttribute']('listIndent')>_0x541b8c['getAttribute']('listIndent');)_0x1a362e['add'](_0x32630f),_0x32630f=_0x32630f['nextSibling'];}return Array['from'](_0x1a362e);}(_0x5654d3));});};}_0x1cb343['enableCommand']('numberedList',_0x9f5860('numberedList')),_0x1cb343['enableCommand']('bulletedList',_0x9f5860('bulletedList')),_0x56daae&&_0x1cb343['enableCommand']('todoList',_0x9f5860('todoList')),_0x1cb343['enableCommand']('indentList',_0x3b2309('indentList')),_0x1cb343['enableCommand']('outdentList',_0x3b2309('outdentList')),_0x56daae&&_0x1cb343['enableCommand']('checkTodoList',()=>{const _0xb3d9f1=_0x23846a['commands']['get']('checkTodoList'),_0x27cf97=Array['from'](_0xb3d9f1['_selectedElements']);_0x27cf97['filter'](_0x492e3d=>_0x492e3d['getAttribute']('todoListChecked')!=_0xb3d9f1['value']),_0x23846a['model']['change'](()=>{for(const _0x35b6f0 of _0x27cf97)_0x1cb343['markBlockFormat'](_0x35b6f0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xb3d9f1['value']}]});});}),_0x1cb343['descriptionFactory']['registerElementLabel']('listItem',_0x5c641d=>o(_0x4cac01,'ELEMENT_LIST_ITEM',_0x5c641d)),_0x1cb343['descriptionFactory']['registerDescriptionCallback'](_0x2d610f=>{if('formatBlock'!=_0x2d610f['type']&&'formatInline'!=_0x2d610f['type'])return;const {data:_0xa06090}=_0x2d610f;if(_0xa06090){if('numberedList'==_0xa06090['commandName']||'bulletedList'==_0xa06090['commandName']||'todoList'==_0xa06090['commandName'])switch(_0xa06090['commandName']['replace']('List','')){case'bulleted':return _0x2ad101(o(_0x4cac01,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2ad101(o(_0x4cac01,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2ad101(o(_0x4cac01,'ELEMENT_TODO_LIST'));}if('indentList'==_0xa06090['commandName'])return{'type':'format','content':o(_0x4cac01,'*Indent:*\x20%0',o(_0x4cac01,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xa06090['commandName'])return{'type':'format','content':o(_0x4cac01,'*Outdent:*\x20%0',o(_0x4cac01,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xa06090['commandName'])return _0xa06090['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cac01,'*Check\x20item*')}:{'type':'format','content':o(_0x4cac01,'*Uncheck\x20item*')};}function _0x2ad101(_0x5ca166){return{'type':'format','content':o(_0x4cac01,'*Change\x20to:*\x20%0',_0x5ca166)};}});}}function fe(_0x2ebd94){const _0x1bde8e=_0x2ebd94['getAttribute']('listIndent');if(0x0==_0x1bde8e)return _0x2ebd94;let _0x173ac6=_0x2ebd94;for(;_0x2ebd94['previousSibling']&&_0x2ebd94['previousSibling']['is']('element','listItem');){const _0x380245=_0x2ebd94['previousSibling']['getAttribute']('listIndent');if(_0x380245==_0x1bde8e)_0x173ac6=_0x2ebd94['previousSibling'];else{if(_0x380245<_0x1bde8e)break;}_0x2ebd94=_0x2ebd94['previousSibling'];}return _0x173ac6;}function ue(_0x1148ff){const _0x1a5b19=[];if(_0x1148ff['is']('element','listItem')&&_0x1148ff['getAttribute']('listIndent')>0x0){let _0x2ff123=_0x1148ff['nextSibling'];for(;_0x2ff123&&'listItem'==_0x2ff123['name']&&_0x2ff123['getAttribute']('listIndent')==_0x1148ff['getAttribute']('listIndent');)_0x1a5b19['push'](_0x2ff123),_0x2ff123=_0x2ff123['nextSibling'];}return _0x1a5b19;}class W extends _0x488752{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x29393b=this['editor']['config']['get']('list.properties'),_0x130104=this['editor']['plugins']['get']('TrackChangesEditing');_0x29393b['styles']&&_0x130104['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x29393b['reversed']&&_0x130104['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x29393b['startIndex']&&_0x130104['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x130104['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x111852,_0x16c565={}){const _0x112a7e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fcbd9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x112a7e['markMultiRangeBlockFormat'](_0x2fcbd9,{'commandName':'listStyle','commandParams':[{'type':_0x16c565['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xb00be1,_0x49a40b={}){const _0x1f09eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27fd9b=this['_getSuggestionBlocks'](_0x3ae6bd=>_0x3ae6bd['is']('element','listItem')&&'numbered'===_0x3ae6bd['getAttribute']('listType'));if(_0x27fd9b['length']<0x1)return;const _0x3f21b5=_0x27fd9b['map'](_0x3aa261=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3aa261,'before'),this['editor']['model']['createPositionAt'](_0x3aa261,0x0)));this['editor']['model']['change'](()=>{_0x1f09eb['markMultiRangeBlockFormat'](_0x3f21b5,{'commandName':'listReversed','commandParams':[{'reversed':_0x49a40b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x242bc1,_0x48c460={}){const _0x52aa0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x169ab8=this['_getSuggestionBlocks'](_0x871051=>_0x871051['is']('element','listItem')&&'numbered'===_0x871051['getAttribute']('listType'));if(_0x169ab8['length']<0x1)return;const _0x112add=_0x169ab8['map'](_0x35e687=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x35e687,'before'),this['editor']['model']['createPositionAt'](_0x35e687,0x0)));this['editor']['model']['change'](()=>{_0x52aa0b['markMultiRangeBlockFormat'](_0x112add,{'commandName':'listStart','commandParams':[{'startIndex':_0x48c460['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2a392a){if('formatBlock'!=_0x2a392a['type']&&'formatInline'!=_0x2a392a['type'])return;const _0x4c0fa7=this['editor']['locale'],{data:_0x35f237}=_0x2a392a;if(!_0x35f237)return;let _0x3f9824,_0x453ba9;switch(_0x35f237['commandName']){case'listStyle':_0x3f9824='*Change\x20to:*\x20%0',_0x453ba9={'type':'format','content':o(_0x4c0fa7,_0x3f9824,o(_0x4c0fa7,this['_getTranslationKeyForListStyle'](_0x35f237['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3f9824=_0x35f237['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x453ba9={'type':'format','content':o(_0x4c0fa7,_0x3f9824)};break;case'listStart':_0x3f9824='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x453ba9={'type':'format','content':o(_0x4c0fa7,_0x3f9824,_0x35f237['commandParams'][0x0]['startIndex'])};}return _0x453ba9;}['_getSuggestionBlocksForListStyle'](){const _0x58d19d=this['editor']['plugins']['get']('LegacyListUtils');let _0x459eb9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x459eb9[0x0]?.['is']('element','listItem')&&_0x459eb9['unshift'](..._0x58d19d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x459eb9[_0x459eb9['length']-0x1]?.['is']('element','listItem')&&_0x459eb9['push'](..._0x58d19d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x459eb9=[...new Set(_0x459eb9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x459eb9=_0x459eb9['filter'](_0x385721=>_0x385721['is']('element','listItem'))),_0x459eb9;}['_getSuggestionBlocks'](_0x3df68a){const _0x78962b=this['editor']['plugins']['get']('LegacyListUtils');let _0x12db4c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3df68a)['map'](_0x8d6876=>{const _0x1fa64a=this['editor']['model']['createPositionAt'](_0x8d6876,0x0);return[..._0x78962b['getSiblingNodes'](_0x1fa64a,'backward'),..._0x78962b['getSiblingNodes'](_0x1fa64a,'forward')];})['flat']();return _0x12db4c=[...new Set(_0x12db4c)],_0x12db4c;}['_getTranslationKeyForListStyle'](_0x18e9c2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x18e9c2)||'default')['toUpperCase']()+'_LIST_'+_0x18e9c2['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x488752{['afterInit'](){const _0x1894b1=this['editor'];if(!_0x1894b1['plugins']['has']('MediaEmbedEditing'))return;const _0x13be17=_0x1894b1['plugins']['get']('TrackChangesEditing'),_0x2e453d=_0x1894b1['locale'];_0x13be17['enableCommand']('mediaEmbed'),_0x13be17['descriptionFactory']['registerElementLabel']('media',_0x3e376f=>o(_0x2e453d,'ELEMENT_MEDIA',_0x3e376f)),_0x1894b1['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x315afc,{writer:_0x230ca9,options:_0x339c20})=>{if(_0x339c20['showSuggestionHighlights'])return _0x230ca9['createEmptyElement']('div');},'converterPriority':'high'}),_0x1894b1['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5b4d7d,_0x279121,_0x14164f)=>{_0x14164f['options']['showSuggestionHighlights']&&_0x5b4d7d['stop']();},{'priority':'high'});}}class mt extends _0x488752{['afterInit'](){const _0x48b47a=this['editor'];_0x48b47a['plugins']['has']('MentionEditing')&&_0x48b47a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x488752{['afterInit'](){const _0x322b38=this['editor'];if(!_0x322b38['plugins']['has']('MergeFieldsEditing'))return;_0x322b38['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x322b38['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x49038f=_0x322b38['plugins']['get']('TrackChangesEditing'),_0x490e13=_0x322b38['locale'];_0x49038f['descriptionFactory']['registerElementLabel']('mergeField',_0x6b606f=>o(_0x490e13,'ELEMENT_MERGE_FIELD',_0x6b606f)),_0x49038f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x21ce8d=>o(_0x490e13,'ELEMENT_MERGE_FIELD',_0x21ce8d)),_0x49038f['descriptionFactory']['registerDescriptionCallback'](_0x39f4a5=>{if('insertion'!=_0x39f4a5['type']&&'deletion'!=_0x39f4a5['type'])return;const _0xda1eba=_0x39f4a5['getContainedElement']();if(null==_0xda1eba)return;if(!_0xda1eba['is']('element','mergeField')&&!_0xda1eba['is']('element','mergeFieldBlock'))return;const _0x22277c=_0x322b38['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xda1eba['getAttribute']('id'));return'insertion'==_0x39f4a5['type']?{'type':'insertion','content':o(_0x490e13,'*Insert:*\x20%0','\x22'+_0x22277c+'\x22\x20'+o(_0x490e13,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x490e13,'*Remove:*\x20%0','\x22'+_0x22277c+'\x22\x20'+o(_0x490e13,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x488752{['afterInit'](){const _0x9aa14=this['editor'],_0x266997=_0x9aa14['plugins']['get']('TrackChangesEditing');_0x9aa14['plugins']['has']('MultiLevelList')&&(_0x266997['enableDefaultAttributesIntegration']('multiLevelList'),_0x266997['registerBlockAttribute']('listMarkerStyle'),_0x266997['descriptionFactory']['registerDescriptionCallback'](_0x30cc69=>this['handleDescriptions'](_0x30cc69)));}['handleDescriptions'](_0x43827b){const _0x1f5b4c=this['editor']['locale'],{data:_0x256769}=_0x43827b,_0x3fe816={'type':'format','content':''};if(_0x256769&&'listMarkerStyle'==_0x256769['key']){if(!_0x256769['oldValue'])return{'type':'format','content':o(_0x1f5b4c,'*Set\x20format:*\x20%0',o(_0x1f5b4c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x256769['newValue']+')'};if(!_0x256769['newValue']){let _0xe9b781=_0x43827b['head'];for(;_0xe9b781;){if(_0xe9b781['data']&&'listType'==_0xe9b781['data']['key']&&_0xe9b781['data']['newValue'])return _0x3fe816;_0xe9b781=_0xe9b781['next'];}return{'type':'format','content':o(_0x1f5b4c,'*Remove\x20format:*\x20%0',o(_0x1f5b4c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x256769['oldValue']+')'};}}}}class kt extends _0x488752{['afterInit'](){const _0x2ce0d0=this['editor'];if(!_0x2ce0d0['plugins']['has']('PageBreakEditing'))return;_0x2ce0d0['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x124845=_0x2ce0d0['plugins']['get']('TrackChangesEditing'),_0x58152b=_0x2ce0d0['locale'];_0x124845['descriptionFactory']['registerElementLabel']('pageBreak',_0x551e2c=>o(_0x58152b,'ELEMENT_PAGE_BREAK',_0x551e2c));}}class bt extends _0x488752{['afterInit'](){const _0xc67771=this['editor'];if(!_0xc67771['plugins']['has']('Paragraph'))return;const _0x149446=_0xc67771['locale'],_0x165add=_0xc67771['plugins']['get']('TrackChangesEditing');_0x165add['descriptionFactory']['registerElementLabel']('paragraph',_0x412291=>o(_0x149446,'ELEMENT_PARAGRAPH',_0x412291)),_0x165add['enableDefaultAttributesIntegration']('paragraph'),_0x165add['enableCommand']('insertParagraph'),_0xc67771['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xc67771),{'priority':'highest'}),_0xc67771['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x443a53,_0x5cdcfa,_0x504426)=>{_0x504426['options']['showSuggestionHighlights']&&nr(_0xc67771,{'showActiveMarker':!0x1})(_0x443a53,_0x5cdcfa,_0x504426);},{'priority':'highest'});const _0x48dcb2=_0x165add['descriptionFactory'];_0x48dcb2['registerDescriptionCallback'](_0x58d11b=>{if('insertion'!==_0x58d11b['type'])return;const {start:_0x2d4f51,end:_0x40686a}=_0x58d11b['getFirstRange']();if(!_0x2d4f51['isTouching'](_0x40686a)||!_0x2d4f51['nodeAfter'])return;const _0x13128a=_0xc67771['model']['schema'],_0x52bd48=_0x2d4f51['nodeAfter'];return _0x13128a['isBlock'](_0x52bd48)&&!_0x13128a['isLimit'](_0x52bd48)&&_0x13128a['checkChild'](_0x52bd48,'$text')?{'type':'insertion','content':o(_0x149446,'*Insert:*\x20%0',_0x48dcb2['getItemLabel'](_0x52bd48,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31a246=this['editor'],_0x1750d6=_0x31a246['locale'];_0x31a246['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b2c06=>{if('formatBlock'!=_0x5b2c06['type'])return;const {data:_0x234578}=_0x5b2c06;return _0x234578&&'paragraph'==_0x234578['commandName']?{'type':'format','content':o(_0x1750d6,'*Change\x20to:*\x20%0',o(_0x1750d6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x28ff72,{showActiveMarker:_0x16c121=!0x0}={}){return(_0x145143,_0x1f4d4e,_0x5e3559)=>{const _0x3bbb2c=_0x28ff72['plugins']['get']('TrackChangesEditing'),_0x2905f7=_0x1f4d4e['markerRange']['start'],_0x27d454=_0x1f4d4e['markerRange']['end'],_0x490e2f=_0x28ff72['model']['schema'];if(!_0x2905f7['isTouching'](_0x27d454)||!_0x2905f7['nodeAfter'])return;const _0x3b89e6=_0x2905f7['nodeAfter'];if(_0x490e2f['isBlock'](_0x3b89e6)&&!_0x490e2f['isLimit'](_0x3b89e6)&&_0x490e2f['checkChild'](_0x3b89e6,'$text')){if(!_0x5e3559['consumable']['consume'](_0x1f4d4e['markerRange'],_0x145143['name']))return;const {authorId:_0x425d73}=_0x3bbb2c['_splitMarkerName'](_0x1f4d4e['markerName']),_0x5ac92a=_0x5e3559['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x425d73}),_0x33ba73=_0x5e3559['mapper']['toViewPosition'](_0x27d454);_0x16c121&&_0x3bbb2c['activeMarkers']['includes'](_0x1f4d4e['markerName'])&&_0x5e3559['writer']['addClass']('ck-suggestion-marker--active',_0x5ac92a),_0x5e3559['writer']['insert'](_0x33ba73,_0x5ac92a),_0x5e3559['mapper']['bindElementToMarker'](_0x5ac92a,_0x1f4d4e['markerName']);}};}class wt extends _0x488752{['afterInit'](){const _0x521897=this['editor'];if(!_0x521897['plugins']['has']('RemoveFormatEditing'))return;_0x521897['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32c52c=this['editor'];_0x32c52c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d86a7=>{if('formatBlock'!=_0x1d86a7['type']&&'formatInline'!=_0x1d86a7['type'])return;const {data:_0x2c6cc5}=_0x1d86a7;return _0x2c6cc5&&'removeFormat'==_0x2c6cc5['commandName']?{'type':'format','content':o(_0x32c52c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x488752{['afterInit'](){const _0x9fb0ab=this['editor'];if(!_0x9fb0ab['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x34a27d=_0x9fb0ab['plugins']['get']('TrackChangesEditing');_0x34a27d['enableCommand']('goToPreviousRestrictedEditingException'),_0x34a27d['enableCommand']('goToNextRestrictedEditingException');const _0x5a24a7=_0x9fb0ab['plugins']['get']('RestrictedEditingModeEditing');_0x5a24a7['enableCommand']('trackChanges'),_0x5a24a7['enableCommand']('acceptSuggestion'),_0x5a24a7['enableCommand']('discardSuggestion'),_0x5a24a7['enableCommand']('acceptAllSuggestions'),_0x5a24a7['enableCommand']('discardAllSuggestions'),_0x5a24a7['enableCommand']('acceptSelectedSuggestions'),_0x5a24a7['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x488752{static get['requires'](){return[_0x2d82c0];}['init'](){const _0x466c4f=this['editor'],_0x519f9c=_0x466c4f['plugins']['get']('TrackChangesEditing');_0x519f9c['enableCommand']('shiftEnter'),_0x466c4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x466c4f),{'priority':'high'}),_0x466c4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x466c4f),{'priority':'high'}),_0x466c4f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x126374,_0x4a850d,_0x56f280)=>{_0x56f280['options']['showSuggestionHighlights']&&ge(_0x466c4f,{'showActiveMarker':!0x1})(_0x126374,_0x4a850d,_0x56f280);}),_0x519f9c['descriptionFactory']['registerElementLabel']('softBreak',_0x104ddd=>o(_0x466c4f['locale'],'ELEMENT_LINE_BREAK',_0x104ddd));}}function ge(_0x8cee4f,{showActiveMarker:_0x4107eb=!0x0}={}){return(_0x3a598e,_0xcaa4b4,_0x193472)=>{const _0x1fcb1c=_0x8cee4f['plugins']['get']('TrackChangesEditing');if(!_0x193472['consumable']['test'](_0xcaa4b4['markerRange'],_0x3a598e['name']))return;const _0x4c28ef=_0x8cee4f['model'];for(const _0x2c10d9 of _0xcaa4b4['markerRange']['getItems']()){if(!_0x2c10d9['is']('element','softBreak'))continue;const _0x2b73c9='deletion'==_0xcaa4b4['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3833b4}=_0x1fcb1c['_splitMarkerName'](_0xcaa4b4['markerName']),_0x32a4d9=_0x193472['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b73c9,'data-author-id':_0x3833b4}),_0xe3b5d5=_0x193472['mapper']['toViewPosition'](_0x4c28ef['createPositionBefore'](_0x2c10d9));_0x4107eb&&_0x1fcb1c['activeMarkers']['includes'](_0xcaa4b4['markerName'])&&_0x193472['writer']['addClass']('ck-suggestion-marker--active',_0x32a4d9),_0x193472['writer']['insert'](_0xe3b5d5,_0x32a4d9),_0x193472['mapper']['bindElementToMarker'](_0x32a4d9,_0xcaa4b4['markerName']);}};}class St extends _0x488752{['afterInit'](){const _0x18072e=this['editor'],_0x4345cb=_0x18072e['model'],_0x2a4905=_0x18072e['locale'];if(!_0x18072e['plugins']['has']('StandardEditingModeEditing'))return;const _0x33f791=_0x18072e['plugins']['get']('TrackChangesEditing'),_0x262a9e='restrictedEditingException',_0x21d074=_0x18072e['commands']['get'](_0x262a9e);_0x33f791['enableCommand'](_0x262a9e,(_0x5c56d3,_0x39a882={})=>{const _0x270193=_0x4345cb['document']['selection'];if(_0x270193['isCollapsed'])return void _0x5c56d3(_0x39a882);const _0x1e5256=void 0x0!==_0x39a882['forceValue']?_0x39a882['forceValue']:!_0x21d074['value'];_0x4345cb['change'](()=>{const _0xf01ff8=Array['from'](_0x270193['getRanges']());for(const _0x2cfc1d of _0xf01ff8){const _0x1cd0f9=_0x1e5256?[_0x2cfc1d]:io(_0x262a9e,_0x2cfc1d,_0x4345cb);for(const _0x596657 of _0x1cd0f9)_0x33f791['markInlineFormat'](_0x596657,{'commandName':_0x262a9e,'commandParams':[{'forceValue':_0x1e5256}]});}});}),_0x33f791['descriptionFactory']['registerDescriptionCallback'](_0x3012eb=>{if('formatBlock'!=_0x3012eb['type']&&'formatInline'!=_0x3012eb['type'])return;const {data:_0x19d20f}=_0x3012eb;return _0x19d20f&&_0x19d20f['commandName']==_0x262a9e?_0x19d20f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a4905,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2a4905,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x488752{['afterInit'](){const _0x584fb0=this['editor'];if(!_0x584fb0['plugins']['has']('Style')||!_0x584fb0['plugins']['has']('DataSchema'))return;const _0x5da79b=_0x584fb0['plugins']['get']('TrackChangesEditing'),_0x533df6=_0x584fb0['locale'],_0x6e75d6=_0x584fb0['config']['get']('style')||{},_0x47f5d4=_0x584fb0['plugins']['get']('GeneralHtmlSupport'),_0x2a0e26=_0x584fb0['plugins']['get']('StyleUtils')['normalizeConfig'](_0x584fb0['plugins']['get']('DataSchema'),_0x6e75d6['definitions']);_0x5da79b['enableDefaultAttributesIntegration']('style');const _0x1afc60=new Set();for(const _0x4cf0a7 of _0x2a0e26['block']){const _0x10e648=_0x47f5d4['getGhsAttributeNameForElement'](_0x4cf0a7['element']);_0x1afc60['add'](_0x10e648);}const _0x47f560=new Set();for(const _0x38e6ca of _0x2a0e26['inline']){const _0x3be0bd=_0x47f5d4['getGhsAttributeNameForElement'](_0x38e6ca['element']);_0x47f560['add'](_0x3be0bd);for(const _0x13cff6 of _0x38e6ca['ghsAttributes'])_0x47f560['add'](_0x13cff6);}for(const _0x305b59 of _0x1afc60)_0x5da79b['registerBlockAttribute'](_0x305b59),_0x5da79b['descriptionFactory']['registerAttributeLabel'](_0x305b59,o(_0x533df6,'FORMAT_STYLE'));for(const _0x371ba5 of _0x47f560)_0x5da79b['registerInlineAttribute'](_0x371ba5),_0x5da79b['descriptionFactory']['registerAttributeLabel'](_0x371ba5,o(_0x533df6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e9ad0=this['editor'],_0x2f98bb=_0x3e9ad0['locale'];_0x3e9ad0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x575a9f=>{if('formatBlock'!=_0x575a9f['type']&&'formatInline'!=_0x575a9f['type'])return;const {data:_0x20209b}=_0x575a9f;return _0x20209b&&'style'===_0x20209b['commandName']?_0x20209b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2f98bb,'*Set\x20format:*\x20%0',_0x20209b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2f98bb,'*Remove\x20format:*\x20%0',_0x20209b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x488752{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x273405){super(_0x273405),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x347dfb=this['editor'],_0xf8ed09=_0x347dfb['model']['document']['selection'];if(!_0x347dfb['plugins']['has']('TableEditing'))return;const _0x39698d=_0x347dfb['locale'],_0x1b2b3a=_0x347dfb['plugins']['get']('TrackChangesEditing'),_0x3b9c26=_0x347dfb['plugins']['get']('TableUtils');_0x1b2b3a['descriptionFactory']['registerElementLabel']('table',_0x1a0708=>o(_0x39698d,'ELEMENT_TABLE',_0x1a0708)),this['_setupColumnsRowsFixing'](),_0x1b2b3a['enableCommand']('insertTable'),_0x1b2b3a['enableCommand']('selectTableRow'),_0x1b2b3a['enableCommand']('selectTableColumn');for(const _0x1c857b of['insertTableRowAbove','insertTableRowBelow']){const _0x279076=_0x347dfb['commands']['get'](_0x1c857b);_0x1b2b3a['enableCommand'](_0x1c857b,_0x5d786d=>{_0x347dfb['model']['change'](_0xd17b57=>{_0x5d786d();const _0x4d843f='above'===_0x279076['order'],_0x12ae45=_0x3b9c26['getSelectionAffectedTableCells'](_0xf8ed09),_0x5c1799=_0x3b9c26['getRowIndexes'](_0x12ae45),_0x212bde=_0x4d843f?_0x5c1799['first']-0x1:_0x5c1799['last']+0x1,_0x448a8f=_0x12ae45[0x0]['findAncestor']('table'),_0xd5b64=_0x3b9c26['createTableWalker'](_0x448a8f,{'startRow':_0x212bde,'endRow':_0x212bde}),_0x2c29ba=Array['from'](_0xd5b64)['map'](_0x54432b=>_0xd17b57['createRangeOn'](_0x54432b['cell']));_0x1b2b3a['markMultiRangeInsertion'](_0x2c29ba,'tableRow');});});}for(const _0x3168ee of['insertTableColumnLeft','insertTableColumnRight']){const _0x475c3d=_0x347dfb['commands']['get'](_0x3168ee);_0x1b2b3a['enableCommand'](_0x3168ee,_0x5214c8=>{_0x347dfb['model']['change'](_0x5d3feb=>{_0x5214c8();const _0x756122='left'===_0x475c3d['order'],_0x2614d0=_0x3b9c26['getSelectionAffectedTableCells'](_0xf8ed09),_0x1d385b=_0x3b9c26['getColumnIndexes'](_0x2614d0),_0xd853a=_0x756122?_0x1d385b['first']-0x1:_0x1d385b['last']+0x1,_0x2962ce=_0x2614d0[0x0]['findAncestor']('table'),_0x848f33=_0x3b9c26['createTableWalker'](_0x2962ce,{'startRow':0x0,'column':_0xd853a,'includeAllSlots':!0x1}),_0x3af453=Array['from'](_0x848f33)['map'](_0x1a43f5=>_0x5d3feb['createRangeOn'](_0x1a43f5['cell']));_0x1b2b3a['markMultiRangeInsertion'](_0x3af453,'tableColumn');});});}for(const _0x286dfa of['removeTableRow','removeTableColumn']){const _0x5301c2=_0x286dfa['substr'](0xb),_0xe5baf=_0x5301c2['toLowerCase'](),_0xf4d19a=_0xe5baf['substr'](0x0,0x3)+'span',_0x36dad8='table'+_0x5301c2,_0x521bb3='min'+_0x5301c2,_0x534cfa='max'+_0x5301c2;_0x1b2b3a['enableCommand'](_0x286dfa,()=>{_0x347dfb['model']['change'](_0x183eaf=>{const _0x265450=_0x3b9c26['getSelectionAffectedTableCells'](_0xf8ed09),_0x79e872=_0x265450[0x0]['findAncestor']('table');let _0x153ae5;if('removeTableRow'==_0x286dfa){const _0x4c785c=_0x3b9c26['getRowIndexes'](_0x265450);_0x153ae5={'startRow':_0x4c785c['first'],'endRow':_0x4c785c['last'],'includeAllSlots':!0x0};}else{const _0x369df7=_0x3b9c26['getColumnIndexes'](_0x265450);_0x153ae5={'startColumn':_0x369df7['first'],'endColumn':_0x369df7['last'],'includeAllSlots':!0x0};}const _0x3ed554=_0x3b9c26['createTableWalker'](_0x79e872,_0x153ae5),_0x1682fb=Array['from'](_0x3ed554)['map'](({cell:_0x481c8f})=>_0x481c8f),_0x574f39=be(_0x1682fb['filter'](_0x4fea0a=>_0x4fea0a['hasAttribute'](_0xf4d19a))),_0x535ef6=be(_0x1682fb['filter'](_0x1e67d7=>!_0x1e67d7['hasAttribute'](_0xf4d19a)))['map'](_0x111da9=>_0x183eaf['createRangeOn'](_0x111da9)),_0x158c31=_0x1b2b3a['markMultiRangeDeletion'](_0x535ef6,_0x36dad8);if(_0x158c31&&('tableRow'==_0x158c31['subType']||'tableColumn'==_0x158c31['subType'])){const _0x2d94c7=this['_getSuggestionCoords'](_0x158c31);for(const _0x5c8459 of _0x574f39){const _0xb0c6f0=_0x183eaf['createRangeOn'](_0x5c8459),_0x37a042=_0x3b9c26['getCellLocation'](_0x5c8459),_0x50b6ea=_0x5c8459['getAttribute'](_0xf4d19a)-0x1,_0x498eb9=_0x2d94c7[_0x521bb3],_0x1435bf=_0x2d94c7[_0x534cfa];_0x498eb9<=_0x37a042[_0xe5baf]&&_0x37a042[_0xe5baf]+_0x50b6ea<=_0x1435bf&&_0x158c31['addRange'](_0xb0c6f0);}}});});}function _0x2807b4(_0x56fe69){const _0x411cb5=Array['from'](_0xf8ed09['getRanges']())['map'](_0xb2e7ad=>_0xd05373['fromRange'](_0xb2e7ad));_0x347dfb['model']['change'](_0x30dc13=>{const _0x5650c3=_0x30dc13['batch'];_0x56fe69=_0x56fe69['filter'](_0x3fe540=>'$graveyard'!=_0x3fe540['root']['rootName']),_0x30dc13['setSelection'](_0x56fe69),_0x347dfb['commands']['get']('removeTableRow')['refresh'](),_0x347dfb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x347dfb['model']['enqueueChange'](()=>{_0x347dfb['model']['enqueueChange'](_0x5650c3,_0x28d67e=>{const _0x17fc63=_0x411cb5['filter'](_0x171ee6=>'$graveyard'!=_0x171ee6['root']['rootName']);_0x17fc63['length']>0x0&&_0x28d67e['setSelection'](_0x17fc63);for(const _0x2427a2 of _0x411cb5)_0x2427a2['detach']();});});});}function _0x41be52(_0x46ad34){_0x347dfb['model']['change'](_0x5210d2=>{const _0x2b499a=Array['from'](_0xf8ed09['getRanges']())['map'](_0x288ffe=>_0xd05373['fromRange'](_0x288ffe)),_0xb0ac21=[];for(const _0x5670e7 of _0x46ad34)for(const _0x594896 of _0x5670e7['getItems']({'shallow':!0x0}))_0xb0ac21['push'](_0x594896);for(const _0x66e004 of _0xb0ac21)'$graveyard'!=_0x66e004['root']['rootName']&&(_0x5210d2['setSelection'](_0x5210d2['createPositionAt'](_0x66e004,0x0)),_0x347dfb['commands']['get']('removeTableColumn')['refresh'](),_0x347dfb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x50596c=_0x2b499a['filter'](_0x386d33=>'$graveyard'!=_0x386d33['root']['rootName']);_0x50596c['length']>0x0&&_0x5210d2['setSelection'](_0x50596c);for(const _0x18223f of _0x2b499a)_0x18223f['detach']();});}function _0x5806ca(_0x1e4fcb,_0x2167f7){return _0x2167f7['every'](_0x4b84bf=>_0x1e4fcb['some'](_0x3c2504=>_0x3c2504['end']['isEqual'](_0x4b84bf['start'])||_0x4b84bf['end']['isEqual'](_0x3c2504['start'])));}function _0x3071c2(_0x23615d,_0x1f4f5a){return!_0x23615d['some'](_0xa3e896=>_0x1f4f5a['some'](_0x53ee40=>_0xa3e896['isIntersecting'](_0x53ee40)))&&_0x23615d['some'](_0x5e5fe8=>_0x1f4f5a['some'](_0x168921=>_0x5e5fe8['end']['isTouching'](_0x168921['start'])));}_0x347dfb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x315da8,_0x1b8c3f,_0x256d8e)=>{if(!_0x256d8e['options']['showSuggestionHighlights'])return;const _0x32bcb4=_0x1b8c3f['item'];if(!_0x32bcb4)return;const _0x5481de=_0x256d8e['mapper']['toViewElement'](_0x32bcb4);function _0x124afb(_0x85d2b7){return Array['isArray'](_0x85d2b7)?_0x85d2b7:[_0x85d2b7];}_0x5481de&&'tableCell'===_0x32bcb4['name']&&_0x4deab7(_0x5481de,_0x256d8e['writer'],(_0x106970,_0xdc2451,_0xeeaccf)=>_0xeeaccf['addClass'](_0x124afb(_0xdc2451['classes']),_0x106970),(_0x17c7d7,_0x54dbf8,_0x15c425)=>_0x15c425['removeClass'](_0x124afb(_0x54dbf8['classes']),_0x17c7d7));},{'priority':'highest'}),_0x1b2b3a['descriptionFactory']['registerDescriptionCallback'](_0x3481e8=>{if('insertion'!=_0x3481e8['type']&&'deletion'!=_0x3481e8['type'])return;const _0x81648=_0x3481e8['getContainedElement']();if(null!=_0x81648&&_0x81648['is']('element','table')){if('insertion'==_0x3481e8['type']){const _0x4a4218=_0x3481e8['getItems']()['filter'](_0x36c664=>_0x36c664['is']('$textProxy'))['map'](_0xc7f927=>_0xc7f927['data']);if(_0x4a4218['length'])return{'type':'insertion','content':o(_0x39698d,'*Insert:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4a4218['join']('\x20')+'\x22'))};}if('deletion'==_0x3481e8['type']){const _0x3ae4bc=_0x3481e8['getItems']()['filter'](_0x52f09d=>_0x52f09d['is']('$textProxy'))['map'](_0x5d01d9=>_0x5d01d9['data']);if(_0x3ae4bc['length'])return{'type':'deletion','content':o(_0x39698d,'*Remove:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ae4bc['join']('\x20')+'\x22'))};}}}),_0x1b2b3a['descriptionFactory']['registerDescriptionCallback'](_0x1f1844=>{if('tableRow'==_0x1f1844['subType']){const _0x501c5b=_0x1f1844['getItems']()['filter'](_0x2c3d74=>_0x2c3d74['is']('$textProxy'))['map'](_0x4ddaad=>_0x4ddaad['data']),_0x50c382=this['_getSuggestionCoords'](_0x1f1844),_0x172e25=_0x50c382['maxRow']-_0x50c382['minRow']+0x1;if('insertion'==_0x1f1844['type'])return _0x501c5b['length']?{'type':'insertion','content':o(_0x39698d,'*Insert:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x172e25,'\x22'+_0x501c5b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39698d,'*Insert:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_ROW',_0x172e25))};if('deletion'==_0x1f1844['type'])return _0x501c5b['length']?{'type':'deletion','content':o(_0x39698d,'*Remove:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x172e25,'\x22'+_0x501c5b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39698d,'*Remove:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_ROW',_0x172e25))};}if('tableColumn'==_0x1f1844['subType']){const _0x3c0968=_0x1f1844['getItems']()['filter'](_0x2e6b93=>_0x2e6b93['is']('$textProxy'))['map'](_0x5800d6=>_0x5800d6['data']),_0x10fb32=this['_getSuggestionCoords'](_0x1f1844),_0x3bf403=_0x10fb32['maxColumn']-_0x10fb32['minColumn']+0x1;if('insertion'==_0x1f1844['type'])return _0x3c0968['length']?{'type':'insertion','content':o(_0x39698d,'*Insert:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3bf403,'\x22'+_0x3c0968['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39698d,'*Insert:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_COLUMN',_0x3bf403))};if('deletion'==_0x1f1844['type'])return _0x3c0968['length']?{'type':'deletion','content':o(_0x39698d,'*Remove:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3bf403,'\x22'+_0x3c0968['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39698d,'*Remove:*\x20%0',o(_0x39698d,'ELEMENT_TABLE_COLUMN',_0x3bf403))};}}),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2807b4),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2807b4),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x41be52),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x41be52),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5806ca),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5806ca),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3071c2),_0x1b2b3a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3071c2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x181191=this['editor'],_0x1913de=_0x181191['model']['document']['selection'];return(_0xd9c894,_0x11655c)=>{_0x181191['model']['change'](_0x940e06=>{const {commandName:_0xaa70de,commandParams:_0x3304c4}=_0x11655c;let _0x1f897d=_0xd9c894[0x0]['end']['nodeBefore'];_0x3304c4&&_0x3304c4[0x0]&&!0x1===_0x3304c4[0x0]['forceValue']&&(_0x1f897d=_0xd9c894[0x0]['start']['nodeAfter']);const _0x30fb99=_0x940e06['createRangeIn'](_0x1f897d);if('$graveyard'==_0x30fb99['root']['rootName'])return;const _0x5a3fe1=Array['from'](_0x1913de['getRanges']())['map'](_0x11e6cf=>_0xd05373['fromRange'](_0x11e6cf));_0x940e06['setSelection'](_0x30fb99),_0x181191['commands']['get'](_0xaa70de)['refresh'](),_0x3304c4['push']({'forceDefaultExecution':!0x0}),_0x181191['execute'](_0xaa70de,..._0x3304c4);const _0x5085ad=_0x5a3fe1['filter'](_0x3a6d59=>'$graveyard'!=_0x3a6d59['root']['rootName']);_0x5085ad['length']>0x0&&_0x940e06['setSelection'](_0x5085ad);for(const _0x2432aa of _0x5a3fe1)_0x2432aa['detach']();});};}['_getCoordsForCells'](_0x1349a4){const _0x19b9ed=this['editor']['plugins']['get']('TableUtils');let _0x781204=Number['MAX_SAFE_INTEGER'],_0x488bee=Number['MIN_SAFE_INTEGER'],_0x43e00e=Number['MAX_SAFE_INTEGER'],_0x5d29b4=Number['MIN_SAFE_INTEGER'];for(const _0x1a82b6 of _0x1349a4){if('$graveyard'==_0x1a82b6['root']['rootName'])continue;const {row:_0x46ada9,column:_0x2f6112}=_0x19b9ed['getCellLocation'](_0x1a82b6),_0x29a1a5=_0x1a82b6['hasAttribute']('rowspan')?_0x1a82b6['getAttribute']('rowspan')-0x1:0x0,_0x278e84=_0x1a82b6['hasAttribute']('colspan')?_0x1a82b6['getAttribute']('colspan')-0x1:0x0;_0x781204=_0x46ada9<_0x781204?_0x46ada9:_0x781204,_0x488bee=_0x46ada9+_0x29a1a5>_0x488bee?_0x46ada9+_0x29a1a5:_0x488bee,_0x43e00e=_0x2f6112<_0x43e00e?_0x2f6112:_0x43e00e,_0x5d29b4=_0x2f6112+_0x278e84>_0x5d29b4?_0x2f6112+_0x278e84:_0x5d29b4;}return{'minRow':_0x781204,'maxRow':_0x488bee,'minColumn':_0x43e00e,'maxColumn':_0x5d29b4};}['_setupColumnsRowsFixing'](){const _0x5d3dea=this['editor'],_0x4606b3=_0x5d3dea['plugins']['get']('TrackChangesEditing'),_0x2bfa48=_0x5d3dea['plugins']['get']('TableUtils');_0x5d3dea['model']['document']['on']('change:data',()=>{const _0x12b72a=Array['from'](_0x5d3dea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7598df,data:_0x18147e}of _0x12b72a){const {group:_0x201d66,id:_0x2f08b7,subType:_0x16d56a}=_0x4606b3['_splitMarkerName'](_0x7598df);if('suggestion'!=_0x201d66)continue;if(null!=_0x18147e['oldRange'])continue;const _0x52a018=_0x4606b3['getSuggestion'](_0x2f08b7);this['_tablePostFixingSubtypes']['includes'](_0x16d56a)&&this['_tableSuggestions']['add'](_0x52a018);}},{'priority':'low'});const _0x955d0a=(_0x57d2b1,_0xced505)=>{let _0x1a04fc=!0x1;const _0x1bcfaf=_0xced505['createRangeOn'](_0x57d2b1),_0x456243=_0x57d2b1['findAncestor']('table'),_0x4c494a=_0x2bfa48['getCellLocation'](_0x57d2b1);for(const _0x31fedf of this['_tableSuggestions']){const _0x25ff6b=_0x31fedf['subType'],_0x14a07b=_0x25ff6b['startsWith']('tablePaste'),_0x47ae80=_0x25ff6b['substr'](_0x14a07b?0xa:0x5),_0x5069eb=_0x47ae80['toLowerCase'](),_0x4defe3=_0x5069eb['substr'](0x0,0x3)+'span',_0x19ba86='min'+_0x47ae80,_0x333be1='max'+_0x47ae80;if(!_0x31fedf['isInContent'])continue;if(_0x456243!=_0x31fedf['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x31fedf['isIntersectingWithRange'](_0x1bcfaf))continue;const _0x5077c1=_0x57d2b1['hasAttribute'](_0x4defe3)?_0x57d2b1['getAttribute'](_0x4defe3)-0x1:0x0,_0x3c605f=this['_getSuggestionCoords'](_0x31fedf),_0x3ccd0e=_0x3c605f[_0x19ba86],_0x423b2b=_0x3c605f[_0x333be1];_0x3ccd0e<=_0x4c494a[_0x5069eb]&&_0x4c494a[_0x5069eb]+_0x5077c1<=_0x423b2b&&(_0x31fedf['addRange'](_0x1bcfaf),_0x1a04fc=!0x0);}return _0x1a04fc;};_0x5d3dea['model']['document']['registerPostFixer'](_0x5a42e8=>{let _0x4548fa=!0x1;for(const _0x15f1ef of _0x5d3dea['model']['document']['differ']['getChanges']())if('insert'==_0x15f1ef['type']){if('tableRow'==_0x15f1ef['name']){for(const _0x1c4aed of _0x15f1ef['position']['nodeAfter']['getChildren']())_0x4548fa=_0x4548fa||_0x955d0a(_0x1c4aed,_0x5a42e8);}else'tableCell'==_0x15f1ef['name']&&(_0x4548fa=_0x4548fa||_0x955d0a(_0x15f1ef['position']['nodeAfter'],_0x5a42e8));}return _0x4548fa;});}['_getSuggestionCoords'](_0x405fb6){return this['_getCoordsForCells'](_0x405fb6['getRanges']()['map'](_0x51c0c0=>_0x51c0c0['start']['nodeAfter']));}}function be(_0x494c95){return Array['from'](new Set(_0x494c95)['values']());}class vt extends _0x488752{static get['requires'](){return[It];}['afterInit'](){const _0x16eaab=this['editor'],_0x8d001f=_0x16eaab['model']['document']['selection'],_0x505f81=_0x16eaab['locale'];if(!_0x16eaab['plugins']['has']('TableEditing'))return;const _0x9d61c6=_0x16eaab['plugins']['get']('TrackChangesEditing'),_0x16e239=_0x16eaab['plugins']['get']('TableUtils'),_0x3a3a53=_0x16eaab['plugins']['get'](It);_0x3a3a53['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x9d61c6['enableCommand']('mergeTableCells',()=>{const _0x5b021d=_0x16e239['getSelectionAffectedTableCells'](_0x16eaab['model']['document']['selection']);_0x16eaab['model']['change'](()=>{_0x9d61c6['markMultiRangeBlockFormat'](_0x5b021d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x16eaab['commands']['get']('mergeTableCells')['on']('execute',(_0x2b086c,_0x78a110)=>{_0x16eaab['commands']['get']('trackChanges')['value']&&(_0x78a110['length']>0x0&&_0x78a110[_0x78a110['length']-0x1]&&_0x78a110[_0x78a110['length']-0x1]['forceDefaultExecution']||_0x9d61c6['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2b086c['stop']());},{'priority':'highest'});for(const _0x56087b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x301b8b=_0x16eaab['commands']['get'](_0x56087b);_0x9d61c6['enableCommand'](_0x56087b,()=>{const _0x164df5=_0x16eaab['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1d6b09=>_0x1d6b09['is']('element','tableCell')),_0x7d75d6=_0x301b8b['value'];_0x16eaab['model']['change'](()=>{_0x9d61c6['markMultiRangeBlockFormat']([_0x164df5,_0x7d75d6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x222fdb of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1065fe=_0x16eaab['commands']['get'](_0x222fdb);_0x9d61c6['enableCommand'](_0x222fdb,()=>{const _0x494845=_0x16e239['getSelectionAffectedTableCells'](_0x16eaab['model']['document']['selection'])[0x0],_0x55f67b=_0x494845['findAncestor']('table'),{column:_0xd97e66,row:_0x461869}=_0x16e239['getCellLocation'](_0x494845);let _0x266ea7=[];if('horizontally'==_0x1065fe['direction']){const _0x343a8f=_0x16e239['createTableWalker'](_0x55f67b,{'startRow':_0x461869,'endRow':_0x461869,'includeAllSlots':!0x0});_0x266ea7=Array['from'](_0x343a8f)['map'](_0x2f8152=>_0x2f8152['cell']);}else{const _0x404c47=_0x16e239['createTableWalker'](_0x55f67b,{'column':_0xd97e66,'includeAllSlots':!0x0});_0x266ea7=Array['from'](_0x404c47)['map'](_0x3490e4=>_0x3490e4['cell']);}_0x16eaab['model']['change'](_0x939fb8=>{_0x9d61c6['markBlockFormat'](_0x939fb8['createRangeOn'](_0x494845),{'commandName':_0x222fdb,'commandParams':[]},_0x266ea7,_0x222fdb);});});}_0x9d61c6['descriptionFactory']['registerDescriptionCallback'](_0x1d8b04=>{if('formatBlock'!=_0x1d8b04['type']&&'formatInline'!=_0x1d8b04['type'])return;const {data:_0x48c2f5}=_0x1d8b04;return _0x48c2f5&&'mergeTableCells'==_0x48c2f5['commandName']?{'type':'format','content':o(_0x505f81,'*Merge\x20cells*')}:void 0x0;}),_0x9d61c6['descriptionFactory']['registerDescriptionCallback'](_0x178011=>{if('formatBlock'!=_0x178011['type']&&'formatInline'!=_0x178011['type'])return;const {data:_0x1b31ea}=_0x178011;return _0x1b31ea?'splitTableCellVertically'==_0x1b31ea['commandName']?{'type':'format','content':o(_0x505f81,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1b31ea['commandName']?{'type':'format','content':o(_0x505f81,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x27abba=_0x3a3a53['_acceptFormatSuggestionCallbackFactory']();for(const _0xa84c76 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x9d61c6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa84c76,'accept',_0x27abba);for(const _0x3f2a05 of['splitTableCellVertically','splitTableCellHorizontally'])_0x9d61c6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f2a05,'accept',_0x27abba);_0x9d61c6['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1fa889=>{_0x16eaab['model']['change'](_0x1e263a=>{const _0x79a4b3=Array['from'](_0x8d001f['getRanges']())['map'](_0x9745c7=>_0xd05373['fromRange'](_0x9745c7));_0x1e263a['setSelection'](_0x1fa889),_0x16eaab['commands']['get']('mergeTableCells')['refresh'](),_0x16eaab['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xa157e8=_0x79a4b3['filter'](_0x52e011=>'$graveyard'!=_0x52e011['root']['rootName']);_0xa157e8['length']>0x0&&_0x1e263a['setSelection'](_0xa157e8);for(const _0x2cca8a of _0x79a4b3)_0x2cca8a['detach']();});});for(const _0x3e06e0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x334019=_0x16eaab['commands']['get'](_0x3e06e0);_0x334019['on']('set:isEnabled',(_0x53b4a2,_0x602f1d,_0x89cd39)=>{if(_0x89cd39){const _0x28b222=_0x16eaab['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x231d8c=>_0x231d8c['is']('element','tableCell'));this['_areMergableCells'](_0x334019['value'],_0x28b222)||(_0x53b4a2['return']=!0x1,_0x53b4a2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1ec3a5=this['editor']['commands']['get']('mergeTableCells'),_0x3754e1=this['editor']['plugins']['get']('TableUtils');if(!_0x1ec3a5['isEnabled'])return!0x1;const _0x372f6e=_0x3754e1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x44ec74 of _0x372f6e)for(const _0x456845 of _0x372f6e)if(_0x44ec74!=_0x456845&&!this['_areMergableCells'](_0x44ec74,_0x456845))return!0x1;return!0x0;}['_areMergableCells'](_0x36d9b1,_0x123135){const _0x27d7dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30d00d=this['editor']['model']['createRangeOn'](_0x36d9b1),_0x43d020=this['editor']['model']['createRangeOn'](_0x123135),_0x19e4b2=new Set(),_0x2b1db5=new Set();for(const _0x24d4e6 of _0x27d7dd['getSuggestions']())if(('insertion'==_0x24d4e6['type']||'deletion'==_0x24d4e6['type']||'mergeTableCells'==_0x24d4e6['subType'])&&_0x24d4e6['isInContent']){for(const _0x4d5264 of _0x24d4e6['getRanges']())_0x4d5264['containsRange'](_0x30d00d,!0x0)&&_0x19e4b2['add'](_0x24d4e6['type']+':'+_0x24d4e6['author']['id']),_0x4d5264['containsRange'](_0x43d020,!0x0)&&_0x2b1db5['add'](_0x24d4e6['type']+':'+_0x24d4e6['author']['id']);}if(_0x19e4b2['size']!=_0x2b1db5['size'])return!0x1;for(const _0x5e5666 of _0x19e4b2)if(!_0x2b1db5['has'](_0x5e5666))return!0x1;return!0x0;}}class Ct extends _0x488752{static get['requires'](){return[It];}['afterInit'](){const _0x6f6d27=this['editor'];if(!_0x6f6d27['plugins']['has']('TableEditing'))return;const _0x27be73=_0x6f6d27['locale'],_0x5e34e1=_0x6f6d27['plugins']['get']('TrackChangesEditing');_0x5e34e1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5e34e1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5e34e1['registerBlockAttribute']('headingRows'),_0x5e34e1['registerBlockAttribute']('headingColumns'),_0x5e34e1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x27be73,'FORMAT_HEADER_ROW')),_0x5e34e1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x27be73,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3202d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22a597=this['editor']['plugins']['get']('TableUtils'),_0x4c428d=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x9e4017({showActiveMarker:_0xedf45c=!0x0,setDataAttribute:_0x5bec08=!0x0}={}){return(_0x27f65b,_0x246b1f,_0xc06137)=>{const {type:_0x18e066,id:_0x3d64fe}=_0x3202d8['_splitMarkerName'](_0x246b1f['markerName']),_0x4fb242=_0x3202d8['getSuggestion'](_0x3d64fe),_0x4e27e8=_0x4fb242['data'];if('formatBlock'!=_0x4fb242['type']||!_0x4e27e8||'setTableColumnHeader'!=_0x4e27e8['commandName'])return;if(_0x246b1f['item'])return void _0x27f65b['stop']();if(!_0xc06137['consumable']['consume'](_0x246b1f['markerRange'],_0x27f65b['name']))return;const _0xb1ff8e=_0x246b1f['markerRange']['start']['nodeAfter'],_0x6c49d5=_0x246b1f['markerRange']['end']['nodeBefore'],_0x551815=_0xb1ff8e['parent']['parent'],{column:_0x50ae0d}=_0x22a597['getCellLocation'](_0xb1ff8e),{column:_0x649148}=_0x22a597['getCellLocation'](_0x6c49d5);for(let _0x241b6b=_0x50ae0d;_0x241b6b<=_0x649148;_0x241b6b++){const _0x9fc69=_0x22a597['createTableWalker'](_0x551815,{'column':_0x241b6b,'includeAllSlots':!0x1});for(const _0xd9892e of _0x9fc69){const _0x162280=_0xd9892e['cell'],_0x663154=_0xc06137['mapper']['toViewElement'](_0x162280);_0xc06137['writer']['addClass']('ck-suggestion-marker-'+_0x18e066,_0x663154),_0x5bec08&&_0xc06137['writer']['setAttribute']('data-suggestion',_0x3d64fe,_0x663154),_0xc06137['mapper']['bindElementToMarker'](_0x663154,_0x246b1f['markerName']),_0xedf45c&&(_0x3202d8['activeMarkers']['includes'](_0x246b1f['markerName'])?_0xc06137['writer']['addClass']('ck-suggestion-marker--active',_0x663154):_0xc06137['writer']['removeClass']('ck-suggestion-marker--active',_0x663154));}}};}_0x3202d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4c428d),_0x3202d8['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4c428d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x9e4017(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3d6b2b,_0x2564b8,_0xdf717b)=>{_0xdf717b['options']['showSuggestionHighlights']&&_0x9e4017({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3d6b2b,_0x2564b8,_0xdf717b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x21829f,_0x1c749b,_0x5a2f0b)=>{const {type:_0x461aee,id:_0xb7d1b3}=_0x3202d8['_splitMarkerName'](_0x1c749b['markerName']),_0x4d8d57=_0x3202d8['getSuggestion'](_0xb7d1b3),_0xe4c2d2=_0x4d8d57['data'];if('formatBlock'!=_0x4d8d57['type']||!_0xe4c2d2||'setTableColumnHeader'!=_0xe4c2d2['commandName'])return;const _0x486fe7=_0x5a2f0b['mapper']['markerNameToElements'](_0x1c749b['markerName']);if(_0x486fe7){for(const _0x136b8c of _0x486fe7)_0x5a2f0b['writer']['removeClass']('ck-suggestion-marker-'+_0x461aee,_0x136b8c),_0x5a2f0b['writer']['removeClass']('ck-suggestion-marker--active',_0x136b8c),_0x5a2f0b['writer']['removeAttribute']('data-suggestion',_0x136b8c),_0x5a2f0b['mapper']['unbindElementFromMarkerName'](_0x136b8c,_0x1c749b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15c973=this['editor'],_0x447b8e=_0x15c973['locale'];function _0x5d6ae5(_0x3f0a26){return{'type':'format','content':o(_0x447b8e,'*Format:*\x20%0',_0x3f0a26)};}_0x15c973['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36938a=>{if('formatBlock'!=_0x36938a['type'])return;const {data:_0x1a2bd7}=_0x36938a;if(_0x1a2bd7){if('setTableRowHeader'==_0x1a2bd7['commandName']){const _0x597c55=_0x1a2bd7['commandParams'][0x0]['forceValue'];return _0x5d6ae5(o(_0x447b8e,_0x597c55?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1a2bd7['commandName']){const _0x108a2c=_0x1a2bd7['commandParams'][0x0]['forceValue'];return _0x5d6ae5(o(_0x447b8e,_0x108a2c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x123759=>[_0x123759,null]));class _t extends _0x488752{static get['requires'](){return[It];}['afterInit'](){const _0x53d17e=this['editor'];if(!_0x53d17e['plugins']['has']('TableClipboard'))return;const _0x1f8ccc=_0x53d17e['plugins']['get']('TrackChangesEditing'),_0x39b7c7=_0x53d17e['plugins']['get']('TableUtils'),_0x2a41d3=_0x53d17e['plugins']['get'](It),_0x22dc53=_0x53d17e['plugins']['get']('TableClipboard');_0x2a41d3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x53d17e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x53d17e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5420c6=null;_0x53d17e['model']['on']('insertContent',(_0x5eafed,_0x4608d8)=>{const [_0x72826e,_0x3ea4e6]=_0x4608d8,_0x418ae4=_0x4608d8[_0x4608d8['length']-0x1];_0x418ae4&&_0x418ae4['forceDefaultExecution']||_0x1f8ccc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5daebb,_0x4e4b9a,_0x2c5a96,_0x47103a,_0xcc4888){if(_0x4e4b9a&&!_0x4e4b9a['is']('documentSelection'))return!0x1;const _0x13f423=_0xcc4888['getTableIfOnlyTableInContent'](_0x5daebb,_0x2c5a96);if(!_0x13f423||!Re(_0x13f423,void 0x0,_0x47103a))return!0x1;const _0x365d24=_0x47103a['getSelectionAffectedTableCells'](_0x2c5a96['document']['selection']);if(!_0x365d24['length'])return!0x1;const _0x4446c8=_0x365d24[0x0]['findAncestor']('table'),_0x53db09=_0x47103a['getRowIndexes'](_0x365d24),_0x2fb3d6=_0x47103a['getColumnIndexes'](_0x365d24),_0x564588={'startRow':_0x53db09['first'],'endRow':_0x53db09['last'],'startColumn':_0x2fb3d6['first'],'endColumn':_0x2fb3d6['last']};return 0x1==_0x365d24['length']&&(_0x564588['endRow']+=_0x47103a['getRows'](_0x13f423)-0x1,_0x564588['endColumn']+=_0x47103a['getColumns'](_0x13f423)-0x1),Re(_0x4446c8,_0x564588,_0x47103a);}(_0x72826e,_0x3ea4e6,_0x53d17e['model'],_0x39b7c7,_0x22dc53)&&(_0x5eafed['stop'](),_0x5420c6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x53d17e['model']['change'](()=>{_0x53d17e['model']['insertContent'](_0x4608d8[0x0],_0x4608d8[0x1],_0x4608d8[0x2],{'forceDefaultExecution':!0x0});const _0x3fcbc2=_0x3309d5(),{rowInsertionRanges:_0x58eb1f,columnInsertionRanges:_0x554210,insertionRanges:_0x1b6587,deletionRanges:_0x231f48,cells:_0x5dfe6c}=_0x5420c6;_0x58eb1f['length']&&_0x1f8ccc['markMultiRangeInsertion'](_0x58eb1f,'tablePasteRow',{'tablePasteChainId':_0x3fcbc2}),_0x554210['length']&&_0x1f8ccc['markMultiRangeInsertion'](_0x554210,'tablePasteColumn',{'tablePasteChainId':_0x3fcbc2}),_0x1b6587['length']&&(_0x1f8ccc['markMultiRangeInsertion'](_0x1b6587,'tablePaste',{'tablePasteChainId':_0x3fcbc2,'skipNestingCheck':!0x0}),_0x1b6587['forEach'](_0x1bf0b0=>_0x1bf0b0['detach']?.())),_0x231f48['length']&&(_0x1f8ccc['markMultiRangeDeletion'](_0x231f48,'tablePaste',{'tablePasteChainId':_0x3fcbc2,'skipNestingCheck':!0x0}),_0x231f48['forEach'](_0x4a6fac=>_0x4a6fac['detach']?.()));const _0xdefa3e=_0x1f8ccc['markMultiRangeBlockFormat'](_0x5dfe6c['map'](({element:_0x1320fb})=>_0x1320fb),{'formatGroupId':_0x3309d5()},[],'tablePasteCell',{'tablePasteChainId':_0x3fcbc2});if(_0xdefa3e){const _0x228e49=_0xdefa3e['getMarkers'](),_0x27b138=[];for(const {element:_0x3fe2c2,attributes:_0x52e0ea}of _0x5dfe6c){if(!_0x52e0ea)continue;const _0x3297ae=_0x53d17e['model']['createRangeOn'](_0x3fe2c2),_0x2ea6d7=_0x228e49['find'](_0x608ba=>_0x608ba['getRange']()['isEqual'](_0x3297ae));_0x2ea6d7&&_0x27b138['push']([_0x2ea6d7['name'],_0x52e0ea]);}_0x27b138['length']&&_0xdefa3e['setAttribute']('markerAttributes',Object['fromEntries'](_0x27b138));}_0x5420c6=null;}));},{'priority':_0x30ed80['high']+0xa}),_0x53d17e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2af2f1,_0x4b4bef)=>{const [_0x291471,_0x3021e2,,_0x1d4142]=_0x4b4bef;if(!_0x5420c6)return;_0x2af2f1['stop']();const _0x31fea3=_0x291471['cell'],_0x562a3b=_0x3021e2,_0x101c90=ke(_0x31fea3),_0x1927dd=ke(_0x562a3b);_0x2af2f1['return']=_0x31fea3;let _0x2fa9bf=null,_0x2247c2=null;if(_0x1927dd||_0x101c90){if(_0x101c90&&!_0x1927dd){_0x1d4142['remove'](_0x31fea3['getChild'](0x0));for(const _0x53d96b of Array['from'](_0x562a3b['getChildren']()))_0x1d4142['insert'](_0x53d96b,_0x31fea3,'end');const _0x146db0=_0x5420c6['rowInsertionIndexes']['includes'](_0x291471['row']),_0x40a8f6=_0x5420c6['columnInsertionIndexes']['includes'](_0x291471['column']);_0x146db0||_0x40a8f6||(_0x2fa9bf=_0xd05373['fromRange'](_0x1d4142['createRangeIn'](_0x31fea3)));}else _0x1927dd&&!_0x101c90&&(_0x2247c2=_0x1d4142['createRangeIn'](_0x31fea3));}else{const _0x579252=_0x1d4142['createElement']('tableCellSuggestion'),_0x2815aa=_0x1d4142['createElement']('tableCellSuggestion');_0x1d4142['wrap'](_0x1d4142['createRangeIn'](_0x31fea3),_0x2815aa),_0x1d4142['insert'](_0x579252,_0x31fea3,0x0);for(const _0x4d97c4 of Array['from'](_0x562a3b['getChildren']()))_0x1d4142['insert'](_0x4d97c4,_0x579252,'end');_0x2fa9bf=_0xd05373['fromRange'](_0x1d4142['createRangeOn'](_0x579252)),_0x2247c2=_0xd05373['fromRange'](_0x1d4142['createRangeOn'](_0x2815aa));}const _0x251b68=Array['from'](_0x562a3b['getAttributes']())['filter'](([_0x11e76d])=>Pe['includes'](_0x11e76d));_0x5420c6['cells']['push']({'element':_0x31fea3,'attributes':_0x251b68['length']?Object['fromEntries'](_0x251b68):null}),_0x2fa9bf&&_0x5420c6['insertionRanges']['push'](_0x2fa9bf),_0x2247c2&&_0x5420c6['deletionRanges']['push'](_0x2247c2);},{'priority':'high'}),_0x39b7c7['on']('insertColumns',(_0x57e17f,_0x41aafd)=>{const [_0x5b017e,_0x4060f5={}]=_0x41aafd;if(!_0x5420c6)return;const _0x8075df=_0x4060f5['at']||0x0,_0x3ca57b=_0x4060f5['columns']||0x1;_0x5420c6['columnInsertionIndexes']=new Array(_0x3ca57b)['fill'](_0x8075df)['map']((_0x119517,_0x4fb65d)=>_0x119517+_0x4fb65d);for(const {cell:_0x3ae37f}of _0x39b7c7['createTableWalker'](_0x5b017e,{'startColumn':_0x8075df,'endColumn':_0x8075df+_0x3ca57b-0x1}))_0x5420c6['columnInsertionRanges']['push'](_0x53d17e['model']['createRangeOn'](_0x3ae37f));},{'priority':'low'}),_0x39b7c7['on']('insertRows',(_0x9d4125,_0x23342d)=>{const [_0x2fde60,_0xac4c81={}]=_0x23342d;if(!_0x5420c6)return;const _0x226c81=_0xac4c81['at']||0x0,_0x9364d1=_0xac4c81['rows']||0x1;_0x5420c6['rowInsertionIndexes']=new Array(_0x9364d1)['fill'](_0x226c81)['map']((_0x5c21e7,_0x52fbdb)=>_0x5c21e7+_0x52fbdb);for(const {cell:_0x5565d5}of _0x39b7c7['createTableWalker'](_0x2fde60,{'startRow':_0x226c81,'endRow':_0x226c81+_0x9364d1-0x1}))_0x5420c6['rowInsertionRanges']['push'](_0x53d17e['model']['createRangeOn'](_0x5565d5));},{'priority':'low'}),_0x1f8ccc['descriptionFactory']['registerDescriptionCallback'](_0x420731=>{if(_0x420731['subType']&&_0x420731['subType']['startsWith']('tablePaste'))return _0x420731['previous']?{}:{'type':'insertion','content':o(_0x53d17e['locale'],'*Replace\x20table\x20cells*')};});const _0x217384=()=>!0x1;for(const _0x5ac6b3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ac6b3,'join',_0x217384),_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ac6b3,'join',_0x217384),_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ac6b3,'join',_0x217384);_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x217384),_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xaf9a35,_0x3c236e,_0xb6b38a)=>{const _0x226f9f=_0xaf9a35['map'](_0x312c71=>_0x312c71['getContainedElement']())['filter'](_0x4c1036=>_0x4c1036),_0x469600=new Map(_0x226f9f['map'](_0x81b300=>[_0x81b300,null]));if(_0x5420c6){for(const {element:_0x12762c,attributes:_0x59fa3c}of _0x5420c6['cells'])_0x59fa3c&&_0x469600['set'](_0x12762c,_0x59fa3c);}else{if(_0xb6b38a&&_0xb6b38a['markerAttributes'])for(const [_0x50d3e7,_0x4ad135]of Object['entries'](_0xb6b38a['markerAttributes'])){const _0x12426a=_0x53d17e['model']['markers']['get'](_0x50d3e7),_0x59900e=_0x12426a?_0x12426a['getRange']()['getContainedElement']():null;_0x59900e&&_0x469600['set'](_0x59900e,_0x4ad135);}}_0x53d17e['model']['change'](_0xd6fe88=>{for(const [_0x8d5765,_0x3d4ca9]of _0x469600)_0xd6fe88['setAttributes']({...we,..._0x3d4ca9},_0x8d5765);});});const _0x4455ea=(_0x3d22b1,_0x464176)=>{_0x1f8ccc['_suggestionFactory']['registerCustomCallback'](_0x3d22b1,'tablePaste',_0x464176,(_0xd31c8,_0x210497,_0x1fb7c0)=>{_0x53d17e['model']['change'](_0x1348b1=>{const _0x4847be=[];for(const _0x22ac85 of _0xd31c8){const _0x5080b3=_0x22ac85['start']['nodeAfter'];_0x5080b3['is']('element','tableCellSuggestion')&&_0x4847be['push'](_0x5080b3);}_0x1f8ccc['_suggestionFactory']['getSuggestionCallback'](_0x3d22b1,null,_0x464176)(_0xd31c8,_0x210497,_0x1fb7c0);for(const _0x4035d4 of _0x4847be)'$graveyard'!=_0x4035d4['root']['rootName']&&_0x1348b1['unwrap'](_0x4035d4);});});};_0x4455ea('insertion','accept'),_0x4455ea('insertion','discard'),_0x4455ea('deletion','accept'),_0x4455ea('deletion','discard'),_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xdfe033=>{const _0x1415a0=_0xdfe033['map'](_0x2354dc=>_0x2354dc['getContainedElement']()),_0x534970=_0x1415a0[0x0]['findAncestor']('table'),{minRow:_0x1dc1b3,maxRow:_0x1c2c12}=_0x2a41d3['_getCoordsForCells'](_0x1415a0);_0x39b7c7['removeRows'](_0x534970,{'at':_0x1dc1b3,'rows':_0x1c2c12-_0x1dc1b3+0x1});}),_0x1f8ccc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x41b602=>{const _0x2ac6b7=_0x41b602['map'](_0xcb889c=>_0xcb889c['getContainedElement']()),_0x28ae6e=_0x2ac6b7[0x0]['findAncestor']('table'),{minColumn:_0x6b8568,maxColumn:_0x499656}=_0x2a41d3['_getCoordsForCells'](_0x2ac6b7);_0x39b7c7['removeColumns'](_0x28ae6e,{'at':_0x6b8568,'columns':_0x499656-_0x6b8568+0x1});});const _0x5dabed=(_0x27f66f,_0x5415e7)=>{if(!_0x5415e7['subType']||!_0x5415e7['subType']['startsWith']('tablePaste'))return;const _0x4ffe10=_0x5415e7['attributes']['tablePasteChainId'],_0x120185=_0x1f8ccc['getSuggestions']()['filter'](_0xec9486=>_0xec9486['isInContent']&&_0xec9486['attributes']&&_0xec9486['attributes']['tablePasteChainId']==_0x4ffe10);_0x120185['length']&&_0x5415e7['getAllAdjacentSuggestions']()['length']!=_0x120185['length']&&_0x120185['reduce']((_0x520b1d,_0x11b0a8)=>(_0x520b1d['next']=_0x11b0a8,_0x11b0a8['previous']=_0x520b1d,_0x11b0a8));};function _0x543442(_0x3007fb,_0x3c647d=!0x0){const {id:_0x228adb,authorId:_0xa7985c}=_0x1f8ccc['_splitMarkerName'](_0x3007fb['markerName']),_0x11ac87=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x472cdf=_0x1f8ccc['activeMarkers']['includes'](_0x3007fb['markerName']);return _0x472cdf&&_0x11ac87['push']('ck-suggestion-marker--active'),{'classes':_0x11ac87,'attributes':{'data-suggestion':_0x228adb,'data-author-id':_0xa7985c},'priority':_0x472cdf&&_0x3c647d?0xbc2:0xbb8};}_0x1f8ccc['on']('suggestionLoaded',_0x5dabed,{'priority':'high'}),_0x1f8ccc['on']('suggestionUnloaded',_0x5dabed,{'priority':'high'}),_0x53d17e['model']['document']['registerPostFixer'](()=>{let _0x5a643a=!0x1;const _0x3e7eb8=Array['from'](_0x53d17e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a2cbe,data:_0x604015}of _0x3e7eb8){const {group:_0xe46ed2,type:_0x495283,id:_0x57c3b8}=_0x1f8ccc['_splitMarkerName'](_0x5a2cbe);if('suggestion'!=_0xe46ed2||'deletion'!=_0x495283||_0x604015['oldRange'])continue;if(!_0x1f8ccc['hasSuggestion'](_0x57c3b8))continue;const _0x337a78=_0x1f8ccc['getSuggestion'](_0x57c3b8)['getRanges'](),_0x4b6506=_0x53d17e['plugins']['get']('Users')['me'];for(const _0x563e68 of _0x1f8ccc['getSuggestions']()){if(!_0x563e68['isInContent']||_0x563e68['author']!=_0x4b6506)continue;if('formatBlock'!=_0x563e68['type']||'tablePasteCell'!=_0x563e68['subType'])continue;if(_0x563e68['getRanges']()['every'](_0xe6c2d7=>_0x337a78['some'](_0x512453=>_0x512453['containsRange'](_0xe6c2d7,!0x0)))){for(const _0x1d8256 of _0x563e68['getAllAdjacentSuggestions']())_0x1d8256['isInContent']&&(_0x1d8256['discard'](),_0x5a643a=!0x0);}}}return _0x5a643a;}),_0x53d17e['model']['document']['registerPostFixer'](_0x3c0a30=>{const _0x3e8362=_0x53d17e['commands']['get']('redo');if(!_0x3e8362||!_0x3e8362['_createdBatches']['has'](_0x3c0a30['batch']))return!0x1;let _0x4a33f3=!0x1;const _0x23815=_0x53d17e['plugins']['get']('Users')['me'],_0x292d2f=_0x53d17e['model']['document']['differ']['getChanges'](),_0x54e322=Array['from'](_0x53d17e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x413d35,data:_0x1cbb0b})=>{const {group:_0x22f66f,subType:_0x3f7cb5,authorId:_0x284424}=_0x1f8ccc['_splitMarkerName'](_0x413d35);return'suggestion'==_0x22f66f&&'tablePaste'==_0x3f7cb5&&_0x284424==_0x23815['id']&&!_0x1cbb0b['oldRange'];});for(const _0x558db6 of _0x292d2f){if('insert'!=_0x558db6['type']||'tableCellSuggestion'!=_0x558db6['name']||0x1!=_0x558db6['length'])continue;const _0x4575e6=_0x3c0a30['createRange'](_0x558db6['position'],_0x558db6['position']['getShiftedBy'](0x1));if(!_0x54e322['find'](({data:_0x449719})=>_0x449719['newRange']['isEqual'](_0x4575e6))){for(const {name:_0x452464,data:_0x3781cd}of _0x54e322)if(_0x4575e6['containsRange'](_0x3781cd['newRange'])){_0x3c0a30['updateMarker'](_0x452464,{'range':_0x4575e6}),_0x4a33f3=!0x0;break;}}}return _0x4a33f3;}),_0x53d17e['model']['document']['registerPostFixer'](_0x55be19=>{let _0x408f4a=!0x1;const _0x19c803=_0x53d17e['plugins']['get']('Users')['me'],_0x3ebbde=_0x1f8ccc['getSuggestions']()['filter'](_0x1c18de=>_0x1c18de['isInContent']&&_0x1c18de['author']==_0x19c803),_0x2f3a7f=new Set(),_0x5009c6=new Set();for(const _0x5ef7c5 of _0x3ebbde)if('tablePaste'==_0x5ef7c5['subType'])for(const _0x303149 of _0x5ef7c5['getMarkers']()){const _0x2123b9=_0x303149['getRange']()['getContainedElement']();if(_0x2123b9){if(_0x2123b9['is']('element','tableCellSuggestion')&&ke(_0x2123b9)){_0x5ef7c5['removeMarker'](_0x303149['name']),_0x2f3a7f['add'](_0x2123b9),_0x408f4a=!0x0;const _0x4921aa=_0x2123b9['nextSibling'],_0x41da0a=_0x2123b9['previousSibling'],_0xcb4a8a=_0x4921aa&&_0x4921aa['is']('element','tableCellSuggestion'),_0x3932bc=_0x41da0a&&_0x41da0a['is']('element','tableCellSuggestion');_0xcb4a8a&&!_0x2f3a7f['has'](_0x4921aa)&&_0x5009c6['add'](_0x4921aa),_0x3932bc&&!_0x2f3a7f['has'](_0x41da0a)&&_0x5009c6['add'](_0x41da0a);}else _0x2123b9['is']('element','paragraph')&&_0x2123b9['isEmpty']&&(_0x5ef7c5['removeMarker'](_0x303149['name']),_0x408f4a=!0x0);}}else{if('tablePasteCell'==_0x5ef7c5['subType']){if(!_0x5ef7c5['attributes']||!_0x5ef7c5['attributes']['tablePasteChainId'])continue;const _0x1a0ffc=_0x5ef7c5['attributes']['markerAttributes'];if(_0x1a0ffc&&Object['keys'](_0x1a0ffc)['length'])continue;const _0x2a66dd=_0x5ef7c5['attributes']['tablePasteChainId'];let _0x597d5d=!0x0,_0x34bc7f=!0x0;for(const _0x4ed20c of _0x3ebbde)if(_0x4ed20c['subType']&&_0x4ed20c['subType']['startsWith']('tablePaste')){if(!_0x4ed20c['attributes']['tablePasteChainId']){_0x34bc7f=!0x1;break;}if(_0x4ed20c['id']!=_0x5ef7c5['id']&&_0x4ed20c['attributes']['tablePasteChainId']==_0x2a66dd){_0x597d5d=!0x1;break;}}_0x34bc7f&&_0x597d5d&&(_0x5ef7c5['removeMarkers'](),_0x408f4a=!0x0);}}for(const _0x506203 of _0x2f3a7f)_0x55be19['remove'](_0x506203);for(const _0x2646b5 of _0x5009c6)_0x55be19['unwrap'](_0x2646b5);return _0x408f4a;}),_0x53d17e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x34c77e=>_0x543442(_0x34c77e),'converterPriority':'high'}),_0x53d17e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x100592,_0x2174ad)=>_0x2174ad['options']['showSuggestionHighlights']?_0x543442(_0x100592,!0x1):null,'converterPriority':'high'});const _0x5e914b=_0x53d17e['editing']['view'];this['listenTo'](_0x5e914b['document'],'clipboardOutput',(_0x47d864,_0x198f6d)=>{const _0x38f82b=[];for(const _0xad33b0 of _0x5e914b['createRangeIn'](_0x198f6d['content'])['getItems']())_0xad33b0['is']('element','suggestion-td')&&_0x38f82b['push'](_0xad33b0);_0x5e914b['change'](_0x1ce95c=>{for(const _0x24e8a0 of _0x38f82b)_0x1ce95c['move'](_0x1ce95c['createRangeIn'](_0x24e8a0),_0x1ce95c['createPositionBefore'](_0x24e8a0)),_0x1ce95c['remove'](_0x24e8a0);});});}}function ke(_0x4e62e1){if(_0x4e62e1['isEmpty'])return!0x0;const _0xfb466e=_0x4e62e1['getChild'](0x0);return _0xfb466e['is']('element','paragraph')&&_0xfb466e['isEmpty'];}function Re(_0x40f8e7,_0x25e2e7={},_0x511533){for(const {isAnchor:_0x1b0109,cellHeight:_0x4a8bb5,cellWidth:_0x3fc8ee}of _0x511533['createTableWalker'](_0x40f8e7,{'includeAllSlots':!0x0,..._0x25e2e7}))if(!_0x1b0109||0x1!=_0x4a8bb5||0x1!=_0x3fc8ee)return!0x1;return!0x0;}class Nt extends _0x488752{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xaca325=this['editor']['plugins']['get']('TrackChangesEditing');_0xaca325['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xaca325['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xaca325['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xaca325['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xaca325['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xaca325['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1ec3e5,_0x398f6a){const _0x582077=this['editor']['plugins']['get']('TrackChangesEditing'),_0x524396=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1a698b=_0x398f6a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x89e0=_0x524396['getColumnGroupElement'](_0x1a698b);let _0x2aeb97=_0x89e0?_0x524396['getTableColumnsWidths'](_0x89e0):null,_0x10371c=_0x1a698b['getAttribute']('tableWidth')||null;const _0x2ec086=_0x398f6a['tableWidth']||_0x10371c,_0x384fba=_0x398f6a['columnWidths']||_0x2aeb97,_0x444b2d=this['editor']['plugins']['get']('Users')['me'];for(const _0x35bcdd of _0x582077['getSuggestions']()){const _0x2ad04b=_0x35bcdd['getContainedElement']();if('resizeTable'===_0x35bcdd['subType']&&_0x2ad04b===_0x1a698b){_0x35bcdd['author']!==_0x444b2d&&_0x35bcdd['discard']();const _0x7a3ff=_0x35bcdd['data']['commandParams'];_0x10371c=_0x7a3ff[0x0]['tableWidth'],_0x2aeb97=_0x7a3ff[0x0]['columnWidths'];break;}}_0x1ec3e5({'table':_0x1a698b,'tableWidth':_0x2ec086,'columnWidths':_0x384fba}),_0x582077['markBlockFormat'](_0x1a698b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x10371c,'columnWidths':_0x2aeb97}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x31e5df){if('formatBlock'!=_0x31e5df['type']&&'formatInline'!=_0x31e5df['type'])return;const {data:_0xa6b92f}=_0x31e5df;if(_0xa6b92f&&'resizeTable'===_0xa6b92f['formatGroupId']){const _0x3b09f6='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3b09f6)};}}}class Dt extends _0x488752{['afterInit'](){const _0x4dca39=this['editor'];_0x4dca39['plugins']['has']('Template')&&_0x4dca39['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x488752{['afterInit'](){const _0x138a5f=this['editor'];if(!_0x138a5f['commands']['get']('insertTableOfContents'))return;_0x138a5f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1735a2=_0x138a5f['plugins']['get']('TrackChangesEditing'),_0x3f33e7=_0x138a5f['locale'];_0x1735a2['descriptionFactory']['registerElementLabel']('tableOfContents',_0x144a6a=>o(_0x3f33e7,'ELEMENT_TABLE_OF_CONTENTS',_0x144a6a));}}class $t extends _0x488752{['afterInit'](){const _0x2514f1=this['editor'];if(!_0x2514f1['plugins']['has']('Title'))return;const _0x2314f3=_0x2514f1['plugins']['get']('TrackChangesEditing');_0x2314f3['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2514f1['locale'],'ELEMENT_TITLE')),_0x2514f1['model']['document']['registerPostFixer'](_0x134b79=>{let _0x47bd5f=!0x1;const _0x4bae64=Array['from'](_0x2514f1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x84d6e7,data:_0x3da16d}of _0x4bae64){const {group:_0x1c856a}=_0x2314f3['_splitMarkerName'](_0x84d6e7);if('suggestion'!==_0x1c856a||!_0x3da16d['newRange'])continue;const _0x1e743f=_0x3da16d['newRange'],_0x29e016=_0x1e743f['end']['nodeBefore'];if(!_0x29e016||!_0x29e016['is']('element','title-content'))continue;if(!_0x1e743f['start']['isTouching'](_0x1e743f['end']))continue;const _0x584efc=_0x2514f1['model']['schema']['getNearestSelectionRange'](_0x1e743f['end'],'forward');if(_0x584efc&&_0x584efc['isCollapsed']){const _0x27d496=_0x134b79['createRange'](_0x1e743f['start'],_0x584efc['start']);_0x27d496['isEqual'](_0x1e743f)||(_0x134b79['updateMarker'](_0x84d6e7,{'range':_0x27d496}),_0x47bd5f=!0x0);}_0x47bd5f||(_0x134b79['removeMarker'](_0x84d6e7),_0x47bd5f=!0x0);}return _0x47bd5f;});}}class Bt extends _0x488752{['afterInit'](){const _0x2218c1=this['editor'],_0x52f79f=_0x2218c1['plugins']['get']('TrackChangesEditing');_0x2218c1['plugins']['has']('UndoEditing')&&(_0x52f79f['enableCommand']('undo'),_0x52f79f['enableCommand']('redo'));}}class xt extends _0x488752{static get['requires'](){return[It];}['afterInit'](){const _0x5b94da=this['editor'];if(!_0x5b94da['plugins']['has']('TableCaptionEditing'))return;_0x5b94da['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ot extends _0x488752{['tableProperties'];['tableCellProperties'];constructor(_0x256c4b){super(_0x256c4b),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';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5e69fb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x503423 of this['tableProperties'])_0x5e69fb['enableCommand'](_0x503423,(_0x28439a,_0x1f8557)=>{const _0x179669=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x503423,[_0x179669],this['tableProperties'],'tableProperties',_0x28439a,_0x1f8557);});_0x5e69fb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e69fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e69fb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xff9f99,_0x43fc32)=>this['handleDiscardAction'](this['tableProperties'],_0xff9f99,_0x43fc32)),_0x5e69fb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x494592 of this['tableCellProperties'])_0x5e69fb['enableCommand'](_0x494592,(_0x68887,_0x355a2b)=>{const _0x53462b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x494592,_0x53462b,this['tableCellProperties'],'tableCellProperties',_0x68887,_0x355a2b);});_0x5e69fb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e69fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e69fb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xfad2d7,_0x3e1aa5)=>this['handleDiscardAction'](this['tableCellProperties'],_0xfad2d7,_0x3e1aa5)),_0x5e69fb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e69fb['descriptionFactory']['registerDescriptionCallback'](_0x51417a=>this['handleSuggestionDescription'](_0x51417a));}['_handlePropertyChange'](_0x2ffda4,_0x154dca,_0x3fbee4,_0xad1f18,_0x2857ce,_0x29244d){const _0x22f261=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x29244d['batch'],()=>{for(const _0x1bd95b of _0x154dca){if(this['_getSuggestion'](_0x1bd95b,_0xad1f18))_0x2857ce(_0x29244d);else{const _0x3fd412={};for(const _0x3fbef5 of _0x3fbee4){const _0xf2b291=_0x1bd95b['getAttribute'](_0x3fbef5);void 0x0!==_0xf2b291&&(_0x3fd412[_0x3fbef5]=_0xf2b291);}_0x2857ce(_0x29244d),_0x22f261['markBlockFormat'](_0x1bd95b,{'commandParams':[_0x3fd412]},[],_0xad1f18);}}});}['handleDiscardAction'](_0x3b8402,_0x2a67a8,_0x27ccd2){const _0x5cf44a=_0x2a67a8[0x0]['start']['nodeAfter'],_0x469fa7=_0x27ccd2['commandParams'][0x0];this['editor']['model']['change'](_0x5a3cbd=>{for(const _0x4298fb of _0x3b8402)void 0x0!==_0x469fa7[_0x4298fb]?_0x5a3cbd['setAttribute'](_0x4298fb,_0x469fa7[_0x4298fb],_0x5cf44a):_0x5a3cbd['removeAttribute'](_0x4298fb,_0x5cf44a);});}['handleSuggestionDescription'](_0x161987){if(_0x161987['data'])switch(_0x161987['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'](_0x3ffb47,_0x5145de){const _0x274d88=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x38328c of _0x274d88['getSuggestions']({'skipNotAttached':!0x0})){const _0x305eea=_0x38328c['getContainedElement']();if(_0x38328c['subType']===_0x5145de&&_0x305eea===_0x3ffb47)return _0x38328c;}return null;}}const m='$elementName';class p extends _0x488752{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x574e89,_0x5bce31,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,Ot,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cf39d){function _0x3f40ea(_0x43e673){return _0x43e673['map'](_0x27ed2f=>String['fromCharCode'](_0x27ed2f))['join']('');}super(_0x2cf39d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3d888f,_0x43cddb,_0x3b06b6,_0x11b656)=>{this['_model']['change'](()=>{for(const _0x59c852 of[..._0x11b656,..._0x3b06b6])this['_model']['markers']['has'](_0x59c852)&&_0x2cf39d['editing']['reconvertMarker'](_0x59c852);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Tt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2cf39d['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(),_0x2cf39d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2cf39d['config']['get']('trackChanges.trackFormatChanges'),_0x2cf39d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2cf39d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2cf39d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3f40ea([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3f40ea([0x34,0x30,0x34,0x38,0x32,0x30,0x33,0x36]);}['init'](){const _0x48f1be=this['editor'],_0x5ae03b=(_0x57e312,_0x3d416e)=>{if('attribute'!=_0x57e312)return'ck-suggestion-marker-'+_0x57e312;const _0x3ba7a4=_0x3d416e['split']('|')[0x0];return this['_isBlockAttribute'](_0x3ba7a4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x48f1be['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x9a5cb5=>{const {id:_0x381621,authorId:_0x584e7d,type:_0x3bdb3a,subType:_0x356ead}=this['_splitMarkerName'](_0x9a5cb5['markerName']),_0x595fff=['ck-suggestion-marker',_0x5ae03b(_0x3bdb3a,_0x356ead)];let _0x5a2d4e=0xbb8;return this['activeMarkers']['includes'](_0x9a5cb5['markerName'])&&(_0x595fff['push']('ck-suggestion-marker--active'),_0x5a2d4e=0xbc2),'deletion'==_0x3bdb3a&&(_0x5a2d4e+=0x5),{'classes':_0x595fff,'attributes':{'data-suggestion':_0x381621,'data-author-id':_0x584e7d},'priority':_0x5a2d4e};}}),_0x48f1be['conversion']['for']('dataDowncast')['add'](_0x15a05d=>{_0x15a05d['on']('addMarker:suggestion',(_0x59ef5a,_0x30eb99,_0x1ffe38)=>{if(!_0x1ffe38['options']['showSuggestionHighlights'])return;const _0x52f2c9=_0x30eb99['item'];if(!_0x52f2c9)return;const _0x3509ae=_0x1ffe38['mapper']['toViewElement'](_0x52f2c9);_0x48f1be['model']['schema']['isObject'](_0x52f2c9)&&_0x3509ae&&!_0x3509ae['getCustomProperty']('widget')&&_0x3509ae['is']('containerElement')&&_0x1f49eb(_0x3509ae,_0x1ffe38['writer']);},{'priority':'high'});}),_0x48f1be['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x554096,_0x3ab33a)=>{if(!_0x3ab33a['options']['showSuggestionHighlights'])return null;const {type:_0x5711ad,subType:_0x2faf72}=this['_splitMarkerName'](_0x554096['markerName']);return{'classes':['ck-suggestion-marker',_0x5ae03b(_0x5711ad,_0x2faf72)],'priority':0xbb8};}});const _0x2d2231=({showActiveMarkers:_0x245000=!0x0,isAttributeSuggestion:_0xeca812=!0x1}={})=>(_0x169476,_0x4711a7,_0x8266ec)=>{if(!_0x4711a7['item'])return;const {id:_0x318dbf,authorId:_0x29618e}=this['_splitMarkerName'](_0x4711a7['markerName']);if(_0xeca812){const _0x14ac8f=this['_suggestions']['get'](_0x318dbf),_0x3ab2e4=this['_getAttributeKey'](_0x14ac8f);if(!this['_isBlockAttribute'](_0x3ab2e4))return;}if(_0x4711a7['item']['is']('selection'))return void _0x8266ec['consumable']['consume'](_0x4711a7['item'],_0x169476['name']);const _0x3692d8=_0x8266ec['mapper']['toViewElement'](_0x4711a7['item']);if(_0x4711a7['item']['is']('element')&&_0x48f1be['model']['schema']['isBlock'](_0x4711a7['item'])&&!_0x3692d8['getCustomProperty']('addHighlight')){_0x8266ec['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3692d8),_0x8266ec['writer']['setAttribute']('data-suggestion',_0x318dbf,_0x3692d8),_0x8266ec['writer']['setAttribute']('data-author-id',_0x29618e,_0x3692d8),_0x8266ec['mapper']['bindElementToMarker'](_0x3692d8,_0x4711a7['markerName']),_0x245000&&(this['activeMarkers']['includes'](_0x4711a7['markerName'])?_0x8266ec['writer']['addClass']('ck-suggestion-marker--active',_0x3692d8):_0x8266ec['writer']['removeClass']('ck-suggestion-marker--active',_0x3692d8));for(const _0x59d8f7 of _0x48f1be['model']['createRangeIn'](_0x4711a7['item'])['getItems']())_0x8266ec['consumable']['consume'](_0x59d8f7,_0x169476['name']);_0x8266ec['consumable']['consume'](_0x4711a7['item'],_0x169476['name']);}};_0x48f1be['conversion']['for']('dataDowncast')['add'](_0x22d8bd=>{_0x22d8bd['on']('addMarker:suggestion:formatBlock',(_0x380bf8,_0x1b4231,_0x542eb1)=>{_0x542eb1['options']['showSuggestionHighlights']&&_0x2d2231({'showActiveMarkers':!0x1})(_0x380bf8,_0x1b4231,_0x542eb1);},{'priority':'highest'});}),_0x48f1be['conversion']['for']('dataDowncast')['add'](_0x1e023c=>{_0x1e023c['on']('addMarker:suggestion:attribute',(_0x11b66e,_0x33bd97,_0x2a0865)=>{_0x2a0865['options']['showSuggestionHighlights']&&_0x2d2231({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x11b66e,_0x33bd97,_0x2a0865);},{'priority':'highest'});}),_0x48f1be['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x28407e,_0x206d7b)=>_0x206d7b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x28407e['substr'](0xb)}}),_0x48f1be['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xfbf107,{writer:_0x587558})=>{let _0x28be07='suggestion:'+_0xfbf107['getAttribute']('suggestion-type')+':'+_0xfbf107['getAttribute']('id');return _0xfbf107['getAttribute']('marker-count')&&(_0x28be07+=':'+_0xfbf107['getAttribute']('marker-count')),_0x587558['createElement']('$marker',{'data-name':_0x28be07});}}),_0x48f1be['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x48f1be['conversion']['for']('editingDowncast')['add'](_0x4edd28=>{_0x4edd28['on']('addMarker:suggestion:formatBlock',_0x2d2231(),{'priority':'high'});}),_0x48f1be['conversion']['for']('editingDowncast')['add'](_0x319698=>{_0x319698['on']('addMarker:suggestion:attribute',_0x2d2231({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x48f1be['conversion']['for']('editingDowncast')['add'](_0x3dad3e=>{_0x3dad3e['on']('removeMarker:suggestion:formatBlock',(_0x9fcaa7,_0x3dabe8,_0x2d07ff)=>{const _0x306460=_0x2d07ff['mapper']['markerNameToElements'](_0x3dabe8['markerName']);if(_0x306460){for(const _0x31187b of _0x306460)_0x31187b['getCustomProperty']('addHighlight')||(_0x2d07ff['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x31187b),_0x2d07ff['writer']['removeAttribute']('data-suggestion',_0x31187b),_0x2d07ff['writer']['removeAttribute']('data-author-id',_0x31187b),_0x2d07ff['mapper']['unbindElementFromMarkerName'](_0x31187b,_0x3dabe8['markerName']));}},{'priority':'high'});}),_0x48f1be['conversion']['for']('editingDowncast')['add'](_0x38eac4=>{_0x38eac4['on']('removeMarker:suggestion:attribute',(_0xbb9125,_0x2a351e,_0x3e725f)=>{const _0x18908e=_0x3e725f['mapper']['markerNameToElements'](_0x2a351e['markerName']);if(!_0x18908e)return;const {id:_0x3ca67e}=this['_splitMarkerName'](_0x2a351e['markerName']),_0x280386=this['_suggestions']['get'](_0x3ca67e),_0x35ff8c=this['_getAttributeKey'](_0x280386);if(this['_isBlockAttribute'](_0x35ff8c)){for(const _0x1a6c8c of _0x18908e)_0x1a6c8c['getCustomProperty']('addHighlight')||(_0x3e725f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a6c8c),_0x3e725f['writer']['removeAttribute']('data-suggestion',_0x1a6c8c),_0x3e725f['writer']['removeAttribute']('data-author-id',_0x1a6c8c),_0x3e725f['mapper']['unbindElementFromMarkerName'](_0x1a6c8c,_0x2a351e['markerName']));}},{'priority':'high'});}),_0x48f1be['model']['document']['registerPostFixer'](_0x322064=>{let _0x37e170=!0x1;const _0x18cbf5=Array['from'](_0x48f1be['model']['document']['differ']['getChangedMarkers']()),_0x3574ae=new Set();for(const {name:_0x12dbf2,data:_0x591a70}of _0x18cbf5){const {group:_0x4e3e97,type:_0x171116,subType:_0x5b5211,id:_0x33ceb4}=this['_splitMarkerName'](_0x12dbf2);if('suggestion'!==_0x4e3e97)continue;const _0x19b8f0=this['_suggestions']['get'](_0x33ceb4);if(null!=_0x591a70['newRange']){'formatInline'==_0x171116&&(_0x37e170=_0x37e170||Ut(_0x591a70['newRange'],_0x12dbf2,_0x322064,_0x48f1be['model']['schema']));const _0x3573e1='attribute'==_0x171116&&this['_isBlockAttribute'](_0x5b5211['split']('|')[0x0]);if(_0x591a70['newRange']['isCollapsed']||'$graveyard'==_0x591a70['newRange']['root']['rootName']||'formatBlock'==_0x171116&&!Gt(_0x591a70['newRange'])||_0x3573e1&&!Gt(_0x591a70['newRange'])||'deletion'==_0x171116&&!(!Vt(_0x3ea2c5=_0x591a70['newRange'])&&!function(_0x3a53ad){return _0x3a53ad['start']['parent']==_0x3a53ad['end']['nodeBefore']&&_0x3a53ad['start']['isAtEnd'];}(_0x3ea2c5)))_0x322064['removeMarker'](_0x12dbf2),_0x37e170=!0x0;else{if(!_0x19b8f0||!_0x19b8f0['isInContent'])continue;if(_0x591a70['newRange']&&_0x591a70['oldRange']&&_0x591a70['newRange']['isEqual'](_0x591a70['oldRange']))continue;_0x3574ae['add'](_0x19b8f0);}}}var _0x3ea2c5;return _0x3574ae['size']>0x0&&(_0x37e170=!!this['_joinWithAdjacentSuggestions'](_0x3574ae)||_0x37e170),_0x37e170;}),_0x48f1be['model']['document']['registerPostFixer'](_0x3f4d91=>{let _0x35393b=!0x1;for(const _0x1765c3 of _0x48f1be['model']['document']['differ']['getChanges']())if('insert'==_0x1765c3['type'])for(const _0x32b559 of this['_suggestions']['values']()){if(_0x32b559['isMultiRange']||!_0x32b559['isInContent'])continue;const _0x7f122a='formatBlock'==_0x32b559['type'],_0x974bf=this['_getAttributeKey'](_0x32b559),_0x2d4cbf=_0x974bf&&this['_isBlockAttribute'](_0x974bf);if(!_0x7f122a&&!_0x2d4cbf)continue;const _0x3ca6f0=_0x32b559['getFirstRange']();if(_0x3ca6f0['start']['parent']!=_0x3ca6f0['end']['parent']&&!_0x3ca6f0['end']['isAtEnd']){const _0x26e410=_0x48f1be['model']['createPositionAt'](_0x3ca6f0['start']['nodeAfter'],'end'),_0x239a8e=_0x48f1be['model']['createRange'](_0x3ca6f0['start'],_0x26e410);_0x3f4d91['updateMarker'](_0x32b559['getFirstMarker'](),{'range':_0x239a8e}),_0x35393b=!0x0;}}return _0x35393b;}),_0x48f1be['model']['document']['registerPostFixer'](_0x185272=>this['_processAttributeChanges'](_0x185272)),_0x48f1be['model']['document']['registerPostFixer'](_0x25d01d=>!_0x25d01d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x25d01d)),_0x48f1be['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x48f1be['model']['document']['on']('change:data',(_0x500592,_0x5ccae0)=>{if(!_0x5ccae0['isLocal']||_0x5ccae0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5c3fa6=_0x48f1be['model']['document']['differ']['getChanges']();if(0x0==_0x5c3fa6['length'])return;const _0x162224=[],_0x5878b8=_0x5c3fa6['filter'](_0x59555a=>'attribute'==_0x59555a['type']),_0x3a0c3d=_0x5c3fa6['filter'](_0x25ca41=>'insert'==_0x25ca41['type']&&'$text'!=_0x25ca41['name']);for(const _0xbbb0d5 of _0x5878b8)this['_isRegisteredAttribute'](_0xbbb0d5['attributeKey'])&&_0x162224['push']({'key':_0xbbb0d5['attributeKey'],'newValue':_0xbbb0d5['attributeNewValue'],'oldValue':_0xbbb0d5['attributeOldValue'],'range':Ft(_0xbbb0d5['range'],_0x48f1be['model'])});for(const _0x5dc64a of _0x3a0c3d){if('rename'!=_0x5dc64a['action']&&'refresh'!=_0x5dc64a['action'])continue;const _0x2e1b16=Lt(_0x5dc64a['position']['nodeAfter'],_0x48f1be['model']),_0x1eface=_0x5dc64a['before'];'rename'==_0x5dc64a['action']&&_0x162224['push']({'key':m,'newValue':_0x5dc64a['name'],'oldValue':_0x1eface['name'],'range':_0x2e1b16});for(const [_0x2a521d,_0x41897c]of _0x1eface['attributes']){if(!this['_isRegisteredAttribute'](_0x2a521d))continue;const _0x5809e6=_0x5dc64a['attributes']['get'](_0x2a521d);_0x41897c!==_0x5809e6&&_0x162224['push']({'key':_0x2a521d,'newValue':_0x5809e6,'oldValue':_0x41897c,'range':_0x2e1b16});}for(const [_0x141c7e,_0x38cb73]of _0x5dc64a['attributes'])this['_isRegisteredAttribute'](_0x141c7e)&&(_0x1eface['attributes']['has'](_0x141c7e)||_0x162224['push']({'key':_0x141c7e,'newValue':_0x38cb73,'oldValue':null,'range':_0x2e1b16}));}0x0!=_0x162224['length']&&_0x48f1be['model']['enqueueChange'](_0x5ccae0,_0x4967ea=>{const _0xd49dd8=_0x3309d5();for(const {range:_0x3444c5,key:_0x5ac8c4,oldValue:_0xfb3d4a,newValue:_0x29c835}of _0x162224)this['markAttributeChange'](_0x3444c5,_0x5ac8c4,_0xfb3d4a,_0x29c835,{'groupId':_0xd49dd8});this['_reduceExistingSuggestions'](_0x4967ea,_0x162224);});},{'priority':'lowest'}),_0x48f1be['model']['markers']['on']('update:suggestion',(_0x2e3adf,_0x1c16ca,_0x518ff0)=>{if(null==_0x518ff0){const {id:_0x1b62b3}=this['_splitMarkerName'](_0x1c16ca['name']),_0x3494f5=this['_suggestions']['get'](_0x1b62b3);_0x3494f5&&_0x3494f5['addMarkerName'](_0x1c16ca['name']);}}),_0x48f1be['model']['document']['on']('change:data',()=>{const _0x166efe=Array['from'](_0x48f1be['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1fde9c=>'suggestion'===this['_splitMarkerName'](_0x1fde9c['name'])['group']);if(0x0===_0x166efe['length'])return;_0x166efe['sort']((_0x503da1,_0x141ada)=>{const _0x184931=_0x503da1['data']['oldRange'],_0x12e58d=_0x141ada['data']['oldRange'];return null===_0x184931&&null===_0x12e58d?0x0:null===_0x184931&&null!==_0x12e58d?-0x1:null!==_0x184931&&null===_0x12e58d?0x1:_0x184931['start']['isBefore'](_0x12e58d['start'])?-0x1:0x1;});const _0x1d0bbc=new Set(),_0xbc137f=new Set();for(const {name:_0x47c917,data:_0x1d894c}of _0x166efe){const {id:_0x4aa2c7}=this['_splitMarkerName'](_0x47c917);if(null===_0x1d894c['oldRange']){const _0x53b384=this['_handleNewSuggestionMarker'](_0x47c917);_0xbc137f['add'](_0x53b384);}else{const _0x9f21e=this['_suggestions']['get'](_0x4aa2c7);null!==_0x1d894c['newRange']||_0x9f21e['isInContent']?(_0x1d0bbc['add'](_0x9f21e['head']),_0xbc137f['add'](_0x9f21e)):this['_removeSuggestion'](_0x9f21e);}}_0xbc137f['size']>0x0&&this['_refreshSuggestionsChain'](_0xbc137f);for(const _0x3f7b46 of _0x1d0bbc)this['fire']('suggestionChanged',_0x3f7b46);}),_0x48f1be['model']['on']('applyOperation',(_0x1864c5,_0x1097dc)=>{const _0x3b6990=_0x1097dc[0x0];if(!this['_suggestions']['size'])return;if(!_0x3b6990['isDocumentOperation'])return;if(_0x3b6990['batch']['isUndo']||!_0x3b6990['batch']['isLocal'])return;let _0x2c68d9,_0x379c0b;switch(_0x3b6990['type']){case'insert':_0x2c68d9=_0x48f1be['model']['createPositionAt'](_0x3b6990['position']),_0x379c0b=_0x2c68d9['getShiftedBy'](_0x3b6990['howMany']);break;case'split':_0x2c68d9=_0x48f1be['model']['createPositionAt'](_0x3b6990['splitPosition']),_0x379c0b=_0x48f1be['model']['createPositionAt'](_0x3b6990['moveTargetPosition']);break;case'move':_0x2c68d9=_0x48f1be['model']['createPositionAt'](_0x3b6990['targetPosition']),_0x379c0b=_0x2c68d9['getShiftedBy'](_0x3b6990['howMany']);break;default:return;}const _0x2ed8d3=_0x48f1be['model']['createRange'](_0x2c68d9,_0x379c0b);_0x48f1be['model']['change'](()=>{for(const {suggestion:_0x408221,meta:_0x19537c}of this['_findSuggestions'](_0x2ed8d3)){if(_0x408221['isMultiRange'])continue;if('formatInline'==_0x408221['type'])continue;const _0x47c457=this['_getAttributeKey'](_0x408221);if(_0x47c457&&this['_isBlockAttribute'](_0x47c457)&&'split'!=_0x3b6990['type'])continue;const _0x517087=_0x408221['data']&&_0x408221['data']['multipleBlocks'];('formatBlock'!=_0x408221['type']||'split'==_0x3b6990['type']&&!_0x517087)&&(_0x19537c['containsRangeInObject']||'insertion'==_0x408221['type']&&_0x19537c['isOwn']||_0x408221['getFirstRange']()['containsRange'](_0x2ed8d3)&&this['_breakSuggestionMarker'](_0x408221,_0x2c68d9,_0x379c0b));}});},{'priority':'lowest'}),_0x48f1be['model']['on']('deleteContent',(_0x31816e,_0x1e4d20)=>{const _0x2771ed=_0x1e4d20[0x0],_0xe840df=_0x1e4d20[0x1];if(_0xe840df&&_0xe840df['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2771ed['isCollapsed'])return;const _0x2d3b32=_0x48f1be['model']['schema'],{start:_0x1d9409,end:_0x275f53}=_0x2771ed['getFirstRange'](),_0x4533e4=_0x1d9409['nodeAfter']&&_0x2d3b32['isLimit'](_0x1d9409['nodeAfter'])?null:_0x2d3b32['getNearestSelectionRange'](_0x1d9409,'forward'),_0x53b8dc=_0x275f53['nodeBefore']&&_0x2d3b32['isLimit'](_0x275f53['nodeBefore'])?null:_0x2d3b32['getNearestSelectionRange'](_0x275f53,'backward'),_0x33a16f=_0x48f1be['model']['createRange'](_0x4533e4?_0x4533e4['start']:_0x1d9409,_0x53b8dc?_0x53b8dc['end']:_0x275f53);_0x48f1be['model']['change'](_0x146093=>{this['markDeletion'](_0x33a16f);const _0x243eea=_0x48f1be['model']['schema']['getNearestSelectionRange'](_0x33a16f['start']);_0x2771ed['is']('documentSelection')?_0x146093['setSelection'](_0x243eea):_0x2771ed['setTo'](_0x243eea);}),_0x31816e['stop']();},{'priority':_0x30ed80['normal']+0xa}),_0x48f1be['model']['on']('insertContent',(_0x57d3ff,_0x2422eb)=>{const _0x4f509e=_0x2422eb[_0x2422eb['length']-0x1];_0x4f509e&&_0x4f509e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x48f1be['model']['change'](()=>{let _0x4de27a=_0x48f1be['model']['insertContent'](_0x2422eb[0x0],_0x2422eb[0x1],_0x2422eb[0x2],{'forceDefaultExecution':!0x0});if(!_0x4de27a)return;_0x57d3ff['return']=_0x4de27a['clone']();const _0x1c093d=_0x4de27a['end']['nodeBefore'],_0x4ce84c=_0x48f1be['model']['schema'];_0x1c093d&&_0x4ce84c['isBlock'](_0x1c093d)&&!_0x4ce84c['isObject'](_0x1c093d)&&(_0x4de27a=_0x48f1be['model']['createRange'](_0x4de27a['start'],_0x48f1be['model']['createPositionAt'](_0x1c093d,'end'))),this['markInsertion'](_0x4de27a);}),_0x57d3ff['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x121d85=new x(_0x48f1be,this['_suggestions']);_0x48f1be['commands']['add']('acceptSuggestion',_0x121d85),this['enableCommand']('acceptSuggestion');const _0x27bf19=new O(_0x48f1be,this['_suggestions']);_0x48f1be['commands']['add']('discardSuggestion',_0x27bf19),this['enableCommand']('discardSuggestion'),_0x48f1be['commands']['add']('acceptAllSuggestions',new R(_0x48f1be,_0x121d85,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x48f1be['commands']['add']('discardAllSuggestions',new R(_0x48f1be,_0x27bf19,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x48f1be['commands']['add']('acceptSelectedSuggestions',new E(_0x48f1be,_0x121d85,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x48f1be['commands']['add']('discardSelectedSuggestions',new E(_0x48f1be,_0x27bf19,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x116e1a=_0x48f1be['plugins']['get']('CommentsRepository');this['listenTo'](_0x116e1a,'addComment',(_0x37a7c9,{threadId:_0x4a0b5f})=>{const _0x4dd637=this['_suggestions']['get'](_0x4a0b5f);_0x4dd637&&_0x4dd637['commentThread']&&0x1===_0x4dd637['commentThread']['length']&&this['_updateSuggestionData'](_0x4a0b5f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x116e1a,'removeComment',(_0x3c510d,{threadId:_0x2407d0})=>{const _0x3efc25=this['_suggestions']['get'](_0x2407d0);_0x3efc25&&_0x3efc25['commentThread']&&!_0x3efc25['commentThread']['length']&&this['_updateSuggestionData'](_0x2407d0,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x31b855){if(this['_adapter'])throw new _0x2a8e99('track-changes-adapter-already-set',this);this['_adapter']=_0x31b855;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1dd69f=!0x1,toJSON:_0x37526a=!0x1}={}){const _0x26ec91=[];for(const _0x36fa96 of this['_suggestions']['values']())_0x1dd69f&&!_0x36fa96['isInContent']||_0x26ec91['push'](_0x36fa96);return _0x37526a?_0x26ec91['map'](_0x3213a2=>_0x3213a2['toJSON']()):_0x26ec91;}['getSuggestion'](_0x2746ee){const _0x3425ca=this['_suggestions']['get'](_0x2746ee);if(!_0x3425ca)throw new _0x2a8e99('track-changes-suggestion-not-found',this);return _0x3425ca;}['hasSuggestion'](_0x483d4b){return this['_suggestions']['has'](_0x483d4b);}['addSuggestionData'](_0x2a3248){const {authorId:_0x3d099a,id:_0x4077bc,attributes:_0x25ab5c}=_0x2a3248,[_0x14ed11,_0x5e8914]=_0x2a3248['type']['split'](':'),_0x1f25fd=this['_suggestions']['get'](_0x4077bc)||this['_createSuggestion'](_0x14ed11,_0x5e8914,_0x4077bc,_0x3d099a,_0x25ab5c);if(this['_addThreadToSuggestion'](_0x1f25fd),this['_checkSuggestionCorrectness'](_0x1f25fd,_0x14ed11,_0x5e8914||null,_0x3d099a),_0x1f25fd['createdAt']=_0x2a3248['createdAt'],_0x1f25fd['_isDataLoaded']=!0x0,_0x25ab5c&&_0x25ab5c['@external']){const _0x1f204d=_0x25ab5c['@external'],_0x7c1b8a=this['_getExternalAuthor'](_0x1f204d['authorName']);_0x1f25fd['authoredAt']=_0x1f204d['createdAt'],_0x1f25fd['author']=_0x7c1b8a,_0x1f25fd['isExternal']=!0x0;}else _0x1f25fd['authoredAt']=_0x2a3248['createdAt'];switch(_0x2a3248['data']&&(_0x1f25fd['data']=_0x2a3248['data']),_0x2a3248['attributes']&&(_0x1f25fd['attributes']=_0x2a3248['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1f25fd['_saved']=!0x0),this['_suggestionState']['get'](_0x1f25fd)){case'notReady':this['_suggestionState']['set'](_0x1f25fd,'dataReady');break;case'markerReady':_0x1f25fd['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1f25fd])),this['_refreshSuggestionsChain'](new Set([_0x1f25fd])),this['_suggestionState']['set'](_0x1f25fd,'ready'),this['fire']('suggestionLoaded',_0x1f25fd)):this['_suggestionState']['set'](_0x1f25fd,'removed');}return _0x1f25fd;}['acceptSuggestion'](_0xe0bdb9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xbe1921 of _0xe0bdb9['getAllAdjacentSuggestions']())_0xbe1921['accept']();});});}['discardSuggestion'](_0x3f113c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x86afcd of _0x3f113c['getAllAdjacentSuggestions']())_0x86afcd['discard']();});});}['enableCommand'](_0x57986f,_0x58e5ee){const _0x1bd7e7=this['editor']['commands']['get'](_0x57986f);if(!_0x1bd7e7)throw new _0x2a8e99('track-changes-command-not-found',this,{'commandName':_0x57986f});if(this['_enabledCommands']['has'](_0x1bd7e7))throw new _0x2a8e99('track-changes-enable-command-twice',this,{'commandName':_0x57986f});this['_enabledCommands']['add'](_0x1bd7e7),_0x58e5ee&&_0x1bd7e7['on']('execute',(_0x2af206,_0xe4c06b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xe4c06b['length']>0x0&&_0xe4c06b[_0xe4c06b['length']-0x1]&&_0xe4c06b[_0xe4c06b['length']-0x1]['forceDefaultExecution']?_0xe4c06b['pop']():(_0x2af206['return']=_0x58e5ee((..._0x161ed8)=>_0x1bd7e7['execute'](..._0x161ed8,{'forceDefaultExecution':!0x0}),..._0xe4c06b),_0x2af206['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3d48bf){let _0x44b86d,_0x44783a;const _0x98b151=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x44b86d=_0x3d48bf();}catch(_0x5e48a1){_0x44783a=_0x5e48a1;}return _0x98b151||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x44783a&&_0x2a8e99['rethrowUnexpectedError'](_0x44783a,this),_0x44b86d;}['markInsertion'](_0x195684,_0x3515a0=null,_0x1be2c6={}){if(_0x195684['isCollapsed'])return null;const _0x405c26=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1db820,meta:_0x5955a5}of this['_findSuggestions'](_0x195684,'insertion'))if(_0x5955a5['isOwn']){if(!_0x5955a5['isNextTo']){if(_0x5955a5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x1db820,_0x1be2c6))continue;return _0x1db820;}if(qt(_0x1db820,_0x1be2c6))return _0x1db820;this['_breakSuggestionMarker'](_0x1db820,_0x195684['start'],_0x195684['end']);break;}if(_0x3515a0==_0x1db820['subType']&&qt(_0x1db820,_0x1be2c6)){const _0x42a55b=_0x1db820['getFirstRange']();return _0x42a55b['start']['isEqual'](_0x195684['end'])?this['_setSuggestionRange'](_0x1db820,this['_model']['createRange'](_0x195684['start'],_0x42a55b['end'])):this['_setSuggestionRange'](_0x1db820,this['_model']['createRange'](_0x42a55b['start'],_0x195684['end'])),_0x1db820;}}const _0x45aa01=_0x3309d5(),_0x2ce770=_0x405c26['id'],_0x7976d1=_0x3515a0?'insertion:'+_0x3515a0:'insertion',_0x506f48=this['_setSuggestionData']({'id':_0x45aa01,'type':_0x7976d1,'createdAt':new Date(),'authorId':_0x2ce770,'attributes':_0x1be2c6});return this['_addSuggestionMarker'](_0x7976d1,_0x45aa01,_0x2ce770,_0x195684),_0x506f48;}['markMultiRangeInsertion'](_0x141a9f,_0x178b0c='multi',_0x8323d5={}){const _0x5e88f3=this['editor']['plugins']['get']('Users')['me'],_0xdbf9ce=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x178b0c,'join');for(const _0x2be331 of this['getSuggestions']())if(_0x2be331['author']['id']==_0x5e88f3['id']&&'insertion'==_0x2be331['type']&&_0x2be331['subType']==_0x178b0c&&qt(_0x2be331,_0x8323d5)&&(_0xdbf9ce(_0x2be331['getRanges'](),_0x141a9f)||_0xdbf9ce(_0x141a9f,_0x2be331['getRanges']()))){for(const _0x1d333f of _0x141a9f)_0x2be331['addRange'](_0x1d333f);return _0x2be331;}for(const {suggestion:_0x51eea1,meta:_0x180585}of this['_findSuggestions'](_0x141a9f,'insertion')){if(!_0x180585['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x180585['containsRangeInObject'])continue;if(!qt(_0x51eea1,_0x8323d5))continue;let _0x52c401=!0x0;for(const _0x37f560 of _0x51eea1['getRanges']())for(const _0x1ac0fa of _0x141a9f)if(!_0x37f560['containsRange'](_0x1ac0fa)){_0x52c401=!0x1;break;}if(_0x52c401)return _0x51eea1;}const _0x13223a=_0x3309d5(),_0x3e0d78=_0x5e88f3['id'],_0x548b5b='insertion:'+_0x178b0c,_0x52a6ad=this['_setSuggestionData']({'id':_0x13223a,'type':_0x548b5b,'createdAt':new Date(),'authorId':_0x3e0d78,'attributes':_0x8323d5});for(const _0x2be91a of _0x141a9f)this['_addSuggestionMarker'](_0x548b5b,_0x13223a,_0x3e0d78,_0x2be91a,u['getMultiRangeId']());return _0x52a6ad;}['markInlineFormat'](_0x13c374,_0x150979,_0x42164f=null,_0x5aeced={}){if(_0x42164f=_0x42164f||Pt(_0x150979),_0x13c374['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xea7f43=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x42164f,'accept');return this['forceDefaultExecution'](()=>_0xea7f43([_0x13c374],_0x150979,_0x5aeced)),null;}const _0x2a0465=this['editor']['plugins']['get']('Users')['me'],_0x2231cd=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x148945,meta:_0x5958b9}of this['_findSuggestions'](_0x13c374,'insertion'))_0x5958b9['isOwn']&&!_0x5958b9['isInsideObject']&&_0x2231cd['push'](..._0x148945['getRanges']());}const _0x21e6d7=function(_0x2d372e,_0x7b2e6e){const _0x45d81f=[];for(const _0x2a44e3 of _0x7b2e6e){const _0x3adf84=_0x2d372e['getIntersection'](_0x2a44e3);_0x3adf84&&_0x45d81f['push'](_0x3adf84);}return _0x45d81f;}(_0x13c374,_0x2231cd),_0x4892fb=function(_0x42acb4,_0x1c00fe){const _0x1abcb5=[_0x42acb4];for(const _0x42fc5b of _0x1c00fe){let _0x541540=0x0;for(;_0x541540<_0x1abcb5['length'];){const _0x4bfa99=_0x1abcb5[_0x541540]['getDifference'](_0x42fc5b);_0x1abcb5['splice'](_0x541540,0x1,..._0x4bfa99),_0x541540+=_0x4bfa99['length'];}}return _0x1abcb5;}(_0x13c374,_0x2231cd);_0x21e6d7['length']&&this['_model']['change'](()=>{for(const _0x1a5f55 of _0x21e6d7){const _0x527108=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x42164f,'accept');this['forceDefaultExecution'](()=>_0x527108([_0x1a5f55],_0x150979,_0x5aeced));}});for(const _0x7aa222 of _0x4892fb){let _0x437600=null,_0x3086fd=_0x7aa222['start'],_0x235418=_0x7aa222['end'];for(const {suggestion:_0x25b39e,meta:_0x56b5b7}of this['_findSuggestions'](_0x7aa222,'formatInline')){if(!_0x56b5b7['isOwn'])continue;if(_0x25b39e['subType']!=_0x42164f)continue;if(!qt(_0x25b39e,_0x5aeced))continue;const _0x3b8a8f=_0x25b39e['getFirstRange']();if(_0x3b8a8f['containsRange'](_0x7aa222,!0x0))return null;_0x3086fd=_0x3086fd['isBefore'](_0x3b8a8f['start'])?_0x3086fd:_0x3b8a8f['start'],_0x235418=_0x235418['isAfter'](_0x3b8a8f['end'])?_0x235418:_0x3b8a8f['end'],_0x437600?_0x3b8a8f['start']['isBefore'](_0x437600['getFirstRange']()['start'])?(_0x437600['removeMarkers'](),_0x437600=_0x25b39e):_0x25b39e['removeMarkers']():_0x437600=_0x25b39e;}const _0x335c4e=this['_model']['createRange'](_0x3086fd,_0x235418);if(_0x437600)this['_setSuggestionRange'](_0x437600,_0x335c4e);else{const _0x5f2505=_0x3309d5(),_0x119019=_0x2a0465['id'];this['_setSuggestionData']({'id':_0x5f2505,'type':'formatInline:'+_0x42164f,'data':_0x150979,'createdAt':new Date(),'authorId':_0x119019,'attributes':_0x5aeced}),this['_addSuggestionMarker']('formatInline:'+_0x42164f,_0x5f2505,_0x119019,_0x335c4e);}}return null;}['markBlockFormat'](_0x3d0e38,_0x473132,_0x1133a8=[],_0xe899c5=null,_0x2a9c6d={}){_0x473132['formatGroupId']||(_0x473132['formatGroupId']=_0x473132['commandName']),_0x473132['multipleBlocks']=_0x3d0e38['is']('range'),_0xe899c5=_0xe899c5||Pt(_0x473132);const _0x3859c2=_0x1133a8['map'](_0x337591=>Lt(_0x337591,this['_model'])),_0x99d4e3=_0x3d0e38['is']('range')?_0x3d0e38:Lt(_0x3d0e38,this['_model']);if('never'===this['_trackFormatChanges']){const _0x411ad5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe899c5,'accept');return this['forceDefaultExecution'](()=>_0x411ad5([_0x99d4e3],_0x473132,_0x2a9c6d)),null;}_0x3859c2['push'](_0x99d4e3);let _0x18659a=!0x0;for(const _0x23d68d of _0x3859c2)if(!this['_rangeIsInLocalUserInsertion'](_0x23d68d)){_0x18659a=!0x1;break;}if(_0x18659a&&'always'!==this['_trackFormatChanges']){const _0x4142f9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe899c5,'accept');return this['forceDefaultExecution'](()=>_0x4142f9([_0x99d4e3],_0x473132,_0x2a9c6d)),null;}let _0x1974ac=null,_0x7ca928=_0x99d4e3['start'],_0x1801bb=_0x99d4e3['end'];for(const {suggestion:_0x406a78,meta:_0x2ef5f5}of this['_findSuggestions'](_0x99d4e3,'formatBlock')){if(!_0x2ef5f5['isOwn'])continue;if(_0x2ef5f5['isNextTo']||_0x2ef5f5['containsRangeInObject']||_0x2ef5f5['isInsideObject'])continue;if(_0x406a78['data']['formatGroupId']!=_0x473132['formatGroupId'])continue;if(!qt(_0x406a78,_0x2a9c6d))continue;const _0x202819=_0x406a78['getFirstRange']();if(_0x406a78['subType']==_0xe899c5){if(_0x202819['containsRange'](_0x99d4e3,!0x0))return null;_0x7ca928=_0x7ca928['isBefore'](_0x202819['start'])?_0x7ca928:_0x202819['start'],_0x1801bb=_0x1801bb['isAfter'](_0x202819['end'])?_0x1801bb:_0x202819['end'],_0x1974ac?_0x202819['start']['isBefore'](_0x1974ac['getFirstRange']()['start'])?(_0x1974ac['removeMarkers'](),_0x1974ac=_0x406a78):_0x406a78['removeMarkers']():_0x1974ac=_0x406a78;}else{const _0x50be61=_0x99d4e3['getIntersection'](_0x202819);this['_cutOutSuggestionMarker'](_0x406a78,_0x50be61);}}const _0x39c07a=this['editor']['plugins']['get']('Users')['me'],_0x20c91d=_0x3309d5(),_0x21714f=_0x39c07a['id'];if(_0x1974ac)return this['_setSuggestionRange'](_0x1974ac,this['_model']['createRange'](_0x7ca928,_0x1801bb)),_0x1974ac;{const _0xbea6f9=this['_setSuggestionData']({'id':_0x20c91d,'type':'formatBlock:'+_0xe899c5,'data':_0x473132,'createdAt':new Date(),'authorId':_0x21714f,'attributes':_0x2a9c6d});return this['_addSuggestionMarker']('formatBlock:'+_0xe899c5,_0x20c91d,_0x21714f,this['_model']['createRange'](_0x7ca928,_0x1801bb)),_0xbea6f9;}}['markMultiRangeBlockFormat'](_0x294875,_0x21dde1,_0x3c8b82=[],_0x182531=null,_0x5bb32c={}){_0x21dde1['formatGroupId']||(_0x21dde1['formatGroupId']=_0x21dde1['commandName']);const _0x591693=_0x294875[0x0];_0x21dde1['multipleBlocks']=_0x591693['is']('range'),_0x182531=_0x182531||Pt(_0x21dde1);const _0x568840=_0x3c8b82['map'](_0x306b4a=>Lt(_0x306b4a,this['_model'])),_0x285649=_0x591693['is']('range')?_0x294875:_0x294875['map'](_0x482d77=>Lt(_0x482d77,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5dca89=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x182531,'accept');return this['forceDefaultExecution'](()=>_0x5dca89(_0x285649,_0x21dde1,_0x5bb32c)),null;}_0x568840['push'](..._0x285649);let _0xd36a14=!0x0;for(const _0x4e08ed of _0x568840)if(!this['_rangeIsInLocalUserInsertion'](_0x4e08ed)){_0xd36a14=!0x1;break;}if(_0xd36a14&&'always'!==this['_trackFormatChanges']){const _0x4c9d83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x182531,'accept');return this['forceDefaultExecution'](()=>_0x4c9d83(_0x285649,_0x21dde1,_0x5bb32c)),null;}const _0x4d11ac=this['editor']['plugins']['get']('Users')['me'];for(const _0x5049d7 of this['getSuggestions']()){if(_0x5049d7['author']['id']!=_0x4d11ac['id'])continue;if('formatBlock'!=_0x5049d7['type']||_0x5049d7['data']['formatGroupId']!=_0x21dde1['formatGroupId'])continue;if(!qt(_0x5049d7,_0x5bb32c))continue;const _0xb73600=_0x5049d7['subType']==_0x182531;for(let _0x2b58b5=0x0;_0x2b58b5<_0x285649['length'];_0x2b58b5++){const _0x58f21e=_0x285649[_0x2b58b5];for(const _0x3a3025 of _0x5049d7['getMarkers']()){const _0x5f20de=_0x3a3025['getRange']();if(_0x58f21e['isEqual'](_0x5f20de)){_0xb73600?(_0x285649['splice'](_0x2b58b5,0x1),_0x2b58b5--):_0x5049d7['removeMarker'](_0x3a3025['name']);break;}}}}if(0x0==_0x285649['length'])return null;const _0x127608=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x182531,'join');for(const _0x21ec5a of this['getSuggestions']())if(_0x21ec5a['author']['id']==_0x4d11ac['id']&&'formatBlock'==_0x21ec5a['type']&&_0x21ec5a['data']['formatGroupId']==_0x21dde1['formatGroupId']&&_0x21ec5a['subType']==_0x182531&&qt(_0x21ec5a,_0x5bb32c)&&(_0x127608(_0x21ec5a['getRanges'](),_0x285649)||_0x127608(_0x285649,_0x21ec5a['getRanges']()))){for(const _0x1e0f35 of _0x285649)_0x21ec5a['addRange'](_0x1e0f35);return _0x21ec5a;}const _0x4ca4b=_0x3309d5(),_0x2d7ba7=_0x4d11ac['id'],_0x534bd9='formatBlock:'+_0x182531,_0x1c6c94=this['_setSuggestionData']({'id':_0x4ca4b,'type':_0x534bd9,'data':_0x21dde1,'createdAt':new Date(),'authorId':_0x2d7ba7,'attributes':_0x5bb32c});for(const _0x555f59 of _0x285649)this['_addSuggestionMarker'](_0x534bd9,_0x4ca4b,_0x2d7ba7,_0x555f59,u['getMultiRangeId']());return _0x1c6c94;}['markDeletion'](_0xc2ba19,_0x4d768d=null,_0x412ee4={}){if(_0xc2ba19['isCollapsed'])return null;const _0x1e72e6=this['editor']['plugins']['get']('Users')['me'],_0x13938c=new _0xd05373(_0xc2ba19['start'],_0xc2ba19['end']);for(const {suggestion:_0x2747e,meta:_0x3284a7}of this['_findSuggestions'](_0x13938c,'insertion'))if(_0x3284a7['isOwn']&&!_0x3284a7['isNextTo']){if(_0x2747e['isMultiRange']){const _0x1585c5=_0x2747e['getRanges']()['filter'](_0x4c5e81=>'$graveyard'!=_0x4c5e81['root']['rootName']);_0x1585c5['every'](_0x476bc4=>_0x13938c['containsRange'](_0x476bc4,!0x0))&&_0x2747e['discard']();if(_0x1585c5['some'](_0x20dc5e=>_0x20dc5e['containsRange'](_0x13938c,!0x0))){const _0x817567=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d768d,'accept');return this['forceDefaultExecution'](()=>_0x817567([_0x13938c],null,_0x412ee4)),null;}}else{const _0x4c7986=_0x13938c['getIntersection'](_0x2747e['getFirstRange']());null!==_0x4c7986&&_0x2747e['_onDiscard']([_0x4c7986],null,_0x412ee4);}}if(_0x13938c['detach'](),_0x13938c['isCollapsed']||'$graveyard'==_0x13938c['root']['rootName'])return null;let _0x2dd77b=null,_0x2f86df=_0x13938c['start'],_0x1d80c8=_0x13938c['end'];const _0x24ac4d=this['_findSuggestions'](_0x13938c,'deletion');for(const {suggestion:_0x132594,meta:_0x3f2d09}of _0x24ac4d){const _0x153fdc=this['_model']['createRange'](_0x2f86df,_0x1d80c8);if(_0x3f2d09['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f2d09['containsRangeInObject']&&!_0x3f2d09['isInsideObject'])){if(_0x132594['isMultiRange']){if(!qt(_0x132594,_0x412ee4))continue;let _0x408662=!0x0;for(const _0x18b5d7 of _0x132594['getRanges']()){if(_0x18b5d7['containsRange'](_0x153fdc,!0x0))return _0x132594;_0x153fdc['containsRange'](_0x18b5d7)||(_0x408662=!0x1);}_0x408662&&_0x132594['discard']();}else{const _0x5e4199=_0x132594['getFirstRange']();if(_0x5e4199['containsRange'](_0x153fdc,!0x0))return _0x132594;if(!qt(_0x132594,_0x412ee4)){_0x153fdc['containsRange'](_0x5e4199)?_0x132594['removeMarkers']():_0x5e4199['containsPosition'](_0x2f86df)?_0x2f86df=_0x5e4199['end']:_0x5e4199['containsPosition'](_0x1d80c8)&&(_0x1d80c8=_0x5e4199['start']);continue;}_0x2f86df=_0x2f86df['isBefore'](_0x5e4199['start'])?_0x2f86df:_0x5e4199['start'],_0x1d80c8=_0x1d80c8['isAfter'](_0x5e4199['end'])?_0x1d80c8:_0x5e4199['end'],_0x412ee4=Object['assign']({},_0x132594['attributes']),_0x2dd77b?_0x5e4199['start']['isBefore'](_0x2dd77b['getFirstRange']()['start'])?(_0x2dd77b['removeMarkers'](),_0x2dd77b=_0x132594):_0x132594['removeMarkers']():_0x2dd77b=_0x132594;}}}if(_0x2dd77b)return this['_setSuggestionRange'](_0x2dd77b,this['_model']['createRange'](_0x2f86df,_0x1d80c8)),_0x2dd77b;{const _0x1180cd=_0x3309d5(),_0x2ba16e=this['_model']['createRange'](_0x2f86df,_0x1d80c8),_0x41b818=_0x1e72e6['id'],_0x390852=_0x4d768d?'deletion:'+_0x4d768d:'deletion',_0x1f4f6b=this['_setSuggestionData']({'id':_0x1180cd,'type':_0x390852,'createdAt':new Date(),'authorId':_0x41b818,'attributes':_0x412ee4});return this['_addSuggestionMarker'](_0x390852,_0x1180cd,_0x41b818,_0x2ba16e),_0x1f4f6b;}}['markMultiRangeDeletion'](_0x4c870b,_0x4bb0d1='multi',_0x7030f={}){const _0x510f42=this['editor']['plugins']['get']('Users')['me'],_0x154280=_0x4c870b['map'](_0x176e1b=>new _0xd05373(_0x176e1b['start'],_0x176e1b['end'])),_0x2fc556=new Set();for(const {suggestion:_0x1f6d17,meta:_0x4879c7}of this['_findSuggestions'](_0x154280,'insertion'))_0x4879c7['isOwn']&&!_0x4879c7['isNextTo']&&_0x2fc556['add'](_0x1f6d17);for(const _0x15df5f of _0x2fc556)if(_0x15df5f['isMultiRange']){const _0x377752=_0x15df5f['getRanges']();(!_0x15df5f['attributes']||!_0x15df5f['attributes']['skipNestingCheck'])&&(_0x377752['every'](_0x12a7b2=>_0x154280['some'](_0x98d2a0=>_0x98d2a0['containsRange'](_0x12a7b2,!0x0)))&&_0x15df5f['discard']());if(_0x154280['every'](_0x2fc075=>_0x377752['some'](_0x280792=>_0x280792['containsRange'](_0x2fc075,!0x0)))){const _0x55ab82=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bb0d1,'accept');return this['forceDefaultExecution'](()=>_0x55ab82(_0x4c870b,null,_0x7030f)),null;}}else{const _0x1f8f4e=_0x15df5f['getFirstRange']();_0x154280['some'](_0x593557=>_0x593557['containsRange'](_0x1f8f4e,!0x0))&&_0x15df5f['discard']();if(_0x154280['every'](_0x37d2cc=>_0x1f8f4e['containsRange'](_0x37d2cc,!0x0))){const _0xb10f20=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bb0d1,'accept');return this['forceDefaultExecution'](()=>_0xb10f20(_0x154280,null,_0x7030f)),null;}}const _0x1fbd99=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4bb0d1,'join');let _0xe38742=null;for(const _0x35e1b2 of this['getSuggestions']())if(_0x35e1b2['author']['id']==_0x510f42['id']&&_0x35e1b2['isInContent']&&'deletion'==_0x35e1b2['type']&&_0x35e1b2['subType']==_0x4bb0d1&&qt(_0x35e1b2,_0x7030f)&&(_0x1fbd99(_0x35e1b2['getRanges'](),_0x154280)||_0x1fbd99(_0x154280,_0x35e1b2['getRanges']()))){if(_0xe38742){if(_0x35e1b2['commentThread']&&_0x35e1b2['commentThread']['length'])continue;for(const _0x247d9b of _0x35e1b2['getRanges']())_0xe38742['isIntersectingWithRange'](_0x247d9b)||_0xe38742['addRange'](_0x247d9b);_0x35e1b2['removeMarkers']();}else{_0xe38742=_0x35e1b2;for(const _0x139140 of _0x154280)_0x35e1b2['isIntersectingWithRange'](_0x139140)||_0x35e1b2['addRange'](_0x139140);}}if(_0xe38742)return _0xe38742;_0x2fc556['clear']();for(const {suggestion:_0x18cc72,meta:_0x2c4926}of this['_findSuggestions'](_0x154280,'deletion'))_0x2c4926['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2c4926['containsRangeInObject']&&!_0x2c4926['isInsideObject'])&&qt(_0x18cc72,_0x7030f)&&_0x2fc556['add'](_0x18cc72);for(const _0x46932d of _0x2fc556){const _0x285907=_0x46932d['getRanges']();if(!_0x7030f||!_0x7030f['skipNestingCheck']){if(_0x154280['every'](_0x2d77e8=>_0x285907['some'](_0x5e20aa=>_0x5e20aa['containsRange'](_0x2d77e8,!0x0))))return _0x46932d;}(!_0x46932d['attributes']||!_0x46932d['attributes']['skipNestingCheck'])&&(_0x285907['every'](_0x44dcae=>_0x154280['some'](_0xf74710=>_0xf74710['containsRange'](_0x44dcae,!0x0)))&&_0x46932d['discard']());}const _0x38f54e=_0x3309d5(),_0x4c8db9=_0x510f42['id'],_0x4e97dd='deletion:'+_0x4bb0d1,_0x567006=this['_setSuggestionData']({'id':_0x38f54e,'type':_0x4e97dd,'createdAt':new Date(),'authorId':_0x4c8db9,'attributes':_0x7030f});for(const _0x4eea21 of _0x154280)_0x4eea21['detach'](),_0x4eea21['isCollapsed']||'$graveyard'==_0x4eea21['root']['rootName']||this['_addSuggestionMarker'](_0x4e97dd,_0x38f54e,_0x4c8db9,_0x4eea21,u['getMultiRangeId']());return _0x567006;}['markAttributeChange'](_0x168e4f,_0x47df9a,_0x258cad,_0x37f9db,_0x383979){if(_0x168e4f['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3dff8a=this['editor']['plugins']['get']('Users')['me']['id'],_0x24b19f=Array['from'](this['_suggestions']['values']())['filter'](_0x1e0c41=>'attribute'==_0x1e0c41['type']&&_0x1e0c41['data']['key']==_0x47df9a&&_0x1e0c41['isIntersectingWithRange'](_0x168e4f));if('default'===this['_trackFormatChanges']){const _0x1e806a=this['_findSuggestions'](_0x168e4f,'insertion')['filter'](({meta:_0x1adb9b})=>_0x1adb9b['isOwn']&&!_0x1adb9b['isInsideObject']&&!_0x1adb9b['isNextTo'])['map'](({suggestion:_0x4911b9})=>_0x4911b9);_0x24b19f['unshift'](..._0x1e806a);}const _0x108f64=new Map([[_0x168e4f,_0x258cad]]);for(const _0x408115 of _0x24b19f){const _0x875f2b='attribute'==_0x408115['type']?_0x408115['data']['oldValue']:void 0x0,_0x4a4ba0=_0x408115['getFirstRange'](),_0xb1e9f7=Array['from'](_0x108f64['keys']())['find'](_0xf23961=>_0xf23961['isIntersecting'](_0x4a4ba0));if(!_0xb1e9f7)continue;const _0x2c71ec=_0xb1e9f7['getDifference'](_0x4a4ba0);this['_isBlockAttribute'](_0x47df9a)&&'insertion'==_0x408115['type']&&0x0!=_0x2c71ec['length']||(_0x108f64['delete'](_0xb1e9f7),_0x2c71ec['forEach'](_0x4644b8=>{_0x108f64['set'](_0x4644b8,_0x258cad);}),'insertion'!=_0x408115['type']&&_0x875f2b!=_0x37f9db&&_0x108f64['set'](_0xb1e9f7['getIntersection'](_0x4a4ba0),_0x875f2b));}const _0x39f186=[];for(const [_0x17cd1e,_0x4013ac]of _0x108f64){const _0x2a9978=_0x3309d5(),_0x1a7970={'key':_0x47df9a,'oldValue':_0x4013ac,'newValue':_0x37f9db};_0x47df9a['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':_0x47df9a});const _0x22f7d5=('attribute:'+(_0x47df9a+'|'+Pt({'newValue':_0x37f9db})))['substring'](0x0,0x3c),_0x3ddfa1=this['_setSuggestionData']({'id':_0x2a9978,'type':_0x22f7d5,'data':_0x1a7970,'createdAt':new Date(),'authorId':_0x3dff8a,'attributes':_0x383979});_0x39f186['push'](_0x3ddfa1),this['_addSuggestionMarker'](_0x22f7d5,_0x2a9978,_0x3dff8a,_0x17cd1e);}return _0x39f186;}['enableDefaultAttributesIntegration'](_0x5606dc){this['enableCommand'](_0x5606dc,(_0x19e458,..._0x399114)=>{this['_recordAttributeChanges'](()=>{_0x19e458(..._0x399114);});});}['registerBlockAttribute'](_0x39ed7f){this['_blockAttributeKeys']['add'](_0x39ed7f);}['registerInlineAttribute'](_0x26e47a){this['_inlineAttributeKeys']['add'](_0x26e47a);}['_getAttributeKey'](_0x3e07bd){return'attribute'==_0x3e07bd['type']?_0x3e07bd['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4f0e5c,_0xd0f4d8){const _0x474e72=_0x4f0e5c['getFirstMarker']();this['_model']['change'](_0x466c5c=>{_0x466c5c['updateMarker'](_0x474e72,{'range':_0xd0f4d8});});}['_addThreadToSuggestion'](_0x18640c){const _0x1e35bb=_0x18640c['id'],_0x1e03d5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1e35bb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1e03d5,'threadId':_0x1e35bb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x41cec2=this['_commentsRepository']['getCommentThread'](_0x1e35bb);_0x41cec2['unbind']('isRemovable'),_0x41cec2['isRemovable']=!0x1,_0x18640c['commentThread']=_0x41cec2;}['_checkSuggestionCorrectness'](_0x19c363,_0xa71720,_0x49294c,_0x5cd98b){if(_0x19c363['type']!=_0xa71720||_0x19c363['subType']!=_0x49294c||_0x19c363['creator']['id']!=_0x5cd98b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2a8e99('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x184669,_0x2b6fd2){const _0x5d7c57=_0x184669['getFirstRange']();if(_0x2b6fd2['isEqual'](_0x5d7c57))_0x184669['removeMarkers']();else{if(_0x5d7c57['containsRange'](_0x2b6fd2)){const _0x432c90=this['_model']['createPositionAt'](_0x2b6fd2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x184669,this['_model']['createRange'](_0x5d7c57['start'],_0x432c90));const _0x9e71ed=_0x3309d5(),_0x1c521e=_0x184669['creator']['id'],_0xc3cbe5=_0x184669['type']+':'+_0x184669['subType'];this['_setSuggestionData']({'id':_0x9e71ed,'type':_0xc3cbe5,'createdAt':new Date(),'authorId':_0x1c521e,'data':_0x184669['data'],'attributes':_0x184669['attributes']});const _0x39806d=this['_model']['createPositionAt'](_0x2b6fd2['end']['parent'],'after'),_0x35576e=this['_model']['createRange'](_0x39806d,_0x5d7c57['end']);this['_addSuggestionMarker'](_0xc3cbe5,_0x9e71ed,_0x1c521e,_0x35576e);}else{if(_0x5d7c57['containsPosition'](_0x2b6fd2['start'])){const _0x4d8510=this['_model']['createPositionAt'](_0x2b6fd2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x184669,this['_model']['createRange'](_0x5d7c57['start'],_0x4d8510));}else{const _0x19cdaf=this['_model']['createPositionAt'](_0x2b6fd2['end']['parent'],'after');this['_setSuggestionRange'](_0x184669,this['_model']['createRange'](_0x19cdaf,_0x5d7c57['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x46c341){for(const {suggestion:_0x1490d2,meta:_0x50f1d1}of this['_findSuggestions'](_0x46c341,'insertion')){if(!_0x50f1d1['isOwn'])continue;const _0x189c0f=_0x1490d2['getRanges']();for(const _0x184c73 of _0x189c0f)if(!_0x46c341['getDifference'](_0x184c73)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x472ffd){const _0x4ac560=this['editor']['plugins']['get']('Users')['getUser'](_0x472ffd);if(!_0x4ac560)throw new _0x2a8e99('track-changes-user-not-found',this);return _0x4ac560;}['_getExternalAuthor'](_0x2584c3){const _0x4371a9=this['editor']['plugins']['get']('Users'),_0xed0ebf=_0x3c9b9d('external:'+_0x2584c3),_0x21be8d=_0x4371a9['getUser'](_0xed0ebf);return _0x21be8d||_0x4371a9['addUser']({'id':_0xed0ebf,'name':_0x2584c3});}['_createSuggestion'](_0x1ca473,_0x99b1b6,_0x1ab5c3,_0x5f5aec,_0x18d7ad){const _0x325ea0=this['_getAuthorFromId'](_0x5f5aec),_0x25778d=this['_suggestionFactory']['buildSuggestion'](_0x1ca473,_0x99b1b6,_0x1ab5c3,_0x325ea0,_0x18d7ad,_0x5b6d1d=>{this['_updateSuggestionData'](_0x1ab5c3,{'attributes':_0x5b6d1d});const _0x41eb06=this['getSuggestion'](_0x1ab5c3);this['_joinWithAdjacentSuggestions'](new Set([_0x41eb06])),this['_refreshSuggestionsChain'](new Set([_0x41eb06]));});return this['listenTo'](_0x25778d,'accept',()=>{this['_updateSuggestionData'](_0x1ab5c3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x25778d,'discard',()=>{this['_updateSuggestionData'](_0x1ab5c3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1ab5c3,_0x25778d),this['_suggestionState']['set'](_0x25778d,'notReady'),_0x25778d;}['_splitMarkerName'](_0x26b2fe){const _0x398727=_0x26b2fe['split'](':');return{'group':_0x398727[0x0],'type':_0x398727[0x1],'subType':_0x398727['length']>=0x5?_0x398727[0x2]:null,'id':_0x398727['length']<0x5?_0x398727[0x2]:_0x398727[0x3],'authorId':_0x398727['length']<0x5?_0x398727[0x3]:_0x398727[0x4],'markerCount':0x6==_0x398727['length']?_0x398727[0x5]:null};}['_breakSuggestionMarker'](_0x40a484,_0x3764f5,_0x433f8){const _0x41f679=_0x40a484['getFirstRange'](),_0x121206=_0x41f679['start'],_0x41e7e4=_0x41f679['end'];this['_setSuggestionRange'](_0x40a484,this['_model']['createRange'](_0x121206,_0x3764f5));const _0x518022=_0x3309d5(),_0x586037=_0x40a484['creator']['id'],_0x16816d=_0x40a484['type']+(_0x40a484['subType']?':'+_0x40a484['subType']:'');this['_setSuggestionData']({'id':_0x518022,'type':_0x16816d,'createdAt':new Date(),'authorId':_0x586037,'originalSuggestionId':_0x40a484['id'],'attributes':_0x40a484['attributes'],'data':_0x40a484['data']});const _0x39a665=this['_getAttributeKey'](_0x40a484);('formatBlock'==_0x40a484['type']||_0x39a665&&this['_isBlockAttribute'](_0x39a665))&&(_0x433f8=this['_model']['createPositionBefore'](_0x433f8['parent'])),this['_addSuggestionMarker'](_0x16816d,_0x518022,_0x586037,this['_model']['createRange'](_0x433f8,_0x41e7e4));}['_findSuggestions'](_0x4b275d,_0x186c34=null){const _0x1873be=[],_0x554e15=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4b275d)||(_0x4b275d=[_0x4b275d]);for(const _0x509e07 of this['getSuggestions']()){if(!_0x509e07['isInContent'])continue;if(_0x186c34&&_0x509e07['type']!=_0x186c34)continue;let _0x357270=!0x1;for(const _0x4fdb1e of _0x509e07['getRanges']()){for(const _0xc27008 of _0x4b275d){const _0x3f6c1e=_0xc27008['start']['isEqual'](_0x4fdb1e['end'])||_0xc27008['end']['isEqual'](_0x4fdb1e['start']);if(_0x3f6c1e||_0xc27008['getIntersection'](_0x4fdb1e)){const _0x1f339a=_0xc27008['containsRange'](_0x4fdb1e)&&Et(this['_model']['schema'],_0x4fdb1e['start'],_0xc27008),_0x199aa9=_0x4fdb1e['containsRange'](_0xc27008)&&Et(this['_model']['schema'],_0xc27008['start'],_0x4fdb1e);_0x1873be['push']({'suggestion':_0x509e07,'meta':{'isOwn':_0x554e15==_0x509e07['author'],'isNextTo':_0x3f6c1e,'isInsideObject':_0x1f339a,'containsRangeInObject':_0x199aa9}}),_0x357270=!0x0;break;}}if(_0x357270)break;}}return _0x1873be;}['_addSuggestionMarker'](_0x23acde,_0x1afc9d,_0x15047a,_0x4cedb0,_0x424d67){this['_model']['change'](_0x277545=>{let _0x4fc3f1='suggestion:'+_0x23acde+':'+_0x1afc9d+':'+_0x15047a;_0x424d67&&(_0x4fc3f1=_0x4fc3f1+':'+_0x424d67),_0x277545['addMarker'](_0x4fc3f1,{'range':_0x4cedb0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x50cf8b){const _0x40fd58=_0x50cf8b['previous'],_0x4c553e=_0x50cf8b['next'];_0x50cf8b['previous']=null,_0x50cf8b['next']=null,null!=_0x40fd58&&_0x40fd58['next']==_0x50cf8b&&(_0x40fd58['next']=_0x4c553e),null!=_0x4c553e&&_0x4c553e['previous']==_0x50cf8b&&(_0x4c553e['previous']=_0x40fd58),'ready'==this['_suggestionState']['get'](_0x50cf8b)&&(this['_suggestionState']['set'](_0x50cf8b,'removed'),this['fire']('suggestionUnloaded',_0x50cf8b,_0x40fd58,_0x4c553e));}['_setSuggestionData'](_0x3b06f6){const _0x4ad44c=_0x3b06f6['id'],_0x2d83ad=this['addSuggestionData'](_0x3b06f6);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x48dd6b=this['editor']['plugins']['get']('PendingActions'),_0x4a7b32=_0x2d83ad['hasComments'],_0x4ca68d=_0x2d83ad['subType']?_0x2d83ad['type']+':'+_0x2d83ad['subType']:_0x2d83ad['type'],_0xeaae7e=this['editor']['locale'],_0x2ac843=_0x48dd6b['add'](o(_0xeaae7e,'PENDING_ACTION_SUGGESTION')),_0xec9ce4={'id':_0x4ad44c,'type':_0x4ca68d,'hasComments':_0x4a7b32,'data':_0x3b06f6['data']||null,'originalSuggestionId':_0x3b06f6['originalSuggestionId']||null,'attributes':_0x2d83ad['attributes']};this['_adapter']['addSuggestion'](_0xec9ce4)['then'](_0x44c481=>{_0x2d83ad['_saved']=!0x0,_0x48dd6b['remove'](_0x2ac843),_0x44c481&&_0x44c481['createdAt']&&(this['_suggestions']['get'](_0x4ad44c)['createdAt']=_0x44c481['createdAt']);})['catch'](_0x5bd735=>{throw _0x3bdc4b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d83ad['discard']();}),_0x2d83ad['stopListening'](),this['_suggestions']['delete'](_0x2d83ad['id']),this['_suggestionState']['delete'](_0x2d83ad),_0x5bd735;});}return _0x2d83ad;}['_isBlockAttribute'](_0x5b9f53){return this['_blockAttributeKeys']['has'](_0x5b9f53);}['_updateSuggestionData'](_0x5a0487,_0x11ee0e){const _0x34299d=this['editor']['plugins']['get']('PendingActions'),_0x25cce5=this['getSuggestion'](_0x5a0487);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x25cce5['_saved']){const _0x417cb7=_0x34299d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5a0487,_0x11ee0e)['then'](()=>{_0x34299d['remove'](_0x417cb7);});}else _0x25cce5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5a0487,_0x11ee0e);});}}['_getSuggestionData'](_0x9a123b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2a8e99('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x9a123b);}['_handleNewSuggestionMarker'](_0x23daa7){const {id:_0x1b6197,type:_0x135674,subType:_0x1e2454,authorId:_0x49629a}=this['_splitMarkerName'](_0x23daa7),_0x583121=this['_suggestions']['get'](_0x1b6197)||this['_createSuggestion'](_0x135674,_0x1e2454,_0x1b6197,_0x49629a,{});switch(this['_checkSuggestionCorrectness'](_0x583121,_0x135674,_0x1e2454,_0x49629a),this['_suggestionState']['get'](_0x583121)){case'notReady':this['_getSuggestionData'](_0x1b6197)['then'](_0x3e5bef=>{let _0x22e941=Promise['resolve']();_0x3e5bef['hasComments']&&(_0x22e941=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1b6197})),_0x22e941['then'](()=>{this['addSuggestionData'](_0x3e5bef)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x583121,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1b6197,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x583121,'ready'),this['fire']('suggestionLoaded',_0x583121);break;case'ready':this['fire']('suggestionChanged',_0x583121);}return _0x583121['addMarkerName'](_0x23daa7),_0x583121;}['_refreshSuggestionsChain'](_0x3aa34c){const _0x337dd1=Array['from'](_0x3aa34c),_0x56c3de=_0x337dd1['filter'](_0x17fd42=>'attribute'==_0x17fd42['type']);this['_refreshAttributeSuggestionsChain'](_0x56c3de);const _0x1a0c95=_0x337dd1['filter'](_0x155f2d=>!_0x155f2d['isMultiRange']&&'attribute'!=_0x155f2d['type']),_0x3fe0db=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x454a65=>!_0x454a65['isMultiRange']&&'attribute'!=_0x454a65['type']),_0x31a69b=_0x3fe0db['filter'](_0x1415b0=>!_0x3aa34c['has'](_0x1415b0)),_0x6cb9a2=new Map(_0x3fe0db['map'](_0x32fc72=>[_0x32fc72,this['_suggestionFactory']['getSuggestionCallback'](_0x32fc72['type'],_0x32fc72['subType'],'chain')])),_0x2c7d24=new Map(_0x3fe0db['map'](_0x3a861b=>[_0x3a861b,_0x3a861b['getFirstRange']()])),_0x43f2c4=new Set(),_0x2014fa=new Set();for(let _0x156bb3=0x0;_0x156bb3<_0x1a0c95['length'];_0x156bb3++)_0x18c3e4(_0x1a0c95[_0x156bb3],_0x1a0c95,_0x156bb3+0x1);for(let _0x26a050=0x0;_0x26a050<_0x1a0c95['length'];_0x26a050++)_0x18c3e4(_0x1a0c95[_0x26a050],_0x31a69b,0x0);const _0x1169b9=new Set();for(let _0x37eb19=0x0;_0x37eb19<_0x1a0c95['length'];_0x37eb19++){const _0x4d3d12=_0x1a0c95[_0x37eb19];!_0x2014fa['has'](_0x4d3d12)&&_0x4d3d12['previous']&&(_0x1169b9['add'](_0x4d3d12['previous']),_0x4d3d12['previous']['next']===_0x4d3d12&&(_0x4d3d12['previous']['next']=null),_0x4d3d12['previous']=null),!_0x43f2c4['has'](_0x4d3d12)&&_0x4d3d12['next']&&(_0x1169b9['add'](_0x4d3d12['next']),_0x4d3d12['next']['previous']===_0x4d3d12&&(_0x4d3d12['next']['previous']=null),_0x4d3d12['next']=null);}function _0x18c3e4(_0x23a0d1,_0x5c5693,_0x1f90ef){for(let _0x166917=_0x1f90ef;_0x166917<_0x5c5693['length'];_0x166917++){const _0x1dec21=_0x1a8ebf(_0x23a0d1,_0x5c5693[_0x166917]);_0x1dec21&&(_0x1dec21[0x0]['next']=_0x1dec21[0x1],_0x1dec21[0x1]['previous']=_0x1dec21[0x0],_0x43f2c4['add'](_0x1dec21[0x0]),_0x2014fa['add'](_0x1dec21[0x1]));}}function _0x1a8ebf(_0x15b9da,_0x1717bb){if(_0x15b9da['author']['id']!==_0x1717bb['author']['id'])return null;const _0x29998d=_0x6cb9a2['get'](_0x15b9da)(_0x15b9da,_0x1717bb,_0x2c7d24['get'](_0x15b9da),_0x2c7d24['get'](_0x1717bb));if(!_0x29998d)return null;return _0x6cb9a2['get'](_0x1717bb)(_0x15b9da,_0x1717bb,_0x2c7d24['get'](_0x15b9da),_0x2c7d24['get'](_0x1717bb))?_0x29998d[0x1]['commentThread']&&_0x29998d[0x1]['commentThread']['length']?null:_0x29998d:null;}_0x1169b9['size']&&this['_refreshSuggestionsChain'](_0x1169b9);}['_refreshAttributeSuggestionsChain'](_0x10c594){if(0x0==_0x10c594['length'])return;const _0x540cea=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x277401=>'attribute'==_0x277401['type']&&_0x277401['_isDataLoaded']),_0xce67a1=[],_0x6007a7=new Map();for(const _0x28667d of _0x540cea){const _0x347a30=_0x3c9b9d(_0x28667d['attributes']);_0x6007a7['has'](_0x347a30)||(_0x6007a7['set'](_0x347a30,_0xce67a1['length']),_0xce67a1['push']([]));const _0x8bc8a9=_0x6007a7['get'](_0x347a30);_0xce67a1[_0x8bc8a9]['push'](_0x28667d);}!(function(){_0xce67a1['sort']((_0x1a009b,_0x4247ff)=>{const _0x49963e=_0x1a009b[0x0]['createdAt'],_0x364c5a=_0x4247ff[0x0]['createdAt'];return _0x49963e==_0x364c5a?_0x1a009b[0x0]['attributes']['groupId']<_0x4247ff[0x0]['attributes']['groupId']?-0x1:0x1:_0x49963e<_0x364c5a?-0x1:0x1;});for(const _0xd481e0 of _0xce67a1)_0xd481e0['sort']((_0x2c2830,_0x3923fe)=>_0x2c2830['id']<_0x3923fe['id']?-0x1:0x1);}());for(let _0x27e0e2=0x0;_0x27e0e2<_0xce67a1['length'];_0x27e0e2++){if(0x0==_0xce67a1[_0x27e0e2]['length'])continue;const _0x2930dc=[];for(let _0x1a9a8a=_0x27e0e2+0x1;_0x1a9a8a<_0xce67a1['length'];_0x1a9a8a++)0x0!=_0xce67a1[_0x1a9a8a]['length']&&_0x34bf09(_0xce67a1[_0x27e0e2],_0xce67a1[_0x1a9a8a])&&_0x2930dc['push'](_0x1a9a8a);for(const _0x2d27da of _0x2930dc)_0xce67a1[_0x27e0e2]=_0xce67a1[_0x27e0e2]['concat'](_0xce67a1[_0x2d27da]),_0xce67a1[_0x2d27da]=[];}for(const _0x1b9020 of _0xce67a1)for(let _0x3f80de=0x0;_0x3f80de<_0x1b9020['length'];_0x3f80de++){const _0xed03de=_0x1b9020[_0x3f80de+0x1]||null;_0x1b9020[_0x3f80de]['next']!==_0xed03de&&(_0x1b9020[_0x3f80de]['next']=_0xed03de);}for(const _0x407780 of _0xce67a1)for(let _0x2462f2=0x0;_0x2462f2<_0x407780['length'];_0x2462f2++){const _0xf19fa7=_0x407780[_0x2462f2-0x1]||null;_0x407780[_0x2462f2]['previous']!==_0xf19fa7&&(_0x407780[_0x2462f2]['previous']=_0xf19fa7);}function _0x34bf09(_0x27502f,_0x39ff97){if(_0x27502f[0x0]['attributes']['groupId']!==_0x39ff97[0x0]['attributes']['groupId']&&_0x27502f[0x0]['author']!==_0x39ff97[0x0]['author'])return!0x1;if(!function(_0x52d721,_0x4cf8dd){if(!_0x52d721['hasComments']&&!_0x4cf8dd['hasComments'])return!0x0;if(_0x52d721['hasComments']&&_0x4cf8dd['hasComments'])return!0x1;if(_0x52d721['hasComments']&&_0x4cf8dd['createdAt']<_0x52d721['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4cf8dd['hasComments']&&_0x52d721['createdAt']<_0x4cf8dd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x27502f[0x0],_0x39ff97[0x0]))return!0x1;const _0x25e86c=Rt(_0x27502f[0x0]['attributes'],'groupId'),_0x48abf9=Rt(_0x39ff97[0x0]['attributes'],'groupId');if(!_0x127c5c(_0x25e86c,_0x48abf9))return!0x1;return!!_0x27502f['every'](_0x1c0a97=>_0x39ff97['some'](_0xaa7883=>_0x1c0a97['getFirstRange']()['isEqual'](_0xaa7883['getFirstRange']())))&&_0x39ff97['every'](_0x5c260a=>_0x27502f['some'](_0x5c6bde=>_0x5c260a['getFirstRange']()['isEqual'](_0x5c6bde['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x390454){const _0x3c29ff=Array['from'](_0x390454),_0x167d82=this['getSuggestions']({'skipNotAttached':!0x0}),_0x18d070=_0x167d82['filter'](_0x37b40c=>!_0x390454['has'](_0x37b40c)),_0x1e546a=new Map(_0x3c29ff['map'](_0x203ba3=>[_0x203ba3,this['_suggestionFactory']['getSuggestionCallback'](_0x203ba3['type'],_0x203ba3['subType'],'join')])),_0x4be651=new Map(_0x167d82['map'](_0x566523=>[_0x566523,_0x566523['getRanges']()]));for(let _0x53c14d=0x0;_0x53c14d<_0x3c29ff['length'];_0x53c14d++){if(_0x1032ae(this,_0x3c29ff[_0x53c14d],_0x3c29ff,_0x53c14d+0x1))return!0x0;}for(let _0x19fc22=0x0;_0x19fc22<_0x3c29ff['length'];_0x19fc22++){if(_0x1032ae(this,_0x3c29ff[_0x19fc22],_0x18d070,0x0))return!0x0;}return!0x1;function _0x1032ae(_0x19abac,_0x30a94e,_0x10fe21,_0x9f3460){for(let _0x91e67f=_0x9f3460;_0x91e67f<_0x10fe21['length'];_0x91e67f++){const _0x380e4a=_0x10fe21[_0x91e67f];if(_0x380e4a['type']!==_0x30a94e['type']||_0x380e4a['author']['id']!==_0x30a94e['author']['id']||_0x380e4a['subType']!==_0x30a94e['subType'])continue;if(!Jt(_0x30a94e,_0x380e4a))continue;if('attribute'==_0x30a94e['type']&&_0x30a94e['data']['oldValue']!=_0x380e4a['data']['oldValue'])continue;if('attribute'==_0x30a94e['type']&&_0x19abac['_isBlockAttribute'](_0x30a94e['data']['key']))continue;if('formatBlock'==_0x30a94e['type']){const _0x570a5d=_0x19abac['editor']['model'],_0xe14eba=_0x30a94e['getContainedElement']();if(_0xe14eba&&(_0x570a5d['schema']['isObject'](_0xe14eba)||_0x570a5d['schema']['isLimit'](_0xe14eba)))continue;}const _0x29a11e=_0x1e546a['get'](_0x30a94e),_0x433b71=_0x4be651['get'](_0x30a94e),_0x45c378=_0x4be651['get'](_0x380e4a),_0x51cb56=_0x30a94e['commentThread']&&_0x30a94e['commentThread']['length'],_0xc03e52=_0x380e4a['commentThread']&&_0x380e4a['commentThread']['length'];if(!_0x51cb56&&_0x29a11e(_0x45c378,_0x433b71))return _0x19abac['_joinSuggestions'](_0x380e4a,_0x30a94e),_0x4be651['delete'](_0x30a94e),!0x0;if(!_0xc03e52&&_0x29a11e(_0x433b71,_0x45c378))return _0x19abac['_joinSuggestions'](_0x30a94e,_0x380e4a),_0x4be651['delete'](_0x380e4a),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3f29f7,_0x1a8654){if(_0x3f29f7['isMultiRange']){for(const _0x8daac7 of _0x1a8654['getRanges']())_0x3f29f7['addRange'](_0x8daac7);}else{const _0x194a32=_0x1a8654['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3f29f7,this['_model']['createRange'](_0x3f29f7['getFirstRange']()['start'],_0x194a32));}_0x1a8654['removeMarkers']();}['_getMarkerAnnouncementText'](_0xdfcaab,_0x5c742a,_0x49fbee){const _0x4b5c8f=_0xdfcaab['startsWith']('format')||_0xdfcaab['startsWith']('attribute')?'FORMATTING':_0xdfcaab['toUpperCase']();return o(this['editor']['locale'],_0x5c742a+'_'+_0x4b5c8f+'_SUGGESTION_ANNOUNCEMENT',_0x49fbee);}['_initAriaMarkerChangeAnnouncements'](){const _0x4d330b=this['editor'];if(!_0x4d330b['ui'])return;const {ariaLiveAnnouncer:_0x345873}=_0x4d330b['ui'];_0x8d8bfa(this['_model'],({left:_0x31a546,entered:_0x45a890})=>{for(const _0x336704 of _0x31a546){const {group:_0x12a38b,type:_0x2edeb8}=this['_splitMarkerName'](_0x336704['name']);if('suggestion'===_0x12a38b){_0x345873['announce'](this['_getMarkerAnnouncementText'](_0x2edeb8,'LEAVE'));break;}}for(const _0x42c6ef of _0x45a890){const {group:_0x3c9276,type:_0x143c10}=this['_splitMarkerName'](_0x42c6ef['name']);if('suggestion'===_0x3c9276){_0x345873['announce'](this['_getMarkerAnnouncementText'](_0x143c10,'ENTER',_0x292fdd(_0x524270)));break;}}});}['_processAttributeChanges'](_0x11f3ef){if(this['_recordAttributeSuggestions'])return!0x1;const _0x25ba73=this['editor'],_0x363dc1=_0x25ba73['model']['document']['differ']['getChanges']();if(0x0==_0x363dc1['length'])return!0x1;const _0x3a97ab=[],_0x6fbe40=_0x363dc1['filter'](_0x3f1073=>'attribute'==_0x3f1073['type']),_0x1e0fe2=_0x363dc1['filter'](_0x294ebd=>'insert'==_0x294ebd['type']&&'$text'!=_0x294ebd['name']),_0x2560c0=_0x363dc1['filter'](_0x43747c=>'remove'==_0x43747c['type']&&'$text'!=_0x43747c['name']);for(const _0x54f287 of _0x6fbe40)_0x3a97ab['push']({'key':_0x54f287['attributeKey'],'newValue':_0x54f287['attributeNewValue'],'oldValue':_0x54f287['attributeOldValue'],'range':Ft(_0x54f287['range'],_0x25ba73['model'])});for(const _0x3664cb of _0x1e0fe2){const _0x2e73fa=_0x2560c0['find'](_0x47b4d4=>_0x47b4d4['position']['isEqual'](_0x3664cb['position']));_0x2e73fa&&_0x3a97ab['push']({'key':m,'newValue':_0x3664cb['name'],'oldValue':_0x2e73fa['name'],'range':_0x25ba73['model']['createRangeOn'](_0x3664cb['position']['nodeAfter'])});}return 0x0!=_0x3a97ab['length']&&this['_reduceExistingSuggestions'](_0x11f3ef,_0x3a97ab);}['_processAttributeSuggestions'](_0x5ceaf5){let _0x4e3e7c=!0x1;const _0x501afe=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xb67143=>_0xb67143['data']['newRange']&&_0xb67143['name']['startsWith']('suggestion:attribute:'));for(const _0x1a935e of _0x501afe){const {subType:_0x2d2429,id:_0x28d190}=this['_splitMarkerName'](_0x1a935e['name']),_0x5dbedd=_0x2d2429['split']('|')[0x0];for(const _0x261162 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x261162['id']!=_0x28d190&&'attribute'==_0x261162['type']&&_0x261162['data']&&_0x261162['data']['key']==_0x5dbedd&&_0x261162['getFirstRange']()['isIntersecting'](_0x1a935e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x261162,_0x1a935e['data']['newRange'],_0x5ceaf5),_0x4e3e7c=!0x0);}return _0x4e3e7c;}['_recordAttributeChanges'](_0x496d78){this['_recordAttributeSuggestions']=!0x0,_0x496d78();}['_isRegisteredAttribute'](_0x377042){const _0x3ad8b3=this['_isBlockAttribute'](_0x377042),_0x3cd309=this['_inlineAttributeKeys']['has'](_0x377042);return _0x3ad8b3||_0x3cd309;}['_reduceExistingSuggestions'](_0x3a2fac,_0x34b516){if(0x0==_0x34b516['length'])return!0x1;let _0x244850=!0x1;for(const _0x28058a of _0x34b516){const _0xb354=this['_findSuggestions'](_0x28058a['range'],'attribute')['filter'](_0x4bcd92=>!_0x4bcd92['meta']['isNextTo'])['map'](_0x12690f=>_0x12690f['suggestion']),_0x3f8fb5=_0x3c9b9d({'newValue':_0x28058a['newValue']});_0xb354['filter'](_0x586b30=>{const [_0x11e1b0,_0x41568d]=_0x586b30['subType']['split']('|');return _0x11e1b0==_0x28058a['key']&&_0x41568d!=_0x3f8fb5;})['forEach'](_0x1899a4=>{this['_reduceSuggestionAttributeRange'](_0x1899a4,_0x28058a['range'],_0x3a2fac),_0x244850=!0x0;});}return _0x244850;}['_reduceSuggestionAttributeRange'](_0x277f08,_0xccc2c0,_0x3397cc){const _0x55ca84=_0x277f08['getFirstRange']()['getDifference'](_0xccc2c0);0x0!==_0x55ca84['length']?0x1!==_0x55ca84['length']?this['_breakSuggestionMarker'](_0x277f08,_0xccc2c0['start'],_0xccc2c0['end']):this['_setSuggestionRange'](_0x277f08,_0x55ca84[0x0]):_0x3397cc['removeMarker'](_0x277f08['getFirstMarker']());}}class Tt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1666d3){this['_editor']=_0x1666d3,this['_model']=_0x1666d3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4b7184,_0x114762,_0x5322f9,_0x45064b,_0x1b92df,_0x19f599){return new u(this['_model'],{'type':_0x4b7184,'subType':_0x114762,'id':_0x5322f9,'author':_0x45064b,'creator':_0x45064b,'attributes':_0x1b92df,'onAttributesChange':_0x19f599,'onAccept':(..._0x2fa444)=>this['getSuggestionCallback'](_0x4b7184,_0x114762,'accept')(..._0x2fa444),'onDiscard':(..._0x30c8d3)=>this['getSuggestionCallback'](_0x4b7184,_0x114762,'discard')(..._0x30c8d3)});}['registerCustomCallback'](_0x1ac927,_0x2e64ac,_0x4e9c79,_0x1c3cb2){const _0x5df252=_0x1ac927+':'+_0x2e64ac+':'+_0x4e9c79;this['_customCallbacks']['set'](_0x5df252,_0x1c3cb2);}['getSuggestionCallback'](_0xe5e308,_0x1514c2,_0x2df94e){const _0x2822fb=_0xe5e308+':'+_0x1514c2+':'+_0x2df94e;return this['_customCallbacks']['get'](_0x2822fb)||this['_defaultCallbacks']['get'](_0xe5e308+':'+_0x2df94e);}['_registerDefaultCallbacks'](){const _0x2afd3f=()=>!0x1,_0x280d0e=_0x3a595a=>{_0x3a595a['sort']((_0x13d376,_0x2e316f)=>_0x13d376['start']['isBefore'](_0x2e316f['start'])?0x1:-0x1),this['_model']['change'](_0x15cc88=>{for(const _0x386386 of _0x3a595a){let _0x563230;_0x563230=_0x386386['end']['isAtEnd']&&_0x386386['end']['parent']==_0x386386['start']['nodeAfter']?_0x15cc88['createSelection'](_0x386386['start']['nodeAfter'],'on'):_0x15cc88['createSelection'](_0x386386),this['_model']['deleteContent'](_0x563230,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xbf3692=(_0x184b4d,_0x3787ff)=>{_0x3787ff&&this['_model']['change'](_0x5f4ad6=>{const {commandName:_0x4feedc,commandParams:_0x4b1aea=[]}=_0x3787ff,_0x282dfb=_0x184b4d['map'](_0x542b8d=>(Vt(_0x542b8d)&&(_0x542b8d=this['_model']['createRange'](_0x542b8d['end'])),_0x542b8d))['filter'](_0x1d5f4b=>'$graveyard'!==_0x1d5f4b['root']['rootName']);if(_0x282dfb['length']<0x1)return;const _0x145430=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2b139f=>_0xd05373['fromRange'](_0x2b139f));_0x5f4ad6['setSelection'](_0x282dfb);for(const _0x101bbb of this['_editor']['commands']['commands']())_0x101bbb['refresh']();_0x4b1aea['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4feedc,..._0x4b1aea);const _0x1d47f0=_0x145430['filter'](_0x6f8360=>'$graveyard'!=_0x6f8360['root']['rootName']);_0x1d47f0['length']>0x0&&_0x5f4ad6['setSelection'](_0x1d47f0);for(const _0x55dd29 of _0x145430)_0x55dd29['detach']();});},_0x536428=(_0x20b65d,_0x5595af)=>0x1==_0x20b65d['length']&&0x1==_0x5595af['length']&&_0x20b65d[0x0]['end']['isEqual'](_0x5595af[0x0]['start']),_0x4b76d8=(_0x574954,_0x1134b,_0x14263d,_0x887870)=>Ht(_0x574954,_0x1134b,_0x14263d,_0x887870,this['_model'])?[_0x574954,_0x1134b]:Ht(_0x1134b,_0x574954,_0x887870,_0x14263d,this['_model'])?[_0x1134b,_0x574954]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2afd3f),this['_defaultCallbacks']['set']('insertion:discard',_0x280d0e),this['_defaultCallbacks']['set']('insertion:join',_0x536428),this['_defaultCallbacks']['set']('insertion:chain',_0x4b76d8),this['_defaultCallbacks']['set']('deletion:accept',_0x280d0e),this['_defaultCallbacks']['set']('deletion:discard',_0x2afd3f),this['_defaultCallbacks']['set']('deletion:join',_0x536428),this['_defaultCallbacks']['set']('deletion:chain',_0x4b76d8),this['_defaultCallbacks']['set']('formatInline:accept',_0xbf3692),this['_defaultCallbacks']['set']('formatInline:discard',_0x2afd3f),this['_defaultCallbacks']['set']('formatInline:join',_0x536428),this['_defaultCallbacks']['set']('formatInline:chain',_0x2afd3f),this['_defaultCallbacks']['set']('formatBlock:accept',_0xbf3692),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2afd3f),this['_defaultCallbacks']['set']('formatBlock:join',_0x536428),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2afd3f),this['_defaultCallbacks']['set']('attribute:accept',_0x2afd3f),this['_defaultCallbacks']['set']('attribute:discard',(_0x23d097,_0x5ec958)=>{if(!_0x5ec958)return;const _0x1edf8b=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x45c9ec=>{if(_0x5ec958['key']==m)for(const _0x180568 of _0x23d097){const _0x397218=_0x180568['start']['nodeAfter'],_0x62a905=_0x5ec958['oldValue'];_0x45c9ec['rename'](_0x397218,_0x62a905);}else{if(_0x1edf8b['_isBlockAttribute'](_0x5ec958['key'])){for(const _0x2fc132 of _0x23d097)void 0x0!==_0x5ec958['oldValue']?_0x45c9ec['setAttribute'](_0x5ec958['key'],_0x5ec958['oldValue'],_0x2fc132['start']['nodeAfter']):_0x45c9ec['removeAttribute'](_0x5ec958['key'],_0x2fc132['start']['nodeAfter']);}else{for(const _0x4003a4 of _0x23d097)_0x5ec958['oldValue']?_0x45c9ec['setAttribute'](_0x5ec958['key'],_0x5ec958['oldValue'],_0x4003a4):_0x45c9ec['removeAttribute'](_0x5ec958['key'],_0x4003a4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x536428);}}function Et(_0x19376d,_0x5303c4,_0xf6956b){for(const _0x5d88d1 of _0x5303c4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5d88d1['root']==_0x5d88d1)return!0x1;if(!_0xf6956b['containsItem'](_0x5d88d1))return!0x1;if(_0x19376d['isObject'](_0x5d88d1)||_0x19376d['isLimit'](_0x5d88d1))return!0x0;}return!0x1;}function Vt(_0x15c0a5){return _0x15c0a5['end']['parent']==_0x15c0a5['start']['nodeAfter']&&_0x15c0a5['end']['isAtStart'];}function Ut(_0x3dff9f,_0x1a7a51,_0x3cee52,_0x285b91){const _0x5042a8=_0x318b24=>!_0x318b24['item']['is']('$textProxy')&&!_0x285b91['isObject'](_0x318b24['item']),_0xa0076f=_0x3dff9f['start']['getLastMatchingPosition'](_0x5042a8),_0x351480=_0x3dff9f['end']['getLastMatchingPosition'](_0x5042a8,{'direction':'backward'});return(!_0x3dff9f['start']['isEqual'](_0xa0076f)||!_0x3dff9f['end']['isEqual'](_0x351480))&&(_0xa0076f['isBefore'](_0x351480)?_0x3cee52['updateMarker'](_0x1a7a51,{'range':_0x3cee52['createRange'](_0xa0076f,_0x351480)}):_0x3cee52['removeMarker'](_0x1a7a51),!0x0);}function Pt(_0x3c3ed3){return _0x3c9b9d(_0x3c3ed3);}function Gt(_0x5e3dfd){const _0xa5211a=_0x5e3dfd['start']['nodeAfter'];return _0xa5211a&&_0xa5211a['is']('element');}function Ft(_0x146771,_0x3da855){return null==_0x146771['end']['nodeBefore']&&_0x146771['end']['parent']==_0x146771['start']['nodeAfter']?Lt(_0x146771['start']['nodeAfter'],_0x3da855):_0x146771;}function Lt(_0x3a84eb,_0x2e376d){const _0x213956=_0x2e376d['schema']['isObject'](_0x3a84eb)||_0x2e376d['schema']['isSelectable'](_0x3a84eb);return _0x2e376d['createRange'](_0x2e376d['createPositionAt'](_0x3a84eb,'before'),_0x213956?_0x2e376d['createPositionAfter'](_0x3a84eb):_0x2e376d['createPositionAt'](_0x3a84eb,'end'));}function Ht(_0x104437,_0x4a5575,_0xe7a3bf,_0x160fe7,_0x2b2c13){if(_0x104437['next'])return!0x1;if(!Jt(_0x104437,_0x4a5575))return!0x1;if(_0xe7a3bf['end']['isEqual'](_0x160fe7['start']))return!0x0;if(_0x104437['type']!=_0x4a5575['type'])return!0x1;if(!_0xe7a3bf['end']['isTouching'](_0x160fe7['start']))return!0x1;const _0x58af24=_0x2b2c13['createRange'](_0xe7a3bf['end'],_0x160fe7['start'])['getWalker']();for(const _0x7c5c3d of _0x58af24)if(['elementStart','elementEnd']['includes'](_0x7c5c3d['type'])&&_0x2b2c13['schema']['isLimit'](_0x7c5c3d['item']))return!0x1;return!0x0;}function Jt(_0x3a602a,_0x154366){if(!_0x3a602a['_isDataLoaded']||!_0x154366['_isDataLoaded'])return!0x1;const _0xf88963=new Set(Object['keys'](_0x3a602a['attributes'])),_0x41e013=new Set(Object['keys'](_0x154366['attributes']));if(_0xf88963['delete']('groupId'),_0x41e013['delete']('groupId'),0x0==_0xf88963['size']&&0x0==_0x41e013['size'])return!0x0;if(_0xf88963['size']!=_0x41e013['size'])return!0x1;const _0x5749f3={..._0x3a602a['attributes']},_0x25091b={..._0x154366['attributes']};return delete _0x5749f3['groupId'],delete _0x25091b['groupId'],JSON['stringify'](_0x5749f3)==JSON['stringify'](_0x25091b);}function qt(_0x540d39,_0x1a326c){const _0x428237=zt(_0x540d39['attributes']),_0x505425=zt(_0x1a326c);if(!_0x540d39['_isDataLoaded'])return!0x1;for(const _0x84e651 of Object['keys'](_0x505425))if(!_0x127c5c(_0x428237[_0x84e651],_0x505425[_0x84e651]))return!0x1;return!0x0;}function zt(_0x31c5b7){const _0x73a429=Object['assign']({},_0x31c5b7);return delete _0x73a429['skipNestingCheck'],delete _0x73a429['tablePasteChainId'],_0x73a429;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xe943fa(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4d29fa,_0xeae4d3,_0x5b5fba,_0x1eaf75){super(),this['model']=_0xeae4d3,this['view']=_0x5b5fba,this['commentThreadController']=_0x1eaf75,this['_editor']=_0x4d29fa,this['_acceptCommand']=_0x4d29fa['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d29fa['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4b23f3,_0xc5190)=>_0x4b23f3||_0xc5190),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4ed82f=>_0x4ed82f&&this['_editor']['model']['canEditAt'](_0xeae4d3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5a6ba9=>_0x5a6ba9&&this['_editor']['model']['canEditAt'](_0xeae4d3['getRanges']())),this['_pendingAction']=null,_0x5b5fba['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5b5fba,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5b5fba,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5b5fba,'change:isDirty',()=>{_0x5b5fba['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 _0x3ecadf=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3ecadf);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4bb188{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1aec62,_0x8b028b,_0x591b9e,_0x3820a8){super(_0x1aec62),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4167f2(_0x1aec62,o(_0x1aec62,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x8b028b['authoredAt']),this['bind']('authoredAt')['to'](_0x8b028b),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',_0x8b028b,'authoredAt',this,'descriptionParts',(_0x1b03bb,_0x302806,_0x178383)=>{const _0x33a5ef=_0x178383['map'](_0x52964f=>ls(_0x52964f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1b03bb-0x1,_0x8b028b['author']['name'],_0x302806?_0x3820a8['formatDateTime'](_0x302806):'',new DOMParser()['parseFromString'](_0x33a5ef,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5b5e4d(),this['focusTracker']=new _0x5836c7(),this['keystrokes']=new _0xaf721f(),this['focusCycler']=new _0x486be6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x25e27e=>_0x25e27e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x8b028b,this['_localUser']=_0x591b9e,this['_config']=_0x3820a8,_0x3820a8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x767110(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x43790e}=this['_config'];this['commentsListView']=new _0x43790e(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',_0x21300d=>_0x21300d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xd97b6c,_0x56ac6d)=>_0xd97b6c||!!_0x56ac6d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x189332}=this['_config'],_0x462ef9=new _0x189332(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x13fd5b=_0x462ef9['commentInputView'];return _0x462ef9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x13fd5b,'value',(_0x3bb2d9,_0x408548,_0x3b6011)=>!!_0x3b6011||_0x3bb2d9&&!_0x408548),_0x13fd5b['on']('submit',(_0x5c2476,_0x23f239)=>{this['fire']('addComment',_0x23f239),_0x13fd5b['editor']['setData']('');}),_0x13fd5b['on']('cancel',()=>this['focus']()),_0x13fd5b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x462ef9;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1c64b8,_0x1e78a0,_0x166c10,_0x580b35){super(_0x1c64b8,_0x1e78a0,_0x166c10,_0x580b35),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12abe6=>_0x12abe6&&_0x12abe6[0x0]?_0x12abe6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5912e1,_0x52380c)=>{let _0x9dea67='';for(const _0x20f2e6 of _0x5912e1)_0x9dea67+='<p>'+ls(_0x20f2e6['content'],_0x20f2e6['color'])+'</p>';return _0x52380c?_0x9dea67:_0x4acbd0(_0x9dea67,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x580b35['SuggestionView'](_0x1c64b8,_0x1e78a0,{'formatDateTime':_0x580b35['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 _0x286ded=this['bindTemplate'],_0x6e8b42=[this['suggestionView']];return this['commentsListView']&&_0x6e8b42['push'](this['commentsListView']),this['commentThreadInputView']&&_0x6e8b42['push'](this['commentThreadInputView']),_0x6e8b42['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x286ded['if']('isActive','ck-suggestion-wrapper--active'),_0x286ded['to']('type',_0x2daec6=>'ck-suggestion-'+_0x2daec6),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':_0x286ded['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x6e8b42};}['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 _0x4bb188{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x14be70,_0x2f1619,_0x47396b){super(_0x14be70),this['_model']=_0x2f1619,this['_config']=_0x47396b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2f1619),this['acceptButton']=this['_createButton'](o(_0x14be70,'Accept\x20suggestion'),_0x1c3b1a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x14be70,'Discard\x20suggestion'),_0x1c3b1a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x39c45e(_0x14be70,_0x2f1619['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5b5e4d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5836c7(),this['keystrokes']=new _0xaf721f(),this['focusCycler']=new _0x486be6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x19532d=>_0x19532d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x30a801=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x30a801['innerHTML']=this['description'],this['on']('change:description',(_0x5877de,_0x18c22b,_0x9a4536)=>{_0x30a801['innerHTML']=_0x9a4536;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2243da=this['bindTemplate'],_0x388506=[{'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':_0x2243da['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2243da['to']('authoredAt',_0xb923ee=>this['_config']['formatDateTime'](_0xb923ee))}]}]},{'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']&&_0x388506['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':_0x388506}]};}['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'](_0x54c38e,_0x5888c2,_0x2dfa72,_0x38147e,_0x20d359){const _0x29e800=new _0xaadc98(this['locale']);return _0x29e800['set']({'label':_0x54c38e,'icon':_0x5888c2,'tooltip':!0x0,'tooltipPosition':_0x20d359}),_0x29e800['extendTemplate']({'attributes':{'class':_0x2dfa72}}),_0x29e800['on']('execute',()=>{this['fire'](_0x38147e,this['_model']['id']);}),_0x29e800;}['_setupKeyboardNavigation'](){const _0x532927=this['element'];this['keystrokes']['listenTo'](_0x532927);for(const _0x725de0 of this['focusables'])this['focusTracker']['add'](_0x725de0['element']),this['keystrokes']['listenTo'](_0x725de0['element']);this['keystrokes']['set']('enter',(_0x38104a,_0x54c31d)=>{_0x532927===_0x38104a['target']&&(this['focusCycler']['focusFirst'](),_0x54c31d());}),this['keystrokes']['set']('esc',(_0x39fee2,_0x2b309c)=>{_0x532927!==_0x39fee2['target']&&(this['focus'](),_0x2b309c());});}}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 _0x488752{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x574e89,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3419bb){super(_0x3419bb),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x53d3fd=this['editor']['config'];_0x53d3fd['define']('trackChanges.SuggestionThreadView',re),_0x53d3fd['define']('trackChanges.SuggestionView',ce),_0x53d3fd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x53d3fd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x36d893,_0x5ab3d5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x52a570,_0x167075]of this['_handleControllerBuffer']){const _0x5e810a=this['_suggestionToController']['has'](_0x52a570);_0x5e810a||_0x167075?_0x5e810a&&_0x167075&&this['_destroyController'](_0x52a570):this['_initializeController'](_0x52a570);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x36d893,_0x5ab3d5);}['init'](){const _0x9f20a2=this['editor'],_0x258467=_0x9f20a2['plugins']['get']('TrackChangesEditing'),_0xc16efa=_0x9f20a2['plugins']['get']('Annotations'),_0xac9e83=_0x9f20a2['plugins']['get']('EditorAnnotations'),_0x5064ce=_0x9f20a2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0xac9e83['addSourceCollector'](()=>{const _0x57f680=[];for(const [_0xaf00da,_0x100568]of Array['from'](this['_suggestionToController'])){const _0x3e8b64=_0xaf00da['getAllAdjacentSuggestions'](),_0x4aaae0=[];for(const _0x41ab88 of _0x3e8b64){if(!_0x41ab88['isInContent'])continue;if(_0x41ab88['isMultiRange']){_0x4aaae0['push'](..._0x41ab88['getRanges']());continue;}const _0x1e9257=_0x41ab88['getFirstRange']();if(_0x4aaae0['length']>0x0){const _0x2f9af4=_0x4aaae0[0x0]['getJoined'](_0x1e9257);if(_0x2f9af4){_0x4aaae0[0x0]=_0x2f9af4;continue;}}_0x4aaae0['push'](_0x1e9257);}_0x57f680['push']([_0x100568['view'],_0x4aaae0]);}return _0x57f680;}),this['listenTo'](_0x258467,'suggestionLoaded',(_0x101de8,_0x378a99)=>{this['listenTo'](_0x378a99,'change:previous',(_0x428acd,_0xc8f8ab,_0x222442,_0x5a7746)=>{_0x378a99['isInContent']&&(null==_0x222442?(this['_updateController'](_0x5a7746['head']),this['_handleSuggestionControllerDelayed'](_0x378a99,!0x1)):(this['_updateController'](_0x222442['head']),null==_0x5a7746&&this['_handleSuggestionControllerDelayed'](_0x378a99,!0x0)));}),null!==_0x378a99['previous']?this['_updateController'](_0x378a99['head']):this['_handleSuggestionControllerDelayed'](_0x378a99,!0x1);}),this['listenTo'](_0x258467,'suggestionUnloaded',(_0x56a4e2,_0xe9af56,_0xbbb52c)=>{this['stopListening'](_0xe9af56,'change:previous'),this['_handleControllerBuffer']['delete'](_0xe9af56),this['_suggestionToController']['has'](_0xe9af56)&&this['_destroyController'](_0xe9af56),_0xbbb52c&&this['_updateController'](_0xbbb52c['head']);}),this['listenTo'](_0x258467,'suggestionChanged',(_0x1cc13c,_0x307abf)=>{this['_updateController'](_0x307abf);}),this['listenTo'](_0xc16efa,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5064ce,'addComment',(_0x59ff04,{threadId:_0x1e7cd0,isFromAdapter:_0x1947a3})=>{if(_0x1947a3||!_0x258467['hasSuggestion'](_0x1e7cd0))return;const _0x4ed08d=_0x258467['getSuggestion'](_0x1e7cd0);this['_suggestionToController']['get'](_0x4ed08d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0xc9f4aa=this['editor']['plugins']['get']('Annotations'),_0x55984f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x220300=Array['from'](_0xc9f4aa['activeAnnotations'],_0xdc047d=>_0xdc047d['innerView'])['filter'](_0x36c446=>this['_viewToController']['has'](_0x36c446)),_0x39d554=[];for(const _0x1f123a of _0x220300){const _0x43a1f9=this['_viewToController']['get'](_0x1f123a)['model']['getAllAdjacentSuggestions']();_0x39d554['push'](..._0x43a1f9['reduce']((_0x54d699,_0x5c6021)=>[..._0x54d699,..._0x5c6021['getMarkerNames']()],[]));}_0x55984f['activeMarkers']=_0x39d554;}['_addUIComponentsToFactory'](){const _0xbd26a4=this['editor'],_0x1092f2=_0xbd26a4['locale'],_0x336eeb=o(_0x1092f2,'Track\x20changes'),_0x5a0848=new Wt([{'type':'switchbutton','model':new _0x2feba1({'withText':!0x0,'isToggleable':!0x0,'label':_0x336eeb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2feba1({'withText':!0x0,'label':o(_0x1092f2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2feba1({'withText':!0x0,'label':o(_0x1092f2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2feba1({'withText':!0x0,'label':o(_0x1092f2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2feba1({'withText':!0x0,'label':o(_0x1092f2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x11a533 of _0x5a0848)if(me(_0x11a533)){const _0x2228a0=_0xbd26a4['commands']['get'](_0x11a533['model']['commandName']);_0x11a533['model']['bind']('isOn','isEnabled')['to'](_0x2228a0,'value','isEnabled');}_0xbd26a4['ui']['componentFactory']['add']('trackChanges',_0x22e712=>this['_createToolbarButton'](_0x22e712,_0x5a0848,_0x336eeb)),_0xbd26a4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4eca2f=>this['_createMenuBarMenu'](_0x4eca2f,_0x5a0848,_0x336eeb));}['_createToolbarButton'](_0x338921,_0x2ce364,_0x313f58){const _0x368e8e=Qt(_0x338921,_0x390abd),_0x52331c=this['editor']['commands']['get']('trackChanges');_0x368e8e['buttonView']['set']({'tooltip':_0x313f58,'label':_0x313f58,'icon':he}),_0x368e8e['buttonView']['bind']('isOn')['to'](_0x52331c,'value'),_0x368e8e['buttonView']['on']('execute',()=>{_0x52331c['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x368e8e,_0x2ce364,{'role':'menu'});const _0x50324c=[];for(const _0x3a2426 of _0x2ce364)me(_0x3a2426)&&_0x50324c['push'](this['editor']['commands']['get'](_0x3a2426['model']['commandName']));const _0x493e73=_0x368e8e['buttonView'];return _0x493e73['actionView']['unbind']('isEnabled'),_0x493e73['arrowView']['unbind']('isEnabled'),_0x493e73['actionView']['bind']('isEnabled')['to'](_0x52331c,'isEnabled'),_0x493e73['arrowView']['bind']('isEnabled')['toMany'](_0x50324c,'isEnabled',(..._0x5b4212)=>_0x5b4212['some'](_0x53a35a=>_0x53a35a)),_0x368e8e['on']('execute',_0x1fd29d=>{this['editor']['execute'](_0x1fd29d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x368e8e;}['_createMenuBarMenu'](_0x19662f,_0x4024ee,_0x1b2101){const _0x16abf5=new Yt(_0x19662f),_0x111e69=this['editor']['commands']['get']('trackChanges');_0x16abf5['buttonView']['set']({'label':_0x1b2101,'icon':he});const _0x5a7ffd=new Zt(_0x19662f);for(const _0x4e49aa of _0x4024ee){if('separator'==_0x4e49aa['type']){_0x5a7ffd['items']['add'](new Xt(_0x19662f));continue;}const _0x8d5b83=new te(_0x19662f,_0x16abf5),_0x5efbd5=new _0x5c7349(_0x19662f),_0x2f3d4a=_0x4e49aa['model'];_0x5efbd5['bind'](...Object['keys'](_0x2f3d4a))['to'](_0x2f3d4a),_0x5efbd5['delegate']('execute')['to'](_0x16abf5),_0x5efbd5['on']('execute',()=>{this['editor']['execute'](_0x2f3d4a['commandName']),this['editor']['editing']['view']['focus']();}),_0x8d5b83['children']['add'](_0x5efbd5),_0x5a7ffd['items']['add'](_0x8d5b83);}return _0x16abf5['bind']('isEnabled')['to'](_0x111e69,'isEnabled'),_0x16abf5['panelView']['children']['add'](_0x5a7ffd),_0x16abf5;}['_initializeController'](_0x468638){const _0x1987e2=this['editor'],_0x25e5d9=_0x1987e2['config'],_0x1a6f2d=_0x1987e2['plugins']['get']('Annotations'),_0x2ee44a=_0x1987e2['plugins']['get']('CommentsRepository'),_0x34e66a=_0x1987e2['plugins']['get']('EditorAnnotations'),_0x2c35d9=_0x1987e2['plugins']['get'](_0x574e89)['me'],_0x33112a=_0x25e5d9['get']('trackChanges')['SuggestionThreadView'],_0x4d5fd6=_0x25e5d9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x123d32,CommentThreadInputView:_0x35e79a}=_0x1987e2['plugins']['get']('CommentsUI');let _0x22cbb5,_0x105bf4,_0x70043b;this['_annotationViews']['has'](_0x468638['id'])?(_0x105bf4=this['_annotationViews']['get'](_0x468638['id']),_0x22cbb5=_0x105bf4['mainView']):(_0x22cbb5=new _0x33112a(_0x1987e2['locale'],_0x468638,_0x2c35d9,{'disableComments':this['_disableComments'],'editorConfig':_0x25e5d9['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x25e5d9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x25e5d9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x25e5d9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x252609(_0x25e5d9['get']('locale')),'CommentView':_0x25e5d9['get']('comments')['CommentView'],'CommentsListView':_0x123d32,'CommentThreadInputView':_0x35e79a,'SuggestionView':_0x4d5fd6}),_0x22cbb5['suggestionView']['acceptButton']['on']('execute',()=>{_0x1987e2['editing']['view']['focus']();}),_0x22cbb5['suggestionView']['discardButton']['on']('execute',()=>{_0x1987e2['editing']['view']['focus']();}),_0x105bf4=_0x1a6f2d['createAnnotationView'](this['editor']['locale'],_0x22cbb5),_0x105bf4['bind']('isDirty')['to'](_0x22cbb5,'isDirty'),_0x105bf4['bind']('length')['to'](_0x22cbb5),_0x105bf4['bind']('type')['to'](_0x22cbb5,'type',_0x4ebe51=>'suggestion-'+_0x4ebe51),_0x22cbb5['on']('escape',()=>{_0x70043b['fire']('escape');}),this['_annotationViews']['set'](_0x468638['id'],_0x105bf4));const _0xe0c991=_0x2ee44a['createCommentThreadController'](_0x468638['commentThread'],_0x22cbb5),_0x246de9=new ae(_0x1987e2,_0x468638,_0x22cbb5,_0xe0c991),_0x4136c2=_0x468638['getAllAdjacentSuggestions']()['filter'](_0x5abc50=>_0x5abc50['isInContent']);_0x22cbb5['descriptionParts']=_0x1987e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4136c2),this['_suggestionToController']['set'](_0x468638,_0x246de9),this['_viewToController']['set'](_0x22cbb5,_0x246de9),_0x70043b=_0x1a6f2d['createAnnotation']({'view':_0x105bf4,'target':()=>{const _0x1ef6e2=[],_0xca3744=_0x468638['getAllAdjacentSuggestions']()['filter'](_0x3ae413=>_0x3ae413['isInContent']);for(const _0x56c672 of _0xca3744)_0x1ef6e2['push'](..._0x56c672['getMarkers']());return _0x364a65(_0x1987e2['editing'],_0x1ef6e2);},'type':()=>'suggestion-'+_0x246de9['view']['type']}),_0x2ee44a['_bindAnnotationToEditors'](_0x22cbb5,_0x70043b),_0x1a6f2d['add'](_0x70043b),_0x34e66a['registerAnnotation'](_0x70043b);}['_destroyController'](_0x4101ad){const _0x1ca0ff=this['editor']['plugins']['get']('CommentsRepository'),_0x1f5389=this['editor']['plugins']['get']('Annotations'),_0x20fa38=this['_suggestionToController']['get'](_0x4101ad),_0x5eb3a3=_0x20fa38['view'],_0x1b9881=_0x1f5389['getByInnerView'](_0x5eb3a3);_0x1ca0ff['_unbindEditors'](_0x5eb3a3),_0x1b9881&&_0x1f5389['remove'](_0x1b9881),this['_suggestionToController']['delete'](_0x4101ad),this['_viewToController']['delete'](_0x5eb3a3),_0x20fa38['destroy']();}['_updateController'](_0x3eba9f){if(!_0x3eba9f['isInContent']||!this['_suggestionToController']['has'](_0x3eba9f))return;const _0xd6fab0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c676e=this['_suggestionToController']['get'](_0x3eba9f),_0x4f6f2e=_0x3eba9f['getAllAdjacentSuggestions']();_0x4c676e['view']['descriptionParts']=_0xd6fab0['descriptionFactory']['getDescriptions'](_0x4f6f2e);}['destroy'](){for(const _0x270b89 of this['_suggestionToController']['keys']())this['_destroyController'](_0x270b89);for(const _0x5d2572 of this['_annotationViews']['values']())_0x5d2572['mainView']['destroy']();super['destroy']();}}function me(_0x3df255){return'model'in _0x3df255;}class k extends _0x488752{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x377abe){this['editor']['plugins']['get'](p)['adapter']=_0x377abe;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x858983){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x858983);}['getSuggestions']({skipNotAttached:_0x4e93c9=!0x1,toJSON:_0x2d3887=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4e93c9,'toJSON':_0x2d3887});}['getSuggestion'](_0x1f95b8){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1f95b8);}}const w=['Pagination'];class T extends _0x488752{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3c67d3=this['editor'];if(_0x3c67d3['config']['define']('trackChangesData.editorCreator',_0x24258a=>{const _0x558882=_0x3c67d3['model']['document']['getRootNames']()['reduce']((_0x7b89e2,_0x43bb46)=>(_0x7b89e2[_0x43bb46]='',_0x7b89e2),{});return _0x3c67d3['constructor']['create'](_0x558882,_0x24258a);}),'function'!=typeof _0x3c67d3['config']['get']('trackChangesData')['editorCreator'])throw new _0x2a8e99('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4e50c3){return N(this['editor'],!0x0,_0x4e50c3);}['getDataWithDiscardedSuggestions'](_0x525d93){return N(this['editor'],!0x1,_0x525d93);}}class D extends _0x488752{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x83c228){super(_0x83c228),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(_0xb4581c){return void 0x0!==_0xb4581c['getRootsAttributes'];}async function N(_0x1bd348,_0x5e7112,_0xa4d205){const _0x3e9b29=_0x573cfe(_0x1bd348,w);_0x3e9b29['plugins']['push'](p,D),_0x3e9b29['rootsAttributes']=v(_0x1bd348)?_0x1bd348['getRootsAttributes']():void 0x0;const _0x393c21=document['createDocumentFragment'](),_0x3b2248=_0x1bd348['config']['get']('trackChangesData')['editorCreator'],_0x23c9f1=await _0x3b2248(_0x3e9b29,()=>function(_0x54fc57){const _0x42f479=document['createElement']('div');return _0x54fc57['appendChild'](_0x42f479),_0x42f479;}(_0x393c21));!function(_0x4a681c,_0x2e6b9e){const _0x5f7d0c=_0x4a681c['model']['document']['getRootNames']()['reduce']((_0x410abd,_0x44b564)=>(_0x410abd[_0x44b564]=_0x4a681c['data']['get']({'rootName':_0x44b564}),_0x410abd),{}),_0x462ce8=_0x4a681c['plugins']['get']('Users')['users']['map'](_0x1a1802=>({'id':_0x1a1802['id'],'name':_0x1a1802['name']})),_0x449ed1=_0x4a681c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x50c1f0=_0x4a681c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x591706=_0x2e6b9e['plugins']['get']('Users'),_0x3a60b3=_0x2e6b9e['plugins']['get']('TrackChangesEditing'),_0x57cd2a=_0x2e6b9e['plugins']['get']('CommentsRepository');for(const _0x467cab of _0x57cd2a['getCommentThreads']())_0x467cab['remove']();for(const _0x290384 of _0x462ce8)_0x591706['getUser'](_0x290384['id'])||_0x591706['addUser'](_0x290384);_0x591706['me']||_0x591706['useAnonymousUser']();for(const _0x4a4e80 of _0x50c1f0)_0x57cd2a['addCommentThread'](_0x4a4e80);for(const _0x5e1b71 of _0x449ed1)_0x3a60b3['addSuggestionData'](_0x5e1b71);_0x2e6b9e['data']['set'](_0x5f7d0c);}(_0x1bd348,_0x23c9f1),_0x23c9f1['execute'](_0x5e7112?'acceptAllSuggestions':'discardAllSuggestions');const _0x240d9=v(_0x23c9f1)?_0x23c9f1['getFullData'](_0xa4d205):_0x23c9f1['data']['get'](_0xa4d205);return await _0x23c9f1['destroy'](),_0x240d9;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|