@ckeditor/ckeditor5-track-changes 44.2.0-alpha.9 → 44.2.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/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/trackchangesconfig.d.ts +8 -4
- 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
|
-
_0x531009(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3399a3,_0x3877cc){super(),this['id']=_0x3877cc['id'],this['type']=_0x3877cc['type'],this['subType']=_0x3877cc['subType']||null,this['author']=_0x3877cc['author'],this['creator']=_0x3877cc['creator']||_0x3877cc['author'],this['isExternal']=Boolean(_0x3877cc['attributes']&&_0x3877cc['attributes']['@external']),this['data']=null,this['_model']=_0x3399a3,this['_onAccept']=_0x3877cc['onAccept'],this['_onDiscard']=_0x3877cc['onDiscard'],this['_onAttributesChange']=_0x3877cc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3877cc['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 _0x2ddc58=this;for(;_0x2ddc58['previous'];)_0x2ddc58=_0x2ddc58['previous'];return _0x2ddc58;}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'](_0x2a5868){this['_markerNames']['add'](_0x2a5868);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3a850c=>this['_model']['markers']['get'](_0x3a850c))['filter'](_0x431a41=>_0x431a41);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3433b4=>{for(const _0x2702a5 of this['getMarkers']())_0x3433b4['removeMarker'](_0x2702a5);}),this['_markerNames']['clear']();}['removeMarker'](_0x5d4742){this['_model']['change'](_0x694934=>{_0x694934['removeMarker'](_0x5d4742);}),this['_markerNames']['delete'](_0x5d4742);}['addRange'](_0x5b653f){const _0x4ba980='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4ba980),this['_model']['change'](_0x5f3fda=>{_0x5f3fda['addMarker'](_0x4ba980,{'range':_0x5b653f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xc65e69){for(const _0x1cbab4 of this['getRanges']())if(_0x1cbab4['isIntersecting'](_0xc65e69))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3c51bf=>_0x3c51bf['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3540f0,_0xc07703)=>[..._0x3540f0,..._0xc07703['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5e5a93=this['getRanges']();if(0x1!=_0x5e5a93['length'])return null;const _0x2c5a96=_0x5e5a93[0x0],_0x2f5040=_0x2c5a96['start']['nodeAfter'],_0x42d5c0=_0x2c5a96['end']['nodeBefore'];return _0x2f5040 instanceof _0x13456e?_0x2f5040!=_0x42d5c0?null:_0x2f5040: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 _0x44af15=[];let _0x1ded8b=this['head'];for(;_0x1ded8b;)_0x44af15['push'](_0x1ded8b),_0x1ded8b=_0x1ded8b['next'];return _0x44af15;}['setAttribute'](_0x259360,_0x5667f8){const _0x24acb5=_0x3e05b6(this['attributes']);_0x160dd0(_0x24acb5,_0x259360,_0x5667f8),_0x3b44e1(_0x24acb5,this['attributes'])||(this['attributes']=_0x24acb5,this['_onAttributesChange'](_0x24acb5));}['removeAttribute'](_0x2f0314){const _0xb139c=_0x3e05b6(this['attributes']);_0x243a42(_0xb139c,_0x2f0314),_0x3b44e1(_0xb139c,this['attributes'])||(this['attributes']=_0xb139c,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 _0x4a76d0()['substr'](0x1,0x5);}}function o(_0x1135e0,_0x3969aa,_0x4a84d9){const _0x2b7f6e=_0x1135e0['t'],t=_0x1135e0['t'];switch(_0x3969aa){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',_0x4a84d9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4a84d9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4a84d9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4a84d9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4a84d9);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',_0x4a84d9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4a84d9);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',_0x4a84d9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4a84d9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4a84d9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4a84d9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4a84d9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4a84d9);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4a84d9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4a84d9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4a84d9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4a84d9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4a84d9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4a84d9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4a84d9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4a84d9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4a84d9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4a84d9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4a84d9);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'},_0x4a84d9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4a84d9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4a84d9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4a84d9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4a84d9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4a84d9);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'},_0x4a84d9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4a84d9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4a84d9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4a84d9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4a84d9);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'},_0x4a84d9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4a84d9);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'},_0x4a84d9);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'},_0x4a84d9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4a84d9);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'},_0x4a84d9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4a84d9);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'},_0x4a84d9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4a84d9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4a84d9);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'},_0x4a84d9);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4a84d9);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 _0x2b7f6e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4a84d9);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2b7f6e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4a84d9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4a84d9);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'},_0x4a84d9);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'},_0x4a84d9);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'},_0x4a84d9);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3969aa;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x16cd5d,_0x55d966){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x16cd5d,this['_locale']=_0x55d966;}['getDescriptions'](_0x32dcd2){const _0x595ca0=[],_0x58a3b9=new Set(),_0x1cf3cb=new Set();for(let _0x2f623a=0x0;_0x2f623a<_0x32dcd2['length'];_0x2f623a++){const _0xd76e69=_0x32dcd2[_0x2f623a];if(!_0xd76e69['isInContent'])continue;const _0x468446=this['_handleCustomCallbackDescription'](_0xd76e69);if(_0x468446){if(null!=_0xd76e69['subType']){if(_0x58a3b9['has'](_0xd76e69['subType']))continue;_0x58a3b9['add'](_0xd76e69['subType']);}_0x595ca0['push'](_0x468446);}else{if('attribute'!=_0xd76e69['type'])'insertion'!=_0xd76e69['type']&&'deletion'!=_0xd76e69['type']||this['_handleInsertRemoveSuggestionDescription'](_0x595ca0,_0xd76e69,_0x32dcd2[_0x2f623a+0x1]);else{const _0x52d263=_0xd76e69['data']['key'];if(_0x1cf3cb['has'](_0x52d263))continue;_0x1cf3cb['add'](_0xd76e69['data']['key']),_0x52d263==m?this['_handleRenameSuggestionDescription'](_0x595ca0,_0xd76e69):this['_handleAttributeSuggestionDescription'](_0x595ca0,_0xd76e69);}}}return this['_resolveDescriptionItems'](_0x595ca0);}['registerDescriptionCallback'](_0x4f2193){this['_customCallbacks']['push'](_0x4f2193);}['registerElementLabel'](_0x3bf6b7,_0x238c4e,_0x40c83e=_0x5c7181['normal']){'function'==typeof _0x3bf6b7?_0x1b604f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3bf6b7,'label':_0x238c4e,'priority':_0x40c83e}):this['_itemLabels']['set'](_0x3bf6b7,_0x238c4e);}['registerAttributeLabel'](_0x57b435,_0x24a28e){this['_attributeLabels']['set'](_0x57b435,_0x24a28e);}['getItemLabel'](_0x3caf96,_0x50e330=0x1){let _0x3d7ef8;for(const _0x1e637d of this['_itemLabelsCallbacks'])if(_0x1e637d['matchingCallback'](_0x3caf96)){_0x3d7ef8=_0x1e637d['label'];break;}return _0x3d7ef8||(_0x3d7ef8=this['_itemLabels']['get'](_0x3caf96['name'])),_0x3d7ef8?_0x3d7ef8(_0x50e330):0x1!==_0x50e330?_0x50e330+'\x20'+_0x3caf96['name']+'s':''+_0x3caf96['name'];}['_addDescriptionItems'](_0x63ad45,_0x31e94d){const _0x5bdd17=_0x31e94d['getFirstRange']()['getWalker'](),_0x160733='insertion'==_0x31e94d['type']?'add':'remove';for(const _0x5b18d2 of _0x5bdd17){const _0x28fa41=_0x5b18d2['item'],_0x4f5f45=_0x63ad45[_0x63ad45['length']-0x1];if(_0x28fa41['is']('$textProxy'))_0x4f5f45&&_0x4f5f45['type']['indexOf']('Container')>-0x1&&_0x63ad45['pop'](),_0x4f5f45&&'text'==_0x4f5f45['type']?_0x4f5f45[_0x160733]+=_0x28fa41['data']:_0x63ad45['push']({'type':'text','add':'add'==_0x160733?_0x28fa41['data']:'','remove':'remove'==_0x160733?_0x28fa41['data']:''});else{if(this['_schema']['isObject'](_0x28fa41)){const _0x36b99b=_0x28fa41;if(_0x4f5f45&&_0x4f5f45['type']['indexOf']('Container')>-0x1&&_0x63ad45['pop'](),'elementEnd'==_0x5b18d2['type'])continue;_0x4f5f45&&_0x4f5f45['type']==_0x160733+'Object'&&_0x4f5f45['element']['name']==_0x36b99b['name']?_0x4f5f45['quantity']++:_0x63ad45['push']({'type':_0x160733+'Object','element':_0x36b99b,'quantity':0x1}),_0x5bdd17['skip'](_0x451729=>!('elementEnd'==_0x451729['type']&&_0x451729['item']==_0x28fa41));}else{if(this['_schema']['checkChild'](_0x28fa41,'$text')||_0x28fa41['is']('element','softBreak')){const _0x68759b=_0x28fa41;if('add'==_0x160733&&'elementStart'==_0x5b18d2['type']||'remove'==_0x160733&&'elementEnd'==_0x5b18d2['type'])continue;if(_0x4f5f45&&-0x1==_0x4f5f45['type']['indexOf']('Container')){'text'==_0x4f5f45['type']&&(_0x4f5f45[_0x160733]+='\x0a');continue;}let _0x40b166;if(_0x40b166='add'==_0x160733?_0x68759b['nextSibling']&&!this['_schema']['isObject'](_0x68759b['nextSibling'])?_0x68759b['nextSibling']:null:_0x68759b['previousSibling']&&!this['_schema']['isObject'](_0x68759b['previousSibling'])?_0x68759b['previousSibling']:null,_0x68759b['isEmpty']||_0x40b166&&_0x40b166['isEmpty']){const _0x2a5f6d=_0x40b166&&_0x40b166['isEmpty']?_0x40b166:_0x68759b;_0x4f5f45&&_0x4f5f45['type']==_0x160733+'EmptyContainer'&&_0x4f5f45['element']['name']==_0x2a5f6d['name']?_0x4f5f45['quantity']++:_0x63ad45['push']({'type':_0x160733+'EmptyContainer','element':_0x2a5f6d,'quantity':0x1});}else _0x63ad45['push']({'type':_0x160733+'Container','element':_0x68759b});}}}}}['_resolveDescriptionItems'](_0x4f4ef4){const _0x1c32cf=this['_locale'],_0xd6c034=[],_0x396b54=[],_0x578730=[];for(const _0x2997fe of _0x4f4ef4)switch(_0x2997fe['type']){case'text':if(_0x2997fe['add']=_0x2997fe['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2997fe['remove']=_0x2997fe['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2997fe['add']&&''!=_0x2997fe['remove']){_0xd6c034['push']({'type':'replace','content':o(_0x1c32cf,'REPLACE_TEXT',['\x22'+_0x2997fe['remove']+'\x22','\x22'+_0x2997fe['add']+'\x22'])});continue;}if(null!=_0x2997fe['add']['match'](/^ +$/)){_0xd6c034['push']({'type':'insertion','content':o(_0x1c32cf,'*Insert:*\x20%0',o(_0x1c32cf,'ELEMENT_SPACE',_0x2997fe['add']['length']))});continue;}if(null!=_0x2997fe['remove']['match'](/^ +$/)){_0xd6c034['push']({'type':'deletion','content':o(_0x1c32cf,'*Remove:*\x20%0',o(_0x1c32cf,'ELEMENT_SPACE',_0x2997fe['remove']['length']))});continue;}if(''!=_0x2997fe['add']){_0xd6c034['push']({'type':'insertion','content':o(_0x1c32cf,'*Insert:*\x20%0','\x22'+_0x2997fe['add']+'\x22')});continue;}_0xd6c034['push']({'type':'deletion','content':o(_0x1c32cf,'*Remove:*\x20%0','\x22'+_0x2997fe['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xd6c034['push']({'type':'insertion','content':o(_0x1c32cf,'*Insert:*\x20%0',this['getItemLabel'](_0x2997fe['element'],_0x2997fe['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xd6c034['push']({'type':'deletion','content':o(_0x1c32cf,'*Remove:*\x20%0',this['getItemLabel'](_0x2997fe['element'],_0x2997fe['quantity']))});continue;case'addContainer':_0xd6c034['push']({'type':'insertion','content':o(_0x1c32cf,'*Split:*\x20%0',this['getItemLabel'](_0x2997fe['element'],_0x2997fe['quantity']))});continue;case'removeContainer':_0xd6c034['push']({'type':'deletion','content':o(_0x1c32cf,'*Merge:*\x20%0',this['getItemLabel'](_0x2997fe['element'],_0x2997fe['quantity']))});continue;case'addFormat':_0x396b54['push'](_0x2997fe['key']);continue;case'removeFormat':_0x578730['push'](_0x2997fe['key']);continue;default:_0xd6c034['push'](_0x2997fe);}if(_0x396b54['length']){const _0x5e418e=_0x396b54['map'](_0x36bccd=>this['_attributeLabels']['has'](_0x36bccd)?this['_attributeLabels']['get'](_0x36bccd):_0x36bccd)['join'](',\x20');_0xd6c034['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5e418e)});}if(_0x578730['length']){const _0x12c2f4=_0x578730['map'](_0x59de06=>this['_attributeLabels']['has'](_0x59de06)?this['_attributeLabels']['get'](_0x59de06):_0x59de06)['join'](',\x20');_0xd6c034['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x12c2f4)});}return _0xd6c034;}['_handleCustomCallbackDescription'](_0x9a2daf){for(const _0x3b0af4 of this['_customCallbacks']){const _0x498db9=_0x3b0af4(_0x9a2daf);if(_0x498db9&&'type'in _0x498db9)return _0x498db9;}}['_handleAttributeSuggestionDescription'](_0x40a825,_0x5ac98f){const _0x80ee1=_0x5ac98f['data'],_0x4bc4fa=void 0x0===_0x80ee1['newValue']?'removeFormat':'addFormat';_0x40a825['push']({'type':_0x4bc4fa,'key':_0x80ee1['key']});}['_handleRenameSuggestionDescription'](_0x7dfc70,_0x21568a){_0x7dfc70['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x21568a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2d0519,_0x14ec56,_0x24af18){if(this['_addDescriptionItems'](_0x2d0519,_0x14ec56),_0x24af18&&_0x24af18['getFirstRange']()&&!_0x14ec56['getFirstRange']()['end']['isEqual'](_0x24af18['getFirstRange']()['start'])){const _0x1db9d2=_0x2d0519[_0x2d0519['length']-0x1],_0x3d8fed='insertion'==_0x14ec56['type']?'add':'remove';_0x1db9d2&&'text'==_0x1db9d2['type']&&(_0x1db9d2[_0x3d8fed]+='\x0a');}}}class U extends _0x4d70a7{['afterInit'](){const _0x40798e=this['editor'],_0x33cfa9=_0x40798e['plugins']['get']('TrackChangesEditing');_0x40798e['commands']['get']('showAIAssistant')&&_0x33cfa9['enableCommand']('showAIAssistant');}}class V extends _0x4d70a7{['afterInit'](){const _0x5f7e64=this['editor'],_0x517325=_0x5f7e64['locale'];if(!_0x5f7e64['plugins']['has']('AlignmentEditing'))return;const _0x489c2e=_0x5f7e64['plugins']['get']('TrackChangesEditing');_0x489c2e['enableDefaultAttributesIntegration']('alignment'),_0x489c2e['registerBlockAttribute']('alignment'),_0x489c2e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x517325,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x367871=this['editor'],_0x4d71db=_0x367871['locale'];_0x367871['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4530b3=>{if('formatBlock'!=_0x4530b3['type'])return;const {data:_0x119d64}=_0x4530b3;if(_0x119d64&&'alignment'==_0x119d64['commandName']){const _0x3c9486=_0x119d64['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4d71db,'*Format:*\x20%0',function(_0x50df66){switch(_0x50df66){case'left':return o(_0x4d71db,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4d71db,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4d71db,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4d71db,'FORMAT_JUSTIFY_TEXT');}}(_0x3c9486))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4d70a7{['afterInit'](){const _0x299cab=this['editor'],_0x5006a1=_0x299cab['plugins']['get']('TrackChangesEditing'),_0x38b6dd=_0x299cab['locale'];for(const _0x230f15 of ti){if(!_0x299cab['plugins']['has'](_0x230f15))continue;const _0x2ff438=_0x230f15['slice'](0x0,-0x7)['toLowerCase'](),_0x3fb531='FORMAT_'+_0x2ff438['toUpperCase']();_0x5006a1['enableDefaultAttributesIntegration'](_0x2ff438),_0x5006a1['registerInlineAttribute'](_0x2ff438),_0x5006a1['descriptionFactory']['registerAttributeLabel'](_0x2ff438,o(_0x38b6dd,_0x3fb531));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530eb5=this['editor'],_0x52df77=_0x530eb5['locale'],_0xef03aa=_0x530eb5['plugins']['get']('TrackChangesEditing');function _0xe7e4fb(_0x4bbc40,_0x439690){_0xef03aa['descriptionFactory']['registerDescriptionCallback'](_0x81aded=>{if('formatInline'!=_0x81aded['type'])return;const {data:_0x8996f1}=_0x81aded;return _0x8996f1&&_0x8996f1['commandName']===_0x4bbc40?_0x8996f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52df77,'*Format:*\x20%0',_0x439690)}:{'type':'format','content':o(_0x52df77,'*Remove\x20format:*\x20%0',_0x439690)}:void 0x0;});}_0xe7e4fb('bold',o(_0x52df77,'FORMAT_BOLD')),_0xe7e4fb('italic',o(_0x52df77,'FORMAT_ITALIC')),_0xe7e4fb('underline',o(_0x52df77,'FORMAT_UNDERLINE')),_0xe7e4fb('code',o(_0x52df77,'FORMAT_CODE')),_0xe7e4fb('strikethrough',o(_0x52df77,'FORMAT_STRIKETHROUGH')),_0xe7e4fb('subscript',o(_0x52df77,'FORMAT_SUBSCRIPT')),_0xe7e4fb('superscript',o(_0x52df77,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4d70a7{['afterInit'](){const _0x2627bf=this['editor'],_0x22121e=_0x2627bf['locale'];if(!_0x2627bf['plugins']['has']('BlockQuoteEditing'))return;const _0x240ef8=_0x2627bf['plugins']['get']('TrackChangesEditing'),_0xca9135=this['editor']['commands']['get']('blockQuote');_0x240ef8['enableCommand']('blockQuote',(_0x11945a,_0xc7f77d={})=>{const _0x448a11=this['editor']['model']['document']['selection'],_0x1d8f90=_0xc7f77d&&void 0x0!==_0xc7f77d['forceValue']?_0xc7f77d['forceValue']:!_0xca9135['value'];let _0x53e3f8=[];if(_0x1d8f90){const _0x117f1b=Array['from'](_0x448a11['getSelectedBlocks']())['filter'](_0x14f83e=>oo(_0x14f83e)||function(_0x21cc9c,_0x21d63a){const _0xf7b234=_0x21d63a['checkChild'](_0x21cc9c['parent'],'blockQuote'),_0x27936d=_0x21d63a['checkChild'](['$root','blockQuote'],_0x21cc9c);return _0xf7b234&&_0x27936d;}(_0x14f83e,this['editor']['model']['schema']));_0x53e3f8=to(_0x117f1b,_0x2627bf['model']);}else{const _0x5bdaad=Array['from'](_0x448a11['getSelectedBlocks']())['filter'](_0xdc4407=>oo(_0xdc4407));_0x53e3f8=to(_0x5bdaad,_0x2627bf['model']);}_0x2627bf['model']['change'](()=>{for(const _0x2a9567 of _0x53e3f8)_0x240ef8['markBlockFormat'](_0x2a9567,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1d8f90}]});});}),_0x240ef8['descriptionFactory']['registerDescriptionCallback'](_0x18a4d6=>{const {data:_0x5ec94b}=_0x18a4d6;if(_0x5ec94b&&'blockQuote'==_0x5ec94b['commandName']){const _0x43d687=o(_0x22121e,'ELEMENT_BLOCK_QUOTE');return _0x5ec94b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x22121e,'*Set\x20format:*\x20%0',_0x43d687)}:{'type':'format','content':o(_0x22121e,'*Remove\x20format:*\x20%0',_0x43d687)};}});}}function oo(_0x30c27b){return'blockQuote'==_0x30c27b['parent']['name'];}class L extends _0x4d70a7{['afterInit'](){const _0xbfaf16=this['editor'],_0x5e0edc=_0xbfaf16['locale'],_0x16cdc7=_0xbfaf16['plugins']['get']('TrackChangesEditing');_0xbfaf16['plugins']['has']('BookmarkEditing')&&(_0x16cdc7['enableCommand']('insertBookmark'),_0x16cdc7['enableDefaultAttributesIntegration']('updateBookmark'),_0x16cdc7['registerBlockAttribute']('bookmarkId'),_0x16cdc7['descriptionFactory']['registerDescriptionCallback'](_0x41f99c=>{if('insertion'!=_0x41f99c['type']&&'deletion'!=_0x41f99c['type']&&'attribute'!=_0x41f99c['type'])return;const _0x35c319=_0x41f99c['getContainedElement']();if(null==_0x35c319)return;if(!_0x35c319['is']('element','bookmark'))return;const _0x4ba426=_0x35c319['getAttribute']('bookmarkId');if('insertion'==_0x41f99c['type'])return{'type':'insertion','content':o(_0x5e0edc,'*Insert:*\x20%0','\x22'+_0x4ba426+'\x22\x20'+o(_0x5e0edc,'ELEMENT_BOOKMARK'))};if('deletion'==_0x41f99c['type'])return{'type':'deletion','content':o(_0x5e0edc,'*Remove:*\x20%0','\x22'+_0x4ba426+'\x22\x20'+o(_0x5e0edc,'ELEMENT_BOOKMARK'))};const {data:_0x38537a}=_0x41f99c;if(!_0x38537a||'bookmarkId'!=_0x38537a['key'])return;return{'type':'format','content':o(_0x5e0edc,'*Set\x20bookmark:*\x20%0','\x22'+_0x38537a['newValue']+'\x22')};}));}}class J extends _0x4d70a7{['afterInit'](){const _0x46ef83=this['editor'];_0x46ef83['plugins']['has']('CaseChange')&&(_0x46ef83['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x46ef83['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x46ef83['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4d70a7{['afterInit'](){const _0x5aa4ed=this['editor'];_0x5aa4ed['commands']['get']('ckbox')&&_0x5aa4ed['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x4d70a7{['afterInit'](){const _0x2f3c60=this['editor'];if(!_0x2f3c60['plugins']['has']('CodeBlock'))return;const _0x186412=_0x2f3c60['plugins']['get']('TrackChangesEditing'),_0x46b33a=_0x2f3c60['locale'],_0x564027=_0x2f3c60['config']['get']('codeBlock')['languages'],_0x5f0a96=_0x2f3c60['commands']['get']('codeBlock');_0x186412['enableCommand']('indentCodeBlock'),_0x186412['enableCommand']('outdentCodeBlock'),_0x186412['enableCommand']('codeBlock',(_0x363d1f,_0x59a635={})=>{const _0x2bf8ff=_0x2f3c60['model'],_0x1b968e=_0x2f3c60['model']['document']['selection'],_0x18a9f6=_0x59a635&&void 0x0!==_0x59a635['forceValue']?_0x59a635['forceValue']:!_0x5f0a96['value'];let _0x40d0f5;_0x59a635['language']||(_0x59a635['language']=_0x564027[0x0]['language']),_0x40d0f5=_0x18a9f6?Array['from'](_0x1b968e['getSelectedBlocks']())['filter'](_0x13b47b=>eo(_0x13b47b)||function(_0x172a23,_0x32f379){if(_0x172a23['is']('rootElement')||_0x32f379['isLimit'](_0x172a23))return!0x1;return _0x32f379['checkChild'](_0x172a23['parent'],'codeBlock');}(_0x13b47b,_0x2bf8ff['schema'])):Array['from'](_0x1b968e['getSelectedBlocks']())['filter'](_0x1a38d2=>eo(_0x1a38d2));const _0x39f506=to(_0x40d0f5,_0x2bf8ff);_0x2bf8ff['change'](()=>{for(const _0x5023ae of _0x39f506)_0x186412['markBlockFormat'](_0x5023ae,{'commandName':'codeBlock','commandParams':[{..._0x59a635,'forceValue':_0x18a9f6}],'formatGroupId':'blockName'});});}),(_0x186412['descriptionFactory']['registerElementLabel']('codeBlock',_0x5286c4=>o(_0x46b33a,'ELEMENT_CODE_BLOCK',_0x5286c4)),_0x186412['descriptionFactory']['registerDescriptionCallback'](_0x33961c=>{if('formatBlock'!=_0x33961c['type'])return;const _0x24022d=_0x46b33a['t'],{data:_0x44c631}=_0x33961c;if(!_0x44c631||'codeBlock'!=_0x44c631['commandName'])return;const _0x2de9e8=_0x44c631['commandParams'][0x0]['language'],_0x44e9ee=_0x24022d(_0x564027['find'](_0x1ceec3=>_0x1ceec3['language']===_0x2de9e8)['label'])['toLowerCase']();return _0x44c631['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x46b33a,'*Set\x20format:*\x20%0',o(_0x46b33a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x44e9ee+')')}:{'type':'format','content':o(_0x46b33a,'*Remove\x20format:*\x20%0',o(_0x46b33a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x162e5e){return'codeBlock'==_0x162e5e['name'];}class z extends _0x4d70a7{['afterInit'](){const _0x1c4990=this['editor'];if(!_0x1c4990['plugins']['has']('CommentsEditing'))return;_0x1c4990['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x48d0e2,_0x502750,_0x1a3598){const _0x3d5c67=[];for(const _0x41d6f0 of _0x502750['getItems']())_0x41d6f0['hasAttribute'](_0x48d0e2)&&_0x3d5c67['push'](_0x1a3598['createRangeOn'](_0x41d6f0));return _0x3d5c67;}function De(_0x34ecd3,_0x5226e6,{showActiveMarker:_0x5b7115=!0x0}={}){const _0x30a613=_0x34ecd3['plugins']['get']('TrackChangesEditing');return(_0x413336,_0x564eca,_0x59b1d3)=>{if(!_0x59b1d3['consumable']['test'](_0x564eca['markerRange'],_0x413336['name']))return;const _0x58d252=_0x564eca['markerRange']['getWalker'](),_0x2ddbb1=_0x564eca['markerRange']['start'],_0x1f04bb=_0x34ecd3['model']['schema'];let _0x3fbb39=null,_0x125235=null,_0x13a612=!0x1,_0x199bb7=!0x1;for(const _0x517422 of _0x58d252){const _0x3e12b5=_0x517422['item'];_0x13a612=_0x13a612||_0x1f04bb['isContent'](_0x3e12b5);const _0xd4aafe=_0x59b1d3['mapper']['toViewElement'](_0x3e12b5);if(_0xd4aafe&&_0xd4aafe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x517422['type']&&(_0x1f04bb['isBlock'](_0x3e12b5)&&!_0x1f04bb['isLimit'](_0x3e12b5)&&(_0x3e12b5['nextSibling']||_0x2ddbb1['isAtEnd']?_0x3fbb39&&_0x3fbb39['parent']==_0x3e12b5||(_0x3fbb39=_0x3e12b5,_0xddcc38(_0x517422['previousPosition']),_0x199bb7=!0x0):_0x125235=_0x125235||_0x517422['previousPosition']));}function _0xddcc38(_0x1a8976){const {authorId:_0x16e2c5}=_0x30a613['_splitMarkerName'](_0x564eca['markerName']),_0x59ed08=_0x59b1d3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5226e6,'data-author-id':_0x16e2c5}),_0x5d5a3e=_0x59b1d3['mapper']['toViewPosition'](_0x1a8976);_0x5b7115&&_0x30a613['activeMarkers']['includes'](_0x564eca['markerName'])&&_0x59b1d3['writer']['addClass']('ck-suggestion-marker--active',_0x59ed08),_0x59b1d3['writer']['insert'](_0x5d5a3e,_0x59ed08),_0x59b1d3['mapper']['bindElementToMarker'](_0x59ed08,_0x564eca['markerName']);}_0x13a612||_0x199bb7||!_0x125235||_0xddcc38(_0x125235);};}class K extends _0x4d70a7{static get['requires'](){return[_0x15e49c];}['init'](){const _0x5ec463=this['editor'],_0x46a16c=_0x5ec463['plugins']['get']('TrackChangesEditing');_0x46a16c['enableCommand']('delete');const _0x53caa4=_0x5ec463['commands']['get']('deleteForward');_0x46a16c['enableCommand']('deleteForward',(_0x1d6995,_0x19f3ba={})=>{const _0x4b2d2a=_0x5ec463['model']['createSelection'](_0x5ec463['model']['document']['selection']);_0x4b2d2a['isCollapsed']&&_0x5ec463['model']['modifySelection'](_0x4b2d2a,{'direction':'forward','unit':_0x19f3ba['unit']});const _0x22c891=_0x4b2d2a['getFirstRange'](),_0x30c248=_0x1f2c9d['fromRange'](_0x22c891);let _0x17a404;_0x1d6995(_0x19f3ba),_0x17a404='$graveyard'==_0x30c248['root']['rootName']?_0x5ec463['model']['createRange'](_0x22c891['start']):_0x5ec463['model']['createRange'](_0x30c248['start'],_0x30c248['end']),_0x30c248['detach'](),_0x5ec463['model']['enqueueChange'](_0x53caa4['buffer']['batch'],_0x552127=>{_0x53caa4['buffer']['lock'](),_0x552127['setSelection'](_0x552127['createRange'](_0x17a404['end'])),_0x53caa4['buffer']['unlock']();});}),_0x5ec463['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x5ec463,'merge'),{'priority':'high'}),_0x5ec463['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x457655,_0x3472e8,_0x247525)=>{_0x247525['options']['showSuggestionHighlights']&&De(_0x5ec463,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x457655,_0x3472e8,_0x247525);},{'priority':'high'}),_0x5ec463['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1f0bf3,_0x4a053d,_0x3d6046)=>{const _0x2ff591=_0x3d6046['mapper']['markerNameToElements'](_0x4a053d['markerName']);if(_0x2ff591){for(const _0x35f72d of _0x2ff591)_0x35f72d['is']('uiElement')&&(_0x3d6046['mapper']['unbindElementFromMarkerName'](_0x35f72d,_0x4a053d['markerName']),_0x3d6046['writer']['remove'](_0x35f72d));}},{'priority':'high'});}}class W extends _0x4d70a7{['afterInit'](){const _0x1f6c7b=this['editor'];if(!_0x1f6c7b['plugins']['has']('ListEditing'))return;const _0x13c975=_0x1f6c7b['locale'],_0x126bca=_0x1f6c7b['plugins']['get']('TrackChangesEditing'),_0xb68155=_0x1f6c7b['plugins']['has']('TodoListEditing'),_0x3cf8bb=!!_0x1f6c7b['config']['get']('list.multiBlock');function _0x5f182f(_0x5ebd09){return{'type':'format','content':''+o(_0x13c975,'*Set\x20format:*\x20%0',_0x5ebd09)};}function _0x4ced20(_0x1077cd){return{'type':'format','content':''+o(_0x13c975,'*Remove\x20format:*\x20%0',_0x1077cd)};}_0x126bca['enableDefaultAttributesIntegration']('numberedList'),_0x126bca['enableDefaultAttributesIntegration']('bulletedList'),_0x126bca['enableDefaultAttributesIntegration']('customNumberedList'),_0x126bca['enableDefaultAttributesIntegration']('customBulletedList'),_0x126bca['enableDefaultAttributesIntegration']('indentList'),_0x126bca['enableDefaultAttributesIntegration']('outdentList'),_0x126bca['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x126bca['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x126bca['registerBlockAttribute']('listItemId'),_0x126bca['registerBlockAttribute']('listType'),_0x126bca['registerBlockAttribute']('listIndent'),_0x3cf8bb&&(_0x126bca['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x126bca['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xb68155&&(_0x126bca['enableDefaultAttributesIntegration']('todoList'),_0x126bca['enableDefaultAttributesIntegration']('checkTodoList'),_0x126bca['registerBlockAttribute']('todoListChecked'),_0x126bca['descriptionFactory']['registerDescriptionCallback'](_0x5ccdfc=>{const {data:_0x249d7f}=_0x5ccdfc;if(_0x249d7f&&'todoListChecked'==_0x249d7f['key'])return{'type':'format','content':_0x249d7f['newValue']?o(_0x13c975,'*Check\x20item*'):o(_0x13c975,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4bcae0=>{if(_0x4bcae0['batch']['isUndo'])return!0x1;let _0x38186a=!0x1;const _0x58848a=_0x126bca['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xae5cb4=>'todoListChecked'===_0x126bca['_getAttributeKey'](_0xae5cb4));for(const _0x114603 of _0x58848a){'todo'!=_0x114603['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x126bca['_findSuggestions'](_0x114603['getFirstRange'](),'attribute')['find'](_0x51cb91=>'listType'===_0x126bca['_getAttributeKey'](_0x51cb91['suggestion']))||(_0x4bcae0['removeMarker'](_0x114603['getFirstMarker']()),_0x38186a=!0x0));}return _0x38186a;})),_0x126bca['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x13c975,'FORMAT_INDENT'));const _0x42275a={'type':'format','content':''};_0x126bca['descriptionFactory']['registerDescriptionCallback'](_0x2b5d7a=>{const {data:_0x271adf}=_0x2b5d7a;if(!_0x271adf||'listType'!=_0x271adf['key'])return;let _0xccc137=_0x2b5d7a['head'];for(;_0xccc137;){if(_0xccc137['data']&&(('listStyle'==_0xccc137['data']['key']||'listMarkerStyle'==_0xccc137['data']['key'])&&(_0xccc137['data']['newValue']&&'default'!=_0xccc137['data']['newValue']||'default'!=_0xccc137['data']['oldValue']&&!_0x271adf['newValue'])||!_0x3cf8bb&&_0xccc137['data']['key']==m))return _0x42275a;_0xccc137=_0xccc137['next'];}if(null==_0x271adf['newValue'])switch(_0x271adf['oldValue']){case'bulleted':return _0x4ced20(o(_0x13c975,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ced20(o(_0x13c975,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ced20(o(_0x13c975,'ELEMENT_TODO_LIST'));}switch(_0x271adf['newValue']){case'bulleted':return _0x5f182f(o(_0x13c975,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f182f(o(_0x13c975,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f182f(o(_0x13c975,'ELEMENT_TODO_LIST'));}}),_0x126bca['descriptionFactory']['registerDescriptionCallback'](_0x10b016=>{const {data:_0x5dafc5}=_0x10b016;if(_0x5dafc5&&'listIndent'==_0x5dafc5['key'])return null==_0x5dafc5['newValue']||null==_0x5dafc5['oldValue']&&0x0==_0x5dafc5['newValue']?_0x42275a:void 0x0;}),_0x126bca['descriptionFactory']['registerDescriptionCallback'](_0x2ed95e=>{if('attribute'!=_0x2ed95e['type'])return;const {data:_0x1a51a8}=_0x2ed95e;if(!_0x1a51a8||'listItemId'!=_0x1a51a8['key'])return;const _0x23eaec=Te(_0x2ed95e);return'newValue'==_0x23eaec?{'type':'format','content':o(_0x13c975,'*Merge:*\x20list\x20item')}:'oldValue'==_0x23eaec?{'type':'format','content':o(_0x13c975,'*Split:*\x20list\x20item')}:_0x42275a;}),_0x1f6c7b['model']['document']['registerPostFixer'](_0x19ca71=>this['listItemIdFixer'](_0x19ca71)),_0x1f6c7b['model']['document']['registerPostFixer'](_0x19f49b=>this['noTrackChangesFixer'](_0x19f49b)),_0x1f6c7b['model']['document']['on']('change:data',(_0x530da9,_0xcad66a)=>{if(_0xcad66a['isUndo']||!_0xcad66a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x117337){if(_0x117337['batch']['isUndo']||!_0x117337['batch']['isLocal'])return!0x1;let _0x56ee46=!0x1;const _0x151778=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55a7dc=>_0x55a7dc['data']&&'listItemId'==_0x55a7dc['data']['key'])['filter'](_0x433950=>_0x433950['data']['newValue']&&_0x433950['data']['oldValue']);for(const _0x593622 of _0x151778)Te(_0x593622)||(_0x117337['removeMarker'](_0x593622['getFirstMarker']()),_0x56ee46=!0x0);return _0x56ee46;}['noTrackChangesFixer'](_0x39065b){if(_0x39065b['batch']['isUndo']||!_0x39065b['batch']['isLocal'])return!0x1;const _0x4199d4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4199d4['trackChangesCommand']['value'])return!0x1;let _0x17c269=!0x1;const _0x3da797=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xf00dd2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1a7539=>'attribute'==_0x1a7539['type'])['filter'](_0x95696d=>_0x3da797['includes'](_0x95696d['attributeKey']));if(0x0==_0xf00dd2['length'])return _0x17c269;for(const _0x320714 of _0xf00dd2){const _0x2212a4=_0x4199d4['_findSuggestions'](_0x320714['range'],'attribute')['filter'](_0x20f7d1=>!_0x20f7d1['meta']['isNextTo'])['map'](_0x34db0a=>_0x34db0a['suggestion'])['filter'](_0x38d94c=>{const _0x5e2d28=_0x4199d4['_getAttributeKey'](_0x38d94c);return _0x3da797['includes'](_0x5e2d28);});if(_0x2212a4['length']){for(const _0x2294f8 of _0x2212a4)_0x39065b['removeMarker'](_0x2294f8['getFirstMarker']());_0x17c269=!0x0;}}return _0x17c269;}['assureChains'](){const _0x179f1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb0aa91=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x11ee9e;const _0x11c789=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1ba470=>{if(_0x1ba470['data']['oldRange']||!_0x1ba470['data']['newRange'])return null;if(!_0x1ba470['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1e5b34}=_0x179f1f['_splitMarkerName'](_0x1ba470['name']);if(!_0x179f1f['hasSuggestion'](_0x1e5b34))return null;const _0x13c9f9=_0x179f1f['getSuggestion'](_0x1e5b34);return _0xb0aa91['includes'](_0x13c9f9['data']['key']);})['map'](_0xac7532=>{const {id:_0x2aba6c}=_0x179f1f['_splitMarkerName'](_0xac7532['name']),_0x4565ef=_0x179f1f['getSuggestion'](_0x2aba6c);return _0x11ee9e=_0x4565ef['attributes']['groupId'],_0x4565ef['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x11c789['size'])return;const _0x2db543=_0x179f1f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x120727=>'attribute'==_0x120727['type']&&_0x120727['data']&&_0xb0aa91['includes'](_0x120727['data']['key'])&&_0x120727['attributes']['groupId']!=_0x11ee9e)['map'](_0x402728=>({'listItem':_0x402728['getFirstRange']()['start']['nodeAfter'],'groupId':_0x402728['attributes']['groupId']})),_0x20e3e7=new Set();for(const {groupId:_0x2226e6,listItem:_0x32784b}of _0x2db543)_0x11c789['has'](_0x32784b)&&_0x20e3e7['add'](_0x2226e6);for(const _0x5ae66b of _0x179f1f['getSuggestions']())_0x20e3e7['has'](_0x5ae66b['attributes']['groupId'])&&_0x5ae66b['setAttribute']('groupId',_0x11ee9e);}['_supportLegacySuggestions'](){const _0x7a0f73=this['editor'],_0x8be03f=_0x7a0f73['locale'],_0x1048e6=_0x7a0f73['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1048e6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x580952,_0x272b31){const _0xa5f97d=[];for(let _0x176fd4 of _0x580952)_0x176fd4['start']['nodeAfter']===_0x176fd4['end']['parent']&&(_0x176fd4=_0x7a0f73['model']['createRange'](_0x7a0f73['model']['createPositionAt'](_0x176fd4['start']['nodeAfter'],0x0))),_0xa5f97d['push'](_0x176fd4);_0x7a0f73['model']['change'](_0x1cd22b=>{const _0x16dc27=_0x7a0f73['model']['document']['selection'],_0x1e00b3=Array['from'](_0x16dc27['getRanges']())['map'](_0x3bb2db=>_0x1f2c9d['fromRange'](_0x3bb2db));_0x1cd22b['setSelection'](_0xa5f97d),_0x7a0f73['commands']['get'](_0x272b31['commandName'])['refresh'](),_0x272b31['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x7a0f73['execute'](_0x272b31['commandName'],..._0x272b31['commandParams']),_0x1cd22b['setSelection'](_0x1e00b3);for(const _0x1f5f87 of _0x1e00b3)_0x1f5f87['detach']();});}),_0x1048e6['descriptionFactory']['registerElementLabel'](function(_0x43f40d){const _0x5bc0fd=!_0x7a0f73['model']['schema']['isObject'](_0x43f40d),_0x19d128=_0x43f40d['previousSibling'],_0x2c0759=_0x43f40d['nextSibling'],_0x7c4ca5=_0x43f40d['getAttribute']('listItemId'),_0x32a48e=!_0x19d128||_0x19d128['getAttribute']('listItemId')!==_0x7c4ca5,_0x25ef35=!_0x2c0759||_0x2c0759['getAttribute']('listItemId')!==_0x7c4ca5;return _0x5bc0fd&&Boolean(_0x7c4ca5)&&_0x32a48e&&_0x25ef35;},_0x3b7f7c=>o(_0x8be03f,'ELEMENT_LIST_ITEM',_0x3b7f7c));}['_registerLegacyDescription'](){const _0x436ee2=this['editor'],_0x1930e7=_0x436ee2['locale'];function _0x3f5397(_0x56fbeb){const _0x5ee88c=_0x436ee2['commands']['get']('bulletedList')['value'],_0x5d0b61=_0x436ee2['commands']['get']('numberedList')['value'];return'numberedList'===_0x56fbeb?_0x5ee88c:_0x5d0b61;}_0x436ee2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5e5e3f){if('formatBlock'!=_0x5e5e3f['type'])return;const {data:_0x16a560}=_0x5e5e3f;if(!_0x16a560)return;let _0x23e9c8,_0x1da367,_0x554d9a,_0xb35ea0;switch(_0x16a560['commandName']){case'bulletedList':_0x554d9a=_0x16a560['commandParams'][0x0]['forceValue'],_0xb35ea0=_0x3f5397(_0x16a560['commandName']),_0x23e9c8=_0x554d9a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb35ea0&&_0x436ee2['config']['get']('list.multiBlock')||(_0x23e9c8='*Change\x20to:*\x20%0'),_0x1da367={'type':'format','content':o(_0x1930e7,_0x23e9c8,o(_0x1930e7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x554d9a=_0x16a560['commandParams'][0x0]['forceValue'],_0xb35ea0=_0x3f5397(_0x16a560['commandName']),_0x23e9c8=_0x554d9a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb35ea0&&_0x436ee2['config']['get']('list.multiBlock')||(_0x23e9c8='*Change\x20to:*\x20%0'),_0x1da367={'type':'format','content':o(_0x1930e7,_0x23e9c8,o(_0x1930e7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x23e9c8='*Indent:*\x20%0',_0x1da367={'type':'format','content':o(_0x1930e7,_0x23e9c8,o(_0x1930e7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x23e9c8=function(_0x2d8223){const _0x1e3d06=_0x2d8223['getFirstRange']();let _0xe06e7e=_0x1e3d06['start']['nodeAfter'];for(;_0xe06e7e&&_0x1e3d06['containsItem'](_0xe06e7e);){if(_0xe06e7e['getAttribute']('listIndent')>0x0)return!0x1;_0xe06e7e=_0xe06e7e['nextSibling'];}return!0x0;}(_0x5e5e3f)?o(_0x1930e7,'*Format:*\x20remove\x20from\x20%0',o(_0x1930e7,function(_0x49a741){return'ELEMENT_'+_0x49a741['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5e5e3f))):o(_0x1930e7,'*Outdent:*\x20%0',o(_0x1930e7,'ELEMENT_LIST_ITEM')),_0x1da367={'type':'format','content':_0x23e9c8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x16a560['multipleBlocks']&&(_0x23e9c8='*Merge:*\x20%0',_0x1da367={'type':'deletion','content':o(_0x1930e7,_0x23e9c8,o(_0x1930e7,'ELEMENT_LIST_ITEM'))});}return _0x1da367;});}}function Te(_0x57cf43){let _0x5a141b=_0x57cf43['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5a141b;){const _0x27abc9=_0x5a141b['getAttribute']('listItemId');if(!_0x27abc9)return!0x1;if(_0x27abc9==_0x57cf43['data']['newValue'])return'newValue';if(_0x27abc9==_0x57cf43['data']['oldValue'])return'oldValue';_0x5a141b=_0x5a141b['previousSibling'];}return!0x1;}class Se extends _0x4d70a7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x55559b=this['editor']['config']['get']('list.properties'),_0x12449b=this['editor']['plugins']['get']('TrackChangesEditing');_0x55559b['styles']&&(_0x12449b['enableDefaultAttributesIntegration']('listStyle'),_0x12449b['registerBlockAttribute']('listStyle')),_0x55559b['reversed']&&(_0x12449b['enableDefaultAttributesIntegration']('listReversed'),_0x12449b['registerBlockAttribute']('listReversed')),_0x55559b['startIndex']&&(_0x12449b['enableDefaultAttributesIntegration']('listStart'),_0x12449b['registerBlockAttribute']('listStart'));const _0x2a312c={'type':'format','content':''};_0x12449b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4eb54e=this['editor']['locale'];_0x12449b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4eb54e,'FORMAT_LIST_REVERSED')),_0x12449b['descriptionFactory']['registerDescriptionCallback'](_0x4c8af3=>{const {data:_0x170f3d}=_0x4c8af3;if(_0x170f3d&&'listReversed'==_0x170f3d['key'])return null==_0x170f3d['newValue']||0x0==_0x170f3d['newValue']&&null==_0x170f3d['oldValue']?_0x2a312c:void 0x0;}),_0x12449b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4eb54e,'FORMAT_LIST_START')),_0x12449b['descriptionFactory']['registerDescriptionCallback'](_0x225293=>{const {data:_0x31ec28}=_0x225293;if(_0x31ec28&&'listStart'==_0x31ec28['key'])return null==_0x31ec28['newValue']||0x1==_0x31ec28['newValue']&&null==_0x31ec28['oldValue']?_0x2a312c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x481ed3=>{if(_0x481ed3['batch']['isUndo'])return!0x1;let _0x4653ef=!0x1;const _0x308a94=_0x12449b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x31c31b=>{const _0x2c1197=_0x12449b['_getAttributeKey'](_0x31c31b);return'listStart'==_0x2c1197||'listReversed'==_0x2c1197;});for(const _0x33a2c2 of _0x308a94){const _0x226b73=_0x33a2c2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x226b73||'customNumbered'==_0x226b73)continue;_0x12449b['_findSuggestions'](_0x33a2c2['getFirstRange'](),'attribute')['find'](_0x183aa9=>'listType'==_0x12449b['_getAttributeKey'](_0x183aa9['suggestion']))||(_0x481ed3['removeMarker'](_0x33a2c2['getFirstMarker']()),_0x4653ef=!0x0);}return _0x4653ef;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x48f913){const _0x486731=this['editor']['locale'],{data:_0x17bfc5}=_0x48f913,_0x49ddeb={'type':'format','content':''};if(!_0x17bfc5||'listStyle'!=_0x17bfc5['key'])return;if(!_0x17bfc5['oldValue'])return'default'==_0x17bfc5['newValue']?_0x49ddeb:{'type':'format','content':''+o(_0x486731,'*Set\x20format:*\x20%0',o(_0x486731,this['_getTranslationKeyForListStyle'](_0x17bfc5['newValue'])))};if(!_0x17bfc5['newValue']){if('default'==_0x17bfc5['oldValue'])return _0x49ddeb;let _0x4497cc=_0x48f913['head'];for(;_0x4497cc;){if(_0x4497cc['data']&&'listType'==_0x4497cc['data']['key']&&_0x4497cc['data']['newValue'])return _0x49ddeb;_0x4497cc=_0x4497cc['next'];}return{'type':'format','content':''+o(_0x486731,'*Remove\x20format:*\x20%0',o(_0x486731,this['_getTranslationKeyForListStyle'](_0x17bfc5['oldValue'])))};}if('default'!=_0x17bfc5['newValue'])return{'type':'format','content':''+o(_0x486731,'*Set\x20format:*\x20%0',o(_0x486731,this['_getTranslationKeyForListStyle'](_0x17bfc5['newValue'])))};let _0x2215c5=_0x48f913['head'];for(;_0x2215c5;){if(_0x2215c5['data']&&'listType'==_0x2215c5['data']['key']&&_0x2215c5['data']['newValue']&&_0x2215c5['data']['oldValue'])return _0x49ddeb;_0x2215c5=_0x2215c5['next'];}return{'type':'format','content':o(_0x486731,'*Set\x20format:*\x20%0',o(_0x486731,'ELEMENT_'+_0x48f913['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x33873d=this['editor'],_0x31699a=_0x33873d['locale'];_0x33873d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb55819=>{if('formatBlock'!=_0xb55819['type'])return;const {data:_0x483644}=_0xb55819;if(!_0x483644)return;let _0x4615fb,_0x3333fa;switch(_0x483644['commandName']){case'listStyle':_0x4615fb='*Change\x20to:*\x20%0',_0x3333fa={'type':'format','content':o(_0x31699a,_0x4615fb,o(_0x31699a,this['_getTranslationKeyForListStyle'](_0x483644['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4615fb=_0x483644['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3333fa={'type':'format','content':o(_0x31699a,_0x4615fb)};break;case'listStart':_0x4615fb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3333fa={'type':'format','content':o(_0x31699a,_0x4615fb,_0x483644['commandParams'][0x0]['startIndex'])};}return _0x3333fa;});}['_getTranslationKeyForListStyle'](_0x110fd7){return'ELEMENT_'+function(_0x17620e){if(_e['includes'](_0x17620e))return'bulleted';if(Re['includes'](_0x17620e))return'numbered';return null;}(_0x110fd7)['toUpperCase']()+'_LIST_'+_0x110fd7['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x4d70a7{['afterInit'](){const _0x17340f=this['editor'];_0x17340f['commands']['get']('emoji')&&_0x17340f['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x4d70a7{static get['requires'](){return[_0x1dbbab];}['init'](){const _0x222d25=this['editor'],_0x304d82=_0x222d25['plugins']['get']('TrackChangesEditing'),_0x55f514=_0x222d25['commands']['get']('enter');_0x304d82['enableCommand']('enter',()=>{_0x222d25['model']['change'](_0xbf7226=>{const _0x59fe6b=_0x222d25['model']['document']['selection'],_0x5a0e16=_0x59fe6b['getFirstPosition'](),_0x3b8c16=_0x1f2c9d['fromRange'](_0x59fe6b['getFirstRange']());if(_0x55f514['enterBlock'](_0xbf7226)){const _0x6d9779=_0x222d25['model']['createPositionAt'](_0x5a0e16['parent']['nextSibling'],0x0),_0x42a143=_0xbf7226['createRange'](_0x5a0e16,_0x6d9779);_0x304d82['markInsertion'](_0x42a143);}else _0xbf7226['setSelection'](_0xbf7226['createRange'](_0x3b8c16['end']));_0x3b8c16['detach'](),_0x55f514['fire']('afterExecute',{'writer':_0xbf7226});});}),_0x222d25['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x222d25,'split'),{'priority':'high'}),_0x222d25['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5033fd,_0x5c0a2e,_0x288267)=>{const _0x321581=_0x288267['mapper']['markerNameToElements'](_0x5c0a2e['markerName']);if(_0x321581){for(const _0x590cc9 of _0x321581)_0x590cc9['hasClass']('ck-suggestion-marker-split')&&(_0x288267['mapper']['unbindElementFromMarkerName'](_0x590cc9,_0x5c0a2e['markerName']),_0x288267['writer']['remove'](_0x590cc9));}},{'priority':'high'}),_0x222d25['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x53b139,_0x32c534,_0x37a208)=>{_0x37a208['options']['showSuggestionHighlights']&&De(_0x222d25,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x53b139,_0x32c534,_0x37a208);},{'priority':'high'});}}class Z extends _0x4d70a7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2cdf4a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2cdf4a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2cdf4a['enableCommand']('findNext'),_0x2cdf4a['enableCommand']('findPrevious'),_0x2cdf4a['enableCommand']('replace'),_0x2cdf4a['enableCommand']('replaceAll');}['handleFindCommand'](_0x594a80,_0x556b3c,_0xfad5fe={}){const _0x2e540d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x594a80(_0x2b77a8=>{let _0x1457b1=('string'==typeof _0x556b3c?_0x2e540d['findByTextCallback'](_0x556b3c,_0xfad5fe):_0x556b3c)(_0x2b77a8);Array['isArray'](_0x1457b1)&&(_0x1457b1={'results':_0x1457b1,'searchText':'string'==typeof _0x556b3c?_0x556b3c:''});const _0x20bab2=_0x1457b1['results']['filter'](_0x3db753=>!0x1===this['_isInDeletionRange'](_0x3db753,_0x2b77a8['item']));return{..._0x1457b1,'results':_0x20bab2};},_0xfad5fe);}['_isInDeletionRange'](_0x535615,_0x4387ed){const _0xfaa4de=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4387ed,_0x535615['start']),this['editor']['model']['createPositionAt'](_0x4387ed,_0x535615['end']));for(const _0x1822fa of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xfaa4de['getIntersection'](_0x1822fa['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 _0x4d70a7{['afterInit'](){const _0x5ae07d=this['editor']['locale'],_0x157a8b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x58c4c5,commandName:_0x50985e}of ro)this['editor']['plugins']['has'](_0x58c4c5)&&(_0x157a8b['enableDefaultAttributesIntegration'](_0x50985e),_0x157a8b['registerInlineAttribute'](_0x50985e));_0x157a8b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5ae07d,'FORMAT_FONT_SIZE')),_0x157a8b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5ae07d,'FORMAT_FONT_FAMILY')),_0x157a8b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5ae07d,'FORMAT_FONT_COLOR')),_0x157a8b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5ae07d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f747d=this['editor'],_0x2b54e8=_0x4f747d['locale'];_0x4f747d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x251677=>{const _0x3b9120=_0x2b54e8['t'];if('formatInline'!=_0x251677['type'])return;const {data:_0x5395db}=_0x251677;if(null!=_0x5395db){if('fontSize'==_0x5395db['commandName']){const _0x5200e4=_0x5395db['commandParams'][0x0]['value'];if(_0x5200e4){const _0x526c2e=_0x3b9120(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4f800f=>_0x4f800f['model']==_0x5200e4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2b54e8,'*Set\x20font\x20size:*\x20%0',_0x526c2e)};}return{'type':'format','content':o(_0x2b54e8,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5395db['commandName']){const _0x224725=_0x5395db['commandParams'][0x0]['value'];return _0x224725?{'type':'format','content':o(_0x2b54e8,'*Set\x20font\x20family:*\x20%0',_0x224725)}:{'type':'format','content':o(_0x2b54e8,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5395db['commandName']){const _0x53b46d=_0x5395db['commandParams'][0x0]['value'];if(_0x53b46d){const _0xefb185=_0x19e18e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5a21ac=>_0x5a21ac['model']==_0x53b46d);let _0x150d13=_0x53b46d,_0x168f2d='';return _0xefb185&&(_0x150d13=_0xefb185['label'],_0x168f2d=_0x3b9120(_0x150d13)['toLowerCase']()),{'type':'format','content':o(_0x2b54e8,'*Set\x20font\x20color:*\x20%0',_0x168f2d)['trim'](),'color':{'value':_0x53b46d,'title':_0x168f2d||_0x150d13}};}return{'type':'format','content':o(_0x2b54e8,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5395db['commandName']){const _0x4f7d33=_0x5395db['commandParams'][0x0]['value'];if(_0x4f7d33){const _0x28f5dc=_0x19e18e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x529f6c=>_0x529f6c['model']==_0x4f7d33);let _0x267db5=_0x4f7d33,_0x451392='';return _0x28f5dc&&(_0x267db5=_0x28f5dc['label'],_0x451392=_0x3b9120(_0x267db5)['toLowerCase']()),{'type':'format','content':o(_0x2b54e8,'*Set\x20font\x20background\x20color:*\x20%0',_0x451392)['trim'](),'color':{'value':_0x4f7d33,'title':_0x451392||_0x267db5}};}return{'type':'format','content':o(_0x2b54e8,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x4d70a7{['afterInit'](){const _0x4377c0=this['editor'],_0x1c279e=_0x4377c0['plugins']['get']('TrackChangesEditing'),_0x4f5615=_0x4377c0['commands']['get']('copyFormat'),_0x242142=_0x4377c0['commands']['get']('pasteFormat');_0x4f5615&&_0x242142&&(_0x1c279e['enableDefaultAttributesIntegration']('pasteFormat'),_0x1c279e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4fc0f1=this['editor'],_0x298329=_0x4fc0f1['locale'];_0x4fc0f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ed85e=>{if('formatBlock'!=_0x1ed85e['type']&&'formatInline'!=_0x1ed85e['type'])return;const {data:_0x2ff635}=_0x1ed85e;if(_0x2ff635&&'pasteFormat'===_0x2ff635['commandName']){const _0x33f416=[],_0x58d5ec=_0x2ff635['commandParams'][0x0];for(const [_0x2c2185,_0x18d41d]of Object['entries'](_0x58d5ec))_0x33f416['push'](so(_0x4fc0f1,_0x2c2185,_0x18d41d));return _0x33f416['length']?{'type':'format','content':o(_0x298329,'*Set\x20format\x20to:*\x20%0',_0x33f416['join'](',\x20'))}:{'type':'format','content':o(_0x298329,'*Remove\x20all\x20formatting*')};}});}}function so(_0x7b7707,_0x3fe950,_0x183f96){const _0x17c70a=_0x7b7707['locale']['t'],_0x9363a8=_0x3fe950['split'](/(?=[A-Z])/)['join']('\x20'),_0x56d940=_0x17c70a(_0x9363a8['charAt'](0x0)['toUpperCase']()+_0x9363a8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x183f96)return _0x56d940;if('fontColor'===_0x3fe950||'fontBackgroundColor'===_0x3fe950){const _0x4327b1=_0x19e18e(_0x7b7707['config']['get']('fontColor.colors'))['find'](_0x51a3c1=>_0x51a3c1['model']==_0x183f96);return _0x56d940+'\x20('+(_0x4327b1?_0x17c70a(_0x4327b1['label'])['toLowerCase']():_0x183f96)+')';}if('fontSize'===_0x3fe950&&isNaN(parseFloat(_0x183f96))){const _0x1f29ce=_0x7b7707['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x7b7707['config']['get']('fontSize.options'))['find'](_0x2c4405=>_0x2c4405['model']==_0x183f96);return _0x56d940+'\x20('+(_0x1f29ce?_0x17c70a(_0x1f29ce['title'])['toLowerCase']():_0x183f96)+')';}return _0x56d940+'\x20('+_0x183f96+')';}class it extends _0x4d70a7{['_headingOptions'];['afterInit'](){const _0x1e736b=this['editor'];if(!_0x1e736b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1e736b['config']['get']('heading.options');const _0x5f594c=_0x1e736b['locale'],_0x3cf927=_0x1e736b['plugins']['get']('TrackChangesEditing');_0x3cf927['enableDefaultAttributesIntegration']('heading');for(const _0x5c5842 of this['_headingOptions'])'paragraph'!=_0x5c5842['model']&&_0x3cf927['descriptionFactory']['registerElementLabel'](_0x5c5842['model'],_0x692095=>{const _0x4791bd=this['_getHeadingLevel'](_0x5c5842['model']);return null!==_0x4791bd?_0x18f880(_0x692095,_0x4791bd):_0xda644(_0x692095,_0x5c5842['title']);});function _0x18f880(_0x38d8b2,_0x2a2536){return o(_0x5f594c,'ELEMENT_HEADING',[_0x38d8b2,_0x2a2536]);}function _0xda644(_0x4fa5db,_0x49af97){return o(_0x5f594c,'ELEMENT_HEADING_CUSTOM',[_0x4fa5db,_0x49af97]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x512782=this['editor'],_0x5b54c0=_0x512782['locale'];function _0x959da6(_0x642e4f,_0x42421f){return o(_0x5b54c0,'ELEMENT_HEADING_CUSTOM',[_0x642e4f,_0x42421f]);}_0x512782['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c472b=>{if('formatBlock'!=_0x4c472b['type'])return;const {data:_0x4bc04f}=_0x4c472b;if(_0x4bc04f&&'heading'==_0x4bc04f['commandName']){const _0x79afa4=_0x4bc04f['commandParams'][0x0]['value'],_0x116f90=this['_getHeadingLevel'](_0x79afa4);if(null!==_0x116f90)return{'type':'format','content':o(_0x5b54c0,'*Change\x20to:*\x20%0',(_0x2e8311=0x1,_0x559859=_0x116f90,o(_0x5b54c0,'ELEMENT_HEADING',[_0x2e8311,_0x559859])))};const _0x477898=this['_headingOptions']['find'](_0x571694=>_0x571694['model']===_0x79afa4)['title'];return{'type':'format','content':o(_0x5b54c0,'*Change\x20to:*\x20%0',_0x959da6(0x1,_0x477898))};}var _0x2e8311,_0x559859;});}['_getHeadingLevel'](_0xb22aaa){const _0x57c713=_0xb22aaa['match'](/^heading(\d+)/);if(_0x57c713)return _0x57c713[0x1];const _0x5807a7=this['_headingOptions']?.['find'](_0x3ac825=>_0x3ac825['model']==_0xb22aaa);if(_0x5807a7&&_0x5807a7['view']){const _0x2e454d=_0x5807a7['view'],_0x54e790=(_0x2e454d['name']??_0x2e454d)['match'](/^h(\d+)/);if(_0x54e790)return _0x54e790[0x1];}return null;}}class et extends _0x4d70a7{['afterInit'](){const _0x35bf63=this['editor'];if(!_0x35bf63['plugins']['has']('HighlightEditing'))return;const _0x184276=_0x35bf63['plugins']['get']('TrackChangesEditing'),_0xb84bf5=_0x35bf63['locale'];_0x184276['enableDefaultAttributesIntegration']('highlight'),_0x184276['registerInlineAttribute']('highlight'),_0x184276['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xb84bf5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31a7ad=this['editor'],_0xcf4c6a=_0x31a7ad['locale'];_0x31a7ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44b940=>{if('formatInline'!=_0x44b940['type'])return;const {data:_0x2420cd}=_0x44b940;if(_0x2420cd&&'highlight'==_0x2420cd['commandName']){const _0x12f3e1=_0xcf4c6a['t'],_0x254bdc=_0x2420cd['commandParams'][0x0]['value'];if(_0x254bdc){const _0x2a2439=_0x31a7ad['config']['get']('highlight.options')['find'](_0x192b4a=>_0x192b4a['model']==_0x254bdc),_0x4a4448=_0x12f3e1(_0x2a2439['title'])['toLowerCase']();return{'type':'format','content':o(_0xcf4c6a,'*Set\x20highlight:*\x20%0',_0x4a4448),'color':{'value':_0x2a2439['color'],'title':_0x2a2439['title']}};}return{'type':'format','content':o(_0xcf4c6a,'*Remove\x20highlight*',o(_0xcf4c6a,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x4d70a7{['afterInit'](){const _0x2f73de=this['editor'];if(!_0x2f73de['plugins']['has']('HorizontalLineEditing'))return;_0x2f73de['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3608e0=_0x2f73de['plugins']['get']('TrackChangesEditing'),_0xe9f088=_0x2f73de['locale'];_0x3608e0['descriptionFactory']['registerElementLabel']('horizontalLine',_0xa3fa66=>o(_0xe9f088,'ELEMENT_HORIZONTAL_LINE',_0xa3fa66)),_0x2f73de['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x31dc7d,{writer:_0x1d9a7c,options:_0x576d93})=>{if(!_0x576d93['showSuggestionHighlights'])return null;const _0x23ecb=_0x1d9a7c['createContainerElement']('div'),_0x99499b=_0x1d9a7c['createEmptyElement']('hr');return _0x1d9a7c['addClass']('ck-horizontal-line',_0x23ecb),_0x1d9a7c['insert'](_0x1d9a7c['createPositionAt'](_0x23ecb,0x0),_0x99499b),_0x23ecb;},'converterPriority':'high'});}}class ot extends _0x4d70a7{['afterInit'](){const _0x4c18ff=this['editor'];if(!_0x4c18ff['plugins']['has']('HtmlEmbed'))return;const _0x3edf6a=_0x4c18ff['plugins']['get']('TrackChangesEditing'),_0x5159fb=_0x4c18ff['locale'];_0x3edf6a['descriptionFactory']['registerElementLabel']('rawHtml',_0x3ca424=>o(_0x5159fb,'ELEMENT_HTML_EMBED',_0x3ca424)),_0x3edf6a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3edf6a['registerBlockAttribute']('value'),_0x3edf6a['descriptionFactory']['registerDescriptionCallback'](_0xedf382=>{if('attribute'!=_0xedf382['type'])return;const {data:_0x4b3398}=_0xedf382;if(_0x4b3398&&'value'==_0x4b3398['key']&&_0xedf382['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1c1ae1=o(_0x5159fb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5159fb,'*Change\x20%0\x20content*',_0x1c1ae1)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50cc57=this['editor'],_0xa78807=_0x50cc57['locale'];_0x50cc57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x104fdb=>{if('formatBlock'!=_0x104fdb['type'])return;const {data:_0xe04383}=_0x104fdb;if(_0xe04383&&'htmlEmbed'==_0xe04383['commandName']){const _0x540d85=o(_0xa78807,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xa78807,'*Change\x20%0\x20content*',_0x540d85)};}});}}class rt extends _0x4d70a7{['afterInit'](){const _0x41c2c6=this['editor'];if(!_0x41c2c6['plugins']['has']('ImageEditing'))return;const _0x3ee4e6=_0x41c2c6['plugins']['get']('TrackChangesEditing'),_0x3b6a4c=_0x41c2c6['plugins']['get']('ImageUtils'),_0x60ca74=_0x41c2c6['locale'];_0x3ee4e6['enableCommand']('insertImage'),_0x3ee4e6['descriptionFactory']['registerElementLabel']('imageBlock',_0x3945b1=>o(_0x60ca74,'ELEMENT_IMAGE',_0x3945b1)),_0x3ee4e6['descriptionFactory']['registerElementLabel']('imageInline',_0x539ce7=>o(_0x60ca74,'ELEMENT_INLINE_IMAGE',_0x539ce7)),_0x3ee4e6['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x60ca74,'ELEMENT_CAPTION')),_0x41c2c6['plugins']['has']('ImageUploadEditing')&&_0x3ee4e6['enableCommand']('uploadImage'),_0x41c2c6['plugins']['has']('ImageBlockEditing')&&_0x41c2c6['plugins']['has']('ImageInlineEditing')&&(_0x3ee4e6['enableCommand']('imageTypeInline',(_0x1eaf56,_0x558715)=>{const _0x174a0c=_0x3b6a4c['getClosestSelectedImageElement'](_0x41c2c6['model']['document']['selection']);_0x41c2c6['model']['change'](()=>{_0x3ee4e6['markBlockFormat'](_0x174a0c,{'commandName':'imageTypeInline','commandParams':[_0x558715]},[],'convertBlockImageToInline');});}),_0x3ee4e6['enableCommand']('imageTypeBlock',(_0x27a952,_0x69c8bb)=>{_0x41c2c6['model']['change'](_0x2a8cc6=>{let _0x1a8296=_0x3b6a4c['getClosestSelectedImageElement'](_0x41c2c6['model']['document']['selection']),_0x215cd5=_0x2a8cc6['createRangeOn'](_0x1a8296);const _0x4c2f46=_0x1ff773['fromPosition'](_0x215cd5['start'],'toPrevious'),_0x8d6a28=_0x1ff773['fromPosition'](_0x215cd5['end'],'toNext');_0x3ee4e6['forceDefaultExecution'](()=>_0x27a952(_0x69c8bb)),_0x1a8296=_0x3b6a4c['getClosestSelectedImageElement'](_0x41c2c6['model']['document']['selection']),_0x215cd5=_0x2a8cc6['createRangeOn'](_0x1a8296);const _0x20beba=_0x2a8cc6['createRange'](_0x4c2f46,_0x8d6a28);_0x4c2f46['detach'](),_0x8d6a28['detach'](),_0x3ee4e6['markBlockFormat'](_0x1a8296,{'commandName':'imageTypeInline','commandParams':[_0x69c8bb]},[],'convertInlineImageToBlock'),_0x20beba['start']['isBefore'](_0x215cd5['start'])&&_0x3ee4e6['markInsertion'](_0x2a8cc6['createRange'](_0x20beba['start'],_0x215cd5['start']),'convertInlineImageToBlock'),_0x215cd5['end']['isBefore'](_0x20beba['end'])&&_0x3ee4e6['markInsertion'](_0x2a8cc6['createRange'](_0x215cd5['end'],_0x20beba['end']),'convertInlineImageToBlock');});}),_0x3ee4e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3ee4e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3ee4e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3ee4e6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3ee4e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3ee4e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x596b09])=>{const _0x100c39=_0x3ee4e6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xcb6312=_0x596b09['start'],_0x24e9cd=_0x596b09['end'];const _0xf46abf=_0x41c2c6['model']['schema']['getNearestSelectionRange'](_0xcb6312,'backward'),_0x24d92c=_0x41c2c6['model']['schema']['getNearestSelectionRange'](_0x24e9cd,'forward');_0xf46abf['isCollapsed']&&(_0xcb6312=_0xf46abf['start']),_0x24d92c['isCollapsed']&&(_0x24e9cd=_0x24d92c['end']),_0x100c39([_0x41c2c6['model']['createRange'](_0xcb6312,_0x24e9cd)]);}),_0x3ee4e6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x181711),_0x3ee4e6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x181711)),_0x41c2c6['plugins']['has']('ImageCaptionEditing')&&(_0x3ee4e6['enableCommand']('toggleImageCaption',(_0x855537,_0x226204)=>{const _0x22b962=_0x41c2c6['plugins']['get']('ImageCaptionUtils');let _0x91fe2b=_0x3b6a4c['getClosestSelectedImageElement'](_0x41c2c6['model']['document']['selection']),_0x816df2=_0x22b962['getCaptionFromImageModelElement'](_0x91fe2b);_0x41c2c6['model']['change'](()=>{if(_0x816df2)return void _0x3ee4e6['markDeletion'](_0x41c2c6['model']['createRangeOn'](_0x816df2));const _0x27366e=_0x3b6a4c['isBlockImage'](_0x91fe2b);_0x855537(_0x226204),_0x91fe2b=_0x3b6a4c['getClosestSelectedImageElement'](_0x41c2c6['model']['document']['selection']),_0x816df2=_0x22b962['getCaptionFromImageModelElement'](_0x91fe2b),_0x3ee4e6['markInsertion'](_0x41c2c6['model']['createRangeOn'](_0x816df2),_0x27366e?null:'imageCaption');});}),_0x3ee4e6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x181711));const _0x368bc8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x218475(_0x26d6a7,_0x2ea8d6){const _0x4060f3=_0x368bc8['findIndex'](({type:_0x4a9b51,subType:_0x14616f})=>_0x26d6a7['type']==_0x4a9b51&&_0x26d6a7['subType']==_0x14616f),_0x4bbc63=_0x368bc8['findIndex'](({type:_0xceb88,subType:_0x17f85a})=>_0x2ea8d6['type']==_0xceb88&&_0x2ea8d6['subType']==_0x17f85a);if(_0x4060f3<0x0||_0x4bbc63<0x0)return!0x1;const _0x390666=_0x26d6a7['getFirstRange'](),_0xf96a22=_0x2ea8d6['getFirstRange']();if((0x0==_0x4060f3||0x1==_0x4060f3)&&0x2==_0x4bbc63&&_0x390666['isIntersecting'](_0xf96a22))return!0x0;if(0x2==_0x4060f3&&0x3==_0x4bbc63){const _0x5838bc=_0x3ee4e6['_findSuggestions'](_0x390666,'insertion')['filter'](({suggestion:_0x2441cf,meta:_0x2152d1})=>_0x2152d1['isOwn']&&'convertInlineImageToBlock'==_0x2441cf['subType']);if(_0x5838bc['length']>0x1&&_0xf96a22['end']['isEqual'](_0x390666['start']))return!0x0;if(0x1==_0x5838bc['length']&&(_0x390666['start']['isEqual'](_0xf96a22['end'])||_0x390666['end']['isEqual'](_0xf96a22['start'])))return!0x0;}if(0x3==_0x4060f3&&0x3==_0x4bbc63&&_0x390666['start']['isBefore'](_0xf96a22['start'])){const _0x45eab7=_0x390666['end']['nodeAfter'],_0x36b5f0=_0xf96a22['start']['nodeBefore'];return _0x3b6a4c['isBlockImage'](_0x45eab7)&&_0x45eab7===_0x36b5f0;}return!0x1;}function _0x181711(_0x2e616c,_0x21307e){return _0x218475(_0x2e616c,_0x21307e)?[_0x2e616c,_0x21307e]:_0x218475(_0x21307e,_0x2e616c)?[_0x21307e,_0x2e616c]:null;}_0x41c2c6['plugins']['has']('ImageResize')&&(_0x3ee4e6['enableDefaultAttributesIntegration']('resizeImage'),_0x3ee4e6['registerBlockAttribute']('resizedWidth'),_0x3ee4e6['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x60ca74,'FORMAT_IMAGE_SIZE'))),_0x41c2c6['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3ee4e6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3ee4e6['registerBlockAttribute']('alt')),_0x41c2c6['plugins']['has']('PictureEditing')&&(_0x3ee4e6['registerBlockAttribute']('sources'),_0x3ee4e6['descriptionFactory']['registerDescriptionCallback'](_0x524b62=>{if('attribute'!=_0x524b62['type'])return;const {data:_0xb53da1}=_0x524b62;return _0xb53da1&&'sources'==_0xb53da1['key']?{'type':'format','content':''}:void 0x0;})),_0x41c2c6['plugins']['has']('ImageSizeAttributes')&&(_0x3ee4e6['registerBlockAttribute']('width'),_0x3ee4e6['registerBlockAttribute']('height'),_0x3ee4e6['descriptionFactory']['registerDescriptionCallback'](_0x387174=>{if('attribute'!=_0x387174['type'])return;const {data:_0x129aa5}=_0x387174;return!_0x129aa5||'width'!=_0x129aa5['key']&&'height'!=_0x129aa5['key']?void 0x0:{'type':'format','content':''};})),_0x3ee4e6['descriptionFactory']['registerDescriptionCallback'](_0x2d2c4d=>{if(!!_0x368bc8['find'](({type:_0xda42ba,subType:_0x34cab5})=>_0x2d2c4d['type']==_0xda42ba&&_0x2d2c4d['subType']==_0x34cab5))return _0x2d2c4d['previous']?{}:void 0x0;}),_0x3ee4e6['descriptionFactory']['registerDescriptionCallback'](_0xdee6c7=>{if('insertion'==_0xdee6c7['type']||'deletion'==_0xdee6c7['type']){const _0x1a8984=_0xdee6c7['getContainedElement']();if(_0x1a8984&&_0x1a8984['is']('element','caption'))return{'type':'insertion'==_0xdee6c7['type']?'addObject':'removeObject','element':_0x1a8984,'quantity':0x1};}}),_0x3ee4e6['descriptionFactory']['registerDescriptionCallback'](_0x5226fa=>'formatBlock'==_0x5226fa['type']&&'convertInlineImageToBlock'==_0x5226fa['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5226fa['type']&&'convertBlockImageToInline'==_0x5226fa['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3ee4e6['descriptionFactory']['registerDescriptionCallback'](_0x623ae0=>{if('attribute'!=_0x623ae0['type'])return;const {data:_0x3ad70a}=_0x623ae0;if(!_0x3ad70a||'alt'!=_0x3ad70a['key'])return;const _0x12e5cb=_0x3ad70a['newValue'];return _0x12e5cb?{'type':'format','content':o(_0x60ca74,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x12e5cb+'\x22')}:{'type':'format','content':o(_0x60ca74,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b0401=this['editor'],_0x52698c=_0x5b0401['locale'];_0x5b0401['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeee67a=>{if('formatBlock'!=_0xeee67a['type']&&'formatInline'!=_0xeee67a['type'])return;const {data:_0xe8cfb}=_0xeee67a;if(_0xe8cfb){if('imageTextAlternative'==_0xe8cfb['commandName']){const _0x1b3b89=_0xe8cfb['commandParams'][0x0]['newValue'];return _0x1b3b89?{'type':'format','content':o(_0x52698c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b3b89+'\x22')}:{'type':'format','content':o(_0x52698c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe8cfb['commandName']){const _0x1c54db=_0xe8cfb['commandParams'][0x0]['width'];return _0x1c54db?{'type':'format','content':o(_0x52698c,'*Set\x20image\x20width:*\x20%0',_0x1c54db)}:{'type':'format','content':o(_0x52698c,'*Reset\x20image\x20width*')};}}});}}class at extends _0x4d70a7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1ddef8=this['editor']['locale'],_0x5eb6f3=this['editor']['plugins']['get']('TrackChangesEditing');_0x5eb6f3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5eb6f3['registerBlockAttribute']('src'),_0x5eb6f3['descriptionFactory']['registerDescriptionCallback'](_0x2096c7=>{if('attribute'!=_0x2096c7['type'])return;const {data:_0x2b432c}=_0x2096c7;return _0x2b432c&&'src'==_0x2b432c['key']?_0x2b432c['newValue']&&_0x2b432c['oldValue']?{'type':'format','content':o(_0x1ddef8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3ed2ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ed2ce['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3ed2ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ed2ce['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3ed2ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x315cf9=this['editor'],_0x572738=_0x315cf9['locale'];_0x315cf9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b5855=>{if('formatBlock'!=_0x3b5855['type']&&'formatInline'!=_0x3b5855['type'])return;const {data:_0x4a39e9}=_0x3b5855;if(!_0x4a39e9||'replaceImageSource'!=_0x4a39e9['commandName'])return;return{'type':'format','content':o(_0x572738,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x4d70a7{['afterInit'](){const _0x4774cb=this['editor'];if(!_0x4774cb['plugins']['has']('ImageStyleEditing'))return;const _0x9308f6=_0x4774cb['plugins']['get']('TrackChangesEditing'),_0x1cfec0=_0x4774cb['plugins']['get']('ImageUtils'),_0xe9bc18={};_0x9308f6['enableCommand']('imageStyle',(_0x1e80ee,_0x524c27)=>{const _0x4cb89d=_0x4774cb['plugins']['get']('Users')['me'],_0x15b8c0=_0x4774cb['commands']['get']('imageStyle');let _0x460938=_0x1cfec0['getClosestSelectedImageElement'](_0x4774cb['model']['document']['selection']),_0x2fc4cf=_0x4774cb['model']['createRangeOn'](_0x460938),_0x5c47a8=_0x15b8c0['value'];if(_0x5c47a8==_0x524c27['value'])return;const _0x4a19d5={'commandName':'imageStyle','commandParams':[_0x524c27],'formatGroupId':_0x4a76d0()};_0x4774cb['model']['change'](()=>{if(_0x9308f6['getSuggestions']()['filter'](_0x322f9f=>_0x322f9f['isInContent']&&_0x4cb89d==_0x322f9f['author']&&('formatBlock'==_0x322f9f['type']||'formatInline'==_0x322f9f['type'])&&('imageStylePreApply'==_0x322f9f['subType']||'imageStylePostApply'==_0x322f9f['subType'])&&_0x322f9f['getFirstRange']()['isEqual'](_0x2fc4cf))['forEach'](_0x17bcd2=>_0x9308f6['discardSuggestion'](_0x17bcd2['head'])),_0x460938=_0x1cfec0['getClosestSelectedImageElement'](_0x4774cb['model']['document']['selection']),_0x2fc4cf=_0x4774cb['model']['createRangeOn'](_0x460938),_0x15b8c0['refresh'](),_0x4774cb['commands']['get']('imageTypeInline')['refresh'](),_0x4774cb['commands']['get']('imageTypeBlock')['refresh'](),_0x5c47a8=_0x15b8c0['value'],_0x5c47a8!=_0x524c27['value'])return _0x1cfec0['isInlineImage'](_0x460938)&&_0x15b8c0['shouldConvertImageType'](_0x524c27['value'],_0x460938)?(_0x1e80ee({..._0x524c27,'setImageSizes':!0x1}),_0x460938=_0x1cfec0['getClosestSelectedImageElement'](_0x4774cb['model']['document']['selection']),void _0x9308f6['markBlockFormat'](_0x460938,{..._0x4a19d5,'commandReversedParams':[{'value':_0x5c47a8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1cfec0['isBlockImage'](_0x460938)?_0x9308f6['markBlockFormat'](_0x460938,_0x4a19d5,[],'imageStylePostApply'):_0x9308f6['markInlineFormat'](_0x2fc4cf,_0x4a19d5,'imageStylePostApply'));});});for(const _0x2bf680 of _0x4774cb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xe9bc18[_0x2bf680['name']]=_0x2bf680['title']['toLowerCase']();_0x9308f6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x9308f6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x9308f6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x9308f6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xf3f89d])=>{_0x1cfec0['setImageNaturalSizeAttributes'](_0xf3f89d['getContainedElement']());}),_0x9308f6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x8d1aa0,_0x1e7ffc)=>{_0x9308f6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x8d1aa0,{'commandName':_0x1e7ffc['commandName'],'commandParams':_0x1e7ffc['commandReversedParams']});}),_0x9308f6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x33be71,_0x1661f5){if(_0x11fbee(_0x33be71,_0x1661f5))return[_0x33be71,_0x1661f5];if(_0x11fbee(_0x1661f5,_0x33be71))return[_0x1661f5,_0x33be71];return null;});const _0x25c187=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x11fbee(_0x291cbc,_0x3ed446){const _0x334754=_0x25c187['findIndex'](({type:_0x42264a,subType:_0x535ece})=>_0x291cbc['type']==_0x42264a&&_0x291cbc['subType']==_0x535ece),_0x39ade4=_0x25c187['findIndex'](({type:_0xb830b0,subType:_0x261222})=>_0x3ed446['type']==_0xb830b0&&_0x3ed446['subType']==_0x261222);if(_0x334754<0x0||_0x39ade4<0x0)return!0x1;const _0xbc0f03=_0x291cbc['getFirstRange'](),_0x23a2a5=_0x3ed446['getFirstRange']();if((0x0==_0x334754||0x1==_0x334754)&&0x2==_0x39ade4&&_0xbc0f03['isIntersecting'](_0x23a2a5))return!0x0;if(0x2==_0x334754&&0x3==_0x39ade4){const _0x108484=_0x9308f6['_findSuggestions'](_0xbc0f03,'insertion')['filter'](({suggestion:_0x192fd3,meta:_0x3a8505})=>_0x3a8505['isOwn']&&'convertInlineImageToBlock'==_0x192fd3['subType']);if(_0x108484['length']>0x1&&_0x23a2a5['end']['isEqual'](_0xbc0f03['start']))return!0x0;if(0x1==_0x108484['length']&&(_0xbc0f03['start']['isEqual'](_0x23a2a5['end'])||_0xbc0f03['end']['isEqual'](_0x23a2a5['start'])))return!0x0;}if(0x3==_0x334754&&0x3==_0x39ade4&&_0xbc0f03['start']['isBefore'](_0x23a2a5['start'])){const _0x3d47e7=_0xbc0f03['end']['nodeAfter'],_0x24cafd=_0x23a2a5['start']['nodeBefore'];return _0x1cfec0['isBlockImage'](_0x3d47e7)&&_0x3d47e7===_0x24cafd;}return!0x1;}_0x4774cb['model']['document']['registerPostFixer'](()=>{let _0x32eed5=!0x1;const _0x147828=Array['from'](_0x4774cb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19f37f,data:_0x11365a}of _0x147828){const {group:_0x1ec7bd,type:_0x4de19f,subType:_0x17a9a8,id:_0x594895}=_0x9308f6['_splitMarkerName'](_0x19f37f);if('suggestion'==_0x1ec7bd&&_0x9308f6['hasSuggestion'](_0x594895)){if('formatBlock'==_0x4de19f&&('imageStylePreApply'==_0x17a9a8||'imageStylePostApply'==_0x17a9a8)){const _0x4511a0=_0x9308f6['getSuggestion'](_0x594895);if(_0x11365a['newRange']){const _0x417984=_0x4511a0['getFirstRange']()['getContainedElement']();if(_0x1cfec0['isBlockImage'](_0x417984))continue;_0x9308f6['discardSuggestion'](_0x4511a0),_0x32eed5=!0x0;}}if('insertion'==_0x4de19f&&'imageCaption'==_0x17a9a8&&!_0x11365a['newRange']){const _0x215426=_0x9308f6['getSuggestion'](_0x594895);_0x215426['next']&&_0x215426['next']['isInContent']&&(_0x9308f6['discardSuggestion'](_0x215426['next']),_0x32eed5=!0x0);}}}return _0x32eed5;}),this['_registerLegacyDescription'](_0xe9bc18);}['_registerLegacyDescription'](_0xccd0a1){const _0x5e6430=this['editor'],_0x3a9d2a=_0x5e6430['locale'];_0x5e6430['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x322f19=>{if('formatBlock'!=_0x322f19['type']&&'formatInline'!=_0x322f19['type'])return;const {data:_0x1009ba}=_0x322f19;if(!_0x1009ba||'imageStyle'!=_0x1009ba['commandName'])return;const _0x45ee62=_0x1009ba['commandParams'][0x0]['value'];return _0x4023b7('side'===_0x45ee62?o(_0x3a9d2a,'FORMAT_SIDE_IMAGE'):_0xccd0a1[_0x45ee62]||_0x45ee62);function _0x4023b7(_0x361506){return{'type':'format','content':o(_0x3a9d2a,'*Format:*\x20%0',_0x361506)};}});}}class ut extends _0x4d70a7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2d53bc){super(_0x2d53bc),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x506d1b=this['editor'],_0x27576f=_0x506d1b['commands']['get']('importWord'),_0x468f0e=_0x506d1b['commands']['get']('trackChanges');_0x27576f&&(_0x27576f['on']('execute',(_0x5f4a3c,[,_0x3fbbb5])=>{this['_trackChangesValueDuringImport']=_0x468f0e['value'],_0x3fbbb5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x27576f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x27576f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x468f0e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x506d1b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x48a7df,_0x25dd61){const {suggestions:_0x289ef9}=_0x25dd61,_0x556722=this['editor']['commands']['get']('trackChanges'),_0x4b5c48=_0x556722['value'];this['_trackChangesValueDuringImport']!==_0x4b5c48&&(_0x556722['execute'](),this['_trackChangesExecuted']=!0x0),_0x289ef9&&_0x289ef9['forEach'](({id:_0x2648dd,type:_0x2eab32,author:_0x55b782,created_at:_0x456de8})=>{const _0x3659cb={'id':_0x2648dd,'type':_0x2eab32,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x55b782,'createdAt':_0x456de8?new Date(_0x456de8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3659cb);});}}class ft extends _0x4d70a7{['afterInit'](){const _0x23f661=this['editor'],_0x43c83f=_0x23f661['plugins']['get']('TrackChangesEditing');if(_0x23f661['plugins']['has']('IndentEditing')&&(_0x43c83f['enableCommand']('indent'),_0x43c83f['enableCommand']('outdent')),_0x23f661['plugins']['has']('IndentBlock')){for(const _0x388bcb of['indentBlock','outdentBlock'])_0x43c83f['enableDefaultAttributesIntegration'](_0x388bcb);}const _0x15459a=_0x23f661['locale'];_0x43c83f['registerBlockAttribute']('blockIndent'),_0x43c83f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x15459a,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d7cb4=this['editor'],_0x2d5de4=_0x1d7cb4['locale'],_0x2c7952=_0x1d7cb4['plugins']['get']('TrackChangesEditing');_0x2c7952['descriptionFactory']['registerDescriptionCallback'](_0x287941=>{if('formatBlock'!=_0x287941['type'])return;const {data:_0x2c1bfa}=_0x287941;if(!_0x2c1bfa)return;if('indentBlock'!=_0x2c1bfa['commandName']&&'outdentBlock'!=_0x2c1bfa['commandName'])return;const _0x294a44=_0x287941['getItems']()[0x0],_0x48627e=_0x2c7952['descriptionFactory']['getItemLabel'](_0x294a44);return'indentBlock'==_0x2c1bfa['commandName']?{'type':'format','content':o(_0x2d5de4,'*Indent:*\x20%0',_0x48627e)}:'outdentBlock'==_0x2c1bfa['commandName']?{'type':'format','content':o(_0x2d5de4,'*Outdent:*\x20%0',_0x48627e)}:void 0x0;});}}class ht extends _0x4d70a7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x4d70a7{['afterInit'](){const _0x1a01b8=this['editor'];if(!_0x1a01b8['plugins']['has']('LinkEditing'))return;const _0x1d4c51=_0x1a01b8['plugins']['get']('TrackChangesEditing'),_0xcf345d=_0x1a01b8['commands']['get']('link');_0x1d4c51['enableDefaultAttributesIntegration']('link'),_0x1d4c51['enableDefaultAttributesIntegration']('unlink'),_0x1d4c51['registerInlineAttribute']('linkHref');for(const _0x2e8a1b of _0xcf345d['manualDecorators'])_0x1d4c51['registerInlineAttribute'](_0x2e8a1b['id']),_0x1d4c51['descriptionFactory']['registerAttributeLabel'](_0x2e8a1b['id'],'link\x20('+_0x2e8a1b['label']['toLowerCase']()+')');_0x1d4c51['descriptionFactory']['registerDescriptionCallback'](_0x247656=>{if('attribute'!=_0x247656['type'])return;const {data:_0x3f9012}=_0x247656;if(!_0x3f9012||'linkHref'!=_0x3f9012['key'])return;const _0x4e23ac=_0x3f9012['newValue'],_0x402723=_0x1a01b8['locale'];return{'type':'format','content':null==_0x4e23ac?o(_0x402723,'*Remove\x20link*'):o(_0x402723,'*Set\x20link:*\x20%0','\x22'+_0x4e23ac+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x218b29=this['editor'],_0x81bb9a=_0x218b29['locale'];_0x218b29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17673f=>{if('formatInline'!=_0x17673f['type'])return;const {data:_0x439f45}=_0x17673f;if(_0x439f45){if('link'==_0x439f45['commandName']){const _0x2015f5=_0x439f45['commandParams'][0x0];return{'type':'format','content':o(_0x81bb9a,'*Set\x20link:*\x20%0','\x22'+_0x2015f5+'\x22')};}return'unlink'==_0x439f45['commandName']?{'type':'format','content':o(_0x81bb9a,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x4d70a7{['afterInit'](){const _0x25e406=this['editor'],_0x389063=_0x25e406['locale'];if(!_0x25e406['plugins']['has']('LegacyListEditing'))return;const _0x2aef61=_0x25e406['plugins']['get']('TrackChangesEditing'),_0x168b45=_0x25e406['plugins']['has']('LegacyTodoListEditing');function _0x25c538(_0x14c30a){return()=>{const _0x4ee9fc=_0x25e406['model']['document']['selection'],_0x5c2e4c=_0x25e406['commands']['get'](_0x14c30a);if(_0x5c2e4c['value'])return void _0x25e406['execute']('paragraph',{});const _0x3d6783=_0x14c30a['slice'](0x0,-0x4),_0x45621c=function(_0xac58a,_0x3e1c9a,_0x40b24e){let _0x106dea=Array['from'](_0xac58a)['filter'](_0x28f7d5=>function(_0x15114c,_0x3cac0f){return _0x3cac0f['checkChild'](_0x15114c['parent'],'listItem')&&!_0x3cac0f['isObject'](_0x15114c);}(_0x28f7d5,_0x40b24e));_0x106dea=_0x106dea['filter'](_0x7719fa=>!_0x7719fa['is']('element','listItem')||_0x7719fa['getAttribute']('listType')!=_0x3e1c9a);const _0x2ad6ba=new Set();for(const _0x32a6a0 of _0x106dea)_0x32a6a0['is']('element','listItem')?_0x2ad6ba['add'](Le(_0x32a6a0)):_0x2ad6ba['add'](_0x32a6a0);return Array['from'](_0x2ad6ba);}(_0x4ee9fc['getSelectedBlocks'](),_0x3d6783,_0x25e406['model']['schema']);_0x25e406['model']['change'](()=>{for(const _0x3de549 of _0x45621c)_0x2aef61['markBlockFormat'](_0x3de549,{'commandName':_0x14c30a,'commandParams':[{'forceValue':!_0x5c2e4c['value']}],'formatGroupId':'blockName'},Ee(_0x3de549));});};}function _0x49b934(_0x5cfbbe){return()=>{const _0x51068c=function(_0x4b2483){let _0xa21501=Array['from'](_0x4b2483);const _0x3a8c53=_0xa21501['findIndex'](_0x34a783=>'listItem'!=_0x34a783['name']);return _0x3a8c53>-0x1&&(_0xa21501=_0xa21501['slice'](0x0,_0x3a8c53)),_0xa21501;}(_0x25e406['model']['document']['selection']['getSelectedBlocks']()),_0x176f3a=_0x25e406['model']['createRange'](_0x25e406['model']['createPositionAt'](_0x51068c[0x0],'before'),_0x25e406['model']['createPositionAt'](_0x51068c[_0x51068c['length']-0x1],'end'));_0x25e406['model']['change'](()=>{_0x2aef61['markBlockFormat'](_0x176f3a,{'commandName':_0x5cfbbe,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3db5ce){const _0x5041ba=new Set();for(const _0x58f99e of _0x3db5ce){let _0x5cfbc9=_0x58f99e['nextSibling'];for(;_0x5cfbc9&&_0x5cfbc9['getAttribute']('listIndent')>_0x58f99e['getAttribute']('listIndent');)_0x5041ba['add'](_0x5cfbc9),_0x5cfbc9=_0x5cfbc9['nextSibling'];}return Array['from'](_0x5041ba);}(_0x51068c));});};}_0x2aef61['enableCommand']('numberedList',_0x25c538('numberedList')),_0x2aef61['enableCommand']('bulletedList',_0x25c538('bulletedList')),_0x168b45&&_0x2aef61['enableCommand']('todoList',_0x25c538('todoList')),_0x2aef61['enableCommand']('indentList',_0x49b934('indentList')),_0x2aef61['enableCommand']('outdentList',_0x49b934('outdentList')),_0x168b45&&_0x2aef61['enableCommand']('checkTodoList',()=>{const _0x11a05c=_0x25e406['commands']['get']('checkTodoList'),_0x27354d=Array['from'](_0x11a05c['_selectedElements']);_0x27354d['filter'](_0x306e3f=>_0x306e3f['getAttribute']('todoListChecked')!=_0x11a05c['value']),_0x25e406['model']['change'](()=>{for(const _0x15f2a0 of _0x27354d)_0x2aef61['markBlockFormat'](_0x15f2a0,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x11a05c['value']}]});});}),_0x2aef61['descriptionFactory']['registerElementLabel']('listItem',_0x595d83=>o(_0x389063,'ELEMENT_LIST_ITEM',_0x595d83)),_0x2aef61['descriptionFactory']['registerDescriptionCallback'](_0x53a402=>{if('formatBlock'!=_0x53a402['type']&&'formatInline'!=_0x53a402['type'])return;const {data:_0x1c31a0}=_0x53a402;if(_0x1c31a0){if('numberedList'==_0x1c31a0['commandName']||'bulletedList'==_0x1c31a0['commandName']||'todoList'==_0x1c31a0['commandName'])switch(_0x1c31a0['commandName']['replace']('List','')){case'bulleted':return _0x385a61(o(_0x389063,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x385a61(o(_0x389063,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x385a61(o(_0x389063,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1c31a0['commandName'])return{'type':'format','content':o(_0x389063,'*Indent:*\x20%0',o(_0x389063,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1c31a0['commandName'])return{'type':'format','content':o(_0x389063,'*Outdent:*\x20%0',o(_0x389063,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1c31a0['commandName'])return _0x1c31a0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x389063,'*Check\x20item*')}:{'type':'format','content':o(_0x389063,'*Uncheck\x20item*')};}function _0x385a61(_0x317ac5){return{'type':'format','content':o(_0x389063,'*Change\x20to:*\x20%0',_0x317ac5)};}});}}function Le(_0x4ea036){const _0x589e86=_0x4ea036['getAttribute']('listIndent');if(0x0==_0x589e86)return _0x4ea036;let _0x330dee=_0x4ea036;for(;_0x4ea036['previousSibling']&&_0x4ea036['previousSibling']['is']('element','listItem');){const _0x12437f=_0x4ea036['previousSibling']['getAttribute']('listIndent');if(_0x12437f==_0x589e86)_0x330dee=_0x4ea036['previousSibling'];else{if(_0x12437f<_0x589e86)break;}_0x4ea036=_0x4ea036['previousSibling'];}return _0x330dee;}function Ee(_0x339e84){const _0x24190d=[];if(_0x339e84['is']('element','listItem')&&_0x339e84['getAttribute']('listIndent')>0x0){let _0x529abb=_0x339e84['nextSibling'];for(;_0x529abb&&'listItem'==_0x529abb['name']&&_0x529abb['getAttribute']('listIndent')==_0x339e84['getAttribute']('listIndent');)_0x24190d['push'](_0x529abb),_0x529abb=_0x529abb['nextSibling'];}return _0x24190d;}class Q extends _0x4d70a7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x57f3a4=this['editor']['config']['get']('list.properties'),_0x54267a=this['editor']['plugins']['get']('TrackChangesEditing');_0x57f3a4['styles']&&_0x54267a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x57f3a4['reversed']&&_0x54267a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x57f3a4['startIndex']&&_0x54267a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x54267a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4252f9,_0x56dc9f={}){const _0x562acc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15a266=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x562acc['markMultiRangeBlockFormat'](_0x15a266,{'commandName':'listStyle','commandParams':[{'type':_0x56dc9f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x36079a,_0x36f98f={}){const _0x474357=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d6b59=this['_getSuggestionBlocks'](_0x52efb6=>_0x52efb6['is']('element','listItem')&&'numbered'===_0x52efb6['getAttribute']('listType'));if(_0x2d6b59['length']<0x1)return;const _0x4014a1=_0x2d6b59['map'](_0x244c11=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x244c11,'before'),this['editor']['model']['createPositionAt'](_0x244c11,0x0)));this['editor']['model']['change'](()=>{_0x474357['markMultiRangeBlockFormat'](_0x4014a1,{'commandName':'listReversed','commandParams':[{'reversed':_0x36f98f['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x24b668,_0x519b12={}){const _0xf6a5ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9eaf2a=this['_getSuggestionBlocks'](_0xc3dcbe=>_0xc3dcbe['is']('element','listItem')&&'numbered'===_0xc3dcbe['getAttribute']('listType'));if(_0x9eaf2a['length']<0x1)return;const _0x22711b=_0x9eaf2a['map'](_0xa5e626=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa5e626,'before'),this['editor']['model']['createPositionAt'](_0xa5e626,0x0)));this['editor']['model']['change'](()=>{_0xf6a5ba['markMultiRangeBlockFormat'](_0x22711b,{'commandName':'listStart','commandParams':[{'startIndex':_0x519b12['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x39eaad){if('formatBlock'!=_0x39eaad['type']&&'formatInline'!=_0x39eaad['type'])return;const _0x374431=this['editor']['locale'],{data:_0x13d250}=_0x39eaad;if(!_0x13d250)return;let _0x2549cc,_0xc4c0c6;switch(_0x13d250['commandName']){case'listStyle':_0x2549cc='*Change\x20to:*\x20%0',_0xc4c0c6={'type':'format','content':o(_0x374431,_0x2549cc,o(_0x374431,this['_getTranslationKeyForListStyle'](_0x13d250['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2549cc=_0x13d250['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xc4c0c6={'type':'format','content':o(_0x374431,_0x2549cc)};break;case'listStart':_0x2549cc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xc4c0c6={'type':'format','content':o(_0x374431,_0x2549cc,_0x13d250['commandParams'][0x0]['startIndex'])};}return _0xc4c0c6;}['_getSuggestionBlocksForListStyle'](){const _0x4e1c37=this['editor']['plugins']['get']('LegacyListUtils');let _0x49ca83=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x49ca83[0x0]?.['is']('element','listItem')&&_0x49ca83['unshift'](..._0x4e1c37['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x49ca83[_0x49ca83['length']-0x1]?.['is']('element','listItem')&&_0x49ca83['push'](..._0x4e1c37['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x49ca83=[...new Set(_0x49ca83)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x49ca83=_0x49ca83['filter'](_0x472eee=>_0x472eee['is']('element','listItem'))),_0x49ca83;}['_getSuggestionBlocks'](_0x368134){const _0xed5153=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e7ac0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x368134)['map'](_0x1a3250=>{const _0x52fa2c=this['editor']['model']['createPositionAt'](_0x1a3250,0x0);return[..._0xed5153['getSiblingNodes'](_0x52fa2c,'backward'),..._0xed5153['getSiblingNodes'](_0x52fa2c,'forward')];})['flat']();return _0x5e7ac0=[...new Set(_0x5e7ac0)],_0x5e7ac0;}['_getTranslationKeyForListStyle'](_0x1d1fe0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1d1fe0)||'default')['toUpperCase']()+'_LIST_'+_0x1d1fe0['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4d70a7{['afterInit'](){const _0x1dce57=this['editor'];if(!_0x1dce57['plugins']['has']('MediaEmbedEditing'))return;const _0xb45332=_0x1dce57['plugins']['get']('TrackChangesEditing'),_0xfeffbf=_0x1dce57['locale'];_0xb45332['enableCommand']('mediaEmbed'),_0xb45332['descriptionFactory']['registerElementLabel']('media',_0x1be212=>o(_0xfeffbf,'ELEMENT_MEDIA',_0x1be212)),_0x1dce57['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x515ecd,{writer:_0x4abfda,options:_0x382960})=>{if(_0x382960['showSuggestionHighlights'])return _0x4abfda['createEmptyElement']('div');},'converterPriority':'high'}),_0x1dce57['data']['downcastDispatcher']['on']('attribute:url:media',(_0x25af6b,_0x2cd528,_0x3c9262)=>{_0x3c9262['options']['showSuggestionHighlights']&&_0x25af6b['stop']();},{'priority':'high'});}}class pt extends _0x4d70a7{['afterInit'](){const _0x1e6474=this['editor'];_0x1e6474['plugins']['has']('MentionEditing')&&_0x1e6474['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x4d70a7{['afterInit'](){const _0x1078d8=this['editor'];if(!_0x1078d8['plugins']['has']('MergeFieldsEditing'))return;const _0x4776fd=_0x1078d8['plugins']['get']('TrackChangesEditing'),_0x2420c3=_0x1078d8['locale'];_0x4776fd['enableCommand']('insertMergeField'),_0x4776fd['enableCommand']('insertMergeFieldBlock'),_0x4776fd['enableCommand']('insertMergeFieldImage'),_0x4776fd['descriptionFactory']['registerElementLabel']('mergeField',_0x29c9e5=>o(_0x2420c3,'ELEMENT_MERGE_FIELD',_0x29c9e5)),_0x4776fd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x37fbc8=>o(_0x2420c3,'ELEMENT_MERGE_FIELD',_0x37fbc8)),_0x4776fd['descriptionFactory']['registerDescriptionCallback'](_0x46e776=>{if('insertion'!=_0x46e776['type']&&'deletion'!=_0x46e776['type'])return;const _0x3ea1ec=_0x46e776['getContainedElement']();if(null==_0x3ea1ec)return;const _0xa0eb91=_0x1078d8['plugins']['get']('MergeFieldsEditing');let _0x487019;switch(_0xa0eb91['getMergeFieldType'](_0x3ea1ec)){case null:return;case'image':{const _0x3a08cc=_0xa0eb91['unwrapAffixes'](_0x3ea1ec['getAttribute']('src'));_0x487019=_0xa0eb91['getLabel'](_0x3a08cc)||_0x3a08cc;break;}default:{const _0x3e2f2c=_0x3ea1ec['getAttribute']('id');_0x487019=_0xa0eb91['getLabel'](_0x3e2f2c)||_0x3e2f2c;break;}}return'insertion'==_0x46e776['type']?{'type':'insertion','content':o(_0x2420c3,'*Insert:*\x20%0','\x22'+_0x487019+'\x22\x20'+o(_0x2420c3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2420c3,'*Remove:*\x20%0','\x22'+_0x487019+'\x22\x20'+o(_0x2420c3,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x4d70a7{['afterInit'](){const _0x33a05d=this['editor'],_0x636802=_0x33a05d['plugins']['get']('TrackChangesEditing');_0x33a05d['plugins']['has']('MultiLevelList')&&(_0x636802['enableDefaultAttributesIntegration']('multiLevelList'),_0x636802['registerBlockAttribute']('listMarkerStyle'),_0x636802['descriptionFactory']['registerDescriptionCallback'](_0x362488=>this['handleDescriptions'](_0x362488)));}['handleDescriptions'](_0x3db46e){const _0x37d9d6=this['editor']['locale'],{data:_0x14f59e}=_0x3db46e,_0x344535={'type':'format','content':''};if(_0x14f59e&&'listMarkerStyle'==_0x14f59e['key']){if(!_0x14f59e['oldValue'])return{'type':'format','content':o(_0x37d9d6,'*Set\x20format:*\x20%0',o(_0x37d9d6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x14f59e['newValue']+')'};if(!_0x14f59e['newValue']){let _0x19ae49=_0x3db46e['head'];for(;_0x19ae49;){if(_0x19ae49['data']&&'listType'==_0x19ae49['data']['key']&&_0x19ae49['data']['newValue'])return _0x344535;_0x19ae49=_0x19ae49['next'];}return{'type':'format','content':o(_0x37d9d6,'*Remove\x20format:*\x20%0',o(_0x37d9d6,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x14f59e['oldValue']+')'};}}}}class bt extends _0x4d70a7{['afterInit'](){const _0x3e7907=this['editor'];if(!_0x3e7907['plugins']['has']('PageBreakEditing'))return;_0x3e7907['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1cd66f=_0x3e7907['plugins']['get']('TrackChangesEditing'),_0x5ebe9a=_0x3e7907['locale'];_0x1cd66f['descriptionFactory']['registerElementLabel']('pageBreak',_0x5e8211=>o(_0x5ebe9a,'ELEMENT_PAGE_BREAK',_0x5e8211));}}class yt extends _0x4d70a7{['afterInit'](){const _0x215773=this['editor'];if(!_0x215773['plugins']['has']('Paragraph'))return;const _0x3176d4=_0x215773['locale'],_0x5b1fd4=_0x215773['plugins']['get']('TrackChangesEditing');_0x5b1fd4['descriptionFactory']['registerElementLabel']('paragraph',_0x341ab5=>o(_0x3176d4,'ELEMENT_PARAGRAPH',_0x341ab5)),_0x5b1fd4['enableDefaultAttributesIntegration']('paragraph'),_0x5b1fd4['enableCommand']('insertParagraph'),_0x215773['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x215773),{'priority':'highest'}),_0x215773['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x270986,_0x530d27,_0x4d6aee)=>{_0x4d6aee['options']['showSuggestionHighlights']&&nr(_0x215773,{'showActiveMarker':!0x1})(_0x270986,_0x530d27,_0x4d6aee);},{'priority':'highest'});const _0x35a2f4=_0x5b1fd4['descriptionFactory'];_0x35a2f4['registerDescriptionCallback'](_0x19c04f=>{if('insertion'!==_0x19c04f['type'])return;const {start:_0x5dde96,end:_0x5e313c}=_0x19c04f['getFirstRange']();if(!_0x5dde96['isTouching'](_0x5e313c)||!_0x5dde96['nodeAfter'])return;const _0x4ea634=_0x215773['model']['schema'],_0x566636=_0x5dde96['nodeAfter'];return _0x4ea634['isBlock'](_0x566636)&&!_0x4ea634['isLimit'](_0x566636)&&_0x4ea634['checkChild'](_0x566636,'$text')?{'type':'insertion','content':o(_0x3176d4,'*Insert:*\x20%0',_0x35a2f4['getItemLabel'](_0x566636,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x152741=this['editor'],_0x756bd5=_0x152741['locale'];_0x152741['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x975519=>{if('formatBlock'!=_0x975519['type'])return;const {data:_0x5a9407}=_0x975519;return _0x5a9407&&'paragraph'==_0x5a9407['commandName']?{'type':'format','content':o(_0x756bd5,'*Change\x20to:*\x20%0',o(_0x756bd5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5b0d25,{showActiveMarker:_0x3417b8=!0x0}={}){return(_0xbdcbe,_0x470842,_0x469dbe)=>{const _0x1e944e=_0x5b0d25['plugins']['get']('TrackChangesEditing'),_0x13056b=_0x470842['markerRange']['start'],_0x517d44=_0x470842['markerRange']['end'],_0x2b06d2=_0x5b0d25['model']['schema'];if(!_0x13056b['isTouching'](_0x517d44)||!_0x13056b['nodeAfter'])return;const _0x4638c5=_0x13056b['nodeAfter'];if(_0x2b06d2['isBlock'](_0x4638c5)&&!_0x2b06d2['isLimit'](_0x4638c5)&&_0x2b06d2['checkChild'](_0x4638c5,'$text')){if(!_0x469dbe['consumable']['consume'](_0x470842['markerRange'],_0xbdcbe['name']))return;const {authorId:_0x43055a}=_0x1e944e['_splitMarkerName'](_0x470842['markerName']),_0x4f819d=_0x469dbe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x43055a}),_0x3ac1b2=_0x469dbe['mapper']['toViewPosition'](_0x517d44);_0x3417b8&&_0x1e944e['activeMarkers']['includes'](_0x470842['markerName'])&&_0x469dbe['writer']['addClass']('ck-suggestion-marker--active',_0x4f819d),_0x469dbe['writer']['insert'](_0x3ac1b2,_0x4f819d),_0x469dbe['mapper']['bindElementToMarker'](_0x4f819d,_0x470842['markerName']);}};}class jt extends _0x4d70a7{['afterInit'](){const _0x387222=this['editor'];_0x387222['commands']['get']('replaceSource')&&_0x387222['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x4d70a7{['afterInit'](){const _0x1e88b6=this['editor'];if(!_0x1e88b6['plugins']['has']('RemoveFormatEditing'))return;_0x1e88b6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c5a75=this['editor'];_0x3c5a75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f9bd3=>{if('formatBlock'!=_0x2f9bd3['type']&&'formatInline'!=_0x2f9bd3['type'])return;const {data:_0x48d07f}=_0x2f9bd3;return _0x48d07f&&'removeFormat'==_0x48d07f['commandName']?{'type':'format','content':o(_0x3c5a75['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x4d70a7{['afterInit'](){const _0x11c1af=this['editor'];if(!_0x11c1af['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1b0b3d=_0x11c1af['plugins']['get']('TrackChangesEditing');_0x1b0b3d['enableCommand']('goToPreviousRestrictedEditingException'),_0x1b0b3d['enableCommand']('goToNextRestrictedEditingException');const _0x2170d3=_0x11c1af['plugins']['get']('RestrictedEditingModeEditing');_0x2170d3['enableCommand']('trackChanges'),_0x2170d3['enableCommand']('acceptSuggestion'),_0x2170d3['enableCommand']('discardSuggestion'),_0x2170d3['enableCommand']('acceptAllSuggestions'),_0x2170d3['enableCommand']('discardAllSuggestions'),_0x2170d3['enableCommand']('acceptSelectedSuggestions'),_0x2170d3['enableCommand']('discardSelectedSuggestions');}}class It extends _0x4d70a7{static get['requires'](){return[_0x26a616];}['init'](){const _0x549456=this['editor'],_0x43cb70=_0x549456['plugins']['get']('TrackChangesEditing');_0x43cb70['enableCommand']('shiftEnter'),_0x549456['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x549456),{'priority':'high'}),_0x549456['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x549456),{'priority':'high'}),_0x549456['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3acb19,_0x5b83d2,_0x17e389)=>{_0x17e389['options']['showSuggestionHighlights']&&je(_0x549456,{'showActiveMarker':!0x1})(_0x3acb19,_0x5b83d2,_0x17e389);}),_0x43cb70['descriptionFactory']['registerElementLabel']('softBreak',_0x3796ed=>o(_0x549456['locale'],'ELEMENT_LINE_BREAK',_0x3796ed));}}function je(_0x35d952,{showActiveMarker:_0x2cbd36=!0x0}={}){return(_0x1e66ea,_0x2a75df,_0x52f3bd)=>{const _0x4dba1d=_0x35d952['plugins']['get']('TrackChangesEditing');if(!_0x52f3bd['consumable']['test'](_0x2a75df['markerRange'],_0x1e66ea['name']))return;const _0x37ce50=_0x35d952['model'];for(const _0x18eb51 of _0x2a75df['markerRange']['getItems']()){if(!_0x18eb51['is']('element','softBreak'))continue;const _0x511b83='deletion'==_0x2a75df['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x359dc5}=_0x4dba1d['_splitMarkerName'](_0x2a75df['markerName']),_0x325d67=_0x52f3bd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x511b83,'data-author-id':_0x359dc5}),_0x3eec1a=_0x52f3bd['mapper']['toViewPosition'](_0x37ce50['createPositionBefore'](_0x18eb51));_0x2cbd36&&_0x4dba1d['activeMarkers']['includes'](_0x2a75df['markerName'])&&_0x52f3bd['writer']['addClass']('ck-suggestion-marker--active',_0x325d67),_0x52f3bd['writer']['insert'](_0x3eec1a,_0x325d67),_0x52f3bd['mapper']['bindElementToMarker'](_0x325d67,_0x2a75df['markerName']);}};}class vt extends _0x4d70a7{['afterInit'](){const _0x35112b=this['editor'],_0x515f24=_0x35112b['model'],_0x454525=_0x35112b['locale'];if(!_0x35112b['plugins']['has']('StandardEditingModeEditing'))return;const _0x52b116=_0x35112b['plugins']['get']('TrackChangesEditing'),_0x50c355='restrictedEditingException',_0x32d422=_0x35112b['commands']['get'](_0x50c355);_0x52b116['enableCommand'](_0x50c355,(_0x1a3973,_0x331b1f={})=>{const _0x34755f=_0x515f24['document']['selection'];if(_0x34755f['isCollapsed'])return void _0x1a3973(_0x331b1f);const _0x495222=void 0x0!==_0x331b1f['forceValue']?_0x331b1f['forceValue']:!_0x32d422['value'];_0x515f24['change'](()=>{const _0x9aabce=Array['from'](_0x34755f['getRanges']());for(const _0x1cdd74 of _0x9aabce){const _0xe4bd19=_0x495222?[_0x1cdd74]:io(_0x50c355,_0x1cdd74,_0x515f24);for(const _0x37b369 of _0xe4bd19)_0x52b116['markInlineFormat'](_0x37b369,{'commandName':_0x50c355,'commandParams':[{'forceValue':_0x495222}]});}});}),_0x52b116['descriptionFactory']['registerDescriptionCallback'](_0x1b9d60=>{if('formatBlock'!=_0x1b9d60['type']&&'formatInline'!=_0x1b9d60['type'])return;const {data:_0xd11a9e}=_0x1b9d60;return _0xd11a9e&&_0xd11a9e['commandName']==_0x50c355?_0xd11a9e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x454525,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x454525,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x4d70a7{['afterInit'](){const _0xebdfa8=this['editor'];if(!_0xebdfa8['plugins']['has']('Style')||!_0xebdfa8['plugins']['has']('DataSchema'))return;const _0x736fd8=_0xebdfa8['plugins']['get']('TrackChangesEditing'),_0x4051e2=_0xebdfa8['locale'],_0x4922f2=_0xebdfa8['config']['get']('style')||{},_0x44298c=_0xebdfa8['plugins']['get']('GeneralHtmlSupport'),_0x242790=_0xebdfa8['plugins']['get']('StyleUtils')['normalizeConfig'](_0xebdfa8['plugins']['get']('DataSchema'),_0x4922f2['definitions']);_0x736fd8['enableDefaultAttributesIntegration']('style');const _0x5a0bcf=new Set();for(const _0x1d247a of _0x242790['block']){const _0x403292=_0x44298c['getGhsAttributeNameForElement'](_0x1d247a['element']);_0x5a0bcf['add'](_0x403292);}const _0x5deb26=new Set();for(const _0x2e0017 of _0x242790['inline']){const _0x57d8bd=_0x44298c['getGhsAttributeNameForElement'](_0x2e0017['element']);_0x5deb26['add'](_0x57d8bd);for(const _0x2a620c of _0x2e0017['ghsAttributes'])_0x5deb26['add'](_0x2a620c);}for(const _0x3173f3 of _0x5a0bcf)_0x736fd8['registerBlockAttribute'](_0x3173f3),_0x736fd8['descriptionFactory']['registerAttributeLabel'](_0x3173f3,o(_0x4051e2,'FORMAT_STYLE'));for(const _0xd9c5cd of _0x5deb26)_0x736fd8['registerInlineAttribute'](_0xd9c5cd),_0x736fd8['descriptionFactory']['registerAttributeLabel'](_0xd9c5cd,o(_0x4051e2,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x420d50=this['editor'],_0xd5e074=_0x420d50['locale'];_0x420d50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x569c61=>{if('formatBlock'!=_0x569c61['type']&&'formatInline'!=_0x569c61['type'])return;const {data:_0x682a37}=_0x569c61;return _0x682a37&&'style'===_0x682a37['commandName']?_0x682a37['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd5e074,'*Set\x20format:*\x20%0',_0x682a37['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xd5e074,'*Remove\x20format:*\x20%0',_0x682a37['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x4d70a7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1d021e){super(_0x1d021e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x25956f=this['editor'],_0x477749=_0x25956f['model']['document']['selection'];if(!_0x25956f['plugins']['has']('TableEditing'))return;const _0x38a5f2=_0x25956f['locale'],_0x511309=_0x25956f['plugins']['get']('TrackChangesEditing'),_0x4e4ee6=_0x25956f['plugins']['get']('TableUtils');_0x511309['descriptionFactory']['registerElementLabel']('table',_0x576cfc=>o(_0x38a5f2,'ELEMENT_TABLE',_0x576cfc)),this['_setupColumnsRowsFixing'](),_0x511309['enableCommand']('insertTable'),_0x511309['enableCommand']('selectTableRow'),_0x511309['enableCommand']('selectTableColumn');for(const _0x11788c of['insertTableRowAbove','insertTableRowBelow']){const _0x40af3d=_0x25956f['commands']['get'](_0x11788c);_0x511309['enableCommand'](_0x11788c,_0x5aee00=>{_0x25956f['model']['change'](_0x5ea030=>{_0x5aee00();const _0x35e047='above'===_0x40af3d['order'],_0x3aced7=_0x4e4ee6['getSelectionAffectedTableCells'](_0x477749),_0x3c4cfe=_0x4e4ee6['getRowIndexes'](_0x3aced7),_0x2ad8bd=_0x35e047?_0x3c4cfe['first']-0x1:_0x3c4cfe['last']+0x1,_0xba85e0=_0x3aced7[0x0]['findAncestor']('table'),_0x1c4e71=_0x4e4ee6['createTableWalker'](_0xba85e0,{'startRow':_0x2ad8bd,'endRow':_0x2ad8bd}),_0x464df7=Array['from'](_0x1c4e71)['map'](_0xd53d82=>_0x5ea030['createRangeOn'](_0xd53d82['cell']));_0x511309['markMultiRangeInsertion'](_0x464df7,'tableRow');});});}for(const _0x562ec6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x55e3f9=_0x25956f['commands']['get'](_0x562ec6);_0x511309['enableCommand'](_0x562ec6,_0x4e5c76=>{_0x25956f['model']['change'](_0x2b3224=>{_0x4e5c76();const _0x183edf='left'===_0x55e3f9['order'],_0x2a4a0b=_0x4e4ee6['getSelectionAffectedTableCells'](_0x477749),_0x262c39=_0x4e4ee6['getColumnIndexes'](_0x2a4a0b),_0x255c07=_0x183edf?_0x262c39['first']-0x1:_0x262c39['last']+0x1,_0x546cb3=_0x2a4a0b[0x0]['findAncestor']('table'),_0x37257c=_0x4e4ee6['createTableWalker'](_0x546cb3,{'startRow':0x0,'column':_0x255c07,'includeAllSlots':!0x1}),_0x5a0a62=Array['from'](_0x37257c)['map'](_0x58f224=>_0x2b3224['createRangeOn'](_0x58f224['cell']));_0x511309['markMultiRangeInsertion'](_0x5a0a62,'tableColumn');});});}for(const _0x5e6291 of['removeTableRow','removeTableColumn']){const _0x5c27c2=_0x5e6291['substr'](0xb),_0x22cbb5=_0x5c27c2['toLowerCase'](),_0x209ecd=_0x22cbb5['substr'](0x0,0x3)+'span',_0x20f761='table'+_0x5c27c2,_0x37491f='min'+_0x5c27c2,_0x506dc8='max'+_0x5c27c2;_0x511309['enableCommand'](_0x5e6291,()=>{_0x25956f['model']['change'](_0x40158e=>{const _0x1651b3=_0x4e4ee6['getSelectionAffectedTableCells'](_0x477749),_0x2fd634=_0x1651b3[0x0]['findAncestor']('table');let _0x2ac5ee;if('removeTableRow'==_0x5e6291){const _0x3c67bf=_0x4e4ee6['getRowIndexes'](_0x1651b3);_0x2ac5ee={'startRow':_0x3c67bf['first'],'endRow':_0x3c67bf['last'],'includeAllSlots':!0x0};}else{const _0x1b5c0d=_0x4e4ee6['getColumnIndexes'](_0x1651b3);_0x2ac5ee={'startColumn':_0x1b5c0d['first'],'endColumn':_0x1b5c0d['last'],'includeAllSlots':!0x0};}const _0x3dd4c2=_0x4e4ee6['createTableWalker'](_0x2fd634,_0x2ac5ee),_0x5c781c=Array['from'](_0x3dd4c2)['map'](({cell:_0x2c956e})=>_0x2c956e),_0x1b85db=Ne(_0x5c781c['filter'](_0x3b1cd4=>_0x3b1cd4['hasAttribute'](_0x209ecd))),_0x1b41f3=Ne(_0x5c781c['filter'](_0x5151b3=>!_0x5151b3['hasAttribute'](_0x209ecd)))['map'](_0x3890cf=>_0x40158e['createRangeOn'](_0x3890cf)),_0x361509=_0x511309['markMultiRangeDeletion'](_0x1b41f3,_0x20f761);if(_0x361509&&('tableRow'==_0x361509['subType']||'tableColumn'==_0x361509['subType'])){const _0x595e40=this['_getSuggestionCoords'](_0x361509);for(const _0x2eda65 of _0x1b85db){const _0x5a30ac=_0x40158e['createRangeOn'](_0x2eda65),_0x39a800=_0x4e4ee6['getCellLocation'](_0x2eda65),_0x4ed4a2=_0x2eda65['getAttribute'](_0x209ecd)-0x1,_0x574a9f=_0x595e40[_0x37491f],_0x2b021a=_0x595e40[_0x506dc8];_0x574a9f<=_0x39a800[_0x22cbb5]&&_0x39a800[_0x22cbb5]+_0x4ed4a2<=_0x2b021a&&_0x361509['addRange'](_0x5a30ac);}}});});}function _0x1569a2(_0x2137ad){const _0x832c18=Array['from'](_0x477749['getRanges']())['map'](_0x45dd04=>_0x1f2c9d['fromRange'](_0x45dd04));_0x25956f['model']['change'](_0x5f0cd9=>{const _0x4359e8=_0x5f0cd9['batch'];_0x2137ad=_0x2137ad['filter'](_0x556aaf=>'$graveyard'!=_0x556aaf['root']['rootName']),_0x5f0cd9['setSelection'](_0x2137ad),_0x25956f['commands']['get']('removeTableRow')['refresh'](),_0x25956f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x25956f['model']['enqueueChange'](()=>{_0x25956f['model']['enqueueChange'](_0x4359e8,_0x2cf3bc=>{const _0x5cfd25=_0x832c18['filter'](_0x29a45c=>'$graveyard'!=_0x29a45c['root']['rootName']);_0x5cfd25['length']>0x0&&_0x2cf3bc['setSelection'](_0x5cfd25);for(const _0x21f92e of _0x832c18)_0x21f92e['detach']();});});});}function _0x718d87(_0x2d79cb){_0x25956f['model']['change'](_0x5dc273=>{const _0x5ec8fa=Array['from'](_0x477749['getRanges']())['map'](_0x4bdec2=>_0x1f2c9d['fromRange'](_0x4bdec2)),_0x1cd06a=[];for(const _0x52f57c of _0x2d79cb)for(const _0x4e2293 of _0x52f57c['getItems']({'shallow':!0x0}))_0x1cd06a['push'](_0x4e2293);for(const _0x3bc67f of _0x1cd06a)'$graveyard'!=_0x3bc67f['root']['rootName']&&(_0x5dc273['setSelection'](_0x5dc273['createPositionAt'](_0x3bc67f,0x0)),_0x25956f['commands']['get']('removeTableColumn')['refresh'](),_0x25956f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x934f91=_0x5ec8fa['filter'](_0x4b2e1c=>'$graveyard'!=_0x4b2e1c['root']['rootName']);_0x934f91['length']>0x0&&_0x5dc273['setSelection'](_0x934f91);for(const _0x5ee7d3 of _0x5ec8fa)_0x5ee7d3['detach']();});}function _0x84f1b3(_0x26d96c,_0x2a9ac9){return _0x2a9ac9['every'](_0x199e01=>_0x26d96c['some'](_0x3da940=>_0x3da940['end']['isEqual'](_0x199e01['start'])||_0x199e01['end']['isEqual'](_0x3da940['start'])));}function _0x1285b3(_0xb6612a,_0xf411cc){return!_0xb6612a['some'](_0x22bbbd=>_0xf411cc['some'](_0x1e05b3=>_0x22bbbd['isIntersecting'](_0x1e05b3)))&&_0xb6612a['some'](_0x1133a0=>_0xf411cc['some'](_0x4b6b73=>_0x1133a0['end']['isTouching'](_0x4b6b73['start'])));}_0x25956f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x268787,_0x126fb8,_0x4f7343)=>{if(!_0x4f7343['options']['showSuggestionHighlights'])return;const _0x4c8498=_0x126fb8['item'];if(!_0x4c8498)return;const _0x387c8d=_0x4f7343['mapper']['toViewElement'](_0x4c8498);function _0x523423(_0x3112a0){return Array['isArray'](_0x3112a0)?_0x3112a0:[_0x3112a0];}_0x387c8d&&'tableCell'===_0x4c8498['name']&&_0x4ea830(_0x387c8d,_0x4f7343['writer'],(_0x5a4b25,_0x39d373,_0x1fc735)=>_0x1fc735['addClass'](_0x523423(_0x39d373['classes']),_0x5a4b25),(_0x5f36e2,_0x5b4097,_0x6fdb2e)=>_0x6fdb2e['removeClass'](_0x523423(_0x5b4097['classes']),_0x5f36e2));},{'priority':'highest'}),_0x511309['descriptionFactory']['registerDescriptionCallback'](_0x56230a=>{if('insertion'!=_0x56230a['type']&&'deletion'!=_0x56230a['type'])return;const _0x52007f=_0x56230a['getContainedElement']();if(null!=_0x52007f&&_0x52007f['is']('element','table')){if('insertion'==_0x56230a['type']){const _0x23bec8=_0x56230a['getItems']()['filter'](_0x3d0f61=>_0x3d0f61['is']('$textProxy'))['map'](_0x2ce136=>_0x2ce136['data']);if(_0x23bec8['length'])return{'type':'insertion','content':o(_0x38a5f2,'*Insert:*\x20%0',o(_0x38a5f2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x23bec8['join']('\x20')+'\x22'))};}if('deletion'==_0x56230a['type']){const _0xcbcbee=_0x56230a['getItems']()['filter'](_0x43018d=>_0x43018d['is']('$textProxy'))['map'](_0x443bb2=>_0x443bb2['data']);if(_0xcbcbee['length'])return{'type':'deletion','content':o(_0x38a5f2,'*Remove:*\x20%0',o(_0x38a5f2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xcbcbee['join']('\x20')+'\x22'))};}}}),_0x511309['descriptionFactory']['registerDescriptionCallback'](_0xb1cfc3=>{if('tableRow'==_0xb1cfc3['subType']){const _0xc4dd1b=_0xb1cfc3['getItems']()['filter'](_0x24cb99=>_0x24cb99['is']('$textProxy'))['map'](_0x5b808b=>_0x5b808b['data']),_0x2319ac=this['_getSuggestionCoords'](_0xb1cfc3),_0x50c1ae=_0x2319ac['maxRow']-_0x2319ac['minRow']+0x1;if('insertion'==_0xb1cfc3['type'])return _0xc4dd1b['length']?{'type':'insertion','content':o(_0x38a5f2,'*Insert:*\x20%0',o(_0x38a5f2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x50c1ae,'\x22'+_0xc4dd1b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x38a5f2,'*Insert:*\x20%0',o(_0x38a5f2,'ELEMENT_TABLE_ROW',_0x50c1ae))};if('deletion'==_0xb1cfc3['type'])return _0xc4dd1b['length']?{'type':'deletion','content':o(_0x38a5f2,'*Remove:*\x20%0',o(_0x38a5f2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x50c1ae,'\x22'+_0xc4dd1b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x38a5f2,'*Remove:*\x20%0',o(_0x38a5f2,'ELEMENT_TABLE_ROW',_0x50c1ae))};}if('tableColumn'==_0xb1cfc3['subType']){const _0x2fa0be=_0xb1cfc3['getItems']()['filter'](_0x59c9de=>_0x59c9de['is']('$textProxy'))['map'](_0x18493e=>_0x18493e['data']),_0x4282d1=this['_getSuggestionCoords'](_0xb1cfc3),_0x31953f=_0x4282d1['maxColumn']-_0x4282d1['minColumn']+0x1;if('insertion'==_0xb1cfc3['type'])return _0x2fa0be['length']?{'type':'insertion','content':o(_0x38a5f2,'*Insert:*\x20%0',o(_0x38a5f2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31953f,'\x22'+_0x2fa0be['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x38a5f2,'*Insert:*\x20%0',o(_0x38a5f2,'ELEMENT_TABLE_COLUMN',_0x31953f))};if('deletion'==_0xb1cfc3['type'])return _0x2fa0be['length']?{'type':'deletion','content':o(_0x38a5f2,'*Remove:*\x20%0',o(_0x38a5f2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x31953f,'\x22'+_0x2fa0be['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x38a5f2,'*Remove:*\x20%0',o(_0x38a5f2,'ELEMENT_TABLE_COLUMN',_0x31953f))};}}),_0x511309['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1569a2),_0x511309['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1569a2),_0x511309['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x718d87),_0x511309['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x718d87),_0x511309['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x84f1b3),_0x511309['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x84f1b3),_0x511309['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1285b3),_0x511309['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1285b3);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3c571c=this['editor'],_0x30f0cd=_0x3c571c['model']['document']['selection'];return(_0x33fe17,_0x4a2829)=>{_0x3c571c['model']['change'](_0x192ce3=>{const {commandName:_0x570762,commandParams:_0x37c223}=_0x4a2829;let _0x2ca2d0=_0x33fe17[0x0]['end']['nodeBefore'];_0x37c223&&_0x37c223[0x0]&&!0x1===_0x37c223[0x0]['forceValue']&&(_0x2ca2d0=_0x33fe17[0x0]['start']['nodeAfter']);const _0x497c6a=_0x192ce3['createRangeIn'](_0x2ca2d0);if('$graveyard'==_0x497c6a['root']['rootName'])return;const _0x42c0db=Array['from'](_0x30f0cd['getRanges']())['map'](_0xbb6a19=>_0x1f2c9d['fromRange'](_0xbb6a19));_0x192ce3['setSelection'](_0x497c6a),_0x3c571c['commands']['get'](_0x570762)['refresh'](),_0x37c223['push']({'forceDefaultExecution':!0x0}),_0x3c571c['execute'](_0x570762,..._0x37c223);const _0x5ad3f4=_0x42c0db['filter'](_0x1914f1=>'$graveyard'!=_0x1914f1['root']['rootName']);_0x5ad3f4['length']>0x0&&_0x192ce3['setSelection'](_0x5ad3f4);for(const _0x34de57 of _0x42c0db)_0x34de57['detach']();});};}['_getCoordsForCells'](_0x2f407f){const _0x29969b=this['editor']['plugins']['get']('TableUtils');let _0x138e72=Number['MAX_SAFE_INTEGER'],_0x166db9=Number['MIN_SAFE_INTEGER'],_0xa81cd1=Number['MAX_SAFE_INTEGER'],_0x5f10ec=Number['MIN_SAFE_INTEGER'];for(const _0x1104ad of _0x2f407f){if('$graveyard'==_0x1104ad['root']['rootName'])continue;const {row:_0x2d583c,column:_0x5c3332}=_0x29969b['getCellLocation'](_0x1104ad),_0xdd1c05=_0x1104ad['hasAttribute']('rowspan')?_0x1104ad['getAttribute']('rowspan')-0x1:0x0,_0x4190a2=_0x1104ad['hasAttribute']('colspan')?_0x1104ad['getAttribute']('colspan')-0x1:0x0;_0x138e72=_0x2d583c<_0x138e72?_0x2d583c:_0x138e72,_0x166db9=_0x2d583c+_0xdd1c05>_0x166db9?_0x2d583c+_0xdd1c05:_0x166db9,_0xa81cd1=_0x5c3332<_0xa81cd1?_0x5c3332:_0xa81cd1,_0x5f10ec=_0x5c3332+_0x4190a2>_0x5f10ec?_0x5c3332+_0x4190a2:_0x5f10ec;}return{'minRow':_0x138e72,'maxRow':_0x166db9,'minColumn':_0xa81cd1,'maxColumn':_0x5f10ec};}['_setupColumnsRowsFixing'](){const _0x3c55e1=this['editor'],_0x36ab9c=_0x3c55e1['plugins']['get']('TrackChangesEditing'),_0x387ce4=_0x3c55e1['plugins']['get']('TableUtils');_0x3c55e1['model']['document']['on']('change:data',()=>{const _0x2a5052=Array['from'](_0x3c55e1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x398eff,data:_0x25cc76}of _0x2a5052){const {group:_0x74aa86,id:_0x3c075c,subType:_0x447a26}=_0x36ab9c['_splitMarkerName'](_0x398eff);if('suggestion'!=_0x74aa86)continue;if(null!=_0x25cc76['oldRange'])continue;const _0x1459b3=_0x36ab9c['getSuggestion'](_0x3c075c);this['_tablePostFixingSubtypes']['includes'](_0x447a26)&&this['_tableSuggestions']['add'](_0x1459b3);}},{'priority':'low'});const _0x40c54e=(_0x29002c,_0xcf3e7c)=>{let _0x47ba9a=!0x1;const _0x19d3ae=_0xcf3e7c['createRangeOn'](_0x29002c),_0x2bb0d2=_0x29002c['findAncestor']('table'),_0x37cd18=_0x387ce4['getCellLocation'](_0x29002c);for(const _0x4e07db of this['_tableSuggestions']){const _0x199d83=_0x4e07db['subType'],_0xc86b35=_0x199d83['startsWith']('tablePaste'),_0x5388dd=_0x199d83['substr'](_0xc86b35?0xa:0x5),_0x5513e3=_0x5388dd['toLowerCase'](),_0x2abb62=_0x5513e3['substr'](0x0,0x3)+'span',_0x1ec9dc='min'+_0x5388dd,_0x2a2c91='max'+_0x5388dd;if(!_0x4e07db['isInContent'])continue;if(_0x2bb0d2!=_0x4e07db['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4e07db['isIntersectingWithRange'](_0x19d3ae))continue;const _0x3db6dd=_0x29002c['hasAttribute'](_0x2abb62)?_0x29002c['getAttribute'](_0x2abb62)-0x1:0x0,_0x90fc42=this['_getSuggestionCoords'](_0x4e07db),_0x1af921=_0x90fc42[_0x1ec9dc],_0x29bf10=_0x90fc42[_0x2a2c91];_0x1af921<=_0x37cd18[_0x5513e3]&&_0x37cd18[_0x5513e3]+_0x3db6dd<=_0x29bf10&&(_0x4e07db['addRange'](_0x19d3ae),_0x47ba9a=!0x0);}return _0x47ba9a;};_0x3c55e1['model']['document']['registerPostFixer'](_0x4d2b0a=>{let _0x58c848=!0x1;for(const _0x13dc19 of _0x3c55e1['model']['document']['differ']['getChanges']())if('insert'==_0x13dc19['type']){if('tableRow'==_0x13dc19['name']){for(const _0x40c96a of _0x13dc19['position']['nodeAfter']['getChildren']())_0x58c848=_0x58c848||_0x40c54e(_0x40c96a,_0x4d2b0a);}else'tableCell'==_0x13dc19['name']&&(_0x58c848=_0x58c848||_0x40c54e(_0x13dc19['position']['nodeAfter'],_0x4d2b0a));}return _0x58c848;});}['_getSuggestionCoords'](_0x3dd095){return this['_getCoordsForCells'](_0x3dd095['getRanges']()['map'](_0x279ec0=>_0x279ec0['start']['nodeAfter']));}}function Ne(_0x4c6bfd){return Array['from'](new Set(_0x4c6bfd)['values']());}class Nt extends _0x4d70a7{static get['requires'](){return[Ct];}['afterInit'](){const _0x56f148=this['editor'],_0x4c07e6=_0x56f148['model']['document']['selection'],_0x493db8=_0x56f148['locale'];if(!_0x56f148['plugins']['has']('TableEditing'))return;const _0x1be24b=_0x56f148['plugins']['get']('TrackChangesEditing'),_0x14b390=_0x56f148['plugins']['get']('TableUtils'),_0x3534b0=_0x56f148['plugins']['get'](Ct);_0x3534b0['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1be24b['enableCommand']('mergeTableCells',()=>{const _0x302be9=_0x14b390['getSelectionAffectedTableCells'](_0x56f148['model']['document']['selection']);_0x56f148['model']['change'](()=>{_0x1be24b['markMultiRangeBlockFormat'](_0x302be9,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x56f148['commands']['get']('mergeTableCells')['on']('execute',(_0x57590a,_0x5d2ef9)=>{_0x56f148['commands']['get']('trackChanges')['value']&&(_0x5d2ef9['length']>0x0&&_0x5d2ef9[_0x5d2ef9['length']-0x1]&&_0x5d2ef9[_0x5d2ef9['length']-0x1]['forceDefaultExecution']||_0x1be24b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x57590a['stop']());},{'priority':'highest'});for(const _0x144ac6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x34dc81=_0x56f148['commands']['get'](_0x144ac6);_0x1be24b['enableCommand'](_0x144ac6,()=>{const _0x2ff895=_0x56f148['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x44e041=>_0x44e041['is']('element','tableCell')),_0x2b5926=_0x34dc81['value'];_0x56f148['model']['change'](()=>{_0x1be24b['markMultiRangeBlockFormat']([_0x2ff895,_0x2b5926],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5ace92 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x28d2a8=_0x56f148['commands']['get'](_0x5ace92);_0x1be24b['enableCommand'](_0x5ace92,()=>{const _0x30f97a=_0x14b390['getSelectionAffectedTableCells'](_0x56f148['model']['document']['selection'])[0x0],_0x95a753=_0x30f97a['findAncestor']('table'),{column:_0xa5f00c,row:_0xa5261b}=_0x14b390['getCellLocation'](_0x30f97a);let _0x565bf9=[];if('horizontally'==_0x28d2a8['direction']){const _0x4eab88=_0x14b390['createTableWalker'](_0x95a753,{'startRow':_0xa5261b,'endRow':_0xa5261b,'includeAllSlots':!0x0});_0x565bf9=Array['from'](_0x4eab88)['map'](_0x56a2f7=>_0x56a2f7['cell']);}else{const _0x2e1fdf=_0x14b390['createTableWalker'](_0x95a753,{'column':_0xa5f00c,'includeAllSlots':!0x0});_0x565bf9=Array['from'](_0x2e1fdf)['map'](_0x54d614=>_0x54d614['cell']);}_0x56f148['model']['change'](_0x28c576=>{_0x1be24b['markBlockFormat'](_0x28c576['createRangeOn'](_0x30f97a),{'commandName':_0x5ace92,'commandParams':[]},_0x565bf9,_0x5ace92);});});}_0x1be24b['descriptionFactory']['registerDescriptionCallback'](_0x4e9e97=>{if('formatBlock'!=_0x4e9e97['type']&&'formatInline'!=_0x4e9e97['type'])return;const {data:_0x212f9b}=_0x4e9e97;return _0x212f9b&&'mergeTableCells'==_0x212f9b['commandName']?{'type':'format','content':o(_0x493db8,'*Merge\x20cells*')}:void 0x0;}),_0x1be24b['descriptionFactory']['registerDescriptionCallback'](_0x35aa07=>{if('formatBlock'!=_0x35aa07['type']&&'formatInline'!=_0x35aa07['type'])return;const {data:_0x2a37ca}=_0x35aa07;return _0x2a37ca?'splitTableCellVertically'==_0x2a37ca['commandName']?{'type':'format','content':o(_0x493db8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a37ca['commandName']?{'type':'format','content':o(_0x493db8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x57c620=_0x3534b0['_acceptFormatSuggestionCallbackFactory']();for(const _0x26b673 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1be24b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x26b673,'accept',_0x57c620);for(const _0x4f40cd of['splitTableCellVertically','splitTableCellHorizontally'])_0x1be24b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4f40cd,'accept',_0x57c620);_0x1be24b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2afe60=>{_0x56f148['model']['change'](_0x154335=>{const _0xc29f24=Array['from'](_0x4c07e6['getRanges']())['map'](_0x4c86e7=>_0x1f2c9d['fromRange'](_0x4c86e7));_0x154335['setSelection'](_0x2afe60),_0x56f148['commands']['get']('mergeTableCells')['refresh'](),_0x56f148['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xedd790=_0xc29f24['filter'](_0x2ec3d7=>'$graveyard'!=_0x2ec3d7['root']['rootName']);_0xedd790['length']>0x0&&_0x154335['setSelection'](_0xedd790);for(const _0x16ee35 of _0xc29f24)_0x16ee35['detach']();});});for(const _0x7162b8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2adf33=_0x56f148['commands']['get'](_0x7162b8);_0x2adf33['on']('set:isEnabled',(_0x5a9956,_0x4d1b8d,_0x48859f)=>{if(_0x48859f){const _0x2bff00=_0x56f148['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10d3e5=>_0x10d3e5['is']('element','tableCell'));this['_areMergableCells'](_0x2adf33['value'],_0x2bff00)||(_0x5a9956['return']=!0x1,_0x5a9956['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1c5ffe=this['editor']['commands']['get']('mergeTableCells'),_0x4bc041=this['editor']['plugins']['get']('TableUtils');if(!_0x1c5ffe['isEnabled'])return!0x1;const _0x35c7a8=_0x4bc041['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x212c82 of _0x35c7a8)for(const _0x4027c7 of _0x35c7a8)if(_0x212c82!=_0x4027c7&&!this['_areMergableCells'](_0x212c82,_0x4027c7))return!0x1;return!0x0;}['_areMergableCells'](_0x50f9da,_0x4b6119){const _0x281eda=this['editor']['plugins']['get']('TrackChangesEditing'),_0x341864=this['editor']['model']['createRangeOn'](_0x50f9da),_0x48208b=this['editor']['model']['createRangeOn'](_0x4b6119),_0x11c312=new Set(),_0x29d4c1=new Set();for(const _0x27d564 of _0x281eda['getSuggestions']())if(('insertion'==_0x27d564['type']||'deletion'==_0x27d564['type']||'mergeTableCells'==_0x27d564['subType'])&&_0x27d564['isInContent']){for(const _0x408d75 of _0x27d564['getRanges']())_0x408d75['containsRange'](_0x341864,!0x0)&&_0x11c312['add'](_0x27d564['type']+':'+_0x27d564['author']['id']),_0x408d75['containsRange'](_0x48208b,!0x0)&&_0x29d4c1['add'](_0x27d564['type']+':'+_0x27d564['author']['id']);}if(_0x11c312['size']!=_0x29d4c1['size'])return!0x1;for(const _0x7e98cc of _0x11c312)if(!_0x29d4c1['has'](_0x7e98cc))return!0x1;return!0x0;}}class Dt extends _0x4d70a7{static get['requires'](){return[Ct];}['afterInit'](){const _0x4fcbc4=this['editor'];if(!_0x4fcbc4['plugins']['has']('TableEditing'))return;const _0x582dfa=_0x4fcbc4['locale'],_0x3eb1d5=_0x4fcbc4['plugins']['get']('TrackChangesEditing');_0x3eb1d5['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3eb1d5['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3eb1d5['registerBlockAttribute']('headingRows'),_0x3eb1d5['registerBlockAttribute']('headingColumns'),_0x3eb1d5['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x582dfa,'FORMAT_HEADER_ROW')),_0x3eb1d5['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x582dfa,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1cf114=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d9d0f=this['editor']['plugins']['get']('TableUtils'),_0x2a7d59=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xc1e9e0({showActiveMarker:_0x565856=!0x0,setDataAttribute:_0x2f7e97=!0x0}={}){return(_0x203838,_0x9f79db,_0xd983d)=>{const {type:_0xa1abb4,id:_0x37f821}=_0x1cf114['_splitMarkerName'](_0x9f79db['markerName']),_0x21ae48=_0x1cf114['getSuggestion'](_0x37f821),_0xb60ca8=_0x21ae48['data'];if('formatBlock'!=_0x21ae48['type']||!_0xb60ca8||'setTableColumnHeader'!=_0xb60ca8['commandName'])return;if(_0x9f79db['item'])return void _0x203838['stop']();if(!_0xd983d['consumable']['consume'](_0x9f79db['markerRange'],_0x203838['name']))return;const _0x587f10=_0x9f79db['markerRange']['start']['nodeAfter'],_0xc72db9=_0x9f79db['markerRange']['end']['nodeBefore'],_0xe45869=_0x587f10['parent']['parent'],{column:_0x24dba5}=_0x5d9d0f['getCellLocation'](_0x587f10),{column:_0x4b8edc}=_0x5d9d0f['getCellLocation'](_0xc72db9);for(let _0x566317=_0x24dba5;_0x566317<=_0x4b8edc;_0x566317++){const _0xc3b0ec=_0x5d9d0f['createTableWalker'](_0xe45869,{'column':_0x566317,'includeAllSlots':!0x1});for(const _0x939662 of _0xc3b0ec){const _0x142d02=_0x939662['cell'],_0x52350d=_0xd983d['mapper']['toViewElement'](_0x142d02);_0xd983d['writer']['addClass']('ck-suggestion-marker-'+_0xa1abb4,_0x52350d),_0x2f7e97&&_0xd983d['writer']['setAttribute']('data-suggestion',_0x37f821,_0x52350d),_0xd983d['mapper']['bindElementToMarker'](_0x52350d,_0x9f79db['markerName']),_0x565856&&(_0x1cf114['activeMarkers']['includes'](_0x9f79db['markerName'])?_0xd983d['writer']['addClass']('ck-suggestion-marker--active',_0x52350d):_0xd983d['writer']['removeClass']('ck-suggestion-marker--active',_0x52350d));}}};}_0x1cf114['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2a7d59),_0x1cf114['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2a7d59),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xc1e9e0(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45b7c8,_0x57235d,_0x4cf244)=>{_0x4cf244['options']['showSuggestionHighlights']&&_0xc1e9e0({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x45b7c8,_0x57235d,_0x4cf244);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5bd6da,_0x5c8f05,_0x4b7cf9)=>{const {type:_0x1088f7,id:_0x40b3a9}=_0x1cf114['_splitMarkerName'](_0x5c8f05['markerName']),_0xa8eab9=_0x1cf114['getSuggestion'](_0x40b3a9),_0x1a5956=_0xa8eab9['data'];if('formatBlock'!=_0xa8eab9['type']||!_0x1a5956||'setTableColumnHeader'!=_0x1a5956['commandName'])return;const _0x3053ba=_0x4b7cf9['mapper']['markerNameToElements'](_0x5c8f05['markerName']);if(_0x3053ba){for(const _0x2ce1d6 of _0x3053ba)_0x4b7cf9['writer']['removeClass']('ck-suggestion-marker-'+_0x1088f7,_0x2ce1d6),_0x4b7cf9['writer']['removeClass']('ck-suggestion-marker--active',_0x2ce1d6),_0x4b7cf9['writer']['removeAttribute']('data-suggestion',_0x2ce1d6),_0x4b7cf9['mapper']['unbindElementFromMarkerName'](_0x2ce1d6,_0x5c8f05['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1116c0=this['editor'],_0x167c22=_0x1116c0['locale'];function _0x262d20(_0x5c9400){return{'type':'format','content':o(_0x167c22,'*Format:*\x20%0',_0x5c9400)};}_0x1116c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x591645=>{if('formatBlock'!=_0x591645['type'])return;const {data:_0x230ae0}=_0x591645;if(_0x230ae0){if('setTableRowHeader'==_0x230ae0['commandName']){const _0x381a91=_0x230ae0['commandParams'][0x0]['forceValue'];return _0x262d20(o(_0x167c22,_0x381a91?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x230ae0['commandName']){const _0x55054e=_0x230ae0['commandParams'][0x0]['forceValue'];return _0x262d20(o(_0x167c22,_0x55054e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x4a7c03=>[_0x4a7c03,null]));class Mt extends _0x4d70a7{static get['requires'](){return[Ct];}['afterInit'](){const _0x527f0f=this['editor'];if(!_0x527f0f['plugins']['has']('TableClipboard'))return;const _0x8d406b=_0x527f0f['plugins']['get']('TrackChangesEditing'),_0x568d97=_0x527f0f['plugins']['get']('TableUtils'),_0x2f32e1=_0x527f0f['plugins']['get'](Ct),_0x21774b=_0x527f0f['plugins']['get']('TableClipboard');_0x2f32e1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x527f0f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x527f0f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4807f1=null;_0x527f0f['model']['on']('insertContent',(_0xcdca0e,_0x4e7146)=>{const [_0x44a57b,_0x49ebfe]=_0x4e7146,_0x5d2c62=_0x4e7146[_0x4e7146['length']-0x1];_0x5d2c62&&_0x5d2c62['forceDefaultExecution']||_0x8d406b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x224e4e,_0x38b870,_0x522119,_0x19783c,_0x2ab0ee){if(_0x38b870&&!_0x38b870['is']('documentSelection'))return!0x1;const _0x38ba36=_0x2ab0ee['getTableIfOnlyTableInContent'](_0x224e4e,_0x522119);if(!_0x38ba36||!Ue(_0x38ba36,void 0x0,_0x19783c))return!0x1;const _0x5bbb46=_0x19783c['getSelectionAffectedTableCells'](_0x522119['document']['selection']);if(!_0x5bbb46['length'])return!0x1;const _0x3471e8=_0x5bbb46[0x0]['findAncestor']('table'),_0x4bb613=_0x19783c['getRowIndexes'](_0x5bbb46),_0x508e22=_0x19783c['getColumnIndexes'](_0x5bbb46),_0x44d460={'startRow':_0x4bb613['first'],'endRow':_0x4bb613['last'],'startColumn':_0x508e22['first'],'endColumn':_0x508e22['last']};return 0x1==_0x5bbb46['length']&&(_0x44d460['endRow']+=_0x19783c['getRows'](_0x38ba36)-0x1,_0x44d460['endColumn']+=_0x19783c['getColumns'](_0x38ba36)-0x1),Ue(_0x3471e8,_0x44d460,_0x19783c);}(_0x44a57b,_0x49ebfe,_0x527f0f['model'],_0x568d97,_0x21774b)&&(_0xcdca0e['stop'](),_0x4807f1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x527f0f['model']['change'](()=>{_0x527f0f['model']['insertContent'](_0x4e7146[0x0],_0x4e7146[0x1],_0x4e7146[0x2],{'forceDefaultExecution':!0x0});const _0x5e00cc=_0x4a76d0(),{rowInsertionRanges:_0x5b89f8,columnInsertionRanges:_0x468c0a,insertionRanges:_0x4cf77d,deletionRanges:_0xb4cb18,cells:_0x55b6db}=_0x4807f1;_0x5b89f8['length']&&_0x8d406b['markMultiRangeInsertion'](_0x5b89f8,'tablePasteRow',{'tablePasteChainId':_0x5e00cc}),_0x468c0a['length']&&_0x8d406b['markMultiRangeInsertion'](_0x468c0a,'tablePasteColumn',{'tablePasteChainId':_0x5e00cc}),_0x4cf77d['length']&&(_0x8d406b['markMultiRangeInsertion'](_0x4cf77d,'tablePaste',{'tablePasteChainId':_0x5e00cc,'skipNestingCheck':!0x0}),_0x4cf77d['forEach'](_0x51b9a6=>_0x51b9a6['detach']?.())),_0xb4cb18['length']&&(_0x8d406b['markMultiRangeDeletion'](_0xb4cb18,'tablePaste',{'tablePasteChainId':_0x5e00cc,'skipNestingCheck':!0x0}),_0xb4cb18['forEach'](_0x2e19a7=>_0x2e19a7['detach']?.()));const _0x35e236=_0x8d406b['markMultiRangeBlockFormat'](_0x55b6db['map'](({element:_0x2f7350})=>_0x2f7350),{'formatGroupId':_0x4a76d0()},[],'tablePasteCell',{'tablePasteChainId':_0x5e00cc});if(_0x35e236){const _0x2a9a83=_0x35e236['getMarkers'](),_0x584804=[];for(const {element:_0x532a2f,attributes:_0x4c0a5b}of _0x55b6db){if(!_0x4c0a5b)continue;const _0x4b8729=_0x527f0f['model']['createRangeOn'](_0x532a2f),_0x5038bb=_0x2a9a83['find'](_0x11881d=>_0x11881d['getRange']()['isEqual'](_0x4b8729));_0x5038bb&&_0x584804['push']([_0x5038bb['name'],_0x4c0a5b]);}_0x584804['length']&&_0x35e236['setAttribute']('markerAttributes',Object['fromEntries'](_0x584804));}_0x4807f1=null;}));},{'priority':_0x5c7181['high']+0xa}),_0x527f0f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2e9eb9,_0x2c03c4)=>{const [_0x2e763a,_0x2b632d,,_0x32be91]=_0x2c03c4;if(!_0x4807f1)return;_0x2e9eb9['stop']();const _0x5e0d1c=_0x2e763a['cell'],_0x4a99bc=_0x2b632d,_0x5b74ac=Oe(_0x5e0d1c),_0x2c21e3=Oe(_0x4a99bc);_0x2e9eb9['return']=_0x5e0d1c;let _0x462da9=null,_0x3365ce=null;if(_0x2c21e3||_0x5b74ac){if(_0x5b74ac&&!_0x2c21e3){_0x32be91['remove'](_0x5e0d1c['getChild'](0x0));for(const _0x543745 of Array['from'](_0x4a99bc['getChildren']()))_0x32be91['insert'](_0x543745,_0x5e0d1c,'end');const _0x853cbd=_0x4807f1['rowInsertionIndexes']['includes'](_0x2e763a['row']),_0x42fed8=_0x4807f1['columnInsertionIndexes']['includes'](_0x2e763a['column']);_0x853cbd||_0x42fed8||(_0x462da9=_0x1f2c9d['fromRange'](_0x32be91['createRangeIn'](_0x5e0d1c)));}else _0x2c21e3&&!_0x5b74ac&&(_0x3365ce=_0x32be91['createRangeIn'](_0x5e0d1c));}else{const _0x57b5b7=_0x32be91['createElement']('tableCellSuggestion'),_0x69c45=_0x32be91['createElement']('tableCellSuggestion');_0x32be91['wrap'](_0x32be91['createRangeIn'](_0x5e0d1c),_0x69c45),_0x32be91['insert'](_0x57b5b7,_0x5e0d1c,0x0);for(const _0x792ebe of Array['from'](_0x4a99bc['getChildren']()))_0x32be91['insert'](_0x792ebe,_0x57b5b7,'end');_0x462da9=_0x1f2c9d['fromRange'](_0x32be91['createRangeOn'](_0x57b5b7)),_0x3365ce=_0x1f2c9d['fromRange'](_0x32be91['createRangeOn'](_0x69c45));}const _0x3383a7=Array['from'](_0x4a99bc['getAttributes']())['filter'](([_0x353017])=>Be['includes'](_0x353017));_0x4807f1['cells']['push']({'element':_0x5e0d1c,'attributes':_0x3383a7['length']?Object['fromEntries'](_0x3383a7):null}),_0x462da9&&_0x4807f1['insertionRanges']['push'](_0x462da9),_0x3365ce&&_0x4807f1['deletionRanges']['push'](_0x3365ce);},{'priority':'high'}),_0x568d97['on']('insertColumns',(_0x3f6718,_0x54fb23)=>{const [_0x41fc6d,_0x54baf8={}]=_0x54fb23;if(!_0x4807f1)return;const _0x4ead6c=_0x54baf8['at']||0x0,_0x171dfd=_0x54baf8['columns']||0x1;_0x4807f1['columnInsertionIndexes']=new Array(_0x171dfd)['fill'](_0x4ead6c)['map']((_0x4aa48b,_0x5616a3)=>_0x4aa48b+_0x5616a3);for(const {cell:_0x3075d4}of _0x568d97['createTableWalker'](_0x41fc6d,{'startColumn':_0x4ead6c,'endColumn':_0x4ead6c+_0x171dfd-0x1}))_0x4807f1['columnInsertionRanges']['push'](_0x527f0f['model']['createRangeOn'](_0x3075d4));},{'priority':'low'}),_0x568d97['on']('insertRows',(_0x236f54,_0x1c0640)=>{const [_0x3ee14c,_0x320c63={}]=_0x1c0640;if(!_0x4807f1)return;const _0x516338=_0x320c63['at']||0x0,_0x2e3f7b=_0x320c63['rows']||0x1;_0x4807f1['rowInsertionIndexes']=new Array(_0x2e3f7b)['fill'](_0x516338)['map']((_0x2cf35a,_0x180919)=>_0x2cf35a+_0x180919);for(const {cell:_0x5d1348}of _0x568d97['createTableWalker'](_0x3ee14c,{'startRow':_0x516338,'endRow':_0x516338+_0x2e3f7b-0x1}))_0x4807f1['rowInsertionRanges']['push'](_0x527f0f['model']['createRangeOn'](_0x5d1348));},{'priority':'low'}),_0x8d406b['descriptionFactory']['registerDescriptionCallback'](_0x3d1721=>{if(_0x3d1721['subType']&&_0x3d1721['subType']['startsWith']('tablePaste'))return _0x3d1721['previous']?{}:{'type':'insertion','content':o(_0x527f0f['locale'],'*Replace\x20table\x20cells*')};});const _0xe53f15=()=>!0x1;for(const _0x32802d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x8d406b['_suggestionFactory']['registerCustomCallback']('insertion',_0x32802d,'join',_0xe53f15),_0x8d406b['_suggestionFactory']['registerCustomCallback']('deletion',_0x32802d,'join',_0xe53f15),_0x8d406b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32802d,'join',_0xe53f15);_0x8d406b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xe53f15),_0x8d406b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x45f49f,_0xe1460,_0x1e7faa)=>{const _0x410c16=_0x45f49f['map'](_0x514c04=>_0x514c04['getContainedElement']())['filter'](_0x2ed077=>_0x2ed077),_0x52db4e=new Map(_0x410c16['map'](_0x283ce7=>[_0x283ce7,null]));if(_0x4807f1){for(const {element:_0x4bd5bd,attributes:_0x1d578a}of _0x4807f1['cells'])_0x1d578a&&_0x52db4e['set'](_0x4bd5bd,_0x1d578a);}else{if(_0x1e7faa&&_0x1e7faa['markerAttributes'])for(const [_0x17b98d,_0x148639]of Object['entries'](_0x1e7faa['markerAttributes'])){const _0x631a84=_0x527f0f['model']['markers']['get'](_0x17b98d),_0x40309b=_0x631a84?_0x631a84['getRange']()['getContainedElement']():null;_0x40309b&&_0x52db4e['set'](_0x40309b,_0x148639);}}_0x527f0f['model']['change'](_0x3eda75=>{for(const [_0x4828ac,_0x545bac]of _0x52db4e)_0x3eda75['setAttributes']({...xe,..._0x545bac},_0x4828ac);});});const _0x59a9b4=(_0x1df481,_0x173c37)=>{_0x8d406b['_suggestionFactory']['registerCustomCallback'](_0x1df481,'tablePaste',_0x173c37,(_0x10f6e7,_0x17b2d2,_0x3eac0d)=>{_0x527f0f['model']['change'](_0x1fb0b9=>{const _0x3eef79=[];for(const _0x384df3 of _0x10f6e7){const _0x261c67=_0x384df3['start']['nodeAfter'];_0x261c67['is']('element','tableCellSuggestion')&&_0x3eef79['push'](_0x261c67);}_0x8d406b['_suggestionFactory']['getSuggestionCallback'](_0x1df481,null,_0x173c37)(_0x10f6e7,_0x17b2d2,_0x3eac0d);for(const _0x3490b6 of _0x3eef79)'$graveyard'!=_0x3490b6['root']['rootName']&&_0x1fb0b9['unwrap'](_0x3490b6);});});};_0x59a9b4('insertion','accept'),_0x59a9b4('insertion','discard'),_0x59a9b4('deletion','accept'),_0x59a9b4('deletion','discard'),_0x8d406b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x20f2cd=>{const _0x5c2126=_0x20f2cd['map'](_0x2cc6f1=>_0x2cc6f1['getContainedElement']()),_0x35fb20=_0x5c2126[0x0]['findAncestor']('table'),{minRow:_0x57c384,maxRow:_0x565da1}=_0x2f32e1['_getCoordsForCells'](_0x5c2126);_0x568d97['removeRows'](_0x35fb20,{'at':_0x57c384,'rows':_0x565da1-_0x57c384+0x1});}),_0x8d406b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3d3816=>{const _0x58bd04=_0x3d3816['map'](_0x5d1a30=>_0x5d1a30['getContainedElement']()),_0x54c5f5=_0x58bd04[0x0]['findAncestor']('table'),{minColumn:_0x2bc348,maxColumn:_0x5917d7}=_0x2f32e1['_getCoordsForCells'](_0x58bd04);_0x568d97['removeColumns'](_0x54c5f5,{'at':_0x2bc348,'columns':_0x5917d7-_0x2bc348+0x1});});const _0x32bcca=(_0x562e26,_0x475697)=>{if(!_0x475697['subType']||!_0x475697['subType']['startsWith']('tablePaste'))return;const _0x1a6187=_0x475697['attributes']['tablePasteChainId'],_0x26a0f1=_0x8d406b['getSuggestions']()['filter'](_0x111056=>_0x111056['isInContent']&&_0x111056['attributes']&&_0x111056['attributes']['tablePasteChainId']==_0x1a6187);_0x26a0f1['length']&&_0x475697['getAllAdjacentSuggestions']()['length']!=_0x26a0f1['length']&&_0x26a0f1['reduce']((_0x440d50,_0x4b9f67)=>(_0x440d50['next']=_0x4b9f67,_0x4b9f67['previous']=_0x440d50,_0x4b9f67));};function _0x168410(_0x11eef7,_0x5c8ab6=!0x0){const {id:_0x2e2d03,authorId:_0x5bfa35}=_0x8d406b['_splitMarkerName'](_0x11eef7['markerName']),_0x427a83=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4116e1=_0x8d406b['activeMarkers']['includes'](_0x11eef7['markerName']);return _0x4116e1&&_0x427a83['push']('ck-suggestion-marker--active'),{'classes':_0x427a83,'attributes':{'data-suggestion':_0x2e2d03,'data-author-id':_0x5bfa35},'priority':_0x4116e1&&_0x5c8ab6?0xbc2:0xbb8};}_0x8d406b['on']('suggestionLoaded',_0x32bcca,{'priority':'high'}),_0x8d406b['on']('suggestionUnloaded',_0x32bcca,{'priority':'high'}),_0x527f0f['model']['document']['registerPostFixer'](()=>{let _0x19887e=!0x1;const _0x18c1a4=Array['from'](_0x527f0f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18ed66,data:_0x277252}of _0x18c1a4){const {group:_0x1adb98,type:_0x2672e8,id:_0x359e29}=_0x8d406b['_splitMarkerName'](_0x18ed66);if('suggestion'!=_0x1adb98||'deletion'!=_0x2672e8||_0x277252['oldRange'])continue;if(!_0x8d406b['hasSuggestion'](_0x359e29))continue;const _0x449cea=_0x8d406b['getSuggestion'](_0x359e29)['getRanges'](),_0x208e12=_0x527f0f['plugins']['get']('Users')['me'];for(const _0x2035e6 of _0x8d406b['getSuggestions']()){if(!_0x2035e6['isInContent']||_0x2035e6['author']!=_0x208e12)continue;if('formatBlock'!=_0x2035e6['type']||'tablePasteCell'!=_0x2035e6['subType'])continue;if(_0x2035e6['getRanges']()['every'](_0x457413=>_0x449cea['some'](_0x1d6584=>_0x1d6584['containsRange'](_0x457413,!0x0)))){for(const _0x5995e6 of _0x2035e6['getAllAdjacentSuggestions']())_0x5995e6['isInContent']&&(_0x5995e6['discard'](),_0x19887e=!0x0);}}}return _0x19887e;}),_0x527f0f['model']['document']['registerPostFixer'](_0x3fcb1c=>{const _0x4c2161=_0x527f0f['commands']['get']('redo');if(!_0x4c2161||!_0x4c2161['_createdBatches']['has'](_0x3fcb1c['batch']))return!0x1;let _0x33be51=!0x1;const _0x5eec40=_0x527f0f['plugins']['get']('Users')['me'],_0x4c077d=_0x527f0f['model']['document']['differ']['getChanges'](),_0x4a276f=Array['from'](_0x527f0f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4e0468,data:_0x164553})=>{const {group:_0x955c29,subType:_0x259837,authorId:_0x36c276}=_0x8d406b['_splitMarkerName'](_0x4e0468);return'suggestion'==_0x955c29&&'tablePaste'==_0x259837&&_0x36c276==_0x5eec40['id']&&!_0x164553['oldRange'];});for(const _0x4bc0ef of _0x4c077d){if('insert'!=_0x4bc0ef['type']||'tableCellSuggestion'!=_0x4bc0ef['name']||0x1!=_0x4bc0ef['length'])continue;const _0xfd505=_0x3fcb1c['createRange'](_0x4bc0ef['position'],_0x4bc0ef['position']['getShiftedBy'](0x1));if(!_0x4a276f['find'](({data:_0x29843b})=>_0x29843b['newRange']['isEqual'](_0xfd505))){for(const {name:_0x49678d,data:_0x2d2968}of _0x4a276f)if(_0xfd505['containsRange'](_0x2d2968['newRange'])){_0x3fcb1c['updateMarker'](_0x49678d,{'range':_0xfd505}),_0x33be51=!0x0;break;}}}return _0x33be51;}),_0x527f0f['model']['document']['registerPostFixer'](_0x48e7e1=>{let _0x58ceee=!0x1;const _0x1ffdd8=_0x527f0f['plugins']['get']('Users')['me'],_0x4eeb4d=_0x8d406b['getSuggestions']()['filter'](_0x4ccf50=>_0x4ccf50['isInContent']&&_0x4ccf50['author']==_0x1ffdd8),_0x16eb22=new Set(),_0x559fee=new Set();for(const _0x567891 of _0x4eeb4d)if('tablePaste'==_0x567891['subType'])for(const _0x1ef25c of _0x567891['getMarkers']()){const _0x130ca7=_0x1ef25c['getRange']()['getContainedElement']();if(_0x130ca7){if(_0x130ca7['is']('element','tableCellSuggestion')&&Oe(_0x130ca7)){_0x567891['removeMarker'](_0x1ef25c['name']),_0x16eb22['add'](_0x130ca7),_0x58ceee=!0x0;const _0x1dbe4e=_0x130ca7['nextSibling'],_0x1f7db9=_0x130ca7['previousSibling'],_0x3ab7c4=_0x1dbe4e&&_0x1dbe4e['is']('element','tableCellSuggestion'),_0x3cf87e=_0x1f7db9&&_0x1f7db9['is']('element','tableCellSuggestion');_0x3ab7c4&&!_0x16eb22['has'](_0x1dbe4e)&&_0x559fee['add'](_0x1dbe4e),_0x3cf87e&&!_0x16eb22['has'](_0x1f7db9)&&_0x559fee['add'](_0x1f7db9);}else _0x130ca7['is']('element','paragraph')&&_0x130ca7['isEmpty']&&(_0x567891['removeMarker'](_0x1ef25c['name']),_0x58ceee=!0x0);}}else{if('tablePasteCell'==_0x567891['subType']){if(!_0x567891['attributes']||!_0x567891['attributes']['tablePasteChainId'])continue;const _0x288dc5=_0x567891['attributes']['markerAttributes'];if(_0x288dc5&&Object['keys'](_0x288dc5)['length'])continue;const _0xebcf25=_0x567891['attributes']['tablePasteChainId'];let _0x5ccef1=!0x0,_0x2570c2=!0x0;for(const _0x2dc8d2 of _0x4eeb4d)if(_0x2dc8d2['subType']&&_0x2dc8d2['subType']['startsWith']('tablePaste')){if(!_0x2dc8d2['attributes']['tablePasteChainId']){_0x2570c2=!0x1;break;}if(_0x2dc8d2['id']!=_0x567891['id']&&_0x2dc8d2['attributes']['tablePasteChainId']==_0xebcf25){_0x5ccef1=!0x1;break;}}_0x2570c2&&_0x5ccef1&&(_0x567891['removeMarkers'](),_0x58ceee=!0x0);}}for(const _0x3958cf of _0x16eb22)_0x48e7e1['remove'](_0x3958cf);for(const _0x5e9ebe of _0x559fee)_0x48e7e1['unwrap'](_0x5e9ebe);return _0x58ceee;}),_0x527f0f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x230b98=>_0x168410(_0x230b98),'converterPriority':'high'}),_0x527f0f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x352468,_0xa8c413)=>_0xa8c413['options']['showSuggestionHighlights']?_0x168410(_0x352468,!0x1):null,'converterPriority':'high'});const _0x90fc3e=_0x527f0f['editing']['view'];this['listenTo'](_0x90fc3e['document'],'clipboardOutput',(_0x16a855,_0x5cb619)=>{const _0x115094=[];for(const _0x4d41b6 of _0x90fc3e['createRangeIn'](_0x5cb619['content'])['getItems']())_0x4d41b6['is']('element','suggestion-td')&&_0x115094['push'](_0x4d41b6);_0x90fc3e['change'](_0x545160=>{for(const _0xdc8596 of _0x115094)_0x545160['move'](_0x545160['createRangeIn'](_0xdc8596),_0x545160['createPositionBefore'](_0xdc8596)),_0x545160['remove'](_0xdc8596);});});}}function Oe(_0x40ad10){if(_0x40ad10['isEmpty'])return!0x0;const _0x38bcbe=_0x40ad10['getChild'](0x0);return _0x38bcbe['is']('element','paragraph')&&_0x38bcbe['isEmpty'];}function Ue(_0x4fa79c,_0x43ab6b={},_0x1c997f){for(const {isAnchor:_0x48cb60,cellHeight:_0x354cd1,cellWidth:_0x1dcc23}of _0x1c997f['createTableWalker'](_0x4fa79c,{'includeAllSlots':!0x0,..._0x43ab6b}))if(!_0x48cb60||0x1!=_0x354cd1||0x1!=_0x1dcc23)return!0x1;return!0x0;}class $t extends _0x4d70a7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x145343=this['editor']['plugins']['get']('TrackChangesEditing');_0x145343['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x145343['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x145343['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x145343['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x145343['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x145343['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1276f0,_0xc798bb){const _0x2e7b99=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a05b4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x8a62f6=_0xc798bb['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1418ae=_0x3a05b4['getColumnGroupElement'](_0x8a62f6);let _0x36f6fc=_0x1418ae?_0x3a05b4['getTableColumnsWidths'](_0x1418ae):null,_0x3df608=_0x8a62f6['getAttribute']('tableWidth')||null;const _0x503a09=_0xc798bb['tableWidth']||_0x3df608,_0x34a7d6=_0xc798bb['columnWidths']||_0x36f6fc,_0xfa01d0=this['editor']['plugins']['get']('Users')['me'];for(const _0x118173 of _0x2e7b99['getSuggestions']()){const _0x24c0e0=_0x118173['getContainedElement']();if('resizeTable'===_0x118173['subType']&&_0x24c0e0===_0x8a62f6){_0x118173['author']!==_0xfa01d0&&_0x118173['discard']();const _0x5a19f5=_0x118173['data']['commandParams'];_0x3df608=_0x5a19f5[0x0]['tableWidth'],_0x36f6fc=_0x5a19f5[0x0]['columnWidths'];break;}}_0x1276f0({'table':_0x8a62f6,'tableWidth':_0x503a09,'columnWidths':_0x34a7d6}),_0x2e7b99['markBlockFormat'](_0x8a62f6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3df608,'columnWidths':_0x36f6fc}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x545e28){if('formatBlock'!=_0x545e28['type']&&'formatInline'!=_0x545e28['type'])return;const {data:_0x5da989}=_0x545e28;if(_0x5da989&&'resizeTable'===_0x5da989['formatGroupId']){const _0x527d72='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x527d72)};}}}class Bt extends _0x4d70a7{['afterInit'](){const _0x565124=this['editor'];_0x565124['plugins']['has']('Template')&&_0x565124['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x4d70a7{['afterInit'](){const _0x23fcaf=this['editor'];if(!_0x23fcaf['commands']['get']('insertTableOfContents'))return;_0x23fcaf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x311157=_0x23fcaf['plugins']['get']('TrackChangesEditing'),_0x52d47b=_0x23fcaf['locale'];_0x311157['descriptionFactory']['registerElementLabel']('tableOfContents',_0x10e4ee=>o(_0x52d47b,'ELEMENT_TABLE_OF_CONTENTS',_0x10e4ee));}}class Rt extends _0x4d70a7{['afterInit'](){const _0x26775a=this['editor'];if(!_0x26775a['plugins']['has']('Title'))return;const _0x504cf9=_0x26775a['plugins']['get']('TrackChangesEditing');_0x504cf9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x26775a['locale'],'ELEMENT_TITLE')),_0x26775a['model']['document']['registerPostFixer'](_0x33f069=>{let _0x36c015=!0x1;const _0xca81a=Array['from'](_0x26775a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29153d,data:_0x451731}of _0xca81a){const {group:_0x1dfa53}=_0x504cf9['_splitMarkerName'](_0x29153d);if('suggestion'!==_0x1dfa53||!_0x451731['newRange'])continue;const _0x1035e4=_0x451731['newRange'],_0x566b9d=_0x1035e4['end']['nodeBefore'];if(!_0x566b9d||!_0x566b9d['is']('element','title-content'))continue;if(!_0x1035e4['start']['isTouching'](_0x1035e4['end']))continue;const _0x19a3fc=_0x26775a['model']['schema']['getNearestSelectionRange'](_0x1035e4['end'],'forward');if(_0x19a3fc&&_0x19a3fc['isCollapsed']){const _0x557a84=_0x33f069['createRange'](_0x1035e4['start'],_0x19a3fc['start']);_0x557a84['isEqual'](_0x1035e4)||(_0x33f069['updateMarker'](_0x29153d,{'range':_0x557a84}),_0x36c015=!0x0);}_0x36c015||(_0x33f069['removeMarker'](_0x29153d),_0x36c015=!0x0);}return _0x36c015;});}}class Tt extends _0x4d70a7{['afterInit'](){const _0x1ba777=this['editor'],_0x26a74b=_0x1ba777['plugins']['get']('TrackChangesEditing');_0x1ba777['plugins']['has']('Uploadcare')&&(_0x26a74b['enableCommand']('uploadcare'),_0x1ba777['plugins']['has']('UploadcareImageEdit')&&(_0x26a74b['enableCommand']('uploadcareImageEdit'),_0x26a74b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x26a74b['registerBlockAttribute']('uploadcareImageId'),_0x26a74b['descriptionFactory']['registerDescriptionCallback'](_0x226cf5=>{if('attribute'!=_0x226cf5['type'])return;const {data:_0x35058e}=_0x226cf5;return _0x35058e&&'uploadcareImageId'==_0x35058e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x4d70a7{['afterInit'](){const _0x8eb1c0=this['editor'],_0x2b3034=_0x8eb1c0['plugins']['get']('TrackChangesEditing');_0x8eb1c0['plugins']['has']('UndoEditing')&&(_0x2b3034['enableCommand']('undo'),_0x2b3034['enableCommand']('redo'));}}class Et extends _0x4d70a7{static get['requires'](){return[Ct];}['afterInit'](){const _0x352b6b=this['editor'];if(!_0x352b6b['plugins']['has']('TableCaptionEditing'))return;_0x352b6b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x4d70a7{['tableProperties'];['tableCellProperties'];constructor(_0x221d94){super(_0x221d94),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 _0x5d4a18=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5165a8 of this['tableProperties'])_0x5d4a18['enableCommand'](_0x5165a8,(_0x5719f7,_0x316980)=>{const _0x473fa7=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5165a8,[_0x473fa7],this['tableProperties'],'tableProperties',_0x5719f7,_0x316980);});_0x5d4a18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5d4a18['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d4a18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2bc7b2,_0x7a1130)=>this['handleDiscardAction'](this['tableProperties'],_0x2bc7b2,_0x7a1130)),_0x5d4a18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x132b5e of this['tableCellProperties'])_0x5d4a18['enableCommand'](_0x132b5e,(_0x5e4cd2,_0x5aa505)=>{const _0xfc32f6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x132b5e,_0xfc32f6,this['tableCellProperties'],'tableCellProperties',_0x5e4cd2,_0x5aa505);});_0x5d4a18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5d4a18['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5d4a18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x19cfb7,_0x1f664d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x19cfb7,_0x1f664d)),_0x5d4a18['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5d4a18['descriptionFactory']['registerDescriptionCallback'](_0x4694cc=>this['handleSuggestionDescription'](_0x4694cc));}['_handlePropertyChange'](_0x583684,_0x1a88e7,_0x166416,_0x21c807,_0x46f386,_0x5e8e7a){const _0x220173=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5e8e7a['batch'],()=>{for(const _0x3fdcdf of _0x1a88e7){if(this['_getSuggestion'](_0x3fdcdf,_0x21c807))_0x46f386(_0x5e8e7a);else{const _0x262e19={};for(const _0x4a6841 of _0x166416){const _0xb7930f=_0x3fdcdf['getAttribute'](_0x4a6841);void 0x0!==_0xb7930f&&(_0x262e19[_0x4a6841]=_0xb7930f);}_0x46f386(_0x5e8e7a),_0x220173['markBlockFormat'](_0x3fdcdf,{'commandParams':[_0x262e19]},[],_0x21c807);}}});}['handleDiscardAction'](_0x31dbc4,_0x97fd00,_0x14627b){const _0x3d02b8=_0x97fd00[0x0]['start']['nodeAfter'],_0x3232c3=_0x14627b['commandParams'][0x0];this['editor']['model']['change'](_0x5e991b=>{for(const _0x5b3c40 of _0x31dbc4)void 0x0!==_0x3232c3[_0x5b3c40]?_0x5e991b['setAttribute'](_0x5b3c40,_0x3232c3[_0x5b3c40],_0x3d02b8):_0x5e991b['removeAttribute'](_0x5b3c40,_0x3d02b8);});}['handleSuggestionDescription'](_0x50faca){if(_0x50faca['data'])switch(_0x50faca['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'](_0x276512,_0x543866){const _0x38e6a5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x113390 of _0x38e6a5['getSuggestions']({'skipNotAttached':!0x0})){const _0x5679da=_0x113390['getContainedElement']();if(_0x113390['subType']===_0x543866&&_0x5679da===_0x276512)return _0x113390;}return null;}}const m='$elementName';class p extends _0x4d70a7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x275bba,_0x20a265,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(_0x5baceb){super(_0x5baceb),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5706c6,_0x2de238,_0x442379,_0x131de6)=>{this['_model']['change'](()=>{for(const _0x3acdd1 of[..._0x131de6,..._0x442379])this['_model']['markers']['has'](_0x3acdd1)&&_0x5baceb['editing']['reconvertMarker'](_0x3acdd1);});}),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']=_0x5baceb['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(),_0x5baceb['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5baceb['config']['get']('trackChanges.trackFormatChanges'),_0x5baceb['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5baceb['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5baceb,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x43610a=this['editor'],_0x37ffc0=(_0x78abeb,_0x54021c)=>{if('attribute'!=_0x78abeb)return'ck-suggestion-marker-'+_0x78abeb;const _0x3572c3=_0x54021c['split']('|')[0x0];return this['_isBlockAttribute'](_0x3572c3)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x43610a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3bfc19=>{const {id:_0x23b6dd,authorId:_0x470a61,type:_0x27c440,subType:_0x4af81c}=this['_splitMarkerName'](_0x3bfc19['markerName']),_0x5294b3=['ck-suggestion-marker',_0x37ffc0(_0x27c440,_0x4af81c)];let _0x20896e=0xbb8;return this['activeMarkers']['includes'](_0x3bfc19['markerName'])&&(_0x5294b3['push']('ck-suggestion-marker--active'),_0x20896e=0xbc2),'deletion'==_0x27c440&&(_0x20896e+=0x5),{'classes':_0x5294b3,'attributes':{'data-suggestion':_0x23b6dd,'data-author-id':_0x470a61},'priority':_0x20896e};}}),_0x43610a['conversion']['for']('dataDowncast')['add'](_0x2df5f2=>{_0x2df5f2['on']('addMarker:suggestion',(_0x4c3792,_0x3ac937,_0x22f25c)=>{if(!_0x22f25c['options']['showSuggestionHighlights'])return;const _0x32b739=_0x3ac937['item'];if(!_0x32b739)return;const _0x1b6053=_0x22f25c['mapper']['toViewElement'](_0x32b739);_0x43610a['model']['schema']['isObject'](_0x32b739)&&_0x1b6053&&!_0x1b6053['getCustomProperty']('widget')&&_0x1b6053['is']('containerElement')&&_0x3a877f(_0x1b6053,_0x22f25c['writer']);},{'priority':'high'});}),_0x43610a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xb5634,_0x1513c7)=>{if(!_0x1513c7['options']['showSuggestionHighlights'])return null;const {type:_0x225dad,subType:_0x40bb65}=this['_splitMarkerName'](_0xb5634['markerName']);return{'classes':['ck-suggestion-marker',_0x37ffc0(_0x225dad,_0x40bb65)],'priority':0xbb8};}});const _0x27fc7a=({showActiveMarkers:_0x2b81a8=!0x0,isAttributeSuggestion:_0x13b751=!0x1}={})=>(_0x3f8726,_0x27fb30,_0x292402)=>{if(!_0x27fb30['item'])return;const {id:_0x17e4e5,authorId:_0xc89322}=this['_splitMarkerName'](_0x27fb30['markerName']);if(_0x13b751){const _0x351c5a=this['_suggestions']['get'](_0x17e4e5),_0x225ffb=this['_getAttributeKey'](_0x351c5a);if(!this['_isBlockAttribute'](_0x225ffb))return;}if(_0x27fb30['item']['is']('selection'))return void _0x292402['consumable']['consume'](_0x27fb30['item'],_0x3f8726['name']);const _0x4dd6df=_0x292402['mapper']['toViewElement'](_0x27fb30['item']);if(_0x27fb30['item']['is']('element')&&_0x43610a['model']['schema']['isBlock'](_0x27fb30['item'])&&!_0x4dd6df['getCustomProperty']('addHighlight')){_0x292402['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4dd6df),_0x292402['writer']['setAttribute']('data-suggestion',_0x17e4e5,_0x4dd6df),_0x292402['writer']['setAttribute']('data-author-id',_0xc89322,_0x4dd6df),_0x292402['mapper']['bindElementToMarker'](_0x4dd6df,_0x27fb30['markerName']),_0x2b81a8&&(this['activeMarkers']['includes'](_0x27fb30['markerName'])?_0x292402['writer']['addClass']('ck-suggestion-marker--active',_0x4dd6df):_0x292402['writer']['removeClass']('ck-suggestion-marker--active',_0x4dd6df));for(const _0x9a8346 of _0x43610a['model']['createRangeIn'](_0x27fb30['item'])['getItems']())_0x292402['consumable']['consume'](_0x9a8346,_0x3f8726['name']);_0x292402['consumable']['consume'](_0x27fb30['item'],_0x3f8726['name']);}};_0x43610a['conversion']['for']('dataDowncast')['add'](_0x34c99b=>{_0x34c99b['on']('addMarker:suggestion:formatBlock',(_0x4e7829,_0x235378,_0x4c5f5f)=>{_0x4c5f5f['options']['showSuggestionHighlights']&&_0x27fc7a({'showActiveMarkers':!0x1})(_0x4e7829,_0x235378,_0x4c5f5f);},{'priority':'highest'});}),_0x43610a['conversion']['for']('dataDowncast')['add'](_0x3c3f63=>{_0x3c3f63['on']('addMarker:suggestion:attribute',(_0x594dc6,_0x4864eb,_0x3a0951)=>{_0x3a0951['options']['showSuggestionHighlights']&&_0x27fc7a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x594dc6,_0x4864eb,_0x3a0951);},{'priority':'highest'});}),_0x43610a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x33945e,_0x43b247)=>_0x43b247['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x33945e['substr'](0xb)}}),_0x43610a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x15b5e5,{writer:_0x5002e2})=>{let _0x24d61f='suggestion:'+_0x15b5e5['getAttribute']('suggestion-type')+':'+_0x15b5e5['getAttribute']('id');return _0x15b5e5['getAttribute']('marker-count')&&(_0x24d61f+=':'+_0x15b5e5['getAttribute']('marker-count')),_0x5002e2['createElement']('$marker',{'data-name':_0x24d61f});}}),_0x43610a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x43610a['conversion']['for']('editingDowncast')['add'](_0x2137cc=>{_0x2137cc['on']('addMarker:suggestion:formatBlock',_0x27fc7a(),{'priority':'high'});}),_0x43610a['conversion']['for']('editingDowncast')['add'](_0x46d620=>{_0x46d620['on']('addMarker:suggestion:attribute',_0x27fc7a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x43610a['conversion']['for']('editingDowncast')['add'](_0x78ad0e=>{_0x78ad0e['on']('removeMarker:suggestion:formatBlock',(_0x1ad014,_0x2a79e8,_0x358bed)=>{const _0x4d4d28=_0x358bed['mapper']['markerNameToElements'](_0x2a79e8['markerName']);if(_0x4d4d28){for(const _0x4fc46a of _0x4d4d28)_0x4fc46a['getCustomProperty']('addHighlight')||(_0x358bed['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4fc46a),_0x358bed['writer']['removeAttribute']('data-suggestion',_0x4fc46a),_0x358bed['writer']['removeAttribute']('data-author-id',_0x4fc46a),_0x358bed['mapper']['unbindElementFromMarkerName'](_0x4fc46a,_0x2a79e8['markerName']));}},{'priority':'high'});}),_0x43610a['conversion']['for']('editingDowncast')['add'](_0x339aa1=>{_0x339aa1['on']('removeMarker:suggestion:attribute',(_0x15a334,_0x318634,_0x4dae0d)=>{const _0x43500f=_0x4dae0d['mapper']['markerNameToElements'](_0x318634['markerName']);if(!_0x43500f)return;const {id:_0x27ef96}=this['_splitMarkerName'](_0x318634['markerName']),_0x4a5b58=this['_suggestions']['get'](_0x27ef96),_0x2fa002=this['_getAttributeKey'](_0x4a5b58);if(this['_isBlockAttribute'](_0x2fa002)){for(const _0x57d90a of _0x43500f)_0x57d90a['getCustomProperty']('addHighlight')||(_0x4dae0d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x57d90a),_0x4dae0d['writer']['removeAttribute']('data-suggestion',_0x57d90a),_0x4dae0d['writer']['removeAttribute']('data-author-id',_0x57d90a),_0x4dae0d['mapper']['unbindElementFromMarkerName'](_0x57d90a,_0x318634['markerName']));}},{'priority':'high'});}),_0x43610a['model']['document']['registerPostFixer'](_0x27681e=>{let _0x5bcd68=!0x1;const _0x4c0ba7=Array['from'](_0x43610a['model']['document']['differ']['getChangedMarkers']()),_0x3e1adf=new Set();for(const {name:_0x5106e0,data:_0x3fb025}of _0x4c0ba7){const {group:_0x34a1c7,type:_0x205bc8,subType:_0x1af479,id:_0x5b31fb}=this['_splitMarkerName'](_0x5106e0);if('suggestion'!==_0x34a1c7)continue;const _0x4c47d8=this['_suggestions']['get'](_0x5b31fb);if(null!=_0x3fb025['newRange']){'formatInline'==_0x205bc8&&(_0x5bcd68=_0x5bcd68||Lt(_0x3fb025['newRange'],_0x5106e0,_0x27681e,_0x43610a['model']['schema']));const _0x56de52='attribute'==_0x205bc8&&this['_isBlockAttribute'](_0x1af479['split']('|')[0x0]);if(_0x3fb025['newRange']['isCollapsed']||'$graveyard'==_0x3fb025['newRange']['root']['rootName']||'formatBlock'==_0x205bc8&&!Ht(_0x3fb025['newRange'])||_0x56de52&&!Ht(_0x3fb025['newRange'])||'deletion'==_0x205bc8&&!(!Ft(_0x4b5439=_0x3fb025['newRange'])&&!function(_0x2f593f){return _0x2f593f['start']['parent']==_0x2f593f['end']['nodeBefore']&&_0x2f593f['start']['isAtEnd'];}(_0x4b5439)))_0x27681e['removeMarker'](_0x5106e0),_0x5bcd68=!0x0;else{if(!_0x4c47d8||!_0x4c47d8['isInContent'])continue;if(_0x3fb025['newRange']&&_0x3fb025['oldRange']&&_0x3fb025['newRange']['isEqual'](_0x3fb025['oldRange']))continue;_0x3e1adf['add'](_0x4c47d8);}}}var _0x4b5439;return _0x3e1adf['size']>0x0&&(_0x5bcd68=!!this['_joinWithAdjacentSuggestions'](_0x3e1adf)||_0x5bcd68),_0x5bcd68;}),_0x43610a['model']['document']['registerPostFixer'](_0x3b3428=>{let _0x3ec874=!0x1;for(const _0x1901b0 of _0x43610a['model']['document']['differ']['getChanges']())if('insert'==_0x1901b0['type'])for(const _0x2a95f3 of this['_suggestions']['values']()){if(_0x2a95f3['isMultiRange']||!_0x2a95f3['isInContent'])continue;const _0x2cba93='formatBlock'==_0x2a95f3['type'],_0x300c73=this['_getAttributeKey'](_0x2a95f3),_0x2fef6f=_0x300c73&&this['_isBlockAttribute'](_0x300c73);if(!_0x2cba93&&!_0x2fef6f)continue;const _0x5cedab=_0x2a95f3['getFirstRange']();if(_0x5cedab['start']['parent']!=_0x5cedab['end']['parent']&&!_0x5cedab['end']['isAtEnd']){const _0x35a50f=_0x43610a['model']['createPositionAt'](_0x5cedab['start']['nodeAfter'],'end'),_0x343d07=_0x43610a['model']['createRange'](_0x5cedab['start'],_0x35a50f);_0x3b3428['updateMarker'](_0x2a95f3['getFirstMarker'](),{'range':_0x343d07}),_0x3ec874=!0x0;}}return _0x3ec874;}),_0x43610a['model']['document']['registerPostFixer'](_0x4e48f4=>this['_processAttributeChanges'](_0x4e48f4)),_0x43610a['model']['document']['registerPostFixer'](_0x8ce0c3=>!_0x8ce0c3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x8ce0c3)),_0x43610a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x43610a['model']['document']['on']('change:data',(_0x2670b7,_0x370a8c)=>{if(!_0x370a8c['isLocal']||_0x370a8c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x122cb6=_0x43610a['model']['document']['differ']['getChanges']();if(0x0==_0x122cb6['length'])return;const _0x23b7c4=[],_0x1f209c=_0x122cb6['filter'](_0x545842=>'attribute'==_0x545842['type']),_0x219e99=_0x122cb6['filter'](_0x4383e1=>'insert'==_0x4383e1['type']&&'$text'!=_0x4383e1['name']);for(const _0x31c46 of _0x1f209c)this['_isRegisteredAttribute'](_0x31c46['attributeKey'])&&_0x23b7c4['push']({'key':_0x31c46['attributeKey'],'newValue':_0x31c46['attributeNewValue'],'oldValue':_0x31c46['attributeOldValue'],'range':qt(_0x31c46['range'],_0x43610a['model'])});for(const _0x1e99f8 of _0x219e99){if('rename'!=_0x1e99f8['action']&&'refresh'!=_0x1e99f8['action'])continue;const _0xe0fbbc=zt(_0x1e99f8['position']['nodeAfter'],_0x43610a['model']),_0x47e574=_0x1e99f8['before'];'rename'==_0x1e99f8['action']&&_0x23b7c4['push']({'key':m,'newValue':_0x1e99f8['name'],'oldValue':_0x47e574['name'],'range':_0xe0fbbc});for(const [_0x9e2fab,_0x1c06b3]of _0x47e574['attributes']){if(!this['_isRegisteredAttribute'](_0x9e2fab))continue;const _0x3b8978=_0x1e99f8['attributes']['get'](_0x9e2fab);_0x1c06b3!==_0x3b8978&&_0x23b7c4['push']({'key':_0x9e2fab,'newValue':_0x3b8978,'oldValue':_0x1c06b3,'range':_0xe0fbbc});}for(const [_0x37baa3,_0x5732ed]of _0x1e99f8['attributes'])this['_isRegisteredAttribute'](_0x37baa3)&&(_0x47e574['attributes']['has'](_0x37baa3)||_0x23b7c4['push']({'key':_0x37baa3,'newValue':_0x5732ed,'oldValue':null,'range':_0xe0fbbc}));}0x0!=_0x23b7c4['length']&&_0x43610a['model']['enqueueChange'](_0x370a8c,_0x1faf69=>{const _0x2c45e4=_0x4a76d0();for(const {range:_0x26c66f,key:_0x4a86be,oldValue:_0x10a7a2,newValue:_0xc0fe4d}of _0x23b7c4)this['markAttributeChange'](_0x26c66f,_0x4a86be,_0x10a7a2,_0xc0fe4d,{'groupId':_0x2c45e4});this['_reduceExistingSuggestions'](_0x1faf69,_0x23b7c4);});},{'priority':'lowest'}),_0x43610a['model']['markers']['on']('update:suggestion',(_0x301803,_0x2672c2,_0x316130)=>{if(null==_0x316130){const {id:_0x95b7d9}=this['_splitMarkerName'](_0x2672c2['name']),_0x31eb4b=this['_suggestions']['get'](_0x95b7d9);_0x31eb4b&&_0x31eb4b['addMarkerName'](_0x2672c2['name']);}}),_0x43610a['model']['document']['on']('change:data',()=>{const _0x4218e5=Array['from'](_0x43610a['model']['document']['differ']['getChangedMarkers']())['filter'](_0xcf9bee=>'suggestion'===this['_splitMarkerName'](_0xcf9bee['name'])['group']);if(0x0===_0x4218e5['length'])return;_0x4218e5['sort']((_0x122c50,_0x5a38c5)=>{const _0x3c2389=_0x122c50['data']['oldRange'],_0x2bf872=_0x5a38c5['data']['oldRange'];return null===_0x3c2389&&null===_0x2bf872?0x0:null===_0x3c2389&&null!==_0x2bf872?-0x1:null!==_0x3c2389&&null===_0x2bf872?0x1:_0x3c2389['start']['isBefore'](_0x2bf872['start'])?-0x1:0x1;});const _0x59d092=new Set(),_0xf557dd=new Set();for(const {name:_0x18c7c0,data:_0x243987}of _0x4218e5){const {id:_0x400b1d}=this['_splitMarkerName'](_0x18c7c0);if(null===_0x243987['oldRange']){const _0x54f257=this['_handleNewSuggestionMarker'](_0x18c7c0);_0xf557dd['add'](_0x54f257);}else{const _0x34379e=this['_suggestions']['get'](_0x400b1d);null!==_0x243987['newRange']||_0x34379e['isInContent']?(_0x59d092['add'](_0x34379e['head']),_0xf557dd['add'](_0x34379e)):this['_removeSuggestion'](_0x34379e);}}_0xf557dd['size']>0x0&&this['_refreshSuggestionsChain'](_0xf557dd);for(const _0x5eac22 of _0x59d092)this['fire']('suggestionChanged',_0x5eac22);}),_0x43610a['model']['on']('applyOperation',(_0x317b4e,_0x552caa)=>{const _0xe55285=_0x552caa[0x0];if(!this['_suggestions']['size'])return;if(!_0xe55285['isDocumentOperation'])return;if(_0xe55285['batch']['isUndo']||!_0xe55285['batch']['isLocal'])return;let _0x4bebeb,_0x444c90;switch(_0xe55285['type']){case'insert':_0x4bebeb=_0x43610a['model']['createPositionAt'](_0xe55285['position']),_0x444c90=_0x4bebeb['getShiftedBy'](_0xe55285['howMany']);break;case'split':_0x4bebeb=_0x43610a['model']['createPositionAt'](_0xe55285['splitPosition']),_0x444c90=_0x43610a['model']['createPositionAt'](_0xe55285['moveTargetPosition']);break;case'move':_0x4bebeb=_0x43610a['model']['createPositionAt'](_0xe55285['targetPosition']),_0x444c90=_0x4bebeb['getShiftedBy'](_0xe55285['howMany']);break;default:return;}const _0x20e120=_0x43610a['model']['createRange'](_0x4bebeb,_0x444c90);_0x43610a['model']['change'](()=>{for(const {suggestion:_0x4c1ae6,meta:_0x54eb21}of this['_findSuggestions'](_0x20e120)){if(_0x4c1ae6['isMultiRange'])continue;if('formatInline'==_0x4c1ae6['type'])continue;const _0x2a064c=this['_getAttributeKey'](_0x4c1ae6);if(_0x2a064c&&this['_isBlockAttribute'](_0x2a064c)&&'split'!=_0xe55285['type'])continue;const _0x2156c2=_0x4c1ae6['data']&&_0x4c1ae6['data']['multipleBlocks'];('formatBlock'!=_0x4c1ae6['type']||'split'==_0xe55285['type']&&!_0x2156c2)&&(_0x54eb21['containsRangeInObject']||'insertion'==_0x4c1ae6['type']&&_0x54eb21['isOwn']||_0x4c1ae6['getFirstRange']()['containsRange'](_0x20e120)&&this['_breakSuggestionMarker'](_0x4c1ae6,_0x4bebeb,_0x444c90));}});},{'priority':'lowest'}),_0x43610a['model']['on']('deleteContent',(_0x53ea9c,_0x328656)=>{const _0x540dae=_0x328656[0x0],_0xf87cf2=_0x328656[0x1];if(_0xf87cf2&&_0xf87cf2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x540dae['isCollapsed'])return;const _0x171097=_0x43610a['model']['schema'],{start:_0x5892af,end:_0x55ff0a}=_0x540dae['getFirstRange'](),_0x401024=_0x5892af['nodeAfter']&&_0x171097['isLimit'](_0x5892af['nodeAfter'])?null:_0x171097['getNearestSelectionRange'](_0x5892af,'forward'),_0x34c39e=_0x55ff0a['nodeBefore']&&_0x171097['isLimit'](_0x55ff0a['nodeBefore'])?null:_0x171097['getNearestSelectionRange'](_0x55ff0a,'backward'),_0x40bb77=_0x43610a['model']['createRange'](_0x401024?_0x401024['start']:_0x5892af,_0x34c39e?_0x34c39e['end']:_0x55ff0a);_0x43610a['model']['change'](_0x2726f6=>{this['markDeletion'](_0x40bb77);const _0x3e9f16=_0x43610a['model']['schema']['getNearestSelectionRange'](_0x40bb77['start']);_0x540dae['is']('documentSelection')?_0x2726f6['setSelection'](_0x3e9f16):_0x540dae['setTo'](_0x3e9f16);}),_0x53ea9c['stop']();},{'priority':_0x5c7181['normal']+0xa}),_0x43610a['model']['on']('insertContent',(_0x1aecf9,_0x4c0a2b)=>{const _0x4037d=_0x4c0a2b[_0x4c0a2b['length']-0x1];_0x4037d&&_0x4037d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x43610a['model']['change'](()=>{let _0x15a335=_0x43610a['model']['insertContent'](_0x4c0a2b[0x0],_0x4c0a2b[0x1],_0x4c0a2b[0x2],{'forceDefaultExecution':!0x0});if(!_0x15a335)return;_0x1aecf9['return']=_0x15a335['clone']();const _0x150831=_0x15a335['end']['nodeBefore'],_0x32b237=_0x43610a['model']['schema'];_0x150831&&_0x32b237['isBlock'](_0x150831)&&!_0x32b237['isObject'](_0x150831)&&(_0x15a335=_0x43610a['model']['createRange'](_0x15a335['start'],_0x43610a['model']['createPositionAt'](_0x150831,'end'))),this['markInsertion'](_0x15a335);}),_0x1aecf9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3a007e=new O(_0x43610a,this['_suggestions']);_0x43610a['commands']['add']('acceptSuggestion',_0x3a007e),this['enableCommand']('acceptSuggestion');const _0x445829=new R(_0x43610a,this['_suggestions']);_0x43610a['commands']['add']('discardSuggestion',_0x445829),this['enableCommand']('discardSuggestion'),_0x43610a['commands']['add']('acceptAllSuggestions',new x(_0x43610a,_0x3a007e,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x43610a['commands']['add']('discardAllSuggestions',new x(_0x43610a,_0x445829,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x43610a['commands']['add']('acceptSelectedSuggestions',new E(_0x43610a,_0x3a007e,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x43610a['commands']['add']('discardSelectedSuggestions',new E(_0x43610a,_0x445829,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2b21db=_0x43610a['plugins']['get']('CommentsRepository');this['listenTo'](_0x2b21db,'addComment',(_0x20eae5,{threadId:_0x5b5e9d})=>{const _0x57772d=this['_suggestions']['get'](_0x5b5e9d);_0x57772d&&_0x57772d['commentThread']&&0x1===_0x57772d['commentThread']['length']&&this['_updateSuggestionData'](_0x5b5e9d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2b21db,'removeComment',(_0x339444,{threadId:_0x281d02})=>{const _0x11d479=this['_suggestions']['get'](_0x281d02);_0x11d479&&_0x11d479['commentThread']&&!_0x11d479['commentThread']['length']&&this['_updateSuggestionData'](_0x281d02,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2d9c2e){const _0x3a32c4=_0x15f505([0x46,0x6d,0x5a,0x30,0x57,0x52,0x68,0x50,0x78,0x51,0x6c,0x71,0x7a,0x37,0x41,0x77,0x42,0x58,0x44,0x4b,0x35,0x67,0x4e,0x32,0x76,0x72,0x38,0x70,0x4f,0x56,0x69,0x4a,0x6e,0x79,0x31,0x4d,0x34,0x54,0x73,0x36,0x53,0x66,0x62,0x6b,0x4c,0x63,0x6f,0x61,0x65,0x64,0x75,0x48,0x6a,0x55,0x47,0x39,0x43,0x45,0x49,0x59,0x33,0x74]),_0x33eb3c=0x7627a489,_0x3524d5=0x7620fa29^_0x33eb3c,_0x57d44a=window[_0x15f505([0x44,0x61,0x74,0x65])][_0x15f505([0x6e,0x6f,0x77])](),_0x57bc37=_0x2d9c2e[_0x15f505([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x52e1b1=new window[(_0x15f505([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25334f=>{_0x57bc37[_0x15f505([0x6f,0x6e,0x63,0x65])](_0x15f505([0x72,0x65,0x61,0x64,0x79]),_0x25334f);}),_0x3c1e97={[_0x15f505([0x6b,0x74,0x79])]:_0x15f505([0x45,0x43]),[_0x15f505([0x75,0x73,0x65])]:_0x15f505([0x73,0x69,0x67]),[_0x15f505([0x63,0x72,0x76])]:_0x15f505([0x50,0x2d,0x32,0x35,0x36]),[_0x15f505([0x78])]:_0x15f505([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]),[_0x15f505([0x79])]:_0x15f505([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]),[_0x15f505([0x61,0x6c,0x67])]:_0x15f505([0x45,0x53,0x32,0x35,0x36])},_0x7f4b7f=_0x57bc37[_0x15f505([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15f505([0x67,0x65,0x74])](_0x15f505([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x29040b(){let _0x5c19b6,_0x51046a=null,_0x24c5c0=null;try{if(_0x7f4b7f==_0x15f505([0x47,0x50,0x4c]))return _0x15f505([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5c19b6=_0x1b797d(),!_0x5c19b6)return _0x15f505([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5c19b6[_0x15f505([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24c5c0=_0x11739c(_0x5c19b6[_0x15f505([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5c19b6[_0x15f505([0x6a,0x74,0x69])])),await _0x103697()?_0x449cae()?_0x47aff4()?_0x15f505([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1d6615()?(_0x5c19b6[_0x15f505([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15f505([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x51046a=_0x1d103a(_0x15f505([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5c19b6[_0x15f505([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15f505([0x74,0x72,0x69,0x61,0x6c])&&(_0x51046a=_0x1d103a(_0x15f505([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x945ba4()):_0x15f505([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15f505([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15f505([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xd1e5a0){return _0x15f505([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47aff4(){const _0x238a8d=[_0x15f505([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15f505([0x74,0x72,0x69,0x61,0x6c])][_0x15f505([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5c19b6[_0x15f505([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57d44a/0x3e8:0xe10*_0x3524d5;return _0x5c19b6[_0x15f505([0x65,0x78,0x70])]<_0x238a8d;}function _0x449cae(){const _0xff5af8=_0x5c19b6[_0x15f505([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xff5af8)return!0x1;if(_0xff5af8[_0x15f505([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15f505([0x2a])))return!0x0;if(_0xff5af8[_0x15f505([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15f505([0x54,0x43])))return!0x0;if(_0xff5af8[_0x15f505([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15f505([0x52,0x54,0x43]))){if(_0x2c1d64())return!0x0;if(_0x226b2e()||_0x16062b())return!0x0;}return!0x1;}function _0x1d6615(){const _0x195ffd=_0x5c19b6[_0x15f505([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x195ffd||0x0==_0x195ffd[_0x15f505([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x17f27f}=new URL(window[_0x15f505([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x195ffd[_0x15f505([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17f27f))return!0x0;const _0x17b5b5=_0x17f27f[_0x15f505([0x73,0x70,0x6c,0x69,0x74])](_0x15f505([0x2e]));return _0x195ffd[_0x15f505([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3686de=>_0x3686de[_0x15f505([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15f505([0x2a])))[_0x15f505([0x6d,0x61,0x70])](_0x3efdb1=>_0x3efdb1[_0x15f505([0x73,0x70,0x6c,0x69,0x74])](_0x15f505([0x2e])))[_0x15f505([0x73,0x6f,0x6d,0x65])](_0x4436a8=>_0x17b5b5[_0x15f505([0x65,0x76,0x65,0x72,0x79])]((_0x4d99b8,_0x561862)=>_0x4436a8[_0x561862]===_0x4d99b8||_0x4436a8[_0x561862]===_0x15f505([0x2a])));}function _0x945ba4(){return _0x51046a&&_0x24c5c0?new window[(_0x15f505([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b6ace,_0x545ffd)=>{_0x51046a[_0x15f505([0x74,0x68,0x65,0x6e])](_0x4b6ace,_0x545ffd),_0x24c5c0[_0x15f505([0x74,0x68,0x65,0x6e])](_0x3ff69c=>{_0x3ff69c!=_0x15f505([0x56,0x61,0x6c,0x69,0x64])&&_0x4b6ace(_0x3ff69c);},_0x545ffd);}):_0x51046a||_0x24c5c0||_0x15f505([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11739c(_0x109c0b,_0x55370d){return new window[(_0x15f505([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xb039e2=>{if(_0x459657())return _0xb039e2(_0x15f505([0x56,0x61,0x6c,0x69,0x64]));_0x1252b5(),_0x57bc37[_0x15f505([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15f505([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x309d85=!0x1;const _0x2f5199=_0x4a76d0();function _0x31a44d(_0x37c606){return!!_0x37c606&&(typeof _0x37c606===_0x15f505([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37c606===_0x15f505([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37c606[_0x15f505([0x74,0x68,0x65,0x6e])]===_0x15f505([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37c606[_0x15f505([0x63,0x61,0x74,0x63,0x68])]===_0x15f505([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x33de37(_0x400c31){_0x28cc43(_0x400c31)[_0x15f505([0x74,0x68,0x65,0x6e])](_0x4c0836=>{if(!_0x4c0836||_0x4c0836[_0x15f505([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15f505([0x6f,0x6b]))return _0x15f505([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56992e(_0x42a40d(_0x2f5199+_0x55370d))!=_0x4c0836[_0x15f505([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15f505([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15f505([0x56,0x61,0x6c,0x69,0x64]);})[_0x15f505([0x74,0x68,0x65,0x6e])](_0x32c83f=>(_0x1da0b8(),_0x32c83f),()=>{const _0x3141a9=_0x3440a7();return null==_0x3141a9?(_0x1da0b8(),_0x15f505([0x56,0x61,0x6c,0x69,0x64])):_0x15f505(_0x57d44a-_0x3141a9>(0x522b2089^_0x33eb3c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15f505([0x74,0x68,0x65,0x6e])](_0xb039e2)[_0x15f505([0x63,0x61,0x74,0x63,0x68])](()=>{_0xb039e2(_0x15f505([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d6cb0=0x76114a09^_0x33eb3c;function _0x1da0b8(){const _0xb9cc74=_0x15f505([0x6c,0x6c,0x63,0x74,0x2d])+_0x56992e(_0x42a40d(_0x109c0b)),_0x5b7a78=_0x21ee15(_0x56992e(window[_0x15f505([0x4d,0x61,0x74,0x68])][_0x15f505([0x63,0x65,0x69,0x6c])](_0x57d44a/_0x4d6cb0)));window[_0x15f505([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15f505([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xb9cc74,_0x5b7a78);}function _0x3440a7(){const _0x221ae2=_0x15f505([0x6c,0x6c,0x63,0x74,0x2d])+_0x56992e(_0x42a40d(_0x109c0b)),_0x140f6e=window[_0x15f505([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15f505([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x221ae2);return _0x140f6e?window[_0x15f505([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21ee15(_0x140f6e),0x10)*_0x4d6cb0:null;}function _0x28cc43(_0x4b6ef1){return new window[(_0x15f505([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ea369,_0x58e593)=>{_0x4b6ef1[_0x15f505([0x74,0x68,0x65,0x6e])](_0x5ea369,_0x58e593),window[_0x15f505([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58e593,0x76267049^_0x33eb3c);});}}_0x57bc37[_0x15f505([0x6f,0x6e])](_0x15f505([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x106963,_0x33d7d5)=>{if(_0x33d7d5[0x0]!=_0x109c0b)return _0xb039e2(_0x15f505([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x33d7d5[0x1]={..._0x33d7d5[0x1],[_0x15f505([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f5199};},{[_0x15f505([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15f505([0x68,0x69,0x67,0x68])}),_0x57bc37[_0x15f505([0x6f,0x6e])](_0x15f505([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x232740=>{_0x31a44d(_0x232740[_0x15f505([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x309d85=!0x0,_0x33de37(_0x232740[_0x15f505([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15f505([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15f505([0x6c,0x6f,0x77])}),_0x52e1b1[_0x15f505([0x74,0x68,0x65,0x6e])](()=>{_0x309d85||_0xb039e2(_0x15f505([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x459657(){return _0x57bc37[_0x15f505([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15f505([0x76,0x69,0x65,0x77])][_0x15f505([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15f505([0x61,0x75,0x74,0x6f]);}function _0x1252b5(){_0x57bc37[_0x15f505([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15f505([0x76,0x69,0x65,0x77])][_0x15f505([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15f505([0x61,0x75,0x74,0x6f]);}}function _0x1d103a(_0x2da54a){const _0x1d0832=[new window[(_0x15f505([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f227e=>setTimeout(_0x1f227e,0x762e9a45^_0x33eb3c)),_0x52e1b1[_0x15f505([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15f505([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41fb8f=>{let _0x5e79df=0x0;_0x57bc37[_0x15f505([0x6d,0x6f,0x64,0x65,0x6c])][_0x15f505([0x6f,0x6e])](_0x15f505([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b1c7e,_0x45e507)=>{_0x45e507[0x0][_0x15f505([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e79df++,_0x5e79df==(0x7627a571^_0x33eb3c)&&(_0x41fb8f(),_0x2b1c7e[_0x15f505([0x6f,0x66,0x66])]());});}))];return window[_0x15f505([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15f505([0x72,0x61,0x63,0x65])](_0x1d0832)[_0x15f505([0x74,0x68,0x65,0x6e])](()=>_0x2da54a);}async function _0x3005c6(){await _0x52e1b1,_0x57bc37[_0x15f505([0x6d,0x6f,0x64,0x65,0x6c])][_0x15f505([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x524684,_0x57bc37[_0x15f505([0x6d,0x6f,0x64,0x65,0x6c])][_0x15f505([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x524684,_0x57bc37[_0x15f505([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15f505([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c1d64(){return _0x49c5c1(_0x15f505([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x408cfa(_0x15f505([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x15f505([0x73,0x74,0x61,0x74,0x65])]==_0x15f505([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x226b2e(){return _0x49c5c1(_0x15f505([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 _0x16062b(){return _0x49c5c1(_0x15f505([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5ddbef(_0x57e449){const _0x49ba07=_0x2eb149();_0x57bc37[_0x49ba07]=_0x15f505([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x57e449,_0x57e449!=_0x15f505([0x56,0x61,0x6c,0x69,0x64])&&_0x3005c6();}function _0x2eb149(){const _0x2628d0=window[_0x15f505([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15f505([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15f505([0x6e,0x6f,0x77])]())[_0x15f505([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15f505([0x2e]),'');let _0x969ab=_0x15f505([0x46]);for(let _0x66b5a4=0x0;_0x66b5a4<_0x2628d0[_0x15f505([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x66b5a4+=0x2){let _0x46a121=window[_0x15f505([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2628d0[_0x15f505([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x66b5a4,_0x66b5a4+0x2));_0x46a121>=_0x3a32c4[_0x15f505([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46a121-=_0x3a32c4[_0x15f505([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x969ab+=_0x3a32c4[_0x46a121];}return _0x969ab;}function _0x1b797d(){const _0x205e91=_0x7f4b7f[_0x15f505([0x73,0x70,0x6c,0x69,0x74])](_0x15f505([0x2e]));if(0x3!=_0x205e91[_0x15f505([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19c15f(_0x205e91[0x1]);function _0x19c15f(_0x4bf511){const _0x476a6c=_0x3f0654(_0x4bf511);return _0x476a6c&&_0x73dda7()?_0x476a6c:null;function _0x73dda7(){const _0x42b1d2=_0x476a6c[_0x15f505([0x6a,0x74,0x69])],_0x13df51=window[_0x15f505([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42b1d2[_0x15f505([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42b1d2[_0x15f505([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x244756={..._0x476a6c,[_0x15f505([0x6a,0x74,0x69])]:_0x42b1d2[_0x15f505([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42b1d2[_0x15f505([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x244756[_0x15f505([0x76,0x63])],_0x42a40d(_0x244756)==_0x13df51;}}}async function _0x103697(){let _0x6add90=!0x0;try{const _0xacc8f8=_0x7f4b7f[_0x15f505([0x73,0x70,0x6c,0x69,0x74])](_0x15f505([0x2e])),[_0xa04439,_0x38c2a3,_0x4cb76f]=_0xacc8f8;return _0x46854e(_0xa04439),await _0x5a9268(_0xa04439,_0x38c2a3,_0x4cb76f),_0x6add90;}catch(_0x38026e){return!0x1;}function _0x46854e(_0x4932fa){const _0x98f0a1=_0x3f0654(_0x4932fa);_0x98f0a1&&_0x98f0a1[_0x15f505([0x61,0x6c,0x67])]==_0x15f505([0x45,0x53,0x32,0x35,0x36])||(_0x6add90=!0x1);}async function _0x5a9268(_0x3298a9,_0x4f8c58,_0x3ade66){const _0x5c04f4=window[_0x15f505([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15f505([0x66,0x72,0x6f,0x6d])](_0x40b245(_0x3ade66),_0x527d22=>_0x527d22[_0x15f505([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5936e7=new window[(_0x15f505([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15f505([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3298a9+_0x15f505([0x2e])+_0x4f8c58),_0x30a82c=window[_0x15f505([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15f505([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30a82c)return;const _0x535d68=await _0x30a82c[_0x15f505([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15f505([0x6a,0x77,0x6b]),_0x3c1e97,{[_0x15f505([0x6e,0x61,0x6d,0x65])]:_0x15f505([0x45,0x43,0x44,0x53,0x41]),[_0x15f505([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15f505([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15f505([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30a82c[_0x15f505([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15f505([0x6e,0x61,0x6d,0x65])]:_0x15f505([0x45,0x43,0x44,0x53,0x41]),[_0x15f505([0x68,0x61,0x73,0x68])]:{[_0x15f505([0x6e,0x61,0x6d,0x65])]:_0x15f505([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x535d68,_0x5c04f4,_0x5936e7)||(_0x6add90=!0x1);}}function _0x3f0654(_0x4c42a2){return _0x4c42a2[_0x15f505([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15f505([0x65,0x79]))?JSON[_0x15f505([0x70,0x61,0x72,0x73,0x65])](_0x40b245(_0x4c42a2)):null;}function _0x40b245(_0x2ffd8e){return window[_0x15f505([0x61,0x74,0x6f,0x62])](_0x2ffd8e[_0x15f505([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15f505([0x2b]))[_0x15f505([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15f505([0x2f])));}function _0x42a40d(_0x2d5e5e){let _0x29d028=0x1505;function _0x480fc4(_0x2142a0){for(let _0x8f2226=0x0;_0x8f2226<_0x2142a0[_0x15f505([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8f2226++){const _0x17aaf2=_0x2142a0[_0x15f505([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8f2226);_0x29d028=(_0x29d028<<0x5)+_0x29d028+_0x17aaf2,_0x29d028&=_0x29d028;}}function _0x7d8a39(_0x39d503){Array[_0x15f505([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39d503)?_0x39d503[_0x15f505([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x7d8a39):_0x39d503&&typeof _0x39d503==_0x15f505([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15f505([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39d503)[_0x15f505([0x73,0x6f,0x72,0x74])]()[_0x15f505([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x387652,_0x803e39])=>{_0x480fc4(_0x387652),_0x7d8a39(_0x803e39);}):_0x480fc4(window[_0x15f505([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39d503));}return _0x7d8a39(_0x2d5e5e),_0x29d028>>>0x0;}function _0x56992e(_0x3a9695){return _0x3a9695[_0x15f505([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15f505([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15f505([0x30]));}function _0x21ee15(_0x5353e1){return _0x5353e1[_0x15f505([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15f505([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15f505([0x6a,0x6f,0x69,0x6e])]('');}function _0x49c5c1(_0x2dd822){return _0x57bc37[_0x15f505([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15f505([0x68,0x61,0x73])](_0x2dd822);}function _0x408cfa(_0x3fa20c){return _0x57bc37[_0x15f505([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15f505([0x67,0x65,0x74])](_0x3fa20c);}function _0x524684(){}function _0x15f505(_0x18ff1f){return _0x18ff1f['map'](_0x5cabef=>String['fromCharCode'](_0x5cabef))['join']('');}_0x5ddbef(await _0x29040b());}(this);}set['adapter'](_0x34e92c){if(this['_adapter'])throw new _0x287d2d('track-changes-adapter-already-set',this);this['_adapter']=_0x34e92c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5249d0=!0x1,toJSON:_0x4948d7=!0x1}={}){const _0x38246c=[];for(const _0xf7abfe of this['_suggestions']['values']())_0x5249d0&&!_0xf7abfe['isInContent']||_0x38246c['push'](_0xf7abfe);return _0x4948d7?_0x38246c['map'](_0x1890c3=>_0x1890c3['toJSON']()):_0x38246c;}['getSuggestion'](_0x1613ce){const _0x16d945=this['_suggestions']['get'](_0x1613ce);if(!_0x16d945)throw new _0x287d2d('track-changes-suggestion-not-found',this);return _0x16d945;}['hasSuggestion'](_0x14938d){return this['_suggestions']['has'](_0x14938d);}['addSuggestionData'](_0x4c7284){const {authorId:_0x43ecb9,id:_0x4aa405,attributes:_0x5aa388}=_0x4c7284,[_0x1dbef7,_0x23593b]=_0x4c7284['type']['split'](':'),_0x2b27db=this['_suggestions']['get'](_0x4aa405)||this['_createSuggestion'](_0x1dbef7,_0x23593b,_0x4aa405,_0x43ecb9,_0x5aa388);if(this['_addThreadToSuggestion'](_0x2b27db),this['_checkSuggestionCorrectness'](_0x2b27db,_0x1dbef7,_0x23593b||null,_0x43ecb9),_0x2b27db['createdAt']=_0x4c7284['createdAt'],_0x2b27db['_isDataLoaded']=!0x0,_0x5aa388&&_0x5aa388['@external']){const _0x28085c=_0x5aa388['@external'],_0x3803f9=this['_getExternalAuthor'](_0x28085c['authorName']);_0x2b27db['authoredAt']=_0x28085c['createdAt'],_0x2b27db['author']=_0x3803f9,_0x2b27db['isExternal']=!0x0;}else _0x2b27db['authoredAt']=_0x4c7284['createdAt'];switch(_0x4c7284['data']&&(_0x2b27db['data']=_0x4c7284['data']),_0x4c7284['attributes']&&(_0x2b27db['attributes']=_0x4c7284['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2b27db['_saved']=!0x0),this['_suggestionState']['get'](_0x2b27db)){case'notReady':this['_suggestionState']['set'](_0x2b27db,'dataReady');break;case'markerReady':_0x2b27db['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2b27db])),this['_refreshSuggestionsChain'](new Set([_0x2b27db])),this['_suggestionState']['set'](_0x2b27db,'ready'),this['fire']('suggestionLoaded',_0x2b27db)):this['_suggestionState']['set'](_0x2b27db,'removed');}return _0x2b27db;}['acceptSuggestion'](_0x50c148){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x34154c of _0x50c148['getAllAdjacentSuggestions']())_0x34154c['accept']();});});}['discardSuggestion'](_0x296ec7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a02f0 of _0x296ec7['getAllAdjacentSuggestions']())_0x4a02f0['discard']();});});}['enableCommand'](_0x5f0901,_0x448390){const _0x59a271=this['editor']['commands']['get'](_0x5f0901);if(!_0x59a271)throw new _0x287d2d('track-changes-command-not-found',this,{'commandName':_0x5f0901});if(this['_enabledCommands']['has'](_0x59a271))throw new _0x287d2d('track-changes-enable-command-twice',this,{'commandName':_0x5f0901});this['_enabledCommands']['add'](_0x59a271),_0x448390&&_0x59a271['on']('execute',(_0x14ab6a,_0x172f56)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x172f56['length']>0x0&&_0x172f56[_0x172f56['length']-0x1]&&_0x172f56[_0x172f56['length']-0x1]['forceDefaultExecution']?_0x172f56['pop']():(_0x14ab6a['return']=_0x448390((..._0x321eac)=>_0x59a271['execute'](..._0x321eac,{'forceDefaultExecution':!0x0}),..._0x172f56),_0x14ab6a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1e9145){let _0x4f88f8,_0x458e99;const _0x305841=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4f88f8=_0x1e9145();}catch(_0x320610){_0x458e99=_0x320610;}return _0x305841||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x458e99&&_0x287d2d['rethrowUnexpectedError'](_0x458e99,this),_0x4f88f8;}['markInsertion'](_0x3f4dcc,_0x170965=null,_0x5b97f2={}){if(_0x3f4dcc['isCollapsed'])return null;const _0x5d7964=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x26e5c3,meta:_0x5691dc}of this['_findSuggestions'](_0x3f4dcc,'insertion'))if(_0x5691dc['isOwn']){if(!_0x5691dc['isNextTo']){if(_0x5691dc['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x26e5c3,_0x5b97f2))continue;return _0x26e5c3;}if(Qt(_0x26e5c3,_0x5b97f2))return _0x26e5c3;this['_breakSuggestionMarker'](_0x26e5c3,_0x3f4dcc['start'],_0x3f4dcc['end']);break;}if(_0x170965==_0x26e5c3['subType']&&Qt(_0x26e5c3,_0x5b97f2)){const _0x26c676=_0x26e5c3['getFirstRange']();return _0x26c676['start']['isEqual'](_0x3f4dcc['end'])?this['_setSuggestionRange'](_0x26e5c3,this['_model']['createRange'](_0x3f4dcc['start'],_0x26c676['end'])):this['_setSuggestionRange'](_0x26e5c3,this['_model']['createRange'](_0x26c676['start'],_0x3f4dcc['end'])),_0x26e5c3;}}const _0x3a70ce=_0x4a76d0(),_0x1cb442=_0x5d7964['id'],_0x438851=_0x170965?'insertion:'+_0x170965:'insertion',_0x5b348b=this['_setSuggestionData']({'id':_0x3a70ce,'type':_0x438851,'createdAt':new Date(),'authorId':_0x1cb442,'attributes':_0x5b97f2});return this['_addSuggestionMarker'](_0x438851,_0x3a70ce,_0x1cb442,_0x3f4dcc),_0x5b348b;}['markMultiRangeInsertion'](_0x288f8c,_0x1fc6b9='multi',_0x5ca523={}){const _0x45bb21=this['editor']['plugins']['get']('Users')['me'],_0x5a58de=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1fc6b9,'join');for(const _0x195280 of this['getSuggestions']())if(_0x195280['author']['id']==_0x45bb21['id']&&'insertion'==_0x195280['type']&&_0x195280['subType']==_0x1fc6b9&&Qt(_0x195280,_0x5ca523)&&(_0x5a58de(_0x195280['getRanges'](),_0x288f8c)||_0x5a58de(_0x288f8c,_0x195280['getRanges']()))){for(const _0x22d997 of _0x288f8c)_0x195280['addRange'](_0x22d997);return _0x195280;}for(const {suggestion:_0x3e80ba,meta:_0x1499c3}of this['_findSuggestions'](_0x288f8c,'insertion')){if(!_0x1499c3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1499c3['containsRangeInObject'])continue;if(!Qt(_0x3e80ba,_0x5ca523))continue;let _0x2c935a=!0x0;for(const _0x2ce8fd of _0x3e80ba['getRanges']())for(const _0x51fc21 of _0x288f8c)if(!_0x2ce8fd['containsRange'](_0x51fc21)){_0x2c935a=!0x1;break;}if(_0x2c935a)return _0x3e80ba;}const _0x4c12f1=_0x4a76d0(),_0x31c250=_0x45bb21['id'],_0x3005d8='insertion:'+_0x1fc6b9,_0x3c6e93=this['_setSuggestionData']({'id':_0x4c12f1,'type':_0x3005d8,'createdAt':new Date(),'authorId':_0x31c250,'attributes':_0x5ca523});for(const _0x46d9b4 of _0x288f8c)this['_addSuggestionMarker'](_0x3005d8,_0x4c12f1,_0x31c250,_0x46d9b4,u['getMultiRangeId']());return _0x3c6e93;}['markInlineFormat'](_0x1ac773,_0x37c040,_0xa70e5f=null,_0x454eed={}){if(_0xa70e5f=_0xa70e5f||Jt(_0x37c040),_0x1ac773['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2fd962=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa70e5f,'accept');return this['forceDefaultExecution'](()=>_0x2fd962([_0x1ac773],_0x37c040,_0x454eed)),null;}const _0x52d175=this['editor']['plugins']['get']('Users')['me'],_0x1bf423=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2d5593,meta:_0x349600}of this['_findSuggestions'](_0x1ac773,'insertion'))_0x349600['isOwn']&&!_0x349600['isInsideObject']&&_0x1bf423['push'](..._0x2d5593['getRanges']());}const _0x5c0dc5=function(_0x5bae2a,_0x3c6007){const _0x11ee43=[];for(const _0x4b5669 of _0x3c6007){const _0x14ede9=_0x5bae2a['getIntersection'](_0x4b5669);_0x14ede9&&_0x11ee43['push'](_0x14ede9);}return _0x11ee43;}(_0x1ac773,_0x1bf423),_0x1369e9=function(_0x125569,_0x27c5f7){const _0x1e6222=[_0x125569];for(const _0x291895 of _0x27c5f7){let _0x37210a=0x0;for(;_0x37210a<_0x1e6222['length'];){const _0x54c162=_0x1e6222[_0x37210a]['getDifference'](_0x291895);_0x1e6222['splice'](_0x37210a,0x1,..._0x54c162),_0x37210a+=_0x54c162['length'];}}return _0x1e6222;}(_0x1ac773,_0x1bf423);_0x5c0dc5['length']&&this['_model']['change'](()=>{for(const _0x457454 of _0x5c0dc5){const _0x299622=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa70e5f,'accept');this['forceDefaultExecution'](()=>_0x299622([_0x457454],_0x37c040,_0x454eed));}});for(const _0x32c71f of _0x1369e9){let _0x3f1bc5=null,_0x36a17f=_0x32c71f['start'],_0x587b3d=_0x32c71f['end'];for(const {suggestion:_0x3d0c53,meta:_0x4f4d03}of this['_findSuggestions'](_0x32c71f,'formatInline')){if(!_0x4f4d03['isOwn'])continue;if(_0x3d0c53['subType']!=_0xa70e5f)continue;if(!Qt(_0x3d0c53,_0x454eed))continue;const _0x4b81dd=_0x3d0c53['getFirstRange']();if(_0x4b81dd['containsRange'](_0x32c71f,!0x0))return null;_0x36a17f=_0x36a17f['isBefore'](_0x4b81dd['start'])?_0x36a17f:_0x4b81dd['start'],_0x587b3d=_0x587b3d['isAfter'](_0x4b81dd['end'])?_0x587b3d:_0x4b81dd['end'],_0x3f1bc5?_0x4b81dd['start']['isBefore'](_0x3f1bc5['getFirstRange']()['start'])?(_0x3f1bc5['removeMarkers'](),_0x3f1bc5=_0x3d0c53):_0x3d0c53['removeMarkers']():_0x3f1bc5=_0x3d0c53;}const _0x459d4a=this['_model']['createRange'](_0x36a17f,_0x587b3d);if(_0x3f1bc5)this['_setSuggestionRange'](_0x3f1bc5,_0x459d4a);else{const _0x1acc37=_0x4a76d0(),_0xd028b=_0x52d175['id'];this['_setSuggestionData']({'id':_0x1acc37,'type':'formatInline:'+_0xa70e5f,'data':_0x37c040,'createdAt':new Date(),'authorId':_0xd028b,'attributes':_0x454eed}),this['_addSuggestionMarker']('formatInline:'+_0xa70e5f,_0x1acc37,_0xd028b,_0x459d4a);}}return null;}['markBlockFormat'](_0xd2b962,_0x103625,_0x34a5b4=[],_0x546070=null,_0x5963af={}){_0x103625['formatGroupId']||(_0x103625['formatGroupId']=_0x103625['commandName']),_0x103625['multipleBlocks']=_0xd2b962['is']('range'),_0x546070=_0x546070||Jt(_0x103625);const _0x4e0a59=_0x34a5b4['map'](_0x5058db=>zt(_0x5058db,this['_model'])),_0x31aab7=_0xd2b962['is']('range')?_0xd2b962:zt(_0xd2b962,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5c181b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x546070,'accept');return this['forceDefaultExecution'](()=>_0x5c181b([_0x31aab7],_0x103625,_0x5963af)),null;}_0x4e0a59['push'](_0x31aab7);let _0x45fa06=!0x0;for(const _0x40059f of _0x4e0a59)if(!this['_rangeIsInLocalUserInsertion'](_0x40059f)){_0x45fa06=!0x1;break;}if(_0x45fa06&&'always'!==this['_trackFormatChanges']){const _0x223523=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x546070,'accept');return this['forceDefaultExecution'](()=>_0x223523([_0x31aab7],_0x103625,_0x5963af)),null;}let _0x301969=null,_0x2079a9=_0x31aab7['start'],_0x11437f=_0x31aab7['end'];for(const {suggestion:_0x39b196,meta:_0x26aa52}of this['_findSuggestions'](_0x31aab7,'formatBlock')){if(!_0x26aa52['isOwn'])continue;if(_0x26aa52['isNextTo']||_0x26aa52['containsRangeInObject']||_0x26aa52['isInsideObject'])continue;if(_0x39b196['data']['formatGroupId']!=_0x103625['formatGroupId'])continue;if(!Qt(_0x39b196,_0x5963af))continue;const _0xd1991f=_0x39b196['getFirstRange']();if(_0x39b196['subType']==_0x546070){if(_0xd1991f['containsRange'](_0x31aab7,!0x0))return null;_0x2079a9=_0x2079a9['isBefore'](_0xd1991f['start'])?_0x2079a9:_0xd1991f['start'],_0x11437f=_0x11437f['isAfter'](_0xd1991f['end'])?_0x11437f:_0xd1991f['end'],_0x301969?_0xd1991f['start']['isBefore'](_0x301969['getFirstRange']()['start'])?(_0x301969['removeMarkers'](),_0x301969=_0x39b196):_0x39b196['removeMarkers']():_0x301969=_0x39b196;}else{const _0x3e9a10=_0x31aab7['getIntersection'](_0xd1991f);this['_cutOutSuggestionMarker'](_0x39b196,_0x3e9a10);}}const _0x417937=this['editor']['plugins']['get']('Users')['me'],_0x463671=_0x4a76d0(),_0xab27ab=_0x417937['id'];if(_0x301969)return this['_setSuggestionRange'](_0x301969,this['_model']['createRange'](_0x2079a9,_0x11437f)),_0x301969;{const _0x1a6adc=this['_setSuggestionData']({'id':_0x463671,'type':'formatBlock:'+_0x546070,'data':_0x103625,'createdAt':new Date(),'authorId':_0xab27ab,'attributes':_0x5963af});return this['_addSuggestionMarker']('formatBlock:'+_0x546070,_0x463671,_0xab27ab,this['_model']['createRange'](_0x2079a9,_0x11437f)),_0x1a6adc;}}['markMultiRangeBlockFormat'](_0x931e05,_0x32e3e2,_0x33ea29=[],_0x2b42b4=null,_0x72c93b={}){_0x32e3e2['formatGroupId']||(_0x32e3e2['formatGroupId']=_0x32e3e2['commandName']);const _0xbd77dc=_0x931e05[0x0];_0x32e3e2['multipleBlocks']=_0xbd77dc['is']('range'),_0x2b42b4=_0x2b42b4||Jt(_0x32e3e2);const _0x29c2e8=_0x33ea29['map'](_0x3b8b37=>zt(_0x3b8b37,this['_model'])),_0x141981=_0xbd77dc['is']('range')?_0x931e05:_0x931e05['map'](_0x575f5b=>zt(_0x575f5b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x250cac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b42b4,'accept');return this['forceDefaultExecution'](()=>_0x250cac(_0x141981,_0x32e3e2,_0x72c93b)),null;}_0x29c2e8['push'](..._0x141981);let _0x485a63=!0x0;for(const _0x1b1f68 of _0x29c2e8)if(!this['_rangeIsInLocalUserInsertion'](_0x1b1f68)){_0x485a63=!0x1;break;}if(_0x485a63&&'always'!==this['_trackFormatChanges']){const _0x524d94=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b42b4,'accept');return this['forceDefaultExecution'](()=>_0x524d94(_0x141981,_0x32e3e2,_0x72c93b)),null;}const _0x41caf6=this['editor']['plugins']['get']('Users')['me'];for(const _0x4b37b8 of this['getSuggestions']()){if(_0x4b37b8['author']['id']!=_0x41caf6['id'])continue;if('formatBlock'!=_0x4b37b8['type']||_0x4b37b8['data']['formatGroupId']!=_0x32e3e2['formatGroupId'])continue;if(!Qt(_0x4b37b8,_0x72c93b))continue;const _0x221779=_0x4b37b8['subType']==_0x2b42b4;for(let _0x5b9a5c=0x0;_0x5b9a5c<_0x141981['length'];_0x5b9a5c++){const _0x3b22b3=_0x141981[_0x5b9a5c];for(const _0x4ea330 of _0x4b37b8['getMarkers']()){const _0x49565f=_0x4ea330['getRange']();if(_0x3b22b3['isEqual'](_0x49565f)){_0x221779?(_0x141981['splice'](_0x5b9a5c,0x1),_0x5b9a5c--):_0x4b37b8['removeMarker'](_0x4ea330['name']);break;}}}}if(0x0==_0x141981['length'])return null;const _0x5c844a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2b42b4,'join');for(const _0x23acfe of this['getSuggestions']())if(_0x23acfe['author']['id']==_0x41caf6['id']&&'formatBlock'==_0x23acfe['type']&&_0x23acfe['data']['formatGroupId']==_0x32e3e2['formatGroupId']&&_0x23acfe['subType']==_0x2b42b4&&Qt(_0x23acfe,_0x72c93b)&&(_0x5c844a(_0x23acfe['getRanges'](),_0x141981)||_0x5c844a(_0x141981,_0x23acfe['getRanges']()))){for(const _0x3db8cb of _0x141981)_0x23acfe['addRange'](_0x3db8cb);return _0x23acfe;}const _0x1a3da2=_0x4a76d0(),_0x23ba15=_0x41caf6['id'],_0x48c0be='formatBlock:'+_0x2b42b4,_0x1be29b=this['_setSuggestionData']({'id':_0x1a3da2,'type':_0x48c0be,'data':_0x32e3e2,'createdAt':new Date(),'authorId':_0x23ba15,'attributes':_0x72c93b});for(const _0x3e4542 of _0x141981)this['_addSuggestionMarker'](_0x48c0be,_0x1a3da2,_0x23ba15,_0x3e4542,u['getMultiRangeId']());return _0x1be29b;}['markDeletion'](_0x1d71a9,_0x7b5218=null,_0x391737={}){if(_0x1d71a9['isCollapsed'])return null;const _0x38621d=this['editor']['plugins']['get']('Users')['me'],_0x447e71=new _0x1f2c9d(_0x1d71a9['start'],_0x1d71a9['end']);for(const {suggestion:_0x1936f1,meta:_0x5c0f6b}of this['_findSuggestions'](_0x447e71,'insertion'))if(_0x5c0f6b['isOwn']&&!_0x5c0f6b['isNextTo']){if(_0x1936f1['isMultiRange']){const _0x42b14c=_0x1936f1['getRanges']()['filter'](_0x22c90e=>'$graveyard'!=_0x22c90e['root']['rootName']);_0x42b14c['every'](_0x1f55bc=>_0x447e71['containsRange'](_0x1f55bc,!0x0))&&_0x1936f1['discard']();if(_0x42b14c['some'](_0x47e538=>_0x47e538['containsRange'](_0x447e71,!0x0))){const _0x3a2b4e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x7b5218,'accept');return this['forceDefaultExecution'](()=>_0x3a2b4e([_0x447e71],null,_0x391737)),null;}}else{const _0xb05bb3=_0x447e71['getIntersection'](_0x1936f1['getFirstRange']());null!==_0xb05bb3&&_0x1936f1['_onDiscard']([_0xb05bb3],null,_0x391737);}}if(_0x447e71['detach'](),_0x447e71['isCollapsed']||'$graveyard'==_0x447e71['root']['rootName'])return null;let _0x41ab18=null,_0x3dfefb=_0x447e71['start'],_0x3dac06=_0x447e71['end'];const _0x681036=this['_findSuggestions'](_0x447e71,'deletion');for(const {suggestion:_0x1dcecb,meta:_0x462489}of _0x681036){const _0x2d6244=this['_model']['createRange'](_0x3dfefb,_0x3dac06);if(_0x462489['isOwn']&&(this['_mergeNestedSuggestions']||!_0x462489['containsRangeInObject']&&!_0x462489['isInsideObject'])){if(_0x1dcecb['isMultiRange']){if(!Qt(_0x1dcecb,_0x391737))continue;let _0x4b8237=!0x0;for(const _0x989139 of _0x1dcecb['getRanges']()){if(_0x989139['containsRange'](_0x2d6244,!0x0))return _0x1dcecb;_0x2d6244['containsRange'](_0x989139)||(_0x4b8237=!0x1);}_0x4b8237&&_0x1dcecb['discard']();}else{const _0x870da0=_0x1dcecb['getFirstRange']();if(_0x870da0['containsRange'](_0x2d6244,!0x0))return _0x1dcecb;if(!Qt(_0x1dcecb,_0x391737)){_0x2d6244['containsRange'](_0x870da0)?_0x1dcecb['removeMarkers']():_0x870da0['containsPosition'](_0x3dfefb)?_0x3dfefb=_0x870da0['end']:_0x870da0['containsPosition'](_0x3dac06)&&(_0x3dac06=_0x870da0['start']);continue;}_0x3dfefb=_0x3dfefb['isBefore'](_0x870da0['start'])?_0x3dfefb:_0x870da0['start'],_0x3dac06=_0x3dac06['isAfter'](_0x870da0['end'])?_0x3dac06:_0x870da0['end'],_0x391737=Object['assign']({},_0x1dcecb['attributes']),_0x41ab18?_0x870da0['start']['isBefore'](_0x41ab18['getFirstRange']()['start'])?(_0x41ab18['removeMarkers'](),_0x41ab18=_0x1dcecb):_0x1dcecb['removeMarkers']():_0x41ab18=_0x1dcecb;}}}if(_0x41ab18)return this['_setSuggestionRange'](_0x41ab18,this['_model']['createRange'](_0x3dfefb,_0x3dac06)),_0x41ab18;{const _0x495d2c=_0x4a76d0(),_0x33d2bd=this['_model']['createRange'](_0x3dfefb,_0x3dac06),_0x1e7166=_0x38621d['id'],_0x4a534b=_0x7b5218?'deletion:'+_0x7b5218:'deletion',_0x4eede7=this['_setSuggestionData']({'id':_0x495d2c,'type':_0x4a534b,'createdAt':new Date(),'authorId':_0x1e7166,'attributes':_0x391737});return this['_addSuggestionMarker'](_0x4a534b,_0x495d2c,_0x1e7166,_0x33d2bd),_0x4eede7;}}['markMultiRangeDeletion'](_0x23c69f,_0x267655='multi',_0x31b80b={}){const _0x19916e=this['editor']['plugins']['get']('Users')['me'],_0x9d362e=_0x23c69f['map'](_0x4b9c3f=>new _0x1f2c9d(_0x4b9c3f['start'],_0x4b9c3f['end'])),_0x4056d5=new Set();for(const {suggestion:_0x4a87d6,meta:_0x1ad743}of this['_findSuggestions'](_0x9d362e,'insertion'))_0x1ad743['isOwn']&&!_0x1ad743['isNextTo']&&_0x4056d5['add'](_0x4a87d6);for(const _0x533311 of _0x4056d5)if(_0x533311['isMultiRange']){const _0x2d9209=_0x533311['getRanges']();(!_0x533311['attributes']||!_0x533311['attributes']['skipNestingCheck'])&&(_0x2d9209['every'](_0x28679d=>_0x9d362e['some'](_0x36f321=>_0x36f321['containsRange'](_0x28679d,!0x0)))&&_0x533311['discard']());if(_0x9d362e['every'](_0x4e899d=>_0x2d9209['some'](_0xa66897=>_0xa66897['containsRange'](_0x4e899d,!0x0)))){const _0x2aaa56=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x267655,'accept');return this['forceDefaultExecution'](()=>_0x2aaa56(_0x23c69f,null,_0x31b80b)),null;}}else{const _0x500054=_0x533311['getFirstRange']();_0x9d362e['some'](_0x531a17=>_0x531a17['containsRange'](_0x500054,!0x0))&&_0x533311['discard']();if(_0x9d362e['every'](_0x520443=>_0x500054['containsRange'](_0x520443,!0x0))){const _0x342ffa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x267655,'accept');return this['forceDefaultExecution'](()=>_0x342ffa(_0x9d362e,null,_0x31b80b)),null;}}const _0x3d50d1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x267655,'join');let _0x59c687=null;for(const _0x4f7ee8 of this['getSuggestions']())if(_0x4f7ee8['author']['id']==_0x19916e['id']&&_0x4f7ee8['isInContent']&&'deletion'==_0x4f7ee8['type']&&_0x4f7ee8['subType']==_0x267655&&Qt(_0x4f7ee8,_0x31b80b)&&(_0x3d50d1(_0x4f7ee8['getRanges'](),_0x9d362e)||_0x3d50d1(_0x9d362e,_0x4f7ee8['getRanges']()))){if(_0x59c687){if(_0x4f7ee8['commentThread']&&_0x4f7ee8['commentThread']['length'])continue;for(const _0x54e320 of _0x4f7ee8['getRanges']())_0x59c687['isIntersectingWithRange'](_0x54e320)||_0x59c687['addRange'](_0x54e320);_0x4f7ee8['removeMarkers']();}else{_0x59c687=_0x4f7ee8;for(const _0x4bdb15 of _0x9d362e)_0x4f7ee8['isIntersectingWithRange'](_0x4bdb15)||_0x4f7ee8['addRange'](_0x4bdb15);}}if(_0x59c687)return _0x59c687;_0x4056d5['clear']();for(const {suggestion:_0x45c2d1,meta:_0x546a72}of this['_findSuggestions'](_0x9d362e,'deletion'))_0x546a72['isOwn']&&(this['_mergeNestedSuggestions']||!_0x546a72['containsRangeInObject']&&!_0x546a72['isInsideObject'])&&Qt(_0x45c2d1,_0x31b80b)&&_0x4056d5['add'](_0x45c2d1);for(const _0x556f66 of _0x4056d5){const _0x1d14ac=_0x556f66['getRanges']();if(!_0x31b80b||!_0x31b80b['skipNestingCheck']){if(_0x9d362e['every'](_0x45584b=>_0x1d14ac['some'](_0x4ba04d=>_0x4ba04d['containsRange'](_0x45584b,!0x0))))return _0x556f66;}(!_0x556f66['attributes']||!_0x556f66['attributes']['skipNestingCheck'])&&(_0x1d14ac['every'](_0x1d6e79=>_0x9d362e['some'](_0x3d08ba=>_0x3d08ba['containsRange'](_0x1d6e79,!0x0)))&&_0x556f66['discard']());}const _0x5af4e3=_0x4a76d0(),_0x724764=_0x19916e['id'],_0x37a603='deletion:'+_0x267655,_0x4b0f6d=this['_setSuggestionData']({'id':_0x5af4e3,'type':_0x37a603,'createdAt':new Date(),'authorId':_0x724764,'attributes':_0x31b80b});for(const _0x465f5e of _0x9d362e)_0x465f5e['detach'](),_0x465f5e['isCollapsed']||'$graveyard'==_0x465f5e['root']['rootName']||this['_addSuggestionMarker'](_0x37a603,_0x5af4e3,_0x724764,_0x465f5e,u['getMultiRangeId']());return _0x4b0f6d;}['markAttributeChange'](_0x5dbd56,_0x159521,_0x17bbe7,_0x18e910,_0x5ac78a){if(_0x5dbd56['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x52d025=this['editor']['plugins']['get']('Users')['me']['id'],_0x4e787a=Array['from'](this['_suggestions']['values']())['filter'](_0x48eeca=>'attribute'==_0x48eeca['type']&&_0x48eeca['data']['key']==_0x159521&&_0x48eeca['isIntersectingWithRange'](_0x5dbd56));if('default'===this['_trackFormatChanges']){const _0x44c458=this['_findSuggestions'](_0x5dbd56,'insertion')['filter'](({meta:_0x36d23f})=>_0x36d23f['isOwn']&&!_0x36d23f['isInsideObject']&&!_0x36d23f['isNextTo'])['map'](({suggestion:_0x30252c})=>_0x30252c);_0x4e787a['unshift'](..._0x44c458);}const _0xe02509=new Map([[_0x5dbd56,_0x17bbe7]]);for(const _0x3cb4f0 of _0x4e787a){const _0x32e7aa='attribute'==_0x3cb4f0['type']?_0x3cb4f0['data']['oldValue']:void 0x0,_0x5f33a4=_0x3cb4f0['getFirstRange'](),_0x102569=Array['from'](_0xe02509['keys']())['find'](_0x5e986b=>_0x5e986b['isIntersecting'](_0x5f33a4));if(!_0x102569)continue;const _0x51c8e1=_0x102569['getDifference'](_0x5f33a4);this['_isBlockAttribute'](_0x159521)&&'insertion'==_0x3cb4f0['type']&&0x0!=_0x51c8e1['length']||(_0xe02509['delete'](_0x102569),_0x51c8e1['forEach'](_0x1af462=>{_0xe02509['set'](_0x1af462,_0x17bbe7);}),'insertion'!=_0x3cb4f0['type']&&_0x32e7aa!=_0x18e910&&_0xe02509['set'](_0x102569['getIntersection'](_0x5f33a4),_0x32e7aa));}const _0x31c63c=[];for(const [_0x54c339,_0x16ec3e]of _0xe02509){const _0x320ffc=_0x4a76d0(),_0x547a79={'key':_0x159521,'oldValue':_0x16ec3e,'newValue':_0x18e910};_0x159521['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':_0x159521});const _0x16d756=('attribute:'+(_0x159521+'|'+Jt({'newValue':_0x18e910})))['substring'](0x0,0x3c),_0x26c29f=this['_setSuggestionData']({'id':_0x320ffc,'type':_0x16d756,'data':_0x547a79,'createdAt':new Date(),'authorId':_0x52d025,'attributes':_0x5ac78a});_0x31c63c['push'](_0x26c29f),this['_addSuggestionMarker'](_0x16d756,_0x320ffc,_0x52d025,_0x54c339);}return _0x31c63c;}['enableDefaultAttributesIntegration'](_0x413252){this['enableCommand'](_0x413252,(_0x567747,..._0x46db41)=>{this['_recordAttributeChanges'](()=>{_0x567747(..._0x46db41);});});}['registerBlockAttribute'](_0x5b1086){this['_blockAttributeKeys']['add'](_0x5b1086);}['registerInlineAttribute'](_0x2246dd){this['_inlineAttributeKeys']['add'](_0x2246dd);}['_getAttributeKey'](_0x21c521){return'attribute'==_0x21c521['type']?_0x21c521['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xdc2651,_0x4fb7f5){const _0x4705cf=_0xdc2651['getFirstMarker']();this['_model']['change'](_0x1b6c23=>{_0x1b6c23['updateMarker'](_0x4705cf,{'range':_0x4fb7f5});});}['_addThreadToSuggestion'](_0x462d8e){const _0x27670c=_0x462d8e['id'],_0x219a7e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x27670c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x219a7e,'threadId':_0x27670c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3a0a51=this['_commentsRepository']['getCommentThread'](_0x27670c);_0x3a0a51['unbind']('isRemovable'),_0x3a0a51['isRemovable']=!0x1,_0x462d8e['commentThread']=_0x3a0a51;}['_checkSuggestionCorrectness'](_0xb32aaf,_0x3c277b,_0x4e8c9e,_0x14254d){if(_0xb32aaf['type']!=_0x3c277b||_0xb32aaf['subType']!=_0x4e8c9e||_0xb32aaf['creator']['id']!=_0x14254d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x287d2d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4e841a,_0x2faaf1){const _0x4d3b85=_0x4e841a['getFirstRange']();if(_0x2faaf1['isEqual'](_0x4d3b85))_0x4e841a['removeMarkers']();else{if(_0x4d3b85['containsRange'](_0x2faaf1)){const _0x42e23b=this['_model']['createPositionAt'](_0x2faaf1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e841a,this['_model']['createRange'](_0x4d3b85['start'],_0x42e23b));const _0x1f5e06=_0x4a76d0(),_0x2c2686=_0x4e841a['creator']['id'],_0x15edba=_0x4e841a['type']+':'+_0x4e841a['subType'];this['_setSuggestionData']({'id':_0x1f5e06,'type':_0x15edba,'createdAt':new Date(),'authorId':_0x2c2686,'data':_0x4e841a['data'],'attributes':_0x4e841a['attributes']});const _0x555a9a=this['_model']['createPositionAt'](_0x2faaf1['end']['parent'],'after'),_0x54ac32=this['_model']['createRange'](_0x555a9a,_0x4d3b85['end']);this['_addSuggestionMarker'](_0x15edba,_0x1f5e06,_0x2c2686,_0x54ac32);}else{if(_0x4d3b85['containsPosition'](_0x2faaf1['start'])){const _0x528bdc=this['_model']['createPositionAt'](_0x2faaf1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e841a,this['_model']['createRange'](_0x4d3b85['start'],_0x528bdc));}else{const _0x4151b=this['_model']['createPositionAt'](_0x2faaf1['end']['parent'],'after');this['_setSuggestionRange'](_0x4e841a,this['_model']['createRange'](_0x4151b,_0x4d3b85['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x389592){for(const {suggestion:_0xffd66a,meta:_0x198a82}of this['_findSuggestions'](_0x389592,'insertion')){if(!_0x198a82['isOwn'])continue;const _0x20daaa=_0xffd66a['getRanges']();for(const _0x4fe6ca of _0x20daaa)if(!_0x389592['getDifference'](_0x4fe6ca)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x236a18){const _0x3e93cb=this['editor']['plugins']['get']('Users')['getUser'](_0x236a18);if(!_0x3e93cb)throw new _0x287d2d('track-changes-user-not-found',this);return _0x3e93cb;}['_getExternalAuthor'](_0x189c7f){const _0x438247=this['editor']['plugins']['get']('Users'),_0x3197cf=_0x130bb8('external:'+_0x189c7f),_0x3f5ed8=_0x438247['getUser'](_0x3197cf);return _0x3f5ed8||_0x438247['addUser']({'id':_0x3197cf,'name':_0x189c7f});}['_createSuggestion'](_0x325e87,_0x412600,_0x15f0b4,_0x3225dd,_0x43bdbd){const _0x4aa447=this['_getAuthorFromId'](_0x3225dd),_0x46fa02=this['_suggestionFactory']['buildSuggestion'](_0x325e87,_0x412600,_0x15f0b4,_0x4aa447,_0x43bdbd,_0x49c1ba=>{this['_updateSuggestionData'](_0x15f0b4,{'attributes':_0x49c1ba});const _0x6fd8ed=this['getSuggestion'](_0x15f0b4);this['_joinWithAdjacentSuggestions'](new Set([_0x6fd8ed])),this['_refreshSuggestionsChain'](new Set([_0x6fd8ed]));});return this['listenTo'](_0x46fa02,'accept',()=>{this['_updateSuggestionData'](_0x15f0b4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x46fa02,'discard',()=>{this['_updateSuggestionData'](_0x15f0b4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x15f0b4,_0x46fa02),this['_suggestionState']['set'](_0x46fa02,'notReady'),_0x46fa02;}['_splitMarkerName'](_0x4a5c7c){const _0x3eafdd=_0x4a5c7c['split'](':');return{'group':_0x3eafdd[0x0],'type':_0x3eafdd[0x1],'subType':_0x3eafdd['length']>=0x5?_0x3eafdd[0x2]:null,'id':_0x3eafdd['length']<0x5?_0x3eafdd[0x2]:_0x3eafdd[0x3],'authorId':_0x3eafdd['length']<0x5?_0x3eafdd[0x3]:_0x3eafdd[0x4],'markerCount':0x6==_0x3eafdd['length']?_0x3eafdd[0x5]:null};}['_breakSuggestionMarker'](_0x135119,_0x3fe996,_0x5b5308){const _0x23e0a4=_0x135119['getFirstRange'](),_0x49b144=_0x23e0a4['start'],_0x4bb0e0=_0x23e0a4['end'];this['_setSuggestionRange'](_0x135119,this['_model']['createRange'](_0x49b144,_0x3fe996));const _0x121f00=_0x4a76d0(),_0x18cd7e=_0x135119['creator']['id'],_0xe02df8=_0x135119['type']+(_0x135119['subType']?':'+_0x135119['subType']:'');this['_setSuggestionData']({'id':_0x121f00,'type':_0xe02df8,'createdAt':new Date(),'authorId':_0x18cd7e,'originalSuggestionId':_0x135119['id'],'attributes':_0x135119['attributes'],'data':_0x135119['data']});const _0x3c0b8f=this['_getAttributeKey'](_0x135119);('formatBlock'==_0x135119['type']||_0x3c0b8f&&this['_isBlockAttribute'](_0x3c0b8f))&&(_0x5b5308=this['_model']['createPositionBefore'](_0x5b5308['parent'])),this['_addSuggestionMarker'](_0xe02df8,_0x121f00,_0x18cd7e,this['_model']['createRange'](_0x5b5308,_0x4bb0e0));}['_findSuggestions'](_0x7954dd,_0xc38650=null){const _0x541086=[],_0x5ab7c4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x7954dd)||(_0x7954dd=[_0x7954dd]);for(const _0x3ac3c9 of this['getSuggestions']()){if(!_0x3ac3c9['isInContent'])continue;if(_0xc38650&&_0x3ac3c9['type']!=_0xc38650)continue;let _0x4ba2e6=!0x1;for(const _0x1f3b8a of _0x3ac3c9['getRanges']()){for(const _0x5dbca2 of _0x7954dd){const _0x491592=_0x5dbca2['start']['isEqual'](_0x1f3b8a['end'])||_0x5dbca2['end']['isEqual'](_0x1f3b8a['start']);if(_0x491592||_0x5dbca2['getIntersection'](_0x1f3b8a)){const _0x32d135=_0x5dbca2['containsRange'](_0x1f3b8a)&&Gt(this['_model']['schema'],_0x1f3b8a['start'],_0x5dbca2),_0x553c49=_0x1f3b8a['containsRange'](_0x5dbca2)&&Gt(this['_model']['schema'],_0x5dbca2['start'],_0x1f3b8a);_0x541086['push']({'suggestion':_0x3ac3c9,'meta':{'isOwn':_0x5ab7c4==_0x3ac3c9['author'],'isNextTo':_0x491592,'isInsideObject':_0x32d135,'containsRangeInObject':_0x553c49}}),_0x4ba2e6=!0x0;break;}}if(_0x4ba2e6)break;}}return _0x541086;}['_addSuggestionMarker'](_0x3f4bdc,_0x4d0c6c,_0x55223a,_0x13a642,_0x4787aa){this['_model']['change'](_0x3eeb8a=>{let _0x164f52='suggestion:'+_0x3f4bdc+':'+_0x4d0c6c+':'+_0x55223a;_0x4787aa&&(_0x164f52=_0x164f52+':'+_0x4787aa),_0x3eeb8a['addMarker'](_0x164f52,{'range':_0x13a642,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4bd020){const _0x5c139a=_0x4bd020['previous'],_0x11f1f1=_0x4bd020['next'];_0x4bd020['previous']=null,_0x4bd020['next']=null,null!=_0x5c139a&&_0x5c139a['next']==_0x4bd020&&(_0x5c139a['next']=_0x11f1f1),null!=_0x11f1f1&&_0x11f1f1['previous']==_0x4bd020&&(_0x11f1f1['previous']=_0x5c139a),'ready'==this['_suggestionState']['get'](_0x4bd020)&&(this['_suggestionState']['set'](_0x4bd020,'removed'),this['fire']('suggestionUnloaded',_0x4bd020,_0x5c139a,_0x11f1f1));}['_setSuggestionData'](_0x2cc65f){const _0x522247=_0x2cc65f['id'],_0x166aa9=this['addSuggestionData'](_0x2cc65f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x269588=this['editor']['plugins']['get']('PendingActions'),_0x1f5423=_0x166aa9['hasComments'],_0x4d9cf1=_0x166aa9['subType']?_0x166aa9['type']+':'+_0x166aa9['subType']:_0x166aa9['type'],_0x2bef5d=this['editor']['locale'],_0x698ffc=_0x269588['add'](o(_0x2bef5d,'PENDING_ACTION_SUGGESTION')),_0x2386d9={'id':_0x522247,'type':_0x4d9cf1,'hasComments':_0x1f5423,'data':_0x2cc65f['data']||null,'originalSuggestionId':_0x2cc65f['originalSuggestionId']||null,'attributes':_0x166aa9['attributes']};this['_adapter']['addSuggestion'](_0x2386d9)['then'](_0x357130=>{_0x166aa9['_saved']=!0x0,_0x269588['remove'](_0x698ffc),_0x357130&&_0x357130['createdAt']&&(this['_suggestions']['get'](_0x522247)['createdAt']=_0x357130['createdAt']);})['catch'](_0x45ecfa=>{throw _0x4a6cd8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x166aa9['discard']();}),_0x166aa9['stopListening'](),this['_suggestions']['delete'](_0x166aa9['id']),this['_suggestionState']['delete'](_0x166aa9),_0x45ecfa;});}return _0x166aa9;}['_isBlockAttribute'](_0x57e693){return this['_blockAttributeKeys']['has'](_0x57e693);}['_updateSuggestionData'](_0x5736be,_0xa8fb0a){const _0x1d7f00=this['editor']['plugins']['get']('PendingActions'),_0x1fced4=this['getSuggestion'](_0x5736be);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1fced4['_saved']){const _0x31748e=_0x1d7f00['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5736be,_0xa8fb0a)['then'](()=>{_0x1d7f00['remove'](_0x31748e);});}else _0x1fced4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5736be,_0xa8fb0a);});}}['_getSuggestionData'](_0x25a295){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x287d2d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x25a295);}['_handleNewSuggestionMarker'](_0x31de8a){const {id:_0xe48deb,type:_0xdbaf0a,subType:_0x3404e6,authorId:_0x3e1185}=this['_splitMarkerName'](_0x31de8a),_0x1b1d14=this['_suggestions']['get'](_0xe48deb)||this['_createSuggestion'](_0xdbaf0a,_0x3404e6,_0xe48deb,_0x3e1185,{});switch(this['_checkSuggestionCorrectness'](_0x1b1d14,_0xdbaf0a,_0x3404e6,_0x3e1185),this['_suggestionState']['get'](_0x1b1d14)){case'notReady':this['_getSuggestionData'](_0xe48deb)['then'](_0x1fd35f=>{let _0x24c38c=Promise['resolve']();_0x1fd35f['hasComments']&&(_0x24c38c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xe48deb})),_0x24c38c['then'](()=>{this['addSuggestionData'](_0x1fd35f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1b1d14,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xe48deb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1b1d14,'ready'),this['fire']('suggestionLoaded',_0x1b1d14);break;case'ready':this['fire']('suggestionChanged',_0x1b1d14);}return _0x1b1d14['addMarkerName'](_0x31de8a),_0x1b1d14;}['_refreshSuggestionsChain'](_0x7902f9){const _0x262a48=Array['from'](_0x7902f9),_0x9f53bf=_0x262a48['filter'](_0x5b085b=>'attribute'==_0x5b085b['type']);this['_refreshAttributeSuggestionsChain'](_0x9f53bf);const _0x5f0bde=_0x262a48['filter'](_0x4b252c=>!_0x4b252c['isMultiRange']&&'attribute'!=_0x4b252c['type']),_0x5c31ff=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40b8ca=>!_0x40b8ca['isMultiRange']&&'attribute'!=_0x40b8ca['type']),_0x333562=_0x5c31ff['filter'](_0x5ec831=>!_0x7902f9['has'](_0x5ec831)),_0x50064a=new Map(_0x5c31ff['map'](_0x11102f=>[_0x11102f,this['_suggestionFactory']['getSuggestionCallback'](_0x11102f['type'],_0x11102f['subType'],'chain')])),_0x2c72aa=new Map(_0x5c31ff['map'](_0x49d4b8=>[_0x49d4b8,_0x49d4b8['getFirstRange']()])),_0x1f24c6=new Set(),_0x15bb16=new Set();for(let _0x127d42=0x0;_0x127d42<_0x5f0bde['length'];_0x127d42++)_0x456648(_0x5f0bde[_0x127d42],_0x5f0bde,_0x127d42+0x1);for(let _0x17cc72=0x0;_0x17cc72<_0x5f0bde['length'];_0x17cc72++)_0x456648(_0x5f0bde[_0x17cc72],_0x333562,0x0);const _0x150477=new Set();for(let _0x26386b=0x0;_0x26386b<_0x5f0bde['length'];_0x26386b++){const _0x426cde=_0x5f0bde[_0x26386b];!_0x15bb16['has'](_0x426cde)&&_0x426cde['previous']&&(_0x150477['add'](_0x426cde['previous']),_0x426cde['previous']['next']===_0x426cde&&(_0x426cde['previous']['next']=null),_0x426cde['previous']=null),!_0x1f24c6['has'](_0x426cde)&&_0x426cde['next']&&(_0x150477['add'](_0x426cde['next']),_0x426cde['next']['previous']===_0x426cde&&(_0x426cde['next']['previous']=null),_0x426cde['next']=null);}function _0x456648(_0xe56cae,_0x411ccf,_0x5bfdf8){for(let _0x515799=_0x5bfdf8;_0x515799<_0x411ccf['length'];_0x515799++){const _0x193bf8=_0xb51d14(_0xe56cae,_0x411ccf[_0x515799]);_0x193bf8&&(_0x193bf8[0x0]['next']=_0x193bf8[0x1],_0x193bf8[0x1]['previous']=_0x193bf8[0x0],_0x1f24c6['add'](_0x193bf8[0x0]),_0x15bb16['add'](_0x193bf8[0x1]));}}function _0xb51d14(_0x101ba9,_0x531bcd){if(_0x101ba9['author']['id']!==_0x531bcd['author']['id'])return null;const _0x56199a=_0x50064a['get'](_0x101ba9)(_0x101ba9,_0x531bcd,_0x2c72aa['get'](_0x101ba9),_0x2c72aa['get'](_0x531bcd));if(!_0x56199a)return null;return _0x50064a['get'](_0x531bcd)(_0x101ba9,_0x531bcd,_0x2c72aa['get'](_0x101ba9),_0x2c72aa['get'](_0x531bcd))?_0x56199a[0x1]['commentThread']&&_0x56199a[0x1]['commentThread']['length']?null:_0x56199a:null;}_0x150477['size']&&this['_refreshSuggestionsChain'](_0x150477);}['_refreshAttributeSuggestionsChain'](_0x12e568){if(0x0==_0x12e568['length'])return;const _0x2ac1fa=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6c709d=>'attribute'==_0x6c709d['type']&&_0x6c709d['_isDataLoaded']),_0x35a736=[],_0x47c5fb=new Map();for(const _0x171cda of _0x2ac1fa){const _0x4d70f5=_0x130bb8(_0x171cda['attributes']);_0x47c5fb['has'](_0x4d70f5)||(_0x47c5fb['set'](_0x4d70f5,_0x35a736['length']),_0x35a736['push']([]));const _0x117fa6=_0x47c5fb['get'](_0x4d70f5);_0x35a736[_0x117fa6]['push'](_0x171cda);}!(function(){_0x35a736['sort']((_0x2c234b,_0x597a48)=>{const _0x563707=_0x2c234b[0x0]['createdAt'],_0x37e813=_0x597a48[0x0]['createdAt'];return _0x563707==_0x37e813?_0x2c234b[0x0]['attributes']['groupId']<_0x597a48[0x0]['attributes']['groupId']?-0x1:0x1:_0x563707<_0x37e813?-0x1:0x1;});for(const _0x33a9ed of _0x35a736)_0x33a9ed['sort']((_0x57d7b2,_0x2ee31)=>_0x57d7b2['id']<_0x2ee31['id']?-0x1:0x1);}());for(let _0x21714b=0x0;_0x21714b<_0x35a736['length'];_0x21714b++){if(0x0==_0x35a736[_0x21714b]['length'])continue;const _0x1dc7fe=[];for(let _0x52b6c4=_0x21714b+0x1;_0x52b6c4<_0x35a736['length'];_0x52b6c4++)0x0!=_0x35a736[_0x52b6c4]['length']&&_0x83ba5b(_0x35a736[_0x21714b],_0x35a736[_0x52b6c4])&&_0x1dc7fe['push'](_0x52b6c4);for(const _0x2927c3 of _0x1dc7fe)_0x35a736[_0x21714b]=_0x35a736[_0x21714b]['concat'](_0x35a736[_0x2927c3]),_0x35a736[_0x2927c3]=[];}for(const _0x27290f of _0x35a736)for(let _0x35b4f7=0x0;_0x35b4f7<_0x27290f['length'];_0x35b4f7++){const _0x24fcd4=_0x27290f[_0x35b4f7+0x1]||null;_0x27290f[_0x35b4f7]['next']!==_0x24fcd4&&(_0x27290f[_0x35b4f7]['next']=_0x24fcd4);}for(const _0x24f98e of _0x35a736)for(let _0x383b7b=0x0;_0x383b7b<_0x24f98e['length'];_0x383b7b++){const _0x2bc832=_0x24f98e[_0x383b7b-0x1]||null;_0x24f98e[_0x383b7b]['previous']!==_0x2bc832&&(_0x24f98e[_0x383b7b]['previous']=_0x2bc832);}function _0x83ba5b(_0x4fb7bd,_0x18d44b){if(_0x4fb7bd[0x0]['attributes']['groupId']!==_0x18d44b[0x0]['attributes']['groupId']&&_0x4fb7bd[0x0]['author']!==_0x18d44b[0x0]['author'])return!0x1;if(!function(_0x3db511,_0x1ed8da){if(!_0x3db511['hasComments']&&!_0x1ed8da['hasComments'])return!0x0;if(_0x3db511['hasComments']&&_0x1ed8da['hasComments'])return!0x1;if(_0x3db511['hasComments']&&_0x1ed8da['createdAt']<_0x3db511['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1ed8da['hasComments']&&_0x3db511['createdAt']<_0x1ed8da['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4fb7bd[0x0],_0x18d44b[0x0]))return!0x1;const _0x55c674=Vt(_0x4fb7bd[0x0]['attributes'],'groupId'),_0x203b6a=Vt(_0x18d44b[0x0]['attributes'],'groupId');if(!_0x3b44e1(_0x55c674,_0x203b6a))return!0x1;return!!_0x4fb7bd['every'](_0x57eb71=>_0x18d44b['some'](_0x5c8fc2=>_0x57eb71['getFirstRange']()['isEqual'](_0x5c8fc2['getFirstRange']())))&&_0x18d44b['every'](_0x355c26=>_0x4fb7bd['some'](_0x15f53e=>_0x355c26['getFirstRange']()['isEqual'](_0x15f53e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3f1ee7){const _0x21fba8=Array['from'](_0x3f1ee7),_0x61688d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1379a5=_0x61688d['filter'](_0x2a776c=>!_0x3f1ee7['has'](_0x2a776c)),_0x23e681=new Map(_0x21fba8['map'](_0x3626e1=>[_0x3626e1,this['_suggestionFactory']['getSuggestionCallback'](_0x3626e1['type'],_0x3626e1['subType'],'join')])),_0x289cd5=new Map(_0x61688d['map'](_0xbf4541=>[_0xbf4541,_0xbf4541['getRanges']()]));for(let _0x2721d9=0x0;_0x2721d9<_0x21fba8['length'];_0x2721d9++){if(_0x430803(this,_0x21fba8[_0x2721d9],_0x21fba8,_0x2721d9+0x1))return!0x0;}for(let _0x4c97f4=0x0;_0x4c97f4<_0x21fba8['length'];_0x4c97f4++){if(_0x430803(this,_0x21fba8[_0x4c97f4],_0x1379a5,0x0))return!0x0;}return!0x1;function _0x430803(_0x2a3303,_0xf7e0ea,_0x5f119a,_0x397a95){for(let _0x159c00=_0x397a95;_0x159c00<_0x5f119a['length'];_0x159c00++){const _0xc55565=_0x5f119a[_0x159c00];if(_0xc55565['type']!==_0xf7e0ea['type']||_0xc55565['author']['id']!==_0xf7e0ea['author']['id']||_0xc55565['subType']!==_0xf7e0ea['subType'])continue;if(!Wt(_0xf7e0ea,_0xc55565))continue;if('attribute'==_0xf7e0ea['type']&&_0xf7e0ea['data']['oldValue']!=_0xc55565['data']['oldValue'])continue;if('attribute'==_0xf7e0ea['type']&&_0x2a3303['_isBlockAttribute'](_0xf7e0ea['data']['key']))continue;if('formatBlock'==_0xf7e0ea['type']){const _0x1a1108=_0x2a3303['editor']['model'],_0x8cda0a=_0xf7e0ea['getContainedElement']();if(_0x8cda0a&&(_0x1a1108['schema']['isObject'](_0x8cda0a)||_0x1a1108['schema']['isLimit'](_0x8cda0a)))continue;}const _0x1567c9=_0x23e681['get'](_0xf7e0ea),_0xff4b7f=_0x289cd5['get'](_0xf7e0ea),_0x157c1d=_0x289cd5['get'](_0xc55565),_0x376763=_0xf7e0ea['commentThread']&&_0xf7e0ea['commentThread']['length'],_0x5db7a1=_0xc55565['commentThread']&&_0xc55565['commentThread']['length'];if(!_0x376763&&_0x1567c9(_0x157c1d,_0xff4b7f))return _0x2a3303['_joinSuggestions'](_0xc55565,_0xf7e0ea),_0x289cd5['delete'](_0xf7e0ea),!0x0;if(!_0x5db7a1&&_0x1567c9(_0xff4b7f,_0x157c1d))return _0x2a3303['_joinSuggestions'](_0xf7e0ea,_0xc55565),_0x289cd5['delete'](_0xc55565),!0x0;}return!0x1;}}['_joinSuggestions'](_0x321c8d,_0x50ad01){if(_0x321c8d['isMultiRange']){for(const _0x50c228 of _0x50ad01['getRanges']())_0x321c8d['addRange'](_0x50c228);}else{const _0x328739=_0x50ad01['getFirstRange']()['end'];this['_setSuggestionRange'](_0x321c8d,this['_model']['createRange'](_0x321c8d['getFirstRange']()['start'],_0x328739));}_0x50ad01['removeMarkers']();}['_getMarkerAnnouncementText'](_0x70cbcc,_0x9264d7,_0x46185e){const _0x4f6942=_0x70cbcc['startsWith']('format')||_0x70cbcc['startsWith']('attribute')?'FORMATTING':_0x70cbcc['toUpperCase']();return o(this['editor']['locale'],_0x9264d7+'_'+_0x4f6942+'_SUGGESTION_ANNOUNCEMENT',_0x46185e);}['_initAriaMarkerChangeAnnouncements'](){const _0x42f126=this['editor'];if(!_0x42f126['ui'])return;const {ariaLiveAnnouncer:_0x502888}=_0x42f126['ui'];_0x47c533(this['_model'],({left:_0x2afba5,entered:_0x4aa34f})=>{for(const _0x1928d5 of _0x2afba5){const {group:_0x463d77,type:_0x34698e}=this['_splitMarkerName'](_0x1928d5['name']);if('suggestion'===_0x463d77){_0x502888['announce'](this['_getMarkerAnnouncementText'](_0x34698e,'LEAVE'));break;}}for(const _0x26002b of _0x4aa34f){const {group:_0xb9f209,type:_0x5e1f41}=this['_splitMarkerName'](_0x26002b['name']);if('suggestion'===_0xb9f209){_0x502888['announce'](this['_getMarkerAnnouncementText'](_0x5e1f41,'ENTER',_0x2c0470(_0x3c1e1f)));break;}}});}['_processAttributeChanges'](_0x124fb4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3af5af=this['editor'],_0x4c1e47=_0x3af5af['model']['document']['differ']['getChanges']();if(0x0==_0x4c1e47['length'])return!0x1;const _0xca5cab=[],_0x1bb829=_0x4c1e47['filter'](_0x53abe8=>'attribute'==_0x53abe8['type']),_0xa43226=_0x4c1e47['filter'](_0x45563f=>'insert'==_0x45563f['type']&&'$text'!=_0x45563f['name']),_0x1e462e=_0x4c1e47['filter'](_0x1793a6=>'remove'==_0x1793a6['type']&&'$text'!=_0x1793a6['name']);for(const _0x143763 of _0x1bb829)_0xca5cab['push']({'key':_0x143763['attributeKey'],'newValue':_0x143763['attributeNewValue'],'oldValue':_0x143763['attributeOldValue'],'range':qt(_0x143763['range'],_0x3af5af['model'])});for(const _0x248f05 of _0xa43226){const _0x58d3b4=_0x1e462e['find'](_0x2e1cab=>_0x2e1cab['position']['isEqual'](_0x248f05['position']));_0x58d3b4&&_0xca5cab['push']({'key':m,'newValue':_0x248f05['name'],'oldValue':_0x58d3b4['name'],'range':_0x3af5af['model']['createRangeOn'](_0x248f05['position']['nodeAfter'])});}return 0x0!=_0xca5cab['length']&&this['_reduceExistingSuggestions'](_0x124fb4,_0xca5cab);}['_processAttributeSuggestions'](_0x1407d4){let _0x563318=!0x1;const _0x559524=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4769c0=>_0x4769c0['data']['newRange']&&_0x4769c0['name']['startsWith']('suggestion:attribute:'));for(const _0x57d57a of _0x559524){const {subType:_0x118f86,id:_0x91692b}=this['_splitMarkerName'](_0x57d57a['name']),_0x238863=_0x118f86['split']('|')[0x0];for(const _0x5dd91c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5dd91c['id']!=_0x91692b&&'attribute'==_0x5dd91c['type']&&_0x5dd91c['data']&&_0x5dd91c['data']['key']==_0x238863&&_0x5dd91c['getFirstRange']()['isIntersecting'](_0x57d57a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5dd91c,_0x57d57a['data']['newRange'],_0x1407d4),_0x563318=!0x0);}return _0x563318;}['_recordAttributeChanges'](_0x41fa7e){this['_recordAttributeSuggestions']=!0x0,_0x41fa7e();}['_isRegisteredAttribute'](_0x599afc){const _0x441289=this['_isBlockAttribute'](_0x599afc),_0x26c030=this['_inlineAttributeKeys']['has'](_0x599afc);return _0x441289||_0x26c030;}['_reduceExistingSuggestions'](_0x18b26d,_0x11bfd0){if(0x0==_0x11bfd0['length'])return!0x1;let _0x55a85d=!0x1;for(const _0x2206dd of _0x11bfd0){const _0xf731e4=this['_findSuggestions'](_0x2206dd['range'],'attribute')['filter'](_0x460de1=>!_0x460de1['meta']['isNextTo'])['map'](_0x283261=>_0x283261['suggestion']),_0x377a68=_0x130bb8({'newValue':_0x2206dd['newValue']});_0xf731e4['filter'](_0x499872=>{const [_0x35feb7,_0x131484]=_0x499872['subType']['split']('|');return _0x35feb7==_0x2206dd['key']&&_0x131484!=_0x377a68;})['forEach'](_0x5c80c7=>{this['_reduceSuggestionAttributeRange'](_0x5c80c7,_0x2206dd['range'],_0x18b26d),_0x55a85d=!0x0;});}return _0x55a85d;}['_reduceSuggestionAttributeRange'](_0x4260d6,_0x336f87,_0x3c4e61){const _0x4c6b7a=_0x4260d6['getFirstRange']()['getDifference'](_0x336f87);0x0!==_0x4c6b7a['length']?0x1!==_0x4c6b7a['length']?this['_breakSuggestionMarker'](_0x4260d6,_0x336f87['start'],_0x336f87['end']):this['_setSuggestionRange'](_0x4260d6,_0x4c6b7a[0x0]):_0x3c4e61['removeMarker'](_0x4260d6['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x493680){this['_editor']=_0x493680,this['_model']=_0x493680['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x293f8c,_0x5414d3,_0x5c518a,_0x2e4586,_0x45c6ba,_0x373cf9){return new u(this['_model'],{'type':_0x293f8c,'subType':_0x5414d3,'id':_0x5c518a,'author':_0x2e4586,'creator':_0x2e4586,'attributes':_0x45c6ba,'onAttributesChange':_0x373cf9,'onAccept':(..._0x3605ff)=>this['getSuggestionCallback'](_0x293f8c,_0x5414d3,'accept')(..._0x3605ff),'onDiscard':(..._0x4fb4cf)=>this['getSuggestionCallback'](_0x293f8c,_0x5414d3,'discard')(..._0x4fb4cf)});}['registerCustomCallback'](_0xbaf184,_0xcafad0,_0x562fc6,_0x275b30){const _0x3a8a8d=_0xbaf184+':'+_0xcafad0+':'+_0x562fc6;this['_customCallbacks']['set'](_0x3a8a8d,_0x275b30);}['getSuggestionCallback'](_0x4cce27,_0x1cdcf1,_0x445b70){const _0x3acddd=_0x4cce27+':'+_0x1cdcf1+':'+_0x445b70;return this['_customCallbacks']['get'](_0x3acddd)||this['_defaultCallbacks']['get'](_0x4cce27+':'+_0x445b70);}['_registerDefaultCallbacks'](){const _0xf07682=()=>!0x1,_0x52c75e=_0x47d2fa=>{_0x47d2fa['sort']((_0x1d73bd,_0xd8de12)=>_0x1d73bd['start']['isBefore'](_0xd8de12['start'])?0x1:-0x1),this['_model']['change'](_0x1ea620=>{for(const _0x145499 of _0x47d2fa){let _0x2b4188;_0x2b4188=_0x145499['end']['isAtEnd']&&_0x145499['end']['parent']==_0x145499['start']['nodeAfter']?_0x1ea620['createSelection'](_0x145499['start']['nodeAfter'],'on'):_0x1ea620['createSelection'](_0x145499),this['_model']['deleteContent'](_0x2b4188,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x46c07a=(_0x24af03,_0x4358a6)=>{_0x4358a6&&this['_model']['change'](_0x327ba0=>{const {commandName:_0x59c91c,commandParams:_0x145cce=[]}=_0x4358a6,_0x54d2a0=_0x24af03['map'](_0x5cca76=>(Ft(_0x5cca76)&&(_0x5cca76=this['_model']['createRange'](_0x5cca76['end'])),_0x5cca76))['filter'](_0x19bfdc=>'$graveyard'!==_0x19bfdc['root']['rootName']);if(_0x54d2a0['length']<0x1)return;const _0x52525d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5796e6=>_0x1f2c9d['fromRange'](_0x5796e6));_0x327ba0['setSelection'](_0x54d2a0);for(const _0x22086a of this['_editor']['commands']['commands']())_0x22086a['refresh']();_0x145cce['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x59c91c,..._0x145cce);const _0x1fc800=_0x52525d['filter'](_0x28b9ab=>'$graveyard'!=_0x28b9ab['root']['rootName']);_0x1fc800['length']>0x0&&_0x327ba0['setSelection'](_0x1fc800);for(const _0x2aecea of _0x52525d)_0x2aecea['detach']();});},_0x34f76e=(_0x45d10a,_0x56382f)=>0x1==_0x45d10a['length']&&0x1==_0x56382f['length']&&_0x45d10a[0x0]['end']['isEqual'](_0x56382f[0x0]['start']),_0x2b2144=(_0x576a3f,_0x4c7bb2,_0xcdbb83,_0x5bbcb6)=>Kt(_0x576a3f,_0x4c7bb2,_0xcdbb83,_0x5bbcb6)?[_0x576a3f,_0x4c7bb2]:Kt(_0x4c7bb2,_0x576a3f,_0x5bbcb6,_0xcdbb83)?[_0x4c7bb2,_0x576a3f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xf07682),this['_defaultCallbacks']['set']('insertion:discard',_0x52c75e),this['_defaultCallbacks']['set']('insertion:join',_0x34f76e),this['_defaultCallbacks']['set']('insertion:chain',_0x2b2144),this['_defaultCallbacks']['set']('deletion:accept',_0x52c75e),this['_defaultCallbacks']['set']('deletion:discard',_0xf07682),this['_defaultCallbacks']['set']('deletion:join',_0x34f76e),this['_defaultCallbacks']['set']('deletion:chain',_0x2b2144),this['_defaultCallbacks']['set']('formatInline:accept',_0x46c07a),this['_defaultCallbacks']['set']('formatInline:discard',_0xf07682),this['_defaultCallbacks']['set']('formatInline:join',_0x34f76e),this['_defaultCallbacks']['set']('formatInline:chain',_0xf07682),this['_defaultCallbacks']['set']('formatBlock:accept',_0x46c07a),this['_defaultCallbacks']['set']('formatBlock:discard',_0xf07682),this['_defaultCallbacks']['set']('formatBlock:join',_0x34f76e),this['_defaultCallbacks']['set']('formatBlock:chain',_0xf07682),this['_defaultCallbacks']['set']('attribute:accept',_0xf07682),this['_defaultCallbacks']['set']('attribute:discard',(_0x5434fa,_0x2bd8c2)=>{if(!_0x2bd8c2)return;const _0xfa4504=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x55eae8=>{if(_0x2bd8c2['key']==m)for(const _0x3e0e25 of _0x5434fa){const _0x387bcf=_0x3e0e25['start']['nodeAfter'],_0x283a96=_0x2bd8c2['oldValue'];_0x55eae8['rename'](_0x387bcf,_0x283a96);}else{if(_0xfa4504['_isBlockAttribute'](_0x2bd8c2['key'])){for(const _0x4f3e85 of _0x5434fa)void 0x0!==_0x2bd8c2['oldValue']?_0x55eae8['setAttribute'](_0x2bd8c2['key'],_0x2bd8c2['oldValue'],_0x4f3e85['start']['nodeAfter']):_0x55eae8['removeAttribute'](_0x2bd8c2['key'],_0x4f3e85['start']['nodeAfter']);}else{for(const _0x2aac75 of _0x5434fa)_0x2bd8c2['oldValue']?_0x55eae8['setAttribute'](_0x2bd8c2['key'],_0x2bd8c2['oldValue'],_0x2aac75):_0x55eae8['removeAttribute'](_0x2bd8c2['key'],_0x2aac75);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x34f76e);}}function Gt(_0x257c70,_0x2a5ccf,_0xde05b){for(const _0x378768 of _0x2a5ccf['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x378768['root']==_0x378768)return!0x1;if(!_0xde05b['containsItem'](_0x378768))return!0x1;if(_0x257c70['isObject'](_0x378768)||_0x257c70['isLimit'](_0x378768))return!0x0;}return!0x1;}function Ft(_0x3b8e85){return _0x3b8e85['end']['parent']==_0x3b8e85['start']['nodeAfter']&&_0x3b8e85['end']['isAtStart'];}function Lt(_0xc38922,_0x3e4bb3,_0x7996bb,_0x5ad5aa){const _0x5242cf=_0xc9e212=>!_0xc9e212['item']['is']('$textProxy')&&!_0x5ad5aa['isObject'](_0xc9e212['item']),_0x5a69db=_0xc38922['start']['getLastMatchingPosition'](_0x5242cf),_0x597ff7=_0xc38922['end']['getLastMatchingPosition'](_0x5242cf,{'direction':'backward'});return(!_0xc38922['start']['isEqual'](_0x5a69db)||!_0xc38922['end']['isEqual'](_0x597ff7))&&(_0x5a69db['isBefore'](_0x597ff7)?_0x7996bb['updateMarker'](_0x3e4bb3,{'range':_0x7996bb['createRange'](_0x5a69db,_0x597ff7)}):_0x7996bb['removeMarker'](_0x3e4bb3),!0x0);}function Jt(_0xa92d8b){return _0x130bb8(_0xa92d8b);}function Ht(_0x2d5148){const _0x4586d9=_0x2d5148['start']['nodeAfter'];return _0x4586d9&&_0x4586d9['is']('element');}function qt(_0x442a17,_0x24965e){return null==_0x442a17['end']['nodeBefore']&&_0x442a17['end']['parent']==_0x442a17['start']['nodeAfter']?zt(_0x442a17['start']['nodeAfter'],_0x24965e):_0x442a17;}function zt(_0x55a2d7,_0x5b9af0){const _0x11ddd3=_0x5b9af0['schema']['isObject'](_0x55a2d7)||_0x5b9af0['schema']['isSelectable'](_0x55a2d7);return _0x5b9af0['createRange'](_0x5b9af0['createPositionAt'](_0x55a2d7,'before'),_0x11ddd3?_0x5b9af0['createPositionAfter'](_0x55a2d7):_0x5b9af0['createPositionAt'](_0x55a2d7,'end'));}function Kt(_0x53ce37,_0x2253e0,_0x542a24,_0x478e0a){return!!Wt(_0x53ce37,_0x2253e0)&&_0x542a24['end']['isEqual'](_0x478e0a['start']);}function Wt(_0x4ec1cb,_0x54d85a){if(!_0x4ec1cb['_isDataLoaded']||!_0x54d85a['_isDataLoaded'])return!0x1;const _0x35b1f8=new Set(Object['keys'](_0x4ec1cb['attributes'])),_0x5ae978=new Set(Object['keys'](_0x54d85a['attributes']));if(_0x35b1f8['delete']('groupId'),_0x5ae978['delete']('groupId'),0x0==_0x35b1f8['size']&&0x0==_0x5ae978['size'])return!0x0;if(_0x35b1f8['size']!=_0x5ae978['size'])return!0x1;const _0x363a97={..._0x4ec1cb['attributes']},_0x25b325={..._0x54d85a['attributes']};return delete _0x363a97['groupId'],delete _0x25b325['groupId'],JSON['stringify'](_0x363a97)==JSON['stringify'](_0x25b325);}function Qt(_0x5e8ed3,_0x5be975){const _0x61cb9=Xt(_0x5e8ed3['attributes']),_0x4d075d=Xt(_0x5be975);if(!_0x5e8ed3['_isDataLoaded'])return!0x1;for(const _0x2e514c of Object['keys'](_0x4d075d))if(!_0x3b44e1(_0x61cb9[_0x2e514c],_0x4d075d[_0x2e514c]))return!0x1;return!0x0;}function Xt(_0x15d5ae){const _0x1f1327=Object['assign']({},_0x15d5ae);return delete _0x1f1327['skipNestingCheck'],delete _0x1f1327['tablePasteChainId'],_0x1f1327;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x531009(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5d2211,_0x233c01,_0x5afb36,_0x2cca2f){super(),this['model']=_0x233c01,this['view']=_0x5afb36,this['commentThreadController']=_0x2cca2f,this['_editor']=_0x5d2211,this['_acceptCommand']=_0x5d2211['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5d2211['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xd49d21,_0xcbb99e)=>_0xd49d21||_0xcbb99e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1a35ac=>_0x1a35ac&&this['_editor']['model']['canEditAt'](_0x233c01['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x40991b=>_0x40991b&&this['_editor']['model']['canEditAt'](_0x233c01['getRanges']())),this['_pendingAction']=null,_0x5afb36['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5afb36,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5afb36,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5afb36,'change:isDirty',()=>{_0x5afb36['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 _0x2c5f7e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2c5f7e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x1cd91f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x455854,_0x568654,_0x51e335,_0x1a1697){super(_0x455854),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2393a2(_0x455854,o(_0x455854,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x568654['authoredAt']),this['bind']('authoredAt')['to'](_0x568654),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',_0x568654,'authoredAt',this,'descriptionParts',(_0x5344d8,_0x558971,_0x2e696a)=>{const _0x20131f=_0x2e696a['map'](_0x5afa6c=>cs(_0x5afa6c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5344d8-0x1,_0x568654['author']['name'],_0x558971?_0x1a1697['formatDateTime'](_0x558971):'',new DOMParser()['parseFromString'](_0x20131f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2d016c(),this['focusTracker']=new _0x455760(),this['keystrokes']=new _0x1f0b3d(),this['focusCycler']=new _0x4f0002({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x479cca=>_0x479cca['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x568654,this['_localUser']=_0x51e335,this['_config']=_0x1a1697,_0x1a1697['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x181710(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xc3f020}=this['_config'];this['commentsListView']=new _0xc3f020(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',_0xabb0f8=>_0xabb0f8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f4bc6,_0x5845f9)=>_0x2f4bc6||!!_0x5845f9);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4f2aff}=this['_config'],_0x38e7c3=new _0x4f2aff(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x152d4a=_0x38e7c3['commentInputView'];return _0x38e7c3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x152d4a,'value',(_0x1a4b66,_0x36e72d,_0x23cf53)=>!!_0x23cf53||_0x1a4b66&&!_0x36e72d),_0x152d4a['on']('submit',(_0x2ad3c3,_0xfdb87)=>{this['fire']('addComment',_0xfdb87),_0x152d4a['editor']['setData']('');}),_0x152d4a['on']('cancel',()=>this['focus']()),_0x152d4a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x38e7c3;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x19e395,_0x452b2a,_0x4b066d,_0x495718){super(_0x19e395,_0x452b2a,_0x4b066d,_0x495718),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x19ceda=>_0x19ceda&&_0x19ceda[0x0]?_0x19ceda[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3965bf,_0x4e6406)=>{let _0x5e1613='';for(const _0x312fac of _0x3965bf)_0x5e1613+='<p>'+cs(_0x312fac['content'],_0x312fac['color'])+'</p>';return _0x4e6406?_0x5e1613:_0x5ce6e7(_0x5e1613,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x495718['SuggestionView'](_0x19e395,_0x452b2a,{'formatDateTime':_0x495718['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 _0x2e94b8=this['bindTemplate'],_0x5090ce=[this['suggestionView']];return this['commentsListView']&&_0x5090ce['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5090ce['push'](this['commentThreadInputView']),_0x5090ce['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2e94b8['if']('isActive','ck-suggestion-wrapper--active'),_0x2e94b8['to']('type',_0x510ef8=>'ck-suggestion-'+_0x510ef8),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':_0x2e94b8['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5090ce};}['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 _0x1cd91f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x51966b,_0x4d7748,_0x5ed6f4){super(_0x51966b),this['_model']=_0x4d7748,this['_config']=_0x5ed6f4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4d7748),this['acceptButton']=this['_createButton'](o(_0x51966b,'Accept\x20suggestion'),_0x317b98['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x51966b,'Discard\x20suggestion'),_0x317b98['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x47f6c9(_0x51966b,_0x4d7748['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2d016c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x455760(),this['keystrokes']=new _0x1f0b3d(),this['focusCycler']=new _0x4f0002({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3fbc80=>_0x3fbc80['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5dcf0b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5dcf0b['innerHTML']=this['description'],this['on']('change:description',(_0x91718d,_0x1db0fc,_0x190e60)=>{_0x5dcf0b['innerHTML']=_0x190e60;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1b2445=this['bindTemplate'],_0x2e4ce7=[{'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':_0x1b2445['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1b2445['to']('authoredAt',_0x256313=>this['_config']['formatDateTime'](_0x256313))}]}]},{'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']&&_0x2e4ce7['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':_0x2e4ce7}]};}['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'](_0x224c83,_0x271fe9,_0x5e2536,_0x487501,_0x58d2ee){const _0x1866a5=new _0x5652be(this['locale']);return _0x1866a5['set']({'label':_0x224c83,'icon':_0x271fe9,'tooltip':!0x0,'tooltipPosition':_0x58d2ee}),_0x1866a5['extendTemplate']({'attributes':{'class':_0x5e2536}}),_0x1866a5['on']('execute',()=>{this['fire'](_0x487501,this['_model']['id']);}),_0x1866a5;}['_setupKeyboardNavigation'](){const _0x474e39=this['element'];this['keystrokes']['listenTo'](_0x474e39);for(const _0x121914 of this['focusables'])this['focusTracker']['add'](_0x121914['element']),this['keystrokes']['listenTo'](_0x121914['element']);this['keystrokes']['set']('enter',(_0x4b9f09,_0x578986)=>{_0x474e39===_0x4b9f09['target']&&(this['focusCycler']['focusFirst'](),_0x578986());}),this['keystrokes']['set']('esc',(_0x42ff17,_0x4b24c0)=>{_0x474e39!==_0x42ff17['target']&&(this['focus'](),_0x4b24c0());});}}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 _0x4d70a7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x275bba,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57497a){super(_0x57497a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xbae4b6=this['editor']['config'];_0xbae4b6['define']('trackChanges.SuggestionThreadView',pe),_0xbae4b6['define']('trackChanges.SuggestionView',fe),_0xbae4b6['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xbae4b6['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1a0275,_0x3bb619){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3fad01,_0x3ab61d]of this['_handleControllerBuffer']){const _0x402211=this['_suggestionToController']['has'](_0x3fad01);_0x402211||_0x3ab61d?_0x402211&&_0x3ab61d&&this['_destroyController'](_0x3fad01):this['_initializeController'](_0x3fad01);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1a0275,_0x3bb619);}['init'](){const _0x16f274=this['editor'],_0x226339=_0x16f274['plugins']['get']('TrackChangesEditing'),_0x437c55=_0x16f274['plugins']['get']('Annotations'),_0x5a4072=_0x16f274['plugins']['get']('EditorAnnotations'),_0x41db0b=_0x16f274['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5a4072['addSourceCollector'](()=>{const _0x421ed8=[];for(const [_0x3f0da9,_0x49c6fc]of Array['from'](this['_suggestionToController'])){const _0x16a6b3=_0x3f0da9['getAllAdjacentSuggestions'](),_0x81db0e=[];for(const _0x1a0295 of _0x16a6b3){if(!_0x1a0295['isInContent'])continue;if(_0x1a0295['isMultiRange']){_0x81db0e['push'](..._0x1a0295['getRanges']());continue;}const _0x9d34eb=_0x1a0295['getFirstRange']();if(_0x81db0e['length']>0x0){const _0x25a018=_0x81db0e[0x0]['getJoined'](_0x9d34eb);if(_0x25a018){_0x81db0e[0x0]=_0x25a018;continue;}}_0x81db0e['push'](_0x9d34eb);}_0x421ed8['push']([_0x49c6fc['view'],_0x81db0e]);}return _0x421ed8;}),this['listenTo'](_0x226339,'suggestionLoaded',(_0x434344,_0x203395)=>{this['listenTo'](_0x203395,'change:previous',(_0x559607,_0x54e572,_0x5a494d,_0x360507)=>{_0x203395['isInContent']&&(null==_0x5a494d?(this['_updateController'](_0x360507['head']),this['_handleSuggestionControllerDelayed'](_0x203395,!0x1)):(this['_updateController'](_0x5a494d['head']),null==_0x360507&&this['_handleSuggestionControllerDelayed'](_0x203395,!0x0)));}),null!==_0x203395['previous']?this['_updateController'](_0x203395['head']):this['_handleSuggestionControllerDelayed'](_0x203395,!0x1);}),this['listenTo'](_0x226339,'suggestionUnloaded',(_0x199ea3,_0x48a261,_0x2ecfe6)=>{this['stopListening'](_0x48a261,'change:previous'),this['_handleControllerBuffer']['delete'](_0x48a261),this['_suggestionToController']['has'](_0x48a261)&&this['_destroyController'](_0x48a261),_0x2ecfe6&&this['_updateController'](_0x2ecfe6['head']);}),this['listenTo'](_0x226339,'suggestionChanged',(_0x758ba8,_0x496af7)=>{this['_updateController'](_0x496af7);}),this['listenTo'](_0x437c55,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x41db0b,'addComment',(_0x4eb772,{threadId:_0x5edfb4,isFromAdapter:_0x2ed4f8})=>{if(_0x2ed4f8||!_0x226339['hasSuggestion'](_0x5edfb4))return;const _0x1dce38=_0x226339['getSuggestion'](_0x5edfb4);this['_suggestionToController']['get'](_0x1dce38)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x20ea5e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1caeee;for(const _0x4ca659 in _0x20ea5e){const _0x262ea0=_0x4ca659,_0x2882ec=_0x20ea5e[_0x262ea0];if('trackChangesLicenseKeyValid'==_0x2882ec||'trackChangesLicenseKeyInvalid'==_0x2882ec||'trackChangesLicenseKeyExpired'==_0x2882ec||'trackChangesLicenseKeyDomainLimit'==_0x2882ec||'trackChangesLicenseKeyNotAllowed'==_0x2882ec||'trackChangesLicenseKeyEvaluationLimit'==_0x2882ec||'trackChangesLicenseKeyTrialLimit'==_0x2882ec||'trackChangesLicenseKeyUsageLimit'==_0x2882ec){delete _0x20ea5e[_0x262ea0],_0x1caeee=_0x2882ec,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1caeee&&_0x20ea5e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1caeee&&_0x20ea5e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1caeee&&_0x20ea5e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1caeee&&_0x20ea5e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1caeee&&_0x20ea5e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1caeee&&_0x20ea5e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1caeee&&_0x20ea5e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4d8253=this['editor']['plugins']['get']('Annotations'),_0x317951=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9afb9e=Array['from'](_0x4d8253['activeAnnotations'],_0x2c9146=>_0x2c9146['innerView'])['filter'](_0x19171e=>this['_viewToController']['has'](_0x19171e)),_0x3a0154=[];for(const _0x5507a3 of _0x9afb9e){const _0x407268=this['_viewToController']['get'](_0x5507a3)['model']['getAllAdjacentSuggestions']();_0x3a0154['push'](..._0x407268['reduce']((_0x2fd46a,_0x3e1b43)=>[..._0x2fd46a,..._0x3e1b43['getMarkerNames']()],[]));}_0x317951['activeMarkers']=_0x3a0154;}['_addUIComponentsToFactory'](){const _0x2fca23=this['editor'],_0x527575=_0x2fca23['locale'],_0xb7582=o(_0x527575,'Track\x20changes'),_0x5e8a39=new _0x312286([{'type':'switchbutton','model':new _0x56e42b({'withText':!0x0,'isToggleable':!0x0,'label':_0xb7582,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x56e42b({'withText':!0x0,'label':o(_0x527575,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56e42b({'withText':!0x0,'label':o(_0x527575,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56e42b({'withText':!0x0,'label':o(_0x527575,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56e42b({'withText':!0x0,'label':o(_0x527575,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2fca23['plugins']['has']('TrackChangesPreview')&&_0x5e8a39['addMany']([{'type':'separator'},{'type':'button','model':new _0x56e42b({'withText':!0x0,'label':o(_0x527575,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5e0ef6 of _0x5e8a39)if(ke(_0x5e0ef6)){const _0x15c4bd=_0x2fca23['commands']['get'](_0x5e0ef6['model']['commandName']);_0x5e0ef6['model']['bind']('isOn','isEnabled')['to'](_0x15c4bd,'value','isEnabled');}_0x2fca23['ui']['componentFactory']['add']('trackChanges',_0x2c2c2a=>this['_createToolbarButton'](_0x2c2c2a,_0x5e8a39,_0xb7582)),_0x2fca23['ui']['componentFactory']['add']('menuBar:trackChanges',_0x311007=>this['_createMenuBarMenu'](_0x311007,_0x5e8a39,_0xb7582));}['_createToolbarButton'](_0x13759c,_0x7edfa9,_0x5aca57){const _0xdd4243=_0x3dde06(_0x13759c,_0x3c3bd7),_0x252a7d=this['editor']['commands']['get']('trackChanges');_0xdd4243['buttonView']['set']({'tooltip':_0x5aca57,'label':_0x5aca57,'icon':we}),_0xdd4243['buttonView']['bind']('isOn')['to'](_0x252a7d,'value'),_0xdd4243['buttonView']['on']('execute',()=>{_0x252a7d['execute'](),this['editor']['editing']['view']['focus']();}),_0x2642c7(_0xdd4243,_0x7edfa9,{'role':'menu'});const _0x4e5cce=[];for(const _0x59e692 of _0x7edfa9)ke(_0x59e692)&&_0x4e5cce['push'](this['editor']['commands']['get'](_0x59e692['model']['commandName']));const _0x57f33e=_0xdd4243['buttonView'];return _0x57f33e['actionView']['unbind']('isEnabled'),_0x57f33e['arrowView']['unbind']('isEnabled'),_0x57f33e['actionView']['bind']('isEnabled')['to'](_0x252a7d,'isEnabled'),_0x57f33e['arrowView']['bind']('isEnabled')['toMany'](_0x4e5cce,'isEnabled',(..._0x19b1b8)=>_0x19b1b8['some'](_0x4fd9cd=>_0x4fd9cd)),_0xdd4243['on']('execute',_0x415e0c=>{this['editor']['execute'](_0x415e0c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xdd4243;}['_createMenuBarMenu'](_0x1abaa4,_0xd8b21e,_0xdd7fd5){const _0x10627d=new _0x44f825(_0x1abaa4),_0x5ce326=this['editor']['commands']['get']('trackChanges');_0x10627d['buttonView']['set']({'label':_0xdd7fd5,'icon':we});const _0x3c4197=new _0x437791(_0x1abaa4);for(const _0x3b28f2 of _0xd8b21e){if('separator'==_0x3b28f2['type']){_0x3c4197['items']['add'](new _0x28fd8c(_0x1abaa4));continue;}const _0x565de7=new _0x2bccce(_0x1abaa4,_0x10627d),_0x595f17=new _0x4d482c(_0x1abaa4),_0x20bbbf=_0x3b28f2['model'];_0x595f17['bind'](...Object['keys'](_0x20bbbf))['to'](_0x20bbbf),_0x595f17['delegate']('execute')['to'](_0x10627d),_0x595f17['on']('execute',()=>{this['editor']['execute'](_0x20bbbf['commandName']),this['editor']['editing']['view']['focus']();}),_0x565de7['children']['add'](_0x595f17),_0x3c4197['items']['add'](_0x565de7);}return _0x10627d['bind']('isEnabled')['to'](_0x5ce326,'isEnabled'),_0x10627d['panelView']['children']['add'](_0x3c4197),_0x10627d;}['_initializeController'](_0x536240){const _0xc2f5b=this['editor'],_0x1644a8=_0xc2f5b['config'],_0x5ef2cb=_0xc2f5b['plugins']['get']('Annotations'),_0x36b3cf=_0xc2f5b['plugins']['get']('CommentsRepository'),_0x2ec268=_0xc2f5b['plugins']['get']('EditorAnnotations'),_0x221edb=_0xc2f5b['plugins']['get'](_0x275bba)['me'],_0x2cfdac=_0x1644a8['get']('trackChanges')['SuggestionThreadView'],_0x40c4b0=_0x1644a8['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x47703c,CommentThreadInputView:_0x113f81}=_0xc2f5b['plugins']['get']('CommentsUI');let _0x51d5f2,_0xfbdbc8,_0x577318;this['_annotationViews']['has'](_0x536240['id'])?(_0xfbdbc8=this['_annotationViews']['get'](_0x536240['id']),_0x51d5f2=_0xfbdbc8['mainView']):(_0x51d5f2=new _0x2cfdac(_0xc2f5b['locale'],_0x536240,_0x221edb,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1644a8['get']('comments.editorConfig'),'licenseKey':_0x1644a8['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1644a8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1644a8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1644a8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5add5c(_0x1644a8['get']('locale')),'CommentView':_0x1644a8['get']('comments')['CommentView'],'CommentsListView':_0x47703c,'CommentThreadInputView':_0x113f81,'SuggestionView':_0x40c4b0}),_0x51d5f2['suggestionView']['acceptButton']['on']('execute',()=>{_0xc2f5b['editing']['view']['focus']();}),_0x51d5f2['suggestionView']['discardButton']['on']('execute',()=>{_0xc2f5b['editing']['view']['focus']();}),_0xfbdbc8=_0x5ef2cb['createAnnotationView'](this['editor']['locale'],_0x51d5f2),_0xfbdbc8['bind']('isDirty')['to'](_0x51d5f2,'isDirty'),_0xfbdbc8['bind']('length')['to'](_0x51d5f2),_0xfbdbc8['bind']('type')['to'](_0x51d5f2,'type',_0x2d14f0=>'suggestion-'+_0x2d14f0),_0x51d5f2['on']('escape',()=>{_0x577318['fire']('escape');}),this['_annotationViews']['set'](_0x536240['id'],_0xfbdbc8));const _0xbccbcd=_0x36b3cf['createCommentThreadController'](_0x536240['commentThread'],_0x51d5f2),_0x463740=new Ce(_0xc2f5b,_0x536240,_0x51d5f2,_0xbccbcd),_0x183ad8=_0x536240['getAllAdjacentSuggestions']()['filter'](_0x51379e=>_0x51379e['isInContent']);_0x51d5f2['descriptionParts']=_0xc2f5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x183ad8),this['_suggestionToController']['set'](_0x536240,_0x463740),this['_viewToController']['set'](_0x51d5f2,_0x463740),_0x577318=_0x5ef2cb['createAnnotation']({'view':_0xfbdbc8,'target':()=>{const _0x2f9fe2=[],_0x2778a3=_0x536240['getAllAdjacentSuggestions']()['filter'](_0x21b6f8=>_0x21b6f8['isInContent']);for(const _0x426820 of _0x2778a3)_0x2f9fe2['push'](..._0x426820['getMarkers']());return _0x4490b3(_0xc2f5b['editing'],_0x2f9fe2);},'type':()=>'suggestion-'+_0x463740['view']['type']}),_0x36b3cf['_bindAnnotationToEditors'](_0x51d5f2,_0x577318),_0x5ef2cb['add'](_0x577318),_0x2ec268['registerAnnotation'](_0x577318);}['_destroyController'](_0x55ca5a){const _0x3753d5=this['editor']['plugins']['get']('CommentsRepository'),_0x320fd3=this['editor']['plugins']['get']('Annotations'),_0x340748=this['_suggestionToController']['get'](_0x55ca5a),_0x2efa51=_0x340748['view'],_0x455083=_0x320fd3['getByInnerView'](_0x2efa51);_0x3753d5['_unbindEditors'](_0x2efa51),_0x455083&&_0x320fd3['remove'](_0x455083),this['_suggestionToController']['delete'](_0x55ca5a),this['_viewToController']['delete'](_0x2efa51),_0x340748['destroy']();}['_updateController'](_0x3922cb){if(!_0x3922cb['isInContent']||!this['_suggestionToController']['has'](_0x3922cb))return;const _0x1fa75d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14e8b8=this['_suggestionToController']['get'](_0x3922cb),_0x5d81ae=_0x3922cb['getAllAdjacentSuggestions']();_0x14e8b8['view']['descriptionParts']=_0x1fa75d['descriptionFactory']['getDescriptions'](_0x5d81ae);}['destroy'](){for(const _0x47adf7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x47adf7);for(const _0x2f8918 of this['_annotationViews']['values']())_0x2f8918['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x95760){return'model'in _0x95760;}class k extends _0x4d70a7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2a0e3a){this['editor']['plugins']['get'](p)['adapter']=_0x2a0e3a;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2cf100){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2cf100);}['getSuggestions']({skipNotAttached:_0x4d318d=!0x1,toJSON:_0x4750f6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4d318d,'toJSON':_0x4750f6});}['getSuggestion'](_0x1976cf){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1976cf);}}const w=['Pagination'];class T extends _0x4d70a7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x15a32c=this['editor'];if(_0x15a32c['config']['define']('trackChangesData.editorCreator',_0x257cdf=>{const _0x3add93=_0x15a32c['model']['document']['getRootNames']()['reduce']((_0x11850d,_0x5ed29c)=>(_0x11850d[_0x5ed29c]='',_0x11850d),{});return _0x15a32c['constructor']['create'](_0x3add93,_0x257cdf);}),'function'!=typeof _0x15a32c['config']['get']('trackChangesData')['editorCreator'])throw new _0x287d2d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1c1d05){return N(this['editor'],!0x0,_0x1c1d05);}['getDataWithDiscardedSuggestions'](_0x430f58){return N(this['editor'],!0x1,_0x430f58);}}class D extends _0x4d70a7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x584d81){function _0x395175(_0x29802c){return _0x29802c['map'](_0x49101b=>String['fromCharCode'](_0x49101b))['join']('');}super(_0x584d81),this['result']='end',_0x584d81[_0x395175([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x395175([0x76,0x69,0x65,0x77])][_0x395175([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x395175([0x61,0x75,0x74,0x6f]),_0x584d81[_0x395175([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x395175([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x395175([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x395175([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x395175([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(_0x2833f6){return void 0x0!==_0x2833f6['getRootsAttributes'];}async function N(_0x118ef4,_0x3fe49c,_0x190c7d){const _0x10c420=_0x44a35c(_0x118ef4,w);_0x10c420['plugins']['push'](p,D),_0x10c420['rootsAttributes']=Fe(_0x118ef4)?_0x118ef4['getRootsAttributes']():void 0x0;const _0x2443d4=document['createDocumentFragment'](),_0x48fa31=_0x118ef4['config']['get']('trackChangesData')['editorCreator'],_0x23cd9e=await _0x48fa31(_0x10c420,()=>function(_0x8d2fa6){const _0x10f608=document['createElement']('div');return _0x8d2fa6['appendChild'](_0x10f608),_0x10f608;}(_0x2443d4));!function(_0x2fffd0,_0x4b1234){const _0x24fd7f=_0x2fffd0['model']['document']['getRootNames']()['reduce']((_0x47d51a,_0x4bf780)=>(_0x47d51a[_0x4bf780]=_0x2fffd0['data']['get']({'rootName':_0x4bf780}),_0x47d51a),{}),_0xa59678=_0x2fffd0['plugins']['get']('Users')['users']['map'](_0x20b0aa=>({'id':_0x20b0aa['id'],'name':_0x20b0aa['name']})),_0x2bfae9=_0x2fffd0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3fa5d4=_0x2fffd0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3f5da7=_0x4b1234['plugins']['get']('Users'),_0x327792=_0x4b1234['plugins']['get']('TrackChangesEditing'),_0x2d9b3f=_0x4b1234['plugins']['get']('CommentsRepository');for(const _0x84ef1b of _0x2d9b3f['getCommentThreads']())_0x84ef1b['remove']();for(const _0x229688 of _0xa59678)_0x3f5da7['getUser'](_0x229688['id'])||_0x3f5da7['addUser'](_0x229688);_0x3f5da7['me']||_0x3f5da7['useAnonymousUser']();for(const _0x30d82b of _0x3fa5d4)_0x2d9b3f['addCommentThread'](_0x30d82b);for(const _0x285095 of _0x2bfae9)_0x327792['addSuggestionData'](_0x285095);_0x4b1234['data']['set'](_0x24fd7f);}(_0x118ef4,_0x23cd9e),_0x23cd9e['execute'](_0x3fe49c?'acceptAllSuggestions':'discardAllSuggestions');const _0x2053c6=Fe(_0x23cd9e)?_0x23cd9e['getFullData'](_0x190c7d):_0x23cd9e['data']['get'](_0x190c7d);return await _0x23cd9e['destroy'](),_0x2053c6;}class Me extends _0x1cd91f{['options'];constructor(_0x29262,_0x4d858a){super(_0x29262),this['options']=_0x4d858a,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'](_0x81797a,_0x5557af){if(!this['element'])return;const _0x289094=[];for(const [_0x199fcf,_0x41edd8]of _0x81797a){const _0x6599df=document['createElement']('div');_0x6599df['setAttribute']('data-ck-root-name',_0x199fcf),_0x6599df['className']=_0x41edd8['classes']+'\x20ck-track-changes-preview__root-container',_0x6599df['innerHTML']=_0x41edd8['content'],_0x289094['push'](_0x6599df);}_0x5557af(this['element'],_0x289094),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x31ba02){super(_0x31ba02),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x54ec22=this['editor'],_0x1d4049=_0x54ec22['locale'],_0x6288d4=_0x54ec22['plugins']['get']('Dialog');let _0x1c4ee2;const _0x4e803d=function(_0x57412b){const _0x57d25d={};if('editables'in _0x57412b['ui']['view']){for(const [_0x4b53c4,_0x46fa7c]of Object['entries'](_0x57412b['ui']['view']['editables']))_0x57d25d[_0x4b53c4]=_0x46fa7c['element'];}else _0x57d25d[_0x57412b['model']['document']['getRootNames']()[0x0]]=_0x57412b['ui']['view']['editable']['element'];return _0x57d25d;}(_0x54ec22),_0x25b790=function(_0x1084a2){let _0x37c734=0x0;for(const _0x2d0e10 of Object['values'](_0x1084a2))_0x37c734=Math['max'](_0x37c734,_0x2d0e10['getBoundingClientRect']()['width']);let _0x5963d0=0x0;for(const _0xda7b38 of Object['values'](_0x1084a2))_0x5963d0+=_0xda7b38['getBoundingClientRect']()['height'];const _0x5f90bd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x224e70=Math['min'](_0x5963d0,_0x5f90bd);return{'width':_0x37c734,'height':_0x224e70};}(_0x4e803d);_0x6288d4['show']({'id':'finalContentPreview','title':o(_0x1d4049,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1d4049,{'dialogRects':_0x25b790}),'onHide':()=>{_0x1c4ee2['detachFromDom']();},'onShow':()=>{_0x54ec22['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x253429=>{const _0x8ed444=this['_standarizeRootsData'](_0x253429,_0x54ec22,_0x4e803d);_0x6288d4['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x8ed444,_0x54ec22['config']['get']('trackChanges.preview.renderFunction'));}),_0x1c4ee2=new _0x213d41(_0x1d4049,[_0x6288d4['view']]),_0x1c4ee2['attachToDom'](),_0x1c4ee2['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x54ec22['once']('destroy',()=>{_0x1c4ee2['detachFromDom']();});const _0x51da5f=_0x6288d4['view']['headerView']['class'];_0x6288d4['view']['headerView']['class']=_0x51da5f?_0x51da5f+'\x20ck-reset_all':'ck-reset_all',_0x6288d4['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x6288d4['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x337ee7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5d8ba0=_0x337ee7['previewMode'],_0x5050f9={};if('$labels'===_0x5d8ba0){for(const _0x5c135a of _0x337ee7['getMergeFieldsIds']())_0x5050f9[_0x5c135a]=_0x337ee7['getLabel'](_0x5c135a)||_0x5c135a;}else{const _0x3baa4b='$defaultValues'===_0x5d8ba0?_0x337ee7['getDefaultValues']():_0x337ee7['getDataSetValues'](_0x5d8ba0,!0x0);for(const _0x32a988 of Object['entries'](_0x3baa4b)){const [_0x3dfd68,_0x16b322]=_0x32a988;_0x5050f9[_0x3dfd68]=null!==_0x16b322?_0x16b322:_0x337ee7['getLabel'](_0x3dfd68)||_0x3dfd68;}}return{'mergeFieldsData':_0x5050f9};}['_standarizeRootsData'](_0x7d4454,_0x3a420f,_0x53fad4){let _0x50036c;if('string'==typeof _0x7d4454){const _0x1e6160=_0x3a420f['model']['document']['getRootNames']()[0x0];_0x50036c={[_0x1e6160]:_0x7d4454};}else _0x50036c=_0x7d4454;const _0x17f51d=this['_fixMediaEmbeds'](_0x50036c,_0x3a420f),_0x363ed0=function(_0x5671e1,_0x58acd8){for(const [_0x4c3c8d,_0x24da1b]of _0x5671e1)_0x24da1b['classes']=_0x58acd8[_0x4c3c8d]['classList']['value']['replace']('ck-focused','');return _0x5671e1;}(this['_sortRoots'](_0x3a420f)['reduce']((_0x45218d,_0x5c7c53)=>(_0x45218d['push']([_0x5c7c53,{'content':_0x17f51d[_0x5c7c53],'classes':''}]),_0x45218d),[]),_0x53fad4);return _0x363ed0;}['_fixMediaEmbeds'](_0x49753d,_0x5c4f4d){if(!_0x5c4f4d['plugins']['has']('MediaEmbedEditing'))return _0x49753d;const _0x1d9ed7=_0x5c4f4d['plugins']['get']('MediaEmbedEditing');for(const [_0x5b920a,_0x3372ee]of Object['entries'](_0x49753d)){const _0x3f3f1b=document['createElement']('div');_0x3f3f1b['innerHTML']=_0x3372ee,(_0x3f3f1b['querySelectorAll']('figure.media')['forEach'](_0x4d336b=>{const _0x2b44b4=_0x4d336b['querySelector']('oembed');if(_0x2b44b4){const _0x286c59=_0x2b44b4['getAttribute']('url');if(_0x286c59){const _0x5adb1c=_0x1d9ed7['registry']['getMediaViewElement'](new _0x4326bc(_0x5c4f4d['editing']['view']['document']),_0x286c59,{'elementName':'','renderForEditingView':!0x0}),_0x3ba997=document['createElement']('div');_0x3ba997['classList']['add']('ck-media__wrapper'),_0x5adb1c['render'](_0x3ba997,_0x5c4f4d['editing']['view']['domConverter']),_0x2b44b4['replaceWith'](_0x3ba997);}}}),_0x49753d[_0x5b920a]=_0x3f3f1b['innerHTML']);}return _0x49753d;}['_sortRoots'](_0x6b839a){if(!function(_0x2ad16e){return void 0x0!==_0x2ad16e['getRootsAttributes'];}(_0x6b839a))return _0x6b839a['model']['document']['getRootNames']();const _0x41c7fa=[],_0x2c40d8=new Map();for(const _0x75def6 of _0x6b839a['model']['document']['getRootNames']()){const _0x357ac3=_0x6b839a['editing']['view']['getDomRoot'](_0x75def6)['getClientRects']()['item'](0x0);_0x41c7fa['push'](_0x75def6),_0x2c40d8['set'](_0x75def6,_0x357ac3);}return _0x41c7fa['sort']((_0x1bc754,_0x2f6bbd)=>{const _0x52e866=_0x2c40d8['get'](_0x1bc754),_0x4a0fdc=_0x2c40d8['get'](_0x2f6bbd);return _0x52e866['y']-_0x4a0fdc['y']||_0x52e866['x']-_0x4a0fdc['x'];}),_0x41c7fa;}}class te extends _0x4d70a7{static get['requires'](){return[T,_0x57baee];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x184ec3){super(_0x184ec3),_0x184ec3['commands']['add']('previewFinalContent',new re(this['editor'])),_0x184ec3['config']['define']('trackChanges.preview.renderFunction',(_0x512c64,_0x4b90df)=>{for(const _0xd4d715 of _0x4b90df)_0x512c64['appendChild'](_0xd4d715);});}}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 _0x3b6a96,PendingActions as _0x2edff2,icons as _0x3be9a2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5e7b1c,ObservableMixin as _0x5dafa9,uid as _0x42a68b,priorities as _0x45202f,insertToPriorityArray as _0x382009,logWarning as _0x43f625,getEnvKeystrokeText as _0x18904c,FocusTracker as _0x389f82,KeystrokeHandler as _0x42d792,Collection as _0x38066d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x164a1a,View as _0x438d77,ViewCollection as _0x310ce4,FocusCycler as _0x1038ae,ViewModel as _0x13b983,createDropdown as _0x1adfcd,SplitButtonView as _0x4d8b05,addListToDropdown as _0x19a3f9,MenuBarMenuView as _0x4b2de6,MenuBarMenuListView as _0x3dd24d,ListSeparatorView as _0xd93d6d,MenuBarMenuListItemView as _0x115ee8,MenuBarMenuListItemButtonView as _0x5a64f7,BodyCollection as _0x50b542,Dialog as _0x409a42}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x58d047,hashObject as _0x3d15d9,surroundingMarkersDetector as _0x29ed23,FOCUS_ANNOTATION_KEYSTROKE as _0x4d04d6,AriaDescriptionView as _0x47fc0e,setupThreadKeyboardNavigation as _0x4eeeba,trimHtml as _0x4a0fbd,UserView as _0x5bda4a,LateFocusButtonView as _0x5e49fa,getDateTimeFormatter as _0x4b7818,getAllMarkersDomElementsSorted as _0x1df16c,sanitizeEditorConfig as _0x3547f2}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1c665d,LiveRange as _0x4f6ba5,LivePosition as _0x2719a2,DowncastWriter as _0x3dc4c2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3d73e1,toWidget as _0x59695c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2e8e85,set as _0x222a9f,isEqual as _0x351c09,unset as _0x591239,omit as Vt}from'lodash-es';import{Delete as _0x2272f2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x49dcc7,ShiftEnter as _0x4b8f8b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x2d9811,_0x1b7ace){super(_0x2d9811),this['_enabledCommands']=_0x1b7ace,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 _0x5cd09e of this['editor']['commands']['commands']())_0x5cd09e['affectsData']&&!this['_enabledCommands']['has'](_0x5cd09e)&&_0x5cd09e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1f6c12 of this['editor']['commands']['commands']())_0x1f6c12['affectsData']&&!this['_enabledCommands']['has'](_0x1f6c12)&&_0x1f6c12['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x17a8dd,_0x1bd38d){super(_0x17a8dd),this['_suggestions']=_0x1bd38d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5d7b59){const _0x316ac3=this['_suggestions']['get'](_0x5d7b59);if(!_0x316ac3)throw new _0x5e7b1c('track-changes-accept-suggestion-not-found',this);const _0x42a1e2=_0x316ac3['getRanges']();this['editor']['model']['canEditAt'](_0x42a1e2)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x316ac3);}}class R extends Yt{['_suggestions'];constructor(_0xa25599,_0x5bc8ac){super(_0xa25599),this['_suggestions']=_0x5bc8ac,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4abdcc){const _0x178323=this['_suggestions']['get'](_0x4abdcc);if(!_0x178323)throw new _0x5e7b1c('track-changes-discard-suggestion-not-found',this);const _0x5d2d41=_0x178323['getRanges']();this['editor']['model']['canEditAt'](_0x5d2d41)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x178323);}}function cs(_0x5bffd2,_0x2954a9){let _0x4b21df='';return _0x4b21df+=_0x5bffd2['split']('*')['map']((_0x3ee83b,_0xfaeeb8)=>_0xfaeeb8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3ee83b)+'</span>':nn(_0x3ee83b))['join'](''),_0x2954a9&&(_0x4b21df+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2954a9['value']+'\x22\x20title=\x22'+_0x2954a9['title']+'\x22></span>'),_0x4b21df;}function nn(_0x41f8d4){const _0xa52c75=document['createElement']('span');return _0xa52c75['innerText']=_0x41f8d4,_0xa52c75['innerHTML'];}function Zt(_0x37c009){return _0x37c009['sort']((_0x43da77,_0x59f252)=>'deletion'==_0x43da77['type']&&'deletion'!=_0x59f252['type']?-0x1:'deletion'!=_0x43da77['type']&&'deletion'==_0x59f252['type']?0x1:0x0);}function to(_0x398a3b,_0x1b758b){let _0x1b19f9,_0x29351d=0x0;const _0x2f3d38=[],_0x91e224=_0x1b758b['schema'];for(;_0x29351d<_0x398a3b['length'];){const _0x563a7a=_0x398a3b[_0x29351d],_0x219f42=_0x398a3b[_0x29351d+0x1];_0x1b19f9||(_0x1b19f9=_0x1b758b['createPositionBefore'](_0x563a7a)),on(_0x1b758b,_0x563a7a,_0x219f42)||(_0x2f3d38['push'](_0x1b758b['createRange'](_0x1b19f9,_0x91e224['isObject'](_0x563a7a)?_0x1b758b['createPositionAfter'](_0x563a7a):_0x1b758b['createPositionAt'](_0x563a7a,'end'))),_0x1b19f9=null),_0x29351d++;}return _0x2f3d38;}function on(_0x100ee9,_0x24a16c,_0x52396c){if(!_0x52396c)return!0x1;const _0x411602=_0x100ee9['createPositionAfter'](_0x24a16c),_0xc9dcf6=_0x100ee9['createPositionBefore'](_0x52396c);return _0x411602['isTouching'](_0xc9dcf6);}function ts(_0x41e0c2,_0x10d78f,_0x21a5d2){for(;_0x21a5d2['length'];){const _0x1e7d69=_0x21a5d2['splice'](0x0,0x64);_0x41e0c2['change'](()=>{for(const _0x4659c9 of _0x1e7d69)_0x4659c9['isInContent']&&_0x10d78f['execute'](_0x4659c9['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x5e2406,_0x3e91a7,_0x118b82){super(_0x5e2406),this['_command']=_0x3e91a7,this['_suggestions']=_0x118b82,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x286de7=Array['from'](this['_suggestions']['values']())['some'](_0x1b49ef=>_0x1b49ef['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x286de7;}['execute'](){const _0x15199f=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x32978e of _0x15199f){const _0x5b9698=_0x32978e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5b9698))return;}ts(this['editor']['model'],this['_command'],_0x15199f);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4d04c9,_0x2d10e2,_0x15b809){super(_0x4d04c9),this['_command']=_0x2d10e2,this['_suggestions']=_0x15b809,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5837e6=this['editor']['model']['document']['selection'],_0x1d3008=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4a669c,_0x24e799){const _0x4f4cb0=Array['from'](_0x4a669c['getRanges']()),_0x3d89e6=new Set();for(const _0x160fb1 of _0x24e799)if(_0x160fb1['isInContent']){for(const _0x2af279 of _0x4f4cb0)for(const _0x26551f of _0x160fb1['getRanges']())(_0x2af279['isIntersecting'](_0x26551f)||_0x4a669c['isCollapsed']&&!_0x160fb1['isMultiRange']&&_0x160fb1['next']&&_0x26551f['end']['isTouching'](_0x2af279['start']))&&_0x3d89e6['add'](_0x160fb1);}return _0x3d89e6;}(_0x5837e6,_0x1d3008),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5b6310=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x325fa6 of _0x5b6310){const _0x5d4e9c=_0x325fa6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5d4e9c))return;}ts(this['editor']['model'],this['_command'],_0x5b6310);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5dafa9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x42bdff,_0x3b8e36){super(),this['id']=_0x3b8e36['id'],this['type']=_0x3b8e36['type'],this['subType']=_0x3b8e36['subType']||null,this['author']=_0x3b8e36['author'],this['creator']=_0x3b8e36['creator']||_0x3b8e36['author'],this['isExternal']=Boolean(_0x3b8e36['attributes']&&_0x3b8e36['attributes']['@external']),this['data']=null,this['_model']=_0x42bdff,this['_onAccept']=_0x3b8e36['onAccept'],this['_onDiscard']=_0x3b8e36['onDiscard'],this['_onAttributesChange']=_0x3b8e36['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3b8e36['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 _0x5b2157=this;for(;_0x5b2157['previous'];)_0x5b2157=_0x5b2157['previous'];return _0x5b2157;}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'](_0x516f52){this['_markerNames']['add'](_0x516f52);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xf105a4=>this['_model']['markers']['get'](_0xf105a4))['filter'](_0x19b0b3=>_0x19b0b3);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x244dd8=>{for(const _0x5deb3c of this['getMarkers']())_0x244dd8['removeMarker'](_0x5deb3c);}),this['_markerNames']['clear']();}['removeMarker'](_0x579984){this['_model']['change'](_0x1f4dcd=>{_0x1f4dcd['removeMarker'](_0x579984);}),this['_markerNames']['delete'](_0x579984);}['addRange'](_0x2a2e53){const _0x272a75='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x272a75),this['_model']['change'](_0x541ced=>{_0x541ced['addMarker'](_0x272a75,{'range':_0x2a2e53,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x18052f){for(const _0x1ba895 of this['getRanges']())if(_0x1ba895['isIntersecting'](_0x18052f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2cc482=>_0x2cc482['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x163563,_0x2dae42)=>[..._0x163563,..._0x2dae42['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1a7fe4=this['getRanges']();if(0x1!=_0x1a7fe4['length'])return null;const _0x3a749c=_0x1a7fe4[0x0],_0x5a0b0e=_0x3a749c['start']['nodeAfter'],_0x2ac4a2=_0x3a749c['end']['nodeBefore'];return _0x5a0b0e instanceof _0x1c665d?_0x5a0b0e!=_0x2ac4a2?null:_0x5a0b0e: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 _0x1b0dff=[];let _0x341596=this['head'];for(;_0x341596;)_0x1b0dff['push'](_0x341596),_0x341596=_0x341596['next'];return _0x1b0dff;}['setAttribute'](_0x2f278a,_0x284645){const _0x568d6f=_0x2e8e85(this['attributes']);_0x222a9f(_0x568d6f,_0x2f278a,_0x284645),_0x351c09(_0x568d6f,this['attributes'])||(this['attributes']=_0x568d6f,this['_onAttributesChange'](_0x568d6f));}['removeAttribute'](_0xe1d284){const _0x3410d9=_0x2e8e85(this['attributes']);_0x591239(_0x3410d9,_0xe1d284),_0x351c09(_0x3410d9,this['attributes'])||(this['attributes']=_0x3410d9,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 _0x42a68b()['substr'](0x1,0x5);}}function o(_0x392581,_0x32cddd,_0x1b2f83){const _0x56558a=_0x392581['t'],t=_0x392581['t'];switch(_0x32cddd){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',_0x1b2f83);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1b2f83);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1b2f83);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1b2f83);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1b2f83);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',_0x1b2f83);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1b2f83);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',_0x1b2f83);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1b2f83);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1b2f83);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1b2f83);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1b2f83);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1b2f83);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1b2f83);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1b2f83);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1b2f83);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1b2f83);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1b2f83);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1b2f83);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1b2f83);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1b2f83);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1b2f83);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1b2f83);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1b2f83);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1b2f83);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1b2f83);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1b2f83);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1b2f83);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1b2f83);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1b2f83);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1b2f83);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'},_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1b2f83);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1b2f83);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'},_0x1b2f83);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1b2f83);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 _0x56558a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1b2f83);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x56558a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1b2f83);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1b2f83);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'},_0x1b2f83);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'},_0x1b2f83);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'},_0x1b2f83);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x32cddd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x353080,_0x58ff09){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x353080,this['_locale']=_0x58ff09;}['getDescriptions'](_0x451adb){const _0xe19130=[],_0x4f8350=new Set(),_0x36229f=new Set();for(let _0x57aaad=0x0;_0x57aaad<_0x451adb['length'];_0x57aaad++){const _0x55ee84=_0x451adb[_0x57aaad];if(!_0x55ee84['isInContent'])continue;const _0x28c39d=this['_handleCustomCallbackDescription'](_0x55ee84);if(_0x28c39d){if(null!=_0x55ee84['subType']){if(_0x4f8350['has'](_0x55ee84['subType']))continue;_0x4f8350['add'](_0x55ee84['subType']);}_0xe19130['push'](_0x28c39d);}else{if('attribute'!=_0x55ee84['type'])'insertion'!=_0x55ee84['type']&&'deletion'!=_0x55ee84['type']||this['_handleInsertRemoveSuggestionDescription'](_0xe19130,_0x55ee84,_0x451adb[_0x57aaad+0x1]);else{const _0x2da63e=_0x55ee84['data']['key'];if(_0x36229f['has'](_0x2da63e))continue;_0x36229f['add'](_0x55ee84['data']['key']),_0x2da63e==m?this['_handleRenameSuggestionDescription'](_0xe19130,_0x55ee84):this['_handleAttributeSuggestionDescription'](_0xe19130,_0x55ee84);}}}return this['_resolveDescriptionItems'](_0xe19130);}['registerDescriptionCallback'](_0x25736d){this['_customCallbacks']['push'](_0x25736d);}['registerElementLabel'](_0x533968,_0x262df0,_0x5f9d10=_0x45202f['normal']){'function'==typeof _0x533968?_0x382009(this['_itemLabelsCallbacks'],{'matchingCallback':_0x533968,'label':_0x262df0,'priority':_0x5f9d10}):this['_itemLabels']['set'](_0x533968,_0x262df0);}['registerAttributeLabel'](_0x14bdd8,_0x23af3c){this['_attributeLabels']['set'](_0x14bdd8,_0x23af3c);}['getItemLabel'](_0xa64584,_0x152f61=0x1){let _0x1ee595;for(const _0x2ffb38 of this['_itemLabelsCallbacks'])if(_0x2ffb38['matchingCallback'](_0xa64584)){_0x1ee595=_0x2ffb38['label'];break;}return _0x1ee595||(_0x1ee595=this['_itemLabels']['get'](_0xa64584['name'])),_0x1ee595?_0x1ee595(_0x152f61):0x1!==_0x152f61?_0x152f61+'\x20'+_0xa64584['name']+'s':''+_0xa64584['name'];}['_addDescriptionItems'](_0x23f05f,_0x1da10f){const _0x3b3ae1=_0x1da10f['getFirstRange']()['getWalker'](),_0x2ed3d3='insertion'==_0x1da10f['type']?'add':'remove';for(const _0x46df21 of _0x3b3ae1){const _0x5e7219=_0x46df21['item'],_0x4c9dbe=_0x23f05f[_0x23f05f['length']-0x1];if(_0x5e7219['is']('$textProxy'))_0x4c9dbe&&_0x4c9dbe['type']['indexOf']('Container')>-0x1&&_0x23f05f['pop'](),_0x4c9dbe&&'text'==_0x4c9dbe['type']?_0x4c9dbe[_0x2ed3d3]+=_0x5e7219['data']:_0x23f05f['push']({'type':'text','add':'add'==_0x2ed3d3?_0x5e7219['data']:'','remove':'remove'==_0x2ed3d3?_0x5e7219['data']:''});else{if(this['_schema']['isObject'](_0x5e7219)){const _0x40e304=_0x5e7219;if(_0x4c9dbe&&_0x4c9dbe['type']['indexOf']('Container')>-0x1&&_0x23f05f['pop'](),'elementEnd'==_0x46df21['type'])continue;_0x4c9dbe&&_0x4c9dbe['type']==_0x2ed3d3+'Object'&&_0x4c9dbe['element']['name']==_0x40e304['name']?_0x4c9dbe['quantity']++:_0x23f05f['push']({'type':_0x2ed3d3+'Object','element':_0x40e304,'quantity':0x1}),_0x3b3ae1['skip'](_0x1c275a=>!('elementEnd'==_0x1c275a['type']&&_0x1c275a['item']==_0x5e7219));}else{if(this['_schema']['checkChild'](_0x5e7219,'$text')||_0x5e7219['is']('element','softBreak')){const _0x3d277d=_0x5e7219;if('add'==_0x2ed3d3&&'elementStart'==_0x46df21['type']||'remove'==_0x2ed3d3&&'elementEnd'==_0x46df21['type'])continue;if(_0x4c9dbe&&-0x1==_0x4c9dbe['type']['indexOf']('Container')){'text'==_0x4c9dbe['type']&&(_0x4c9dbe[_0x2ed3d3]+='\x0a');continue;}let _0x33eb87;if(_0x33eb87='add'==_0x2ed3d3?_0x3d277d['nextSibling']&&!this['_schema']['isObject'](_0x3d277d['nextSibling'])?_0x3d277d['nextSibling']:null:_0x3d277d['previousSibling']&&!this['_schema']['isObject'](_0x3d277d['previousSibling'])?_0x3d277d['previousSibling']:null,_0x3d277d['isEmpty']||_0x33eb87&&_0x33eb87['isEmpty']){const _0x2b1715=_0x33eb87&&_0x33eb87['isEmpty']?_0x33eb87:_0x3d277d;_0x4c9dbe&&_0x4c9dbe['type']==_0x2ed3d3+'EmptyContainer'&&_0x4c9dbe['element']['name']==_0x2b1715['name']?_0x4c9dbe['quantity']++:_0x23f05f['push']({'type':_0x2ed3d3+'EmptyContainer','element':_0x2b1715,'quantity':0x1});}else _0x23f05f['push']({'type':_0x2ed3d3+'Container','element':_0x3d277d});}}}}}['_resolveDescriptionItems'](_0x39e294){const _0x2da90a=this['_locale'],_0x4a10c3=[],_0x4f07cd=[],_0x1ffb88=[];for(const _0xc9dec9 of _0x39e294)switch(_0xc9dec9['type']){case'text':if(_0xc9dec9['add']=_0xc9dec9['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xc9dec9['remove']=_0xc9dec9['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xc9dec9['add']&&''!=_0xc9dec9['remove']){_0x4a10c3['push']({'type':'replace','content':o(_0x2da90a,'REPLACE_TEXT',['\x22'+_0xc9dec9['remove']+'\x22','\x22'+_0xc9dec9['add']+'\x22'])});continue;}if(null!=_0xc9dec9['add']['match'](/^ +$/)){_0x4a10c3['push']({'type':'insertion','content':o(_0x2da90a,'*Insert:*\x20%0',o(_0x2da90a,'ELEMENT_SPACE',_0xc9dec9['add']['length']))});continue;}if(null!=_0xc9dec9['remove']['match'](/^ +$/)){_0x4a10c3['push']({'type':'deletion','content':o(_0x2da90a,'*Remove:*\x20%0',o(_0x2da90a,'ELEMENT_SPACE',_0xc9dec9['remove']['length']))});continue;}if(''!=_0xc9dec9['add']){_0x4a10c3['push']({'type':'insertion','content':o(_0x2da90a,'*Insert:*\x20%0','\x22'+_0xc9dec9['add']+'\x22')});continue;}_0x4a10c3['push']({'type':'deletion','content':o(_0x2da90a,'*Remove:*\x20%0','\x22'+_0xc9dec9['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4a10c3['push']({'type':'insertion','content':o(_0x2da90a,'*Insert:*\x20%0',this['getItemLabel'](_0xc9dec9['element'],_0xc9dec9['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4a10c3['push']({'type':'deletion','content':o(_0x2da90a,'*Remove:*\x20%0',this['getItemLabel'](_0xc9dec9['element'],_0xc9dec9['quantity']))});continue;case'addContainer':_0x4a10c3['push']({'type':'insertion','content':o(_0x2da90a,'*Split:*\x20%0',this['getItemLabel'](_0xc9dec9['element'],_0xc9dec9['quantity']))});continue;case'removeContainer':_0x4a10c3['push']({'type':'deletion','content':o(_0x2da90a,'*Merge:*\x20%0',this['getItemLabel'](_0xc9dec9['element'],_0xc9dec9['quantity']))});continue;case'addFormat':_0x4f07cd['push'](_0xc9dec9['key']);continue;case'removeFormat':_0x1ffb88['push'](_0xc9dec9['key']);continue;default:_0x4a10c3['push'](_0xc9dec9);}if(_0x4f07cd['length']){const _0x59026c=_0x4f07cd['map'](_0x19160b=>this['_attributeLabels']['has'](_0x19160b)?this['_attributeLabels']['get'](_0x19160b):_0x19160b)['join'](',\x20');_0x4a10c3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x59026c)});}if(_0x1ffb88['length']){const _0x249be1=_0x1ffb88['map'](_0x508226=>this['_attributeLabels']['has'](_0x508226)?this['_attributeLabels']['get'](_0x508226):_0x508226)['join'](',\x20');_0x4a10c3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x249be1)});}return _0x4a10c3;}['_handleCustomCallbackDescription'](_0x4f0f14){for(const _0x197792 of this['_customCallbacks']){const _0x53cbf8=_0x197792(_0x4f0f14);if(_0x53cbf8&&'type'in _0x53cbf8)return _0x53cbf8;}}['_handleAttributeSuggestionDescription'](_0x375ad9,_0x5795b5){const _0x511f7b=_0x5795b5['data'],_0x288e24=void 0x0===_0x511f7b['newValue']?'removeFormat':'addFormat';_0x375ad9['push']({'type':_0x288e24,'key':_0x511f7b['key']});}['_handleRenameSuggestionDescription'](_0x5686e1,_0x3d1bd2){_0x5686e1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3d1bd2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x55c632,_0x1eab1f,_0x285b5f){if(this['_addDescriptionItems'](_0x55c632,_0x1eab1f),_0x285b5f&&_0x285b5f['getFirstRange']()&&!_0x1eab1f['getFirstRange']()['end']['isEqual'](_0x285b5f['getFirstRange']()['start'])){const _0x3eb75c=_0x55c632[_0x55c632['length']-0x1],_0x129504='insertion'==_0x1eab1f['type']?'add':'remove';_0x3eb75c&&'text'==_0x3eb75c['type']&&(_0x3eb75c[_0x129504]+='\x0a');}}}class U extends _0x3b6a96{['afterInit'](){const _0x4a0111=this['editor'],_0x72cc32=_0x4a0111['plugins']['get']('TrackChangesEditing');_0x4a0111['commands']['get']('showAIAssistant')&&_0x72cc32['enableCommand']('showAIAssistant');}}class V extends _0x3b6a96{['afterInit'](){const _0x41e87a=this['editor'],_0x2eacd8=_0x41e87a['locale'];if(!_0x41e87a['plugins']['has']('AlignmentEditing'))return;const _0x4937d7=_0x41e87a['plugins']['get']('TrackChangesEditing');_0x4937d7['enableDefaultAttributesIntegration']('alignment'),_0x4937d7['registerBlockAttribute']('alignment'),_0x4937d7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2eacd8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15b9b1=this['editor'],_0x4e4834=_0x15b9b1['locale'];_0x15b9b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51f21a=>{if('formatBlock'!=_0x51f21a['type'])return;const {data:_0xdc8cc2}=_0x51f21a;if(_0xdc8cc2&&'alignment'==_0xdc8cc2['commandName']){const _0x18dc30=_0xdc8cc2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e4834,'*Format:*\x20%0',function(_0xd61aa1){switch(_0xd61aa1){case'left':return o(_0x4e4834,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e4834,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e4834,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e4834,'FORMAT_JUSTIFY_TEXT');}}(_0x18dc30))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3b6a96{['afterInit'](){const _0x478f82=this['editor'],_0x11cb93=_0x478f82['plugins']['get']('TrackChangesEditing'),_0x5295c0=_0x478f82['locale'];for(const _0x436540 of ti){if(!_0x478f82['plugins']['has'](_0x436540))continue;const _0x4b478d=_0x436540['slice'](0x0,-0x7)['toLowerCase'](),_0x50faa8='FORMAT_'+_0x4b478d['toUpperCase']();_0x11cb93['enableDefaultAttributesIntegration'](_0x4b478d),_0x11cb93['registerInlineAttribute'](_0x4b478d),_0x11cb93['descriptionFactory']['registerAttributeLabel'](_0x4b478d,o(_0x5295c0,_0x50faa8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a7ff2=this['editor'],_0x3e848a=_0x1a7ff2['locale'],_0x2d5c2d=_0x1a7ff2['plugins']['get']('TrackChangesEditing');function _0x1cfa08(_0x3f3390,_0x41cbf8){_0x2d5c2d['descriptionFactory']['registerDescriptionCallback'](_0x3696e4=>{if('formatInline'!=_0x3696e4['type'])return;const {data:_0x14a7f7}=_0x3696e4;return _0x14a7f7&&_0x14a7f7['commandName']===_0x3f3390?_0x14a7f7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e848a,'*Format:*\x20%0',_0x41cbf8)}:{'type':'format','content':o(_0x3e848a,'*Remove\x20format:*\x20%0',_0x41cbf8)}:void 0x0;});}_0x1cfa08('bold',o(_0x3e848a,'FORMAT_BOLD')),_0x1cfa08('italic',o(_0x3e848a,'FORMAT_ITALIC')),_0x1cfa08('underline',o(_0x3e848a,'FORMAT_UNDERLINE')),_0x1cfa08('code',o(_0x3e848a,'FORMAT_CODE')),_0x1cfa08('strikethrough',o(_0x3e848a,'FORMAT_STRIKETHROUGH')),_0x1cfa08('subscript',o(_0x3e848a,'FORMAT_SUBSCRIPT')),_0x1cfa08('superscript',o(_0x3e848a,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3b6a96{['afterInit'](){const _0x347948=this['editor'],_0x438aec=_0x347948['locale'];if(!_0x347948['plugins']['has']('BlockQuoteEditing'))return;const _0x342b14=_0x347948['plugins']['get']('TrackChangesEditing'),_0x13c0d6=this['editor']['commands']['get']('blockQuote');_0x342b14['enableCommand']('blockQuote',(_0x36b807,_0x2ccc81={})=>{const _0x1fe83a=this['editor']['model']['document']['selection'],_0x46946b=_0x2ccc81&&void 0x0!==_0x2ccc81['forceValue']?_0x2ccc81['forceValue']:!_0x13c0d6['value'];let _0x2c0274=[];if(_0x46946b){const _0x2257e1=Array['from'](_0x1fe83a['getSelectedBlocks']())['filter'](_0x3f8895=>oo(_0x3f8895)||function(_0x2c6302,_0x52827d){const _0x139402=_0x52827d['checkChild'](_0x2c6302['parent'],'blockQuote'),_0x15aa69=_0x52827d['checkChild'](['$root','blockQuote'],_0x2c6302);return _0x139402&&_0x15aa69;}(_0x3f8895,this['editor']['model']['schema']));_0x2c0274=to(_0x2257e1,_0x347948['model']);}else{const _0x6b23b7=Array['from'](_0x1fe83a['getSelectedBlocks']())['filter'](_0x582491=>oo(_0x582491));_0x2c0274=to(_0x6b23b7,_0x347948['model']);}_0x347948['model']['change'](()=>{for(const _0x4d40d7 of _0x2c0274)_0x342b14['markBlockFormat'](_0x4d40d7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x46946b}]});});}),_0x342b14['descriptionFactory']['registerDescriptionCallback'](_0x580406=>{const {data:_0x372fb2}=_0x580406;if(_0x372fb2&&'blockQuote'==_0x372fb2['commandName']){const _0x447291=o(_0x438aec,'ELEMENT_BLOCK_QUOTE');return _0x372fb2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x438aec,'*Set\x20format:*\x20%0',_0x447291)}:{'type':'format','content':o(_0x438aec,'*Remove\x20format:*\x20%0',_0x447291)};}});}}function oo(_0x1fec03){return'blockQuote'==_0x1fec03['parent']['name'];}class L extends _0x3b6a96{['afterInit'](){const _0x2d3996=this['editor'],_0x471c08=_0x2d3996['locale'],_0x2c37f2=_0x2d3996['plugins']['get']('TrackChangesEditing');_0x2d3996['plugins']['has']('BookmarkEditing')&&(_0x2c37f2['enableCommand']('insertBookmark'),_0x2c37f2['enableDefaultAttributesIntegration']('updateBookmark'),_0x2c37f2['registerBlockAttribute']('bookmarkId'),_0x2c37f2['descriptionFactory']['registerDescriptionCallback'](_0x352847=>{if('insertion'!=_0x352847['type']&&'deletion'!=_0x352847['type']&&'attribute'!=_0x352847['type'])return;const _0x488810=_0x352847['getContainedElement']();if(null==_0x488810)return;if(!_0x488810['is']('element','bookmark'))return;const _0x60269b=_0x488810['getAttribute']('bookmarkId');if('insertion'==_0x352847['type'])return{'type':'insertion','content':o(_0x471c08,'*Insert:*\x20%0','\x22'+_0x60269b+'\x22\x20'+o(_0x471c08,'ELEMENT_BOOKMARK'))};if('deletion'==_0x352847['type'])return{'type':'deletion','content':o(_0x471c08,'*Remove:*\x20%0','\x22'+_0x60269b+'\x22\x20'+o(_0x471c08,'ELEMENT_BOOKMARK'))};const {data:_0x3cd01d}=_0x352847;if(!_0x3cd01d||'bookmarkId'!=_0x3cd01d['key'])return;return{'type':'format','content':o(_0x471c08,'*Set\x20bookmark:*\x20%0','\x22'+_0x3cd01d['newValue']+'\x22')};}));}}class J extends _0x3b6a96{['afterInit'](){const _0x3cbc76=this['editor'];_0x3cbc76['plugins']['has']('CaseChange')&&(_0x3cbc76['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3cbc76['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3cbc76['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3b6a96{['afterInit'](){const _0x32f468=this['editor'];_0x32f468['commands']['get']('ckbox')&&_0x32f468['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x3b6a96{['afterInit'](){const _0x56fc1c=this['editor'];if(!_0x56fc1c['plugins']['has']('CodeBlock'))return;const _0x59aab1=_0x56fc1c['plugins']['get']('TrackChangesEditing'),_0x29a2a2=_0x56fc1c['locale'],_0x53913f=_0x56fc1c['config']['get']('codeBlock')['languages'],_0x596f4f=_0x56fc1c['commands']['get']('codeBlock');_0x59aab1['enableCommand']('indentCodeBlock'),_0x59aab1['enableCommand']('outdentCodeBlock'),_0x59aab1['enableCommand']('codeBlock',(_0xec9783,_0x10e038={})=>{const _0x444ee4=_0x56fc1c['model'],_0x22062d=_0x56fc1c['model']['document']['selection'],_0x14815c=_0x10e038&&void 0x0!==_0x10e038['forceValue']?_0x10e038['forceValue']:!_0x596f4f['value'];let _0x1ebdfb;_0x10e038['language']||(_0x10e038['language']=_0x53913f[0x0]['language']),_0x1ebdfb=_0x14815c?Array['from'](_0x22062d['getSelectedBlocks']())['filter'](_0x21a37b=>eo(_0x21a37b)||function(_0x164427,_0x2c2c25){if(_0x164427['is']('rootElement')||_0x2c2c25['isLimit'](_0x164427))return!0x1;return _0x2c2c25['checkChild'](_0x164427['parent'],'codeBlock');}(_0x21a37b,_0x444ee4['schema'])):Array['from'](_0x22062d['getSelectedBlocks']())['filter'](_0x138f35=>eo(_0x138f35));const _0x298699=to(_0x1ebdfb,_0x444ee4);_0x444ee4['change'](()=>{for(const _0x4bda60 of _0x298699)_0x59aab1['markBlockFormat'](_0x4bda60,{'commandName':'codeBlock','commandParams':[{..._0x10e038,'forceValue':_0x14815c}],'formatGroupId':'blockName'});});}),(_0x59aab1['descriptionFactory']['registerElementLabel']('codeBlock',_0x380ebd=>o(_0x29a2a2,'ELEMENT_CODE_BLOCK',_0x380ebd)),_0x59aab1['descriptionFactory']['registerDescriptionCallback'](_0x16ba28=>{if('formatBlock'!=_0x16ba28['type'])return;const _0x1481aa=_0x29a2a2['t'],{data:_0x590172}=_0x16ba28;if(!_0x590172||'codeBlock'!=_0x590172['commandName'])return;const _0x489931=_0x590172['commandParams'][0x0]['language'],_0x40d07c=_0x1481aa(_0x53913f['find'](_0x727e97=>_0x727e97['language']===_0x489931)['label'])['toLowerCase']();return _0x590172['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29a2a2,'*Set\x20format:*\x20%0',o(_0x29a2a2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x40d07c+')')}:{'type':'format','content':o(_0x29a2a2,'*Remove\x20format:*\x20%0',o(_0x29a2a2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x51ca0a){return'codeBlock'==_0x51ca0a['name'];}class z extends _0x3b6a96{['afterInit'](){const _0x290528=this['editor'];if(!_0x290528['plugins']['has']('CommentsEditing'))return;_0x290528['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x239074,_0x5b461d,_0x57b447){const _0x128bce=[];for(const _0x5db4ac of _0x5b461d['getItems']())_0x5db4ac['hasAttribute'](_0x239074)&&_0x128bce['push'](_0x57b447['createRangeOn'](_0x5db4ac));return _0x128bce;}function De(_0x6647fe,_0x24f6da,{showActiveMarker:_0x375e18=!0x0}={}){const _0x3a7f79=_0x6647fe['plugins']['get']('TrackChangesEditing');return(_0x3f673c,_0x1476b5,_0x3dfb7a)=>{if(!_0x3dfb7a['consumable']['test'](_0x1476b5['markerRange'],_0x3f673c['name']))return;const _0x148a2d=_0x1476b5['markerRange']['getWalker'](),_0x11edc2=_0x1476b5['markerRange']['start'],_0x22baa7=_0x6647fe['model']['schema'];let _0x4691bd=null,_0x2fd40f=null,_0x3a474c=!0x1,_0x26ae28=!0x1;for(const _0x1a58f5 of _0x148a2d){const _0x105759=_0x1a58f5['item'];_0x3a474c=_0x3a474c||_0x22baa7['isContent'](_0x105759);const _0x40c712=_0x3dfb7a['mapper']['toViewElement'](_0x105759);if(_0x40c712&&_0x40c712['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1a58f5['type']&&(_0x22baa7['isBlock'](_0x105759)&&!_0x22baa7['isLimit'](_0x105759)&&(_0x105759['nextSibling']||_0x11edc2['isAtEnd']?_0x4691bd&&_0x4691bd['parent']==_0x105759||(_0x4691bd=_0x105759,_0x4f038e(_0x1a58f5['previousPosition']),_0x26ae28=!0x0):_0x2fd40f=_0x2fd40f||_0x1a58f5['previousPosition']));}function _0x4f038e(_0x277790){const {authorId:_0x580196}=_0x3a7f79['_splitMarkerName'](_0x1476b5['markerName']),_0x411dd6=_0x3dfb7a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x24f6da,'data-author-id':_0x580196}),_0x12e885=_0x3dfb7a['mapper']['toViewPosition'](_0x277790);_0x375e18&&_0x3a7f79['activeMarkers']['includes'](_0x1476b5['markerName'])&&_0x3dfb7a['writer']['addClass']('ck-suggestion-marker--active',_0x411dd6),_0x3dfb7a['writer']['insert'](_0x12e885,_0x411dd6),_0x3dfb7a['mapper']['bindElementToMarker'](_0x411dd6,_0x1476b5['markerName']);}_0x3a474c||_0x26ae28||!_0x2fd40f||_0x4f038e(_0x2fd40f);};}class K extends _0x3b6a96{static get['requires'](){return[_0x2272f2];}['init'](){const _0x1b5000=this['editor'],_0x472d53=_0x1b5000['plugins']['get']('TrackChangesEditing');_0x472d53['enableCommand']('delete');const _0x295cac=_0x1b5000['commands']['get']('deleteForward');_0x472d53['enableCommand']('deleteForward',(_0x3cf70c,_0x49d483={})=>{const _0x5667fc=_0x1b5000['model']['createSelection'](_0x1b5000['model']['document']['selection']);_0x5667fc['isCollapsed']&&_0x1b5000['model']['modifySelection'](_0x5667fc,{'direction':'forward','unit':_0x49d483['unit']});const _0xfcd40b=_0x5667fc['getFirstRange'](),_0x176200=_0x4f6ba5['fromRange'](_0xfcd40b);let _0x4d4a43;_0x3cf70c(_0x49d483),_0x4d4a43='$graveyard'==_0x176200['root']['rootName']?_0x1b5000['model']['createRange'](_0xfcd40b['start']):_0x1b5000['model']['createRange'](_0x176200['start'],_0x176200['end']),_0x176200['detach'](),_0x1b5000['model']['enqueueChange'](_0x295cac['buffer']['batch'],_0x475bd7=>{_0x295cac['buffer']['lock'](),_0x475bd7['setSelection'](_0x475bd7['createRange'](_0x4d4a43['end'])),_0x295cac['buffer']['unlock']();});}),_0x1b5000['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1b5000,'merge'),{'priority':'high'}),_0x1b5000['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x17a5b9,_0x694e91,_0x3d6c5a)=>{_0x3d6c5a['options']['showSuggestionHighlights']&&De(_0x1b5000,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x17a5b9,_0x694e91,_0x3d6c5a);},{'priority':'high'}),_0x1b5000['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x40c671,_0x48000e,_0x33dbcf)=>{const _0x237fe4=_0x33dbcf['mapper']['markerNameToElements'](_0x48000e['markerName']);if(_0x237fe4){for(const _0x99277b of _0x237fe4)_0x99277b['is']('uiElement')&&(_0x33dbcf['mapper']['unbindElementFromMarkerName'](_0x99277b,_0x48000e['markerName']),_0x33dbcf['writer']['remove'](_0x99277b));}},{'priority':'high'});}}class W extends _0x3b6a96{['afterInit'](){const _0x38bc87=this['editor'];if(!_0x38bc87['plugins']['has']('ListEditing'))return;const _0x2d77a9=_0x38bc87['locale'],_0x833841=_0x38bc87['plugins']['get']('TrackChangesEditing'),_0x42a478=_0x38bc87['plugins']['has']('TodoListEditing'),_0x243e8b=!!_0x38bc87['config']['get']('list.multiBlock');function _0x4ff533(_0x4bba40){return{'type':'format','content':''+o(_0x2d77a9,'*Set\x20format:*\x20%0',_0x4bba40)};}function _0x80e6ca(_0x39fc5a){return{'type':'format','content':''+o(_0x2d77a9,'*Remove\x20format:*\x20%0',_0x39fc5a)};}_0x833841['enableDefaultAttributesIntegration']('numberedList'),_0x833841['enableDefaultAttributesIntegration']('bulletedList'),_0x833841['enableDefaultAttributesIntegration']('customNumberedList'),_0x833841['enableDefaultAttributesIntegration']('customBulletedList'),_0x833841['enableDefaultAttributesIntegration']('indentList'),_0x833841['enableDefaultAttributesIntegration']('outdentList'),_0x833841['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x833841['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x833841['registerBlockAttribute']('listItemId'),_0x833841['registerBlockAttribute']('listType'),_0x833841['registerBlockAttribute']('listIndent'),_0x243e8b&&(_0x833841['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x833841['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x42a478&&(_0x833841['enableDefaultAttributesIntegration']('todoList'),_0x833841['enableDefaultAttributesIntegration']('checkTodoList'),_0x833841['registerBlockAttribute']('todoListChecked'),_0x833841['descriptionFactory']['registerDescriptionCallback'](_0x2dc5b4=>{const {data:_0xd8422b}=_0x2dc5b4;if(_0xd8422b&&'todoListChecked'==_0xd8422b['key'])return{'type':'format','content':_0xd8422b['newValue']?o(_0x2d77a9,'*Check\x20item*'):o(_0x2d77a9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x356ba4=>{if(_0x356ba4['batch']['isUndo'])return!0x1;let _0x5d944f=!0x1;const _0x245f84=_0x833841['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50699f=>'todoListChecked'===_0x833841['_getAttributeKey'](_0x50699f));for(const _0x2cda51 of _0x245f84){'todo'!=_0x2cda51['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x833841['_findSuggestions'](_0x2cda51['getFirstRange'](),'attribute')['find'](_0x4e6ee8=>'listType'===_0x833841['_getAttributeKey'](_0x4e6ee8['suggestion']))||(_0x356ba4['removeMarker'](_0x2cda51['getFirstMarker']()),_0x5d944f=!0x0));}return _0x5d944f;})),_0x833841['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2d77a9,'FORMAT_INDENT'));const _0x4f75d0={'type':'format','content':''};_0x833841['descriptionFactory']['registerDescriptionCallback'](_0x5be711=>{const {data:_0x5c504f}=_0x5be711;if(!_0x5c504f||'listType'!=_0x5c504f['key'])return;let _0x1c3084=_0x5be711['head'];for(;_0x1c3084;){if(_0x1c3084['data']&&(('listStyle'==_0x1c3084['data']['key']||'listMarkerStyle'==_0x1c3084['data']['key'])&&(_0x1c3084['data']['newValue']&&'default'!=_0x1c3084['data']['newValue']||'default'!=_0x1c3084['data']['oldValue']&&!_0x5c504f['newValue'])||!_0x243e8b&&_0x1c3084['data']['key']==m))return _0x4f75d0;_0x1c3084=_0x1c3084['next'];}if(null==_0x5c504f['newValue'])switch(_0x5c504f['oldValue']){case'bulleted':return _0x80e6ca(o(_0x2d77a9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x80e6ca(o(_0x2d77a9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x80e6ca(o(_0x2d77a9,'ELEMENT_TODO_LIST'));}switch(_0x5c504f['newValue']){case'bulleted':return _0x4ff533(o(_0x2d77a9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ff533(o(_0x2d77a9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ff533(o(_0x2d77a9,'ELEMENT_TODO_LIST'));}}),_0x833841['descriptionFactory']['registerDescriptionCallback'](_0x5c31a4=>{const {data:_0x48b554}=_0x5c31a4;if(_0x48b554&&'listIndent'==_0x48b554['key'])return null==_0x48b554['newValue']||null==_0x48b554['oldValue']&&0x0==_0x48b554['newValue']?_0x4f75d0:void 0x0;}),_0x833841['descriptionFactory']['registerDescriptionCallback'](_0x18bb93=>{if('attribute'!=_0x18bb93['type'])return;const {data:_0x121ef3}=_0x18bb93;if(!_0x121ef3||'listItemId'!=_0x121ef3['key'])return;const _0x2ccc99=Te(_0x18bb93);return'newValue'==_0x2ccc99?{'type':'format','content':o(_0x2d77a9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2ccc99?{'type':'format','content':o(_0x2d77a9,'*Split:*\x20list\x20item')}:_0x4f75d0;}),_0x38bc87['model']['document']['registerPostFixer'](_0x38c5b6=>this['listItemIdFixer'](_0x38c5b6)),_0x38bc87['model']['document']['registerPostFixer'](_0x20c90a=>this['noTrackChangesFixer'](_0x20c90a)),_0x38bc87['model']['document']['on']('change:data',(_0x590610,_0x5f438f)=>{if(_0x5f438f['isUndo']||!_0x5f438f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1960e7){if(_0x1960e7['batch']['isUndo']||!_0x1960e7['batch']['isLocal'])return!0x1;let _0x39fa42=!0x1;const _0x23bea1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4eaf29=>_0x4eaf29['data']&&'listItemId'==_0x4eaf29['data']['key'])['filter'](_0x1af110=>_0x1af110['data']['newValue']&&_0x1af110['data']['oldValue']);for(const _0x580143 of _0x23bea1)Te(_0x580143)||(_0x1960e7['removeMarker'](_0x580143['getFirstMarker']()),_0x39fa42=!0x0);return _0x39fa42;}['noTrackChangesFixer'](_0x5eef87){if(_0x5eef87['batch']['isUndo']||!_0x5eef87['batch']['isLocal'])return!0x1;const _0x530944=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x530944['trackChangesCommand']['value'])return!0x1;let _0x50b6bb=!0x1;const _0x470494=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5a7e17=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xb4fad9=>'attribute'==_0xb4fad9['type'])['filter'](_0x1e3c77=>_0x470494['includes'](_0x1e3c77['attributeKey']));if(0x0==_0x5a7e17['length'])return _0x50b6bb;for(const _0x16e1d7 of _0x5a7e17){const _0x371436=_0x530944['_findSuggestions'](_0x16e1d7['range'],'attribute')['filter'](_0x172c12=>!_0x172c12['meta']['isNextTo'])['map'](_0x339da7=>_0x339da7['suggestion'])['filter'](_0x7f9499=>{const _0x1da154=_0x530944['_getAttributeKey'](_0x7f9499);return _0x470494['includes'](_0x1da154);});if(_0x371436['length']){for(const _0x552b31 of _0x371436)_0x5eef87['removeMarker'](_0x552b31['getFirstMarker']());_0x50b6bb=!0x0;}}return _0x50b6bb;}['assureChains'](){const _0x3ffa08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x66c629=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x436808;const _0x5b06ac=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3f7bb5=>{if(_0x3f7bb5['data']['oldRange']||!_0x3f7bb5['data']['newRange'])return null;if(!_0x3f7bb5['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x249719}=_0x3ffa08['_splitMarkerName'](_0x3f7bb5['name']);if(!_0x3ffa08['hasSuggestion'](_0x249719))return null;const _0xb8ae7e=_0x3ffa08['getSuggestion'](_0x249719);return _0x66c629['includes'](_0xb8ae7e['data']['key']);})['map'](_0x2ae343=>{const {id:_0x39bbbd}=_0x3ffa08['_splitMarkerName'](_0x2ae343['name']),_0x3dd1b8=_0x3ffa08['getSuggestion'](_0x39bbbd);return _0x436808=_0x3dd1b8['attributes']['groupId'],_0x3dd1b8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5b06ac['size'])return;const _0x291f3d=_0x3ffa08['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e086f=>'attribute'==_0x1e086f['type']&&_0x1e086f['data']&&_0x66c629['includes'](_0x1e086f['data']['key'])&&_0x1e086f['attributes']['groupId']!=_0x436808)['map'](_0xcd2d93=>({'listItem':_0xcd2d93['getFirstRange']()['start']['nodeAfter'],'groupId':_0xcd2d93['attributes']['groupId']})),_0x5c67f2=new Set();for(const {groupId:_0x12dc6f,listItem:_0x133504}of _0x291f3d)_0x5b06ac['has'](_0x133504)&&_0x5c67f2['add'](_0x12dc6f);for(const _0x161cbc of _0x3ffa08['getSuggestions']())_0x5c67f2['has'](_0x161cbc['attributes']['groupId'])&&_0x161cbc['setAttribute']('groupId',_0x436808);}['_supportLegacySuggestions'](){const _0x4a57f6=this['editor'],_0x5c8982=_0x4a57f6['locale'],_0x4859e6=_0x4a57f6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4859e6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x7a2ba3,_0x2b3ae2){const _0x5e5a24=[];for(let _0x40ea29 of _0x7a2ba3)_0x40ea29['start']['nodeAfter']===_0x40ea29['end']['parent']&&(_0x40ea29=_0x4a57f6['model']['createRange'](_0x4a57f6['model']['createPositionAt'](_0x40ea29['start']['nodeAfter'],0x0))),_0x5e5a24['push'](_0x40ea29);_0x4a57f6['model']['change'](_0x4f26eb=>{const _0x1b1ddb=_0x4a57f6['model']['document']['selection'],_0x2b6ca4=Array['from'](_0x1b1ddb['getRanges']())['map'](_0x2f5d26=>_0x4f6ba5['fromRange'](_0x2f5d26));_0x4f26eb['setSelection'](_0x5e5a24),_0x4a57f6['commands']['get'](_0x2b3ae2['commandName'])['refresh'](),_0x2b3ae2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a57f6['execute'](_0x2b3ae2['commandName'],..._0x2b3ae2['commandParams']),_0x4f26eb['setSelection'](_0x2b6ca4);for(const _0x6f9c6a of _0x2b6ca4)_0x6f9c6a['detach']();});}),_0x4859e6['descriptionFactory']['registerElementLabel'](function(_0xe56002){const _0x3d56c2=!_0x4a57f6['model']['schema']['isObject'](_0xe56002),_0x48252b=_0xe56002['previousSibling'],_0x3a7c26=_0xe56002['nextSibling'],_0x30f8d9=_0xe56002['getAttribute']('listItemId'),_0x4ce941=!_0x48252b||_0x48252b['getAttribute']('listItemId')!==_0x30f8d9,_0x186811=!_0x3a7c26||_0x3a7c26['getAttribute']('listItemId')!==_0x30f8d9;return _0x3d56c2&&Boolean(_0x30f8d9)&&_0x4ce941&&_0x186811;},_0x6da2ed=>o(_0x5c8982,'ELEMENT_LIST_ITEM',_0x6da2ed));}['_registerLegacyDescription'](){const _0x2ec85a=this['editor'],_0x506423=_0x2ec85a['locale'];function _0x4f932f(_0x1e2b9f){const _0x339f92=_0x2ec85a['commands']['get']('bulletedList')['value'],_0x173190=_0x2ec85a['commands']['get']('numberedList')['value'];return'numberedList'===_0x1e2b9f?_0x339f92:_0x173190;}_0x2ec85a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x44fffd){if('formatBlock'!=_0x44fffd['type'])return;const {data:_0x145273}=_0x44fffd;if(!_0x145273)return;let _0x57be34,_0x148300,_0x4c3645,_0x551a25;switch(_0x145273['commandName']){case'bulletedList':_0x4c3645=_0x145273['commandParams'][0x0]['forceValue'],_0x551a25=_0x4f932f(_0x145273['commandName']),_0x57be34=_0x4c3645?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x551a25&&_0x2ec85a['config']['get']('list.multiBlock')||(_0x57be34='*Change\x20to:*\x20%0'),_0x148300={'type':'format','content':o(_0x506423,_0x57be34,o(_0x506423,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4c3645=_0x145273['commandParams'][0x0]['forceValue'],_0x551a25=_0x4f932f(_0x145273['commandName']),_0x57be34=_0x4c3645?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x551a25&&_0x2ec85a['config']['get']('list.multiBlock')||(_0x57be34='*Change\x20to:*\x20%0'),_0x148300={'type':'format','content':o(_0x506423,_0x57be34,o(_0x506423,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x57be34='*Indent:*\x20%0',_0x148300={'type':'format','content':o(_0x506423,_0x57be34,o(_0x506423,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x57be34=function(_0x68de9c){const _0x46dbd0=_0x68de9c['getFirstRange']();let _0x2dfb78=_0x46dbd0['start']['nodeAfter'];for(;_0x2dfb78&&_0x46dbd0['containsItem'](_0x2dfb78);){if(_0x2dfb78['getAttribute']('listIndent')>0x0)return!0x1;_0x2dfb78=_0x2dfb78['nextSibling'];}return!0x0;}(_0x44fffd)?o(_0x506423,'*Format:*\x20remove\x20from\x20%0',o(_0x506423,function(_0x43dd89){return'ELEMENT_'+_0x43dd89['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x44fffd))):o(_0x506423,'*Outdent:*\x20%0',o(_0x506423,'ELEMENT_LIST_ITEM')),_0x148300={'type':'format','content':_0x57be34};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x145273['multipleBlocks']&&(_0x57be34='*Merge:*\x20%0',_0x148300={'type':'deletion','content':o(_0x506423,_0x57be34,o(_0x506423,'ELEMENT_LIST_ITEM'))});}return _0x148300;});}}function Te(_0x52f3b8){let _0x1a9a83=_0x52f3b8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1a9a83;){const _0x139690=_0x1a9a83['getAttribute']('listItemId');if(!_0x139690)return!0x1;if(_0x139690==_0x52f3b8['data']['newValue'])return'newValue';if(_0x139690==_0x52f3b8['data']['oldValue'])return'oldValue';_0x1a9a83=_0x1a9a83['previousSibling'];}return!0x1;}class Se extends _0x3b6a96{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3c59bf=this['editor']['config']['get']('list.properties'),_0x1ce833=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c59bf['styles']&&(_0x1ce833['enableDefaultAttributesIntegration']('listStyle'),_0x1ce833['registerBlockAttribute']('listStyle')),_0x3c59bf['reversed']&&(_0x1ce833['enableDefaultAttributesIntegration']('listReversed'),_0x1ce833['registerBlockAttribute']('listReversed')),_0x3c59bf['startIndex']&&(_0x1ce833['enableDefaultAttributesIntegration']('listStart'),_0x1ce833['registerBlockAttribute']('listStart'));const _0x4c4a00={'type':'format','content':''};_0x1ce833['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xa15b02=this['editor']['locale'];_0x1ce833['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xa15b02,'FORMAT_LIST_REVERSED')),_0x1ce833['descriptionFactory']['registerDescriptionCallback'](_0x15425a=>{const {data:_0x52fe23}=_0x15425a;if(_0x52fe23&&'listReversed'==_0x52fe23['key'])return null==_0x52fe23['newValue']||0x0==_0x52fe23['newValue']&&null==_0x52fe23['oldValue']?_0x4c4a00:void 0x0;}),_0x1ce833['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xa15b02,'FORMAT_LIST_START')),_0x1ce833['descriptionFactory']['registerDescriptionCallback'](_0x13c340=>{const {data:_0x230495}=_0x13c340;if(_0x230495&&'listStart'==_0x230495['key'])return null==_0x230495['newValue']||0x1==_0x230495['newValue']&&null==_0x230495['oldValue']?_0x4c4a00:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1a60a1=>{if(_0x1a60a1['batch']['isUndo'])return!0x1;let _0x4693e9=!0x1;const _0x2ae26c=_0x1ce833['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45388e=>{const _0x2d59a4=_0x1ce833['_getAttributeKey'](_0x45388e);return'listStart'==_0x2d59a4||'listReversed'==_0x2d59a4;});for(const _0x1b8b5c of _0x2ae26c){const _0x20f7b2=_0x1b8b5c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x20f7b2||'customNumbered'==_0x20f7b2)continue;_0x1ce833['_findSuggestions'](_0x1b8b5c['getFirstRange'](),'attribute')['find'](_0xd230fc=>'listType'==_0x1ce833['_getAttributeKey'](_0xd230fc['suggestion']))||(_0x1a60a1['removeMarker'](_0x1b8b5c['getFirstMarker']()),_0x4693e9=!0x0);}return _0x4693e9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5687b8){const _0x2aaf56=this['editor']['locale'],{data:_0x6b2b4e}=_0x5687b8,_0x16e952={'type':'format','content':''};if(!_0x6b2b4e||'listStyle'!=_0x6b2b4e['key'])return;if(!_0x6b2b4e['oldValue'])return'default'==_0x6b2b4e['newValue']?_0x16e952:{'type':'format','content':''+o(_0x2aaf56,'*Set\x20format:*\x20%0',o(_0x2aaf56,this['_getTranslationKeyForListStyle'](_0x6b2b4e['newValue'])))};if(!_0x6b2b4e['newValue']){if('default'==_0x6b2b4e['oldValue'])return _0x16e952;let _0x4de6bf=_0x5687b8['head'];for(;_0x4de6bf;){if(_0x4de6bf['data']&&'listType'==_0x4de6bf['data']['key']&&_0x4de6bf['data']['newValue'])return _0x16e952;_0x4de6bf=_0x4de6bf['next'];}return{'type':'format','content':''+o(_0x2aaf56,'*Remove\x20format:*\x20%0',o(_0x2aaf56,this['_getTranslationKeyForListStyle'](_0x6b2b4e['oldValue'])))};}if('default'!=_0x6b2b4e['newValue'])return{'type':'format','content':''+o(_0x2aaf56,'*Set\x20format:*\x20%0',o(_0x2aaf56,this['_getTranslationKeyForListStyle'](_0x6b2b4e['newValue'])))};let _0x12a1cc=_0x5687b8['head'];for(;_0x12a1cc;){if(_0x12a1cc['data']&&'listType'==_0x12a1cc['data']['key']&&_0x12a1cc['data']['newValue']&&_0x12a1cc['data']['oldValue'])return _0x16e952;_0x12a1cc=_0x12a1cc['next'];}return{'type':'format','content':o(_0x2aaf56,'*Set\x20format:*\x20%0',o(_0x2aaf56,'ELEMENT_'+_0x5687b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x55ec39=this['editor'],_0x5aca6b=_0x55ec39['locale'];_0x55ec39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4684a0=>{if('formatBlock'!=_0x4684a0['type'])return;const {data:_0x1ede57}=_0x4684a0;if(!_0x1ede57)return;let _0x114f63,_0x23c38c;switch(_0x1ede57['commandName']){case'listStyle':_0x114f63='*Change\x20to:*\x20%0',_0x23c38c={'type':'format','content':o(_0x5aca6b,_0x114f63,o(_0x5aca6b,this['_getTranslationKeyForListStyle'](_0x1ede57['commandParams'][0x0]['type'])))};break;case'listReversed':_0x114f63=_0x1ede57['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x23c38c={'type':'format','content':o(_0x5aca6b,_0x114f63)};break;case'listStart':_0x114f63='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x23c38c={'type':'format','content':o(_0x5aca6b,_0x114f63,_0x1ede57['commandParams'][0x0]['startIndex'])};}return _0x23c38c;});}['_getTranslationKeyForListStyle'](_0x5a30f3){return'ELEMENT_'+function(_0x49c0b3){if(_e['includes'](_0x49c0b3))return'bulleted';if(Re['includes'](_0x49c0b3))return'numbered';return null;}(_0x5a30f3)['toUpperCase']()+'_LIST_'+_0x5a30f3['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x3b6a96{['afterInit'](){const _0x5c8ba1=this['editor'];_0x5c8ba1['commands']['get']('emoji')&&_0x5c8ba1['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x3b6a96{static get['requires'](){return[_0x49dcc7];}['init'](){const _0x4402dd=this['editor'],_0x422316=_0x4402dd['plugins']['get']('TrackChangesEditing'),_0x3966c1=_0x4402dd['commands']['get']('enter');_0x422316['enableCommand']('enter',()=>{_0x4402dd['model']['change'](_0x15b87c=>{const _0x4d20c3=_0x4402dd['model']['document']['selection'],_0x417a74=_0x4d20c3['getFirstPosition'](),_0x15d626=_0x4f6ba5['fromRange'](_0x4d20c3['getFirstRange']());if(_0x3966c1['enterBlock'](_0x15b87c)){const _0x54fc14=_0x4402dd['model']['createPositionAt'](_0x417a74['parent']['nextSibling'],0x0),_0x42a8fb=_0x15b87c['createRange'](_0x417a74,_0x54fc14);_0x422316['markInsertion'](_0x42a8fb);}else _0x15b87c['setSelection'](_0x15b87c['createRange'](_0x15d626['end']));_0x15d626['detach'](),_0x3966c1['fire']('afterExecute',{'writer':_0x15b87c});});}),_0x4402dd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4402dd,'split'),{'priority':'high'}),_0x4402dd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x47ff06,_0x30344e,_0x1e52d4)=>{const _0x43de33=_0x1e52d4['mapper']['markerNameToElements'](_0x30344e['markerName']);if(_0x43de33){for(const _0x57f9e1 of _0x43de33)_0x57f9e1['hasClass']('ck-suggestion-marker-split')&&(_0x1e52d4['mapper']['unbindElementFromMarkerName'](_0x57f9e1,_0x30344e['markerName']),_0x1e52d4['writer']['remove'](_0x57f9e1));}},{'priority':'high'}),_0x4402dd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x138f9c,_0x5f59f3,_0x4c3e20)=>{_0x4c3e20['options']['showSuggestionHighlights']&&De(_0x4402dd,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x138f9c,_0x5f59f3,_0x4c3e20);},{'priority':'high'});}}class Z extends _0x3b6a96{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x24834c=this['editor']['plugins']['get']('TrackChangesEditing');_0x24834c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x24834c['enableCommand']('findNext'),_0x24834c['enableCommand']('findPrevious'),_0x24834c['enableCommand']('replace'),_0x24834c['enableCommand']('replaceAll');}['handleFindCommand'](_0x4e6b27,_0x46ac1e,_0x52996c={}){const _0xbf0c5f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4e6b27(_0x2411db=>{let _0x3e08f3=('string'==typeof _0x46ac1e?_0xbf0c5f['findByTextCallback'](_0x46ac1e,_0x52996c):_0x46ac1e)(_0x2411db);Array['isArray'](_0x3e08f3)&&(_0x3e08f3={'results':_0x3e08f3,'searchText':'string'==typeof _0x46ac1e?_0x46ac1e:''});const _0x1b322b=_0x3e08f3['results']['filter'](_0x4b1c36=>!0x1===this['_isInDeletionRange'](_0x4b1c36,_0x2411db['item']));return{..._0x3e08f3,'results':_0x1b322b};},_0x52996c);}['_isInDeletionRange'](_0x1db9bd,_0x4af2){const _0x16203d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4af2,_0x1db9bd['start']),this['editor']['model']['createPositionAt'](_0x4af2,_0x1db9bd['end']));for(const _0x782253 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x16203d['getIntersection'](_0x782253['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 _0x3b6a96{['afterInit'](){const _0x41c3e8=this['editor']['locale'],_0x1855e2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4efc30,commandName:_0x36b339}of ro)this['editor']['plugins']['has'](_0x4efc30)&&(_0x1855e2['enableDefaultAttributesIntegration'](_0x36b339),_0x1855e2['registerInlineAttribute'](_0x36b339));_0x1855e2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x41c3e8,'FORMAT_FONT_SIZE')),_0x1855e2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x41c3e8,'FORMAT_FONT_FAMILY')),_0x1855e2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x41c3e8,'FORMAT_FONT_COLOR')),_0x1855e2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x41c3e8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c546e=this['editor'],_0xe0520d=_0x2c546e['locale'];_0x2c546e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x175543=>{const _0x48d231=_0xe0520d['t'];if('formatInline'!=_0x175543['type'])return;const {data:_0x101da9}=_0x175543;if(null!=_0x101da9){if('fontSize'==_0x101da9['commandName']){const _0x18c9da=_0x101da9['commandParams'][0x0]['value'];if(_0x18c9da){const _0x417659=_0x48d231(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x450278=>_0x450278['model']==_0x18c9da)['title'])['toLowerCase']();return{'type':'format','content':o(_0xe0520d,'*Set\x20font\x20size:*\x20%0',_0x417659)};}return{'type':'format','content':o(_0xe0520d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x101da9['commandName']){const _0x2c26fc=_0x101da9['commandParams'][0x0]['value'];return _0x2c26fc?{'type':'format','content':o(_0xe0520d,'*Set\x20font\x20family:*\x20%0',_0x2c26fc)}:{'type':'format','content':o(_0xe0520d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x101da9['commandName']){const _0x2f25d3=_0x101da9['commandParams'][0x0]['value'];if(_0x2f25d3){const _0x3410fc=_0x164a1a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5061aa=>_0x5061aa['model']==_0x2f25d3);let _0x56ecc5=_0x2f25d3,_0x485f5a='';return _0x3410fc&&(_0x56ecc5=_0x3410fc['label'],_0x485f5a=_0x48d231(_0x56ecc5)['toLowerCase']()),{'type':'format','content':o(_0xe0520d,'*Set\x20font\x20color:*\x20%0',_0x485f5a)['trim'](),'color':{'value':_0x2f25d3,'title':_0x485f5a||_0x56ecc5}};}return{'type':'format','content':o(_0xe0520d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x101da9['commandName']){const _0xed73f5=_0x101da9['commandParams'][0x0]['value'];if(_0xed73f5){const _0x4094a9=_0x164a1a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3c0d7b=>_0x3c0d7b['model']==_0xed73f5);let _0x14cc4e=_0xed73f5,_0x3f8ef7='';return _0x4094a9&&(_0x14cc4e=_0x4094a9['label'],_0x3f8ef7=_0x48d231(_0x14cc4e)['toLowerCase']()),{'type':'format','content':o(_0xe0520d,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f8ef7)['trim'](),'color':{'value':_0xed73f5,'title':_0x3f8ef7||_0x14cc4e}};}return{'type':'format','content':o(_0xe0520d,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x3b6a96{['afterInit'](){const _0x4ef1f9=this['editor'],_0x115e4f=_0x4ef1f9['plugins']['get']('TrackChangesEditing'),_0x4fd028=_0x4ef1f9['commands']['get']('copyFormat'),_0x417209=_0x4ef1f9['commands']['get']('pasteFormat');_0x4fd028&&_0x417209&&(_0x115e4f['enableDefaultAttributesIntegration']('pasteFormat'),_0x115e4f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x255538=this['editor'],_0x36a789=_0x255538['locale'];_0x255538['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33837d=>{if('formatBlock'!=_0x33837d['type']&&'formatInline'!=_0x33837d['type'])return;const {data:_0x35f530}=_0x33837d;if(_0x35f530&&'pasteFormat'===_0x35f530['commandName']){const _0x3be756=[],_0x55fb65=_0x35f530['commandParams'][0x0];for(const [_0x337a24,_0x3fc2bd]of Object['entries'](_0x55fb65))_0x3be756['push'](so(_0x255538,_0x337a24,_0x3fc2bd));return _0x3be756['length']?{'type':'format','content':o(_0x36a789,'*Set\x20format\x20to:*\x20%0',_0x3be756['join'](',\x20'))}:{'type':'format','content':o(_0x36a789,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4e1242,_0x13784a,_0x5bd5ef){const _0xf0e565=_0x4e1242['locale']['t'],_0x2d9e5d=_0x13784a['split'](/(?=[A-Z])/)['join']('\x20'),_0x4effcd=_0xf0e565(_0x2d9e5d['charAt'](0x0)['toUpperCase']()+_0x2d9e5d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5bd5ef)return _0x4effcd;if('fontColor'===_0x13784a||'fontBackgroundColor'===_0x13784a){const _0x29de61=_0x164a1a(_0x4e1242['config']['get']('fontColor.colors'))['find'](_0x1b8f1f=>_0x1b8f1f['model']==_0x5bd5ef);return _0x4effcd+'\x20('+(_0x29de61?_0xf0e565(_0x29de61['label'])['toLowerCase']():_0x5bd5ef)+')';}if('fontSize'===_0x13784a&&isNaN(parseFloat(_0x5bd5ef))){const _0x176a1f=_0x4e1242['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4e1242['config']['get']('fontSize.options'))['find'](_0x2043bc=>_0x2043bc['model']==_0x5bd5ef);return _0x4effcd+'\x20('+(_0x176a1f?_0xf0e565(_0x176a1f['title'])['toLowerCase']():_0x5bd5ef)+')';}return _0x4effcd+'\x20('+_0x5bd5ef+')';}class it extends _0x3b6a96{['_headingOptions'];['afterInit'](){const _0x2c41bf=this['editor'];if(!_0x2c41bf['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2c41bf['config']['get']('heading.options');const _0x2e4250=_0x2c41bf['locale'],_0x36072c=_0x2c41bf['plugins']['get']('TrackChangesEditing');_0x36072c['enableDefaultAttributesIntegration']('heading');for(const _0x487277 of this['_headingOptions'])'paragraph'!=_0x487277['model']&&_0x36072c['descriptionFactory']['registerElementLabel'](_0x487277['model'],_0x3a1a43=>{const _0x560fbd=this['_getHeadingLevel'](_0x487277['model']);return null!==_0x560fbd?_0x2588f3(_0x3a1a43,_0x560fbd):_0x283777(_0x3a1a43,_0x487277['title']);});function _0x2588f3(_0x4a2174,_0x524e13){return o(_0x2e4250,'ELEMENT_HEADING',[_0x4a2174,_0x524e13]);}function _0x283777(_0x42bcf7,_0x49459d){return o(_0x2e4250,'ELEMENT_HEADING_CUSTOM',[_0x42bcf7,_0x49459d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28d662=this['editor'],_0x4e9560=_0x28d662['locale'];function _0x20e480(_0x535d8d,_0x20c32d){return o(_0x4e9560,'ELEMENT_HEADING_CUSTOM',[_0x535d8d,_0x20c32d]);}_0x28d662['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49049b=>{if('formatBlock'!=_0x49049b['type'])return;const {data:_0xf7dc6a}=_0x49049b;if(_0xf7dc6a&&'heading'==_0xf7dc6a['commandName']){const _0x43e3f4=_0xf7dc6a['commandParams'][0x0]['value'],_0x4fbc02=this['_getHeadingLevel'](_0x43e3f4);if(null!==_0x4fbc02)return{'type':'format','content':o(_0x4e9560,'*Change\x20to:*\x20%0',(_0x56c254=0x1,_0x5e05cd=_0x4fbc02,o(_0x4e9560,'ELEMENT_HEADING',[_0x56c254,_0x5e05cd])))};const _0x1989c7=this['_headingOptions']['find'](_0x899d39=>_0x899d39['model']===_0x43e3f4)['title'];return{'type':'format','content':o(_0x4e9560,'*Change\x20to:*\x20%0',_0x20e480(0x1,_0x1989c7))};}var _0x56c254,_0x5e05cd;});}['_getHeadingLevel'](_0x24d533){const _0x429b60=_0x24d533['match'](/^heading(\d+)/);if(_0x429b60)return _0x429b60[0x1];const _0x43073c=this['_headingOptions']?.['find'](_0x346ae1=>_0x346ae1['model']==_0x24d533);if(_0x43073c&&_0x43073c['view']){const _0x1c5be0=_0x43073c['view'],_0x301581=(_0x1c5be0['name']??_0x1c5be0)['match'](/^h(\d+)/);if(_0x301581)return _0x301581[0x1];}return null;}}class et extends _0x3b6a96{['afterInit'](){const _0x13e411=this['editor'];if(!_0x13e411['plugins']['has']('HighlightEditing'))return;const _0x592d1d=_0x13e411['plugins']['get']('TrackChangesEditing'),_0x4fd13a=_0x13e411['locale'];_0x592d1d['enableDefaultAttributesIntegration']('highlight'),_0x592d1d['registerInlineAttribute']('highlight'),_0x592d1d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4fd13a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d8f69=this['editor'],_0x3365d6=_0x5d8f69['locale'];_0x5d8f69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4778fe=>{if('formatInline'!=_0x4778fe['type'])return;const {data:_0x6d7d74}=_0x4778fe;if(_0x6d7d74&&'highlight'==_0x6d7d74['commandName']){const _0x967116=_0x3365d6['t'],_0x4bc943=_0x6d7d74['commandParams'][0x0]['value'];if(_0x4bc943){const _0x262087=_0x5d8f69['config']['get']('highlight.options')['find'](_0x52a258=>_0x52a258['model']==_0x4bc943),_0x15c30c=_0x967116(_0x262087['title'])['toLowerCase']();return{'type':'format','content':o(_0x3365d6,'*Set\x20highlight:*\x20%0',_0x15c30c),'color':{'value':_0x262087['color'],'title':_0x262087['title']}};}return{'type':'format','content':o(_0x3365d6,'*Remove\x20highlight*',o(_0x3365d6,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x3b6a96{['afterInit'](){const _0x1ca336=this['editor'];if(!_0x1ca336['plugins']['has']('HorizontalLineEditing'))return;_0x1ca336['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x46a9ec=_0x1ca336['plugins']['get']('TrackChangesEditing'),_0x2cec3b=_0x1ca336['locale'];_0x46a9ec['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4429e3=>o(_0x2cec3b,'ELEMENT_HORIZONTAL_LINE',_0x4429e3)),_0x1ca336['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x20f76a,{writer:_0x448380,options:_0x1d4574})=>{if(!_0x1d4574['showSuggestionHighlights'])return null;const _0x4ba506=_0x448380['createContainerElement']('div'),_0x5869a7=_0x448380['createEmptyElement']('hr');return _0x448380['addClass']('ck-horizontal-line',_0x4ba506),_0x448380['insert'](_0x448380['createPositionAt'](_0x4ba506,0x0),_0x5869a7),_0x4ba506;},'converterPriority':'high'});}}class ot extends _0x3b6a96{['afterInit'](){const _0x83af4e=this['editor'];if(!_0x83af4e['plugins']['has']('HtmlEmbed'))return;const _0x52d707=_0x83af4e['plugins']['get']('TrackChangesEditing'),_0x246b38=_0x83af4e['locale'];_0x52d707['descriptionFactory']['registerElementLabel']('rawHtml',_0x48fa14=>o(_0x246b38,'ELEMENT_HTML_EMBED',_0x48fa14)),_0x52d707['enableDefaultAttributesIntegration']('htmlEmbed'),_0x52d707['registerBlockAttribute']('value'),_0x52d707['descriptionFactory']['registerDescriptionCallback'](_0x1ebaf6=>{if('attribute'!=_0x1ebaf6['type'])return;const {data:_0x58f13c}=_0x1ebaf6;if(_0x58f13c&&'value'==_0x58f13c['key']&&_0x1ebaf6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xe0d8c8=o(_0x246b38,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x246b38,'*Change\x20%0\x20content*',_0xe0d8c8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52f1c1=this['editor'],_0x1dff7a=_0x52f1c1['locale'];_0x52f1c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3430d4=>{if('formatBlock'!=_0x3430d4['type'])return;const {data:_0x16f243}=_0x3430d4;if(_0x16f243&&'htmlEmbed'==_0x16f243['commandName']){const _0x5ead56=o(_0x1dff7a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1dff7a,'*Change\x20%0\x20content*',_0x5ead56)};}});}}class rt extends _0x3b6a96{['afterInit'](){const _0x34b737=this['editor'];if(!_0x34b737['plugins']['has']('ImageEditing'))return;const _0x1b14fa=_0x34b737['plugins']['get']('TrackChangesEditing'),_0x40725c=_0x34b737['plugins']['get']('ImageUtils'),_0x1e044b=_0x34b737['locale'];_0x1b14fa['enableCommand']('insertImage'),_0x1b14fa['descriptionFactory']['registerElementLabel']('imageBlock',_0x403af5=>o(_0x1e044b,'ELEMENT_IMAGE',_0x403af5)),_0x1b14fa['descriptionFactory']['registerElementLabel']('imageInline',_0x376f34=>o(_0x1e044b,'ELEMENT_INLINE_IMAGE',_0x376f34)),_0x1b14fa['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1e044b,'ELEMENT_CAPTION')),_0x34b737['plugins']['has']('ImageUploadEditing')&&_0x1b14fa['enableCommand']('uploadImage'),_0x34b737['plugins']['has']('ImageBlockEditing')&&_0x34b737['plugins']['has']('ImageInlineEditing')&&(_0x1b14fa['enableCommand']('imageTypeInline',(_0x1de4bf,_0x2953c0)=>{const _0x5adb0f=_0x40725c['getClosestSelectedImageElement'](_0x34b737['model']['document']['selection']);_0x34b737['model']['change'](()=>{_0x1b14fa['markBlockFormat'](_0x5adb0f,{'commandName':'imageTypeInline','commandParams':[_0x2953c0]},[],'convertBlockImageToInline');});}),_0x1b14fa['enableCommand']('imageTypeBlock',(_0x240ac2,_0x1fd582)=>{_0x34b737['model']['change'](_0x4f5733=>{let _0x3cd4b3=_0x40725c['getClosestSelectedImageElement'](_0x34b737['model']['document']['selection']),_0x23f675=_0x4f5733['createRangeOn'](_0x3cd4b3);const _0x2496f6=_0x2719a2['fromPosition'](_0x23f675['start'],'toPrevious'),_0x8d1eb3=_0x2719a2['fromPosition'](_0x23f675['end'],'toNext');_0x1b14fa['forceDefaultExecution'](()=>_0x240ac2(_0x1fd582)),_0x3cd4b3=_0x40725c['getClosestSelectedImageElement'](_0x34b737['model']['document']['selection']),_0x23f675=_0x4f5733['createRangeOn'](_0x3cd4b3);const _0x352079=_0x4f5733['createRange'](_0x2496f6,_0x8d1eb3);_0x2496f6['detach'](),_0x8d1eb3['detach'](),_0x1b14fa['markBlockFormat'](_0x3cd4b3,{'commandName':'imageTypeInline','commandParams':[_0x1fd582]},[],'convertInlineImageToBlock'),_0x352079['start']['isBefore'](_0x23f675['start'])&&_0x1b14fa['markInsertion'](_0x4f5733['createRange'](_0x352079['start'],_0x23f675['start']),'convertInlineImageToBlock'),_0x23f675['end']['isBefore'](_0x352079['end'])&&_0x1b14fa['markInsertion'](_0x4f5733['createRange'](_0x23f675['end'],_0x352079['end']),'convertInlineImageToBlock');});}),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1b14fa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x6cf216])=>{const _0x52297a=_0x1b14fa['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x6af37b=_0x6cf216['start'],_0x1288ca=_0x6cf216['end'];const _0xa389ae=_0x34b737['model']['schema']['getNearestSelectionRange'](_0x6af37b,'backward'),_0x1d8c6b=_0x34b737['model']['schema']['getNearestSelectionRange'](_0x1288ca,'forward');_0xa389ae['isCollapsed']&&(_0x6af37b=_0xa389ae['start']),_0x1d8c6b['isCollapsed']&&(_0x1288ca=_0x1d8c6b['end']),_0x52297a([_0x34b737['model']['createRange'](_0x6af37b,_0x1288ca)]);}),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2d58fa),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2d58fa)),_0x34b737['plugins']['has']('ImageCaptionEditing')&&(_0x1b14fa['enableCommand']('toggleImageCaption',(_0x212eb8,_0xe4441)=>{const _0x1d6454=_0x34b737['plugins']['get']('ImageCaptionUtils');let _0x39138f=_0x40725c['getClosestSelectedImageElement'](_0x34b737['model']['document']['selection']),_0x168d10=_0x1d6454['getCaptionFromImageModelElement'](_0x39138f);_0x34b737['model']['change'](()=>{if(_0x168d10)return void _0x1b14fa['markDeletion'](_0x34b737['model']['createRangeOn'](_0x168d10));const _0x5532cb=_0x40725c['isBlockImage'](_0x39138f);_0x212eb8(_0xe4441),_0x39138f=_0x40725c['getClosestSelectedImageElement'](_0x34b737['model']['document']['selection']),_0x168d10=_0x1d6454['getCaptionFromImageModelElement'](_0x39138f),_0x1b14fa['markInsertion'](_0x34b737['model']['createRangeOn'](_0x168d10),_0x5532cb?null:'imageCaption');});}),_0x1b14fa['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2d58fa));const _0x594b72=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3224e7(_0x177bb2,_0x17ce3b){const _0x56deda=_0x594b72['findIndex'](({type:_0x5a3609,subType:_0x22ffb6})=>_0x177bb2['type']==_0x5a3609&&_0x177bb2['subType']==_0x22ffb6),_0x8043a5=_0x594b72['findIndex'](({type:_0x4ae693,subType:_0x2aa783})=>_0x17ce3b['type']==_0x4ae693&&_0x17ce3b['subType']==_0x2aa783);if(_0x56deda<0x0||_0x8043a5<0x0)return!0x1;const _0x429c67=_0x177bb2['getFirstRange'](),_0x1b44c9=_0x17ce3b['getFirstRange']();if((0x0==_0x56deda||0x1==_0x56deda)&&0x2==_0x8043a5&&_0x429c67['isIntersecting'](_0x1b44c9))return!0x0;if(0x2==_0x56deda&&0x3==_0x8043a5){const _0x5833ee=_0x1b14fa['_findSuggestions'](_0x429c67,'insertion')['filter'](({suggestion:_0x3baf74,meta:_0x2ddca6})=>_0x2ddca6['isOwn']&&'convertInlineImageToBlock'==_0x3baf74['subType']);if(_0x5833ee['length']>0x1&&_0x1b44c9['end']['isEqual'](_0x429c67['start']))return!0x0;if(0x1==_0x5833ee['length']&&(_0x429c67['start']['isEqual'](_0x1b44c9['end'])||_0x429c67['end']['isEqual'](_0x1b44c9['start'])))return!0x0;}if(0x3==_0x56deda&&0x3==_0x8043a5&&_0x429c67['start']['isBefore'](_0x1b44c9['start'])){const _0xefb0dd=_0x429c67['end']['nodeAfter'],_0x119506=_0x1b44c9['start']['nodeBefore'];return _0x40725c['isBlockImage'](_0xefb0dd)&&_0xefb0dd===_0x119506;}return!0x1;}function _0x2d58fa(_0x355dd5,_0x4b60fd){return _0x3224e7(_0x355dd5,_0x4b60fd)?[_0x355dd5,_0x4b60fd]:_0x3224e7(_0x4b60fd,_0x355dd5)?[_0x4b60fd,_0x355dd5]:null;}_0x34b737['plugins']['has']('ImageResize')&&(_0x1b14fa['enableDefaultAttributesIntegration']('resizeImage'),_0x1b14fa['registerBlockAttribute']('resizedWidth'),_0x1b14fa['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1e044b,'FORMAT_IMAGE_SIZE'))),_0x34b737['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1b14fa['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1b14fa['registerBlockAttribute']('alt')),_0x34b737['plugins']['has']('PictureEditing')&&(_0x1b14fa['registerBlockAttribute']('sources'),_0x1b14fa['descriptionFactory']['registerDescriptionCallback'](_0xde58ba=>{if('attribute'!=_0xde58ba['type'])return;const {data:_0x19104d}=_0xde58ba;return _0x19104d&&'sources'==_0x19104d['key']?{'type':'format','content':''}:void 0x0;})),_0x34b737['plugins']['has']('ImageSizeAttributes')&&(_0x1b14fa['registerBlockAttribute']('width'),_0x1b14fa['registerBlockAttribute']('height'),_0x1b14fa['descriptionFactory']['registerDescriptionCallback'](_0x236ea8=>{if('attribute'!=_0x236ea8['type'])return;const {data:_0x31d345}=_0x236ea8;return!_0x31d345||'width'!=_0x31d345['key']&&'height'!=_0x31d345['key']?void 0x0:{'type':'format','content':''};})),_0x1b14fa['descriptionFactory']['registerDescriptionCallback'](_0x4eaa5c=>{if(!!_0x594b72['find'](({type:_0x3f4344,subType:_0x1e27da})=>_0x4eaa5c['type']==_0x3f4344&&_0x4eaa5c['subType']==_0x1e27da))return _0x4eaa5c['previous']?{}:void 0x0;}),_0x1b14fa['descriptionFactory']['registerDescriptionCallback'](_0x2577a3=>{if('insertion'==_0x2577a3['type']||'deletion'==_0x2577a3['type']){const _0x4aa4d2=_0x2577a3['getContainedElement']();if(_0x4aa4d2&&_0x4aa4d2['is']('element','caption'))return{'type':'insertion'==_0x2577a3['type']?'addObject':'removeObject','element':_0x4aa4d2,'quantity':0x1};}}),_0x1b14fa['descriptionFactory']['registerDescriptionCallback'](_0x4108f1=>'formatBlock'==_0x4108f1['type']&&'convertInlineImageToBlock'==_0x4108f1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4108f1['type']&&'convertBlockImageToInline'==_0x4108f1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1b14fa['descriptionFactory']['registerDescriptionCallback'](_0xc15b1c=>{if('attribute'!=_0xc15b1c['type'])return;const {data:_0x33cfb9}=_0xc15b1c;if(!_0x33cfb9||'alt'!=_0x33cfb9['key'])return;const _0x3a5c4a=_0x33cfb9['newValue'];return _0x3a5c4a?{'type':'format','content':o(_0x1e044b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3a5c4a+'\x22')}:{'type':'format','content':o(_0x1e044b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x191299=this['editor'],_0x1b29e4=_0x191299['locale'];_0x191299['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a7e0b=>{if('formatBlock'!=_0x5a7e0b['type']&&'formatInline'!=_0x5a7e0b['type'])return;const {data:_0x426c37}=_0x5a7e0b;if(_0x426c37){if('imageTextAlternative'==_0x426c37['commandName']){const _0x2d8849=_0x426c37['commandParams'][0x0]['newValue'];return _0x2d8849?{'type':'format','content':o(_0x1b29e4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2d8849+'\x22')}:{'type':'format','content':o(_0x1b29e4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x426c37['commandName']){const _0x19b9ec=_0x426c37['commandParams'][0x0]['width'];return _0x19b9ec?{'type':'format','content':o(_0x1b29e4,'*Set\x20image\x20width:*\x20%0',_0x19b9ec)}:{'type':'format','content':o(_0x1b29e4,'*Reset\x20image\x20width*')};}}});}}class at extends _0x3b6a96{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x28b27b=this['editor']['locale'],_0x19eec0=this['editor']['plugins']['get']('TrackChangesEditing');_0x19eec0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x19eec0['registerBlockAttribute']('src'),_0x19eec0['descriptionFactory']['registerDescriptionCallback'](_0x3372f8=>{if('attribute'!=_0x3372f8['type'])return;const {data:_0x530f38}=_0x3372f8;return _0x530f38&&'src'==_0x530f38['key']?_0x530f38['newValue']&&_0x530f38['oldValue']?{'type':'format','content':o(_0x28b27b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x11894a=this['editor']['plugins']['get']('TrackChangesEditing');_0x11894a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x11894a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11894a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x11894a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5573aa=this['editor'],_0x2b5595=_0x5573aa['locale'];_0x5573aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x419f44=>{if('formatBlock'!=_0x419f44['type']&&'formatInline'!=_0x419f44['type'])return;const {data:_0x30df51}=_0x419f44;if(!_0x30df51||'replaceImageSource'!=_0x30df51['commandName'])return;return{'type':'format','content':o(_0x2b5595,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x3b6a96{['afterInit'](){const _0x2f846b=this['editor'];if(!_0x2f846b['plugins']['has']('ImageStyleEditing'))return;const _0x5df90c=_0x2f846b['plugins']['get']('TrackChangesEditing'),_0xbb1f4f=_0x2f846b['plugins']['get']('ImageUtils'),_0x1f3e88={};_0x5df90c['enableCommand']('imageStyle',(_0x4a8fe0,_0x56295c)=>{const _0x2df08d=_0x2f846b['plugins']['get']('Users')['me'],_0x521c4d=_0x2f846b['commands']['get']('imageStyle');let _0x536e59=_0xbb1f4f['getClosestSelectedImageElement'](_0x2f846b['model']['document']['selection']),_0x416b0=_0x2f846b['model']['createRangeOn'](_0x536e59),_0x36ae4d=_0x521c4d['value'];if(_0x36ae4d==_0x56295c['value'])return;const _0x5c8dc3={'commandName':'imageStyle','commandParams':[_0x56295c],'formatGroupId':_0x42a68b()};_0x2f846b['model']['change'](()=>{if(_0x5df90c['getSuggestions']()['filter'](_0xb997d5=>_0xb997d5['isInContent']&&_0x2df08d==_0xb997d5['author']&&('formatBlock'==_0xb997d5['type']||'formatInline'==_0xb997d5['type'])&&('imageStylePreApply'==_0xb997d5['subType']||'imageStylePostApply'==_0xb997d5['subType'])&&_0xb997d5['getFirstRange']()['isEqual'](_0x416b0))['forEach'](_0x2ef741=>_0x5df90c['discardSuggestion'](_0x2ef741['head'])),_0x536e59=_0xbb1f4f['getClosestSelectedImageElement'](_0x2f846b['model']['document']['selection']),_0x416b0=_0x2f846b['model']['createRangeOn'](_0x536e59),_0x521c4d['refresh'](),_0x2f846b['commands']['get']('imageTypeInline')['refresh'](),_0x2f846b['commands']['get']('imageTypeBlock')['refresh'](),_0x36ae4d=_0x521c4d['value'],_0x36ae4d!=_0x56295c['value'])return _0xbb1f4f['isInlineImage'](_0x536e59)&&_0x521c4d['shouldConvertImageType'](_0x56295c['value'],_0x536e59)?(_0x4a8fe0({..._0x56295c,'setImageSizes':!0x1}),_0x536e59=_0xbb1f4f['getClosestSelectedImageElement'](_0x2f846b['model']['document']['selection']),void _0x5df90c['markBlockFormat'](_0x536e59,{..._0x5c8dc3,'commandReversedParams':[{'value':_0x36ae4d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xbb1f4f['isBlockImage'](_0x536e59)?_0x5df90c['markBlockFormat'](_0x536e59,_0x5c8dc3,[],'imageStylePostApply'):_0x5df90c['markInlineFormat'](_0x416b0,_0x5c8dc3,'imageStylePostApply'));});});for(const _0x2cbc4e of _0x2f846b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1f3e88[_0x2cbc4e['name']]=_0x2cbc4e['title']['toLowerCase']();_0x5df90c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5df90c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5df90c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5df90c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x307de4])=>{_0xbb1f4f['setImageNaturalSizeAttributes'](_0x307de4['getContainedElement']());}),_0x5df90c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4a4072,_0x5b108e)=>{_0x5df90c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4a4072,{'commandName':_0x5b108e['commandName'],'commandParams':_0x5b108e['commandReversedParams']});}),_0x5df90c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x41467a,_0x8e911a){if(_0x4d5614(_0x41467a,_0x8e911a))return[_0x41467a,_0x8e911a];if(_0x4d5614(_0x8e911a,_0x41467a))return[_0x8e911a,_0x41467a];return null;});const _0x2765d0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4d5614(_0xf38e52,_0x53934f){const _0xdadb47=_0x2765d0['findIndex'](({type:_0x3f7a9a,subType:_0x1df352})=>_0xf38e52['type']==_0x3f7a9a&&_0xf38e52['subType']==_0x1df352),_0x2854ce=_0x2765d0['findIndex'](({type:_0x4b82e4,subType:_0xe023f6})=>_0x53934f['type']==_0x4b82e4&&_0x53934f['subType']==_0xe023f6);if(_0xdadb47<0x0||_0x2854ce<0x0)return!0x1;const _0x11cd1b=_0xf38e52['getFirstRange'](),_0x3633fb=_0x53934f['getFirstRange']();if((0x0==_0xdadb47||0x1==_0xdadb47)&&0x2==_0x2854ce&&_0x11cd1b['isIntersecting'](_0x3633fb))return!0x0;if(0x2==_0xdadb47&&0x3==_0x2854ce){const _0x4bb98c=_0x5df90c['_findSuggestions'](_0x11cd1b,'insertion')['filter'](({suggestion:_0x114c6a,meta:_0x5e2b22})=>_0x5e2b22['isOwn']&&'convertInlineImageToBlock'==_0x114c6a['subType']);if(_0x4bb98c['length']>0x1&&_0x3633fb['end']['isEqual'](_0x11cd1b['start']))return!0x0;if(0x1==_0x4bb98c['length']&&(_0x11cd1b['start']['isEqual'](_0x3633fb['end'])||_0x11cd1b['end']['isEqual'](_0x3633fb['start'])))return!0x0;}if(0x3==_0xdadb47&&0x3==_0x2854ce&&_0x11cd1b['start']['isBefore'](_0x3633fb['start'])){const _0x14b733=_0x11cd1b['end']['nodeAfter'],_0x58e857=_0x3633fb['start']['nodeBefore'];return _0xbb1f4f['isBlockImage'](_0x14b733)&&_0x14b733===_0x58e857;}return!0x1;}_0x2f846b['model']['document']['registerPostFixer'](()=>{let _0x1f4ec7=!0x1;const _0x15256d=Array['from'](_0x2f846b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3d85ae,data:_0xa8ff1e}of _0x15256d){const {group:_0x19e94c,type:_0x4a23af,subType:_0x4b2885,id:_0x57f9b3}=_0x5df90c['_splitMarkerName'](_0x3d85ae);if('suggestion'==_0x19e94c&&_0x5df90c['hasSuggestion'](_0x57f9b3)){if('formatBlock'==_0x4a23af&&('imageStylePreApply'==_0x4b2885||'imageStylePostApply'==_0x4b2885)){const _0x4aa83b=_0x5df90c['getSuggestion'](_0x57f9b3);if(_0xa8ff1e['newRange']){const _0x1f4e1f=_0x4aa83b['getFirstRange']()['getContainedElement']();if(_0xbb1f4f['isBlockImage'](_0x1f4e1f))continue;_0x5df90c['discardSuggestion'](_0x4aa83b),_0x1f4ec7=!0x0;}}if('insertion'==_0x4a23af&&'imageCaption'==_0x4b2885&&!_0xa8ff1e['newRange']){const _0x68edba=_0x5df90c['getSuggestion'](_0x57f9b3);_0x68edba['next']&&_0x68edba['next']['isInContent']&&(_0x5df90c['discardSuggestion'](_0x68edba['next']),_0x1f4ec7=!0x0);}}}return _0x1f4ec7;}),this['_registerLegacyDescription'](_0x1f3e88);}['_registerLegacyDescription'](_0x504a09){const _0x12aef2=this['editor'],_0x2820da=_0x12aef2['locale'];_0x12aef2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59f519=>{if('formatBlock'!=_0x59f519['type']&&'formatInline'!=_0x59f519['type'])return;const {data:_0x57c9ae}=_0x59f519;if(!_0x57c9ae||'imageStyle'!=_0x57c9ae['commandName'])return;const _0xeb0aea=_0x57c9ae['commandParams'][0x0]['value'];return _0xb1b94b('side'===_0xeb0aea?o(_0x2820da,'FORMAT_SIDE_IMAGE'):_0x504a09[_0xeb0aea]||_0xeb0aea);function _0xb1b94b(_0x2df55c){return{'type':'format','content':o(_0x2820da,'*Format:*\x20%0',_0x2df55c)};}});}}class ut extends _0x3b6a96{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xfe2c63){super(_0xfe2c63),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xdf6e54=this['editor'],_0x3ecfa5=_0xdf6e54['commands']['get']('importWord'),_0x1f5d15=_0xdf6e54['commands']['get']('trackChanges');_0x3ecfa5&&(_0x3ecfa5['on']('execute',(_0x1de411,[,_0x2f6cae])=>{this['_trackChangesValueDuringImport']=_0x1f5d15['value'],_0x2f6cae['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3ecfa5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3ecfa5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1f5d15['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xdf6e54['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x47c0da,_0x2773e7){const {suggestions:_0x421de9}=_0x2773e7,_0xf78489=this['editor']['commands']['get']('trackChanges'),_0x598af6=_0xf78489['value'];this['_trackChangesValueDuringImport']!==_0x598af6&&(_0xf78489['execute'](),this['_trackChangesExecuted']=!0x0),_0x421de9&&_0x421de9['forEach'](({id:_0x41d374,type:_0x3ca21b,author:_0x45b9c5,created_at:_0x1f93b2})=>{const _0x4c4313={'id':_0x41d374,'type':_0x3ca21b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x45b9c5,'createdAt':_0x1f93b2?new Date(_0x1f93b2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c4313);});}}class ft extends _0x3b6a96{['afterInit'](){const _0x35b75f=this['editor'],_0x3c2dd2=_0x35b75f['plugins']['get']('TrackChangesEditing');if(_0x35b75f['plugins']['has']('IndentEditing')&&(_0x3c2dd2['enableCommand']('indent'),_0x3c2dd2['enableCommand']('outdent')),_0x35b75f['plugins']['has']('IndentBlock')){for(const _0x499787 of['indentBlock','outdentBlock'])_0x3c2dd2['enableDefaultAttributesIntegration'](_0x499787);}const _0x5796d5=_0x35b75f['locale'];_0x3c2dd2['registerBlockAttribute']('blockIndent'),_0x3c2dd2['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5796d5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x44eb0d=this['editor'],_0x30a0bc=_0x44eb0d['locale'],_0x11a415=_0x44eb0d['plugins']['get']('TrackChangesEditing');_0x11a415['descriptionFactory']['registerDescriptionCallback'](_0x3d108e=>{if('formatBlock'!=_0x3d108e['type'])return;const {data:_0x565ca3}=_0x3d108e;if(!_0x565ca3)return;if('indentBlock'!=_0x565ca3['commandName']&&'outdentBlock'!=_0x565ca3['commandName'])return;const _0x3839a0=_0x3d108e['getItems']()[0x0],_0x5a429b=_0x11a415['descriptionFactory']['getItemLabel'](_0x3839a0);return'indentBlock'==_0x565ca3['commandName']?{'type':'format','content':o(_0x30a0bc,'*Indent:*\x20%0',_0x5a429b)}:'outdentBlock'==_0x565ca3['commandName']?{'type':'format','content':o(_0x30a0bc,'*Outdent:*\x20%0',_0x5a429b)}:void 0x0;});}}class ht extends _0x3b6a96{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x3b6a96{['afterInit'](){const _0x351b87=this['editor'];if(!_0x351b87['plugins']['has']('LinkEditing'))return;const _0x28fc96=_0x351b87['plugins']['get']('TrackChangesEditing'),_0xc7f4fe=_0x351b87['commands']['get']('link');_0x28fc96['enableDefaultAttributesIntegration']('link'),_0x28fc96['enableDefaultAttributesIntegration']('unlink'),_0x28fc96['registerInlineAttribute']('linkHref');for(const _0x84d5ca of _0xc7f4fe['manualDecorators'])_0x28fc96['registerInlineAttribute'](_0x84d5ca['id']),_0x28fc96['descriptionFactory']['registerAttributeLabel'](_0x84d5ca['id'],'link\x20('+_0x84d5ca['label']['toLowerCase']()+')');_0x28fc96['descriptionFactory']['registerDescriptionCallback'](_0x5a16f2=>{if('attribute'!=_0x5a16f2['type'])return;const {data:_0x33788e}=_0x5a16f2;if(!_0x33788e||'linkHref'!=_0x33788e['key'])return;const _0x1c54fe=_0x33788e['newValue'],_0x4d1c1e=_0x351b87['locale'];return{'type':'format','content':null==_0x1c54fe?o(_0x4d1c1e,'*Remove\x20link*'):o(_0x4d1c1e,'*Set\x20link:*\x20%0','\x22'+_0x1c54fe+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c4f21=this['editor'],_0x5a23b1=_0x5c4f21['locale'];_0x5c4f21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28454d=>{if('formatInline'!=_0x28454d['type'])return;const {data:_0x203cf8}=_0x28454d;if(_0x203cf8){if('link'==_0x203cf8['commandName']){const _0x26a1d8=_0x203cf8['commandParams'][0x0];return{'type':'format','content':o(_0x5a23b1,'*Set\x20link:*\x20%0','\x22'+_0x26a1d8+'\x22')};}return'unlink'==_0x203cf8['commandName']?{'type':'format','content':o(_0x5a23b1,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x3b6a96{['afterInit'](){const _0x4ab8a4=this['editor'],_0x4012b0=_0x4ab8a4['locale'];if(!_0x4ab8a4['plugins']['has']('LegacyListEditing'))return;const _0xa3598e=_0x4ab8a4['plugins']['get']('TrackChangesEditing'),_0xee7683=_0x4ab8a4['plugins']['has']('LegacyTodoListEditing');function _0x4b628d(_0x35a49a){return()=>{const _0xbaceaf=_0x4ab8a4['model']['document']['selection'],_0x4eb974=_0x4ab8a4['commands']['get'](_0x35a49a);if(_0x4eb974['value'])return void _0x4ab8a4['execute']('paragraph',{});const _0x44a4e0=_0x35a49a['slice'](0x0,-0x4),_0x9b10ae=function(_0x4fa53b,_0x11906b,_0x3fd61f){let _0x54d5a6=Array['from'](_0x4fa53b)['filter'](_0x3e6b2c=>function(_0x78013f,_0x27a9c9){return _0x27a9c9['checkChild'](_0x78013f['parent'],'listItem')&&!_0x27a9c9['isObject'](_0x78013f);}(_0x3e6b2c,_0x3fd61f));_0x54d5a6=_0x54d5a6['filter'](_0x4c10dd=>!_0x4c10dd['is']('element','listItem')||_0x4c10dd['getAttribute']('listType')!=_0x11906b);const _0x4742f7=new Set();for(const _0x29ddf9 of _0x54d5a6)_0x29ddf9['is']('element','listItem')?_0x4742f7['add'](Le(_0x29ddf9)):_0x4742f7['add'](_0x29ddf9);return Array['from'](_0x4742f7);}(_0xbaceaf['getSelectedBlocks'](),_0x44a4e0,_0x4ab8a4['model']['schema']);_0x4ab8a4['model']['change'](()=>{for(const _0x2bd3e0 of _0x9b10ae)_0xa3598e['markBlockFormat'](_0x2bd3e0,{'commandName':_0x35a49a,'commandParams':[{'forceValue':!_0x4eb974['value']}],'formatGroupId':'blockName'},Ee(_0x2bd3e0));});};}function _0x15ea70(_0x1bf762){return()=>{const _0x3a778a=function(_0xaa2765){let _0x1cdbdd=Array['from'](_0xaa2765);const _0x25e174=_0x1cdbdd['findIndex'](_0x554173=>'listItem'!=_0x554173['name']);return _0x25e174>-0x1&&(_0x1cdbdd=_0x1cdbdd['slice'](0x0,_0x25e174)),_0x1cdbdd;}(_0x4ab8a4['model']['document']['selection']['getSelectedBlocks']()),_0x2023af=_0x4ab8a4['model']['createRange'](_0x4ab8a4['model']['createPositionAt'](_0x3a778a[0x0],'before'),_0x4ab8a4['model']['createPositionAt'](_0x3a778a[_0x3a778a['length']-0x1],'end'));_0x4ab8a4['model']['change'](()=>{_0xa3598e['markBlockFormat'](_0x2023af,{'commandName':_0x1bf762,'commandParams':[],'formatGroupId':'listIndent'},function(_0x41ead9){const _0x10aa97=new Set();for(const _0x165e04 of _0x41ead9){let _0x989720=_0x165e04['nextSibling'];for(;_0x989720&&_0x989720['getAttribute']('listIndent')>_0x165e04['getAttribute']('listIndent');)_0x10aa97['add'](_0x989720),_0x989720=_0x989720['nextSibling'];}return Array['from'](_0x10aa97);}(_0x3a778a));});};}_0xa3598e['enableCommand']('numberedList',_0x4b628d('numberedList')),_0xa3598e['enableCommand']('bulletedList',_0x4b628d('bulletedList')),_0xee7683&&_0xa3598e['enableCommand']('todoList',_0x4b628d('todoList')),_0xa3598e['enableCommand']('indentList',_0x15ea70('indentList')),_0xa3598e['enableCommand']('outdentList',_0x15ea70('outdentList')),_0xee7683&&_0xa3598e['enableCommand']('checkTodoList',()=>{const _0x2dba80=_0x4ab8a4['commands']['get']('checkTodoList'),_0x45aeba=Array['from'](_0x2dba80['_selectedElements']);_0x45aeba['filter'](_0x4d57c3=>_0x4d57c3['getAttribute']('todoListChecked')!=_0x2dba80['value']),_0x4ab8a4['model']['change'](()=>{for(const _0x38847c of _0x45aeba)_0xa3598e['markBlockFormat'](_0x38847c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2dba80['value']}]});});}),_0xa3598e['descriptionFactory']['registerElementLabel']('listItem',_0x47f767=>o(_0x4012b0,'ELEMENT_LIST_ITEM',_0x47f767)),_0xa3598e['descriptionFactory']['registerDescriptionCallback'](_0x36cf87=>{if('formatBlock'!=_0x36cf87['type']&&'formatInline'!=_0x36cf87['type'])return;const {data:_0x1f1e3f}=_0x36cf87;if(_0x1f1e3f){if('numberedList'==_0x1f1e3f['commandName']||'bulletedList'==_0x1f1e3f['commandName']||'todoList'==_0x1f1e3f['commandName'])switch(_0x1f1e3f['commandName']['replace']('List','')){case'bulleted':return _0xba18cd(o(_0x4012b0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xba18cd(o(_0x4012b0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xba18cd(o(_0x4012b0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1f1e3f['commandName'])return{'type':'format','content':o(_0x4012b0,'*Indent:*\x20%0',o(_0x4012b0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1f1e3f['commandName'])return{'type':'format','content':o(_0x4012b0,'*Outdent:*\x20%0',o(_0x4012b0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1f1e3f['commandName'])return _0x1f1e3f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4012b0,'*Check\x20item*')}:{'type':'format','content':o(_0x4012b0,'*Uncheck\x20item*')};}function _0xba18cd(_0xfc77c9){return{'type':'format','content':o(_0x4012b0,'*Change\x20to:*\x20%0',_0xfc77c9)};}});}}function Le(_0x187eaf){const _0x57c693=_0x187eaf['getAttribute']('listIndent');if(0x0==_0x57c693)return _0x187eaf;let _0x20e1d2=_0x187eaf;for(;_0x187eaf['previousSibling']&&_0x187eaf['previousSibling']['is']('element','listItem');){const _0xabeda3=_0x187eaf['previousSibling']['getAttribute']('listIndent');if(_0xabeda3==_0x57c693)_0x20e1d2=_0x187eaf['previousSibling'];else{if(_0xabeda3<_0x57c693)break;}_0x187eaf=_0x187eaf['previousSibling'];}return _0x20e1d2;}function Ee(_0x3372b0){const _0xcf5fb1=[];if(_0x3372b0['is']('element','listItem')&&_0x3372b0['getAttribute']('listIndent')>0x0){let _0x39d09f=_0x3372b0['nextSibling'];for(;_0x39d09f&&'listItem'==_0x39d09f['name']&&_0x39d09f['getAttribute']('listIndent')==_0x3372b0['getAttribute']('listIndent');)_0xcf5fb1['push'](_0x39d09f),_0x39d09f=_0x39d09f['nextSibling'];}return _0xcf5fb1;}class Q extends _0x3b6a96{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xa8bb15=this['editor']['config']['get']('list.properties'),_0x5ccbaf=this['editor']['plugins']['get']('TrackChangesEditing');_0xa8bb15['styles']&&_0x5ccbaf['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xa8bb15['reversed']&&_0x5ccbaf['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xa8bb15['startIndex']&&_0x5ccbaf['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5ccbaf['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x189316,_0x446837={}){const _0x3c362d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x438acb=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3c362d['markMultiRangeBlockFormat'](_0x438acb,{'commandName':'listStyle','commandParams':[{'type':_0x446837['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x38a4ed,_0x313f11={}){const _0x5d6e13=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b0b80=this['_getSuggestionBlocks'](_0x7eeefe=>_0x7eeefe['is']('element','listItem')&&'numbered'===_0x7eeefe['getAttribute']('listType'));if(_0x5b0b80['length']<0x1)return;const _0x149d66=_0x5b0b80['map'](_0x5a2737=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a2737,'before'),this['editor']['model']['createPositionAt'](_0x5a2737,0x0)));this['editor']['model']['change'](()=>{_0x5d6e13['markMultiRangeBlockFormat'](_0x149d66,{'commandName':'listReversed','commandParams':[{'reversed':_0x313f11['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x20c3f2,_0x2ed484={}){const _0x24caff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x614dd=this['_getSuggestionBlocks'](_0x5fe147=>_0x5fe147['is']('element','listItem')&&'numbered'===_0x5fe147['getAttribute']('listType'));if(_0x614dd['length']<0x1)return;const _0x2ff8a8=_0x614dd['map'](_0x4befee=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4befee,'before'),this['editor']['model']['createPositionAt'](_0x4befee,0x0)));this['editor']['model']['change'](()=>{_0x24caff['markMultiRangeBlockFormat'](_0x2ff8a8,{'commandName':'listStart','commandParams':[{'startIndex':_0x2ed484['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2242a7){if('formatBlock'!=_0x2242a7['type']&&'formatInline'!=_0x2242a7['type'])return;const _0x51c041=this['editor']['locale'],{data:_0x1034a1}=_0x2242a7;if(!_0x1034a1)return;let _0x265425,_0x4eaea5;switch(_0x1034a1['commandName']){case'listStyle':_0x265425='*Change\x20to:*\x20%0',_0x4eaea5={'type':'format','content':o(_0x51c041,_0x265425,o(_0x51c041,this['_getTranslationKeyForListStyle'](_0x1034a1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x265425=_0x1034a1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4eaea5={'type':'format','content':o(_0x51c041,_0x265425)};break;case'listStart':_0x265425='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4eaea5={'type':'format','content':o(_0x51c041,_0x265425,_0x1034a1['commandParams'][0x0]['startIndex'])};}return _0x4eaea5;}['_getSuggestionBlocksForListStyle'](){const _0x57372c=this['editor']['plugins']['get']('LegacyListUtils');let _0x53226e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x53226e[0x0]?.['is']('element','listItem')&&_0x53226e['unshift'](..._0x57372c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x53226e[_0x53226e['length']-0x1]?.['is']('element','listItem')&&_0x53226e['push'](..._0x57372c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x53226e=[...new Set(_0x53226e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x53226e=_0x53226e['filter'](_0x18e2cc=>_0x18e2cc['is']('element','listItem'))),_0x53226e;}['_getSuggestionBlocks'](_0x443e73){const _0x241445=this['editor']['plugins']['get']('LegacyListUtils');let _0x3f3cae=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x443e73)['map'](_0x253716=>{const _0x4288dd=this['editor']['model']['createPositionAt'](_0x253716,0x0);return[..._0x241445['getSiblingNodes'](_0x4288dd,'backward'),..._0x241445['getSiblingNodes'](_0x4288dd,'forward')];})['flat']();return _0x3f3cae=[...new Set(_0x3f3cae)],_0x3f3cae;}['_getTranslationKeyForListStyle'](_0x5e9a89){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5e9a89)||'default')['toUpperCase']()+'_LIST_'+_0x5e9a89['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x3b6a96{['afterInit'](){const _0x588852=this['editor'];if(!_0x588852['plugins']['has']('MediaEmbedEditing'))return;const _0x165d7=_0x588852['plugins']['get']('TrackChangesEditing'),_0xf905b6=_0x588852['locale'];_0x165d7['enableCommand']('mediaEmbed'),_0x165d7['descriptionFactory']['registerElementLabel']('media',_0x15ce4a=>o(_0xf905b6,'ELEMENT_MEDIA',_0x15ce4a)),_0x588852['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f6087,{writer:_0x27b270,options:_0x5a0e97})=>{if(_0x5a0e97['showSuggestionHighlights'])return _0x27b270['createEmptyElement']('div');},'converterPriority':'high'}),_0x588852['data']['downcastDispatcher']['on']('attribute:url:media',(_0x50ed76,_0x54ac55,_0x5e594f)=>{_0x5e594f['options']['showSuggestionHighlights']&&_0x50ed76['stop']();},{'priority':'high'});}}class pt extends _0x3b6a96{['afterInit'](){const _0x3f9ac6=this['editor'];_0x3f9ac6['plugins']['has']('MentionEditing')&&_0x3f9ac6['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x3b6a96{['afterInit'](){const _0x1d75f8=this['editor'];if(!_0x1d75f8['plugins']['has']('MergeFieldsEditing'))return;const _0x1561b1=_0x1d75f8['plugins']['get']('TrackChangesEditing'),_0x5bf97b=_0x1d75f8['locale'];_0x1561b1['enableCommand']('insertMergeField'),_0x1561b1['enableCommand']('insertMergeFieldBlock'),_0x1561b1['enableCommand']('insertMergeFieldImage'),_0x1561b1['descriptionFactory']['registerElementLabel']('mergeField',_0x34ff6b=>o(_0x5bf97b,'ELEMENT_MERGE_FIELD',_0x34ff6b)),_0x1561b1['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x291395=>o(_0x5bf97b,'ELEMENT_MERGE_FIELD',_0x291395)),_0x1561b1['descriptionFactory']['registerDescriptionCallback'](_0x552a35=>{if('insertion'!=_0x552a35['type']&&'deletion'!=_0x552a35['type'])return;const _0x517b6e=_0x552a35['getContainedElement']();if(null==_0x517b6e)return;const _0x2a0020=_0x1d75f8['plugins']['get']('MergeFieldsEditing');let _0x1bc65f;switch(_0x2a0020['getMergeFieldType'](_0x517b6e)){case null:return;case'image':{const _0x3b61da=_0x2a0020['unwrapAffixes'](_0x517b6e['getAttribute']('src'));_0x1bc65f=_0x2a0020['getLabel'](_0x3b61da)||_0x3b61da;break;}default:{const _0x57f8b9=_0x517b6e['getAttribute']('id');_0x1bc65f=_0x2a0020['getLabel'](_0x57f8b9)||_0x57f8b9;break;}}return'insertion'==_0x552a35['type']?{'type':'insertion','content':o(_0x5bf97b,'*Insert:*\x20%0','\x22'+_0x1bc65f+'\x22\x20'+o(_0x5bf97b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5bf97b,'*Remove:*\x20%0','\x22'+_0x1bc65f+'\x22\x20'+o(_0x5bf97b,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x3b6a96{['afterInit'](){const _0x18ee05=this['editor'],_0x711100=_0x18ee05['plugins']['get']('TrackChangesEditing');_0x18ee05['plugins']['has']('MultiLevelList')&&(_0x711100['enableDefaultAttributesIntegration']('multiLevelList'),_0x711100['registerBlockAttribute']('listMarkerStyle'),_0x711100['descriptionFactory']['registerDescriptionCallback'](_0x99d63a=>this['handleDescriptions'](_0x99d63a)));}['handleDescriptions'](_0x3ca867){const _0x1974ab=this['editor']['locale'],{data:_0x490df9}=_0x3ca867,_0x45a2cb={'type':'format','content':''};if(_0x490df9&&'listMarkerStyle'==_0x490df9['key']){if(!_0x490df9['oldValue'])return{'type':'format','content':o(_0x1974ab,'*Set\x20format:*\x20%0',o(_0x1974ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x490df9['newValue']+')'};if(!_0x490df9['newValue']){let _0x919479=_0x3ca867['head'];for(;_0x919479;){if(_0x919479['data']&&'listType'==_0x919479['data']['key']&&_0x919479['data']['newValue'])return _0x45a2cb;_0x919479=_0x919479['next'];}return{'type':'format','content':o(_0x1974ab,'*Remove\x20format:*\x20%0',o(_0x1974ab,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x490df9['oldValue']+')'};}}}}class bt extends _0x3b6a96{['afterInit'](){const _0x3548ec=this['editor'];if(!_0x3548ec['plugins']['has']('PageBreakEditing'))return;_0x3548ec['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3dcfab=_0x3548ec['plugins']['get']('TrackChangesEditing'),_0x4bd42f=_0x3548ec['locale'];_0x3dcfab['descriptionFactory']['registerElementLabel']('pageBreak',_0x4a9145=>o(_0x4bd42f,'ELEMENT_PAGE_BREAK',_0x4a9145));}}class yt extends _0x3b6a96{['afterInit'](){const _0xb46ee6=this['editor'];if(!_0xb46ee6['plugins']['has']('Paragraph'))return;const _0x1ff1f0=_0xb46ee6['locale'],_0x211b18=_0xb46ee6['plugins']['get']('TrackChangesEditing');_0x211b18['descriptionFactory']['registerElementLabel']('paragraph',_0x38e025=>o(_0x1ff1f0,'ELEMENT_PARAGRAPH',_0x38e025)),_0x211b18['enableDefaultAttributesIntegration']('paragraph'),_0x211b18['enableCommand']('insertParagraph'),_0xb46ee6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xb46ee6),{'priority':'highest'}),_0xb46ee6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x180034,_0x1300e8,_0x36e75f)=>{_0x36e75f['options']['showSuggestionHighlights']&&nr(_0xb46ee6,{'showActiveMarker':!0x1})(_0x180034,_0x1300e8,_0x36e75f);},{'priority':'highest'});const _0x41955d=_0x211b18['descriptionFactory'];_0x41955d['registerDescriptionCallback'](_0x20567f=>{if('insertion'!==_0x20567f['type'])return;const {start:_0x409965,end:_0x405236}=_0x20567f['getFirstRange']();if(!_0x409965['isTouching'](_0x405236)||!_0x409965['nodeAfter'])return;const _0x4b693d=_0xb46ee6['model']['schema'],_0x4fdbcc=_0x409965['nodeAfter'];return _0x4b693d['isBlock'](_0x4fdbcc)&&!_0x4b693d['isLimit'](_0x4fdbcc)&&_0x4b693d['checkChild'](_0x4fdbcc,'$text')?{'type':'insertion','content':o(_0x1ff1f0,'*Insert:*\x20%0',_0x41955d['getItemLabel'](_0x4fdbcc,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc3b1a1=this['editor'],_0x30a6f7=_0xc3b1a1['locale'];_0xc3b1a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2121b0=>{if('formatBlock'!=_0x2121b0['type'])return;const {data:_0x46c8f6}=_0x2121b0;return _0x46c8f6&&'paragraph'==_0x46c8f6['commandName']?{'type':'format','content':o(_0x30a6f7,'*Change\x20to:*\x20%0',o(_0x30a6f7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x768f5e,{showActiveMarker:_0x322230=!0x0}={}){return(_0x2b5c11,_0x3ca59d,_0x5c63fd)=>{const _0x3ae5ed=_0x768f5e['plugins']['get']('TrackChangesEditing'),_0x545a63=_0x3ca59d['markerRange']['start'],_0x363eaa=_0x3ca59d['markerRange']['end'],_0x1587c3=_0x768f5e['model']['schema'];if(!_0x545a63['isTouching'](_0x363eaa)||!_0x545a63['nodeAfter'])return;const _0x1a67ad=_0x545a63['nodeAfter'];if(_0x1587c3['isBlock'](_0x1a67ad)&&!_0x1587c3['isLimit'](_0x1a67ad)&&_0x1587c3['checkChild'](_0x1a67ad,'$text')){if(!_0x5c63fd['consumable']['consume'](_0x3ca59d['markerRange'],_0x2b5c11['name']))return;const {authorId:_0x564f3a}=_0x3ae5ed['_splitMarkerName'](_0x3ca59d['markerName']),_0xa903d9=_0x5c63fd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x564f3a}),_0x26055d=_0x5c63fd['mapper']['toViewPosition'](_0x363eaa);_0x322230&&_0x3ae5ed['activeMarkers']['includes'](_0x3ca59d['markerName'])&&_0x5c63fd['writer']['addClass']('ck-suggestion-marker--active',_0xa903d9),_0x5c63fd['writer']['insert'](_0x26055d,_0xa903d9),_0x5c63fd['mapper']['bindElementToMarker'](_0xa903d9,_0x3ca59d['markerName']);}};}class jt extends _0x3b6a96{['afterInit'](){const _0x58848b=this['editor'];_0x58848b['commands']['get']('replaceSource')&&_0x58848b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x3b6a96{['afterInit'](){const _0x1064f0=this['editor'];if(!_0x1064f0['plugins']['has']('RemoveFormatEditing'))return;_0x1064f0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cc6af=this['editor'];_0x2cc6af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x372fb4=>{if('formatBlock'!=_0x372fb4['type']&&'formatInline'!=_0x372fb4['type'])return;const {data:_0x141056}=_0x372fb4;return _0x141056&&'removeFormat'==_0x141056['commandName']?{'type':'format','content':o(_0x2cc6af['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x3b6a96{['afterInit'](){const _0xe843c8=this['editor'];if(!_0xe843c8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x374ccf=_0xe843c8['plugins']['get']('TrackChangesEditing');_0x374ccf['enableCommand']('goToPreviousRestrictedEditingException'),_0x374ccf['enableCommand']('goToNextRestrictedEditingException');const _0x3926b8=_0xe843c8['plugins']['get']('RestrictedEditingModeEditing');_0x3926b8['enableCommand']('trackChanges'),_0x3926b8['enableCommand']('acceptSuggestion'),_0x3926b8['enableCommand']('discardSuggestion'),_0x3926b8['enableCommand']('acceptAllSuggestions'),_0x3926b8['enableCommand']('discardAllSuggestions'),_0x3926b8['enableCommand']('acceptSelectedSuggestions'),_0x3926b8['enableCommand']('discardSelectedSuggestions');}}class It extends _0x3b6a96{static get['requires'](){return[_0x4b8f8b];}['init'](){const _0x51ac15=this['editor'],_0x23d90c=_0x51ac15['plugins']['get']('TrackChangesEditing');_0x23d90c['enableCommand']('shiftEnter'),_0x51ac15['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x51ac15),{'priority':'high'}),_0x51ac15['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x51ac15),{'priority':'high'}),_0x51ac15['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1640c1,_0x193ead,_0xe46e97)=>{_0xe46e97['options']['showSuggestionHighlights']&&je(_0x51ac15,{'showActiveMarker':!0x1})(_0x1640c1,_0x193ead,_0xe46e97);}),_0x23d90c['descriptionFactory']['registerElementLabel']('softBreak',_0x5237ec=>o(_0x51ac15['locale'],'ELEMENT_LINE_BREAK',_0x5237ec));}}function je(_0xd1ea33,{showActiveMarker:_0x34391a=!0x0}={}){return(_0x42ac11,_0x144af3,_0x4f86be)=>{const _0x250b1c=_0xd1ea33['plugins']['get']('TrackChangesEditing');if(!_0x4f86be['consumable']['test'](_0x144af3['markerRange'],_0x42ac11['name']))return;const _0x2c9d0e=_0xd1ea33['model'];for(const _0x2da58e of _0x144af3['markerRange']['getItems']()){if(!_0x2da58e['is']('element','softBreak'))continue;const _0x3b6261='deletion'==_0x144af3['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x21e518}=_0x250b1c['_splitMarkerName'](_0x144af3['markerName']),_0x146b0d=_0x4f86be['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b6261,'data-author-id':_0x21e518}),_0x287436=_0x4f86be['mapper']['toViewPosition'](_0x2c9d0e['createPositionBefore'](_0x2da58e));_0x34391a&&_0x250b1c['activeMarkers']['includes'](_0x144af3['markerName'])&&_0x4f86be['writer']['addClass']('ck-suggestion-marker--active',_0x146b0d),_0x4f86be['writer']['insert'](_0x287436,_0x146b0d),_0x4f86be['mapper']['bindElementToMarker'](_0x146b0d,_0x144af3['markerName']);}};}class vt extends _0x3b6a96{['afterInit'](){const _0x245bf2=this['editor'],_0x1455d4=_0x245bf2['model'],_0x58dafb=_0x245bf2['locale'];if(!_0x245bf2['plugins']['has']('StandardEditingModeEditing'))return;const _0x441abe=_0x245bf2['plugins']['get']('TrackChangesEditing'),_0x2a0751='restrictedEditingException',_0xe9083=_0x245bf2['commands']['get'](_0x2a0751);_0x441abe['enableCommand'](_0x2a0751,(_0x2d8bff,_0x9520d7={})=>{const _0x4cadb9=_0x1455d4['document']['selection'];if(_0x4cadb9['isCollapsed'])return void _0x2d8bff(_0x9520d7);const _0x539394=void 0x0!==_0x9520d7['forceValue']?_0x9520d7['forceValue']:!_0xe9083['value'];_0x1455d4['change'](()=>{const _0x184d28=Array['from'](_0x4cadb9['getRanges']());for(const _0x1c236c of _0x184d28){const _0x558553=_0x539394?[_0x1c236c]:io(_0x2a0751,_0x1c236c,_0x1455d4);for(const _0x478cb8 of _0x558553)_0x441abe['markInlineFormat'](_0x478cb8,{'commandName':_0x2a0751,'commandParams':[{'forceValue':_0x539394}]});}});}),_0x441abe['descriptionFactory']['registerDescriptionCallback'](_0x4920f2=>{if('formatBlock'!=_0x4920f2['type']&&'formatInline'!=_0x4920f2['type'])return;const {data:_0x2d0a4f}=_0x4920f2;return _0x2d0a4f&&_0x2d0a4f['commandName']==_0x2a0751?_0x2d0a4f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58dafb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x58dafb,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x3b6a96{['afterInit'](){const _0x4effc5=this['editor'];if(!_0x4effc5['plugins']['has']('Style')||!_0x4effc5['plugins']['has']('DataSchema'))return;const _0x27a141=_0x4effc5['plugins']['get']('TrackChangesEditing'),_0x3ceb07=_0x4effc5['locale'],_0x4671ad=_0x4effc5['config']['get']('style')||{},_0x7698e6=_0x4effc5['plugins']['get']('GeneralHtmlSupport'),_0x8cc70d=_0x4effc5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4effc5['plugins']['get']('DataSchema'),_0x4671ad['definitions']);_0x27a141['enableDefaultAttributesIntegration']('style');const _0x38e735=new Set();for(const _0x1d9a25 of _0x8cc70d['block']){const _0x579f56=_0x7698e6['getGhsAttributeNameForElement'](_0x1d9a25['element']);_0x38e735['add'](_0x579f56);}const _0x33dbf0=new Set();for(const _0x160b2b of _0x8cc70d['inline']){const _0x5939dc=_0x7698e6['getGhsAttributeNameForElement'](_0x160b2b['element']);_0x33dbf0['add'](_0x5939dc);for(const _0x489606 of _0x160b2b['ghsAttributes'])_0x33dbf0['add'](_0x489606);}for(const _0x20c447 of _0x38e735)_0x27a141['registerBlockAttribute'](_0x20c447),_0x27a141['descriptionFactory']['registerAttributeLabel'](_0x20c447,o(_0x3ceb07,'FORMAT_STYLE'));for(const _0x58fe17 of _0x33dbf0)_0x27a141['registerInlineAttribute'](_0x58fe17),_0x27a141['descriptionFactory']['registerAttributeLabel'](_0x58fe17,o(_0x3ceb07,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86a1b7=this['editor'],_0x249491=_0x86a1b7['locale'];_0x86a1b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c8b43=>{if('formatBlock'!=_0x2c8b43['type']&&'formatInline'!=_0x2c8b43['type'])return;const {data:_0x316489}=_0x2c8b43;return _0x316489&&'style'===_0x316489['commandName']?_0x316489['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x249491,'*Set\x20format:*\x20%0',_0x316489['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x249491,'*Remove\x20format:*\x20%0',_0x316489['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x3b6a96{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xd24696){super(_0xd24696),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x557b0b=this['editor'],_0x31137f=_0x557b0b['model']['document']['selection'];if(!_0x557b0b['plugins']['has']('TableEditing'))return;const _0x5e03d7=_0x557b0b['locale'],_0x8718ef=_0x557b0b['plugins']['get']('TrackChangesEditing'),_0x1eb0ce=_0x557b0b['plugins']['get']('TableUtils');_0x8718ef['descriptionFactory']['registerElementLabel']('table',_0x543323=>o(_0x5e03d7,'ELEMENT_TABLE',_0x543323)),this['_setupColumnsRowsFixing'](),_0x8718ef['enableCommand']('insertTable'),_0x8718ef['enableCommand']('selectTableRow'),_0x8718ef['enableCommand']('selectTableColumn');for(const _0x409427 of['insertTableRowAbove','insertTableRowBelow']){const _0x319b95=_0x557b0b['commands']['get'](_0x409427);_0x8718ef['enableCommand'](_0x409427,_0x1ff50c=>{_0x557b0b['model']['change'](_0x45eba7=>{_0x1ff50c();const _0x1e9285='above'===_0x319b95['order'],_0x208379=_0x1eb0ce['getSelectionAffectedTableCells'](_0x31137f),_0x2a4fed=_0x1eb0ce['getRowIndexes'](_0x208379),_0x1f6578=_0x1e9285?_0x2a4fed['first']-0x1:_0x2a4fed['last']+0x1,_0xcd7e50=_0x208379[0x0]['findAncestor']('table'),_0xd5fcb4=_0x1eb0ce['createTableWalker'](_0xcd7e50,{'startRow':_0x1f6578,'endRow':_0x1f6578}),_0x47d16f=Array['from'](_0xd5fcb4)['map'](_0x48281d=>_0x45eba7['createRangeOn'](_0x48281d['cell']));_0x8718ef['markMultiRangeInsertion'](_0x47d16f,'tableRow');});});}for(const _0x22173a of['insertTableColumnLeft','insertTableColumnRight']){const _0x563086=_0x557b0b['commands']['get'](_0x22173a);_0x8718ef['enableCommand'](_0x22173a,_0xfcba40=>{_0x557b0b['model']['change'](_0x4f7b73=>{_0xfcba40();const _0x5aa581='left'===_0x563086['order'],_0x485474=_0x1eb0ce['getSelectionAffectedTableCells'](_0x31137f),_0x5d735a=_0x1eb0ce['getColumnIndexes'](_0x485474),_0x22cdc1=_0x5aa581?_0x5d735a['first']-0x1:_0x5d735a['last']+0x1,_0xf16919=_0x485474[0x0]['findAncestor']('table'),_0x6eaac1=_0x1eb0ce['createTableWalker'](_0xf16919,{'startRow':0x0,'column':_0x22cdc1,'includeAllSlots':!0x1}),_0x2da600=Array['from'](_0x6eaac1)['map'](_0x362804=>_0x4f7b73['createRangeOn'](_0x362804['cell']));_0x8718ef['markMultiRangeInsertion'](_0x2da600,'tableColumn');});});}for(const _0x65b49c of['removeTableRow','removeTableColumn']){const _0x5e00a7=_0x65b49c['substr'](0xb),_0x1f2a00=_0x5e00a7['toLowerCase'](),_0x3087e2=_0x1f2a00['substr'](0x0,0x3)+'span',_0x379b3e='table'+_0x5e00a7,_0x4273a0='min'+_0x5e00a7,_0x59c266='max'+_0x5e00a7;_0x8718ef['enableCommand'](_0x65b49c,()=>{_0x557b0b['model']['change'](_0x5e34df=>{const _0x343f57=_0x1eb0ce['getSelectionAffectedTableCells'](_0x31137f),_0x3ffabd=_0x343f57[0x0]['findAncestor']('table');let _0x1cfdc3;if('removeTableRow'==_0x65b49c){const _0x92228d=_0x1eb0ce['getRowIndexes'](_0x343f57);_0x1cfdc3={'startRow':_0x92228d['first'],'endRow':_0x92228d['last'],'includeAllSlots':!0x0};}else{const _0x3d3adb=_0x1eb0ce['getColumnIndexes'](_0x343f57);_0x1cfdc3={'startColumn':_0x3d3adb['first'],'endColumn':_0x3d3adb['last'],'includeAllSlots':!0x0};}const _0x3d72e4=_0x1eb0ce['createTableWalker'](_0x3ffabd,_0x1cfdc3),_0x152796=Array['from'](_0x3d72e4)['map'](({cell:_0x3e39bf})=>_0x3e39bf),_0x288d37=Ne(_0x152796['filter'](_0x324d3f=>_0x324d3f['hasAttribute'](_0x3087e2))),_0x56c47d=Ne(_0x152796['filter'](_0x18d4a0=>!_0x18d4a0['hasAttribute'](_0x3087e2)))['map'](_0x54989a=>_0x5e34df['createRangeOn'](_0x54989a)),_0x346083=_0x8718ef['markMultiRangeDeletion'](_0x56c47d,_0x379b3e);if(_0x346083&&('tableRow'==_0x346083['subType']||'tableColumn'==_0x346083['subType'])){const _0x1c5491=this['_getSuggestionCoords'](_0x346083);for(const _0x508869 of _0x288d37){const _0xdcc2d5=_0x5e34df['createRangeOn'](_0x508869),_0x489771=_0x1eb0ce['getCellLocation'](_0x508869),_0xff23b=_0x508869['getAttribute'](_0x3087e2)-0x1,_0x432888=_0x1c5491[_0x4273a0],_0x412d6d=_0x1c5491[_0x59c266];_0x432888<=_0x489771[_0x1f2a00]&&_0x489771[_0x1f2a00]+_0xff23b<=_0x412d6d&&_0x346083['addRange'](_0xdcc2d5);}}});});}function _0x8e9474(_0x364b3d){const _0x541813=Array['from'](_0x31137f['getRanges']())['map'](_0x40ca7f=>_0x4f6ba5['fromRange'](_0x40ca7f));_0x557b0b['model']['change'](_0x1e1e5a=>{const _0x1ce137=_0x1e1e5a['batch'];_0x364b3d=_0x364b3d['filter'](_0x2e11da=>'$graveyard'!=_0x2e11da['root']['rootName']),_0x1e1e5a['setSelection'](_0x364b3d),_0x557b0b['commands']['get']('removeTableRow')['refresh'](),_0x557b0b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x557b0b['model']['enqueueChange'](()=>{_0x557b0b['model']['enqueueChange'](_0x1ce137,_0x1f7462=>{const _0xac3306=_0x541813['filter'](_0x2e570b=>'$graveyard'!=_0x2e570b['root']['rootName']);_0xac3306['length']>0x0&&_0x1f7462['setSelection'](_0xac3306);for(const _0x5cce99 of _0x541813)_0x5cce99['detach']();});});});}function _0x584e5d(_0x165aed){_0x557b0b['model']['change'](_0x14f7f5=>{const _0xfe6ca2=Array['from'](_0x31137f['getRanges']())['map'](_0x211f1b=>_0x4f6ba5['fromRange'](_0x211f1b)),_0x46b1f3=[];for(const _0x4da84e of _0x165aed)for(const _0x5186bd of _0x4da84e['getItems']({'shallow':!0x0}))_0x46b1f3['push'](_0x5186bd);for(const _0x5a08a4 of _0x46b1f3)'$graveyard'!=_0x5a08a4['root']['rootName']&&(_0x14f7f5['setSelection'](_0x14f7f5['createPositionAt'](_0x5a08a4,0x0)),_0x557b0b['commands']['get']('removeTableColumn')['refresh'](),_0x557b0b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2ece3=_0xfe6ca2['filter'](_0xa98176=>'$graveyard'!=_0xa98176['root']['rootName']);_0x2ece3['length']>0x0&&_0x14f7f5['setSelection'](_0x2ece3);for(const _0x5c2b3c of _0xfe6ca2)_0x5c2b3c['detach']();});}function _0x4763de(_0x688a62,_0x4d007b){return _0x4d007b['every'](_0x20c99d=>_0x688a62['some'](_0x3b4967=>_0x3b4967['end']['isEqual'](_0x20c99d['start'])||_0x20c99d['end']['isEqual'](_0x3b4967['start'])));}function _0x3fdc05(_0x5d44bc,_0x204f1c){return!_0x5d44bc['some'](_0x58360a=>_0x204f1c['some'](_0x16144e=>_0x58360a['isIntersecting'](_0x16144e)))&&_0x5d44bc['some'](_0x11083b=>_0x204f1c['some'](_0x249159=>_0x11083b['end']['isTouching'](_0x249159['start'])));}_0x557b0b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x206d44,_0x47c20c,_0x4713ab)=>{if(!_0x4713ab['options']['showSuggestionHighlights'])return;const _0x492e92=_0x47c20c['item'];if(!_0x492e92)return;const _0x151099=_0x4713ab['mapper']['toViewElement'](_0x492e92);function _0x1dbadb(_0x8041e5){return Array['isArray'](_0x8041e5)?_0x8041e5:[_0x8041e5];}_0x151099&&'tableCell'===_0x492e92['name']&&_0x3d73e1(_0x151099,_0x4713ab['writer'],(_0x1c5405,_0xa30886,_0x5f0b5e)=>_0x5f0b5e['addClass'](_0x1dbadb(_0xa30886['classes']),_0x1c5405),(_0x2f062b,_0x282add,_0x235c8d)=>_0x235c8d['removeClass'](_0x1dbadb(_0x282add['classes']),_0x2f062b));},{'priority':'highest'}),_0x8718ef['descriptionFactory']['registerDescriptionCallback'](_0x5de683=>{if('insertion'!=_0x5de683['type']&&'deletion'!=_0x5de683['type'])return;const _0x563bf3=_0x5de683['getContainedElement']();if(null!=_0x563bf3&&_0x563bf3['is']('element','table')){if('insertion'==_0x5de683['type']){const _0x1cd228=_0x5de683['getItems']()['filter'](_0x51a877=>_0x51a877['is']('$textProxy'))['map'](_0x5b8209=>_0x5b8209['data']);if(_0x1cd228['length'])return{'type':'insertion','content':o(_0x5e03d7,'*Insert:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cd228['join']('\x20')+'\x22'))};}if('deletion'==_0x5de683['type']){const _0x1da61d=_0x5de683['getItems']()['filter'](_0x554f06=>_0x554f06['is']('$textProxy'))['map'](_0x8fead1=>_0x8fead1['data']);if(_0x1da61d['length'])return{'type':'deletion','content':o(_0x5e03d7,'*Remove:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1da61d['join']('\x20')+'\x22'))};}}}),_0x8718ef['descriptionFactory']['registerDescriptionCallback'](_0x1cd8af=>{if('tableRow'==_0x1cd8af['subType']){const _0x255da7=_0x1cd8af['getItems']()['filter'](_0x51f695=>_0x51f695['is']('$textProxy'))['map'](_0x36609e=>_0x36609e['data']),_0x45378d=this['_getSuggestionCoords'](_0x1cd8af),_0x1d69ea=_0x45378d['maxRow']-_0x45378d['minRow']+0x1;if('insertion'==_0x1cd8af['type'])return _0x255da7['length']?{'type':'insertion','content':o(_0x5e03d7,'*Insert:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d69ea,'\x22'+_0x255da7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5e03d7,'*Insert:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_ROW',_0x1d69ea))};if('deletion'==_0x1cd8af['type'])return _0x255da7['length']?{'type':'deletion','content':o(_0x5e03d7,'*Remove:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d69ea,'\x22'+_0x255da7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5e03d7,'*Remove:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_ROW',_0x1d69ea))};}if('tableColumn'==_0x1cd8af['subType']){const _0x20c92a=_0x1cd8af['getItems']()['filter'](_0x3b834f=>_0x3b834f['is']('$textProxy'))['map'](_0x417906=>_0x417906['data']),_0x51ace0=this['_getSuggestionCoords'](_0x1cd8af),_0x16b4e6=_0x51ace0['maxColumn']-_0x51ace0['minColumn']+0x1;if('insertion'==_0x1cd8af['type'])return _0x20c92a['length']?{'type':'insertion','content':o(_0x5e03d7,'*Insert:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x16b4e6,'\x22'+_0x20c92a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5e03d7,'*Insert:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_COLUMN',_0x16b4e6))};if('deletion'==_0x1cd8af['type'])return _0x20c92a['length']?{'type':'deletion','content':o(_0x5e03d7,'*Remove:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x16b4e6,'\x22'+_0x20c92a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5e03d7,'*Remove:*\x20%0',o(_0x5e03d7,'ELEMENT_TABLE_COLUMN',_0x16b4e6))};}}),_0x8718ef['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x8e9474),_0x8718ef['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x8e9474),_0x8718ef['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x584e5d),_0x8718ef['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x584e5d),_0x8718ef['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4763de),_0x8718ef['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4763de),_0x8718ef['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3fdc05),_0x8718ef['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3fdc05);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2169e7=this['editor'],_0x207801=_0x2169e7['model']['document']['selection'];return(_0x4ea0fd,_0x283261)=>{_0x2169e7['model']['change'](_0x384493=>{const {commandName:_0xc15419,commandParams:_0x51d946}=_0x283261;let _0x70086c=_0x4ea0fd[0x0]['end']['nodeBefore'];_0x51d946&&_0x51d946[0x0]&&!0x1===_0x51d946[0x0]['forceValue']&&(_0x70086c=_0x4ea0fd[0x0]['start']['nodeAfter']);const _0x1abffb=_0x384493['createRangeIn'](_0x70086c);if('$graveyard'==_0x1abffb['root']['rootName'])return;const _0x456a6f=Array['from'](_0x207801['getRanges']())['map'](_0xd2d173=>_0x4f6ba5['fromRange'](_0xd2d173));_0x384493['setSelection'](_0x1abffb),_0x2169e7['commands']['get'](_0xc15419)['refresh'](),_0x51d946['push']({'forceDefaultExecution':!0x0}),_0x2169e7['execute'](_0xc15419,..._0x51d946);const _0x44b17d=_0x456a6f['filter'](_0x28163b=>'$graveyard'!=_0x28163b['root']['rootName']);_0x44b17d['length']>0x0&&_0x384493['setSelection'](_0x44b17d);for(const _0x14dec1 of _0x456a6f)_0x14dec1['detach']();});};}['_getCoordsForCells'](_0x80a920){const _0x2e42ca=this['editor']['plugins']['get']('TableUtils');let _0x5d461f=Number['MAX_SAFE_INTEGER'],_0xf5fdcd=Number['MIN_SAFE_INTEGER'],_0x2d3324=Number['MAX_SAFE_INTEGER'],_0x2811a4=Number['MIN_SAFE_INTEGER'];for(const _0x1773ad of _0x80a920){if('$graveyard'==_0x1773ad['root']['rootName'])continue;const {row:_0x10e24c,column:_0x59d90a}=_0x2e42ca['getCellLocation'](_0x1773ad),_0x2f3821=_0x1773ad['hasAttribute']('rowspan')?_0x1773ad['getAttribute']('rowspan')-0x1:0x0,_0xa69ea4=_0x1773ad['hasAttribute']('colspan')?_0x1773ad['getAttribute']('colspan')-0x1:0x0;_0x5d461f=_0x10e24c<_0x5d461f?_0x10e24c:_0x5d461f,_0xf5fdcd=_0x10e24c+_0x2f3821>_0xf5fdcd?_0x10e24c+_0x2f3821:_0xf5fdcd,_0x2d3324=_0x59d90a<_0x2d3324?_0x59d90a:_0x2d3324,_0x2811a4=_0x59d90a+_0xa69ea4>_0x2811a4?_0x59d90a+_0xa69ea4:_0x2811a4;}return{'minRow':_0x5d461f,'maxRow':_0xf5fdcd,'minColumn':_0x2d3324,'maxColumn':_0x2811a4};}['_setupColumnsRowsFixing'](){const _0x363723=this['editor'],_0x14a494=_0x363723['plugins']['get']('TrackChangesEditing'),_0x2db0bf=_0x363723['plugins']['get']('TableUtils');_0x363723['model']['document']['on']('change:data',()=>{const _0x734d66=Array['from'](_0x363723['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3895c9,data:_0x133509}of _0x734d66){const {group:_0x1117ac,id:_0x4405e4,subType:_0x4fe122}=_0x14a494['_splitMarkerName'](_0x3895c9);if('suggestion'!=_0x1117ac)continue;if(null!=_0x133509['oldRange'])continue;const _0x10d94a=_0x14a494['getSuggestion'](_0x4405e4);this['_tablePostFixingSubtypes']['includes'](_0x4fe122)&&this['_tableSuggestions']['add'](_0x10d94a);}},{'priority':'low'});const _0x184b2e=(_0x88fdc3,_0x36a0fd)=>{let _0x1aac30=!0x1;const _0xa81e44=_0x36a0fd['createRangeOn'](_0x88fdc3),_0x39d61d=_0x88fdc3['findAncestor']('table'),_0x50305f=_0x2db0bf['getCellLocation'](_0x88fdc3);for(const _0x571ee9 of this['_tableSuggestions']){const _0x21a5d8=_0x571ee9['subType'],_0x365fe7=_0x21a5d8['startsWith']('tablePaste'),_0x53c666=_0x21a5d8['substr'](_0x365fe7?0xa:0x5),_0x4a7d4b=_0x53c666['toLowerCase'](),_0x91ecf4=_0x4a7d4b['substr'](0x0,0x3)+'span',_0x175161='min'+_0x53c666,_0x46c436='max'+_0x53c666;if(!_0x571ee9['isInContent'])continue;if(_0x39d61d!=_0x571ee9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x571ee9['isIntersectingWithRange'](_0xa81e44))continue;const _0x3b0fd2=_0x88fdc3['hasAttribute'](_0x91ecf4)?_0x88fdc3['getAttribute'](_0x91ecf4)-0x1:0x0,_0x37503c=this['_getSuggestionCoords'](_0x571ee9),_0x33df3a=_0x37503c[_0x175161],_0x32a7d4=_0x37503c[_0x46c436];_0x33df3a<=_0x50305f[_0x4a7d4b]&&_0x50305f[_0x4a7d4b]+_0x3b0fd2<=_0x32a7d4&&(_0x571ee9['addRange'](_0xa81e44),_0x1aac30=!0x0);}return _0x1aac30;};_0x363723['model']['document']['registerPostFixer'](_0x463c79=>{let _0x3f8bcc=!0x1;for(const _0x435c7d of _0x363723['model']['document']['differ']['getChanges']())if('insert'==_0x435c7d['type']){if('tableRow'==_0x435c7d['name']){for(const _0x55d36c of _0x435c7d['position']['nodeAfter']['getChildren']())_0x3f8bcc=_0x3f8bcc||_0x184b2e(_0x55d36c,_0x463c79);}else'tableCell'==_0x435c7d['name']&&(_0x3f8bcc=_0x3f8bcc||_0x184b2e(_0x435c7d['position']['nodeAfter'],_0x463c79));}return _0x3f8bcc;});}['_getSuggestionCoords'](_0x685f01){return this['_getCoordsForCells'](_0x685f01['getRanges']()['map'](_0x29bd25=>_0x29bd25['start']['nodeAfter']));}}function Ne(_0x2e0b55){return Array['from'](new Set(_0x2e0b55)['values']());}class Nt extends _0x3b6a96{static get['requires'](){return[Ct];}['afterInit'](){const _0x1c5544=this['editor'],_0x180c3c=_0x1c5544['model']['document']['selection'],_0x54ea45=_0x1c5544['locale'];if(!_0x1c5544['plugins']['has']('TableEditing'))return;const _0x54601e=_0x1c5544['plugins']['get']('TrackChangesEditing'),_0x175df3=_0x1c5544['plugins']['get']('TableUtils'),_0x14bfdf=_0x1c5544['plugins']['get'](Ct);_0x14bfdf['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x54601e['enableCommand']('mergeTableCells',()=>{const _0x49aa5f=_0x175df3['getSelectionAffectedTableCells'](_0x1c5544['model']['document']['selection']);_0x1c5544['model']['change'](()=>{_0x54601e['markMultiRangeBlockFormat'](_0x49aa5f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1c5544['commands']['get']('mergeTableCells')['on']('execute',(_0x13f528,_0x16b660)=>{_0x1c5544['commands']['get']('trackChanges')['value']&&(_0x16b660['length']>0x0&&_0x16b660[_0x16b660['length']-0x1]&&_0x16b660[_0x16b660['length']-0x1]['forceDefaultExecution']||_0x54601e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x13f528['stop']());},{'priority':'highest'});for(const _0x22e905 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5ab4ec=_0x1c5544['commands']['get'](_0x22e905);_0x54601e['enableCommand'](_0x22e905,()=>{const _0x18da50=_0x1c5544['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4fb40a=>_0x4fb40a['is']('element','tableCell')),_0x594589=_0x5ab4ec['value'];_0x1c5544['model']['change'](()=>{_0x54601e['markMultiRangeBlockFormat']([_0x18da50,_0x594589],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4112a9 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x49c6f7=_0x1c5544['commands']['get'](_0x4112a9);_0x54601e['enableCommand'](_0x4112a9,()=>{const _0x2de9ef=_0x175df3['getSelectionAffectedTableCells'](_0x1c5544['model']['document']['selection'])[0x0],_0x2ed6d9=_0x2de9ef['findAncestor']('table'),{column:_0x344de5,row:_0x3a3c2f}=_0x175df3['getCellLocation'](_0x2de9ef);let _0x2f80ed=[];if('horizontally'==_0x49c6f7['direction']){const _0xdf8d1f=_0x175df3['createTableWalker'](_0x2ed6d9,{'startRow':_0x3a3c2f,'endRow':_0x3a3c2f,'includeAllSlots':!0x0});_0x2f80ed=Array['from'](_0xdf8d1f)['map'](_0x406338=>_0x406338['cell']);}else{const _0x4bf8a4=_0x175df3['createTableWalker'](_0x2ed6d9,{'column':_0x344de5,'includeAllSlots':!0x0});_0x2f80ed=Array['from'](_0x4bf8a4)['map'](_0x1a5490=>_0x1a5490['cell']);}_0x1c5544['model']['change'](_0x67a2d8=>{_0x54601e['markBlockFormat'](_0x67a2d8['createRangeOn'](_0x2de9ef),{'commandName':_0x4112a9,'commandParams':[]},_0x2f80ed,_0x4112a9);});});}_0x54601e['descriptionFactory']['registerDescriptionCallback'](_0x28f5be=>{if('formatBlock'!=_0x28f5be['type']&&'formatInline'!=_0x28f5be['type'])return;const {data:_0x42fbdb}=_0x28f5be;return _0x42fbdb&&'mergeTableCells'==_0x42fbdb['commandName']?{'type':'format','content':o(_0x54ea45,'*Merge\x20cells*')}:void 0x0;}),_0x54601e['descriptionFactory']['registerDescriptionCallback'](_0x42b2cc=>{if('formatBlock'!=_0x42b2cc['type']&&'formatInline'!=_0x42b2cc['type'])return;const {data:_0x4d4ea7}=_0x42b2cc;return _0x4d4ea7?'splitTableCellVertically'==_0x4d4ea7['commandName']?{'type':'format','content':o(_0x54ea45,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4d4ea7['commandName']?{'type':'format','content':o(_0x54ea45,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4335b1=_0x14bfdf['_acceptFormatSuggestionCallbackFactory']();for(const _0x444909 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x54601e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x444909,'accept',_0x4335b1);for(const _0x57d236 of['splitTableCellVertically','splitTableCellHorizontally'])_0x54601e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57d236,'accept',_0x4335b1);_0x54601e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x24c3fe=>{_0x1c5544['model']['change'](_0x216a52=>{const _0x5a5820=Array['from'](_0x180c3c['getRanges']())['map'](_0x5c2656=>_0x4f6ba5['fromRange'](_0x5c2656));_0x216a52['setSelection'](_0x24c3fe),_0x1c5544['commands']['get']('mergeTableCells')['refresh'](),_0x1c5544['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x596dd3=_0x5a5820['filter'](_0x2a1f8c=>'$graveyard'!=_0x2a1f8c['root']['rootName']);_0x596dd3['length']>0x0&&_0x216a52['setSelection'](_0x596dd3);for(const _0x28a392 of _0x5a5820)_0x28a392['detach']();});});for(const _0x7c1d90 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2158f9=_0x1c5544['commands']['get'](_0x7c1d90);_0x2158f9['on']('set:isEnabled',(_0x19c44a,_0x15dcdf,_0x4d6079)=>{if(_0x4d6079){const _0x2e9562=_0x1c5544['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x25ce43=>_0x25ce43['is']('element','tableCell'));this['_areMergableCells'](_0x2158f9['value'],_0x2e9562)||(_0x19c44a['return']=!0x1,_0x19c44a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x913059=this['editor']['commands']['get']('mergeTableCells'),_0x1e901a=this['editor']['plugins']['get']('TableUtils');if(!_0x913059['isEnabled'])return!0x1;const _0x2dbb82=_0x1e901a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x44d4f8 of _0x2dbb82)for(const _0xc90057 of _0x2dbb82)if(_0x44d4f8!=_0xc90057&&!this['_areMergableCells'](_0x44d4f8,_0xc90057))return!0x1;return!0x0;}['_areMergableCells'](_0x49011c,_0x383d34){const _0x5ea1b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x403ca3=this['editor']['model']['createRangeOn'](_0x49011c),_0x23d001=this['editor']['model']['createRangeOn'](_0x383d34),_0x14b66a=new Set(),_0x2fbe71=new Set();for(const _0x1b2aad of _0x5ea1b9['getSuggestions']())if(('insertion'==_0x1b2aad['type']||'deletion'==_0x1b2aad['type']||'mergeTableCells'==_0x1b2aad['subType'])&&_0x1b2aad['isInContent']){for(const _0x4a06fb of _0x1b2aad['getRanges']())_0x4a06fb['containsRange'](_0x403ca3,!0x0)&&_0x14b66a['add'](_0x1b2aad['type']+':'+_0x1b2aad['author']['id']),_0x4a06fb['containsRange'](_0x23d001,!0x0)&&_0x2fbe71['add'](_0x1b2aad['type']+':'+_0x1b2aad['author']['id']);}if(_0x14b66a['size']!=_0x2fbe71['size'])return!0x1;for(const _0x1eb8fe of _0x14b66a)if(!_0x2fbe71['has'](_0x1eb8fe))return!0x1;return!0x0;}}class Dt extends _0x3b6a96{static get['requires'](){return[Ct];}['afterInit'](){const _0x206c55=this['editor'];if(!_0x206c55['plugins']['has']('TableEditing'))return;const _0x33bcf1=_0x206c55['locale'],_0x14b637=_0x206c55['plugins']['get']('TrackChangesEditing');_0x14b637['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x14b637['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x14b637['registerBlockAttribute']('headingRows'),_0x14b637['registerBlockAttribute']('headingColumns'),_0x14b637['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x33bcf1,'FORMAT_HEADER_ROW')),_0x14b637['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x33bcf1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59372b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x351793=this['editor']['plugins']['get']('TableUtils'),_0x29c01a=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x313786({showActiveMarker:_0x3e8780=!0x0,setDataAttribute:_0x43879a=!0x0}={}){return(_0x525dfd,_0x3d6e36,_0x56d0d2)=>{const {type:_0x3be5f1,id:_0x488b48}=_0x59372b['_splitMarkerName'](_0x3d6e36['markerName']),_0x1f5959=_0x59372b['getSuggestion'](_0x488b48),_0xd6c252=_0x1f5959['data'];if('formatBlock'!=_0x1f5959['type']||!_0xd6c252||'setTableColumnHeader'!=_0xd6c252['commandName'])return;if(_0x3d6e36['item'])return void _0x525dfd['stop']();if(!_0x56d0d2['consumable']['consume'](_0x3d6e36['markerRange'],_0x525dfd['name']))return;const _0x300115=_0x3d6e36['markerRange']['start']['nodeAfter'],_0x33e354=_0x3d6e36['markerRange']['end']['nodeBefore'],_0x104153=_0x300115['parent']['parent'],{column:_0x1d5bf0}=_0x351793['getCellLocation'](_0x300115),{column:_0x53d0ed}=_0x351793['getCellLocation'](_0x33e354);for(let _0x5a8b14=_0x1d5bf0;_0x5a8b14<=_0x53d0ed;_0x5a8b14++){const _0x1ebcf7=_0x351793['createTableWalker'](_0x104153,{'column':_0x5a8b14,'includeAllSlots':!0x1});for(const _0x12d083 of _0x1ebcf7){const _0x2af857=_0x12d083['cell'],_0x30b162=_0x56d0d2['mapper']['toViewElement'](_0x2af857);_0x56d0d2['writer']['addClass']('ck-suggestion-marker-'+_0x3be5f1,_0x30b162),_0x43879a&&_0x56d0d2['writer']['setAttribute']('data-suggestion',_0x488b48,_0x30b162),_0x56d0d2['mapper']['bindElementToMarker'](_0x30b162,_0x3d6e36['markerName']),_0x3e8780&&(_0x59372b['activeMarkers']['includes'](_0x3d6e36['markerName'])?_0x56d0d2['writer']['addClass']('ck-suggestion-marker--active',_0x30b162):_0x56d0d2['writer']['removeClass']('ck-suggestion-marker--active',_0x30b162));}}};}_0x59372b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x29c01a),_0x59372b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x29c01a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x313786(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c74e6,_0x2c6f4d,_0xa35397)=>{_0xa35397['options']['showSuggestionHighlights']&&_0x313786({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2c74e6,_0x2c6f4d,_0xa35397);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2ff351,_0x12a13c,_0x3de1aa)=>{const {type:_0x2242b9,id:_0xdb9099}=_0x59372b['_splitMarkerName'](_0x12a13c['markerName']),_0x345efd=_0x59372b['getSuggestion'](_0xdb9099),_0x47f2cf=_0x345efd['data'];if('formatBlock'!=_0x345efd['type']||!_0x47f2cf||'setTableColumnHeader'!=_0x47f2cf['commandName'])return;const _0x4a4acf=_0x3de1aa['mapper']['markerNameToElements'](_0x12a13c['markerName']);if(_0x4a4acf){for(const _0x3da954 of _0x4a4acf)_0x3de1aa['writer']['removeClass']('ck-suggestion-marker-'+_0x2242b9,_0x3da954),_0x3de1aa['writer']['removeClass']('ck-suggestion-marker--active',_0x3da954),_0x3de1aa['writer']['removeAttribute']('data-suggestion',_0x3da954),_0x3de1aa['mapper']['unbindElementFromMarkerName'](_0x3da954,_0x12a13c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d8796=this['editor'],_0x132686=_0x4d8796['locale'];function _0x1ac932(_0x24b6aa){return{'type':'format','content':o(_0x132686,'*Format:*\x20%0',_0x24b6aa)};}_0x4d8796['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x564c5c=>{if('formatBlock'!=_0x564c5c['type'])return;const {data:_0x1753b9}=_0x564c5c;if(_0x1753b9){if('setTableRowHeader'==_0x1753b9['commandName']){const _0x5c541c=_0x1753b9['commandParams'][0x0]['forceValue'];return _0x1ac932(o(_0x132686,_0x5c541c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1753b9['commandName']){const _0x3c4a2d=_0x1753b9['commandParams'][0x0]['forceValue'];return _0x1ac932(o(_0x132686,_0x3c4a2d?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5d24f8=>[_0x5d24f8,null]));class Mt extends _0x3b6a96{static get['requires'](){return[Ct];}['afterInit'](){const _0x3cb55c=this['editor'];if(!_0x3cb55c['plugins']['has']('TableClipboard'))return;const _0x47831b=_0x3cb55c['plugins']['get']('TrackChangesEditing'),_0x4b32fa=_0x3cb55c['plugins']['get']('TableUtils'),_0x1314e9=_0x3cb55c['plugins']['get'](Ct),_0x5cba8f=_0x3cb55c['plugins']['get']('TableClipboard');_0x1314e9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3cb55c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3cb55c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x33f364=null;_0x3cb55c['model']['on']('insertContent',(_0x325089,_0x37a492)=>{const [_0x55f458,_0x1acc93]=_0x37a492,_0x5dabcb=_0x37a492[_0x37a492['length']-0x1];_0x5dabcb&&_0x5dabcb['forceDefaultExecution']||_0x47831b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3e579a,_0x23dd93,_0x2b34c8,_0x5af35c,_0x13fe47){if(_0x23dd93&&!_0x23dd93['is']('documentSelection'))return!0x1;const _0x165108=_0x13fe47['getTableIfOnlyTableInContent'](_0x3e579a,_0x2b34c8);if(!_0x165108||!Ue(_0x165108,void 0x0,_0x5af35c))return!0x1;const _0x52df6d=_0x5af35c['getSelectionAffectedTableCells'](_0x2b34c8['document']['selection']);if(!_0x52df6d['length'])return!0x1;const _0x724201=_0x52df6d[0x0]['findAncestor']('table'),_0x5680b7=_0x5af35c['getRowIndexes'](_0x52df6d),_0x5ab504=_0x5af35c['getColumnIndexes'](_0x52df6d),_0x57a7b8={'startRow':_0x5680b7['first'],'endRow':_0x5680b7['last'],'startColumn':_0x5ab504['first'],'endColumn':_0x5ab504['last']};return 0x1==_0x52df6d['length']&&(_0x57a7b8['endRow']+=_0x5af35c['getRows'](_0x165108)-0x1,_0x57a7b8['endColumn']+=_0x5af35c['getColumns'](_0x165108)-0x1),Ue(_0x724201,_0x57a7b8,_0x5af35c);}(_0x55f458,_0x1acc93,_0x3cb55c['model'],_0x4b32fa,_0x5cba8f)&&(_0x325089['stop'](),_0x33f364={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3cb55c['model']['change'](()=>{_0x3cb55c['model']['insertContent'](_0x37a492[0x0],_0x37a492[0x1],_0x37a492[0x2],{'forceDefaultExecution':!0x0});const _0x41503c=_0x42a68b(),{rowInsertionRanges:_0x2f69da,columnInsertionRanges:_0x28949e,insertionRanges:_0x14aac5,deletionRanges:_0x1ec072,cells:_0x3697e8}=_0x33f364;_0x2f69da['length']&&_0x47831b['markMultiRangeInsertion'](_0x2f69da,'tablePasteRow',{'tablePasteChainId':_0x41503c}),_0x28949e['length']&&_0x47831b['markMultiRangeInsertion'](_0x28949e,'tablePasteColumn',{'tablePasteChainId':_0x41503c}),_0x14aac5['length']&&(_0x47831b['markMultiRangeInsertion'](_0x14aac5,'tablePaste',{'tablePasteChainId':_0x41503c,'skipNestingCheck':!0x0}),_0x14aac5['forEach'](_0x4d4647=>_0x4d4647['detach']?.())),_0x1ec072['length']&&(_0x47831b['markMultiRangeDeletion'](_0x1ec072,'tablePaste',{'tablePasteChainId':_0x41503c,'skipNestingCheck':!0x0}),_0x1ec072['forEach'](_0x3e0f0f=>_0x3e0f0f['detach']?.()));const _0x389a9d=_0x47831b['markMultiRangeBlockFormat'](_0x3697e8['map'](({element:_0x98513})=>_0x98513),{'formatGroupId':_0x42a68b()},[],'tablePasteCell',{'tablePasteChainId':_0x41503c});if(_0x389a9d){const _0x53613c=_0x389a9d['getMarkers'](),_0x57955e=[];for(const {element:_0x57d29f,attributes:_0x439904}of _0x3697e8){if(!_0x439904)continue;const _0x400bea=_0x3cb55c['model']['createRangeOn'](_0x57d29f),_0x729a45=_0x53613c['find'](_0x350e9b=>_0x350e9b['getRange']()['isEqual'](_0x400bea));_0x729a45&&_0x57955e['push']([_0x729a45['name'],_0x439904]);}_0x57955e['length']&&_0x389a9d['setAttribute']('markerAttributes',Object['fromEntries'](_0x57955e));}_0x33f364=null;}));},{'priority':_0x45202f['high']+0xa}),_0x3cb55c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1e594d,_0x38a7a8)=>{const [_0x43ab99,_0x4fdb9e,,_0x2ad6ef]=_0x38a7a8;if(!_0x33f364)return;_0x1e594d['stop']();const _0x323652=_0x43ab99['cell'],_0x285161=_0x4fdb9e,_0x3bda82=Oe(_0x323652),_0x4cdca4=Oe(_0x285161);_0x1e594d['return']=_0x323652;let _0x138f7e=null,_0xbe2d3d=null;if(_0x4cdca4||_0x3bda82){if(_0x3bda82&&!_0x4cdca4){_0x2ad6ef['remove'](_0x323652['getChild'](0x0));for(const _0x43fc99 of Array['from'](_0x285161['getChildren']()))_0x2ad6ef['insert'](_0x43fc99,_0x323652,'end');const _0x383c10=_0x33f364['rowInsertionIndexes']['includes'](_0x43ab99['row']),_0x438add=_0x33f364['columnInsertionIndexes']['includes'](_0x43ab99['column']);_0x383c10||_0x438add||(_0x138f7e=_0x4f6ba5['fromRange'](_0x2ad6ef['createRangeIn'](_0x323652)));}else _0x4cdca4&&!_0x3bda82&&(_0xbe2d3d=_0x2ad6ef['createRangeIn'](_0x323652));}else{const _0x1ed8d1=_0x2ad6ef['createElement']('tableCellSuggestion'),_0x315cb7=_0x2ad6ef['createElement']('tableCellSuggestion');_0x2ad6ef['wrap'](_0x2ad6ef['createRangeIn'](_0x323652),_0x315cb7),_0x2ad6ef['insert'](_0x1ed8d1,_0x323652,0x0);for(const _0x5b5eb9 of Array['from'](_0x285161['getChildren']()))_0x2ad6ef['insert'](_0x5b5eb9,_0x1ed8d1,'end');_0x138f7e=_0x4f6ba5['fromRange'](_0x2ad6ef['createRangeOn'](_0x1ed8d1)),_0xbe2d3d=_0x4f6ba5['fromRange'](_0x2ad6ef['createRangeOn'](_0x315cb7));}const _0xc36472=Array['from'](_0x285161['getAttributes']())['filter'](([_0x1b52b7])=>Be['includes'](_0x1b52b7));_0x33f364['cells']['push']({'element':_0x323652,'attributes':_0xc36472['length']?Object['fromEntries'](_0xc36472):null}),_0x138f7e&&_0x33f364['insertionRanges']['push'](_0x138f7e),_0xbe2d3d&&_0x33f364['deletionRanges']['push'](_0xbe2d3d);},{'priority':'high'}),_0x4b32fa['on']('insertColumns',(_0x290aa8,_0x2a205d)=>{const [_0x3cce69,_0x26fcb7={}]=_0x2a205d;if(!_0x33f364)return;const _0x521e2a=_0x26fcb7['at']||0x0,_0x343a65=_0x26fcb7['columns']||0x1;_0x33f364['columnInsertionIndexes']=new Array(_0x343a65)['fill'](_0x521e2a)['map']((_0xf1d0ca,_0x325d88)=>_0xf1d0ca+_0x325d88);for(const {cell:_0x15b5bd}of _0x4b32fa['createTableWalker'](_0x3cce69,{'startColumn':_0x521e2a,'endColumn':_0x521e2a+_0x343a65-0x1}))_0x33f364['columnInsertionRanges']['push'](_0x3cb55c['model']['createRangeOn'](_0x15b5bd));},{'priority':'low'}),_0x4b32fa['on']('insertRows',(_0x10637c,_0x1ff35b)=>{const [_0xc7c3e,_0x5329f9={}]=_0x1ff35b;if(!_0x33f364)return;const _0xf28678=_0x5329f9['at']||0x0,_0xdbf6fa=_0x5329f9['rows']||0x1;_0x33f364['rowInsertionIndexes']=new Array(_0xdbf6fa)['fill'](_0xf28678)['map']((_0x37d56f,_0x1ad1a2)=>_0x37d56f+_0x1ad1a2);for(const {cell:_0xc0d0c6}of _0x4b32fa['createTableWalker'](_0xc7c3e,{'startRow':_0xf28678,'endRow':_0xf28678+_0xdbf6fa-0x1}))_0x33f364['rowInsertionRanges']['push'](_0x3cb55c['model']['createRangeOn'](_0xc0d0c6));},{'priority':'low'}),_0x47831b['descriptionFactory']['registerDescriptionCallback'](_0x26bba7=>{if(_0x26bba7['subType']&&_0x26bba7['subType']['startsWith']('tablePaste'))return _0x26bba7['previous']?{}:{'type':'insertion','content':o(_0x3cb55c['locale'],'*Replace\x20table\x20cells*')};});const _0xef26ad=()=>!0x1;for(const _0x1177cf of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x47831b['_suggestionFactory']['registerCustomCallback']('insertion',_0x1177cf,'join',_0xef26ad),_0x47831b['_suggestionFactory']['registerCustomCallback']('deletion',_0x1177cf,'join',_0xef26ad),_0x47831b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1177cf,'join',_0xef26ad);_0x47831b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xef26ad),_0x47831b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x553a73,_0x2dfe25,_0x12da20)=>{const _0x3bc23f=_0x553a73['map'](_0x22898a=>_0x22898a['getContainedElement']())['filter'](_0x2c6e59=>_0x2c6e59),_0x361194=new Map(_0x3bc23f['map'](_0x3d5819=>[_0x3d5819,null]));if(_0x33f364){for(const {element:_0x43d144,attributes:_0x216403}of _0x33f364['cells'])_0x216403&&_0x361194['set'](_0x43d144,_0x216403);}else{if(_0x12da20&&_0x12da20['markerAttributes'])for(const [_0x45bda3,_0xfbc538]of Object['entries'](_0x12da20['markerAttributes'])){const _0x13f693=_0x3cb55c['model']['markers']['get'](_0x45bda3),_0x2f8223=_0x13f693?_0x13f693['getRange']()['getContainedElement']():null;_0x2f8223&&_0x361194['set'](_0x2f8223,_0xfbc538);}}_0x3cb55c['model']['change'](_0x16db13=>{for(const [_0x3a4f90,_0x158a66]of _0x361194)_0x16db13['setAttributes']({...xe,..._0x158a66},_0x3a4f90);});});const _0x24b7b3=(_0x4be60c,_0x395f8e)=>{_0x47831b['_suggestionFactory']['registerCustomCallback'](_0x4be60c,'tablePaste',_0x395f8e,(_0x49aeb3,_0x5a84d6,_0xbd5f36)=>{_0x3cb55c['model']['change'](_0x276bab=>{const _0xdb7d2c=[];for(const _0x59d7f0 of _0x49aeb3){const _0x335c5e=_0x59d7f0['start']['nodeAfter'];_0x335c5e['is']('element','tableCellSuggestion')&&_0xdb7d2c['push'](_0x335c5e);}_0x47831b['_suggestionFactory']['getSuggestionCallback'](_0x4be60c,null,_0x395f8e)(_0x49aeb3,_0x5a84d6,_0xbd5f36);for(const _0x5eb783 of _0xdb7d2c)'$graveyard'!=_0x5eb783['root']['rootName']&&_0x276bab['unwrap'](_0x5eb783);});});};_0x24b7b3('insertion','accept'),_0x24b7b3('insertion','discard'),_0x24b7b3('deletion','accept'),_0x24b7b3('deletion','discard'),_0x47831b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1994c8=>{const _0x55484f=_0x1994c8['map'](_0x824f9c=>_0x824f9c['getContainedElement']()),_0x531571=_0x55484f[0x0]['findAncestor']('table'),{minRow:_0x24d21d,maxRow:_0x33e76b}=_0x1314e9['_getCoordsForCells'](_0x55484f);_0x4b32fa['removeRows'](_0x531571,{'at':_0x24d21d,'rows':_0x33e76b-_0x24d21d+0x1});}),_0x47831b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1613ee=>{const _0x5f005c=_0x1613ee['map'](_0x5cf002=>_0x5cf002['getContainedElement']()),_0x5a115f=_0x5f005c[0x0]['findAncestor']('table'),{minColumn:_0x358b2f,maxColumn:_0x5f21e1}=_0x1314e9['_getCoordsForCells'](_0x5f005c);_0x4b32fa['removeColumns'](_0x5a115f,{'at':_0x358b2f,'columns':_0x5f21e1-_0x358b2f+0x1});});const _0x411626=(_0x5bb464,_0x105f17)=>{if(!_0x105f17['subType']||!_0x105f17['subType']['startsWith']('tablePaste'))return;const _0x17aa1a=_0x105f17['attributes']['tablePasteChainId'],_0x295e5d=_0x47831b['getSuggestions']()['filter'](_0x3f2c33=>_0x3f2c33['isInContent']&&_0x3f2c33['attributes']&&_0x3f2c33['attributes']['tablePasteChainId']==_0x17aa1a);_0x295e5d['length']&&_0x105f17['getAllAdjacentSuggestions']()['length']!=_0x295e5d['length']&&_0x295e5d['reduce']((_0x5f60bc,_0x1481be)=>(_0x5f60bc['next']=_0x1481be,_0x1481be['previous']=_0x5f60bc,_0x1481be));};function _0x3d0650(_0xad7f19,_0xb36269=!0x0){const {id:_0x4f491a,authorId:_0x5ce1e9}=_0x47831b['_splitMarkerName'](_0xad7f19['markerName']),_0x522e5a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x498248=_0x47831b['activeMarkers']['includes'](_0xad7f19['markerName']);return _0x498248&&_0x522e5a['push']('ck-suggestion-marker--active'),{'classes':_0x522e5a,'attributes':{'data-suggestion':_0x4f491a,'data-author-id':_0x5ce1e9},'priority':_0x498248&&_0xb36269?0xbc2:0xbb8};}_0x47831b['on']('suggestionLoaded',_0x411626,{'priority':'high'}),_0x47831b['on']('suggestionUnloaded',_0x411626,{'priority':'high'}),_0x3cb55c['model']['document']['registerPostFixer'](()=>{let _0x827867=!0x1;const _0x49029e=Array['from'](_0x3cb55c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e0ac5,data:_0x4245ac}of _0x49029e){const {group:_0x3b40e2,type:_0x16de9d,id:_0x7f56df}=_0x47831b['_splitMarkerName'](_0x1e0ac5);if('suggestion'!=_0x3b40e2||'deletion'!=_0x16de9d||_0x4245ac['oldRange'])continue;if(!_0x47831b['hasSuggestion'](_0x7f56df))continue;const _0x2888d0=_0x47831b['getSuggestion'](_0x7f56df)['getRanges'](),_0x180631=_0x3cb55c['plugins']['get']('Users')['me'];for(const _0x449eb7 of _0x47831b['getSuggestions']()){if(!_0x449eb7['isInContent']||_0x449eb7['author']!=_0x180631)continue;if('formatBlock'!=_0x449eb7['type']||'tablePasteCell'!=_0x449eb7['subType'])continue;if(_0x449eb7['getRanges']()['every'](_0x1ac289=>_0x2888d0['some'](_0x83c0a1=>_0x83c0a1['containsRange'](_0x1ac289,!0x0)))){for(const _0x3f4d37 of _0x449eb7['getAllAdjacentSuggestions']())_0x3f4d37['isInContent']&&(_0x3f4d37['discard'](),_0x827867=!0x0);}}}return _0x827867;}),_0x3cb55c['model']['document']['registerPostFixer'](_0x2bbef9=>{const _0x29c64f=_0x3cb55c['commands']['get']('redo');if(!_0x29c64f||!_0x29c64f['_createdBatches']['has'](_0x2bbef9['batch']))return!0x1;let _0x8cc174=!0x1;const _0xf0fb1f=_0x3cb55c['plugins']['get']('Users')['me'],_0x20d449=_0x3cb55c['model']['document']['differ']['getChanges'](),_0x5219ec=Array['from'](_0x3cb55c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1b6bb6,data:_0xb35693})=>{const {group:_0x10d7e8,subType:_0x56a923,authorId:_0x1ff5a8}=_0x47831b['_splitMarkerName'](_0x1b6bb6);return'suggestion'==_0x10d7e8&&'tablePaste'==_0x56a923&&_0x1ff5a8==_0xf0fb1f['id']&&!_0xb35693['oldRange'];});for(const _0x1def9c of _0x20d449){if('insert'!=_0x1def9c['type']||'tableCellSuggestion'!=_0x1def9c['name']||0x1!=_0x1def9c['length'])continue;const _0x409d68=_0x2bbef9['createRange'](_0x1def9c['position'],_0x1def9c['position']['getShiftedBy'](0x1));if(!_0x5219ec['find'](({data:_0x678164})=>_0x678164['newRange']['isEqual'](_0x409d68))){for(const {name:_0x3ef396,data:_0x4d08ff}of _0x5219ec)if(_0x409d68['containsRange'](_0x4d08ff['newRange'])){_0x2bbef9['updateMarker'](_0x3ef396,{'range':_0x409d68}),_0x8cc174=!0x0;break;}}}return _0x8cc174;}),_0x3cb55c['model']['document']['registerPostFixer'](_0x34c81f=>{let _0x2b07dc=!0x1;const _0x37cf43=_0x3cb55c['plugins']['get']('Users')['me'],_0x1429a5=_0x47831b['getSuggestions']()['filter'](_0x2024c4=>_0x2024c4['isInContent']&&_0x2024c4['author']==_0x37cf43),_0x2ddb53=new Set(),_0x2b1f8a=new Set();for(const _0x1da12a of _0x1429a5)if('tablePaste'==_0x1da12a['subType'])for(const _0x2d010b of _0x1da12a['getMarkers']()){const _0x2b68e5=_0x2d010b['getRange']()['getContainedElement']();if(_0x2b68e5){if(_0x2b68e5['is']('element','tableCellSuggestion')&&Oe(_0x2b68e5)){_0x1da12a['removeMarker'](_0x2d010b['name']),_0x2ddb53['add'](_0x2b68e5),_0x2b07dc=!0x0;const _0x3f0119=_0x2b68e5['nextSibling'],_0x429ab8=_0x2b68e5['previousSibling'],_0x3fe06f=_0x3f0119&&_0x3f0119['is']('element','tableCellSuggestion'),_0x2b21a5=_0x429ab8&&_0x429ab8['is']('element','tableCellSuggestion');_0x3fe06f&&!_0x2ddb53['has'](_0x3f0119)&&_0x2b1f8a['add'](_0x3f0119),_0x2b21a5&&!_0x2ddb53['has'](_0x429ab8)&&_0x2b1f8a['add'](_0x429ab8);}else _0x2b68e5['is']('element','paragraph')&&_0x2b68e5['isEmpty']&&(_0x1da12a['removeMarker'](_0x2d010b['name']),_0x2b07dc=!0x0);}}else{if('tablePasteCell'==_0x1da12a['subType']){if(!_0x1da12a['attributes']||!_0x1da12a['attributes']['tablePasteChainId'])continue;const _0x26bc2d=_0x1da12a['attributes']['markerAttributes'];if(_0x26bc2d&&Object['keys'](_0x26bc2d)['length'])continue;const _0x127206=_0x1da12a['attributes']['tablePasteChainId'];let _0x545716=!0x0,_0xe83807=!0x0;for(const _0x1004f4 of _0x1429a5)if(_0x1004f4['subType']&&_0x1004f4['subType']['startsWith']('tablePaste')){if(!_0x1004f4['attributes']['tablePasteChainId']){_0xe83807=!0x1;break;}if(_0x1004f4['id']!=_0x1da12a['id']&&_0x1004f4['attributes']['tablePasteChainId']==_0x127206){_0x545716=!0x1;break;}}_0xe83807&&_0x545716&&(_0x1da12a['removeMarkers'](),_0x2b07dc=!0x0);}}for(const _0xa9c25 of _0x2ddb53)_0x34c81f['remove'](_0xa9c25);for(const _0xf0cd3e of _0x2b1f8a)_0x34c81f['unwrap'](_0xf0cd3e);return _0x2b07dc;}),_0x3cb55c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2d9991=>_0x3d0650(_0x2d9991),'converterPriority':'high'}),_0x3cb55c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1dd6eb,_0x14921a)=>_0x14921a['options']['showSuggestionHighlights']?_0x3d0650(_0x1dd6eb,!0x1):null,'converterPriority':'high'});const _0x3bd2f6=_0x3cb55c['editing']['view'];this['listenTo'](_0x3bd2f6['document'],'clipboardOutput',(_0x531fba,_0x3d948b)=>{const _0x182406=[];for(const _0x1572da of _0x3bd2f6['createRangeIn'](_0x3d948b['content'])['getItems']())_0x1572da['is']('element','suggestion-td')&&_0x182406['push'](_0x1572da);_0x3bd2f6['change'](_0x44e2cb=>{for(const _0x51855f of _0x182406)_0x44e2cb['move'](_0x44e2cb['createRangeIn'](_0x51855f),_0x44e2cb['createPositionBefore'](_0x51855f)),_0x44e2cb['remove'](_0x51855f);});});}}function Oe(_0x323f04){if(_0x323f04['isEmpty'])return!0x0;const _0x70cf84=_0x323f04['getChild'](0x0);return _0x70cf84['is']('element','paragraph')&&_0x70cf84['isEmpty'];}function Ue(_0xc7877b,_0x232977={},_0x5369f6){for(const {isAnchor:_0x258ed5,cellHeight:_0x4c8770,cellWidth:_0x510368}of _0x5369f6['createTableWalker'](_0xc7877b,{'includeAllSlots':!0x0,..._0x232977}))if(!_0x258ed5||0x1!=_0x4c8770||0x1!=_0x510368)return!0x1;return!0x0;}class $t extends _0x3b6a96{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x176c18=this['editor']['plugins']['get']('TrackChangesEditing');_0x176c18['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x176c18['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x176c18['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x176c18['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x176c18['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x176c18['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2332b4,_0x155b6e){const _0x4b6930=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1eb15e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4ee115=_0x155b6e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x11141a=_0x1eb15e['getColumnGroupElement'](_0x4ee115);let _0x948f4=_0x11141a?_0x1eb15e['getTableColumnsWidths'](_0x11141a):null,_0x1d7994=_0x4ee115['getAttribute']('tableWidth')||null;const _0x3af6a9=_0x155b6e['tableWidth']||_0x1d7994,_0x24a619=_0x155b6e['columnWidths']||_0x948f4,_0x4b86e4=this['editor']['plugins']['get']('Users')['me'];for(const _0xbc10f0 of _0x4b6930['getSuggestions']()){const _0x5b9eb6=_0xbc10f0['getContainedElement']();if('resizeTable'===_0xbc10f0['subType']&&_0x5b9eb6===_0x4ee115){_0xbc10f0['author']!==_0x4b86e4&&_0xbc10f0['discard']();const _0x3ad9bb=_0xbc10f0['data']['commandParams'];_0x1d7994=_0x3ad9bb[0x0]['tableWidth'],_0x948f4=_0x3ad9bb[0x0]['columnWidths'];break;}}_0x2332b4({'table':_0x4ee115,'tableWidth':_0x3af6a9,'columnWidths':_0x24a619}),_0x4b6930['markBlockFormat'](_0x4ee115,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1d7994,'columnWidths':_0x948f4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4693ed){if('formatBlock'!=_0x4693ed['type']&&'formatInline'!=_0x4693ed['type'])return;const {data:_0x57be0e}=_0x4693ed;if(_0x57be0e&&'resizeTable'===_0x57be0e['formatGroupId']){const _0x19ce66='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x19ce66)};}}}class Bt extends _0x3b6a96{['afterInit'](){const _0x43155e=this['editor'];_0x43155e['plugins']['has']('Template')&&_0x43155e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x3b6a96{['afterInit'](){const _0x4878dc=this['editor'];if(!_0x4878dc['commands']['get']('insertTableOfContents'))return;_0x4878dc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x228c27=_0x4878dc['plugins']['get']('TrackChangesEditing'),_0x5b01de=_0x4878dc['locale'];_0x228c27['descriptionFactory']['registerElementLabel']('tableOfContents',_0x20bf03=>o(_0x5b01de,'ELEMENT_TABLE_OF_CONTENTS',_0x20bf03));}}class Rt extends _0x3b6a96{['afterInit'](){const _0x4a4939=this['editor'];if(!_0x4a4939['plugins']['has']('Title'))return;const _0x14990f=_0x4a4939['plugins']['get']('TrackChangesEditing');_0x14990f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4a4939['locale'],'ELEMENT_TITLE')),_0x4a4939['model']['document']['registerPostFixer'](_0x251d7c=>{let _0x5d037c=!0x1;const _0x5c9ab5=Array['from'](_0x4a4939['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15c479,data:_0x4a3925}of _0x5c9ab5){const {group:_0x74ff45}=_0x14990f['_splitMarkerName'](_0x15c479);if('suggestion'!==_0x74ff45||!_0x4a3925['newRange'])continue;const _0x4e0db5=_0x4a3925['newRange'],_0x19df6e=_0x4e0db5['end']['nodeBefore'];if(!_0x19df6e||!_0x19df6e['is']('element','title-content'))continue;if(!_0x4e0db5['start']['isTouching'](_0x4e0db5['end']))continue;const _0x56a4b6=_0x4a4939['model']['schema']['getNearestSelectionRange'](_0x4e0db5['end'],'forward');if(_0x56a4b6&&_0x56a4b6['isCollapsed']){const _0x5006d3=_0x251d7c['createRange'](_0x4e0db5['start'],_0x56a4b6['start']);_0x5006d3['isEqual'](_0x4e0db5)||(_0x251d7c['updateMarker'](_0x15c479,{'range':_0x5006d3}),_0x5d037c=!0x0);}_0x5d037c||(_0x251d7c['removeMarker'](_0x15c479),_0x5d037c=!0x0);}return _0x5d037c;});}}class Tt extends _0x3b6a96{['afterInit'](){const _0x244ebe=this['editor'],_0x1263eb=_0x244ebe['plugins']['get']('TrackChangesEditing');_0x244ebe['plugins']['has']('Uploadcare')&&(_0x1263eb['enableCommand']('uploadcare'),_0x244ebe['plugins']['has']('UploadcareImageEdit')&&(_0x1263eb['enableCommand']('uploadcareImageEdit'),_0x1263eb['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1263eb['registerBlockAttribute']('uploadcareImageId'),_0x1263eb['descriptionFactory']['registerDescriptionCallback'](_0x18adae=>{if('attribute'!=_0x18adae['type'])return;const {data:_0x173011}=_0x18adae;return _0x173011&&'uploadcareImageId'==_0x173011['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x3b6a96{['afterInit'](){const _0x20c0cd=this['editor'],_0x2dff2e=_0x20c0cd['plugins']['get']('TrackChangesEditing');_0x20c0cd['plugins']['has']('UndoEditing')&&(_0x2dff2e['enableCommand']('undo'),_0x2dff2e['enableCommand']('redo'));}}class Et extends _0x3b6a96{static get['requires'](){return[Ct];}['afterInit'](){const _0x50f8ba=this['editor'];if(!_0x50f8ba['plugins']['has']('TableCaptionEditing'))return;_0x50f8ba['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x3b6a96{['tableProperties'];['tableCellProperties'];constructor(_0x3af51f){super(_0x3af51f),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 _0x2cafa9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x19cc9d of this['tableProperties'])_0x2cafa9['enableCommand'](_0x19cc9d,(_0x4bdbed,_0x579263)=>{const _0x5b421f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x19cc9d,[_0x5b421f],this['tableProperties'],'tableProperties',_0x4bdbed,_0x579263);});_0x2cafa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2cafa9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cafa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x348db5,_0x2fde9b)=>this['handleDiscardAction'](this['tableProperties'],_0x348db5,_0x2fde9b)),_0x2cafa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2a0242 of this['tableCellProperties'])_0x2cafa9['enableCommand'](_0x2a0242,(_0x536eaa,_0x267343)=>{const _0xb40e64=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2a0242,_0xb40e64,this['tableCellProperties'],'tableCellProperties',_0x536eaa,_0x267343);});_0x2cafa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2cafa9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cafa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x7bd380,_0x2d5828)=>this['handleDiscardAction'](this['tableCellProperties'],_0x7bd380,_0x2d5828)),_0x2cafa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2cafa9['descriptionFactory']['registerDescriptionCallback'](_0x264073=>this['handleSuggestionDescription'](_0x264073));}['_handlePropertyChange'](_0x48b6a1,_0x54cbf4,_0xc925d7,_0x37d29d,_0x27f716,_0x4b3612){const _0x2e8d0c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4b3612['batch'],()=>{for(const _0x3fdbba of _0x54cbf4){if(this['_getSuggestion'](_0x3fdbba,_0x37d29d))_0x27f716(_0x4b3612);else{const _0x3a2998={};for(const _0xe6cad0 of _0xc925d7){const _0x492291=_0x3fdbba['getAttribute'](_0xe6cad0);void 0x0!==_0x492291&&(_0x3a2998[_0xe6cad0]=_0x492291);}_0x27f716(_0x4b3612),_0x2e8d0c['markBlockFormat'](_0x3fdbba,{'commandParams':[_0x3a2998]},[],_0x37d29d);}}});}['handleDiscardAction'](_0x2c5f7c,_0x2a588a,_0x55f0bb){const _0x4409b8=_0x2a588a[0x0]['start']['nodeAfter'],_0x34e2b1=_0x55f0bb['commandParams'][0x0];this['editor']['model']['change'](_0x188e97=>{for(const _0x25a98d of _0x2c5f7c)void 0x0!==_0x34e2b1[_0x25a98d]?_0x188e97['setAttribute'](_0x25a98d,_0x34e2b1[_0x25a98d],_0x4409b8):_0x188e97['removeAttribute'](_0x25a98d,_0x4409b8);});}['handleSuggestionDescription'](_0x461fd2){if(_0x461fd2['data'])switch(_0x461fd2['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'](_0x105092,_0x2624f3){const _0x54bd49=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x553c62 of _0x54bd49['getSuggestions']({'skipNotAttached':!0x0})){const _0x57c2b1=_0x553c62['getContainedElement']();if(_0x553c62['subType']===_0x2624f3&&_0x57c2b1===_0x105092)return _0x553c62;}return null;}}const m='$elementName';class p extends _0x3b6a96{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x58d047,_0x2edff2,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(_0x1e74dd){super(_0x1e74dd),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3a416b,_0x3770cb,_0x19093b,_0x2c58b2)=>{this['_model']['change'](()=>{for(const _0x3b43aa of[..._0x2c58b2,..._0x19093b])this['_model']['markers']['has'](_0x3b43aa)&&_0x1e74dd['editing']['reconvertMarker'](_0x3b43aa);});}),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']=_0x1e74dd['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(),_0x1e74dd['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1e74dd['config']['get']('trackChanges.trackFormatChanges'),_0x1e74dd['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1e74dd['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1e74dd,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x50263e=this['editor'],_0x6d0921=(_0x5e869a,_0x30b0fd)=>{if('attribute'!=_0x5e869a)return'ck-suggestion-marker-'+_0x5e869a;const _0x1bab0c=_0x30b0fd['split']('|')[0x0];return this['_isBlockAttribute'](_0x1bab0c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x50263e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x44da45=>{const {id:_0x2d4531,authorId:_0x4e87b6,type:_0x5aad6f,subType:_0xccb912}=this['_splitMarkerName'](_0x44da45['markerName']),_0x19ae66=['ck-suggestion-marker',_0x6d0921(_0x5aad6f,_0xccb912)];let _0x5c0287=0xbb8;return this['activeMarkers']['includes'](_0x44da45['markerName'])&&(_0x19ae66['push']('ck-suggestion-marker--active'),_0x5c0287=0xbc2),'deletion'==_0x5aad6f&&(_0x5c0287+=0x5),{'classes':_0x19ae66,'attributes':{'data-suggestion':_0x2d4531,'data-author-id':_0x4e87b6},'priority':_0x5c0287};}}),_0x50263e['conversion']['for']('dataDowncast')['add'](_0x49b8ba=>{_0x49b8ba['on']('addMarker:suggestion',(_0x5343b4,_0x1b3c43,_0x3ab86e)=>{if(!_0x3ab86e['options']['showSuggestionHighlights'])return;const _0x1e3287=_0x1b3c43['item'];if(!_0x1e3287)return;const _0x1c34f6=_0x3ab86e['mapper']['toViewElement'](_0x1e3287);_0x50263e['model']['schema']['isObject'](_0x1e3287)&&_0x1c34f6&&!_0x1c34f6['getCustomProperty']('widget')&&_0x1c34f6['is']('containerElement')&&_0x59695c(_0x1c34f6,_0x3ab86e['writer']);},{'priority':'high'});}),_0x50263e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3f3047,_0x2997a1)=>{if(!_0x2997a1['options']['showSuggestionHighlights'])return null;const {type:_0x456e1a,subType:_0x199f90}=this['_splitMarkerName'](_0x3f3047['markerName']);return{'classes':['ck-suggestion-marker',_0x6d0921(_0x456e1a,_0x199f90)],'priority':0xbb8};}});const _0x40cb85=({showActiveMarkers:_0xafbcec=!0x0,isAttributeSuggestion:_0x3f1b74=!0x1}={})=>(_0x4aac47,_0x24199d,_0xa326da)=>{if(!_0x24199d['item'])return;const {id:_0x2bd3dc,authorId:_0x3d0a94}=this['_splitMarkerName'](_0x24199d['markerName']);if(_0x3f1b74){const _0x3c0ddd=this['_suggestions']['get'](_0x2bd3dc),_0x4a16f5=this['_getAttributeKey'](_0x3c0ddd);if(!this['_isBlockAttribute'](_0x4a16f5))return;}if(_0x24199d['item']['is']('selection'))return void _0xa326da['consumable']['consume'](_0x24199d['item'],_0x4aac47['name']);const _0x47fa1f=_0xa326da['mapper']['toViewElement'](_0x24199d['item']);if(_0x24199d['item']['is']('element')&&_0x50263e['model']['schema']['isBlock'](_0x24199d['item'])&&!_0x47fa1f['getCustomProperty']('addHighlight')){_0xa326da['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x47fa1f),_0xa326da['writer']['setAttribute']('data-suggestion',_0x2bd3dc,_0x47fa1f),_0xa326da['writer']['setAttribute']('data-author-id',_0x3d0a94,_0x47fa1f),_0xa326da['mapper']['bindElementToMarker'](_0x47fa1f,_0x24199d['markerName']),_0xafbcec&&(this['activeMarkers']['includes'](_0x24199d['markerName'])?_0xa326da['writer']['addClass']('ck-suggestion-marker--active',_0x47fa1f):_0xa326da['writer']['removeClass']('ck-suggestion-marker--active',_0x47fa1f));for(const _0xf0a237 of _0x50263e['model']['createRangeIn'](_0x24199d['item'])['getItems']())_0xa326da['consumable']['consume'](_0xf0a237,_0x4aac47['name']);_0xa326da['consumable']['consume'](_0x24199d['item'],_0x4aac47['name']);}};_0x50263e['conversion']['for']('dataDowncast')['add'](_0x4d4a40=>{_0x4d4a40['on']('addMarker:suggestion:formatBlock',(_0xa27df5,_0x2d296d,_0x261c6e)=>{_0x261c6e['options']['showSuggestionHighlights']&&_0x40cb85({'showActiveMarkers':!0x1})(_0xa27df5,_0x2d296d,_0x261c6e);},{'priority':'highest'});}),_0x50263e['conversion']['for']('dataDowncast')['add'](_0x51c9c9=>{_0x51c9c9['on']('addMarker:suggestion:attribute',(_0x1c53cf,_0x5ab3ec,_0x4a8885)=>{_0x4a8885['options']['showSuggestionHighlights']&&_0x40cb85({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1c53cf,_0x5ab3ec,_0x4a8885);},{'priority':'highest'});}),_0x50263e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x25da43,_0x2f66fb)=>_0x2f66fb['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x25da43['substr'](0xb)}}),_0x50263e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x34e45d,{writer:_0xca9e1c})=>{let _0x401698='suggestion:'+_0x34e45d['getAttribute']('suggestion-type')+':'+_0x34e45d['getAttribute']('id');return _0x34e45d['getAttribute']('marker-count')&&(_0x401698+=':'+_0x34e45d['getAttribute']('marker-count')),_0xca9e1c['createElement']('$marker',{'data-name':_0x401698});}}),_0x50263e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x50263e['conversion']['for']('editingDowncast')['add'](_0x57b7aa=>{_0x57b7aa['on']('addMarker:suggestion:formatBlock',_0x40cb85(),{'priority':'high'});}),_0x50263e['conversion']['for']('editingDowncast')['add'](_0x177202=>{_0x177202['on']('addMarker:suggestion:attribute',_0x40cb85({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x50263e['conversion']['for']('editingDowncast')['add'](_0x548397=>{_0x548397['on']('removeMarker:suggestion:formatBlock',(_0x3771f7,_0x31aab2,_0x228230)=>{const _0x2995a2=_0x228230['mapper']['markerNameToElements'](_0x31aab2['markerName']);if(_0x2995a2){for(const _0x30ecbb of _0x2995a2)_0x30ecbb['getCustomProperty']('addHighlight')||(_0x228230['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x30ecbb),_0x228230['writer']['removeAttribute']('data-suggestion',_0x30ecbb),_0x228230['writer']['removeAttribute']('data-author-id',_0x30ecbb),_0x228230['mapper']['unbindElementFromMarkerName'](_0x30ecbb,_0x31aab2['markerName']));}},{'priority':'high'});}),_0x50263e['conversion']['for']('editingDowncast')['add'](_0x1f0879=>{_0x1f0879['on']('removeMarker:suggestion:attribute',(_0x34b5f3,_0x183ef3,_0x3a3dee)=>{const _0x32d313=_0x3a3dee['mapper']['markerNameToElements'](_0x183ef3['markerName']);if(!_0x32d313)return;const {id:_0x2fa5e0}=this['_splitMarkerName'](_0x183ef3['markerName']),_0x557d80=this['_suggestions']['get'](_0x2fa5e0),_0x4dd2f2=this['_getAttributeKey'](_0x557d80);if(this['_isBlockAttribute'](_0x4dd2f2)){for(const _0x174f29 of _0x32d313)_0x174f29['getCustomProperty']('addHighlight')||(_0x3a3dee['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x174f29),_0x3a3dee['writer']['removeAttribute']('data-suggestion',_0x174f29),_0x3a3dee['writer']['removeAttribute']('data-author-id',_0x174f29),_0x3a3dee['mapper']['unbindElementFromMarkerName'](_0x174f29,_0x183ef3['markerName']));}},{'priority':'high'});}),_0x50263e['model']['document']['registerPostFixer'](_0x1f13b0=>{let _0x371b7f=!0x1;const _0x3d05ad=Array['from'](_0x50263e['model']['document']['differ']['getChangedMarkers']()),_0x4e7570=new Set();for(const {name:_0x30c73b,data:_0x13589e}of _0x3d05ad){const {group:_0x56306c,type:_0x5b16dd,subType:_0x2b36ac,id:_0x371409}=this['_splitMarkerName'](_0x30c73b);if('suggestion'!==_0x56306c)continue;const _0x521cab=this['_suggestions']['get'](_0x371409);if(null!=_0x13589e['newRange']){'formatInline'==_0x5b16dd&&(_0x371b7f=_0x371b7f||Lt(_0x13589e['newRange'],_0x30c73b,_0x1f13b0,_0x50263e['model']['schema']));const _0xc86a64='attribute'==_0x5b16dd&&this['_isBlockAttribute'](_0x2b36ac['split']('|')[0x0]);if(_0x13589e['newRange']['isCollapsed']||'$graveyard'==_0x13589e['newRange']['root']['rootName']||'formatBlock'==_0x5b16dd&&!Ht(_0x13589e['newRange'])||_0xc86a64&&!Ht(_0x13589e['newRange'])||'deletion'==_0x5b16dd&&!(!Ft(_0x5d09b8=_0x13589e['newRange'])&&!function(_0x3b4495){return _0x3b4495['start']['parent']==_0x3b4495['end']['nodeBefore']&&_0x3b4495['start']['isAtEnd'];}(_0x5d09b8)))_0x1f13b0['removeMarker'](_0x30c73b),_0x371b7f=!0x0;else{if(!_0x521cab||!_0x521cab['isInContent'])continue;if(_0x13589e['newRange']&&_0x13589e['oldRange']&&_0x13589e['newRange']['isEqual'](_0x13589e['oldRange']))continue;_0x4e7570['add'](_0x521cab);}}}var _0x5d09b8;return _0x4e7570['size']>0x0&&(_0x371b7f=!!this['_joinWithAdjacentSuggestions'](_0x4e7570)||_0x371b7f),_0x371b7f;}),_0x50263e['model']['document']['registerPostFixer'](_0xda04bf=>{let _0x443102=!0x1;for(const _0x52a315 of _0x50263e['model']['document']['differ']['getChanges']())if('insert'==_0x52a315['type'])for(const _0x206fa5 of this['_suggestions']['values']()){if(_0x206fa5['isMultiRange']||!_0x206fa5['isInContent'])continue;const _0x354485='formatBlock'==_0x206fa5['type'],_0x2858f4=this['_getAttributeKey'](_0x206fa5),_0xbfc80d=_0x2858f4&&this['_isBlockAttribute'](_0x2858f4);if(!_0x354485&&!_0xbfc80d)continue;const _0x352e41=_0x206fa5['getFirstRange']();if(_0x352e41['start']['parent']!=_0x352e41['end']['parent']&&!_0x352e41['end']['isAtEnd']){const _0x4d0050=_0x50263e['model']['createPositionAt'](_0x352e41['start']['nodeAfter'],'end'),_0x2966a3=_0x50263e['model']['createRange'](_0x352e41['start'],_0x4d0050);_0xda04bf['updateMarker'](_0x206fa5['getFirstMarker'](),{'range':_0x2966a3}),_0x443102=!0x0;}}return _0x443102;}),_0x50263e['model']['document']['registerPostFixer'](_0x383928=>this['_processAttributeChanges'](_0x383928)),_0x50263e['model']['document']['registerPostFixer'](_0x546304=>!_0x546304['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x546304)),_0x50263e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x50263e['model']['document']['on']('change:data',(_0xd066d7,_0x221586)=>{if(!_0x221586['isLocal']||_0x221586['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x235d0c=_0x50263e['model']['document']['differ']['getChanges']();if(0x0==_0x235d0c['length'])return;const _0x4a812d=[],_0x22ae8e=_0x235d0c['filter'](_0x91cd19=>'attribute'==_0x91cd19['type']),_0x51b82e=_0x235d0c['filter'](_0x545ad6=>'insert'==_0x545ad6['type']&&'$text'!=_0x545ad6['name']);for(const _0x196ed2 of _0x22ae8e)this['_isRegisteredAttribute'](_0x196ed2['attributeKey'])&&_0x4a812d['push']({'key':_0x196ed2['attributeKey'],'newValue':_0x196ed2['attributeNewValue'],'oldValue':_0x196ed2['attributeOldValue'],'range':qt(_0x196ed2['range'],_0x50263e['model'])});for(const _0x45d015 of _0x51b82e){if('rename'!=_0x45d015['action']&&'refresh'!=_0x45d015['action'])continue;const _0x248a74=zt(_0x45d015['position']['nodeAfter'],_0x50263e['model']),_0x2f85db=_0x45d015['before'];'rename'==_0x45d015['action']&&_0x4a812d['push']({'key':m,'newValue':_0x45d015['name'],'oldValue':_0x2f85db['name'],'range':_0x248a74});for(const [_0x40e25a,_0x24f8d4]of _0x2f85db['attributes']){if(!this['_isRegisteredAttribute'](_0x40e25a))continue;const _0xf416ad=_0x45d015['attributes']['get'](_0x40e25a);_0x24f8d4!==_0xf416ad&&_0x4a812d['push']({'key':_0x40e25a,'newValue':_0xf416ad,'oldValue':_0x24f8d4,'range':_0x248a74});}for(const [_0x4242ad,_0x2b8299]of _0x45d015['attributes'])this['_isRegisteredAttribute'](_0x4242ad)&&(_0x2f85db['attributes']['has'](_0x4242ad)||_0x4a812d['push']({'key':_0x4242ad,'newValue':_0x2b8299,'oldValue':null,'range':_0x248a74}));}0x0!=_0x4a812d['length']&&_0x50263e['model']['enqueueChange'](_0x221586,_0x43eedf=>{const _0x71e504=_0x42a68b();for(const {range:_0x105b20,key:_0x31c1cb,oldValue:_0x2fe43f,newValue:_0x392336}of _0x4a812d)this['markAttributeChange'](_0x105b20,_0x31c1cb,_0x2fe43f,_0x392336,{'groupId':_0x71e504});this['_reduceExistingSuggestions'](_0x43eedf,_0x4a812d);});},{'priority':'lowest'}),_0x50263e['model']['markers']['on']('update:suggestion',(_0x37ec48,_0xd3b31c,_0x797e11)=>{if(null==_0x797e11){const {id:_0x1c6acb}=this['_splitMarkerName'](_0xd3b31c['name']),_0x23362a=this['_suggestions']['get'](_0x1c6acb);_0x23362a&&_0x23362a['addMarkerName'](_0xd3b31c['name']);}}),_0x50263e['model']['document']['on']('change:data',()=>{const _0x2205a7=Array['from'](_0x50263e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1c0547=>'suggestion'===this['_splitMarkerName'](_0x1c0547['name'])['group']);if(0x0===_0x2205a7['length'])return;_0x2205a7['sort']((_0x277e5a,_0x5686c6)=>{const _0x10ba01=_0x277e5a['data']['oldRange'],_0x5cb725=_0x5686c6['data']['oldRange'];return null===_0x10ba01&&null===_0x5cb725?0x0:null===_0x10ba01&&null!==_0x5cb725?-0x1:null!==_0x10ba01&&null===_0x5cb725?0x1:_0x10ba01['start']['isBefore'](_0x5cb725['start'])?-0x1:0x1;});const _0x53e6d5=new Set(),_0x23371b=new Set();for(const {name:_0x4787bb,data:_0x1e5f39}of _0x2205a7){const {id:_0x575931}=this['_splitMarkerName'](_0x4787bb);if(null===_0x1e5f39['oldRange']){const _0x2d54f0=this['_handleNewSuggestionMarker'](_0x4787bb);_0x23371b['add'](_0x2d54f0);}else{const _0x300cfe=this['_suggestions']['get'](_0x575931);null!==_0x1e5f39['newRange']||_0x300cfe['isInContent']?(_0x53e6d5['add'](_0x300cfe['head']),_0x23371b['add'](_0x300cfe)):this['_removeSuggestion'](_0x300cfe);}}_0x23371b['size']>0x0&&this['_refreshSuggestionsChain'](_0x23371b);for(const _0x52c0c7 of _0x53e6d5)this['fire']('suggestionChanged',_0x52c0c7);}),_0x50263e['model']['on']('applyOperation',(_0x1bfcaa,_0x4cb72c)=>{const _0xebac9b=_0x4cb72c[0x0];if(!this['_suggestions']['size'])return;if(!_0xebac9b['isDocumentOperation'])return;if(_0xebac9b['batch']['isUndo']||!_0xebac9b['batch']['isLocal'])return;let _0x490491,_0x26efa8;switch(_0xebac9b['type']){case'insert':_0x490491=_0x50263e['model']['createPositionAt'](_0xebac9b['position']),_0x26efa8=_0x490491['getShiftedBy'](_0xebac9b['howMany']);break;case'split':_0x490491=_0x50263e['model']['createPositionAt'](_0xebac9b['splitPosition']),_0x26efa8=_0x50263e['model']['createPositionAt'](_0xebac9b['moveTargetPosition']);break;case'move':_0x490491=_0x50263e['model']['createPositionAt'](_0xebac9b['targetPosition']),_0x26efa8=_0x490491['getShiftedBy'](_0xebac9b['howMany']);break;default:return;}const _0x238f19=_0x50263e['model']['createRange'](_0x490491,_0x26efa8);_0x50263e['model']['change'](()=>{for(const {suggestion:_0x2c0459,meta:_0x47e4f5}of this['_findSuggestions'](_0x238f19)){if(_0x2c0459['isMultiRange'])continue;if('formatInline'==_0x2c0459['type'])continue;const _0x584605=this['_getAttributeKey'](_0x2c0459);if(_0x584605&&this['_isBlockAttribute'](_0x584605)&&'split'!=_0xebac9b['type'])continue;const _0x542401=_0x2c0459['data']&&_0x2c0459['data']['multipleBlocks'];('formatBlock'!=_0x2c0459['type']||'split'==_0xebac9b['type']&&!_0x542401)&&(_0x47e4f5['containsRangeInObject']||'insertion'==_0x2c0459['type']&&_0x47e4f5['isOwn']||_0x2c0459['getFirstRange']()['containsRange'](_0x238f19)&&this['_breakSuggestionMarker'](_0x2c0459,_0x490491,_0x26efa8));}});},{'priority':'lowest'}),_0x50263e['model']['on']('deleteContent',(_0x33938a,_0x358c6d)=>{const _0x5282ea=_0x358c6d[0x0],_0x397185=_0x358c6d[0x1];if(_0x397185&&_0x397185['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5282ea['isCollapsed'])return;const _0x410428=_0x50263e['model']['schema'],{start:_0x36d101,end:_0x510783}=_0x5282ea['getFirstRange'](),_0x1ffd53=_0x36d101['nodeAfter']&&_0x410428['isLimit'](_0x36d101['nodeAfter'])?null:_0x410428['getNearestSelectionRange'](_0x36d101,'forward'),_0x16ef4c=_0x510783['nodeBefore']&&_0x410428['isLimit'](_0x510783['nodeBefore'])?null:_0x410428['getNearestSelectionRange'](_0x510783,'backward'),_0x229c3a=_0x50263e['model']['createRange'](_0x1ffd53?_0x1ffd53['start']:_0x36d101,_0x16ef4c?_0x16ef4c['end']:_0x510783);_0x50263e['model']['change'](_0xbcf6fd=>{this['markDeletion'](_0x229c3a);const _0x50c163=_0x50263e['model']['schema']['getNearestSelectionRange'](_0x229c3a['start']);_0x5282ea['is']('documentSelection')?_0xbcf6fd['setSelection'](_0x50c163):_0x5282ea['setTo'](_0x50c163);}),_0x33938a['stop']();},{'priority':_0x45202f['normal']+0xa}),_0x50263e['model']['on']('insertContent',(_0x1984ae,_0x49a02d)=>{const _0x4076bf=_0x49a02d[_0x49a02d['length']-0x1];_0x4076bf&&_0x4076bf['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x50263e['model']['change'](()=>{let _0x11a4c4=_0x50263e['model']['insertContent'](_0x49a02d[0x0],_0x49a02d[0x1],_0x49a02d[0x2],{'forceDefaultExecution':!0x0});if(!_0x11a4c4)return;_0x1984ae['return']=_0x11a4c4['clone']();const _0x1d426d=_0x11a4c4['end']['nodeBefore'],_0x22f786=_0x50263e['model']['schema'];_0x1d426d&&_0x22f786['isBlock'](_0x1d426d)&&!_0x22f786['isObject'](_0x1d426d)&&(_0x11a4c4=_0x50263e['model']['createRange'](_0x11a4c4['start'],_0x50263e['model']['createPositionAt'](_0x1d426d,'end'))),this['markInsertion'](_0x11a4c4);}),_0x1984ae['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2ae956=new O(_0x50263e,this['_suggestions']);_0x50263e['commands']['add']('acceptSuggestion',_0x2ae956),this['enableCommand']('acceptSuggestion');const _0x422bf9=new R(_0x50263e,this['_suggestions']);_0x50263e['commands']['add']('discardSuggestion',_0x422bf9),this['enableCommand']('discardSuggestion'),_0x50263e['commands']['add']('acceptAllSuggestions',new x(_0x50263e,_0x2ae956,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x50263e['commands']['add']('discardAllSuggestions',new x(_0x50263e,_0x422bf9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x50263e['commands']['add']('acceptSelectedSuggestions',new E(_0x50263e,_0x2ae956,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x50263e['commands']['add']('discardSelectedSuggestions',new E(_0x50263e,_0x422bf9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5b3515=_0x50263e['plugins']['get']('CommentsRepository');this['listenTo'](_0x5b3515,'addComment',(_0x2c975d,{threadId:_0x57fa24})=>{const _0x85fb3b=this['_suggestions']['get'](_0x57fa24);_0x85fb3b&&_0x85fb3b['commentThread']&&0x1===_0x85fb3b['commentThread']['length']&&this['_updateSuggestionData'](_0x57fa24,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5b3515,'removeComment',(_0x1bf1ac,{threadId:_0x50fa82})=>{const _0x82048f=this['_suggestions']['get'](_0x50fa82);_0x82048f&&_0x82048f['commentThread']&&!_0x82048f['commentThread']['length']&&this['_updateSuggestionData'](_0x50fa82,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1a2916){const _0x4b72e6=_0x17202c([0x71,0x45,0x56,0x67,0x75,0x55,0x5a,0x62,0x73,0x68,0x52,0x63,0x7a,0x35,0x4a,0x59,0x74,0x61,0x64,0x70,0x4c,0x6d,0x34,0x32,0x53,0x44,0x79,0x6e,0x58,0x48,0x4e,0x54,0x6b,0x57,0x38,0x76,0x78,0x51,0x69,0x41,0x4f,0x39,0x77,0x6f,0x46,0x4b,0x4d,0x66,0x6a,0x43,0x36,0x42,0x65,0x33,0x49,0x72,0x50,0x47,0x6c,0x31,0x37,0x30]),_0x12f872=0x5cfeea06,_0x45cb6a=0x5cf9b5f6^_0x12f872,_0x32d9ea=window[_0x17202c([0x44,0x61,0x74,0x65])][_0x17202c([0x6e,0x6f,0x77])](),_0x4b453b=_0x1a2916[_0x17202c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf1f2cd=new window[(_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24b6ff=>{_0x4b453b[_0x17202c([0x6f,0x6e,0x63,0x65])](_0x17202c([0x72,0x65,0x61,0x64,0x79]),_0x24b6ff);}),_0x619eee={[_0x17202c([0x6b,0x74,0x79])]:_0x17202c([0x45,0x43]),[_0x17202c([0x75,0x73,0x65])]:_0x17202c([0x73,0x69,0x67]),[_0x17202c([0x63,0x72,0x76])]:_0x17202c([0x50,0x2d,0x32,0x35,0x36]),[_0x17202c([0x78])]:_0x17202c([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]),[_0x17202c([0x79])]:_0x17202c([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]),[_0x17202c([0x61,0x6c,0x67])]:_0x17202c([0x45,0x53,0x32,0x35,0x36])},_0x368839=_0x4b453b[_0x17202c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17202c([0x67,0x65,0x74])](_0x17202c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1d3185(){let _0x24ec46,_0xabb9a0=null,_0x1bfb10=null;try{if(_0x368839==_0x17202c([0x47,0x50,0x4c]))return _0x17202c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x24ec46=_0x302b1e(),!_0x24ec46)return _0x17202c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x24ec46[_0x17202c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1bfb10=_0x4555d3(_0x24ec46[_0x17202c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x24ec46[_0x17202c([0x6a,0x74,0x69])])),await _0x276b90()?_0x2c2b81()?_0x457bac()?_0x17202c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x155360()?(_0x24ec46[_0x17202c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17202c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xabb9a0=_0x4e6727(_0x17202c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x24ec46[_0x17202c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17202c([0x74,0x72,0x69,0x61,0x6c])&&(_0xabb9a0=_0x4e6727(_0x17202c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x13a84c()):_0x17202c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17202c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17202c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4614be){return _0x17202c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x457bac(){const _0xcade0c=[_0x17202c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17202c([0x74,0x72,0x69,0x61,0x6c])][_0x17202c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24ec46[_0x17202c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32d9ea/0x3e8:0xe10*_0x45cb6a;return _0x24ec46[_0x17202c([0x65,0x78,0x70])]<_0xcade0c;}function _0x2c2b81(){const _0x26f7ae=_0x24ec46[_0x17202c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x26f7ae)return!0x1;if(_0x26f7ae[_0x17202c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17202c([0x2a])))return!0x0;if(_0x26f7ae[_0x17202c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17202c([0x54,0x43])))return!0x0;if(_0x26f7ae[_0x17202c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17202c([0x52,0x54,0x43]))){if(_0x2c0b0f())return!0x0;if(_0x5e5a5e()||_0x45ece1())return!0x0;}return!0x1;}function _0x155360(){const _0x1e79ce=_0x24ec46[_0x17202c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e79ce||0x0==_0x1e79ce[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x47f7bc}=new URL(window[_0x17202c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1e79ce[_0x17202c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47f7bc))return!0x0;const _0x38d66c=_0x47f7bc[_0x17202c([0x73,0x70,0x6c,0x69,0x74])](_0x17202c([0x2e]));return _0x1e79ce[_0x17202c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f3370=>_0x3f3370[_0x17202c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17202c([0x2a])))[_0x17202c([0x6d,0x61,0x70])](_0x3bcb46=>_0x3bcb46[_0x17202c([0x73,0x70,0x6c,0x69,0x74])](_0x17202c([0x2e])))[_0x17202c([0x73,0x6f,0x6d,0x65])](_0x337c7c=>_0x38d66c[_0x17202c([0x65,0x76,0x65,0x72,0x79])]((_0x53f6f3,_0x5ca010)=>_0x337c7c[_0x5ca010]===_0x53f6f3||_0x337c7c[_0x5ca010]===_0x17202c([0x2a])));}function _0x13a84c(){return _0xabb9a0&&_0x1bfb10?new window[(_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x159b2a,_0x3b6905)=>{_0xabb9a0[_0x17202c([0x74,0x68,0x65,0x6e])](_0x159b2a,_0x3b6905),_0x1bfb10[_0x17202c([0x74,0x68,0x65,0x6e])](_0x38b4cf=>{_0x38b4cf!=_0x17202c([0x56,0x61,0x6c,0x69,0x64])&&_0x159b2a(_0x38b4cf);},_0x3b6905);}):_0xabb9a0||_0x1bfb10||_0x17202c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4555d3(_0x8368c5,_0x18eb12){return new window[(_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1dc7=>{if(_0x224916())return _0x4e1dc7(_0x17202c([0x56,0x61,0x6c,0x69,0x64]));_0x514564(),_0x4b453b[_0x17202c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17202c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1c5113=!0x1;const _0x1f932a=_0x42a68b();function _0x31a397(_0x4bed7b){return!!_0x4bed7b&&(typeof _0x4bed7b===_0x17202c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4bed7b===_0x17202c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4bed7b[_0x17202c([0x74,0x68,0x65,0x6e])]===_0x17202c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4bed7b[_0x17202c([0x63,0x61,0x74,0x63,0x68])]===_0x17202c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x500338(_0x2c1409){_0x197394(_0x2c1409)[_0x17202c([0x74,0x68,0x65,0x6e])](_0x6d6e6e=>{if(!_0x6d6e6e||_0x6d6e6e[_0x17202c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17202c([0x6f,0x6b]))return _0x17202c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb0cfb(_0x52131c(_0x1f932a+_0x18eb12))!=_0x6d6e6e[_0x17202c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17202c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17202c([0x56,0x61,0x6c,0x69,0x64]);})[_0x17202c([0x74,0x68,0x65,0x6e])](_0x4118a9=>(_0x477fe8(),_0x4118a9),()=>{const _0x578632=_0x15d605();return null==_0x578632?(_0x477fe8(),_0x17202c([0x56,0x61,0x6c,0x69,0x64])):_0x17202c(_0x32d9ea-_0x578632>(0x78f26e06^_0x12f872)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17202c([0x74,0x68,0x65,0x6e])](_0x4e1dc7)[_0x17202c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e1dc7(_0x17202c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x738ed5=0x5cc80486^_0x12f872;function _0x477fe8(){const _0x33e1b5=_0x17202c([0x6c,0x6c,0x63,0x74,0x2d])+_0xb0cfb(_0x52131c(_0x8368c5)),_0x3e2a51=_0x24a444(_0xb0cfb(window[_0x17202c([0x4d,0x61,0x74,0x68])][_0x17202c([0x63,0x65,0x69,0x6c])](_0x32d9ea/_0x738ed5)));window[_0x17202c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17202c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33e1b5,_0x3e2a51);}function _0x15d605(){const _0x54e23a=_0x17202c([0x6c,0x6c,0x63,0x74,0x2d])+_0xb0cfb(_0x52131c(_0x8368c5)),_0xf67f1d=window[_0x17202c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17202c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54e23a);return _0xf67f1d?window[_0x17202c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24a444(_0xf67f1d),0x10)*_0x738ed5:null;}function _0x197394(_0x5cf50d){return new window[(_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39191d,_0x425a8f)=>{_0x5cf50d[_0x17202c([0x74,0x68,0x65,0x6e])](_0x39191d,_0x425a8f),window[_0x17202c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x425a8f,0x5cff3ec6^_0x12f872);});}}_0x4b453b[_0x17202c([0x6f,0x6e])](_0x17202c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xaaef93,_0x5d6f7a)=>{if(_0x5d6f7a[0x0]!=_0x8368c5)return _0x4e1dc7(_0x17202c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d6f7a[0x1]={..._0x5d6f7a[0x1],[_0x17202c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f932a};},{[_0x17202c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17202c([0x68,0x69,0x67,0x68])}),_0x4b453b[_0x17202c([0x6f,0x6e])](_0x17202c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4e8dcf=>{_0x31a397(_0x4e8dcf[_0x17202c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1c5113=!0x0,_0x500338(_0x4e8dcf[_0x17202c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17202c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17202c([0x6c,0x6f,0x77])}),_0xf1f2cd[_0x17202c([0x74,0x68,0x65,0x6e])](()=>{_0x1c5113||_0x4e1dc7(_0x17202c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x224916(){return _0x4b453b[_0x17202c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17202c([0x76,0x69,0x65,0x77])][_0x17202c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17202c([0x61,0x75,0x74,0x6f]);}function _0x514564(){_0x4b453b[_0x17202c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17202c([0x76,0x69,0x65,0x77])][_0x17202c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17202c([0x61,0x75,0x74,0x6f]);}}function _0x4e6727(_0x5c12a3){const _0x1357a2=[new window[(_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x159f11=>setTimeout(_0x159f11,0x5cf7d4ca^_0x12f872)),_0xf1f2cd[_0x17202c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x355ebf=>{let _0x5a9efe=0x0;_0x4b453b[_0x17202c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17202c([0x6f,0x6e])](_0x17202c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1cf2b0,_0xa31adc)=>{_0xa31adc[0x0][_0x17202c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5a9efe++,_0x5a9efe==(0x5cfeebfe^_0x12f872)&&(_0x355ebf(),_0x1cf2b0[_0x17202c([0x6f,0x66,0x66])]());});}))];return window[_0x17202c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17202c([0x72,0x61,0x63,0x65])](_0x1357a2)[_0x17202c([0x74,0x68,0x65,0x6e])](()=>_0x5c12a3);}async function _0x134b2f(){await _0xf1f2cd,_0x4b453b[_0x17202c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17202c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x56b910,_0x4b453b[_0x17202c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17202c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x56b910,_0x4b453b[_0x17202c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17202c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2c0b0f(){return _0x286c4d(_0x17202c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1add79(_0x17202c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x17202c([0x73,0x74,0x61,0x74,0x65])]==_0x17202c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5e5a5e(){return _0x286c4d(_0x17202c([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 _0x45ece1(){return _0x286c4d(_0x17202c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x17c775(_0x21c6fc){const _0xfe8589=_0x32575d();_0x4b453b[_0xfe8589]=_0x17202c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21c6fc,_0x21c6fc!=_0x17202c([0x56,0x61,0x6c,0x69,0x64])&&_0x134b2f();}function _0x32575d(){const _0x205328=window[_0x17202c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17202c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17202c([0x6e,0x6f,0x77])]())[_0x17202c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17202c([0x2e]),'');let _0x4c212f=_0x17202c([0x71]);for(let _0x162253=0x0;_0x162253<_0x205328[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x162253+=0x2){let _0x2b4c6f=window[_0x17202c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x205328[_0x17202c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x162253,_0x162253+0x2));_0x2b4c6f>=_0x4b72e6[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b4c6f-=_0x4b72e6[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4c212f+=_0x4b72e6[_0x2b4c6f];}return _0x4c212f;}function _0x302b1e(){const _0x225eb7=_0x368839[_0x17202c([0x73,0x70,0x6c,0x69,0x74])](_0x17202c([0x2e]));if(0x3!=_0x225eb7[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e8e3f(_0x225eb7[0x1]);function _0x2e8e3f(_0x32d35b){const _0x30efcb=_0x37e19f(_0x32d35b);return _0x30efcb&&_0x5ae861()?_0x30efcb:null;function _0x5ae861(){const _0x3d0d34=_0x30efcb[_0x17202c([0x6a,0x74,0x69])],_0x16acd0=window[_0x17202c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d0d34[_0x17202c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d0d34[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x80e746={..._0x30efcb,[_0x17202c([0x6a,0x74,0x69])]:_0x3d0d34[_0x17202c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3d0d34[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x80e746[_0x17202c([0x76,0x63])],_0x52131c(_0x80e746)==_0x16acd0;}}}async function _0x276b90(){let _0x45e7b3=!0x0;try{const _0x5647cc=_0x368839[_0x17202c([0x73,0x70,0x6c,0x69,0x74])](_0x17202c([0x2e])),[_0x8f1acb,_0xe048e7,_0x544b15]=_0x5647cc;return _0x1440c7(_0x8f1acb),await _0x615e6c(_0x8f1acb,_0xe048e7,_0x544b15),_0x45e7b3;}catch(_0x291b94){return!0x1;}function _0x1440c7(_0x50029d){const _0xa281f=_0x37e19f(_0x50029d);_0xa281f&&_0xa281f[_0x17202c([0x61,0x6c,0x67])]==_0x17202c([0x45,0x53,0x32,0x35,0x36])||(_0x45e7b3=!0x1);}async function _0x615e6c(_0xbc8604,_0x193213,_0x5bcfb5){const _0xb27df5=window[_0x17202c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17202c([0x66,0x72,0x6f,0x6d])](_0x2aba76(_0x5bcfb5),_0x187aa5=>_0x187aa5[_0x17202c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x323216=new window[(_0x17202c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17202c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xbc8604+_0x17202c([0x2e])+_0x193213),_0x15efed=window[_0x17202c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17202c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15efed)return;const _0x4f7004=await _0x15efed[_0x17202c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17202c([0x6a,0x77,0x6b]),_0x619eee,{[_0x17202c([0x6e,0x61,0x6d,0x65])]:_0x17202c([0x45,0x43,0x44,0x53,0x41]),[_0x17202c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17202c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17202c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15efed[_0x17202c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17202c([0x6e,0x61,0x6d,0x65])]:_0x17202c([0x45,0x43,0x44,0x53,0x41]),[_0x17202c([0x68,0x61,0x73,0x68])]:{[_0x17202c([0x6e,0x61,0x6d,0x65])]:_0x17202c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f7004,_0xb27df5,_0x323216)||(_0x45e7b3=!0x1);}}function _0x37e19f(_0x2f1d2c){return _0x2f1d2c[_0x17202c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17202c([0x65,0x79]))?JSON[_0x17202c([0x70,0x61,0x72,0x73,0x65])](_0x2aba76(_0x2f1d2c)):null;}function _0x2aba76(_0x2ec424){return window[_0x17202c([0x61,0x74,0x6f,0x62])](_0x2ec424[_0x17202c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17202c([0x2b]))[_0x17202c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17202c([0x2f])));}function _0x52131c(_0x29e92d){let _0xffadac=0x1505;function _0x49103f(_0xc66401){for(let _0x149329=0x0;_0x149329<_0xc66401[_0x17202c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x149329++){const _0x11930a=_0xc66401[_0x17202c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x149329);_0xffadac=(_0xffadac<<0x5)+_0xffadac+_0x11930a,_0xffadac&=_0xffadac;}}function _0x57da0c(_0xdc2a33){Array[_0x17202c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xdc2a33)?_0xdc2a33[_0x17202c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57da0c):_0xdc2a33&&typeof _0xdc2a33==_0x17202c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17202c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xdc2a33)[_0x17202c([0x73,0x6f,0x72,0x74])]()[_0x17202c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x518953,_0x3c243e])=>{_0x49103f(_0x518953),_0x57da0c(_0x3c243e);}):_0x49103f(window[_0x17202c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xdc2a33));}return _0x57da0c(_0x29e92d),_0xffadac>>>0x0;}function _0xb0cfb(_0x52b531){return _0x52b531[_0x17202c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17202c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17202c([0x30]));}function _0x24a444(_0x34f347){return _0x34f347[_0x17202c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17202c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17202c([0x6a,0x6f,0x69,0x6e])]('');}function _0x286c4d(_0x2079ab){return _0x4b453b[_0x17202c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x17202c([0x68,0x61,0x73])](_0x2079ab);}function _0x1add79(_0x53f079){return _0x4b453b[_0x17202c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x17202c([0x67,0x65,0x74])](_0x53f079);}function _0x56b910(){}function _0x17202c(_0x250094){return _0x250094['map'](_0x5a17c0=>String['fromCharCode'](_0x5a17c0))['join']('');}_0x17c775(await _0x1d3185());}(this);}set['adapter'](_0x2c2690){if(this['_adapter'])throw new _0x5e7b1c('track-changes-adapter-already-set',this);this['_adapter']=_0x2c2690;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x174051=!0x1,toJSON:_0x3b8762=!0x1}={}){const _0x17877c=[];for(const _0x3b4bfd of this['_suggestions']['values']())_0x174051&&!_0x3b4bfd['isInContent']||_0x17877c['push'](_0x3b4bfd);return _0x3b8762?_0x17877c['map'](_0x137486=>_0x137486['toJSON']()):_0x17877c;}['getSuggestion'](_0xdfd602){const _0x439200=this['_suggestions']['get'](_0xdfd602);if(!_0x439200)throw new _0x5e7b1c('track-changes-suggestion-not-found',this);return _0x439200;}['hasSuggestion'](_0x438e35){return this['_suggestions']['has'](_0x438e35);}['addSuggestionData'](_0x1fbf8b){const {authorId:_0x5058f8,id:_0xe6c49c,attributes:_0x445c3d}=_0x1fbf8b,[_0x1271a6,_0x307140]=_0x1fbf8b['type']['split'](':'),_0x5d05a=this['_suggestions']['get'](_0xe6c49c)||this['_createSuggestion'](_0x1271a6,_0x307140,_0xe6c49c,_0x5058f8,_0x445c3d);if(this['_addThreadToSuggestion'](_0x5d05a),this['_checkSuggestionCorrectness'](_0x5d05a,_0x1271a6,_0x307140||null,_0x5058f8),_0x5d05a['createdAt']=_0x1fbf8b['createdAt'],_0x5d05a['_isDataLoaded']=!0x0,_0x445c3d&&_0x445c3d['@external']){const _0x512df9=_0x445c3d['@external'],_0x3acd69=this['_getExternalAuthor'](_0x512df9['authorName']);_0x5d05a['authoredAt']=_0x512df9['createdAt'],_0x5d05a['author']=_0x3acd69,_0x5d05a['isExternal']=!0x0;}else _0x5d05a['authoredAt']=_0x1fbf8b['createdAt'];switch(_0x1fbf8b['data']&&(_0x5d05a['data']=_0x1fbf8b['data']),_0x1fbf8b['attributes']&&(_0x5d05a['attributes']=_0x1fbf8b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5d05a['_saved']=!0x0),this['_suggestionState']['get'](_0x5d05a)){case'notReady':this['_suggestionState']['set'](_0x5d05a,'dataReady');break;case'markerReady':_0x5d05a['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5d05a])),this['_refreshSuggestionsChain'](new Set([_0x5d05a])),this['_suggestionState']['set'](_0x5d05a,'ready'),this['fire']('suggestionLoaded',_0x5d05a)):this['_suggestionState']['set'](_0x5d05a,'removed');}return _0x5d05a;}['acceptSuggestion'](_0x2b275d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x340d12 of _0x2b275d['getAllAdjacentSuggestions']())_0x340d12['accept']();});});}['discardSuggestion'](_0x49e006){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x27490a of _0x49e006['getAllAdjacentSuggestions']())_0x27490a['discard']();});});}['enableCommand'](_0x2b46f2,_0x1f59a5){const _0x124a55=this['editor']['commands']['get'](_0x2b46f2);if(!_0x124a55)throw new _0x5e7b1c('track-changes-command-not-found',this,{'commandName':_0x2b46f2});if(this['_enabledCommands']['has'](_0x124a55))throw new _0x5e7b1c('track-changes-enable-command-twice',this,{'commandName':_0x2b46f2});this['_enabledCommands']['add'](_0x124a55),_0x1f59a5&&_0x124a55['on']('execute',(_0x1f28b0,_0x53edad)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x53edad['length']>0x0&&_0x53edad[_0x53edad['length']-0x1]&&_0x53edad[_0x53edad['length']-0x1]['forceDefaultExecution']?_0x53edad['pop']():(_0x1f28b0['return']=_0x1f59a5((..._0x367bdb)=>_0x124a55['execute'](..._0x367bdb,{'forceDefaultExecution':!0x0}),..._0x53edad),_0x1f28b0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xa44aae){let _0x5aa761,_0x3c6207;const _0xcf2db8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5aa761=_0xa44aae();}catch(_0x50df9e){_0x3c6207=_0x50df9e;}return _0xcf2db8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3c6207&&_0x5e7b1c['rethrowUnexpectedError'](_0x3c6207,this),_0x5aa761;}['markInsertion'](_0x3775fe,_0x1a1619=null,_0x572ac6={}){if(_0x3775fe['isCollapsed'])return null;const _0x4a3b66=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5b573b,meta:_0x14f9d8}of this['_findSuggestions'](_0x3775fe,'insertion'))if(_0x14f9d8['isOwn']){if(!_0x14f9d8['isNextTo']){if(_0x14f9d8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x5b573b,_0x572ac6))continue;return _0x5b573b;}if(Qt(_0x5b573b,_0x572ac6))return _0x5b573b;this['_breakSuggestionMarker'](_0x5b573b,_0x3775fe['start'],_0x3775fe['end']);break;}if(_0x1a1619==_0x5b573b['subType']&&Qt(_0x5b573b,_0x572ac6)){const _0x5998b8=_0x5b573b['getFirstRange']();return _0x5998b8['start']['isEqual'](_0x3775fe['end'])?this['_setSuggestionRange'](_0x5b573b,this['_model']['createRange'](_0x3775fe['start'],_0x5998b8['end'])):this['_setSuggestionRange'](_0x5b573b,this['_model']['createRange'](_0x5998b8['start'],_0x3775fe['end'])),_0x5b573b;}}const _0x37a8e8=_0x42a68b(),_0x53b413=_0x4a3b66['id'],_0x12a42b=_0x1a1619?'insertion:'+_0x1a1619:'insertion',_0x3f5a67=this['_setSuggestionData']({'id':_0x37a8e8,'type':_0x12a42b,'createdAt':new Date(),'authorId':_0x53b413,'attributes':_0x572ac6});return this['_addSuggestionMarker'](_0x12a42b,_0x37a8e8,_0x53b413,_0x3775fe),_0x3f5a67;}['markMultiRangeInsertion'](_0x5f3215,_0x563b6f='multi',_0x23a045={}){const _0x3fb258=this['editor']['plugins']['get']('Users')['me'],_0x2091a5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x563b6f,'join');for(const _0x19f6a5 of this['getSuggestions']())if(_0x19f6a5['author']['id']==_0x3fb258['id']&&'insertion'==_0x19f6a5['type']&&_0x19f6a5['subType']==_0x563b6f&&Qt(_0x19f6a5,_0x23a045)&&(_0x2091a5(_0x19f6a5['getRanges'](),_0x5f3215)||_0x2091a5(_0x5f3215,_0x19f6a5['getRanges']()))){for(const _0x4ee23a of _0x5f3215)_0x19f6a5['addRange'](_0x4ee23a);return _0x19f6a5;}for(const {suggestion:_0x7c8697,meta:_0x44d997}of this['_findSuggestions'](_0x5f3215,'insertion')){if(!_0x44d997['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x44d997['containsRangeInObject'])continue;if(!Qt(_0x7c8697,_0x23a045))continue;let _0x3b23fc=!0x0;for(const _0x294174 of _0x7c8697['getRanges']())for(const _0x5c63f6 of _0x5f3215)if(!_0x294174['containsRange'](_0x5c63f6)){_0x3b23fc=!0x1;break;}if(_0x3b23fc)return _0x7c8697;}const _0x258eac=_0x42a68b(),_0x5dab28=_0x3fb258['id'],_0xf8cc91='insertion:'+_0x563b6f,_0x4f4754=this['_setSuggestionData']({'id':_0x258eac,'type':_0xf8cc91,'createdAt':new Date(),'authorId':_0x5dab28,'attributes':_0x23a045});for(const _0x2b1f3e of _0x5f3215)this['_addSuggestionMarker'](_0xf8cc91,_0x258eac,_0x5dab28,_0x2b1f3e,u['getMultiRangeId']());return _0x4f4754;}['markInlineFormat'](_0x3bfb5b,_0x206bdc,_0x25ac7b=null,_0x2ab831={}){if(_0x25ac7b=_0x25ac7b||Jt(_0x206bdc),_0x3bfb5b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5dc45d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x25ac7b,'accept');return this['forceDefaultExecution'](()=>_0x5dc45d([_0x3bfb5b],_0x206bdc,_0x2ab831)),null;}const _0x5ba2cf=this['editor']['plugins']['get']('Users')['me'],_0x180a88=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x283d33,meta:_0x27dad4}of this['_findSuggestions'](_0x3bfb5b,'insertion'))_0x27dad4['isOwn']&&!_0x27dad4['isInsideObject']&&_0x180a88['push'](..._0x283d33['getRanges']());}const _0x406203=function(_0x2df0a1,_0x2c0d32){const _0x2d03bf=[];for(const _0x475296 of _0x2c0d32){const _0x83db9e=_0x2df0a1['getIntersection'](_0x475296);_0x83db9e&&_0x2d03bf['push'](_0x83db9e);}return _0x2d03bf;}(_0x3bfb5b,_0x180a88),_0x8badc2=function(_0x506c98,_0x105dc3){const _0x36b34e=[_0x506c98];for(const _0x31e6c6 of _0x105dc3){let _0x20773a=0x0;for(;_0x20773a<_0x36b34e['length'];){const _0x56141b=_0x36b34e[_0x20773a]['getDifference'](_0x31e6c6);_0x36b34e['splice'](_0x20773a,0x1,..._0x56141b),_0x20773a+=_0x56141b['length'];}}return _0x36b34e;}(_0x3bfb5b,_0x180a88);_0x406203['length']&&this['_model']['change'](()=>{for(const _0x14b056 of _0x406203){const _0x294363=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x25ac7b,'accept');this['forceDefaultExecution'](()=>_0x294363([_0x14b056],_0x206bdc,_0x2ab831));}});for(const _0x86e4c4 of _0x8badc2){let _0x3e270a=null,_0x110b3e=_0x86e4c4['start'],_0x436297=_0x86e4c4['end'];for(const {suggestion:_0x52392d,meta:_0x18a3a6}of this['_findSuggestions'](_0x86e4c4,'formatInline')){if(!_0x18a3a6['isOwn'])continue;if(_0x52392d['subType']!=_0x25ac7b)continue;if(!Qt(_0x52392d,_0x2ab831))continue;const _0x3dbfeb=_0x52392d['getFirstRange']();if(_0x3dbfeb['containsRange'](_0x86e4c4,!0x0))return null;_0x110b3e=_0x110b3e['isBefore'](_0x3dbfeb['start'])?_0x110b3e:_0x3dbfeb['start'],_0x436297=_0x436297['isAfter'](_0x3dbfeb['end'])?_0x436297:_0x3dbfeb['end'],_0x3e270a?_0x3dbfeb['start']['isBefore'](_0x3e270a['getFirstRange']()['start'])?(_0x3e270a['removeMarkers'](),_0x3e270a=_0x52392d):_0x52392d['removeMarkers']():_0x3e270a=_0x52392d;}const _0x4d090a=this['_model']['createRange'](_0x110b3e,_0x436297);if(_0x3e270a)this['_setSuggestionRange'](_0x3e270a,_0x4d090a);else{const _0x2a6715=_0x42a68b(),_0xc82c4c=_0x5ba2cf['id'];this['_setSuggestionData']({'id':_0x2a6715,'type':'formatInline:'+_0x25ac7b,'data':_0x206bdc,'createdAt':new Date(),'authorId':_0xc82c4c,'attributes':_0x2ab831}),this['_addSuggestionMarker']('formatInline:'+_0x25ac7b,_0x2a6715,_0xc82c4c,_0x4d090a);}}return null;}['markBlockFormat'](_0x3476f8,_0x2c616c,_0x5cd466=[],_0x424f2b=null,_0x3bdd67={}){_0x2c616c['formatGroupId']||(_0x2c616c['formatGroupId']=_0x2c616c['commandName']),_0x2c616c['multipleBlocks']=_0x3476f8['is']('range'),_0x424f2b=_0x424f2b||Jt(_0x2c616c);const _0x4d2d7e=_0x5cd466['map'](_0x379cbb=>zt(_0x379cbb,this['_model'])),_0x1e414b=_0x3476f8['is']('range')?_0x3476f8:zt(_0x3476f8,this['_model']);if('never'===this['_trackFormatChanges']){const _0x51b33a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x424f2b,'accept');return this['forceDefaultExecution'](()=>_0x51b33a([_0x1e414b],_0x2c616c,_0x3bdd67)),null;}_0x4d2d7e['push'](_0x1e414b);let _0x1f63c7=!0x0;for(const _0x502d3c of _0x4d2d7e)if(!this['_rangeIsInLocalUserInsertion'](_0x502d3c)){_0x1f63c7=!0x1;break;}if(_0x1f63c7&&'always'!==this['_trackFormatChanges']){const _0x4dfb19=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x424f2b,'accept');return this['forceDefaultExecution'](()=>_0x4dfb19([_0x1e414b],_0x2c616c,_0x3bdd67)),null;}let _0x3c6f55=null,_0x22b374=_0x1e414b['start'],_0x4b089d=_0x1e414b['end'];for(const {suggestion:_0x29edce,meta:_0x3483cb}of this['_findSuggestions'](_0x1e414b,'formatBlock')){if(!_0x3483cb['isOwn'])continue;if(_0x3483cb['isNextTo']||_0x3483cb['containsRangeInObject']||_0x3483cb['isInsideObject'])continue;if(_0x29edce['data']['formatGroupId']!=_0x2c616c['formatGroupId'])continue;if(!Qt(_0x29edce,_0x3bdd67))continue;const _0x4855c4=_0x29edce['getFirstRange']();if(_0x29edce['subType']==_0x424f2b){if(_0x4855c4['containsRange'](_0x1e414b,!0x0))return null;_0x22b374=_0x22b374['isBefore'](_0x4855c4['start'])?_0x22b374:_0x4855c4['start'],_0x4b089d=_0x4b089d['isAfter'](_0x4855c4['end'])?_0x4b089d:_0x4855c4['end'],_0x3c6f55?_0x4855c4['start']['isBefore'](_0x3c6f55['getFirstRange']()['start'])?(_0x3c6f55['removeMarkers'](),_0x3c6f55=_0x29edce):_0x29edce['removeMarkers']():_0x3c6f55=_0x29edce;}else{const _0x278237=_0x1e414b['getIntersection'](_0x4855c4);this['_cutOutSuggestionMarker'](_0x29edce,_0x278237);}}const _0x14a62d=this['editor']['plugins']['get']('Users')['me'],_0x38a7b4=_0x42a68b(),_0x190de5=_0x14a62d['id'];if(_0x3c6f55)return this['_setSuggestionRange'](_0x3c6f55,this['_model']['createRange'](_0x22b374,_0x4b089d)),_0x3c6f55;{const _0x3ed23a=this['_setSuggestionData']({'id':_0x38a7b4,'type':'formatBlock:'+_0x424f2b,'data':_0x2c616c,'createdAt':new Date(),'authorId':_0x190de5,'attributes':_0x3bdd67});return this['_addSuggestionMarker']('formatBlock:'+_0x424f2b,_0x38a7b4,_0x190de5,this['_model']['createRange'](_0x22b374,_0x4b089d)),_0x3ed23a;}}['markMultiRangeBlockFormat'](_0x111b18,_0x3819e4,_0x17f252=[],_0x4384a7=null,_0x1a9888={}){_0x3819e4['formatGroupId']||(_0x3819e4['formatGroupId']=_0x3819e4['commandName']);const _0xd66f03=_0x111b18[0x0];_0x3819e4['multipleBlocks']=_0xd66f03['is']('range'),_0x4384a7=_0x4384a7||Jt(_0x3819e4);const _0x4bcc86=_0x17f252['map'](_0x331b6e=>zt(_0x331b6e,this['_model'])),_0xd74ca0=_0xd66f03['is']('range')?_0x111b18:_0x111b18['map'](_0x1755df=>zt(_0x1755df,this['_model']));if('never'===this['_trackFormatChanges']){const _0x6bed75=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4384a7,'accept');return this['forceDefaultExecution'](()=>_0x6bed75(_0xd74ca0,_0x3819e4,_0x1a9888)),null;}_0x4bcc86['push'](..._0xd74ca0);let _0x50f053=!0x0;for(const _0x1fb036 of _0x4bcc86)if(!this['_rangeIsInLocalUserInsertion'](_0x1fb036)){_0x50f053=!0x1;break;}if(_0x50f053&&'always'!==this['_trackFormatChanges']){const _0x4d6d5d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4384a7,'accept');return this['forceDefaultExecution'](()=>_0x4d6d5d(_0xd74ca0,_0x3819e4,_0x1a9888)),null;}const _0x52c0d0=this['editor']['plugins']['get']('Users')['me'];for(const _0x17a4bb of this['getSuggestions']()){if(_0x17a4bb['author']['id']!=_0x52c0d0['id'])continue;if('formatBlock'!=_0x17a4bb['type']||_0x17a4bb['data']['formatGroupId']!=_0x3819e4['formatGroupId'])continue;if(!Qt(_0x17a4bb,_0x1a9888))continue;const _0x1c89ea=_0x17a4bb['subType']==_0x4384a7;for(let _0x403b5b=0x0;_0x403b5b<_0xd74ca0['length'];_0x403b5b++){const _0x43ac9a=_0xd74ca0[_0x403b5b];for(const _0x10fa99 of _0x17a4bb['getMarkers']()){const _0x51ac53=_0x10fa99['getRange']();if(_0x43ac9a['isEqual'](_0x51ac53)){_0x1c89ea?(_0xd74ca0['splice'](_0x403b5b,0x1),_0x403b5b--):_0x17a4bb['removeMarker'](_0x10fa99['name']);break;}}}}if(0x0==_0xd74ca0['length'])return null;const _0x27d48f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4384a7,'join');for(const _0x46bf86 of this['getSuggestions']())if(_0x46bf86['author']['id']==_0x52c0d0['id']&&'formatBlock'==_0x46bf86['type']&&_0x46bf86['data']['formatGroupId']==_0x3819e4['formatGroupId']&&_0x46bf86['subType']==_0x4384a7&&Qt(_0x46bf86,_0x1a9888)&&(_0x27d48f(_0x46bf86['getRanges'](),_0xd74ca0)||_0x27d48f(_0xd74ca0,_0x46bf86['getRanges']()))){for(const _0x5dda8e of _0xd74ca0)_0x46bf86['addRange'](_0x5dda8e);return _0x46bf86;}const _0x1d6ae4=_0x42a68b(),_0x2eef86=_0x52c0d0['id'],_0x4f4886='formatBlock:'+_0x4384a7,_0x1ba29c=this['_setSuggestionData']({'id':_0x1d6ae4,'type':_0x4f4886,'data':_0x3819e4,'createdAt':new Date(),'authorId':_0x2eef86,'attributes':_0x1a9888});for(const _0x411048 of _0xd74ca0)this['_addSuggestionMarker'](_0x4f4886,_0x1d6ae4,_0x2eef86,_0x411048,u['getMultiRangeId']());return _0x1ba29c;}['markDeletion'](_0xfeccae,_0x47b686=null,_0x52d49e={}){if(_0xfeccae['isCollapsed'])return null;const _0x17f5ec=this['editor']['plugins']['get']('Users')['me'],_0x2a9f0f=new _0x4f6ba5(_0xfeccae['start'],_0xfeccae['end']);for(const {suggestion:_0x47986c,meta:_0x3006a7}of this['_findSuggestions'](_0x2a9f0f,'insertion'))if(_0x3006a7['isOwn']&&!_0x3006a7['isNextTo']){if(_0x47986c['isMultiRange']){const _0x46c798=_0x47986c['getRanges']()['filter'](_0x50b125=>'$graveyard'!=_0x50b125['root']['rootName']);_0x46c798['every'](_0x1ffdea=>_0x2a9f0f['containsRange'](_0x1ffdea,!0x0))&&_0x47986c['discard']();if(_0x46c798['some'](_0x27eef1=>_0x27eef1['containsRange'](_0x2a9f0f,!0x0))){const _0x1cd1c1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x47b686,'accept');return this['forceDefaultExecution'](()=>_0x1cd1c1([_0x2a9f0f],null,_0x52d49e)),null;}}else{const _0x55f204=_0x2a9f0f['getIntersection'](_0x47986c['getFirstRange']());null!==_0x55f204&&_0x47986c['_onDiscard']([_0x55f204],null,_0x52d49e);}}if(_0x2a9f0f['detach'](),_0x2a9f0f['isCollapsed']||'$graveyard'==_0x2a9f0f['root']['rootName'])return null;let _0x24e2d9=null,_0x5c4a9c=_0x2a9f0f['start'],_0x12330a=_0x2a9f0f['end'];const _0xd9d30e=this['_findSuggestions'](_0x2a9f0f,'deletion');for(const {suggestion:_0x1690c1,meta:_0x2a2e1b}of _0xd9d30e){const _0x441a3=this['_model']['createRange'](_0x5c4a9c,_0x12330a);if(_0x2a2e1b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2a2e1b['containsRangeInObject']&&!_0x2a2e1b['isInsideObject'])){if(_0x1690c1['isMultiRange']){if(!Qt(_0x1690c1,_0x52d49e))continue;let _0x15c1ff=!0x0;for(const _0x235bcc of _0x1690c1['getRanges']()){if(_0x235bcc['containsRange'](_0x441a3,!0x0))return _0x1690c1;_0x441a3['containsRange'](_0x235bcc)||(_0x15c1ff=!0x1);}_0x15c1ff&&_0x1690c1['discard']();}else{const _0x899067=_0x1690c1['getFirstRange']();if(_0x899067['containsRange'](_0x441a3,!0x0))return _0x1690c1;if(!Qt(_0x1690c1,_0x52d49e)){_0x441a3['containsRange'](_0x899067)?_0x1690c1['removeMarkers']():_0x899067['containsPosition'](_0x5c4a9c)?_0x5c4a9c=_0x899067['end']:_0x899067['containsPosition'](_0x12330a)&&(_0x12330a=_0x899067['start']);continue;}_0x5c4a9c=_0x5c4a9c['isBefore'](_0x899067['start'])?_0x5c4a9c:_0x899067['start'],_0x12330a=_0x12330a['isAfter'](_0x899067['end'])?_0x12330a:_0x899067['end'],_0x52d49e=Object['assign']({},_0x1690c1['attributes']),_0x24e2d9?_0x899067['start']['isBefore'](_0x24e2d9['getFirstRange']()['start'])?(_0x24e2d9['removeMarkers'](),_0x24e2d9=_0x1690c1):_0x1690c1['removeMarkers']():_0x24e2d9=_0x1690c1;}}}if(_0x24e2d9)return this['_setSuggestionRange'](_0x24e2d9,this['_model']['createRange'](_0x5c4a9c,_0x12330a)),_0x24e2d9;{const _0x1e77c6=_0x42a68b(),_0x5c13f6=this['_model']['createRange'](_0x5c4a9c,_0x12330a),_0x486417=_0x17f5ec['id'],_0x40c15b=_0x47b686?'deletion:'+_0x47b686:'deletion',_0x31faec=this['_setSuggestionData']({'id':_0x1e77c6,'type':_0x40c15b,'createdAt':new Date(),'authorId':_0x486417,'attributes':_0x52d49e});return this['_addSuggestionMarker'](_0x40c15b,_0x1e77c6,_0x486417,_0x5c13f6),_0x31faec;}}['markMultiRangeDeletion'](_0x104ee4,_0x341b14='multi',_0x4de44b={}){const _0x1eae22=this['editor']['plugins']['get']('Users')['me'],_0x17830a=_0x104ee4['map'](_0xdb61d6=>new _0x4f6ba5(_0xdb61d6['start'],_0xdb61d6['end'])),_0x3dd4ea=new Set();for(const {suggestion:_0x4623d3,meta:_0x38db84}of this['_findSuggestions'](_0x17830a,'insertion'))_0x38db84['isOwn']&&!_0x38db84['isNextTo']&&_0x3dd4ea['add'](_0x4623d3);for(const _0x1febed of _0x3dd4ea)if(_0x1febed['isMultiRange']){const _0x46ce00=_0x1febed['getRanges']();(!_0x1febed['attributes']||!_0x1febed['attributes']['skipNestingCheck'])&&(_0x46ce00['every'](_0x4e9ac3=>_0x17830a['some'](_0xdb4978=>_0xdb4978['containsRange'](_0x4e9ac3,!0x0)))&&_0x1febed['discard']());if(_0x17830a['every'](_0x453eb0=>_0x46ce00['some'](_0x775ef7=>_0x775ef7['containsRange'](_0x453eb0,!0x0)))){const _0x3814c2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x341b14,'accept');return this['forceDefaultExecution'](()=>_0x3814c2(_0x104ee4,null,_0x4de44b)),null;}}else{const _0x5b77c5=_0x1febed['getFirstRange']();_0x17830a['some'](_0x16ef4b=>_0x16ef4b['containsRange'](_0x5b77c5,!0x0))&&_0x1febed['discard']();if(_0x17830a['every'](_0x370815=>_0x5b77c5['containsRange'](_0x370815,!0x0))){const _0x5ce820=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x341b14,'accept');return this['forceDefaultExecution'](()=>_0x5ce820(_0x17830a,null,_0x4de44b)),null;}}const _0x2cac0f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x341b14,'join');let _0x14b8cc=null;for(const _0x388c07 of this['getSuggestions']())if(_0x388c07['author']['id']==_0x1eae22['id']&&_0x388c07['isInContent']&&'deletion'==_0x388c07['type']&&_0x388c07['subType']==_0x341b14&&Qt(_0x388c07,_0x4de44b)&&(_0x2cac0f(_0x388c07['getRanges'](),_0x17830a)||_0x2cac0f(_0x17830a,_0x388c07['getRanges']()))){if(_0x14b8cc){if(_0x388c07['commentThread']&&_0x388c07['commentThread']['length'])continue;for(const _0xccd03b of _0x388c07['getRanges']())_0x14b8cc['isIntersectingWithRange'](_0xccd03b)||_0x14b8cc['addRange'](_0xccd03b);_0x388c07['removeMarkers']();}else{_0x14b8cc=_0x388c07;for(const _0x1333ee of _0x17830a)_0x388c07['isIntersectingWithRange'](_0x1333ee)||_0x388c07['addRange'](_0x1333ee);}}if(_0x14b8cc)return _0x14b8cc;_0x3dd4ea['clear']();for(const {suggestion:_0x2ce5dd,meta:_0x4aa852}of this['_findSuggestions'](_0x17830a,'deletion'))_0x4aa852['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4aa852['containsRangeInObject']&&!_0x4aa852['isInsideObject'])&&Qt(_0x2ce5dd,_0x4de44b)&&_0x3dd4ea['add'](_0x2ce5dd);for(const _0x2d23cf of _0x3dd4ea){const _0x2b8406=_0x2d23cf['getRanges']();if(!_0x4de44b||!_0x4de44b['skipNestingCheck']){if(_0x17830a['every'](_0x28b5ac=>_0x2b8406['some'](_0x127c7d=>_0x127c7d['containsRange'](_0x28b5ac,!0x0))))return _0x2d23cf;}(!_0x2d23cf['attributes']||!_0x2d23cf['attributes']['skipNestingCheck'])&&(_0x2b8406['every'](_0x50cf12=>_0x17830a['some'](_0x50492c=>_0x50492c['containsRange'](_0x50cf12,!0x0)))&&_0x2d23cf['discard']());}const _0x3fa1c8=_0x42a68b(),_0x31ecaf=_0x1eae22['id'],_0x3a6e='deletion:'+_0x341b14,_0x559c47=this['_setSuggestionData']({'id':_0x3fa1c8,'type':_0x3a6e,'createdAt':new Date(),'authorId':_0x31ecaf,'attributes':_0x4de44b});for(const _0x36d7d7 of _0x17830a)_0x36d7d7['detach'](),_0x36d7d7['isCollapsed']||'$graveyard'==_0x36d7d7['root']['rootName']||this['_addSuggestionMarker'](_0x3a6e,_0x3fa1c8,_0x31ecaf,_0x36d7d7,u['getMultiRangeId']());return _0x559c47;}['markAttributeChange'](_0x4ee071,_0x4f718f,_0x118611,_0x47d33d,_0x521752){if(_0x4ee071['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x42d7e3=this['editor']['plugins']['get']('Users')['me']['id'],_0x3daa27=Array['from'](this['_suggestions']['values']())['filter'](_0x592b3f=>'attribute'==_0x592b3f['type']&&_0x592b3f['data']['key']==_0x4f718f&&_0x592b3f['isIntersectingWithRange'](_0x4ee071));if('default'===this['_trackFormatChanges']){const _0x2c8e1b=this['_findSuggestions'](_0x4ee071,'insertion')['filter'](({meta:_0x1ec96a})=>_0x1ec96a['isOwn']&&!_0x1ec96a['isInsideObject']&&!_0x1ec96a['isNextTo'])['map'](({suggestion:_0x234c0e})=>_0x234c0e);_0x3daa27['unshift'](..._0x2c8e1b);}const _0x56faf9=new Map([[_0x4ee071,_0x118611]]);for(const _0x2df0dd of _0x3daa27){const _0xd9196b='attribute'==_0x2df0dd['type']?_0x2df0dd['data']['oldValue']:void 0x0,_0x140d2f=_0x2df0dd['getFirstRange'](),_0x509560=Array['from'](_0x56faf9['keys']())['find'](_0x252ec8=>_0x252ec8['isIntersecting'](_0x140d2f));if(!_0x509560)continue;const _0x2cc44b=_0x509560['getDifference'](_0x140d2f);this['_isBlockAttribute'](_0x4f718f)&&'insertion'==_0x2df0dd['type']&&0x0!=_0x2cc44b['length']||(_0x56faf9['delete'](_0x509560),_0x2cc44b['forEach'](_0x11c506=>{_0x56faf9['set'](_0x11c506,_0x118611);}),'insertion'!=_0x2df0dd['type']&&_0xd9196b!=_0x47d33d&&_0x56faf9['set'](_0x509560['getIntersection'](_0x140d2f),_0xd9196b));}const _0x5029a5=[];for(const [_0x177d0e,_0x5de6fb]of _0x56faf9){const _0x37239e=_0x42a68b(),_0x145803={'key':_0x4f718f,'oldValue':_0x5de6fb,'newValue':_0x47d33d};_0x4f718f['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':_0x4f718f});const _0x112330=('attribute:'+(_0x4f718f+'|'+Jt({'newValue':_0x47d33d})))['substring'](0x0,0x3c),_0x4cd698=this['_setSuggestionData']({'id':_0x37239e,'type':_0x112330,'data':_0x145803,'createdAt':new Date(),'authorId':_0x42d7e3,'attributes':_0x521752});_0x5029a5['push'](_0x4cd698),this['_addSuggestionMarker'](_0x112330,_0x37239e,_0x42d7e3,_0x177d0e);}return _0x5029a5;}['enableDefaultAttributesIntegration'](_0x364b1e){this['enableCommand'](_0x364b1e,(_0x3561af,..._0x49f8c9)=>{this['_recordAttributeChanges'](()=>{_0x3561af(..._0x49f8c9);});});}['registerBlockAttribute'](_0xdffa36){this['_blockAttributeKeys']['add'](_0xdffa36);}['registerInlineAttribute'](_0x6df442){this['_inlineAttributeKeys']['add'](_0x6df442);}['_getAttributeKey'](_0x15fe2a){return'attribute'==_0x15fe2a['type']?_0x15fe2a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x12fa98,_0x1de996){const _0x37579d=_0x12fa98['getFirstMarker']();this['_model']['change'](_0x289c90=>{_0x289c90['updateMarker'](_0x37579d,{'range':_0x1de996});});}['_addThreadToSuggestion'](_0x1cb7a6){const _0xa3eb2e=_0x1cb7a6['id'],_0x5f357b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xa3eb2e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5f357b,'threadId':_0xa3eb2e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x431a34=this['_commentsRepository']['getCommentThread'](_0xa3eb2e);_0x431a34['unbind']('isRemovable'),_0x431a34['isRemovable']=!0x1,_0x1cb7a6['commentThread']=_0x431a34;}['_checkSuggestionCorrectness'](_0xc3df10,_0x215fed,_0x466877,_0xb04ba6){if(_0xc3df10['type']!=_0x215fed||_0xc3df10['subType']!=_0x466877||_0xc3df10['creator']['id']!=_0xb04ba6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5e7b1c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x281e3a,_0x108c7f){const _0x3e293f=_0x281e3a['getFirstRange']();if(_0x108c7f['isEqual'](_0x3e293f))_0x281e3a['removeMarkers']();else{if(_0x3e293f['containsRange'](_0x108c7f)){const _0x34224f=this['_model']['createPositionAt'](_0x108c7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x281e3a,this['_model']['createRange'](_0x3e293f['start'],_0x34224f));const _0x439dc2=_0x42a68b(),_0x46fe83=_0x281e3a['creator']['id'],_0x42e14d=_0x281e3a['type']+':'+_0x281e3a['subType'];this['_setSuggestionData']({'id':_0x439dc2,'type':_0x42e14d,'createdAt':new Date(),'authorId':_0x46fe83,'data':_0x281e3a['data'],'attributes':_0x281e3a['attributes']});const _0x3916f3=this['_model']['createPositionAt'](_0x108c7f['end']['parent'],'after'),_0x3054d4=this['_model']['createRange'](_0x3916f3,_0x3e293f['end']);this['_addSuggestionMarker'](_0x42e14d,_0x439dc2,_0x46fe83,_0x3054d4);}else{if(_0x3e293f['containsPosition'](_0x108c7f['start'])){const _0x33527b=this['_model']['createPositionAt'](_0x108c7f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x281e3a,this['_model']['createRange'](_0x3e293f['start'],_0x33527b));}else{const _0x539781=this['_model']['createPositionAt'](_0x108c7f['end']['parent'],'after');this['_setSuggestionRange'](_0x281e3a,this['_model']['createRange'](_0x539781,_0x3e293f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5624f9){for(const {suggestion:_0x292ef2,meta:_0x3293c3}of this['_findSuggestions'](_0x5624f9,'insertion')){if(!_0x3293c3['isOwn'])continue;const _0x55668f=_0x292ef2['getRanges']();for(const _0x58c99b of _0x55668f)if(!_0x5624f9['getDifference'](_0x58c99b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x29142f){const _0x20caf4=this['editor']['plugins']['get']('Users')['getUser'](_0x29142f);if(!_0x20caf4)throw new _0x5e7b1c('track-changes-user-not-found',this);return _0x20caf4;}['_getExternalAuthor'](_0x2ca6d1){const _0x5420d6=this['editor']['plugins']['get']('Users'),_0x478742=_0x3d15d9('external:'+_0x2ca6d1),_0x1e5395=_0x5420d6['getUser'](_0x478742);return _0x1e5395||_0x5420d6['addUser']({'id':_0x478742,'name':_0x2ca6d1});}['_createSuggestion'](_0x31b52a,_0x29fed7,_0x148ae6,_0x300a13,_0x525bc9){const _0x331979=this['_getAuthorFromId'](_0x300a13),_0x1d9c6d=this['_suggestionFactory']['buildSuggestion'](_0x31b52a,_0x29fed7,_0x148ae6,_0x331979,_0x525bc9,_0x23ee03=>{this['_updateSuggestionData'](_0x148ae6,{'attributes':_0x23ee03});const _0x22b8d4=this['getSuggestion'](_0x148ae6);this['_joinWithAdjacentSuggestions'](new Set([_0x22b8d4])),this['_refreshSuggestionsChain'](new Set([_0x22b8d4]));});return this['listenTo'](_0x1d9c6d,'accept',()=>{this['_updateSuggestionData'](_0x148ae6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d9c6d,'discard',()=>{this['_updateSuggestionData'](_0x148ae6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x148ae6,_0x1d9c6d),this['_suggestionState']['set'](_0x1d9c6d,'notReady'),_0x1d9c6d;}['_splitMarkerName'](_0x4318d7){const _0x5e564c=_0x4318d7['split'](':');return{'group':_0x5e564c[0x0],'type':_0x5e564c[0x1],'subType':_0x5e564c['length']>=0x5?_0x5e564c[0x2]:null,'id':_0x5e564c['length']<0x5?_0x5e564c[0x2]:_0x5e564c[0x3],'authorId':_0x5e564c['length']<0x5?_0x5e564c[0x3]:_0x5e564c[0x4],'markerCount':0x6==_0x5e564c['length']?_0x5e564c[0x5]:null};}['_breakSuggestionMarker'](_0x5cca3d,_0x2904c6,_0x14759d){const _0x2b2179=_0x5cca3d['getFirstRange'](),_0x52f691=_0x2b2179['start'],_0x3dbb95=_0x2b2179['end'];this['_setSuggestionRange'](_0x5cca3d,this['_model']['createRange'](_0x52f691,_0x2904c6));const _0x5f5259=_0x42a68b(),_0x2f87aa=_0x5cca3d['creator']['id'],_0x2fd616=_0x5cca3d['type']+(_0x5cca3d['subType']?':'+_0x5cca3d['subType']:'');this['_setSuggestionData']({'id':_0x5f5259,'type':_0x2fd616,'createdAt':new Date(),'authorId':_0x2f87aa,'originalSuggestionId':_0x5cca3d['id'],'attributes':_0x5cca3d['attributes'],'data':_0x5cca3d['data']});const _0x219876=this['_getAttributeKey'](_0x5cca3d);('formatBlock'==_0x5cca3d['type']||_0x219876&&this['_isBlockAttribute'](_0x219876))&&(_0x14759d=this['_model']['createPositionBefore'](_0x14759d['parent'])),this['_addSuggestionMarker'](_0x2fd616,_0x5f5259,_0x2f87aa,this['_model']['createRange'](_0x14759d,_0x3dbb95));}['_findSuggestions'](_0x208173,_0x45c412=null){const _0x2f849a=[],_0x183d04=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x208173)||(_0x208173=[_0x208173]);for(const _0x10a8f5 of this['getSuggestions']()){if(!_0x10a8f5['isInContent'])continue;if(_0x45c412&&_0x10a8f5['type']!=_0x45c412)continue;let _0x5952ce=!0x1;for(const _0x6ad9a2 of _0x10a8f5['getRanges']()){for(const _0x42f81a of _0x208173){const _0x558f21=_0x42f81a['start']['isEqual'](_0x6ad9a2['end'])||_0x42f81a['end']['isEqual'](_0x6ad9a2['start']);if(_0x558f21||_0x42f81a['getIntersection'](_0x6ad9a2)){const _0x5855ac=_0x42f81a['containsRange'](_0x6ad9a2)&&Gt(this['_model']['schema'],_0x6ad9a2['start'],_0x42f81a),_0x39ca6f=_0x6ad9a2['containsRange'](_0x42f81a)&&Gt(this['_model']['schema'],_0x42f81a['start'],_0x6ad9a2);_0x2f849a['push']({'suggestion':_0x10a8f5,'meta':{'isOwn':_0x183d04==_0x10a8f5['author'],'isNextTo':_0x558f21,'isInsideObject':_0x5855ac,'containsRangeInObject':_0x39ca6f}}),_0x5952ce=!0x0;break;}}if(_0x5952ce)break;}}return _0x2f849a;}['_addSuggestionMarker'](_0x460300,_0x4a1a67,_0x19dc15,_0x91109d,_0x297f45){this['_model']['change'](_0x5607fc=>{let _0x104933='suggestion:'+_0x460300+':'+_0x4a1a67+':'+_0x19dc15;_0x297f45&&(_0x104933=_0x104933+':'+_0x297f45),_0x5607fc['addMarker'](_0x104933,{'range':_0x91109d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x54c21b){const _0x340f80=_0x54c21b['previous'],_0x47b136=_0x54c21b['next'];_0x54c21b['previous']=null,_0x54c21b['next']=null,null!=_0x340f80&&_0x340f80['next']==_0x54c21b&&(_0x340f80['next']=_0x47b136),null!=_0x47b136&&_0x47b136['previous']==_0x54c21b&&(_0x47b136['previous']=_0x340f80),'ready'==this['_suggestionState']['get'](_0x54c21b)&&(this['_suggestionState']['set'](_0x54c21b,'removed'),this['fire']('suggestionUnloaded',_0x54c21b,_0x340f80,_0x47b136));}['_setSuggestionData'](_0x171f4c){const _0x9024ac=_0x171f4c['id'],_0x58f0cd=this['addSuggestionData'](_0x171f4c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x26673d=this['editor']['plugins']['get']('PendingActions'),_0x3e0ee5=_0x58f0cd['hasComments'],_0x2820e2=_0x58f0cd['subType']?_0x58f0cd['type']+':'+_0x58f0cd['subType']:_0x58f0cd['type'],_0xe13e1f=this['editor']['locale'],_0x47849e=_0x26673d['add'](o(_0xe13e1f,'PENDING_ACTION_SUGGESTION')),_0x59c5cc={'id':_0x9024ac,'type':_0x2820e2,'hasComments':_0x3e0ee5,'data':_0x171f4c['data']||null,'originalSuggestionId':_0x171f4c['originalSuggestionId']||null,'attributes':_0x58f0cd['attributes']};this['_adapter']['addSuggestion'](_0x59c5cc)['then'](_0x40063a=>{_0x58f0cd['_saved']=!0x0,_0x26673d['remove'](_0x47849e),_0x40063a&&_0x40063a['createdAt']&&(this['_suggestions']['get'](_0x9024ac)['createdAt']=_0x40063a['createdAt']);})['catch'](_0xc5fe88=>{throw _0x43f625('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x58f0cd['discard']();}),_0x58f0cd['stopListening'](),this['_suggestions']['delete'](_0x58f0cd['id']),this['_suggestionState']['delete'](_0x58f0cd),_0xc5fe88;});}return _0x58f0cd;}['_isBlockAttribute'](_0x4576bc){return this['_blockAttributeKeys']['has'](_0x4576bc);}['_updateSuggestionData'](_0x2740bd,_0x347cd4){const _0x2eecad=this['editor']['plugins']['get']('PendingActions'),_0xe41eab=this['getSuggestion'](_0x2740bd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xe41eab['_saved']){const _0x56a3a=_0x2eecad['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2740bd,_0x347cd4)['then'](()=>{_0x2eecad['remove'](_0x56a3a);});}else _0xe41eab['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2740bd,_0x347cd4);});}}['_getSuggestionData'](_0xa859aa){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5e7b1c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xa859aa);}['_handleNewSuggestionMarker'](_0x4660e2){const {id:_0x4dd05e,type:_0x578291,subType:_0x16f7f0,authorId:_0x2956f3}=this['_splitMarkerName'](_0x4660e2),_0x1684be=this['_suggestions']['get'](_0x4dd05e)||this['_createSuggestion'](_0x578291,_0x16f7f0,_0x4dd05e,_0x2956f3,{});switch(this['_checkSuggestionCorrectness'](_0x1684be,_0x578291,_0x16f7f0,_0x2956f3),this['_suggestionState']['get'](_0x1684be)){case'notReady':this['_getSuggestionData'](_0x4dd05e)['then'](_0x56cd2e=>{let _0x137b64=Promise['resolve']();_0x56cd2e['hasComments']&&(_0x137b64=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4dd05e})),_0x137b64['then'](()=>{this['addSuggestionData'](_0x56cd2e)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1684be,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4dd05e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1684be,'ready'),this['fire']('suggestionLoaded',_0x1684be);break;case'ready':this['fire']('suggestionChanged',_0x1684be);}return _0x1684be['addMarkerName'](_0x4660e2),_0x1684be;}['_refreshSuggestionsChain'](_0x3da495){const _0x789dcc=Array['from'](_0x3da495),_0x408e10=_0x789dcc['filter'](_0x447227=>'attribute'==_0x447227['type']);this['_refreshAttributeSuggestionsChain'](_0x408e10);const _0x201f62=_0x789dcc['filter'](_0x42f541=>!_0x42f541['isMultiRange']&&'attribute'!=_0x42f541['type']),_0xb49f2d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a4dc1=>!_0x2a4dc1['isMultiRange']&&'attribute'!=_0x2a4dc1['type']),_0xd53758=_0xb49f2d['filter'](_0x190a32=>!_0x3da495['has'](_0x190a32)),_0x572f1b=new Map(_0xb49f2d['map'](_0x376acc=>[_0x376acc,this['_suggestionFactory']['getSuggestionCallback'](_0x376acc['type'],_0x376acc['subType'],'chain')])),_0x383054=new Map(_0xb49f2d['map'](_0x15e1b1=>[_0x15e1b1,_0x15e1b1['getFirstRange']()])),_0x3fe966=new Set(),_0x2c1886=new Set();for(let _0x1e067c=0x0;_0x1e067c<_0x201f62['length'];_0x1e067c++)_0x1fb4ca(_0x201f62[_0x1e067c],_0x201f62,_0x1e067c+0x1);for(let _0x55e041=0x0;_0x55e041<_0x201f62['length'];_0x55e041++)_0x1fb4ca(_0x201f62[_0x55e041],_0xd53758,0x0);const _0x4c3acb=new Set();for(let _0x31c095=0x0;_0x31c095<_0x201f62['length'];_0x31c095++){const _0x3c0109=_0x201f62[_0x31c095];!_0x2c1886['has'](_0x3c0109)&&_0x3c0109['previous']&&(_0x4c3acb['add'](_0x3c0109['previous']),_0x3c0109['previous']['next']===_0x3c0109&&(_0x3c0109['previous']['next']=null),_0x3c0109['previous']=null),!_0x3fe966['has'](_0x3c0109)&&_0x3c0109['next']&&(_0x4c3acb['add'](_0x3c0109['next']),_0x3c0109['next']['previous']===_0x3c0109&&(_0x3c0109['next']['previous']=null),_0x3c0109['next']=null);}function _0x1fb4ca(_0x257b1c,_0x2d9b61,_0x49279e){for(let _0x47a14d=_0x49279e;_0x47a14d<_0x2d9b61['length'];_0x47a14d++){const _0x3dbaa0=_0x37f0e3(_0x257b1c,_0x2d9b61[_0x47a14d]);_0x3dbaa0&&(_0x3dbaa0[0x0]['next']=_0x3dbaa0[0x1],_0x3dbaa0[0x1]['previous']=_0x3dbaa0[0x0],_0x3fe966['add'](_0x3dbaa0[0x0]),_0x2c1886['add'](_0x3dbaa0[0x1]));}}function _0x37f0e3(_0x10542e,_0x3f7d16){if(_0x10542e['author']['id']!==_0x3f7d16['author']['id'])return null;const _0xba94d9=_0x572f1b['get'](_0x10542e)(_0x10542e,_0x3f7d16,_0x383054['get'](_0x10542e),_0x383054['get'](_0x3f7d16));if(!_0xba94d9)return null;return _0x572f1b['get'](_0x3f7d16)(_0x10542e,_0x3f7d16,_0x383054['get'](_0x10542e),_0x383054['get'](_0x3f7d16))?_0xba94d9[0x1]['commentThread']&&_0xba94d9[0x1]['commentThread']['length']?null:_0xba94d9:null;}_0x4c3acb['size']&&this['_refreshSuggestionsChain'](_0x4c3acb);}['_refreshAttributeSuggestionsChain'](_0x2b4326){if(0x0==_0x2b4326['length'])return;const _0x37b806=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a2227=>'attribute'==_0x5a2227['type']&&_0x5a2227['_isDataLoaded']),_0x4d6d19=[],_0x5227b7=new Map();for(const _0x40c49f of _0x37b806){const _0x31d868=_0x3d15d9(_0x40c49f['attributes']);_0x5227b7['has'](_0x31d868)||(_0x5227b7['set'](_0x31d868,_0x4d6d19['length']),_0x4d6d19['push']([]));const _0x1d0731=_0x5227b7['get'](_0x31d868);_0x4d6d19[_0x1d0731]['push'](_0x40c49f);}!(function(){_0x4d6d19['sort']((_0x3b3161,_0x236d53)=>{const _0x10f645=_0x3b3161[0x0]['createdAt'],_0x6a4de4=_0x236d53[0x0]['createdAt'];return _0x10f645==_0x6a4de4?_0x3b3161[0x0]['attributes']['groupId']<_0x236d53[0x0]['attributes']['groupId']?-0x1:0x1:_0x10f645<_0x6a4de4?-0x1:0x1;});for(const _0x4d33f5 of _0x4d6d19)_0x4d33f5['sort']((_0x555afa,_0xa9906b)=>_0x555afa['id']<_0xa9906b['id']?-0x1:0x1);}());for(let _0x1bc7b3=0x0;_0x1bc7b3<_0x4d6d19['length'];_0x1bc7b3++){if(0x0==_0x4d6d19[_0x1bc7b3]['length'])continue;const _0xf3ff28=[];for(let _0x1f387b=_0x1bc7b3+0x1;_0x1f387b<_0x4d6d19['length'];_0x1f387b++)0x0!=_0x4d6d19[_0x1f387b]['length']&&_0x1aedc5(_0x4d6d19[_0x1bc7b3],_0x4d6d19[_0x1f387b])&&_0xf3ff28['push'](_0x1f387b);for(const _0x565f92 of _0xf3ff28)_0x4d6d19[_0x1bc7b3]=_0x4d6d19[_0x1bc7b3]['concat'](_0x4d6d19[_0x565f92]),_0x4d6d19[_0x565f92]=[];}for(const _0x10acf3 of _0x4d6d19)for(let _0xc08a7a=0x0;_0xc08a7a<_0x10acf3['length'];_0xc08a7a++){const _0x5e72ab=_0x10acf3[_0xc08a7a+0x1]||null;_0x10acf3[_0xc08a7a]['next']!==_0x5e72ab&&(_0x10acf3[_0xc08a7a]['next']=_0x5e72ab);}for(const _0x59c707 of _0x4d6d19)for(let _0x1321aa=0x0;_0x1321aa<_0x59c707['length'];_0x1321aa++){const _0x30bf2a=_0x59c707[_0x1321aa-0x1]||null;_0x59c707[_0x1321aa]['previous']!==_0x30bf2a&&(_0x59c707[_0x1321aa]['previous']=_0x30bf2a);}function _0x1aedc5(_0x593f48,_0x2d18b7){if(_0x593f48[0x0]['attributes']['groupId']!==_0x2d18b7[0x0]['attributes']['groupId']&&_0x593f48[0x0]['author']!==_0x2d18b7[0x0]['author'])return!0x1;if(!function(_0x5f4e62,_0x1285b3){if(!_0x5f4e62['hasComments']&&!_0x1285b3['hasComments'])return!0x0;if(_0x5f4e62['hasComments']&&_0x1285b3['hasComments'])return!0x1;if(_0x5f4e62['hasComments']&&_0x1285b3['createdAt']<_0x5f4e62['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1285b3['hasComments']&&_0x5f4e62['createdAt']<_0x1285b3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x593f48[0x0],_0x2d18b7[0x0]))return!0x1;const _0x5c05e8=Vt(_0x593f48[0x0]['attributes'],'groupId'),_0x58b7d9=Vt(_0x2d18b7[0x0]['attributes'],'groupId');if(!_0x351c09(_0x5c05e8,_0x58b7d9))return!0x1;return!!_0x593f48['every'](_0x4b90c9=>_0x2d18b7['some'](_0x35c975=>_0x4b90c9['getFirstRange']()['isEqual'](_0x35c975['getFirstRange']())))&&_0x2d18b7['every'](_0x4078aa=>_0x593f48['some'](_0x30187b=>_0x4078aa['getFirstRange']()['isEqual'](_0x30187b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xe0169b){const _0x1ca8b3=Array['from'](_0xe0169b),_0x45cb5e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1113a3=_0x45cb5e['filter'](_0x3ca4b8=>!_0xe0169b['has'](_0x3ca4b8)),_0x1879ac=new Map(_0x1ca8b3['map'](_0x407463=>[_0x407463,this['_suggestionFactory']['getSuggestionCallback'](_0x407463['type'],_0x407463['subType'],'join')])),_0x5c3b0f=new Map(_0x45cb5e['map'](_0x573cec=>[_0x573cec,_0x573cec['getRanges']()]));for(let _0x5ba05f=0x0;_0x5ba05f<_0x1ca8b3['length'];_0x5ba05f++){if(_0x3b651d(this,_0x1ca8b3[_0x5ba05f],_0x1ca8b3,_0x5ba05f+0x1))return!0x0;}for(let _0x518778=0x0;_0x518778<_0x1ca8b3['length'];_0x518778++){if(_0x3b651d(this,_0x1ca8b3[_0x518778],_0x1113a3,0x0))return!0x0;}return!0x1;function _0x3b651d(_0x5c3682,_0x39c0b8,_0x13ec1e,_0x126877){for(let _0x21fb74=_0x126877;_0x21fb74<_0x13ec1e['length'];_0x21fb74++){const _0x413c1c=_0x13ec1e[_0x21fb74];if(_0x413c1c['type']!==_0x39c0b8['type']||_0x413c1c['author']['id']!==_0x39c0b8['author']['id']||_0x413c1c['subType']!==_0x39c0b8['subType'])continue;if(!Wt(_0x39c0b8,_0x413c1c))continue;if('attribute'==_0x39c0b8['type']&&_0x39c0b8['data']['oldValue']!=_0x413c1c['data']['oldValue'])continue;if('attribute'==_0x39c0b8['type']&&_0x5c3682['_isBlockAttribute'](_0x39c0b8['data']['key']))continue;if('formatBlock'==_0x39c0b8['type']){const _0x29b76b=_0x5c3682['editor']['model'],_0x36ece1=_0x39c0b8['getContainedElement']();if(_0x36ece1&&(_0x29b76b['schema']['isObject'](_0x36ece1)||_0x29b76b['schema']['isLimit'](_0x36ece1)))continue;}const _0x1ea8cb=_0x1879ac['get'](_0x39c0b8),_0x4b3ad2=_0x5c3b0f['get'](_0x39c0b8),_0x884944=_0x5c3b0f['get'](_0x413c1c),_0x49ed96=_0x39c0b8['commentThread']&&_0x39c0b8['commentThread']['length'],_0x2401fb=_0x413c1c['commentThread']&&_0x413c1c['commentThread']['length'];if(!_0x49ed96&&_0x1ea8cb(_0x884944,_0x4b3ad2))return _0x5c3682['_joinSuggestions'](_0x413c1c,_0x39c0b8),_0x5c3b0f['delete'](_0x39c0b8),!0x0;if(!_0x2401fb&&_0x1ea8cb(_0x4b3ad2,_0x884944))return _0x5c3682['_joinSuggestions'](_0x39c0b8,_0x413c1c),_0x5c3b0f['delete'](_0x413c1c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5f02bc,_0x42730f){if(_0x5f02bc['isMultiRange']){for(const _0x1a0196 of _0x42730f['getRanges']())_0x5f02bc['addRange'](_0x1a0196);}else{const _0x46f3a2=_0x42730f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5f02bc,this['_model']['createRange'](_0x5f02bc['getFirstRange']()['start'],_0x46f3a2));}_0x42730f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x496ee5,_0x2efb30,_0xa6c14b){const _0x5622ff=_0x496ee5['startsWith']('format')||_0x496ee5['startsWith']('attribute')?'FORMATTING':_0x496ee5['toUpperCase']();return o(this['editor']['locale'],_0x2efb30+'_'+_0x5622ff+'_SUGGESTION_ANNOUNCEMENT',_0xa6c14b);}['_initAriaMarkerChangeAnnouncements'](){const _0x15e743=this['editor'];if(!_0x15e743['ui'])return;const {ariaLiveAnnouncer:_0x25f7d4}=_0x15e743['ui'];_0x29ed23(this['_model'],({left:_0x1be3b7,entered:_0x372643})=>{for(const _0x5cc32c of _0x1be3b7){const {group:_0x33f95d,type:_0x3fc588}=this['_splitMarkerName'](_0x5cc32c['name']);if('suggestion'===_0x33f95d){_0x25f7d4['announce'](this['_getMarkerAnnouncementText'](_0x3fc588,'LEAVE'));break;}}for(const _0x306a27 of _0x372643){const {group:_0x1d08b7,type:_0x5b4fae}=this['_splitMarkerName'](_0x306a27['name']);if('suggestion'===_0x1d08b7){_0x25f7d4['announce'](this['_getMarkerAnnouncementText'](_0x5b4fae,'ENTER',_0x18904c(_0x4d04d6)));break;}}});}['_processAttributeChanges'](_0x487310){if(this['_recordAttributeSuggestions'])return!0x1;const _0x322279=this['editor'],_0x2aac3e=_0x322279['model']['document']['differ']['getChanges']();if(0x0==_0x2aac3e['length'])return!0x1;const _0x7e92c9=[],_0x29fcb8=_0x2aac3e['filter'](_0x5efffc=>'attribute'==_0x5efffc['type']),_0x1328ad=_0x2aac3e['filter'](_0x11daa1=>'insert'==_0x11daa1['type']&&'$text'!=_0x11daa1['name']),_0x3ada49=_0x2aac3e['filter'](_0x481cb4=>'remove'==_0x481cb4['type']&&'$text'!=_0x481cb4['name']);for(const _0xdcf1a of _0x29fcb8)_0x7e92c9['push']({'key':_0xdcf1a['attributeKey'],'newValue':_0xdcf1a['attributeNewValue'],'oldValue':_0xdcf1a['attributeOldValue'],'range':qt(_0xdcf1a['range'],_0x322279['model'])});for(const _0x123b62 of _0x1328ad){const _0x51ac26=_0x3ada49['find'](_0x89a235=>_0x89a235['position']['isEqual'](_0x123b62['position']));_0x51ac26&&_0x7e92c9['push']({'key':m,'newValue':_0x123b62['name'],'oldValue':_0x51ac26['name'],'range':_0x322279['model']['createRangeOn'](_0x123b62['position']['nodeAfter'])});}return 0x0!=_0x7e92c9['length']&&this['_reduceExistingSuggestions'](_0x487310,_0x7e92c9);}['_processAttributeSuggestions'](_0x200212){let _0xac0c65=!0x1;const _0x274f67=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2d73bb=>_0x2d73bb['data']['newRange']&&_0x2d73bb['name']['startsWith']('suggestion:attribute:'));for(const _0x217633 of _0x274f67){const {subType:_0x4921f0,id:_0x411a10}=this['_splitMarkerName'](_0x217633['name']),_0x45c7f0=_0x4921f0['split']('|')[0x0];for(const _0x52d200 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x52d200['id']!=_0x411a10&&'attribute'==_0x52d200['type']&&_0x52d200['data']&&_0x52d200['data']['key']==_0x45c7f0&&_0x52d200['getFirstRange']()['isIntersecting'](_0x217633['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x52d200,_0x217633['data']['newRange'],_0x200212),_0xac0c65=!0x0);}return _0xac0c65;}['_recordAttributeChanges'](_0x246286){this['_recordAttributeSuggestions']=!0x0,_0x246286();}['_isRegisteredAttribute'](_0x4f50b1){const _0x4384db=this['_isBlockAttribute'](_0x4f50b1),_0x27cb41=this['_inlineAttributeKeys']['has'](_0x4f50b1);return _0x4384db||_0x27cb41;}['_reduceExistingSuggestions'](_0x16802a,_0x267b25){if(0x0==_0x267b25['length'])return!0x1;let _0x3a041d=!0x1;for(const _0x3033b0 of _0x267b25){const _0x26b6fe=this['_findSuggestions'](_0x3033b0['range'],'attribute')['filter'](_0x5c6cca=>!_0x5c6cca['meta']['isNextTo'])['map'](_0x3610d6=>_0x3610d6['suggestion']),_0x1c5910=_0x3d15d9({'newValue':_0x3033b0['newValue']});_0x26b6fe['filter'](_0x14b937=>{const [_0x2af78b,_0x46e9e7]=_0x14b937['subType']['split']('|');return _0x2af78b==_0x3033b0['key']&&_0x46e9e7!=_0x1c5910;})['forEach'](_0x563304=>{this['_reduceSuggestionAttributeRange'](_0x563304,_0x3033b0['range'],_0x16802a),_0x3a041d=!0x0;});}return _0x3a041d;}['_reduceSuggestionAttributeRange'](_0x4c946b,_0x21bde6,_0x3cd13f){const _0x4b0bb3=_0x4c946b['getFirstRange']()['getDifference'](_0x21bde6);0x0!==_0x4b0bb3['length']?0x1!==_0x4b0bb3['length']?this['_breakSuggestionMarker'](_0x4c946b,_0x21bde6['start'],_0x21bde6['end']):this['_setSuggestionRange'](_0x4c946b,_0x4b0bb3[0x0]):_0x3cd13f['removeMarker'](_0x4c946b['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x268896){this['_editor']=_0x268896,this['_model']=_0x268896['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x369bd4,_0xabbaeb,_0x143cc6,_0x3c571b,_0x5a8d57,_0x56108e){return new u(this['_model'],{'type':_0x369bd4,'subType':_0xabbaeb,'id':_0x143cc6,'author':_0x3c571b,'creator':_0x3c571b,'attributes':_0x5a8d57,'onAttributesChange':_0x56108e,'onAccept':(..._0x34e17a)=>this['getSuggestionCallback'](_0x369bd4,_0xabbaeb,'accept')(..._0x34e17a),'onDiscard':(..._0x2abd36)=>this['getSuggestionCallback'](_0x369bd4,_0xabbaeb,'discard')(..._0x2abd36)});}['registerCustomCallback'](_0x481be1,_0x49a667,_0xdb7387,_0xf44f12){const _0x38213f=_0x481be1+':'+_0x49a667+':'+_0xdb7387;this['_customCallbacks']['set'](_0x38213f,_0xf44f12);}['getSuggestionCallback'](_0xf6ba94,_0x1ed548,_0x3bb4b7){const _0x190dac=_0xf6ba94+':'+_0x1ed548+':'+_0x3bb4b7;return this['_customCallbacks']['get'](_0x190dac)||this['_defaultCallbacks']['get'](_0xf6ba94+':'+_0x3bb4b7);}['_registerDefaultCallbacks'](){const _0x4b0f12=()=>!0x1,_0x4075be=_0x5089bf=>{_0x5089bf['sort']((_0x26016b,_0x61f226)=>_0x26016b['start']['isBefore'](_0x61f226['start'])?0x1:-0x1),this['_model']['change'](_0xa8881f=>{for(const _0x206b89 of _0x5089bf){let _0x1deb62;_0x1deb62=_0x206b89['end']['isAtEnd']&&_0x206b89['end']['parent']==_0x206b89['start']['nodeAfter']?_0xa8881f['createSelection'](_0x206b89['start']['nodeAfter'],'on'):_0xa8881f['createSelection'](_0x206b89),this['_model']['deleteContent'](_0x1deb62,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5e8265=(_0x276ba,_0x4402f4)=>{_0x4402f4&&this['_model']['change'](_0xac56eb=>{const {commandName:_0x199c09,commandParams:_0x35c85e=[]}=_0x4402f4,_0x2ae36b=_0x276ba['map'](_0x4eea91=>(Ft(_0x4eea91)&&(_0x4eea91=this['_model']['createRange'](_0x4eea91['end'])),_0x4eea91))['filter'](_0x41f33d=>'$graveyard'!==_0x41f33d['root']['rootName']);if(_0x2ae36b['length']<0x1)return;const _0x5b0e49=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x165b9d=>_0x4f6ba5['fromRange'](_0x165b9d));_0xac56eb['setSelection'](_0x2ae36b);for(const _0x5c3d44 of this['_editor']['commands']['commands']())_0x5c3d44['refresh']();_0x35c85e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x199c09,..._0x35c85e);const _0x4e3d7c=_0x5b0e49['filter'](_0x4a0aa1=>'$graveyard'!=_0x4a0aa1['root']['rootName']);_0x4e3d7c['length']>0x0&&_0xac56eb['setSelection'](_0x4e3d7c);for(const _0x42efe0 of _0x5b0e49)_0x42efe0['detach']();});},_0x118a7e=(_0x2283ed,_0x35b6a5)=>0x1==_0x2283ed['length']&&0x1==_0x35b6a5['length']&&_0x2283ed[0x0]['end']['isEqual'](_0x35b6a5[0x0]['start']),_0x12cba3=(_0x1361c8,_0x52f929,_0x4232f3,_0x5ae0b1)=>Kt(_0x1361c8,_0x52f929,_0x4232f3,_0x5ae0b1)?[_0x1361c8,_0x52f929]:Kt(_0x52f929,_0x1361c8,_0x5ae0b1,_0x4232f3)?[_0x52f929,_0x1361c8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4b0f12),this['_defaultCallbacks']['set']('insertion:discard',_0x4075be),this['_defaultCallbacks']['set']('insertion:join',_0x118a7e),this['_defaultCallbacks']['set']('insertion:chain',_0x12cba3),this['_defaultCallbacks']['set']('deletion:accept',_0x4075be),this['_defaultCallbacks']['set']('deletion:discard',_0x4b0f12),this['_defaultCallbacks']['set']('deletion:join',_0x118a7e),this['_defaultCallbacks']['set']('deletion:chain',_0x12cba3),this['_defaultCallbacks']['set']('formatInline:accept',_0x5e8265),this['_defaultCallbacks']['set']('formatInline:discard',_0x4b0f12),this['_defaultCallbacks']['set']('formatInline:join',_0x118a7e),this['_defaultCallbacks']['set']('formatInline:chain',_0x4b0f12),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5e8265),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4b0f12),this['_defaultCallbacks']['set']('formatBlock:join',_0x118a7e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4b0f12),this['_defaultCallbacks']['set']('attribute:accept',_0x4b0f12),this['_defaultCallbacks']['set']('attribute:discard',(_0x3ba8a2,_0x54bf6a)=>{if(!_0x54bf6a)return;const _0x5c9ad5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x51280c=>{if(_0x54bf6a['key']==m)for(const _0x3de250 of _0x3ba8a2){const _0x5d43f7=_0x3de250['start']['nodeAfter'],_0x335376=_0x54bf6a['oldValue'];_0x51280c['rename'](_0x5d43f7,_0x335376);}else{if(_0x5c9ad5['_isBlockAttribute'](_0x54bf6a['key'])){for(const _0x225b9e of _0x3ba8a2)void 0x0!==_0x54bf6a['oldValue']?_0x51280c['setAttribute'](_0x54bf6a['key'],_0x54bf6a['oldValue'],_0x225b9e['start']['nodeAfter']):_0x51280c['removeAttribute'](_0x54bf6a['key'],_0x225b9e['start']['nodeAfter']);}else{for(const _0x278f37 of _0x3ba8a2)_0x54bf6a['oldValue']?_0x51280c['setAttribute'](_0x54bf6a['key'],_0x54bf6a['oldValue'],_0x278f37):_0x51280c['removeAttribute'](_0x54bf6a['key'],_0x278f37);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x118a7e);}}function Gt(_0x45c00a,_0x14f8aa,_0x5caf75){for(const _0x2ff056 of _0x14f8aa['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2ff056['root']==_0x2ff056)return!0x1;if(!_0x5caf75['containsItem'](_0x2ff056))return!0x1;if(_0x45c00a['isObject'](_0x2ff056)||_0x45c00a['isLimit'](_0x2ff056))return!0x0;}return!0x1;}function Ft(_0xdbb3e9){return _0xdbb3e9['end']['parent']==_0xdbb3e9['start']['nodeAfter']&&_0xdbb3e9['end']['isAtStart'];}function Lt(_0x37fe7c,_0x5e9c08,_0x11fe4e,_0x28308e){const _0x2d729e=_0x4b15c9=>!_0x4b15c9['item']['is']('$textProxy')&&!_0x28308e['isObject'](_0x4b15c9['item']),_0x5f0507=_0x37fe7c['start']['getLastMatchingPosition'](_0x2d729e),_0x511a50=_0x37fe7c['end']['getLastMatchingPosition'](_0x2d729e,{'direction':'backward'});return(!_0x37fe7c['start']['isEqual'](_0x5f0507)||!_0x37fe7c['end']['isEqual'](_0x511a50))&&(_0x5f0507['isBefore'](_0x511a50)?_0x11fe4e['updateMarker'](_0x5e9c08,{'range':_0x11fe4e['createRange'](_0x5f0507,_0x511a50)}):_0x11fe4e['removeMarker'](_0x5e9c08),!0x0);}function Jt(_0x26e0fa){return _0x3d15d9(_0x26e0fa);}function Ht(_0x1f66fa){const _0x891812=_0x1f66fa['start']['nodeAfter'];return _0x891812&&_0x891812['is']('element');}function qt(_0x1b5b48,_0x5bb826){return null==_0x1b5b48['end']['nodeBefore']&&_0x1b5b48['end']['parent']==_0x1b5b48['start']['nodeAfter']?zt(_0x1b5b48['start']['nodeAfter'],_0x5bb826):_0x1b5b48;}function zt(_0x4c223d,_0x3660d9){const _0x444727=_0x3660d9['schema']['isObject'](_0x4c223d)||_0x3660d9['schema']['isSelectable'](_0x4c223d);return _0x3660d9['createRange'](_0x3660d9['createPositionAt'](_0x4c223d,'before'),_0x444727?_0x3660d9['createPositionAfter'](_0x4c223d):_0x3660d9['createPositionAt'](_0x4c223d,'end'));}function Kt(_0x3f5dd0,_0x41dc20,_0x3756cf,_0x475587){return!!Wt(_0x3f5dd0,_0x41dc20)&&_0x3756cf['end']['isEqual'](_0x475587['start']);}function Wt(_0xc13c55,_0xae5d2f){if(!_0xc13c55['_isDataLoaded']||!_0xae5d2f['_isDataLoaded'])return!0x1;const _0x160c94=new Set(Object['keys'](_0xc13c55['attributes'])),_0xd593ef=new Set(Object['keys'](_0xae5d2f['attributes']));if(_0x160c94['delete']('groupId'),_0xd593ef['delete']('groupId'),0x0==_0x160c94['size']&&0x0==_0xd593ef['size'])return!0x0;if(_0x160c94['size']!=_0xd593ef['size'])return!0x1;const _0x4baf05={..._0xc13c55['attributes']},_0x4f5431={..._0xae5d2f['attributes']};return delete _0x4baf05['groupId'],delete _0x4f5431['groupId'],JSON['stringify'](_0x4baf05)==JSON['stringify'](_0x4f5431);}function Qt(_0x53bcc8,_0x131161){const _0x3ae443=Xt(_0x53bcc8['attributes']),_0x3ea79c=Xt(_0x131161);if(!_0x53bcc8['_isDataLoaded'])return!0x1;for(const _0x51b266 of Object['keys'](_0x3ea79c))if(!_0x351c09(_0x3ae443[_0x51b266],_0x3ea79c[_0x51b266]))return!0x1;return!0x0;}function Xt(_0x500f39){const _0x5c3776=Object['assign']({},_0x500f39);return delete _0x5c3776['skipNestingCheck'],delete _0x5c3776['tablePasteChainId'],_0x5c3776;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x5dafa9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x586716,_0x57e38b,_0x3816f5,_0x6e5c52){super(),this['model']=_0x57e38b,this['view']=_0x3816f5,this['commentThreadController']=_0x6e5c52,this['_editor']=_0x586716,this['_acceptCommand']=_0x586716['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x586716['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x36694f,_0x16c0c6)=>_0x36694f||_0x16c0c6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x109a5c=>_0x109a5c&&this['_editor']['model']['canEditAt'](_0x57e38b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x395c14=>_0x395c14&&this['_editor']['model']['canEditAt'](_0x57e38b['getRanges']())),this['_pendingAction']=null,_0x3816f5['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3816f5,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3816f5,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3816f5,'change:isDirty',()=>{_0x3816f5['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 _0x9777d8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x9777d8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x438d77{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3cadf4,_0x329c0b,_0xcd5a37,_0x495c0e){super(_0x3cadf4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x47fc0e(_0x3cadf4,o(_0x3cadf4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x329c0b['authoredAt']),this['bind']('authoredAt')['to'](_0x329c0b),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',_0x329c0b,'authoredAt',this,'descriptionParts',(_0x4e4be7,_0x94b24a,_0x4d1e13)=>{const _0x5b2047=_0x4d1e13['map'](_0x3d5f74=>cs(_0x3d5f74['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4e4be7-0x1,_0x329c0b['author']['name'],_0x94b24a?_0x495c0e['formatDateTime'](_0x94b24a):'',new DOMParser()['parseFromString'](_0x5b2047,'text/html')['body']['textContent']]);}),this['focusables']=new _0x310ce4(),this['focusTracker']=new _0x389f82(),this['keystrokes']=new _0x42d792(),this['focusCycler']=new _0x1038ae({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3fd02b=>_0x3fd02b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x329c0b,this['_localUser']=_0xcd5a37,this['_config']=_0x495c0e,_0x495c0e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4eeeba(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5898e3}=this['_config'];this['commentsListView']=new _0x5898e3(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',_0x40f8c7=>_0x40f8c7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2c7e53,_0xe269f6)=>_0x2c7e53||!!_0xe269f6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2e3839}=this['_config'],_0x1b795a=new _0x2e3839(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x34a0d8=_0x1b795a['commentInputView'];return _0x1b795a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x34a0d8,'value',(_0x3ec9a6,_0x2f63e2,_0x4a8aed)=>!!_0x4a8aed||_0x3ec9a6&&!_0x2f63e2),_0x34a0d8['on']('submit',(_0x2502b1,_0x3b53d9)=>{this['fire']('addComment',_0x3b53d9),_0x34a0d8['editor']['setData']('');}),_0x34a0d8['on']('cancel',()=>this['focus']()),_0x34a0d8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1b795a;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x226aa4,_0x38242c,_0x1e237d,_0x40c169){super(_0x226aa4,_0x38242c,_0x1e237d,_0x40c169),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x22e899=>_0x22e899&&_0x22e899[0x0]?_0x22e899[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x277b4d,_0x5b474e)=>{let _0x451549='';for(const _0x34f643 of _0x277b4d)_0x451549+='<p>'+cs(_0x34f643['content'],_0x34f643['color'])+'</p>';return _0x5b474e?_0x451549:_0x4a0fbd(_0x451549,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x40c169['SuggestionView'](_0x226aa4,_0x38242c,{'formatDateTime':_0x40c169['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 _0x4f5b6c=this['bindTemplate'],_0x49e1d6=[this['suggestionView']];return this['commentsListView']&&_0x49e1d6['push'](this['commentsListView']),this['commentThreadInputView']&&_0x49e1d6['push'](this['commentThreadInputView']),_0x49e1d6['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4f5b6c['if']('isActive','ck-suggestion-wrapper--active'),_0x4f5b6c['to']('type',_0x100c71=>'ck-suggestion-'+_0x100c71),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':_0x4f5b6c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x49e1d6};}['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 _0x438d77{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2a6ec3,_0x1a2e91,_0x19c67b){super(_0x2a6ec3),this['_model']=_0x1a2e91,this['_config']=_0x19c67b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1a2e91),this['acceptButton']=this['_createButton'](o(_0x2a6ec3,'Accept\x20suggestion'),_0x3be9a2['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2a6ec3,'Discard\x20suggestion'),_0x3be9a2['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5bda4a(_0x2a6ec3,_0x1a2e91['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x310ce4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x389f82(),this['keystrokes']=new _0x42d792(),this['focusCycler']=new _0x1038ae({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x336c14=>_0x336c14['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x454982=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x454982['innerHTML']=this['description'],this['on']('change:description',(_0x2ee7ca,_0x29c3c7,_0x125f63)=>{_0x454982['innerHTML']=_0x125f63;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1d513f=this['bindTemplate'],_0x9f2c94=[{'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':_0x1d513f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1d513f['to']('authoredAt',_0x3bf93b=>this['_config']['formatDateTime'](_0x3bf93b))}]}]},{'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']&&_0x9f2c94['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':_0x9f2c94}]};}['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'](_0xf4bf28,_0x381d9e,_0x2db8e0,_0x41746d,_0x4303cd){const _0x1e1d8e=new _0x5e49fa(this['locale']);return _0x1e1d8e['set']({'label':_0xf4bf28,'icon':_0x381d9e,'tooltip':!0x0,'tooltipPosition':_0x4303cd}),_0x1e1d8e['extendTemplate']({'attributes':{'class':_0x2db8e0}}),_0x1e1d8e['on']('execute',()=>{this['fire'](_0x41746d,this['_model']['id']);}),_0x1e1d8e;}['_setupKeyboardNavigation'](){const _0x23887e=this['element'];this['keystrokes']['listenTo'](_0x23887e);for(const _0x5943ff of this['focusables'])this['focusTracker']['add'](_0x5943ff['element']),this['keystrokes']['listenTo'](_0x5943ff['element']);this['keystrokes']['set']('enter',(_0x43b6bb,_0x532633)=>{_0x23887e===_0x43b6bb['target']&&(this['focusCycler']['focusFirst'](),_0x532633());}),this['keystrokes']['set']('esc',(_0x85cb7b,_0x3ccc02)=>{_0x23887e!==_0x85cb7b['target']&&(this['focus'](),_0x3ccc02());});}}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 _0x3b6a96{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x58d047,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x234aea){super(_0x234aea),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1cf222=this['editor']['config'];_0x1cf222['define']('trackChanges.SuggestionThreadView',pe),_0x1cf222['define']('trackChanges.SuggestionView',fe),_0x1cf222['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1cf222['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2d161f,_0x357146){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5ec335,_0x48d803]of this['_handleControllerBuffer']){const _0xa99de3=this['_suggestionToController']['has'](_0x5ec335);_0xa99de3||_0x48d803?_0xa99de3&&_0x48d803&&this['_destroyController'](_0x5ec335):this['_initializeController'](_0x5ec335);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2d161f,_0x357146);}['init'](){const _0x12f8ee=this['editor'],_0x10d880=_0x12f8ee['plugins']['get']('TrackChangesEditing'),_0x4c641c=_0x12f8ee['plugins']['get']('Annotations'),_0x325417=_0x12f8ee['plugins']['get']('EditorAnnotations'),_0x375e50=_0x12f8ee['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x325417['addSourceCollector'](()=>{const _0x32399c=[];for(const [_0x43255b,_0x2640d7]of Array['from'](this['_suggestionToController'])){const _0x108d5e=_0x43255b['getAllAdjacentSuggestions'](),_0x26c35f=[];for(const _0x1f0a8b of _0x108d5e){if(!_0x1f0a8b['isInContent'])continue;if(_0x1f0a8b['isMultiRange']){_0x26c35f['push'](..._0x1f0a8b['getRanges']());continue;}const _0x3e3e17=_0x1f0a8b['getFirstRange']();if(_0x26c35f['length']>0x0){const _0x3d8f75=_0x26c35f[0x0]['getJoined'](_0x3e3e17);if(_0x3d8f75){_0x26c35f[0x0]=_0x3d8f75;continue;}}_0x26c35f['push'](_0x3e3e17);}_0x32399c['push']([_0x2640d7['view'],_0x26c35f]);}return _0x32399c;}),this['listenTo'](_0x10d880,'suggestionLoaded',(_0x40edad,_0x393dbb)=>{this['listenTo'](_0x393dbb,'change:previous',(_0x5376c3,_0x15cd11,_0x67d7d5,_0x37c297)=>{_0x393dbb['isInContent']&&(null==_0x67d7d5?(this['_updateController'](_0x37c297['head']),this['_handleSuggestionControllerDelayed'](_0x393dbb,!0x1)):(this['_updateController'](_0x67d7d5['head']),null==_0x37c297&&this['_handleSuggestionControllerDelayed'](_0x393dbb,!0x0)));}),null!==_0x393dbb['previous']?this['_updateController'](_0x393dbb['head']):this['_handleSuggestionControllerDelayed'](_0x393dbb,!0x1);}),this['listenTo'](_0x10d880,'suggestionUnloaded',(_0x3dc169,_0x5bbf82,_0x4da58e)=>{this['stopListening'](_0x5bbf82,'change:previous'),this['_handleControllerBuffer']['delete'](_0x5bbf82),this['_suggestionToController']['has'](_0x5bbf82)&&this['_destroyController'](_0x5bbf82),_0x4da58e&&this['_updateController'](_0x4da58e['head']);}),this['listenTo'](_0x10d880,'suggestionChanged',(_0x16ced5,_0x1ee5c5)=>{this['_updateController'](_0x1ee5c5);}),this['listenTo'](_0x4c641c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x375e50,'addComment',(_0x446f44,{threadId:_0x94a6a,isFromAdapter:_0x12ea65})=>{if(_0x12ea65||!_0x10d880['hasSuggestion'](_0x94a6a))return;const _0x31dfad=_0x10d880['getSuggestion'](_0x94a6a);this['_suggestionToController']['get'](_0x31dfad)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3de82a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4ac630;for(const _0x41ac9a in _0x3de82a){const _0x12f628=_0x41ac9a,_0x106f9a=_0x3de82a[_0x12f628];if('trackChangesLicenseKeyValid'==_0x106f9a||'trackChangesLicenseKeyInvalid'==_0x106f9a||'trackChangesLicenseKeyExpired'==_0x106f9a||'trackChangesLicenseKeyDomainLimit'==_0x106f9a||'trackChangesLicenseKeyNotAllowed'==_0x106f9a||'trackChangesLicenseKeyEvaluationLimit'==_0x106f9a||'trackChangesLicenseKeyTrialLimit'==_0x106f9a||'trackChangesLicenseKeyUsageLimit'==_0x106f9a){delete _0x3de82a[_0x12f628],_0x4ac630=_0x106f9a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4ac630&&_0x3de82a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4ac630&&_0x3de82a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4ac630&&_0x3de82a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4ac630&&_0x3de82a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4ac630&&_0x3de82a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4ac630&&_0x3de82a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4ac630&&_0x3de82a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xd13730=this['editor']['plugins']['get']('Annotations'),_0x12fcd9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb52b45=Array['from'](_0xd13730['activeAnnotations'],_0x131f81=>_0x131f81['innerView'])['filter'](_0x14fc89=>this['_viewToController']['has'](_0x14fc89)),_0x1ee084=[];for(const _0x128593 of _0xb52b45){const _0x305687=this['_viewToController']['get'](_0x128593)['model']['getAllAdjacentSuggestions']();_0x1ee084['push'](..._0x305687['reduce']((_0x16879d,_0x579cba)=>[..._0x16879d,..._0x579cba['getMarkerNames']()],[]));}_0x12fcd9['activeMarkers']=_0x1ee084;}['_addUIComponentsToFactory'](){const _0x4fb79a=this['editor'],_0x3d2ad7=_0x4fb79a['locale'],_0x542d03=o(_0x3d2ad7,'Track\x20changes'),_0x17827f=new _0x38066d([{'type':'switchbutton','model':new _0x13b983({'withText':!0x0,'isToggleable':!0x0,'label':_0x542d03,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x13b983({'withText':!0x0,'label':o(_0x3d2ad7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13b983({'withText':!0x0,'label':o(_0x3d2ad7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13b983({'withText':!0x0,'label':o(_0x3d2ad7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13b983({'withText':!0x0,'label':o(_0x3d2ad7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4fb79a['plugins']['has']('TrackChangesPreview')&&_0x17827f['addMany']([{'type':'separator'},{'type':'button','model':new _0x13b983({'withText':!0x0,'label':o(_0x3d2ad7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x402e99 of _0x17827f)if(ke(_0x402e99)){const _0x4e7d83=_0x4fb79a['commands']['get'](_0x402e99['model']['commandName']);_0x402e99['model']['bind']('isOn','isEnabled')['to'](_0x4e7d83,'value','isEnabled');}_0x4fb79a['ui']['componentFactory']['add']('trackChanges',_0x348bfe=>this['_createToolbarButton'](_0x348bfe,_0x17827f,_0x542d03)),_0x4fb79a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x22b42f=>this['_createMenuBarMenu'](_0x22b42f,_0x17827f,_0x542d03));}['_createToolbarButton'](_0x46d6d8,_0x8490ff,_0x48be41){const _0x1150f0=_0x1adfcd(_0x46d6d8,_0x4d8b05),_0x13e30e=this['editor']['commands']['get']('trackChanges');_0x1150f0['buttonView']['set']({'tooltip':_0x48be41,'label':_0x48be41,'icon':we}),_0x1150f0['buttonView']['bind']('isOn')['to'](_0x13e30e,'value'),_0x1150f0['buttonView']['on']('execute',()=>{_0x13e30e['execute'](),this['editor']['editing']['view']['focus']();}),_0x19a3f9(_0x1150f0,_0x8490ff,{'role':'menu'});const _0x341473=[];for(const _0x29a349 of _0x8490ff)ke(_0x29a349)&&_0x341473['push'](this['editor']['commands']['get'](_0x29a349['model']['commandName']));const _0x39e49a=_0x1150f0['buttonView'];return _0x39e49a['actionView']['unbind']('isEnabled'),_0x39e49a['arrowView']['unbind']('isEnabled'),_0x39e49a['actionView']['bind']('isEnabled')['to'](_0x13e30e,'isEnabled'),_0x39e49a['arrowView']['bind']('isEnabled')['toMany'](_0x341473,'isEnabled',(..._0x36b1f2)=>_0x36b1f2['some'](_0x308b2b=>_0x308b2b)),_0x1150f0['on']('execute',_0x318c1d=>{this['editor']['execute'](_0x318c1d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1150f0;}['_createMenuBarMenu'](_0x4030c9,_0x288994,_0x4129f4){const _0x58c7dc=new _0x4b2de6(_0x4030c9),_0x282f1a=this['editor']['commands']['get']('trackChanges');_0x58c7dc['buttonView']['set']({'label':_0x4129f4,'icon':we});const _0x3a9a7c=new _0x3dd24d(_0x4030c9);for(const _0x2b0f7f of _0x288994){if('separator'==_0x2b0f7f['type']){_0x3a9a7c['items']['add'](new _0xd93d6d(_0x4030c9));continue;}const _0x888ad3=new _0x115ee8(_0x4030c9,_0x58c7dc),_0x4f3937=new _0x5a64f7(_0x4030c9),_0x4ca3e6=_0x2b0f7f['model'];_0x4f3937['bind'](...Object['keys'](_0x4ca3e6))['to'](_0x4ca3e6),_0x4f3937['delegate']('execute')['to'](_0x58c7dc),_0x4f3937['on']('execute',()=>{this['editor']['execute'](_0x4ca3e6['commandName']),this['editor']['editing']['view']['focus']();}),_0x888ad3['children']['add'](_0x4f3937),_0x3a9a7c['items']['add'](_0x888ad3);}return _0x58c7dc['bind']('isEnabled')['to'](_0x282f1a,'isEnabled'),_0x58c7dc['panelView']['children']['add'](_0x3a9a7c),_0x58c7dc;}['_initializeController'](_0x42f5ce){const _0x348554=this['editor'],_0x28c2fb=_0x348554['config'],_0x13421d=_0x348554['plugins']['get']('Annotations'),_0x415b8e=_0x348554['plugins']['get']('CommentsRepository'),_0x3aea42=_0x348554['plugins']['get']('EditorAnnotations'),_0x681652=_0x348554['plugins']['get'](_0x58d047)['me'],_0x308bca=_0x28c2fb['get']('trackChanges')['SuggestionThreadView'],_0xb8bcbd=_0x28c2fb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1b7428,CommentThreadInputView:_0x13824a}=_0x348554['plugins']['get']('CommentsUI');let _0x222ee8,_0x15f65c,_0x4143e9;this['_annotationViews']['has'](_0x42f5ce['id'])?(_0x15f65c=this['_annotationViews']['get'](_0x42f5ce['id']),_0x222ee8=_0x15f65c['mainView']):(_0x222ee8=new _0x308bca(_0x348554['locale'],_0x42f5ce,_0x681652,{'disableComments':this['_disableComments'],'editorConfig':{..._0x28c2fb['get']('comments.editorConfig'),'licenseKey':_0x28c2fb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x28c2fb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x28c2fb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x28c2fb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4b7818(_0x28c2fb['get']('locale')),'CommentView':_0x28c2fb['get']('comments')['CommentView'],'CommentsListView':_0x1b7428,'CommentThreadInputView':_0x13824a,'SuggestionView':_0xb8bcbd}),_0x222ee8['suggestionView']['acceptButton']['on']('execute',()=>{_0x348554['editing']['view']['focus']();}),_0x222ee8['suggestionView']['discardButton']['on']('execute',()=>{_0x348554['editing']['view']['focus']();}),_0x15f65c=_0x13421d['createAnnotationView'](this['editor']['locale'],_0x222ee8),_0x15f65c['bind']('isDirty')['to'](_0x222ee8,'isDirty'),_0x15f65c['bind']('length')['to'](_0x222ee8),_0x15f65c['bind']('type')['to'](_0x222ee8,'type',_0x1ad860=>'suggestion-'+_0x1ad860),_0x222ee8['on']('escape',()=>{_0x4143e9['fire']('escape');}),this['_annotationViews']['set'](_0x42f5ce['id'],_0x15f65c));const _0x36ea09=_0x415b8e['createCommentThreadController'](_0x42f5ce['commentThread'],_0x222ee8),_0x1fcef5=new Ce(_0x348554,_0x42f5ce,_0x222ee8,_0x36ea09),_0x3b02cf=_0x42f5ce['getAllAdjacentSuggestions']()['filter'](_0x85155a=>_0x85155a['isInContent']);_0x222ee8['descriptionParts']=_0x348554['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3b02cf),this['_suggestionToController']['set'](_0x42f5ce,_0x1fcef5),this['_viewToController']['set'](_0x222ee8,_0x1fcef5),_0x4143e9=_0x13421d['createAnnotation']({'view':_0x15f65c,'target':()=>{const _0x43bd51=[],_0x60fafa=_0x42f5ce['getAllAdjacentSuggestions']()['filter'](_0x3d0510=>_0x3d0510['isInContent']);for(const _0x1a5a31 of _0x60fafa)_0x43bd51['push'](..._0x1a5a31['getMarkers']());return _0x1df16c(_0x348554['editing'],_0x43bd51);},'type':()=>'suggestion-'+_0x1fcef5['view']['type']}),_0x415b8e['_bindAnnotationToEditors'](_0x222ee8,_0x4143e9),_0x13421d['add'](_0x4143e9),_0x3aea42['registerAnnotation'](_0x4143e9);}['_destroyController'](_0x27dc0a){const _0x119ace=this['editor']['plugins']['get']('CommentsRepository'),_0x35ab37=this['editor']['plugins']['get']('Annotations'),_0x48e3bd=this['_suggestionToController']['get'](_0x27dc0a),_0x22d883=_0x48e3bd['view'],_0x313eac=_0x35ab37['getByInnerView'](_0x22d883);_0x119ace['_unbindEditors'](_0x22d883),_0x313eac&&_0x35ab37['remove'](_0x313eac),this['_suggestionToController']['delete'](_0x27dc0a),this['_viewToController']['delete'](_0x22d883),_0x48e3bd['destroy']();}['_updateController'](_0x13537a){if(!_0x13537a['isInContent']||!this['_suggestionToController']['has'](_0x13537a))return;const _0x4687d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48eb54=this['_suggestionToController']['get'](_0x13537a),_0x36b380=_0x13537a['getAllAdjacentSuggestions']();_0x48eb54['view']['descriptionParts']=_0x4687d3['descriptionFactory']['getDescriptions'](_0x36b380);}['destroy'](){for(const _0x2060b1 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2060b1);for(const _0x3b451b of this['_annotationViews']['values']())_0x3b451b['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x25ec2c){return'model'in _0x25ec2c;}class k extends _0x3b6a96{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x21bd35){this['editor']['plugins']['get'](p)['adapter']=_0x21bd35;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2a7ca6){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2a7ca6);}['getSuggestions']({skipNotAttached:_0x9bf3cf=!0x1,toJSON:_0x2d5c5f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x9bf3cf,'toJSON':_0x2d5c5f});}['getSuggestion'](_0x3f37af){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3f37af);}}const w=['Pagination'];class T extends _0x3b6a96{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xfae21c=this['editor'];if(_0xfae21c['config']['define']('trackChangesData.editorCreator',_0x52e5d4=>{const _0x1dc8a4=_0xfae21c['model']['document']['getRootNames']()['reduce']((_0xffc6a5,_0x37daf3)=>(_0xffc6a5[_0x37daf3]='',_0xffc6a5),{});return _0xfae21c['constructor']['create'](_0x1dc8a4,_0x52e5d4);}),'function'!=typeof _0xfae21c['config']['get']('trackChangesData')['editorCreator'])throw new _0x5e7b1c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x34c32b){return N(this['editor'],!0x0,_0x34c32b);}['getDataWithDiscardedSuggestions'](_0x57205b){return N(this['editor'],!0x1,_0x57205b);}}class D extends _0x3b6a96{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5f3845){function _0x2c9252(_0x4fc5bb){return _0x4fc5bb['map'](_0xa99c3b=>String['fromCharCode'](_0xa99c3b))['join']('');}super(_0x5f3845),this['result']='end',_0x5f3845[_0x2c9252([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c9252([0x76,0x69,0x65,0x77])][_0x2c9252([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c9252([0x61,0x75,0x74,0x6f]),_0x5f3845[_0x2c9252([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2c9252([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c9252([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2c9252([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2c9252([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(_0x132b86){return void 0x0!==_0x132b86['getRootsAttributes'];}async function N(_0x4d5130,_0x5e39ee,_0x3f1394){const _0x203f7a=_0x3547f2(_0x4d5130,w);_0x203f7a['plugins']['push'](p,D),_0x203f7a['rootsAttributes']=Fe(_0x4d5130)?_0x4d5130['getRootsAttributes']():void 0x0;const _0x45aa7e=document['createDocumentFragment'](),_0x159aff=_0x4d5130['config']['get']('trackChangesData')['editorCreator'],_0x470482=await _0x159aff(_0x203f7a,()=>function(_0x954b3b){const _0x348212=document['createElement']('div');return _0x954b3b['appendChild'](_0x348212),_0x348212;}(_0x45aa7e));!function(_0x5439aa,_0x3eee0a){const _0x561737=_0x5439aa['model']['document']['getRootNames']()['reduce']((_0x8fe9d6,_0x57b93a)=>(_0x8fe9d6[_0x57b93a]=_0x5439aa['data']['get']({'rootName':_0x57b93a}),_0x8fe9d6),{}),_0x300ce2=_0x5439aa['plugins']['get']('Users')['users']['map'](_0x37434f=>({'id':_0x37434f['id'],'name':_0x37434f['name']})),_0x22a174=_0x5439aa['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x79d33f=_0x5439aa['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x500865=_0x3eee0a['plugins']['get']('Users'),_0x291b74=_0x3eee0a['plugins']['get']('TrackChangesEditing'),_0x5577fb=_0x3eee0a['plugins']['get']('CommentsRepository');for(const _0x501c03 of _0x5577fb['getCommentThreads']())_0x501c03['remove']();for(const _0x4df8ff of _0x300ce2)_0x500865['getUser'](_0x4df8ff['id'])||_0x500865['addUser'](_0x4df8ff);_0x500865['me']||_0x500865['useAnonymousUser']();for(const _0x501e64 of _0x79d33f)_0x5577fb['addCommentThread'](_0x501e64);for(const _0x348a7e of _0x22a174)_0x291b74['addSuggestionData'](_0x348a7e);_0x3eee0a['data']['set'](_0x561737);}(_0x4d5130,_0x470482),_0x470482['execute'](_0x5e39ee?'acceptAllSuggestions':'discardAllSuggestions');const _0x7c0ac4=Fe(_0x470482)?_0x470482['getFullData'](_0x3f1394):_0x470482['data']['get'](_0x3f1394);return await _0x470482['destroy'](),_0x7c0ac4;}class Me extends _0x438d77{['options'];constructor(_0x261dc2,_0x1c9d75){super(_0x261dc2),this['options']=_0x1c9d75,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'](_0x27a954,_0x5a8e35){if(!this['element'])return;const _0x1d99f3=[];for(const [_0x2078f8,_0x4bec83]of _0x27a954){const _0x4594aa=document['createElement']('div');_0x4594aa['setAttribute']('data-ck-root-name',_0x2078f8),_0x4594aa['className']=_0x4bec83['classes']+'\x20ck-track-changes-preview__root-container',_0x4594aa['innerHTML']=_0x4bec83['content'],_0x1d99f3['push'](_0x4594aa);}_0x5a8e35(this['element'],_0x1d99f3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x112fec){super(_0x112fec),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xb69e6b=this['editor'],_0x39ae23=_0xb69e6b['locale'],_0x2ec5ed=_0xb69e6b['plugins']['get']('Dialog');let _0xde4b1c;const _0x2c5f2c=function(_0x59c2bb){const _0x3101d2={};if('editables'in _0x59c2bb['ui']['view']){for(const [_0x3cc2ec,_0x34ed75]of Object['entries'](_0x59c2bb['ui']['view']['editables']))_0x3101d2[_0x3cc2ec]=_0x34ed75['element'];}else _0x3101d2[_0x59c2bb['model']['document']['getRootNames']()[0x0]]=_0x59c2bb['ui']['view']['editable']['element'];return _0x3101d2;}(_0xb69e6b),_0xfb66ce=function(_0x5ae586){let _0xe91c3b=0x0;for(const _0x157baa of Object['values'](_0x5ae586))_0xe91c3b=Math['max'](_0xe91c3b,_0x157baa['getBoundingClientRect']()['width']);let _0x44f515=0x0;for(const _0x294247 of Object['values'](_0x5ae586))_0x44f515+=_0x294247['getBoundingClientRect']()['height'];const _0x23355e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x44986b=Math['min'](_0x44f515,_0x23355e);return{'width':_0xe91c3b,'height':_0x44986b};}(_0x2c5f2c);_0x2ec5ed['show']({'id':'finalContentPreview','title':o(_0x39ae23,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x39ae23,{'dialogRects':_0xfb66ce}),'onHide':()=>{_0xde4b1c['detachFromDom']();},'onShow':()=>{_0xb69e6b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4b4447=>{const _0x5f071e=this['_standarizeRootsData'](_0x4b4447,_0xb69e6b,_0x2c5f2c);_0x2ec5ed['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x5f071e,_0xb69e6b['config']['get']('trackChanges.preview.renderFunction'));}),_0xde4b1c=new _0x50b542(_0x39ae23,[_0x2ec5ed['view']]),_0xde4b1c['attachToDom'](),_0xde4b1c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xb69e6b['once']('destroy',()=>{_0xde4b1c['detachFromDom']();});const _0x132c3c=_0x2ec5ed['view']['headerView']['class'];_0x2ec5ed['view']['headerView']['class']=_0x132c3c?_0x132c3c+'\x20ck-reset_all':'ck-reset_all',_0x2ec5ed['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2ec5ed['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4cd947=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x570dd1=_0x4cd947['previewMode'],_0x4974ff={};if('$labels'===_0x570dd1){for(const _0x1dcc57 of _0x4cd947['getMergeFieldsIds']())_0x4974ff[_0x1dcc57]=_0x4cd947['getLabel'](_0x1dcc57)||_0x1dcc57;}else{const _0x2ef78a='$defaultValues'===_0x570dd1?_0x4cd947['getDefaultValues']():_0x4cd947['getDataSetValues'](_0x570dd1,!0x0);for(const _0x5f3631 of Object['entries'](_0x2ef78a)){const [_0x3c27bf,_0x2c3441]=_0x5f3631;_0x4974ff[_0x3c27bf]=null!==_0x2c3441?_0x2c3441:_0x4cd947['getLabel'](_0x3c27bf)||_0x3c27bf;}}return{'mergeFieldsData':_0x4974ff};}['_standarizeRootsData'](_0x361a0f,_0x1266d5,_0x4adb11){let _0x3a97ca;if('string'==typeof _0x361a0f){const _0x135f1b=_0x1266d5['model']['document']['getRootNames']()[0x0];_0x3a97ca={[_0x135f1b]:_0x361a0f};}else _0x3a97ca=_0x361a0f;const _0x1aa0d2=this['_fixMediaEmbeds'](_0x3a97ca,_0x1266d5),_0x4598f2=function(_0x42c66c,_0x934943){for(const [_0x3efa86,_0x3c2200]of _0x42c66c)_0x3c2200['classes']=_0x934943[_0x3efa86]['classList']['value']['replace']('ck-focused','');return _0x42c66c;}(this['_sortRoots'](_0x1266d5)['reduce']((_0x2ec6d6,_0x48ef4e)=>(_0x2ec6d6['push']([_0x48ef4e,{'content':_0x1aa0d2[_0x48ef4e],'classes':''}]),_0x2ec6d6),[]),_0x4adb11);return _0x4598f2;}['_fixMediaEmbeds'](_0x507267,_0x2e4972){if(!_0x2e4972['plugins']['has']('MediaEmbedEditing'))return _0x507267;const _0x43faef=_0x2e4972['plugins']['get']('MediaEmbedEditing');for(const [_0x1828c3,_0x2d6b0a]of Object['entries'](_0x507267)){const _0x15ad22=document['createElement']('div');_0x15ad22['innerHTML']=_0x2d6b0a,(_0x15ad22['querySelectorAll']('figure.media')['forEach'](_0x4bbd3d=>{const _0x1bd1f3=_0x4bbd3d['querySelector']('oembed');if(_0x1bd1f3){const _0x5ac5de=_0x1bd1f3['getAttribute']('url');if(_0x5ac5de){const _0x27b022=_0x43faef['registry']['getMediaViewElement'](new _0x3dc4c2(_0x2e4972['editing']['view']['document']),_0x5ac5de,{'elementName':'','renderForEditingView':!0x0}),_0x4c446f=document['createElement']('div');_0x4c446f['classList']['add']('ck-media__wrapper'),_0x27b022['render'](_0x4c446f,_0x2e4972['editing']['view']['domConverter']),_0x1bd1f3['replaceWith'](_0x4c446f);}}}),_0x507267[_0x1828c3]=_0x15ad22['innerHTML']);}return _0x507267;}['_sortRoots'](_0x585da3){if(!function(_0x27a1fa){return void 0x0!==_0x27a1fa['getRootsAttributes'];}(_0x585da3))return _0x585da3['model']['document']['getRootNames']();const _0x5ddcf4=[],_0x37b33a=new Map();for(const _0x192b4b of _0x585da3['model']['document']['getRootNames']()){const _0x5b5ec4=_0x585da3['editing']['view']['getDomRoot'](_0x192b4b)['getClientRects']()['item'](0x0);_0x5ddcf4['push'](_0x192b4b),_0x37b33a['set'](_0x192b4b,_0x5b5ec4);}return _0x5ddcf4['sort']((_0x793802,_0x10bb99)=>{const _0x4ec381=_0x37b33a['get'](_0x793802),_0x4ada35=_0x37b33a['get'](_0x10bb99);return _0x4ec381['y']-_0x4ada35['y']||_0x4ec381['x']-_0x4ada35['x'];}),_0x5ddcf4;}}class te extends _0x3b6a96{static get['requires'](){return[T,_0x409a42];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e3843){super(_0x3e3843),_0x3e3843['commands']['add']('previewFinalContent',new re(this['editor'])),_0x3e3843['config']['define']('trackChanges.preview.renderFunction',(_0xfb89fb,_0x25650d)=>{for(const _0x3328e7 of _0x25650d)_0xfb89fb['appendChild'](_0x3328e7);});}}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};
|