@ckeditor/ckeditor5-track-changes 44.3.0-alpha.2 → 44.3.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/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 +25 -25
- 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/previewfinalcontentcommand.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/emoji.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/replacesourcecommand.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/uploadcare.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/trackchangespreview.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/ui/view/trackchangespreviewview.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 Yt,Plugin as
|
|
24
|
-
_0x4ea30c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x440803,_0x209504){super(),this['id']=_0x209504['id'],this['type']=_0x209504['type'],this['subType']=_0x209504['subType']||null,this['author']=_0x209504['author'],this['creator']=_0x209504['creator']||_0x209504['author'],this['isExternal']=Boolean(_0x209504['attributes']&&_0x209504['attributes']['@external']),this['data']=null,this['_model']=_0x440803,this['_onAccept']=_0x209504['onAccept'],this['_onDiscard']=_0x209504['onDiscard'],this['_onAttributesChange']=_0x209504['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x209504['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 _0x77c53c=this;for(;_0x77c53c['previous'];)_0x77c53c=_0x77c53c['previous'];return _0x77c53c;}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'](_0x95366f){this['_markerNames']['add'](_0x95366f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4b68d4=>this['_model']['markers']['get'](_0x4b68d4))['filter'](_0x468a61=>_0x468a61);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x10a613=>{for(const _0x39c3a7 of this['getMarkers']())_0x10a613['removeMarker'](_0x39c3a7);}),this['_markerNames']['clear']();}['removeMarker'](_0xceb65){this['_model']['change'](_0x5c743b=>{_0x5c743b['removeMarker'](_0xceb65);}),this['_markerNames']['delete'](_0xceb65);}['addRange'](_0x323343){const _0x597428='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x597428),this['_model']['change'](_0x14bb4c=>{_0x14bb4c['addMarker'](_0x597428,{'range':_0x323343,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x23fcd8){for(const _0x54e062 of this['getRanges']())if(_0x54e062['isIntersecting'](_0x23fcd8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x28ab45=>_0x28ab45['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1ccb36,_0xfc159a)=>[..._0x1ccb36,..._0xfc159a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4fff37=this['getRanges']();if(0x1!=_0x4fff37['length'])return null;const _0x44d694=_0x4fff37[0x0],_0x51835d=_0x44d694['start']['nodeAfter'],_0x39a3f9=_0x44d694['end']['nodeBefore'];return _0x51835d instanceof _0xccc87e?_0x51835d!=_0x39a3f9?null:_0x51835d: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 _0x215338=[];let _0x43cc0b=this['head'];for(;_0x43cc0b;)_0x215338['push'](_0x43cc0b),_0x43cc0b=_0x43cc0b['next'];return _0x215338;}['setAttribute'](_0x4648b7,_0x35397e){const _0x50694=_0x13bcbd(this['attributes']);_0x1f21e4(_0x50694,_0x4648b7,_0x35397e),_0xabd137(_0x50694,this['attributes'])||(this['attributes']=_0x50694,this['_onAttributesChange'](_0x50694));}['removeAttribute'](_0xf07cb){const _0x5e6884=_0x13bcbd(this['attributes']);_0x511dc1(_0x5e6884,_0xf07cb),_0xabd137(_0x5e6884,this['attributes'])||(this['attributes']=_0x5e6884,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 _0x2a43ef()['substr'](0x1,0x5);}}function o(_0x33c27f,_0xbf7107,_0x5e0f16){const _0x39726f=_0x33c27f['t'],t=_0x33c27f['t'];switch(_0xbf7107){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x5e0f16);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5e0f16);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5e0f16);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5e0f16);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5e0f16);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',_0x5e0f16);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5e0f16);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x5e0f16);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5e0f16);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5e0f16);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5e0f16);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5e0f16);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5e0f16);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5e0f16);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5e0f16);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5e0f16);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5e0f16);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5e0f16);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5e0f16);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5e0f16);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5e0f16);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5e0f16);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5e0f16);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5e0f16);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5e0f16);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5e0f16);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5e0f16);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5e0f16);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5e0f16);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5e0f16);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5e0f16);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'},_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5e0f16);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5e0f16);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'},_0x5e0f16);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5e0f16);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 _0x39726f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5e0f16);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x39726f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5e0f16);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5e0f16);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'},_0x5e0f16);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'},_0x5e0f16);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'},_0x5e0f16);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xbf7107;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3742a7,_0x13ef3b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3742a7,this['_locale']=_0x13ef3b;}['getDescriptions'](_0x1b4dd2){const _0x1d2bdb=[],_0x3e282e=new Set(),_0x552b58=new Set();for(let _0x104188=0x0;_0x104188<_0x1b4dd2['length'];_0x104188++){const _0x981428=_0x1b4dd2[_0x104188];if(!_0x981428['isInContent'])continue;const _0xf7c0=this['_handleCustomCallbackDescription'](_0x981428);if(_0xf7c0){if(null!=_0x981428['subType']){if(_0x3e282e['has'](_0x981428['subType']))continue;_0x3e282e['add'](_0x981428['subType']);}_0x1d2bdb['push'](_0xf7c0);}else{if('attribute'!=_0x981428['type'])'insertion'!=_0x981428['type']&&'deletion'!=_0x981428['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1d2bdb,_0x981428,_0x1b4dd2[_0x104188+0x1]);else{const _0x5bb7ec=_0x981428['data']['key'];if(_0x552b58['has'](_0x5bb7ec))continue;_0x552b58['add'](_0x981428['data']['key']),_0x5bb7ec==m?this['_handleRenameSuggestionDescription'](_0x1d2bdb,_0x981428):this['_handleAttributeSuggestionDescription'](_0x1d2bdb,_0x981428);}}}return this['_resolveDescriptionItems'](_0x1d2bdb);}['registerDescriptionCallback'](_0x8b67e7){this['_customCallbacks']['push'](_0x8b67e7);}['registerElementLabel'](_0x467f7d,_0x53de42,_0x23ba98=_0x482ebf['normal']){'function'==typeof _0x467f7d?_0x29009f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x467f7d,'label':_0x53de42,'priority':_0x23ba98}):this['_itemLabels']['set'](_0x467f7d,_0x53de42);}['registerAttributeLabel'](_0x5ac50a,_0x3cb405){this['_attributeLabels']['set'](_0x5ac50a,_0x3cb405);}['getItemLabel'](_0x3886cb,_0xf3b39d=0x1){let _0x2b8842;for(const _0x3302ca of this['_itemLabelsCallbacks'])if(_0x3302ca['matchingCallback'](_0x3886cb)){_0x2b8842=_0x3302ca['label'];break;}return _0x2b8842||(_0x2b8842=this['_itemLabels']['get'](_0x3886cb['name'])),_0x2b8842?_0x2b8842(_0xf3b39d):0x1!==_0xf3b39d?_0xf3b39d+'\x20'+_0x3886cb['name']+'s':''+_0x3886cb['name'];}['_addDescriptionItems'](_0x3a6750,_0x2d0b4f){const _0x238054=_0x2d0b4f['getFirstRange']()['getWalker'](),_0x3cd372='insertion'==_0x2d0b4f['type']?'add':'remove';for(const _0x4be7b7 of _0x238054){const _0x4b2dda=_0x4be7b7['item'],_0x1a3dbf=_0x3a6750[_0x3a6750['length']-0x1];if(_0x4b2dda['is']('$textProxy'))_0x1a3dbf&&_0x1a3dbf['type']['indexOf']('Container')>-0x1&&_0x3a6750['pop'](),_0x1a3dbf&&'text'==_0x1a3dbf['type']?_0x1a3dbf[_0x3cd372]+=_0x4b2dda['data']:_0x3a6750['push']({'type':'text','add':'add'==_0x3cd372?_0x4b2dda['data']:'','remove':'remove'==_0x3cd372?_0x4b2dda['data']:''});else{if(this['_schema']['isObject'](_0x4b2dda)){const _0xa3bea7=_0x4b2dda;if(_0x1a3dbf&&_0x1a3dbf['type']['indexOf']('Container')>-0x1&&_0x3a6750['pop'](),'elementEnd'==_0x4be7b7['type'])continue;_0x1a3dbf&&_0x1a3dbf['type']==_0x3cd372+'Object'&&_0x1a3dbf['element']['name']==_0xa3bea7['name']?_0x1a3dbf['quantity']++:_0x3a6750['push']({'type':_0x3cd372+'Object','element':_0xa3bea7,'quantity':0x1}),_0x238054['skip'](_0x35a394=>!('elementEnd'==_0x35a394['type']&&_0x35a394['item']==_0x4b2dda));}else{if(this['_schema']['checkChild'](_0x4b2dda,'$text')||_0x4b2dda['is']('element','softBreak')){const _0x1cefa0=_0x4b2dda;if('add'==_0x3cd372&&'elementStart'==_0x4be7b7['type']||'remove'==_0x3cd372&&'elementEnd'==_0x4be7b7['type'])continue;if(_0x1a3dbf&&-0x1==_0x1a3dbf['type']['indexOf']('Container')){'text'==_0x1a3dbf['type']&&(_0x1a3dbf[_0x3cd372]+='\x0a');continue;}let _0x40a98e;if(_0x40a98e='add'==_0x3cd372?_0x1cefa0['nextSibling']&&!this['_schema']['isObject'](_0x1cefa0['nextSibling'])?_0x1cefa0['nextSibling']:null:_0x1cefa0['previousSibling']&&!this['_schema']['isObject'](_0x1cefa0['previousSibling'])?_0x1cefa0['previousSibling']:null,_0x1cefa0['isEmpty']||_0x40a98e&&_0x40a98e['isEmpty']){const _0x68cf9a=_0x40a98e&&_0x40a98e['isEmpty']?_0x40a98e:_0x1cefa0;_0x1a3dbf&&_0x1a3dbf['type']==_0x3cd372+'EmptyContainer'&&_0x1a3dbf['element']['name']==_0x68cf9a['name']?_0x1a3dbf['quantity']++:_0x3a6750['push']({'type':_0x3cd372+'EmptyContainer','element':_0x68cf9a,'quantity':0x1});}else _0x3a6750['push']({'type':_0x3cd372+'Container','element':_0x1cefa0});}}}}}['_resolveDescriptionItems'](_0x249d86){const _0xb892da=this['_locale'],_0x2fa748=[],_0x29e09a=[],_0x56e44a=[];for(const _0x2696a4 of _0x249d86)switch(_0x2696a4['type']){case'text':if(_0x2696a4['add']=_0x2696a4['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2696a4['remove']=_0x2696a4['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2696a4['add']&&''!=_0x2696a4['remove']){_0x2fa748['push']({'type':'replace','content':o(_0xb892da,'REPLACE_TEXT',['\x22'+_0x2696a4['remove']+'\x22','\x22'+_0x2696a4['add']+'\x22'])});continue;}if(null!=_0x2696a4['add']['match'](/^ +$/)){_0x2fa748['push']({'type':'insertion','content':o(_0xb892da,'*Insert:*\x20%0',o(_0xb892da,'ELEMENT_SPACE',_0x2696a4['add']['length']))});continue;}if(null!=_0x2696a4['remove']['match'](/^ +$/)){_0x2fa748['push']({'type':'deletion','content':o(_0xb892da,'*Remove:*\x20%0',o(_0xb892da,'ELEMENT_SPACE',_0x2696a4['remove']['length']))});continue;}if(''!=_0x2696a4['add']){_0x2fa748['push']({'type':'insertion','content':o(_0xb892da,'*Insert:*\x20%0','\x22'+_0x2696a4['add']+'\x22')});continue;}_0x2fa748['push']({'type':'deletion','content':o(_0xb892da,'*Remove:*\x20%0','\x22'+_0x2696a4['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2fa748['push']({'type':'insertion','content':o(_0xb892da,'*Insert:*\x20%0',this['getItemLabel'](_0x2696a4['element'],_0x2696a4['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2fa748['push']({'type':'deletion','content':o(_0xb892da,'*Remove:*\x20%0',this['getItemLabel'](_0x2696a4['element'],_0x2696a4['quantity']))});continue;case'addContainer':_0x2fa748['push']({'type':'insertion','content':o(_0xb892da,'*Split:*\x20%0',this['getItemLabel'](_0x2696a4['element'],_0x2696a4['quantity']))});continue;case'removeContainer':_0x2fa748['push']({'type':'deletion','content':o(_0xb892da,'*Merge:*\x20%0',this['getItemLabel'](_0x2696a4['element'],_0x2696a4['quantity']))});continue;case'addFormat':_0x29e09a['push'](_0x2696a4['key']);continue;case'removeFormat':_0x56e44a['push'](_0x2696a4['key']);continue;default:_0x2fa748['push'](_0x2696a4);}if(_0x29e09a['length']){const _0x1f714c=_0x29e09a['map'](_0x5464ba=>this['_attributeLabels']['has'](_0x5464ba)?this['_attributeLabels']['get'](_0x5464ba):_0x5464ba)['join'](',\x20');_0x2fa748['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1f714c)});}if(_0x56e44a['length']){const _0x101f59=_0x56e44a['map'](_0x3531ac=>this['_attributeLabels']['has'](_0x3531ac)?this['_attributeLabels']['get'](_0x3531ac):_0x3531ac)['join'](',\x20');_0x2fa748['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x101f59)});}return _0x2fa748;}['_handleCustomCallbackDescription'](_0x28a77a){for(const _0x5c05d1 of this['_customCallbacks']){const _0x5d426a=_0x5c05d1(_0x28a77a);if(_0x5d426a&&'type'in _0x5d426a)return _0x5d426a;}}['_handleAttributeSuggestionDescription'](_0x206f4d,_0x35f49c){const _0x272125=_0x35f49c['data'],_0x5690bb=void 0x0===_0x272125['newValue']?'removeFormat':'addFormat';_0x206f4d['push']({'type':_0x5690bb,'key':_0x272125['key']});}['_handleRenameSuggestionDescription'](_0x3f3334,_0xf7aa79){_0x3f3334['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xf7aa79['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4d8240,_0x5e07a2,_0x2c095b){if(this['_addDescriptionItems'](_0x4d8240,_0x5e07a2),_0x2c095b&&_0x2c095b['getFirstRange']()&&!_0x5e07a2['getFirstRange']()['end']['isEqual'](_0x2c095b['getFirstRange']()['start'])){const _0x1d88f2=_0x4d8240[_0x4d8240['length']-0x1],_0x2a52d4='insertion'==_0x5e07a2['type']?'add':'remove';_0x1d88f2&&'text'==_0x1d88f2['type']&&(_0x1d88f2[_0x2a52d4]+='\x0a');}}}class U extends _0xe53f34{['afterInit'](){const _0x165b04=this['editor'],_0x2a4df4=_0x165b04['plugins']['get']('TrackChangesEditing');_0x165b04['commands']['get']('showAIAssistant')&&_0x2a4df4['enableCommand']('showAIAssistant');}}class V extends _0xe53f34{['afterInit'](){const _0x5a4cf3=this['editor'],_0x37ed46=_0x5a4cf3['locale'];if(!_0x5a4cf3['plugins']['has']('AlignmentEditing'))return;const _0x2fab23=_0x5a4cf3['plugins']['get']('TrackChangesEditing');_0x2fab23['enableDefaultAttributesIntegration']('alignment'),_0x2fab23['registerBlockAttribute']('alignment'),_0x2fab23['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x37ed46,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x329b2f=this['editor'],_0x52c11d=_0x329b2f['locale'];_0x329b2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x530ff9=>{if('formatBlock'!=_0x530ff9['type'])return;const {data:_0x188660}=_0x530ff9;if(_0x188660&&'alignment'==_0x188660['commandName']){const _0xc567c7=_0x188660['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x52c11d,'*Format:*\x20%0',function(_0x2425ac){switch(_0x2425ac){case'left':return o(_0x52c11d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x52c11d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x52c11d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x52c11d,'FORMAT_JUSTIFY_TEXT');}}(_0xc567c7))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xe53f34{['afterInit'](){const _0x1060a2=this['editor'],_0x15ca56=_0x1060a2['plugins']['get']('TrackChangesEditing'),_0x3f4d98=_0x1060a2['locale'];for(const _0xf0b6f8 of ti){if(!_0x1060a2['plugins']['has'](_0xf0b6f8))continue;const _0x33fcec=_0xf0b6f8['slice'](0x0,-0x7)['toLowerCase'](),_0x263b0e='FORMAT_'+_0x33fcec['toUpperCase']();_0x15ca56['enableDefaultAttributesIntegration'](_0x33fcec),_0x15ca56['registerInlineAttribute'](_0x33fcec),_0x15ca56['descriptionFactory']['registerAttributeLabel'](_0x33fcec,o(_0x3f4d98,_0x263b0e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb739ba=this['editor'],_0xee2b0=_0xb739ba['locale'],_0x56c5e5=_0xb739ba['plugins']['get']('TrackChangesEditing');function _0x423c3a(_0x314196,_0x3b0414){_0x56c5e5['descriptionFactory']['registerDescriptionCallback'](_0x368087=>{if('formatInline'!=_0x368087['type'])return;const {data:_0xf96f3f}=_0x368087;return _0xf96f3f&&_0xf96f3f['commandName']===_0x314196?_0xf96f3f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xee2b0,'*Format:*\x20%0',_0x3b0414)}:{'type':'format','content':o(_0xee2b0,'*Remove\x20format:*\x20%0',_0x3b0414)}:void 0x0;});}_0x423c3a('bold',o(_0xee2b0,'FORMAT_BOLD')),_0x423c3a('italic',o(_0xee2b0,'FORMAT_ITALIC')),_0x423c3a('underline',o(_0xee2b0,'FORMAT_UNDERLINE')),_0x423c3a('code',o(_0xee2b0,'FORMAT_CODE')),_0x423c3a('strikethrough',o(_0xee2b0,'FORMAT_STRIKETHROUGH')),_0x423c3a('subscript',o(_0xee2b0,'FORMAT_SUBSCRIPT')),_0x423c3a('superscript',o(_0xee2b0,'FORMAT_SUPERSCRIPT'));}}class F extends _0xe53f34{['afterInit'](){const _0x3843e0=this['editor'],_0x3fa31d=_0x3843e0['locale'];if(!_0x3843e0['plugins']['has']('BlockQuoteEditing'))return;const _0x5ae57c=_0x3843e0['plugins']['get']('TrackChangesEditing'),_0x4c26a8=this['editor']['commands']['get']('blockQuote');_0x5ae57c['enableCommand']('blockQuote',(_0xd6e36a,_0x30ffe2={})=>{const _0x4bd5d2=this['editor']['model']['document']['selection'],_0x576abb=_0x30ffe2&&void 0x0!==_0x30ffe2['forceValue']?_0x30ffe2['forceValue']:!_0x4c26a8['value'];let _0x5c6095=[];if(_0x576abb){const _0x58571c=Array['from'](_0x4bd5d2['getSelectedBlocks']())['filter'](_0x4bed91=>oo(_0x4bed91)||function(_0xa1571d,_0x41ad89){const _0x748db4=_0x41ad89['checkChild'](_0xa1571d['parent'],'blockQuote'),_0x597b6d=_0x41ad89['checkChild'](['$root','blockQuote'],_0xa1571d);return _0x748db4&&_0x597b6d;}(_0x4bed91,this['editor']['model']['schema']));_0x5c6095=to(_0x58571c,_0x3843e0['model']);}else{const _0x3c5e49=Array['from'](_0x4bd5d2['getSelectedBlocks']())['filter'](_0x4c9b20=>oo(_0x4c9b20));_0x5c6095=to(_0x3c5e49,_0x3843e0['model']);}_0x3843e0['model']['change'](()=>{for(const _0x21955b of _0x5c6095)_0x5ae57c['markBlockFormat'](_0x21955b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x576abb}]});});}),_0x5ae57c['descriptionFactory']['registerDescriptionCallback'](_0x595ce8=>{const {data:_0x99d26b}=_0x595ce8;if(_0x99d26b&&'blockQuote'==_0x99d26b['commandName']){const _0x4a8d10=o(_0x3fa31d,'ELEMENT_BLOCK_QUOTE');return _0x99d26b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fa31d,'*Set\x20format:*\x20%0',_0x4a8d10)}:{'type':'format','content':o(_0x3fa31d,'*Remove\x20format:*\x20%0',_0x4a8d10)};}});}}function oo(_0x195860){return'blockQuote'==_0x195860['parent']['name'];}class L extends _0xe53f34{['afterInit'](){const _0x352fbb=this['editor'],_0x26aedd=_0x352fbb['locale'],_0x2117b6=_0x352fbb['plugins']['get']('TrackChangesEditing');_0x352fbb['plugins']['has']('BookmarkEditing')&&(_0x2117b6['enableCommand']('insertBookmark'),_0x2117b6['enableDefaultAttributesIntegration']('updateBookmark'),_0x2117b6['registerBlockAttribute']('bookmarkId'),_0x2117b6['descriptionFactory']['registerDescriptionCallback'](_0x40bfa4=>{if('insertion'!=_0x40bfa4['type']&&'deletion'!=_0x40bfa4['type']&&'attribute'!=_0x40bfa4['type'])return;const _0xbd8f04=_0x40bfa4['getContainedElement']();if(null==_0xbd8f04)return;if(!_0xbd8f04['is']('element','bookmark'))return;const _0x65ac92=_0xbd8f04['getAttribute']('bookmarkId');if('insertion'==_0x40bfa4['type'])return{'type':'insertion','content':o(_0x26aedd,'*Insert:*\x20%0','\x22'+_0x65ac92+'\x22\x20'+o(_0x26aedd,'ELEMENT_BOOKMARK'))};if('deletion'==_0x40bfa4['type'])return{'type':'deletion','content':o(_0x26aedd,'*Remove:*\x20%0','\x22'+_0x65ac92+'\x22\x20'+o(_0x26aedd,'ELEMENT_BOOKMARK'))};const {data:_0x4b384b}=_0x40bfa4;if(!_0x4b384b||'bookmarkId'!=_0x4b384b['key'])return;return{'type':'format','content':o(_0x26aedd,'*Set\x20bookmark:*\x20%0','\x22'+_0x4b384b['newValue']+'\x22')};}));}}class J extends _0xe53f34{['afterInit'](){const _0x5c213d=this['editor'];_0x5c213d['plugins']['has']('CaseChange')&&(_0x5c213d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5c213d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5c213d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xe53f34{['afterInit'](){const _0x1584fa=this['editor'];_0x1584fa['commands']['get']('ckbox')&&_0x1584fa['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0xe53f34{['afterInit'](){const _0x3b6c2e=this['editor'];if(!_0x3b6c2e['plugins']['has']('CodeBlock'))return;const _0x1f6a1c=_0x3b6c2e['plugins']['get']('TrackChangesEditing'),_0x3012a1=_0x3b6c2e['locale'],_0x35ab6f=_0x3b6c2e['config']['get']('codeBlock')['languages'],_0xbec2d1=_0x3b6c2e['commands']['get']('codeBlock');_0x1f6a1c['enableCommand']('indentCodeBlock'),_0x1f6a1c['enableCommand']('outdentCodeBlock'),_0x1f6a1c['enableCommand']('codeBlock',(_0x5c6089,_0x4c0a53={})=>{const _0x4a5a1a=_0x3b6c2e['model'],_0x3e67c5=_0x3b6c2e['model']['document']['selection'],_0x33f719=_0x4c0a53&&void 0x0!==_0x4c0a53['forceValue']?_0x4c0a53['forceValue']:!_0xbec2d1['value'];let _0x158046;_0x4c0a53['language']||(_0x4c0a53['language']=_0x35ab6f[0x0]['language']),_0x158046=_0x33f719?Array['from'](_0x3e67c5['getSelectedBlocks']())['filter'](_0x466031=>eo(_0x466031)||function(_0x26d6a4,_0x4df5cc){if(_0x26d6a4['is']('rootElement')||_0x4df5cc['isLimit'](_0x26d6a4))return!0x1;return _0x4df5cc['checkChild'](_0x26d6a4['parent'],'codeBlock');}(_0x466031,_0x4a5a1a['schema'])):Array['from'](_0x3e67c5['getSelectedBlocks']())['filter'](_0x1aab8d=>eo(_0x1aab8d));const _0x959278=to(_0x158046,_0x4a5a1a);_0x4a5a1a['change'](()=>{for(const _0x2e37b1 of _0x959278)_0x1f6a1c['markBlockFormat'](_0x2e37b1,{'commandName':'codeBlock','commandParams':[{..._0x4c0a53,'forceValue':_0x33f719}],'formatGroupId':'blockName'});});}),(_0x1f6a1c['descriptionFactory']['registerElementLabel']('codeBlock',_0x2ed186=>o(_0x3012a1,'ELEMENT_CODE_BLOCK',_0x2ed186)),_0x1f6a1c['descriptionFactory']['registerDescriptionCallback'](_0x35a833=>{if('formatBlock'!=_0x35a833['type'])return;const _0x161b3b=_0x3012a1['t'],{data:_0x51dffb}=_0x35a833;if(!_0x51dffb||'codeBlock'!=_0x51dffb['commandName'])return;const _0x265758=_0x51dffb['commandParams'][0x0]['language'],_0x5e5496=_0x161b3b(_0x35ab6f['find'](_0x1e4ad0=>_0x1e4ad0['language']===_0x265758)['label'])['toLowerCase']();return _0x51dffb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3012a1,'*Set\x20format:*\x20%0',o(_0x3012a1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5e5496+')')}:{'type':'format','content':o(_0x3012a1,'*Remove\x20format:*\x20%0',o(_0x3012a1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x16a146){return'codeBlock'==_0x16a146['name'];}class z extends _0xe53f34{['afterInit'](){const _0x2f00b3=this['editor'];if(!_0x2f00b3['plugins']['has']('CommentsEditing'))return;_0x2f00b3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3aaa1c,_0x2db109,_0x5e5fd2){const _0x25dfbf=[];for(const _0xc91f18 of _0x2db109['getItems']())_0xc91f18['hasAttribute'](_0x3aaa1c)&&_0x25dfbf['push'](_0x5e5fd2['createRangeOn'](_0xc91f18));return _0x25dfbf;}function De(_0x37ba32,_0x56b0f9,{showActiveMarker:_0x3c348e=!0x0}={}){const _0x3b1ebd=_0x37ba32['plugins']['get']('TrackChangesEditing');return(_0x3b7f0f,_0x59f837,_0x5b3ff3)=>{if(!_0x5b3ff3['consumable']['test'](_0x59f837['markerRange'],_0x3b7f0f['name']))return;const _0x48cb02=_0x59f837['markerRange']['getWalker'](),_0x1805d4=_0x59f837['markerRange']['start'],_0xb4c25d=_0x37ba32['model']['schema'];let _0x30d177=null,_0x79f58d=null,_0x45bc1c=!0x1,_0x448749=!0x1;for(const _0x347999 of _0x48cb02){const _0x54d7ff=_0x347999['item'];_0x45bc1c=_0x45bc1c||_0xb4c25d['isContent'](_0x54d7ff);const _0x39c823=_0x5b3ff3['mapper']['toViewElement'](_0x54d7ff);if(_0x39c823&&_0x39c823['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x347999['type']&&(_0xb4c25d['isBlock'](_0x54d7ff)&&!_0xb4c25d['isLimit'](_0x54d7ff)&&(_0x54d7ff['nextSibling']||_0x1805d4['isAtEnd']?_0x30d177&&_0x30d177['parent']==_0x54d7ff||(_0x30d177=_0x54d7ff,_0x577f94(_0x347999['previousPosition']),_0x448749=!0x0):_0x79f58d=_0x79f58d||_0x347999['previousPosition']));}function _0x577f94(_0x5bff5f){const {authorId:_0x1591db}=_0x3b1ebd['_splitMarkerName'](_0x59f837['markerName']),_0x5a207c=_0x5b3ff3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56b0f9,'data-author-id':_0x1591db}),_0x351d07=_0x5b3ff3['mapper']['toViewPosition'](_0x5bff5f);_0x3c348e&&_0x3b1ebd['activeMarkers']['includes'](_0x59f837['markerName'])&&_0x5b3ff3['writer']['addClass']('ck-suggestion-marker--active',_0x5a207c),_0x5b3ff3['writer']['insert'](_0x351d07,_0x5a207c),_0x5b3ff3['mapper']['bindElementToMarker'](_0x5a207c,_0x59f837['markerName']);}_0x45bc1c||_0x448749||!_0x79f58d||_0x577f94(_0x79f58d);};}class K extends _0xe53f34{static get['requires'](){return[_0x391110];}['init'](){const _0x47fabc=this['editor'],_0x1bf7d4=_0x47fabc['plugins']['get']('TrackChangesEditing');_0x1bf7d4['enableCommand']('delete');const _0x4402cd=_0x47fabc['commands']['get']('deleteForward');_0x1bf7d4['enableCommand']('deleteForward',(_0x12e78c,_0x3182ec={})=>{const _0x37b17a=_0x47fabc['model']['createSelection'](_0x47fabc['model']['document']['selection']);_0x37b17a['isCollapsed']&&_0x47fabc['model']['modifySelection'](_0x37b17a,{'direction':'forward','unit':_0x3182ec['unit']});const _0x32d479=_0x37b17a['getFirstRange'](),_0x4fef73=_0x49f219['fromRange'](_0x32d479);let _0xc7a580;_0x12e78c(_0x3182ec),_0xc7a580='$graveyard'==_0x4fef73['root']['rootName']?_0x47fabc['model']['createRange'](_0x32d479['start']):_0x47fabc['model']['createRange'](_0x4fef73['start'],_0x4fef73['end']),_0x4fef73['detach'](),_0x47fabc['model']['enqueueChange'](_0x4402cd['buffer']['batch'],_0x499893=>{_0x4402cd['buffer']['lock'](),_0x499893['setSelection'](_0x499893['createRange'](_0xc7a580['end'])),_0x4402cd['buffer']['unlock']();});}),_0x47fabc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x47fabc,'merge'),{'priority':'high'}),_0x47fabc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x573c1f,_0x179944,_0xc71735)=>{_0xc71735['options']['showSuggestionHighlights']&&De(_0x47fabc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x573c1f,_0x179944,_0xc71735);},{'priority':'high'}),_0x47fabc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x30f696,_0x478f02,_0xe456b2)=>{const _0x437aaf=_0xe456b2['mapper']['markerNameToElements'](_0x478f02['markerName']);if(_0x437aaf){for(const _0x4e6c6b of _0x437aaf)_0x4e6c6b['is']('uiElement')&&(_0xe456b2['mapper']['unbindElementFromMarkerName'](_0x4e6c6b,_0x478f02['markerName']),_0xe456b2['writer']['remove'](_0x4e6c6b));}},{'priority':'high'});}}class W extends _0xe53f34{['afterInit'](){const _0x138ad7=this['editor'];if(!_0x138ad7['plugins']['has']('ListEditing'))return;const _0x5effbc=_0x138ad7['locale'],_0x42dcbe=_0x138ad7['plugins']['get']('TrackChangesEditing'),_0x101a06=_0x138ad7['plugins']['has']('TodoListEditing'),_0x11b2fd=!!_0x138ad7['config']['get']('list.multiBlock');function _0x2a3b3c(_0x1648ee){return{'type':'format','content':''+o(_0x5effbc,'*Set\x20format:*\x20%0',_0x1648ee)};}function _0x4b9748(_0xfe7cc0){return{'type':'format','content':''+o(_0x5effbc,'*Remove\x20format:*\x20%0',_0xfe7cc0)};}_0x42dcbe['enableDefaultAttributesIntegration']('numberedList'),_0x42dcbe['enableDefaultAttributesIntegration']('bulletedList'),_0x42dcbe['enableDefaultAttributesIntegration']('customNumberedList'),_0x42dcbe['enableDefaultAttributesIntegration']('customBulletedList'),_0x42dcbe['enableDefaultAttributesIntegration']('indentList'),_0x42dcbe['enableDefaultAttributesIntegration']('outdentList'),_0x42dcbe['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x42dcbe['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x42dcbe['registerBlockAttribute']('listItemId'),_0x42dcbe['registerBlockAttribute']('listType'),_0x42dcbe['registerBlockAttribute']('listIndent'),_0x11b2fd&&(_0x42dcbe['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x42dcbe['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x101a06&&(_0x42dcbe['enableDefaultAttributesIntegration']('todoList'),_0x42dcbe['enableDefaultAttributesIntegration']('checkTodoList'),_0x42dcbe['registerBlockAttribute']('todoListChecked'),_0x42dcbe['descriptionFactory']['registerDescriptionCallback'](_0x42fa5c=>{const {data:_0x10167a}=_0x42fa5c;if(_0x10167a&&'todoListChecked'==_0x10167a['key'])return{'type':'format','content':_0x10167a['newValue']?o(_0x5effbc,'*Check\x20item*'):o(_0x5effbc,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x6983c7=>{if(_0x6983c7['batch']['isUndo'])return!0x1;let _0x296716=!0x1;const _0x3c2f70=_0x42dcbe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xad2fe2=>'todoListChecked'===_0x42dcbe['_getAttributeKey'](_0xad2fe2));for(const _0x30eeaa of _0x3c2f70){'todo'!=_0x30eeaa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x42dcbe['_findSuggestions'](_0x30eeaa['getFirstRange'](),'attribute')['find'](_0x33ca7a=>'listType'===_0x42dcbe['_getAttributeKey'](_0x33ca7a['suggestion']))||(_0x6983c7['removeMarker'](_0x30eeaa['getFirstMarker']()),_0x296716=!0x0));}return _0x296716;})),_0x42dcbe['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5effbc,'FORMAT_INDENT'));const _0x3d43ed={'type':'format','content':''};_0x42dcbe['descriptionFactory']['registerDescriptionCallback'](_0x51de52=>{const {data:_0x34571f}=_0x51de52;if(!_0x34571f||'listType'!=_0x34571f['key'])return;let _0x5dea62=_0x51de52['head'];for(;_0x5dea62;){if(_0x5dea62['data']&&(('listStyle'==_0x5dea62['data']['key']||'listMarkerStyle'==_0x5dea62['data']['key'])&&(_0x5dea62['data']['newValue']&&'default'!=_0x5dea62['data']['newValue']||'default'!=_0x5dea62['data']['oldValue']&&!_0x34571f['newValue'])||!_0x11b2fd&&_0x5dea62['data']['key']==m))return _0x3d43ed;_0x5dea62=_0x5dea62['next'];}if(null==_0x34571f['newValue'])switch(_0x34571f['oldValue']){case'bulleted':return _0x4b9748(o(_0x5effbc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b9748(o(_0x5effbc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b9748(o(_0x5effbc,'ELEMENT_TODO_LIST'));}switch(_0x34571f['newValue']){case'bulleted':return _0x2a3b3c(o(_0x5effbc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a3b3c(o(_0x5effbc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a3b3c(o(_0x5effbc,'ELEMENT_TODO_LIST'));}}),_0x42dcbe['descriptionFactory']['registerDescriptionCallback'](_0xe16309=>{const {data:_0x38c509}=_0xe16309;if(_0x38c509&&'listIndent'==_0x38c509['key'])return null==_0x38c509['newValue']||null==_0x38c509['oldValue']&&0x0==_0x38c509['newValue']?_0x3d43ed:void 0x0;}),_0x42dcbe['descriptionFactory']['registerDescriptionCallback'](_0x5e3ab4=>{if('attribute'!=_0x5e3ab4['type'])return;const {data:_0x4f6b0e}=_0x5e3ab4;if(!_0x4f6b0e||'listItemId'!=_0x4f6b0e['key'])return;const _0x3bcddd=Te(_0x5e3ab4);return'newValue'==_0x3bcddd?{'type':'format','content':o(_0x5effbc,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3bcddd?{'type':'format','content':o(_0x5effbc,'*Split:*\x20list\x20item')}:_0x3d43ed;}),_0x138ad7['model']['document']['registerPostFixer'](_0x577426=>this['listItemIdFixer'](_0x577426)),_0x138ad7['model']['document']['registerPostFixer'](_0x42e87a=>this['noTrackChangesFixer'](_0x42e87a)),_0x138ad7['model']['document']['on']('change:data',(_0x214e2c,_0x3454ce)=>{if(_0x3454ce['isUndo']||!_0x3454ce['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x52eb30){if(_0x52eb30['batch']['isUndo']||!_0x52eb30['batch']['isLocal'])return!0x1;let _0x5cbbbb=!0x1;const _0x2287e0=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39bf74=>_0x39bf74['data']&&'listItemId'==_0x39bf74['data']['key'])['filter'](_0x587388=>_0x587388['data']['newValue']&&_0x587388['data']['oldValue']);for(const _0x255515 of _0x2287e0)Te(_0x255515)||(_0x52eb30['removeMarker'](_0x255515['getFirstMarker']()),_0x5cbbbb=!0x0);return _0x5cbbbb;}['noTrackChangesFixer'](_0x1610dd){if(_0x1610dd['batch']['isUndo']||!_0x1610dd['batch']['isLocal'])return!0x1;const _0x1c4238=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1c4238['trackChangesCommand']['value'])return!0x1;let _0x426083=!0x1;const _0x3e3abe=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x481899=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xfee0a=>'attribute'==_0xfee0a['type'])['filter'](_0x31ceeb=>_0x3e3abe['includes'](_0x31ceeb['attributeKey']));if(0x0==_0x481899['length'])return _0x426083;for(const _0x51ccac of _0x481899){const _0x149bbc=_0x1c4238['_findSuggestions'](_0x51ccac['range'],'attribute')['filter'](_0x4559d9=>!_0x4559d9['meta']['isNextTo'])['map'](_0x59f42b=>_0x59f42b['suggestion'])['filter'](_0x329051=>{const _0x517942=_0x1c4238['_getAttributeKey'](_0x329051);return _0x3e3abe['includes'](_0x517942);});if(_0x149bbc['length']){for(const _0x21c7e9 of _0x149bbc)_0x1610dd['removeMarker'](_0x21c7e9['getFirstMarker']());_0x426083=!0x0;}}return _0x426083;}['assureChains'](){const _0x367d59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x382dd2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x24299a;const _0x55f7c0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x42487a=>{if(_0x42487a['data']['oldRange']||!_0x42487a['data']['newRange'])return null;if(!_0x42487a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x10b95a}=_0x367d59['_splitMarkerName'](_0x42487a['name']);if(!_0x367d59['hasSuggestion'](_0x10b95a))return null;const _0x5b26d8=_0x367d59['getSuggestion'](_0x10b95a);return _0x382dd2['includes'](_0x5b26d8['data']['key']);})['map'](_0x3cfe45=>{const {id:_0x1f1e6c}=_0x367d59['_splitMarkerName'](_0x3cfe45['name']),_0x5ada5a=_0x367d59['getSuggestion'](_0x1f1e6c);return _0x24299a=_0x5ada5a['attributes']['groupId'],_0x5ada5a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x55f7c0['size'])return;const _0x3bb4ed=_0x367d59['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d0fe4=>'attribute'==_0x5d0fe4['type']&&_0x5d0fe4['data']&&_0x382dd2['includes'](_0x5d0fe4['data']['key'])&&_0x5d0fe4['attributes']['groupId']!=_0x24299a)['map'](_0x3c5a49=>({'listItem':_0x3c5a49['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3c5a49['attributes']['groupId']})),_0x46291d=new Set();for(const {groupId:_0x2053fe,listItem:_0x47e147}of _0x3bb4ed)_0x55f7c0['has'](_0x47e147)&&_0x46291d['add'](_0x2053fe);for(const _0x6268a6 of _0x367d59['getSuggestions']())_0x46291d['has'](_0x6268a6['attributes']['groupId'])&&_0x6268a6['setAttribute']('groupId',_0x24299a);}['_supportLegacySuggestions'](){const _0x372a19=this['editor'],_0xa2dfd=_0x372a19['locale'],_0x40234f=_0x372a19['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x40234f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1ab0bd,_0x8549cb){const _0x37e4ad=[];for(let _0x1973b4 of _0x1ab0bd)_0x1973b4['start']['nodeAfter']===_0x1973b4['end']['parent']&&(_0x1973b4=_0x372a19['model']['createRange'](_0x372a19['model']['createPositionAt'](_0x1973b4['start']['nodeAfter'],0x0))),_0x37e4ad['push'](_0x1973b4);_0x372a19['model']['change'](_0x3fdddc=>{const _0x1f94ed=_0x372a19['model']['document']['selection'],_0x5ac8e3=Array['from'](_0x1f94ed['getRanges']())['map'](_0x539c5b=>_0x49f219['fromRange'](_0x539c5b));_0x3fdddc['setSelection'](_0x37e4ad),_0x372a19['commands']['get'](_0x8549cb['commandName'])['refresh'](),_0x8549cb['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x372a19['execute'](_0x8549cb['commandName'],..._0x8549cb['commandParams']),_0x3fdddc['setSelection'](_0x5ac8e3);for(const _0x16032d of _0x5ac8e3)_0x16032d['detach']();});}),_0x40234f['descriptionFactory']['registerElementLabel'](function(_0x1a8496){const _0x2b0fcf=!_0x372a19['model']['schema']['isObject'](_0x1a8496),_0x5ed02f=_0x1a8496['previousSibling'],_0x8a2770=_0x1a8496['nextSibling'],_0x2b3866=_0x1a8496['getAttribute']('listItemId'),_0x4e2c84=!_0x5ed02f||_0x5ed02f['getAttribute']('listItemId')!==_0x2b3866,_0x294b6f=!_0x8a2770||_0x8a2770['getAttribute']('listItemId')!==_0x2b3866;return _0x2b0fcf&&Boolean(_0x2b3866)&&_0x4e2c84&&_0x294b6f;},_0x1f9349=>o(_0xa2dfd,'ELEMENT_LIST_ITEM',_0x1f9349));}['_registerLegacyDescription'](){const _0x4febf5=this['editor'],_0x35f8f4=_0x4febf5['locale'];function _0x56f0e2(_0x1a159d){const _0x1d9dcb=_0x4febf5['commands']['get']('bulletedList')['value'],_0x394285=_0x4febf5['commands']['get']('numberedList')['value'];return'numberedList'===_0x1a159d?_0x1d9dcb:_0x394285;}_0x4febf5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5285ea){if('formatBlock'!=_0x5285ea['type'])return;const {data:_0x363ee6}=_0x5285ea;if(!_0x363ee6)return;let _0x2143de,_0x63fcdd,_0x3c8ff8,_0x621274;switch(_0x363ee6['commandName']){case'bulletedList':_0x3c8ff8=_0x363ee6['commandParams'][0x0]['forceValue'],_0x621274=_0x56f0e2(_0x363ee6['commandName']),_0x2143de=_0x3c8ff8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x621274&&_0x4febf5['config']['get']('list.multiBlock')||(_0x2143de='*Change\x20to:*\x20%0'),_0x63fcdd={'type':'format','content':o(_0x35f8f4,_0x2143de,o(_0x35f8f4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3c8ff8=_0x363ee6['commandParams'][0x0]['forceValue'],_0x621274=_0x56f0e2(_0x363ee6['commandName']),_0x2143de=_0x3c8ff8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x621274&&_0x4febf5['config']['get']('list.multiBlock')||(_0x2143de='*Change\x20to:*\x20%0'),_0x63fcdd={'type':'format','content':o(_0x35f8f4,_0x2143de,o(_0x35f8f4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2143de='*Indent:*\x20%0',_0x63fcdd={'type':'format','content':o(_0x35f8f4,_0x2143de,o(_0x35f8f4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2143de=function(_0x557e53){const _0x1b485f=_0x557e53['getFirstRange']();let _0x10a103=_0x1b485f['start']['nodeAfter'];for(;_0x10a103&&_0x1b485f['containsItem'](_0x10a103);){if(_0x10a103['getAttribute']('listIndent')>0x0)return!0x1;_0x10a103=_0x10a103['nextSibling'];}return!0x0;}(_0x5285ea)?o(_0x35f8f4,'*Format:*\x20remove\x20from\x20%0',o(_0x35f8f4,function(_0x1baf47){return'ELEMENT_'+_0x1baf47['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5285ea))):o(_0x35f8f4,'*Outdent:*\x20%0',o(_0x35f8f4,'ELEMENT_LIST_ITEM')),_0x63fcdd={'type':'format','content':_0x2143de};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x363ee6['multipleBlocks']&&(_0x2143de='*Merge:*\x20%0',_0x63fcdd={'type':'deletion','content':o(_0x35f8f4,_0x2143de,o(_0x35f8f4,'ELEMENT_LIST_ITEM'))});}return _0x63fcdd;});}}function Te(_0x3b64ec){let _0x33dd52=_0x3b64ec['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x33dd52;){const _0x3b547b=_0x33dd52['getAttribute']('listItemId');if(!_0x3b547b)return!0x1;if(_0x3b547b==_0x3b64ec['data']['newValue'])return'newValue';if(_0x3b547b==_0x3b64ec['data']['oldValue'])return'oldValue';_0x33dd52=_0x33dd52['previousSibling'];}return!0x1;}class Se extends _0xe53f34{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1b0856=this['editor']['config']['get']('list.properties'),_0x448260=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b0856['styles']&&(_0x448260['enableDefaultAttributesIntegration']('listStyle'),_0x448260['registerBlockAttribute']('listStyle')),_0x1b0856['reversed']&&(_0x448260['enableDefaultAttributesIntegration']('listReversed'),_0x448260['registerBlockAttribute']('listReversed')),_0x1b0856['startIndex']&&(_0x448260['enableDefaultAttributesIntegration']('listStart'),_0x448260['registerBlockAttribute']('listStart'));const _0x5aba88={'type':'format','content':''};_0x448260['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x726086=this['editor']['locale'];_0x448260['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x726086,'FORMAT_LIST_REVERSED')),_0x448260['descriptionFactory']['registerDescriptionCallback'](_0x110b27=>{const {data:_0x1e5471}=_0x110b27;if(_0x1e5471&&'listReversed'==_0x1e5471['key'])return null==_0x1e5471['newValue']||0x0==_0x1e5471['newValue']&&null==_0x1e5471['oldValue']?_0x5aba88:void 0x0;}),_0x448260['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x726086,'FORMAT_LIST_START')),_0x448260['descriptionFactory']['registerDescriptionCallback'](_0xa15869=>{const {data:_0x3c5f8f}=_0xa15869;if(_0x3c5f8f&&'listStart'==_0x3c5f8f['key'])return null==_0x3c5f8f['newValue']||0x1==_0x3c5f8f['newValue']&&null==_0x3c5f8f['oldValue']?_0x5aba88:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x38137e=>{if(_0x38137e['batch']['isUndo'])return!0x1;let _0x59901a=!0x1;const _0x35486d=_0x448260['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x369e11=>{const _0x28b567=_0x448260['_getAttributeKey'](_0x369e11);return'listStart'==_0x28b567||'listReversed'==_0x28b567;});for(const _0xe3d362 of _0x35486d){const _0x265d02=_0xe3d362['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x265d02||'customNumbered'==_0x265d02)continue;_0x448260['_findSuggestions'](_0xe3d362['getFirstRange'](),'attribute')['find'](_0x5a0dfe=>'listType'==_0x448260['_getAttributeKey'](_0x5a0dfe['suggestion']))||(_0x38137e['removeMarker'](_0xe3d362['getFirstMarker']()),_0x59901a=!0x0);}return _0x59901a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1b7285){const _0xa4d73d=this['editor']['locale'],{data:_0x4f37b2}=_0x1b7285,_0x9898b5={'type':'format','content':''};if(!_0x4f37b2||'listStyle'!=_0x4f37b2['key'])return;if(!_0x4f37b2['oldValue'])return'default'==_0x4f37b2['newValue']?_0x9898b5:{'type':'format','content':''+o(_0xa4d73d,'*Set\x20format:*\x20%0',o(_0xa4d73d,this['_getTranslationKeyForListStyle'](_0x4f37b2['newValue'])))};if(!_0x4f37b2['newValue']){if('default'==_0x4f37b2['oldValue'])return _0x9898b5;let _0x32cae3=_0x1b7285['head'];for(;_0x32cae3;){if(_0x32cae3['data']&&'listType'==_0x32cae3['data']['key']&&_0x32cae3['data']['newValue'])return _0x9898b5;_0x32cae3=_0x32cae3['next'];}return{'type':'format','content':''+o(_0xa4d73d,'*Remove\x20format:*\x20%0',o(_0xa4d73d,this['_getTranslationKeyForListStyle'](_0x4f37b2['oldValue'])))};}if('default'!=_0x4f37b2['newValue'])return{'type':'format','content':''+o(_0xa4d73d,'*Set\x20format:*\x20%0',o(_0xa4d73d,this['_getTranslationKeyForListStyle'](_0x4f37b2['newValue'])))};let _0x39ae51=_0x1b7285['head'];for(;_0x39ae51;){if(_0x39ae51['data']&&'listType'==_0x39ae51['data']['key']&&_0x39ae51['data']['newValue']&&_0x39ae51['data']['oldValue'])return _0x9898b5;_0x39ae51=_0x39ae51['next'];}return{'type':'format','content':o(_0xa4d73d,'*Set\x20format:*\x20%0',o(_0xa4d73d,'ELEMENT_'+_0x1b7285['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5d4490=this['editor'],_0x16d8cd=_0x5d4490['locale'];_0x5d4490['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3181eb=>{if('formatBlock'!=_0x3181eb['type'])return;const {data:_0x20f6b7}=_0x3181eb;if(!_0x20f6b7)return;let _0x95f729,_0x233339;switch(_0x20f6b7['commandName']){case'listStyle':_0x95f729='*Change\x20to:*\x20%0',_0x233339={'type':'format','content':o(_0x16d8cd,_0x95f729,o(_0x16d8cd,this['_getTranslationKeyForListStyle'](_0x20f6b7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x95f729=_0x20f6b7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x233339={'type':'format','content':o(_0x16d8cd,_0x95f729)};break;case'listStart':_0x95f729='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x233339={'type':'format','content':o(_0x16d8cd,_0x95f729,_0x20f6b7['commandParams'][0x0]['startIndex'])};}return _0x233339;});}['_getTranslationKeyForListStyle'](_0x5771fa){return'ELEMENT_'+function(_0x3b6bc1){if(_e['includes'](_0x3b6bc1))return'bulleted';if(Re['includes'](_0x3b6bc1))return'numbered';return null;}(_0x5771fa)['toUpperCase']()+'_LIST_'+_0x5771fa['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0xe53f34{['afterInit'](){const _0x161689=this['editor'];_0x161689['commands']['get']('emoji')&&_0x161689['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0xe53f34{static get['requires'](){return[_0x530a3e];}['init'](){const _0x3315b5=this['editor'],_0x1ab0fb=_0x3315b5['plugins']['get']('TrackChangesEditing'),_0x594180=_0x3315b5['commands']['get']('enter');_0x1ab0fb['enableCommand']('enter',()=>{_0x3315b5['model']['change'](_0x41ae02=>{const _0x118677=_0x3315b5['model']['document']['selection'],_0x13a172=_0x118677['getFirstPosition'](),_0x3f143b=_0x49f219['fromRange'](_0x118677['getFirstRange']());if(_0x594180['enterBlock'](_0x41ae02)){const _0xac9845=_0x3315b5['model']['createPositionAt'](_0x13a172['parent']['nextSibling'],0x0),_0x4163c1=_0x41ae02['createRange'](_0x13a172,_0xac9845);_0x1ab0fb['markInsertion'](_0x4163c1);}else _0x41ae02['setSelection'](_0x41ae02['createRange'](_0x3f143b['end']));_0x3f143b['detach'](),_0x594180['fire']('afterExecute',{'writer':_0x41ae02});});}),_0x3315b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3315b5,'split'),{'priority':'high'}),_0x3315b5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1c3c0b,_0xfbbe48,_0x49edcc)=>{const _0x39c4e7=_0x49edcc['mapper']['markerNameToElements'](_0xfbbe48['markerName']);if(_0x39c4e7){for(const _0x3a7c22 of _0x39c4e7)_0x3a7c22['hasClass']('ck-suggestion-marker-split')&&(_0x49edcc['mapper']['unbindElementFromMarkerName'](_0x3a7c22,_0xfbbe48['markerName']),_0x49edcc['writer']['remove'](_0x3a7c22));}},{'priority':'high'}),_0x3315b5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xfa9917,_0xba5e36,_0x43de17)=>{_0x43de17['options']['showSuggestionHighlights']&&De(_0x3315b5,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xfa9917,_0xba5e36,_0x43de17);},{'priority':'high'});}}class Z extends _0xe53f34{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1ab4a5=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ab4a5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1ab4a5['enableCommand']('findNext'),_0x1ab4a5['enableCommand']('findPrevious'),_0x1ab4a5['enableCommand']('replace'),_0x1ab4a5['enableCommand']('replaceAll');}['handleFindCommand'](_0x5e9429,_0x20eef8,_0x501ce2={}){const _0xd7e1c6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5e9429(_0x45299b=>{let _0x416ee4=('string'==typeof _0x20eef8?_0xd7e1c6['findByTextCallback'](_0x20eef8,_0x501ce2):_0x20eef8)(_0x45299b);Array['isArray'](_0x416ee4)&&(_0x416ee4={'results':_0x416ee4,'searchText':'string'==typeof _0x20eef8?_0x20eef8:''});const _0x9d0bf4=_0x416ee4['results']['filter'](_0x5e6afc=>!0x1===this['_isInDeletionRange'](_0x5e6afc,_0x45299b['item']));return{..._0x416ee4,'results':_0x9d0bf4};},_0x501ce2);}['_isInDeletionRange'](_0x4cc678,_0x589f9b){const _0x47b16d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x589f9b,_0x4cc678['start']),this['editor']['model']['createPositionAt'](_0x589f9b,_0x4cc678['end']));for(const _0x4211c5 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x47b16d['getIntersection'](_0x4211c5['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0xe53f34{['afterInit'](){const _0x3fda21=this['editor']['locale'],_0x482338=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xf09bdc,commandName:_0x87b30a}of ro)this['editor']['plugins']['has'](_0xf09bdc)&&(_0x482338['enableDefaultAttributesIntegration'](_0x87b30a),_0x482338['registerInlineAttribute'](_0x87b30a));_0x482338['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3fda21,'FORMAT_FONT_SIZE')),_0x482338['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3fda21,'FORMAT_FONT_FAMILY')),_0x482338['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3fda21,'FORMAT_FONT_COLOR')),_0x482338['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3fda21,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29c6f5=this['editor'],_0x30a9a6=_0x29c6f5['locale'];_0x29c6f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16c458=>{const _0x41d885=_0x30a9a6['t'];if('formatInline'!=_0x16c458['type'])return;const {data:_0x390fb7}=_0x16c458;if(null!=_0x390fb7){if('fontSize'==_0x390fb7['commandName']){const _0x2e795a=_0x390fb7['commandParams'][0x0]['value'];if(_0x2e795a){const _0x42a426=_0x41d885(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x48f34f=>_0x48f34f['model']==_0x2e795a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x30a9a6,'*Set\x20font\x20size:*\x20%0',_0x42a426)};}return{'type':'format','content':o(_0x30a9a6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x390fb7['commandName']){const _0x34ee50=_0x390fb7['commandParams'][0x0]['value'];return _0x34ee50?{'type':'format','content':o(_0x30a9a6,'*Set\x20font\x20family:*\x20%0',_0x34ee50)}:{'type':'format','content':o(_0x30a9a6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x390fb7['commandName']){const _0x43e299=_0x390fb7['commandParams'][0x0]['value'];if(_0x43e299){const _0x439954=_0x3d1be8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x39286e=>_0x39286e['model']==_0x43e299);let _0x473016=_0x43e299,_0x3fa0fd='';return _0x439954&&(_0x473016=_0x439954['label'],_0x3fa0fd=_0x41d885(_0x473016)['toLowerCase']()),{'type':'format','content':o(_0x30a9a6,'*Set\x20font\x20color:*\x20%0',_0x3fa0fd)['trim'](),'color':{'value':_0x43e299,'title':_0x3fa0fd||_0x473016}};}return{'type':'format','content':o(_0x30a9a6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x390fb7['commandName']){const _0x443f0b=_0x390fb7['commandParams'][0x0]['value'];if(_0x443f0b){const _0x58b054=_0x3d1be8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ff32e=>_0x2ff32e['model']==_0x443f0b);let _0x41cb00=_0x443f0b,_0x2e6221='';return _0x58b054&&(_0x41cb00=_0x58b054['label'],_0x2e6221=_0x41d885(_0x41cb00)['toLowerCase']()),{'type':'format','content':o(_0x30a9a6,'*Set\x20font\x20background\x20color:*\x20%0',_0x2e6221)['trim'](),'color':{'value':_0x443f0b,'title':_0x2e6221||_0x41cb00}};}return{'type':'format','content':o(_0x30a9a6,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0xe53f34{['afterInit'](){const _0x13fa48=this['editor'],_0x34ad96=_0x13fa48['plugins']['get']('TrackChangesEditing'),_0x612f59=_0x13fa48['commands']['get']('copyFormat'),_0x66afcd=_0x13fa48['commands']['get']('pasteFormat');_0x612f59&&_0x66afcd&&(_0x34ad96['enableDefaultAttributesIntegration']('pasteFormat'),_0x34ad96['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1dbd3f=this['editor'],_0x427f95=_0x1dbd3f['locale'];_0x1dbd3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dad80=>{if('formatBlock'!=_0x3dad80['type']&&'formatInline'!=_0x3dad80['type'])return;const {data:_0x4d733e}=_0x3dad80;if(_0x4d733e&&'pasteFormat'===_0x4d733e['commandName']){const _0x381cf1=[],_0x187aa5=_0x4d733e['commandParams'][0x0];for(const [_0xae466c,_0x3dc32f]of Object['entries'](_0x187aa5))_0x381cf1['push'](so(_0x1dbd3f,_0xae466c,_0x3dc32f));return _0x381cf1['length']?{'type':'format','content':o(_0x427f95,'*Set\x20format\x20to:*\x20%0',_0x381cf1['join'](',\x20'))}:{'type':'format','content':o(_0x427f95,'*Remove\x20all\x20formatting*')};}});}}function so(_0x174ec7,_0x400470,_0x187b81){const _0x4bc312=_0x174ec7['locale']['t'],_0x4d2e45=_0x400470['split'](/(?=[A-Z])/)['join']('\x20'),_0x2020c5=_0x4bc312(_0x4d2e45['charAt'](0x0)['toUpperCase']()+_0x4d2e45['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x187b81)return _0x2020c5;if('fontColor'===_0x400470||'fontBackgroundColor'===_0x400470){const _0x4380e0=_0x3d1be8(_0x174ec7['config']['get']('fontColor.colors'))['find'](_0x524184=>_0x524184['model']==_0x187b81);return _0x2020c5+'\x20('+(_0x4380e0?_0x4bc312(_0x4380e0['label'])['toLowerCase']():_0x187b81)+')';}if('fontSize'===_0x400470&&isNaN(parseFloat(_0x187b81))){const _0x2b3bf4=_0x174ec7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x174ec7['config']['get']('fontSize.options'))['find'](_0x5a8a76=>_0x5a8a76['model']==_0x187b81);return _0x2020c5+'\x20('+(_0x2b3bf4?_0x4bc312(_0x2b3bf4['title'])['toLowerCase']():_0x187b81)+')';}return _0x2020c5+'\x20('+_0x187b81+')';}class it extends _0xe53f34{['_headingOptions'];['afterInit'](){const _0x35d528=this['editor'];if(!_0x35d528['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x35d528['config']['get']('heading.options');const _0x288065=_0x35d528['locale'],_0x4c2e7c=_0x35d528['plugins']['get']('TrackChangesEditing');_0x4c2e7c['enableDefaultAttributesIntegration']('heading');for(const _0x465c68 of this['_headingOptions'])'paragraph'!=_0x465c68['model']&&_0x4c2e7c['descriptionFactory']['registerElementLabel'](_0x465c68['model'],_0x5f09b8=>{const _0x1cb397=this['_getHeadingLevel'](_0x465c68['model']);return null!==_0x1cb397?_0x1b996a(_0x5f09b8,_0x1cb397):_0x55bdf5(_0x5f09b8,_0x465c68['title']);});function _0x1b996a(_0x310379,_0x3a945a){return o(_0x288065,'ELEMENT_HEADING',[_0x310379,_0x3a945a]);}function _0x55bdf5(_0x3205df,_0x4c1168){return o(_0x288065,'ELEMENT_HEADING_CUSTOM',[_0x3205df,_0x4c1168]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532973=this['editor'],_0xff7fe5=_0x532973['locale'];function _0x1fb56f(_0x4b6380,_0x4f6c12){return o(_0xff7fe5,'ELEMENT_HEADING_CUSTOM',[_0x4b6380,_0x4f6c12]);}_0x532973['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b5d20=>{if('formatBlock'!=_0x2b5d20['type'])return;const {data:_0x557571}=_0x2b5d20;if(_0x557571&&'heading'==_0x557571['commandName']){const _0x558842=_0x557571['commandParams'][0x0]['value'],_0x488cd8=this['_getHeadingLevel'](_0x558842);if(null!==_0x488cd8)return{'type':'format','content':o(_0xff7fe5,'*Change\x20to:*\x20%0',(_0x5bcb91=0x1,_0x4d4526=_0x488cd8,o(_0xff7fe5,'ELEMENT_HEADING',[_0x5bcb91,_0x4d4526])))};const _0x2b606e=this['_headingOptions']['find'](_0x41ea04=>_0x41ea04['model']===_0x558842)['title'];return{'type':'format','content':o(_0xff7fe5,'*Change\x20to:*\x20%0',_0x1fb56f(0x1,_0x2b606e))};}var _0x5bcb91,_0x4d4526;});}['_getHeadingLevel'](_0x3529b0){const _0x51e8b1=_0x3529b0['match'](/^heading(\d+)/);if(_0x51e8b1)return _0x51e8b1[0x1];const _0x1f3fca=this['_headingOptions']?.['find'](_0x4e0247=>_0x4e0247['model']==_0x3529b0);if(_0x1f3fca&&_0x1f3fca['view']){const _0x3200ff=_0x1f3fca['view'],_0x4bb6a1=(_0x3200ff['name']??_0x3200ff)['match'](/^h(\d+)/);if(_0x4bb6a1)return _0x4bb6a1[0x1];}return null;}}class et extends _0xe53f34{['afterInit'](){const _0x37042f=this['editor'];if(!_0x37042f['plugins']['has']('HighlightEditing'))return;const _0x2246c8=_0x37042f['plugins']['get']('TrackChangesEditing'),_0x1099f3=_0x37042f['locale'];_0x2246c8['enableDefaultAttributesIntegration']('highlight'),_0x2246c8['registerInlineAttribute']('highlight'),_0x2246c8['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1099f3,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d1bf6=this['editor'],_0x22f024=_0x4d1bf6['locale'];_0x4d1bf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c4918=>{if('formatInline'!=_0x2c4918['type'])return;const {data:_0x2f18a6}=_0x2c4918;if(_0x2f18a6&&'highlight'==_0x2f18a6['commandName']){const _0x1922ad=_0x22f024['t'],_0x6cbb63=_0x2f18a6['commandParams'][0x0]['value'];if(_0x6cbb63){const _0x310f0a=_0x4d1bf6['config']['get']('highlight.options')['find'](_0x2e2e33=>_0x2e2e33['model']==_0x6cbb63),_0x3f1a56=_0x1922ad(_0x310f0a['title'])['toLowerCase']();return{'type':'format','content':o(_0x22f024,'*Set\x20highlight:*\x20%0',_0x3f1a56),'color':{'value':_0x310f0a['color'],'title':_0x310f0a['title']}};}return{'type':'format','content':o(_0x22f024,'*Remove\x20highlight*',o(_0x22f024,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0xe53f34{['afterInit'](){const _0x18a9a2=this['editor'];if(!_0x18a9a2['plugins']['has']('HorizontalLineEditing'))return;_0x18a9a2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x145f75=_0x18a9a2['plugins']['get']('TrackChangesEditing'),_0x388cd4=_0x18a9a2['locale'];_0x145f75['descriptionFactory']['registerElementLabel']('horizontalLine',_0x49cbd1=>o(_0x388cd4,'ELEMENT_HORIZONTAL_LINE',_0x49cbd1)),_0x18a9a2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5a79cf,{writer:_0x30220a,options:_0x297390})=>{if(!_0x297390['showSuggestionHighlights'])return null;const _0x1860b6=_0x30220a['createContainerElement']('div'),_0x54f6c4=_0x30220a['createEmptyElement']('hr');return _0x30220a['addClass']('ck-horizontal-line',_0x1860b6),_0x30220a['insert'](_0x30220a['createPositionAt'](_0x1860b6,0x0),_0x54f6c4),_0x1860b6;},'converterPriority':'high'});}}class ot extends _0xe53f34{['afterInit'](){const _0x4d5667=this['editor'];if(!_0x4d5667['plugins']['has']('HtmlEmbed'))return;const _0x41f923=_0x4d5667['plugins']['get']('TrackChangesEditing'),_0x4a0550=_0x4d5667['locale'];_0x41f923['descriptionFactory']['registerElementLabel']('rawHtml',_0x3a5cbe=>o(_0x4a0550,'ELEMENT_HTML_EMBED',_0x3a5cbe)),_0x41f923['enableDefaultAttributesIntegration']('htmlEmbed'),_0x41f923['registerBlockAttribute']('value'),_0x41f923['descriptionFactory']['registerDescriptionCallback'](_0x2747f6=>{if('attribute'!=_0x2747f6['type'])return;const {data:_0x13edbc}=_0x2747f6;if(_0x13edbc&&'value'==_0x13edbc['key']&&_0x2747f6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x234f06=o(_0x4a0550,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a0550,'*Change\x20%0\x20content*',_0x234f06)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a5f22=this['editor'],_0x1e8f5d=_0x5a5f22['locale'];_0x5a5f22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cf094=>{if('formatBlock'!=_0x3cf094['type'])return;const {data:_0xbddb08}=_0x3cf094;if(_0xbddb08&&'htmlEmbed'==_0xbddb08['commandName']){const _0x1d40ab=o(_0x1e8f5d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e8f5d,'*Change\x20%0\x20content*',_0x1d40ab)};}});}}class rt extends _0xe53f34{['afterInit'](){const _0x5edf92=this['editor'];if(!_0x5edf92['plugins']['has']('ImageEditing'))return;const _0x354b12=_0x5edf92['plugins']['get']('TrackChangesEditing'),_0x507383=_0x5edf92['plugins']['get']('ImageUtils'),_0x432f6e=_0x5edf92['locale'];_0x354b12['enableCommand']('insertImage'),_0x354b12['descriptionFactory']['registerElementLabel']('imageBlock',_0xfa271d=>o(_0x432f6e,'ELEMENT_IMAGE',_0xfa271d)),_0x354b12['descriptionFactory']['registerElementLabel']('imageInline',_0x18805f=>o(_0x432f6e,'ELEMENT_INLINE_IMAGE',_0x18805f)),_0x354b12['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x432f6e,'ELEMENT_CAPTION')),_0x5edf92['plugins']['has']('ImageUploadEditing')&&_0x354b12['enableCommand']('uploadImage'),_0x5edf92['plugins']['has']('ImageBlockEditing')&&_0x5edf92['plugins']['has']('ImageInlineEditing')&&(_0x354b12['enableCommand']('imageTypeInline',(_0xd516bc,_0x47415d)=>{const _0x46f595=_0x507383['getClosestSelectedImageElement'](_0x5edf92['model']['document']['selection']);_0x5edf92['model']['change'](()=>{_0x354b12['markBlockFormat'](_0x46f595,{'commandName':'imageTypeInline','commandParams':[_0x47415d]},[],'convertBlockImageToInline');});}),_0x354b12['enableCommand']('imageTypeBlock',(_0x6e1e2d,_0x55b71d)=>{_0x5edf92['model']['change'](_0x8f78a0=>{let _0x1e7e09=_0x507383['getClosestSelectedImageElement'](_0x5edf92['model']['document']['selection']),_0x4b7a2d=_0x8f78a0['createRangeOn'](_0x1e7e09);const _0x5569e0=_0x452a32['fromPosition'](_0x4b7a2d['start'],'toPrevious'),_0xeafce=_0x452a32['fromPosition'](_0x4b7a2d['end'],'toNext');_0x354b12['forceDefaultExecution'](()=>_0x6e1e2d(_0x55b71d)),_0x1e7e09=_0x507383['getClosestSelectedImageElement'](_0x5edf92['model']['document']['selection']),_0x4b7a2d=_0x8f78a0['createRangeOn'](_0x1e7e09);const _0x44f51c=_0x8f78a0['createRange'](_0x5569e0,_0xeafce);_0x5569e0['detach'](),_0xeafce['detach'](),_0x354b12['markBlockFormat'](_0x1e7e09,{'commandName':'imageTypeInline','commandParams':[_0x55b71d]},[],'convertInlineImageToBlock'),_0x44f51c['start']['isBefore'](_0x4b7a2d['start'])&&_0x354b12['markInsertion'](_0x8f78a0['createRange'](_0x44f51c['start'],_0x4b7a2d['start']),'convertInlineImageToBlock'),_0x4b7a2d['end']['isBefore'](_0x44f51c['end'])&&_0x354b12['markInsertion'](_0x8f78a0['createRange'](_0x4b7a2d['end'],_0x44f51c['end']),'convertInlineImageToBlock');});}),_0x354b12['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x354b12['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x354b12['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x354b12['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x354b12['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x354b12['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x250471])=>{const _0x3a7d68=_0x354b12['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x235e93=_0x250471['start'],_0x120893=_0x250471['end'];const _0x33097f=_0x5edf92['model']['schema']['getNearestSelectionRange'](_0x235e93,'backward'),_0x58fcd1=_0x5edf92['model']['schema']['getNearestSelectionRange'](_0x120893,'forward');_0x33097f['isCollapsed']&&(_0x235e93=_0x33097f['start']),_0x58fcd1['isCollapsed']&&(_0x120893=_0x58fcd1['end']),_0x3a7d68([_0x5edf92['model']['createRange'](_0x235e93,_0x120893)]);}),_0x354b12['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2118e6),_0x354b12['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2118e6)),_0x5edf92['plugins']['has']('ImageCaptionEditing')&&(_0x354b12['enableCommand']('toggleImageCaption',(_0x2e8946,_0x34bd39)=>{const _0x5b67f2=_0x5edf92['plugins']['get']('ImageCaptionUtils');let _0xaf9abe=_0x507383['getClosestSelectedImageElement'](_0x5edf92['model']['document']['selection']),_0xc02893=_0x5b67f2['getCaptionFromImageModelElement'](_0xaf9abe);_0x5edf92['model']['change'](()=>{if(_0xc02893)return void _0x354b12['markDeletion'](_0x5edf92['model']['createRangeOn'](_0xc02893));const _0x23a280=_0x507383['isBlockImage'](_0xaf9abe);_0x2e8946(_0x34bd39),_0xaf9abe=_0x507383['getClosestSelectedImageElement'](_0x5edf92['model']['document']['selection']),_0xc02893=_0x5b67f2['getCaptionFromImageModelElement'](_0xaf9abe),_0x354b12['markInsertion'](_0x5edf92['model']['createRangeOn'](_0xc02893),_0x23a280?null:'imageCaption');});}),_0x354b12['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2118e6));const _0x53de8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x21c60f(_0x42be1b,_0x2530e2){const _0x3e64e4=_0x53de8['findIndex'](({type:_0x2b168a,subType:_0x556908})=>_0x42be1b['type']==_0x2b168a&&_0x42be1b['subType']==_0x556908),_0x4842a0=_0x53de8['findIndex'](({type:_0x5134bd,subType:_0x41bdf4})=>_0x2530e2['type']==_0x5134bd&&_0x2530e2['subType']==_0x41bdf4);if(_0x3e64e4<0x0||_0x4842a0<0x0)return!0x1;const _0x35e92c=_0x42be1b['getFirstRange'](),_0x26aef9=_0x2530e2['getFirstRange']();if((0x0==_0x3e64e4||0x1==_0x3e64e4)&&0x2==_0x4842a0&&_0x35e92c['isIntersecting'](_0x26aef9))return!0x0;if(0x2==_0x3e64e4&&0x3==_0x4842a0){const _0x53c0af=_0x354b12['_findSuggestions'](_0x35e92c,'insertion')['filter'](({suggestion:_0x14990e,meta:_0x47e19a})=>_0x47e19a['isOwn']&&'convertInlineImageToBlock'==_0x14990e['subType']);if(_0x53c0af['length']>0x1&&_0x26aef9['end']['isEqual'](_0x35e92c['start']))return!0x0;if(0x1==_0x53c0af['length']&&(_0x35e92c['start']['isEqual'](_0x26aef9['end'])||_0x35e92c['end']['isEqual'](_0x26aef9['start'])))return!0x0;}if(0x3==_0x3e64e4&&0x3==_0x4842a0&&_0x35e92c['start']['isBefore'](_0x26aef9['start'])){const _0x1fe839=_0x35e92c['end']['nodeAfter'],_0x5e01da=_0x26aef9['start']['nodeBefore'];return _0x507383['isBlockImage'](_0x1fe839)&&_0x1fe839===_0x5e01da;}return!0x1;}function _0x2118e6(_0x24c38f,_0x4fff49){return _0x21c60f(_0x24c38f,_0x4fff49)?[_0x24c38f,_0x4fff49]:_0x21c60f(_0x4fff49,_0x24c38f)?[_0x4fff49,_0x24c38f]:null;}_0x5edf92['plugins']['has']('ImageResize')&&(_0x354b12['enableDefaultAttributesIntegration']('resizeImage'),_0x354b12['registerBlockAttribute']('resizedWidth'),_0x354b12['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x432f6e,'FORMAT_IMAGE_SIZE'))),_0x5edf92['plugins']['has']('ImageTextAlternativeEditing')&&(_0x354b12['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x354b12['registerBlockAttribute']('alt')),_0x5edf92['plugins']['has']('PictureEditing')&&(_0x354b12['registerBlockAttribute']('sources'),_0x354b12['descriptionFactory']['registerDescriptionCallback'](_0x408430=>{if('attribute'!=_0x408430['type'])return;const {data:_0x45aade}=_0x408430;return _0x45aade&&'sources'==_0x45aade['key']?{'type':'format','content':''}:void 0x0;})),_0x5edf92['plugins']['has']('ImageSizeAttributes')&&(_0x354b12['registerBlockAttribute']('width'),_0x354b12['registerBlockAttribute']('height'),_0x354b12['descriptionFactory']['registerDescriptionCallback'](_0x272e7d=>{if('attribute'!=_0x272e7d['type'])return;const {data:_0x4924b9}=_0x272e7d;return!_0x4924b9||'width'!=_0x4924b9['key']&&'height'!=_0x4924b9['key']?void 0x0:{'type':'format','content':''};})),_0x354b12['descriptionFactory']['registerDescriptionCallback'](_0x73c2f2=>{if(!!_0x53de8['find'](({type:_0x587d91,subType:_0x1974e4})=>_0x73c2f2['type']==_0x587d91&&_0x73c2f2['subType']==_0x1974e4))return _0x73c2f2['previous']?{}:void 0x0;}),_0x354b12['descriptionFactory']['registerDescriptionCallback'](_0x58b709=>{if('insertion'==_0x58b709['type']||'deletion'==_0x58b709['type']){const _0x34f89e=_0x58b709['getContainedElement']();if(_0x34f89e&&_0x34f89e['is']('element','caption'))return{'type':'insertion'==_0x58b709['type']?'addObject':'removeObject','element':_0x34f89e,'quantity':0x1};}}),_0x354b12['descriptionFactory']['registerDescriptionCallback'](_0x36f65f=>'formatBlock'==_0x36f65f['type']&&'convertInlineImageToBlock'==_0x36f65f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x36f65f['type']&&'convertBlockImageToInline'==_0x36f65f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x354b12['descriptionFactory']['registerDescriptionCallback'](_0x42c2d4=>{if('attribute'!=_0x42c2d4['type'])return;const {data:_0x1e651d}=_0x42c2d4;if(!_0x1e651d||'alt'!=_0x1e651d['key'])return;const _0x202958=_0x1e651d['newValue'];return _0x202958?{'type':'format','content':o(_0x432f6e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x202958+'\x22')}:{'type':'format','content':o(_0x432f6e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bd15f=this['editor'],_0x2346b2=_0x1bd15f['locale'];_0x1bd15f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f0b24=>{if('formatBlock'!=_0x1f0b24['type']&&'formatInline'!=_0x1f0b24['type'])return;const {data:_0x1dae49}=_0x1f0b24;if(_0x1dae49){if('imageTextAlternative'==_0x1dae49['commandName']){const _0x5cf588=_0x1dae49['commandParams'][0x0]['newValue'];return _0x5cf588?{'type':'format','content':o(_0x2346b2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cf588+'\x22')}:{'type':'format','content':o(_0x2346b2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1dae49['commandName']){const _0x18d10c=_0x1dae49['commandParams'][0x0]['width'];return _0x18d10c?{'type':'format','content':o(_0x2346b2,'*Set\x20image\x20width:*\x20%0',_0x18d10c)}:{'type':'format','content':o(_0x2346b2,'*Reset\x20image\x20width*')};}}});}}class at extends _0xe53f34{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1bbb80=this['editor']['locale'],_0x1ea196=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ea196['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1ea196['registerBlockAttribute']('src'),_0x1ea196['descriptionFactory']['registerDescriptionCallback'](_0x136235=>{if('attribute'!=_0x136235['type'])return;const {data:_0xe34eed}=_0x136235;return _0xe34eed&&'src'==_0xe34eed['key']?_0xe34eed['newValue']&&_0xe34eed['oldValue']?{'type':'format','content':o(_0x1bbb80,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5d40ca=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d40ca['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5d40ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d40ca['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5d40ca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a9fbe=this['editor'],_0x5a7a38=_0x3a9fbe['locale'];_0x3a9fbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2508c0=>{if('formatBlock'!=_0x2508c0['type']&&'formatInline'!=_0x2508c0['type'])return;const {data:_0x385cd0}=_0x2508c0;if(!_0x385cd0||'replaceImageSource'!=_0x385cd0['commandName'])return;return{'type':'format','content':o(_0x5a7a38,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0xe53f34{['afterInit'](){const _0x3fd206=this['editor'];if(!_0x3fd206['plugins']['has']('ImageStyleEditing'))return;const _0x150033=_0x3fd206['plugins']['get']('TrackChangesEditing'),_0x561c13=_0x3fd206['plugins']['get']('ImageUtils'),_0x4614bd={};_0x150033['enableCommand']('imageStyle',(_0x3ba354,_0x1a0d42)=>{const _0x542a90=_0x3fd206['plugins']['get']('Users')['me'],_0xee3938=_0x3fd206['commands']['get']('imageStyle');let _0x53c845=_0x561c13['getClosestSelectedImageElement'](_0x3fd206['model']['document']['selection']),_0x7f360a=_0x3fd206['model']['createRangeOn'](_0x53c845),_0xf66ef8=_0xee3938['value'];if(_0xf66ef8==_0x1a0d42['value'])return;const _0x250922={'commandName':'imageStyle','commandParams':[_0x1a0d42],'formatGroupId':_0x2a43ef()};_0x3fd206['model']['change'](()=>{if(_0x150033['getSuggestions']()['filter'](_0x42d3a2=>_0x42d3a2['isInContent']&&_0x542a90==_0x42d3a2['author']&&('formatBlock'==_0x42d3a2['type']||'formatInline'==_0x42d3a2['type'])&&('imageStylePreApply'==_0x42d3a2['subType']||'imageStylePostApply'==_0x42d3a2['subType'])&&_0x42d3a2['getFirstRange']()['isEqual'](_0x7f360a))['forEach'](_0x1f4d39=>_0x150033['discardSuggestion'](_0x1f4d39['head'])),_0x53c845=_0x561c13['getClosestSelectedImageElement'](_0x3fd206['model']['document']['selection']),_0x7f360a=_0x3fd206['model']['createRangeOn'](_0x53c845),_0xee3938['refresh'](),_0x3fd206['commands']['get']('imageTypeInline')['refresh'](),_0x3fd206['commands']['get']('imageTypeBlock')['refresh'](),_0xf66ef8=_0xee3938['value'],_0xf66ef8!=_0x1a0d42['value'])return _0x561c13['isInlineImage'](_0x53c845)&&_0xee3938['shouldConvertImageType'](_0x1a0d42['value'],_0x53c845)?(_0x3ba354({..._0x1a0d42,'setImageSizes':!0x1}),_0x53c845=_0x561c13['getClosestSelectedImageElement'](_0x3fd206['model']['document']['selection']),void _0x150033['markBlockFormat'](_0x53c845,{..._0x250922,'commandReversedParams':[{'value':_0xf66ef8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x561c13['isBlockImage'](_0x53c845)?_0x150033['markBlockFormat'](_0x53c845,_0x250922,[],'imageStylePostApply'):_0x150033['markInlineFormat'](_0x7f360a,_0x250922,'imageStylePostApply'));});});for(const _0x3aa6bd of _0x3fd206['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4614bd[_0x3aa6bd['name']]=_0x3aa6bd['title']['toLowerCase']();_0x150033['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x150033['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x150033['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x150033['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x45e8a1])=>{_0x561c13['setImageNaturalSizeAttributes'](_0x45e8a1['getContainedElement']());}),_0x150033['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2e9f58,_0x2aa72f)=>{_0x150033['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2e9f58,{'commandName':_0x2aa72f['commandName'],'commandParams':_0x2aa72f['commandReversedParams']});}),_0x150033['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4baff2,_0x2e0811){if(_0x2f00e4(_0x4baff2,_0x2e0811))return[_0x4baff2,_0x2e0811];if(_0x2f00e4(_0x2e0811,_0x4baff2))return[_0x2e0811,_0x4baff2];return null;});const _0xd24cd2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2f00e4(_0x18a795,_0x1ed814){const _0x45426a=_0xd24cd2['findIndex'](({type:_0x312c06,subType:_0x3a4d10})=>_0x18a795['type']==_0x312c06&&_0x18a795['subType']==_0x3a4d10),_0x2ce294=_0xd24cd2['findIndex'](({type:_0x1403bb,subType:_0x3f1ee5})=>_0x1ed814['type']==_0x1403bb&&_0x1ed814['subType']==_0x3f1ee5);if(_0x45426a<0x0||_0x2ce294<0x0)return!0x1;const _0x224410=_0x18a795['getFirstRange'](),_0x467ca7=_0x1ed814['getFirstRange']();if((0x0==_0x45426a||0x1==_0x45426a)&&0x2==_0x2ce294&&_0x224410['isIntersecting'](_0x467ca7))return!0x0;if(0x2==_0x45426a&&0x3==_0x2ce294){const _0x1d218c=_0x150033['_findSuggestions'](_0x224410,'insertion')['filter'](({suggestion:_0x42b077,meta:_0x5e3c76})=>_0x5e3c76['isOwn']&&'convertInlineImageToBlock'==_0x42b077['subType']);if(_0x1d218c['length']>0x1&&_0x467ca7['end']['isEqual'](_0x224410['start']))return!0x0;if(0x1==_0x1d218c['length']&&(_0x224410['start']['isEqual'](_0x467ca7['end'])||_0x224410['end']['isEqual'](_0x467ca7['start'])))return!0x0;}if(0x3==_0x45426a&&0x3==_0x2ce294&&_0x224410['start']['isBefore'](_0x467ca7['start'])){const _0x42a721=_0x224410['end']['nodeAfter'],_0x12ae50=_0x467ca7['start']['nodeBefore'];return _0x561c13['isBlockImage'](_0x42a721)&&_0x42a721===_0x12ae50;}return!0x1;}_0x3fd206['model']['document']['registerPostFixer'](()=>{let _0xaf62fc=!0x1;const _0x1d0a8b=Array['from'](_0x3fd206['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x17b276,data:_0x3bf4cc}of _0x1d0a8b){const {group:_0x1bd738,type:_0x1000cd,subType:_0x3a44c1,id:_0x56a871}=_0x150033['_splitMarkerName'](_0x17b276);if('suggestion'==_0x1bd738&&_0x150033['hasSuggestion'](_0x56a871)){if('formatBlock'==_0x1000cd&&('imageStylePreApply'==_0x3a44c1||'imageStylePostApply'==_0x3a44c1)){const _0x3088fd=_0x150033['getSuggestion'](_0x56a871);if(_0x3bf4cc['newRange']){const _0x589834=_0x3088fd['getFirstRange']()['getContainedElement']();if(_0x561c13['isBlockImage'](_0x589834))continue;_0x150033['discardSuggestion'](_0x3088fd),_0xaf62fc=!0x0;}}if('insertion'==_0x1000cd&&'imageCaption'==_0x3a44c1&&!_0x3bf4cc['newRange']){const _0x10a70e=_0x150033['getSuggestion'](_0x56a871);_0x10a70e['next']&&_0x10a70e['next']['isInContent']&&(_0x150033['discardSuggestion'](_0x10a70e['next']),_0xaf62fc=!0x0);}}}return _0xaf62fc;}),this['_registerLegacyDescription'](_0x4614bd);}['_registerLegacyDescription'](_0xda4fd9){const _0x4524c0=this['editor'],_0x10813e=_0x4524c0['locale'];_0x4524c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cc02c=>{if('formatBlock'!=_0x5cc02c['type']&&'formatInline'!=_0x5cc02c['type'])return;const {data:_0x4e85cd}=_0x5cc02c;if(!_0x4e85cd||'imageStyle'!=_0x4e85cd['commandName'])return;const _0x545ee4=_0x4e85cd['commandParams'][0x0]['value'];return _0x187447('side'===_0x545ee4?o(_0x10813e,'FORMAT_SIDE_IMAGE'):_0xda4fd9[_0x545ee4]||_0x545ee4);function _0x187447(_0x366ed5){return{'type':'format','content':o(_0x10813e,'*Format:*\x20%0',_0x366ed5)};}});}}class ut extends _0xe53f34{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1f7326){super(_0x1f7326),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3c4cbf=this['editor'],_0x9e31fa=_0x3c4cbf['commands']['get']('importWord'),_0xb4bd74=_0x3c4cbf['commands']['get']('trackChanges');_0x9e31fa&&(_0x9e31fa['on']('execute',(_0x22b252,[,_0x2975f0])=>{this['_trackChangesValueDuringImport']=_0xb4bd74['value'],_0x2975f0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x9e31fa,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x9e31fa,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xb4bd74['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3c4cbf['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1ae63b,_0x17875f){const {suggestions:_0xfba9fc}=_0x17875f,_0x2a2e5d=this['editor']['commands']['get']('trackChanges'),_0x5b6f2c=_0x2a2e5d['value'];this['_trackChangesValueDuringImport']!==_0x5b6f2c&&(_0x2a2e5d['execute'](),this['_trackChangesExecuted']=!0x0),_0xfba9fc&&_0xfba9fc['forEach'](({id:_0x52ae0f,type:_0x111fe9,author:_0x3c29fe,created_at:_0xc58cf})=>{const _0x3406db={'id':_0x52ae0f,'type':_0x111fe9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3c29fe,'createdAt':_0xc58cf?new Date(_0xc58cf):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3406db);});}}class ft extends _0xe53f34{['afterInit'](){const _0x2c340c=this['editor'],_0x5b6880=_0x2c340c['plugins']['get']('TrackChangesEditing');if(_0x2c340c['plugins']['has']('IndentEditing')&&(_0x5b6880['enableCommand']('indent'),_0x5b6880['enableCommand']('outdent')),_0x2c340c['plugins']['has']('IndentBlock')){for(const _0x40b901 of['indentBlock','outdentBlock'])_0x5b6880['enableDefaultAttributesIntegration'](_0x40b901);}const _0x5069d8=_0x2c340c['locale'];_0x5b6880['registerBlockAttribute']('blockIndent'),_0x5b6880['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5069d8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dae4a=this['editor'],_0x908a5f=_0x5dae4a['locale'],_0x404803=_0x5dae4a['plugins']['get']('TrackChangesEditing');_0x404803['descriptionFactory']['registerDescriptionCallback'](_0x358895=>{if('formatBlock'!=_0x358895['type'])return;const {data:_0x2b473d}=_0x358895;if(!_0x2b473d)return;if('indentBlock'!=_0x2b473d['commandName']&&'outdentBlock'!=_0x2b473d['commandName'])return;const _0x2869ff=_0x358895['getItems']()[0x0],_0x20fba3=_0x404803['descriptionFactory']['getItemLabel'](_0x2869ff);return'indentBlock'==_0x2b473d['commandName']?{'type':'format','content':o(_0x908a5f,'*Indent:*\x20%0',_0x20fba3)}:'outdentBlock'==_0x2b473d['commandName']?{'type':'format','content':o(_0x908a5f,'*Outdent:*\x20%0',_0x20fba3)}:void 0x0;});}}class ht extends _0xe53f34{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0xe53f34{['afterInit'](){const _0x442c96=this['editor'];if(!_0x442c96['plugins']['has']('LinkEditing'))return;const _0x3f63c2=_0x442c96['plugins']['get']('TrackChangesEditing'),_0x20eba2=_0x442c96['commands']['get']('link');_0x3f63c2['enableDefaultAttributesIntegration']('link'),_0x3f63c2['enableDefaultAttributesIntegration']('unlink'),_0x3f63c2['registerInlineAttribute']('linkHref');for(const _0x452654 of _0x20eba2['manualDecorators'])_0x3f63c2['registerInlineAttribute'](_0x452654['id']),_0x3f63c2['descriptionFactory']['registerAttributeLabel'](_0x452654['id'],'link\x20('+_0x452654['label']['toLowerCase']()+')');_0x3f63c2['descriptionFactory']['registerDescriptionCallback'](_0x1983e6=>{if('attribute'!=_0x1983e6['type'])return;const {data:_0x1cad97}=_0x1983e6;if(!_0x1cad97||'linkHref'!=_0x1cad97['key'])return;const _0x3493e5=_0x1cad97['newValue'],_0x4ed906=_0x442c96['locale'];return{'type':'format','content':null==_0x3493e5?o(_0x4ed906,'*Remove\x20link*'):o(_0x4ed906,'*Set\x20link:*\x20%0','\x22'+_0x3493e5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x252051=this['editor'],_0x305bb0=_0x252051['locale'];_0x252051['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf59ea0=>{if('formatInline'!=_0xf59ea0['type'])return;const {data:_0x9c712f}=_0xf59ea0;if(_0x9c712f){if('link'==_0x9c712f['commandName']){const _0xc17604=_0x9c712f['commandParams'][0x0];return{'type':'format','content':o(_0x305bb0,'*Set\x20link:*\x20%0','\x22'+_0xc17604+'\x22')};}return'unlink'==_0x9c712f['commandName']?{'type':'format','content':o(_0x305bb0,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0xe53f34{['afterInit'](){const _0x360630=this['editor'],_0x607404=_0x360630['locale'];if(!_0x360630['plugins']['has']('LegacyListEditing'))return;const _0x13b111=_0x360630['plugins']['get']('TrackChangesEditing'),_0x53a0de=_0x360630['plugins']['has']('LegacyTodoListEditing');function _0x4db367(_0x31ef9f){return()=>{const _0x4fe541=_0x360630['model']['document']['selection'],_0x2eee98=_0x360630['commands']['get'](_0x31ef9f);if(_0x2eee98['value'])return void _0x360630['execute']('paragraph',{});const _0x2afb04=_0x31ef9f['slice'](0x0,-0x4),_0x4063fb=function(_0x532e3a,_0x364983,_0x338f28){let _0x114e81=Array['from'](_0x532e3a)['filter'](_0x42be56=>function(_0x541df2,_0xd60682){return _0xd60682['checkChild'](_0x541df2['parent'],'listItem')&&!_0xd60682['isObject'](_0x541df2);}(_0x42be56,_0x338f28));_0x114e81=_0x114e81['filter'](_0x24fbbc=>!_0x24fbbc['is']('element','listItem')||_0x24fbbc['getAttribute']('listType')!=_0x364983);const _0x106feb=new Set();for(const _0x57a5ac of _0x114e81)_0x57a5ac['is']('element','listItem')?_0x106feb['add'](Le(_0x57a5ac)):_0x106feb['add'](_0x57a5ac);return Array['from'](_0x106feb);}(_0x4fe541['getSelectedBlocks'](),_0x2afb04,_0x360630['model']['schema']);_0x360630['model']['change'](()=>{for(const _0x56b38f of _0x4063fb)_0x13b111['markBlockFormat'](_0x56b38f,{'commandName':_0x31ef9f,'commandParams':[{'forceValue':!_0x2eee98['value']}],'formatGroupId':'blockName'},Ee(_0x56b38f));});};}function _0x2f44b6(_0x5cfb08){return()=>{const _0x5b5c29=function(_0x46c514){let _0x4a0597=Array['from'](_0x46c514);const _0x11e7c9=_0x4a0597['findIndex'](_0x20cdbe=>'listItem'!=_0x20cdbe['name']);return _0x11e7c9>-0x1&&(_0x4a0597=_0x4a0597['slice'](0x0,_0x11e7c9)),_0x4a0597;}(_0x360630['model']['document']['selection']['getSelectedBlocks']()),_0x3f0768=_0x360630['model']['createRange'](_0x360630['model']['createPositionAt'](_0x5b5c29[0x0],'before'),_0x360630['model']['createPositionAt'](_0x5b5c29[_0x5b5c29['length']-0x1],'end'));_0x360630['model']['change'](()=>{_0x13b111['markBlockFormat'](_0x3f0768,{'commandName':_0x5cfb08,'commandParams':[],'formatGroupId':'listIndent'},function(_0x47f58f){const _0x24996b=new Set();for(const _0x249a79 of _0x47f58f){let _0x52cdf7=_0x249a79['nextSibling'];for(;_0x52cdf7&&_0x52cdf7['getAttribute']('listIndent')>_0x249a79['getAttribute']('listIndent');)_0x24996b['add'](_0x52cdf7),_0x52cdf7=_0x52cdf7['nextSibling'];}return Array['from'](_0x24996b);}(_0x5b5c29));});};}_0x13b111['enableCommand']('numberedList',_0x4db367('numberedList')),_0x13b111['enableCommand']('bulletedList',_0x4db367('bulletedList')),_0x53a0de&&_0x13b111['enableCommand']('todoList',_0x4db367('todoList')),_0x13b111['enableCommand']('indentList',_0x2f44b6('indentList')),_0x13b111['enableCommand']('outdentList',_0x2f44b6('outdentList')),_0x53a0de&&_0x13b111['enableCommand']('checkTodoList',()=>{const _0x14c75e=_0x360630['commands']['get']('checkTodoList'),_0x40d230=Array['from'](_0x14c75e['_selectedElements']);_0x40d230['filter'](_0x3af0f9=>_0x3af0f9['getAttribute']('todoListChecked')!=_0x14c75e['value']),_0x360630['model']['change'](()=>{for(const _0x53ebac of _0x40d230)_0x13b111['markBlockFormat'](_0x53ebac,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x14c75e['value']}]});});}),_0x13b111['descriptionFactory']['registerElementLabel']('listItem',_0x201a3c=>o(_0x607404,'ELEMENT_LIST_ITEM',_0x201a3c)),_0x13b111['descriptionFactory']['registerDescriptionCallback'](_0x41a00c=>{if('formatBlock'!=_0x41a00c['type']&&'formatInline'!=_0x41a00c['type'])return;const {data:_0x59cdbd}=_0x41a00c;if(_0x59cdbd){if('numberedList'==_0x59cdbd['commandName']||'bulletedList'==_0x59cdbd['commandName']||'todoList'==_0x59cdbd['commandName'])switch(_0x59cdbd['commandName']['replace']('List','')){case'bulleted':return _0x327e69(o(_0x607404,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x327e69(o(_0x607404,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x327e69(o(_0x607404,'ELEMENT_TODO_LIST'));}if('indentList'==_0x59cdbd['commandName'])return{'type':'format','content':o(_0x607404,'*Indent:*\x20%0',o(_0x607404,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x59cdbd['commandName'])return{'type':'format','content':o(_0x607404,'*Outdent:*\x20%0',o(_0x607404,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x59cdbd['commandName'])return _0x59cdbd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x607404,'*Check\x20item*')}:{'type':'format','content':o(_0x607404,'*Uncheck\x20item*')};}function _0x327e69(_0x121a22){return{'type':'format','content':o(_0x607404,'*Change\x20to:*\x20%0',_0x121a22)};}});}}function Le(_0xe81a81){const _0x140079=_0xe81a81['getAttribute']('listIndent');if(0x0==_0x140079)return _0xe81a81;let _0x46b1ec=_0xe81a81;for(;_0xe81a81['previousSibling']&&_0xe81a81['previousSibling']['is']('element','listItem');){const _0x1a6bf3=_0xe81a81['previousSibling']['getAttribute']('listIndent');if(_0x1a6bf3==_0x140079)_0x46b1ec=_0xe81a81['previousSibling'];else{if(_0x1a6bf3<_0x140079)break;}_0xe81a81=_0xe81a81['previousSibling'];}return _0x46b1ec;}function Ee(_0x362219){const _0xfb5ecf=[];if(_0x362219['is']('element','listItem')&&_0x362219['getAttribute']('listIndent')>0x0){let _0x1e6e50=_0x362219['nextSibling'];for(;_0x1e6e50&&'listItem'==_0x1e6e50['name']&&_0x1e6e50['getAttribute']('listIndent')==_0x362219['getAttribute']('listIndent');)_0xfb5ecf['push'](_0x1e6e50),_0x1e6e50=_0x1e6e50['nextSibling'];}return _0xfb5ecf;}class Q extends _0xe53f34{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x555b26=this['editor']['config']['get']('list.properties'),_0x4e3d5f=this['editor']['plugins']['get']('TrackChangesEditing');_0x555b26['styles']&&_0x4e3d5f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x555b26['reversed']&&_0x4e3d5f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x555b26['startIndex']&&_0x4e3d5f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4e3d5f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x57422a,_0x5bc759={}){const _0x23cea6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x200c3b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x23cea6['markMultiRangeBlockFormat'](_0x200c3b,{'commandName':'listStyle','commandParams':[{'type':_0x5bc759['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x108a65,_0x28e522={}){const _0x306375=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4baf72=this['_getSuggestionBlocks'](_0x1e1663=>_0x1e1663['is']('element','listItem')&&'numbered'===_0x1e1663['getAttribute']('listType'));if(_0x4baf72['length']<0x1)return;const _0x119d73=_0x4baf72['map'](_0x432b0f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x432b0f,'before'),this['editor']['model']['createPositionAt'](_0x432b0f,0x0)));this['editor']['model']['change'](()=>{_0x306375['markMultiRangeBlockFormat'](_0x119d73,{'commandName':'listReversed','commandParams':[{'reversed':_0x28e522['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b91d5,_0x1e8493={}){const _0x3dc8ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5449b3=this['_getSuggestionBlocks'](_0x3b06e3=>_0x3b06e3['is']('element','listItem')&&'numbered'===_0x3b06e3['getAttribute']('listType'));if(_0x5449b3['length']<0x1)return;const _0x166f31=_0x5449b3['map'](_0x828148=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x828148,'before'),this['editor']['model']['createPositionAt'](_0x828148,0x0)));this['editor']['model']['change'](()=>{_0x3dc8ba['markMultiRangeBlockFormat'](_0x166f31,{'commandName':'listStart','commandParams':[{'startIndex':_0x1e8493['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xedd786){if('formatBlock'!=_0xedd786['type']&&'formatInline'!=_0xedd786['type'])return;const _0x259296=this['editor']['locale'],{data:_0x4e0cbd}=_0xedd786;if(!_0x4e0cbd)return;let _0x343025,_0x4a0238;switch(_0x4e0cbd['commandName']){case'listStyle':_0x343025='*Change\x20to:*\x20%0',_0x4a0238={'type':'format','content':o(_0x259296,_0x343025,o(_0x259296,this['_getTranslationKeyForListStyle'](_0x4e0cbd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x343025=_0x4e0cbd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4a0238={'type':'format','content':o(_0x259296,_0x343025)};break;case'listStart':_0x343025='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4a0238={'type':'format','content':o(_0x259296,_0x343025,_0x4e0cbd['commandParams'][0x0]['startIndex'])};}return _0x4a0238;}['_getSuggestionBlocksForListStyle'](){const _0x3a7b76=this['editor']['plugins']['get']('LegacyListUtils');let _0x251f80=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x251f80[0x0]?.['is']('element','listItem')&&_0x251f80['unshift'](..._0x3a7b76['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x251f80[_0x251f80['length']-0x1]?.['is']('element','listItem')&&_0x251f80['push'](..._0x3a7b76['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x251f80=[...new Set(_0x251f80)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x251f80=_0x251f80['filter'](_0x530862=>_0x530862['is']('element','listItem'))),_0x251f80;}['_getSuggestionBlocks'](_0x879e70){const _0x26ffd2=this['editor']['plugins']['get']('LegacyListUtils');let _0x6354b9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x879e70)['map'](_0xbd2b1c=>{const _0x3aba13=this['editor']['model']['createPositionAt'](_0xbd2b1c,0x0);return[..._0x26ffd2['getSiblingNodes'](_0x3aba13,'backward'),..._0x26ffd2['getSiblingNodes'](_0x3aba13,'forward')];})['flat']();return _0x6354b9=[...new Set(_0x6354b9)],_0x6354b9;}['_getTranslationKeyForListStyle'](_0xb6d0d5){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xb6d0d5)||'default')['toUpperCase']()+'_LIST_'+_0xb6d0d5['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0xe53f34{['afterInit'](){const _0x3caa41=this['editor'];if(!_0x3caa41['plugins']['has']('MediaEmbedEditing'))return;const _0x4d15c7=_0x3caa41['plugins']['get']('TrackChangesEditing'),_0x4e457d=_0x3caa41['locale'];_0x4d15c7['enableCommand']('mediaEmbed'),_0x4d15c7['descriptionFactory']['registerElementLabel']('media',_0xf5fc3c=>o(_0x4e457d,'ELEMENT_MEDIA',_0xf5fc3c)),_0x3caa41['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x217b75,{writer:_0x53601a,options:_0xe3c048})=>{if(_0xe3c048['showSuggestionHighlights'])return _0x53601a['createEmptyElement']('div');},'converterPriority':'high'}),_0x3caa41['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4bfe63,_0x5714ac,_0x6a122c)=>{_0x6a122c['options']['showSuggestionHighlights']&&_0x4bfe63['stop']();},{'priority':'high'});}}class pt extends _0xe53f34{['afterInit'](){const _0x42c905=this['editor'];_0x42c905['plugins']['has']('MentionEditing')&&_0x42c905['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0xe53f34{['afterInit'](){const _0x3e0218=this['editor'];if(!_0x3e0218['plugins']['has']('MergeFieldsEditing'))return;const _0x650f68=_0x3e0218['plugins']['get']('TrackChangesEditing'),_0x19feb0=_0x3e0218['locale'];_0x650f68['enableCommand']('insertMergeField'),_0x650f68['enableCommand']('insertMergeFieldBlock'),_0x650f68['enableCommand']('insertMergeFieldImage'),_0x650f68['descriptionFactory']['registerElementLabel']('mergeField',_0x26a93c=>o(_0x19feb0,'ELEMENT_MERGE_FIELD',_0x26a93c)),_0x650f68['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x262964=>o(_0x19feb0,'ELEMENT_MERGE_FIELD',_0x262964)),_0x650f68['descriptionFactory']['registerDescriptionCallback'](_0x58a6e1=>{if('insertion'!=_0x58a6e1['type']&&'deletion'!=_0x58a6e1['type'])return;const _0x52719d=_0x58a6e1['getContainedElement']();if(null==_0x52719d)return;const _0x2686c4=_0x3e0218['plugins']['get']('MergeFieldsEditing');let _0x25e0fe;switch(_0x2686c4['getMergeFieldType'](_0x52719d)){case null:return;case'image':{const _0x12439d=_0x2686c4['unwrapAffixes'](_0x52719d['getAttribute']('src'));_0x25e0fe=_0x2686c4['getLabel'](_0x12439d)||_0x12439d;break;}default:{const _0x19322e=_0x52719d['getAttribute']('id');_0x25e0fe=_0x2686c4['getLabel'](_0x19322e)||_0x19322e;break;}}return'insertion'==_0x58a6e1['type']?{'type':'insertion','content':o(_0x19feb0,'*Insert:*\x20%0','\x22'+_0x25e0fe+'\x22\x20'+o(_0x19feb0,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x19feb0,'*Remove:*\x20%0','\x22'+_0x25e0fe+'\x22\x20'+o(_0x19feb0,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0xe53f34{['afterInit'](){const _0x409437=this['editor'],_0x55cf24=_0x409437['plugins']['get']('TrackChangesEditing');_0x409437['plugins']['has']('MultiLevelList')&&(_0x55cf24['enableDefaultAttributesIntegration']('multiLevelList'),_0x55cf24['registerBlockAttribute']('listMarkerStyle'),_0x55cf24['descriptionFactory']['registerDescriptionCallback'](_0x3021a1=>this['handleDescriptions'](_0x3021a1)));}['handleDescriptions'](_0x28d5de){const _0x4fe86a=this['editor']['locale'],{data:_0x441bdb}=_0x28d5de,_0x424a4a={'type':'format','content':''};if(_0x441bdb&&'listMarkerStyle'==_0x441bdb['key']){if(!_0x441bdb['oldValue'])return{'type':'format','content':o(_0x4fe86a,'*Set\x20format:*\x20%0',o(_0x4fe86a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x441bdb['newValue']+')'};if(!_0x441bdb['newValue']){let _0x8f171e=_0x28d5de['head'];for(;_0x8f171e;){if(_0x8f171e['data']&&'listType'==_0x8f171e['data']['key']&&_0x8f171e['data']['newValue'])return _0x424a4a;_0x8f171e=_0x8f171e['next'];}return{'type':'format','content':o(_0x4fe86a,'*Remove\x20format:*\x20%0',o(_0x4fe86a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x441bdb['oldValue']+')'};}}}}class bt extends _0xe53f34{['afterInit'](){const _0x53b74e=this['editor'];if(!_0x53b74e['plugins']['has']('PageBreakEditing'))return;_0x53b74e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x28dd24=_0x53b74e['plugins']['get']('TrackChangesEditing'),_0x22eeb6=_0x53b74e['locale'];_0x28dd24['descriptionFactory']['registerElementLabel']('pageBreak',_0x2ce947=>o(_0x22eeb6,'ELEMENT_PAGE_BREAK',_0x2ce947));}}class yt extends _0xe53f34{['afterInit'](){const _0x45401d=this['editor'];if(!_0x45401d['plugins']['has']('Paragraph'))return;const _0x2e5684=_0x45401d['locale'],_0x412476=_0x45401d['plugins']['get']('TrackChangesEditing');_0x412476['descriptionFactory']['registerElementLabel']('paragraph',_0xea02=>o(_0x2e5684,'ELEMENT_PARAGRAPH',_0xea02)),_0x412476['enableDefaultAttributesIntegration']('paragraph'),_0x412476['enableCommand']('insertParagraph'),_0x45401d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x45401d),{'priority':'highest'}),_0x45401d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xc7f360,_0xceb427,_0x1dd86d)=>{_0x1dd86d['options']['showSuggestionHighlights']&&nr(_0x45401d,{'showActiveMarker':!0x1})(_0xc7f360,_0xceb427,_0x1dd86d);},{'priority':'highest'});const _0x3061d7=_0x412476['descriptionFactory'];_0x3061d7['registerDescriptionCallback'](_0x53c649=>{if('insertion'!==_0x53c649['type'])return;const {start:_0x33c0ea,end:_0xdf8aa2}=_0x53c649['getFirstRange']();if(!_0x33c0ea['isTouching'](_0xdf8aa2)||!_0x33c0ea['nodeAfter'])return;const _0x543858=_0x45401d['model']['schema'],_0x928434=_0x33c0ea['nodeAfter'];return _0x543858['isBlock'](_0x928434)&&!_0x543858['isLimit'](_0x928434)&&_0x543858['checkChild'](_0x928434,'$text')?{'type':'insertion','content':o(_0x2e5684,'*Insert:*\x20%0',_0x3061d7['getItemLabel'](_0x928434,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48a55e=this['editor'],_0x10efdc=_0x48a55e['locale'];_0x48a55e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd7369f=>{if('formatBlock'!=_0xd7369f['type'])return;const {data:_0x2cda31}=_0xd7369f;return _0x2cda31&&'paragraph'==_0x2cda31['commandName']?{'type':'format','content':o(_0x10efdc,'*Change\x20to:*\x20%0',o(_0x10efdc,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x10d0d3,{showActiveMarker:_0x40f8e0=!0x0}={}){return(_0x254a13,_0x635364,_0x1be795)=>{const _0x35ea03=_0x10d0d3['plugins']['get']('TrackChangesEditing'),_0xe4bb9f=_0x635364['markerRange']['start'],_0x423ca6=_0x635364['markerRange']['end'],_0x59aed1=_0x10d0d3['model']['schema'];if(!_0xe4bb9f['isTouching'](_0x423ca6)||!_0xe4bb9f['nodeAfter'])return;const _0xc0c3c0=_0xe4bb9f['nodeAfter'];if(_0x59aed1['isBlock'](_0xc0c3c0)&&!_0x59aed1['isLimit'](_0xc0c3c0)&&_0x59aed1['checkChild'](_0xc0c3c0,'$text')){if(!_0x1be795['consumable']['consume'](_0x635364['markerRange'],_0x254a13['name']))return;const {authorId:_0x23d2ff}=_0x35ea03['_splitMarkerName'](_0x635364['markerName']),_0x2f0243=_0x1be795['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x23d2ff}),_0x27a41a=_0x1be795['mapper']['toViewPosition'](_0x423ca6);_0x40f8e0&&_0x35ea03['activeMarkers']['includes'](_0x635364['markerName'])&&_0x1be795['writer']['addClass']('ck-suggestion-marker--active',_0x2f0243),_0x1be795['writer']['insert'](_0x27a41a,_0x2f0243),_0x1be795['mapper']['bindElementToMarker'](_0x2f0243,_0x635364['markerName']);}};}class jt extends _0xe53f34{['afterInit'](){const _0x598d5b=this['editor'];_0x598d5b['commands']['get']('replaceSource')&&_0x598d5b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0xe53f34{['afterInit'](){const _0x38e21f=this['editor'];if(!_0x38e21f['plugins']['has']('RemoveFormatEditing'))return;_0x38e21f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x376585=this['editor'];_0x376585['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eea22=>{if('formatBlock'!=_0x1eea22['type']&&'formatInline'!=_0x1eea22['type'])return;const {data:_0x55c458}=_0x1eea22;return _0x55c458&&'removeFormat'==_0x55c458['commandName']?{'type':'format','content':o(_0x376585['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0xe53f34{['afterInit'](){const _0x2210a=this['editor'];if(!_0x2210a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x293fe5=_0x2210a['plugins']['get']('TrackChangesEditing');_0x293fe5['enableCommand']('goToPreviousRestrictedEditingException'),_0x293fe5['enableCommand']('goToNextRestrictedEditingException');const _0x1e3f10=_0x2210a['plugins']['get']('RestrictedEditingModeEditing');_0x1e3f10['enableCommand']('trackChanges'),_0x1e3f10['enableCommand']('acceptSuggestion'),_0x1e3f10['enableCommand']('discardSuggestion'),_0x1e3f10['enableCommand']('acceptAllSuggestions'),_0x1e3f10['enableCommand']('discardAllSuggestions'),_0x1e3f10['enableCommand']('acceptSelectedSuggestions'),_0x1e3f10['enableCommand']('discardSelectedSuggestions');}}class It extends _0xe53f34{static get['requires'](){return[_0x38316b];}['init'](){const _0x312971=this['editor'],_0xb77743=_0x312971['plugins']['get']('TrackChangesEditing');_0xb77743['enableCommand']('shiftEnter'),_0x312971['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x312971),{'priority':'high'}),_0x312971['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x312971),{'priority':'high'}),_0x312971['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x59c920,_0x1a7bf7,_0x204f7d)=>{_0x204f7d['options']['showSuggestionHighlights']&&je(_0x312971,{'showActiveMarker':!0x1})(_0x59c920,_0x1a7bf7,_0x204f7d);}),_0xb77743['descriptionFactory']['registerElementLabel']('softBreak',_0x4e1100=>o(_0x312971['locale'],'ELEMENT_LINE_BREAK',_0x4e1100));}}function je(_0x2a1f2d,{showActiveMarker:_0x380ea7=!0x0}={}){return(_0x97b467,_0x24ddc5,_0x1930a3)=>{const _0x1d6267=_0x2a1f2d['plugins']['get']('TrackChangesEditing');if(!_0x1930a3['consumable']['test'](_0x24ddc5['markerRange'],_0x97b467['name']))return;const _0x13c242=_0x2a1f2d['model'];for(const _0x20d68e of _0x24ddc5['markerRange']['getItems']()){if(!_0x20d68e['is']('element','softBreak'))continue;const _0x26eb9f='deletion'==_0x24ddc5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x56d435}=_0x1d6267['_splitMarkerName'](_0x24ddc5['markerName']),_0x3c9bda=_0x1930a3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x26eb9f,'data-author-id':_0x56d435}),_0x3d9f7b=_0x1930a3['mapper']['toViewPosition'](_0x13c242['createPositionBefore'](_0x20d68e));_0x380ea7&&_0x1d6267['activeMarkers']['includes'](_0x24ddc5['markerName'])&&_0x1930a3['writer']['addClass']('ck-suggestion-marker--active',_0x3c9bda),_0x1930a3['writer']['insert'](_0x3d9f7b,_0x3c9bda),_0x1930a3['mapper']['bindElementToMarker'](_0x3c9bda,_0x24ddc5['markerName']);}};}class vt extends _0xe53f34{['afterInit'](){const _0x2d527c=this['editor'],_0x1df1e1=_0x2d527c['model'],_0x4385a7=_0x2d527c['locale'];if(!_0x2d527c['plugins']['has']('StandardEditingModeEditing'))return;const _0x5c070c=_0x2d527c['plugins']['get']('TrackChangesEditing'),_0x206899='restrictedEditingException',_0x3e7fd3=_0x2d527c['commands']['get'](_0x206899);_0x5c070c['enableCommand'](_0x206899,(_0xe23465,_0x20b058={})=>{const _0x33a846=_0x1df1e1['document']['selection'];if(_0x33a846['isCollapsed'])return void _0xe23465(_0x20b058);const _0x57d81d=void 0x0!==_0x20b058['forceValue']?_0x20b058['forceValue']:!_0x3e7fd3['value'];_0x1df1e1['change'](()=>{const _0x2b0fc4=Array['from'](_0x33a846['getRanges']());for(const _0x30fe8e of _0x2b0fc4){const _0x53ce1c=_0x57d81d?[_0x30fe8e]:io(_0x206899,_0x30fe8e,_0x1df1e1);for(const _0x48743e of _0x53ce1c)_0x5c070c['markInlineFormat'](_0x48743e,{'commandName':_0x206899,'commandParams':[{'forceValue':_0x57d81d}]});}});}),_0x5c070c['descriptionFactory']['registerDescriptionCallback'](_0x51d851=>{if('formatBlock'!=_0x51d851['type']&&'formatInline'!=_0x51d851['type'])return;const {data:_0x1172f6}=_0x51d851;return _0x1172f6&&_0x1172f6['commandName']==_0x206899?_0x1172f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4385a7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4385a7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0xe53f34{['afterInit'](){const _0x35329b=this['editor'];if(!_0x35329b['plugins']['has']('Style')||!_0x35329b['plugins']['has']('DataSchema'))return;const _0x76b8b3=_0x35329b['plugins']['get']('TrackChangesEditing'),_0x308c46=_0x35329b['locale'],_0x365eca=_0x35329b['config']['get']('style')||{},_0x47d173=_0x35329b['plugins']['get']('GeneralHtmlSupport'),_0x34df61=_0x35329b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x35329b['plugins']['get']('DataSchema'),_0x365eca['definitions']);_0x76b8b3['enableDefaultAttributesIntegration']('style');const _0x55e8ba=new Set();for(const _0x5dfa69 of _0x34df61['block']){const _0x3cc3a9=_0x47d173['getGhsAttributeNameForElement'](_0x5dfa69['element']);_0x55e8ba['add'](_0x3cc3a9);}const _0x50643d=new Set();for(const _0x2ce4b7 of _0x34df61['inline']){const _0x6ce7c2=_0x47d173['getGhsAttributeNameForElement'](_0x2ce4b7['element']);_0x50643d['add'](_0x6ce7c2);for(const _0x209a77 of _0x2ce4b7['ghsAttributes'])_0x50643d['add'](_0x209a77);}for(const _0x7c0958 of _0x55e8ba)_0x76b8b3['registerBlockAttribute'](_0x7c0958),_0x76b8b3['descriptionFactory']['registerAttributeLabel'](_0x7c0958,o(_0x308c46,'FORMAT_STYLE'));for(const _0x11abcf of _0x50643d)_0x76b8b3['registerInlineAttribute'](_0x11abcf),_0x76b8b3['descriptionFactory']['registerAttributeLabel'](_0x11abcf,o(_0x308c46,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3eec4b=this['editor'],_0xa4ba9d=_0x3eec4b['locale'];_0x3eec4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc116=>{if('formatBlock'!=_0xc116['type']&&'formatInline'!=_0xc116['type'])return;const {data:_0x221992}=_0xc116;return _0x221992&&'style'===_0x221992['commandName']?_0x221992['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa4ba9d,'*Set\x20format:*\x20%0',_0x221992['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xa4ba9d,'*Remove\x20format:*\x20%0',_0x221992['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0xe53f34{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4fe3ae){super(_0x4fe3ae),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4e8931=this['editor'],_0x4b4c9b=_0x4e8931['model']['document']['selection'];if(!_0x4e8931['plugins']['has']('TableEditing'))return;const _0x39b8dd=_0x4e8931['locale'],_0x1e8841=_0x4e8931['plugins']['get']('TrackChangesEditing'),_0x487f5b=_0x4e8931['plugins']['get']('TableUtils');_0x1e8841['descriptionFactory']['registerElementLabel']('table',_0x57de9d=>o(_0x39b8dd,'ELEMENT_TABLE',_0x57de9d)),this['_setupColumnsRowsFixing'](),_0x1e8841['enableCommand']('insertTable'),_0x1e8841['enableCommand']('selectTableRow'),_0x1e8841['enableCommand']('selectTableColumn');for(const _0x55a4a3 of['insertTableRowAbove','insertTableRowBelow']){const _0x413fae=_0x4e8931['commands']['get'](_0x55a4a3);_0x1e8841['enableCommand'](_0x55a4a3,_0x37714c=>{_0x4e8931['model']['change'](_0x5b2401=>{_0x37714c();const _0x4298e9='above'===_0x413fae['order'],_0x19b605=_0x487f5b['getSelectionAffectedTableCells'](_0x4b4c9b),_0x3ecb4e=_0x487f5b['getRowIndexes'](_0x19b605),_0x1fc6b2=_0x4298e9?_0x3ecb4e['first']-0x1:_0x3ecb4e['last']+0x1,_0x34e706=_0x19b605[0x0]['findAncestor']('table'),_0xe5522=_0x487f5b['createTableWalker'](_0x34e706,{'startRow':_0x1fc6b2,'endRow':_0x1fc6b2}),_0x380954=Array['from'](_0xe5522)['map'](_0x2aba21=>_0x5b2401['createRangeOn'](_0x2aba21['cell']));_0x1e8841['markMultiRangeInsertion'](_0x380954,'tableRow');});});}for(const _0x35c064 of['insertTableColumnLeft','insertTableColumnRight']){const _0x432ea3=_0x4e8931['commands']['get'](_0x35c064);_0x1e8841['enableCommand'](_0x35c064,_0x372ce2=>{_0x4e8931['model']['change'](_0xd2eae6=>{_0x372ce2();const _0x26c2f1='left'===_0x432ea3['order'],_0x4b55ae=_0x487f5b['getSelectionAffectedTableCells'](_0x4b4c9b),_0x382065=_0x487f5b['getColumnIndexes'](_0x4b55ae),_0x41d46a=_0x26c2f1?_0x382065['first']-0x1:_0x382065['last']+0x1,_0x2d8c0c=_0x4b55ae[0x0]['findAncestor']('table'),_0x30eaaa=_0x487f5b['createTableWalker'](_0x2d8c0c,{'startRow':0x0,'column':_0x41d46a,'includeAllSlots':!0x1}),_0x186ec=Array['from'](_0x30eaaa)['map'](_0x72fa96=>_0xd2eae6['createRangeOn'](_0x72fa96['cell']));_0x1e8841['markMultiRangeInsertion'](_0x186ec,'tableColumn');});});}for(const _0xc86324 of['removeTableRow','removeTableColumn']){const _0x4d21cf=_0xc86324['substr'](0xb),_0x36d62c=_0x4d21cf['toLowerCase'](),_0x310b36=_0x36d62c['substr'](0x0,0x3)+'span',_0x5dc6fb='table'+_0x4d21cf,_0x4dce7b='min'+_0x4d21cf,_0x55c751='max'+_0x4d21cf;_0x1e8841['enableCommand'](_0xc86324,()=>{_0x4e8931['model']['change'](_0x3cbdbb=>{const _0x43e430=_0x487f5b['getSelectionAffectedTableCells'](_0x4b4c9b),_0x370b84=_0x43e430[0x0]['findAncestor']('table');let _0x4cf402;if('removeTableRow'==_0xc86324){const _0x4a654d=_0x487f5b['getRowIndexes'](_0x43e430);_0x4cf402={'startRow':_0x4a654d['first'],'endRow':_0x4a654d['last'],'includeAllSlots':!0x0};}else{const _0x1e50b1=_0x487f5b['getColumnIndexes'](_0x43e430);_0x4cf402={'startColumn':_0x1e50b1['first'],'endColumn':_0x1e50b1['last'],'includeAllSlots':!0x0};}const _0x47940e=_0x487f5b['createTableWalker'](_0x370b84,_0x4cf402),_0x4db988=Array['from'](_0x47940e)['map'](({cell:_0x1606ff})=>_0x1606ff),_0x18b9cc=Ne(_0x4db988['filter'](_0x40e917=>_0x40e917['hasAttribute'](_0x310b36))),_0x56681a=Ne(_0x4db988['filter'](_0x12d180=>!_0x12d180['hasAttribute'](_0x310b36)))['map'](_0x2868db=>_0x3cbdbb['createRangeOn'](_0x2868db)),_0x3a2e17=_0x1e8841['markMultiRangeDeletion'](_0x56681a,_0x5dc6fb);if(_0x3a2e17&&('tableRow'==_0x3a2e17['subType']||'tableColumn'==_0x3a2e17['subType'])){const _0x4d4dc1=this['_getSuggestionCoords'](_0x3a2e17);for(const _0x49b4bc of _0x18b9cc){const _0x1da3a4=_0x3cbdbb['createRangeOn'](_0x49b4bc),_0x13b667=_0x487f5b['getCellLocation'](_0x49b4bc),_0x30f759=_0x49b4bc['getAttribute'](_0x310b36)-0x1,_0x39f464=_0x4d4dc1[_0x4dce7b],_0x163161=_0x4d4dc1[_0x55c751];_0x39f464<=_0x13b667[_0x36d62c]&&_0x13b667[_0x36d62c]+_0x30f759<=_0x163161&&_0x3a2e17['addRange'](_0x1da3a4);}}});});}function _0x3c1dbd(_0xc41511){const _0x1bcce3=Array['from'](_0x4b4c9b['getRanges']())['map'](_0x2ad775=>_0x49f219['fromRange'](_0x2ad775));_0x4e8931['model']['change'](_0x11f6d5=>{const _0x526abe=_0x11f6d5['batch'];_0xc41511=_0xc41511['filter'](_0x392697=>'$graveyard'!=_0x392697['root']['rootName']),_0x11f6d5['setSelection'](_0xc41511),_0x4e8931['commands']['get']('removeTableRow')['refresh'](),_0x4e8931['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4e8931['model']['enqueueChange'](()=>{_0x4e8931['model']['enqueueChange'](_0x526abe,_0x416c54=>{const _0x2234f9=_0x1bcce3['filter'](_0xb4716a=>'$graveyard'!=_0xb4716a['root']['rootName']);_0x2234f9['length']>0x0&&_0x416c54['setSelection'](_0x2234f9);for(const _0x16292d of _0x1bcce3)_0x16292d['detach']();});});});}function _0x120d67(_0x3f03e8){_0x4e8931['model']['change'](_0x1a18ca=>{const _0x3f669e=Array['from'](_0x4b4c9b['getRanges']())['map'](_0x1603cb=>_0x49f219['fromRange'](_0x1603cb)),_0x2a19c8=[];for(const _0x18787b of _0x3f03e8)for(const _0x30a025 of _0x18787b['getItems']({'shallow':!0x0}))_0x2a19c8['push'](_0x30a025);for(const _0x54f5c6 of _0x2a19c8)'$graveyard'!=_0x54f5c6['root']['rootName']&&(_0x1a18ca['setSelection'](_0x1a18ca['createPositionAt'](_0x54f5c6,0x0)),_0x4e8931['commands']['get']('removeTableColumn')['refresh'](),_0x4e8931['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xe2a2d4=_0x3f669e['filter'](_0x1291c8=>'$graveyard'!=_0x1291c8['root']['rootName']);_0xe2a2d4['length']>0x0&&_0x1a18ca['setSelection'](_0xe2a2d4);for(const _0x204bb2 of _0x3f669e)_0x204bb2['detach']();});}function _0xf856c4(_0xb281dd,_0xa7d95d){return _0xa7d95d['every'](_0x2180b0=>_0xb281dd['some'](_0x2d6a52=>_0x2d6a52['end']['isEqual'](_0x2180b0['start'])||_0x2180b0['end']['isEqual'](_0x2d6a52['start'])));}function _0xe59d2f(_0x1037e1,_0x12f525){return!_0x1037e1['some'](_0x468a74=>_0x12f525['some'](_0x57a4ed=>_0x468a74['isIntersecting'](_0x57a4ed)))&&_0x1037e1['some'](_0x19701b=>_0x12f525['some'](_0x218c59=>_0x19701b['end']['isTouching'](_0x218c59['start'])));}_0x4e8931['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf5da05,_0x55361f,_0x26e9a4)=>{if(!_0x26e9a4['options']['showSuggestionHighlights'])return;const _0x124611=_0x55361f['item'];if(!_0x124611)return;const _0x1a3f77=_0x26e9a4['mapper']['toViewElement'](_0x124611);function _0x144970(_0x2d3a9f){return Array['isArray'](_0x2d3a9f)?_0x2d3a9f:[_0x2d3a9f];}_0x1a3f77&&'tableCell'===_0x124611['name']&&_0x21eca2(_0x1a3f77,_0x26e9a4['writer'],(_0xe43909,_0x5283ec,_0x40dfa1)=>_0x40dfa1['addClass'](_0x144970(_0x5283ec['classes']),_0xe43909),(_0x4fb563,_0x3b529c,_0x3c2531)=>_0x3c2531['removeClass'](_0x144970(_0x3b529c['classes']),_0x4fb563));},{'priority':'highest'}),_0x1e8841['descriptionFactory']['registerDescriptionCallback'](_0xf86935=>{if('insertion'!=_0xf86935['type']&&'deletion'!=_0xf86935['type'])return;const _0x89d315=_0xf86935['getContainedElement']();if(null!=_0x89d315&&_0x89d315['is']('element','table')){if('insertion'==_0xf86935['type']){const _0x4f8cee=_0xf86935['getItems']()['filter'](_0x2342b1=>_0x2342b1['is']('$textProxy'))['map'](_0x15e3c4=>_0x15e3c4['data']);if(_0x4f8cee['length'])return{'type':'insertion','content':o(_0x39b8dd,'*Insert:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f8cee['join']('\x20')+'\x22'))};}if('deletion'==_0xf86935['type']){const _0x16881f=_0xf86935['getItems']()['filter'](_0x21f925=>_0x21f925['is']('$textProxy'))['map'](_0xa22ebb=>_0xa22ebb['data']);if(_0x16881f['length'])return{'type':'deletion','content':o(_0x39b8dd,'*Remove:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x16881f['join']('\x20')+'\x22'))};}}}),_0x1e8841['descriptionFactory']['registerDescriptionCallback'](_0x6dca67=>{if('tableRow'==_0x6dca67['subType']){const _0x22c24f=_0x6dca67['getItems']()['filter'](_0x306813=>_0x306813['is']('$textProxy'))['map'](_0x4e87e4=>_0x4e87e4['data']),_0x1c17fc=this['_getSuggestionCoords'](_0x6dca67),_0x33a493=_0x1c17fc['maxRow']-_0x1c17fc['minRow']+0x1;if('insertion'==_0x6dca67['type'])return _0x22c24f['length']?{'type':'insertion','content':o(_0x39b8dd,'*Insert:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x33a493,'\x22'+_0x22c24f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39b8dd,'*Insert:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_ROW',_0x33a493))};if('deletion'==_0x6dca67['type'])return _0x22c24f['length']?{'type':'deletion','content':o(_0x39b8dd,'*Remove:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x33a493,'\x22'+_0x22c24f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39b8dd,'*Remove:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_ROW',_0x33a493))};}if('tableColumn'==_0x6dca67['subType']){const _0x50ef85=_0x6dca67['getItems']()['filter'](_0x4ad759=>_0x4ad759['is']('$textProxy'))['map'](_0x32df62=>_0x32df62['data']),_0x203941=this['_getSuggestionCoords'](_0x6dca67),_0x20c722=_0x203941['maxColumn']-_0x203941['minColumn']+0x1;if('insertion'==_0x6dca67['type'])return _0x50ef85['length']?{'type':'insertion','content':o(_0x39b8dd,'*Insert:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20c722,'\x22'+_0x50ef85['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x39b8dd,'*Insert:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_COLUMN',_0x20c722))};if('deletion'==_0x6dca67['type'])return _0x50ef85['length']?{'type':'deletion','content':o(_0x39b8dd,'*Remove:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20c722,'\x22'+_0x50ef85['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x39b8dd,'*Remove:*\x20%0',o(_0x39b8dd,'ELEMENT_TABLE_COLUMN',_0x20c722))};}}),_0x1e8841['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3c1dbd),_0x1e8841['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3c1dbd),_0x1e8841['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x120d67),_0x1e8841['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x120d67),_0x1e8841['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xf856c4),_0x1e8841['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xf856c4),_0x1e8841['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xe59d2f),_0x1e8841['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xe59d2f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3a324c=this['editor'],_0x43436c=_0x3a324c['model']['document']['selection'];return(_0x5d718b,_0xce3cdc)=>{_0x3a324c['model']['change'](_0x2a47f2=>{const {commandName:_0x18a428,commandParams:_0x4c99b7}=_0xce3cdc;let _0x2d2740=_0x5d718b[0x0]['end']['nodeBefore'];_0x4c99b7&&_0x4c99b7[0x0]&&!0x1===_0x4c99b7[0x0]['forceValue']&&(_0x2d2740=_0x5d718b[0x0]['start']['nodeAfter']);const _0x534225=_0x2a47f2['createRangeIn'](_0x2d2740);if('$graveyard'==_0x534225['root']['rootName'])return;const _0x4e33ee=Array['from'](_0x43436c['getRanges']())['map'](_0x33bdfa=>_0x49f219['fromRange'](_0x33bdfa));_0x2a47f2['setSelection'](_0x534225),_0x3a324c['commands']['get'](_0x18a428)['refresh'](),_0x4c99b7['push']({'forceDefaultExecution':!0x0}),_0x3a324c['execute'](_0x18a428,..._0x4c99b7);const _0x541f4a=_0x4e33ee['filter'](_0x3d3319=>'$graveyard'!=_0x3d3319['root']['rootName']);_0x541f4a['length']>0x0&&_0x2a47f2['setSelection'](_0x541f4a);for(const _0x3d61a5 of _0x4e33ee)_0x3d61a5['detach']();});};}['_getCoordsForCells'](_0xc9c604){const _0x384dc7=this['editor']['plugins']['get']('TableUtils');let _0x581f76=Number['MAX_SAFE_INTEGER'],_0x484842=Number['MIN_SAFE_INTEGER'],_0x29be93=Number['MAX_SAFE_INTEGER'],_0xcc0d4c=Number['MIN_SAFE_INTEGER'];for(const _0x5477e9 of _0xc9c604){if('$graveyard'==_0x5477e9['root']['rootName'])continue;const {row:_0x17632a,column:_0x31aea9}=_0x384dc7['getCellLocation'](_0x5477e9),_0x39520e=_0x5477e9['hasAttribute']('rowspan')?_0x5477e9['getAttribute']('rowspan')-0x1:0x0,_0x32d40b=_0x5477e9['hasAttribute']('colspan')?_0x5477e9['getAttribute']('colspan')-0x1:0x0;_0x581f76=_0x17632a<_0x581f76?_0x17632a:_0x581f76,_0x484842=_0x17632a+_0x39520e>_0x484842?_0x17632a+_0x39520e:_0x484842,_0x29be93=_0x31aea9<_0x29be93?_0x31aea9:_0x29be93,_0xcc0d4c=_0x31aea9+_0x32d40b>_0xcc0d4c?_0x31aea9+_0x32d40b:_0xcc0d4c;}return{'minRow':_0x581f76,'maxRow':_0x484842,'minColumn':_0x29be93,'maxColumn':_0xcc0d4c};}['_setupColumnsRowsFixing'](){const _0x5e9225=this['editor'],_0x2361d2=_0x5e9225['plugins']['get']('TrackChangesEditing'),_0xa1a322=_0x5e9225['plugins']['get']('TableUtils');_0x5e9225['model']['document']['on']('change:data',()=>{const _0x3f2f57=Array['from'](_0x5e9225['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x220cd8,data:_0x36bfca}of _0x3f2f57){const {group:_0x539ff7,id:_0x12c433,subType:_0x41c68b}=_0x2361d2['_splitMarkerName'](_0x220cd8);if('suggestion'!=_0x539ff7)continue;if(null!=_0x36bfca['oldRange'])continue;const _0x5979fd=_0x2361d2['getSuggestion'](_0x12c433);this['_tablePostFixingSubtypes']['includes'](_0x41c68b)&&this['_tableSuggestions']['add'](_0x5979fd);}},{'priority':'low'});const _0x45f942=(_0x31baea,_0x54b0c4)=>{let _0x3fcc92=!0x1;const _0x659a3f=_0x54b0c4['createRangeOn'](_0x31baea),_0x3954ba=_0x31baea['findAncestor']('table'),_0x315fa8=_0xa1a322['getCellLocation'](_0x31baea);for(const _0x3f9180 of this['_tableSuggestions']){const _0x2e390f=_0x3f9180['subType'],_0x107cc2=_0x2e390f['startsWith']('tablePaste'),_0x1d9fad=_0x2e390f['substr'](_0x107cc2?0xa:0x5),_0x29a05f=_0x1d9fad['toLowerCase'](),_0x3bc701=_0x29a05f['substr'](0x0,0x3)+'span',_0xfa8f48='min'+_0x1d9fad,_0x4c7b32='max'+_0x1d9fad;if(!_0x3f9180['isInContent'])continue;if(_0x3954ba!=_0x3f9180['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3f9180['isIntersectingWithRange'](_0x659a3f))continue;const _0x4834ec=_0x31baea['hasAttribute'](_0x3bc701)?_0x31baea['getAttribute'](_0x3bc701)-0x1:0x0,_0x186ba0=this['_getSuggestionCoords'](_0x3f9180),_0x249d91=_0x186ba0[_0xfa8f48],_0x255dc6=_0x186ba0[_0x4c7b32];_0x249d91<=_0x315fa8[_0x29a05f]&&_0x315fa8[_0x29a05f]+_0x4834ec<=_0x255dc6&&(_0x3f9180['addRange'](_0x659a3f),_0x3fcc92=!0x0);}return _0x3fcc92;};_0x5e9225['model']['document']['registerPostFixer'](_0x8ee18d=>{let _0x21e050=!0x1;for(const _0xc09f8b of _0x5e9225['model']['document']['differ']['getChanges']())if('insert'==_0xc09f8b['type']){if('tableRow'==_0xc09f8b['name']){for(const _0x589ecc of _0xc09f8b['position']['nodeAfter']['getChildren']())_0x21e050=_0x21e050||_0x45f942(_0x589ecc,_0x8ee18d);}else'tableCell'==_0xc09f8b['name']&&(_0x21e050=_0x21e050||_0x45f942(_0xc09f8b['position']['nodeAfter'],_0x8ee18d));}return _0x21e050;});}['_getSuggestionCoords'](_0x1758e9){return this['_getCoordsForCells'](_0x1758e9['getRanges']()['map'](_0x3d1453=>_0x3d1453['start']['nodeAfter']));}}function Ne(_0x1ca186){return Array['from'](new Set(_0x1ca186)['values']());}class Nt extends _0xe53f34{static get['requires'](){return[Ct];}['afterInit'](){const _0x3631fb=this['editor'],_0x36ebd2=_0x3631fb['model']['document']['selection'],_0x1c77f0=_0x3631fb['locale'];if(!_0x3631fb['plugins']['has']('TableEditing'))return;const _0xe33399=_0x3631fb['plugins']['get']('TrackChangesEditing'),_0x394830=_0x3631fb['plugins']['get']('TableUtils'),_0x56d6ce=_0x3631fb['plugins']['get'](Ct);_0x56d6ce['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe33399['enableCommand']('mergeTableCells',()=>{const _0x4c144d=_0x394830['getSelectionAffectedTableCells'](_0x3631fb['model']['document']['selection']);_0x3631fb['model']['change'](()=>{_0xe33399['markMultiRangeBlockFormat'](_0x4c144d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3631fb['commands']['get']('mergeTableCells')['on']('execute',(_0x28fbda,_0x195cd4)=>{_0x3631fb['commands']['get']('trackChanges')['value']&&(_0x195cd4['length']>0x0&&_0x195cd4[_0x195cd4['length']-0x1]&&_0x195cd4[_0x195cd4['length']-0x1]['forceDefaultExecution']||_0xe33399['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x28fbda['stop']());},{'priority':'highest'});for(const _0x491c26 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xb61646=_0x3631fb['commands']['get'](_0x491c26);_0xe33399['enableCommand'](_0x491c26,()=>{const _0xa3ab15=_0x3631fb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x771c29=>_0x771c29['is']('element','tableCell')),_0x46748f=_0xb61646['value'];_0x3631fb['model']['change'](()=>{_0xe33399['markMultiRangeBlockFormat']([_0xa3ab15,_0x46748f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x36a4b6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x385a81=_0x3631fb['commands']['get'](_0x36a4b6);_0xe33399['enableCommand'](_0x36a4b6,()=>{const _0x73f588=_0x394830['getSelectionAffectedTableCells'](_0x3631fb['model']['document']['selection'])[0x0],_0x4e1d57=_0x73f588['findAncestor']('table'),{column:_0x31d71e,row:_0x2046c1}=_0x394830['getCellLocation'](_0x73f588);let _0x4fc9cb=[];if('horizontally'==_0x385a81['direction']){const _0x42b54e=_0x394830['createTableWalker'](_0x4e1d57,{'startRow':_0x2046c1,'endRow':_0x2046c1,'includeAllSlots':!0x0});_0x4fc9cb=Array['from'](_0x42b54e)['map'](_0x971124=>_0x971124['cell']);}else{const _0x146b05=_0x394830['createTableWalker'](_0x4e1d57,{'column':_0x31d71e,'includeAllSlots':!0x0});_0x4fc9cb=Array['from'](_0x146b05)['map'](_0x404460=>_0x404460['cell']);}_0x3631fb['model']['change'](_0x2b3051=>{_0xe33399['markBlockFormat'](_0x2b3051['createRangeOn'](_0x73f588),{'commandName':_0x36a4b6,'commandParams':[]},_0x4fc9cb,_0x36a4b6);});});}_0xe33399['descriptionFactory']['registerDescriptionCallback'](_0x36c198=>{if('formatBlock'!=_0x36c198['type']&&'formatInline'!=_0x36c198['type'])return;const {data:_0x4335f7}=_0x36c198;return _0x4335f7&&'mergeTableCells'==_0x4335f7['commandName']?{'type':'format','content':o(_0x1c77f0,'*Merge\x20cells*')}:void 0x0;}),_0xe33399['descriptionFactory']['registerDescriptionCallback'](_0x11b9ab=>{if('formatBlock'!=_0x11b9ab['type']&&'formatInline'!=_0x11b9ab['type'])return;const {data:_0x16106c}=_0x11b9ab;return _0x16106c?'splitTableCellVertically'==_0x16106c['commandName']?{'type':'format','content':o(_0x1c77f0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x16106c['commandName']?{'type':'format','content':o(_0x1c77f0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5ee41f=_0x56d6ce['_acceptFormatSuggestionCallbackFactory']();for(const _0x524757 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe33399['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x524757,'accept',_0x5ee41f);for(const _0x5226bc of['splitTableCellVertically','splitTableCellHorizontally'])_0xe33399['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5226bc,'accept',_0x5ee41f);_0xe33399['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x261210=>{_0x3631fb['model']['change'](_0x348761=>{const _0x22ff7a=Array['from'](_0x36ebd2['getRanges']())['map'](_0x594777=>_0x49f219['fromRange'](_0x594777));_0x348761['setSelection'](_0x261210),_0x3631fb['commands']['get']('mergeTableCells')['refresh'](),_0x3631fb['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b61cf=_0x22ff7a['filter'](_0x11f772=>'$graveyard'!=_0x11f772['root']['rootName']);_0x1b61cf['length']>0x0&&_0x348761['setSelection'](_0x1b61cf);for(const _0x35eee1 of _0x22ff7a)_0x35eee1['detach']();});});for(const _0x675c6c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x55371a=_0x3631fb['commands']['get'](_0x675c6c);_0x55371a['on']('set:isEnabled',(_0x4c4b9b,_0x3da972,_0x1a9bff)=>{if(_0x1a9bff){const _0x59f3e8=_0x3631fb['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b651f=>_0x3b651f['is']('element','tableCell'));this['_areMergableCells'](_0x55371a['value'],_0x59f3e8)||(_0x4c4b9b['return']=!0x1,_0x4c4b9b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xf7a533=this['editor']['commands']['get']('mergeTableCells'),_0x3e8d5f=this['editor']['plugins']['get']('TableUtils');if(!_0xf7a533['isEnabled'])return!0x1;const _0x41135a=_0x3e8d5f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x16111d of _0x41135a)for(const _0x131755 of _0x41135a)if(_0x16111d!=_0x131755&&!this['_areMergableCells'](_0x16111d,_0x131755))return!0x1;return!0x0;}['_areMergableCells'](_0x459396,_0x1e0761){const _0x119339=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12cacf=this['editor']['model']['createRangeOn'](_0x459396),_0x10b0bc=this['editor']['model']['createRangeOn'](_0x1e0761),_0xd0b319=new Set(),_0x103ffc=new Set();for(const _0x3276ec of _0x119339['getSuggestions']())if(('insertion'==_0x3276ec['type']||'deletion'==_0x3276ec['type']||'mergeTableCells'==_0x3276ec['subType'])&&_0x3276ec['isInContent']){for(const _0x2815f3 of _0x3276ec['getRanges']())_0x2815f3['containsRange'](_0x12cacf,!0x0)&&_0xd0b319['add'](_0x3276ec['type']+':'+_0x3276ec['author']['id']),_0x2815f3['containsRange'](_0x10b0bc,!0x0)&&_0x103ffc['add'](_0x3276ec['type']+':'+_0x3276ec['author']['id']);}if(_0xd0b319['size']!=_0x103ffc['size'])return!0x1;for(const _0x165a97 of _0xd0b319)if(!_0x103ffc['has'](_0x165a97))return!0x1;return!0x0;}}class Dt extends _0xe53f34{static get['requires'](){return[Ct];}['afterInit'](){const _0x2a31e8=this['editor'];if(!_0x2a31e8['plugins']['has']('TableEditing'))return;const _0x4367e1=_0x2a31e8['locale'],_0xdd6356=_0x2a31e8['plugins']['get']('TrackChangesEditing');_0xdd6356['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xdd6356['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xdd6356['registerBlockAttribute']('headingRows'),_0xdd6356['registerBlockAttribute']('headingColumns'),_0xdd6356['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4367e1,'FORMAT_HEADER_ROW')),_0xdd6356['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4367e1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x612f61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d150c=this['editor']['plugins']['get']('TableUtils'),_0x2f1a59=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x69bc5a({showActiveMarker:_0x5cc314=!0x0,setDataAttribute:_0xa1f9fb=!0x0}={}){return(_0x38bc53,_0x2f4367,_0x4a249c)=>{const {type:_0x4c77ef,id:_0x5556d2}=_0x612f61['_splitMarkerName'](_0x2f4367['markerName']),_0xf9ab72=_0x612f61['getSuggestion'](_0x5556d2),_0x1db6a6=_0xf9ab72['data'];if('formatBlock'!=_0xf9ab72['type']||!_0x1db6a6||'setTableColumnHeader'!=_0x1db6a6['commandName'])return;if(_0x2f4367['item'])return void _0x38bc53['stop']();if(!_0x4a249c['consumable']['consume'](_0x2f4367['markerRange'],_0x38bc53['name']))return;const _0x50ac9c=_0x2f4367['markerRange']['start']['nodeAfter'],_0x228ba1=_0x2f4367['markerRange']['end']['nodeBefore'],_0x3a218b=_0x50ac9c['parent']['parent'],{column:_0x4bb9eb}=_0x5d150c['getCellLocation'](_0x50ac9c),{column:_0x186431}=_0x5d150c['getCellLocation'](_0x228ba1);for(let _0x286762=_0x4bb9eb;_0x286762<=_0x186431;_0x286762++){const _0x4344cc=_0x5d150c['createTableWalker'](_0x3a218b,{'column':_0x286762,'includeAllSlots':!0x1});for(const _0x141ae1 of _0x4344cc){const _0x5e6754=_0x141ae1['cell'],_0x1663a3=_0x4a249c['mapper']['toViewElement'](_0x5e6754);_0x4a249c['writer']['addClass']('ck-suggestion-marker-'+_0x4c77ef,_0x1663a3),_0xa1f9fb&&_0x4a249c['writer']['setAttribute']('data-suggestion',_0x5556d2,_0x1663a3),_0x4a249c['mapper']['bindElementToMarker'](_0x1663a3,_0x2f4367['markerName']),_0x5cc314&&(_0x612f61['activeMarkers']['includes'](_0x2f4367['markerName'])?_0x4a249c['writer']['addClass']('ck-suggestion-marker--active',_0x1663a3):_0x4a249c['writer']['removeClass']('ck-suggestion-marker--active',_0x1663a3));}}};}_0x612f61['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2f1a59),_0x612f61['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2f1a59),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x69bc5a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a2e6e,_0x58936e,_0x299465)=>{_0x299465['options']['showSuggestionHighlights']&&_0x69bc5a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5a2e6e,_0x58936e,_0x299465);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x31acb7,_0xc9e000,_0x583577)=>{const {type:_0x1802bc,id:_0x2a4a32}=_0x612f61['_splitMarkerName'](_0xc9e000['markerName']),_0x10f006=_0x612f61['getSuggestion'](_0x2a4a32),_0x5ce788=_0x10f006['data'];if('formatBlock'!=_0x10f006['type']||!_0x5ce788||'setTableColumnHeader'!=_0x5ce788['commandName'])return;const _0x567e4c=_0x583577['mapper']['markerNameToElements'](_0xc9e000['markerName']);if(_0x567e4c){for(const _0x37c0ac of _0x567e4c)_0x583577['writer']['removeClass']('ck-suggestion-marker-'+_0x1802bc,_0x37c0ac),_0x583577['writer']['removeClass']('ck-suggestion-marker--active',_0x37c0ac),_0x583577['writer']['removeAttribute']('data-suggestion',_0x37c0ac),_0x583577['mapper']['unbindElementFromMarkerName'](_0x37c0ac,_0xc9e000['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x369a18=this['editor'],_0x2b2bfb=_0x369a18['locale'];function _0x3ffe53(_0x5c5d89){return{'type':'format','content':o(_0x2b2bfb,'*Format:*\x20%0',_0x5c5d89)};}_0x369a18['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d50fe=>{if('formatBlock'!=_0x1d50fe['type'])return;const {data:_0x411909}=_0x1d50fe;if(_0x411909){if('setTableRowHeader'==_0x411909['commandName']){const _0x3de207=_0x411909['commandParams'][0x0]['forceValue'];return _0x3ffe53(o(_0x2b2bfb,_0x3de207?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x411909['commandName']){const _0xa70397=_0x411909['commandParams'][0x0]['forceValue'];return _0x3ffe53(o(_0x2b2bfb,_0xa70397?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x8a0b4=>[_0x8a0b4,null]));class Mt extends _0xe53f34{static get['requires'](){return[Ct];}['afterInit'](){const _0x5f577e=this['editor'];if(!_0x5f577e['plugins']['has']('TableClipboard'))return;const _0x4bd5ab=_0x5f577e['plugins']['get']('TrackChangesEditing'),_0x1f91f5=_0x5f577e['plugins']['get']('TableUtils'),_0x3aa94b=_0x5f577e['plugins']['get'](Ct),_0x296206=_0x5f577e['plugins']['get']('TableClipboard');_0x3aa94b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5f577e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5f577e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x26fb5a=null;_0x5f577e['model']['on']('insertContent',(_0x429321,_0x5027ba)=>{const [_0x156bd0,_0x25401d]=_0x5027ba,_0x29811c=_0x5027ba[_0x5027ba['length']-0x1];_0x29811c&&_0x29811c['forceDefaultExecution']||_0x4bd5ab['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x21ed16,_0x315af6,_0x24a745,_0x1f9a41,_0x5edc8f){if(_0x315af6&&!_0x315af6['is']('documentSelection'))return!0x1;const _0x94aaad=_0x5edc8f['getTableIfOnlyTableInContent'](_0x21ed16,_0x24a745);if(!_0x94aaad||!Ue(_0x94aaad,void 0x0,_0x1f9a41))return!0x1;const _0x17c113=_0x1f9a41['getSelectionAffectedTableCells'](_0x24a745['document']['selection']);if(!_0x17c113['length'])return!0x1;const _0x50c212=_0x17c113[0x0]['findAncestor']('table'),_0x176602=_0x1f9a41['getRowIndexes'](_0x17c113),_0x2e35ea=_0x1f9a41['getColumnIndexes'](_0x17c113),_0x3b9eaa={'startRow':_0x176602['first'],'endRow':_0x176602['last'],'startColumn':_0x2e35ea['first'],'endColumn':_0x2e35ea['last']};return 0x1==_0x17c113['length']&&(_0x3b9eaa['endRow']+=_0x1f9a41['getRows'](_0x94aaad)-0x1,_0x3b9eaa['endColumn']+=_0x1f9a41['getColumns'](_0x94aaad)-0x1),Ue(_0x50c212,_0x3b9eaa,_0x1f9a41);}(_0x156bd0,_0x25401d,_0x5f577e['model'],_0x1f91f5,_0x296206)&&(_0x429321['stop'](),_0x26fb5a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5f577e['model']['change'](()=>{_0x5f577e['model']['insertContent'](_0x5027ba[0x0],_0x5027ba[0x1],_0x5027ba[0x2],{'forceDefaultExecution':!0x0});const _0xd2c52a=_0x2a43ef(),{rowInsertionRanges:_0x4b216b,columnInsertionRanges:_0x59b1d3,insertionRanges:_0x4242f7,deletionRanges:_0x28b2ad,cells:_0x94c5dc}=_0x26fb5a;_0x4b216b['length']&&_0x4bd5ab['markMultiRangeInsertion'](_0x4b216b,'tablePasteRow',{'tablePasteChainId':_0xd2c52a}),_0x59b1d3['length']&&_0x4bd5ab['markMultiRangeInsertion'](_0x59b1d3,'tablePasteColumn',{'tablePasteChainId':_0xd2c52a}),_0x4242f7['length']&&(_0x4bd5ab['markMultiRangeInsertion'](_0x4242f7,'tablePaste',{'tablePasteChainId':_0xd2c52a,'skipNestingCheck':!0x0}),_0x4242f7['forEach'](_0x71eb65=>_0x71eb65['detach']?.())),_0x28b2ad['length']&&(_0x4bd5ab['markMultiRangeDeletion'](_0x28b2ad,'tablePaste',{'tablePasteChainId':_0xd2c52a,'skipNestingCheck':!0x0}),_0x28b2ad['forEach'](_0x49b0c3=>_0x49b0c3['detach']?.()));const _0x422a1d=_0x4bd5ab['markMultiRangeBlockFormat'](_0x94c5dc['map'](({element:_0x3e8baf})=>_0x3e8baf),{'formatGroupId':_0x2a43ef()},[],'tablePasteCell',{'tablePasteChainId':_0xd2c52a});if(_0x422a1d){const _0x4fb69a=_0x422a1d['getMarkers'](),_0x3a9893=[];for(const {element:_0x3810b8,attributes:_0x3aecee}of _0x94c5dc){if(!_0x3aecee)continue;const _0x389cb9=_0x5f577e['model']['createRangeOn'](_0x3810b8),_0x136f82=_0x4fb69a['find'](_0xc73f1b=>_0xc73f1b['getRange']()['isEqual'](_0x389cb9));_0x136f82&&_0x3a9893['push']([_0x136f82['name'],_0x3aecee]);}_0x3a9893['length']&&_0x422a1d['setAttribute']('markerAttributes',Object['fromEntries'](_0x3a9893));}_0x26fb5a=null;}));},{'priority':_0x482ebf['high']+0xa}),_0x5f577e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2649b4,_0x5d54be)=>{const [_0x578a2f,_0x1c27b0,,_0x3b92e6]=_0x5d54be;if(!_0x26fb5a)return;_0x2649b4['stop']();const _0x3aeb7b=_0x578a2f['cell'],_0x1d3d82=_0x1c27b0,_0x4ddac0=Oe(_0x3aeb7b),_0x5a3d78=Oe(_0x1d3d82);_0x2649b4['return']=_0x3aeb7b;let _0x81c954=null,_0x239550=null;if(_0x5a3d78||_0x4ddac0){if(_0x4ddac0&&!_0x5a3d78){_0x3b92e6['remove'](_0x3aeb7b['getChild'](0x0));for(const _0x2db734 of Array['from'](_0x1d3d82['getChildren']()))_0x3b92e6['insert'](_0x2db734,_0x3aeb7b,'end');const _0x2d5c89=_0x26fb5a['rowInsertionIndexes']['includes'](_0x578a2f['row']),_0x3e9a69=_0x26fb5a['columnInsertionIndexes']['includes'](_0x578a2f['column']);_0x2d5c89||_0x3e9a69||(_0x81c954=_0x49f219['fromRange'](_0x3b92e6['createRangeIn'](_0x3aeb7b)));}else _0x5a3d78&&!_0x4ddac0&&(_0x239550=_0x3b92e6['createRangeIn'](_0x3aeb7b));}else{const _0x239311=_0x3b92e6['createElement']('tableCellSuggestion'),_0x3abd3a=_0x3b92e6['createElement']('tableCellSuggestion');_0x3b92e6['wrap'](_0x3b92e6['createRangeIn'](_0x3aeb7b),_0x3abd3a),_0x3b92e6['insert'](_0x239311,_0x3aeb7b,0x0);for(const _0x1d5754 of Array['from'](_0x1d3d82['getChildren']()))_0x3b92e6['insert'](_0x1d5754,_0x239311,'end');_0x81c954=_0x49f219['fromRange'](_0x3b92e6['createRangeOn'](_0x239311)),_0x239550=_0x49f219['fromRange'](_0x3b92e6['createRangeOn'](_0x3abd3a));}const _0x4a40c6=Array['from'](_0x1d3d82['getAttributes']())['filter'](([_0x206312])=>Be['includes'](_0x206312));_0x26fb5a['cells']['push']({'element':_0x3aeb7b,'attributes':_0x4a40c6['length']?Object['fromEntries'](_0x4a40c6):null}),_0x81c954&&_0x26fb5a['insertionRanges']['push'](_0x81c954),_0x239550&&_0x26fb5a['deletionRanges']['push'](_0x239550);},{'priority':'high'}),_0x1f91f5['on']('insertColumns',(_0x1674b6,_0x1694ab)=>{const [_0x4a7f82,_0x24fd0a={}]=_0x1694ab;if(!_0x26fb5a)return;const _0x154784=_0x24fd0a['at']||0x0,_0x37bd70=_0x24fd0a['columns']||0x1;_0x26fb5a['columnInsertionIndexes']=new Array(_0x37bd70)['fill'](_0x154784)['map']((_0x376fb5,_0x3c8a01)=>_0x376fb5+_0x3c8a01);for(const {cell:_0xc8ba40}of _0x1f91f5['createTableWalker'](_0x4a7f82,{'startColumn':_0x154784,'endColumn':_0x154784+_0x37bd70-0x1}))_0x26fb5a['columnInsertionRanges']['push'](_0x5f577e['model']['createRangeOn'](_0xc8ba40));},{'priority':'low'}),_0x1f91f5['on']('insertRows',(_0x162122,_0x137e8a)=>{const [_0x20695d,_0x55305a={}]=_0x137e8a;if(!_0x26fb5a)return;const _0x57439f=_0x55305a['at']||0x0,_0x424b2c=_0x55305a['rows']||0x1;_0x26fb5a['rowInsertionIndexes']=new Array(_0x424b2c)['fill'](_0x57439f)['map']((_0x7425c0,_0x5488d9)=>_0x7425c0+_0x5488d9);for(const {cell:_0x3d3d01}of _0x1f91f5['createTableWalker'](_0x20695d,{'startRow':_0x57439f,'endRow':_0x57439f+_0x424b2c-0x1}))_0x26fb5a['rowInsertionRanges']['push'](_0x5f577e['model']['createRangeOn'](_0x3d3d01));},{'priority':'low'}),_0x4bd5ab['descriptionFactory']['registerDescriptionCallback'](_0x3c43ec=>{if(_0x3c43ec['subType']&&_0x3c43ec['subType']['startsWith']('tablePaste'))return _0x3c43ec['previous']?{}:{'type':'insertion','content':o(_0x5f577e['locale'],'*Replace\x20table\x20cells*')};});const _0x16a016=()=>!0x1;for(const _0x2f8772 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('insertion',_0x2f8772,'join',_0x16a016),_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('deletion',_0x2f8772,'join',_0x16a016),_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f8772,'join',_0x16a016);_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x16a016),_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x56d3ec,_0x1e8345,_0x4089eb)=>{const _0x4cc58d=_0x56d3ec['map'](_0x3a03d9=>_0x3a03d9['getContainedElement']())['filter'](_0x3d01dc=>_0x3d01dc),_0x5539d0=new Map(_0x4cc58d['map'](_0x3ad4a6=>[_0x3ad4a6,null]));if(_0x26fb5a){for(const {element:_0x2158dc,attributes:_0x44a660}of _0x26fb5a['cells'])_0x44a660&&_0x5539d0['set'](_0x2158dc,_0x44a660);}else{if(_0x4089eb&&_0x4089eb['markerAttributes'])for(const [_0x138352,_0x294511]of Object['entries'](_0x4089eb['markerAttributes'])){const _0x2ad95a=_0x5f577e['model']['markers']['get'](_0x138352),_0xdcfbc=_0x2ad95a?_0x2ad95a['getRange']()['getContainedElement']():null;_0xdcfbc&&_0x5539d0['set'](_0xdcfbc,_0x294511);}}_0x5f577e['model']['change'](_0x1b36f3=>{for(const [_0x47c179,_0x310120]of _0x5539d0)_0x1b36f3['setAttributes']({...xe,..._0x310120},_0x47c179);});});const _0xa7578f=(_0x2716e4,_0x57e0e9)=>{_0x4bd5ab['_suggestionFactory']['registerCustomCallback'](_0x2716e4,'tablePaste',_0x57e0e9,(_0x239ff3,_0x5844f9,_0x10c0b8)=>{_0x5f577e['model']['change'](_0x53dcbb=>{const _0x1187d1=[];for(const _0x3dfbfd of _0x239ff3){const _0x42a370=_0x3dfbfd['start']['nodeAfter'];_0x42a370['is']('element','tableCellSuggestion')&&_0x1187d1['push'](_0x42a370);}_0x4bd5ab['_suggestionFactory']['getSuggestionCallback'](_0x2716e4,null,_0x57e0e9)(_0x239ff3,_0x5844f9,_0x10c0b8);for(const _0x48bebb of _0x1187d1)'$graveyard'!=_0x48bebb['root']['rootName']&&_0x53dcbb['unwrap'](_0x48bebb);});});};_0xa7578f('insertion','accept'),_0xa7578f('insertion','discard'),_0xa7578f('deletion','accept'),_0xa7578f('deletion','discard'),_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x9edf16=>{const _0x16a67f=_0x9edf16['map'](_0x215136=>_0x215136['getContainedElement']()),_0x3c7c23=_0x16a67f[0x0]['findAncestor']('table'),{minRow:_0x9462c3,maxRow:_0x7308aa}=_0x3aa94b['_getCoordsForCells'](_0x16a67f);_0x1f91f5['removeRows'](_0x3c7c23,{'at':_0x9462c3,'rows':_0x7308aa-_0x9462c3+0x1});}),_0x4bd5ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x222a9c=>{const _0x2cc4eb=_0x222a9c['map'](_0x18cfa3=>_0x18cfa3['getContainedElement']()),_0x4674b2=_0x2cc4eb[0x0]['findAncestor']('table'),{minColumn:_0x3515be,maxColumn:_0x333ac9}=_0x3aa94b['_getCoordsForCells'](_0x2cc4eb);_0x1f91f5['removeColumns'](_0x4674b2,{'at':_0x3515be,'columns':_0x333ac9-_0x3515be+0x1});});const _0x2e126c=(_0x1b12fb,_0x529638)=>{if(!_0x529638['subType']||!_0x529638['subType']['startsWith']('tablePaste'))return;const _0x284450=_0x529638['attributes']['tablePasteChainId'],_0x3723e5=_0x4bd5ab['getSuggestions']()['filter'](_0x31859c=>_0x31859c['isInContent']&&_0x31859c['attributes']&&_0x31859c['attributes']['tablePasteChainId']==_0x284450);_0x3723e5['length']&&_0x529638['getAllAdjacentSuggestions']()['length']!=_0x3723e5['length']&&_0x3723e5['reduce']((_0x21edec,_0x43bac0)=>(_0x21edec['next']=_0x43bac0,_0x43bac0['previous']=_0x21edec,_0x43bac0));};function _0x420dc3(_0x199d97,_0x16862f=!0x0){const {id:_0x50bf65,authorId:_0x51295d}=_0x4bd5ab['_splitMarkerName'](_0x199d97['markerName']),_0x1c6551=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1e592d=_0x4bd5ab['activeMarkers']['includes'](_0x199d97['markerName']);return _0x1e592d&&_0x1c6551['push']('ck-suggestion-marker--active'),{'classes':_0x1c6551,'attributes':{'data-suggestion':_0x50bf65,'data-author-id':_0x51295d},'priority':_0x1e592d&&_0x16862f?0xbc2:0xbb8};}_0x4bd5ab['on']('suggestionLoaded',_0x2e126c,{'priority':'high'}),_0x4bd5ab['on']('suggestionUnloaded',_0x2e126c,{'priority':'high'}),_0x5f577e['model']['document']['registerPostFixer'](()=>{let _0x1bdc1c=!0x1;const _0x462d44=Array['from'](_0x5f577e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x568cfc,data:_0x2a7fbf}of _0x462d44){const {group:_0x40479a,type:_0x5a1e03,id:_0x210db9}=_0x4bd5ab['_splitMarkerName'](_0x568cfc);if('suggestion'!=_0x40479a||'deletion'!=_0x5a1e03||_0x2a7fbf['oldRange'])continue;if(!_0x4bd5ab['hasSuggestion'](_0x210db9))continue;const _0x87058c=_0x4bd5ab['getSuggestion'](_0x210db9)['getRanges'](),_0x4c5e69=_0x5f577e['plugins']['get']('Users')['me'];for(const _0x4a535b of _0x4bd5ab['getSuggestions']()){if(!_0x4a535b['isInContent']||_0x4a535b['author']!=_0x4c5e69)continue;if('formatBlock'!=_0x4a535b['type']||'tablePasteCell'!=_0x4a535b['subType'])continue;if(_0x4a535b['getRanges']()['every'](_0x2b7d4e=>_0x87058c['some'](_0x44cf31=>_0x44cf31['containsRange'](_0x2b7d4e,!0x0)))){for(const _0x3fddab of _0x4a535b['getAllAdjacentSuggestions']())_0x3fddab['isInContent']&&(_0x3fddab['discard'](),_0x1bdc1c=!0x0);}}}return _0x1bdc1c;}),_0x5f577e['model']['document']['registerPostFixer'](_0xcf02dd=>{const _0x3fd3da=_0x5f577e['commands']['get']('redo');if(!_0x3fd3da||!_0x3fd3da['_createdBatches']['has'](_0xcf02dd['batch']))return!0x1;let _0x1514c7=!0x1;const _0x190d00=_0x5f577e['plugins']['get']('Users')['me'],_0x1994fb=_0x5f577e['model']['document']['differ']['getChanges'](),_0x5027b9=Array['from'](_0x5f577e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4674b8,data:_0x1261ee})=>{const {group:_0x5bcdbd,subType:_0x203fec,authorId:_0x19e38d}=_0x4bd5ab['_splitMarkerName'](_0x4674b8);return'suggestion'==_0x5bcdbd&&'tablePaste'==_0x203fec&&_0x19e38d==_0x190d00['id']&&!_0x1261ee['oldRange'];});for(const _0x14f8dd of _0x1994fb){if('insert'!=_0x14f8dd['type']||'tableCellSuggestion'!=_0x14f8dd['name']||0x1!=_0x14f8dd['length'])continue;const _0x5389f1=_0xcf02dd['createRange'](_0x14f8dd['position'],_0x14f8dd['position']['getShiftedBy'](0x1));if(!_0x5027b9['find'](({data:_0x3d1996})=>_0x3d1996['newRange']['isEqual'](_0x5389f1))){for(const {name:_0x21f14e,data:_0x58aa55}of _0x5027b9)if(_0x5389f1['containsRange'](_0x58aa55['newRange'])){_0xcf02dd['updateMarker'](_0x21f14e,{'range':_0x5389f1}),_0x1514c7=!0x0;break;}}}return _0x1514c7;}),_0x5f577e['model']['document']['registerPostFixer'](_0x39c6e1=>{let _0x266c7a=!0x1;const _0x5ec26d=_0x5f577e['plugins']['get']('Users')['me'],_0x4133cf=_0x4bd5ab['getSuggestions']()['filter'](_0x745d39=>_0x745d39['isInContent']&&_0x745d39['author']==_0x5ec26d),_0x480301=new Set(),_0x5771e1=new Set();for(const _0x2a01dc of _0x4133cf)if('tablePaste'==_0x2a01dc['subType'])for(const _0x2f0f2a of _0x2a01dc['getMarkers']()){const _0x1a8c2a=_0x2f0f2a['getRange']()['getContainedElement']();if(_0x1a8c2a){if(_0x1a8c2a['is']('element','tableCellSuggestion')&&Oe(_0x1a8c2a)){_0x2a01dc['removeMarker'](_0x2f0f2a['name']),_0x480301['add'](_0x1a8c2a),_0x266c7a=!0x0;const _0x4bfd5d=_0x1a8c2a['nextSibling'],_0x205f40=_0x1a8c2a['previousSibling'],_0x2112ab=_0x4bfd5d&&_0x4bfd5d['is']('element','tableCellSuggestion'),_0x169ba8=_0x205f40&&_0x205f40['is']('element','tableCellSuggestion');_0x2112ab&&!_0x480301['has'](_0x4bfd5d)&&_0x5771e1['add'](_0x4bfd5d),_0x169ba8&&!_0x480301['has'](_0x205f40)&&_0x5771e1['add'](_0x205f40);}else _0x1a8c2a['is']('element','paragraph')&&_0x1a8c2a['isEmpty']&&(_0x2a01dc['removeMarker'](_0x2f0f2a['name']),_0x266c7a=!0x0);}}else{if('tablePasteCell'==_0x2a01dc['subType']){if(!_0x2a01dc['attributes']||!_0x2a01dc['attributes']['tablePasteChainId'])continue;const _0x52049a=_0x2a01dc['attributes']['markerAttributes'];if(_0x52049a&&Object['keys'](_0x52049a)['length'])continue;const _0x562e5b=_0x2a01dc['attributes']['tablePasteChainId'];let _0x319af2=!0x0,_0x314c85=!0x0;for(const _0x5e894f of _0x4133cf)if(_0x5e894f['subType']&&_0x5e894f['subType']['startsWith']('tablePaste')){if(!_0x5e894f['attributes']['tablePasteChainId']){_0x314c85=!0x1;break;}if(_0x5e894f['id']!=_0x2a01dc['id']&&_0x5e894f['attributes']['tablePasteChainId']==_0x562e5b){_0x319af2=!0x1;break;}}_0x314c85&&_0x319af2&&(_0x2a01dc['removeMarkers'](),_0x266c7a=!0x0);}}for(const _0x120301 of _0x480301)_0x39c6e1['remove'](_0x120301);for(const _0x48a654 of _0x5771e1)_0x39c6e1['unwrap'](_0x48a654);return _0x266c7a;}),_0x5f577e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x403c15=>_0x420dc3(_0x403c15),'converterPriority':'high'}),_0x5f577e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1a0138,_0x4ed1b4)=>_0x4ed1b4['options']['showSuggestionHighlights']?_0x420dc3(_0x1a0138,!0x1):null,'converterPriority':'high'});const _0x1b761e=_0x5f577e['editing']['view'];this['listenTo'](_0x1b761e['document'],'clipboardOutput',(_0x2518d0,_0x5e3677)=>{const _0x26e5c1=[];for(const _0x51c858 of _0x1b761e['createRangeIn'](_0x5e3677['content'])['getItems']())_0x51c858['is']('element','suggestion-td')&&_0x26e5c1['push'](_0x51c858);_0x1b761e['change'](_0x4cb536=>{for(const _0x5e3966 of _0x26e5c1)_0x4cb536['move'](_0x4cb536['createRangeIn'](_0x5e3966),_0x4cb536['createPositionBefore'](_0x5e3966)),_0x4cb536['remove'](_0x5e3966);});});}}function Oe(_0x1f375c){if(_0x1f375c['isEmpty'])return!0x0;const _0x5e4bb4=_0x1f375c['getChild'](0x0);return _0x5e4bb4['is']('element','paragraph')&&_0x5e4bb4['isEmpty'];}function Ue(_0x1cc818,_0x5eaa69={},_0x3d8aaa){for(const {isAnchor:_0x51d5cd,cellHeight:_0x5b5cb4,cellWidth:_0xa361d3}of _0x3d8aaa['createTableWalker'](_0x1cc818,{'includeAllSlots':!0x0,..._0x5eaa69}))if(!_0x51d5cd||0x1!=_0x5b5cb4||0x1!=_0xa361d3)return!0x1;return!0x0;}class $t extends _0xe53f34{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x32f70c=this['editor']['plugins']['get']('TrackChangesEditing');_0x32f70c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x32f70c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x32f70c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x32f70c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x32f70c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x32f70c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x63673c,_0x11629d){const _0x35e30e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26a59a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x37ded7=_0x11629d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x308e33=_0x26a59a['getColumnGroupElement'](_0x37ded7);let _0x12103c=_0x308e33?_0x26a59a['getTableColumnsWidths'](_0x308e33):null,_0x17767f=_0x37ded7['getAttribute']('tableWidth')||null;const _0x1e63f3=_0x11629d['tableWidth']||_0x17767f,_0x4ef93c=_0x11629d['columnWidths']||_0x12103c,_0x2be64b=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c61e6 of _0x35e30e['getSuggestions']()){const _0x544147=_0x5c61e6['getContainedElement']();if('resizeTable'===_0x5c61e6['subType']&&_0x544147===_0x37ded7){_0x5c61e6['author']!==_0x2be64b&&_0x5c61e6['discard']();const _0x48bc1e=_0x5c61e6['data']['commandParams'];_0x17767f=_0x48bc1e[0x0]['tableWidth'],_0x12103c=_0x48bc1e[0x0]['columnWidths'];break;}}_0x63673c({'table':_0x37ded7,'tableWidth':_0x1e63f3,'columnWidths':_0x4ef93c}),_0x35e30e['markBlockFormat'](_0x37ded7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x17767f,'columnWidths':_0x12103c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xf4e2e2){if('formatBlock'!=_0xf4e2e2['type']&&'formatInline'!=_0xf4e2e2['type'])return;const {data:_0x1dcdf6}=_0xf4e2e2;if(_0x1dcdf6&&'resizeTable'===_0x1dcdf6['formatGroupId']){const _0x21b428='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x21b428)};}}}class Bt extends _0xe53f34{['afterInit'](){const _0x44ba3f=this['editor'];_0x44ba3f['plugins']['has']('Template')&&_0x44ba3f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0xe53f34{['afterInit'](){const _0x1bcf3b=this['editor'];if(!_0x1bcf3b['commands']['get']('insertTableOfContents'))return;_0x1bcf3b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x476b96=_0x1bcf3b['plugins']['get']('TrackChangesEditing'),_0x2a492a=_0x1bcf3b['locale'];_0x476b96['descriptionFactory']['registerElementLabel']('tableOfContents',_0x56d19e=>o(_0x2a492a,'ELEMENT_TABLE_OF_CONTENTS',_0x56d19e));}}class Rt extends _0xe53f34{['afterInit'](){const _0x4a9935=this['editor'];if(!_0x4a9935['plugins']['has']('Title'))return;const _0x1c4f53=_0x4a9935['plugins']['get']('TrackChangesEditing');_0x1c4f53['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4a9935['locale'],'ELEMENT_TITLE')),_0x4a9935['model']['document']['registerPostFixer'](_0xdac99=>{let _0x22abe6=!0x1;const _0x227e1a=Array['from'](_0x4a9935['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a88e1,data:_0x39f958}of _0x227e1a){const {group:_0x2e1510}=_0x1c4f53['_splitMarkerName'](_0x5a88e1);if('suggestion'!==_0x2e1510||!_0x39f958['newRange'])continue;const _0x19a097=_0x39f958['newRange'],_0x94410a=_0x19a097['end']['nodeBefore'];if(!_0x94410a||!_0x94410a['is']('element','title-content'))continue;if(!_0x19a097['start']['isTouching'](_0x19a097['end']))continue;const _0x91ebc=_0x4a9935['model']['schema']['getNearestSelectionRange'](_0x19a097['end'],'forward');if(_0x91ebc&&_0x91ebc['isCollapsed']){const _0x222e10=_0xdac99['createRange'](_0x19a097['start'],_0x91ebc['start']);_0x222e10['isEqual'](_0x19a097)||(_0xdac99['updateMarker'](_0x5a88e1,{'range':_0x222e10}),_0x22abe6=!0x0);}_0x22abe6||(_0xdac99['removeMarker'](_0x5a88e1),_0x22abe6=!0x0);}return _0x22abe6;});}}class Tt extends _0xe53f34{['afterInit'](){const _0x32df1a=this['editor'],_0x2b0768=_0x32df1a['plugins']['get']('TrackChangesEditing');_0x32df1a['plugins']['has']('Uploadcare')&&(_0x2b0768['enableCommand']('uploadcare'),_0x32df1a['plugins']['has']('UploadcareImageEdit')&&(_0x2b0768['enableCommand']('uploadcareImageEdit'),_0x2b0768['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2b0768['registerBlockAttribute']('uploadcareImageId'),_0x2b0768['descriptionFactory']['registerDescriptionCallback'](_0xb76a76=>{if('attribute'!=_0xb76a76['type'])return;const {data:_0x46c866}=_0xb76a76;return _0x46c866&&'uploadcareImageId'==_0x46c866['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0xe53f34{['afterInit'](){const _0x4af5be=this['editor'],_0x2d7e36=_0x4af5be['plugins']['get']('TrackChangesEditing');_0x4af5be['plugins']['has']('UndoEditing')&&(_0x2d7e36['enableCommand']('undo'),_0x2d7e36['enableCommand']('redo'));}}class Et extends _0xe53f34{static get['requires'](){return[Ct];}['afterInit'](){const _0x30e423=this['editor'];if(!_0x30e423['plugins']['has']('TableCaptionEditing'))return;_0x30e423['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0xe53f34{['tableProperties'];['tableCellProperties'];constructor(_0x3bcab3){super(_0x3bcab3),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 _0x4b402f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x406f71 of this['tableProperties'])_0x4b402f['enableCommand'](_0x406f71,(_0xa5ca73,_0x119522)=>{const _0x5dd3d9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x406f71,[_0x5dd3d9],this['tableProperties'],'tableProperties',_0xa5ca73,_0x119522);});_0x4b402f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4b402f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b402f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x53c127,_0x1bd63f)=>this['handleDiscardAction'](this['tableProperties'],_0x53c127,_0x1bd63f)),_0x4b402f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1b0a0f of this['tableCellProperties'])_0x4b402f['enableCommand'](_0x1b0a0f,(_0x124674,_0x360072)=>{const _0x11a3fc=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1b0a0f,_0x11a3fc,this['tableCellProperties'],'tableCellProperties',_0x124674,_0x360072);});_0x4b402f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4b402f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4b402f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x7287a3,_0x5c966a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x7287a3,_0x5c966a)),_0x4b402f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4b402f['descriptionFactory']['registerDescriptionCallback'](_0x354336=>this['handleSuggestionDescription'](_0x354336));}['_handlePropertyChange'](_0x3b45e6,_0x289dfe,_0x353016,_0x491702,_0xd1da7b,_0x5ae717){const _0x22044e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5ae717['batch'],()=>{for(const _0x1c5c83 of _0x289dfe){if(this['_getSuggestion'](_0x1c5c83,_0x491702))_0xd1da7b(_0x5ae717);else{const _0x16fe28={};for(const _0x58c76d of _0x353016){const _0x470a59=_0x1c5c83['getAttribute'](_0x58c76d);void 0x0!==_0x470a59&&(_0x16fe28[_0x58c76d]=_0x470a59);}_0xd1da7b(_0x5ae717),_0x22044e['markBlockFormat'](_0x1c5c83,{'commandParams':[_0x16fe28]},[],_0x491702);}}});}['handleDiscardAction'](_0x292c51,_0x522123,_0xc2c02f){const _0x4e6273=_0x522123[0x0]['start']['nodeAfter'],_0x584ec7=_0xc2c02f['commandParams'][0x0];this['editor']['model']['change'](_0x1abb2b=>{for(const _0x30ec8a of _0x292c51)void 0x0!==_0x584ec7[_0x30ec8a]?_0x1abb2b['setAttribute'](_0x30ec8a,_0x584ec7[_0x30ec8a],_0x4e6273):_0x1abb2b['removeAttribute'](_0x30ec8a,_0x4e6273);});}['handleSuggestionDescription'](_0x48d3ee){if(_0x48d3ee['data'])switch(_0x48d3ee['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'](_0x3a58dc,_0x3f066e){const _0x4e0693=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1e1158 of _0x4e0693['getSuggestions']({'skipNotAttached':!0x0})){const _0x4deaa0=_0x1e1158['getContainedElement']();if(_0x1e1158['subType']===_0x3f066e&&_0x4deaa0===_0x3a58dc)return _0x1e1158;}return null;}}const m='$elementName';class p extends _0xe53f34{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4d2373,_0xc459f1,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x363b47){super(_0x363b47),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x50cc41,_0x88eb03,_0xee6335,_0x1ee8db)=>{this['_model']['change'](()=>{for(const _0x1537b1 of[..._0x1ee8db,..._0xee6335])this['_model']['markers']['has'](_0x1537b1)&&_0x363b47['editing']['reconvertMarker'](_0x1537b1);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x363b47['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(),_0x363b47['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x363b47['config']['get']('trackChanges.trackFormatChanges'),_0x363b47['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x363b47['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x363b47,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1f8621=this['editor'],_0x1d7136=(_0x1bd5ed,_0x2eb324)=>{if('attribute'!=_0x1bd5ed)return'ck-suggestion-marker-'+_0x1bd5ed;const _0x7959c0=_0x2eb324['split']('|')[0x0];return this['_isBlockAttribute'](_0x7959c0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1f8621['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x377e98=>{const {id:_0x3cdcf1,authorId:_0x4b63dc,type:_0x2a3a2c,subType:_0x4ddedd}=this['_splitMarkerName'](_0x377e98['markerName']),_0x67318d=['ck-suggestion-marker',_0x1d7136(_0x2a3a2c,_0x4ddedd)];let _0x4263a9=0xbb8;return this['activeMarkers']['includes'](_0x377e98['markerName'])&&(_0x67318d['push']('ck-suggestion-marker--active'),_0x4263a9=0xbc2),'deletion'==_0x2a3a2c&&(_0x4263a9+=0x5),{'classes':_0x67318d,'attributes':{'data-suggestion':_0x3cdcf1,'data-author-id':_0x4b63dc},'priority':_0x4263a9};}}),_0x1f8621['conversion']['for']('dataDowncast')['add'](_0x48315d=>{_0x48315d['on']('addMarker:suggestion',(_0x42384e,_0x481b1e,_0x336d5d)=>{if(!_0x336d5d['options']['showSuggestionHighlights'])return;const _0x221421=_0x481b1e['item'];if(!_0x221421)return;const _0x155be4=_0x336d5d['mapper']['toViewElement'](_0x221421);_0x1f8621['model']['schema']['isObject'](_0x221421)&&_0x155be4&&!_0x155be4['getCustomProperty']('widget')&&_0x155be4['is']('containerElement')&&_0x188437(_0x155be4,_0x336d5d['writer']);},{'priority':'high'});}),_0x1f8621['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x522381,_0x22ab6e)=>{if(!_0x22ab6e['options']['showSuggestionHighlights'])return null;const {type:_0x4bc7e5,subType:_0x1de300}=this['_splitMarkerName'](_0x522381['markerName']);return{'classes':['ck-suggestion-marker',_0x1d7136(_0x4bc7e5,_0x1de300)],'priority':0xbb8};}});const _0x327d54=({showActiveMarkers:_0x3031aa=!0x0,isAttributeSuggestion:_0x1d21dd=!0x1}={})=>(_0x361ff3,_0xc4f0a7,_0x4438ab)=>{if(!_0xc4f0a7['item'])return;const {id:_0xfe3169,authorId:_0x5f25d2}=this['_splitMarkerName'](_0xc4f0a7['markerName']);if(_0x1d21dd){const _0x4c8390=this['_suggestions']['get'](_0xfe3169),_0xae19ff=this['_getAttributeKey'](_0x4c8390);if(!this['_isBlockAttribute'](_0xae19ff))return;}if(_0xc4f0a7['item']['is']('selection'))return void _0x4438ab['consumable']['consume'](_0xc4f0a7['item'],_0x361ff3['name']);const _0x18e9c0=_0x4438ab['mapper']['toViewElement'](_0xc4f0a7['item']);if(_0xc4f0a7['item']['is']('element')&&_0x1f8621['model']['schema']['isBlock'](_0xc4f0a7['item'])&&!_0x18e9c0['getCustomProperty']('addHighlight')){_0x4438ab['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x18e9c0),_0x4438ab['writer']['setAttribute']('data-suggestion',_0xfe3169,_0x18e9c0),_0x4438ab['writer']['setAttribute']('data-author-id',_0x5f25d2,_0x18e9c0),_0x4438ab['mapper']['bindElementToMarker'](_0x18e9c0,_0xc4f0a7['markerName']),_0x3031aa&&(this['activeMarkers']['includes'](_0xc4f0a7['markerName'])?_0x4438ab['writer']['addClass']('ck-suggestion-marker--active',_0x18e9c0):_0x4438ab['writer']['removeClass']('ck-suggestion-marker--active',_0x18e9c0));for(const _0x183d4e of _0x1f8621['model']['createRangeIn'](_0xc4f0a7['item'])['getItems']())_0x4438ab['consumable']['consume'](_0x183d4e,_0x361ff3['name']);_0x4438ab['consumable']['consume'](_0xc4f0a7['item'],_0x361ff3['name']);}};_0x1f8621['conversion']['for']('dataDowncast')['add'](_0xcb0324=>{_0xcb0324['on']('addMarker:suggestion:formatBlock',(_0x59e984,_0xa6871c,_0x229fce)=>{_0x229fce['options']['showSuggestionHighlights']&&_0x327d54({'showActiveMarkers':!0x1})(_0x59e984,_0xa6871c,_0x229fce);},{'priority':'highest'});}),_0x1f8621['conversion']['for']('dataDowncast')['add'](_0x124103=>{_0x124103['on']('addMarker:suggestion:attribute',(_0x3e51c9,_0xf41188,_0x515311)=>{_0x515311['options']['showSuggestionHighlights']&&_0x327d54({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3e51c9,_0xf41188,_0x515311);},{'priority':'highest'});}),_0x1f8621['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x47d8fb,_0x58f03d)=>_0x58f03d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x47d8fb['substr'](0xb)}}),_0x1f8621['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4d2a11,{writer:_0x3edf5e})=>{let _0x4c36d1='suggestion:'+_0x4d2a11['getAttribute']('suggestion-type')+':'+_0x4d2a11['getAttribute']('id');return _0x4d2a11['getAttribute']('marker-count')&&(_0x4c36d1+=':'+_0x4d2a11['getAttribute']('marker-count')),_0x3edf5e['createElement']('$marker',{'data-name':_0x4c36d1});}}),_0x1f8621['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f8621['conversion']['for']('editingDowncast')['add'](_0x823814=>{_0x823814['on']('addMarker:suggestion:formatBlock',_0x327d54(),{'priority':'high'});}),_0x1f8621['conversion']['for']('editingDowncast')['add'](_0x7037aa=>{_0x7037aa['on']('addMarker:suggestion:attribute',_0x327d54({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1f8621['conversion']['for']('editingDowncast')['add'](_0xdbe93d=>{_0xdbe93d['on']('removeMarker:suggestion:formatBlock',(_0x29000c,_0x411b19,_0x2d8d8c)=>{const _0x88f492=_0x2d8d8c['mapper']['markerNameToElements'](_0x411b19['markerName']);if(_0x88f492){for(const _0x2ae369 of _0x88f492)_0x2ae369['getCustomProperty']('addHighlight')||(_0x2d8d8c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ae369),_0x2d8d8c['writer']['removeAttribute']('data-suggestion',_0x2ae369),_0x2d8d8c['writer']['removeAttribute']('data-author-id',_0x2ae369),_0x2d8d8c['mapper']['unbindElementFromMarkerName'](_0x2ae369,_0x411b19['markerName']));}},{'priority':'high'});}),_0x1f8621['conversion']['for']('editingDowncast')['add'](_0x1b0f75=>{_0x1b0f75['on']('removeMarker:suggestion:attribute',(_0x4d70e7,_0x456d7a,_0x2bdaec)=>{const _0x4857f4=_0x2bdaec['mapper']['markerNameToElements'](_0x456d7a['markerName']);if(!_0x4857f4)return;const {id:_0x35a85b}=this['_splitMarkerName'](_0x456d7a['markerName']),_0xa0b2e9=this['_suggestions']['get'](_0x35a85b),_0x31fa6c=this['_getAttributeKey'](_0xa0b2e9);if(this['_isBlockAttribute'](_0x31fa6c)){for(const _0x540410 of _0x4857f4)_0x540410['getCustomProperty']('addHighlight')||(_0x2bdaec['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x540410),_0x2bdaec['writer']['removeAttribute']('data-suggestion',_0x540410),_0x2bdaec['writer']['removeAttribute']('data-author-id',_0x540410),_0x2bdaec['mapper']['unbindElementFromMarkerName'](_0x540410,_0x456d7a['markerName']));}},{'priority':'high'});}),_0x1f8621['model']['document']['registerPostFixer'](_0x408d4c=>{let _0x3e1a6c=!0x1;const _0x5511cd=Array['from'](_0x1f8621['model']['document']['differ']['getChangedMarkers']()),_0x54bb37=new Set();for(const {name:_0xb3e792,data:_0x35da71}of _0x5511cd){const {group:_0x31613d,type:_0x525c27,subType:_0x37161e,id:_0x31f7fe}=this['_splitMarkerName'](_0xb3e792);if('suggestion'!==_0x31613d)continue;const _0x22dfdb=this['_suggestions']['get'](_0x31f7fe);if(null!=_0x35da71['newRange']){'formatInline'==_0x525c27&&(_0x3e1a6c=_0x3e1a6c||Lt(_0x35da71['newRange'],_0xb3e792,_0x408d4c,_0x1f8621['model']['schema']));const _0x41b49c='attribute'==_0x525c27&&this['_isBlockAttribute'](_0x37161e['split']('|')[0x0]);if(_0x35da71['newRange']['isCollapsed']||'$graveyard'==_0x35da71['newRange']['root']['rootName']||'formatBlock'==_0x525c27&&!Ht(_0x35da71['newRange'])||_0x41b49c&&!Ht(_0x35da71['newRange'])||'deletion'==_0x525c27&&!(!Ft(_0x354104=_0x35da71['newRange'])&&!function(_0x38f64a){return _0x38f64a['start']['parent']==_0x38f64a['end']['nodeBefore']&&_0x38f64a['start']['isAtEnd'];}(_0x354104)))_0x408d4c['removeMarker'](_0xb3e792),_0x3e1a6c=!0x0;else{if(!_0x22dfdb||!_0x22dfdb['isInContent'])continue;if(_0x35da71['newRange']&&_0x35da71['oldRange']&&_0x35da71['newRange']['isEqual'](_0x35da71['oldRange']))continue;_0x54bb37['add'](_0x22dfdb);}}}var _0x354104;return _0x54bb37['size']>0x0&&(_0x3e1a6c=!!this['_joinWithAdjacentSuggestions'](_0x54bb37)||_0x3e1a6c),_0x3e1a6c;}),_0x1f8621['model']['document']['registerPostFixer'](_0xe2be67=>{let _0x2fa1b1=!0x1;for(const _0x47d3dd of _0x1f8621['model']['document']['differ']['getChanges']())if('insert'==_0x47d3dd['type'])for(const _0x2501fc of this['_suggestions']['values']()){if(_0x2501fc['isMultiRange']||!_0x2501fc['isInContent'])continue;const _0x23f036='formatBlock'==_0x2501fc['type'],_0x3a734a=this['_getAttributeKey'](_0x2501fc),_0x54a96f=_0x3a734a&&this['_isBlockAttribute'](_0x3a734a);if(!_0x23f036&&!_0x54a96f)continue;const _0xdbfd2c=_0x2501fc['getFirstRange']();if(_0xdbfd2c['start']['parent']!=_0xdbfd2c['end']['parent']&&!_0xdbfd2c['end']['isAtEnd']){const _0x1b4bc3=_0x1f8621['model']['createPositionAt'](_0xdbfd2c['start']['nodeAfter'],'end'),_0x44bb76=_0x1f8621['model']['createRange'](_0xdbfd2c['start'],_0x1b4bc3);_0xe2be67['updateMarker'](_0x2501fc['getFirstMarker'](),{'range':_0x44bb76}),_0x2fa1b1=!0x0;}}return _0x2fa1b1;}),_0x1f8621['model']['document']['registerPostFixer'](_0x3435f7=>this['_processAttributeChanges'](_0x3435f7)),_0x1f8621['model']['document']['registerPostFixer'](_0x48c6fe=>!_0x48c6fe['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x48c6fe)),_0x1f8621['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f8621['model']['document']['on']('change:data',(_0x2240c0,_0x56cfb1)=>{if(!_0x56cfb1['isLocal']||_0x56cfb1['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4936df=_0x1f8621['model']['document']['differ']['getChanges']();if(0x0==_0x4936df['length'])return;const _0x422a24=[],_0x189ec6=_0x4936df['filter'](_0x6bacd5=>'attribute'==_0x6bacd5['type']),_0x5ba429=_0x4936df['filter'](_0x409a67=>'insert'==_0x409a67['type']&&'$text'!=_0x409a67['name']);for(const _0x3e3e29 of _0x189ec6)this['_isRegisteredAttribute'](_0x3e3e29['attributeKey'])&&_0x422a24['push']({'key':_0x3e3e29['attributeKey'],'newValue':_0x3e3e29['attributeNewValue'],'oldValue':_0x3e3e29['attributeOldValue'],'range':qt(_0x3e3e29['range'],_0x1f8621['model'])});for(const _0x875da6 of _0x5ba429){if('rename'!=_0x875da6['action']&&'refresh'!=_0x875da6['action'])continue;const _0xc6f630=zt(_0x875da6['position']['nodeAfter'],_0x1f8621['model']),_0x1a979a=_0x875da6['before'];'rename'==_0x875da6['action']&&_0x422a24['push']({'key':m,'newValue':_0x875da6['name'],'oldValue':_0x1a979a['name'],'range':_0xc6f630});for(const [_0x548279,_0x310d75]of _0x1a979a['attributes']){if(!this['_isRegisteredAttribute'](_0x548279))continue;const _0x13bda4=_0x875da6['attributes']['get'](_0x548279);_0x310d75!==_0x13bda4&&_0x422a24['push']({'key':_0x548279,'newValue':_0x13bda4,'oldValue':_0x310d75,'range':_0xc6f630});}for(const [_0x832d59,_0x5f003d]of _0x875da6['attributes'])this['_isRegisteredAttribute'](_0x832d59)&&(_0x1a979a['attributes']['has'](_0x832d59)||_0x422a24['push']({'key':_0x832d59,'newValue':_0x5f003d,'oldValue':null,'range':_0xc6f630}));}0x0!=_0x422a24['length']&&_0x1f8621['model']['enqueueChange'](_0x56cfb1,_0xa4c90c=>{const _0x517519=_0x2a43ef();for(const {range:_0x2098d4,key:_0x215886,oldValue:_0x790c72,newValue:_0x589b77}of _0x422a24)this['markAttributeChange'](_0x2098d4,_0x215886,_0x790c72,_0x589b77,{'groupId':_0x517519});this['_reduceExistingSuggestions'](_0xa4c90c,_0x422a24);});},{'priority':'lowest'}),_0x1f8621['model']['markers']['on']('update:suggestion',(_0x363be6,_0x19aee2,_0x2284c2)=>{if(null==_0x2284c2){const {id:_0x3342c3}=this['_splitMarkerName'](_0x19aee2['name']),_0x20fee6=this['_suggestions']['get'](_0x3342c3);_0x20fee6&&_0x20fee6['addMarkerName'](_0x19aee2['name']);}}),_0x1f8621['model']['document']['on']('change:data',()=>{const _0x970897=Array['from'](_0x1f8621['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3ff746=>'suggestion'===this['_splitMarkerName'](_0x3ff746['name'])['group']);if(0x0===_0x970897['length'])return;_0x970897['sort']((_0x4f9f48,_0x5a4913)=>{const _0x3bf6f5=_0x4f9f48['data']['oldRange'],_0x2be200=_0x5a4913['data']['oldRange'];return null===_0x3bf6f5&&null===_0x2be200?0x0:null===_0x3bf6f5&&null!==_0x2be200?-0x1:null!==_0x3bf6f5&&null===_0x2be200?0x1:_0x3bf6f5['start']['isBefore'](_0x2be200['start'])?-0x1:0x1;});const _0x565e44=new Set(),_0x687b64=new Set();for(const {name:_0x5979bb,data:_0x40f8b5}of _0x970897){const {id:_0x23ec6a}=this['_splitMarkerName'](_0x5979bb);if(null===_0x40f8b5['oldRange']){const _0x311c52=this['_handleNewSuggestionMarker'](_0x5979bb);_0x687b64['add'](_0x311c52);}else{const _0x39d4fc=this['_suggestions']['get'](_0x23ec6a);null!==_0x40f8b5['newRange']||_0x39d4fc['isInContent']?(_0x565e44['add'](_0x39d4fc['head']),_0x687b64['add'](_0x39d4fc)):this['_removeSuggestion'](_0x39d4fc);}}_0x687b64['size']>0x0&&this['_refreshSuggestionsChain'](_0x687b64);for(const _0x3a5d93 of _0x565e44)this['fire']('suggestionChanged',_0x3a5d93);}),_0x1f8621['model']['on']('applyOperation',(_0x2b01f8,_0x1b37ea)=>{const _0x3a8519=_0x1b37ea[0x0];if(!this['_suggestions']['size'])return;if(!_0x3a8519['isDocumentOperation'])return;if(_0x3a8519['batch']['isUndo']||!_0x3a8519['batch']['isLocal'])return;let _0x26b28e,_0x5ed0cc;switch(_0x3a8519['type']){case'insert':_0x26b28e=_0x1f8621['model']['createPositionAt'](_0x3a8519['position']),_0x5ed0cc=_0x26b28e['getShiftedBy'](_0x3a8519['howMany']);break;case'split':_0x26b28e=_0x1f8621['model']['createPositionAt'](_0x3a8519['splitPosition']),_0x5ed0cc=_0x1f8621['model']['createPositionAt'](_0x3a8519['moveTargetPosition']);break;case'move':_0x26b28e=_0x1f8621['model']['createPositionAt'](_0x3a8519['targetPosition']),_0x5ed0cc=_0x26b28e['getShiftedBy'](_0x3a8519['howMany']);break;default:return;}const _0x3960df=_0x1f8621['model']['createRange'](_0x26b28e,_0x5ed0cc);_0x1f8621['model']['change'](()=>{for(const {suggestion:_0x12b568,meta:_0x50a2a5}of this['_findSuggestions'](_0x3960df)){if(_0x12b568['isMultiRange'])continue;if('formatInline'==_0x12b568['type'])continue;const _0x54556f=this['_getAttributeKey'](_0x12b568);if(_0x54556f&&this['_isBlockAttribute'](_0x54556f)&&'split'!=_0x3a8519['type'])continue;const _0x539634=_0x12b568['data']&&_0x12b568['data']['multipleBlocks'];('formatBlock'!=_0x12b568['type']||'split'==_0x3a8519['type']&&!_0x539634)&&(_0x50a2a5['containsRangeInObject']||'insertion'==_0x12b568['type']&&_0x50a2a5['isOwn']||_0x12b568['getFirstRange']()['containsRange'](_0x3960df)&&this['_breakSuggestionMarker'](_0x12b568,_0x26b28e,_0x5ed0cc));}});},{'priority':'lowest'}),_0x1f8621['model']['on']('deleteContent',(_0x24951b,_0x4126ba)=>{const _0x110623=_0x4126ba[0x0],_0xed2cd2=_0x4126ba[0x1];if(_0xed2cd2&&_0xed2cd2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x110623['isCollapsed'])return;const _0x18b676=_0x1f8621['model']['schema'],{start:_0x2a9bdd,end:_0x5bb413}=_0x110623['getFirstRange'](),_0x15f8f4=_0x2a9bdd['nodeAfter']&&_0x18b676['isLimit'](_0x2a9bdd['nodeAfter'])?null:_0x18b676['getNearestSelectionRange'](_0x2a9bdd,'forward'),_0x12f438=_0x5bb413['nodeBefore']&&_0x18b676['isLimit'](_0x5bb413['nodeBefore'])?null:_0x18b676['getNearestSelectionRange'](_0x5bb413,'backward'),_0xb16170=_0x1f8621['model']['createRange'](_0x15f8f4?_0x15f8f4['start']:_0x2a9bdd,_0x12f438?_0x12f438['end']:_0x5bb413);_0x1f8621['model']['change'](_0x2876bb=>{this['markDeletion'](_0xb16170);const _0x29dd3e=_0x1f8621['model']['schema']['getNearestSelectionRange'](_0xb16170['start']);_0x110623['is']('documentSelection')?_0x2876bb['setSelection'](_0x29dd3e):_0x110623['setTo'](_0x29dd3e);}),_0x24951b['stop']();},{'priority':_0x482ebf['normal']+0xa}),_0x1f8621['model']['on']('insertContent',(_0x2a9c92,_0x4ac675)=>{const _0x437154=_0x4ac675[_0x4ac675['length']-0x1];_0x437154&&_0x437154['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f8621['model']['change'](()=>{let _0xd5c5db=_0x1f8621['model']['insertContent'](_0x4ac675[0x0],_0x4ac675[0x1],_0x4ac675[0x2],{'forceDefaultExecution':!0x0});if(!_0xd5c5db)return;_0x2a9c92['return']=_0xd5c5db['clone']();const _0x561538=_0xd5c5db['end']['nodeBefore'],_0x2b67de=_0x1f8621['model']['schema'];_0x561538&&_0x2b67de['isBlock'](_0x561538)&&!_0x2b67de['isObject'](_0x561538)&&(_0xd5c5db=_0x1f8621['model']['createRange'](_0xd5c5db['start'],_0x1f8621['model']['createPositionAt'](_0x561538,'end'))),this['markInsertion'](_0xd5c5db);}),_0x2a9c92['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x49f193=new O(_0x1f8621,this['_suggestions']);_0x1f8621['commands']['add']('acceptSuggestion',_0x49f193),this['enableCommand']('acceptSuggestion');const _0x51398e=new R(_0x1f8621,this['_suggestions']);_0x1f8621['commands']['add']('discardSuggestion',_0x51398e),this['enableCommand']('discardSuggestion'),_0x1f8621['commands']['add']('acceptAllSuggestions',new x(_0x1f8621,_0x49f193,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f8621['commands']['add']('discardAllSuggestions',new x(_0x1f8621,_0x51398e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f8621['commands']['add']('acceptSelectedSuggestions',new E(_0x1f8621,_0x49f193,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f8621['commands']['add']('discardSelectedSuggestions',new E(_0x1f8621,_0x51398e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x827898=_0x1f8621['plugins']['get']('CommentsRepository');this['listenTo'](_0x827898,'addComment',(_0x5cd182,{threadId:_0xa8287b})=>{const _0x1b1688=this['_suggestions']['get'](_0xa8287b);_0x1b1688&&_0x1b1688['commentThread']&&0x1===_0x1b1688['commentThread']['length']&&this['_updateSuggestionData'](_0xa8287b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x827898,'removeComment',(_0xe26982,{threadId:_0x4ad329})=>{const _0x3dc21f=this['_suggestions']['get'](_0x4ad329);_0x3dc21f&&_0x3dc21f['commentThread']&&!_0x3dc21f['commentThread']['length']&&this['_updateSuggestionData'](_0x4ad329,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x324143){const _0x1c8ce7=_0x20c5ca([0x59,0x39,0x4c,0x47,0x6f,0x35,0x50,0x66,0x6c,0x56,0x63,0x43,0x48,0x4e,0x65,0x32,0x4a,0x58,0x45,0x79,0x49,0x7a,0x54,0x44,0x6a,0x51,0x37,0x33,0x6e,0x78,0x61,0x30,0x67,0x34,0x69,0x46,0x76,0x53,0x62,0x4d,0x6b,0x31,0x52,0x64,0x4f,0x77,0x4b,0x5a,0x70,0x57,0x71,0x74,0x42,0x72,0x73,0x36,0x55,0x6d,0x41,0x38,0x68,0x75]),_0x391369=0x15087a44,_0x53814e=0x150f1a8c^_0x391369,_0x4b393e=window[_0x20c5ca([0x44,0x61,0x74,0x65])][_0x20c5ca([0x6e,0x6f,0x77])](),_0x42d2a6=_0x324143[_0x20c5ca([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x39f9c1=new window[(_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f0cec=>{_0x42d2a6[_0x20c5ca([0x6f,0x6e,0x63,0x65])](_0x20c5ca([0x72,0x65,0x61,0x64,0x79]),_0x2f0cec);}),_0x4cc5a8={[_0x20c5ca([0x6b,0x74,0x79])]:_0x20c5ca([0x45,0x43]),[_0x20c5ca([0x75,0x73,0x65])]:_0x20c5ca([0x73,0x69,0x67]),[_0x20c5ca([0x63,0x72,0x76])]:_0x20c5ca([0x50,0x2d,0x32,0x35,0x36]),[_0x20c5ca([0x78])]:_0x20c5ca([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]),[_0x20c5ca([0x79])]:_0x20c5ca([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]),[_0x20c5ca([0x61,0x6c,0x67])]:_0x20c5ca([0x45,0x53,0x32,0x35,0x36])},_0x1c8f2e=_0x42d2a6[_0x20c5ca([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20c5ca([0x67,0x65,0x74])](_0x20c5ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a8a1c(){let _0x50a42b,_0x2302d3=null,_0xb58b2=null;try{if(_0x1c8f2e==_0x20c5ca([0x47,0x50,0x4c]))return _0x20c5ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50a42b=_0xb81807(),!_0x50a42b)return _0x20c5ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50a42b[_0x20c5ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xb58b2=_0x22072e(_0x50a42b[_0x20c5ca([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50a42b[_0x20c5ca([0x6a,0x74,0x69])])),await _0x4201ee()?_0x55597f()?_0x3af576()?_0x20c5ca([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x48eb8a()?(_0x50a42b[_0x20c5ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20c5ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2302d3=_0xfc6034(_0x20c5ca([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50a42b[_0x20c5ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20c5ca([0x74,0x72,0x69,0x61,0x6c])&&(_0x2302d3=_0xfc6034(_0x20c5ca([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3064b3()):_0x20c5ca([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20c5ca([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20c5ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xdaac35){return _0x20c5ca([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3af576(){const _0x3351dc=[_0x20c5ca([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20c5ca([0x74,0x72,0x69,0x61,0x6c])][_0x20c5ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50a42b[_0x20c5ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b393e/0x3e8:0xe10*_0x53814e;return _0x50a42b[_0x20c5ca([0x65,0x78,0x70])]<_0x3351dc;}function _0x55597f(){const _0x1d4616=_0x50a42b[_0x20c5ca([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1d4616)return!0x1;if(_0x1d4616[_0x20c5ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c5ca([0x2a])))return!0x0;if(_0x1d4616[_0x20c5ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c5ca([0x54,0x43])))return!0x0;if(_0x1d4616[_0x20c5ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c5ca([0x52,0x54,0x43]))){if(_0x25da36())return!0x0;if(_0x34c02e()||_0x15cb27())return!0x0;}return!0x1;}function _0x48eb8a(){const _0x53f60b=_0x50a42b[_0x20c5ca([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53f60b||0x0==_0x53f60b[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17a207}=new URL(window[_0x20c5ca([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53f60b[_0x20c5ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a207))return!0x0;const _0x2e0901=_0x17a207[_0x20c5ca([0x73,0x70,0x6c,0x69,0x74])](_0x20c5ca([0x2e]));return _0x53f60b[_0x20c5ca([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x247ded=>_0x247ded[_0x20c5ca([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20c5ca([0x2a])))[_0x20c5ca([0x6d,0x61,0x70])](_0x4f35f9=>_0x4f35f9[_0x20c5ca([0x73,0x70,0x6c,0x69,0x74])](_0x20c5ca([0x2e])))[_0x20c5ca([0x73,0x6f,0x6d,0x65])](_0x481a7d=>_0x2e0901[_0x20c5ca([0x65,0x76,0x65,0x72,0x79])]((_0x1c6964,_0x180e29)=>_0x481a7d[_0x180e29]===_0x1c6964||_0x481a7d[_0x180e29]===_0x20c5ca([0x2a])));}function _0x3064b3(){return _0x2302d3&&_0xb58b2?new window[(_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x548f50,_0x4787e4)=>{_0x2302d3[_0x20c5ca([0x74,0x68,0x65,0x6e])](_0x548f50,_0x4787e4),_0xb58b2[_0x20c5ca([0x74,0x68,0x65,0x6e])](_0xb715eb=>{_0xb715eb!=_0x20c5ca([0x56,0x61,0x6c,0x69,0x64])&&_0x548f50(_0xb715eb);},_0x4787e4);}):_0x2302d3||_0xb58b2||_0x20c5ca([0x56,0x61,0x6c,0x69,0x64]);}}function _0x22072e(_0x535956,_0x2faba3){return new window[(_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x403786=>{if(_0x3fe491())return _0x403786(_0x20c5ca([0x56,0x61,0x6c,0x69,0x64]));_0x5b15f8(),_0x42d2a6[_0x20c5ca([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20c5ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x25f212=!0x1;const _0x3b38ba=_0x2a43ef();function _0x29d2b9(_0xae8e0){return!!_0xae8e0&&(typeof _0xae8e0===_0x20c5ca([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xae8e0===_0x20c5ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xae8e0[_0x20c5ca([0x74,0x68,0x65,0x6e])]===_0x20c5ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xae8e0[_0x20c5ca([0x63,0x61,0x74,0x63,0x68])]===_0x20c5ca([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28fa87(_0x42ea46){_0x397cc5(_0x42ea46)[_0x20c5ca([0x74,0x68,0x65,0x6e])](_0x491b28=>{if(!_0x491b28||_0x491b28[_0x20c5ca([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20c5ca([0x6f,0x6b]))return _0x20c5ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x429e7b(_0x5dc0c1(_0x3b38ba+_0x2faba3))!=_0x491b28[_0x20c5ca([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20c5ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20c5ca([0x56,0x61,0x6c,0x69,0x64]);})[_0x20c5ca([0x74,0x68,0x65,0x6e])](_0x181ea7=>(_0x3a1358(),_0x181ea7),()=>{const _0x1e2951=_0x4d98be();return null==_0x1e2951?(_0x3a1358(),_0x20c5ca([0x56,0x61,0x6c,0x69,0x64])):_0x20c5ca(_0x4b393e-_0x1e2951>(0x3104fe44^_0x391369)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20c5ca([0x74,0x68,0x65,0x6e])](_0x403786)[_0x20c5ca([0x63,0x61,0x74,0x63,0x68])](()=>{_0x403786(_0x20c5ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x309ef3=0x153e94c4^_0x391369;function _0x3a1358(){const _0x822d43=_0x20c5ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x429e7b(_0x5dc0c1(_0x535956)),_0x5ce7b5=_0x1ba019(_0x429e7b(window[_0x20c5ca([0x4d,0x61,0x74,0x68])][_0x20c5ca([0x63,0x65,0x69,0x6c])](_0x4b393e/_0x309ef3)));window[_0x20c5ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20c5ca([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x822d43,_0x5ce7b5);}function _0x4d98be(){const _0x234835=_0x20c5ca([0x6c,0x6c,0x63,0x74,0x2d])+_0x429e7b(_0x5dc0c1(_0x535956)),_0x2c13a4=window[_0x20c5ca([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20c5ca([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x234835);return _0x2c13a4?window[_0x20c5ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ba019(_0x2c13a4),0x10)*_0x309ef3:null;}function _0x397cc5(_0x372ddd){return new window[(_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32feee,_0x3d577e)=>{_0x372ddd[_0x20c5ca([0x74,0x68,0x65,0x6e])](_0x32feee,_0x3d577e),window[_0x20c5ca([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d577e,0x1509ae84^_0x391369);});}}_0x42d2a6[_0x20c5ca([0x6f,0x6e])](_0x20c5ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2e2173,_0x11669e)=>{if(_0x11669e[0x0]!=_0x535956)return _0x403786(_0x20c5ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11669e[0x1]={..._0x11669e[0x1],[_0x20c5ca([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3b38ba};},{[_0x20c5ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20c5ca([0x68,0x69,0x67,0x68])}),_0x42d2a6[_0x20c5ca([0x6f,0x6e])](_0x20c5ca([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47c622=>{_0x29d2b9(_0x47c622[_0x20c5ca([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x25f212=!0x0,_0x28fa87(_0x47c622[_0x20c5ca([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20c5ca([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20c5ca([0x6c,0x6f,0x77])}),_0x39f9c1[_0x20c5ca([0x74,0x68,0x65,0x6e])](()=>{_0x25f212||_0x403786(_0x20c5ca([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fe491(){return _0x42d2a6[_0x20c5ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20c5ca([0x76,0x69,0x65,0x77])][_0x20c5ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20c5ca([0x61,0x75,0x74,0x6f]);}function _0x5b15f8(){_0x42d2a6[_0x20c5ca([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20c5ca([0x76,0x69,0x65,0x77])][_0x20c5ca([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20c5ca([0x61,0x75,0x74,0x6f]);}}function _0xfc6034(_0x960de4){const _0x3830d0=[new window[(_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x142dfd=>setTimeout(_0x142dfd,0x15014488^_0x391369)),_0x39f9c1[_0x20c5ca([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18af3a=>{let _0x548349=0x0;_0x42d2a6[_0x20c5ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x20c5ca([0x6f,0x6e])](_0x20c5ca([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x198892,_0x543ebb)=>{_0x543ebb[0x0][_0x20c5ca([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x548349++,_0x548349==(0x15087bbc^_0x391369)&&(_0x18af3a(),_0x198892[_0x20c5ca([0x6f,0x66,0x66])]());});}))];return window[_0x20c5ca([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20c5ca([0x72,0x61,0x63,0x65])](_0x3830d0)[_0x20c5ca([0x74,0x68,0x65,0x6e])](()=>_0x960de4);}async function _0x5bc2bb(){await _0x39f9c1,_0x42d2a6[_0x20c5ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x20c5ca([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2733c0,_0x42d2a6[_0x20c5ca([0x6d,0x6f,0x64,0x65,0x6c])][_0x20c5ca([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2733c0,_0x42d2a6[_0x20c5ca([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20c5ca([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25da36(){return _0x136f14(_0x20c5ca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3b98e7(_0x20c5ca([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x20c5ca([0x73,0x74,0x61,0x74,0x65])]==_0x20c5ca([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x34c02e(){return _0x136f14(_0x20c5ca([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 _0x15cb27(){return _0x136f14(_0x20c5ca([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x226927(_0x3d5d2e){const _0x2533ce=_0x132a6a();_0x42d2a6[_0x2533ce]=_0x20c5ca([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3d5d2e,_0x3d5d2e!=_0x20c5ca([0x56,0x61,0x6c,0x69,0x64])&&_0x5bc2bb();}function _0x132a6a(){const _0xd33f36=window[_0x20c5ca([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20c5ca([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20c5ca([0x6e,0x6f,0x77])]())[_0x20c5ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20c5ca([0x2e]),'');let _0x206664=_0x20c5ca([0x59]);for(let _0xca664b=0x0;_0xca664b<_0xd33f36[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xca664b+=0x2){let _0x388c09=window[_0x20c5ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd33f36[_0x20c5ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xca664b,_0xca664b+0x2));_0x388c09>=_0x1c8ce7[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x388c09-=_0x1c8ce7[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x206664+=_0x1c8ce7[_0x388c09];}return _0x206664;}function _0xb81807(){const _0x4f69de=_0x1c8f2e[_0x20c5ca([0x73,0x70,0x6c,0x69,0x74])](_0x20c5ca([0x2e]));if(0x3!=_0x4f69de[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d33ab(_0x4f69de[0x1]);function _0x4d33ab(_0x3d73ab){const _0x2e7b42=_0x5519bd(_0x3d73ab);return _0x2e7b42&&_0x3aa19b()?_0x2e7b42:null;function _0x3aa19b(){const _0x2cfa7d=_0x2e7b42[_0x20c5ca([0x6a,0x74,0x69])],_0x4e0fb0=window[_0x20c5ca([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cfa7d[_0x20c5ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cfa7d[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46cbfd={..._0x2e7b42,[_0x20c5ca([0x6a,0x74,0x69])]:_0x2cfa7d[_0x20c5ca([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2cfa7d[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46cbfd[_0x20c5ca([0x76,0x63])],_0x5dc0c1(_0x46cbfd)==_0x4e0fb0;}}}async function _0x4201ee(){let _0x95c8e7=!0x0;try{const _0x397137=_0x1c8f2e[_0x20c5ca([0x73,0x70,0x6c,0x69,0x74])](_0x20c5ca([0x2e])),[_0x2ff37a,_0x3a9a6e,_0x4dcd98]=_0x397137;return _0x18f618(_0x2ff37a),await _0x3ac362(_0x2ff37a,_0x3a9a6e,_0x4dcd98),_0x95c8e7;}catch(_0x16f37e){return!0x1;}function _0x18f618(_0x10e118){const _0x236ffe=_0x5519bd(_0x10e118);_0x236ffe&&_0x236ffe[_0x20c5ca([0x61,0x6c,0x67])]==_0x20c5ca([0x45,0x53,0x32,0x35,0x36])||(_0x95c8e7=!0x1);}async function _0x3ac362(_0x50cd52,_0x527b70,_0x540f31){const _0x1bec7a=window[_0x20c5ca([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20c5ca([0x66,0x72,0x6f,0x6d])](_0x15488c(_0x540f31),_0x3a4c71=>_0x3a4c71[_0x20c5ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4a8bed=new window[(_0x20c5ca([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20c5ca([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50cd52+_0x20c5ca([0x2e])+_0x527b70),_0x197eed=window[_0x20c5ca([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20c5ca([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x197eed)return;const _0x211189=await _0x197eed[_0x20c5ca([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20c5ca([0x6a,0x77,0x6b]),_0x4cc5a8,{[_0x20c5ca([0x6e,0x61,0x6d,0x65])]:_0x20c5ca([0x45,0x43,0x44,0x53,0x41]),[_0x20c5ca([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20c5ca([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20c5ca([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x197eed[_0x20c5ca([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20c5ca([0x6e,0x61,0x6d,0x65])]:_0x20c5ca([0x45,0x43,0x44,0x53,0x41]),[_0x20c5ca([0x68,0x61,0x73,0x68])]:{[_0x20c5ca([0x6e,0x61,0x6d,0x65])]:_0x20c5ca([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x211189,_0x1bec7a,_0x4a8bed)||(_0x95c8e7=!0x1);}}function _0x5519bd(_0xd2f771){return _0xd2f771[_0x20c5ca([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20c5ca([0x65,0x79]))?JSON[_0x20c5ca([0x70,0x61,0x72,0x73,0x65])](_0x15488c(_0xd2f771)):null;}function _0x15488c(_0x151bc1){return window[_0x20c5ca([0x61,0x74,0x6f,0x62])](_0x151bc1[_0x20c5ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20c5ca([0x2b]))[_0x20c5ca([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20c5ca([0x2f])));}function _0x5dc0c1(_0x49b67){let _0x369ccc=0x1505;function _0x26620b(_0x34b5b8){for(let _0x90e1b7=0x0;_0x90e1b7<_0x34b5b8[_0x20c5ca([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x90e1b7++){const _0x314708=_0x34b5b8[_0x20c5ca([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x90e1b7);_0x369ccc=(_0x369ccc<<0x5)+_0x369ccc+_0x314708,_0x369ccc&=_0x369ccc;}}function _0x1dc2af(_0x1e245e){Array[_0x20c5ca([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e245e)?_0x1e245e[_0x20c5ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1dc2af):_0x1e245e&&typeof _0x1e245e==_0x20c5ca([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20c5ca([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e245e)[_0x20c5ca([0x73,0x6f,0x72,0x74])]()[_0x20c5ca([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x505dbf,_0x44f017])=>{_0x26620b(_0x505dbf),_0x1dc2af(_0x44f017);}):_0x26620b(window[_0x20c5ca([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e245e));}return _0x1dc2af(_0x49b67),_0x369ccc>>>0x0;}function _0x429e7b(_0xc1537c){return _0xc1537c[_0x20c5ca([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20c5ca([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20c5ca([0x30]));}function _0x1ba019(_0x256e70){return _0x256e70[_0x20c5ca([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20c5ca([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20c5ca([0x6a,0x6f,0x69,0x6e])]('');}function _0x136f14(_0xb9a5b3){return _0x42d2a6[_0x20c5ca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20c5ca([0x68,0x61,0x73])](_0xb9a5b3);}function _0x3b98e7(_0x3ff2c5){return _0x42d2a6[_0x20c5ca([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20c5ca([0x67,0x65,0x74])](_0x3ff2c5);}function _0x2733c0(){}function _0x20c5ca(_0x47cae6){return _0x47cae6['map'](_0x3350c7=>String['fromCharCode'](_0x3350c7))['join']('');}_0x226927(await _0x4a8a1c());}(this);}set['adapter'](_0xdd2730){if(this['_adapter'])throw new _0x4fb61a('track-changes-adapter-already-set',this);this['_adapter']=_0xdd2730;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xa1856e=!0x1,toJSON:_0x55fd2f=!0x1}={}){const _0x189c8d=[];for(const _0x57019c of this['_suggestions']['values']())_0xa1856e&&!_0x57019c['isInContent']||_0x189c8d['push'](_0x57019c);return _0x55fd2f?_0x189c8d['map'](_0xa383d7=>_0xa383d7['toJSON']()):_0x189c8d;}['getSuggestion'](_0x41d3be){const _0x54cae8=this['_suggestions']['get'](_0x41d3be);if(!_0x54cae8)throw new _0x4fb61a('track-changes-suggestion-not-found',this);return _0x54cae8;}['hasSuggestion'](_0x14dfe7){return this['_suggestions']['has'](_0x14dfe7);}['addSuggestionData'](_0x596b2a){const {authorId:_0x58397b,id:_0x13bda0,attributes:_0x1b8a3e}=_0x596b2a,[_0x4e2abe,_0x26f21a]=_0x596b2a['type']['split'](':'),_0x3fb405=this['_suggestions']['get'](_0x13bda0)||this['_createSuggestion'](_0x4e2abe,_0x26f21a,_0x13bda0,_0x58397b,_0x1b8a3e);if(this['_addThreadToSuggestion'](_0x3fb405),this['_checkSuggestionCorrectness'](_0x3fb405,_0x4e2abe,_0x26f21a||null,_0x58397b),_0x3fb405['createdAt']=_0x596b2a['createdAt'],_0x3fb405['_isDataLoaded']=!0x0,_0x1b8a3e&&_0x1b8a3e['@external']){const _0x38dff2=_0x1b8a3e['@external'],_0x531443=this['_getExternalAuthor'](_0x38dff2['authorName']);_0x3fb405['authoredAt']=_0x38dff2['createdAt'],_0x3fb405['author']=_0x531443,_0x3fb405['isExternal']=!0x0;}else _0x3fb405['authoredAt']=_0x596b2a['createdAt'];switch(_0x596b2a['data']&&(_0x3fb405['data']=_0x596b2a['data']),_0x596b2a['attributes']&&(_0x3fb405['attributes']=_0x596b2a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3fb405['_saved']=!0x0),this['_suggestionState']['get'](_0x3fb405)){case'notReady':this['_suggestionState']['set'](_0x3fb405,'dataReady');break;case'markerReady':_0x3fb405['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3fb405])),this['_refreshSuggestionsChain'](new Set([_0x3fb405])),this['_suggestionState']['set'](_0x3fb405,'ready'),this['fire']('suggestionLoaded',_0x3fb405)):this['_suggestionState']['set'](_0x3fb405,'removed');}return _0x3fb405;}['acceptSuggestion'](_0x4ce714){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x156396 of _0x4ce714['getAllAdjacentSuggestions']())_0x156396['accept']();});});}['discardSuggestion'](_0x1bc284){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa43456 of _0x1bc284['getAllAdjacentSuggestions']())_0xa43456['discard']();});});}['enableCommand'](_0x2817da,_0x252262){const _0x36927d=this['editor']['commands']['get'](_0x2817da);if(!_0x36927d)throw new _0x4fb61a('track-changes-command-not-found',this,{'commandName':_0x2817da});if(this['_enabledCommands']['has'](_0x36927d))throw new _0x4fb61a('track-changes-enable-command-twice',this,{'commandName':_0x2817da});this['_enabledCommands']['add'](_0x36927d),_0x252262&&_0x36927d['on']('execute',(_0x2fdc15,_0x339408)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x339408['length']>0x0&&_0x339408[_0x339408['length']-0x1]&&_0x339408[_0x339408['length']-0x1]['forceDefaultExecution']?_0x339408['pop']():(_0x2fdc15['return']=_0x252262((..._0xf3dbe5)=>_0x36927d['execute'](..._0xf3dbe5,{'forceDefaultExecution':!0x0}),..._0x339408),_0x2fdc15['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x430eb8){let _0x54c176,_0x3c8b82;const _0x92f0d1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x54c176=_0x430eb8();}catch(_0x2f31e4){_0x3c8b82=_0x2f31e4;}return _0x92f0d1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3c8b82&&_0x4fb61a['rethrowUnexpectedError'](_0x3c8b82,this),_0x54c176;}['markInsertion'](_0x92a9a4,_0x2b5333=null,_0x5412ce={}){if(_0x92a9a4['isCollapsed'])return null;const _0x2b8611=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4fe610,meta:_0x31ade2}of this['_findSuggestions'](_0x92a9a4,'insertion'))if(_0x31ade2['isOwn']){if(!_0x31ade2['isNextTo']){if(_0x31ade2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x4fe610,_0x5412ce))continue;return _0x4fe610;}if(Qt(_0x4fe610,_0x5412ce))return _0x4fe610;this['_breakSuggestionMarker'](_0x4fe610,_0x92a9a4['start'],_0x92a9a4['end']);break;}if(_0x2b5333==_0x4fe610['subType']&&Qt(_0x4fe610,_0x5412ce)){const _0x5038aa=_0x4fe610['getFirstRange']();return _0x5038aa['start']['isEqual'](_0x92a9a4['end'])?this['_setSuggestionRange'](_0x4fe610,this['_model']['createRange'](_0x92a9a4['start'],_0x5038aa['end'])):this['_setSuggestionRange'](_0x4fe610,this['_model']['createRange'](_0x5038aa['start'],_0x92a9a4['end'])),_0x4fe610;}}const _0x2c14c5=_0x2a43ef(),_0x447ba5=_0x2b8611['id'],_0x5810b2=_0x2b5333?'insertion:'+_0x2b5333:'insertion',_0x360df4=this['_setSuggestionData']({'id':_0x2c14c5,'type':_0x5810b2,'createdAt':new Date(),'authorId':_0x447ba5,'attributes':_0x5412ce});return this['_addSuggestionMarker'](_0x5810b2,_0x2c14c5,_0x447ba5,_0x92a9a4),_0x360df4;}['markMultiRangeInsertion'](_0x1a3f3a,_0x42384f='multi',_0x1d7fb6={}){const _0x4ef566=this['editor']['plugins']['get']('Users')['me'],_0x97f862=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x42384f,'join');for(const _0xde3415 of this['getSuggestions']())if(_0xde3415['author']['id']==_0x4ef566['id']&&'insertion'==_0xde3415['type']&&_0xde3415['subType']==_0x42384f&&Qt(_0xde3415,_0x1d7fb6)&&(_0x97f862(_0xde3415['getRanges'](),_0x1a3f3a)||_0x97f862(_0x1a3f3a,_0xde3415['getRanges']()))){for(const _0x1fee8b of _0x1a3f3a)_0xde3415['addRange'](_0x1fee8b);return _0xde3415;}for(const {suggestion:_0x422ad6,meta:_0x227af5}of this['_findSuggestions'](_0x1a3f3a,'insertion')){if(!_0x227af5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x227af5['containsRangeInObject'])continue;if(!Qt(_0x422ad6,_0x1d7fb6))continue;let _0x699a4b=!0x0;for(const _0x4b7f4e of _0x422ad6['getRanges']())for(const _0x3ef008 of _0x1a3f3a)if(!_0x4b7f4e['containsRange'](_0x3ef008)){_0x699a4b=!0x1;break;}if(_0x699a4b)return _0x422ad6;}const _0x78269e=_0x2a43ef(),_0x78c0ac=_0x4ef566['id'],_0x117403='insertion:'+_0x42384f,_0xd2c55c=this['_setSuggestionData']({'id':_0x78269e,'type':_0x117403,'createdAt':new Date(),'authorId':_0x78c0ac,'attributes':_0x1d7fb6});for(const _0x4f75d3 of _0x1a3f3a)this['_addSuggestionMarker'](_0x117403,_0x78269e,_0x78c0ac,_0x4f75d3,u['getMultiRangeId']());return _0xd2c55c;}['markInlineFormat'](_0x10dd12,_0x4cfac7,_0x21465c=null,_0x4c22ff={}){if(_0x21465c=_0x21465c||Jt(_0x4cfac7),_0x10dd12['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x9af121=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x21465c,'accept');return this['forceDefaultExecution'](()=>_0x9af121([_0x10dd12],_0x4cfac7,_0x4c22ff)),null;}const _0x2b7166=this['editor']['plugins']['get']('Users')['me'],_0x2fba20=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x401c5b,meta:_0x2d8adb}of this['_findSuggestions'](_0x10dd12,'insertion'))_0x2d8adb['isOwn']&&!_0x2d8adb['isInsideObject']&&_0x2fba20['push'](..._0x401c5b['getRanges']());}const _0x456493=function(_0x379104,_0xc62bb5){const _0x314279=[];for(const _0x57c7c8 of _0xc62bb5){const _0x17a623=_0x379104['getIntersection'](_0x57c7c8);_0x17a623&&_0x314279['push'](_0x17a623);}return _0x314279;}(_0x10dd12,_0x2fba20),_0x2e1f15=function(_0x343c46,_0x347efa){const _0x553188=[_0x343c46];for(const _0x1c7523 of _0x347efa){let _0x5ee4f8=0x0;for(;_0x5ee4f8<_0x553188['length'];){const _0x5ea182=_0x553188[_0x5ee4f8]['getDifference'](_0x1c7523);_0x553188['splice'](_0x5ee4f8,0x1,..._0x5ea182),_0x5ee4f8+=_0x5ea182['length'];}}return _0x553188;}(_0x10dd12,_0x2fba20);_0x456493['length']&&this['_model']['change'](()=>{for(const _0x129327 of _0x456493){const _0x5520e8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x21465c,'accept');this['forceDefaultExecution'](()=>_0x5520e8([_0x129327],_0x4cfac7,_0x4c22ff));}});for(const _0x4e45fd of _0x2e1f15){let _0x2c5f1d=null,_0x463cc0=_0x4e45fd['start'],_0x5a099f=_0x4e45fd['end'];for(const {suggestion:_0x40827c,meta:_0x50c513}of this['_findSuggestions'](_0x4e45fd,'formatInline')){if(!_0x50c513['isOwn'])continue;if(_0x40827c['subType']!=_0x21465c)continue;if(!Qt(_0x40827c,_0x4c22ff))continue;const _0x219d9d=_0x40827c['getFirstRange']();if(_0x219d9d['containsRange'](_0x4e45fd,!0x0))return null;_0x463cc0=_0x463cc0['isBefore'](_0x219d9d['start'])?_0x463cc0:_0x219d9d['start'],_0x5a099f=_0x5a099f['isAfter'](_0x219d9d['end'])?_0x5a099f:_0x219d9d['end'],_0x2c5f1d?_0x219d9d['start']['isBefore'](_0x2c5f1d['getFirstRange']()['start'])?(_0x2c5f1d['removeMarkers'](),_0x2c5f1d=_0x40827c):_0x40827c['removeMarkers']():_0x2c5f1d=_0x40827c;}const _0x5d4c1c=this['_model']['createRange'](_0x463cc0,_0x5a099f);if(_0x2c5f1d)this['_setSuggestionRange'](_0x2c5f1d,_0x5d4c1c);else{const _0x59e3b5=_0x2a43ef(),_0x15f7f0=_0x2b7166['id'];this['_setSuggestionData']({'id':_0x59e3b5,'type':'formatInline:'+_0x21465c,'data':_0x4cfac7,'createdAt':new Date(),'authorId':_0x15f7f0,'attributes':_0x4c22ff}),this['_addSuggestionMarker']('formatInline:'+_0x21465c,_0x59e3b5,_0x15f7f0,_0x5d4c1c);}}return null;}['markBlockFormat'](_0x25fdf2,_0x200fdc,_0x4cb8ce=[],_0x2140ea=null,_0x4367b4={}){_0x200fdc['formatGroupId']||(_0x200fdc['formatGroupId']=_0x200fdc['commandName']),_0x200fdc['multipleBlocks']=_0x25fdf2['is']('range'),_0x2140ea=_0x2140ea||Jt(_0x200fdc);const _0x11e230=_0x4cb8ce['map'](_0x24e8cc=>zt(_0x24e8cc,this['_model'])),_0x7f8963=_0x25fdf2['is']('range')?_0x25fdf2:zt(_0x25fdf2,this['_model']);if('never'===this['_trackFormatChanges']){const _0x41a93b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2140ea,'accept');return this['forceDefaultExecution'](()=>_0x41a93b([_0x7f8963],_0x200fdc,_0x4367b4)),null;}_0x11e230['push'](_0x7f8963);let _0x1c2eaa=!0x0;for(const _0x82b2b4 of _0x11e230)if(!this['_rangeIsInLocalUserInsertion'](_0x82b2b4)){_0x1c2eaa=!0x1;break;}if(_0x1c2eaa&&'always'!==this['_trackFormatChanges']){const _0x367874=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2140ea,'accept');return this['forceDefaultExecution'](()=>_0x367874([_0x7f8963],_0x200fdc,_0x4367b4)),null;}let _0x2e0601=null,_0x3e208f=_0x7f8963['start'],_0x8fc611=_0x7f8963['end'];for(const {suggestion:_0x59d7e3,meta:_0x515825}of this['_findSuggestions'](_0x7f8963,'formatBlock')){if(!_0x515825['isOwn'])continue;if(_0x515825['isNextTo']||_0x515825['containsRangeInObject']||_0x515825['isInsideObject'])continue;if(_0x59d7e3['data']['formatGroupId']!=_0x200fdc['formatGroupId'])continue;if(!Qt(_0x59d7e3,_0x4367b4))continue;const _0x446566=_0x59d7e3['getFirstRange']();if(_0x59d7e3['subType']==_0x2140ea){if(_0x446566['containsRange'](_0x7f8963,!0x0))return null;_0x3e208f=_0x3e208f['isBefore'](_0x446566['start'])?_0x3e208f:_0x446566['start'],_0x8fc611=_0x8fc611['isAfter'](_0x446566['end'])?_0x8fc611:_0x446566['end'],_0x2e0601?_0x446566['start']['isBefore'](_0x2e0601['getFirstRange']()['start'])?(_0x2e0601['removeMarkers'](),_0x2e0601=_0x59d7e3):_0x59d7e3['removeMarkers']():_0x2e0601=_0x59d7e3;}else{const _0x35aa37=_0x7f8963['getIntersection'](_0x446566);this['_cutOutSuggestionMarker'](_0x59d7e3,_0x35aa37);}}const _0x18061a=this['editor']['plugins']['get']('Users')['me'],_0x533a90=_0x2a43ef(),_0x11c41c=_0x18061a['id'];if(_0x2e0601)return this['_setSuggestionRange'](_0x2e0601,this['_model']['createRange'](_0x3e208f,_0x8fc611)),_0x2e0601;{const _0x5d381a=this['_setSuggestionData']({'id':_0x533a90,'type':'formatBlock:'+_0x2140ea,'data':_0x200fdc,'createdAt':new Date(),'authorId':_0x11c41c,'attributes':_0x4367b4});return this['_addSuggestionMarker']('formatBlock:'+_0x2140ea,_0x533a90,_0x11c41c,this['_model']['createRange'](_0x3e208f,_0x8fc611)),_0x5d381a;}}['markMultiRangeBlockFormat'](_0x51d387,_0x256b4d,_0x5bd374=[],_0x2bac5c=null,_0x266801={}){_0x256b4d['formatGroupId']||(_0x256b4d['formatGroupId']=_0x256b4d['commandName']);const _0x2a8f97=_0x51d387[0x0];_0x256b4d['multipleBlocks']=_0x2a8f97['is']('range'),_0x2bac5c=_0x2bac5c||Jt(_0x256b4d);const _0xd2b29e=_0x5bd374['map'](_0x127644=>zt(_0x127644,this['_model'])),_0x373460=_0x2a8f97['is']('range')?_0x51d387:_0x51d387['map'](_0x465c97=>zt(_0x465c97,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2b8344=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bac5c,'accept');return this['forceDefaultExecution'](()=>_0x2b8344(_0x373460,_0x256b4d,_0x266801)),null;}_0xd2b29e['push'](..._0x373460);let _0x13a3ae=!0x0;for(const _0x5a5313 of _0xd2b29e)if(!this['_rangeIsInLocalUserInsertion'](_0x5a5313)){_0x13a3ae=!0x1;break;}if(_0x13a3ae&&'always'!==this['_trackFormatChanges']){const _0x4a3d5c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bac5c,'accept');return this['forceDefaultExecution'](()=>_0x4a3d5c(_0x373460,_0x256b4d,_0x266801)),null;}const _0xe77915=this['editor']['plugins']['get']('Users')['me'];for(const _0x2a1178 of this['getSuggestions']()){if(_0x2a1178['author']['id']!=_0xe77915['id'])continue;if('formatBlock'!=_0x2a1178['type']||_0x2a1178['data']['formatGroupId']!=_0x256b4d['formatGroupId'])continue;if(!Qt(_0x2a1178,_0x266801))continue;const _0x263963=_0x2a1178['subType']==_0x2bac5c;for(let _0x3168b7=0x0;_0x3168b7<_0x373460['length'];_0x3168b7++){const _0x29f212=_0x373460[_0x3168b7];for(const _0x5ee888 of _0x2a1178['getMarkers']()){const _0x267ea8=_0x5ee888['getRange']();if(_0x29f212['isEqual'](_0x267ea8)){_0x263963?(_0x373460['splice'](_0x3168b7,0x1),_0x3168b7--):_0x2a1178['removeMarker'](_0x5ee888['name']);break;}}}}if(0x0==_0x373460['length'])return null;const _0x155105=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2bac5c,'join');for(const _0x27950f of this['getSuggestions']())if(_0x27950f['author']['id']==_0xe77915['id']&&'formatBlock'==_0x27950f['type']&&_0x27950f['data']['formatGroupId']==_0x256b4d['formatGroupId']&&_0x27950f['subType']==_0x2bac5c&&Qt(_0x27950f,_0x266801)&&(_0x155105(_0x27950f['getRanges'](),_0x373460)||_0x155105(_0x373460,_0x27950f['getRanges']()))){for(const _0xecc2b5 of _0x373460)_0x27950f['addRange'](_0xecc2b5);return _0x27950f;}const _0x4d92c8=_0x2a43ef(),_0x25dc1e=_0xe77915['id'],_0x1daf95='formatBlock:'+_0x2bac5c,_0x419d42=this['_setSuggestionData']({'id':_0x4d92c8,'type':_0x1daf95,'data':_0x256b4d,'createdAt':new Date(),'authorId':_0x25dc1e,'attributes':_0x266801});for(const _0x334cc9 of _0x373460)this['_addSuggestionMarker'](_0x1daf95,_0x4d92c8,_0x25dc1e,_0x334cc9,u['getMultiRangeId']());return _0x419d42;}['markDeletion'](_0x24ea61,_0x55d922=null,_0x55194b={}){if(_0x24ea61['isCollapsed'])return null;const _0x223ab7=this['editor']['plugins']['get']('Users')['me'],_0xf69a37=new _0x49f219(_0x24ea61['start'],_0x24ea61['end']);for(const {suggestion:_0x236233,meta:_0x1f350f}of this['_findSuggestions'](_0xf69a37,'insertion'))if(_0x1f350f['isOwn']&&!_0x1f350f['isNextTo']){if(_0x236233['isMultiRange']){const _0x4f017d=_0x236233['getRanges']()['filter'](_0x39a0bb=>'$graveyard'!=_0x39a0bb['root']['rootName']);_0x4f017d['every'](_0x4445b7=>_0xf69a37['containsRange'](_0x4445b7,!0x0))&&_0x236233['discard']();if(_0x4f017d['some'](_0xba426f=>_0xba426f['containsRange'](_0xf69a37,!0x0))){const _0x5d41ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55d922,'accept');return this['forceDefaultExecution'](()=>_0x5d41ba([_0xf69a37],null,_0x55194b)),null;}}else{const _0x14dae8=_0xf69a37['getIntersection'](_0x236233['getFirstRange']());null!==_0x14dae8&&_0x236233['_onDiscard']([_0x14dae8],null,_0x55194b);}}if(_0xf69a37['detach'](),_0xf69a37['isCollapsed']||'$graveyard'==_0xf69a37['root']['rootName'])return null;let _0x20f577=null,_0x39abca=_0xf69a37['start'],_0x3360f9=_0xf69a37['end'];const _0x559ec9=this['_findSuggestions'](_0xf69a37,'deletion');for(const {suggestion:_0x4fa415,meta:_0x56e987}of _0x559ec9){const _0x5f1209=this['_model']['createRange'](_0x39abca,_0x3360f9);if(_0x56e987['isOwn']&&(this['_mergeNestedSuggestions']||!_0x56e987['containsRangeInObject']&&!_0x56e987['isInsideObject'])){if(_0x4fa415['isMultiRange']){if(!Qt(_0x4fa415,_0x55194b))continue;let _0x13b3f2=!0x0;for(const _0xb8e148 of _0x4fa415['getRanges']()){if(_0xb8e148['containsRange'](_0x5f1209,!0x0))return _0x4fa415;_0x5f1209['containsRange'](_0xb8e148)||(_0x13b3f2=!0x1);}_0x13b3f2&&_0x4fa415['discard']();}else{const _0x5cf655=_0x4fa415['getFirstRange']();if(_0x5cf655['containsRange'](_0x5f1209,!0x0))return _0x4fa415;if(!Qt(_0x4fa415,_0x55194b)){_0x5f1209['containsRange'](_0x5cf655)?_0x4fa415['removeMarkers']():_0x5cf655['containsPosition'](_0x39abca)?_0x39abca=_0x5cf655['end']:_0x5cf655['containsPosition'](_0x3360f9)&&(_0x3360f9=_0x5cf655['start']);continue;}_0x39abca=_0x39abca['isBefore'](_0x5cf655['start'])?_0x39abca:_0x5cf655['start'],_0x3360f9=_0x3360f9['isAfter'](_0x5cf655['end'])?_0x3360f9:_0x5cf655['end'],_0x55194b=Object['assign']({},_0x4fa415['attributes']),_0x20f577?_0x5cf655['start']['isBefore'](_0x20f577['getFirstRange']()['start'])?(_0x20f577['removeMarkers'](),_0x20f577=_0x4fa415):_0x4fa415['removeMarkers']():_0x20f577=_0x4fa415;}}}if(_0x20f577)return this['_setSuggestionRange'](_0x20f577,this['_model']['createRange'](_0x39abca,_0x3360f9)),_0x20f577;{const _0x3df6d6=_0x2a43ef(),_0x8e179a=this['_model']['createRange'](_0x39abca,_0x3360f9),_0x3c2d09=_0x223ab7['id'],_0x14eae6=_0x55d922?'deletion:'+_0x55d922:'deletion',_0x268618=this['_setSuggestionData']({'id':_0x3df6d6,'type':_0x14eae6,'createdAt':new Date(),'authorId':_0x3c2d09,'attributes':_0x55194b});return this['_addSuggestionMarker'](_0x14eae6,_0x3df6d6,_0x3c2d09,_0x8e179a),_0x268618;}}['markMultiRangeDeletion'](_0x3e1c45,_0x325313='multi',_0x5e0910={}){const _0x5047cc=this['editor']['plugins']['get']('Users')['me'],_0x22b46e=_0x3e1c45['map'](_0x1bc35a=>new _0x49f219(_0x1bc35a['start'],_0x1bc35a['end'])),_0x1f945b=new Set();for(const {suggestion:_0x4eb7d7,meta:_0xe72462}of this['_findSuggestions'](_0x22b46e,'insertion'))_0xe72462['isOwn']&&!_0xe72462['isNextTo']&&_0x1f945b['add'](_0x4eb7d7);for(const _0x2f0610 of _0x1f945b)if(_0x2f0610['isMultiRange']){const _0x3eb204=_0x2f0610['getRanges']();(!_0x2f0610['attributes']||!_0x2f0610['attributes']['skipNestingCheck'])&&(_0x3eb204['every'](_0x3554e7=>_0x22b46e['some'](_0x991e08=>_0x991e08['containsRange'](_0x3554e7,!0x0)))&&_0x2f0610['discard']());if(_0x22b46e['every'](_0x179b03=>_0x3eb204['some'](_0x224380=>_0x224380['containsRange'](_0x179b03,!0x0)))){const _0xa0130=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x325313,'accept');return this['forceDefaultExecution'](()=>_0xa0130(_0x3e1c45,null,_0x5e0910)),null;}}else{const _0x342d4d=_0x2f0610['getFirstRange']();_0x22b46e['some'](_0x490303=>_0x490303['containsRange'](_0x342d4d,!0x0))&&_0x2f0610['discard']();if(_0x22b46e['every'](_0x4cd20a=>_0x342d4d['containsRange'](_0x4cd20a,!0x0))){const _0x4e2a05=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x325313,'accept');return this['forceDefaultExecution'](()=>_0x4e2a05(_0x22b46e,null,_0x5e0910)),null;}}const _0x473387=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x325313,'join');let _0x34f613=null;for(const _0xc313d8 of this['getSuggestions']())if(_0xc313d8['author']['id']==_0x5047cc['id']&&_0xc313d8['isInContent']&&'deletion'==_0xc313d8['type']&&_0xc313d8['subType']==_0x325313&&Qt(_0xc313d8,_0x5e0910)&&(_0x473387(_0xc313d8['getRanges'](),_0x22b46e)||_0x473387(_0x22b46e,_0xc313d8['getRanges']()))){if(_0x34f613){if(_0xc313d8['commentThread']&&_0xc313d8['commentThread']['length'])continue;for(const _0x31a2d2 of _0xc313d8['getRanges']())_0x34f613['isIntersectingWithRange'](_0x31a2d2)||_0x34f613['addRange'](_0x31a2d2);_0xc313d8['removeMarkers']();}else{_0x34f613=_0xc313d8;for(const _0x3f4816 of _0x22b46e)_0xc313d8['isIntersectingWithRange'](_0x3f4816)||_0xc313d8['addRange'](_0x3f4816);}}if(_0x34f613)return _0x34f613;_0x1f945b['clear']();for(const {suggestion:_0x591857,meta:_0x59fffa}of this['_findSuggestions'](_0x22b46e,'deletion'))_0x59fffa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x59fffa['containsRangeInObject']&&!_0x59fffa['isInsideObject'])&&Qt(_0x591857,_0x5e0910)&&_0x1f945b['add'](_0x591857);for(const _0x5d4169 of _0x1f945b){const _0x4c3620=_0x5d4169['getRanges']();if(!_0x5e0910||!_0x5e0910['skipNestingCheck']){if(_0x22b46e['every'](_0x532dfb=>_0x4c3620['some'](_0x20f5e4=>_0x20f5e4['containsRange'](_0x532dfb,!0x0))))return _0x5d4169;}(!_0x5d4169['attributes']||!_0x5d4169['attributes']['skipNestingCheck'])&&(_0x4c3620['every'](_0x5a5376=>_0x22b46e['some'](_0x40d113=>_0x40d113['containsRange'](_0x5a5376,!0x0)))&&_0x5d4169['discard']());}const _0x731624=_0x2a43ef(),_0x457dc2=_0x5047cc['id'],_0x3e5aab='deletion:'+_0x325313,_0x46c1f7=this['_setSuggestionData']({'id':_0x731624,'type':_0x3e5aab,'createdAt':new Date(),'authorId':_0x457dc2,'attributes':_0x5e0910});for(const _0x406d65 of _0x22b46e)_0x406d65['detach'](),_0x406d65['isCollapsed']||'$graveyard'==_0x406d65['root']['rootName']||this['_addSuggestionMarker'](_0x3e5aab,_0x731624,_0x457dc2,_0x406d65,u['getMultiRangeId']());return _0x46c1f7;}['markAttributeChange'](_0x49c40,_0x2e48d5,_0xdb5c18,_0x3215f6,_0x58e1de){if(_0x49c40['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x14c091=this['editor']['plugins']['get']('Users')['me']['id'],_0x3c413b=Array['from'](this['_suggestions']['values']())['filter'](_0x387997=>'attribute'==_0x387997['type']&&_0x387997['data']['key']==_0x2e48d5&&_0x387997['isIntersectingWithRange'](_0x49c40));if('default'===this['_trackFormatChanges']){const _0x1c098e=this['_findSuggestions'](_0x49c40,'insertion')['filter'](({meta:_0x423a8f})=>_0x423a8f['isOwn']&&!_0x423a8f['isInsideObject']&&!_0x423a8f['isNextTo'])['map'](({suggestion:_0x166aee})=>_0x166aee);_0x3c413b['unshift'](..._0x1c098e);}const _0x2a9e13=new Map([[_0x49c40,_0xdb5c18]]);for(const _0x2f2432 of _0x3c413b){const _0x3eba01='attribute'==_0x2f2432['type']?_0x2f2432['data']['oldValue']:void 0x0,_0x25568e=_0x2f2432['getFirstRange'](),_0x5b8858=Array['from'](_0x2a9e13['keys']())['find'](_0x47629f=>_0x47629f['isIntersecting'](_0x25568e));if(!_0x5b8858)continue;const _0x5de683=_0x5b8858['getDifference'](_0x25568e);this['_isBlockAttribute'](_0x2e48d5)&&'insertion'==_0x2f2432['type']&&0x0!=_0x5de683['length']||(_0x2a9e13['delete'](_0x5b8858),_0x5de683['forEach'](_0x396a01=>{_0x2a9e13['set'](_0x396a01,_0xdb5c18);}),'insertion'!=_0x2f2432['type']&&_0x3eba01!=_0x3215f6&&_0x2a9e13['set'](_0x5b8858['getIntersection'](_0x25568e),_0x3eba01));}const _0x2a0cd9=[];for(const [_0x25afdf,_0x3504f9]of _0x2a9e13){const _0x5bd10c=_0x2a43ef(),_0x4f3e14={'key':_0x2e48d5,'oldValue':_0x3504f9,'newValue':_0x3215f6};_0x2e48d5['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':_0x2e48d5});const _0x316e03=('attribute:'+(_0x2e48d5+'|'+Jt({'newValue':_0x3215f6})))['substring'](0x0,0x3c),_0x100009=this['_setSuggestionData']({'id':_0x5bd10c,'type':_0x316e03,'data':_0x4f3e14,'createdAt':new Date(),'authorId':_0x14c091,'attributes':_0x58e1de});_0x2a0cd9['push'](_0x100009),this['_addSuggestionMarker'](_0x316e03,_0x5bd10c,_0x14c091,_0x25afdf);}return _0x2a0cd9;}['enableDefaultAttributesIntegration'](_0x2732a2){this['enableCommand'](_0x2732a2,(_0x4a57b8,..._0x3a4c5d)=>{this['_recordAttributeChanges'](()=>{_0x4a57b8(..._0x3a4c5d);});});}['registerBlockAttribute'](_0x534759){this['_blockAttributeKeys']['add'](_0x534759);}['registerInlineAttribute'](_0x8267cc){this['_inlineAttributeKeys']['add'](_0x8267cc);}['_getAttributeKey'](_0x243b65){return'attribute'==_0x243b65['type']?_0x243b65['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x1243b6,_0x5ddf40){const _0x6d88b=_0x1243b6['getFirstMarker']();this['_model']['change'](_0x34c484=>{_0x34c484['updateMarker'](_0x6d88b,{'range':_0x5ddf40});});}['_addThreadToSuggestion'](_0xf9c5a7){const _0x1336ac=_0xf9c5a7['id'],_0x2d40fd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1336ac)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2d40fd,'threadId':_0x1336ac,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x42dfae=this['_commentsRepository']['getCommentThread'](_0x1336ac);_0x42dfae['unbind']('isRemovable'),_0x42dfae['isRemovable']=!0x1,_0xf9c5a7['commentThread']=_0x42dfae;}['_checkSuggestionCorrectness'](_0xdd9dae,_0xf24aec,_0x1d4f40,_0x61aec0){if(_0xdd9dae['type']!=_0xf24aec||_0xdd9dae['subType']!=_0x1d4f40||_0xdd9dae['creator']['id']!=_0x61aec0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4fb61a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3f7815,_0x5281ab){const _0x4efb5d=_0x3f7815['getFirstRange']();if(_0x5281ab['isEqual'](_0x4efb5d))_0x3f7815['removeMarkers']();else{if(_0x4efb5d['containsRange'](_0x5281ab)){const _0x1b6eba=this['_model']['createPositionAt'](_0x5281ab['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f7815,this['_model']['createRange'](_0x4efb5d['start'],_0x1b6eba));const _0x5d8d26=_0x2a43ef(),_0x1c9729=_0x3f7815['creator']['id'],_0x360204=_0x3f7815['type']+':'+_0x3f7815['subType'];this['_setSuggestionData']({'id':_0x5d8d26,'type':_0x360204,'createdAt':new Date(),'authorId':_0x1c9729,'data':_0x3f7815['data'],'attributes':_0x3f7815['attributes']});const _0x2b0fd3=this['_model']['createPositionAt'](_0x5281ab['end']['parent'],'after'),_0x3cdf6d=this['_model']['createRange'](_0x2b0fd3,_0x4efb5d['end']);this['_addSuggestionMarker'](_0x360204,_0x5d8d26,_0x1c9729,_0x3cdf6d);}else{if(_0x4efb5d['containsPosition'](_0x5281ab['start'])){const _0x2db467=this['_model']['createPositionAt'](_0x5281ab['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3f7815,this['_model']['createRange'](_0x4efb5d['start'],_0x2db467));}else{const _0x442034=this['_model']['createPositionAt'](_0x5281ab['end']['parent'],'after');this['_setSuggestionRange'](_0x3f7815,this['_model']['createRange'](_0x442034,_0x4efb5d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x513fa5){for(const {suggestion:_0x57b57c,meta:_0x185781}of this['_findSuggestions'](_0x513fa5,'insertion')){if(!_0x185781['isOwn'])continue;const _0x1f0e84=_0x57b57c['getRanges']();for(const _0x2cd0e9 of _0x1f0e84)if(!_0x513fa5['getDifference'](_0x2cd0e9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5b6292){const _0x588c78=this['editor']['plugins']['get']('Users')['getUser'](_0x5b6292);if(!_0x588c78)throw new _0x4fb61a('track-changes-user-not-found',this);return _0x588c78;}['_getExternalAuthor'](_0x8c3646){const _0x44b442=this['editor']['plugins']['get']('Users'),_0x2d7bf2=_0x1fabfe('external:'+_0x8c3646),_0x156f8f=_0x44b442['getUser'](_0x2d7bf2);return _0x156f8f||_0x44b442['addUser']({'id':_0x2d7bf2,'name':_0x8c3646});}['_createSuggestion'](_0x289a8c,_0x2fa71b,_0x4d62e5,_0x25b69d,_0x1b1ec8){const _0x360aed=this['_getAuthorFromId'](_0x25b69d),_0x520df6=this['_suggestionFactory']['buildSuggestion'](_0x289a8c,_0x2fa71b,_0x4d62e5,_0x360aed,_0x1b1ec8,_0x59b1a6=>{this['_updateSuggestionData'](_0x4d62e5,{'attributes':_0x59b1a6});const _0x1a557f=this['getSuggestion'](_0x4d62e5);this['_joinWithAdjacentSuggestions'](new Set([_0x1a557f])),this['_refreshSuggestionsChain'](new Set([_0x1a557f]));});return this['listenTo'](_0x520df6,'accept',()=>{this['_updateSuggestionData'](_0x4d62e5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x520df6,'discard',()=>{this['_updateSuggestionData'](_0x4d62e5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4d62e5,_0x520df6),this['_suggestionState']['set'](_0x520df6,'notReady'),_0x520df6;}['_splitMarkerName'](_0x462814){const _0x129933=_0x462814['split'](':');return{'group':_0x129933[0x0],'type':_0x129933[0x1],'subType':_0x129933['length']>=0x5?_0x129933[0x2]:null,'id':_0x129933['length']<0x5?_0x129933[0x2]:_0x129933[0x3],'authorId':_0x129933['length']<0x5?_0x129933[0x3]:_0x129933[0x4],'markerCount':0x6==_0x129933['length']?_0x129933[0x5]:null};}['_breakSuggestionMarker'](_0xf99f2d,_0xd4391c,_0x3c04c1){const _0x66ae=_0xf99f2d['getFirstRange'](),_0x5263a8=_0x66ae['start'],_0x23e155=_0x66ae['end'];this['_setSuggestionRange'](_0xf99f2d,this['_model']['createRange'](_0x5263a8,_0xd4391c));const _0x53c3e8=_0x2a43ef(),_0x412121=_0xf99f2d['creator']['id'],_0x3f1c16=_0xf99f2d['type']+(_0xf99f2d['subType']?':'+_0xf99f2d['subType']:'');this['_setSuggestionData']({'id':_0x53c3e8,'type':_0x3f1c16,'createdAt':new Date(),'authorId':_0x412121,'originalSuggestionId':_0xf99f2d['id'],'attributes':_0xf99f2d['attributes'],'data':_0xf99f2d['data']});const _0x354743=this['_getAttributeKey'](_0xf99f2d);('formatBlock'==_0xf99f2d['type']||_0x354743&&this['_isBlockAttribute'](_0x354743))&&(_0x3c04c1=this['_model']['createPositionBefore'](_0x3c04c1['parent'])),this['_addSuggestionMarker'](_0x3f1c16,_0x53c3e8,_0x412121,this['_model']['createRange'](_0x3c04c1,_0x23e155));}['_findSuggestions'](_0x574ef5,_0xc1eaad=null){const _0x570089=[],_0x1d74ca=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x574ef5)||(_0x574ef5=[_0x574ef5]);for(const _0x141c7c of this['getSuggestions']()){if(!_0x141c7c['isInContent'])continue;if(_0xc1eaad&&_0x141c7c['type']!=_0xc1eaad)continue;let _0x9cf6de=!0x1;for(const _0x5f0d4b of _0x141c7c['getRanges']()){for(const _0x511da0 of _0x574ef5){const _0xced31f=_0x511da0['start']['isEqual'](_0x5f0d4b['end'])||_0x511da0['end']['isEqual'](_0x5f0d4b['start']);if(_0xced31f||_0x511da0['getIntersection'](_0x5f0d4b)){const _0x34f8f5=_0x511da0['containsRange'](_0x5f0d4b)&&Gt(this['_model']['schema'],_0x5f0d4b['start'],_0x511da0),_0x2f0133=_0x5f0d4b['containsRange'](_0x511da0)&&Gt(this['_model']['schema'],_0x511da0['start'],_0x5f0d4b);_0x570089['push']({'suggestion':_0x141c7c,'meta':{'isOwn':_0x1d74ca==_0x141c7c['author'],'isNextTo':_0xced31f,'isInsideObject':_0x34f8f5,'containsRangeInObject':_0x2f0133}}),_0x9cf6de=!0x0;break;}}if(_0x9cf6de)break;}}return _0x570089;}['_addSuggestionMarker'](_0x318dbe,_0x4d4063,_0x478ca4,_0x4dab0a,_0x39c01c){this['_model']['change'](_0x141e2c=>{let _0x23e659='suggestion:'+_0x318dbe+':'+_0x4d4063+':'+_0x478ca4;_0x39c01c&&(_0x23e659=_0x23e659+':'+_0x39c01c),_0x141e2c['addMarker'](_0x23e659,{'range':_0x4dab0a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1e3cd9){const _0x268edd=_0x1e3cd9['previous'],_0x47060d=_0x1e3cd9['next'];_0x1e3cd9['previous']=null,_0x1e3cd9['next']=null,null!=_0x268edd&&_0x268edd['next']==_0x1e3cd9&&(_0x268edd['next']=_0x47060d),null!=_0x47060d&&_0x47060d['previous']==_0x1e3cd9&&(_0x47060d['previous']=_0x268edd),'ready'==this['_suggestionState']['get'](_0x1e3cd9)&&(this['_suggestionState']['set'](_0x1e3cd9,'removed'),this['fire']('suggestionUnloaded',_0x1e3cd9,_0x268edd,_0x47060d));}['_setSuggestionData'](_0x5bfc5e){const _0xfe1d38=_0x5bfc5e['id'],_0x58249e=this['addSuggestionData'](_0x5bfc5e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3639c7=this['editor']['plugins']['get']('PendingActions'),_0x4f1cd3=_0x58249e['hasComments'],_0x5eee45=_0x58249e['subType']?_0x58249e['type']+':'+_0x58249e['subType']:_0x58249e['type'],_0x5734cf=this['editor']['locale'],_0x1ae655=_0x3639c7['add'](o(_0x5734cf,'PENDING_ACTION_SUGGESTION')),_0x5c5609={'id':_0xfe1d38,'type':_0x5eee45,'hasComments':_0x4f1cd3,'data':_0x5bfc5e['data']||null,'originalSuggestionId':_0x5bfc5e['originalSuggestionId']||null,'attributes':_0x58249e['attributes']};this['_adapter']['addSuggestion'](_0x5c5609)['then'](_0x577274=>{_0x58249e['_saved']=!0x0,_0x3639c7['remove'](_0x1ae655),_0x577274&&_0x577274['createdAt']&&(this['_suggestions']['get'](_0xfe1d38)['createdAt']=_0x577274['createdAt']);})['catch'](_0x28938a=>{throw _0xf3f8c9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x58249e['discard']();}),_0x58249e['stopListening'](),this['_suggestions']['delete'](_0x58249e['id']),this['_suggestionState']['delete'](_0x58249e),_0x28938a;});}return _0x58249e;}['_isBlockAttribute'](_0x26f540){return this['_blockAttributeKeys']['has'](_0x26f540);}['_updateSuggestionData'](_0x3eb46f,_0x5c099b){const _0x177afa=this['editor']['plugins']['get']('PendingActions'),_0x1c2da5=this['getSuggestion'](_0x3eb46f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1c2da5['_saved']){const _0x4beee5=_0x177afa['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3eb46f,_0x5c099b)['then'](()=>{_0x177afa['remove'](_0x4beee5);});}else _0x1c2da5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3eb46f,_0x5c099b);});}}['_getSuggestionData'](_0xa0426d){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4fb61a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xa0426d);}['_handleNewSuggestionMarker'](_0xc5a2de){const {id:_0x4ab270,type:_0x23fa72,subType:_0x291ad1,authorId:_0x3764c7}=this['_splitMarkerName'](_0xc5a2de),_0x286144=this['_suggestions']['get'](_0x4ab270)||this['_createSuggestion'](_0x23fa72,_0x291ad1,_0x4ab270,_0x3764c7,{});switch(this['_checkSuggestionCorrectness'](_0x286144,_0x23fa72,_0x291ad1,_0x3764c7),this['_suggestionState']['get'](_0x286144)){case'notReady':this['_getSuggestionData'](_0x4ab270)['then'](_0x1cfbf8=>{let _0x14a32a=Promise['resolve']();_0x1cfbf8['hasComments']&&(_0x14a32a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4ab270})),_0x14a32a['then'](()=>{this['addSuggestionData'](_0x1cfbf8)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x286144,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4ab270,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x286144,'ready'),this['fire']('suggestionLoaded',_0x286144);break;case'ready':this['fire']('suggestionChanged',_0x286144);}return _0x286144['addMarkerName'](_0xc5a2de),_0x286144;}['_refreshSuggestionsChain'](_0x26c23b){const _0x189195=Array['from'](_0x26c23b),_0x436796=_0x189195['filter'](_0x23960b=>'attribute'==_0x23960b['type']);this['_refreshAttributeSuggestionsChain'](_0x436796);const _0x1f7d25=_0x189195['filter'](_0x4ab48d=>!_0x4ab48d['isMultiRange']&&'attribute'!=_0x4ab48d['type']),_0x41c2c8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a6b21=>!_0x2a6b21['isMultiRange']&&'attribute'!=_0x2a6b21['type']),_0x3686c8=_0x41c2c8['filter'](_0x24defa=>!_0x26c23b['has'](_0x24defa)),_0x4bd108=new Map(_0x41c2c8['map'](_0x22d99a=>[_0x22d99a,this['_suggestionFactory']['getSuggestionCallback'](_0x22d99a['type'],_0x22d99a['subType'],'chain')])),_0x4b19e0=new Map(_0x41c2c8['map'](_0x4b5103=>[_0x4b5103,_0x4b5103['getFirstRange']()])),_0x502686=new Set(),_0x22ed38=new Set();for(let _0x422178=0x0;_0x422178<_0x1f7d25['length'];_0x422178++)_0x88a8d8(_0x1f7d25[_0x422178],_0x1f7d25,_0x422178+0x1);for(let _0x6e3946=0x0;_0x6e3946<_0x1f7d25['length'];_0x6e3946++)_0x88a8d8(_0x1f7d25[_0x6e3946],_0x3686c8,0x0);const _0x35c6b4=new Set();for(let _0x4461f6=0x0;_0x4461f6<_0x1f7d25['length'];_0x4461f6++){const _0x3ec1d9=_0x1f7d25[_0x4461f6];!_0x22ed38['has'](_0x3ec1d9)&&_0x3ec1d9['previous']&&(_0x35c6b4['add'](_0x3ec1d9['previous']),_0x3ec1d9['previous']['next']===_0x3ec1d9&&(_0x3ec1d9['previous']['next']=null),_0x3ec1d9['previous']=null),!_0x502686['has'](_0x3ec1d9)&&_0x3ec1d9['next']&&(_0x35c6b4['add'](_0x3ec1d9['next']),_0x3ec1d9['next']['previous']===_0x3ec1d9&&(_0x3ec1d9['next']['previous']=null),_0x3ec1d9['next']=null);}function _0x88a8d8(_0x214898,_0x14b76e,_0x1194d1){for(let _0x35a4fe=_0x1194d1;_0x35a4fe<_0x14b76e['length'];_0x35a4fe++){const _0x3ae967=_0x1a97a3(_0x214898,_0x14b76e[_0x35a4fe]);_0x3ae967&&(_0x3ae967[0x0]['next']=_0x3ae967[0x1],_0x3ae967[0x1]['previous']=_0x3ae967[0x0],_0x502686['add'](_0x3ae967[0x0]),_0x22ed38['add'](_0x3ae967[0x1]));}}function _0x1a97a3(_0x307bed,_0x5b6cea){if(_0x307bed['author']['id']!==_0x5b6cea['author']['id'])return null;const _0x495e9f=_0x4bd108['get'](_0x307bed)(_0x307bed,_0x5b6cea,_0x4b19e0['get'](_0x307bed),_0x4b19e0['get'](_0x5b6cea));if(!_0x495e9f)return null;return _0x4bd108['get'](_0x5b6cea)(_0x307bed,_0x5b6cea,_0x4b19e0['get'](_0x307bed),_0x4b19e0['get'](_0x5b6cea))?_0x495e9f[0x1]['commentThread']&&_0x495e9f[0x1]['commentThread']['length']?null:_0x495e9f:null;}_0x35c6b4['size']&&this['_refreshSuggestionsChain'](_0x35c6b4);}['_refreshAttributeSuggestionsChain'](_0x47dc33){if(0x0==_0x47dc33['length'])return;const _0x5643ca=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d0680=>'attribute'==_0x1d0680['type']&&_0x1d0680['_isDataLoaded']),_0x3ca4de=[],_0x3a0e81=new Map();for(const _0xca8f65 of _0x5643ca){const _0x2f437b=_0x1fabfe(_0xca8f65['attributes']);_0x3a0e81['has'](_0x2f437b)||(_0x3a0e81['set'](_0x2f437b,_0x3ca4de['length']),_0x3ca4de['push']([]));const _0x29ecef=_0x3a0e81['get'](_0x2f437b);_0x3ca4de[_0x29ecef]['push'](_0xca8f65);}!(function(){_0x3ca4de['sort']((_0x5da8d2,_0x4bd96f)=>{const _0x3c1f3e=_0x5da8d2[0x0]['createdAt'],_0x20d20b=_0x4bd96f[0x0]['createdAt'];return _0x3c1f3e==_0x20d20b?_0x5da8d2[0x0]['attributes']['groupId']<_0x4bd96f[0x0]['attributes']['groupId']?-0x1:0x1:_0x3c1f3e<_0x20d20b?-0x1:0x1;});for(const _0x29159b of _0x3ca4de)_0x29159b['sort']((_0x391153,_0x3149cc)=>_0x391153['id']<_0x3149cc['id']?-0x1:0x1);}());for(let _0x2c08a2=0x0;_0x2c08a2<_0x3ca4de['length'];_0x2c08a2++){if(0x0==_0x3ca4de[_0x2c08a2]['length'])continue;const _0x3ef3e1=[];for(let _0x4406d1=_0x2c08a2+0x1;_0x4406d1<_0x3ca4de['length'];_0x4406d1++)0x0!=_0x3ca4de[_0x4406d1]['length']&&_0x50cdf2(_0x3ca4de[_0x2c08a2],_0x3ca4de[_0x4406d1])&&_0x3ef3e1['push'](_0x4406d1);for(const _0x5521fc of _0x3ef3e1)_0x3ca4de[_0x2c08a2]=_0x3ca4de[_0x2c08a2]['concat'](_0x3ca4de[_0x5521fc]),_0x3ca4de[_0x5521fc]=[];}for(const _0x19fe85 of _0x3ca4de)for(let _0x1c15db=0x0;_0x1c15db<_0x19fe85['length'];_0x1c15db++){const _0xa412b6=_0x19fe85[_0x1c15db+0x1]||null;_0x19fe85[_0x1c15db]['next']!==_0xa412b6&&(_0x19fe85[_0x1c15db]['next']=_0xa412b6);}for(const _0x42b7a7 of _0x3ca4de)for(let _0x52eb8b=0x0;_0x52eb8b<_0x42b7a7['length'];_0x52eb8b++){const _0x1b39c8=_0x42b7a7[_0x52eb8b-0x1]||null;_0x42b7a7[_0x52eb8b]['previous']!==_0x1b39c8&&(_0x42b7a7[_0x52eb8b]['previous']=_0x1b39c8);}function _0x50cdf2(_0x213be6,_0x59da8d){if(_0x213be6[0x0]['attributes']['groupId']!==_0x59da8d[0x0]['attributes']['groupId']&&_0x213be6[0x0]['author']!==_0x59da8d[0x0]['author'])return!0x1;if(!function(_0x50a855,_0xda21be){if(!_0x50a855['hasComments']&&!_0xda21be['hasComments'])return!0x0;if(_0x50a855['hasComments']&&_0xda21be['hasComments'])return!0x1;if(_0x50a855['hasComments']&&_0xda21be['createdAt']<_0x50a855['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xda21be['hasComments']&&_0x50a855['createdAt']<_0xda21be['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x213be6[0x0],_0x59da8d[0x0]))return!0x1;const _0x5165c9=Vt(_0x213be6[0x0]['attributes'],'groupId'),_0x3f915c=Vt(_0x59da8d[0x0]['attributes'],'groupId');if(!_0xabd137(_0x5165c9,_0x3f915c))return!0x1;return!!_0x213be6['every'](_0x140881=>_0x59da8d['some'](_0x3657ba=>_0x140881['getFirstRange']()['isEqual'](_0x3657ba['getFirstRange']())))&&_0x59da8d['every'](_0x438c6b=>_0x213be6['some'](_0xabc957=>_0x438c6b['getFirstRange']()['isEqual'](_0xabc957['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5623ed){const _0x278224=Array['from'](_0x5623ed),_0x233d61=this['getSuggestions']({'skipNotAttached':!0x0}),_0xa59ae=_0x233d61['filter'](_0x3572f4=>!_0x5623ed['has'](_0x3572f4)),_0x4ad95e=new Map(_0x278224['map'](_0x837785=>[_0x837785,this['_suggestionFactory']['getSuggestionCallback'](_0x837785['type'],_0x837785['subType'],'join')])),_0x2a55cc=new Map(_0x233d61['map'](_0x3129a6=>[_0x3129a6,_0x3129a6['getRanges']()]));for(let _0x5b6f15=0x0;_0x5b6f15<_0x278224['length'];_0x5b6f15++){if(_0x23ecce(this,_0x278224[_0x5b6f15],_0x278224,_0x5b6f15+0x1))return!0x0;}for(let _0x299a74=0x0;_0x299a74<_0x278224['length'];_0x299a74++){if(_0x23ecce(this,_0x278224[_0x299a74],_0xa59ae,0x0))return!0x0;}return!0x1;function _0x23ecce(_0x441db9,_0x17f33e,_0xefc5f3,_0x59ccbb){for(let _0x5002da=_0x59ccbb;_0x5002da<_0xefc5f3['length'];_0x5002da++){const _0x50b5e9=_0xefc5f3[_0x5002da];if(_0x50b5e9['type']!==_0x17f33e['type']||_0x50b5e9['author']['id']!==_0x17f33e['author']['id']||_0x50b5e9['subType']!==_0x17f33e['subType'])continue;if(!Wt(_0x17f33e,_0x50b5e9))continue;if('attribute'==_0x17f33e['type']&&_0x17f33e['data']['oldValue']!=_0x50b5e9['data']['oldValue'])continue;if('attribute'==_0x17f33e['type']&&_0x441db9['_isBlockAttribute'](_0x17f33e['data']['key']))continue;if('formatBlock'==_0x17f33e['type']){const _0x13e882=_0x441db9['editor']['model'],_0x715e70=_0x17f33e['getContainedElement']();if(_0x715e70&&(_0x13e882['schema']['isObject'](_0x715e70)||_0x13e882['schema']['isLimit'](_0x715e70)))continue;}const _0x5b6f8f=_0x4ad95e['get'](_0x17f33e),_0x22428e=_0x2a55cc['get'](_0x17f33e),_0x3ef205=_0x2a55cc['get'](_0x50b5e9),_0x16435e=_0x17f33e['commentThread']&&_0x17f33e['commentThread']['length'],_0x3cfdf0=_0x50b5e9['commentThread']&&_0x50b5e9['commentThread']['length'];if(!_0x16435e&&_0x5b6f8f(_0x3ef205,_0x22428e))return _0x441db9['_joinSuggestions'](_0x50b5e9,_0x17f33e),_0x2a55cc['delete'](_0x17f33e),!0x0;if(!_0x3cfdf0&&_0x5b6f8f(_0x22428e,_0x3ef205))return _0x441db9['_joinSuggestions'](_0x17f33e,_0x50b5e9),_0x2a55cc['delete'](_0x50b5e9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x89e78b,_0x2fc169){if(_0x89e78b['isMultiRange']){for(const _0x3389fd of _0x2fc169['getRanges']())_0x89e78b['addRange'](_0x3389fd);}else{const _0x5f2c8e=_0x2fc169['getFirstRange']()['end'];this['_setSuggestionRange'](_0x89e78b,this['_model']['createRange'](_0x89e78b['getFirstRange']()['start'],_0x5f2c8e));}_0x2fc169['removeMarkers']();}['_getMarkerAnnouncementText'](_0xcb9f2e,_0xb567ad,_0x3fc24d){const _0x29c5d0=_0xcb9f2e['startsWith']('format')||_0xcb9f2e['startsWith']('attribute')?'FORMATTING':_0xcb9f2e['toUpperCase']();return o(this['editor']['locale'],_0xb567ad+'_'+_0x29c5d0+'_SUGGESTION_ANNOUNCEMENT',_0x3fc24d);}['_initAriaMarkerChangeAnnouncements'](){const _0x327fc7=this['editor'];if(!_0x327fc7['ui'])return;const {ariaLiveAnnouncer:_0x145fc9}=_0x327fc7['ui'];_0x34598a(this['_model'],({left:_0x339328,entered:_0x8f018})=>{for(const _0x6b76e3 of _0x339328){const {group:_0x465387,type:_0x321747}=this['_splitMarkerName'](_0x6b76e3['name']);if('suggestion'===_0x465387){_0x145fc9['announce'](this['_getMarkerAnnouncementText'](_0x321747,'LEAVE'));break;}}for(const _0x5c7cbe of _0x8f018){const {group:_0x44b375,type:_0x48933f}=this['_splitMarkerName'](_0x5c7cbe['name']);if('suggestion'===_0x44b375){_0x145fc9['announce'](this['_getMarkerAnnouncementText'](_0x48933f,'ENTER',_0x48e3ba(_0x11ab76)));break;}}});}['_processAttributeChanges'](_0x398918){if(this['_recordAttributeSuggestions'])return!0x1;const _0x99d32e=this['editor'],_0x5276cf=_0x99d32e['model']['document']['differ']['getChanges']();if(0x0==_0x5276cf['length'])return!0x1;const _0x3dfb47=[],_0x12df20=_0x5276cf['filter'](_0x59fbd8=>'attribute'==_0x59fbd8['type']),_0x19c377=_0x5276cf['filter'](_0x2bd80a=>'insert'==_0x2bd80a['type']&&'$text'!=_0x2bd80a['name']),_0x32d2a6=_0x5276cf['filter'](_0x399def=>'remove'==_0x399def['type']&&'$text'!=_0x399def['name']);for(const _0x48bf6e of _0x12df20)_0x3dfb47['push']({'key':_0x48bf6e['attributeKey'],'newValue':_0x48bf6e['attributeNewValue'],'oldValue':_0x48bf6e['attributeOldValue'],'range':qt(_0x48bf6e['range'],_0x99d32e['model'])});for(const _0x4f3acd of _0x19c377){const _0x4f1453=_0x32d2a6['find'](_0x2533c0=>_0x2533c0['position']['isEqual'](_0x4f3acd['position']));_0x4f1453&&_0x3dfb47['push']({'key':m,'newValue':_0x4f3acd['name'],'oldValue':_0x4f1453['name'],'range':_0x99d32e['model']['createRangeOn'](_0x4f3acd['position']['nodeAfter'])});}return 0x0!=_0x3dfb47['length']&&this['_reduceExistingSuggestions'](_0x398918,_0x3dfb47);}['_processAttributeSuggestions'](_0x2181df){let _0xcfcefb=!0x1;const _0x3dbca2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4bf25c=>_0x4bf25c['data']['newRange']&&_0x4bf25c['name']['startsWith']('suggestion:attribute:'));for(const _0x4a82ac of _0x3dbca2){const {subType:_0x2db389,id:_0x2bd417}=this['_splitMarkerName'](_0x4a82ac['name']),_0x575111=_0x2db389['split']('|')[0x0];for(const _0x2a7437 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2a7437['id']!=_0x2bd417&&'attribute'==_0x2a7437['type']&&_0x2a7437['data']&&_0x2a7437['data']['key']==_0x575111&&_0x2a7437['getFirstRange']()['isIntersecting'](_0x4a82ac['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2a7437,_0x4a82ac['data']['newRange'],_0x2181df),_0xcfcefb=!0x0);}return _0xcfcefb;}['_recordAttributeChanges'](_0x276ced){this['_recordAttributeSuggestions']=!0x0,_0x276ced();}['_isRegisteredAttribute'](_0x578479){const _0x31650d=this['_isBlockAttribute'](_0x578479),_0x4de545=this['_inlineAttributeKeys']['has'](_0x578479);return _0x31650d||_0x4de545;}['_reduceExistingSuggestions'](_0x4dcf2a,_0x229902){if(0x0==_0x229902['length'])return!0x1;let _0x19335c=!0x1;for(const _0x243261 of _0x229902){const _0x3e8bc4=this['_findSuggestions'](_0x243261['range'],'attribute')['filter'](_0x5d95d9=>!_0x5d95d9['meta']['isNextTo'])['map'](_0x281ca3=>_0x281ca3['suggestion']),_0x264285=_0x1fabfe({'newValue':_0x243261['newValue']});_0x3e8bc4['filter'](_0x49367c=>{const [_0x14aa1c,_0x24a100]=_0x49367c['subType']['split']('|');return _0x14aa1c==_0x243261['key']&&_0x24a100!=_0x264285;})['forEach'](_0x565ab0=>{this['_reduceSuggestionAttributeRange'](_0x565ab0,_0x243261['range'],_0x4dcf2a),_0x19335c=!0x0;});}return _0x19335c;}['_reduceSuggestionAttributeRange'](_0x1a76d0,_0x56c500,_0x197690){const _0xe8bb8f=_0x1a76d0['getFirstRange']()['getDifference'](_0x56c500);0x0!==_0xe8bb8f['length']?0x1!==_0xe8bb8f['length']?this['_breakSuggestionMarker'](_0x1a76d0,_0x56c500['start'],_0x56c500['end']):this['_setSuggestionRange'](_0x1a76d0,_0xe8bb8f[0x0]):_0x197690['removeMarker'](_0x1a76d0['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x58818e){this['_editor']=_0x58818e,this['_model']=_0x58818e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x237b05,_0x4390d1,_0x4ed5e5,_0x427daa,_0x570f80,_0x13bb81){return new u(this['_model'],{'type':_0x237b05,'subType':_0x4390d1,'id':_0x4ed5e5,'author':_0x427daa,'creator':_0x427daa,'attributes':_0x570f80,'onAttributesChange':_0x13bb81,'onAccept':(..._0x593253)=>this['getSuggestionCallback'](_0x237b05,_0x4390d1,'accept')(..._0x593253),'onDiscard':(..._0x2a233b)=>this['getSuggestionCallback'](_0x237b05,_0x4390d1,'discard')(..._0x2a233b)});}['registerCustomCallback'](_0xe640e8,_0x259ac6,_0x5933df,_0x3c1056){const _0xdaa71c=_0xe640e8+':'+_0x259ac6+':'+_0x5933df;this['_customCallbacks']['set'](_0xdaa71c,_0x3c1056);}['getSuggestionCallback'](_0xcee8fa,_0x42dbd1,_0x40088e){const _0x3d0442=_0xcee8fa+':'+_0x42dbd1+':'+_0x40088e;return this['_customCallbacks']['get'](_0x3d0442)||this['_defaultCallbacks']['get'](_0xcee8fa+':'+_0x40088e);}['_registerDefaultCallbacks'](){const _0xc89d23=()=>!0x1,_0xdfd1f8=_0x349af7=>{_0x349af7['sort']((_0x2ab06b,_0x3189cb)=>_0x2ab06b['start']['isBefore'](_0x3189cb['start'])?0x1:-0x1),this['_model']['change'](_0x13fa8a=>{for(const _0x438a44 of _0x349af7){let _0x531af2;_0x531af2=_0x438a44['end']['isAtEnd']&&_0x438a44['end']['parent']==_0x438a44['start']['nodeAfter']?_0x13fa8a['createSelection'](_0x438a44['start']['nodeAfter'],'on'):_0x13fa8a['createSelection'](_0x438a44),this['_model']['deleteContent'](_0x531af2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4ab977=(_0x2a9517,_0x1978eb)=>{_0x1978eb&&this['_model']['change'](_0x17c93d=>{const {commandName:_0xf24a2f,commandParams:_0x191d8d=[]}=_0x1978eb,_0x489401=_0x2a9517['map'](_0x383eeb=>(Ft(_0x383eeb)&&(_0x383eeb=this['_model']['createRange'](_0x383eeb['end'])),_0x383eeb))['filter'](_0x5acd84=>'$graveyard'!==_0x5acd84['root']['rootName']);if(_0x489401['length']<0x1)return;const _0x21989f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x20783a=>_0x49f219['fromRange'](_0x20783a));_0x17c93d['setSelection'](_0x489401);for(const _0x54fdd9 of this['_editor']['commands']['commands']())_0x54fdd9['refresh']();_0x191d8d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xf24a2f,..._0x191d8d);const _0x3ad26d=_0x21989f['filter'](_0x53b307=>'$graveyard'!=_0x53b307['root']['rootName']);_0x3ad26d['length']>0x0&&_0x17c93d['setSelection'](_0x3ad26d);for(const _0x1ceea9 of _0x21989f)_0x1ceea9['detach']();});},_0x4742a2=(_0x408703,_0xc9d3)=>0x1==_0x408703['length']&&0x1==_0xc9d3['length']&&_0x408703[0x0]['end']['isEqual'](_0xc9d3[0x0]['start']),_0x5ae0ae=(_0x4ebadd,_0x54fa99,_0x38e3a1,_0x5e96a1)=>Kt(_0x4ebadd,_0x54fa99,_0x38e3a1,_0x5e96a1)?[_0x4ebadd,_0x54fa99]:Kt(_0x54fa99,_0x4ebadd,_0x5e96a1,_0x38e3a1)?[_0x54fa99,_0x4ebadd]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xc89d23),this['_defaultCallbacks']['set']('insertion:discard',_0xdfd1f8),this['_defaultCallbacks']['set']('insertion:join',_0x4742a2),this['_defaultCallbacks']['set']('insertion:chain',_0x5ae0ae),this['_defaultCallbacks']['set']('deletion:accept',_0xdfd1f8),this['_defaultCallbacks']['set']('deletion:discard',_0xc89d23),this['_defaultCallbacks']['set']('deletion:join',_0x4742a2),this['_defaultCallbacks']['set']('deletion:chain',_0x5ae0ae),this['_defaultCallbacks']['set']('formatInline:accept',_0x4ab977),this['_defaultCallbacks']['set']('formatInline:discard',_0xc89d23),this['_defaultCallbacks']['set']('formatInline:join',_0x4742a2),this['_defaultCallbacks']['set']('formatInline:chain',_0xc89d23),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4ab977),this['_defaultCallbacks']['set']('formatBlock:discard',_0xc89d23),this['_defaultCallbacks']['set']('formatBlock:join',_0x4742a2),this['_defaultCallbacks']['set']('formatBlock:chain',_0xc89d23),this['_defaultCallbacks']['set']('attribute:accept',_0xc89d23),this['_defaultCallbacks']['set']('attribute:discard',(_0x828fb1,_0x1eda78)=>{if(!_0x1eda78)return;const _0x2dd935=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5b82e8=>{if(_0x1eda78['key']==m)for(const _0x33f920 of _0x828fb1){const _0x3e256f=_0x33f920['start']['nodeAfter'],_0x466eba=_0x1eda78['oldValue'];_0x5b82e8['rename'](_0x3e256f,_0x466eba);}else{if(_0x2dd935['_isBlockAttribute'](_0x1eda78['key'])){for(const _0x2bddfe of _0x828fb1)void 0x0!==_0x1eda78['oldValue']?_0x5b82e8['setAttribute'](_0x1eda78['key'],_0x1eda78['oldValue'],_0x2bddfe['start']['nodeAfter']):_0x5b82e8['removeAttribute'](_0x1eda78['key'],_0x2bddfe['start']['nodeAfter']);}else{for(const _0x3157bb of _0x828fb1)_0x1eda78['oldValue']?_0x5b82e8['setAttribute'](_0x1eda78['key'],_0x1eda78['oldValue'],_0x3157bb):_0x5b82e8['removeAttribute'](_0x1eda78['key'],_0x3157bb);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4742a2);}}function Gt(_0x390a02,_0x57f60a,_0x156cc8){for(const _0x4b3644 of _0x57f60a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4b3644['root']==_0x4b3644)return!0x1;if(!_0x156cc8['containsItem'](_0x4b3644))return!0x1;if(_0x390a02['isObject'](_0x4b3644)||_0x390a02['isLimit'](_0x4b3644))return!0x0;}return!0x1;}function Ft(_0x4f2759){return _0x4f2759['end']['parent']==_0x4f2759['start']['nodeAfter']&&_0x4f2759['end']['isAtStart'];}function Lt(_0x32b3f2,_0x54845f,_0x1d8bc1,_0x7f6bb5){const _0x51534b=_0x3656fb=>!_0x3656fb['item']['is']('$textProxy')&&!_0x7f6bb5['isObject'](_0x3656fb['item']),_0x477e6d=_0x32b3f2['start']['getLastMatchingPosition'](_0x51534b),_0x2a71f2=_0x32b3f2['end']['getLastMatchingPosition'](_0x51534b,{'direction':'backward'});return(!_0x32b3f2['start']['isEqual'](_0x477e6d)||!_0x32b3f2['end']['isEqual'](_0x2a71f2))&&(_0x477e6d['isBefore'](_0x2a71f2)?_0x1d8bc1['updateMarker'](_0x54845f,{'range':_0x1d8bc1['createRange'](_0x477e6d,_0x2a71f2)}):_0x1d8bc1['removeMarker'](_0x54845f),!0x0);}function Jt(_0x19fd02){return _0x1fabfe(_0x19fd02);}function Ht(_0x44a8d2){const _0x41ebce=_0x44a8d2['start']['nodeAfter'];return _0x41ebce&&_0x41ebce['is']('element');}function qt(_0x1e7317,_0x100962){return null==_0x1e7317['end']['nodeBefore']&&_0x1e7317['end']['parent']==_0x1e7317['start']['nodeAfter']?zt(_0x1e7317['start']['nodeAfter'],_0x100962):_0x1e7317;}function zt(_0x464e57,_0x691dd){const _0x2bb846=_0x691dd['schema']['isObject'](_0x464e57)||_0x691dd['schema']['isSelectable'](_0x464e57);return _0x691dd['createRange'](_0x691dd['createPositionAt'](_0x464e57,'before'),_0x2bb846?_0x691dd['createPositionAfter'](_0x464e57):_0x691dd['createPositionAt'](_0x464e57,'end'));}function Kt(_0x47e81e,_0x2c3fa9,_0x3def0c,_0x6b0044){return!!Wt(_0x47e81e,_0x2c3fa9)&&_0x3def0c['end']['isEqual'](_0x6b0044['start']);}function Wt(_0x3d4774,_0x981700){if(!_0x3d4774['_isDataLoaded']||!_0x981700['_isDataLoaded'])return!0x1;const _0x59c1ee=new Set(Object['keys'](_0x3d4774['attributes'])),_0x118df0=new Set(Object['keys'](_0x981700['attributes']));if(_0x59c1ee['delete']('groupId'),_0x118df0['delete']('groupId'),0x0==_0x59c1ee['size']&&0x0==_0x118df0['size'])return!0x0;if(_0x59c1ee['size']!=_0x118df0['size'])return!0x1;const _0x2b8f04={..._0x3d4774['attributes']},_0x17fcea={..._0x981700['attributes']};return delete _0x2b8f04['groupId'],delete _0x17fcea['groupId'],JSON['stringify'](_0x2b8f04)==JSON['stringify'](_0x17fcea);}function Qt(_0x4604b5,_0x387232){const _0x360002=Xt(_0x4604b5['attributes']),_0x5366bf=Xt(_0x387232);if(!_0x4604b5['_isDataLoaded'])return!0x1;for(const _0x23f98b of Object['keys'](_0x5366bf))if(!_0xabd137(_0x360002[_0x23f98b],_0x5366bf[_0x23f98b]))return!0x1;return!0x0;}function Xt(_0x19dbfb){const _0x5243e9=Object['assign']({},_0x19dbfb);return delete _0x5243e9['skipNestingCheck'],delete _0x5243e9['tablePasteChainId'],_0x5243e9;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4ea30c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x343516,_0x482638,_0x45385b,_0x35d80a){super(),this['model']=_0x482638,this['view']=_0x45385b,this['commentThreadController']=_0x35d80a,this['_editor']=_0x343516,this['_acceptCommand']=_0x343516['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x343516['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3286ac,_0x1cd21d)=>_0x3286ac||_0x1cd21d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x533c84=>_0x533c84&&this['_editor']['model']['canEditAt'](_0x482638['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2f7962=>_0x2f7962&&this['_editor']['model']['canEditAt'](_0x482638['getRanges']())),this['_pendingAction']=null,_0x45385b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x45385b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x45385b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x45385b,'change:isDirty',()=>{_0x45385b['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 _0x27e9b2=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x27e9b2);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x381a78{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x359f8e,_0x14265f,_0x4a6c9b,_0x101f52){super(_0x359f8e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x44ad81(_0x359f8e,o(_0x359f8e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x14265f['authoredAt']),this['bind']('authoredAt')['to'](_0x14265f),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',_0x14265f,'authoredAt',this,'descriptionParts',(_0x47e6b1,_0x1d206d,_0x3f81c3)=>{const _0x19c23d=_0x3f81c3['map'](_0x28b799=>cs(_0x28b799['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x47e6b1-0x1,_0x14265f['author']['name'],_0x1d206d?_0x101f52['formatDateTime'](_0x1d206d):'',new DOMParser()['parseFromString'](_0x19c23d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x407dcc(),this['focusTracker']=new _0x47fa36(),this['keystrokes']=new _0x47ea04(),this['focusCycler']=new _0x207c8b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2cd77d=>_0x2cd77d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x14265f,this['_localUser']=_0x4a6c9b,this['_config']=_0x101f52,_0x101f52['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xae584(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xd99f52}=this['_config'];this['commentsListView']=new _0xd99f52(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',_0x2d4e07=>_0x2d4e07+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x171e37,_0x290804)=>_0x171e37||!!_0x290804);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x28ec7d}=this['_config'],_0x253044=new _0x28ec7d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b1f84=_0x253044['commentInputView'];return _0x253044['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b1f84,'value',(_0x4670e1,_0x2e5aa5,_0x51bdda)=>!!_0x51bdda||_0x4670e1&&!_0x2e5aa5),_0x4b1f84['on']('submit',(_0xd8a4b4,_0x9c0a27)=>{this['fire']('addComment',_0x9c0a27),_0x4b1f84['editor']['setData']('');}),_0x4b1f84['on']('cancel',()=>this['focus']()),_0x4b1f84['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x253044;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x21a893,_0x12be95,_0x9074c9,_0x15694f){super(_0x21a893,_0x12be95,_0x9074c9,_0x15694f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x14b242=>_0x14b242&&_0x14b242[0x0]?_0x14b242[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2509c7,_0xde8107)=>{let _0x8455a2='';for(const _0x408eef of _0x2509c7)_0x8455a2+='<p>'+cs(_0x408eef['content'],_0x408eef['color'])+'</p>';return _0xde8107?_0x8455a2:_0x12de81(_0x8455a2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x15694f['SuggestionView'](_0x21a893,_0x12be95,{'formatDateTime':_0x15694f['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 _0x4085d2=this['bindTemplate'],_0x5005bd=[this['suggestionView']];return this['commentsListView']&&_0x5005bd['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5005bd['push'](this['commentThreadInputView']),_0x5005bd['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4085d2['if']('isActive','ck-suggestion-wrapper--active'),_0x4085d2['to']('type',_0x15be23=>'ck-suggestion-'+_0x15be23),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':_0x4085d2['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5005bd};}['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 fe extends _0x381a78{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3ac4c1,_0x3a6584,_0x1ecacd){super(_0x3ac4c1),this['_model']=_0x3a6584,this['_config']=_0x1ecacd,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3a6584),this['acceptButton']=this['_createButton'](o(_0x3ac4c1,'Accept\x20suggestion'),_0x1ab810['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3ac4c1,'Discard\x20suggestion'),_0x1ab810['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3310f3(_0x3ac4c1,_0x3a6584['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x407dcc([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x47fa36(),this['keystrokes']=new _0x47ea04(),this['focusCycler']=new _0x207c8b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x31d8f4=>_0x31d8f4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3270f5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3270f5['innerHTML']=this['description'],this['on']('change:description',(_0x56b742,_0x16f160,_0xd928d7)=>{_0x3270f5['innerHTML']=_0xd928d7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x18e759=this['bindTemplate'],_0x38ebdb=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x18e759['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x18e759['to']('authoredAt',_0x285762=>this['_config']['formatDateTime'](_0x285762))}]}]},{'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']&&_0x38ebdb['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':_0x38ebdb}]};}['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'](_0x1d46cb,_0x863508,_0x43afaf,_0x4a0078,_0x199c54){const _0x4c9fc6=new _0x4007a2(this['locale']);return _0x4c9fc6['set']({'label':_0x1d46cb,'icon':_0x863508,'tooltip':!0x0,'tooltipPosition':_0x199c54}),_0x4c9fc6['extendTemplate']({'attributes':{'class':_0x43afaf}}),_0x4c9fc6['on']('execute',()=>{this['fire'](_0x4a0078,this['_model']['id']);}),_0x4c9fc6;}['_setupKeyboardNavigation'](){const _0x315db2=this['element'];this['keystrokes']['listenTo'](_0x315db2);for(const _0x1d1f06 of this['focusables'])this['focusTracker']['add'](_0x1d1f06['element']),this['keystrokes']['listenTo'](_0x1d1f06['element']);this['keystrokes']['set']('enter',(_0x4d3866,_0x42fd47)=>{_0x315db2===_0x4d3866['target']&&(this['focusCycler']['focusFirst'](),_0x42fd47());}),this['keystrokes']['set']('esc',(_0xc603ee,_0x48ac4a)=>{_0x315db2!==_0xc603ee['target']&&(this['focus'](),_0x48ac4a());});}}var we='<!--\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-2025,\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 _0xe53f34{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4d2373,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe1e170){super(_0xe1e170),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4fcbe2=this['editor']['config'];_0x4fcbe2['define']('trackChanges.SuggestionThreadView',pe),_0x4fcbe2['define']('trackChanges.SuggestionView',fe),_0x4fcbe2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4fcbe2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x24820a,_0x43a6c9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4059bd,_0x372513]of this['_handleControllerBuffer']){const _0x216214=this['_suggestionToController']['has'](_0x4059bd);_0x216214||_0x372513?_0x216214&&_0x372513&&this['_destroyController'](_0x4059bd):this['_initializeController'](_0x4059bd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x24820a,_0x43a6c9);}['init'](){const _0x5eee89=this['editor'],_0x1650d9=_0x5eee89['plugins']['get']('TrackChangesEditing'),_0x1584bf=_0x5eee89['plugins']['get']('Annotations'),_0x56297c=_0x5eee89['plugins']['get']('EditorAnnotations'),_0x43a966=_0x5eee89['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x56297c['addSourceCollector'](()=>{const _0x681bf1=[];for(const [_0x11b086,_0x333c6d]of Array['from'](this['_suggestionToController'])){const _0x4534d5=_0x11b086['getAllAdjacentSuggestions'](),_0x4a0410=[];for(const _0x32ded3 of _0x4534d5){if(!_0x32ded3['isInContent'])continue;if(_0x32ded3['isMultiRange']){_0x4a0410['push'](..._0x32ded3['getRanges']());continue;}const _0x132c60=_0x32ded3['getFirstRange']();if(_0x4a0410['length']>0x0){const _0x4bc876=_0x4a0410[0x0]['getJoined'](_0x132c60);if(_0x4bc876){_0x4a0410[0x0]=_0x4bc876;continue;}}_0x4a0410['push'](_0x132c60);}_0x681bf1['push']([_0x333c6d['view'],_0x4a0410]);}return _0x681bf1;}),this['listenTo'](_0x1650d9,'suggestionLoaded',(_0x9e831d,_0x3062ee)=>{this['listenTo'](_0x3062ee,'change:previous',(_0x2521dd,_0x16ff44,_0x1176d1,_0x4c7239)=>{_0x3062ee['isInContent']&&(null==_0x1176d1?(this['_updateController'](_0x4c7239['head']),this['_handleSuggestionControllerDelayed'](_0x3062ee,!0x1)):(this['_updateController'](_0x1176d1['head']),null==_0x4c7239&&this['_handleSuggestionControllerDelayed'](_0x3062ee,!0x0)));}),null!==_0x3062ee['previous']?this['_updateController'](_0x3062ee['head']):this['_handleSuggestionControllerDelayed'](_0x3062ee,!0x1);}),this['listenTo'](_0x1650d9,'suggestionUnloaded',(_0x165167,_0x4b508a,_0x4313d9)=>{this['stopListening'](_0x4b508a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4b508a),this['_suggestionToController']['has'](_0x4b508a)&&this['_destroyController'](_0x4b508a),_0x4313d9&&this['_updateController'](_0x4313d9['head']);}),this['listenTo'](_0x1650d9,'suggestionChanged',(_0x4e149f,_0x169463)=>{this['_updateController'](_0x169463);}),this['listenTo'](_0x1584bf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x43a966,'addComment',(_0x51d1d5,{threadId:_0x5793b0,isFromAdapter:_0x32f18c})=>{if(_0x32f18c||!_0x1650d9['hasSuggestion'](_0x5793b0))return;const _0x4115de=_0x1650d9['getSuggestion'](_0x5793b0);this['_suggestionToController']['get'](_0x4115de)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x602f9f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41a117;for(const _0x30b7d4 in _0x602f9f){const _0x1bd7ce=_0x30b7d4,_0x1592a5=_0x602f9f[_0x1bd7ce];if('trackChangesLicenseKeyValid'==_0x1592a5||'trackChangesLicenseKeyInvalid'==_0x1592a5||'trackChangesLicenseKeyExpired'==_0x1592a5||'trackChangesLicenseKeyDomainLimit'==_0x1592a5||'trackChangesLicenseKeyNotAllowed'==_0x1592a5||'trackChangesLicenseKeyEvaluationLimit'==_0x1592a5||'trackChangesLicenseKeyTrialLimit'==_0x1592a5||'trackChangesLicenseKeyUsageLimit'==_0x1592a5){delete _0x602f9f[_0x1bd7ce],_0x41a117=_0x1592a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x41a117&&_0x602f9f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x41a117&&_0x602f9f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x41a117&&_0x602f9f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x41a117&&_0x602f9f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x41a117&&_0x602f9f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x41a117&&_0x602f9f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x41a117&&_0x602f9f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x301a02=this['editor']['plugins']['get']('Annotations'),_0x265b9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x351bbc=Array['from'](_0x301a02['activeAnnotations'],_0x54ab63=>_0x54ab63['innerView'])['filter'](_0x27b956=>this['_viewToController']['has'](_0x27b956)),_0x306e98=[];for(const _0x20d390 of _0x351bbc){const _0x349071=this['_viewToController']['get'](_0x20d390)['model']['getAllAdjacentSuggestions']();_0x306e98['push'](..._0x349071['reduce']((_0x179d86,_0x3ff881)=>[..._0x179d86,..._0x3ff881['getMarkerNames']()],[]));}_0x265b9a['activeMarkers']=_0x306e98;}['_addUIComponentsToFactory'](){const _0xe092a3=this['editor'],_0xf162a1=_0xe092a3['locale'],_0x4e9017=o(_0xf162a1,'Track\x20changes'),_0x5d9c66=new _0x1b7168([{'type':'switchbutton','model':new _0x3645f6({'withText':!0x0,'isToggleable':!0x0,'label':_0x4e9017,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3645f6({'withText':!0x0,'label':o(_0xf162a1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3645f6({'withText':!0x0,'label':o(_0xf162a1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3645f6({'withText':!0x0,'label':o(_0xf162a1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3645f6({'withText':!0x0,'label':o(_0xf162a1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xe092a3['plugins']['has']('TrackChangesPreview')&&_0x5d9c66['addMany']([{'type':'separator'},{'type':'button','model':new _0x3645f6({'withText':!0x0,'label':o(_0xf162a1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1192b7 of _0x5d9c66)if(ke(_0x1192b7)){const _0x2d186e=_0xe092a3['commands']['get'](_0x1192b7['model']['commandName']);_0x1192b7['model']['bind']('isOn','isEnabled')['to'](_0x2d186e,'value','isEnabled');}_0xe092a3['ui']['componentFactory']['add']('trackChanges',_0x137b6e=>this['_createToolbarButton'](_0x137b6e,_0x5d9c66,_0x4e9017)),_0xe092a3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x6c92bc=>this['_createMenuBarMenu'](_0x6c92bc,_0x5d9c66,_0x4e9017));}['_createToolbarButton'](_0x52fa7e,_0x6f9f03,_0x21ad06){const _0x35ec0c=_0x3b9ca1(_0x52fa7e,_0x47076f),_0x1b69bd=this['editor']['commands']['get']('trackChanges');_0x35ec0c['buttonView']['set']({'tooltip':_0x21ad06,'label':_0x21ad06,'icon':we}),_0x35ec0c['buttonView']['bind']('isOn')['to'](_0x1b69bd,'value'),_0x35ec0c['buttonView']['on']('execute',()=>{_0x1b69bd['execute'](),this['editor']['editing']['view']['focus']();}),_0x4cce8e(_0x35ec0c,_0x6f9f03,{'role':'menu'});const _0x452204=[];for(const _0x2a255a of _0x6f9f03)ke(_0x2a255a)&&_0x452204['push'](this['editor']['commands']['get'](_0x2a255a['model']['commandName']));const _0x2501a3=_0x35ec0c['buttonView'];return _0x2501a3['actionView']['unbind']('isEnabled'),_0x2501a3['arrowView']['unbind']('isEnabled'),_0x2501a3['actionView']['bind']('isEnabled')['to'](_0x1b69bd,'isEnabled'),_0x2501a3['arrowView']['bind']('isEnabled')['toMany'](_0x452204,'isEnabled',(..._0x5e74b8)=>_0x5e74b8['some'](_0x506af0=>_0x506af0)),_0x35ec0c['on']('execute',_0x347e3d=>{this['editor']['execute'](_0x347e3d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x35ec0c;}['_createMenuBarMenu'](_0x31398b,_0x4b574c,_0x581157){const _0x44c35c=new _0x492057(_0x31398b),_0xc83ac0=this['editor']['commands']['get']('trackChanges');_0x44c35c['buttonView']['set']({'label':_0x581157,'icon':we});const _0xea014d=new _0x1f8842(_0x31398b);for(const _0xc4a738 of _0x4b574c){if('separator'==_0xc4a738['type']){_0xea014d['items']['add'](new _0x3bf922(_0x31398b));continue;}const _0x815718=new _0x2f76fd(_0x31398b,_0x44c35c),_0x58be6d=new _0x2f1185(_0x31398b),_0x4248cd=_0xc4a738['model'];_0x58be6d['bind'](...Object['keys'](_0x4248cd))['to'](_0x4248cd),_0x58be6d['delegate']('execute')['to'](_0x44c35c),_0x58be6d['on']('execute',()=>{this['editor']['execute'](_0x4248cd['commandName']),this['editor']['editing']['view']['focus']();}),_0x815718['children']['add'](_0x58be6d),_0xea014d['items']['add'](_0x815718);}return _0x44c35c['bind']('isEnabled')['to'](_0xc83ac0,'isEnabled'),_0x44c35c['panelView']['children']['add'](_0xea014d),_0x44c35c;}['_initializeController'](_0x4c3444){const _0x211173=this['editor'],_0x3ba15c=_0x211173['config'],_0x50855b=_0x211173['plugins']['get']('Annotations'),_0x8a56d=_0x211173['plugins']['get']('CommentsRepository'),_0x252115=_0x211173['plugins']['get']('EditorAnnotations'),_0x50920c=_0x211173['plugins']['get'](_0x4d2373)['me'],_0x1b371d=_0x3ba15c['get']('trackChanges')['SuggestionThreadView'],_0x48db2b=_0x3ba15c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x6e27e0,CommentThreadInputView:_0x23918c}=_0x211173['plugins']['get']('CommentsUI');let _0x2c976d,_0x2b6b7e,_0x432957;this['_annotationViews']['has'](_0x4c3444['id'])?(_0x2b6b7e=this['_annotationViews']['get'](_0x4c3444['id']),_0x2c976d=_0x2b6b7e['mainView']):(_0x2c976d=new _0x1b371d(_0x211173['locale'],_0x4c3444,_0x50920c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3ba15c['get']('comments.editorConfig'),'licenseKey':_0x3ba15c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3ba15c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3ba15c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3ba15c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3fd531(_0x3ba15c['get']('locale')),'CommentView':_0x3ba15c['get']('comments')['CommentView'],'CommentsListView':_0x6e27e0,'CommentThreadInputView':_0x23918c,'SuggestionView':_0x48db2b}),_0x2c976d['suggestionView']['acceptButton']['on']('execute',()=>{_0x211173['editing']['view']['focus']();}),_0x2c976d['suggestionView']['discardButton']['on']('execute',()=>{_0x211173['editing']['view']['focus']();}),_0x2b6b7e=_0x50855b['createAnnotationView'](this['editor']['locale'],_0x2c976d),_0x2b6b7e['bind']('isDirty')['to'](_0x2c976d,'isDirty'),_0x2b6b7e['bind']('length')['to'](_0x2c976d),_0x2b6b7e['bind']('type')['to'](_0x2c976d,'type',_0xd0db3f=>'suggestion-'+_0xd0db3f),_0x2c976d['on']('escape',()=>{_0x432957['fire']('escape');}),this['_annotationViews']['set'](_0x4c3444['id'],_0x2b6b7e));const _0x2abf4a=_0x8a56d['createCommentThreadController'](_0x4c3444['commentThread'],_0x2c976d),_0x3b721f=new Ce(_0x211173,_0x4c3444,_0x2c976d,_0x2abf4a),_0x4b72e5=_0x4c3444['getAllAdjacentSuggestions']()['filter'](_0x9e1ec3=>_0x9e1ec3['isInContent']);_0x2c976d['descriptionParts']=_0x211173['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4b72e5),this['_suggestionToController']['set'](_0x4c3444,_0x3b721f),this['_viewToController']['set'](_0x2c976d,_0x3b721f),_0x432957=_0x50855b['createAnnotation']({'view':_0x2b6b7e,'target':()=>{const _0x19928c=[],_0x7c978c=_0x4c3444['getAllAdjacentSuggestions']()['filter'](_0x5efce5=>_0x5efce5['isInContent']);for(const _0x1a022d of _0x7c978c)_0x19928c['push'](..._0x1a022d['getMarkers']());return _0x2e4666(_0x211173['editing'],_0x19928c);},'type':()=>'suggestion-'+_0x3b721f['view']['type']}),_0x8a56d['_bindAnnotationToEditors'](_0x2c976d,_0x432957),_0x50855b['add'](_0x432957),_0x252115['registerAnnotation'](_0x432957);}['_destroyController'](_0x516efe){const _0x210f21=this['editor']['plugins']['get']('CommentsRepository'),_0x4c0cda=this['editor']['plugins']['get']('Annotations'),_0xb80b2a=this['_suggestionToController']['get'](_0x516efe),_0x41a6f3=_0xb80b2a['view'],_0x18907f=_0x4c0cda['getByInnerView'](_0x41a6f3);_0x210f21['_unbindEditors'](_0x41a6f3),_0x18907f&&_0x4c0cda['remove'](_0x18907f),this['_suggestionToController']['delete'](_0x516efe),this['_viewToController']['delete'](_0x41a6f3),_0xb80b2a['destroy']();}['_updateController'](_0x1c8860){if(!_0x1c8860['isInContent']||!this['_suggestionToController']['has'](_0x1c8860))return;const _0x18d18f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x50a606=this['_suggestionToController']['get'](_0x1c8860),_0x4ec648=_0x1c8860['getAllAdjacentSuggestions']();_0x50a606['view']['descriptionParts']=_0x18d18f['descriptionFactory']['getDescriptions'](_0x4ec648);}['destroy'](){for(const _0x33b58f of this['_suggestionToController']['keys']())this['_destroyController'](_0x33b58f);for(const _0xe15c0e of this['_annotationViews']['values']())_0xe15c0e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x440901){return'model'in _0x440901;}class k extends _0xe53f34{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x331ef0){this['editor']['plugins']['get'](p)['adapter']=_0x331ef0;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x10d1a6){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x10d1a6);}['getSuggestions']({skipNotAttached:_0x40bc31=!0x1,toJSON:_0x1d8ce6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x40bc31,'toJSON':_0x1d8ce6});}['getSuggestion'](_0x35c306){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x35c306);}}const w=['Pagination'];class T extends _0xe53f34{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x23cf98=this['editor'];if(_0x23cf98['config']['define']('trackChangesData.editorCreator',_0x5016bb=>{const _0x43c74a=_0x23cf98['model']['document']['getRootNames']()['reduce']((_0x3c85f4,_0x37387e)=>(_0x3c85f4[_0x37387e]='',_0x3c85f4),{});return _0x23cf98['constructor']['create'](_0x43c74a,_0x5016bb);}),'function'!=typeof _0x23cf98['config']['get']('trackChangesData')['editorCreator'])throw new _0x4fb61a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3f6058){return N(this['editor'],!0x0,_0x3f6058);}['getDataWithDiscardedSuggestions'](_0x1e6567){return N(this['editor'],!0x1,_0x1e6567);}}class D extends _0xe53f34{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x54fea6){function _0x9cbec1(_0x1c6b4a){return _0x1c6b4a['map'](_0x3caca2=>String['fromCharCode'](_0x3caca2))['join']('');}super(_0x54fea6),this['result']='end',_0x54fea6[_0x9cbec1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9cbec1([0x76,0x69,0x65,0x77])][_0x9cbec1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9cbec1([0x61,0x75,0x74,0x6f]),_0x54fea6[_0x9cbec1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x9cbec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9cbec1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x9cbec1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x9cbec1([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 Fe(_0x351675){return void 0x0!==_0x351675['getRootsAttributes'];}async function N(_0x4a43ac,_0x46fc0e,_0x4aada7){const _0x49ed5b=_0xf7ce82(_0x4a43ac,w);_0x49ed5b['plugins']['push'](p,D),_0x49ed5b['rootsAttributes']=Fe(_0x4a43ac)?_0x4a43ac['getRootsAttributes']():void 0x0;const _0x258da1=document['createDocumentFragment'](),_0x4945a9=_0x4a43ac['config']['get']('trackChangesData')['editorCreator'],_0x268e1f=await _0x4945a9(_0x49ed5b,()=>function(_0x4d82dd){const _0x2851d8=document['createElement']('div');return _0x4d82dd['appendChild'](_0x2851d8),_0x2851d8;}(_0x258da1));!function(_0x805a81,_0x22e1dc){const _0xf15d14=_0x805a81['model']['document']['getRootNames']()['reduce']((_0x176bc0,_0x38ba71)=>(_0x176bc0[_0x38ba71]=_0x805a81['data']['get']({'rootName':_0x38ba71}),_0x176bc0),{}),_0x1eed2b=_0x805a81['plugins']['get']('Users')['users']['map'](_0x59cd53=>({'id':_0x59cd53['id'],'name':_0x59cd53['name']})),_0x37369a=_0x805a81['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4192f9=_0x805a81['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x283734=_0x22e1dc['plugins']['get']('Users'),_0xeaa3c4=_0x22e1dc['plugins']['get']('TrackChangesEditing'),_0x49a8e0=_0x22e1dc['plugins']['get']('CommentsRepository');for(const _0x189329 of _0x49a8e0['getCommentThreads']())_0x189329['remove']();for(const _0x315384 of _0x1eed2b)_0x283734['getUser'](_0x315384['id'])||_0x283734['addUser'](_0x315384);_0x283734['me']||_0x283734['useAnonymousUser']();for(const _0x1037fa of _0x4192f9)_0x49a8e0['addCommentThread'](_0x1037fa);for(const _0x2a70ab of _0x37369a)_0xeaa3c4['addSuggestionData'](_0x2a70ab);_0x22e1dc['data']['set'](_0xf15d14);}(_0x4a43ac,_0x268e1f),_0x268e1f['execute'](_0x46fc0e?'acceptAllSuggestions':'discardAllSuggestions');const _0x3650d9=Fe(_0x268e1f)?_0x268e1f['getFullData'](_0x4aada7):_0x268e1f['data']['get'](_0x4aada7);return await _0x268e1f['destroy'](),_0x3650d9;}class Me extends _0x381a78{['options'];constructor(_0x4d47ad,_0x38e7d6){super(_0x4d47ad),this['options']=_0x38e7d6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x4df89d,_0x35045c){if(!this['element'])return;const _0x41406e=[];for(const [_0x44894f,_0x414064]of _0x4df89d){const _0x543fc1=document['createElement']('div');_0x543fc1['setAttribute']('data-ck-root-name',_0x44894f),_0x543fc1['className']=_0x414064['classes']+'\x20ck-track-changes-preview__root-container',_0x543fc1['innerHTML']=_0x414064['content'],_0x41406e['push'](_0x543fc1);}_0x35045c(this['element'],_0x41406e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x2510d7){super(_0x2510d7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4facd5=this['editor'],_0x274e67=_0x4facd5['locale'],_0x229591=_0x4facd5['plugins']['get']('Dialog');let _0x448196;const _0x1143ee=function(_0x2c6b33){const _0x2c2199={};if('editables'in _0x2c6b33['ui']['view']){for(const [_0x38e3cc,_0x32b90c]of Object['entries'](_0x2c6b33['ui']['view']['editables']))_0x2c2199[_0x38e3cc]=_0x32b90c['element'];}else _0x2c2199[_0x2c6b33['model']['document']['getRootNames']()[0x0]]=_0x2c6b33['ui']['view']['editable']['element'];return _0x2c2199;}(_0x4facd5),_0x5edbc7=function(_0x3118b1){let _0x3b6b97=0x0;for(const _0x26d922 of Object['values'](_0x3118b1))_0x3b6b97=Math['max'](_0x3b6b97,_0x26d922['getBoundingClientRect']()['width']);let _0x3d0d8a=0x0;for(const _0x5bc99b of Object['values'](_0x3118b1))_0x3d0d8a+=_0x5bc99b['getBoundingClientRect']()['height'];const _0x3fd1f1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x50ebcf=Math['min'](_0x3d0d8a,_0x3fd1f1);return{'width':_0x3b6b97,'height':_0x50ebcf};}(_0x1143ee);_0x229591['show']({'id':'finalContentPreview','title':o(_0x274e67,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x274e67,{'dialogRects':_0x5edbc7}),'onHide':()=>{_0x448196['detachFromDom']();},'onShow':()=>{_0x4facd5['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xc83d=>{const _0x49e3e1=this['_standarizeRootsData'](_0xc83d,_0x4facd5,_0x1143ee);_0x229591['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x49e3e1,_0x4facd5['config']['get']('trackChanges.preview.renderFunction'));}),_0x448196=new _0x564e3a(_0x274e67,[_0x229591['view']]),_0x448196['attachToDom'](),_0x448196['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4facd5['once']('destroy',()=>{_0x448196['detachFromDom']();});const _0xbc29a1=_0x229591['view']['headerView']['class'];_0x229591['view']['headerView']['class']=_0xbc29a1?_0xbc29a1+'\x20ck-reset_all':'ck-reset_all',_0x229591['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x229591['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xbd68e2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4e0d10=_0xbd68e2['previewMode'],_0x2a7973={};if('$labels'===_0x4e0d10){for(const _0x38a58f of _0xbd68e2['getMergeFieldsIds']())_0x2a7973[_0x38a58f]=_0xbd68e2['getLabel'](_0x38a58f)||_0x38a58f;}else{const _0x3accbe='$defaultValues'===_0x4e0d10?_0xbd68e2['getDefaultValues']():_0xbd68e2['getDataSetValues'](_0x4e0d10,!0x0);for(const _0x51389e of Object['entries'](_0x3accbe)){const [_0x176423,_0x401657]=_0x51389e;_0x2a7973[_0x176423]=null!==_0x401657?_0x401657:_0xbd68e2['getLabel'](_0x176423)||_0x176423;}}return{'mergeFieldsData':_0x2a7973};}['_standarizeRootsData'](_0x44947c,_0x4dd8e5,_0x65258f){let _0x1b001f;if('string'==typeof _0x44947c){const _0x10ba2e=_0x4dd8e5['model']['document']['getRootNames']()[0x0];_0x1b001f={[_0x10ba2e]:_0x44947c};}else _0x1b001f=_0x44947c;const _0x243194=this['_fixMediaEmbeds'](_0x1b001f,_0x4dd8e5),_0x1b0edf=function(_0x32495b,_0x4549af){for(const [_0x282f3f,_0x19a217]of _0x32495b)_0x19a217['classes']=_0x4549af[_0x282f3f]['classList']['value']['replace']('ck-focused','');return _0x32495b;}(this['_sortRoots'](_0x4dd8e5)['reduce']((_0x208c31,_0x1516d6)=>(_0x208c31['push']([_0x1516d6,{'content':_0x243194[_0x1516d6],'classes':''}]),_0x208c31),[]),_0x65258f);return _0x1b0edf;}['_fixMediaEmbeds'](_0x4fe02a,_0x34e9b3){if(!_0x34e9b3['plugins']['has']('MediaEmbedEditing'))return _0x4fe02a;const _0x2887c7=_0x34e9b3['plugins']['get']('MediaEmbedEditing');for(const [_0x6e735a,_0x30cd88]of Object['entries'](_0x4fe02a)){const _0x414081=document['createElement']('div');_0x414081['innerHTML']=_0x30cd88,(_0x414081['querySelectorAll']('figure.media')['forEach'](_0x215d87=>{const _0x408c92=_0x215d87['querySelector']('oembed');if(_0x408c92){const _0x2d3909=_0x408c92['getAttribute']('url');if(_0x2d3909){const _0x1edd80=_0x2887c7['registry']['getMediaViewElement'](new _0xb9897e(_0x34e9b3['editing']['view']['document']),_0x2d3909,{'elementName':'','renderForEditingView':!0x0}),_0x4ae63b=document['createElement']('div');_0x4ae63b['classList']['add']('ck-media__wrapper'),_0x1edd80['render'](_0x4ae63b,_0x34e9b3['editing']['view']['domConverter']),_0x408c92['replaceWith'](_0x4ae63b);}}}),_0x4fe02a[_0x6e735a]=_0x414081['innerHTML']);}return _0x4fe02a;}['_sortRoots'](_0x14976a){if(!function(_0xbc02e6){return void 0x0!==_0xbc02e6['getRootsAttributes'];}(_0x14976a))return _0x14976a['model']['document']['getRootNames']();const _0xaf5034=[],_0x1c651f=new Map();for(const _0x2474a8 of _0x14976a['model']['document']['getRootNames']()){const _0x231d08=_0x14976a['editing']['view']['getDomRoot'](_0x2474a8)['getClientRects']()['item'](0x0);_0xaf5034['push'](_0x2474a8),_0x1c651f['set'](_0x2474a8,_0x231d08);}return _0xaf5034['sort']((_0x624f80,_0x137030)=>{const _0x2b8eb6=_0x1c651f['get'](_0x624f80),_0x3be66a=_0x1c651f['get'](_0x137030);return _0x2b8eb6['y']-_0x3be66a['y']||_0x2b8eb6['x']-_0x3be66a['x'];}),_0xaf5034;}}class te extends _0xe53f34{static get['requires'](){return[T,_0x303d56];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31b300){super(_0x31b300),_0x31b300['commands']['add']('previewFinalContent',new re(this['editor'])),_0x31b300['config']['define']('trackChanges.preview.renderFunction',(_0x77a547,_0x2a15d0)=>{for(const _0x4e394b of _0x2a15d0)_0x77a547['appendChild'](_0x4e394b);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Yt,Plugin as _0x5320e9,PendingActions as _0x1cc076,icons as _0x2e537e}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4dd4de,ObservableMixin as _0x349e4e,uid as _0x1a7a2c,priorities as _0x4a41e9,insertToPriorityArray as _0x7dedfc,logWarning as _0x23468a,getEnvKeystrokeText as _0x4858a1,FocusTracker as _0x2515cc,KeystrokeHandler as _0x170cca,Collection as _0x1eeb17}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x40a360,View as _0xae56f4,ViewCollection as _0x1e33fb,FocusCycler as _0x159ec4,ViewModel as _0x125ce2,createDropdown as _0x4cd52a,SplitButtonView as _0x282b9c,addListToDropdown as _0x241209,MenuBarMenuView as _0x4dff8c,MenuBarMenuListView as _0x152c8c,ListSeparatorView as _0x176423,MenuBarMenuListItemView as _0x93570e,MenuBarMenuListItemButtonView as _0x2c583e,BodyCollection as _0x4fa421,Dialog as _0x5661bf}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xfc0992,hashObject as _0x5d20b2,surroundingMarkersDetector as _0x5a8ba8,FOCUS_ANNOTATION_KEYSTROKE as _0x19135f,AriaDescriptionView as _0xe1a052,setupThreadKeyboardNavigation as _0x430d09,trimHtml as _0x525a8a,UserView as _0x2837f4,LateFocusButtonView as _0x2d6f05,getDateTimeFormatter as _0xf3c118,getAllMarkersDomElementsSorted as _0x4f037a,sanitizeEditorConfig as _0x334f5}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x226ded,LiveRange as _0x125c3e,LivePosition as _0x519fea,DowncastWriter as _0x2775d9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5e4a98,toWidget as _0x4a7551}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1f99f6,set as _0x4277bc,isEqual as _0x283667,unset as _0x3ab49a,omit as Vt}from'lodash-es';import{Delete as _0x1a3ab0,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5a0bdd,ShiftEnter as _0x2cc1bd}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x1d0e61,_0x4b9324){super(_0x1d0e61),this['_enabledCommands']=_0x4b9324,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 _0x40cf77 of this['editor']['commands']['commands']())_0x40cf77['affectsData']&&!this['_enabledCommands']['has'](_0x40cf77)&&_0x40cf77['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x59d35f of this['editor']['commands']['commands']())_0x59d35f['affectsData']&&!this['_enabledCommands']['has'](_0x59d35f)&&_0x59d35f['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x18c325,_0x2551d3){super(_0x18c325),this['_suggestions']=_0x2551d3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5b7d48){const _0x587bd3=this['_suggestions']['get'](_0x5b7d48);if(!_0x587bd3)throw new _0x4dd4de('track-changes-accept-suggestion-not-found',this);const _0x4d7381=_0x587bd3['getRanges']();this['editor']['model']['canEditAt'](_0x4d7381)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x587bd3);}}class R extends Yt{['_suggestions'];constructor(_0x4010e5,_0x3a0481){super(_0x4010e5),this['_suggestions']=_0x3a0481,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x15e740){const _0x52f0b4=this['_suggestions']['get'](_0x15e740);if(!_0x52f0b4)throw new _0x4dd4de('track-changes-discard-suggestion-not-found',this);const _0x4c31be=_0x52f0b4['getRanges']();this['editor']['model']['canEditAt'](_0x4c31be)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x52f0b4);}}function cs(_0x5e6bcf,_0x56a21a){let _0x2e90d5='';return _0x2e90d5+=_0x5e6bcf['split']('*')['map']((_0x21031c,_0xdd6e4)=>_0xdd6e4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x21031c)+'</span>':nn(_0x21031c))['join'](''),_0x56a21a&&(_0x2e90d5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x56a21a['value']+'\x22\x20title=\x22'+_0x56a21a['title']+'\x22></span>'),_0x2e90d5;}function nn(_0x3fae3a){const _0x1231ca=document['createElement']('span');return _0x1231ca['innerText']=_0x3fae3a,_0x1231ca['innerHTML'];}function Zt(_0xe94b82){return _0xe94b82['sort']((_0x2b0c24,_0x358b45)=>'deletion'==_0x2b0c24['type']&&'deletion'!=_0x358b45['type']?-0x1:'deletion'!=_0x2b0c24['type']&&'deletion'==_0x358b45['type']?0x1:0x0);}function to(_0x26f715,_0x4e9982){let _0x2b2ef0,_0x2ce393=0x0;const _0x2c631c=[],_0x4050cc=_0x4e9982['schema'];for(;_0x2ce393<_0x26f715['length'];){const _0x13ad8a=_0x26f715[_0x2ce393],_0x1d6d6b=_0x26f715[_0x2ce393+0x1];_0x2b2ef0||(_0x2b2ef0=_0x4e9982['createPositionBefore'](_0x13ad8a)),on(_0x4e9982,_0x13ad8a,_0x1d6d6b)||(_0x2c631c['push'](_0x4e9982['createRange'](_0x2b2ef0,_0x4050cc['isObject'](_0x13ad8a)?_0x4e9982['createPositionAfter'](_0x13ad8a):_0x4e9982['createPositionAt'](_0x13ad8a,'end'))),_0x2b2ef0=null),_0x2ce393++;}return _0x2c631c;}function on(_0x27c481,_0x123874,_0x492845){if(!_0x492845)return!0x1;const _0x2207e2=_0x27c481['createPositionAfter'](_0x123874),_0x2b14b1=_0x27c481['createPositionBefore'](_0x492845);return _0x2207e2['isTouching'](_0x2b14b1);}function ts(_0x30dfd8,_0x5eb759,_0x4b17f3){for(;_0x4b17f3['length'];){const _0x2d3eed=_0x4b17f3['splice'](0x0,0x64);_0x30dfd8['change'](()=>{for(const _0x3357c3 of _0x2d3eed)_0x3357c3['isInContent']&&_0x5eb759['execute'](_0x3357c3['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x60e80,_0x5c78fa,_0x148265){super(_0x60e80),this['_command']=_0x5c78fa,this['_suggestions']=_0x148265,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4dd87e=Array['from'](this['_suggestions']['values']())['some'](_0x2a4eae=>_0x2a4eae['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4dd87e;}['execute'](){const _0x2c884d=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x10812e of _0x2c884d){const _0x1f2afe=_0x10812e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1f2afe))return;}ts(this['editor']['model'],this['_command'],_0x2c884d);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2c102c,_0x21a399,_0x488849){super(_0x2c102c),this['_command']=_0x21a399,this['_suggestions']=_0x488849,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x125bfd=this['editor']['model']['document']['selection'],_0x4c5d77=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x420b31,_0x355c9e){const _0x26d62a=Array['from'](_0x420b31['getRanges']()),_0x1d5882=new Set();for(const _0x3e9cf9 of _0x355c9e)if(_0x3e9cf9['isInContent']){for(const _0x1cce71 of _0x26d62a)for(const _0x559381 of _0x3e9cf9['getRanges']())(_0x1cce71['isIntersecting'](_0x559381)||_0x420b31['isCollapsed']&&!_0x3e9cf9['isMultiRange']&&_0x3e9cf9['next']&&_0x559381['end']['isTouching'](_0x1cce71['start']))&&_0x1d5882['add'](_0x3e9cf9);}return _0x1d5882;}(_0x125bfd,_0x4c5d77),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x9bcc10=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x3bc774 of _0x9bcc10){const _0x4b1f31=_0x3bc774['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b1f31))return;}ts(this['editor']['model'],this['_command'],_0x9bcc10);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x349e4e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x25722a,_0xc95fbb){super(),this['id']=_0xc95fbb['id'],this['type']=_0xc95fbb['type'],this['subType']=_0xc95fbb['subType']||null,this['author']=_0xc95fbb['author'],this['creator']=_0xc95fbb['creator']||_0xc95fbb['author'],this['isExternal']=Boolean(_0xc95fbb['attributes']&&_0xc95fbb['attributes']['@external']),this['data']=null,this['_model']=_0x25722a,this['_onAccept']=_0xc95fbb['onAccept'],this['_onDiscard']=_0xc95fbb['onDiscard'],this['_onAttributesChange']=_0xc95fbb['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xc95fbb['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 _0x113f5a=this;for(;_0x113f5a['previous'];)_0x113f5a=_0x113f5a['previous'];return _0x113f5a;}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'](_0x101fde){this['_markerNames']['add'](_0x101fde);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2a81b6=>this['_model']['markers']['get'](_0x2a81b6))['filter'](_0x22b296=>_0x22b296);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xbad888=>{for(const _0x12f312 of this['getMarkers']())_0xbad888['removeMarker'](_0x12f312);}),this['_markerNames']['clear']();}['removeMarker'](_0x26a02a){this['_model']['change'](_0x1bf9de=>{_0x1bf9de['removeMarker'](_0x26a02a);}),this['_markerNames']['delete'](_0x26a02a);}['addRange'](_0xb903e5){const _0x5ab39a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5ab39a),this['_model']['change'](_0x3905a8=>{_0x3905a8['addMarker'](_0x5ab39a,{'range':_0xb903e5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5e83a5){for(const _0x2466ad of this['getRanges']())if(_0x2466ad['isIntersecting'](_0x5e83a5))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2d82aa=>_0x2d82aa['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x38670d,_0x477269)=>[..._0x38670d,..._0x477269['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2809ec=this['getRanges']();if(0x1!=_0x2809ec['length'])return null;const _0x4ce004=_0x2809ec[0x0],_0x5d7396=_0x4ce004['start']['nodeAfter'],_0x29b055=_0x4ce004['end']['nodeBefore'];return _0x5d7396 instanceof _0x226ded?_0x5d7396!=_0x29b055?null:_0x5d7396: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 _0x54df46=[];let _0x336a9=this['head'];for(;_0x336a9;)_0x54df46['push'](_0x336a9),_0x336a9=_0x336a9['next'];return _0x54df46;}['setAttribute'](_0x1b7dd8,_0x1042c9){const _0x55045d=_0x1f99f6(this['attributes']);_0x4277bc(_0x55045d,_0x1b7dd8,_0x1042c9),_0x283667(_0x55045d,this['attributes'])||(this['attributes']=_0x55045d,this['_onAttributesChange'](_0x55045d));}['removeAttribute'](_0x49b246){const _0x5ab545=_0x1f99f6(this['attributes']);_0x3ab49a(_0x5ab545,_0x49b246),_0x283667(_0x5ab545,this['attributes'])||(this['attributes']=_0x5ab545,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 _0x1a7a2c()['substr'](0x1,0x5);}}function o(_0x34318d,_0x5db1ef,_0x47f60a){const _0x553b5c=_0x34318d['t'],t=_0x34318d['t'];switch(_0x5db1ef){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x47f60a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x47f60a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x47f60a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x47f60a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x47f60a);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',_0x47f60a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x47f60a);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x47f60a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x47f60a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x47f60a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x47f60a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x47f60a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x47f60a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x47f60a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x47f60a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x47f60a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x47f60a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x47f60a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x47f60a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x47f60a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x47f60a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x47f60a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x47f60a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x47f60a);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'},_0x47f60a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x47f60a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x47f60a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x47f60a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x47f60a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x47f60a);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'},_0x47f60a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x47f60a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x47f60a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x47f60a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x47f60a);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'},_0x47f60a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x47f60a);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'},_0x47f60a);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'},_0x47f60a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x47f60a);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'},_0x47f60a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x47f60a);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'},_0x47f60a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x47f60a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x47f60a);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'},_0x47f60a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x47f60a);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 _0x553b5c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x47f60a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x553b5c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x47f60a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x47f60a);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'},_0x47f60a);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'},_0x47f60a);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'},_0x47f60a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5db1ef;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5d64f0,_0x1c1b69){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5d64f0,this['_locale']=_0x1c1b69;}['getDescriptions'](_0x302a36){const _0x3a00d0=[],_0x562911=new Set(),_0x372455=new Set();for(let _0x1322b9=0x0;_0x1322b9<_0x302a36['length'];_0x1322b9++){const _0x2a1008=_0x302a36[_0x1322b9];if(!_0x2a1008['isInContent'])continue;const _0x1c30a9=this['_handleCustomCallbackDescription'](_0x2a1008);if(_0x1c30a9){if(null!=_0x2a1008['subType']){if(_0x562911['has'](_0x2a1008['subType']))continue;_0x562911['add'](_0x2a1008['subType']);}_0x3a00d0['push'](_0x1c30a9);}else{if('attribute'!=_0x2a1008['type'])'insertion'!=_0x2a1008['type']&&'deletion'!=_0x2a1008['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3a00d0,_0x2a1008,_0x302a36[_0x1322b9+0x1]);else{const _0x2bf047=_0x2a1008['data']['key'];if(_0x372455['has'](_0x2bf047))continue;_0x372455['add'](_0x2a1008['data']['key']),_0x2bf047==m?this['_handleRenameSuggestionDescription'](_0x3a00d0,_0x2a1008):this['_handleAttributeSuggestionDescription'](_0x3a00d0,_0x2a1008);}}}return this['_resolveDescriptionItems'](_0x3a00d0);}['registerDescriptionCallback'](_0x190521){this['_customCallbacks']['push'](_0x190521);}['registerElementLabel'](_0x2d0e25,_0x9d1444,_0x3679ec=_0x4a41e9['normal']){'function'==typeof _0x2d0e25?_0x7dedfc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2d0e25,'label':_0x9d1444,'priority':_0x3679ec}):this['_itemLabels']['set'](_0x2d0e25,_0x9d1444);}['registerAttributeLabel'](_0x5b6fac,_0x3a7522){this['_attributeLabels']['set'](_0x5b6fac,_0x3a7522);}['getItemLabel'](_0x90ad99,_0x1b4459=0x1){let _0x31802e;for(const _0xc0c358 of this['_itemLabelsCallbacks'])if(_0xc0c358['matchingCallback'](_0x90ad99)){_0x31802e=_0xc0c358['label'];break;}return _0x31802e||(_0x31802e=this['_itemLabels']['get'](_0x90ad99['name'])),_0x31802e?_0x31802e(_0x1b4459):0x1!==_0x1b4459?_0x1b4459+'\x20'+_0x90ad99['name']+'s':''+_0x90ad99['name'];}['_addDescriptionItems'](_0xfbf130,_0x3a22fc){const _0x47c7bf=_0x3a22fc['getFirstRange']()['getWalker'](),_0x452641='insertion'==_0x3a22fc['type']?'add':'remove';for(const _0x275407 of _0x47c7bf){const _0x5a6937=_0x275407['item'],_0x14bfd5=_0xfbf130[_0xfbf130['length']-0x1];if(_0x5a6937['is']('$textProxy'))_0x14bfd5&&_0x14bfd5['type']['indexOf']('Container')>-0x1&&_0xfbf130['pop'](),_0x14bfd5&&'text'==_0x14bfd5['type']?_0x14bfd5[_0x452641]+=_0x5a6937['data']:_0xfbf130['push']({'type':'text','add':'add'==_0x452641?_0x5a6937['data']:'','remove':'remove'==_0x452641?_0x5a6937['data']:''});else{if(this['_schema']['isObject'](_0x5a6937)){const _0x4c3390=_0x5a6937;if(_0x14bfd5&&_0x14bfd5['type']['indexOf']('Container')>-0x1&&_0xfbf130['pop'](),'elementEnd'==_0x275407['type'])continue;_0x14bfd5&&_0x14bfd5['type']==_0x452641+'Object'&&_0x14bfd5['element']['name']==_0x4c3390['name']?_0x14bfd5['quantity']++:_0xfbf130['push']({'type':_0x452641+'Object','element':_0x4c3390,'quantity':0x1}),_0x47c7bf['skip'](_0x3a725e=>!('elementEnd'==_0x3a725e['type']&&_0x3a725e['item']==_0x5a6937));}else{if(this['_schema']['checkChild'](_0x5a6937,'$text')||_0x5a6937['is']('element','softBreak')){const _0x293a47=_0x5a6937;if('add'==_0x452641&&'elementStart'==_0x275407['type']||'remove'==_0x452641&&'elementEnd'==_0x275407['type'])continue;if(_0x14bfd5&&-0x1==_0x14bfd5['type']['indexOf']('Container')){'text'==_0x14bfd5['type']&&(_0x14bfd5[_0x452641]+='\x0a');continue;}let _0x6fd6d5;if(_0x6fd6d5='add'==_0x452641?_0x293a47['nextSibling']&&!this['_schema']['isObject'](_0x293a47['nextSibling'])?_0x293a47['nextSibling']:null:_0x293a47['previousSibling']&&!this['_schema']['isObject'](_0x293a47['previousSibling'])?_0x293a47['previousSibling']:null,_0x293a47['isEmpty']||_0x6fd6d5&&_0x6fd6d5['isEmpty']){const _0x1e6b71=_0x6fd6d5&&_0x6fd6d5['isEmpty']?_0x6fd6d5:_0x293a47;_0x14bfd5&&_0x14bfd5['type']==_0x452641+'EmptyContainer'&&_0x14bfd5['element']['name']==_0x1e6b71['name']?_0x14bfd5['quantity']++:_0xfbf130['push']({'type':_0x452641+'EmptyContainer','element':_0x1e6b71,'quantity':0x1});}else _0xfbf130['push']({'type':_0x452641+'Container','element':_0x293a47});}}}}}['_resolveDescriptionItems'](_0x2e2788){const _0x3f5716=this['_locale'],_0x5b67fa=[],_0x4863d0=[],_0x4ada85=[];for(const _0x52209b of _0x2e2788)switch(_0x52209b['type']){case'text':if(_0x52209b['add']=_0x52209b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x52209b['remove']=_0x52209b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x52209b['add']&&''!=_0x52209b['remove']){_0x5b67fa['push']({'type':'replace','content':o(_0x3f5716,'REPLACE_TEXT',['\x22'+_0x52209b['remove']+'\x22','\x22'+_0x52209b['add']+'\x22'])});continue;}if(null!=_0x52209b['add']['match'](/^ +$/)){_0x5b67fa['push']({'type':'insertion','content':o(_0x3f5716,'*Insert:*\x20%0',o(_0x3f5716,'ELEMENT_SPACE',_0x52209b['add']['length']))});continue;}if(null!=_0x52209b['remove']['match'](/^ +$/)){_0x5b67fa['push']({'type':'deletion','content':o(_0x3f5716,'*Remove:*\x20%0',o(_0x3f5716,'ELEMENT_SPACE',_0x52209b['remove']['length']))});continue;}if(''!=_0x52209b['add']){_0x5b67fa['push']({'type':'insertion','content':o(_0x3f5716,'*Insert:*\x20%0','\x22'+_0x52209b['add']+'\x22')});continue;}_0x5b67fa['push']({'type':'deletion','content':o(_0x3f5716,'*Remove:*\x20%0','\x22'+_0x52209b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5b67fa['push']({'type':'insertion','content':o(_0x3f5716,'*Insert:*\x20%0',this['getItemLabel'](_0x52209b['element'],_0x52209b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5b67fa['push']({'type':'deletion','content':o(_0x3f5716,'*Remove:*\x20%0',this['getItemLabel'](_0x52209b['element'],_0x52209b['quantity']))});continue;case'addContainer':_0x5b67fa['push']({'type':'insertion','content':o(_0x3f5716,'*Split:*\x20%0',this['getItemLabel'](_0x52209b['element'],_0x52209b['quantity']))});continue;case'removeContainer':_0x5b67fa['push']({'type':'deletion','content':o(_0x3f5716,'*Merge:*\x20%0',this['getItemLabel'](_0x52209b['element'],_0x52209b['quantity']))});continue;case'addFormat':_0x4863d0['push'](_0x52209b['key']);continue;case'removeFormat':_0x4ada85['push'](_0x52209b['key']);continue;default:_0x5b67fa['push'](_0x52209b);}if(_0x4863d0['length']){const _0xcd5192=_0x4863d0['map'](_0x53d09e=>this['_attributeLabels']['has'](_0x53d09e)?this['_attributeLabels']['get'](_0x53d09e):_0x53d09e)['join'](',\x20');_0x5b67fa['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xcd5192)});}if(_0x4ada85['length']){const _0x5660ba=_0x4ada85['map'](_0x39f439=>this['_attributeLabels']['has'](_0x39f439)?this['_attributeLabels']['get'](_0x39f439):_0x39f439)['join'](',\x20');_0x5b67fa['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5660ba)});}return _0x5b67fa;}['_handleCustomCallbackDescription'](_0x3c4685){for(const _0x1a6e36 of this['_customCallbacks']){const _0x45e970=_0x1a6e36(_0x3c4685);if(_0x45e970&&'type'in _0x45e970)return _0x45e970;}}['_handleAttributeSuggestionDescription'](_0x16e246,_0x305391){const _0x5f5071=_0x305391['data'],_0x38c395=void 0x0===_0x5f5071['newValue']?'removeFormat':'addFormat';_0x16e246['push']({'type':_0x38c395,'key':_0x5f5071['key']});}['_handleRenameSuggestionDescription'](_0x2352b7,_0x38a6f9){_0x2352b7['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x38a6f9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1cde0a,_0x10edd8,_0x339c2a){if(this['_addDescriptionItems'](_0x1cde0a,_0x10edd8),_0x339c2a&&_0x339c2a['getFirstRange']()&&!_0x10edd8['getFirstRange']()['end']['isEqual'](_0x339c2a['getFirstRange']()['start'])){const _0x475b45=_0x1cde0a[_0x1cde0a['length']-0x1],_0x446d5d='insertion'==_0x10edd8['type']?'add':'remove';_0x475b45&&'text'==_0x475b45['type']&&(_0x475b45[_0x446d5d]+='\x0a');}}}class U extends _0x5320e9{['afterInit'](){const _0x55ca7c=this['editor'],_0x56b864=_0x55ca7c['plugins']['get']('TrackChangesEditing');_0x55ca7c['commands']['get']('showAIAssistant')&&_0x56b864['enableCommand']('showAIAssistant');}}class V extends _0x5320e9{['afterInit'](){const _0x533a9c=this['editor'],_0x22e519=_0x533a9c['locale'];if(!_0x533a9c['plugins']['has']('AlignmentEditing'))return;const _0x4ff559=_0x533a9c['plugins']['get']('TrackChangesEditing');_0x4ff559['enableDefaultAttributesIntegration']('alignment'),_0x4ff559['registerBlockAttribute']('alignment'),_0x4ff559['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x22e519,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x283351=this['editor'],_0x432aad=_0x283351['locale'];_0x283351['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a9a57=>{if('formatBlock'!=_0x2a9a57['type'])return;const {data:_0x36ad9c}=_0x2a9a57;if(_0x36ad9c&&'alignment'==_0x36ad9c['commandName']){const _0x5644ee=_0x36ad9c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x432aad,'*Format:*\x20%0',function(_0x34ed33){switch(_0x34ed33){case'left':return o(_0x432aad,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x432aad,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x432aad,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x432aad,'FORMAT_JUSTIFY_TEXT');}}(_0x5644ee))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5320e9{['afterInit'](){const _0x22c0cb=this['editor'],_0x23f215=_0x22c0cb['plugins']['get']('TrackChangesEditing'),_0x927634=_0x22c0cb['locale'];for(const _0x4a4102 of ti){if(!_0x22c0cb['plugins']['has'](_0x4a4102))continue;const _0x37a90e=_0x4a4102['slice'](0x0,-0x7)['toLowerCase'](),_0x3d82f2='FORMAT_'+_0x37a90e['toUpperCase']();_0x23f215['enableDefaultAttributesIntegration'](_0x37a90e),_0x23f215['registerInlineAttribute'](_0x37a90e),_0x23f215['descriptionFactory']['registerAttributeLabel'](_0x37a90e,o(_0x927634,_0x3d82f2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x293805=this['editor'],_0x32f4aa=_0x293805['locale'],_0x251b8d=_0x293805['plugins']['get']('TrackChangesEditing');function _0x3b5bf3(_0x11b6c2,_0x21c77a){_0x251b8d['descriptionFactory']['registerDescriptionCallback'](_0x20c479=>{if('formatInline'!=_0x20c479['type'])return;const {data:_0x4ba836}=_0x20c479;return _0x4ba836&&_0x4ba836['commandName']===_0x11b6c2?_0x4ba836['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32f4aa,'*Format:*\x20%0',_0x21c77a)}:{'type':'format','content':o(_0x32f4aa,'*Remove\x20format:*\x20%0',_0x21c77a)}:void 0x0;});}_0x3b5bf3('bold',o(_0x32f4aa,'FORMAT_BOLD')),_0x3b5bf3('italic',o(_0x32f4aa,'FORMAT_ITALIC')),_0x3b5bf3('underline',o(_0x32f4aa,'FORMAT_UNDERLINE')),_0x3b5bf3('code',o(_0x32f4aa,'FORMAT_CODE')),_0x3b5bf3('strikethrough',o(_0x32f4aa,'FORMAT_STRIKETHROUGH')),_0x3b5bf3('subscript',o(_0x32f4aa,'FORMAT_SUBSCRIPT')),_0x3b5bf3('superscript',o(_0x32f4aa,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5320e9{['afterInit'](){const _0x3230bf=this['editor'],_0x4f4c92=_0x3230bf['locale'];if(!_0x3230bf['plugins']['has']('BlockQuoteEditing'))return;const _0x30477d=_0x3230bf['plugins']['get']('TrackChangesEditing'),_0x425904=this['editor']['commands']['get']('blockQuote');_0x30477d['enableCommand']('blockQuote',(_0x238d7f,_0x4fc461={})=>{const _0x5a5efb=this['editor']['model']['document']['selection'],_0x495d6a=_0x4fc461&&void 0x0!==_0x4fc461['forceValue']?_0x4fc461['forceValue']:!_0x425904['value'];let _0x2ea9ff=[];if(_0x495d6a){const _0x504655=Array['from'](_0x5a5efb['getSelectedBlocks']())['filter'](_0x3fe23f=>oo(_0x3fe23f)||function(_0x321646,_0x4918fa){const _0x560232=_0x4918fa['checkChild'](_0x321646['parent'],'blockQuote'),_0x4f2537=_0x4918fa['checkChild'](['$root','blockQuote'],_0x321646);return _0x560232&&_0x4f2537;}(_0x3fe23f,this['editor']['model']['schema']));_0x2ea9ff=to(_0x504655,_0x3230bf['model']);}else{const _0x53dbb1=Array['from'](_0x5a5efb['getSelectedBlocks']())['filter'](_0x5f1a90=>oo(_0x5f1a90));_0x2ea9ff=to(_0x53dbb1,_0x3230bf['model']);}_0x3230bf['model']['change'](()=>{for(const _0x1fef0e of _0x2ea9ff)_0x30477d['markBlockFormat'](_0x1fef0e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x495d6a}]});});}),_0x30477d['descriptionFactory']['registerDescriptionCallback'](_0x451f15=>{const {data:_0x19be65}=_0x451f15;if(_0x19be65&&'blockQuote'==_0x19be65['commandName']){const _0x33a669=o(_0x4f4c92,'ELEMENT_BLOCK_QUOTE');return _0x19be65['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f4c92,'*Set\x20format:*\x20%0',_0x33a669)}:{'type':'format','content':o(_0x4f4c92,'*Remove\x20format:*\x20%0',_0x33a669)};}});}}function oo(_0x3fa936){return'blockQuote'==_0x3fa936['parent']['name'];}class L extends _0x5320e9{['afterInit'](){const _0x529503=this['editor'],_0x5b1afd=_0x529503['locale'],_0x476066=_0x529503['plugins']['get']('TrackChangesEditing');_0x529503['plugins']['has']('BookmarkEditing')&&(_0x476066['enableCommand']('insertBookmark'),_0x476066['enableDefaultAttributesIntegration']('updateBookmark'),_0x476066['registerBlockAttribute']('bookmarkId'),_0x476066['descriptionFactory']['registerDescriptionCallback'](_0x1ce371=>{if('insertion'!=_0x1ce371['type']&&'deletion'!=_0x1ce371['type']&&'attribute'!=_0x1ce371['type'])return;const _0x3e0ad6=_0x1ce371['getContainedElement']();if(null==_0x3e0ad6)return;if(!_0x3e0ad6['is']('element','bookmark'))return;const _0x35429e=_0x3e0ad6['getAttribute']('bookmarkId');if('insertion'==_0x1ce371['type'])return{'type':'insertion','content':o(_0x5b1afd,'*Insert:*\x20%0','\x22'+_0x35429e+'\x22\x20'+o(_0x5b1afd,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1ce371['type'])return{'type':'deletion','content':o(_0x5b1afd,'*Remove:*\x20%0','\x22'+_0x35429e+'\x22\x20'+o(_0x5b1afd,'ELEMENT_BOOKMARK'))};const {data:_0x40343b}=_0x1ce371;if(!_0x40343b||'bookmarkId'!=_0x40343b['key'])return;return{'type':'format','content':o(_0x5b1afd,'*Set\x20bookmark:*\x20%0','\x22'+_0x40343b['newValue']+'\x22')};}));}}class J extends _0x5320e9{['afterInit'](){const _0x247929=this['editor'];_0x247929['plugins']['has']('CaseChange')&&(_0x247929['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x247929['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x247929['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5320e9{['afterInit'](){const _0x59bbb1=this['editor'];_0x59bbb1['commands']['get']('ckbox')&&_0x59bbb1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x5320e9{['afterInit'](){const _0x13796f=this['editor'];if(!_0x13796f['plugins']['has']('CodeBlock'))return;const _0x346863=_0x13796f['plugins']['get']('TrackChangesEditing'),_0x1f9012=_0x13796f['locale'],_0x199631=_0x13796f['config']['get']('codeBlock')['languages'],_0x3f7cb2=_0x13796f['commands']['get']('codeBlock');_0x346863['enableCommand']('indentCodeBlock'),_0x346863['enableCommand']('outdentCodeBlock'),_0x346863['enableCommand']('codeBlock',(_0x4658fc,_0x979e7d={})=>{const _0xd6695b=_0x13796f['model'],_0x3cbb2c=_0x13796f['model']['document']['selection'],_0x193e09=_0x979e7d&&void 0x0!==_0x979e7d['forceValue']?_0x979e7d['forceValue']:!_0x3f7cb2['value'];let _0x462626;_0x979e7d['language']||(_0x979e7d['language']=_0x199631[0x0]['language']),_0x462626=_0x193e09?Array['from'](_0x3cbb2c['getSelectedBlocks']())['filter'](_0x2d1f5b=>eo(_0x2d1f5b)||function(_0xbda51,_0x58c527){if(_0xbda51['is']('rootElement')||_0x58c527['isLimit'](_0xbda51))return!0x1;return _0x58c527['checkChild'](_0xbda51['parent'],'codeBlock');}(_0x2d1f5b,_0xd6695b['schema'])):Array['from'](_0x3cbb2c['getSelectedBlocks']())['filter'](_0xfc189b=>eo(_0xfc189b));const _0x33f9d2=to(_0x462626,_0xd6695b);_0xd6695b['change'](()=>{for(const _0x5f3b3f of _0x33f9d2)_0x346863['markBlockFormat'](_0x5f3b3f,{'commandName':'codeBlock','commandParams':[{..._0x979e7d,'forceValue':_0x193e09}],'formatGroupId':'blockName'});});}),(_0x346863['descriptionFactory']['registerElementLabel']('codeBlock',_0x4198b1=>o(_0x1f9012,'ELEMENT_CODE_BLOCK',_0x4198b1)),_0x346863['descriptionFactory']['registerDescriptionCallback'](_0x28e6f8=>{if('formatBlock'!=_0x28e6f8['type'])return;const _0x53d777=_0x1f9012['t'],{data:_0x2db644}=_0x28e6f8;if(!_0x2db644||'codeBlock'!=_0x2db644['commandName'])return;const _0x75c186=_0x2db644['commandParams'][0x0]['language'],_0x455c31=_0x53d777(_0x199631['find'](_0x39d412=>_0x39d412['language']===_0x75c186)['label'])['toLowerCase']();return _0x2db644['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f9012,'*Set\x20format:*\x20%0',o(_0x1f9012,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x455c31+')')}:{'type':'format','content':o(_0x1f9012,'*Remove\x20format:*\x20%0',o(_0x1f9012,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5d5bb8){return'codeBlock'==_0x5d5bb8['name'];}class z extends _0x5320e9{['afterInit'](){const _0x174558=this['editor'];if(!_0x174558['plugins']['has']('CommentsEditing'))return;_0x174558['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x43be4a,_0x490503,_0x110bfd){const _0x2f9dda=[];for(const _0x240d54 of _0x490503['getItems']())_0x240d54['hasAttribute'](_0x43be4a)&&_0x2f9dda['push'](_0x110bfd['createRangeOn'](_0x240d54));return _0x2f9dda;}function De(_0x5eb7dc,_0x4bbdf3,{showActiveMarker:_0x323c9a=!0x0}={}){const _0x58a724=_0x5eb7dc['plugins']['get']('TrackChangesEditing');return(_0x17abe7,_0x30b608,_0x10f890)=>{if(!_0x10f890['consumable']['test'](_0x30b608['markerRange'],_0x17abe7['name']))return;const _0x394dc4=_0x30b608['markerRange']['getWalker'](),_0x2dee0e=_0x30b608['markerRange']['start'],_0x12ab4e=_0x5eb7dc['model']['schema'];let _0x307682=null,_0x5af2db=null,_0x581087=!0x1,_0x40d2bd=!0x1;for(const _0x4653a5 of _0x394dc4){const _0x4a0fc7=_0x4653a5['item'];_0x581087=_0x581087||_0x12ab4e['isContent'](_0x4a0fc7);const _0x584454=_0x10f890['mapper']['toViewElement'](_0x4a0fc7);if(_0x584454&&_0x584454['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4653a5['type']&&(_0x12ab4e['isBlock'](_0x4a0fc7)&&!_0x12ab4e['isLimit'](_0x4a0fc7)&&(_0x4a0fc7['nextSibling']||_0x2dee0e['isAtEnd']?_0x307682&&_0x307682['parent']==_0x4a0fc7||(_0x307682=_0x4a0fc7,_0x443652(_0x4653a5['previousPosition']),_0x40d2bd=!0x0):_0x5af2db=_0x5af2db||_0x4653a5['previousPosition']));}function _0x443652(_0x3373f1){const {authorId:_0x260ada}=_0x58a724['_splitMarkerName'](_0x30b608['markerName']),_0x61ad25=_0x10f890['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4bbdf3,'data-author-id':_0x260ada}),_0x36da06=_0x10f890['mapper']['toViewPosition'](_0x3373f1);_0x323c9a&&_0x58a724['activeMarkers']['includes'](_0x30b608['markerName'])&&_0x10f890['writer']['addClass']('ck-suggestion-marker--active',_0x61ad25),_0x10f890['writer']['insert'](_0x36da06,_0x61ad25),_0x10f890['mapper']['bindElementToMarker'](_0x61ad25,_0x30b608['markerName']);}_0x581087||_0x40d2bd||!_0x5af2db||_0x443652(_0x5af2db);};}class K extends _0x5320e9{static get['requires'](){return[_0x1a3ab0];}['init'](){const _0x2f6125=this['editor'],_0x5cb1ac=_0x2f6125['plugins']['get']('TrackChangesEditing');_0x5cb1ac['enableCommand']('delete');const _0x1bf445=_0x2f6125['commands']['get']('deleteForward');_0x5cb1ac['enableCommand']('deleteForward',(_0x497705,_0x43312d={})=>{const _0x204c2a=_0x2f6125['model']['createSelection'](_0x2f6125['model']['document']['selection']);_0x204c2a['isCollapsed']&&_0x2f6125['model']['modifySelection'](_0x204c2a,{'direction':'forward','unit':_0x43312d['unit']});const _0x3d35e0=_0x204c2a['getFirstRange'](),_0xad5a44=_0x125c3e['fromRange'](_0x3d35e0);let _0x4dd1fd;_0x497705(_0x43312d),_0x4dd1fd='$graveyard'==_0xad5a44['root']['rootName']?_0x2f6125['model']['createRange'](_0x3d35e0['start']):_0x2f6125['model']['createRange'](_0xad5a44['start'],_0xad5a44['end']),_0xad5a44['detach'](),_0x2f6125['model']['enqueueChange'](_0x1bf445['buffer']['batch'],_0x5c799f=>{_0x1bf445['buffer']['lock'](),_0x5c799f['setSelection'](_0x5c799f['createRange'](_0x4dd1fd['end'])),_0x1bf445['buffer']['unlock']();});}),_0x2f6125['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x2f6125,'merge'),{'priority':'high'}),_0x2f6125['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x136f7e,_0x327de8,_0x25b05a)=>{_0x25b05a['options']['showSuggestionHighlights']&&De(_0x2f6125,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x136f7e,_0x327de8,_0x25b05a);},{'priority':'high'}),_0x2f6125['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xd7c441,_0x17dcc5,_0x5b188d)=>{const _0x248d97=_0x5b188d['mapper']['markerNameToElements'](_0x17dcc5['markerName']);if(_0x248d97){for(const _0x472ac7 of _0x248d97)_0x472ac7['is']('uiElement')&&(_0x5b188d['mapper']['unbindElementFromMarkerName'](_0x472ac7,_0x17dcc5['markerName']),_0x5b188d['writer']['remove'](_0x472ac7));}},{'priority':'high'});}}class W extends _0x5320e9{['afterInit'](){const _0xfca601=this['editor'];if(!_0xfca601['plugins']['has']('ListEditing'))return;const _0x3dfee9=_0xfca601['locale'],_0xbd4fd8=_0xfca601['plugins']['get']('TrackChangesEditing'),_0x2f577a=_0xfca601['plugins']['has']('TodoListEditing'),_0xd1cded=!!_0xfca601['config']['get']('list.multiBlock');function _0x15f4c3(_0x1ad634){return{'type':'format','content':''+o(_0x3dfee9,'*Set\x20format:*\x20%0',_0x1ad634)};}function _0x274692(_0x4bdf73){return{'type':'format','content':''+o(_0x3dfee9,'*Remove\x20format:*\x20%0',_0x4bdf73)};}_0xbd4fd8['enableDefaultAttributesIntegration']('numberedList'),_0xbd4fd8['enableDefaultAttributesIntegration']('bulletedList'),_0xbd4fd8['enableDefaultAttributesIntegration']('customNumberedList'),_0xbd4fd8['enableDefaultAttributesIntegration']('customBulletedList'),_0xbd4fd8['enableDefaultAttributesIntegration']('indentList'),_0xbd4fd8['enableDefaultAttributesIntegration']('outdentList'),_0xbd4fd8['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xbd4fd8['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xbd4fd8['registerBlockAttribute']('listItemId'),_0xbd4fd8['registerBlockAttribute']('listType'),_0xbd4fd8['registerBlockAttribute']('listIndent'),_0xd1cded&&(_0xbd4fd8['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xbd4fd8['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2f577a&&(_0xbd4fd8['enableDefaultAttributesIntegration']('todoList'),_0xbd4fd8['enableDefaultAttributesIntegration']('checkTodoList'),_0xbd4fd8['registerBlockAttribute']('todoListChecked'),_0xbd4fd8['descriptionFactory']['registerDescriptionCallback'](_0x4fb3d8=>{const {data:_0x2a9624}=_0x4fb3d8;if(_0x2a9624&&'todoListChecked'==_0x2a9624['key'])return{'type':'format','content':_0x2a9624['newValue']?o(_0x3dfee9,'*Check\x20item*'):o(_0x3dfee9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x31ddfb=>{if(_0x31ddfb['batch']['isUndo'])return!0x1;let _0x18e4e1=!0x1;const _0x5c9bef=_0xbd4fd8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x288852=>'todoListChecked'===_0xbd4fd8['_getAttributeKey'](_0x288852));for(const _0x5efb7f of _0x5c9bef){'todo'!=_0x5efb7f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xbd4fd8['_findSuggestions'](_0x5efb7f['getFirstRange'](),'attribute')['find'](_0x280c50=>'listType'===_0xbd4fd8['_getAttributeKey'](_0x280c50['suggestion']))||(_0x31ddfb['removeMarker'](_0x5efb7f['getFirstMarker']()),_0x18e4e1=!0x0));}return _0x18e4e1;})),_0xbd4fd8['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3dfee9,'FORMAT_INDENT'));const _0x169b94={'type':'format','content':''};_0xbd4fd8['descriptionFactory']['registerDescriptionCallback'](_0x5248e9=>{const {data:_0xb6e1c4}=_0x5248e9;if(!_0xb6e1c4||'listType'!=_0xb6e1c4['key'])return;let _0x5ee821=_0x5248e9['head'];for(;_0x5ee821;){if(_0x5ee821['data']&&(('listStyle'==_0x5ee821['data']['key']||'listMarkerStyle'==_0x5ee821['data']['key'])&&(_0x5ee821['data']['newValue']&&'default'!=_0x5ee821['data']['newValue']||'default'!=_0x5ee821['data']['oldValue']&&!_0xb6e1c4['newValue'])||!_0xd1cded&&_0x5ee821['data']['key']==m))return _0x169b94;_0x5ee821=_0x5ee821['next'];}if(null==_0xb6e1c4['newValue'])switch(_0xb6e1c4['oldValue']){case'bulleted':return _0x274692(o(_0x3dfee9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x274692(o(_0x3dfee9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x274692(o(_0x3dfee9,'ELEMENT_TODO_LIST'));}switch(_0xb6e1c4['newValue']){case'bulleted':return _0x15f4c3(o(_0x3dfee9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15f4c3(o(_0x3dfee9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15f4c3(o(_0x3dfee9,'ELEMENT_TODO_LIST'));}}),_0xbd4fd8['descriptionFactory']['registerDescriptionCallback'](_0x41cbd7=>{const {data:_0x464bb7}=_0x41cbd7;if(_0x464bb7&&'listIndent'==_0x464bb7['key'])return null==_0x464bb7['newValue']||null==_0x464bb7['oldValue']&&0x0==_0x464bb7['newValue']?_0x169b94:void 0x0;}),_0xbd4fd8['descriptionFactory']['registerDescriptionCallback'](_0x38ed66=>{if('attribute'!=_0x38ed66['type'])return;const {data:_0x8d48bb}=_0x38ed66;if(!_0x8d48bb||'listItemId'!=_0x8d48bb['key'])return;const _0x74062=Te(_0x38ed66);return'newValue'==_0x74062?{'type':'format','content':o(_0x3dfee9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x74062?{'type':'format','content':o(_0x3dfee9,'*Split:*\x20list\x20item')}:_0x169b94;}),_0xfca601['model']['document']['registerPostFixer'](_0x2ba9b2=>this['listItemIdFixer'](_0x2ba9b2)),_0xfca601['model']['document']['registerPostFixer'](_0x53c2c0=>this['noTrackChangesFixer'](_0x53c2c0)),_0xfca601['model']['document']['on']('change:data',(_0x281d3b,_0x12cbeb)=>{if(_0x12cbeb['isUndo']||!_0x12cbeb['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x19e1de){if(_0x19e1de['batch']['isUndo']||!_0x19e1de['batch']['isLocal'])return!0x1;let _0x146738=!0x1;const _0x3038ef=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9e4c04=>_0x9e4c04['data']&&'listItemId'==_0x9e4c04['data']['key'])['filter'](_0x1dae6f=>_0x1dae6f['data']['newValue']&&_0x1dae6f['data']['oldValue']);for(const _0x44656e of _0x3038ef)Te(_0x44656e)||(_0x19e1de['removeMarker'](_0x44656e['getFirstMarker']()),_0x146738=!0x0);return _0x146738;}['noTrackChangesFixer'](_0x40732b){if(_0x40732b['batch']['isUndo']||!_0x40732b['batch']['isLocal'])return!0x1;const _0x422bb7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x422bb7['trackChangesCommand']['value'])return!0x1;let _0x212f0e=!0x1;const _0x4880fb=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3acc48=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x301f4c=>'attribute'==_0x301f4c['type'])['filter'](_0x4726be=>_0x4880fb['includes'](_0x4726be['attributeKey']));if(0x0==_0x3acc48['length'])return _0x212f0e;for(const _0x12b4ec of _0x3acc48){const _0x1cbc82=_0x422bb7['_findSuggestions'](_0x12b4ec['range'],'attribute')['filter'](_0x840d57=>!_0x840d57['meta']['isNextTo'])['map'](_0x12d644=>_0x12d644['suggestion'])['filter'](_0x5b4f1c=>{const _0x2a34f4=_0x422bb7['_getAttributeKey'](_0x5b4f1c);return _0x4880fb['includes'](_0x2a34f4);});if(_0x1cbc82['length']){for(const _0x2cc833 of _0x1cbc82)_0x40732b['removeMarker'](_0x2cc833['getFirstMarker']());_0x212f0e=!0x0;}}return _0x212f0e;}['assureChains'](){const _0x3155eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x537536=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x58faaa;const _0x58fd8e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x245801=>{if(_0x245801['data']['oldRange']||!_0x245801['data']['newRange'])return null;if(!_0x245801['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4f5d5c}=_0x3155eb['_splitMarkerName'](_0x245801['name']);if(!_0x3155eb['hasSuggestion'](_0x4f5d5c))return null;const _0x4f5247=_0x3155eb['getSuggestion'](_0x4f5d5c);return _0x537536['includes'](_0x4f5247['data']['key']);})['map'](_0x473953=>{const {id:_0x236254}=_0x3155eb['_splitMarkerName'](_0x473953['name']),_0x9acf52=_0x3155eb['getSuggestion'](_0x236254);return _0x58faaa=_0x9acf52['attributes']['groupId'],_0x9acf52['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x58fd8e['size'])return;const _0x22d7b3=_0x3155eb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x323d24=>'attribute'==_0x323d24['type']&&_0x323d24['data']&&_0x537536['includes'](_0x323d24['data']['key'])&&_0x323d24['attributes']['groupId']!=_0x58faaa)['map'](_0x433df3=>({'listItem':_0x433df3['getFirstRange']()['start']['nodeAfter'],'groupId':_0x433df3['attributes']['groupId']})),_0x18fee1=new Set();for(const {groupId:_0x3764fd,listItem:_0x5366b5}of _0x22d7b3)_0x58fd8e['has'](_0x5366b5)&&_0x18fee1['add'](_0x3764fd);for(const _0x2981e9 of _0x3155eb['getSuggestions']())_0x18fee1['has'](_0x2981e9['attributes']['groupId'])&&_0x2981e9['setAttribute']('groupId',_0x58faaa);}['_supportLegacySuggestions'](){const _0xb543ab=this['editor'],_0x50b9dc=_0xb543ab['locale'],_0x36bb64=_0xb543ab['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x36bb64['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2b6304,_0x5518cf){const _0x1461fa=[];for(let _0x3e7c8f of _0x2b6304)_0x3e7c8f['start']['nodeAfter']===_0x3e7c8f['end']['parent']&&(_0x3e7c8f=_0xb543ab['model']['createRange'](_0xb543ab['model']['createPositionAt'](_0x3e7c8f['start']['nodeAfter'],0x0))),_0x1461fa['push'](_0x3e7c8f);_0xb543ab['model']['change'](_0x42b6f5=>{const _0x1d658f=_0xb543ab['model']['document']['selection'],_0x13feae=Array['from'](_0x1d658f['getRanges']())['map'](_0x15dadd=>_0x125c3e['fromRange'](_0x15dadd));_0x42b6f5['setSelection'](_0x1461fa),_0xb543ab['commands']['get'](_0x5518cf['commandName'])['refresh'](),_0x5518cf['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xb543ab['execute'](_0x5518cf['commandName'],..._0x5518cf['commandParams']),_0x42b6f5['setSelection'](_0x13feae);for(const _0x156485 of _0x13feae)_0x156485['detach']();});}),_0x36bb64['descriptionFactory']['registerElementLabel'](function(_0x12a4da){const _0x3c083c=!_0xb543ab['model']['schema']['isObject'](_0x12a4da),_0x1aed6b=_0x12a4da['previousSibling'],_0x55b168=_0x12a4da['nextSibling'],_0x59ac5d=_0x12a4da['getAttribute']('listItemId'),_0x325b5a=!_0x1aed6b||_0x1aed6b['getAttribute']('listItemId')!==_0x59ac5d,_0x2f6105=!_0x55b168||_0x55b168['getAttribute']('listItemId')!==_0x59ac5d;return _0x3c083c&&Boolean(_0x59ac5d)&&_0x325b5a&&_0x2f6105;},_0x262081=>o(_0x50b9dc,'ELEMENT_LIST_ITEM',_0x262081));}['_registerLegacyDescription'](){const _0x5558f3=this['editor'],_0x4c1ab4=_0x5558f3['locale'];function _0x13a762(_0x169133){const _0x59815d=_0x5558f3['commands']['get']('bulletedList')['value'],_0x542207=_0x5558f3['commands']['get']('numberedList')['value'];return'numberedList'===_0x169133?_0x59815d:_0x542207;}_0x5558f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3c4eea){if('formatBlock'!=_0x3c4eea['type'])return;const {data:_0x152e0d}=_0x3c4eea;if(!_0x152e0d)return;let _0x166864,_0x50fe94,_0x1ff3c7,_0x34b544;switch(_0x152e0d['commandName']){case'bulletedList':_0x1ff3c7=_0x152e0d['commandParams'][0x0]['forceValue'],_0x34b544=_0x13a762(_0x152e0d['commandName']),_0x166864=_0x1ff3c7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x34b544&&_0x5558f3['config']['get']('list.multiBlock')||(_0x166864='*Change\x20to:*\x20%0'),_0x50fe94={'type':'format','content':o(_0x4c1ab4,_0x166864,o(_0x4c1ab4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1ff3c7=_0x152e0d['commandParams'][0x0]['forceValue'],_0x34b544=_0x13a762(_0x152e0d['commandName']),_0x166864=_0x1ff3c7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x34b544&&_0x5558f3['config']['get']('list.multiBlock')||(_0x166864='*Change\x20to:*\x20%0'),_0x50fe94={'type':'format','content':o(_0x4c1ab4,_0x166864,o(_0x4c1ab4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x166864='*Indent:*\x20%0',_0x50fe94={'type':'format','content':o(_0x4c1ab4,_0x166864,o(_0x4c1ab4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x166864=function(_0x38232d){const _0x336f07=_0x38232d['getFirstRange']();let _0x144ac9=_0x336f07['start']['nodeAfter'];for(;_0x144ac9&&_0x336f07['containsItem'](_0x144ac9);){if(_0x144ac9['getAttribute']('listIndent')>0x0)return!0x1;_0x144ac9=_0x144ac9['nextSibling'];}return!0x0;}(_0x3c4eea)?o(_0x4c1ab4,'*Format:*\x20remove\x20from\x20%0',o(_0x4c1ab4,function(_0x361e92){return'ELEMENT_'+_0x361e92['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3c4eea))):o(_0x4c1ab4,'*Outdent:*\x20%0',o(_0x4c1ab4,'ELEMENT_LIST_ITEM')),_0x50fe94={'type':'format','content':_0x166864};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x152e0d['multipleBlocks']&&(_0x166864='*Merge:*\x20%0',_0x50fe94={'type':'deletion','content':o(_0x4c1ab4,_0x166864,o(_0x4c1ab4,'ELEMENT_LIST_ITEM'))});}return _0x50fe94;});}}function Te(_0x47c008){let _0xee5b59=_0x47c008['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xee5b59;){const _0x36e253=_0xee5b59['getAttribute']('listItemId');if(!_0x36e253)return!0x1;if(_0x36e253==_0x47c008['data']['newValue'])return'newValue';if(_0x36e253==_0x47c008['data']['oldValue'])return'oldValue';_0xee5b59=_0xee5b59['previousSibling'];}return!0x1;}class Se extends _0x5320e9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x540bea=this['editor']['config']['get']('list.properties'),_0x15b66f=this['editor']['plugins']['get']('TrackChangesEditing');_0x540bea['styles']&&(_0x15b66f['enableDefaultAttributesIntegration']('listStyle'),_0x15b66f['registerBlockAttribute']('listStyle')),_0x540bea['reversed']&&(_0x15b66f['enableDefaultAttributesIntegration']('listReversed'),_0x15b66f['registerBlockAttribute']('listReversed')),_0x540bea['startIndex']&&(_0x15b66f['enableDefaultAttributesIntegration']('listStart'),_0x15b66f['registerBlockAttribute']('listStart'));const _0x578ef5={'type':'format','content':''};_0x15b66f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x31351f=this['editor']['locale'];_0x15b66f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x31351f,'FORMAT_LIST_REVERSED')),_0x15b66f['descriptionFactory']['registerDescriptionCallback'](_0x66823c=>{const {data:_0x176c40}=_0x66823c;if(_0x176c40&&'listReversed'==_0x176c40['key'])return null==_0x176c40['newValue']||0x0==_0x176c40['newValue']&&null==_0x176c40['oldValue']?_0x578ef5:void 0x0;}),_0x15b66f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x31351f,'FORMAT_LIST_START')),_0x15b66f['descriptionFactory']['registerDescriptionCallback'](_0x1bc7db=>{const {data:_0x4650a5}=_0x1bc7db;if(_0x4650a5&&'listStart'==_0x4650a5['key'])return null==_0x4650a5['newValue']||0x1==_0x4650a5['newValue']&&null==_0x4650a5['oldValue']?_0x578ef5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x313c55=>{if(_0x313c55['batch']['isUndo'])return!0x1;let _0x37a26f=!0x1;const _0x389b7b=_0x15b66f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x325a87=>{const _0x19b9db=_0x15b66f['_getAttributeKey'](_0x325a87);return'listStart'==_0x19b9db||'listReversed'==_0x19b9db;});for(const _0x98feac of _0x389b7b){const _0x5c0590=_0x98feac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5c0590||'customNumbered'==_0x5c0590)continue;_0x15b66f['_findSuggestions'](_0x98feac['getFirstRange'](),'attribute')['find'](_0x30dc02=>'listType'==_0x15b66f['_getAttributeKey'](_0x30dc02['suggestion']))||(_0x313c55['removeMarker'](_0x98feac['getFirstMarker']()),_0x37a26f=!0x0);}return _0x37a26f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4428b1){const _0x255c29=this['editor']['locale'],{data:_0x487201}=_0x4428b1,_0xda75fc={'type':'format','content':''};if(!_0x487201||'listStyle'!=_0x487201['key'])return;if(!_0x487201['oldValue'])return'default'==_0x487201['newValue']?_0xda75fc:{'type':'format','content':''+o(_0x255c29,'*Set\x20format:*\x20%0',o(_0x255c29,this['_getTranslationKeyForListStyle'](_0x487201['newValue'])))};if(!_0x487201['newValue']){if('default'==_0x487201['oldValue'])return _0xda75fc;let _0x583aeb=_0x4428b1['head'];for(;_0x583aeb;){if(_0x583aeb['data']&&'listType'==_0x583aeb['data']['key']&&_0x583aeb['data']['newValue'])return _0xda75fc;_0x583aeb=_0x583aeb['next'];}return{'type':'format','content':''+o(_0x255c29,'*Remove\x20format:*\x20%0',o(_0x255c29,this['_getTranslationKeyForListStyle'](_0x487201['oldValue'])))};}if('default'!=_0x487201['newValue'])return{'type':'format','content':''+o(_0x255c29,'*Set\x20format:*\x20%0',o(_0x255c29,this['_getTranslationKeyForListStyle'](_0x487201['newValue'])))};let _0x169638=_0x4428b1['head'];for(;_0x169638;){if(_0x169638['data']&&'listType'==_0x169638['data']['key']&&_0x169638['data']['newValue']&&_0x169638['data']['oldValue'])return _0xda75fc;_0x169638=_0x169638['next'];}return{'type':'format','content':o(_0x255c29,'*Set\x20format:*\x20%0',o(_0x255c29,'ELEMENT_'+_0x4428b1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4089f9=this['editor'],_0x30e8ab=_0x4089f9['locale'];_0x4089f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x528df4=>{if('formatBlock'!=_0x528df4['type'])return;const {data:_0x420bec}=_0x528df4;if(!_0x420bec)return;let _0x2208a1,_0x249ec3;switch(_0x420bec['commandName']){case'listStyle':_0x2208a1='*Change\x20to:*\x20%0',_0x249ec3={'type':'format','content':o(_0x30e8ab,_0x2208a1,o(_0x30e8ab,this['_getTranslationKeyForListStyle'](_0x420bec['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2208a1=_0x420bec['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x249ec3={'type':'format','content':o(_0x30e8ab,_0x2208a1)};break;case'listStart':_0x2208a1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x249ec3={'type':'format','content':o(_0x30e8ab,_0x2208a1,_0x420bec['commandParams'][0x0]['startIndex'])};}return _0x249ec3;});}['_getTranslationKeyForListStyle'](_0x51d2fb){return'ELEMENT_'+function(_0x9834af){if(_e['includes'](_0x9834af))return'bulleted';if(Re['includes'](_0x9834af))return'numbered';return null;}(_0x51d2fb)['toUpperCase']()+'_LIST_'+_0x51d2fb['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5320e9{['afterInit'](){const _0x84a5c0=this['editor'];_0x84a5c0['commands']['get']('emoji')&&_0x84a5c0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5320e9{static get['requires'](){return[_0x5a0bdd];}['init'](){const _0x344081=this['editor'],_0xaf156e=_0x344081['plugins']['get']('TrackChangesEditing'),_0x5c9d57=_0x344081['commands']['get']('enter');_0xaf156e['enableCommand']('enter',()=>{_0x344081['model']['change'](_0x1a39b3=>{const _0x189476=_0x344081['model']['document']['selection'],_0x2ebb7b=_0x189476['getFirstPosition'](),_0x4e569=_0x125c3e['fromRange'](_0x189476['getFirstRange']());if(_0x5c9d57['enterBlock'](_0x1a39b3)){const _0x3bfca6=_0x344081['model']['createPositionAt'](_0x2ebb7b['parent']['nextSibling'],0x0),_0x5490a1=_0x1a39b3['createRange'](_0x2ebb7b,_0x3bfca6);_0xaf156e['markInsertion'](_0x5490a1);}else _0x1a39b3['setSelection'](_0x1a39b3['createRange'](_0x4e569['end']));_0x4e569['detach'](),_0x5c9d57['fire']('afterExecute',{'writer':_0x1a39b3});});}),_0x344081['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x344081,'split'),{'priority':'high'}),_0x344081['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4155a4,_0x5334a7,_0x4a6d2b)=>{const _0xabd5cd=_0x4a6d2b['mapper']['markerNameToElements'](_0x5334a7['markerName']);if(_0xabd5cd){for(const _0x34205e of _0xabd5cd)_0x34205e['hasClass']('ck-suggestion-marker-split')&&(_0x4a6d2b['mapper']['unbindElementFromMarkerName'](_0x34205e,_0x5334a7['markerName']),_0x4a6d2b['writer']['remove'](_0x34205e));}},{'priority':'high'}),_0x344081['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4e26fc,_0x5740c6,_0x4cac75)=>{_0x4cac75['options']['showSuggestionHighlights']&&De(_0x344081,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4e26fc,_0x5740c6,_0x4cac75);},{'priority':'high'});}}class Z extends _0x5320e9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2b950c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b950c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2b950c['enableCommand']('findNext'),_0x2b950c['enableCommand']('findPrevious'),_0x2b950c['enableCommand']('replace'),_0x2b950c['enableCommand']('replaceAll');}['handleFindCommand'](_0x36392e,_0x57fb2f,_0x93e4b5={}){const _0x5aea30=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x36392e(_0x1a9891=>{let _0x5b2b2c=('string'==typeof _0x57fb2f?_0x5aea30['findByTextCallback'](_0x57fb2f,_0x93e4b5):_0x57fb2f)(_0x1a9891);Array['isArray'](_0x5b2b2c)&&(_0x5b2b2c={'results':_0x5b2b2c,'searchText':'string'==typeof _0x57fb2f?_0x57fb2f:''});const _0x31486c=_0x5b2b2c['results']['filter'](_0x23cf2f=>!0x1===this['_isInDeletionRange'](_0x23cf2f,_0x1a9891['item']));return{..._0x5b2b2c,'results':_0x31486c};},_0x93e4b5);}['_isInDeletionRange'](_0x4207ae,_0x1e83ef){const _0x1c7fe0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e83ef,_0x4207ae['start']),this['editor']['model']['createPositionAt'](_0x1e83ef,_0x4207ae['end']));for(const _0x1284b2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1c7fe0['getIntersection'](_0x1284b2['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x5320e9{['afterInit'](){const _0xba6a9d=this['editor']['locale'],_0x484c2b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5f35ee,commandName:_0x1cb801}of ro)this['editor']['plugins']['has'](_0x5f35ee)&&(_0x484c2b['enableDefaultAttributesIntegration'](_0x1cb801),_0x484c2b['registerInlineAttribute'](_0x1cb801));_0x484c2b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xba6a9d,'FORMAT_FONT_SIZE')),_0x484c2b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xba6a9d,'FORMAT_FONT_FAMILY')),_0x484c2b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xba6a9d,'FORMAT_FONT_COLOR')),_0x484c2b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xba6a9d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b46df=this['editor'],_0x184cfe=_0x3b46df['locale'];_0x3b46df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c658a=>{const _0x481f2c=_0x184cfe['t'];if('formatInline'!=_0x2c658a['type'])return;const {data:_0xc65474}=_0x2c658a;if(null!=_0xc65474){if('fontSize'==_0xc65474['commandName']){const _0x475378=_0xc65474['commandParams'][0x0]['value'];if(_0x475378){const _0x5edbd5=_0x481f2c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x36f0b3=>_0x36f0b3['model']==_0x475378)['title'])['toLowerCase']();return{'type':'format','content':o(_0x184cfe,'*Set\x20font\x20size:*\x20%0',_0x5edbd5)};}return{'type':'format','content':o(_0x184cfe,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xc65474['commandName']){const _0x386d2d=_0xc65474['commandParams'][0x0]['value'];return _0x386d2d?{'type':'format','content':o(_0x184cfe,'*Set\x20font\x20family:*\x20%0',_0x386d2d)}:{'type':'format','content':o(_0x184cfe,'*Reset\x20font\x20family*')};}if('fontColor'==_0xc65474['commandName']){const _0xe36a43=_0xc65474['commandParams'][0x0]['value'];if(_0xe36a43){const _0x567686=_0x40a360(this['editor']['config']['get']('fontColor.colors'))['find'](_0x21e64e=>_0x21e64e['model']==_0xe36a43);let _0x33c976=_0xe36a43,_0x1e660a='';return _0x567686&&(_0x33c976=_0x567686['label'],_0x1e660a=_0x481f2c(_0x33c976)['toLowerCase']()),{'type':'format','content':o(_0x184cfe,'*Set\x20font\x20color:*\x20%0',_0x1e660a)['trim'](),'color':{'value':_0xe36a43,'title':_0x1e660a||_0x33c976}};}return{'type':'format','content':o(_0x184cfe,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xc65474['commandName']){const _0x52839f=_0xc65474['commandParams'][0x0]['value'];if(_0x52839f){const _0x37f6d4=_0x40a360(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2539ea=>_0x2539ea['model']==_0x52839f);let _0x2fa1b4=_0x52839f,_0x4fecb2='';return _0x37f6d4&&(_0x2fa1b4=_0x37f6d4['label'],_0x4fecb2=_0x481f2c(_0x2fa1b4)['toLowerCase']()),{'type':'format','content':o(_0x184cfe,'*Set\x20font\x20background\x20color:*\x20%0',_0x4fecb2)['trim'](),'color':{'value':_0x52839f,'title':_0x4fecb2||_0x2fa1b4}};}return{'type':'format','content':o(_0x184cfe,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x5320e9{['afterInit'](){const _0x372ded=this['editor'],_0x5e3003=_0x372ded['plugins']['get']('TrackChangesEditing'),_0xa484d9=_0x372ded['commands']['get']('copyFormat'),_0x595f54=_0x372ded['commands']['get']('pasteFormat');_0xa484d9&&_0x595f54&&(_0x5e3003['enableDefaultAttributesIntegration']('pasteFormat'),_0x5e3003['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3147d8=this['editor'],_0xf42ed1=_0x3147d8['locale'];_0x3147d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c86fd=>{if('formatBlock'!=_0x2c86fd['type']&&'formatInline'!=_0x2c86fd['type'])return;const {data:_0x2029dd}=_0x2c86fd;if(_0x2029dd&&'pasteFormat'===_0x2029dd['commandName']){const _0x56064a=[],_0x242b95=_0x2029dd['commandParams'][0x0];for(const [_0x371671,_0x10caa1]of Object['entries'](_0x242b95))_0x56064a['push'](so(_0x3147d8,_0x371671,_0x10caa1));return _0x56064a['length']?{'type':'format','content':o(_0xf42ed1,'*Set\x20format\x20to:*\x20%0',_0x56064a['join'](',\x20'))}:{'type':'format','content':o(_0xf42ed1,'*Remove\x20all\x20formatting*')};}});}}function so(_0x541b38,_0x50bd6a,_0x245f5a){const _0x1e8ce3=_0x541b38['locale']['t'],_0x5b3fa7=_0x50bd6a['split'](/(?=[A-Z])/)['join']('\x20'),_0x1d9555=_0x1e8ce3(_0x5b3fa7['charAt'](0x0)['toUpperCase']()+_0x5b3fa7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x245f5a)return _0x1d9555;if('fontColor'===_0x50bd6a||'fontBackgroundColor'===_0x50bd6a){const _0x4c1da4=_0x40a360(_0x541b38['config']['get']('fontColor.colors'))['find'](_0x196b22=>_0x196b22['model']==_0x245f5a);return _0x1d9555+'\x20('+(_0x4c1da4?_0x1e8ce3(_0x4c1da4['label'])['toLowerCase']():_0x245f5a)+')';}if('fontSize'===_0x50bd6a&&isNaN(parseFloat(_0x245f5a))){const _0x557de5=_0x541b38['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x541b38['config']['get']('fontSize.options'))['find'](_0x49a4b2=>_0x49a4b2['model']==_0x245f5a);return _0x1d9555+'\x20('+(_0x557de5?_0x1e8ce3(_0x557de5['title'])['toLowerCase']():_0x245f5a)+')';}return _0x1d9555+'\x20('+_0x245f5a+')';}class it extends _0x5320e9{['_headingOptions'];['afterInit'](){const _0x421fc8=this['editor'];if(!_0x421fc8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x421fc8['config']['get']('heading.options');const _0x4aa9e2=_0x421fc8['locale'],_0x4d0f7e=_0x421fc8['plugins']['get']('TrackChangesEditing');_0x4d0f7e['enableDefaultAttributesIntegration']('heading');for(const _0x535907 of this['_headingOptions'])'paragraph'!=_0x535907['model']&&_0x4d0f7e['descriptionFactory']['registerElementLabel'](_0x535907['model'],_0x333dfc=>{const _0x16018b=this['_getHeadingLevel'](_0x535907['model']);return null!==_0x16018b?_0x1ce172(_0x333dfc,_0x16018b):_0x81526a(_0x333dfc,_0x535907['title']);});function _0x1ce172(_0x2a52c2,_0x8f0abd){return o(_0x4aa9e2,'ELEMENT_HEADING',[_0x2a52c2,_0x8f0abd]);}function _0x81526a(_0x4f83b5,_0x19eb27){return o(_0x4aa9e2,'ELEMENT_HEADING_CUSTOM',[_0x4f83b5,_0x19eb27]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b457f=this['editor'],_0xabda94=_0x2b457f['locale'];function _0x54cc98(_0x319620,_0x2509b9){return o(_0xabda94,'ELEMENT_HEADING_CUSTOM',[_0x319620,_0x2509b9]);}_0x2b457f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e46c5=>{if('formatBlock'!=_0x3e46c5['type'])return;const {data:_0x20c17c}=_0x3e46c5;if(_0x20c17c&&'heading'==_0x20c17c['commandName']){const _0x1c5d75=_0x20c17c['commandParams'][0x0]['value'],_0x214120=this['_getHeadingLevel'](_0x1c5d75);if(null!==_0x214120)return{'type':'format','content':o(_0xabda94,'*Change\x20to:*\x20%0',(_0x31db10=0x1,_0x3bb582=_0x214120,o(_0xabda94,'ELEMENT_HEADING',[_0x31db10,_0x3bb582])))};const _0x52e7d9=this['_headingOptions']['find'](_0x2370d7=>_0x2370d7['model']===_0x1c5d75)['title'];return{'type':'format','content':o(_0xabda94,'*Change\x20to:*\x20%0',_0x54cc98(0x1,_0x52e7d9))};}var _0x31db10,_0x3bb582;});}['_getHeadingLevel'](_0xea08a6){const _0x10b034=_0xea08a6['match'](/^heading(\d+)/);if(_0x10b034)return _0x10b034[0x1];const _0x38fa08=this['_headingOptions']?.['find'](_0xb336e3=>_0xb336e3['model']==_0xea08a6);if(_0x38fa08&&_0x38fa08['view']){const _0x472ecf=_0x38fa08['view'],_0x18882d=(_0x472ecf['name']??_0x472ecf)['match'](/^h(\d+)/);if(_0x18882d)return _0x18882d[0x1];}return null;}}class et extends _0x5320e9{['afterInit'](){const _0x44d28f=this['editor'];if(!_0x44d28f['plugins']['has']('HighlightEditing'))return;const _0x18daab=_0x44d28f['plugins']['get']('TrackChangesEditing'),_0x513570=_0x44d28f['locale'];_0x18daab['enableDefaultAttributesIntegration']('highlight'),_0x18daab['registerInlineAttribute']('highlight'),_0x18daab['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x513570,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c8fc8=this['editor'],_0x1f4850=_0x1c8fc8['locale'];_0x1c8fc8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18935e=>{if('formatInline'!=_0x18935e['type'])return;const {data:_0x1dfb76}=_0x18935e;if(_0x1dfb76&&'highlight'==_0x1dfb76['commandName']){const _0x1aaaa1=_0x1f4850['t'],_0x6992dd=_0x1dfb76['commandParams'][0x0]['value'];if(_0x6992dd){const _0x46d7d2=_0x1c8fc8['config']['get']('highlight.options')['find'](_0x29eda2=>_0x29eda2['model']==_0x6992dd),_0x56d796=_0x1aaaa1(_0x46d7d2['title'])['toLowerCase']();return{'type':'format','content':o(_0x1f4850,'*Set\x20highlight:*\x20%0',_0x56d796),'color':{'value':_0x46d7d2['color'],'title':_0x46d7d2['title']}};}return{'type':'format','content':o(_0x1f4850,'*Remove\x20highlight*',o(_0x1f4850,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5320e9{['afterInit'](){const _0x43f5b8=this['editor'];if(!_0x43f5b8['plugins']['has']('HorizontalLineEditing'))return;_0x43f5b8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1bb28e=_0x43f5b8['plugins']['get']('TrackChangesEditing'),_0x235259=_0x43f5b8['locale'];_0x1bb28e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x485eb2=>o(_0x235259,'ELEMENT_HORIZONTAL_LINE',_0x485eb2)),_0x43f5b8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3c00f8,{writer:_0xd15434,options:_0x2ae7d3})=>{if(!_0x2ae7d3['showSuggestionHighlights'])return null;const _0x21e4d5=_0xd15434['createContainerElement']('div'),_0x489efd=_0xd15434['createEmptyElement']('hr');return _0xd15434['addClass']('ck-horizontal-line',_0x21e4d5),_0xd15434['insert'](_0xd15434['createPositionAt'](_0x21e4d5,0x0),_0x489efd),_0x21e4d5;},'converterPriority':'high'});}}class ot extends _0x5320e9{['afterInit'](){const _0x377114=this['editor'];if(!_0x377114['plugins']['has']('HtmlEmbed'))return;const _0x1cba5a=_0x377114['plugins']['get']('TrackChangesEditing'),_0x528a71=_0x377114['locale'];_0x1cba5a['descriptionFactory']['registerElementLabel']('rawHtml',_0x2dc1dc=>o(_0x528a71,'ELEMENT_HTML_EMBED',_0x2dc1dc)),_0x1cba5a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1cba5a['registerBlockAttribute']('value'),_0x1cba5a['descriptionFactory']['registerDescriptionCallback'](_0x2e3edc=>{if('attribute'!=_0x2e3edc['type'])return;const {data:_0x587e2a}=_0x2e3edc;if(_0x587e2a&&'value'==_0x587e2a['key']&&_0x2e3edc['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x360646=o(_0x528a71,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x528a71,'*Change\x20%0\x20content*',_0x360646)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b79d7=this['editor'],_0x5a877c=_0x5b79d7['locale'];_0x5b79d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x387b1a=>{if('formatBlock'!=_0x387b1a['type'])return;const {data:_0x1a2881}=_0x387b1a;if(_0x1a2881&&'htmlEmbed'==_0x1a2881['commandName']){const _0xcd9dda=o(_0x5a877c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5a877c,'*Change\x20%0\x20content*',_0xcd9dda)};}});}}class rt extends _0x5320e9{['afterInit'](){const _0x13d3a0=this['editor'];if(!_0x13d3a0['plugins']['has']('ImageEditing'))return;const _0x9c734c=_0x13d3a0['plugins']['get']('TrackChangesEditing'),_0x5a5b16=_0x13d3a0['plugins']['get']('ImageUtils'),_0xa21583=_0x13d3a0['locale'];_0x9c734c['enableCommand']('insertImage'),_0x9c734c['descriptionFactory']['registerElementLabel']('imageBlock',_0x2bfbe2=>o(_0xa21583,'ELEMENT_IMAGE',_0x2bfbe2)),_0x9c734c['descriptionFactory']['registerElementLabel']('imageInline',_0x402a4c=>o(_0xa21583,'ELEMENT_INLINE_IMAGE',_0x402a4c)),_0x9c734c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xa21583,'ELEMENT_CAPTION')),_0x13d3a0['plugins']['has']('ImageUploadEditing')&&_0x9c734c['enableCommand']('uploadImage'),_0x13d3a0['plugins']['has']('ImageBlockEditing')&&_0x13d3a0['plugins']['has']('ImageInlineEditing')&&(_0x9c734c['enableCommand']('imageTypeInline',(_0x437a47,_0x24d9c5)=>{const _0xa0abc2=_0x5a5b16['getClosestSelectedImageElement'](_0x13d3a0['model']['document']['selection']);_0x13d3a0['model']['change'](()=>{_0x9c734c['markBlockFormat'](_0xa0abc2,{'commandName':'imageTypeInline','commandParams':[_0x24d9c5]},[],'convertBlockImageToInline');});}),_0x9c734c['enableCommand']('imageTypeBlock',(_0x4947d3,_0x432fe9)=>{_0x13d3a0['model']['change'](_0x73ee61=>{let _0x176dcf=_0x5a5b16['getClosestSelectedImageElement'](_0x13d3a0['model']['document']['selection']),_0x56f3cc=_0x73ee61['createRangeOn'](_0x176dcf);const _0x3eb616=_0x519fea['fromPosition'](_0x56f3cc['start'],'toPrevious'),_0x38b9d4=_0x519fea['fromPosition'](_0x56f3cc['end'],'toNext');_0x9c734c['forceDefaultExecution'](()=>_0x4947d3(_0x432fe9)),_0x176dcf=_0x5a5b16['getClosestSelectedImageElement'](_0x13d3a0['model']['document']['selection']),_0x56f3cc=_0x73ee61['createRangeOn'](_0x176dcf);const _0x481590=_0x73ee61['createRange'](_0x3eb616,_0x38b9d4);_0x3eb616['detach'](),_0x38b9d4['detach'](),_0x9c734c['markBlockFormat'](_0x176dcf,{'commandName':'imageTypeInline','commandParams':[_0x432fe9]},[],'convertInlineImageToBlock'),_0x481590['start']['isBefore'](_0x56f3cc['start'])&&_0x9c734c['markInsertion'](_0x73ee61['createRange'](_0x481590['start'],_0x56f3cc['start']),'convertInlineImageToBlock'),_0x56f3cc['end']['isBefore'](_0x481590['end'])&&_0x9c734c['markInsertion'](_0x73ee61['createRange'](_0x56f3cc['end'],_0x481590['end']),'convertInlineImageToBlock');});}),_0x9c734c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x9c734c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x9c734c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x9c734c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x9c734c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x9c734c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x92d229])=>{const _0x12d36e=_0x9c734c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xe9b839=_0x92d229['start'],_0x168f00=_0x92d229['end'];const _0x27caea=_0x13d3a0['model']['schema']['getNearestSelectionRange'](_0xe9b839,'backward'),_0x1b7c77=_0x13d3a0['model']['schema']['getNearestSelectionRange'](_0x168f00,'forward');_0x27caea['isCollapsed']&&(_0xe9b839=_0x27caea['start']),_0x1b7c77['isCollapsed']&&(_0x168f00=_0x1b7c77['end']),_0x12d36e([_0x13d3a0['model']['createRange'](_0xe9b839,_0x168f00)]);}),_0x9c734c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x265de0),_0x9c734c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x265de0)),_0x13d3a0['plugins']['has']('ImageCaptionEditing')&&(_0x9c734c['enableCommand']('toggleImageCaption',(_0x5c908b,_0x456c07)=>{const _0x1094c7=_0x13d3a0['plugins']['get']('ImageCaptionUtils');let _0x4169b7=_0x5a5b16['getClosestSelectedImageElement'](_0x13d3a0['model']['document']['selection']),_0x5a77e7=_0x1094c7['getCaptionFromImageModelElement'](_0x4169b7);_0x13d3a0['model']['change'](()=>{if(_0x5a77e7)return void _0x9c734c['markDeletion'](_0x13d3a0['model']['createRangeOn'](_0x5a77e7));const _0x283456=_0x5a5b16['isBlockImage'](_0x4169b7);_0x5c908b(_0x456c07),_0x4169b7=_0x5a5b16['getClosestSelectedImageElement'](_0x13d3a0['model']['document']['selection']),_0x5a77e7=_0x1094c7['getCaptionFromImageModelElement'](_0x4169b7),_0x9c734c['markInsertion'](_0x13d3a0['model']['createRangeOn'](_0x5a77e7),_0x283456?null:'imageCaption');});}),_0x9c734c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x265de0));const _0x8a39a6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5f05b2(_0x455e98,_0x1a3a0a){const _0xc5aab0=_0x8a39a6['findIndex'](({type:_0x40db83,subType:_0x306494})=>_0x455e98['type']==_0x40db83&&_0x455e98['subType']==_0x306494),_0x32f13e=_0x8a39a6['findIndex'](({type:_0x13e833,subType:_0x135b9d})=>_0x1a3a0a['type']==_0x13e833&&_0x1a3a0a['subType']==_0x135b9d);if(_0xc5aab0<0x0||_0x32f13e<0x0)return!0x1;const _0x4e2d1f=_0x455e98['getFirstRange'](),_0x1184a3=_0x1a3a0a['getFirstRange']();if((0x0==_0xc5aab0||0x1==_0xc5aab0)&&0x2==_0x32f13e&&_0x4e2d1f['isIntersecting'](_0x1184a3))return!0x0;if(0x2==_0xc5aab0&&0x3==_0x32f13e){const _0x41360b=_0x9c734c['_findSuggestions'](_0x4e2d1f,'insertion')['filter'](({suggestion:_0xeacd3b,meta:_0x41ba34})=>_0x41ba34['isOwn']&&'convertInlineImageToBlock'==_0xeacd3b['subType']);if(_0x41360b['length']>0x1&&_0x1184a3['end']['isEqual'](_0x4e2d1f['start']))return!0x0;if(0x1==_0x41360b['length']&&(_0x4e2d1f['start']['isEqual'](_0x1184a3['end'])||_0x4e2d1f['end']['isEqual'](_0x1184a3['start'])))return!0x0;}if(0x3==_0xc5aab0&&0x3==_0x32f13e&&_0x4e2d1f['start']['isBefore'](_0x1184a3['start'])){const _0x35e07a=_0x4e2d1f['end']['nodeAfter'],_0x5b4872=_0x1184a3['start']['nodeBefore'];return _0x5a5b16['isBlockImage'](_0x35e07a)&&_0x35e07a===_0x5b4872;}return!0x1;}function _0x265de0(_0x3f8c58,_0x426e23){return _0x5f05b2(_0x3f8c58,_0x426e23)?[_0x3f8c58,_0x426e23]:_0x5f05b2(_0x426e23,_0x3f8c58)?[_0x426e23,_0x3f8c58]:null;}_0x13d3a0['plugins']['has']('ImageResize')&&(_0x9c734c['enableDefaultAttributesIntegration']('resizeImage'),_0x9c734c['registerBlockAttribute']('resizedWidth'),_0x9c734c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xa21583,'FORMAT_IMAGE_SIZE'))),_0x13d3a0['plugins']['has']('ImageTextAlternativeEditing')&&(_0x9c734c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x9c734c['registerBlockAttribute']('alt')),_0x13d3a0['plugins']['has']('PictureEditing')&&(_0x9c734c['registerBlockAttribute']('sources'),_0x9c734c['descriptionFactory']['registerDescriptionCallback'](_0x200076=>{if('attribute'!=_0x200076['type'])return;const {data:_0x157949}=_0x200076;return _0x157949&&'sources'==_0x157949['key']?{'type':'format','content':''}:void 0x0;})),_0x13d3a0['plugins']['has']('ImageSizeAttributes')&&(_0x9c734c['registerBlockAttribute']('width'),_0x9c734c['registerBlockAttribute']('height'),_0x9c734c['descriptionFactory']['registerDescriptionCallback'](_0x5f41d4=>{if('attribute'!=_0x5f41d4['type'])return;const {data:_0x2a21d0}=_0x5f41d4;return!_0x2a21d0||'width'!=_0x2a21d0['key']&&'height'!=_0x2a21d0['key']?void 0x0:{'type':'format','content':''};})),_0x9c734c['descriptionFactory']['registerDescriptionCallback'](_0x1b7e34=>{if(!!_0x8a39a6['find'](({type:_0x1b2d62,subType:_0x150e9b})=>_0x1b7e34['type']==_0x1b2d62&&_0x1b7e34['subType']==_0x150e9b))return _0x1b7e34['previous']?{}:void 0x0;}),_0x9c734c['descriptionFactory']['registerDescriptionCallback'](_0x1c0970=>{if('insertion'==_0x1c0970['type']||'deletion'==_0x1c0970['type']){const _0x568716=_0x1c0970['getContainedElement']();if(_0x568716&&_0x568716['is']('element','caption'))return{'type':'insertion'==_0x1c0970['type']?'addObject':'removeObject','element':_0x568716,'quantity':0x1};}}),_0x9c734c['descriptionFactory']['registerDescriptionCallback'](_0x3ef9ed=>'formatBlock'==_0x3ef9ed['type']&&'convertInlineImageToBlock'==_0x3ef9ed['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3ef9ed['type']&&'convertBlockImageToInline'==_0x3ef9ed['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x9c734c['descriptionFactory']['registerDescriptionCallback'](_0x70ebc0=>{if('attribute'!=_0x70ebc0['type'])return;const {data:_0x5ba1b8}=_0x70ebc0;if(!_0x5ba1b8||'alt'!=_0x5ba1b8['key'])return;const _0x15f57f=_0x5ba1b8['newValue'];return _0x15f57f?{'type':'format','content':o(_0xa21583,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x15f57f+'\x22')}:{'type':'format','content':o(_0xa21583,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf99ef=this['editor'],_0x4a608d=_0xf99ef['locale'];_0xf99ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x539259=>{if('formatBlock'!=_0x539259['type']&&'formatInline'!=_0x539259['type'])return;const {data:_0x12f1c6}=_0x539259;if(_0x12f1c6){if('imageTextAlternative'==_0x12f1c6['commandName']){const _0x23cf5a=_0x12f1c6['commandParams'][0x0]['newValue'];return _0x23cf5a?{'type':'format','content':o(_0x4a608d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x23cf5a+'\x22')}:{'type':'format','content':o(_0x4a608d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x12f1c6['commandName']){const _0x3e0e92=_0x12f1c6['commandParams'][0x0]['width'];return _0x3e0e92?{'type':'format','content':o(_0x4a608d,'*Set\x20image\x20width:*\x20%0',_0x3e0e92)}:{'type':'format','content':o(_0x4a608d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5320e9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3c8d68=this['editor']['locale'],_0x3be0ec=this['editor']['plugins']['get']('TrackChangesEditing');_0x3be0ec['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3be0ec['registerBlockAttribute']('src'),_0x3be0ec['descriptionFactory']['registerDescriptionCallback'](_0x1137db=>{if('attribute'!=_0x1137db['type'])return;const {data:_0x400de9}=_0x1137db;return _0x400de9&&'src'==_0x400de9['key']?_0x400de9['newValue']&&_0x400de9['oldValue']?{'type':'format','content':o(_0x3c8d68,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x41e957=this['editor']['plugins']['get']('TrackChangesEditing');_0x41e957['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x41e957['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41e957['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x41e957['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50cf21=this['editor'],_0x2dab4b=_0x50cf21['locale'];_0x50cf21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12cd6c=>{if('formatBlock'!=_0x12cd6c['type']&&'formatInline'!=_0x12cd6c['type'])return;const {data:_0x5e6fd0}=_0x12cd6c;if(!_0x5e6fd0||'replaceImageSource'!=_0x5e6fd0['commandName'])return;return{'type':'format','content':o(_0x2dab4b,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5320e9{['afterInit'](){const _0x37b86d=this['editor'];if(!_0x37b86d['plugins']['has']('ImageStyleEditing'))return;const _0x1eec65=_0x37b86d['plugins']['get']('TrackChangesEditing'),_0x1fe71d=_0x37b86d['plugins']['get']('ImageUtils'),_0x15a436={};_0x1eec65['enableCommand']('imageStyle',(_0x307514,_0x278e84)=>{const _0x282ff5=_0x37b86d['plugins']['get']('Users')['me'],_0x26cd99=_0x37b86d['commands']['get']('imageStyle');let _0x553253=_0x1fe71d['getClosestSelectedImageElement'](_0x37b86d['model']['document']['selection']),_0x549602=_0x37b86d['model']['createRangeOn'](_0x553253),_0x2990b0=_0x26cd99['value'];if(_0x2990b0==_0x278e84['value'])return;const _0x35fbd5={'commandName':'imageStyle','commandParams':[_0x278e84],'formatGroupId':_0x1a7a2c()};_0x37b86d['model']['change'](()=>{if(_0x1eec65['getSuggestions']()['filter'](_0x535943=>_0x535943['isInContent']&&_0x282ff5==_0x535943['author']&&('formatBlock'==_0x535943['type']||'formatInline'==_0x535943['type'])&&('imageStylePreApply'==_0x535943['subType']||'imageStylePostApply'==_0x535943['subType'])&&_0x535943['getFirstRange']()['isEqual'](_0x549602))['forEach'](_0x4c1115=>_0x1eec65['discardSuggestion'](_0x4c1115['head'])),_0x553253=_0x1fe71d['getClosestSelectedImageElement'](_0x37b86d['model']['document']['selection']),_0x549602=_0x37b86d['model']['createRangeOn'](_0x553253),_0x26cd99['refresh'](),_0x37b86d['commands']['get']('imageTypeInline')['refresh'](),_0x37b86d['commands']['get']('imageTypeBlock')['refresh'](),_0x2990b0=_0x26cd99['value'],_0x2990b0!=_0x278e84['value'])return _0x1fe71d['isInlineImage'](_0x553253)&&_0x26cd99['shouldConvertImageType'](_0x278e84['value'],_0x553253)?(_0x307514({..._0x278e84,'setImageSizes':!0x1}),_0x553253=_0x1fe71d['getClosestSelectedImageElement'](_0x37b86d['model']['document']['selection']),void _0x1eec65['markBlockFormat'](_0x553253,{..._0x35fbd5,'commandReversedParams':[{'value':_0x2990b0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1fe71d['isBlockImage'](_0x553253)?_0x1eec65['markBlockFormat'](_0x553253,_0x35fbd5,[],'imageStylePostApply'):_0x1eec65['markInlineFormat'](_0x549602,_0x35fbd5,'imageStylePostApply'));});});for(const _0x24c8f1 of _0x37b86d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x15a436[_0x24c8f1['name']]=_0x24c8f1['title']['toLowerCase']();_0x1eec65['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1eec65['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1eec65['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1eec65['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2b65fe])=>{_0x1fe71d['setImageNaturalSizeAttributes'](_0x2b65fe['getContainedElement']());}),_0x1eec65['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x47a379,_0x8ff347)=>{_0x1eec65['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x47a379,{'commandName':_0x8ff347['commandName'],'commandParams':_0x8ff347['commandReversedParams']});}),_0x1eec65['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1b9857,_0x7d8974){if(_0x27ebb4(_0x1b9857,_0x7d8974))return[_0x1b9857,_0x7d8974];if(_0x27ebb4(_0x7d8974,_0x1b9857))return[_0x7d8974,_0x1b9857];return null;});const _0x217305=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x27ebb4(_0x350f78,_0x11d6ab){const _0xfeecd0=_0x217305['findIndex'](({type:_0xc9401b,subType:_0x331061})=>_0x350f78['type']==_0xc9401b&&_0x350f78['subType']==_0x331061),_0x59d1d4=_0x217305['findIndex'](({type:_0x16784f,subType:_0x198d75})=>_0x11d6ab['type']==_0x16784f&&_0x11d6ab['subType']==_0x198d75);if(_0xfeecd0<0x0||_0x59d1d4<0x0)return!0x1;const _0x2cbe3f=_0x350f78['getFirstRange'](),_0x420d70=_0x11d6ab['getFirstRange']();if((0x0==_0xfeecd0||0x1==_0xfeecd0)&&0x2==_0x59d1d4&&_0x2cbe3f['isIntersecting'](_0x420d70))return!0x0;if(0x2==_0xfeecd0&&0x3==_0x59d1d4){const _0x55b14f=_0x1eec65['_findSuggestions'](_0x2cbe3f,'insertion')['filter'](({suggestion:_0x6f13e2,meta:_0x2a58c9})=>_0x2a58c9['isOwn']&&'convertInlineImageToBlock'==_0x6f13e2['subType']);if(_0x55b14f['length']>0x1&&_0x420d70['end']['isEqual'](_0x2cbe3f['start']))return!0x0;if(0x1==_0x55b14f['length']&&(_0x2cbe3f['start']['isEqual'](_0x420d70['end'])||_0x2cbe3f['end']['isEqual'](_0x420d70['start'])))return!0x0;}if(0x3==_0xfeecd0&&0x3==_0x59d1d4&&_0x2cbe3f['start']['isBefore'](_0x420d70['start'])){const _0x24b7ba=_0x2cbe3f['end']['nodeAfter'],_0x5aa5a1=_0x420d70['start']['nodeBefore'];return _0x1fe71d['isBlockImage'](_0x24b7ba)&&_0x24b7ba===_0x5aa5a1;}return!0x1;}_0x37b86d['model']['document']['registerPostFixer'](()=>{let _0x3c761f=!0x1;const _0x5a873a=Array['from'](_0x37b86d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x119210,data:_0x72c887}of _0x5a873a){const {group:_0x775157,type:_0x12cb35,subType:_0x31f907,id:_0x25eab5}=_0x1eec65['_splitMarkerName'](_0x119210);if('suggestion'==_0x775157&&_0x1eec65['hasSuggestion'](_0x25eab5)){if('formatBlock'==_0x12cb35&&('imageStylePreApply'==_0x31f907||'imageStylePostApply'==_0x31f907)){const _0x5b2756=_0x1eec65['getSuggestion'](_0x25eab5);if(_0x72c887['newRange']){const _0x2cbcf3=_0x5b2756['getFirstRange']()['getContainedElement']();if(_0x1fe71d['isBlockImage'](_0x2cbcf3))continue;_0x1eec65['discardSuggestion'](_0x5b2756),_0x3c761f=!0x0;}}if('insertion'==_0x12cb35&&'imageCaption'==_0x31f907&&!_0x72c887['newRange']){const _0x735a8f=_0x1eec65['getSuggestion'](_0x25eab5);_0x735a8f['next']&&_0x735a8f['next']['isInContent']&&(_0x1eec65['discardSuggestion'](_0x735a8f['next']),_0x3c761f=!0x0);}}}return _0x3c761f;}),this['_registerLegacyDescription'](_0x15a436);}['_registerLegacyDescription'](_0x8e09c7){const _0x3cb9eb=this['editor'],_0x5dfb81=_0x3cb9eb['locale'];_0x3cb9eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc0c62=>{if('formatBlock'!=_0xc0c62['type']&&'formatInline'!=_0xc0c62['type'])return;const {data:_0x15ee3b}=_0xc0c62;if(!_0x15ee3b||'imageStyle'!=_0x15ee3b['commandName'])return;const _0x2b2f4c=_0x15ee3b['commandParams'][0x0]['value'];return _0x2eb2f4('side'===_0x2b2f4c?o(_0x5dfb81,'FORMAT_SIDE_IMAGE'):_0x8e09c7[_0x2b2f4c]||_0x2b2f4c);function _0x2eb2f4(_0x1d18f){return{'type':'format','content':o(_0x5dfb81,'*Format:*\x20%0',_0x1d18f)};}});}}class ut extends _0x5320e9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x195947){super(_0x195947),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x956370=this['editor'],_0x299816=_0x956370['commands']['get']('importWord'),_0x317eaa=_0x956370['commands']['get']('trackChanges');_0x299816&&(_0x299816['on']('execute',(_0x56057e,[,_0x3b4c21])=>{this['_trackChangesValueDuringImport']=_0x317eaa['value'],_0x3b4c21['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x299816,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x299816,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x317eaa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x956370['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4117b3,_0x3c5c38){const {suggestions:_0x13e2ed}=_0x3c5c38,_0x1cef5b=this['editor']['commands']['get']('trackChanges'),_0x4088d9=_0x1cef5b['value'];this['_trackChangesValueDuringImport']!==_0x4088d9&&(_0x1cef5b['execute'](),this['_trackChangesExecuted']=!0x0),_0x13e2ed&&_0x13e2ed['forEach'](({id:_0x58d994,type:_0x3d710a,author:_0x2c9e73,created_at:_0x792c5a})=>{const _0xcf3c4d={'id':_0x58d994,'type':_0x3d710a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2c9e73,'createdAt':_0x792c5a?new Date(_0x792c5a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xcf3c4d);});}}class ft extends _0x5320e9{['afterInit'](){const _0xa00307=this['editor'],_0x542556=_0xa00307['plugins']['get']('TrackChangesEditing');if(_0xa00307['plugins']['has']('IndentEditing')&&(_0x542556['enableCommand']('indent'),_0x542556['enableCommand']('outdent')),_0xa00307['plugins']['has']('IndentBlock')){for(const _0x3ac600 of['indentBlock','outdentBlock'])_0x542556['enableDefaultAttributesIntegration'](_0x3ac600);}const _0x514fb7=_0xa00307['locale'];_0x542556['registerBlockAttribute']('blockIndent'),_0x542556['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x514fb7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50ac40=this['editor'],_0x577dea=_0x50ac40['locale'],_0x524274=_0x50ac40['plugins']['get']('TrackChangesEditing');_0x524274['descriptionFactory']['registerDescriptionCallback'](_0x42443b=>{if('formatBlock'!=_0x42443b['type'])return;const {data:_0xfa0b33}=_0x42443b;if(!_0xfa0b33)return;if('indentBlock'!=_0xfa0b33['commandName']&&'outdentBlock'!=_0xfa0b33['commandName'])return;const _0x455e56=_0x42443b['getItems']()[0x0],_0x15c5e6=_0x524274['descriptionFactory']['getItemLabel'](_0x455e56);return'indentBlock'==_0xfa0b33['commandName']?{'type':'format','content':o(_0x577dea,'*Indent:*\x20%0',_0x15c5e6)}:'outdentBlock'==_0xfa0b33['commandName']?{'type':'format','content':o(_0x577dea,'*Outdent:*\x20%0',_0x15c5e6)}:void 0x0;});}}class ht extends _0x5320e9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5320e9{['afterInit'](){const _0x1dba81=this['editor'];if(!_0x1dba81['plugins']['has']('LinkEditing'))return;const _0x5add4e=_0x1dba81['plugins']['get']('TrackChangesEditing'),_0x3c5032=_0x1dba81['commands']['get']('link');_0x5add4e['enableDefaultAttributesIntegration']('link'),_0x5add4e['enableDefaultAttributesIntegration']('unlink'),_0x5add4e['registerInlineAttribute']('linkHref');for(const _0x2c640b of _0x3c5032['manualDecorators'])_0x5add4e['registerInlineAttribute'](_0x2c640b['id']),_0x5add4e['descriptionFactory']['registerAttributeLabel'](_0x2c640b['id'],'link\x20('+_0x2c640b['label']['toLowerCase']()+')');_0x5add4e['descriptionFactory']['registerDescriptionCallback'](_0xd3e929=>{if('attribute'!=_0xd3e929['type'])return;const {data:_0x289a57}=_0xd3e929;if(!_0x289a57||'linkHref'!=_0x289a57['key'])return;const _0x57ce88=_0x289a57['newValue'],_0x33051c=_0x1dba81['locale'];return{'type':'format','content':null==_0x57ce88?o(_0x33051c,'*Remove\x20link*'):o(_0x33051c,'*Set\x20link:*\x20%0','\x22'+_0x57ce88+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb43574=this['editor'],_0x163c19=_0xb43574['locale'];_0xb43574['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1beccb=>{if('formatInline'!=_0x1beccb['type'])return;const {data:_0x2962e0}=_0x1beccb;if(_0x2962e0){if('link'==_0x2962e0['commandName']){const _0x147158=_0x2962e0['commandParams'][0x0];return{'type':'format','content':o(_0x163c19,'*Set\x20link:*\x20%0','\x22'+_0x147158+'\x22')};}return'unlink'==_0x2962e0['commandName']?{'type':'format','content':o(_0x163c19,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5320e9{['afterInit'](){const _0x207134=this['editor'],_0x3f08c7=_0x207134['locale'];if(!_0x207134['plugins']['has']('LegacyListEditing'))return;const _0x5b9bec=_0x207134['plugins']['get']('TrackChangesEditing'),_0x49f8ac=_0x207134['plugins']['has']('LegacyTodoListEditing');function _0x1254e5(_0x329415){return()=>{const _0x420163=_0x207134['model']['document']['selection'],_0x199d43=_0x207134['commands']['get'](_0x329415);if(_0x199d43['value'])return void _0x207134['execute']('paragraph',{});const _0x30c496=_0x329415['slice'](0x0,-0x4),_0x35a4e2=function(_0x1f3213,_0x715e26,_0x28a99f){let _0x57e8d2=Array['from'](_0x1f3213)['filter'](_0x5e25f5=>function(_0x4f4a6c,_0x16f4d4){return _0x16f4d4['checkChild'](_0x4f4a6c['parent'],'listItem')&&!_0x16f4d4['isObject'](_0x4f4a6c);}(_0x5e25f5,_0x28a99f));_0x57e8d2=_0x57e8d2['filter'](_0x137a14=>!_0x137a14['is']('element','listItem')||_0x137a14['getAttribute']('listType')!=_0x715e26);const _0x411cc7=new Set();for(const _0x1db39f of _0x57e8d2)_0x1db39f['is']('element','listItem')?_0x411cc7['add'](Le(_0x1db39f)):_0x411cc7['add'](_0x1db39f);return Array['from'](_0x411cc7);}(_0x420163['getSelectedBlocks'](),_0x30c496,_0x207134['model']['schema']);_0x207134['model']['change'](()=>{for(const _0x2f1ecb of _0x35a4e2)_0x5b9bec['markBlockFormat'](_0x2f1ecb,{'commandName':_0x329415,'commandParams':[{'forceValue':!_0x199d43['value']}],'formatGroupId':'blockName'},Ee(_0x2f1ecb));});};}function _0x44e8a4(_0x8ba091){return()=>{const _0x1528fc=function(_0x300f22){let _0x33dbb0=Array['from'](_0x300f22);const _0x4e5a04=_0x33dbb0['findIndex'](_0x3f1751=>'listItem'!=_0x3f1751['name']);return _0x4e5a04>-0x1&&(_0x33dbb0=_0x33dbb0['slice'](0x0,_0x4e5a04)),_0x33dbb0;}(_0x207134['model']['document']['selection']['getSelectedBlocks']()),_0x2d6abc=_0x207134['model']['createRange'](_0x207134['model']['createPositionAt'](_0x1528fc[0x0],'before'),_0x207134['model']['createPositionAt'](_0x1528fc[_0x1528fc['length']-0x1],'end'));_0x207134['model']['change'](()=>{_0x5b9bec['markBlockFormat'](_0x2d6abc,{'commandName':_0x8ba091,'commandParams':[],'formatGroupId':'listIndent'},function(_0x48efd1){const _0x469b94=new Set();for(const _0x31cdb5 of _0x48efd1){let _0x55d0aa=_0x31cdb5['nextSibling'];for(;_0x55d0aa&&_0x55d0aa['getAttribute']('listIndent')>_0x31cdb5['getAttribute']('listIndent');)_0x469b94['add'](_0x55d0aa),_0x55d0aa=_0x55d0aa['nextSibling'];}return Array['from'](_0x469b94);}(_0x1528fc));});};}_0x5b9bec['enableCommand']('numberedList',_0x1254e5('numberedList')),_0x5b9bec['enableCommand']('bulletedList',_0x1254e5('bulletedList')),_0x49f8ac&&_0x5b9bec['enableCommand']('todoList',_0x1254e5('todoList')),_0x5b9bec['enableCommand']('indentList',_0x44e8a4('indentList')),_0x5b9bec['enableCommand']('outdentList',_0x44e8a4('outdentList')),_0x49f8ac&&_0x5b9bec['enableCommand']('checkTodoList',()=>{const _0x56ce83=_0x207134['commands']['get']('checkTodoList'),_0x491332=Array['from'](_0x56ce83['_selectedElements']);_0x491332['filter'](_0x49b38b=>_0x49b38b['getAttribute']('todoListChecked')!=_0x56ce83['value']),_0x207134['model']['change'](()=>{for(const _0x1a3ed3 of _0x491332)_0x5b9bec['markBlockFormat'](_0x1a3ed3,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x56ce83['value']}]});});}),_0x5b9bec['descriptionFactory']['registerElementLabel']('listItem',_0x1b2430=>o(_0x3f08c7,'ELEMENT_LIST_ITEM',_0x1b2430)),_0x5b9bec['descriptionFactory']['registerDescriptionCallback'](_0x3fcdb0=>{if('formatBlock'!=_0x3fcdb0['type']&&'formatInline'!=_0x3fcdb0['type'])return;const {data:_0x2a9678}=_0x3fcdb0;if(_0x2a9678){if('numberedList'==_0x2a9678['commandName']||'bulletedList'==_0x2a9678['commandName']||'todoList'==_0x2a9678['commandName'])switch(_0x2a9678['commandName']['replace']('List','')){case'bulleted':return _0xd72c95(o(_0x3f08c7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd72c95(o(_0x3f08c7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd72c95(o(_0x3f08c7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2a9678['commandName'])return{'type':'format','content':o(_0x3f08c7,'*Indent:*\x20%0',o(_0x3f08c7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2a9678['commandName'])return{'type':'format','content':o(_0x3f08c7,'*Outdent:*\x20%0',o(_0x3f08c7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2a9678['commandName'])return _0x2a9678['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f08c7,'*Check\x20item*')}:{'type':'format','content':o(_0x3f08c7,'*Uncheck\x20item*')};}function _0xd72c95(_0x3f623f){return{'type':'format','content':o(_0x3f08c7,'*Change\x20to:*\x20%0',_0x3f623f)};}});}}function Le(_0x22ed2d){const _0x2b3713=_0x22ed2d['getAttribute']('listIndent');if(0x0==_0x2b3713)return _0x22ed2d;let _0x4b1a95=_0x22ed2d;for(;_0x22ed2d['previousSibling']&&_0x22ed2d['previousSibling']['is']('element','listItem');){const _0xc25a18=_0x22ed2d['previousSibling']['getAttribute']('listIndent');if(_0xc25a18==_0x2b3713)_0x4b1a95=_0x22ed2d['previousSibling'];else{if(_0xc25a18<_0x2b3713)break;}_0x22ed2d=_0x22ed2d['previousSibling'];}return _0x4b1a95;}function Ee(_0x827637){const _0x2f64ae=[];if(_0x827637['is']('element','listItem')&&_0x827637['getAttribute']('listIndent')>0x0){let _0x183130=_0x827637['nextSibling'];for(;_0x183130&&'listItem'==_0x183130['name']&&_0x183130['getAttribute']('listIndent')==_0x827637['getAttribute']('listIndent');)_0x2f64ae['push'](_0x183130),_0x183130=_0x183130['nextSibling'];}return _0x2f64ae;}class Q extends _0x5320e9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x38d045=this['editor']['config']['get']('list.properties'),_0x38c51a=this['editor']['plugins']['get']('TrackChangesEditing');_0x38d045['styles']&&_0x38c51a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x38d045['reversed']&&_0x38c51a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x38d045['startIndex']&&_0x38c51a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x38c51a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf3dca9,_0x3a04c5={}){const _0x3b65a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x400701=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3b65a0['markMultiRangeBlockFormat'](_0x400701,{'commandName':'listStyle','commandParams':[{'type':_0x3a04c5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2a9f8c,_0x450ae7={}){const _0x43cc79=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e4f7d=this['_getSuggestionBlocks'](_0x353368=>_0x353368['is']('element','listItem')&&'numbered'===_0x353368['getAttribute']('listType'));if(_0x1e4f7d['length']<0x1)return;const _0x1ecc35=_0x1e4f7d['map'](_0x54e0d8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54e0d8,'before'),this['editor']['model']['createPositionAt'](_0x54e0d8,0x0)));this['editor']['model']['change'](()=>{_0x43cc79['markMultiRangeBlockFormat'](_0x1ecc35,{'commandName':'listReversed','commandParams':[{'reversed':_0x450ae7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x58189b,_0x3d0ff1={}){const _0x567171=this['editor']['plugins']['get']('TrackChangesEditing'),_0x301530=this['_getSuggestionBlocks'](_0x1d65e9=>_0x1d65e9['is']('element','listItem')&&'numbered'===_0x1d65e9['getAttribute']('listType'));if(_0x301530['length']<0x1)return;const _0x42e954=_0x301530['map'](_0x2ccbf0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2ccbf0,'before'),this['editor']['model']['createPositionAt'](_0x2ccbf0,0x0)));this['editor']['model']['change'](()=>{_0x567171['markMultiRangeBlockFormat'](_0x42e954,{'commandName':'listStart','commandParams':[{'startIndex':_0x3d0ff1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1d9ac1){if('formatBlock'!=_0x1d9ac1['type']&&'formatInline'!=_0x1d9ac1['type'])return;const _0x4c750a=this['editor']['locale'],{data:_0x2dddb7}=_0x1d9ac1;if(!_0x2dddb7)return;let _0x15603e,_0x2c76e4;switch(_0x2dddb7['commandName']){case'listStyle':_0x15603e='*Change\x20to:*\x20%0',_0x2c76e4={'type':'format','content':o(_0x4c750a,_0x15603e,o(_0x4c750a,this['_getTranslationKeyForListStyle'](_0x2dddb7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x15603e=_0x2dddb7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2c76e4={'type':'format','content':o(_0x4c750a,_0x15603e)};break;case'listStart':_0x15603e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2c76e4={'type':'format','content':o(_0x4c750a,_0x15603e,_0x2dddb7['commandParams'][0x0]['startIndex'])};}return _0x2c76e4;}['_getSuggestionBlocksForListStyle'](){const _0x1d7b5f=this['editor']['plugins']['get']('LegacyListUtils');let _0x5c1507=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5c1507[0x0]?.['is']('element','listItem')&&_0x5c1507['unshift'](..._0x1d7b5f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5c1507[_0x5c1507['length']-0x1]?.['is']('element','listItem')&&_0x5c1507['push'](..._0x1d7b5f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5c1507=[...new Set(_0x5c1507)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5c1507=_0x5c1507['filter'](_0x53c6a8=>_0x53c6a8['is']('element','listItem'))),_0x5c1507;}['_getSuggestionBlocks'](_0x1412b1){const _0x5f0696=this['editor']['plugins']['get']('LegacyListUtils');let _0x12a738=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1412b1)['map'](_0x4a4990=>{const _0x3ea05f=this['editor']['model']['createPositionAt'](_0x4a4990,0x0);return[..._0x5f0696['getSiblingNodes'](_0x3ea05f,'backward'),..._0x5f0696['getSiblingNodes'](_0x3ea05f,'forward')];})['flat']();return _0x12a738=[...new Set(_0x12a738)],_0x12a738;}['_getTranslationKeyForListStyle'](_0x17b6f7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x17b6f7)||'default')['toUpperCase']()+'_LIST_'+_0x17b6f7['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5320e9{['afterInit'](){const _0x1a0dd4=this['editor'];if(!_0x1a0dd4['plugins']['has']('MediaEmbedEditing'))return;const _0x10cd5f=_0x1a0dd4['plugins']['get']('TrackChangesEditing'),_0x55dd32=_0x1a0dd4['locale'];_0x10cd5f['enableCommand']('mediaEmbed'),_0x10cd5f['descriptionFactory']['registerElementLabel']('media',_0x3ea2d3=>o(_0x55dd32,'ELEMENT_MEDIA',_0x3ea2d3)),_0x1a0dd4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x269f83,{writer:_0x5bf1c9,options:_0x561a33})=>{if(_0x561a33['showSuggestionHighlights'])return _0x5bf1c9['createEmptyElement']('div');},'converterPriority':'high'}),_0x1a0dd4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x129c26,_0x2119dd,_0x1c0a23)=>{_0x1c0a23['options']['showSuggestionHighlights']&&_0x129c26['stop']();},{'priority':'high'});}}class pt extends _0x5320e9{['afterInit'](){const _0x3145ec=this['editor'];_0x3145ec['plugins']['has']('MentionEditing')&&_0x3145ec['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x5320e9{['afterInit'](){const _0x2efcf5=this['editor'];if(!_0x2efcf5['plugins']['has']('MergeFieldsEditing'))return;const _0x251239=_0x2efcf5['plugins']['get']('TrackChangesEditing'),_0x5b487a=_0x2efcf5['locale'];_0x251239['enableCommand']('insertMergeField'),_0x251239['enableCommand']('insertMergeFieldBlock'),_0x251239['enableCommand']('insertMergeFieldImage'),_0x251239['descriptionFactory']['registerElementLabel']('mergeField',_0x3083ba=>o(_0x5b487a,'ELEMENT_MERGE_FIELD',_0x3083ba)),_0x251239['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5398aa=>o(_0x5b487a,'ELEMENT_MERGE_FIELD',_0x5398aa)),_0x251239['descriptionFactory']['registerDescriptionCallback'](_0x57bdbe=>{if('insertion'!=_0x57bdbe['type']&&'deletion'!=_0x57bdbe['type'])return;const _0x18b656=_0x57bdbe['getContainedElement']();if(null==_0x18b656)return;const _0x49aba3=_0x2efcf5['plugins']['get']('MergeFieldsEditing');let _0x2325ae;switch(_0x49aba3['getMergeFieldType'](_0x18b656)){case null:return;case'image':{const _0x2abd01=_0x49aba3['unwrapAffixes'](_0x18b656['getAttribute']('src'));_0x2325ae=_0x49aba3['getLabel'](_0x2abd01)||_0x2abd01;break;}default:{const _0x3a0646=_0x18b656['getAttribute']('id');_0x2325ae=_0x49aba3['getLabel'](_0x3a0646)||_0x3a0646;break;}}return'insertion'==_0x57bdbe['type']?{'type':'insertion','content':o(_0x5b487a,'*Insert:*\x20%0','\x22'+_0x2325ae+'\x22\x20'+o(_0x5b487a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5b487a,'*Remove:*\x20%0','\x22'+_0x2325ae+'\x22\x20'+o(_0x5b487a,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x5320e9{['afterInit'](){const _0x282538=this['editor'],_0xccc20b=_0x282538['plugins']['get']('TrackChangesEditing');_0x282538['plugins']['has']('MultiLevelList')&&(_0xccc20b['enableDefaultAttributesIntegration']('multiLevelList'),_0xccc20b['registerBlockAttribute']('listMarkerStyle'),_0xccc20b['descriptionFactory']['registerDescriptionCallback'](_0x22f8e2=>this['handleDescriptions'](_0x22f8e2)));}['handleDescriptions'](_0x36b067){const _0x2f21a1=this['editor']['locale'],{data:_0x99bb3}=_0x36b067,_0xdacb40={'type':'format','content':''};if(_0x99bb3&&'listMarkerStyle'==_0x99bb3['key']){if(!_0x99bb3['oldValue'])return{'type':'format','content':o(_0x2f21a1,'*Set\x20format:*\x20%0',o(_0x2f21a1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x99bb3['newValue']+')'};if(!_0x99bb3['newValue']){let _0x97f149=_0x36b067['head'];for(;_0x97f149;){if(_0x97f149['data']&&'listType'==_0x97f149['data']['key']&&_0x97f149['data']['newValue'])return _0xdacb40;_0x97f149=_0x97f149['next'];}return{'type':'format','content':o(_0x2f21a1,'*Remove\x20format:*\x20%0',o(_0x2f21a1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x99bb3['oldValue']+')'};}}}}class bt extends _0x5320e9{['afterInit'](){const _0x26ccc0=this['editor'];if(!_0x26ccc0['plugins']['has']('PageBreakEditing'))return;_0x26ccc0['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5e12e3=_0x26ccc0['plugins']['get']('TrackChangesEditing'),_0xcb474=_0x26ccc0['locale'];_0x5e12e3['descriptionFactory']['registerElementLabel']('pageBreak',_0x3996f8=>o(_0xcb474,'ELEMENT_PAGE_BREAK',_0x3996f8));}}class yt extends _0x5320e9{['afterInit'](){const _0x403cb5=this['editor'];if(!_0x403cb5['plugins']['has']('Paragraph'))return;const _0x259042=_0x403cb5['locale'],_0x1e039b=_0x403cb5['plugins']['get']('TrackChangesEditing');_0x1e039b['descriptionFactory']['registerElementLabel']('paragraph',_0x4af032=>o(_0x259042,'ELEMENT_PARAGRAPH',_0x4af032)),_0x1e039b['enableDefaultAttributesIntegration']('paragraph'),_0x1e039b['enableCommand']('insertParagraph'),_0x403cb5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x403cb5),{'priority':'highest'}),_0x403cb5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x189137,_0x4fa13c,_0x31ead1)=>{_0x31ead1['options']['showSuggestionHighlights']&&nr(_0x403cb5,{'showActiveMarker':!0x1})(_0x189137,_0x4fa13c,_0x31ead1);},{'priority':'highest'});const _0x34acd5=_0x1e039b['descriptionFactory'];_0x34acd5['registerDescriptionCallback'](_0x3cbc95=>{if('insertion'!==_0x3cbc95['type'])return;const {start:_0x1e1388,end:_0x23acef}=_0x3cbc95['getFirstRange']();if(!_0x1e1388['isTouching'](_0x23acef)||!_0x1e1388['nodeAfter'])return;const _0x380000=_0x403cb5['model']['schema'],_0x47abe6=_0x1e1388['nodeAfter'];return _0x380000['isBlock'](_0x47abe6)&&!_0x380000['isLimit'](_0x47abe6)&&_0x380000['checkChild'](_0x47abe6,'$text')?{'type':'insertion','content':o(_0x259042,'*Insert:*\x20%0',_0x34acd5['getItemLabel'](_0x47abe6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf8c211=this['editor'],_0x435863=_0xf8c211['locale'];_0xf8c211['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x165176=>{if('formatBlock'!=_0x165176['type'])return;const {data:_0x83ec3f}=_0x165176;return _0x83ec3f&&'paragraph'==_0x83ec3f['commandName']?{'type':'format','content':o(_0x435863,'*Change\x20to:*\x20%0',o(_0x435863,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5593e9,{showActiveMarker:_0x581671=!0x0}={}){return(_0x3271a9,_0x35fca4,_0x17096d)=>{const _0x4ef824=_0x5593e9['plugins']['get']('TrackChangesEditing'),_0x42ec38=_0x35fca4['markerRange']['start'],_0x5096ee=_0x35fca4['markerRange']['end'],_0x5b72d7=_0x5593e9['model']['schema'];if(!_0x42ec38['isTouching'](_0x5096ee)||!_0x42ec38['nodeAfter'])return;const _0x3a315f=_0x42ec38['nodeAfter'];if(_0x5b72d7['isBlock'](_0x3a315f)&&!_0x5b72d7['isLimit'](_0x3a315f)&&_0x5b72d7['checkChild'](_0x3a315f,'$text')){if(!_0x17096d['consumable']['consume'](_0x35fca4['markerRange'],_0x3271a9['name']))return;const {authorId:_0x169ea9}=_0x4ef824['_splitMarkerName'](_0x35fca4['markerName']),_0x355275=_0x17096d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x169ea9}),_0xdd1c24=_0x17096d['mapper']['toViewPosition'](_0x5096ee);_0x581671&&_0x4ef824['activeMarkers']['includes'](_0x35fca4['markerName'])&&_0x17096d['writer']['addClass']('ck-suggestion-marker--active',_0x355275),_0x17096d['writer']['insert'](_0xdd1c24,_0x355275),_0x17096d['mapper']['bindElementToMarker'](_0x355275,_0x35fca4['markerName']);}};}class jt extends _0x5320e9{['afterInit'](){const _0x403d46=this['editor'];_0x403d46['commands']['get']('replaceSource')&&_0x403d46['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5320e9{['afterInit'](){const _0xbb3b6d=this['editor'];if(!_0xbb3b6d['plugins']['has']('RemoveFormatEditing'))return;_0xbb3b6d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4aa6bc=this['editor'];_0x4aa6bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18c1e4=>{if('formatBlock'!=_0x18c1e4['type']&&'formatInline'!=_0x18c1e4['type'])return;const {data:_0x2cb4f3}=_0x18c1e4;return _0x2cb4f3&&'removeFormat'==_0x2cb4f3['commandName']?{'type':'format','content':o(_0x4aa6bc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5320e9{['afterInit'](){const _0x515b44=this['editor'];if(!_0x515b44['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x54d2d3=_0x515b44['plugins']['get']('TrackChangesEditing');_0x54d2d3['enableCommand']('goToPreviousRestrictedEditingException'),_0x54d2d3['enableCommand']('goToNextRestrictedEditingException');const _0x192379=_0x515b44['plugins']['get']('RestrictedEditingModeEditing');_0x192379['enableCommand']('trackChanges'),_0x192379['enableCommand']('acceptSuggestion'),_0x192379['enableCommand']('discardSuggestion'),_0x192379['enableCommand']('acceptAllSuggestions'),_0x192379['enableCommand']('discardAllSuggestions'),_0x192379['enableCommand']('acceptSelectedSuggestions'),_0x192379['enableCommand']('discardSelectedSuggestions');}}class It extends _0x5320e9{static get['requires'](){return[_0x2cc1bd];}['init'](){const _0x1a6a92=this['editor'],_0x4b0d49=_0x1a6a92['plugins']['get']('TrackChangesEditing');_0x4b0d49['enableCommand']('shiftEnter'),_0x1a6a92['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1a6a92),{'priority':'high'}),_0x1a6a92['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1a6a92),{'priority':'high'}),_0x1a6a92['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x267b9b,_0x377daa,_0x2d60d3)=>{_0x2d60d3['options']['showSuggestionHighlights']&&je(_0x1a6a92,{'showActiveMarker':!0x1})(_0x267b9b,_0x377daa,_0x2d60d3);}),_0x4b0d49['descriptionFactory']['registerElementLabel']('softBreak',_0xacac42=>o(_0x1a6a92['locale'],'ELEMENT_LINE_BREAK',_0xacac42));}}function je(_0x1327e3,{showActiveMarker:_0x4b3bb0=!0x0}={}){return(_0x1a65a9,_0x192db7,_0x1f3558)=>{const _0x1ae628=_0x1327e3['plugins']['get']('TrackChangesEditing');if(!_0x1f3558['consumable']['test'](_0x192db7['markerRange'],_0x1a65a9['name']))return;const _0x2d06f7=_0x1327e3['model'];for(const _0x370d16 of _0x192db7['markerRange']['getItems']()){if(!_0x370d16['is']('element','softBreak'))continue;const _0x5f8e2e='deletion'==_0x192db7['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x360598}=_0x1ae628['_splitMarkerName'](_0x192db7['markerName']),_0x505ee7=_0x1f3558['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5f8e2e,'data-author-id':_0x360598}),_0x1b6991=_0x1f3558['mapper']['toViewPosition'](_0x2d06f7['createPositionBefore'](_0x370d16));_0x4b3bb0&&_0x1ae628['activeMarkers']['includes'](_0x192db7['markerName'])&&_0x1f3558['writer']['addClass']('ck-suggestion-marker--active',_0x505ee7),_0x1f3558['writer']['insert'](_0x1b6991,_0x505ee7),_0x1f3558['mapper']['bindElementToMarker'](_0x505ee7,_0x192db7['markerName']);}};}class vt extends _0x5320e9{['afterInit'](){const _0x14946c=this['editor'],_0x30a40e=_0x14946c['model'],_0x648bf3=_0x14946c['locale'];if(!_0x14946c['plugins']['has']('StandardEditingModeEditing'))return;const _0x22b3b7=_0x14946c['plugins']['get']('TrackChangesEditing'),_0x4ca220='restrictedEditingException',_0x8219ee=_0x14946c['commands']['get'](_0x4ca220);_0x22b3b7['enableCommand'](_0x4ca220,(_0x1b3019,_0x119043={})=>{const _0x3e215d=_0x30a40e['document']['selection'];if(_0x3e215d['isCollapsed'])return void _0x1b3019(_0x119043);const _0x4309c6=void 0x0!==_0x119043['forceValue']?_0x119043['forceValue']:!_0x8219ee['value'];_0x30a40e['change'](()=>{const _0x330343=Array['from'](_0x3e215d['getRanges']());for(const _0x57b8c9 of _0x330343){const _0x2bfd8e=_0x4309c6?[_0x57b8c9]:io(_0x4ca220,_0x57b8c9,_0x30a40e);for(const _0x3bddbb of _0x2bfd8e)_0x22b3b7['markInlineFormat'](_0x3bddbb,{'commandName':_0x4ca220,'commandParams':[{'forceValue':_0x4309c6}]});}});}),_0x22b3b7['descriptionFactory']['registerDescriptionCallback'](_0x129945=>{if('formatBlock'!=_0x129945['type']&&'formatInline'!=_0x129945['type'])return;const {data:_0x3785cd}=_0x129945;return _0x3785cd&&_0x3785cd['commandName']==_0x4ca220?_0x3785cd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x648bf3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x648bf3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x5320e9{['afterInit'](){const _0x99146=this['editor'];if(!_0x99146['plugins']['has']('Style')||!_0x99146['plugins']['has']('DataSchema'))return;const _0x8a631d=_0x99146['plugins']['get']('TrackChangesEditing'),_0x59eca5=_0x99146['locale'],_0x1a7673=_0x99146['config']['get']('style')||{},_0x802a03=_0x99146['plugins']['get']('GeneralHtmlSupport'),_0x34b3cd=_0x99146['plugins']['get']('StyleUtils')['normalizeConfig'](_0x99146['plugins']['get']('DataSchema'),_0x1a7673['definitions']);_0x8a631d['enableDefaultAttributesIntegration']('style');const _0x3aebc4=new Set();for(const _0x4d1ead of _0x34b3cd['block']){const _0x44a7f5=_0x802a03['getGhsAttributeNameForElement'](_0x4d1ead['element']);_0x3aebc4['add'](_0x44a7f5);}const _0x315972=new Set();for(const _0x8f9a72 of _0x34b3cd['inline']){const _0x57f94c=_0x802a03['getGhsAttributeNameForElement'](_0x8f9a72['element']);_0x315972['add'](_0x57f94c);for(const _0x55e282 of _0x8f9a72['ghsAttributes'])_0x315972['add'](_0x55e282);}for(const _0x55ed82 of _0x3aebc4)_0x8a631d['registerBlockAttribute'](_0x55ed82),_0x8a631d['descriptionFactory']['registerAttributeLabel'](_0x55ed82,o(_0x59eca5,'FORMAT_STYLE'));for(const _0x4ce335 of _0x315972)_0x8a631d['registerInlineAttribute'](_0x4ce335),_0x8a631d['descriptionFactory']['registerAttributeLabel'](_0x4ce335,o(_0x59eca5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47ab0d=this['editor'],_0x117348=_0x47ab0d['locale'];_0x47ab0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x332abf=>{if('formatBlock'!=_0x332abf['type']&&'formatInline'!=_0x332abf['type'])return;const {data:_0x1eb61b}=_0x332abf;return _0x1eb61b&&'style'===_0x1eb61b['commandName']?_0x1eb61b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x117348,'*Set\x20format:*\x20%0',_0x1eb61b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x117348,'*Remove\x20format:*\x20%0',_0x1eb61b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5320e9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3a7c82){super(_0x3a7c82),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x547222=this['editor'],_0x117fd3=_0x547222['model']['document']['selection'];if(!_0x547222['plugins']['has']('TableEditing'))return;const _0x222cd1=_0x547222['locale'],_0x2438ac=_0x547222['plugins']['get']('TrackChangesEditing'),_0x3569e3=_0x547222['plugins']['get']('TableUtils');_0x2438ac['descriptionFactory']['registerElementLabel']('table',_0x3a18e1=>o(_0x222cd1,'ELEMENT_TABLE',_0x3a18e1)),this['_setupColumnsRowsFixing'](),_0x2438ac['enableCommand']('insertTable'),_0x2438ac['enableCommand']('selectTableRow'),_0x2438ac['enableCommand']('selectTableColumn');for(const _0x10fe6f of['insertTableRowAbove','insertTableRowBelow']){const _0x5d7a7d=_0x547222['commands']['get'](_0x10fe6f);_0x2438ac['enableCommand'](_0x10fe6f,_0x272ed9=>{_0x547222['model']['change'](_0x4e941a=>{_0x272ed9();const _0x382f08='above'===_0x5d7a7d['order'],_0x303298=_0x3569e3['getSelectionAffectedTableCells'](_0x117fd3),_0x25b733=_0x3569e3['getRowIndexes'](_0x303298),_0x12f47a=_0x382f08?_0x25b733['first']-0x1:_0x25b733['last']+0x1,_0x35e7cf=_0x303298[0x0]['findAncestor']('table'),_0x46bafe=_0x3569e3['createTableWalker'](_0x35e7cf,{'startRow':_0x12f47a,'endRow':_0x12f47a}),_0x43a31a=Array['from'](_0x46bafe)['map'](_0x52a720=>_0x4e941a['createRangeOn'](_0x52a720['cell']));_0x2438ac['markMultiRangeInsertion'](_0x43a31a,'tableRow');});});}for(const _0x67334c of['insertTableColumnLeft','insertTableColumnRight']){const _0x22a118=_0x547222['commands']['get'](_0x67334c);_0x2438ac['enableCommand'](_0x67334c,_0xaa64ce=>{_0x547222['model']['change'](_0x11efc8=>{_0xaa64ce();const _0x1d56f8='left'===_0x22a118['order'],_0x517e35=_0x3569e3['getSelectionAffectedTableCells'](_0x117fd3),_0x59692e=_0x3569e3['getColumnIndexes'](_0x517e35),_0x3f7554=_0x1d56f8?_0x59692e['first']-0x1:_0x59692e['last']+0x1,_0x35db91=_0x517e35[0x0]['findAncestor']('table'),_0x5d08ab=_0x3569e3['createTableWalker'](_0x35db91,{'startRow':0x0,'column':_0x3f7554,'includeAllSlots':!0x1}),_0xaa4abc=Array['from'](_0x5d08ab)['map'](_0x2c8f15=>_0x11efc8['createRangeOn'](_0x2c8f15['cell']));_0x2438ac['markMultiRangeInsertion'](_0xaa4abc,'tableColumn');});});}for(const _0x4631f3 of['removeTableRow','removeTableColumn']){const _0x366d24=_0x4631f3['substr'](0xb),_0x3a0d87=_0x366d24['toLowerCase'](),_0x31c615=_0x3a0d87['substr'](0x0,0x3)+'span',_0x40bc15='table'+_0x366d24,_0x2c87d1='min'+_0x366d24,_0x53327d='max'+_0x366d24;_0x2438ac['enableCommand'](_0x4631f3,()=>{_0x547222['model']['change'](_0x2b1b1d=>{const _0x2f59b2=_0x3569e3['getSelectionAffectedTableCells'](_0x117fd3),_0x512f8b=_0x2f59b2[0x0]['findAncestor']('table');let _0x436d56;if('removeTableRow'==_0x4631f3){const _0x1bf137=_0x3569e3['getRowIndexes'](_0x2f59b2);_0x436d56={'startRow':_0x1bf137['first'],'endRow':_0x1bf137['last'],'includeAllSlots':!0x0};}else{const _0x2a3134=_0x3569e3['getColumnIndexes'](_0x2f59b2);_0x436d56={'startColumn':_0x2a3134['first'],'endColumn':_0x2a3134['last'],'includeAllSlots':!0x0};}const _0x5a3198=_0x3569e3['createTableWalker'](_0x512f8b,_0x436d56),_0x5993be=Array['from'](_0x5a3198)['map'](({cell:_0x314f47})=>_0x314f47),_0x5e5bc9=Ne(_0x5993be['filter'](_0x35757c=>_0x35757c['hasAttribute'](_0x31c615))),_0x3b5549=Ne(_0x5993be['filter'](_0x2e627e=>!_0x2e627e['hasAttribute'](_0x31c615)))['map'](_0x5c251c=>_0x2b1b1d['createRangeOn'](_0x5c251c)),_0x4ce420=_0x2438ac['markMultiRangeDeletion'](_0x3b5549,_0x40bc15);if(_0x4ce420&&('tableRow'==_0x4ce420['subType']||'tableColumn'==_0x4ce420['subType'])){const _0x4c5329=this['_getSuggestionCoords'](_0x4ce420);for(const _0x16ef5e of _0x5e5bc9){const _0x3ef4a7=_0x2b1b1d['createRangeOn'](_0x16ef5e),_0xcd8312=_0x3569e3['getCellLocation'](_0x16ef5e),_0x5b4eec=_0x16ef5e['getAttribute'](_0x31c615)-0x1,_0x14b800=_0x4c5329[_0x2c87d1],_0x18b35f=_0x4c5329[_0x53327d];_0x14b800<=_0xcd8312[_0x3a0d87]&&_0xcd8312[_0x3a0d87]+_0x5b4eec<=_0x18b35f&&_0x4ce420['addRange'](_0x3ef4a7);}}});});}function _0x3ecc94(_0x2b284b){const _0xc8c8e8=Array['from'](_0x117fd3['getRanges']())['map'](_0x4d21d9=>_0x125c3e['fromRange'](_0x4d21d9));_0x547222['model']['change'](_0x198fbd=>{const _0x1c15f1=_0x198fbd['batch'];_0x2b284b=_0x2b284b['filter'](_0x45ec25=>'$graveyard'!=_0x45ec25['root']['rootName']),_0x198fbd['setSelection'](_0x2b284b),_0x547222['commands']['get']('removeTableRow')['refresh'](),_0x547222['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x547222['model']['enqueueChange'](()=>{_0x547222['model']['enqueueChange'](_0x1c15f1,_0x5776e6=>{const _0x39b939=_0xc8c8e8['filter'](_0x3431a6=>'$graveyard'!=_0x3431a6['root']['rootName']);_0x39b939['length']>0x0&&_0x5776e6['setSelection'](_0x39b939);for(const _0x2da98c of _0xc8c8e8)_0x2da98c['detach']();});});});}function _0xd8fd1c(_0x527d10){_0x547222['model']['change'](_0x2397de=>{const _0x173dae=Array['from'](_0x117fd3['getRanges']())['map'](_0x248e5c=>_0x125c3e['fromRange'](_0x248e5c)),_0x33f107=[];for(const _0xbb00e2 of _0x527d10)for(const _0x33c6c4 of _0xbb00e2['getItems']({'shallow':!0x0}))_0x33f107['push'](_0x33c6c4);for(const _0x4d0d80 of _0x33f107)'$graveyard'!=_0x4d0d80['root']['rootName']&&(_0x2397de['setSelection'](_0x2397de['createPositionAt'](_0x4d0d80,0x0)),_0x547222['commands']['get']('removeTableColumn')['refresh'](),_0x547222['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x33c6c1=_0x173dae['filter'](_0x2d6b71=>'$graveyard'!=_0x2d6b71['root']['rootName']);_0x33c6c1['length']>0x0&&_0x2397de['setSelection'](_0x33c6c1);for(const _0x344db9 of _0x173dae)_0x344db9['detach']();});}function _0x29f741(_0x3284e5,_0x508dbf){return _0x508dbf['every'](_0x13ecd9=>_0x3284e5['some'](_0x5253f6=>_0x5253f6['end']['isEqual'](_0x13ecd9['start'])||_0x13ecd9['end']['isEqual'](_0x5253f6['start'])));}function _0x208c20(_0x1e107c,_0x794e48){return!_0x1e107c['some'](_0x945644=>_0x794e48['some'](_0x2ed46e=>_0x945644['isIntersecting'](_0x2ed46e)))&&_0x1e107c['some'](_0x1be3c6=>_0x794e48['some'](_0x56437d=>_0x1be3c6['end']['isTouching'](_0x56437d['start'])));}_0x547222['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1eefd2,_0x403479,_0x5216ea)=>{if(!_0x5216ea['options']['showSuggestionHighlights'])return;const _0x534d82=_0x403479['item'];if(!_0x534d82)return;const _0x287ab7=_0x5216ea['mapper']['toViewElement'](_0x534d82);function _0x115504(_0x8211f9){return Array['isArray'](_0x8211f9)?_0x8211f9:[_0x8211f9];}_0x287ab7&&'tableCell'===_0x534d82['name']&&_0x5e4a98(_0x287ab7,_0x5216ea['writer'],(_0x20c803,_0x1548aa,_0x5da85b)=>_0x5da85b['addClass'](_0x115504(_0x1548aa['classes']),_0x20c803),(_0x216026,_0x41daf7,_0x474af6)=>_0x474af6['removeClass'](_0x115504(_0x41daf7['classes']),_0x216026));},{'priority':'highest'}),_0x2438ac['descriptionFactory']['registerDescriptionCallback'](_0x457e12=>{if('insertion'!=_0x457e12['type']&&'deletion'!=_0x457e12['type'])return;const _0x1f5b64=_0x457e12['getContainedElement']();if(null!=_0x1f5b64&&_0x1f5b64['is']('element','table')){if('insertion'==_0x457e12['type']){const _0x10d647=_0x457e12['getItems']()['filter'](_0xd070aa=>_0xd070aa['is']('$textProxy'))['map'](_0x2c06a9=>_0x2c06a9['data']);if(_0x10d647['length'])return{'type':'insertion','content':o(_0x222cd1,'*Insert:*\x20%0',o(_0x222cd1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x10d647['join']('\x20')+'\x22'))};}if('deletion'==_0x457e12['type']){const _0x563c2d=_0x457e12['getItems']()['filter'](_0x1d7799=>_0x1d7799['is']('$textProxy'))['map'](_0x468132=>_0x468132['data']);if(_0x563c2d['length'])return{'type':'deletion','content':o(_0x222cd1,'*Remove:*\x20%0',o(_0x222cd1,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x563c2d['join']('\x20')+'\x22'))};}}}),_0x2438ac['descriptionFactory']['registerDescriptionCallback'](_0xe3b1c6=>{if('tableRow'==_0xe3b1c6['subType']){const _0x3ce34f=_0xe3b1c6['getItems']()['filter'](_0x35a3b3=>_0x35a3b3['is']('$textProxy'))['map'](_0x3ed028=>_0x3ed028['data']),_0x3f3ab9=this['_getSuggestionCoords'](_0xe3b1c6),_0x4b3fb4=_0x3f3ab9['maxRow']-_0x3f3ab9['minRow']+0x1;if('insertion'==_0xe3b1c6['type'])return _0x3ce34f['length']?{'type':'insertion','content':o(_0x222cd1,'*Insert:*\x20%0',o(_0x222cd1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4b3fb4,'\x22'+_0x3ce34f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x222cd1,'*Insert:*\x20%0',o(_0x222cd1,'ELEMENT_TABLE_ROW',_0x4b3fb4))};if('deletion'==_0xe3b1c6['type'])return _0x3ce34f['length']?{'type':'deletion','content':o(_0x222cd1,'*Remove:*\x20%0',o(_0x222cd1,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4b3fb4,'\x22'+_0x3ce34f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x222cd1,'*Remove:*\x20%0',o(_0x222cd1,'ELEMENT_TABLE_ROW',_0x4b3fb4))};}if('tableColumn'==_0xe3b1c6['subType']){const _0x4d7901=_0xe3b1c6['getItems']()['filter'](_0x30d82e=>_0x30d82e['is']('$textProxy'))['map'](_0x35188e=>_0x35188e['data']),_0x1ee7b5=this['_getSuggestionCoords'](_0xe3b1c6),_0x523fe8=_0x1ee7b5['maxColumn']-_0x1ee7b5['minColumn']+0x1;if('insertion'==_0xe3b1c6['type'])return _0x4d7901['length']?{'type':'insertion','content':o(_0x222cd1,'*Insert:*\x20%0',o(_0x222cd1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x523fe8,'\x22'+_0x4d7901['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x222cd1,'*Insert:*\x20%0',o(_0x222cd1,'ELEMENT_TABLE_COLUMN',_0x523fe8))};if('deletion'==_0xe3b1c6['type'])return _0x4d7901['length']?{'type':'deletion','content':o(_0x222cd1,'*Remove:*\x20%0',o(_0x222cd1,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x523fe8,'\x22'+_0x4d7901['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x222cd1,'*Remove:*\x20%0',o(_0x222cd1,'ELEMENT_TABLE_COLUMN',_0x523fe8))};}}),_0x2438ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3ecc94),_0x2438ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3ecc94),_0x2438ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xd8fd1c),_0x2438ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xd8fd1c),_0x2438ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x29f741),_0x2438ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x29f741),_0x2438ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x208c20),_0x2438ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x208c20);}['_acceptFormatSuggestionCallbackFactory'](){const _0xabed71=this['editor'],_0x723970=_0xabed71['model']['document']['selection'];return(_0x1512bd,_0x80af42)=>{_0xabed71['model']['change'](_0x434557=>{const {commandName:_0x334b70,commandParams:_0x347f2f}=_0x80af42;let _0x5a3aee=_0x1512bd[0x0]['end']['nodeBefore'];_0x347f2f&&_0x347f2f[0x0]&&!0x1===_0x347f2f[0x0]['forceValue']&&(_0x5a3aee=_0x1512bd[0x0]['start']['nodeAfter']);const _0x1405c9=_0x434557['createRangeIn'](_0x5a3aee);if('$graveyard'==_0x1405c9['root']['rootName'])return;const _0x37e463=Array['from'](_0x723970['getRanges']())['map'](_0xbcf7d7=>_0x125c3e['fromRange'](_0xbcf7d7));_0x434557['setSelection'](_0x1405c9),_0xabed71['commands']['get'](_0x334b70)['refresh'](),_0x347f2f['push']({'forceDefaultExecution':!0x0}),_0xabed71['execute'](_0x334b70,..._0x347f2f);const _0x9aae9d=_0x37e463['filter'](_0x290004=>'$graveyard'!=_0x290004['root']['rootName']);_0x9aae9d['length']>0x0&&_0x434557['setSelection'](_0x9aae9d);for(const _0x4792bb of _0x37e463)_0x4792bb['detach']();});};}['_getCoordsForCells'](_0x509525){const _0x14ee6d=this['editor']['plugins']['get']('TableUtils');let _0x3a1ed9=Number['MAX_SAFE_INTEGER'],_0x2834e1=Number['MIN_SAFE_INTEGER'],_0x4f4112=Number['MAX_SAFE_INTEGER'],_0xe4469b=Number['MIN_SAFE_INTEGER'];for(const _0x288a0c of _0x509525){if('$graveyard'==_0x288a0c['root']['rootName'])continue;const {row:_0x59367e,column:_0x4fcd33}=_0x14ee6d['getCellLocation'](_0x288a0c),_0x34ecc2=_0x288a0c['hasAttribute']('rowspan')?_0x288a0c['getAttribute']('rowspan')-0x1:0x0,_0x543518=_0x288a0c['hasAttribute']('colspan')?_0x288a0c['getAttribute']('colspan')-0x1:0x0;_0x3a1ed9=_0x59367e<_0x3a1ed9?_0x59367e:_0x3a1ed9,_0x2834e1=_0x59367e+_0x34ecc2>_0x2834e1?_0x59367e+_0x34ecc2:_0x2834e1,_0x4f4112=_0x4fcd33<_0x4f4112?_0x4fcd33:_0x4f4112,_0xe4469b=_0x4fcd33+_0x543518>_0xe4469b?_0x4fcd33+_0x543518:_0xe4469b;}return{'minRow':_0x3a1ed9,'maxRow':_0x2834e1,'minColumn':_0x4f4112,'maxColumn':_0xe4469b};}['_setupColumnsRowsFixing'](){const _0x2b8e32=this['editor'],_0x46d50b=_0x2b8e32['plugins']['get']('TrackChangesEditing'),_0x395d34=_0x2b8e32['plugins']['get']('TableUtils');_0x2b8e32['model']['document']['on']('change:data',()=>{const _0x4a0969=Array['from'](_0x2b8e32['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c7c33,data:_0xb03eb9}of _0x4a0969){const {group:_0x11df0f,id:_0x5b0d4c,subType:_0x4eb1e8}=_0x46d50b['_splitMarkerName'](_0x2c7c33);if('suggestion'!=_0x11df0f)continue;if(null!=_0xb03eb9['oldRange'])continue;const _0x39c901=_0x46d50b['getSuggestion'](_0x5b0d4c);this['_tablePostFixingSubtypes']['includes'](_0x4eb1e8)&&this['_tableSuggestions']['add'](_0x39c901);}},{'priority':'low'});const _0x2b2025=(_0x486137,_0x3d51bd)=>{let _0x45d6a1=!0x1;const _0x5b44dc=_0x3d51bd['createRangeOn'](_0x486137),_0x28e329=_0x486137['findAncestor']('table'),_0x31f6e1=_0x395d34['getCellLocation'](_0x486137);for(const _0x4d5ca2 of this['_tableSuggestions']){const _0xceb988=_0x4d5ca2['subType'],_0x17b0da=_0xceb988['startsWith']('tablePaste'),_0x455efe=_0xceb988['substr'](_0x17b0da?0xa:0x5),_0x3e50b3=_0x455efe['toLowerCase'](),_0x3edccb=_0x3e50b3['substr'](0x0,0x3)+'span',_0x5d3369='min'+_0x455efe,_0x4ca490='max'+_0x455efe;if(!_0x4d5ca2['isInContent'])continue;if(_0x28e329!=_0x4d5ca2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4d5ca2['isIntersectingWithRange'](_0x5b44dc))continue;const _0x7530f7=_0x486137['hasAttribute'](_0x3edccb)?_0x486137['getAttribute'](_0x3edccb)-0x1:0x0,_0x1ffda0=this['_getSuggestionCoords'](_0x4d5ca2),_0xda974c=_0x1ffda0[_0x5d3369],_0x35bb11=_0x1ffda0[_0x4ca490];_0xda974c<=_0x31f6e1[_0x3e50b3]&&_0x31f6e1[_0x3e50b3]+_0x7530f7<=_0x35bb11&&(_0x4d5ca2['addRange'](_0x5b44dc),_0x45d6a1=!0x0);}return _0x45d6a1;};_0x2b8e32['model']['document']['registerPostFixer'](_0x1d5f39=>{let _0xdece10=!0x1;for(const _0x48d662 of _0x2b8e32['model']['document']['differ']['getChanges']())if('insert'==_0x48d662['type']){if('tableRow'==_0x48d662['name']){for(const _0x48a271 of _0x48d662['position']['nodeAfter']['getChildren']())_0xdece10=_0xdece10||_0x2b2025(_0x48a271,_0x1d5f39);}else'tableCell'==_0x48d662['name']&&(_0xdece10=_0xdece10||_0x2b2025(_0x48d662['position']['nodeAfter'],_0x1d5f39));}return _0xdece10;});}['_getSuggestionCoords'](_0xf6d6da){return this['_getCoordsForCells'](_0xf6d6da['getRanges']()['map'](_0x3304b0=>_0x3304b0['start']['nodeAfter']));}}function Ne(_0x5974a4){return Array['from'](new Set(_0x5974a4)['values']());}class Nt extends _0x5320e9{static get['requires'](){return[Ct];}['afterInit'](){const _0x554b5e=this['editor'],_0x173da3=_0x554b5e['model']['document']['selection'],_0x5ed7d6=_0x554b5e['locale'];if(!_0x554b5e['plugins']['has']('TableEditing'))return;const _0x336a30=_0x554b5e['plugins']['get']('TrackChangesEditing'),_0x464e62=_0x554b5e['plugins']['get']('TableUtils'),_0x1d4408=_0x554b5e['plugins']['get'](Ct);_0x1d4408['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x336a30['enableCommand']('mergeTableCells',()=>{const _0xddf3c=_0x464e62['getSelectionAffectedTableCells'](_0x554b5e['model']['document']['selection']);_0x554b5e['model']['change'](()=>{_0x336a30['markMultiRangeBlockFormat'](_0xddf3c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x554b5e['commands']['get']('mergeTableCells')['on']('execute',(_0x548612,_0x4f8d24)=>{_0x554b5e['commands']['get']('trackChanges')['value']&&(_0x4f8d24['length']>0x0&&_0x4f8d24[_0x4f8d24['length']-0x1]&&_0x4f8d24[_0x4f8d24['length']-0x1]['forceDefaultExecution']||_0x336a30['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x548612['stop']());},{'priority':'highest'});for(const _0x15e1f6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1fa7ab=_0x554b5e['commands']['get'](_0x15e1f6);_0x336a30['enableCommand'](_0x15e1f6,()=>{const _0x464d9a=_0x554b5e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d63a5=>_0x2d63a5['is']('element','tableCell')),_0x2fe90e=_0x1fa7ab['value'];_0x554b5e['model']['change'](()=>{_0x336a30['markMultiRangeBlockFormat']([_0x464d9a,_0x2fe90e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x19b46f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5bb5e8=_0x554b5e['commands']['get'](_0x19b46f);_0x336a30['enableCommand'](_0x19b46f,()=>{const _0x565997=_0x464e62['getSelectionAffectedTableCells'](_0x554b5e['model']['document']['selection'])[0x0],_0x3cf896=_0x565997['findAncestor']('table'),{column:_0x10d4c3,row:_0x57acf0}=_0x464e62['getCellLocation'](_0x565997);let _0x4c0d32=[];if('horizontally'==_0x5bb5e8['direction']){const _0x2b4be0=_0x464e62['createTableWalker'](_0x3cf896,{'startRow':_0x57acf0,'endRow':_0x57acf0,'includeAllSlots':!0x0});_0x4c0d32=Array['from'](_0x2b4be0)['map'](_0x12895d=>_0x12895d['cell']);}else{const _0x34d2af=_0x464e62['createTableWalker'](_0x3cf896,{'column':_0x10d4c3,'includeAllSlots':!0x0});_0x4c0d32=Array['from'](_0x34d2af)['map'](_0x796212=>_0x796212['cell']);}_0x554b5e['model']['change'](_0x38ea20=>{_0x336a30['markBlockFormat'](_0x38ea20['createRangeOn'](_0x565997),{'commandName':_0x19b46f,'commandParams':[]},_0x4c0d32,_0x19b46f);});});}_0x336a30['descriptionFactory']['registerDescriptionCallback'](_0xee1662=>{if('formatBlock'!=_0xee1662['type']&&'formatInline'!=_0xee1662['type'])return;const {data:_0x1c2437}=_0xee1662;return _0x1c2437&&'mergeTableCells'==_0x1c2437['commandName']?{'type':'format','content':o(_0x5ed7d6,'*Merge\x20cells*')}:void 0x0;}),_0x336a30['descriptionFactory']['registerDescriptionCallback'](_0x4e36bf=>{if('formatBlock'!=_0x4e36bf['type']&&'formatInline'!=_0x4e36bf['type'])return;const {data:_0x44f025}=_0x4e36bf;return _0x44f025?'splitTableCellVertically'==_0x44f025['commandName']?{'type':'format','content':o(_0x5ed7d6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x44f025['commandName']?{'type':'format','content':o(_0x5ed7d6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2254ea=_0x1d4408['_acceptFormatSuggestionCallbackFactory']();for(const _0x23e6ea of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x336a30['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23e6ea,'accept',_0x2254ea);for(const _0x5bb334 of['splitTableCellVertically','splitTableCellHorizontally'])_0x336a30['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5bb334,'accept',_0x2254ea);_0x336a30['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5e81cd=>{_0x554b5e['model']['change'](_0x54cf23=>{const _0x1ffc27=Array['from'](_0x173da3['getRanges']())['map'](_0x17891d=>_0x125c3e['fromRange'](_0x17891d));_0x54cf23['setSelection'](_0x5e81cd),_0x554b5e['commands']['get']('mergeTableCells')['refresh'](),_0x554b5e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x180a11=_0x1ffc27['filter'](_0xa2a5b3=>'$graveyard'!=_0xa2a5b3['root']['rootName']);_0x180a11['length']>0x0&&_0x54cf23['setSelection'](_0x180a11);for(const _0x5e7110 of _0x1ffc27)_0x5e7110['detach']();});});for(const _0x42b4b1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x588af3=_0x554b5e['commands']['get'](_0x42b4b1);_0x588af3['on']('set:isEnabled',(_0x399154,_0x5ed90b,_0x41d010)=>{if(_0x41d010){const _0x2f11cf=_0x554b5e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x898fa8=>_0x898fa8['is']('element','tableCell'));this['_areMergableCells'](_0x588af3['value'],_0x2f11cf)||(_0x399154['return']=!0x1,_0x399154['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x7a1a9b=this['editor']['commands']['get']('mergeTableCells'),_0x45b9cf=this['editor']['plugins']['get']('TableUtils');if(!_0x7a1a9b['isEnabled'])return!0x1;const _0x4842d0=_0x45b9cf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xa25006 of _0x4842d0)for(const _0x28fe7f of _0x4842d0)if(_0xa25006!=_0x28fe7f&&!this['_areMergableCells'](_0xa25006,_0x28fe7f))return!0x1;return!0x0;}['_areMergableCells'](_0x4065f0,_0x25fc0a){const _0x4003f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2eee64=this['editor']['model']['createRangeOn'](_0x4065f0),_0x31647c=this['editor']['model']['createRangeOn'](_0x25fc0a),_0x130074=new Set(),_0x33ded5=new Set();for(const _0x3425ba of _0x4003f2['getSuggestions']())if(('insertion'==_0x3425ba['type']||'deletion'==_0x3425ba['type']||'mergeTableCells'==_0x3425ba['subType'])&&_0x3425ba['isInContent']){for(const _0x54dd88 of _0x3425ba['getRanges']())_0x54dd88['containsRange'](_0x2eee64,!0x0)&&_0x130074['add'](_0x3425ba['type']+':'+_0x3425ba['author']['id']),_0x54dd88['containsRange'](_0x31647c,!0x0)&&_0x33ded5['add'](_0x3425ba['type']+':'+_0x3425ba['author']['id']);}if(_0x130074['size']!=_0x33ded5['size'])return!0x1;for(const _0x229f24 of _0x130074)if(!_0x33ded5['has'](_0x229f24))return!0x1;return!0x0;}}class Dt extends _0x5320e9{static get['requires'](){return[Ct];}['afterInit'](){const _0x549a3f=this['editor'];if(!_0x549a3f['plugins']['has']('TableEditing'))return;const _0x470515=_0x549a3f['locale'],_0x4fc08c=_0x549a3f['plugins']['get']('TrackChangesEditing');_0x4fc08c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4fc08c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4fc08c['registerBlockAttribute']('headingRows'),_0x4fc08c['registerBlockAttribute']('headingColumns'),_0x4fc08c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x470515,'FORMAT_HEADER_ROW')),_0x4fc08c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x470515,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xfdb8cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51ef53=this['editor']['plugins']['get']('TableUtils'),_0x5b8d5e=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1d8dc9({showActiveMarker:_0x16d76b=!0x0,setDataAttribute:_0x1d35d6=!0x0}={}){return(_0x212f72,_0x4953fa,_0x41cd7e)=>{const {type:_0x11935e,id:_0x1bbea3}=_0xfdb8cc['_splitMarkerName'](_0x4953fa['markerName']),_0x4c6240=_0xfdb8cc['getSuggestion'](_0x1bbea3),_0x38a618=_0x4c6240['data'];if('formatBlock'!=_0x4c6240['type']||!_0x38a618||'setTableColumnHeader'!=_0x38a618['commandName'])return;if(_0x4953fa['item'])return void _0x212f72['stop']();if(!_0x41cd7e['consumable']['consume'](_0x4953fa['markerRange'],_0x212f72['name']))return;const _0xd53862=_0x4953fa['markerRange']['start']['nodeAfter'],_0x25cd92=_0x4953fa['markerRange']['end']['nodeBefore'],_0x559d38=_0xd53862['parent']['parent'],{column:_0x1b984a}=_0x51ef53['getCellLocation'](_0xd53862),{column:_0x5bc9fe}=_0x51ef53['getCellLocation'](_0x25cd92);for(let _0x9e4d75=_0x1b984a;_0x9e4d75<=_0x5bc9fe;_0x9e4d75++){const _0x15d1c8=_0x51ef53['createTableWalker'](_0x559d38,{'column':_0x9e4d75,'includeAllSlots':!0x1});for(const _0x18b614 of _0x15d1c8){const _0x2c8dd8=_0x18b614['cell'],_0x108e74=_0x41cd7e['mapper']['toViewElement'](_0x2c8dd8);_0x41cd7e['writer']['addClass']('ck-suggestion-marker-'+_0x11935e,_0x108e74),_0x1d35d6&&_0x41cd7e['writer']['setAttribute']('data-suggestion',_0x1bbea3,_0x108e74),_0x41cd7e['mapper']['bindElementToMarker'](_0x108e74,_0x4953fa['markerName']),_0x16d76b&&(_0xfdb8cc['activeMarkers']['includes'](_0x4953fa['markerName'])?_0x41cd7e['writer']['addClass']('ck-suggestion-marker--active',_0x108e74):_0x41cd7e['writer']['removeClass']('ck-suggestion-marker--active',_0x108e74));}}};}_0xfdb8cc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5b8d5e),_0xfdb8cc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5b8d5e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1d8dc9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e2f36,_0x43c44a,_0x56c0ee)=>{_0x56c0ee['options']['showSuggestionHighlights']&&_0x1d8dc9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4e2f36,_0x43c44a,_0x56c0ee);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3bcaa3,_0x400b46,_0xe3f173)=>{const {type:_0x242cfc,id:_0x1fac5}=_0xfdb8cc['_splitMarkerName'](_0x400b46['markerName']),_0x5c868f=_0xfdb8cc['getSuggestion'](_0x1fac5),_0x1e2000=_0x5c868f['data'];if('formatBlock'!=_0x5c868f['type']||!_0x1e2000||'setTableColumnHeader'!=_0x1e2000['commandName'])return;const _0x3898cf=_0xe3f173['mapper']['markerNameToElements'](_0x400b46['markerName']);if(_0x3898cf){for(const _0x4b51b2 of _0x3898cf)_0xe3f173['writer']['removeClass']('ck-suggestion-marker-'+_0x242cfc,_0x4b51b2),_0xe3f173['writer']['removeClass']('ck-suggestion-marker--active',_0x4b51b2),_0xe3f173['writer']['removeAttribute']('data-suggestion',_0x4b51b2),_0xe3f173['mapper']['unbindElementFromMarkerName'](_0x4b51b2,_0x400b46['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1378ae=this['editor'],_0x57c7d6=_0x1378ae['locale'];function _0x87e9ae(_0x166f2c){return{'type':'format','content':o(_0x57c7d6,'*Format:*\x20%0',_0x166f2c)};}_0x1378ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x386851=>{if('formatBlock'!=_0x386851['type'])return;const {data:_0x5c2886}=_0x386851;if(_0x5c2886){if('setTableRowHeader'==_0x5c2886['commandName']){const _0x310da2=_0x5c2886['commandParams'][0x0]['forceValue'];return _0x87e9ae(o(_0x57c7d6,_0x310da2?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5c2886['commandName']){const _0x49ac1b=_0x5c2886['commandParams'][0x0]['forceValue'];return _0x87e9ae(o(_0x57c7d6,_0x49ac1b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x46573=>[_0x46573,null]));class Mt extends _0x5320e9{static get['requires'](){return[Ct];}['afterInit'](){const _0x3e6eea=this['editor'];if(!_0x3e6eea['plugins']['has']('TableClipboard'))return;const _0x5d77d7=_0x3e6eea['plugins']['get']('TrackChangesEditing'),_0x13e5e0=_0x3e6eea['plugins']['get']('TableUtils'),_0xe5182e=_0x3e6eea['plugins']['get'](Ct),_0x21e37a=_0x3e6eea['plugins']['get']('TableClipboard');_0xe5182e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3e6eea['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3e6eea['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x291c2d=null;_0x3e6eea['model']['on']('insertContent',(_0x39ba74,_0x27e935)=>{const [_0x265cdc,_0x94b954]=_0x27e935,_0x50bd04=_0x27e935[_0x27e935['length']-0x1];_0x50bd04&&_0x50bd04['forceDefaultExecution']||_0x5d77d7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4ad5f1,_0x413fed,_0x201b64,_0x5340de,_0x50d176){if(_0x413fed&&!_0x413fed['is']('documentSelection'))return!0x1;const _0x2a0584=_0x50d176['getTableIfOnlyTableInContent'](_0x4ad5f1,_0x201b64);if(!_0x2a0584||!Ue(_0x2a0584,void 0x0,_0x5340de))return!0x1;const _0x4dca56=_0x5340de['getSelectionAffectedTableCells'](_0x201b64['document']['selection']);if(!_0x4dca56['length'])return!0x1;const _0xcd17fe=_0x4dca56[0x0]['findAncestor']('table'),_0x436c7a=_0x5340de['getRowIndexes'](_0x4dca56),_0x43af9c=_0x5340de['getColumnIndexes'](_0x4dca56),_0x2a0d50={'startRow':_0x436c7a['first'],'endRow':_0x436c7a['last'],'startColumn':_0x43af9c['first'],'endColumn':_0x43af9c['last']};return 0x1==_0x4dca56['length']&&(_0x2a0d50['endRow']+=_0x5340de['getRows'](_0x2a0584)-0x1,_0x2a0d50['endColumn']+=_0x5340de['getColumns'](_0x2a0584)-0x1),Ue(_0xcd17fe,_0x2a0d50,_0x5340de);}(_0x265cdc,_0x94b954,_0x3e6eea['model'],_0x13e5e0,_0x21e37a)&&(_0x39ba74['stop'](),_0x291c2d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3e6eea['model']['change'](()=>{_0x3e6eea['model']['insertContent'](_0x27e935[0x0],_0x27e935[0x1],_0x27e935[0x2],{'forceDefaultExecution':!0x0});const _0x3a7d6f=_0x1a7a2c(),{rowInsertionRanges:_0x462d55,columnInsertionRanges:_0x24ee0c,insertionRanges:_0x4f2e55,deletionRanges:_0x60534d,cells:_0x3b9301}=_0x291c2d;_0x462d55['length']&&_0x5d77d7['markMultiRangeInsertion'](_0x462d55,'tablePasteRow',{'tablePasteChainId':_0x3a7d6f}),_0x24ee0c['length']&&_0x5d77d7['markMultiRangeInsertion'](_0x24ee0c,'tablePasteColumn',{'tablePasteChainId':_0x3a7d6f}),_0x4f2e55['length']&&(_0x5d77d7['markMultiRangeInsertion'](_0x4f2e55,'tablePaste',{'tablePasteChainId':_0x3a7d6f,'skipNestingCheck':!0x0}),_0x4f2e55['forEach'](_0x1d1916=>_0x1d1916['detach']?.())),_0x60534d['length']&&(_0x5d77d7['markMultiRangeDeletion'](_0x60534d,'tablePaste',{'tablePasteChainId':_0x3a7d6f,'skipNestingCheck':!0x0}),_0x60534d['forEach'](_0x552d69=>_0x552d69['detach']?.()));const _0x3a8bdf=_0x5d77d7['markMultiRangeBlockFormat'](_0x3b9301['map'](({element:_0x1a4488})=>_0x1a4488),{'formatGroupId':_0x1a7a2c()},[],'tablePasteCell',{'tablePasteChainId':_0x3a7d6f});if(_0x3a8bdf){const _0x2dd0c5=_0x3a8bdf['getMarkers'](),_0x334038=[];for(const {element:_0x4361a4,attributes:_0x1ae6f3}of _0x3b9301){if(!_0x1ae6f3)continue;const _0x151705=_0x3e6eea['model']['createRangeOn'](_0x4361a4),_0x451c34=_0x2dd0c5['find'](_0x5ad488=>_0x5ad488['getRange']()['isEqual'](_0x151705));_0x451c34&&_0x334038['push']([_0x451c34['name'],_0x1ae6f3]);}_0x334038['length']&&_0x3a8bdf['setAttribute']('markerAttributes',Object['fromEntries'](_0x334038));}_0x291c2d=null;}));},{'priority':_0x4a41e9['high']+0xa}),_0x3e6eea['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x10359b,_0x39f254)=>{const [_0x14499d,_0x91c25b,,_0x1c7228]=_0x39f254;if(!_0x291c2d)return;_0x10359b['stop']();const _0x1ec2ee=_0x14499d['cell'],_0x5c0d23=_0x91c25b,_0x18cdfc=Oe(_0x1ec2ee),_0x449eee=Oe(_0x5c0d23);_0x10359b['return']=_0x1ec2ee;let _0x29812f=null,_0x6d27ed=null;if(_0x449eee||_0x18cdfc){if(_0x18cdfc&&!_0x449eee){_0x1c7228['remove'](_0x1ec2ee['getChild'](0x0));for(const _0x55f92a of Array['from'](_0x5c0d23['getChildren']()))_0x1c7228['insert'](_0x55f92a,_0x1ec2ee,'end');const _0x2cf89d=_0x291c2d['rowInsertionIndexes']['includes'](_0x14499d['row']),_0x2f709d=_0x291c2d['columnInsertionIndexes']['includes'](_0x14499d['column']);_0x2cf89d||_0x2f709d||(_0x29812f=_0x125c3e['fromRange'](_0x1c7228['createRangeIn'](_0x1ec2ee)));}else _0x449eee&&!_0x18cdfc&&(_0x6d27ed=_0x1c7228['createRangeIn'](_0x1ec2ee));}else{const _0x2d00cf=_0x1c7228['createElement']('tableCellSuggestion'),_0x5d329a=_0x1c7228['createElement']('tableCellSuggestion');_0x1c7228['wrap'](_0x1c7228['createRangeIn'](_0x1ec2ee),_0x5d329a),_0x1c7228['insert'](_0x2d00cf,_0x1ec2ee,0x0);for(const _0x59f3c7 of Array['from'](_0x5c0d23['getChildren']()))_0x1c7228['insert'](_0x59f3c7,_0x2d00cf,'end');_0x29812f=_0x125c3e['fromRange'](_0x1c7228['createRangeOn'](_0x2d00cf)),_0x6d27ed=_0x125c3e['fromRange'](_0x1c7228['createRangeOn'](_0x5d329a));}const _0x10f011=Array['from'](_0x5c0d23['getAttributes']())['filter'](([_0x2a53b7])=>Be['includes'](_0x2a53b7));_0x291c2d['cells']['push']({'element':_0x1ec2ee,'attributes':_0x10f011['length']?Object['fromEntries'](_0x10f011):null}),_0x29812f&&_0x291c2d['insertionRanges']['push'](_0x29812f),_0x6d27ed&&_0x291c2d['deletionRanges']['push'](_0x6d27ed);},{'priority':'high'}),_0x13e5e0['on']('insertColumns',(_0x317438,_0x48ccd8)=>{const [_0x3cbca5,_0x407365={}]=_0x48ccd8;if(!_0x291c2d)return;const _0x9a6be=_0x407365['at']||0x0,_0xe0d888=_0x407365['columns']||0x1;_0x291c2d['columnInsertionIndexes']=new Array(_0xe0d888)['fill'](_0x9a6be)['map']((_0x46d0a7,_0x48e48c)=>_0x46d0a7+_0x48e48c);for(const {cell:_0x39da77}of _0x13e5e0['createTableWalker'](_0x3cbca5,{'startColumn':_0x9a6be,'endColumn':_0x9a6be+_0xe0d888-0x1}))_0x291c2d['columnInsertionRanges']['push'](_0x3e6eea['model']['createRangeOn'](_0x39da77));},{'priority':'low'}),_0x13e5e0['on']('insertRows',(_0x333367,_0x401aee)=>{const [_0x360bf5,_0x4aef3d={}]=_0x401aee;if(!_0x291c2d)return;const _0x88320=_0x4aef3d['at']||0x0,_0x1cd7af=_0x4aef3d['rows']||0x1;_0x291c2d['rowInsertionIndexes']=new Array(_0x1cd7af)['fill'](_0x88320)['map']((_0x1c865e,_0x3a573a)=>_0x1c865e+_0x3a573a);for(const {cell:_0x3e4955}of _0x13e5e0['createTableWalker'](_0x360bf5,{'startRow':_0x88320,'endRow':_0x88320+_0x1cd7af-0x1}))_0x291c2d['rowInsertionRanges']['push'](_0x3e6eea['model']['createRangeOn'](_0x3e4955));},{'priority':'low'}),_0x5d77d7['descriptionFactory']['registerDescriptionCallback'](_0x5bdf92=>{if(_0x5bdf92['subType']&&_0x5bdf92['subType']['startsWith']('tablePaste'))return _0x5bdf92['previous']?{}:{'type':'insertion','content':o(_0x3e6eea['locale'],'*Replace\x20table\x20cells*')};});const _0x3494cb=()=>!0x1;for(const _0xfbdca2 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5d77d7['_suggestionFactory']['registerCustomCallback']('insertion',_0xfbdca2,'join',_0x3494cb),_0x5d77d7['_suggestionFactory']['registerCustomCallback']('deletion',_0xfbdca2,'join',_0x3494cb),_0x5d77d7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xfbdca2,'join',_0x3494cb);_0x5d77d7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3494cb),_0x5d77d7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x427bb7,_0x610fd4,_0x4e1082)=>{const _0x77bac4=_0x427bb7['map'](_0x33fb15=>_0x33fb15['getContainedElement']())['filter'](_0x3f4b6d=>_0x3f4b6d),_0x1792a9=new Map(_0x77bac4['map'](_0x32a450=>[_0x32a450,null]));if(_0x291c2d){for(const {element:_0x58afbf,attributes:_0x5f3c14}of _0x291c2d['cells'])_0x5f3c14&&_0x1792a9['set'](_0x58afbf,_0x5f3c14);}else{if(_0x4e1082&&_0x4e1082['markerAttributes'])for(const [_0x3cda24,_0x46165c]of Object['entries'](_0x4e1082['markerAttributes'])){const _0x79170b=_0x3e6eea['model']['markers']['get'](_0x3cda24),_0x270033=_0x79170b?_0x79170b['getRange']()['getContainedElement']():null;_0x270033&&_0x1792a9['set'](_0x270033,_0x46165c);}}_0x3e6eea['model']['change'](_0x17dcbb=>{for(const [_0xc3d0ce,_0x51baf6]of _0x1792a9)_0x17dcbb['setAttributes']({...xe,..._0x51baf6},_0xc3d0ce);});});const _0x1efdce=(_0x469816,_0x5f35e9)=>{_0x5d77d7['_suggestionFactory']['registerCustomCallback'](_0x469816,'tablePaste',_0x5f35e9,(_0xbdb4ee,_0x5e15ae,_0x4f395d)=>{_0x3e6eea['model']['change'](_0xfef102=>{const _0x5037c1=[];for(const _0x4345a9 of _0xbdb4ee){const _0x4600a6=_0x4345a9['start']['nodeAfter'];_0x4600a6['is']('element','tableCellSuggestion')&&_0x5037c1['push'](_0x4600a6);}_0x5d77d7['_suggestionFactory']['getSuggestionCallback'](_0x469816,null,_0x5f35e9)(_0xbdb4ee,_0x5e15ae,_0x4f395d);for(const _0x5a6672 of _0x5037c1)'$graveyard'!=_0x5a6672['root']['rootName']&&_0xfef102['unwrap'](_0x5a6672);});});};_0x1efdce('insertion','accept'),_0x1efdce('insertion','discard'),_0x1efdce('deletion','accept'),_0x1efdce('deletion','discard'),_0x5d77d7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x424616=>{const _0x39e839=_0x424616['map'](_0x132e49=>_0x132e49['getContainedElement']()),_0x434dcb=_0x39e839[0x0]['findAncestor']('table'),{minRow:_0xc12e4e,maxRow:_0x5c80e7}=_0xe5182e['_getCoordsForCells'](_0x39e839);_0x13e5e0['removeRows'](_0x434dcb,{'at':_0xc12e4e,'rows':_0x5c80e7-_0xc12e4e+0x1});}),_0x5d77d7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5cf9b6=>{const _0x51f8b1=_0x5cf9b6['map'](_0x1a58d6=>_0x1a58d6['getContainedElement']()),_0x54700f=_0x51f8b1[0x0]['findAncestor']('table'),{minColumn:_0x135acc,maxColumn:_0x5b7646}=_0xe5182e['_getCoordsForCells'](_0x51f8b1);_0x13e5e0['removeColumns'](_0x54700f,{'at':_0x135acc,'columns':_0x5b7646-_0x135acc+0x1});});const _0x32d9f2=(_0x52b9cd,_0x1bbc4f)=>{if(!_0x1bbc4f['subType']||!_0x1bbc4f['subType']['startsWith']('tablePaste'))return;const _0x2a3991=_0x1bbc4f['attributes']['tablePasteChainId'],_0xd6f03f=_0x5d77d7['getSuggestions']()['filter'](_0x2a0640=>_0x2a0640['isInContent']&&_0x2a0640['attributes']&&_0x2a0640['attributes']['tablePasteChainId']==_0x2a3991);_0xd6f03f['length']&&_0x1bbc4f['getAllAdjacentSuggestions']()['length']!=_0xd6f03f['length']&&_0xd6f03f['reduce']((_0x29216c,_0x5793dc)=>(_0x29216c['next']=_0x5793dc,_0x5793dc['previous']=_0x29216c,_0x5793dc));};function _0x31b277(_0x2c3f37,_0x652ec8=!0x0){const {id:_0x425150,authorId:_0x1b1348}=_0x5d77d7['_splitMarkerName'](_0x2c3f37['markerName']),_0x4a5fff=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x55d5c1=_0x5d77d7['activeMarkers']['includes'](_0x2c3f37['markerName']);return _0x55d5c1&&_0x4a5fff['push']('ck-suggestion-marker--active'),{'classes':_0x4a5fff,'attributes':{'data-suggestion':_0x425150,'data-author-id':_0x1b1348},'priority':_0x55d5c1&&_0x652ec8?0xbc2:0xbb8};}_0x5d77d7['on']('suggestionLoaded',_0x32d9f2,{'priority':'high'}),_0x5d77d7['on']('suggestionUnloaded',_0x32d9f2,{'priority':'high'}),_0x3e6eea['model']['document']['registerPostFixer'](()=>{let _0x4147db=!0x1;const _0xc08057=Array['from'](_0x3e6eea['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x233491,data:_0x29b05b}of _0xc08057){const {group:_0x200cf3,type:_0x142821,id:_0x50625c}=_0x5d77d7['_splitMarkerName'](_0x233491);if('suggestion'!=_0x200cf3||'deletion'!=_0x142821||_0x29b05b['oldRange'])continue;if(!_0x5d77d7['hasSuggestion'](_0x50625c))continue;const _0x4e2019=_0x5d77d7['getSuggestion'](_0x50625c)['getRanges'](),_0x43d772=_0x3e6eea['plugins']['get']('Users')['me'];for(const _0x44a46e of _0x5d77d7['getSuggestions']()){if(!_0x44a46e['isInContent']||_0x44a46e['author']!=_0x43d772)continue;if('formatBlock'!=_0x44a46e['type']||'tablePasteCell'!=_0x44a46e['subType'])continue;if(_0x44a46e['getRanges']()['every'](_0x270aaa=>_0x4e2019['some'](_0x53eebd=>_0x53eebd['containsRange'](_0x270aaa,!0x0)))){for(const _0x493ec2 of _0x44a46e['getAllAdjacentSuggestions']())_0x493ec2['isInContent']&&(_0x493ec2['discard'](),_0x4147db=!0x0);}}}return _0x4147db;}),_0x3e6eea['model']['document']['registerPostFixer'](_0x35443d=>{const _0xc65630=_0x3e6eea['commands']['get']('redo');if(!_0xc65630||!_0xc65630['_createdBatches']['has'](_0x35443d['batch']))return!0x1;let _0x4198eb=!0x1;const _0x108860=_0x3e6eea['plugins']['get']('Users')['me'],_0x126cc5=_0x3e6eea['model']['document']['differ']['getChanges'](),_0x3add3b=Array['from'](_0x3e6eea['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x34c16d,data:_0x7938df})=>{const {group:_0x13ac38,subType:_0x5efcb1,authorId:_0x2a1f21}=_0x5d77d7['_splitMarkerName'](_0x34c16d);return'suggestion'==_0x13ac38&&'tablePaste'==_0x5efcb1&&_0x2a1f21==_0x108860['id']&&!_0x7938df['oldRange'];});for(const _0x51403c of _0x126cc5){if('insert'!=_0x51403c['type']||'tableCellSuggestion'!=_0x51403c['name']||0x1!=_0x51403c['length'])continue;const _0x3201aa=_0x35443d['createRange'](_0x51403c['position'],_0x51403c['position']['getShiftedBy'](0x1));if(!_0x3add3b['find'](({data:_0x3efccf})=>_0x3efccf['newRange']['isEqual'](_0x3201aa))){for(const {name:_0x370a49,data:_0x512ece}of _0x3add3b)if(_0x3201aa['containsRange'](_0x512ece['newRange'])){_0x35443d['updateMarker'](_0x370a49,{'range':_0x3201aa}),_0x4198eb=!0x0;break;}}}return _0x4198eb;}),_0x3e6eea['model']['document']['registerPostFixer'](_0x4de31d=>{let _0x7b5352=!0x1;const _0x510e1e=_0x3e6eea['plugins']['get']('Users')['me'],_0x4494b4=_0x5d77d7['getSuggestions']()['filter'](_0x3e2479=>_0x3e2479['isInContent']&&_0x3e2479['author']==_0x510e1e),_0x294fd8=new Set(),_0x7eed95=new Set();for(const _0x226b31 of _0x4494b4)if('tablePaste'==_0x226b31['subType'])for(const _0x4aab3e of _0x226b31['getMarkers']()){const _0x345c76=_0x4aab3e['getRange']()['getContainedElement']();if(_0x345c76){if(_0x345c76['is']('element','tableCellSuggestion')&&Oe(_0x345c76)){_0x226b31['removeMarker'](_0x4aab3e['name']),_0x294fd8['add'](_0x345c76),_0x7b5352=!0x0;const _0x4a73e7=_0x345c76['nextSibling'],_0x740b3f=_0x345c76['previousSibling'],_0x5e7ee2=_0x4a73e7&&_0x4a73e7['is']('element','tableCellSuggestion'),_0xed161e=_0x740b3f&&_0x740b3f['is']('element','tableCellSuggestion');_0x5e7ee2&&!_0x294fd8['has'](_0x4a73e7)&&_0x7eed95['add'](_0x4a73e7),_0xed161e&&!_0x294fd8['has'](_0x740b3f)&&_0x7eed95['add'](_0x740b3f);}else _0x345c76['is']('element','paragraph')&&_0x345c76['isEmpty']&&(_0x226b31['removeMarker'](_0x4aab3e['name']),_0x7b5352=!0x0);}}else{if('tablePasteCell'==_0x226b31['subType']){if(!_0x226b31['attributes']||!_0x226b31['attributes']['tablePasteChainId'])continue;const _0x3b9ebc=_0x226b31['attributes']['markerAttributes'];if(_0x3b9ebc&&Object['keys'](_0x3b9ebc)['length'])continue;const _0x4aa17f=_0x226b31['attributes']['tablePasteChainId'];let _0x36ef64=!0x0,_0x168419=!0x0;for(const _0x52f97c of _0x4494b4)if(_0x52f97c['subType']&&_0x52f97c['subType']['startsWith']('tablePaste')){if(!_0x52f97c['attributes']['tablePasteChainId']){_0x168419=!0x1;break;}if(_0x52f97c['id']!=_0x226b31['id']&&_0x52f97c['attributes']['tablePasteChainId']==_0x4aa17f){_0x36ef64=!0x1;break;}}_0x168419&&_0x36ef64&&(_0x226b31['removeMarkers'](),_0x7b5352=!0x0);}}for(const _0x227949 of _0x294fd8)_0x4de31d['remove'](_0x227949);for(const _0x5ef7af of _0x7eed95)_0x4de31d['unwrap'](_0x5ef7af);return _0x7b5352;}),_0x3e6eea['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3cfdee=>_0x31b277(_0x3cfdee),'converterPriority':'high'}),_0x3e6eea['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5be248,_0x30d1cc)=>_0x30d1cc['options']['showSuggestionHighlights']?_0x31b277(_0x5be248,!0x1):null,'converterPriority':'high'});const _0x4f4538=_0x3e6eea['editing']['view'];this['listenTo'](_0x4f4538['document'],'clipboardOutput',(_0x4dbb4f,_0x2b64d0)=>{const _0x2f2e12=[];for(const _0x39f230 of _0x4f4538['createRangeIn'](_0x2b64d0['content'])['getItems']())_0x39f230['is']('element','suggestion-td')&&_0x2f2e12['push'](_0x39f230);_0x4f4538['change'](_0x1f1603=>{for(const _0x4f770e of _0x2f2e12)_0x1f1603['move'](_0x1f1603['createRangeIn'](_0x4f770e),_0x1f1603['createPositionBefore'](_0x4f770e)),_0x1f1603['remove'](_0x4f770e);});});}}function Oe(_0x144a6b){if(_0x144a6b['isEmpty'])return!0x0;const _0x2c71fd=_0x144a6b['getChild'](0x0);return _0x2c71fd['is']('element','paragraph')&&_0x2c71fd['isEmpty'];}function Ue(_0x8baed7,_0x3b9396={},_0x1e5c6f){for(const {isAnchor:_0x4538de,cellHeight:_0x9b8bc,cellWidth:_0x7c7435}of _0x1e5c6f['createTableWalker'](_0x8baed7,{'includeAllSlots':!0x0,..._0x3b9396}))if(!_0x4538de||0x1!=_0x9b8bc||0x1!=_0x7c7435)return!0x1;return!0x0;}class $t extends _0x5320e9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2fb20c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2fb20c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2fb20c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2fb20c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2fb20c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2fb20c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2fb20c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x309ad7,_0x32f93c){const _0x126aea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2909f9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4a92e4=_0x32f93c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x44441f=_0x2909f9['getColumnGroupElement'](_0x4a92e4);let _0x2bd01d=_0x44441f?_0x2909f9['getTableColumnsWidths'](_0x44441f):null,_0x5a3d42=_0x4a92e4['getAttribute']('tableWidth')||null;const _0x28a6f7=_0x32f93c['tableWidth']||_0x5a3d42,_0x30f960=_0x32f93c['columnWidths']||_0x2bd01d,_0x324789=this['editor']['plugins']['get']('Users')['me'];for(const _0x12c4cb of _0x126aea['getSuggestions']()){const _0x381b04=_0x12c4cb['getContainedElement']();if('resizeTable'===_0x12c4cb['subType']&&_0x381b04===_0x4a92e4){_0x12c4cb['author']!==_0x324789&&_0x12c4cb['discard']();const _0x987613=_0x12c4cb['data']['commandParams'];_0x5a3d42=_0x987613[0x0]['tableWidth'],_0x2bd01d=_0x987613[0x0]['columnWidths'];break;}}_0x309ad7({'table':_0x4a92e4,'tableWidth':_0x28a6f7,'columnWidths':_0x30f960}),_0x126aea['markBlockFormat'](_0x4a92e4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5a3d42,'columnWidths':_0x2bd01d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5b605){if('formatBlock'!=_0x5b605['type']&&'formatInline'!=_0x5b605['type'])return;const {data:_0x11cb1f}=_0x5b605;if(_0x11cb1f&&'resizeTable'===_0x11cb1f['formatGroupId']){const _0x2dbe93='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2dbe93)};}}}class Bt extends _0x5320e9{['afterInit'](){const _0x59e3ac=this['editor'];_0x59e3ac['plugins']['has']('Template')&&_0x59e3ac['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x5320e9{['afterInit'](){const _0xa18138=this['editor'];if(!_0xa18138['commands']['get']('insertTableOfContents'))return;_0xa18138['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5cbb7f=_0xa18138['plugins']['get']('TrackChangesEditing'),_0x2fce29=_0xa18138['locale'];_0x5cbb7f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x26be96=>o(_0x2fce29,'ELEMENT_TABLE_OF_CONTENTS',_0x26be96));}}class Rt extends _0x5320e9{['afterInit'](){const _0x5744d7=this['editor'];if(!_0x5744d7['plugins']['has']('Title'))return;const _0x207572=_0x5744d7['plugins']['get']('TrackChangesEditing');_0x207572['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5744d7['locale'],'ELEMENT_TITLE')),_0x5744d7['model']['document']['registerPostFixer'](_0x2617b4=>{let _0x2f0035=!0x1;const _0x227cd5=Array['from'](_0x5744d7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x131a2b,data:_0x16b4f7}of _0x227cd5){const {group:_0x130621}=_0x207572['_splitMarkerName'](_0x131a2b);if('suggestion'!==_0x130621||!_0x16b4f7['newRange'])continue;const _0x5421b3=_0x16b4f7['newRange'],_0x3de381=_0x5421b3['end']['nodeBefore'];if(!_0x3de381||!_0x3de381['is']('element','title-content'))continue;if(!_0x5421b3['start']['isTouching'](_0x5421b3['end']))continue;const _0x2f9372=_0x5744d7['model']['schema']['getNearestSelectionRange'](_0x5421b3['end'],'forward');if(_0x2f9372&&_0x2f9372['isCollapsed']){const _0x382954=_0x2617b4['createRange'](_0x5421b3['start'],_0x2f9372['start']);_0x382954['isEqual'](_0x5421b3)||(_0x2617b4['updateMarker'](_0x131a2b,{'range':_0x382954}),_0x2f0035=!0x0);}_0x2f0035||(_0x2617b4['removeMarker'](_0x131a2b),_0x2f0035=!0x0);}return _0x2f0035;});}}class Tt extends _0x5320e9{['afterInit'](){const _0x126a9c=this['editor'],_0x8f1058=_0x126a9c['plugins']['get']('TrackChangesEditing');_0x126a9c['plugins']['has']('Uploadcare')&&(_0x8f1058['enableCommand']('uploadcare'),_0x126a9c['plugins']['has']('UploadcareImageEdit')&&(_0x8f1058['enableCommand']('uploadcareImageEdit'),_0x8f1058['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x8f1058['registerBlockAttribute']('uploadcareImageId'),_0x8f1058['descriptionFactory']['registerDescriptionCallback'](_0x1c4eff=>{if('attribute'!=_0x1c4eff['type'])return;const {data:_0x1139fa}=_0x1c4eff;return _0x1139fa&&'uploadcareImageId'==_0x1139fa['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x5320e9{['afterInit'](){const _0x14633e=this['editor'],_0x65730d=_0x14633e['plugins']['get']('TrackChangesEditing');_0x14633e['plugins']['has']('UndoEditing')&&(_0x65730d['enableCommand']('undo'),_0x65730d['enableCommand']('redo'));}}class Et extends _0x5320e9{static get['requires'](){return[Ct];}['afterInit'](){const _0x19e38c=this['editor'];if(!_0x19e38c['plugins']['has']('TableCaptionEditing'))return;_0x19e38c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x5320e9{['tableProperties'];['tableCellProperties'];constructor(_0x11eea4){super(_0x11eea4),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 _0x139b6a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x46b92f of this['tableProperties'])_0x139b6a['enableCommand'](_0x46b92f,(_0x34b43c,_0xd77002)=>{const _0xd919b2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x46b92f,[_0xd919b2],this['tableProperties'],'tableProperties',_0x34b43c,_0xd77002);});_0x139b6a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x139b6a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x139b6a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xd5ca2c,_0x2e1948)=>this['handleDiscardAction'](this['tableProperties'],_0xd5ca2c,_0x2e1948)),_0x139b6a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4f434e of this['tableCellProperties'])_0x139b6a['enableCommand'](_0x4f434e,(_0x141984,_0x4188a2)=>{const _0x13db36=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4f434e,_0x13db36,this['tableCellProperties'],'tableCellProperties',_0x141984,_0x4188a2);});_0x139b6a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x139b6a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x139b6a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x56ced8,_0x284d0a)=>this['handleDiscardAction'](this['tableCellProperties'],_0x56ced8,_0x284d0a)),_0x139b6a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x139b6a['descriptionFactory']['registerDescriptionCallback'](_0x3f36b3=>this['handleSuggestionDescription'](_0x3f36b3));}['_handlePropertyChange'](_0x9cd599,_0x30eab8,_0x120c3e,_0x452691,_0x1b713f,_0xd9e6a2){const _0x539fd0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xd9e6a2['batch'],()=>{for(const _0x3efe23 of _0x30eab8){if(this['_getSuggestion'](_0x3efe23,_0x452691))_0x1b713f(_0xd9e6a2);else{const _0x14702d={};for(const _0x309931 of _0x120c3e){const _0x171db6=_0x3efe23['getAttribute'](_0x309931);void 0x0!==_0x171db6&&(_0x14702d[_0x309931]=_0x171db6);}_0x1b713f(_0xd9e6a2),_0x539fd0['markBlockFormat'](_0x3efe23,{'commandParams':[_0x14702d]},[],_0x452691);}}});}['handleDiscardAction'](_0x24dd50,_0x342991,_0x34c220){const _0x20124e=_0x342991[0x0]['start']['nodeAfter'],_0x464957=_0x34c220['commandParams'][0x0];this['editor']['model']['change'](_0x567471=>{for(const _0x15c725 of _0x24dd50)void 0x0!==_0x464957[_0x15c725]?_0x567471['setAttribute'](_0x15c725,_0x464957[_0x15c725],_0x20124e):_0x567471['removeAttribute'](_0x15c725,_0x20124e);});}['handleSuggestionDescription'](_0x2328dc){if(_0x2328dc['data'])switch(_0x2328dc['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'](_0x5e8cac,_0x5a413d){const _0x8f2cc0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x708a57 of _0x8f2cc0['getSuggestions']({'skipNotAttached':!0x0})){const _0x2e2667=_0x708a57['getContainedElement']();if(_0x708a57['subType']===_0x5a413d&&_0x2e2667===_0x5e8cac)return _0x708a57;}return null;}}const m='$elementName';class p extends _0x5320e9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xfc0992,_0x1cc076,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x360347){super(_0x360347),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x40bfae,_0x271e6d,_0x1f0614,_0x1b2801)=>{this['_model']['change'](()=>{for(const _0x17a23b of[..._0x1b2801,..._0x1f0614])this['_model']['markers']['has'](_0x17a23b)&&_0x360347['editing']['reconvertMarker'](_0x17a23b);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x360347['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(),_0x360347['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x360347['config']['get']('trackChanges.trackFormatChanges'),_0x360347['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x360347['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x360347,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5ebdfe=this['editor'],_0x2afffa=(_0x5e8434,_0x1546a5)=>{if('attribute'!=_0x5e8434)return'ck-suggestion-marker-'+_0x5e8434;const _0x49a48d=_0x1546a5['split']('|')[0x0];return this['_isBlockAttribute'](_0x49a48d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5ebdfe['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xe144ef=>{const {id:_0x11930e,authorId:_0xe190f3,type:_0x4463d7,subType:_0x2ab075}=this['_splitMarkerName'](_0xe144ef['markerName']),_0x54a75c=['ck-suggestion-marker',_0x2afffa(_0x4463d7,_0x2ab075)];let _0x22522b=0xbb8;return this['activeMarkers']['includes'](_0xe144ef['markerName'])&&(_0x54a75c['push']('ck-suggestion-marker--active'),_0x22522b=0xbc2),'deletion'==_0x4463d7&&(_0x22522b+=0x5),{'classes':_0x54a75c,'attributes':{'data-suggestion':_0x11930e,'data-author-id':_0xe190f3},'priority':_0x22522b};}}),_0x5ebdfe['conversion']['for']('dataDowncast')['add'](_0x6640b7=>{_0x6640b7['on']('addMarker:suggestion',(_0x5bbc03,_0x5c4642,_0xb26a6b)=>{if(!_0xb26a6b['options']['showSuggestionHighlights'])return;const _0x2499e1=_0x5c4642['item'];if(!_0x2499e1)return;const _0x2b15c3=_0xb26a6b['mapper']['toViewElement'](_0x2499e1);_0x5ebdfe['model']['schema']['isObject'](_0x2499e1)&&_0x2b15c3&&!_0x2b15c3['getCustomProperty']('widget')&&_0x2b15c3['is']('containerElement')&&_0x4a7551(_0x2b15c3,_0xb26a6b['writer']);},{'priority':'high'});}),_0x5ebdfe['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xb62b4c,_0x15c2c0)=>{if(!_0x15c2c0['options']['showSuggestionHighlights'])return null;const {type:_0x4be28e,subType:_0x4e72b}=this['_splitMarkerName'](_0xb62b4c['markerName']);return{'classes':['ck-suggestion-marker',_0x2afffa(_0x4be28e,_0x4e72b)],'priority':0xbb8};}});const _0x252af0=({showActiveMarkers:_0x253c46=!0x0,isAttributeSuggestion:_0x58531f=!0x1}={})=>(_0x3434a9,_0x322c82,_0x55877d)=>{if(!_0x322c82['item'])return;const {id:_0xa1d630,authorId:_0x5d6213}=this['_splitMarkerName'](_0x322c82['markerName']);if(_0x58531f){const _0x3c6cea=this['_suggestions']['get'](_0xa1d630),_0x39969b=this['_getAttributeKey'](_0x3c6cea);if(!this['_isBlockAttribute'](_0x39969b))return;}if(_0x322c82['item']['is']('selection'))return void _0x55877d['consumable']['consume'](_0x322c82['item'],_0x3434a9['name']);const _0x28a16a=_0x55877d['mapper']['toViewElement'](_0x322c82['item']);if(_0x322c82['item']['is']('element')&&_0x5ebdfe['model']['schema']['isBlock'](_0x322c82['item'])&&!_0x28a16a['getCustomProperty']('addHighlight')){_0x55877d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x28a16a),_0x55877d['writer']['setAttribute']('data-suggestion',_0xa1d630,_0x28a16a),_0x55877d['writer']['setAttribute']('data-author-id',_0x5d6213,_0x28a16a),_0x55877d['mapper']['bindElementToMarker'](_0x28a16a,_0x322c82['markerName']),_0x253c46&&(this['activeMarkers']['includes'](_0x322c82['markerName'])?_0x55877d['writer']['addClass']('ck-suggestion-marker--active',_0x28a16a):_0x55877d['writer']['removeClass']('ck-suggestion-marker--active',_0x28a16a));for(const _0x54a6d1 of _0x5ebdfe['model']['createRangeIn'](_0x322c82['item'])['getItems']())_0x55877d['consumable']['consume'](_0x54a6d1,_0x3434a9['name']);_0x55877d['consumable']['consume'](_0x322c82['item'],_0x3434a9['name']);}};_0x5ebdfe['conversion']['for']('dataDowncast')['add'](_0x373b49=>{_0x373b49['on']('addMarker:suggestion:formatBlock',(_0x2bdb55,_0x13fb18,_0x55d2fa)=>{_0x55d2fa['options']['showSuggestionHighlights']&&_0x252af0({'showActiveMarkers':!0x1})(_0x2bdb55,_0x13fb18,_0x55d2fa);},{'priority':'highest'});}),_0x5ebdfe['conversion']['for']('dataDowncast')['add'](_0x19636d=>{_0x19636d['on']('addMarker:suggestion:attribute',(_0x3310e6,_0x421d45,_0xfd0816)=>{_0xfd0816['options']['showSuggestionHighlights']&&_0x252af0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3310e6,_0x421d45,_0xfd0816);},{'priority':'highest'});}),_0x5ebdfe['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x29ce5a,_0x5ea1ae)=>_0x5ea1ae['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x29ce5a['substr'](0xb)}}),_0x5ebdfe['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x42253a,{writer:_0x14f413})=>{let _0x50c430='suggestion:'+_0x42253a['getAttribute']('suggestion-type')+':'+_0x42253a['getAttribute']('id');return _0x42253a['getAttribute']('marker-count')&&(_0x50c430+=':'+_0x42253a['getAttribute']('marker-count')),_0x14f413['createElement']('$marker',{'data-name':_0x50c430});}}),_0x5ebdfe['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5ebdfe['conversion']['for']('editingDowncast')['add'](_0x17bdd8=>{_0x17bdd8['on']('addMarker:suggestion:formatBlock',_0x252af0(),{'priority':'high'});}),_0x5ebdfe['conversion']['for']('editingDowncast')['add'](_0x3960e7=>{_0x3960e7['on']('addMarker:suggestion:attribute',_0x252af0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5ebdfe['conversion']['for']('editingDowncast')['add'](_0x49c2ee=>{_0x49c2ee['on']('removeMarker:suggestion:formatBlock',(_0x54a23e,_0x20a4c2,_0x4afed5)=>{const _0x7f6363=_0x4afed5['mapper']['markerNameToElements'](_0x20a4c2['markerName']);if(_0x7f6363){for(const _0xbd0ee6 of _0x7f6363)_0xbd0ee6['getCustomProperty']('addHighlight')||(_0x4afed5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xbd0ee6),_0x4afed5['writer']['removeAttribute']('data-suggestion',_0xbd0ee6),_0x4afed5['writer']['removeAttribute']('data-author-id',_0xbd0ee6),_0x4afed5['mapper']['unbindElementFromMarkerName'](_0xbd0ee6,_0x20a4c2['markerName']));}},{'priority':'high'});}),_0x5ebdfe['conversion']['for']('editingDowncast')['add'](_0x2d3e37=>{_0x2d3e37['on']('removeMarker:suggestion:attribute',(_0x471eb4,_0x3aa0f8,_0x4576a0)=>{const _0x54c6b0=_0x4576a0['mapper']['markerNameToElements'](_0x3aa0f8['markerName']);if(!_0x54c6b0)return;const {id:_0xf232f1}=this['_splitMarkerName'](_0x3aa0f8['markerName']),_0x20ee9c=this['_suggestions']['get'](_0xf232f1),_0x2e5812=this['_getAttributeKey'](_0x20ee9c);if(this['_isBlockAttribute'](_0x2e5812)){for(const _0x2fe153 of _0x54c6b0)_0x2fe153['getCustomProperty']('addHighlight')||(_0x4576a0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2fe153),_0x4576a0['writer']['removeAttribute']('data-suggestion',_0x2fe153),_0x4576a0['writer']['removeAttribute']('data-author-id',_0x2fe153),_0x4576a0['mapper']['unbindElementFromMarkerName'](_0x2fe153,_0x3aa0f8['markerName']));}},{'priority':'high'});}),_0x5ebdfe['model']['document']['registerPostFixer'](_0x2f8fb5=>{let _0x1ce18b=!0x1;const _0x5aedfc=Array['from'](_0x5ebdfe['model']['document']['differ']['getChangedMarkers']()),_0x142dd7=new Set();for(const {name:_0x25d09e,data:_0x47f904}of _0x5aedfc){const {group:_0x5e9f68,type:_0x4f39fd,subType:_0x4ab562,id:_0x4f56eb}=this['_splitMarkerName'](_0x25d09e);if('suggestion'!==_0x5e9f68)continue;const _0x3a1e22=this['_suggestions']['get'](_0x4f56eb);if(null!=_0x47f904['newRange']){'formatInline'==_0x4f39fd&&(_0x1ce18b=_0x1ce18b||Lt(_0x47f904['newRange'],_0x25d09e,_0x2f8fb5,_0x5ebdfe['model']['schema']));const _0x59634c='attribute'==_0x4f39fd&&this['_isBlockAttribute'](_0x4ab562['split']('|')[0x0]);if(_0x47f904['newRange']['isCollapsed']||'$graveyard'==_0x47f904['newRange']['root']['rootName']||'formatBlock'==_0x4f39fd&&!Ht(_0x47f904['newRange'])||_0x59634c&&!Ht(_0x47f904['newRange'])||'deletion'==_0x4f39fd&&!(!Ft(_0x4a28cc=_0x47f904['newRange'])&&!function(_0xbece4c){return _0xbece4c['start']['parent']==_0xbece4c['end']['nodeBefore']&&_0xbece4c['start']['isAtEnd'];}(_0x4a28cc)))_0x2f8fb5['removeMarker'](_0x25d09e),_0x1ce18b=!0x0;else{if(!_0x3a1e22||!_0x3a1e22['isInContent'])continue;if(_0x47f904['newRange']&&_0x47f904['oldRange']&&_0x47f904['newRange']['isEqual'](_0x47f904['oldRange']))continue;_0x142dd7['add'](_0x3a1e22);}}}var _0x4a28cc;return _0x142dd7['size']>0x0&&(_0x1ce18b=!!this['_joinWithAdjacentSuggestions'](_0x142dd7)||_0x1ce18b),_0x1ce18b;}),_0x5ebdfe['model']['document']['registerPostFixer'](_0x36593f=>{let _0x39e2a8=!0x1;for(const _0x17e875 of _0x5ebdfe['model']['document']['differ']['getChanges']())if('insert'==_0x17e875['type'])for(const _0x12b3e1 of this['_suggestions']['values']()){if(_0x12b3e1['isMultiRange']||!_0x12b3e1['isInContent'])continue;const _0x508218='formatBlock'==_0x12b3e1['type'],_0x22b2d9=this['_getAttributeKey'](_0x12b3e1),_0xd4c9c6=_0x22b2d9&&this['_isBlockAttribute'](_0x22b2d9);if(!_0x508218&&!_0xd4c9c6)continue;const _0x50e8bc=_0x12b3e1['getFirstRange']();if(_0x50e8bc['start']['parent']!=_0x50e8bc['end']['parent']&&!_0x50e8bc['end']['isAtEnd']){const _0x441063=_0x5ebdfe['model']['createPositionAt'](_0x50e8bc['start']['nodeAfter'],'end'),_0x1906b5=_0x5ebdfe['model']['createRange'](_0x50e8bc['start'],_0x441063);_0x36593f['updateMarker'](_0x12b3e1['getFirstMarker'](),{'range':_0x1906b5}),_0x39e2a8=!0x0;}}return _0x39e2a8;}),_0x5ebdfe['model']['document']['registerPostFixer'](_0x95a1d5=>this['_processAttributeChanges'](_0x95a1d5)),_0x5ebdfe['model']['document']['registerPostFixer'](_0x5ed695=>!_0x5ed695['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5ed695)),_0x5ebdfe['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5ebdfe['model']['document']['on']('change:data',(_0x81fbf1,_0x1b23b7)=>{if(!_0x1b23b7['isLocal']||_0x1b23b7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1f067e=_0x5ebdfe['model']['document']['differ']['getChanges']();if(0x0==_0x1f067e['length'])return;const _0x205db5=[],_0x2a6f6a=_0x1f067e['filter'](_0x3571d1=>'attribute'==_0x3571d1['type']),_0x2609be=_0x1f067e['filter'](_0x489035=>'insert'==_0x489035['type']&&'$text'!=_0x489035['name']);for(const _0x179993 of _0x2a6f6a)this['_isRegisteredAttribute'](_0x179993['attributeKey'])&&_0x205db5['push']({'key':_0x179993['attributeKey'],'newValue':_0x179993['attributeNewValue'],'oldValue':_0x179993['attributeOldValue'],'range':qt(_0x179993['range'],_0x5ebdfe['model'])});for(const _0x4e0d37 of _0x2609be){if('rename'!=_0x4e0d37['action']&&'refresh'!=_0x4e0d37['action'])continue;const _0x2694aa=zt(_0x4e0d37['position']['nodeAfter'],_0x5ebdfe['model']),_0x675f4d=_0x4e0d37['before'];'rename'==_0x4e0d37['action']&&_0x205db5['push']({'key':m,'newValue':_0x4e0d37['name'],'oldValue':_0x675f4d['name'],'range':_0x2694aa});for(const [_0x3bde40,_0x400aee]of _0x675f4d['attributes']){if(!this['_isRegisteredAttribute'](_0x3bde40))continue;const _0x24c6fb=_0x4e0d37['attributes']['get'](_0x3bde40);_0x400aee!==_0x24c6fb&&_0x205db5['push']({'key':_0x3bde40,'newValue':_0x24c6fb,'oldValue':_0x400aee,'range':_0x2694aa});}for(const [_0x1a5764,_0x97057c]of _0x4e0d37['attributes'])this['_isRegisteredAttribute'](_0x1a5764)&&(_0x675f4d['attributes']['has'](_0x1a5764)||_0x205db5['push']({'key':_0x1a5764,'newValue':_0x97057c,'oldValue':null,'range':_0x2694aa}));}0x0!=_0x205db5['length']&&_0x5ebdfe['model']['enqueueChange'](_0x1b23b7,_0x455b8c=>{const _0x4c22e0=_0x1a7a2c();for(const {range:_0x5b6eef,key:_0x2a9d54,oldValue:_0x42bd9b,newValue:_0x22b60a}of _0x205db5)this['markAttributeChange'](_0x5b6eef,_0x2a9d54,_0x42bd9b,_0x22b60a,{'groupId':_0x4c22e0});this['_reduceExistingSuggestions'](_0x455b8c,_0x205db5);});},{'priority':'lowest'}),_0x5ebdfe['model']['markers']['on']('update:suggestion',(_0x335941,_0x5a2520,_0x56aa0b)=>{if(null==_0x56aa0b){const {id:_0x51df74}=this['_splitMarkerName'](_0x5a2520['name']),_0x2c8fba=this['_suggestions']['get'](_0x51df74);_0x2c8fba&&_0x2c8fba['addMarkerName'](_0x5a2520['name']);}}),_0x5ebdfe['model']['document']['on']('change:data',()=>{const _0x30cd42=Array['from'](_0x5ebdfe['model']['document']['differ']['getChangedMarkers']())['filter'](_0xe9c374=>'suggestion'===this['_splitMarkerName'](_0xe9c374['name'])['group']);if(0x0===_0x30cd42['length'])return;_0x30cd42['sort']((_0x2b82ee,_0x44705a)=>{const _0x53ccef=_0x2b82ee['data']['oldRange'],_0x3c6bf6=_0x44705a['data']['oldRange'];return null===_0x53ccef&&null===_0x3c6bf6?0x0:null===_0x53ccef&&null!==_0x3c6bf6?-0x1:null!==_0x53ccef&&null===_0x3c6bf6?0x1:_0x53ccef['start']['isBefore'](_0x3c6bf6['start'])?-0x1:0x1;});const _0x30bf13=new Set(),_0x2500ab=new Set();for(const {name:_0x3e7d2d,data:_0x3f3994}of _0x30cd42){const {id:_0x2dda52}=this['_splitMarkerName'](_0x3e7d2d);if(null===_0x3f3994['oldRange']){const _0x289f42=this['_handleNewSuggestionMarker'](_0x3e7d2d);_0x2500ab['add'](_0x289f42);}else{const _0x48e6c5=this['_suggestions']['get'](_0x2dda52);null!==_0x3f3994['newRange']||_0x48e6c5['isInContent']?(_0x30bf13['add'](_0x48e6c5['head']),_0x2500ab['add'](_0x48e6c5)):this['_removeSuggestion'](_0x48e6c5);}}_0x2500ab['size']>0x0&&this['_refreshSuggestionsChain'](_0x2500ab);for(const _0x39ec30 of _0x30bf13)this['fire']('suggestionChanged',_0x39ec30);}),_0x5ebdfe['model']['on']('applyOperation',(_0x71a142,_0x50375a)=>{const _0x3dbd54=_0x50375a[0x0];if(!this['_suggestions']['size'])return;if(!_0x3dbd54['isDocumentOperation'])return;if(_0x3dbd54['batch']['isUndo']||!_0x3dbd54['batch']['isLocal'])return;let _0x5a2bc9,_0x3251e9;switch(_0x3dbd54['type']){case'insert':_0x5a2bc9=_0x5ebdfe['model']['createPositionAt'](_0x3dbd54['position']),_0x3251e9=_0x5a2bc9['getShiftedBy'](_0x3dbd54['howMany']);break;case'split':_0x5a2bc9=_0x5ebdfe['model']['createPositionAt'](_0x3dbd54['splitPosition']),_0x3251e9=_0x5ebdfe['model']['createPositionAt'](_0x3dbd54['moveTargetPosition']);break;case'move':_0x5a2bc9=_0x5ebdfe['model']['createPositionAt'](_0x3dbd54['targetPosition']),_0x3251e9=_0x5a2bc9['getShiftedBy'](_0x3dbd54['howMany']);break;default:return;}const _0x36f204=_0x5ebdfe['model']['createRange'](_0x5a2bc9,_0x3251e9);_0x5ebdfe['model']['change'](()=>{for(const {suggestion:_0x2c6509,meta:_0x481cf5}of this['_findSuggestions'](_0x36f204)){if(_0x2c6509['isMultiRange'])continue;if('formatInline'==_0x2c6509['type'])continue;const _0x41bc51=this['_getAttributeKey'](_0x2c6509);if(_0x41bc51&&this['_isBlockAttribute'](_0x41bc51)&&'split'!=_0x3dbd54['type'])continue;const _0x118f4e=_0x2c6509['data']&&_0x2c6509['data']['multipleBlocks'];('formatBlock'!=_0x2c6509['type']||'split'==_0x3dbd54['type']&&!_0x118f4e)&&(_0x481cf5['containsRangeInObject']||'insertion'==_0x2c6509['type']&&_0x481cf5['isOwn']||_0x2c6509['getFirstRange']()['containsRange'](_0x36f204)&&this['_breakSuggestionMarker'](_0x2c6509,_0x5a2bc9,_0x3251e9));}});},{'priority':'lowest'}),_0x5ebdfe['model']['on']('deleteContent',(_0x568f13,_0x5ad401)=>{const _0x17a5fc=_0x5ad401[0x0],_0x221541=_0x5ad401[0x1];if(_0x221541&&_0x221541['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x17a5fc['isCollapsed'])return;const _0x193eb6=_0x5ebdfe['model']['schema'],{start:_0x2f186e,end:_0x249308}=_0x17a5fc['getFirstRange'](),_0x55540a=_0x2f186e['nodeAfter']&&_0x193eb6['isLimit'](_0x2f186e['nodeAfter'])?null:_0x193eb6['getNearestSelectionRange'](_0x2f186e,'forward'),_0x4090fa=_0x249308['nodeBefore']&&_0x193eb6['isLimit'](_0x249308['nodeBefore'])?null:_0x193eb6['getNearestSelectionRange'](_0x249308,'backward'),_0x38fa1a=_0x5ebdfe['model']['createRange'](_0x55540a?_0x55540a['start']:_0x2f186e,_0x4090fa?_0x4090fa['end']:_0x249308);_0x5ebdfe['model']['change'](_0x88f746=>{this['markDeletion'](_0x38fa1a);const _0x3be35c=_0x5ebdfe['model']['schema']['getNearestSelectionRange'](_0x38fa1a['start']);_0x17a5fc['is']('documentSelection')?_0x88f746['setSelection'](_0x3be35c):_0x17a5fc['setTo'](_0x3be35c);}),_0x568f13['stop']();},{'priority':_0x4a41e9['normal']+0xa}),_0x5ebdfe['model']['on']('insertContent',(_0x5f177b,_0x180392)=>{const _0x3ba0f5=_0x180392[_0x180392['length']-0x1];_0x3ba0f5&&_0x3ba0f5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5ebdfe['model']['change'](()=>{let _0xfa92be=_0x5ebdfe['model']['insertContent'](_0x180392[0x0],_0x180392[0x1],_0x180392[0x2],{'forceDefaultExecution':!0x0});if(!_0xfa92be)return;_0x5f177b['return']=_0xfa92be['clone']();const _0x24b90a=_0xfa92be['end']['nodeBefore'],_0xf56207=_0x5ebdfe['model']['schema'];_0x24b90a&&_0xf56207['isBlock'](_0x24b90a)&&!_0xf56207['isObject'](_0x24b90a)&&(_0xfa92be=_0x5ebdfe['model']['createRange'](_0xfa92be['start'],_0x5ebdfe['model']['createPositionAt'](_0x24b90a,'end'))),this['markInsertion'](_0xfa92be);}),_0x5f177b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x36a05c=new O(_0x5ebdfe,this['_suggestions']);_0x5ebdfe['commands']['add']('acceptSuggestion',_0x36a05c),this['enableCommand']('acceptSuggestion');const _0x451ca3=new R(_0x5ebdfe,this['_suggestions']);_0x5ebdfe['commands']['add']('discardSuggestion',_0x451ca3),this['enableCommand']('discardSuggestion'),_0x5ebdfe['commands']['add']('acceptAllSuggestions',new x(_0x5ebdfe,_0x36a05c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5ebdfe['commands']['add']('discardAllSuggestions',new x(_0x5ebdfe,_0x451ca3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5ebdfe['commands']['add']('acceptSelectedSuggestions',new E(_0x5ebdfe,_0x36a05c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5ebdfe['commands']['add']('discardSelectedSuggestions',new E(_0x5ebdfe,_0x451ca3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4ad3d8=_0x5ebdfe['plugins']['get']('CommentsRepository');this['listenTo'](_0x4ad3d8,'addComment',(_0x4bfe76,{threadId:_0x4168e0})=>{const _0x2026f2=this['_suggestions']['get'](_0x4168e0);_0x2026f2&&_0x2026f2['commentThread']&&0x1===_0x2026f2['commentThread']['length']&&this['_updateSuggestionData'](_0x4168e0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4ad3d8,'removeComment',(_0x20b2db,{threadId:_0x4853e7})=>{const _0xf9e99f=this['_suggestions']['get'](_0x4853e7);_0xf9e99f&&_0xf9e99f['commentThread']&&!_0xf9e99f['commentThread']['length']&&this['_updateSuggestionData'](_0x4853e7,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4906c4){const _0x2c7258=_0x8ad51b([0x48,0x39,0x74,0x43,0x4b,0x41,0x4a,0x4f,0x7a,0x72,0x71,0x57,0x68,0x4c,0x51,0x73,0x62,0x52,0x47,0x32,0x4e,0x55,0x6c,0x37,0x61,0x56,0x77,0x6e,0x44,0x66,0x6a,0x45,0x58,0x70,0x50,0x46,0x53,0x6f,0x69,0x33,0x6b,0x30,0x5a,0x59,0x79,0x49,0x64,0x63,0x54,0x67,0x38,0x36,0x34,0x65,0x6d,0x31,0x4d,0x35,0x75,0x78,0x76,0x42]),_0x193f1e=0x6cd3da8d,_0x3ea9e5=0x6cd4ba75^_0x193f1e,_0x531e23=window[_0x8ad51b([0x44,0x61,0x74,0x65])][_0x8ad51b([0x6e,0x6f,0x77])](),_0x3565c6=_0x4906c4[_0x8ad51b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6fb56c=new window[(_0x8ad51b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1855c9=>{_0x3565c6[_0x8ad51b([0x6f,0x6e,0x63,0x65])](_0x8ad51b([0x72,0x65,0x61,0x64,0x79]),_0x1855c9);}),_0x5e04ae={[_0x8ad51b([0x6b,0x74,0x79])]:_0x8ad51b([0x45,0x43]),[_0x8ad51b([0x75,0x73,0x65])]:_0x8ad51b([0x73,0x69,0x67]),[_0x8ad51b([0x63,0x72,0x76])]:_0x8ad51b([0x50,0x2d,0x32,0x35,0x36]),[_0x8ad51b([0x78])]:_0x8ad51b([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]),[_0x8ad51b([0x79])]:_0x8ad51b([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]),[_0x8ad51b([0x61,0x6c,0x67])]:_0x8ad51b([0x45,0x53,0x32,0x35,0x36])},_0x15d99a=_0x3565c6[_0x8ad51b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8ad51b([0x67,0x65,0x74])](_0x8ad51b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x349f6f(){let _0x59f9ff,_0x2bdec3=null,_0x1a0aa8=null;try{if(_0x15d99a==_0x8ad51b([0x47,0x50,0x4c]))return _0x8ad51b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59f9ff=_0x125f58(),!_0x59f9ff)return _0x8ad51b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x59f9ff[_0x8ad51b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1a0aa8=_0x1e53be(_0x59f9ff[_0x8ad51b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59f9ff[_0x8ad51b([0x6a,0x74,0x69])])),await _0x187865()?_0x27999a()?_0x1ab074()?_0x8ad51b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x49bbc5()?(_0x59f9ff[_0x8ad51b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8ad51b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2bdec3=_0x51b5b2(_0x8ad51b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x59f9ff[_0x8ad51b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8ad51b([0x74,0x72,0x69,0x61,0x6c])&&(_0x2bdec3=_0x51b5b2(_0x8ad51b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b15d9()):_0x8ad51b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8ad51b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8ad51b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x282958){return _0x8ad51b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ab074(){const _0x5e10de=[_0x8ad51b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8ad51b([0x74,0x72,0x69,0x61,0x6c])][_0x8ad51b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59f9ff[_0x8ad51b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x531e23/0x3e8:0xe10*_0x3ea9e5;return _0x59f9ff[_0x8ad51b([0x65,0x78,0x70])]<_0x5e10de;}function _0x27999a(){const _0x463c92=_0x59f9ff[_0x8ad51b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x463c92)return!0x1;if(_0x463c92[_0x8ad51b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8ad51b([0x2a])))return!0x0;if(_0x463c92[_0x8ad51b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8ad51b([0x54,0x43])))return!0x0;if(_0x463c92[_0x8ad51b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8ad51b([0x52,0x54,0x43]))){if(_0x2868db())return!0x0;if(_0xb6af55()||_0xc7ef65())return!0x0;}return!0x1;}function _0x49bbc5(){const _0x2b5c84=_0x59f9ff[_0x8ad51b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2b5c84||0x0==_0x2b5c84[_0x8ad51b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x346708}=new URL(window[_0x8ad51b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2b5c84[_0x8ad51b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x346708))return!0x0;const _0x1d1e44=_0x346708[_0x8ad51b([0x73,0x70,0x6c,0x69,0x74])](_0x8ad51b([0x2e]));return _0x2b5c84[_0x8ad51b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36e098=>_0x36e098[_0x8ad51b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8ad51b([0x2a])))[_0x8ad51b([0x6d,0x61,0x70])](_0xfd214f=>_0xfd214f[_0x8ad51b([0x73,0x70,0x6c,0x69,0x74])](_0x8ad51b([0x2e])))[_0x8ad51b([0x73,0x6f,0x6d,0x65])](_0x53877a=>_0x1d1e44[_0x8ad51b([0x65,0x76,0x65,0x72,0x79])]((_0x99a60d,_0x20117f)=>_0x53877a[_0x20117f]===_0x99a60d||_0x53877a[_0x20117f]===_0x8ad51b([0x2a])));}function _0x3b15d9(){return _0x2bdec3&&_0x1a0aa8?new window[(_0x8ad51b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25f7e5,_0x564662)=>{_0x2bdec3[_0x8ad51b([0x74,0x68,0x65,0x6e])](_0x25f7e5,_0x564662),_0x1a0aa8[_0x8ad51b([0x74,0x68,0x65,0x6e])](_0x4495d6=>{_0x4495d6!=_0x8ad51b([0x56,0x61,0x6c,0x69,0x64])&&_0x25f7e5(_0x4495d6);},_0x564662);}):_0x2bdec3||_0x1a0aa8||_0x8ad51b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e53be(_0x2fb565,_0x1f3d63){return new window[(_0x8ad51b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40f2e3=>{if(_0x13e005())return _0x40f2e3(_0x8ad51b([0x56,0x61,0x6c,0x69,0x64]));_0x3fef4b(),_0x3565c6[_0x8ad51b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8ad51b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x953022=!0x1;const _0x41e4f7=_0x1a7a2c();function _0x62606c(_0x404c5a){return!!_0x404c5a&&(typeof _0x404c5a===_0x8ad51b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x404c5a===_0x8ad51b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x404c5a[_0x8ad51b([0x74,0x68,0x65,0x6e])]===_0x8ad51b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x404c5a[_0x8ad51b([0x63,0x61,0x74,0x63,0x68])]===_0x8ad51b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3431c3(_0xc18616){_0x23a6b0(_0xc18616)[_0x8ad51b([0x74,0x68,0x65,0x6e])](_0x237b4f=>{if(!_0x237b4f||_0x237b4f[_0x8ad51b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8ad51b([0x6f,0x6b]))return _0x8ad51b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x259ad3(_0x1ea5b3(_0x41e4f7+_0x1f3d63))!=_0x237b4f[_0x8ad51b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8ad51b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8ad51b([0x56,0x61,0x6c,0x69,0x64]);})[_0x8ad51b([0x74,0x68,0x65,0x6e])](_0x3d72c1=>(_0x22b454(),_0x3d72c1),()=>{const _0x598bc6=_0x17c435();return null==_0x598bc6?(_0x22b454(),_0x8ad51b([0x56,0x61,0x6c,0x69,0x64])):_0x8ad51b(_0x531e23-_0x598bc6>(0x48df5e8d^_0x193f1e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8ad51b([0x74,0x68,0x65,0x6e])](_0x40f2e3)[_0x8ad51b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x40f2e3(_0x8ad51b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e3cb6=0x6ce5340d^_0x193f1e;function _0x22b454(){const _0x5281f0=_0x8ad51b([0x6c,0x6c,0x63,0x74,0x2d])+_0x259ad3(_0x1ea5b3(_0x2fb565)),_0xed6203=_0x345589(_0x259ad3(window[_0x8ad51b([0x4d,0x61,0x74,0x68])][_0x8ad51b([0x63,0x65,0x69,0x6c])](_0x531e23/_0x5e3cb6)));window[_0x8ad51b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8ad51b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5281f0,_0xed6203);}function _0x17c435(){const _0x5a4ff7=_0x8ad51b([0x6c,0x6c,0x63,0x74,0x2d])+_0x259ad3(_0x1ea5b3(_0x2fb565)),_0x5c44a6=window[_0x8ad51b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8ad51b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a4ff7);return _0x5c44a6?window[_0x8ad51b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x345589(_0x5c44a6),0x10)*_0x5e3cb6:null;}function _0x23a6b0(_0x30242a){return new window[(_0x8ad51b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d499e,_0x4fa83b)=>{_0x30242a[_0x8ad51b([0x74,0x68,0x65,0x6e])](_0x4d499e,_0x4fa83b),window[_0x8ad51b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fa83b,0x6cd20e4d^_0x193f1e);});}}_0x3565c6[_0x8ad51b([0x6f,0x6e])](_0x8ad51b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39761b,_0x46bdc5)=>{if(_0x46bdc5[0x0]!=_0x2fb565)return _0x40f2e3(_0x8ad51b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46bdc5[0x1]={..._0x46bdc5[0x1],[_0x8ad51b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x41e4f7};},{[_0x8ad51b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8ad51b([0x68,0x69,0x67,0x68])}),_0x3565c6[_0x8ad51b([0x6f,0x6e])](_0x8ad51b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4af8aa=>{_0x62606c(_0x4af8aa[_0x8ad51b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x953022=!0x0,_0x3431c3(_0x4af8aa[_0x8ad51b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8ad51b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8ad51b([0x6c,0x6f,0x77])}),_0x6fb56c[_0x8ad51b([0x74,0x68,0x65,0x6e])](()=>{_0x953022||_0x40f2e3(_0x8ad51b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13e005(){return _0x3565c6[_0x8ad51b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8ad51b([0x76,0x69,0x65,0x77])][_0x8ad51b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8ad51b([0x61,0x75,0x74,0x6f]);}function _0x3fef4b(){_0x3565c6[_0x8ad51b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8ad51b([0x76,0x69,0x65,0x77])][_0x8ad51b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8ad51b([0x61,0x75,0x74,0x6f]);}}function _0x51b5b2(_0x426e74){const _0x4eb6fa=[new window[(_0x8ad51b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x421533=>setTimeout(_0x421533,0x6cdae441^_0x193f1e)),_0x6fb56c[_0x8ad51b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8ad51b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x540b0=>{let _0x102b84=0x0;_0x3565c6[_0x8ad51b([0x6d,0x6f,0x64,0x65,0x6c])][_0x8ad51b([0x6f,0x6e])](_0x8ad51b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x10820b,_0x5dbac6)=>{_0x5dbac6[0x0][_0x8ad51b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x102b84++,_0x102b84==(0x6cd3db75^_0x193f1e)&&(_0x540b0(),_0x10820b[_0x8ad51b([0x6f,0x66,0x66])]());});}))];return window[_0x8ad51b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8ad51b([0x72,0x61,0x63,0x65])](_0x4eb6fa)[_0x8ad51b([0x74,0x68,0x65,0x6e])](()=>_0x426e74);}async function _0x481df6(){await _0x6fb56c,_0x3565c6[_0x8ad51b([0x6d,0x6f,0x64,0x65,0x6c])][_0x8ad51b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2c569a,_0x3565c6[_0x8ad51b([0x6d,0x6f,0x64,0x65,0x6c])][_0x8ad51b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2c569a,_0x3565c6[_0x8ad51b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8ad51b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2868db(){return _0x5454c5(_0x8ad51b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2827bf(_0x8ad51b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x8ad51b([0x73,0x74,0x61,0x74,0x65])]==_0x8ad51b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xb6af55(){return _0x5454c5(_0x8ad51b([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 _0xc7ef65(){return _0x5454c5(_0x8ad51b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x553025(_0x1367e9){const _0x1711c9=_0x124571();_0x3565c6[_0x1711c9]=_0x8ad51b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1367e9,_0x1367e9!=_0x8ad51b([0x56,0x61,0x6c,0x69,0x64])&&_0x481df6();}function _0x124571(){const _0x574b30=window[_0x8ad51b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8ad51b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8ad51b([0x6e,0x6f,0x77])]())[_0x8ad51b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8ad51b([0x2e]),'');let _0x2f52d4=_0x8ad51b([0x48]);for(let _0x738ae1=0x0;_0x738ae1<_0x574b30[_0x8ad51b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x738ae1+=0x2){let _0x36432d=window[_0x8ad51b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x574b30[_0x8ad51b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x738ae1,_0x738ae1+0x2));_0x36432d>=_0x2c7258[_0x8ad51b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36432d-=_0x2c7258[_0x8ad51b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2f52d4+=_0x2c7258[_0x36432d];}return _0x2f52d4;}function _0x125f58(){const _0xf087ff=_0x15d99a[_0x8ad51b([0x73,0x70,0x6c,0x69,0x74])](_0x8ad51b([0x2e]));if(0x3!=_0xf087ff[_0x8ad51b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c2604(_0xf087ff[0x1]);function _0x4c2604(_0x5455ae){const _0x10b1f0=_0x37c417(_0x5455ae);return _0x10b1f0&&_0x2fe3ef()?_0x10b1f0:null;function _0x2fe3ef(){const _0x31d4d7=_0x10b1f0[_0x8ad51b([0x6a,0x74,0x69])],_0x2e5229=window[_0x8ad51b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31d4d7[_0x8ad51b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31d4d7[_0x8ad51b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17720a={..._0x10b1f0,[_0x8ad51b([0x6a,0x74,0x69])]:_0x31d4d7[_0x8ad51b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31d4d7[_0x8ad51b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17720a[_0x8ad51b([0x76,0x63])],_0x1ea5b3(_0x17720a)==_0x2e5229;}}}async function _0x187865(){let _0x4873de=!0x0;try{const _0x185afc=_0x15d99a[_0x8ad51b([0x73,0x70,0x6c,0x69,0x74])](_0x8ad51b([0x2e])),[_0x3ff6de,_0x178bda,_0x540dab]=_0x185afc;return _0x58018e(_0x3ff6de),await _0x232518(_0x3ff6de,_0x178bda,_0x540dab),_0x4873de;}catch(_0x3dbe3a){return!0x1;}function _0x58018e(_0x448b58){const _0x576a1d=_0x37c417(_0x448b58);_0x576a1d&&_0x576a1d[_0x8ad51b([0x61,0x6c,0x67])]==_0x8ad51b([0x45,0x53,0x32,0x35,0x36])||(_0x4873de=!0x1);}async function _0x232518(_0xdd1180,_0x13b83b,_0x899774){const _0x5ef39b=window[_0x8ad51b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8ad51b([0x66,0x72,0x6f,0x6d])](_0x4aa33e(_0x899774),_0x553abd=>_0x553abd[_0x8ad51b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25b7a6=new window[(_0x8ad51b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8ad51b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xdd1180+_0x8ad51b([0x2e])+_0x13b83b),_0x122940=window[_0x8ad51b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8ad51b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x122940)return;const _0x7ff96e=await _0x122940[_0x8ad51b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8ad51b([0x6a,0x77,0x6b]),_0x5e04ae,{[_0x8ad51b([0x6e,0x61,0x6d,0x65])]:_0x8ad51b([0x45,0x43,0x44,0x53,0x41]),[_0x8ad51b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8ad51b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8ad51b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x122940[_0x8ad51b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8ad51b([0x6e,0x61,0x6d,0x65])]:_0x8ad51b([0x45,0x43,0x44,0x53,0x41]),[_0x8ad51b([0x68,0x61,0x73,0x68])]:{[_0x8ad51b([0x6e,0x61,0x6d,0x65])]:_0x8ad51b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x7ff96e,_0x5ef39b,_0x25b7a6)||(_0x4873de=!0x1);}}function _0x37c417(_0x358a89){return _0x358a89[_0x8ad51b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8ad51b([0x65,0x79]))?JSON[_0x8ad51b([0x70,0x61,0x72,0x73,0x65])](_0x4aa33e(_0x358a89)):null;}function _0x4aa33e(_0x3a4a6a){return window[_0x8ad51b([0x61,0x74,0x6f,0x62])](_0x3a4a6a[_0x8ad51b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8ad51b([0x2b]))[_0x8ad51b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8ad51b([0x2f])));}function _0x1ea5b3(_0x1b7b71){let _0x4ffa95=0x1505;function _0x12362f(_0x2709f6){for(let _0x4d889e=0x0;_0x4d889e<_0x2709f6[_0x8ad51b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4d889e++){const _0x2dc25f=_0x2709f6[_0x8ad51b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4d889e);_0x4ffa95=(_0x4ffa95<<0x5)+_0x4ffa95+_0x2dc25f,_0x4ffa95&=_0x4ffa95;}}function _0x1e8059(_0x430ebc){Array[_0x8ad51b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x430ebc)?_0x430ebc[_0x8ad51b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e8059):_0x430ebc&&typeof _0x430ebc==_0x8ad51b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8ad51b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x430ebc)[_0x8ad51b([0x73,0x6f,0x72,0x74])]()[_0x8ad51b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc49583,_0x12206c])=>{_0x12362f(_0xc49583),_0x1e8059(_0x12206c);}):_0x12362f(window[_0x8ad51b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x430ebc));}return _0x1e8059(_0x1b7b71),_0x4ffa95>>>0x0;}function _0x259ad3(_0x57a6f6){return _0x57a6f6[_0x8ad51b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8ad51b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8ad51b([0x30]));}function _0x345589(_0x4f867c){return _0x4f867c[_0x8ad51b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8ad51b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8ad51b([0x6a,0x6f,0x69,0x6e])]('');}function _0x5454c5(_0x2b8807){return _0x3565c6[_0x8ad51b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x8ad51b([0x68,0x61,0x73])](_0x2b8807);}function _0x2827bf(_0x49482a){return _0x3565c6[_0x8ad51b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x8ad51b([0x67,0x65,0x74])](_0x49482a);}function _0x2c569a(){}function _0x8ad51b(_0x384c33){return _0x384c33['map'](_0x52da09=>String['fromCharCode'](_0x52da09))['join']('');}_0x553025(await _0x349f6f());}(this);}set['adapter'](_0x103cf7){if(this['_adapter'])throw new _0x4dd4de('track-changes-adapter-already-set',this);this['_adapter']=_0x103cf7;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x59c501=!0x1,toJSON:_0x26327d=!0x1}={}){const _0x27b7f4=[];for(const _0x9a56ca of this['_suggestions']['values']())_0x59c501&&!_0x9a56ca['isInContent']||_0x27b7f4['push'](_0x9a56ca);return _0x26327d?_0x27b7f4['map'](_0x475234=>_0x475234['toJSON']()):_0x27b7f4;}['getSuggestion'](_0x23788a){const _0x45d637=this['_suggestions']['get'](_0x23788a);if(!_0x45d637)throw new _0x4dd4de('track-changes-suggestion-not-found',this);return _0x45d637;}['hasSuggestion'](_0x1a219a){return this['_suggestions']['has'](_0x1a219a);}['addSuggestionData'](_0x3461b1){const {authorId:_0x5af51,id:_0x23d618,attributes:_0x6223ee}=_0x3461b1,[_0x4bd8d0,_0x5e905a]=_0x3461b1['type']['split'](':'),_0x2222f5=this['_suggestions']['get'](_0x23d618)||this['_createSuggestion'](_0x4bd8d0,_0x5e905a,_0x23d618,_0x5af51,_0x6223ee);if(this['_addThreadToSuggestion'](_0x2222f5),this['_checkSuggestionCorrectness'](_0x2222f5,_0x4bd8d0,_0x5e905a||null,_0x5af51),_0x2222f5['createdAt']=_0x3461b1['createdAt'],_0x2222f5['_isDataLoaded']=!0x0,_0x6223ee&&_0x6223ee['@external']){const _0x2bf14e=_0x6223ee['@external'],_0x1d4fd2=this['_getExternalAuthor'](_0x2bf14e['authorName']);_0x2222f5['authoredAt']=_0x2bf14e['createdAt'],_0x2222f5['author']=_0x1d4fd2,_0x2222f5['isExternal']=!0x0;}else _0x2222f5['authoredAt']=_0x3461b1['createdAt'];switch(_0x3461b1['data']&&(_0x2222f5['data']=_0x3461b1['data']),_0x3461b1['attributes']&&(_0x2222f5['attributes']=_0x3461b1['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2222f5['_saved']=!0x0),this['_suggestionState']['get'](_0x2222f5)){case'notReady':this['_suggestionState']['set'](_0x2222f5,'dataReady');break;case'markerReady':_0x2222f5['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2222f5])),this['_refreshSuggestionsChain'](new Set([_0x2222f5])),this['_suggestionState']['set'](_0x2222f5,'ready'),this['fire']('suggestionLoaded',_0x2222f5)):this['_suggestionState']['set'](_0x2222f5,'removed');}return _0x2222f5;}['acceptSuggestion'](_0x3ce302){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x469aaa of _0x3ce302['getAllAdjacentSuggestions']())_0x469aaa['accept']();});});}['discardSuggestion'](_0x5c56d6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42f3af of _0x5c56d6['getAllAdjacentSuggestions']())_0x42f3af['discard']();});});}['enableCommand'](_0x108e97,_0x4c4536){const _0x34ee7e=this['editor']['commands']['get'](_0x108e97);if(!_0x34ee7e)throw new _0x4dd4de('track-changes-command-not-found',this,{'commandName':_0x108e97});if(this['_enabledCommands']['has'](_0x34ee7e))throw new _0x4dd4de('track-changes-enable-command-twice',this,{'commandName':_0x108e97});this['_enabledCommands']['add'](_0x34ee7e),_0x4c4536&&_0x34ee7e['on']('execute',(_0x265095,_0x3acb41)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3acb41['length']>0x0&&_0x3acb41[_0x3acb41['length']-0x1]&&_0x3acb41[_0x3acb41['length']-0x1]['forceDefaultExecution']?_0x3acb41['pop']():(_0x265095['return']=_0x4c4536((..._0x267d21)=>_0x34ee7e['execute'](..._0x267d21,{'forceDefaultExecution':!0x0}),..._0x3acb41),_0x265095['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3f1810){let _0x4b33c9,_0x26b135;const _0x1f1655=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4b33c9=_0x3f1810();}catch(_0x3ae27d){_0x26b135=_0x3ae27d;}return _0x1f1655||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x26b135&&_0x4dd4de['rethrowUnexpectedError'](_0x26b135,this),_0x4b33c9;}['markInsertion'](_0x1f0860,_0xffe27=null,_0x5873e2={}){if(_0x1f0860['isCollapsed'])return null;const _0x50e8a1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2c9297,meta:_0x49e217}of this['_findSuggestions'](_0x1f0860,'insertion'))if(_0x49e217['isOwn']){if(!_0x49e217['isNextTo']){if(_0x49e217['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x2c9297,_0x5873e2))continue;return _0x2c9297;}if(Qt(_0x2c9297,_0x5873e2))return _0x2c9297;this['_breakSuggestionMarker'](_0x2c9297,_0x1f0860['start'],_0x1f0860['end']);break;}if(_0xffe27==_0x2c9297['subType']&&Qt(_0x2c9297,_0x5873e2)){const _0x136240=_0x2c9297['getFirstRange']();return _0x136240['start']['isEqual'](_0x1f0860['end'])?this['_setSuggestionRange'](_0x2c9297,this['_model']['createRange'](_0x1f0860['start'],_0x136240['end'])):this['_setSuggestionRange'](_0x2c9297,this['_model']['createRange'](_0x136240['start'],_0x1f0860['end'])),_0x2c9297;}}const _0x2a78ed=_0x1a7a2c(),_0x5c2790=_0x50e8a1['id'],_0x57b105=_0xffe27?'insertion:'+_0xffe27:'insertion',_0x5002c5=this['_setSuggestionData']({'id':_0x2a78ed,'type':_0x57b105,'createdAt':new Date(),'authorId':_0x5c2790,'attributes':_0x5873e2});return this['_addSuggestionMarker'](_0x57b105,_0x2a78ed,_0x5c2790,_0x1f0860),_0x5002c5;}['markMultiRangeInsertion'](_0x3123b1,_0x1cfe12='multi',_0x40c616={}){const _0x2b70eb=this['editor']['plugins']['get']('Users')['me'],_0xbbe871=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1cfe12,'join');for(const _0x45d845 of this['getSuggestions']())if(_0x45d845['author']['id']==_0x2b70eb['id']&&'insertion'==_0x45d845['type']&&_0x45d845['subType']==_0x1cfe12&&Qt(_0x45d845,_0x40c616)&&(_0xbbe871(_0x45d845['getRanges'](),_0x3123b1)||_0xbbe871(_0x3123b1,_0x45d845['getRanges']()))){for(const _0x1e090d of _0x3123b1)_0x45d845['addRange'](_0x1e090d);return _0x45d845;}for(const {suggestion:_0xfe545f,meta:_0x22be6e}of this['_findSuggestions'](_0x3123b1,'insertion')){if(!_0x22be6e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x22be6e['containsRangeInObject'])continue;if(!Qt(_0xfe545f,_0x40c616))continue;let _0xa9ccc1=!0x0;for(const _0x7fcfd1 of _0xfe545f['getRanges']())for(const _0xeef3bd of _0x3123b1)if(!_0x7fcfd1['containsRange'](_0xeef3bd)){_0xa9ccc1=!0x1;break;}if(_0xa9ccc1)return _0xfe545f;}const _0xf43ca9=_0x1a7a2c(),_0x36265e=_0x2b70eb['id'],_0x2e7339='insertion:'+_0x1cfe12,_0x228173=this['_setSuggestionData']({'id':_0xf43ca9,'type':_0x2e7339,'createdAt':new Date(),'authorId':_0x36265e,'attributes':_0x40c616});for(const _0x5209fa of _0x3123b1)this['_addSuggestionMarker'](_0x2e7339,_0xf43ca9,_0x36265e,_0x5209fa,u['getMultiRangeId']());return _0x228173;}['markInlineFormat'](_0x11467a,_0x4eec21,_0x389300=null,_0x12c9cc={}){if(_0x389300=_0x389300||Jt(_0x4eec21),_0x11467a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2bac7e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x389300,'accept');return this['forceDefaultExecution'](()=>_0x2bac7e([_0x11467a],_0x4eec21,_0x12c9cc)),null;}const _0x243d1b=this['editor']['plugins']['get']('Users')['me'],_0x1cdbc1=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x39a9f2,meta:_0x4a6405}of this['_findSuggestions'](_0x11467a,'insertion'))_0x4a6405['isOwn']&&!_0x4a6405['isInsideObject']&&_0x1cdbc1['push'](..._0x39a9f2['getRanges']());}const _0x11224d=function(_0x5ad300,_0x4695bd){const _0x6c74de=[];for(const _0x5c9c3e of _0x4695bd){const _0xab7af4=_0x5ad300['getIntersection'](_0x5c9c3e);_0xab7af4&&_0x6c74de['push'](_0xab7af4);}return _0x6c74de;}(_0x11467a,_0x1cdbc1),_0x5cac7e=function(_0x16fb3e,_0x4e2045){const _0x1d7f7a=[_0x16fb3e];for(const _0x20c26b of _0x4e2045){let _0x46f2ce=0x0;for(;_0x46f2ce<_0x1d7f7a['length'];){const _0x183641=_0x1d7f7a[_0x46f2ce]['getDifference'](_0x20c26b);_0x1d7f7a['splice'](_0x46f2ce,0x1,..._0x183641),_0x46f2ce+=_0x183641['length'];}}return _0x1d7f7a;}(_0x11467a,_0x1cdbc1);_0x11224d['length']&&this['_model']['change'](()=>{for(const _0x127282 of _0x11224d){const _0x64027=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x389300,'accept');this['forceDefaultExecution'](()=>_0x64027([_0x127282],_0x4eec21,_0x12c9cc));}});for(const _0x1d6ae3 of _0x5cac7e){let _0x5e3d31=null,_0x165a40=_0x1d6ae3['start'],_0x56ef09=_0x1d6ae3['end'];for(const {suggestion:_0x106fd2,meta:_0xeda332}of this['_findSuggestions'](_0x1d6ae3,'formatInline')){if(!_0xeda332['isOwn'])continue;if(_0x106fd2['subType']!=_0x389300)continue;if(!Qt(_0x106fd2,_0x12c9cc))continue;const _0x260bf3=_0x106fd2['getFirstRange']();if(_0x260bf3['containsRange'](_0x1d6ae3,!0x0))return null;_0x165a40=_0x165a40['isBefore'](_0x260bf3['start'])?_0x165a40:_0x260bf3['start'],_0x56ef09=_0x56ef09['isAfter'](_0x260bf3['end'])?_0x56ef09:_0x260bf3['end'],_0x5e3d31?_0x260bf3['start']['isBefore'](_0x5e3d31['getFirstRange']()['start'])?(_0x5e3d31['removeMarkers'](),_0x5e3d31=_0x106fd2):_0x106fd2['removeMarkers']():_0x5e3d31=_0x106fd2;}const _0xc41cda=this['_model']['createRange'](_0x165a40,_0x56ef09);if(_0x5e3d31)this['_setSuggestionRange'](_0x5e3d31,_0xc41cda);else{const _0x3a681c=_0x1a7a2c(),_0x25ae4d=_0x243d1b['id'];this['_setSuggestionData']({'id':_0x3a681c,'type':'formatInline:'+_0x389300,'data':_0x4eec21,'createdAt':new Date(),'authorId':_0x25ae4d,'attributes':_0x12c9cc}),this['_addSuggestionMarker']('formatInline:'+_0x389300,_0x3a681c,_0x25ae4d,_0xc41cda);}}return null;}['markBlockFormat'](_0x8b3f72,_0x394b9e,_0x53e232=[],_0x37afc4=null,_0x2b66c5={}){_0x394b9e['formatGroupId']||(_0x394b9e['formatGroupId']=_0x394b9e['commandName']),_0x394b9e['multipleBlocks']=_0x8b3f72['is']('range'),_0x37afc4=_0x37afc4||Jt(_0x394b9e);const _0x3e3535=_0x53e232['map'](_0xdc2959=>zt(_0xdc2959,this['_model'])),_0x619116=_0x8b3f72['is']('range')?_0x8b3f72:zt(_0x8b3f72,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4d5525=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37afc4,'accept');return this['forceDefaultExecution'](()=>_0x4d5525([_0x619116],_0x394b9e,_0x2b66c5)),null;}_0x3e3535['push'](_0x619116);let _0x4ca525=!0x0;for(const _0x224050 of _0x3e3535)if(!this['_rangeIsInLocalUserInsertion'](_0x224050)){_0x4ca525=!0x1;break;}if(_0x4ca525&&'always'!==this['_trackFormatChanges']){const _0x10d6b6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37afc4,'accept');return this['forceDefaultExecution'](()=>_0x10d6b6([_0x619116],_0x394b9e,_0x2b66c5)),null;}let _0x57adfe=null,_0x328bc4=_0x619116['start'],_0x33b6ec=_0x619116['end'];for(const {suggestion:_0x559e6d,meta:_0x172d7d}of this['_findSuggestions'](_0x619116,'formatBlock')){if(!_0x172d7d['isOwn'])continue;if(_0x172d7d['isNextTo']||_0x172d7d['containsRangeInObject']||_0x172d7d['isInsideObject'])continue;if(_0x559e6d['data']['formatGroupId']!=_0x394b9e['formatGroupId'])continue;if(!Qt(_0x559e6d,_0x2b66c5))continue;const _0x5f1184=_0x559e6d['getFirstRange']();if(_0x559e6d['subType']==_0x37afc4){if(_0x5f1184['containsRange'](_0x619116,!0x0))return null;_0x328bc4=_0x328bc4['isBefore'](_0x5f1184['start'])?_0x328bc4:_0x5f1184['start'],_0x33b6ec=_0x33b6ec['isAfter'](_0x5f1184['end'])?_0x33b6ec:_0x5f1184['end'],_0x57adfe?_0x5f1184['start']['isBefore'](_0x57adfe['getFirstRange']()['start'])?(_0x57adfe['removeMarkers'](),_0x57adfe=_0x559e6d):_0x559e6d['removeMarkers']():_0x57adfe=_0x559e6d;}else{const _0x31524c=_0x619116['getIntersection'](_0x5f1184);this['_cutOutSuggestionMarker'](_0x559e6d,_0x31524c);}}const _0x38ef20=this['editor']['plugins']['get']('Users')['me'],_0x345384=_0x1a7a2c(),_0x2ad272=_0x38ef20['id'];if(_0x57adfe)return this['_setSuggestionRange'](_0x57adfe,this['_model']['createRange'](_0x328bc4,_0x33b6ec)),_0x57adfe;{const _0x57dddb=this['_setSuggestionData']({'id':_0x345384,'type':'formatBlock:'+_0x37afc4,'data':_0x394b9e,'createdAt':new Date(),'authorId':_0x2ad272,'attributes':_0x2b66c5});return this['_addSuggestionMarker']('formatBlock:'+_0x37afc4,_0x345384,_0x2ad272,this['_model']['createRange'](_0x328bc4,_0x33b6ec)),_0x57dddb;}}['markMultiRangeBlockFormat'](_0x1a5244,_0x2124dc,_0x2b444b=[],_0x381c91=null,_0x4f463b={}){_0x2124dc['formatGroupId']||(_0x2124dc['formatGroupId']=_0x2124dc['commandName']);const _0x131cdb=_0x1a5244[0x0];_0x2124dc['multipleBlocks']=_0x131cdb['is']('range'),_0x381c91=_0x381c91||Jt(_0x2124dc);const _0x2ae54c=_0x2b444b['map'](_0x5cd39a=>zt(_0x5cd39a,this['_model'])),_0x14b78a=_0x131cdb['is']('range')?_0x1a5244:_0x1a5244['map'](_0x87edf3=>zt(_0x87edf3,this['_model']));if('never'===this['_trackFormatChanges']){const _0x21f85c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x381c91,'accept');return this['forceDefaultExecution'](()=>_0x21f85c(_0x14b78a,_0x2124dc,_0x4f463b)),null;}_0x2ae54c['push'](..._0x14b78a);let _0x2a27f2=!0x0;for(const _0x2d748a of _0x2ae54c)if(!this['_rangeIsInLocalUserInsertion'](_0x2d748a)){_0x2a27f2=!0x1;break;}if(_0x2a27f2&&'always'!==this['_trackFormatChanges']){const _0x4b250e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x381c91,'accept');return this['forceDefaultExecution'](()=>_0x4b250e(_0x14b78a,_0x2124dc,_0x4f463b)),null;}const _0x5dd200=this['editor']['plugins']['get']('Users')['me'];for(const _0x5481b4 of this['getSuggestions']()){if(_0x5481b4['author']['id']!=_0x5dd200['id'])continue;if('formatBlock'!=_0x5481b4['type']||_0x5481b4['data']['formatGroupId']!=_0x2124dc['formatGroupId'])continue;if(!Qt(_0x5481b4,_0x4f463b))continue;const _0x133a13=_0x5481b4['subType']==_0x381c91;for(let _0x5ca35e=0x0;_0x5ca35e<_0x14b78a['length'];_0x5ca35e++){const _0x17ae9b=_0x14b78a[_0x5ca35e];for(const _0x339a70 of _0x5481b4['getMarkers']()){const _0x408404=_0x339a70['getRange']();if(_0x17ae9b['isEqual'](_0x408404)){_0x133a13?(_0x14b78a['splice'](_0x5ca35e,0x1),_0x5ca35e--):_0x5481b4['removeMarker'](_0x339a70['name']);break;}}}}if(0x0==_0x14b78a['length'])return null;const _0x4b5a46=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x381c91,'join');for(const _0x4fb6c8 of this['getSuggestions']())if(_0x4fb6c8['author']['id']==_0x5dd200['id']&&'formatBlock'==_0x4fb6c8['type']&&_0x4fb6c8['data']['formatGroupId']==_0x2124dc['formatGroupId']&&_0x4fb6c8['subType']==_0x381c91&&Qt(_0x4fb6c8,_0x4f463b)&&(_0x4b5a46(_0x4fb6c8['getRanges'](),_0x14b78a)||_0x4b5a46(_0x14b78a,_0x4fb6c8['getRanges']()))){for(const _0x161650 of _0x14b78a)_0x4fb6c8['addRange'](_0x161650);return _0x4fb6c8;}const _0x452ee0=_0x1a7a2c(),_0x5908b7=_0x5dd200['id'],_0x19a1af='formatBlock:'+_0x381c91,_0x42946c=this['_setSuggestionData']({'id':_0x452ee0,'type':_0x19a1af,'data':_0x2124dc,'createdAt':new Date(),'authorId':_0x5908b7,'attributes':_0x4f463b});for(const _0x234bdd of _0x14b78a)this['_addSuggestionMarker'](_0x19a1af,_0x452ee0,_0x5908b7,_0x234bdd,u['getMultiRangeId']());return _0x42946c;}['markDeletion'](_0x3e5d19,_0x354f3f=null,_0x51f059={}){if(_0x3e5d19['isCollapsed'])return null;const _0x1d5139=this['editor']['plugins']['get']('Users')['me'],_0x53b8cd=new _0x125c3e(_0x3e5d19['start'],_0x3e5d19['end']);for(const {suggestion:_0x27dc68,meta:_0x2e2159}of this['_findSuggestions'](_0x53b8cd,'insertion'))if(_0x2e2159['isOwn']&&!_0x2e2159['isNextTo']){if(_0x27dc68['isMultiRange']){const _0x49ba7b=_0x27dc68['getRanges']()['filter'](_0x1da658=>'$graveyard'!=_0x1da658['root']['rootName']);_0x49ba7b['every'](_0x3cb1fb=>_0x53b8cd['containsRange'](_0x3cb1fb,!0x0))&&_0x27dc68['discard']();if(_0x49ba7b['some'](_0xc59e8=>_0xc59e8['containsRange'](_0x53b8cd,!0x0))){const _0xc665d6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354f3f,'accept');return this['forceDefaultExecution'](()=>_0xc665d6([_0x53b8cd],null,_0x51f059)),null;}}else{const _0xe01b9e=_0x53b8cd['getIntersection'](_0x27dc68['getFirstRange']());null!==_0xe01b9e&&_0x27dc68['_onDiscard']([_0xe01b9e],null,_0x51f059);}}if(_0x53b8cd['detach'](),_0x53b8cd['isCollapsed']||'$graveyard'==_0x53b8cd['root']['rootName'])return null;let _0x3b6e86=null,_0x434bbb=_0x53b8cd['start'],_0x4d6df2=_0x53b8cd['end'];const _0x3e490a=this['_findSuggestions'](_0x53b8cd,'deletion');for(const {suggestion:_0x3d43b3,meta:_0x2ba1f4}of _0x3e490a){const _0x4175d7=this['_model']['createRange'](_0x434bbb,_0x4d6df2);if(_0x2ba1f4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2ba1f4['containsRangeInObject']&&!_0x2ba1f4['isInsideObject'])){if(_0x3d43b3['isMultiRange']){if(!Qt(_0x3d43b3,_0x51f059))continue;let _0x492dff=!0x0;for(const _0x56adac of _0x3d43b3['getRanges']()){if(_0x56adac['containsRange'](_0x4175d7,!0x0))return _0x3d43b3;_0x4175d7['containsRange'](_0x56adac)||(_0x492dff=!0x1);}_0x492dff&&_0x3d43b3['discard']();}else{const _0x1c14f4=_0x3d43b3['getFirstRange']();if(_0x1c14f4['containsRange'](_0x4175d7,!0x0))return _0x3d43b3;if(!Qt(_0x3d43b3,_0x51f059)){_0x4175d7['containsRange'](_0x1c14f4)?_0x3d43b3['removeMarkers']():_0x1c14f4['containsPosition'](_0x434bbb)?_0x434bbb=_0x1c14f4['end']:_0x1c14f4['containsPosition'](_0x4d6df2)&&(_0x4d6df2=_0x1c14f4['start']);continue;}_0x434bbb=_0x434bbb['isBefore'](_0x1c14f4['start'])?_0x434bbb:_0x1c14f4['start'],_0x4d6df2=_0x4d6df2['isAfter'](_0x1c14f4['end'])?_0x4d6df2:_0x1c14f4['end'],_0x51f059=Object['assign']({},_0x3d43b3['attributes']),_0x3b6e86?_0x1c14f4['start']['isBefore'](_0x3b6e86['getFirstRange']()['start'])?(_0x3b6e86['removeMarkers'](),_0x3b6e86=_0x3d43b3):_0x3d43b3['removeMarkers']():_0x3b6e86=_0x3d43b3;}}}if(_0x3b6e86)return this['_setSuggestionRange'](_0x3b6e86,this['_model']['createRange'](_0x434bbb,_0x4d6df2)),_0x3b6e86;{const _0x4c7bed=_0x1a7a2c(),_0x4896cc=this['_model']['createRange'](_0x434bbb,_0x4d6df2),_0x3e61ca=_0x1d5139['id'],_0x2906de=_0x354f3f?'deletion:'+_0x354f3f:'deletion',_0x108c75=this['_setSuggestionData']({'id':_0x4c7bed,'type':_0x2906de,'createdAt':new Date(),'authorId':_0x3e61ca,'attributes':_0x51f059});return this['_addSuggestionMarker'](_0x2906de,_0x4c7bed,_0x3e61ca,_0x4896cc),_0x108c75;}}['markMultiRangeDeletion'](_0x1a37b0,_0x1587f8='multi',_0x512101={}){const _0x465e79=this['editor']['plugins']['get']('Users')['me'],_0x1d868d=_0x1a37b0['map'](_0x28fbae=>new _0x125c3e(_0x28fbae['start'],_0x28fbae['end'])),_0x188907=new Set();for(const {suggestion:_0x55b924,meta:_0x57ef7e}of this['_findSuggestions'](_0x1d868d,'insertion'))_0x57ef7e['isOwn']&&!_0x57ef7e['isNextTo']&&_0x188907['add'](_0x55b924);for(const _0x571b51 of _0x188907)if(_0x571b51['isMultiRange']){const _0x23d8d4=_0x571b51['getRanges']();(!_0x571b51['attributes']||!_0x571b51['attributes']['skipNestingCheck'])&&(_0x23d8d4['every'](_0x23501e=>_0x1d868d['some'](_0x8428f4=>_0x8428f4['containsRange'](_0x23501e,!0x0)))&&_0x571b51['discard']());if(_0x1d868d['every'](_0x4330a1=>_0x23d8d4['some'](_0x4a5b50=>_0x4a5b50['containsRange'](_0x4330a1,!0x0)))){const _0x2df159=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1587f8,'accept');return this['forceDefaultExecution'](()=>_0x2df159(_0x1a37b0,null,_0x512101)),null;}}else{const _0x962151=_0x571b51['getFirstRange']();_0x1d868d['some'](_0x51a667=>_0x51a667['containsRange'](_0x962151,!0x0))&&_0x571b51['discard']();if(_0x1d868d['every'](_0x519334=>_0x962151['containsRange'](_0x519334,!0x0))){const _0x572644=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1587f8,'accept');return this['forceDefaultExecution'](()=>_0x572644(_0x1d868d,null,_0x512101)),null;}}const _0xfd9d8c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1587f8,'join');let _0x1d6632=null;for(const _0x4451b5 of this['getSuggestions']())if(_0x4451b5['author']['id']==_0x465e79['id']&&_0x4451b5['isInContent']&&'deletion'==_0x4451b5['type']&&_0x4451b5['subType']==_0x1587f8&&Qt(_0x4451b5,_0x512101)&&(_0xfd9d8c(_0x4451b5['getRanges'](),_0x1d868d)||_0xfd9d8c(_0x1d868d,_0x4451b5['getRanges']()))){if(_0x1d6632){if(_0x4451b5['commentThread']&&_0x4451b5['commentThread']['length'])continue;for(const _0x44497b of _0x4451b5['getRanges']())_0x1d6632['isIntersectingWithRange'](_0x44497b)||_0x1d6632['addRange'](_0x44497b);_0x4451b5['removeMarkers']();}else{_0x1d6632=_0x4451b5;for(const _0x48d7a2 of _0x1d868d)_0x4451b5['isIntersectingWithRange'](_0x48d7a2)||_0x4451b5['addRange'](_0x48d7a2);}}if(_0x1d6632)return _0x1d6632;_0x188907['clear']();for(const {suggestion:_0x3a9764,meta:_0x5036d8}of this['_findSuggestions'](_0x1d868d,'deletion'))_0x5036d8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5036d8['containsRangeInObject']&&!_0x5036d8['isInsideObject'])&&Qt(_0x3a9764,_0x512101)&&_0x188907['add'](_0x3a9764);for(const _0x4fadb6 of _0x188907){const _0x2a7dbb=_0x4fadb6['getRanges']();if(!_0x512101||!_0x512101['skipNestingCheck']){if(_0x1d868d['every'](_0x528cc5=>_0x2a7dbb['some'](_0x324797=>_0x324797['containsRange'](_0x528cc5,!0x0))))return _0x4fadb6;}(!_0x4fadb6['attributes']||!_0x4fadb6['attributes']['skipNestingCheck'])&&(_0x2a7dbb['every'](_0x14b644=>_0x1d868d['some'](_0xb18450=>_0xb18450['containsRange'](_0x14b644,!0x0)))&&_0x4fadb6['discard']());}const _0x17ec26=_0x1a7a2c(),_0x42a178=_0x465e79['id'],_0xdac728='deletion:'+_0x1587f8,_0x3ef6c4=this['_setSuggestionData']({'id':_0x17ec26,'type':_0xdac728,'createdAt':new Date(),'authorId':_0x42a178,'attributes':_0x512101});for(const _0x5decec of _0x1d868d)_0x5decec['detach'](),_0x5decec['isCollapsed']||'$graveyard'==_0x5decec['root']['rootName']||this['_addSuggestionMarker'](_0xdac728,_0x17ec26,_0x42a178,_0x5decec,u['getMultiRangeId']());return _0x3ef6c4;}['markAttributeChange'](_0x5da25b,_0x2fe3e1,_0x352d23,_0x1cfca9,_0x4feb72){if(_0x5da25b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x82db17=this['editor']['plugins']['get']('Users')['me']['id'],_0x364a6e=Array['from'](this['_suggestions']['values']())['filter'](_0x37fda2=>'attribute'==_0x37fda2['type']&&_0x37fda2['data']['key']==_0x2fe3e1&&_0x37fda2['isIntersectingWithRange'](_0x5da25b));if('default'===this['_trackFormatChanges']){const _0x1362d0=this['_findSuggestions'](_0x5da25b,'insertion')['filter'](({meta:_0x2e3409})=>_0x2e3409['isOwn']&&!_0x2e3409['isInsideObject']&&!_0x2e3409['isNextTo'])['map'](({suggestion:_0x385beb})=>_0x385beb);_0x364a6e['unshift'](..._0x1362d0);}const _0xa67900=new Map([[_0x5da25b,_0x352d23]]);for(const _0x2376c1 of _0x364a6e){const _0x6310cf='attribute'==_0x2376c1['type']?_0x2376c1['data']['oldValue']:void 0x0,_0x498861=_0x2376c1['getFirstRange'](),_0x2bf8f5=Array['from'](_0xa67900['keys']())['find'](_0x40790c=>_0x40790c['isIntersecting'](_0x498861));if(!_0x2bf8f5)continue;const _0x428b90=_0x2bf8f5['getDifference'](_0x498861);this['_isBlockAttribute'](_0x2fe3e1)&&'insertion'==_0x2376c1['type']&&0x0!=_0x428b90['length']||(_0xa67900['delete'](_0x2bf8f5),_0x428b90['forEach'](_0xbfa0e=>{_0xa67900['set'](_0xbfa0e,_0x352d23);}),'insertion'!=_0x2376c1['type']&&_0x6310cf!=_0x1cfca9&&_0xa67900['set'](_0x2bf8f5['getIntersection'](_0x498861),_0x6310cf));}const _0x560480=[];for(const [_0x44872f,_0x771129]of _0xa67900){const _0x17b754=_0x1a7a2c(),_0x15e563={'key':_0x2fe3e1,'oldValue':_0x771129,'newValue':_0x1cfca9};_0x2fe3e1['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':_0x2fe3e1});const _0x552717=('attribute:'+(_0x2fe3e1+'|'+Jt({'newValue':_0x1cfca9})))['substring'](0x0,0x3c),_0x25026e=this['_setSuggestionData']({'id':_0x17b754,'type':_0x552717,'data':_0x15e563,'createdAt':new Date(),'authorId':_0x82db17,'attributes':_0x4feb72});_0x560480['push'](_0x25026e),this['_addSuggestionMarker'](_0x552717,_0x17b754,_0x82db17,_0x44872f);}return _0x560480;}['enableDefaultAttributesIntegration'](_0x8508bc){this['enableCommand'](_0x8508bc,(_0x2b7eaa,..._0x324c00)=>{this['_recordAttributeChanges'](()=>{_0x2b7eaa(..._0x324c00);});});}['registerBlockAttribute'](_0x281318){this['_blockAttributeKeys']['add'](_0x281318);}['registerInlineAttribute'](_0x3a7ae7){this['_inlineAttributeKeys']['add'](_0x3a7ae7);}['_getAttributeKey'](_0x423287){return'attribute'==_0x423287['type']?_0x423287['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xb06571,_0x2ed405){const _0x348b95=_0xb06571['getFirstMarker']();this['_model']['change'](_0x161af9=>{_0x161af9['updateMarker'](_0x348b95,{'range':_0x2ed405});});}['_addThreadToSuggestion'](_0x24469c){const _0x460618=_0x24469c['id'],_0x4de3ec=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x460618)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4de3ec,'threadId':_0x460618,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x334883=this['_commentsRepository']['getCommentThread'](_0x460618);_0x334883['unbind']('isRemovable'),_0x334883['isRemovable']=!0x1,_0x24469c['commentThread']=_0x334883;}['_checkSuggestionCorrectness'](_0x24c707,_0x788f50,_0x2bfbd6,_0x318a70){if(_0x24c707['type']!=_0x788f50||_0x24c707['subType']!=_0x2bfbd6||_0x24c707['creator']['id']!=_0x318a70)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4dd4de('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x24d949,_0x56edf5){const _0x43ddee=_0x24d949['getFirstRange']();if(_0x56edf5['isEqual'](_0x43ddee))_0x24d949['removeMarkers']();else{if(_0x43ddee['containsRange'](_0x56edf5)){const _0x4dd862=this['_model']['createPositionAt'](_0x56edf5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x24d949,this['_model']['createRange'](_0x43ddee['start'],_0x4dd862));const _0x564772=_0x1a7a2c(),_0x277ca2=_0x24d949['creator']['id'],_0x3c259f=_0x24d949['type']+':'+_0x24d949['subType'];this['_setSuggestionData']({'id':_0x564772,'type':_0x3c259f,'createdAt':new Date(),'authorId':_0x277ca2,'data':_0x24d949['data'],'attributes':_0x24d949['attributes']});const _0xd3344e=this['_model']['createPositionAt'](_0x56edf5['end']['parent'],'after'),_0x4fc8e8=this['_model']['createRange'](_0xd3344e,_0x43ddee['end']);this['_addSuggestionMarker'](_0x3c259f,_0x564772,_0x277ca2,_0x4fc8e8);}else{if(_0x43ddee['containsPosition'](_0x56edf5['start'])){const _0x530be7=this['_model']['createPositionAt'](_0x56edf5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x24d949,this['_model']['createRange'](_0x43ddee['start'],_0x530be7));}else{const _0x372055=this['_model']['createPositionAt'](_0x56edf5['end']['parent'],'after');this['_setSuggestionRange'](_0x24d949,this['_model']['createRange'](_0x372055,_0x43ddee['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3cb8ac){for(const {suggestion:_0xd2b876,meta:_0x3a4e76}of this['_findSuggestions'](_0x3cb8ac,'insertion')){if(!_0x3a4e76['isOwn'])continue;const _0x384e32=_0xd2b876['getRanges']();for(const _0x42d3b1 of _0x384e32)if(!_0x3cb8ac['getDifference'](_0x42d3b1)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2d319c){const _0x1b77b1=this['editor']['plugins']['get']('Users')['getUser'](_0x2d319c);if(!_0x1b77b1)throw new _0x4dd4de('track-changes-user-not-found',this);return _0x1b77b1;}['_getExternalAuthor'](_0x36c072){const _0x297dfb=this['editor']['plugins']['get']('Users'),_0x432229=_0x5d20b2('external:'+_0x36c072),_0x501d39=_0x297dfb['getUser'](_0x432229);return _0x501d39||_0x297dfb['addUser']({'id':_0x432229,'name':_0x36c072});}['_createSuggestion'](_0x4c8c15,_0x34a27e,_0x1606cb,_0x898635,_0x529b2f){const _0x20e635=this['_getAuthorFromId'](_0x898635),_0x553f59=this['_suggestionFactory']['buildSuggestion'](_0x4c8c15,_0x34a27e,_0x1606cb,_0x20e635,_0x529b2f,_0x33d1f1=>{this['_updateSuggestionData'](_0x1606cb,{'attributes':_0x33d1f1});const _0x49a050=this['getSuggestion'](_0x1606cb);this['_joinWithAdjacentSuggestions'](new Set([_0x49a050])),this['_refreshSuggestionsChain'](new Set([_0x49a050]));});return this['listenTo'](_0x553f59,'accept',()=>{this['_updateSuggestionData'](_0x1606cb,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x553f59,'discard',()=>{this['_updateSuggestionData'](_0x1606cb,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1606cb,_0x553f59),this['_suggestionState']['set'](_0x553f59,'notReady'),_0x553f59;}['_splitMarkerName'](_0x38beab){const _0x619a04=_0x38beab['split'](':');return{'group':_0x619a04[0x0],'type':_0x619a04[0x1],'subType':_0x619a04['length']>=0x5?_0x619a04[0x2]:null,'id':_0x619a04['length']<0x5?_0x619a04[0x2]:_0x619a04[0x3],'authorId':_0x619a04['length']<0x5?_0x619a04[0x3]:_0x619a04[0x4],'markerCount':0x6==_0x619a04['length']?_0x619a04[0x5]:null};}['_breakSuggestionMarker'](_0xce71c3,_0x5932a0,_0x3f50f0){const _0x2e1f46=_0xce71c3['getFirstRange'](),_0xde7eb1=_0x2e1f46['start'],_0xf6ddac=_0x2e1f46['end'];this['_setSuggestionRange'](_0xce71c3,this['_model']['createRange'](_0xde7eb1,_0x5932a0));const _0xfee9ed=_0x1a7a2c(),_0x2493d6=_0xce71c3['creator']['id'],_0x21597a=_0xce71c3['type']+(_0xce71c3['subType']?':'+_0xce71c3['subType']:'');this['_setSuggestionData']({'id':_0xfee9ed,'type':_0x21597a,'createdAt':new Date(),'authorId':_0x2493d6,'originalSuggestionId':_0xce71c3['id'],'attributes':_0xce71c3['attributes'],'data':_0xce71c3['data']});const _0xf73a33=this['_getAttributeKey'](_0xce71c3);('formatBlock'==_0xce71c3['type']||_0xf73a33&&this['_isBlockAttribute'](_0xf73a33))&&(_0x3f50f0=this['_model']['createPositionBefore'](_0x3f50f0['parent'])),this['_addSuggestionMarker'](_0x21597a,_0xfee9ed,_0x2493d6,this['_model']['createRange'](_0x3f50f0,_0xf6ddac));}['_findSuggestions'](_0x4a600c,_0x1e5ffb=null){const _0x2c8432=[],_0x39c7a0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4a600c)||(_0x4a600c=[_0x4a600c]);for(const _0x494bdd of this['getSuggestions']()){if(!_0x494bdd['isInContent'])continue;if(_0x1e5ffb&&_0x494bdd['type']!=_0x1e5ffb)continue;let _0x49d853=!0x1;for(const _0x53db94 of _0x494bdd['getRanges']()){for(const _0x4f6a79 of _0x4a600c){const _0x450b0b=_0x4f6a79['start']['isEqual'](_0x53db94['end'])||_0x4f6a79['end']['isEqual'](_0x53db94['start']);if(_0x450b0b||_0x4f6a79['getIntersection'](_0x53db94)){const _0x7120ee=_0x4f6a79['containsRange'](_0x53db94)&&Gt(this['_model']['schema'],_0x53db94['start'],_0x4f6a79),_0x6c4df2=_0x53db94['containsRange'](_0x4f6a79)&&Gt(this['_model']['schema'],_0x4f6a79['start'],_0x53db94);_0x2c8432['push']({'suggestion':_0x494bdd,'meta':{'isOwn':_0x39c7a0==_0x494bdd['author'],'isNextTo':_0x450b0b,'isInsideObject':_0x7120ee,'containsRangeInObject':_0x6c4df2}}),_0x49d853=!0x0;break;}}if(_0x49d853)break;}}return _0x2c8432;}['_addSuggestionMarker'](_0x1edd46,_0x5ec990,_0x24d379,_0x241c7a,_0x56889e){this['_model']['change'](_0x3fd857=>{let _0x2bcfe6='suggestion:'+_0x1edd46+':'+_0x5ec990+':'+_0x24d379;_0x56889e&&(_0x2bcfe6=_0x2bcfe6+':'+_0x56889e),_0x3fd857['addMarker'](_0x2bcfe6,{'range':_0x241c7a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3674b4){const _0x2c0271=_0x3674b4['previous'],_0x56a3ed=_0x3674b4['next'];_0x3674b4['previous']=null,_0x3674b4['next']=null,null!=_0x2c0271&&_0x2c0271['next']==_0x3674b4&&(_0x2c0271['next']=_0x56a3ed),null!=_0x56a3ed&&_0x56a3ed['previous']==_0x3674b4&&(_0x56a3ed['previous']=_0x2c0271),'ready'==this['_suggestionState']['get'](_0x3674b4)&&(this['_suggestionState']['set'](_0x3674b4,'removed'),this['fire']('suggestionUnloaded',_0x3674b4,_0x2c0271,_0x56a3ed));}['_setSuggestionData'](_0x5ca5aa){const _0x139f20=_0x5ca5aa['id'],_0x4c4de7=this['addSuggestionData'](_0x5ca5aa);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x57e245=this['editor']['plugins']['get']('PendingActions'),_0x445439=_0x4c4de7['hasComments'],_0xb5aff6=_0x4c4de7['subType']?_0x4c4de7['type']+':'+_0x4c4de7['subType']:_0x4c4de7['type'],_0x5b4c5f=this['editor']['locale'],_0x2437de=_0x57e245['add'](o(_0x5b4c5f,'PENDING_ACTION_SUGGESTION')),_0x3b0a97={'id':_0x139f20,'type':_0xb5aff6,'hasComments':_0x445439,'data':_0x5ca5aa['data']||null,'originalSuggestionId':_0x5ca5aa['originalSuggestionId']||null,'attributes':_0x4c4de7['attributes']};this['_adapter']['addSuggestion'](_0x3b0a97)['then'](_0x18ed14=>{_0x4c4de7['_saved']=!0x0,_0x57e245['remove'](_0x2437de),_0x18ed14&&_0x18ed14['createdAt']&&(this['_suggestions']['get'](_0x139f20)['createdAt']=_0x18ed14['createdAt']);})['catch'](_0x3b7a09=>{throw _0x23468a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4c4de7['discard']();}),_0x4c4de7['stopListening'](),this['_suggestions']['delete'](_0x4c4de7['id']),this['_suggestionState']['delete'](_0x4c4de7),_0x3b7a09;});}return _0x4c4de7;}['_isBlockAttribute'](_0x412514){return this['_blockAttributeKeys']['has'](_0x412514);}['_updateSuggestionData'](_0x29f4d8,_0x504fee){const _0x449f2c=this['editor']['plugins']['get']('PendingActions'),_0x5af1f0=this['getSuggestion'](_0x29f4d8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5af1f0['_saved']){const _0x4b4344=_0x449f2c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x29f4d8,_0x504fee)['then'](()=>{_0x449f2c['remove'](_0x4b4344);});}else _0x5af1f0['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x29f4d8,_0x504fee);});}}['_getSuggestionData'](_0xa4c176){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4dd4de('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xa4c176);}['_handleNewSuggestionMarker'](_0x3c8e52){const {id:_0x4f983e,type:_0x191bd3,subType:_0x385b00,authorId:_0x5edb90}=this['_splitMarkerName'](_0x3c8e52),_0x42c01b=this['_suggestions']['get'](_0x4f983e)||this['_createSuggestion'](_0x191bd3,_0x385b00,_0x4f983e,_0x5edb90,{});switch(this['_checkSuggestionCorrectness'](_0x42c01b,_0x191bd3,_0x385b00,_0x5edb90),this['_suggestionState']['get'](_0x42c01b)){case'notReady':this['_getSuggestionData'](_0x4f983e)['then'](_0x2736a6=>{let _0x5321b9=Promise['resolve']();_0x2736a6['hasComments']&&(_0x5321b9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4f983e})),_0x5321b9['then'](()=>{this['addSuggestionData'](_0x2736a6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x42c01b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4f983e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x42c01b,'ready'),this['fire']('suggestionLoaded',_0x42c01b);break;case'ready':this['fire']('suggestionChanged',_0x42c01b);}return _0x42c01b['addMarkerName'](_0x3c8e52),_0x42c01b;}['_refreshSuggestionsChain'](_0x5c8bd0){const _0x17ad4b=Array['from'](_0x5c8bd0),_0x9833a=_0x17ad4b['filter'](_0x352c42=>'attribute'==_0x352c42['type']);this['_refreshAttributeSuggestionsChain'](_0x9833a);const _0x3370d1=_0x17ad4b['filter'](_0x19fc08=>!_0x19fc08['isMultiRange']&&'attribute'!=_0x19fc08['type']),_0x2fa8ba=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d98ab=>!_0x2d98ab['isMultiRange']&&'attribute'!=_0x2d98ab['type']),_0x325414=_0x2fa8ba['filter'](_0x1651ef=>!_0x5c8bd0['has'](_0x1651ef)),_0x613b07=new Map(_0x2fa8ba['map'](_0x3e89ed=>[_0x3e89ed,this['_suggestionFactory']['getSuggestionCallback'](_0x3e89ed['type'],_0x3e89ed['subType'],'chain')])),_0x41900a=new Map(_0x2fa8ba['map'](_0x82b286=>[_0x82b286,_0x82b286['getFirstRange']()])),_0x1a5591=new Set(),_0x5b8674=new Set();for(let _0x10f74c=0x0;_0x10f74c<_0x3370d1['length'];_0x10f74c++)_0x34d151(_0x3370d1[_0x10f74c],_0x3370d1,_0x10f74c+0x1);for(let _0x4f3691=0x0;_0x4f3691<_0x3370d1['length'];_0x4f3691++)_0x34d151(_0x3370d1[_0x4f3691],_0x325414,0x0);const _0xc86a61=new Set();for(let _0x40c4bc=0x0;_0x40c4bc<_0x3370d1['length'];_0x40c4bc++){const _0x507e4c=_0x3370d1[_0x40c4bc];!_0x5b8674['has'](_0x507e4c)&&_0x507e4c['previous']&&(_0xc86a61['add'](_0x507e4c['previous']),_0x507e4c['previous']['next']===_0x507e4c&&(_0x507e4c['previous']['next']=null),_0x507e4c['previous']=null),!_0x1a5591['has'](_0x507e4c)&&_0x507e4c['next']&&(_0xc86a61['add'](_0x507e4c['next']),_0x507e4c['next']['previous']===_0x507e4c&&(_0x507e4c['next']['previous']=null),_0x507e4c['next']=null);}function _0x34d151(_0x1bc627,_0x421bf4,_0x463ebd){for(let _0xc76ba2=_0x463ebd;_0xc76ba2<_0x421bf4['length'];_0xc76ba2++){const _0x4f95cf=_0x4a5dca(_0x1bc627,_0x421bf4[_0xc76ba2]);_0x4f95cf&&(_0x4f95cf[0x0]['next']=_0x4f95cf[0x1],_0x4f95cf[0x1]['previous']=_0x4f95cf[0x0],_0x1a5591['add'](_0x4f95cf[0x0]),_0x5b8674['add'](_0x4f95cf[0x1]));}}function _0x4a5dca(_0x6a94c8,_0x4de42d){if(_0x6a94c8['author']['id']!==_0x4de42d['author']['id'])return null;const _0x511bd1=_0x613b07['get'](_0x6a94c8)(_0x6a94c8,_0x4de42d,_0x41900a['get'](_0x6a94c8),_0x41900a['get'](_0x4de42d));if(!_0x511bd1)return null;return _0x613b07['get'](_0x4de42d)(_0x6a94c8,_0x4de42d,_0x41900a['get'](_0x6a94c8),_0x41900a['get'](_0x4de42d))?_0x511bd1[0x1]['commentThread']&&_0x511bd1[0x1]['commentThread']['length']?null:_0x511bd1:null;}_0xc86a61['size']&&this['_refreshSuggestionsChain'](_0xc86a61);}['_refreshAttributeSuggestionsChain'](_0x556b34){if(0x0==_0x556b34['length'])return;const _0x46bca1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x564244=>'attribute'==_0x564244['type']&&_0x564244['_isDataLoaded']),_0x24f905=[],_0x3b251b=new Map();for(const _0x3028ca of _0x46bca1){const _0x1c18c8=_0x5d20b2(_0x3028ca['attributes']);_0x3b251b['has'](_0x1c18c8)||(_0x3b251b['set'](_0x1c18c8,_0x24f905['length']),_0x24f905['push']([]));const _0x1e7bd7=_0x3b251b['get'](_0x1c18c8);_0x24f905[_0x1e7bd7]['push'](_0x3028ca);}!(function(){_0x24f905['sort']((_0x7a63b7,_0x4e4731)=>{const _0x586375=_0x7a63b7[0x0]['createdAt'],_0x50bed2=_0x4e4731[0x0]['createdAt'];return _0x586375==_0x50bed2?_0x7a63b7[0x0]['attributes']['groupId']<_0x4e4731[0x0]['attributes']['groupId']?-0x1:0x1:_0x586375<_0x50bed2?-0x1:0x1;});for(const _0x219886 of _0x24f905)_0x219886['sort']((_0x582db2,_0x54cbb2)=>_0x582db2['id']<_0x54cbb2['id']?-0x1:0x1);}());for(let _0x1461d2=0x0;_0x1461d2<_0x24f905['length'];_0x1461d2++){if(0x0==_0x24f905[_0x1461d2]['length'])continue;const _0x326257=[];for(let _0x16bff4=_0x1461d2+0x1;_0x16bff4<_0x24f905['length'];_0x16bff4++)0x0!=_0x24f905[_0x16bff4]['length']&&_0x2f6166(_0x24f905[_0x1461d2],_0x24f905[_0x16bff4])&&_0x326257['push'](_0x16bff4);for(const _0x2f08a1 of _0x326257)_0x24f905[_0x1461d2]=_0x24f905[_0x1461d2]['concat'](_0x24f905[_0x2f08a1]),_0x24f905[_0x2f08a1]=[];}for(const _0x1bbddc of _0x24f905)for(let _0xa12fef=0x0;_0xa12fef<_0x1bbddc['length'];_0xa12fef++){const _0x3b1340=_0x1bbddc[_0xa12fef+0x1]||null;_0x1bbddc[_0xa12fef]['next']!==_0x3b1340&&(_0x1bbddc[_0xa12fef]['next']=_0x3b1340);}for(const _0x11c8d8 of _0x24f905)for(let _0x201a19=0x0;_0x201a19<_0x11c8d8['length'];_0x201a19++){const _0x7d9b8a=_0x11c8d8[_0x201a19-0x1]||null;_0x11c8d8[_0x201a19]['previous']!==_0x7d9b8a&&(_0x11c8d8[_0x201a19]['previous']=_0x7d9b8a);}function _0x2f6166(_0x164562,_0x37bc68){if(_0x164562[0x0]['attributes']['groupId']!==_0x37bc68[0x0]['attributes']['groupId']&&_0x164562[0x0]['author']!==_0x37bc68[0x0]['author'])return!0x1;if(!function(_0x102375,_0x2b4ab8){if(!_0x102375['hasComments']&&!_0x2b4ab8['hasComments'])return!0x0;if(_0x102375['hasComments']&&_0x2b4ab8['hasComments'])return!0x1;if(_0x102375['hasComments']&&_0x2b4ab8['createdAt']<_0x102375['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2b4ab8['hasComments']&&_0x102375['createdAt']<_0x2b4ab8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x164562[0x0],_0x37bc68[0x0]))return!0x1;const _0x15704c=Vt(_0x164562[0x0]['attributes'],'groupId'),_0x4a09eb=Vt(_0x37bc68[0x0]['attributes'],'groupId');if(!_0x283667(_0x15704c,_0x4a09eb))return!0x1;return!!_0x164562['every'](_0x3af880=>_0x37bc68['some'](_0x771cc1=>_0x3af880['getFirstRange']()['isEqual'](_0x771cc1['getFirstRange']())))&&_0x37bc68['every'](_0x298f5a=>_0x164562['some'](_0x3be5d8=>_0x298f5a['getFirstRange']()['isEqual'](_0x3be5d8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d9ea5){const _0x113291=Array['from'](_0x4d9ea5),_0x44238f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3cf16a=_0x44238f['filter'](_0x289185=>!_0x4d9ea5['has'](_0x289185)),_0x38c410=new Map(_0x113291['map'](_0x3dfc42=>[_0x3dfc42,this['_suggestionFactory']['getSuggestionCallback'](_0x3dfc42['type'],_0x3dfc42['subType'],'join')])),_0xfab1f3=new Map(_0x44238f['map'](_0x45f0d1=>[_0x45f0d1,_0x45f0d1['getRanges']()]));for(let _0xd5209a=0x0;_0xd5209a<_0x113291['length'];_0xd5209a++){if(_0x612336(this,_0x113291[_0xd5209a],_0x113291,_0xd5209a+0x1))return!0x0;}for(let _0x5351bd=0x0;_0x5351bd<_0x113291['length'];_0x5351bd++){if(_0x612336(this,_0x113291[_0x5351bd],_0x3cf16a,0x0))return!0x0;}return!0x1;function _0x612336(_0x339c76,_0x8c3b0d,_0x3d97a6,_0x4e6cd7){for(let _0x5b39db=_0x4e6cd7;_0x5b39db<_0x3d97a6['length'];_0x5b39db++){const _0x234f4a=_0x3d97a6[_0x5b39db];if(_0x234f4a['type']!==_0x8c3b0d['type']||_0x234f4a['author']['id']!==_0x8c3b0d['author']['id']||_0x234f4a['subType']!==_0x8c3b0d['subType'])continue;if(!Wt(_0x8c3b0d,_0x234f4a))continue;if('attribute'==_0x8c3b0d['type']&&_0x8c3b0d['data']['oldValue']!=_0x234f4a['data']['oldValue'])continue;if('attribute'==_0x8c3b0d['type']&&_0x339c76['_isBlockAttribute'](_0x8c3b0d['data']['key']))continue;if('formatBlock'==_0x8c3b0d['type']){const _0x1a1d98=_0x339c76['editor']['model'],_0x5ebcac=_0x8c3b0d['getContainedElement']();if(_0x5ebcac&&(_0x1a1d98['schema']['isObject'](_0x5ebcac)||_0x1a1d98['schema']['isLimit'](_0x5ebcac)))continue;}const _0x20993a=_0x38c410['get'](_0x8c3b0d),_0x2c85f3=_0xfab1f3['get'](_0x8c3b0d),_0x566bc2=_0xfab1f3['get'](_0x234f4a),_0x5d7d00=_0x8c3b0d['commentThread']&&_0x8c3b0d['commentThread']['length'],_0x48d92a=_0x234f4a['commentThread']&&_0x234f4a['commentThread']['length'];if(!_0x5d7d00&&_0x20993a(_0x566bc2,_0x2c85f3))return _0x339c76['_joinSuggestions'](_0x234f4a,_0x8c3b0d),_0xfab1f3['delete'](_0x8c3b0d),!0x0;if(!_0x48d92a&&_0x20993a(_0x2c85f3,_0x566bc2))return _0x339c76['_joinSuggestions'](_0x8c3b0d,_0x234f4a),_0xfab1f3['delete'](_0x234f4a),!0x0;}return!0x1;}}['_joinSuggestions'](_0xe6771e,_0x491004){if(_0xe6771e['isMultiRange']){for(const _0x489c4d of _0x491004['getRanges']())_0xe6771e['addRange'](_0x489c4d);}else{const _0xe90865=_0x491004['getFirstRange']()['end'];this['_setSuggestionRange'](_0xe6771e,this['_model']['createRange'](_0xe6771e['getFirstRange']()['start'],_0xe90865));}_0x491004['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2aa39f,_0x443d80,_0x352c23){const _0x2f1115=_0x2aa39f['startsWith']('format')||_0x2aa39f['startsWith']('attribute')?'FORMATTING':_0x2aa39f['toUpperCase']();return o(this['editor']['locale'],_0x443d80+'_'+_0x2f1115+'_SUGGESTION_ANNOUNCEMENT',_0x352c23);}['_initAriaMarkerChangeAnnouncements'](){const _0x10d00f=this['editor'];if(!_0x10d00f['ui'])return;const {ariaLiveAnnouncer:_0x28d47a}=_0x10d00f['ui'];_0x5a8ba8(this['_model'],({left:_0x2f2313,entered:_0x18cb42})=>{for(const _0x2a7863 of _0x2f2313){const {group:_0x2c766a,type:_0x48edd8}=this['_splitMarkerName'](_0x2a7863['name']);if('suggestion'===_0x2c766a){_0x28d47a['announce'](this['_getMarkerAnnouncementText'](_0x48edd8,'LEAVE'));break;}}for(const _0x2ce98c of _0x18cb42){const {group:_0x449bb2,type:_0x5702a7}=this['_splitMarkerName'](_0x2ce98c['name']);if('suggestion'===_0x449bb2){_0x28d47a['announce'](this['_getMarkerAnnouncementText'](_0x5702a7,'ENTER',_0x4858a1(_0x19135f)));break;}}});}['_processAttributeChanges'](_0x3290ba){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2cb16c=this['editor'],_0x472667=_0x2cb16c['model']['document']['differ']['getChanges']();if(0x0==_0x472667['length'])return!0x1;const _0x22fc1f=[],_0x272af4=_0x472667['filter'](_0x31d33a=>'attribute'==_0x31d33a['type']),_0x13ea40=_0x472667['filter'](_0x4376b0=>'insert'==_0x4376b0['type']&&'$text'!=_0x4376b0['name']),_0x3cafc0=_0x472667['filter'](_0x2a83a=>'remove'==_0x2a83a['type']&&'$text'!=_0x2a83a['name']);for(const _0x4f7063 of _0x272af4)_0x22fc1f['push']({'key':_0x4f7063['attributeKey'],'newValue':_0x4f7063['attributeNewValue'],'oldValue':_0x4f7063['attributeOldValue'],'range':qt(_0x4f7063['range'],_0x2cb16c['model'])});for(const _0x4ca13f of _0x13ea40){const _0x5cfff2=_0x3cafc0['find'](_0xa6277b=>_0xa6277b['position']['isEqual'](_0x4ca13f['position']));_0x5cfff2&&_0x22fc1f['push']({'key':m,'newValue':_0x4ca13f['name'],'oldValue':_0x5cfff2['name'],'range':_0x2cb16c['model']['createRangeOn'](_0x4ca13f['position']['nodeAfter'])});}return 0x0!=_0x22fc1f['length']&&this['_reduceExistingSuggestions'](_0x3290ba,_0x22fc1f);}['_processAttributeSuggestions'](_0x39a1d2){let _0x23e7c7=!0x1;const _0x5c8939=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x219d1f=>_0x219d1f['data']['newRange']&&_0x219d1f['name']['startsWith']('suggestion:attribute:'));for(const _0x4cafcd of _0x5c8939){const {subType:_0x5c45bc,id:_0x3fc9fc}=this['_splitMarkerName'](_0x4cafcd['name']),_0x5e00dc=_0x5c45bc['split']('|')[0x0];for(const _0x47b688 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x47b688['id']!=_0x3fc9fc&&'attribute'==_0x47b688['type']&&_0x47b688['data']&&_0x47b688['data']['key']==_0x5e00dc&&_0x47b688['getFirstRange']()['isIntersecting'](_0x4cafcd['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x47b688,_0x4cafcd['data']['newRange'],_0x39a1d2),_0x23e7c7=!0x0);}return _0x23e7c7;}['_recordAttributeChanges'](_0x2fd9f4){this['_recordAttributeSuggestions']=!0x0,_0x2fd9f4();}['_isRegisteredAttribute'](_0x806924){const _0x7a8213=this['_isBlockAttribute'](_0x806924),_0x13f861=this['_inlineAttributeKeys']['has'](_0x806924);return _0x7a8213||_0x13f861;}['_reduceExistingSuggestions'](_0x4c3427,_0xdb9dc7){if(0x0==_0xdb9dc7['length'])return!0x1;let _0x3ff14c=!0x1;for(const _0x34c4b8 of _0xdb9dc7){const _0x4ef837=this['_findSuggestions'](_0x34c4b8['range'],'attribute')['filter'](_0x17ba52=>!_0x17ba52['meta']['isNextTo'])['map'](_0x1a9871=>_0x1a9871['suggestion']),_0x4882ec=_0x5d20b2({'newValue':_0x34c4b8['newValue']});_0x4ef837['filter'](_0x30839d=>{const [_0x2b6ac4,_0x5ea82f]=_0x30839d['subType']['split']('|');return _0x2b6ac4==_0x34c4b8['key']&&_0x5ea82f!=_0x4882ec;})['forEach'](_0x5a37d6=>{this['_reduceSuggestionAttributeRange'](_0x5a37d6,_0x34c4b8['range'],_0x4c3427),_0x3ff14c=!0x0;});}return _0x3ff14c;}['_reduceSuggestionAttributeRange'](_0x33ae49,_0x1058b4,_0x54b25e){const _0x458712=_0x33ae49['getFirstRange']()['getDifference'](_0x1058b4);0x0!==_0x458712['length']?0x1!==_0x458712['length']?this['_breakSuggestionMarker'](_0x33ae49,_0x1058b4['start'],_0x1058b4['end']):this['_setSuggestionRange'](_0x33ae49,_0x458712[0x0]):_0x54b25e['removeMarker'](_0x33ae49['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x53c1a0){this['_editor']=_0x53c1a0,this['_model']=_0x53c1a0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x497242,_0x111ef7,_0x2f9670,_0xc57f2a,_0x4e9d4d,_0x1c2551){return new u(this['_model'],{'type':_0x497242,'subType':_0x111ef7,'id':_0x2f9670,'author':_0xc57f2a,'creator':_0xc57f2a,'attributes':_0x4e9d4d,'onAttributesChange':_0x1c2551,'onAccept':(..._0x5de0d6)=>this['getSuggestionCallback'](_0x497242,_0x111ef7,'accept')(..._0x5de0d6),'onDiscard':(..._0x22c175)=>this['getSuggestionCallback'](_0x497242,_0x111ef7,'discard')(..._0x22c175)});}['registerCustomCallback'](_0x593fc5,_0x21fb33,_0x13025d,_0x3a20fa){const _0xbdde09=_0x593fc5+':'+_0x21fb33+':'+_0x13025d;this['_customCallbacks']['set'](_0xbdde09,_0x3a20fa);}['getSuggestionCallback'](_0x5ef2ed,_0x34dfa5,_0xa764c0){const _0x137496=_0x5ef2ed+':'+_0x34dfa5+':'+_0xa764c0;return this['_customCallbacks']['get'](_0x137496)||this['_defaultCallbacks']['get'](_0x5ef2ed+':'+_0xa764c0);}['_registerDefaultCallbacks'](){const _0x540ef8=()=>!0x1,_0x289d7a=_0x323f85=>{_0x323f85['sort']((_0x556b84,_0x4da8ec)=>_0x556b84['start']['isBefore'](_0x4da8ec['start'])?0x1:-0x1),this['_model']['change'](_0xa8b3c5=>{for(const _0x422002 of _0x323f85){let _0x3abddb;_0x3abddb=_0x422002['end']['isAtEnd']&&_0x422002['end']['parent']==_0x422002['start']['nodeAfter']?_0xa8b3c5['createSelection'](_0x422002['start']['nodeAfter'],'on'):_0xa8b3c5['createSelection'](_0x422002),this['_model']['deleteContent'](_0x3abddb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1887c0=(_0x293b68,_0x284a0e)=>{_0x284a0e&&this['_model']['change'](_0xb23b2=>{const {commandName:_0x55ae02,commandParams:_0x4faa28=[]}=_0x284a0e,_0x3324ec=_0x293b68['map'](_0x4a60cb=>(Ft(_0x4a60cb)&&(_0x4a60cb=this['_model']['createRange'](_0x4a60cb['end'])),_0x4a60cb))['filter'](_0x10cf58=>'$graveyard'!==_0x10cf58['root']['rootName']);if(_0x3324ec['length']<0x1)return;const _0x3cca7c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x12e03c=>_0x125c3e['fromRange'](_0x12e03c));_0xb23b2['setSelection'](_0x3324ec);for(const _0x5469bc of this['_editor']['commands']['commands']())_0x5469bc['refresh']();_0x4faa28['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x55ae02,..._0x4faa28);const _0x306a31=_0x3cca7c['filter'](_0x54c083=>'$graveyard'!=_0x54c083['root']['rootName']);_0x306a31['length']>0x0&&_0xb23b2['setSelection'](_0x306a31);for(const _0x55f273 of _0x3cca7c)_0x55f273['detach']();});},_0x1e4da5=(_0x3ab1ed,_0x44400a)=>0x1==_0x3ab1ed['length']&&0x1==_0x44400a['length']&&_0x3ab1ed[0x0]['end']['isEqual'](_0x44400a[0x0]['start']),_0x45ca61=(_0x41086e,_0x173ec2,_0xe23b89,_0x400450)=>Kt(_0x41086e,_0x173ec2,_0xe23b89,_0x400450)?[_0x41086e,_0x173ec2]:Kt(_0x173ec2,_0x41086e,_0x400450,_0xe23b89)?[_0x173ec2,_0x41086e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x540ef8),this['_defaultCallbacks']['set']('insertion:discard',_0x289d7a),this['_defaultCallbacks']['set']('insertion:join',_0x1e4da5),this['_defaultCallbacks']['set']('insertion:chain',_0x45ca61),this['_defaultCallbacks']['set']('deletion:accept',_0x289d7a),this['_defaultCallbacks']['set']('deletion:discard',_0x540ef8),this['_defaultCallbacks']['set']('deletion:join',_0x1e4da5),this['_defaultCallbacks']['set']('deletion:chain',_0x45ca61),this['_defaultCallbacks']['set']('formatInline:accept',_0x1887c0),this['_defaultCallbacks']['set']('formatInline:discard',_0x540ef8),this['_defaultCallbacks']['set']('formatInline:join',_0x1e4da5),this['_defaultCallbacks']['set']('formatInline:chain',_0x540ef8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1887c0),this['_defaultCallbacks']['set']('formatBlock:discard',_0x540ef8),this['_defaultCallbacks']['set']('formatBlock:join',_0x1e4da5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x540ef8),this['_defaultCallbacks']['set']('attribute:accept',_0x540ef8),this['_defaultCallbacks']['set']('attribute:discard',(_0x3081fd,_0x141989)=>{if(!_0x141989)return;const _0x269b47=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4c5f77=>{if(_0x141989['key']==m)for(const _0x493874 of _0x3081fd){const _0x52f4fe=_0x493874['start']['nodeAfter'],_0x280a41=_0x141989['oldValue'];_0x4c5f77['rename'](_0x52f4fe,_0x280a41);}else{if(_0x269b47['_isBlockAttribute'](_0x141989['key'])){for(const _0x12397f of _0x3081fd)void 0x0!==_0x141989['oldValue']?_0x4c5f77['setAttribute'](_0x141989['key'],_0x141989['oldValue'],_0x12397f['start']['nodeAfter']):_0x4c5f77['removeAttribute'](_0x141989['key'],_0x12397f['start']['nodeAfter']);}else{for(const _0x42385d of _0x3081fd)_0x141989['oldValue']?_0x4c5f77['setAttribute'](_0x141989['key'],_0x141989['oldValue'],_0x42385d):_0x4c5f77['removeAttribute'](_0x141989['key'],_0x42385d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1e4da5);}}function Gt(_0x3e5196,_0x2db79b,_0x35dd37){for(const _0x320e19 of _0x2db79b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x320e19['root']==_0x320e19)return!0x1;if(!_0x35dd37['containsItem'](_0x320e19))return!0x1;if(_0x3e5196['isObject'](_0x320e19)||_0x3e5196['isLimit'](_0x320e19))return!0x0;}return!0x1;}function Ft(_0x432602){return _0x432602['end']['parent']==_0x432602['start']['nodeAfter']&&_0x432602['end']['isAtStart'];}function Lt(_0xb2fd35,_0x15d783,_0x182278,_0x1aa765){const _0x33ee44=_0xc64682=>!_0xc64682['item']['is']('$textProxy')&&!_0x1aa765['isObject'](_0xc64682['item']),_0x37fc22=_0xb2fd35['start']['getLastMatchingPosition'](_0x33ee44),_0x2ee499=_0xb2fd35['end']['getLastMatchingPosition'](_0x33ee44,{'direction':'backward'});return(!_0xb2fd35['start']['isEqual'](_0x37fc22)||!_0xb2fd35['end']['isEqual'](_0x2ee499))&&(_0x37fc22['isBefore'](_0x2ee499)?_0x182278['updateMarker'](_0x15d783,{'range':_0x182278['createRange'](_0x37fc22,_0x2ee499)}):_0x182278['removeMarker'](_0x15d783),!0x0);}function Jt(_0x3d6ce6){return _0x5d20b2(_0x3d6ce6);}function Ht(_0x30db84){const _0x1873e2=_0x30db84['start']['nodeAfter'];return _0x1873e2&&_0x1873e2['is']('element');}function qt(_0x51f9f7,_0x5246f5){return null==_0x51f9f7['end']['nodeBefore']&&_0x51f9f7['end']['parent']==_0x51f9f7['start']['nodeAfter']?zt(_0x51f9f7['start']['nodeAfter'],_0x5246f5):_0x51f9f7;}function zt(_0x1531f0,_0xc56f2a){const _0x34fcdf=_0xc56f2a['schema']['isObject'](_0x1531f0)||_0xc56f2a['schema']['isSelectable'](_0x1531f0);return _0xc56f2a['createRange'](_0xc56f2a['createPositionAt'](_0x1531f0,'before'),_0x34fcdf?_0xc56f2a['createPositionAfter'](_0x1531f0):_0xc56f2a['createPositionAt'](_0x1531f0,'end'));}function Kt(_0x18d0c7,_0x3e1a23,_0x45c074,_0x5a9e98){return!!Wt(_0x18d0c7,_0x3e1a23)&&_0x45c074['end']['isEqual'](_0x5a9e98['start']);}function Wt(_0x18676d,_0x445aeb){if(!_0x18676d['_isDataLoaded']||!_0x445aeb['_isDataLoaded'])return!0x1;const _0x82d10a=new Set(Object['keys'](_0x18676d['attributes'])),_0x229851=new Set(Object['keys'](_0x445aeb['attributes']));if(_0x82d10a['delete']('groupId'),_0x229851['delete']('groupId'),0x0==_0x82d10a['size']&&0x0==_0x229851['size'])return!0x0;if(_0x82d10a['size']!=_0x229851['size'])return!0x1;const _0x57f34b={..._0x18676d['attributes']},_0x3f04f8={..._0x445aeb['attributes']};return delete _0x57f34b['groupId'],delete _0x3f04f8['groupId'],JSON['stringify'](_0x57f34b)==JSON['stringify'](_0x3f04f8);}function Qt(_0x44bedd,_0x4a99e0){const _0x59d1b5=Xt(_0x44bedd['attributes']),_0x7a3d08=Xt(_0x4a99e0);if(!_0x44bedd['_isDataLoaded'])return!0x1;for(const _0x444044 of Object['keys'](_0x7a3d08))if(!_0x283667(_0x59d1b5[_0x444044],_0x7a3d08[_0x444044]))return!0x1;return!0x0;}function Xt(_0x2fb38e){const _0x1025b6=Object['assign']({},_0x2fb38e);return delete _0x1025b6['skipNestingCheck'],delete _0x1025b6['tablePasteChainId'],_0x1025b6;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x349e4e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xda7928,_0x563fec,_0x23b569,_0x20144f){super(),this['model']=_0x563fec,this['view']=_0x23b569,this['commentThreadController']=_0x20144f,this['_editor']=_0xda7928,this['_acceptCommand']=_0xda7928['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xda7928['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x39c16e,_0x233bea)=>_0x39c16e||_0x233bea),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3b2f15=>_0x3b2f15&&this['_editor']['model']['canEditAt'](_0x563fec['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4f6f1c=>_0x4f6f1c&&this['_editor']['model']['canEditAt'](_0x563fec['getRanges']())),this['_pendingAction']=null,_0x23b569['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x23b569,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x23b569,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x23b569,'change:isDirty',()=>{_0x23b569['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 _0x16d46f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x16d46f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0xae56f4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x480c0f,_0x30ba20,_0x3915b1,_0x3d2b84){super(_0x480c0f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xe1a052(_0x480c0f,o(_0x480c0f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x30ba20['authoredAt']),this['bind']('authoredAt')['to'](_0x30ba20),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',_0x30ba20,'authoredAt',this,'descriptionParts',(_0x4028e1,_0x4e9677,_0x44f34e)=>{const _0x235b50=_0x44f34e['map'](_0x5ed704=>cs(_0x5ed704['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4028e1-0x1,_0x30ba20['author']['name'],_0x4e9677?_0x3d2b84['formatDateTime'](_0x4e9677):'',new DOMParser()['parseFromString'](_0x235b50,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1e33fb(),this['focusTracker']=new _0x2515cc(),this['keystrokes']=new _0x170cca(),this['focusCycler']=new _0x159ec4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x506f87=>_0x506f87['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x30ba20,this['_localUser']=_0x3915b1,this['_config']=_0x3d2b84,_0x3d2b84['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x430d09(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x19c4a6}=this['_config'];this['commentsListView']=new _0x19c4a6(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',_0x3617e7=>_0x3617e7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2b67e9,_0x3bb068)=>_0x2b67e9||!!_0x3bb068);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x32c899}=this['_config'],_0x176e0a=new _0x32c899(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5d0aaf=_0x176e0a['commentInputView'];return _0x176e0a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5d0aaf,'value',(_0x5a40c3,_0x5d8dc1,_0x2fd6e7)=>!!_0x2fd6e7||_0x5a40c3&&!_0x5d8dc1),_0x5d0aaf['on']('submit',(_0x30501e,_0x369cf1)=>{this['fire']('addComment',_0x369cf1),_0x5d0aaf['editor']['setData']('');}),_0x5d0aaf['on']('cancel',()=>this['focus']()),_0x5d0aaf['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x176e0a;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x5dcd77,_0x3ca0a1,_0x23f94b,_0x41b767){super(_0x5dcd77,_0x3ca0a1,_0x23f94b,_0x41b767),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4fbf77=>_0x4fbf77&&_0x4fbf77[0x0]?_0x4fbf77[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4613b6,_0x3953ff)=>{let _0x11bd53='';for(const _0x2ea743 of _0x4613b6)_0x11bd53+='<p>'+cs(_0x2ea743['content'],_0x2ea743['color'])+'</p>';return _0x3953ff?_0x11bd53:_0x525a8a(_0x11bd53,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x41b767['SuggestionView'](_0x5dcd77,_0x3ca0a1,{'formatDateTime':_0x41b767['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 _0x5c283a=this['bindTemplate'],_0x33ea1c=[this['suggestionView']];return this['commentsListView']&&_0x33ea1c['push'](this['commentsListView']),this['commentThreadInputView']&&_0x33ea1c['push'](this['commentThreadInputView']),_0x33ea1c['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5c283a['if']('isActive','ck-suggestion-wrapper--active'),_0x5c283a['to']('type',_0x50c337=>'ck-suggestion-'+_0x50c337),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':_0x5c283a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x33ea1c};}['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 fe extends _0xae56f4{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3c9c5e,_0xb0f09b,_0x2003ec){super(_0x3c9c5e),this['_model']=_0xb0f09b,this['_config']=_0x2003ec,this['set']('description',''),this['bind']('authoredAt')['to'](_0xb0f09b),this['acceptButton']=this['_createButton'](o(_0x3c9c5e,'Accept\x20suggestion'),_0x2e537e['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3c9c5e,'Discard\x20suggestion'),_0x2e537e['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2837f4(_0x3c9c5e,_0xb0f09b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x1e33fb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2515cc(),this['keystrokes']=new _0x170cca(),this['focusCycler']=new _0x159ec4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x13cbf2=>_0x13cbf2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x419381=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x419381['innerHTML']=this['description'],this['on']('change:description',(_0x39920e,_0x5c2319,_0x56781f)=>{_0x419381['innerHTML']=_0x56781f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x14787d=this['bindTemplate'],_0x2c49d0=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x14787d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x14787d['to']('authoredAt',_0x351927=>this['_config']['formatDateTime'](_0x351927))}]}]},{'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']&&_0x2c49d0['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':_0x2c49d0}]};}['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'](_0x4e6c16,_0x55b94d,_0x5b3102,_0x351c5a,_0x23a21b){const _0x23b987=new _0x2d6f05(this['locale']);return _0x23b987['set']({'label':_0x4e6c16,'icon':_0x55b94d,'tooltip':!0x0,'tooltipPosition':_0x23a21b}),_0x23b987['extendTemplate']({'attributes':{'class':_0x5b3102}}),_0x23b987['on']('execute',()=>{this['fire'](_0x351c5a,this['_model']['id']);}),_0x23b987;}['_setupKeyboardNavigation'](){const _0x4f4dda=this['element'];this['keystrokes']['listenTo'](_0x4f4dda);for(const _0x2e65ca of this['focusables'])this['focusTracker']['add'](_0x2e65ca['element']),this['keystrokes']['listenTo'](_0x2e65ca['element']);this['keystrokes']['set']('enter',(_0xb1d044,_0x35b094)=>{_0x4f4dda===_0xb1d044['target']&&(this['focusCycler']['focusFirst'](),_0x35b094());}),this['keystrokes']['set']('esc',(_0x2cac37,_0x321331)=>{_0x4f4dda!==_0x2cac37['target']&&(this['focus'](),_0x321331());});}}var we='<!--\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-2025,\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 _0x5320e9{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xfc0992,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5df559){super(_0x5df559),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x10156e=this['editor']['config'];_0x10156e['define']('trackChanges.SuggestionThreadView',pe),_0x10156e['define']('trackChanges.SuggestionView',fe),_0x10156e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x10156e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x203a84,_0x575779){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2f25a6,_0x4be751]of this['_handleControllerBuffer']){const _0x580e39=this['_suggestionToController']['has'](_0x2f25a6);_0x580e39||_0x4be751?_0x580e39&&_0x4be751&&this['_destroyController'](_0x2f25a6):this['_initializeController'](_0x2f25a6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x203a84,_0x575779);}['init'](){const _0x56ba68=this['editor'],_0x2e88fa=_0x56ba68['plugins']['get']('TrackChangesEditing'),_0x1c4464=_0x56ba68['plugins']['get']('Annotations'),_0x168665=_0x56ba68['plugins']['get']('EditorAnnotations'),_0x3fe360=_0x56ba68['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x168665['addSourceCollector'](()=>{const _0x3d15f6=[];for(const [_0x5d9368,_0x57b435]of Array['from'](this['_suggestionToController'])){const _0x3bb4f8=_0x5d9368['getAllAdjacentSuggestions'](),_0x12efc4=[];for(const _0x5a6f8e of _0x3bb4f8){if(!_0x5a6f8e['isInContent'])continue;if(_0x5a6f8e['isMultiRange']){_0x12efc4['push'](..._0x5a6f8e['getRanges']());continue;}const _0x20c0f3=_0x5a6f8e['getFirstRange']();if(_0x12efc4['length']>0x0){const _0x26fe58=_0x12efc4[0x0]['getJoined'](_0x20c0f3);if(_0x26fe58){_0x12efc4[0x0]=_0x26fe58;continue;}}_0x12efc4['push'](_0x20c0f3);}_0x3d15f6['push']([_0x57b435['view'],_0x12efc4]);}return _0x3d15f6;}),this['listenTo'](_0x2e88fa,'suggestionLoaded',(_0x15efc3,_0xe4c0b8)=>{this['listenTo'](_0xe4c0b8,'change:previous',(_0xf0509e,_0x5c7cb8,_0xd704eb,_0x4da362)=>{_0xe4c0b8['isInContent']&&(null==_0xd704eb?(this['_updateController'](_0x4da362['head']),this['_handleSuggestionControllerDelayed'](_0xe4c0b8,!0x1)):(this['_updateController'](_0xd704eb['head']),null==_0x4da362&&this['_handleSuggestionControllerDelayed'](_0xe4c0b8,!0x0)));}),null!==_0xe4c0b8['previous']?this['_updateController'](_0xe4c0b8['head']):this['_handleSuggestionControllerDelayed'](_0xe4c0b8,!0x1);}),this['listenTo'](_0x2e88fa,'suggestionUnloaded',(_0x2176fd,_0x265a58,_0x43ab57)=>{this['stopListening'](_0x265a58,'change:previous'),this['_handleControllerBuffer']['delete'](_0x265a58),this['_suggestionToController']['has'](_0x265a58)&&this['_destroyController'](_0x265a58),_0x43ab57&&this['_updateController'](_0x43ab57['head']);}),this['listenTo'](_0x2e88fa,'suggestionChanged',(_0x383cf0,_0x305f0e)=>{this['_updateController'](_0x305f0e);}),this['listenTo'](_0x1c4464,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3fe360,'addComment',(_0x294cef,{threadId:_0x48daa3,isFromAdapter:_0x2a41fd})=>{if(_0x2a41fd||!_0x2e88fa['hasSuggestion'](_0x48daa3))return;const _0x4ea978=_0x2e88fa['getSuggestion'](_0x48daa3);this['_suggestionToController']['get'](_0x4ea978)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x44ef04=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a2918;for(const _0x4310ad in _0x44ef04){const _0x512919=_0x4310ad,_0x4aed96=_0x44ef04[_0x512919];if('trackChangesLicenseKeyValid'==_0x4aed96||'trackChangesLicenseKeyInvalid'==_0x4aed96||'trackChangesLicenseKeyExpired'==_0x4aed96||'trackChangesLicenseKeyDomainLimit'==_0x4aed96||'trackChangesLicenseKeyNotAllowed'==_0x4aed96||'trackChangesLicenseKeyEvaluationLimit'==_0x4aed96||'trackChangesLicenseKeyTrialLimit'==_0x4aed96||'trackChangesLicenseKeyUsageLimit'==_0x4aed96){delete _0x44ef04[_0x512919],_0x2a2918=_0x4aed96,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2a2918&&_0x44ef04['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2a2918&&_0x44ef04['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2a2918&&_0x44ef04['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2a2918&&_0x44ef04['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2a2918&&_0x44ef04['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2a2918&&_0x44ef04['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2a2918&&_0x44ef04['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x242e87=this['editor']['plugins']['get']('Annotations'),_0x17934f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59ac28=Array['from'](_0x242e87['activeAnnotations'],_0x4919c2=>_0x4919c2['innerView'])['filter'](_0x2ca1c2=>this['_viewToController']['has'](_0x2ca1c2)),_0x37d30f=[];for(const _0x10db67 of _0x59ac28){const _0x3e41ba=this['_viewToController']['get'](_0x10db67)['model']['getAllAdjacentSuggestions']();_0x37d30f['push'](..._0x3e41ba['reduce']((_0x1d7748,_0x4057fd)=>[..._0x1d7748,..._0x4057fd['getMarkerNames']()],[]));}_0x17934f['activeMarkers']=_0x37d30f;}['_addUIComponentsToFactory'](){const _0x31daee=this['editor'],_0x2fea24=_0x31daee['locale'],_0x12415f=o(_0x2fea24,'Track\x20changes'),_0x1fcd84=new _0x1eeb17([{'type':'switchbutton','model':new _0x125ce2({'withText':!0x0,'isToggleable':!0x0,'label':_0x12415f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x125ce2({'withText':!0x0,'label':o(_0x2fea24,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x125ce2({'withText':!0x0,'label':o(_0x2fea24,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x125ce2({'withText':!0x0,'label':o(_0x2fea24,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x125ce2({'withText':!0x0,'label':o(_0x2fea24,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x31daee['plugins']['has']('TrackChangesPreview')&&_0x1fcd84['addMany']([{'type':'separator'},{'type':'button','model':new _0x125ce2({'withText':!0x0,'label':o(_0x2fea24,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x36c69d of _0x1fcd84)if(ke(_0x36c69d)){const _0x1e7867=_0x31daee['commands']['get'](_0x36c69d['model']['commandName']);_0x36c69d['model']['bind']('isOn','isEnabled')['to'](_0x1e7867,'value','isEnabled');}_0x31daee['ui']['componentFactory']['add']('trackChanges',_0x5e3955=>this['_createToolbarButton'](_0x5e3955,_0x1fcd84,_0x12415f)),_0x31daee['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4700fd=>this['_createMenuBarMenu'](_0x4700fd,_0x1fcd84,_0x12415f));}['_createToolbarButton'](_0x23c4f4,_0xba42c1,_0x1babca){const _0x5892b5=_0x4cd52a(_0x23c4f4,_0x282b9c),_0x18382d=this['editor']['commands']['get']('trackChanges');_0x5892b5['buttonView']['set']({'tooltip':_0x1babca,'label':_0x1babca,'icon':we}),_0x5892b5['buttonView']['bind']('isOn')['to'](_0x18382d,'value'),_0x5892b5['buttonView']['on']('execute',()=>{_0x18382d['execute'](),this['editor']['editing']['view']['focus']();}),_0x241209(_0x5892b5,_0xba42c1,{'role':'menu'});const _0x4ddb22=[];for(const _0x2a0144 of _0xba42c1)ke(_0x2a0144)&&_0x4ddb22['push'](this['editor']['commands']['get'](_0x2a0144['model']['commandName']));const _0x41812c=_0x5892b5['buttonView'];return _0x41812c['actionView']['unbind']('isEnabled'),_0x41812c['arrowView']['unbind']('isEnabled'),_0x41812c['actionView']['bind']('isEnabled')['to'](_0x18382d,'isEnabled'),_0x41812c['arrowView']['bind']('isEnabled')['toMany'](_0x4ddb22,'isEnabled',(..._0x538e79)=>_0x538e79['some'](_0x29fcbb=>_0x29fcbb)),_0x5892b5['on']('execute',_0x5d2b4f=>{this['editor']['execute'](_0x5d2b4f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5892b5;}['_createMenuBarMenu'](_0x5d3d0f,_0x3f132c,_0x36ab3c){const _0x5844cd=new _0x4dff8c(_0x5d3d0f),_0x1d685c=this['editor']['commands']['get']('trackChanges');_0x5844cd['buttonView']['set']({'label':_0x36ab3c,'icon':we});const _0x23d3ce=new _0x152c8c(_0x5d3d0f);for(const _0x4f02cb of _0x3f132c){if('separator'==_0x4f02cb['type']){_0x23d3ce['items']['add'](new _0x176423(_0x5d3d0f));continue;}const _0x4d46b6=new _0x93570e(_0x5d3d0f,_0x5844cd),_0x14739b=new _0x2c583e(_0x5d3d0f),_0x1b7601=_0x4f02cb['model'];_0x14739b['bind'](...Object['keys'](_0x1b7601))['to'](_0x1b7601),_0x14739b['delegate']('execute')['to'](_0x5844cd),_0x14739b['on']('execute',()=>{this['editor']['execute'](_0x1b7601['commandName']),this['editor']['editing']['view']['focus']();}),_0x4d46b6['children']['add'](_0x14739b),_0x23d3ce['items']['add'](_0x4d46b6);}return _0x5844cd['bind']('isEnabled')['to'](_0x1d685c,'isEnabled'),_0x5844cd['panelView']['children']['add'](_0x23d3ce),_0x5844cd;}['_initializeController'](_0x480628){const _0x334d17=this['editor'],_0x3b15f6=_0x334d17['config'],_0x540f48=_0x334d17['plugins']['get']('Annotations'),_0x230d8b=_0x334d17['plugins']['get']('CommentsRepository'),_0x1b2d2b=_0x334d17['plugins']['get']('EditorAnnotations'),_0x14a97c=_0x334d17['plugins']['get'](_0xfc0992)['me'],_0x2a7568=_0x3b15f6['get']('trackChanges')['SuggestionThreadView'],_0x4caade=_0x3b15f6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x22559d,CommentThreadInputView:_0x3117b7}=_0x334d17['plugins']['get']('CommentsUI');let _0x20d25b,_0x132e57,_0x2aa1a3;this['_annotationViews']['has'](_0x480628['id'])?(_0x132e57=this['_annotationViews']['get'](_0x480628['id']),_0x20d25b=_0x132e57['mainView']):(_0x20d25b=new _0x2a7568(_0x334d17['locale'],_0x480628,_0x14a97c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3b15f6['get']('comments.editorConfig'),'licenseKey':_0x3b15f6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3b15f6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3b15f6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3b15f6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xf3c118(_0x3b15f6['get']('locale')),'CommentView':_0x3b15f6['get']('comments')['CommentView'],'CommentsListView':_0x22559d,'CommentThreadInputView':_0x3117b7,'SuggestionView':_0x4caade}),_0x20d25b['suggestionView']['acceptButton']['on']('execute',()=>{_0x334d17['editing']['view']['focus']();}),_0x20d25b['suggestionView']['discardButton']['on']('execute',()=>{_0x334d17['editing']['view']['focus']();}),_0x132e57=_0x540f48['createAnnotationView'](this['editor']['locale'],_0x20d25b),_0x132e57['bind']('isDirty')['to'](_0x20d25b,'isDirty'),_0x132e57['bind']('length')['to'](_0x20d25b),_0x132e57['bind']('type')['to'](_0x20d25b,'type',_0x1a888c=>'suggestion-'+_0x1a888c),_0x20d25b['on']('escape',()=>{_0x2aa1a3['fire']('escape');}),this['_annotationViews']['set'](_0x480628['id'],_0x132e57));const _0x4d5949=_0x230d8b['createCommentThreadController'](_0x480628['commentThread'],_0x20d25b),_0x54ea5b=new Ce(_0x334d17,_0x480628,_0x20d25b,_0x4d5949),_0x4b4d4b=_0x480628['getAllAdjacentSuggestions']()['filter'](_0x179890=>_0x179890['isInContent']);_0x20d25b['descriptionParts']=_0x334d17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4b4d4b),this['_suggestionToController']['set'](_0x480628,_0x54ea5b),this['_viewToController']['set'](_0x20d25b,_0x54ea5b),_0x2aa1a3=_0x540f48['createAnnotation']({'view':_0x132e57,'target':()=>{const _0x1d2fd7=[],_0x3947eb=_0x480628['getAllAdjacentSuggestions']()['filter'](_0x3d901a=>_0x3d901a['isInContent']);for(const _0x5f230f of _0x3947eb)_0x1d2fd7['push'](..._0x5f230f['getMarkers']());return _0x4f037a(_0x334d17['editing'],_0x1d2fd7);},'type':()=>'suggestion-'+_0x54ea5b['view']['type']}),_0x230d8b['_bindAnnotationToEditors'](_0x20d25b,_0x2aa1a3),_0x540f48['add'](_0x2aa1a3),_0x1b2d2b['registerAnnotation'](_0x2aa1a3);}['_destroyController'](_0x50daee){const _0x5327f4=this['editor']['plugins']['get']('CommentsRepository'),_0x363c58=this['editor']['plugins']['get']('Annotations'),_0x395173=this['_suggestionToController']['get'](_0x50daee),_0x3a5c82=_0x395173['view'],_0x2169ad=_0x363c58['getByInnerView'](_0x3a5c82);_0x5327f4['_unbindEditors'](_0x3a5c82),_0x2169ad&&_0x363c58['remove'](_0x2169ad),this['_suggestionToController']['delete'](_0x50daee),this['_viewToController']['delete'](_0x3a5c82),_0x395173['destroy']();}['_updateController'](_0x12a221){if(!_0x12a221['isInContent']||!this['_suggestionToController']['has'](_0x12a221))return;const _0x31cb9f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16d3a5=this['_suggestionToController']['get'](_0x12a221),_0x2febc5=_0x12a221['getAllAdjacentSuggestions']();_0x16d3a5['view']['descriptionParts']=_0x31cb9f['descriptionFactory']['getDescriptions'](_0x2febc5);}['destroy'](){for(const _0x58cab3 of this['_suggestionToController']['keys']())this['_destroyController'](_0x58cab3);for(const _0x2cedd4 of this['_annotationViews']['values']())_0x2cedd4['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4f836d){return'model'in _0x4f836d;}class k extends _0x5320e9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x399fe7){this['editor']['plugins']['get'](p)['adapter']=_0x399fe7;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x15eaf1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x15eaf1);}['getSuggestions']({skipNotAttached:_0x4d9197=!0x1,toJSON:_0xd978d4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4d9197,'toJSON':_0xd978d4});}['getSuggestion'](_0x1ba925){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1ba925);}}const w=['Pagination'];class T extends _0x5320e9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5ee807=this['editor'];if(_0x5ee807['config']['define']('trackChangesData.editorCreator',_0x309d4f=>{const _0x1e258f=_0x5ee807['model']['document']['getRootNames']()['reduce']((_0x57df5b,_0x2b06e5)=>(_0x57df5b[_0x2b06e5]='',_0x57df5b),{});return _0x5ee807['constructor']['create'](_0x1e258f,_0x309d4f);}),'function'!=typeof _0x5ee807['config']['get']('trackChangesData')['editorCreator'])throw new _0x4dd4de('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xf5ac36){return N(this['editor'],!0x0,_0xf5ac36);}['getDataWithDiscardedSuggestions'](_0x208b5a){return N(this['editor'],!0x1,_0x208b5a);}}class D extends _0x5320e9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43d9fb){function _0x564fb6(_0x20396a){return _0x20396a['map'](_0x383482=>String['fromCharCode'](_0x383482))['join']('');}super(_0x43d9fb),this['result']='end',_0x43d9fb[_0x564fb6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x564fb6([0x76,0x69,0x65,0x77])][_0x564fb6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x564fb6([0x61,0x75,0x74,0x6f]),_0x43d9fb[_0x564fb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x564fb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x564fb6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x564fb6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x564fb6([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 Fe(_0x23d23f){return void 0x0!==_0x23d23f['getRootsAttributes'];}async function N(_0x575aba,_0x16f8cc,_0x18388d){const _0x234092=_0x334f5(_0x575aba,w);_0x234092['plugins']['push'](p,D),_0x234092['rootsAttributes']=Fe(_0x575aba)?_0x575aba['getRootsAttributes']():void 0x0;const _0x316800=document['createDocumentFragment'](),_0x3bf0a8=_0x575aba['config']['get']('trackChangesData')['editorCreator'],_0x5a6061=await _0x3bf0a8(_0x234092,()=>function(_0x37ef46){const _0x25893f=document['createElement']('div');return _0x37ef46['appendChild'](_0x25893f),_0x25893f;}(_0x316800));!function(_0x4d92fd,_0x17729a){const _0x1d41cb=_0x4d92fd['model']['document']['getRootNames']()['reduce']((_0x22f692,_0x3d3f81)=>(_0x22f692[_0x3d3f81]=_0x4d92fd['data']['get']({'rootName':_0x3d3f81}),_0x22f692),{}),_0x2d890b=_0x4d92fd['plugins']['get']('Users')['users']['map'](_0x3b03f4=>({'id':_0x3b03f4['id'],'name':_0x3b03f4['name']})),_0x3aeb19=_0x4d92fd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xac750c=_0x4d92fd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3c10ee=_0x17729a['plugins']['get']('Users'),_0x5b368e=_0x17729a['plugins']['get']('TrackChangesEditing'),_0x3a8357=_0x17729a['plugins']['get']('CommentsRepository');for(const _0x5e3c07 of _0x3a8357['getCommentThreads']())_0x5e3c07['remove']();for(const _0x56947c of _0x2d890b)_0x3c10ee['getUser'](_0x56947c['id'])||_0x3c10ee['addUser'](_0x56947c);_0x3c10ee['me']||_0x3c10ee['useAnonymousUser']();for(const _0x389012 of _0xac750c)_0x3a8357['addCommentThread'](_0x389012);for(const _0x5ded89 of _0x3aeb19)_0x5b368e['addSuggestionData'](_0x5ded89);_0x17729a['data']['set'](_0x1d41cb);}(_0x575aba,_0x5a6061),_0x5a6061['execute'](_0x16f8cc?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e0b0c=Fe(_0x5a6061)?_0x5a6061['getFullData'](_0x18388d):_0x5a6061['data']['get'](_0x18388d);return await _0x5a6061['destroy'](),_0x5e0b0c;}class Me extends _0xae56f4{['options'];constructor(_0x433eac,_0x5df769){super(_0x433eac),this['options']=_0x5df769,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x3ca02e,_0x1c123f){if(!this['element'])return;const _0x5c5f4f=[];for(const [_0x436d29,_0x459717]of _0x3ca02e){const _0xf526e5=document['createElement']('div');_0xf526e5['setAttribute']('data-ck-root-name',_0x436d29),_0xf526e5['className']=_0x459717['classes']+'\x20ck-track-changes-preview__root-container',_0xf526e5['innerHTML']=_0x459717['content'],_0x5c5f4f['push'](_0xf526e5);}_0x1c123f(this['element'],_0x5c5f4f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x3c4cf4){super(_0x3c4cf4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x203068=this['editor'],_0x1eef5a=_0x203068['locale'],_0x4f3ae1=_0x203068['plugins']['get']('Dialog');let _0x39251f;const _0x5ada44=function(_0x24c928){const _0x641dc8={};if('editables'in _0x24c928['ui']['view']){for(const [_0x3b7d9f,_0x3a9aef]of Object['entries'](_0x24c928['ui']['view']['editables']))_0x641dc8[_0x3b7d9f]=_0x3a9aef['element'];}else _0x641dc8[_0x24c928['model']['document']['getRootNames']()[0x0]]=_0x24c928['ui']['view']['editable']['element'];return _0x641dc8;}(_0x203068),_0x5dbee6=function(_0x298d8f){let _0x1514f3=0x0;for(const _0x5831d5 of Object['values'](_0x298d8f))_0x1514f3=Math['max'](_0x1514f3,_0x5831d5['getBoundingClientRect']()['width']);let _0x5ba041=0x0;for(const _0x4d1693 of Object['values'](_0x298d8f))_0x5ba041+=_0x4d1693['getBoundingClientRect']()['height'];const _0x58bfdd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x44e58c=Math['min'](_0x5ba041,_0x58bfdd);return{'width':_0x1514f3,'height':_0x44e58c};}(_0x5ada44);_0x4f3ae1['show']({'id':'finalContentPreview','title':o(_0x1eef5a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1eef5a,{'dialogRects':_0x5dbee6}),'onHide':()=>{_0x39251f['detachFromDom']();},'onShow':()=>{_0x203068['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x55d5a9=>{const _0x4864da=this['_standarizeRootsData'](_0x55d5a9,_0x203068,_0x5ada44);_0x4f3ae1['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4864da,_0x203068['config']['get']('trackChanges.preview.renderFunction'));}),_0x39251f=new _0x4fa421(_0x1eef5a,[_0x4f3ae1['view']]),_0x39251f['attachToDom'](),_0x39251f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x203068['once']('destroy',()=>{_0x39251f['detachFromDom']();});const _0x5d91b9=_0x4f3ae1['view']['headerView']['class'];_0x4f3ae1['view']['headerView']['class']=_0x5d91b9?_0x5d91b9+'\x20ck-reset_all':'ck-reset_all',_0x4f3ae1['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4f3ae1['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1ffd46=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x488662=_0x1ffd46['previewMode'],_0x39b6fb={};if('$labels'===_0x488662){for(const _0xfa2743 of _0x1ffd46['getMergeFieldsIds']())_0x39b6fb[_0xfa2743]=_0x1ffd46['getLabel'](_0xfa2743)||_0xfa2743;}else{const _0x1677af='$defaultValues'===_0x488662?_0x1ffd46['getDefaultValues']():_0x1ffd46['getDataSetValues'](_0x488662,!0x0);for(const _0x296a62 of Object['entries'](_0x1677af)){const [_0x2ba704,_0x21aa32]=_0x296a62;_0x39b6fb[_0x2ba704]=null!==_0x21aa32?_0x21aa32:_0x1ffd46['getLabel'](_0x2ba704)||_0x2ba704;}}return{'mergeFieldsData':_0x39b6fb};}['_standarizeRootsData'](_0x5d0f28,_0x19d011,_0xcefdd5){let _0x351597;if('string'==typeof _0x5d0f28){const _0x101c14=_0x19d011['model']['document']['getRootNames']()[0x0];_0x351597={[_0x101c14]:_0x5d0f28};}else _0x351597=_0x5d0f28;const _0x495bae=this['_fixMediaEmbeds'](_0x351597,_0x19d011),_0x1b4d1f=function(_0x16319c,_0x4b73dc){for(const [_0x50120f,_0x538aca]of _0x16319c)_0x538aca['classes']=_0x4b73dc[_0x50120f]['classList']['value']['replace']('ck-focused','');return _0x16319c;}(this['_sortRoots'](_0x19d011)['reduce']((_0x58aeb3,_0x1ae55c)=>(_0x58aeb3['push']([_0x1ae55c,{'content':_0x495bae[_0x1ae55c],'classes':''}]),_0x58aeb3),[]),_0xcefdd5);return _0x1b4d1f;}['_fixMediaEmbeds'](_0x4a29ee,_0x20483a){if(!_0x20483a['plugins']['has']('MediaEmbedEditing'))return _0x4a29ee;const _0x266967=_0x20483a['plugins']['get']('MediaEmbedEditing');for(const [_0x193d43,_0x43557a]of Object['entries'](_0x4a29ee)){const _0x283e2c=document['createElement']('div');_0x283e2c['innerHTML']=_0x43557a,(_0x283e2c['querySelectorAll']('figure.media')['forEach'](_0x5ba329=>{const _0x3c6ced=_0x5ba329['querySelector']('oembed');if(_0x3c6ced){const _0xfcc4c9=_0x3c6ced['getAttribute']('url');if(_0xfcc4c9){const _0x52f697=_0x266967['registry']['getMediaViewElement'](new _0x2775d9(_0x20483a['editing']['view']['document']),_0xfcc4c9,{'elementName':'','renderForEditingView':!0x0}),_0x485f2c=document['createElement']('div');_0x485f2c['classList']['add']('ck-media__wrapper'),_0x52f697['render'](_0x485f2c,_0x20483a['editing']['view']['domConverter']),_0x3c6ced['replaceWith'](_0x485f2c);}}}),_0x4a29ee[_0x193d43]=_0x283e2c['innerHTML']);}return _0x4a29ee;}['_sortRoots'](_0x3f6f99){if(!function(_0x54eca8){return void 0x0!==_0x54eca8['getRootsAttributes'];}(_0x3f6f99))return _0x3f6f99['model']['document']['getRootNames']();const _0x44ae39=[],_0x5f30dd=new Map();for(const _0x2a4ba3 of _0x3f6f99['model']['document']['getRootNames']()){const _0x113c6c=_0x3f6f99['editing']['view']['getDomRoot'](_0x2a4ba3)['getClientRects']()['item'](0x0);_0x44ae39['push'](_0x2a4ba3),_0x5f30dd['set'](_0x2a4ba3,_0x113c6c);}return _0x44ae39['sort']((_0xd29f67,_0x224a8e)=>{const _0x1b65ec=_0x5f30dd['get'](_0xd29f67),_0x2394a5=_0x5f30dd['get'](_0x224a8e);return _0x1b65ec['y']-_0x2394a5['y']||_0x1b65ec['x']-_0x2394a5['x'];}),_0x44ae39;}}class te extends _0x5320e9{static get['requires'](){return[T,_0x5661bf];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x257db9){super(_0x257db9),_0x257db9['commands']['add']('previewFinalContent',new re(this['editor'])),_0x257db9['config']['define']('trackChanges.preview.renderFunction',(_0x55a88a,_0x466d27)=>{for(const _0x510c6c of _0x466d27)_0x55a88a['appendChild'](_0x510c6c);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|