@ckeditor/ckeditor5-track-changes 44.0.0-alpha.8 → 44.0.0-alpha.9
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/README.md +2 -2
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.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/bs.js +1 -1
- package/dist/translations/bs.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-ch.js +1 -1
- package/dist/translations/de-ch.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-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.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/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.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/gu.js +1 -1
- package/dist/translations/gu.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/hy.js +1 -1
- package/dist/translations/hy.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/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.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/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.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/oc.js +1 -1
- package/dist/translations/oc.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/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.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/ti.js +1 -1
- package/dist/translations/ti.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/ug.js +1 -1
- package/dist/translations/ug.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/uz.js +1 -1
- package/dist/translations/uz.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/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Qt,Plugin as
|
|
24
|
-
_0x40aa80(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x582874,_0x32037d){super(),this['id']=_0x32037d['id'],this['type']=_0x32037d['type'],this['subType']=_0x32037d['subType']||null,this['author']=_0x32037d['author'],this['creator']=_0x32037d['creator']||_0x32037d['author'],this['isExternal']=Boolean(_0x32037d['attributes']&&_0x32037d['attributes']['@external']),this['data']=null,this['_model']=_0x582874,this['_onAccept']=_0x32037d['onAccept'],this['_onDiscard']=_0x32037d['onDiscard'],this['_onAttributesChange']=_0x32037d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x32037d['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 _0x2a732a=this;for(;_0x2a732a['previous'];)_0x2a732a=_0x2a732a['previous'];return _0x2a732a;}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'](_0x1aa853){this['_markerNames']['add'](_0x1aa853);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b62cf=>this['_model']['markers']['get'](_0x2b62cf))['filter'](_0x1082be=>_0x1082be);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x34661b=>{for(const _0x30346f of this['getMarkers']())_0x34661b['removeMarker'](_0x30346f);}),this['_markerNames']['clear']();}['removeMarker'](_0x183a66){this['_model']['change'](_0x2138d8=>{_0x2138d8['removeMarker'](_0x183a66);}),this['_markerNames']['delete'](_0x183a66);}['addRange'](_0x36cf89){const _0x6d48bd='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x6d48bd),this['_model']['change'](_0x28c6d9=>{_0x28c6d9['addMarker'](_0x6d48bd,{'range':_0x36cf89,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2315e2){for(const _0x252378 of this['getRanges']())if(_0x252378['isIntersecting'](_0x2315e2))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x47934b=>_0x47934b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x42e532,_0x116100)=>[..._0x42e532,..._0x116100['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1f7125=this['getRanges']();if(0x1!=_0x1f7125['length'])return null;const _0x27337f=_0x1f7125[0x0],_0xfe1157=_0x27337f['start']['nodeAfter'],_0x1778db=_0x27337f['end']['nodeBefore'];return _0xfe1157 instanceof _0x1ee362?_0xfe1157!=_0x1778db?null:_0xfe1157: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 _0x4340cd=[];let _0x2dfa9c=this['head'];for(;_0x2dfa9c;)_0x4340cd['push'](_0x2dfa9c),_0x2dfa9c=_0x2dfa9c['next'];return _0x4340cd;}['setAttribute'](_0x4f0a17,_0x2d2623){const _0x1a57e7=_0x371996(this['attributes']);_0x145654(_0x1a57e7,_0x4f0a17,_0x2d2623),_0x3b7fb8(_0x1a57e7,this['attributes'])||(this['attributes']=_0x1a57e7,this['_onAttributesChange'](_0x1a57e7));}['removeAttribute'](_0x167c51){const _0x4dd43c=_0x371996(this['attributes']);_0x221600(_0x4dd43c,_0x167c51),_0x3b7fb8(_0x4dd43c,this['attributes'])||(this['attributes']=_0x4dd43c,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 _0x303cc5()['substr'](0x1,0x5);}}function o(_0x5d1b38,_0x3ae5be,_0x5b1d95){const _0x3fdbd8=_0x5d1b38['t'],t=_0x5d1b38['t'];switch(_0x3ae5be){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',_0x5b1d95);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5b1d95);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5b1d95);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5b1d95);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5b1d95);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',_0x5b1d95);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5b1d95);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',_0x5b1d95);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5b1d95);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5b1d95);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5b1d95);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5b1d95);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5b1d95);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5b1d95);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5b1d95);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5b1d95);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5b1d95);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5b1d95);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5b1d95);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5b1d95);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5b1d95);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5b1d95);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5b1d95);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5b1d95);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5b1d95);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5b1d95);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5b1d95);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5b1d95);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5b1d95);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5b1d95);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5b1d95);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'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5b1d95);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5b1d95);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'},_0x5b1d95);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5b1d95);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 _0x3fdbd8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5b1d95);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3fdbd8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5b1d95);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5b1d95);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'},_0x5b1d95);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'},_0x5b1d95);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'},_0x5b1d95);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3ae5be;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x35074d,_0x41d229){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x35074d,this['_locale']=_0x41d229;}['getDescriptions'](_0x866129){const _0x237729=[],_0x2c76f2=new Set(),_0x3e662f=new Set();for(let _0x6e95ea=0x0;_0x6e95ea<_0x866129['length'];_0x6e95ea++){const _0x20332e=_0x866129[_0x6e95ea];if(!_0x20332e['isInContent'])continue;const _0x39f68e=this['_handleCustomCallbackDescription'](_0x20332e);if(_0x39f68e){if(null!=_0x20332e['subType']){if(_0x2c76f2['has'](_0x20332e['subType']))continue;_0x2c76f2['add'](_0x20332e['subType']);}_0x237729['push'](_0x39f68e);}else{if('attribute'!=_0x20332e['type'])'insertion'!=_0x20332e['type']&&'deletion'!=_0x20332e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x237729,_0x20332e,_0x866129[_0x6e95ea+0x1]);else{const _0x2db7f8=_0x20332e['data']['key'];if(_0x3e662f['has'](_0x2db7f8))continue;_0x3e662f['add'](_0x20332e['data']['key']),_0x2db7f8==m?this['_handleRenameSuggestionDescription'](_0x237729,_0x20332e):this['_handleAttributeSuggestionDescription'](_0x237729,_0x20332e);}}}return this['_resolveDescriptionItems'](_0x237729);}['registerDescriptionCallback'](_0x109d01){this['_customCallbacks']['push'](_0x109d01);}['registerElementLabel'](_0x4cea08,_0x42c4fe,_0x3ef430=_0x4f4b43['normal']){'function'==typeof _0x4cea08?_0x2d8e7b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4cea08,'label':_0x42c4fe,'priority':_0x3ef430}):this['_itemLabels']['set'](_0x4cea08,_0x42c4fe);}['registerAttributeLabel'](_0x15661d,_0x3af10f){this['_attributeLabels']['set'](_0x15661d,_0x3af10f);}['getItemLabel'](_0x110b7f,_0x117caa=0x1){let _0x5f9acf;for(const _0x3fe90a of this['_itemLabelsCallbacks'])if(_0x3fe90a['matchingCallback'](_0x110b7f)){_0x5f9acf=_0x3fe90a['label'];break;}return _0x5f9acf||(_0x5f9acf=this['_itemLabels']['get'](_0x110b7f['name'])),_0x5f9acf?_0x5f9acf(_0x117caa):0x1!==_0x117caa?_0x117caa+'\x20'+_0x110b7f['name']+'s':''+_0x110b7f['name'];}['_addDescriptionItems'](_0x3bfd5e,_0x186cee){const _0x2acf3a=_0x186cee['getFirstRange']()['getWalker'](),_0x573a3e='insertion'==_0x186cee['type']?'add':'remove';for(const _0x59f281 of _0x2acf3a){const _0x5a7229=_0x59f281['item'],_0x234e0a=_0x3bfd5e[_0x3bfd5e['length']-0x1];if(_0x5a7229['is']('$textProxy'))_0x234e0a&&_0x234e0a['type']['indexOf']('Container')>-0x1&&_0x3bfd5e['pop'](),_0x234e0a&&'text'==_0x234e0a['type']?_0x234e0a[_0x573a3e]+=_0x5a7229['data']:_0x3bfd5e['push']({'type':'text','add':'add'==_0x573a3e?_0x5a7229['data']:'','remove':'remove'==_0x573a3e?_0x5a7229['data']:''});else{if(this['_schema']['isObject'](_0x5a7229)){const _0x22fcc3=_0x5a7229;if(_0x234e0a&&_0x234e0a['type']['indexOf']('Container')>-0x1&&_0x3bfd5e['pop'](),'elementEnd'==_0x59f281['type'])continue;_0x234e0a&&_0x234e0a['type']==_0x573a3e+'Object'&&_0x234e0a['element']['name']==_0x22fcc3['name']?_0x234e0a['quantity']++:_0x3bfd5e['push']({'type':_0x573a3e+'Object','element':_0x22fcc3,'quantity':0x1}),_0x2acf3a['skip'](_0x101833=>!('elementEnd'==_0x101833['type']&&_0x101833['item']==_0x5a7229));}else{if(this['_schema']['checkChild'](_0x5a7229,'$text')||_0x5a7229['is']('element','softBreak')){const _0x512332=_0x5a7229;if('add'==_0x573a3e&&'elementStart'==_0x59f281['type']||'remove'==_0x573a3e&&'elementEnd'==_0x59f281['type'])continue;if(_0x234e0a&&-0x1==_0x234e0a['type']['indexOf']('Container')){'text'==_0x234e0a['type']&&(_0x234e0a[_0x573a3e]+='\x0a');continue;}let _0x40190a;if(_0x40190a='add'==_0x573a3e?_0x512332['nextSibling']&&!this['_schema']['isObject'](_0x512332['nextSibling'])?_0x512332['nextSibling']:null:_0x512332['previousSibling']&&!this['_schema']['isObject'](_0x512332['previousSibling'])?_0x512332['previousSibling']:null,_0x512332['isEmpty']||_0x40190a&&_0x40190a['isEmpty']){const _0x1d6f51=_0x40190a&&_0x40190a['isEmpty']?_0x40190a:_0x512332;_0x234e0a&&_0x234e0a['type']==_0x573a3e+'EmptyContainer'&&_0x234e0a['element']['name']==_0x1d6f51['name']?_0x234e0a['quantity']++:_0x3bfd5e['push']({'type':_0x573a3e+'EmptyContainer','element':_0x1d6f51,'quantity':0x1});}else _0x3bfd5e['push']({'type':_0x573a3e+'Container','element':_0x512332});}}}}}['_resolveDescriptionItems'](_0x27757f){const _0x57dd07=this['_locale'],_0x3a303b=[],_0xd74e24=[],_0x510c71=[];for(const _0x4f45ed of _0x27757f)switch(_0x4f45ed['type']){case'text':if(_0x4f45ed['add']=_0x4f45ed['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f45ed['remove']=_0x4f45ed['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f45ed['add']&&''!=_0x4f45ed['remove']){_0x3a303b['push']({'type':'replace','content':o(_0x57dd07,'REPLACE_TEXT',['\x22'+_0x4f45ed['remove']+'\x22','\x22'+_0x4f45ed['add']+'\x22'])});continue;}if(null!=_0x4f45ed['add']['match'](/^ +$/)){_0x3a303b['push']({'type':'insertion','content':o(_0x57dd07,'*Insert:*\x20%0',o(_0x57dd07,'ELEMENT_SPACE',_0x4f45ed['add']['length']))});continue;}if(null!=_0x4f45ed['remove']['match'](/^ +$/)){_0x3a303b['push']({'type':'deletion','content':o(_0x57dd07,'*Remove:*\x20%0',o(_0x57dd07,'ELEMENT_SPACE',_0x4f45ed['remove']['length']))});continue;}if(''!=_0x4f45ed['add']){_0x3a303b['push']({'type':'insertion','content':o(_0x57dd07,'*Insert:*\x20%0','\x22'+_0x4f45ed['add']+'\x22')});continue;}_0x3a303b['push']({'type':'deletion','content':o(_0x57dd07,'*Remove:*\x20%0','\x22'+_0x4f45ed['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3a303b['push']({'type':'insertion','content':o(_0x57dd07,'*Insert:*\x20%0',this['getItemLabel'](_0x4f45ed['element'],_0x4f45ed['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3a303b['push']({'type':'deletion','content':o(_0x57dd07,'*Remove:*\x20%0',this['getItemLabel'](_0x4f45ed['element'],_0x4f45ed['quantity']))});continue;case'addContainer':_0x3a303b['push']({'type':'insertion','content':o(_0x57dd07,'*Split:*\x20%0',this['getItemLabel'](_0x4f45ed['element'],_0x4f45ed['quantity']))});continue;case'removeContainer':_0x3a303b['push']({'type':'deletion','content':o(_0x57dd07,'*Merge:*\x20%0',this['getItemLabel'](_0x4f45ed['element'],_0x4f45ed['quantity']))});continue;case'addFormat':_0xd74e24['push'](_0x4f45ed['key']);continue;case'removeFormat':_0x510c71['push'](_0x4f45ed['key']);continue;default:_0x3a303b['push'](_0x4f45ed);}if(_0xd74e24['length']){const _0x559c75=_0xd74e24['map'](_0x4bf19f=>this['_attributeLabels']['has'](_0x4bf19f)?this['_attributeLabels']['get'](_0x4bf19f):_0x4bf19f)['join'](',\x20');_0x3a303b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x559c75)});}if(_0x510c71['length']){const _0x3a1f4f=_0x510c71['map'](_0x1f86be=>this['_attributeLabels']['has'](_0x1f86be)?this['_attributeLabels']['get'](_0x1f86be):_0x1f86be)['join'](',\x20');_0x3a303b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3a1f4f)});}return _0x3a303b;}['_handleCustomCallbackDescription'](_0x9f33c9){for(const _0x56772a of this['_customCallbacks']){const _0x569bb7=_0x56772a(_0x9f33c9);if(_0x569bb7&&'type'in _0x569bb7)return _0x569bb7;}}['_handleAttributeSuggestionDescription'](_0xa0d25,_0x135da1){const _0xe09d83=_0x135da1['data'],_0x45bbb3=void 0x0===_0xe09d83['newValue']?'removeFormat':'addFormat';_0xa0d25['push']({'type':_0x45bbb3,'key':_0xe09d83['key']});}['_handleRenameSuggestionDescription'](_0x49f32b,_0x465d9b){_0x49f32b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x465d9b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x555ed0,_0x3d1aa3,_0x3a5e59){if(this['_addDescriptionItems'](_0x555ed0,_0x3d1aa3),_0x3a5e59&&_0x3a5e59['getFirstRange']()&&!_0x3d1aa3['getFirstRange']()['end']['isEqual'](_0x3a5e59['getFirstRange']()['start'])){const _0x1e16bc=_0x555ed0[_0x555ed0['length']-0x1],_0x42947b='insertion'==_0x3d1aa3['type']?'add':'remove';_0x1e16bc&&'text'==_0x1e16bc['type']&&(_0x1e16bc[_0x42947b]+='\x0a');}}}class U extends _0x579de7{['afterInit'](){const _0x2cd68e=this['editor'],_0x5cf3dd=_0x2cd68e['plugins']['get']('TrackChangesEditing');_0x2cd68e['commands']['get']('showAIAssistant')&&_0x5cf3dd['enableCommand']('showAIAssistant');}}class V extends _0x579de7{['afterInit'](){const _0x3bcca2=this['editor'],_0x14211c=_0x3bcca2['locale'];if(!_0x3bcca2['plugins']['has']('AlignmentEditing'))return;const _0x2a2b61=_0x3bcca2['plugins']['get']('TrackChangesEditing');_0x2a2b61['enableDefaultAttributesIntegration']('alignment'),_0x2a2b61['registerBlockAttribute']('alignment'),_0x2a2b61['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x14211c,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3abc0c=this['editor'],_0x52028f=_0x3abc0c['locale'];_0x3abc0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f26ef=>{if('formatBlock'!=_0x5f26ef['type'])return;const {data:_0x2fa891}=_0x5f26ef;if(_0x2fa891&&'alignment'==_0x2fa891['commandName']){const _0x23502b=_0x2fa891['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x52028f,'*Format:*\x20%0',function(_0x67cb6e){switch(_0x67cb6e){case'left':return o(_0x52028f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x52028f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x52028f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x52028f,'FORMAT_JUSTIFY_TEXT');}}(_0x23502b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x579de7{['afterInit'](){const _0x42ef5b=this['editor'],_0x187e9d=_0x42ef5b['plugins']['get']('TrackChangesEditing'),_0x1f45fe=_0x42ef5b['locale'];for(const _0xb6d5e2 of Zt){if(!_0x42ef5b['plugins']['has'](_0xb6d5e2))continue;const _0x43bf50=_0xb6d5e2['slice'](0x0,-0x7)['toLowerCase'](),_0x5f03d7='FORMAT_'+_0x43bf50['toUpperCase']();_0x187e9d['enableDefaultAttributesIntegration'](_0x43bf50),_0x187e9d['registerInlineAttribute'](_0x43bf50),_0x187e9d['descriptionFactory']['registerAttributeLabel'](_0x43bf50,o(_0x1f45fe,_0x5f03d7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44c9de=this['editor'],_0x903730=_0x44c9de['locale'],_0x35d122=_0x44c9de['plugins']['get']('TrackChangesEditing');function _0x4408f4(_0x10beca,_0x198441){_0x35d122['descriptionFactory']['registerDescriptionCallback'](_0x509023=>{if('formatInline'!=_0x509023['type'])return;const {data:_0x3483c2}=_0x509023;return _0x3483c2&&_0x3483c2['commandName']===_0x10beca?_0x3483c2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x903730,'*Format:*\x20%0',_0x198441)}:{'type':'format','content':o(_0x903730,'*Remove\x20format:*\x20%0',_0x198441)}:void 0x0;});}_0x4408f4('bold',o(_0x903730,'FORMAT_BOLD')),_0x4408f4('italic',o(_0x903730,'FORMAT_ITALIC')),_0x4408f4('underline',o(_0x903730,'FORMAT_UNDERLINE')),_0x4408f4('code',o(_0x903730,'FORMAT_CODE')),_0x4408f4('strikethrough',o(_0x903730,'FORMAT_STRIKETHROUGH')),_0x4408f4('subscript',o(_0x903730,'FORMAT_SUBSCRIPT')),_0x4408f4('superscript',o(_0x903730,'FORMAT_SUPERSCRIPT'));}}class F extends _0x579de7{['afterInit'](){const _0x2e3d4e=this['editor'],_0x47522d=_0x2e3d4e['locale'];if(!_0x2e3d4e['plugins']['has']('BlockQuoteEditing'))return;const _0x19013b=_0x2e3d4e['plugins']['get']('TrackChangesEditing'),_0xc83881=this['editor']['commands']['get']('blockQuote');_0x19013b['enableCommand']('blockQuote',(_0x1bdd5c,_0x462a93={})=>{const _0x45e32b=this['editor']['model']['document']['selection'],_0x5efc76=_0x462a93&&void 0x0!==_0x462a93['forceValue']?_0x462a93['forceValue']:!_0xc83881['value'];let _0x2b1a26=[];if(_0x5efc76){const _0x2ca7a4=Array['from'](_0x45e32b['getSelectedBlocks']())['filter'](_0x27a8de=>oo(_0x27a8de)||function(_0x13135f,_0x251a45){const _0x4a8cb8=_0x251a45['checkChild'](_0x13135f['parent'],'blockQuote'),_0x5245d9=_0x251a45['checkChild'](['$root','blockQuote'],_0x13135f);return _0x4a8cb8&&_0x5245d9;}(_0x27a8de,this['editor']['model']['schema']));_0x2b1a26=to(_0x2ca7a4,_0x2e3d4e['model']);}else{const _0x8a0dec=Array['from'](_0x45e32b['getSelectedBlocks']())['filter'](_0x21e2a1=>oo(_0x21e2a1));_0x2b1a26=to(_0x8a0dec,_0x2e3d4e['model']);}_0x2e3d4e['model']['change'](()=>{for(const _0x9f6e6f of _0x2b1a26)_0x19013b['markBlockFormat'](_0x9f6e6f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5efc76}]});});}),_0x19013b['descriptionFactory']['registerDescriptionCallback'](_0x50bcde=>{const {data:_0x13faf0}=_0x50bcde;if(_0x13faf0&&'blockQuote'==_0x13faf0['commandName']){const _0x10662d=o(_0x47522d,'ELEMENT_BLOCK_QUOTE');return _0x13faf0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47522d,'*Set\x20format:*\x20%0',_0x10662d)}:{'type':'format','content':o(_0x47522d,'*Remove\x20format:*\x20%0',_0x10662d)};}});}}function oo(_0x3a6ca7){return'blockQuote'==_0x3a6ca7['parent']['name'];}class L extends _0x579de7{['afterInit'](){const _0x4a3814=this['editor'],_0x29ef2c=_0x4a3814['locale'],_0x57ee97=_0x4a3814['plugins']['get']('TrackChangesEditing');_0x4a3814['plugins']['has']('BookmarkEditing')&&(_0x57ee97['enableCommand']('insertBookmark'),_0x57ee97['enableDefaultAttributesIntegration']('updateBookmark'),_0x57ee97['registerBlockAttribute']('bookmarkId'),_0x57ee97['descriptionFactory']['registerDescriptionCallback'](_0x4afb7a=>{if('insertion'!=_0x4afb7a['type']&&'deletion'!=_0x4afb7a['type']&&'attribute'!=_0x4afb7a['type'])return;const _0x344afc=_0x4afb7a['getContainedElement']();if(null==_0x344afc)return;if(!_0x344afc['is']('element','bookmark'))return;const _0x1ce6a5=_0x344afc['getAttribute']('bookmarkId');if('insertion'==_0x4afb7a['type'])return{'type':'insertion','content':o(_0x29ef2c,'*Insert:*\x20%0','\x22'+_0x1ce6a5+'\x22\x20'+o(_0x29ef2c,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4afb7a['type'])return{'type':'deletion','content':o(_0x29ef2c,'*Remove:*\x20%0','\x22'+_0x1ce6a5+'\x22\x20'+o(_0x29ef2c,'ELEMENT_BOOKMARK'))};const {data:_0x26f706}=_0x4afb7a;if(!_0x26f706||'bookmarkId'!=_0x26f706['key'])return;return{'type':'format','content':o(_0x29ef2c,'*Set\x20bookmark:*\x20%0','\x22'+_0x26f706['newValue']+'\x22')};}));}}class J extends _0x579de7{['afterInit'](){const _0x5d49e9=this['editor'];_0x5d49e9['plugins']['has']('CaseChange')&&(_0x5d49e9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5d49e9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5d49e9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x579de7{['afterInit'](){const _0x47c39b=this['editor'];_0x47c39b['commands']['get']('ckbox')&&_0x47c39b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x579de7{['afterInit'](){const _0x3004cb=this['editor'];if(!_0x3004cb['plugins']['has']('CodeBlock'))return;const _0x3f8988=_0x3004cb['plugins']['get']('TrackChangesEditing'),_0x4d39c4=_0x3004cb['locale'],_0x3816ce=_0x3004cb['config']['get']('codeBlock')['languages'],_0x5b16d2=_0x3004cb['commands']['get']('codeBlock');_0x3f8988['enableCommand']('indentCodeBlock'),_0x3f8988['enableCommand']('outdentCodeBlock'),_0x3f8988['enableCommand']('codeBlock',(_0x1976a0,_0x1986d7={})=>{const _0x527cca=_0x3004cb['model'],_0x224be6=_0x3004cb['model']['document']['selection'],_0xeb176b=_0x1986d7&&void 0x0!==_0x1986d7['forceValue']?_0x1986d7['forceValue']:!_0x5b16d2['value'];let _0x2a66e1;_0x1986d7['language']||(_0x1986d7['language']=_0x3816ce[0x0]['language']),_0x2a66e1=_0xeb176b?Array['from'](_0x224be6['getSelectedBlocks']())['filter'](_0x2bb76d=>eo(_0x2bb76d)||function(_0x235cb6,_0xb0f900){if(_0x235cb6['is']('rootElement')||_0xb0f900['isLimit'](_0x235cb6))return!0x1;return _0xb0f900['checkChild'](_0x235cb6['parent'],'codeBlock');}(_0x2bb76d,_0x527cca['schema'])):Array['from'](_0x224be6['getSelectedBlocks']())['filter'](_0x382011=>eo(_0x382011));const _0x226bfb=to(_0x2a66e1,_0x527cca);_0x527cca['change'](()=>{for(const _0x472764 of _0x226bfb)_0x3f8988['markBlockFormat'](_0x472764,{'commandName':'codeBlock','commandParams':[{..._0x1986d7,'forceValue':_0xeb176b}],'formatGroupId':'blockName'});});}),(_0x3f8988['descriptionFactory']['registerElementLabel']('codeBlock',_0x224db9=>o(_0x4d39c4,'ELEMENT_CODE_BLOCK',_0x224db9)),_0x3f8988['descriptionFactory']['registerDescriptionCallback'](_0x4d2b42=>{if('formatBlock'!=_0x4d2b42['type'])return;const _0x252268=_0x4d39c4['t'],{data:_0x62e45c}=_0x4d2b42;if(!_0x62e45c||'codeBlock'!=_0x62e45c['commandName'])return;const _0x281d3e=_0x62e45c['commandParams'][0x0]['language'],_0x37b749=_0x252268(_0x3816ce['find'](_0x5de346=>_0x5de346['language']===_0x281d3e)['label'])['toLowerCase']();return _0x62e45c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4d39c4,'*Set\x20format:*\x20%0',o(_0x4d39c4,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x37b749+')')}:{'type':'format','content':o(_0x4d39c4,'*Remove\x20format:*\x20%0',o(_0x4d39c4,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x58dccd){return'codeBlock'==_0x58dccd['name'];}class z extends _0x579de7{['afterInit'](){const _0x229656=this['editor'];if(!_0x229656['plugins']['has']('CommentsEditing'))return;_0x229656['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5a8cd0,_0x19fc7b,_0x5f1434){const _0x397f4c=[];for(const _0x1c8fc8 of _0x19fc7b['getItems']())_0x1c8fc8['hasAttribute'](_0x5a8cd0)&&_0x397f4c['push'](_0x5f1434['createRangeOn'](_0x1c8fc8));return _0x397f4c;}function Ne(_0x35fb9e,_0x470897,{showActiveMarker:_0x1abe54=!0x0}={}){const _0x2de2d9=_0x35fb9e['plugins']['get']('TrackChangesEditing');return(_0x4816ab,_0x28b33c,_0xb9d4e6)=>{if(!_0xb9d4e6['consumable']['test'](_0x28b33c['markerRange'],_0x4816ab['name']))return;const _0xdfc31a=_0x28b33c['markerRange']['getWalker'](),_0x1b2eed=_0x28b33c['markerRange']['start'],_0x468d50=_0x35fb9e['model']['schema'];let _0x26ac90=null,_0x3db11e=null,_0x5846fa=!0x1,_0x2f6d6a=!0x1;for(const _0x5dd96f of _0xdfc31a){const _0x9bbe10=_0x5dd96f['item'];_0x5846fa=_0x5846fa||_0x468d50['isContent'](_0x9bbe10);const _0x24a087=_0xb9d4e6['mapper']['toViewElement'](_0x9bbe10);if(_0x24a087&&_0x24a087['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5dd96f['type']&&(_0x468d50['isBlock'](_0x9bbe10)&&!_0x468d50['isLimit'](_0x9bbe10)&&(_0x9bbe10['nextSibling']||_0x1b2eed['isAtEnd']?_0x26ac90&&_0x26ac90['parent']==_0x9bbe10||(_0x26ac90=_0x9bbe10,_0x175bc0(_0x5dd96f['previousPosition']),_0x2f6d6a=!0x0):_0x3db11e=_0x3db11e||_0x5dd96f['previousPosition']));}function _0x175bc0(_0x76bde0){const {authorId:_0x37cff0}=_0x2de2d9['_splitMarkerName'](_0x28b33c['markerName']),_0x4e07ba=_0xb9d4e6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x470897,'data-author-id':_0x37cff0}),_0x269a93=_0xb9d4e6['mapper']['toViewPosition'](_0x76bde0);_0x1abe54&&_0x2de2d9['activeMarkers']['includes'](_0x28b33c['markerName'])&&_0xb9d4e6['writer']['addClass']('ck-suggestion-marker--active',_0x4e07ba),_0xb9d4e6['writer']['insert'](_0x269a93,_0x4e07ba),_0xb9d4e6['mapper']['bindElementToMarker'](_0x4e07ba,_0x28b33c['markerName']);}_0x5846fa||_0x2f6d6a||!_0x3db11e||_0x175bc0(_0x3db11e);};}class K extends _0x579de7{static get['requires'](){return[_0x4862bc];}['init'](){const _0x4d1a21=this['editor'],_0x11105b=_0x4d1a21['plugins']['get']('TrackChangesEditing');_0x11105b['enableCommand']('delete');const _0x1a9edc=_0x4d1a21['commands']['get']('deleteForward');_0x11105b['enableCommand']('deleteForward',(_0x45c24a,_0x18d943={})=>{const _0x1195ae=_0x4d1a21['model']['createSelection'](_0x4d1a21['model']['document']['selection']);_0x1195ae['isCollapsed']&&_0x4d1a21['model']['modifySelection'](_0x1195ae,{'direction':'forward','unit':_0x18d943['unit']});const _0x1df52a=_0x1195ae['getFirstRange'](),_0x18414b=_0x5e91cd['fromRange'](_0x1df52a);let _0x5026ef;_0x45c24a(_0x18d943),_0x5026ef='$graveyard'==_0x18414b['root']['rootName']?_0x4d1a21['model']['createRange'](_0x1df52a['start']):_0x4d1a21['model']['createRange'](_0x18414b['start'],_0x18414b['end']),_0x18414b['detach'](),_0x4d1a21['model']['enqueueChange'](_0x1a9edc['buffer']['batch'],_0x381ef8=>{_0x1a9edc['buffer']['lock'](),_0x381ef8['setSelection'](_0x381ef8['createRange'](_0x5026ef['end'])),_0x1a9edc['buffer']['unlock']();});}),_0x4d1a21['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x4d1a21,'merge'),{'priority':'high'}),_0x4d1a21['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x445af1,_0x24b1dc,_0x1a6c50)=>{_0x1a6c50['options']['showSuggestionHighlights']&&Ne(_0x4d1a21,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x445af1,_0x24b1dc,_0x1a6c50);},{'priority':'high'}),_0x4d1a21['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x20262d,_0x4b14e9,_0x205b50)=>{const _0x4fd84f=_0x205b50['mapper']['markerNameToElements'](_0x4b14e9['markerName']);if(_0x4fd84f){for(const _0x53db1a of _0x4fd84f)_0x53db1a['is']('uiElement')&&(_0x205b50['mapper']['unbindElementFromMarkerName'](_0x53db1a,_0x4b14e9['markerName']),_0x205b50['writer']['remove'](_0x53db1a));}},{'priority':'high'});}}class W extends _0x579de7{['afterInit'](){const _0x1bd2c7=this['editor'];if(!_0x1bd2c7['plugins']['has']('ListEditing'))return;const _0x33c53b=_0x1bd2c7['locale'],_0x3daed7=_0x1bd2c7['plugins']['get']('TrackChangesEditing'),_0xaf266f=_0x1bd2c7['plugins']['has']('TodoListEditing'),_0x1a7592=!!_0x1bd2c7['config']['get']('list.multiBlock');function _0x5d0258(_0x4a7e67){return{'type':'format','content':''+o(_0x33c53b,'*Set\x20format:*\x20%0',_0x4a7e67)};}function _0x435383(_0x10fc55){return{'type':'format','content':''+o(_0x33c53b,'*Remove\x20format:*\x20%0',_0x10fc55)};}_0x3daed7['enableDefaultAttributesIntegration']('numberedList'),_0x3daed7['enableDefaultAttributesIntegration']('bulletedList'),_0x3daed7['enableDefaultAttributesIntegration']('customNumberedList'),_0x3daed7['enableDefaultAttributesIntegration']('customBulletedList'),_0x3daed7['enableDefaultAttributesIntegration']('indentList'),_0x3daed7['enableDefaultAttributesIntegration']('outdentList'),_0x3daed7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3daed7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3daed7['registerBlockAttribute']('listItemId'),_0x3daed7['registerBlockAttribute']('listType'),_0x3daed7['registerBlockAttribute']('listIndent'),_0x1a7592&&(_0x3daed7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3daed7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xaf266f&&(_0x3daed7['enableDefaultAttributesIntegration']('todoList'),_0x3daed7['enableDefaultAttributesIntegration']('checkTodoList'),_0x3daed7['registerBlockAttribute']('todoListChecked'),_0x3daed7['descriptionFactory']['registerDescriptionCallback'](_0xa2dc21=>{const {data:_0x36cbc6}=_0xa2dc21;if(_0x36cbc6&&'todoListChecked'==_0x36cbc6['key'])return{'type':'format','content':_0x36cbc6['newValue']?o(_0x33c53b,'*Check\x20item*'):o(_0x33c53b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2ff359=>{if(_0x2ff359['batch']['isUndo'])return!0x1;let _0x1da922=!0x1;const _0x52a90b=_0x3daed7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e47df=>'todoListChecked'===_0x3daed7['_getAttributeKey'](_0x4e47df));for(const _0x407aa5 of _0x52a90b){'todo'!=_0x407aa5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3daed7['_findSuggestions'](_0x407aa5['getFirstRange'](),'attribute')['find'](_0x36b7cb=>'listType'===_0x3daed7['_getAttributeKey'](_0x36b7cb['suggestion']))||(_0x2ff359['removeMarker'](_0x407aa5['getFirstMarker']()),_0x1da922=!0x0));}return _0x1da922;})),_0x3daed7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x33c53b,'FORMAT_INDENT'));const _0x449c12={'type':'format','content':''};_0x3daed7['descriptionFactory']['registerDescriptionCallback'](_0x5bee1d=>{const {data:_0x498ea1}=_0x5bee1d;if(!_0x498ea1||'listType'!=_0x498ea1['key'])return;let _0x13b265=_0x5bee1d['head'];for(;_0x13b265;){if(_0x13b265['data']&&(('listStyle'==_0x13b265['data']['key']||'listMarkerStyle'==_0x13b265['data']['key'])&&(_0x13b265['data']['newValue']&&'default'!=_0x13b265['data']['newValue']||'default'!=_0x13b265['data']['oldValue']&&!_0x498ea1['newValue'])||!_0x1a7592&&_0x13b265['data']['key']==m))return _0x449c12;_0x13b265=_0x13b265['next'];}if(null==_0x498ea1['newValue'])switch(_0x498ea1['oldValue']){case'bulleted':return _0x435383(o(_0x33c53b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x435383(o(_0x33c53b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x435383(o(_0x33c53b,'ELEMENT_TODO_LIST'));}switch(_0x498ea1['newValue']){case'bulleted':return _0x5d0258(o(_0x33c53b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5d0258(o(_0x33c53b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5d0258(o(_0x33c53b,'ELEMENT_TODO_LIST'));}}),_0x3daed7['descriptionFactory']['registerDescriptionCallback'](_0x311532=>{const {data:_0x2ecac0}=_0x311532;if(_0x2ecac0&&'listIndent'==_0x2ecac0['key'])return null==_0x2ecac0['newValue']||null==_0x2ecac0['oldValue']&&0x0==_0x2ecac0['newValue']?_0x449c12:void 0x0;}),_0x3daed7['descriptionFactory']['registerDescriptionCallback'](_0x55f55f=>{if('attribute'!=_0x55f55f['type'])return;const {data:_0x28ede8}=_0x55f55f;if(!_0x28ede8||'listItemId'!=_0x28ede8['key'])return;const _0x598d54=Te(_0x55f55f);return'newValue'==_0x598d54?{'type':'format','content':o(_0x33c53b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x598d54?{'type':'format','content':o(_0x33c53b,'*Split:*\x20list\x20item')}:_0x449c12;}),_0x1bd2c7['model']['document']['registerPostFixer'](_0x495dc8=>this['listItemIdFixer'](_0x495dc8)),_0x1bd2c7['model']['document']['registerPostFixer'](_0x34ec1d=>this['noTrackChangesFixer'](_0x34ec1d)),_0x1bd2c7['model']['document']['on']('change:data',(_0x2fa89d,_0x2c25e8)=>{if(_0x2c25e8['isUndo']||!_0x2c25e8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2ddf16){if(_0x2ddf16['batch']['isUndo']||!_0x2ddf16['batch']['isLocal'])return!0x1;let _0x3c2be0=!0x1;const _0x110014=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x566ad5=>_0x566ad5['data']&&'listItemId'==_0x566ad5['data']['key'])['filter'](_0xd42f21=>_0xd42f21['data']['newValue']&&_0xd42f21['data']['oldValue']);for(const _0x46c704 of _0x110014)Te(_0x46c704)||(_0x2ddf16['removeMarker'](_0x46c704['getFirstMarker']()),_0x3c2be0=!0x0);return _0x3c2be0;}['noTrackChangesFixer'](_0x575c1f){if(_0x575c1f['batch']['isUndo']||!_0x575c1f['batch']['isLocal'])return!0x1;const _0x25da56=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x25da56['trackChangesCommand']['value'])return!0x1;let _0x4dd85c=!0x1;const _0x454934=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x58985d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x515b4f=>'attribute'==_0x515b4f['type'])['filter'](_0x35acf8=>_0x454934['includes'](_0x35acf8['attributeKey']));if(0x0==_0x58985d['length'])return _0x4dd85c;for(const _0x48cc37 of _0x58985d){const _0x1dd54a=_0x25da56['_findSuggestions'](_0x48cc37['range'],'attribute')['filter'](_0x337de9=>!_0x337de9['meta']['isNextTo'])['map'](_0x49211d=>_0x49211d['suggestion'])['filter'](_0x157d70=>{const _0x463f29=_0x25da56['_getAttributeKey'](_0x157d70);return _0x454934['includes'](_0x463f29);});if(_0x1dd54a['length']){for(const _0x2bddb6 of _0x1dd54a)_0x575c1f['removeMarker'](_0x2bddb6['getFirstMarker']());_0x4dd85c=!0x0;}}return _0x4dd85c;}['assureChains'](){const _0x181fb1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13aa60=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4fbd13;const _0x2a4ad8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x117cf9=>{if(_0x117cf9['data']['oldRange']||!_0x117cf9['data']['newRange'])return null;if(!_0x117cf9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x591cf8}=_0x181fb1['_splitMarkerName'](_0x117cf9['name']);if(!_0x181fb1['hasSuggestion'](_0x591cf8))return null;const _0x287800=_0x181fb1['getSuggestion'](_0x591cf8);return _0x13aa60['includes'](_0x287800['data']['key']);})['map'](_0x392b89=>{const {id:_0x29e646}=_0x181fb1['_splitMarkerName'](_0x392b89['name']),_0x49cf78=_0x181fb1['getSuggestion'](_0x29e646);return _0x4fbd13=_0x49cf78['attributes']['groupId'],_0x49cf78['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2a4ad8['size'])return;const _0x21e700=_0x181fb1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x278c5d=>'attribute'==_0x278c5d['type']&&_0x278c5d['data']&&_0x13aa60['includes'](_0x278c5d['data']['key'])&&_0x278c5d['attributes']['groupId']!=_0x4fbd13)['map'](_0x2d69d0=>({'listItem':_0x2d69d0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2d69d0['attributes']['groupId']})),_0xa89d49=new Set();for(const {groupId:_0xe96c29,listItem:_0x168e62}of _0x21e700)_0x2a4ad8['has'](_0x168e62)&&_0xa89d49['add'](_0xe96c29);for(const _0x1dc22b of _0x181fb1['getSuggestions']())_0xa89d49['has'](_0x1dc22b['attributes']['groupId'])&&_0x1dc22b['setAttribute']('groupId',_0x4fbd13);}['_supportLegacySuggestions'](){const _0x8d0dfa=this['editor'],_0x19e48d=_0x8d0dfa['locale'],_0x1e96ba=_0x8d0dfa['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1e96ba['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x45f7e3,_0xbfd3d1){const _0x2e4362=[];for(let _0x173f98 of _0x45f7e3)_0x173f98['start']['nodeAfter']===_0x173f98['end']['parent']&&(_0x173f98=_0x8d0dfa['model']['createRange'](_0x8d0dfa['model']['createPositionAt'](_0x173f98['start']['nodeAfter'],0x0))),_0x2e4362['push'](_0x173f98);_0x8d0dfa['model']['change'](_0x17a8ef=>{const _0x259b7c=_0x8d0dfa['model']['document']['selection'],_0x141c65=Array['from'](_0x259b7c['getRanges']())['map'](_0x2d4555=>_0x5e91cd['fromRange'](_0x2d4555));_0x17a8ef['setSelection'](_0x2e4362),_0x8d0dfa['commands']['get'](_0xbfd3d1['commandName'])['refresh'](),_0xbfd3d1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x8d0dfa['execute'](_0xbfd3d1['commandName'],..._0xbfd3d1['commandParams']),_0x17a8ef['setSelection'](_0x141c65);for(const _0x23e071 of _0x141c65)_0x23e071['detach']();});}),_0x1e96ba['descriptionFactory']['registerElementLabel'](function(_0x365dc2){const _0x2e9e10=!_0x8d0dfa['model']['schema']['isObject'](_0x365dc2),_0x8478de=_0x365dc2['previousSibling'],_0x196afb=_0x365dc2['nextSibling'],_0x3fddaa=_0x365dc2['getAttribute']('listItemId'),_0xa91497=!_0x8478de||_0x8478de['getAttribute']('listItemId')!==_0x3fddaa,_0x3e5fc2=!_0x196afb||_0x196afb['getAttribute']('listItemId')!==_0x3fddaa;return _0x2e9e10&&Boolean(_0x3fddaa)&&_0xa91497&&_0x3e5fc2;},_0x173b5c=>o(_0x19e48d,'ELEMENT_LIST_ITEM',_0x173b5c));}['_registerLegacyDescription'](){const _0x3115de=this['editor'],_0x1a0413=_0x3115de['locale'];function _0x5a8d72(_0x244a6a){const _0x54b399=_0x3115de['commands']['get']('bulletedList')['value'],_0x457957=_0x3115de['commands']['get']('numberedList')['value'];return'numberedList'===_0x244a6a?_0x54b399:_0x457957;}_0x3115de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2552a5){if('formatBlock'!=_0x2552a5['type'])return;const {data:_0x159e23}=_0x2552a5;if(!_0x159e23)return;let _0x150dd1,_0x34a259,_0x18ee3c,_0x3c69d3;switch(_0x159e23['commandName']){case'bulletedList':_0x18ee3c=_0x159e23['commandParams'][0x0]['forceValue'],_0x3c69d3=_0x5a8d72(_0x159e23['commandName']),_0x150dd1=_0x18ee3c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c69d3&&_0x3115de['config']['get']('list.multiBlock')||(_0x150dd1='*Change\x20to:*\x20%0'),_0x34a259={'type':'format','content':o(_0x1a0413,_0x150dd1,o(_0x1a0413,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x18ee3c=_0x159e23['commandParams'][0x0]['forceValue'],_0x3c69d3=_0x5a8d72(_0x159e23['commandName']),_0x150dd1=_0x18ee3c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3c69d3&&_0x3115de['config']['get']('list.multiBlock')||(_0x150dd1='*Change\x20to:*\x20%0'),_0x34a259={'type':'format','content':o(_0x1a0413,_0x150dd1,o(_0x1a0413,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x150dd1='*Indent:*\x20%0',_0x34a259={'type':'format','content':o(_0x1a0413,_0x150dd1,o(_0x1a0413,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x150dd1=function(_0x14a313){const _0x3edcb7=_0x14a313['getFirstRange']();let _0x385ef5=_0x3edcb7['start']['nodeAfter'];for(;_0x385ef5&&_0x3edcb7['containsItem'](_0x385ef5);){if(_0x385ef5['getAttribute']('listIndent')>0x0)return!0x1;_0x385ef5=_0x385ef5['nextSibling'];}return!0x0;}(_0x2552a5)?o(_0x1a0413,'*Format:*\x20remove\x20from\x20%0',o(_0x1a0413,function(_0xac488e){return'ELEMENT_'+_0xac488e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2552a5))):o(_0x1a0413,'*Outdent:*\x20%0',o(_0x1a0413,'ELEMENT_LIST_ITEM')),_0x34a259={'type':'format','content':_0x150dd1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x159e23['multipleBlocks']&&(_0x150dd1='*Merge:*\x20%0',_0x34a259={'type':'deletion','content':o(_0x1a0413,_0x150dd1,o(_0x1a0413,'ELEMENT_LIST_ITEM'))});}return _0x34a259;});}}function Te(_0x5211f4){let _0x33ad89=_0x5211f4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x33ad89;){const _0x258164=_0x33ad89['getAttribute']('listItemId');if(!_0x258164)return!0x1;if(_0x258164==_0x5211f4['data']['newValue'])return'newValue';if(_0x258164==_0x5211f4['data']['oldValue'])return'oldValue';_0x33ad89=_0x33ad89['previousSibling'];}return!0x1;}class ye extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3148c5=this['editor']['config']['get']('list.properties'),_0x1ce606=this['editor']['plugins']['get']('TrackChangesEditing');_0x3148c5['styles']&&(_0x1ce606['enableDefaultAttributesIntegration']('listStyle'),_0x1ce606['registerBlockAttribute']('listStyle')),_0x3148c5['reversed']&&(_0x1ce606['enableDefaultAttributesIntegration']('listReversed'),_0x1ce606['registerBlockAttribute']('listReversed')),_0x3148c5['startIndex']&&(_0x1ce606['enableDefaultAttributesIntegration']('listStart'),_0x1ce606['registerBlockAttribute']('listStart'));const _0x2ada55={'type':'format','content':''};_0x1ce606['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b7fc9=this['editor']['locale'];_0x1ce606['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2b7fc9,'FORMAT_LIST_REVERSED')),_0x1ce606['descriptionFactory']['registerDescriptionCallback'](_0x54ad5e=>{const {data:_0x338e2b}=_0x54ad5e;if(_0x338e2b&&'listReversed'==_0x338e2b['key'])return null==_0x338e2b['newValue']||0x0==_0x338e2b['newValue']&&null==_0x338e2b['oldValue']?_0x2ada55:void 0x0;}),_0x1ce606['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2b7fc9,'FORMAT_LIST_START')),_0x1ce606['descriptionFactory']['registerDescriptionCallback'](_0x2ffefe=>{const {data:_0x44071b}=_0x2ffefe;if(_0x44071b&&'listStart'==_0x44071b['key'])return null==_0x44071b['newValue']||0x1==_0x44071b['newValue']&&null==_0x44071b['oldValue']?_0x2ada55:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x332206=>{if(_0x332206['batch']['isUndo'])return!0x1;let _0x2fe870=!0x1;const _0x303236=_0x1ce606['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c4502=>{const _0x1b5c16=_0x1ce606['_getAttributeKey'](_0x3c4502);return'listStart'==_0x1b5c16||'listReversed'==_0x1b5c16;});for(const _0x384ff9 of _0x303236){const _0x12f7c8=_0x384ff9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x12f7c8||'customNumbered'==_0x12f7c8)continue;_0x1ce606['_findSuggestions'](_0x384ff9['getFirstRange'](),'attribute')['find'](_0x57edbf=>'listType'==_0x1ce606['_getAttributeKey'](_0x57edbf['suggestion']))||(_0x332206['removeMarker'](_0x384ff9['getFirstMarker']()),_0x2fe870=!0x0);}return _0x2fe870;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5b4b95){const _0x1f07d8=this['editor']['locale'],{data:_0x25089d}=_0x5b4b95,_0x2cb4ab={'type':'format','content':''};if(!_0x25089d||'listStyle'!=_0x25089d['key'])return;if(!_0x25089d['oldValue'])return'default'==_0x25089d['newValue']?_0x2cb4ab:{'type':'format','content':''+o(_0x1f07d8,'*Set\x20format:*\x20%0',o(_0x1f07d8,this['_getTranslationKeyForListStyle'](_0x25089d['newValue'])))};if(!_0x25089d['newValue']){if('default'==_0x25089d['oldValue'])return _0x2cb4ab;let _0x163a3c=_0x5b4b95['head'];for(;_0x163a3c;){if(_0x163a3c['data']&&'listType'==_0x163a3c['data']['key']&&_0x163a3c['data']['newValue'])return _0x2cb4ab;_0x163a3c=_0x163a3c['next'];}return{'type':'format','content':''+o(_0x1f07d8,'*Remove\x20format:*\x20%0',o(_0x1f07d8,this['_getTranslationKeyForListStyle'](_0x25089d['oldValue'])))};}if('default'!=_0x25089d['newValue'])return{'type':'format','content':''+o(_0x1f07d8,'*Set\x20format:*\x20%0',o(_0x1f07d8,this['_getTranslationKeyForListStyle'](_0x25089d['newValue'])))};let _0x501eff=_0x5b4b95['head'];for(;_0x501eff;){if(_0x501eff['data']&&'listType'==_0x501eff['data']['key']&&_0x501eff['data']['newValue']&&_0x501eff['data']['oldValue'])return _0x2cb4ab;_0x501eff=_0x501eff['next'];}return{'type':'format','content':o(_0x1f07d8,'*Set\x20format:*\x20%0',o(_0x1f07d8,'ELEMENT_'+_0x5b4b95['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x239a18=this['editor'],_0x1ede25=_0x239a18['locale'];_0x239a18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7e2095=>{if('formatBlock'!=_0x7e2095['type'])return;const {data:_0x35e6a5}=_0x7e2095;if(!_0x35e6a5)return;let _0x152961,_0x24713c;switch(_0x35e6a5['commandName']){case'listStyle':_0x152961='*Change\x20to:*\x20%0',_0x24713c={'type':'format','content':o(_0x1ede25,_0x152961,o(_0x1ede25,this['_getTranslationKeyForListStyle'](_0x35e6a5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x152961=_0x35e6a5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x24713c={'type':'format','content':o(_0x1ede25,_0x152961)};break;case'listStart':_0x152961='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x24713c={'type':'format','content':o(_0x1ede25,_0x152961,_0x35e6a5['commandParams'][0x0]['startIndex'])};}return _0x24713c;});}['_getTranslationKeyForListStyle'](_0x340a96){return'ELEMENT_'+function(_0x29b636){if(Se['includes'](_0x29b636))return'bulleted';if(_e['includes'](_0x29b636))return'numbered';return null;}(_0x340a96)['toUpperCase']()+'_LIST_'+_0x340a96['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x579de7{static get['requires'](){return[_0x19ffea];}['init'](){const _0x2d3b61=this['editor'],_0x42e11e=_0x2d3b61['plugins']['get']('TrackChangesEditing'),_0x9dcf9a=_0x2d3b61['commands']['get']('enter');_0x42e11e['enableCommand']('enter',()=>{_0x2d3b61['model']['change'](_0x473e51=>{const _0x1886ce=_0x2d3b61['model']['document']['selection'],_0x3dbc85=_0x1886ce['getFirstPosition'](),_0x251bc4=_0x5e91cd['fromRange'](_0x1886ce['getFirstRange']());if(_0x9dcf9a['enterBlock'](_0x473e51)){const _0x564c4b=_0x2d3b61['model']['createPositionAt'](_0x3dbc85['parent']['nextSibling'],0x0),_0x25a893=_0x473e51['createRange'](_0x3dbc85,_0x564c4b);_0x42e11e['markInsertion'](_0x25a893);}else _0x473e51['setSelection'](_0x473e51['createRange'](_0x251bc4['end']));_0x251bc4['detach'](),_0x9dcf9a['fire']('afterExecute',{'writer':_0x473e51});});}),_0x2d3b61['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x2d3b61,'split'),{'priority':'high'}),_0x2d3b61['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3b8a11,_0x232e09,_0x39b06d)=>{const _0x365870=_0x39b06d['mapper']['markerNameToElements'](_0x232e09['markerName']);if(_0x365870){for(const _0x3a8fc5 of _0x365870)_0x3a8fc5['hasClass']('ck-suggestion-marker-split')&&(_0x39b06d['mapper']['unbindElementFromMarkerName'](_0x3a8fc5,_0x232e09['markerName']),_0x39b06d['writer']['remove'](_0x3a8fc5));}},{'priority':'high'}),_0x2d3b61['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e20c8,_0x1c7768,_0x44e8e0)=>{_0x44e8e0['options']['showSuggestionHighlights']&&Ne(_0x2d3b61,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4e20c8,_0x1c7768,_0x44e8e0);},{'priority':'high'});}}class Y extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x229717=this['editor']['plugins']['get']('TrackChangesEditing');_0x229717['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x229717['enableCommand']('findNext'),_0x229717['enableCommand']('findPrevious'),_0x229717['enableCommand']('replace'),_0x229717['enableCommand']('replaceAll');}['handleFindCommand'](_0x424299,_0x8acb70,_0x5da707={}){const _0x4f8207=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x424299(_0x337b1a=>{let _0x459488=('string'==typeof _0x8acb70?_0x4f8207['findByTextCallback'](_0x8acb70,_0x5da707):_0x8acb70)(_0x337b1a);Array['isArray'](_0x459488)&&(_0x459488={'results':_0x459488,'searchText':'string'==typeof _0x8acb70?_0x8acb70:''});const _0x45bbff=_0x459488['results']['filter'](_0x3acfa8=>!0x1===this['_isInDeletionRange'](_0x3acfa8,_0x337b1a['item']));return{..._0x459488,'results':_0x45bbff};},_0x5da707);}['_isInDeletionRange'](_0x41eef6,_0x38328c){const _0x2acd0f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x38328c,_0x41eef6['start']),this['editor']['model']['createPositionAt'](_0x38328c,_0x41eef6['end']));for(const _0x11bbe7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2acd0f['getIntersection'](_0x11bbe7['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x579de7{['afterInit'](){const _0x11fa92=this['editor']['locale'],_0x4a7a85=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2ca2fa,commandName:_0x1e6121}of ro)this['editor']['plugins']['has'](_0x2ca2fa)&&(_0x4a7a85['enableDefaultAttributesIntegration'](_0x1e6121),_0x4a7a85['registerInlineAttribute'](_0x1e6121));_0x4a7a85['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x11fa92,'FORMAT_FONT_SIZE')),_0x4a7a85['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x11fa92,'FORMAT_FONT_FAMILY')),_0x4a7a85['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x11fa92,'FORMAT_FONT_COLOR')),_0x4a7a85['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x11fa92,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a49b2=this['editor'],_0x4d4e48=_0x4a49b2['locale'];_0x4a49b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x329c96=>{const _0x528b9e=_0x4d4e48['t'];if('formatInline'!=_0x329c96['type'])return;const {data:_0x385ef2}=_0x329c96;if(null!=_0x385ef2){if('fontSize'==_0x385ef2['commandName']){const _0xb738f9=_0x385ef2['commandParams'][0x0]['value'];if(_0xb738f9){const _0x1986e0=_0x528b9e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4732e0=>_0x4732e0['model']==_0xb738f9)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d4e48,'*Set\x20font\x20size:*\x20%0',_0x1986e0)};}return{'type':'format','content':o(_0x4d4e48,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x385ef2['commandName']){const _0x352b69=_0x385ef2['commandParams'][0x0]['value'];return _0x352b69?{'type':'format','content':o(_0x4d4e48,'*Set\x20font\x20family:*\x20%0',_0x352b69)}:{'type':'format','content':o(_0x4d4e48,'*Reset\x20font\x20family*')};}if('fontColor'==_0x385ef2['commandName']){const _0x547be4=_0x385ef2['commandParams'][0x0]['value'];if(_0x547be4){const _0x132a85=_0x19c35e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5dc76e=>_0x5dc76e['model']==_0x547be4);let _0x30d899=_0x547be4,_0x1af5a5='';return _0x132a85&&(_0x30d899=_0x132a85['label'],_0x1af5a5=_0x528b9e(_0x30d899)['toLowerCase']()),{'type':'format','content':o(_0x4d4e48,'*Set\x20font\x20color:*\x20%0',_0x1af5a5)['trim'](),'color':{'value':_0x547be4,'title':_0x1af5a5||_0x30d899}};}return{'type':'format','content':o(_0x4d4e48,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x385ef2['commandName']){const _0x4b102b=_0x385ef2['commandParams'][0x0]['value'];if(_0x4b102b){const _0x552b23=_0x19c35e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xa0ba13=>_0xa0ba13['model']==_0x4b102b);let _0x547e1b=_0x4b102b,_0x4283cb='';return _0x552b23&&(_0x547e1b=_0x552b23['label'],_0x4283cb=_0x528b9e(_0x547e1b)['toLowerCase']()),{'type':'format','content':o(_0x4d4e48,'*Set\x20font\x20background\x20color:*\x20%0',_0x4283cb)['trim'](),'color':{'value':_0x4b102b,'title':_0x4283cb||_0x547e1b}};}return{'type':'format','content':o(_0x4d4e48,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x579de7{['afterInit'](){const _0x57ffe7=this['editor'],_0x27fa79=_0x57ffe7['plugins']['get']('TrackChangesEditing'),_0x4411ad=_0x57ffe7['commands']['get']('copyFormat'),_0x1668fc=_0x57ffe7['commands']['get']('pasteFormat');_0x4411ad&&_0x1668fc&&(_0x27fa79['enableDefaultAttributesIntegration']('pasteFormat'),_0x27fa79['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3d9953=this['editor'],_0x280be2=_0x3d9953['locale'];_0x3d9953['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31523a=>{if('formatBlock'!=_0x31523a['type']&&'formatInline'!=_0x31523a['type'])return;const {data:_0x2cb1ee}=_0x31523a;if(_0x2cb1ee&&'pasteFormat'===_0x2cb1ee['commandName']){const _0x5ea53d=[],_0x12ceb8=_0x2cb1ee['commandParams'][0x0];for(const [_0x263ff0,_0x9a6a38]of Object['entries'](_0x12ceb8))_0x5ea53d['push'](so(_0x3d9953,_0x263ff0,_0x9a6a38));return _0x5ea53d['length']?{'type':'format','content':o(_0x280be2,'*Set\x20format\x20to:*\x20%0',_0x5ea53d['join'](',\x20'))}:{'type':'format','content':o(_0x280be2,'*Remove\x20all\x20formatting*')};}});}}function so(_0x31c6ae,_0x462388,_0x1f523f){const _0x3fe8d1=_0x31c6ae['locale']['t'],_0x27f141=_0x462388['split'](/(?=[A-Z])/)['join']('\x20'),_0x429810=_0x3fe8d1(_0x27f141['charAt'](0x0)['toUpperCase']()+_0x27f141['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1f523f)return _0x429810;if('fontColor'===_0x462388||'fontBackgroundColor'===_0x462388){const _0x254cee=_0x19c35e(_0x31c6ae['config']['get']('fontColor.colors'))['find'](_0x3635fb=>_0x3635fb['model']==_0x1f523f);return _0x429810+'\x20('+(_0x254cee?_0x3fe8d1(_0x254cee['label'])['toLowerCase']():_0x1f523f)+')';}if('fontSize'===_0x462388&&isNaN(parseFloat(_0x1f523f))){const _0x360f00=_0x31c6ae['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x31c6ae['config']['get']('fontSize.options'))['find'](_0x5ed066=>_0x5ed066['model']==_0x1f523f);return _0x429810+'\x20('+(_0x360f00?_0x3fe8d1(_0x360f00['title'])['toLowerCase']():_0x1f523f)+')';}return _0x429810+'\x20('+_0x1f523f+')';}class nt extends _0x579de7{['_headingOptions'];['afterInit'](){const _0x5d65d3=this['editor'];if(!_0x5d65d3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5d65d3['config']['get']('heading.options');const _0x2e63d=_0x5d65d3['locale'],_0x2f0316=_0x5d65d3['plugins']['get']('TrackChangesEditing');_0x2f0316['enableDefaultAttributesIntegration']('heading');for(const _0x46386e of this['_headingOptions'])'paragraph'!=_0x46386e['model']&&_0x2f0316['descriptionFactory']['registerElementLabel'](_0x46386e['model'],_0x410448=>{const _0x1a38ef=this['_getHeadingLevel'](_0x46386e['model']);return null!==_0x1a38ef?_0x4f0e97(_0x410448,_0x1a38ef):_0x514086(_0x410448,_0x46386e['title']);});function _0x4f0e97(_0x47ea47,_0x235224){return o(_0x2e63d,'ELEMENT_HEADING',[_0x47ea47,_0x235224]);}function _0x514086(_0x2e44b6,_0x204a99){return o(_0x2e63d,'ELEMENT_HEADING_CUSTOM',[_0x2e44b6,_0x204a99]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f2734=this['editor'],_0x41f600=_0x3f2734['locale'];function _0x50df12(_0x399af6,_0x2ae914){return o(_0x41f600,'ELEMENT_HEADING_CUSTOM',[_0x399af6,_0x2ae914]);}_0x3f2734['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4abc6b=>{if('formatBlock'!=_0x4abc6b['type'])return;const {data:_0x29780f}=_0x4abc6b;if(_0x29780f&&'heading'==_0x29780f['commandName']){const _0x416293=_0x29780f['commandParams'][0x0]['value'],_0x2022ad=this['_getHeadingLevel'](_0x416293);if(null!==_0x2022ad)return{'type':'format','content':o(_0x41f600,'*Change\x20to:*\x20%0',(_0x3b15cd=0x1,_0x30ae11=_0x2022ad,o(_0x41f600,'ELEMENT_HEADING',[_0x3b15cd,_0x30ae11])))};const _0x2600e4=this['_headingOptions']['find'](_0x10ee86=>_0x10ee86['model']===_0x416293)['title'];return{'type':'format','content':o(_0x41f600,'*Change\x20to:*\x20%0',_0x50df12(0x1,_0x2600e4))};}var _0x3b15cd,_0x30ae11;});}['_getHeadingLevel'](_0x316cb5){const _0x877eda=_0x316cb5['match'](/^heading(\d+)/);if(_0x877eda)return _0x877eda[0x1];const _0x10f41f=this['_headingOptions']?.['find'](_0x426a47=>_0x426a47['model']==_0x316cb5);if(_0x10f41f&&_0x10f41f['view']){const _0x8270a5=_0x10f41f['view'],_0x526e56=(_0x8270a5['name']??_0x8270a5)['match'](/^h(\d+)/);if(_0x526e56)return _0x526e56[0x1];}return null;}}class it extends _0x579de7{['afterInit'](){const _0x2f0dcc=this['editor'];if(!_0x2f0dcc['plugins']['has']('HighlightEditing'))return;const _0x13a7c4=_0x2f0dcc['plugins']['get']('TrackChangesEditing'),_0x32dd9a=_0x2f0dcc['locale'];_0x13a7c4['enableDefaultAttributesIntegration']('highlight'),_0x13a7c4['registerInlineAttribute']('highlight'),_0x13a7c4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x32dd9a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x485e7e=this['editor'],_0x4c459e=_0x485e7e['locale'];_0x485e7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc65612=>{if('formatInline'!=_0xc65612['type'])return;const {data:_0x21823e}=_0xc65612;if(_0x21823e&&'highlight'==_0x21823e['commandName']){const _0x5b9ac9=_0x4c459e['t'],_0x181372=_0x21823e['commandParams'][0x0]['value'];if(_0x181372){const _0x9e41ff=_0x485e7e['config']['get']('highlight.options')['find'](_0x279915=>_0x279915['model']==_0x181372),_0x2a96ff=_0x5b9ac9(_0x9e41ff['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c459e,'*Set\x20highlight:*\x20%0',_0x2a96ff),'color':{'value':_0x9e41ff['color'],'title':_0x9e41ff['title']}};}return{'type':'format','content':o(_0x4c459e,'*Remove\x20highlight*',o(_0x4c459e,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x579de7{['afterInit'](){const _0x2943da=this['editor'];if(!_0x2943da['plugins']['has']('HorizontalLineEditing'))return;_0x2943da['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1ea714=_0x2943da['plugins']['get']('TrackChangesEditing'),_0x41a33f=_0x2943da['locale'];_0x1ea714['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4d4302=>o(_0x41a33f,'ELEMENT_HORIZONTAL_LINE',_0x4d4302)),_0x2943da['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x1f01fe,{writer:_0x262222,options:_0x54c6a7})=>{if(!_0x54c6a7['showSuggestionHighlights'])return null;const _0x2c9c56=_0x262222['createContainerElement']('div'),_0x3452af=_0x262222['createEmptyElement']('hr');return _0x262222['addClass']('ck-horizontal-line',_0x2c9c56),_0x262222['insert'](_0x262222['createPositionAt'](_0x2c9c56,0x0),_0x3452af),_0x2c9c56;},'converterPriority':'high'});}}class st extends _0x579de7{['afterInit'](){const _0x5b705a=this['editor'];if(!_0x5b705a['plugins']['has']('HtmlEmbed'))return;const _0x422a1f=_0x5b705a['plugins']['get']('TrackChangesEditing'),_0x3682a6=_0x5b705a['locale'];_0x422a1f['descriptionFactory']['registerElementLabel']('rawHtml',_0x523681=>o(_0x3682a6,'ELEMENT_HTML_EMBED',_0x523681)),_0x422a1f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x422a1f['registerBlockAttribute']('value'),_0x422a1f['descriptionFactory']['registerDescriptionCallback'](_0x4ef504=>{if('attribute'!=_0x4ef504['type'])return;const {data:_0x5e6fd4}=_0x4ef504;if(_0x5e6fd4&&'value'==_0x5e6fd4['key']&&_0x4ef504['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x9391f4=o(_0x3682a6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3682a6,'*Change\x20%0\x20content*',_0x9391f4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x326bfd=this['editor'],_0x20a465=_0x326bfd['locale'];_0x326bfd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d0cda=>{if('formatBlock'!=_0x6d0cda['type'])return;const {data:_0x3c43c5}=_0x6d0cda;if(_0x3c43c5&&'htmlEmbed'==_0x3c43c5['commandName']){const _0xef5d97=o(_0x20a465,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x20a465,'*Change\x20%0\x20content*',_0xef5d97)};}});}}class ot extends _0x579de7{['afterInit'](){const _0x2102be=this['editor'];if(!_0x2102be['plugins']['has']('ImageEditing'))return;const _0x248b20=_0x2102be['plugins']['get']('TrackChangesEditing'),_0x2801aa=_0x2102be['plugins']['get']('ImageUtils'),_0x301877=_0x2102be['locale'];_0x248b20['enableCommand']('insertImage'),_0x248b20['descriptionFactory']['registerElementLabel']('imageBlock',_0x31f36c=>o(_0x301877,'ELEMENT_IMAGE',_0x31f36c)),_0x248b20['descriptionFactory']['registerElementLabel']('imageInline',_0xdf206d=>o(_0x301877,'ELEMENT_INLINE_IMAGE',_0xdf206d)),_0x248b20['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x301877,'ELEMENT_CAPTION')),_0x2102be['plugins']['has']('ImageUploadEditing')&&_0x248b20['enableCommand']('uploadImage'),_0x2102be['plugins']['has']('ImageBlockEditing')&&_0x2102be['plugins']['has']('ImageInlineEditing')&&(_0x248b20['enableCommand']('imageTypeInline',(_0x59d0de,_0x3f8db2)=>{const _0x17deb7=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']);_0x2102be['model']['change'](()=>{_0x248b20['markBlockFormat'](_0x17deb7,{'commandName':'imageTypeInline','commandParams':[_0x3f8db2]},[],'convertBlockImageToInline');});}),_0x248b20['enableCommand']('imageTypeBlock',(_0x17ea9e,_0x56646f)=>{_0x2102be['model']['change'](_0x539881=>{let _0x7f91db=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']),_0x4011b4=_0x539881['createRangeOn'](_0x7f91db);const _0x3f40fe=_0x3d6a4a['fromPosition'](_0x4011b4['start'],'toPrevious'),_0x15153f=_0x3d6a4a['fromPosition'](_0x4011b4['end'],'toNext');_0x248b20['forceDefaultExecution'](()=>_0x17ea9e(_0x56646f)),_0x7f91db=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']),_0x4011b4=_0x539881['createRangeOn'](_0x7f91db);const _0x4e7f32=_0x539881['createRange'](_0x3f40fe,_0x15153f);_0x3f40fe['detach'](),_0x15153f['detach'](),_0x248b20['markBlockFormat'](_0x7f91db,{'commandName':'imageTypeInline','commandParams':[_0x56646f]},[],'convertInlineImageToBlock'),_0x4e7f32['start']['isBefore'](_0x4011b4['start'])&&_0x248b20['markInsertion'](_0x539881['createRange'](_0x4e7f32['start'],_0x4011b4['start']),'convertInlineImageToBlock'),_0x4011b4['end']['isBefore'](_0x4e7f32['end'])&&_0x248b20['markInsertion'](_0x539881['createRange'](_0x4011b4['end'],_0x4e7f32['end']),'convertInlineImageToBlock');});}),_0x248b20['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x248b20['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x248b20['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x248b20['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x248b20['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x248b20['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5242c2])=>{const _0x3ded7b=_0x248b20['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x57eae2=_0x5242c2['start'],_0x31caf2=_0x5242c2['end'];const _0x1c85b1=_0x2102be['model']['schema']['getNearestSelectionRange'](_0x57eae2,'backward'),_0x4a9c9c=_0x2102be['model']['schema']['getNearestSelectionRange'](_0x31caf2,'forward');_0x1c85b1['isCollapsed']&&(_0x57eae2=_0x1c85b1['start']),_0x4a9c9c['isCollapsed']&&(_0x31caf2=_0x4a9c9c['end']),_0x3ded7b([_0x2102be['model']['createRange'](_0x57eae2,_0x31caf2)]);}),_0x248b20['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x289a89),_0x248b20['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x289a89)),_0x2102be['plugins']['has']('ImageCaptionEditing')&&(_0x248b20['enableCommand']('toggleImageCaption',(_0x4a9a90,_0x14e04e)=>{const _0x4d66a1=_0x2102be['plugins']['get']('ImageCaptionUtils');let _0x3922e2=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']),_0x217c82=_0x4d66a1['getCaptionFromImageModelElement'](_0x3922e2);_0x2102be['model']['change'](()=>{if(_0x217c82)return void _0x248b20['markDeletion'](_0x2102be['model']['createRangeOn'](_0x217c82));const _0x4cc84a=_0x2801aa['isBlockImage'](_0x3922e2);_0x4a9a90(_0x14e04e),_0x3922e2=_0x2801aa['getClosestSelectedImageElement'](_0x2102be['model']['document']['selection']),_0x217c82=_0x4d66a1['getCaptionFromImageModelElement'](_0x3922e2),_0x248b20['markInsertion'](_0x2102be['model']['createRangeOn'](_0x217c82),_0x4cc84a?null:'imageCaption');});}),_0x248b20['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x289a89));const _0x593ee7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3eb4d5(_0x48a97d,_0x5dd9e5){const _0x30a056=_0x593ee7['findIndex'](({type:_0x49af06,subType:_0x183986})=>_0x48a97d['type']==_0x49af06&&_0x48a97d['subType']==_0x183986),_0x5cac49=_0x593ee7['findIndex'](({type:_0x4ccffd,subType:_0x5c2acf})=>_0x5dd9e5['type']==_0x4ccffd&&_0x5dd9e5['subType']==_0x5c2acf);if(_0x30a056<0x0||_0x5cac49<0x0)return!0x1;const _0x470858=_0x48a97d['getFirstRange'](),_0xb1a9ce=_0x5dd9e5['getFirstRange']();if((0x0==_0x30a056||0x1==_0x30a056)&&0x2==_0x5cac49&&_0x470858['isIntersecting'](_0xb1a9ce))return!0x0;if(0x2==_0x30a056&&0x3==_0x5cac49){const _0x1d5dce=_0x248b20['_findSuggestions'](_0x470858,'insertion')['filter'](({suggestion:_0x112fbe,meta:_0x215cc3})=>_0x215cc3['isOwn']&&'convertInlineImageToBlock'==_0x112fbe['subType']);if(_0x1d5dce['length']>0x1&&_0xb1a9ce['end']['isEqual'](_0x470858['start']))return!0x0;if(0x1==_0x1d5dce['length']&&(_0x470858['start']['isEqual'](_0xb1a9ce['end'])||_0x470858['end']['isEqual'](_0xb1a9ce['start'])))return!0x0;}if(0x3==_0x30a056&&0x3==_0x5cac49&&_0x470858['start']['isBefore'](_0xb1a9ce['start'])){const _0x136769=_0x470858['end']['nodeAfter'],_0x2e4b4b=_0xb1a9ce['start']['nodeBefore'];return _0x2801aa['isBlockImage'](_0x136769)&&_0x136769===_0x2e4b4b;}return!0x1;}function _0x289a89(_0x19a5b7,_0x332326){return _0x3eb4d5(_0x19a5b7,_0x332326)?[_0x19a5b7,_0x332326]:_0x3eb4d5(_0x332326,_0x19a5b7)?[_0x332326,_0x19a5b7]:null;}_0x2102be['plugins']['has']('ImageResize')&&(_0x248b20['enableDefaultAttributesIntegration']('resizeImage'),_0x248b20['registerBlockAttribute']('resizedWidth'),_0x248b20['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x301877,'FORMAT_IMAGE_SIZE'))),_0x2102be['plugins']['has']('ImageTextAlternativeEditing')&&(_0x248b20['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x248b20['registerBlockAttribute']('alt')),_0x248b20['descriptionFactory']['registerDescriptionCallback'](_0xa96711=>{if(!!_0x593ee7['find'](({type:_0x3a991d,subType:_0x11f9ce})=>_0xa96711['type']==_0x3a991d&&_0xa96711['subType']==_0x11f9ce))return _0xa96711['previous']?{}:void 0x0;}),_0x248b20['descriptionFactory']['registerDescriptionCallback'](_0x542e47=>{if('insertion'==_0x542e47['type']||'deletion'==_0x542e47['type']){const _0x3e4bc6=_0x542e47['getContainedElement']();if(_0x3e4bc6&&_0x3e4bc6['is']('element','caption'))return{'type':'insertion'==_0x542e47['type']?'addObject':'removeObject','element':_0x3e4bc6,'quantity':0x1};}}),_0x248b20['descriptionFactory']['registerDescriptionCallback'](_0x450651=>'formatBlock'==_0x450651['type']&&'convertInlineImageToBlock'==_0x450651['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x450651['type']&&'convertBlockImageToInline'==_0x450651['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x248b20['descriptionFactory']['registerDescriptionCallback'](_0x4e7809=>{if('attribute'!=_0x4e7809['type'])return;const {data:_0x10c3c3}=_0x4e7809;if(!_0x10c3c3||'alt'!=_0x10c3c3['key'])return;const _0x1134e8=_0x10c3c3['newValue'];return _0x1134e8?{'type':'format','content':o(_0x301877,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1134e8+'\x22')}:{'type':'format','content':o(_0x301877,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cf59d=this['editor'],_0x3c12c4=_0x4cf59d['locale'];_0x4cf59d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a9171=>{if('formatBlock'!=_0x2a9171['type']&&'formatInline'!=_0x2a9171['type'])return;const {data:_0x372021}=_0x2a9171;if(_0x372021){if('imageTextAlternative'==_0x372021['commandName']){const _0x33f862=_0x372021['commandParams'][0x0]['newValue'];return _0x33f862?{'type':'format','content':o(_0x3c12c4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x33f862+'\x22')}:{'type':'format','content':o(_0x3c12c4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x372021['commandName']){const _0x33bdf6=_0x372021['commandParams'][0x0]['width'];return _0x33bdf6?{'type':'format','content':o(_0x3c12c4,'*Set\x20image\x20width:*\x20%0',_0x33bdf6)}:{'type':'format','content':o(_0x3c12c4,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x482312=this['editor']['locale'],_0x4c0091=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c0091['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4c0091['registerBlockAttribute']('src'),_0x4c0091['descriptionFactory']['registerDescriptionCallback'](_0x51d7eb=>{if('attribute'!=_0x51d7eb['type'])return;const {data:_0x38e045}=_0x51d7eb;return _0x38e045&&'src'==_0x38e045['key']?_0x38e045['newValue']&&_0x38e045['oldValue']?{'type':'format','content':o(_0x482312,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x32fc8b=this['editor']['plugins']['get']('TrackChangesEditing');_0x32fc8b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x32fc8b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32fc8b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x32fc8b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3195d5=this['editor'],_0xaca96f=_0x3195d5['locale'];_0x3195d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414ce2=>{if('formatBlock'!=_0x414ce2['type']&&'formatInline'!=_0x414ce2['type'])return;const {data:_0x351f18}=_0x414ce2;if(!_0x351f18||'replaceImageSource'!=_0x351f18['commandName'])return;return{'type':'format','content':o(_0xaca96f,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x579de7{['afterInit'](){const _0x519672=this['editor'];if(!_0x519672['plugins']['has']('ImageStyleEditing'))return;const _0x169c8b=_0x519672['plugins']['get']('TrackChangesEditing'),_0x21b507=_0x519672['plugins']['get']('ImageUtils'),_0x36355b={};_0x169c8b['enableCommand']('imageStyle',(_0x2d363b,_0x4a10fc)=>{const _0x4e7493=_0x519672['plugins']['get']('Users')['me'],_0x37e13a=_0x519672['commands']['get']('imageStyle');let _0x267c08=_0x21b507['getClosestSelectedImageElement'](_0x519672['model']['document']['selection']),_0x30beff=_0x519672['model']['createRangeOn'](_0x267c08),_0x26a249=_0x37e13a['value'];if(_0x26a249==_0x4a10fc['value'])return;const _0x1e5531={'commandName':'imageStyle','commandParams':[_0x4a10fc],'formatGroupId':_0x303cc5()};_0x519672['model']['change'](()=>{if(_0x169c8b['getSuggestions']()['filter'](_0x1508d1=>_0x1508d1['isInContent']&&_0x4e7493==_0x1508d1['author']&&('formatBlock'==_0x1508d1['type']||'formatInline'==_0x1508d1['type'])&&('imageStylePreApply'==_0x1508d1['subType']||'imageStylePostApply'==_0x1508d1['subType'])&&_0x1508d1['getFirstRange']()['isEqual'](_0x30beff))['forEach'](_0x15fd5d=>_0x169c8b['discardSuggestion'](_0x15fd5d['head'])),_0x267c08=_0x21b507['getClosestSelectedImageElement'](_0x519672['model']['document']['selection']),_0x30beff=_0x519672['model']['createRangeOn'](_0x267c08),_0x37e13a['refresh'](),_0x519672['commands']['get']('imageTypeInline')['refresh'](),_0x519672['commands']['get']('imageTypeBlock')['refresh'](),_0x26a249=_0x37e13a['value'],_0x26a249!=_0x4a10fc['value'])return _0x21b507['isInlineImage'](_0x267c08)&&_0x37e13a['shouldConvertImageType'](_0x4a10fc['value'],_0x267c08)?(_0x2d363b({..._0x4a10fc,'setImageSizes':!0x1}),_0x267c08=_0x21b507['getClosestSelectedImageElement'](_0x519672['model']['document']['selection']),void _0x169c8b['markBlockFormat'](_0x267c08,{..._0x1e5531,'commandReversedParams':[{'value':_0x26a249||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x21b507['isBlockImage'](_0x267c08)?_0x169c8b['markBlockFormat'](_0x267c08,_0x1e5531,[],'imageStylePostApply'):_0x169c8b['markInlineFormat'](_0x30beff,_0x1e5531,'imageStylePostApply'));});});for(const _0x403f76 of _0x519672['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x36355b[_0x403f76['name']]=_0x403f76['title']['toLowerCase']();_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x47f4aa])=>{_0x21b507['setImageNaturalSizeAttributes'](_0x47f4aa['getContainedElement']());}),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3b56a8,_0x2750f4)=>{_0x169c8b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3b56a8,{'commandName':_0x2750f4['commandName'],'commandParams':_0x2750f4['commandReversedParams']});}),_0x169c8b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2d5c8d,_0x328667){if(_0x2e0689(_0x2d5c8d,_0x328667))return[_0x2d5c8d,_0x328667];if(_0x2e0689(_0x328667,_0x2d5c8d))return[_0x328667,_0x2d5c8d];return null;});const _0x424232=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2e0689(_0x38522,_0x1784f5){const _0x5b6fd4=_0x424232['findIndex'](({type:_0x5b3d16,subType:_0x353ef3})=>_0x38522['type']==_0x5b3d16&&_0x38522['subType']==_0x353ef3),_0x8828d5=_0x424232['findIndex'](({type:_0x36c766,subType:_0xd66c83})=>_0x1784f5['type']==_0x36c766&&_0x1784f5['subType']==_0xd66c83);if(_0x5b6fd4<0x0||_0x8828d5<0x0)return!0x1;const _0x11e368=_0x38522['getFirstRange'](),_0x2b9c7d=_0x1784f5['getFirstRange']();if((0x0==_0x5b6fd4||0x1==_0x5b6fd4)&&0x2==_0x8828d5&&_0x11e368['isIntersecting'](_0x2b9c7d))return!0x0;if(0x2==_0x5b6fd4&&0x3==_0x8828d5){const _0x163847=_0x169c8b['_findSuggestions'](_0x11e368,'insertion')['filter'](({suggestion:_0x5b9e31,meta:_0x566b97})=>_0x566b97['isOwn']&&'convertInlineImageToBlock'==_0x5b9e31['subType']);if(_0x163847['length']>0x1&&_0x2b9c7d['end']['isEqual'](_0x11e368['start']))return!0x0;if(0x1==_0x163847['length']&&(_0x11e368['start']['isEqual'](_0x2b9c7d['end'])||_0x11e368['end']['isEqual'](_0x2b9c7d['start'])))return!0x0;}if(0x3==_0x5b6fd4&&0x3==_0x8828d5&&_0x11e368['start']['isBefore'](_0x2b9c7d['start'])){const _0xdff2d7=_0x11e368['end']['nodeAfter'],_0x410c28=_0x2b9c7d['start']['nodeBefore'];return _0x21b507['isBlockImage'](_0xdff2d7)&&_0xdff2d7===_0x410c28;}return!0x1;}_0x519672['model']['document']['registerPostFixer'](()=>{let _0x5bbbb3=!0x1;const _0x2f940d=Array['from'](_0x519672['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d7cd2,data:_0x1a78fd}of _0x2f940d){const {group:_0x42fe9b,type:_0x33acca,subType:_0x573591,id:_0x7f717d}=_0x169c8b['_splitMarkerName'](_0x4d7cd2);if('suggestion'==_0x42fe9b&&_0x169c8b['hasSuggestion'](_0x7f717d)){if('formatBlock'==_0x33acca&&('imageStylePreApply'==_0x573591||'imageStylePostApply'==_0x573591)){const _0x2ad58f=_0x169c8b['getSuggestion'](_0x7f717d);if(_0x1a78fd['newRange']){const _0x215565=_0x2ad58f['getFirstRange']()['getContainedElement']();if(_0x21b507['isBlockImage'](_0x215565))continue;_0x169c8b['discardSuggestion'](_0x2ad58f),_0x5bbbb3=!0x0;}}if('insertion'==_0x33acca&&'imageCaption'==_0x573591&&!_0x1a78fd['newRange']){const _0x19bda7=_0x169c8b['getSuggestion'](_0x7f717d);_0x19bda7['next']&&_0x19bda7['next']['isInContent']&&(_0x169c8b['discardSuggestion'](_0x19bda7['next']),_0x5bbbb3=!0x0);}}}return _0x5bbbb3;}),this['_registerLegacyDescription'](_0x36355b);}['_registerLegacyDescription'](_0x1398e7){const _0x5d3261=this['editor'],_0x306652=_0x5d3261['locale'];_0x5d3261['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b2e09=>{if('formatBlock'!=_0x1b2e09['type']&&'formatInline'!=_0x1b2e09['type'])return;const {data:_0x3c7e49}=_0x1b2e09;if(!_0x3c7e49||'imageStyle'!=_0x3c7e49['commandName'])return;const _0x46b3a6=_0x3c7e49['commandParams'][0x0]['value'];return _0x3f76cc('side'===_0x46b3a6?o(_0x306652,'FORMAT_SIDE_IMAGE'):_0x1398e7[_0x46b3a6]||_0x46b3a6);function _0x3f76cc(_0x1763f4){return{'type':'format','content':o(_0x306652,'*Format:*\x20%0',_0x1763f4)};}});}}class ct extends _0x579de7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x36c340){super(_0x36c340),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2bf7d2=this['editor'],_0x10d2e8=_0x2bf7d2['commands']['get']('importWord'),_0xbd0568=_0x2bf7d2['commands']['get']('trackChanges');_0x10d2e8&&(_0x10d2e8['on']('execute',(_0x449ad4,[,_0x4e04ff])=>{this['_trackChangesValueDuringImport']=_0xbd0568['value'],_0x4e04ff['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x10d2e8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x10d2e8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xbd0568['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2bf7d2['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x400444,_0x4f9b6a){const {suggestions:_0x35e1cd}=_0x4f9b6a,_0x25f720=this['editor']['commands']['get']('trackChanges'),_0xbf0392=_0x25f720['value'];this['_trackChangesValueDuringImport']!==_0xbf0392&&(_0x25f720['execute'](),this['_trackChangesExecuted']=!0x0),_0x35e1cd&&_0x35e1cd['forEach'](({id:_0x991ff2,type:_0x1aa074,author:_0x156909,created_at:_0x120051})=>{const _0x3cf88c={'id':_0x991ff2,'type':_0x1aa074,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x156909,'createdAt':_0x120051?new Date(_0x120051):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3cf88c);});}}class ut extends _0x579de7{['afterInit'](){const _0x2b90a0=this['editor'],_0x1fdb29=_0x2b90a0['plugins']['get']('TrackChangesEditing');if(_0x2b90a0['plugins']['has']('IndentEditing')&&(_0x1fdb29['enableCommand']('indent'),_0x1fdb29['enableCommand']('outdent')),_0x2b90a0['plugins']['has']('IndentBlock')){for(const _0x4b7147 of['indentBlock','outdentBlock'])_0x1fdb29['enableDefaultAttributesIntegration'](_0x4b7147);}const _0x5bbc0d=_0x2b90a0['locale'];_0x1fdb29['registerBlockAttribute']('blockIndent'),_0x1fdb29['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5bbc0d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x412cdf=this['editor'],_0x346a2c=_0x412cdf['locale'],_0x1743a2=_0x412cdf['plugins']['get']('TrackChangesEditing');_0x1743a2['descriptionFactory']['registerDescriptionCallback'](_0x56cf1a=>{if('formatBlock'!=_0x56cf1a['type'])return;const {data:_0x3c7ba0}=_0x56cf1a;if(!_0x3c7ba0)return;if('indentBlock'!=_0x3c7ba0['commandName']&&'outdentBlock'!=_0x3c7ba0['commandName'])return;const _0x2ef085=_0x56cf1a['getItems']()[0x0],_0x2fbdae=_0x1743a2['descriptionFactory']['getItemLabel'](_0x2ef085);return'indentBlock'==_0x3c7ba0['commandName']?{'type':'format','content':o(_0x346a2c,'*Indent:*\x20%0',_0x2fbdae)}:'outdentBlock'==_0x3c7ba0['commandName']?{'type':'format','content':o(_0x346a2c,'*Outdent:*\x20%0',_0x2fbdae)}:void 0x0;});}}class ft extends _0x579de7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x579de7{['afterInit'](){const _0x5c651c=this['editor'];if(!_0x5c651c['plugins']['has']('LinkEditing'))return;const _0x52f964=_0x5c651c['plugins']['get']('TrackChangesEditing'),_0x768c9b=_0x5c651c['commands']['get']('link');_0x52f964['enableDefaultAttributesIntegration']('link'),_0x52f964['enableDefaultAttributesIntegration']('unlink'),_0x52f964['registerInlineAttribute']('linkHref');for(const _0x340d8b of _0x768c9b['manualDecorators'])_0x52f964['registerInlineAttribute'](_0x340d8b['id']),_0x52f964['descriptionFactory']['registerAttributeLabel'](_0x340d8b['id'],'link\x20('+_0x340d8b['label']['toLowerCase']()+')');_0x52f964['descriptionFactory']['registerDescriptionCallback'](_0x48fd8e=>{if('attribute'!=_0x48fd8e['type'])return;const {data:_0x14aec5}=_0x48fd8e;if(!_0x14aec5||'linkHref'!=_0x14aec5['key'])return;const _0x183d32=_0x14aec5['newValue'],_0x3892e3=_0x5c651c['locale'];return{'type':'format','content':null==_0x183d32?o(_0x3892e3,'*Remove\x20link*'):o(_0x3892e3,'*Set\x20link:*\x20%0','\x22'+_0x183d32+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f1558=this['editor'],_0x2a7830=_0x1f1558['locale'];_0x1f1558['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cae48=>{if('formatInline'!=_0x2cae48['type'])return;const {data:_0x4d617c}=_0x2cae48;if(_0x4d617c){if('link'==_0x4d617c['commandName']){const _0x3d9db4=_0x4d617c['commandParams'][0x0];return{'type':'format','content':o(_0x2a7830,'*Set\x20link:*\x20%0','\x22'+_0x3d9db4+'\x22')};}return'unlink'==_0x4d617c['commandName']?{'type':'format','content':o(_0x2a7830,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x579de7{['afterInit'](){const _0x59fcea=this['editor'],_0x51fd13=_0x59fcea['locale'];if(!_0x59fcea['plugins']['has']('LegacyListEditing'))return;const _0x5c554a=_0x59fcea['plugins']['get']('TrackChangesEditing'),_0x8b7950=_0x59fcea['plugins']['has']('LegacyTodoListEditing');function _0x599c4e(_0xdb7136){return()=>{const _0x583baf=_0x59fcea['model']['document']['selection'],_0x5c3de1=_0x59fcea['commands']['get'](_0xdb7136);if(_0x5c3de1['value'])return void _0x59fcea['execute']('paragraph',{});const _0x31a3ae=_0xdb7136['slice'](0x0,-0x4),_0x58c688=function(_0x13e1e9,_0x5a7d11,_0x58776c){let _0x2f1f35=Array['from'](_0x13e1e9)['filter'](_0x4b313d=>function(_0xb16c31,_0xd0b87){return _0xd0b87['checkChild'](_0xb16c31['parent'],'listItem')&&!_0xd0b87['isObject'](_0xb16c31);}(_0x4b313d,_0x58776c));_0x2f1f35=_0x2f1f35['filter'](_0x31ebee=>!_0x31ebee['is']('element','listItem')||_0x31ebee['getAttribute']('listType')!=_0x5a7d11);const _0x35028a=new Set();for(const _0xe2fce5 of _0x2f1f35)_0xe2fce5['is']('element','listItem')?_0x35028a['add'](Le(_0xe2fce5)):_0x35028a['add'](_0xe2fce5);return Array['from'](_0x35028a);}(_0x583baf['getSelectedBlocks'](),_0x31a3ae,_0x59fcea['model']['schema']);_0x59fcea['model']['change'](()=>{for(const _0x2b5557 of _0x58c688)_0x5c554a['markBlockFormat'](_0x2b5557,{'commandName':_0xdb7136,'commandParams':[{'forceValue':!_0x5c3de1['value']}],'formatGroupId':'blockName'},Ee(_0x2b5557));});};}function _0x506f43(_0x104503){return()=>{const _0xee33b6=function(_0x38e3d9){let _0x2263fe=Array['from'](_0x38e3d9);const _0x1dfae3=_0x2263fe['findIndex'](_0x32e7a1=>'listItem'!=_0x32e7a1['name']);return _0x1dfae3>-0x1&&(_0x2263fe=_0x2263fe['slice'](0x0,_0x1dfae3)),_0x2263fe;}(_0x59fcea['model']['document']['selection']['getSelectedBlocks']()),_0x465e36=_0x59fcea['model']['createRange'](_0x59fcea['model']['createPositionAt'](_0xee33b6[0x0],'before'),_0x59fcea['model']['createPositionAt'](_0xee33b6[_0xee33b6['length']-0x1],'end'));_0x59fcea['model']['change'](()=>{_0x5c554a['markBlockFormat'](_0x465e36,{'commandName':_0x104503,'commandParams':[],'formatGroupId':'listIndent'},function(_0x58f541){const _0x3cdb49=new Set();for(const _0x5e4227 of _0x58f541){let _0x5ae8c7=_0x5e4227['nextSibling'];for(;_0x5ae8c7&&_0x5ae8c7['getAttribute']('listIndent')>_0x5e4227['getAttribute']('listIndent');)_0x3cdb49['add'](_0x5ae8c7),_0x5ae8c7=_0x5ae8c7['nextSibling'];}return Array['from'](_0x3cdb49);}(_0xee33b6));});};}_0x5c554a['enableCommand']('numberedList',_0x599c4e('numberedList')),_0x5c554a['enableCommand']('bulletedList',_0x599c4e('bulletedList')),_0x8b7950&&_0x5c554a['enableCommand']('todoList',_0x599c4e('todoList')),_0x5c554a['enableCommand']('indentList',_0x506f43('indentList')),_0x5c554a['enableCommand']('outdentList',_0x506f43('outdentList')),_0x8b7950&&_0x5c554a['enableCommand']('checkTodoList',()=>{const _0x36d1d0=_0x59fcea['commands']['get']('checkTodoList'),_0x1fcec7=Array['from'](_0x36d1d0['_selectedElements']);_0x1fcec7['filter'](_0x2217a2=>_0x2217a2['getAttribute']('todoListChecked')!=_0x36d1d0['value']),_0x59fcea['model']['change'](()=>{for(const _0x235cc1 of _0x1fcec7)_0x5c554a['markBlockFormat'](_0x235cc1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x36d1d0['value']}]});});}),_0x5c554a['descriptionFactory']['registerElementLabel']('listItem',_0x3296d3=>o(_0x51fd13,'ELEMENT_LIST_ITEM',_0x3296d3)),_0x5c554a['descriptionFactory']['registerDescriptionCallback'](_0x2db6c5=>{if('formatBlock'!=_0x2db6c5['type']&&'formatInline'!=_0x2db6c5['type'])return;const {data:_0x406f1f}=_0x2db6c5;if(_0x406f1f){if('numberedList'==_0x406f1f['commandName']||'bulletedList'==_0x406f1f['commandName']||'todoList'==_0x406f1f['commandName'])switch(_0x406f1f['commandName']['replace']('List','')){case'bulleted':return _0x15b245(o(_0x51fd13,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15b245(o(_0x51fd13,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15b245(o(_0x51fd13,'ELEMENT_TODO_LIST'));}if('indentList'==_0x406f1f['commandName'])return{'type':'format','content':o(_0x51fd13,'*Indent:*\x20%0',o(_0x51fd13,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x406f1f['commandName'])return{'type':'format','content':o(_0x51fd13,'*Outdent:*\x20%0',o(_0x51fd13,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x406f1f['commandName'])return _0x406f1f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x51fd13,'*Check\x20item*')}:{'type':'format','content':o(_0x51fd13,'*Uncheck\x20item*')};}function _0x15b245(_0x555919){return{'type':'format','content':o(_0x51fd13,'*Change\x20to:*\x20%0',_0x555919)};}});}}function Le(_0x30c070){const _0x116b7e=_0x30c070['getAttribute']('listIndent');if(0x0==_0x116b7e)return _0x30c070;let _0x467458=_0x30c070;for(;_0x30c070['previousSibling']&&_0x30c070['previousSibling']['is']('element','listItem');){const _0x5d7683=_0x30c070['previousSibling']['getAttribute']('listIndent');if(_0x5d7683==_0x116b7e)_0x467458=_0x30c070['previousSibling'];else{if(_0x5d7683<_0x116b7e)break;}_0x30c070=_0x30c070['previousSibling'];}return _0x467458;}function Ee(_0x1e22a2){const _0x5d86e9=[];if(_0x1e22a2['is']('element','listItem')&&_0x1e22a2['getAttribute']('listIndent')>0x0){let _0x4ff374=_0x1e22a2['nextSibling'];for(;_0x4ff374&&'listItem'==_0x4ff374['name']&&_0x4ff374['getAttribute']('listIndent')==_0x1e22a2['getAttribute']('listIndent');)_0x5d86e9['push'](_0x4ff374),_0x4ff374=_0x4ff374['nextSibling'];}return _0x5d86e9;}class Q extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2f0f69=this['editor']['config']['get']('list.properties'),_0x38d82e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f0f69['styles']&&_0x38d82e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2f0f69['reversed']&&_0x38d82e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2f0f69['startIndex']&&_0x38d82e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x38d82e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xe9e919,_0x53b177={}){const _0x953a9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c7f41=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x953a9b['markMultiRangeBlockFormat'](_0x3c7f41,{'commandName':'listStyle','commandParams':[{'type':_0x53b177['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x386826,_0x5c153d={}){const _0x3a6cf1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x180253=this['_getSuggestionBlocks'](_0x50f82e=>_0x50f82e['is']('element','listItem')&&'numbered'===_0x50f82e['getAttribute']('listType'));if(_0x180253['length']<0x1)return;const _0x185495=_0x180253['map'](_0x103cb5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x103cb5,'before'),this['editor']['model']['createPositionAt'](_0x103cb5,0x0)));this['editor']['model']['change'](()=>{_0x3a6cf1['markMultiRangeBlockFormat'](_0x185495,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c153d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x147301,_0x211ba3={}){const _0x4c13e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5357ab=this['_getSuggestionBlocks'](_0x3af212=>_0x3af212['is']('element','listItem')&&'numbered'===_0x3af212['getAttribute']('listType'));if(_0x5357ab['length']<0x1)return;const _0x4dade7=_0x5357ab['map'](_0x596902=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x596902,'before'),this['editor']['model']['createPositionAt'](_0x596902,0x0)));this['editor']['model']['change'](()=>{_0x4c13e0['markMultiRangeBlockFormat'](_0x4dade7,{'commandName':'listStart','commandParams':[{'startIndex':_0x211ba3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3348cf){if('formatBlock'!=_0x3348cf['type']&&'formatInline'!=_0x3348cf['type'])return;const _0x43eb73=this['editor']['locale'],{data:_0x206116}=_0x3348cf;if(!_0x206116)return;let _0x388c29,_0x3db304;switch(_0x206116['commandName']){case'listStyle':_0x388c29='*Change\x20to:*\x20%0',_0x3db304={'type':'format','content':o(_0x43eb73,_0x388c29,o(_0x43eb73,this['_getTranslationKeyForListStyle'](_0x206116['commandParams'][0x0]['type'])))};break;case'listReversed':_0x388c29=_0x206116['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3db304={'type':'format','content':o(_0x43eb73,_0x388c29)};break;case'listStart':_0x388c29='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3db304={'type':'format','content':o(_0x43eb73,_0x388c29,_0x206116['commandParams'][0x0]['startIndex'])};}return _0x3db304;}['_getSuggestionBlocksForListStyle'](){const _0xa70435=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c9cb8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3c9cb8[0x0]?.['is']('element','listItem')&&_0x3c9cb8['unshift'](..._0xa70435['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3c9cb8[_0x3c9cb8['length']-0x1]?.['is']('element','listItem')&&_0x3c9cb8['push'](..._0xa70435['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3c9cb8=[...new Set(_0x3c9cb8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3c9cb8=_0x3c9cb8['filter'](_0x443088=>_0x443088['is']('element','listItem'))),_0x3c9cb8;}['_getSuggestionBlocks'](_0x1e32ab){const _0x34ccd6=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ae9b6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1e32ab)['map'](_0x1dc088=>{const _0x45a248=this['editor']['model']['createPositionAt'](_0x1dc088,0x0);return[..._0x34ccd6['getSiblingNodes'](_0x45a248,'backward'),..._0x34ccd6['getSiblingNodes'](_0x45a248,'forward')];})['flat']();return _0x3ae9b6=[...new Set(_0x3ae9b6)],_0x3ae9b6;}['_getTranslationKeyForListStyle'](_0x5d2f18){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5d2f18)||'default')['toUpperCase']()+'_LIST_'+_0x5d2f18['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x579de7{['afterInit'](){const _0x336a28=this['editor'];if(!_0x336a28['plugins']['has']('MediaEmbedEditing'))return;const _0x5702a5=_0x336a28['plugins']['get']('TrackChangesEditing'),_0x5b6d2a=_0x336a28['locale'];_0x5702a5['enableCommand']('mediaEmbed'),_0x5702a5['descriptionFactory']['registerElementLabel']('media',_0x3c52e8=>o(_0x5b6d2a,'ELEMENT_MEDIA',_0x3c52e8)),_0x336a28['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24ef61,{writer:_0x4b2a2c,options:_0xba7f54})=>{if(_0xba7f54['showSuggestionHighlights'])return _0x4b2a2c['createEmptyElement']('div');},'converterPriority':'high'}),_0x336a28['data']['downcastDispatcher']['on']('attribute:url:media',(_0x493282,_0x1917d8,_0x36d695)=>{_0x36d695['options']['showSuggestionHighlights']&&_0x493282['stop']();},{'priority':'high'});}}class mt extends _0x579de7{['afterInit'](){const _0xfb6099=this['editor'];_0xfb6099['plugins']['has']('MentionEditing')&&_0xfb6099['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x579de7{['afterInit'](){const _0x8bb664=this['editor'];if(!_0x8bb664['plugins']['has']('MergeFieldsEditing'))return;_0x8bb664['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x8bb664['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x8b2ecb=_0x8bb664['plugins']['get']('TrackChangesEditing'),_0x4c6bd9=_0x8bb664['locale'];_0x8b2ecb['descriptionFactory']['registerElementLabel']('mergeField',_0x284cf1=>o(_0x4c6bd9,'ELEMENT_MERGE_FIELD',_0x284cf1)),_0x8b2ecb['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xd20855=>o(_0x4c6bd9,'ELEMENT_MERGE_FIELD',_0xd20855)),_0x8b2ecb['descriptionFactory']['registerDescriptionCallback'](_0x3bdf99=>{if('insertion'!=_0x3bdf99['type']&&'deletion'!=_0x3bdf99['type'])return;const _0xe1b437=_0x3bdf99['getContainedElement']();if(null==_0xe1b437)return;if(!_0xe1b437['is']('element','mergeField')&&!_0xe1b437['is']('element','mergeFieldBlock'))return;const _0x274b2d=_0x8bb664['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xe1b437['getAttribute']('id'));return'insertion'==_0x3bdf99['type']?{'type':'insertion','content':o(_0x4c6bd9,'*Insert:*\x20%0','\x22'+_0x274b2d+'\x22\x20'+o(_0x4c6bd9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4c6bd9,'*Remove:*\x20%0','\x22'+_0x274b2d+'\x22\x20'+o(_0x4c6bd9,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x579de7{['afterInit'](){const _0x3a58eb=this['editor'],_0xdd43bc=_0x3a58eb['plugins']['get']('TrackChangesEditing');_0x3a58eb['plugins']['has']('MultiLevelList')&&(_0xdd43bc['enableDefaultAttributesIntegration']('multiLevelList'),_0xdd43bc['registerBlockAttribute']('listMarkerStyle'),_0xdd43bc['descriptionFactory']['registerDescriptionCallback'](_0x54f44a=>this['handleDescriptions'](_0x54f44a)));}['handleDescriptions'](_0x32f6b3){const _0x21e605=this['editor']['locale'],{data:_0x3f9963}=_0x32f6b3,_0x1edbdf={'type':'format','content':''};if(_0x3f9963&&'listMarkerStyle'==_0x3f9963['key']){if(!_0x3f9963['oldValue'])return{'type':'format','content':o(_0x21e605,'*Set\x20format:*\x20%0',o(_0x21e605,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f9963['newValue']+')'};if(!_0x3f9963['newValue']){let _0x3589df=_0x32f6b3['head'];for(;_0x3589df;){if(_0x3589df['data']&&'listType'==_0x3589df['data']['key']&&_0x3589df['data']['newValue'])return _0x1edbdf;_0x3589df=_0x3589df['next'];}return{'type':'format','content':o(_0x21e605,'*Remove\x20format:*\x20%0',o(_0x21e605,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f9963['oldValue']+')'};}}}}class kt extends _0x579de7{['afterInit'](){const _0x499214=this['editor'];if(!_0x499214['plugins']['has']('PageBreakEditing'))return;_0x499214['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x219d6c=_0x499214['plugins']['get']('TrackChangesEditing'),_0x3855e9=_0x499214['locale'];_0x219d6c['descriptionFactory']['registerElementLabel']('pageBreak',_0x51a81d=>o(_0x3855e9,'ELEMENT_PAGE_BREAK',_0x51a81d));}}class bt extends _0x579de7{['afterInit'](){const _0x5f3331=this['editor'];if(!_0x5f3331['plugins']['has']('Paragraph'))return;const _0x44bc37=_0x5f3331['locale'],_0x90bafb=_0x5f3331['plugins']['get']('TrackChangesEditing');_0x90bafb['descriptionFactory']['registerElementLabel']('paragraph',_0x123ae6=>o(_0x44bc37,'ELEMENT_PARAGRAPH',_0x123ae6)),_0x90bafb['enableDefaultAttributesIntegration']('paragraph'),_0x90bafb['enableCommand']('insertParagraph'),_0x5f3331['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5f3331),{'priority':'highest'}),_0x5f3331['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ce722,_0x590488,_0x2e8af4)=>{_0x2e8af4['options']['showSuggestionHighlights']&&nr(_0x5f3331,{'showActiveMarker':!0x1})(_0x3ce722,_0x590488,_0x2e8af4);},{'priority':'highest'});const _0x5f58d0=_0x90bafb['descriptionFactory'];_0x5f58d0['registerDescriptionCallback'](_0xabcd2c=>{if('insertion'!==_0xabcd2c['type'])return;const {start:_0x1f6a77,end:_0x503ab0}=_0xabcd2c['getFirstRange']();if(!_0x1f6a77['isTouching'](_0x503ab0)||!_0x1f6a77['nodeAfter'])return;const _0x50d0f9=_0x5f3331['model']['schema'],_0x23c647=_0x1f6a77['nodeAfter'];return _0x50d0f9['isBlock'](_0x23c647)&&!_0x50d0f9['isLimit'](_0x23c647)&&_0x50d0f9['checkChild'](_0x23c647,'$text')?{'type':'insertion','content':o(_0x44bc37,'*Insert:*\x20%0',_0x5f58d0['getItemLabel'](_0x23c647,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbf5f8=this['editor'],_0x1209df=_0xbf5f8['locale'];_0xbf5f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x400a07=>{if('formatBlock'!=_0x400a07['type'])return;const {data:_0x60d3bd}=_0x400a07;return _0x60d3bd&&'paragraph'==_0x60d3bd['commandName']?{'type':'format','content':o(_0x1209df,'*Change\x20to:*\x20%0',o(_0x1209df,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1da0a1,{showActiveMarker:_0x245988=!0x0}={}){return(_0x35273d,_0x4607b1,_0x39d7d0)=>{const _0x4a5242=_0x1da0a1['plugins']['get']('TrackChangesEditing'),_0x43d290=_0x4607b1['markerRange']['start'],_0x453c95=_0x4607b1['markerRange']['end'],_0x908d6b=_0x1da0a1['model']['schema'];if(!_0x43d290['isTouching'](_0x453c95)||!_0x43d290['nodeAfter'])return;const _0xc6dd17=_0x43d290['nodeAfter'];if(_0x908d6b['isBlock'](_0xc6dd17)&&!_0x908d6b['isLimit'](_0xc6dd17)&&_0x908d6b['checkChild'](_0xc6dd17,'$text')){if(!_0x39d7d0['consumable']['consume'](_0x4607b1['markerRange'],_0x35273d['name']))return;const {authorId:_0x5c8c3b}=_0x4a5242['_splitMarkerName'](_0x4607b1['markerName']),_0x4809fb=_0x39d7d0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5c8c3b}),_0x103b79=_0x39d7d0['mapper']['toViewPosition'](_0x453c95);_0x245988&&_0x4a5242['activeMarkers']['includes'](_0x4607b1['markerName'])&&_0x39d7d0['writer']['addClass']('ck-suggestion-marker--active',_0x4809fb),_0x39d7d0['writer']['insert'](_0x103b79,_0x4809fb),_0x39d7d0['mapper']['bindElementToMarker'](_0x4809fb,_0x4607b1['markerName']);}};}class yt extends _0x579de7{['afterInit'](){const _0x434d17=this['editor'];if(!_0x434d17['plugins']['has']('RemoveFormatEditing'))return;_0x434d17['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x526b24=this['editor'];_0x526b24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x156130=>{if('formatBlock'!=_0x156130['type']&&'formatInline'!=_0x156130['type'])return;const {data:_0x109ea9}=_0x156130;return _0x109ea9&&'removeFormat'==_0x109ea9['commandName']?{'type':'format','content':o(_0x526b24['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x579de7{['afterInit'](){const _0x1b6ea0=this['editor'];if(!_0x1b6ea0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x42a2c6=_0x1b6ea0['plugins']['get']('TrackChangesEditing');_0x42a2c6['enableCommand']('goToPreviousRestrictedEditingException'),_0x42a2c6['enableCommand']('goToNextRestrictedEditingException');const _0x2ae19d=_0x1b6ea0['plugins']['get']('RestrictedEditingModeEditing');_0x2ae19d['enableCommand']('trackChanges'),_0x2ae19d['enableCommand']('acceptSuggestion'),_0x2ae19d['enableCommand']('discardSuggestion'),_0x2ae19d['enableCommand']('acceptAllSuggestions'),_0x2ae19d['enableCommand']('discardAllSuggestions'),_0x2ae19d['enableCommand']('acceptSelectedSuggestions'),_0x2ae19d['enableCommand']('discardSelectedSuggestions');}}class St extends _0x579de7{static get['requires'](){return[_0x22c03a];}['init'](){const _0x1d1618=this['editor'],_0x23e71a=_0x1d1618['plugins']['get']('TrackChangesEditing');_0x23e71a['enableCommand']('shiftEnter'),_0x1d1618['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x1d1618),{'priority':'high'}),_0x1d1618['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x1d1618),{'priority':'high'}),_0x1d1618['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xed1b59,_0x5d5bd4,_0xf131ce)=>{_0xf131ce['options']['showSuggestionHighlights']&&ke(_0x1d1618,{'showActiveMarker':!0x1})(_0xed1b59,_0x5d5bd4,_0xf131ce);}),_0x23e71a['descriptionFactory']['registerElementLabel']('softBreak',_0x4ddfab=>o(_0x1d1618['locale'],'ELEMENT_LINE_BREAK',_0x4ddfab));}}function ke(_0x33997d,{showActiveMarker:_0x1b0e02=!0x0}={}){return(_0xf82f32,_0x5e4266,_0x1295e5)=>{const _0x5377aa=_0x33997d['plugins']['get']('TrackChangesEditing');if(!_0x1295e5['consumable']['test'](_0x5e4266['markerRange'],_0xf82f32['name']))return;const _0x1edc46=_0x33997d['model'];for(const _0x493c5f of _0x5e4266['markerRange']['getItems']()){if(!_0x493c5f['is']('element','softBreak'))continue;const _0x1c8c0b='deletion'==_0x5e4266['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2aa59a}=_0x5377aa['_splitMarkerName'](_0x5e4266['markerName']),_0x224abe=_0x1295e5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1c8c0b,'data-author-id':_0x2aa59a}),_0x3e916b=_0x1295e5['mapper']['toViewPosition'](_0x1edc46['createPositionBefore'](_0x493c5f));_0x1b0e02&&_0x5377aa['activeMarkers']['includes'](_0x5e4266['markerName'])&&_0x1295e5['writer']['addClass']('ck-suggestion-marker--active',_0x224abe),_0x1295e5['writer']['insert'](_0x3e916b,_0x224abe),_0x1295e5['mapper']['bindElementToMarker'](_0x224abe,_0x5e4266['markerName']);}};}class At extends _0x579de7{['afterInit'](){const _0x2bf44c=this['editor'],_0x5df169=_0x2bf44c['model'],_0x4f6a9d=_0x2bf44c['locale'];if(!_0x2bf44c['plugins']['has']('StandardEditingModeEditing'))return;const _0xf64fd9=_0x2bf44c['plugins']['get']('TrackChangesEditing'),_0x56b4ca='restrictedEditingException',_0x37e464=_0x2bf44c['commands']['get'](_0x56b4ca);_0xf64fd9['enableCommand'](_0x56b4ca,(_0x38c611,_0xde7152={})=>{const _0x442326=_0x5df169['document']['selection'];if(_0x442326['isCollapsed'])return void _0x38c611(_0xde7152);const _0x5f1b55=void 0x0!==_0xde7152['forceValue']?_0xde7152['forceValue']:!_0x37e464['value'];_0x5df169['change'](()=>{const _0x128b1a=Array['from'](_0x442326['getRanges']());for(const _0x5d311f of _0x128b1a){const _0xa62f49=_0x5f1b55?[_0x5d311f]:io(_0x56b4ca,_0x5d311f,_0x5df169);for(const _0x425863 of _0xa62f49)_0xf64fd9['markInlineFormat'](_0x425863,{'commandName':_0x56b4ca,'commandParams':[{'forceValue':_0x5f1b55}]});}});}),_0xf64fd9['descriptionFactory']['registerDescriptionCallback'](_0x481c53=>{if('formatBlock'!=_0x481c53['type']&&'formatInline'!=_0x481c53['type'])return;const {data:_0x1edc3e}=_0x481c53;return _0x1edc3e&&_0x1edc3e['commandName']==_0x56b4ca?_0x1edc3e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f6a9d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4f6a9d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x579de7{['afterInit'](){const _0x1c4746=this['editor'];if(!_0x1c4746['plugins']['has']('Style')||!_0x1c4746['plugins']['has']('DataSchema'))return;const _0x5094a4=_0x1c4746['plugins']['get']('TrackChangesEditing'),_0x381117=_0x1c4746['locale'],_0x17f3cd=_0x1c4746['config']['get']('style')||{},_0xae34d9=_0x1c4746['plugins']['get']('GeneralHtmlSupport'),_0x5a7b45=_0x1c4746['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1c4746['plugins']['get']('DataSchema'),_0x17f3cd['definitions']);_0x5094a4['enableDefaultAttributesIntegration']('style');const _0x15180b=new Set();for(const _0x531023 of _0x5a7b45['block']){const _0x1721ea=_0xae34d9['getGhsAttributeNameForElement'](_0x531023['element']);_0x15180b['add'](_0x1721ea);}const _0x52a060=new Set();for(const _0x2b1fc2 of _0x5a7b45['inline']){const _0x527399=_0xae34d9['getGhsAttributeNameForElement'](_0x2b1fc2['element']);_0x52a060['add'](_0x527399);for(const _0x5b48b of _0x2b1fc2['ghsAttributes'])_0x52a060['add'](_0x5b48b);}for(const _0xea4a31 of _0x15180b)_0x5094a4['registerBlockAttribute'](_0xea4a31),_0x5094a4['descriptionFactory']['registerAttributeLabel'](_0xea4a31,o(_0x381117,'FORMAT_STYLE'));for(const _0x17c6e6 of _0x52a060)_0x5094a4['registerInlineAttribute'](_0x17c6e6),_0x5094a4['descriptionFactory']['registerAttributeLabel'](_0x17c6e6,o(_0x381117,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40416d=this['editor'],_0x7b744=_0x40416d['locale'];_0x40416d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41f768=>{if('formatBlock'!=_0x41f768['type']&&'formatInline'!=_0x41f768['type'])return;const {data:_0x3b4e76}=_0x41f768;return _0x3b4e76&&'style'===_0x3b4e76['commandName']?_0x3b4e76['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x7b744,'*Set\x20format:*\x20%0',_0x3b4e76['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x7b744,'*Remove\x20format:*\x20%0',_0x3b4e76['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x579de7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x58fbc0){super(_0x58fbc0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ed3da=this['editor'],_0x3fddad=_0x3ed3da['model']['document']['selection'];if(!_0x3ed3da['plugins']['has']('TableEditing'))return;const _0x18fa71=_0x3ed3da['locale'],_0xb179ac=_0x3ed3da['plugins']['get']('TrackChangesEditing'),_0x152084=_0x3ed3da['plugins']['get']('TableUtils');_0xb179ac['descriptionFactory']['registerElementLabel']('table',_0x562469=>o(_0x18fa71,'ELEMENT_TABLE',_0x562469)),this['_setupColumnsRowsFixing'](),_0xb179ac['enableCommand']('insertTable'),_0xb179ac['enableCommand']('selectTableRow'),_0xb179ac['enableCommand']('selectTableColumn');for(const _0x6546e3 of['insertTableRowAbove','insertTableRowBelow']){const _0x78e2a7=_0x3ed3da['commands']['get'](_0x6546e3);_0xb179ac['enableCommand'](_0x6546e3,_0x24f782=>{_0x3ed3da['model']['change'](_0x4e776e=>{_0x24f782();const _0x492d68='above'===_0x78e2a7['order'],_0x269140=_0x152084['getSelectionAffectedTableCells'](_0x3fddad),_0x39b496=_0x152084['getRowIndexes'](_0x269140),_0x3b6bcc=_0x492d68?_0x39b496['first']-0x1:_0x39b496['last']+0x1,_0xd2f2c3=_0x269140[0x0]['findAncestor']('table'),_0x4162c3=_0x152084['createTableWalker'](_0xd2f2c3,{'startRow':_0x3b6bcc,'endRow':_0x3b6bcc}),_0x388ed1=Array['from'](_0x4162c3)['map'](_0x479a1f=>_0x4e776e['createRangeOn'](_0x479a1f['cell']));_0xb179ac['markMultiRangeInsertion'](_0x388ed1,'tableRow');});});}for(const _0xc75344 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3d8e11=_0x3ed3da['commands']['get'](_0xc75344);_0xb179ac['enableCommand'](_0xc75344,_0x4d1f26=>{_0x3ed3da['model']['change'](_0x991893=>{_0x4d1f26();const _0x4bc485='left'===_0x3d8e11['order'],_0x550070=_0x152084['getSelectionAffectedTableCells'](_0x3fddad),_0x550972=_0x152084['getColumnIndexes'](_0x550070),_0xa52ee0=_0x4bc485?_0x550972['first']-0x1:_0x550972['last']+0x1,_0x281cac=_0x550070[0x0]['findAncestor']('table'),_0x6a16f7=_0x152084['createTableWalker'](_0x281cac,{'startRow':0x0,'column':_0xa52ee0,'includeAllSlots':!0x1}),_0x3ff68a=Array['from'](_0x6a16f7)['map'](_0xff83f6=>_0x991893['createRangeOn'](_0xff83f6['cell']));_0xb179ac['markMultiRangeInsertion'](_0x3ff68a,'tableColumn');});});}for(const _0x24f37c of['removeTableRow','removeTableColumn']){const _0x5652e6=_0x24f37c['substr'](0xb),_0x5df17a=_0x5652e6['toLowerCase'](),_0x3bafa9=_0x5df17a['substr'](0x0,0x3)+'span',_0x45e58a='table'+_0x5652e6,_0x449bd2='min'+_0x5652e6,_0x54ca8c='max'+_0x5652e6;_0xb179ac['enableCommand'](_0x24f37c,()=>{_0x3ed3da['model']['change'](_0x18d837=>{const _0x18a2b1=_0x152084['getSelectionAffectedTableCells'](_0x3fddad),_0x2d86a2=_0x18a2b1[0x0]['findAncestor']('table');let _0x170e3c;if('removeTableRow'==_0x24f37c){const _0x34f665=_0x152084['getRowIndexes'](_0x18a2b1);_0x170e3c={'startRow':_0x34f665['first'],'endRow':_0x34f665['last'],'includeAllSlots':!0x0};}else{const _0x4740bb=_0x152084['getColumnIndexes'](_0x18a2b1);_0x170e3c={'startColumn':_0x4740bb['first'],'endColumn':_0x4740bb['last'],'includeAllSlots':!0x0};}const _0x472f46=_0x152084['createTableWalker'](_0x2d86a2,_0x170e3c),_0x7edb66=Array['from'](_0x472f46)['map'](({cell:_0x3dbb13})=>_0x3dbb13),_0x525d34=Re(_0x7edb66['filter'](_0x3707e2=>_0x3707e2['hasAttribute'](_0x3bafa9))),_0x403028=Re(_0x7edb66['filter'](_0x391681=>!_0x391681['hasAttribute'](_0x3bafa9)))['map'](_0x36188a=>_0x18d837['createRangeOn'](_0x36188a)),_0x551ee2=_0xb179ac['markMultiRangeDeletion'](_0x403028,_0x45e58a);if(_0x551ee2&&('tableRow'==_0x551ee2['subType']||'tableColumn'==_0x551ee2['subType'])){const _0x25e4de=this['_getSuggestionCoords'](_0x551ee2);for(const _0x437294 of _0x525d34){const _0x2d75b6=_0x18d837['createRangeOn'](_0x437294),_0x41d487=_0x152084['getCellLocation'](_0x437294),_0x5d54f8=_0x437294['getAttribute'](_0x3bafa9)-0x1,_0x70fa9c=_0x25e4de[_0x449bd2],_0x493004=_0x25e4de[_0x54ca8c];_0x70fa9c<=_0x41d487[_0x5df17a]&&_0x41d487[_0x5df17a]+_0x5d54f8<=_0x493004&&_0x551ee2['addRange'](_0x2d75b6);}}});});}function _0x5ba5cd(_0x39a239){const _0x596d48=Array['from'](_0x3fddad['getRanges']())['map'](_0xd780f9=>_0x5e91cd['fromRange'](_0xd780f9));_0x3ed3da['model']['change'](_0x2013f1=>{const _0x59d744=_0x2013f1['batch'];_0x39a239=_0x39a239['filter'](_0x35bbee=>'$graveyard'!=_0x35bbee['root']['rootName']),_0x2013f1['setSelection'](_0x39a239),_0x3ed3da['commands']['get']('removeTableRow')['refresh'](),_0x3ed3da['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ed3da['model']['enqueueChange'](()=>{_0x3ed3da['model']['enqueueChange'](_0x59d744,_0x4358b8=>{const _0x402e90=_0x596d48['filter'](_0xa1120b=>'$graveyard'!=_0xa1120b['root']['rootName']);_0x402e90['length']>0x0&&_0x4358b8['setSelection'](_0x402e90);for(const _0x15ffb7 of _0x596d48)_0x15ffb7['detach']();});});});}function _0x414c38(_0xc2eeab){_0x3ed3da['model']['change'](_0x1bd99b=>{const _0x4c297f=Array['from'](_0x3fddad['getRanges']())['map'](_0x54d0bf=>_0x5e91cd['fromRange'](_0x54d0bf)),_0x2915f4=[];for(const _0x380e84 of _0xc2eeab)for(const _0x490814 of _0x380e84['getItems']({'shallow':!0x0}))_0x2915f4['push'](_0x490814);for(const _0x56942d of _0x2915f4)'$graveyard'!=_0x56942d['root']['rootName']&&(_0x1bd99b['setSelection'](_0x1bd99b['createPositionAt'](_0x56942d,0x0)),_0x3ed3da['commands']['get']('removeTableColumn')['refresh'](),_0x3ed3da['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5656b5=_0x4c297f['filter'](_0x2a8773=>'$graveyard'!=_0x2a8773['root']['rootName']);_0x5656b5['length']>0x0&&_0x1bd99b['setSelection'](_0x5656b5);for(const _0x112677 of _0x4c297f)_0x112677['detach']();});}function _0x59ecd7(_0x88d009,_0x1ece6c){return _0x1ece6c['every'](_0xe1dd73=>_0x88d009['some'](_0x15eb90=>_0x15eb90['end']['isEqual'](_0xe1dd73['start'])||_0xe1dd73['end']['isEqual'](_0x15eb90['start'])));}function _0x196789(_0x4cb7e1,_0x40e6eb){return!_0x4cb7e1['some'](_0x1f821d=>_0x40e6eb['some'](_0x293342=>_0x1f821d['isIntersecting'](_0x293342)))&&_0x4cb7e1['some'](_0x2c8157=>_0x40e6eb['some'](_0x52555f=>_0x2c8157['end']['isTouching'](_0x52555f['start'])));}_0x3ed3da['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x589fc0,_0x4cd6c0,_0x2dc74a)=>{if(!_0x2dc74a['options']['showSuggestionHighlights'])return;const _0x2e9b15=_0x4cd6c0['item'];if(!_0x2e9b15)return;const _0x4885fc=_0x2dc74a['mapper']['toViewElement'](_0x2e9b15);function _0x5b27bb(_0x2c1bdb){return Array['isArray'](_0x2c1bdb)?_0x2c1bdb:[_0x2c1bdb];}_0x4885fc&&'tableCell'===_0x2e9b15['name']&&_0x53ac15(_0x4885fc,_0x2dc74a['writer'],(_0x13062e,_0x184c87,_0x231f47)=>_0x231f47['addClass'](_0x5b27bb(_0x184c87['classes']),_0x13062e),(_0x163013,_0x3cec07,_0x522470)=>_0x522470['removeClass'](_0x5b27bb(_0x3cec07['classes']),_0x163013));},{'priority':'highest'}),_0xb179ac['descriptionFactory']['registerDescriptionCallback'](_0x34f90=>{if('insertion'!=_0x34f90['type']&&'deletion'!=_0x34f90['type'])return;const _0xfbaabc=_0x34f90['getContainedElement']();if(null!=_0xfbaabc&&_0xfbaabc['is']('element','table')){if('insertion'==_0x34f90['type']){const _0x12d109=_0x34f90['getItems']()['filter'](_0x11af87=>_0x11af87['is']('$textProxy'))['map'](_0x42575c=>_0x42575c['data']);if(_0x12d109['length'])return{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x12d109['join']('\x20')+'\x22'))};}if('deletion'==_0x34f90['type']){const _0x3a172c=_0x34f90['getItems']()['filter'](_0x4d7efa=>_0x4d7efa['is']('$textProxy'))['map'](_0x162b77=>_0x162b77['data']);if(_0x3a172c['length'])return{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a172c['join']('\x20')+'\x22'))};}}}),_0xb179ac['descriptionFactory']['registerDescriptionCallback'](_0x4b6838=>{if('tableRow'==_0x4b6838['subType']){const _0x3de8c1=_0x4b6838['getItems']()['filter'](_0x3a1771=>_0x3a1771['is']('$textProxy'))['map'](_0x52a8f0=>_0x52a8f0['data']),_0x22733e=this['_getSuggestionCoords'](_0x4b6838),_0x8bbf8a=_0x22733e['maxRow']-_0x22733e['minRow']+0x1;if('insertion'==_0x4b6838['type'])return _0x3de8c1['length']?{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x8bbf8a,'\x22'+_0x3de8c1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_ROW',_0x8bbf8a))};if('deletion'==_0x4b6838['type'])return _0x3de8c1['length']?{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x8bbf8a,'\x22'+_0x3de8c1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_ROW',_0x8bbf8a))};}if('tableColumn'==_0x4b6838['subType']){const _0xc54752=_0x4b6838['getItems']()['filter'](_0x592cec=>_0x592cec['is']('$textProxy'))['map'](_0x5457d4=>_0x5457d4['data']),_0x5483a1=this['_getSuggestionCoords'](_0x4b6838),_0x34ad2b=_0x5483a1['maxColumn']-_0x5483a1['minColumn']+0x1;if('insertion'==_0x4b6838['type'])return _0xc54752['length']?{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ad2b,'\x22'+_0xc54752['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x18fa71,'*Insert:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_COLUMN',_0x34ad2b))};if('deletion'==_0x4b6838['type'])return _0xc54752['length']?{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34ad2b,'\x22'+_0xc54752['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x18fa71,'*Remove:*\x20%0',o(_0x18fa71,'ELEMENT_TABLE_COLUMN',_0x34ad2b))};}}),_0xb179ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5ba5cd),_0xb179ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5ba5cd),_0xb179ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x414c38),_0xb179ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x414c38),_0xb179ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x59ecd7),_0xb179ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x59ecd7),_0xb179ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x196789),_0xb179ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x196789);}['_acceptFormatSuggestionCallbackFactory'](){const _0x38e915=this['editor'],_0x1858a3=_0x38e915['model']['document']['selection'];return(_0x1f4b88,_0x42661a)=>{_0x38e915['model']['change'](_0x36e197=>{const {commandName:_0x53ca97,commandParams:_0xb5f735}=_0x42661a;let _0xf9c213=_0x1f4b88[0x0]['end']['nodeBefore'];_0xb5f735&&_0xb5f735[0x0]&&!0x1===_0xb5f735[0x0]['forceValue']&&(_0xf9c213=_0x1f4b88[0x0]['start']['nodeAfter']);const _0x2d479a=_0x36e197['createRangeIn'](_0xf9c213);if('$graveyard'==_0x2d479a['root']['rootName'])return;const _0x573a40=Array['from'](_0x1858a3['getRanges']())['map'](_0x3b4257=>_0x5e91cd['fromRange'](_0x3b4257));_0x36e197['setSelection'](_0x2d479a),_0x38e915['commands']['get'](_0x53ca97)['refresh'](),_0xb5f735['push']({'forceDefaultExecution':!0x0}),_0x38e915['execute'](_0x53ca97,..._0xb5f735);const _0x48fb82=_0x573a40['filter'](_0x1ea063=>'$graveyard'!=_0x1ea063['root']['rootName']);_0x48fb82['length']>0x0&&_0x36e197['setSelection'](_0x48fb82);for(const _0x294051 of _0x573a40)_0x294051['detach']();});};}['_getCoordsForCells'](_0x5b8751){const _0xfdf0ea=this['editor']['plugins']['get']('TableUtils');let _0x446710=Number['MAX_SAFE_INTEGER'],_0x4d27c5=Number['MIN_SAFE_INTEGER'],_0x2f4843=Number['MAX_SAFE_INTEGER'],_0x5923f4=Number['MIN_SAFE_INTEGER'];for(const _0x299a0a of _0x5b8751){if('$graveyard'==_0x299a0a['root']['rootName'])continue;const {row:_0x2ca9a1,column:_0x31464e}=_0xfdf0ea['getCellLocation'](_0x299a0a),_0x534431=_0x299a0a['hasAttribute']('rowspan')?_0x299a0a['getAttribute']('rowspan')-0x1:0x0,_0x97b6a0=_0x299a0a['hasAttribute']('colspan')?_0x299a0a['getAttribute']('colspan')-0x1:0x0;_0x446710=_0x2ca9a1<_0x446710?_0x2ca9a1:_0x446710,_0x4d27c5=_0x2ca9a1+_0x534431>_0x4d27c5?_0x2ca9a1+_0x534431:_0x4d27c5,_0x2f4843=_0x31464e<_0x2f4843?_0x31464e:_0x2f4843,_0x5923f4=_0x31464e+_0x97b6a0>_0x5923f4?_0x31464e+_0x97b6a0:_0x5923f4;}return{'minRow':_0x446710,'maxRow':_0x4d27c5,'minColumn':_0x2f4843,'maxColumn':_0x5923f4};}['_setupColumnsRowsFixing'](){const _0x1edf8a=this['editor'],_0x5aa5c9=_0x1edf8a['plugins']['get']('TrackChangesEditing'),_0x4b3e8b=_0x1edf8a['plugins']['get']('TableUtils');_0x1edf8a['model']['document']['on']('change:data',()=>{const _0x12ba7d=Array['from'](_0x1edf8a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x465bd6,data:_0x18fd12}of _0x12ba7d){const {group:_0x35e217,id:_0x4324d0,subType:_0x53b820}=_0x5aa5c9['_splitMarkerName'](_0x465bd6);if('suggestion'!=_0x35e217)continue;if(null!=_0x18fd12['oldRange'])continue;const _0x531423=_0x5aa5c9['getSuggestion'](_0x4324d0);this['_tablePostFixingSubtypes']['includes'](_0x53b820)&&this['_tableSuggestions']['add'](_0x531423);}},{'priority':'low'});const _0x9e42b7=(_0x89cd2b,_0x44a2ce)=>{let _0x5cf122=!0x1;const _0x4d85f7=_0x44a2ce['createRangeOn'](_0x89cd2b),_0x443ecd=_0x89cd2b['findAncestor']('table'),_0x1cf3e2=_0x4b3e8b['getCellLocation'](_0x89cd2b);for(const _0x363d70 of this['_tableSuggestions']){const _0x5dae6c=_0x363d70['subType'],_0x1ba0ca=_0x5dae6c['startsWith']('tablePaste'),_0x1d1ad5=_0x5dae6c['substr'](_0x1ba0ca?0xa:0x5),_0x552887=_0x1d1ad5['toLowerCase'](),_0x991b3a=_0x552887['substr'](0x0,0x3)+'span',_0x1937d5='min'+_0x1d1ad5,_0x526a66='max'+_0x1d1ad5;if(!_0x363d70['isInContent'])continue;if(_0x443ecd!=_0x363d70['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x363d70['isIntersectingWithRange'](_0x4d85f7))continue;const _0x3ed9f7=_0x89cd2b['hasAttribute'](_0x991b3a)?_0x89cd2b['getAttribute'](_0x991b3a)-0x1:0x0,_0x449661=this['_getSuggestionCoords'](_0x363d70),_0x570708=_0x449661[_0x1937d5],_0x4fed15=_0x449661[_0x526a66];_0x570708<=_0x1cf3e2[_0x552887]&&_0x1cf3e2[_0x552887]+_0x3ed9f7<=_0x4fed15&&(_0x363d70['addRange'](_0x4d85f7),_0x5cf122=!0x0);}return _0x5cf122;};_0x1edf8a['model']['document']['registerPostFixer'](_0x273854=>{let _0x15bfdf=!0x1;for(const _0x2ff640 of _0x1edf8a['model']['document']['differ']['getChanges']())if('insert'==_0x2ff640['type']){if('tableRow'==_0x2ff640['name']){for(const _0x129893 of _0x2ff640['position']['nodeAfter']['getChildren']())_0x15bfdf=_0x15bfdf||_0x9e42b7(_0x129893,_0x273854);}else'tableCell'==_0x2ff640['name']&&(_0x15bfdf=_0x15bfdf||_0x9e42b7(_0x2ff640['position']['nodeAfter'],_0x273854));}return _0x15bfdf;});}['_getSuggestionCoords'](_0x11bf20){return this['_getCoordsForCells'](_0x11bf20['getRanges']()['map'](_0x212a66=>_0x212a66['start']['nodeAfter']));}}function Re(_0x5e61d3){return Array['from'](new Set(_0x5e61d3)['values']());}class _t extends _0x579de7{static get['requires'](){return[vt];}['afterInit'](){const _0x5afe80=this['editor'],_0x43f61e=_0x5afe80['model']['document']['selection'],_0xc2e28c=_0x5afe80['locale'];if(!_0x5afe80['plugins']['has']('TableEditing'))return;const _0x5a0022=_0x5afe80['plugins']['get']('TrackChangesEditing'),_0x59fc43=_0x5afe80['plugins']['get']('TableUtils'),_0x513e4a=_0x5afe80['plugins']['get'](vt);_0x513e4a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5a0022['enableCommand']('mergeTableCells',()=>{const _0x408770=_0x59fc43['getSelectionAffectedTableCells'](_0x5afe80['model']['document']['selection']);_0x5afe80['model']['change'](()=>{_0x5a0022['markMultiRangeBlockFormat'](_0x408770,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5afe80['commands']['get']('mergeTableCells')['on']('execute',(_0x2f5ac7,_0x9ef97d)=>{_0x5afe80['commands']['get']('trackChanges')['value']&&(_0x9ef97d['length']>0x0&&_0x9ef97d[_0x9ef97d['length']-0x1]&&_0x9ef97d[_0x9ef97d['length']-0x1]['forceDefaultExecution']||_0x5a0022['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2f5ac7['stop']());},{'priority':'highest'});for(const _0x89bf86 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x14f209=_0x5afe80['commands']['get'](_0x89bf86);_0x5a0022['enableCommand'](_0x89bf86,()=>{const _0xb52a3b=_0x5afe80['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xbf65fa=>_0xbf65fa['is']('element','tableCell')),_0x149cd8=_0x14f209['value'];_0x5afe80['model']['change'](()=>{_0x5a0022['markMultiRangeBlockFormat']([_0xb52a3b,_0x149cd8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2f9289 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2a3d13=_0x5afe80['commands']['get'](_0x2f9289);_0x5a0022['enableCommand'](_0x2f9289,()=>{const _0x594e3a=_0x59fc43['getSelectionAffectedTableCells'](_0x5afe80['model']['document']['selection'])[0x0],_0x3976d1=_0x594e3a['findAncestor']('table'),{column:_0x35c07a,row:_0x17d8e6}=_0x59fc43['getCellLocation'](_0x594e3a);let _0x152dbd=[];if('horizontally'==_0x2a3d13['direction']){const _0x38fe65=_0x59fc43['createTableWalker'](_0x3976d1,{'startRow':_0x17d8e6,'endRow':_0x17d8e6,'includeAllSlots':!0x0});_0x152dbd=Array['from'](_0x38fe65)['map'](_0x32a223=>_0x32a223['cell']);}else{const _0x399faa=_0x59fc43['createTableWalker'](_0x3976d1,{'column':_0x35c07a,'includeAllSlots':!0x0});_0x152dbd=Array['from'](_0x399faa)['map'](_0x2bd892=>_0x2bd892['cell']);}_0x5afe80['model']['change'](_0x1c1c7=>{_0x5a0022['markBlockFormat'](_0x1c1c7['createRangeOn'](_0x594e3a),{'commandName':_0x2f9289,'commandParams':[]},_0x152dbd,_0x2f9289);});});}_0x5a0022['descriptionFactory']['registerDescriptionCallback'](_0x3c1bcc=>{if('formatBlock'!=_0x3c1bcc['type']&&'formatInline'!=_0x3c1bcc['type'])return;const {data:_0x48123e}=_0x3c1bcc;return _0x48123e&&'mergeTableCells'==_0x48123e['commandName']?{'type':'format','content':o(_0xc2e28c,'*Merge\x20cells*')}:void 0x0;}),_0x5a0022['descriptionFactory']['registerDescriptionCallback'](_0xbfc9e1=>{if('formatBlock'!=_0xbfc9e1['type']&&'formatInline'!=_0xbfc9e1['type'])return;const {data:_0x314a00}=_0xbfc9e1;return _0x314a00?'splitTableCellVertically'==_0x314a00['commandName']?{'type':'format','content':o(_0xc2e28c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x314a00['commandName']?{'type':'format','content':o(_0xc2e28c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xba5b61=_0x513e4a['_acceptFormatSuggestionCallbackFactory']();for(const _0x42f0fd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5a0022['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42f0fd,'accept',_0xba5b61);for(const _0xba88dd of['splitTableCellVertically','splitTableCellHorizontally'])_0x5a0022['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xba88dd,'accept',_0xba5b61);_0x5a0022['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3bc351=>{_0x5afe80['model']['change'](_0x3d141e=>{const _0xe54810=Array['from'](_0x43f61e['getRanges']())['map'](_0x501b5d=>_0x5e91cd['fromRange'](_0x501b5d));_0x3d141e['setSelection'](_0x3bc351),_0x5afe80['commands']['get']('mergeTableCells')['refresh'](),_0x5afe80['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x40517f=_0xe54810['filter'](_0x27ae36=>'$graveyard'!=_0x27ae36['root']['rootName']);_0x40517f['length']>0x0&&_0x3d141e['setSelection'](_0x40517f);for(const _0x52bb48 of _0xe54810)_0x52bb48['detach']();});});for(const _0x2c4f87 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x49b28f=_0x5afe80['commands']['get'](_0x2c4f87);_0x49b28f['on']('set:isEnabled',(_0x1d5cee,_0x54f662,_0xc83353)=>{if(_0xc83353){const _0x5298d6=_0x5afe80['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x188635=>_0x188635['is']('element','tableCell'));this['_areMergableCells'](_0x49b28f['value'],_0x5298d6)||(_0x1d5cee['return']=!0x1,_0x1d5cee['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xf2faab=this['editor']['commands']['get']('mergeTableCells'),_0x52b01a=this['editor']['plugins']['get']('TableUtils');if(!_0xf2faab['isEnabled'])return!0x1;const _0x473385=_0x52b01a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4666e4 of _0x473385)for(const _0x5dde2c of _0x473385)if(_0x4666e4!=_0x5dde2c&&!this['_areMergableCells'](_0x4666e4,_0x5dde2c))return!0x1;return!0x0;}['_areMergableCells'](_0x376f3a,_0x50e41f){const _0x10ab3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x592a8d=this['editor']['model']['createRangeOn'](_0x376f3a),_0x5ada4a=this['editor']['model']['createRangeOn'](_0x50e41f),_0x3c48d9=new Set(),_0xb7b1e=new Set();for(const _0x254c36 of _0x10ab3d['getSuggestions']())if(('insertion'==_0x254c36['type']||'deletion'==_0x254c36['type']||'mergeTableCells'==_0x254c36['subType'])&&_0x254c36['isInContent']){for(const _0x4ef340 of _0x254c36['getRanges']())_0x4ef340['containsRange'](_0x592a8d,!0x0)&&_0x3c48d9['add'](_0x254c36['type']+':'+_0x254c36['author']['id']),_0x4ef340['containsRange'](_0x5ada4a,!0x0)&&_0xb7b1e['add'](_0x254c36['type']+':'+_0x254c36['author']['id']);}if(_0x3c48d9['size']!=_0xb7b1e['size'])return!0x1;for(const _0x50f95c of _0x3c48d9)if(!_0xb7b1e['has'](_0x50f95c))return!0x1;return!0x0;}}class Ct extends _0x579de7{static get['requires'](){return[vt];}['afterInit'](){const _0x5db61a=this['editor'];if(!_0x5db61a['plugins']['has']('TableEditing'))return;const _0x405d75=_0x5db61a['locale'],_0x1f41b6=_0x5db61a['plugins']['get']('TrackChangesEditing');_0x1f41b6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1f41b6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1f41b6['registerBlockAttribute']('headingRows'),_0x1f41b6['registerBlockAttribute']('headingColumns'),_0x1f41b6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x405d75,'FORMAT_HEADER_ROW')),_0x1f41b6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x405d75,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1d99bf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x131e03=this['editor']['plugins']['get']('TableUtils'),_0x502afc=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x29cdc9({showActiveMarker:_0x213ef7=!0x0,setDataAttribute:_0xe52ad1=!0x0}={}){return(_0x1f497a,_0x3515e2,_0x31052d)=>{const {type:_0x55d958,id:_0x27e447}=_0x1d99bf['_splitMarkerName'](_0x3515e2['markerName']),_0x51bf1c=_0x1d99bf['getSuggestion'](_0x27e447),_0x2ff4f2=_0x51bf1c['data'];if('formatBlock'!=_0x51bf1c['type']||!_0x2ff4f2||'setTableColumnHeader'!=_0x2ff4f2['commandName'])return;if(_0x3515e2['item'])return void _0x1f497a['stop']();if(!_0x31052d['consumable']['consume'](_0x3515e2['markerRange'],_0x1f497a['name']))return;const _0x9daf0=_0x3515e2['markerRange']['start']['nodeAfter'],_0xff5198=_0x3515e2['markerRange']['end']['nodeBefore'],_0x177ea1=_0x9daf0['parent']['parent'],{column:_0x196df8}=_0x131e03['getCellLocation'](_0x9daf0),{column:_0x4a7460}=_0x131e03['getCellLocation'](_0xff5198);for(let _0x158f40=_0x196df8;_0x158f40<=_0x4a7460;_0x158f40++){const _0x2fc26c=_0x131e03['createTableWalker'](_0x177ea1,{'column':_0x158f40,'includeAllSlots':!0x1});for(const _0x33f248 of _0x2fc26c){const _0x2b9e72=_0x33f248['cell'],_0x3d2ae3=_0x31052d['mapper']['toViewElement'](_0x2b9e72);_0x31052d['writer']['addClass']('ck-suggestion-marker-'+_0x55d958,_0x3d2ae3),_0xe52ad1&&_0x31052d['writer']['setAttribute']('data-suggestion',_0x27e447,_0x3d2ae3),_0x31052d['mapper']['bindElementToMarker'](_0x3d2ae3,_0x3515e2['markerName']),_0x213ef7&&(_0x1d99bf['activeMarkers']['includes'](_0x3515e2['markerName'])?_0x31052d['writer']['addClass']('ck-suggestion-marker--active',_0x3d2ae3):_0x31052d['writer']['removeClass']('ck-suggestion-marker--active',_0x3d2ae3));}}};}_0x1d99bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x502afc),_0x1d99bf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x502afc),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x29cdc9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1a7624,_0x3ba538,_0x4308cc)=>{_0x4308cc['options']['showSuggestionHighlights']&&_0x29cdc9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1a7624,_0x3ba538,_0x4308cc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x363a46,_0x29eab8,_0xa37025)=>{const {type:_0x5ea44b,id:_0x4fa48e}=_0x1d99bf['_splitMarkerName'](_0x29eab8['markerName']),_0x208390=_0x1d99bf['getSuggestion'](_0x4fa48e),_0x1d63da=_0x208390['data'];if('formatBlock'!=_0x208390['type']||!_0x1d63da||'setTableColumnHeader'!=_0x1d63da['commandName'])return;const _0x43247a=_0xa37025['mapper']['markerNameToElements'](_0x29eab8['markerName']);if(_0x43247a){for(const _0x111c3f of _0x43247a)_0xa37025['writer']['removeClass']('ck-suggestion-marker-'+_0x5ea44b,_0x111c3f),_0xa37025['writer']['removeClass']('ck-suggestion-marker--active',_0x111c3f),_0xa37025['writer']['removeAttribute']('data-suggestion',_0x111c3f),_0xa37025['mapper']['unbindElementFromMarkerName'](_0x111c3f,_0x29eab8['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2539ae=this['editor'],_0xad06e5=_0x2539ae['locale'];function _0x5ed0fe(_0x1c94d1){return{'type':'format','content':o(_0xad06e5,'*Format:*\x20%0',_0x1c94d1)};}_0x2539ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c44cf=>{if('formatBlock'!=_0x2c44cf['type'])return;const {data:_0x330c41}=_0x2c44cf;if(_0x330c41){if('setTableRowHeader'==_0x330c41['commandName']){const _0x434ff8=_0x330c41['commandParams'][0x0]['forceValue'];return _0x5ed0fe(o(_0xad06e5,_0x434ff8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x330c41['commandName']){const _0x5b702b=_0x330c41['commandParams'][0x0]['forceValue'];return _0x5ed0fe(o(_0xad06e5,_0x5b702b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x52ca71=>[_0x52ca71,null]));class Nt extends _0x579de7{static get['requires'](){return[vt];}['afterInit'](){const _0x2ff07=this['editor'];if(!_0x2ff07['plugins']['has']('TableClipboard'))return;const _0x16cb15=_0x2ff07['plugins']['get']('TrackChangesEditing'),_0x2eae8=_0x2ff07['plugins']['get']('TableUtils'),_0x964c88=_0x2ff07['plugins']['get'](vt),_0x2201cc=_0x2ff07['plugins']['get']('TableClipboard');_0x964c88['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2ff07['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2ff07['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x452eb9=null;_0x2ff07['model']['on']('insertContent',(_0x457050,_0x44f0e4)=>{const [_0x2fe519,_0x3ac89b]=_0x44f0e4,_0x3241d2=_0x44f0e4[_0x44f0e4['length']-0x1];_0x3241d2&&_0x3241d2['forceDefaultExecution']||_0x16cb15['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5a8b20,_0x542aa4,_0x58f834,_0x43f5a7,_0x2eea1d){if(_0x542aa4&&!_0x542aa4['is']('documentSelection'))return!0x1;const _0xc5e2f=_0x2eea1d['getTableIfOnlyTableInContent'](_0x5a8b20,_0x58f834);if(!_0xc5e2f||!Ae(_0xc5e2f,void 0x0,_0x43f5a7))return!0x1;const _0x58d4d5=_0x43f5a7['getSelectionAffectedTableCells'](_0x58f834['document']['selection']);if(!_0x58d4d5['length'])return!0x1;const _0x5b6b03=_0x58d4d5[0x0]['findAncestor']('table'),_0x4ba231=_0x43f5a7['getRowIndexes'](_0x58d4d5),_0x5df624=_0x43f5a7['getColumnIndexes'](_0x58d4d5),_0x37d296={'startRow':_0x4ba231['first'],'endRow':_0x4ba231['last'],'startColumn':_0x5df624['first'],'endColumn':_0x5df624['last']};return 0x1==_0x58d4d5['length']&&(_0x37d296['endRow']+=_0x43f5a7['getRows'](_0xc5e2f)-0x1,_0x37d296['endColumn']+=_0x43f5a7['getColumns'](_0xc5e2f)-0x1),Ae(_0x5b6b03,_0x37d296,_0x43f5a7);}(_0x2fe519,_0x3ac89b,_0x2ff07['model'],_0x2eae8,_0x2201cc)&&(_0x457050['stop'](),_0x452eb9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2ff07['model']['change'](()=>{_0x2ff07['model']['insertContent'](_0x44f0e4[0x0],_0x44f0e4[0x1],_0x44f0e4[0x2],{'forceDefaultExecution':!0x0});const _0x4f2613=_0x303cc5(),{rowInsertionRanges:_0x968b6b,columnInsertionRanges:_0x315f93,insertionRanges:_0x3ca6f2,deletionRanges:_0x43bb67,cells:_0xc3f5e9}=_0x452eb9;_0x968b6b['length']&&_0x16cb15['markMultiRangeInsertion'](_0x968b6b,'tablePasteRow',{'tablePasteChainId':_0x4f2613}),_0x315f93['length']&&_0x16cb15['markMultiRangeInsertion'](_0x315f93,'tablePasteColumn',{'tablePasteChainId':_0x4f2613}),_0x3ca6f2['length']&&(_0x16cb15['markMultiRangeInsertion'](_0x3ca6f2,'tablePaste',{'tablePasteChainId':_0x4f2613,'skipNestingCheck':!0x0}),_0x3ca6f2['forEach'](_0x780fe8=>_0x780fe8['detach']?.())),_0x43bb67['length']&&(_0x16cb15['markMultiRangeDeletion'](_0x43bb67,'tablePaste',{'tablePasteChainId':_0x4f2613,'skipNestingCheck':!0x0}),_0x43bb67['forEach'](_0x5b1b73=>_0x5b1b73['detach']?.()));const _0x54751a=_0x16cb15['markMultiRangeBlockFormat'](_0xc3f5e9['map'](({element:_0x2206aa})=>_0x2206aa),{'formatGroupId':_0x303cc5()},[],'tablePasteCell',{'tablePasteChainId':_0x4f2613});if(_0x54751a){const _0x5bbe5c=_0x54751a['getMarkers'](),_0x64d063=[];for(const {element:_0x4c180d,attributes:_0xb8617b}of _0xc3f5e9){if(!_0xb8617b)continue;const _0x1841d2=_0x2ff07['model']['createRangeOn'](_0x4c180d),_0x557aa9=_0x5bbe5c['find'](_0x27e3b4=>_0x27e3b4['getRange']()['isEqual'](_0x1841d2));_0x557aa9&&_0x64d063['push']([_0x557aa9['name'],_0xb8617b]);}_0x64d063['length']&&_0x54751a['setAttribute']('markerAttributes',Object['fromEntries'](_0x64d063));}_0x452eb9=null;}));},{'priority':_0x4f4b43['high']+0xa}),_0x2ff07['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xf6859f,_0x47b543)=>{const [_0x14dd7d,_0x3c69b,,_0x3168ee]=_0x47b543;if(!_0x452eb9)return;_0xf6859f['stop']();const _0xb0ba80=_0x14dd7d['cell'],_0x5b67e4=_0x3c69b,_0x5488a6=je(_0xb0ba80),_0x3263dc=je(_0x5b67e4);_0xf6859f['return']=_0xb0ba80;let _0x7bd035=null,_0x1b55c1=null;if(_0x3263dc||_0x5488a6){if(_0x5488a6&&!_0x3263dc){_0x3168ee['remove'](_0xb0ba80['getChild'](0x0));for(const _0x167556 of Array['from'](_0x5b67e4['getChildren']()))_0x3168ee['insert'](_0x167556,_0xb0ba80,'end');const _0x213b1e=_0x452eb9['rowInsertionIndexes']['includes'](_0x14dd7d['row']),_0x26dc2d=_0x452eb9['columnInsertionIndexes']['includes'](_0x14dd7d['column']);_0x213b1e||_0x26dc2d||(_0x7bd035=_0x5e91cd['fromRange'](_0x3168ee['createRangeIn'](_0xb0ba80)));}else _0x3263dc&&!_0x5488a6&&(_0x1b55c1=_0x3168ee['createRangeIn'](_0xb0ba80));}else{const _0x389170=_0x3168ee['createElement']('tableCellSuggestion'),_0x42b744=_0x3168ee['createElement']('tableCellSuggestion');_0x3168ee['wrap'](_0x3168ee['createRangeIn'](_0xb0ba80),_0x42b744),_0x3168ee['insert'](_0x389170,_0xb0ba80,0x0);for(const _0x364872 of Array['from'](_0x5b67e4['getChildren']()))_0x3168ee['insert'](_0x364872,_0x389170,'end');_0x7bd035=_0x5e91cd['fromRange'](_0x3168ee['createRangeOn'](_0x389170)),_0x1b55c1=_0x5e91cd['fromRange'](_0x3168ee['createRangeOn'](_0x42b744));}const _0x319968=Array['from'](_0x5b67e4['getAttributes']())['filter'](([_0xa5805])=>we['includes'](_0xa5805));_0x452eb9['cells']['push']({'element':_0xb0ba80,'attributes':_0x319968['length']?Object['fromEntries'](_0x319968):null}),_0x7bd035&&_0x452eb9['insertionRanges']['push'](_0x7bd035),_0x1b55c1&&_0x452eb9['deletionRanges']['push'](_0x1b55c1);},{'priority':'high'}),_0x2eae8['on']('insertColumns',(_0x1197d7,_0x5f987a)=>{const [_0x2d4e1f,_0x25b441={}]=_0x5f987a;if(!_0x452eb9)return;const _0x27c8a8=_0x25b441['at']||0x0,_0x23e3cd=_0x25b441['columns']||0x1;_0x452eb9['columnInsertionIndexes']=new Array(_0x23e3cd)['fill'](_0x27c8a8)['map']((_0x63e090,_0xc73252)=>_0x63e090+_0xc73252);for(const {cell:_0x10f9f2}of _0x2eae8['createTableWalker'](_0x2d4e1f,{'startColumn':_0x27c8a8,'endColumn':_0x27c8a8+_0x23e3cd-0x1}))_0x452eb9['columnInsertionRanges']['push'](_0x2ff07['model']['createRangeOn'](_0x10f9f2));},{'priority':'low'}),_0x2eae8['on']('insertRows',(_0x11288b,_0x7d7f53)=>{const [_0x13800d,_0x5d4af2={}]=_0x7d7f53;if(!_0x452eb9)return;const _0x21ffe2=_0x5d4af2['at']||0x0,_0x1027e3=_0x5d4af2['rows']||0x1;_0x452eb9['rowInsertionIndexes']=new Array(_0x1027e3)['fill'](_0x21ffe2)['map']((_0x457eda,_0x5f3835)=>_0x457eda+_0x5f3835);for(const {cell:_0x2d0706}of _0x2eae8['createTableWalker'](_0x13800d,{'startRow':_0x21ffe2,'endRow':_0x21ffe2+_0x1027e3-0x1}))_0x452eb9['rowInsertionRanges']['push'](_0x2ff07['model']['createRangeOn'](_0x2d0706));},{'priority':'low'}),_0x16cb15['descriptionFactory']['registerDescriptionCallback'](_0x4d31c8=>{if(_0x4d31c8['subType']&&_0x4d31c8['subType']['startsWith']('tablePaste'))return _0x4d31c8['previous']?{}:{'type':'insertion','content':o(_0x2ff07['locale'],'*Replace\x20table\x20cells*')};});const _0x4e5093=()=>!0x1;for(const _0x13b68f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x16cb15['_suggestionFactory']['registerCustomCallback']('insertion',_0x13b68f,'join',_0x4e5093),_0x16cb15['_suggestionFactory']['registerCustomCallback']('deletion',_0x13b68f,'join',_0x4e5093),_0x16cb15['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13b68f,'join',_0x4e5093);_0x16cb15['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4e5093),_0x16cb15['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x36a19f,_0xb2bc09,_0x49846a)=>{const _0x56deaf=_0x36a19f['map'](_0x490f7e=>_0x490f7e['getContainedElement']())['filter'](_0x3deb06=>_0x3deb06),_0xd2b7ec=new Map(_0x56deaf['map'](_0x1a8b87=>[_0x1a8b87,null]));if(_0x452eb9){for(const {element:_0x49f4c1,attributes:_0x13e4c7}of _0x452eb9['cells'])_0x13e4c7&&_0xd2b7ec['set'](_0x49f4c1,_0x13e4c7);}else{if(_0x49846a&&_0x49846a['markerAttributes'])for(const [_0x4ef9bf,_0x14fc00]of Object['entries'](_0x49846a['markerAttributes'])){const _0x4471fa=_0x2ff07['model']['markers']['get'](_0x4ef9bf),_0x515fb8=_0x4471fa?_0x4471fa['getRange']()['getContainedElement']():null;_0x515fb8&&_0xd2b7ec['set'](_0x515fb8,_0x14fc00);}}_0x2ff07['model']['change'](_0x45bb4d=>{for(const [_0x23779e,_0x3c1bf0]of _0xd2b7ec)_0x45bb4d['setAttributes']({...ve,..._0x3c1bf0},_0x23779e);});});const _0x220e3f=(_0x4f5a76,_0x54825)=>{_0x16cb15['_suggestionFactory']['registerCustomCallback'](_0x4f5a76,'tablePaste',_0x54825,(_0x36fcb8,_0x329b0a,_0x27cd02)=>{_0x2ff07['model']['change'](_0xcf9b31=>{const _0x269bdf=[];for(const _0x1e7166 of _0x36fcb8){const _0x8f800=_0x1e7166['start']['nodeAfter'];_0x8f800['is']('element','tableCellSuggestion')&&_0x269bdf['push'](_0x8f800);}_0x16cb15['_suggestionFactory']['getSuggestionCallback'](_0x4f5a76,null,_0x54825)(_0x36fcb8,_0x329b0a,_0x27cd02);for(const _0x4e4058 of _0x269bdf)'$graveyard'!=_0x4e4058['root']['rootName']&&_0xcf9b31['unwrap'](_0x4e4058);});});};_0x220e3f('insertion','accept'),_0x220e3f('insertion','discard'),_0x220e3f('deletion','accept'),_0x220e3f('deletion','discard'),_0x16cb15['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x55f06d=>{const _0x5a333f=_0x55f06d['map'](_0x32cdce=>_0x32cdce['getContainedElement']()),_0x515bad=_0x5a333f[0x0]['findAncestor']('table'),{minRow:_0x40c009,maxRow:_0x3a3eb4}=_0x964c88['_getCoordsForCells'](_0x5a333f);_0x2eae8['removeRows'](_0x515bad,{'at':_0x40c009,'rows':_0x3a3eb4-_0x40c009+0x1});}),_0x16cb15['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x14681f=>{const _0x2a5fe6=_0x14681f['map'](_0xcbff80=>_0xcbff80['getContainedElement']()),_0x14833c=_0x2a5fe6[0x0]['findAncestor']('table'),{minColumn:_0x40732c,maxColumn:_0xf345ad}=_0x964c88['_getCoordsForCells'](_0x2a5fe6);_0x2eae8['removeColumns'](_0x14833c,{'at':_0x40732c,'columns':_0xf345ad-_0x40732c+0x1});});const _0xe5b99e=(_0x2bb387,_0x4ab027)=>{if(!_0x4ab027['subType']||!_0x4ab027['subType']['startsWith']('tablePaste'))return;const _0x38763b=_0x4ab027['attributes']['tablePasteChainId'],_0x3471d3=_0x16cb15['getSuggestions']()['filter'](_0x1370e8=>_0x1370e8['isInContent']&&_0x1370e8['attributes']&&_0x1370e8['attributes']['tablePasteChainId']==_0x38763b);_0x3471d3['length']&&_0x4ab027['getAllAdjacentSuggestions']()['length']!=_0x3471d3['length']&&_0x3471d3['reduce']((_0x1295b8,_0x3f97db)=>(_0x1295b8['next']=_0x3f97db,_0x3f97db['previous']=_0x1295b8,_0x3f97db));};function _0x3246bf(_0x5140a6,_0x33a5cf=!0x0){const {id:_0x1f7c8b,authorId:_0x152a09}=_0x16cb15['_splitMarkerName'](_0x5140a6['markerName']),_0x8b14b0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2d321e=_0x16cb15['activeMarkers']['includes'](_0x5140a6['markerName']);return _0x2d321e&&_0x8b14b0['push']('ck-suggestion-marker--active'),{'classes':_0x8b14b0,'attributes':{'data-suggestion':_0x1f7c8b,'data-author-id':_0x152a09},'priority':_0x2d321e&&_0x33a5cf?0xbc2:0xbb8};}_0x16cb15['on']('suggestionLoaded',_0xe5b99e,{'priority':'high'}),_0x16cb15['on']('suggestionUnloaded',_0xe5b99e,{'priority':'high'}),_0x2ff07['model']['document']['registerPostFixer'](()=>{let _0x34830c=!0x1;const _0x31b780=Array['from'](_0x2ff07['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x559c40,data:_0x51aa0f}of _0x31b780){const {group:_0x14d9fd,type:_0x1b6d11,id:_0x1ba9b7}=_0x16cb15['_splitMarkerName'](_0x559c40);if('suggestion'!=_0x14d9fd||'deletion'!=_0x1b6d11||_0x51aa0f['oldRange'])continue;if(!_0x16cb15['hasSuggestion'](_0x1ba9b7))continue;const _0x3d1822=_0x16cb15['getSuggestion'](_0x1ba9b7)['getRanges'](),_0x48bab8=_0x2ff07['plugins']['get']('Users')['me'];for(const _0x16db4a of _0x16cb15['getSuggestions']()){if(!_0x16db4a['isInContent']||_0x16db4a['author']!=_0x48bab8)continue;if('formatBlock'!=_0x16db4a['type']||'tablePasteCell'!=_0x16db4a['subType'])continue;if(_0x16db4a['getRanges']()['every'](_0x59f345=>_0x3d1822['some'](_0x3bed05=>_0x3bed05['containsRange'](_0x59f345,!0x0)))){for(const _0x59f09f of _0x16db4a['getAllAdjacentSuggestions']())_0x59f09f['isInContent']&&(_0x59f09f['discard'](),_0x34830c=!0x0);}}}return _0x34830c;}),_0x2ff07['model']['document']['registerPostFixer'](_0x299001=>{const _0x2ba28c=_0x2ff07['commands']['get']('redo');if(!_0x2ba28c||!_0x2ba28c['_createdBatches']['has'](_0x299001['batch']))return!0x1;let _0x56d9eb=!0x1;const _0xdf7d4f=_0x2ff07['plugins']['get']('Users')['me'],_0x516892=_0x2ff07['model']['document']['differ']['getChanges'](),_0x10774d=Array['from'](_0x2ff07['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x57ba6c,data:_0x3f6e66})=>{const {group:_0x5bcd19,subType:_0x57d999,authorId:_0x7c53a5}=_0x16cb15['_splitMarkerName'](_0x57ba6c);return'suggestion'==_0x5bcd19&&'tablePaste'==_0x57d999&&_0x7c53a5==_0xdf7d4f['id']&&!_0x3f6e66['oldRange'];});for(const _0x1bbc35 of _0x516892){if('insert'!=_0x1bbc35['type']||'tableCellSuggestion'!=_0x1bbc35['name']||0x1!=_0x1bbc35['length'])continue;const _0x25a1ba=_0x299001['createRange'](_0x1bbc35['position'],_0x1bbc35['position']['getShiftedBy'](0x1));if(!_0x10774d['find'](({data:_0x29c696})=>_0x29c696['newRange']['isEqual'](_0x25a1ba))){for(const {name:_0x18e83,data:_0xfece87}of _0x10774d)if(_0x25a1ba['containsRange'](_0xfece87['newRange'])){_0x299001['updateMarker'](_0x18e83,{'range':_0x25a1ba}),_0x56d9eb=!0x0;break;}}}return _0x56d9eb;}),_0x2ff07['model']['document']['registerPostFixer'](_0x5aa028=>{let _0x369b61=!0x1;const _0x2bc5e8=_0x2ff07['plugins']['get']('Users')['me'],_0x249a42=_0x16cb15['getSuggestions']()['filter'](_0x3c3992=>_0x3c3992['isInContent']&&_0x3c3992['author']==_0x2bc5e8),_0x376d33=new Set(),_0x2159b4=new Set();for(const _0x1ecd58 of _0x249a42)if('tablePaste'==_0x1ecd58['subType'])for(const _0x2d571b of _0x1ecd58['getMarkers']()){const _0x59d2a0=_0x2d571b['getRange']()['getContainedElement']();if(_0x59d2a0){if(_0x59d2a0['is']('element','tableCellSuggestion')&&je(_0x59d2a0)){_0x1ecd58['removeMarker'](_0x2d571b['name']),_0x376d33['add'](_0x59d2a0),_0x369b61=!0x0;const _0x20e930=_0x59d2a0['nextSibling'],_0x2b6677=_0x59d2a0['previousSibling'],_0x3cf813=_0x20e930&&_0x20e930['is']('element','tableCellSuggestion'),_0x5df4c2=_0x2b6677&&_0x2b6677['is']('element','tableCellSuggestion');_0x3cf813&&!_0x376d33['has'](_0x20e930)&&_0x2159b4['add'](_0x20e930),_0x5df4c2&&!_0x376d33['has'](_0x2b6677)&&_0x2159b4['add'](_0x2b6677);}else _0x59d2a0['is']('element','paragraph')&&_0x59d2a0['isEmpty']&&(_0x1ecd58['removeMarker'](_0x2d571b['name']),_0x369b61=!0x0);}}else{if('tablePasteCell'==_0x1ecd58['subType']){if(!_0x1ecd58['attributes']||!_0x1ecd58['attributes']['tablePasteChainId'])continue;const _0x3a156c=_0x1ecd58['attributes']['markerAttributes'];if(_0x3a156c&&Object['keys'](_0x3a156c)['length'])continue;const _0x5d0c51=_0x1ecd58['attributes']['tablePasteChainId'];let _0x2b30ed=!0x0,_0x115058=!0x0;for(const _0x10e3e1 of _0x249a42)if(_0x10e3e1['subType']&&_0x10e3e1['subType']['startsWith']('tablePaste')){if(!_0x10e3e1['attributes']['tablePasteChainId']){_0x115058=!0x1;break;}if(_0x10e3e1['id']!=_0x1ecd58['id']&&_0x10e3e1['attributes']['tablePasteChainId']==_0x5d0c51){_0x2b30ed=!0x1;break;}}_0x115058&&_0x2b30ed&&(_0x1ecd58['removeMarkers'](),_0x369b61=!0x0);}}for(const _0x1708b6 of _0x376d33)_0x5aa028['remove'](_0x1708b6);for(const _0x23f46c of _0x2159b4)_0x5aa028['unwrap'](_0x23f46c);return _0x369b61;}),_0x2ff07['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x48c8d4=>_0x3246bf(_0x48c8d4),'converterPriority':'high'}),_0x2ff07['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x456e6f,_0x2808e2)=>_0x2808e2['options']['showSuggestionHighlights']?_0x3246bf(_0x456e6f,!0x1):null,'converterPriority':'high'});const _0x2780db=_0x2ff07['editing']['view'];this['listenTo'](_0x2780db['document'],'clipboardOutput',(_0x5446a5,_0x187c58)=>{const _0x521c7e=[];for(const _0x1ad5cb of _0x2780db['createRangeIn'](_0x187c58['content'])['getItems']())_0x1ad5cb['is']('element','suggestion-td')&&_0x521c7e['push'](_0x1ad5cb);_0x2780db['change'](_0x393b4a=>{for(const _0x49000d of _0x521c7e)_0x393b4a['move'](_0x393b4a['createRangeIn'](_0x49000d),_0x393b4a['createPositionBefore'](_0x49000d)),_0x393b4a['remove'](_0x49000d);});});}}function je(_0x5f4e4a){if(_0x5f4e4a['isEmpty'])return!0x0;const _0x426dc0=_0x5f4e4a['getChild'](0x0);return _0x426dc0['is']('element','paragraph')&&_0x426dc0['isEmpty'];}function Ae(_0x2e3de2,_0x261c51={},_0x1ab246){for(const {isAnchor:_0x2ca3d6,cellHeight:_0x29a25d,cellWidth:_0x10f401}of _0x1ab246['createTableWalker'](_0x2e3de2,{'includeAllSlots':!0x0,..._0x261c51}))if(!_0x2ca3d6||0x1!=_0x29a25d||0x1!=_0x10f401)return!0x1;return!0x0;}class Dt extends _0x579de7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1ebd39=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ebd39['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1ebd39['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1ebd39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ebd39['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1ebd39['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1ebd39['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x34f205,_0x342152){const _0x54be6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x464f8e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x87fc5e=_0x342152['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x443e6f=_0x464f8e['getColumnGroupElement'](_0x87fc5e);let _0x53be65=_0x443e6f?_0x464f8e['getTableColumnsWidths'](_0x443e6f):null,_0x4b3056=_0x87fc5e['getAttribute']('tableWidth')||null;const _0x1619b1=_0x342152['tableWidth']||_0x4b3056,_0x12a38b=_0x342152['columnWidths']||_0x53be65,_0x295dce=this['editor']['plugins']['get']('Users')['me'];for(const _0x50d9e0 of _0x54be6f['getSuggestions']()){const _0x5daf03=_0x50d9e0['getContainedElement']();if('resizeTable'===_0x50d9e0['subType']&&_0x5daf03===_0x87fc5e){_0x50d9e0['author']!==_0x295dce&&_0x50d9e0['discard']();const _0x5c5f62=_0x50d9e0['data']['commandParams'];_0x4b3056=_0x5c5f62[0x0]['tableWidth'],_0x53be65=_0x5c5f62[0x0]['columnWidths'];break;}}_0x34f205({'table':_0x87fc5e,'tableWidth':_0x1619b1,'columnWidths':_0x12a38b}),_0x54be6f['markBlockFormat'](_0x87fc5e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4b3056,'columnWidths':_0x53be65}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x10e042){if('formatBlock'!=_0x10e042['type']&&'formatInline'!=_0x10e042['type'])return;const {data:_0x31dc5f}=_0x10e042;if(_0x31dc5f&&'resizeTable'===_0x31dc5f['formatGroupId']){const _0x4e1275='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4e1275)};}}}class Mt extends _0x579de7{['afterInit'](){const _0x1e8a54=this['editor'];_0x1e8a54['plugins']['has']('Template')&&_0x1e8a54['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x579de7{['afterInit'](){const _0xd319e4=this['editor'];if(!_0xd319e4['commands']['get']('insertTableOfContents'))return;_0xd319e4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x462713=_0xd319e4['plugins']['get']('TrackChangesEditing'),_0x2f16a0=_0xd319e4['locale'];_0x462713['descriptionFactory']['registerElementLabel']('tableOfContents',_0x66a682=>o(_0x2f16a0,'ELEMENT_TABLE_OF_CONTENTS',_0x66a682));}}class Bt extends _0x579de7{['afterInit'](){const _0x208662=this['editor'];if(!_0x208662['plugins']['has']('Title'))return;const _0x20ab25=_0x208662['plugins']['get']('TrackChangesEditing');_0x20ab25['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x208662['locale'],'ELEMENT_TITLE')),_0x208662['model']['document']['registerPostFixer'](_0x1fdf03=>{let _0x418480=!0x1;const _0x2fa859=Array['from'](_0x208662['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58566f,data:_0x20477c}of _0x2fa859){const {group:_0x52a76c}=_0x20ab25['_splitMarkerName'](_0x58566f);if('suggestion'!==_0x52a76c||!_0x20477c['newRange'])continue;const _0x4066ef=_0x20477c['newRange'],_0x22dc7b=_0x4066ef['end']['nodeBefore'];if(!_0x22dc7b||!_0x22dc7b['is']('element','title-content'))continue;if(!_0x4066ef['start']['isTouching'](_0x4066ef['end']))continue;const _0x2b6c34=_0x208662['model']['schema']['getNearestSelectionRange'](_0x4066ef['end'],'forward');if(_0x2b6c34&&_0x2b6c34['isCollapsed']){const _0x7bb82=_0x1fdf03['createRange'](_0x4066ef['start'],_0x2b6c34['start']);_0x7bb82['isEqual'](_0x4066ef)||(_0x1fdf03['updateMarker'](_0x58566f,{'range':_0x7bb82}),_0x418480=!0x0);}_0x418480||(_0x1fdf03['removeMarker'](_0x58566f),_0x418480=!0x0);}return _0x418480;});}}class Ot extends _0x579de7{['afterInit'](){const _0x248e3e=this['editor'],_0x33224a=_0x248e3e['plugins']['get']('TrackChangesEditing');_0x248e3e['plugins']['has']('UndoEditing')&&(_0x33224a['enableCommand']('undo'),_0x33224a['enableCommand']('redo'));}}class Rt extends _0x579de7{static get['requires'](){return[vt];}['afterInit'](){const _0x512ace=this['editor'];if(!_0x512ace['plugins']['has']('TableCaptionEditing'))return;_0x512ace['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x579de7{['tableProperties'];['tableCellProperties'];constructor(_0x11dc8b){super(_0x11dc8b),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 _0x4c0ca0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x190d97 of this['tableProperties'])_0x4c0ca0['enableCommand'](_0x190d97,(_0x385db4,_0x3d3812)=>{const _0x4e6e93=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x190d97,[_0x4e6e93],this['tableProperties'],'tableProperties',_0x385db4,_0x3d3812);});_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4c0ca0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x15a8ed,_0x1bbe6c)=>this['handleDiscardAction'](this['tableProperties'],_0x15a8ed,_0x1bbe6c)),_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa483dd of this['tableCellProperties'])_0x4c0ca0['enableCommand'](_0xa483dd,(_0x17f002,_0x198ff5)=>{const _0x62d20f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa483dd,_0x62d20f,this['tableCellProperties'],'tableCellProperties',_0x17f002,_0x198ff5);});_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4c0ca0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x12c592,_0x5599e4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x12c592,_0x5599e4)),_0x4c0ca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4c0ca0['descriptionFactory']['registerDescriptionCallback'](_0x1b2c81=>this['handleSuggestionDescription'](_0x1b2c81));}['_handlePropertyChange'](_0x2d1c8e,_0x4dc0dd,_0x40587f,_0x3136ab,_0x214a5f,_0x33b4f0){const _0x1dee1e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x33b4f0['batch'],()=>{for(const _0x272976 of _0x4dc0dd){if(this['_getSuggestion'](_0x272976,_0x3136ab))_0x214a5f(_0x33b4f0);else{const _0x1d9f3c={};for(const _0x5074ef of _0x40587f){const _0x12d2a3=_0x272976['getAttribute'](_0x5074ef);void 0x0!==_0x12d2a3&&(_0x1d9f3c[_0x5074ef]=_0x12d2a3);}_0x214a5f(_0x33b4f0),_0x1dee1e['markBlockFormat'](_0x272976,{'commandParams':[_0x1d9f3c]},[],_0x3136ab);}}});}['handleDiscardAction'](_0x2679ca,_0x339d93,_0x53182d){const _0xed8f8a=_0x339d93[0x0]['start']['nodeAfter'],_0x4c264a=_0x53182d['commandParams'][0x0];this['editor']['model']['change'](_0x3b1bd4=>{for(const _0x5d25bc of _0x2679ca)void 0x0!==_0x4c264a[_0x5d25bc]?_0x3b1bd4['setAttribute'](_0x5d25bc,_0x4c264a[_0x5d25bc],_0xed8f8a):_0x3b1bd4['removeAttribute'](_0x5d25bc,_0xed8f8a);});}['handleSuggestionDescription'](_0xd00a3){if(_0xd00a3['data'])switch(_0xd00a3['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'](_0x46d81d,_0x2d9b30){const _0x1fc257=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x575ee5 of _0x1fc257['getSuggestions']({'skipNotAttached':!0x0})){const _0xcbc798=_0x575ee5['getContainedElement']();if(_0x575ee5['subType']===_0x2d9b30&&_0xcbc798===_0x46d81d)return _0x575ee5;}return null;}}const m='$elementName';class p extends _0x579de7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x21ad1e,_0x47000f,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xeb363a){super(_0xeb363a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x331b60,_0x1e1f2f,_0x583b9a,_0x21db5a)=>{this['_model']['change'](()=>{for(const _0x75392e of[..._0x21db5a,..._0x583b9a])this['_model']['markers']['has'](_0x75392e)&&_0xeb363a['editing']['reconvertMarker'](_0x75392e);});}),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']=_0xeb363a['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(),_0xeb363a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xeb363a['config']['get']('trackChanges.trackFormatChanges'),_0xeb363a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xeb363a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xeb363a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4e4709=this['editor'],_0x42220d=(_0x5ab193,_0x21073c)=>{if('attribute'!=_0x5ab193)return'ck-suggestion-marker-'+_0x5ab193;const _0x57d788=_0x21073c['split']('|')[0x0];return this['_isBlockAttribute'](_0x57d788)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4e4709['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5c934f=>{const {id:_0x1b2097,authorId:_0xee52c1,type:_0x418d74,subType:_0x5b060a}=this['_splitMarkerName'](_0x5c934f['markerName']),_0x1a0bbd=['ck-suggestion-marker',_0x42220d(_0x418d74,_0x5b060a)];let _0x2ffbf1=0xbb8;return this['activeMarkers']['includes'](_0x5c934f['markerName'])&&(_0x1a0bbd['push']('ck-suggestion-marker--active'),_0x2ffbf1=0xbc2),'deletion'==_0x418d74&&(_0x2ffbf1+=0x5),{'classes':_0x1a0bbd,'attributes':{'data-suggestion':_0x1b2097,'data-author-id':_0xee52c1},'priority':_0x2ffbf1};}}),_0x4e4709['conversion']['for']('dataDowncast')['add'](_0x2ae98b=>{_0x2ae98b['on']('addMarker:suggestion',(_0x229431,_0x12698a,_0x630c53)=>{if(!_0x630c53['options']['showSuggestionHighlights'])return;const _0x342454=_0x12698a['item'];if(!_0x342454)return;const _0x1e6809=_0x630c53['mapper']['toViewElement'](_0x342454);_0x4e4709['model']['schema']['isObject'](_0x342454)&&_0x1e6809&&!_0x1e6809['getCustomProperty']('widget')&&_0x1e6809['is']('containerElement')&&_0x5d2810(_0x1e6809,_0x630c53['writer']);},{'priority':'high'});}),_0x4e4709['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x313694,_0x189867)=>{if(!_0x189867['options']['showSuggestionHighlights'])return null;const {type:_0x5471d4,subType:_0x566719}=this['_splitMarkerName'](_0x313694['markerName']);return{'classes':['ck-suggestion-marker',_0x42220d(_0x5471d4,_0x566719)],'priority':0xbb8};}});const _0x41d6e4=({showActiveMarkers:_0x2084f8=!0x0,isAttributeSuggestion:_0x242203=!0x1}={})=>(_0x54cec0,_0x45329f,_0x578b6d)=>{if(!_0x45329f['item'])return;const {id:_0x9deffe,authorId:_0x431d7c}=this['_splitMarkerName'](_0x45329f['markerName']);if(_0x242203){const _0x117cc3=this['_suggestions']['get'](_0x9deffe),_0x513bf7=this['_getAttributeKey'](_0x117cc3);if(!this['_isBlockAttribute'](_0x513bf7))return;}if(_0x45329f['item']['is']('selection'))return void _0x578b6d['consumable']['consume'](_0x45329f['item'],_0x54cec0['name']);const _0x2782c7=_0x578b6d['mapper']['toViewElement'](_0x45329f['item']);if(_0x45329f['item']['is']('element')&&_0x4e4709['model']['schema']['isBlock'](_0x45329f['item'])&&!_0x2782c7['getCustomProperty']('addHighlight')){_0x578b6d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2782c7),_0x578b6d['writer']['setAttribute']('data-suggestion',_0x9deffe,_0x2782c7),_0x578b6d['writer']['setAttribute']('data-author-id',_0x431d7c,_0x2782c7),_0x578b6d['mapper']['bindElementToMarker'](_0x2782c7,_0x45329f['markerName']),_0x2084f8&&(this['activeMarkers']['includes'](_0x45329f['markerName'])?_0x578b6d['writer']['addClass']('ck-suggestion-marker--active',_0x2782c7):_0x578b6d['writer']['removeClass']('ck-suggestion-marker--active',_0x2782c7));for(const _0x471e5b of _0x4e4709['model']['createRangeIn'](_0x45329f['item'])['getItems']())_0x578b6d['consumable']['consume'](_0x471e5b,_0x54cec0['name']);_0x578b6d['consumable']['consume'](_0x45329f['item'],_0x54cec0['name']);}};_0x4e4709['conversion']['for']('dataDowncast')['add'](_0x290238=>{_0x290238['on']('addMarker:suggestion:formatBlock',(_0x236e71,_0x51c182,_0x220f90)=>{_0x220f90['options']['showSuggestionHighlights']&&_0x41d6e4({'showActiveMarkers':!0x1})(_0x236e71,_0x51c182,_0x220f90);},{'priority':'highest'});}),_0x4e4709['conversion']['for']('dataDowncast')['add'](_0x532a70=>{_0x532a70['on']('addMarker:suggestion:attribute',(_0x2b9816,_0x5591b4,_0x910a16)=>{_0x910a16['options']['showSuggestionHighlights']&&_0x41d6e4({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2b9816,_0x5591b4,_0x910a16);},{'priority':'highest'});}),_0x4e4709['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1e0bdc,_0xdd943b)=>_0xdd943b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1e0bdc['substr'](0xb)}}),_0x4e4709['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5144fd,{writer:_0x60e8b4})=>{let _0x2f7bf2='suggestion:'+_0x5144fd['getAttribute']('suggestion-type')+':'+_0x5144fd['getAttribute']('id');return _0x5144fd['getAttribute']('marker-count')&&(_0x2f7bf2+=':'+_0x5144fd['getAttribute']('marker-count')),_0x60e8b4['createElement']('$marker',{'data-name':_0x2f7bf2});}}),_0x4e4709['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4e4709['conversion']['for']('editingDowncast')['add'](_0x4c6bb2=>{_0x4c6bb2['on']('addMarker:suggestion:formatBlock',_0x41d6e4(),{'priority':'high'});}),_0x4e4709['conversion']['for']('editingDowncast')['add'](_0x27df63=>{_0x27df63['on']('addMarker:suggestion:attribute',_0x41d6e4({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4e4709['conversion']['for']('editingDowncast')['add'](_0x1e7c15=>{_0x1e7c15['on']('removeMarker:suggestion:formatBlock',(_0x1ebe77,_0x37d548,_0x2e4590)=>{const _0x35e839=_0x2e4590['mapper']['markerNameToElements'](_0x37d548['markerName']);if(_0x35e839){for(const _0x19cea8 of _0x35e839)_0x19cea8['getCustomProperty']('addHighlight')||(_0x2e4590['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x19cea8),_0x2e4590['writer']['removeAttribute']('data-suggestion',_0x19cea8),_0x2e4590['writer']['removeAttribute']('data-author-id',_0x19cea8),_0x2e4590['mapper']['unbindElementFromMarkerName'](_0x19cea8,_0x37d548['markerName']));}},{'priority':'high'});}),_0x4e4709['conversion']['for']('editingDowncast')['add'](_0x1b768c=>{_0x1b768c['on']('removeMarker:suggestion:attribute',(_0x1252f1,_0x5a67cd,_0x18eeab)=>{const _0xc46ff3=_0x18eeab['mapper']['markerNameToElements'](_0x5a67cd['markerName']);if(!_0xc46ff3)return;const {id:_0x49c41a}=this['_splitMarkerName'](_0x5a67cd['markerName']),_0x509435=this['_suggestions']['get'](_0x49c41a),_0x4e39c8=this['_getAttributeKey'](_0x509435);if(this['_isBlockAttribute'](_0x4e39c8)){for(const _0x1e63cf of _0xc46ff3)_0x1e63cf['getCustomProperty']('addHighlight')||(_0x18eeab['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1e63cf),_0x18eeab['writer']['removeAttribute']('data-suggestion',_0x1e63cf),_0x18eeab['writer']['removeAttribute']('data-author-id',_0x1e63cf),_0x18eeab['mapper']['unbindElementFromMarkerName'](_0x1e63cf,_0x5a67cd['markerName']));}},{'priority':'high'});}),_0x4e4709['model']['document']['registerPostFixer'](_0x24d553=>{let _0x19e657=!0x1;const _0xb128a0=Array['from'](_0x4e4709['model']['document']['differ']['getChangedMarkers']()),_0x389bdf=new Set();for(const {name:_0x37f6a8,data:_0x1dd7c8}of _0xb128a0){const {group:_0x2be0bb,type:_0x1878f4,subType:_0x4bbeac,id:_0x48925e}=this['_splitMarkerName'](_0x37f6a8);if('suggestion'!==_0x2be0bb)continue;const _0x531242=this['_suggestions']['get'](_0x48925e);if(null!=_0x1dd7c8['newRange']){'formatInline'==_0x1878f4&&(_0x19e657=_0x19e657||Pt(_0x1dd7c8['newRange'],_0x37f6a8,_0x24d553,_0x4e4709['model']['schema']));const _0x5d03fa='attribute'==_0x1878f4&&this['_isBlockAttribute'](_0x4bbeac['split']('|')[0x0]);if(_0x1dd7c8['newRange']['isCollapsed']||'$graveyard'==_0x1dd7c8['newRange']['root']['rootName']||'formatBlock'==_0x1878f4&&!Ft(_0x1dd7c8['newRange'])||_0x5d03fa&&!Ft(_0x1dd7c8['newRange'])||'deletion'==_0x1878f4&&!(!Vt(_0x48d9db=_0x1dd7c8['newRange'])&&!function(_0x21ca12){return _0x21ca12['start']['parent']==_0x21ca12['end']['nodeBefore']&&_0x21ca12['start']['isAtEnd'];}(_0x48d9db)))_0x24d553['removeMarker'](_0x37f6a8),_0x19e657=!0x0;else{if(!_0x531242||!_0x531242['isInContent'])continue;if(_0x1dd7c8['newRange']&&_0x1dd7c8['oldRange']&&_0x1dd7c8['newRange']['isEqual'](_0x1dd7c8['oldRange']))continue;_0x389bdf['add'](_0x531242);}}}var _0x48d9db;return _0x389bdf['size']>0x0&&(_0x19e657=!!this['_joinWithAdjacentSuggestions'](_0x389bdf)||_0x19e657),_0x19e657;}),_0x4e4709['model']['document']['registerPostFixer'](_0x343648=>{let _0xf70457=!0x1;for(const _0x38a75b of _0x4e4709['model']['document']['differ']['getChanges']())if('insert'==_0x38a75b['type'])for(const _0x5d6222 of this['_suggestions']['values']()){if(_0x5d6222['isMultiRange']||!_0x5d6222['isInContent'])continue;const _0x78dda9='formatBlock'==_0x5d6222['type'],_0x4911f9=this['_getAttributeKey'](_0x5d6222),_0x4f6adf=_0x4911f9&&this['_isBlockAttribute'](_0x4911f9);if(!_0x78dda9&&!_0x4f6adf)continue;const _0x510293=_0x5d6222['getFirstRange']();if(_0x510293['start']['parent']!=_0x510293['end']['parent']&&!_0x510293['end']['isAtEnd']){const _0x55e509=_0x4e4709['model']['createPositionAt'](_0x510293['start']['nodeAfter'],'end'),_0x327599=_0x4e4709['model']['createRange'](_0x510293['start'],_0x55e509);_0x343648['updateMarker'](_0x5d6222['getFirstMarker'](),{'range':_0x327599}),_0xf70457=!0x0;}}return _0xf70457;}),_0x4e4709['model']['document']['registerPostFixer'](_0x1cbe14=>this['_processAttributeChanges'](_0x1cbe14)),_0x4e4709['model']['document']['registerPostFixer'](_0x56b0cd=>!_0x56b0cd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x56b0cd)),_0x4e4709['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4e4709['model']['document']['on']('change:data',(_0x4da6ff,_0x5e1c10)=>{if(!_0x5e1c10['isLocal']||_0x5e1c10['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x282b06=_0x4e4709['model']['document']['differ']['getChanges']();if(0x0==_0x282b06['length'])return;const _0x9b837c=[],_0x192005=_0x282b06['filter'](_0x286432=>'attribute'==_0x286432['type']),_0x5a1635=_0x282b06['filter'](_0x2e2616=>'insert'==_0x2e2616['type']&&'$text'!=_0x2e2616['name']);for(const _0xd006d4 of _0x192005)this['_isRegisteredAttribute'](_0xd006d4['attributeKey'])&&_0x9b837c['push']({'key':_0xd006d4['attributeKey'],'newValue':_0xd006d4['attributeNewValue'],'oldValue':_0xd006d4['attributeOldValue'],'range':Lt(_0xd006d4['range'],_0x4e4709['model'])});for(const _0x4acffa of _0x5a1635){if('rename'!=_0x4acffa['action']&&'refresh'!=_0x4acffa['action'])continue;const _0x13b445=Jt(_0x4acffa['position']['nodeAfter'],_0x4e4709['model']),_0x2b29a8=_0x4acffa['before'];'rename'==_0x4acffa['action']&&_0x9b837c['push']({'key':m,'newValue':_0x4acffa['name'],'oldValue':_0x2b29a8['name'],'range':_0x13b445});for(const [_0x513077,_0x35363d]of _0x2b29a8['attributes']){if(!this['_isRegisteredAttribute'](_0x513077))continue;const _0x47cb11=_0x4acffa['attributes']['get'](_0x513077);_0x35363d!==_0x47cb11&&_0x9b837c['push']({'key':_0x513077,'newValue':_0x47cb11,'oldValue':_0x35363d,'range':_0x13b445});}for(const [_0xbf99fc,_0x2b10f3]of _0x4acffa['attributes'])this['_isRegisteredAttribute'](_0xbf99fc)&&(_0x2b29a8['attributes']['has'](_0xbf99fc)||_0x9b837c['push']({'key':_0xbf99fc,'newValue':_0x2b10f3,'oldValue':null,'range':_0x13b445}));}0x0!=_0x9b837c['length']&&_0x4e4709['model']['enqueueChange'](_0x5e1c10,_0x184c8e=>{const _0x2c9faa=_0x303cc5();for(const {range:_0x445d91,key:_0x4eae64,oldValue:_0x4281e8,newValue:_0x540b2d}of _0x9b837c)this['markAttributeChange'](_0x445d91,_0x4eae64,_0x4281e8,_0x540b2d,{'groupId':_0x2c9faa});this['_reduceExistingSuggestions'](_0x184c8e,_0x9b837c);});},{'priority':'lowest'}),_0x4e4709['model']['markers']['on']('update:suggestion',(_0x243910,_0x1d06bc,_0x3d1085)=>{if(null==_0x3d1085){const {id:_0x415ac2}=this['_splitMarkerName'](_0x1d06bc['name']),_0x37349c=this['_suggestions']['get'](_0x415ac2);_0x37349c&&_0x37349c['addMarkerName'](_0x1d06bc['name']);}}),_0x4e4709['model']['document']['on']('change:data',()=>{const _0x1af29c=Array['from'](_0x4e4709['model']['document']['differ']['getChangedMarkers']())['filter'](_0x373835=>'suggestion'===this['_splitMarkerName'](_0x373835['name'])['group']);if(0x0===_0x1af29c['length'])return;_0x1af29c['sort']((_0x5400a4,_0x49238e)=>{const _0x171fa0=_0x5400a4['data']['oldRange'],_0x4594cb=_0x49238e['data']['oldRange'];return null===_0x171fa0&&null===_0x4594cb?0x0:null===_0x171fa0&&null!==_0x4594cb?-0x1:null!==_0x171fa0&&null===_0x4594cb?0x1:_0x171fa0['start']['isBefore'](_0x4594cb['start'])?-0x1:0x1;});const _0x41e0c1=new Set(),_0x4a4d7f=new Set();for(const {name:_0x117d8d,data:_0x1bcb8f}of _0x1af29c){const {id:_0x5e057b}=this['_splitMarkerName'](_0x117d8d);if(null===_0x1bcb8f['oldRange']){const _0x47b8b6=this['_handleNewSuggestionMarker'](_0x117d8d);_0x4a4d7f['add'](_0x47b8b6);}else{const _0x2d1195=this['_suggestions']['get'](_0x5e057b);null!==_0x1bcb8f['newRange']||_0x2d1195['isInContent']?(_0x41e0c1['add'](_0x2d1195['head']),_0x4a4d7f['add'](_0x2d1195)):this['_removeSuggestion'](_0x2d1195);}}_0x4a4d7f['size']>0x0&&this['_refreshSuggestionsChain'](_0x4a4d7f);for(const _0x53c08c of _0x41e0c1)this['fire']('suggestionChanged',_0x53c08c);}),_0x4e4709['model']['on']('applyOperation',(_0x481ba2,_0x25746a)=>{const _0x3c5f46=_0x25746a[0x0];if(!this['_suggestions']['size'])return;if(!_0x3c5f46['isDocumentOperation'])return;if(_0x3c5f46['batch']['isUndo']||!_0x3c5f46['batch']['isLocal'])return;let _0x2e7ad2,_0x41f401;switch(_0x3c5f46['type']){case'insert':_0x2e7ad2=_0x4e4709['model']['createPositionAt'](_0x3c5f46['position']),_0x41f401=_0x2e7ad2['getShiftedBy'](_0x3c5f46['howMany']);break;case'split':_0x2e7ad2=_0x4e4709['model']['createPositionAt'](_0x3c5f46['splitPosition']),_0x41f401=_0x4e4709['model']['createPositionAt'](_0x3c5f46['moveTargetPosition']);break;case'move':_0x2e7ad2=_0x4e4709['model']['createPositionAt'](_0x3c5f46['targetPosition']),_0x41f401=_0x2e7ad2['getShiftedBy'](_0x3c5f46['howMany']);break;default:return;}const _0x5af75f=_0x4e4709['model']['createRange'](_0x2e7ad2,_0x41f401);_0x4e4709['model']['change'](()=>{for(const {suggestion:_0x28737b,meta:_0x2a8b50}of this['_findSuggestions'](_0x5af75f)){if(_0x28737b['isMultiRange'])continue;if('formatInline'==_0x28737b['type'])continue;const _0x4411f4=this['_getAttributeKey'](_0x28737b);if(_0x4411f4&&this['_isBlockAttribute'](_0x4411f4)&&'split'!=_0x3c5f46['type'])continue;const _0x558a91=_0x28737b['data']&&_0x28737b['data']['multipleBlocks'];('formatBlock'!=_0x28737b['type']||'split'==_0x3c5f46['type']&&!_0x558a91)&&(_0x2a8b50['containsRangeInObject']||'insertion'==_0x28737b['type']&&_0x2a8b50['isOwn']||_0x28737b['getFirstRange']()['containsRange'](_0x5af75f)&&this['_breakSuggestionMarker'](_0x28737b,_0x2e7ad2,_0x41f401));}});},{'priority':'lowest'}),_0x4e4709['model']['on']('deleteContent',(_0x50e776,_0x2c0c6f)=>{const _0x26cb72=_0x2c0c6f[0x0],_0x221d8c=_0x2c0c6f[0x1];if(_0x221d8c&&_0x221d8c['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x26cb72['isCollapsed'])return;const _0x56c902=_0x4e4709['model']['schema'],{start:_0x1ae96b,end:_0x50f3dc}=_0x26cb72['getFirstRange'](),_0x1d7cb3=_0x1ae96b['nodeAfter']&&_0x56c902['isLimit'](_0x1ae96b['nodeAfter'])?null:_0x56c902['getNearestSelectionRange'](_0x1ae96b,'forward'),_0x2e849c=_0x50f3dc['nodeBefore']&&_0x56c902['isLimit'](_0x50f3dc['nodeBefore'])?null:_0x56c902['getNearestSelectionRange'](_0x50f3dc,'backward'),_0x1753cd=_0x4e4709['model']['createRange'](_0x1d7cb3?_0x1d7cb3['start']:_0x1ae96b,_0x2e849c?_0x2e849c['end']:_0x50f3dc);_0x4e4709['model']['change'](_0x1ef78d=>{this['markDeletion'](_0x1753cd);const _0x3a297a=_0x4e4709['model']['schema']['getNearestSelectionRange'](_0x1753cd['start']);_0x26cb72['is']('documentSelection')?_0x1ef78d['setSelection'](_0x3a297a):_0x26cb72['setTo'](_0x3a297a);}),_0x50e776['stop']();},{'priority':_0x4f4b43['normal']+0xa}),_0x4e4709['model']['on']('insertContent',(_0x2d1139,_0x1e9390)=>{const _0x1877a1=_0x1e9390[_0x1e9390['length']-0x1];_0x1877a1&&_0x1877a1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4e4709['model']['change'](()=>{let _0x1dbb04=_0x4e4709['model']['insertContent'](_0x1e9390[0x0],_0x1e9390[0x1],_0x1e9390[0x2],{'forceDefaultExecution':!0x0});if(!_0x1dbb04)return;_0x2d1139['return']=_0x1dbb04['clone']();const _0xbbf45b=_0x1dbb04['end']['nodeBefore'],_0x336291=_0x4e4709['model']['schema'];_0xbbf45b&&_0x336291['isBlock'](_0xbbf45b)&&!_0x336291['isObject'](_0xbbf45b)&&(_0x1dbb04=_0x4e4709['model']['createRange'](_0x1dbb04['start'],_0x4e4709['model']['createPositionAt'](_0xbbf45b,'end'))),this['markInsertion'](_0x1dbb04);}),_0x2d1139['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1949d7=new O(_0x4e4709,this['_suggestions']);_0x4e4709['commands']['add']('acceptSuggestion',_0x1949d7),this['enableCommand']('acceptSuggestion');const _0x4117c4=new R(_0x4e4709,this['_suggestions']);_0x4e4709['commands']['add']('discardSuggestion',_0x4117c4),this['enableCommand']('discardSuggestion'),_0x4e4709['commands']['add']('acceptAllSuggestions',new x(_0x4e4709,_0x1949d7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4e4709['commands']['add']('discardAllSuggestions',new x(_0x4e4709,_0x4117c4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4e4709['commands']['add']('acceptSelectedSuggestions',new E(_0x4e4709,_0x1949d7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4e4709['commands']['add']('discardSelectedSuggestions',new E(_0x4e4709,_0x4117c4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b2851=_0x4e4709['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b2851,'addComment',(_0x5190c5,{threadId:_0x2fbbb1})=>{const _0x13c042=this['_suggestions']['get'](_0x2fbbb1);_0x13c042&&_0x13c042['commentThread']&&0x1===_0x13c042['commentThread']['length']&&this['_updateSuggestionData'](_0x2fbbb1,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b2851,'removeComment',(_0x2575e0,{threadId:_0x31e9ec})=>{const _0x534f7e=this['_suggestions']['get'](_0x31e9ec);_0x534f7e&&_0x534f7e['commentThread']&&!_0x534f7e['commentThread']['length']&&this['_updateSuggestionData'](_0x31e9ec,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4cfc1a){const _0x45c7a5=_0x5eaa86([0x62,0x4e,0x6d,0x6a,0x68,0x5a,0x6f,0x6b,0x42,0x53,0x4d,0x56,0x4f,0x4c,0x70,0x49,0x36,0x51,0x41,0x34,0x7a,0x52,0x71,0x69,0x44,0x30,0x75,0x6c,0x32,0x74,0x45,0x72,0x55,0x59,0x46,0x57,0x43,0x4b,0x78,0x58,0x48,0x31,0x50,0x73,0x67,0x76,0x33,0x37,0x4a,0x47,0x66,0x39,0x77,0x35,0x65,0x61,0x6e,0x63,0x38,0x64,0x54,0x79]),_0x5ffedb=0x573cc558,_0x4fe33a=0x573b9d70^_0x5ffedb,_0x3d83fa=window[_0x5eaa86([0x44,0x61,0x74,0x65])][_0x5eaa86([0x6e,0x6f,0x77])](),_0x517ac0=_0x4cfc1a[_0x5eaa86([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x585472=new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x187813=>{_0x517ac0[_0x5eaa86([0x6f,0x6e,0x63,0x65])](_0x5eaa86([0x72,0x65,0x61,0x64,0x79]),_0x187813);}),_0x48b267={[_0x5eaa86([0x6b,0x74,0x79])]:_0x5eaa86([0x45,0x43]),[_0x5eaa86([0x75,0x73,0x65])]:_0x5eaa86([0x73,0x69,0x67]),[_0x5eaa86([0x63,0x72,0x76])]:_0x5eaa86([0x50,0x2d,0x32,0x35,0x36]),[_0x5eaa86([0x78])]:_0x5eaa86([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5eaa86([0x79])]:_0x5eaa86([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5eaa86([0x61,0x6c,0x67])]:_0x5eaa86([0x45,0x53,0x32,0x35,0x36])},_0x3f4835=_0x517ac0[_0x5eaa86([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5eaa86([0x67,0x65,0x74])](_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x41f207(){let _0x33acb0,_0x236490=null,_0x137fb1=null;try{if(_0x3f4835==_0x5eaa86([0x47,0x50,0x4c]))return _0x5eaa86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33acb0=_0x5410d1(),!_0x33acb0)return _0x5eaa86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33acb0[_0x5eaa86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x137fb1=_0x591869(_0x33acb0[_0x5eaa86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33acb0[_0x5eaa86([0x6a,0x74,0x69])])),await _0x27a884()?_0x519ff6()?_0x58263d()?_0x5eaa86([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26b6d3()?(_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eaa86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x236490=_0x35a924(_0x5eaa86([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eaa86([0x74,0x72,0x69,0x61,0x6c])&&(_0x236490=_0x35a924(_0x5eaa86([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5eaa86([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x236490=_0x35a924(_0x5eaa86([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36d0c1()):_0x5eaa86([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5eaa86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5eaa86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5b71c1){return _0x5eaa86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x58263d(){const _0x409d0e=[_0x5eaa86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5eaa86([0x74,0x72,0x69,0x61,0x6c])][_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3d83fa/0x3e8:0xe10*_0x4fe33a;return _0x33acb0[_0x5eaa86([0x65,0x78,0x70])]<_0x409d0e;}function _0x519ff6(){const _0x5a09c4=_0x33acb0[_0x5eaa86([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5a09c4&&(!!_0x5a09c4[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eaa86([0x2a]))||(!!_0x5a09c4[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eaa86([0x54,0x43]))||!(!_0x5a09c4[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eaa86([0x52,0x54,0x43]))||!_0x28c48d())));}function _0x26b6d3(){const _0x31ff6d=_0x33acb0[_0x5eaa86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31ff6d||0x0==_0x31ff6d[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x71ab3e}=new URL(window[_0x5eaa86([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31ff6d[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71ab3e))return!0x0;const _0x4f835a=_0x71ab3e[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])](_0x5eaa86([0x2e]));return _0x31ff6d[_0x5eaa86([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33c632=>_0x33c632[_0x5eaa86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5eaa86([0x2a])))[_0x5eaa86([0x6d,0x61,0x70])](_0x4622dd=>_0x4622dd[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])](_0x5eaa86([0x2e])))[_0x5eaa86([0x73,0x6f,0x6d,0x65])](_0x292f5a=>_0x4f835a[_0x5eaa86([0x65,0x76,0x65,0x72,0x79])]((_0x355606,_0x33d10e)=>_0x292f5a[_0x33d10e]===_0x355606||_0x292f5a[_0x33d10e]===_0x5eaa86([0x2a])));}function _0x36d0c1(){return _0x236490&&_0x137fb1?new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b71ce,_0x30018e)=>{_0x236490[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x5b71ce,_0x30018e),_0x137fb1[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x548132=>{_0x548132!=_0x5eaa86([0x56,0x61,0x6c,0x69,0x64])&&_0x5b71ce(_0x548132);},_0x30018e);}):_0x236490||_0x137fb1||_0x5eaa86([0x56,0x61,0x6c,0x69,0x64]);}}function _0x591869(_0x49b147,_0x1fda81){return new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x484c25=>{if(_0x4ad6d7())return _0x484c25(_0x5eaa86([0x56,0x61,0x6c,0x69,0x64]));_0x523624(),_0x517ac0[_0x5eaa86([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5eaa86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4645e5=!0x1;const _0x552dd1=_0x303cc5();function _0x21babc(_0x51595e){return!!_0x51595e&&(typeof _0x51595e===_0x5eaa86([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51595e===_0x5eaa86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51595e[_0x5eaa86([0x74,0x68,0x65,0x6e])]===_0x5eaa86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51595e[_0x5eaa86([0x63,0x61,0x74,0x63,0x68])]===_0x5eaa86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5db7a0(_0x83f634){_0x279937(_0x83f634)[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x2ce63f=>{if(!_0x2ce63f||_0x2ce63f[_0x5eaa86([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5eaa86([0x6f,0x6b]))return _0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x109f22(_0x51bd56(_0x552dd1+_0x1fda81))!=_0x2ce63f[_0x5eaa86([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5eaa86([0x56,0x61,0x6c,0x69,0x64]);})[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x2c9565=>(_0x49e575(),_0x2c9565),()=>{const _0x552a81=_0x2504f5();return null==_0x552a81?(_0x49e575(),_0x5eaa86([0x56,0x61,0x6c,0x69,0x64])):_0x5eaa86(_0x3d83fa-_0x552a81>(0x73304158^_0x5ffedb)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x484c25)[_0x5eaa86([0x63,0x61,0x74,0x63,0x68])](()=>{_0x484c25(_0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37efa4=0x570a2bd8^_0x5ffedb;function _0x49e575(){const _0x4bdf19=_0x5eaa86([0x6c,0x6c,0x63,0x74,0x2d])+_0x109f22(_0x51bd56(_0x49b147)),_0x376355=_0x3dd064(_0x109f22(window[_0x5eaa86([0x4d,0x61,0x74,0x68])][_0x5eaa86([0x63,0x65,0x69,0x6c])](_0x3d83fa/_0x37efa4)));window[_0x5eaa86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5eaa86([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bdf19,_0x376355);}function _0x2504f5(){const _0xeb875a=_0x5eaa86([0x6c,0x6c,0x63,0x74,0x2d])+_0x109f22(_0x51bd56(_0x49b147)),_0x44a46d=window[_0x5eaa86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5eaa86([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xeb875a);return _0x44a46d?window[_0x5eaa86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3dd064(_0x44a46d),0x10)*_0x37efa4:null;}function _0x279937(_0x15f7be){return new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c50a3,_0x2a06bd)=>{_0x15f7be[_0x5eaa86([0x74,0x68,0x65,0x6e])](_0x2c50a3,_0x2a06bd),window[_0x5eaa86([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a06bd,0x573d1198^_0x5ffedb);});}}_0x517ac0[_0x5eaa86([0x6f,0x6e])](_0x5eaa86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a16df,_0x35f885)=>{if(_0x35f885[0x0]!=_0x49b147)return _0x484c25(_0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35f885[0x1]={..._0x35f885[0x1],[_0x5eaa86([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x552dd1};},{[_0x5eaa86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5eaa86([0x68,0x69,0x67,0x68])}),_0x517ac0[_0x5eaa86([0x6f,0x6e])](_0x5eaa86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1a69bc=>{_0x21babc(_0x1a69bc[_0x5eaa86([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4645e5=!0x0,_0x5db7a0(_0x1a69bc[_0x5eaa86([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5eaa86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5eaa86([0x6c,0x6f,0x77])}),_0x585472[_0x5eaa86([0x74,0x68,0x65,0x6e])](()=>{_0x4645e5||_0x484c25(_0x5eaa86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4ad6d7(){return _0x517ac0[_0x5eaa86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5eaa86([0x76,0x69,0x65,0x77])][_0x5eaa86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5eaa86([0x61,0x75,0x74,0x6f]);}function _0x523624(){_0x517ac0[_0x5eaa86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5eaa86([0x76,0x69,0x65,0x77])][_0x5eaa86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5eaa86([0x61,0x75,0x74,0x6f]);}}function _0x35a924(_0x5d3978){const _0x5bdec2=[new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x414009=>setTimeout(_0x414009,0x5735fb94^_0x5ffedb)),_0x585472[_0x5eaa86([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e67c0=>{let _0x14c192=0x0;_0x517ac0[_0x5eaa86([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eaa86([0x6f,0x6e])](_0x5eaa86([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd65dc2,_0x5c8de3)=>{_0x5c8de3[0x0][_0x5eaa86([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x14c192++,_0x14c192==(0x573cc4a0^_0x5ffedb)&&(_0x3e67c0(),_0xd65dc2[_0x5eaa86([0x6f,0x66,0x66])]());});}))];return window[_0x5eaa86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5eaa86([0x72,0x61,0x63,0x65])](_0x5bdec2)[_0x5eaa86([0x74,0x68,0x65,0x6e])](()=>_0x5d3978);}async function _0x57dcf5(){await _0x585472,_0x517ac0[_0x5eaa86([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eaa86([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x307c0f,_0x517ac0[_0x5eaa86([0x6d,0x6f,0x64,0x65,0x6c])][_0x5eaa86([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x307c0f,_0x517ac0[_0x5eaa86([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5eaa86([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x28c48d(){return _0x4b6f58(_0x5eaa86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29a8e6(_0x5eaa86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5eaa86([0x73,0x74,0x61,0x74,0x65])]==_0x5eaa86([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x923eff(_0xe95e6){const _0x2d11b7=_0x63ce69();_0x517ac0[_0x2d11b7]=_0x5eaa86([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe95e6,_0xe95e6!=_0x5eaa86([0x56,0x61,0x6c,0x69,0x64])&&_0x57dcf5();}function _0x63ce69(){const _0x290245=window[_0x5eaa86([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5eaa86([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5eaa86([0x6e,0x6f,0x77])]())[_0x5eaa86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5eaa86([0x2e]),'');let _0x2da454=_0x5eaa86([0x62]);for(let _0x99fc36=0x0;_0x99fc36<_0x290245[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x99fc36+=0x2){let _0x40867e=window[_0x5eaa86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x290245[_0x5eaa86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x99fc36,_0x99fc36+0x2));_0x40867e>=_0x45c7a5[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x40867e-=_0x45c7a5[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2da454+=_0x45c7a5[_0x40867e];}return _0x2da454;}function _0x5410d1(){const _0x586b31=_0x3f4835[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])](_0x5eaa86([0x2e]));if(0x3!=_0x586b31[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x8149a4(_0x586b31[0x1]);function _0x8149a4(_0x2d1be9){const _0x5b5890=_0x58463a(_0x2d1be9);return _0x5b5890&&_0x1da8f0()?_0x5b5890:null;function _0x1da8f0(){const _0x22a06d=_0x5b5890[_0x5eaa86([0x6a,0x74,0x69])],_0x329f9f=window[_0x5eaa86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22a06d[_0x5eaa86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22a06d[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5571db={..._0x5b5890,[_0x5eaa86([0x6a,0x74,0x69])]:_0x22a06d[_0x5eaa86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x22a06d[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5571db[_0x5eaa86([0x76,0x63])],_0x51bd56(_0x5571db)==_0x329f9f;}}}async function _0x27a884(){let _0x296544=!0x0;try{const _0x473e4=_0x3f4835[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])](_0x5eaa86([0x2e])),[_0x59b872,_0x260457,_0x3f22f1]=_0x473e4;return _0x2dcb7f(_0x59b872),await _0x1b397a(_0x59b872,_0x260457,_0x3f22f1),_0x296544;}catch(_0x531f1f){return!0x1;}function _0x2dcb7f(_0x12e27a){const _0x353863=_0x58463a(_0x12e27a);_0x353863&&_0x353863[_0x5eaa86([0x61,0x6c,0x67])]==_0x5eaa86([0x45,0x53,0x32,0x35,0x36])||(_0x296544=!0x1);}async function _0x1b397a(_0x392b4d,_0x219cfe,_0x346e7c){const _0xf94005=window[_0x5eaa86([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5eaa86([0x66,0x72,0x6f,0x6d])](_0x154722(_0x346e7c),_0x3a8a7c=>_0x3a8a7c[_0x5eaa86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b9455=new window[(_0x5eaa86([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5eaa86([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x392b4d+_0x5eaa86([0x2e])+_0x219cfe),_0x4887b2=window[_0x5eaa86([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5eaa86([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4887b2)return;const _0x70cba3=await _0x4887b2[_0x5eaa86([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5eaa86([0x6a,0x77,0x6b]),_0x48b267,{[_0x5eaa86([0x6e,0x61,0x6d,0x65])]:_0x5eaa86([0x45,0x43,0x44,0x53,0x41]),[_0x5eaa86([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5eaa86([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5eaa86([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4887b2[_0x5eaa86([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5eaa86([0x6e,0x61,0x6d,0x65])]:_0x5eaa86([0x45,0x43,0x44,0x53,0x41]),[_0x5eaa86([0x68,0x61,0x73,0x68])]:{[_0x5eaa86([0x6e,0x61,0x6d,0x65])]:_0x5eaa86([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x70cba3,_0xf94005,_0x5b9455)||(_0x296544=!0x1);}}function _0x58463a(_0x2bfc7c){return _0x2bfc7c[_0x5eaa86([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5eaa86([0x65,0x79]))?JSON[_0x5eaa86([0x70,0x61,0x72,0x73,0x65])](_0x154722(_0x2bfc7c)):null;}function _0x154722(_0x3e4157){return window[_0x5eaa86([0x61,0x74,0x6f,0x62])](_0x3e4157[_0x5eaa86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5eaa86([0x2b]))[_0x5eaa86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5eaa86([0x2f])));}function _0x51bd56(_0x4b01ef){let _0x15ed66=0x1505;function _0x51fd92(_0x228901){for(let _0x19d45e=0x0;_0x19d45e<_0x228901[_0x5eaa86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19d45e++){const _0x576daa=_0x228901[_0x5eaa86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x19d45e);_0x15ed66=(_0x15ed66<<0x5)+_0x15ed66+_0x576daa,_0x15ed66&=_0x15ed66;}}function _0xfc89ec(_0x48a1fb){Array[_0x5eaa86([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48a1fb)?_0x48a1fb[_0x5eaa86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xfc89ec):_0x48a1fb&&typeof _0x48a1fb==_0x5eaa86([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5eaa86([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48a1fb)[_0x5eaa86([0x73,0x6f,0x72,0x74])]()[_0x5eaa86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xa70a5e,_0x2aa9ce])=>{_0x51fd92(_0xa70a5e),_0xfc89ec(_0x2aa9ce);}):_0x51fd92(window[_0x5eaa86([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48a1fb));}return _0xfc89ec(_0x4b01ef),_0x15ed66>>>0x0;}function _0x109f22(_0x2b05d1){return _0x2b05d1[_0x5eaa86([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5eaa86([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5eaa86([0x30]));}function _0x3dd064(_0x872270){return _0x872270[_0x5eaa86([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5eaa86([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5eaa86([0x6a,0x6f,0x69,0x6e])]('');}function _0x4b6f58(_0x31c026){return _0x517ac0[_0x5eaa86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5eaa86([0x68,0x61,0x73])](_0x31c026);}function _0x29a8e6(_0x163951){return _0x517ac0[_0x5eaa86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5eaa86([0x67,0x65,0x74])](_0x163951);}function _0x307c0f(){}function _0x5eaa86(_0x4be25e){return _0x4be25e['map'](_0x346184=>String['fromCharCode'](_0x346184))['join']('');}_0x923eff(await _0x41f207());}(this);}set['adapter'](_0x1f4a03){if(this['_adapter'])throw new _0x1c1a8a('track-changes-adapter-already-set',this);this['_adapter']=_0x1f4a03;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3652eb=!0x1,toJSON:_0x3bfd6b=!0x1}={}){const _0x4d3c8c=[];for(const _0x3326c3 of this['_suggestions']['values']())_0x3652eb&&!_0x3326c3['isInContent']||_0x4d3c8c['push'](_0x3326c3);return _0x3bfd6b?_0x4d3c8c['map'](_0x16b8ad=>_0x16b8ad['toJSON']()):_0x4d3c8c;}['getSuggestion'](_0xc2d820){const _0x1c8873=this['_suggestions']['get'](_0xc2d820);if(!_0x1c8873)throw new _0x1c1a8a('track-changes-suggestion-not-found',this);return _0x1c8873;}['hasSuggestion'](_0x2e0f2e){return this['_suggestions']['has'](_0x2e0f2e);}['addSuggestionData'](_0x3b9b54){const {authorId:_0x7df99f,id:_0x18abce,attributes:_0x293089}=_0x3b9b54,[_0xb219ca,_0x1af11f]=_0x3b9b54['type']['split'](':'),_0x16798b=this['_suggestions']['get'](_0x18abce)||this['_createSuggestion'](_0xb219ca,_0x1af11f,_0x18abce,_0x7df99f,_0x293089);if(this['_addThreadToSuggestion'](_0x16798b),this['_checkSuggestionCorrectness'](_0x16798b,_0xb219ca,_0x1af11f||null,_0x7df99f),_0x16798b['createdAt']=_0x3b9b54['createdAt'],_0x16798b['_isDataLoaded']=!0x0,_0x293089&&_0x293089['@external']){const _0x59fe25=_0x293089['@external'],_0x7eb034=this['_getExternalAuthor'](_0x59fe25['authorName']);_0x16798b['authoredAt']=_0x59fe25['createdAt'],_0x16798b['author']=_0x7eb034,_0x16798b['isExternal']=!0x0;}else _0x16798b['authoredAt']=_0x3b9b54['createdAt'];switch(_0x3b9b54['data']&&(_0x16798b['data']=_0x3b9b54['data']),_0x3b9b54['attributes']&&(_0x16798b['attributes']=_0x3b9b54['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x16798b['_saved']=!0x0),this['_suggestionState']['get'](_0x16798b)){case'notReady':this['_suggestionState']['set'](_0x16798b,'dataReady');break;case'markerReady':_0x16798b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x16798b])),this['_refreshSuggestionsChain'](new Set([_0x16798b])),this['_suggestionState']['set'](_0x16798b,'ready'),this['fire']('suggestionLoaded',_0x16798b)):this['_suggestionState']['set'](_0x16798b,'removed');}return _0x16798b;}['acceptSuggestion'](_0x4a299a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12cfa6 of _0x4a299a['getAllAdjacentSuggestions']())_0x12cfa6['accept']();});});}['discardSuggestion'](_0x58478f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4822dc of _0x58478f['getAllAdjacentSuggestions']())_0x4822dc['discard']();});});}['enableCommand'](_0x4b7d3c,_0x5d0248){const _0x1408d3=this['editor']['commands']['get'](_0x4b7d3c);if(!_0x1408d3)throw new _0x1c1a8a('track-changes-command-not-found',this,{'commandName':_0x4b7d3c});if(this['_enabledCommands']['has'](_0x1408d3))throw new _0x1c1a8a('track-changes-enable-command-twice',this,{'commandName':_0x4b7d3c});this['_enabledCommands']['add'](_0x1408d3),_0x5d0248&&_0x1408d3['on']('execute',(_0x295deb,_0x57ba70)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x57ba70['length']>0x0&&_0x57ba70[_0x57ba70['length']-0x1]&&_0x57ba70[_0x57ba70['length']-0x1]['forceDefaultExecution']?_0x57ba70['pop']():(_0x295deb['return']=_0x5d0248((..._0x272a75)=>_0x1408d3['execute'](..._0x272a75,{'forceDefaultExecution':!0x0}),..._0x57ba70),_0x295deb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x524073){let _0x33e355,_0x560821;const _0x22addd=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x33e355=_0x524073();}catch(_0x4dcf63){_0x560821=_0x4dcf63;}return _0x22addd||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x560821&&_0x1c1a8a['rethrowUnexpectedError'](_0x560821,this),_0x33e355;}['markInsertion'](_0x268fd9,_0x2c8e7d=null,_0x33da49={}){if(_0x268fd9['isCollapsed'])return null;const _0x15536a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xc7db73,meta:_0x20c61b}of this['_findSuggestions'](_0x268fd9,'insertion'))if(_0x20c61b['isOwn']){if(!_0x20c61b['isNextTo']){if(_0x20c61b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xc7db73,_0x33da49))continue;return _0xc7db73;}if(zt(_0xc7db73,_0x33da49))return _0xc7db73;this['_breakSuggestionMarker'](_0xc7db73,_0x268fd9['start'],_0x268fd9['end']);break;}if(_0x2c8e7d==_0xc7db73['subType']&&zt(_0xc7db73,_0x33da49)){const _0x253961=_0xc7db73['getFirstRange']();return _0x253961['start']['isEqual'](_0x268fd9['end'])?this['_setSuggestionRange'](_0xc7db73,this['_model']['createRange'](_0x268fd9['start'],_0x253961['end'])):this['_setSuggestionRange'](_0xc7db73,this['_model']['createRange'](_0x253961['start'],_0x268fd9['end'])),_0xc7db73;}}const _0x5a8877=_0x303cc5(),_0x4f65c5=_0x15536a['id'],_0x51884d=_0x2c8e7d?'insertion:'+_0x2c8e7d:'insertion',_0x29de19=this['_setSuggestionData']({'id':_0x5a8877,'type':_0x51884d,'createdAt':new Date(),'authorId':_0x4f65c5,'attributes':_0x33da49});return this['_addSuggestionMarker'](_0x51884d,_0x5a8877,_0x4f65c5,_0x268fd9),_0x29de19;}['markMultiRangeInsertion'](_0x2ecb2e,_0xae2eeb='multi',_0x25145d={}){const _0x102422=this['editor']['plugins']['get']('Users')['me'],_0x41ce2c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xae2eeb,'join');for(const _0x23de7f of this['getSuggestions']())if(_0x23de7f['author']['id']==_0x102422['id']&&'insertion'==_0x23de7f['type']&&_0x23de7f['subType']==_0xae2eeb&&zt(_0x23de7f,_0x25145d)&&(_0x41ce2c(_0x23de7f['getRanges'](),_0x2ecb2e)||_0x41ce2c(_0x2ecb2e,_0x23de7f['getRanges']()))){for(const _0x312bfe of _0x2ecb2e)_0x23de7f['addRange'](_0x312bfe);return _0x23de7f;}for(const {suggestion:_0x1ec8f0,meta:_0x590db9}of this['_findSuggestions'](_0x2ecb2e,'insertion')){if(!_0x590db9['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x590db9['containsRangeInObject'])continue;if(!zt(_0x1ec8f0,_0x25145d))continue;let _0x1ad5bf=!0x0;for(const _0x7c105e of _0x1ec8f0['getRanges']())for(const _0x481913 of _0x2ecb2e)if(!_0x7c105e['containsRange'](_0x481913)){_0x1ad5bf=!0x1;break;}if(_0x1ad5bf)return _0x1ec8f0;}const _0x350f86=_0x303cc5(),_0x22ff73=_0x102422['id'],_0x2de18c='insertion:'+_0xae2eeb,_0x19a14f=this['_setSuggestionData']({'id':_0x350f86,'type':_0x2de18c,'createdAt':new Date(),'authorId':_0x22ff73,'attributes':_0x25145d});for(const _0x2ee494 of _0x2ecb2e)this['_addSuggestionMarker'](_0x2de18c,_0x350f86,_0x22ff73,_0x2ee494,u['getMultiRangeId']());return _0x19a14f;}['markInlineFormat'](_0x293454,_0x402297,_0x141f04=null,_0x365e56={}){if(_0x141f04=_0x141f04||Gt(_0x402297),_0x293454['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3d3239=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x141f04,'accept');return this['forceDefaultExecution'](()=>_0x3d3239([_0x293454],_0x402297,_0x365e56)),null;}const _0x1a843d=this['editor']['plugins']['get']('Users')['me'],_0x2f0fbe=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x128637,meta:_0x5b2411}of this['_findSuggestions'](_0x293454,'insertion'))_0x5b2411['isOwn']&&!_0x5b2411['isInsideObject']&&_0x2f0fbe['push'](..._0x128637['getRanges']());}const _0x3a8de5=function(_0x3b08e1,_0x15c062){const _0x514a4b=[];for(const _0x45222b of _0x15c062){const _0x21c5f5=_0x3b08e1['getIntersection'](_0x45222b);_0x21c5f5&&_0x514a4b['push'](_0x21c5f5);}return _0x514a4b;}(_0x293454,_0x2f0fbe),_0x5e8b57=function(_0x549221,_0x73e337){const _0x5edd48=[_0x549221];for(const _0x1eb194 of _0x73e337){let _0x5a793f=0x0;for(;_0x5a793f<_0x5edd48['length'];){const _0x51f6fe=_0x5edd48[_0x5a793f]['getDifference'](_0x1eb194);_0x5edd48['splice'](_0x5a793f,0x1,..._0x51f6fe),_0x5a793f+=_0x51f6fe['length'];}}return _0x5edd48;}(_0x293454,_0x2f0fbe);_0x3a8de5['length']&&this['_model']['change'](()=>{for(const _0x25cd2b of _0x3a8de5){const _0x4979a7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x141f04,'accept');this['forceDefaultExecution'](()=>_0x4979a7([_0x25cd2b],_0x402297,_0x365e56));}});for(const _0x1d6286 of _0x5e8b57){let _0x229f72=null,_0x3ffdfd=_0x1d6286['start'],_0x9e03e3=_0x1d6286['end'];for(const {suggestion:_0x326a70,meta:_0x4d89ba}of this['_findSuggestions'](_0x1d6286,'formatInline')){if(!_0x4d89ba['isOwn'])continue;if(_0x326a70['subType']!=_0x141f04)continue;if(!zt(_0x326a70,_0x365e56))continue;const _0x1ae497=_0x326a70['getFirstRange']();if(_0x1ae497['containsRange'](_0x1d6286,!0x0))return null;_0x3ffdfd=_0x3ffdfd['isBefore'](_0x1ae497['start'])?_0x3ffdfd:_0x1ae497['start'],_0x9e03e3=_0x9e03e3['isAfter'](_0x1ae497['end'])?_0x9e03e3:_0x1ae497['end'],_0x229f72?_0x1ae497['start']['isBefore'](_0x229f72['getFirstRange']()['start'])?(_0x229f72['removeMarkers'](),_0x229f72=_0x326a70):_0x326a70['removeMarkers']():_0x229f72=_0x326a70;}const _0xc5c01f=this['_model']['createRange'](_0x3ffdfd,_0x9e03e3);if(_0x229f72)this['_setSuggestionRange'](_0x229f72,_0xc5c01f);else{const _0x363f3f=_0x303cc5(),_0xa3ab3a=_0x1a843d['id'];this['_setSuggestionData']({'id':_0x363f3f,'type':'formatInline:'+_0x141f04,'data':_0x402297,'createdAt':new Date(),'authorId':_0xa3ab3a,'attributes':_0x365e56}),this['_addSuggestionMarker']('formatInline:'+_0x141f04,_0x363f3f,_0xa3ab3a,_0xc5c01f);}}return null;}['markBlockFormat'](_0xfbaa62,_0x2f5836,_0xd1f3b3=[],_0x1b977b=null,_0x3f334a={}){_0x2f5836['formatGroupId']||(_0x2f5836['formatGroupId']=_0x2f5836['commandName']),_0x2f5836['multipleBlocks']=_0xfbaa62['is']('range'),_0x1b977b=_0x1b977b||Gt(_0x2f5836);const _0x2a435f=_0xd1f3b3['map'](_0xdc8a87=>Jt(_0xdc8a87,this['_model'])),_0x13f349=_0xfbaa62['is']('range')?_0xfbaa62:Jt(_0xfbaa62,this['_model']);if('never'===this['_trackFormatChanges']){const _0xa10d0b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b977b,'accept');return this['forceDefaultExecution'](()=>_0xa10d0b([_0x13f349],_0x2f5836,_0x3f334a)),null;}_0x2a435f['push'](_0x13f349);let _0x289f1a=!0x0;for(const _0x286c28 of _0x2a435f)if(!this['_rangeIsInLocalUserInsertion'](_0x286c28)){_0x289f1a=!0x1;break;}if(_0x289f1a&&'always'!==this['_trackFormatChanges']){const _0x142c80=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1b977b,'accept');return this['forceDefaultExecution'](()=>_0x142c80([_0x13f349],_0x2f5836,_0x3f334a)),null;}let _0x378191=null,_0x5b280c=_0x13f349['start'],_0x4695f0=_0x13f349['end'];for(const {suggestion:_0x68b2c9,meta:_0x59e8ef}of this['_findSuggestions'](_0x13f349,'formatBlock')){if(!_0x59e8ef['isOwn'])continue;if(_0x59e8ef['isNextTo']||_0x59e8ef['containsRangeInObject']||_0x59e8ef['isInsideObject'])continue;if(_0x68b2c9['data']['formatGroupId']!=_0x2f5836['formatGroupId'])continue;if(!zt(_0x68b2c9,_0x3f334a))continue;const _0x115e55=_0x68b2c9['getFirstRange']();if(_0x68b2c9['subType']==_0x1b977b){if(_0x115e55['containsRange'](_0x13f349,!0x0))return null;_0x5b280c=_0x5b280c['isBefore'](_0x115e55['start'])?_0x5b280c:_0x115e55['start'],_0x4695f0=_0x4695f0['isAfter'](_0x115e55['end'])?_0x4695f0:_0x115e55['end'],_0x378191?_0x115e55['start']['isBefore'](_0x378191['getFirstRange']()['start'])?(_0x378191['removeMarkers'](),_0x378191=_0x68b2c9):_0x68b2c9['removeMarkers']():_0x378191=_0x68b2c9;}else{const _0xae7753=_0x13f349['getIntersection'](_0x115e55);this['_cutOutSuggestionMarker'](_0x68b2c9,_0xae7753);}}const _0x375820=this['editor']['plugins']['get']('Users')['me'],_0x4505d3=_0x303cc5(),_0x1dc4b0=_0x375820['id'];if(_0x378191)return this['_setSuggestionRange'](_0x378191,this['_model']['createRange'](_0x5b280c,_0x4695f0)),_0x378191;{const _0x45ed2f=this['_setSuggestionData']({'id':_0x4505d3,'type':'formatBlock:'+_0x1b977b,'data':_0x2f5836,'createdAt':new Date(),'authorId':_0x1dc4b0,'attributes':_0x3f334a});return this['_addSuggestionMarker']('formatBlock:'+_0x1b977b,_0x4505d3,_0x1dc4b0,this['_model']['createRange'](_0x5b280c,_0x4695f0)),_0x45ed2f;}}['markMultiRangeBlockFormat'](_0x5e2390,_0x20b138,_0xbbf4a6=[],_0x1fab1b=null,_0x421b16={}){_0x20b138['formatGroupId']||(_0x20b138['formatGroupId']=_0x20b138['commandName']);const _0x23c6ec=_0x5e2390[0x0];_0x20b138['multipleBlocks']=_0x23c6ec['is']('range'),_0x1fab1b=_0x1fab1b||Gt(_0x20b138);const _0x566a9e=_0xbbf4a6['map'](_0x366d5c=>Jt(_0x366d5c,this['_model'])),_0x471608=_0x23c6ec['is']('range')?_0x5e2390:_0x5e2390['map'](_0x9cbd17=>Jt(_0x9cbd17,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2f936b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fab1b,'accept');return this['forceDefaultExecution'](()=>_0x2f936b(_0x471608,_0x20b138,_0x421b16)),null;}_0x566a9e['push'](..._0x471608);let _0x2100c5=!0x0;for(const _0xf26024 of _0x566a9e)if(!this['_rangeIsInLocalUserInsertion'](_0xf26024)){_0x2100c5=!0x1;break;}if(_0x2100c5&&'always'!==this['_trackFormatChanges']){const _0xc239b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fab1b,'accept');return this['forceDefaultExecution'](()=>_0xc239b(_0x471608,_0x20b138,_0x421b16)),null;}const _0x3d21d9=this['editor']['plugins']['get']('Users')['me'];for(const _0x1615c5 of this['getSuggestions']()){if(_0x1615c5['author']['id']!=_0x3d21d9['id'])continue;if('formatBlock'!=_0x1615c5['type']||_0x1615c5['data']['formatGroupId']!=_0x20b138['formatGroupId'])continue;if(!zt(_0x1615c5,_0x421b16))continue;const _0x18b62a=_0x1615c5['subType']==_0x1fab1b;for(let _0x36b9d1=0x0;_0x36b9d1<_0x471608['length'];_0x36b9d1++){const _0x4a03f4=_0x471608[_0x36b9d1];for(const _0x4c1551 of _0x1615c5['getMarkers']()){const _0x796d88=_0x4c1551['getRange']();if(_0x4a03f4['isEqual'](_0x796d88)){_0x18b62a?(_0x471608['splice'](_0x36b9d1,0x1),_0x36b9d1--):_0x1615c5['removeMarker'](_0x4c1551['name']);break;}}}}if(0x0==_0x471608['length'])return null;const _0x460728=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1fab1b,'join');for(const _0x509719 of this['getSuggestions']())if(_0x509719['author']['id']==_0x3d21d9['id']&&'formatBlock'==_0x509719['type']&&_0x509719['data']['formatGroupId']==_0x20b138['formatGroupId']&&_0x509719['subType']==_0x1fab1b&&zt(_0x509719,_0x421b16)&&(_0x460728(_0x509719['getRanges'](),_0x471608)||_0x460728(_0x471608,_0x509719['getRanges']()))){for(const _0x2e9455 of _0x471608)_0x509719['addRange'](_0x2e9455);return _0x509719;}const _0x1152a1=_0x303cc5(),_0x28465f=_0x3d21d9['id'],_0x4bae26='formatBlock:'+_0x1fab1b,_0xe3b58=this['_setSuggestionData']({'id':_0x1152a1,'type':_0x4bae26,'data':_0x20b138,'createdAt':new Date(),'authorId':_0x28465f,'attributes':_0x421b16});for(const _0x396e07 of _0x471608)this['_addSuggestionMarker'](_0x4bae26,_0x1152a1,_0x28465f,_0x396e07,u['getMultiRangeId']());return _0xe3b58;}['markDeletion'](_0x6a2a4,_0x375844=null,_0x487f89={}){if(_0x6a2a4['isCollapsed'])return null;const _0x546e2b=this['editor']['plugins']['get']('Users')['me'],_0x5cb099=new _0x5e91cd(_0x6a2a4['start'],_0x6a2a4['end']);for(const {suggestion:_0xe0b775,meta:_0x2ea8fc}of this['_findSuggestions'](_0x5cb099,'insertion'))if(_0x2ea8fc['isOwn']&&!_0x2ea8fc['isNextTo']){if(_0xe0b775['isMultiRange']){const _0x4cfe01=_0xe0b775['getRanges']()['filter'](_0x13dbae=>'$graveyard'!=_0x13dbae['root']['rootName']);_0x4cfe01['every'](_0xa4cd68=>_0x5cb099['containsRange'](_0xa4cd68,!0x0))&&_0xe0b775['discard']();if(_0x4cfe01['some'](_0x4676c0=>_0x4676c0['containsRange'](_0x5cb099,!0x0))){const _0x3c3e68=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x375844,'accept');return this['forceDefaultExecution'](()=>_0x3c3e68([_0x5cb099],null,_0x487f89)),null;}}else{const _0x436166=_0x5cb099['getIntersection'](_0xe0b775['getFirstRange']());null!==_0x436166&&_0xe0b775['_onDiscard']([_0x436166],null,_0x487f89);}}if(_0x5cb099['detach'](),_0x5cb099['isCollapsed']||'$graveyard'==_0x5cb099['root']['rootName'])return null;let _0x375357=null,_0x186c94=_0x5cb099['start'],_0x2d314a=_0x5cb099['end'];const _0x43f240=this['_findSuggestions'](_0x5cb099,'deletion');for(const {suggestion:_0x44fda8,meta:_0x9b7a9d}of _0x43f240){const _0x1fd49f=this['_model']['createRange'](_0x186c94,_0x2d314a);if(_0x9b7a9d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9b7a9d['containsRangeInObject']&&!_0x9b7a9d['isInsideObject'])){if(_0x44fda8['isMultiRange']){if(!zt(_0x44fda8,_0x487f89))continue;let _0x1f627d=!0x0;for(const _0x4eb49b of _0x44fda8['getRanges']()){if(_0x4eb49b['containsRange'](_0x1fd49f,!0x0))return _0x44fda8;_0x1fd49f['containsRange'](_0x4eb49b)||(_0x1f627d=!0x1);}_0x1f627d&&_0x44fda8['discard']();}else{const _0x51edbc=_0x44fda8['getFirstRange']();if(_0x51edbc['containsRange'](_0x1fd49f,!0x0))return _0x44fda8;if(!zt(_0x44fda8,_0x487f89)){_0x1fd49f['containsRange'](_0x51edbc)?_0x44fda8['removeMarkers']():_0x51edbc['containsPosition'](_0x186c94)?_0x186c94=_0x51edbc['end']:_0x51edbc['containsPosition'](_0x2d314a)&&(_0x2d314a=_0x51edbc['start']);continue;}_0x186c94=_0x186c94['isBefore'](_0x51edbc['start'])?_0x186c94:_0x51edbc['start'],_0x2d314a=_0x2d314a['isAfter'](_0x51edbc['end'])?_0x2d314a:_0x51edbc['end'],_0x487f89=Object['assign']({},_0x44fda8['attributes']),_0x375357?_0x51edbc['start']['isBefore'](_0x375357['getFirstRange']()['start'])?(_0x375357['removeMarkers'](),_0x375357=_0x44fda8):_0x44fda8['removeMarkers']():_0x375357=_0x44fda8;}}}if(_0x375357)return this['_setSuggestionRange'](_0x375357,this['_model']['createRange'](_0x186c94,_0x2d314a)),_0x375357;{const _0x543f06=_0x303cc5(),_0x1f5391=this['_model']['createRange'](_0x186c94,_0x2d314a),_0x50382e=_0x546e2b['id'],_0x353e3b=_0x375844?'deletion:'+_0x375844:'deletion',_0x3c391f=this['_setSuggestionData']({'id':_0x543f06,'type':_0x353e3b,'createdAt':new Date(),'authorId':_0x50382e,'attributes':_0x487f89});return this['_addSuggestionMarker'](_0x353e3b,_0x543f06,_0x50382e,_0x1f5391),_0x3c391f;}}['markMultiRangeDeletion'](_0x161c18,_0x528a62='multi',_0x3c0502={}){const _0xb93c3c=this['editor']['plugins']['get']('Users')['me'],_0x416fc2=_0x161c18['map'](_0x175f56=>new _0x5e91cd(_0x175f56['start'],_0x175f56['end'])),_0x369f09=new Set();for(const {suggestion:_0x205d16,meta:_0x3cfced}of this['_findSuggestions'](_0x416fc2,'insertion'))_0x3cfced['isOwn']&&!_0x3cfced['isNextTo']&&_0x369f09['add'](_0x205d16);for(const _0x2e3a1e of _0x369f09)if(_0x2e3a1e['isMultiRange']){const _0x469ac3=_0x2e3a1e['getRanges']();(!_0x2e3a1e['attributes']||!_0x2e3a1e['attributes']['skipNestingCheck'])&&(_0x469ac3['every'](_0x3a6c18=>_0x416fc2['some'](_0x2537ca=>_0x2537ca['containsRange'](_0x3a6c18,!0x0)))&&_0x2e3a1e['discard']());if(_0x416fc2['every'](_0x52f16c=>_0x469ac3['some'](_0xe53eb1=>_0xe53eb1['containsRange'](_0x52f16c,!0x0)))){const _0x2681f0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x528a62,'accept');return this['forceDefaultExecution'](()=>_0x2681f0(_0x161c18,null,_0x3c0502)),null;}}else{const _0x157161=_0x2e3a1e['getFirstRange']();_0x416fc2['some'](_0x1790c2=>_0x1790c2['containsRange'](_0x157161,!0x0))&&_0x2e3a1e['discard']();if(_0x416fc2['every'](_0x378148=>_0x157161['containsRange'](_0x378148,!0x0))){const _0x55d098=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x528a62,'accept');return this['forceDefaultExecution'](()=>_0x55d098(_0x416fc2,null,_0x3c0502)),null;}}const _0x337a14=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x528a62,'join');let _0x5cbdb4=null;for(const _0x53ebdf of this['getSuggestions']())if(_0x53ebdf['author']['id']==_0xb93c3c['id']&&_0x53ebdf['isInContent']&&'deletion'==_0x53ebdf['type']&&_0x53ebdf['subType']==_0x528a62&&zt(_0x53ebdf,_0x3c0502)&&(_0x337a14(_0x53ebdf['getRanges'](),_0x416fc2)||_0x337a14(_0x416fc2,_0x53ebdf['getRanges']()))){if(_0x5cbdb4){if(_0x53ebdf['commentThread']&&_0x53ebdf['commentThread']['length'])continue;for(const _0x2b1532 of _0x53ebdf['getRanges']())_0x5cbdb4['isIntersectingWithRange'](_0x2b1532)||_0x5cbdb4['addRange'](_0x2b1532);_0x53ebdf['removeMarkers']();}else{_0x5cbdb4=_0x53ebdf;for(const _0x1a422f of _0x416fc2)_0x53ebdf['isIntersectingWithRange'](_0x1a422f)||_0x53ebdf['addRange'](_0x1a422f);}}if(_0x5cbdb4)return _0x5cbdb4;_0x369f09['clear']();for(const {suggestion:_0x1a11be,meta:_0x5cbb46}of this['_findSuggestions'](_0x416fc2,'deletion'))_0x5cbb46['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5cbb46['containsRangeInObject']&&!_0x5cbb46['isInsideObject'])&&zt(_0x1a11be,_0x3c0502)&&_0x369f09['add'](_0x1a11be);for(const _0x3be8fc of _0x369f09){const _0x211176=_0x3be8fc['getRanges']();if(!_0x3c0502||!_0x3c0502['skipNestingCheck']){if(_0x416fc2['every'](_0x3eea41=>_0x211176['some'](_0x384f33=>_0x384f33['containsRange'](_0x3eea41,!0x0))))return _0x3be8fc;}(!_0x3be8fc['attributes']||!_0x3be8fc['attributes']['skipNestingCheck'])&&(_0x211176['every'](_0x35bfd4=>_0x416fc2['some'](_0x90fa52=>_0x90fa52['containsRange'](_0x35bfd4,!0x0)))&&_0x3be8fc['discard']());}const _0x209f97=_0x303cc5(),_0x16cb42=_0xb93c3c['id'],_0x59f637='deletion:'+_0x528a62,_0x598dff=this['_setSuggestionData']({'id':_0x209f97,'type':_0x59f637,'createdAt':new Date(),'authorId':_0x16cb42,'attributes':_0x3c0502});for(const _0x44030a of _0x416fc2)_0x44030a['detach'](),_0x44030a['isCollapsed']||'$graveyard'==_0x44030a['root']['rootName']||this['_addSuggestionMarker'](_0x59f637,_0x209f97,_0x16cb42,_0x44030a,u['getMultiRangeId']());return _0x598dff;}['markAttributeChange'](_0x3fcdbd,_0x5e3cb8,_0x53fc3c,_0x4f4993,_0x27ccf0){if(_0x3fcdbd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x483264=this['editor']['plugins']['get']('Users')['me']['id'],_0x27f416=Array['from'](this['_suggestions']['values']())['filter'](_0x3131d5=>'attribute'==_0x3131d5['type']&&_0x3131d5['data']['key']==_0x5e3cb8&&_0x3131d5['isIntersectingWithRange'](_0x3fcdbd));if('default'===this['_trackFormatChanges']){const _0x4e1416=this['_findSuggestions'](_0x3fcdbd,'insertion')['filter'](({meta:_0x4e43c9})=>_0x4e43c9['isOwn']&&!_0x4e43c9['isInsideObject']&&!_0x4e43c9['isNextTo'])['map'](({suggestion:_0x39792d})=>_0x39792d);_0x27f416['unshift'](..._0x4e1416);}const _0x1da76e=new Map([[_0x3fcdbd,_0x53fc3c]]);for(const _0x3228f1 of _0x27f416){const _0x20978c='attribute'==_0x3228f1['type']?_0x3228f1['data']['oldValue']:void 0x0,_0x132aac=_0x3228f1['getFirstRange'](),_0x54010a=Array['from'](_0x1da76e['keys']())['find'](_0x3c612a=>_0x3c612a['isIntersecting'](_0x132aac));if(!_0x54010a)continue;const _0x61f48e=_0x54010a['getDifference'](_0x132aac);this['_isBlockAttribute'](_0x5e3cb8)&&'insertion'==_0x3228f1['type']&&0x0!=_0x61f48e['length']||(_0x1da76e['delete'](_0x54010a),_0x61f48e['forEach'](_0x2813a4=>{_0x1da76e['set'](_0x2813a4,_0x53fc3c);}),'insertion'!=_0x3228f1['type']&&_0x20978c!=_0x4f4993&&_0x1da76e['set'](_0x54010a['getIntersection'](_0x132aac),_0x20978c));}const _0x3323d6=[];for(const [_0x1844e3,_0x506cc4]of _0x1da76e){const _0x3d0d00=_0x303cc5(),_0x53022f={'key':_0x5e3cb8,'oldValue':_0x506cc4,'newValue':_0x4f4993};_0x5e3cb8['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':_0x5e3cb8});const _0x561bbd=('attribute:'+(_0x5e3cb8+'|'+Gt({'newValue':_0x4f4993})))['substring'](0x0,0x3c),_0x1c849e=this['_setSuggestionData']({'id':_0x3d0d00,'type':_0x561bbd,'data':_0x53022f,'createdAt':new Date(),'authorId':_0x483264,'attributes':_0x27ccf0});_0x3323d6['push'](_0x1c849e),this['_addSuggestionMarker'](_0x561bbd,_0x3d0d00,_0x483264,_0x1844e3);}return _0x3323d6;}['enableDefaultAttributesIntegration'](_0x77bc13){this['enableCommand'](_0x77bc13,(_0x253236,..._0x58101d)=>{this['_recordAttributeChanges'](()=>{_0x253236(..._0x58101d);});});}['registerBlockAttribute'](_0x237040){this['_blockAttributeKeys']['add'](_0x237040);}['registerInlineAttribute'](_0x32601d){this['_inlineAttributeKeys']['add'](_0x32601d);}['_getAttributeKey'](_0x25eaca){return'attribute'==_0x25eaca['type']?_0x25eaca['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x255c15,_0x2fdda1){const _0xf44b07=_0x255c15['getFirstMarker']();this['_model']['change'](_0x172400=>{_0x172400['updateMarker'](_0xf44b07,{'range':_0x2fdda1});});}['_addThreadToSuggestion'](_0x550331){const _0x4c5e88=_0x550331['id'],_0x12eb82=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4c5e88)||this['_commentsRepository']['addCommentThread']({'channelId':_0x12eb82,'threadId':_0x4c5e88,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x314b69=this['_commentsRepository']['getCommentThread'](_0x4c5e88);_0x314b69['unbind']('isRemovable'),_0x314b69['isRemovable']=!0x1,_0x550331['commentThread']=_0x314b69;}['_checkSuggestionCorrectness'](_0x225a3e,_0x489e52,_0x220602,_0x571154){if(_0x225a3e['type']!=_0x489e52||_0x225a3e['subType']!=_0x220602||_0x225a3e['creator']['id']!=_0x571154)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1c1a8a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x47191d,_0x502993){const _0x579b81=_0x47191d['getFirstRange']();if(_0x502993['isEqual'](_0x579b81))_0x47191d['removeMarkers']();else{if(_0x579b81['containsRange'](_0x502993)){const _0x54cfa9=this['_model']['createPositionAt'](_0x502993['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47191d,this['_model']['createRange'](_0x579b81['start'],_0x54cfa9));const _0x1d0fd5=_0x303cc5(),_0x1ba61d=_0x47191d['creator']['id'],_0x2488fb=_0x47191d['type']+':'+_0x47191d['subType'];this['_setSuggestionData']({'id':_0x1d0fd5,'type':_0x2488fb,'createdAt':new Date(),'authorId':_0x1ba61d,'data':_0x47191d['data'],'attributes':_0x47191d['attributes']});const _0x5207b8=this['_model']['createPositionAt'](_0x502993['end']['parent'],'after'),_0x270d28=this['_model']['createRange'](_0x5207b8,_0x579b81['end']);this['_addSuggestionMarker'](_0x2488fb,_0x1d0fd5,_0x1ba61d,_0x270d28);}else{if(_0x579b81['containsPosition'](_0x502993['start'])){const _0x341d87=this['_model']['createPositionAt'](_0x502993['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x47191d,this['_model']['createRange'](_0x579b81['start'],_0x341d87));}else{const _0x219546=this['_model']['createPositionAt'](_0x502993['end']['parent'],'after');this['_setSuggestionRange'](_0x47191d,this['_model']['createRange'](_0x219546,_0x579b81['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1472c5){for(const {suggestion:_0x6e06c,meta:_0x39e880}of this['_findSuggestions'](_0x1472c5,'insertion')){if(!_0x39e880['isOwn'])continue;const _0xb9cf5a=_0x6e06c['getRanges']();for(const _0x30ba91 of _0xb9cf5a)if(!_0x1472c5['getDifference'](_0x30ba91)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x40220a){const _0x3ef0ff=this['editor']['plugins']['get']('Users')['getUser'](_0x40220a);if(!_0x3ef0ff)throw new _0x1c1a8a('track-changes-user-not-found',this);return _0x3ef0ff;}['_getExternalAuthor'](_0x5328e5){const _0x565fec=this['editor']['plugins']['get']('Users'),_0x49a06a=_0x30c346('external:'+_0x5328e5),_0x4ec1d8=_0x565fec['getUser'](_0x49a06a);return _0x4ec1d8||_0x565fec['addUser']({'id':_0x49a06a,'name':_0x5328e5});}['_createSuggestion'](_0x4f5fda,_0x50fc36,_0x1e85ba,_0x22cb6a,_0x339c7a){const _0x3c006f=this['_getAuthorFromId'](_0x22cb6a),_0x4484ae=this['_suggestionFactory']['buildSuggestion'](_0x4f5fda,_0x50fc36,_0x1e85ba,_0x3c006f,_0x339c7a,_0x496cb7=>{this['_updateSuggestionData'](_0x1e85ba,{'attributes':_0x496cb7});const _0x583cd3=this['getSuggestion'](_0x1e85ba);this['_joinWithAdjacentSuggestions'](new Set([_0x583cd3])),this['_refreshSuggestionsChain'](new Set([_0x583cd3]));});return this['listenTo'](_0x4484ae,'accept',()=>{this['_updateSuggestionData'](_0x1e85ba,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4484ae,'discard',()=>{this['_updateSuggestionData'](_0x1e85ba,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1e85ba,_0x4484ae),this['_suggestionState']['set'](_0x4484ae,'notReady'),_0x4484ae;}['_splitMarkerName'](_0x3b76f0){const _0x3fc975=_0x3b76f0['split'](':');return{'group':_0x3fc975[0x0],'type':_0x3fc975[0x1],'subType':_0x3fc975['length']>=0x5?_0x3fc975[0x2]:null,'id':_0x3fc975['length']<0x5?_0x3fc975[0x2]:_0x3fc975[0x3],'authorId':_0x3fc975['length']<0x5?_0x3fc975[0x3]:_0x3fc975[0x4],'markerCount':0x6==_0x3fc975['length']?_0x3fc975[0x5]:null};}['_breakSuggestionMarker'](_0x1c7ef6,_0x246592,_0x2e6143){const _0x3392ed=_0x1c7ef6['getFirstRange'](),_0x234adc=_0x3392ed['start'],_0x2984f0=_0x3392ed['end'];this['_setSuggestionRange'](_0x1c7ef6,this['_model']['createRange'](_0x234adc,_0x246592));const _0x59f52d=_0x303cc5(),_0x2af2aa=_0x1c7ef6['creator']['id'],_0x515df9=_0x1c7ef6['type']+(_0x1c7ef6['subType']?':'+_0x1c7ef6['subType']:'');this['_setSuggestionData']({'id':_0x59f52d,'type':_0x515df9,'createdAt':new Date(),'authorId':_0x2af2aa,'originalSuggestionId':_0x1c7ef6['id'],'attributes':_0x1c7ef6['attributes'],'data':_0x1c7ef6['data']});const _0x3404fa=this['_getAttributeKey'](_0x1c7ef6);('formatBlock'==_0x1c7ef6['type']||_0x3404fa&&this['_isBlockAttribute'](_0x3404fa))&&(_0x2e6143=this['_model']['createPositionBefore'](_0x2e6143['parent'])),this['_addSuggestionMarker'](_0x515df9,_0x59f52d,_0x2af2aa,this['_model']['createRange'](_0x2e6143,_0x2984f0));}['_findSuggestions'](_0x540aa4,_0x431807=null){const _0x3278ef=[],_0x21fd03=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x540aa4)||(_0x540aa4=[_0x540aa4]);for(const _0x5d2db9 of this['getSuggestions']()){if(!_0x5d2db9['isInContent'])continue;if(_0x431807&&_0x5d2db9['type']!=_0x431807)continue;let _0x11b354=!0x1;for(const _0x50ec51 of _0x5d2db9['getRanges']()){for(const _0x15fccf of _0x540aa4){const _0x33ba88=_0x15fccf['start']['isEqual'](_0x50ec51['end'])||_0x15fccf['end']['isEqual'](_0x50ec51['start']);if(_0x33ba88||_0x15fccf['getIntersection'](_0x50ec51)){const _0x1dbd1d=_0x15fccf['containsRange'](_0x50ec51)&&Ut(this['_model']['schema'],_0x50ec51['start'],_0x15fccf),_0x3ff314=_0x50ec51['containsRange'](_0x15fccf)&&Ut(this['_model']['schema'],_0x15fccf['start'],_0x50ec51);_0x3278ef['push']({'suggestion':_0x5d2db9,'meta':{'isOwn':_0x21fd03==_0x5d2db9['author'],'isNextTo':_0x33ba88,'isInsideObject':_0x1dbd1d,'containsRangeInObject':_0x3ff314}}),_0x11b354=!0x0;break;}}if(_0x11b354)break;}}return _0x3278ef;}['_addSuggestionMarker'](_0x38960a,_0xdc3210,_0x1b118f,_0x37aa32,_0x74e42f){this['_model']['change'](_0x4d0496=>{let _0xd15000='suggestion:'+_0x38960a+':'+_0xdc3210+':'+_0x1b118f;_0x74e42f&&(_0xd15000=_0xd15000+':'+_0x74e42f),_0x4d0496['addMarker'](_0xd15000,{'range':_0x37aa32,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x46e7b2){const _0x470f26=_0x46e7b2['previous'],_0xcf9b=_0x46e7b2['next'];_0x46e7b2['previous']=null,_0x46e7b2['next']=null,null!=_0x470f26&&_0x470f26['next']==_0x46e7b2&&(_0x470f26['next']=_0xcf9b),null!=_0xcf9b&&_0xcf9b['previous']==_0x46e7b2&&(_0xcf9b['previous']=_0x470f26),'ready'==this['_suggestionState']['get'](_0x46e7b2)&&(this['_suggestionState']['set'](_0x46e7b2,'removed'),this['fire']('suggestionUnloaded',_0x46e7b2,_0x470f26,_0xcf9b));}['_setSuggestionData'](_0x46e24f){const _0x68094=_0x46e24f['id'],_0x39a2a3=this['addSuggestionData'](_0x46e24f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xef4bb1=this['editor']['plugins']['get']('PendingActions'),_0x50f268=_0x39a2a3['hasComments'],_0x5e5b11=_0x39a2a3['subType']?_0x39a2a3['type']+':'+_0x39a2a3['subType']:_0x39a2a3['type'],_0x13672b=this['editor']['locale'],_0x19fdc4=_0xef4bb1['add'](o(_0x13672b,'PENDING_ACTION_SUGGESTION')),_0x5870f9={'id':_0x68094,'type':_0x5e5b11,'hasComments':_0x50f268,'data':_0x46e24f['data']||null,'originalSuggestionId':_0x46e24f['originalSuggestionId']||null,'attributes':_0x39a2a3['attributes']};this['_adapter']['addSuggestion'](_0x5870f9)['then'](_0x19203d=>{_0x39a2a3['_saved']=!0x0,_0xef4bb1['remove'](_0x19fdc4),_0x19203d&&_0x19203d['createdAt']&&(this['_suggestions']['get'](_0x68094)['createdAt']=_0x19203d['createdAt']);})['catch'](_0x410053=>{throw _0x2add20('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x39a2a3['discard']();}),_0x39a2a3['stopListening'](),this['_suggestions']['delete'](_0x39a2a3['id']),this['_suggestionState']['delete'](_0x39a2a3),_0x410053;});}return _0x39a2a3;}['_isBlockAttribute'](_0x4d4cea){return this['_blockAttributeKeys']['has'](_0x4d4cea);}['_updateSuggestionData'](_0x184958,_0x27c3a7){const _0x20d089=this['editor']['plugins']['get']('PendingActions'),_0xefc78=this['getSuggestion'](_0x184958);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xefc78['_saved']){const _0x5e280a=_0x20d089['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x184958,_0x27c3a7)['then'](()=>{_0x20d089['remove'](_0x5e280a);});}else _0xefc78['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x184958,_0x27c3a7);});}}['_getSuggestionData'](_0x488f63){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1c1a8a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x488f63);}['_handleNewSuggestionMarker'](_0x18c58e){const {id:_0x244ee,type:_0x38b33c,subType:_0x5c1371,authorId:_0x20f6ca}=this['_splitMarkerName'](_0x18c58e),_0x3cd73f=this['_suggestions']['get'](_0x244ee)||this['_createSuggestion'](_0x38b33c,_0x5c1371,_0x244ee,_0x20f6ca,{});switch(this['_checkSuggestionCorrectness'](_0x3cd73f,_0x38b33c,_0x5c1371,_0x20f6ca),this['_suggestionState']['get'](_0x3cd73f)){case'notReady':this['_getSuggestionData'](_0x244ee)['then'](_0x5d355f=>{let _0x5aa099=Promise['resolve']();_0x5d355f['hasComments']&&(_0x5aa099=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x244ee})),_0x5aa099['then'](()=>{this['addSuggestionData'](_0x5d355f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3cd73f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x244ee,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3cd73f,'ready'),this['fire']('suggestionLoaded',_0x3cd73f);break;case'ready':this['fire']('suggestionChanged',_0x3cd73f);}return _0x3cd73f['addMarkerName'](_0x18c58e),_0x3cd73f;}['_refreshSuggestionsChain'](_0x2f3b15){const _0x677b80=Array['from'](_0x2f3b15),_0x377aa1=_0x677b80['filter'](_0x50bb66=>'attribute'==_0x50bb66['type']);this['_refreshAttributeSuggestionsChain'](_0x377aa1);const _0x45c26a=_0x677b80['filter'](_0x4d395b=>!_0x4d395b['isMultiRange']&&'attribute'!=_0x4d395b['type']),_0xec3125=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f4686=>!_0x4f4686['isMultiRange']&&'attribute'!=_0x4f4686['type']),_0x11586e=_0xec3125['filter'](_0x3094e4=>!_0x2f3b15['has'](_0x3094e4)),_0x13caf1=new Map(_0xec3125['map'](_0x590d43=>[_0x590d43,this['_suggestionFactory']['getSuggestionCallback'](_0x590d43['type'],_0x590d43['subType'],'chain')])),_0x3bcdf2=new Map(_0xec3125['map'](_0x50eb1f=>[_0x50eb1f,_0x50eb1f['getFirstRange']()])),_0x1fddba=new Set(),_0x592c6b=new Set();for(let _0x5756b6=0x0;_0x5756b6<_0x45c26a['length'];_0x5756b6++)_0x54be8d(_0x45c26a[_0x5756b6],_0x45c26a,_0x5756b6+0x1);for(let _0x51dcee=0x0;_0x51dcee<_0x45c26a['length'];_0x51dcee++)_0x54be8d(_0x45c26a[_0x51dcee],_0x11586e,0x0);const _0x2512d4=new Set();for(let _0x5f2a10=0x0;_0x5f2a10<_0x45c26a['length'];_0x5f2a10++){const _0x35e286=_0x45c26a[_0x5f2a10];!_0x592c6b['has'](_0x35e286)&&_0x35e286['previous']&&(_0x2512d4['add'](_0x35e286['previous']),_0x35e286['previous']['next']===_0x35e286&&(_0x35e286['previous']['next']=null),_0x35e286['previous']=null),!_0x1fddba['has'](_0x35e286)&&_0x35e286['next']&&(_0x2512d4['add'](_0x35e286['next']),_0x35e286['next']['previous']===_0x35e286&&(_0x35e286['next']['previous']=null),_0x35e286['next']=null);}function _0x54be8d(_0x447aaa,_0x41c654,_0x2fe755){for(let _0x5cf8d3=_0x2fe755;_0x5cf8d3<_0x41c654['length'];_0x5cf8d3++){const _0x31ef02=_0x20f49e(_0x447aaa,_0x41c654[_0x5cf8d3]);_0x31ef02&&(_0x31ef02[0x0]['next']=_0x31ef02[0x1],_0x31ef02[0x1]['previous']=_0x31ef02[0x0],_0x1fddba['add'](_0x31ef02[0x0]),_0x592c6b['add'](_0x31ef02[0x1]));}}function _0x20f49e(_0x447e74,_0x22a928){if(_0x447e74['author']['id']!==_0x22a928['author']['id'])return null;const _0x1a6ff3=_0x13caf1['get'](_0x447e74)(_0x447e74,_0x22a928,_0x3bcdf2['get'](_0x447e74),_0x3bcdf2['get'](_0x22a928));if(!_0x1a6ff3)return null;return _0x13caf1['get'](_0x22a928)(_0x447e74,_0x22a928,_0x3bcdf2['get'](_0x447e74),_0x3bcdf2['get'](_0x22a928))?_0x1a6ff3[0x1]['commentThread']&&_0x1a6ff3[0x1]['commentThread']['length']?null:_0x1a6ff3:null;}_0x2512d4['size']&&this['_refreshSuggestionsChain'](_0x2512d4);}['_refreshAttributeSuggestionsChain'](_0x98a4da){if(0x0==_0x98a4da['length'])return;const _0x169941=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8f5438=>'attribute'==_0x8f5438['type']&&_0x8f5438['_isDataLoaded']),_0x29d7b8=[],_0x59b0a3=new Map();for(const _0x257484 of _0x169941){const _0x45f2ec=_0x30c346(_0x257484['attributes']);_0x59b0a3['has'](_0x45f2ec)||(_0x59b0a3['set'](_0x45f2ec,_0x29d7b8['length']),_0x29d7b8['push']([]));const _0x111d33=_0x59b0a3['get'](_0x45f2ec);_0x29d7b8[_0x111d33]['push'](_0x257484);}!(function(){_0x29d7b8['sort']((_0x17ad19,_0x868187)=>{const _0x10a8fa=_0x17ad19[0x0]['createdAt'],_0x3059ee=_0x868187[0x0]['createdAt'];return _0x10a8fa==_0x3059ee?_0x17ad19[0x0]['attributes']['groupId']<_0x868187[0x0]['attributes']['groupId']?-0x1:0x1:_0x10a8fa<_0x3059ee?-0x1:0x1;});for(const _0x125836 of _0x29d7b8)_0x125836['sort']((_0x136eb6,_0x29ba12)=>_0x136eb6['id']<_0x29ba12['id']?-0x1:0x1);}());for(let _0x10dfaa=0x0;_0x10dfaa<_0x29d7b8['length'];_0x10dfaa++){if(0x0==_0x29d7b8[_0x10dfaa]['length'])continue;const _0x408805=[];for(let _0x36a7e3=_0x10dfaa+0x1;_0x36a7e3<_0x29d7b8['length'];_0x36a7e3++)0x0!=_0x29d7b8[_0x36a7e3]['length']&&_0xccf100(_0x29d7b8[_0x10dfaa],_0x29d7b8[_0x36a7e3])&&_0x408805['push'](_0x36a7e3);for(const _0x25e77a of _0x408805)_0x29d7b8[_0x10dfaa]=_0x29d7b8[_0x10dfaa]['concat'](_0x29d7b8[_0x25e77a]),_0x29d7b8[_0x25e77a]=[];}for(const _0x404f66 of _0x29d7b8)for(let _0x57db4a=0x0;_0x57db4a<_0x404f66['length'];_0x57db4a++){const _0x5bb7b7=_0x404f66[_0x57db4a+0x1]||null;_0x404f66[_0x57db4a]['next']!==_0x5bb7b7&&(_0x404f66[_0x57db4a]['next']=_0x5bb7b7);}for(const _0x31e0bf of _0x29d7b8)for(let _0x20d7ce=0x0;_0x20d7ce<_0x31e0bf['length'];_0x20d7ce++){const _0x39bcb8=_0x31e0bf[_0x20d7ce-0x1]||null;_0x31e0bf[_0x20d7ce]['previous']!==_0x39bcb8&&(_0x31e0bf[_0x20d7ce]['previous']=_0x39bcb8);}function _0xccf100(_0x2d5014,_0x1771f5){if(_0x2d5014[0x0]['attributes']['groupId']!==_0x1771f5[0x0]['attributes']['groupId']&&_0x2d5014[0x0]['author']!==_0x1771f5[0x0]['author'])return!0x1;if(!function(_0x1013a5,_0x5c5bf5){if(!_0x1013a5['hasComments']&&!_0x5c5bf5['hasComments'])return!0x0;if(_0x1013a5['hasComments']&&_0x5c5bf5['hasComments'])return!0x1;if(_0x1013a5['hasComments']&&_0x5c5bf5['createdAt']<_0x1013a5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5c5bf5['hasComments']&&_0x1013a5['createdAt']<_0x5c5bf5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2d5014[0x0],_0x1771f5[0x0]))return!0x1;const _0x5c23e7=xt(_0x2d5014[0x0]['attributes'],'groupId'),_0x111f2d=xt(_0x1771f5[0x0]['attributes'],'groupId');if(!_0x3b7fb8(_0x5c23e7,_0x111f2d))return!0x1;return!!_0x2d5014['every'](_0x542d15=>_0x1771f5['some'](_0x3405d2=>_0x542d15['getFirstRange']()['isEqual'](_0x3405d2['getFirstRange']())))&&_0x1771f5['every'](_0x367fca=>_0x2d5014['some'](_0x441a6d=>_0x367fca['getFirstRange']()['isEqual'](_0x441a6d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x18a082){const _0x5bdbc4=Array['from'](_0x18a082),_0x39448f=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe49bd5=_0x39448f['filter'](_0x36387b=>!_0x18a082['has'](_0x36387b)),_0x5b406a=new Map(_0x5bdbc4['map'](_0x5efd8f=>[_0x5efd8f,this['_suggestionFactory']['getSuggestionCallback'](_0x5efd8f['type'],_0x5efd8f['subType'],'join')])),_0x4c6599=new Map(_0x39448f['map'](_0x535660=>[_0x535660,_0x535660['getRanges']()]));for(let _0x5bef11=0x0;_0x5bef11<_0x5bdbc4['length'];_0x5bef11++){if(_0x5f28ea(this,_0x5bdbc4[_0x5bef11],_0x5bdbc4,_0x5bef11+0x1))return!0x0;}for(let _0x473ff3=0x0;_0x473ff3<_0x5bdbc4['length'];_0x473ff3++){if(_0x5f28ea(this,_0x5bdbc4[_0x473ff3],_0xe49bd5,0x0))return!0x0;}return!0x1;function _0x5f28ea(_0xc1154c,_0x9521dd,_0x59b7af,_0x1a9d4f){for(let _0x21c614=_0x1a9d4f;_0x21c614<_0x59b7af['length'];_0x21c614++){const _0x5b4696=_0x59b7af[_0x21c614];if(_0x5b4696['type']!==_0x9521dd['type']||_0x5b4696['author']['id']!==_0x9521dd['author']['id']||_0x5b4696['subType']!==_0x9521dd['subType'])continue;if(!qt(_0x9521dd,_0x5b4696))continue;if('attribute'==_0x9521dd['type']&&_0x9521dd['data']['oldValue']!=_0x5b4696['data']['oldValue'])continue;if('attribute'==_0x9521dd['type']&&_0xc1154c['_isBlockAttribute'](_0x9521dd['data']['key']))continue;if('formatBlock'==_0x9521dd['type']){const _0x5acbaf=_0xc1154c['editor']['model'],_0x17c75d=_0x9521dd['getContainedElement']();if(_0x17c75d&&(_0x5acbaf['schema']['isObject'](_0x17c75d)||_0x5acbaf['schema']['isLimit'](_0x17c75d)))continue;}const _0x3e02b2=_0x5b406a['get'](_0x9521dd),_0x1dcfb0=_0x4c6599['get'](_0x9521dd),_0x2e546e=_0x4c6599['get'](_0x5b4696),_0x217708=_0x9521dd['commentThread']&&_0x9521dd['commentThread']['length'],_0x23fb8c=_0x5b4696['commentThread']&&_0x5b4696['commentThread']['length'];if(!_0x217708&&_0x3e02b2(_0x2e546e,_0x1dcfb0))return _0xc1154c['_joinSuggestions'](_0x5b4696,_0x9521dd),_0x4c6599['delete'](_0x9521dd),!0x0;if(!_0x23fb8c&&_0x3e02b2(_0x1dcfb0,_0x2e546e))return _0xc1154c['_joinSuggestions'](_0x9521dd,_0x5b4696),_0x4c6599['delete'](_0x5b4696),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5813d9,_0x5a133a){if(_0x5813d9['isMultiRange']){for(const _0x133254 of _0x5a133a['getRanges']())_0x5813d9['addRange'](_0x133254);}else{const _0x3ef56d=_0x5a133a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5813d9,this['_model']['createRange'](_0x5813d9['getFirstRange']()['start'],_0x3ef56d));}_0x5a133a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x11cb49,_0x4d7af0,_0x45dc3b){const _0x1fac75=_0x11cb49['startsWith']('format')||_0x11cb49['startsWith']('attribute')?'FORMATTING':_0x11cb49['toUpperCase']();return o(this['editor']['locale'],_0x4d7af0+'_'+_0x1fac75+'_SUGGESTION_ANNOUNCEMENT',_0x45dc3b);}['_initAriaMarkerChangeAnnouncements'](){const _0x54e792=this['editor'];if(!_0x54e792['ui'])return;const {ariaLiveAnnouncer:_0x4377c6}=_0x54e792['ui'];_0x4cdbd7(this['_model'],({left:_0x63b50,entered:_0x32957f})=>{for(const _0x27b580 of _0x63b50){const {group:_0x17d3ab,type:_0x191d29}=this['_splitMarkerName'](_0x27b580['name']);if('suggestion'===_0x17d3ab){_0x4377c6['announce'](this['_getMarkerAnnouncementText'](_0x191d29,'LEAVE'));break;}}for(const _0xcff1ee of _0x32957f){const {group:_0x367792,type:_0x3b225b}=this['_splitMarkerName'](_0xcff1ee['name']);if('suggestion'===_0x367792){_0x4377c6['announce'](this['_getMarkerAnnouncementText'](_0x3b225b,'ENTER',_0x2b5fa3(_0x23baf2)));break;}}});}['_processAttributeChanges'](_0x1c5088){if(this['_recordAttributeSuggestions'])return!0x1;const _0x463c83=this['editor'],_0x3fd4e9=_0x463c83['model']['document']['differ']['getChanges']();if(0x0==_0x3fd4e9['length'])return!0x1;const _0x42f1d5=[],_0x40a125=_0x3fd4e9['filter'](_0x2fdbc0=>'attribute'==_0x2fdbc0['type']),_0x4e99a0=_0x3fd4e9['filter'](_0x1bb376=>'insert'==_0x1bb376['type']&&'$text'!=_0x1bb376['name']),_0x57c852=_0x3fd4e9['filter'](_0x1d6644=>'remove'==_0x1d6644['type']&&'$text'!=_0x1d6644['name']);for(const _0x13f22f of _0x40a125)_0x42f1d5['push']({'key':_0x13f22f['attributeKey'],'newValue':_0x13f22f['attributeNewValue'],'oldValue':_0x13f22f['attributeOldValue'],'range':Lt(_0x13f22f['range'],_0x463c83['model'])});for(const _0x54a57c of _0x4e99a0){const _0x513edb=_0x57c852['find'](_0x21ff28=>_0x21ff28['position']['isEqual'](_0x54a57c['position']));_0x513edb&&_0x42f1d5['push']({'key':m,'newValue':_0x54a57c['name'],'oldValue':_0x513edb['name'],'range':_0x463c83['model']['createRangeOn'](_0x54a57c['position']['nodeAfter'])});}return 0x0!=_0x42f1d5['length']&&this['_reduceExistingSuggestions'](_0x1c5088,_0x42f1d5);}['_processAttributeSuggestions'](_0x38d837){let _0x2d5008=!0x1;const _0x48a5e0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x836783=>_0x836783['data']['newRange']&&_0x836783['name']['startsWith']('suggestion:attribute:'));for(const _0x33d4f5 of _0x48a5e0){const {subType:_0x499f15,id:_0x1c0f96}=this['_splitMarkerName'](_0x33d4f5['name']),_0x8cbab=_0x499f15['split']('|')[0x0];for(const _0x120b4e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x120b4e['id']!=_0x1c0f96&&'attribute'==_0x120b4e['type']&&_0x120b4e['data']&&_0x120b4e['data']['key']==_0x8cbab&&_0x120b4e['getFirstRange']()['isIntersecting'](_0x33d4f5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x120b4e,_0x33d4f5['data']['newRange'],_0x38d837),_0x2d5008=!0x0);}return _0x2d5008;}['_recordAttributeChanges'](_0x1adcfc){this['_recordAttributeSuggestions']=!0x0,_0x1adcfc();}['_isRegisteredAttribute'](_0x130aa4){const _0x23df11=this['_isBlockAttribute'](_0x130aa4),_0x4d35c8=this['_inlineAttributeKeys']['has'](_0x130aa4);return _0x23df11||_0x4d35c8;}['_reduceExistingSuggestions'](_0xe16ed8,_0xb05a84){if(0x0==_0xb05a84['length'])return!0x1;let _0x15c41f=!0x1;for(const _0x2461a6 of _0xb05a84){const _0x429661=this['_findSuggestions'](_0x2461a6['range'],'attribute')['filter'](_0x5e51d9=>!_0x5e51d9['meta']['isNextTo'])['map'](_0x5d345a=>_0x5d345a['suggestion']),_0x4b87e2=_0x30c346({'newValue':_0x2461a6['newValue']});_0x429661['filter'](_0x9ee793=>{const [_0x27225b,_0x18a3ef]=_0x9ee793['subType']['split']('|');return _0x27225b==_0x2461a6['key']&&_0x18a3ef!=_0x4b87e2;})['forEach'](_0x44b8c5=>{this['_reduceSuggestionAttributeRange'](_0x44b8c5,_0x2461a6['range'],_0xe16ed8),_0x15c41f=!0x0;});}return _0x15c41f;}['_reduceSuggestionAttributeRange'](_0x5b7063,_0x196eaf,_0x49a149){const _0x2b8105=_0x5b7063['getFirstRange']()['getDifference'](_0x196eaf);0x0!==_0x2b8105['length']?0x1!==_0x2b8105['length']?this['_breakSuggestionMarker'](_0x5b7063,_0x196eaf['start'],_0x196eaf['end']):this['_setSuggestionRange'](_0x5b7063,_0x2b8105[0x0]):_0x49a149['removeMarker'](_0x5b7063['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x296201){this['_editor']=_0x296201,this['_model']=_0x296201['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57265a,_0x3396a0,_0x19418b,_0x59d019,_0x59bb3d,_0x24582e){return new u(this['_model'],{'type':_0x57265a,'subType':_0x3396a0,'id':_0x19418b,'author':_0x59d019,'creator':_0x59d019,'attributes':_0x59bb3d,'onAttributesChange':_0x24582e,'onAccept':(..._0x436656)=>this['getSuggestionCallback'](_0x57265a,_0x3396a0,'accept')(..._0x436656),'onDiscard':(..._0x47a2cf)=>this['getSuggestionCallback'](_0x57265a,_0x3396a0,'discard')(..._0x47a2cf)});}['registerCustomCallback'](_0x11c02d,_0x3167e6,_0x3728d9,_0x4eb4ac){const _0x4597b0=_0x11c02d+':'+_0x3167e6+':'+_0x3728d9;this['_customCallbacks']['set'](_0x4597b0,_0x4eb4ac);}['getSuggestionCallback'](_0x6882ee,_0x5c215c,_0x1e8fe2){const _0x4d42c5=_0x6882ee+':'+_0x5c215c+':'+_0x1e8fe2;return this['_customCallbacks']['get'](_0x4d42c5)||this['_defaultCallbacks']['get'](_0x6882ee+':'+_0x1e8fe2);}['_registerDefaultCallbacks'](){const _0xd4176c=()=>!0x1,_0x1435e6=_0x502b06=>{_0x502b06['sort']((_0x10f723,_0x2c77a3)=>_0x10f723['start']['isBefore'](_0x2c77a3['start'])?0x1:-0x1),this['_model']['change'](_0x2a6294=>{for(const _0x455357 of _0x502b06){let _0x5ac3ed;_0x5ac3ed=_0x455357['end']['isAtEnd']&&_0x455357['end']['parent']==_0x455357['start']['nodeAfter']?_0x2a6294['createSelection'](_0x455357['start']['nodeAfter'],'on'):_0x2a6294['createSelection'](_0x455357),this['_model']['deleteContent'](_0x5ac3ed,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x480f66=(_0x2a9b51,_0x2be70d)=>{_0x2be70d&&this['_model']['change'](_0x170aa8=>{const {commandName:_0x58c684,commandParams:_0x1f6272=[]}=_0x2be70d,_0x48ea2c=_0x2a9b51['map'](_0xea4515=>(Vt(_0xea4515)&&(_0xea4515=this['_model']['createRange'](_0xea4515['end'])),_0xea4515))['filter'](_0x5d4565=>'$graveyard'!==_0x5d4565['root']['rootName']);if(_0x48ea2c['length']<0x1)return;const _0x34aea1=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5b8dab=>_0x5e91cd['fromRange'](_0x5b8dab));_0x170aa8['setSelection'](_0x48ea2c);for(const _0x38314a of this['_editor']['commands']['commands']())_0x38314a['refresh']();_0x1f6272['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x58c684,..._0x1f6272);const _0x171fd6=_0x34aea1['filter'](_0x557c97=>'$graveyard'!=_0x557c97['root']['rootName']);_0x171fd6['length']>0x0&&_0x170aa8['setSelection'](_0x171fd6);for(const _0x11dfc9 of _0x34aea1)_0x11dfc9['detach']();});},_0x4e4d01=(_0x4f640f,_0x5ef2fc)=>0x1==_0x4f640f['length']&&0x1==_0x5ef2fc['length']&&_0x4f640f[0x0]['end']['isEqual'](_0x5ef2fc[0x0]['start']),_0x5f8216=(_0x37027b,_0x27ee06,_0x4bfdc3,_0x107574)=>Ht(_0x37027b,_0x27ee06,_0x4bfdc3,_0x107574)?[_0x37027b,_0x27ee06]:Ht(_0x27ee06,_0x37027b,_0x107574,_0x4bfdc3)?[_0x27ee06,_0x37027b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xd4176c),this['_defaultCallbacks']['set']('insertion:discard',_0x1435e6),this['_defaultCallbacks']['set']('insertion:join',_0x4e4d01),this['_defaultCallbacks']['set']('insertion:chain',_0x5f8216),this['_defaultCallbacks']['set']('deletion:accept',_0x1435e6),this['_defaultCallbacks']['set']('deletion:discard',_0xd4176c),this['_defaultCallbacks']['set']('deletion:join',_0x4e4d01),this['_defaultCallbacks']['set']('deletion:chain',_0x5f8216),this['_defaultCallbacks']['set']('formatInline:accept',_0x480f66),this['_defaultCallbacks']['set']('formatInline:discard',_0xd4176c),this['_defaultCallbacks']['set']('formatInline:join',_0x4e4d01),this['_defaultCallbacks']['set']('formatInline:chain',_0xd4176c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x480f66),this['_defaultCallbacks']['set']('formatBlock:discard',_0xd4176c),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e4d01),this['_defaultCallbacks']['set']('formatBlock:chain',_0xd4176c),this['_defaultCallbacks']['set']('attribute:accept',_0xd4176c),this['_defaultCallbacks']['set']('attribute:discard',(_0x2ef649,_0x2fe196)=>{if(!_0x2fe196)return;const _0xaf9941=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x289194=>{if(_0x2fe196['key']==m)for(const _0x23e18a of _0x2ef649){const _0x5b1582=_0x23e18a['start']['nodeAfter'],_0x3dea74=_0x2fe196['oldValue'];_0x289194['rename'](_0x5b1582,_0x3dea74);}else{if(_0xaf9941['_isBlockAttribute'](_0x2fe196['key'])){for(const _0x5a9e81 of _0x2ef649)void 0x0!==_0x2fe196['oldValue']?_0x289194['setAttribute'](_0x2fe196['key'],_0x2fe196['oldValue'],_0x5a9e81['start']['nodeAfter']):_0x289194['removeAttribute'](_0x2fe196['key'],_0x5a9e81['start']['nodeAfter']);}else{for(const _0x546bcb of _0x2ef649)_0x2fe196['oldValue']?_0x289194['setAttribute'](_0x2fe196['key'],_0x2fe196['oldValue'],_0x546bcb):_0x289194['removeAttribute'](_0x2fe196['key'],_0x546bcb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e4d01);}}function Ut(_0x469699,_0xb30f4,_0x52424b){for(const _0x123a2f of _0xb30f4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x123a2f['root']==_0x123a2f)return!0x1;if(!_0x52424b['containsItem'](_0x123a2f))return!0x1;if(_0x469699['isObject'](_0x123a2f)||_0x469699['isLimit'](_0x123a2f))return!0x0;}return!0x1;}function Vt(_0x157836){return _0x157836['end']['parent']==_0x157836['start']['nodeAfter']&&_0x157836['end']['isAtStart'];}function Pt(_0x2b030b,_0x548c93,_0x575122,_0xa83b35){const _0x1425c4=_0x25c982=>!_0x25c982['item']['is']('$textProxy')&&!_0xa83b35['isObject'](_0x25c982['item']),_0x1bf51e=_0x2b030b['start']['getLastMatchingPosition'](_0x1425c4),_0x45746d=_0x2b030b['end']['getLastMatchingPosition'](_0x1425c4,{'direction':'backward'});return(!_0x2b030b['start']['isEqual'](_0x1bf51e)||!_0x2b030b['end']['isEqual'](_0x45746d))&&(_0x1bf51e['isBefore'](_0x45746d)?_0x575122['updateMarker'](_0x548c93,{'range':_0x575122['createRange'](_0x1bf51e,_0x45746d)}):_0x575122['removeMarker'](_0x548c93),!0x0);}function Gt(_0x530f42){return _0x30c346(_0x530f42);}function Ft(_0x8e6b64){const _0x14f4d1=_0x8e6b64['start']['nodeAfter'];return _0x14f4d1&&_0x14f4d1['is']('element');}function Lt(_0x4d2ee8,_0x2c36f2){return null==_0x4d2ee8['end']['nodeBefore']&&_0x4d2ee8['end']['parent']==_0x4d2ee8['start']['nodeAfter']?Jt(_0x4d2ee8['start']['nodeAfter'],_0x2c36f2):_0x4d2ee8;}function Jt(_0x1387f7,_0x1cdfc5){const _0x56d5c8=_0x1cdfc5['schema']['isObject'](_0x1387f7)||_0x1cdfc5['schema']['isSelectable'](_0x1387f7);return _0x1cdfc5['createRange'](_0x1cdfc5['createPositionAt'](_0x1387f7,'before'),_0x56d5c8?_0x1cdfc5['createPositionAfter'](_0x1387f7):_0x1cdfc5['createPositionAt'](_0x1387f7,'end'));}function Ht(_0x361c05,_0x3e50c2,_0x4712b3,_0x4bf8a9){return!!qt(_0x361c05,_0x3e50c2)&&_0x4712b3['end']['isEqual'](_0x4bf8a9['start']);}function qt(_0x401545,_0x418fc5){if(!_0x401545['_isDataLoaded']||!_0x418fc5['_isDataLoaded'])return!0x1;const _0x30f871=new Set(Object['keys'](_0x401545['attributes'])),_0x33c534=new Set(Object['keys'](_0x418fc5['attributes']));if(_0x30f871['delete']('groupId'),_0x33c534['delete']('groupId'),0x0==_0x30f871['size']&&0x0==_0x33c534['size'])return!0x0;if(_0x30f871['size']!=_0x33c534['size'])return!0x1;const _0x2860f6={..._0x401545['attributes']},_0x15e7de={..._0x418fc5['attributes']};return delete _0x2860f6['groupId'],delete _0x15e7de['groupId'],JSON['stringify'](_0x2860f6)==JSON['stringify'](_0x15e7de);}function zt(_0x37b126,_0x203d8f){const _0x2d12c6=Kt(_0x37b126['attributes']),_0x133e85=Kt(_0x203d8f);if(!_0x37b126['_isDataLoaded'])return!0x1;for(const _0x4d2662 of Object['keys'](_0x133e85))if(!_0x3b7fb8(_0x2d12c6[_0x4d2662],_0x133e85[_0x4d2662]))return!0x1;return!0x0;}function Kt(_0x456d61){const _0x759648=Object['assign']({},_0x456d61);return delete _0x759648['skipNestingCheck'],delete _0x759648['tablePasteChainId'],_0x759648;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x40aa80(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x135ba5,_0x302a21,_0x3aab80,_0x310a52){super(),this['model']=_0x302a21,this['view']=_0x3aab80,this['commentThreadController']=_0x310a52,this['_editor']=_0x135ba5,this['_acceptCommand']=_0x135ba5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x135ba5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x34b0bf,_0x6449b6)=>_0x34b0bf||_0x6449b6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x51b8db=>_0x51b8db&&this['_editor']['model']['canEditAt'](_0x302a21['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x159d75=>_0x159d75&&this['_editor']['model']['canEditAt'](_0x302a21['getRanges']())),this['_pendingAction']=null,_0x3aab80['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3aab80,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3aab80,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3aab80,'change:isDirty',()=>{_0x3aab80['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 _0x58e37c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x58e37c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x288dc8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x432273,_0x51b78b,_0x49f5bb,_0x49b8f2){super(_0x432273),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x59ecc7(_0x432273,o(_0x432273,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x51b78b['authoredAt']),this['bind']('authoredAt')['to'](_0x51b78b),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',_0x51b78b,'authoredAt',this,'descriptionParts',(_0x5bf165,_0x2fd39b,_0x13419c)=>{const _0x1253c2=_0x13419c['map'](_0x105fa8=>ns(_0x105fa8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5bf165-0x1,_0x51b78b['author']['name'],_0x2fd39b?_0x49b8f2['formatDateTime'](_0x2fd39b):'',new DOMParser()['parseFromString'](_0x1253c2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x292df9(),this['focusTracker']=new _0x5993dc(),this['keystrokes']=new _0x5d4bbe(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x376390=>_0x376390['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x51b78b,this['_localUser']=_0x49f5bb,this['_config']=_0x49b8f2,_0x49b8f2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x57f41d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2014ab}=this['_config'];this['commentsListView']=new _0x2014ab(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',_0x12b1a7=>_0x12b1a7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x410d95,_0x1fe980)=>_0x410d95||!!_0x1fe980);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x36a41a}=this['_config'],_0x2c9b29=new _0x36a41a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x366766=_0x2c9b29['commentInputView'];return _0x2c9b29['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x366766,'value',(_0x461294,_0x2e9fca,_0x5467e2)=>!!_0x5467e2||_0x461294&&!_0x2e9fca),_0x366766['on']('submit',(_0xf60dc4,_0x37bd79)=>{this['fire']('addComment',_0x37bd79),_0x366766['editor']['setData']('');}),_0x366766['on']('cancel',()=>this['focus']()),_0x366766['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2c9b29;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0xcd70cd,_0x14132e,_0x237b62,_0x260b6b){super(_0xcd70cd,_0x14132e,_0x237b62,_0x260b6b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x48b46b=>_0x48b46b&&_0x48b46b[0x0]?_0x48b46b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4870f5,_0x41d721)=>{let _0x89869e='';for(const _0x4d0c6e of _0x4870f5)_0x89869e+='<p>'+ns(_0x4d0c6e['content'],_0x4d0c6e['color'])+'</p>';return _0x41d721?_0x89869e:ti(_0x89869e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x260b6b['SuggestionView'](_0xcd70cd,_0x14132e,{'formatDateTime':_0x260b6b['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 _0x236ded=this['bindTemplate'],_0x1cc75e=[this['suggestionView']];return this['commentsListView']&&_0x1cc75e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1cc75e['push'](this['commentThreadInputView']),_0x1cc75e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x236ded['if']('isActive','ck-suggestion-wrapper--active'),_0x236ded['to']('type',_0xd48bc5=>'ck-suggestion-'+_0xd48bc5),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':_0x236ded['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1cc75e};}['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 ue extends _0x288dc8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa499df,_0x563bd7,_0x21f711){super(_0xa499df),this['_model']=_0x563bd7,this['_config']=_0x21f711,this['set']('description',''),this['bind']('authoredAt')['to'](_0x563bd7),this['acceptButton']=this['_createButton'](o(_0xa499df,'Accept\x20suggestion'),_0x4e9ebb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xa499df,'Discard\x20suggestion'),_0x4e9ebb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3a9542(_0xa499df,_0x563bd7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x292df9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5993dc(),this['keystrokes']=new _0x5d4bbe(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1ab69e=>_0x1ab69e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x503f30=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x503f30['innerHTML']=this['description'],this['on']('change:description',(_0x53086b,_0x3191c2,_0x3c9e23)=>{_0x503f30['innerHTML']=_0x3c9e23;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1d8e3d=this['bindTemplate'],_0x3e1730=[{'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':_0x1d8e3d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1d8e3d['to']('authoredAt',_0x466250=>this['_config']['formatDateTime'](_0x466250))}]}]},{'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']&&_0x3e1730['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':_0x3e1730}]};}['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'](_0x5a740b,_0x33073d,_0x2a5719,_0x592428,_0x414e8c){const _0x5b6580=new _0x520a67(this['locale']);return _0x5b6580['set']({'label':_0x5a740b,'icon':_0x33073d,'tooltip':!0x0,'tooltipPosition':_0x414e8c}),_0x5b6580['extendTemplate']({'attributes':{'class':_0x2a5719}}),_0x5b6580['on']('execute',()=>{this['fire'](_0x592428,this['_model']['id']);}),_0x5b6580;}['_setupKeyboardNavigation'](){const _0x5c024f=this['element'];this['keystrokes']['listenTo'](_0x5c024f);for(const _0x3b2518 of this['focusables'])this['focusTracker']['add'](_0x3b2518['element']),this['keystrokes']['listenTo'](_0x3b2518['element']);this['keystrokes']['set']('enter',(_0x14fb7f,_0xe86c05)=>{_0x5c024f===_0x14fb7f['target']&&(this['focusCycler']['focusFirst'](),_0xe86c05());}),this['keystrokes']['set']('esc',(_0xa5a268,_0xfd9fb4)=>{_0x5c024f!==_0xa5a268['target']&&(this['focus'](),_0xfd9fb4());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x579de7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x21ad1e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x366c27){super(_0x366c27),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2919b3=this['editor']['config'];_0x2919b3['define']('trackChanges.SuggestionThreadView',de),_0x2919b3['define']('trackChanges.SuggestionView',ue),_0x2919b3['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2919b3['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x110fa2,_0x2f3e0f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1aace0,_0x25d945]of this['_handleControllerBuffer']){const _0x342555=this['_suggestionToController']['has'](_0x1aace0);_0x342555||_0x25d945?_0x342555&&_0x25d945&&this['_destroyController'](_0x1aace0):this['_initializeController'](_0x1aace0);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x110fa2,_0x2f3e0f);}['init'](){const _0x263ce3=this['editor'],_0x2b9842=_0x263ce3['plugins']['get']('TrackChangesEditing'),_0x4cbd02=_0x263ce3['plugins']['get']('Annotations'),_0x1950be=_0x263ce3['plugins']['get']('EditorAnnotations'),_0x50cf52=_0x263ce3['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1950be['addSourceCollector'](()=>{const _0x135297=[];for(const [_0x454a5d,_0x362b4c]of Array['from'](this['_suggestionToController'])){const _0x1ab78a=_0x454a5d['getAllAdjacentSuggestions'](),_0xeb3329=[];for(const _0x38c371 of _0x1ab78a){if(!_0x38c371['isInContent'])continue;if(_0x38c371['isMultiRange']){_0xeb3329['push'](..._0x38c371['getRanges']());continue;}const _0x54e488=_0x38c371['getFirstRange']();if(_0xeb3329['length']>0x0){const _0x34101e=_0xeb3329[0x0]['getJoined'](_0x54e488);if(_0x34101e){_0xeb3329[0x0]=_0x34101e;continue;}}_0xeb3329['push'](_0x54e488);}_0x135297['push']([_0x362b4c['view'],_0xeb3329]);}return _0x135297;}),this['listenTo'](_0x2b9842,'suggestionLoaded',(_0x585567,_0x2ce596)=>{this['listenTo'](_0x2ce596,'change:previous',(_0x299e9e,_0x3419e2,_0x3223f1,_0x2ab6b6)=>{_0x2ce596['isInContent']&&(null==_0x3223f1?(this['_updateController'](_0x2ab6b6['head']),this['_handleSuggestionControllerDelayed'](_0x2ce596,!0x1)):(this['_updateController'](_0x3223f1['head']),null==_0x2ab6b6&&this['_handleSuggestionControllerDelayed'](_0x2ce596,!0x0)));}),null!==_0x2ce596['previous']?this['_updateController'](_0x2ce596['head']):this['_handleSuggestionControllerDelayed'](_0x2ce596,!0x1);}),this['listenTo'](_0x2b9842,'suggestionUnloaded',(_0x2acc4d,_0x399482,_0x1c4ed4)=>{this['stopListening'](_0x399482,'change:previous'),this['_handleControllerBuffer']['delete'](_0x399482),this['_suggestionToController']['has'](_0x399482)&&this['_destroyController'](_0x399482),_0x1c4ed4&&this['_updateController'](_0x1c4ed4['head']);}),this['listenTo'](_0x2b9842,'suggestionChanged',(_0x2191c9,_0x19cc45)=>{this['_updateController'](_0x19cc45);}),this['listenTo'](_0x4cbd02,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x50cf52,'addComment',(_0x195090,{threadId:_0x3c1604,isFromAdapter:_0x4dfb4f})=>{if(_0x4dfb4f||!_0x2b9842['hasSuggestion'](_0x3c1604))return;const _0x201962=_0x2b9842['getSuggestion'](_0x3c1604);this['_suggestionToController']['get'](_0x201962)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x24620f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x24d8d2;for(const _0x451609 in _0x24620f){const _0x1a293e=_0x451609,_0x56535c=_0x24620f[_0x1a293e];if('trackChangesLicenseKeyValid'==_0x56535c||'trackChangesLicenseKeyInvalid'==_0x56535c||'trackChangesLicenseKeyExpired'==_0x56535c||'trackChangesLicenseKeyDomainLimit'==_0x56535c||'trackChangesLicenseKeyNotAllowed'==_0x56535c||'trackChangesLicenseKeyEvaluationLimit'==_0x56535c||'trackChangesLicenseKeyTrialLimit'==_0x56535c||'trackChangesLicenseKeyDevelopmentLimit'==_0x56535c||'trackChangesLicenseKeyUsageLimit'==_0x56535c){delete _0x24620f[_0x1a293e],_0x24d8d2=_0x56535c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x24d8d2&&_0x24620f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x24d8d2&&_0x24620f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x24d8d2&&_0x24620f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x24d8d2&&_0x24620f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x322e15=this['editor']['plugins']['get']('Annotations'),_0x11367d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x209d41=Array['from'](_0x322e15['activeAnnotations'],_0xc99b9b=>_0xc99b9b['innerView'])['filter'](_0x2d5494=>this['_viewToController']['has'](_0x2d5494)),_0xe95d9f=[];for(const _0x26d9de of _0x209d41){const _0x1914e6=this['_viewToController']['get'](_0x26d9de)['model']['getAllAdjacentSuggestions']();_0xe95d9f['push'](..._0x1914e6['reduce']((_0x3129eb,_0x39bb3a)=>[..._0x3129eb,..._0x39bb3a['getMarkerNames']()],[]));}_0x11367d['activeMarkers']=_0xe95d9f;}['_addUIComponentsToFactory'](){const _0x3b34bb=this['editor'],_0x346c33=_0x3b34bb['locale'],_0x8eb13a=o(_0x346c33,'Track\x20changes'),_0x4e6784=new _0x209e7b([{'type':'switchbutton','model':new _0x50aa22({'withText':!0x0,'isToggleable':!0x0,'label':_0x8eb13a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x50aa22({'withText':!0x0,'label':o(_0x346c33,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x50aa22({'withText':!0x0,'label':o(_0x346c33,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x50aa22({'withText':!0x0,'label':o(_0x346c33,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x50aa22({'withText':!0x0,'label':o(_0x346c33,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x13c3cd of _0x4e6784)if(pe(_0x13c3cd)){const _0x5cc2ed=_0x3b34bb['commands']['get'](_0x13c3cd['model']['commandName']);_0x13c3cd['model']['bind']('isOn','isEnabled')['to'](_0x5cc2ed,'value','isEnabled');}_0x3b34bb['ui']['componentFactory']['add']('trackChanges',_0x36946e=>this['_createToolbarButton'](_0x36946e,_0x4e6784,_0x8eb13a)),_0x3b34bb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x16b177=>this['_createMenuBarMenu'](_0x16b177,_0x4e6784,_0x8eb13a));}['_createToolbarButton'](_0x9666bb,_0x452ae5,_0x2b27fc){const _0x124523=_0xdbafde(_0x9666bb,_0x8c5030),_0x35a889=this['editor']['commands']['get']('trackChanges');_0x124523['buttonView']['set']({'tooltip':_0x2b27fc,'label':_0x2b27fc,'icon':Ce}),_0x124523['buttonView']['bind']('isOn')['to'](_0x35a889,'value'),_0x124523['buttonView']['on']('execute',()=>{_0x35a889['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x124523,_0x452ae5,{'role':'menu'});const _0x4a66d1=[];for(const _0x4b760e of _0x452ae5)pe(_0x4b760e)&&_0x4a66d1['push'](this['editor']['commands']['get'](_0x4b760e['model']['commandName']));const _0x3dc9e3=_0x124523['buttonView'];return _0x3dc9e3['actionView']['unbind']('isEnabled'),_0x3dc9e3['arrowView']['unbind']('isEnabled'),_0x3dc9e3['actionView']['bind']('isEnabled')['to'](_0x35a889,'isEnabled'),_0x3dc9e3['arrowView']['bind']('isEnabled')['toMany'](_0x4a66d1,'isEnabled',(..._0x180689)=>_0x180689['some'](_0x4311e4=>_0x4311e4)),_0x124523['on']('execute',_0x22e0da=>{this['editor']['execute'](_0x22e0da['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x124523;}['_createMenuBarMenu'](_0x402cbe,_0x4ddd16,_0x2442a9){const _0xcc28b6=new _0x2f6eef(_0x402cbe),_0x3515ee=this['editor']['commands']['get']('trackChanges');_0xcc28b6['buttonView']['set']({'label':_0x2442a9,'icon':Ce});const _0x44c349=new _0x42666e(_0x402cbe);for(const _0x218f21 of _0x4ddd16){if('separator'==_0x218f21['type']){_0x44c349['items']['add'](new _0x144664(_0x402cbe));continue;}const _0x145262=new _0x359136(_0x402cbe,_0xcc28b6),_0x32fc09=new _0x5753fa(_0x402cbe),_0x4f4df5=_0x218f21['model'];_0x32fc09['bind'](...Object['keys'](_0x4f4df5))['to'](_0x4f4df5),_0x32fc09['delegate']('execute')['to'](_0xcc28b6),_0x32fc09['on']('execute',()=>{this['editor']['execute'](_0x4f4df5['commandName']),this['editor']['editing']['view']['focus']();}),_0x145262['children']['add'](_0x32fc09),_0x44c349['items']['add'](_0x145262);}return _0xcc28b6['bind']('isEnabled')['to'](_0x3515ee,'isEnabled'),_0xcc28b6['panelView']['children']['add'](_0x44c349),_0xcc28b6;}['_initializeController'](_0x2dab2f){const _0x15f9b3=this['editor'],_0x52f0e1=_0x15f9b3['config'],_0x93fdb5=_0x15f9b3['plugins']['get']('Annotations'),_0xa568b5=_0x15f9b3['plugins']['get']('CommentsRepository'),_0x2cbe32=_0x15f9b3['plugins']['get']('EditorAnnotations'),_0x4f3b50=_0x15f9b3['plugins']['get'](_0x21ad1e)['me'],_0x257487=_0x52f0e1['get']('trackChanges')['SuggestionThreadView'],_0x58ca1c=_0x52f0e1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x591086,CommentThreadInputView:_0x19882e}=_0x15f9b3['plugins']['get']('CommentsUI');let _0x48e185,_0x1a112c,_0x573e72;this['_annotationViews']['has'](_0x2dab2f['id'])?(_0x1a112c=this['_annotationViews']['get'](_0x2dab2f['id']),_0x48e185=_0x1a112c['mainView']):(_0x48e185=new _0x257487(_0x15f9b3['locale'],_0x2dab2f,_0x4f3b50,{'disableComments':this['_disableComments'],'editorConfig':{..._0x52f0e1['get']('comments.editorConfig'),'licenseKey':_0x52f0e1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x52f0e1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x52f0e1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x52f0e1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4b27af(_0x52f0e1['get']('locale')),'CommentView':_0x52f0e1['get']('comments')['CommentView'],'CommentsListView':_0x591086,'CommentThreadInputView':_0x19882e,'SuggestionView':_0x58ca1c}),_0x48e185['suggestionView']['acceptButton']['on']('execute',()=>{_0x15f9b3['editing']['view']['focus']();}),_0x48e185['suggestionView']['discardButton']['on']('execute',()=>{_0x15f9b3['editing']['view']['focus']();}),_0x1a112c=_0x93fdb5['createAnnotationView'](this['editor']['locale'],_0x48e185),_0x1a112c['bind']('isDirty')['to'](_0x48e185,'isDirty'),_0x1a112c['bind']('length')['to'](_0x48e185),_0x1a112c['bind']('type')['to'](_0x48e185,'type',_0x5a10c9=>'suggestion-'+_0x5a10c9),_0x48e185['on']('escape',()=>{_0x573e72['fire']('escape');}),this['_annotationViews']['set'](_0x2dab2f['id'],_0x1a112c));const _0x26399b=_0xa568b5['createCommentThreadController'](_0x2dab2f['commentThread'],_0x48e185),_0x946a02=new ge(_0x15f9b3,_0x2dab2f,_0x48e185,_0x26399b),_0x3cfb0b=_0x2dab2f['getAllAdjacentSuggestions']()['filter'](_0x37e70e=>_0x37e70e['isInContent']);_0x48e185['descriptionParts']=_0x15f9b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3cfb0b),this['_suggestionToController']['set'](_0x2dab2f,_0x946a02),this['_viewToController']['set'](_0x48e185,_0x946a02),_0x573e72=_0x93fdb5['createAnnotation']({'view':_0x1a112c,'target':()=>{const _0x2a6ce5=[],_0x18100a=_0x2dab2f['getAllAdjacentSuggestions']()['filter'](_0x14a519=>_0x14a519['isInContent']);for(const _0x36144e of _0x18100a)_0x2a6ce5['push'](..._0x36144e['getMarkers']());return _0x4f030e(_0x15f9b3['editing'],_0x2a6ce5);},'type':()=>'suggestion-'+_0x946a02['view']['type']}),_0xa568b5['_bindAnnotationToEditors'](_0x48e185,_0x573e72),_0x93fdb5['add'](_0x573e72),_0x2cbe32['registerAnnotation'](_0x573e72);}['_destroyController'](_0xb812a8){const _0x343b8e=this['editor']['plugins']['get']('CommentsRepository'),_0x402be9=this['editor']['plugins']['get']('Annotations'),_0x5c9689=this['_suggestionToController']['get'](_0xb812a8),_0x136f6e=_0x5c9689['view'],_0x6ac019=_0x402be9['getByInnerView'](_0x136f6e);_0x343b8e['_unbindEditors'](_0x136f6e),_0x6ac019&&_0x402be9['remove'](_0x6ac019),this['_suggestionToController']['delete'](_0xb812a8),this['_viewToController']['delete'](_0x136f6e),_0x5c9689['destroy']();}['_updateController'](_0x10f4fc){if(!_0x10f4fc['isInContent']||!this['_suggestionToController']['has'](_0x10f4fc))return;const _0x3754ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44614c=this['_suggestionToController']['get'](_0x10f4fc),_0x1ef12e=_0x10f4fc['getAllAdjacentSuggestions']();_0x44614c['view']['descriptionParts']=_0x3754ba['descriptionFactory']['getDescriptions'](_0x1ef12e);}['destroy'](){for(const _0x42a887 of this['_suggestionToController']['keys']())this['_destroyController'](_0x42a887);for(const _0x4d0538 of this['_annotationViews']['values']())_0x4d0538['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x3a06ac){return'model'in _0x3a06ac;}class k extends _0x579de7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x7610aa){this['editor']['plugins']['get'](p)['adapter']=_0x7610aa;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xa8572e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xa8572e);}['getSuggestions']({skipNotAttached:_0x3f52af=!0x1,toJSON:_0x111947=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3f52af,'toJSON':_0x111947});}['getSuggestion'](_0x87f548){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x87f548);}}const w=['Pagination'];class T extends _0x579de7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x50a9f7=this['editor'];if(_0x50a9f7['config']['define']('trackChangesData.editorCreator',_0x5c938c=>{const _0x31c62f=_0x50a9f7['model']['document']['getRootNames']()['reduce']((_0x139bb4,_0x4a6417)=>(_0x139bb4[_0x4a6417]='',_0x139bb4),{});return _0x50a9f7['constructor']['create'](_0x31c62f,_0x5c938c);}),'function'!=typeof _0x50a9f7['config']['get']('trackChangesData')['editorCreator'])throw new _0x1c1a8a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x29961b){return N(this['editor'],!0x0,_0x29961b);}['getDataWithDiscardedSuggestions'](_0x14791d){return N(this['editor'],!0x1,_0x14791d);}}class D extends _0x579de7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3040ae){function _0x5fbf8f(_0x1229ac){return _0x1229ac['map'](_0x25a852=>String['fromCharCode'](_0x25a852))['join']('');}super(_0x3040ae),this['result']='end',_0x3040ae[_0x5fbf8f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5fbf8f([0x76,0x69,0x65,0x77])][_0x5fbf8f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5fbf8f([0x61,0x75,0x74,0x6f]),_0x3040ae[_0x5fbf8f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5fbf8f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5fbf8f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5fbf8f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5fbf8f([0x6f,0x6b])});}['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(_0x4cf350){return void 0x0!==_0x4cf350['getRootsAttributes'];}async function N(_0x3a38ce,_0x1e6af8,_0xdadf3a){const _0x4bc1d3=_0x3ec0dd(_0x3a38ce,w);_0x4bc1d3['plugins']['push'](p,D),_0x4bc1d3['rootsAttributes']=v(_0x3a38ce)?_0x3a38ce['getRootsAttributes']():void 0x0;const _0x4c9708=document['createDocumentFragment'](),_0x3b0306=_0x3a38ce['config']['get']('trackChangesData')['editorCreator'],_0x2d3b6b=await _0x3b0306(_0x4bc1d3,()=>function(_0x16e0b0){const _0x8bc12f=document['createElement']('div');return _0x16e0b0['appendChild'](_0x8bc12f),_0x8bc12f;}(_0x4c9708));!function(_0x5a29c8,_0x58db1c){const _0x1783a2=_0x5a29c8['model']['document']['getRootNames']()['reduce']((_0x22a1fb,_0x3a87cc)=>(_0x22a1fb[_0x3a87cc]=_0x5a29c8['data']['get']({'rootName':_0x3a87cc}),_0x22a1fb),{}),_0x215b23=_0x5a29c8['plugins']['get']('Users')['users']['map'](_0x569816=>({'id':_0x569816['id'],'name':_0x569816['name']})),_0x101866=_0x5a29c8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b763c=_0x5a29c8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x55c369=_0x58db1c['plugins']['get']('Users'),_0x44479a=_0x58db1c['plugins']['get']('TrackChangesEditing'),_0x266a7b=_0x58db1c['plugins']['get']('CommentsRepository');for(const _0x5a5879 of _0x266a7b['getCommentThreads']())_0x5a5879['remove']();for(const _0x299e06 of _0x215b23)_0x55c369['getUser'](_0x299e06['id'])||_0x55c369['addUser'](_0x299e06);_0x55c369['me']||_0x55c369['useAnonymousUser']();for(const _0x4211be of _0x1b763c)_0x266a7b['addCommentThread'](_0x4211be);for(const _0x416098 of _0x101866)_0x44479a['addSuggestionData'](_0x416098);_0x58db1c['data']['set'](_0x1783a2);}(_0x3a38ce,_0x2d3b6b),_0x2d3b6b['execute'](_0x1e6af8?'acceptAllSuggestions':'discardAllSuggestions');const _0x3f37f2=v(_0x2d3b6b)?_0x2d3b6b['getFullData'](_0xdadf3a):_0x2d3b6b['data']['get'](_0xdadf3a);return await _0x2d3b6b['destroy'](),_0x3f37f2;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as Qt,Plugin as _0x38bc3e,PendingActions as _0x7beb78,icons as _0x29ed75}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3fd1ad,ObservableMixin as _0x1512c7,uid as _0x62ed8e,insertToPriorityArray as _0xbce2ac,priorities as _0x2abc47,logWarning as _0x578e39,getEnvKeystrokeText as _0x2332d7,FocusTracker as _0x196954,KeystrokeHandler as _0x4eef77,Collection as _0x57703b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x27c281,View as _0xf4a6e,ViewCollection as _0x578ef1,FocusCycler as ts,ViewModel as _0x34f432,createDropdown as _0xb5ae69,SplitButtonView as _0x28e447,addListToDropdown as te,MenuBarMenuView as _0x328fab,MenuBarMenuListView as _0x11e872,ListSeparatorView as _0x554bf2,MenuBarMenuListItemView as _0x10b09e,MenuBarMenuListItemButtonView as _0x124573}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x59245a,hashObject as _0x12408f,surroundingMarkersDetector as _0x295f33,FOCUS_ANNOTATION_KEYSTROKE as _0x52d2a6,AriaDescriptionView as _0x2ccd81,setupThreadKeyboardNavigation as _0x15095d,trimHtml as ti,UserView as _0x52c594,LateFocusButtonView as _0x46d834,getDateTimeFormatter as _0x2d1d61,getAllMarkersDomElementsSorted as _0x5c85ce,sanitizeEditorConfig as _0x1791c5}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1467f5,LiveRange as _0x3f82e4,LivePosition as _0x358e3d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4c735a,toWidget as _0x3cff86}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1416aa,set as _0x742ec7,isEqual as _0x28f5c1,unset as _0x5ab3d9,omit as xt}from'lodash-es';import{Delete as _0x16e0a5,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x32691c,ShiftEnter as _0x2216f1}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x3add3c,_0x340e07){super(_0x3add3c),this['_enabledCommands']=_0x340e07,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 _0x45d8c3 of this['editor']['commands']['commands']())_0x45d8c3['affectsData']&&!this['_enabledCommands']['has'](_0x45d8c3)&&_0x45d8c3['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x33de1f of this['editor']['commands']['commands']())_0x33de1f['affectsData']&&!this['_enabledCommands']['has'](_0x33de1f)&&_0x33de1f['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x5180e8,_0x51fe5e){super(_0x5180e8),this['_suggestions']=_0x51fe5e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4646fb){const _0x5d1c85=this['_suggestions']['get'](_0x4646fb);if(!_0x5d1c85)throw new _0x3fd1ad('track-changes-accept-suggestion-not-found',this);const _0x76cfee=_0x5d1c85['getRanges']();this['editor']['model']['canEditAt'](_0x76cfee)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5d1c85);}}class R extends Qt{['_suggestions'];constructor(_0x4d2bda,_0x4d2f6a){super(_0x4d2bda),this['_suggestions']=_0x4d2f6a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4e6cf9){const _0x166ea1=this['_suggestions']['get'](_0x4e6cf9);if(!_0x166ea1)throw new _0x3fd1ad('track-changes-discard-suggestion-not-found',this);const _0x4c3ede=_0x166ea1['getRanges']();this['editor']['model']['canEditAt'](_0x4c3ede)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x166ea1);}}function ns(_0x26b3a7,_0x2f4a68){let _0x107ff0='';return _0x107ff0+=_0x26b3a7['split']('*')['map']((_0x4a585c,_0x55f129)=>_0x55f129%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4a585c)+'</span>':nn(_0x4a585c))['join'](''),_0x2f4a68&&(_0x107ff0+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2f4a68['value']+'\x22\x20title=\x22'+_0x2f4a68['title']+'\x22></span>'),_0x107ff0;}function nn(_0xcb098d){const _0x12a217=document['createElement']('span');return _0x12a217['innerText']=_0xcb098d,_0x12a217['innerHTML'];}function Wt(_0x2f9b55){return _0x2f9b55['sort']((_0xbfccbd,_0x263be3)=>'deletion'==_0xbfccbd['type']&&'deletion'!=_0x263be3['type']?-0x1:'deletion'!=_0xbfccbd['type']&&'deletion'==_0x263be3['type']?0x1:0x0);}function to(_0x2f6c1f,_0x15e83b){let _0x14e5d6,_0x4f3513=0x0;const _0x4e82d2=[],_0x214574=_0x15e83b['schema'];for(;_0x4f3513<_0x2f6c1f['length'];){const _0x5e017e=_0x2f6c1f[_0x4f3513],_0x44a688=_0x2f6c1f[_0x4f3513+0x1];_0x14e5d6||(_0x14e5d6=_0x15e83b['createPositionBefore'](_0x5e017e)),on(_0x15e83b,_0x5e017e,_0x44a688)||(_0x4e82d2['push'](_0x15e83b['createRange'](_0x14e5d6,_0x214574['isObject'](_0x5e017e)?_0x15e83b['createPositionAfter'](_0x5e017e):_0x15e83b['createPositionAt'](_0x5e017e,'end'))),_0x14e5d6=null),_0x4f3513++;}return _0x4e82d2;}function on(_0x251f52,_0x4816ae,_0x41b14f){if(!_0x41b14f)return!0x1;const _0x19c926=_0x251f52['createPositionAfter'](_0x4816ae),_0x5390e1=_0x251f52['createPositionBefore'](_0x41b14f);return _0x19c926['isTouching'](_0x5390e1);}function Xt(_0x2cea11,_0x8011f3,_0x43af6c){for(;_0x43af6c['length'];){const _0x3e353a=_0x43af6c['splice'](0x0,0x64);_0x2cea11['change'](()=>{for(const _0xcface2 of _0x3e353a)_0xcface2['isInContent']&&_0x8011f3['execute'](_0xcface2['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x36614c,_0x3babca,_0x3f0605){super(_0x36614c),this['_command']=_0x3babca,this['_suggestions']=_0x3f0605,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x370c6e=Array['from'](this['_suggestions']['values']())['some'](_0x1137db=>_0x1137db['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x370c6e;}['execute'](){const _0x51d98b=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x29bf5f of _0x51d98b){const _0x24b207=_0x29bf5f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x24b207))return;}Xt(this['editor']['model'],this['_command'],_0x51d98b);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x236777,_0x2274fa,_0xf0c702){super(_0x236777),this['_command']=_0x2274fa,this['_suggestions']=_0xf0c702,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x45e374=this['editor']['model']['document']['selection'],_0x166170=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x45f417,_0x37c050){const _0x4e08b9=Array['from'](_0x45f417['getRanges']()),_0x225799=new Set();for(const _0x537b59 of _0x37c050)if(_0x537b59['isInContent']){for(const _0x33a2e4 of _0x4e08b9)for(const _0x1fa77c of _0x537b59['getRanges']())(_0x33a2e4['isIntersecting'](_0x1fa77c)||_0x45f417['isCollapsed']&&!_0x537b59['isMultiRange']&&_0x537b59['next']&&_0x1fa77c['end']['isTouching'](_0x33a2e4['start']))&&_0x225799['add'](_0x537b59);}return _0x225799;}(_0x45e374,_0x166170),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1ac76c=Wt(Array['from'](this['_selectedSuggestions']));for(const _0xf5c123 of _0x1ac76c){const _0x5d58a5=_0xf5c123['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5d58a5))return;}Xt(this['editor']['model'],this['_command'],_0x1ac76c);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1512c7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x167f96,_0x280eef){super(),this['id']=_0x280eef['id'],this['type']=_0x280eef['type'],this['subType']=_0x280eef['subType']||null,this['author']=_0x280eef['author'],this['creator']=_0x280eef['creator']||_0x280eef['author'],this['isExternal']=Boolean(_0x280eef['attributes']&&_0x280eef['attributes']['@external']),this['data']=null,this['_model']=_0x167f96,this['_onAccept']=_0x280eef['onAccept'],this['_onDiscard']=_0x280eef['onDiscard'],this['_onAttributesChange']=_0x280eef['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x280eef['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 _0x1095fa=this;for(;_0x1095fa['previous'];)_0x1095fa=_0x1095fa['previous'];return _0x1095fa;}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'](_0x65af24){this['_markerNames']['add'](_0x65af24);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x115b8d=>this['_model']['markers']['get'](_0x115b8d))['filter'](_0x213d45=>_0x213d45);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4b06f2=>{for(const _0x3f6baa of this['getMarkers']())_0x4b06f2['removeMarker'](_0x3f6baa);}),this['_markerNames']['clear']();}['removeMarker'](_0x8f9ec9){this['_model']['change'](_0x419e94=>{_0x419e94['removeMarker'](_0x8f9ec9);}),this['_markerNames']['delete'](_0x8f9ec9);}['addRange'](_0x4c1da4){const _0x2111e0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2111e0),this['_model']['change'](_0x120b37=>{_0x120b37['addMarker'](_0x2111e0,{'range':_0x4c1da4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x203731){for(const _0x263300 of this['getRanges']())if(_0x263300['isIntersecting'](_0x203731))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x16e312=>_0x16e312['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x192932,_0x19f506)=>[..._0x192932,..._0x19f506['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ab0a8=this['getRanges']();if(0x1!=_0x1ab0a8['length'])return null;const _0x52b86c=_0x1ab0a8[0x0],_0x51f5a5=_0x52b86c['start']['nodeAfter'],_0x3a6bf8=_0x52b86c['end']['nodeBefore'];return _0x51f5a5 instanceof _0x1467f5?_0x51f5a5!=_0x3a6bf8?null:_0x51f5a5: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 _0x842425=[];let _0x1a186a=this['head'];for(;_0x1a186a;)_0x842425['push'](_0x1a186a),_0x1a186a=_0x1a186a['next'];return _0x842425;}['setAttribute'](_0x4dcf53,_0x411640){const _0x2bbf40=_0x1416aa(this['attributes']);_0x742ec7(_0x2bbf40,_0x4dcf53,_0x411640),_0x28f5c1(_0x2bbf40,this['attributes'])||(this['attributes']=_0x2bbf40,this['_onAttributesChange'](_0x2bbf40));}['removeAttribute'](_0x2f7f10){const _0x5d07e0=_0x1416aa(this['attributes']);_0x5ab3d9(_0x5d07e0,_0x2f7f10),_0x28f5c1(_0x5d07e0,this['attributes'])||(this['attributes']=_0x5d07e0,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 _0x62ed8e()['substr'](0x1,0x5);}}function o(_0x187eed,_0x4dc072,_0x5193fc){const _0x493745=_0x187eed['t'],t=_0x187eed['t'];switch(_0x4dc072){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',_0x5193fc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5193fc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5193fc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5193fc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5193fc);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',_0x5193fc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5193fc);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',_0x5193fc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5193fc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5193fc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5193fc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5193fc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5193fc);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5193fc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5193fc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5193fc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5193fc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5193fc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5193fc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5193fc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5193fc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5193fc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5193fc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5193fc);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'},_0x5193fc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5193fc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5193fc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5193fc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5193fc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5193fc);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'},_0x5193fc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5193fc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5193fc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5193fc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5193fc);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'},_0x5193fc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5193fc);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'},_0x5193fc);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'},_0x5193fc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5193fc);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'},_0x5193fc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5193fc);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'},_0x5193fc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5193fc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5193fc);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'},_0x5193fc);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5193fc);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 _0x493745({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5193fc);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x493745({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5193fc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5193fc);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'},_0x5193fc);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'},_0x5193fc);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'},_0x5193fc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4dc072;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1a6170,_0x1de542){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1a6170,this['_locale']=_0x1de542;}['getDescriptions'](_0x2957f1){const _0x55f3a7=[],_0x542083=new Set(),_0x2d0c52=new Set();for(let _0xef7249=0x0;_0xef7249<_0x2957f1['length'];_0xef7249++){const _0x3f48bf=_0x2957f1[_0xef7249];if(!_0x3f48bf['isInContent'])continue;const _0x1173f6=this['_handleCustomCallbackDescription'](_0x3f48bf);if(_0x1173f6){if(null!=_0x3f48bf['subType']){if(_0x542083['has'](_0x3f48bf['subType']))continue;_0x542083['add'](_0x3f48bf['subType']);}_0x55f3a7['push'](_0x1173f6);}else{if('attribute'!=_0x3f48bf['type'])'insertion'!=_0x3f48bf['type']&&'deletion'!=_0x3f48bf['type']||this['_handleInsertRemoveSuggestionDescription'](_0x55f3a7,_0x3f48bf,_0x2957f1[_0xef7249+0x1]);else{const _0x418bd9=_0x3f48bf['data']['key'];if(_0x2d0c52['has'](_0x418bd9))continue;_0x2d0c52['add'](_0x3f48bf['data']['key']),_0x418bd9==m?this['_handleRenameSuggestionDescription'](_0x55f3a7,_0x3f48bf):this['_handleAttributeSuggestionDescription'](_0x55f3a7,_0x3f48bf);}}}return this['_resolveDescriptionItems'](_0x55f3a7);}['registerDescriptionCallback'](_0x30a756){this['_customCallbacks']['push'](_0x30a756);}['registerElementLabel'](_0x366a39,_0x4ba1f6,_0x35ebfc=_0x2abc47['normal']){'function'==typeof _0x366a39?_0xbce2ac(this['_itemLabelsCallbacks'],{'matchingCallback':_0x366a39,'label':_0x4ba1f6,'priority':_0x35ebfc}):this['_itemLabels']['set'](_0x366a39,_0x4ba1f6);}['registerAttributeLabel'](_0x3fbca9,_0x580e7e){this['_attributeLabels']['set'](_0x3fbca9,_0x580e7e);}['getItemLabel'](_0x37b3ca,_0x12671b=0x1){let _0x453470;for(const _0x1bb106 of this['_itemLabelsCallbacks'])if(_0x1bb106['matchingCallback'](_0x37b3ca)){_0x453470=_0x1bb106['label'];break;}return _0x453470||(_0x453470=this['_itemLabels']['get'](_0x37b3ca['name'])),_0x453470?_0x453470(_0x12671b):0x1!==_0x12671b?_0x12671b+'\x20'+_0x37b3ca['name']+'s':''+_0x37b3ca['name'];}['_addDescriptionItems'](_0x40ec2b,_0x5dd86a){const _0x2edd2a=_0x5dd86a['getFirstRange']()['getWalker'](),_0x3e3999='insertion'==_0x5dd86a['type']?'add':'remove';for(const _0x29f4f8 of _0x2edd2a){const _0x51891c=_0x29f4f8['item'],_0x5ae154=_0x40ec2b[_0x40ec2b['length']-0x1];if(_0x51891c['is']('$textProxy'))_0x5ae154&&_0x5ae154['type']['indexOf']('Container')>-0x1&&_0x40ec2b['pop'](),_0x5ae154&&'text'==_0x5ae154['type']?_0x5ae154[_0x3e3999]+=_0x51891c['data']:_0x40ec2b['push']({'type':'text','add':'add'==_0x3e3999?_0x51891c['data']:'','remove':'remove'==_0x3e3999?_0x51891c['data']:''});else{if(this['_schema']['isObject'](_0x51891c)){const _0x2b8c87=_0x51891c;if(_0x5ae154&&_0x5ae154['type']['indexOf']('Container')>-0x1&&_0x40ec2b['pop'](),'elementEnd'==_0x29f4f8['type'])continue;_0x5ae154&&_0x5ae154['type']==_0x3e3999+'Object'&&_0x5ae154['element']['name']==_0x2b8c87['name']?_0x5ae154['quantity']++:_0x40ec2b['push']({'type':_0x3e3999+'Object','element':_0x2b8c87,'quantity':0x1}),_0x2edd2a['skip'](_0x589d45=>!('elementEnd'==_0x589d45['type']&&_0x589d45['item']==_0x51891c));}else{if(this['_schema']['checkChild'](_0x51891c,'$text')||_0x51891c['is']('element','softBreak')){const _0x1793c1=_0x51891c;if('add'==_0x3e3999&&'elementStart'==_0x29f4f8['type']||'remove'==_0x3e3999&&'elementEnd'==_0x29f4f8['type'])continue;if(_0x5ae154&&-0x1==_0x5ae154['type']['indexOf']('Container')){'text'==_0x5ae154['type']&&(_0x5ae154[_0x3e3999]+='\x0a');continue;}let _0x245013;if(_0x245013='add'==_0x3e3999?_0x1793c1['nextSibling']&&!this['_schema']['isObject'](_0x1793c1['nextSibling'])?_0x1793c1['nextSibling']:null:_0x1793c1['previousSibling']&&!this['_schema']['isObject'](_0x1793c1['previousSibling'])?_0x1793c1['previousSibling']:null,_0x1793c1['isEmpty']||_0x245013&&_0x245013['isEmpty']){const _0x288f3f=_0x245013&&_0x245013['isEmpty']?_0x245013:_0x1793c1;_0x5ae154&&_0x5ae154['type']==_0x3e3999+'EmptyContainer'&&_0x5ae154['element']['name']==_0x288f3f['name']?_0x5ae154['quantity']++:_0x40ec2b['push']({'type':_0x3e3999+'EmptyContainer','element':_0x288f3f,'quantity':0x1});}else _0x40ec2b['push']({'type':_0x3e3999+'Container','element':_0x1793c1});}}}}}['_resolveDescriptionItems'](_0x2028b9){const _0x55d78f=this['_locale'],_0xe1519d=[],_0x46451f=[],_0x1e8790=[];for(const _0x37b67b of _0x2028b9)switch(_0x37b67b['type']){case'text':if(_0x37b67b['add']=_0x37b67b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x37b67b['remove']=_0x37b67b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x37b67b['add']&&''!=_0x37b67b['remove']){_0xe1519d['push']({'type':'replace','content':o(_0x55d78f,'REPLACE_TEXT',['\x22'+_0x37b67b['remove']+'\x22','\x22'+_0x37b67b['add']+'\x22'])});continue;}if(null!=_0x37b67b['add']['match'](/^ +$/)){_0xe1519d['push']({'type':'insertion','content':o(_0x55d78f,'*Insert:*\x20%0',o(_0x55d78f,'ELEMENT_SPACE',_0x37b67b['add']['length']))});continue;}if(null!=_0x37b67b['remove']['match'](/^ +$/)){_0xe1519d['push']({'type':'deletion','content':o(_0x55d78f,'*Remove:*\x20%0',o(_0x55d78f,'ELEMENT_SPACE',_0x37b67b['remove']['length']))});continue;}if(''!=_0x37b67b['add']){_0xe1519d['push']({'type':'insertion','content':o(_0x55d78f,'*Insert:*\x20%0','\x22'+_0x37b67b['add']+'\x22')});continue;}_0xe1519d['push']({'type':'deletion','content':o(_0x55d78f,'*Remove:*\x20%0','\x22'+_0x37b67b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xe1519d['push']({'type':'insertion','content':o(_0x55d78f,'*Insert:*\x20%0',this['getItemLabel'](_0x37b67b['element'],_0x37b67b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xe1519d['push']({'type':'deletion','content':o(_0x55d78f,'*Remove:*\x20%0',this['getItemLabel'](_0x37b67b['element'],_0x37b67b['quantity']))});continue;case'addContainer':_0xe1519d['push']({'type':'insertion','content':o(_0x55d78f,'*Split:*\x20%0',this['getItemLabel'](_0x37b67b['element'],_0x37b67b['quantity']))});continue;case'removeContainer':_0xe1519d['push']({'type':'deletion','content':o(_0x55d78f,'*Merge:*\x20%0',this['getItemLabel'](_0x37b67b['element'],_0x37b67b['quantity']))});continue;case'addFormat':_0x46451f['push'](_0x37b67b['key']);continue;case'removeFormat':_0x1e8790['push'](_0x37b67b['key']);continue;default:_0xe1519d['push'](_0x37b67b);}if(_0x46451f['length']){const _0x125237=_0x46451f['map'](_0x3fb9b2=>this['_attributeLabels']['has'](_0x3fb9b2)?this['_attributeLabels']['get'](_0x3fb9b2):_0x3fb9b2)['join'](',\x20');_0xe1519d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x125237)});}if(_0x1e8790['length']){const _0x4e259a=_0x1e8790['map'](_0x435c90=>this['_attributeLabels']['has'](_0x435c90)?this['_attributeLabels']['get'](_0x435c90):_0x435c90)['join'](',\x20');_0xe1519d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4e259a)});}return _0xe1519d;}['_handleCustomCallbackDescription'](_0x16e467){for(const _0x2cf5a5 of this['_customCallbacks']){const _0x11d610=_0x2cf5a5(_0x16e467);if(_0x11d610&&'type'in _0x11d610)return _0x11d610;}}['_handleAttributeSuggestionDescription'](_0x23cd6a,_0x435619){const _0x2d039e=_0x435619['data'],_0x455223=void 0x0===_0x2d039e['newValue']?'removeFormat':'addFormat';_0x23cd6a['push']({'type':_0x455223,'key':_0x2d039e['key']});}['_handleRenameSuggestionDescription'](_0x470d38,_0x5d79af){_0x470d38['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5d79af['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x473109,_0xf88917,_0x464de3){if(this['_addDescriptionItems'](_0x473109,_0xf88917),_0x464de3&&_0x464de3['getFirstRange']()&&!_0xf88917['getFirstRange']()['end']['isEqual'](_0x464de3['getFirstRange']()['start'])){const _0x1b94a4=_0x473109[_0x473109['length']-0x1],_0x13119c='insertion'==_0xf88917['type']?'add':'remove';_0x1b94a4&&'text'==_0x1b94a4['type']&&(_0x1b94a4[_0x13119c]+='\x0a');}}}class U extends _0x38bc3e{['afterInit'](){const _0x2cb1d6=this['editor'],_0x2382ab=_0x2cb1d6['plugins']['get']('TrackChangesEditing');_0x2cb1d6['commands']['get']('showAIAssistant')&&_0x2382ab['enableCommand']('showAIAssistant');}}class V extends _0x38bc3e{['afterInit'](){const _0x1647ec=this['editor'],_0x37af0a=_0x1647ec['locale'];if(!_0x1647ec['plugins']['has']('AlignmentEditing'))return;const _0x55fcdb=_0x1647ec['plugins']['get']('TrackChangesEditing');_0x55fcdb['enableDefaultAttributesIntegration']('alignment'),_0x55fcdb['registerBlockAttribute']('alignment'),_0x55fcdb['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x37af0a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b7056=this['editor'],_0x4315dd=_0x2b7056['locale'];_0x2b7056['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e682e=>{if('formatBlock'!=_0x3e682e['type'])return;const {data:_0x305050}=_0x3e682e;if(_0x305050&&'alignment'==_0x305050['commandName']){const _0x2e6cc4=_0x305050['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4315dd,'*Format:*\x20%0',function(_0x26c323){switch(_0x26c323){case'left':return o(_0x4315dd,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4315dd,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4315dd,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4315dd,'FORMAT_JUSTIFY_TEXT');}}(_0x2e6cc4))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x38bc3e{['afterInit'](){const _0x58d7ee=this['editor'],_0x1aa07b=_0x58d7ee['plugins']['get']('TrackChangesEditing'),_0x802fa2=_0x58d7ee['locale'];for(const _0x2feb01 of Zt){if(!_0x58d7ee['plugins']['has'](_0x2feb01))continue;const _0x1c675a=_0x2feb01['slice'](0x0,-0x7)['toLowerCase'](),_0x1d4c92='FORMAT_'+_0x1c675a['toUpperCase']();_0x1aa07b['enableDefaultAttributesIntegration'](_0x1c675a),_0x1aa07b['registerInlineAttribute'](_0x1c675a),_0x1aa07b['descriptionFactory']['registerAttributeLabel'](_0x1c675a,o(_0x802fa2,_0x1d4c92));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd0b15f=this['editor'],_0x162758=_0xd0b15f['locale'],_0x1b1c6d=_0xd0b15f['plugins']['get']('TrackChangesEditing');function _0x6b0d66(_0x1170b4,_0x12e2fa){_0x1b1c6d['descriptionFactory']['registerDescriptionCallback'](_0x29b1e0=>{if('formatInline'!=_0x29b1e0['type'])return;const {data:_0x556eea}=_0x29b1e0;return _0x556eea&&_0x556eea['commandName']===_0x1170b4?_0x556eea['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x162758,'*Format:*\x20%0',_0x12e2fa)}:{'type':'format','content':o(_0x162758,'*Remove\x20format:*\x20%0',_0x12e2fa)}:void 0x0;});}_0x6b0d66('bold',o(_0x162758,'FORMAT_BOLD')),_0x6b0d66('italic',o(_0x162758,'FORMAT_ITALIC')),_0x6b0d66('underline',o(_0x162758,'FORMAT_UNDERLINE')),_0x6b0d66('code',o(_0x162758,'FORMAT_CODE')),_0x6b0d66('strikethrough',o(_0x162758,'FORMAT_STRIKETHROUGH')),_0x6b0d66('subscript',o(_0x162758,'FORMAT_SUBSCRIPT')),_0x6b0d66('superscript',o(_0x162758,'FORMAT_SUPERSCRIPT'));}}class F extends _0x38bc3e{['afterInit'](){const _0x528870=this['editor'],_0x3bf237=_0x528870['locale'];if(!_0x528870['plugins']['has']('BlockQuoteEditing'))return;const _0x643c07=_0x528870['plugins']['get']('TrackChangesEditing'),_0x12b8b8=this['editor']['commands']['get']('blockQuote');_0x643c07['enableCommand']('blockQuote',(_0x285b91,_0xe0b0c3={})=>{const _0x35dc30=this['editor']['model']['document']['selection'],_0x459899=_0xe0b0c3&&void 0x0!==_0xe0b0c3['forceValue']?_0xe0b0c3['forceValue']:!_0x12b8b8['value'];let _0x497db6=[];if(_0x459899){const _0x3f7c55=Array['from'](_0x35dc30['getSelectedBlocks']())['filter'](_0x1c0c74=>oo(_0x1c0c74)||function(_0x490493,_0x43a516){const _0x118bfe=_0x43a516['checkChild'](_0x490493['parent'],'blockQuote'),_0x11fff5=_0x43a516['checkChild'](['$root','blockQuote'],_0x490493);return _0x118bfe&&_0x11fff5;}(_0x1c0c74,this['editor']['model']['schema']));_0x497db6=to(_0x3f7c55,_0x528870['model']);}else{const _0x18c54f=Array['from'](_0x35dc30['getSelectedBlocks']())['filter'](_0x3decf6=>oo(_0x3decf6));_0x497db6=to(_0x18c54f,_0x528870['model']);}_0x528870['model']['change'](()=>{for(const _0x3c5b43 of _0x497db6)_0x643c07['markBlockFormat'](_0x3c5b43,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x459899}]});});}),_0x643c07['descriptionFactory']['registerDescriptionCallback'](_0x1b230b=>{const {data:_0x1f206b}=_0x1b230b;if(_0x1f206b&&'blockQuote'==_0x1f206b['commandName']){const _0x42f133=o(_0x3bf237,'ELEMENT_BLOCK_QUOTE');return _0x1f206b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3bf237,'*Set\x20format:*\x20%0',_0x42f133)}:{'type':'format','content':o(_0x3bf237,'*Remove\x20format:*\x20%0',_0x42f133)};}});}}function oo(_0x59c833){return'blockQuote'==_0x59c833['parent']['name'];}class L extends _0x38bc3e{['afterInit'](){const _0x3ceaf9=this['editor'],_0x493bb7=_0x3ceaf9['locale'],_0x541626=_0x3ceaf9['plugins']['get']('TrackChangesEditing');_0x3ceaf9['plugins']['has']('BookmarkEditing')&&(_0x541626['enableCommand']('insertBookmark'),_0x541626['enableDefaultAttributesIntegration']('updateBookmark'),_0x541626['registerBlockAttribute']('bookmarkId'),_0x541626['descriptionFactory']['registerDescriptionCallback'](_0x5693ff=>{if('insertion'!=_0x5693ff['type']&&'deletion'!=_0x5693ff['type']&&'attribute'!=_0x5693ff['type'])return;const _0x4f8c70=_0x5693ff['getContainedElement']();if(null==_0x4f8c70)return;if(!_0x4f8c70['is']('element','bookmark'))return;const _0x24ba41=_0x4f8c70['getAttribute']('bookmarkId');if('insertion'==_0x5693ff['type'])return{'type':'insertion','content':o(_0x493bb7,'*Insert:*\x20%0','\x22'+_0x24ba41+'\x22\x20'+o(_0x493bb7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5693ff['type'])return{'type':'deletion','content':o(_0x493bb7,'*Remove:*\x20%0','\x22'+_0x24ba41+'\x22\x20'+o(_0x493bb7,'ELEMENT_BOOKMARK'))};const {data:_0x4e96ef}=_0x5693ff;if(!_0x4e96ef||'bookmarkId'!=_0x4e96ef['key'])return;return{'type':'format','content':o(_0x493bb7,'*Set\x20bookmark:*\x20%0','\x22'+_0x4e96ef['newValue']+'\x22')};}));}}class J extends _0x38bc3e{['afterInit'](){const _0x57f6cf=this['editor'];_0x57f6cf['plugins']['has']('CaseChange')&&(_0x57f6cf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x57f6cf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x57f6cf['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x38bc3e{['afterInit'](){const _0x3a7105=this['editor'];_0x3a7105['commands']['get']('ckbox')&&_0x3a7105['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x38bc3e{['afterInit'](){const _0x5addd9=this['editor'];if(!_0x5addd9['plugins']['has']('CodeBlock'))return;const _0x1e7635=_0x5addd9['plugins']['get']('TrackChangesEditing'),_0x37c91f=_0x5addd9['locale'],_0x46efd7=_0x5addd9['config']['get']('codeBlock')['languages'],_0x3840ae=_0x5addd9['commands']['get']('codeBlock');_0x1e7635['enableCommand']('indentCodeBlock'),_0x1e7635['enableCommand']('outdentCodeBlock'),_0x1e7635['enableCommand']('codeBlock',(_0xdc691a,_0x17f37a={})=>{const _0x308e04=_0x5addd9['model'],_0x1875b0=_0x5addd9['model']['document']['selection'],_0x1e35f4=_0x17f37a&&void 0x0!==_0x17f37a['forceValue']?_0x17f37a['forceValue']:!_0x3840ae['value'];let _0x415669;_0x17f37a['language']||(_0x17f37a['language']=_0x46efd7[0x0]['language']),_0x415669=_0x1e35f4?Array['from'](_0x1875b0['getSelectedBlocks']())['filter'](_0x12abe1=>eo(_0x12abe1)||function(_0x361634,_0x84fdc5){if(_0x361634['is']('rootElement')||_0x84fdc5['isLimit'](_0x361634))return!0x1;return _0x84fdc5['checkChild'](_0x361634['parent'],'codeBlock');}(_0x12abe1,_0x308e04['schema'])):Array['from'](_0x1875b0['getSelectedBlocks']())['filter'](_0xae68ba=>eo(_0xae68ba));const _0x3a9b2e=to(_0x415669,_0x308e04);_0x308e04['change'](()=>{for(const _0x3fdb09 of _0x3a9b2e)_0x1e7635['markBlockFormat'](_0x3fdb09,{'commandName':'codeBlock','commandParams':[{..._0x17f37a,'forceValue':_0x1e35f4}],'formatGroupId':'blockName'});});}),(_0x1e7635['descriptionFactory']['registerElementLabel']('codeBlock',_0x222026=>o(_0x37c91f,'ELEMENT_CODE_BLOCK',_0x222026)),_0x1e7635['descriptionFactory']['registerDescriptionCallback'](_0x8a9a13=>{if('formatBlock'!=_0x8a9a13['type'])return;const _0x4dd56f=_0x37c91f['t'],{data:_0x3f7cca}=_0x8a9a13;if(!_0x3f7cca||'codeBlock'!=_0x3f7cca['commandName'])return;const _0x1a3abd=_0x3f7cca['commandParams'][0x0]['language'],_0x5eac63=_0x4dd56f(_0x46efd7['find'](_0x2554b1=>_0x2554b1['language']===_0x1a3abd)['label'])['toLowerCase']();return _0x3f7cca['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37c91f,'*Set\x20format:*\x20%0',o(_0x37c91f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5eac63+')')}:{'type':'format','content':o(_0x37c91f,'*Remove\x20format:*\x20%0',o(_0x37c91f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x434fe1){return'codeBlock'==_0x434fe1['name'];}class z extends _0x38bc3e{['afterInit'](){const _0x58e75a=this['editor'];if(!_0x58e75a['plugins']['has']('CommentsEditing'))return;_0x58e75a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xabea5f,_0xf201b5,_0x35b79b){const _0x538392=[];for(const _0x17e310 of _0xf201b5['getItems']())_0x17e310['hasAttribute'](_0xabea5f)&&_0x538392['push'](_0x35b79b['createRangeOn'](_0x17e310));return _0x538392;}function Ne(_0x35ab5c,_0x36df18,{showActiveMarker:_0x1b1baa=!0x0}={}){const _0x30fe75=_0x35ab5c['plugins']['get']('TrackChangesEditing');return(_0x3dacec,_0x25f0cd,_0x18a118)=>{if(!_0x18a118['consumable']['test'](_0x25f0cd['markerRange'],_0x3dacec['name']))return;const _0x3f7274=_0x25f0cd['markerRange']['getWalker'](),_0xf26bd3=_0x25f0cd['markerRange']['start'],_0x4cad43=_0x35ab5c['model']['schema'];let _0x73cc93=null,_0x3efa01=null,_0x4f089e=!0x1,_0x46394c=!0x1;for(const _0x404a00 of _0x3f7274){const _0x3ad959=_0x404a00['item'];_0x4f089e=_0x4f089e||_0x4cad43['isContent'](_0x3ad959);const _0x29483d=_0x18a118['mapper']['toViewElement'](_0x3ad959);if(_0x29483d&&_0x29483d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x404a00['type']&&(_0x4cad43['isBlock'](_0x3ad959)&&!_0x4cad43['isLimit'](_0x3ad959)&&(_0x3ad959['nextSibling']||_0xf26bd3['isAtEnd']?_0x73cc93&&_0x73cc93['parent']==_0x3ad959||(_0x73cc93=_0x3ad959,_0x205d37(_0x404a00['previousPosition']),_0x46394c=!0x0):_0x3efa01=_0x3efa01||_0x404a00['previousPosition']));}function _0x205d37(_0x1a060a){const {authorId:_0x577a85}=_0x30fe75['_splitMarkerName'](_0x25f0cd['markerName']),_0x5510f0=_0x18a118['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36df18,'data-author-id':_0x577a85}),_0x39c902=_0x18a118['mapper']['toViewPosition'](_0x1a060a);_0x1b1baa&&_0x30fe75['activeMarkers']['includes'](_0x25f0cd['markerName'])&&_0x18a118['writer']['addClass']('ck-suggestion-marker--active',_0x5510f0),_0x18a118['writer']['insert'](_0x39c902,_0x5510f0),_0x18a118['mapper']['bindElementToMarker'](_0x5510f0,_0x25f0cd['markerName']);}_0x4f089e||_0x46394c||!_0x3efa01||_0x205d37(_0x3efa01);};}class K extends _0x38bc3e{static get['requires'](){return[_0x16e0a5];}['init'](){const _0x49c2c5=this['editor'],_0x42417b=_0x49c2c5['plugins']['get']('TrackChangesEditing');_0x42417b['enableCommand']('delete');const _0x4508eb=_0x49c2c5['commands']['get']('deleteForward');_0x42417b['enableCommand']('deleteForward',(_0x39cc96,_0x177343={})=>{const _0x5b99f7=_0x49c2c5['model']['createSelection'](_0x49c2c5['model']['document']['selection']);_0x5b99f7['isCollapsed']&&_0x49c2c5['model']['modifySelection'](_0x5b99f7,{'direction':'forward','unit':_0x177343['unit']});const _0x2a6a1a=_0x5b99f7['getFirstRange'](),_0x5d8da2=_0x3f82e4['fromRange'](_0x2a6a1a);let _0x36872d;_0x39cc96(_0x177343),_0x36872d='$graveyard'==_0x5d8da2['root']['rootName']?_0x49c2c5['model']['createRange'](_0x2a6a1a['start']):_0x49c2c5['model']['createRange'](_0x5d8da2['start'],_0x5d8da2['end']),_0x5d8da2['detach'](),_0x49c2c5['model']['enqueueChange'](_0x4508eb['buffer']['batch'],_0x34a2f4=>{_0x4508eb['buffer']['lock'](),_0x34a2f4['setSelection'](_0x34a2f4['createRange'](_0x36872d['end'])),_0x4508eb['buffer']['unlock']();});}),_0x49c2c5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x49c2c5,'merge'),{'priority':'high'}),_0x49c2c5['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x38b6a8,_0x576a14,_0x152316)=>{_0x152316['options']['showSuggestionHighlights']&&Ne(_0x49c2c5,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x38b6a8,_0x576a14,_0x152316);},{'priority':'high'}),_0x49c2c5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1ead0d,_0x17e59b,_0xa00b41)=>{const _0x228a9f=_0xa00b41['mapper']['markerNameToElements'](_0x17e59b['markerName']);if(_0x228a9f){for(const _0x4ef316 of _0x228a9f)_0x4ef316['is']('uiElement')&&(_0xa00b41['mapper']['unbindElementFromMarkerName'](_0x4ef316,_0x17e59b['markerName']),_0xa00b41['writer']['remove'](_0x4ef316));}},{'priority':'high'});}}class W extends _0x38bc3e{['afterInit'](){const _0x1d33f3=this['editor'];if(!_0x1d33f3['plugins']['has']('ListEditing'))return;const _0x2e559e=_0x1d33f3['locale'],_0x4aff63=_0x1d33f3['plugins']['get']('TrackChangesEditing'),_0x50bf2f=_0x1d33f3['plugins']['has']('TodoListEditing'),_0x39a2c2=!!_0x1d33f3['config']['get']('list.multiBlock');function _0x34f425(_0x293cbb){return{'type':'format','content':''+o(_0x2e559e,'*Set\x20format:*\x20%0',_0x293cbb)};}function _0x3809df(_0xa8c1fd){return{'type':'format','content':''+o(_0x2e559e,'*Remove\x20format:*\x20%0',_0xa8c1fd)};}_0x4aff63['enableDefaultAttributesIntegration']('numberedList'),_0x4aff63['enableDefaultAttributesIntegration']('bulletedList'),_0x4aff63['enableDefaultAttributesIntegration']('customNumberedList'),_0x4aff63['enableDefaultAttributesIntegration']('customBulletedList'),_0x4aff63['enableDefaultAttributesIntegration']('indentList'),_0x4aff63['enableDefaultAttributesIntegration']('outdentList'),_0x4aff63['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4aff63['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4aff63['registerBlockAttribute']('listItemId'),_0x4aff63['registerBlockAttribute']('listType'),_0x4aff63['registerBlockAttribute']('listIndent'),_0x39a2c2&&(_0x4aff63['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4aff63['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x50bf2f&&(_0x4aff63['enableDefaultAttributesIntegration']('todoList'),_0x4aff63['enableDefaultAttributesIntegration']('checkTodoList'),_0x4aff63['registerBlockAttribute']('todoListChecked'),_0x4aff63['descriptionFactory']['registerDescriptionCallback'](_0xa90bd6=>{const {data:_0x339852}=_0xa90bd6;if(_0x339852&&'todoListChecked'==_0x339852['key'])return{'type':'format','content':_0x339852['newValue']?o(_0x2e559e,'*Check\x20item*'):o(_0x2e559e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3ba2a3=>{if(_0x3ba2a3['batch']['isUndo'])return!0x1;let _0x39bc01=!0x1;const _0x24564e=_0x4aff63['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a2c00=>'todoListChecked'===_0x4aff63['_getAttributeKey'](_0x2a2c00));for(const _0x5e78ba of _0x24564e){'todo'!=_0x5e78ba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4aff63['_findSuggestions'](_0x5e78ba['getFirstRange'](),'attribute')['find'](_0x883bee=>'listType'===_0x4aff63['_getAttributeKey'](_0x883bee['suggestion']))||(_0x3ba2a3['removeMarker'](_0x5e78ba['getFirstMarker']()),_0x39bc01=!0x0));}return _0x39bc01;})),_0x4aff63['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2e559e,'FORMAT_INDENT'));const _0xfd856={'type':'format','content':''};_0x4aff63['descriptionFactory']['registerDescriptionCallback'](_0x34f7b7=>{const {data:_0x42cdcf}=_0x34f7b7;if(!_0x42cdcf||'listType'!=_0x42cdcf['key'])return;let _0x536e3e=_0x34f7b7['head'];for(;_0x536e3e;){if(_0x536e3e['data']&&(('listStyle'==_0x536e3e['data']['key']||'listMarkerStyle'==_0x536e3e['data']['key'])&&(_0x536e3e['data']['newValue']&&'default'!=_0x536e3e['data']['newValue']||'default'!=_0x536e3e['data']['oldValue']&&!_0x42cdcf['newValue'])||!_0x39a2c2&&_0x536e3e['data']['key']==m))return _0xfd856;_0x536e3e=_0x536e3e['next'];}if(null==_0x42cdcf['newValue'])switch(_0x42cdcf['oldValue']){case'bulleted':return _0x3809df(o(_0x2e559e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3809df(o(_0x2e559e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3809df(o(_0x2e559e,'ELEMENT_TODO_LIST'));}switch(_0x42cdcf['newValue']){case'bulleted':return _0x34f425(o(_0x2e559e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x34f425(o(_0x2e559e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x34f425(o(_0x2e559e,'ELEMENT_TODO_LIST'));}}),_0x4aff63['descriptionFactory']['registerDescriptionCallback'](_0x6901b=>{const {data:_0x4084db}=_0x6901b;if(_0x4084db&&'listIndent'==_0x4084db['key'])return null==_0x4084db['newValue']||null==_0x4084db['oldValue']&&0x0==_0x4084db['newValue']?_0xfd856:void 0x0;}),_0x4aff63['descriptionFactory']['registerDescriptionCallback'](_0x489405=>{if('attribute'!=_0x489405['type'])return;const {data:_0x185dcb}=_0x489405;if(!_0x185dcb||'listItemId'!=_0x185dcb['key'])return;const _0x4524aa=Te(_0x489405);return'newValue'==_0x4524aa?{'type':'format','content':o(_0x2e559e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4524aa?{'type':'format','content':o(_0x2e559e,'*Split:*\x20list\x20item')}:_0xfd856;}),_0x1d33f3['model']['document']['registerPostFixer'](_0x354317=>this['listItemIdFixer'](_0x354317)),_0x1d33f3['model']['document']['registerPostFixer'](_0x5774c8=>this['noTrackChangesFixer'](_0x5774c8)),_0x1d33f3['model']['document']['on']('change:data',(_0x52a63d,_0x55e045)=>{if(_0x55e045['isUndo']||!_0x55e045['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1fc3f7){if(_0x1fc3f7['batch']['isUndo']||!_0x1fc3f7['batch']['isLocal'])return!0x1;let _0x4fd2f8=!0x1;const _0x14e6dd=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x32d8ff=>_0x32d8ff['data']&&'listItemId'==_0x32d8ff['data']['key'])['filter'](_0x5886e0=>_0x5886e0['data']['newValue']&&_0x5886e0['data']['oldValue']);for(const _0x3beb92 of _0x14e6dd)Te(_0x3beb92)||(_0x1fc3f7['removeMarker'](_0x3beb92['getFirstMarker']()),_0x4fd2f8=!0x0);return _0x4fd2f8;}['noTrackChangesFixer'](_0x39f4b8){if(_0x39f4b8['batch']['isUndo']||!_0x39f4b8['batch']['isLocal'])return!0x1;const _0x7b165a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x7b165a['trackChangesCommand']['value'])return!0x1;let _0xdce01e=!0x1;const _0x10515e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x469b22=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xda0387=>'attribute'==_0xda0387['type'])['filter'](_0x42d25f=>_0x10515e['includes'](_0x42d25f['attributeKey']));if(0x0==_0x469b22['length'])return _0xdce01e;for(const _0x41e2f1 of _0x469b22){const _0x1345df=_0x7b165a['_findSuggestions'](_0x41e2f1['range'],'attribute')['filter'](_0x3126b3=>!_0x3126b3['meta']['isNextTo'])['map'](_0xc5b5fb=>_0xc5b5fb['suggestion'])['filter'](_0x500185=>{const _0x1c8d6d=_0x7b165a['_getAttributeKey'](_0x500185);return _0x10515e['includes'](_0x1c8d6d);});if(_0x1345df['length']){for(const _0x33a2e2 of _0x1345df)_0x39f4b8['removeMarker'](_0x33a2e2['getFirstMarker']());_0xdce01e=!0x0;}}return _0xdce01e;}['assureChains'](){const _0xcd8b3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2abd9e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x153098;const _0x86a894=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4203fa=>{if(_0x4203fa['data']['oldRange']||!_0x4203fa['data']['newRange'])return null;if(!_0x4203fa['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3ec318}=_0xcd8b3a['_splitMarkerName'](_0x4203fa['name']);if(!_0xcd8b3a['hasSuggestion'](_0x3ec318))return null;const _0xd0a2e3=_0xcd8b3a['getSuggestion'](_0x3ec318);return _0x2abd9e['includes'](_0xd0a2e3['data']['key']);})['map'](_0x30e0e9=>{const {id:_0x20c2a8}=_0xcd8b3a['_splitMarkerName'](_0x30e0e9['name']),_0x56d647=_0xcd8b3a['getSuggestion'](_0x20c2a8);return _0x153098=_0x56d647['attributes']['groupId'],_0x56d647['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x86a894['size'])return;const _0x26a7a0=_0xcd8b3a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b9b89=>'attribute'==_0x5b9b89['type']&&_0x5b9b89['data']&&_0x2abd9e['includes'](_0x5b9b89['data']['key'])&&_0x5b9b89['attributes']['groupId']!=_0x153098)['map'](_0x35caec=>({'listItem':_0x35caec['getFirstRange']()['start']['nodeAfter'],'groupId':_0x35caec['attributes']['groupId']})),_0x3ca8c9=new Set();for(const {groupId:_0x2d8efa,listItem:_0x2c61df}of _0x26a7a0)_0x86a894['has'](_0x2c61df)&&_0x3ca8c9['add'](_0x2d8efa);for(const _0x4c62a0 of _0xcd8b3a['getSuggestions']())_0x3ca8c9['has'](_0x4c62a0['attributes']['groupId'])&&_0x4c62a0['setAttribute']('groupId',_0x153098);}['_supportLegacySuggestions'](){const _0x45aca7=this['editor'],_0x3b60d1=_0x45aca7['locale'],_0x533982=_0x45aca7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x533982['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x30909e,_0x21292a){const _0x3ed565=[];for(let _0x2ca72b of _0x30909e)_0x2ca72b['start']['nodeAfter']===_0x2ca72b['end']['parent']&&(_0x2ca72b=_0x45aca7['model']['createRange'](_0x45aca7['model']['createPositionAt'](_0x2ca72b['start']['nodeAfter'],0x0))),_0x3ed565['push'](_0x2ca72b);_0x45aca7['model']['change'](_0x3f7e47=>{const _0x454543=_0x45aca7['model']['document']['selection'],_0x1b1396=Array['from'](_0x454543['getRanges']())['map'](_0xe90a87=>_0x3f82e4['fromRange'](_0xe90a87));_0x3f7e47['setSelection'](_0x3ed565),_0x45aca7['commands']['get'](_0x21292a['commandName'])['refresh'](),_0x21292a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x45aca7['execute'](_0x21292a['commandName'],..._0x21292a['commandParams']),_0x3f7e47['setSelection'](_0x1b1396);for(const _0xb36c63 of _0x1b1396)_0xb36c63['detach']();});}),_0x533982['descriptionFactory']['registerElementLabel'](function(_0x554767){const _0x269f7b=!_0x45aca7['model']['schema']['isObject'](_0x554767),_0x24c487=_0x554767['previousSibling'],_0x493cf3=_0x554767['nextSibling'],_0x43dfce=_0x554767['getAttribute']('listItemId'),_0x1c7c31=!_0x24c487||_0x24c487['getAttribute']('listItemId')!==_0x43dfce,_0xef0e33=!_0x493cf3||_0x493cf3['getAttribute']('listItemId')!==_0x43dfce;return _0x269f7b&&Boolean(_0x43dfce)&&_0x1c7c31&&_0xef0e33;},_0x333f6b=>o(_0x3b60d1,'ELEMENT_LIST_ITEM',_0x333f6b));}['_registerLegacyDescription'](){const _0x1ceed3=this['editor'],_0x52f5fc=_0x1ceed3['locale'];function _0xb109fe(_0x3d6f7e){const _0x3cdc8b=_0x1ceed3['commands']['get']('bulletedList')['value'],_0x30976f=_0x1ceed3['commands']['get']('numberedList')['value'];return'numberedList'===_0x3d6f7e?_0x3cdc8b:_0x30976f;}_0x1ceed3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3a1274){if('formatBlock'!=_0x3a1274['type'])return;const {data:_0x24156c}=_0x3a1274;if(!_0x24156c)return;let _0x6dba87,_0x2b7c75,_0x5d94b7,_0x113fca;switch(_0x24156c['commandName']){case'bulletedList':_0x5d94b7=_0x24156c['commandParams'][0x0]['forceValue'],_0x113fca=_0xb109fe(_0x24156c['commandName']),_0x6dba87=_0x5d94b7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x113fca&&_0x1ceed3['config']['get']('list.multiBlock')||(_0x6dba87='*Change\x20to:*\x20%0'),_0x2b7c75={'type':'format','content':o(_0x52f5fc,_0x6dba87,o(_0x52f5fc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5d94b7=_0x24156c['commandParams'][0x0]['forceValue'],_0x113fca=_0xb109fe(_0x24156c['commandName']),_0x6dba87=_0x5d94b7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x113fca&&_0x1ceed3['config']['get']('list.multiBlock')||(_0x6dba87='*Change\x20to:*\x20%0'),_0x2b7c75={'type':'format','content':o(_0x52f5fc,_0x6dba87,o(_0x52f5fc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x6dba87='*Indent:*\x20%0',_0x2b7c75={'type':'format','content':o(_0x52f5fc,_0x6dba87,o(_0x52f5fc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x6dba87=function(_0x3a6d78){const _0x3c104a=_0x3a6d78['getFirstRange']();let _0xb8dff5=_0x3c104a['start']['nodeAfter'];for(;_0xb8dff5&&_0x3c104a['containsItem'](_0xb8dff5);){if(_0xb8dff5['getAttribute']('listIndent')>0x0)return!0x1;_0xb8dff5=_0xb8dff5['nextSibling'];}return!0x0;}(_0x3a1274)?o(_0x52f5fc,'*Format:*\x20remove\x20from\x20%0',o(_0x52f5fc,function(_0x5c8580){return'ELEMENT_'+_0x5c8580['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3a1274))):o(_0x52f5fc,'*Outdent:*\x20%0',o(_0x52f5fc,'ELEMENT_LIST_ITEM')),_0x2b7c75={'type':'format','content':_0x6dba87};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x24156c['multipleBlocks']&&(_0x6dba87='*Merge:*\x20%0',_0x2b7c75={'type':'deletion','content':o(_0x52f5fc,_0x6dba87,o(_0x52f5fc,'ELEMENT_LIST_ITEM'))});}return _0x2b7c75;});}}function Te(_0x2e3085){let _0x478c71=_0x2e3085['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x478c71;){const _0x50c320=_0x478c71['getAttribute']('listItemId');if(!_0x50c320)return!0x1;if(_0x50c320==_0x2e3085['data']['newValue'])return'newValue';if(_0x50c320==_0x2e3085['data']['oldValue'])return'oldValue';_0x478c71=_0x478c71['previousSibling'];}return!0x1;}class ye extends _0x38bc3e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x40b749=this['editor']['config']['get']('list.properties'),_0x22616a=this['editor']['plugins']['get']('TrackChangesEditing');_0x40b749['styles']&&(_0x22616a['enableDefaultAttributesIntegration']('listStyle'),_0x22616a['registerBlockAttribute']('listStyle')),_0x40b749['reversed']&&(_0x22616a['enableDefaultAttributesIntegration']('listReversed'),_0x22616a['registerBlockAttribute']('listReversed')),_0x40b749['startIndex']&&(_0x22616a['enableDefaultAttributesIntegration']('listStart'),_0x22616a['registerBlockAttribute']('listStart'));const _0x5e5eb7={'type':'format','content':''};_0x22616a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5bc405=this['editor']['locale'];_0x22616a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5bc405,'FORMAT_LIST_REVERSED')),_0x22616a['descriptionFactory']['registerDescriptionCallback'](_0x4f5314=>{const {data:_0x4708b2}=_0x4f5314;if(_0x4708b2&&'listReversed'==_0x4708b2['key'])return null==_0x4708b2['newValue']||0x0==_0x4708b2['newValue']&&null==_0x4708b2['oldValue']?_0x5e5eb7:void 0x0;}),_0x22616a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5bc405,'FORMAT_LIST_START')),_0x22616a['descriptionFactory']['registerDescriptionCallback'](_0x495e1e=>{const {data:_0x115568}=_0x495e1e;if(_0x115568&&'listStart'==_0x115568['key'])return null==_0x115568['newValue']||0x1==_0x115568['newValue']&&null==_0x115568['oldValue']?_0x5e5eb7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xc67977=>{if(_0xc67977['batch']['isUndo'])return!0x1;let _0x4675b6=!0x1;const _0x19d6b1=_0x22616a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55dc28=>{const _0x241e90=_0x22616a['_getAttributeKey'](_0x55dc28);return'listStart'==_0x241e90||'listReversed'==_0x241e90;});for(const _0x1729ee of _0x19d6b1){const _0x13c452=_0x1729ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x13c452||'customNumbered'==_0x13c452)continue;_0x22616a['_findSuggestions'](_0x1729ee['getFirstRange'](),'attribute')['find'](_0x16b481=>'listType'==_0x22616a['_getAttributeKey'](_0x16b481['suggestion']))||(_0xc67977['removeMarker'](_0x1729ee['getFirstMarker']()),_0x4675b6=!0x0);}return _0x4675b6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x36f57d){const _0x4db4b3=this['editor']['locale'],{data:_0x314dd6}=_0x36f57d,_0x43637a={'type':'format','content':''};if(!_0x314dd6||'listStyle'!=_0x314dd6['key'])return;if(!_0x314dd6['oldValue'])return'default'==_0x314dd6['newValue']?_0x43637a:{'type':'format','content':''+o(_0x4db4b3,'*Set\x20format:*\x20%0',o(_0x4db4b3,this['_getTranslationKeyForListStyle'](_0x314dd6['newValue'])))};if(!_0x314dd6['newValue']){if('default'==_0x314dd6['oldValue'])return _0x43637a;let _0x2716fe=_0x36f57d['head'];for(;_0x2716fe;){if(_0x2716fe['data']&&'listType'==_0x2716fe['data']['key']&&_0x2716fe['data']['newValue'])return _0x43637a;_0x2716fe=_0x2716fe['next'];}return{'type':'format','content':''+o(_0x4db4b3,'*Remove\x20format:*\x20%0',o(_0x4db4b3,this['_getTranslationKeyForListStyle'](_0x314dd6['oldValue'])))};}if('default'!=_0x314dd6['newValue'])return{'type':'format','content':''+o(_0x4db4b3,'*Set\x20format:*\x20%0',o(_0x4db4b3,this['_getTranslationKeyForListStyle'](_0x314dd6['newValue'])))};let _0x4e8b59=_0x36f57d['head'];for(;_0x4e8b59;){if(_0x4e8b59['data']&&'listType'==_0x4e8b59['data']['key']&&_0x4e8b59['data']['newValue']&&_0x4e8b59['data']['oldValue'])return _0x43637a;_0x4e8b59=_0x4e8b59['next'];}return{'type':'format','content':o(_0x4db4b3,'*Set\x20format:*\x20%0',o(_0x4db4b3,'ELEMENT_'+_0x36f57d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x21c5b6=this['editor'],_0x19897a=_0x21c5b6['locale'];_0x21c5b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dd52b=>{if('formatBlock'!=_0x1dd52b['type'])return;const {data:_0x455685}=_0x1dd52b;if(!_0x455685)return;let _0x1bc1f1,_0x2bfabb;switch(_0x455685['commandName']){case'listStyle':_0x1bc1f1='*Change\x20to:*\x20%0',_0x2bfabb={'type':'format','content':o(_0x19897a,_0x1bc1f1,o(_0x19897a,this['_getTranslationKeyForListStyle'](_0x455685['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bc1f1=_0x455685['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2bfabb={'type':'format','content':o(_0x19897a,_0x1bc1f1)};break;case'listStart':_0x1bc1f1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2bfabb={'type':'format','content':o(_0x19897a,_0x1bc1f1,_0x455685['commandParams'][0x0]['startIndex'])};}return _0x2bfabb;});}['_getTranslationKeyForListStyle'](_0x38b41a){return'ELEMENT_'+function(_0x2f7a63){if(Se['includes'](_0x2f7a63))return'bulleted';if(_e['includes'](_0x2f7a63))return'numbered';return null;}(_0x38b41a)['toUpperCase']()+'_LIST_'+_0x38b41a['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x38bc3e{static get['requires'](){return[_0x32691c];}['init'](){const _0x13b9a7=this['editor'],_0x1861e4=_0x13b9a7['plugins']['get']('TrackChangesEditing'),_0x382a12=_0x13b9a7['commands']['get']('enter');_0x1861e4['enableCommand']('enter',()=>{_0x13b9a7['model']['change'](_0x32f57e=>{const _0x138f39=_0x13b9a7['model']['document']['selection'],_0x20d186=_0x138f39['getFirstPosition'](),_0x45cff1=_0x3f82e4['fromRange'](_0x138f39['getFirstRange']());if(_0x382a12['enterBlock'](_0x32f57e)){const _0x12b5ac=_0x13b9a7['model']['createPositionAt'](_0x20d186['parent']['nextSibling'],0x0),_0x33e9da=_0x32f57e['createRange'](_0x20d186,_0x12b5ac);_0x1861e4['markInsertion'](_0x33e9da);}else _0x32f57e['setSelection'](_0x32f57e['createRange'](_0x45cff1['end']));_0x45cff1['detach'](),_0x382a12['fire']('afterExecute',{'writer':_0x32f57e});});}),_0x13b9a7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x13b9a7,'split'),{'priority':'high'}),_0x13b9a7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1d37d7,_0x588563,_0x173669)=>{const _0x15807d=_0x173669['mapper']['markerNameToElements'](_0x588563['markerName']);if(_0x15807d){for(const _0x36d2c9 of _0x15807d)_0x36d2c9['hasClass']('ck-suggestion-marker-split')&&(_0x173669['mapper']['unbindElementFromMarkerName'](_0x36d2c9,_0x588563['markerName']),_0x173669['writer']['remove'](_0x36d2c9));}},{'priority':'high'}),_0x13b9a7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x8af0fe,_0x1b61d6,_0x100864)=>{_0x100864['options']['showSuggestionHighlights']&&Ne(_0x13b9a7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x8af0fe,_0x1b61d6,_0x100864);},{'priority':'high'});}}class Y extends _0x38bc3e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2712e7=this['editor']['plugins']['get']('TrackChangesEditing');_0x2712e7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2712e7['enableCommand']('findNext'),_0x2712e7['enableCommand']('findPrevious'),_0x2712e7['enableCommand']('replace'),_0x2712e7['enableCommand']('replaceAll');}['handleFindCommand'](_0x3e30b7,_0x4ac20f,_0x124830={}){const _0x35915d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3e30b7(_0x1004a4=>{let _0xacd3f=('string'==typeof _0x4ac20f?_0x35915d['findByTextCallback'](_0x4ac20f,_0x124830):_0x4ac20f)(_0x1004a4);Array['isArray'](_0xacd3f)&&(_0xacd3f={'results':_0xacd3f,'searchText':'string'==typeof _0x4ac20f?_0x4ac20f:''});const _0x12d356=_0xacd3f['results']['filter'](_0x18944d=>!0x1===this['_isInDeletionRange'](_0x18944d,_0x1004a4['item']));return{..._0xacd3f,'results':_0x12d356};},_0x124830);}['_isInDeletionRange'](_0x8fb350,_0x57d57c){const _0x302e21=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57d57c,_0x8fb350['start']),this['editor']['model']['createPositionAt'](_0x57d57c,_0x8fb350['end']));for(const _0x2d2214 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x302e21['getIntersection'](_0x2d2214['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x38bc3e{['afterInit'](){const _0x4576da=this['editor']['locale'],_0x4776bd=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xc3902d,commandName:_0x5ddca2}of ro)this['editor']['plugins']['has'](_0xc3902d)&&(_0x4776bd['enableDefaultAttributesIntegration'](_0x5ddca2),_0x4776bd['registerInlineAttribute'](_0x5ddca2));_0x4776bd['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4576da,'FORMAT_FONT_SIZE')),_0x4776bd['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4576da,'FORMAT_FONT_FAMILY')),_0x4776bd['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4576da,'FORMAT_FONT_COLOR')),_0x4776bd['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4576da,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x498e69=this['editor'],_0x4aa9f5=_0x498e69['locale'];_0x498e69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49444a=>{const _0x3971da=_0x4aa9f5['t'];if('formatInline'!=_0x49444a['type'])return;const {data:_0x1fd817}=_0x49444a;if(null!=_0x1fd817){if('fontSize'==_0x1fd817['commandName']){const _0x431c5e=_0x1fd817['commandParams'][0x0]['value'];if(_0x431c5e){const _0x199562=_0x3971da(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x322bac=>_0x322bac['model']==_0x431c5e)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4aa9f5,'*Set\x20font\x20size:*\x20%0',_0x199562)};}return{'type':'format','content':o(_0x4aa9f5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1fd817['commandName']){const _0x9ea500=_0x1fd817['commandParams'][0x0]['value'];return _0x9ea500?{'type':'format','content':o(_0x4aa9f5,'*Set\x20font\x20family:*\x20%0',_0x9ea500)}:{'type':'format','content':o(_0x4aa9f5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1fd817['commandName']){const _0x4d9049=_0x1fd817['commandParams'][0x0]['value'];if(_0x4d9049){const _0x1c985c=_0x27c281(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5205b8=>_0x5205b8['model']==_0x4d9049);let _0xfff776=_0x4d9049,_0x5ba518='';return _0x1c985c&&(_0xfff776=_0x1c985c['label'],_0x5ba518=_0x3971da(_0xfff776)['toLowerCase']()),{'type':'format','content':o(_0x4aa9f5,'*Set\x20font\x20color:*\x20%0',_0x5ba518)['trim'](),'color':{'value':_0x4d9049,'title':_0x5ba518||_0xfff776}};}return{'type':'format','content':o(_0x4aa9f5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1fd817['commandName']){const _0x33b3f9=_0x1fd817['commandParams'][0x0]['value'];if(_0x33b3f9){const _0x133a04=_0x27c281(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1aa019=>_0x1aa019['model']==_0x33b3f9);let _0x43f3f9=_0x33b3f9,_0x64f9e0='';return _0x133a04&&(_0x43f3f9=_0x133a04['label'],_0x64f9e0=_0x3971da(_0x43f3f9)['toLowerCase']()),{'type':'format','content':o(_0x4aa9f5,'*Set\x20font\x20background\x20color:*\x20%0',_0x64f9e0)['trim'](),'color':{'value':_0x33b3f9,'title':_0x64f9e0||_0x43f3f9}};}return{'type':'format','content':o(_0x4aa9f5,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x38bc3e{['afterInit'](){const _0xac2611=this['editor'],_0x522aaa=_0xac2611['plugins']['get']('TrackChangesEditing'),_0x2a9fd2=_0xac2611['commands']['get']('copyFormat'),_0x2354b5=_0xac2611['commands']['get']('pasteFormat');_0x2a9fd2&&_0x2354b5&&(_0x522aaa['enableDefaultAttributesIntegration']('pasteFormat'),_0x522aaa['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5d6c50=this['editor'],_0x2fc81f=_0x5d6c50['locale'];_0x5d6c50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19301d=>{if('formatBlock'!=_0x19301d['type']&&'formatInline'!=_0x19301d['type'])return;const {data:_0x2262be}=_0x19301d;if(_0x2262be&&'pasteFormat'===_0x2262be['commandName']){const _0x230523=[],_0x198520=_0x2262be['commandParams'][0x0];for(const [_0x180e26,_0x2d3deb]of Object['entries'](_0x198520))_0x230523['push'](so(_0x5d6c50,_0x180e26,_0x2d3deb));return _0x230523['length']?{'type':'format','content':o(_0x2fc81f,'*Set\x20format\x20to:*\x20%0',_0x230523['join'](',\x20'))}:{'type':'format','content':o(_0x2fc81f,'*Remove\x20all\x20formatting*')};}});}}function so(_0x447cbf,_0x37d415,_0x2ed1f3){const _0x1a75ba=_0x447cbf['locale']['t'],_0x194dd7=_0x37d415['split'](/(?=[A-Z])/)['join']('\x20'),_0x393b05=_0x1a75ba(_0x194dd7['charAt'](0x0)['toUpperCase']()+_0x194dd7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2ed1f3)return _0x393b05;if('fontColor'===_0x37d415||'fontBackgroundColor'===_0x37d415){const _0x22f6fc=_0x27c281(_0x447cbf['config']['get']('fontColor.colors'))['find'](_0x2212c0=>_0x2212c0['model']==_0x2ed1f3);return _0x393b05+'\x20('+(_0x22f6fc?_0x1a75ba(_0x22f6fc['label'])['toLowerCase']():_0x2ed1f3)+')';}if('fontSize'===_0x37d415&&isNaN(parseFloat(_0x2ed1f3))){const _0x566215=_0x447cbf['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x447cbf['config']['get']('fontSize.options'))['find'](_0x2db26e=>_0x2db26e['model']==_0x2ed1f3);return _0x393b05+'\x20('+(_0x566215?_0x1a75ba(_0x566215['title'])['toLowerCase']():_0x2ed1f3)+')';}return _0x393b05+'\x20('+_0x2ed1f3+')';}class nt extends _0x38bc3e{['_headingOptions'];['afterInit'](){const _0x432d88=this['editor'];if(!_0x432d88['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x432d88['config']['get']('heading.options');const _0x1df27c=_0x432d88['locale'],_0x3092b5=_0x432d88['plugins']['get']('TrackChangesEditing');_0x3092b5['enableDefaultAttributesIntegration']('heading');for(const _0x46bfbd of this['_headingOptions'])'paragraph'!=_0x46bfbd['model']&&_0x3092b5['descriptionFactory']['registerElementLabel'](_0x46bfbd['model'],_0x1b43c8=>{const _0x31df93=this['_getHeadingLevel'](_0x46bfbd['model']);return null!==_0x31df93?_0x24a0ba(_0x1b43c8,_0x31df93):_0x4402d2(_0x1b43c8,_0x46bfbd['title']);});function _0x24a0ba(_0x47e309,_0x391a6c){return o(_0x1df27c,'ELEMENT_HEADING',[_0x47e309,_0x391a6c]);}function _0x4402d2(_0x341934,_0x3edf56){return o(_0x1df27c,'ELEMENT_HEADING_CUSTOM',[_0x341934,_0x3edf56]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20d811=this['editor'],_0x4c8566=_0x20d811['locale'];function _0x26a653(_0x3cea49,_0x571839){return o(_0x4c8566,'ELEMENT_HEADING_CUSTOM',[_0x3cea49,_0x571839]);}_0x20d811['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6ae340=>{if('formatBlock'!=_0x6ae340['type'])return;const {data:_0x1f4570}=_0x6ae340;if(_0x1f4570&&'heading'==_0x1f4570['commandName']){const _0x28a189=_0x1f4570['commandParams'][0x0]['value'],_0x59d18a=this['_getHeadingLevel'](_0x28a189);if(null!==_0x59d18a)return{'type':'format','content':o(_0x4c8566,'*Change\x20to:*\x20%0',(_0x26367b=0x1,_0x56d1b7=_0x59d18a,o(_0x4c8566,'ELEMENT_HEADING',[_0x26367b,_0x56d1b7])))};const _0x10f5b6=this['_headingOptions']['find'](_0x131d3d=>_0x131d3d['model']===_0x28a189)['title'];return{'type':'format','content':o(_0x4c8566,'*Change\x20to:*\x20%0',_0x26a653(0x1,_0x10f5b6))};}var _0x26367b,_0x56d1b7;});}['_getHeadingLevel'](_0x8a342){const _0x4ec50c=_0x8a342['match'](/^heading(\d+)/);if(_0x4ec50c)return _0x4ec50c[0x1];const _0x4fbbee=this['_headingOptions']?.['find'](_0x59a1ae=>_0x59a1ae['model']==_0x8a342);if(_0x4fbbee&&_0x4fbbee['view']){const _0xd7fc1c=_0x4fbbee['view'],_0xfec001=(_0xd7fc1c['name']??_0xd7fc1c)['match'](/^h(\d+)/);if(_0xfec001)return _0xfec001[0x1];}return null;}}class it extends _0x38bc3e{['afterInit'](){const _0x15fc48=this['editor'];if(!_0x15fc48['plugins']['has']('HighlightEditing'))return;const _0x25a1f1=_0x15fc48['plugins']['get']('TrackChangesEditing'),_0x3f201b=_0x15fc48['locale'];_0x25a1f1['enableDefaultAttributesIntegration']('highlight'),_0x25a1f1['registerInlineAttribute']('highlight'),_0x25a1f1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3f201b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c1b53=this['editor'],_0x4e5496=_0x5c1b53['locale'];_0x5c1b53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f36b5=>{if('formatInline'!=_0x1f36b5['type'])return;const {data:_0xa68860}=_0x1f36b5;if(_0xa68860&&'highlight'==_0xa68860['commandName']){const _0x20a36d=_0x4e5496['t'],_0x12b919=_0xa68860['commandParams'][0x0]['value'];if(_0x12b919){const _0x4eaf53=_0x5c1b53['config']['get']('highlight.options')['find'](_0x54449d=>_0x54449d['model']==_0x12b919),_0x3173b8=_0x20a36d(_0x4eaf53['title'])['toLowerCase']();return{'type':'format','content':o(_0x4e5496,'*Set\x20highlight:*\x20%0',_0x3173b8),'color':{'value':_0x4eaf53['color'],'title':_0x4eaf53['title']}};}return{'type':'format','content':o(_0x4e5496,'*Remove\x20highlight*',o(_0x4e5496,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x38bc3e{['afterInit'](){const _0x572976=this['editor'];if(!_0x572976['plugins']['has']('HorizontalLineEditing'))return;_0x572976['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3d34f8=_0x572976['plugins']['get']('TrackChangesEditing'),_0xa7f191=_0x572976['locale'];_0x3d34f8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x44cb25=>o(_0xa7f191,'ELEMENT_HORIZONTAL_LINE',_0x44cb25)),_0x572976['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x341f15,{writer:_0x424750,options:_0x5bc648})=>{if(!_0x5bc648['showSuggestionHighlights'])return null;const _0x4326de=_0x424750['createContainerElement']('div'),_0x2c7d66=_0x424750['createEmptyElement']('hr');return _0x424750['addClass']('ck-horizontal-line',_0x4326de),_0x424750['insert'](_0x424750['createPositionAt'](_0x4326de,0x0),_0x2c7d66),_0x4326de;},'converterPriority':'high'});}}class st extends _0x38bc3e{['afterInit'](){const _0x471c66=this['editor'];if(!_0x471c66['plugins']['has']('HtmlEmbed'))return;const _0x96c0c7=_0x471c66['plugins']['get']('TrackChangesEditing'),_0x1d6aa5=_0x471c66['locale'];_0x96c0c7['descriptionFactory']['registerElementLabel']('rawHtml',_0x4d8a6a=>o(_0x1d6aa5,'ELEMENT_HTML_EMBED',_0x4d8a6a)),_0x96c0c7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x96c0c7['registerBlockAttribute']('value'),_0x96c0c7['descriptionFactory']['registerDescriptionCallback'](_0x24bdef=>{if('attribute'!=_0x24bdef['type'])return;const {data:_0x232406}=_0x24bdef;if(_0x232406&&'value'==_0x232406['key']&&_0x24bdef['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x15b433=o(_0x1d6aa5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1d6aa5,'*Change\x20%0\x20content*',_0x15b433)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14843f=this['editor'],_0x200a4a=_0x14843f['locale'];_0x14843f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42fe3c=>{if('formatBlock'!=_0x42fe3c['type'])return;const {data:_0x57eb4b}=_0x42fe3c;if(_0x57eb4b&&'htmlEmbed'==_0x57eb4b['commandName']){const _0x49b0a6=o(_0x200a4a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x200a4a,'*Change\x20%0\x20content*',_0x49b0a6)};}});}}class ot extends _0x38bc3e{['afterInit'](){const _0x333512=this['editor'];if(!_0x333512['plugins']['has']('ImageEditing'))return;const _0x95cb2e=_0x333512['plugins']['get']('TrackChangesEditing'),_0x7df470=_0x333512['plugins']['get']('ImageUtils'),_0x3a037a=_0x333512['locale'];_0x95cb2e['enableCommand']('insertImage'),_0x95cb2e['descriptionFactory']['registerElementLabel']('imageBlock',_0x57d765=>o(_0x3a037a,'ELEMENT_IMAGE',_0x57d765)),_0x95cb2e['descriptionFactory']['registerElementLabel']('imageInline',_0x4aafc2=>o(_0x3a037a,'ELEMENT_INLINE_IMAGE',_0x4aafc2)),_0x95cb2e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3a037a,'ELEMENT_CAPTION')),_0x333512['plugins']['has']('ImageUploadEditing')&&_0x95cb2e['enableCommand']('uploadImage'),_0x333512['plugins']['has']('ImageBlockEditing')&&_0x333512['plugins']['has']('ImageInlineEditing')&&(_0x95cb2e['enableCommand']('imageTypeInline',(_0x3954e9,_0x19efc1)=>{const _0x39d58a=_0x7df470['getClosestSelectedImageElement'](_0x333512['model']['document']['selection']);_0x333512['model']['change'](()=>{_0x95cb2e['markBlockFormat'](_0x39d58a,{'commandName':'imageTypeInline','commandParams':[_0x19efc1]},[],'convertBlockImageToInline');});}),_0x95cb2e['enableCommand']('imageTypeBlock',(_0x486587,_0x47ec35)=>{_0x333512['model']['change'](_0x341963=>{let _0x123237=_0x7df470['getClosestSelectedImageElement'](_0x333512['model']['document']['selection']),_0x332617=_0x341963['createRangeOn'](_0x123237);const _0x87c517=_0x358e3d['fromPosition'](_0x332617['start'],'toPrevious'),_0xaff1b9=_0x358e3d['fromPosition'](_0x332617['end'],'toNext');_0x95cb2e['forceDefaultExecution'](()=>_0x486587(_0x47ec35)),_0x123237=_0x7df470['getClosestSelectedImageElement'](_0x333512['model']['document']['selection']),_0x332617=_0x341963['createRangeOn'](_0x123237);const _0x55feca=_0x341963['createRange'](_0x87c517,_0xaff1b9);_0x87c517['detach'](),_0xaff1b9['detach'](),_0x95cb2e['markBlockFormat'](_0x123237,{'commandName':'imageTypeInline','commandParams':[_0x47ec35]},[],'convertInlineImageToBlock'),_0x55feca['start']['isBefore'](_0x332617['start'])&&_0x95cb2e['markInsertion'](_0x341963['createRange'](_0x55feca['start'],_0x332617['start']),'convertInlineImageToBlock'),_0x332617['end']['isBefore'](_0x55feca['end'])&&_0x95cb2e['markInsertion'](_0x341963['createRange'](_0x332617['end'],_0x55feca['end']),'convertInlineImageToBlock');});}),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x95cb2e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x36e1de])=>{const _0x4ebb96=_0x95cb2e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x18dbce=_0x36e1de['start'],_0x31b32d=_0x36e1de['end'];const _0x4017c4=_0x333512['model']['schema']['getNearestSelectionRange'](_0x18dbce,'backward'),_0x1a35c2=_0x333512['model']['schema']['getNearestSelectionRange'](_0x31b32d,'forward');_0x4017c4['isCollapsed']&&(_0x18dbce=_0x4017c4['start']),_0x1a35c2['isCollapsed']&&(_0x31b32d=_0x1a35c2['end']),_0x4ebb96([_0x333512['model']['createRange'](_0x18dbce,_0x31b32d)]);}),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x348db8),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x348db8)),_0x333512['plugins']['has']('ImageCaptionEditing')&&(_0x95cb2e['enableCommand']('toggleImageCaption',(_0x5871e4,_0x2c3b14)=>{const _0x4ffbb4=_0x333512['plugins']['get']('ImageCaptionUtils');let _0x1c9024=_0x7df470['getClosestSelectedImageElement'](_0x333512['model']['document']['selection']),_0x4481ef=_0x4ffbb4['getCaptionFromImageModelElement'](_0x1c9024);_0x333512['model']['change'](()=>{if(_0x4481ef)return void _0x95cb2e['markDeletion'](_0x333512['model']['createRangeOn'](_0x4481ef));const _0x4c0888=_0x7df470['isBlockImage'](_0x1c9024);_0x5871e4(_0x2c3b14),_0x1c9024=_0x7df470['getClosestSelectedImageElement'](_0x333512['model']['document']['selection']),_0x4481ef=_0x4ffbb4['getCaptionFromImageModelElement'](_0x1c9024),_0x95cb2e['markInsertion'](_0x333512['model']['createRangeOn'](_0x4481ef),_0x4c0888?null:'imageCaption');});}),_0x95cb2e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x348db8));const _0x2441ab=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4230e4(_0x2c34f8,_0x502eb6){const _0x3f4da9=_0x2441ab['findIndex'](({type:_0x14e96d,subType:_0x2e0a81})=>_0x2c34f8['type']==_0x14e96d&&_0x2c34f8['subType']==_0x2e0a81),_0x392df5=_0x2441ab['findIndex'](({type:_0x3abb48,subType:_0x3b0a61})=>_0x502eb6['type']==_0x3abb48&&_0x502eb6['subType']==_0x3b0a61);if(_0x3f4da9<0x0||_0x392df5<0x0)return!0x1;const _0x251bde=_0x2c34f8['getFirstRange'](),_0x2667ab=_0x502eb6['getFirstRange']();if((0x0==_0x3f4da9||0x1==_0x3f4da9)&&0x2==_0x392df5&&_0x251bde['isIntersecting'](_0x2667ab))return!0x0;if(0x2==_0x3f4da9&&0x3==_0x392df5){const _0x26be68=_0x95cb2e['_findSuggestions'](_0x251bde,'insertion')['filter'](({suggestion:_0x1a6d03,meta:_0x1f75c2})=>_0x1f75c2['isOwn']&&'convertInlineImageToBlock'==_0x1a6d03['subType']);if(_0x26be68['length']>0x1&&_0x2667ab['end']['isEqual'](_0x251bde['start']))return!0x0;if(0x1==_0x26be68['length']&&(_0x251bde['start']['isEqual'](_0x2667ab['end'])||_0x251bde['end']['isEqual'](_0x2667ab['start'])))return!0x0;}if(0x3==_0x3f4da9&&0x3==_0x392df5&&_0x251bde['start']['isBefore'](_0x2667ab['start'])){const _0x2b1cbe=_0x251bde['end']['nodeAfter'],_0x2a8ec9=_0x2667ab['start']['nodeBefore'];return _0x7df470['isBlockImage'](_0x2b1cbe)&&_0x2b1cbe===_0x2a8ec9;}return!0x1;}function _0x348db8(_0x106f4c,_0x3b5733){return _0x4230e4(_0x106f4c,_0x3b5733)?[_0x106f4c,_0x3b5733]:_0x4230e4(_0x3b5733,_0x106f4c)?[_0x3b5733,_0x106f4c]:null;}_0x333512['plugins']['has']('ImageResize')&&(_0x95cb2e['enableDefaultAttributesIntegration']('resizeImage'),_0x95cb2e['registerBlockAttribute']('resizedWidth'),_0x95cb2e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3a037a,'FORMAT_IMAGE_SIZE'))),_0x333512['plugins']['has']('ImageTextAlternativeEditing')&&(_0x95cb2e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x95cb2e['registerBlockAttribute']('alt')),_0x95cb2e['descriptionFactory']['registerDescriptionCallback'](_0x3fa3f7=>{if(!!_0x2441ab['find'](({type:_0x254179,subType:_0x12f502})=>_0x3fa3f7['type']==_0x254179&&_0x3fa3f7['subType']==_0x12f502))return _0x3fa3f7['previous']?{}:void 0x0;}),_0x95cb2e['descriptionFactory']['registerDescriptionCallback'](_0x248c1c=>{if('insertion'==_0x248c1c['type']||'deletion'==_0x248c1c['type']){const _0x49aa3c=_0x248c1c['getContainedElement']();if(_0x49aa3c&&_0x49aa3c['is']('element','caption'))return{'type':'insertion'==_0x248c1c['type']?'addObject':'removeObject','element':_0x49aa3c,'quantity':0x1};}}),_0x95cb2e['descriptionFactory']['registerDescriptionCallback'](_0x18308d=>'formatBlock'==_0x18308d['type']&&'convertInlineImageToBlock'==_0x18308d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18308d['type']&&'convertBlockImageToInline'==_0x18308d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x95cb2e['descriptionFactory']['registerDescriptionCallback'](_0x32b6f8=>{if('attribute'!=_0x32b6f8['type'])return;const {data:_0x351a53}=_0x32b6f8;if(!_0x351a53||'alt'!=_0x351a53['key'])return;const _0x48a910=_0x351a53['newValue'];return _0x48a910?{'type':'format','content':o(_0x3a037a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48a910+'\x22')}:{'type':'format','content':o(_0x3a037a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18f84b=this['editor'],_0x3de24d=_0x18f84b['locale'];_0x18f84b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x96cc63=>{if('formatBlock'!=_0x96cc63['type']&&'formatInline'!=_0x96cc63['type'])return;const {data:_0x44f167}=_0x96cc63;if(_0x44f167){if('imageTextAlternative'==_0x44f167['commandName']){const _0x3ea698=_0x44f167['commandParams'][0x0]['newValue'];return _0x3ea698?{'type':'format','content':o(_0x3de24d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3ea698+'\x22')}:{'type':'format','content':o(_0x3de24d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x44f167['commandName']){const _0x4f64b8=_0x44f167['commandParams'][0x0]['width'];return _0x4f64b8?{'type':'format','content':o(_0x3de24d,'*Set\x20image\x20width:*\x20%0',_0x4f64b8)}:{'type':'format','content':o(_0x3de24d,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x38bc3e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x495318=this['editor']['locale'],_0x1aab43=this['editor']['plugins']['get']('TrackChangesEditing');_0x1aab43['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1aab43['registerBlockAttribute']('src'),_0x1aab43['descriptionFactory']['registerDescriptionCallback'](_0x4742d6=>{if('attribute'!=_0x4742d6['type'])return;const {data:_0x4aaea3}=_0x4742d6;return _0x4aaea3&&'src'==_0x4aaea3['key']?_0x4aaea3['newValue']&&_0x4aaea3['oldValue']?{'type':'format','content':o(_0x495318,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x476500=this['editor']['plugins']['get']('TrackChangesEditing');_0x476500['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x476500['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x476500['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x476500['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9a5d26=this['editor'],_0x4bebc4=_0x9a5d26['locale'];_0x9a5d26['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x296dd2=>{if('formatBlock'!=_0x296dd2['type']&&'formatInline'!=_0x296dd2['type'])return;const {data:_0x10a8d7}=_0x296dd2;if(!_0x10a8d7||'replaceImageSource'!=_0x10a8d7['commandName'])return;return{'type':'format','content':o(_0x4bebc4,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x38bc3e{['afterInit'](){const _0x3dec17=this['editor'];if(!_0x3dec17['plugins']['has']('ImageStyleEditing'))return;const _0x1d3fab=_0x3dec17['plugins']['get']('TrackChangesEditing'),_0x1e6e20=_0x3dec17['plugins']['get']('ImageUtils'),_0x40c1e1={};_0x1d3fab['enableCommand']('imageStyle',(_0xf4f009,_0x452bda)=>{const _0x2215d8=_0x3dec17['plugins']['get']('Users')['me'],_0x4b5e1a=_0x3dec17['commands']['get']('imageStyle');let _0x2d8a35=_0x1e6e20['getClosestSelectedImageElement'](_0x3dec17['model']['document']['selection']),_0x3f1cfc=_0x3dec17['model']['createRangeOn'](_0x2d8a35),_0x3c0237=_0x4b5e1a['value'];if(_0x3c0237==_0x452bda['value'])return;const _0x524ac5={'commandName':'imageStyle','commandParams':[_0x452bda],'formatGroupId':_0x62ed8e()};_0x3dec17['model']['change'](()=>{if(_0x1d3fab['getSuggestions']()['filter'](_0xf0b5f5=>_0xf0b5f5['isInContent']&&_0x2215d8==_0xf0b5f5['author']&&('formatBlock'==_0xf0b5f5['type']||'formatInline'==_0xf0b5f5['type'])&&('imageStylePreApply'==_0xf0b5f5['subType']||'imageStylePostApply'==_0xf0b5f5['subType'])&&_0xf0b5f5['getFirstRange']()['isEqual'](_0x3f1cfc))['forEach'](_0x3937bd=>_0x1d3fab['discardSuggestion'](_0x3937bd['head'])),_0x2d8a35=_0x1e6e20['getClosestSelectedImageElement'](_0x3dec17['model']['document']['selection']),_0x3f1cfc=_0x3dec17['model']['createRangeOn'](_0x2d8a35),_0x4b5e1a['refresh'](),_0x3dec17['commands']['get']('imageTypeInline')['refresh'](),_0x3dec17['commands']['get']('imageTypeBlock')['refresh'](),_0x3c0237=_0x4b5e1a['value'],_0x3c0237!=_0x452bda['value'])return _0x1e6e20['isInlineImage'](_0x2d8a35)&&_0x4b5e1a['shouldConvertImageType'](_0x452bda['value'],_0x2d8a35)?(_0xf4f009({..._0x452bda,'setImageSizes':!0x1}),_0x2d8a35=_0x1e6e20['getClosestSelectedImageElement'](_0x3dec17['model']['document']['selection']),void _0x1d3fab['markBlockFormat'](_0x2d8a35,{..._0x524ac5,'commandReversedParams':[{'value':_0x3c0237||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1e6e20['isBlockImage'](_0x2d8a35)?_0x1d3fab['markBlockFormat'](_0x2d8a35,_0x524ac5,[],'imageStylePostApply'):_0x1d3fab['markInlineFormat'](_0x3f1cfc,_0x524ac5,'imageStylePostApply'));});});for(const _0x261d9c of _0x3dec17['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x40c1e1[_0x261d9c['name']]=_0x261d9c['title']['toLowerCase']();_0x1d3fab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1d3fab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1d3fab['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1d3fab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1b8757])=>{_0x1e6e20['setImageNaturalSizeAttributes'](_0x1b8757['getContainedElement']());}),_0x1d3fab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x513da2,_0x11f398)=>{_0x1d3fab['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x513da2,{'commandName':_0x11f398['commandName'],'commandParams':_0x11f398['commandReversedParams']});}),_0x1d3fab['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x447416,_0xc7067d){if(_0x407fef(_0x447416,_0xc7067d))return[_0x447416,_0xc7067d];if(_0x407fef(_0xc7067d,_0x447416))return[_0xc7067d,_0x447416];return null;});const _0x5e6df2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x407fef(_0xe39e97,_0x38e7d2){const _0x354d70=_0x5e6df2['findIndex'](({type:_0x3b890c,subType:_0x4e19b3})=>_0xe39e97['type']==_0x3b890c&&_0xe39e97['subType']==_0x4e19b3),_0x14a55b=_0x5e6df2['findIndex'](({type:_0x29becf,subType:_0x2f8b2a})=>_0x38e7d2['type']==_0x29becf&&_0x38e7d2['subType']==_0x2f8b2a);if(_0x354d70<0x0||_0x14a55b<0x0)return!0x1;const _0x45b28f=_0xe39e97['getFirstRange'](),_0x21cba4=_0x38e7d2['getFirstRange']();if((0x0==_0x354d70||0x1==_0x354d70)&&0x2==_0x14a55b&&_0x45b28f['isIntersecting'](_0x21cba4))return!0x0;if(0x2==_0x354d70&&0x3==_0x14a55b){const _0x5b5b53=_0x1d3fab['_findSuggestions'](_0x45b28f,'insertion')['filter'](({suggestion:_0x56bfcd,meta:_0x26353b})=>_0x26353b['isOwn']&&'convertInlineImageToBlock'==_0x56bfcd['subType']);if(_0x5b5b53['length']>0x1&&_0x21cba4['end']['isEqual'](_0x45b28f['start']))return!0x0;if(0x1==_0x5b5b53['length']&&(_0x45b28f['start']['isEqual'](_0x21cba4['end'])||_0x45b28f['end']['isEqual'](_0x21cba4['start'])))return!0x0;}if(0x3==_0x354d70&&0x3==_0x14a55b&&_0x45b28f['start']['isBefore'](_0x21cba4['start'])){const _0x93ef10=_0x45b28f['end']['nodeAfter'],_0x15a2ce=_0x21cba4['start']['nodeBefore'];return _0x1e6e20['isBlockImage'](_0x93ef10)&&_0x93ef10===_0x15a2ce;}return!0x1;}_0x3dec17['model']['document']['registerPostFixer'](()=>{let _0x4ba3dc=!0x1;const _0xbc90f7=Array['from'](_0x3dec17['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5277c2,data:_0x1766ba}of _0xbc90f7){const {group:_0x24e54b,type:_0x1ad25b,subType:_0x58f604,id:_0x5d8dc9}=_0x1d3fab['_splitMarkerName'](_0x5277c2);if('suggestion'==_0x24e54b&&_0x1d3fab['hasSuggestion'](_0x5d8dc9)){if('formatBlock'==_0x1ad25b&&('imageStylePreApply'==_0x58f604||'imageStylePostApply'==_0x58f604)){const _0x30aaf5=_0x1d3fab['getSuggestion'](_0x5d8dc9);if(_0x1766ba['newRange']){const _0x4fa890=_0x30aaf5['getFirstRange']()['getContainedElement']();if(_0x1e6e20['isBlockImage'](_0x4fa890))continue;_0x1d3fab['discardSuggestion'](_0x30aaf5),_0x4ba3dc=!0x0;}}if('insertion'==_0x1ad25b&&'imageCaption'==_0x58f604&&!_0x1766ba['newRange']){const _0xdbf5cc=_0x1d3fab['getSuggestion'](_0x5d8dc9);_0xdbf5cc['next']&&_0xdbf5cc['next']['isInContent']&&(_0x1d3fab['discardSuggestion'](_0xdbf5cc['next']),_0x4ba3dc=!0x0);}}}return _0x4ba3dc;}),this['_registerLegacyDescription'](_0x40c1e1);}['_registerLegacyDescription'](_0x4e3b32){const _0x1eb04f=this['editor'],_0x102225=_0x1eb04f['locale'];_0x1eb04f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x409b9e=>{if('formatBlock'!=_0x409b9e['type']&&'formatInline'!=_0x409b9e['type'])return;const {data:_0x22939e}=_0x409b9e;if(!_0x22939e||'imageStyle'!=_0x22939e['commandName'])return;const _0x4027a2=_0x22939e['commandParams'][0x0]['value'];return _0x5892db('side'===_0x4027a2?o(_0x102225,'FORMAT_SIDE_IMAGE'):_0x4e3b32[_0x4027a2]||_0x4027a2);function _0x5892db(_0xafd9ac){return{'type':'format','content':o(_0x102225,'*Format:*\x20%0',_0xafd9ac)};}});}}class ct extends _0x38bc3e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x12bde9){super(_0x12bde9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xc0288f=this['editor'],_0x449b1e=_0xc0288f['commands']['get']('importWord'),_0x5c485e=_0xc0288f['commands']['get']('trackChanges');_0x449b1e&&(_0x449b1e['on']('execute',(_0x42c306,[,_0x2c3bf9])=>{this['_trackChangesValueDuringImport']=_0x5c485e['value'],_0x2c3bf9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x449b1e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x449b1e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5c485e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xc0288f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2a2337,_0x38efb9){const {suggestions:_0x5ab74a}=_0x38efb9,_0x4b13d6=this['editor']['commands']['get']('trackChanges'),_0x5974b8=_0x4b13d6['value'];this['_trackChangesValueDuringImport']!==_0x5974b8&&(_0x4b13d6['execute'](),this['_trackChangesExecuted']=!0x0),_0x5ab74a&&_0x5ab74a['forEach'](({id:_0x5274e1,type:_0x170071,author:_0x4db1f1,created_at:_0x31f501})=>{const _0x307d2f={'id':_0x5274e1,'type':_0x170071,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4db1f1,'createdAt':_0x31f501?new Date(_0x31f501):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x307d2f);});}}class ut extends _0x38bc3e{['afterInit'](){const _0x8fbd1b=this['editor'],_0x3f52c6=_0x8fbd1b['plugins']['get']('TrackChangesEditing');if(_0x8fbd1b['plugins']['has']('IndentEditing')&&(_0x3f52c6['enableCommand']('indent'),_0x3f52c6['enableCommand']('outdent')),_0x8fbd1b['plugins']['has']('IndentBlock')){for(const _0x4b5ed8 of['indentBlock','outdentBlock'])_0x3f52c6['enableDefaultAttributesIntegration'](_0x4b5ed8);}const _0x2aff2b=_0x8fbd1b['locale'];_0x3f52c6['registerBlockAttribute']('blockIndent'),_0x3f52c6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2aff2b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e5cba=this['editor'],_0xe3c332=_0x1e5cba['locale'],_0x36606e=_0x1e5cba['plugins']['get']('TrackChangesEditing');_0x36606e['descriptionFactory']['registerDescriptionCallback'](_0xb95ae8=>{if('formatBlock'!=_0xb95ae8['type'])return;const {data:_0x2f6c59}=_0xb95ae8;if(!_0x2f6c59)return;if('indentBlock'!=_0x2f6c59['commandName']&&'outdentBlock'!=_0x2f6c59['commandName'])return;const _0x28490f=_0xb95ae8['getItems']()[0x0],_0x238bca=_0x36606e['descriptionFactory']['getItemLabel'](_0x28490f);return'indentBlock'==_0x2f6c59['commandName']?{'type':'format','content':o(_0xe3c332,'*Indent:*\x20%0',_0x238bca)}:'outdentBlock'==_0x2f6c59['commandName']?{'type':'format','content':o(_0xe3c332,'*Outdent:*\x20%0',_0x238bca)}:void 0x0;});}}class ft extends _0x38bc3e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x38bc3e{['afterInit'](){const _0x3437af=this['editor'];if(!_0x3437af['plugins']['has']('LinkEditing'))return;const _0x3bb594=_0x3437af['plugins']['get']('TrackChangesEditing'),_0x171dfb=_0x3437af['commands']['get']('link');_0x3bb594['enableDefaultAttributesIntegration']('link'),_0x3bb594['enableDefaultAttributesIntegration']('unlink'),_0x3bb594['registerInlineAttribute']('linkHref');for(const _0x854dec of _0x171dfb['manualDecorators'])_0x3bb594['registerInlineAttribute'](_0x854dec['id']),_0x3bb594['descriptionFactory']['registerAttributeLabel'](_0x854dec['id'],'link\x20('+_0x854dec['label']['toLowerCase']()+')');_0x3bb594['descriptionFactory']['registerDescriptionCallback'](_0x229b46=>{if('attribute'!=_0x229b46['type'])return;const {data:_0x5f4df9}=_0x229b46;if(!_0x5f4df9||'linkHref'!=_0x5f4df9['key'])return;const _0x3f4e6f=_0x5f4df9['newValue'],_0x22397e=_0x3437af['locale'];return{'type':'format','content':null==_0x3f4e6f?o(_0x22397e,'*Remove\x20link*'):o(_0x22397e,'*Set\x20link:*\x20%0','\x22'+_0x3f4e6f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x186dec=this['editor'],_0x21e4c9=_0x186dec['locale'];_0x186dec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x430bd6=>{if('formatInline'!=_0x430bd6['type'])return;const {data:_0x131983}=_0x430bd6;if(_0x131983){if('link'==_0x131983['commandName']){const _0x47a807=_0x131983['commandParams'][0x0];return{'type':'format','content':o(_0x21e4c9,'*Set\x20link:*\x20%0','\x22'+_0x47a807+'\x22')};}return'unlink'==_0x131983['commandName']?{'type':'format','content':o(_0x21e4c9,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x38bc3e{['afterInit'](){const _0x247b3b=this['editor'],_0x5a910e=_0x247b3b['locale'];if(!_0x247b3b['plugins']['has']('LegacyListEditing'))return;const _0x14c008=_0x247b3b['plugins']['get']('TrackChangesEditing'),_0x36b268=_0x247b3b['plugins']['has']('LegacyTodoListEditing');function _0x285916(_0x440881){return()=>{const _0x42fb4f=_0x247b3b['model']['document']['selection'],_0x53588e=_0x247b3b['commands']['get'](_0x440881);if(_0x53588e['value'])return void _0x247b3b['execute']('paragraph',{});const _0x29895a=_0x440881['slice'](0x0,-0x4),_0x4aecd7=function(_0xae44f8,_0x104c60,_0x4746a0){let _0x4fe733=Array['from'](_0xae44f8)['filter'](_0x384962=>function(_0x434f14,_0x27c35f){return _0x27c35f['checkChild'](_0x434f14['parent'],'listItem')&&!_0x27c35f['isObject'](_0x434f14);}(_0x384962,_0x4746a0));_0x4fe733=_0x4fe733['filter'](_0x589af0=>!_0x589af0['is']('element','listItem')||_0x589af0['getAttribute']('listType')!=_0x104c60);const _0x4c58f3=new Set();for(const _0x5ce033 of _0x4fe733)_0x5ce033['is']('element','listItem')?_0x4c58f3['add'](Le(_0x5ce033)):_0x4c58f3['add'](_0x5ce033);return Array['from'](_0x4c58f3);}(_0x42fb4f['getSelectedBlocks'](),_0x29895a,_0x247b3b['model']['schema']);_0x247b3b['model']['change'](()=>{for(const _0x488a24 of _0x4aecd7)_0x14c008['markBlockFormat'](_0x488a24,{'commandName':_0x440881,'commandParams':[{'forceValue':!_0x53588e['value']}],'formatGroupId':'blockName'},Ee(_0x488a24));});};}function _0x44976a(_0x318c9a){return()=>{const _0x527309=function(_0x3bce22){let _0x3b3017=Array['from'](_0x3bce22);const _0x350b1d=_0x3b3017['findIndex'](_0x59cb89=>'listItem'!=_0x59cb89['name']);return _0x350b1d>-0x1&&(_0x3b3017=_0x3b3017['slice'](0x0,_0x350b1d)),_0x3b3017;}(_0x247b3b['model']['document']['selection']['getSelectedBlocks']()),_0x177d26=_0x247b3b['model']['createRange'](_0x247b3b['model']['createPositionAt'](_0x527309[0x0],'before'),_0x247b3b['model']['createPositionAt'](_0x527309[_0x527309['length']-0x1],'end'));_0x247b3b['model']['change'](()=>{_0x14c008['markBlockFormat'](_0x177d26,{'commandName':_0x318c9a,'commandParams':[],'formatGroupId':'listIndent'},function(_0xff8808){const _0x5b5c0b=new Set();for(const _0x29b1e1 of _0xff8808){let _0x2b04da=_0x29b1e1['nextSibling'];for(;_0x2b04da&&_0x2b04da['getAttribute']('listIndent')>_0x29b1e1['getAttribute']('listIndent');)_0x5b5c0b['add'](_0x2b04da),_0x2b04da=_0x2b04da['nextSibling'];}return Array['from'](_0x5b5c0b);}(_0x527309));});};}_0x14c008['enableCommand']('numberedList',_0x285916('numberedList')),_0x14c008['enableCommand']('bulletedList',_0x285916('bulletedList')),_0x36b268&&_0x14c008['enableCommand']('todoList',_0x285916('todoList')),_0x14c008['enableCommand']('indentList',_0x44976a('indentList')),_0x14c008['enableCommand']('outdentList',_0x44976a('outdentList')),_0x36b268&&_0x14c008['enableCommand']('checkTodoList',()=>{const _0x384d69=_0x247b3b['commands']['get']('checkTodoList'),_0x2ced82=Array['from'](_0x384d69['_selectedElements']);_0x2ced82['filter'](_0x21c99e=>_0x21c99e['getAttribute']('todoListChecked')!=_0x384d69['value']),_0x247b3b['model']['change'](()=>{for(const _0x1568cd of _0x2ced82)_0x14c008['markBlockFormat'](_0x1568cd,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x384d69['value']}]});});}),_0x14c008['descriptionFactory']['registerElementLabel']('listItem',_0xa20c01=>o(_0x5a910e,'ELEMENT_LIST_ITEM',_0xa20c01)),_0x14c008['descriptionFactory']['registerDescriptionCallback'](_0x44ff4b=>{if('formatBlock'!=_0x44ff4b['type']&&'formatInline'!=_0x44ff4b['type'])return;const {data:_0xc0b013}=_0x44ff4b;if(_0xc0b013){if('numberedList'==_0xc0b013['commandName']||'bulletedList'==_0xc0b013['commandName']||'todoList'==_0xc0b013['commandName'])switch(_0xc0b013['commandName']['replace']('List','')){case'bulleted':return _0x568549(o(_0x5a910e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x568549(o(_0x5a910e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x568549(o(_0x5a910e,'ELEMENT_TODO_LIST'));}if('indentList'==_0xc0b013['commandName'])return{'type':'format','content':o(_0x5a910e,'*Indent:*\x20%0',o(_0x5a910e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xc0b013['commandName'])return{'type':'format','content':o(_0x5a910e,'*Outdent:*\x20%0',o(_0x5a910e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xc0b013['commandName'])return _0xc0b013['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a910e,'*Check\x20item*')}:{'type':'format','content':o(_0x5a910e,'*Uncheck\x20item*')};}function _0x568549(_0x62b9b3){return{'type':'format','content':o(_0x5a910e,'*Change\x20to:*\x20%0',_0x62b9b3)};}});}}function Le(_0x5c8687){const _0x4a97aa=_0x5c8687['getAttribute']('listIndent');if(0x0==_0x4a97aa)return _0x5c8687;let _0x46e66c=_0x5c8687;for(;_0x5c8687['previousSibling']&&_0x5c8687['previousSibling']['is']('element','listItem');){const _0x50a952=_0x5c8687['previousSibling']['getAttribute']('listIndent');if(_0x50a952==_0x4a97aa)_0x46e66c=_0x5c8687['previousSibling'];else{if(_0x50a952<_0x4a97aa)break;}_0x5c8687=_0x5c8687['previousSibling'];}return _0x46e66c;}function Ee(_0x15553e){const _0x31c765=[];if(_0x15553e['is']('element','listItem')&&_0x15553e['getAttribute']('listIndent')>0x0){let _0x3d0fde=_0x15553e['nextSibling'];for(;_0x3d0fde&&'listItem'==_0x3d0fde['name']&&_0x3d0fde['getAttribute']('listIndent')==_0x15553e['getAttribute']('listIndent');)_0x31c765['push'](_0x3d0fde),_0x3d0fde=_0x3d0fde['nextSibling'];}return _0x31c765;}class Q extends _0x38bc3e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3d5a1f=this['editor']['config']['get']('list.properties'),_0x4d214e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d5a1f['styles']&&_0x4d214e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3d5a1f['reversed']&&_0x4d214e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3d5a1f['startIndex']&&_0x4d214e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d214e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x403b35,_0x2d4341={}){const _0xc2996d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d49d7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xc2996d['markMultiRangeBlockFormat'](_0x3d49d7,{'commandName':'listStyle','commandParams':[{'type':_0x2d4341['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2546fe,_0x294187={}){const _0x50e88c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37db83=this['_getSuggestionBlocks'](_0x116df9=>_0x116df9['is']('element','listItem')&&'numbered'===_0x116df9['getAttribute']('listType'));if(_0x37db83['length']<0x1)return;const _0x3fde25=_0x37db83['map'](_0x3123a6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3123a6,'before'),this['editor']['model']['createPositionAt'](_0x3123a6,0x0)));this['editor']['model']['change'](()=>{_0x50e88c['markMultiRangeBlockFormat'](_0x3fde25,{'commandName':'listReversed','commandParams':[{'reversed':_0x294187['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x10d031,_0x44c8f8={}){const _0x25823d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e4f05=this['_getSuggestionBlocks'](_0x30a5f3=>_0x30a5f3['is']('element','listItem')&&'numbered'===_0x30a5f3['getAttribute']('listType'));if(_0x2e4f05['length']<0x1)return;const _0x5da5f0=_0x2e4f05['map'](_0x1c69ad=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c69ad,'before'),this['editor']['model']['createPositionAt'](_0x1c69ad,0x0)));this['editor']['model']['change'](()=>{_0x25823d['markMultiRangeBlockFormat'](_0x5da5f0,{'commandName':'listStart','commandParams':[{'startIndex':_0x44c8f8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x27fbe5){if('formatBlock'!=_0x27fbe5['type']&&'formatInline'!=_0x27fbe5['type'])return;const _0x2a9161=this['editor']['locale'],{data:_0x4ead2f}=_0x27fbe5;if(!_0x4ead2f)return;let _0x1e273e,_0x3022a6;switch(_0x4ead2f['commandName']){case'listStyle':_0x1e273e='*Change\x20to:*\x20%0',_0x3022a6={'type':'format','content':o(_0x2a9161,_0x1e273e,o(_0x2a9161,this['_getTranslationKeyForListStyle'](_0x4ead2f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1e273e=_0x4ead2f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3022a6={'type':'format','content':o(_0x2a9161,_0x1e273e)};break;case'listStart':_0x1e273e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3022a6={'type':'format','content':o(_0x2a9161,_0x1e273e,_0x4ead2f['commandParams'][0x0]['startIndex'])};}return _0x3022a6;}['_getSuggestionBlocksForListStyle'](){const _0x129617=this['editor']['plugins']['get']('LegacyListUtils');let _0x361939=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x361939[0x0]?.['is']('element','listItem')&&_0x361939['unshift'](..._0x129617['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x361939[_0x361939['length']-0x1]?.['is']('element','listItem')&&_0x361939['push'](..._0x129617['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x361939=[...new Set(_0x361939)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x361939=_0x361939['filter'](_0x428f56=>_0x428f56['is']('element','listItem'))),_0x361939;}['_getSuggestionBlocks'](_0x4c2331){const _0x3c0602=this['editor']['plugins']['get']('LegacyListUtils');let _0x7038fe=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4c2331)['map'](_0x27f4dc=>{const _0x5e796b=this['editor']['model']['createPositionAt'](_0x27f4dc,0x0);return[..._0x3c0602['getSiblingNodes'](_0x5e796b,'backward'),..._0x3c0602['getSiblingNodes'](_0x5e796b,'forward')];})['flat']();return _0x7038fe=[...new Set(_0x7038fe)],_0x7038fe;}['_getTranslationKeyForListStyle'](_0x542714){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x542714)||'default')['toUpperCase']()+'_LIST_'+_0x542714['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x38bc3e{['afterInit'](){const _0x3f6139=this['editor'];if(!_0x3f6139['plugins']['has']('MediaEmbedEditing'))return;const _0xc957f9=_0x3f6139['plugins']['get']('TrackChangesEditing'),_0x54387f=_0x3f6139['locale'];_0xc957f9['enableCommand']('mediaEmbed'),_0xc957f9['descriptionFactory']['registerElementLabel']('media',_0x7c3b0b=>o(_0x54387f,'ELEMENT_MEDIA',_0x7c3b0b)),_0x3f6139['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3c678f,{writer:_0x4d7094,options:_0x3e9842})=>{if(_0x3e9842['showSuggestionHighlights'])return _0x4d7094['createEmptyElement']('div');},'converterPriority':'high'}),_0x3f6139['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1075ff,_0x5dc751,_0xbe3d75)=>{_0xbe3d75['options']['showSuggestionHighlights']&&_0x1075ff['stop']();},{'priority':'high'});}}class mt extends _0x38bc3e{['afterInit'](){const _0x5cf2c5=this['editor'];_0x5cf2c5['plugins']['has']('MentionEditing')&&_0x5cf2c5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x38bc3e{['afterInit'](){const _0x1b5537=this['editor'];if(!_0x1b5537['plugins']['has']('MergeFieldsEditing'))return;_0x1b5537['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x1b5537['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x21a575=_0x1b5537['plugins']['get']('TrackChangesEditing'),_0x531d5e=_0x1b5537['locale'];_0x21a575['descriptionFactory']['registerElementLabel']('mergeField',_0x36dbf2=>o(_0x531d5e,'ELEMENT_MERGE_FIELD',_0x36dbf2)),_0x21a575['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x11a6ec=>o(_0x531d5e,'ELEMENT_MERGE_FIELD',_0x11a6ec)),_0x21a575['descriptionFactory']['registerDescriptionCallback'](_0x3ceca4=>{if('insertion'!=_0x3ceca4['type']&&'deletion'!=_0x3ceca4['type'])return;const _0xcac381=_0x3ceca4['getContainedElement']();if(null==_0xcac381)return;if(!_0xcac381['is']('element','mergeField')&&!_0xcac381['is']('element','mergeFieldBlock'))return;const _0x5d7e66=_0x1b5537['plugins']['get']('MergeFieldsEditing')['getLabel'](_0xcac381['getAttribute']('id'));return'insertion'==_0x3ceca4['type']?{'type':'insertion','content':o(_0x531d5e,'*Insert:*\x20%0','\x22'+_0x5d7e66+'\x22\x20'+o(_0x531d5e,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x531d5e,'*Remove:*\x20%0','\x22'+_0x5d7e66+'\x22\x20'+o(_0x531d5e,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x38bc3e{['afterInit'](){const _0x456b53=this['editor'],_0x5021a0=_0x456b53['plugins']['get']('TrackChangesEditing');_0x456b53['plugins']['has']('MultiLevelList')&&(_0x5021a0['enableDefaultAttributesIntegration']('multiLevelList'),_0x5021a0['registerBlockAttribute']('listMarkerStyle'),_0x5021a0['descriptionFactory']['registerDescriptionCallback'](_0xd16ec2=>this['handleDescriptions'](_0xd16ec2)));}['handleDescriptions'](_0x5103ca){const _0x3b3f0b=this['editor']['locale'],{data:_0x4f9f36}=_0x5103ca,_0x2cecd2={'type':'format','content':''};if(_0x4f9f36&&'listMarkerStyle'==_0x4f9f36['key']){if(!_0x4f9f36['oldValue'])return{'type':'format','content':o(_0x3b3f0b,'*Set\x20format:*\x20%0',o(_0x3b3f0b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f9f36['newValue']+')'};if(!_0x4f9f36['newValue']){let _0x2f371d=_0x5103ca['head'];for(;_0x2f371d;){if(_0x2f371d['data']&&'listType'==_0x2f371d['data']['key']&&_0x2f371d['data']['newValue'])return _0x2cecd2;_0x2f371d=_0x2f371d['next'];}return{'type':'format','content':o(_0x3b3f0b,'*Remove\x20format:*\x20%0',o(_0x3b3f0b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4f9f36['oldValue']+')'};}}}}class kt extends _0x38bc3e{['afterInit'](){const _0x456620=this['editor'];if(!_0x456620['plugins']['has']('PageBreakEditing'))return;_0x456620['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x487e38=_0x456620['plugins']['get']('TrackChangesEditing'),_0x539906=_0x456620['locale'];_0x487e38['descriptionFactory']['registerElementLabel']('pageBreak',_0x4cf6cc=>o(_0x539906,'ELEMENT_PAGE_BREAK',_0x4cf6cc));}}class bt extends _0x38bc3e{['afterInit'](){const _0x16eaa0=this['editor'];if(!_0x16eaa0['plugins']['has']('Paragraph'))return;const _0x3de370=_0x16eaa0['locale'],_0x3a5b27=_0x16eaa0['plugins']['get']('TrackChangesEditing');_0x3a5b27['descriptionFactory']['registerElementLabel']('paragraph',_0xa43192=>o(_0x3de370,'ELEMENT_PARAGRAPH',_0xa43192)),_0x3a5b27['enableDefaultAttributesIntegration']('paragraph'),_0x3a5b27['enableCommand']('insertParagraph'),_0x16eaa0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x16eaa0),{'priority':'highest'}),_0x16eaa0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x40596,_0xa54fce,_0x4a526d)=>{_0x4a526d['options']['showSuggestionHighlights']&&nr(_0x16eaa0,{'showActiveMarker':!0x1})(_0x40596,_0xa54fce,_0x4a526d);},{'priority':'highest'});const _0x389c0b=_0x3a5b27['descriptionFactory'];_0x389c0b['registerDescriptionCallback'](_0x501333=>{if('insertion'!==_0x501333['type'])return;const {start:_0x523ef7,end:_0x5ed7d8}=_0x501333['getFirstRange']();if(!_0x523ef7['isTouching'](_0x5ed7d8)||!_0x523ef7['nodeAfter'])return;const _0x475164=_0x16eaa0['model']['schema'],_0x27a4fd=_0x523ef7['nodeAfter'];return _0x475164['isBlock'](_0x27a4fd)&&!_0x475164['isLimit'](_0x27a4fd)&&_0x475164['checkChild'](_0x27a4fd,'$text')?{'type':'insertion','content':o(_0x3de370,'*Insert:*\x20%0',_0x389c0b['getItemLabel'](_0x27a4fd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55efc7=this['editor'],_0x5765d5=_0x55efc7['locale'];_0x55efc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ccb06=>{if('formatBlock'!=_0x2ccb06['type'])return;const {data:_0x4360a8}=_0x2ccb06;return _0x4360a8&&'paragraph'==_0x4360a8['commandName']?{'type':'format','content':o(_0x5765d5,'*Change\x20to:*\x20%0',o(_0x5765d5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5de6f3,{showActiveMarker:_0x4cd88e=!0x0}={}){return(_0x58f950,_0x45b215,_0x3e2b89)=>{const _0xcbc38e=_0x5de6f3['plugins']['get']('TrackChangesEditing'),_0x5685f9=_0x45b215['markerRange']['start'],_0x24facd=_0x45b215['markerRange']['end'],_0x19710d=_0x5de6f3['model']['schema'];if(!_0x5685f9['isTouching'](_0x24facd)||!_0x5685f9['nodeAfter'])return;const _0x421574=_0x5685f9['nodeAfter'];if(_0x19710d['isBlock'](_0x421574)&&!_0x19710d['isLimit'](_0x421574)&&_0x19710d['checkChild'](_0x421574,'$text')){if(!_0x3e2b89['consumable']['consume'](_0x45b215['markerRange'],_0x58f950['name']))return;const {authorId:_0x4d4b6d}=_0xcbc38e['_splitMarkerName'](_0x45b215['markerName']),_0x8a57df=_0x3e2b89['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4d4b6d}),_0x5df962=_0x3e2b89['mapper']['toViewPosition'](_0x24facd);_0x4cd88e&&_0xcbc38e['activeMarkers']['includes'](_0x45b215['markerName'])&&_0x3e2b89['writer']['addClass']('ck-suggestion-marker--active',_0x8a57df),_0x3e2b89['writer']['insert'](_0x5df962,_0x8a57df),_0x3e2b89['mapper']['bindElementToMarker'](_0x8a57df,_0x45b215['markerName']);}};}class yt extends _0x38bc3e{['afterInit'](){const _0x56911c=this['editor'];if(!_0x56911c['plugins']['has']('RemoveFormatEditing'))return;_0x56911c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4163fc=this['editor'];_0x4163fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x111d2e=>{if('formatBlock'!=_0x111d2e['type']&&'formatInline'!=_0x111d2e['type'])return;const {data:_0x892cd7}=_0x111d2e;return _0x892cd7&&'removeFormat'==_0x892cd7['commandName']?{'type':'format','content':o(_0x4163fc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x38bc3e{['afterInit'](){const _0x36c8ad=this['editor'];if(!_0x36c8ad['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x14d124=_0x36c8ad['plugins']['get']('TrackChangesEditing');_0x14d124['enableCommand']('goToPreviousRestrictedEditingException'),_0x14d124['enableCommand']('goToNextRestrictedEditingException');const _0x4e010f=_0x36c8ad['plugins']['get']('RestrictedEditingModeEditing');_0x4e010f['enableCommand']('trackChanges'),_0x4e010f['enableCommand']('acceptSuggestion'),_0x4e010f['enableCommand']('discardSuggestion'),_0x4e010f['enableCommand']('acceptAllSuggestions'),_0x4e010f['enableCommand']('discardAllSuggestions'),_0x4e010f['enableCommand']('acceptSelectedSuggestions'),_0x4e010f['enableCommand']('discardSelectedSuggestions');}}class St extends _0x38bc3e{static get['requires'](){return[_0x2216f1];}['init'](){const _0x6be5cf=this['editor'],_0x236712=_0x6be5cf['plugins']['get']('TrackChangesEditing');_0x236712['enableCommand']('shiftEnter'),_0x6be5cf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x6be5cf),{'priority':'high'}),_0x6be5cf['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x6be5cf),{'priority':'high'}),_0x6be5cf['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x262c84,_0x280177,_0x4c795b)=>{_0x4c795b['options']['showSuggestionHighlights']&&ke(_0x6be5cf,{'showActiveMarker':!0x1})(_0x262c84,_0x280177,_0x4c795b);}),_0x236712['descriptionFactory']['registerElementLabel']('softBreak',_0x4a932b=>o(_0x6be5cf['locale'],'ELEMENT_LINE_BREAK',_0x4a932b));}}function ke(_0xbf0d7d,{showActiveMarker:_0x14ace0=!0x0}={}){return(_0x440624,_0x1d4a47,_0x527a19)=>{const _0xc02723=_0xbf0d7d['plugins']['get']('TrackChangesEditing');if(!_0x527a19['consumable']['test'](_0x1d4a47['markerRange'],_0x440624['name']))return;const _0x156ba0=_0xbf0d7d['model'];for(const _0x1359ea of _0x1d4a47['markerRange']['getItems']()){if(!_0x1359ea['is']('element','softBreak'))continue;const _0x519033='deletion'==_0x1d4a47['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x22c412}=_0xc02723['_splitMarkerName'](_0x1d4a47['markerName']),_0x2a1582=_0x527a19['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x519033,'data-author-id':_0x22c412}),_0x266944=_0x527a19['mapper']['toViewPosition'](_0x156ba0['createPositionBefore'](_0x1359ea));_0x14ace0&&_0xc02723['activeMarkers']['includes'](_0x1d4a47['markerName'])&&_0x527a19['writer']['addClass']('ck-suggestion-marker--active',_0x2a1582),_0x527a19['writer']['insert'](_0x266944,_0x2a1582),_0x527a19['mapper']['bindElementToMarker'](_0x2a1582,_0x1d4a47['markerName']);}};}class At extends _0x38bc3e{['afterInit'](){const _0x7573c3=this['editor'],_0x38a2f4=_0x7573c3['model'],_0x5e1738=_0x7573c3['locale'];if(!_0x7573c3['plugins']['has']('StandardEditingModeEditing'))return;const _0x1333f6=_0x7573c3['plugins']['get']('TrackChangesEditing'),_0x2d186e='restrictedEditingException',_0xcf192a=_0x7573c3['commands']['get'](_0x2d186e);_0x1333f6['enableCommand'](_0x2d186e,(_0x4e7341,_0x4fc1ed={})=>{const _0x5e82ea=_0x38a2f4['document']['selection'];if(_0x5e82ea['isCollapsed'])return void _0x4e7341(_0x4fc1ed);const _0x44dc09=void 0x0!==_0x4fc1ed['forceValue']?_0x4fc1ed['forceValue']:!_0xcf192a['value'];_0x38a2f4['change'](()=>{const _0x5b3f5b=Array['from'](_0x5e82ea['getRanges']());for(const _0x2530ef of _0x5b3f5b){const _0x1edbb8=_0x44dc09?[_0x2530ef]:io(_0x2d186e,_0x2530ef,_0x38a2f4);for(const _0x265c16 of _0x1edbb8)_0x1333f6['markInlineFormat'](_0x265c16,{'commandName':_0x2d186e,'commandParams':[{'forceValue':_0x44dc09}]});}});}),_0x1333f6['descriptionFactory']['registerDescriptionCallback'](_0x429260=>{if('formatBlock'!=_0x429260['type']&&'formatInline'!=_0x429260['type'])return;const {data:_0x2f4a19}=_0x429260;return _0x2f4a19&&_0x2f4a19['commandName']==_0x2d186e?_0x2f4a19['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e1738,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5e1738,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x38bc3e{['afterInit'](){const _0x343a59=this['editor'];if(!_0x343a59['plugins']['has']('Style')||!_0x343a59['plugins']['has']('DataSchema'))return;const _0x41eb76=_0x343a59['plugins']['get']('TrackChangesEditing'),_0x52e693=_0x343a59['locale'],_0x50168c=_0x343a59['config']['get']('style')||{},_0x1de1dd=_0x343a59['plugins']['get']('GeneralHtmlSupport'),_0x4c5261=_0x343a59['plugins']['get']('StyleUtils')['normalizeConfig'](_0x343a59['plugins']['get']('DataSchema'),_0x50168c['definitions']);_0x41eb76['enableDefaultAttributesIntegration']('style');const _0x2534dd=new Set();for(const _0x4b29ff of _0x4c5261['block']){const _0x245116=_0x1de1dd['getGhsAttributeNameForElement'](_0x4b29ff['element']);_0x2534dd['add'](_0x245116);}const _0x14fc2e=new Set();for(const _0x4c8720 of _0x4c5261['inline']){const _0x10d4e8=_0x1de1dd['getGhsAttributeNameForElement'](_0x4c8720['element']);_0x14fc2e['add'](_0x10d4e8);for(const _0x33625f of _0x4c8720['ghsAttributes'])_0x14fc2e['add'](_0x33625f);}for(const _0x1c351b of _0x2534dd)_0x41eb76['registerBlockAttribute'](_0x1c351b),_0x41eb76['descriptionFactory']['registerAttributeLabel'](_0x1c351b,o(_0x52e693,'FORMAT_STYLE'));for(const _0x2eb51f of _0x14fc2e)_0x41eb76['registerInlineAttribute'](_0x2eb51f),_0x41eb76['descriptionFactory']['registerAttributeLabel'](_0x2eb51f,o(_0x52e693,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x462676=this['editor'],_0x140771=_0x462676['locale'];_0x462676['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b0f60=>{if('formatBlock'!=_0x5b0f60['type']&&'formatInline'!=_0x5b0f60['type'])return;const {data:_0x43bf01}=_0x5b0f60;return _0x43bf01&&'style'===_0x43bf01['commandName']?_0x43bf01['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x140771,'*Set\x20format:*\x20%0',_0x43bf01['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x140771,'*Remove\x20format:*\x20%0',_0x43bf01['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x38bc3e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x542e28){super(_0x542e28),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5e8950=this['editor'],_0x4c3c87=_0x5e8950['model']['document']['selection'];if(!_0x5e8950['plugins']['has']('TableEditing'))return;const _0x4c4e10=_0x5e8950['locale'],_0x58071e=_0x5e8950['plugins']['get']('TrackChangesEditing'),_0xef850f=_0x5e8950['plugins']['get']('TableUtils');_0x58071e['descriptionFactory']['registerElementLabel']('table',_0x4153bb=>o(_0x4c4e10,'ELEMENT_TABLE',_0x4153bb)),this['_setupColumnsRowsFixing'](),_0x58071e['enableCommand']('insertTable'),_0x58071e['enableCommand']('selectTableRow'),_0x58071e['enableCommand']('selectTableColumn');for(const _0x3e401e of['insertTableRowAbove','insertTableRowBelow']){const _0x32b0ab=_0x5e8950['commands']['get'](_0x3e401e);_0x58071e['enableCommand'](_0x3e401e,_0x492beb=>{_0x5e8950['model']['change'](_0x4004a1=>{_0x492beb();const _0x535ebf='above'===_0x32b0ab['order'],_0x31b008=_0xef850f['getSelectionAffectedTableCells'](_0x4c3c87),_0x5e204f=_0xef850f['getRowIndexes'](_0x31b008),_0x4992b7=_0x535ebf?_0x5e204f['first']-0x1:_0x5e204f['last']+0x1,_0x273807=_0x31b008[0x0]['findAncestor']('table'),_0x218290=_0xef850f['createTableWalker'](_0x273807,{'startRow':_0x4992b7,'endRow':_0x4992b7}),_0x2f65a4=Array['from'](_0x218290)['map'](_0x38dab5=>_0x4004a1['createRangeOn'](_0x38dab5['cell']));_0x58071e['markMultiRangeInsertion'](_0x2f65a4,'tableRow');});});}for(const _0x1e1131 of['insertTableColumnLeft','insertTableColumnRight']){const _0x24f408=_0x5e8950['commands']['get'](_0x1e1131);_0x58071e['enableCommand'](_0x1e1131,_0x40d90e=>{_0x5e8950['model']['change'](_0x4f8d9f=>{_0x40d90e();const _0x18e356='left'===_0x24f408['order'],_0x30d4ca=_0xef850f['getSelectionAffectedTableCells'](_0x4c3c87),_0x55581b=_0xef850f['getColumnIndexes'](_0x30d4ca),_0x89bc7c=_0x18e356?_0x55581b['first']-0x1:_0x55581b['last']+0x1,_0x1117af=_0x30d4ca[0x0]['findAncestor']('table'),_0x3aa291=_0xef850f['createTableWalker'](_0x1117af,{'startRow':0x0,'column':_0x89bc7c,'includeAllSlots':!0x1}),_0x54e8ff=Array['from'](_0x3aa291)['map'](_0x4872b7=>_0x4f8d9f['createRangeOn'](_0x4872b7['cell']));_0x58071e['markMultiRangeInsertion'](_0x54e8ff,'tableColumn');});});}for(const _0x22b4c3 of['removeTableRow','removeTableColumn']){const _0x568a5f=_0x22b4c3['substr'](0xb),_0x5b9e58=_0x568a5f['toLowerCase'](),_0x2e4ce5=_0x5b9e58['substr'](0x0,0x3)+'span',_0x407542='table'+_0x568a5f,_0x22f712='min'+_0x568a5f,_0x231837='max'+_0x568a5f;_0x58071e['enableCommand'](_0x22b4c3,()=>{_0x5e8950['model']['change'](_0x4075a2=>{const _0x25e049=_0xef850f['getSelectionAffectedTableCells'](_0x4c3c87),_0x52d438=_0x25e049[0x0]['findAncestor']('table');let _0x3aeb42;if('removeTableRow'==_0x22b4c3){const _0x5b953f=_0xef850f['getRowIndexes'](_0x25e049);_0x3aeb42={'startRow':_0x5b953f['first'],'endRow':_0x5b953f['last'],'includeAllSlots':!0x0};}else{const _0x4a6a49=_0xef850f['getColumnIndexes'](_0x25e049);_0x3aeb42={'startColumn':_0x4a6a49['first'],'endColumn':_0x4a6a49['last'],'includeAllSlots':!0x0};}const _0x340484=_0xef850f['createTableWalker'](_0x52d438,_0x3aeb42),_0x5c692a=Array['from'](_0x340484)['map'](({cell:_0x14a27d})=>_0x14a27d),_0x203dc7=Re(_0x5c692a['filter'](_0x952a62=>_0x952a62['hasAttribute'](_0x2e4ce5))),_0x482370=Re(_0x5c692a['filter'](_0x298eb4=>!_0x298eb4['hasAttribute'](_0x2e4ce5)))['map'](_0x2387eb=>_0x4075a2['createRangeOn'](_0x2387eb)),_0x4d90e3=_0x58071e['markMultiRangeDeletion'](_0x482370,_0x407542);if(_0x4d90e3&&('tableRow'==_0x4d90e3['subType']||'tableColumn'==_0x4d90e3['subType'])){const _0x4a8a3b=this['_getSuggestionCoords'](_0x4d90e3);for(const _0x23e1d1 of _0x203dc7){const _0x151a1e=_0x4075a2['createRangeOn'](_0x23e1d1),_0x8cf71f=_0xef850f['getCellLocation'](_0x23e1d1),_0x566a88=_0x23e1d1['getAttribute'](_0x2e4ce5)-0x1,_0x12ea0e=_0x4a8a3b[_0x22f712],_0x5c3428=_0x4a8a3b[_0x231837];_0x12ea0e<=_0x8cf71f[_0x5b9e58]&&_0x8cf71f[_0x5b9e58]+_0x566a88<=_0x5c3428&&_0x4d90e3['addRange'](_0x151a1e);}}});});}function _0x4c1965(_0x3be92f){const _0x3c3361=Array['from'](_0x4c3c87['getRanges']())['map'](_0x1e3c44=>_0x3f82e4['fromRange'](_0x1e3c44));_0x5e8950['model']['change'](_0x533787=>{const _0x10c283=_0x533787['batch'];_0x3be92f=_0x3be92f['filter'](_0x45f78f=>'$graveyard'!=_0x45f78f['root']['rootName']),_0x533787['setSelection'](_0x3be92f),_0x5e8950['commands']['get']('removeTableRow')['refresh'](),_0x5e8950['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e8950['model']['enqueueChange'](()=>{_0x5e8950['model']['enqueueChange'](_0x10c283,_0x2126df=>{const _0x1b9ced=_0x3c3361['filter'](_0x3b3d49=>'$graveyard'!=_0x3b3d49['root']['rootName']);_0x1b9ced['length']>0x0&&_0x2126df['setSelection'](_0x1b9ced);for(const _0x5816f5 of _0x3c3361)_0x5816f5['detach']();});});});}function _0x4d797d(_0x3983d2){_0x5e8950['model']['change'](_0x5f2e9c=>{const _0x2cc928=Array['from'](_0x4c3c87['getRanges']())['map'](_0x430cf7=>_0x3f82e4['fromRange'](_0x430cf7)),_0x5edb27=[];for(const _0x522e0d of _0x3983d2)for(const _0x5dc05b of _0x522e0d['getItems']({'shallow':!0x0}))_0x5edb27['push'](_0x5dc05b);for(const _0x386392 of _0x5edb27)'$graveyard'!=_0x386392['root']['rootName']&&(_0x5f2e9c['setSelection'](_0x5f2e9c['createPositionAt'](_0x386392,0x0)),_0x5e8950['commands']['get']('removeTableColumn')['refresh'](),_0x5e8950['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1119e6=_0x2cc928['filter'](_0x5b0390=>'$graveyard'!=_0x5b0390['root']['rootName']);_0x1119e6['length']>0x0&&_0x5f2e9c['setSelection'](_0x1119e6);for(const _0x5e6bde of _0x2cc928)_0x5e6bde['detach']();});}function _0x554ee4(_0x3efe48,_0x1c86f9){return _0x1c86f9['every'](_0x8352bc=>_0x3efe48['some'](_0x3e896e=>_0x3e896e['end']['isEqual'](_0x8352bc['start'])||_0x8352bc['end']['isEqual'](_0x3e896e['start'])));}function _0x366b0d(_0x3f978f,_0x436e99){return!_0x3f978f['some'](_0xe609f5=>_0x436e99['some'](_0x37d659=>_0xe609f5['isIntersecting'](_0x37d659)))&&_0x3f978f['some'](_0x26483e=>_0x436e99['some'](_0x1bcd55=>_0x26483e['end']['isTouching'](_0x1bcd55['start'])));}_0x5e8950['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2fe807,_0x21d944,_0x3a3089)=>{if(!_0x3a3089['options']['showSuggestionHighlights'])return;const _0x3676ee=_0x21d944['item'];if(!_0x3676ee)return;const _0x19ddef=_0x3a3089['mapper']['toViewElement'](_0x3676ee);function _0x22383d(_0x82ff94){return Array['isArray'](_0x82ff94)?_0x82ff94:[_0x82ff94];}_0x19ddef&&'tableCell'===_0x3676ee['name']&&_0x4c735a(_0x19ddef,_0x3a3089['writer'],(_0x2106e0,_0x33e245,_0x291986)=>_0x291986['addClass'](_0x22383d(_0x33e245['classes']),_0x2106e0),(_0x515317,_0x426c6c,_0x2543f7)=>_0x2543f7['removeClass'](_0x22383d(_0x426c6c['classes']),_0x515317));},{'priority':'highest'}),_0x58071e['descriptionFactory']['registerDescriptionCallback'](_0x363186=>{if('insertion'!=_0x363186['type']&&'deletion'!=_0x363186['type'])return;const _0x5780a1=_0x363186['getContainedElement']();if(null!=_0x5780a1&&_0x5780a1['is']('element','table')){if('insertion'==_0x363186['type']){const _0x31011c=_0x363186['getItems']()['filter'](_0x2f7799=>_0x2f7799['is']('$textProxy'))['map'](_0x290a8c=>_0x290a8c['data']);if(_0x31011c['length'])return{'type':'insertion','content':o(_0x4c4e10,'*Insert:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x31011c['join']('\x20')+'\x22'))};}if('deletion'==_0x363186['type']){const _0x419b7c=_0x363186['getItems']()['filter'](_0x25b54f=>_0x25b54f['is']('$textProxy'))['map'](_0x4543a5=>_0x4543a5['data']);if(_0x419b7c['length'])return{'type':'deletion','content':o(_0x4c4e10,'*Remove:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x419b7c['join']('\x20')+'\x22'))};}}}),_0x58071e['descriptionFactory']['registerDescriptionCallback'](_0x317f02=>{if('tableRow'==_0x317f02['subType']){const _0x3734c0=_0x317f02['getItems']()['filter'](_0x484bcf=>_0x484bcf['is']('$textProxy'))['map'](_0x2c6ba5=>_0x2c6ba5['data']),_0x5c5dd6=this['_getSuggestionCoords'](_0x317f02),_0x4ee365=_0x5c5dd6['maxRow']-_0x5c5dd6['minRow']+0x1;if('insertion'==_0x317f02['type'])return _0x3734c0['length']?{'type':'insertion','content':o(_0x4c4e10,'*Insert:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ee365,'\x22'+_0x3734c0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c4e10,'*Insert:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_ROW',_0x4ee365))};if('deletion'==_0x317f02['type'])return _0x3734c0['length']?{'type':'deletion','content':o(_0x4c4e10,'*Remove:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4ee365,'\x22'+_0x3734c0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c4e10,'*Remove:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_ROW',_0x4ee365))};}if('tableColumn'==_0x317f02['subType']){const _0xd6c701=_0x317f02['getItems']()['filter'](_0x4f5bdc=>_0x4f5bdc['is']('$textProxy'))['map'](_0x54b36f=>_0x54b36f['data']),_0x552713=this['_getSuggestionCoords'](_0x317f02),_0x3ffb48=_0x552713['maxColumn']-_0x552713['minColumn']+0x1;if('insertion'==_0x317f02['type'])return _0xd6c701['length']?{'type':'insertion','content':o(_0x4c4e10,'*Insert:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ffb48,'\x22'+_0xd6c701['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4c4e10,'*Insert:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_COLUMN',_0x3ffb48))};if('deletion'==_0x317f02['type'])return _0xd6c701['length']?{'type':'deletion','content':o(_0x4c4e10,'*Remove:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ffb48,'\x22'+_0xd6c701['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4c4e10,'*Remove:*\x20%0',o(_0x4c4e10,'ELEMENT_TABLE_COLUMN',_0x3ffb48))};}}),_0x58071e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4c1965),_0x58071e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4c1965),_0x58071e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4d797d),_0x58071e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4d797d),_0x58071e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x554ee4),_0x58071e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x554ee4),_0x58071e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x366b0d),_0x58071e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x366b0d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x362be7=this['editor'],_0x5f5d1c=_0x362be7['model']['document']['selection'];return(_0x2d4210,_0x2fb527)=>{_0x362be7['model']['change'](_0x229226=>{const {commandName:_0x44e679,commandParams:_0x38abb3}=_0x2fb527;let _0x4b6952=_0x2d4210[0x0]['end']['nodeBefore'];_0x38abb3&&_0x38abb3[0x0]&&!0x1===_0x38abb3[0x0]['forceValue']&&(_0x4b6952=_0x2d4210[0x0]['start']['nodeAfter']);const _0x171202=_0x229226['createRangeIn'](_0x4b6952);if('$graveyard'==_0x171202['root']['rootName'])return;const _0x14a3f6=Array['from'](_0x5f5d1c['getRanges']())['map'](_0x176d26=>_0x3f82e4['fromRange'](_0x176d26));_0x229226['setSelection'](_0x171202),_0x362be7['commands']['get'](_0x44e679)['refresh'](),_0x38abb3['push']({'forceDefaultExecution':!0x0}),_0x362be7['execute'](_0x44e679,..._0x38abb3);const _0x2fcbac=_0x14a3f6['filter'](_0x3f945b=>'$graveyard'!=_0x3f945b['root']['rootName']);_0x2fcbac['length']>0x0&&_0x229226['setSelection'](_0x2fcbac);for(const _0x2ee22b of _0x14a3f6)_0x2ee22b['detach']();});};}['_getCoordsForCells'](_0x8bde6b){const _0x480d6d=this['editor']['plugins']['get']('TableUtils');let _0x4363a9=Number['MAX_SAFE_INTEGER'],_0x19502c=Number['MIN_SAFE_INTEGER'],_0x54f9b7=Number['MAX_SAFE_INTEGER'],_0x1285b2=Number['MIN_SAFE_INTEGER'];for(const _0x5b60dc of _0x8bde6b){if('$graveyard'==_0x5b60dc['root']['rootName'])continue;const {row:_0x5e15c4,column:_0xafafcd}=_0x480d6d['getCellLocation'](_0x5b60dc),_0x2a661d=_0x5b60dc['hasAttribute']('rowspan')?_0x5b60dc['getAttribute']('rowspan')-0x1:0x0,_0x175919=_0x5b60dc['hasAttribute']('colspan')?_0x5b60dc['getAttribute']('colspan')-0x1:0x0;_0x4363a9=_0x5e15c4<_0x4363a9?_0x5e15c4:_0x4363a9,_0x19502c=_0x5e15c4+_0x2a661d>_0x19502c?_0x5e15c4+_0x2a661d:_0x19502c,_0x54f9b7=_0xafafcd<_0x54f9b7?_0xafafcd:_0x54f9b7,_0x1285b2=_0xafafcd+_0x175919>_0x1285b2?_0xafafcd+_0x175919:_0x1285b2;}return{'minRow':_0x4363a9,'maxRow':_0x19502c,'minColumn':_0x54f9b7,'maxColumn':_0x1285b2};}['_setupColumnsRowsFixing'](){const _0x370ad2=this['editor'],_0x2b7b50=_0x370ad2['plugins']['get']('TrackChangesEditing'),_0xeaff78=_0x370ad2['plugins']['get']('TableUtils');_0x370ad2['model']['document']['on']('change:data',()=>{const _0x3d768f=Array['from'](_0x370ad2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x466bb1,data:_0x5a0b72}of _0x3d768f){const {group:_0x41dde7,id:_0x4457d5,subType:_0x544feb}=_0x2b7b50['_splitMarkerName'](_0x466bb1);if('suggestion'!=_0x41dde7)continue;if(null!=_0x5a0b72['oldRange'])continue;const _0x575ac5=_0x2b7b50['getSuggestion'](_0x4457d5);this['_tablePostFixingSubtypes']['includes'](_0x544feb)&&this['_tableSuggestions']['add'](_0x575ac5);}},{'priority':'low'});const _0xbe5885=(_0x4af6e8,_0xedeef2)=>{let _0x47590a=!0x1;const _0x4817b9=_0xedeef2['createRangeOn'](_0x4af6e8),_0xc978d3=_0x4af6e8['findAncestor']('table'),_0x428b01=_0xeaff78['getCellLocation'](_0x4af6e8);for(const _0x4ff951 of this['_tableSuggestions']){const _0x1e8023=_0x4ff951['subType'],_0x17a072=_0x1e8023['startsWith']('tablePaste'),_0x56043c=_0x1e8023['substr'](_0x17a072?0xa:0x5),_0x196528=_0x56043c['toLowerCase'](),_0x3fffa8=_0x196528['substr'](0x0,0x3)+'span',_0x7074f='min'+_0x56043c,_0x11311e='max'+_0x56043c;if(!_0x4ff951['isInContent'])continue;if(_0xc978d3!=_0x4ff951['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4ff951['isIntersectingWithRange'](_0x4817b9))continue;const _0x30fa6b=_0x4af6e8['hasAttribute'](_0x3fffa8)?_0x4af6e8['getAttribute'](_0x3fffa8)-0x1:0x0,_0x546533=this['_getSuggestionCoords'](_0x4ff951),_0x2b5bca=_0x546533[_0x7074f],_0x611a43=_0x546533[_0x11311e];_0x2b5bca<=_0x428b01[_0x196528]&&_0x428b01[_0x196528]+_0x30fa6b<=_0x611a43&&(_0x4ff951['addRange'](_0x4817b9),_0x47590a=!0x0);}return _0x47590a;};_0x370ad2['model']['document']['registerPostFixer'](_0x19235a=>{let _0x2cd899=!0x1;for(const _0x48e2d0 of _0x370ad2['model']['document']['differ']['getChanges']())if('insert'==_0x48e2d0['type']){if('tableRow'==_0x48e2d0['name']){for(const _0x1a67e1 of _0x48e2d0['position']['nodeAfter']['getChildren']())_0x2cd899=_0x2cd899||_0xbe5885(_0x1a67e1,_0x19235a);}else'tableCell'==_0x48e2d0['name']&&(_0x2cd899=_0x2cd899||_0xbe5885(_0x48e2d0['position']['nodeAfter'],_0x19235a));}return _0x2cd899;});}['_getSuggestionCoords'](_0x978048){return this['_getCoordsForCells'](_0x978048['getRanges']()['map'](_0x5f1c3a=>_0x5f1c3a['start']['nodeAfter']));}}function Re(_0xb687c5){return Array['from'](new Set(_0xb687c5)['values']());}class _t extends _0x38bc3e{static get['requires'](){return[vt];}['afterInit'](){const _0x32704b=this['editor'],_0x2216a9=_0x32704b['model']['document']['selection'],_0x503982=_0x32704b['locale'];if(!_0x32704b['plugins']['has']('TableEditing'))return;const _0xd1b3a9=_0x32704b['plugins']['get']('TrackChangesEditing'),_0x15c346=_0x32704b['plugins']['get']('TableUtils'),_0x4f1a4e=_0x32704b['plugins']['get'](vt);_0x4f1a4e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xd1b3a9['enableCommand']('mergeTableCells',()=>{const _0x155c87=_0x15c346['getSelectionAffectedTableCells'](_0x32704b['model']['document']['selection']);_0x32704b['model']['change'](()=>{_0xd1b3a9['markMultiRangeBlockFormat'](_0x155c87,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x32704b['commands']['get']('mergeTableCells')['on']('execute',(_0x3f1dfe,_0x3d8af1)=>{_0x32704b['commands']['get']('trackChanges')['value']&&(_0x3d8af1['length']>0x0&&_0x3d8af1[_0x3d8af1['length']-0x1]&&_0x3d8af1[_0x3d8af1['length']-0x1]['forceDefaultExecution']||_0xd1b3a9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3f1dfe['stop']());},{'priority':'highest'});for(const _0x72d118 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x484a1e=_0x32704b['commands']['get'](_0x72d118);_0xd1b3a9['enableCommand'](_0x72d118,()=>{const _0x15b423=_0x32704b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x17b99b=>_0x17b99b['is']('element','tableCell')),_0x5e4b07=_0x484a1e['value'];_0x32704b['model']['change'](()=>{_0xd1b3a9['markMultiRangeBlockFormat']([_0x15b423,_0x5e4b07],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x454c35 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x50cd9a=_0x32704b['commands']['get'](_0x454c35);_0xd1b3a9['enableCommand'](_0x454c35,()=>{const _0x531221=_0x15c346['getSelectionAffectedTableCells'](_0x32704b['model']['document']['selection'])[0x0],_0x5502b3=_0x531221['findAncestor']('table'),{column:_0x215311,row:_0x45a7e1}=_0x15c346['getCellLocation'](_0x531221);let _0x5cd2f8=[];if('horizontally'==_0x50cd9a['direction']){const _0x562e67=_0x15c346['createTableWalker'](_0x5502b3,{'startRow':_0x45a7e1,'endRow':_0x45a7e1,'includeAllSlots':!0x0});_0x5cd2f8=Array['from'](_0x562e67)['map'](_0x269646=>_0x269646['cell']);}else{const _0x5da187=_0x15c346['createTableWalker'](_0x5502b3,{'column':_0x215311,'includeAllSlots':!0x0});_0x5cd2f8=Array['from'](_0x5da187)['map'](_0x1f8794=>_0x1f8794['cell']);}_0x32704b['model']['change'](_0x37b115=>{_0xd1b3a9['markBlockFormat'](_0x37b115['createRangeOn'](_0x531221),{'commandName':_0x454c35,'commandParams':[]},_0x5cd2f8,_0x454c35);});});}_0xd1b3a9['descriptionFactory']['registerDescriptionCallback'](_0x3d4d9e=>{if('formatBlock'!=_0x3d4d9e['type']&&'formatInline'!=_0x3d4d9e['type'])return;const {data:_0x3c2f35}=_0x3d4d9e;return _0x3c2f35&&'mergeTableCells'==_0x3c2f35['commandName']?{'type':'format','content':o(_0x503982,'*Merge\x20cells*')}:void 0x0;}),_0xd1b3a9['descriptionFactory']['registerDescriptionCallback'](_0x49cecf=>{if('formatBlock'!=_0x49cecf['type']&&'formatInline'!=_0x49cecf['type'])return;const {data:_0x53de2b}=_0x49cecf;return _0x53de2b?'splitTableCellVertically'==_0x53de2b['commandName']?{'type':'format','content':o(_0x503982,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x53de2b['commandName']?{'type':'format','content':o(_0x503982,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1e7aed=_0x4f1a4e['_acceptFormatSuggestionCallbackFactory']();for(const _0x327baf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xd1b3a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x327baf,'accept',_0x1e7aed);for(const _0x28137f of['splitTableCellVertically','splitTableCellHorizontally'])_0xd1b3a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x28137f,'accept',_0x1e7aed);_0xd1b3a9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x405247=>{_0x32704b['model']['change'](_0x47ad64=>{const _0x1c7091=Array['from'](_0x2216a9['getRanges']())['map'](_0x14672e=>_0x3f82e4['fromRange'](_0x14672e));_0x47ad64['setSelection'](_0x405247),_0x32704b['commands']['get']('mergeTableCells')['refresh'](),_0x32704b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3fbdc3=_0x1c7091['filter'](_0x14d8e4=>'$graveyard'!=_0x14d8e4['root']['rootName']);_0x3fbdc3['length']>0x0&&_0x47ad64['setSelection'](_0x3fbdc3);for(const _0x4a62cd of _0x1c7091)_0x4a62cd['detach']();});});for(const _0x1b4e6d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x6f2f94=_0x32704b['commands']['get'](_0x1b4e6d);_0x6f2f94['on']('set:isEnabled',(_0x1995b6,_0x3113c0,_0x241317)=>{if(_0x241317){const _0x33d6d2=_0x32704b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4c0fd3=>_0x4c0fd3['is']('element','tableCell'));this['_areMergableCells'](_0x6f2f94['value'],_0x33d6d2)||(_0x1995b6['return']=!0x1,_0x1995b6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2bb02a=this['editor']['commands']['get']('mergeTableCells'),_0x1985df=this['editor']['plugins']['get']('TableUtils');if(!_0x2bb02a['isEnabled'])return!0x1;const _0x482194=_0x1985df['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2ea915 of _0x482194)for(const _0x240ca3 of _0x482194)if(_0x2ea915!=_0x240ca3&&!this['_areMergableCells'](_0x2ea915,_0x240ca3))return!0x1;return!0x0;}['_areMergableCells'](_0xe61cba,_0x219cca){const _0x38232c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fa0d1=this['editor']['model']['createRangeOn'](_0xe61cba),_0x5aed0f=this['editor']['model']['createRangeOn'](_0x219cca),_0x11a5a4=new Set(),_0x1b9553=new Set();for(const _0x3d2748 of _0x38232c['getSuggestions']())if(('insertion'==_0x3d2748['type']||'deletion'==_0x3d2748['type']||'mergeTableCells'==_0x3d2748['subType'])&&_0x3d2748['isInContent']){for(const _0x254a5c of _0x3d2748['getRanges']())_0x254a5c['containsRange'](_0x4fa0d1,!0x0)&&_0x11a5a4['add'](_0x3d2748['type']+':'+_0x3d2748['author']['id']),_0x254a5c['containsRange'](_0x5aed0f,!0x0)&&_0x1b9553['add'](_0x3d2748['type']+':'+_0x3d2748['author']['id']);}if(_0x11a5a4['size']!=_0x1b9553['size'])return!0x1;for(const _0x18478c of _0x11a5a4)if(!_0x1b9553['has'](_0x18478c))return!0x1;return!0x0;}}class Ct extends _0x38bc3e{static get['requires'](){return[vt];}['afterInit'](){const _0x597dbb=this['editor'];if(!_0x597dbb['plugins']['has']('TableEditing'))return;const _0x68183a=_0x597dbb['locale'],_0x27587b=_0x597dbb['plugins']['get']('TrackChangesEditing');_0x27587b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x27587b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x27587b['registerBlockAttribute']('headingRows'),_0x27587b['registerBlockAttribute']('headingColumns'),_0x27587b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x68183a,'FORMAT_HEADER_ROW')),_0x27587b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x68183a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5445de=this['editor']['plugins']['get']('TrackChangesEditing'),_0x287ee3=this['editor']['plugins']['get']('TableUtils'),_0x90a7d1=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x478678({showActiveMarker:_0x2d779e=!0x0,setDataAttribute:_0x29a13c=!0x0}={}){return(_0x48b2de,_0x7edd37,_0x43b4bb)=>{const {type:_0x35a0c6,id:_0x470878}=_0x5445de['_splitMarkerName'](_0x7edd37['markerName']),_0x5f2bff=_0x5445de['getSuggestion'](_0x470878),_0x1c2736=_0x5f2bff['data'];if('formatBlock'!=_0x5f2bff['type']||!_0x1c2736||'setTableColumnHeader'!=_0x1c2736['commandName'])return;if(_0x7edd37['item'])return void _0x48b2de['stop']();if(!_0x43b4bb['consumable']['consume'](_0x7edd37['markerRange'],_0x48b2de['name']))return;const _0x55b7c8=_0x7edd37['markerRange']['start']['nodeAfter'],_0x2e6f48=_0x7edd37['markerRange']['end']['nodeBefore'],_0x568940=_0x55b7c8['parent']['parent'],{column:_0x437e7e}=_0x287ee3['getCellLocation'](_0x55b7c8),{column:_0x2908fb}=_0x287ee3['getCellLocation'](_0x2e6f48);for(let _0x53f203=_0x437e7e;_0x53f203<=_0x2908fb;_0x53f203++){const _0x1130b0=_0x287ee3['createTableWalker'](_0x568940,{'column':_0x53f203,'includeAllSlots':!0x1});for(const _0x578304 of _0x1130b0){const _0x3a634e=_0x578304['cell'],_0x12cc07=_0x43b4bb['mapper']['toViewElement'](_0x3a634e);_0x43b4bb['writer']['addClass']('ck-suggestion-marker-'+_0x35a0c6,_0x12cc07),_0x29a13c&&_0x43b4bb['writer']['setAttribute']('data-suggestion',_0x470878,_0x12cc07),_0x43b4bb['mapper']['bindElementToMarker'](_0x12cc07,_0x7edd37['markerName']),_0x2d779e&&(_0x5445de['activeMarkers']['includes'](_0x7edd37['markerName'])?_0x43b4bb['writer']['addClass']('ck-suggestion-marker--active',_0x12cc07):_0x43b4bb['writer']['removeClass']('ck-suggestion-marker--active',_0x12cc07));}}};}_0x5445de['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x90a7d1),_0x5445de['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x90a7d1),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x478678(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3ff971,_0x2e9c8f,_0x179240)=>{_0x179240['options']['showSuggestionHighlights']&&_0x478678({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3ff971,_0x2e9c8f,_0x179240);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x22f6f0,_0xfcb13,_0x5a0175)=>{const {type:_0x31b716,id:_0xa8de99}=_0x5445de['_splitMarkerName'](_0xfcb13['markerName']),_0x45822d=_0x5445de['getSuggestion'](_0xa8de99),_0x364ed2=_0x45822d['data'];if('formatBlock'!=_0x45822d['type']||!_0x364ed2||'setTableColumnHeader'!=_0x364ed2['commandName'])return;const _0xb36876=_0x5a0175['mapper']['markerNameToElements'](_0xfcb13['markerName']);if(_0xb36876){for(const _0x22b475 of _0xb36876)_0x5a0175['writer']['removeClass']('ck-suggestion-marker-'+_0x31b716,_0x22b475),_0x5a0175['writer']['removeClass']('ck-suggestion-marker--active',_0x22b475),_0x5a0175['writer']['removeAttribute']('data-suggestion',_0x22b475),_0x5a0175['mapper']['unbindElementFromMarkerName'](_0x22b475,_0xfcb13['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x139873=this['editor'],_0x23325f=_0x139873['locale'];function _0x26be81(_0xf8cf5){return{'type':'format','content':o(_0x23325f,'*Format:*\x20%0',_0xf8cf5)};}_0x139873['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x590b49=>{if('formatBlock'!=_0x590b49['type'])return;const {data:_0x5b4da6}=_0x590b49;if(_0x5b4da6){if('setTableRowHeader'==_0x5b4da6['commandName']){const _0x482185=_0x5b4da6['commandParams'][0x0]['forceValue'];return _0x26be81(o(_0x23325f,_0x482185?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5b4da6['commandName']){const _0x4f3863=_0x5b4da6['commandParams'][0x0]['forceValue'];return _0x26be81(o(_0x23325f,_0x4f3863?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x5a9199=>[_0x5a9199,null]));class Nt extends _0x38bc3e{static get['requires'](){return[vt];}['afterInit'](){const _0x3519a9=this['editor'];if(!_0x3519a9['plugins']['has']('TableClipboard'))return;const _0x18af57=_0x3519a9['plugins']['get']('TrackChangesEditing'),_0x522a26=_0x3519a9['plugins']['get']('TableUtils'),_0x45689e=_0x3519a9['plugins']['get'](vt),_0x41cde2=_0x3519a9['plugins']['get']('TableClipboard');_0x45689e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3519a9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3519a9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x50692f=null;_0x3519a9['model']['on']('insertContent',(_0x5490ed,_0x5d7523)=>{const [_0x4915ae,_0x2d66a1]=_0x5d7523,_0x13970c=_0x5d7523[_0x5d7523['length']-0x1];_0x13970c&&_0x13970c['forceDefaultExecution']||_0x18af57['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x52f75b,_0x40c97e,_0x13a4cb,_0x4ea599,_0x56acaa){if(_0x40c97e&&!_0x40c97e['is']('documentSelection'))return!0x1;const _0x562f1a=_0x56acaa['getTableIfOnlyTableInContent'](_0x52f75b,_0x13a4cb);if(!_0x562f1a||!Ae(_0x562f1a,void 0x0,_0x4ea599))return!0x1;const _0x29d98d=_0x4ea599['getSelectionAffectedTableCells'](_0x13a4cb['document']['selection']);if(!_0x29d98d['length'])return!0x1;const _0x45d9b8=_0x29d98d[0x0]['findAncestor']('table'),_0x135339=_0x4ea599['getRowIndexes'](_0x29d98d),_0x11fc6a=_0x4ea599['getColumnIndexes'](_0x29d98d),_0x5aff82={'startRow':_0x135339['first'],'endRow':_0x135339['last'],'startColumn':_0x11fc6a['first'],'endColumn':_0x11fc6a['last']};return 0x1==_0x29d98d['length']&&(_0x5aff82['endRow']+=_0x4ea599['getRows'](_0x562f1a)-0x1,_0x5aff82['endColumn']+=_0x4ea599['getColumns'](_0x562f1a)-0x1),Ae(_0x45d9b8,_0x5aff82,_0x4ea599);}(_0x4915ae,_0x2d66a1,_0x3519a9['model'],_0x522a26,_0x41cde2)&&(_0x5490ed['stop'](),_0x50692f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3519a9['model']['change'](()=>{_0x3519a9['model']['insertContent'](_0x5d7523[0x0],_0x5d7523[0x1],_0x5d7523[0x2],{'forceDefaultExecution':!0x0});const _0xb2eb89=_0x62ed8e(),{rowInsertionRanges:_0x535f0f,columnInsertionRanges:_0x4f2210,insertionRanges:_0x40b89a,deletionRanges:_0xb8785f,cells:_0x503a27}=_0x50692f;_0x535f0f['length']&&_0x18af57['markMultiRangeInsertion'](_0x535f0f,'tablePasteRow',{'tablePasteChainId':_0xb2eb89}),_0x4f2210['length']&&_0x18af57['markMultiRangeInsertion'](_0x4f2210,'tablePasteColumn',{'tablePasteChainId':_0xb2eb89}),_0x40b89a['length']&&(_0x18af57['markMultiRangeInsertion'](_0x40b89a,'tablePaste',{'tablePasteChainId':_0xb2eb89,'skipNestingCheck':!0x0}),_0x40b89a['forEach'](_0x48e9b2=>_0x48e9b2['detach']?.())),_0xb8785f['length']&&(_0x18af57['markMultiRangeDeletion'](_0xb8785f,'tablePaste',{'tablePasteChainId':_0xb2eb89,'skipNestingCheck':!0x0}),_0xb8785f['forEach'](_0x1ca690=>_0x1ca690['detach']?.()));const _0x18e18e=_0x18af57['markMultiRangeBlockFormat'](_0x503a27['map'](({element:_0x32ccf0})=>_0x32ccf0),{'formatGroupId':_0x62ed8e()},[],'tablePasteCell',{'tablePasteChainId':_0xb2eb89});if(_0x18e18e){const _0x4327ac=_0x18e18e['getMarkers'](),_0x4446be=[];for(const {element:_0x1971eb,attributes:_0x3ff5ee}of _0x503a27){if(!_0x3ff5ee)continue;const _0x29c549=_0x3519a9['model']['createRangeOn'](_0x1971eb),_0x4501d3=_0x4327ac['find'](_0x138971=>_0x138971['getRange']()['isEqual'](_0x29c549));_0x4501d3&&_0x4446be['push']([_0x4501d3['name'],_0x3ff5ee]);}_0x4446be['length']&&_0x18e18e['setAttribute']('markerAttributes',Object['fromEntries'](_0x4446be));}_0x50692f=null;}));},{'priority':_0x2abc47['high']+0xa}),_0x3519a9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x292213,_0xa46c70)=>{const [_0x2c2ec2,_0x59ed9e,,_0x1681e3]=_0xa46c70;if(!_0x50692f)return;_0x292213['stop']();const _0x30713a=_0x2c2ec2['cell'],_0x502a24=_0x59ed9e,_0x378a0c=je(_0x30713a),_0xd72a7e=je(_0x502a24);_0x292213['return']=_0x30713a;let _0x400c5e=null,_0x1bdce0=null;if(_0xd72a7e||_0x378a0c){if(_0x378a0c&&!_0xd72a7e){_0x1681e3['remove'](_0x30713a['getChild'](0x0));for(const _0x497224 of Array['from'](_0x502a24['getChildren']()))_0x1681e3['insert'](_0x497224,_0x30713a,'end');const _0x25668b=_0x50692f['rowInsertionIndexes']['includes'](_0x2c2ec2['row']),_0x4ff904=_0x50692f['columnInsertionIndexes']['includes'](_0x2c2ec2['column']);_0x25668b||_0x4ff904||(_0x400c5e=_0x3f82e4['fromRange'](_0x1681e3['createRangeIn'](_0x30713a)));}else _0xd72a7e&&!_0x378a0c&&(_0x1bdce0=_0x1681e3['createRangeIn'](_0x30713a));}else{const _0x3401b1=_0x1681e3['createElement']('tableCellSuggestion'),_0x1746a8=_0x1681e3['createElement']('tableCellSuggestion');_0x1681e3['wrap'](_0x1681e3['createRangeIn'](_0x30713a),_0x1746a8),_0x1681e3['insert'](_0x3401b1,_0x30713a,0x0);for(const _0x497b0e of Array['from'](_0x502a24['getChildren']()))_0x1681e3['insert'](_0x497b0e,_0x3401b1,'end');_0x400c5e=_0x3f82e4['fromRange'](_0x1681e3['createRangeOn'](_0x3401b1)),_0x1bdce0=_0x3f82e4['fromRange'](_0x1681e3['createRangeOn'](_0x1746a8));}const _0x21d7f8=Array['from'](_0x502a24['getAttributes']())['filter'](([_0x4b930f])=>we['includes'](_0x4b930f));_0x50692f['cells']['push']({'element':_0x30713a,'attributes':_0x21d7f8['length']?Object['fromEntries'](_0x21d7f8):null}),_0x400c5e&&_0x50692f['insertionRanges']['push'](_0x400c5e),_0x1bdce0&&_0x50692f['deletionRanges']['push'](_0x1bdce0);},{'priority':'high'}),_0x522a26['on']('insertColumns',(_0x103717,_0x43e0d4)=>{const [_0x11cc90,_0x589e9e={}]=_0x43e0d4;if(!_0x50692f)return;const _0x1dcd48=_0x589e9e['at']||0x0,_0x56c87e=_0x589e9e['columns']||0x1;_0x50692f['columnInsertionIndexes']=new Array(_0x56c87e)['fill'](_0x1dcd48)['map']((_0x34fdbf,_0x17598c)=>_0x34fdbf+_0x17598c);for(const {cell:_0x566c0b}of _0x522a26['createTableWalker'](_0x11cc90,{'startColumn':_0x1dcd48,'endColumn':_0x1dcd48+_0x56c87e-0x1}))_0x50692f['columnInsertionRanges']['push'](_0x3519a9['model']['createRangeOn'](_0x566c0b));},{'priority':'low'}),_0x522a26['on']('insertRows',(_0x364773,_0x2f48d8)=>{const [_0x105f90,_0x28cb53={}]=_0x2f48d8;if(!_0x50692f)return;const _0x2de184=_0x28cb53['at']||0x0,_0x5e844b=_0x28cb53['rows']||0x1;_0x50692f['rowInsertionIndexes']=new Array(_0x5e844b)['fill'](_0x2de184)['map']((_0x4e806c,_0x176844)=>_0x4e806c+_0x176844);for(const {cell:_0x559ddb}of _0x522a26['createTableWalker'](_0x105f90,{'startRow':_0x2de184,'endRow':_0x2de184+_0x5e844b-0x1}))_0x50692f['rowInsertionRanges']['push'](_0x3519a9['model']['createRangeOn'](_0x559ddb));},{'priority':'low'}),_0x18af57['descriptionFactory']['registerDescriptionCallback'](_0x3842a3=>{if(_0x3842a3['subType']&&_0x3842a3['subType']['startsWith']('tablePaste'))return _0x3842a3['previous']?{}:{'type':'insertion','content':o(_0x3519a9['locale'],'*Replace\x20table\x20cells*')};});const _0x1bf423=()=>!0x1;for(const _0x498865 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x18af57['_suggestionFactory']['registerCustomCallback']('insertion',_0x498865,'join',_0x1bf423),_0x18af57['_suggestionFactory']['registerCustomCallback']('deletion',_0x498865,'join',_0x1bf423),_0x18af57['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x498865,'join',_0x1bf423);_0x18af57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1bf423),_0x18af57['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5c9c89,_0x38f5c9,_0x383b6e)=>{const _0x2b3e9a=_0x5c9c89['map'](_0xfd5b32=>_0xfd5b32['getContainedElement']())['filter'](_0x10981e=>_0x10981e),_0x3e01ea=new Map(_0x2b3e9a['map'](_0x319355=>[_0x319355,null]));if(_0x50692f){for(const {element:_0x3041fc,attributes:_0x39d7f3}of _0x50692f['cells'])_0x39d7f3&&_0x3e01ea['set'](_0x3041fc,_0x39d7f3);}else{if(_0x383b6e&&_0x383b6e['markerAttributes'])for(const [_0x5c6996,_0x3fdca5]of Object['entries'](_0x383b6e['markerAttributes'])){const _0x5ced5d=_0x3519a9['model']['markers']['get'](_0x5c6996),_0x3b505d=_0x5ced5d?_0x5ced5d['getRange']()['getContainedElement']():null;_0x3b505d&&_0x3e01ea['set'](_0x3b505d,_0x3fdca5);}}_0x3519a9['model']['change'](_0x3429b7=>{for(const [_0x49cdee,_0x21f4b0]of _0x3e01ea)_0x3429b7['setAttributes']({...ve,..._0x21f4b0},_0x49cdee);});});const _0x565fd8=(_0x56ecf3,_0x5a4d16)=>{_0x18af57['_suggestionFactory']['registerCustomCallback'](_0x56ecf3,'tablePaste',_0x5a4d16,(_0x535be0,_0x2134c2,_0x55dd67)=>{_0x3519a9['model']['change'](_0xdf4a2f=>{const _0x174d0c=[];for(const _0x437e61 of _0x535be0){const _0x47fde0=_0x437e61['start']['nodeAfter'];_0x47fde0['is']('element','tableCellSuggestion')&&_0x174d0c['push'](_0x47fde0);}_0x18af57['_suggestionFactory']['getSuggestionCallback'](_0x56ecf3,null,_0x5a4d16)(_0x535be0,_0x2134c2,_0x55dd67);for(const _0x1ef807 of _0x174d0c)'$graveyard'!=_0x1ef807['root']['rootName']&&_0xdf4a2f['unwrap'](_0x1ef807);});});};_0x565fd8('insertion','accept'),_0x565fd8('insertion','discard'),_0x565fd8('deletion','accept'),_0x565fd8('deletion','discard'),_0x18af57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5b446c=>{const _0x550b8f=_0x5b446c['map'](_0x40467e=>_0x40467e['getContainedElement']()),_0x4c8ae4=_0x550b8f[0x0]['findAncestor']('table'),{minRow:_0x251db0,maxRow:_0x1c17e8}=_0x45689e['_getCoordsForCells'](_0x550b8f);_0x522a26['removeRows'](_0x4c8ae4,{'at':_0x251db0,'rows':_0x1c17e8-_0x251db0+0x1});}),_0x18af57['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x55d538=>{const _0x334fbe=_0x55d538['map'](_0x2079ce=>_0x2079ce['getContainedElement']()),_0x28cef2=_0x334fbe[0x0]['findAncestor']('table'),{minColumn:_0x2438e5,maxColumn:_0x12b03b}=_0x45689e['_getCoordsForCells'](_0x334fbe);_0x522a26['removeColumns'](_0x28cef2,{'at':_0x2438e5,'columns':_0x12b03b-_0x2438e5+0x1});});const _0x1ed1c3=(_0xeea2d1,_0x54add1)=>{if(!_0x54add1['subType']||!_0x54add1['subType']['startsWith']('tablePaste'))return;const _0x4f3d26=_0x54add1['attributes']['tablePasteChainId'],_0x2ad877=_0x18af57['getSuggestions']()['filter'](_0x482f90=>_0x482f90['isInContent']&&_0x482f90['attributes']&&_0x482f90['attributes']['tablePasteChainId']==_0x4f3d26);_0x2ad877['length']&&_0x54add1['getAllAdjacentSuggestions']()['length']!=_0x2ad877['length']&&_0x2ad877['reduce']((_0xdc27cb,_0x462e7b)=>(_0xdc27cb['next']=_0x462e7b,_0x462e7b['previous']=_0xdc27cb,_0x462e7b));};function _0x487448(_0x3ed368,_0x1064cd=!0x0){const {id:_0x4da42c,authorId:_0x35594b}=_0x18af57['_splitMarkerName'](_0x3ed368['markerName']),_0x8357be=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3e293c=_0x18af57['activeMarkers']['includes'](_0x3ed368['markerName']);return _0x3e293c&&_0x8357be['push']('ck-suggestion-marker--active'),{'classes':_0x8357be,'attributes':{'data-suggestion':_0x4da42c,'data-author-id':_0x35594b},'priority':_0x3e293c&&_0x1064cd?0xbc2:0xbb8};}_0x18af57['on']('suggestionLoaded',_0x1ed1c3,{'priority':'high'}),_0x18af57['on']('suggestionUnloaded',_0x1ed1c3,{'priority':'high'}),_0x3519a9['model']['document']['registerPostFixer'](()=>{let _0x8bace2=!0x1;const _0x37cb57=Array['from'](_0x3519a9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x414102,data:_0x246d28}of _0x37cb57){const {group:_0x4cdf0a,type:_0x54d9e0,id:_0x32b67c}=_0x18af57['_splitMarkerName'](_0x414102);if('suggestion'!=_0x4cdf0a||'deletion'!=_0x54d9e0||_0x246d28['oldRange'])continue;if(!_0x18af57['hasSuggestion'](_0x32b67c))continue;const _0x58fa4f=_0x18af57['getSuggestion'](_0x32b67c)['getRanges'](),_0x44a30a=_0x3519a9['plugins']['get']('Users')['me'];for(const _0x4eaada of _0x18af57['getSuggestions']()){if(!_0x4eaada['isInContent']||_0x4eaada['author']!=_0x44a30a)continue;if('formatBlock'!=_0x4eaada['type']||'tablePasteCell'!=_0x4eaada['subType'])continue;if(_0x4eaada['getRanges']()['every'](_0x12d49a=>_0x58fa4f['some'](_0x40f4ee=>_0x40f4ee['containsRange'](_0x12d49a,!0x0)))){for(const _0x26f674 of _0x4eaada['getAllAdjacentSuggestions']())_0x26f674['isInContent']&&(_0x26f674['discard'](),_0x8bace2=!0x0);}}}return _0x8bace2;}),_0x3519a9['model']['document']['registerPostFixer'](_0x41dc0b=>{const _0x57d247=_0x3519a9['commands']['get']('redo');if(!_0x57d247||!_0x57d247['_createdBatches']['has'](_0x41dc0b['batch']))return!0x1;let _0x7b9e0a=!0x1;const _0x5b8818=_0x3519a9['plugins']['get']('Users')['me'],_0x1b2a51=_0x3519a9['model']['document']['differ']['getChanges'](),_0x5b1a3=Array['from'](_0x3519a9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x140500,data:_0x5aae7e})=>{const {group:_0x1670c4,subType:_0x44c2e0,authorId:_0x51ca69}=_0x18af57['_splitMarkerName'](_0x140500);return'suggestion'==_0x1670c4&&'tablePaste'==_0x44c2e0&&_0x51ca69==_0x5b8818['id']&&!_0x5aae7e['oldRange'];});for(const _0x3fcbf3 of _0x1b2a51){if('insert'!=_0x3fcbf3['type']||'tableCellSuggestion'!=_0x3fcbf3['name']||0x1!=_0x3fcbf3['length'])continue;const _0x5b4c81=_0x41dc0b['createRange'](_0x3fcbf3['position'],_0x3fcbf3['position']['getShiftedBy'](0x1));if(!_0x5b1a3['find'](({data:_0x28dfc1})=>_0x28dfc1['newRange']['isEqual'](_0x5b4c81))){for(const {name:_0x217096,data:_0x17f6c8}of _0x5b1a3)if(_0x5b4c81['containsRange'](_0x17f6c8['newRange'])){_0x41dc0b['updateMarker'](_0x217096,{'range':_0x5b4c81}),_0x7b9e0a=!0x0;break;}}}return _0x7b9e0a;}),_0x3519a9['model']['document']['registerPostFixer'](_0x16aff4=>{let _0x2a0733=!0x1;const _0x35836f=_0x3519a9['plugins']['get']('Users')['me'],_0xb2cba0=_0x18af57['getSuggestions']()['filter'](_0x4711de=>_0x4711de['isInContent']&&_0x4711de['author']==_0x35836f),_0x31b2c2=new Set(),_0x44af2a=new Set();for(const _0x5d3a14 of _0xb2cba0)if('tablePaste'==_0x5d3a14['subType'])for(const _0x4565dd of _0x5d3a14['getMarkers']()){const _0x32acc6=_0x4565dd['getRange']()['getContainedElement']();if(_0x32acc6){if(_0x32acc6['is']('element','tableCellSuggestion')&&je(_0x32acc6)){_0x5d3a14['removeMarker'](_0x4565dd['name']),_0x31b2c2['add'](_0x32acc6),_0x2a0733=!0x0;const _0x3e43f4=_0x32acc6['nextSibling'],_0x3b291b=_0x32acc6['previousSibling'],_0x140b15=_0x3e43f4&&_0x3e43f4['is']('element','tableCellSuggestion'),_0x49e6e2=_0x3b291b&&_0x3b291b['is']('element','tableCellSuggestion');_0x140b15&&!_0x31b2c2['has'](_0x3e43f4)&&_0x44af2a['add'](_0x3e43f4),_0x49e6e2&&!_0x31b2c2['has'](_0x3b291b)&&_0x44af2a['add'](_0x3b291b);}else _0x32acc6['is']('element','paragraph')&&_0x32acc6['isEmpty']&&(_0x5d3a14['removeMarker'](_0x4565dd['name']),_0x2a0733=!0x0);}}else{if('tablePasteCell'==_0x5d3a14['subType']){if(!_0x5d3a14['attributes']||!_0x5d3a14['attributes']['tablePasteChainId'])continue;const _0x159d37=_0x5d3a14['attributes']['markerAttributes'];if(_0x159d37&&Object['keys'](_0x159d37)['length'])continue;const _0x3199a3=_0x5d3a14['attributes']['tablePasteChainId'];let _0x3e1953=!0x0,_0x17060e=!0x0;for(const _0x4fc8f3 of _0xb2cba0)if(_0x4fc8f3['subType']&&_0x4fc8f3['subType']['startsWith']('tablePaste')){if(!_0x4fc8f3['attributes']['tablePasteChainId']){_0x17060e=!0x1;break;}if(_0x4fc8f3['id']!=_0x5d3a14['id']&&_0x4fc8f3['attributes']['tablePasteChainId']==_0x3199a3){_0x3e1953=!0x1;break;}}_0x17060e&&_0x3e1953&&(_0x5d3a14['removeMarkers'](),_0x2a0733=!0x0);}}for(const _0x3bf9cd of _0x31b2c2)_0x16aff4['remove'](_0x3bf9cd);for(const _0x596baf of _0x44af2a)_0x16aff4['unwrap'](_0x596baf);return _0x2a0733;}),_0x3519a9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4e9c92=>_0x487448(_0x4e9c92),'converterPriority':'high'}),_0x3519a9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x337af0,_0x2da542)=>_0x2da542['options']['showSuggestionHighlights']?_0x487448(_0x337af0,!0x1):null,'converterPriority':'high'});const _0x35c73e=_0x3519a9['editing']['view'];this['listenTo'](_0x35c73e['document'],'clipboardOutput',(_0x1eb2ef,_0x232651)=>{const _0x49e05b=[];for(const _0x67ec96 of _0x35c73e['createRangeIn'](_0x232651['content'])['getItems']())_0x67ec96['is']('element','suggestion-td')&&_0x49e05b['push'](_0x67ec96);_0x35c73e['change'](_0x167b87=>{for(const _0x5b5bd5 of _0x49e05b)_0x167b87['move'](_0x167b87['createRangeIn'](_0x5b5bd5),_0x167b87['createPositionBefore'](_0x5b5bd5)),_0x167b87['remove'](_0x5b5bd5);});});}}function je(_0x58d4b3){if(_0x58d4b3['isEmpty'])return!0x0;const _0x1963d3=_0x58d4b3['getChild'](0x0);return _0x1963d3['is']('element','paragraph')&&_0x1963d3['isEmpty'];}function Ae(_0x56fa29,_0x1c815a={},_0x38aeb3){for(const {isAnchor:_0x5314a6,cellHeight:_0x572459,cellWidth:_0x2c7b39}of _0x38aeb3['createTableWalker'](_0x56fa29,{'includeAllSlots':!0x0,..._0x1c815a}))if(!_0x5314a6||0x1!=_0x572459||0x1!=_0x2c7b39)return!0x1;return!0x0;}class Dt extends _0x38bc3e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4182a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x4182a4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4182a4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4182a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4182a4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4182a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4182a4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3f04ce,_0x4bf3c8){const _0x3a020a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ca545=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x24e165=_0x4bf3c8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3f6011=_0x1ca545['getColumnGroupElement'](_0x24e165);let _0x49369b=_0x3f6011?_0x1ca545['getTableColumnsWidths'](_0x3f6011):null,_0x2b7785=_0x24e165['getAttribute']('tableWidth')||null;const _0x28f65d=_0x4bf3c8['tableWidth']||_0x2b7785,_0x53d67a=_0x4bf3c8['columnWidths']||_0x49369b,_0x75cbd4=this['editor']['plugins']['get']('Users')['me'];for(const _0x15df32 of _0x3a020a['getSuggestions']()){const _0x255466=_0x15df32['getContainedElement']();if('resizeTable'===_0x15df32['subType']&&_0x255466===_0x24e165){_0x15df32['author']!==_0x75cbd4&&_0x15df32['discard']();const _0x2f4200=_0x15df32['data']['commandParams'];_0x2b7785=_0x2f4200[0x0]['tableWidth'],_0x49369b=_0x2f4200[0x0]['columnWidths'];break;}}_0x3f04ce({'table':_0x24e165,'tableWidth':_0x28f65d,'columnWidths':_0x53d67a}),_0x3a020a['markBlockFormat'](_0x24e165,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2b7785,'columnWidths':_0x49369b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5a41d3){if('formatBlock'!=_0x5a41d3['type']&&'formatInline'!=_0x5a41d3['type'])return;const {data:_0x594a52}=_0x5a41d3;if(_0x594a52&&'resizeTable'===_0x594a52['formatGroupId']){const _0x5ef54b='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x5ef54b)};}}}class Mt extends _0x38bc3e{['afterInit'](){const _0x1e762f=this['editor'];_0x1e762f['plugins']['has']('Template')&&_0x1e762f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x38bc3e{['afterInit'](){const _0x143529=this['editor'];if(!_0x143529['commands']['get']('insertTableOfContents'))return;_0x143529['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x40487d=_0x143529['plugins']['get']('TrackChangesEditing'),_0x2fa7bc=_0x143529['locale'];_0x40487d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x16b964=>o(_0x2fa7bc,'ELEMENT_TABLE_OF_CONTENTS',_0x16b964));}}class Bt extends _0x38bc3e{['afterInit'](){const _0x53d72b=this['editor'];if(!_0x53d72b['plugins']['has']('Title'))return;const _0x19b9b7=_0x53d72b['plugins']['get']('TrackChangesEditing');_0x19b9b7['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x53d72b['locale'],'ELEMENT_TITLE')),_0x53d72b['model']['document']['registerPostFixer'](_0x4123c5=>{let _0x467e13=!0x1;const _0x53a17b=Array['from'](_0x53d72b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xa36007,data:_0xaea466}of _0x53a17b){const {group:_0x165b1c}=_0x19b9b7['_splitMarkerName'](_0xa36007);if('suggestion'!==_0x165b1c||!_0xaea466['newRange'])continue;const _0x49e1ac=_0xaea466['newRange'],_0x2540d9=_0x49e1ac['end']['nodeBefore'];if(!_0x2540d9||!_0x2540d9['is']('element','title-content'))continue;if(!_0x49e1ac['start']['isTouching'](_0x49e1ac['end']))continue;const _0x4817c6=_0x53d72b['model']['schema']['getNearestSelectionRange'](_0x49e1ac['end'],'forward');if(_0x4817c6&&_0x4817c6['isCollapsed']){const _0x374df5=_0x4123c5['createRange'](_0x49e1ac['start'],_0x4817c6['start']);_0x374df5['isEqual'](_0x49e1ac)||(_0x4123c5['updateMarker'](_0xa36007,{'range':_0x374df5}),_0x467e13=!0x0);}_0x467e13||(_0x4123c5['removeMarker'](_0xa36007),_0x467e13=!0x0);}return _0x467e13;});}}class Ot extends _0x38bc3e{['afterInit'](){const _0xa32639=this['editor'],_0x4ba603=_0xa32639['plugins']['get']('TrackChangesEditing');_0xa32639['plugins']['has']('UndoEditing')&&(_0x4ba603['enableCommand']('undo'),_0x4ba603['enableCommand']('redo'));}}class Rt extends _0x38bc3e{static get['requires'](){return[vt];}['afterInit'](){const _0x32c3b8=this['editor'];if(!_0x32c3b8['plugins']['has']('TableCaptionEditing'))return;_0x32c3b8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x38bc3e{['tableProperties'];['tableCellProperties'];constructor(_0x16f750){super(_0x16f750),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 _0x8e84ca=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x53f51d of this['tableProperties'])_0x8e84ca['enableCommand'](_0x53f51d,(_0x1b1385,_0x3de684)=>{const _0x12b469=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x53f51d,[_0x12b469],this['tableProperties'],'tableProperties',_0x1b1385,_0x3de684);});_0x8e84ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x8e84ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8e84ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4220f0,_0x14a7ac)=>this['handleDiscardAction'](this['tableProperties'],_0x4220f0,_0x14a7ac)),_0x8e84ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x287032 of this['tableCellProperties'])_0x8e84ca['enableCommand'](_0x287032,(_0x1b0ab3,_0x4c80a6)=>{const _0x22e1c3=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x287032,_0x22e1c3,this['tableCellProperties'],'tableCellProperties',_0x1b0ab3,_0x4c80a6);});_0x8e84ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x8e84ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x8e84ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x56ec73,_0x3d3b7b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x56ec73,_0x3d3b7b)),_0x8e84ca['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x8e84ca['descriptionFactory']['registerDescriptionCallback'](_0x15e992=>this['handleSuggestionDescription'](_0x15e992));}['_handlePropertyChange'](_0x4c1185,_0x52b3d8,_0x4207f6,_0x47120e,_0x7c3ba3,_0xc7903f){const _0x369f59=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc7903f['batch'],()=>{for(const _0x597a4b of _0x52b3d8){if(this['_getSuggestion'](_0x597a4b,_0x47120e))_0x7c3ba3(_0xc7903f);else{const _0x302bf5={};for(const _0x3e6cc4 of _0x4207f6){const _0x4c2b6c=_0x597a4b['getAttribute'](_0x3e6cc4);void 0x0!==_0x4c2b6c&&(_0x302bf5[_0x3e6cc4]=_0x4c2b6c);}_0x7c3ba3(_0xc7903f),_0x369f59['markBlockFormat'](_0x597a4b,{'commandParams':[_0x302bf5]},[],_0x47120e);}}});}['handleDiscardAction'](_0x4524d2,_0x58becb,_0x39d6aa){const _0x70a82b=_0x58becb[0x0]['start']['nodeAfter'],_0x21d4af=_0x39d6aa['commandParams'][0x0];this['editor']['model']['change'](_0xb6d619=>{for(const _0x5c522c of _0x4524d2)void 0x0!==_0x21d4af[_0x5c522c]?_0xb6d619['setAttribute'](_0x5c522c,_0x21d4af[_0x5c522c],_0x70a82b):_0xb6d619['removeAttribute'](_0x5c522c,_0x70a82b);});}['handleSuggestionDescription'](_0x325295){if(_0x325295['data'])switch(_0x325295['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'](_0x2ff4c7,_0x3022b){const _0x6fb0b8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x842d7a of _0x6fb0b8['getSuggestions']({'skipNotAttached':!0x0})){const _0x2ad833=_0x842d7a['getContainedElement']();if(_0x842d7a['subType']===_0x3022b&&_0x2ad833===_0x2ff4c7)return _0x842d7a;}return null;}}const m='$elementName';class p extends _0x38bc3e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x59245a,_0x7beb78,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a0f63){super(_0x5a0f63),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2c4be8,_0x140768,_0x3a921f,_0x4b961f)=>{this['_model']['change'](()=>{for(const _0xc3cb3a of[..._0x4b961f,..._0x3a921f])this['_model']['markers']['has'](_0xc3cb3a)&&_0x5a0f63['editing']['reconvertMarker'](_0xc3cb3a);});}),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']=_0x5a0f63['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(),_0x5a0f63['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5a0f63['config']['get']('trackChanges.trackFormatChanges'),_0x5a0f63['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5a0f63['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5a0f63,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1ebcdd=this['editor'],_0x480c7b=(_0x5e7bfd,_0x3d013a)=>{if('attribute'!=_0x5e7bfd)return'ck-suggestion-marker-'+_0x5e7bfd;const _0x53fb1b=_0x3d013a['split']('|')[0x0];return this['_isBlockAttribute'](_0x53fb1b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1ebcdd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xc3f863=>{const {id:_0x1e7dcd,authorId:_0x131600,type:_0x5a6ef8,subType:_0x4a4700}=this['_splitMarkerName'](_0xc3f863['markerName']),_0x2b50a1=['ck-suggestion-marker',_0x480c7b(_0x5a6ef8,_0x4a4700)];let _0x19802f=0xbb8;return this['activeMarkers']['includes'](_0xc3f863['markerName'])&&(_0x2b50a1['push']('ck-suggestion-marker--active'),_0x19802f=0xbc2),'deletion'==_0x5a6ef8&&(_0x19802f+=0x5),{'classes':_0x2b50a1,'attributes':{'data-suggestion':_0x1e7dcd,'data-author-id':_0x131600},'priority':_0x19802f};}}),_0x1ebcdd['conversion']['for']('dataDowncast')['add'](_0x176a05=>{_0x176a05['on']('addMarker:suggestion',(_0x4b3bf9,_0x510019,_0x525071)=>{if(!_0x525071['options']['showSuggestionHighlights'])return;const _0x365340=_0x510019['item'];if(!_0x365340)return;const _0x46507a=_0x525071['mapper']['toViewElement'](_0x365340);_0x1ebcdd['model']['schema']['isObject'](_0x365340)&&_0x46507a&&!_0x46507a['getCustomProperty']('widget')&&_0x46507a['is']('containerElement')&&_0x3cff86(_0x46507a,_0x525071['writer']);},{'priority':'high'});}),_0x1ebcdd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x783cb6,_0x30f94)=>{if(!_0x30f94['options']['showSuggestionHighlights'])return null;const {type:_0x44f42c,subType:_0xad10c9}=this['_splitMarkerName'](_0x783cb6['markerName']);return{'classes':['ck-suggestion-marker',_0x480c7b(_0x44f42c,_0xad10c9)],'priority':0xbb8};}});const _0x5f3f41=({showActiveMarkers:_0x3c2c10=!0x0,isAttributeSuggestion:_0x53899e=!0x1}={})=>(_0xc1387a,_0x5f01d4,_0x5d2eaf)=>{if(!_0x5f01d4['item'])return;const {id:_0x4714aa,authorId:_0x27c692}=this['_splitMarkerName'](_0x5f01d4['markerName']);if(_0x53899e){const _0x4e86c4=this['_suggestions']['get'](_0x4714aa),_0x41c7c2=this['_getAttributeKey'](_0x4e86c4);if(!this['_isBlockAttribute'](_0x41c7c2))return;}if(_0x5f01d4['item']['is']('selection'))return void _0x5d2eaf['consumable']['consume'](_0x5f01d4['item'],_0xc1387a['name']);const _0xe56acb=_0x5d2eaf['mapper']['toViewElement'](_0x5f01d4['item']);if(_0x5f01d4['item']['is']('element')&&_0x1ebcdd['model']['schema']['isBlock'](_0x5f01d4['item'])&&!_0xe56acb['getCustomProperty']('addHighlight')){_0x5d2eaf['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xe56acb),_0x5d2eaf['writer']['setAttribute']('data-suggestion',_0x4714aa,_0xe56acb),_0x5d2eaf['writer']['setAttribute']('data-author-id',_0x27c692,_0xe56acb),_0x5d2eaf['mapper']['bindElementToMarker'](_0xe56acb,_0x5f01d4['markerName']),_0x3c2c10&&(this['activeMarkers']['includes'](_0x5f01d4['markerName'])?_0x5d2eaf['writer']['addClass']('ck-suggestion-marker--active',_0xe56acb):_0x5d2eaf['writer']['removeClass']('ck-suggestion-marker--active',_0xe56acb));for(const _0x476d67 of _0x1ebcdd['model']['createRangeIn'](_0x5f01d4['item'])['getItems']())_0x5d2eaf['consumable']['consume'](_0x476d67,_0xc1387a['name']);_0x5d2eaf['consumable']['consume'](_0x5f01d4['item'],_0xc1387a['name']);}};_0x1ebcdd['conversion']['for']('dataDowncast')['add'](_0x366cf9=>{_0x366cf9['on']('addMarker:suggestion:formatBlock',(_0x25e743,_0x9f5c4e,_0x5d9ed1)=>{_0x5d9ed1['options']['showSuggestionHighlights']&&_0x5f3f41({'showActiveMarkers':!0x1})(_0x25e743,_0x9f5c4e,_0x5d9ed1);},{'priority':'highest'});}),_0x1ebcdd['conversion']['for']('dataDowncast')['add'](_0x495eda=>{_0x495eda['on']('addMarker:suggestion:attribute',(_0x1de508,_0x42e7f5,_0x1e47c2)=>{_0x1e47c2['options']['showSuggestionHighlights']&&_0x5f3f41({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1de508,_0x42e7f5,_0x1e47c2);},{'priority':'highest'});}),_0x1ebcdd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1b8cc0,_0x170651)=>_0x170651['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1b8cc0['substr'](0xb)}}),_0x1ebcdd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x48e125,{writer:_0x5f4dd0})=>{let _0x173365='suggestion:'+_0x48e125['getAttribute']('suggestion-type')+':'+_0x48e125['getAttribute']('id');return _0x48e125['getAttribute']('marker-count')&&(_0x173365+=':'+_0x48e125['getAttribute']('marker-count')),_0x5f4dd0['createElement']('$marker',{'data-name':_0x173365});}}),_0x1ebcdd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1ebcdd['conversion']['for']('editingDowncast')['add'](_0x853e5e=>{_0x853e5e['on']('addMarker:suggestion:formatBlock',_0x5f3f41(),{'priority':'high'});}),_0x1ebcdd['conversion']['for']('editingDowncast')['add'](_0x59cf8b=>{_0x59cf8b['on']('addMarker:suggestion:attribute',_0x5f3f41({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1ebcdd['conversion']['for']('editingDowncast')['add'](_0x136fba=>{_0x136fba['on']('removeMarker:suggestion:formatBlock',(_0x3a1310,_0x3fb7a2,_0x42c4d2)=>{const _0x203b22=_0x42c4d2['mapper']['markerNameToElements'](_0x3fb7a2['markerName']);if(_0x203b22){for(const _0x1568ca of _0x203b22)_0x1568ca['getCustomProperty']('addHighlight')||(_0x42c4d2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1568ca),_0x42c4d2['writer']['removeAttribute']('data-suggestion',_0x1568ca),_0x42c4d2['writer']['removeAttribute']('data-author-id',_0x1568ca),_0x42c4d2['mapper']['unbindElementFromMarkerName'](_0x1568ca,_0x3fb7a2['markerName']));}},{'priority':'high'});}),_0x1ebcdd['conversion']['for']('editingDowncast')['add'](_0x3969e2=>{_0x3969e2['on']('removeMarker:suggestion:attribute',(_0x595d5d,_0x4cc395,_0x1f9b76)=>{const _0x14903d=_0x1f9b76['mapper']['markerNameToElements'](_0x4cc395['markerName']);if(!_0x14903d)return;const {id:_0x598c5b}=this['_splitMarkerName'](_0x4cc395['markerName']),_0x449802=this['_suggestions']['get'](_0x598c5b),_0x1cfa33=this['_getAttributeKey'](_0x449802);if(this['_isBlockAttribute'](_0x1cfa33)){for(const _0x1c5401 of _0x14903d)_0x1c5401['getCustomProperty']('addHighlight')||(_0x1f9b76['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1c5401),_0x1f9b76['writer']['removeAttribute']('data-suggestion',_0x1c5401),_0x1f9b76['writer']['removeAttribute']('data-author-id',_0x1c5401),_0x1f9b76['mapper']['unbindElementFromMarkerName'](_0x1c5401,_0x4cc395['markerName']));}},{'priority':'high'});}),_0x1ebcdd['model']['document']['registerPostFixer'](_0x4fcf47=>{let _0x19d8e8=!0x1;const _0x5f3396=Array['from'](_0x1ebcdd['model']['document']['differ']['getChangedMarkers']()),_0x123295=new Set();for(const {name:_0x3661a7,data:_0x53293a}of _0x5f3396){const {group:_0x3e21de,type:_0x172d58,subType:_0x16e008,id:_0x521e07}=this['_splitMarkerName'](_0x3661a7);if('suggestion'!==_0x3e21de)continue;const _0x2d9e67=this['_suggestions']['get'](_0x521e07);if(null!=_0x53293a['newRange']){'formatInline'==_0x172d58&&(_0x19d8e8=_0x19d8e8||Pt(_0x53293a['newRange'],_0x3661a7,_0x4fcf47,_0x1ebcdd['model']['schema']));const _0xe5e5ed='attribute'==_0x172d58&&this['_isBlockAttribute'](_0x16e008['split']('|')[0x0]);if(_0x53293a['newRange']['isCollapsed']||'$graveyard'==_0x53293a['newRange']['root']['rootName']||'formatBlock'==_0x172d58&&!Ft(_0x53293a['newRange'])||_0xe5e5ed&&!Ft(_0x53293a['newRange'])||'deletion'==_0x172d58&&!(!Vt(_0x5a8e7b=_0x53293a['newRange'])&&!function(_0x3ebeed){return _0x3ebeed['start']['parent']==_0x3ebeed['end']['nodeBefore']&&_0x3ebeed['start']['isAtEnd'];}(_0x5a8e7b)))_0x4fcf47['removeMarker'](_0x3661a7),_0x19d8e8=!0x0;else{if(!_0x2d9e67||!_0x2d9e67['isInContent'])continue;if(_0x53293a['newRange']&&_0x53293a['oldRange']&&_0x53293a['newRange']['isEqual'](_0x53293a['oldRange']))continue;_0x123295['add'](_0x2d9e67);}}}var _0x5a8e7b;return _0x123295['size']>0x0&&(_0x19d8e8=!!this['_joinWithAdjacentSuggestions'](_0x123295)||_0x19d8e8),_0x19d8e8;}),_0x1ebcdd['model']['document']['registerPostFixer'](_0x148311=>{let _0x27d2c0=!0x1;for(const _0x167d09 of _0x1ebcdd['model']['document']['differ']['getChanges']())if('insert'==_0x167d09['type'])for(const _0x38663b of this['_suggestions']['values']()){if(_0x38663b['isMultiRange']||!_0x38663b['isInContent'])continue;const _0x4c6da5='formatBlock'==_0x38663b['type'],_0x4dee87=this['_getAttributeKey'](_0x38663b),_0x26d71f=_0x4dee87&&this['_isBlockAttribute'](_0x4dee87);if(!_0x4c6da5&&!_0x26d71f)continue;const _0x523382=_0x38663b['getFirstRange']();if(_0x523382['start']['parent']!=_0x523382['end']['parent']&&!_0x523382['end']['isAtEnd']){const _0x417b28=_0x1ebcdd['model']['createPositionAt'](_0x523382['start']['nodeAfter'],'end'),_0x117c9d=_0x1ebcdd['model']['createRange'](_0x523382['start'],_0x417b28);_0x148311['updateMarker'](_0x38663b['getFirstMarker'](),{'range':_0x117c9d}),_0x27d2c0=!0x0;}}return _0x27d2c0;}),_0x1ebcdd['model']['document']['registerPostFixer'](_0xef7fc4=>this['_processAttributeChanges'](_0xef7fc4)),_0x1ebcdd['model']['document']['registerPostFixer'](_0x3e5059=>!_0x3e5059['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3e5059)),_0x1ebcdd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1ebcdd['model']['document']['on']('change:data',(_0x4ea799,_0x4e26bb)=>{if(!_0x4e26bb['isLocal']||_0x4e26bb['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x412ad1=_0x1ebcdd['model']['document']['differ']['getChanges']();if(0x0==_0x412ad1['length'])return;const _0x311761=[],_0x4d8a71=_0x412ad1['filter'](_0x90cb56=>'attribute'==_0x90cb56['type']),_0x3e4cc5=_0x412ad1['filter'](_0x3826bd=>'insert'==_0x3826bd['type']&&'$text'!=_0x3826bd['name']);for(const _0x6bd075 of _0x4d8a71)this['_isRegisteredAttribute'](_0x6bd075['attributeKey'])&&_0x311761['push']({'key':_0x6bd075['attributeKey'],'newValue':_0x6bd075['attributeNewValue'],'oldValue':_0x6bd075['attributeOldValue'],'range':Lt(_0x6bd075['range'],_0x1ebcdd['model'])});for(const _0x5dfe74 of _0x3e4cc5){if('rename'!=_0x5dfe74['action']&&'refresh'!=_0x5dfe74['action'])continue;const _0xbbe68b=Jt(_0x5dfe74['position']['nodeAfter'],_0x1ebcdd['model']),_0x2e3ef7=_0x5dfe74['before'];'rename'==_0x5dfe74['action']&&_0x311761['push']({'key':m,'newValue':_0x5dfe74['name'],'oldValue':_0x2e3ef7['name'],'range':_0xbbe68b});for(const [_0x532fa6,_0x4cbcc8]of _0x2e3ef7['attributes']){if(!this['_isRegisteredAttribute'](_0x532fa6))continue;const _0x5b9eb7=_0x5dfe74['attributes']['get'](_0x532fa6);_0x4cbcc8!==_0x5b9eb7&&_0x311761['push']({'key':_0x532fa6,'newValue':_0x5b9eb7,'oldValue':_0x4cbcc8,'range':_0xbbe68b});}for(const [_0x20deac,_0x5d9bab]of _0x5dfe74['attributes'])this['_isRegisteredAttribute'](_0x20deac)&&(_0x2e3ef7['attributes']['has'](_0x20deac)||_0x311761['push']({'key':_0x20deac,'newValue':_0x5d9bab,'oldValue':null,'range':_0xbbe68b}));}0x0!=_0x311761['length']&&_0x1ebcdd['model']['enqueueChange'](_0x4e26bb,_0x300ba2=>{const _0x36c6f0=_0x62ed8e();for(const {range:_0x1a5db4,key:_0x1e79cc,oldValue:_0x5f31e3,newValue:_0x12b77a}of _0x311761)this['markAttributeChange'](_0x1a5db4,_0x1e79cc,_0x5f31e3,_0x12b77a,{'groupId':_0x36c6f0});this['_reduceExistingSuggestions'](_0x300ba2,_0x311761);});},{'priority':'lowest'}),_0x1ebcdd['model']['markers']['on']('update:suggestion',(_0x4ac911,_0x249056,_0x164aa5)=>{if(null==_0x164aa5){const {id:_0x5bf5cb}=this['_splitMarkerName'](_0x249056['name']),_0x506a2e=this['_suggestions']['get'](_0x5bf5cb);_0x506a2e&&_0x506a2e['addMarkerName'](_0x249056['name']);}}),_0x1ebcdd['model']['document']['on']('change:data',()=>{const _0x178fd3=Array['from'](_0x1ebcdd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x576af3=>'suggestion'===this['_splitMarkerName'](_0x576af3['name'])['group']);if(0x0===_0x178fd3['length'])return;_0x178fd3['sort']((_0x125310,_0x3eab5d)=>{const _0xe43ad=_0x125310['data']['oldRange'],_0x23f5d3=_0x3eab5d['data']['oldRange'];return null===_0xe43ad&&null===_0x23f5d3?0x0:null===_0xe43ad&&null!==_0x23f5d3?-0x1:null!==_0xe43ad&&null===_0x23f5d3?0x1:_0xe43ad['start']['isBefore'](_0x23f5d3['start'])?-0x1:0x1;});const _0x2491ab=new Set(),_0x1321ef=new Set();for(const {name:_0xb8af90,data:_0x3d3b3b}of _0x178fd3){const {id:_0x5ef39b}=this['_splitMarkerName'](_0xb8af90);if(null===_0x3d3b3b['oldRange']){const _0x284f16=this['_handleNewSuggestionMarker'](_0xb8af90);_0x1321ef['add'](_0x284f16);}else{const _0x167336=this['_suggestions']['get'](_0x5ef39b);null!==_0x3d3b3b['newRange']||_0x167336['isInContent']?(_0x2491ab['add'](_0x167336['head']),_0x1321ef['add'](_0x167336)):this['_removeSuggestion'](_0x167336);}}_0x1321ef['size']>0x0&&this['_refreshSuggestionsChain'](_0x1321ef);for(const _0x579a3c of _0x2491ab)this['fire']('suggestionChanged',_0x579a3c);}),_0x1ebcdd['model']['on']('applyOperation',(_0x4c67fd,_0x2df9fb)=>{const _0x1c109e=_0x2df9fb[0x0];if(!this['_suggestions']['size'])return;if(!_0x1c109e['isDocumentOperation'])return;if(_0x1c109e['batch']['isUndo']||!_0x1c109e['batch']['isLocal'])return;let _0x5715ab,_0x36a065;switch(_0x1c109e['type']){case'insert':_0x5715ab=_0x1ebcdd['model']['createPositionAt'](_0x1c109e['position']),_0x36a065=_0x5715ab['getShiftedBy'](_0x1c109e['howMany']);break;case'split':_0x5715ab=_0x1ebcdd['model']['createPositionAt'](_0x1c109e['splitPosition']),_0x36a065=_0x1ebcdd['model']['createPositionAt'](_0x1c109e['moveTargetPosition']);break;case'move':_0x5715ab=_0x1ebcdd['model']['createPositionAt'](_0x1c109e['targetPosition']),_0x36a065=_0x5715ab['getShiftedBy'](_0x1c109e['howMany']);break;default:return;}const _0x473971=_0x1ebcdd['model']['createRange'](_0x5715ab,_0x36a065);_0x1ebcdd['model']['change'](()=>{for(const {suggestion:_0x32e92e,meta:_0x5d69f4}of this['_findSuggestions'](_0x473971)){if(_0x32e92e['isMultiRange'])continue;if('formatInline'==_0x32e92e['type'])continue;const _0x596c8f=this['_getAttributeKey'](_0x32e92e);if(_0x596c8f&&this['_isBlockAttribute'](_0x596c8f)&&'split'!=_0x1c109e['type'])continue;const _0x37e925=_0x32e92e['data']&&_0x32e92e['data']['multipleBlocks'];('formatBlock'!=_0x32e92e['type']||'split'==_0x1c109e['type']&&!_0x37e925)&&(_0x5d69f4['containsRangeInObject']||'insertion'==_0x32e92e['type']&&_0x5d69f4['isOwn']||_0x32e92e['getFirstRange']()['containsRange'](_0x473971)&&this['_breakSuggestionMarker'](_0x32e92e,_0x5715ab,_0x36a065));}});},{'priority':'lowest'}),_0x1ebcdd['model']['on']('deleteContent',(_0x699e44,_0xf2c224)=>{const _0x4977a9=_0xf2c224[0x0],_0x28f989=_0xf2c224[0x1];if(_0x28f989&&_0x28f989['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4977a9['isCollapsed'])return;const _0x53c0f8=_0x1ebcdd['model']['schema'],{start:_0x5c9723,end:_0xdf70bf}=_0x4977a9['getFirstRange'](),_0x1003ec=_0x5c9723['nodeAfter']&&_0x53c0f8['isLimit'](_0x5c9723['nodeAfter'])?null:_0x53c0f8['getNearestSelectionRange'](_0x5c9723,'forward'),_0x55071d=_0xdf70bf['nodeBefore']&&_0x53c0f8['isLimit'](_0xdf70bf['nodeBefore'])?null:_0x53c0f8['getNearestSelectionRange'](_0xdf70bf,'backward'),_0x4a1cc1=_0x1ebcdd['model']['createRange'](_0x1003ec?_0x1003ec['start']:_0x5c9723,_0x55071d?_0x55071d['end']:_0xdf70bf);_0x1ebcdd['model']['change'](_0x4acd8f=>{this['markDeletion'](_0x4a1cc1);const _0x855ef6=_0x1ebcdd['model']['schema']['getNearestSelectionRange'](_0x4a1cc1['start']);_0x4977a9['is']('documentSelection')?_0x4acd8f['setSelection'](_0x855ef6):_0x4977a9['setTo'](_0x855ef6);}),_0x699e44['stop']();},{'priority':_0x2abc47['normal']+0xa}),_0x1ebcdd['model']['on']('insertContent',(_0x519fe7,_0x1411ec)=>{const _0x18ec54=_0x1411ec[_0x1411ec['length']-0x1];_0x18ec54&&_0x18ec54['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1ebcdd['model']['change'](()=>{let _0x55c4f9=_0x1ebcdd['model']['insertContent'](_0x1411ec[0x0],_0x1411ec[0x1],_0x1411ec[0x2],{'forceDefaultExecution':!0x0});if(!_0x55c4f9)return;_0x519fe7['return']=_0x55c4f9['clone']();const _0x4ae956=_0x55c4f9['end']['nodeBefore'],_0x27aa57=_0x1ebcdd['model']['schema'];_0x4ae956&&_0x27aa57['isBlock'](_0x4ae956)&&!_0x27aa57['isObject'](_0x4ae956)&&(_0x55c4f9=_0x1ebcdd['model']['createRange'](_0x55c4f9['start'],_0x1ebcdd['model']['createPositionAt'](_0x4ae956,'end'))),this['markInsertion'](_0x55c4f9);}),_0x519fe7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5a7b2d=new O(_0x1ebcdd,this['_suggestions']);_0x1ebcdd['commands']['add']('acceptSuggestion',_0x5a7b2d),this['enableCommand']('acceptSuggestion');const _0x31a2f3=new R(_0x1ebcdd,this['_suggestions']);_0x1ebcdd['commands']['add']('discardSuggestion',_0x31a2f3),this['enableCommand']('discardSuggestion'),_0x1ebcdd['commands']['add']('acceptAllSuggestions',new x(_0x1ebcdd,_0x5a7b2d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1ebcdd['commands']['add']('discardAllSuggestions',new x(_0x1ebcdd,_0x31a2f3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1ebcdd['commands']['add']('acceptSelectedSuggestions',new E(_0x1ebcdd,_0x5a7b2d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1ebcdd['commands']['add']('discardSelectedSuggestions',new E(_0x1ebcdd,_0x31a2f3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x383bfa=_0x1ebcdd['plugins']['get']('CommentsRepository');this['listenTo'](_0x383bfa,'addComment',(_0x37551a,{threadId:_0x322dcc})=>{const _0x405375=this['_suggestions']['get'](_0x322dcc);_0x405375&&_0x405375['commentThread']&&0x1===_0x405375['commentThread']['length']&&this['_updateSuggestionData'](_0x322dcc,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x383bfa,'removeComment',(_0x16f0e2,{threadId:_0x2b74b6})=>{const _0x2987d6=this['_suggestions']['get'](_0x2b74b6);_0x2987d6&&_0x2987d6['commentThread']&&!_0x2987d6['commentThread']['length']&&this['_updateSuggestionData'](_0x2b74b6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x15778d){const _0x41fece=_0x4c73c7([0x55,0x47,0x44,0x78,0x59,0x56,0x33,0x4f,0x6b,0x38,0x77,0x6c,0x46,0x7a,0x69,0x4c,0x54,0x68,0x65,0x73,0x71,0x76,0x41,0x4d,0x4e,0x5a,0x72,0x34,0x66,0x4b,0x6d,0x36,0x6a,0x61,0x58,0x67,0x52,0x48,0x37,0x70,0x74,0x57,0x35,0x42,0x63,0x31,0x4a,0x79,0x50,0x6f,0x32,0x49,0x30,0x64,0x75,0x62,0x39,0x6e,0x43,0x53,0x51,0x45]),_0x518fad=0x596b00b2,_0x5b1a9d=0x596c58f2^_0x518fad,_0x41acf3=window[_0x4c73c7([0x44,0x61,0x74,0x65])][_0x4c73c7([0x6e,0x6f,0x77])](),_0x594282=_0x15778d[_0x4c73c7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x342e54=new window[(_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x532270=>{_0x594282[_0x4c73c7([0x6f,0x6e,0x63,0x65])](_0x4c73c7([0x72,0x65,0x61,0x64,0x79]),_0x532270);}),_0x31e5fb={[_0x4c73c7([0x6b,0x74,0x79])]:_0x4c73c7([0x45,0x43]),[_0x4c73c7([0x75,0x73,0x65])]:_0x4c73c7([0x73,0x69,0x67]),[_0x4c73c7([0x63,0x72,0x76])]:_0x4c73c7([0x50,0x2d,0x32,0x35,0x36]),[_0x4c73c7([0x78])]:_0x4c73c7([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4c73c7([0x79])]:_0x4c73c7([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4c73c7([0x61,0x6c,0x67])]:_0x4c73c7([0x45,0x53,0x32,0x35,0x36])},_0x15c423=_0x594282[_0x4c73c7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4c73c7([0x67,0x65,0x74])](_0x4c73c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48d421(){let _0x435939,_0x533aa4=null,_0x4f987f=null;try{if(_0x15c423==_0x4c73c7([0x47,0x50,0x4c]))return _0x4c73c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x435939=_0x5eba9d(),!_0x435939)return _0x4c73c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x435939[_0x4c73c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4f987f=_0x273280(_0x435939[_0x4c73c7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x435939[_0x4c73c7([0x6a,0x74,0x69])])),await _0x5452ac()?_0x18c347()?_0x31ba7b()?_0x4c73c7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x57afb1()?(_0x435939[_0x4c73c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c73c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x533aa4=_0x46bc5d(_0x4c73c7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x435939[_0x4c73c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c73c7([0x74,0x72,0x69,0x61,0x6c])&&(_0x533aa4=_0x46bc5d(_0x4c73c7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x435939[_0x4c73c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4c73c7([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x533aa4=_0x46bc5d(_0x4c73c7([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3fdf89()):_0x4c73c7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4c73c7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4c73c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x38a9aa){return _0x4c73c7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x31ba7b(){const _0x45f790=[_0x4c73c7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4c73c7([0x74,0x72,0x69,0x61,0x6c])][_0x4c73c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x435939[_0x4c73c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x41acf3/0x3e8:0xe10*_0x5b1a9d;return _0x435939[_0x4c73c7([0x65,0x78,0x70])]<_0x45f790;}function _0x18c347(){const _0x1414c8=_0x435939[_0x4c73c7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1414c8)return!0x1;if(_0x1414c8[_0x4c73c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c73c7([0x2a])))return!0x0;if(_0x1414c8[_0x4c73c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c73c7([0x54,0x43])))return!0x0;if(_0x1414c8[_0x4c73c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c73c7([0x52,0x54,0x43]))){if(_0x3353f7())return!0x0;if(_0x5c0af0()||_0x1a7da0())return!0x0;}return!0x1;}function _0x57afb1(){const _0x54c591=_0x435939[_0x4c73c7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54c591||0x0==_0x54c591[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x44ed5d}=new URL(window[_0x4c73c7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x54c591[_0x4c73c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44ed5d))return!0x0;const _0x277e16=_0x44ed5d[_0x4c73c7([0x73,0x70,0x6c,0x69,0x74])](_0x4c73c7([0x2e]));return _0x54c591[_0x4c73c7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23ed90=>_0x23ed90[_0x4c73c7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c73c7([0x2a])))[_0x4c73c7([0x6d,0x61,0x70])](_0x3e29e9=>_0x3e29e9[_0x4c73c7([0x73,0x70,0x6c,0x69,0x74])](_0x4c73c7([0x2e])))[_0x4c73c7([0x73,0x6f,0x6d,0x65])](_0x20de75=>_0x277e16[_0x4c73c7([0x65,0x76,0x65,0x72,0x79])]((_0xb47e8b,_0x577662)=>_0x20de75[_0x577662]===_0xb47e8b||_0x20de75[_0x577662]===_0x4c73c7([0x2a])));}function _0x3fdf89(){return _0x533aa4&&_0x4f987f?new window[(_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ceb77,_0x47c486)=>{_0x533aa4[_0x4c73c7([0x74,0x68,0x65,0x6e])](_0x2ceb77,_0x47c486),_0x4f987f[_0x4c73c7([0x74,0x68,0x65,0x6e])](_0x1ece29=>{_0x1ece29!=_0x4c73c7([0x56,0x61,0x6c,0x69,0x64])&&_0x2ceb77(_0x1ece29);},_0x47c486);}):_0x533aa4||_0x4f987f||_0x4c73c7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x273280(_0x127cee,_0x101610){return new window[(_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11c781=>{if(_0x3cd87a())return _0x11c781(_0x4c73c7([0x56,0x61,0x6c,0x69,0x64]));_0x29b2b9(),_0x594282[_0x4c73c7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4c73c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27fae2=!0x1;const _0x84835e=_0x62ed8e();function _0x111c21(_0x541d01){return!!_0x541d01&&(typeof _0x541d01===_0x4c73c7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x541d01===_0x4c73c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x541d01[_0x4c73c7([0x74,0x68,0x65,0x6e])]===_0x4c73c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x541d01[_0x4c73c7([0x63,0x61,0x74,0x63,0x68])]===_0x4c73c7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x303787(_0x4aab27){_0x127925(_0x4aab27)[_0x4c73c7([0x74,0x68,0x65,0x6e])](_0x546966=>{if(!_0x546966||_0x546966[_0x4c73c7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4c73c7([0x6f,0x6b]))return _0x4c73c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x169fd4(_0x4b21f5(_0x84835e+_0x101610))!=_0x546966[_0x4c73c7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4c73c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4c73c7([0x56,0x61,0x6c,0x69,0x64]);})[_0x4c73c7([0x74,0x68,0x65,0x6e])](_0x5c06a3=>(_0x5c30e7(),_0x5c06a3),()=>{const _0x5bd9a3=_0x51c927();return null==_0x5bd9a3?(_0x5c30e7(),_0x4c73c7([0x56,0x61,0x6c,0x69,0x64])):_0x4c73c7(_0x41acf3-_0x5bd9a3>(0x7d6784b2^_0x518fad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4c73c7([0x74,0x68,0x65,0x6e])](_0x11c781)[_0x4c73c7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x11c781(_0x4c73c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2dbb4a=0x595dee32^_0x518fad;function _0x5c30e7(){const _0x290c8b=_0x4c73c7([0x6c,0x6c,0x63,0x74,0x2d])+_0x169fd4(_0x4b21f5(_0x127cee)),_0x4888b5=_0xfb4de5(_0x169fd4(window[_0x4c73c7([0x4d,0x61,0x74,0x68])][_0x4c73c7([0x63,0x65,0x69,0x6c])](_0x41acf3/_0x2dbb4a)));window[_0x4c73c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c73c7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x290c8b,_0x4888b5);}function _0x51c927(){const _0x24f9f4=_0x4c73c7([0x6c,0x6c,0x63,0x74,0x2d])+_0x169fd4(_0x4b21f5(_0x127cee)),_0x3e2277=window[_0x4c73c7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4c73c7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x24f9f4);return _0x3e2277?window[_0x4c73c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xfb4de5(_0x3e2277),0x10)*_0x2dbb4a:null;}function _0x127925(_0x49a187){return new window[(_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x337e27,_0x1d4e32)=>{_0x49a187[_0x4c73c7([0x74,0x68,0x65,0x6e])](_0x337e27,_0x1d4e32),window[_0x4c73c7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1d4e32,0x596ad472^_0x518fad);});}}_0x594282[_0x4c73c7([0x6f,0x6e])](_0x4c73c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40750a,_0x54a691)=>{if(_0x54a691[0x0]!=_0x127cee)return _0x11c781(_0x4c73c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x54a691[0x1]={..._0x54a691[0x1],[_0x4c73c7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x84835e};},{[_0x4c73c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c73c7([0x68,0x69,0x67,0x68])}),_0x594282[_0x4c73c7([0x6f,0x6e])](_0x4c73c7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cd6ad=>{_0x111c21(_0x5cd6ad[_0x4c73c7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27fae2=!0x0,_0x303787(_0x5cd6ad[_0x4c73c7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4c73c7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4c73c7([0x6c,0x6f,0x77])}),_0x342e54[_0x4c73c7([0x74,0x68,0x65,0x6e])](()=>{_0x27fae2||_0x11c781(_0x4c73c7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3cd87a(){return _0x594282[_0x4c73c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c73c7([0x76,0x69,0x65,0x77])][_0x4c73c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4c73c7([0x61,0x75,0x74,0x6f]);}function _0x29b2b9(){_0x594282[_0x4c73c7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c73c7([0x76,0x69,0x65,0x77])][_0x4c73c7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c73c7([0x61,0x75,0x74,0x6f]);}}function _0x46bc5d(_0xee3912){const _0x805634=[new window[(_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c603d=>setTimeout(_0x2c603d,0x59623e7e^_0x518fad)),_0x342e54[_0x4c73c7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39fb51=>{let _0x37bee8=0x0;_0x594282[_0x4c73c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c73c7([0x6f,0x6e])](_0x4c73c7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x816d2b,_0x2ab701)=>{_0x2ab701[0x0][_0x4c73c7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37bee8++,_0x37bee8==(0x596b014a^_0x518fad)&&(_0x39fb51(),_0x816d2b[_0x4c73c7([0x6f,0x66,0x66])]());});}))];return window[_0x4c73c7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c73c7([0x72,0x61,0x63,0x65])](_0x805634)[_0x4c73c7([0x74,0x68,0x65,0x6e])](()=>_0xee3912);}async function _0x5a24c5(){await _0x342e54,_0x594282[_0x4c73c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c73c7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b79a6,_0x594282[_0x4c73c7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4c73c7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b79a6,_0x594282[_0x4c73c7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4c73c7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3353f7(){return _0x96c3e(_0x4c73c7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x21fc65(_0x4c73c7([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4c73c7([0x73,0x74,0x61,0x74,0x65])]==_0x4c73c7([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5c0af0(){return _0x96c3e(_0x4c73c7([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1a7da0(){return _0x96c3e(_0x4c73c7([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xb4c42(_0x31bd38){const _0x422d44=_0x1f9b87();_0x594282[_0x422d44]=_0x4c73c7([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x31bd38,_0x31bd38!=_0x4c73c7([0x56,0x61,0x6c,0x69,0x64])&&_0x5a24c5();}function _0x1f9b87(){const _0x28fda4=window[_0x4c73c7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4c73c7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4c73c7([0x6e,0x6f,0x77])]())[_0x4c73c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4c73c7([0x2e]),'');let _0x5e2420=_0x4c73c7([0x55]);for(let _0x3419ac=0x0;_0x3419ac<_0x28fda4[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3419ac+=0x2){let _0x3c47a4=window[_0x4c73c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28fda4[_0x4c73c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3419ac,_0x3419ac+0x2));_0x3c47a4>=_0x41fece[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c47a4-=_0x41fece[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5e2420+=_0x41fece[_0x3c47a4];}return _0x5e2420;}function _0x5eba9d(){const _0x2456ee=_0x15c423[_0x4c73c7([0x73,0x70,0x6c,0x69,0x74])](_0x4c73c7([0x2e]));if(0x3!=_0x2456ee[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4703f3(_0x2456ee[0x1]);function _0x4703f3(_0x1f6c03){const _0x54d091=_0x616bbe(_0x1f6c03);return _0x54d091&&_0x1b7839()?_0x54d091:null;function _0x1b7839(){const _0x42beda=_0x54d091[_0x4c73c7([0x6a,0x74,0x69])],_0x138f2c=window[_0x4c73c7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42beda[_0x4c73c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42beda[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb28afa={..._0x54d091,[_0x4c73c7([0x6a,0x74,0x69])]:_0x42beda[_0x4c73c7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42beda[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb28afa[_0x4c73c7([0x76,0x63])],_0x4b21f5(_0xb28afa)==_0x138f2c;}}}async function _0x5452ac(){let _0x1241d3=!0x0;try{const _0x547e84=_0x15c423[_0x4c73c7([0x73,0x70,0x6c,0x69,0x74])](_0x4c73c7([0x2e])),[_0x1a7626,_0x38d32b,_0x38e813]=_0x547e84;return _0x193df0(_0x1a7626),await _0x5a8b5c(_0x1a7626,_0x38d32b,_0x38e813),_0x1241d3;}catch(_0x1f5671){return!0x1;}function _0x193df0(_0x3455b0){const _0xa488b1=_0x616bbe(_0x3455b0);_0xa488b1&&_0xa488b1[_0x4c73c7([0x61,0x6c,0x67])]==_0x4c73c7([0x45,0x53,0x32,0x35,0x36])||(_0x1241d3=!0x1);}async function _0x5a8b5c(_0xeb1579,_0x4201f6,_0x30083f){const _0x37b92c=window[_0x4c73c7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4c73c7([0x66,0x72,0x6f,0x6d])](_0x20744e(_0x30083f),_0x1fa68a=>_0x1fa68a[_0x4c73c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x221746=new window[(_0x4c73c7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4c73c7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xeb1579+_0x4c73c7([0x2e])+_0x4201f6),_0x1c2ec7=window[_0x4c73c7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4c73c7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c2ec7)return;const _0x1bf51f=await _0x1c2ec7[_0x4c73c7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4c73c7([0x6a,0x77,0x6b]),_0x31e5fb,{[_0x4c73c7([0x6e,0x61,0x6d,0x65])]:_0x4c73c7([0x45,0x43,0x44,0x53,0x41]),[_0x4c73c7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4c73c7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4c73c7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c2ec7[_0x4c73c7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4c73c7([0x6e,0x61,0x6d,0x65])]:_0x4c73c7([0x45,0x43,0x44,0x53,0x41]),[_0x4c73c7([0x68,0x61,0x73,0x68])]:{[_0x4c73c7([0x6e,0x61,0x6d,0x65])]:_0x4c73c7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1bf51f,_0x37b92c,_0x221746)||(_0x1241d3=!0x1);}}function _0x616bbe(_0x55b759){return _0x55b759[_0x4c73c7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4c73c7([0x65,0x79]))?JSON[_0x4c73c7([0x70,0x61,0x72,0x73,0x65])](_0x20744e(_0x55b759)):null;}function _0x20744e(_0x474b23){return window[_0x4c73c7([0x61,0x74,0x6f,0x62])](_0x474b23[_0x4c73c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4c73c7([0x2b]))[_0x4c73c7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4c73c7([0x2f])));}function _0x4b21f5(_0x1b0925){let _0x32cd8e=0x1505;function _0x4e99fb(_0x46f984){for(let _0x240a2a=0x0;_0x240a2a<_0x46f984[_0x4c73c7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x240a2a++){const _0x4f0e8d=_0x46f984[_0x4c73c7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x240a2a);_0x32cd8e=(_0x32cd8e<<0x5)+_0x32cd8e+_0x4f0e8d,_0x32cd8e&=_0x32cd8e;}}function _0x357c5c(_0x2590e9){Array[_0x4c73c7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2590e9)?_0x2590e9[_0x4c73c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x357c5c):_0x2590e9&&typeof _0x2590e9==_0x4c73c7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4c73c7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2590e9)[_0x4c73c7([0x73,0x6f,0x72,0x74])]()[_0x4c73c7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x45aef8,_0x2f3304])=>{_0x4e99fb(_0x45aef8),_0x357c5c(_0x2f3304);}):_0x4e99fb(window[_0x4c73c7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2590e9));}return _0x357c5c(_0x1b0925),_0x32cd8e>>>0x0;}function _0x169fd4(_0x373e73){return _0x373e73[_0x4c73c7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4c73c7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4c73c7([0x30]));}function _0xfb4de5(_0x3aabfa){return _0x3aabfa[_0x4c73c7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4c73c7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4c73c7([0x6a,0x6f,0x69,0x6e])]('');}function _0x96c3e(_0x835db1){return _0x594282[_0x4c73c7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4c73c7([0x68,0x61,0x73])](_0x835db1);}function _0x21fc65(_0x175e42){return _0x594282[_0x4c73c7([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4c73c7([0x67,0x65,0x74])](_0x175e42);}function _0x1b79a6(){}function _0x4c73c7(_0x481e0d){return _0x481e0d['map'](_0x4d6181=>String['fromCharCode'](_0x4d6181))['join']('');}_0xb4c42(await _0x48d421());}(this);}set['adapter'](_0x2b3b30){if(this['_adapter'])throw new _0x3fd1ad('track-changes-adapter-already-set',this);this['_adapter']=_0x2b3b30;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2aa2e8=!0x1,toJSON:_0xd255c8=!0x1}={}){const _0xa4a6e7=[];for(const _0x48b5fa of this['_suggestions']['values']())_0x2aa2e8&&!_0x48b5fa['isInContent']||_0xa4a6e7['push'](_0x48b5fa);return _0xd255c8?_0xa4a6e7['map'](_0x32f892=>_0x32f892['toJSON']()):_0xa4a6e7;}['getSuggestion'](_0x1439ab){const _0x285fae=this['_suggestions']['get'](_0x1439ab);if(!_0x285fae)throw new _0x3fd1ad('track-changes-suggestion-not-found',this);return _0x285fae;}['hasSuggestion'](_0x303615){return this['_suggestions']['has'](_0x303615);}['addSuggestionData'](_0x41a9c1){const {authorId:_0x2cc633,id:_0x1c27ff,attributes:_0x1ce223}=_0x41a9c1,[_0xe11c9b,_0x2efe59]=_0x41a9c1['type']['split'](':'),_0x2bd7b7=this['_suggestions']['get'](_0x1c27ff)||this['_createSuggestion'](_0xe11c9b,_0x2efe59,_0x1c27ff,_0x2cc633,_0x1ce223);if(this['_addThreadToSuggestion'](_0x2bd7b7),this['_checkSuggestionCorrectness'](_0x2bd7b7,_0xe11c9b,_0x2efe59||null,_0x2cc633),_0x2bd7b7['createdAt']=_0x41a9c1['createdAt'],_0x2bd7b7['_isDataLoaded']=!0x0,_0x1ce223&&_0x1ce223['@external']){const _0x390811=_0x1ce223['@external'],_0x3b23d8=this['_getExternalAuthor'](_0x390811['authorName']);_0x2bd7b7['authoredAt']=_0x390811['createdAt'],_0x2bd7b7['author']=_0x3b23d8,_0x2bd7b7['isExternal']=!0x0;}else _0x2bd7b7['authoredAt']=_0x41a9c1['createdAt'];switch(_0x41a9c1['data']&&(_0x2bd7b7['data']=_0x41a9c1['data']),_0x41a9c1['attributes']&&(_0x2bd7b7['attributes']=_0x41a9c1['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2bd7b7['_saved']=!0x0),this['_suggestionState']['get'](_0x2bd7b7)){case'notReady':this['_suggestionState']['set'](_0x2bd7b7,'dataReady');break;case'markerReady':_0x2bd7b7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2bd7b7])),this['_refreshSuggestionsChain'](new Set([_0x2bd7b7])),this['_suggestionState']['set'](_0x2bd7b7,'ready'),this['fire']('suggestionLoaded',_0x2bd7b7)):this['_suggestionState']['set'](_0x2bd7b7,'removed');}return _0x2bd7b7;}['acceptSuggestion'](_0x41183b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4eeec0 of _0x41183b['getAllAdjacentSuggestions']())_0x4eeec0['accept']();});});}['discardSuggestion'](_0x45f51d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa6c7b4 of _0x45f51d['getAllAdjacentSuggestions']())_0xa6c7b4['discard']();});});}['enableCommand'](_0xcdca9a,_0x2b67b5){const _0x3fc7c4=this['editor']['commands']['get'](_0xcdca9a);if(!_0x3fc7c4)throw new _0x3fd1ad('track-changes-command-not-found',this,{'commandName':_0xcdca9a});if(this['_enabledCommands']['has'](_0x3fc7c4))throw new _0x3fd1ad('track-changes-enable-command-twice',this,{'commandName':_0xcdca9a});this['_enabledCommands']['add'](_0x3fc7c4),_0x2b67b5&&_0x3fc7c4['on']('execute',(_0xf9a9b0,_0x420260)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x420260['length']>0x0&&_0x420260[_0x420260['length']-0x1]&&_0x420260[_0x420260['length']-0x1]['forceDefaultExecution']?_0x420260['pop']():(_0xf9a9b0['return']=_0x2b67b5((..._0x1f1415)=>_0x3fc7c4['execute'](..._0x1f1415,{'forceDefaultExecution':!0x0}),..._0x420260),_0xf9a9b0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5397cb){let _0x1bd64d,_0x53c02c;const _0x42115b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1bd64d=_0x5397cb();}catch(_0x544867){_0x53c02c=_0x544867;}return _0x42115b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x53c02c&&_0x3fd1ad['rethrowUnexpectedError'](_0x53c02c,this),_0x1bd64d;}['markInsertion'](_0x417c39,_0x2160b4=null,_0x110fa4={}){if(_0x417c39['isCollapsed'])return null;const _0x55743f=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xb7761f,meta:_0x8d865f}of this['_findSuggestions'](_0x417c39,'insertion'))if(_0x8d865f['isOwn']){if(!_0x8d865f['isNextTo']){if(_0x8d865f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0xb7761f,_0x110fa4))continue;return _0xb7761f;}if(zt(_0xb7761f,_0x110fa4))return _0xb7761f;this['_breakSuggestionMarker'](_0xb7761f,_0x417c39['start'],_0x417c39['end']);break;}if(_0x2160b4==_0xb7761f['subType']&&zt(_0xb7761f,_0x110fa4)){const _0x37285e=_0xb7761f['getFirstRange']();return _0x37285e['start']['isEqual'](_0x417c39['end'])?this['_setSuggestionRange'](_0xb7761f,this['_model']['createRange'](_0x417c39['start'],_0x37285e['end'])):this['_setSuggestionRange'](_0xb7761f,this['_model']['createRange'](_0x37285e['start'],_0x417c39['end'])),_0xb7761f;}}const _0x4ced8b=_0x62ed8e(),_0x26ad88=_0x55743f['id'],_0x44b4dd=_0x2160b4?'insertion:'+_0x2160b4:'insertion',_0x56cbd7=this['_setSuggestionData']({'id':_0x4ced8b,'type':_0x44b4dd,'createdAt':new Date(),'authorId':_0x26ad88,'attributes':_0x110fa4});return this['_addSuggestionMarker'](_0x44b4dd,_0x4ced8b,_0x26ad88,_0x417c39),_0x56cbd7;}['markMultiRangeInsertion'](_0x54f1bb,_0xf43bea='multi',_0x376d62={}){const _0x1b0f3f=this['editor']['plugins']['get']('Users')['me'],_0x258785=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xf43bea,'join');for(const _0x4d65bc of this['getSuggestions']())if(_0x4d65bc['author']['id']==_0x1b0f3f['id']&&'insertion'==_0x4d65bc['type']&&_0x4d65bc['subType']==_0xf43bea&&zt(_0x4d65bc,_0x376d62)&&(_0x258785(_0x4d65bc['getRanges'](),_0x54f1bb)||_0x258785(_0x54f1bb,_0x4d65bc['getRanges']()))){for(const _0x52634b of _0x54f1bb)_0x4d65bc['addRange'](_0x52634b);return _0x4d65bc;}for(const {suggestion:_0x412418,meta:_0x51db18}of this['_findSuggestions'](_0x54f1bb,'insertion')){if(!_0x51db18['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x51db18['containsRangeInObject'])continue;if(!zt(_0x412418,_0x376d62))continue;let _0x2cacd3=!0x0;for(const _0x39a01a of _0x412418['getRanges']())for(const _0x15ba8a of _0x54f1bb)if(!_0x39a01a['containsRange'](_0x15ba8a)){_0x2cacd3=!0x1;break;}if(_0x2cacd3)return _0x412418;}const _0x10258f=_0x62ed8e(),_0x93c360=_0x1b0f3f['id'],_0x3c03b9='insertion:'+_0xf43bea,_0x5f527b=this['_setSuggestionData']({'id':_0x10258f,'type':_0x3c03b9,'createdAt':new Date(),'authorId':_0x93c360,'attributes':_0x376d62});for(const _0x32be2e of _0x54f1bb)this['_addSuggestionMarker'](_0x3c03b9,_0x10258f,_0x93c360,_0x32be2e,u['getMultiRangeId']());return _0x5f527b;}['markInlineFormat'](_0x3c3fdc,_0x3268ab,_0x578b66=null,_0x40f2da={}){if(_0x578b66=_0x578b66||Gt(_0x3268ab),_0x3c3fdc['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3eb365=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x578b66,'accept');return this['forceDefaultExecution'](()=>_0x3eb365([_0x3c3fdc],_0x3268ab,_0x40f2da)),null;}const _0x29d219=this['editor']['plugins']['get']('Users')['me'],_0x414366=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3a9aa9,meta:_0x120ce9}of this['_findSuggestions'](_0x3c3fdc,'insertion'))_0x120ce9['isOwn']&&!_0x120ce9['isInsideObject']&&_0x414366['push'](..._0x3a9aa9['getRanges']());}const _0x5151b6=function(_0x394705,_0x4c274d){const _0xab6a4c=[];for(const _0x167720 of _0x4c274d){const _0x31c10c=_0x394705['getIntersection'](_0x167720);_0x31c10c&&_0xab6a4c['push'](_0x31c10c);}return _0xab6a4c;}(_0x3c3fdc,_0x414366),_0xec2627=function(_0x44f836,_0x582ec9){const _0x6a4468=[_0x44f836];for(const _0xe27b8b of _0x582ec9){let _0x4683e8=0x0;for(;_0x4683e8<_0x6a4468['length'];){const _0x5614d3=_0x6a4468[_0x4683e8]['getDifference'](_0xe27b8b);_0x6a4468['splice'](_0x4683e8,0x1,..._0x5614d3),_0x4683e8+=_0x5614d3['length'];}}return _0x6a4468;}(_0x3c3fdc,_0x414366);_0x5151b6['length']&&this['_model']['change'](()=>{for(const _0x28c0e4 of _0x5151b6){const _0x44e328=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x578b66,'accept');this['forceDefaultExecution'](()=>_0x44e328([_0x28c0e4],_0x3268ab,_0x40f2da));}});for(const _0x1e92db of _0xec2627){let _0x3c9efd=null,_0xd2bbc0=_0x1e92db['start'],_0x2be289=_0x1e92db['end'];for(const {suggestion:_0x3e3f56,meta:_0x30c9d7}of this['_findSuggestions'](_0x1e92db,'formatInline')){if(!_0x30c9d7['isOwn'])continue;if(_0x3e3f56['subType']!=_0x578b66)continue;if(!zt(_0x3e3f56,_0x40f2da))continue;const _0xe12ea0=_0x3e3f56['getFirstRange']();if(_0xe12ea0['containsRange'](_0x1e92db,!0x0))return null;_0xd2bbc0=_0xd2bbc0['isBefore'](_0xe12ea0['start'])?_0xd2bbc0:_0xe12ea0['start'],_0x2be289=_0x2be289['isAfter'](_0xe12ea0['end'])?_0x2be289:_0xe12ea0['end'],_0x3c9efd?_0xe12ea0['start']['isBefore'](_0x3c9efd['getFirstRange']()['start'])?(_0x3c9efd['removeMarkers'](),_0x3c9efd=_0x3e3f56):_0x3e3f56['removeMarkers']():_0x3c9efd=_0x3e3f56;}const _0x71f3ac=this['_model']['createRange'](_0xd2bbc0,_0x2be289);if(_0x3c9efd)this['_setSuggestionRange'](_0x3c9efd,_0x71f3ac);else{const _0x4553dd=_0x62ed8e(),_0x16e158=_0x29d219['id'];this['_setSuggestionData']({'id':_0x4553dd,'type':'formatInline:'+_0x578b66,'data':_0x3268ab,'createdAt':new Date(),'authorId':_0x16e158,'attributes':_0x40f2da}),this['_addSuggestionMarker']('formatInline:'+_0x578b66,_0x4553dd,_0x16e158,_0x71f3ac);}}return null;}['markBlockFormat'](_0x126372,_0x3a9390,_0x2cb39a=[],_0x1f1413=null,_0x4d5ab2={}){_0x3a9390['formatGroupId']||(_0x3a9390['formatGroupId']=_0x3a9390['commandName']),_0x3a9390['multipleBlocks']=_0x126372['is']('range'),_0x1f1413=_0x1f1413||Gt(_0x3a9390);const _0x20d353=_0x2cb39a['map'](_0x38f14a=>Jt(_0x38f14a,this['_model'])),_0x2e3278=_0x126372['is']('range')?_0x126372:Jt(_0x126372,this['_model']);if('never'===this['_trackFormatChanges']){const _0x32af9e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f1413,'accept');return this['forceDefaultExecution'](()=>_0x32af9e([_0x2e3278],_0x3a9390,_0x4d5ab2)),null;}_0x20d353['push'](_0x2e3278);let _0x37403c=!0x0;for(const _0x2d97a9 of _0x20d353)if(!this['_rangeIsInLocalUserInsertion'](_0x2d97a9)){_0x37403c=!0x1;break;}if(_0x37403c&&'always'!==this['_trackFormatChanges']){const _0x4bcaa1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f1413,'accept');return this['forceDefaultExecution'](()=>_0x4bcaa1([_0x2e3278],_0x3a9390,_0x4d5ab2)),null;}let _0x1a76d3=null,_0x4c2e13=_0x2e3278['start'],_0x5bc081=_0x2e3278['end'];for(const {suggestion:_0x4656e6,meta:_0x3c691e}of this['_findSuggestions'](_0x2e3278,'formatBlock')){if(!_0x3c691e['isOwn'])continue;if(_0x3c691e['isNextTo']||_0x3c691e['containsRangeInObject']||_0x3c691e['isInsideObject'])continue;if(_0x4656e6['data']['formatGroupId']!=_0x3a9390['formatGroupId'])continue;if(!zt(_0x4656e6,_0x4d5ab2))continue;const _0x578e12=_0x4656e6['getFirstRange']();if(_0x4656e6['subType']==_0x1f1413){if(_0x578e12['containsRange'](_0x2e3278,!0x0))return null;_0x4c2e13=_0x4c2e13['isBefore'](_0x578e12['start'])?_0x4c2e13:_0x578e12['start'],_0x5bc081=_0x5bc081['isAfter'](_0x578e12['end'])?_0x5bc081:_0x578e12['end'],_0x1a76d3?_0x578e12['start']['isBefore'](_0x1a76d3['getFirstRange']()['start'])?(_0x1a76d3['removeMarkers'](),_0x1a76d3=_0x4656e6):_0x4656e6['removeMarkers']():_0x1a76d3=_0x4656e6;}else{const _0x181eda=_0x2e3278['getIntersection'](_0x578e12);this['_cutOutSuggestionMarker'](_0x4656e6,_0x181eda);}}const _0x195c36=this['editor']['plugins']['get']('Users')['me'],_0x20ba1c=_0x62ed8e(),_0x4b46f9=_0x195c36['id'];if(_0x1a76d3)return this['_setSuggestionRange'](_0x1a76d3,this['_model']['createRange'](_0x4c2e13,_0x5bc081)),_0x1a76d3;{const _0x307342=this['_setSuggestionData']({'id':_0x20ba1c,'type':'formatBlock:'+_0x1f1413,'data':_0x3a9390,'createdAt':new Date(),'authorId':_0x4b46f9,'attributes':_0x4d5ab2});return this['_addSuggestionMarker']('formatBlock:'+_0x1f1413,_0x20ba1c,_0x4b46f9,this['_model']['createRange'](_0x4c2e13,_0x5bc081)),_0x307342;}}['markMultiRangeBlockFormat'](_0x3f91ac,_0x41a447,_0x2554d8=[],_0x54fe44=null,_0x44becb={}){_0x41a447['formatGroupId']||(_0x41a447['formatGroupId']=_0x41a447['commandName']);const _0x5163d9=_0x3f91ac[0x0];_0x41a447['multipleBlocks']=_0x5163d9['is']('range'),_0x54fe44=_0x54fe44||Gt(_0x41a447);const _0x4037c2=_0x2554d8['map'](_0x96e926=>Jt(_0x96e926,this['_model'])),_0x15fafb=_0x5163d9['is']('range')?_0x3f91ac:_0x3f91ac['map'](_0x3a5b2b=>Jt(_0x3a5b2b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x113484=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54fe44,'accept');return this['forceDefaultExecution'](()=>_0x113484(_0x15fafb,_0x41a447,_0x44becb)),null;}_0x4037c2['push'](..._0x15fafb);let _0x1ce3e5=!0x0;for(const _0x2ac22e of _0x4037c2)if(!this['_rangeIsInLocalUserInsertion'](_0x2ac22e)){_0x1ce3e5=!0x1;break;}if(_0x1ce3e5&&'always'!==this['_trackFormatChanges']){const _0x5d4901=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54fe44,'accept');return this['forceDefaultExecution'](()=>_0x5d4901(_0x15fafb,_0x41a447,_0x44becb)),null;}const _0x3a702=this['editor']['plugins']['get']('Users')['me'];for(const _0x1de275 of this['getSuggestions']()){if(_0x1de275['author']['id']!=_0x3a702['id'])continue;if('formatBlock'!=_0x1de275['type']||_0x1de275['data']['formatGroupId']!=_0x41a447['formatGroupId'])continue;if(!zt(_0x1de275,_0x44becb))continue;const _0x3da1be=_0x1de275['subType']==_0x54fe44;for(let _0x271e52=0x0;_0x271e52<_0x15fafb['length'];_0x271e52++){const _0x9c8a3b=_0x15fafb[_0x271e52];for(const _0x5ec2ec of _0x1de275['getMarkers']()){const _0x5e2e25=_0x5ec2ec['getRange']();if(_0x9c8a3b['isEqual'](_0x5e2e25)){_0x3da1be?(_0x15fafb['splice'](_0x271e52,0x1),_0x271e52--):_0x1de275['removeMarker'](_0x5ec2ec['name']);break;}}}}if(0x0==_0x15fafb['length'])return null;const _0xde68c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x54fe44,'join');for(const _0x4506ca of this['getSuggestions']())if(_0x4506ca['author']['id']==_0x3a702['id']&&'formatBlock'==_0x4506ca['type']&&_0x4506ca['data']['formatGroupId']==_0x41a447['formatGroupId']&&_0x4506ca['subType']==_0x54fe44&&zt(_0x4506ca,_0x44becb)&&(_0xde68c0(_0x4506ca['getRanges'](),_0x15fafb)||_0xde68c0(_0x15fafb,_0x4506ca['getRanges']()))){for(const _0x395938 of _0x15fafb)_0x4506ca['addRange'](_0x395938);return _0x4506ca;}const _0x1a792e=_0x62ed8e(),_0x552ed9=_0x3a702['id'],_0xa867ab='formatBlock:'+_0x54fe44,_0x217d30=this['_setSuggestionData']({'id':_0x1a792e,'type':_0xa867ab,'data':_0x41a447,'createdAt':new Date(),'authorId':_0x552ed9,'attributes':_0x44becb});for(const _0x1c98c5 of _0x15fafb)this['_addSuggestionMarker'](_0xa867ab,_0x1a792e,_0x552ed9,_0x1c98c5,u['getMultiRangeId']());return _0x217d30;}['markDeletion'](_0x24f18f,_0xbd5916=null,_0xf579de={}){if(_0x24f18f['isCollapsed'])return null;const _0x47c3d2=this['editor']['plugins']['get']('Users')['me'],_0x1c75d3=new _0x3f82e4(_0x24f18f['start'],_0x24f18f['end']);for(const {suggestion:_0x113b1a,meta:_0x1bc6e4}of this['_findSuggestions'](_0x1c75d3,'insertion'))if(_0x1bc6e4['isOwn']&&!_0x1bc6e4['isNextTo']){if(_0x113b1a['isMultiRange']){const _0x26802f=_0x113b1a['getRanges']()['filter'](_0x544330=>'$graveyard'!=_0x544330['root']['rootName']);_0x26802f['every'](_0x1c5822=>_0x1c75d3['containsRange'](_0x1c5822,!0x0))&&_0x113b1a['discard']();if(_0x26802f['some'](_0x384b8b=>_0x384b8b['containsRange'](_0x1c75d3,!0x0))){const _0x53d431=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xbd5916,'accept');return this['forceDefaultExecution'](()=>_0x53d431([_0x1c75d3],null,_0xf579de)),null;}}else{const _0x114518=_0x1c75d3['getIntersection'](_0x113b1a['getFirstRange']());null!==_0x114518&&_0x113b1a['_onDiscard']([_0x114518],null,_0xf579de);}}if(_0x1c75d3['detach'](),_0x1c75d3['isCollapsed']||'$graveyard'==_0x1c75d3['root']['rootName'])return null;let _0x5b502f=null,_0x4f694a=_0x1c75d3['start'],_0xca8875=_0x1c75d3['end'];const _0x2d8af4=this['_findSuggestions'](_0x1c75d3,'deletion');for(const {suggestion:_0x5a9056,meta:_0xd3d3ba}of _0x2d8af4){const _0xe73e3e=this['_model']['createRange'](_0x4f694a,_0xca8875);if(_0xd3d3ba['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd3d3ba['containsRangeInObject']&&!_0xd3d3ba['isInsideObject'])){if(_0x5a9056['isMultiRange']){if(!zt(_0x5a9056,_0xf579de))continue;let _0x44195d=!0x0;for(const _0x2cdea8 of _0x5a9056['getRanges']()){if(_0x2cdea8['containsRange'](_0xe73e3e,!0x0))return _0x5a9056;_0xe73e3e['containsRange'](_0x2cdea8)||(_0x44195d=!0x1);}_0x44195d&&_0x5a9056['discard']();}else{const _0x2b0513=_0x5a9056['getFirstRange']();if(_0x2b0513['containsRange'](_0xe73e3e,!0x0))return _0x5a9056;if(!zt(_0x5a9056,_0xf579de)){_0xe73e3e['containsRange'](_0x2b0513)?_0x5a9056['removeMarkers']():_0x2b0513['containsPosition'](_0x4f694a)?_0x4f694a=_0x2b0513['end']:_0x2b0513['containsPosition'](_0xca8875)&&(_0xca8875=_0x2b0513['start']);continue;}_0x4f694a=_0x4f694a['isBefore'](_0x2b0513['start'])?_0x4f694a:_0x2b0513['start'],_0xca8875=_0xca8875['isAfter'](_0x2b0513['end'])?_0xca8875:_0x2b0513['end'],_0xf579de=Object['assign']({},_0x5a9056['attributes']),_0x5b502f?_0x2b0513['start']['isBefore'](_0x5b502f['getFirstRange']()['start'])?(_0x5b502f['removeMarkers'](),_0x5b502f=_0x5a9056):_0x5a9056['removeMarkers']():_0x5b502f=_0x5a9056;}}}if(_0x5b502f)return this['_setSuggestionRange'](_0x5b502f,this['_model']['createRange'](_0x4f694a,_0xca8875)),_0x5b502f;{const _0x4a238d=_0x62ed8e(),_0x559b02=this['_model']['createRange'](_0x4f694a,_0xca8875),_0x221425=_0x47c3d2['id'],_0x54370d=_0xbd5916?'deletion:'+_0xbd5916:'deletion',_0x70f6c0=this['_setSuggestionData']({'id':_0x4a238d,'type':_0x54370d,'createdAt':new Date(),'authorId':_0x221425,'attributes':_0xf579de});return this['_addSuggestionMarker'](_0x54370d,_0x4a238d,_0x221425,_0x559b02),_0x70f6c0;}}['markMultiRangeDeletion'](_0x16f6c3,_0x27d4f9='multi',_0x491cbd={}){const _0x5e20f0=this['editor']['plugins']['get']('Users')['me'],_0x476f5a=_0x16f6c3['map'](_0x2ea65a=>new _0x3f82e4(_0x2ea65a['start'],_0x2ea65a['end'])),_0x3f0cf9=new Set();for(const {suggestion:_0x19ae70,meta:_0x590661}of this['_findSuggestions'](_0x476f5a,'insertion'))_0x590661['isOwn']&&!_0x590661['isNextTo']&&_0x3f0cf9['add'](_0x19ae70);for(const _0x2f3c7f of _0x3f0cf9)if(_0x2f3c7f['isMultiRange']){const _0x387534=_0x2f3c7f['getRanges']();(!_0x2f3c7f['attributes']||!_0x2f3c7f['attributes']['skipNestingCheck'])&&(_0x387534['every'](_0x3efcf5=>_0x476f5a['some'](_0xee3b34=>_0xee3b34['containsRange'](_0x3efcf5,!0x0)))&&_0x2f3c7f['discard']());if(_0x476f5a['every'](_0xa648ad=>_0x387534['some'](_0xc5e51e=>_0xc5e51e['containsRange'](_0xa648ad,!0x0)))){const _0x4b9388=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27d4f9,'accept');return this['forceDefaultExecution'](()=>_0x4b9388(_0x16f6c3,null,_0x491cbd)),null;}}else{const _0x55434f=_0x2f3c7f['getFirstRange']();_0x476f5a['some'](_0x26a4c6=>_0x26a4c6['containsRange'](_0x55434f,!0x0))&&_0x2f3c7f['discard']();if(_0x476f5a['every'](_0x5e8fdb=>_0x55434f['containsRange'](_0x5e8fdb,!0x0))){const _0x35d509=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27d4f9,'accept');return this['forceDefaultExecution'](()=>_0x35d509(_0x476f5a,null,_0x491cbd)),null;}}const _0x1eae66=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x27d4f9,'join');let _0x3e135a=null;for(const _0x126664 of this['getSuggestions']())if(_0x126664['author']['id']==_0x5e20f0['id']&&_0x126664['isInContent']&&'deletion'==_0x126664['type']&&_0x126664['subType']==_0x27d4f9&&zt(_0x126664,_0x491cbd)&&(_0x1eae66(_0x126664['getRanges'](),_0x476f5a)||_0x1eae66(_0x476f5a,_0x126664['getRanges']()))){if(_0x3e135a){if(_0x126664['commentThread']&&_0x126664['commentThread']['length'])continue;for(const _0x1e1f3d of _0x126664['getRanges']())_0x3e135a['isIntersectingWithRange'](_0x1e1f3d)||_0x3e135a['addRange'](_0x1e1f3d);_0x126664['removeMarkers']();}else{_0x3e135a=_0x126664;for(const _0x28ec83 of _0x476f5a)_0x126664['isIntersectingWithRange'](_0x28ec83)||_0x126664['addRange'](_0x28ec83);}}if(_0x3e135a)return _0x3e135a;_0x3f0cf9['clear']();for(const {suggestion:_0x9f41ad,meta:_0x4a6da6}of this['_findSuggestions'](_0x476f5a,'deletion'))_0x4a6da6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a6da6['containsRangeInObject']&&!_0x4a6da6['isInsideObject'])&&zt(_0x9f41ad,_0x491cbd)&&_0x3f0cf9['add'](_0x9f41ad);for(const _0x2249b3 of _0x3f0cf9){const _0x370a79=_0x2249b3['getRanges']();if(!_0x491cbd||!_0x491cbd['skipNestingCheck']){if(_0x476f5a['every'](_0x5a354d=>_0x370a79['some'](_0x23f47f=>_0x23f47f['containsRange'](_0x5a354d,!0x0))))return _0x2249b3;}(!_0x2249b3['attributes']||!_0x2249b3['attributes']['skipNestingCheck'])&&(_0x370a79['every'](_0x30b80b=>_0x476f5a['some'](_0xaf5579=>_0xaf5579['containsRange'](_0x30b80b,!0x0)))&&_0x2249b3['discard']());}const _0x112694=_0x62ed8e(),_0x561a8d=_0x5e20f0['id'],_0x3f3493='deletion:'+_0x27d4f9,_0x3e6aa6=this['_setSuggestionData']({'id':_0x112694,'type':_0x3f3493,'createdAt':new Date(),'authorId':_0x561a8d,'attributes':_0x491cbd});for(const _0x410a2a of _0x476f5a)_0x410a2a['detach'](),_0x410a2a['isCollapsed']||'$graveyard'==_0x410a2a['root']['rootName']||this['_addSuggestionMarker'](_0x3f3493,_0x112694,_0x561a8d,_0x410a2a,u['getMultiRangeId']());return _0x3e6aa6;}['markAttributeChange'](_0x54b527,_0x2b3ab0,_0x47e9c5,_0x4a0967,_0x3102cb){if(_0x54b527['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x33f05c=this['editor']['plugins']['get']('Users')['me']['id'],_0x444aee=Array['from'](this['_suggestions']['values']())['filter'](_0x2eed85=>'attribute'==_0x2eed85['type']&&_0x2eed85['data']['key']==_0x2b3ab0&&_0x2eed85['isIntersectingWithRange'](_0x54b527));if('default'===this['_trackFormatChanges']){const _0x5237e0=this['_findSuggestions'](_0x54b527,'insertion')['filter'](({meta:_0xd1b3e0})=>_0xd1b3e0['isOwn']&&!_0xd1b3e0['isInsideObject']&&!_0xd1b3e0['isNextTo'])['map'](({suggestion:_0x3b2d30})=>_0x3b2d30);_0x444aee['unshift'](..._0x5237e0);}const _0x481900=new Map([[_0x54b527,_0x47e9c5]]);for(const _0x394c81 of _0x444aee){const _0x34e583='attribute'==_0x394c81['type']?_0x394c81['data']['oldValue']:void 0x0,_0x5cd6fd=_0x394c81['getFirstRange'](),_0x478288=Array['from'](_0x481900['keys']())['find'](_0x345ff9=>_0x345ff9['isIntersecting'](_0x5cd6fd));if(!_0x478288)continue;const _0x5ecbd9=_0x478288['getDifference'](_0x5cd6fd);this['_isBlockAttribute'](_0x2b3ab0)&&'insertion'==_0x394c81['type']&&0x0!=_0x5ecbd9['length']||(_0x481900['delete'](_0x478288),_0x5ecbd9['forEach'](_0x4042cc=>{_0x481900['set'](_0x4042cc,_0x47e9c5);}),'insertion'!=_0x394c81['type']&&_0x34e583!=_0x4a0967&&_0x481900['set'](_0x478288['getIntersection'](_0x5cd6fd),_0x34e583));}const _0x531108=[];for(const [_0x38ebe2,_0x380737]of _0x481900){const _0x209e87=_0x62ed8e(),_0x2fa65e={'key':_0x2b3ab0,'oldValue':_0x380737,'newValue':_0x4a0967};_0x2b3ab0['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':_0x2b3ab0});const _0x3529b4=('attribute:'+(_0x2b3ab0+'|'+Gt({'newValue':_0x4a0967})))['substring'](0x0,0x3c),_0x21b66a=this['_setSuggestionData']({'id':_0x209e87,'type':_0x3529b4,'data':_0x2fa65e,'createdAt':new Date(),'authorId':_0x33f05c,'attributes':_0x3102cb});_0x531108['push'](_0x21b66a),this['_addSuggestionMarker'](_0x3529b4,_0x209e87,_0x33f05c,_0x38ebe2);}return _0x531108;}['enableDefaultAttributesIntegration'](_0x41c21a){this['enableCommand'](_0x41c21a,(_0x3fe0a3,..._0x1302dd)=>{this['_recordAttributeChanges'](()=>{_0x3fe0a3(..._0x1302dd);});});}['registerBlockAttribute'](_0x1e521b){this['_blockAttributeKeys']['add'](_0x1e521b);}['registerInlineAttribute'](_0x4579dc){this['_inlineAttributeKeys']['add'](_0x4579dc);}['_getAttributeKey'](_0x295acf){return'attribute'==_0x295acf['type']?_0x295acf['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3d7848,_0x2e277f){const _0x551c97=_0x3d7848['getFirstMarker']();this['_model']['change'](_0xa6399d=>{_0xa6399d['updateMarker'](_0x551c97,{'range':_0x2e277f});});}['_addThreadToSuggestion'](_0xf8788f){const _0x2fbb69=_0xf8788f['id'],_0x58f9b6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2fbb69)||this['_commentsRepository']['addCommentThread']({'channelId':_0x58f9b6,'threadId':_0x2fbb69,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2bc361=this['_commentsRepository']['getCommentThread'](_0x2fbb69);_0x2bc361['unbind']('isRemovable'),_0x2bc361['isRemovable']=!0x1,_0xf8788f['commentThread']=_0x2bc361;}['_checkSuggestionCorrectness'](_0x527e99,_0x29fdc1,_0x3135d8,_0x2a26b0){if(_0x527e99['type']!=_0x29fdc1||_0x527e99['subType']!=_0x3135d8||_0x527e99['creator']['id']!=_0x2a26b0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3fd1ad('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xd39b14,_0xd5f504){const _0x40e6f7=_0xd39b14['getFirstRange']();if(_0xd5f504['isEqual'](_0x40e6f7))_0xd39b14['removeMarkers']();else{if(_0x40e6f7['containsRange'](_0xd5f504)){const _0x2dd066=this['_model']['createPositionAt'](_0xd5f504['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xd39b14,this['_model']['createRange'](_0x40e6f7['start'],_0x2dd066));const _0x15981e=_0x62ed8e(),_0x1f1600=_0xd39b14['creator']['id'],_0x50bc1d=_0xd39b14['type']+':'+_0xd39b14['subType'];this['_setSuggestionData']({'id':_0x15981e,'type':_0x50bc1d,'createdAt':new Date(),'authorId':_0x1f1600,'data':_0xd39b14['data'],'attributes':_0xd39b14['attributes']});const _0x361dbf=this['_model']['createPositionAt'](_0xd5f504['end']['parent'],'after'),_0x112e79=this['_model']['createRange'](_0x361dbf,_0x40e6f7['end']);this['_addSuggestionMarker'](_0x50bc1d,_0x15981e,_0x1f1600,_0x112e79);}else{if(_0x40e6f7['containsPosition'](_0xd5f504['start'])){const _0x51b522=this['_model']['createPositionAt'](_0xd5f504['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xd39b14,this['_model']['createRange'](_0x40e6f7['start'],_0x51b522));}else{const _0x4371fa=this['_model']['createPositionAt'](_0xd5f504['end']['parent'],'after');this['_setSuggestionRange'](_0xd39b14,this['_model']['createRange'](_0x4371fa,_0x40e6f7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x43304b){for(const {suggestion:_0x3d54dd,meta:_0x3c368b}of this['_findSuggestions'](_0x43304b,'insertion')){if(!_0x3c368b['isOwn'])continue;const _0x40f151=_0x3d54dd['getRanges']();for(const _0x3da323 of _0x40f151)if(!_0x43304b['getDifference'](_0x3da323)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x468ee2){const _0x1b4a10=this['editor']['plugins']['get']('Users')['getUser'](_0x468ee2);if(!_0x1b4a10)throw new _0x3fd1ad('track-changes-user-not-found',this);return _0x1b4a10;}['_getExternalAuthor'](_0x1ccfd0){const _0x55b6f7=this['editor']['plugins']['get']('Users'),_0x442e49=_0x12408f('external:'+_0x1ccfd0),_0x582d6f=_0x55b6f7['getUser'](_0x442e49);return _0x582d6f||_0x55b6f7['addUser']({'id':_0x442e49,'name':_0x1ccfd0});}['_createSuggestion'](_0x4a3ea5,_0x3923cd,_0x2fdbf3,_0x39509c,_0x28735b){const _0x5db591=this['_getAuthorFromId'](_0x39509c),_0x109346=this['_suggestionFactory']['buildSuggestion'](_0x4a3ea5,_0x3923cd,_0x2fdbf3,_0x5db591,_0x28735b,_0x2d846d=>{this['_updateSuggestionData'](_0x2fdbf3,{'attributes':_0x2d846d});const _0xb5fa1f=this['getSuggestion'](_0x2fdbf3);this['_joinWithAdjacentSuggestions'](new Set([_0xb5fa1f])),this['_refreshSuggestionsChain'](new Set([_0xb5fa1f]));});return this['listenTo'](_0x109346,'accept',()=>{this['_updateSuggestionData'](_0x2fdbf3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x109346,'discard',()=>{this['_updateSuggestionData'](_0x2fdbf3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2fdbf3,_0x109346),this['_suggestionState']['set'](_0x109346,'notReady'),_0x109346;}['_splitMarkerName'](_0x11d0d4){const _0x29c695=_0x11d0d4['split'](':');return{'group':_0x29c695[0x0],'type':_0x29c695[0x1],'subType':_0x29c695['length']>=0x5?_0x29c695[0x2]:null,'id':_0x29c695['length']<0x5?_0x29c695[0x2]:_0x29c695[0x3],'authorId':_0x29c695['length']<0x5?_0x29c695[0x3]:_0x29c695[0x4],'markerCount':0x6==_0x29c695['length']?_0x29c695[0x5]:null};}['_breakSuggestionMarker'](_0x2cd7b7,_0x1cd03f,_0x8573e2){const _0xe9055e=_0x2cd7b7['getFirstRange'](),_0x35dd2f=_0xe9055e['start'],_0x2fb82c=_0xe9055e['end'];this['_setSuggestionRange'](_0x2cd7b7,this['_model']['createRange'](_0x35dd2f,_0x1cd03f));const _0x5ef353=_0x62ed8e(),_0x1bcc8=_0x2cd7b7['creator']['id'],_0x12c216=_0x2cd7b7['type']+(_0x2cd7b7['subType']?':'+_0x2cd7b7['subType']:'');this['_setSuggestionData']({'id':_0x5ef353,'type':_0x12c216,'createdAt':new Date(),'authorId':_0x1bcc8,'originalSuggestionId':_0x2cd7b7['id'],'attributes':_0x2cd7b7['attributes'],'data':_0x2cd7b7['data']});const _0xc06d22=this['_getAttributeKey'](_0x2cd7b7);('formatBlock'==_0x2cd7b7['type']||_0xc06d22&&this['_isBlockAttribute'](_0xc06d22))&&(_0x8573e2=this['_model']['createPositionBefore'](_0x8573e2['parent'])),this['_addSuggestionMarker'](_0x12c216,_0x5ef353,_0x1bcc8,this['_model']['createRange'](_0x8573e2,_0x2fb82c));}['_findSuggestions'](_0x57ab1b,_0x3ac1b2=null){const _0x34ff23=[],_0x3b71c1=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x57ab1b)||(_0x57ab1b=[_0x57ab1b]);for(const _0x3a2972 of this['getSuggestions']()){if(!_0x3a2972['isInContent'])continue;if(_0x3ac1b2&&_0x3a2972['type']!=_0x3ac1b2)continue;let _0x23ccf9=!0x1;for(const _0x5e2603 of _0x3a2972['getRanges']()){for(const _0x24b962 of _0x57ab1b){const _0xd825d4=_0x24b962['start']['isEqual'](_0x5e2603['end'])||_0x24b962['end']['isEqual'](_0x5e2603['start']);if(_0xd825d4||_0x24b962['getIntersection'](_0x5e2603)){const _0x44ca9e=_0x24b962['containsRange'](_0x5e2603)&&Ut(this['_model']['schema'],_0x5e2603['start'],_0x24b962),_0x40da7b=_0x5e2603['containsRange'](_0x24b962)&&Ut(this['_model']['schema'],_0x24b962['start'],_0x5e2603);_0x34ff23['push']({'suggestion':_0x3a2972,'meta':{'isOwn':_0x3b71c1==_0x3a2972['author'],'isNextTo':_0xd825d4,'isInsideObject':_0x44ca9e,'containsRangeInObject':_0x40da7b}}),_0x23ccf9=!0x0;break;}}if(_0x23ccf9)break;}}return _0x34ff23;}['_addSuggestionMarker'](_0x3fd686,_0x5d49d0,_0x1e71f8,_0x325005,_0x31e916){this['_model']['change'](_0xc14dea=>{let _0x389f1b='suggestion:'+_0x3fd686+':'+_0x5d49d0+':'+_0x1e71f8;_0x31e916&&(_0x389f1b=_0x389f1b+':'+_0x31e916),_0xc14dea['addMarker'](_0x389f1b,{'range':_0x325005,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4c1ae4){const _0xabd786=_0x4c1ae4['previous'],_0x13b005=_0x4c1ae4['next'];_0x4c1ae4['previous']=null,_0x4c1ae4['next']=null,null!=_0xabd786&&_0xabd786['next']==_0x4c1ae4&&(_0xabd786['next']=_0x13b005),null!=_0x13b005&&_0x13b005['previous']==_0x4c1ae4&&(_0x13b005['previous']=_0xabd786),'ready'==this['_suggestionState']['get'](_0x4c1ae4)&&(this['_suggestionState']['set'](_0x4c1ae4,'removed'),this['fire']('suggestionUnloaded',_0x4c1ae4,_0xabd786,_0x13b005));}['_setSuggestionData'](_0x340257){const _0x721cbe=_0x340257['id'],_0xf61dbb=this['addSuggestionData'](_0x340257);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x8f13d0=this['editor']['plugins']['get']('PendingActions'),_0x381417=_0xf61dbb['hasComments'],_0x259a91=_0xf61dbb['subType']?_0xf61dbb['type']+':'+_0xf61dbb['subType']:_0xf61dbb['type'],_0x5dc8bc=this['editor']['locale'],_0x22b640=_0x8f13d0['add'](o(_0x5dc8bc,'PENDING_ACTION_SUGGESTION')),_0xf11240={'id':_0x721cbe,'type':_0x259a91,'hasComments':_0x381417,'data':_0x340257['data']||null,'originalSuggestionId':_0x340257['originalSuggestionId']||null,'attributes':_0xf61dbb['attributes']};this['_adapter']['addSuggestion'](_0xf11240)['then'](_0x35794f=>{_0xf61dbb['_saved']=!0x0,_0x8f13d0['remove'](_0x22b640),_0x35794f&&_0x35794f['createdAt']&&(this['_suggestions']['get'](_0x721cbe)['createdAt']=_0x35794f['createdAt']);})['catch'](_0x264311=>{throw _0x578e39('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xf61dbb['discard']();}),_0xf61dbb['stopListening'](),this['_suggestions']['delete'](_0xf61dbb['id']),this['_suggestionState']['delete'](_0xf61dbb),_0x264311;});}return _0xf61dbb;}['_isBlockAttribute'](_0x4554a6){return this['_blockAttributeKeys']['has'](_0x4554a6);}['_updateSuggestionData'](_0x2c985e,_0x1bc8f0){const _0x9890de=this['editor']['plugins']['get']('PendingActions'),_0xaa40fd=this['getSuggestion'](_0x2c985e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xaa40fd['_saved']){const _0x5b6a41=_0x9890de['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2c985e,_0x1bc8f0)['then'](()=>{_0x9890de['remove'](_0x5b6a41);});}else _0xaa40fd['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2c985e,_0x1bc8f0);});}}['_getSuggestionData'](_0x516f46){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3fd1ad('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x516f46);}['_handleNewSuggestionMarker'](_0x1a691c){const {id:_0x58b7cd,type:_0x409ad7,subType:_0x3b5595,authorId:_0x525d55}=this['_splitMarkerName'](_0x1a691c),_0x41b8eb=this['_suggestions']['get'](_0x58b7cd)||this['_createSuggestion'](_0x409ad7,_0x3b5595,_0x58b7cd,_0x525d55,{});switch(this['_checkSuggestionCorrectness'](_0x41b8eb,_0x409ad7,_0x3b5595,_0x525d55),this['_suggestionState']['get'](_0x41b8eb)){case'notReady':this['_getSuggestionData'](_0x58b7cd)['then'](_0x4bd8b3=>{let _0x12a0bd=Promise['resolve']();_0x4bd8b3['hasComments']&&(_0x12a0bd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x58b7cd})),_0x12a0bd['then'](()=>{this['addSuggestionData'](_0x4bd8b3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x41b8eb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x58b7cd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x41b8eb,'ready'),this['fire']('suggestionLoaded',_0x41b8eb);break;case'ready':this['fire']('suggestionChanged',_0x41b8eb);}return _0x41b8eb['addMarkerName'](_0x1a691c),_0x41b8eb;}['_refreshSuggestionsChain'](_0x1a535e){const _0x20bf34=Array['from'](_0x1a535e),_0x49c834=_0x20bf34['filter'](_0x215b65=>'attribute'==_0x215b65['type']);this['_refreshAttributeSuggestionsChain'](_0x49c834);const _0x17023e=_0x20bf34['filter'](_0x35b50a=>!_0x35b50a['isMultiRange']&&'attribute'!=_0x35b50a['type']),_0x7538cd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c21f4=>!_0x2c21f4['isMultiRange']&&'attribute'!=_0x2c21f4['type']),_0x235e09=_0x7538cd['filter'](_0x2e888c=>!_0x1a535e['has'](_0x2e888c)),_0x3870b9=new Map(_0x7538cd['map'](_0x7cc095=>[_0x7cc095,this['_suggestionFactory']['getSuggestionCallback'](_0x7cc095['type'],_0x7cc095['subType'],'chain')])),_0x1a1356=new Map(_0x7538cd['map'](_0x2806b3=>[_0x2806b3,_0x2806b3['getFirstRange']()])),_0x4de420=new Set(),_0x8f9e05=new Set();for(let _0x33d0b5=0x0;_0x33d0b5<_0x17023e['length'];_0x33d0b5++)_0x42de13(_0x17023e[_0x33d0b5],_0x17023e,_0x33d0b5+0x1);for(let _0x45f670=0x0;_0x45f670<_0x17023e['length'];_0x45f670++)_0x42de13(_0x17023e[_0x45f670],_0x235e09,0x0);const _0x10a42b=new Set();for(let _0x26b9a9=0x0;_0x26b9a9<_0x17023e['length'];_0x26b9a9++){const _0x30cd41=_0x17023e[_0x26b9a9];!_0x8f9e05['has'](_0x30cd41)&&_0x30cd41['previous']&&(_0x10a42b['add'](_0x30cd41['previous']),_0x30cd41['previous']['next']===_0x30cd41&&(_0x30cd41['previous']['next']=null),_0x30cd41['previous']=null),!_0x4de420['has'](_0x30cd41)&&_0x30cd41['next']&&(_0x10a42b['add'](_0x30cd41['next']),_0x30cd41['next']['previous']===_0x30cd41&&(_0x30cd41['next']['previous']=null),_0x30cd41['next']=null);}function _0x42de13(_0x4818a7,_0x49616f,_0x28cc31){for(let _0x3aa712=_0x28cc31;_0x3aa712<_0x49616f['length'];_0x3aa712++){const _0x211207=_0x4c8d7f(_0x4818a7,_0x49616f[_0x3aa712]);_0x211207&&(_0x211207[0x0]['next']=_0x211207[0x1],_0x211207[0x1]['previous']=_0x211207[0x0],_0x4de420['add'](_0x211207[0x0]),_0x8f9e05['add'](_0x211207[0x1]));}}function _0x4c8d7f(_0x3b57ca,_0x5dfecb){if(_0x3b57ca['author']['id']!==_0x5dfecb['author']['id'])return null;const _0x19d2ff=_0x3870b9['get'](_0x3b57ca)(_0x3b57ca,_0x5dfecb,_0x1a1356['get'](_0x3b57ca),_0x1a1356['get'](_0x5dfecb));if(!_0x19d2ff)return null;return _0x3870b9['get'](_0x5dfecb)(_0x3b57ca,_0x5dfecb,_0x1a1356['get'](_0x3b57ca),_0x1a1356['get'](_0x5dfecb))?_0x19d2ff[0x1]['commentThread']&&_0x19d2ff[0x1]['commentThread']['length']?null:_0x19d2ff:null;}_0x10a42b['size']&&this['_refreshSuggestionsChain'](_0x10a42b);}['_refreshAttributeSuggestionsChain'](_0x82e5fc){if(0x0==_0x82e5fc['length'])return;const _0x411387=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x264d32=>'attribute'==_0x264d32['type']&&_0x264d32['_isDataLoaded']),_0x5a53b2=[],_0x17f186=new Map();for(const _0x4e93a1 of _0x411387){const _0x2d070e=_0x12408f(_0x4e93a1['attributes']);_0x17f186['has'](_0x2d070e)||(_0x17f186['set'](_0x2d070e,_0x5a53b2['length']),_0x5a53b2['push']([]));const _0xaef6d1=_0x17f186['get'](_0x2d070e);_0x5a53b2[_0xaef6d1]['push'](_0x4e93a1);}!(function(){_0x5a53b2['sort']((_0x356307,_0x4efe50)=>{const _0x3415fc=_0x356307[0x0]['createdAt'],_0x1529c4=_0x4efe50[0x0]['createdAt'];return _0x3415fc==_0x1529c4?_0x356307[0x0]['attributes']['groupId']<_0x4efe50[0x0]['attributes']['groupId']?-0x1:0x1:_0x3415fc<_0x1529c4?-0x1:0x1;});for(const _0x1e82c7 of _0x5a53b2)_0x1e82c7['sort']((_0x117c53,_0x23aa9f)=>_0x117c53['id']<_0x23aa9f['id']?-0x1:0x1);}());for(let _0x9aa16=0x0;_0x9aa16<_0x5a53b2['length'];_0x9aa16++){if(0x0==_0x5a53b2[_0x9aa16]['length'])continue;const _0x33e056=[];for(let _0x1258dd=_0x9aa16+0x1;_0x1258dd<_0x5a53b2['length'];_0x1258dd++)0x0!=_0x5a53b2[_0x1258dd]['length']&&_0x63ec36(_0x5a53b2[_0x9aa16],_0x5a53b2[_0x1258dd])&&_0x33e056['push'](_0x1258dd);for(const _0x164df4 of _0x33e056)_0x5a53b2[_0x9aa16]=_0x5a53b2[_0x9aa16]['concat'](_0x5a53b2[_0x164df4]),_0x5a53b2[_0x164df4]=[];}for(const _0x1f2f4d of _0x5a53b2)for(let _0x58c615=0x0;_0x58c615<_0x1f2f4d['length'];_0x58c615++){const _0x2ba1b4=_0x1f2f4d[_0x58c615+0x1]||null;_0x1f2f4d[_0x58c615]['next']!==_0x2ba1b4&&(_0x1f2f4d[_0x58c615]['next']=_0x2ba1b4);}for(const _0x435f4f of _0x5a53b2)for(let _0x28001c=0x0;_0x28001c<_0x435f4f['length'];_0x28001c++){const _0x437c1f=_0x435f4f[_0x28001c-0x1]||null;_0x435f4f[_0x28001c]['previous']!==_0x437c1f&&(_0x435f4f[_0x28001c]['previous']=_0x437c1f);}function _0x63ec36(_0x367e9b,_0x268458){if(_0x367e9b[0x0]['attributes']['groupId']!==_0x268458[0x0]['attributes']['groupId']&&_0x367e9b[0x0]['author']!==_0x268458[0x0]['author'])return!0x1;if(!function(_0xe2be5f,_0x628105){if(!_0xe2be5f['hasComments']&&!_0x628105['hasComments'])return!0x0;if(_0xe2be5f['hasComments']&&_0x628105['hasComments'])return!0x1;if(_0xe2be5f['hasComments']&&_0x628105['createdAt']<_0xe2be5f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x628105['hasComments']&&_0xe2be5f['createdAt']<_0x628105['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x367e9b[0x0],_0x268458[0x0]))return!0x1;const _0x4f8c55=xt(_0x367e9b[0x0]['attributes'],'groupId'),_0xb529fa=xt(_0x268458[0x0]['attributes'],'groupId');if(!_0x28f5c1(_0x4f8c55,_0xb529fa))return!0x1;return!!_0x367e9b['every'](_0x8b2f69=>_0x268458['some'](_0x500126=>_0x8b2f69['getFirstRange']()['isEqual'](_0x500126['getFirstRange']())))&&_0x268458['every'](_0xa5333=>_0x367e9b['some'](_0x5ce3b0=>_0xa5333['getFirstRange']()['isEqual'](_0x5ce3b0['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x116cd5){const _0x1d26f8=Array['from'](_0x116cd5),_0x4f5592=this['getSuggestions']({'skipNotAttached':!0x0}),_0x28bd32=_0x4f5592['filter'](_0x49830e=>!_0x116cd5['has'](_0x49830e)),_0x528e33=new Map(_0x1d26f8['map'](_0x1309ce=>[_0x1309ce,this['_suggestionFactory']['getSuggestionCallback'](_0x1309ce['type'],_0x1309ce['subType'],'join')])),_0x31b762=new Map(_0x4f5592['map'](_0x38cd2b=>[_0x38cd2b,_0x38cd2b['getRanges']()]));for(let _0x2ae291=0x0;_0x2ae291<_0x1d26f8['length'];_0x2ae291++){if(_0x2d8999(this,_0x1d26f8[_0x2ae291],_0x1d26f8,_0x2ae291+0x1))return!0x0;}for(let _0x40a55f=0x0;_0x40a55f<_0x1d26f8['length'];_0x40a55f++){if(_0x2d8999(this,_0x1d26f8[_0x40a55f],_0x28bd32,0x0))return!0x0;}return!0x1;function _0x2d8999(_0x4d0327,_0x250fa8,_0x33e473,_0x4800af){for(let _0x3c8115=_0x4800af;_0x3c8115<_0x33e473['length'];_0x3c8115++){const _0x7a2981=_0x33e473[_0x3c8115];if(_0x7a2981['type']!==_0x250fa8['type']||_0x7a2981['author']['id']!==_0x250fa8['author']['id']||_0x7a2981['subType']!==_0x250fa8['subType'])continue;if(!qt(_0x250fa8,_0x7a2981))continue;if('attribute'==_0x250fa8['type']&&_0x250fa8['data']['oldValue']!=_0x7a2981['data']['oldValue'])continue;if('attribute'==_0x250fa8['type']&&_0x4d0327['_isBlockAttribute'](_0x250fa8['data']['key']))continue;if('formatBlock'==_0x250fa8['type']){const _0x4771c2=_0x4d0327['editor']['model'],_0x2817d7=_0x250fa8['getContainedElement']();if(_0x2817d7&&(_0x4771c2['schema']['isObject'](_0x2817d7)||_0x4771c2['schema']['isLimit'](_0x2817d7)))continue;}const _0x401808=_0x528e33['get'](_0x250fa8),_0xed0880=_0x31b762['get'](_0x250fa8),_0x20c9cd=_0x31b762['get'](_0x7a2981),_0x4df75c=_0x250fa8['commentThread']&&_0x250fa8['commentThread']['length'],_0x584b59=_0x7a2981['commentThread']&&_0x7a2981['commentThread']['length'];if(!_0x4df75c&&_0x401808(_0x20c9cd,_0xed0880))return _0x4d0327['_joinSuggestions'](_0x7a2981,_0x250fa8),_0x31b762['delete'](_0x250fa8),!0x0;if(!_0x584b59&&_0x401808(_0xed0880,_0x20c9cd))return _0x4d0327['_joinSuggestions'](_0x250fa8,_0x7a2981),_0x31b762['delete'](_0x7a2981),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1220fc,_0x2c707c){if(_0x1220fc['isMultiRange']){for(const _0x5d7e32 of _0x2c707c['getRanges']())_0x1220fc['addRange'](_0x5d7e32);}else{const _0x2fefba=_0x2c707c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1220fc,this['_model']['createRange'](_0x1220fc['getFirstRange']()['start'],_0x2fefba));}_0x2c707c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x122163,_0x4bb25f,_0x462e87){const _0x54d425=_0x122163['startsWith']('format')||_0x122163['startsWith']('attribute')?'FORMATTING':_0x122163['toUpperCase']();return o(this['editor']['locale'],_0x4bb25f+'_'+_0x54d425+'_SUGGESTION_ANNOUNCEMENT',_0x462e87);}['_initAriaMarkerChangeAnnouncements'](){const _0x813f97=this['editor'];if(!_0x813f97['ui'])return;const {ariaLiveAnnouncer:_0x1a333d}=_0x813f97['ui'];_0x295f33(this['_model'],({left:_0x22fed6,entered:_0x1a6733})=>{for(const _0x411706 of _0x22fed6){const {group:_0x2e9988,type:_0x62258}=this['_splitMarkerName'](_0x411706['name']);if('suggestion'===_0x2e9988){_0x1a333d['announce'](this['_getMarkerAnnouncementText'](_0x62258,'LEAVE'));break;}}for(const _0x67045 of _0x1a6733){const {group:_0x240245,type:_0x197ddd}=this['_splitMarkerName'](_0x67045['name']);if('suggestion'===_0x240245){_0x1a333d['announce'](this['_getMarkerAnnouncementText'](_0x197ddd,'ENTER',_0x2332d7(_0x52d2a6)));break;}}});}['_processAttributeChanges'](_0x4431ef){if(this['_recordAttributeSuggestions'])return!0x1;const _0x57b5d7=this['editor'],_0x47812c=_0x57b5d7['model']['document']['differ']['getChanges']();if(0x0==_0x47812c['length'])return!0x1;const _0xafb6b6=[],_0x237893=_0x47812c['filter'](_0x3437b5=>'attribute'==_0x3437b5['type']),_0x179245=_0x47812c['filter'](_0xc00132=>'insert'==_0xc00132['type']&&'$text'!=_0xc00132['name']),_0x10f616=_0x47812c['filter'](_0x5bed65=>'remove'==_0x5bed65['type']&&'$text'!=_0x5bed65['name']);for(const _0x6e0ce8 of _0x237893)_0xafb6b6['push']({'key':_0x6e0ce8['attributeKey'],'newValue':_0x6e0ce8['attributeNewValue'],'oldValue':_0x6e0ce8['attributeOldValue'],'range':Lt(_0x6e0ce8['range'],_0x57b5d7['model'])});for(const _0x42e45a of _0x179245){const _0x38b5cb=_0x10f616['find'](_0x3f9ff1=>_0x3f9ff1['position']['isEqual'](_0x42e45a['position']));_0x38b5cb&&_0xafb6b6['push']({'key':m,'newValue':_0x42e45a['name'],'oldValue':_0x38b5cb['name'],'range':_0x57b5d7['model']['createRangeOn'](_0x42e45a['position']['nodeAfter'])});}return 0x0!=_0xafb6b6['length']&&this['_reduceExistingSuggestions'](_0x4431ef,_0xafb6b6);}['_processAttributeSuggestions'](_0x34349a){let _0x3ba543=!0x1;const _0x48c76a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x913e8e=>_0x913e8e['data']['newRange']&&_0x913e8e['name']['startsWith']('suggestion:attribute:'));for(const _0x39d196 of _0x48c76a){const {subType:_0x4cf449,id:_0x27af7f}=this['_splitMarkerName'](_0x39d196['name']),_0x59541d=_0x4cf449['split']('|')[0x0];for(const _0x10a90f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x10a90f['id']!=_0x27af7f&&'attribute'==_0x10a90f['type']&&_0x10a90f['data']&&_0x10a90f['data']['key']==_0x59541d&&_0x10a90f['getFirstRange']()['isIntersecting'](_0x39d196['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x10a90f,_0x39d196['data']['newRange'],_0x34349a),_0x3ba543=!0x0);}return _0x3ba543;}['_recordAttributeChanges'](_0x2713c2){this['_recordAttributeSuggestions']=!0x0,_0x2713c2();}['_isRegisteredAttribute'](_0x161637){const _0x34059a=this['_isBlockAttribute'](_0x161637),_0x2f8dbb=this['_inlineAttributeKeys']['has'](_0x161637);return _0x34059a||_0x2f8dbb;}['_reduceExistingSuggestions'](_0x3a2f23,_0x4e9f35){if(0x0==_0x4e9f35['length'])return!0x1;let _0x2ea04c=!0x1;for(const _0x48fe2b of _0x4e9f35){const _0x1b2f9a=this['_findSuggestions'](_0x48fe2b['range'],'attribute')['filter'](_0x25be97=>!_0x25be97['meta']['isNextTo'])['map'](_0x132f8b=>_0x132f8b['suggestion']),_0x49338a=_0x12408f({'newValue':_0x48fe2b['newValue']});_0x1b2f9a['filter'](_0x296e7a=>{const [_0x3ca93e,_0x41d5f3]=_0x296e7a['subType']['split']('|');return _0x3ca93e==_0x48fe2b['key']&&_0x41d5f3!=_0x49338a;})['forEach'](_0x464de8=>{this['_reduceSuggestionAttributeRange'](_0x464de8,_0x48fe2b['range'],_0x3a2f23),_0x2ea04c=!0x0;});}return _0x2ea04c;}['_reduceSuggestionAttributeRange'](_0x417ace,_0x5316f3,_0x482878){const _0x23822c=_0x417ace['getFirstRange']()['getDifference'](_0x5316f3);0x0!==_0x23822c['length']?0x1!==_0x23822c['length']?this['_breakSuggestionMarker'](_0x417ace,_0x5316f3['start'],_0x5316f3['end']):this['_setSuggestionRange'](_0x417ace,_0x23822c[0x0]):_0x482878['removeMarker'](_0x417ace['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x52e9ba){this['_editor']=_0x52e9ba,this['_model']=_0x52e9ba['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x27ff3d,_0x500329,_0x4b30fc,_0x169e51,_0x1ce6b3,_0x24e4a7){return new u(this['_model'],{'type':_0x27ff3d,'subType':_0x500329,'id':_0x4b30fc,'author':_0x169e51,'creator':_0x169e51,'attributes':_0x1ce6b3,'onAttributesChange':_0x24e4a7,'onAccept':(..._0x21b620)=>this['getSuggestionCallback'](_0x27ff3d,_0x500329,'accept')(..._0x21b620),'onDiscard':(..._0x470456)=>this['getSuggestionCallback'](_0x27ff3d,_0x500329,'discard')(..._0x470456)});}['registerCustomCallback'](_0x706d4c,_0x3d82c0,_0x536254,_0x3a85fc){const _0x501c58=_0x706d4c+':'+_0x3d82c0+':'+_0x536254;this['_customCallbacks']['set'](_0x501c58,_0x3a85fc);}['getSuggestionCallback'](_0x58e331,_0x10feae,_0x3953a6){const _0x5395c9=_0x58e331+':'+_0x10feae+':'+_0x3953a6;return this['_customCallbacks']['get'](_0x5395c9)||this['_defaultCallbacks']['get'](_0x58e331+':'+_0x3953a6);}['_registerDefaultCallbacks'](){const _0x3b32c5=()=>!0x1,_0x425b07=_0x5b004=>{_0x5b004['sort']((_0x304235,_0xdd039)=>_0x304235['start']['isBefore'](_0xdd039['start'])?0x1:-0x1),this['_model']['change'](_0x36d63c=>{for(const _0x537635 of _0x5b004){let _0x58095a;_0x58095a=_0x537635['end']['isAtEnd']&&_0x537635['end']['parent']==_0x537635['start']['nodeAfter']?_0x36d63c['createSelection'](_0x537635['start']['nodeAfter'],'on'):_0x36d63c['createSelection'](_0x537635),this['_model']['deleteContent'](_0x58095a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xb72a7d=(_0x5d3f38,_0x826005)=>{_0x826005&&this['_model']['change'](_0x2e7570=>{const {commandName:_0x3456a5,commandParams:_0x257b25=[]}=_0x826005,_0x32622c=_0x5d3f38['map'](_0x1d1924=>(Vt(_0x1d1924)&&(_0x1d1924=this['_model']['createRange'](_0x1d1924['end'])),_0x1d1924))['filter'](_0x155ccb=>'$graveyard'!==_0x155ccb['root']['rootName']);if(_0x32622c['length']<0x1)return;const _0x14f245=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1b9e54=>_0x3f82e4['fromRange'](_0x1b9e54));_0x2e7570['setSelection'](_0x32622c);for(const _0x1e8c6a of this['_editor']['commands']['commands']())_0x1e8c6a['refresh']();_0x257b25['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3456a5,..._0x257b25);const _0x237e47=_0x14f245['filter'](_0x266d4d=>'$graveyard'!=_0x266d4d['root']['rootName']);_0x237e47['length']>0x0&&_0x2e7570['setSelection'](_0x237e47);for(const _0x4005ac of _0x14f245)_0x4005ac['detach']();});},_0x1bfbe7=(_0x766bfa,_0x523f9b)=>0x1==_0x766bfa['length']&&0x1==_0x523f9b['length']&&_0x766bfa[0x0]['end']['isEqual'](_0x523f9b[0x0]['start']),_0x1e09c5=(_0x5c05e1,_0x285eea,_0x143d29,_0x54e3b8)=>Ht(_0x5c05e1,_0x285eea,_0x143d29,_0x54e3b8)?[_0x5c05e1,_0x285eea]:Ht(_0x285eea,_0x5c05e1,_0x54e3b8,_0x143d29)?[_0x285eea,_0x5c05e1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3b32c5),this['_defaultCallbacks']['set']('insertion:discard',_0x425b07),this['_defaultCallbacks']['set']('insertion:join',_0x1bfbe7),this['_defaultCallbacks']['set']('insertion:chain',_0x1e09c5),this['_defaultCallbacks']['set']('deletion:accept',_0x425b07),this['_defaultCallbacks']['set']('deletion:discard',_0x3b32c5),this['_defaultCallbacks']['set']('deletion:join',_0x1bfbe7),this['_defaultCallbacks']['set']('deletion:chain',_0x1e09c5),this['_defaultCallbacks']['set']('formatInline:accept',_0xb72a7d),this['_defaultCallbacks']['set']('formatInline:discard',_0x3b32c5),this['_defaultCallbacks']['set']('formatInline:join',_0x1bfbe7),this['_defaultCallbacks']['set']('formatInline:chain',_0x3b32c5),this['_defaultCallbacks']['set']('formatBlock:accept',_0xb72a7d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3b32c5),this['_defaultCallbacks']['set']('formatBlock:join',_0x1bfbe7),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3b32c5),this['_defaultCallbacks']['set']('attribute:accept',_0x3b32c5),this['_defaultCallbacks']['set']('attribute:discard',(_0x58fe0d,_0x353573)=>{if(!_0x353573)return;const _0x1c2fcf=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2c9c2a=>{if(_0x353573['key']==m)for(const _0x10ade8 of _0x58fe0d){const _0xba99e0=_0x10ade8['start']['nodeAfter'],_0x3e074b=_0x353573['oldValue'];_0x2c9c2a['rename'](_0xba99e0,_0x3e074b);}else{if(_0x1c2fcf['_isBlockAttribute'](_0x353573['key'])){for(const _0x1cecda of _0x58fe0d)void 0x0!==_0x353573['oldValue']?_0x2c9c2a['setAttribute'](_0x353573['key'],_0x353573['oldValue'],_0x1cecda['start']['nodeAfter']):_0x2c9c2a['removeAttribute'](_0x353573['key'],_0x1cecda['start']['nodeAfter']);}else{for(const _0x4ca330 of _0x58fe0d)_0x353573['oldValue']?_0x2c9c2a['setAttribute'](_0x353573['key'],_0x353573['oldValue'],_0x4ca330):_0x2c9c2a['removeAttribute'](_0x353573['key'],_0x4ca330);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1bfbe7);}}function Ut(_0x4b38d9,_0x4b0917,_0x4c2f9c){for(const _0xd55380 of _0x4b0917['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xd55380['root']==_0xd55380)return!0x1;if(!_0x4c2f9c['containsItem'](_0xd55380))return!0x1;if(_0x4b38d9['isObject'](_0xd55380)||_0x4b38d9['isLimit'](_0xd55380))return!0x0;}return!0x1;}function Vt(_0x2ff050){return _0x2ff050['end']['parent']==_0x2ff050['start']['nodeAfter']&&_0x2ff050['end']['isAtStart'];}function Pt(_0x21284c,_0xc7c08c,_0x37ebee,_0x3980b1){const _0xe751b6=_0x10314a=>!_0x10314a['item']['is']('$textProxy')&&!_0x3980b1['isObject'](_0x10314a['item']),_0x2db08c=_0x21284c['start']['getLastMatchingPosition'](_0xe751b6),_0x1c4336=_0x21284c['end']['getLastMatchingPosition'](_0xe751b6,{'direction':'backward'});return(!_0x21284c['start']['isEqual'](_0x2db08c)||!_0x21284c['end']['isEqual'](_0x1c4336))&&(_0x2db08c['isBefore'](_0x1c4336)?_0x37ebee['updateMarker'](_0xc7c08c,{'range':_0x37ebee['createRange'](_0x2db08c,_0x1c4336)}):_0x37ebee['removeMarker'](_0xc7c08c),!0x0);}function Gt(_0x27b1e8){return _0x12408f(_0x27b1e8);}function Ft(_0x5d2e65){const _0x400130=_0x5d2e65['start']['nodeAfter'];return _0x400130&&_0x400130['is']('element');}function Lt(_0x5af3e5,_0x3d2024){return null==_0x5af3e5['end']['nodeBefore']&&_0x5af3e5['end']['parent']==_0x5af3e5['start']['nodeAfter']?Jt(_0x5af3e5['start']['nodeAfter'],_0x3d2024):_0x5af3e5;}function Jt(_0x47218d,_0x1be9d8){const _0x4ae606=_0x1be9d8['schema']['isObject'](_0x47218d)||_0x1be9d8['schema']['isSelectable'](_0x47218d);return _0x1be9d8['createRange'](_0x1be9d8['createPositionAt'](_0x47218d,'before'),_0x4ae606?_0x1be9d8['createPositionAfter'](_0x47218d):_0x1be9d8['createPositionAt'](_0x47218d,'end'));}function Ht(_0x5453ad,_0x528deb,_0xa12153,_0x22ebaa){return!!qt(_0x5453ad,_0x528deb)&&_0xa12153['end']['isEqual'](_0x22ebaa['start']);}function qt(_0x292762,_0x4f7021){if(!_0x292762['_isDataLoaded']||!_0x4f7021['_isDataLoaded'])return!0x1;const _0x35b960=new Set(Object['keys'](_0x292762['attributes'])),_0x283bc1=new Set(Object['keys'](_0x4f7021['attributes']));if(_0x35b960['delete']('groupId'),_0x283bc1['delete']('groupId'),0x0==_0x35b960['size']&&0x0==_0x283bc1['size'])return!0x0;if(_0x35b960['size']!=_0x283bc1['size'])return!0x1;const _0x593b7c={..._0x292762['attributes']},_0x4a6775={..._0x4f7021['attributes']};return delete _0x593b7c['groupId'],delete _0x4a6775['groupId'],JSON['stringify'](_0x593b7c)==JSON['stringify'](_0x4a6775);}function zt(_0x4acd89,_0x2d1fd4){const _0x5b3147=Kt(_0x4acd89['attributes']),_0x149570=Kt(_0x2d1fd4);if(!_0x4acd89['_isDataLoaded'])return!0x1;for(const _0x28d748 of Object['keys'](_0x149570))if(!_0x28f5c1(_0x5b3147[_0x28d748],_0x149570[_0x28d748]))return!0x1;return!0x0;}function Kt(_0x2ab0ee){const _0x4dc531=Object['assign']({},_0x2ab0ee);return delete _0x4dc531['skipNestingCheck'],delete _0x4dc531['tablePasteChainId'],_0x4dc531;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1512c7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x596832,_0x109c33,_0x543d81,_0x40c25b){super(),this['model']=_0x109c33,this['view']=_0x543d81,this['commentThreadController']=_0x40c25b,this['_editor']=_0x596832,this['_acceptCommand']=_0x596832['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x596832['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xa64278,_0x44c77e)=>_0xa64278||_0x44c77e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x72400a=>_0x72400a&&this['_editor']['model']['canEditAt'](_0x109c33['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x41fcd8=>_0x41fcd8&&this['_editor']['model']['canEditAt'](_0x109c33['getRanges']())),this['_pendingAction']=null,_0x543d81['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x543d81,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x543d81,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x543d81,'change:isDirty',()=>{_0x543d81['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 _0x3f646f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3f646f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0xf4a6e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x290cd2,_0x541cf8,_0x365cd5,_0x5ea34b){super(_0x290cd2),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2ccd81(_0x290cd2,o(_0x290cd2,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x541cf8['authoredAt']),this['bind']('authoredAt')['to'](_0x541cf8),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',_0x541cf8,'authoredAt',this,'descriptionParts',(_0x5e71fc,_0x478552,_0x5be1b7)=>{const _0xec5ade=_0x5be1b7['map'](_0x2a763a=>ns(_0x2a763a['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5e71fc-0x1,_0x541cf8['author']['name'],_0x478552?_0x5ea34b['formatDateTime'](_0x478552):'',new DOMParser()['parseFromString'](_0xec5ade,'text/html')['body']['textContent']]);}),this['focusables']=new _0x578ef1(),this['focusTracker']=new _0x196954(),this['keystrokes']=new _0x4eef77(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x458571=>_0x458571['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x541cf8,this['_localUser']=_0x365cd5,this['_config']=_0x5ea34b,_0x5ea34b['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x15095d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4760b5}=this['_config'];this['commentsListView']=new _0x4760b5(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',_0x4ab8ea=>_0x4ab8ea+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x559f99,_0x2359e0)=>_0x559f99||!!_0x2359e0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1d8243}=this['_config'],_0x155766=new _0x1d8243(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x18ee04=_0x155766['commentInputView'];return _0x155766['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x18ee04,'value',(_0x240281,_0x39ecfb,_0x4a4b23)=>!!_0x4a4b23||_0x240281&&!_0x39ecfb),_0x18ee04['on']('submit',(_0x2ee618,_0x45a4f9)=>{this['fire']('addComment',_0x45a4f9),_0x18ee04['editor']['setData']('');}),_0x18ee04['on']('cancel',()=>this['focus']()),_0x18ee04['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x155766;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x54fb52,_0x9a66e4,_0xe064ff,_0x264ab4){super(_0x54fb52,_0x9a66e4,_0xe064ff,_0x264ab4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b6206=>_0x3b6206&&_0x3b6206[0x0]?_0x3b6206[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5635c3,_0x57b1ee)=>{let _0x167790='';for(const _0x53d4ae of _0x5635c3)_0x167790+='<p>'+ns(_0x53d4ae['content'],_0x53d4ae['color'])+'</p>';return _0x57b1ee?_0x167790:ti(_0x167790,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x264ab4['SuggestionView'](_0x54fb52,_0x9a66e4,{'formatDateTime':_0x264ab4['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 _0x155c71=this['bindTemplate'],_0x7faef3=[this['suggestionView']];return this['commentsListView']&&_0x7faef3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x7faef3['push'](this['commentThreadInputView']),_0x7faef3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x155c71['if']('isActive','ck-suggestion-wrapper--active'),_0x155c71['to']('type',_0x3351ac=>'ck-suggestion-'+_0x3351ac),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':_0x155c71['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x7faef3};}['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 ue extends _0xf4a6e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x92fbe0,_0x2acbee,_0x5929e8){super(_0x92fbe0),this['_model']=_0x2acbee,this['_config']=_0x5929e8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2acbee),this['acceptButton']=this['_createButton'](o(_0x92fbe0,'Accept\x20suggestion'),_0x29ed75['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x92fbe0,'Discard\x20suggestion'),_0x29ed75['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x52c594(_0x92fbe0,_0x2acbee['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x578ef1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x196954(),this['keystrokes']=new _0x4eef77(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3e5171=>_0x3e5171['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3b4b73=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3b4b73['innerHTML']=this['description'],this['on']('change:description',(_0x16a3f3,_0x1a619c,_0x485ec0)=>{_0x3b4b73['innerHTML']=_0x485ec0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3664de=this['bindTemplate'],_0x19283d=[{'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':_0x3664de['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3664de['to']('authoredAt',_0x4c3ea1=>this['_config']['formatDateTime'](_0x4c3ea1))}]}]},{'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']&&_0x19283d['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':_0x19283d}]};}['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'](_0x59288d,_0x117581,_0xdf4035,_0x3e5dd6,_0x2c9c11){const _0x2ef7e7=new _0x46d834(this['locale']);return _0x2ef7e7['set']({'label':_0x59288d,'icon':_0x117581,'tooltip':!0x0,'tooltipPosition':_0x2c9c11}),_0x2ef7e7['extendTemplate']({'attributes':{'class':_0xdf4035}}),_0x2ef7e7['on']('execute',()=>{this['fire'](_0x3e5dd6,this['_model']['id']);}),_0x2ef7e7;}['_setupKeyboardNavigation'](){const _0x4c887b=this['element'];this['keystrokes']['listenTo'](_0x4c887b);for(const _0x3d4237 of this['focusables'])this['focusTracker']['add'](_0x3d4237['element']),this['keystrokes']['listenTo'](_0x3d4237['element']);this['keystrokes']['set']('enter',(_0x570767,_0x2556b2)=>{_0x4c887b===_0x570767['target']&&(this['focusCycler']['focusFirst'](),_0x2556b2());}),this['keystrokes']['set']('esc',(_0x51b842,_0x1da223)=>{_0x4c887b!==_0x51b842['target']&&(this['focus'](),_0x1da223());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x38bc3e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x59245a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9a2e24){super(_0x9a2e24),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x386fd1=this['editor']['config'];_0x386fd1['define']('trackChanges.SuggestionThreadView',de),_0x386fd1['define']('trackChanges.SuggestionView',ue),_0x386fd1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x386fd1['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1dde32,_0x11567c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3f734b,_0x280ecc]of this['_handleControllerBuffer']){const _0x1f6175=this['_suggestionToController']['has'](_0x3f734b);_0x1f6175||_0x280ecc?_0x1f6175&&_0x280ecc&&this['_destroyController'](_0x3f734b):this['_initializeController'](_0x3f734b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1dde32,_0x11567c);}['init'](){const _0x1816af=this['editor'],_0x4f3b9b=_0x1816af['plugins']['get']('TrackChangesEditing'),_0x141c71=_0x1816af['plugins']['get']('Annotations'),_0x4d76b7=_0x1816af['plugins']['get']('EditorAnnotations'),_0x230584=_0x1816af['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4d76b7['addSourceCollector'](()=>{const _0x52483b=[];for(const [_0x4887b1,_0x458c47]of Array['from'](this['_suggestionToController'])){const _0x23d963=_0x4887b1['getAllAdjacentSuggestions'](),_0x406bf0=[];for(const _0x4036f8 of _0x23d963){if(!_0x4036f8['isInContent'])continue;if(_0x4036f8['isMultiRange']){_0x406bf0['push'](..._0x4036f8['getRanges']());continue;}const _0x4ca728=_0x4036f8['getFirstRange']();if(_0x406bf0['length']>0x0){const _0x302dcc=_0x406bf0[0x0]['getJoined'](_0x4ca728);if(_0x302dcc){_0x406bf0[0x0]=_0x302dcc;continue;}}_0x406bf0['push'](_0x4ca728);}_0x52483b['push']([_0x458c47['view'],_0x406bf0]);}return _0x52483b;}),this['listenTo'](_0x4f3b9b,'suggestionLoaded',(_0x558ed0,_0x2ff18b)=>{this['listenTo'](_0x2ff18b,'change:previous',(_0x38ab28,_0x3eb17f,_0x177e63,_0xda44b1)=>{_0x2ff18b['isInContent']&&(null==_0x177e63?(this['_updateController'](_0xda44b1['head']),this['_handleSuggestionControllerDelayed'](_0x2ff18b,!0x1)):(this['_updateController'](_0x177e63['head']),null==_0xda44b1&&this['_handleSuggestionControllerDelayed'](_0x2ff18b,!0x0)));}),null!==_0x2ff18b['previous']?this['_updateController'](_0x2ff18b['head']):this['_handleSuggestionControllerDelayed'](_0x2ff18b,!0x1);}),this['listenTo'](_0x4f3b9b,'suggestionUnloaded',(_0x538eae,_0x208d55,_0x2e3987)=>{this['stopListening'](_0x208d55,'change:previous'),this['_handleControllerBuffer']['delete'](_0x208d55),this['_suggestionToController']['has'](_0x208d55)&&this['_destroyController'](_0x208d55),_0x2e3987&&this['_updateController'](_0x2e3987['head']);}),this['listenTo'](_0x4f3b9b,'suggestionChanged',(_0x137de1,_0x3c7084)=>{this['_updateController'](_0x3c7084);}),this['listenTo'](_0x141c71,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x230584,'addComment',(_0x100742,{threadId:_0x27da92,isFromAdapter:_0x4783dc})=>{if(_0x4783dc||!_0x4f3b9b['hasSuggestion'](_0x27da92))return;const _0x1a7363=_0x4f3b9b['getSuggestion'](_0x27da92);this['_suggestionToController']['get'](_0x1a7363)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x114ce6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x204223;for(const _0x3747f8 in _0x114ce6){const _0x1e0bdf=_0x3747f8,_0x1b413d=_0x114ce6[_0x1e0bdf];if('trackChangesLicenseKeyValid'==_0x1b413d||'trackChangesLicenseKeyInvalid'==_0x1b413d||'trackChangesLicenseKeyExpired'==_0x1b413d||'trackChangesLicenseKeyDomainLimit'==_0x1b413d||'trackChangesLicenseKeyNotAllowed'==_0x1b413d||'trackChangesLicenseKeyEvaluationLimit'==_0x1b413d||'trackChangesLicenseKeyTrialLimit'==_0x1b413d||'trackChangesLicenseKeyDevelopmentLimit'==_0x1b413d||'trackChangesLicenseKeyUsageLimit'==_0x1b413d){delete _0x114ce6[_0x1e0bdf],_0x204223=_0x1b413d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x204223&&_0x114ce6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x204223&&_0x114ce6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x204223&&_0x114ce6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x204223&&_0x114ce6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x204223&&_0x114ce6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x204223&&_0x114ce6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x204223&&_0x114ce6['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x204223&&_0x114ce6['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3cc578=this['editor']['plugins']['get']('Annotations'),_0x476af7=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc80d12=Array['from'](_0x3cc578['activeAnnotations'],_0x30756e=>_0x30756e['innerView'])['filter'](_0x57dd4d=>this['_viewToController']['has'](_0x57dd4d)),_0x2bfc3f=[];for(const _0x4f0fa3 of _0xc80d12){const _0x4e7a35=this['_viewToController']['get'](_0x4f0fa3)['model']['getAllAdjacentSuggestions']();_0x2bfc3f['push'](..._0x4e7a35['reduce']((_0x12c668,_0x4f2722)=>[..._0x12c668,..._0x4f2722['getMarkerNames']()],[]));}_0x476af7['activeMarkers']=_0x2bfc3f;}['_addUIComponentsToFactory'](){const _0x55eb8b=this['editor'],_0x3d1a82=_0x55eb8b['locale'],_0x1716d2=o(_0x3d1a82,'Track\x20changes'),_0x3ed8f9=new _0x57703b([{'type':'switchbutton','model':new _0x34f432({'withText':!0x0,'isToggleable':!0x0,'label':_0x1716d2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x34f432({'withText':!0x0,'label':o(_0x3d1a82,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x34f432({'withText':!0x0,'label':o(_0x3d1a82,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x34f432({'withText':!0x0,'label':o(_0x3d1a82,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x34f432({'withText':!0x0,'label':o(_0x3d1a82,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5caf9a of _0x3ed8f9)if(pe(_0x5caf9a)){const _0x2cc0e4=_0x55eb8b['commands']['get'](_0x5caf9a['model']['commandName']);_0x5caf9a['model']['bind']('isOn','isEnabled')['to'](_0x2cc0e4,'value','isEnabled');}_0x55eb8b['ui']['componentFactory']['add']('trackChanges',_0x480f6c=>this['_createToolbarButton'](_0x480f6c,_0x3ed8f9,_0x1716d2)),_0x55eb8b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x15248c=>this['_createMenuBarMenu'](_0x15248c,_0x3ed8f9,_0x1716d2));}['_createToolbarButton'](_0x439050,_0x540191,_0x784942){const _0x311743=_0xb5ae69(_0x439050,_0x28e447),_0x5d93b1=this['editor']['commands']['get']('trackChanges');_0x311743['buttonView']['set']({'tooltip':_0x784942,'label':_0x784942,'icon':Ce}),_0x311743['buttonView']['bind']('isOn')['to'](_0x5d93b1,'value'),_0x311743['buttonView']['on']('execute',()=>{_0x5d93b1['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x311743,_0x540191,{'role':'menu'});const _0x3e9197=[];for(const _0x4027ff of _0x540191)pe(_0x4027ff)&&_0x3e9197['push'](this['editor']['commands']['get'](_0x4027ff['model']['commandName']));const _0x7cb3c7=_0x311743['buttonView'];return _0x7cb3c7['actionView']['unbind']('isEnabled'),_0x7cb3c7['arrowView']['unbind']('isEnabled'),_0x7cb3c7['actionView']['bind']('isEnabled')['to'](_0x5d93b1,'isEnabled'),_0x7cb3c7['arrowView']['bind']('isEnabled')['toMany'](_0x3e9197,'isEnabled',(..._0x2bbf6d)=>_0x2bbf6d['some'](_0x4b4244=>_0x4b4244)),_0x311743['on']('execute',_0x30dc7f=>{this['editor']['execute'](_0x30dc7f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x311743;}['_createMenuBarMenu'](_0x211485,_0x1d8cb6,_0x43487c){const _0x48b2d3=new _0x328fab(_0x211485),_0x125d23=this['editor']['commands']['get']('trackChanges');_0x48b2d3['buttonView']['set']({'label':_0x43487c,'icon':Ce});const _0x30b24b=new _0x11e872(_0x211485);for(const _0x20c06c of _0x1d8cb6){if('separator'==_0x20c06c['type']){_0x30b24b['items']['add'](new _0x554bf2(_0x211485));continue;}const _0xe03bb6=new _0x10b09e(_0x211485,_0x48b2d3),_0x553d8a=new _0x124573(_0x211485),_0x2f6ace=_0x20c06c['model'];_0x553d8a['bind'](...Object['keys'](_0x2f6ace))['to'](_0x2f6ace),_0x553d8a['delegate']('execute')['to'](_0x48b2d3),_0x553d8a['on']('execute',()=>{this['editor']['execute'](_0x2f6ace['commandName']),this['editor']['editing']['view']['focus']();}),_0xe03bb6['children']['add'](_0x553d8a),_0x30b24b['items']['add'](_0xe03bb6);}return _0x48b2d3['bind']('isEnabled')['to'](_0x125d23,'isEnabled'),_0x48b2d3['panelView']['children']['add'](_0x30b24b),_0x48b2d3;}['_initializeController'](_0x42f6a7){const _0x3688ed=this['editor'],_0x28b892=_0x3688ed['config'],_0x2c8e58=_0x3688ed['plugins']['get']('Annotations'),_0x2be9d1=_0x3688ed['plugins']['get']('CommentsRepository'),_0x36e63a=_0x3688ed['plugins']['get']('EditorAnnotations'),_0x390dd8=_0x3688ed['plugins']['get'](_0x59245a)['me'],_0x543c7a=_0x28b892['get']('trackChanges')['SuggestionThreadView'],_0x11f62c=_0x28b892['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x20f49e,CommentThreadInputView:_0xc9b729}=_0x3688ed['plugins']['get']('CommentsUI');let _0x3ae0e1,_0x73a5f5,_0x55fa09;this['_annotationViews']['has'](_0x42f6a7['id'])?(_0x73a5f5=this['_annotationViews']['get'](_0x42f6a7['id']),_0x3ae0e1=_0x73a5f5['mainView']):(_0x3ae0e1=new _0x543c7a(_0x3688ed['locale'],_0x42f6a7,_0x390dd8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x28b892['get']('comments.editorConfig'),'licenseKey':_0x28b892['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x28b892['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x28b892['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x28b892['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2d1d61(_0x28b892['get']('locale')),'CommentView':_0x28b892['get']('comments')['CommentView'],'CommentsListView':_0x20f49e,'CommentThreadInputView':_0xc9b729,'SuggestionView':_0x11f62c}),_0x3ae0e1['suggestionView']['acceptButton']['on']('execute',()=>{_0x3688ed['editing']['view']['focus']();}),_0x3ae0e1['suggestionView']['discardButton']['on']('execute',()=>{_0x3688ed['editing']['view']['focus']();}),_0x73a5f5=_0x2c8e58['createAnnotationView'](this['editor']['locale'],_0x3ae0e1),_0x73a5f5['bind']('isDirty')['to'](_0x3ae0e1,'isDirty'),_0x73a5f5['bind']('length')['to'](_0x3ae0e1),_0x73a5f5['bind']('type')['to'](_0x3ae0e1,'type',_0x5736e1=>'suggestion-'+_0x5736e1),_0x3ae0e1['on']('escape',()=>{_0x55fa09['fire']('escape');}),this['_annotationViews']['set'](_0x42f6a7['id'],_0x73a5f5));const _0x382002=_0x2be9d1['createCommentThreadController'](_0x42f6a7['commentThread'],_0x3ae0e1),_0x13f42d=new ge(_0x3688ed,_0x42f6a7,_0x3ae0e1,_0x382002),_0x484b2d=_0x42f6a7['getAllAdjacentSuggestions']()['filter'](_0x58f60a=>_0x58f60a['isInContent']);_0x3ae0e1['descriptionParts']=_0x3688ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x484b2d),this['_suggestionToController']['set'](_0x42f6a7,_0x13f42d),this['_viewToController']['set'](_0x3ae0e1,_0x13f42d),_0x55fa09=_0x2c8e58['createAnnotation']({'view':_0x73a5f5,'target':()=>{const _0x2b7329=[],_0x4ef1da=_0x42f6a7['getAllAdjacentSuggestions']()['filter'](_0x4d752f=>_0x4d752f['isInContent']);for(const _0x21e61f of _0x4ef1da)_0x2b7329['push'](..._0x21e61f['getMarkers']());return _0x5c85ce(_0x3688ed['editing'],_0x2b7329);},'type':()=>'suggestion-'+_0x13f42d['view']['type']}),_0x2be9d1['_bindAnnotationToEditors'](_0x3ae0e1,_0x55fa09),_0x2c8e58['add'](_0x55fa09),_0x36e63a['registerAnnotation'](_0x55fa09);}['_destroyController'](_0xa569c6){const _0x28df59=this['editor']['plugins']['get']('CommentsRepository'),_0x24fead=this['editor']['plugins']['get']('Annotations'),_0x17bca2=this['_suggestionToController']['get'](_0xa569c6),_0x5637bb=_0x17bca2['view'],_0x2e4786=_0x24fead['getByInnerView'](_0x5637bb);_0x28df59['_unbindEditors'](_0x5637bb),_0x2e4786&&_0x24fead['remove'](_0x2e4786),this['_suggestionToController']['delete'](_0xa569c6),this['_viewToController']['delete'](_0x5637bb),_0x17bca2['destroy']();}['_updateController'](_0x174769){if(!_0x174769['isInContent']||!this['_suggestionToController']['has'](_0x174769))return;const _0x5740d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x239d3a=this['_suggestionToController']['get'](_0x174769),_0x3ffc83=_0x174769['getAllAdjacentSuggestions']();_0x239d3a['view']['descriptionParts']=_0x5740d8['descriptionFactory']['getDescriptions'](_0x3ffc83);}['destroy'](){for(const _0x5403bc of this['_suggestionToController']['keys']())this['_destroyController'](_0x5403bc);for(const _0x5f0ed4 of this['_annotationViews']['values']())_0x5f0ed4['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x113728){return'model'in _0x113728;}class k extends _0x38bc3e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3990ab){this['editor']['plugins']['get'](p)['adapter']=_0x3990ab;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x168adc){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x168adc);}['getSuggestions']({skipNotAttached:_0x32a734=!0x1,toJSON:_0x5be580=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x32a734,'toJSON':_0x5be580});}['getSuggestion'](_0x342ce7){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x342ce7);}}const w=['Pagination'];class T extends _0x38bc3e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xa4f2cc=this['editor'];if(_0xa4f2cc['config']['define']('trackChangesData.editorCreator',_0x5b455c=>{const _0x4cf5a6=_0xa4f2cc['model']['document']['getRootNames']()['reduce']((_0xb4486b,_0x44b5c9)=>(_0xb4486b[_0x44b5c9]='',_0xb4486b),{});return _0xa4f2cc['constructor']['create'](_0x4cf5a6,_0x5b455c);}),'function'!=typeof _0xa4f2cc['config']['get']('trackChangesData')['editorCreator'])throw new _0x3fd1ad('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xad3d75){return N(this['editor'],!0x0,_0xad3d75);}['getDataWithDiscardedSuggestions'](_0x48fe10){return N(this['editor'],!0x1,_0x48fe10);}}class D extends _0x38bc3e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfe1f75){function _0x5e680b(_0x180e8e){return _0x180e8e['map'](_0x3f0945=>String['fromCharCode'](_0x3f0945))['join']('');}super(_0xfe1f75),this['result']='end',_0xfe1f75[_0x5e680b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e680b([0x76,0x69,0x65,0x77])][_0x5e680b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e680b([0x61,0x75,0x74,0x6f]),_0xfe1f75[_0x5e680b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5e680b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e680b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5e680b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5e680b([0x6f,0x6b])});}['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(_0x34ebf1){return void 0x0!==_0x34ebf1['getRootsAttributes'];}async function N(_0x1d5761,_0x35282b,_0x1685f0){const _0x354ef9=_0x1791c5(_0x1d5761,w);_0x354ef9['plugins']['push'](p,D),_0x354ef9['rootsAttributes']=v(_0x1d5761)?_0x1d5761['getRootsAttributes']():void 0x0;const _0x46482c=document['createDocumentFragment'](),_0x17e069=_0x1d5761['config']['get']('trackChangesData')['editorCreator'],_0x520f6f=await _0x17e069(_0x354ef9,()=>function(_0x5caecb){const _0x2fc7f8=document['createElement']('div');return _0x5caecb['appendChild'](_0x2fc7f8),_0x2fc7f8;}(_0x46482c));!function(_0x3fd019,_0x38b8b3){const _0x526448=_0x3fd019['model']['document']['getRootNames']()['reduce']((_0x2eaf53,_0x2c018d)=>(_0x2eaf53[_0x2c018d]=_0x3fd019['data']['get']({'rootName':_0x2c018d}),_0x2eaf53),{}),_0x2dd534=_0x3fd019['plugins']['get']('Users')['users']['map'](_0x2d14af=>({'id':_0x2d14af['id'],'name':_0x2d14af['name']})),_0x5752ac=_0x3fd019['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf61551=_0x3fd019['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x46b9fc=_0x38b8b3['plugins']['get']('Users'),_0x1a6078=_0x38b8b3['plugins']['get']('TrackChangesEditing'),_0x2db2b5=_0x38b8b3['plugins']['get']('CommentsRepository');for(const _0x54c1b7 of _0x2db2b5['getCommentThreads']())_0x54c1b7['remove']();for(const _0x5c78f5 of _0x2dd534)_0x46b9fc['getUser'](_0x5c78f5['id'])||_0x46b9fc['addUser'](_0x5c78f5);_0x46b9fc['me']||_0x46b9fc['useAnonymousUser']();for(const _0x199d8a of _0xf61551)_0x2db2b5['addCommentThread'](_0x199d8a);for(const _0x116136 of _0x5752ac)_0x1a6078['addSuggestionData'](_0x116136);_0x38b8b3['data']['set'](_0x526448);}(_0x1d5761,_0x520f6f),_0x520f6f['execute'](_0x35282b?'acceptAllSuggestions':'discardAllSuggestions');const _0x1cb5b7=v(_0x520f6f)?_0x520f6f['getFullData'](_0x1685f0):_0x520f6f['data']['get'](_0x1685f0);return await _0x520f6f['destroy'](),_0x1cb5b7;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|