@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250212.0 → 0.0.0-nightly-next-20250213.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/LICENSE.md +1 -1
- package/build/track-changes.js +1 -1
- package/ckeditor5-metadata.json +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 +27 -26
- 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/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +0 -11
- package/theme/icons/track-changes-discard.svg +0 -11
- package/theme/icons/track-changes.svg +0 -11
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x403ea1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x878e67,_0x2f0811){super(),this['id']=_0x2f0811['id'],this['type']=_0x2f0811['type'],this['subType']=_0x2f0811['subType']||null,this['author']=_0x2f0811['author'],this['creator']=_0x2f0811['creator']||_0x2f0811['author'],this['isExternal']=Boolean(_0x2f0811['attributes']&&_0x2f0811['attributes']['@external']),this['data']=null,this['_model']=_0x878e67,this['_onAccept']=_0x2f0811['onAccept'],this['_onDiscard']=_0x2f0811['onDiscard'],this['_onAttributesChange']=_0x2f0811['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2f0811['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 _0x2dca48=this;for(;_0x2dca48['previous'];)_0x2dca48=_0x2dca48['previous'];return _0x2dca48;}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'](_0x27dd11){this['_markerNames']['add'](_0x27dd11);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xed8717=>this['_model']['markers']['get'](_0xed8717))['filter'](_0x2ec483=>_0x2ec483);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4d4e6e=>{for(const _0x4ded29 of this['getMarkers']())_0x4d4e6e['removeMarker'](_0x4ded29);}),this['_markerNames']['clear']();}['removeMarker'](_0x3fdb13){this['_model']['change'](_0x4c3307=>{_0x4c3307['removeMarker'](_0x3fdb13);}),this['_markerNames']['delete'](_0x3fdb13);}['addRange'](_0x563c3d){const _0x3d24e8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3d24e8),this['_model']['change'](_0x12545e=>{_0x12545e['addMarker'](_0x3d24e8,{'range':_0x563c3d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x54651f){for(const _0x55dfc5 of this['getRanges']())if(_0x55dfc5['isIntersecting'](_0x54651f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x501127=>_0x501127['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2259b6,_0x83edab)=>[..._0x2259b6,..._0x83edab['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x572a45=this['getRanges']();if(0x1!=_0x572a45['length'])return null;const _0x188afc=_0x572a45[0x0],_0x4baff7=_0x188afc['start']['nodeAfter'],_0x468e66=_0x188afc['end']['nodeBefore'];return _0x4baff7 instanceof _0x148a0d?_0x4baff7!=_0x468e66?null:_0x4baff7: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 _0x308c60=[];let _0x468bab=this['head'];for(;_0x468bab;)_0x308c60['push'](_0x468bab),_0x468bab=_0x468bab['next'];return _0x308c60;}['setAttribute'](_0x5a911d,_0x25ef87){const _0x369768=_0x2fc72f(this['attributes']);_0x2ed70c(_0x369768,_0x5a911d,_0x25ef87),_0x5d17c7(_0x369768,this['attributes'])||(this['attributes']=_0x369768,this['_onAttributesChange'](_0x369768));}['removeAttribute'](_0xcae38e){const _0x11aa3a=_0x2fc72f(this['attributes']);_0x3cf3bc(_0x11aa3a,_0xcae38e),_0x5d17c7(_0x11aa3a,this['attributes'])||(this['attributes']=_0x11aa3a,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 _0x56f9d6()['substr'](0x1,0x5);}}function o(_0x2e2ac8,_0xfe2c5d,_0x51e905){const _0x2891e2=_0x2e2ac8['t'],t=_0x2e2ac8['t'];switch(_0xfe2c5d){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',_0x51e905);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x51e905);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x51e905);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x51e905);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x51e905);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',_0x51e905);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x51e905);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',_0x51e905);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x51e905);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x51e905);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x51e905);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x51e905);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x51e905);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x51e905);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x51e905);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x51e905);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x51e905);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x51e905);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x51e905);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x51e905);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x51e905);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x51e905);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x51e905);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x51e905);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'},_0x51e905);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x51e905);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x51e905);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x51e905);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x51e905);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x51e905);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'},_0x51e905);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x51e905);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x51e905);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x51e905);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x51e905);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'},_0x51e905);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x51e905);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'},_0x51e905);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'},_0x51e905);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x51e905);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'},_0x51e905);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x51e905);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'},_0x51e905);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x51e905);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x51e905);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'},_0x51e905);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x51e905);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 _0x2891e2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x51e905);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2891e2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x51e905);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x51e905);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'},_0x51e905);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'},_0x51e905);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'},_0x51e905);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xfe2c5d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x551a49,_0x34bbad){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x551a49,this['_locale']=_0x34bbad;}['getDescriptions'](_0xfa7937){const _0x4da734=[],_0x47f27f=new Set(),_0xeedb1=new Set();for(let _0x408a36=0x0;_0x408a36<_0xfa7937['length'];_0x408a36++){const _0x4248cd=_0xfa7937[_0x408a36];if(!_0x4248cd['isInContent'])continue;const _0x1a6baa=this['_handleCustomCallbackDescription'](_0x4248cd);if(_0x1a6baa){if(null!=_0x4248cd['subType']){if(_0x47f27f['has'](_0x4248cd['subType']))continue;_0x47f27f['add'](_0x4248cd['subType']);}_0x4da734['push'](_0x1a6baa);}else{if('attribute'!=_0x4248cd['type'])'insertion'!=_0x4248cd['type']&&'deletion'!=_0x4248cd['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4da734,_0x4248cd,_0xfa7937[_0x408a36+0x1]);else{const _0x2ba956=_0x4248cd['data']['key'];if(_0xeedb1['has'](_0x2ba956))continue;_0xeedb1['add'](_0x4248cd['data']['key']),_0x2ba956==m?this['_handleRenameSuggestionDescription'](_0x4da734,_0x4248cd):this['_handleAttributeSuggestionDescription'](_0x4da734,_0x4248cd);}}}return this['_resolveDescriptionItems'](_0x4da734);}['registerDescriptionCallback'](_0x5c6185){this['_customCallbacks']['push'](_0x5c6185);}['registerElementLabel'](_0x176f8e,_0x55eb84,_0x3dd698=_0x18c1ff['normal']){'function'==typeof _0x176f8e?_0x83797d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x176f8e,'label':_0x55eb84,'priority':_0x3dd698}):this['_itemLabels']['set'](_0x176f8e,_0x55eb84);}['registerAttributeLabel'](_0x322a8a,_0x18036a){this['_attributeLabels']['set'](_0x322a8a,_0x18036a);}['getItemLabel'](_0x1ba663,_0x3ccf48=0x1){let _0x759976;for(const _0x4f7f31 of this['_itemLabelsCallbacks'])if(_0x4f7f31['matchingCallback'](_0x1ba663)){_0x759976=_0x4f7f31['label'];break;}return _0x759976||(_0x759976=this['_itemLabels']['get'](_0x1ba663['name'])),_0x759976?_0x759976(_0x3ccf48):0x1!==_0x3ccf48?_0x3ccf48+'\x20'+_0x1ba663['name']+'s':''+_0x1ba663['name'];}['_addDescriptionItems'](_0x37ef63,_0x3fcaf7){const _0xfd0fb=_0x3fcaf7['getFirstRange']()['getWalker'](),_0xf770ed='insertion'==_0x3fcaf7['type']?'add':'remove';for(const _0x186768 of _0xfd0fb){const _0xc09dfd=_0x186768['item'],_0x2c2e8f=_0x37ef63[_0x37ef63['length']-0x1];if(_0xc09dfd['is']('$textProxy'))_0x2c2e8f&&_0x2c2e8f['type']['indexOf']('Container')>-0x1&&_0x37ef63['pop'](),_0x2c2e8f&&'text'==_0x2c2e8f['type']?_0x2c2e8f[_0xf770ed]+=_0xc09dfd['data']:_0x37ef63['push']({'type':'text','add':'add'==_0xf770ed?_0xc09dfd['data']:'','remove':'remove'==_0xf770ed?_0xc09dfd['data']:''});else{if(this['_schema']['isObject'](_0xc09dfd)){const _0x16ac9d=_0xc09dfd;if(_0x2c2e8f&&_0x2c2e8f['type']['indexOf']('Container')>-0x1&&_0x37ef63['pop'](),'elementEnd'==_0x186768['type'])continue;_0x2c2e8f&&_0x2c2e8f['type']==_0xf770ed+'Object'&&_0x2c2e8f['element']['name']==_0x16ac9d['name']?_0x2c2e8f['quantity']++:_0x37ef63['push']({'type':_0xf770ed+'Object','element':_0x16ac9d,'quantity':0x1}),_0xfd0fb['skip'](_0x3b81b8=>!('elementEnd'==_0x3b81b8['type']&&_0x3b81b8['item']==_0xc09dfd));}else{if(this['_schema']['checkChild'](_0xc09dfd,'$text')||_0xc09dfd['is']('element','softBreak')){const _0x327361=_0xc09dfd;if('add'==_0xf770ed&&'elementStart'==_0x186768['type']||'remove'==_0xf770ed&&'elementEnd'==_0x186768['type'])continue;if(_0x2c2e8f&&-0x1==_0x2c2e8f['type']['indexOf']('Container')){'text'==_0x2c2e8f['type']&&(_0x2c2e8f[_0xf770ed]+='\x0a');continue;}let _0x5511dc;if(_0x5511dc='add'==_0xf770ed?_0x327361['nextSibling']&&!this['_schema']['isObject'](_0x327361['nextSibling'])?_0x327361['nextSibling']:null:_0x327361['previousSibling']&&!this['_schema']['isObject'](_0x327361['previousSibling'])?_0x327361['previousSibling']:null,_0x327361['isEmpty']||_0x5511dc&&_0x5511dc['isEmpty']){const _0x54f3a4=_0x5511dc&&_0x5511dc['isEmpty']?_0x5511dc:_0x327361;_0x2c2e8f&&_0x2c2e8f['type']==_0xf770ed+'EmptyContainer'&&_0x2c2e8f['element']['name']==_0x54f3a4['name']?_0x2c2e8f['quantity']++:_0x37ef63['push']({'type':_0xf770ed+'EmptyContainer','element':_0x54f3a4,'quantity':0x1});}else _0x37ef63['push']({'type':_0xf770ed+'Container','element':_0x327361});}}}}}['_resolveDescriptionItems'](_0x9d448f){const _0x20dab1=this['_locale'],_0x18fd17=[],_0x4ea404=[],_0x52ee19=[];for(const _0x3146ad of _0x9d448f)switch(_0x3146ad['type']){case'text':if(_0x3146ad['add']=_0x3146ad['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3146ad['remove']=_0x3146ad['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3146ad['add']&&''!=_0x3146ad['remove']){_0x18fd17['push']({'type':'replace','content':o(_0x20dab1,'REPLACE_TEXT',['\x22'+_0x3146ad['remove']+'\x22','\x22'+_0x3146ad['add']+'\x22'])});continue;}if(null!=_0x3146ad['add']['match'](/^ +$/)){_0x18fd17['push']({'type':'insertion','content':o(_0x20dab1,'*Insert:*\x20%0',o(_0x20dab1,'ELEMENT_SPACE',_0x3146ad['add']['length']))});continue;}if(null!=_0x3146ad['remove']['match'](/^ +$/)){_0x18fd17['push']({'type':'deletion','content':o(_0x20dab1,'*Remove:*\x20%0',o(_0x20dab1,'ELEMENT_SPACE',_0x3146ad['remove']['length']))});continue;}if(''!=_0x3146ad['add']){_0x18fd17['push']({'type':'insertion','content':o(_0x20dab1,'*Insert:*\x20%0','\x22'+_0x3146ad['add']+'\x22')});continue;}_0x18fd17['push']({'type':'deletion','content':o(_0x20dab1,'*Remove:*\x20%0','\x22'+_0x3146ad['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x18fd17['push']({'type':'insertion','content':o(_0x20dab1,'*Insert:*\x20%0',this['getItemLabel'](_0x3146ad['element'],_0x3146ad['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x18fd17['push']({'type':'deletion','content':o(_0x20dab1,'*Remove:*\x20%0',this['getItemLabel'](_0x3146ad['element'],_0x3146ad['quantity']))});continue;case'addContainer':_0x18fd17['push']({'type':'insertion','content':o(_0x20dab1,'*Split:*\x20%0',this['getItemLabel'](_0x3146ad['element'],_0x3146ad['quantity']))});continue;case'removeContainer':_0x18fd17['push']({'type':'deletion','content':o(_0x20dab1,'*Merge:*\x20%0',this['getItemLabel'](_0x3146ad['element'],_0x3146ad['quantity']))});continue;case'addFormat':_0x4ea404['push'](_0x3146ad['key']);continue;case'removeFormat':_0x52ee19['push'](_0x3146ad['key']);continue;default:_0x18fd17['push'](_0x3146ad);}if(_0x4ea404['length']){const _0x48e361=_0x4ea404['map'](_0x5514e1=>this['_attributeLabels']['has'](_0x5514e1)?this['_attributeLabels']['get'](_0x5514e1):_0x5514e1)['join'](',\x20');_0x18fd17['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x48e361)});}if(_0x52ee19['length']){const _0x429317=_0x52ee19['map'](_0x2f0179=>this['_attributeLabels']['has'](_0x2f0179)?this['_attributeLabels']['get'](_0x2f0179):_0x2f0179)['join'](',\x20');_0x18fd17['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x429317)});}return _0x18fd17;}['_handleCustomCallbackDescription'](_0x225e6a){for(const _0x294663 of this['_customCallbacks']){const _0x305175=_0x294663(_0x225e6a);if(_0x305175&&'type'in _0x305175)return _0x305175;}}['_handleAttributeSuggestionDescription'](_0x5d48f9,_0x3a066c){const _0x45104d=_0x3a066c['data'],_0x66f0e5=void 0x0===_0x45104d['newValue']?'removeFormat':'addFormat';_0x5d48f9['push']({'type':_0x66f0e5,'key':_0x45104d['key']});}['_handleRenameSuggestionDescription'](_0x3d073d,_0x58a7e4){_0x3d073d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x58a7e4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4996fc,_0x55307c,_0xf95a31){if(this['_addDescriptionItems'](_0x4996fc,_0x55307c),_0xf95a31&&_0xf95a31['getFirstRange']()&&!_0x55307c['getFirstRange']()['end']['isEqual'](_0xf95a31['getFirstRange']()['start'])){const _0x188ffd=_0x4996fc[_0x4996fc['length']-0x1],_0x342dea='insertion'==_0x55307c['type']?'add':'remove';_0x188ffd&&'text'==_0x188ffd['type']&&(_0x188ffd[_0x342dea]+='\x0a');}}}class U extends _0x51252a{['afterInit'](){const _0xb2a712=this['editor'],_0x327e2f=_0xb2a712['plugins']['get']('TrackChangesEditing');_0xb2a712['commands']['get']('showAIAssistant')&&_0x327e2f['enableCommand']('showAIAssistant');}}class V extends _0x51252a{['afterInit'](){const _0x1a4754=this['editor'],_0x53fcd8=_0x1a4754['locale'];if(!_0x1a4754['plugins']['has']('AlignmentEditing'))return;const _0x3db460=_0x1a4754['plugins']['get']('TrackChangesEditing');_0x3db460['enableDefaultAttributesIntegration']('alignment'),_0x3db460['registerBlockAttribute']('alignment'),_0x3db460['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x53fcd8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43535e=this['editor'],_0x288fa4=_0x43535e['locale'];_0x43535e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ef892=>{if('formatBlock'!=_0x4ef892['type'])return;const {data:_0x2d3905}=_0x4ef892;if(_0x2d3905&&'alignment'==_0x2d3905['commandName']){const _0x3b3208=_0x2d3905['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x288fa4,'*Format:*\x20%0',function(_0x9a6050){switch(_0x9a6050){case'left':return o(_0x288fa4,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x288fa4,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x288fa4,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x288fa4,'FORMAT_JUSTIFY_TEXT');}}(_0x3b3208))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x51252a{['afterInit'](){const _0x4f90af=this['editor'],_0x45ea28=_0x4f90af['plugins']['get']('TrackChangesEditing'),_0x27ae7a=_0x4f90af['locale'];for(const _0x278dd3 of ti){if(!_0x4f90af['plugins']['has'](_0x278dd3))continue;const _0x310606=_0x278dd3['slice'](0x0,-0x7)['toLowerCase'](),_0x288a57='FORMAT_'+_0x310606['toUpperCase']();_0x45ea28['enableDefaultAttributesIntegration'](_0x310606),_0x45ea28['registerInlineAttribute'](_0x310606),_0x45ea28['descriptionFactory']['registerAttributeLabel'](_0x310606,o(_0x27ae7a,_0x288a57));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35a318=this['editor'],_0x37aa21=_0x35a318['locale'],_0x2180d4=_0x35a318['plugins']['get']('TrackChangesEditing');function _0x373ae3(_0x51e0aa,_0x2b61ef){_0x2180d4['descriptionFactory']['registerDescriptionCallback'](_0x4ada7b=>{if('formatInline'!=_0x4ada7b['type'])return;const {data:_0x4d4c4f}=_0x4ada7b;return _0x4d4c4f&&_0x4d4c4f['commandName']===_0x51e0aa?_0x4d4c4f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37aa21,'*Format:*\x20%0',_0x2b61ef)}:{'type':'format','content':o(_0x37aa21,'*Remove\x20format:*\x20%0',_0x2b61ef)}:void 0x0;});}_0x373ae3('bold',o(_0x37aa21,'FORMAT_BOLD')),_0x373ae3('italic',o(_0x37aa21,'FORMAT_ITALIC')),_0x373ae3('underline',o(_0x37aa21,'FORMAT_UNDERLINE')),_0x373ae3('code',o(_0x37aa21,'FORMAT_CODE')),_0x373ae3('strikethrough',o(_0x37aa21,'FORMAT_STRIKETHROUGH')),_0x373ae3('subscript',o(_0x37aa21,'FORMAT_SUBSCRIPT')),_0x373ae3('superscript',o(_0x37aa21,'FORMAT_SUPERSCRIPT'));}}class F extends _0x51252a{['afterInit'](){const _0x5db144=this['editor'],_0x835a91=_0x5db144['locale'];if(!_0x5db144['plugins']['has']('BlockQuoteEditing'))return;const _0x4273f0=_0x5db144['plugins']['get']('TrackChangesEditing'),_0x2ef699=this['editor']['commands']['get']('blockQuote');_0x4273f0['enableCommand']('blockQuote',(_0x33b5b2,_0x2191c5={})=>{const _0x5b38e2=this['editor']['model']['document']['selection'],_0x585005=_0x2191c5&&void 0x0!==_0x2191c5['forceValue']?_0x2191c5['forceValue']:!_0x2ef699['value'];let _0x3e1d7b=[];if(_0x585005){const _0x503886=Array['from'](_0x5b38e2['getSelectedBlocks']())['filter'](_0x59a01f=>oo(_0x59a01f)||function(_0x140f6d,_0x518a1a){const _0x131e6f=_0x518a1a['checkChild'](_0x140f6d['parent'],'blockQuote'),_0x537276=_0x518a1a['checkChild'](['$root','blockQuote'],_0x140f6d);return _0x131e6f&&_0x537276;}(_0x59a01f,this['editor']['model']['schema']));_0x3e1d7b=to(_0x503886,_0x5db144['model']);}else{const _0x3e1ee5=Array['from'](_0x5b38e2['getSelectedBlocks']())['filter'](_0x5b36ed=>oo(_0x5b36ed));_0x3e1d7b=to(_0x3e1ee5,_0x5db144['model']);}_0x5db144['model']['change'](()=>{for(const _0x22fa15 of _0x3e1d7b)_0x4273f0['markBlockFormat'](_0x22fa15,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x585005}]});});}),_0x4273f0['descriptionFactory']['registerDescriptionCallback'](_0x5455a2=>{const {data:_0x3b8a46}=_0x5455a2;if(_0x3b8a46&&'blockQuote'==_0x3b8a46['commandName']){const _0x5da962=o(_0x835a91,'ELEMENT_BLOCK_QUOTE');return _0x3b8a46['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x835a91,'*Set\x20format:*\x20%0',_0x5da962)}:{'type':'format','content':o(_0x835a91,'*Remove\x20format:*\x20%0',_0x5da962)};}});}}function oo(_0x4cbb90){return'blockQuote'==_0x4cbb90['parent']['name'];}class L extends _0x51252a{['afterInit'](){const _0x2efe1e=this['editor'],_0x28f144=_0x2efe1e['locale'],_0x30b106=_0x2efe1e['plugins']['get']('TrackChangesEditing');_0x2efe1e['plugins']['has']('BookmarkEditing')&&(_0x30b106['enableCommand']('insertBookmark'),_0x30b106['enableDefaultAttributesIntegration']('updateBookmark'),_0x30b106['registerBlockAttribute']('bookmarkId'),_0x30b106['descriptionFactory']['registerDescriptionCallback'](_0x10cf59=>{if('insertion'!=_0x10cf59['type']&&'deletion'!=_0x10cf59['type']&&'attribute'!=_0x10cf59['type'])return;const _0x242597=_0x10cf59['getContainedElement']();if(null==_0x242597)return;if(!_0x242597['is']('element','bookmark'))return;const _0x506003=_0x242597['getAttribute']('bookmarkId');if('insertion'==_0x10cf59['type'])return{'type':'insertion','content':o(_0x28f144,'*Insert:*\x20%0','\x22'+_0x506003+'\x22\x20'+o(_0x28f144,'ELEMENT_BOOKMARK'))};if('deletion'==_0x10cf59['type'])return{'type':'deletion','content':o(_0x28f144,'*Remove:*\x20%0','\x22'+_0x506003+'\x22\x20'+o(_0x28f144,'ELEMENT_BOOKMARK'))};const {data:_0x1fd463}=_0x10cf59;if(!_0x1fd463||'bookmarkId'!=_0x1fd463['key'])return;return{'type':'format','content':o(_0x28f144,'*Set\x20bookmark:*\x20%0','\x22'+_0x1fd463['newValue']+'\x22')};}));}}class J extends _0x51252a{['afterInit'](){const _0x41b771=this['editor'];_0x41b771['plugins']['has']('CaseChange')&&(_0x41b771['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x41b771['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x41b771['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x51252a{['afterInit'](){const _0x3ed2e7=this['editor'];_0x3ed2e7['commands']['get']('ckbox')&&_0x3ed2e7['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x51252a{['afterInit'](){const _0x5bd780=this['editor'];if(!_0x5bd780['plugins']['has']('CodeBlock'))return;const _0x465b60=_0x5bd780['plugins']['get']('TrackChangesEditing'),_0x11ac11=_0x5bd780['locale'],_0x19dc6b=_0x5bd780['config']['get']('codeBlock')['languages'],_0x34996f=_0x5bd780['commands']['get']('codeBlock');_0x465b60['enableCommand']('indentCodeBlock'),_0x465b60['enableCommand']('outdentCodeBlock'),_0x465b60['enableCommand']('codeBlock',(_0x2b66c7,_0x384b36={})=>{const _0x219d29=_0x5bd780['model'],_0x386027=_0x5bd780['model']['document']['selection'],_0x339989=_0x384b36&&void 0x0!==_0x384b36['forceValue']?_0x384b36['forceValue']:!_0x34996f['value'];let _0x45ce13;_0x384b36['language']||(_0x384b36['language']=_0x19dc6b[0x0]['language']),_0x45ce13=_0x339989?Array['from'](_0x386027['getSelectedBlocks']())['filter'](_0x22b359=>eo(_0x22b359)||function(_0x14b6fd,_0x351000){if(_0x14b6fd['is']('rootElement')||_0x351000['isLimit'](_0x14b6fd))return!0x1;return _0x351000['checkChild'](_0x14b6fd['parent'],'codeBlock');}(_0x22b359,_0x219d29['schema'])):Array['from'](_0x386027['getSelectedBlocks']())['filter'](_0x8b5749=>eo(_0x8b5749));const _0x27ac72=to(_0x45ce13,_0x219d29);_0x219d29['change'](()=>{for(const _0x4bf0a1 of _0x27ac72)_0x465b60['markBlockFormat'](_0x4bf0a1,{'commandName':'codeBlock','commandParams':[{..._0x384b36,'forceValue':_0x339989}],'formatGroupId':'blockName'});});}),(_0x465b60['descriptionFactory']['registerElementLabel']('codeBlock',_0xbe2bd7=>o(_0x11ac11,'ELEMENT_CODE_BLOCK',_0xbe2bd7)),_0x465b60['descriptionFactory']['registerDescriptionCallback'](_0x23b2ce=>{if('formatBlock'!=_0x23b2ce['type'])return;const _0x58bdd2=_0x11ac11['t'],{data:_0x141796}=_0x23b2ce;if(!_0x141796||'codeBlock'!=_0x141796['commandName'])return;const _0x8c54f=_0x141796['commandParams'][0x0]['language'],_0x225002=_0x58bdd2(_0x19dc6b['find'](_0x57513d=>_0x57513d['language']===_0x8c54f)['label'])['toLowerCase']();return _0x141796['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11ac11,'*Set\x20format:*\x20%0',o(_0x11ac11,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x225002+')')}:{'type':'format','content':o(_0x11ac11,'*Remove\x20format:*\x20%0',o(_0x11ac11,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xa78a84){return'codeBlock'==_0xa78a84['name'];}class z extends _0x51252a{['afterInit'](){const _0x4a4850=this['editor'];if(!_0x4a4850['plugins']['has']('CommentsEditing'))return;_0x4a4850['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1a4a05,_0x23b2e5,_0x4df4d0){const _0x3feac9=[];for(const _0x58e3a7 of _0x23b2e5['getItems']())_0x58e3a7['hasAttribute'](_0x1a4a05)&&_0x3feac9['push'](_0x4df4d0['createRangeOn'](_0x58e3a7));return _0x3feac9;}function De(_0x568cc5,_0x53e9ba,{showActiveMarker:_0x40b06c=!0x0}={}){const _0xa8ac04=_0x568cc5['plugins']['get']('TrackChangesEditing');return(_0xeb1d19,_0x1caf12,_0x1e7037)=>{if(!_0x1e7037['consumable']['test'](_0x1caf12['markerRange'],_0xeb1d19['name']))return;const _0x5d7cff=_0x1caf12['markerRange']['getWalker'](),_0x329a52=_0x1caf12['markerRange']['start'],_0x5eaa35=_0x568cc5['model']['schema'];let _0x4c73bf=null,_0x3786bc=null,_0x36221e=!0x1,_0xb70834=!0x1;for(const _0x31a409 of _0x5d7cff){const _0x381aa9=_0x31a409['item'];_0x36221e=_0x36221e||_0x5eaa35['isContent'](_0x381aa9);const _0x569047=_0x1e7037['mapper']['toViewElement'](_0x381aa9);if(_0x569047&&_0x569047['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x31a409['type']&&(_0x5eaa35['isBlock'](_0x381aa9)&&!_0x5eaa35['isLimit'](_0x381aa9)&&(_0x381aa9['nextSibling']||_0x329a52['isAtEnd']?_0x4c73bf&&_0x4c73bf['parent']==_0x381aa9||(_0x4c73bf=_0x381aa9,_0x361c9e(_0x31a409['previousPosition']),_0xb70834=!0x0):_0x3786bc=_0x3786bc||_0x31a409['previousPosition']));}function _0x361c9e(_0x1200f0){const {authorId:_0x3c863e}=_0xa8ac04['_splitMarkerName'](_0x1caf12['markerName']),_0x522c2b=_0x1e7037['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x53e9ba,'data-author-id':_0x3c863e}),_0x104a3f=_0x1e7037['mapper']['toViewPosition'](_0x1200f0);_0x40b06c&&_0xa8ac04['activeMarkers']['includes'](_0x1caf12['markerName'])&&_0x1e7037['writer']['addClass']('ck-suggestion-marker--active',_0x522c2b),_0x1e7037['writer']['insert'](_0x104a3f,_0x522c2b),_0x1e7037['mapper']['bindElementToMarker'](_0x522c2b,_0x1caf12['markerName']);}_0x36221e||_0xb70834||!_0x3786bc||_0x361c9e(_0x3786bc);};}class K extends _0x51252a{static get['requires'](){return[_0x3ca315];}['init'](){const _0x386844=this['editor'],_0x695a4b=_0x386844['plugins']['get']('TrackChangesEditing');_0x695a4b['enableCommand']('delete');const _0xaa862a=_0x386844['commands']['get']('deleteForward');_0x695a4b['enableCommand']('deleteForward',(_0x4c246e,_0x1b6544={})=>{const _0x1250ff=_0x386844['model']['createSelection'](_0x386844['model']['document']['selection']);_0x1250ff['isCollapsed']&&_0x386844['model']['modifySelection'](_0x1250ff,{'direction':'forward','unit':_0x1b6544['unit']});const _0x275efa=_0x1250ff['getFirstRange'](),_0x35181d=_0x589a5b['fromRange'](_0x275efa);let _0x16ac26;_0x4c246e(_0x1b6544),_0x16ac26='$graveyard'==_0x35181d['root']['rootName']?_0x386844['model']['createRange'](_0x275efa['start']):_0x386844['model']['createRange'](_0x35181d['start'],_0x35181d['end']),_0x35181d['detach'](),_0x386844['model']['enqueueChange'](_0xaa862a['buffer']['batch'],_0x5d5838=>{_0xaa862a['buffer']['lock'](),_0x5d5838['setSelection'](_0x5d5838['createRange'](_0x16ac26['end'])),_0xaa862a['buffer']['unlock']();});}),_0x386844['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x386844,'merge'),{'priority':'high'}),_0x386844['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x16cf83,_0x5ab29a,_0x14b24e)=>{_0x14b24e['options']['showSuggestionHighlights']&&De(_0x386844,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x16cf83,_0x5ab29a,_0x14b24e);},{'priority':'high'}),_0x386844['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1f5155,_0x409f8a,_0x597a04)=>{const _0x140e1e=_0x597a04['mapper']['markerNameToElements'](_0x409f8a['markerName']);if(_0x140e1e){for(const _0x29aed4 of _0x140e1e)_0x29aed4['is']('uiElement')&&(_0x597a04['mapper']['unbindElementFromMarkerName'](_0x29aed4,_0x409f8a['markerName']),_0x597a04['writer']['remove'](_0x29aed4));}},{'priority':'high'});}}class W extends _0x51252a{['afterInit'](){const _0xfa648=this['editor'];if(!_0xfa648['plugins']['has']('ListEditing'))return;const _0x260bfb=_0xfa648['locale'],_0x17fc8a=_0xfa648['plugins']['get']('TrackChangesEditing'),_0x54f261=_0xfa648['plugins']['has']('TodoListEditing'),_0x1c4e4f=!!_0xfa648['config']['get']('list.multiBlock');function _0x3879e0(_0x44b420){return{'type':'format','content':''+o(_0x260bfb,'*Set\x20format:*\x20%0',_0x44b420)};}function _0x7ad938(_0x35994a){return{'type':'format','content':''+o(_0x260bfb,'*Remove\x20format:*\x20%0',_0x35994a)};}_0x17fc8a['enableDefaultAttributesIntegration']('numberedList'),_0x17fc8a['enableDefaultAttributesIntegration']('bulletedList'),_0x17fc8a['enableDefaultAttributesIntegration']('customNumberedList'),_0x17fc8a['enableDefaultAttributesIntegration']('customBulletedList'),_0x17fc8a['enableDefaultAttributesIntegration']('indentList'),_0x17fc8a['enableDefaultAttributesIntegration']('outdentList'),_0x17fc8a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x17fc8a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x17fc8a['registerBlockAttribute']('listItemId'),_0x17fc8a['registerBlockAttribute']('listType'),_0x17fc8a['registerBlockAttribute']('listIndent'),_0x1c4e4f&&(_0x17fc8a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x17fc8a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x54f261&&(_0x17fc8a['enableDefaultAttributesIntegration']('todoList'),_0x17fc8a['enableDefaultAttributesIntegration']('checkTodoList'),_0x17fc8a['registerBlockAttribute']('todoListChecked'),_0x17fc8a['descriptionFactory']['registerDescriptionCallback'](_0x3b39de=>{const {data:_0x41b934}=_0x3b39de;if(_0x41b934&&'todoListChecked'==_0x41b934['key'])return{'type':'format','content':_0x41b934['newValue']?o(_0x260bfb,'*Check\x20item*'):o(_0x260bfb,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3de323=>{if(_0x3de323['batch']['isUndo'])return!0x1;let _0x26df96=!0x1;const _0x4f07ab=_0x17fc8a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x163542=>'todoListChecked'===_0x17fc8a['_getAttributeKey'](_0x163542));for(const _0x2a7d8d of _0x4f07ab){'todo'!=_0x2a7d8d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x17fc8a['_findSuggestions'](_0x2a7d8d['getFirstRange'](),'attribute')['find'](_0x21ec6d=>'listType'===_0x17fc8a['_getAttributeKey'](_0x21ec6d['suggestion']))||(_0x3de323['removeMarker'](_0x2a7d8d['getFirstMarker']()),_0x26df96=!0x0));}return _0x26df96;})),_0x17fc8a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x260bfb,'FORMAT_INDENT'));const _0x5931d9={'type':'format','content':''};_0x17fc8a['descriptionFactory']['registerDescriptionCallback'](_0x5e84fe=>{const {data:_0x4c3891}=_0x5e84fe;if(!_0x4c3891||'listType'!=_0x4c3891['key'])return;let _0x46eed5=_0x5e84fe['head'];for(;_0x46eed5;){if(_0x46eed5['data']&&(('listStyle'==_0x46eed5['data']['key']||'listMarkerStyle'==_0x46eed5['data']['key'])&&(_0x46eed5['data']['newValue']&&'default'!=_0x46eed5['data']['newValue']||'default'!=_0x46eed5['data']['oldValue']&&!_0x4c3891['newValue'])||!_0x1c4e4f&&_0x46eed5['data']['key']==m))return _0x5931d9;_0x46eed5=_0x46eed5['next'];}if(null==_0x4c3891['newValue'])switch(_0x4c3891['oldValue']){case'bulleted':return _0x7ad938(o(_0x260bfb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x7ad938(o(_0x260bfb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x7ad938(o(_0x260bfb,'ELEMENT_TODO_LIST'));}switch(_0x4c3891['newValue']){case'bulleted':return _0x3879e0(o(_0x260bfb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3879e0(o(_0x260bfb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3879e0(o(_0x260bfb,'ELEMENT_TODO_LIST'));}}),_0x17fc8a['descriptionFactory']['registerDescriptionCallback'](_0x5a66d2=>{const {data:_0x548bdd}=_0x5a66d2;if(_0x548bdd&&'listIndent'==_0x548bdd['key'])return null==_0x548bdd['newValue']||null==_0x548bdd['oldValue']&&0x0==_0x548bdd['newValue']?_0x5931d9:void 0x0;}),_0x17fc8a['descriptionFactory']['registerDescriptionCallback'](_0x2a98a7=>{if('attribute'!=_0x2a98a7['type'])return;const {data:_0x150cff}=_0x2a98a7;if(!_0x150cff||'listItemId'!=_0x150cff['key'])return;const _0x4eeb84=Te(_0x2a98a7);return'newValue'==_0x4eeb84?{'type':'format','content':o(_0x260bfb,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4eeb84?{'type':'format','content':o(_0x260bfb,'*Split:*\x20list\x20item')}:_0x5931d9;}),_0xfa648['model']['document']['registerPostFixer'](_0x5ee927=>this['listItemIdFixer'](_0x5ee927)),_0xfa648['model']['document']['registerPostFixer'](_0x3b126a=>this['noTrackChangesFixer'](_0x3b126a)),_0xfa648['model']['document']['on']('change:data',(_0x3c3052,_0x13c35b)=>{if(_0x13c35b['isUndo']||!_0x13c35b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x23f4e2){if(_0x23f4e2['batch']['isUndo']||!_0x23f4e2['batch']['isLocal'])return!0x1;let _0x280e0c=!0x1;const _0x3c7c32=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f3d71=>_0x4f3d71['data']&&'listItemId'==_0x4f3d71['data']['key'])['filter'](_0x43a37b=>_0x43a37b['data']['newValue']&&_0x43a37b['data']['oldValue']);for(const _0x339690 of _0x3c7c32)Te(_0x339690)||(_0x23f4e2['removeMarker'](_0x339690['getFirstMarker']()),_0x280e0c=!0x0);return _0x280e0c;}['noTrackChangesFixer'](_0x2339a6){if(_0x2339a6['batch']['isUndo']||!_0x2339a6['batch']['isLocal'])return!0x1;const _0x9fba0f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x9fba0f['trackChangesCommand']['value'])return!0x1;let _0x698790=!0x1;const _0xc71b2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x375b0f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x395855=>'attribute'==_0x395855['type'])['filter'](_0x47c684=>_0xc71b2['includes'](_0x47c684['attributeKey']));if(0x0==_0x375b0f['length'])return _0x698790;for(const _0x42e687 of _0x375b0f){const _0x5e1d89=_0x9fba0f['_findSuggestions'](_0x42e687['range'],'attribute')['filter'](_0x7dff44=>!_0x7dff44['meta']['isNextTo'])['map'](_0x48429d=>_0x48429d['suggestion'])['filter'](_0x37e978=>{const _0x3756db=_0x9fba0f['_getAttributeKey'](_0x37e978);return _0xc71b2['includes'](_0x3756db);});if(_0x5e1d89['length']){for(const _0x2b4699 of _0x5e1d89)_0x2339a6['removeMarker'](_0x2b4699['getFirstMarker']());_0x698790=!0x0;}}return _0x698790;}['assureChains'](){const _0x35cbd2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc0393d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5e76d9;const _0x43b0a3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3cfa24=>{if(_0x3cfa24['data']['oldRange']||!_0x3cfa24['data']['newRange'])return null;if(!_0x3cfa24['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3a7df9}=_0x35cbd2['_splitMarkerName'](_0x3cfa24['name']);if(!_0x35cbd2['hasSuggestion'](_0x3a7df9))return null;const _0x152bf4=_0x35cbd2['getSuggestion'](_0x3a7df9);return _0xc0393d['includes'](_0x152bf4['data']['key']);})['map'](_0x4ca7c6=>{const {id:_0x2e0b6c}=_0x35cbd2['_splitMarkerName'](_0x4ca7c6['name']),_0x1b37d3=_0x35cbd2['getSuggestion'](_0x2e0b6c);return _0x5e76d9=_0x1b37d3['attributes']['groupId'],_0x1b37d3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x43b0a3['size'])return;const _0x2f9de1=_0x35cbd2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x564494=>'attribute'==_0x564494['type']&&_0x564494['data']&&_0xc0393d['includes'](_0x564494['data']['key'])&&_0x564494['attributes']['groupId']!=_0x5e76d9)['map'](_0x4332f4=>({'listItem':_0x4332f4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4332f4['attributes']['groupId']})),_0x448d53=new Set();for(const {groupId:_0x4ac83f,listItem:_0x59b8a0}of _0x2f9de1)_0x43b0a3['has'](_0x59b8a0)&&_0x448d53['add'](_0x4ac83f);for(const _0x406082 of _0x35cbd2['getSuggestions']())_0x448d53['has'](_0x406082['attributes']['groupId'])&&_0x406082['setAttribute']('groupId',_0x5e76d9);}['_supportLegacySuggestions'](){const _0x34d756=this['editor'],_0x18fb36=_0x34d756['locale'],_0x3d988b=_0x34d756['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3d988b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5288f1,_0x8d9d6a){const _0x2de0b4=[];for(let _0x266553 of _0x5288f1)_0x266553['start']['nodeAfter']===_0x266553['end']['parent']&&(_0x266553=_0x34d756['model']['createRange'](_0x34d756['model']['createPositionAt'](_0x266553['start']['nodeAfter'],0x0))),_0x2de0b4['push'](_0x266553);_0x34d756['model']['change'](_0x59ef85=>{const _0x583404=_0x34d756['model']['document']['selection'],_0x215ee4=Array['from'](_0x583404['getRanges']())['map'](_0x209ff8=>_0x589a5b['fromRange'](_0x209ff8));_0x59ef85['setSelection'](_0x2de0b4),_0x34d756['commands']['get'](_0x8d9d6a['commandName'])['refresh'](),_0x8d9d6a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x34d756['execute'](_0x8d9d6a['commandName'],..._0x8d9d6a['commandParams']),_0x59ef85['setSelection'](_0x215ee4);for(const _0x27fe94 of _0x215ee4)_0x27fe94['detach']();});}),_0x3d988b['descriptionFactory']['registerElementLabel'](function(_0xcc85c2){const _0x1f7346=!_0x34d756['model']['schema']['isObject'](_0xcc85c2),_0xc6acab=_0xcc85c2['previousSibling'],_0x120e21=_0xcc85c2['nextSibling'],_0x75d616=_0xcc85c2['getAttribute']('listItemId'),_0x41b7d6=!_0xc6acab||_0xc6acab['getAttribute']('listItemId')!==_0x75d616,_0x5eea01=!_0x120e21||_0x120e21['getAttribute']('listItemId')!==_0x75d616;return _0x1f7346&&Boolean(_0x75d616)&&_0x41b7d6&&_0x5eea01;},_0x33cb22=>o(_0x18fb36,'ELEMENT_LIST_ITEM',_0x33cb22));}['_registerLegacyDescription'](){const _0x3fe19b=this['editor'],_0x5a1c75=_0x3fe19b['locale'];function _0x5ed26d(_0x97a148){const _0x36d4a9=_0x3fe19b['commands']['get']('bulletedList')['value'],_0x2e8c13=_0x3fe19b['commands']['get']('numberedList')['value'];return'numberedList'===_0x97a148?_0x36d4a9:_0x2e8c13;}_0x3fe19b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4b5366){if('formatBlock'!=_0x4b5366['type'])return;const {data:_0x1e62a7}=_0x4b5366;if(!_0x1e62a7)return;let _0x5c7a2b,_0x3ceac8,_0x4a2f7e,_0x304a60;switch(_0x1e62a7['commandName']){case'bulletedList':_0x4a2f7e=_0x1e62a7['commandParams'][0x0]['forceValue'],_0x304a60=_0x5ed26d(_0x1e62a7['commandName']),_0x5c7a2b=_0x4a2f7e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x304a60&&_0x3fe19b['config']['get']('list.multiBlock')||(_0x5c7a2b='*Change\x20to:*\x20%0'),_0x3ceac8={'type':'format','content':o(_0x5a1c75,_0x5c7a2b,o(_0x5a1c75,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4a2f7e=_0x1e62a7['commandParams'][0x0]['forceValue'],_0x304a60=_0x5ed26d(_0x1e62a7['commandName']),_0x5c7a2b=_0x4a2f7e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x304a60&&_0x3fe19b['config']['get']('list.multiBlock')||(_0x5c7a2b='*Change\x20to:*\x20%0'),_0x3ceac8={'type':'format','content':o(_0x5a1c75,_0x5c7a2b,o(_0x5a1c75,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5c7a2b='*Indent:*\x20%0',_0x3ceac8={'type':'format','content':o(_0x5a1c75,_0x5c7a2b,o(_0x5a1c75,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5c7a2b=function(_0x2b95b6){const _0x256429=_0x2b95b6['getFirstRange']();let _0xdb67ca=_0x256429['start']['nodeAfter'];for(;_0xdb67ca&&_0x256429['containsItem'](_0xdb67ca);){if(_0xdb67ca['getAttribute']('listIndent')>0x0)return!0x1;_0xdb67ca=_0xdb67ca['nextSibling'];}return!0x0;}(_0x4b5366)?o(_0x5a1c75,'*Format:*\x20remove\x20from\x20%0',o(_0x5a1c75,function(_0x13ee25){return'ELEMENT_'+_0x13ee25['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4b5366))):o(_0x5a1c75,'*Outdent:*\x20%0',o(_0x5a1c75,'ELEMENT_LIST_ITEM')),_0x3ceac8={'type':'format','content':_0x5c7a2b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1e62a7['multipleBlocks']&&(_0x5c7a2b='*Merge:*\x20%0',_0x3ceac8={'type':'deletion','content':o(_0x5a1c75,_0x5c7a2b,o(_0x5a1c75,'ELEMENT_LIST_ITEM'))});}return _0x3ceac8;});}}function Te(_0x3d76c3){let _0x30fe44=_0x3d76c3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x30fe44;){const _0x317035=_0x30fe44['getAttribute']('listItemId');if(!_0x317035)return!0x1;if(_0x317035==_0x3d76c3['data']['newValue'])return'newValue';if(_0x317035==_0x3d76c3['data']['oldValue'])return'oldValue';_0x30fe44=_0x30fe44['previousSibling'];}return!0x1;}class Se extends _0x51252a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4ca7f2=this['editor']['config']['get']('list.properties'),_0x127089=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ca7f2['styles']&&(_0x127089['enableDefaultAttributesIntegration']('listStyle'),_0x127089['registerBlockAttribute']('listStyle')),_0x4ca7f2['reversed']&&(_0x127089['enableDefaultAttributesIntegration']('listReversed'),_0x127089['registerBlockAttribute']('listReversed')),_0x4ca7f2['startIndex']&&(_0x127089['enableDefaultAttributesIntegration']('listStart'),_0x127089['registerBlockAttribute']('listStart'));const _0x563e1b={'type':'format','content':''};_0x127089['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x14ad64=this['editor']['locale'];_0x127089['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x14ad64,'FORMAT_LIST_REVERSED')),_0x127089['descriptionFactory']['registerDescriptionCallback'](_0x5ed2e8=>{const {data:_0x24d205}=_0x5ed2e8;if(_0x24d205&&'listReversed'==_0x24d205['key'])return null==_0x24d205['newValue']||0x0==_0x24d205['newValue']&&null==_0x24d205['oldValue']?_0x563e1b:void 0x0;}),_0x127089['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x14ad64,'FORMAT_LIST_START')),_0x127089['descriptionFactory']['registerDescriptionCallback'](_0x3118ea=>{const {data:_0x160c24}=_0x3118ea;if(_0x160c24&&'listStart'==_0x160c24['key'])return null==_0x160c24['newValue']||0x1==_0x160c24['newValue']&&null==_0x160c24['oldValue']?_0x563e1b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2efcad=>{if(_0x2efcad['batch']['isUndo'])return!0x1;let _0x1bf2e5=!0x1;const _0x1df557=_0x127089['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21cf38=>{const _0x45b6ed=_0x127089['_getAttributeKey'](_0x21cf38);return'listStart'==_0x45b6ed||'listReversed'==_0x45b6ed;});for(const _0x2bd7a8 of _0x1df557){const _0x4e07b5=_0x2bd7a8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4e07b5||'customNumbered'==_0x4e07b5)continue;_0x127089['_findSuggestions'](_0x2bd7a8['getFirstRange'](),'attribute')['find'](_0x259c02=>'listType'==_0x127089['_getAttributeKey'](_0x259c02['suggestion']))||(_0x2efcad['removeMarker'](_0x2bd7a8['getFirstMarker']()),_0x1bf2e5=!0x0);}return _0x1bf2e5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1d4289){const _0x90e32d=this['editor']['locale'],{data:_0x2cf7c0}=_0x1d4289,_0x5b5d5e={'type':'format','content':''};if(!_0x2cf7c0||'listStyle'!=_0x2cf7c0['key'])return;if(!_0x2cf7c0['oldValue'])return'default'==_0x2cf7c0['newValue']?_0x5b5d5e:{'type':'format','content':''+o(_0x90e32d,'*Set\x20format:*\x20%0',o(_0x90e32d,this['_getTranslationKeyForListStyle'](_0x2cf7c0['newValue'])))};if(!_0x2cf7c0['newValue']){if('default'==_0x2cf7c0['oldValue'])return _0x5b5d5e;let _0x3835ff=_0x1d4289['head'];for(;_0x3835ff;){if(_0x3835ff['data']&&'listType'==_0x3835ff['data']['key']&&_0x3835ff['data']['newValue'])return _0x5b5d5e;_0x3835ff=_0x3835ff['next'];}return{'type':'format','content':''+o(_0x90e32d,'*Remove\x20format:*\x20%0',o(_0x90e32d,this['_getTranslationKeyForListStyle'](_0x2cf7c0['oldValue'])))};}if('default'!=_0x2cf7c0['newValue'])return{'type':'format','content':''+o(_0x90e32d,'*Set\x20format:*\x20%0',o(_0x90e32d,this['_getTranslationKeyForListStyle'](_0x2cf7c0['newValue'])))};let _0x76982d=_0x1d4289['head'];for(;_0x76982d;){if(_0x76982d['data']&&'listType'==_0x76982d['data']['key']&&_0x76982d['data']['newValue']&&_0x76982d['data']['oldValue'])return _0x5b5d5e;_0x76982d=_0x76982d['next'];}return{'type':'format','content':o(_0x90e32d,'*Set\x20format:*\x20%0',o(_0x90e32d,'ELEMENT_'+_0x1d4289['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5691a4=this['editor'],_0x16d450=_0x5691a4['locale'];_0x5691a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x221f03=>{if('formatBlock'!=_0x221f03['type'])return;const {data:_0x1b8bef}=_0x221f03;if(!_0x1b8bef)return;let _0x32fe96,_0x32b224;switch(_0x1b8bef['commandName']){case'listStyle':_0x32fe96='*Change\x20to:*\x20%0',_0x32b224={'type':'format','content':o(_0x16d450,_0x32fe96,o(_0x16d450,this['_getTranslationKeyForListStyle'](_0x1b8bef['commandParams'][0x0]['type'])))};break;case'listReversed':_0x32fe96=_0x1b8bef['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x32b224={'type':'format','content':o(_0x16d450,_0x32fe96)};break;case'listStart':_0x32fe96='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x32b224={'type':'format','content':o(_0x16d450,_0x32fe96,_0x1b8bef['commandParams'][0x0]['startIndex'])};}return _0x32b224;});}['_getTranslationKeyForListStyle'](_0x4e6804){return'ELEMENT_'+function(_0x8b0d92){if(_e['includes'](_0x8b0d92))return'bulleted';if(Re['includes'](_0x8b0d92))return'numbered';return null;}(_0x4e6804)['toUpperCase']()+'_LIST_'+_0x4e6804['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x51252a{static get['requires'](){return[_0x2c91c2];}['init'](){const _0x10303a=this['editor'],_0x4dbf1c=_0x10303a['plugins']['get']('TrackChangesEditing'),_0x16c323=_0x10303a['commands']['get']('enter');_0x4dbf1c['enableCommand']('enter',()=>{_0x10303a['model']['change'](_0x425537=>{const _0x310edb=_0x10303a['model']['document']['selection'],_0x23fa29=_0x310edb['getFirstPosition'](),_0x1e3338=_0x589a5b['fromRange'](_0x310edb['getFirstRange']());if(_0x16c323['enterBlock'](_0x425537)){const _0x12c457=_0x10303a['model']['createPositionAt'](_0x23fa29['parent']['nextSibling'],0x0),_0x4f0e81=_0x425537['createRange'](_0x23fa29,_0x12c457);_0x4dbf1c['markInsertion'](_0x4f0e81);}else _0x425537['setSelection'](_0x425537['createRange'](_0x1e3338['end']));_0x1e3338['detach'](),_0x16c323['fire']('afterExecute',{'writer':_0x425537});});}),_0x10303a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x10303a,'split'),{'priority':'high'}),_0x10303a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5c384c,_0x5749c4,_0x5bd565)=>{const _0x12e033=_0x5bd565['mapper']['markerNameToElements'](_0x5749c4['markerName']);if(_0x12e033){for(const _0x2dfc60 of _0x12e033)_0x2dfc60['hasClass']('ck-suggestion-marker-split')&&(_0x5bd565['mapper']['unbindElementFromMarkerName'](_0x2dfc60,_0x5749c4['markerName']),_0x5bd565['writer']['remove'](_0x2dfc60));}},{'priority':'high'}),_0x10303a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5f1187,_0x3e9435,_0x5f139b)=>{_0x5f139b['options']['showSuggestionHighlights']&&De(_0x10303a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5f1187,_0x3e9435,_0x5f139b);},{'priority':'high'});}}class Y extends _0x51252a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2469cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x2469cd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2469cd['enableCommand']('findNext'),_0x2469cd['enableCommand']('findPrevious'),_0x2469cd['enableCommand']('replace'),_0x2469cd['enableCommand']('replaceAll');}['handleFindCommand'](_0x4a6bcd,_0x148a4c,_0x1e1e0f={}){const _0xa70053=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4a6bcd(_0x23f2cc=>{let _0x3f25a0=('string'==typeof _0x148a4c?_0xa70053['findByTextCallback'](_0x148a4c,_0x1e1e0f):_0x148a4c)(_0x23f2cc);Array['isArray'](_0x3f25a0)&&(_0x3f25a0={'results':_0x3f25a0,'searchText':'string'==typeof _0x148a4c?_0x148a4c:''});const _0x42939e=_0x3f25a0['results']['filter'](_0x32bfda=>!0x1===this['_isInDeletionRange'](_0x32bfda,_0x23f2cc['item']));return{..._0x3f25a0,'results':_0x42939e};},_0x1e1e0f);}['_isInDeletionRange'](_0x48702f,_0x135e0f){const _0x10161d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x135e0f,_0x48702f['start']),this['editor']['model']['createPositionAt'](_0x135e0f,_0x48702f['end']));for(const _0x86448a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x10161d['getIntersection'](_0x86448a['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x51252a{['afterInit'](){const _0x20448c=this['editor']['locale'],_0x1acb46=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2b722a,commandName:_0x5318fb}of ro)this['editor']['plugins']['has'](_0x2b722a)&&(_0x1acb46['enableDefaultAttributesIntegration'](_0x5318fb),_0x1acb46['registerInlineAttribute'](_0x5318fb));_0x1acb46['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x20448c,'FORMAT_FONT_SIZE')),_0x1acb46['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x20448c,'FORMAT_FONT_FAMILY')),_0x1acb46['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x20448c,'FORMAT_FONT_COLOR')),_0x1acb46['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x20448c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52b84a=this['editor'],_0xd2d66c=_0x52b84a['locale'];_0x52b84a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x234299=>{const _0x1f774f=_0xd2d66c['t'];if('formatInline'!=_0x234299['type'])return;const {data:_0x3182c5}=_0x234299;if(null!=_0x3182c5){if('fontSize'==_0x3182c5['commandName']){const _0x5d53a1=_0x3182c5['commandParams'][0x0]['value'];if(_0x5d53a1){const _0x281e32=_0x1f774f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x3fa8c4=>_0x3fa8c4['model']==_0x5d53a1)['title'])['toLowerCase']();return{'type':'format','content':o(_0xd2d66c,'*Set\x20font\x20size:*\x20%0',_0x281e32)};}return{'type':'format','content':o(_0xd2d66c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3182c5['commandName']){const _0x2f30fa=_0x3182c5['commandParams'][0x0]['value'];return _0x2f30fa?{'type':'format','content':o(_0xd2d66c,'*Set\x20font\x20family:*\x20%0',_0x2f30fa)}:{'type':'format','content':o(_0xd2d66c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3182c5['commandName']){const _0x6c53c3=_0x3182c5['commandParams'][0x0]['value'];if(_0x6c53c3){const _0x43d192=_0x334609(this['editor']['config']['get']('fontColor.colors'))['find'](_0x105571=>_0x105571['model']==_0x6c53c3);let _0x19e275=_0x6c53c3,_0x5c245d='';return _0x43d192&&(_0x19e275=_0x43d192['label'],_0x5c245d=_0x1f774f(_0x19e275)['toLowerCase']()),{'type':'format','content':o(_0xd2d66c,'*Set\x20font\x20color:*\x20%0',_0x5c245d)['trim'](),'color':{'value':_0x6c53c3,'title':_0x5c245d||_0x19e275}};}return{'type':'format','content':o(_0xd2d66c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3182c5['commandName']){const _0x218d3d=_0x3182c5['commandParams'][0x0]['value'];if(_0x218d3d){const _0x39e9ff=_0x334609(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5030de=>_0x5030de['model']==_0x218d3d);let _0x3d0be3=_0x218d3d,_0x343d01='';return _0x39e9ff&&(_0x3d0be3=_0x39e9ff['label'],_0x343d01=_0x1f774f(_0x3d0be3)['toLowerCase']()),{'type':'format','content':o(_0xd2d66c,'*Set\x20font\x20background\x20color:*\x20%0',_0x343d01)['trim'](),'color':{'value':_0x218d3d,'title':_0x343d01||_0x3d0be3}};}return{'type':'format','content':o(_0xd2d66c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x51252a{['afterInit'](){const _0x1fd60b=this['editor'],_0x24c58a=_0x1fd60b['plugins']['get']('TrackChangesEditing'),_0x293e30=_0x1fd60b['commands']['get']('copyFormat'),_0x408244=_0x1fd60b['commands']['get']('pasteFormat');_0x293e30&&_0x408244&&(_0x24c58a['enableDefaultAttributesIntegration']('pasteFormat'),_0x24c58a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x45b356=this['editor'],_0x587ee4=_0x45b356['locale'];_0x45b356['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44dc6c=>{if('formatBlock'!=_0x44dc6c['type']&&'formatInline'!=_0x44dc6c['type'])return;const {data:_0x37e91b}=_0x44dc6c;if(_0x37e91b&&'pasteFormat'===_0x37e91b['commandName']){const _0x4ce6c5=[],_0x2b12d5=_0x37e91b['commandParams'][0x0];for(const [_0x40640a,_0x2285b1]of Object['entries'](_0x2b12d5))_0x4ce6c5['push'](so(_0x45b356,_0x40640a,_0x2285b1));return _0x4ce6c5['length']?{'type':'format','content':o(_0x587ee4,'*Set\x20format\x20to:*\x20%0',_0x4ce6c5['join'](',\x20'))}:{'type':'format','content':o(_0x587ee4,'*Remove\x20all\x20formatting*')};}});}}function so(_0x40fecc,_0x2cf9f4,_0x1b906f){const _0x49a50b=_0x40fecc['locale']['t'],_0x41517e=_0x2cf9f4['split'](/(?=[A-Z])/)['join']('\x20'),_0x3d6edd=_0x49a50b(_0x41517e['charAt'](0x0)['toUpperCase']()+_0x41517e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1b906f)return _0x3d6edd;if('fontColor'===_0x2cf9f4||'fontBackgroundColor'===_0x2cf9f4){const _0x283295=_0x334609(_0x40fecc['config']['get']('fontColor.colors'))['find'](_0x5ebda1=>_0x5ebda1['model']==_0x1b906f);return _0x3d6edd+'\x20('+(_0x283295?_0x49a50b(_0x283295['label'])['toLowerCase']():_0x1b906f)+')';}if('fontSize'===_0x2cf9f4&&isNaN(parseFloat(_0x1b906f))){const _0x3025ad=_0x40fecc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x40fecc['config']['get']('fontSize.options'))['find'](_0x50c771=>_0x50c771['model']==_0x1b906f);return _0x3d6edd+'\x20('+(_0x3025ad?_0x49a50b(_0x3025ad['title'])['toLowerCase']():_0x1b906f)+')';}return _0x3d6edd+'\x20('+_0x1b906f+')';}class nt extends _0x51252a{['_headingOptions'];['afterInit'](){const _0x305a41=this['editor'];if(!_0x305a41['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x305a41['config']['get']('heading.options');const _0x6b1c0f=_0x305a41['locale'],_0x5e8353=_0x305a41['plugins']['get']('TrackChangesEditing');_0x5e8353['enableDefaultAttributesIntegration']('heading');for(const _0x495bdb of this['_headingOptions'])'paragraph'!=_0x495bdb['model']&&_0x5e8353['descriptionFactory']['registerElementLabel'](_0x495bdb['model'],_0x35f097=>{const _0x3e1a09=this['_getHeadingLevel'](_0x495bdb['model']);return null!==_0x3e1a09?_0x5ebc58(_0x35f097,_0x3e1a09):_0x378a66(_0x35f097,_0x495bdb['title']);});function _0x5ebc58(_0x217138,_0x3bf7d0){return o(_0x6b1c0f,'ELEMENT_HEADING',[_0x217138,_0x3bf7d0]);}function _0x378a66(_0x473f5b,_0x4ac440){return o(_0x6b1c0f,'ELEMENT_HEADING_CUSTOM',[_0x473f5b,_0x4ac440]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34ec27=this['editor'],_0x2b8159=_0x34ec27['locale'];function _0x43e7c7(_0x280ad4,_0x587f6f){return o(_0x2b8159,'ELEMENT_HEADING_CUSTOM',[_0x280ad4,_0x587f6f]);}_0x34ec27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x72f2c3=>{if('formatBlock'!=_0x72f2c3['type'])return;const {data:_0x49af74}=_0x72f2c3;if(_0x49af74&&'heading'==_0x49af74['commandName']){const _0x804766=_0x49af74['commandParams'][0x0]['value'],_0x44038f=this['_getHeadingLevel'](_0x804766);if(null!==_0x44038f)return{'type':'format','content':o(_0x2b8159,'*Change\x20to:*\x20%0',(_0x488a76=0x1,_0x4fca54=_0x44038f,o(_0x2b8159,'ELEMENT_HEADING',[_0x488a76,_0x4fca54])))};const _0x2e31bb=this['_headingOptions']['find'](_0x116e4e=>_0x116e4e['model']===_0x804766)['title'];return{'type':'format','content':o(_0x2b8159,'*Change\x20to:*\x20%0',_0x43e7c7(0x1,_0x2e31bb))};}var _0x488a76,_0x4fca54;});}['_getHeadingLevel'](_0x4aede2){const _0x37986d=_0x4aede2['match'](/^heading(\d+)/);if(_0x37986d)return _0x37986d[0x1];const _0x31c74b=this['_headingOptions']?.['find'](_0x5935c6=>_0x5935c6['model']==_0x4aede2);if(_0x31c74b&&_0x31c74b['view']){const _0xaa4326=_0x31c74b['view'],_0x223382=(_0xaa4326['name']??_0xaa4326)['match'](/^h(\d+)/);if(_0x223382)return _0x223382[0x1];}return null;}}class it extends _0x51252a{['afterInit'](){const _0x41a8cb=this['editor'];if(!_0x41a8cb['plugins']['has']('HighlightEditing'))return;const _0x4fe21d=_0x41a8cb['plugins']['get']('TrackChangesEditing'),_0x17c181=_0x41a8cb['locale'];_0x4fe21d['enableDefaultAttributesIntegration']('highlight'),_0x4fe21d['registerInlineAttribute']('highlight'),_0x4fe21d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x17c181,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d9c07=this['editor'],_0x4bc092=_0x5d9c07['locale'];_0x5d9c07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x455fb1=>{if('formatInline'!=_0x455fb1['type'])return;const {data:_0x52b9a4}=_0x455fb1;if(_0x52b9a4&&'highlight'==_0x52b9a4['commandName']){const _0x385438=_0x4bc092['t'],_0x4c2588=_0x52b9a4['commandParams'][0x0]['value'];if(_0x4c2588){const _0x1283c8=_0x5d9c07['config']['get']('highlight.options')['find'](_0x2cd827=>_0x2cd827['model']==_0x4c2588),_0x5d47ea=_0x385438(_0x1283c8['title'])['toLowerCase']();return{'type':'format','content':o(_0x4bc092,'*Set\x20highlight:*\x20%0',_0x5d47ea),'color':{'value':_0x1283c8['color'],'title':_0x1283c8['title']}};}return{'type':'format','content':o(_0x4bc092,'*Remove\x20highlight*',o(_0x4bc092,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x51252a{['afterInit'](){const _0x5d8fbe=this['editor'];if(!_0x5d8fbe['plugins']['has']('HorizontalLineEditing'))return;_0x5d8fbe['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x28fdb4=_0x5d8fbe['plugins']['get']('TrackChangesEditing'),_0x187349=_0x5d8fbe['locale'];_0x28fdb4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1ef220=>o(_0x187349,'ELEMENT_HORIZONTAL_LINE',_0x1ef220)),_0x5d8fbe['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3baca2,{writer:_0x17ef17,options:_0x3f74e6})=>{if(!_0x3f74e6['showSuggestionHighlights'])return null;const _0x3c864=_0x17ef17['createContainerElement']('div'),_0x156196=_0x17ef17['createEmptyElement']('hr');return _0x17ef17['addClass']('ck-horizontal-line',_0x3c864),_0x17ef17['insert'](_0x17ef17['createPositionAt'](_0x3c864,0x0),_0x156196),_0x3c864;},'converterPriority':'high'});}}class st extends _0x51252a{['afterInit'](){const _0x22993d=this['editor'];if(!_0x22993d['plugins']['has']('HtmlEmbed'))return;const _0x15a279=_0x22993d['plugins']['get']('TrackChangesEditing'),_0x195799=_0x22993d['locale'];_0x15a279['descriptionFactory']['registerElementLabel']('rawHtml',_0x717e86=>o(_0x195799,'ELEMENT_HTML_EMBED',_0x717e86)),_0x15a279['enableDefaultAttributesIntegration']('htmlEmbed'),_0x15a279['registerBlockAttribute']('value'),_0x15a279['descriptionFactory']['registerDescriptionCallback'](_0x220756=>{if('attribute'!=_0x220756['type'])return;const {data:_0x2fabbe}=_0x220756;if(_0x2fabbe&&'value'==_0x2fabbe['key']&&_0x220756['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1bd2b7=o(_0x195799,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x195799,'*Change\x20%0\x20content*',_0x1bd2b7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x182f0a=this['editor'],_0x2e0006=_0x182f0a['locale'];_0x182f0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48181a=>{if('formatBlock'!=_0x48181a['type'])return;const {data:_0x5e9829}=_0x48181a;if(_0x5e9829&&'htmlEmbed'==_0x5e9829['commandName']){const _0x1f4ab=o(_0x2e0006,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2e0006,'*Change\x20%0\x20content*',_0x1f4ab)};}});}}class ot extends _0x51252a{['afterInit'](){const _0x5bc77d=this['editor'];if(!_0x5bc77d['plugins']['has']('ImageEditing'))return;const _0x1e3f82=_0x5bc77d['plugins']['get']('TrackChangesEditing'),_0x2a431e=_0x5bc77d['plugins']['get']('ImageUtils'),_0x1379e4=_0x5bc77d['locale'];_0x1e3f82['enableCommand']('insertImage'),_0x1e3f82['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a1082=>o(_0x1379e4,'ELEMENT_IMAGE',_0x4a1082)),_0x1e3f82['descriptionFactory']['registerElementLabel']('imageInline',_0x15ec12=>o(_0x1379e4,'ELEMENT_INLINE_IMAGE',_0x15ec12)),_0x1e3f82['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1379e4,'ELEMENT_CAPTION')),_0x5bc77d['plugins']['has']('ImageUploadEditing')&&_0x1e3f82['enableCommand']('uploadImage'),_0x5bc77d['plugins']['has']('ImageBlockEditing')&&_0x5bc77d['plugins']['has']('ImageInlineEditing')&&(_0x1e3f82['enableCommand']('imageTypeInline',(_0x2eacdb,_0xf453e0)=>{const _0x128ede=_0x2a431e['getClosestSelectedImageElement'](_0x5bc77d['model']['document']['selection']);_0x5bc77d['model']['change'](()=>{_0x1e3f82['markBlockFormat'](_0x128ede,{'commandName':'imageTypeInline','commandParams':[_0xf453e0]},[],'convertBlockImageToInline');});}),_0x1e3f82['enableCommand']('imageTypeBlock',(_0x1f5d66,_0x4c52e4)=>{_0x5bc77d['model']['change'](_0x48159e=>{let _0x1b9183=_0x2a431e['getClosestSelectedImageElement'](_0x5bc77d['model']['document']['selection']),_0x5b6b34=_0x48159e['createRangeOn'](_0x1b9183);const _0x24750c=_0x599ba6['fromPosition'](_0x5b6b34['start'],'toPrevious'),_0x15e6e8=_0x599ba6['fromPosition'](_0x5b6b34['end'],'toNext');_0x1e3f82['forceDefaultExecution'](()=>_0x1f5d66(_0x4c52e4)),_0x1b9183=_0x2a431e['getClosestSelectedImageElement'](_0x5bc77d['model']['document']['selection']),_0x5b6b34=_0x48159e['createRangeOn'](_0x1b9183);const _0x1bd4ae=_0x48159e['createRange'](_0x24750c,_0x15e6e8);_0x24750c['detach'](),_0x15e6e8['detach'](),_0x1e3f82['markBlockFormat'](_0x1b9183,{'commandName':'imageTypeInline','commandParams':[_0x4c52e4]},[],'convertInlineImageToBlock'),_0x1bd4ae['start']['isBefore'](_0x5b6b34['start'])&&_0x1e3f82['markInsertion'](_0x48159e['createRange'](_0x1bd4ae['start'],_0x5b6b34['start']),'convertInlineImageToBlock'),_0x5b6b34['end']['isBefore'](_0x1bd4ae['end'])&&_0x1e3f82['markInsertion'](_0x48159e['createRange'](_0x5b6b34['end'],_0x1bd4ae['end']),'convertInlineImageToBlock');});}),_0x1e3f82['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1e3f82['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1e3f82['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1e3f82['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1e3f82['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1e3f82['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x322b70])=>{const _0x37df72=_0x1e3f82['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4da2a2=_0x322b70['start'],_0x272fa5=_0x322b70['end'];const _0x5a60be=_0x5bc77d['model']['schema']['getNearestSelectionRange'](_0x4da2a2,'backward'),_0x44a357=_0x5bc77d['model']['schema']['getNearestSelectionRange'](_0x272fa5,'forward');_0x5a60be['isCollapsed']&&(_0x4da2a2=_0x5a60be['start']),_0x44a357['isCollapsed']&&(_0x272fa5=_0x44a357['end']),_0x37df72([_0x5bc77d['model']['createRange'](_0x4da2a2,_0x272fa5)]);}),_0x1e3f82['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x389448),_0x1e3f82['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x389448)),_0x5bc77d['plugins']['has']('ImageCaptionEditing')&&(_0x1e3f82['enableCommand']('toggleImageCaption',(_0x183034,_0x1c4fbe)=>{const _0x1d1a47=_0x5bc77d['plugins']['get']('ImageCaptionUtils');let _0x5a3887=_0x2a431e['getClosestSelectedImageElement'](_0x5bc77d['model']['document']['selection']),_0x2f6db5=_0x1d1a47['getCaptionFromImageModelElement'](_0x5a3887);_0x5bc77d['model']['change'](()=>{if(_0x2f6db5)return void _0x1e3f82['markDeletion'](_0x5bc77d['model']['createRangeOn'](_0x2f6db5));const _0x5db1de=_0x2a431e['isBlockImage'](_0x5a3887);_0x183034(_0x1c4fbe),_0x5a3887=_0x2a431e['getClosestSelectedImageElement'](_0x5bc77d['model']['document']['selection']),_0x2f6db5=_0x1d1a47['getCaptionFromImageModelElement'](_0x5a3887),_0x1e3f82['markInsertion'](_0x5bc77d['model']['createRangeOn'](_0x2f6db5),_0x5db1de?null:'imageCaption');});}),_0x1e3f82['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x389448));const _0x7201e7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2349da(_0x1e07af,_0x2f9a8e){const _0x4ccbe0=_0x7201e7['findIndex'](({type:_0x59df25,subType:_0x108312})=>_0x1e07af['type']==_0x59df25&&_0x1e07af['subType']==_0x108312),_0x11a6a5=_0x7201e7['findIndex'](({type:_0x2c51c4,subType:_0x453b9f})=>_0x2f9a8e['type']==_0x2c51c4&&_0x2f9a8e['subType']==_0x453b9f);if(_0x4ccbe0<0x0||_0x11a6a5<0x0)return!0x1;const _0x812935=_0x1e07af['getFirstRange'](),_0x50fbf1=_0x2f9a8e['getFirstRange']();if((0x0==_0x4ccbe0||0x1==_0x4ccbe0)&&0x2==_0x11a6a5&&_0x812935['isIntersecting'](_0x50fbf1))return!0x0;if(0x2==_0x4ccbe0&&0x3==_0x11a6a5){const _0x596ebb=_0x1e3f82['_findSuggestions'](_0x812935,'insertion')['filter'](({suggestion:_0x5b1e4d,meta:_0x7071bc})=>_0x7071bc['isOwn']&&'convertInlineImageToBlock'==_0x5b1e4d['subType']);if(_0x596ebb['length']>0x1&&_0x50fbf1['end']['isEqual'](_0x812935['start']))return!0x0;if(0x1==_0x596ebb['length']&&(_0x812935['start']['isEqual'](_0x50fbf1['end'])||_0x812935['end']['isEqual'](_0x50fbf1['start'])))return!0x0;}if(0x3==_0x4ccbe0&&0x3==_0x11a6a5&&_0x812935['start']['isBefore'](_0x50fbf1['start'])){const _0x242e31=_0x812935['end']['nodeAfter'],_0x31763b=_0x50fbf1['start']['nodeBefore'];return _0x2a431e['isBlockImage'](_0x242e31)&&_0x242e31===_0x31763b;}return!0x1;}function _0x389448(_0x4d29d9,_0x3db184){return _0x2349da(_0x4d29d9,_0x3db184)?[_0x4d29d9,_0x3db184]:_0x2349da(_0x3db184,_0x4d29d9)?[_0x3db184,_0x4d29d9]:null;}_0x5bc77d['plugins']['has']('ImageResize')&&(_0x1e3f82['enableDefaultAttributesIntegration']('resizeImage'),_0x1e3f82['registerBlockAttribute']('resizedWidth'),_0x1e3f82['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1379e4,'FORMAT_IMAGE_SIZE'))),_0x5bc77d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1e3f82['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1e3f82['registerBlockAttribute']('alt')),_0x5bc77d['plugins']['has']('PictureEditing')&&(_0x1e3f82['registerBlockAttribute']('sources'),_0x1e3f82['descriptionFactory']['registerDescriptionCallback'](_0x1b423d=>{if('attribute'!=_0x1b423d['type'])return;const {data:_0x1fcf00}=_0x1b423d;return _0x1fcf00&&'sources'==_0x1fcf00['key']?{'type':'format','content':''}:void 0x0;})),_0x5bc77d['plugins']['has']('ImageSizeAttributes')&&(_0x1e3f82['registerBlockAttribute']('width'),_0x1e3f82['registerBlockAttribute']('height'),_0x1e3f82['descriptionFactory']['registerDescriptionCallback'](_0x52993f=>{if('attribute'!=_0x52993f['type'])return;const {data:_0x2643df}=_0x52993f;return!_0x2643df||'width'!=_0x2643df['key']&&'height'!=_0x2643df['key']?void 0x0:{'type':'format','content':''};})),_0x1e3f82['descriptionFactory']['registerDescriptionCallback'](_0x1f0dd5=>{if(!!_0x7201e7['find'](({type:_0x492ffb,subType:_0x4604b6})=>_0x1f0dd5['type']==_0x492ffb&&_0x1f0dd5['subType']==_0x4604b6))return _0x1f0dd5['previous']?{}:void 0x0;}),_0x1e3f82['descriptionFactory']['registerDescriptionCallback'](_0x15eae3=>{if('insertion'==_0x15eae3['type']||'deletion'==_0x15eae3['type']){const _0x237cc9=_0x15eae3['getContainedElement']();if(_0x237cc9&&_0x237cc9['is']('element','caption'))return{'type':'insertion'==_0x15eae3['type']?'addObject':'removeObject','element':_0x237cc9,'quantity':0x1};}}),_0x1e3f82['descriptionFactory']['registerDescriptionCallback'](_0x2297a1=>'formatBlock'==_0x2297a1['type']&&'convertInlineImageToBlock'==_0x2297a1['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2297a1['type']&&'convertBlockImageToInline'==_0x2297a1['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1e3f82['descriptionFactory']['registerDescriptionCallback'](_0x5478ac=>{if('attribute'!=_0x5478ac['type'])return;const {data:_0x1f608e}=_0x5478ac;if(!_0x1f608e||'alt'!=_0x1f608e['key'])return;const _0xbda53e=_0x1f608e['newValue'];return _0xbda53e?{'type':'format','content':o(_0x1379e4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xbda53e+'\x22')}:{'type':'format','content':o(_0x1379e4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59633b=this['editor'],_0x1ce3d2=_0x59633b['locale'];_0x59633b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1afa07=>{if('formatBlock'!=_0x1afa07['type']&&'formatInline'!=_0x1afa07['type'])return;const {data:_0x5cdb38}=_0x1afa07;if(_0x5cdb38){if('imageTextAlternative'==_0x5cdb38['commandName']){const _0x8d4d76=_0x5cdb38['commandParams'][0x0]['newValue'];return _0x8d4d76?{'type':'format','content':o(_0x1ce3d2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x8d4d76+'\x22')}:{'type':'format','content':o(_0x1ce3d2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5cdb38['commandName']){const _0x448750=_0x5cdb38['commandParams'][0x0]['width'];return _0x448750?{'type':'format','content':o(_0x1ce3d2,'*Set\x20image\x20width:*\x20%0',_0x448750)}:{'type':'format','content':o(_0x1ce3d2,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x51252a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x533dc8=this['editor']['locale'],_0x555dea=this['editor']['plugins']['get']('TrackChangesEditing');_0x555dea['enableDefaultAttributesIntegration']('replaceImageSource'),_0x555dea['registerBlockAttribute']('src'),_0x555dea['descriptionFactory']['registerDescriptionCallback'](_0xda7bc0=>{if('attribute'!=_0xda7bc0['type'])return;const {data:_0x15445c}=_0xda7bc0;return _0x15445c&&'src'==_0x15445c['key']?_0x15445c['newValue']&&_0x15445c['oldValue']?{'type':'format','content':o(_0x533dc8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5246fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x5246fb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5246fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5246fb['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5246fb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x246a41=this['editor'],_0x478ae4=_0x246a41['locale'];_0x246a41['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e7e75=>{if('formatBlock'!=_0x2e7e75['type']&&'formatInline'!=_0x2e7e75['type'])return;const {data:_0x75b901}=_0x2e7e75;if(!_0x75b901||'replaceImageSource'!=_0x75b901['commandName'])return;return{'type':'format','content':o(_0x478ae4,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x51252a{['afterInit'](){const _0x404116=this['editor'];if(!_0x404116['plugins']['has']('ImageStyleEditing'))return;const _0x22585c=_0x404116['plugins']['get']('TrackChangesEditing'),_0x240cb1=_0x404116['plugins']['get']('ImageUtils'),_0x48a198={};_0x22585c['enableCommand']('imageStyle',(_0x4c9251,_0xd81f7a)=>{const _0x43ab19=_0x404116['plugins']['get']('Users')['me'],_0x4f1313=_0x404116['commands']['get']('imageStyle');let _0x14c2cc=_0x240cb1['getClosestSelectedImageElement'](_0x404116['model']['document']['selection']),_0x53f021=_0x404116['model']['createRangeOn'](_0x14c2cc),_0x24c954=_0x4f1313['value'];if(_0x24c954==_0xd81f7a['value'])return;const _0xdd704a={'commandName':'imageStyle','commandParams':[_0xd81f7a],'formatGroupId':_0x56f9d6()};_0x404116['model']['change'](()=>{if(_0x22585c['getSuggestions']()['filter'](_0x5b6212=>_0x5b6212['isInContent']&&_0x43ab19==_0x5b6212['author']&&('formatBlock'==_0x5b6212['type']||'formatInline'==_0x5b6212['type'])&&('imageStylePreApply'==_0x5b6212['subType']||'imageStylePostApply'==_0x5b6212['subType'])&&_0x5b6212['getFirstRange']()['isEqual'](_0x53f021))['forEach'](_0x54af6d=>_0x22585c['discardSuggestion'](_0x54af6d['head'])),_0x14c2cc=_0x240cb1['getClosestSelectedImageElement'](_0x404116['model']['document']['selection']),_0x53f021=_0x404116['model']['createRangeOn'](_0x14c2cc),_0x4f1313['refresh'](),_0x404116['commands']['get']('imageTypeInline')['refresh'](),_0x404116['commands']['get']('imageTypeBlock')['refresh'](),_0x24c954=_0x4f1313['value'],_0x24c954!=_0xd81f7a['value'])return _0x240cb1['isInlineImage'](_0x14c2cc)&&_0x4f1313['shouldConvertImageType'](_0xd81f7a['value'],_0x14c2cc)?(_0x4c9251({..._0xd81f7a,'setImageSizes':!0x1}),_0x14c2cc=_0x240cb1['getClosestSelectedImageElement'](_0x404116['model']['document']['selection']),void _0x22585c['markBlockFormat'](_0x14c2cc,{..._0xdd704a,'commandReversedParams':[{'value':_0x24c954||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x240cb1['isBlockImage'](_0x14c2cc)?_0x22585c['markBlockFormat'](_0x14c2cc,_0xdd704a,[],'imageStylePostApply'):_0x22585c['markInlineFormat'](_0x53f021,_0xdd704a,'imageStylePostApply'));});});for(const _0x1d034e of _0x404116['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x48a198[_0x1d034e['name']]=_0x1d034e['title']['toLowerCase']();_0x22585c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x22585c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x22585c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x22585c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x55691c])=>{_0x240cb1['setImageNaturalSizeAttributes'](_0x55691c['getContainedElement']());}),_0x22585c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3f378e,_0x59ca51)=>{_0x22585c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3f378e,{'commandName':_0x59ca51['commandName'],'commandParams':_0x59ca51['commandReversedParams']});}),_0x22585c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xec5149,_0x5f1c98){if(_0x5bdb6d(_0xec5149,_0x5f1c98))return[_0xec5149,_0x5f1c98];if(_0x5bdb6d(_0x5f1c98,_0xec5149))return[_0x5f1c98,_0xec5149];return null;});const _0x27e844=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5bdb6d(_0x1ae4da,_0x1a7111){const _0x2598e5=_0x27e844['findIndex'](({type:_0x52a969,subType:_0xf75908})=>_0x1ae4da['type']==_0x52a969&&_0x1ae4da['subType']==_0xf75908),_0x32b0f5=_0x27e844['findIndex'](({type:_0x43f0ac,subType:_0x317b41})=>_0x1a7111['type']==_0x43f0ac&&_0x1a7111['subType']==_0x317b41);if(_0x2598e5<0x0||_0x32b0f5<0x0)return!0x1;const _0x41e6e2=_0x1ae4da['getFirstRange'](),_0x1bbbea=_0x1a7111['getFirstRange']();if((0x0==_0x2598e5||0x1==_0x2598e5)&&0x2==_0x32b0f5&&_0x41e6e2['isIntersecting'](_0x1bbbea))return!0x0;if(0x2==_0x2598e5&&0x3==_0x32b0f5){const _0x30a2d5=_0x22585c['_findSuggestions'](_0x41e6e2,'insertion')['filter'](({suggestion:_0x28a3b5,meta:_0x47c10c})=>_0x47c10c['isOwn']&&'convertInlineImageToBlock'==_0x28a3b5['subType']);if(_0x30a2d5['length']>0x1&&_0x1bbbea['end']['isEqual'](_0x41e6e2['start']))return!0x0;if(0x1==_0x30a2d5['length']&&(_0x41e6e2['start']['isEqual'](_0x1bbbea['end'])||_0x41e6e2['end']['isEqual'](_0x1bbbea['start'])))return!0x0;}if(0x3==_0x2598e5&&0x3==_0x32b0f5&&_0x41e6e2['start']['isBefore'](_0x1bbbea['start'])){const _0x178d75=_0x41e6e2['end']['nodeAfter'],_0x2404ba=_0x1bbbea['start']['nodeBefore'];return _0x240cb1['isBlockImage'](_0x178d75)&&_0x178d75===_0x2404ba;}return!0x1;}_0x404116['model']['document']['registerPostFixer'](()=>{let _0x5c0e30=!0x1;const _0x1a4b2d=Array['from'](_0x404116['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x46ea82,data:_0xa429e1}of _0x1a4b2d){const {group:_0x4cf58e,type:_0x4374f4,subType:_0x5ba3a0,id:_0x5f011f}=_0x22585c['_splitMarkerName'](_0x46ea82);if('suggestion'==_0x4cf58e&&_0x22585c['hasSuggestion'](_0x5f011f)){if('formatBlock'==_0x4374f4&&('imageStylePreApply'==_0x5ba3a0||'imageStylePostApply'==_0x5ba3a0)){const _0x4ff9e5=_0x22585c['getSuggestion'](_0x5f011f);if(_0xa429e1['newRange']){const _0x4c6df=_0x4ff9e5['getFirstRange']()['getContainedElement']();if(_0x240cb1['isBlockImage'](_0x4c6df))continue;_0x22585c['discardSuggestion'](_0x4ff9e5),_0x5c0e30=!0x0;}}if('insertion'==_0x4374f4&&'imageCaption'==_0x5ba3a0&&!_0xa429e1['newRange']){const _0x57c41b=_0x22585c['getSuggestion'](_0x5f011f);_0x57c41b['next']&&_0x57c41b['next']['isInContent']&&(_0x22585c['discardSuggestion'](_0x57c41b['next']),_0x5c0e30=!0x0);}}}return _0x5c0e30;}),this['_registerLegacyDescription'](_0x48a198);}['_registerLegacyDescription'](_0x437f5f){const _0xab5f36=this['editor'],_0x2b8163=_0xab5f36['locale'];_0xab5f36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5084ac=>{if('formatBlock'!=_0x5084ac['type']&&'formatInline'!=_0x5084ac['type'])return;const {data:_0x518da7}=_0x5084ac;if(!_0x518da7||'imageStyle'!=_0x518da7['commandName'])return;const _0x323cba=_0x518da7['commandParams'][0x0]['value'];return _0x1f62be('side'===_0x323cba?o(_0x2b8163,'FORMAT_SIDE_IMAGE'):_0x437f5f[_0x323cba]||_0x323cba);function _0x1f62be(_0x45703e){return{'type':'format','content':o(_0x2b8163,'*Format:*\x20%0',_0x45703e)};}});}}class ct extends _0x51252a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x50d4e7){super(_0x50d4e7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5491e1=this['editor'],_0x3846c9=_0x5491e1['commands']['get']('importWord'),_0x4eb72d=_0x5491e1['commands']['get']('trackChanges');_0x3846c9&&(_0x3846c9['on']('execute',(_0x58342a,[,_0x14a8e8])=>{this['_trackChangesValueDuringImport']=_0x4eb72d['value'],_0x14a8e8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3846c9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3846c9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4eb72d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5491e1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x862b3,_0x57a72c){const {suggestions:_0x28908d}=_0x57a72c,_0x26146a=this['editor']['commands']['get']('trackChanges'),_0x4c364a=_0x26146a['value'];this['_trackChangesValueDuringImport']!==_0x4c364a&&(_0x26146a['execute'](),this['_trackChangesExecuted']=!0x0),_0x28908d&&_0x28908d['forEach'](({id:_0x23bb5d,type:_0x3ec2b0,author:_0x4b3b26,created_at:_0x1e5228})=>{const _0xe6d494={'id':_0x23bb5d,'type':_0x3ec2b0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4b3b26,'createdAt':_0x1e5228?new Date(_0x1e5228):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xe6d494);});}}class ut extends _0x51252a{['afterInit'](){const _0x5d0e86=this['editor'],_0xdd7ad6=_0x5d0e86['plugins']['get']('TrackChangesEditing');if(_0x5d0e86['plugins']['has']('IndentEditing')&&(_0xdd7ad6['enableCommand']('indent'),_0xdd7ad6['enableCommand']('outdent')),_0x5d0e86['plugins']['has']('IndentBlock')){for(const _0x3695fe of['indentBlock','outdentBlock'])_0xdd7ad6['enableDefaultAttributesIntegration'](_0x3695fe);}const _0x25487c=_0x5d0e86['locale'];_0xdd7ad6['registerBlockAttribute']('blockIndent'),_0xdd7ad6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x25487c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9ba1=this['editor'],_0x10060b=_0x4d9ba1['locale'],_0x24994c=_0x4d9ba1['plugins']['get']('TrackChangesEditing');_0x24994c['descriptionFactory']['registerDescriptionCallback'](_0x1927f6=>{if('formatBlock'!=_0x1927f6['type'])return;const {data:_0x5c9abf}=_0x1927f6;if(!_0x5c9abf)return;if('indentBlock'!=_0x5c9abf['commandName']&&'outdentBlock'!=_0x5c9abf['commandName'])return;const _0x33a82d=_0x1927f6['getItems']()[0x0],_0x30ce55=_0x24994c['descriptionFactory']['getItemLabel'](_0x33a82d);return'indentBlock'==_0x5c9abf['commandName']?{'type':'format','content':o(_0x10060b,'*Indent:*\x20%0',_0x30ce55)}:'outdentBlock'==_0x5c9abf['commandName']?{'type':'format','content':o(_0x10060b,'*Outdent:*\x20%0',_0x30ce55)}:void 0x0;});}}class ft extends _0x51252a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x51252a{['afterInit'](){const _0x1f6656=this['editor'];if(!_0x1f6656['plugins']['has']('LinkEditing'))return;const _0x26127d=_0x1f6656['plugins']['get']('TrackChangesEditing'),_0x11d4e4=_0x1f6656['commands']['get']('link');_0x26127d['enableDefaultAttributesIntegration']('link'),_0x26127d['enableDefaultAttributesIntegration']('unlink'),_0x26127d['registerInlineAttribute']('linkHref');for(const _0x256557 of _0x11d4e4['manualDecorators'])_0x26127d['registerInlineAttribute'](_0x256557['id']),_0x26127d['descriptionFactory']['registerAttributeLabel'](_0x256557['id'],'link\x20('+_0x256557['label']['toLowerCase']()+')');_0x26127d['descriptionFactory']['registerDescriptionCallback'](_0x1eda86=>{if('attribute'!=_0x1eda86['type'])return;const {data:_0x5c279d}=_0x1eda86;if(!_0x5c279d||'linkHref'!=_0x5c279d['key'])return;const _0x14837f=_0x5c279d['newValue'],_0x20d2a2=_0x1f6656['locale'];return{'type':'format','content':null==_0x14837f?o(_0x20d2a2,'*Remove\x20link*'):o(_0x20d2a2,'*Set\x20link:*\x20%0','\x22'+_0x14837f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x409de6=this['editor'],_0x24cbc7=_0x409de6['locale'];_0x409de6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bf634=>{if('formatInline'!=_0x1bf634['type'])return;const {data:_0x34ac98}=_0x1bf634;if(_0x34ac98){if('link'==_0x34ac98['commandName']){const _0x114da7=_0x34ac98['commandParams'][0x0];return{'type':'format','content':o(_0x24cbc7,'*Set\x20link:*\x20%0','\x22'+_0x114da7+'\x22')};}return'unlink'==_0x34ac98['commandName']?{'type':'format','content':o(_0x24cbc7,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x51252a{['afterInit'](){const _0x1b2954=this['editor'],_0x397fce=_0x1b2954['locale'];if(!_0x1b2954['plugins']['has']('LegacyListEditing'))return;const _0x4eafb8=_0x1b2954['plugins']['get']('TrackChangesEditing'),_0x4f0fd1=_0x1b2954['plugins']['has']('LegacyTodoListEditing');function _0x3db38f(_0x5bb582){return()=>{const _0x4917e4=_0x1b2954['model']['document']['selection'],_0x2eb9ad=_0x1b2954['commands']['get'](_0x5bb582);if(_0x2eb9ad['value'])return void _0x1b2954['execute']('paragraph',{});const _0x494d55=_0x5bb582['slice'](0x0,-0x4),_0x48fd65=function(_0x59625a,_0x223927,_0x5965ad){let _0xfd8cde=Array['from'](_0x59625a)['filter'](_0x5b15b6=>function(_0x48daad,_0x3f46cc){return _0x3f46cc['checkChild'](_0x48daad['parent'],'listItem')&&!_0x3f46cc['isObject'](_0x48daad);}(_0x5b15b6,_0x5965ad));_0xfd8cde=_0xfd8cde['filter'](_0x3aed14=>!_0x3aed14['is']('element','listItem')||_0x3aed14['getAttribute']('listType')!=_0x223927);const _0x4866da=new Set();for(const _0x58c549 of _0xfd8cde)_0x58c549['is']('element','listItem')?_0x4866da['add'](Le(_0x58c549)):_0x4866da['add'](_0x58c549);return Array['from'](_0x4866da);}(_0x4917e4['getSelectedBlocks'](),_0x494d55,_0x1b2954['model']['schema']);_0x1b2954['model']['change'](()=>{for(const _0x30fbfa of _0x48fd65)_0x4eafb8['markBlockFormat'](_0x30fbfa,{'commandName':_0x5bb582,'commandParams':[{'forceValue':!_0x2eb9ad['value']}],'formatGroupId':'blockName'},Ee(_0x30fbfa));});};}function _0x57910e(_0x43b980){return()=>{const _0x196940=function(_0x33c252){let _0x232dfb=Array['from'](_0x33c252);const _0x4374e8=_0x232dfb['findIndex'](_0x563503=>'listItem'!=_0x563503['name']);return _0x4374e8>-0x1&&(_0x232dfb=_0x232dfb['slice'](0x0,_0x4374e8)),_0x232dfb;}(_0x1b2954['model']['document']['selection']['getSelectedBlocks']()),_0x22b535=_0x1b2954['model']['createRange'](_0x1b2954['model']['createPositionAt'](_0x196940[0x0],'before'),_0x1b2954['model']['createPositionAt'](_0x196940[_0x196940['length']-0x1],'end'));_0x1b2954['model']['change'](()=>{_0x4eafb8['markBlockFormat'](_0x22b535,{'commandName':_0x43b980,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2093fc){const _0x3abfc3=new Set();for(const _0x16ccaa of _0x2093fc){let _0x12daf6=_0x16ccaa['nextSibling'];for(;_0x12daf6&&_0x12daf6['getAttribute']('listIndent')>_0x16ccaa['getAttribute']('listIndent');)_0x3abfc3['add'](_0x12daf6),_0x12daf6=_0x12daf6['nextSibling'];}return Array['from'](_0x3abfc3);}(_0x196940));});};}_0x4eafb8['enableCommand']('numberedList',_0x3db38f('numberedList')),_0x4eafb8['enableCommand']('bulletedList',_0x3db38f('bulletedList')),_0x4f0fd1&&_0x4eafb8['enableCommand']('todoList',_0x3db38f('todoList')),_0x4eafb8['enableCommand']('indentList',_0x57910e('indentList')),_0x4eafb8['enableCommand']('outdentList',_0x57910e('outdentList')),_0x4f0fd1&&_0x4eafb8['enableCommand']('checkTodoList',()=>{const _0xa28bb7=_0x1b2954['commands']['get']('checkTodoList'),_0x10c98c=Array['from'](_0xa28bb7['_selectedElements']);_0x10c98c['filter'](_0x14b8fd=>_0x14b8fd['getAttribute']('todoListChecked')!=_0xa28bb7['value']),_0x1b2954['model']['change'](()=>{for(const _0x542766 of _0x10c98c)_0x4eafb8['markBlockFormat'](_0x542766,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xa28bb7['value']}]});});}),_0x4eafb8['descriptionFactory']['registerElementLabel']('listItem',_0x3cb9b3=>o(_0x397fce,'ELEMENT_LIST_ITEM',_0x3cb9b3)),_0x4eafb8['descriptionFactory']['registerDescriptionCallback'](_0x36c85b=>{if('formatBlock'!=_0x36c85b['type']&&'formatInline'!=_0x36c85b['type'])return;const {data:_0x15eca9}=_0x36c85b;if(_0x15eca9){if('numberedList'==_0x15eca9['commandName']||'bulletedList'==_0x15eca9['commandName']||'todoList'==_0x15eca9['commandName'])switch(_0x15eca9['commandName']['replace']('List','')){case'bulleted':return _0x45f191(o(_0x397fce,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x45f191(o(_0x397fce,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x45f191(o(_0x397fce,'ELEMENT_TODO_LIST'));}if('indentList'==_0x15eca9['commandName'])return{'type':'format','content':o(_0x397fce,'*Indent:*\x20%0',o(_0x397fce,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x15eca9['commandName'])return{'type':'format','content':o(_0x397fce,'*Outdent:*\x20%0',o(_0x397fce,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x15eca9['commandName'])return _0x15eca9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x397fce,'*Check\x20item*')}:{'type':'format','content':o(_0x397fce,'*Uncheck\x20item*')};}function _0x45f191(_0x1d4cac){return{'type':'format','content':o(_0x397fce,'*Change\x20to:*\x20%0',_0x1d4cac)};}});}}function Le(_0x105ca2){const _0x4904a7=_0x105ca2['getAttribute']('listIndent');if(0x0==_0x4904a7)return _0x105ca2;let _0x5a4344=_0x105ca2;for(;_0x105ca2['previousSibling']&&_0x105ca2['previousSibling']['is']('element','listItem');){const _0x257cbb=_0x105ca2['previousSibling']['getAttribute']('listIndent');if(_0x257cbb==_0x4904a7)_0x5a4344=_0x105ca2['previousSibling'];else{if(_0x257cbb<_0x4904a7)break;}_0x105ca2=_0x105ca2['previousSibling'];}return _0x5a4344;}function Ee(_0x1153b6){const _0x4c399e=[];if(_0x1153b6['is']('element','listItem')&&_0x1153b6['getAttribute']('listIndent')>0x0){let _0x41e871=_0x1153b6['nextSibling'];for(;_0x41e871&&'listItem'==_0x41e871['name']&&_0x41e871['getAttribute']('listIndent')==_0x1153b6['getAttribute']('listIndent');)_0x4c399e['push'](_0x41e871),_0x41e871=_0x41e871['nextSibling'];}return _0x4c399e;}class Q extends _0x51252a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x487d35=this['editor']['config']['get']('list.properties'),_0x3d7328=this['editor']['plugins']['get']('TrackChangesEditing');_0x487d35['styles']&&_0x3d7328['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x487d35['reversed']&&_0x3d7328['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x487d35['startIndex']&&_0x3d7328['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3d7328['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4c403c,_0x5dec2b={}){const _0x41195b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bd597=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x41195b['markMultiRangeBlockFormat'](_0x5bd597,{'commandName':'listStyle','commandParams':[{'type':_0x5dec2b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d2cbf,_0x5a6180={}){const _0x24e919=this['editor']['plugins']['get']('TrackChangesEditing'),_0x335ad8=this['_getSuggestionBlocks'](_0x4e2b6d=>_0x4e2b6d['is']('element','listItem')&&'numbered'===_0x4e2b6d['getAttribute']('listType'));if(_0x335ad8['length']<0x1)return;const _0x1b2f46=_0x335ad8['map'](_0x43612a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x43612a,'before'),this['editor']['model']['createPositionAt'](_0x43612a,0x0)));this['editor']['model']['change'](()=>{_0x24e919['markMultiRangeBlockFormat'](_0x1b2f46,{'commandName':'listReversed','commandParams':[{'reversed':_0x5a6180['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1d168f,_0x147a17={}){const _0x2df007=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ebd11=this['_getSuggestionBlocks'](_0x2da3fe=>_0x2da3fe['is']('element','listItem')&&'numbered'===_0x2da3fe['getAttribute']('listType'));if(_0x1ebd11['length']<0x1)return;const _0x379925=_0x1ebd11['map'](_0x5e7b6d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e7b6d,'before'),this['editor']['model']['createPositionAt'](_0x5e7b6d,0x0)));this['editor']['model']['change'](()=>{_0x2df007['markMultiRangeBlockFormat'](_0x379925,{'commandName':'listStart','commandParams':[{'startIndex':_0x147a17['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2eaf8a){if('formatBlock'!=_0x2eaf8a['type']&&'formatInline'!=_0x2eaf8a['type'])return;const _0x37ad06=this['editor']['locale'],{data:_0x451812}=_0x2eaf8a;if(!_0x451812)return;let _0x108c6c,_0x4b6407;switch(_0x451812['commandName']){case'listStyle':_0x108c6c='*Change\x20to:*\x20%0',_0x4b6407={'type':'format','content':o(_0x37ad06,_0x108c6c,o(_0x37ad06,this['_getTranslationKeyForListStyle'](_0x451812['commandParams'][0x0]['type'])))};break;case'listReversed':_0x108c6c=_0x451812['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b6407={'type':'format','content':o(_0x37ad06,_0x108c6c)};break;case'listStart':_0x108c6c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b6407={'type':'format','content':o(_0x37ad06,_0x108c6c,_0x451812['commandParams'][0x0]['startIndex'])};}return _0x4b6407;}['_getSuggestionBlocksForListStyle'](){const _0x3652fa=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b3019=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5b3019[0x0]?.['is']('element','listItem')&&_0x5b3019['unshift'](..._0x3652fa['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5b3019[_0x5b3019['length']-0x1]?.['is']('element','listItem')&&_0x5b3019['push'](..._0x3652fa['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5b3019=[...new Set(_0x5b3019)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5b3019=_0x5b3019['filter'](_0x56d607=>_0x56d607['is']('element','listItem'))),_0x5b3019;}['_getSuggestionBlocks'](_0x3591e8){const _0x537057=this['editor']['plugins']['get']('LegacyListUtils');let _0x31c960=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3591e8)['map'](_0x295605=>{const _0x566b51=this['editor']['model']['createPositionAt'](_0x295605,0x0);return[..._0x537057['getSiblingNodes'](_0x566b51,'backward'),..._0x537057['getSiblingNodes'](_0x566b51,'forward')];})['flat']();return _0x31c960=[...new Set(_0x31c960)],_0x31c960;}['_getTranslationKeyForListStyle'](_0x1f599f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1f599f)||'default')['toUpperCase']()+'_LIST_'+_0x1f599f['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x51252a{['afterInit'](){const _0x3ad624=this['editor'];if(!_0x3ad624['plugins']['has']('MediaEmbedEditing'))return;const _0x4766ef=_0x3ad624['plugins']['get']('TrackChangesEditing'),_0x2ae425=_0x3ad624['locale'];_0x4766ef['enableCommand']('mediaEmbed'),_0x4766ef['descriptionFactory']['registerElementLabel']('media',_0x25a373=>o(_0x2ae425,'ELEMENT_MEDIA',_0x25a373)),_0x3ad624['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x17669,{writer:_0x517066,options:_0x30b74e})=>{if(_0x30b74e['showSuggestionHighlights'])return _0x517066['createEmptyElement']('div');},'converterPriority':'high'}),_0x3ad624['data']['downcastDispatcher']['on']('attribute:url:media',(_0x24bc57,_0x3e5644,_0x2368a2)=>{_0x2368a2['options']['showSuggestionHighlights']&&_0x24bc57['stop']();},{'priority':'high'});}}class mt extends _0x51252a{['afterInit'](){const _0x35b55c=this['editor'];_0x35b55c['plugins']['has']('MentionEditing')&&_0x35b55c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x51252a{['afterInit'](){const _0xfea118=this['editor'];if(!_0xfea118['plugins']['has']('MergeFieldsEditing'))return;const _0x5c1e7c=_0xfea118['plugins']['get']('TrackChangesEditing'),_0x4fbbfb=_0xfea118['locale'];_0x5c1e7c['enableCommand']('insertMergeField'),_0x5c1e7c['enableCommand']('insertMergeFieldBlock'),_0x5c1e7c['enableCommand']('insertMergeFieldImage'),_0x5c1e7c['descriptionFactory']['registerElementLabel']('mergeField',_0x250fe7=>o(_0x4fbbfb,'ELEMENT_MERGE_FIELD',_0x250fe7)),_0x5c1e7c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x37ad8a=>o(_0x4fbbfb,'ELEMENT_MERGE_FIELD',_0x37ad8a)),_0x5c1e7c['descriptionFactory']['registerDescriptionCallback'](_0x49985f=>{if('insertion'!=_0x49985f['type']&&'deletion'!=_0x49985f['type'])return;const _0x55a234=_0x49985f['getContainedElement']();if(null==_0x55a234)return;const _0x259747=_0xfea118['plugins']['get']('MergeFieldsEditing');let _0x2e183f;switch(_0x259747['getMergeFieldType'](_0x55a234)){case null:return;case'image':{const _0x1bb08e=_0x259747['unwrapAffixes'](_0x55a234['getAttribute']('src'));_0x2e183f=_0x259747['getLabel'](_0x1bb08e)||_0x1bb08e;break;}default:{const _0x59f5f0=_0x55a234['getAttribute']('id');_0x2e183f=_0x259747['getLabel'](_0x59f5f0)||_0x59f5f0;break;}}return'insertion'==_0x49985f['type']?{'type':'insertion','content':o(_0x4fbbfb,'*Insert:*\x20%0','\x22'+_0x2e183f+'\x22\x20'+o(_0x4fbbfb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4fbbfb,'*Remove:*\x20%0','\x22'+_0x2e183f+'\x22\x20'+o(_0x4fbbfb,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x51252a{['afterInit'](){const _0x83b501=this['editor'],_0xf6ac57=_0x83b501['plugins']['get']('TrackChangesEditing');_0x83b501['plugins']['has']('MultiLevelList')&&(_0xf6ac57['enableDefaultAttributesIntegration']('multiLevelList'),_0xf6ac57['registerBlockAttribute']('listMarkerStyle'),_0xf6ac57['descriptionFactory']['registerDescriptionCallback'](_0x1f8d76=>this['handleDescriptions'](_0x1f8d76)));}['handleDescriptions'](_0x21c94e){const _0x5c5ce9=this['editor']['locale'],{data:_0x3c93ca}=_0x21c94e,_0x15fd81={'type':'format','content':''};if(_0x3c93ca&&'listMarkerStyle'==_0x3c93ca['key']){if(!_0x3c93ca['oldValue'])return{'type':'format','content':o(_0x5c5ce9,'*Set\x20format:*\x20%0',o(_0x5c5ce9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c93ca['newValue']+')'};if(!_0x3c93ca['newValue']){let _0x19c855=_0x21c94e['head'];for(;_0x19c855;){if(_0x19c855['data']&&'listType'==_0x19c855['data']['key']&&_0x19c855['data']['newValue'])return _0x15fd81;_0x19c855=_0x19c855['next'];}return{'type':'format','content':o(_0x5c5ce9,'*Remove\x20format:*\x20%0',o(_0x5c5ce9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c93ca['oldValue']+')'};}}}}class kt extends _0x51252a{['afterInit'](){const _0x38782f=this['editor'];if(!_0x38782f['plugins']['has']('PageBreakEditing'))return;_0x38782f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3c90be=_0x38782f['plugins']['get']('TrackChangesEditing'),_0x35c1e0=_0x38782f['locale'];_0x3c90be['descriptionFactory']['registerElementLabel']('pageBreak',_0x335976=>o(_0x35c1e0,'ELEMENT_PAGE_BREAK',_0x335976));}}class bt extends _0x51252a{['afterInit'](){const _0x9759e2=this['editor'];if(!_0x9759e2['plugins']['has']('Paragraph'))return;const _0x13e810=_0x9759e2['locale'],_0x29b8b1=_0x9759e2['plugins']['get']('TrackChangesEditing');_0x29b8b1['descriptionFactory']['registerElementLabel']('paragraph',_0x3ad343=>o(_0x13e810,'ELEMENT_PARAGRAPH',_0x3ad343)),_0x29b8b1['enableDefaultAttributesIntegration']('paragraph'),_0x29b8b1['enableCommand']('insertParagraph'),_0x9759e2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x9759e2),{'priority':'highest'}),_0x9759e2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x125d0c,_0x4fbb58,_0x4eda6e)=>{_0x4eda6e['options']['showSuggestionHighlights']&&nr(_0x9759e2,{'showActiveMarker':!0x1})(_0x125d0c,_0x4fbb58,_0x4eda6e);},{'priority':'highest'});const _0x6a80e2=_0x29b8b1['descriptionFactory'];_0x6a80e2['registerDescriptionCallback'](_0x3317d9=>{if('insertion'!==_0x3317d9['type'])return;const {start:_0x12aa37,end:_0x25ae40}=_0x3317d9['getFirstRange']();if(!_0x12aa37['isTouching'](_0x25ae40)||!_0x12aa37['nodeAfter'])return;const _0x593925=_0x9759e2['model']['schema'],_0x34ad5e=_0x12aa37['nodeAfter'];return _0x593925['isBlock'](_0x34ad5e)&&!_0x593925['isLimit'](_0x34ad5e)&&_0x593925['checkChild'](_0x34ad5e,'$text')?{'type':'insertion','content':o(_0x13e810,'*Insert:*\x20%0',_0x6a80e2['getItemLabel'](_0x34ad5e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb5138f=this['editor'],_0x5811e1=_0xb5138f['locale'];_0xb5138f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ec0f4=>{if('formatBlock'!=_0x4ec0f4['type'])return;const {data:_0x161089}=_0x4ec0f4;return _0x161089&&'paragraph'==_0x161089['commandName']?{'type':'format','content':o(_0x5811e1,'*Change\x20to:*\x20%0',o(_0x5811e1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x314af0,{showActiveMarker:_0x54de0a=!0x0}={}){return(_0x28ee6f,_0x17527c,_0x26454a)=>{const _0x28e31a=_0x314af0['plugins']['get']('TrackChangesEditing'),_0x7678f0=_0x17527c['markerRange']['start'],_0x527b6e=_0x17527c['markerRange']['end'],_0xa1332=_0x314af0['model']['schema'];if(!_0x7678f0['isTouching'](_0x527b6e)||!_0x7678f0['nodeAfter'])return;const _0x5da4df=_0x7678f0['nodeAfter'];if(_0xa1332['isBlock'](_0x5da4df)&&!_0xa1332['isLimit'](_0x5da4df)&&_0xa1332['checkChild'](_0x5da4df,'$text')){if(!_0x26454a['consumable']['consume'](_0x17527c['markerRange'],_0x28ee6f['name']))return;const {authorId:_0x14a5ce}=_0x28e31a['_splitMarkerName'](_0x17527c['markerName']),_0x1de3a2=_0x26454a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x14a5ce}),_0x1b6b15=_0x26454a['mapper']['toViewPosition'](_0x527b6e);_0x54de0a&&_0x28e31a['activeMarkers']['includes'](_0x17527c['markerName'])&&_0x26454a['writer']['addClass']('ck-suggestion-marker--active',_0x1de3a2),_0x26454a['writer']['insert'](_0x1b6b15,_0x1de3a2),_0x26454a['mapper']['bindElementToMarker'](_0x1de3a2,_0x17527c['markerName']);}};}class yt extends _0x51252a{['afterInit'](){const _0x268adb=this['editor'];if(!_0x268adb['plugins']['has']('RemoveFormatEditing'))return;_0x268adb['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x19b01c=this['editor'];_0x19b01c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b2421=>{if('formatBlock'!=_0x5b2421['type']&&'formatInline'!=_0x5b2421['type'])return;const {data:_0x26f4dd}=_0x5b2421;return _0x26f4dd&&'removeFormat'==_0x26f4dd['commandName']?{'type':'format','content':o(_0x19b01c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x51252a{['afterInit'](){const _0x2e2ee0=this['editor'];if(!_0x2e2ee0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x32dd28=_0x2e2ee0['plugins']['get']('TrackChangesEditing');_0x32dd28['enableCommand']('goToPreviousRestrictedEditingException'),_0x32dd28['enableCommand']('goToNextRestrictedEditingException');const _0x35a063=_0x2e2ee0['plugins']['get']('RestrictedEditingModeEditing');_0x35a063['enableCommand']('trackChanges'),_0x35a063['enableCommand']('acceptSuggestion'),_0x35a063['enableCommand']('discardSuggestion'),_0x35a063['enableCommand']('acceptAllSuggestions'),_0x35a063['enableCommand']('discardAllSuggestions'),_0x35a063['enableCommand']('acceptSelectedSuggestions'),_0x35a063['enableCommand']('discardSelectedSuggestions');}}class St extends _0x51252a{static get['requires'](){return[_0xa1ebb7];}['init'](){const _0x8ba477=this['editor'],_0x368b89=_0x8ba477['plugins']['get']('TrackChangesEditing');_0x368b89['enableCommand']('shiftEnter'),_0x8ba477['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x8ba477),{'priority':'high'}),_0x8ba477['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x8ba477),{'priority':'high'}),_0x8ba477['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x500139,_0x5c9aa2,_0x4b8c55)=>{_0x4b8c55['options']['showSuggestionHighlights']&&je(_0x8ba477,{'showActiveMarker':!0x1})(_0x500139,_0x5c9aa2,_0x4b8c55);}),_0x368b89['descriptionFactory']['registerElementLabel']('softBreak',_0x5dcb16=>o(_0x8ba477['locale'],'ELEMENT_LINE_BREAK',_0x5dcb16));}}function je(_0x555e68,{showActiveMarker:_0x46e6b5=!0x0}={}){return(_0x5c921d,_0x5401f2,_0x5c09f6)=>{const _0x36d162=_0x555e68['plugins']['get']('TrackChangesEditing');if(!_0x5c09f6['consumable']['test'](_0x5401f2['markerRange'],_0x5c921d['name']))return;const _0xdf3407=_0x555e68['model'];for(const _0x254220 of _0x5401f2['markerRange']['getItems']()){if(!_0x254220['is']('element','softBreak'))continue;const _0x23f4f7='deletion'==_0x5401f2['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x18a0d4}=_0x36d162['_splitMarkerName'](_0x5401f2['markerName']),_0x361f11=_0x5c09f6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23f4f7,'data-author-id':_0x18a0d4}),_0x4deca6=_0x5c09f6['mapper']['toViewPosition'](_0xdf3407['createPositionBefore'](_0x254220));_0x46e6b5&&_0x36d162['activeMarkers']['includes'](_0x5401f2['markerName'])&&_0x5c09f6['writer']['addClass']('ck-suggestion-marker--active',_0x361f11),_0x5c09f6['writer']['insert'](_0x4deca6,_0x361f11),_0x5c09f6['mapper']['bindElementToMarker'](_0x361f11,_0x5401f2['markerName']);}};}class At extends _0x51252a{['afterInit'](){const _0xf851c2=this['editor'],_0x2bcb39=_0xf851c2['model'],_0x254068=_0xf851c2['locale'];if(!_0xf851c2['plugins']['has']('StandardEditingModeEditing'))return;const _0x3dcd74=_0xf851c2['plugins']['get']('TrackChangesEditing'),_0x5f3f1f='restrictedEditingException',_0x186e86=_0xf851c2['commands']['get'](_0x5f3f1f);_0x3dcd74['enableCommand'](_0x5f3f1f,(_0x50eb8a,_0x3373ba={})=>{const _0x5c33a5=_0x2bcb39['document']['selection'];if(_0x5c33a5['isCollapsed'])return void _0x50eb8a(_0x3373ba);const _0x4fd04d=void 0x0!==_0x3373ba['forceValue']?_0x3373ba['forceValue']:!_0x186e86['value'];_0x2bcb39['change'](()=>{const _0x98e0c1=Array['from'](_0x5c33a5['getRanges']());for(const _0x551a89 of _0x98e0c1){const _0x5b950c=_0x4fd04d?[_0x551a89]:io(_0x5f3f1f,_0x551a89,_0x2bcb39);for(const _0x541a31 of _0x5b950c)_0x3dcd74['markInlineFormat'](_0x541a31,{'commandName':_0x5f3f1f,'commandParams':[{'forceValue':_0x4fd04d}]});}});}),_0x3dcd74['descriptionFactory']['registerDescriptionCallback'](_0x5bec92=>{if('formatBlock'!=_0x5bec92['type']&&'formatInline'!=_0x5bec92['type'])return;const {data:_0x5279de}=_0x5bec92;return _0x5279de&&_0x5279de['commandName']==_0x5f3f1f?_0x5279de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x254068,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x254068,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x51252a{['afterInit'](){const _0x30af23=this['editor'];if(!_0x30af23['plugins']['has']('Style')||!_0x30af23['plugins']['has']('DataSchema'))return;const _0x860524=_0x30af23['plugins']['get']('TrackChangesEditing'),_0x37fbfb=_0x30af23['locale'],_0x2bc530=_0x30af23['config']['get']('style')||{},_0x5f2cbf=_0x30af23['plugins']['get']('GeneralHtmlSupport'),_0x53f05f=_0x30af23['plugins']['get']('StyleUtils')['normalizeConfig'](_0x30af23['plugins']['get']('DataSchema'),_0x2bc530['definitions']);_0x860524['enableDefaultAttributesIntegration']('style');const _0x57a1cf=new Set();for(const _0x126543 of _0x53f05f['block']){const _0x293126=_0x5f2cbf['getGhsAttributeNameForElement'](_0x126543['element']);_0x57a1cf['add'](_0x293126);}const _0x4408d5=new Set();for(const _0x317dc1 of _0x53f05f['inline']){const _0x5f48ae=_0x5f2cbf['getGhsAttributeNameForElement'](_0x317dc1['element']);_0x4408d5['add'](_0x5f48ae);for(const _0x14339a of _0x317dc1['ghsAttributes'])_0x4408d5['add'](_0x14339a);}for(const _0xb16dbf of _0x57a1cf)_0x860524['registerBlockAttribute'](_0xb16dbf),_0x860524['descriptionFactory']['registerAttributeLabel'](_0xb16dbf,o(_0x37fbfb,'FORMAT_STYLE'));for(const _0xd16d07 of _0x4408d5)_0x860524['registerInlineAttribute'](_0xd16d07),_0x860524['descriptionFactory']['registerAttributeLabel'](_0xd16d07,o(_0x37fbfb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1090a8=this['editor'],_0x413997=_0x1090a8['locale'];_0x1090a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22fc59=>{if('formatBlock'!=_0x22fc59['type']&&'formatInline'!=_0x22fc59['type'])return;const {data:_0x3d50a2}=_0x22fc59;return _0x3d50a2&&'style'===_0x3d50a2['commandName']?_0x3d50a2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x413997,'*Set\x20format:*\x20%0',_0x3d50a2['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x413997,'*Remove\x20format:*\x20%0',_0x3d50a2['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x51252a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5ee95c){super(_0x5ee95c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x21be3e=this['editor'],_0x2a2a46=_0x21be3e['model']['document']['selection'];if(!_0x21be3e['plugins']['has']('TableEditing'))return;const _0x5570f4=_0x21be3e['locale'],_0x570b52=_0x21be3e['plugins']['get']('TrackChangesEditing'),_0x25a050=_0x21be3e['plugins']['get']('TableUtils');_0x570b52['descriptionFactory']['registerElementLabel']('table',_0x314584=>o(_0x5570f4,'ELEMENT_TABLE',_0x314584)),this['_setupColumnsRowsFixing'](),_0x570b52['enableCommand']('insertTable'),_0x570b52['enableCommand']('selectTableRow'),_0x570b52['enableCommand']('selectTableColumn');for(const _0x2a4c02 of['insertTableRowAbove','insertTableRowBelow']){const _0x1d2abd=_0x21be3e['commands']['get'](_0x2a4c02);_0x570b52['enableCommand'](_0x2a4c02,_0x1e909c=>{_0x21be3e['model']['change'](_0x4a275f=>{_0x1e909c();const _0x5d8411='above'===_0x1d2abd['order'],_0x5a5cc9=_0x25a050['getSelectionAffectedTableCells'](_0x2a2a46),_0x5c7f68=_0x25a050['getRowIndexes'](_0x5a5cc9),_0x363a86=_0x5d8411?_0x5c7f68['first']-0x1:_0x5c7f68['last']+0x1,_0x16b4ad=_0x5a5cc9[0x0]['findAncestor']('table'),_0x37cd11=_0x25a050['createTableWalker'](_0x16b4ad,{'startRow':_0x363a86,'endRow':_0x363a86}),_0x5b423f=Array['from'](_0x37cd11)['map'](_0x595ed5=>_0x4a275f['createRangeOn'](_0x595ed5['cell']));_0x570b52['markMultiRangeInsertion'](_0x5b423f,'tableRow');});});}for(const _0x132b81 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1548ec=_0x21be3e['commands']['get'](_0x132b81);_0x570b52['enableCommand'](_0x132b81,_0x526f25=>{_0x21be3e['model']['change'](_0x225508=>{_0x526f25();const _0x2e90e2='left'===_0x1548ec['order'],_0x2c51a3=_0x25a050['getSelectionAffectedTableCells'](_0x2a2a46),_0x253882=_0x25a050['getColumnIndexes'](_0x2c51a3),_0x4dc7de=_0x2e90e2?_0x253882['first']-0x1:_0x253882['last']+0x1,_0x290cf6=_0x2c51a3[0x0]['findAncestor']('table'),_0x393021=_0x25a050['createTableWalker'](_0x290cf6,{'startRow':0x0,'column':_0x4dc7de,'includeAllSlots':!0x1}),_0x28e926=Array['from'](_0x393021)['map'](_0x6c2844=>_0x225508['createRangeOn'](_0x6c2844['cell']));_0x570b52['markMultiRangeInsertion'](_0x28e926,'tableColumn');});});}for(const _0x1b694c of['removeTableRow','removeTableColumn']){const _0x25c15f=_0x1b694c['substr'](0xb),_0x5bda28=_0x25c15f['toLowerCase'](),_0x175ea8=_0x5bda28['substr'](0x0,0x3)+'span',_0x2dadf6='table'+_0x25c15f,_0x50664d='min'+_0x25c15f,_0x4f23f5='max'+_0x25c15f;_0x570b52['enableCommand'](_0x1b694c,()=>{_0x21be3e['model']['change'](_0x135be3=>{const _0x4bd285=_0x25a050['getSelectionAffectedTableCells'](_0x2a2a46),_0x19fbc4=_0x4bd285[0x0]['findAncestor']('table');let _0x5ba0d2;if('removeTableRow'==_0x1b694c){const _0x3c567e=_0x25a050['getRowIndexes'](_0x4bd285);_0x5ba0d2={'startRow':_0x3c567e['first'],'endRow':_0x3c567e['last'],'includeAllSlots':!0x0};}else{const _0x2cc84a=_0x25a050['getColumnIndexes'](_0x4bd285);_0x5ba0d2={'startColumn':_0x2cc84a['first'],'endColumn':_0x2cc84a['last'],'includeAllSlots':!0x0};}const _0x52c623=_0x25a050['createTableWalker'](_0x19fbc4,_0x5ba0d2),_0x3420c9=Array['from'](_0x52c623)['map'](({cell:_0x49c276})=>_0x49c276),_0x305b2e=Ne(_0x3420c9['filter'](_0x222c45=>_0x222c45['hasAttribute'](_0x175ea8))),_0x43f67d=Ne(_0x3420c9['filter'](_0x298a2f=>!_0x298a2f['hasAttribute'](_0x175ea8)))['map'](_0x42242b=>_0x135be3['createRangeOn'](_0x42242b)),_0x3a830e=_0x570b52['markMultiRangeDeletion'](_0x43f67d,_0x2dadf6);if(_0x3a830e&&('tableRow'==_0x3a830e['subType']||'tableColumn'==_0x3a830e['subType'])){const _0x194204=this['_getSuggestionCoords'](_0x3a830e);for(const _0x43dfb0 of _0x305b2e){const _0x36d2c2=_0x135be3['createRangeOn'](_0x43dfb0),_0x51ad5b=_0x25a050['getCellLocation'](_0x43dfb0),_0x90ecfc=_0x43dfb0['getAttribute'](_0x175ea8)-0x1,_0x481739=_0x194204[_0x50664d],_0x2a8da9=_0x194204[_0x4f23f5];_0x481739<=_0x51ad5b[_0x5bda28]&&_0x51ad5b[_0x5bda28]+_0x90ecfc<=_0x2a8da9&&_0x3a830e['addRange'](_0x36d2c2);}}});});}function _0x291252(_0x1aa4c9){const _0x4e731b=Array['from'](_0x2a2a46['getRanges']())['map'](_0x12142e=>_0x589a5b['fromRange'](_0x12142e));_0x21be3e['model']['change'](_0x1dace1=>{const _0x7f2768=_0x1dace1['batch'];_0x1aa4c9=_0x1aa4c9['filter'](_0x5d2fec=>'$graveyard'!=_0x5d2fec['root']['rootName']),_0x1dace1['setSelection'](_0x1aa4c9),_0x21be3e['commands']['get']('removeTableRow')['refresh'](),_0x21be3e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x21be3e['model']['enqueueChange'](()=>{_0x21be3e['model']['enqueueChange'](_0x7f2768,_0x28c479=>{const _0x124beb=_0x4e731b['filter'](_0x536edf=>'$graveyard'!=_0x536edf['root']['rootName']);_0x124beb['length']>0x0&&_0x28c479['setSelection'](_0x124beb);for(const _0x42e5af of _0x4e731b)_0x42e5af['detach']();});});});}function _0x37b48e(_0x6ee2c2){_0x21be3e['model']['change'](_0x10e9ce=>{const _0x22a4b8=Array['from'](_0x2a2a46['getRanges']())['map'](_0x50e6eb=>_0x589a5b['fromRange'](_0x50e6eb)),_0x486196=[];for(const _0x3dae48 of _0x6ee2c2)for(const _0x295ee7 of _0x3dae48['getItems']({'shallow':!0x0}))_0x486196['push'](_0x295ee7);for(const _0x177c54 of _0x486196)'$graveyard'!=_0x177c54['root']['rootName']&&(_0x10e9ce['setSelection'](_0x10e9ce['createPositionAt'](_0x177c54,0x0)),_0x21be3e['commands']['get']('removeTableColumn')['refresh'](),_0x21be3e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x556ec9=_0x22a4b8['filter'](_0x453234=>'$graveyard'!=_0x453234['root']['rootName']);_0x556ec9['length']>0x0&&_0x10e9ce['setSelection'](_0x556ec9);for(const _0x27b5bd of _0x22a4b8)_0x27b5bd['detach']();});}function _0xb7f5c1(_0x487c77,_0x757055){return _0x757055['every'](_0x264ee1=>_0x487c77['some'](_0x4a884f=>_0x4a884f['end']['isEqual'](_0x264ee1['start'])||_0x264ee1['end']['isEqual'](_0x4a884f['start'])));}function _0xf7c189(_0x156c6b,_0x49a841){return!_0x156c6b['some'](_0x27188e=>_0x49a841['some'](_0x1a2ac4=>_0x27188e['isIntersecting'](_0x1a2ac4)))&&_0x156c6b['some'](_0x36d9f2=>_0x49a841['some'](_0xfbbbbc=>_0x36d9f2['end']['isTouching'](_0xfbbbbc['start'])));}_0x21be3e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29b620,_0x2614d6,_0x5eb1ba)=>{if(!_0x5eb1ba['options']['showSuggestionHighlights'])return;const _0x595f11=_0x2614d6['item'];if(!_0x595f11)return;const _0xd8fbd2=_0x5eb1ba['mapper']['toViewElement'](_0x595f11);function _0x469210(_0x24f4de){return Array['isArray'](_0x24f4de)?_0x24f4de:[_0x24f4de];}_0xd8fbd2&&'tableCell'===_0x595f11['name']&&_0x2fde89(_0xd8fbd2,_0x5eb1ba['writer'],(_0x4dc454,_0x433626,_0x5cd9c2)=>_0x5cd9c2['addClass'](_0x469210(_0x433626['classes']),_0x4dc454),(_0x673eb6,_0x4d209c,_0x4e4913)=>_0x4e4913['removeClass'](_0x469210(_0x4d209c['classes']),_0x673eb6));},{'priority':'highest'}),_0x570b52['descriptionFactory']['registerDescriptionCallback'](_0x52fa7d=>{if('insertion'!=_0x52fa7d['type']&&'deletion'!=_0x52fa7d['type'])return;const _0x1ada1a=_0x52fa7d['getContainedElement']();if(null!=_0x1ada1a&&_0x1ada1a['is']('element','table')){if('insertion'==_0x52fa7d['type']){const _0xcb6207=_0x52fa7d['getItems']()['filter'](_0x3164b5=>_0x3164b5['is']('$textProxy'))['map'](_0xc91fc=>_0xc91fc['data']);if(_0xcb6207['length'])return{'type':'insertion','content':o(_0x5570f4,'*Insert:*\x20%0',o(_0x5570f4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xcb6207['join']('\x20')+'\x22'))};}if('deletion'==_0x52fa7d['type']){const _0x52d923=_0x52fa7d['getItems']()['filter'](_0x1601a6=>_0x1601a6['is']('$textProxy'))['map'](_0x5a954c=>_0x5a954c['data']);if(_0x52d923['length'])return{'type':'deletion','content':o(_0x5570f4,'*Remove:*\x20%0',o(_0x5570f4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x52d923['join']('\x20')+'\x22'))};}}}),_0x570b52['descriptionFactory']['registerDescriptionCallback'](_0xbe3732=>{if('tableRow'==_0xbe3732['subType']){const _0x462b91=_0xbe3732['getItems']()['filter'](_0x5aeb63=>_0x5aeb63['is']('$textProxy'))['map'](_0x420d12=>_0x420d12['data']),_0xfd3ae=this['_getSuggestionCoords'](_0xbe3732),_0x2f603a=_0xfd3ae['maxRow']-_0xfd3ae['minRow']+0x1;if('insertion'==_0xbe3732['type'])return _0x462b91['length']?{'type':'insertion','content':o(_0x5570f4,'*Insert:*\x20%0',o(_0x5570f4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f603a,'\x22'+_0x462b91['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5570f4,'*Insert:*\x20%0',o(_0x5570f4,'ELEMENT_TABLE_ROW',_0x2f603a))};if('deletion'==_0xbe3732['type'])return _0x462b91['length']?{'type':'deletion','content':o(_0x5570f4,'*Remove:*\x20%0',o(_0x5570f4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f603a,'\x22'+_0x462b91['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5570f4,'*Remove:*\x20%0',o(_0x5570f4,'ELEMENT_TABLE_ROW',_0x2f603a))};}if('tableColumn'==_0xbe3732['subType']){const _0x4998e1=_0xbe3732['getItems']()['filter'](_0x492d71=>_0x492d71['is']('$textProxy'))['map'](_0x2d2eff=>_0x2d2eff['data']),_0xca9b8a=this['_getSuggestionCoords'](_0xbe3732),_0x291e91=_0xca9b8a['maxColumn']-_0xca9b8a['minColumn']+0x1;if('insertion'==_0xbe3732['type'])return _0x4998e1['length']?{'type':'insertion','content':o(_0x5570f4,'*Insert:*\x20%0',o(_0x5570f4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x291e91,'\x22'+_0x4998e1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5570f4,'*Insert:*\x20%0',o(_0x5570f4,'ELEMENT_TABLE_COLUMN',_0x291e91))};if('deletion'==_0xbe3732['type'])return _0x4998e1['length']?{'type':'deletion','content':o(_0x5570f4,'*Remove:*\x20%0',o(_0x5570f4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x291e91,'\x22'+_0x4998e1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5570f4,'*Remove:*\x20%0',o(_0x5570f4,'ELEMENT_TABLE_COLUMN',_0x291e91))};}}),_0x570b52['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x291252),_0x570b52['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x291252),_0x570b52['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x37b48e),_0x570b52['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x37b48e),_0x570b52['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xb7f5c1),_0x570b52['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xb7f5c1),_0x570b52['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf7c189),_0x570b52['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf7c189);}['_acceptFormatSuggestionCallbackFactory'](){const _0xb6b703=this['editor'],_0x34dcde=_0xb6b703['model']['document']['selection'];return(_0x55e188,_0xecc45a)=>{_0xb6b703['model']['change'](_0x11c9ea=>{const {commandName:_0x474396,commandParams:_0x267853}=_0xecc45a;let _0x1cf8e6=_0x55e188[0x0]['end']['nodeBefore'];_0x267853&&_0x267853[0x0]&&!0x1===_0x267853[0x0]['forceValue']&&(_0x1cf8e6=_0x55e188[0x0]['start']['nodeAfter']);const _0x10297c=_0x11c9ea['createRangeIn'](_0x1cf8e6);if('$graveyard'==_0x10297c['root']['rootName'])return;const _0x135ca1=Array['from'](_0x34dcde['getRanges']())['map'](_0x2308b2=>_0x589a5b['fromRange'](_0x2308b2));_0x11c9ea['setSelection'](_0x10297c),_0xb6b703['commands']['get'](_0x474396)['refresh'](),_0x267853['push']({'forceDefaultExecution':!0x0}),_0xb6b703['execute'](_0x474396,..._0x267853);const _0x4fbd7d=_0x135ca1['filter'](_0x42bf86=>'$graveyard'!=_0x42bf86['root']['rootName']);_0x4fbd7d['length']>0x0&&_0x11c9ea['setSelection'](_0x4fbd7d);for(const _0x18f2ef of _0x135ca1)_0x18f2ef['detach']();});};}['_getCoordsForCells'](_0x91cbe8){const _0x382dc8=this['editor']['plugins']['get']('TableUtils');let _0x1b25e9=Number['MAX_SAFE_INTEGER'],_0x36a705=Number['MIN_SAFE_INTEGER'],_0xa9ad95=Number['MAX_SAFE_INTEGER'],_0x57efbd=Number['MIN_SAFE_INTEGER'];for(const _0x775362 of _0x91cbe8){if('$graveyard'==_0x775362['root']['rootName'])continue;const {row:_0x3493c2,column:_0xb903e9}=_0x382dc8['getCellLocation'](_0x775362),_0x9f712b=_0x775362['hasAttribute']('rowspan')?_0x775362['getAttribute']('rowspan')-0x1:0x0,_0x45d71b=_0x775362['hasAttribute']('colspan')?_0x775362['getAttribute']('colspan')-0x1:0x0;_0x1b25e9=_0x3493c2<_0x1b25e9?_0x3493c2:_0x1b25e9,_0x36a705=_0x3493c2+_0x9f712b>_0x36a705?_0x3493c2+_0x9f712b:_0x36a705,_0xa9ad95=_0xb903e9<_0xa9ad95?_0xb903e9:_0xa9ad95,_0x57efbd=_0xb903e9+_0x45d71b>_0x57efbd?_0xb903e9+_0x45d71b:_0x57efbd;}return{'minRow':_0x1b25e9,'maxRow':_0x36a705,'minColumn':_0xa9ad95,'maxColumn':_0x57efbd};}['_setupColumnsRowsFixing'](){const _0x590a2f=this['editor'],_0x2ab9ff=_0x590a2f['plugins']['get']('TrackChangesEditing'),_0x319e3e=_0x590a2f['plugins']['get']('TableUtils');_0x590a2f['model']['document']['on']('change:data',()=>{const _0x214fe0=Array['from'](_0x590a2f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b1f64,data:_0x5c0cc0}of _0x214fe0){const {group:_0x482c94,id:_0x15794b,subType:_0x4ca81d}=_0x2ab9ff['_splitMarkerName'](_0x1b1f64);if('suggestion'!=_0x482c94)continue;if(null!=_0x5c0cc0['oldRange'])continue;const _0x3e131b=_0x2ab9ff['getSuggestion'](_0x15794b);this['_tablePostFixingSubtypes']['includes'](_0x4ca81d)&&this['_tableSuggestions']['add'](_0x3e131b);}},{'priority':'low'});const _0x1470c7=(_0xba77b2,_0xdc7f3d)=>{let _0xbf70a7=!0x1;const _0x29cc6a=_0xdc7f3d['createRangeOn'](_0xba77b2),_0xab150c=_0xba77b2['findAncestor']('table'),_0x3c98fc=_0x319e3e['getCellLocation'](_0xba77b2);for(const _0x54b31a of this['_tableSuggestions']){const _0x10460a=_0x54b31a['subType'],_0x4f9d3a=_0x10460a['startsWith']('tablePaste'),_0x595505=_0x10460a['substr'](_0x4f9d3a?0xa:0x5),_0x571a87=_0x595505['toLowerCase'](),_0x32cada=_0x571a87['substr'](0x0,0x3)+'span',_0x50d566='min'+_0x595505,_0x5cadd4='max'+_0x595505;if(!_0x54b31a['isInContent'])continue;if(_0xab150c!=_0x54b31a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x54b31a['isIntersectingWithRange'](_0x29cc6a))continue;const _0x1e408d=_0xba77b2['hasAttribute'](_0x32cada)?_0xba77b2['getAttribute'](_0x32cada)-0x1:0x0,_0xa1c2ff=this['_getSuggestionCoords'](_0x54b31a),_0x30c788=_0xa1c2ff[_0x50d566],_0x1f9141=_0xa1c2ff[_0x5cadd4];_0x30c788<=_0x3c98fc[_0x571a87]&&_0x3c98fc[_0x571a87]+_0x1e408d<=_0x1f9141&&(_0x54b31a['addRange'](_0x29cc6a),_0xbf70a7=!0x0);}return _0xbf70a7;};_0x590a2f['model']['document']['registerPostFixer'](_0x530ab1=>{let _0x38aafd=!0x1;for(const _0x22263b of _0x590a2f['model']['document']['differ']['getChanges']())if('insert'==_0x22263b['type']){if('tableRow'==_0x22263b['name']){for(const _0x2bde82 of _0x22263b['position']['nodeAfter']['getChildren']())_0x38aafd=_0x38aafd||_0x1470c7(_0x2bde82,_0x530ab1);}else'tableCell'==_0x22263b['name']&&(_0x38aafd=_0x38aafd||_0x1470c7(_0x22263b['position']['nodeAfter'],_0x530ab1));}return _0x38aafd;});}['_getSuggestionCoords'](_0x3da5d7){return this['_getCoordsForCells'](_0x3da5d7['getRanges']()['map'](_0x15f90f=>_0x15f90f['start']['nodeAfter']));}}function Ne(_0xad8d0b){return Array['from'](new Set(_0xad8d0b)['values']());}class _t extends _0x51252a{static get['requires'](){return[vt];}['afterInit'](){const _0x475716=this['editor'],_0x416627=_0x475716['model']['document']['selection'],_0x4687ea=_0x475716['locale'];if(!_0x475716['plugins']['has']('TableEditing'))return;const _0x2cc26a=_0x475716['plugins']['get']('TrackChangesEditing'),_0x1601ae=_0x475716['plugins']['get']('TableUtils'),_0x22a3f8=_0x475716['plugins']['get'](vt);_0x22a3f8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2cc26a['enableCommand']('mergeTableCells',()=>{const _0x31d62d=_0x1601ae['getSelectionAffectedTableCells'](_0x475716['model']['document']['selection']);_0x475716['model']['change'](()=>{_0x2cc26a['markMultiRangeBlockFormat'](_0x31d62d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x475716['commands']['get']('mergeTableCells')['on']('execute',(_0x11d5bd,_0x19aab5)=>{_0x475716['commands']['get']('trackChanges')['value']&&(_0x19aab5['length']>0x0&&_0x19aab5[_0x19aab5['length']-0x1]&&_0x19aab5[_0x19aab5['length']-0x1]['forceDefaultExecution']||_0x2cc26a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x11d5bd['stop']());},{'priority':'highest'});for(const _0xbd6729 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1628f3=_0x475716['commands']['get'](_0xbd6729);_0x2cc26a['enableCommand'](_0xbd6729,()=>{const _0x591f0a=_0x475716['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e7103=>_0x3e7103['is']('element','tableCell')),_0x64d528=_0x1628f3['value'];_0x475716['model']['change'](()=>{_0x2cc26a['markMultiRangeBlockFormat']([_0x591f0a,_0x64d528],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1c6f8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2b20b4=_0x475716['commands']['get'](_0x1c6f8);_0x2cc26a['enableCommand'](_0x1c6f8,()=>{const _0xda43c7=_0x1601ae['getSelectionAffectedTableCells'](_0x475716['model']['document']['selection'])[0x0],_0x1e07d9=_0xda43c7['findAncestor']('table'),{column:_0x117035,row:_0x56bde0}=_0x1601ae['getCellLocation'](_0xda43c7);let _0x1f4250=[];if('horizontally'==_0x2b20b4['direction']){const _0x594cef=_0x1601ae['createTableWalker'](_0x1e07d9,{'startRow':_0x56bde0,'endRow':_0x56bde0,'includeAllSlots':!0x0});_0x1f4250=Array['from'](_0x594cef)['map'](_0x2a8fcd=>_0x2a8fcd['cell']);}else{const _0x17c000=_0x1601ae['createTableWalker'](_0x1e07d9,{'column':_0x117035,'includeAllSlots':!0x0});_0x1f4250=Array['from'](_0x17c000)['map'](_0x538369=>_0x538369['cell']);}_0x475716['model']['change'](_0x1697e9=>{_0x2cc26a['markBlockFormat'](_0x1697e9['createRangeOn'](_0xda43c7),{'commandName':_0x1c6f8,'commandParams':[]},_0x1f4250,_0x1c6f8);});});}_0x2cc26a['descriptionFactory']['registerDescriptionCallback'](_0x171c79=>{if('formatBlock'!=_0x171c79['type']&&'formatInline'!=_0x171c79['type'])return;const {data:_0x4f9b79}=_0x171c79;return _0x4f9b79&&'mergeTableCells'==_0x4f9b79['commandName']?{'type':'format','content':o(_0x4687ea,'*Merge\x20cells*')}:void 0x0;}),_0x2cc26a['descriptionFactory']['registerDescriptionCallback'](_0x4dac8e=>{if('formatBlock'!=_0x4dac8e['type']&&'formatInline'!=_0x4dac8e['type'])return;const {data:_0x249fbe}=_0x4dac8e;return _0x249fbe?'splitTableCellVertically'==_0x249fbe['commandName']?{'type':'format','content':o(_0x4687ea,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x249fbe['commandName']?{'type':'format','content':o(_0x4687ea,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x522c5d=_0x22a3f8['_acceptFormatSuggestionCallbackFactory']();for(const _0x5a5b22 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2cc26a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a5b22,'accept',_0x522c5d);for(const _0x463ce4 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2cc26a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x463ce4,'accept',_0x522c5d);_0x2cc26a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2a09e4=>{_0x475716['model']['change'](_0x4fc2d9=>{const _0x400b94=Array['from'](_0x416627['getRanges']())['map'](_0x948fb6=>_0x589a5b['fromRange'](_0x948fb6));_0x4fc2d9['setSelection'](_0x2a09e4),_0x475716['commands']['get']('mergeTableCells')['refresh'](),_0x475716['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x328bae=_0x400b94['filter'](_0x2fd37e=>'$graveyard'!=_0x2fd37e['root']['rootName']);_0x328bae['length']>0x0&&_0x4fc2d9['setSelection'](_0x328bae);for(const _0x1fbc20 of _0x400b94)_0x1fbc20['detach']();});});for(const _0x3b989d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2459b6=_0x475716['commands']['get'](_0x3b989d);_0x2459b6['on']('set:isEnabled',(_0x41d020,_0x394788,_0x5d5975)=>{if(_0x5d5975){const _0x393aca=_0x475716['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x421548=>_0x421548['is']('element','tableCell'));this['_areMergableCells'](_0x2459b6['value'],_0x393aca)||(_0x41d020['return']=!0x1,_0x41d020['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xdc5b9f=this['editor']['commands']['get']('mergeTableCells'),_0x1cc9e0=this['editor']['plugins']['get']('TableUtils');if(!_0xdc5b9f['isEnabled'])return!0x1;const _0x41fb92=_0x1cc9e0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x32e248 of _0x41fb92)for(const _0xbf616d of _0x41fb92)if(_0x32e248!=_0xbf616d&&!this['_areMergableCells'](_0x32e248,_0xbf616d))return!0x1;return!0x0;}['_areMergableCells'](_0x32f0e3,_0x489697){const _0x342c08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38739=this['editor']['model']['createRangeOn'](_0x32f0e3),_0x10ad5b=this['editor']['model']['createRangeOn'](_0x489697),_0x17fc1a=new Set(),_0x3c3916=new Set();for(const _0x107453 of _0x342c08['getSuggestions']())if(('insertion'==_0x107453['type']||'deletion'==_0x107453['type']||'mergeTableCells'==_0x107453['subType'])&&_0x107453['isInContent']){for(const _0x4f7435 of _0x107453['getRanges']())_0x4f7435['containsRange'](_0x38739,!0x0)&&_0x17fc1a['add'](_0x107453['type']+':'+_0x107453['author']['id']),_0x4f7435['containsRange'](_0x10ad5b,!0x0)&&_0x3c3916['add'](_0x107453['type']+':'+_0x107453['author']['id']);}if(_0x17fc1a['size']!=_0x3c3916['size'])return!0x1;for(const _0x262cd6 of _0x17fc1a)if(!_0x3c3916['has'](_0x262cd6))return!0x1;return!0x0;}}class Ct extends _0x51252a{static get['requires'](){return[vt];}['afterInit'](){const _0x146e57=this['editor'];if(!_0x146e57['plugins']['has']('TableEditing'))return;const _0x47db16=_0x146e57['locale'],_0x5d2b6b=_0x146e57['plugins']['get']('TrackChangesEditing');_0x5d2b6b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5d2b6b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5d2b6b['registerBlockAttribute']('headingRows'),_0x5d2b6b['registerBlockAttribute']('headingColumns'),_0x5d2b6b['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x47db16,'FORMAT_HEADER_ROW')),_0x5d2b6b['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x47db16,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x306bb0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e13b3=this['editor']['plugins']['get']('TableUtils'),_0x46b7b4=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0xd4b223({showActiveMarker:_0x4e4648=!0x0,setDataAttribute:_0x287939=!0x0}={}){return(_0x3c63d8,_0x39de61,_0x2395a3)=>{const {type:_0x12d231,id:_0x36d85f}=_0x306bb0['_splitMarkerName'](_0x39de61['markerName']),_0x4108a5=_0x306bb0['getSuggestion'](_0x36d85f),_0x3f77e5=_0x4108a5['data'];if('formatBlock'!=_0x4108a5['type']||!_0x3f77e5||'setTableColumnHeader'!=_0x3f77e5['commandName'])return;if(_0x39de61['item'])return void _0x3c63d8['stop']();if(!_0x2395a3['consumable']['consume'](_0x39de61['markerRange'],_0x3c63d8['name']))return;const _0x1ef8bf=_0x39de61['markerRange']['start']['nodeAfter'],_0x19b070=_0x39de61['markerRange']['end']['nodeBefore'],_0x24d32c=_0x1ef8bf['parent']['parent'],{column:_0x23bafa}=_0x2e13b3['getCellLocation'](_0x1ef8bf),{column:_0x1a515b}=_0x2e13b3['getCellLocation'](_0x19b070);for(let _0x31d046=_0x23bafa;_0x31d046<=_0x1a515b;_0x31d046++){const _0x58e042=_0x2e13b3['createTableWalker'](_0x24d32c,{'column':_0x31d046,'includeAllSlots':!0x1});for(const _0x53724c of _0x58e042){const _0x887ad6=_0x53724c['cell'],_0x1d2c0f=_0x2395a3['mapper']['toViewElement'](_0x887ad6);_0x2395a3['writer']['addClass']('ck-suggestion-marker-'+_0x12d231,_0x1d2c0f),_0x287939&&_0x2395a3['writer']['setAttribute']('data-suggestion',_0x36d85f,_0x1d2c0f),_0x2395a3['mapper']['bindElementToMarker'](_0x1d2c0f,_0x39de61['markerName']),_0x4e4648&&(_0x306bb0['activeMarkers']['includes'](_0x39de61['markerName'])?_0x2395a3['writer']['addClass']('ck-suggestion-marker--active',_0x1d2c0f):_0x2395a3['writer']['removeClass']('ck-suggestion-marker--active',_0x1d2c0f));}}};}_0x306bb0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x46b7b4),_0x306bb0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x46b7b4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xd4b223(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4887e2,_0x2c18eb,_0x19ec06)=>{_0x19ec06['options']['showSuggestionHighlights']&&_0xd4b223({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4887e2,_0x2c18eb,_0x19ec06);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4735d9,_0x342b2c,_0x75f043)=>{const {type:_0x5a4ead,id:_0x5a7299}=_0x306bb0['_splitMarkerName'](_0x342b2c['markerName']),_0x18dffc=_0x306bb0['getSuggestion'](_0x5a7299),_0x351e4a=_0x18dffc['data'];if('formatBlock'!=_0x18dffc['type']||!_0x351e4a||'setTableColumnHeader'!=_0x351e4a['commandName'])return;const _0x3983d3=_0x75f043['mapper']['markerNameToElements'](_0x342b2c['markerName']);if(_0x3983d3){for(const _0x134aa8 of _0x3983d3)_0x75f043['writer']['removeClass']('ck-suggestion-marker-'+_0x5a4ead,_0x134aa8),_0x75f043['writer']['removeClass']('ck-suggestion-marker--active',_0x134aa8),_0x75f043['writer']['removeAttribute']('data-suggestion',_0x134aa8),_0x75f043['mapper']['unbindElementFromMarkerName'](_0x134aa8,_0x342b2c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18edd0=this['editor'],_0x3028ca=_0x18edd0['locale'];function _0x486d4c(_0x1ac389){return{'type':'format','content':o(_0x3028ca,'*Format:*\x20%0',_0x1ac389)};}_0x18edd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e9742=>{if('formatBlock'!=_0x1e9742['type'])return;const {data:_0x3958a6}=_0x1e9742;if(_0x3958a6){if('setTableRowHeader'==_0x3958a6['commandName']){const _0x3dd69c=_0x3958a6['commandParams'][0x0]['forceValue'];return _0x486d4c(o(_0x3028ca,_0x3dd69c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3958a6['commandName']){const _0x129c2c=_0x3958a6['commandParams'][0x0]['forceValue'];return _0x486d4c(o(_0x3028ca,_0x129c2c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0xf016c6=>[_0xf016c6,null]));class Nt extends _0x51252a{static get['requires'](){return[vt];}['afterInit'](){const _0x1253dc=this['editor'];if(!_0x1253dc['plugins']['has']('TableClipboard'))return;const _0x3febbe=_0x1253dc['plugins']['get']('TrackChangesEditing'),_0x4390f9=_0x1253dc['plugins']['get']('TableUtils'),_0x48b81f=_0x1253dc['plugins']['get'](vt),_0x36509c=_0x1253dc['plugins']['get']('TableClipboard');_0x48b81f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1253dc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1253dc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3a3a84=null;_0x1253dc['model']['on']('insertContent',(_0x13db5d,_0x36a1bd)=>{const [_0xc8225a,_0x333b15]=_0x36a1bd,_0x36551e=_0x36a1bd[_0x36a1bd['length']-0x1];_0x36551e&&_0x36551e['forceDefaultExecution']||_0x3febbe['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4b9277,_0x346489,_0x286003,_0x36330d,_0x5b3f73){if(_0x346489&&!_0x346489['is']('documentSelection'))return!0x1;const _0x57e71c=_0x5b3f73['getTableIfOnlyTableInContent'](_0x4b9277,_0x286003);if(!_0x57e71c||!Ue(_0x57e71c,void 0x0,_0x36330d))return!0x1;const _0x589b15=_0x36330d['getSelectionAffectedTableCells'](_0x286003['document']['selection']);if(!_0x589b15['length'])return!0x1;const _0x4b1075=_0x589b15[0x0]['findAncestor']('table'),_0x26cfe9=_0x36330d['getRowIndexes'](_0x589b15),_0x23ac75=_0x36330d['getColumnIndexes'](_0x589b15),_0x47c2de={'startRow':_0x26cfe9['first'],'endRow':_0x26cfe9['last'],'startColumn':_0x23ac75['first'],'endColumn':_0x23ac75['last']};return 0x1==_0x589b15['length']&&(_0x47c2de['endRow']+=_0x36330d['getRows'](_0x57e71c)-0x1,_0x47c2de['endColumn']+=_0x36330d['getColumns'](_0x57e71c)-0x1),Ue(_0x4b1075,_0x47c2de,_0x36330d);}(_0xc8225a,_0x333b15,_0x1253dc['model'],_0x4390f9,_0x36509c)&&(_0x13db5d['stop'](),_0x3a3a84={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1253dc['model']['change'](()=>{_0x1253dc['model']['insertContent'](_0x36a1bd[0x0],_0x36a1bd[0x1],_0x36a1bd[0x2],{'forceDefaultExecution':!0x0});const _0xba38d1=_0x56f9d6(),{rowInsertionRanges:_0x3023ae,columnInsertionRanges:_0x30310d,insertionRanges:_0xd1f6e,deletionRanges:_0x3bd59a,cells:_0x5399b2}=_0x3a3a84;_0x3023ae['length']&&_0x3febbe['markMultiRangeInsertion'](_0x3023ae,'tablePasteRow',{'tablePasteChainId':_0xba38d1}),_0x30310d['length']&&_0x3febbe['markMultiRangeInsertion'](_0x30310d,'tablePasteColumn',{'tablePasteChainId':_0xba38d1}),_0xd1f6e['length']&&(_0x3febbe['markMultiRangeInsertion'](_0xd1f6e,'tablePaste',{'tablePasteChainId':_0xba38d1,'skipNestingCheck':!0x0}),_0xd1f6e['forEach'](_0x5710bd=>_0x5710bd['detach']?.())),_0x3bd59a['length']&&(_0x3febbe['markMultiRangeDeletion'](_0x3bd59a,'tablePaste',{'tablePasteChainId':_0xba38d1,'skipNestingCheck':!0x0}),_0x3bd59a['forEach'](_0x21411c=>_0x21411c['detach']?.()));const _0x245e1e=_0x3febbe['markMultiRangeBlockFormat'](_0x5399b2['map'](({element:_0x26c662})=>_0x26c662),{'formatGroupId':_0x56f9d6()},[],'tablePasteCell',{'tablePasteChainId':_0xba38d1});if(_0x245e1e){const _0x1e948c=_0x245e1e['getMarkers'](),_0xef5fa3=[];for(const {element:_0x40550a,attributes:_0x193d7b}of _0x5399b2){if(!_0x193d7b)continue;const _0x231f84=_0x1253dc['model']['createRangeOn'](_0x40550a),_0x339659=_0x1e948c['find'](_0x386b54=>_0x386b54['getRange']()['isEqual'](_0x231f84));_0x339659&&_0xef5fa3['push']([_0x339659['name'],_0x193d7b]);}_0xef5fa3['length']&&_0x245e1e['setAttribute']('markerAttributes',Object['fromEntries'](_0xef5fa3));}_0x3a3a84=null;}));},{'priority':_0x18c1ff['high']+0xa}),_0x1253dc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x338c25,_0x124691)=>{const [_0x8fbe9c,_0x1c0578,,_0x42c0f7]=_0x124691;if(!_0x3a3a84)return;_0x338c25['stop']();const _0x239faf=_0x8fbe9c['cell'],_0x4dcca4=_0x1c0578,_0x19445b=Oe(_0x239faf),_0x3c64da=Oe(_0x4dcca4);_0x338c25['return']=_0x239faf;let _0x4bbc2c=null,_0x34787a=null;if(_0x3c64da||_0x19445b){if(_0x19445b&&!_0x3c64da){_0x42c0f7['remove'](_0x239faf['getChild'](0x0));for(const _0x560228 of Array['from'](_0x4dcca4['getChildren']()))_0x42c0f7['insert'](_0x560228,_0x239faf,'end');const _0x30a816=_0x3a3a84['rowInsertionIndexes']['includes'](_0x8fbe9c['row']),_0x5383e7=_0x3a3a84['columnInsertionIndexes']['includes'](_0x8fbe9c['column']);_0x30a816||_0x5383e7||(_0x4bbc2c=_0x589a5b['fromRange'](_0x42c0f7['createRangeIn'](_0x239faf)));}else _0x3c64da&&!_0x19445b&&(_0x34787a=_0x42c0f7['createRangeIn'](_0x239faf));}else{const _0x4c3c8f=_0x42c0f7['createElement']('tableCellSuggestion'),_0x5c9f93=_0x42c0f7['createElement']('tableCellSuggestion');_0x42c0f7['wrap'](_0x42c0f7['createRangeIn'](_0x239faf),_0x5c9f93),_0x42c0f7['insert'](_0x4c3c8f,_0x239faf,0x0);for(const _0x3b8614 of Array['from'](_0x4dcca4['getChildren']()))_0x42c0f7['insert'](_0x3b8614,_0x4c3c8f,'end');_0x4bbc2c=_0x589a5b['fromRange'](_0x42c0f7['createRangeOn'](_0x4c3c8f)),_0x34787a=_0x589a5b['fromRange'](_0x42c0f7['createRangeOn'](_0x5c9f93));}const _0x4d1d2f=Array['from'](_0x4dcca4['getAttributes']())['filter'](([_0x1e65ac])=>Be['includes'](_0x1e65ac));_0x3a3a84['cells']['push']({'element':_0x239faf,'attributes':_0x4d1d2f['length']?Object['fromEntries'](_0x4d1d2f):null}),_0x4bbc2c&&_0x3a3a84['insertionRanges']['push'](_0x4bbc2c),_0x34787a&&_0x3a3a84['deletionRanges']['push'](_0x34787a);},{'priority':'high'}),_0x4390f9['on']('insertColumns',(_0x2648e6,_0x1d8ac7)=>{const [_0x5dc7a9,_0x373122={}]=_0x1d8ac7;if(!_0x3a3a84)return;const _0x4a959a=_0x373122['at']||0x0,_0x5cf218=_0x373122['columns']||0x1;_0x3a3a84['columnInsertionIndexes']=new Array(_0x5cf218)['fill'](_0x4a959a)['map']((_0x5f1679,_0x3ccbe8)=>_0x5f1679+_0x3ccbe8);for(const {cell:_0xf8061a}of _0x4390f9['createTableWalker'](_0x5dc7a9,{'startColumn':_0x4a959a,'endColumn':_0x4a959a+_0x5cf218-0x1}))_0x3a3a84['columnInsertionRanges']['push'](_0x1253dc['model']['createRangeOn'](_0xf8061a));},{'priority':'low'}),_0x4390f9['on']('insertRows',(_0x9254c7,_0x2f8793)=>{const [_0x70f5e9,_0x22098b={}]=_0x2f8793;if(!_0x3a3a84)return;const _0x3b6f87=_0x22098b['at']||0x0,_0x54c578=_0x22098b['rows']||0x1;_0x3a3a84['rowInsertionIndexes']=new Array(_0x54c578)['fill'](_0x3b6f87)['map']((_0x1857e0,_0x4b631f)=>_0x1857e0+_0x4b631f);for(const {cell:_0x4722ab}of _0x4390f9['createTableWalker'](_0x70f5e9,{'startRow':_0x3b6f87,'endRow':_0x3b6f87+_0x54c578-0x1}))_0x3a3a84['rowInsertionRanges']['push'](_0x1253dc['model']['createRangeOn'](_0x4722ab));},{'priority':'low'}),_0x3febbe['descriptionFactory']['registerDescriptionCallback'](_0x54f375=>{if(_0x54f375['subType']&&_0x54f375['subType']['startsWith']('tablePaste'))return _0x54f375['previous']?{}:{'type':'insertion','content':o(_0x1253dc['locale'],'*Replace\x20table\x20cells*')};});const _0x19221c=()=>!0x1;for(const _0xaffaf7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3febbe['_suggestionFactory']['registerCustomCallback']('insertion',_0xaffaf7,'join',_0x19221c),_0x3febbe['_suggestionFactory']['registerCustomCallback']('deletion',_0xaffaf7,'join',_0x19221c),_0x3febbe['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xaffaf7,'join',_0x19221c);_0x3febbe['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x19221c),_0x3febbe['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2b1e3b,_0x634f90,_0x34a907)=>{const _0xdbbd01=_0x2b1e3b['map'](_0xbe5198=>_0xbe5198['getContainedElement']())['filter'](_0x383577=>_0x383577),_0x30c47e=new Map(_0xdbbd01['map'](_0x4a320b=>[_0x4a320b,null]));if(_0x3a3a84){for(const {element:_0x1d08ae,attributes:_0x44404d}of _0x3a3a84['cells'])_0x44404d&&_0x30c47e['set'](_0x1d08ae,_0x44404d);}else{if(_0x34a907&&_0x34a907['markerAttributes'])for(const [_0x274cdc,_0x23b31c]of Object['entries'](_0x34a907['markerAttributes'])){const _0x45ae19=_0x1253dc['model']['markers']['get'](_0x274cdc),_0x5952ab=_0x45ae19?_0x45ae19['getRange']()['getContainedElement']():null;_0x5952ab&&_0x30c47e['set'](_0x5952ab,_0x23b31c);}}_0x1253dc['model']['change'](_0x5a9d7b=>{for(const [_0x72e25f,_0x2aca92]of _0x30c47e)_0x5a9d7b['setAttributes']({...xe,..._0x2aca92},_0x72e25f);});});const _0x52f7d6=(_0x9cc734,_0x40f588)=>{_0x3febbe['_suggestionFactory']['registerCustomCallback'](_0x9cc734,'tablePaste',_0x40f588,(_0x463964,_0x3dbae6,_0x1b1b98)=>{_0x1253dc['model']['change'](_0x1ec842=>{const _0x316585=[];for(const _0x85f22c of _0x463964){const _0x37f131=_0x85f22c['start']['nodeAfter'];_0x37f131['is']('element','tableCellSuggestion')&&_0x316585['push'](_0x37f131);}_0x3febbe['_suggestionFactory']['getSuggestionCallback'](_0x9cc734,null,_0x40f588)(_0x463964,_0x3dbae6,_0x1b1b98);for(const _0x2a24a3 of _0x316585)'$graveyard'!=_0x2a24a3['root']['rootName']&&_0x1ec842['unwrap'](_0x2a24a3);});});};_0x52f7d6('insertion','accept'),_0x52f7d6('insertion','discard'),_0x52f7d6('deletion','accept'),_0x52f7d6('deletion','discard'),_0x3febbe['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xbc2c78=>{const _0x2969c2=_0xbc2c78['map'](_0x4b245e=>_0x4b245e['getContainedElement']()),_0x275698=_0x2969c2[0x0]['findAncestor']('table'),{minRow:_0x104e6a,maxRow:_0x28dc9a}=_0x48b81f['_getCoordsForCells'](_0x2969c2);_0x4390f9['removeRows'](_0x275698,{'at':_0x104e6a,'rows':_0x28dc9a-_0x104e6a+0x1});}),_0x3febbe['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x50b350=>{const _0x2177e2=_0x50b350['map'](_0x51ae75=>_0x51ae75['getContainedElement']()),_0x32a9de=_0x2177e2[0x0]['findAncestor']('table'),{minColumn:_0x2ede72,maxColumn:_0x494c78}=_0x48b81f['_getCoordsForCells'](_0x2177e2);_0x4390f9['removeColumns'](_0x32a9de,{'at':_0x2ede72,'columns':_0x494c78-_0x2ede72+0x1});});const _0x10465b=(_0x7491b9,_0x567c12)=>{if(!_0x567c12['subType']||!_0x567c12['subType']['startsWith']('tablePaste'))return;const _0x55f902=_0x567c12['attributes']['tablePasteChainId'],_0x1afd5c=_0x3febbe['getSuggestions']()['filter'](_0x20b9e8=>_0x20b9e8['isInContent']&&_0x20b9e8['attributes']&&_0x20b9e8['attributes']['tablePasteChainId']==_0x55f902);_0x1afd5c['length']&&_0x567c12['getAllAdjacentSuggestions']()['length']!=_0x1afd5c['length']&&_0x1afd5c['reduce']((_0x275359,_0x4feecf)=>(_0x275359['next']=_0x4feecf,_0x4feecf['previous']=_0x275359,_0x4feecf));};function _0x25acaf(_0x1e850e,_0x4715fa=!0x0){const {id:_0x2a4600,authorId:_0x2ad960}=_0x3febbe['_splitMarkerName'](_0x1e850e['markerName']),_0x4e7465=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x432b8b=_0x3febbe['activeMarkers']['includes'](_0x1e850e['markerName']);return _0x432b8b&&_0x4e7465['push']('ck-suggestion-marker--active'),{'classes':_0x4e7465,'attributes':{'data-suggestion':_0x2a4600,'data-author-id':_0x2ad960},'priority':_0x432b8b&&_0x4715fa?0xbc2:0xbb8};}_0x3febbe['on']('suggestionLoaded',_0x10465b,{'priority':'high'}),_0x3febbe['on']('suggestionUnloaded',_0x10465b,{'priority':'high'}),_0x1253dc['model']['document']['registerPostFixer'](()=>{let _0x5ee440=!0x1;const _0x5a0b6a=Array['from'](_0x1253dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3042d3,data:_0x51830e}of _0x5a0b6a){const {group:_0x4a06d5,type:_0x2e2f2a,id:_0x31568b}=_0x3febbe['_splitMarkerName'](_0x3042d3);if('suggestion'!=_0x4a06d5||'deletion'!=_0x2e2f2a||_0x51830e['oldRange'])continue;if(!_0x3febbe['hasSuggestion'](_0x31568b))continue;const _0x35f67e=_0x3febbe['getSuggestion'](_0x31568b)['getRanges'](),_0x9f2864=_0x1253dc['plugins']['get']('Users')['me'];for(const _0x864036 of _0x3febbe['getSuggestions']()){if(!_0x864036['isInContent']||_0x864036['author']!=_0x9f2864)continue;if('formatBlock'!=_0x864036['type']||'tablePasteCell'!=_0x864036['subType'])continue;if(_0x864036['getRanges']()['every'](_0x560a68=>_0x35f67e['some'](_0x720654=>_0x720654['containsRange'](_0x560a68,!0x0)))){for(const _0xfb3940 of _0x864036['getAllAdjacentSuggestions']())_0xfb3940['isInContent']&&(_0xfb3940['discard'](),_0x5ee440=!0x0);}}}return _0x5ee440;}),_0x1253dc['model']['document']['registerPostFixer'](_0x4df087=>{const _0x5c6f33=_0x1253dc['commands']['get']('redo');if(!_0x5c6f33||!_0x5c6f33['_createdBatches']['has'](_0x4df087['batch']))return!0x1;let _0x8c852b=!0x1;const _0x50934c=_0x1253dc['plugins']['get']('Users')['me'],_0x4ae74a=_0x1253dc['model']['document']['differ']['getChanges'](),_0x666677=Array['from'](_0x1253dc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5eadd5,data:_0x7e9f51})=>{const {group:_0x5c2b8f,subType:_0x305e80,authorId:_0xd9d692}=_0x3febbe['_splitMarkerName'](_0x5eadd5);return'suggestion'==_0x5c2b8f&&'tablePaste'==_0x305e80&&_0xd9d692==_0x50934c['id']&&!_0x7e9f51['oldRange'];});for(const _0x1e5563 of _0x4ae74a){if('insert'!=_0x1e5563['type']||'tableCellSuggestion'!=_0x1e5563['name']||0x1!=_0x1e5563['length'])continue;const _0x28b1d0=_0x4df087['createRange'](_0x1e5563['position'],_0x1e5563['position']['getShiftedBy'](0x1));if(!_0x666677['find'](({data:_0x8708d8})=>_0x8708d8['newRange']['isEqual'](_0x28b1d0))){for(const {name:_0x358780,data:_0x15361b}of _0x666677)if(_0x28b1d0['containsRange'](_0x15361b['newRange'])){_0x4df087['updateMarker'](_0x358780,{'range':_0x28b1d0}),_0x8c852b=!0x0;break;}}}return _0x8c852b;}),_0x1253dc['model']['document']['registerPostFixer'](_0x5e40cf=>{let _0x5ddbe0=!0x1;const _0x5c88c8=_0x1253dc['plugins']['get']('Users')['me'],_0x55a2b9=_0x3febbe['getSuggestions']()['filter'](_0x291585=>_0x291585['isInContent']&&_0x291585['author']==_0x5c88c8),_0x44153e=new Set(),_0x2037d2=new Set();for(const _0x575161 of _0x55a2b9)if('tablePaste'==_0x575161['subType'])for(const _0x47708e of _0x575161['getMarkers']()){const _0x510691=_0x47708e['getRange']()['getContainedElement']();if(_0x510691){if(_0x510691['is']('element','tableCellSuggestion')&&Oe(_0x510691)){_0x575161['removeMarker'](_0x47708e['name']),_0x44153e['add'](_0x510691),_0x5ddbe0=!0x0;const _0x567ec3=_0x510691['nextSibling'],_0x17ef34=_0x510691['previousSibling'],_0x7f7e44=_0x567ec3&&_0x567ec3['is']('element','tableCellSuggestion'),_0xd945a0=_0x17ef34&&_0x17ef34['is']('element','tableCellSuggestion');_0x7f7e44&&!_0x44153e['has'](_0x567ec3)&&_0x2037d2['add'](_0x567ec3),_0xd945a0&&!_0x44153e['has'](_0x17ef34)&&_0x2037d2['add'](_0x17ef34);}else _0x510691['is']('element','paragraph')&&_0x510691['isEmpty']&&(_0x575161['removeMarker'](_0x47708e['name']),_0x5ddbe0=!0x0);}}else{if('tablePasteCell'==_0x575161['subType']){if(!_0x575161['attributes']||!_0x575161['attributes']['tablePasteChainId'])continue;const _0x164746=_0x575161['attributes']['markerAttributes'];if(_0x164746&&Object['keys'](_0x164746)['length'])continue;const _0xf7c387=_0x575161['attributes']['tablePasteChainId'];let _0x2670c3=!0x0,_0xf0d79d=!0x0;for(const _0x2352ce of _0x55a2b9)if(_0x2352ce['subType']&&_0x2352ce['subType']['startsWith']('tablePaste')){if(!_0x2352ce['attributes']['tablePasteChainId']){_0xf0d79d=!0x1;break;}if(_0x2352ce['id']!=_0x575161['id']&&_0x2352ce['attributes']['tablePasteChainId']==_0xf7c387){_0x2670c3=!0x1;break;}}_0xf0d79d&&_0x2670c3&&(_0x575161['removeMarkers'](),_0x5ddbe0=!0x0);}}for(const _0x4bd7cc of _0x44153e)_0x5e40cf['remove'](_0x4bd7cc);for(const _0x4214b1 of _0x2037d2)_0x5e40cf['unwrap'](_0x4214b1);return _0x5ddbe0;}),_0x1253dc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x43861a=>_0x25acaf(_0x43861a),'converterPriority':'high'}),_0x1253dc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xf2d2eb,_0x2b3821)=>_0x2b3821['options']['showSuggestionHighlights']?_0x25acaf(_0xf2d2eb,!0x1):null,'converterPriority':'high'});const _0x22c5e0=_0x1253dc['editing']['view'];this['listenTo'](_0x22c5e0['document'],'clipboardOutput',(_0x2b327a,_0x5b1c8e)=>{const _0x268bbf=[];for(const _0x171eb6 of _0x22c5e0['createRangeIn'](_0x5b1c8e['content'])['getItems']())_0x171eb6['is']('element','suggestion-td')&&_0x268bbf['push'](_0x171eb6);_0x22c5e0['change'](_0x2d0272=>{for(const _0x231333 of _0x268bbf)_0x2d0272['move'](_0x2d0272['createRangeIn'](_0x231333),_0x2d0272['createPositionBefore'](_0x231333)),_0x2d0272['remove'](_0x231333);});});}}function Oe(_0x48fa61){if(_0x48fa61['isEmpty'])return!0x0;const _0x11cebb=_0x48fa61['getChild'](0x0);return _0x11cebb['is']('element','paragraph')&&_0x11cebb['isEmpty'];}function Ue(_0x568274,_0x29c2d6={},_0x16e337){for(const {isAnchor:_0x250b8c,cellHeight:_0xf9b11b,cellWidth:_0x4d50ee}of _0x16e337['createTableWalker'](_0x568274,{'includeAllSlots':!0x0,..._0x29c2d6}))if(!_0x250b8c||0x1!=_0xf9b11b||0x1!=_0x4d50ee)return!0x1;return!0x0;}class Dt extends _0x51252a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x387eca=this['editor']['plugins']['get']('TrackChangesEditing');_0x387eca['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x387eca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x387eca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x387eca['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x387eca['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x387eca['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x205d8c,_0x133f0c){const _0x3c626a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x155e8e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x206088=_0x133f0c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x50e3aa=_0x155e8e['getColumnGroupElement'](_0x206088);let _0x8a2dcb=_0x50e3aa?_0x155e8e['getTableColumnsWidths'](_0x50e3aa):null,_0x1bfa54=_0x206088['getAttribute']('tableWidth')||null;const _0x267ac6=_0x133f0c['tableWidth']||_0x1bfa54,_0x3198a5=_0x133f0c['columnWidths']||_0x8a2dcb,_0x13873d=this['editor']['plugins']['get']('Users')['me'];for(const _0x46cca4 of _0x3c626a['getSuggestions']()){const _0x2a9883=_0x46cca4['getContainedElement']();if('resizeTable'===_0x46cca4['subType']&&_0x2a9883===_0x206088){_0x46cca4['author']!==_0x13873d&&_0x46cca4['discard']();const _0x3cb201=_0x46cca4['data']['commandParams'];_0x1bfa54=_0x3cb201[0x0]['tableWidth'],_0x8a2dcb=_0x3cb201[0x0]['columnWidths'];break;}}_0x205d8c({'table':_0x206088,'tableWidth':_0x267ac6,'columnWidths':_0x3198a5}),_0x3c626a['markBlockFormat'](_0x206088,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1bfa54,'columnWidths':_0x8a2dcb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x60a2d7){if('formatBlock'!=_0x60a2d7['type']&&'formatInline'!=_0x60a2d7['type'])return;const {data:_0x36ee92}=_0x60a2d7;if(_0x36ee92&&'resizeTable'===_0x36ee92['formatGroupId']){const _0x1e52e4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1e52e4)};}}}class Mt extends _0x51252a{['afterInit'](){const _0x51d40c=this['editor'];_0x51d40c['plugins']['has']('Template')&&_0x51d40c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x51252a{['afterInit'](){const _0x4afc6a=this['editor'];if(!_0x4afc6a['commands']['get']('insertTableOfContents'))return;_0x4afc6a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3a2520=_0x4afc6a['plugins']['get']('TrackChangesEditing'),_0x2abbe3=_0x4afc6a['locale'];_0x3a2520['descriptionFactory']['registerElementLabel']('tableOfContents',_0x222b82=>o(_0x2abbe3,'ELEMENT_TABLE_OF_CONTENTS',_0x222b82));}}class Bt extends _0x51252a{['afterInit'](){const _0x47f8a1=this['editor'];if(!_0x47f8a1['plugins']['has']('Title'))return;const _0xa45a61=_0x47f8a1['plugins']['get']('TrackChangesEditing');_0xa45a61['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x47f8a1['locale'],'ELEMENT_TITLE')),_0x47f8a1['model']['document']['registerPostFixer'](_0xc9fb67=>{let _0x2d0649=!0x1;const _0xe5d8fb=Array['from'](_0x47f8a1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5389f3,data:_0x4e460c}of _0xe5d8fb){const {group:_0x32332a}=_0xa45a61['_splitMarkerName'](_0x5389f3);if('suggestion'!==_0x32332a||!_0x4e460c['newRange'])continue;const _0x9c1f1d=_0x4e460c['newRange'],_0x5abf51=_0x9c1f1d['end']['nodeBefore'];if(!_0x5abf51||!_0x5abf51['is']('element','title-content'))continue;if(!_0x9c1f1d['start']['isTouching'](_0x9c1f1d['end']))continue;const _0x331a76=_0x47f8a1['model']['schema']['getNearestSelectionRange'](_0x9c1f1d['end'],'forward');if(_0x331a76&&_0x331a76['isCollapsed']){const _0x185d91=_0xc9fb67['createRange'](_0x9c1f1d['start'],_0x331a76['start']);_0x185d91['isEqual'](_0x9c1f1d)||(_0xc9fb67['updateMarker'](_0x5389f3,{'range':_0x185d91}),_0x2d0649=!0x0);}_0x2d0649||(_0xc9fb67['removeMarker'](_0x5389f3),_0x2d0649=!0x0);}return _0x2d0649;});}}class Ot extends _0x51252a{['afterInit'](){const _0x5b4e65=this['editor'],_0xecc86c=_0x5b4e65['plugins']['get']('TrackChangesEditing');_0x5b4e65['plugins']['has']('Uploadcare')&&(_0xecc86c['enableCommand']('uploadcare'),_0x5b4e65['plugins']['has']('UploadcareImageEdit')&&(_0xecc86c['enableCommand']('uploadcareImageEdit'),_0xecc86c['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xecc86c['registerBlockAttribute']('uploadcareImageId'),_0xecc86c['descriptionFactory']['registerDescriptionCallback'](_0x4eed0f=>{if('attribute'!=_0x4eed0f['type'])return;const {data:_0x45bf90}=_0x4eed0f;return _0x45bf90&&'uploadcareImageId'==_0x45bf90['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x51252a{['afterInit'](){const _0x56404e=this['editor'],_0x41d364=_0x56404e['plugins']['get']('TrackChangesEditing');_0x56404e['plugins']['has']('UndoEditing')&&(_0x41d364['enableCommand']('undo'),_0x41d364['enableCommand']('redo'));}}class Tt extends _0x51252a{static get['requires'](){return[vt];}['afterInit'](){const _0x1894c6=this['editor'];if(!_0x1894c6['plugins']['has']('TableCaptionEditing'))return;_0x1894c6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x51252a{['tableProperties'];['tableCellProperties'];constructor(_0x285bbf){super(_0x285bbf),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 _0x50b9a6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1ea159 of this['tableProperties'])_0x50b9a6['enableCommand'](_0x1ea159,(_0x1d2a2e,_0x435c60)=>{const _0x598b28=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1ea159,[_0x598b28],this['tableProperties'],'tableProperties',_0x1d2a2e,_0x435c60);});_0x50b9a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x50b9a6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50b9a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x16bbb0,_0x3867a7)=>this['handleDiscardAction'](this['tableProperties'],_0x16bbb0,_0x3867a7)),_0x50b9a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x31716e of this['tableCellProperties'])_0x50b9a6['enableCommand'](_0x31716e,(_0x139229,_0x1c2e0e)=>{const _0x4549e1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x31716e,_0x4549e1,this['tableCellProperties'],'tableCellProperties',_0x139229,_0x1c2e0e);});_0x50b9a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x50b9a6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50b9a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2c1915,_0x543d38)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2c1915,_0x543d38)),_0x50b9a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x50b9a6['descriptionFactory']['registerDescriptionCallback'](_0x3e2da8=>this['handleSuggestionDescription'](_0x3e2da8));}['_handlePropertyChange'](_0x488c56,_0x5299ac,_0x4ba3b0,_0x9295dd,_0x18ea67,_0x31a743){const _0x98af36=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x31a743['batch'],()=>{for(const _0x279894 of _0x5299ac){if(this['_getSuggestion'](_0x279894,_0x9295dd))_0x18ea67(_0x31a743);else{const _0x32b86d={};for(const _0x2fb9db of _0x4ba3b0){const _0xe40e52=_0x279894['getAttribute'](_0x2fb9db);void 0x0!==_0xe40e52&&(_0x32b86d[_0x2fb9db]=_0xe40e52);}_0x18ea67(_0x31a743),_0x98af36['markBlockFormat'](_0x279894,{'commandParams':[_0x32b86d]},[],_0x9295dd);}}});}['handleDiscardAction'](_0x5d6008,_0x334c13,_0x5115b2){const _0xb213ac=_0x334c13[0x0]['start']['nodeAfter'],_0x19d065=_0x5115b2['commandParams'][0x0];this['editor']['model']['change'](_0x2d6175=>{for(const _0x2b1457 of _0x5d6008)void 0x0!==_0x19d065[_0x2b1457]?_0x2d6175['setAttribute'](_0x2b1457,_0x19d065[_0x2b1457],_0xb213ac):_0x2d6175['removeAttribute'](_0x2b1457,_0xb213ac);});}['handleSuggestionDescription'](_0x224670){if(_0x224670['data'])switch(_0x224670['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'](_0x4e268d,_0x4abbaf){const _0x308ef0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x191a50 of _0x308ef0['getSuggestions']({'skipNotAttached':!0x0})){const _0x28f09f=_0x191a50['getContainedElement']();if(_0x191a50['subType']===_0x4abbaf&&_0x28f09f===_0x4e268d)return _0x191a50;}return null;}}const m='$elementName';class p extends _0x51252a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4e8d56,_0x408be0,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x457d3a){super(_0x457d3a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4bb6c8,_0x2af223,_0x4b58f8,_0x305bce)=>{this['_model']['change'](()=>{for(const _0x12b4a2 of[..._0x305bce,..._0x4b58f8])this['_model']['markers']['has'](_0x12b4a2)&&_0x457d3a['editing']['reconvertMarker'](_0x12b4a2);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x457d3a['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(),_0x457d3a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x457d3a['config']['get']('trackChanges.trackFormatChanges'),_0x457d3a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x457d3a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x457d3a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1b204e=this['editor'],_0x2781d6=(_0x1a56a9,_0x5dba15)=>{if('attribute'!=_0x1a56a9)return'ck-suggestion-marker-'+_0x1a56a9;const _0x2b19d7=_0x5dba15['split']('|')[0x0];return this['_isBlockAttribute'](_0x2b19d7)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1b204e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x423306=>{const {id:_0x4a31c4,authorId:_0x3e3d12,type:_0x5a625,subType:_0x1618c0}=this['_splitMarkerName'](_0x423306['markerName']),_0x5d333d=['ck-suggestion-marker',_0x2781d6(_0x5a625,_0x1618c0)];let _0x4213d2=0xbb8;return this['activeMarkers']['includes'](_0x423306['markerName'])&&(_0x5d333d['push']('ck-suggestion-marker--active'),_0x4213d2=0xbc2),'deletion'==_0x5a625&&(_0x4213d2+=0x5),{'classes':_0x5d333d,'attributes':{'data-suggestion':_0x4a31c4,'data-author-id':_0x3e3d12},'priority':_0x4213d2};}}),_0x1b204e['conversion']['for']('dataDowncast')['add'](_0x59a3ea=>{_0x59a3ea['on']('addMarker:suggestion',(_0x11e4a7,_0x391d02,_0x2fd92f)=>{if(!_0x2fd92f['options']['showSuggestionHighlights'])return;const _0x52b1a2=_0x391d02['item'];if(!_0x52b1a2)return;const _0x578184=_0x2fd92f['mapper']['toViewElement'](_0x52b1a2);_0x1b204e['model']['schema']['isObject'](_0x52b1a2)&&_0x578184&&!_0x578184['getCustomProperty']('widget')&&_0x578184['is']('containerElement')&&_0x39532e(_0x578184,_0x2fd92f['writer']);},{'priority':'high'});}),_0x1b204e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x313e16,_0x20d21c)=>{if(!_0x20d21c['options']['showSuggestionHighlights'])return null;const {type:_0xbc3b9a,subType:_0x397360}=this['_splitMarkerName'](_0x313e16['markerName']);return{'classes':['ck-suggestion-marker',_0x2781d6(_0xbc3b9a,_0x397360)],'priority':0xbb8};}});const _0x1cf3f9=({showActiveMarkers:_0x26d2a9=!0x0,isAttributeSuggestion:_0x15e2a8=!0x1}={})=>(_0x21f483,_0xb801b6,_0x3b32e0)=>{if(!_0xb801b6['item'])return;const {id:_0x43ffcb,authorId:_0x3d5fd6}=this['_splitMarkerName'](_0xb801b6['markerName']);if(_0x15e2a8){const _0x5a4347=this['_suggestions']['get'](_0x43ffcb),_0x1cdea9=this['_getAttributeKey'](_0x5a4347);if(!this['_isBlockAttribute'](_0x1cdea9))return;}if(_0xb801b6['item']['is']('selection'))return void _0x3b32e0['consumable']['consume'](_0xb801b6['item'],_0x21f483['name']);const _0x5d0720=_0x3b32e0['mapper']['toViewElement'](_0xb801b6['item']);if(_0xb801b6['item']['is']('element')&&_0x1b204e['model']['schema']['isBlock'](_0xb801b6['item'])&&!_0x5d0720['getCustomProperty']('addHighlight')){_0x3b32e0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5d0720),_0x3b32e0['writer']['setAttribute']('data-suggestion',_0x43ffcb,_0x5d0720),_0x3b32e0['writer']['setAttribute']('data-author-id',_0x3d5fd6,_0x5d0720),_0x3b32e0['mapper']['bindElementToMarker'](_0x5d0720,_0xb801b6['markerName']),_0x26d2a9&&(this['activeMarkers']['includes'](_0xb801b6['markerName'])?_0x3b32e0['writer']['addClass']('ck-suggestion-marker--active',_0x5d0720):_0x3b32e0['writer']['removeClass']('ck-suggestion-marker--active',_0x5d0720));for(const _0x4a1930 of _0x1b204e['model']['createRangeIn'](_0xb801b6['item'])['getItems']())_0x3b32e0['consumable']['consume'](_0x4a1930,_0x21f483['name']);_0x3b32e0['consumable']['consume'](_0xb801b6['item'],_0x21f483['name']);}};_0x1b204e['conversion']['for']('dataDowncast')['add'](_0x2e2d39=>{_0x2e2d39['on']('addMarker:suggestion:formatBlock',(_0xd743e8,_0x558aa9,_0x3ce53d)=>{_0x3ce53d['options']['showSuggestionHighlights']&&_0x1cf3f9({'showActiveMarkers':!0x1})(_0xd743e8,_0x558aa9,_0x3ce53d);},{'priority':'highest'});}),_0x1b204e['conversion']['for']('dataDowncast')['add'](_0x3e849a=>{_0x3e849a['on']('addMarker:suggestion:attribute',(_0x2546d3,_0x41a2b5,_0xa68d7c)=>{_0xa68d7c['options']['showSuggestionHighlights']&&_0x1cf3f9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2546d3,_0x41a2b5,_0xa68d7c);},{'priority':'highest'});}),_0x1b204e['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x62f73b,_0xdac515)=>_0xdac515['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x62f73b['substr'](0xb)}}),_0x1b204e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x49685b,{writer:_0x2117ee})=>{let _0x1e21fa='suggestion:'+_0x49685b['getAttribute']('suggestion-type')+':'+_0x49685b['getAttribute']('id');return _0x49685b['getAttribute']('marker-count')&&(_0x1e21fa+=':'+_0x49685b['getAttribute']('marker-count')),_0x2117ee['createElement']('$marker',{'data-name':_0x1e21fa});}}),_0x1b204e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1b204e['conversion']['for']('editingDowncast')['add'](_0xaeeb80=>{_0xaeeb80['on']('addMarker:suggestion:formatBlock',_0x1cf3f9(),{'priority':'high'});}),_0x1b204e['conversion']['for']('editingDowncast')['add'](_0x1b638d=>{_0x1b638d['on']('addMarker:suggestion:attribute',_0x1cf3f9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1b204e['conversion']['for']('editingDowncast')['add'](_0x24ee21=>{_0x24ee21['on']('removeMarker:suggestion:formatBlock',(_0x19bfd8,_0x28ce34,_0x2ccc38)=>{const _0x573c94=_0x2ccc38['mapper']['markerNameToElements'](_0x28ce34['markerName']);if(_0x573c94){for(const _0x52f876 of _0x573c94)_0x52f876['getCustomProperty']('addHighlight')||(_0x2ccc38['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x52f876),_0x2ccc38['writer']['removeAttribute']('data-suggestion',_0x52f876),_0x2ccc38['writer']['removeAttribute']('data-author-id',_0x52f876),_0x2ccc38['mapper']['unbindElementFromMarkerName'](_0x52f876,_0x28ce34['markerName']));}},{'priority':'high'});}),_0x1b204e['conversion']['for']('editingDowncast')['add'](_0x11b85e=>{_0x11b85e['on']('removeMarker:suggestion:attribute',(_0x52bcfc,_0x4ebeec,_0x2ead85)=>{const _0xd48330=_0x2ead85['mapper']['markerNameToElements'](_0x4ebeec['markerName']);if(!_0xd48330)return;const {id:_0xcf27d1}=this['_splitMarkerName'](_0x4ebeec['markerName']),_0x536354=this['_suggestions']['get'](_0xcf27d1),_0x441e93=this['_getAttributeKey'](_0x536354);if(this['_isBlockAttribute'](_0x441e93)){for(const _0x3c3ef2 of _0xd48330)_0x3c3ef2['getCustomProperty']('addHighlight')||(_0x2ead85['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3c3ef2),_0x2ead85['writer']['removeAttribute']('data-suggestion',_0x3c3ef2),_0x2ead85['writer']['removeAttribute']('data-author-id',_0x3c3ef2),_0x2ead85['mapper']['unbindElementFromMarkerName'](_0x3c3ef2,_0x4ebeec['markerName']));}},{'priority':'high'});}),_0x1b204e['model']['document']['registerPostFixer'](_0x29a626=>{let _0x1d68e7=!0x1;const _0xeaf173=Array['from'](_0x1b204e['model']['document']['differ']['getChangedMarkers']()),_0x3096ed=new Set();for(const {name:_0x21052e,data:_0x4113c6}of _0xeaf173){const {group:_0x431acc,type:_0x380fa1,subType:_0xcde0db,id:_0x3dcaf6}=this['_splitMarkerName'](_0x21052e);if('suggestion'!==_0x431acc)continue;const _0x5bbab9=this['_suggestions']['get'](_0x3dcaf6);if(null!=_0x4113c6['newRange']){'formatInline'==_0x380fa1&&(_0x1d68e7=_0x1d68e7||Gt(_0x4113c6['newRange'],_0x21052e,_0x29a626,_0x1b204e['model']['schema']));const _0x233418='attribute'==_0x380fa1&&this['_isBlockAttribute'](_0xcde0db['split']('|')[0x0]);if(_0x4113c6['newRange']['isCollapsed']||'$graveyard'==_0x4113c6['newRange']['root']['rootName']||'formatBlock'==_0x380fa1&&!Lt(_0x4113c6['newRange'])||_0x233418&&!Lt(_0x4113c6['newRange'])||'deletion'==_0x380fa1&&!(!Pt(_0x3b1df3=_0x4113c6['newRange'])&&!function(_0x452b8f){return _0x452b8f['start']['parent']==_0x452b8f['end']['nodeBefore']&&_0x452b8f['start']['isAtEnd'];}(_0x3b1df3)))_0x29a626['removeMarker'](_0x21052e),_0x1d68e7=!0x0;else{if(!_0x5bbab9||!_0x5bbab9['isInContent'])continue;if(_0x4113c6['newRange']&&_0x4113c6['oldRange']&&_0x4113c6['newRange']['isEqual'](_0x4113c6['oldRange']))continue;_0x3096ed['add'](_0x5bbab9);}}}var _0x3b1df3;return _0x3096ed['size']>0x0&&(_0x1d68e7=!!this['_joinWithAdjacentSuggestions'](_0x3096ed)||_0x1d68e7),_0x1d68e7;}),_0x1b204e['model']['document']['registerPostFixer'](_0x173871=>{let _0xd59275=!0x1;for(const _0x54cdcd of _0x1b204e['model']['document']['differ']['getChanges']())if('insert'==_0x54cdcd['type'])for(const _0x39b2e6 of this['_suggestions']['values']()){if(_0x39b2e6['isMultiRange']||!_0x39b2e6['isInContent'])continue;const _0x229d52='formatBlock'==_0x39b2e6['type'],_0x481e13=this['_getAttributeKey'](_0x39b2e6),_0x1db8f5=_0x481e13&&this['_isBlockAttribute'](_0x481e13);if(!_0x229d52&&!_0x1db8f5)continue;const _0x157bb1=_0x39b2e6['getFirstRange']();if(_0x157bb1['start']['parent']!=_0x157bb1['end']['parent']&&!_0x157bb1['end']['isAtEnd']){const _0x1bee1a=_0x1b204e['model']['createPositionAt'](_0x157bb1['start']['nodeAfter'],'end'),_0x5c9e16=_0x1b204e['model']['createRange'](_0x157bb1['start'],_0x1bee1a);_0x173871['updateMarker'](_0x39b2e6['getFirstMarker'](),{'range':_0x5c9e16}),_0xd59275=!0x0;}}return _0xd59275;}),_0x1b204e['model']['document']['registerPostFixer'](_0x27a419=>this['_processAttributeChanges'](_0x27a419)),_0x1b204e['model']['document']['registerPostFixer'](_0x2f8d3e=>!_0x2f8d3e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2f8d3e)),_0x1b204e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1b204e['model']['document']['on']('change:data',(_0x1d7a8a,_0x26636d)=>{if(!_0x26636d['isLocal']||_0x26636d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x340d71=_0x1b204e['model']['document']['differ']['getChanges']();if(0x0==_0x340d71['length'])return;const _0x1754b8=[],_0x217b9c=_0x340d71['filter'](_0x2f72f9=>'attribute'==_0x2f72f9['type']),_0x3ca371=_0x340d71['filter'](_0x12b570=>'insert'==_0x12b570['type']&&'$text'!=_0x12b570['name']);for(const _0x2ed0f3 of _0x217b9c)this['_isRegisteredAttribute'](_0x2ed0f3['attributeKey'])&&_0x1754b8['push']({'key':_0x2ed0f3['attributeKey'],'newValue':_0x2ed0f3['attributeNewValue'],'oldValue':_0x2ed0f3['attributeOldValue'],'range':Jt(_0x2ed0f3['range'],_0x1b204e['model'])});for(const _0x54fdd1 of _0x3ca371){if('rename'!=_0x54fdd1['action']&&'refresh'!=_0x54fdd1['action'])continue;const _0x16b0c9=Ht(_0x54fdd1['position']['nodeAfter'],_0x1b204e['model']),_0xf75433=_0x54fdd1['before'];'rename'==_0x54fdd1['action']&&_0x1754b8['push']({'key':m,'newValue':_0x54fdd1['name'],'oldValue':_0xf75433['name'],'range':_0x16b0c9});for(const [_0x55bd86,_0x18340d]of _0xf75433['attributes']){if(!this['_isRegisteredAttribute'](_0x55bd86))continue;const _0xabf68a=_0x54fdd1['attributes']['get'](_0x55bd86);_0x18340d!==_0xabf68a&&_0x1754b8['push']({'key':_0x55bd86,'newValue':_0xabf68a,'oldValue':_0x18340d,'range':_0x16b0c9});}for(const [_0x5b96b5,_0x4a8413]of _0x54fdd1['attributes'])this['_isRegisteredAttribute'](_0x5b96b5)&&(_0xf75433['attributes']['has'](_0x5b96b5)||_0x1754b8['push']({'key':_0x5b96b5,'newValue':_0x4a8413,'oldValue':null,'range':_0x16b0c9}));}0x0!=_0x1754b8['length']&&_0x1b204e['model']['enqueueChange'](_0x26636d,_0x5edf36=>{const _0x426626=_0x56f9d6();for(const {range:_0x6a949a,key:_0x482ea0,oldValue:_0x4f7cbb,newValue:_0xd4ec02}of _0x1754b8)this['markAttributeChange'](_0x6a949a,_0x482ea0,_0x4f7cbb,_0xd4ec02,{'groupId':_0x426626});this['_reduceExistingSuggestions'](_0x5edf36,_0x1754b8);});},{'priority':'lowest'}),_0x1b204e['model']['markers']['on']('update:suggestion',(_0x1c9de6,_0x339a7a,_0x455e2c)=>{if(null==_0x455e2c){const {id:_0x4836c2}=this['_splitMarkerName'](_0x339a7a['name']),_0x7d8c98=this['_suggestions']['get'](_0x4836c2);_0x7d8c98&&_0x7d8c98['addMarkerName'](_0x339a7a['name']);}}),_0x1b204e['model']['document']['on']('change:data',()=>{const _0x5e58ad=Array['from'](_0x1b204e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x34946d=>'suggestion'===this['_splitMarkerName'](_0x34946d['name'])['group']);if(0x0===_0x5e58ad['length'])return;_0x5e58ad['sort']((_0xec3186,_0x3b5e75)=>{const _0x404775=_0xec3186['data']['oldRange'],_0x4dacdb=_0x3b5e75['data']['oldRange'];return null===_0x404775&&null===_0x4dacdb?0x0:null===_0x404775&&null!==_0x4dacdb?-0x1:null!==_0x404775&&null===_0x4dacdb?0x1:_0x404775['start']['isBefore'](_0x4dacdb['start'])?-0x1:0x1;});const _0x4074c8=new Set(),_0x1e5acb=new Set();for(const {name:_0x16b742,data:_0x1a3731}of _0x5e58ad){const {id:_0x2a3cd3}=this['_splitMarkerName'](_0x16b742);if(null===_0x1a3731['oldRange']){const _0x38891a=this['_handleNewSuggestionMarker'](_0x16b742);_0x1e5acb['add'](_0x38891a);}else{const _0x42b737=this['_suggestions']['get'](_0x2a3cd3);null!==_0x1a3731['newRange']||_0x42b737['isInContent']?(_0x4074c8['add'](_0x42b737['head']),_0x1e5acb['add'](_0x42b737)):this['_removeSuggestion'](_0x42b737);}}_0x1e5acb['size']>0x0&&this['_refreshSuggestionsChain'](_0x1e5acb);for(const _0x58e47d of _0x4074c8)this['fire']('suggestionChanged',_0x58e47d);}),_0x1b204e['model']['on']('applyOperation',(_0x1aba3f,_0x5e44ce)=>{const _0x5a5246=_0x5e44ce[0x0];if(!this['_suggestions']['size'])return;if(!_0x5a5246['isDocumentOperation'])return;if(_0x5a5246['batch']['isUndo']||!_0x5a5246['batch']['isLocal'])return;let _0x181a92,_0x1079a8;switch(_0x5a5246['type']){case'insert':_0x181a92=_0x1b204e['model']['createPositionAt'](_0x5a5246['position']),_0x1079a8=_0x181a92['getShiftedBy'](_0x5a5246['howMany']);break;case'split':_0x181a92=_0x1b204e['model']['createPositionAt'](_0x5a5246['splitPosition']),_0x1079a8=_0x1b204e['model']['createPositionAt'](_0x5a5246['moveTargetPosition']);break;case'move':_0x181a92=_0x1b204e['model']['createPositionAt'](_0x5a5246['targetPosition']),_0x1079a8=_0x181a92['getShiftedBy'](_0x5a5246['howMany']);break;default:return;}const _0x37d702=_0x1b204e['model']['createRange'](_0x181a92,_0x1079a8);_0x1b204e['model']['change'](()=>{for(const {suggestion:_0x55724e,meta:_0x26dc97}of this['_findSuggestions'](_0x37d702)){if(_0x55724e['isMultiRange'])continue;if('formatInline'==_0x55724e['type'])continue;const _0x3c781e=this['_getAttributeKey'](_0x55724e);if(_0x3c781e&&this['_isBlockAttribute'](_0x3c781e)&&'split'!=_0x5a5246['type'])continue;const _0x289616=_0x55724e['data']&&_0x55724e['data']['multipleBlocks'];('formatBlock'!=_0x55724e['type']||'split'==_0x5a5246['type']&&!_0x289616)&&(_0x26dc97['containsRangeInObject']||'insertion'==_0x55724e['type']&&_0x26dc97['isOwn']||_0x55724e['getFirstRange']()['containsRange'](_0x37d702)&&this['_breakSuggestionMarker'](_0x55724e,_0x181a92,_0x1079a8));}});},{'priority':'lowest'}),_0x1b204e['model']['on']('deleteContent',(_0x9f27,_0x218681)=>{const _0x168cb1=_0x218681[0x0],_0x28a4e7=_0x218681[0x1];if(_0x28a4e7&&_0x28a4e7['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x168cb1['isCollapsed'])return;const _0x1641e1=_0x1b204e['model']['schema'],{start:_0x51f3e7,end:_0x50540d}=_0x168cb1['getFirstRange'](),_0xaf3cb9=_0x51f3e7['nodeAfter']&&_0x1641e1['isLimit'](_0x51f3e7['nodeAfter'])?null:_0x1641e1['getNearestSelectionRange'](_0x51f3e7,'forward'),_0x5f0bf9=_0x50540d['nodeBefore']&&_0x1641e1['isLimit'](_0x50540d['nodeBefore'])?null:_0x1641e1['getNearestSelectionRange'](_0x50540d,'backward'),_0x437f89=_0x1b204e['model']['createRange'](_0xaf3cb9?_0xaf3cb9['start']:_0x51f3e7,_0x5f0bf9?_0x5f0bf9['end']:_0x50540d);_0x1b204e['model']['change'](_0x89015f=>{this['markDeletion'](_0x437f89);const _0x2edb09=_0x1b204e['model']['schema']['getNearestSelectionRange'](_0x437f89['start']);_0x168cb1['is']('documentSelection')?_0x89015f['setSelection'](_0x2edb09):_0x168cb1['setTo'](_0x2edb09);}),_0x9f27['stop']();},{'priority':_0x18c1ff['normal']+0xa}),_0x1b204e['model']['on']('insertContent',(_0x445aad,_0x462de9)=>{const _0xcbe7d=_0x462de9[_0x462de9['length']-0x1];_0xcbe7d&&_0xcbe7d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1b204e['model']['change'](()=>{let _0x5e4697=_0x1b204e['model']['insertContent'](_0x462de9[0x0],_0x462de9[0x1],_0x462de9[0x2],{'forceDefaultExecution':!0x0});if(!_0x5e4697)return;_0x445aad['return']=_0x5e4697['clone']();const _0x26779a=_0x5e4697['end']['nodeBefore'],_0xbd64aa=_0x1b204e['model']['schema'];_0x26779a&&_0xbd64aa['isBlock'](_0x26779a)&&!_0xbd64aa['isObject'](_0x26779a)&&(_0x5e4697=_0x1b204e['model']['createRange'](_0x5e4697['start'],_0x1b204e['model']['createPositionAt'](_0x26779a,'end'))),this['markInsertion'](_0x5e4697);}),_0x445aad['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5315d4=new O(_0x1b204e,this['_suggestions']);_0x1b204e['commands']['add']('acceptSuggestion',_0x5315d4),this['enableCommand']('acceptSuggestion');const _0x70bac=new R(_0x1b204e,this['_suggestions']);_0x1b204e['commands']['add']('discardSuggestion',_0x70bac),this['enableCommand']('discardSuggestion'),_0x1b204e['commands']['add']('acceptAllSuggestions',new x(_0x1b204e,_0x5315d4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1b204e['commands']['add']('discardAllSuggestions',new x(_0x1b204e,_0x70bac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1b204e['commands']['add']('acceptSelectedSuggestions',new E(_0x1b204e,_0x5315d4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1b204e['commands']['add']('discardSelectedSuggestions',new E(_0x1b204e,_0x70bac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x31bed0=_0x1b204e['plugins']['get']('CommentsRepository');this['listenTo'](_0x31bed0,'addComment',(_0x35e982,{threadId:_0x3d1242})=>{const _0x474a2b=this['_suggestions']['get'](_0x3d1242);_0x474a2b&&_0x474a2b['commentThread']&&0x1===_0x474a2b['commentThread']['length']&&this['_updateSuggestionData'](_0x3d1242,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x31bed0,'removeComment',(_0x4b9fbe,{threadId:_0x212e9e})=>{const _0x5cf052=this['_suggestions']['get'](_0x212e9e);_0x5cf052&&_0x5cf052['commentThread']&&!_0x5cf052['commentThread']['length']&&this['_updateSuggestionData'](_0x212e9e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xf1e495){const _0x470cb7=_0x43bfa8([0x74,0x7a,0x44,0x69,0x71,0x53,0x4a,0x38,0x56,0x62,0x4c,0x4f,0x46,0x34,0x36,0x77,0x4e,0x6c,0x6f,0x48,0x42,0x5a,0x43,0x33,0x64,0x66,0x76,0x78,0x37,0x45,0x59,0x6a,0x68,0x52,0x65,0x70,0x54,0x4b,0x73,0x57,0x79,0x30,0x51,0x35,0x72,0x63,0x4d,0x55,0x39,0x32,0x58,0x41,0x6b,0x47,0x61,0x67,0x75,0x49,0x6d,0x50,0x6e,0x31]),_0x54bde2=0x4a21b15a,_0x213e47=0x4a26ee12^_0x54bde2,_0x34c31d=window[_0x43bfa8([0x44,0x61,0x74,0x65])][_0x43bfa8([0x6e,0x6f,0x77])](),_0x11620e=_0xf1e495[_0x43bfa8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x352b38=new window[(_0x43bfa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1910de=>{_0x11620e[_0x43bfa8([0x6f,0x6e,0x63,0x65])](_0x43bfa8([0x72,0x65,0x61,0x64,0x79]),_0x1910de);}),_0x2a7f4a={[_0x43bfa8([0x6b,0x74,0x79])]:_0x43bfa8([0x45,0x43]),[_0x43bfa8([0x75,0x73,0x65])]:_0x43bfa8([0x73,0x69,0x67]),[_0x43bfa8([0x63,0x72,0x76])]:_0x43bfa8([0x50,0x2d,0x32,0x35,0x36]),[_0x43bfa8([0x78])]:_0x43bfa8([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]),[_0x43bfa8([0x79])]:_0x43bfa8([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]),[_0x43bfa8([0x61,0x6c,0x67])]:_0x43bfa8([0x45,0x53,0x32,0x35,0x36])},_0x2c55cc=_0x11620e[_0x43bfa8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x43bfa8([0x67,0x65,0x74])](_0x43bfa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2f3681(){let _0x3d5e28,_0x2560ed=null,_0x4cbb6e=null;try{if(_0x2c55cc==_0x43bfa8([0x47,0x50,0x4c]))return _0x43bfa8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d5e28=_0x23e7bb(),!_0x3d5e28)return _0x43bfa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d5e28[_0x43bfa8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4cbb6e=_0x98622e(_0x3d5e28[_0x43bfa8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d5e28[_0x43bfa8([0x6a,0x74,0x69])])),await _0x4baef9()?_0x5f83e7()?_0x40ca75()?_0x43bfa8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x553870()?(_0x3d5e28[_0x43bfa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43bfa8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2560ed=_0xee7ee(_0x43bfa8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3d5e28[_0x43bfa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x43bfa8([0x74,0x72,0x69,0x61,0x6c])&&(_0x2560ed=_0xee7ee(_0x43bfa8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f63b2()):_0x43bfa8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x43bfa8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x43bfa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2191f7){return _0x43bfa8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40ca75(){const _0x2ff638=[_0x43bfa8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x43bfa8([0x74,0x72,0x69,0x61,0x6c])][_0x43bfa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5e28[_0x43bfa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34c31d/0x3e8:0xe10*_0x213e47;return _0x3d5e28[_0x43bfa8([0x65,0x78,0x70])]<_0x2ff638;}function _0x5f83e7(){const _0x320283=_0x3d5e28[_0x43bfa8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x320283)return!0x1;if(_0x320283[_0x43bfa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bfa8([0x2a])))return!0x0;if(_0x320283[_0x43bfa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bfa8([0x54,0x43])))return!0x0;if(_0x320283[_0x43bfa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bfa8([0x52,0x54,0x43]))){if(_0x3430f7())return!0x0;if(_0x2279a0()||_0x927bbc())return!0x0;}return!0x1;}function _0x553870(){const _0x346e2f=_0x3d5e28[_0x43bfa8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x346e2f||0x0==_0x346e2f[_0x43bfa8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x59757e}=new URL(window[_0x43bfa8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x346e2f[_0x43bfa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59757e))return!0x0;const _0x22b577=_0x59757e[_0x43bfa8([0x73,0x70,0x6c,0x69,0x74])](_0x43bfa8([0x2e]));return _0x346e2f[_0x43bfa8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5284b2=>_0x5284b2[_0x43bfa8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43bfa8([0x2a])))[_0x43bfa8([0x6d,0x61,0x70])](_0x40ed3f=>_0x40ed3f[_0x43bfa8([0x73,0x70,0x6c,0x69,0x74])](_0x43bfa8([0x2e])))[_0x43bfa8([0x73,0x6f,0x6d,0x65])](_0x4f7324=>_0x22b577[_0x43bfa8([0x65,0x76,0x65,0x72,0x79])]((_0x498508,_0x1c55e)=>_0x4f7324[_0x1c55e]===_0x498508||_0x4f7324[_0x1c55e]===_0x43bfa8([0x2a])));}function _0x3f63b2(){return _0x2560ed&&_0x4cbb6e?new window[(_0x43bfa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xcc7750,_0x4ac780)=>{_0x2560ed[_0x43bfa8([0x74,0x68,0x65,0x6e])](_0xcc7750,_0x4ac780),_0x4cbb6e[_0x43bfa8([0x74,0x68,0x65,0x6e])](_0x5d16e4=>{_0x5d16e4!=_0x43bfa8([0x56,0x61,0x6c,0x69,0x64])&&_0xcc7750(_0x5d16e4);},_0x4ac780);}):_0x2560ed||_0x4cbb6e||_0x43bfa8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x98622e(_0x3bb8f2,_0x39dbe0){return new window[(_0x43bfa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x393f2b=>{if(_0x473e22())return _0x393f2b(_0x43bfa8([0x56,0x61,0x6c,0x69,0x64]));_0x4fa226(),_0x11620e[_0x43bfa8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x43bfa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x59ef37=!0x1;const _0x4c3883=_0x56f9d6();function _0x3830c1(_0x283c54){return!!_0x283c54&&(typeof _0x283c54===_0x43bfa8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x283c54===_0x43bfa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x283c54[_0x43bfa8([0x74,0x68,0x65,0x6e])]===_0x43bfa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x283c54[_0x43bfa8([0x63,0x61,0x74,0x63,0x68])]===_0x43bfa8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x33e72e(_0xc0bebe){_0x2435fd(_0xc0bebe)[_0x43bfa8([0x74,0x68,0x65,0x6e])](_0x2777ae=>{if(!_0x2777ae||_0x2777ae[_0x43bfa8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x43bfa8([0x6f,0x6b]))return _0x43bfa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2ae848(_0x21764a(_0x4c3883+_0x39dbe0))!=_0x2777ae[_0x43bfa8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x43bfa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x43bfa8([0x56,0x61,0x6c,0x69,0x64]);})[_0x43bfa8([0x74,0x68,0x65,0x6e])](_0x2f41b9=>(_0x288815(),_0x2f41b9),()=>{const _0x2584b8=_0x1b19b2();return null==_0x2584b8?(_0x288815(),_0x43bfa8([0x56,0x61,0x6c,0x69,0x64])):_0x43bfa8(_0x34c31d-_0x2584b8>(0x6e2d355a^_0x54bde2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x43bfa8([0x74,0x68,0x65,0x6e])](_0x393f2b)[_0x43bfa8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x393f2b(_0x43bfa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d405f=0x4a175fda^_0x54bde2;function _0x288815(){const _0x2abe51=_0x43bfa8([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ae848(_0x21764a(_0x3bb8f2)),_0x22fd5b=_0xd4ed04(_0x2ae848(window[_0x43bfa8([0x4d,0x61,0x74,0x68])][_0x43bfa8([0x63,0x65,0x69,0x6c])](_0x34c31d/_0x1d405f)));window[_0x43bfa8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43bfa8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2abe51,_0x22fd5b);}function _0x1b19b2(){const _0x3cce0d=_0x43bfa8([0x6c,0x6c,0x63,0x74,0x2d])+_0x2ae848(_0x21764a(_0x3bb8f2)),_0x3518e9=window[_0x43bfa8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x43bfa8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cce0d);return _0x3518e9?window[_0x43bfa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd4ed04(_0x3518e9),0x10)*_0x1d405f:null;}function _0x2435fd(_0x47ebd2){return new window[(_0x43bfa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x36e433,_0x19f1a1)=>{_0x47ebd2[_0x43bfa8([0x74,0x68,0x65,0x6e])](_0x36e433,_0x19f1a1),window[_0x43bfa8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19f1a1,0x4a20659a^_0x54bde2);});}}_0x11620e[_0x43bfa8([0x6f,0x6e])](_0x43bfa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x56dda5,_0x25ebf7)=>{if(_0x25ebf7[0x0]!=_0x3bb8f2)return _0x393f2b(_0x43bfa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x25ebf7[0x1]={..._0x25ebf7[0x1],[_0x43bfa8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4c3883};},{[_0x43bfa8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43bfa8([0x68,0x69,0x67,0x68])}),_0x11620e[_0x43bfa8([0x6f,0x6e])](_0x43bfa8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14755f=>{_0x3830c1(_0x14755f[_0x43bfa8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x59ef37=!0x0,_0x33e72e(_0x14755f[_0x43bfa8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x43bfa8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x43bfa8([0x6c,0x6f,0x77])}),_0x352b38[_0x43bfa8([0x74,0x68,0x65,0x6e])](()=>{_0x59ef37||_0x393f2b(_0x43bfa8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x473e22(){return _0x11620e[_0x43bfa8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43bfa8([0x76,0x69,0x65,0x77])][_0x43bfa8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x43bfa8([0x61,0x75,0x74,0x6f]);}function _0x4fa226(){_0x11620e[_0x43bfa8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x43bfa8([0x76,0x69,0x65,0x77])][_0x43bfa8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x43bfa8([0x61,0x75,0x74,0x6f]);}}function _0xee7ee(_0x219597){const _0x495e85=[new window[(_0x43bfa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47d646=>setTimeout(_0x47d646,0x4a288f96^_0x54bde2)),_0x352b38[_0x43bfa8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x43bfa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a3d5f=>{let _0x1425c5=0x0;_0x11620e[_0x43bfa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x43bfa8([0x6f,0x6e])](_0x43bfa8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52d082,_0xcb87b4)=>{_0xcb87b4[0x0][_0x43bfa8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1425c5++,_0x1425c5==(0x4a21b0a2^_0x54bde2)&&(_0x5a3d5f(),_0x52d082[_0x43bfa8([0x6f,0x66,0x66])]());});}))];return window[_0x43bfa8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x43bfa8([0x72,0x61,0x63,0x65])](_0x495e85)[_0x43bfa8([0x74,0x68,0x65,0x6e])](()=>_0x219597);}async function _0x2e1434(){await _0x352b38,_0x11620e[_0x43bfa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x43bfa8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3cde5c,_0x11620e[_0x43bfa8([0x6d,0x6f,0x64,0x65,0x6c])][_0x43bfa8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3cde5c,_0x11620e[_0x43bfa8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x43bfa8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3430f7(){return _0x30e06c(_0x43bfa8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x9f2c94(_0x43bfa8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x43bfa8([0x73,0x74,0x61,0x74,0x65])]==_0x43bfa8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2279a0(){return _0x30e06c(_0x43bfa8([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 _0x927bbc(){return _0x30e06c(_0x43bfa8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x369ac6(_0x35a540){const _0x16e7d4=_0x44c42a();_0x11620e[_0x16e7d4]=_0x43bfa8([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x35a540,_0x35a540!=_0x43bfa8([0x56,0x61,0x6c,0x69,0x64])&&_0x2e1434();}function _0x44c42a(){const _0x571b72=window[_0x43bfa8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x43bfa8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x43bfa8([0x6e,0x6f,0x77])]())[_0x43bfa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x43bfa8([0x2e]),'');let _0x2a6e21=_0x43bfa8([0x74]);for(let _0x24a5a5=0x0;_0x24a5a5<_0x571b72[_0x43bfa8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24a5a5+=0x2){let _0x4718ea=window[_0x43bfa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x571b72[_0x43bfa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24a5a5,_0x24a5a5+0x2));_0x4718ea>=_0x470cb7[_0x43bfa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4718ea-=_0x470cb7[_0x43bfa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a6e21+=_0x470cb7[_0x4718ea];}return _0x2a6e21;}function _0x23e7bb(){const _0x17c6f5=_0x2c55cc[_0x43bfa8([0x73,0x70,0x6c,0x69,0x74])](_0x43bfa8([0x2e]));if(0x3!=_0x17c6f5[_0x43bfa8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ca326(_0x17c6f5[0x1]);function _0x5ca326(_0xb9b914){const _0x4e738d=_0x1b5ba2(_0xb9b914);return _0x4e738d&&_0x2266c2()?_0x4e738d:null;function _0x2266c2(){const _0x4b1c2d=_0x4e738d[_0x43bfa8([0x6a,0x74,0x69])],_0x1c269a=window[_0x43bfa8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b1c2d[_0x43bfa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b1c2d[_0x43bfa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42c560={..._0x4e738d,[_0x43bfa8([0x6a,0x74,0x69])]:_0x4b1c2d[_0x43bfa8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b1c2d[_0x43bfa8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42c560[_0x43bfa8([0x76,0x63])],_0x21764a(_0x42c560)==_0x1c269a;}}}async function _0x4baef9(){let _0x2fa648=!0x0;try{const _0x23810d=_0x2c55cc[_0x43bfa8([0x73,0x70,0x6c,0x69,0x74])](_0x43bfa8([0x2e])),[_0x2c6a7c,_0x1d2b97,_0x57ca2d]=_0x23810d;return _0x1c0c11(_0x2c6a7c),await _0x54bb99(_0x2c6a7c,_0x1d2b97,_0x57ca2d),_0x2fa648;}catch(_0x3fd401){return!0x1;}function _0x1c0c11(_0x3e7969){const _0x107044=_0x1b5ba2(_0x3e7969);_0x107044&&_0x107044[_0x43bfa8([0x61,0x6c,0x67])]==_0x43bfa8([0x45,0x53,0x32,0x35,0x36])||(_0x2fa648=!0x1);}async function _0x54bb99(_0x3260e8,_0x1626ad,_0x367e29){const _0x1535ad=window[_0x43bfa8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x43bfa8([0x66,0x72,0x6f,0x6d])](_0x2af1c7(_0x367e29),_0x312b97=>_0x312b97[_0x43bfa8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x24a843=new window[(_0x43bfa8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x43bfa8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3260e8+_0x43bfa8([0x2e])+_0x1626ad),_0x5773fb=window[_0x43bfa8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x43bfa8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5773fb)return;const _0x23f5ac=await _0x5773fb[_0x43bfa8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x43bfa8([0x6a,0x77,0x6b]),_0x2a7f4a,{[_0x43bfa8([0x6e,0x61,0x6d,0x65])]:_0x43bfa8([0x45,0x43,0x44,0x53,0x41]),[_0x43bfa8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x43bfa8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x43bfa8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5773fb[_0x43bfa8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x43bfa8([0x6e,0x61,0x6d,0x65])]:_0x43bfa8([0x45,0x43,0x44,0x53,0x41]),[_0x43bfa8([0x68,0x61,0x73,0x68])]:{[_0x43bfa8([0x6e,0x61,0x6d,0x65])]:_0x43bfa8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x23f5ac,_0x1535ad,_0x24a843)||(_0x2fa648=!0x1);}}function _0x1b5ba2(_0x57ce1a){return _0x57ce1a[_0x43bfa8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x43bfa8([0x65,0x79]))?JSON[_0x43bfa8([0x70,0x61,0x72,0x73,0x65])](_0x2af1c7(_0x57ce1a)):null;}function _0x2af1c7(_0x354e5f){return window[_0x43bfa8([0x61,0x74,0x6f,0x62])](_0x354e5f[_0x43bfa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x43bfa8([0x2b]))[_0x43bfa8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x43bfa8([0x2f])));}function _0x21764a(_0x181d47){let _0x745dd2=0x1505;function _0x42560f(_0xda1d46){for(let _0x169455=0x0;_0x169455<_0xda1d46[_0x43bfa8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x169455++){const _0x4dc4ea=_0xda1d46[_0x43bfa8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x169455);_0x745dd2=(_0x745dd2<<0x5)+_0x745dd2+_0x4dc4ea,_0x745dd2&=_0x745dd2;}}function _0x19c878(_0x5e25ed){Array[_0x43bfa8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5e25ed)?_0x5e25ed[_0x43bfa8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19c878):_0x5e25ed&&typeof _0x5e25ed==_0x43bfa8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x43bfa8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5e25ed)[_0x43bfa8([0x73,0x6f,0x72,0x74])]()[_0x43bfa8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x32264c,_0x473348])=>{_0x42560f(_0x32264c),_0x19c878(_0x473348);}):_0x42560f(window[_0x43bfa8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5e25ed));}return _0x19c878(_0x181d47),_0x745dd2>>>0x0;}function _0x2ae848(_0x43f4aa){return _0x43f4aa[_0x43bfa8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x43bfa8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x43bfa8([0x30]));}function _0xd4ed04(_0x37fbe1){return _0x37fbe1[_0x43bfa8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x43bfa8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x43bfa8([0x6a,0x6f,0x69,0x6e])]('');}function _0x30e06c(_0x37a574){return _0x11620e[_0x43bfa8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43bfa8([0x68,0x61,0x73])](_0x37a574);}function _0x9f2c94(_0x5e4a78){return _0x11620e[_0x43bfa8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x43bfa8([0x67,0x65,0x74])](_0x5e4a78);}function _0x3cde5c(){}function _0x43bfa8(_0x2634e4){return _0x2634e4['map'](_0x4517f7=>String['fromCharCode'](_0x4517f7))['join']('');}_0x369ac6(await _0x2f3681());}(this);}set['adapter'](_0xecd75){if(this['_adapter'])throw new _0x27aa88('track-changes-adapter-already-set',this);this['_adapter']=_0xecd75;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x514c58=!0x1,toJSON:_0x5abd61=!0x1}={}){const _0x56ff93=[];for(const _0x2314c7 of this['_suggestions']['values']())_0x514c58&&!_0x2314c7['isInContent']||_0x56ff93['push'](_0x2314c7);return _0x5abd61?_0x56ff93['map'](_0x58a6f7=>_0x58a6f7['toJSON']()):_0x56ff93;}['getSuggestion'](_0x257519){const _0x2fe891=this['_suggestions']['get'](_0x257519);if(!_0x2fe891)throw new _0x27aa88('track-changes-suggestion-not-found',this);return _0x2fe891;}['hasSuggestion'](_0x454600){return this['_suggestions']['has'](_0x454600);}['addSuggestionData'](_0x147c82){const {authorId:_0x2052a5,id:_0x3cabfe,attributes:_0x33f2dd}=_0x147c82,[_0x140f84,_0x52964c]=_0x147c82['type']['split'](':'),_0x5a4cab=this['_suggestions']['get'](_0x3cabfe)||this['_createSuggestion'](_0x140f84,_0x52964c,_0x3cabfe,_0x2052a5,_0x33f2dd);if(this['_addThreadToSuggestion'](_0x5a4cab),this['_checkSuggestionCorrectness'](_0x5a4cab,_0x140f84,_0x52964c||null,_0x2052a5),_0x5a4cab['createdAt']=_0x147c82['createdAt'],_0x5a4cab['_isDataLoaded']=!0x0,_0x33f2dd&&_0x33f2dd['@external']){const _0x3715c3=_0x33f2dd['@external'],_0x2fb08a=this['_getExternalAuthor'](_0x3715c3['authorName']);_0x5a4cab['authoredAt']=_0x3715c3['createdAt'],_0x5a4cab['author']=_0x2fb08a,_0x5a4cab['isExternal']=!0x0;}else _0x5a4cab['authoredAt']=_0x147c82['createdAt'];switch(_0x147c82['data']&&(_0x5a4cab['data']=_0x147c82['data']),_0x147c82['attributes']&&(_0x5a4cab['attributes']=_0x147c82['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5a4cab['_saved']=!0x0),this['_suggestionState']['get'](_0x5a4cab)){case'notReady':this['_suggestionState']['set'](_0x5a4cab,'dataReady');break;case'markerReady':_0x5a4cab['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5a4cab])),this['_refreshSuggestionsChain'](new Set([_0x5a4cab])),this['_suggestionState']['set'](_0x5a4cab,'ready'),this['fire']('suggestionLoaded',_0x5a4cab)):this['_suggestionState']['set'](_0x5a4cab,'removed');}return _0x5a4cab;}['acceptSuggestion'](_0x2abde1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x199f11 of _0x2abde1['getAllAdjacentSuggestions']())_0x199f11['accept']();});});}['discardSuggestion'](_0x170682){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x17cd0f of _0x170682['getAllAdjacentSuggestions']())_0x17cd0f['discard']();});});}['enableCommand'](_0x446555,_0x400f01){const _0x5749b2=this['editor']['commands']['get'](_0x446555);if(!_0x5749b2)throw new _0x27aa88('track-changes-command-not-found',this,{'commandName':_0x446555});if(this['_enabledCommands']['has'](_0x5749b2))throw new _0x27aa88('track-changes-enable-command-twice',this,{'commandName':_0x446555});this['_enabledCommands']['add'](_0x5749b2),_0x400f01&&_0x5749b2['on']('execute',(_0x2790c0,_0x6f1bd2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x6f1bd2['length']>0x0&&_0x6f1bd2[_0x6f1bd2['length']-0x1]&&_0x6f1bd2[_0x6f1bd2['length']-0x1]['forceDefaultExecution']?_0x6f1bd2['pop']():(_0x2790c0['return']=_0x400f01((..._0x3ee335)=>_0x5749b2['execute'](..._0x3ee335,{'forceDefaultExecution':!0x0}),..._0x6f1bd2),_0x2790c0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1fcef6){let _0x56b89f,_0x180025;const _0x3c8362=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x56b89f=_0x1fcef6();}catch(_0x1ffb96){_0x180025=_0x1ffb96;}return _0x3c8362||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x180025&&_0x27aa88['rethrowUnexpectedError'](_0x180025,this),_0x56b89f;}['markInsertion'](_0x149046,_0x21e67c=null,_0x125558={}){if(_0x149046['isCollapsed'])return null;const _0xda0ff7=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x14ace7,meta:_0x401324}of this['_findSuggestions'](_0x149046,'insertion'))if(_0x401324['isOwn']){if(!_0x401324['isNextTo']){if(_0x401324['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x14ace7,_0x125558))continue;return _0x14ace7;}if(Kt(_0x14ace7,_0x125558))return _0x14ace7;this['_breakSuggestionMarker'](_0x14ace7,_0x149046['start'],_0x149046['end']);break;}if(_0x21e67c==_0x14ace7['subType']&&Kt(_0x14ace7,_0x125558)){const _0x3c16a0=_0x14ace7['getFirstRange']();return _0x3c16a0['start']['isEqual'](_0x149046['end'])?this['_setSuggestionRange'](_0x14ace7,this['_model']['createRange'](_0x149046['start'],_0x3c16a0['end'])):this['_setSuggestionRange'](_0x14ace7,this['_model']['createRange'](_0x3c16a0['start'],_0x149046['end'])),_0x14ace7;}}const _0x3970a4=_0x56f9d6(),_0x3bc6b4=_0xda0ff7['id'],_0x265162=_0x21e67c?'insertion:'+_0x21e67c:'insertion',_0x5aa65b=this['_setSuggestionData']({'id':_0x3970a4,'type':_0x265162,'createdAt':new Date(),'authorId':_0x3bc6b4,'attributes':_0x125558});return this['_addSuggestionMarker'](_0x265162,_0x3970a4,_0x3bc6b4,_0x149046),_0x5aa65b;}['markMultiRangeInsertion'](_0x4e2e66,_0x341ecd='multi',_0x562d42={}){const _0x3e81dc=this['editor']['plugins']['get']('Users')['me'],_0x4475aa=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x341ecd,'join');for(const _0x5f31eb of this['getSuggestions']())if(_0x5f31eb['author']['id']==_0x3e81dc['id']&&'insertion'==_0x5f31eb['type']&&_0x5f31eb['subType']==_0x341ecd&&Kt(_0x5f31eb,_0x562d42)&&(_0x4475aa(_0x5f31eb['getRanges'](),_0x4e2e66)||_0x4475aa(_0x4e2e66,_0x5f31eb['getRanges']()))){for(const _0x4e39d4 of _0x4e2e66)_0x5f31eb['addRange'](_0x4e39d4);return _0x5f31eb;}for(const {suggestion:_0x1c91c9,meta:_0xc383ee}of this['_findSuggestions'](_0x4e2e66,'insertion')){if(!_0xc383ee['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xc383ee['containsRangeInObject'])continue;if(!Kt(_0x1c91c9,_0x562d42))continue;let _0x213400=!0x0;for(const _0x584e8d of _0x1c91c9['getRanges']())for(const _0x30176e of _0x4e2e66)if(!_0x584e8d['containsRange'](_0x30176e)){_0x213400=!0x1;break;}if(_0x213400)return _0x1c91c9;}const _0x118891=_0x56f9d6(),_0x36f823=_0x3e81dc['id'],_0x4a1659='insertion:'+_0x341ecd,_0x365cc0=this['_setSuggestionData']({'id':_0x118891,'type':_0x4a1659,'createdAt':new Date(),'authorId':_0x36f823,'attributes':_0x562d42});for(const _0x583346 of _0x4e2e66)this['_addSuggestionMarker'](_0x4a1659,_0x118891,_0x36f823,_0x583346,u['getMultiRangeId']());return _0x365cc0;}['markInlineFormat'](_0xc9d85c,_0x46613f,_0x45626b=null,_0x544ecf={}){if(_0x45626b=_0x45626b||Ft(_0x46613f),_0xc9d85c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x54cbfd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x45626b,'accept');return this['forceDefaultExecution'](()=>_0x54cbfd([_0xc9d85c],_0x46613f,_0x544ecf)),null;}const _0x4fa526=this['editor']['plugins']['get']('Users')['me'],_0x20cfe2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x10630d,meta:_0xd45d0f}of this['_findSuggestions'](_0xc9d85c,'insertion'))_0xd45d0f['isOwn']&&!_0xd45d0f['isInsideObject']&&_0x20cfe2['push'](..._0x10630d['getRanges']());}const _0x1f6c05=function(_0x440a73,_0x159637){const _0x42ba33=[];for(const _0x1c0054 of _0x159637){const _0x493f12=_0x440a73['getIntersection'](_0x1c0054);_0x493f12&&_0x42ba33['push'](_0x493f12);}return _0x42ba33;}(_0xc9d85c,_0x20cfe2),_0x4e22bc=function(_0x5d47d3,_0x55b4b2){const _0x1522e5=[_0x5d47d3];for(const _0x296bf6 of _0x55b4b2){let _0x5b9077=0x0;for(;_0x5b9077<_0x1522e5['length'];){const _0x4da9a2=_0x1522e5[_0x5b9077]['getDifference'](_0x296bf6);_0x1522e5['splice'](_0x5b9077,0x1,..._0x4da9a2),_0x5b9077+=_0x4da9a2['length'];}}return _0x1522e5;}(_0xc9d85c,_0x20cfe2);_0x1f6c05['length']&&this['_model']['change'](()=>{for(const _0x51e979 of _0x1f6c05){const _0x59a77f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x45626b,'accept');this['forceDefaultExecution'](()=>_0x59a77f([_0x51e979],_0x46613f,_0x544ecf));}});for(const _0x407966 of _0x4e22bc){let _0xaea7da=null,_0x15c9b3=_0x407966['start'],_0x35f753=_0x407966['end'];for(const {suggestion:_0x4f1dad,meta:_0x41f650}of this['_findSuggestions'](_0x407966,'formatInline')){if(!_0x41f650['isOwn'])continue;if(_0x4f1dad['subType']!=_0x45626b)continue;if(!Kt(_0x4f1dad,_0x544ecf))continue;const _0x1c56a7=_0x4f1dad['getFirstRange']();if(_0x1c56a7['containsRange'](_0x407966,!0x0))return null;_0x15c9b3=_0x15c9b3['isBefore'](_0x1c56a7['start'])?_0x15c9b3:_0x1c56a7['start'],_0x35f753=_0x35f753['isAfter'](_0x1c56a7['end'])?_0x35f753:_0x1c56a7['end'],_0xaea7da?_0x1c56a7['start']['isBefore'](_0xaea7da['getFirstRange']()['start'])?(_0xaea7da['removeMarkers'](),_0xaea7da=_0x4f1dad):_0x4f1dad['removeMarkers']():_0xaea7da=_0x4f1dad;}const _0x58d9cc=this['_model']['createRange'](_0x15c9b3,_0x35f753);if(_0xaea7da)this['_setSuggestionRange'](_0xaea7da,_0x58d9cc);else{const _0xb26430=_0x56f9d6(),_0x4c423a=_0x4fa526['id'];this['_setSuggestionData']({'id':_0xb26430,'type':'formatInline:'+_0x45626b,'data':_0x46613f,'createdAt':new Date(),'authorId':_0x4c423a,'attributes':_0x544ecf}),this['_addSuggestionMarker']('formatInline:'+_0x45626b,_0xb26430,_0x4c423a,_0x58d9cc);}}return null;}['markBlockFormat'](_0x185e04,_0x329a7c,_0x444122=[],_0x2fbbca=null,_0x4f8b37={}){_0x329a7c['formatGroupId']||(_0x329a7c['formatGroupId']=_0x329a7c['commandName']),_0x329a7c['multipleBlocks']=_0x185e04['is']('range'),_0x2fbbca=_0x2fbbca||Ft(_0x329a7c);const _0x3c1dc3=_0x444122['map'](_0xa7862c=>Ht(_0xa7862c,this['_model'])),_0x236226=_0x185e04['is']('range')?_0x185e04:Ht(_0x185e04,this['_model']);if('never'===this['_trackFormatChanges']){const _0x11851e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fbbca,'accept');return this['forceDefaultExecution'](()=>_0x11851e([_0x236226],_0x329a7c,_0x4f8b37)),null;}_0x3c1dc3['push'](_0x236226);let _0x48fe48=!0x0;for(const _0x11fcb8 of _0x3c1dc3)if(!this['_rangeIsInLocalUserInsertion'](_0x11fcb8)){_0x48fe48=!0x1;break;}if(_0x48fe48&&'always'!==this['_trackFormatChanges']){const _0x22763f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2fbbca,'accept');return this['forceDefaultExecution'](()=>_0x22763f([_0x236226],_0x329a7c,_0x4f8b37)),null;}let _0x4db604=null,_0x3362de=_0x236226['start'],_0x261d4e=_0x236226['end'];for(const {suggestion:_0x5ea454,meta:_0x2b59aa}of this['_findSuggestions'](_0x236226,'formatBlock')){if(!_0x2b59aa['isOwn'])continue;if(_0x2b59aa['isNextTo']||_0x2b59aa['containsRangeInObject']||_0x2b59aa['isInsideObject'])continue;if(_0x5ea454['data']['formatGroupId']!=_0x329a7c['formatGroupId'])continue;if(!Kt(_0x5ea454,_0x4f8b37))continue;const _0x31bc3b=_0x5ea454['getFirstRange']();if(_0x5ea454['subType']==_0x2fbbca){if(_0x31bc3b['containsRange'](_0x236226,!0x0))return null;_0x3362de=_0x3362de['isBefore'](_0x31bc3b['start'])?_0x3362de:_0x31bc3b['start'],_0x261d4e=_0x261d4e['isAfter'](_0x31bc3b['end'])?_0x261d4e:_0x31bc3b['end'],_0x4db604?_0x31bc3b['start']['isBefore'](_0x4db604['getFirstRange']()['start'])?(_0x4db604['removeMarkers'](),_0x4db604=_0x5ea454):_0x5ea454['removeMarkers']():_0x4db604=_0x5ea454;}else{const _0x1d70a=_0x236226['getIntersection'](_0x31bc3b);this['_cutOutSuggestionMarker'](_0x5ea454,_0x1d70a);}}const _0xc3f88c=this['editor']['plugins']['get']('Users')['me'],_0x10efc7=_0x56f9d6(),_0x4dfba6=_0xc3f88c['id'];if(_0x4db604)return this['_setSuggestionRange'](_0x4db604,this['_model']['createRange'](_0x3362de,_0x261d4e)),_0x4db604;{const _0x2324d9=this['_setSuggestionData']({'id':_0x10efc7,'type':'formatBlock:'+_0x2fbbca,'data':_0x329a7c,'createdAt':new Date(),'authorId':_0x4dfba6,'attributes':_0x4f8b37});return this['_addSuggestionMarker']('formatBlock:'+_0x2fbbca,_0x10efc7,_0x4dfba6,this['_model']['createRange'](_0x3362de,_0x261d4e)),_0x2324d9;}}['markMultiRangeBlockFormat'](_0x4c9894,_0x3b257a,_0x26395e=[],_0x42ae46=null,_0x1eb809={}){_0x3b257a['formatGroupId']||(_0x3b257a['formatGroupId']=_0x3b257a['commandName']);const _0x3e8126=_0x4c9894[0x0];_0x3b257a['multipleBlocks']=_0x3e8126['is']('range'),_0x42ae46=_0x42ae46||Ft(_0x3b257a);const _0x3c6ccf=_0x26395e['map'](_0x2176cf=>Ht(_0x2176cf,this['_model'])),_0x5b4f47=_0x3e8126['is']('range')?_0x4c9894:_0x4c9894['map'](_0x49dc99=>Ht(_0x49dc99,this['_model']));if('never'===this['_trackFormatChanges']){const _0x444098=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42ae46,'accept');return this['forceDefaultExecution'](()=>_0x444098(_0x5b4f47,_0x3b257a,_0x1eb809)),null;}_0x3c6ccf['push'](..._0x5b4f47);let _0x525e71=!0x0;for(const _0x178ff3 of _0x3c6ccf)if(!this['_rangeIsInLocalUserInsertion'](_0x178ff3)){_0x525e71=!0x1;break;}if(_0x525e71&&'always'!==this['_trackFormatChanges']){const _0x2d8cb4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42ae46,'accept');return this['forceDefaultExecution'](()=>_0x2d8cb4(_0x5b4f47,_0x3b257a,_0x1eb809)),null;}const _0x57e417=this['editor']['plugins']['get']('Users')['me'];for(const _0x5571d2 of this['getSuggestions']()){if(_0x5571d2['author']['id']!=_0x57e417['id'])continue;if('formatBlock'!=_0x5571d2['type']||_0x5571d2['data']['formatGroupId']!=_0x3b257a['formatGroupId'])continue;if(!Kt(_0x5571d2,_0x1eb809))continue;const _0x9eb46e=_0x5571d2['subType']==_0x42ae46;for(let _0x5e4275=0x0;_0x5e4275<_0x5b4f47['length'];_0x5e4275++){const _0x26f5ae=_0x5b4f47[_0x5e4275];for(const _0x54fa7f of _0x5571d2['getMarkers']()){const _0x4b185d=_0x54fa7f['getRange']();if(_0x26f5ae['isEqual'](_0x4b185d)){_0x9eb46e?(_0x5b4f47['splice'](_0x5e4275,0x1),_0x5e4275--):_0x5571d2['removeMarker'](_0x54fa7f['name']);break;}}}}if(0x0==_0x5b4f47['length'])return null;const _0x2371aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x42ae46,'join');for(const _0x125a96 of this['getSuggestions']())if(_0x125a96['author']['id']==_0x57e417['id']&&'formatBlock'==_0x125a96['type']&&_0x125a96['data']['formatGroupId']==_0x3b257a['formatGroupId']&&_0x125a96['subType']==_0x42ae46&&Kt(_0x125a96,_0x1eb809)&&(_0x2371aa(_0x125a96['getRanges'](),_0x5b4f47)||_0x2371aa(_0x5b4f47,_0x125a96['getRanges']()))){for(const _0x4f1640 of _0x5b4f47)_0x125a96['addRange'](_0x4f1640);return _0x125a96;}const _0x5b16e0=_0x56f9d6(),_0x3f0980=_0x57e417['id'],_0x4824ea='formatBlock:'+_0x42ae46,_0x407974=this['_setSuggestionData']({'id':_0x5b16e0,'type':_0x4824ea,'data':_0x3b257a,'createdAt':new Date(),'authorId':_0x3f0980,'attributes':_0x1eb809});for(const _0x25db13 of _0x5b4f47)this['_addSuggestionMarker'](_0x4824ea,_0x5b16e0,_0x3f0980,_0x25db13,u['getMultiRangeId']());return _0x407974;}['markDeletion'](_0x57a768,_0x17119a=null,_0x46f216={}){if(_0x57a768['isCollapsed'])return null;const _0x289333=this['editor']['plugins']['get']('Users')['me'],_0x701859=new _0x589a5b(_0x57a768['start'],_0x57a768['end']);for(const {suggestion:_0x4407e2,meta:_0x271108}of this['_findSuggestions'](_0x701859,'insertion'))if(_0x271108['isOwn']&&!_0x271108['isNextTo']){if(_0x4407e2['isMultiRange']){const _0x32c304=_0x4407e2['getRanges']()['filter'](_0x3e7190=>'$graveyard'!=_0x3e7190['root']['rootName']);_0x32c304['every'](_0x5ebffa=>_0x701859['containsRange'](_0x5ebffa,!0x0))&&_0x4407e2['discard']();if(_0x32c304['some'](_0x259e7f=>_0x259e7f['containsRange'](_0x701859,!0x0))){const _0x33af69=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x17119a,'accept');return this['forceDefaultExecution'](()=>_0x33af69([_0x701859],null,_0x46f216)),null;}}else{const _0x4cbf12=_0x701859['getIntersection'](_0x4407e2['getFirstRange']());null!==_0x4cbf12&&_0x4407e2['_onDiscard']([_0x4cbf12],null,_0x46f216);}}if(_0x701859['detach'](),_0x701859['isCollapsed']||'$graveyard'==_0x701859['root']['rootName'])return null;let _0x522fb2=null,_0x30b1d8=_0x701859['start'],_0x11ef60=_0x701859['end'];const _0x2cbc0b=this['_findSuggestions'](_0x701859,'deletion');for(const {suggestion:_0x3e201d,meta:_0x49fc49}of _0x2cbc0b){const _0x15f7a5=this['_model']['createRange'](_0x30b1d8,_0x11ef60);if(_0x49fc49['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49fc49['containsRangeInObject']&&!_0x49fc49['isInsideObject'])){if(_0x3e201d['isMultiRange']){if(!Kt(_0x3e201d,_0x46f216))continue;let _0x2011c7=!0x0;for(const _0x490b29 of _0x3e201d['getRanges']()){if(_0x490b29['containsRange'](_0x15f7a5,!0x0))return _0x3e201d;_0x15f7a5['containsRange'](_0x490b29)||(_0x2011c7=!0x1);}_0x2011c7&&_0x3e201d['discard']();}else{const _0x20e011=_0x3e201d['getFirstRange']();if(_0x20e011['containsRange'](_0x15f7a5,!0x0))return _0x3e201d;if(!Kt(_0x3e201d,_0x46f216)){_0x15f7a5['containsRange'](_0x20e011)?_0x3e201d['removeMarkers']():_0x20e011['containsPosition'](_0x30b1d8)?_0x30b1d8=_0x20e011['end']:_0x20e011['containsPosition'](_0x11ef60)&&(_0x11ef60=_0x20e011['start']);continue;}_0x30b1d8=_0x30b1d8['isBefore'](_0x20e011['start'])?_0x30b1d8:_0x20e011['start'],_0x11ef60=_0x11ef60['isAfter'](_0x20e011['end'])?_0x11ef60:_0x20e011['end'],_0x46f216=Object['assign']({},_0x3e201d['attributes']),_0x522fb2?_0x20e011['start']['isBefore'](_0x522fb2['getFirstRange']()['start'])?(_0x522fb2['removeMarkers'](),_0x522fb2=_0x3e201d):_0x3e201d['removeMarkers']():_0x522fb2=_0x3e201d;}}}if(_0x522fb2)return this['_setSuggestionRange'](_0x522fb2,this['_model']['createRange'](_0x30b1d8,_0x11ef60)),_0x522fb2;{const _0x316047=_0x56f9d6(),_0x394e99=this['_model']['createRange'](_0x30b1d8,_0x11ef60),_0x24fdeb=_0x289333['id'],_0x279b67=_0x17119a?'deletion:'+_0x17119a:'deletion',_0x4b57b9=this['_setSuggestionData']({'id':_0x316047,'type':_0x279b67,'createdAt':new Date(),'authorId':_0x24fdeb,'attributes':_0x46f216});return this['_addSuggestionMarker'](_0x279b67,_0x316047,_0x24fdeb,_0x394e99),_0x4b57b9;}}['markMultiRangeDeletion'](_0x14b61d,_0x4eaf42='multi',_0x1a4d20={}){const _0x2f70e8=this['editor']['plugins']['get']('Users')['me'],_0x16c721=_0x14b61d['map'](_0x5d4f8d=>new _0x589a5b(_0x5d4f8d['start'],_0x5d4f8d['end'])),_0xf1aee3=new Set();for(const {suggestion:_0xd98393,meta:_0x38d322}of this['_findSuggestions'](_0x16c721,'insertion'))_0x38d322['isOwn']&&!_0x38d322['isNextTo']&&_0xf1aee3['add'](_0xd98393);for(const _0x50b865 of _0xf1aee3)if(_0x50b865['isMultiRange']){const _0x48f161=_0x50b865['getRanges']();(!_0x50b865['attributes']||!_0x50b865['attributes']['skipNestingCheck'])&&(_0x48f161['every'](_0x106a78=>_0x16c721['some'](_0x1f1f43=>_0x1f1f43['containsRange'](_0x106a78,!0x0)))&&_0x50b865['discard']());if(_0x16c721['every'](_0x2b82c5=>_0x48f161['some'](_0x40ac7c=>_0x40ac7c['containsRange'](_0x2b82c5,!0x0)))){const _0x2796ea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4eaf42,'accept');return this['forceDefaultExecution'](()=>_0x2796ea(_0x14b61d,null,_0x1a4d20)),null;}}else{const _0x5281f9=_0x50b865['getFirstRange']();_0x16c721['some'](_0x52dd5c=>_0x52dd5c['containsRange'](_0x5281f9,!0x0))&&_0x50b865['discard']();if(_0x16c721['every'](_0x3b3054=>_0x5281f9['containsRange'](_0x3b3054,!0x0))){const _0x17cc8d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4eaf42,'accept');return this['forceDefaultExecution'](()=>_0x17cc8d(_0x16c721,null,_0x1a4d20)),null;}}const _0x3ba748=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4eaf42,'join');let _0x649931=null;for(const _0x19048f of this['getSuggestions']())if(_0x19048f['author']['id']==_0x2f70e8['id']&&_0x19048f['isInContent']&&'deletion'==_0x19048f['type']&&_0x19048f['subType']==_0x4eaf42&&Kt(_0x19048f,_0x1a4d20)&&(_0x3ba748(_0x19048f['getRanges'](),_0x16c721)||_0x3ba748(_0x16c721,_0x19048f['getRanges']()))){if(_0x649931){if(_0x19048f['commentThread']&&_0x19048f['commentThread']['length'])continue;for(const _0x2a1031 of _0x19048f['getRanges']())_0x649931['isIntersectingWithRange'](_0x2a1031)||_0x649931['addRange'](_0x2a1031);_0x19048f['removeMarkers']();}else{_0x649931=_0x19048f;for(const _0x33cddc of _0x16c721)_0x19048f['isIntersectingWithRange'](_0x33cddc)||_0x19048f['addRange'](_0x33cddc);}}if(_0x649931)return _0x649931;_0xf1aee3['clear']();for(const {suggestion:_0x136475,meta:_0x219e22}of this['_findSuggestions'](_0x16c721,'deletion'))_0x219e22['isOwn']&&(this['_mergeNestedSuggestions']||!_0x219e22['containsRangeInObject']&&!_0x219e22['isInsideObject'])&&Kt(_0x136475,_0x1a4d20)&&_0xf1aee3['add'](_0x136475);for(const _0x2882c6 of _0xf1aee3){const _0x21adfd=_0x2882c6['getRanges']();if(!_0x1a4d20||!_0x1a4d20['skipNestingCheck']){if(_0x16c721['every'](_0x155e6d=>_0x21adfd['some'](_0x36b417=>_0x36b417['containsRange'](_0x155e6d,!0x0))))return _0x2882c6;}(!_0x2882c6['attributes']||!_0x2882c6['attributes']['skipNestingCheck'])&&(_0x21adfd['every'](_0x39611e=>_0x16c721['some'](_0x1cef30=>_0x1cef30['containsRange'](_0x39611e,!0x0)))&&_0x2882c6['discard']());}const _0x8c0552=_0x56f9d6(),_0x576068=_0x2f70e8['id'],_0x147102='deletion:'+_0x4eaf42,_0x5376ca=this['_setSuggestionData']({'id':_0x8c0552,'type':_0x147102,'createdAt':new Date(),'authorId':_0x576068,'attributes':_0x1a4d20});for(const _0x20b5f6 of _0x16c721)_0x20b5f6['detach'](),_0x20b5f6['isCollapsed']||'$graveyard'==_0x20b5f6['root']['rootName']||this['_addSuggestionMarker'](_0x147102,_0x8c0552,_0x576068,_0x20b5f6,u['getMultiRangeId']());return _0x5376ca;}['markAttributeChange'](_0xb75c2,_0x33b2e5,_0x5c77ea,_0x56df6c,_0x20d491){if(_0xb75c2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x52fa36=this['editor']['plugins']['get']('Users')['me']['id'],_0x32eb7a=Array['from'](this['_suggestions']['values']())['filter'](_0x2b104a=>'attribute'==_0x2b104a['type']&&_0x2b104a['data']['key']==_0x33b2e5&&_0x2b104a['isIntersectingWithRange'](_0xb75c2));if('default'===this['_trackFormatChanges']){const _0x3ded6d=this['_findSuggestions'](_0xb75c2,'insertion')['filter'](({meta:_0x5e8d91})=>_0x5e8d91['isOwn']&&!_0x5e8d91['isInsideObject']&&!_0x5e8d91['isNextTo'])['map'](({suggestion:_0x28d3a1})=>_0x28d3a1);_0x32eb7a['unshift'](..._0x3ded6d);}const _0x5cee57=new Map([[_0xb75c2,_0x5c77ea]]);for(const _0x292d9d of _0x32eb7a){const _0x5499d5='attribute'==_0x292d9d['type']?_0x292d9d['data']['oldValue']:void 0x0,_0x1eb3bd=_0x292d9d['getFirstRange'](),_0x5305aa=Array['from'](_0x5cee57['keys']())['find'](_0x15b49a=>_0x15b49a['isIntersecting'](_0x1eb3bd));if(!_0x5305aa)continue;const _0x323759=_0x5305aa['getDifference'](_0x1eb3bd);this['_isBlockAttribute'](_0x33b2e5)&&'insertion'==_0x292d9d['type']&&0x0!=_0x323759['length']||(_0x5cee57['delete'](_0x5305aa),_0x323759['forEach'](_0x238989=>{_0x5cee57['set'](_0x238989,_0x5c77ea);}),'insertion'!=_0x292d9d['type']&&_0x5499d5!=_0x56df6c&&_0x5cee57['set'](_0x5305aa['getIntersection'](_0x1eb3bd),_0x5499d5));}const _0x781f1c=[];for(const [_0x4bb99e,_0x27cce4]of _0x5cee57){const _0x11c299=_0x56f9d6(),_0x49b6d0={'key':_0x33b2e5,'oldValue':_0x27cce4,'newValue':_0x56df6c};_0x33b2e5['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':_0x33b2e5});const _0x5420d7=('attribute:'+(_0x33b2e5+'|'+Ft({'newValue':_0x56df6c})))['substring'](0x0,0x3c),_0x26096a=this['_setSuggestionData']({'id':_0x11c299,'type':_0x5420d7,'data':_0x49b6d0,'createdAt':new Date(),'authorId':_0x52fa36,'attributes':_0x20d491});_0x781f1c['push'](_0x26096a),this['_addSuggestionMarker'](_0x5420d7,_0x11c299,_0x52fa36,_0x4bb99e);}return _0x781f1c;}['enableDefaultAttributesIntegration'](_0x5ae509){this['enableCommand'](_0x5ae509,(_0x49782c,..._0x8b6229)=>{this['_recordAttributeChanges'](()=>{_0x49782c(..._0x8b6229);});});}['registerBlockAttribute'](_0x55c164){this['_blockAttributeKeys']['add'](_0x55c164);}['registerInlineAttribute'](_0x5017d1){this['_inlineAttributeKeys']['add'](_0x5017d1);}['_getAttributeKey'](_0x51fbef){return'attribute'==_0x51fbef['type']?_0x51fbef['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x450495,_0x3faed4){const _0x68a64f=_0x450495['getFirstMarker']();this['_model']['change'](_0x4b1486=>{_0x4b1486['updateMarker'](_0x68a64f,{'range':_0x3faed4});});}['_addThreadToSuggestion'](_0x9c8935){const _0x541270=_0x9c8935['id'],_0x283ae8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x541270)||this['_commentsRepository']['addCommentThread']({'channelId':_0x283ae8,'threadId':_0x541270,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4aae3a=this['_commentsRepository']['getCommentThread'](_0x541270);_0x4aae3a['unbind']('isRemovable'),_0x4aae3a['isRemovable']=!0x1,_0x9c8935['commentThread']=_0x4aae3a;}['_checkSuggestionCorrectness'](_0x6b90cd,_0xd805fc,_0xc88354,_0x342708){if(_0x6b90cd['type']!=_0xd805fc||_0x6b90cd['subType']!=_0xc88354||_0x6b90cd['creator']['id']!=_0x342708)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x27aa88('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3351bd,_0x27196a){const _0xed4ffa=_0x3351bd['getFirstRange']();if(_0x27196a['isEqual'](_0xed4ffa))_0x3351bd['removeMarkers']();else{if(_0xed4ffa['containsRange'](_0x27196a)){const _0x205947=this['_model']['createPositionAt'](_0x27196a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3351bd,this['_model']['createRange'](_0xed4ffa['start'],_0x205947));const _0x2dcd46=_0x56f9d6(),_0x2d46f7=_0x3351bd['creator']['id'],_0x5400fc=_0x3351bd['type']+':'+_0x3351bd['subType'];this['_setSuggestionData']({'id':_0x2dcd46,'type':_0x5400fc,'createdAt':new Date(),'authorId':_0x2d46f7,'data':_0x3351bd['data'],'attributes':_0x3351bd['attributes']});const _0x25413b=this['_model']['createPositionAt'](_0x27196a['end']['parent'],'after'),_0x5c03cd=this['_model']['createRange'](_0x25413b,_0xed4ffa['end']);this['_addSuggestionMarker'](_0x5400fc,_0x2dcd46,_0x2d46f7,_0x5c03cd);}else{if(_0xed4ffa['containsPosition'](_0x27196a['start'])){const _0x410c99=this['_model']['createPositionAt'](_0x27196a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3351bd,this['_model']['createRange'](_0xed4ffa['start'],_0x410c99));}else{const _0x3f0c04=this['_model']['createPositionAt'](_0x27196a['end']['parent'],'after');this['_setSuggestionRange'](_0x3351bd,this['_model']['createRange'](_0x3f0c04,_0xed4ffa['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4d756c){for(const {suggestion:_0x3f175b,meta:_0x369577}of this['_findSuggestions'](_0x4d756c,'insertion')){if(!_0x369577['isOwn'])continue;const _0x2ba0f4=_0x3f175b['getRanges']();for(const _0x131794 of _0x2ba0f4)if(!_0x4d756c['getDifference'](_0x131794)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x204693){const _0x15c02c=this['editor']['plugins']['get']('Users')['getUser'](_0x204693);if(!_0x15c02c)throw new _0x27aa88('track-changes-user-not-found',this);return _0x15c02c;}['_getExternalAuthor'](_0x9c020){const _0x596a00=this['editor']['plugins']['get']('Users'),_0x1b0fbc=_0x27f6f6('external:'+_0x9c020),_0x95e2e4=_0x596a00['getUser'](_0x1b0fbc);return _0x95e2e4||_0x596a00['addUser']({'id':_0x1b0fbc,'name':_0x9c020});}['_createSuggestion'](_0x2adb50,_0x1c1877,_0x586fb1,_0x17e2a1,_0x498e49){const _0x281392=this['_getAuthorFromId'](_0x17e2a1),_0x11238f=this['_suggestionFactory']['buildSuggestion'](_0x2adb50,_0x1c1877,_0x586fb1,_0x281392,_0x498e49,_0x2836d9=>{this['_updateSuggestionData'](_0x586fb1,{'attributes':_0x2836d9});const _0x5498a1=this['getSuggestion'](_0x586fb1);this['_joinWithAdjacentSuggestions'](new Set([_0x5498a1])),this['_refreshSuggestionsChain'](new Set([_0x5498a1]));});return this['listenTo'](_0x11238f,'accept',()=>{this['_updateSuggestionData'](_0x586fb1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x11238f,'discard',()=>{this['_updateSuggestionData'](_0x586fb1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x586fb1,_0x11238f),this['_suggestionState']['set'](_0x11238f,'notReady'),_0x11238f;}['_splitMarkerName'](_0x122802){const _0x4974cc=_0x122802['split'](':');return{'group':_0x4974cc[0x0],'type':_0x4974cc[0x1],'subType':_0x4974cc['length']>=0x5?_0x4974cc[0x2]:null,'id':_0x4974cc['length']<0x5?_0x4974cc[0x2]:_0x4974cc[0x3],'authorId':_0x4974cc['length']<0x5?_0x4974cc[0x3]:_0x4974cc[0x4],'markerCount':0x6==_0x4974cc['length']?_0x4974cc[0x5]:null};}['_breakSuggestionMarker'](_0x141dfb,_0xd6d1c9,_0x58076c){const _0xa39aaf=_0x141dfb['getFirstRange'](),_0x13237d=_0xa39aaf['start'],_0x3ed391=_0xa39aaf['end'];this['_setSuggestionRange'](_0x141dfb,this['_model']['createRange'](_0x13237d,_0xd6d1c9));const _0x129d96=_0x56f9d6(),_0x127037=_0x141dfb['creator']['id'],_0x1a4e61=_0x141dfb['type']+(_0x141dfb['subType']?':'+_0x141dfb['subType']:'');this['_setSuggestionData']({'id':_0x129d96,'type':_0x1a4e61,'createdAt':new Date(),'authorId':_0x127037,'originalSuggestionId':_0x141dfb['id'],'attributes':_0x141dfb['attributes'],'data':_0x141dfb['data']});const _0x146625=this['_getAttributeKey'](_0x141dfb);('formatBlock'==_0x141dfb['type']||_0x146625&&this['_isBlockAttribute'](_0x146625))&&(_0x58076c=this['_model']['createPositionBefore'](_0x58076c['parent'])),this['_addSuggestionMarker'](_0x1a4e61,_0x129d96,_0x127037,this['_model']['createRange'](_0x58076c,_0x3ed391));}['_findSuggestions'](_0x145142,_0xe71296=null){const _0x4db93b=[],_0x1acc08=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x145142)||(_0x145142=[_0x145142]);for(const _0x4a2b0e of this['getSuggestions']()){if(!_0x4a2b0e['isInContent'])continue;if(_0xe71296&&_0x4a2b0e['type']!=_0xe71296)continue;let _0x537661=!0x1;for(const _0x14ce8 of _0x4a2b0e['getRanges']()){for(const _0x32effc of _0x145142){const _0x4f3bbd=_0x32effc['start']['isEqual'](_0x14ce8['end'])||_0x32effc['end']['isEqual'](_0x14ce8['start']);if(_0x4f3bbd||_0x32effc['getIntersection'](_0x14ce8)){const _0x5b59d9=_0x32effc['containsRange'](_0x14ce8)&&Vt(this['_model']['schema'],_0x14ce8['start'],_0x32effc),_0x309442=_0x14ce8['containsRange'](_0x32effc)&&Vt(this['_model']['schema'],_0x32effc['start'],_0x14ce8);_0x4db93b['push']({'suggestion':_0x4a2b0e,'meta':{'isOwn':_0x1acc08==_0x4a2b0e['author'],'isNextTo':_0x4f3bbd,'isInsideObject':_0x5b59d9,'containsRangeInObject':_0x309442}}),_0x537661=!0x0;break;}}if(_0x537661)break;}}return _0x4db93b;}['_addSuggestionMarker'](_0x234bac,_0x9c974c,_0x594ef6,_0x3034b3,_0x7c523f){this['_model']['change'](_0x461258=>{let _0x5d7363='suggestion:'+_0x234bac+':'+_0x9c974c+':'+_0x594ef6;_0x7c523f&&(_0x5d7363=_0x5d7363+':'+_0x7c523f),_0x461258['addMarker'](_0x5d7363,{'range':_0x3034b3,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4a1fcc){const _0x5dd17b=_0x4a1fcc['previous'],_0x46c514=_0x4a1fcc['next'];_0x4a1fcc['previous']=null,_0x4a1fcc['next']=null,null!=_0x5dd17b&&_0x5dd17b['next']==_0x4a1fcc&&(_0x5dd17b['next']=_0x46c514),null!=_0x46c514&&_0x46c514['previous']==_0x4a1fcc&&(_0x46c514['previous']=_0x5dd17b),'ready'==this['_suggestionState']['get'](_0x4a1fcc)&&(this['_suggestionState']['set'](_0x4a1fcc,'removed'),this['fire']('suggestionUnloaded',_0x4a1fcc,_0x5dd17b,_0x46c514));}['_setSuggestionData'](_0x5043f0){const _0x4eca20=_0x5043f0['id'],_0x3dab46=this['addSuggestionData'](_0x5043f0);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3e10e2=this['editor']['plugins']['get']('PendingActions'),_0x50ba0d=_0x3dab46['hasComments'],_0x4d0bbe=_0x3dab46['subType']?_0x3dab46['type']+':'+_0x3dab46['subType']:_0x3dab46['type'],_0x47c53b=this['editor']['locale'],_0x4cad38=_0x3e10e2['add'](o(_0x47c53b,'PENDING_ACTION_SUGGESTION')),_0x45daa6={'id':_0x4eca20,'type':_0x4d0bbe,'hasComments':_0x50ba0d,'data':_0x5043f0['data']||null,'originalSuggestionId':_0x5043f0['originalSuggestionId']||null,'attributes':_0x3dab46['attributes']};this['_adapter']['addSuggestion'](_0x45daa6)['then'](_0x1a7cf6=>{_0x3dab46['_saved']=!0x0,_0x3e10e2['remove'](_0x4cad38),_0x1a7cf6&&_0x1a7cf6['createdAt']&&(this['_suggestions']['get'](_0x4eca20)['createdAt']=_0x1a7cf6['createdAt']);})['catch'](_0x2d5ed4=>{throw _0x23614c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3dab46['discard']();}),_0x3dab46['stopListening'](),this['_suggestions']['delete'](_0x3dab46['id']),this['_suggestionState']['delete'](_0x3dab46),_0x2d5ed4;});}return _0x3dab46;}['_isBlockAttribute'](_0x2ab957){return this['_blockAttributeKeys']['has'](_0x2ab957);}['_updateSuggestionData'](_0x546cf8,_0x4c3726){const _0x515607=this['editor']['plugins']['get']('PendingActions'),_0x567f0b=this['getSuggestion'](_0x546cf8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x567f0b['_saved']){const _0xdd2bb1=_0x515607['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x546cf8,_0x4c3726)['then'](()=>{_0x515607['remove'](_0xdd2bb1);});}else _0x567f0b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x546cf8,_0x4c3726);});}}['_getSuggestionData'](_0x17df4f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x27aa88('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x17df4f);}['_handleNewSuggestionMarker'](_0x90ddb2){const {id:_0x55f940,type:_0x337624,subType:_0x4687e5,authorId:_0x965c0f}=this['_splitMarkerName'](_0x90ddb2),_0xa1b16a=this['_suggestions']['get'](_0x55f940)||this['_createSuggestion'](_0x337624,_0x4687e5,_0x55f940,_0x965c0f,{});switch(this['_checkSuggestionCorrectness'](_0xa1b16a,_0x337624,_0x4687e5,_0x965c0f),this['_suggestionState']['get'](_0xa1b16a)){case'notReady':this['_getSuggestionData'](_0x55f940)['then'](_0x4c3c0a=>{let _0x4daa54=Promise['resolve']();_0x4c3c0a['hasComments']&&(_0x4daa54=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x55f940})),_0x4daa54['then'](()=>{this['addSuggestionData'](_0x4c3c0a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xa1b16a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x55f940,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xa1b16a,'ready'),this['fire']('suggestionLoaded',_0xa1b16a);break;case'ready':this['fire']('suggestionChanged',_0xa1b16a);}return _0xa1b16a['addMarkerName'](_0x90ddb2),_0xa1b16a;}['_refreshSuggestionsChain'](_0x2ab34d){const _0x58d5dd=Array['from'](_0x2ab34d),_0x4e3821=_0x58d5dd['filter'](_0x1b5751=>'attribute'==_0x1b5751['type']);this['_refreshAttributeSuggestionsChain'](_0x4e3821);const _0xfc0685=_0x58d5dd['filter'](_0xad654b=>!_0xad654b['isMultiRange']&&'attribute'!=_0xad654b['type']),_0x569abd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x230bda=>!_0x230bda['isMultiRange']&&'attribute'!=_0x230bda['type']),_0x38baf2=_0x569abd['filter'](_0x52aee6=>!_0x2ab34d['has'](_0x52aee6)),_0x338d76=new Map(_0x569abd['map'](_0x5978a0=>[_0x5978a0,this['_suggestionFactory']['getSuggestionCallback'](_0x5978a0['type'],_0x5978a0['subType'],'chain')])),_0xbc326b=new Map(_0x569abd['map'](_0x47e896=>[_0x47e896,_0x47e896['getFirstRange']()])),_0x25ab59=new Set(),_0x4d59d3=new Set();for(let _0x170df8=0x0;_0x170df8<_0xfc0685['length'];_0x170df8++)_0x2cb59a(_0xfc0685[_0x170df8],_0xfc0685,_0x170df8+0x1);for(let _0x2e190b=0x0;_0x2e190b<_0xfc0685['length'];_0x2e190b++)_0x2cb59a(_0xfc0685[_0x2e190b],_0x38baf2,0x0);const _0x120b18=new Set();for(let _0x4d88a3=0x0;_0x4d88a3<_0xfc0685['length'];_0x4d88a3++){const _0x1a4a22=_0xfc0685[_0x4d88a3];!_0x4d59d3['has'](_0x1a4a22)&&_0x1a4a22['previous']&&(_0x120b18['add'](_0x1a4a22['previous']),_0x1a4a22['previous']['next']===_0x1a4a22&&(_0x1a4a22['previous']['next']=null),_0x1a4a22['previous']=null),!_0x25ab59['has'](_0x1a4a22)&&_0x1a4a22['next']&&(_0x120b18['add'](_0x1a4a22['next']),_0x1a4a22['next']['previous']===_0x1a4a22&&(_0x1a4a22['next']['previous']=null),_0x1a4a22['next']=null);}function _0x2cb59a(_0x4f8c4a,_0x4a7dea,_0xe88f67){for(let _0x48b982=_0xe88f67;_0x48b982<_0x4a7dea['length'];_0x48b982++){const _0x219828=_0xb9231b(_0x4f8c4a,_0x4a7dea[_0x48b982]);_0x219828&&(_0x219828[0x0]['next']=_0x219828[0x1],_0x219828[0x1]['previous']=_0x219828[0x0],_0x25ab59['add'](_0x219828[0x0]),_0x4d59d3['add'](_0x219828[0x1]));}}function _0xb9231b(_0xb8e7b3,_0xcbd727){if(_0xb8e7b3['author']['id']!==_0xcbd727['author']['id'])return null;const _0x293081=_0x338d76['get'](_0xb8e7b3)(_0xb8e7b3,_0xcbd727,_0xbc326b['get'](_0xb8e7b3),_0xbc326b['get'](_0xcbd727));if(!_0x293081)return null;return _0x338d76['get'](_0xcbd727)(_0xb8e7b3,_0xcbd727,_0xbc326b['get'](_0xb8e7b3),_0xbc326b['get'](_0xcbd727))?_0x293081[0x1]['commentThread']&&_0x293081[0x1]['commentThread']['length']?null:_0x293081:null;}_0x120b18['size']&&this['_refreshSuggestionsChain'](_0x120b18);}['_refreshAttributeSuggestionsChain'](_0x8a6d73){if(0x0==_0x8a6d73['length'])return;const _0x343abf=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35d812=>'attribute'==_0x35d812['type']&&_0x35d812['_isDataLoaded']),_0xdbd280=[],_0x41343a=new Map();for(const _0xc2d031 of _0x343abf){const _0x2b601c=_0x27f6f6(_0xc2d031['attributes']);_0x41343a['has'](_0x2b601c)||(_0x41343a['set'](_0x2b601c,_0xdbd280['length']),_0xdbd280['push']([]));const _0xedfd63=_0x41343a['get'](_0x2b601c);_0xdbd280[_0xedfd63]['push'](_0xc2d031);}!(function(){_0xdbd280['sort']((_0x4350df,_0x5c29e1)=>{const _0x3cc357=_0x4350df[0x0]['createdAt'],_0x360350=_0x5c29e1[0x0]['createdAt'];return _0x3cc357==_0x360350?_0x4350df[0x0]['attributes']['groupId']<_0x5c29e1[0x0]['attributes']['groupId']?-0x1:0x1:_0x3cc357<_0x360350?-0x1:0x1;});for(const _0x3d9a4a of _0xdbd280)_0x3d9a4a['sort']((_0x48a90c,_0x12cae0)=>_0x48a90c['id']<_0x12cae0['id']?-0x1:0x1);}());for(let _0x27dd1f=0x0;_0x27dd1f<_0xdbd280['length'];_0x27dd1f++){if(0x0==_0xdbd280[_0x27dd1f]['length'])continue;const _0x180c72=[];for(let _0x101b01=_0x27dd1f+0x1;_0x101b01<_0xdbd280['length'];_0x101b01++)0x0!=_0xdbd280[_0x101b01]['length']&&_0x57f71c(_0xdbd280[_0x27dd1f],_0xdbd280[_0x101b01])&&_0x180c72['push'](_0x101b01);for(const _0x1883ed of _0x180c72)_0xdbd280[_0x27dd1f]=_0xdbd280[_0x27dd1f]['concat'](_0xdbd280[_0x1883ed]),_0xdbd280[_0x1883ed]=[];}for(const _0x1df98d of _0xdbd280)for(let _0x37c897=0x0;_0x37c897<_0x1df98d['length'];_0x37c897++){const _0xe5f9b1=_0x1df98d[_0x37c897+0x1]||null;_0x1df98d[_0x37c897]['next']!==_0xe5f9b1&&(_0x1df98d[_0x37c897]['next']=_0xe5f9b1);}for(const _0x1ff119 of _0xdbd280)for(let _0x265aa1=0x0;_0x265aa1<_0x1ff119['length'];_0x265aa1++){const _0x1d599e=_0x1ff119[_0x265aa1-0x1]||null;_0x1ff119[_0x265aa1]['previous']!==_0x1d599e&&(_0x1ff119[_0x265aa1]['previous']=_0x1d599e);}function _0x57f71c(_0x2ec60e,_0x778a8c){if(_0x2ec60e[0x0]['attributes']['groupId']!==_0x778a8c[0x0]['attributes']['groupId']&&_0x2ec60e[0x0]['author']!==_0x778a8c[0x0]['author'])return!0x1;if(!function(_0x26202c,_0x9e84bc){if(!_0x26202c['hasComments']&&!_0x9e84bc['hasComments'])return!0x0;if(_0x26202c['hasComments']&&_0x9e84bc['hasComments'])return!0x1;if(_0x26202c['hasComments']&&_0x9e84bc['createdAt']<_0x26202c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x9e84bc['hasComments']&&_0x26202c['createdAt']<_0x9e84bc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2ec60e[0x0],_0x778a8c[0x0]))return!0x1;const _0x38acfe=Et(_0x2ec60e[0x0]['attributes'],'groupId'),_0x366bed=Et(_0x778a8c[0x0]['attributes'],'groupId');if(!_0x5d17c7(_0x38acfe,_0x366bed))return!0x1;return!!_0x2ec60e['every'](_0x2289c3=>_0x778a8c['some'](_0x240209=>_0x2289c3['getFirstRange']()['isEqual'](_0x240209['getFirstRange']())))&&_0x778a8c['every'](_0x5a85f7=>_0x2ec60e['some'](_0x4c1bac=>_0x5a85f7['getFirstRange']()['isEqual'](_0x4c1bac['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x22d344){const _0x4fa1d9=Array['from'](_0x22d344),_0x3e84df=this['getSuggestions']({'skipNotAttached':!0x0}),_0x276b78=_0x3e84df['filter'](_0x170d15=>!_0x22d344['has'](_0x170d15)),_0x3c96d2=new Map(_0x4fa1d9['map'](_0x3fc31d=>[_0x3fc31d,this['_suggestionFactory']['getSuggestionCallback'](_0x3fc31d['type'],_0x3fc31d['subType'],'join')])),_0x27092c=new Map(_0x3e84df['map'](_0x57f96a=>[_0x57f96a,_0x57f96a['getRanges']()]));for(let _0xa61b52=0x0;_0xa61b52<_0x4fa1d9['length'];_0xa61b52++){if(_0xa8c68a(this,_0x4fa1d9[_0xa61b52],_0x4fa1d9,_0xa61b52+0x1))return!0x0;}for(let _0xa73dbb=0x0;_0xa73dbb<_0x4fa1d9['length'];_0xa73dbb++){if(_0xa8c68a(this,_0x4fa1d9[_0xa73dbb],_0x276b78,0x0))return!0x0;}return!0x1;function _0xa8c68a(_0x5388cb,_0x32fb50,_0x1628b1,_0x498b7f){for(let _0x3d67ec=_0x498b7f;_0x3d67ec<_0x1628b1['length'];_0x3d67ec++){const _0xcc0c79=_0x1628b1[_0x3d67ec];if(_0xcc0c79['type']!==_0x32fb50['type']||_0xcc0c79['author']['id']!==_0x32fb50['author']['id']||_0xcc0c79['subType']!==_0x32fb50['subType'])continue;if(!zt(_0x32fb50,_0xcc0c79))continue;if('attribute'==_0x32fb50['type']&&_0x32fb50['data']['oldValue']!=_0xcc0c79['data']['oldValue'])continue;if('attribute'==_0x32fb50['type']&&_0x5388cb['_isBlockAttribute'](_0x32fb50['data']['key']))continue;if('formatBlock'==_0x32fb50['type']){const _0x14913d=_0x5388cb['editor']['model'],_0x31f938=_0x32fb50['getContainedElement']();if(_0x31f938&&(_0x14913d['schema']['isObject'](_0x31f938)||_0x14913d['schema']['isLimit'](_0x31f938)))continue;}const _0x1cb7b1=_0x3c96d2['get'](_0x32fb50),_0x517201=_0x27092c['get'](_0x32fb50),_0x202619=_0x27092c['get'](_0xcc0c79),_0x1df60a=_0x32fb50['commentThread']&&_0x32fb50['commentThread']['length'],_0x4550ef=_0xcc0c79['commentThread']&&_0xcc0c79['commentThread']['length'];if(!_0x1df60a&&_0x1cb7b1(_0x202619,_0x517201))return _0x5388cb['_joinSuggestions'](_0xcc0c79,_0x32fb50),_0x27092c['delete'](_0x32fb50),!0x0;if(!_0x4550ef&&_0x1cb7b1(_0x517201,_0x202619))return _0x5388cb['_joinSuggestions'](_0x32fb50,_0xcc0c79),_0x27092c['delete'](_0xcc0c79),!0x0;}return!0x1;}}['_joinSuggestions'](_0xef44ac,_0x3be5dc){if(_0xef44ac['isMultiRange']){for(const _0x481e61 of _0x3be5dc['getRanges']())_0xef44ac['addRange'](_0x481e61);}else{const _0x2f2aa7=_0x3be5dc['getFirstRange']()['end'];this['_setSuggestionRange'](_0xef44ac,this['_model']['createRange'](_0xef44ac['getFirstRange']()['start'],_0x2f2aa7));}_0x3be5dc['removeMarkers']();}['_getMarkerAnnouncementText'](_0x596739,_0x534408,_0x5a052d){const _0x3c9a4e=_0x596739['startsWith']('format')||_0x596739['startsWith']('attribute')?'FORMATTING':_0x596739['toUpperCase']();return o(this['editor']['locale'],_0x534408+'_'+_0x3c9a4e+'_SUGGESTION_ANNOUNCEMENT',_0x5a052d);}['_initAriaMarkerChangeAnnouncements'](){const _0xa0bdc1=this['editor'];if(!_0xa0bdc1['ui'])return;const {ariaLiveAnnouncer:_0x2aaadd}=_0xa0bdc1['ui'];_0x47a482(this['_model'],({left:_0x504305,entered:_0x340389})=>{for(const _0x38bc2f of _0x504305){const {group:_0x6c27df,type:_0x438048}=this['_splitMarkerName'](_0x38bc2f['name']);if('suggestion'===_0x6c27df){_0x2aaadd['announce'](this['_getMarkerAnnouncementText'](_0x438048,'LEAVE'));break;}}for(const _0x5372a6 of _0x340389){const {group:_0x4ccc90,type:_0x1daa86}=this['_splitMarkerName'](_0x5372a6['name']);if('suggestion'===_0x4ccc90){_0x2aaadd['announce'](this['_getMarkerAnnouncementText'](_0x1daa86,'ENTER',_0x4facd1(_0x46bfaa)));break;}}});}['_processAttributeChanges'](_0x2fa7ac){if(this['_recordAttributeSuggestions'])return!0x1;const _0x14b198=this['editor'],_0x15dabe=_0x14b198['model']['document']['differ']['getChanges']();if(0x0==_0x15dabe['length'])return!0x1;const _0x1b3c25=[],_0x56c363=_0x15dabe['filter'](_0x4b0649=>'attribute'==_0x4b0649['type']),_0x57e8f7=_0x15dabe['filter'](_0x158eff=>'insert'==_0x158eff['type']&&'$text'!=_0x158eff['name']),_0x1a4cbe=_0x15dabe['filter'](_0x218ae2=>'remove'==_0x218ae2['type']&&'$text'!=_0x218ae2['name']);for(const _0x3527af of _0x56c363)_0x1b3c25['push']({'key':_0x3527af['attributeKey'],'newValue':_0x3527af['attributeNewValue'],'oldValue':_0x3527af['attributeOldValue'],'range':Jt(_0x3527af['range'],_0x14b198['model'])});for(const _0x1d3a7c of _0x57e8f7){const _0x29ceff=_0x1a4cbe['find'](_0x23bf71=>_0x23bf71['position']['isEqual'](_0x1d3a7c['position']));_0x29ceff&&_0x1b3c25['push']({'key':m,'newValue':_0x1d3a7c['name'],'oldValue':_0x29ceff['name'],'range':_0x14b198['model']['createRangeOn'](_0x1d3a7c['position']['nodeAfter'])});}return 0x0!=_0x1b3c25['length']&&this['_reduceExistingSuggestions'](_0x2fa7ac,_0x1b3c25);}['_processAttributeSuggestions'](_0x289aff){let _0xd336ca=!0x1;const _0x45fdc9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4012a0=>_0x4012a0['data']['newRange']&&_0x4012a0['name']['startsWith']('suggestion:attribute:'));for(const _0x2c6bec of _0x45fdc9){const {subType:_0x1ac160,id:_0x316c44}=this['_splitMarkerName'](_0x2c6bec['name']),_0x57da97=_0x1ac160['split']('|')[0x0];for(const _0x1b4485 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1b4485['id']!=_0x316c44&&'attribute'==_0x1b4485['type']&&_0x1b4485['data']&&_0x1b4485['data']['key']==_0x57da97&&_0x1b4485['getFirstRange']()['isIntersecting'](_0x2c6bec['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1b4485,_0x2c6bec['data']['newRange'],_0x289aff),_0xd336ca=!0x0);}return _0xd336ca;}['_recordAttributeChanges'](_0x3e87f6){this['_recordAttributeSuggestions']=!0x0,_0x3e87f6();}['_isRegisteredAttribute'](_0x1f145b){const _0xf47c4b=this['_isBlockAttribute'](_0x1f145b),_0x3f26e1=this['_inlineAttributeKeys']['has'](_0x1f145b);return _0xf47c4b||_0x3f26e1;}['_reduceExistingSuggestions'](_0x2f69d1,_0x2fe62f){if(0x0==_0x2fe62f['length'])return!0x1;let _0x5770a7=!0x1;for(const _0x39c3da of _0x2fe62f){const _0x4c9cae=this['_findSuggestions'](_0x39c3da['range'],'attribute')['filter'](_0x2bdba2=>!_0x2bdba2['meta']['isNextTo'])['map'](_0x5062a1=>_0x5062a1['suggestion']),_0x1a436d=_0x27f6f6({'newValue':_0x39c3da['newValue']});_0x4c9cae['filter'](_0x408de6=>{const [_0x3217a6,_0xae7793]=_0x408de6['subType']['split']('|');return _0x3217a6==_0x39c3da['key']&&_0xae7793!=_0x1a436d;})['forEach'](_0x7812e1=>{this['_reduceSuggestionAttributeRange'](_0x7812e1,_0x39c3da['range'],_0x2f69d1),_0x5770a7=!0x0;});}return _0x5770a7;}['_reduceSuggestionAttributeRange'](_0x29ba9b,_0x41ba86,_0x435ecd){const _0x4a808a=_0x29ba9b['getFirstRange']()['getDifference'](_0x41ba86);0x0!==_0x4a808a['length']?0x1!==_0x4a808a['length']?this['_breakSuggestionMarker'](_0x29ba9b,_0x41ba86['start'],_0x41ba86['end']):this['_setSuggestionRange'](_0x29ba9b,_0x4a808a[0x0]):_0x435ecd['removeMarker'](_0x29ba9b['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4d391c){this['_editor']=_0x4d391c,this['_model']=_0x4d391c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xe85a6a,_0x15cab6,_0x15332f,_0x4a23a7,_0x32a928,_0x3fe890){return new u(this['_model'],{'type':_0xe85a6a,'subType':_0x15cab6,'id':_0x15332f,'author':_0x4a23a7,'creator':_0x4a23a7,'attributes':_0x32a928,'onAttributesChange':_0x3fe890,'onAccept':(..._0x2a49e3)=>this['getSuggestionCallback'](_0xe85a6a,_0x15cab6,'accept')(..._0x2a49e3),'onDiscard':(..._0x3ce079)=>this['getSuggestionCallback'](_0xe85a6a,_0x15cab6,'discard')(..._0x3ce079)});}['registerCustomCallback'](_0x212dbe,_0x39840b,_0x24b6f2,_0x23992b){const _0xc2a367=_0x212dbe+':'+_0x39840b+':'+_0x24b6f2;this['_customCallbacks']['set'](_0xc2a367,_0x23992b);}['getSuggestionCallback'](_0x46cb2c,_0x230051,_0x10eced){const _0x4850b7=_0x46cb2c+':'+_0x230051+':'+_0x10eced;return this['_customCallbacks']['get'](_0x4850b7)||this['_defaultCallbacks']['get'](_0x46cb2c+':'+_0x10eced);}['_registerDefaultCallbacks'](){const _0x2687de=()=>!0x1,_0x56949c=_0x227377=>{_0x227377['sort']((_0x2ee0c8,_0x5f6ac8)=>_0x2ee0c8['start']['isBefore'](_0x5f6ac8['start'])?0x1:-0x1),this['_model']['change'](_0x4f3b01=>{for(const _0x37038c of _0x227377){let _0x30dac1;_0x30dac1=_0x37038c['end']['isAtEnd']&&_0x37038c['end']['parent']==_0x37038c['start']['nodeAfter']?_0x4f3b01['createSelection'](_0x37038c['start']['nodeAfter'],'on'):_0x4f3b01['createSelection'](_0x37038c),this['_model']['deleteContent'](_0x30dac1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x30c7b3=(_0x12c036,_0x33c11c)=>{_0x33c11c&&this['_model']['change'](_0x4e02d1=>{const {commandName:_0x187759,commandParams:_0x385eaf=[]}=_0x33c11c,_0x229ba0=_0x12c036['map'](_0x16fbfd=>(Pt(_0x16fbfd)&&(_0x16fbfd=this['_model']['createRange'](_0x16fbfd['end'])),_0x16fbfd))['filter'](_0xbc5b9d=>'$graveyard'!==_0xbc5b9d['root']['rootName']);if(_0x229ba0['length']<0x1)return;const _0x3dcdc9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x36cc93=>_0x589a5b['fromRange'](_0x36cc93));_0x4e02d1['setSelection'](_0x229ba0);for(const _0x1f6748 of this['_editor']['commands']['commands']())_0x1f6748['refresh']();_0x385eaf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x187759,..._0x385eaf);const _0x3019d4=_0x3dcdc9['filter'](_0x801790=>'$graveyard'!=_0x801790['root']['rootName']);_0x3019d4['length']>0x0&&_0x4e02d1['setSelection'](_0x3019d4);for(const _0x55e7b3 of _0x3dcdc9)_0x55e7b3['detach']();});},_0x46ec0b=(_0x34e48b,_0x47c322)=>0x1==_0x34e48b['length']&&0x1==_0x47c322['length']&&_0x34e48b[0x0]['end']['isEqual'](_0x47c322[0x0]['start']),_0x224b71=(_0x519685,_0x17f383,_0x1d83e5,_0x13f274)=>qt(_0x519685,_0x17f383,_0x1d83e5,_0x13f274)?[_0x519685,_0x17f383]:qt(_0x17f383,_0x519685,_0x13f274,_0x1d83e5)?[_0x17f383,_0x519685]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2687de),this['_defaultCallbacks']['set']('insertion:discard',_0x56949c),this['_defaultCallbacks']['set']('insertion:join',_0x46ec0b),this['_defaultCallbacks']['set']('insertion:chain',_0x224b71),this['_defaultCallbacks']['set']('deletion:accept',_0x56949c),this['_defaultCallbacks']['set']('deletion:discard',_0x2687de),this['_defaultCallbacks']['set']('deletion:join',_0x46ec0b),this['_defaultCallbacks']['set']('deletion:chain',_0x224b71),this['_defaultCallbacks']['set']('formatInline:accept',_0x30c7b3),this['_defaultCallbacks']['set']('formatInline:discard',_0x2687de),this['_defaultCallbacks']['set']('formatInline:join',_0x46ec0b),this['_defaultCallbacks']['set']('formatInline:chain',_0x2687de),this['_defaultCallbacks']['set']('formatBlock:accept',_0x30c7b3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2687de),this['_defaultCallbacks']['set']('formatBlock:join',_0x46ec0b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2687de),this['_defaultCallbacks']['set']('attribute:accept',_0x2687de),this['_defaultCallbacks']['set']('attribute:discard',(_0x6dc068,_0x20740b)=>{if(!_0x20740b)return;const _0x34e1ca=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1b28dc=>{if(_0x20740b['key']==m)for(const _0x4dc945 of _0x6dc068){const _0x9f699d=_0x4dc945['start']['nodeAfter'],_0x5bddfb=_0x20740b['oldValue'];_0x1b28dc['rename'](_0x9f699d,_0x5bddfb);}else{if(_0x34e1ca['_isBlockAttribute'](_0x20740b['key'])){for(const _0x285e2d of _0x6dc068)void 0x0!==_0x20740b['oldValue']?_0x1b28dc['setAttribute'](_0x20740b['key'],_0x20740b['oldValue'],_0x285e2d['start']['nodeAfter']):_0x1b28dc['removeAttribute'](_0x20740b['key'],_0x285e2d['start']['nodeAfter']);}else{for(const _0x3565b5 of _0x6dc068)_0x20740b['oldValue']?_0x1b28dc['setAttribute'](_0x20740b['key'],_0x20740b['oldValue'],_0x3565b5):_0x1b28dc['removeAttribute'](_0x20740b['key'],_0x3565b5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x46ec0b);}}function Vt(_0x5c980c,_0x15e849,_0x285eee){for(const _0x52ec5d of _0x15e849['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x52ec5d['root']==_0x52ec5d)return!0x1;if(!_0x285eee['containsItem'](_0x52ec5d))return!0x1;if(_0x5c980c['isObject'](_0x52ec5d)||_0x5c980c['isLimit'](_0x52ec5d))return!0x0;}return!0x1;}function Pt(_0x184cca){return _0x184cca['end']['parent']==_0x184cca['start']['nodeAfter']&&_0x184cca['end']['isAtStart'];}function Gt(_0x292cf3,_0x220cb1,_0x26178e,_0x430843){const _0x59f766=_0x1e10bb=>!_0x1e10bb['item']['is']('$textProxy')&&!_0x430843['isObject'](_0x1e10bb['item']),_0x11f2a3=_0x292cf3['start']['getLastMatchingPosition'](_0x59f766),_0x24166f=_0x292cf3['end']['getLastMatchingPosition'](_0x59f766,{'direction':'backward'});return(!_0x292cf3['start']['isEqual'](_0x11f2a3)||!_0x292cf3['end']['isEqual'](_0x24166f))&&(_0x11f2a3['isBefore'](_0x24166f)?_0x26178e['updateMarker'](_0x220cb1,{'range':_0x26178e['createRange'](_0x11f2a3,_0x24166f)}):_0x26178e['removeMarker'](_0x220cb1),!0x0);}function Ft(_0x38fff4){return _0x27f6f6(_0x38fff4);}function Lt(_0x2fa428){const _0x12139b=_0x2fa428['start']['nodeAfter'];return _0x12139b&&_0x12139b['is']('element');}function Jt(_0x2f2790,_0x2405c0){return null==_0x2f2790['end']['nodeBefore']&&_0x2f2790['end']['parent']==_0x2f2790['start']['nodeAfter']?Ht(_0x2f2790['start']['nodeAfter'],_0x2405c0):_0x2f2790;}function Ht(_0x12d95d,_0x4e908d){const _0x3c53bf=_0x4e908d['schema']['isObject'](_0x12d95d)||_0x4e908d['schema']['isSelectable'](_0x12d95d);return _0x4e908d['createRange'](_0x4e908d['createPositionAt'](_0x12d95d,'before'),_0x3c53bf?_0x4e908d['createPositionAfter'](_0x12d95d):_0x4e908d['createPositionAt'](_0x12d95d,'end'));}function qt(_0x581f50,_0x48f26d,_0x5b73a2,_0x3000c0){return!!zt(_0x581f50,_0x48f26d)&&_0x5b73a2['end']['isEqual'](_0x3000c0['start']);}function zt(_0x5059cf,_0x391a87){if(!_0x5059cf['_isDataLoaded']||!_0x391a87['_isDataLoaded'])return!0x1;const _0x13a536=new Set(Object['keys'](_0x5059cf['attributes'])),_0x95a65f=new Set(Object['keys'](_0x391a87['attributes']));if(_0x13a536['delete']('groupId'),_0x95a65f['delete']('groupId'),0x0==_0x13a536['size']&&0x0==_0x95a65f['size'])return!0x0;if(_0x13a536['size']!=_0x95a65f['size'])return!0x1;const _0x3cfff3={..._0x5059cf['attributes']},_0x31e5ee={..._0x391a87['attributes']};return delete _0x3cfff3['groupId'],delete _0x31e5ee['groupId'],JSON['stringify'](_0x3cfff3)==JSON['stringify'](_0x31e5ee);}function Kt(_0xfa2b9a,_0x1540ac){const _0x41400b=Wt(_0xfa2b9a['attributes']),_0x241018=Wt(_0x1540ac);if(!_0xfa2b9a['_isDataLoaded'])return!0x1;for(const _0x288b65 of Object['keys'](_0x241018))if(!_0x5d17c7(_0x41400b[_0x288b65],_0x241018[_0x288b65]))return!0x1;return!0x0;}function Wt(_0x4b0d90){const _0x3bce10=Object['assign']({},_0x4b0d90);return delete _0x3bce10['skipNestingCheck'],delete _0x3bce10['tablePasteChainId'],_0x3bce10;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x403ea1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4bc48e,_0x582468,_0x4514b0,_0x3a5c53){super(),this['model']=_0x582468,this['view']=_0x4514b0,this['commentThreadController']=_0x3a5c53,this['_editor']=_0x4bc48e,this['_acceptCommand']=_0x4bc48e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4bc48e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5718e2,_0x43c557)=>_0x5718e2||_0x43c557),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x281860=>_0x281860&&this['_editor']['model']['canEditAt'](_0x582468['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x497aad=>_0x497aad&&this['_editor']['model']['canEditAt'](_0x582468['getRanges']())),this['_pendingAction']=null,_0x4514b0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4514b0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4514b0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4514b0,'change:isDirty',()=>{_0x4514b0['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 _0x451b49=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x451b49);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x12dadd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3a0842,_0x1a8e41,_0x547ae3,_0x22ca94){super(_0x3a0842),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xda9602(_0x3a0842,o(_0x3a0842,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1a8e41['authoredAt']),this['bind']('authoredAt')['to'](_0x1a8e41),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',_0x1a8e41,'authoredAt',this,'descriptionParts',(_0x3f02d5,_0x3e5fbf,_0x5760b3)=>{const _0x9f0942=_0x5760b3['map'](_0x422cbd=>ns(_0x422cbd['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3f02d5-0x1,_0x1a8e41['author']['name'],_0x3e5fbf?_0x22ca94['formatDateTime'](_0x3e5fbf):'',new DOMParser()['parseFromString'](_0x9f0942,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2c90ea(),this['focusTracker']=new _0x21033c(),this['keystrokes']=new _0x3dbd73(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x234488=>_0x234488['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1a8e41,this['_localUser']=_0x547ae3,this['_config']=_0x22ca94,_0x22ca94['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3a10ba(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5a3dcc}=this['_config'];this['commentsListView']=new _0x5a3dcc(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',_0x2fb010=>_0x2fb010+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x477708,_0x12094d)=>_0x477708||!!_0x12094d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x232643}=this['_config'],_0x429dd0=new _0x232643(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x56612e=_0x429dd0['commentInputView'];return _0x429dd0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x56612e,'value',(_0x1352f4,_0x5d543a,_0xc5d1f3)=>!!_0xc5d1f3||_0x1352f4&&!_0x5d543a),_0x56612e['on']('submit',(_0xe4237e,_0x54d925)=>{this['fire']('addComment',_0x54d925),_0x56612e['editor']['setData']('');}),_0x56612e['on']('cancel',()=>this['focus']()),_0x56612e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x429dd0;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x2b3057,_0x3059e8,_0x32460f,_0x7698f5){super(_0x2b3057,_0x3059e8,_0x32460f,_0x7698f5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4af994=>_0x4af994&&_0x4af994[0x0]?_0x4af994[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x259c97,_0x145e1d)=>{let _0x4062c6='';for(const _0xa5b358 of _0x259c97)_0x4062c6+='<p>'+ns(_0xa5b358['content'],_0xa5b358['color'])+'</p>';return _0x145e1d?_0x4062c6:_0x4576b3(_0x4062c6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x7698f5['SuggestionView'](_0x2b3057,_0x3059e8,{'formatDateTime':_0x7698f5['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 _0xcff873=this['bindTemplate'],_0x83a49a=[this['suggestionView']];return this['commentsListView']&&_0x83a49a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x83a49a['push'](this['commentThreadInputView']),_0x83a49a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xcff873['if']('isActive','ck-suggestion-wrapper--active'),_0xcff873['to']('type',_0x395bde=>'ck-suggestion-'+_0x395bde),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':_0xcff873['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x83a49a};}['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 _0x12dadd{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5226c8,_0x459a1d,_0x41c3ba){super(_0x5226c8),this['_model']=_0x459a1d,this['_config']=_0x41c3ba,this['set']('description',''),this['bind']('authoredAt')['to'](_0x459a1d),this['acceptButton']=this['_createButton'](o(_0x5226c8,'Accept\x20suggestion'),_0x49ef9a['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5226c8,'Discard\x20suggestion'),_0x49ef9a['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4801fa(_0x5226c8,_0x459a1d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2c90ea([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x21033c(),this['keystrokes']=new _0x3dbd73(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x51dd01=>_0x51dd01['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x31217d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x31217d['innerHTML']=this['description'],this['on']('change:description',(_0x5921fc,_0x30e9a7,_0xde02cc)=>{_0x31217d['innerHTML']=_0xde02cc;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x30bc0f=this['bindTemplate'],_0x24e3e9=[{'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':_0x30bc0f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x30bc0f['to']('authoredAt',_0xee9fb0=>this['_config']['formatDateTime'](_0xee9fb0))}]}]},{'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']&&_0x24e3e9['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':_0x24e3e9}]};}['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'](_0x2818d0,_0x180431,_0x4085ec,_0x580f5b,_0x5106ff){const _0x397248=new _0x53e90e(this['locale']);return _0x397248['set']({'label':_0x2818d0,'icon':_0x180431,'tooltip':!0x0,'tooltipPosition':_0x5106ff}),_0x397248['extendTemplate']({'attributes':{'class':_0x4085ec}}),_0x397248['on']('execute',()=>{this['fire'](_0x580f5b,this['_model']['id']);}),_0x397248;}['_setupKeyboardNavigation'](){const _0x2354ef=this['element'];this['keystrokes']['listenTo'](_0x2354ef);for(const _0x1f7655 of this['focusables'])this['focusTracker']['add'](_0x1f7655['element']),this['keystrokes']['listenTo'](_0x1f7655['element']);this['keystrokes']['set']('enter',(_0x2d0553,_0x25766d)=>{_0x2354ef===_0x2d0553['target']&&(this['focusCycler']['focusFirst'](),_0x25766d());}),this['keystrokes']['set']('esc',(_0x4d125a,_0x2be454)=>{_0x2354ef!==_0x4d125a['target']&&(this['focus'](),_0x2be454());});}}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 _0x51252a{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4e8d56,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d415b){super(_0x2d415b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2130f4=this['editor']['config'];_0x2130f4['define']('trackChanges.SuggestionThreadView',pe),_0x2130f4['define']('trackChanges.SuggestionView',fe),_0x2130f4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2130f4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4fb491,_0x3a9168){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x16ff30,_0xa0e1bb]of this['_handleControllerBuffer']){const _0x5f2836=this['_suggestionToController']['has'](_0x16ff30);_0x5f2836||_0xa0e1bb?_0x5f2836&&_0xa0e1bb&&this['_destroyController'](_0x16ff30):this['_initializeController'](_0x16ff30);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4fb491,_0x3a9168);}['init'](){const _0x4cd57c=this['editor'],_0x30e052=_0x4cd57c['plugins']['get']('TrackChangesEditing'),_0x9acb3a=_0x4cd57c['plugins']['get']('Annotations'),_0x8f2dbe=_0x4cd57c['plugins']['get']('EditorAnnotations'),_0x1519cf=_0x4cd57c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x8f2dbe['addSourceCollector'](()=>{const _0x1b8240=[];for(const [_0x31bf8f,_0x449b0a]of Array['from'](this['_suggestionToController'])){const _0x17d712=_0x31bf8f['getAllAdjacentSuggestions'](),_0x2a0b73=[];for(const _0x978fb6 of _0x17d712){if(!_0x978fb6['isInContent'])continue;if(_0x978fb6['isMultiRange']){_0x2a0b73['push'](..._0x978fb6['getRanges']());continue;}const _0x4eb0eb=_0x978fb6['getFirstRange']();if(_0x2a0b73['length']>0x0){const _0x2a3dba=_0x2a0b73[0x0]['getJoined'](_0x4eb0eb);if(_0x2a3dba){_0x2a0b73[0x0]=_0x2a3dba;continue;}}_0x2a0b73['push'](_0x4eb0eb);}_0x1b8240['push']([_0x449b0a['view'],_0x2a0b73]);}return _0x1b8240;}),this['listenTo'](_0x30e052,'suggestionLoaded',(_0x2a8ed6,_0x4beb5e)=>{this['listenTo'](_0x4beb5e,'change:previous',(_0xf9fe9d,_0x4fb1c9,_0x4e7553,_0x42b767)=>{_0x4beb5e['isInContent']&&(null==_0x4e7553?(this['_updateController'](_0x42b767['head']),this['_handleSuggestionControllerDelayed'](_0x4beb5e,!0x1)):(this['_updateController'](_0x4e7553['head']),null==_0x42b767&&this['_handleSuggestionControllerDelayed'](_0x4beb5e,!0x0)));}),null!==_0x4beb5e['previous']?this['_updateController'](_0x4beb5e['head']):this['_handleSuggestionControllerDelayed'](_0x4beb5e,!0x1);}),this['listenTo'](_0x30e052,'suggestionUnloaded',(_0x102c8d,_0x42ed92,_0x58bac7)=>{this['stopListening'](_0x42ed92,'change:previous'),this['_handleControllerBuffer']['delete'](_0x42ed92),this['_suggestionToController']['has'](_0x42ed92)&&this['_destroyController'](_0x42ed92),_0x58bac7&&this['_updateController'](_0x58bac7['head']);}),this['listenTo'](_0x30e052,'suggestionChanged',(_0x5d2759,_0x583f4c)=>{this['_updateController'](_0x583f4c);}),this['listenTo'](_0x9acb3a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1519cf,'addComment',(_0x498459,{threadId:_0x127264,isFromAdapter:_0x2c1827})=>{if(_0x2c1827||!_0x30e052['hasSuggestion'](_0x127264))return;const _0x2940c6=_0x30e052['getSuggestion'](_0x127264);this['_suggestionToController']['get'](_0x2940c6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2be7c8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4f07af;for(const _0x500a4e in _0x2be7c8){const _0x25f1d3=_0x500a4e,_0x3b2d26=_0x2be7c8[_0x25f1d3];if('trackChangesLicenseKeyValid'==_0x3b2d26||'trackChangesLicenseKeyInvalid'==_0x3b2d26||'trackChangesLicenseKeyExpired'==_0x3b2d26||'trackChangesLicenseKeyDomainLimit'==_0x3b2d26||'trackChangesLicenseKeyNotAllowed'==_0x3b2d26||'trackChangesLicenseKeyEvaluationLimit'==_0x3b2d26||'trackChangesLicenseKeyTrialLimit'==_0x3b2d26||'trackChangesLicenseKeyUsageLimit'==_0x3b2d26){delete _0x2be7c8[_0x25f1d3],_0x4f07af=_0x3b2d26,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4f07af&&_0x2be7c8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4f07af&&_0x2be7c8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4f07af&&_0x2be7c8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4f07af&&_0x2be7c8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4f07af&&_0x2be7c8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4f07af&&_0x2be7c8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4f07af&&_0x2be7c8['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x45684a=this['editor']['plugins']['get']('Annotations'),_0x12fb82=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57128f=Array['from'](_0x45684a['activeAnnotations'],_0x2b8d3a=>_0x2b8d3a['innerView'])['filter'](_0x615d03=>this['_viewToController']['has'](_0x615d03)),_0x1d62bc=[];for(const _0xb772cc of _0x57128f){const _0x3f90d8=this['_viewToController']['get'](_0xb772cc)['model']['getAllAdjacentSuggestions']();_0x1d62bc['push'](..._0x3f90d8['reduce']((_0x26bd99,_0x20c0de)=>[..._0x26bd99,..._0x20c0de['getMarkerNames']()],[]));}_0x12fb82['activeMarkers']=_0x1d62bc;}['_addUIComponentsToFactory'](){const _0xd4758e=this['editor'],_0x53589b=_0xd4758e['locale'],_0x4596fc=o(_0x53589b,'Track\x20changes'),_0x593850=new _0x558083([{'type':'switchbutton','model':new _0x2c9490({'withText':!0x0,'isToggleable':!0x0,'label':_0x4596fc,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2c9490({'withText':!0x0,'label':o(_0x53589b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2c9490({'withText':!0x0,'label':o(_0x53589b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2c9490({'withText':!0x0,'label':o(_0x53589b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2c9490({'withText':!0x0,'label':o(_0x53589b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xd4758e['plugins']['has']('TrackChangesPreview')&&_0x593850['addMany']([{'type':'separator'},{'type':'button','model':new _0x2c9490({'withText':!0x0,'label':o(_0x53589b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5ac030 of _0x593850)if(ke(_0x5ac030)){const _0x5191d8=_0xd4758e['commands']['get'](_0x5ac030['model']['commandName']);_0x5ac030['model']['bind']('isOn','isEnabled')['to'](_0x5191d8,'value','isEnabled');}_0xd4758e['ui']['componentFactory']['add']('trackChanges',_0x18c29d=>this['_createToolbarButton'](_0x18c29d,_0x593850,_0x4596fc)),_0xd4758e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x505dae=>this['_createMenuBarMenu'](_0x505dae,_0x593850,_0x4596fc));}['_createToolbarButton'](_0xbb37ff,_0x6d83c3,_0x5ddd38){const _0x12a9d8=_0x253246(_0xbb37ff,_0x2523ec),_0x224758=this['editor']['commands']['get']('trackChanges');_0x12a9d8['buttonView']['set']({'tooltip':_0x5ddd38,'label':_0x5ddd38,'icon':we}),_0x12a9d8['buttonView']['bind']('isOn')['to'](_0x224758,'value'),_0x12a9d8['buttonView']['on']('execute',()=>{_0x224758['execute'](),this['editor']['editing']['view']['focus']();}),_0x3fce11(_0x12a9d8,_0x6d83c3,{'role':'menu'});const _0x5dcf4c=[];for(const _0x45c674 of _0x6d83c3)ke(_0x45c674)&&_0x5dcf4c['push'](this['editor']['commands']['get'](_0x45c674['model']['commandName']));const _0x3a835a=_0x12a9d8['buttonView'];return _0x3a835a['actionView']['unbind']('isEnabled'),_0x3a835a['arrowView']['unbind']('isEnabled'),_0x3a835a['actionView']['bind']('isEnabled')['to'](_0x224758,'isEnabled'),_0x3a835a['arrowView']['bind']('isEnabled')['toMany'](_0x5dcf4c,'isEnabled',(..._0x210bd6)=>_0x210bd6['some'](_0x302a90=>_0x302a90)),_0x12a9d8['on']('execute',_0x3cb334=>{this['editor']['execute'](_0x3cb334['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x12a9d8;}['_createMenuBarMenu'](_0x3889b8,_0x2a96fb,_0x1a42c0){const _0x59aa3c=new _0x1a49d3(_0x3889b8),_0x36c4d5=this['editor']['commands']['get']('trackChanges');_0x59aa3c['buttonView']['set']({'label':_0x1a42c0,'icon':we});const _0x16be10=new _0x37ea65(_0x3889b8);for(const _0x18e7aa of _0x2a96fb){if('separator'==_0x18e7aa['type']){_0x16be10['items']['add'](new _0x5531b4(_0x3889b8));continue;}const _0x3d7cd3=new _0x256588(_0x3889b8,_0x59aa3c),_0x1cde90=new _0x732ed0(_0x3889b8),_0x1127d9=_0x18e7aa['model'];_0x1cde90['bind'](...Object['keys'](_0x1127d9))['to'](_0x1127d9),_0x1cde90['delegate']('execute')['to'](_0x59aa3c),_0x1cde90['on']('execute',()=>{this['editor']['execute'](_0x1127d9['commandName']),this['editor']['editing']['view']['focus']();}),_0x3d7cd3['children']['add'](_0x1cde90),_0x16be10['items']['add'](_0x3d7cd3);}return _0x59aa3c['bind']('isEnabled')['to'](_0x36c4d5,'isEnabled'),_0x59aa3c['panelView']['children']['add'](_0x16be10),_0x59aa3c;}['_initializeController'](_0x298fb6){const _0x29dac3=this['editor'],_0x2c67d9=_0x29dac3['config'],_0x362c36=_0x29dac3['plugins']['get']('Annotations'),_0x283503=_0x29dac3['plugins']['get']('CommentsRepository'),_0x5ef85e=_0x29dac3['plugins']['get']('EditorAnnotations'),_0x2580c7=_0x29dac3['plugins']['get'](_0x4e8d56)['me'],_0x4d0e24=_0x2c67d9['get']('trackChanges')['SuggestionThreadView'],_0x81c978=_0x2c67d9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x11a80e,CommentThreadInputView:_0xefecc0}=_0x29dac3['plugins']['get']('CommentsUI');let _0x4cc0f4,_0x3422b2,_0x2b0794;this['_annotationViews']['has'](_0x298fb6['id'])?(_0x3422b2=this['_annotationViews']['get'](_0x298fb6['id']),_0x4cc0f4=_0x3422b2['mainView']):(_0x4cc0f4=new _0x4d0e24(_0x29dac3['locale'],_0x298fb6,_0x2580c7,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2c67d9['get']('comments.editorConfig'),'licenseKey':_0x2c67d9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2c67d9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2c67d9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2c67d9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x15018d(_0x2c67d9['get']('locale')),'CommentView':_0x2c67d9['get']('comments')['CommentView'],'CommentsListView':_0x11a80e,'CommentThreadInputView':_0xefecc0,'SuggestionView':_0x81c978}),_0x4cc0f4['suggestionView']['acceptButton']['on']('execute',()=>{_0x29dac3['editing']['view']['focus']();}),_0x4cc0f4['suggestionView']['discardButton']['on']('execute',()=>{_0x29dac3['editing']['view']['focus']();}),_0x3422b2=_0x362c36['createAnnotationView'](this['editor']['locale'],_0x4cc0f4),_0x3422b2['bind']('isDirty')['to'](_0x4cc0f4,'isDirty'),_0x3422b2['bind']('length')['to'](_0x4cc0f4),_0x3422b2['bind']('type')['to'](_0x4cc0f4,'type',_0x17faa1=>'suggestion-'+_0x17faa1),_0x4cc0f4['on']('escape',()=>{_0x2b0794['fire']('escape');}),this['_annotationViews']['set'](_0x298fb6['id'],_0x3422b2));const _0x5796ef=_0x283503['createCommentThreadController'](_0x298fb6['commentThread'],_0x4cc0f4),_0x386fe9=new Ce(_0x29dac3,_0x298fb6,_0x4cc0f4,_0x5796ef),_0x3c8217=_0x298fb6['getAllAdjacentSuggestions']()['filter'](_0x48d4d1=>_0x48d4d1['isInContent']);_0x4cc0f4['descriptionParts']=_0x29dac3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3c8217),this['_suggestionToController']['set'](_0x298fb6,_0x386fe9),this['_viewToController']['set'](_0x4cc0f4,_0x386fe9),_0x2b0794=_0x362c36['createAnnotation']({'view':_0x3422b2,'target':()=>{const _0x6770b1=[],_0x2f615b=_0x298fb6['getAllAdjacentSuggestions']()['filter'](_0x1b3038=>_0x1b3038['isInContent']);for(const _0x5ad2a9 of _0x2f615b)_0x6770b1['push'](..._0x5ad2a9['getMarkers']());return _0x52dc3e(_0x29dac3['editing'],_0x6770b1);},'type':()=>'suggestion-'+_0x386fe9['view']['type']}),_0x283503['_bindAnnotationToEditors'](_0x4cc0f4,_0x2b0794),_0x362c36['add'](_0x2b0794),_0x5ef85e['registerAnnotation'](_0x2b0794);}['_destroyController'](_0xccf375){const _0x5775a8=this['editor']['plugins']['get']('CommentsRepository'),_0xbb574a=this['editor']['plugins']['get']('Annotations'),_0x167c08=this['_suggestionToController']['get'](_0xccf375),_0x425249=_0x167c08['view'],_0x493045=_0xbb574a['getByInnerView'](_0x425249);_0x5775a8['_unbindEditors'](_0x425249),_0x493045&&_0xbb574a['remove'](_0x493045),this['_suggestionToController']['delete'](_0xccf375),this['_viewToController']['delete'](_0x425249),_0x167c08['destroy']();}['_updateController'](_0x351699){if(!_0x351699['isInContent']||!this['_suggestionToController']['has'](_0x351699))return;const _0x4d2c2b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x111468=this['_suggestionToController']['get'](_0x351699),_0x1e19ce=_0x351699['getAllAdjacentSuggestions']();_0x111468['view']['descriptionParts']=_0x4d2c2b['descriptionFactory']['getDescriptions'](_0x1e19ce);}['destroy'](){for(const _0x3aab76 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3aab76);for(const _0x5674f9 of this['_annotationViews']['values']())_0x5674f9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x145277){return'model'in _0x145277;}class k extends _0x51252a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2db39b){this['editor']['plugins']['get'](p)['adapter']=_0x2db39b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d5b24){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d5b24);}['getSuggestions']({skipNotAttached:_0x516d3f=!0x1,toJSON:_0x4120c9=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x516d3f,'toJSON':_0x4120c9});}['getSuggestion'](_0x4612b6){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4612b6);}}const w=['Pagination'];class T extends _0x51252a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x327770=this['editor'];if(_0x327770['config']['define']('trackChangesData.editorCreator',_0x5bfda3=>{const _0x2fe3fc=_0x327770['model']['document']['getRootNames']()['reduce']((_0x424a34,_0x2975e5)=>(_0x424a34[_0x2975e5]='',_0x424a34),{});return _0x327770['constructor']['create'](_0x2fe3fc,_0x5bfda3);}),'function'!=typeof _0x327770['config']['get']('trackChangesData')['editorCreator'])throw new _0x27aa88('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x48f35c){return N(this['editor'],!0x0,_0x48f35c);}['getDataWithDiscardedSuggestions'](_0x1fd834){return N(this['editor'],!0x1,_0x1fd834);}}class D extends _0x51252a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cb029){function _0x21dea7(_0x28d102){return _0x28d102['map'](_0x191bbe=>String['fromCharCode'](_0x191bbe))['join']('');}super(_0x3cb029),this['result']='end',_0x3cb029[_0x21dea7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21dea7([0x76,0x69,0x65,0x77])][_0x21dea7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21dea7([0x61,0x75,0x74,0x6f]),_0x3cb029[_0x21dea7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x21dea7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21dea7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x21dea7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x21dea7([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(_0x48ec23){return void 0x0!==_0x48ec23['getRootsAttributes'];}async function N(_0x2ed8fd,_0x1df2a6,_0x533f60){const _0x592434=_0x239dba(_0x2ed8fd,w);_0x592434['plugins']['push'](p,D),_0x592434['rootsAttributes']=Fe(_0x2ed8fd)?_0x2ed8fd['getRootsAttributes']():void 0x0;const _0x2691c6=document['createDocumentFragment'](),_0xc377da=_0x2ed8fd['config']['get']('trackChangesData')['editorCreator'],_0x173553=await _0xc377da(_0x592434,()=>function(_0x3723e8){const _0x395523=document['createElement']('div');return _0x3723e8['appendChild'](_0x395523),_0x395523;}(_0x2691c6));!function(_0x13674f,_0x181646){const _0x3978b2=_0x13674f['model']['document']['getRootNames']()['reduce']((_0x42dc51,_0x4a3f1a)=>(_0x42dc51[_0x4a3f1a]=_0x13674f['data']['get']({'rootName':_0x4a3f1a}),_0x42dc51),{}),_0x5b8cb6=_0x13674f['plugins']['get']('Users')['users']['map'](_0x3e4d48=>({'id':_0x3e4d48['id'],'name':_0x3e4d48['name']})),_0x4a3e3d=_0x13674f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x35e876=_0x13674f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x473e83=_0x181646['plugins']['get']('Users'),_0x35fe0d=_0x181646['plugins']['get']('TrackChangesEditing'),_0x5ed96d=_0x181646['plugins']['get']('CommentsRepository');for(const _0xf2021 of _0x5ed96d['getCommentThreads']())_0xf2021['remove']();for(const _0x14907d of _0x5b8cb6)_0x473e83['getUser'](_0x14907d['id'])||_0x473e83['addUser'](_0x14907d);_0x473e83['me']||_0x473e83['useAnonymousUser']();for(const _0x185975 of _0x35e876)_0x5ed96d['addCommentThread'](_0x185975);for(const _0x1b7e31 of _0x4a3e3d)_0x35fe0d['addSuggestionData'](_0x1b7e31);_0x181646['data']['set'](_0x3978b2);}(_0x2ed8fd,_0x173553),_0x173553['execute'](_0x1df2a6?'acceptAllSuggestions':'discardAllSuggestions');const _0x1f5aa0=Fe(_0x173553)?_0x173553['getFullData'](_0x533f60):_0x173553['data']['get'](_0x533f60);return await _0x173553['destroy'](),_0x1f5aa0;}class Me extends _0x12dadd{['options'];constructor(_0x2f29d9,_0x36820d){super(_0x2f29d9),this['options']=_0x36820d,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'](_0x26a860,_0x43a992){if(!this['element'])return;const _0x1e079f=[];for(const [_0x423319,_0x3a9e05]of _0x26a860){const _0x59b6c4=document['createElement']('div');_0x59b6c4['setAttribute']('data-ck-root-name',_0x423319),_0x59b6c4['className']=_0x3a9e05['classes']+'\x20ck-track-changes-preview__root-container',_0x59b6c4['innerHTML']=_0x3a9e05['content'],_0x1e079f['push'](_0x59b6c4);}_0x43a992(this['element'],_0x1e079f),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x2199a4){super(_0x2199a4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5c271d=this['editor'],_0x38dd8d=_0x5c271d['locale'],_0x231ccf=_0x5c271d['plugins']['get']('Dialog');let _0x56b1a8;const _0x27bbc9=function(_0x278bea){const _0x3e23f5={};if('editables'in _0x278bea['ui']['view']){for(const [_0x29c363,_0x42db9e]of Object['entries'](_0x278bea['ui']['view']['editables']))_0x3e23f5[_0x29c363]=_0x42db9e['element'];}else _0x3e23f5[_0x278bea['model']['document']['getRootNames']()[0x0]]=_0x278bea['ui']['view']['editable']['element'];return _0x3e23f5;}(_0x5c271d),_0x1bb8c0=function(_0x3fdd67){let _0x545308=0x0;for(const _0x209db7 of Object['values'](_0x3fdd67))_0x545308=Math['max'](_0x545308,_0x209db7['getBoundingClientRect']()['width']);let _0x3e033a=0x0;for(const _0x5a8529 of Object['values'](_0x3fdd67))_0x3e033a+=_0x5a8529['getBoundingClientRect']()['height'];const _0x99f559=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3d5b8d=Math['min'](_0x3e033a,_0x99f559);return{'width':_0x545308,'height':_0x3d5b8d};}(_0x27bbc9);_0x231ccf['show']({'id':'finalContentPreview','title':o(_0x38dd8d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x38dd8d,{'dialogRects':_0x1bb8c0}),'onHide':()=>{_0x56b1a8['detachFromDom']();},'onShow':()=>{_0x5c271d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xb6cb29=>{const _0xa75b17=this['_standarizeRootsData'](_0xb6cb29,_0x5c271d,_0x27bbc9);_0x231ccf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xa75b17,_0x5c271d['config']['get']('trackChanges.preview.renderFunction'));}),_0x56b1a8=new _0x9843c(_0x38dd8d,[_0x231ccf['view']]),_0x56b1a8['attachToDom'](),_0x56b1a8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5c271d['once']('destroy',()=>{_0x56b1a8['detachFromDom']();});const _0x38cd0d=_0x231ccf['view']['headerView']['class'];_0x231ccf['view']['headerView']['class']=_0x38cd0d?_0x38cd0d+'\x20ck-reset_all':'ck-reset_all',_0x231ccf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x231ccf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5c8bcd=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5ca3da=_0x5c8bcd['previewMode'],_0x19477d={};if('$labels'===_0x5ca3da){for(const _0x3c3ae3 of _0x5c8bcd['getMergeFieldsIds']())_0x19477d[_0x3c3ae3]=_0x5c8bcd['getLabel'](_0x3c3ae3)||_0x3c3ae3;}else{const _0x10f84d='$defaultValues'===_0x5ca3da?_0x5c8bcd['getDefaultValues']():_0x5c8bcd['getDataSetValues'](_0x5ca3da,!0x0);for(const _0x299155 of Object['entries'](_0x10f84d)){const [_0x2e0384,_0x36d0ef]=_0x299155;_0x19477d[_0x2e0384]=null!==_0x36d0ef?_0x36d0ef:_0x5c8bcd['getLabel'](_0x2e0384)||_0x2e0384;}}return{'mergeFieldsData':_0x19477d};}['_standarizeRootsData'](_0x805d27,_0x2c065e,_0x55e15c){let _0x4dfd70;if('string'==typeof _0x805d27){const _0x39e42d=_0x2c065e['model']['document']['getRootNames']()[0x0];_0x4dfd70={[_0x39e42d]:_0x805d27};}else _0x4dfd70=_0x805d27;const _0x43bd1a=this['_fixMediaEmbeds'](_0x4dfd70,_0x2c065e),_0x11498f=function(_0xd57aa8,_0x2f2d57){for(const [_0x4965e7,_0x5827a0]of _0xd57aa8)_0x5827a0['classes']=_0x2f2d57[_0x4965e7]['classList']['value']['replace']('ck-focused','');return _0xd57aa8;}(this['_sortRoots'](_0x2c065e)['reduce']((_0x3ebc89,_0x57b9af)=>(_0x3ebc89['push']([_0x57b9af,{'content':_0x43bd1a[_0x57b9af],'classes':''}]),_0x3ebc89),[]),_0x55e15c);return _0x11498f;}['_fixMediaEmbeds'](_0x2a76ed,_0x577216){if(!_0x577216['plugins']['has']('MediaEmbedEditing'))return _0x2a76ed;const _0x524fd5=_0x577216['plugins']['get']('MediaEmbedEditing');for(const [_0x24b14c,_0x139703]of Object['entries'](_0x2a76ed)){const _0x3bde5d=document['createElement']('div');_0x3bde5d['innerHTML']=_0x139703,(_0x3bde5d['querySelectorAll']('figure.media')['forEach'](_0x47ee49=>{const _0x540b3f=_0x47ee49['querySelector']('oembed');if(_0x540b3f){const _0x5e3db3=_0x540b3f['getAttribute']('url');if(_0x5e3db3){const _0x3fe405=_0x524fd5['registry']['getMediaViewElement'](new _0x44ac54(_0x577216['editing']['view']['document']),_0x5e3db3,{'elementName':'','renderForEditingView':!0x0}),_0x700273=document['createElement']('div');_0x700273['classList']['add']('ck-media__wrapper'),_0x3fe405['render'](_0x700273,_0x577216['editing']['view']['domConverter']),_0x540b3f['replaceWith'](_0x700273);}}}),_0x2a76ed[_0x24b14c]=_0x3bde5d['innerHTML']);}return _0x2a76ed;}['_sortRoots'](_0x27ed2d){if(!function(_0x20a169){return void 0x0!==_0x20a169['getRootsAttributes'];}(_0x27ed2d))return _0x27ed2d['model']['document']['getRootNames']();const _0xf70d0f=[],_0x4bb4da=new Map();for(const _0x3802ff of _0x27ed2d['model']['document']['getRootNames']()){const _0x99aa9b=_0x27ed2d['editing']['view']['getDomRoot'](_0x3802ff)['getClientRects']()['item'](0x0);_0xf70d0f['push'](_0x3802ff),_0x4bb4da['set'](_0x3802ff,_0x99aa9b);}return _0xf70d0f['sort']((_0x53f89c,_0x5410e5)=>{const _0x71d8d7=_0x4bb4da['get'](_0x53f89c),_0x2d132e=_0x4bb4da['get'](_0x5410e5);return _0x71d8d7['y']-_0x2d132e['y']||_0x71d8d7['x']-_0x2d132e['x'];}),_0xf70d0f;}}class te extends _0x51252a{static get['requires'](){return[T,_0x57d2f7];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x372e41){super(_0x372e41),_0x372e41['commands']['add']('previewFinalContent',new re(this['editor'])),_0x372e41['config']['define']('trackChanges.preview.renderFunction',(_0x457226,_0x5046b9)=>{for(const _0x53e43a of _0x5046b9)_0x457226['appendChild'](_0x53e43a);});}}export{as 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 _0x1ef9c2,Plugin as _0x346e12,PendingActions as _0x56c221}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x97435f,ObservableMixin as _0x3c5479,uid as _0xb11af3,priorities as _0x1afaee,insertToPriorityArray as _0x545c0e,logWarning as _0x423f9c,getEnvKeystrokeText as _0x28e37d,FocusTracker as _0x4a4022,KeystrokeHandler as _0x1138ff,Collection as _0x45a5c0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x498c5b,IconCancel as _0x27c97d,IconTrackChanges as _0x28714b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as Zt,View as _0x235450,ViewCollection as _0x4a05f1,FocusCycler as _0x32a4a6,ViewModel as _0x56ba85,createDropdown as _0x222b05,SplitButtonView as _0x46f898,addListToDropdown as _0x5a8619,MenuBarMenuView as _0x2bb805,MenuBarMenuListView as _0x470e55,ListSeparatorView as _0x128c5e,MenuBarMenuListItemView as _0x2b8b4f,MenuBarMenuListItemButtonView as _0x4a4b4b,BodyCollection as _0x2348b9,Dialog as _0x2acc9b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x420210,hashObject as _0x573f52,surroundingMarkersDetector as _0x3b957d,FOCUS_ANNOTATION_KEYSTROKE as _0x20e5f6,AriaDescriptionView as _0x2ded57,setupThreadKeyboardNavigation as _0x246d2c,trimHtml as ti,UserView as _0x2c1c86,LateFocusButtonView as _0x4c4533,getDateTimeFormatter as _0x20bd73,getAllMarkersDomElementsSorted as _0xdb3c95,sanitizeEditorConfig as _0x3c9f74}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5ef052,LiveRange as _0x33a55c,LivePosition as _0x1322ed,DowncastWriter as _0x2b4665}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x510c2f,toWidget as _0x5da8b2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3686b7,set as _0x1cf530,isEqual as _0x25540a,unset as _0x44e642,omit as Et}from'es-toolkit/compat';import{Delete as _0x531492,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x561c61,ShiftEnter as _0x47504a}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x1ef9c2{['_enabledCommands'];constructor(_0x5bb604,_0x1ed6c7){super(_0x5bb604),this['_enabledCommands']=_0x1ed6c7,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 _0x174a86 of this['editor']['commands']['commands']())_0x174a86['affectsData']&&!this['_enabledCommands']['has'](_0x174a86)&&_0x174a86['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x53e76b of this['editor']['commands']['commands']())_0x53e76b['affectsData']&&!this['_enabledCommands']['has'](_0x53e76b)&&_0x53e76b['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x1ef9c2{['_suggestions'];constructor(_0xe8441,_0x1b02dc){super(_0xe8441),this['_suggestions']=_0x1b02dc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1f6d0f){const _0x3e82cd=this['_suggestions']['get'](_0x1f6d0f);if(!_0x3e82cd)throw new _0x97435f('track-changes-accept-suggestion-not-found',this);const _0x4d4ede=_0x3e82cd['getRanges']();this['editor']['model']['canEditAt'](_0x4d4ede)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3e82cd);}}class R extends _0x1ef9c2{['_suggestions'];constructor(_0x6a7e8e,_0x1ef2a2){super(_0x6a7e8e),this['_suggestions']=_0x1ef2a2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5eb7e9){const _0x31a10b=this['_suggestions']['get'](_0x5eb7e9);if(!_0x31a10b)throw new _0x97435f('track-changes-discard-suggestion-not-found',this);const _0x4ab13c=_0x31a10b['getRanges']();this['editor']['model']['canEditAt'](_0x4ab13c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x31a10b);}}function ls(_0x1d1485,_0x1a5aed){let _0x2c7b40='';return _0x2c7b40+=_0x1d1485['split']('*')['map']((_0x45d0c9,_0x17ba17)=>_0x17ba17%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x45d0c9)+'</span>':nn(_0x45d0c9))['join'](''),_0x1a5aed&&(_0x2c7b40+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1a5aed['value']+'\x22\x20title=\x22'+_0x1a5aed['title']+'\x22></span>'),_0x2c7b40;}function nn(_0x259f43){const _0x57e993=document['createElement']('span');return _0x57e993['innerText']=_0x259f43,_0x57e993['innerHTML'];}function ts(_0x377d9f){return _0x377d9f['sort']((_0x196b6b,_0x43a226)=>'deletion'==_0x196b6b['type']&&'deletion'!=_0x43a226['type']?-0x1:'deletion'!=_0x196b6b['type']&&'deletion'==_0x43a226['type']?0x1:0x0);}function Xt(_0x170609,_0x3d4f67){let _0x605bfb,_0x5c05d0=0x0;const _0x53ed88=[],_0x2878e5=_0x3d4f67['schema'];for(;_0x5c05d0<_0x170609['length'];){const _0x2ce372=_0x170609[_0x5c05d0],_0x335807=_0x170609[_0x5c05d0+0x1];_0x605bfb||(_0x605bfb=_0x3d4f67['createPositionBefore'](_0x2ce372)),on(_0x3d4f67,_0x2ce372,_0x335807)||(_0x53ed88['push'](_0x3d4f67['createRange'](_0x605bfb,_0x2878e5['isObject'](_0x2ce372)?_0x3d4f67['createPositionAfter'](_0x2ce372):_0x3d4f67['createPositionAt'](_0x2ce372,'end'))),_0x605bfb=null),_0x5c05d0++;}return _0x53ed88;}function on(_0x930bd1,_0x183106,_0x5d6c5d){if(!_0x5d6c5d)return!0x1;const _0x2ed429=_0x930bd1['createPositionAfter'](_0x183106),_0x4845de=_0x930bd1['createPositionBefore'](_0x5d6c5d);return _0x2ed429['isTouching'](_0x4845de);}function rs(_0x30d37d,_0x45e6d2,_0x27a745){for(;_0x27a745['length'];){const _0x1feaf9=_0x27a745['splice'](0x0,0x64);_0x30d37d['change'](()=>{for(const _0x31bc41 of _0x1feaf9)_0x31bc41['isInContent']&&_0x45e6d2['execute'](_0x31bc41['id']);});}}class x extends _0x1ef9c2{['_command'];['_suggestions'];constructor(_0x221ca3,_0x5dc4f2,_0x285cee){super(_0x221ca3),this['_command']=_0x5dc4f2,this['_suggestions']=_0x285cee,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x36aa16=Array['from'](this['_suggestions']['values']())['some'](_0x2589d4=>_0x2589d4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x36aa16;}['execute'](){const _0x518d5d=ts(Array['from'](this['_suggestions']['values']()));for(const _0x51a278 of _0x518d5d){const _0x45e6b4=_0x51a278['getRanges']();if(!this['editor']['model']['canEditAt'](_0x45e6b4))return;}rs(this['editor']['model'],this['_command'],_0x518d5d);}}class E extends _0x1ef9c2{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x38f0d9,_0x1c4308,_0x3c123a){super(_0x38f0d9),this['_command']=_0x1c4308,this['_suggestions']=_0x3c123a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x297edf=this['editor']['model']['document']['selection'],_0x437a2e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x428bcd,_0x839301){const _0x42045b=Array['from'](_0x428bcd['getRanges']()),_0x5c85b9=new Set();for(const _0x35569e of _0x839301)if(_0x35569e['isInContent']){for(const _0x7db3dc of _0x42045b)for(const _0x53bfcd of _0x35569e['getRanges']())(_0x7db3dc['isIntersecting'](_0x53bfcd)||_0x428bcd['isCollapsed']&&!_0x35569e['isMultiRange']&&_0x35569e['next']&&_0x53bfcd['end']['isTouching'](_0x7db3dc['start']))&&_0x5c85b9['add'](_0x35569e);}return _0x5c85b9;}(_0x297edf,_0x437a2e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4d7b72=ts(Array['from'](this['_selectedSuggestions']));for(const _0x344156 of _0x4d7b72){const _0x5fc05d=_0x344156['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5fc05d))return;}rs(this['editor']['model'],this['_command'],_0x4d7b72);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3c5479(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x166a96,_0x1694f2){super(),this['id']=_0x1694f2['id'],this['type']=_0x1694f2['type'],this['subType']=_0x1694f2['subType']||null,this['author']=_0x1694f2['author'],this['creator']=_0x1694f2['creator']||_0x1694f2['author'],this['isExternal']=Boolean(_0x1694f2['attributes']&&_0x1694f2['attributes']['@external']),this['data']=null,this['_model']=_0x166a96,this['_onAccept']=_0x1694f2['onAccept'],this['_onDiscard']=_0x1694f2['onDiscard'],this['_onAttributesChange']=_0x1694f2['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1694f2['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 _0x366765=this;for(;_0x366765['previous'];)_0x366765=_0x366765['previous'];return _0x366765;}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'](_0x186ae9){this['_markerNames']['add'](_0x186ae9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xd8942e=>this['_model']['markers']['get'](_0xd8942e))['filter'](_0x150441=>_0x150441);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xb43dc3=>{for(const _0x37a3b8 of this['getMarkers']())_0xb43dc3['removeMarker'](_0x37a3b8);}),this['_markerNames']['clear']();}['removeMarker'](_0x4a551e){this['_model']['change'](_0x8faf4=>{_0x8faf4['removeMarker'](_0x4a551e);}),this['_markerNames']['delete'](_0x4a551e);}['addRange'](_0x4db636){const _0x9c1a17='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x9c1a17),this['_model']['change'](_0xd108b5=>{_0xd108b5['addMarker'](_0x9c1a17,{'range':_0x4db636,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3ee249){for(const _0x1fe373 of this['getRanges']())if(_0x1fe373['isIntersecting'](_0x3ee249))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x580ae2=>_0x580ae2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1830f3,_0x4f749e)=>[..._0x1830f3,..._0x4f749e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x401d3d=this['getRanges']();if(0x1!=_0x401d3d['length'])return null;const _0x3084dc=_0x401d3d[0x0],_0xfbe56c=_0x3084dc['start']['nodeAfter'],_0x2c8f93=_0x3084dc['end']['nodeBefore'];return _0xfbe56c instanceof _0x5ef052?_0xfbe56c!=_0x2c8f93?null:_0xfbe56c: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 _0x1743e2=[];let _0x44d7b0=this['head'];for(;_0x44d7b0;)_0x1743e2['push'](_0x44d7b0),_0x44d7b0=_0x44d7b0['next'];return _0x1743e2;}['setAttribute'](_0x251527,_0x37a6d7){const _0x2ec89c=_0x3686b7(this['attributes']);_0x1cf530(_0x2ec89c,_0x251527,_0x37a6d7),_0x25540a(_0x2ec89c,this['attributes'])||(this['attributes']=_0x2ec89c,this['_onAttributesChange'](_0x2ec89c));}['removeAttribute'](_0x1bb220){const _0x2d0d2a=_0x3686b7(this['attributes']);_0x44e642(_0x2d0d2a,_0x1bb220),_0x25540a(_0x2d0d2a,this['attributes'])||(this['attributes']=_0x2d0d2a,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 _0xb11af3()['substr'](0x1,0x5);}}function c(_0x1de258,_0x55d83e,_0x190a67){const _0x1a963d=_0x1de258['t'],t=_0x1de258['t'];switch(_0x55d83e){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',_0x190a67);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x190a67);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x190a67);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x190a67);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x190a67);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',_0x190a67);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x190a67);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',_0x190a67);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x190a67);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x190a67);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x190a67);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x190a67);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x190a67);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x190a67);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x190a67);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x190a67);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x190a67);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x190a67);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x190a67);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x190a67);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x190a67);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x190a67);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x190a67);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x190a67);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'},_0x190a67);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x190a67);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x190a67);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x190a67);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x190a67);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x190a67);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'},_0x190a67);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x190a67);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x190a67);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x190a67);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x190a67);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'},_0x190a67);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x190a67);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'},_0x190a67);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'},_0x190a67);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x190a67);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'},_0x190a67);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x190a67);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'},_0x190a67);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x190a67);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x190a67);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'},_0x190a67);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x190a67);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 _0x1a963d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x190a67);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1a963d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x190a67);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x190a67);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'},_0x190a67);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'},_0x190a67);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'},_0x190a67);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x55d83e;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x248831,_0x55417c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x248831,this['_locale']=_0x55417c;}['getDescriptions'](_0x301494){const _0x5e6480=[],_0x4729e9=new Set(),_0x351c12=new Set();for(let _0x297a84=0x0;_0x297a84<_0x301494['length'];_0x297a84++){const _0x51a6ab=_0x301494[_0x297a84];if(!_0x51a6ab['isInContent'])continue;const _0x392554=this['_handleCustomCallbackDescription'](_0x51a6ab);if(_0x392554){if(null!=_0x51a6ab['subType']){if(_0x4729e9['has'](_0x51a6ab['subType']))continue;_0x4729e9['add'](_0x51a6ab['subType']);}_0x5e6480['push'](_0x392554);}else{if('attribute'!=_0x51a6ab['type'])'insertion'!=_0x51a6ab['type']&&'deletion'!=_0x51a6ab['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5e6480,_0x51a6ab,_0x301494[_0x297a84+0x1]);else{const _0x533c68=_0x51a6ab['data']['key'];if(_0x351c12['has'](_0x533c68))continue;_0x351c12['add'](_0x51a6ab['data']['key']),_0x533c68==u?this['_handleRenameSuggestionDescription'](_0x5e6480,_0x51a6ab):this['_handleAttributeSuggestionDescription'](_0x5e6480,_0x51a6ab);}}}return this['_resolveDescriptionItems'](_0x5e6480);}['registerDescriptionCallback'](_0x2c9947){this['_customCallbacks']['push'](_0x2c9947);}['registerElementLabel'](_0x13a770,_0x160a55,_0x59879d=_0x1afaee['normal']){'function'==typeof _0x13a770?_0x545c0e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x13a770,'label':_0x160a55,'priority':_0x59879d}):this['_itemLabels']['set'](_0x13a770,_0x160a55);}['registerAttributeLabel'](_0x5b2c8b,_0x13633c){this['_attributeLabels']['set'](_0x5b2c8b,_0x13633c);}['getItemLabel'](_0x2bef03,_0xd0d8e8=0x1){let _0x1b0804;for(const _0x48e2fd of this['_itemLabelsCallbacks'])if(_0x48e2fd['matchingCallback'](_0x2bef03)){_0x1b0804=_0x48e2fd['label'];break;}return _0x1b0804||(_0x1b0804=this['_itemLabels']['get'](_0x2bef03['name'])),_0x1b0804?_0x1b0804(_0xd0d8e8):0x1!==_0xd0d8e8?_0xd0d8e8+'\x20'+_0x2bef03['name']+'s':''+_0x2bef03['name'];}['_addDescriptionItems'](_0xf95b2f,_0x213cf6){const _0x5c797c=_0x213cf6['getFirstRange']()['getWalker'](),_0x354dd4='insertion'==_0x213cf6['type']?'add':'remove';for(const _0x492884 of _0x5c797c){const _0x2a5229=_0x492884['item'],_0x1303db=_0xf95b2f[_0xf95b2f['length']-0x1];if(_0x2a5229['is']('$textProxy'))_0x1303db&&_0x1303db['type']['indexOf']('Container')>-0x1&&_0xf95b2f['pop'](),_0x1303db&&'text'==_0x1303db['type']?_0x1303db[_0x354dd4]+=_0x2a5229['data']:_0xf95b2f['push']({'type':'text','add':'add'==_0x354dd4?_0x2a5229['data']:'','remove':'remove'==_0x354dd4?_0x2a5229['data']:''});else{if(this['_schema']['isObject'](_0x2a5229)){const _0xaebd86=_0x2a5229;if(_0x1303db&&_0x1303db['type']['indexOf']('Container')>-0x1&&_0xf95b2f['pop'](),'elementEnd'==_0x492884['type'])continue;_0x1303db&&_0x1303db['type']==_0x354dd4+'Object'&&_0x1303db['element']['name']==_0xaebd86['name']?_0x1303db['quantity']++:_0xf95b2f['push']({'type':_0x354dd4+'Object','element':_0xaebd86,'quantity':0x1}),_0x5c797c['skip'](_0x4c1708=>!('elementEnd'==_0x4c1708['type']&&_0x4c1708['item']==_0x2a5229));}else{if(this['_schema']['checkChild'](_0x2a5229,'$text')||_0x2a5229['is']('element','softBreak')){const _0x3950a7=_0x2a5229;if('add'==_0x354dd4&&'elementStart'==_0x492884['type']||'remove'==_0x354dd4&&'elementEnd'==_0x492884['type'])continue;if(_0x1303db&&-0x1==_0x1303db['type']['indexOf']('Container')){'text'==_0x1303db['type']&&(_0x1303db[_0x354dd4]+='\x0a');continue;}let _0x5468ed;if(_0x5468ed='add'==_0x354dd4?_0x3950a7['nextSibling']&&!this['_schema']['isObject'](_0x3950a7['nextSibling'])?_0x3950a7['nextSibling']:null:_0x3950a7['previousSibling']&&!this['_schema']['isObject'](_0x3950a7['previousSibling'])?_0x3950a7['previousSibling']:null,_0x3950a7['isEmpty']||_0x5468ed&&_0x5468ed['isEmpty']){const _0x23981b=_0x5468ed&&_0x5468ed['isEmpty']?_0x5468ed:_0x3950a7;_0x1303db&&_0x1303db['type']==_0x354dd4+'EmptyContainer'&&_0x1303db['element']['name']==_0x23981b['name']?_0x1303db['quantity']++:_0xf95b2f['push']({'type':_0x354dd4+'EmptyContainer','element':_0x23981b,'quantity':0x1});}else _0xf95b2f['push']({'type':_0x354dd4+'Container','element':_0x3950a7});}}}}}['_resolveDescriptionItems'](_0x26fc1d){const _0x14da67=this['_locale'],_0x49d590=[],_0x61f985=[],_0x46a006=[];for(const _0x28ffac of _0x26fc1d)switch(_0x28ffac['type']){case'text':if(_0x28ffac['add']=_0x28ffac['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x28ffac['remove']=_0x28ffac['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x28ffac['add']&&''!=_0x28ffac['remove']){_0x49d590['push']({'type':'replace','content':c(_0x14da67,'REPLACE_TEXT',['\x22'+_0x28ffac['remove']+'\x22','\x22'+_0x28ffac['add']+'\x22'])});continue;}if(null!=_0x28ffac['add']['match'](/^ +$/)){_0x49d590['push']({'type':'insertion','content':c(_0x14da67,'*Insert:*\x20%0',c(_0x14da67,'ELEMENT_SPACE',_0x28ffac['add']['length']))});continue;}if(null!=_0x28ffac['remove']['match'](/^ +$/)){_0x49d590['push']({'type':'deletion','content':c(_0x14da67,'*Remove:*\x20%0',c(_0x14da67,'ELEMENT_SPACE',_0x28ffac['remove']['length']))});continue;}if(''!=_0x28ffac['add']){_0x49d590['push']({'type':'insertion','content':c(_0x14da67,'*Insert:*\x20%0','\x22'+_0x28ffac['add']+'\x22')});continue;}_0x49d590['push']({'type':'deletion','content':c(_0x14da67,'*Remove:*\x20%0','\x22'+_0x28ffac['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x49d590['push']({'type':'insertion','content':c(_0x14da67,'*Insert:*\x20%0',this['getItemLabel'](_0x28ffac['element'],_0x28ffac['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x49d590['push']({'type':'deletion','content':c(_0x14da67,'*Remove:*\x20%0',this['getItemLabel'](_0x28ffac['element'],_0x28ffac['quantity']))});continue;case'addContainer':_0x49d590['push']({'type':'insertion','content':c(_0x14da67,'*Split:*\x20%0',this['getItemLabel'](_0x28ffac['element'],_0x28ffac['quantity']))});continue;case'removeContainer':_0x49d590['push']({'type':'deletion','content':c(_0x14da67,'*Merge:*\x20%0',this['getItemLabel'](_0x28ffac['element'],_0x28ffac['quantity']))});continue;case'addFormat':_0x61f985['push'](_0x28ffac['key']);continue;case'removeFormat':_0x46a006['push'](_0x28ffac['key']);continue;default:_0x49d590['push'](_0x28ffac);}if(_0x61f985['length']){const _0x10cf55=_0x61f985['map'](_0x53c40f=>this['_attributeLabels']['has'](_0x53c40f)?this['_attributeLabels']['get'](_0x53c40f):_0x53c40f)['join'](',\x20');_0x49d590['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x10cf55)});}if(_0x46a006['length']){const _0x1af44c=_0x46a006['map'](_0x45405c=>this['_attributeLabels']['has'](_0x45405c)?this['_attributeLabels']['get'](_0x45405c):_0x45405c)['join'](',\x20');_0x49d590['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1af44c)});}return _0x49d590;}['_handleCustomCallbackDescription'](_0x4f3750){for(const _0x376298 of this['_customCallbacks']){const _0x47d5c9=_0x376298(_0x4f3750);if(_0x47d5c9&&'type'in _0x47d5c9)return _0x47d5c9;}}['_handleAttributeSuggestionDescription'](_0x378df8,_0x2d9298){const _0x4c16ee=_0x2d9298['data'],_0x3b7c04=void 0x0===_0x4c16ee['newValue']?'removeFormat':'addFormat';_0x378df8['push']({'type':_0x3b7c04,'key':_0x4c16ee['key']});}['_handleRenameSuggestionDescription'](_0x2ab8cc,_0x1c2e60){_0x2ab8cc['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1c2e60['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xb98c86,_0x31f3b4,_0x4ff5f8){if(this['_addDescriptionItems'](_0xb98c86,_0x31f3b4),_0x4ff5f8&&_0x4ff5f8['getFirstRange']()&&!_0x31f3b4['getFirstRange']()['end']['isEqual'](_0x4ff5f8['getFirstRange']()['start'])){const _0x3d3a98=_0xb98c86[_0xb98c86['length']-0x1],_0x405ccf='insertion'==_0x31f3b4['type']?'add':'remove';_0x3d3a98&&'text'==_0x3d3a98['type']&&(_0x3d3a98[_0x405ccf]+='\x0a');}}}class U extends _0x346e12{['afterInit'](){const _0x1aa6ca=this['editor'],_0x423977=_0x1aa6ca['plugins']['get']('TrackChangesEditing');_0x1aa6ca['commands']['get']('showAIAssistant')&&_0x423977['enableCommand']('showAIAssistant');}}class V extends _0x346e12{['afterInit'](){const _0x2be2bb=this['editor'],_0x15aaed=_0x2be2bb['locale'];if(!_0x2be2bb['plugins']['has']('AlignmentEditing'))return;const _0x477ebe=_0x2be2bb['plugins']['get']('TrackChangesEditing');_0x477ebe['enableDefaultAttributesIntegration']('alignment'),_0x477ebe['registerBlockAttribute']('alignment'),_0x477ebe['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x15aaed,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x202525=this['editor'],_0x45fc76=_0x202525['locale'];_0x202525['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52e02a=>{if('formatBlock'!=_0x52e02a['type'])return;const {data:_0x52ed08}=_0x52e02a;if(_0x52ed08&&'alignment'==_0x52ed08['commandName']){const _0x5d4707=_0x52ed08['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x45fc76,'*Format:*\x20%0',function(_0x49c359){switch(_0x49c359){case'left':return c(_0x45fc76,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x45fc76,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x45fc76,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x45fc76,'FORMAT_JUSTIFY_TEXT');}}(_0x5d4707))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x346e12{['afterInit'](){const _0x4c5373=this['editor'],_0x34a5c4=_0x4c5373['plugins']['get']('TrackChangesEditing'),_0x1b0ec0=_0x4c5373['locale'];for(const _0xe1e04a of Qt){if(!_0x4c5373['plugins']['has'](_0xe1e04a))continue;const _0x59aeb7=_0xe1e04a['slice'](0x0,-0x7)['toLowerCase'](),_0x4a124a='FORMAT_'+_0x59aeb7['toUpperCase']();_0x34a5c4['enableDefaultAttributesIntegration'](_0x59aeb7),_0x34a5c4['registerInlineAttribute'](_0x59aeb7),_0x34a5c4['descriptionFactory']['registerAttributeLabel'](_0x59aeb7,c(_0x1b0ec0,_0x4a124a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59bc24=this['editor'],_0x5242a9=_0x59bc24['locale'],_0x24967e=_0x59bc24['plugins']['get']('TrackChangesEditing');function _0x44be1a(_0x528212,_0x112afa){_0x24967e['descriptionFactory']['registerDescriptionCallback'](_0x32e271=>{if('formatInline'!=_0x32e271['type'])return;const {data:_0x17ab31}=_0x32e271;return _0x17ab31&&_0x17ab31['commandName']===_0x528212?_0x17ab31['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5242a9,'*Format:*\x20%0',_0x112afa)}:{'type':'format','content':c(_0x5242a9,'*Remove\x20format:*\x20%0',_0x112afa)}:void 0x0;});}_0x44be1a('bold',c(_0x5242a9,'FORMAT_BOLD')),_0x44be1a('italic',c(_0x5242a9,'FORMAT_ITALIC')),_0x44be1a('underline',c(_0x5242a9,'FORMAT_UNDERLINE')),_0x44be1a('code',c(_0x5242a9,'FORMAT_CODE')),_0x44be1a('strikethrough',c(_0x5242a9,'FORMAT_STRIKETHROUGH')),_0x44be1a('subscript',c(_0x5242a9,'FORMAT_SUBSCRIPT')),_0x44be1a('superscript',c(_0x5242a9,'FORMAT_SUPERSCRIPT'));}}class G extends _0x346e12{['afterInit'](){const _0x3e75e9=this['editor'],_0x2f9cd1=_0x3e75e9['locale'];if(!_0x3e75e9['plugins']['has']('BlockQuoteEditing'))return;const _0x14468c=_0x3e75e9['plugins']['get']('TrackChangesEditing'),_0x4162d0=this['editor']['commands']['get']('blockQuote');_0x14468c['enableCommand']('blockQuote',(_0x46a1f8,_0x5c7363={})=>{const _0x5b8322=this['editor']['model']['document']['selection'],_0x20bfb4=_0x5c7363&&void 0x0!==_0x5c7363['forceValue']?_0x5c7363['forceValue']:!_0x4162d0['value'];let _0x3b5d24=[];if(_0x20bfb4){const _0x1c0f1c=Array['from'](_0x5b8322['getSelectedBlocks']())['filter'](_0x5c192f=>Yt(_0x5c192f)||function(_0x23305a,_0x1f858e){const _0x5595de=_0x1f858e['checkChild'](_0x23305a['parent'],'blockQuote'),_0x103f0a=_0x1f858e['checkChild'](['$root','blockQuote'],_0x23305a);return _0x5595de&&_0x103f0a;}(_0x5c192f,this['editor']['model']['schema']));_0x3b5d24=Xt(_0x1c0f1c,_0x3e75e9['model']);}else{const _0x53529c=Array['from'](_0x5b8322['getSelectedBlocks']())['filter'](_0x2f4fb5=>Yt(_0x2f4fb5));_0x3b5d24=Xt(_0x53529c,_0x3e75e9['model']);}_0x3e75e9['model']['change'](()=>{for(const _0x2544f of _0x3b5d24)_0x14468c['markBlockFormat'](_0x2544f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x20bfb4}]});});}),_0x14468c['descriptionFactory']['registerDescriptionCallback'](_0xd16e46=>{const {data:_0x3e18da}=_0xd16e46;if(_0x3e18da&&'blockQuote'==_0x3e18da['commandName']){const _0x3a6fd7=c(_0x2f9cd1,'ELEMENT_BLOCK_QUOTE');return _0x3e18da['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2f9cd1,'*Set\x20format:*\x20%0',_0x3a6fd7)}:{'type':'format','content':c(_0x2f9cd1,'*Remove\x20format:*\x20%0',_0x3a6fd7)};}});}}function Yt(_0x1c34d4){return'blockQuote'==_0x1c34d4['parent']['name'];}class L extends _0x346e12{['afterInit'](){const _0x43aed3=this['editor'],_0x1c1a12=_0x43aed3['locale'],_0x1224b6=_0x43aed3['plugins']['get']('TrackChangesEditing');_0x43aed3['plugins']['has']('BookmarkEditing')&&(_0x1224b6['enableCommand']('insertBookmark'),_0x1224b6['enableDefaultAttributesIntegration']('updateBookmark'),_0x1224b6['registerBlockAttribute']('bookmarkId'),_0x1224b6['descriptionFactory']['registerDescriptionCallback'](_0x3cff24=>{if('insertion'!=_0x3cff24['type']&&'deletion'!=_0x3cff24['type']&&'attribute'!=_0x3cff24['type'])return;const _0x1493c7=_0x3cff24['getContainedElement']();if(null==_0x1493c7)return;if(!_0x1493c7['is']('element','bookmark'))return;const _0xfc3f1b=_0x1493c7['getAttribute']('bookmarkId');if('insertion'==_0x3cff24['type'])return{'type':'insertion','content':c(_0x1c1a12,'*Insert:*\x20%0','\x22'+_0xfc3f1b+'\x22\x20'+c(_0x1c1a12,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3cff24['type'])return{'type':'deletion','content':c(_0x1c1a12,'*Remove:*\x20%0','\x22'+_0xfc3f1b+'\x22\x20'+c(_0x1c1a12,'ELEMENT_BOOKMARK'))};const {data:_0x267750}=_0x3cff24;if(!_0x267750||'bookmarkId'!=_0x267750['key'])return;return{'type':'format','content':c(_0x1c1a12,'*Set\x20bookmark:*\x20%0','\x22'+_0x267750['newValue']+'\x22')};}));}}class J extends _0x346e12{['afterInit'](){const _0x357232=this['editor'];_0x357232['plugins']['has']('CaseChange')&&(_0x357232['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x357232['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x357232['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x346e12{['afterInit'](){const _0x518fd1=this['editor'];_0x518fd1['commands']['get']('ckbox')&&_0x518fd1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x346e12{['afterInit'](){const _0x2108b8=this['editor'];if(!_0x2108b8['plugins']['has']('CodeBlock'))return;const _0x39b918=_0x2108b8['plugins']['get']('TrackChangesEditing'),_0x17798a=_0x2108b8['locale'],_0x103ecf=_0x2108b8['config']['get']('codeBlock')['languages'],_0x136754=_0x2108b8['commands']['get']('codeBlock');_0x39b918['enableCommand']('indentCodeBlock'),_0x39b918['enableCommand']('outdentCodeBlock'),_0x39b918['enableCommand']('codeBlock',(_0xfd490b,_0x2df2ac={})=>{const _0x529c44=_0x2108b8['model'],_0x24b3d2=_0x2108b8['model']['document']['selection'],_0x56d6b5=_0x2df2ac&&void 0x0!==_0x2df2ac['forceValue']?_0x2df2ac['forceValue']:!_0x136754['value'];let _0x30125e;_0x2df2ac['language']||(_0x2df2ac['language']=_0x103ecf[0x0]['language']),_0x30125e=_0x56d6b5?Array['from'](_0x24b3d2['getSelectedBlocks']())['filter'](_0x3bf160=>oo(_0x3bf160)||function(_0xa7500b,_0x59c5ea){if(_0xa7500b['is']('rootElement')||_0x59c5ea['isLimit'](_0xa7500b))return!0x1;return _0x59c5ea['checkChild'](_0xa7500b['parent'],'codeBlock');}(_0x3bf160,_0x529c44['schema'])):Array['from'](_0x24b3d2['getSelectedBlocks']())['filter'](_0xbd7e71=>oo(_0xbd7e71));const _0x5d2ec=Xt(_0x30125e,_0x529c44);_0x529c44['change'](()=>{for(const _0x48decc of _0x5d2ec)_0x39b918['markBlockFormat'](_0x48decc,{'commandName':'codeBlock','commandParams':[{..._0x2df2ac,'forceValue':_0x56d6b5}],'formatGroupId':'blockName'});});}),(_0x39b918['descriptionFactory']['registerElementLabel']('codeBlock',_0x53d467=>c(_0x17798a,'ELEMENT_CODE_BLOCK',_0x53d467)),_0x39b918['descriptionFactory']['registerDescriptionCallback'](_0x287d81=>{if('formatBlock'!=_0x287d81['type'])return;const _0x1cb2f1=_0x17798a['t'],{data:_0x4ef5a1}=_0x287d81;if(!_0x4ef5a1||'codeBlock'!=_0x4ef5a1['commandName'])return;const _0x4c4d42=_0x4ef5a1['commandParams'][0x0]['language'],_0x4b439d=_0x1cb2f1(_0x103ecf['find'](_0x24dd6e=>_0x24dd6e['language']===_0x4c4d42)['label'])['toLowerCase']();return _0x4ef5a1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x17798a,'*Set\x20format:*\x20%0',c(_0x17798a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4b439d+')')}:{'type':'format','content':c(_0x17798a,'*Remove\x20format:*\x20%0',c(_0x17798a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x27f378){return'codeBlock'==_0x27f378['name'];}class q extends _0x346e12{['afterInit'](){const _0x5610d7=this['editor'];if(!_0x5610d7['plugins']['has']('CommentsEditing'))return;_0x5610d7['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x1322a7,_0x109193,_0x5d5cea){const _0x320693=[];for(const _0x4179f6 of _0x109193['getItems']())_0x4179f6['hasAttribute'](_0x1322a7)&&_0x320693['push'](_0x5d5cea['createRangeOn'](_0x4179f6));return _0x320693;}function De(_0x3d8b57,_0x3863dd,{showActiveMarker:_0x488351=!0x0}={}){const _0x2ad109=_0x3d8b57['plugins']['get']('TrackChangesEditing');return(_0x2ea205,_0x4d97dd,_0x44262f)=>{if(!_0x44262f['consumable']['test'](_0x4d97dd['markerRange'],_0x2ea205['name']))return;const _0x5943e8=_0x4d97dd['markerRange']['getWalker'](),_0x76b10d=_0x4d97dd['markerRange']['start'],_0x272287=_0x3d8b57['model']['schema'];let _0x290e4d=null,_0x1c6f5f=null,_0x572bef=!0x1,_0x58f4dc=!0x1;for(const _0x5859c2 of _0x5943e8){const _0x4e24c4=_0x5859c2['item'];_0x572bef=_0x572bef||_0x272287['isContent'](_0x4e24c4);const _0x293b25=_0x44262f['mapper']['toViewElement'](_0x4e24c4);if(_0x293b25&&_0x293b25['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5859c2['type']&&(_0x272287['isBlock'](_0x4e24c4)&&!_0x272287['isLimit'](_0x4e24c4)&&(_0x4e24c4['nextSibling']||_0x76b10d['isAtEnd']?_0x290e4d&&_0x290e4d['parent']==_0x4e24c4||(_0x290e4d=_0x4e24c4,_0x91273a(_0x5859c2['previousPosition']),_0x58f4dc=!0x0):_0x1c6f5f=_0x1c6f5f||_0x5859c2['previousPosition']));}function _0x91273a(_0x52403c){const {authorId:_0x1a2949}=_0x2ad109['_splitMarkerName'](_0x4d97dd['markerName']),_0x28771f=_0x44262f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3863dd,'data-author-id':_0x1a2949}),_0x226475=_0x44262f['mapper']['toViewPosition'](_0x52403c);_0x488351&&_0x2ad109['activeMarkers']['includes'](_0x4d97dd['markerName'])&&_0x44262f['writer']['addClass']('ck-suggestion-marker--active',_0x28771f),_0x44262f['writer']['insert'](_0x226475,_0x28771f),_0x44262f['mapper']['bindElementToMarker'](_0x28771f,_0x4d97dd['markerName']);}_0x572bef||_0x58f4dc||!_0x1c6f5f||_0x91273a(_0x1c6f5f);};}class z extends _0x346e12{static get['requires'](){return[_0x531492];}['init'](){const _0x4167de=this['editor'],_0x2ed96d=_0x4167de['plugins']['get']('TrackChangesEditing');_0x2ed96d['enableCommand']('delete');const _0x50872f=_0x4167de['commands']['get']('deleteForward');_0x2ed96d['enableCommand']('deleteForward',(_0x1fe122,_0xce1d28={})=>{const _0x5871af=_0x4167de['model']['createSelection'](_0x4167de['model']['document']['selection']);_0x5871af['isCollapsed']&&_0x4167de['model']['modifySelection'](_0x5871af,{'direction':'forward','unit':_0xce1d28['unit']});const _0x52d8a6=_0x5871af['getFirstRange'](),_0x3a0db5=_0x33a55c['fromRange'](_0x52d8a6);let _0x5118ed;_0x1fe122(_0xce1d28),_0x5118ed='$graveyard'==_0x3a0db5['root']['rootName']?_0x4167de['model']['createRange'](_0x52d8a6['start']):_0x4167de['model']['createRange'](_0x3a0db5['start'],_0x3a0db5['end']),_0x3a0db5['detach'](),_0x4167de['model']['enqueueChange'](_0x50872f['buffer']['batch'],_0x5accc0=>{_0x50872f['buffer']['lock'](),_0x5accc0['setSelection'](_0x5accc0['createRange'](_0x5118ed['end'])),_0x50872f['buffer']['unlock']();});}),_0x4167de['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4167de,'merge'),{'priority':'high'}),_0x4167de['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1723f1,_0x3511df,_0x5ecb25)=>{_0x5ecb25['options']['showSuggestionHighlights']&&De(_0x4167de,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1723f1,_0x3511df,_0x5ecb25);},{'priority':'high'}),_0x4167de['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x310ceb,_0x1e3cd0,_0x272b16)=>{const _0x286054=_0x272b16['mapper']['markerNameToElements'](_0x1e3cd0['markerName']);if(_0x286054){for(const _0x10b08e of _0x286054)_0x10b08e['is']('uiElement')&&(_0x272b16['mapper']['unbindElementFromMarkerName'](_0x10b08e,_0x1e3cd0['markerName']),_0x272b16['writer']['remove'](_0x10b08e));}},{'priority':'high'});}}class W extends _0x346e12{['afterInit'](){const _0xf39d20=this['editor'];if(!_0xf39d20['plugins']['has']('ListEditing'))return;const _0x106c27=_0xf39d20['locale'],_0x518f40=_0xf39d20['plugins']['get']('TrackChangesEditing'),_0x50c19b=_0xf39d20['plugins']['has']('TodoListEditing'),_0x2f4105=!!_0xf39d20['config']['get']('list.multiBlock');function _0x5bd121(_0x175628){return{'type':'format','content':''+c(_0x106c27,'*Set\x20format:*\x20%0',_0x175628)};}function _0x16c3be(_0x26cc3c){return{'type':'format','content':''+c(_0x106c27,'*Remove\x20format:*\x20%0',_0x26cc3c)};}_0x518f40['enableDefaultAttributesIntegration']('numberedList'),_0x518f40['enableDefaultAttributesIntegration']('bulletedList'),_0x518f40['enableDefaultAttributesIntegration']('customNumberedList'),_0x518f40['enableDefaultAttributesIntegration']('customBulletedList'),_0x518f40['enableDefaultAttributesIntegration']('indentList'),_0x518f40['enableDefaultAttributesIntegration']('outdentList'),_0x518f40['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x518f40['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x518f40['registerBlockAttribute']('listItemId'),_0x518f40['registerBlockAttribute']('listType'),_0x518f40['registerBlockAttribute']('listIndent'),_0x2f4105&&(_0x518f40['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x518f40['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x50c19b&&(_0x518f40['enableDefaultAttributesIntegration']('todoList'),_0x518f40['enableDefaultAttributesIntegration']('checkTodoList'),_0x518f40['registerBlockAttribute']('todoListChecked'),_0x518f40['descriptionFactory']['registerDescriptionCallback'](_0x33190f=>{const {data:_0x32cecf}=_0x33190f;if(_0x32cecf&&'todoListChecked'==_0x32cecf['key'])return{'type':'format','content':_0x32cecf['newValue']?c(_0x106c27,'*Check\x20item*'):c(_0x106c27,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x138a07=>{if(_0x138a07['batch']['isUndo'])return!0x1;let _0x241546=!0x1;const _0x2b9cdc=_0x518f40['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x434563=>'todoListChecked'===_0x518f40['_getAttributeKey'](_0x434563));for(const _0xc5d03d of _0x2b9cdc){'todo'!=_0xc5d03d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x518f40['_findSuggestions'](_0xc5d03d['getFirstRange'](),'attribute')['find'](_0x599248=>'listType'===_0x518f40['_getAttributeKey'](_0x599248['suggestion']))||(_0x138a07['removeMarker'](_0xc5d03d['getFirstMarker']()),_0x241546=!0x0));}return _0x241546;})),_0x518f40['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x106c27,'FORMAT_INDENT'));const _0xc75e67={'type':'format','content':''};_0x518f40['descriptionFactory']['registerDescriptionCallback'](_0xb396c9=>{const {data:_0x1b22e7}=_0xb396c9;if(!_0x1b22e7||'listType'!=_0x1b22e7['key'])return;let _0x4b7c32=_0xb396c9['head'];for(;_0x4b7c32;){if(_0x4b7c32['data']&&(('listStyle'==_0x4b7c32['data']['key']||'listMarkerStyle'==_0x4b7c32['data']['key'])&&(_0x4b7c32['data']['newValue']&&'default'!=_0x4b7c32['data']['newValue']||'default'!=_0x4b7c32['data']['oldValue']&&!_0x1b22e7['newValue'])||!_0x2f4105&&_0x4b7c32['data']['key']==u))return _0xc75e67;_0x4b7c32=_0x4b7c32['next'];}if(null==_0x1b22e7['newValue'])switch(_0x1b22e7['oldValue']){case'bulleted':return _0x16c3be(c(_0x106c27,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x16c3be(c(_0x106c27,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x16c3be(c(_0x106c27,'ELEMENT_TODO_LIST'));}switch(_0x1b22e7['newValue']){case'bulleted':return _0x5bd121(c(_0x106c27,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5bd121(c(_0x106c27,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5bd121(c(_0x106c27,'ELEMENT_TODO_LIST'));}}),_0x518f40['descriptionFactory']['registerDescriptionCallback'](_0x17f770=>{const {data:_0x44ae7a}=_0x17f770;if(_0x44ae7a&&'listIndent'==_0x44ae7a['key'])return null==_0x44ae7a['newValue']||null==_0x44ae7a['oldValue']&&0x0==_0x44ae7a['newValue']?_0xc75e67:void 0x0;}),_0x518f40['descriptionFactory']['registerDescriptionCallback'](_0x43a741=>{if('attribute'!=_0x43a741['type'])return;const {data:_0x2ff3f6}=_0x43a741;if(!_0x2ff3f6||'listItemId'!=_0x2ff3f6['key'])return;const _0x54b3b5=Te(_0x43a741);return'newValue'==_0x54b3b5?{'type':'format','content':c(_0x106c27,'*Merge:*\x20list\x20item')}:'oldValue'==_0x54b3b5?{'type':'format','content':c(_0x106c27,'*Split:*\x20list\x20item')}:_0xc75e67;}),_0xf39d20['model']['document']['registerPostFixer'](_0x192da0=>this['listItemIdFixer'](_0x192da0)),_0xf39d20['model']['document']['registerPostFixer'](_0xc0633b=>this['noTrackChangesFixer'](_0xc0633b)),_0xf39d20['model']['document']['on']('change:data',(_0x5a7fdd,_0x5708f9)=>{if(_0x5708f9['isUndo']||!_0x5708f9['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2c985f){if(_0x2c985f['batch']['isUndo']||!_0x2c985f['batch']['isLocal'])return!0x1;let _0x40f473=!0x1;const _0x106f2e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a8a3f=>_0x3a8a3f['data']&&'listItemId'==_0x3a8a3f['data']['key'])['filter'](_0x13acd7=>_0x13acd7['data']['newValue']&&_0x13acd7['data']['oldValue']);for(const _0x2d6d0c of _0x106f2e)Te(_0x2d6d0c)||(_0x2c985f['removeMarker'](_0x2d6d0c['getFirstMarker']()),_0x40f473=!0x0);return _0x40f473;}['noTrackChangesFixer'](_0x5f1eb4){if(_0x5f1eb4['batch']['isUndo']||!_0x5f1eb4['batch']['isLocal'])return!0x1;const _0x2283a9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2283a9['trackChangesCommand']['value'])return!0x1;let _0xa5d1b4=!0x1;const _0x312dd3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x468aa8=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x47108a=>'attribute'==_0x47108a['type'])['filter'](_0x175075=>_0x312dd3['includes'](_0x175075['attributeKey']));if(0x0==_0x468aa8['length'])return _0xa5d1b4;for(const _0x39a4cc of _0x468aa8){const _0x1f5459=_0x2283a9['_findSuggestions'](_0x39a4cc['range'],'attribute')['filter'](_0x99d7e1=>!_0x99d7e1['meta']['isNextTo'])['map'](_0x3a30e1=>_0x3a30e1['suggestion'])['filter'](_0x5236fe=>{const _0xbcd152=_0x2283a9['_getAttributeKey'](_0x5236fe);return _0x312dd3['includes'](_0xbcd152);});if(_0x1f5459['length']){for(const _0x139258 of _0x1f5459)_0x5f1eb4['removeMarker'](_0x139258['getFirstMarker']());_0xa5d1b4=!0x0;}}return _0xa5d1b4;}['assureChains'](){const _0x49154e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdcc592=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1ea650;const _0x49212b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x114a42=>{if(_0x114a42['data']['oldRange']||!_0x114a42['data']['newRange'])return null;if(!_0x114a42['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x53b53b}=_0x49154e['_splitMarkerName'](_0x114a42['name']);if(!_0x49154e['hasSuggestion'](_0x53b53b))return null;const _0x507ae6=_0x49154e['getSuggestion'](_0x53b53b);return _0xdcc592['includes'](_0x507ae6['data']['key']);})['map'](_0x39a759=>{const {id:_0x328b95}=_0x49154e['_splitMarkerName'](_0x39a759['name']),_0x295165=_0x49154e['getSuggestion'](_0x328b95);return _0x1ea650=_0x295165['attributes']['groupId'],_0x295165['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x49212b['size'])return;const _0x371524=_0x49154e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c21f3=>'attribute'==_0x3c21f3['type']&&_0x3c21f3['data']&&_0xdcc592['includes'](_0x3c21f3['data']['key'])&&_0x3c21f3['attributes']['groupId']!=_0x1ea650)['map'](_0x499008=>({'listItem':_0x499008['getFirstRange']()['start']['nodeAfter'],'groupId':_0x499008['attributes']['groupId']})),_0x452219=new Set();for(const {groupId:_0x805a7e,listItem:_0x402568}of _0x371524)_0x49212b['has'](_0x402568)&&_0x452219['add'](_0x805a7e);for(const _0x5c92ed of _0x49154e['getSuggestions']())_0x452219['has'](_0x5c92ed['attributes']['groupId'])&&_0x5c92ed['setAttribute']('groupId',_0x1ea650);}['_supportLegacySuggestions'](){const _0x82c696=this['editor'],_0x728bc1=_0x82c696['locale'],_0x502844=_0x82c696['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x502844['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x53fbb2,_0x1a31e0){const _0x225f3b=[];for(let _0x4fc3dc of _0x53fbb2)_0x4fc3dc['start']['nodeAfter']===_0x4fc3dc['end']['parent']&&(_0x4fc3dc=_0x82c696['model']['createRange'](_0x82c696['model']['createPositionAt'](_0x4fc3dc['start']['nodeAfter'],0x0))),_0x225f3b['push'](_0x4fc3dc);_0x82c696['model']['change'](_0x48c535=>{const _0x54506c=_0x82c696['model']['document']['selection'],_0xd66239=Array['from'](_0x54506c['getRanges']())['map'](_0x1c53da=>_0x33a55c['fromRange'](_0x1c53da));_0x48c535['setSelection'](_0x225f3b),_0x82c696['commands']['get'](_0x1a31e0['commandName'])['refresh'](),_0x1a31e0['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x82c696['execute'](_0x1a31e0['commandName'],..._0x1a31e0['commandParams']),_0x48c535['setSelection'](_0xd66239);for(const _0x15c6f7 of _0xd66239)_0x15c6f7['detach']();});}),_0x502844['descriptionFactory']['registerElementLabel'](function(_0x5548a5){const _0x532fc5=!_0x82c696['model']['schema']['isObject'](_0x5548a5),_0x43a47e=_0x5548a5['previousSibling'],_0x1409a2=_0x5548a5['nextSibling'],_0x1f4337=_0x5548a5['getAttribute']('listItemId'),_0x1e03dd=!_0x43a47e||_0x43a47e['getAttribute']('listItemId')!==_0x1f4337,_0x2ae20a=!_0x1409a2||_0x1409a2['getAttribute']('listItemId')!==_0x1f4337;return _0x532fc5&&Boolean(_0x1f4337)&&_0x1e03dd&&_0x2ae20a;},_0x500fe7=>c(_0x728bc1,'ELEMENT_LIST_ITEM',_0x500fe7));}['_registerLegacyDescription'](){const _0x45ddd3=this['editor'],_0x17dc13=_0x45ddd3['locale'];function _0x37c571(_0x2f64aa){const _0x578109=_0x45ddd3['commands']['get']('bulletedList')['value'],_0x4aa407=_0x45ddd3['commands']['get']('numberedList')['value'];return'numberedList'===_0x2f64aa?_0x578109:_0x4aa407;}_0x45ddd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x53d2b5){if('formatBlock'!=_0x53d2b5['type'])return;const {data:_0x14d30a}=_0x53d2b5;if(!_0x14d30a)return;let _0x57856e,_0x3136f3,_0x288630,_0x1b2fd8;switch(_0x14d30a['commandName']){case'bulletedList':_0x288630=_0x14d30a['commandParams'][0x0]['forceValue'],_0x1b2fd8=_0x37c571(_0x14d30a['commandName']),_0x57856e=_0x288630?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1b2fd8&&_0x45ddd3['config']['get']('list.multiBlock')||(_0x57856e='*Change\x20to:*\x20%0'),_0x3136f3={'type':'format','content':c(_0x17dc13,_0x57856e,c(_0x17dc13,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x288630=_0x14d30a['commandParams'][0x0]['forceValue'],_0x1b2fd8=_0x37c571(_0x14d30a['commandName']),_0x57856e=_0x288630?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1b2fd8&&_0x45ddd3['config']['get']('list.multiBlock')||(_0x57856e='*Change\x20to:*\x20%0'),_0x3136f3={'type':'format','content':c(_0x17dc13,_0x57856e,c(_0x17dc13,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x57856e='*Indent:*\x20%0',_0x3136f3={'type':'format','content':c(_0x17dc13,_0x57856e,c(_0x17dc13,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x57856e=function(_0x4e643b){const _0x33045a=_0x4e643b['getFirstRange']();let _0x2b24af=_0x33045a['start']['nodeAfter'];for(;_0x2b24af&&_0x33045a['containsItem'](_0x2b24af);){if(_0x2b24af['getAttribute']('listIndent')>0x0)return!0x1;_0x2b24af=_0x2b24af['nextSibling'];}return!0x0;}(_0x53d2b5)?c(_0x17dc13,'*Format:*\x20remove\x20from\x20%0',c(_0x17dc13,function(_0x37e743){return'ELEMENT_'+_0x37e743['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x53d2b5))):c(_0x17dc13,'*Outdent:*\x20%0',c(_0x17dc13,'ELEMENT_LIST_ITEM')),_0x3136f3={'type':'format','content':_0x57856e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x14d30a['multipleBlocks']&&(_0x57856e='*Merge:*\x20%0',_0x3136f3={'type':'deletion','content':c(_0x17dc13,_0x57856e,c(_0x17dc13,'ELEMENT_LIST_ITEM'))});}return _0x3136f3;});}}function Te(_0x34beb7){let _0x18303c=_0x34beb7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x18303c;){const _0x5bac06=_0x18303c['getAttribute']('listItemId');if(!_0x5bac06)return!0x1;if(_0x5bac06==_0x34beb7['data']['newValue'])return'newValue';if(_0x5bac06==_0x34beb7['data']['oldValue'])return'oldValue';_0x18303c=_0x18303c['previousSibling'];}return!0x1;}class Se extends _0x346e12{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xf552e6=this['editor']['config']['get']('list.properties'),_0x529d02=this['editor']['plugins']['get']('TrackChangesEditing');_0xf552e6['styles']&&(_0x529d02['enableDefaultAttributesIntegration']('listStyle'),_0x529d02['registerBlockAttribute']('listStyle')),_0xf552e6['reversed']&&(_0x529d02['enableDefaultAttributesIntegration']('listReversed'),_0x529d02['registerBlockAttribute']('listReversed')),_0xf552e6['startIndex']&&(_0x529d02['enableDefaultAttributesIntegration']('listStart'),_0x529d02['registerBlockAttribute']('listStart'));const _0xb42b12={'type':'format','content':''};_0x529d02['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3c2451=this['editor']['locale'];_0x529d02['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3c2451,'FORMAT_LIST_REVERSED')),_0x529d02['descriptionFactory']['registerDescriptionCallback'](_0x14a7c4=>{const {data:_0x59d0da}=_0x14a7c4;if(_0x59d0da&&'listReversed'==_0x59d0da['key'])return null==_0x59d0da['newValue']||0x0==_0x59d0da['newValue']&&null==_0x59d0da['oldValue']?_0xb42b12:void 0x0;}),_0x529d02['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3c2451,'FORMAT_LIST_START')),_0x529d02['descriptionFactory']['registerDescriptionCallback'](_0x58729a=>{const {data:_0xf97bc4}=_0x58729a;if(_0xf97bc4&&'listStart'==_0xf97bc4['key'])return null==_0xf97bc4['newValue']||0x1==_0xf97bc4['newValue']&&null==_0xf97bc4['oldValue']?_0xb42b12:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x542378=>{if(_0x542378['batch']['isUndo'])return!0x1;let _0x186da5=!0x1;const _0x44671a=_0x529d02['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c6dbc=>{const _0x1681b7=_0x529d02['_getAttributeKey'](_0x3c6dbc);return'listStart'==_0x1681b7||'listReversed'==_0x1681b7;});for(const _0x23bff9 of _0x44671a){const _0x46953d=_0x23bff9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x46953d||'customNumbered'==_0x46953d)continue;_0x529d02['_findSuggestions'](_0x23bff9['getFirstRange'](),'attribute')['find'](_0x8cf6b8=>'listType'==_0x529d02['_getAttributeKey'](_0x8cf6b8['suggestion']))||(_0x542378['removeMarker'](_0x23bff9['getFirstMarker']()),_0x186da5=!0x0);}return _0x186da5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4e657e){const _0x3171c0=this['editor']['locale'],{data:_0x259488}=_0x4e657e,_0x4116b2={'type':'format','content':''};if(!_0x259488||'listStyle'!=_0x259488['key'])return;if(!_0x259488['oldValue'])return'default'==_0x259488['newValue']?_0x4116b2:{'type':'format','content':''+c(_0x3171c0,'*Set\x20format:*\x20%0',c(_0x3171c0,this['_getTranslationKeyForListStyle'](_0x259488['newValue'])))};if(!_0x259488['newValue']){if('default'==_0x259488['oldValue'])return _0x4116b2;let _0x40639f=_0x4e657e['head'];for(;_0x40639f;){if(_0x40639f['data']&&'listType'==_0x40639f['data']['key']&&_0x40639f['data']['newValue'])return _0x4116b2;_0x40639f=_0x40639f['next'];}return{'type':'format','content':''+c(_0x3171c0,'*Remove\x20format:*\x20%0',c(_0x3171c0,this['_getTranslationKeyForListStyle'](_0x259488['oldValue'])))};}if('default'!=_0x259488['newValue'])return{'type':'format','content':''+c(_0x3171c0,'*Set\x20format:*\x20%0',c(_0x3171c0,this['_getTranslationKeyForListStyle'](_0x259488['newValue'])))};let _0x33ae91=_0x4e657e['head'];for(;_0x33ae91;){if(_0x33ae91['data']&&'listType'==_0x33ae91['data']['key']&&_0x33ae91['data']['newValue']&&_0x33ae91['data']['oldValue'])return _0x4116b2;_0x33ae91=_0x33ae91['next'];}return{'type':'format','content':c(_0x3171c0,'*Set\x20format:*\x20%0',c(_0x3171c0,'ELEMENT_'+_0x4e657e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1a2cd4=this['editor'],_0x17158=_0x1a2cd4['locale'];_0x1a2cd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48f44b=>{if('formatBlock'!=_0x48f44b['type'])return;const {data:_0x46f1c0}=_0x48f44b;if(!_0x46f1c0)return;let _0xd64884,_0x1a66fa;switch(_0x46f1c0['commandName']){case'listStyle':_0xd64884='*Change\x20to:*\x20%0',_0x1a66fa={'type':'format','content':c(_0x17158,_0xd64884,c(_0x17158,this['_getTranslationKeyForListStyle'](_0x46f1c0['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd64884=_0x46f1c0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1a66fa={'type':'format','content':c(_0x17158,_0xd64884)};break;case'listStart':_0xd64884='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1a66fa={'type':'format','content':c(_0x17158,_0xd64884,_0x46f1c0['commandParams'][0x0]['startIndex'])};}return _0x1a66fa;});}['_getTranslationKeyForListStyle'](_0x2a3412){return'ELEMENT_'+function(_0x3aec46){if(_e['includes'](_0x3aec46))return'bulleted';if(Re['includes'](_0x3aec46))return'numbered';return null;}(_0x2a3412)['toUpperCase']()+'_LIST_'+_0x2a3412['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x346e12{static get['requires'](){return[_0x561c61];}['init'](){const _0x4c2674=this['editor'],_0x17d521=_0x4c2674['plugins']['get']('TrackChangesEditing'),_0x2bda3a=_0x4c2674['commands']['get']('enter');_0x17d521['enableCommand']('enter',()=>{_0x4c2674['model']['change'](_0x47805f=>{const _0x48c91e=_0x4c2674['model']['document']['selection'],_0xa60fd2=_0x48c91e['getFirstPosition'](),_0x111f81=_0x33a55c['fromRange'](_0x48c91e['getFirstRange']());if(_0x2bda3a['enterBlock'](_0x47805f)){const _0x487922=_0x4c2674['model']['createPositionAt'](_0xa60fd2['parent']['nextSibling'],0x0),_0x2da5f5=_0x47805f['createRange'](_0xa60fd2,_0x487922);_0x17d521['markInsertion'](_0x2da5f5);}else _0x47805f['setSelection'](_0x47805f['createRange'](_0x111f81['end']));_0x111f81['detach'](),_0x2bda3a['fire']('afterExecute',{'writer':_0x47805f});});}),_0x4c2674['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4c2674,'split'),{'priority':'high'}),_0x4c2674['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2f7ac2,_0x230ba7,_0x41a19f)=>{const _0x126d1d=_0x41a19f['mapper']['markerNameToElements'](_0x230ba7['markerName']);if(_0x126d1d){for(const _0xc3823c of _0x126d1d)_0xc3823c['hasClass']('ck-suggestion-marker-split')&&(_0x41a19f['mapper']['unbindElementFromMarkerName'](_0xc3823c,_0x230ba7['markerName']),_0x41a19f['writer']['remove'](_0xc3823c));}},{'priority':'high'}),_0x4c2674['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x25d704,_0x5422bf,_0x3b445e)=>{_0x3b445e['options']['showSuggestionHighlights']&&De(_0x4c2674,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x25d704,_0x5422bf,_0x3b445e);},{'priority':'high'});}}class Y extends _0x346e12{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x31b7cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x31b7cf['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x31b7cf['enableCommand']('findNext'),_0x31b7cf['enableCommand']('findPrevious'),_0x31b7cf['enableCommand']('replace'),_0x31b7cf['enableCommand']('replaceAll');}['handleFindCommand'](_0x4db189,_0x38da74,_0x54dddf={}){const _0x464ace=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4db189(_0x2ff262=>{let _0x4ab9ae=('string'==typeof _0x38da74?_0x464ace['findByTextCallback'](_0x38da74,_0x54dddf):_0x38da74)(_0x2ff262);Array['isArray'](_0x4ab9ae)&&(_0x4ab9ae={'results':_0x4ab9ae,'searchText':'string'==typeof _0x38da74?_0x38da74:''});const _0x299a34=_0x4ab9ae['results']['filter'](_0x4f7054=>!0x1===this['_isInDeletionRange'](_0x4f7054,_0x2ff262['item']));return{..._0x4ab9ae,'results':_0x299a34};},_0x54dddf);}['_isInDeletionRange'](_0x34648c,_0x58c285){const _0x25dc7f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x58c285,_0x34648c['start']),this['editor']['model']['createPositionAt'](_0x58c285,_0x34648c['end']));for(const _0x4f93df of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x25dc7f['getIntersection'](_0x4f93df['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x346e12{['afterInit'](){const _0x475dca=this['editor']['locale'],_0xc5744=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x121566,commandName:_0x3bf266}of to)this['editor']['plugins']['has'](_0x121566)&&(_0xc5744['enableDefaultAttributesIntegration'](_0x3bf266),_0xc5744['registerInlineAttribute'](_0x3bf266));_0xc5744['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x475dca,'FORMAT_FONT_SIZE')),_0xc5744['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x475dca,'FORMAT_FONT_FAMILY')),_0xc5744['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x475dca,'FORMAT_FONT_COLOR')),_0xc5744['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x475dca,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x478d72=this['editor'],_0x84a624=_0x478d72['locale'];_0x478d72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ae8d9=>{const _0x590510=_0x84a624['t'];if('formatInline'!=_0x3ae8d9['type'])return;const {data:_0x3e7be4}=_0x3ae8d9;if(null!=_0x3e7be4){if('fontSize'==_0x3e7be4['commandName']){const _0x3174a3=_0x3e7be4['commandParams'][0x0]['value'];if(_0x3174a3){const _0x376c82=_0x590510(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x31a5d3=>_0x31a5d3['model']==_0x3174a3)['title'])['toLowerCase']();return{'type':'format','content':c(_0x84a624,'*Set\x20font\x20size:*\x20%0',_0x376c82)};}return{'type':'format','content':c(_0x84a624,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3e7be4['commandName']){const _0x42bbb4=_0x3e7be4['commandParams'][0x0]['value'];return _0x42bbb4?{'type':'format','content':c(_0x84a624,'*Set\x20font\x20family:*\x20%0',_0x42bbb4)}:{'type':'format','content':c(_0x84a624,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3e7be4['commandName']){const _0x14d297=_0x3e7be4['commandParams'][0x0]['value'];if(_0x14d297){const _0x31044f=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4b0b4b=>_0x4b0b4b['model']==_0x14d297);let _0x4f0920=_0x14d297,_0xcef1e7='';return _0x31044f&&(_0x4f0920=_0x31044f['label'],_0xcef1e7=_0x590510(_0x4f0920)['toLowerCase']()),{'type':'format','content':c(_0x84a624,'*Set\x20font\x20color:*\x20%0',_0xcef1e7)['trim'](),'color':{'value':_0x14d297,'title':_0xcef1e7||_0x4f0920}};}return{'type':'format','content':c(_0x84a624,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3e7be4['commandName']){const _0x66c000=_0x3e7be4['commandParams'][0x0]['value'];if(_0x66c000){const _0x552836=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2db6d9=>_0x2db6d9['model']==_0x66c000);let _0x372026=_0x66c000,_0x33c10e='';return _0x552836&&(_0x372026=_0x552836['label'],_0x33c10e=_0x590510(_0x372026)['toLowerCase']()),{'type':'format','content':c(_0x84a624,'*Set\x20font\x20background\x20color:*\x20%0',_0x33c10e)['trim'](),'color':{'value':_0x66c000,'title':_0x33c10e||_0x372026}};}return{'type':'format','content':c(_0x84a624,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x346e12{['afterInit'](){const _0x5a46ae=this['editor'],_0x510d78=_0x5a46ae['plugins']['get']('TrackChangesEditing'),_0x3e88cd=_0x5a46ae['commands']['get']('copyFormat'),_0xfe7271=_0x5a46ae['commands']['get']('pasteFormat');_0x3e88cd&&_0xfe7271&&(_0x510d78['enableDefaultAttributesIntegration']('pasteFormat'),_0x510d78['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xf0f3f=this['editor'],_0x29dc4a=_0xf0f3f['locale'];_0xf0f3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b4ad6=>{if('formatBlock'!=_0x3b4ad6['type']&&'formatInline'!=_0x3b4ad6['type'])return;const {data:_0x5bc0e1}=_0x3b4ad6;if(_0x5bc0e1&&'pasteFormat'===_0x5bc0e1['commandName']){const _0xb9cea8=[],_0x52e744=_0x5bc0e1['commandParams'][0x0];for(const [_0xb02ce0,_0x1aa488]of Object['entries'](_0x52e744))_0xb9cea8['push'](ro(_0xf0f3f,_0xb02ce0,_0x1aa488));return _0xb9cea8['length']?{'type':'format','content':c(_0x29dc4a,'*Set\x20format\x20to:*\x20%0',_0xb9cea8['join'](',\x20'))}:{'type':'format','content':c(_0x29dc4a,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x59779c,_0x1e5def,_0x3e3a7a){const _0x122896=_0x59779c['locale']['t'],_0x26e90e=_0x1e5def['split'](/(?=[A-Z])/)['join']('\x20'),_0x38ac5b=_0x122896(_0x26e90e['charAt'](0x0)['toUpperCase']()+_0x26e90e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3e3a7a)return _0x38ac5b;if('fontColor'===_0x1e5def||'fontBackgroundColor'===_0x1e5def){const _0x17286a=Zt(_0x59779c['config']['get']('fontColor.colors'))['find'](_0x24a21e=>_0x24a21e['model']==_0x3e3a7a);return _0x38ac5b+'\x20('+(_0x17286a?_0x122896(_0x17286a['label'])['toLowerCase']():_0x3e3a7a)+')';}if('fontSize'===_0x1e5def&&isNaN(parseFloat(_0x3e3a7a))){const _0x11f04f=_0x59779c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59779c['config']['get']('fontSize.options'))['find'](_0x2ef10c=>_0x2ef10c['model']==_0x3e3a7a);return _0x38ac5b+'\x20('+(_0x11f04f?_0x122896(_0x11f04f['title'])['toLowerCase']():_0x3e3a7a)+')';}return _0x38ac5b+'\x20('+_0x3e3a7a+')';}class et extends _0x346e12{['_headingOptions'];['afterInit'](){const _0x441e73=this['editor'];if(!_0x441e73['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x441e73['config']['get']('heading.options');const _0xf1603=_0x441e73['locale'],_0x1ae735=_0x441e73['plugins']['get']('TrackChangesEditing');_0x1ae735['enableDefaultAttributesIntegration']('heading');for(const _0xc7d6db of this['_headingOptions'])'paragraph'!=_0xc7d6db['model']&&_0x1ae735['descriptionFactory']['registerElementLabel'](_0xc7d6db['model'],_0x370c09=>{const _0x287fe5=this['_getHeadingLevel'](_0xc7d6db['model']);return null!==_0x287fe5?_0x11e5ac(_0x370c09,_0x287fe5):_0x475da0(_0x370c09,_0xc7d6db['title']);});function _0x11e5ac(_0x8ce22d,_0x44ff1e){return c(_0xf1603,'ELEMENT_HEADING',[_0x8ce22d,_0x44ff1e]);}function _0x475da0(_0x5e5dfd,_0xce03b1){return c(_0xf1603,'ELEMENT_HEADING_CUSTOM',[_0x5e5dfd,_0xce03b1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e938d=this['editor'],_0x319ecd=_0x3e938d['locale'];function _0x125322(_0x2f0d34,_0x14614d){return c(_0x319ecd,'ELEMENT_HEADING_CUSTOM',[_0x2f0d34,_0x14614d]);}_0x3e938d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c1d0c=>{if('formatBlock'!=_0x5c1d0c['type'])return;const {data:_0x4a830f}=_0x5c1d0c;if(_0x4a830f&&'heading'==_0x4a830f['commandName']){const _0x3e98d6=_0x4a830f['commandParams'][0x0]['value'],_0x37abfc=this['_getHeadingLevel'](_0x3e98d6);if(null!==_0x37abfc)return{'type':'format','content':c(_0x319ecd,'*Change\x20to:*\x20%0',(_0x4bf65a=0x1,_0x4137db=_0x37abfc,c(_0x319ecd,'ELEMENT_HEADING',[_0x4bf65a,_0x4137db])))};const _0x45706a=this['_headingOptions']['find'](_0x2dccdd=>_0x2dccdd['model']===_0x3e98d6)['title'];return{'type':'format','content':c(_0x319ecd,'*Change\x20to:*\x20%0',_0x125322(0x1,_0x45706a))};}var _0x4bf65a,_0x4137db;});}['_getHeadingLevel'](_0x5314c0){const _0x21dddb=_0x5314c0['match'](/^heading(\d+)/);if(_0x21dddb)return _0x21dddb[0x1];const _0x57281b=this['_headingOptions']?.['find'](_0x169404=>_0x169404['model']==_0x5314c0);if(_0x57281b&&_0x57281b['view']){const _0x3e78a2=_0x57281b['view'],_0xe1d356=(_0x3e78a2['name']??_0x3e78a2)['match'](/^h(\d+)/);if(_0xe1d356)return _0xe1d356[0x1];}return null;}}class nt extends _0x346e12{['afterInit'](){const _0x1bac52=this['editor'];if(!_0x1bac52['plugins']['has']('HighlightEditing'))return;const _0xc72c5=_0x1bac52['plugins']['get']('TrackChangesEditing'),_0x21b53f=_0x1bac52['locale'];_0xc72c5['enableDefaultAttributesIntegration']('highlight'),_0xc72c5['registerInlineAttribute']('highlight'),_0xc72c5['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x21b53f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ceffa=this['editor'],_0x30f7f4=_0x5ceffa['locale'];_0x5ceffa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x137b2b=>{if('formatInline'!=_0x137b2b['type'])return;const {data:_0x44fa44}=_0x137b2b;if(_0x44fa44&&'highlight'==_0x44fa44['commandName']){const _0xc3291f=_0x30f7f4['t'],_0x1d69f0=_0x44fa44['commandParams'][0x0]['value'];if(_0x1d69f0){const _0x34f577=_0x5ceffa['config']['get']('highlight.options')['find'](_0x45d3cf=>_0x45d3cf['model']==_0x1d69f0),_0x3c3621=_0xc3291f(_0x34f577['title'])['toLowerCase']();return{'type':'format','content':c(_0x30f7f4,'*Set\x20highlight:*\x20%0',_0x3c3621),'color':{'value':_0x34f577['color'],'title':_0x34f577['title']}};}return{'type':'format','content':c(_0x30f7f4,'*Remove\x20highlight*',c(_0x30f7f4,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x346e12{['afterInit'](){const _0x284658=this['editor'];if(!_0x284658['plugins']['has']('HorizontalLineEditing'))return;_0x284658['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x524766=_0x284658['plugins']['get']('TrackChangesEditing'),_0x399e06=_0x284658['locale'];_0x524766['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4bbc26=>c(_0x399e06,'ELEMENT_HORIZONTAL_LINE',_0x4bbc26)),_0x284658['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x25900f,{writer:_0x11e8e1,options:_0x1e77a9})=>{if(!_0x1e77a9['showSuggestionHighlights'])return null;const _0x4bf856=_0x11e8e1['createContainerElement']('div'),_0x2fb88a=_0x11e8e1['createEmptyElement']('hr');return _0x11e8e1['addClass']('ck-horizontal-line',_0x4bf856),_0x11e8e1['insert'](_0x11e8e1['createPositionAt'](_0x4bf856,0x0),_0x2fb88a),_0x4bf856;},'converterPriority':'high'});}}class st extends _0x346e12{['afterInit'](){const _0x4e22eb=this['editor'];if(!_0x4e22eb['plugins']['has']('HtmlEmbed'))return;const _0x288cdf=_0x4e22eb['plugins']['get']('TrackChangesEditing'),_0x381f30=_0x4e22eb['locale'];_0x288cdf['descriptionFactory']['registerElementLabel']('rawHtml',_0x41b8f7=>c(_0x381f30,'ELEMENT_HTML_EMBED',_0x41b8f7)),_0x288cdf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x288cdf['registerBlockAttribute']('value'),_0x288cdf['descriptionFactory']['registerDescriptionCallback'](_0x7d3b66=>{if('attribute'!=_0x7d3b66['type'])return;const {data:_0x282e66}=_0x7d3b66;if(_0x282e66&&'value'==_0x282e66['key']&&_0x7d3b66['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56d30e=c(_0x381f30,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x381f30,'*Change\x20%0\x20content*',_0x56d30e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a8d59=this['editor'],_0x44ba11=_0x1a8d59['locale'];_0x1a8d59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3764a9=>{if('formatBlock'!=_0x3764a9['type'])return;const {data:_0x48bf3f}=_0x3764a9;if(_0x48bf3f&&'htmlEmbed'==_0x48bf3f['commandName']){const _0x1d0b59=c(_0x44ba11,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x44ba11,'*Change\x20%0\x20content*',_0x1d0b59)};}});}}class ot extends _0x346e12{['afterInit'](){const _0x2be017=this['editor'];if(!_0x2be017['plugins']['has']('ImageEditing'))return;const _0x3bebb6=_0x2be017['plugins']['get']('TrackChangesEditing'),_0x275cf2=_0x2be017['plugins']['get']('ImageUtils'),_0x472baa=_0x2be017['locale'];_0x3bebb6['enableCommand']('insertImage'),_0x3bebb6['descriptionFactory']['registerElementLabel']('imageBlock',_0x46dfb8=>c(_0x472baa,'ELEMENT_IMAGE',_0x46dfb8)),_0x3bebb6['descriptionFactory']['registerElementLabel']('imageInline',_0x50e89f=>c(_0x472baa,'ELEMENT_INLINE_IMAGE',_0x50e89f)),_0x3bebb6['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x472baa,'ELEMENT_CAPTION')),_0x2be017['plugins']['has']('ImageUploadEditing')&&_0x3bebb6['enableCommand']('uploadImage'),_0x2be017['plugins']['has']('ImageBlockEditing')&&_0x2be017['plugins']['has']('ImageInlineEditing')&&(_0x3bebb6['enableCommand']('imageTypeInline',(_0x383057,_0x933fba)=>{const _0x35eaaf=_0x275cf2['getClosestSelectedImageElement'](_0x2be017['model']['document']['selection']);_0x2be017['model']['change'](()=>{_0x3bebb6['markBlockFormat'](_0x35eaaf,{'commandName':'imageTypeInline','commandParams':[_0x933fba]},[],'convertBlockImageToInline');});}),_0x3bebb6['enableCommand']('imageTypeBlock',(_0x217f0e,_0xc285e3)=>{_0x2be017['model']['change'](_0x3dbef4=>{let _0x20dc9b=_0x275cf2['getClosestSelectedImageElement'](_0x2be017['model']['document']['selection']),_0x44feae=_0x3dbef4['createRangeOn'](_0x20dc9b);const _0x39da5e=_0x1322ed['fromPosition'](_0x44feae['start'],'toPrevious'),_0x12a401=_0x1322ed['fromPosition'](_0x44feae['end'],'toNext');_0x3bebb6['forceDefaultExecution'](()=>_0x217f0e(_0xc285e3)),_0x20dc9b=_0x275cf2['getClosestSelectedImageElement'](_0x2be017['model']['document']['selection']),_0x44feae=_0x3dbef4['createRangeOn'](_0x20dc9b);const _0x266ac2=_0x3dbef4['createRange'](_0x39da5e,_0x12a401);_0x39da5e['detach'](),_0x12a401['detach'](),_0x3bebb6['markBlockFormat'](_0x20dc9b,{'commandName':'imageTypeInline','commandParams':[_0xc285e3]},[],'convertInlineImageToBlock'),_0x266ac2['start']['isBefore'](_0x44feae['start'])&&_0x3bebb6['markInsertion'](_0x3dbef4['createRange'](_0x266ac2['start'],_0x44feae['start']),'convertInlineImageToBlock'),_0x44feae['end']['isBefore'](_0x266ac2['end'])&&_0x3bebb6['markInsertion'](_0x3dbef4['createRange'](_0x44feae['end'],_0x266ac2['end']),'convertInlineImageToBlock');});}),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3bebb6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x32d06f])=>{const _0x16123e=_0x3bebb6['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x335c56=_0x32d06f['start'],_0x179462=_0x32d06f['end'];const _0x401bb3=_0x2be017['model']['schema']['getNearestSelectionRange'](_0x335c56,'backward'),_0x284858=_0x2be017['model']['schema']['getNearestSelectionRange'](_0x179462,'forward');_0x401bb3['isCollapsed']&&(_0x335c56=_0x401bb3['start']),_0x284858['isCollapsed']&&(_0x179462=_0x284858['end']),_0x16123e([_0x2be017['model']['createRange'](_0x335c56,_0x179462)]);}),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x517462),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x517462)),_0x2be017['plugins']['has']('ImageCaptionEditing')&&(_0x3bebb6['enableCommand']('toggleImageCaption',(_0x488c29,_0xb67240)=>{const _0x115876=_0x2be017['plugins']['get']('ImageCaptionUtils');let _0x5822bb=_0x275cf2['getClosestSelectedImageElement'](_0x2be017['model']['document']['selection']),_0x577d1c=_0x115876['getCaptionFromImageModelElement'](_0x5822bb);_0x2be017['model']['change'](()=>{if(_0x577d1c)return void _0x3bebb6['markDeletion'](_0x2be017['model']['createRangeOn'](_0x577d1c));const _0x145e68=_0x275cf2['isBlockImage'](_0x5822bb);_0x488c29(_0xb67240),_0x5822bb=_0x275cf2['getClosestSelectedImageElement'](_0x2be017['model']['document']['selection']),_0x577d1c=_0x115876['getCaptionFromImageModelElement'](_0x5822bb),_0x3bebb6['markInsertion'](_0x2be017['model']['createRangeOn'](_0x577d1c),_0x145e68?null:'imageCaption');});}),_0x3bebb6['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x517462));const _0x40ec63=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f19d1(_0x41d289,_0x2c8f1c){const _0x544c5e=_0x40ec63['findIndex'](({type:_0x89e00e,subType:_0x5ecb7d})=>_0x41d289['type']==_0x89e00e&&_0x41d289['subType']==_0x5ecb7d),_0x4ce0ca=_0x40ec63['findIndex'](({type:_0x19c630,subType:_0x349244})=>_0x2c8f1c['type']==_0x19c630&&_0x2c8f1c['subType']==_0x349244);if(_0x544c5e<0x0||_0x4ce0ca<0x0)return!0x1;const _0x297f9d=_0x41d289['getFirstRange'](),_0x29380f=_0x2c8f1c['getFirstRange']();if((0x0==_0x544c5e||0x1==_0x544c5e)&&0x2==_0x4ce0ca&&_0x297f9d['isIntersecting'](_0x29380f))return!0x0;if(0x2==_0x544c5e&&0x3==_0x4ce0ca){const _0x46f707=_0x3bebb6['_findSuggestions'](_0x297f9d,'insertion')['filter'](({suggestion:_0x1471b6,meta:_0x3d0a31})=>_0x3d0a31['isOwn']&&'convertInlineImageToBlock'==_0x1471b6['subType']);if(_0x46f707['length']>0x1&&_0x29380f['end']['isEqual'](_0x297f9d['start']))return!0x0;if(0x1==_0x46f707['length']&&(_0x297f9d['start']['isEqual'](_0x29380f['end'])||_0x297f9d['end']['isEqual'](_0x29380f['start'])))return!0x0;}if(0x3==_0x544c5e&&0x3==_0x4ce0ca&&_0x297f9d['start']['isBefore'](_0x29380f['start'])){const _0x35eb1f=_0x297f9d['end']['nodeAfter'],_0x4de78c=_0x29380f['start']['nodeBefore'];return _0x275cf2['isBlockImage'](_0x35eb1f)&&_0x35eb1f===_0x4de78c;}return!0x1;}function _0x517462(_0x57506e,_0x160746){return _0x4f19d1(_0x57506e,_0x160746)?[_0x57506e,_0x160746]:_0x4f19d1(_0x160746,_0x57506e)?[_0x160746,_0x57506e]:null;}_0x2be017['plugins']['has']('ImageResize')&&(_0x3bebb6['enableDefaultAttributesIntegration']('resizeImage'),_0x3bebb6['registerBlockAttribute']('resizedWidth'),_0x3bebb6['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x472baa,'FORMAT_IMAGE_SIZE'))),_0x2be017['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3bebb6['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3bebb6['registerBlockAttribute']('alt')),_0x2be017['plugins']['has']('PictureEditing')&&(_0x3bebb6['registerBlockAttribute']('sources'),_0x3bebb6['descriptionFactory']['registerDescriptionCallback'](_0xa2c7ac=>{if('attribute'!=_0xa2c7ac['type'])return;const {data:_0x2b6da4}=_0xa2c7ac;return _0x2b6da4&&'sources'==_0x2b6da4['key']?{'type':'format','content':''}:void 0x0;})),_0x2be017['plugins']['has']('ImageSizeAttributes')&&(_0x3bebb6['registerBlockAttribute']('width'),_0x3bebb6['registerBlockAttribute']('height'),_0x3bebb6['descriptionFactory']['registerDescriptionCallback'](_0x17bf84=>{if('attribute'!=_0x17bf84['type'])return;const {data:_0x276c22}=_0x17bf84;return!_0x276c22||'width'!=_0x276c22['key']&&'height'!=_0x276c22['key']?void 0x0:{'type':'format','content':''};})),_0x3bebb6['descriptionFactory']['registerDescriptionCallback'](_0xe711f7=>{if(!!_0x40ec63['find'](({type:_0x995af4,subType:_0x423d97})=>_0xe711f7['type']==_0x995af4&&_0xe711f7['subType']==_0x423d97))return _0xe711f7['previous']?{}:void 0x0;}),_0x3bebb6['descriptionFactory']['registerDescriptionCallback'](_0x41c95b=>{if('insertion'==_0x41c95b['type']||'deletion'==_0x41c95b['type']){const _0x3391f8=_0x41c95b['getContainedElement']();if(_0x3391f8&&_0x3391f8['is']('element','caption'))return{'type':'insertion'==_0x41c95b['type']?'addObject':'removeObject','element':_0x3391f8,'quantity':0x1};}}),_0x3bebb6['descriptionFactory']['registerDescriptionCallback'](_0x297485=>'formatBlock'==_0x297485['type']&&'convertInlineImageToBlock'==_0x297485['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x297485['type']&&'convertBlockImageToInline'==_0x297485['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3bebb6['descriptionFactory']['registerDescriptionCallback'](_0x3b9f38=>{if('attribute'!=_0x3b9f38['type'])return;const {data:_0x320e14}=_0x3b9f38;if(!_0x320e14||'alt'!=_0x320e14['key'])return;const _0x3e4a94=_0x320e14['newValue'];return _0x3e4a94?{'type':'format','content':c(_0x472baa,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3e4a94+'\x22')}:{'type':'format','content':c(_0x472baa,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ea6c1=this['editor'],_0x1195e9=_0x2ea6c1['locale'];_0x2ea6c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22806e=>{if('formatBlock'!=_0x22806e['type']&&'formatInline'!=_0x22806e['type'])return;const {data:_0x308104}=_0x22806e;if(_0x308104){if('imageTextAlternative'==_0x308104['commandName']){const _0x758599=_0x308104['commandParams'][0x0]['newValue'];return _0x758599?{'type':'format','content':c(_0x1195e9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x758599+'\x22')}:{'type':'format','content':c(_0x1195e9,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x308104['commandName']){const _0x1c6016=_0x308104['commandParams'][0x0]['width'];return _0x1c6016?{'type':'format','content':c(_0x1195e9,'*Set\x20image\x20width:*\x20%0',_0x1c6016)}:{'type':'format','content':c(_0x1195e9,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x346e12{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x29e7ef=this['editor']['locale'],_0x16b504=this['editor']['plugins']['get']('TrackChangesEditing');_0x16b504['enableDefaultAttributesIntegration']('replaceImageSource'),_0x16b504['registerBlockAttribute']('src'),_0x16b504['descriptionFactory']['registerDescriptionCallback'](_0x155758=>{if('attribute'!=_0x155758['type'])return;const {data:_0x15c0cf}=_0x155758;return _0x15c0cf&&'src'==_0x15c0cf['key']?_0x15c0cf['newValue']&&_0x15c0cf['oldValue']?{'type':'format','content':c(_0x29e7ef,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4484c7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4484c7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4484c7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4484c7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4484c7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x452942=this['editor'],_0x24905d=_0x452942['locale'];_0x452942['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x80bcb2=>{if('formatBlock'!=_0x80bcb2['type']&&'formatInline'!=_0x80bcb2['type'])return;const {data:_0x2cdc20}=_0x80bcb2;if(!_0x2cdc20||'replaceImageSource'!=_0x2cdc20['commandName'])return;return{'type':'format','content':c(_0x24905d,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x346e12{['afterInit'](){const _0x30ba8b=this['editor'];if(!_0x30ba8b['plugins']['has']('ImageStyleEditing'))return;const _0x30deea=_0x30ba8b['plugins']['get']('TrackChangesEditing'),_0x51b303=_0x30ba8b['plugins']['get']('ImageUtils'),_0x2e7c2f={};_0x30deea['enableCommand']('imageStyle',(_0x1346ef,_0x232663)=>{const _0x339f37=_0x30ba8b['plugins']['get']('Users')['me'],_0x2f846a=_0x30ba8b['commands']['get']('imageStyle');let _0x34baba=_0x51b303['getClosestSelectedImageElement'](_0x30ba8b['model']['document']['selection']),_0x2b6c79=_0x30ba8b['model']['createRangeOn'](_0x34baba),_0x373ba9=_0x2f846a['value'];if(_0x373ba9==_0x232663['value'])return;const _0xfb821b={'commandName':'imageStyle','commandParams':[_0x232663],'formatGroupId':_0xb11af3()};_0x30ba8b['model']['change'](()=>{if(_0x30deea['getSuggestions']()['filter'](_0x977427=>_0x977427['isInContent']&&_0x339f37==_0x977427['author']&&('formatBlock'==_0x977427['type']||'formatInline'==_0x977427['type'])&&('imageStylePreApply'==_0x977427['subType']||'imageStylePostApply'==_0x977427['subType'])&&_0x977427['getFirstRange']()['isEqual'](_0x2b6c79))['forEach'](_0xfbc47d=>_0x30deea['discardSuggestion'](_0xfbc47d['head'])),_0x34baba=_0x51b303['getClosestSelectedImageElement'](_0x30ba8b['model']['document']['selection']),_0x2b6c79=_0x30ba8b['model']['createRangeOn'](_0x34baba),_0x2f846a['refresh'](),_0x30ba8b['commands']['get']('imageTypeInline')['refresh'](),_0x30ba8b['commands']['get']('imageTypeBlock')['refresh'](),_0x373ba9=_0x2f846a['value'],_0x373ba9!=_0x232663['value'])return _0x51b303['isInlineImage'](_0x34baba)&&_0x2f846a['shouldConvertImageType'](_0x232663['value'],_0x34baba)?(_0x1346ef({..._0x232663,'setImageSizes':!0x1}),_0x34baba=_0x51b303['getClosestSelectedImageElement'](_0x30ba8b['model']['document']['selection']),void _0x30deea['markBlockFormat'](_0x34baba,{..._0xfb821b,'commandReversedParams':[{'value':_0x373ba9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x51b303['isBlockImage'](_0x34baba)?_0x30deea['markBlockFormat'](_0x34baba,_0xfb821b,[],'imageStylePostApply'):_0x30deea['markInlineFormat'](_0x2b6c79,_0xfb821b,'imageStylePostApply'));});});for(const _0x5a6c03 of _0x30ba8b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2e7c2f[_0x5a6c03['name']]=_0x5a6c03['title']['toLowerCase']();_0x30deea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x30deea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x30deea['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x30deea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x19a2ff])=>{_0x51b303['setImageNaturalSizeAttributes'](_0x19a2ff['getContainedElement']());}),_0x30deea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x19c401,_0x247f53)=>{_0x30deea['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x19c401,{'commandName':_0x247f53['commandName'],'commandParams':_0x247f53['commandReversedParams']});}),_0x30deea['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x567ced,_0x35a417){if(_0x290e31(_0x567ced,_0x35a417))return[_0x567ced,_0x35a417];if(_0x290e31(_0x35a417,_0x567ced))return[_0x35a417,_0x567ced];return null;});const _0x162ced=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x290e31(_0x185f71,_0x28dbb9){const _0x2685df=_0x162ced['findIndex'](({type:_0xf154cc,subType:_0x270e82})=>_0x185f71['type']==_0xf154cc&&_0x185f71['subType']==_0x270e82),_0x5391e4=_0x162ced['findIndex'](({type:_0x30c7e8,subType:_0x3be9b2})=>_0x28dbb9['type']==_0x30c7e8&&_0x28dbb9['subType']==_0x3be9b2);if(_0x2685df<0x0||_0x5391e4<0x0)return!0x1;const _0x204cd0=_0x185f71['getFirstRange'](),_0x574cdc=_0x28dbb9['getFirstRange']();if((0x0==_0x2685df||0x1==_0x2685df)&&0x2==_0x5391e4&&_0x204cd0['isIntersecting'](_0x574cdc))return!0x0;if(0x2==_0x2685df&&0x3==_0x5391e4){const _0xf94cda=_0x30deea['_findSuggestions'](_0x204cd0,'insertion')['filter'](({suggestion:_0x755699,meta:_0xf93575})=>_0xf93575['isOwn']&&'convertInlineImageToBlock'==_0x755699['subType']);if(_0xf94cda['length']>0x1&&_0x574cdc['end']['isEqual'](_0x204cd0['start']))return!0x0;if(0x1==_0xf94cda['length']&&(_0x204cd0['start']['isEqual'](_0x574cdc['end'])||_0x204cd0['end']['isEqual'](_0x574cdc['start'])))return!0x0;}if(0x3==_0x2685df&&0x3==_0x5391e4&&_0x204cd0['start']['isBefore'](_0x574cdc['start'])){const _0x4fdf22=_0x204cd0['end']['nodeAfter'],_0x376ed9=_0x574cdc['start']['nodeBefore'];return _0x51b303['isBlockImage'](_0x4fdf22)&&_0x4fdf22===_0x376ed9;}return!0x1;}_0x30ba8b['model']['document']['registerPostFixer'](()=>{let _0x1357f8=!0x1;const _0x3059ca=Array['from'](_0x30ba8b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1aaf69,data:_0xebd03b}of _0x3059ca){const {group:_0x296380,type:_0x22ff05,subType:_0x365a01,id:_0x4e3bb5}=_0x30deea['_splitMarkerName'](_0x1aaf69);if('suggestion'==_0x296380&&_0x30deea['hasSuggestion'](_0x4e3bb5)){if('formatBlock'==_0x22ff05&&('imageStylePreApply'==_0x365a01||'imageStylePostApply'==_0x365a01)){const _0x58256f=_0x30deea['getSuggestion'](_0x4e3bb5);if(_0xebd03b['newRange']){const _0x3b6d94=_0x58256f['getFirstRange']()['getContainedElement']();if(_0x51b303['isBlockImage'](_0x3b6d94))continue;_0x30deea['discardSuggestion'](_0x58256f),_0x1357f8=!0x0;}}if('insertion'==_0x22ff05&&'imageCaption'==_0x365a01&&!_0xebd03b['newRange']){const _0xae154b=_0x30deea['getSuggestion'](_0x4e3bb5);_0xae154b['next']&&_0xae154b['next']['isInContent']&&(_0x30deea['discardSuggestion'](_0xae154b['next']),_0x1357f8=!0x0);}}}return _0x1357f8;}),this['_registerLegacyDescription'](_0x2e7c2f);}['_registerLegacyDescription'](_0x1cb5ab){const _0x11f96a=this['editor'],_0x90e4da=_0x11f96a['locale'];_0x11f96a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e0980=>{if('formatBlock'!=_0x2e0980['type']&&'formatInline'!=_0x2e0980['type'])return;const {data:_0x47ba2c}=_0x2e0980;if(!_0x47ba2c||'imageStyle'!=_0x47ba2c['commandName'])return;const _0x3df32a=_0x47ba2c['commandParams'][0x0]['value'];return _0x163bc4('side'===_0x3df32a?c(_0x90e4da,'FORMAT_SIDE_IMAGE'):_0x1cb5ab[_0x3df32a]||_0x3df32a);function _0x163bc4(_0x145373){return{'type':'format','content':c(_0x90e4da,'*Format:*\x20%0',_0x145373)};}});}}class ct extends _0x346e12{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3a221e){super(_0x3a221e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x59213b=this['editor'],_0x2a9201=_0x59213b['commands']['get']('importWord'),_0x584464=_0x59213b['commands']['get']('trackChanges');_0x2a9201&&(_0x2a9201['on']('execute',(_0x1e299f,[,_0x26cda1])=>{this['_trackChangesValueDuringImport']=_0x584464['value'],_0x26cda1['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2a9201,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2a9201,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x584464['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x59213b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x40b23f,_0x3e2417){const {suggestions:_0x34ae56}=_0x3e2417,_0x35edf8=this['editor']['commands']['get']('trackChanges'),_0x24f011=_0x35edf8['value'];this['_trackChangesValueDuringImport']!==_0x24f011&&(_0x35edf8['execute'](),this['_trackChangesExecuted']=!0x0),_0x34ae56&&_0x34ae56['forEach'](({id:_0x1e34fb,type:_0x3ab668,author:_0x3cb09e,created_at:_0xe98f31})=>{const _0x445a1b={'id':_0x1e34fb,'type':_0x3ab668,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3cb09e,'createdAt':_0xe98f31?new Date(_0xe98f31):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x445a1b);});}}class ut extends _0x346e12{['afterInit'](){const _0x371183=this['editor'],_0x523b65=_0x371183['plugins']['get']('TrackChangesEditing');if(_0x371183['plugins']['has']('IndentEditing')&&(_0x523b65['enableCommand']('indent'),_0x523b65['enableCommand']('outdent')),_0x371183['plugins']['has']('IndentBlock')){for(const _0x22d4e3 of['indentBlock','outdentBlock'])_0x523b65['enableDefaultAttributesIntegration'](_0x22d4e3);}const _0x198bb2=_0x371183['locale'];_0x523b65['registerBlockAttribute']('blockIndent'),_0x523b65['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x198bb2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cfc5d=this['editor'],_0x60fa2b=_0x3cfc5d['locale'],_0x1772e1=_0x3cfc5d['plugins']['get']('TrackChangesEditing');_0x1772e1['descriptionFactory']['registerDescriptionCallback'](_0x3ff28d=>{if('formatBlock'!=_0x3ff28d['type'])return;const {data:_0x36d91e}=_0x3ff28d;if(!_0x36d91e)return;if('indentBlock'!=_0x36d91e['commandName']&&'outdentBlock'!=_0x36d91e['commandName'])return;const _0x4a8413=_0x3ff28d['getItems']()[0x0],_0x3da182=_0x1772e1['descriptionFactory']['getItemLabel'](_0x4a8413);return'indentBlock'==_0x36d91e['commandName']?{'type':'format','content':c(_0x60fa2b,'*Indent:*\x20%0',_0x3da182)}:'outdentBlock'==_0x36d91e['commandName']?{'type':'format','content':c(_0x60fa2b,'*Outdent:*\x20%0',_0x3da182)}:void 0x0;});}}class ft extends _0x346e12{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x346e12{['afterInit'](){const _0x114e19=this['editor'];if(!_0x114e19['plugins']['has']('LinkEditing'))return;const _0x9dbd9=_0x114e19['plugins']['get']('TrackChangesEditing'),_0x2e0ba2=_0x114e19['commands']['get']('link');_0x9dbd9['enableDefaultAttributesIntegration']('link'),_0x9dbd9['enableDefaultAttributesIntegration']('unlink'),_0x9dbd9['registerInlineAttribute']('linkHref');for(const _0x3be0b0 of _0x2e0ba2['manualDecorators'])_0x9dbd9['registerInlineAttribute'](_0x3be0b0['id']),_0x9dbd9['descriptionFactory']['registerAttributeLabel'](_0x3be0b0['id'],'link\x20('+_0x3be0b0['label']['toLowerCase']()+')');_0x9dbd9['descriptionFactory']['registerDescriptionCallback'](_0x1c1c52=>{if('attribute'!=_0x1c1c52['type'])return;const {data:_0x10da29}=_0x1c1c52;if(!_0x10da29||'linkHref'!=_0x10da29['key'])return;const _0x23b278=_0x10da29['newValue'],_0xd28ad9=_0x114e19['locale'];return{'type':'format','content':null==_0x23b278?c(_0xd28ad9,'*Remove\x20link*'):c(_0xd28ad9,'*Set\x20link:*\x20%0','\x22'+_0x23b278+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2be8ef=this['editor'],_0x210610=_0x2be8ef['locale'];_0x2be8ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e715f=>{if('formatInline'!=_0x5e715f['type'])return;const {data:_0x3970f0}=_0x5e715f;if(_0x3970f0){if('link'==_0x3970f0['commandName']){const _0x59ae9f=_0x3970f0['commandParams'][0x0];return{'type':'format','content':c(_0x210610,'*Set\x20link:*\x20%0','\x22'+_0x59ae9f+'\x22')};}return'unlink'==_0x3970f0['commandName']?{'type':'format','content':c(_0x210610,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x346e12{['afterInit'](){const _0x48a778=this['editor'],_0x4f45c7=_0x48a778['locale'];if(!_0x48a778['plugins']['has']('LegacyListEditing'))return;const _0x28f108=_0x48a778['plugins']['get']('TrackChangesEditing'),_0x429f83=_0x48a778['plugins']['has']('LegacyTodoListEditing');function _0x359a8f(_0xce37a){return()=>{const _0x3c5766=_0x48a778['model']['document']['selection'],_0x208e59=_0x48a778['commands']['get'](_0xce37a);if(_0x208e59['value'])return void _0x48a778['execute']('paragraph',{});const _0x3f857a=_0xce37a['slice'](0x0,-0x4),_0x44ec00=function(_0x35804a,_0xd1b66a,_0xb8bf7c){let _0x309c4f=Array['from'](_0x35804a)['filter'](_0x5c3d05=>function(_0x565658,_0x3b6e83){return _0x3b6e83['checkChild'](_0x565658['parent'],'listItem')&&!_0x3b6e83['isObject'](_0x565658);}(_0x5c3d05,_0xb8bf7c));_0x309c4f=_0x309c4f['filter'](_0x4c3e92=>!_0x4c3e92['is']('element','listItem')||_0x4c3e92['getAttribute']('listType')!=_0xd1b66a);const _0x18eb86=new Set();for(const _0x45c43e of _0x309c4f)_0x45c43e['is']('element','listItem')?_0x18eb86['add'](Le(_0x45c43e)):_0x18eb86['add'](_0x45c43e);return Array['from'](_0x18eb86);}(_0x3c5766['getSelectedBlocks'](),_0x3f857a,_0x48a778['model']['schema']);_0x48a778['model']['change'](()=>{for(const _0x258616 of _0x44ec00)_0x28f108['markBlockFormat'](_0x258616,{'commandName':_0xce37a,'commandParams':[{'forceValue':!_0x208e59['value']}],'formatGroupId':'blockName'},Ee(_0x258616));});};}function _0x4b5847(_0x10e51c){return()=>{const _0x14c32c=function(_0x2825ac){let _0x9aed04=Array['from'](_0x2825ac);const _0x3f588e=_0x9aed04['findIndex'](_0x3504c5=>'listItem'!=_0x3504c5['name']);return _0x3f588e>-0x1&&(_0x9aed04=_0x9aed04['slice'](0x0,_0x3f588e)),_0x9aed04;}(_0x48a778['model']['document']['selection']['getSelectedBlocks']()),_0x3e2766=_0x48a778['model']['createRange'](_0x48a778['model']['createPositionAt'](_0x14c32c[0x0],'before'),_0x48a778['model']['createPositionAt'](_0x14c32c[_0x14c32c['length']-0x1],'end'));_0x48a778['model']['change'](()=>{_0x28f108['markBlockFormat'](_0x3e2766,{'commandName':_0x10e51c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x36e599){const _0x231df3=new Set();for(const _0x33e397 of _0x36e599){let _0x18c634=_0x33e397['nextSibling'];for(;_0x18c634&&_0x18c634['getAttribute']('listIndent')>_0x33e397['getAttribute']('listIndent');)_0x231df3['add'](_0x18c634),_0x18c634=_0x18c634['nextSibling'];}return Array['from'](_0x231df3);}(_0x14c32c));});};}_0x28f108['enableCommand']('numberedList',_0x359a8f('numberedList')),_0x28f108['enableCommand']('bulletedList',_0x359a8f('bulletedList')),_0x429f83&&_0x28f108['enableCommand']('todoList',_0x359a8f('todoList')),_0x28f108['enableCommand']('indentList',_0x4b5847('indentList')),_0x28f108['enableCommand']('outdentList',_0x4b5847('outdentList')),_0x429f83&&_0x28f108['enableCommand']('checkTodoList',()=>{const _0x4b3a38=_0x48a778['commands']['get']('checkTodoList'),_0x374313=Array['from'](_0x4b3a38['_selectedElements']);_0x374313['filter'](_0xa9ddf6=>_0xa9ddf6['getAttribute']('todoListChecked')!=_0x4b3a38['value']),_0x48a778['model']['change'](()=>{for(const _0x83c397 of _0x374313)_0x28f108['markBlockFormat'](_0x83c397,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4b3a38['value']}]});});}),_0x28f108['descriptionFactory']['registerElementLabel']('listItem',_0x444b46=>c(_0x4f45c7,'ELEMENT_LIST_ITEM',_0x444b46)),_0x28f108['descriptionFactory']['registerDescriptionCallback'](_0x1468d1=>{if('formatBlock'!=_0x1468d1['type']&&'formatInline'!=_0x1468d1['type'])return;const {data:_0x5b5856}=_0x1468d1;if(_0x5b5856){if('numberedList'==_0x5b5856['commandName']||'bulletedList'==_0x5b5856['commandName']||'todoList'==_0x5b5856['commandName'])switch(_0x5b5856['commandName']['replace']('List','')){case'bulleted':return _0xa4c291(c(_0x4f45c7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa4c291(c(_0x4f45c7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa4c291(c(_0x4f45c7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5b5856['commandName'])return{'type':'format','content':c(_0x4f45c7,'*Indent:*\x20%0',c(_0x4f45c7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5b5856['commandName'])return{'type':'format','content':c(_0x4f45c7,'*Outdent:*\x20%0',c(_0x4f45c7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5b5856['commandName'])return _0x5b5856['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4f45c7,'*Check\x20item*')}:{'type':'format','content':c(_0x4f45c7,'*Uncheck\x20item*')};}function _0xa4c291(_0xfd4201){return{'type':'format','content':c(_0x4f45c7,'*Change\x20to:*\x20%0',_0xfd4201)};}});}}function Le(_0x257a50){const _0x233e39=_0x257a50['getAttribute']('listIndent');if(0x0==_0x233e39)return _0x257a50;let _0xd4f967=_0x257a50;for(;_0x257a50['previousSibling']&&_0x257a50['previousSibling']['is']('element','listItem');){const _0x4c19b3=_0x257a50['previousSibling']['getAttribute']('listIndent');if(_0x4c19b3==_0x233e39)_0xd4f967=_0x257a50['previousSibling'];else{if(_0x4c19b3<_0x233e39)break;}_0x257a50=_0x257a50['previousSibling'];}return _0xd4f967;}function Ee(_0x1a2e0f){const _0x3ddb94=[];if(_0x1a2e0f['is']('element','listItem')&&_0x1a2e0f['getAttribute']('listIndent')>0x0){let _0x284b0c=_0x1a2e0f['nextSibling'];for(;_0x284b0c&&'listItem'==_0x284b0c['name']&&_0x284b0c['getAttribute']('listIndent')==_0x1a2e0f['getAttribute']('listIndent');)_0x3ddb94['push'](_0x284b0c),_0x284b0c=_0x284b0c['nextSibling'];}return _0x3ddb94;}class Q extends _0x346e12{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x46689d=this['editor']['config']['get']('list.properties'),_0x597774=this['editor']['plugins']['get']('TrackChangesEditing');_0x46689d['styles']&&_0x597774['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x46689d['reversed']&&_0x597774['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x46689d['startIndex']&&_0x597774['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x597774['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x37b1b9,_0x28af4c={}){const _0x3adb2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1542ff=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3adb2e['markMultiRangeBlockFormat'](_0x1542ff,{'commandName':'listStyle','commandParams':[{'type':_0x28af4c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4e4e79,_0xc1c991={}){const _0x3c3e71=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f546b=this['_getSuggestionBlocks'](_0x48c198=>_0x48c198['is']('element','listItem')&&'numbered'===_0x48c198['getAttribute']('listType'));if(_0x3f546b['length']<0x1)return;const _0xb45ecb=_0x3f546b['map'](_0x54f3fe=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54f3fe,'before'),this['editor']['model']['createPositionAt'](_0x54f3fe,0x0)));this['editor']['model']['change'](()=>{_0x3c3e71['markMultiRangeBlockFormat'](_0xb45ecb,{'commandName':'listReversed','commandParams':[{'reversed':_0xc1c991['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x21c3a6,_0x20f908={}){const _0x481765=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e2cd8=this['_getSuggestionBlocks'](_0x33b166=>_0x33b166['is']('element','listItem')&&'numbered'===_0x33b166['getAttribute']('listType'));if(_0x3e2cd8['length']<0x1)return;const _0x30bf35=_0x3e2cd8['map'](_0x152bfc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x152bfc,'before'),this['editor']['model']['createPositionAt'](_0x152bfc,0x0)));this['editor']['model']['change'](()=>{_0x481765['markMultiRangeBlockFormat'](_0x30bf35,{'commandName':'listStart','commandParams':[{'startIndex':_0x20f908['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x501c36){if('formatBlock'!=_0x501c36['type']&&'formatInline'!=_0x501c36['type'])return;const _0x2d80c6=this['editor']['locale'],{data:_0x211cbb}=_0x501c36;if(!_0x211cbb)return;let _0x26297b,_0x54a02d;switch(_0x211cbb['commandName']){case'listStyle':_0x26297b='*Change\x20to:*\x20%0',_0x54a02d={'type':'format','content':c(_0x2d80c6,_0x26297b,c(_0x2d80c6,this['_getTranslationKeyForListStyle'](_0x211cbb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x26297b=_0x211cbb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x54a02d={'type':'format','content':c(_0x2d80c6,_0x26297b)};break;case'listStart':_0x26297b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54a02d={'type':'format','content':c(_0x2d80c6,_0x26297b,_0x211cbb['commandParams'][0x0]['startIndex'])};}return _0x54a02d;}['_getSuggestionBlocksForListStyle'](){const _0x260b56=this['editor']['plugins']['get']('LegacyListUtils');let _0x5274bf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5274bf[0x0]?.['is']('element','listItem')&&_0x5274bf['unshift'](..._0x260b56['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5274bf[_0x5274bf['length']-0x1]?.['is']('element','listItem')&&_0x5274bf['push'](..._0x260b56['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5274bf=[...new Set(_0x5274bf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5274bf=_0x5274bf['filter'](_0x984dec=>_0x984dec['is']('element','listItem'))),_0x5274bf;}['_getSuggestionBlocks'](_0x4b1145){const _0x96ae06=this['editor']['plugins']['get']('LegacyListUtils');let _0xf9ed89=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4b1145)['map'](_0x1043ea=>{const _0x115b93=this['editor']['model']['createPositionAt'](_0x1043ea,0x0);return[..._0x96ae06['getSiblingNodes'](_0x115b93,'backward'),..._0x96ae06['getSiblingNodes'](_0x115b93,'forward')];})['flat']();return _0xf9ed89=[...new Set(_0xf9ed89)],_0xf9ed89;}['_getTranslationKeyForListStyle'](_0xc124a6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xc124a6)||'default')['toUpperCase']()+'_LIST_'+_0xc124a6['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x346e12{['afterInit'](){const _0x4c22b0=this['editor'];if(!_0x4c22b0['plugins']['has']('MediaEmbedEditing'))return;const _0x1bf841=_0x4c22b0['plugins']['get']('TrackChangesEditing'),_0x36035c=_0x4c22b0['locale'];_0x1bf841['enableCommand']('mediaEmbed'),_0x1bf841['descriptionFactory']['registerElementLabel']('media',_0x2815cf=>c(_0x36035c,'ELEMENT_MEDIA',_0x2815cf)),_0x4c22b0['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x54d07,{writer:_0x35071d,options:_0xe575dd})=>{if(_0xe575dd['showSuggestionHighlights'])return _0x35071d['createEmptyElement']('div');},'converterPriority':'high'}),_0x4c22b0['data']['downcastDispatcher']['on']('attribute:url:media',(_0x193c9e,_0x13dbb6,_0x5673d6)=>{_0x5673d6['options']['showSuggestionHighlights']&&_0x193c9e['stop']();},{'priority':'high'});}}class mt extends _0x346e12{['afterInit'](){const _0x4f52d7=this['editor'];_0x4f52d7['plugins']['has']('MentionEditing')&&_0x4f52d7['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x346e12{['afterInit'](){const _0x12dd29=this['editor'];if(!_0x12dd29['plugins']['has']('MergeFieldsEditing'))return;const _0x4609f7=_0x12dd29['plugins']['get']('TrackChangesEditing'),_0x5ec619=_0x12dd29['locale'];_0x4609f7['enableCommand']('insertMergeField'),_0x4609f7['enableCommand']('insertMergeFieldBlock'),_0x4609f7['enableCommand']('insertMergeFieldImage'),_0x4609f7['descriptionFactory']['registerElementLabel']('mergeField',_0x35f27a=>c(_0x5ec619,'ELEMENT_MERGE_FIELD',_0x35f27a)),_0x4609f7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5c50ec=>c(_0x5ec619,'ELEMENT_MERGE_FIELD',_0x5c50ec)),_0x4609f7['descriptionFactory']['registerDescriptionCallback'](_0x260deb=>{if('insertion'!=_0x260deb['type']&&'deletion'!=_0x260deb['type'])return;const _0xf60895=_0x260deb['getContainedElement']();if(null==_0xf60895)return;const _0x49d95e=_0x12dd29['plugins']['get']('MergeFieldsEditing');let _0x5962b1;switch(_0x49d95e['getMergeFieldType'](_0xf60895)){case null:return;case'image':{const _0x4863d4=_0x49d95e['unwrapAffixes'](_0xf60895['getAttribute']('src'));_0x5962b1=_0x49d95e['getLabel'](_0x4863d4)||_0x4863d4;break;}default:{const _0x5370e1=_0xf60895['getAttribute']('id');_0x5962b1=_0x49d95e['getLabel'](_0x5370e1)||_0x5370e1;break;}}return'insertion'==_0x260deb['type']?{'type':'insertion','content':c(_0x5ec619,'*Insert:*\x20%0','\x22'+_0x5962b1+'\x22\x20'+c(_0x5ec619,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x5ec619,'*Remove:*\x20%0','\x22'+_0x5962b1+'\x22\x20'+c(_0x5ec619,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x346e12{['afterInit'](){const _0x20430a=this['editor'],_0xb155a6=_0x20430a['plugins']['get']('TrackChangesEditing');_0x20430a['plugins']['has']('MultiLevelList')&&(_0xb155a6['enableDefaultAttributesIntegration']('multiLevelList'),_0xb155a6['registerBlockAttribute']('listMarkerStyle'),_0xb155a6['descriptionFactory']['registerDescriptionCallback'](_0x4f4504=>this['handleDescriptions'](_0x4f4504)));}['handleDescriptions'](_0x277f8e){const _0x1052af=this['editor']['locale'],{data:_0x2e312d}=_0x277f8e,_0x14034b={'type':'format','content':''};if(_0x2e312d&&'listMarkerStyle'==_0x2e312d['key']){if(!_0x2e312d['oldValue'])return{'type':'format','content':c(_0x1052af,'*Set\x20format:*\x20%0',c(_0x1052af,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e312d['newValue']+')'};if(!_0x2e312d['newValue']){let _0x4ded8c=_0x277f8e['head'];for(;_0x4ded8c;){if(_0x4ded8c['data']&&'listType'==_0x4ded8c['data']['key']&&_0x4ded8c['data']['newValue'])return _0x14034b;_0x4ded8c=_0x4ded8c['next'];}return{'type':'format','content':c(_0x1052af,'*Remove\x20format:*\x20%0',c(_0x1052af,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2e312d['oldValue']+')'};}}}}class kt extends _0x346e12{['afterInit'](){const _0x5c51ab=this['editor'];if(!_0x5c51ab['plugins']['has']('PageBreakEditing'))return;_0x5c51ab['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x263f3e=_0x5c51ab['plugins']['get']('TrackChangesEditing'),_0x4f9ab2=_0x5c51ab['locale'];_0x263f3e['descriptionFactory']['registerElementLabel']('pageBreak',_0x547b98=>c(_0x4f9ab2,'ELEMENT_PAGE_BREAK',_0x547b98));}}class bt extends _0x346e12{['afterInit'](){const _0x5dd62a=this['editor'];if(!_0x5dd62a['plugins']['has']('Paragraph'))return;const _0x46800f=_0x5dd62a['locale'],_0x2f42d6=_0x5dd62a['plugins']['get']('TrackChangesEditing');_0x2f42d6['descriptionFactory']['registerElementLabel']('paragraph',_0x513a27=>c(_0x46800f,'ELEMENT_PARAGRAPH',_0x513a27)),_0x2f42d6['enableDefaultAttributesIntegration']('paragraph'),_0x2f42d6['enableCommand']('insertParagraph'),_0x5dd62a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x5dd62a),{'priority':'highest'}),_0x5dd62a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xedb851,_0x582c8f,_0x1ab512)=>{_0x1ab512['options']['showSuggestionHighlights']&&nr(_0x5dd62a,{'showActiveMarker':!0x1})(_0xedb851,_0x582c8f,_0x1ab512);},{'priority':'highest'});const _0x2e6643=_0x2f42d6['descriptionFactory'];_0x2e6643['registerDescriptionCallback'](_0x2af7be=>{if('insertion'!==_0x2af7be['type'])return;const {start:_0x5ac842,end:_0x2bd5c3}=_0x2af7be['getFirstRange']();if(!_0x5ac842['isTouching'](_0x2bd5c3)||!_0x5ac842['nodeAfter'])return;const _0x6b022a=_0x5dd62a['model']['schema'],_0xccd6f6=_0x5ac842['nodeAfter'];return _0x6b022a['isBlock'](_0xccd6f6)&&!_0x6b022a['isLimit'](_0xccd6f6)&&_0x6b022a['checkChild'](_0xccd6f6,'$text')?{'type':'insertion','content':c(_0x46800f,'*Insert:*\x20%0',_0x2e6643['getItemLabel'](_0xccd6f6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bd51f=this['editor'],_0x5331e8=_0x5bd51f['locale'];_0x5bd51f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b2357=>{if('formatBlock'!=_0x2b2357['type'])return;const {data:_0x4a6bc4}=_0x2b2357;return _0x4a6bc4&&'paragraph'==_0x4a6bc4['commandName']?{'type':'format','content':c(_0x5331e8,'*Change\x20to:*\x20%0',c(_0x5331e8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x503fc8,{showActiveMarker:_0x19f860=!0x0}={}){return(_0x3b1a79,_0x3bc702,_0x5466ca)=>{const _0x1f494e=_0x503fc8['plugins']['get']('TrackChangesEditing'),_0x13da58=_0x3bc702['markerRange']['start'],_0x55d186=_0x3bc702['markerRange']['end'],_0x14403d=_0x503fc8['model']['schema'];if(!_0x13da58['isTouching'](_0x55d186)||!_0x13da58['nodeAfter'])return;const _0x4521bb=_0x13da58['nodeAfter'];if(_0x14403d['isBlock'](_0x4521bb)&&!_0x14403d['isLimit'](_0x4521bb)&&_0x14403d['checkChild'](_0x4521bb,'$text')){if(!_0x5466ca['consumable']['consume'](_0x3bc702['markerRange'],_0x3b1a79['name']))return;const {authorId:_0x592b27}=_0x1f494e['_splitMarkerName'](_0x3bc702['markerName']),_0x3755fe=_0x5466ca['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x592b27}),_0x3e3fb0=_0x5466ca['mapper']['toViewPosition'](_0x55d186);_0x19f860&&_0x1f494e['activeMarkers']['includes'](_0x3bc702['markerName'])&&_0x5466ca['writer']['addClass']('ck-suggestion-marker--active',_0x3755fe),_0x5466ca['writer']['insert'](_0x3e3fb0,_0x3755fe),_0x5466ca['mapper']['bindElementToMarker'](_0x3755fe,_0x3bc702['markerName']);}};}class yt extends _0x346e12{['afterInit'](){const _0x545f4b=this['editor'];if(!_0x545f4b['plugins']['has']('RemoveFormatEditing'))return;_0x545f4b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12d695=this['editor'];_0x12d695['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d1619=>{if('formatBlock'!=_0x3d1619['type']&&'formatInline'!=_0x3d1619['type'])return;const {data:_0x33b724}=_0x3d1619;return _0x33b724&&'removeFormat'==_0x33b724['commandName']?{'type':'format','content':c(_0x12d695['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x346e12{['afterInit'](){const _0x1f3d13=this['editor'];if(!_0x1f3d13['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x15c379=_0x1f3d13['plugins']['get']('TrackChangesEditing');_0x15c379['enableCommand']('goToPreviousRestrictedEditingException'),_0x15c379['enableCommand']('goToNextRestrictedEditingException');const _0x2a45db=_0x1f3d13['plugins']['get']('RestrictedEditingModeEditing');_0x2a45db['enableCommand']('trackChanges'),_0x2a45db['enableCommand']('acceptSuggestion'),_0x2a45db['enableCommand']('discardSuggestion'),_0x2a45db['enableCommand']('acceptAllSuggestions'),_0x2a45db['enableCommand']('discardAllSuggestions'),_0x2a45db['enableCommand']('acceptSelectedSuggestions'),_0x2a45db['enableCommand']('discardSelectedSuggestions');}}class St extends _0x346e12{static get['requires'](){return[_0x47504a];}['init'](){const _0x4c05bc=this['editor'],_0x38aca5=_0x4c05bc['plugins']['get']('TrackChangesEditing');_0x38aca5['enableCommand']('shiftEnter'),_0x4c05bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4c05bc),{'priority':'high'}),_0x4c05bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4c05bc),{'priority':'high'}),_0x4c05bc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x33bb5e,_0x2425d3,_0x55b009)=>{_0x55b009['options']['showSuggestionHighlights']&&je(_0x4c05bc,{'showActiveMarker':!0x1})(_0x33bb5e,_0x2425d3,_0x55b009);}),_0x38aca5['descriptionFactory']['registerElementLabel']('softBreak',_0x242b05=>c(_0x4c05bc['locale'],'ELEMENT_LINE_BREAK',_0x242b05));}}function je(_0x581c6b,{showActiveMarker:_0x2b64f9=!0x0}={}){return(_0x18e76f,_0x5238a5,_0x2022a1)=>{const _0x579dbf=_0x581c6b['plugins']['get']('TrackChangesEditing');if(!_0x2022a1['consumable']['test'](_0x5238a5['markerRange'],_0x18e76f['name']))return;const _0x195b3e=_0x581c6b['model'];for(const _0x3ac0a5 of _0x5238a5['markerRange']['getItems']()){if(!_0x3ac0a5['is']('element','softBreak'))continue;const _0x2cbdd0='deletion'==_0x5238a5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4c4df0}=_0x579dbf['_splitMarkerName'](_0x5238a5['markerName']),_0xe706ad=_0x2022a1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cbdd0,'data-author-id':_0x4c4df0}),_0xf0517d=_0x2022a1['mapper']['toViewPosition'](_0x195b3e['createPositionBefore'](_0x3ac0a5));_0x2b64f9&&_0x579dbf['activeMarkers']['includes'](_0x5238a5['markerName'])&&_0x2022a1['writer']['addClass']('ck-suggestion-marker--active',_0xe706ad),_0x2022a1['writer']['insert'](_0xf0517d,_0xe706ad),_0x2022a1['mapper']['bindElementToMarker'](_0xe706ad,_0x5238a5['markerName']);}};}class At extends _0x346e12{['afterInit'](){const _0x12837a=this['editor'],_0xe19f8=_0x12837a['model'],_0x2be251=_0x12837a['locale'];if(!_0x12837a['plugins']['has']('StandardEditingModeEditing'))return;const _0x443ad0=_0x12837a['plugins']['get']('TrackChangesEditing'),_0x5a339e='restrictedEditingException',_0x297a2c=_0x12837a['commands']['get'](_0x5a339e);_0x443ad0['enableCommand'](_0x5a339e,(_0x164c59,_0x3810d1={})=>{const _0x4d75f9=_0xe19f8['document']['selection'];if(_0x4d75f9['isCollapsed'])return void _0x164c59(_0x3810d1);const _0x5c5900=void 0x0!==_0x3810d1['forceValue']?_0x3810d1['forceValue']:!_0x297a2c['value'];_0xe19f8['change'](()=>{const _0x30656b=Array['from'](_0x4d75f9['getRanges']());for(const _0x1e2a26 of _0x30656b){const _0x17edb6=_0x5c5900?[_0x1e2a26]:no(_0x5a339e,_0x1e2a26,_0xe19f8);for(const _0x4540a7 of _0x17edb6)_0x443ad0['markInlineFormat'](_0x4540a7,{'commandName':_0x5a339e,'commandParams':[{'forceValue':_0x5c5900}]});}});}),_0x443ad0['descriptionFactory']['registerDescriptionCallback'](_0x280681=>{if('formatBlock'!=_0x280681['type']&&'formatInline'!=_0x280681['type'])return;const {data:_0x51b5d9}=_0x280681;return _0x51b5d9&&_0x51b5d9['commandName']==_0x5a339e?_0x51b5d9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2be251,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x2be251,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x346e12{['afterInit'](){const _0x1f4c61=this['editor'];if(!_0x1f4c61['plugins']['has']('Style')||!_0x1f4c61['plugins']['has']('DataSchema'))return;const _0x45d0d8=_0x1f4c61['plugins']['get']('TrackChangesEditing'),_0x5cd2a8=_0x1f4c61['locale'],_0x1d8178=_0x1f4c61['config']['get']('style')||{},_0x4c2385=_0x1f4c61['plugins']['get']('GeneralHtmlSupport'),_0x9241cd=_0x1f4c61['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1f4c61['plugins']['get']('DataSchema'),_0x1d8178['definitions']);_0x45d0d8['enableDefaultAttributesIntegration']('style');const _0x387e08=new Set();for(const _0x4f888e of _0x9241cd['block']){const _0x51fbfd=_0x4c2385['getGhsAttributeNameForElement'](_0x4f888e['element']);_0x387e08['add'](_0x51fbfd);}const _0x36dfa7=new Set();for(const _0x4bcac6 of _0x9241cd['inline']){const _0x45cefa=_0x4c2385['getGhsAttributeNameForElement'](_0x4bcac6['element']);_0x36dfa7['add'](_0x45cefa);for(const _0x3d2efc of _0x4bcac6['ghsAttributes'])_0x36dfa7['add'](_0x3d2efc);}for(const _0x2d53c5 of _0x387e08)_0x45d0d8['registerBlockAttribute'](_0x2d53c5),_0x45d0d8['descriptionFactory']['registerAttributeLabel'](_0x2d53c5,c(_0x5cd2a8,'FORMAT_STYLE'));for(const _0x26b863 of _0x36dfa7)_0x45d0d8['registerInlineAttribute'](_0x26b863),_0x45d0d8['descriptionFactory']['registerAttributeLabel'](_0x26b863,c(_0x5cd2a8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x404efa=this['editor'],_0x231761=_0x404efa['locale'];_0x404efa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c6824=>{if('formatBlock'!=_0x2c6824['type']&&'formatInline'!=_0x2c6824['type'])return;const {data:_0x35f6ee}=_0x2c6824;return _0x35f6ee&&'style'===_0x35f6ee['commandName']?_0x35f6ee['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x231761,'*Set\x20format:*\x20%0',_0x35f6ee['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x231761,'*Remove\x20format:*\x20%0',_0x35f6ee['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x346e12{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1fc662){super(_0x1fc662),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x223f1e=this['editor'],_0xbbc033=_0x223f1e['model']['document']['selection'];if(!_0x223f1e['plugins']['has']('TableEditing'))return;const _0x25bd1c=_0x223f1e['locale'],_0x1456b5=_0x223f1e['plugins']['get']('TrackChangesEditing'),_0x1a7e98=_0x223f1e['plugins']['get']('TableUtils');_0x1456b5['descriptionFactory']['registerElementLabel']('table',_0x99f369=>c(_0x25bd1c,'ELEMENT_TABLE',_0x99f369)),this['_setupColumnsRowsFixing'](),_0x1456b5['enableCommand']('insertTable'),_0x1456b5['enableCommand']('selectTableRow'),_0x1456b5['enableCommand']('selectTableColumn');for(const _0x3fa5bd of['insertTableRowAbove','insertTableRowBelow']){const _0x296b76=_0x223f1e['commands']['get'](_0x3fa5bd);_0x1456b5['enableCommand'](_0x3fa5bd,_0x2bcf14=>{_0x223f1e['model']['change'](_0x365281=>{_0x2bcf14();const _0xb0c476='above'===_0x296b76['order'],_0x419cc6=_0x1a7e98['getSelectionAffectedTableCells'](_0xbbc033),_0x2cdbc6=_0x1a7e98['getRowIndexes'](_0x419cc6),_0x2a9db3=_0xb0c476?_0x2cdbc6['first']-0x1:_0x2cdbc6['last']+0x1,_0x40c860=_0x419cc6[0x0]['findAncestor']('table'),_0x1bead5=_0x1a7e98['createTableWalker'](_0x40c860,{'startRow':_0x2a9db3,'endRow':_0x2a9db3}),_0x175aad=Array['from'](_0x1bead5)['map'](_0x284481=>_0x365281['createRangeOn'](_0x284481['cell']));_0x1456b5['markMultiRangeInsertion'](_0x175aad,'tableRow');});});}for(const _0x15e1d4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2e5d1b=_0x223f1e['commands']['get'](_0x15e1d4);_0x1456b5['enableCommand'](_0x15e1d4,_0x3c6e86=>{_0x223f1e['model']['change'](_0x4ba9e8=>{_0x3c6e86();const _0x42aeaa='left'===_0x2e5d1b['order'],_0x481435=_0x1a7e98['getSelectionAffectedTableCells'](_0xbbc033),_0x312554=_0x1a7e98['getColumnIndexes'](_0x481435),_0x3b25d4=_0x42aeaa?_0x312554['first']-0x1:_0x312554['last']+0x1,_0x3484d2=_0x481435[0x0]['findAncestor']('table'),_0x3e78fb=_0x1a7e98['createTableWalker'](_0x3484d2,{'startRow':0x0,'column':_0x3b25d4,'includeAllSlots':!0x1}),_0xe1e5be=Array['from'](_0x3e78fb)['map'](_0x2461a5=>_0x4ba9e8['createRangeOn'](_0x2461a5['cell']));_0x1456b5['markMultiRangeInsertion'](_0xe1e5be,'tableColumn');});});}for(const _0x418641 of['removeTableRow','removeTableColumn']){const _0x502753=_0x418641['substr'](0xb),_0x266a29=_0x502753['toLowerCase'](),_0x36d827=_0x266a29['substr'](0x0,0x3)+'span',_0x20a5de='table'+_0x502753,_0xcffe46='min'+_0x502753,_0x45e0b1='max'+_0x502753;_0x1456b5['enableCommand'](_0x418641,()=>{_0x223f1e['model']['change'](_0x108fce=>{const _0x178cc8=_0x1a7e98['getSelectionAffectedTableCells'](_0xbbc033),_0x56e931=_0x178cc8[0x0]['findAncestor']('table');let _0x40c342;if('removeTableRow'==_0x418641){const _0xfeae43=_0x1a7e98['getRowIndexes'](_0x178cc8);_0x40c342={'startRow':_0xfeae43['first'],'endRow':_0xfeae43['last'],'includeAllSlots':!0x0};}else{const _0x29b350=_0x1a7e98['getColumnIndexes'](_0x178cc8);_0x40c342={'startColumn':_0x29b350['first'],'endColumn':_0x29b350['last'],'includeAllSlots':!0x0};}const _0x841e98=_0x1a7e98['createTableWalker'](_0x56e931,_0x40c342),_0x39d9a4=Array['from'](_0x841e98)['map'](({cell:_0x252fbe})=>_0x252fbe),_0x150f62=Ne(_0x39d9a4['filter'](_0x399eab=>_0x399eab['hasAttribute'](_0x36d827))),_0x120d04=Ne(_0x39d9a4['filter'](_0x5d3f95=>!_0x5d3f95['hasAttribute'](_0x36d827)))['map'](_0x434bd7=>_0x108fce['createRangeOn'](_0x434bd7)),_0x26c3a3=_0x1456b5['markMultiRangeDeletion'](_0x120d04,_0x20a5de);if(_0x26c3a3&&('tableRow'==_0x26c3a3['subType']||'tableColumn'==_0x26c3a3['subType'])){const _0x365972=this['_getSuggestionCoords'](_0x26c3a3);for(const _0x1912e0 of _0x150f62){const _0x579042=_0x108fce['createRangeOn'](_0x1912e0),_0x1468a2=_0x1a7e98['getCellLocation'](_0x1912e0),_0x17fed3=_0x1912e0['getAttribute'](_0x36d827)-0x1,_0x5b6eda=_0x365972[_0xcffe46],_0x256b59=_0x365972[_0x45e0b1];_0x5b6eda<=_0x1468a2[_0x266a29]&&_0x1468a2[_0x266a29]+_0x17fed3<=_0x256b59&&_0x26c3a3['addRange'](_0x579042);}}});});}function _0x2b48f1(_0x24c13e){const _0x397dbc=Array['from'](_0xbbc033['getRanges']())['map'](_0x298dbd=>_0x33a55c['fromRange'](_0x298dbd));_0x223f1e['model']['change'](_0x9d8afb=>{const _0xb64f97=_0x9d8afb['batch'];_0x24c13e=_0x24c13e['filter'](_0x59f964=>'$graveyard'!=_0x59f964['root']['rootName']),_0x9d8afb['setSelection'](_0x24c13e),_0x223f1e['commands']['get']('removeTableRow')['refresh'](),_0x223f1e['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x223f1e['model']['enqueueChange'](()=>{_0x223f1e['model']['enqueueChange'](_0xb64f97,_0xe210c4=>{const _0xcb521f=_0x397dbc['filter'](_0x1b5108=>'$graveyard'!=_0x1b5108['root']['rootName']);_0xcb521f['length']>0x0&&_0xe210c4['setSelection'](_0xcb521f);for(const _0x27294f of _0x397dbc)_0x27294f['detach']();});});});}function _0x13f65f(_0xa96ea5){_0x223f1e['model']['change'](_0x76e2a2=>{const _0x3c01f0=Array['from'](_0xbbc033['getRanges']())['map'](_0x21a58b=>_0x33a55c['fromRange'](_0x21a58b)),_0x3cd0f0=[];for(const _0x47bf8b of _0xa96ea5)for(const _0x4981f5 of _0x47bf8b['getItems']({'shallow':!0x0}))_0x3cd0f0['push'](_0x4981f5);for(const _0x6bd833 of _0x3cd0f0)'$graveyard'!=_0x6bd833['root']['rootName']&&(_0x76e2a2['setSelection'](_0x76e2a2['createPositionAt'](_0x6bd833,0x0)),_0x223f1e['commands']['get']('removeTableColumn')['refresh'](),_0x223f1e['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x57e52f=_0x3c01f0['filter'](_0x22413a=>'$graveyard'!=_0x22413a['root']['rootName']);_0x57e52f['length']>0x0&&_0x76e2a2['setSelection'](_0x57e52f);for(const _0x142300 of _0x3c01f0)_0x142300['detach']();});}function _0x135f90(_0x57c868,_0xbe71b4){return _0xbe71b4['every'](_0xe1d911=>_0x57c868['some'](_0x4b4007=>_0x4b4007['end']['isEqual'](_0xe1d911['start'])||_0xe1d911['end']['isEqual'](_0x4b4007['start'])));}function _0xf48ae4(_0x18cd14,_0x2f9085){return!_0x18cd14['some'](_0x15497a=>_0x2f9085['some'](_0x42d9e1=>_0x15497a['isIntersecting'](_0x42d9e1)))&&_0x18cd14['some'](_0x198e46=>_0x2f9085['some'](_0x5e872a=>_0x198e46['end']['isTouching'](_0x5e872a['start'])));}_0x223f1e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47881c,_0x3acd5b,_0x456cab)=>{if(!_0x456cab['options']['showSuggestionHighlights'])return;const _0x28c1b8=_0x3acd5b['item'];if(!_0x28c1b8)return;const _0xf04344=_0x456cab['mapper']['toViewElement'](_0x28c1b8);function _0x381a2f(_0x150b1b){return Array['isArray'](_0x150b1b)?_0x150b1b:[_0x150b1b];}_0xf04344&&'tableCell'===_0x28c1b8['name']&&_0x510c2f(_0xf04344,_0x456cab['writer'],(_0x4df689,_0x2848d6,_0x1c8040)=>_0x1c8040['addClass'](_0x381a2f(_0x2848d6['classes']),_0x4df689),(_0x15743f,_0x448b34,_0x4996be)=>_0x4996be['removeClass'](_0x381a2f(_0x448b34['classes']),_0x15743f));},{'priority':'highest'}),_0x1456b5['descriptionFactory']['registerDescriptionCallback'](_0x236024=>{if('insertion'!=_0x236024['type']&&'deletion'!=_0x236024['type'])return;const _0x43a414=_0x236024['getContainedElement']();if(null!=_0x43a414&&_0x43a414['is']('element','table')){if('insertion'==_0x236024['type']){const _0x4915c9=_0x236024['getItems']()['filter'](_0x375c16=>_0x375c16['is']('$textProxy'))['map'](_0xe7d1db=>_0xe7d1db['data']);if(_0x4915c9['length'])return{'type':'insertion','content':c(_0x25bd1c,'*Insert:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4915c9['join']('\x20')+'\x22'))};}if('deletion'==_0x236024['type']){const _0x38ebe3=_0x236024['getItems']()['filter'](_0x30f670=>_0x30f670['is']('$textProxy'))['map'](_0xe82007=>_0xe82007['data']);if(_0x38ebe3['length'])return{'type':'deletion','content':c(_0x25bd1c,'*Remove:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x38ebe3['join']('\x20')+'\x22'))};}}}),_0x1456b5['descriptionFactory']['registerDescriptionCallback'](_0x1c6dc2=>{if('tableRow'==_0x1c6dc2['subType']){const _0x32bf29=_0x1c6dc2['getItems']()['filter'](_0x1d787d=>_0x1d787d['is']('$textProxy'))['map'](_0x258b84=>_0x258b84['data']),_0x5dfe4b=this['_getSuggestionCoords'](_0x1c6dc2),_0x377955=_0x5dfe4b['maxRow']-_0x5dfe4b['minRow']+0x1;if('insertion'==_0x1c6dc2['type'])return _0x32bf29['length']?{'type':'insertion','content':c(_0x25bd1c,'*Insert:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x377955,'\x22'+_0x32bf29['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x25bd1c,'*Insert:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_ROW',_0x377955))};if('deletion'==_0x1c6dc2['type'])return _0x32bf29['length']?{'type':'deletion','content':c(_0x25bd1c,'*Remove:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x377955,'\x22'+_0x32bf29['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x25bd1c,'*Remove:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_ROW',_0x377955))};}if('tableColumn'==_0x1c6dc2['subType']){const _0x1f6e6d=_0x1c6dc2['getItems']()['filter'](_0x5a0ba1=>_0x5a0ba1['is']('$textProxy'))['map'](_0x176c95=>_0x176c95['data']),_0x9863d3=this['_getSuggestionCoords'](_0x1c6dc2),_0x4678d5=_0x9863d3['maxColumn']-_0x9863d3['minColumn']+0x1;if('insertion'==_0x1c6dc2['type'])return _0x1f6e6d['length']?{'type':'insertion','content':c(_0x25bd1c,'*Insert:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4678d5,'\x22'+_0x1f6e6d['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x25bd1c,'*Insert:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_COLUMN',_0x4678d5))};if('deletion'==_0x1c6dc2['type'])return _0x1f6e6d['length']?{'type':'deletion','content':c(_0x25bd1c,'*Remove:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4678d5,'\x22'+_0x1f6e6d['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x25bd1c,'*Remove:*\x20%0',c(_0x25bd1c,'ELEMENT_TABLE_COLUMN',_0x4678d5))};}}),_0x1456b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2b48f1),_0x1456b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2b48f1),_0x1456b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13f65f),_0x1456b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13f65f),_0x1456b5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x135f90),_0x1456b5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x135f90),_0x1456b5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf48ae4),_0x1456b5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf48ae4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2742b=this['editor'],_0x5e7bca=_0x2742b['model']['document']['selection'];return(_0x54ad42,_0x114be3)=>{_0x2742b['model']['change'](_0x10f1ba=>{const {commandName:_0x4ea11e,commandParams:_0x304332}=_0x114be3;let _0x471581=_0x54ad42[0x0]['end']['nodeBefore'];_0x304332&&_0x304332[0x0]&&!0x1===_0x304332[0x0]['forceValue']&&(_0x471581=_0x54ad42[0x0]['start']['nodeAfter']);const _0x22ec5b=_0x10f1ba['createRangeIn'](_0x471581);if('$graveyard'==_0x22ec5b['root']['rootName'])return;const _0x1b458d=Array['from'](_0x5e7bca['getRanges']())['map'](_0x4f233c=>_0x33a55c['fromRange'](_0x4f233c));_0x10f1ba['setSelection'](_0x22ec5b),_0x2742b['commands']['get'](_0x4ea11e)['refresh'](),_0x304332['push']({'forceDefaultExecution':!0x0}),_0x2742b['execute'](_0x4ea11e,..._0x304332);const _0x5f0042=_0x1b458d['filter'](_0xfd1e9a=>'$graveyard'!=_0xfd1e9a['root']['rootName']);_0x5f0042['length']>0x0&&_0x10f1ba['setSelection'](_0x5f0042);for(const _0x224cc6 of _0x1b458d)_0x224cc6['detach']();});};}['_getCoordsForCells'](_0x2d9738){const _0xfaa3d5=this['editor']['plugins']['get']('TableUtils');let _0x17b104=Number['MAX_SAFE_INTEGER'],_0x2b84ec=Number['MIN_SAFE_INTEGER'],_0x2ab1ab=Number['MAX_SAFE_INTEGER'],_0x121589=Number['MIN_SAFE_INTEGER'];for(const _0x19235f of _0x2d9738){if('$graveyard'==_0x19235f['root']['rootName'])continue;const {row:_0x1e7ad2,column:_0x513f8f}=_0xfaa3d5['getCellLocation'](_0x19235f),_0x3c91b3=_0x19235f['hasAttribute']('rowspan')?_0x19235f['getAttribute']('rowspan')-0x1:0x0,_0x372035=_0x19235f['hasAttribute']('colspan')?_0x19235f['getAttribute']('colspan')-0x1:0x0;_0x17b104=_0x1e7ad2<_0x17b104?_0x1e7ad2:_0x17b104,_0x2b84ec=_0x1e7ad2+_0x3c91b3>_0x2b84ec?_0x1e7ad2+_0x3c91b3:_0x2b84ec,_0x2ab1ab=_0x513f8f<_0x2ab1ab?_0x513f8f:_0x2ab1ab,_0x121589=_0x513f8f+_0x372035>_0x121589?_0x513f8f+_0x372035:_0x121589;}return{'minRow':_0x17b104,'maxRow':_0x2b84ec,'minColumn':_0x2ab1ab,'maxColumn':_0x121589};}['_setupColumnsRowsFixing'](){const _0x30c83d=this['editor'],_0x35b036=_0x30c83d['plugins']['get']('TrackChangesEditing'),_0x354fae=_0x30c83d['plugins']['get']('TableUtils');_0x30c83d['model']['document']['on']('change:data',()=>{const _0x587434=Array['from'](_0x30c83d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d0c7b,data:_0x41df1c}of _0x587434){const {group:_0x1ed658,id:_0x48e852,subType:_0x27a714}=_0x35b036['_splitMarkerName'](_0x1d0c7b);if('suggestion'!=_0x1ed658)continue;if(null!=_0x41df1c['oldRange'])continue;const _0x3dd4ea=_0x35b036['getSuggestion'](_0x48e852);this['_tablePostFixingSubtypes']['includes'](_0x27a714)&&this['_tableSuggestions']['add'](_0x3dd4ea);}},{'priority':'low'});const _0x59a752=(_0x50a4ec,_0x405ca5)=>{let _0x5f3d42=!0x1;const _0x401d0d=_0x405ca5['createRangeOn'](_0x50a4ec),_0x398dad=_0x50a4ec['findAncestor']('table'),_0x1678a1=_0x354fae['getCellLocation'](_0x50a4ec);for(const _0x4b1ba4 of this['_tableSuggestions']){const _0x3c568a=_0x4b1ba4['subType'],_0xb808b7=_0x3c568a['startsWith']('tablePaste'),_0x2a1a0e=_0x3c568a['substr'](_0xb808b7?0xa:0x5),_0x18bb78=_0x2a1a0e['toLowerCase'](),_0xdb9238=_0x18bb78['substr'](0x0,0x3)+'span',_0x447ca5='min'+_0x2a1a0e,_0x1ebbce='max'+_0x2a1a0e;if(!_0x4b1ba4['isInContent'])continue;if(_0x398dad!=_0x4b1ba4['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4b1ba4['isIntersectingWithRange'](_0x401d0d))continue;const _0x42e195=_0x50a4ec['hasAttribute'](_0xdb9238)?_0x50a4ec['getAttribute'](_0xdb9238)-0x1:0x0,_0x51767c=this['_getSuggestionCoords'](_0x4b1ba4),_0x492c57=_0x51767c[_0x447ca5],_0x486989=_0x51767c[_0x1ebbce];_0x492c57<=_0x1678a1[_0x18bb78]&&_0x1678a1[_0x18bb78]+_0x42e195<=_0x486989&&(_0x4b1ba4['addRange'](_0x401d0d),_0x5f3d42=!0x0);}return _0x5f3d42;};_0x30c83d['model']['document']['registerPostFixer'](_0x23b0ea=>{let _0x20be5b=!0x1;for(const _0x202903 of _0x30c83d['model']['document']['differ']['getChanges']())if('insert'==_0x202903['type']){if('tableRow'==_0x202903['name']){for(const _0x3a77d9 of _0x202903['position']['nodeAfter']['getChildren']())_0x20be5b=_0x20be5b||_0x59a752(_0x3a77d9,_0x23b0ea);}else'tableCell'==_0x202903['name']&&(_0x20be5b=_0x20be5b||_0x59a752(_0x202903['position']['nodeAfter'],_0x23b0ea));}return _0x20be5b;});}['_getSuggestionCoords'](_0x3de181){return this['_getCoordsForCells'](_0x3de181['getRanges']()['map'](_0x14c3d0=>_0x14c3d0['start']['nodeAfter']));}}function Ne(_0x1a769a){return Array['from'](new Set(_0x1a769a)['values']());}class vt extends _0x346e12{static get['requires'](){return[_t];}['afterInit'](){const _0x598f1b=this['editor'],_0x45da39=_0x598f1b['model']['document']['selection'],_0x5cbb7c=_0x598f1b['locale'];if(!_0x598f1b['plugins']['has']('TableEditing'))return;const _0x1ba4c3=_0x598f1b['plugins']['get']('TrackChangesEditing'),_0x43bae9=_0x598f1b['plugins']['get']('TableUtils'),_0x3af2d5=_0x598f1b['plugins']['get'](_t);_0x3af2d5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1ba4c3['enableCommand']('mergeTableCells',()=>{const _0x4f986e=_0x43bae9['getSelectionAffectedTableCells'](_0x598f1b['model']['document']['selection']);_0x598f1b['model']['change'](()=>{_0x1ba4c3['markMultiRangeBlockFormat'](_0x4f986e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x598f1b['commands']['get']('mergeTableCells')['on']('execute',(_0x16d20a,_0x36a6bf)=>{_0x598f1b['commands']['get']('trackChanges')['value']&&(_0x36a6bf['length']>0x0&&_0x36a6bf[_0x36a6bf['length']-0x1]&&_0x36a6bf[_0x36a6bf['length']-0x1]['forceDefaultExecution']||_0x1ba4c3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x16d20a['stop']());},{'priority':'highest'});for(const _0xa302fc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x15b503=_0x598f1b['commands']['get'](_0xa302fc);_0x1ba4c3['enableCommand'](_0xa302fc,()=>{const _0x2d3c45=_0x598f1b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3c04fe=>_0x3c04fe['is']('element','tableCell')),_0x238b13=_0x15b503['value'];_0x598f1b['model']['change'](()=>{_0x1ba4c3['markMultiRangeBlockFormat']([_0x2d3c45,_0x238b13],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x7490b5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5c7a5b=_0x598f1b['commands']['get'](_0x7490b5);_0x1ba4c3['enableCommand'](_0x7490b5,()=>{const _0x46dba1=_0x43bae9['getSelectionAffectedTableCells'](_0x598f1b['model']['document']['selection'])[0x0],_0x110e61=_0x46dba1['findAncestor']('table'),{column:_0x527ea0,row:_0x285414}=_0x43bae9['getCellLocation'](_0x46dba1);let _0x52afc7=[];if('horizontally'==_0x5c7a5b['direction']){const _0x483d7f=_0x43bae9['createTableWalker'](_0x110e61,{'startRow':_0x285414,'endRow':_0x285414,'includeAllSlots':!0x0});_0x52afc7=Array['from'](_0x483d7f)['map'](_0x184604=>_0x184604['cell']);}else{const _0x467011=_0x43bae9['createTableWalker'](_0x110e61,{'column':_0x527ea0,'includeAllSlots':!0x0});_0x52afc7=Array['from'](_0x467011)['map'](_0x2fd071=>_0x2fd071['cell']);}_0x598f1b['model']['change'](_0x195c3b=>{_0x1ba4c3['markBlockFormat'](_0x195c3b['createRangeOn'](_0x46dba1),{'commandName':_0x7490b5,'commandParams':[]},_0x52afc7,_0x7490b5);});});}_0x1ba4c3['descriptionFactory']['registerDescriptionCallback'](_0x2d36f8=>{if('formatBlock'!=_0x2d36f8['type']&&'formatInline'!=_0x2d36f8['type'])return;const {data:_0x179480}=_0x2d36f8;return _0x179480&&'mergeTableCells'==_0x179480['commandName']?{'type':'format','content':c(_0x5cbb7c,'*Merge\x20cells*')}:void 0x0;}),_0x1ba4c3['descriptionFactory']['registerDescriptionCallback'](_0x509276=>{if('formatBlock'!=_0x509276['type']&&'formatInline'!=_0x509276['type'])return;const {data:_0x15c77c}=_0x509276;return _0x15c77c?'splitTableCellVertically'==_0x15c77c['commandName']?{'type':'format','content':c(_0x5cbb7c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x15c77c['commandName']?{'type':'format','content':c(_0x5cbb7c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x192209=_0x3af2d5['_acceptFormatSuggestionCallbackFactory']();for(const _0x1f929a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1ba4c3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f929a,'accept',_0x192209);for(const _0x4c3288 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1ba4c3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4c3288,'accept',_0x192209);_0x1ba4c3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x305a74=>{_0x598f1b['model']['change'](_0x18bf65=>{const _0x53746c=Array['from'](_0x45da39['getRanges']())['map'](_0x527559=>_0x33a55c['fromRange'](_0x527559));_0x18bf65['setSelection'](_0x305a74),_0x598f1b['commands']['get']('mergeTableCells')['refresh'](),_0x598f1b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5dd26b=_0x53746c['filter'](_0x18ca15=>'$graveyard'!=_0x18ca15['root']['rootName']);_0x5dd26b['length']>0x0&&_0x18bf65['setSelection'](_0x5dd26b);for(const _0x409f3d of _0x53746c)_0x409f3d['detach']();});});for(const _0x3d28a8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x29f7c0=_0x598f1b['commands']['get'](_0x3d28a8);_0x29f7c0['on']('set:isEnabled',(_0x20694a,_0x4153f5,_0x75fc16)=>{if(_0x75fc16){const _0x3c49d7=_0x598f1b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45d0cb=>_0x45d0cb['is']('element','tableCell'));this['_areMergableCells'](_0x29f7c0['value'],_0x3c49d7)||(_0x20694a['return']=!0x1,_0x20694a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4ee404=this['editor']['commands']['get']('mergeTableCells'),_0x5638a3=this['editor']['plugins']['get']('TableUtils');if(!_0x4ee404['isEnabled'])return!0x1;const _0x4e5af6=_0x5638a3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5126a2 of _0x4e5af6)for(const _0x3d4985 of _0x4e5af6)if(_0x5126a2!=_0x3d4985&&!this['_areMergableCells'](_0x5126a2,_0x3d4985))return!0x1;return!0x0;}['_areMergableCells'](_0x20161a,_0x3a038b){const _0x3448df=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe977e=this['editor']['model']['createRangeOn'](_0x20161a),_0x295ca2=this['editor']['model']['createRangeOn'](_0x3a038b),_0x124b6f=new Set(),_0x27fab1=new Set();for(const _0x18bf28 of _0x3448df['getSuggestions']())if(('insertion'==_0x18bf28['type']||'deletion'==_0x18bf28['type']||'mergeTableCells'==_0x18bf28['subType'])&&_0x18bf28['isInContent']){for(const _0x2fba5a of _0x18bf28['getRanges']())_0x2fba5a['containsRange'](_0xe977e,!0x0)&&_0x124b6f['add'](_0x18bf28['type']+':'+_0x18bf28['author']['id']),_0x2fba5a['containsRange'](_0x295ca2,!0x0)&&_0x27fab1['add'](_0x18bf28['type']+':'+_0x18bf28['author']['id']);}if(_0x124b6f['size']!=_0x27fab1['size'])return!0x1;for(const _0x364cd5 of _0x124b6f)if(!_0x27fab1['has'](_0x364cd5))return!0x1;return!0x0;}}class Ct extends _0x346e12{static get['requires'](){return[_t];}['afterInit'](){const _0x4560aa=this['editor'];if(!_0x4560aa['plugins']['has']('TableEditing'))return;const _0x46b55e=_0x4560aa['locale'],_0xa71c38=_0x4560aa['plugins']['get']('TrackChangesEditing');_0xa71c38['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xa71c38['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xa71c38['registerBlockAttribute']('headingRows'),_0xa71c38['registerBlockAttribute']('headingColumns'),_0xa71c38['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x46b55e,'FORMAT_HEADER_ROW')),_0xa71c38['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x46b55e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4385ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b3eda=this['editor']['plugins']['get']('TableUtils'),_0x3f05d4=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x1f5418({showActiveMarker:_0x3dfa9d=!0x0,setDataAttribute:_0x9f256b=!0x0}={}){return(_0x287557,_0x15d5c7,_0x29f275)=>{const {type:_0x45fcf8,id:_0x3747f6}=_0x4385ea['_splitMarkerName'](_0x15d5c7['markerName']),_0x296afa=_0x4385ea['getSuggestion'](_0x3747f6),_0x34cd64=_0x296afa['data'];if('formatBlock'!=_0x296afa['type']||!_0x34cd64||'setTableColumnHeader'!=_0x34cd64['commandName'])return;if(_0x15d5c7['item'])return void _0x287557['stop']();if(!_0x29f275['consumable']['consume'](_0x15d5c7['markerRange'],_0x287557['name']))return;const _0x7d1433=_0x15d5c7['markerRange']['start']['nodeAfter'],_0x2df22d=_0x15d5c7['markerRange']['end']['nodeBefore'],_0x3d35b2=_0x7d1433['parent']['parent'],{column:_0x2f7ade}=_0x1b3eda['getCellLocation'](_0x7d1433),{column:_0x4e31f6}=_0x1b3eda['getCellLocation'](_0x2df22d);for(let _0x33bc4a=_0x2f7ade;_0x33bc4a<=_0x4e31f6;_0x33bc4a++){const _0x6240dd=_0x1b3eda['createTableWalker'](_0x3d35b2,{'column':_0x33bc4a,'includeAllSlots':!0x1});for(const _0x517af5 of _0x6240dd){const _0x5b33b0=_0x517af5['cell'],_0x2bbb29=_0x29f275['mapper']['toViewElement'](_0x5b33b0);_0x29f275['writer']['addClass']('ck-suggestion-marker-'+_0x45fcf8,_0x2bbb29),_0x9f256b&&_0x29f275['writer']['setAttribute']('data-suggestion',_0x3747f6,_0x2bbb29),_0x29f275['mapper']['bindElementToMarker'](_0x2bbb29,_0x15d5c7['markerName']),_0x3dfa9d&&(_0x4385ea['activeMarkers']['includes'](_0x15d5c7['markerName'])?_0x29f275['writer']['addClass']('ck-suggestion-marker--active',_0x2bbb29):_0x29f275['writer']['removeClass']('ck-suggestion-marker--active',_0x2bbb29));}}};}_0x4385ea['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3f05d4),_0x4385ea['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3f05d4),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1f5418(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45b84c,_0x338a38,_0x253dc1)=>{_0x253dc1['options']['showSuggestionHighlights']&&_0x1f5418({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x45b84c,_0x338a38,_0x253dc1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2282e2,_0x395269,_0x52ead7)=>{const {type:_0x13531d,id:_0x2bba4a}=_0x4385ea['_splitMarkerName'](_0x395269['markerName']),_0x12aae0=_0x4385ea['getSuggestion'](_0x2bba4a),_0x8d76d=_0x12aae0['data'];if('formatBlock'!=_0x12aae0['type']||!_0x8d76d||'setTableColumnHeader'!=_0x8d76d['commandName'])return;const _0x43358a=_0x52ead7['mapper']['markerNameToElements'](_0x395269['markerName']);if(_0x43358a){for(const _0xe3c3e8 of _0x43358a)_0x52ead7['writer']['removeClass']('ck-suggestion-marker-'+_0x13531d,_0xe3c3e8),_0x52ead7['writer']['removeClass']('ck-suggestion-marker--active',_0xe3c3e8),_0x52ead7['writer']['removeAttribute']('data-suggestion',_0xe3c3e8),_0x52ead7['mapper']['unbindElementFromMarkerName'](_0xe3c3e8,_0x395269['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x62b23c=this['editor'],_0x39cf8c=_0x62b23c['locale'];function _0x2bb7f6(_0x4e6c74){return{'type':'format','content':c(_0x39cf8c,'*Format:*\x20%0',_0x4e6c74)};}_0x62b23c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x307ae5=>{if('formatBlock'!=_0x307ae5['type'])return;const {data:_0x243c6e}=_0x307ae5;if(_0x243c6e){if('setTableRowHeader'==_0x243c6e['commandName']){const _0x1db3ab=_0x243c6e['commandParams'][0x0]['forceValue'];return _0x2bb7f6(c(_0x39cf8c,_0x1db3ab?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x243c6e['commandName']){const _0x579e56=_0x243c6e['commandParams'][0x0]['forceValue'];return _0x2bb7f6(c(_0x39cf8c,_0x579e56?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x127191=>[_0x127191,null]));class Nt extends _0x346e12{static get['requires'](){return[_t];}['afterInit'](){const _0x279bac=this['editor'];if(!_0x279bac['plugins']['has']('TableClipboard'))return;const _0x192ef0=_0x279bac['plugins']['get']('TrackChangesEditing'),_0x37983d=_0x279bac['plugins']['get']('TableUtils'),_0x5dc28f=_0x279bac['plugins']['get'](_t),_0x4758a2=_0x279bac['plugins']['get']('TableClipboard');_0x5dc28f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x279bac['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x279bac['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x299481=null;_0x279bac['model']['on']('insertContent',(_0x257c25,_0xd9f231)=>{const [_0x184001,_0x896a58]=_0xd9f231,_0x1f9d07=_0xd9f231[_0xd9f231['length']-0x1];_0x1f9d07&&_0x1f9d07['forceDefaultExecution']||_0x192ef0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2c9d9f,_0x515c1c,_0x52bf2e,_0x35a19a,_0x29e3be){if(_0x515c1c&&!_0x515c1c['is']('documentSelection'))return!0x1;const _0x4b7b03=_0x29e3be['getTableIfOnlyTableInContent'](_0x2c9d9f,_0x52bf2e);if(!_0x4b7b03||!Ue(_0x4b7b03,void 0x0,_0x35a19a))return!0x1;const _0x2d4ed0=_0x35a19a['getSelectionAffectedTableCells'](_0x52bf2e['document']['selection']);if(!_0x2d4ed0['length'])return!0x1;const _0x54b7b2=_0x2d4ed0[0x0]['findAncestor']('table'),_0x17264a=_0x35a19a['getRowIndexes'](_0x2d4ed0),_0x10b3be=_0x35a19a['getColumnIndexes'](_0x2d4ed0),_0x165f9d={'startRow':_0x17264a['first'],'endRow':_0x17264a['last'],'startColumn':_0x10b3be['first'],'endColumn':_0x10b3be['last']};return 0x1==_0x2d4ed0['length']&&(_0x165f9d['endRow']+=_0x35a19a['getRows'](_0x4b7b03)-0x1,_0x165f9d['endColumn']+=_0x35a19a['getColumns'](_0x4b7b03)-0x1),Ue(_0x54b7b2,_0x165f9d,_0x35a19a);}(_0x184001,_0x896a58,_0x279bac['model'],_0x37983d,_0x4758a2)&&(_0x257c25['stop'](),_0x299481={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x279bac['model']['change'](()=>{_0x279bac['model']['insertContent'](_0xd9f231[0x0],_0xd9f231[0x1],_0xd9f231[0x2],{'forceDefaultExecution':!0x0});const _0xef75b9=_0xb11af3(),{rowInsertionRanges:_0x32ba39,columnInsertionRanges:_0x1b8fa1,insertionRanges:_0x5eb386,deletionRanges:_0x5d8ead,cells:_0x3a566c}=_0x299481;_0x32ba39['length']&&_0x192ef0['markMultiRangeInsertion'](_0x32ba39,'tablePasteRow',{'tablePasteChainId':_0xef75b9}),_0x1b8fa1['length']&&_0x192ef0['markMultiRangeInsertion'](_0x1b8fa1,'tablePasteColumn',{'tablePasteChainId':_0xef75b9}),_0x5eb386['length']&&(_0x192ef0['markMultiRangeInsertion'](_0x5eb386,'tablePaste',{'tablePasteChainId':_0xef75b9,'skipNestingCheck':!0x0}),_0x5eb386['forEach'](_0x5554c3=>_0x5554c3['detach']?.())),_0x5d8ead['length']&&(_0x192ef0['markMultiRangeDeletion'](_0x5d8ead,'tablePaste',{'tablePasteChainId':_0xef75b9,'skipNestingCheck':!0x0}),_0x5d8ead['forEach'](_0x62f9d5=>_0x62f9d5['detach']?.()));const _0x26a7ad=_0x192ef0['markMultiRangeBlockFormat'](_0x3a566c['map'](({element:_0x20ca87})=>_0x20ca87),{'formatGroupId':_0xb11af3()},[],'tablePasteCell',{'tablePasteChainId':_0xef75b9});if(_0x26a7ad){const _0x14979e=_0x26a7ad['getMarkers'](),_0x22540f=[];for(const {element:_0x304692,attributes:_0x124444}of _0x3a566c){if(!_0x124444)continue;const _0x443377=_0x279bac['model']['createRangeOn'](_0x304692),_0x3d0bf6=_0x14979e['find'](_0x57c8ec=>_0x57c8ec['getRange']()['isEqual'](_0x443377));_0x3d0bf6&&_0x22540f['push']([_0x3d0bf6['name'],_0x124444]);}_0x22540f['length']&&_0x26a7ad['setAttribute']('markerAttributes',Object['fromEntries'](_0x22540f));}_0x299481=null;}));},{'priority':_0x1afaee['high']+0xa}),_0x279bac['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1d9551,_0x50e855)=>{const [_0x1c0a4d,_0x2db409,,_0x58237e]=_0x50e855;if(!_0x299481)return;_0x1d9551['stop']();const _0x6abb2f=_0x1c0a4d['cell'],_0x372b0d=_0x2db409,_0x1b7ae7=Oe(_0x6abb2f),_0x402e0e=Oe(_0x372b0d);_0x1d9551['return']=_0x6abb2f;let _0x43b53a=null,_0x2d8b24=null;if(_0x402e0e||_0x1b7ae7){if(_0x1b7ae7&&!_0x402e0e){_0x58237e['remove'](_0x6abb2f['getChild'](0x0));for(const _0x5d0200 of Array['from'](_0x372b0d['getChildren']()))_0x58237e['insert'](_0x5d0200,_0x6abb2f,'end');const _0x1ccddf=_0x299481['rowInsertionIndexes']['includes'](_0x1c0a4d['row']),_0x4e9502=_0x299481['columnInsertionIndexes']['includes'](_0x1c0a4d['column']);_0x1ccddf||_0x4e9502||(_0x43b53a=_0x33a55c['fromRange'](_0x58237e['createRangeIn'](_0x6abb2f)));}else _0x402e0e&&!_0x1b7ae7&&(_0x2d8b24=_0x58237e['createRangeIn'](_0x6abb2f));}else{const _0x1fd9ae=_0x58237e['createElement']('tableCellSuggestion'),_0x48ccc9=_0x58237e['createElement']('tableCellSuggestion');_0x58237e['wrap'](_0x58237e['createRangeIn'](_0x6abb2f),_0x48ccc9),_0x58237e['insert'](_0x1fd9ae,_0x6abb2f,0x0);for(const _0x2d7786 of Array['from'](_0x372b0d['getChildren']()))_0x58237e['insert'](_0x2d7786,_0x1fd9ae,'end');_0x43b53a=_0x33a55c['fromRange'](_0x58237e['createRangeOn'](_0x1fd9ae)),_0x2d8b24=_0x33a55c['fromRange'](_0x58237e['createRangeOn'](_0x48ccc9));}const _0x452751=Array['from'](_0x372b0d['getAttributes']())['filter'](([_0x4be406])=>Be['includes'](_0x4be406));_0x299481['cells']['push']({'element':_0x6abb2f,'attributes':_0x452751['length']?Object['fromEntries'](_0x452751):null}),_0x43b53a&&_0x299481['insertionRanges']['push'](_0x43b53a),_0x2d8b24&&_0x299481['deletionRanges']['push'](_0x2d8b24);},{'priority':'high'}),_0x37983d['on']('insertColumns',(_0x19a8c9,_0x373153)=>{const [_0x156459,_0x2a2fb9={}]=_0x373153;if(!_0x299481)return;const _0x5b333d=_0x2a2fb9['at']||0x0,_0x539e60=_0x2a2fb9['columns']||0x1;_0x299481['columnInsertionIndexes']=new Array(_0x539e60)['fill'](_0x5b333d)['map']((_0x1220d7,_0x1ca37a)=>_0x1220d7+_0x1ca37a);for(const {cell:_0x54daf0}of _0x37983d['createTableWalker'](_0x156459,{'startColumn':_0x5b333d,'endColumn':_0x5b333d+_0x539e60-0x1}))_0x299481['columnInsertionRanges']['push'](_0x279bac['model']['createRangeOn'](_0x54daf0));},{'priority':'low'}),_0x37983d['on']('insertRows',(_0x4b148d,_0x296400)=>{const [_0xe24a2b,_0x2159b9={}]=_0x296400;if(!_0x299481)return;const _0x138b86=_0x2159b9['at']||0x0,_0x9df0fe=_0x2159b9['rows']||0x1;_0x299481['rowInsertionIndexes']=new Array(_0x9df0fe)['fill'](_0x138b86)['map']((_0x5ef899,_0x1302ab)=>_0x5ef899+_0x1302ab);for(const {cell:_0x23eab1}of _0x37983d['createTableWalker'](_0xe24a2b,{'startRow':_0x138b86,'endRow':_0x138b86+_0x9df0fe-0x1}))_0x299481['rowInsertionRanges']['push'](_0x279bac['model']['createRangeOn'](_0x23eab1));},{'priority':'low'}),_0x192ef0['descriptionFactory']['registerDescriptionCallback'](_0x3fb0d7=>{if(_0x3fb0d7['subType']&&_0x3fb0d7['subType']['startsWith']('tablePaste'))return _0x3fb0d7['previous']?{}:{'type':'insertion','content':c(_0x279bac['locale'],'*Replace\x20table\x20cells*')};});const _0x9fcae1=()=>!0x1;for(const _0x3ad3a0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x192ef0['_suggestionFactory']['registerCustomCallback']('insertion',_0x3ad3a0,'join',_0x9fcae1),_0x192ef0['_suggestionFactory']['registerCustomCallback']('deletion',_0x3ad3a0,'join',_0x9fcae1),_0x192ef0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ad3a0,'join',_0x9fcae1);_0x192ef0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x9fcae1),_0x192ef0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53c260,_0x21b307,_0x253285)=>{const _0x229b43=_0x53c260['map'](_0x586024=>_0x586024['getContainedElement']())['filter'](_0x3b05d4=>_0x3b05d4),_0x45cf8b=new Map(_0x229b43['map'](_0x256eb5=>[_0x256eb5,null]));if(_0x299481){for(const {element:_0x385c88,attributes:_0x3ec01a}of _0x299481['cells'])_0x3ec01a&&_0x45cf8b['set'](_0x385c88,_0x3ec01a);}else{if(_0x253285&&_0x253285['markerAttributes'])for(const [_0x3c83ec,_0xd48bc9]of Object['entries'](_0x253285['markerAttributes'])){const _0x55bea1=_0x279bac['model']['markers']['get'](_0x3c83ec),_0x3d62dd=_0x55bea1?_0x55bea1['getRange']()['getContainedElement']():null;_0x3d62dd&&_0x45cf8b['set'](_0x3d62dd,_0xd48bc9);}}_0x279bac['model']['change'](_0x36beac=>{for(const [_0x16546a,_0x4452d9]of _0x45cf8b)_0x36beac['setAttributes']({...xe,..._0x4452d9},_0x16546a);});});const _0x2b55f7=(_0x48315e,_0x3037b9)=>{_0x192ef0['_suggestionFactory']['registerCustomCallback'](_0x48315e,'tablePaste',_0x3037b9,(_0x3065d8,_0x5c54b7,_0x2a54ec)=>{_0x279bac['model']['change'](_0x58cc50=>{const _0x45c533=[];for(const _0x5aca97 of _0x3065d8){const _0x59f6b2=_0x5aca97['start']['nodeAfter'];_0x59f6b2['is']('element','tableCellSuggestion')&&_0x45c533['push'](_0x59f6b2);}_0x192ef0['_suggestionFactory']['getSuggestionCallback'](_0x48315e,null,_0x3037b9)(_0x3065d8,_0x5c54b7,_0x2a54ec);for(const _0x4cb33d of _0x45c533)'$graveyard'!=_0x4cb33d['root']['rootName']&&_0x58cc50['unwrap'](_0x4cb33d);});});};_0x2b55f7('insertion','accept'),_0x2b55f7('insertion','discard'),_0x2b55f7('deletion','accept'),_0x2b55f7('deletion','discard'),_0x192ef0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x55265c=>{const _0x106600=_0x55265c['map'](_0x9cbeee=>_0x9cbeee['getContainedElement']()),_0x58bca3=_0x106600[0x0]['findAncestor']('table'),{minRow:_0x2fbce3,maxRow:_0x13afe7}=_0x5dc28f['_getCoordsForCells'](_0x106600);_0x37983d['removeRows'](_0x58bca3,{'at':_0x2fbce3,'rows':_0x13afe7-_0x2fbce3+0x1});}),_0x192ef0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1a8d12=>{const _0x44d46f=_0x1a8d12['map'](_0x3b4fc1=>_0x3b4fc1['getContainedElement']()),_0x3c17d5=_0x44d46f[0x0]['findAncestor']('table'),{minColumn:_0x24e621,maxColumn:_0x58ce28}=_0x5dc28f['_getCoordsForCells'](_0x44d46f);_0x37983d['removeColumns'](_0x3c17d5,{'at':_0x24e621,'columns':_0x58ce28-_0x24e621+0x1});});const _0x3f19f9=(_0x39fc6e,_0x397449)=>{if(!_0x397449['subType']||!_0x397449['subType']['startsWith']('tablePaste'))return;const _0x33aa1a=_0x397449['attributes']['tablePasteChainId'],_0x1503a0=_0x192ef0['getSuggestions']()['filter'](_0x493fd4=>_0x493fd4['isInContent']&&_0x493fd4['attributes']&&_0x493fd4['attributes']['tablePasteChainId']==_0x33aa1a);_0x1503a0['length']&&_0x397449['getAllAdjacentSuggestions']()['length']!=_0x1503a0['length']&&_0x1503a0['reduce']((_0xa1dda0,_0x2555e0)=>(_0xa1dda0['next']=_0x2555e0,_0x2555e0['previous']=_0xa1dda0,_0x2555e0));};function _0x430ecb(_0x28fdbc,_0x84bdd4=!0x0){const {id:_0x114b67,authorId:_0x2030f3}=_0x192ef0['_splitMarkerName'](_0x28fdbc['markerName']),_0x29375c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xe141f=_0x192ef0['activeMarkers']['includes'](_0x28fdbc['markerName']);return _0xe141f&&_0x29375c['push']('ck-suggestion-marker--active'),{'classes':_0x29375c,'attributes':{'data-suggestion':_0x114b67,'data-author-id':_0x2030f3},'priority':_0xe141f&&_0x84bdd4?0xbc2:0xbb8};}_0x192ef0['on']('suggestionLoaded',_0x3f19f9,{'priority':'high'}),_0x192ef0['on']('suggestionUnloaded',_0x3f19f9,{'priority':'high'}),_0x279bac['model']['document']['registerPostFixer'](()=>{let _0x222535=!0x1;const _0xcdf87f=Array['from'](_0x279bac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5939a0,data:_0x3d5d3f}of _0xcdf87f){const {group:_0x542e8f,type:_0x30f209,id:_0x219cea}=_0x192ef0['_splitMarkerName'](_0x5939a0);if('suggestion'!=_0x542e8f||'deletion'!=_0x30f209||_0x3d5d3f['oldRange'])continue;if(!_0x192ef0['hasSuggestion'](_0x219cea))continue;const _0xfefe44=_0x192ef0['getSuggestion'](_0x219cea)['getRanges'](),_0x2bccb7=_0x279bac['plugins']['get']('Users')['me'];for(const _0x1dbb06 of _0x192ef0['getSuggestions']()){if(!_0x1dbb06['isInContent']||_0x1dbb06['author']!=_0x2bccb7)continue;if('formatBlock'!=_0x1dbb06['type']||'tablePasteCell'!=_0x1dbb06['subType'])continue;if(_0x1dbb06['getRanges']()['every'](_0x3aa7be=>_0xfefe44['some'](_0x25acdd=>_0x25acdd['containsRange'](_0x3aa7be,!0x0)))){for(const _0x5bb7e3 of _0x1dbb06['getAllAdjacentSuggestions']())_0x5bb7e3['isInContent']&&(_0x5bb7e3['discard'](),_0x222535=!0x0);}}}return _0x222535;}),_0x279bac['model']['document']['registerPostFixer'](_0x3f1272=>{const _0x54feca=_0x279bac['commands']['get']('redo');if(!_0x54feca||!_0x54feca['_createdBatches']['has'](_0x3f1272['batch']))return!0x1;let _0x44319b=!0x1;const _0xcf3a06=_0x279bac['plugins']['get']('Users')['me'],_0x27844c=_0x279bac['model']['document']['differ']['getChanges'](),_0x3c51d1=Array['from'](_0x279bac['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x193bb4,data:_0x27b3c9})=>{const {group:_0x3df7b8,subType:_0x27f994,authorId:_0x2ef558}=_0x192ef0['_splitMarkerName'](_0x193bb4);return'suggestion'==_0x3df7b8&&'tablePaste'==_0x27f994&&_0x2ef558==_0xcf3a06['id']&&!_0x27b3c9['oldRange'];});for(const _0x5e7a83 of _0x27844c){if('insert'!=_0x5e7a83['type']||'tableCellSuggestion'!=_0x5e7a83['name']||0x1!=_0x5e7a83['length'])continue;const _0x402116=_0x3f1272['createRange'](_0x5e7a83['position'],_0x5e7a83['position']['getShiftedBy'](0x1));if(!_0x3c51d1['find'](({data:_0x3ec8c9})=>_0x3ec8c9['newRange']['isEqual'](_0x402116))){for(const {name:_0x414b19,data:_0x2b48ea}of _0x3c51d1)if(_0x402116['containsRange'](_0x2b48ea['newRange'])){_0x3f1272['updateMarker'](_0x414b19,{'range':_0x402116}),_0x44319b=!0x0;break;}}}return _0x44319b;}),_0x279bac['model']['document']['registerPostFixer'](_0x1a9456=>{let _0x1a17cc=!0x1;const _0x2bfa97=_0x279bac['plugins']['get']('Users')['me'],_0x23a441=_0x192ef0['getSuggestions']()['filter'](_0x350c86=>_0x350c86['isInContent']&&_0x350c86['author']==_0x2bfa97),_0x2451cf=new Set(),_0x5874d9=new Set();for(const _0x44e166 of _0x23a441)if('tablePaste'==_0x44e166['subType'])for(const _0xdc8506 of _0x44e166['getMarkers']()){const _0x36c84a=_0xdc8506['getRange']()['getContainedElement']();if(_0x36c84a){if(_0x36c84a['is']('element','tableCellSuggestion')&&Oe(_0x36c84a)){_0x44e166['removeMarker'](_0xdc8506['name']),_0x2451cf['add'](_0x36c84a),_0x1a17cc=!0x0;const _0x168092=_0x36c84a['nextSibling'],_0x56a3b7=_0x36c84a['previousSibling'],_0xf4280e=_0x168092&&_0x168092['is']('element','tableCellSuggestion'),_0x336e87=_0x56a3b7&&_0x56a3b7['is']('element','tableCellSuggestion');_0xf4280e&&!_0x2451cf['has'](_0x168092)&&_0x5874d9['add'](_0x168092),_0x336e87&&!_0x2451cf['has'](_0x56a3b7)&&_0x5874d9['add'](_0x56a3b7);}else _0x36c84a['is']('element','paragraph')&&_0x36c84a['isEmpty']&&(_0x44e166['removeMarker'](_0xdc8506['name']),_0x1a17cc=!0x0);}}else{if('tablePasteCell'==_0x44e166['subType']){if(!_0x44e166['attributes']||!_0x44e166['attributes']['tablePasteChainId'])continue;const _0x3ac953=_0x44e166['attributes']['markerAttributes'];if(_0x3ac953&&Object['keys'](_0x3ac953)['length'])continue;const _0x25b9c3=_0x44e166['attributes']['tablePasteChainId'];let _0x508161=!0x0,_0xd07ec8=!0x0;for(const _0xba25a7 of _0x23a441)if(_0xba25a7['subType']&&_0xba25a7['subType']['startsWith']('tablePaste')){if(!_0xba25a7['attributes']['tablePasteChainId']){_0xd07ec8=!0x1;break;}if(_0xba25a7['id']!=_0x44e166['id']&&_0xba25a7['attributes']['tablePasteChainId']==_0x25b9c3){_0x508161=!0x1;break;}}_0xd07ec8&&_0x508161&&(_0x44e166['removeMarkers'](),_0x1a17cc=!0x0);}}for(const _0x280146 of _0x2451cf)_0x1a9456['remove'](_0x280146);for(const _0x2148ba of _0x5874d9)_0x1a9456['unwrap'](_0x2148ba);return _0x1a17cc;}),_0x279bac['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1a2aa9=>_0x430ecb(_0x1a2aa9),'converterPriority':'high'}),_0x279bac['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x575008,_0x20e977)=>_0x20e977['options']['showSuggestionHighlights']?_0x430ecb(_0x575008,!0x1):null,'converterPriority':'high'});const _0x593747=_0x279bac['editing']['view'];this['listenTo'](_0x593747['document'],'clipboardOutput',(_0x5d5b11,_0x1d3a28)=>{const _0x50ae4a=[];for(const _0xcfe3b1 of _0x593747['createRangeIn'](_0x1d3a28['content'])['getItems']())_0xcfe3b1['is']('element','suggestion-td')&&_0x50ae4a['push'](_0xcfe3b1);_0x593747['change'](_0x588ace=>{for(const _0x28795a of _0x50ae4a)_0x588ace['move'](_0x588ace['createRangeIn'](_0x28795a),_0x588ace['createPositionBefore'](_0x28795a)),_0x588ace['remove'](_0x28795a);});});}}function Oe(_0x4055c6){if(_0x4055c6['isEmpty'])return!0x0;const _0x1c4047=_0x4055c6['getChild'](0x0);return _0x1c4047['is']('element','paragraph')&&_0x1c4047['isEmpty'];}function Ue(_0x1bc066,_0x3eaca2={},_0x51dea7){for(const {isAnchor:_0x2bacc2,cellHeight:_0x1cd584,cellWidth:_0x46233c}of _0x51dea7['createTableWalker'](_0x1bc066,{'includeAllSlots':!0x0,..._0x3eaca2}))if(!_0x2bacc2||0x1!=_0x1cd584||0x1!=_0x46233c)return!0x1;return!0x0;}class Dt extends _0x346e12{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5a0ef1=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a0ef1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5a0ef1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5a0ef1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a0ef1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5a0ef1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5a0ef1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x134bed,_0x3cdc2c){const _0x495cdd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54158c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x33d702=_0x3cdc2c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x20bdc4=_0x54158c['getColumnGroupElement'](_0x33d702);let _0x2b94ed=_0x20bdc4?_0x54158c['getTableColumnsWidths'](_0x20bdc4):null,_0x313fa3=_0x33d702['getAttribute']('tableWidth')||null;const _0x23d219=_0x3cdc2c['tableWidth']||_0x313fa3,_0x3a1e98=_0x3cdc2c['columnWidths']||_0x2b94ed,_0x128f34=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f4012 of _0x495cdd['getSuggestions']()){const _0x5282dd=_0x3f4012['getContainedElement']();if('resizeTable'===_0x3f4012['subType']&&_0x5282dd===_0x33d702){_0x3f4012['author']!==_0x128f34&&_0x3f4012['discard']();const _0x41f0e7=_0x3f4012['data']['commandParams'];_0x313fa3=_0x41f0e7[0x0]['tableWidth'],_0x2b94ed=_0x41f0e7[0x0]['columnWidths'];break;}}_0x134bed({'table':_0x33d702,'tableWidth':_0x23d219,'columnWidths':_0x3a1e98}),_0x495cdd['markBlockFormat'](_0x33d702,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x313fa3,'columnWidths':_0x2b94ed}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3b0e0c){if('formatBlock'!=_0x3b0e0c['type']&&'formatInline'!=_0x3b0e0c['type'])return;const {data:_0x4f87d3}=_0x3b0e0c;if(_0x4f87d3&&'resizeTable'===_0x4f87d3['formatGroupId']){const _0x41250c='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x41250c)};}}}class Mt extends _0x346e12{['afterInit'](){const _0x2040dd=this['editor'];_0x2040dd['plugins']['has']('Template')&&_0x2040dd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x346e12{['afterInit'](){const _0x257dae=this['editor'];if(!_0x257dae['commands']['get']('insertTableOfContents'))return;_0x257dae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xa28b32=_0x257dae['plugins']['get']('TrackChangesEditing'),_0x229adf=_0x257dae['locale'];_0xa28b32['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1f009e=>c(_0x229adf,'ELEMENT_TABLE_OF_CONTENTS',_0x1f009e));}}class Bt extends _0x346e12{['afterInit'](){const _0x1f3ea9=this['editor'];if(!_0x1f3ea9['plugins']['has']('Title'))return;const _0x798b79=_0x1f3ea9['plugins']['get']('TrackChangesEditing');_0x798b79['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1f3ea9['locale'],'ELEMENT_TITLE')),_0x1f3ea9['model']['document']['registerPostFixer'](_0x221a5b=>{let _0x565302=!0x1;const _0x7c23b7=Array['from'](_0x1f3ea9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3455c3,data:_0x3270d0}of _0x7c23b7){const {group:_0xf35439}=_0x798b79['_splitMarkerName'](_0x3455c3);if('suggestion'!==_0xf35439||!_0x3270d0['newRange'])continue;const _0x189592=_0x3270d0['newRange'],_0x392ffa=_0x189592['end']['nodeBefore'];if(!_0x392ffa||!_0x392ffa['is']('element','title-content'))continue;if(!_0x189592['start']['isTouching'](_0x189592['end']))continue;const _0x1f1aec=_0x1f3ea9['model']['schema']['getNearestSelectionRange'](_0x189592['end'],'forward');if(_0x1f1aec&&_0x1f1aec['isCollapsed']){const _0x2b2695=_0x221a5b['createRange'](_0x189592['start'],_0x1f1aec['start']);_0x2b2695['isEqual'](_0x189592)||(_0x221a5b['updateMarker'](_0x3455c3,{'range':_0x2b2695}),_0x565302=!0x0);}_0x565302||(_0x221a5b['removeMarker'](_0x3455c3),_0x565302=!0x0);}return _0x565302;});}}class Ot extends _0x346e12{['afterInit'](){const _0x522d08=this['editor'],_0x32ab45=_0x522d08['plugins']['get']('TrackChangesEditing');_0x522d08['plugins']['has']('Uploadcare')&&(_0x32ab45['enableCommand']('uploadcare'),_0x522d08['plugins']['has']('UploadcareImageEdit')&&(_0x32ab45['enableCommand']('uploadcareImageEdit'),_0x32ab45['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x32ab45['registerBlockAttribute']('uploadcareImageId'),_0x32ab45['descriptionFactory']['registerDescriptionCallback'](_0x163884=>{if('attribute'!=_0x163884['type'])return;const {data:_0x50c92e}=_0x163884;return _0x50c92e&&'uploadcareImageId'==_0x50c92e['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x346e12{['afterInit'](){const _0x5e174b=this['editor'],_0x213a02=_0x5e174b['plugins']['get']('TrackChangesEditing');_0x5e174b['plugins']['has']('UndoEditing')&&(_0x213a02['enableCommand']('undo'),_0x213a02['enableCommand']('redo'));}}class xt extends _0x346e12{static get['requires'](){return[_t];}['afterInit'](){const _0x25e78e=this['editor'];if(!_0x25e78e['plugins']['has']('TableCaptionEditing'))return;_0x25e78e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x346e12{['tableProperties'];['tableCellProperties'];constructor(_0x447b42){super(_0x447b42),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 _0xd1bd6c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x55f50c of this['tableProperties'])_0xd1bd6c['enableCommand'](_0x55f50c,(_0x4af43d,_0x29395b)=>{const _0xce08e1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x55f50c,[_0xce08e1],this['tableProperties'],'tableProperties',_0x4af43d,_0x29395b);});_0xd1bd6c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xd1bd6c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd1bd6c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x30ed18,_0x3aaf94)=>this['handleDiscardAction'](this['tableProperties'],_0x30ed18,_0x3aaf94)),_0xd1bd6c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x45b2b2 of this['tableCellProperties'])_0xd1bd6c['enableCommand'](_0x45b2b2,(_0x562cfc,_0x21ae0f)=>{const _0x2fe628=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x45b2b2,_0x2fe628,this['tableCellProperties'],'tableCellProperties',_0x562cfc,_0x21ae0f);});_0xd1bd6c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xd1bd6c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd1bd6c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x59ffbc,_0x25566b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x59ffbc,_0x25566b)),_0xd1bd6c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xd1bd6c['descriptionFactory']['registerDescriptionCallback'](_0x5c68cc=>this['handleSuggestionDescription'](_0x5c68cc));}['_handlePropertyChange'](_0x31c907,_0x28f5a2,_0x53ccae,_0x1fd269,_0x22128e,_0x1ccec8){const _0x3cc802=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1ccec8['batch'],()=>{for(const _0x54743b of _0x28f5a2){if(this['_getSuggestion'](_0x54743b,_0x1fd269))_0x22128e(_0x1ccec8);else{const _0x4c3b40={};for(const _0x4cfe7c of _0x53ccae){const _0x16b9c3=_0x54743b['getAttribute'](_0x4cfe7c);void 0x0!==_0x16b9c3&&(_0x4c3b40[_0x4cfe7c]=_0x16b9c3);}_0x22128e(_0x1ccec8),_0x3cc802['markBlockFormat'](_0x54743b,{'commandParams':[_0x4c3b40]},[],_0x1fd269);}}});}['handleDiscardAction'](_0x268a2c,_0x4c4a90,_0xd073e){const _0x22b3f0=_0x4c4a90[0x0]['start']['nodeAfter'],_0x21e00a=_0xd073e['commandParams'][0x0];this['editor']['model']['change'](_0x28fd07=>{for(const _0x4321d6 of _0x268a2c)void 0x0!==_0x21e00a[_0x4321d6]?_0x28fd07['setAttribute'](_0x4321d6,_0x21e00a[_0x4321d6],_0x22b3f0):_0x28fd07['removeAttribute'](_0x4321d6,_0x22b3f0);});}['handleSuggestionDescription'](_0x5a5462){if(_0x5a5462['data'])switch(_0x5a5462['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x2b6d20,_0x30256a){const _0x504c7e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x5b2d89 of _0x504c7e['getSuggestions']({'skipNotAttached':!0x0})){const _0x308138=_0x5b2d89['getContainedElement']();if(_0x5b2d89['subType']===_0x30256a&&_0x308138===_0x2b6d20)return _0x5b2d89;}return null;}}const u='$elementName';class p extends _0x346e12{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x420210,_0x56c221,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e6025){super(_0x5e6025),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2f4de5,_0x2deca3,_0x239604,_0x154cb4)=>{this['_model']['change'](()=>{for(const _0x3ccff2 of[..._0x154cb4,..._0x239604])this['_model']['markers']['has'](_0x3ccff2)&&_0x5e6025['editing']['reconvertMarker'](_0x3ccff2);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5e6025['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x5e6025['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5e6025['config']['get']('trackChanges.trackFormatChanges'),_0x5e6025['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5e6025['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5e6025,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4d8844=this['editor'],_0x1b30aa=(_0x15f4e4,_0x5db781)=>{if('attribute'!=_0x15f4e4)return'ck-suggestion-marker-'+_0x15f4e4;const _0x86106c=_0x5db781['split']('|')[0x0];return this['_isBlockAttribute'](_0x86106c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4d8844['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x104673=>{const {id:_0x26edc4,authorId:_0x1a8976,type:_0x329b2d,subType:_0x5b4aab}=this['_splitMarkerName'](_0x104673['markerName']),_0x247ec0=['ck-suggestion-marker',_0x1b30aa(_0x329b2d,_0x5b4aab)];let _0x2f3ddb=0xbb8;return this['activeMarkers']['includes'](_0x104673['markerName'])&&(_0x247ec0['push']('ck-suggestion-marker--active'),_0x2f3ddb=0xbc2),'deletion'==_0x329b2d&&(_0x2f3ddb+=0x5),{'classes':_0x247ec0,'attributes':{'data-suggestion':_0x26edc4,'data-author-id':_0x1a8976},'priority':_0x2f3ddb};}}),_0x4d8844['conversion']['for']('dataDowncast')['add'](_0x31cd56=>{_0x31cd56['on']('addMarker:suggestion',(_0x3269e4,_0x33b0f2,_0x1e1c44)=>{if(!_0x1e1c44['options']['showSuggestionHighlights'])return;const _0x350a25=_0x33b0f2['item'];if(!_0x350a25)return;const _0x6d4208=_0x1e1c44['mapper']['toViewElement'](_0x350a25);_0x4d8844['model']['schema']['isObject'](_0x350a25)&&_0x6d4208&&!_0x6d4208['getCustomProperty']('widget')&&_0x6d4208['is']('containerElement')&&_0x5da8b2(_0x6d4208,_0x1e1c44['writer']);},{'priority':'high'});}),_0x4d8844['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xf05471,_0x318537)=>{if(!_0x318537['options']['showSuggestionHighlights'])return null;const {type:_0x620bc0,subType:_0xe8cb88}=this['_splitMarkerName'](_0xf05471['markerName']);return{'classes':['ck-suggestion-marker',_0x1b30aa(_0x620bc0,_0xe8cb88)],'priority':0xbb8};}});const _0x3a4b23=({showActiveMarkers:_0x5c324b=!0x0,isAttributeSuggestion:_0x4d221c=!0x1}={})=>(_0x2b4f84,_0x202ca5,_0x17c88f)=>{if(!_0x202ca5['item'])return;const {id:_0x37e30d,authorId:_0x33db77}=this['_splitMarkerName'](_0x202ca5['markerName']);if(_0x4d221c){const _0x5a85ae=this['_suggestions']['get'](_0x37e30d),_0x5a5ea7=this['_getAttributeKey'](_0x5a85ae);if(!this['_isBlockAttribute'](_0x5a5ea7))return;}if(_0x202ca5['item']['is']('selection'))return void _0x17c88f['consumable']['consume'](_0x202ca5['item'],_0x2b4f84['name']);const _0x261a50=_0x17c88f['mapper']['toViewElement'](_0x202ca5['item']);if(_0x202ca5['item']['is']('element')&&_0x4d8844['model']['schema']['isBlock'](_0x202ca5['item'])&&!_0x261a50['getCustomProperty']('addHighlight')){_0x17c88f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x261a50),_0x17c88f['writer']['setAttribute']('data-suggestion',_0x37e30d,_0x261a50),_0x17c88f['writer']['setAttribute']('data-author-id',_0x33db77,_0x261a50),_0x17c88f['mapper']['bindElementToMarker'](_0x261a50,_0x202ca5['markerName']),_0x5c324b&&(this['activeMarkers']['includes'](_0x202ca5['markerName'])?_0x17c88f['writer']['addClass']('ck-suggestion-marker--active',_0x261a50):_0x17c88f['writer']['removeClass']('ck-suggestion-marker--active',_0x261a50));for(const _0xcc6a93 of _0x4d8844['model']['createRangeIn'](_0x202ca5['item'])['getItems']())_0x17c88f['consumable']['consume'](_0xcc6a93,_0x2b4f84['name']);_0x17c88f['consumable']['consume'](_0x202ca5['item'],_0x2b4f84['name']);}};_0x4d8844['conversion']['for']('dataDowncast')['add'](_0x43f99b=>{_0x43f99b['on']('addMarker:suggestion:formatBlock',(_0x5344c7,_0x56f49a,_0x3e7cc7)=>{_0x3e7cc7['options']['showSuggestionHighlights']&&_0x3a4b23({'showActiveMarkers':!0x1})(_0x5344c7,_0x56f49a,_0x3e7cc7);},{'priority':'highest'});}),_0x4d8844['conversion']['for']('dataDowncast')['add'](_0x5a2059=>{_0x5a2059['on']('addMarker:suggestion:attribute',(_0x1bd1fd,_0x40f7f3,_0x598767)=>{_0x598767['options']['showSuggestionHighlights']&&_0x3a4b23({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1bd1fd,_0x40f7f3,_0x598767);},{'priority':'highest'});}),_0x4d8844['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1415bb,_0x2c4d6f)=>_0x2c4d6f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1415bb['substr'](0xb)}}),_0x4d8844['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5decad,{writer:_0x2515ca})=>{let _0x3ac799='suggestion:'+_0x5decad['getAttribute']('suggestion-type')+':'+_0x5decad['getAttribute']('id');return _0x5decad['getAttribute']('marker-count')&&(_0x3ac799+=':'+_0x5decad['getAttribute']('marker-count')),_0x2515ca['createElement']('$marker',{'data-name':_0x3ac799});}}),_0x4d8844['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4d8844['conversion']['for']('editingDowncast')['add'](_0x48cbf2=>{_0x48cbf2['on']('addMarker:suggestion:formatBlock',_0x3a4b23(),{'priority':'high'});}),_0x4d8844['conversion']['for']('editingDowncast')['add'](_0x438802=>{_0x438802['on']('addMarker:suggestion:attribute',_0x3a4b23({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4d8844['conversion']['for']('editingDowncast')['add'](_0x40aa0d=>{_0x40aa0d['on']('removeMarker:suggestion:formatBlock',(_0x9be042,_0x44160a,_0x432751)=>{const _0x4c9fc2=_0x432751['mapper']['markerNameToElements'](_0x44160a['markerName']);if(_0x4c9fc2){for(const _0x221c97 of _0x4c9fc2)_0x221c97['getCustomProperty']('addHighlight')||(_0x432751['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x221c97),_0x432751['writer']['removeAttribute']('data-suggestion',_0x221c97),_0x432751['writer']['removeAttribute']('data-author-id',_0x221c97),_0x432751['mapper']['unbindElementFromMarkerName'](_0x221c97,_0x44160a['markerName']));}},{'priority':'high'});}),_0x4d8844['conversion']['for']('editingDowncast')['add'](_0x3c6d2f=>{_0x3c6d2f['on']('removeMarker:suggestion:attribute',(_0x744708,_0x1837a0,_0x27df54)=>{const _0x3c4547=_0x27df54['mapper']['markerNameToElements'](_0x1837a0['markerName']);if(!_0x3c4547)return;const {id:_0xc36409}=this['_splitMarkerName'](_0x1837a0['markerName']),_0x4c9944=this['_suggestions']['get'](_0xc36409),_0x3e04a6=this['_getAttributeKey'](_0x4c9944);if(this['_isBlockAttribute'](_0x3e04a6)){for(const _0x3bee2d of _0x3c4547)_0x3bee2d['getCustomProperty']('addHighlight')||(_0x27df54['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3bee2d),_0x27df54['writer']['removeAttribute']('data-suggestion',_0x3bee2d),_0x27df54['writer']['removeAttribute']('data-author-id',_0x3bee2d),_0x27df54['mapper']['unbindElementFromMarkerName'](_0x3bee2d,_0x1837a0['markerName']));}},{'priority':'high'});}),_0x4d8844['model']['document']['registerPostFixer'](_0x3ab01b=>{let _0x4afae2=!0x1;const _0x5cac99=Array['from'](_0x4d8844['model']['document']['differ']['getChangedMarkers']()),_0x274def=new Set();for(const {name:_0xc1529c,data:_0x3c9b39}of _0x5cac99){const {group:_0xbe5ef5,type:_0x3c19b4,subType:_0x47ea2e,id:_0x577c3c}=this['_splitMarkerName'](_0xc1529c);if('suggestion'!==_0xbe5ef5)continue;const _0x293f5f=this['_suggestions']['get'](_0x577c3c);if(null!=_0x3c9b39['newRange']){'formatInline'==_0x3c19b4&&(_0x4afae2=_0x4afae2||Pt(_0x3c9b39['newRange'],_0xc1529c,_0x3ab01b,_0x4d8844['model']['schema']));const _0x51194a='attribute'==_0x3c19b4&&this['_isBlockAttribute'](_0x47ea2e['split']('|')[0x0]);if(_0x3c9b39['newRange']['isCollapsed']||'$graveyard'==_0x3c9b39['newRange']['root']['rootName']||'formatBlock'==_0x3c19b4&&!Lt(_0x3c9b39['newRange'])||_0x51194a&&!Lt(_0x3c9b39['newRange'])||'deletion'==_0x3c19b4&&!(!Ft(_0x14636d=_0x3c9b39['newRange'])&&!function(_0x4e4769){return _0x4e4769['start']['parent']==_0x4e4769['end']['nodeBefore']&&_0x4e4769['start']['isAtEnd'];}(_0x14636d)))_0x3ab01b['removeMarker'](_0xc1529c),_0x4afae2=!0x0;else{if(!_0x293f5f||!_0x293f5f['isInContent'])continue;if(_0x3c9b39['newRange']&&_0x3c9b39['oldRange']&&_0x3c9b39['newRange']['isEqual'](_0x3c9b39['oldRange']))continue;_0x274def['add'](_0x293f5f);}}}var _0x14636d;return _0x274def['size']>0x0&&(_0x4afae2=!!this['_joinWithAdjacentSuggestions'](_0x274def)||_0x4afae2),_0x4afae2;}),_0x4d8844['model']['document']['registerPostFixer'](_0x4337e6=>{let _0x17705f=!0x1;for(const _0x46e16d of _0x4d8844['model']['document']['differ']['getChanges']())if('insert'==_0x46e16d['type'])for(const _0x4325d1 of this['_suggestions']['values']()){if(_0x4325d1['isMultiRange']||!_0x4325d1['isInContent'])continue;const _0x31fc8c='formatBlock'==_0x4325d1['type'],_0x4f4842=this['_getAttributeKey'](_0x4325d1),_0x37a887=_0x4f4842&&this['_isBlockAttribute'](_0x4f4842);if(!_0x31fc8c&&!_0x37a887)continue;const _0x279a99=_0x4325d1['getFirstRange']();if(_0x279a99['start']['parent']!=_0x279a99['end']['parent']&&!_0x279a99['end']['isAtEnd']){const _0x4e9c65=_0x4d8844['model']['createPositionAt'](_0x279a99['start']['nodeAfter'],'end'),_0x19969b=_0x4d8844['model']['createRange'](_0x279a99['start'],_0x4e9c65);_0x4337e6['updateMarker'](_0x4325d1['getFirstMarker'](),{'range':_0x19969b}),_0x17705f=!0x0;}}return _0x17705f;}),_0x4d8844['model']['document']['registerPostFixer'](_0x5ebf53=>this['_processAttributeChanges'](_0x5ebf53)),_0x4d8844['model']['document']['registerPostFixer'](_0x5645a0=>!_0x5645a0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5645a0)),_0x4d8844['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4d8844['model']['document']['on']('change:data',(_0x554738,_0x161f2b)=>{if(!_0x161f2b['isLocal']||_0x161f2b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x37d15d=_0x4d8844['model']['document']['differ']['getChanges']();if(0x0==_0x37d15d['length'])return;const _0x1fedf2=[],_0x4d97f5=_0x37d15d['filter'](_0xc88863=>'attribute'==_0xc88863['type']),_0x4658e6=_0x37d15d['filter'](_0x4c78bd=>'insert'==_0x4c78bd['type']&&'$text'!=_0x4c78bd['name']);for(const _0x375164 of _0x4d97f5)this['_isRegisteredAttribute'](_0x375164['attributeKey'])&&_0x1fedf2['push']({'key':_0x375164['attributeKey'],'newValue':_0x375164['attributeNewValue'],'oldValue':_0x375164['attributeOldValue'],'range':Jt(_0x375164['range'],_0x4d8844['model'])});for(const _0x304f8f of _0x4658e6){if('rename'!=_0x304f8f['action']&&'refresh'!=_0x304f8f['action'])continue;const _0x4e93ef=Kt(_0x304f8f['position']['nodeAfter'],_0x4d8844['model']),_0x24eb1=_0x304f8f['before'];'rename'==_0x304f8f['action']&&_0x1fedf2['push']({'key':u,'newValue':_0x304f8f['name'],'oldValue':_0x24eb1['name'],'range':_0x4e93ef});for(const [_0x459809,_0x2115fd]of _0x24eb1['attributes']){if(!this['_isRegisteredAttribute'](_0x459809))continue;const _0x2c7d61=_0x304f8f['attributes']['get'](_0x459809);_0x2115fd!==_0x2c7d61&&_0x1fedf2['push']({'key':_0x459809,'newValue':_0x2c7d61,'oldValue':_0x2115fd,'range':_0x4e93ef});}for(const [_0x16500f,_0x5adb98]of _0x304f8f['attributes'])this['_isRegisteredAttribute'](_0x16500f)&&(_0x24eb1['attributes']['has'](_0x16500f)||_0x1fedf2['push']({'key':_0x16500f,'newValue':_0x5adb98,'oldValue':null,'range':_0x4e93ef}));}0x0!=_0x1fedf2['length']&&_0x4d8844['model']['enqueueChange'](_0x161f2b,_0x33e155=>{const _0x2b4ebb=_0xb11af3();for(const {range:_0x4f7998,key:_0x253336,oldValue:_0x4191fd,newValue:_0xe1c979}of _0x1fedf2)this['markAttributeChange'](_0x4f7998,_0x253336,_0x4191fd,_0xe1c979,{'groupId':_0x2b4ebb});this['_reduceExistingSuggestions'](_0x33e155,_0x1fedf2);});},{'priority':'lowest'}),_0x4d8844['model']['markers']['on']('update:suggestion',(_0x1d9a38,_0xa4c12c,_0x9cef11)=>{if(null==_0x9cef11){const {id:_0x11a28b}=this['_splitMarkerName'](_0xa4c12c['name']),_0x49556d=this['_suggestions']['get'](_0x11a28b);_0x49556d&&_0x49556d['addMarkerName'](_0xa4c12c['name']);}}),_0x4d8844['model']['document']['on']('change:data',()=>{const _0x192257=Array['from'](_0x4d8844['model']['document']['differ']['getChangedMarkers']())['filter'](_0x11725b=>'suggestion'===this['_splitMarkerName'](_0x11725b['name'])['group']);if(0x0===_0x192257['length'])return;_0x192257['sort']((_0x1e0cd6,_0x338468)=>{const _0x3d59eb=_0x1e0cd6['data']['oldRange'],_0x167f5d=_0x338468['data']['oldRange'];return null===_0x3d59eb&&null===_0x167f5d?0x0:null===_0x3d59eb&&null!==_0x167f5d?-0x1:null!==_0x3d59eb&&null===_0x167f5d?0x1:_0x3d59eb['start']['isBefore'](_0x167f5d['start'])?-0x1:0x1;});const _0x1bbc85=new Set(),_0x35d975=new Set();for(const {name:_0x40c63b,data:_0x882046}of _0x192257){const {id:_0x258a30}=this['_splitMarkerName'](_0x40c63b);if(null===_0x882046['oldRange']){const _0x2a2842=this['_handleNewSuggestionMarker'](_0x40c63b);_0x35d975['add'](_0x2a2842);}else{const _0x3a9e61=this['_suggestions']['get'](_0x258a30);null!==_0x882046['newRange']||_0x3a9e61['isInContent']?(_0x1bbc85['add'](_0x3a9e61['head']),_0x35d975['add'](_0x3a9e61)):this['_removeSuggestion'](_0x3a9e61);}}_0x35d975['size']>0x0&&this['_refreshSuggestionsChain'](_0x35d975);for(const _0x2a494e of _0x1bbc85)this['fire']('suggestionChanged',_0x2a494e);}),_0x4d8844['model']['on']('applyOperation',(_0xb8d82c,_0x17e480)=>{const _0x1a5a53=_0x17e480[0x0];if(!this['_suggestions']['size'])return;if(!_0x1a5a53['isDocumentOperation'])return;if(_0x1a5a53['batch']['isUndo']||!_0x1a5a53['batch']['isLocal'])return;let _0xefdcd2,_0xc6f52a;switch(_0x1a5a53['type']){case'insert':_0xefdcd2=_0x4d8844['model']['createPositionAt'](_0x1a5a53['position']),_0xc6f52a=_0xefdcd2['getShiftedBy'](_0x1a5a53['howMany']);break;case'split':_0xefdcd2=_0x4d8844['model']['createPositionAt'](_0x1a5a53['splitPosition']),_0xc6f52a=_0x4d8844['model']['createPositionAt'](_0x1a5a53['moveTargetPosition']);break;case'move':_0xefdcd2=_0x4d8844['model']['createPositionAt'](_0x1a5a53['targetPosition']),_0xc6f52a=_0xefdcd2['getShiftedBy'](_0x1a5a53['howMany']);break;default:return;}const _0x9d9cb0=_0x4d8844['model']['createRange'](_0xefdcd2,_0xc6f52a);_0x4d8844['model']['change'](()=>{for(const {suggestion:_0x1349d5,meta:_0x31030b}of this['_findSuggestions'](_0x9d9cb0)){if(_0x1349d5['isMultiRange'])continue;if('formatInline'==_0x1349d5['type'])continue;const _0xd89867=this['_getAttributeKey'](_0x1349d5);if(_0xd89867&&this['_isBlockAttribute'](_0xd89867)&&'split'!=_0x1a5a53['type'])continue;const _0x43dce0=_0x1349d5['data']&&_0x1349d5['data']['multipleBlocks'];('formatBlock'!=_0x1349d5['type']||'split'==_0x1a5a53['type']&&!_0x43dce0)&&(_0x31030b['containsRangeInObject']||'insertion'==_0x1349d5['type']&&_0x31030b['isOwn']||_0x1349d5['getFirstRange']()['containsRange'](_0x9d9cb0)&&this['_breakSuggestionMarker'](_0x1349d5,_0xefdcd2,_0xc6f52a));}});},{'priority':'lowest'}),_0x4d8844['model']['on']('deleteContent',(_0x2ebeb1,_0x5b70a3)=>{const _0x543974=_0x5b70a3[0x0],_0x3f8ef8=_0x5b70a3[0x1];if(_0x3f8ef8&&_0x3f8ef8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x543974['isCollapsed'])return;const _0x10d685=_0x4d8844['model']['schema'],{start:_0x4501af,end:_0x4c4705}=_0x543974['getFirstRange'](),_0x270566=_0x4501af['nodeAfter']&&_0x10d685['isLimit'](_0x4501af['nodeAfter'])?null:_0x10d685['getNearestSelectionRange'](_0x4501af,'forward'),_0x1acdc4=_0x4c4705['nodeBefore']&&_0x10d685['isLimit'](_0x4c4705['nodeBefore'])?null:_0x10d685['getNearestSelectionRange'](_0x4c4705,'backward'),_0x3b338a=_0x4d8844['model']['createRange'](_0x270566?_0x270566['start']:_0x4501af,_0x1acdc4?_0x1acdc4['end']:_0x4c4705);_0x4d8844['model']['change'](_0x5e950d=>{this['markDeletion'](_0x3b338a);const _0x2cde22=_0x4d8844['model']['schema']['getNearestSelectionRange'](_0x3b338a['start']);_0x543974['is']('documentSelection')?_0x5e950d['setSelection'](_0x2cde22):_0x543974['setTo'](_0x2cde22);}),_0x2ebeb1['stop']();},{'priority':_0x1afaee['normal']+0xa}),_0x4d8844['model']['on']('insertContent',(_0x5e695f,_0x97837d)=>{const _0x501012=_0x97837d[_0x97837d['length']-0x1];_0x501012&&_0x501012['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4d8844['model']['change'](()=>{let _0x33eb6c=_0x4d8844['model']['insertContent'](_0x97837d[0x0],_0x97837d[0x1],_0x97837d[0x2],{'forceDefaultExecution':!0x0});if(!_0x33eb6c)return;_0x5e695f['return']=_0x33eb6c['clone']();const _0x90dbbc=_0x33eb6c['end']['nodeBefore'],_0x16224f=_0x4d8844['model']['schema'];_0x90dbbc&&_0x16224f['isBlock'](_0x90dbbc)&&!_0x16224f['isObject'](_0x90dbbc)&&(_0x33eb6c=_0x4d8844['model']['createRange'](_0x33eb6c['start'],_0x4d8844['model']['createPositionAt'](_0x90dbbc,'end'))),this['markInsertion'](_0x33eb6c);}),_0x5e695f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xa14190=new O(_0x4d8844,this['_suggestions']);_0x4d8844['commands']['add']('acceptSuggestion',_0xa14190),this['enableCommand']('acceptSuggestion');const _0x2637dd=new R(_0x4d8844,this['_suggestions']);_0x4d8844['commands']['add']('discardSuggestion',_0x2637dd),this['enableCommand']('discardSuggestion'),_0x4d8844['commands']['add']('acceptAllSuggestions',new x(_0x4d8844,_0xa14190,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4d8844['commands']['add']('discardAllSuggestions',new x(_0x4d8844,_0x2637dd,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4d8844['commands']['add']('acceptSelectedSuggestions',new E(_0x4d8844,_0xa14190,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4d8844['commands']['add']('discardSelectedSuggestions',new E(_0x4d8844,_0x2637dd,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5299aa=_0x4d8844['plugins']['get']('CommentsRepository');this['listenTo'](_0x5299aa,'addComment',(_0x38a746,{threadId:_0x563060})=>{const _0x53e989=this['_suggestions']['get'](_0x563060);_0x53e989&&_0x53e989['commentThread']&&0x1===_0x53e989['commentThread']['length']&&this['_updateSuggestionData'](_0x563060,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5299aa,'removeComment',(_0x3c9c06,{threadId:_0x10bb51})=>{const _0x4b309b=this['_suggestions']['get'](_0x10bb51);_0x4b309b&&_0x4b309b['commentThread']&&!_0x4b309b['commentThread']['length']&&this['_updateSuggestionData'](_0x10bb51,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2ffa6a){const _0x32a354=_0x320974([0x31,0x43,0x35,0x62,0x6a,0x34,0x51,0x36,0x79,0x66,0x61,0x68,0x65,0x69,0x30,0x76,0x4a,0x47,0x73,0x5a,0x63,0x42,0x71,0x55,0x75,0x78,0x37,0x70,0x44,0x4f,0x77,0x46,0x33,0x57,0x54,0x6e,0x4e,0x6b,0x56,0x41,0x6c,0x53,0x50,0x32,0x58,0x49,0x67,0x38,0x48,0x4c,0x74,0x59,0x7a,0x72,0x45,0x4b,0x52,0x6f,0x64,0x4d,0x6d,0x39]),_0x31249b=0x2115f1dc,_0x265e87=0x2112aebc^_0x31249b,_0x183a42=window[_0x320974([0x44,0x61,0x74,0x65])][_0x320974([0x6e,0x6f,0x77])](),_0x5a4142=_0x2ffa6a[_0x320974([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x533f88=new window[(_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45db11=>{_0x5a4142[_0x320974([0x6f,0x6e,0x63,0x65])](_0x320974([0x72,0x65,0x61,0x64,0x79]),_0x45db11);}),_0x1e29a7={[_0x320974([0x6b,0x74,0x79])]:_0x320974([0x45,0x43]),[_0x320974([0x75,0x73,0x65])]:_0x320974([0x73,0x69,0x67]),[_0x320974([0x63,0x72,0x76])]:_0x320974([0x50,0x2d,0x32,0x35,0x36]),[_0x320974([0x78])]:_0x320974([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]),[_0x320974([0x79])]:_0x320974([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]),[_0x320974([0x61,0x6c,0x67])]:_0x320974([0x45,0x53,0x32,0x35,0x36])},_0x4e9f42=_0x5a4142[_0x320974([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x320974([0x67,0x65,0x74])](_0x320974([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c2186(){let _0x4843ac,_0x39da5a=null,_0x15b04f=null;try{if(_0x4e9f42==_0x320974([0x47,0x50,0x4c]))return _0x320974([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4843ac=_0x1e139d(),!_0x4843ac)return _0x320974([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4843ac[_0x320974([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x15b04f=_0x1cc1f1(_0x4843ac[_0x320974([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4843ac[_0x320974([0x6a,0x74,0x69])])),await _0x2a943b()?_0x1ef57d()?_0x337c96()?_0x320974([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11cc13()?(_0x4843ac[_0x320974([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x320974([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39da5a=_0x5c723e(_0x320974([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4843ac[_0x320974([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x320974([0x74,0x72,0x69,0x61,0x6c])&&(_0x39da5a=_0x5c723e(_0x320974([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1422b1()):_0x320974([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x320974([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x320974([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1a6eb1){return _0x320974([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x337c96(){const _0x58adba=[_0x320974([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x320974([0x74,0x72,0x69,0x61,0x6c])][_0x320974([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4843ac[_0x320974([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x183a42/0x3e8:0xe10*_0x265e87;return _0x4843ac[_0x320974([0x65,0x78,0x70])]<_0x58adba;}function _0x1ef57d(){const _0x3f8374=_0x4843ac[_0x320974([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3f8374)return!0x1;if(_0x3f8374[_0x320974([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x320974([0x2a])))return!0x0;if(_0x3f8374[_0x320974([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x320974([0x54,0x43])))return!0x0;if(_0x3f8374[_0x320974([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x320974([0x52,0x54,0x43]))){if(_0x284c38())return!0x0;if(_0x8b4ebb()||_0x261349())return!0x0;}return!0x1;}function _0x11cc13(){const _0x26b3ca=_0x4843ac[_0x320974([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26b3ca||0x0==_0x26b3ca[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x255b3d}=new URL(window[_0x320974([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26b3ca[_0x320974([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x255b3d))return!0x0;const _0xcd96cf=_0x255b3d[_0x320974([0x73,0x70,0x6c,0x69,0x74])](_0x320974([0x2e]));return _0x26b3ca[_0x320974([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f97d0=>_0x4f97d0[_0x320974([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x320974([0x2a])))[_0x320974([0x6d,0x61,0x70])](_0x18a3a9=>_0x18a3a9[_0x320974([0x73,0x70,0x6c,0x69,0x74])](_0x320974([0x2e])))[_0x320974([0x73,0x6f,0x6d,0x65])](_0x490324=>_0xcd96cf[_0x320974([0x65,0x76,0x65,0x72,0x79])]((_0x3e0473,_0x13fb46)=>_0x490324[_0x13fb46]===_0x3e0473||_0x490324[_0x13fb46]===_0x320974([0x2a])));}function _0x1422b1(){return _0x39da5a&&_0x15b04f?new window[(_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x320005,_0x3d8dc9)=>{_0x39da5a[_0x320974([0x74,0x68,0x65,0x6e])](_0x320005,_0x3d8dc9),_0x15b04f[_0x320974([0x74,0x68,0x65,0x6e])](_0xaea9fa=>{_0xaea9fa!=_0x320974([0x56,0x61,0x6c,0x69,0x64])&&_0x320005(_0xaea9fa);},_0x3d8dc9);}):_0x39da5a||_0x15b04f||_0x320974([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1cc1f1(_0x4f5b53,_0x2901e1){return new window[(_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a9ed0=>{if(_0x46ecc3())return _0x4a9ed0(_0x320974([0x56,0x61,0x6c,0x69,0x64]));_0x2e90a6(),_0x5a4142[_0x320974([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x320974([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2abbf6=!0x1;const _0x1e76fb=_0xb11af3();function _0x2f3dbb(_0x3d353e){return!!_0x3d353e&&(typeof _0x3d353e===_0x320974([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3d353e===_0x320974([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3d353e[_0x320974([0x74,0x68,0x65,0x6e])]===_0x320974([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3d353e[_0x320974([0x63,0x61,0x74,0x63,0x68])]===_0x320974([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x328469(_0x22c8f7){_0x5681c8(_0x22c8f7)[_0x320974([0x74,0x68,0x65,0x6e])](_0x2eb04a=>{if(!_0x2eb04a||_0x2eb04a[_0x320974([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x320974([0x6f,0x6b]))return _0x320974([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x25b8a8(_0x3a4f45(_0x1e76fb+_0x2901e1))!=_0x2eb04a[_0x320974([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x320974([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x320974([0x56,0x61,0x6c,0x69,0x64]);})[_0x320974([0x74,0x68,0x65,0x6e])](_0x239aff=>(_0x191ca5(),_0x239aff),()=>{const _0x1b30b7=_0x5b21df();return null==_0x1b30b7?(_0x191ca5(),_0x320974([0x56,0x61,0x6c,0x69,0x64])):_0x320974(_0x183a42-_0x1b30b7>(0x51975dc^_0x31249b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x320974([0x74,0x68,0x65,0x6e])](_0x4a9ed0)[_0x320974([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a9ed0(_0x320974([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xee0fc0=0x21231f5c^_0x31249b;function _0x191ca5(){const _0x2dc36c=_0x320974([0x6c,0x6c,0x63,0x74,0x2d])+_0x25b8a8(_0x3a4f45(_0x4f5b53)),_0x913692=_0x22155b(_0x25b8a8(window[_0x320974([0x4d,0x61,0x74,0x68])][_0x320974([0x63,0x65,0x69,0x6c])](_0x183a42/_0xee0fc0)));window[_0x320974([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x320974([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dc36c,_0x913692);}function _0x5b21df(){const _0xa1778f=_0x320974([0x6c,0x6c,0x63,0x74,0x2d])+_0x25b8a8(_0x3a4f45(_0x4f5b53)),_0x34c7d9=window[_0x320974([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x320974([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa1778f);return _0x34c7d9?window[_0x320974([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22155b(_0x34c7d9),0x10)*_0xee0fc0:null;}function _0x5681c8(_0xdda5d3){return new window[(_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a4d56,_0x1e718b)=>{_0xdda5d3[_0x320974([0x74,0x68,0x65,0x6e])](_0x2a4d56,_0x1e718b),window[_0x320974([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e718b,0x2114251c^_0x31249b);});}}_0x5a4142[_0x320974([0x6f,0x6e])](_0x320974([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x187a44,_0x18e976)=>{if(_0x18e976[0x0]!=_0x4f5b53)return _0x4a9ed0(_0x320974([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x18e976[0x1]={..._0x18e976[0x1],[_0x320974([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e76fb};},{[_0x320974([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x320974([0x68,0x69,0x67,0x68])}),_0x5a4142[_0x320974([0x6f,0x6e])](_0x320974([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49bf38=>{_0x2f3dbb(_0x49bf38[_0x320974([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2abbf6=!0x0,_0x328469(_0x49bf38[_0x320974([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x320974([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x320974([0x6c,0x6f,0x77])}),_0x533f88[_0x320974([0x74,0x68,0x65,0x6e])](()=>{_0x2abbf6||_0x4a9ed0(_0x320974([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x46ecc3(){return _0x5a4142[_0x320974([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x320974([0x76,0x69,0x65,0x77])][_0x320974([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x320974([0x61,0x75,0x74,0x6f]);}function _0x2e90a6(){_0x5a4142[_0x320974([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x320974([0x76,0x69,0x65,0x77])][_0x320974([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x320974([0x61,0x75,0x74,0x6f]);}}function _0x5c723e(_0x584d5b){const _0x37708c=[new window[(_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x409216=>setTimeout(_0x409216,0x211ccf10^_0x31249b)),_0x533f88[_0x320974([0x74,0x68,0x65,0x6e])](()=>new window[(_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cd8df=>{let _0x287670=0x0;_0x5a4142[_0x320974([0x6d,0x6f,0x64,0x65,0x6c])][_0x320974([0x6f,0x6e])](_0x320974([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x17d21a,_0x4c885f)=>{_0x4c885f[0x0][_0x320974([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x287670++,_0x287670==(0x2115f024^_0x31249b)&&(_0x5cd8df(),_0x17d21a[_0x320974([0x6f,0x66,0x66])]());});}))];return window[_0x320974([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x320974([0x72,0x61,0x63,0x65])](_0x37708c)[_0x320974([0x74,0x68,0x65,0x6e])](()=>_0x584d5b);}async function _0x2da07f(){await _0x533f88,_0x5a4142[_0x320974([0x6d,0x6f,0x64,0x65,0x6c])][_0x320974([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac71d,_0x5a4142[_0x320974([0x6d,0x6f,0x64,0x65,0x6c])][_0x320974([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ac71d,_0x5a4142[_0x320974([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x320974([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x284c38(){return _0x3b4945(_0x320974([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2693ac(_0x320974([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x320974([0x73,0x74,0x61,0x74,0x65])]==_0x320974([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x8b4ebb(){return _0x3b4945(_0x320974([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 _0x261349(){return _0x3b4945(_0x320974([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x484b6a(_0x239a7b){const _0x224431=_0x14c076();_0x5a4142[_0x224431]=_0x320974([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x239a7b,_0x239a7b!=_0x320974([0x56,0x61,0x6c,0x69,0x64])&&_0x2da07f();}function _0x14c076(){const _0x451a74=window[_0x320974([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x320974([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x320974([0x6e,0x6f,0x77])]())[_0x320974([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x320974([0x2e]),'');let _0x13efa6=_0x320974([0x43]);for(let _0x4e65f3=0x0;_0x4e65f3<_0x451a74[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e65f3+=0x2){let _0x1b3bdb=window[_0x320974([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x451a74[_0x320974([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4e65f3,_0x4e65f3+0x2));_0x1b3bdb>=_0x32a354[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b3bdb-=_0x32a354[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13efa6+=_0x32a354[_0x1b3bdb];}return _0x13efa6;}function _0x1e139d(){const _0x349dd2=_0x4e9f42[_0x320974([0x73,0x70,0x6c,0x69,0x74])](_0x320974([0x2e]));if(0x3!=_0x349dd2[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x10f63e(_0x349dd2[0x1]);function _0x10f63e(_0xd4c4c9){const _0x4a9b01=_0x2ea686(_0xd4c4c9);return _0x4a9b01&&_0x1552aa()?_0x4a9b01:null;function _0x1552aa(){const _0x4995f4=_0x4a9b01[_0x320974([0x6a,0x74,0x69])],_0x1b26b9=window[_0x320974([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4995f4[_0x320974([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4995f4[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x150407={..._0x4a9b01,[_0x320974([0x6a,0x74,0x69])]:_0x4995f4[_0x320974([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4995f4[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x150407[_0x320974([0x76,0x63])],_0x3a4f45(_0x150407)==_0x1b26b9;}}}async function _0x2a943b(){let _0x4095d2=!0x0;try{const _0x2d296b=_0x4e9f42[_0x320974([0x73,0x70,0x6c,0x69,0x74])](_0x320974([0x2e])),[_0x20333c,_0x98bbf6,_0x52a9d2]=_0x2d296b;return _0x4f147b(_0x20333c),await _0x5f12bb(_0x20333c,_0x98bbf6,_0x52a9d2),_0x4095d2;}catch(_0x3450c1){return!0x1;}function _0x4f147b(_0x43adda){const _0xc8cff6=_0x2ea686(_0x43adda);_0xc8cff6&&_0xc8cff6[_0x320974([0x61,0x6c,0x67])]==_0x320974([0x45,0x53,0x32,0x35,0x36])||(_0x4095d2=!0x1);}async function _0x5f12bb(_0x2c8628,_0x25e747,_0x3e0343){const _0x4699e2=window[_0x320974([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x320974([0x66,0x72,0x6f,0x6d])](_0x1367e3(_0x3e0343),_0x3c370a=>_0x3c370a[_0x320974([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2c775e=new window[(_0x320974([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x320974([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c8628+_0x320974([0x2e])+_0x25e747),_0x3193ff=window[_0x320974([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x320974([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3193ff)return;const _0x392822=await _0x3193ff[_0x320974([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x320974([0x6a,0x77,0x6b]),_0x1e29a7,{[_0x320974([0x6e,0x61,0x6d,0x65])]:_0x320974([0x45,0x43,0x44,0x53,0x41]),[_0x320974([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x320974([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x320974([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3193ff[_0x320974([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x320974([0x6e,0x61,0x6d,0x65])]:_0x320974([0x45,0x43,0x44,0x53,0x41]),[_0x320974([0x68,0x61,0x73,0x68])]:{[_0x320974([0x6e,0x61,0x6d,0x65])]:_0x320974([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x392822,_0x4699e2,_0x2c775e)||(_0x4095d2=!0x1);}}function _0x2ea686(_0x1b78b0){return _0x1b78b0[_0x320974([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x320974([0x65,0x79]))?JSON[_0x320974([0x70,0x61,0x72,0x73,0x65])](_0x1367e3(_0x1b78b0)):null;}function _0x1367e3(_0x53b25f){return window[_0x320974([0x61,0x74,0x6f,0x62])](_0x53b25f[_0x320974([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x320974([0x2b]))[_0x320974([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x320974([0x2f])));}function _0x3a4f45(_0x5079f3){let _0x2339a1=0x1505;function _0xc6eee4(_0x255aa7){for(let _0x533eac=0x0;_0x533eac<_0x255aa7[_0x320974([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x533eac++){const _0x5c65ff=_0x255aa7[_0x320974([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x533eac);_0x2339a1=(_0x2339a1<<0x5)+_0x2339a1+_0x5c65ff,_0x2339a1&=_0x2339a1;}}function _0x1702f0(_0x43966c){Array[_0x320974([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x43966c)?_0x43966c[_0x320974([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1702f0):_0x43966c&&typeof _0x43966c==_0x320974([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x320974([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x43966c)[_0x320974([0x73,0x6f,0x72,0x74])]()[_0x320974([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x58f8fa,_0x1bdba3])=>{_0xc6eee4(_0x58f8fa),_0x1702f0(_0x1bdba3);}):_0xc6eee4(window[_0x320974([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x43966c));}return _0x1702f0(_0x5079f3),_0x2339a1>>>0x0;}function _0x25b8a8(_0x5c546d){return _0x5c546d[_0x320974([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x320974([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x320974([0x30]));}function _0x22155b(_0xb0c926){return _0xb0c926[_0x320974([0x73,0x70,0x6c,0x69,0x74])]('')[_0x320974([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x320974([0x6a,0x6f,0x69,0x6e])]('');}function _0x3b4945(_0xd5b947){return _0x5a4142[_0x320974([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x320974([0x68,0x61,0x73])](_0xd5b947);}function _0x2693ac(_0x42b765){return _0x5a4142[_0x320974([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x320974([0x67,0x65,0x74])](_0x42b765);}function _0x4ac71d(){}function _0x320974(_0x95406c){return _0x95406c['map'](_0x730ce=>String['fromCharCode'](_0x730ce))['join']('');}_0x484b6a(await _0x5c2186());}(this);}set['adapter'](_0x5af24a){if(this['_adapter'])throw new _0x97435f('track-changes-adapter-already-set',this);this['_adapter']=_0x5af24a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1d6f60=!0x1,toJSON:_0x5b0540=!0x1}={}){const _0x49b496=[];for(const _0x2cc111 of this['_suggestions']['values']())_0x1d6f60&&!_0x2cc111['isInContent']||_0x49b496['push'](_0x2cc111);return _0x5b0540?_0x49b496['map'](_0x58aee0=>_0x58aee0['toJSON']()):_0x49b496;}['getSuggestion'](_0x8fd19e){const _0xe130b2=this['_suggestions']['get'](_0x8fd19e);if(!_0xe130b2)throw new _0x97435f('track-changes-suggestion-not-found',this);return _0xe130b2;}['hasSuggestion'](_0xd1b794){return this['_suggestions']['has'](_0xd1b794);}['addSuggestionData'](_0x2db563){const {authorId:_0x58d8b6,id:_0x3e377b,attributes:_0x46a2c8}=_0x2db563,[_0x5882fa,_0x589d0d]=_0x2db563['type']['split'](':'),_0x1f3b2b=this['_suggestions']['get'](_0x3e377b)||this['_createSuggestion'](_0x5882fa,_0x589d0d,_0x3e377b,_0x58d8b6,_0x46a2c8);if(this['_addThreadToSuggestion'](_0x1f3b2b),this['_checkSuggestionCorrectness'](_0x1f3b2b,_0x5882fa,_0x589d0d||null,_0x58d8b6),_0x1f3b2b['createdAt']=_0x2db563['createdAt'],_0x1f3b2b['_isDataLoaded']=!0x0,_0x46a2c8&&_0x46a2c8['@external']){const _0x571853=_0x46a2c8['@external'],_0x1e2585=this['_getExternalAuthor'](_0x571853['authorName']);_0x1f3b2b['authoredAt']=_0x571853['createdAt'],_0x1f3b2b['author']=_0x1e2585,_0x1f3b2b['isExternal']=!0x0;}else _0x1f3b2b['authoredAt']=_0x2db563['createdAt'];switch(_0x2db563['data']&&(_0x1f3b2b['data']=_0x2db563['data']),_0x2db563['attributes']&&(_0x1f3b2b['attributes']=_0x2db563['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1f3b2b['_saved']=!0x0),this['_suggestionState']['get'](_0x1f3b2b)){case'notReady':this['_suggestionState']['set'](_0x1f3b2b,'dataReady');break;case'markerReady':_0x1f3b2b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1f3b2b])),this['_refreshSuggestionsChain'](new Set([_0x1f3b2b])),this['_suggestionState']['set'](_0x1f3b2b,'ready'),this['fire']('suggestionLoaded',_0x1f3b2b)):this['_suggestionState']['set'](_0x1f3b2b,'removed');}return _0x1f3b2b;}['acceptSuggestion'](_0x21da9a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3aae3a of _0x21da9a['getAllAdjacentSuggestions']())_0x3aae3a['accept']();});});}['discardSuggestion'](_0x5d302a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x450702 of _0x5d302a['getAllAdjacentSuggestions']())_0x450702['discard']();});});}['enableCommand'](_0x1483bb,_0x56b8a3){const _0x3e372a=this['editor']['commands']['get'](_0x1483bb);if(!_0x3e372a)throw new _0x97435f('track-changes-command-not-found',this,{'commandName':_0x1483bb});if(this['_enabledCommands']['has'](_0x3e372a))throw new _0x97435f('track-changes-enable-command-twice',this,{'commandName':_0x1483bb});this['_enabledCommands']['add'](_0x3e372a),_0x56b8a3&&_0x3e372a['on']('execute',(_0x1e988d,_0x2ee964)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2ee964['length']>0x0&&_0x2ee964[_0x2ee964['length']-0x1]&&_0x2ee964[_0x2ee964['length']-0x1]['forceDefaultExecution']?_0x2ee964['pop']():(_0x1e988d['return']=_0x56b8a3((..._0x35887b)=>_0x3e372a['execute'](..._0x35887b,{'forceDefaultExecution':!0x0}),..._0x2ee964),_0x1e988d['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x356973){let _0x4eb828,_0x536257;const _0x220933=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4eb828=_0x356973();}catch(_0x205c9e){_0x536257=_0x205c9e;}return _0x220933||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x536257&&_0x97435f['rethrowUnexpectedError'](_0x536257,this),_0x4eb828;}['markInsertion'](_0xca0565,_0x428c36=null,_0x15f88b={}){if(_0xca0565['isCollapsed'])return null;const _0xb6e638=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x54f6da,meta:_0x2b0dc9}of this['_findSuggestions'](_0xca0565,'insertion'))if(_0x2b0dc9['isOwn']){if(!_0x2b0dc9['isNextTo']){if(_0x2b0dc9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x54f6da,_0x15f88b))continue;return _0x54f6da;}if(zt(_0x54f6da,_0x15f88b))return _0x54f6da;this['_breakSuggestionMarker'](_0x54f6da,_0xca0565['start'],_0xca0565['end']);break;}if(_0x428c36==_0x54f6da['subType']&&zt(_0x54f6da,_0x15f88b)){const _0x56454b=_0x54f6da['getFirstRange']();return _0x56454b['start']['isEqual'](_0xca0565['end'])?this['_setSuggestionRange'](_0x54f6da,this['_model']['createRange'](_0xca0565['start'],_0x56454b['end'])):this['_setSuggestionRange'](_0x54f6da,this['_model']['createRange'](_0x56454b['start'],_0xca0565['end'])),_0x54f6da;}}const _0xf99638=_0xb11af3(),_0x2f8b06=_0xb6e638['id'],_0x3e6b4b=_0x428c36?'insertion:'+_0x428c36:'insertion',_0x2f1e69=this['_setSuggestionData']({'id':_0xf99638,'type':_0x3e6b4b,'createdAt':new Date(),'authorId':_0x2f8b06,'attributes':_0x15f88b});return this['_addSuggestionMarker'](_0x3e6b4b,_0xf99638,_0x2f8b06,_0xca0565),_0x2f1e69;}['markMultiRangeInsertion'](_0x3fc53b,_0x24260f='multi',_0x48b6ad={}){const _0x549ecf=this['editor']['plugins']['get']('Users')['me'],_0x55d08c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x24260f,'join');for(const _0x253c5b of this['getSuggestions']())if(_0x253c5b['author']['id']==_0x549ecf['id']&&'insertion'==_0x253c5b['type']&&_0x253c5b['subType']==_0x24260f&&zt(_0x253c5b,_0x48b6ad)&&(_0x55d08c(_0x253c5b['getRanges'](),_0x3fc53b)||_0x55d08c(_0x3fc53b,_0x253c5b['getRanges']()))){for(const _0x1e84a8 of _0x3fc53b)_0x253c5b['addRange'](_0x1e84a8);return _0x253c5b;}for(const {suggestion:_0x42c486,meta:_0x35dd3b}of this['_findSuggestions'](_0x3fc53b,'insertion')){if(!_0x35dd3b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x35dd3b['containsRangeInObject'])continue;if(!zt(_0x42c486,_0x48b6ad))continue;let _0x4cbf3e=!0x0;for(const _0x1878a0 of _0x42c486['getRanges']())for(const _0x3f945d of _0x3fc53b)if(!_0x1878a0['containsRange'](_0x3f945d)){_0x4cbf3e=!0x1;break;}if(_0x4cbf3e)return _0x42c486;}const _0x2ec3e1=_0xb11af3(),_0x5b5191=_0x549ecf['id'],_0xa56f8='insertion:'+_0x24260f,_0x594167=this['_setSuggestionData']({'id':_0x2ec3e1,'type':_0xa56f8,'createdAt':new Date(),'authorId':_0x5b5191,'attributes':_0x48b6ad});for(const _0x524849 of _0x3fc53b)this['_addSuggestionMarker'](_0xa56f8,_0x2ec3e1,_0x5b5191,_0x524849,o['getMultiRangeId']());return _0x594167;}['markInlineFormat'](_0x4b324c,_0x2c8e9e,_0x1c2e23=null,_0x4cab1b={}){if(_0x1c2e23=_0x1c2e23||Gt(_0x2c8e9e),_0x4b324c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x421c4b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1c2e23,'accept');return this['forceDefaultExecution'](()=>_0x421c4b([_0x4b324c],_0x2c8e9e,_0x4cab1b)),null;}const _0x515136=this['editor']['plugins']['get']('Users')['me'],_0x301771=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2a548e,meta:_0x1c906a}of this['_findSuggestions'](_0x4b324c,'insertion'))_0x1c906a['isOwn']&&!_0x1c906a['isInsideObject']&&_0x301771['push'](..._0x2a548e['getRanges']());}const _0x92722=function(_0x2b5bf4,_0x20f4ca){const _0x37c7b9=[];for(const _0x141387 of _0x20f4ca){const _0x33e399=_0x2b5bf4['getIntersection'](_0x141387);_0x33e399&&_0x37c7b9['push'](_0x33e399);}return _0x37c7b9;}(_0x4b324c,_0x301771),_0x260da5=function(_0x40b0b1,_0x22e4e2){const _0x1d43f6=[_0x40b0b1];for(const _0x5779f9 of _0x22e4e2){let _0x41e36a=0x0;for(;_0x41e36a<_0x1d43f6['length'];){const _0x162ab9=_0x1d43f6[_0x41e36a]['getDifference'](_0x5779f9);_0x1d43f6['splice'](_0x41e36a,0x1,..._0x162ab9),_0x41e36a+=_0x162ab9['length'];}}return _0x1d43f6;}(_0x4b324c,_0x301771);_0x92722['length']&&this['_model']['change'](()=>{for(const _0x193763 of _0x92722){const _0x45d69e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1c2e23,'accept');this['forceDefaultExecution'](()=>_0x45d69e([_0x193763],_0x2c8e9e,_0x4cab1b));}});for(const _0x27a535 of _0x260da5){let _0x28a6c4=null,_0x4b501d=_0x27a535['start'],_0x104bad=_0x27a535['end'];for(const {suggestion:_0x401179,meta:_0x1b3b57}of this['_findSuggestions'](_0x27a535,'formatInline')){if(!_0x1b3b57['isOwn'])continue;if(_0x401179['subType']!=_0x1c2e23)continue;if(!zt(_0x401179,_0x4cab1b))continue;const _0x207b43=_0x401179['getFirstRange']();if(_0x207b43['containsRange'](_0x27a535,!0x0))return null;_0x4b501d=_0x4b501d['isBefore'](_0x207b43['start'])?_0x4b501d:_0x207b43['start'],_0x104bad=_0x104bad['isAfter'](_0x207b43['end'])?_0x104bad:_0x207b43['end'],_0x28a6c4?_0x207b43['start']['isBefore'](_0x28a6c4['getFirstRange']()['start'])?(_0x28a6c4['removeMarkers'](),_0x28a6c4=_0x401179):_0x401179['removeMarkers']():_0x28a6c4=_0x401179;}const _0x455c49=this['_model']['createRange'](_0x4b501d,_0x104bad);if(_0x28a6c4)this['_setSuggestionRange'](_0x28a6c4,_0x455c49);else{const _0x519529=_0xb11af3(),_0x54f7e0=_0x515136['id'];this['_setSuggestionData']({'id':_0x519529,'type':'formatInline:'+_0x1c2e23,'data':_0x2c8e9e,'createdAt':new Date(),'authorId':_0x54f7e0,'attributes':_0x4cab1b}),this['_addSuggestionMarker']('formatInline:'+_0x1c2e23,_0x519529,_0x54f7e0,_0x455c49);}}return null;}['markBlockFormat'](_0x4da8dc,_0x5b717d,_0x3bd8b2=[],_0x8d8384=null,_0x2012ed={}){_0x5b717d['formatGroupId']||(_0x5b717d['formatGroupId']=_0x5b717d['commandName']),_0x5b717d['multipleBlocks']=_0x4da8dc['is']('range'),_0x8d8384=_0x8d8384||Gt(_0x5b717d);const _0x1a3b28=_0x3bd8b2['map'](_0x9871f=>Kt(_0x9871f,this['_model'])),_0x3d2ee1=_0x4da8dc['is']('range')?_0x4da8dc:Kt(_0x4da8dc,this['_model']);if('never'===this['_trackFormatChanges']){const _0x43aa89=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8d8384,'accept');return this['forceDefaultExecution'](()=>_0x43aa89([_0x3d2ee1],_0x5b717d,_0x2012ed)),null;}_0x1a3b28['push'](_0x3d2ee1);let _0x18deae=!0x0;for(const _0x235523 of _0x1a3b28)if(!this['_rangeIsInLocalUserInsertion'](_0x235523)){_0x18deae=!0x1;break;}if(_0x18deae&&'always'!==this['_trackFormatChanges']){const _0x24c4a9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x8d8384,'accept');return this['forceDefaultExecution'](()=>_0x24c4a9([_0x3d2ee1],_0x5b717d,_0x2012ed)),null;}let _0xbfccdf=null,_0x4d2a10=_0x3d2ee1['start'],_0x1b081b=_0x3d2ee1['end'];for(const {suggestion:_0x510ddf,meta:_0x19e8d0}of this['_findSuggestions'](_0x3d2ee1,'formatBlock')){if(!_0x19e8d0['isOwn'])continue;if(_0x19e8d0['isNextTo']||_0x19e8d0['containsRangeInObject']||_0x19e8d0['isInsideObject'])continue;if(_0x510ddf['data']['formatGroupId']!=_0x5b717d['formatGroupId'])continue;if(!zt(_0x510ddf,_0x2012ed))continue;const _0x3d3694=_0x510ddf['getFirstRange']();if(_0x510ddf['subType']==_0x8d8384){if(_0x3d3694['containsRange'](_0x3d2ee1,!0x0))return null;_0x4d2a10=_0x4d2a10['isBefore'](_0x3d3694['start'])?_0x4d2a10:_0x3d3694['start'],_0x1b081b=_0x1b081b['isAfter'](_0x3d3694['end'])?_0x1b081b:_0x3d3694['end'],_0xbfccdf?_0x3d3694['start']['isBefore'](_0xbfccdf['getFirstRange']()['start'])?(_0xbfccdf['removeMarkers'](),_0xbfccdf=_0x510ddf):_0x510ddf['removeMarkers']():_0xbfccdf=_0x510ddf;}else{const _0x386091=_0x3d2ee1['getIntersection'](_0x3d3694);this['_cutOutSuggestionMarker'](_0x510ddf,_0x386091);}}const _0x295a98=this['editor']['plugins']['get']('Users')['me'],_0x5dbfde=_0xb11af3(),_0x3eca5c=_0x295a98['id'];if(_0xbfccdf)return this['_setSuggestionRange'](_0xbfccdf,this['_model']['createRange'](_0x4d2a10,_0x1b081b)),_0xbfccdf;{const _0x5beb2a=this['_setSuggestionData']({'id':_0x5dbfde,'type':'formatBlock:'+_0x8d8384,'data':_0x5b717d,'createdAt':new Date(),'authorId':_0x3eca5c,'attributes':_0x2012ed});return this['_addSuggestionMarker']('formatBlock:'+_0x8d8384,_0x5dbfde,_0x3eca5c,this['_model']['createRange'](_0x4d2a10,_0x1b081b)),_0x5beb2a;}}['markMultiRangeBlockFormat'](_0x275918,_0x3c486c,_0xffbcd1=[],_0x30db4a=null,_0x47ce5e={}){_0x3c486c['formatGroupId']||(_0x3c486c['formatGroupId']=_0x3c486c['commandName']);const _0x5a8e26=_0x275918[0x0];_0x3c486c['multipleBlocks']=_0x5a8e26['is']('range'),_0x30db4a=_0x30db4a||Gt(_0x3c486c);const _0x1020c0=_0xffbcd1['map'](_0x3a5a98=>Kt(_0x3a5a98,this['_model'])),_0x17468c=_0x5a8e26['is']('range')?_0x275918:_0x275918['map'](_0x2632cf=>Kt(_0x2632cf,this['_model']));if('never'===this['_trackFormatChanges']){const _0x374a57=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30db4a,'accept');return this['forceDefaultExecution'](()=>_0x374a57(_0x17468c,_0x3c486c,_0x47ce5e)),null;}_0x1020c0['push'](..._0x17468c);let _0x14353e=!0x0;for(const _0x514470 of _0x1020c0)if(!this['_rangeIsInLocalUserInsertion'](_0x514470)){_0x14353e=!0x1;break;}if(_0x14353e&&'always'!==this['_trackFormatChanges']){const _0x56ee46=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30db4a,'accept');return this['forceDefaultExecution'](()=>_0x56ee46(_0x17468c,_0x3c486c,_0x47ce5e)),null;}const _0x120f95=this['editor']['plugins']['get']('Users')['me'];for(const _0xa16aeb of this['getSuggestions']()){if(_0xa16aeb['author']['id']!=_0x120f95['id'])continue;if('formatBlock'!=_0xa16aeb['type']||_0xa16aeb['data']['formatGroupId']!=_0x3c486c['formatGroupId'])continue;if(!zt(_0xa16aeb,_0x47ce5e))continue;const _0x6e4578=_0xa16aeb['subType']==_0x30db4a;for(let _0x212a52=0x0;_0x212a52<_0x17468c['length'];_0x212a52++){const _0x15f7e1=_0x17468c[_0x212a52];for(const _0xf0b42e of _0xa16aeb['getMarkers']()){const _0x232dce=_0xf0b42e['getRange']();if(_0x15f7e1['isEqual'](_0x232dce)){_0x6e4578?(_0x17468c['splice'](_0x212a52,0x1),_0x212a52--):_0xa16aeb['removeMarker'](_0xf0b42e['name']);break;}}}}if(0x0==_0x17468c['length'])return null;const _0x2f0423=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x30db4a,'join');for(const _0x2d27cf of this['getSuggestions']())if(_0x2d27cf['author']['id']==_0x120f95['id']&&'formatBlock'==_0x2d27cf['type']&&_0x2d27cf['data']['formatGroupId']==_0x3c486c['formatGroupId']&&_0x2d27cf['subType']==_0x30db4a&&zt(_0x2d27cf,_0x47ce5e)&&(_0x2f0423(_0x2d27cf['getRanges'](),_0x17468c)||_0x2f0423(_0x17468c,_0x2d27cf['getRanges']()))){for(const _0x52299e of _0x17468c)_0x2d27cf['addRange'](_0x52299e);return _0x2d27cf;}const _0x38218b=_0xb11af3(),_0x510d73=_0x120f95['id'],_0x22c315='formatBlock:'+_0x30db4a,_0x4c221b=this['_setSuggestionData']({'id':_0x38218b,'type':_0x22c315,'data':_0x3c486c,'createdAt':new Date(),'authorId':_0x510d73,'attributes':_0x47ce5e});for(const _0x684720 of _0x17468c)this['_addSuggestionMarker'](_0x22c315,_0x38218b,_0x510d73,_0x684720,o['getMultiRangeId']());return _0x4c221b;}['markDeletion'](_0x2cad3b,_0x276b14=null,_0x529e58={}){if(_0x2cad3b['isCollapsed'])return null;const _0x1350a1=this['editor']['plugins']['get']('Users')['me'],_0x53c36d=new _0x33a55c(_0x2cad3b['start'],_0x2cad3b['end']);for(const {suggestion:_0x21cb81,meta:_0x5b492d}of this['_findSuggestions'](_0x53c36d,'insertion'))if(_0x5b492d['isOwn']&&!_0x5b492d['isNextTo']){if(_0x21cb81['isMultiRange']){const _0x31b698=_0x21cb81['getRanges']()['filter'](_0x11afc0=>'$graveyard'!=_0x11afc0['root']['rootName']);_0x31b698['every'](_0x436605=>_0x53c36d['containsRange'](_0x436605,!0x0))&&_0x21cb81['discard']();if(_0x31b698['some'](_0x29cec5=>_0x29cec5['containsRange'](_0x53c36d,!0x0))){const _0x179a31=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x276b14,'accept');return this['forceDefaultExecution'](()=>_0x179a31([_0x53c36d],null,_0x529e58)),null;}}else{const _0x1b7e27=_0x53c36d['getIntersection'](_0x21cb81['getFirstRange']());null!==_0x1b7e27&&_0x21cb81['_onDiscard']([_0x1b7e27],null,_0x529e58);}}if(_0x53c36d['detach'](),_0x53c36d['isCollapsed']||'$graveyard'==_0x53c36d['root']['rootName'])return null;let _0x22a7b2=null,_0x51f6de=_0x53c36d['start'],_0x53567f=_0x53c36d['end'];const _0x1d181b=this['_findSuggestions'](_0x53c36d,'deletion');for(const {suggestion:_0x40c4be,meta:_0x5b2068}of _0x1d181b){const _0x3d69b7=this['_model']['createRange'](_0x51f6de,_0x53567f);if(_0x5b2068['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b2068['containsRangeInObject']&&!_0x5b2068['isInsideObject'])){if(_0x40c4be['isMultiRange']){if(!zt(_0x40c4be,_0x529e58))continue;let _0x344b3c=!0x0;for(const _0x45db44 of _0x40c4be['getRanges']()){if(_0x45db44['containsRange'](_0x3d69b7,!0x0))return _0x40c4be;_0x3d69b7['containsRange'](_0x45db44)||(_0x344b3c=!0x1);}_0x344b3c&&_0x40c4be['discard']();}else{const _0x5e2d40=_0x40c4be['getFirstRange']();if(_0x5e2d40['containsRange'](_0x3d69b7,!0x0))return _0x40c4be;if(!zt(_0x40c4be,_0x529e58)){_0x3d69b7['containsRange'](_0x5e2d40)?_0x40c4be['removeMarkers']():_0x5e2d40['containsPosition'](_0x51f6de)?_0x51f6de=_0x5e2d40['end']:_0x5e2d40['containsPosition'](_0x53567f)&&(_0x53567f=_0x5e2d40['start']);continue;}_0x51f6de=_0x51f6de['isBefore'](_0x5e2d40['start'])?_0x51f6de:_0x5e2d40['start'],_0x53567f=_0x53567f['isAfter'](_0x5e2d40['end'])?_0x53567f:_0x5e2d40['end'],_0x529e58=Object['assign']({},_0x40c4be['attributes']),_0x22a7b2?_0x5e2d40['start']['isBefore'](_0x22a7b2['getFirstRange']()['start'])?(_0x22a7b2['removeMarkers'](),_0x22a7b2=_0x40c4be):_0x40c4be['removeMarkers']():_0x22a7b2=_0x40c4be;}}}if(_0x22a7b2)return this['_setSuggestionRange'](_0x22a7b2,this['_model']['createRange'](_0x51f6de,_0x53567f)),_0x22a7b2;{const _0x32c698=_0xb11af3(),_0x301f4c=this['_model']['createRange'](_0x51f6de,_0x53567f),_0x5cf4c1=_0x1350a1['id'],_0x8f513a=_0x276b14?'deletion:'+_0x276b14:'deletion',_0x479fc5=this['_setSuggestionData']({'id':_0x32c698,'type':_0x8f513a,'createdAt':new Date(),'authorId':_0x5cf4c1,'attributes':_0x529e58});return this['_addSuggestionMarker'](_0x8f513a,_0x32c698,_0x5cf4c1,_0x301f4c),_0x479fc5;}}['markMultiRangeDeletion'](_0x19655a,_0x584f3c='multi',_0x5d5fb9={}){const _0x4d224e=this['editor']['plugins']['get']('Users')['me'],_0x2f506e=_0x19655a['map'](_0x21c2ba=>new _0x33a55c(_0x21c2ba['start'],_0x21c2ba['end'])),_0x9f4651=new Set();for(const {suggestion:_0x4060e7,meta:_0x1a39a4}of this['_findSuggestions'](_0x2f506e,'insertion'))_0x1a39a4['isOwn']&&!_0x1a39a4['isNextTo']&&_0x9f4651['add'](_0x4060e7);for(const _0x111c27 of _0x9f4651)if(_0x111c27['isMultiRange']){const _0x2a82fc=_0x111c27['getRanges']();(!_0x111c27['attributes']||!_0x111c27['attributes']['skipNestingCheck'])&&(_0x2a82fc['every'](_0x1ef86b=>_0x2f506e['some'](_0x19bd3e=>_0x19bd3e['containsRange'](_0x1ef86b,!0x0)))&&_0x111c27['discard']());if(_0x2f506e['every'](_0xcd57d5=>_0x2a82fc['some'](_0x3e02e3=>_0x3e02e3['containsRange'](_0xcd57d5,!0x0)))){const _0x56ce88=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x584f3c,'accept');return this['forceDefaultExecution'](()=>_0x56ce88(_0x19655a,null,_0x5d5fb9)),null;}}else{const _0x53f867=_0x111c27['getFirstRange']();_0x2f506e['some'](_0x1f8d59=>_0x1f8d59['containsRange'](_0x53f867,!0x0))&&_0x111c27['discard']();if(_0x2f506e['every'](_0x4c8a7a=>_0x53f867['containsRange'](_0x4c8a7a,!0x0))){const _0x13fa99=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x584f3c,'accept');return this['forceDefaultExecution'](()=>_0x13fa99(_0x2f506e,null,_0x5d5fb9)),null;}}const _0x512504=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x584f3c,'join');let _0x1ff42b=null;for(const _0x411851 of this['getSuggestions']())if(_0x411851['author']['id']==_0x4d224e['id']&&_0x411851['isInContent']&&'deletion'==_0x411851['type']&&_0x411851['subType']==_0x584f3c&&zt(_0x411851,_0x5d5fb9)&&(_0x512504(_0x411851['getRanges'](),_0x2f506e)||_0x512504(_0x2f506e,_0x411851['getRanges']()))){if(_0x1ff42b){if(_0x411851['commentThread']&&_0x411851['commentThread']['length'])continue;for(const _0x41947d of _0x411851['getRanges']())_0x1ff42b['isIntersectingWithRange'](_0x41947d)||_0x1ff42b['addRange'](_0x41947d);_0x411851['removeMarkers']();}else{_0x1ff42b=_0x411851;for(const _0x57703e of _0x2f506e)_0x411851['isIntersectingWithRange'](_0x57703e)||_0x411851['addRange'](_0x57703e);}}if(_0x1ff42b)return _0x1ff42b;_0x9f4651['clear']();for(const {suggestion:_0x4dbf6e,meta:_0x48497a}of this['_findSuggestions'](_0x2f506e,'deletion'))_0x48497a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x48497a['containsRangeInObject']&&!_0x48497a['isInsideObject'])&&zt(_0x4dbf6e,_0x5d5fb9)&&_0x9f4651['add'](_0x4dbf6e);for(const _0x54d84b of _0x9f4651){const _0x4e71a9=_0x54d84b['getRanges']();if(!_0x5d5fb9||!_0x5d5fb9['skipNestingCheck']){if(_0x2f506e['every'](_0x418622=>_0x4e71a9['some'](_0x462061=>_0x462061['containsRange'](_0x418622,!0x0))))return _0x54d84b;}(!_0x54d84b['attributes']||!_0x54d84b['attributes']['skipNestingCheck'])&&(_0x4e71a9['every'](_0x560091=>_0x2f506e['some'](_0x10117f=>_0x10117f['containsRange'](_0x560091,!0x0)))&&_0x54d84b['discard']());}const _0x1f16e7=_0xb11af3(),_0x1d2960=_0x4d224e['id'],_0x562f8d='deletion:'+_0x584f3c,_0x461151=this['_setSuggestionData']({'id':_0x1f16e7,'type':_0x562f8d,'createdAt':new Date(),'authorId':_0x1d2960,'attributes':_0x5d5fb9});for(const _0x490866 of _0x2f506e)_0x490866['detach'](),_0x490866['isCollapsed']||'$graveyard'==_0x490866['root']['rootName']||this['_addSuggestionMarker'](_0x562f8d,_0x1f16e7,_0x1d2960,_0x490866,o['getMultiRangeId']());return _0x461151;}['markAttributeChange'](_0x1f6148,_0x799211,_0x1db97e,_0x157550,_0x1dd627){if(_0x1f6148['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a4e7f=this['editor']['plugins']['get']('Users')['me']['id'],_0x16c51c=Array['from'](this['_suggestions']['values']())['filter'](_0x228aa=>'attribute'==_0x228aa['type']&&_0x228aa['data']['key']==_0x799211&&_0x228aa['isIntersectingWithRange'](_0x1f6148));if('default'===this['_trackFormatChanges']){const _0x4f03a5=this['_findSuggestions'](_0x1f6148,'insertion')['filter'](({meta:_0x1712dd})=>_0x1712dd['isOwn']&&!_0x1712dd['isInsideObject']&&!_0x1712dd['isNextTo'])['map'](({suggestion:_0x122e3d})=>_0x122e3d);_0x16c51c['unshift'](..._0x4f03a5);}const _0x2eb168=new Map([[_0x1f6148,_0x1db97e]]);for(const _0x32d4f0 of _0x16c51c){const _0x250f85='attribute'==_0x32d4f0['type']?_0x32d4f0['data']['oldValue']:void 0x0,_0x46e1cd=_0x32d4f0['getFirstRange'](),_0x1fd3f6=Array['from'](_0x2eb168['keys']())['find'](_0x462293=>_0x462293['isIntersecting'](_0x46e1cd));if(!_0x1fd3f6)continue;const _0xd80d5a=_0x1fd3f6['getDifference'](_0x46e1cd);this['_isBlockAttribute'](_0x799211)&&'insertion'==_0x32d4f0['type']&&0x0!=_0xd80d5a['length']||(_0x2eb168['delete'](_0x1fd3f6),_0xd80d5a['forEach'](_0x1ad4e9=>{_0x2eb168['set'](_0x1ad4e9,_0x1db97e);}),'insertion'!=_0x32d4f0['type']&&_0x250f85!=_0x157550&&_0x2eb168['set'](_0x1fd3f6['getIntersection'](_0x46e1cd),_0x250f85));}const _0x5b946f=[];for(const [_0x471547,_0x2d303d]of _0x2eb168){const _0x56e850=_0xb11af3(),_0x3d1d84={'key':_0x799211,'oldValue':_0x2d303d,'newValue':_0x157550};_0x799211['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':_0x799211});const _0x164b37=('attribute:'+(_0x799211+'|'+Gt({'newValue':_0x157550})))['substring'](0x0,0x3c),_0x4e2835=this['_setSuggestionData']({'id':_0x56e850,'type':_0x164b37,'data':_0x3d1d84,'createdAt':new Date(),'authorId':_0x2a4e7f,'attributes':_0x1dd627});_0x5b946f['push'](_0x4e2835),this['_addSuggestionMarker'](_0x164b37,_0x56e850,_0x2a4e7f,_0x471547);}return _0x5b946f;}['enableDefaultAttributesIntegration'](_0x2e1c69){this['enableCommand'](_0x2e1c69,(_0x3d7481,..._0x4de34a)=>{this['_recordAttributeChanges'](()=>{_0x3d7481(..._0x4de34a);});});}['registerBlockAttribute'](_0x2b1b33){this['_blockAttributeKeys']['add'](_0x2b1b33);}['registerInlineAttribute'](_0x55b619){this['_inlineAttributeKeys']['add'](_0x55b619);}['_getAttributeKey'](_0x45ed9b){return'attribute'==_0x45ed9b['type']?_0x45ed9b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5cc311,_0x3fd032){const _0x5f0cda=_0x5cc311['getFirstMarker']();this['_model']['change'](_0x4bab76=>{_0x4bab76['updateMarker'](_0x5f0cda,{'range':_0x3fd032});});}['_addThreadToSuggestion'](_0x2f8d7c){const _0x32c4f0=_0x2f8d7c['id'],_0x3e2225=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x32c4f0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3e2225,'threadId':_0x32c4f0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4f4faf=this['_commentsRepository']['getCommentThread'](_0x32c4f0);_0x4f4faf['unbind']('isRemovable'),_0x4f4faf['isRemovable']=!0x1,_0x2f8d7c['commentThread']=_0x4f4faf;}['_checkSuggestionCorrectness'](_0x5dd5c6,_0x3ba573,_0x12b455,_0x5c0f56){if(_0x5dd5c6['type']!=_0x3ba573||_0x5dd5c6['subType']!=_0x12b455||_0x5dd5c6['creator']['id']!=_0x5c0f56)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x97435f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2db836,_0x2bcf47){const _0x8d06cd=_0x2db836['getFirstRange']();if(_0x2bcf47['isEqual'](_0x8d06cd))_0x2db836['removeMarkers']();else{if(_0x8d06cd['containsRange'](_0x2bcf47)){const _0x4e4369=this['_model']['createPositionAt'](_0x2bcf47['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2db836,this['_model']['createRange'](_0x8d06cd['start'],_0x4e4369));const _0xad879d=_0xb11af3(),_0x524ef4=_0x2db836['creator']['id'],_0x2e8f03=_0x2db836['type']+':'+_0x2db836['subType'];this['_setSuggestionData']({'id':_0xad879d,'type':_0x2e8f03,'createdAt':new Date(),'authorId':_0x524ef4,'data':_0x2db836['data'],'attributes':_0x2db836['attributes']});const _0x3e7f84=this['_model']['createPositionAt'](_0x2bcf47['end']['parent'],'after'),_0x3165f7=this['_model']['createRange'](_0x3e7f84,_0x8d06cd['end']);this['_addSuggestionMarker'](_0x2e8f03,_0xad879d,_0x524ef4,_0x3165f7);}else{if(_0x8d06cd['containsPosition'](_0x2bcf47['start'])){const _0x20736a=this['_model']['createPositionAt'](_0x2bcf47['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2db836,this['_model']['createRange'](_0x8d06cd['start'],_0x20736a));}else{const _0x31473b=this['_model']['createPositionAt'](_0x2bcf47['end']['parent'],'after');this['_setSuggestionRange'](_0x2db836,this['_model']['createRange'](_0x31473b,_0x8d06cd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x387806){for(const {suggestion:_0x1d6feb,meta:_0x271d68}of this['_findSuggestions'](_0x387806,'insertion')){if(!_0x271d68['isOwn'])continue;const _0x2955d2=_0x1d6feb['getRanges']();for(const _0x14e865 of _0x2955d2)if(!_0x387806['getDifference'](_0x14e865)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x57b762){const _0x2472d1=this['editor']['plugins']['get']('Users')['getUser'](_0x57b762);if(!_0x2472d1)throw new _0x97435f('track-changes-user-not-found',this);return _0x2472d1;}['_getExternalAuthor'](_0x534909){const _0x2ac1aa=this['editor']['plugins']['get']('Users'),_0x4f9bb4=_0x573f52('external:'+_0x534909),_0x548214=_0x2ac1aa['getUser'](_0x4f9bb4);return _0x548214||_0x2ac1aa['addUser']({'id':_0x4f9bb4,'name':_0x534909});}['_createSuggestion'](_0x43a6ec,_0x57df10,_0x46042f,_0x1fc901,_0x5bad5a){const _0x357509=this['_getAuthorFromId'](_0x1fc901),_0x5a4fa9=this['_suggestionFactory']['buildSuggestion'](_0x43a6ec,_0x57df10,_0x46042f,_0x357509,_0x5bad5a,_0x2b0c43=>{this['_updateSuggestionData'](_0x46042f,{'attributes':_0x2b0c43});const _0xf6b05c=this['getSuggestion'](_0x46042f);this['_joinWithAdjacentSuggestions'](new Set([_0xf6b05c])),this['_refreshSuggestionsChain'](new Set([_0xf6b05c]));});return this['listenTo'](_0x5a4fa9,'accept',()=>{this['_updateSuggestionData'](_0x46042f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5a4fa9,'discard',()=>{this['_updateSuggestionData'](_0x46042f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x46042f,_0x5a4fa9),this['_suggestionState']['set'](_0x5a4fa9,'notReady'),_0x5a4fa9;}['_splitMarkerName'](_0xf2ee35){const _0x29df37=_0xf2ee35['split'](':');return{'group':_0x29df37[0x0],'type':_0x29df37[0x1],'subType':_0x29df37['length']>=0x5?_0x29df37[0x2]:null,'id':_0x29df37['length']<0x5?_0x29df37[0x2]:_0x29df37[0x3],'authorId':_0x29df37['length']<0x5?_0x29df37[0x3]:_0x29df37[0x4],'markerCount':0x6==_0x29df37['length']?_0x29df37[0x5]:null};}['_breakSuggestionMarker'](_0x5a5003,_0x362848,_0x50979e){const _0x47013a=_0x5a5003['getFirstRange'](),_0x3b704f=_0x47013a['start'],_0xf09a06=_0x47013a['end'];this['_setSuggestionRange'](_0x5a5003,this['_model']['createRange'](_0x3b704f,_0x362848));const _0x2ed73d=_0xb11af3(),_0x3c129c=_0x5a5003['creator']['id'],_0x3b6274=_0x5a5003['type']+(_0x5a5003['subType']?':'+_0x5a5003['subType']:'');this['_setSuggestionData']({'id':_0x2ed73d,'type':_0x3b6274,'createdAt':new Date(),'authorId':_0x3c129c,'originalSuggestionId':_0x5a5003['id'],'attributes':_0x5a5003['attributes'],'data':_0x5a5003['data']});const _0x46636a=this['_getAttributeKey'](_0x5a5003);('formatBlock'==_0x5a5003['type']||_0x46636a&&this['_isBlockAttribute'](_0x46636a))&&(_0x50979e=this['_model']['createPositionBefore'](_0x50979e['parent'])),this['_addSuggestionMarker'](_0x3b6274,_0x2ed73d,_0x3c129c,this['_model']['createRange'](_0x50979e,_0xf09a06));}['_findSuggestions'](_0x206d13,_0x2d1606=null){const _0x12a7ac=[],_0x54d75c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x206d13)||(_0x206d13=[_0x206d13]);for(const _0x300ea8 of this['getSuggestions']()){if(!_0x300ea8['isInContent'])continue;if(_0x2d1606&&_0x300ea8['type']!=_0x2d1606)continue;let _0x21e633=!0x1;for(const _0xadb9d9 of _0x300ea8['getRanges']()){for(const _0x3425a5 of _0x206d13){const _0x2a845e=_0x3425a5['start']['isEqual'](_0xadb9d9['end'])||_0x3425a5['end']['isEqual'](_0xadb9d9['start']);if(_0x2a845e||_0x3425a5['getIntersection'](_0xadb9d9)){const _0x398f6e=_0x3425a5['containsRange'](_0xadb9d9)&&Vt(this['_model']['schema'],_0xadb9d9['start'],_0x3425a5),_0x1eff74=_0xadb9d9['containsRange'](_0x3425a5)&&Vt(this['_model']['schema'],_0x3425a5['start'],_0xadb9d9);_0x12a7ac['push']({'suggestion':_0x300ea8,'meta':{'isOwn':_0x54d75c==_0x300ea8['author'],'isNextTo':_0x2a845e,'isInsideObject':_0x398f6e,'containsRangeInObject':_0x1eff74}}),_0x21e633=!0x0;break;}}if(_0x21e633)break;}}return _0x12a7ac;}['_addSuggestionMarker'](_0x3f9195,_0x2266ab,_0x32cc35,_0x49fb2a,_0x585700){this['_model']['change'](_0x24f386=>{let _0x465b3d='suggestion:'+_0x3f9195+':'+_0x2266ab+':'+_0x32cc35;_0x585700&&(_0x465b3d=_0x465b3d+':'+_0x585700),_0x24f386['addMarker'](_0x465b3d,{'range':_0x49fb2a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2d989e){const _0x474d56=_0x2d989e['previous'],_0x28367f=_0x2d989e['next'];_0x2d989e['previous']=null,_0x2d989e['next']=null,null!=_0x474d56&&_0x474d56['next']==_0x2d989e&&(_0x474d56['next']=_0x28367f),null!=_0x28367f&&_0x28367f['previous']==_0x2d989e&&(_0x28367f['previous']=_0x474d56),'ready'==this['_suggestionState']['get'](_0x2d989e)&&(this['_suggestionState']['set'](_0x2d989e,'removed'),this['fire']('suggestionUnloaded',_0x2d989e,_0x474d56,_0x28367f));}['_setSuggestionData'](_0x58583e){const _0x278a4c=_0x58583e['id'],_0x414bd5=this['addSuggestionData'](_0x58583e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x23f144=this['editor']['plugins']['get']('PendingActions'),_0x1df8a9=_0x414bd5['hasComments'],_0x28adea=_0x414bd5['subType']?_0x414bd5['type']+':'+_0x414bd5['subType']:_0x414bd5['type'],_0x27e92d=this['editor']['locale'],_0x4a4d84=_0x23f144['add'](c(_0x27e92d,'PENDING_ACTION_SUGGESTION')),_0x524f6f={'id':_0x278a4c,'type':_0x28adea,'hasComments':_0x1df8a9,'data':_0x58583e['data']||null,'originalSuggestionId':_0x58583e['originalSuggestionId']||null,'attributes':_0x414bd5['attributes']};this['_adapter']['addSuggestion'](_0x524f6f)['then'](_0x3a3ccd=>{_0x414bd5['_saved']=!0x0,_0x23f144['remove'](_0x4a4d84),_0x3a3ccd&&_0x3a3ccd['createdAt']&&(this['_suggestions']['get'](_0x278a4c)['createdAt']=_0x3a3ccd['createdAt']);})['catch'](_0x3aae12=>{throw _0x423f9c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x414bd5['discard']();}),_0x414bd5['stopListening'](),this['_suggestions']['delete'](_0x414bd5['id']),this['_suggestionState']['delete'](_0x414bd5),_0x3aae12;});}return _0x414bd5;}['_isBlockAttribute'](_0x4eb0f3){return this['_blockAttributeKeys']['has'](_0x4eb0f3);}['_updateSuggestionData'](_0xc5cdc9,_0x349445){const _0x128acf=this['editor']['plugins']['get']('PendingActions'),_0x5f1012=this['getSuggestion'](_0xc5cdc9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5f1012['_saved']){const _0x1b9af2=_0x128acf['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xc5cdc9,_0x349445)['then'](()=>{_0x128acf['remove'](_0x1b9af2);});}else _0x5f1012['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xc5cdc9,_0x349445);});}}['_getSuggestionData'](_0xfb7ee5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x97435f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xfb7ee5);}['_handleNewSuggestionMarker'](_0x1e05a1){const {id:_0x1a26cd,type:_0x524189,subType:_0x267dd3,authorId:_0x4c101e}=this['_splitMarkerName'](_0x1e05a1),_0x6ff8a0=this['_suggestions']['get'](_0x1a26cd)||this['_createSuggestion'](_0x524189,_0x267dd3,_0x1a26cd,_0x4c101e,{});switch(this['_checkSuggestionCorrectness'](_0x6ff8a0,_0x524189,_0x267dd3,_0x4c101e),this['_suggestionState']['get'](_0x6ff8a0)){case'notReady':this['_getSuggestionData'](_0x1a26cd)['then'](_0x4003af=>{let _0x231c1b=Promise['resolve']();_0x4003af['hasComments']&&(_0x231c1b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1a26cd})),_0x231c1b['then'](()=>{this['addSuggestionData'](_0x4003af)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x6ff8a0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1a26cd,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x6ff8a0,'ready'),this['fire']('suggestionLoaded',_0x6ff8a0);break;case'ready':this['fire']('suggestionChanged',_0x6ff8a0);}return _0x6ff8a0['addMarkerName'](_0x1e05a1),_0x6ff8a0;}['_refreshSuggestionsChain'](_0x59cb97){const _0x257f6d=Array['from'](_0x59cb97),_0x56eac7=_0x257f6d['filter'](_0x4a7ebe=>'attribute'==_0x4a7ebe['type']);this['_refreshAttributeSuggestionsChain'](_0x56eac7);const _0x3441c1=_0x257f6d['filter'](_0x26f2e2=>!_0x26f2e2['isMultiRange']&&'attribute'!=_0x26f2e2['type']),_0x1e36e4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3222f7=>!_0x3222f7['isMultiRange']&&'attribute'!=_0x3222f7['type']),_0x7407b7=_0x1e36e4['filter'](_0x12b01b=>!_0x59cb97['has'](_0x12b01b)),_0x413883=new Map(_0x1e36e4['map'](_0x37847a=>[_0x37847a,this['_suggestionFactory']['getSuggestionCallback'](_0x37847a['type'],_0x37847a['subType'],'chain')])),_0x32209a=new Map(_0x1e36e4['map'](_0x28fd5f=>[_0x28fd5f,_0x28fd5f['getFirstRange']()])),_0x54e46f=new Set(),_0x5993f8=new Set();for(let _0x459e32=0x0;_0x459e32<_0x3441c1['length'];_0x459e32++)_0x36b466(_0x3441c1[_0x459e32],_0x3441c1,_0x459e32+0x1);for(let _0x27e58a=0x0;_0x27e58a<_0x3441c1['length'];_0x27e58a++)_0x36b466(_0x3441c1[_0x27e58a],_0x7407b7,0x0);const _0x398085=new Set();for(let _0x33f978=0x0;_0x33f978<_0x3441c1['length'];_0x33f978++){const _0x53226f=_0x3441c1[_0x33f978];!_0x5993f8['has'](_0x53226f)&&_0x53226f['previous']&&(_0x398085['add'](_0x53226f['previous']),_0x53226f['previous']['next']===_0x53226f&&(_0x53226f['previous']['next']=null),_0x53226f['previous']=null),!_0x54e46f['has'](_0x53226f)&&_0x53226f['next']&&(_0x398085['add'](_0x53226f['next']),_0x53226f['next']['previous']===_0x53226f&&(_0x53226f['next']['previous']=null),_0x53226f['next']=null);}function _0x36b466(_0x49f6e3,_0x4c5c0a,_0x49fe2d){for(let _0x382c37=_0x49fe2d;_0x382c37<_0x4c5c0a['length'];_0x382c37++){const _0x340d0d=_0x460e34(_0x49f6e3,_0x4c5c0a[_0x382c37]);_0x340d0d&&(_0x340d0d[0x0]['next']=_0x340d0d[0x1],_0x340d0d[0x1]['previous']=_0x340d0d[0x0],_0x54e46f['add'](_0x340d0d[0x0]),_0x5993f8['add'](_0x340d0d[0x1]));}}function _0x460e34(_0x5e570c,_0xf3bd20){if(_0x5e570c['author']['id']!==_0xf3bd20['author']['id'])return null;const _0x14e4ba=_0x413883['get'](_0x5e570c)(_0x5e570c,_0xf3bd20,_0x32209a['get'](_0x5e570c),_0x32209a['get'](_0xf3bd20));if(!_0x14e4ba)return null;return _0x413883['get'](_0xf3bd20)(_0x5e570c,_0xf3bd20,_0x32209a['get'](_0x5e570c),_0x32209a['get'](_0xf3bd20))?_0x14e4ba[0x1]['commentThread']&&_0x14e4ba[0x1]['commentThread']['length']?null:_0x14e4ba:null;}_0x398085['size']&&this['_refreshSuggestionsChain'](_0x398085);}['_refreshAttributeSuggestionsChain'](_0x512f88){if(0x0==_0x512f88['length'])return;const _0x4cfcbd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46c583=>'attribute'==_0x46c583['type']&&_0x46c583['_isDataLoaded']),_0x13146c=[],_0x47d05b=new Map();for(const _0x4a103e of _0x4cfcbd){const _0x396e8f=_0x573f52(_0x4a103e['attributes']);_0x47d05b['has'](_0x396e8f)||(_0x47d05b['set'](_0x396e8f,_0x13146c['length']),_0x13146c['push']([]));const _0x561cc5=_0x47d05b['get'](_0x396e8f);_0x13146c[_0x561cc5]['push'](_0x4a103e);}!(function(){_0x13146c['sort']((_0x42034b,_0x48b01f)=>{const _0x3c262b=_0x42034b[0x0]['createdAt'],_0x4147d5=_0x48b01f[0x0]['createdAt'];return _0x3c262b==_0x4147d5?_0x42034b[0x0]['attributes']['groupId']<_0x48b01f[0x0]['attributes']['groupId']?-0x1:0x1:_0x3c262b<_0x4147d5?-0x1:0x1;});for(const _0xa2556e of _0x13146c)_0xa2556e['sort']((_0xd5b00f,_0x595641)=>_0xd5b00f['id']<_0x595641['id']?-0x1:0x1);}());for(let _0x2f539f=0x0;_0x2f539f<_0x13146c['length'];_0x2f539f++){if(0x0==_0x13146c[_0x2f539f]['length'])continue;const _0x4657dd=[];for(let _0x15786d=_0x2f539f+0x1;_0x15786d<_0x13146c['length'];_0x15786d++)0x0!=_0x13146c[_0x15786d]['length']&&_0x2cb184(_0x13146c[_0x2f539f],_0x13146c[_0x15786d])&&_0x4657dd['push'](_0x15786d);for(const _0x19ac95 of _0x4657dd)_0x13146c[_0x2f539f]=_0x13146c[_0x2f539f]['concat'](_0x13146c[_0x19ac95]),_0x13146c[_0x19ac95]=[];}for(const _0x5e3639 of _0x13146c)for(let _0x1000a5=0x0;_0x1000a5<_0x5e3639['length'];_0x1000a5++){const _0x28eedc=_0x5e3639[_0x1000a5+0x1]||null;_0x5e3639[_0x1000a5]['next']!==_0x28eedc&&(_0x5e3639[_0x1000a5]['next']=_0x28eedc);}for(const _0x8a1dd1 of _0x13146c)for(let _0x28e87c=0x0;_0x28e87c<_0x8a1dd1['length'];_0x28e87c++){const _0x1eff69=_0x8a1dd1[_0x28e87c-0x1]||null;_0x8a1dd1[_0x28e87c]['previous']!==_0x1eff69&&(_0x8a1dd1[_0x28e87c]['previous']=_0x1eff69);}function _0x2cb184(_0x250089,_0x12cdbc){if(_0x250089[0x0]['attributes']['groupId']!==_0x12cdbc[0x0]['attributes']['groupId']&&_0x250089[0x0]['author']!==_0x12cdbc[0x0]['author'])return!0x1;if(!function(_0x189981,_0x48ed5e){if(!_0x189981['hasComments']&&!_0x48ed5e['hasComments'])return!0x0;if(_0x189981['hasComments']&&_0x48ed5e['hasComments'])return!0x1;if(_0x189981['hasComments']&&_0x48ed5e['createdAt']<_0x189981['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x48ed5e['hasComments']&&_0x189981['createdAt']<_0x48ed5e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x250089[0x0],_0x12cdbc[0x0]))return!0x1;const _0x14e380=Et(_0x250089[0x0]['attributes'],'groupId'),_0x4b8fcc=Et(_0x12cdbc[0x0]['attributes'],'groupId');if(!_0x25540a(_0x14e380,_0x4b8fcc))return!0x1;return!!_0x250089['every'](_0x4ff145=>_0x12cdbc['some'](_0x14090b=>_0x4ff145['getFirstRange']()['isEqual'](_0x14090b['getFirstRange']())))&&_0x12cdbc['every'](_0x473cbb=>_0x250089['some'](_0x3b9574=>_0x473cbb['getFirstRange']()['isEqual'](_0x3b9574['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2bf1f2){const _0x2bc44e=Array['from'](_0x2bf1f2),_0x165b02=this['getSuggestions']({'skipNotAttached':!0x0}),_0x329430=_0x165b02['filter'](_0x14e3d2=>!_0x2bf1f2['has'](_0x14e3d2)),_0x5731a2=new Map(_0x2bc44e['map'](_0x3a6ed1=>[_0x3a6ed1,this['_suggestionFactory']['getSuggestionCallback'](_0x3a6ed1['type'],_0x3a6ed1['subType'],'join')])),_0x5423ab=new Map(_0x165b02['map'](_0x68b8b9=>[_0x68b8b9,_0x68b8b9['getRanges']()]));for(let _0xe36d09=0x0;_0xe36d09<_0x2bc44e['length'];_0xe36d09++){if(_0x20e992(this,_0x2bc44e[_0xe36d09],_0x2bc44e,_0xe36d09+0x1))return!0x0;}for(let _0x28f727=0x0;_0x28f727<_0x2bc44e['length'];_0x28f727++){if(_0x20e992(this,_0x2bc44e[_0x28f727],_0x329430,0x0))return!0x0;}return!0x1;function _0x20e992(_0x36701b,_0xcd4e40,_0x2b798b,_0x3ff480){for(let _0x3b0142=_0x3ff480;_0x3b0142<_0x2b798b['length'];_0x3b0142++){const _0x454f12=_0x2b798b[_0x3b0142];if(_0x454f12['type']!==_0xcd4e40['type']||_0x454f12['author']['id']!==_0xcd4e40['author']['id']||_0x454f12['subType']!==_0xcd4e40['subType'])continue;if(!qt(_0xcd4e40,_0x454f12))continue;if('attribute'==_0xcd4e40['type']&&_0xcd4e40['data']['oldValue']!=_0x454f12['data']['oldValue'])continue;if('attribute'==_0xcd4e40['type']&&_0x36701b['_isBlockAttribute'](_0xcd4e40['data']['key']))continue;if('formatBlock'==_0xcd4e40['type']){const _0x5e7638=_0x36701b['editor']['model'],_0x3fab41=_0xcd4e40['getContainedElement']();if(_0x3fab41&&(_0x5e7638['schema']['isObject'](_0x3fab41)||_0x5e7638['schema']['isLimit'](_0x3fab41)))continue;}const _0x21d88e=_0x5731a2['get'](_0xcd4e40),_0x4d010c=_0x5423ab['get'](_0xcd4e40),_0x5eaed6=_0x5423ab['get'](_0x454f12),_0x42b4ba=_0xcd4e40['commentThread']&&_0xcd4e40['commentThread']['length'],_0x2d4ed9=_0x454f12['commentThread']&&_0x454f12['commentThread']['length'];if(!_0x42b4ba&&_0x21d88e(_0x5eaed6,_0x4d010c))return _0x36701b['_joinSuggestions'](_0x454f12,_0xcd4e40),_0x5423ab['delete'](_0xcd4e40),!0x0;if(!_0x2d4ed9&&_0x21d88e(_0x4d010c,_0x5eaed6))return _0x36701b['_joinSuggestions'](_0xcd4e40,_0x454f12),_0x5423ab['delete'](_0x454f12),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3d73a9,_0x2afe18){if(_0x3d73a9['isMultiRange']){for(const _0x3d8332 of _0x2afe18['getRanges']())_0x3d73a9['addRange'](_0x3d8332);}else{const _0x17cfb6=_0x2afe18['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3d73a9,this['_model']['createRange'](_0x3d73a9['getFirstRange']()['start'],_0x17cfb6));}_0x2afe18['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3aef14,_0x169d0f,_0x2863fd){const _0x462748=_0x3aef14['startsWith']('format')||_0x3aef14['startsWith']('attribute')?'FORMATTING':_0x3aef14['toUpperCase']();return c(this['editor']['locale'],_0x169d0f+'_'+_0x462748+'_SUGGESTION_ANNOUNCEMENT',_0x2863fd);}['_initAriaMarkerChangeAnnouncements'](){const _0x1cdaef=this['editor'];if(!_0x1cdaef['ui'])return;const {ariaLiveAnnouncer:_0x53359f}=_0x1cdaef['ui'];_0x3b957d(this['_model'],({left:_0x385a67,entered:_0x3b322f})=>{for(const _0x28c30c of _0x385a67){const {group:_0x24bec2,type:_0x165243}=this['_splitMarkerName'](_0x28c30c['name']);if('suggestion'===_0x24bec2){_0x53359f['announce'](this['_getMarkerAnnouncementText'](_0x165243,'LEAVE'));break;}}for(const _0x34585f of _0x3b322f){const {group:_0x370130,type:_0x4a2880}=this['_splitMarkerName'](_0x34585f['name']);if('suggestion'===_0x370130){_0x53359f['announce'](this['_getMarkerAnnouncementText'](_0x4a2880,'ENTER',_0x28e37d(_0x20e5f6)));break;}}});}['_processAttributeChanges'](_0x4660b7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5d0381=this['editor'],_0x7ddcc0=_0x5d0381['model']['document']['differ']['getChanges']();if(0x0==_0x7ddcc0['length'])return!0x1;const _0x254d9b=[],_0x5e06c9=_0x7ddcc0['filter'](_0x235560=>'attribute'==_0x235560['type']),_0x70f0fc=_0x7ddcc0['filter'](_0x139dc9=>'insert'==_0x139dc9['type']&&'$text'!=_0x139dc9['name']),_0x5bcf0d=_0x7ddcc0['filter'](_0x5e78b1=>'remove'==_0x5e78b1['type']&&'$text'!=_0x5e78b1['name']);for(const _0x30a74f of _0x5e06c9)_0x254d9b['push']({'key':_0x30a74f['attributeKey'],'newValue':_0x30a74f['attributeNewValue'],'oldValue':_0x30a74f['attributeOldValue'],'range':Jt(_0x30a74f['range'],_0x5d0381['model'])});for(const _0x38b2dc of _0x70f0fc){const _0x21ecf8=_0x5bcf0d['find'](_0x30c395=>_0x30c395['position']['isEqual'](_0x38b2dc['position']));_0x21ecf8&&_0x254d9b['push']({'key':u,'newValue':_0x38b2dc['name'],'oldValue':_0x21ecf8['name'],'range':_0x5d0381['model']['createRangeOn'](_0x38b2dc['position']['nodeAfter'])});}return 0x0!=_0x254d9b['length']&&this['_reduceExistingSuggestions'](_0x4660b7,_0x254d9b);}['_processAttributeSuggestions'](_0xf47f03){let _0x122d56=!0x1;const _0x4cd4eb=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1c8ea3=>_0x1c8ea3['data']['newRange']&&_0x1c8ea3['name']['startsWith']('suggestion:attribute:'));for(const _0x3c9168 of _0x4cd4eb){const {subType:_0x59e835,id:_0x4dc36f}=this['_splitMarkerName'](_0x3c9168['name']),_0x50b64e=_0x59e835['split']('|')[0x0];for(const _0x304203 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x304203['id']!=_0x4dc36f&&'attribute'==_0x304203['type']&&_0x304203['data']&&_0x304203['data']['key']==_0x50b64e&&_0x304203['getFirstRange']()['isIntersecting'](_0x3c9168['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x304203,_0x3c9168['data']['newRange'],_0xf47f03),_0x122d56=!0x0);}return _0x122d56;}['_recordAttributeChanges'](_0x37de75){this['_recordAttributeSuggestions']=!0x0,_0x37de75();}['_isRegisteredAttribute'](_0x454d71){const _0x4c160b=this['_isBlockAttribute'](_0x454d71),_0x48c0c3=this['_inlineAttributeKeys']['has'](_0x454d71);return _0x4c160b||_0x48c0c3;}['_reduceExistingSuggestions'](_0x1d0565,_0x7e7d1e){if(0x0==_0x7e7d1e['length'])return!0x1;let _0x3afacd=!0x1;for(const _0x43f9b9 of _0x7e7d1e){const _0x55147c=this['_findSuggestions'](_0x43f9b9['range'],'attribute')['filter'](_0x4f0633=>!_0x4f0633['meta']['isNextTo'])['map'](_0x4d61ff=>_0x4d61ff['suggestion']),_0x5ad4e6=_0x573f52({'newValue':_0x43f9b9['newValue']});_0x55147c['filter'](_0x45da34=>{const [_0x26a909,_0x32b0de]=_0x45da34['subType']['split']('|');return _0x26a909==_0x43f9b9['key']&&_0x32b0de!=_0x5ad4e6;})['forEach'](_0x38bced=>{this['_reduceSuggestionAttributeRange'](_0x38bced,_0x43f9b9['range'],_0x1d0565),_0x3afacd=!0x0;});}return _0x3afacd;}['_reduceSuggestionAttributeRange'](_0x119f2f,_0x6415e4,_0x4980b0){const _0x4b3062=_0x119f2f['getFirstRange']()['getDifference'](_0x6415e4);0x0!==_0x4b3062['length']?0x1!==_0x4b3062['length']?this['_breakSuggestionMarker'](_0x119f2f,_0x6415e4['start'],_0x6415e4['end']):this['_setSuggestionRange'](_0x119f2f,_0x4b3062[0x0]):_0x4980b0['removeMarker'](_0x119f2f['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x57bc5e){this['_editor']=_0x57bc5e,this['_model']=_0x57bc5e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x389c87,_0x2eae44,_0x2bda51,_0x27b96b,_0x191c0c,_0x14a7a7){return new o(this['_model'],{'type':_0x389c87,'subType':_0x2eae44,'id':_0x2bda51,'author':_0x27b96b,'creator':_0x27b96b,'attributes':_0x191c0c,'onAttributesChange':_0x14a7a7,'onAccept':(..._0x498197)=>this['getSuggestionCallback'](_0x389c87,_0x2eae44,'accept')(..._0x498197),'onDiscard':(..._0x26789a)=>this['getSuggestionCallback'](_0x389c87,_0x2eae44,'discard')(..._0x26789a)});}['registerCustomCallback'](_0x3cf12b,_0x2d3877,_0x42f0d0,_0x11ae26){const _0x5a1513=_0x3cf12b+':'+_0x2d3877+':'+_0x42f0d0;this['_customCallbacks']['set'](_0x5a1513,_0x11ae26);}['getSuggestionCallback'](_0x4eef0b,_0x69533e,_0x4e2548){const _0x43af0b=_0x4eef0b+':'+_0x69533e+':'+_0x4e2548;return this['_customCallbacks']['get'](_0x43af0b)||this['_defaultCallbacks']['get'](_0x4eef0b+':'+_0x4e2548);}['_registerDefaultCallbacks'](){const _0x2f9bd6=()=>!0x1,_0x51aa22=_0x12e2da=>{_0x12e2da['sort']((_0x4f0053,_0x296052)=>_0x4f0053['start']['isBefore'](_0x296052['start'])?0x1:-0x1),this['_model']['change'](_0x4b76b3=>{for(const _0x309e0e of _0x12e2da){let _0x2d76b9;_0x2d76b9=_0x309e0e['end']['isAtEnd']&&_0x309e0e['end']['parent']==_0x309e0e['start']['nodeAfter']?_0x4b76b3['createSelection'](_0x309e0e['start']['nodeAfter'],'on'):_0x4b76b3['createSelection'](_0x309e0e),this['_model']['deleteContent'](_0x2d76b9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5b51f9=(_0x321d15,_0xb06eb9)=>{_0xb06eb9&&this['_model']['change'](_0x565fc5=>{const {commandName:_0x1d8709,commandParams:_0x13786a=[]}=_0xb06eb9,_0x3dfe35=_0x321d15['map'](_0x23a004=>(Ft(_0x23a004)&&(_0x23a004=this['_model']['createRange'](_0x23a004['end'])),_0x23a004))['filter'](_0x51a8e4=>'$graveyard'!==_0x51a8e4['root']['rootName']);if(_0x3dfe35['length']<0x1)return;const _0x2fcfe7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x15b87b=>_0x33a55c['fromRange'](_0x15b87b));_0x565fc5['setSelection'](_0x3dfe35);for(const _0x293b13 of this['_editor']['commands']['commands']())_0x293b13['refresh']();_0x13786a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1d8709,..._0x13786a);const _0x22df33=_0x2fcfe7['filter'](_0x33df47=>'$graveyard'!=_0x33df47['root']['rootName']);_0x22df33['length']>0x0&&_0x565fc5['setSelection'](_0x22df33);for(const _0x585327 of _0x2fcfe7)_0x585327['detach']();});},_0x43b186=(_0x224eac,_0x2c803b)=>0x1==_0x224eac['length']&&0x1==_0x2c803b['length']&&_0x224eac[0x0]['end']['isEqual'](_0x2c803b[0x0]['start']),_0x512793=(_0x1ec950,_0x279368,_0x1eac37,_0x12c0e8)=>Ht(_0x1ec950,_0x279368,_0x1eac37,_0x12c0e8)?[_0x1ec950,_0x279368]:Ht(_0x279368,_0x1ec950,_0x12c0e8,_0x1eac37)?[_0x279368,_0x1ec950]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f9bd6),this['_defaultCallbacks']['set']('insertion:discard',_0x51aa22),this['_defaultCallbacks']['set']('insertion:join',_0x43b186),this['_defaultCallbacks']['set']('insertion:chain',_0x512793),this['_defaultCallbacks']['set']('deletion:accept',_0x51aa22),this['_defaultCallbacks']['set']('deletion:discard',_0x2f9bd6),this['_defaultCallbacks']['set']('deletion:join',_0x43b186),this['_defaultCallbacks']['set']('deletion:chain',_0x512793),this['_defaultCallbacks']['set']('formatInline:accept',_0x5b51f9),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f9bd6),this['_defaultCallbacks']['set']('formatInline:join',_0x43b186),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f9bd6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5b51f9),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f9bd6),this['_defaultCallbacks']['set']('formatBlock:join',_0x43b186),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f9bd6),this['_defaultCallbacks']['set']('attribute:accept',_0x2f9bd6),this['_defaultCallbacks']['set']('attribute:discard',(_0x26ba29,_0x187e82)=>{if(!_0x187e82)return;const _0x581a16=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x44e5a8=>{if(_0x187e82['key']==u)for(const _0x3fa0d3 of _0x26ba29){const _0x172a23=_0x3fa0d3['start']['nodeAfter'],_0x4177ec=_0x187e82['oldValue'];_0x44e5a8['rename'](_0x172a23,_0x4177ec);}else{if(_0x581a16['_isBlockAttribute'](_0x187e82['key'])){for(const _0x2d4a0e of _0x26ba29)void 0x0!==_0x187e82['oldValue']?_0x44e5a8['setAttribute'](_0x187e82['key'],_0x187e82['oldValue'],_0x2d4a0e['start']['nodeAfter']):_0x44e5a8['removeAttribute'](_0x187e82['key'],_0x2d4a0e['start']['nodeAfter']);}else{for(const _0x3abc97 of _0x26ba29)_0x187e82['oldValue']?_0x44e5a8['setAttribute'](_0x187e82['key'],_0x187e82['oldValue'],_0x3abc97):_0x44e5a8['removeAttribute'](_0x187e82['key'],_0x3abc97);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x43b186);}}function Vt(_0x31a227,_0x5f09c5,_0x42a180){for(const _0xbe1235 of _0x5f09c5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xbe1235['root']==_0xbe1235)return!0x1;if(!_0x42a180['containsItem'](_0xbe1235))return!0x1;if(_0x31a227['isObject'](_0xbe1235)||_0x31a227['isLimit'](_0xbe1235))return!0x0;}return!0x1;}function Ft(_0x231fc1){return _0x231fc1['end']['parent']==_0x231fc1['start']['nodeAfter']&&_0x231fc1['end']['isAtStart'];}function Pt(_0x4ecdab,_0x42c9c2,_0x3b4f65,_0x420988){const _0x486efa=_0x20535a=>!_0x20535a['item']['is']('$textProxy')&&!_0x420988['isObject'](_0x20535a['item']),_0x558c12=_0x4ecdab['start']['getLastMatchingPosition'](_0x486efa),_0x32b199=_0x4ecdab['end']['getLastMatchingPosition'](_0x486efa,{'direction':'backward'});return(!_0x4ecdab['start']['isEqual'](_0x558c12)||!_0x4ecdab['end']['isEqual'](_0x32b199))&&(_0x558c12['isBefore'](_0x32b199)?_0x3b4f65['updateMarker'](_0x42c9c2,{'range':_0x3b4f65['createRange'](_0x558c12,_0x32b199)}):_0x3b4f65['removeMarker'](_0x42c9c2),!0x0);}function Gt(_0x2c6f69){return _0x573f52(_0x2c6f69);}function Lt(_0x462d6b){const _0x9558be=_0x462d6b['start']['nodeAfter'];return _0x9558be&&_0x9558be['is']('element');}function Jt(_0x16232a,_0x347bba){return null==_0x16232a['end']['nodeBefore']&&_0x16232a['end']['parent']==_0x16232a['start']['nodeAfter']?Kt(_0x16232a['start']['nodeAfter'],_0x347bba):_0x16232a;}function Kt(_0x3d4345,_0x115661){const _0x1188f6=_0x115661['schema']['isObject'](_0x3d4345)||_0x115661['schema']['isSelectable'](_0x3d4345);return _0x115661['createRange'](_0x115661['createPositionAt'](_0x3d4345,'before'),_0x1188f6?_0x115661['createPositionAfter'](_0x3d4345):_0x115661['createPositionAt'](_0x3d4345,'end'));}function Ht(_0x1de0fa,_0x5618ef,_0x405514,_0x3c70d2){return!!qt(_0x1de0fa,_0x5618ef)&&_0x405514['end']['isEqual'](_0x3c70d2['start']);}function qt(_0x4f5846,_0x3ed284){if(!_0x4f5846['_isDataLoaded']||!_0x3ed284['_isDataLoaded'])return!0x1;const _0x56b42e=new Set(Object['keys'](_0x4f5846['attributes'])),_0x6f18e8=new Set(Object['keys'](_0x3ed284['attributes']));if(_0x56b42e['delete']('groupId'),_0x6f18e8['delete']('groupId'),0x0==_0x56b42e['size']&&0x0==_0x6f18e8['size'])return!0x0;if(_0x56b42e['size']!=_0x6f18e8['size'])return!0x1;const _0x13cbfa={..._0x4f5846['attributes']},_0x51a37d={..._0x3ed284['attributes']};return delete _0x13cbfa['groupId'],delete _0x51a37d['groupId'],JSON['stringify'](_0x13cbfa)==JSON['stringify'](_0x51a37d);}function zt(_0x1ce2b0,_0x1d6421){const _0x22610a=Wt(_0x1ce2b0['attributes']),_0x423f66=Wt(_0x1d6421);if(!_0x1ce2b0['_isDataLoaded'])return!0x1;for(const _0x531525 of Object['keys'](_0x423f66))if(!_0x25540a(_0x22610a[_0x531525],_0x423f66[_0x531525]))return!0x1;return!0x0;}function Wt(_0xaafd1){const _0x3ab7a9=Object['assign']({},_0xaafd1);return delete _0x3ab7a9['skipNestingCheck'],delete _0x3ab7a9['tablePasteChainId'],_0x3ab7a9;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3c5479(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x29f9bc,_0x3709c9,_0x2cd4f2,_0x4ad18b){super(),this['model']=_0x3709c9,this['view']=_0x2cd4f2,this['commentThreadController']=_0x4ad18b,this['_editor']=_0x29f9bc,this['_acceptCommand']=_0x29f9bc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x29f9bc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2b6add,_0x311e13)=>_0x2b6add||_0x311e13),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x222593=>_0x222593&&this['_editor']['model']['canEditAt'](_0x3709c9['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2feb8c=>_0x2feb8c&&this['_editor']['model']['canEditAt'](_0x3709c9['getRanges']())),this['_pendingAction']=null,_0x2cd4f2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2cd4f2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2cd4f2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2cd4f2,'change:isDirty',()=>{_0x2cd4f2['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 _0x365539=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x365539);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x235450{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x52152b,_0x405a53,_0x1278cb,_0x568113){super(_0x52152b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2ded57(_0x52152b,c(_0x52152b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x405a53['authoredAt']),this['bind']('authoredAt')['to'](_0x405a53),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',_0x405a53,'authoredAt',this,'descriptionParts',(_0xffa03d,_0x490d63,_0x2ed616)=>{const _0x4ae32a=_0x2ed616['map'](_0x32b295=>ls(_0x32b295['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xffa03d-0x1,_0x405a53['author']['name'],_0x490d63?_0x568113['formatDateTime'](_0x490d63):'',new DOMParser()['parseFromString'](_0x4ae32a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4a05f1(),this['focusTracker']=new _0x4a4022(),this['keystrokes']=new _0x1138ff(),this['focusCycler']=new _0x32a4a6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x1087e7=>_0x1087e7['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x405a53,this['_localUser']=_0x1278cb,this['_config']=_0x568113,_0x568113['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x246d2c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x31f9bb}=this['_config'];this['commentsListView']=new _0x31f9bb(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',_0x347e9c=>_0x347e9c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1ef945,_0x4cbc1d)=>_0x1ef945||!!_0x4cbc1d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x561231}=this['_config'],_0x4b06dd=new _0x561231(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5740a3=_0x4b06dd['commentInputView'];return _0x4b06dd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5740a3,'value',(_0x23864b,_0x267aef,_0x428fff)=>!!_0x428fff||_0x23864b&&!_0x267aef),_0x5740a3['on']('submit',(_0x96386,_0x49a868)=>{this['fire']('addComment',_0x49a868),_0x5740a3['editor']['setData']('');}),_0x5740a3['on']('cancel',()=>this['focus']()),_0x5740a3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4b06dd;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x9d676a,_0x3e7343,_0x28527b,_0x248644){super(_0x9d676a,_0x3e7343,_0x28527b,_0x248644),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12f8e2=>_0x12f8e2&&_0x12f8e2[0x0]?_0x12f8e2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x452c3f,_0x1291a2)=>{let _0xf44b45='';for(const _0x3237ad of _0x452c3f)_0xf44b45+='<p>'+ls(_0x3237ad['content'],_0x3237ad['color'])+'</p>';return _0x1291a2?_0xf44b45:ti(_0xf44b45,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x248644['SuggestionView'](_0x9d676a,_0x3e7343,{'formatDateTime':_0x248644['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 _0x328ad4=this['bindTemplate'],_0x7bff9e=[this['suggestionView']];return this['commentsListView']&&_0x7bff9e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x7bff9e['push'](this['commentThreadInputView']),_0x7bff9e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x328ad4['if']('isActive','ck-suggestion-wrapper--active'),_0x328ad4['to']('type',_0x37488e=>'ck-suggestion-'+_0x37488e),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':_0x328ad4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x7bff9e};}['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 we extends _0x235450{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x640b7a,_0x249418,_0x355697){super(_0x640b7a),this['_model']=_0x249418,this['_config']=_0x355697,this['set']('description',''),this['bind']('authoredAt')['to'](_0x249418),this['acceptButton']=this['_createButton'](c(_0x640b7a,'Accept\x20suggestion'),_0x498c5b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x640b7a,'Discard\x20suggestion'),_0x27c97d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2c1c86(_0x640b7a,_0x249418['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4a05f1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4a4022(),this['keystrokes']=new _0x1138ff(),this['focusCycler']=new _0x32a4a6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x11d24b=>_0x11d24b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x388cc0=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x388cc0['innerHTML']=this['description'],this['on']('change:description',(_0x5c1ac8,_0x3b9972,_0x1cf50a)=>{_0x388cc0['innerHTML']=_0x1cf50a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1e1406=this['bindTemplate'],_0x262e29=[{'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':_0x1e1406['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1e1406['to']('authoredAt',_0x15a1ea=>this['_config']['formatDateTime'](_0x15a1ea))}]}]},{'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']&&_0x262e29['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':_0x262e29}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x54a88e,_0x1df117,_0x2b94cc,_0x21e656,_0x4a86ef){const _0x5d9aa5=new _0x4c4533(this['locale']);return _0x5d9aa5['set']({'label':_0x54a88e,'icon':_0x1df117,'tooltip':!0x0,'tooltipPosition':_0x4a86ef}),_0x5d9aa5['extendTemplate']({'attributes':{'class':_0x2b94cc}}),_0x5d9aa5['on']('execute',()=>{this['fire'](_0x21e656,this['_model']['id']);}),_0x5d9aa5;}['_setupKeyboardNavigation'](){const _0x2c7510=this['element'];this['keystrokes']['listenTo'](_0x2c7510);for(const _0x74588b of this['focusables'])this['focusTracker']['add'](_0x74588b['element']),this['keystrokes']['listenTo'](_0x74588b['element']);this['keystrokes']['set']('enter',(_0x57c837,_0x22ab8c)=>{_0x2c7510===_0x57c837['target']&&(this['focusCycler']['focusFirst'](),_0x22ab8c());}),this['keystrokes']['set']('esc',(_0x483495,_0x5485d4)=>{_0x2c7510!==_0x483495['target']&&(this['focus'](),_0x5485d4());});}}class d extends _0x346e12{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x420210,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e2e0d){super(_0x3e2e0d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1dae43=this['editor']['config'];_0x1dae43['define']('trackChanges.SuggestionThreadView',fe),_0x1dae43['define']('trackChanges.SuggestionView',we),_0x1dae43['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1dae43['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x13615f,_0x5d63cd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x43434b,_0x4e5dec]of this['_handleControllerBuffer']){const _0x2e603d=this['_suggestionToController']['has'](_0x43434b);_0x2e603d||_0x4e5dec?_0x2e603d&&_0x4e5dec&&this['_destroyController'](_0x43434b):this['_initializeController'](_0x43434b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x13615f,_0x5d63cd);}['init'](){const _0x2e1213=this['editor'],_0x58537d=_0x2e1213['plugins']['get']('TrackChangesEditing'),_0x21bc15=_0x2e1213['plugins']['get']('Annotations'),_0x42d071=_0x2e1213['plugins']['get']('EditorAnnotations'),_0x475f81=_0x2e1213['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x42d071['addSourceCollector'](()=>{const _0xe15b37=[];for(const [_0x35e75a,_0x134b27]of Array['from'](this['_suggestionToController'])){const _0x5a5812=_0x35e75a['getAllAdjacentSuggestions'](),_0x2f5f9f=[];for(const _0x294267 of _0x5a5812){if(!_0x294267['isInContent'])continue;if(_0x294267['isMultiRange']){_0x2f5f9f['push'](..._0x294267['getRanges']());continue;}const _0x1d8811=_0x294267['getFirstRange']();if(_0x2f5f9f['length']>0x0){const _0x51f953=_0x2f5f9f[0x0]['getJoined'](_0x1d8811);if(_0x51f953){_0x2f5f9f[0x0]=_0x51f953;continue;}}_0x2f5f9f['push'](_0x1d8811);}_0xe15b37['push']([_0x134b27['view'],_0x2f5f9f]);}return _0xe15b37;}),this['listenTo'](_0x58537d,'suggestionLoaded',(_0x58f6ca,_0x4953e2)=>{this['listenTo'](_0x4953e2,'change:previous',(_0x348ea4,_0x2e3d0e,_0x4dc341,_0x5c0247)=>{_0x4953e2['isInContent']&&(null==_0x4dc341?(this['_updateController'](_0x5c0247['head']),this['_handleSuggestionControllerDelayed'](_0x4953e2,!0x1)):(this['_updateController'](_0x4dc341['head']),null==_0x5c0247&&this['_handleSuggestionControllerDelayed'](_0x4953e2,!0x0)));}),null!==_0x4953e2['previous']?this['_updateController'](_0x4953e2['head']):this['_handleSuggestionControllerDelayed'](_0x4953e2,!0x1);}),this['listenTo'](_0x58537d,'suggestionUnloaded',(_0x5b781f,_0x53bf88,_0x573516)=>{this['stopListening'](_0x53bf88,'change:previous'),this['_handleControllerBuffer']['delete'](_0x53bf88),this['_suggestionToController']['has'](_0x53bf88)&&this['_destroyController'](_0x53bf88),_0x573516&&this['_updateController'](_0x573516['head']);}),this['listenTo'](_0x58537d,'suggestionChanged',(_0x38c20c,_0x1a995a)=>{this['_updateController'](_0x1a995a);}),this['listenTo'](_0x21bc15,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x475f81,'addComment',(_0x6de47d,{threadId:_0x324ffd,isFromAdapter:_0x537a8d})=>{if(_0x537a8d||!_0x58537d['hasSuggestion'](_0x324ffd))return;const _0x5b687c=_0x58537d['getSuggestion'](_0x324ffd);this['_suggestionToController']['get'](_0x5b687c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5d3b79=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x42f7e0;for(const _0x8a1903 in _0x5d3b79){const _0x1da41f=_0x8a1903,_0x48acca=_0x5d3b79[_0x1da41f];if('trackChangesLicenseKeyValid'==_0x48acca||'trackChangesLicenseKeyInvalid'==_0x48acca||'trackChangesLicenseKeyExpired'==_0x48acca||'trackChangesLicenseKeyDomainLimit'==_0x48acca||'trackChangesLicenseKeyNotAllowed'==_0x48acca||'trackChangesLicenseKeyEvaluationLimit'==_0x48acca||'trackChangesLicenseKeyTrialLimit'==_0x48acca||'trackChangesLicenseKeyUsageLimit'==_0x48acca){delete _0x5d3b79[_0x1da41f],_0x42f7e0=_0x48acca,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x42f7e0&&_0x5d3b79['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1a9dbc=this['editor']['plugins']['get']('Annotations'),_0x51a351=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe2f161=Array['from'](_0x1a9dbc['activeAnnotations'],_0x509f5d=>_0x509f5d['innerView'])['filter'](_0x2a32e3=>this['_viewToController']['has'](_0x2a32e3)),_0x44bf73=[];for(const _0x4abf25 of _0xe2f161){const _0x458874=this['_viewToController']['get'](_0x4abf25)['model']['getAllAdjacentSuggestions']();_0x44bf73['push'](..._0x458874['reduce']((_0x2ebe17,_0x2e601f)=>[..._0x2ebe17,..._0x2e601f['getMarkerNames']()],[]));}_0x51a351['activeMarkers']=_0x44bf73;}['_addUIComponentsToFactory'](){const _0x39b74b=this['editor'],_0xb2779=_0x39b74b['locale'],_0x43d86e=c(_0xb2779,'Track\x20changes'),_0xb7fe28=new _0x45a5c0([{'type':'switchbutton','model':new _0x56ba85({'withText':!0x0,'isToggleable':!0x0,'label':_0x43d86e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x56ba85({'withText':!0x0,'label':c(_0xb2779,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56ba85({'withText':!0x0,'label':c(_0xb2779,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56ba85({'withText':!0x0,'label':c(_0xb2779,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x56ba85({'withText':!0x0,'label':c(_0xb2779,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x39b74b['plugins']['has']('TrackChangesPreview')&&_0xb7fe28['addMany']([{'type':'separator'},{'type':'button','model':new _0x56ba85({'withText':!0x0,'label':c(_0xb2779,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2ce147 of _0xb7fe28)if(ke(_0x2ce147)){const _0x3640c5=_0x39b74b['commands']['get'](_0x2ce147['model']['commandName']);_0x2ce147['model']['bind']('isOn','isEnabled')['to'](_0x3640c5,'value','isEnabled');}_0x39b74b['ui']['componentFactory']['add']('trackChanges',_0x58cef2=>this['_createToolbarButton'](_0x58cef2,_0xb7fe28,_0x43d86e)),_0x39b74b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x37fbf7=>this['_createMenuBarMenu'](_0x37fbf7,_0xb7fe28,_0x43d86e));}['_createToolbarButton'](_0x3607cb,_0x2b5662,_0x138bf0){const _0x11a6bb=_0x222b05(_0x3607cb,_0x46f898),_0x492d0c=this['editor']['commands']['get']('trackChanges');_0x11a6bb['buttonView']['set']({'tooltip':_0x138bf0,'label':_0x138bf0,'icon':_0x28714b}),_0x11a6bb['buttonView']['bind']('isOn')['to'](_0x492d0c,'value'),_0x11a6bb['buttonView']['on']('execute',()=>{_0x492d0c['execute'](),this['editor']['editing']['view']['focus']();}),_0x5a8619(_0x11a6bb,_0x2b5662,{'role':'menu'});const _0x1c2802=[];for(const _0x149c06 of _0x2b5662)ke(_0x149c06)&&_0x1c2802['push'](this['editor']['commands']['get'](_0x149c06['model']['commandName']));const _0x5bdce4=_0x11a6bb['buttonView'];return _0x5bdce4['actionView']['unbind']('isEnabled'),_0x5bdce4['arrowView']['unbind']('isEnabled'),_0x5bdce4['actionView']['bind']('isEnabled')['to'](_0x492d0c,'isEnabled'),_0x5bdce4['arrowView']['bind']('isEnabled')['toMany'](_0x1c2802,'isEnabled',(..._0x615176)=>_0x615176['some'](_0x4453df=>_0x4453df)),_0x11a6bb['on']('execute',_0x521be7=>{this['editor']['execute'](_0x521be7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x11a6bb;}['_createMenuBarMenu'](_0x4aae7e,_0x2fc8e7,_0xbb98e4){const _0x56ada8=new _0x2bb805(_0x4aae7e),_0x11a663=this['editor']['commands']['get']('trackChanges');_0x56ada8['buttonView']['set']({'label':_0xbb98e4,'icon':_0x28714b});const _0x385b70=new _0x470e55(_0x4aae7e);for(const _0x4eccdd of _0x2fc8e7){if('separator'==_0x4eccdd['type']){_0x385b70['items']['add'](new _0x128c5e(_0x4aae7e));continue;}const _0x2243b7=new _0x2b8b4f(_0x4aae7e,_0x56ada8),_0x5007ad=new _0x4a4b4b(_0x4aae7e),_0x7d15ee=_0x4eccdd['model'];_0x5007ad['bind'](...Object['keys'](_0x7d15ee))['to'](_0x7d15ee),_0x5007ad['delegate']('execute')['to'](_0x56ada8),_0x5007ad['on']('execute',()=>{this['editor']['execute'](_0x7d15ee['commandName']),this['editor']['editing']['view']['focus']();}),_0x2243b7['children']['add'](_0x5007ad),_0x385b70['items']['add'](_0x2243b7);}return _0x56ada8['bind']('isEnabled')['to'](_0x11a663,'isEnabled'),_0x56ada8['panelView']['children']['add'](_0x385b70),_0x56ada8;}['_initializeController'](_0x3565cf){const _0x5036e5=this['editor'],_0x4db915=_0x5036e5['config'],_0x51fc20=_0x5036e5['plugins']['get']('Annotations'),_0x2c9284=_0x5036e5['plugins']['get']('CommentsRepository'),_0x1f4017=_0x5036e5['plugins']['get']('EditorAnnotations'),_0x468272=_0x5036e5['plugins']['get'](_0x420210)['me'],_0x522047=_0x4db915['get']('trackChanges')['SuggestionThreadView'],_0x312e98=_0x4db915['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5bea0a,CommentThreadInputView:_0x3c4e99}=_0x5036e5['plugins']['get']('CommentsUI');let _0x1d2aa1,_0x1efc8c,_0x50a424;this['_annotationViews']['has'](_0x3565cf['id'])?(_0x1efc8c=this['_annotationViews']['get'](_0x3565cf['id']),_0x1d2aa1=_0x1efc8c['mainView']):(_0x1d2aa1=new _0x522047(_0x5036e5['locale'],_0x3565cf,_0x468272,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4db915['get']('comments.editorConfig'),'licenseKey':_0x4db915['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4db915['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4db915['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4db915['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x20bd73(_0x4db915['get']('locale')),'CommentView':_0x4db915['get']('comments')['CommentView'],'CommentsListView':_0x5bea0a,'CommentThreadInputView':_0x3c4e99,'SuggestionView':_0x312e98}),_0x1d2aa1['suggestionView']['acceptButton']['on']('execute',()=>{_0x5036e5['editing']['view']['focus']();}),_0x1d2aa1['suggestionView']['discardButton']['on']('execute',()=>{_0x5036e5['editing']['view']['focus']();}),_0x1efc8c=_0x51fc20['createAnnotationView'](this['editor']['locale'],_0x1d2aa1),_0x1efc8c['bind']('isDirty')['to'](_0x1d2aa1,'isDirty'),_0x1efc8c['bind']('length')['to'](_0x1d2aa1),_0x1efc8c['bind']('type')['to'](_0x1d2aa1,'type',_0x4adb91=>'suggestion-'+_0x4adb91),_0x1d2aa1['on']('escape',()=>{_0x50a424['fire']('escape');}),this['_annotationViews']['set'](_0x3565cf['id'],_0x1efc8c));const _0x18e183=_0x2c9284['createCommentThreadController'](_0x3565cf['commentThread'],_0x1d2aa1),_0x34960e=new pe(_0x5036e5,_0x3565cf,_0x1d2aa1,_0x18e183),_0x16d47b=_0x3565cf['getAllAdjacentSuggestions']()['filter'](_0x5f2016=>_0x5f2016['isInContent']);_0x1d2aa1['descriptionParts']=_0x5036e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x16d47b),this['_suggestionToController']['set'](_0x3565cf,_0x34960e),this['_viewToController']['set'](_0x1d2aa1,_0x34960e),_0x50a424=_0x51fc20['createAnnotation']({'view':_0x1efc8c,'target':()=>{const _0x49be93=[],_0xc1f7c9=_0x3565cf['getAllAdjacentSuggestions']()['filter'](_0x122088=>_0x122088['isInContent']);for(const _0xa2dca of _0xc1f7c9)_0x49be93['push'](..._0xa2dca['getMarkers']());return _0xdb3c95(_0x5036e5['editing'],_0x49be93);},'type':()=>'suggestion-'+_0x34960e['view']['type']}),_0x2c9284['_bindAnnotationToEditors'](_0x1d2aa1,_0x50a424),_0x51fc20['add'](_0x50a424),_0x1f4017['registerAnnotation'](_0x50a424);}['_destroyController'](_0x44f705){const _0x166e7a=this['editor']['plugins']['get']('CommentsRepository'),_0x5521a1=this['editor']['plugins']['get']('Annotations'),_0x173e46=this['_suggestionToController']['get'](_0x44f705),_0x3769c6=_0x173e46['view'],_0x150b40=_0x5521a1['getByInnerView'](_0x3769c6);_0x166e7a['_unbindEditors'](_0x3769c6),_0x150b40&&_0x5521a1['remove'](_0x150b40),this['_suggestionToController']['delete'](_0x44f705),this['_viewToController']['delete'](_0x3769c6),_0x173e46['destroy']();}['_updateController'](_0x254c91){if(!_0x254c91['isInContent']||!this['_suggestionToController']['has'](_0x254c91))return;const _0x12d9dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x126971=this['_suggestionToController']['get'](_0x254c91),_0x550fe9=_0x254c91['getAllAdjacentSuggestions']();_0x126971['view']['descriptionParts']=_0x12d9dc['descriptionFactory']['getDescriptions'](_0x550fe9);}['destroy'](){for(const _0x5cec3f of this['_suggestionToController']['keys']())this['_destroyController'](_0x5cec3f);for(const _0x23b277 of this['_annotationViews']['values']())_0x23b277['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4aa8b4){return'model'in _0x4aa8b4;}class k extends _0x346e12{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2d0ff9){this['editor']['plugins']['get'](p)['adapter']=_0x2d0ff9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4e1dec){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4e1dec);}['getSuggestions']({skipNotAttached:_0x1d010a=!0x1,toJSON:_0x5376e3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1d010a,'toJSON':_0x5376e3});}['getSuggestion'](_0x42384e){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x42384e);}}const w=['Pagination'];class T extends _0x346e12{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x360204=this['editor'];if(_0x360204['config']['define']('trackChangesData.editorCreator',_0x29c405=>{const _0x1e03f5=_0x360204['model']['document']['getRootNames']()['reduce']((_0x32351e,_0x386cbc)=>(_0x32351e[_0x386cbc]='',_0x32351e),{});return _0x360204['constructor']['create'](_0x1e03f5,_0x29c405);}),'function'!=typeof _0x360204['config']['get']('trackChangesData')['editorCreator'])throw new _0x97435f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x22166f){return N(this['editor'],!0x0,_0x22166f);}['getDataWithDiscardedSuggestions'](_0x388b41){return N(this['editor'],!0x1,_0x388b41);}}class D extends _0x346e12{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a5be5){function _0x31b7c4(_0x511bb1){return _0x511bb1['map'](_0x386c90=>String['fromCharCode'](_0x386c90))['join']('');}super(_0x2a5be5),this['result']='end',_0x2a5be5[_0x31b7c4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31b7c4([0x76,0x69,0x65,0x77])][_0x31b7c4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31b7c4([0x61,0x75,0x74,0x6f]),_0x2a5be5[_0x31b7c4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x31b7c4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31b7c4([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x31b7c4([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x31b7c4([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(_0x1d5b04){return void 0x0!==_0x1d5b04['getRootsAttributes'];}async function N(_0x387d43,_0x1e6fd6,_0x519c80){const _0x326157=_0x3c9f74(_0x387d43,w);_0x326157['plugins']['push'](p,D),_0x326157['rootsAttributes']=Fe(_0x387d43)?_0x387d43['getRootsAttributes']():void 0x0;const _0xe49762=document['createDocumentFragment'](),_0x22194b=_0x387d43['config']['get']('trackChangesData')['editorCreator'],_0x45db8b=await _0x22194b(_0x326157,()=>function(_0x7b903c){const _0x5f4b8b=document['createElement']('div');return _0x7b903c['appendChild'](_0x5f4b8b),_0x5f4b8b;}(_0xe49762));!function(_0x75e7e2,_0x1e561c){const _0x5f03c4=_0x75e7e2['model']['document']['getRootNames']()['reduce']((_0x49756e,_0x28d4d5)=>(_0x49756e[_0x28d4d5]=_0x75e7e2['data']['get']({'rootName':_0x28d4d5}),_0x49756e),{}),_0x2413ba=_0x75e7e2['plugins']['get']('Users')['users']['map'](_0x7edb92=>({'id':_0x7edb92['id'],'name':_0x7edb92['name']})),_0x380f4c=_0x75e7e2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x557c8a=_0x75e7e2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4693e3=_0x1e561c['plugins']['get']('Users'),_0xce6126=_0x1e561c['plugins']['get']('TrackChangesEditing'),_0x1f70ee=_0x1e561c['plugins']['get']('CommentsRepository');for(const _0x5775df of _0x1f70ee['getCommentThreads']())_0x5775df['remove']();for(const _0x48aa4d of _0x2413ba)_0x4693e3['getUser'](_0x48aa4d['id'])||_0x4693e3['addUser'](_0x48aa4d);_0x4693e3['me']||_0x4693e3['useAnonymousUser']();for(const _0x163133 of _0x557c8a)_0x1f70ee['addCommentThread'](_0x163133);for(const _0x4542ab of _0x380f4c)_0xce6126['addSuggestionData'](_0x4542ab);_0x1e561c['data']['set'](_0x5f03c4);}(_0x387d43,_0x45db8b),_0x45db8b['execute'](_0x1e6fd6?'acceptAllSuggestions':'discardAllSuggestions');const _0x857dd7=Fe(_0x45db8b)?_0x45db8b['getFullData'](_0x519c80):_0x45db8b['data']['get'](_0x519c80);return await _0x45db8b['destroy'](),_0x857dd7;}class Me extends _0x235450{['options'];constructor(_0x4afa52,_0x4eaf7c){super(_0x4afa52),this['options']=_0x4eaf7c,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'](_0x3f1c65,_0x36826d){if(!this['element'])return;const _0x4fd92a=[];for(const [_0x423baa,_0x365bf9]of _0x3f1c65){const _0x19b28d=document['createElement']('div');_0x19b28d['setAttribute']('data-ck-root-name',_0x423baa),_0x19b28d['className']=_0x365bf9['classes']+'\x20ck-track-changes-preview__root-container',_0x19b28d['innerHTML']=_0x365bf9['content'],_0x4fd92a['push'](_0x19b28d);}_0x36826d(this['element'],_0x4fd92a),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1ef9c2{constructor(_0xba01be){super(_0xba01be),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3a2742=this['editor'],_0x3a24bc=_0x3a2742['locale'],_0x2a3c1e=_0x3a2742['plugins']['get']('Dialog');let _0x53482b;const _0xab236f=function(_0x39354f){const _0x5d491e={};if('editables'in _0x39354f['ui']['view']){for(const [_0x34a9a3,_0x2753a1]of Object['entries'](_0x39354f['ui']['view']['editables']))_0x5d491e[_0x34a9a3]=_0x2753a1['element'];}else _0x5d491e[_0x39354f['model']['document']['getRootNames']()[0x0]]=_0x39354f['ui']['view']['editable']['element'];return _0x5d491e;}(_0x3a2742),_0x343916=function(_0x1dfc33){let _0x4e2176=0x0;for(const _0x79e407 of Object['values'](_0x1dfc33))_0x4e2176=Math['max'](_0x4e2176,_0x79e407['getBoundingClientRect']()['width']);let _0x1fd909=0x0;for(const _0x22d11f of Object['values'](_0x1dfc33))_0x1fd909+=_0x22d11f['getBoundingClientRect']()['height'];const _0x4e5bfa=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3fa380=Math['min'](_0x1fd909,_0x4e5bfa);return{'width':_0x4e2176,'height':_0x3fa380};}(_0xab236f);_0x2a3c1e['show']({'id':'finalContentPreview','title':c(_0x3a24bc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3a24bc,{'dialogRects':_0x343916}),'onHide':()=>{_0x53482b['detachFromDom']();},'onShow':()=>{_0x3a2742['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x58f222=>{const _0x1da506=this['_standarizeRootsData'](_0x58f222,_0x3a2742,_0xab236f);_0x2a3c1e['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1da506,_0x3a2742['config']['get']('trackChanges.preview.renderFunction'));}),_0x53482b=new _0x2348b9(_0x3a24bc,[_0x2a3c1e['view']]),_0x53482b['attachToDom'](),_0x53482b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3a2742['once']('destroy',()=>{_0x53482b['detachFromDom']();});const _0xb202fd=_0x2a3c1e['view']['headerView']['class'];_0x2a3c1e['view']['headerView']['class']=_0xb202fd?_0xb202fd+'\x20ck-reset_all':'ck-reset_all',_0x2a3c1e['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2a3c1e['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3d77b2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x391e97=_0x3d77b2['previewMode'],_0x3e3065={};if('$labels'===_0x391e97){for(const _0x3cc30f of _0x3d77b2['getMergeFieldsIds']())_0x3e3065[_0x3cc30f]=_0x3d77b2['getLabel'](_0x3cc30f)||_0x3cc30f;}else{const _0x5c345f='$defaultValues'===_0x391e97?_0x3d77b2['getDefaultValues']():_0x3d77b2['getDataSetValues'](_0x391e97,!0x0);for(const _0x5033a9 of Object['entries'](_0x5c345f)){const [_0x188333,_0x43073d]=_0x5033a9;_0x3e3065[_0x188333]=null!==_0x43073d?_0x43073d:_0x3d77b2['getLabel'](_0x188333)||_0x188333;}}return{'mergeFieldsData':_0x3e3065};}['_standarizeRootsData'](_0x342092,_0x5dc11a,_0x212ab8){let _0x36d940;if('string'==typeof _0x342092){const _0x1e0a44=_0x5dc11a['model']['document']['getRootNames']()[0x0];_0x36d940={[_0x1e0a44]:_0x342092};}else _0x36d940=_0x342092;const _0x44059d=this['_fixMediaEmbeds'](_0x36d940,_0x5dc11a),_0xa604ba=function(_0xf2988b,_0x44a82a){for(const [_0x8178e0,_0x23161b]of _0xf2988b)_0x23161b['classes']=_0x44a82a[_0x8178e0]['classList']['value']['replace']('ck-focused','');return _0xf2988b;}(this['_sortRoots'](_0x5dc11a)['reduce']((_0x569016,_0x4cef33)=>(_0x569016['push']([_0x4cef33,{'content':_0x44059d[_0x4cef33],'classes':''}]),_0x569016),[]),_0x212ab8);return _0xa604ba;}['_fixMediaEmbeds'](_0x55a531,_0x7b744c){if(!_0x7b744c['plugins']['has']('MediaEmbedEditing'))return _0x55a531;const _0x3963c3=_0x7b744c['plugins']['get']('MediaEmbedEditing');for(const [_0x1f0dc6,_0x4f6aa8]of Object['entries'](_0x55a531)){const _0x5aa713=document['createElement']('div');_0x5aa713['innerHTML']=_0x4f6aa8,(_0x5aa713['querySelectorAll']('figure.media')['forEach'](_0x29429a=>{const _0x1f1258=_0x29429a['querySelector']('oembed');if(_0x1f1258){const _0x52c555=_0x1f1258['getAttribute']('url');if(_0x52c555){const _0x5b5496=_0x3963c3['registry']['getMediaViewElement'](new _0x2b4665(_0x7b744c['editing']['view']['document']),_0x52c555,{'elementName':'','renderForEditingView':!0x0}),_0x4a7270=document['createElement']('div');_0x4a7270['classList']['add']('ck-media__wrapper'),_0x5b5496['render'](_0x4a7270,_0x7b744c['editing']['view']['domConverter']),_0x1f1258['replaceWith'](_0x4a7270);}}}),_0x55a531[_0x1f0dc6]=_0x5aa713['innerHTML']);}return _0x55a531;}['_sortRoots'](_0x7da488){if(!function(_0x70336b){return void 0x0!==_0x70336b['getRootsAttributes'];}(_0x7da488))return _0x7da488['model']['document']['getRootNames']();const _0x20e331=[],_0x37a164=new Map();for(const _0x285a00 of _0x7da488['model']['document']['getRootNames']()){const _0x34917a=_0x7da488['editing']['view']['getDomRoot'](_0x285a00)['getClientRects']()['item'](0x0);_0x20e331['push'](_0x285a00),_0x37a164['set'](_0x285a00,_0x34917a);}return _0x20e331['sort']((_0x128c49,_0x2f3847)=>{const _0x519c3b=_0x37a164['get'](_0x128c49),_0x34f9d3=_0x37a164['get'](_0x2f3847);return _0x519c3b['y']-_0x34f9d3['y']||_0x519c3b['x']-_0x34f9d3['x'];}),_0x20e331;}}class te extends _0x346e12{static get['requires'](){return[T,_0x2acc9b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x297767){super(_0x297767),_0x297767['commands']['add']('previewFinalContent',new re(this['editor'])),_0x297767['config']['define']('trackChanges.preview.renderFunction',(_0x5832f0,_0x24c003)=>{for(const _0x385a55 of _0x24c003)_0x5832f0['appendChild'](_0x385a55);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|