@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20260110.0 → 0.0.0-nightly-next-20260110.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/ckeditor5-metadata.json +3 -3
- package/{src → dist}/augmentation.d.ts +5 -1
- package/{src → dist}/commands/acceptsuggestioncommand.d.ts +5 -1
- package/{src → dist}/commands/discardsuggestioncommand.d.ts +5 -1
- package/{src → dist}/commands/executeonallsuggestionscommand.d.ts +5 -1
- package/{src → dist}/commands/executeonselectedsuggestionscommand.d.ts +5 -1
- package/{src → dist}/commands/previewfinalcontentcommand.d.ts +5 -1
- package/{src → dist}/commands/trackchangescommand.d.ts +5 -1
- package/{src → dist}/index.d.ts +4 -0
- package/dist/index.js +4 -4
- package/{src → dist}/integrations/ai.d.ts +5 -1
- package/{src → dist}/integrations/aiassistant.d.ts +5 -1
- package/{src → dist}/integrations/aiquickactions.d.ts +5 -1
- package/{src → dist}/integrations/alignment.d.ts +5 -1
- package/{src → dist}/integrations/basicstyles.d.ts +5 -1
- package/{src → dist}/integrations/blockquote.d.ts +5 -1
- package/{src → dist}/integrations/bookmark.d.ts +5 -1
- package/{src → dist}/integrations/casechange.d.ts +5 -1
- package/{src → dist}/integrations/ckbox.d.ts +5 -1
- package/{src → dist}/integrations/codeblock.d.ts +5 -1
- package/{src → dist}/integrations/comments.d.ts +5 -1
- package/{src → dist}/integrations/deletecommand.d.ts +6 -2
- package/{src → dist}/integrations/emoji.d.ts +5 -1
- package/{src → dist}/integrations/entercommand.d.ts +6 -2
- package/{src → dist}/integrations/findandreplace.d.ts +5 -1
- package/{src → dist}/integrations/font.d.ts +5 -1
- package/{src → dist}/integrations/footnotes.d.ts +5 -1
- package/{src → dist}/integrations/formatpainter.d.ts +5 -1
- package/{src → dist}/integrations/heading.d.ts +5 -1
- package/{src → dist}/integrations/highlight.d.ts +5 -1
- package/{src → dist}/integrations/horizontalline.d.ts +5 -1
- package/{src → dist}/integrations/htmlembed.d.ts +5 -1
- package/{src → dist}/integrations/image.d.ts +5 -1
- package/{src → dist}/integrations/imagereplace.d.ts +5 -1
- package/{src → dist}/integrations/imagestyle.d.ts +5 -1
- package/{src → dist}/integrations/importword.d.ts +5 -1
- package/{src → dist}/integrations/indent.d.ts +5 -1
- package/{src → dist}/integrations/inputcommand.d.ts +6 -2
- package/{src → dist}/integrations/legacylist.d.ts +5 -1
- package/{src → dist}/integrations/legacylistproperties.d.ts +5 -1
- package/{src → dist}/integrations/lineheight.d.ts +5 -1
- package/{src → dist}/integrations/link.d.ts +5 -1
- package/{src → dist}/integrations/list.d.ts +5 -1
- package/{src → dist}/integrations/listproperties.d.ts +5 -1
- package/{src → dist}/integrations/mediaembed.d.ts +5 -1
- package/{src → dist}/integrations/mention.d.ts +5 -1
- package/{src → dist}/integrations/mergefields.d.ts +5 -1
- package/{src → dist}/integrations/multilevellist.d.ts +5 -1
- package/{src → dist}/integrations/pagebreak.d.ts +5 -1
- package/{src → dist}/integrations/paragraph.d.ts +5 -1
- package/{src → dist}/integrations/removeformat.d.ts +5 -1
- package/{src → dist}/integrations/replacesourcecommand.d.ts +5 -1
- package/{src → dist}/integrations/restrictededitingmode.d.ts +5 -1
- package/{src → dist}/integrations/shiftentercommand.d.ts +5 -1
- package/{src → dist}/integrations/standardeditingmode.d.ts +5 -1
- package/{src → dist}/integrations/style.d.ts +5 -1
- package/{src → dist}/integrations/table.d.ts +5 -1
- package/{src → dist}/integrations/tablecaption.d.ts +5 -1
- package/{src → dist}/integrations/tableclipboard.d.ts +5 -1
- package/{src → dist}/integrations/tablecolumnresize.d.ts +6 -2
- package/{src → dist}/integrations/tableheadings.d.ts +5 -1
- package/{src → dist}/integrations/tablelayout.d.ts +5 -1
- package/{src → dist}/integrations/tablemergesplit.d.ts +5 -1
- package/{src → dist}/integrations/tableofcontents.d.ts +5 -1
- package/{src → dist}/integrations/tableproperties.d.ts +6 -2
- package/{src → dist}/integrations/template.d.ts +5 -1
- package/{src → dist}/integrations/title.d.ts +5 -1
- package/{src → dist}/integrations/undo.d.ts +5 -1
- package/{src → dist}/integrations/uploadcare.d.ts +5 -1
- package/{src → dist}/integrations/utils.d.ts +5 -1
- package/{src → dist}/suggestion.d.ts +8 -4
- package/{src → dist}/suggestiondescriptionfactory.d.ts +6 -2
- package/{src → dist}/trackchanges.d.ts +6 -2
- package/{src → dist}/trackchangesconfig.d.ts +4 -0
- package/{src → dist}/trackchangesdata.d.ts +5 -1
- package/{src → dist}/trackchangesediting.d.ts +7 -4
- package/{src → dist}/trackchangespreview.d.ts +6 -2
- package/{src → dist}/trackchangesui.d.ts +6 -2
- 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/be.js +1 -1
- package/dist/translations/be.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/{src → dist}/ui/suggestioncontroller.d.ts +7 -3
- package/{src → dist}/ui/view/basesuggestionthreadview.d.ts +8 -4
- package/{src → dist}/ui/view/suggestionthreadview.d.ts +7 -3
- package/{src → dist}/ui/view/suggestionview.d.ts +7 -3
- package/{src → dist}/ui/view/trackchangespreviewview.d.ts +4 -0
- package/{src → dist}/utils/common-translations.d.ts +5 -1
- package/{src → dist}/utils/utils.d.ts +6 -2
- package/package.json +35 -46
- package/build/track-changes.js +0 -5
- package/build/translations/af.js +0 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/ast.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/be.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/bs.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de-ch.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/en-gb.js +0 -1
- package/build/translations/eo.js +0 -1
- package/build/translations/es-co.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/eu.js +0 -1
- package/build/translations/fa.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/gu.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/hy.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/kk.js +0 -1
- package/build/translations/km.js +0 -1
- package/build/translations/kn.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/ku.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nb.js +0 -1
- package/build/translations/ne.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/oc.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/si.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sl.js +0 -1
- package/build/translations/sq.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/ti.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/uz.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
- package/src/augmentation.js +0 -23
- package/src/commands/acceptsuggestioncommand.js +0 -23
- package/src/commands/discardsuggestioncommand.js +0 -23
- package/src/commands/executeonallsuggestionscommand.js +0 -23
- package/src/commands/executeonselectedsuggestionscommand.js +0 -23
- package/src/commands/previewfinalcontentcommand.js +0 -23
- package/src/commands/trackchangescommand.js +0 -23
- package/src/index.js +0 -23
- package/src/integrations/ai.js +0 -23
- package/src/integrations/aiassistant.js +0 -23
- package/src/integrations/aiquickactions.js +0 -23
- package/src/integrations/alignment.js +0 -23
- package/src/integrations/basicstyles.js +0 -23
- package/src/integrations/blockquote.js +0 -23
- package/src/integrations/bookmark.js +0 -23
- package/src/integrations/casechange.js +0 -23
- package/src/integrations/ckbox.js +0 -23
- package/src/integrations/codeblock.js +0 -23
- package/src/integrations/comments.js +0 -23
- package/src/integrations/deletecommand.js +0 -23
- package/src/integrations/emoji.js +0 -23
- package/src/integrations/entercommand.js +0 -23
- package/src/integrations/findandreplace.js +0 -23
- package/src/integrations/font.js +0 -23
- package/src/integrations/footnotes.js +0 -23
- package/src/integrations/formatpainter.js +0 -23
- package/src/integrations/heading.js +0 -23
- package/src/integrations/highlight.js +0 -23
- package/src/integrations/horizontalline.js +0 -23
- package/src/integrations/htmlembed.js +0 -23
- package/src/integrations/image.js +0 -23
- package/src/integrations/imagereplace.js +0 -23
- package/src/integrations/imagestyle.js +0 -23
- package/src/integrations/importword.js +0 -23
- package/src/integrations/indent.js +0 -23
- package/src/integrations/inputcommand.js +0 -23
- package/src/integrations/legacylist.js +0 -23
- package/src/integrations/legacylistproperties.js +0 -23
- package/src/integrations/lineheight.js +0 -23
- package/src/integrations/link.js +0 -23
- package/src/integrations/list.js +0 -23
- package/src/integrations/listproperties.js +0 -23
- package/src/integrations/mediaembed.js +0 -23
- package/src/integrations/mention.js +0 -23
- package/src/integrations/mergefields.js +0 -23
- package/src/integrations/multilevellist.js +0 -23
- package/src/integrations/pagebreak.js +0 -23
- package/src/integrations/paragraph.js +0 -23
- package/src/integrations/removeformat.js +0 -23
- package/src/integrations/replacesourcecommand.js +0 -23
- package/src/integrations/restrictededitingmode.js +0 -23
- package/src/integrations/shiftentercommand.js +0 -23
- package/src/integrations/standardeditingmode.js +0 -23
- package/src/integrations/style.js +0 -23
- package/src/integrations/table.js +0 -23
- package/src/integrations/tablecaption.js +0 -23
- package/src/integrations/tableclipboard.js +0 -24
- package/src/integrations/tablecolumnresize.js +0 -23
- package/src/integrations/tableheadings.js +0 -23
- package/src/integrations/tablelayout.js +0 -23
- package/src/integrations/tablemergesplit.js +0 -23
- package/src/integrations/tableofcontents.js +0 -23
- package/src/integrations/tableproperties.js +0 -23
- package/src/integrations/template.js +0 -23
- package/src/integrations/title.js +0 -23
- package/src/integrations/undo.js +0 -23
- package/src/integrations/uploadcare.js +0 -23
- package/src/integrations/utils.js +0 -23
- package/src/suggestion.js +0 -24
- package/src/suggestiondescriptionfactory.js +0 -23
- package/src/trackchanges.js +0 -23
- package/src/trackchangesconfig.js +0 -23
- package/src/trackchangesdata.js +0 -23
- package/src/trackchangesediting.js +0 -23
- package/src/trackchangespreview.js +0 -23
- package/src/trackchangesui.js +0 -23
- package/src/ui/suggestioncontroller.js +0 -24
- package/src/ui/view/basesuggestionthreadview.js +0 -23
- package/src/ui/view/suggestionthreadview.js +0 -23
- package/src/ui/view/suggestionview.js +0 -23
- package/src/ui/view/trackchangespreviewview.js +0 -23
- package/src/utils/common-translations.js +0 -23
- package/src/utils/utils.js +0 -23
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x3c04a9(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5f4048,_0x4f26d1){super(),this['id']=_0x4f26d1['id'],this['type']=_0x4f26d1['type'],this['subType']=_0x4f26d1['subType']||null,this['author']=_0x4f26d1['author'],this['creator']=_0x4f26d1['creator']||_0x4f26d1['author'],this['isExternal']=Boolean(_0x4f26d1['attributes']&&_0x4f26d1['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4f26d1['originalSuggestionId']||null,this['_model']=_0x5f4048,this['_onAccept']=_0x4f26d1['onAccept'],this['_onDiscard']=_0x4f26d1['onDiscard'],this['_onAttributesChange']=_0x4f26d1['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f26d1['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 _0x58d085=this;for(;_0x58d085['previous'];)_0x58d085=_0x58d085['previous'];return _0x58d085;}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'](_0x5e7f0a){this['_markerNames']['add'](_0x5e7f0a);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x39d2d4=>this['_model']['markers']['get'](_0x39d2d4))['filter'](_0x30686d=>_0x30686d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x22e0bf=>{for(const _0x1bf83d of this['getMarkers']())_0x22e0bf['removeMarker'](_0x1bf83d);}),this['_markerNames']['clear']();}['removeMarker'](_0x2bd6af){this['_model']['change'](_0x19e0ec=>{_0x19e0ec['removeMarker'](_0x2bd6af);}),this['_markerNames']['delete'](_0x2bd6af);}['addRange'](_0x165870){const _0x9f4217='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x9f4217),this['_model']['change'](_0xf481dd=>{_0xf481dd['addMarker'](_0x9f4217,{'range':_0x165870,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x406792){for(const _0x1b43e1 of this['getRanges']())if(_0x1b43e1['isIntersecting'](_0x406792))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x50912a=>_0x50912a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x474aa6,_0x3eabfd)=>[..._0x474aa6,..._0x3eabfd['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xaee74=this['getRanges']();if(0x1!=_0xaee74['length'])return null;const _0x4428a4=_0xaee74[0x0],_0x46ab1c=_0x4428a4['start']['nodeAfter'],_0x4c5a5d=_0x4428a4['end']['nodeBefore'];return _0x46ab1c instanceof _0x162e2d?_0x46ab1c!=_0x4c5a5d?null:_0x46ab1c: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 _0x397ab6=[];let _0xceb2c8=this['head'];for(;_0xceb2c8;)_0x397ab6['push'](_0xceb2c8),_0xceb2c8=_0xceb2c8['next'];return _0x397ab6;}['setAttribute'](_0x179a33,_0x57b52e){const _0x1d81c5=_0xc14952(this['attributes']);_0x159df5(_0x1d81c5,_0x179a33,_0x57b52e),_0xe0300(_0x1d81c5,this['attributes'])||(this['attributes']=_0x1d81c5,this['_onAttributesChange'](_0x1d81c5));}['removeAttribute'](_0x377bf2){const _0xdfe800=_0xc14952(this['attributes']);_0x57d7eb(_0xdfe800,_0x377bf2),_0xe0300(_0xdfe800,this['attributes'])||(this['attributes']=_0xdfe800,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 _0x257abf()['substr'](0x1,0x5);}}function o(_0x553f71,_0x497639,_0x416139){const _0x3033e3=_0x553f71['t'],t=_0x553f71['t'];switch(_0x497639){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',_0x416139);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x416139);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x416139);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x416139);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x416139);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',_0x416139);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x416139);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',_0x416139);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x416139);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x416139);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x416139);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x416139);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x416139);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x416139);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x416139);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x416139);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x416139);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x416139);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x416139);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x416139);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x416139);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x416139);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x416139);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x416139);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x416139);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'},_0x416139);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x416139);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x416139);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x416139);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x416139);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x416139);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x416139);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x416139);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'},_0x416139);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x416139);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x416139);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x416139);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x416139);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'},_0x416139);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x416139);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'},_0x416139);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x416139);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x416139);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'},_0x416139);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x416139);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'},_0x416139);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x416139);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x416139);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x416139);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x416139);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x416139);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'},_0x416139);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x416139);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 _0x3033e3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x416139);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3033e3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x416139);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x416139);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'},_0x416139);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'},_0x416139);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'},_0x416139);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x497639;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x414c5a,_0x1366ab){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x414c5a,this['_locale']=_0x1366ab;}['getDescriptions'](_0x1f3879){const _0x5ba233=[],_0x2183a0=new Set(),_0x26ea2f=new Set();for(let _0x192535=0x0;_0x192535<_0x1f3879['length'];_0x192535++){const _0x3ce792=_0x1f3879[_0x192535];if(!_0x3ce792['isInContent'])continue;const _0x114600=this['_handleCustomCallbackDescription'](_0x3ce792);if(_0x114600){if(null!=_0x3ce792['subType']){if(_0x2183a0['has'](_0x3ce792['subType']))continue;_0x2183a0['add'](_0x3ce792['subType']);}_0x5ba233['push'](_0x114600);}else{if('attribute'==_0x3ce792['type']){const _0x246647=_0x3ce792['data']['key'];if(_0x26ea2f['has'](_0x246647))continue;_0x26ea2f['add'](_0x3ce792['data']['key']),_0x246647==m?this['_handleRenameSuggestionDescription'](_0x5ba233,_0x3ce792):this['_handleAttributeSuggestionDescription'](_0x5ba233,_0x3ce792);continue;}'insertion'!=_0x3ce792['type']&&'deletion'!=_0x3ce792['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5ba233,_0x3ce792,_0x1f3879[_0x192535+0x1]);}}return this['_resolveDescriptionItems'](_0x5ba233);}['registerDescriptionCallback'](_0x6e95e8){this['_customCallbacks']['push'](_0x6e95e8);}['registerElementLabel'](_0x2b9a40,_0x3e00b1,_0x2a4280=_0x1d470f['normal']){'function'==typeof _0x2b9a40?_0x48b55a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2b9a40,'label':_0x3e00b1,'priority':_0x2a4280}):this['_itemLabels']['set'](_0x2b9a40,_0x3e00b1);}['registerAttributeLabel'](_0x30595d,_0x55eb5f){this['_attributeLabels']['set'](_0x30595d,_0x55eb5f);}['getItemLabel'](_0x14d63c,_0x525c84=0x1){let _0x5a9fb4;for(const _0x3fa0df of this['_itemLabelsCallbacks'])if(_0x3fa0df['matchingCallback'](_0x14d63c)){_0x5a9fb4=_0x3fa0df['label'];break;}return _0x5a9fb4||(_0x5a9fb4=this['_itemLabels']['get'](_0x14d63c['name'])),_0x5a9fb4?_0x5a9fb4(_0x525c84):0x1!==_0x525c84?_0x525c84+'\x20'+_0x14d63c['name']+'s':''+_0x14d63c['name'];}['_addDescriptionItems'](_0x577454,_0x25cc35){const _0x523da9=_0x25cc35['getFirstRange']()['getWalker'](),_0x2fa9ce='insertion'==_0x25cc35['type']?'add':'remove';for(const _0xeeae72 of _0x523da9){const _0x4e5bef=_0xeeae72['item'],_0x30c39f=_0x577454[_0x577454['length']-0x1];if(_0x4e5bef['is']('$textProxy'))_0x30c39f&&_0x30c39f['type']['indexOf']('Container')>-0x1&&_0x577454['pop'](),_0x30c39f&&'text'==_0x30c39f['type']?_0x30c39f[_0x2fa9ce]+=_0x4e5bef['data']:_0x577454['push']({'type':'text','add':'add'==_0x2fa9ce?_0x4e5bef['data']:'','remove':'remove'==_0x2fa9ce?_0x4e5bef['data']:''});else{if(this['_schema']['isObject'](_0x4e5bef)){const _0x3c750a=_0x4e5bef;if(_0x30c39f&&_0x30c39f['type']['indexOf']('Container')>-0x1&&_0x577454['pop'](),'elementEnd'==_0xeeae72['type'])continue;_0x30c39f&&_0x30c39f['type']==_0x2fa9ce+'Object'&&_0x30c39f['element']['name']==_0x3c750a['name']?_0x30c39f['quantity']++:_0x577454['push']({'type':_0x2fa9ce+'Object','element':_0x3c750a,'quantity':0x1}),_0x523da9['skip'](_0x56c5c1=>!('elementEnd'==_0x56c5c1['type']&&_0x56c5c1['item']==_0x4e5bef));}else{if(this['_schema']['checkChild'](_0x4e5bef,'$text')||_0x4e5bef['is']('element','softBreak')){const _0x1bcadf=_0x4e5bef;if('add'==_0x2fa9ce&&'elementStart'==_0xeeae72['type']||'remove'==_0x2fa9ce&&'elementEnd'==_0xeeae72['type'])continue;if(_0x30c39f&&-0x1==_0x30c39f['type']['indexOf']('Container')){'text'==_0x30c39f['type']&&(_0x30c39f[_0x2fa9ce]+='\x0a');continue;}let _0x5710d7;if(_0x5710d7='add'==_0x2fa9ce?_0x1bcadf['nextSibling']&&!this['_schema']['isObject'](_0x1bcadf['nextSibling'])?_0x1bcadf['nextSibling']:null:_0x1bcadf['previousSibling']&&!this['_schema']['isObject'](_0x1bcadf['previousSibling'])?_0x1bcadf['previousSibling']:null,_0x1bcadf['isEmpty']||_0x5710d7&&_0x5710d7['isEmpty']){const _0xe52030=_0x5710d7&&_0x5710d7['isEmpty']?_0x5710d7:_0x1bcadf;_0x30c39f&&_0x30c39f['type']==_0x2fa9ce+'EmptyContainer'&&_0x30c39f['element']['name']==_0xe52030['name']?_0x30c39f['quantity']++:_0x577454['push']({'type':_0x2fa9ce+'EmptyContainer','element':_0xe52030,'quantity':0x1});}else _0x577454['push']({'type':_0x2fa9ce+'Container','element':_0x1bcadf});}}}}}['_resolveDescriptionItems'](_0x2d35d4){const _0x69078d=this['_locale'],_0x160daf=[],_0xc49985=[],_0x8b9a9=[];for(const _0x5c65ca of _0x2d35d4)switch(_0x5c65ca['type']){case'text':if(_0x5c65ca['add']=_0x5c65ca['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5c65ca['remove']=_0x5c65ca['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5c65ca['add']&&''!=_0x5c65ca['remove']){_0x160daf['push']({'type':'replace','content':o(_0x69078d,'REPLACE_TEXT',['\x22'+_0x5c65ca['remove']+'\x22','\x22'+_0x5c65ca['add']+'\x22'])});continue;}if(null!=_0x5c65ca['add']['match'](/^ +$/)){_0x160daf['push']({'type':'insertion','content':o(_0x69078d,'*Insert:*\x20%0',o(_0x69078d,'ELEMENT_SPACE',_0x5c65ca['add']['length']))});continue;}if(null!=_0x5c65ca['remove']['match'](/^ +$/)){_0x160daf['push']({'type':'deletion','content':o(_0x69078d,'*Remove:*\x20%0',o(_0x69078d,'ELEMENT_SPACE',_0x5c65ca['remove']['length']))});continue;}if(''!=_0x5c65ca['add']){_0x160daf['push']({'type':'insertion','content':o(_0x69078d,'*Insert:*\x20%0','\x22'+_0x5c65ca['add']+'\x22')});continue;}_0x160daf['push']({'type':'deletion','content':o(_0x69078d,'*Remove:*\x20%0','\x22'+_0x5c65ca['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x160daf['push']({'type':'insertion','content':o(_0x69078d,'*Insert:*\x20%0',this['getItemLabel'](_0x5c65ca['element'],_0x5c65ca['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x160daf['push']({'type':'deletion','content':o(_0x69078d,'*Remove:*\x20%0',this['getItemLabel'](_0x5c65ca['element'],_0x5c65ca['quantity']))});continue;case'addContainer':_0x160daf['push']({'type':'insertion','content':o(_0x69078d,'*Split:*\x20%0',this['getItemLabel'](_0x5c65ca['element'],_0x5c65ca['quantity']))});continue;case'removeContainer':_0x160daf['push']({'type':'deletion','content':o(_0x69078d,'*Merge:*\x20%0',this['getItemLabel'](_0x5c65ca['element'],_0x5c65ca['quantity']))});continue;case'addFormat':_0xc49985['push'](_0x5c65ca['key']);continue;case'removeFormat':_0x8b9a9['push'](_0x5c65ca['key']);continue;default:_0x160daf['push'](_0x5c65ca);}if(_0xc49985['length']){const _0x5c8ca5=_0xc49985['map'](_0x367f95=>this['_attributeLabels']['has'](_0x367f95)?this['_attributeLabels']['get'](_0x367f95):_0x367f95)['join'](',\x20');_0x160daf['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5c8ca5)});}if(_0x8b9a9['length']){const _0x2a6e75=_0x8b9a9['map'](_0xa839a8=>this['_attributeLabels']['has'](_0xa839a8)?this['_attributeLabels']['get'](_0xa839a8):_0xa839a8)['join'](',\x20');_0x160daf['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2a6e75)});}return _0x160daf;}['_handleCustomCallbackDescription'](_0x9ccf44){for(const _0x375ede of this['_customCallbacks']){const _0x298085=_0x375ede(_0x9ccf44);if(_0x298085&&'type'in _0x298085)return _0x298085;}}['_handleAttributeSuggestionDescription'](_0x3492ff,_0x5c8f56){const _0x2662a1=_0x5c8f56['data'],_0x568394=void 0x0===_0x2662a1['newValue']?'removeFormat':'addFormat';_0x3492ff['push']({'type':_0x568394,'key':_0x2662a1['key']});}['_handleRenameSuggestionDescription'](_0x204637,_0x1285e9){_0x204637['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1285e9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x37059b,_0x31a7c1,_0xa7f25a){if(this['_addDescriptionItems'](_0x37059b,_0x31a7c1),_0xa7f25a&&_0xa7f25a['getFirstRange']()&&!_0x31a7c1['getFirstRange']()['end']['isEqual'](_0xa7f25a['getFirstRange']()['start'])){const _0x24b351=_0x37059b[_0x37059b['length']-0x1],_0x285bcb='insertion'==_0x31a7c1['type']?'add':'remove';_0x24b351&&'text'==_0x24b351['type']&&(_0x24b351[_0x285bcb]+='\x0a');}}}class R extends _0x959a6f{['afterInit'](){const _0x2826cf=this['editor'],_0x28ab1a=_0x2826cf['plugins']['get']('TrackChangesEditing');_0x2826cf['commands']['get']('showAIAssistant')&&_0x28ab1a['enableCommand']('showAIAssistant');}}class T extends _0x959a6f{['afterInit'](){const _0x563a36=this['editor'],_0x42abfd=_0x563a36['plugins']['get']('TrackChangesEditing');_0x563a36['commands']['get']('toggleAi')&&_0x42abfd['enableCommand']('toggleAi');}}class E extends _0x959a6f{['afterInit'](){const _0x2686f7=this['editor'],_0x5183c6=_0x2686f7['plugins']['get']('TrackChangesEditing');_0x2686f7['commands']['get']('aiQuickAction')&&_0x5183c6['enableCommand']('aiQuickAction');}}class U extends _0x959a6f{['afterInit'](){const _0x3f6e52=this['editor'],_0x5b353d=_0x3f6e52['locale'];if(!_0x3f6e52['plugins']['has']('AlignmentEditing'))return;const _0x4fafe3=_0x3f6e52['plugins']['get']('TrackChangesEditing');_0x4fafe3['enableDefaultAttributesIntegration']('alignment'),_0x4fafe3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5b353d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1db62e=this['editor'],_0x1757eb=_0x1db62e['locale'];_0x1db62e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27ba2b=>{if('formatBlock'!=_0x27ba2b['type'])return;const {data:_0x12ffb7}=_0x27ba2b;if(_0x12ffb7&&'alignment'==_0x12ffb7['commandName']){const _0x4b2424=_0x12ffb7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1757eb,'*Format:*\x20%0',function(_0x2f28ab){switch(_0x2f28ab){case'left':return o(_0x1757eb,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1757eb,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1757eb,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1757eb,'FORMAT_JUSTIFY_TEXT');}}(_0x4b2424))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x959a6f{['afterInit'](){const _0x2fda8a=this['editor'],_0x1fdb36=_0x2fda8a['plugins']['get']('TrackChangesEditing'),_0x31e8e2=_0x2fda8a['locale'];for(const _0x280239 of ti){if(!_0x2fda8a['plugins']['has'](_0x280239))continue;const _0xa94226=_0x280239['slice'](0x0,-0x7)['toLowerCase'](),_0x2ca461='FORMAT_'+_0xa94226['toUpperCase']();_0x1fdb36['enableDefaultAttributesIntegration'](_0xa94226),_0x1fdb36['descriptionFactory']['registerAttributeLabel'](_0xa94226,o(_0x31e8e2,_0x2ca461));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55dc6=this['editor'],_0x2402f2=_0x55dc6['locale'],_0x121703=_0x55dc6['plugins']['get']('TrackChangesEditing');function _0xcad13a(_0x2b8f98,_0x3bf44b){_0x121703['descriptionFactory']['registerDescriptionCallback'](_0x48207d=>{if('formatInline'!=_0x48207d['type'])return;const {data:_0x4d0ecc}=_0x48207d;return _0x4d0ecc&&_0x4d0ecc['commandName']===_0x2b8f98?_0x4d0ecc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2402f2,'*Format:*\x20%0',_0x3bf44b)}:{'type':'format','content':o(_0x2402f2,'*Remove\x20format:*\x20%0',_0x3bf44b)}:void 0x0;});}_0xcad13a('bold',o(_0x2402f2,'FORMAT_BOLD')),_0xcad13a('italic',o(_0x2402f2,'FORMAT_ITALIC')),_0xcad13a('underline',o(_0x2402f2,'FORMAT_UNDERLINE')),_0xcad13a('code',o(_0x2402f2,'FORMAT_CODE')),_0xcad13a('strikethrough',o(_0x2402f2,'FORMAT_STRIKETHROUGH')),_0xcad13a('subscript',o(_0x2402f2,'FORMAT_SUBSCRIPT')),_0xcad13a('superscript',o(_0x2402f2,'FORMAT_SUPERSCRIPT'));}}class F extends _0x959a6f{['afterInit'](){const _0x479996=this['editor'],_0xbf28cf=_0x479996['locale'];if(!_0x479996['plugins']['has']('BlockQuoteEditing'))return;const _0x23d98e=_0x479996['plugins']['get']('TrackChangesEditing'),_0x3d96a4=this['editor']['commands']['get']('blockQuote');_0x23d98e['enableCommand']('blockQuote',(_0x964c99,_0x577e33={})=>{const _0x26d81c=this['editor']['model']['document']['selection'],_0x5068ad=_0x577e33&&void 0x0!==_0x577e33['forceValue']?_0x577e33['forceValue']:!_0x3d96a4['value'];let _0x338d8f=[];if(_0x5068ad){const _0x1e400a=Array['from'](_0x26d81c['getSelectedBlocks']())['filter'](_0x52791a=>oo(_0x52791a)||function(_0x54bdfe,_0x4db610){const _0x48bf6f=_0x4db610['checkChild'](_0x54bdfe['parent'],'blockQuote'),_0x198ab3=_0x4db610['checkChild'](['$root','blockQuote'],_0x54bdfe);return _0x48bf6f&&_0x198ab3;}(_0x52791a,this['editor']['model']['schema']));_0x338d8f=to(_0x1e400a,_0x479996['model']);}else{const _0x24b898=Array['from'](_0x26d81c['getSelectedBlocks']())['filter'](_0x381b67=>oo(_0x381b67));_0x338d8f=to(_0x24b898,_0x479996['model']);}_0x479996['model']['change'](()=>{for(const _0x281738 of _0x338d8f)_0x23d98e['markBlockFormat'](_0x281738,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5068ad}]});});}),_0x23d98e['descriptionFactory']['registerDescriptionCallback'](_0x44e8e1=>{const {data:_0x47e7df}=_0x44e8e1;if(_0x47e7df&&'blockQuote'==_0x47e7df['commandName']){const _0x3653b9=o(_0xbf28cf,'ELEMENT_BLOCK_QUOTE');return _0x47e7df['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xbf28cf,'*Set\x20format:*\x20%0',_0x3653b9)}:{'type':'format','content':o(_0xbf28cf,'*Remove\x20format:*\x20%0',_0x3653b9)};}});}}function oo(_0x426bf5){return'blockQuote'==_0x426bf5['parent']['name'];}class G extends _0x959a6f{['afterInit'](){const _0x5b9179=this['editor'],_0x35e033=_0x5b9179['locale'],_0x48aee3=_0x5b9179['plugins']['get']('TrackChangesEditing');_0x5b9179['plugins']['has']('BookmarkEditing')&&(_0x48aee3['enableCommand']('insertBookmark'),_0x48aee3['enableDefaultAttributesIntegration']('updateBookmark'),_0x48aee3['descriptionFactory']['registerDescriptionCallback'](_0x2ae7e3=>{if('insertion'!=_0x2ae7e3['type']&&'deletion'!=_0x2ae7e3['type']&&'attribute'!=_0x2ae7e3['type'])return;const _0x52311e=_0x2ae7e3['getContainedElement']();if(null==_0x52311e)return;if(!_0x52311e['is']('element','bookmark'))return;const _0xfe9d07=_0x52311e['getAttribute']('bookmarkId');if('insertion'==_0x2ae7e3['type'])return{'type':'insertion','content':o(_0x35e033,'*Insert:*\x20%0','\x22'+_0xfe9d07+'\x22\x20'+o(_0x35e033,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2ae7e3['type'])return{'type':'deletion','content':o(_0x35e033,'*Remove:*\x20%0','\x22'+_0xfe9d07+'\x22\x20'+o(_0x35e033,'ELEMENT_BOOKMARK'))};const {data:_0x26af50}=_0x2ae7e3;if(!_0x26af50||'bookmarkId'!=_0x26af50['key'])return;return{'type':'format','content':o(_0x35e033,'*Set\x20bookmark:*\x20%0','\x22'+_0x26af50['newValue']+'\x22')};}));}}class L extends _0x959a6f{['afterInit'](){const _0xac9ba=this['editor'];_0xac9ba['plugins']['has']('CaseChange')&&(_0xac9ba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xac9ba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xac9ba['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x959a6f{['afterInit'](){const _0xe3219d=this['editor'];_0xe3219d['commands']['get']('ckbox')&&_0xe3219d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x959a6f{['afterInit'](){const _0x90fe70=this['editor'];if(!_0x90fe70['plugins']['has']('CodeBlock'))return;const _0x3fb323=_0x90fe70['plugins']['get']('TrackChangesEditing'),_0x4f2300=_0x90fe70['locale'],_0x573d19=_0x90fe70['config']['get']('codeBlock')['languages'],_0x10813c=_0x90fe70['commands']['get']('codeBlock');_0x3fb323['enableCommand']('indentCodeBlock'),_0x3fb323['enableCommand']('outdentCodeBlock'),_0x3fb323['enableCommand']('codeBlock',(_0x3f3775,_0x4a8500={})=>{const _0x375c6a=_0x90fe70['model'],_0xfa5600=_0x90fe70['model']['document']['selection'],_0x2c0dd7=_0x4a8500&&void 0x0!==_0x4a8500['forceValue']?_0x4a8500['forceValue']:!_0x10813c['value'];let _0x1e9b6f;_0x4a8500['language']||(_0x4a8500['language']=_0x573d19[0x0]['language']),_0x1e9b6f=_0x2c0dd7?Array['from'](_0xfa5600['getSelectedBlocks']())['filter'](_0x1df307=>co(_0x1df307)||function(_0x10f2ff,_0xb76c59){if(_0x10f2ff['is']('rootElement')||_0xb76c59['isLimit'](_0x10f2ff))return!0x1;return _0xb76c59['checkChild'](_0x10f2ff['parent'],'codeBlock');}(_0x1df307,_0x375c6a['schema'])):Array['from'](_0xfa5600['getSelectedBlocks']())['filter'](_0x149fbd=>co(_0x149fbd));const _0x4a19da=to(_0x1e9b6f,_0x375c6a);_0x375c6a['change'](()=>{for(const _0x1a8a84 of _0x4a19da)_0x3fb323['markBlockFormat'](_0x1a8a84,{'commandName':'codeBlock','commandParams':[{..._0x4a8500,'forceValue':_0x2c0dd7}],'formatGroupId':'blockName'});});}),(_0x3fb323['descriptionFactory']['registerElementLabel']('codeBlock',_0x52b44b=>o(_0x4f2300,'ELEMENT_CODE_BLOCK',_0x52b44b)),_0x3fb323['descriptionFactory']['registerDescriptionCallback'](_0x17dfbf=>{if('formatBlock'!=_0x17dfbf['type'])return;const _0x1fe05b=_0x4f2300['t'],{data:_0x40f21f}=_0x17dfbf;if(!_0x40f21f||'codeBlock'!=_0x40f21f['commandName'])return;const _0x107235=_0x40f21f['commandParams'][0x0]['language'],_0x4680fa=_0x1fe05b(_0x573d19['find'](_0x46e9af=>_0x46e9af['language']===_0x107235)['label'])['toLowerCase']();return _0x40f21f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f2300,'*Set\x20format:*\x20%0',o(_0x4f2300,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4680fa+')')}:{'type':'format','content':o(_0x4f2300,'*Remove\x20format:*\x20%0',o(_0x4f2300,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x562e67){return'codeBlock'==_0x562e67['name'];}class z extends _0x959a6f{['afterInit'](){const _0x4e13cf=this['editor'];if(!_0x4e13cf['plugins']['has']('CommentsEditing'))return;_0x4e13cf['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x959a6f{static get['requires'](){return[_0x45d38d];}['init'](){const _0x46478e=this['editor'],_0x423f31=_0x46478e['plugins']['get']('TrackChangesEditing');_0x423f31['enableCommand']('delete');const _0xadbd72=_0x46478e['commands']['get']('deleteForward');_0x423f31['enableCommand']('deleteForward',(_0x44b8e9,_0x3209f6={})=>{const _0x44a05f=_0x46478e['model']['createSelection'](_0x46478e['model']['document']['selection']);_0x44a05f['isCollapsed']&&_0x46478e['model']['modifySelection'](_0x44a05f,{'direction':'forward','unit':_0x3209f6['unit']});const _0xa18a97=_0x44a05f['getFirstRange'](),_0x3d9662=_0x481a5c['fromRange'](_0xa18a97);let _0x5278c5;_0x44b8e9(_0x3209f6),_0x5278c5='$graveyard'==_0x3d9662['root']['rootName']?_0x46478e['model']['createRange'](_0xa18a97['start']):_0x46478e['model']['createRange'](_0x3d9662['start'],_0x3d9662['end']),_0x3d9662['detach'](),_0x46478e['model']['enqueueChange'](_0xadbd72['buffer']['batch'],_0x58155f=>{_0xadbd72['buffer']['lock'](),_0x58155f['setSelection'](_0x58155f['createRange'](_0x5278c5['end'])),_0xadbd72['buffer']['unlock']();});});}}class W extends _0x959a6f{['afterInit'](){const _0x53f419=this['editor'];if(!_0x53f419['plugins']['has']('ListEditing'))return;const _0x8a39f6=_0x53f419['locale'],_0x4b2801=_0x53f419['plugins']['get']('TrackChangesEditing'),_0x2dff11=_0x53f419['plugins']['has']('TodoListEditing'),_0x428c39=!!_0x53f419['config']['get']('list.multiBlock');function _0x3a11ff(_0x1b26dc){return{'type':'format','content':''+o(_0x8a39f6,'*Set\x20format:*\x20%0',_0x1b26dc)};}function _0x4964e5(_0x226423){return{'type':'format','content':''+o(_0x8a39f6,'*Remove\x20format:*\x20%0',_0x226423)};}_0x4b2801['enableDefaultAttributesIntegration']('numberedList'),_0x4b2801['enableDefaultAttributesIntegration']('bulletedList'),_0x4b2801['enableDefaultAttributesIntegration']('customNumberedList'),_0x4b2801['enableDefaultAttributesIntegration']('customBulletedList'),_0x4b2801['enableDefaultAttributesIntegration']('indentList'),_0x4b2801['enableDefaultAttributesIntegration']('outdentList'),_0x4b2801['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4b2801['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x428c39&&(_0x4b2801['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4b2801['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2dff11&&(_0x4b2801['enableDefaultAttributesIntegration']('todoList'),_0x4b2801['enableDefaultAttributesIntegration']('checkTodoList'),_0x4b2801['descriptionFactory']['registerDescriptionCallback'](_0x3b5ada=>{const {data:_0x39166e}=_0x3b5ada;if(_0x39166e&&'todoListChecked'==_0x39166e['key'])return{'type':'format','content':_0x39166e['newValue']?o(_0x8a39f6,'*Check\x20item*'):o(_0x8a39f6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1eae60=>{if(_0x1eae60['batch']['isUndo'])return!0x1;let _0x1499e9=!0x1;const _0x14357f=_0x4b2801['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x284e8d=>'todoListChecked'===_0x4b2801['_getAttributeKey'](_0x284e8d));for(const _0x2c3d02 of _0x14357f){'todo'!=_0x2c3d02['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4b2801['_findSuggestions'](_0x2c3d02['getFirstRange'](),'attribute')['find'](_0x527185=>'listType'===_0x4b2801['_getAttributeKey'](_0x527185['suggestion']))||(_0x1eae60['removeMarker'](_0x2c3d02['getFirstMarker']()),_0x1499e9=!0x0));}return _0x1499e9;})),_0x4b2801['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x8a39f6,'FORMAT_INDENT'));const _0x2c3e58={'type':'format','content':''};_0x4b2801['descriptionFactory']['registerDescriptionCallback'](_0x36b28e=>{const {data:_0x5bc863}=_0x36b28e;if(!_0x5bc863||'listType'!=_0x5bc863['key'])return;let _0xa72405=_0x36b28e['head'];for(;_0xa72405;){if(_0xa72405['data']&&(('listStyle'==_0xa72405['data']['key']||'listMarkerStyle'==_0xa72405['data']['key'])&&(_0xa72405['data']['newValue']&&'default'!=_0xa72405['data']['newValue']||'default'!=_0xa72405['data']['oldValue']&&!_0x5bc863['newValue'])||!_0x428c39&&_0xa72405['data']['key']==m))return _0x2c3e58;_0xa72405=_0xa72405['next'];}if(null==_0x5bc863['newValue'])switch(_0x5bc863['oldValue']){case'bulleted':return _0x4964e5(o(_0x8a39f6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4964e5(o(_0x8a39f6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4964e5(o(_0x8a39f6,'ELEMENT_TODO_LIST'));}switch(_0x5bc863['newValue']){case'bulleted':return _0x3a11ff(o(_0x8a39f6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a11ff(o(_0x8a39f6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a11ff(o(_0x8a39f6,'ELEMENT_TODO_LIST'));}}),_0x4b2801['descriptionFactory']['registerDescriptionCallback'](_0x10c08b=>{const {data:_0x1e922d}=_0x10c08b;if(_0x1e922d&&'listIndent'==_0x1e922d['key'])return null==_0x1e922d['newValue']||null==_0x1e922d['oldValue']&&0x0==_0x1e922d['newValue']?_0x2c3e58:void 0x0;}),_0x4b2801['descriptionFactory']['registerDescriptionCallback'](_0xccb4ed=>{if('attribute'!=_0xccb4ed['type'])return;const {data:_0x11668a}=_0xccb4ed;if(!_0x11668a||'listItemId'!=_0x11668a['key'])return;const _0x48fb53=Te(_0xccb4ed);return'newValue'==_0x48fb53?{'type':'format','content':o(_0x8a39f6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x48fb53?{'type':'format','content':o(_0x8a39f6,'*Split:*\x20list\x20item')}:_0x2c3e58;}),_0x53f419['model']['document']['registerPostFixer'](_0x14abaf=>this['listItemIdFixer'](_0x14abaf)),_0x53f419['model']['document']['registerPostFixer'](_0x490da2=>this['noTrackChangesFixer'](_0x490da2)),_0x53f419['model']['document']['on']('change:data',(_0x561e7e,_0x5df144)=>{if(_0x5df144['isUndo']||!_0x5df144['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4f9d9d){if(_0x4f9d9d['batch']['isUndo']||!_0x4f9d9d['batch']['isLocal'])return!0x1;let _0x5b12c1=!0x1;const _0x3ece35=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x23b404=>_0x23b404['data']&&'listItemId'==_0x23b404['data']['key'])['filter'](_0x5acf7c=>_0x5acf7c['data']['newValue']&&_0x5acf7c['data']['oldValue']);for(const _0x1ffb00 of _0x3ece35)Te(_0x1ffb00)||(_0x4f9d9d['removeMarker'](_0x1ffb00['getFirstMarker']()),_0x5b12c1=!0x0);return _0x5b12c1;}['noTrackChangesFixer'](_0x91f09c){if(_0x91f09c['batch']['isUndo']||!_0x91f09c['batch']['isLocal'])return!0x1;const _0x3a3f82=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3a3f82['trackChangesCommand']['value'])return!0x1;let _0x56a76b=!0x1;const _0x39c983=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x453b57=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x357a30=>'attribute'==_0x357a30['type'])['filter'](_0x8653d6=>_0x39c983['includes'](_0x8653d6['attributeKey']));if(0x0==_0x453b57['length'])return _0x56a76b;for(const _0x249ebf of _0x453b57){const _0x39f661=_0x3a3f82['_findSuggestions'](_0x249ebf['range'],'attribute')['filter'](_0x2e7cc7=>!_0x2e7cc7['meta']['isNextTo'])['map'](_0x4f0e67=>_0x4f0e67['suggestion'])['filter'](_0x536336=>{const _0x222458=_0x3a3f82['_getAttributeKey'](_0x536336);return _0x39c983['includes'](_0x222458);});if(_0x39f661['length']){for(const _0x4f78cc of _0x39f661)_0x91f09c['removeMarker'](_0x4f78cc['getFirstMarker']());_0x56a76b=!0x0;}}return _0x56a76b;}['assureChains'](){const _0x15459d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b3d4c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x23516e;const _0x319096=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x17f43f=>{if(_0x17f43f['data']['oldRange']||!_0x17f43f['data']['newRange'])return null;if(!_0x17f43f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3745d5}=_0x15459d['_splitMarkerName'](_0x17f43f['name']);if(!_0x15459d['hasSuggestion'](_0x3745d5))return null;const _0x37bbc4=_0x15459d['getSuggestion'](_0x3745d5);return _0x3b3d4c['includes'](_0x37bbc4['data']['key']);})['map'](_0x1d73a4=>{const {id:_0x36d15d}=_0x15459d['_splitMarkerName'](_0x1d73a4['name']),_0x558538=_0x15459d['getSuggestion'](_0x36d15d);return _0x23516e=_0x558538['attributes']['groupId'],_0x558538['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x319096['size'])return;const _0x5419e0=_0x15459d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x587241=>'attribute'==_0x587241['type']&&_0x587241['data']&&_0x3b3d4c['includes'](_0x587241['data']['key'])&&_0x587241['attributes']['groupId']!=_0x23516e)['map'](_0x43b96c=>({'listItem':_0x43b96c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x43b96c['attributes']['groupId']})),_0x4421f4=new Set();for(const {groupId:_0xe46b6d,listItem:_0x56fd96}of _0x5419e0)_0x319096['has'](_0x56fd96)&&_0x4421f4['add'](_0xe46b6d);for(const _0x37772d of _0x15459d['getSuggestions']())_0x4421f4['has'](_0x37772d['attributes']['groupId'])&&_0x37772d['setAttribute']('groupId',_0x23516e);}['_supportLegacySuggestions'](){const _0x46faf7=this['editor'],_0x280cee=_0x46faf7['locale'],_0x9b273e=_0x46faf7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x9b273e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x22022c,_0x5a468a){const _0x4e5d60=[];for(let _0x39a1c6 of _0x22022c)_0x39a1c6['start']['nodeAfter']===_0x39a1c6['end']['parent']&&(_0x39a1c6=_0x46faf7['model']['createRange'](_0x46faf7['model']['createPositionAt'](_0x39a1c6['start']['nodeAfter'],0x0))),_0x4e5d60['push'](_0x39a1c6);_0x46faf7['model']['change'](_0x186331=>{const _0x344a22=_0x46faf7['model']['document']['selection'],_0x4a254c=Array['from'](_0x344a22['getRanges']())['map'](_0x3ffd50=>_0x481a5c['fromRange'](_0x3ffd50));_0x186331['setSelection'](_0x4e5d60),_0x46faf7['commands']['get'](_0x5a468a['commandName'])['refresh'](),_0x5a468a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x46faf7['execute'](_0x5a468a['commandName'],..._0x5a468a['commandParams']),_0x186331['setSelection'](_0x4a254c);for(const _0x8e0c6b of _0x4a254c)_0x8e0c6b['detach']();});}),_0x9b273e['descriptionFactory']['registerElementLabel'](function(_0x2dba88){const _0x495f8f=!_0x46faf7['model']['schema']['isObject'](_0x2dba88),_0x331aa3=_0x2dba88['previousSibling'],_0x184241=_0x2dba88['nextSibling'],_0x112153=_0x2dba88['getAttribute']('listItemId'),_0x112a0d=!_0x331aa3||_0x331aa3['getAttribute']('listItemId')!==_0x112153,_0x292720=!_0x184241||_0x184241['getAttribute']('listItemId')!==_0x112153;return _0x495f8f&&Boolean(_0x112153)&&_0x112a0d&&_0x292720;},_0x256b52=>o(_0x280cee,'ELEMENT_LIST_ITEM',_0x256b52));}['_registerLegacyDescription'](){const _0x17dc7e=this['editor'],_0x4887f3=_0x17dc7e['locale'];function _0x3b4ae2(_0x46feeb){const _0x309ea9=_0x17dc7e['commands']['get']('bulletedList')['value'],_0x4cecac=_0x17dc7e['commands']['get']('numberedList')['value'];return'numberedList'===_0x46feeb?_0x309ea9:_0x4cecac;}_0x17dc7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2a18c0){if('formatBlock'!=_0x2a18c0['type'])return;const {data:_0x4b4ad9}=_0x2a18c0;if(!_0x4b4ad9)return;let _0x3a8972,_0x725628,_0x2249be,_0x1ae1c9;switch(_0x4b4ad9['commandName']){case'bulletedList':_0x2249be=_0x4b4ad9['commandParams'][0x0]['forceValue'],_0x1ae1c9=_0x3b4ae2(_0x4b4ad9['commandName']),_0x3a8972=_0x2249be?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ae1c9&&_0x17dc7e['config']['get']('list.multiBlock')||(_0x3a8972='*Change\x20to:*\x20%0'),_0x725628={'type':'format','content':o(_0x4887f3,_0x3a8972,o(_0x4887f3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2249be=_0x4b4ad9['commandParams'][0x0]['forceValue'],_0x1ae1c9=_0x3b4ae2(_0x4b4ad9['commandName']),_0x3a8972=_0x2249be?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ae1c9&&_0x17dc7e['config']['get']('list.multiBlock')||(_0x3a8972='*Change\x20to:*\x20%0'),_0x725628={'type':'format','content':o(_0x4887f3,_0x3a8972,o(_0x4887f3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3a8972='*Indent:*\x20%0',_0x725628={'type':'format','content':o(_0x4887f3,_0x3a8972,o(_0x4887f3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3a8972=function(_0x33396d){const _0x32b823=_0x33396d['getFirstRange']();let _0x3bbc62=_0x32b823['start']['nodeAfter'];for(;_0x3bbc62&&_0x32b823['containsItem'](_0x3bbc62);){if(_0x3bbc62['getAttribute']('listIndent')>0x0)return!0x1;_0x3bbc62=_0x3bbc62['nextSibling'];}return!0x0;}(_0x2a18c0)?o(_0x4887f3,'*Format:*\x20remove\x20from\x20%0',o(_0x4887f3,function(_0xed631f){return'ELEMENT_'+_0xed631f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2a18c0))):o(_0x4887f3,'*Outdent:*\x20%0',o(_0x4887f3,'ELEMENT_LIST_ITEM')),_0x725628={'type':'format','content':_0x3a8972};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4b4ad9['multipleBlocks']&&(_0x3a8972='*Merge:*\x20%0',_0x725628={'type':'deletion','content':o(_0x4887f3,_0x3a8972,o(_0x4887f3,'ELEMENT_LIST_ITEM'))});}return _0x725628;});}}function Te(_0x2be61d){let _0x4dc760=_0x2be61d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4dc760;){const _0x2eee62=_0x4dc760['getAttribute']('listItemId');if(!_0x2eee62)return!0x1;if(_0x2eee62==_0x2be61d['data']['newValue'])return'newValue';if(_0x2eee62==_0x2be61d['data']['oldValue'])return'oldValue';_0x4dc760=_0x4dc760['previousSibling'];}return!0x1;}class H extends _0x959a6f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x10258d=this['editor']['config']['get']('list.properties'),_0x34d6da=this['editor']['plugins']['get']('TrackChangesEditing');_0x10258d['styles']&&_0x34d6da['enableDefaultAttributesIntegration']('listStyle'),_0x10258d['reversed']&&_0x34d6da['enableDefaultAttributesIntegration']('listReversed'),_0x10258d['startIndex']&&_0x34d6da['enableDefaultAttributesIntegration']('listStart');const _0x54436d={'type':'format','content':''};_0x34d6da['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xf0ed56=this['editor']['locale'];_0x34d6da['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xf0ed56,'FORMAT_LIST_REVERSED')),_0x34d6da['descriptionFactory']['registerDescriptionCallback'](_0x5ef9c9=>{const {data:_0x49c12c}=_0x5ef9c9;if(_0x49c12c&&'listReversed'==_0x49c12c['key'])return null==_0x49c12c['newValue']||0x0==_0x49c12c['newValue']&&null==_0x49c12c['oldValue']?_0x54436d:void 0x0;}),_0x34d6da['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xf0ed56,'FORMAT_LIST_START')),_0x34d6da['descriptionFactory']['registerDescriptionCallback'](_0x358606=>{const {data:_0x5f32a3}=_0x358606;if(_0x5f32a3&&'listStart'==_0x5f32a3['key'])return null==_0x5f32a3['newValue']||0x1==_0x5f32a3['newValue']&&null==_0x5f32a3['oldValue']?_0x54436d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4ff0f4=>{if(_0x4ff0f4['batch']['isUndo'])return!0x1;let _0x10267e=!0x1;const _0x3792e1=_0x34d6da['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e4b9f=>{const _0x5c5809=_0x34d6da['_getAttributeKey'](_0x5e4b9f);return'listStart'==_0x5c5809||'listReversed'==_0x5c5809;});for(const _0x114458 of _0x3792e1){const _0x1e7ce0=_0x114458['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1e7ce0||'customNumbered'==_0x1e7ce0)continue;_0x34d6da['_findSuggestions'](_0x114458['getFirstRange'](),'attribute')['find'](_0x5b6be4=>'listType'==_0x34d6da['_getAttributeKey'](_0x5b6be4['suggestion']))||(_0x4ff0f4['removeMarker'](_0x114458['getFirstMarker']()),_0x10267e=!0x0);}return _0x10267e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x374d37){const _0x13e4e0=this['editor']['locale'],{data:_0x568172}=_0x374d37,_0x1e287f={'type':'format','content':''};if(!_0x568172||'listStyle'!=_0x568172['key'])return;if(!_0x568172['oldValue'])return'default'==_0x568172['newValue']?_0x1e287f:{'type':'format','content':''+o(_0x13e4e0,'*Set\x20format:*\x20%0',o(_0x13e4e0,this['_getTranslationKeyForListStyle'](_0x568172['newValue'])))};if(!_0x568172['newValue']){if('default'==_0x568172['oldValue'])return _0x1e287f;let _0x4a2c2c=_0x374d37['head'];for(;_0x4a2c2c;){if(_0x4a2c2c['data']&&'listType'==_0x4a2c2c['data']['key']&&_0x4a2c2c['data']['newValue'])return _0x1e287f;_0x4a2c2c=_0x4a2c2c['next'];}return{'type':'format','content':''+o(_0x13e4e0,'*Remove\x20format:*\x20%0',o(_0x13e4e0,this['_getTranslationKeyForListStyle'](_0x568172['oldValue'])))};}if('default'!=_0x568172['newValue'])return{'type':'format','content':''+o(_0x13e4e0,'*Set\x20format:*\x20%0',o(_0x13e4e0,this['_getTranslationKeyForListStyle'](_0x568172['newValue'])))};let _0x2eaa06=_0x374d37['head'];for(;_0x2eaa06;){if(_0x2eaa06['data']&&'listType'==_0x2eaa06['data']['key']&&_0x2eaa06['data']['newValue']&&_0x2eaa06['data']['oldValue'])return _0x1e287f;_0x2eaa06=_0x2eaa06['next'];}return{'type':'format','content':o(_0x13e4e0,'*Set\x20format:*\x20%0',o(_0x13e4e0,'ELEMENT_'+_0x374d37['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2d7296=this['editor'],_0x1b0f0a=_0x2d7296['locale'];_0x2d7296['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x584469=>{if('formatBlock'!=_0x584469['type'])return;const {data:_0x33942b}=_0x584469;if(!_0x33942b)return;let _0xb494a4,_0x4f2d85;switch(_0x33942b['commandName']){case'listStyle':_0xb494a4='*Change\x20to:*\x20%0',_0x4f2d85={'type':'format','content':o(_0x1b0f0a,_0xb494a4,o(_0x1b0f0a,this['_getTranslationKeyForListStyle'](_0x33942b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb494a4=_0x33942b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4f2d85={'type':'format','content':o(_0x1b0f0a,_0xb494a4)};break;case'listStart':_0xb494a4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4f2d85={'type':'format','content':o(_0x1b0f0a,_0xb494a4,_0x33942b['commandParams'][0x0]['startIndex'])};}return _0x4f2d85;});}['_getTranslationKeyForListStyle'](_0x1b4535){return'ELEMENT_'+function(_0x4fdd54){if(ye['includes'](_0x4fdd54))return'bulleted';if(Se['includes'](_0x4fdd54))return'numbered';return null;}(_0x1b4535)['toUpperCase']()+'_LIST_'+_0x1b4535['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x959a6f{['afterInit'](){const _0x2e668a=this['editor'];_0x2e668a['commands']['get']('emoji')&&_0x2e668a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x959a6f{static get['requires'](){return[_0x1b4b72];}['init'](){const _0x18b663=this['editor'],_0x5e9561=_0x18b663['plugins']['get']('TrackChangesEditing'),_0x29e96a=_0x18b663['commands']['get']('enter');_0x5e9561['enableCommand']('enter',()=>{_0x18b663['model']['change'](_0x4eeb3e=>{const _0x4d1261=_0x18b663['model']['document']['selection'],_0x3366e3=_0x4d1261['getFirstPosition'](),_0x43d2f6=_0x481a5c['fromRange'](_0x4d1261['getFirstRange']());if(_0x29e96a['enterBlock'](_0x4eeb3e)){const _0x16f720=_0x18b663['model']['createPositionAt'](_0x3366e3['parent']['nextSibling'],0x0),_0x443741=_0x4eeb3e['createRange'](_0x3366e3,_0x16f720);_0x5e9561['markInsertion'](_0x443741);}else _0x4eeb3e['setSelection'](_0x4eeb3e['createRange'](_0x43d2f6['end']));_0x43d2f6['detach'](),_0x29e96a['fire']('afterExecute',{'writer':_0x4eeb3e});});});}}class Y extends _0x959a6f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xc9740f=this['editor']['plugins']['get']('TrackChangesEditing');_0xc9740f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xc9740f['enableCommand']('findNext'),_0xc9740f['enableCommand']('findPrevious'),_0xc9740f['enableCommand']('replace'),_0xc9740f['enableCommand']('replaceAll');}['handleFindCommand'](_0x33cce8,_0x1a0759,_0x3ce66b={}){const _0x5ee6c9=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x33cce8(_0xd33408=>{let _0x568249=('string'==typeof _0x1a0759?_0x5ee6c9['findByTextCallback'](_0x1a0759,_0x3ce66b):_0x1a0759)(_0xd33408);Array['isArray'](_0x568249)&&(_0x568249={'results':_0x568249,'searchText':'string'==typeof _0x1a0759?_0x1a0759:''});const _0x18a2ca=_0x568249['results']['filter'](_0x56d209=>!0x1===this['_isInDeletionRange'](_0x56d209,_0xd33408['item']));return{..._0x568249,'results':_0x18a2ca};},_0x3ce66b);}['_isInDeletionRange'](_0x4f6097,_0xc18178){const _0x209cf6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc18178,_0x4f6097['start']),this['editor']['model']['createPositionAt'](_0xc18178,_0x4f6097['end']));for(const _0x41782f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x209cf6['getIntersection'](_0x41782f['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x959a6f{['afterInit'](){const _0x2bb05e=this['editor']['locale'],_0x30b2ab=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x40d06b,commandName:_0x24756f}of eo)this['editor']['plugins']['has'](_0x40d06b)&&_0x30b2ab['enableDefaultAttributesIntegration'](_0x24756f);_0x30b2ab['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2bb05e,'FORMAT_FONT_SIZE')),_0x30b2ab['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2bb05e,'FORMAT_FONT_FAMILY')),_0x30b2ab['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2bb05e,'FORMAT_FONT_COLOR')),_0x30b2ab['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2bb05e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ad577=this['editor'],_0x2588ed=_0x4ad577['locale'];_0x4ad577['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57d7e1=>{const _0x305988=_0x2588ed['t'];if('formatInline'!=_0x57d7e1['type'])return;const {data:_0x33e1b0}=_0x57d7e1;if(null!=_0x33e1b0){if('fontSize'==_0x33e1b0['commandName']){const _0x6ea8d2=_0x33e1b0['commandParams'][0x0]['value'];if(_0x6ea8d2){const _0x32889b=_0x305988(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4e7e6f=>_0x4e7e6f['model']==_0x6ea8d2)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2588ed,'*Set\x20font\x20size:*\x20%0',_0x32889b)};}return{'type':'format','content':o(_0x2588ed,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x33e1b0['commandName']){const _0x30051a=_0x33e1b0['commandParams'][0x0]['value'];return _0x30051a?{'type':'format','content':o(_0x2588ed,'*Set\x20font\x20family:*\x20%0',_0x30051a)}:{'type':'format','content':o(_0x2588ed,'*Reset\x20font\x20family*')};}if('fontColor'==_0x33e1b0['commandName']){const _0x528fb8=_0x33e1b0['commandParams'][0x0]['value'];if(_0x528fb8){const _0x108418=_0x137d59(this['editor']['config']['get']('fontColor.colors'))['find'](_0x58aaa5=>_0x58aaa5['model']==_0x528fb8);let _0x3b7641=_0x528fb8,_0x37c1db='';return _0x108418&&(_0x3b7641=_0x108418['label'],_0x37c1db=_0x305988(_0x3b7641)['toLowerCase']()),{'type':'format','content':o(_0x2588ed,'*Set\x20font\x20color:*\x20%0',_0x37c1db)['trim'](),'color':{'value':_0x528fb8,'title':_0x37c1db||_0x3b7641}};}return{'type':'format','content':o(_0x2588ed,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x33e1b0['commandName']){const _0x1889c2=_0x33e1b0['commandParams'][0x0]['value'];if(_0x1889c2){const _0x4de5fb=_0x137d59(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x132e22=>_0x132e22['model']==_0x1889c2);let _0xb17a5b=_0x1889c2,_0x5c872f='';return _0x4de5fb&&(_0xb17a5b=_0x4de5fb['label'],_0x5c872f=_0x305988(_0xb17a5b)['toLowerCase']()),{'type':'format','content':o(_0x2588ed,'*Set\x20font\x20background\x20color:*\x20%0',_0x5c872f)['trim'](),'color':{'value':_0x1889c2,'title':_0x5c872f||_0xb17a5b}};}return{'type':'format','content':o(_0x2588ed,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x959a6f{['afterInit'](){const {plugins:_0x6f5701}=this['editor'];_0x6f5701['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x6f5701['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2a6c49,plugins:_0x2a7c76,commands:_0x25975e}=this['editor'],_0x542464=_0x2a7c76['get']('TrackChangesEditing');_0x25975e['get']('footnotesStyle')&&_0x542464['enableDefaultAttributesIntegration']('footnotesStyle'),_0x25975e['get']('footnotesStart')&&_0x542464['enableDefaultAttributesIntegration']('footnotesStart'),_0x542464['registerBlockAttribute']('footnotesListStyle'),_0x542464['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x2a6c49,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x542464['registerBlockAttribute']('footnotesListStart'),_0x542464['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x2a6c49,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x212813=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x39fa2f,commands:_0x2b9c9b}=this['editor'];_0x2b9c9b['get']('insertFootnote')&&_0x212813['enableCommand']('insertFootnote'),_0x212813['descriptionFactory']['registerElementLabel']('footnoteRef',_0x369e42=>o(_0x39fa2f,'ELEMENT_FOOTNOTE_REF',_0x369e42)),_0x212813['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1f8027=>o(_0x39fa2f,'ELEMENT_FOOTNOTE_DEFINITION',_0x1f8027)),_0x212813['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2214d3=>o(_0x39fa2f,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2214d3));}}class nt extends _0x959a6f{['afterInit'](){const _0x4ee5d9=this['editor'],_0x5500be=_0x4ee5d9['plugins']['get']('TrackChangesEditing'),_0x30b4d7=_0x4ee5d9['commands']['get']('copyFormat'),_0x49a726=_0x4ee5d9['commands']['get']('pasteFormat');_0x30b4d7&&_0x49a726&&(_0x5500be['enableDefaultAttributesIntegration']('pasteFormat'),_0x5500be['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x25ab3d=this['editor'],_0x315e95=_0x25ab3d['locale'];_0x25ab3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x567d52=>{if('formatBlock'!=_0x567d52['type']&&'formatInline'!=_0x567d52['type'])return;const {data:_0x622cb5}=_0x567d52;if(_0x622cb5&&'pasteFormat'===_0x622cb5['commandName']){const _0x3572a9=[],_0x17308c=_0x622cb5['commandParams'][0x0];for(const [_0x32417a,_0x58f47c]of Object['entries'](_0x17308c))_0x3572a9['push'](ro(_0x25ab3d,_0x32417a,_0x58f47c));return _0x3572a9['length']?{'type':'format','content':o(_0x315e95,'*Set\x20format\x20to:*\x20%0',_0x3572a9['join'](',\x20'))}:{'type':'format','content':o(_0x315e95,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x58176c,_0x524a85,_0x7d7145){const _0x34008e=_0x58176c['locale']['t'],_0x167171=_0x524a85['split'](/(?=[A-Z])/)['join']('\x20'),_0x532ff3=_0x34008e(_0x167171['charAt'](0x0)['toUpperCase']()+_0x167171['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x7d7145)return _0x532ff3;if('fontColor'===_0x524a85||'fontBackgroundColor'===_0x524a85){const _0x169602=_0x137d59(_0x58176c['config']['get']('fontColor.colors'))['find'](_0xacd7ac=>_0xacd7ac['model']==_0x7d7145);return _0x532ff3+'\x20('+(_0x169602?_0x34008e(_0x169602['label'])['toLowerCase']():_0x7d7145)+')';}if('fontSize'===_0x524a85&&isNaN(parseFloat(_0x7d7145))){const _0x2defe5=_0x58176c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x58176c['config']['get']('fontSize.options'))['find'](_0x4adc38=>_0x4adc38['model']==_0x7d7145);return _0x532ff3+'\x20('+(_0x2defe5?_0x34008e(_0x2defe5['title'])['toLowerCase']():_0x7d7145)+')';}return _0x532ff3+'\x20('+_0x7d7145+')';}class it extends _0x959a6f{['_headingOptions'];['afterInit'](){const _0x1c03a2=this['editor'];if(!_0x1c03a2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1c03a2['config']['get']('heading.options');const _0x8b20ea=_0x1c03a2['locale'],_0x2a2890=_0x1c03a2['plugins']['get']('TrackChangesEditing');_0x2a2890['enableDefaultAttributesIntegration']('heading');for(const _0x705a00 of this['_headingOptions'])'paragraph'!=_0x705a00['model']&&_0x2a2890['descriptionFactory']['registerElementLabel'](_0x705a00['model'],_0x3620a4=>{const _0x561d38=this['_getHeadingLevel'](_0x705a00['model']);return null!==_0x561d38?_0x30479c(_0x3620a4,_0x561d38):_0x3aa348(_0x3620a4,_0x705a00['title']);});function _0x30479c(_0x1862d8,_0xce091a){return o(_0x8b20ea,'ELEMENT_HEADING',[_0x1862d8,_0xce091a]);}function _0x3aa348(_0x44fdcf,_0x5a7b16){return o(_0x8b20ea,'ELEMENT_HEADING_CUSTOM',[_0x44fdcf,_0x5a7b16]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcb73ac=this['editor'],_0x12a4b1=_0xcb73ac['locale'];function _0xe3973b(_0xc909de,_0x4ca4a1){return o(_0x12a4b1,'ELEMENT_HEADING_CUSTOM',[_0xc909de,_0x4ca4a1]);}_0xcb73ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x368635=>{if('formatBlock'!=_0x368635['type'])return;const {data:_0x39e65b}=_0x368635;if(_0x39e65b&&'heading'==_0x39e65b['commandName']){const _0x2fc6a3=_0x39e65b['commandParams'][0x0]['value'],_0x591c70=this['_getHeadingLevel'](_0x2fc6a3);if(null!==_0x591c70)return{'type':'format','content':o(_0x12a4b1,'*Change\x20to:*\x20%0',(_0xf3007e=0x1,_0x299826=_0x591c70,o(_0x12a4b1,'ELEMENT_HEADING',[_0xf3007e,_0x299826])))};const _0x510bb0=this['_headingOptions']['find'](_0x31f365=>_0x31f365['model']===_0x2fc6a3)['title'];return{'type':'format','content':o(_0x12a4b1,'*Change\x20to:*\x20%0',_0xe3973b(0x1,_0x510bb0))};}var _0xf3007e,_0x299826;});}['_getHeadingLevel'](_0x185ac5){const _0x4a2149=_0x185ac5['match'](/^heading(\d+)/);if(_0x4a2149)return _0x4a2149[0x1];const _0x182f54=this['_headingOptions']?.['find'](_0x43c585=>_0x43c585['model']==_0x185ac5);if(_0x182f54&&_0x182f54['view']){const _0xaf2e82=_0x182f54['view'],_0x4a30b9=(_0xaf2e82['name']??_0xaf2e82)['match'](/^h(\d+)/);if(_0x4a30b9)return _0x4a30b9[0x1];}return null;}}class et extends _0x959a6f{['afterInit'](){const _0x1b3b2e=this['editor'];if(!_0x1b3b2e['plugins']['has']('HighlightEditing'))return;const _0x4ceb2f=_0x1b3b2e['plugins']['get']('TrackChangesEditing'),_0x570f5b=_0x1b3b2e['locale'];_0x4ceb2f['enableDefaultAttributesIntegration']('highlight'),_0x4ceb2f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x570f5b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ddd31=this['editor'],_0x4ad41d=_0x4ddd31['locale'];_0x4ddd31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57e0af=>{if('formatInline'!=_0x57e0af['type'])return;const {data:_0x178401}=_0x57e0af;if(_0x178401&&'highlight'==_0x178401['commandName']){const _0x499791=_0x4ad41d['t'],_0x3026e2=_0x178401['commandParams'][0x0]['value'];if(_0x3026e2){const _0x717f8=_0x4ddd31['config']['get']('highlight.options')['find'](_0x4bfb1c=>_0x4bfb1c['model']==_0x3026e2),_0x18667a=_0x499791(_0x717f8['title'])['toLowerCase']();return{'type':'format','content':o(_0x4ad41d,'*Set\x20highlight:*\x20%0',_0x18667a),'color':{'value':_0x717f8['color'],'title':_0x717f8['title']}};}return{'type':'format','content':o(_0x4ad41d,'*Remove\x20highlight*',o(_0x4ad41d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x959a6f{['afterInit'](){const _0x57997c=this['editor'];if(!_0x57997c['plugins']['has']('HorizontalLineEditing'))return;_0x57997c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa118c5=_0x57997c['plugins']['get']('TrackChangesEditing'),_0x34cb84=_0x57997c['locale'];_0xa118c5['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1db868=>o(_0x34cb84,'ELEMENT_HORIZONTAL_LINE',_0x1db868));}}class ot extends _0x959a6f{['afterInit'](){const _0x4ea8af=this['editor'];if(!_0x4ea8af['plugins']['has']('HtmlEmbed'))return;const _0x1ad877=_0x4ea8af['plugins']['get']('TrackChangesEditing'),_0x4318c2=_0x4ea8af['locale'];_0x1ad877['descriptionFactory']['registerElementLabel']('rawHtml',_0x901f18=>o(_0x4318c2,'ELEMENT_HTML_EMBED',_0x901f18)),_0x1ad877['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1ad877['descriptionFactory']['registerDescriptionCallback'](_0x2e87c3=>{if('attribute'!=_0x2e87c3['type'])return;const {data:_0x1128ff}=_0x2e87c3;if(_0x1128ff&&'value'==_0x1128ff['key']&&_0x2e87c3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2850c8=o(_0x4318c2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4318c2,'*Change\x20%0\x20content*',_0x2850c8)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46693a=this['editor'],_0x2565c5=_0x46693a['locale'];_0x46693a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18f6ff=>{if('formatBlock'!=_0x18f6ff['type'])return;const {data:_0x108355}=_0x18f6ff;if(_0x108355&&'htmlEmbed'==_0x108355['commandName']){const _0x4ac3e3=o(_0x2565c5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2565c5,'*Change\x20%0\x20content*',_0x4ac3e3)};}});}}class rt extends _0x959a6f{['afterInit'](){const _0x47e5af=this['editor'];if(!_0x47e5af['plugins']['has']('ImageEditing'))return;const _0x35a8f3=_0x47e5af['plugins']['get']('TrackChangesEditing'),_0x3862c5=_0x47e5af['plugins']['get']('ImageUtils'),_0x1c406a=_0x47e5af['locale'];_0x35a8f3['enableCommand']('insertImage'),_0x35a8f3['descriptionFactory']['registerElementLabel']('imageBlock',_0x9021ad=>o(_0x1c406a,'ELEMENT_IMAGE',_0x9021ad)),_0x35a8f3['descriptionFactory']['registerElementLabel']('imageInline',_0x2f851a=>o(_0x1c406a,'ELEMENT_INLINE_IMAGE',_0x2f851a)),_0x35a8f3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1c406a,'ELEMENT_CAPTION')),_0x47e5af['plugins']['has']('ImageUploadEditing')&&_0x35a8f3['enableCommand']('uploadImage'),_0x47e5af['plugins']['has']('ImageBlockEditing')&&_0x47e5af['plugins']['has']('ImageInlineEditing')&&(_0x35a8f3['enableCommand']('imageTypeInline',(_0x16bb7d,_0x39b45a)=>{const _0x17a087=_0x3862c5['getClosestSelectedImageElement'](_0x47e5af['model']['document']['selection']);_0x47e5af['model']['change'](()=>{_0x35a8f3['markBlockFormat'](_0x17a087,{'commandName':'imageTypeInline','commandParams':[_0x39b45a]},[],'convertBlockImageToInline');});}),_0x35a8f3['enableCommand']('imageTypeBlock',(_0x3746b3,_0x24ffad)=>{_0x47e5af['model']['change'](_0x28a0d4=>{let _0x3a0f02=_0x3862c5['getClosestSelectedImageElement'](_0x47e5af['model']['document']['selection']),_0x54f2a9=_0x28a0d4['createRangeOn'](_0x3a0f02);const _0x2fb849=_0x590fe8['fromPosition'](_0x54f2a9['start'],'toPrevious'),_0x493474=_0x590fe8['fromPosition'](_0x54f2a9['end'],'toNext');_0x35a8f3['forceDefaultExecution'](()=>_0x3746b3(_0x24ffad)),_0x3a0f02=_0x3862c5['getClosestSelectedImageElement'](_0x47e5af['model']['document']['selection']),_0x54f2a9=_0x28a0d4['createRangeOn'](_0x3a0f02);const _0xd2a808=_0x28a0d4['createRange'](_0x2fb849,_0x493474);_0x2fb849['detach'](),_0x493474['detach'](),_0x35a8f3['markBlockFormat'](_0x3a0f02,{'commandName':'imageTypeInline','commandParams':[_0x24ffad]},[],'convertInlineImageToBlock'),_0xd2a808['start']['isBefore'](_0x54f2a9['start'])&&_0x35a8f3['markInsertion'](_0x28a0d4['createRange'](_0xd2a808['start'],_0x54f2a9['start']),'convertInlineImageToBlock'),_0x54f2a9['end']['isBefore'](_0xd2a808['end'])&&_0x35a8f3['markInsertion'](_0x28a0d4['createRange'](_0x54f2a9['end'],_0xd2a808['end']),'convertInlineImageToBlock');});}),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x35a8f3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x203f48])=>{const _0x54c218=_0x35a8f3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3f6501=_0x203f48['start'],_0x19d704=_0x203f48['end'];const _0x2b0c1b=_0x47e5af['model']['schema']['getNearestSelectionRange'](_0x3f6501,'backward'),_0x3c2e89=_0x47e5af['model']['schema']['getNearestSelectionRange'](_0x19d704,'forward');_0x2b0c1b['isCollapsed']&&(_0x3f6501=_0x2b0c1b['start']),_0x3c2e89['isCollapsed']&&(_0x19d704=_0x3c2e89['end']),_0x54c218([_0x47e5af['model']['createRange'](_0x3f6501,_0x19d704)]);}),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x48152f),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x48152f)),_0x47e5af['plugins']['has']('ImageCaptionEditing')&&(_0x35a8f3['enableCommand']('toggleImageCaption',(_0xb4092e,_0x2795f8)=>{const _0x223844=_0x47e5af['plugins']['get']('ImageCaptionUtils');let _0x5bdd1a=_0x3862c5['getClosestSelectedImageElement'](_0x47e5af['model']['document']['selection']),_0x3c1f8e=_0x223844['getCaptionFromImageModelElement'](_0x5bdd1a);_0x47e5af['model']['change'](()=>{if(_0x3c1f8e)return void _0x35a8f3['markDeletion'](_0x47e5af['model']['createRangeOn'](_0x3c1f8e));const _0x1d6305=_0x3862c5['isBlockImage'](_0x5bdd1a);_0xb4092e(_0x2795f8),_0x5bdd1a=_0x3862c5['getClosestSelectedImageElement'](_0x47e5af['model']['document']['selection']),_0x3c1f8e=_0x223844['getCaptionFromImageModelElement'](_0x5bdd1a),_0x35a8f3['markInsertion'](_0x47e5af['model']['createRangeOn'](_0x3c1f8e),_0x1d6305?null:'imageCaption');});}),_0x35a8f3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x48152f));const _0x7d77cc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3af8fb(_0x540fa2,_0x121ce9){const _0x408b6c=_0x7d77cc['findIndex'](({type:_0x21c6e7,subType:_0x338b6c})=>_0x540fa2['type']==_0x21c6e7&&_0x540fa2['subType']==_0x338b6c),_0x3a2057=_0x7d77cc['findIndex'](({type:_0x5f21ac,subType:_0x180d31})=>_0x121ce9['type']==_0x5f21ac&&_0x121ce9['subType']==_0x180d31);if(_0x408b6c<0x0||_0x3a2057<0x0)return!0x1;const _0x2e9e7d=_0x540fa2['getFirstRange'](),_0x2bf79f=_0x121ce9['getFirstRange']();if((0x0==_0x408b6c||0x1==_0x408b6c)&&0x2==_0x3a2057&&_0x2e9e7d['isIntersecting'](_0x2bf79f))return!0x0;if(0x2==_0x408b6c&&0x3==_0x3a2057){const _0x3d0d58=_0x35a8f3['_findSuggestions'](_0x2e9e7d,'insertion')['filter'](({suggestion:_0x37cf66,meta:_0x26b82c})=>_0x26b82c['isOwn']&&'convertInlineImageToBlock'==_0x37cf66['subType']);if(_0x3d0d58['length']>0x1&&_0x2bf79f['end']['isEqual'](_0x2e9e7d['start']))return!0x0;if(0x1==_0x3d0d58['length']&&(_0x2e9e7d['start']['isEqual'](_0x2bf79f['end'])||_0x2e9e7d['end']['isEqual'](_0x2bf79f['start'])))return!0x0;}if(0x3==_0x408b6c&&0x3==_0x3a2057&&_0x2e9e7d['start']['isBefore'](_0x2bf79f['start'])){const _0x4ac87a=_0x2e9e7d['end']['nodeAfter'],_0x586604=_0x2bf79f['start']['nodeBefore'];return _0x3862c5['isBlockImage'](_0x4ac87a)&&_0x4ac87a===_0x586604;}return!0x1;}function _0x48152f(_0x14f488,_0x691a3a){return _0x3af8fb(_0x14f488,_0x691a3a)?[_0x14f488,_0x691a3a]:_0x3af8fb(_0x691a3a,_0x14f488)?[_0x691a3a,_0x14f488]:null;}_0x47e5af['plugins']['has']('ImageResize')&&(_0x35a8f3['enableDefaultAttributesIntegration']('resizeImage'),_0x35a8f3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1c406a,'FORMAT_IMAGE_SIZE'))),_0x47e5af['plugins']['has']('ImageTextAlternativeEditing')&&_0x35a8f3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x47e5af['plugins']['has']('PictureEditing')&&_0x35a8f3['descriptionFactory']['registerDescriptionCallback'](_0x276979=>{if('attribute'!=_0x276979['type'])return;const {data:_0x423a48}=_0x276979;return _0x423a48&&'sources'==_0x423a48['key']?{'type':'format','content':''}:void 0x0;}),_0x47e5af['plugins']['has']('ImageSizeAttributes')&&_0x35a8f3['descriptionFactory']['registerDescriptionCallback'](_0xa94c1=>{if('attribute'!=_0xa94c1['type'])return;const {data:_0x4fe732}=_0xa94c1;return!_0x4fe732||'width'!=_0x4fe732['key']&&'height'!=_0x4fe732['key']?void 0x0:{'type':'format','content':''};}),_0x35a8f3['descriptionFactory']['registerDescriptionCallback'](_0x46cfe5=>{if(!!_0x7d77cc['find'](({type:_0x1cd48e,subType:_0x17bb42})=>_0x46cfe5['type']==_0x1cd48e&&_0x46cfe5['subType']==_0x17bb42))return _0x46cfe5['previous']?{}:void 0x0;}),_0x35a8f3['descriptionFactory']['registerDescriptionCallback'](_0x1a70d6=>{if('insertion'==_0x1a70d6['type']||'deletion'==_0x1a70d6['type']){const _0x25c527=_0x1a70d6['getContainedElement']();if(_0x25c527&&_0x25c527['is']('element','caption'))return{'type':'insertion'==_0x1a70d6['type']?'addObject':'removeObject','element':_0x25c527,'quantity':0x1};}}),_0x35a8f3['descriptionFactory']['registerDescriptionCallback'](_0x1c8d2e=>'formatBlock'==_0x1c8d2e['type']&&'convertInlineImageToBlock'==_0x1c8d2e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1c8d2e['type']&&'convertBlockImageToInline'==_0x1c8d2e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x35a8f3['descriptionFactory']['registerDescriptionCallback'](_0x34eb77=>{if('attribute'!=_0x34eb77['type'])return;const {data:_0x117dbe}=_0x34eb77;if(!_0x117dbe||'alt'!=_0x117dbe['key'])return;const _0x26b700=_0x117dbe['newValue'];return _0x26b700?{'type':'format','content':o(_0x1c406a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x26b700+'\x22')}:{'type':'format','content':o(_0x1c406a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x585362=this['editor'],_0x518078=_0x585362['locale'];_0x585362['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x479f25=>{if('formatBlock'!=_0x479f25['type']&&'formatInline'!=_0x479f25['type'])return;const {data:_0x3844d0}=_0x479f25;if(_0x3844d0){if('imageTextAlternative'==_0x3844d0['commandName']){const _0x2e4248=_0x3844d0['commandParams'][0x0]['newValue'];return _0x2e4248?{'type':'format','content':o(_0x518078,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e4248+'\x22')}:{'type':'format','content':o(_0x518078,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3844d0['commandName']){const _0x30fff1=_0x3844d0['commandParams'][0x0]['width'];return _0x30fff1?{'type':'format','content':o(_0x518078,'*Set\x20image\x20width:*\x20%0',_0x30fff1)}:{'type':'format','content':o(_0x518078,'*Reset\x20image\x20width*')};}}});}}class at extends _0x959a6f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x248a1b=this['editor']['locale'],_0x368bdd=this['editor']['plugins']['get']('TrackChangesEditing');_0x368bdd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x368bdd['descriptionFactory']['registerDescriptionCallback'](_0x1b98dc=>{if('attribute'!=_0x1b98dc['type'])return;const {data:_0x459eb0}=_0x1b98dc;return _0x459eb0&&'src'==_0x459eb0['key']?_0x459eb0['newValue']&&_0x459eb0['oldValue']?{'type':'format','content':o(_0x248a1b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xdc511e=this['editor']['plugins']['get']('TrackChangesEditing');_0xdc511e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xdc511e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xdc511e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xdc511e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22fbb2=this['editor'],_0xe6f885=_0x22fbb2['locale'];_0x22fbb2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38c408=>{if('formatBlock'!=_0x38c408['type']&&'formatInline'!=_0x38c408['type'])return;const {data:_0x4083ca}=_0x38c408;if(!_0x4083ca||'replaceImageSource'!=_0x4083ca['commandName'])return;return{'type':'format','content':o(_0xe6f885,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x959a6f{['afterInit'](){const _0x28477c=this['editor'];if(!_0x28477c['plugins']['has']('ImageStyleEditing'))return;const _0x2f8509=_0x28477c['plugins']['get']('TrackChangesEditing'),_0x51da61=_0x28477c['plugins']['get']('ImageUtils'),_0x34f0b6={};_0x2f8509['enableCommand']('imageStyle',(_0x44b0da,_0x2bd66d)=>{const _0x27cc5b=_0x28477c['plugins']['get']('Users')['me'],_0x3c6b05=_0x28477c['commands']['get']('imageStyle');let _0x83a62e=_0x51da61['getClosestSelectedImageElement'](_0x28477c['model']['document']['selection']),_0x509c21=_0x28477c['model']['createRangeOn'](_0x83a62e),_0x261acb=_0x3c6b05['value'];if(_0x261acb==_0x2bd66d['value'])return;const _0x5748ac={'commandName':'imageStyle','commandParams':[_0x2bd66d],'formatGroupId':_0x257abf()};_0x28477c['model']['change'](()=>{if(_0x2f8509['getSuggestions']()['filter'](_0x1aa160=>_0x1aa160['isInContent']&&_0x27cc5b==_0x1aa160['author']&&('formatBlock'==_0x1aa160['type']||'formatInline'==_0x1aa160['type'])&&('imageStylePreApply'==_0x1aa160['subType']||'imageStylePostApply'==_0x1aa160['subType'])&&_0x1aa160['getFirstRange']()['isEqual'](_0x509c21))['forEach'](_0x5678cc=>_0x2f8509['discardSuggestion'](_0x5678cc['head'])),_0x83a62e=_0x51da61['getClosestSelectedImageElement'](_0x28477c['model']['document']['selection']),_0x509c21=_0x28477c['model']['createRangeOn'](_0x83a62e),_0x3c6b05['refresh'](),_0x28477c['commands']['get']('imageTypeInline')['refresh'](),_0x28477c['commands']['get']('imageTypeBlock')['refresh'](),_0x261acb=_0x3c6b05['value'],_0x261acb!=_0x2bd66d['value'])return _0x51da61['isInlineImage'](_0x83a62e)&&_0x3c6b05['shouldConvertImageType'](_0x2bd66d['value'],_0x83a62e)?(_0x44b0da({..._0x2bd66d,'setImageSizes':!0x1}),_0x83a62e=_0x51da61['getClosestSelectedImageElement'](_0x28477c['model']['document']['selection']),void _0x2f8509['markBlockFormat'](_0x83a62e,{..._0x5748ac,'commandReversedParams':[{'value':_0x261acb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x51da61['isBlockImage'](_0x83a62e)?_0x2f8509['markBlockFormat'](_0x83a62e,_0x5748ac,[],'imageStylePostApply'):_0x2f8509['markInlineFormat'](_0x509c21,_0x5748ac,'imageStylePostApply'));});});for(const _0x4a3c6c of _0x28477c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x34f0b6[_0x4a3c6c['name']]=_0x4a3c6c['title']['toLowerCase']();_0x2f8509['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2f8509['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2f8509['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2f8509['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x375bdd])=>{_0x51da61['setImageNaturalSizeAttributes'](_0x375bdd['getContainedElement']());}),_0x2f8509['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x476a55,_0x2e223a)=>{_0x2f8509['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x476a55,{'commandName':_0x2e223a['commandName'],'commandParams':_0x2e223a['commandReversedParams']});}),_0x2f8509['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5d0d34,_0x159c9a){if(_0x58daca(_0x5d0d34,_0x159c9a))return[_0x5d0d34,_0x159c9a];if(_0x58daca(_0x159c9a,_0x5d0d34))return[_0x159c9a,_0x5d0d34];return null;});const _0x22afe2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58daca(_0x2fea90,_0x205d70){const _0x40d6dc=_0x22afe2['findIndex'](({type:_0x1cf140,subType:_0x43d9e7})=>_0x2fea90['type']==_0x1cf140&&_0x2fea90['subType']==_0x43d9e7),_0x3acf85=_0x22afe2['findIndex'](({type:_0x19ef03,subType:_0xb1e25a})=>_0x205d70['type']==_0x19ef03&&_0x205d70['subType']==_0xb1e25a);if(_0x40d6dc<0x0||_0x3acf85<0x0)return!0x1;const _0x5f541e=_0x2fea90['getFirstRange'](),_0x5c7458=_0x205d70['getFirstRange']();if((0x0==_0x40d6dc||0x1==_0x40d6dc)&&0x2==_0x3acf85&&_0x5f541e['isIntersecting'](_0x5c7458))return!0x0;if(0x2==_0x40d6dc&&0x3==_0x3acf85){const _0x46a2a2=_0x2f8509['_findSuggestions'](_0x5f541e,'insertion')['filter'](({suggestion:_0x1cff34,meta:_0x23b293})=>_0x23b293['isOwn']&&'convertInlineImageToBlock'==_0x1cff34['subType']);if(_0x46a2a2['length']>0x1&&_0x5c7458['end']['isEqual'](_0x5f541e['start']))return!0x0;if(0x1==_0x46a2a2['length']&&(_0x5f541e['start']['isEqual'](_0x5c7458['end'])||_0x5f541e['end']['isEqual'](_0x5c7458['start'])))return!0x0;}if(0x3==_0x40d6dc&&0x3==_0x3acf85&&_0x5f541e['start']['isBefore'](_0x5c7458['start'])){const _0x804565=_0x5f541e['end']['nodeAfter'],_0x5c0505=_0x5c7458['start']['nodeBefore'];return _0x51da61['isBlockImage'](_0x804565)&&_0x804565===_0x5c0505;}return!0x1;}_0x28477c['model']['document']['registerPostFixer'](()=>{let _0x597993=!0x1;const _0x1c68af=Array['from'](_0x28477c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2aba3b,data:_0x1d9c8a}of _0x1c68af){const {group:_0x18e132,type:_0x3947f6,subType:_0x432d5c,id:_0x3484e2}=_0x2f8509['_splitMarkerName'](_0x2aba3b);if('suggestion'==_0x18e132&&_0x2f8509['hasSuggestion'](_0x3484e2)){if('formatBlock'==_0x3947f6&&('imageStylePreApply'==_0x432d5c||'imageStylePostApply'==_0x432d5c)){const _0x270d29=_0x2f8509['getSuggestion'](_0x3484e2);if(_0x1d9c8a['newRange']){const _0x4a641c=_0x270d29['getFirstRange']()['getContainedElement']();if(_0x51da61['isBlockImage'](_0x4a641c))continue;_0x2f8509['discardSuggestion'](_0x270d29),_0x597993=!0x0;}}if('insertion'==_0x3947f6&&'imageCaption'==_0x432d5c&&!_0x1d9c8a['newRange']){const _0x1c24d7=_0x2f8509['getSuggestion'](_0x3484e2);_0x1c24d7['next']&&_0x1c24d7['next']['isInContent']&&(_0x2f8509['discardSuggestion'](_0x1c24d7['next']),_0x597993=!0x0);}}}return _0x597993;}),this['_registerLegacyDescription'](_0x34f0b6);}['_registerLegacyDescription'](_0x1bc92f){const _0x5337c3=this['editor'],_0x3bf46a=_0x5337c3['locale'];_0x5337c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x95af11=>{if('formatBlock'!=_0x95af11['type']&&'formatInline'!=_0x95af11['type'])return;const {data:_0x342234}=_0x95af11;if(!_0x342234||'imageStyle'!=_0x342234['commandName'])return;const _0x23dce2=_0x342234['commandParams'][0x0]['value'];return _0x2afe29('side'===_0x23dce2?o(_0x3bf46a,'FORMAT_SIDE_IMAGE'):_0x1bc92f[_0x23dce2]||_0x23dce2);function _0x2afe29(_0x2dbe69){return{'type':'format','content':o(_0x3bf46a,'*Format:*\x20%0',_0x2dbe69)};}});}}class ut extends _0x959a6f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x555b2a){super(_0x555b2a),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x465858=this['editor'],_0x21e783=_0x465858['commands']['get']('importWord'),_0x545bd4=_0x465858['commands']['get']('trackChanges');_0x21e783&&(_0x21e783['on']('execute',(_0x21899c,[,_0x68df9f])=>{this['_trackChangesValueDuringImport']=_0x545bd4['value'],_0x68df9f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x21e783,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x21e783,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x545bd4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x465858['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x28b4fb,_0xd6dbba){const {suggestions:_0x2ab4b6}=_0xd6dbba,_0x23e231=this['editor']['commands']['get']('trackChanges'),_0x20368c=_0x23e231['value'];this['_trackChangesValueDuringImport']!==_0x20368c&&(_0x23e231['execute'](),this['_trackChangesExecuted']=!0x0),_0x2ab4b6&&_0x2ab4b6['forEach'](({id:_0x4ea7a2,type:_0x188d2b,author:_0x5eb2f5,created_at:_0x3947a5})=>{const _0x1ab437={'id':_0x4ea7a2,'type':_0x188d2b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5eb2f5,'createdAt':_0x3947a5?new Date(_0x3947a5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1ab437);});}}class ft extends _0x959a6f{['afterInit'](){const _0x4d89bc=this['editor'],_0x1880f8=_0x4d89bc['plugins']['get']('TrackChangesEditing');if(_0x4d89bc['plugins']['has']('IndentEditing')&&(_0x1880f8['enableCommand']('indent'),_0x1880f8['enableCommand']('outdent')),_0x4d89bc['plugins']['has']('IndentBlock')){for(const _0x5ab513 of['indentBlock','outdentBlock'])_0x1880f8['enableDefaultAttributesIntegration'](_0x5ab513);}const _0x5a31e4=_0x4d89bc['locale'];_0x1880f8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5a31e4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a0738=this['editor'],_0x2881a4=_0x5a0738['locale'],_0x4b5dda=_0x5a0738['plugins']['get']('TrackChangesEditing');_0x4b5dda['descriptionFactory']['registerDescriptionCallback'](_0x294d71=>{if('formatBlock'!=_0x294d71['type'])return;const {data:_0xca9294}=_0x294d71;if(!_0xca9294)return;if('indentBlock'!=_0xca9294['commandName']&&'outdentBlock'!=_0xca9294['commandName'])return;const _0x5f3732=_0x294d71['getItems']()[0x0],_0x279e95=_0x4b5dda['descriptionFactory']['getItemLabel'](_0x5f3732);return'indentBlock'==_0xca9294['commandName']?{'type':'format','content':o(_0x2881a4,'*Indent:*\x20%0',_0x279e95)}:'outdentBlock'==_0xca9294['commandName']?{'type':'format','content':o(_0x2881a4,'*Outdent:*\x20%0',_0x279e95)}:void 0x0;});}}class ht extends _0x959a6f{static get['requires'](){return[_0x3e50b0];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x959a6f{['afterInit'](){const _0x15e744=this['editor'];if(!_0x15e744['plugins']['has']('LinkEditing'))return;const _0x45b404=_0x15e744['plugins']['get']('TrackChangesEditing'),_0x2a9143=_0x15e744['commands']['get']('link');_0x45b404['enableDefaultAttributesIntegration']('link'),_0x45b404['enableDefaultAttributesIntegration']('unlink');for(const _0x366b9f of _0x2a9143['manualDecorators'])_0x45b404['descriptionFactory']['registerAttributeLabel'](_0x366b9f['id'],'link\x20('+_0x366b9f['label']['toLowerCase']()+')');_0x45b404['descriptionFactory']['registerDescriptionCallback'](_0x3a2b99=>{if('attribute'!=_0x3a2b99['type'])return;const {data:_0x5885b6}=_0x3a2b99;if(!_0x5885b6||'linkHref'!=_0x5885b6['key'])return;const _0xf44aa7=_0x5885b6['newValue'],_0x1475e4=_0x15e744['locale'];return{'type':'format','content':null==_0xf44aa7?o(_0x1475e4,'*Remove\x20link*'):o(_0x1475e4,'*Set\x20link:*\x20%0','\x22'+_0xf44aa7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dd364=this['editor'],_0x20da2f=_0x1dd364['locale'];_0x1dd364['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x60cdc8=>{if('formatInline'!=_0x60cdc8['type'])return;const {data:_0x1a27d7}=_0x60cdc8;if(_0x1a27d7){if('link'==_0x1a27d7['commandName']){const _0x720d69=_0x1a27d7['commandParams'][0x0];return{'type':'format','content':o(_0x20da2f,'*Set\x20link:*\x20%0','\x22'+_0x720d69+'\x22')};}return'unlink'==_0x1a27d7['commandName']?{'type':'format','content':o(_0x20da2f,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x959a6f{['afterInit'](){const _0x453ad7=this['editor'],_0x350bd1=_0x453ad7['locale'];if(!_0x453ad7['plugins']['has']('LegacyListEditing'))return;const _0x55cdc3=_0x453ad7['plugins']['get']('TrackChangesEditing'),_0x2ecf06=_0x453ad7['plugins']['has']('LegacyTodoListEditing');function _0x41210b(_0x50f19f){return()=>{const _0x1b448e=_0x453ad7['model']['document']['selection'],_0x3c66f0=_0x453ad7['commands']['get'](_0x50f19f);if(_0x3c66f0['value'])return void _0x453ad7['execute']('paragraph',{});const _0x2e50b1=_0x50f19f['slice'](0x0,-0x4),_0x37f16a=function(_0x1b5c73,_0x165a87,_0x2a8a50){let _0x437c9e=Array['from'](_0x1b5c73)['filter'](_0x30d903=>function(_0x12004c,_0x32b8aa){return _0x32b8aa['checkChild'](_0x12004c['parent'],'listItem')&&!_0x32b8aa['isObject'](_0x12004c);}(_0x30d903,_0x2a8a50));_0x437c9e=_0x437c9e['filter'](_0x4b5671=>!_0x4b5671['is']('element','listItem')||_0x4b5671['getAttribute']('listType')!=_0x165a87);const _0x17da9a=new Set();for(const _0x536dae of _0x437c9e)_0x536dae['is']('element','listItem')?_0x17da9a['add'](Le(_0x536dae)):_0x17da9a['add'](_0x536dae);return Array['from'](_0x17da9a);}(_0x1b448e['getSelectedBlocks'](),_0x2e50b1,_0x453ad7['model']['schema']);_0x453ad7['model']['change'](()=>{for(const _0x3a14a2 of _0x37f16a)_0x55cdc3['markBlockFormat'](_0x3a14a2,{'commandName':_0x50f19f,'commandParams':[{'forceValue':!_0x3c66f0['value']}],'formatGroupId':'blockName'},Ee(_0x3a14a2));});};}function _0x3b6f54(_0x36326b){return()=>{const _0x5e9e64=function(_0x1eafaa){let _0x54ef45=Array['from'](_0x1eafaa);const _0x51db9f=_0x54ef45['findIndex'](_0x4a5cc3=>'listItem'!=_0x4a5cc3['name']);return _0x51db9f>-0x1&&(_0x54ef45=_0x54ef45['slice'](0x0,_0x51db9f)),_0x54ef45;}(_0x453ad7['model']['document']['selection']['getSelectedBlocks']()),_0x117068=_0x453ad7['model']['createRange'](_0x453ad7['model']['createPositionAt'](_0x5e9e64[0x0],'before'),_0x453ad7['model']['createPositionAt'](_0x5e9e64[_0x5e9e64['length']-0x1],'end'));_0x453ad7['model']['change'](()=>{_0x55cdc3['markBlockFormat'](_0x117068,{'commandName':_0x36326b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x286f9b){const _0xc5fb0f=new Set();for(const _0x3ec07a of _0x286f9b){let _0x1af4f7=_0x3ec07a['nextSibling'];for(;_0x1af4f7&&_0x1af4f7['getAttribute']('listIndent')>_0x3ec07a['getAttribute']('listIndent');)_0xc5fb0f['add'](_0x1af4f7),_0x1af4f7=_0x1af4f7['nextSibling'];}return Array['from'](_0xc5fb0f);}(_0x5e9e64));});};}_0x55cdc3['enableCommand']('numberedList',_0x41210b('numberedList')),_0x55cdc3['enableCommand']('bulletedList',_0x41210b('bulletedList')),_0x2ecf06&&_0x55cdc3['enableCommand']('todoList',_0x41210b('todoList')),_0x55cdc3['enableCommand']('indentList',_0x3b6f54('indentList')),_0x55cdc3['enableCommand']('outdentList',_0x3b6f54('outdentList')),_0x2ecf06&&_0x55cdc3['enableCommand']('checkTodoList',()=>{const _0x5af02c=_0x453ad7['commands']['get']('checkTodoList'),_0x4987c9=Array['from'](_0x5af02c['_selectedElements']);_0x4987c9['filter'](_0x5a357d=>_0x5a357d['getAttribute']('todoListChecked')!=_0x5af02c['value']),_0x453ad7['model']['change'](()=>{for(const _0x8cadf9 of _0x4987c9)_0x55cdc3['markBlockFormat'](_0x8cadf9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5af02c['value']}]});});}),_0x55cdc3['descriptionFactory']['registerElementLabel']('listItem',_0x22f61c=>o(_0x350bd1,'ELEMENT_LIST_ITEM',_0x22f61c)),_0x55cdc3['descriptionFactory']['registerDescriptionCallback'](_0xff83c8=>{if('formatBlock'!=_0xff83c8['type']&&'formatInline'!=_0xff83c8['type'])return;const {data:_0x5df86e}=_0xff83c8;if(_0x5df86e){if('numberedList'==_0x5df86e['commandName']||'bulletedList'==_0x5df86e['commandName']||'todoList'==_0x5df86e['commandName'])switch(_0x5df86e['commandName']['replace']('List','')){case'bulleted':return _0x25b09b(o(_0x350bd1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25b09b(o(_0x350bd1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25b09b(o(_0x350bd1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5df86e['commandName'])return{'type':'format','content':o(_0x350bd1,'*Indent:*\x20%0',o(_0x350bd1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5df86e['commandName'])return{'type':'format','content':o(_0x350bd1,'*Outdent:*\x20%0',o(_0x350bd1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5df86e['commandName'])return _0x5df86e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x350bd1,'*Check\x20item*')}:{'type':'format','content':o(_0x350bd1,'*Uncheck\x20item*')};}function _0x25b09b(_0x344ed7){return{'type':'format','content':o(_0x350bd1,'*Change\x20to:*\x20%0',_0x344ed7)};}});}}function Le(_0x2520cc){const _0x1fbcd7=_0x2520cc['getAttribute']('listIndent');if(0x0==_0x1fbcd7)return _0x2520cc;let _0x5ca083=_0x2520cc;for(;_0x2520cc['previousSibling']&&_0x2520cc['previousSibling']['is']('element','listItem');){const _0x1257e0=_0x2520cc['previousSibling']['getAttribute']('listIndent');if(_0x1257e0==_0x1fbcd7)_0x5ca083=_0x2520cc['previousSibling'];else{if(_0x1257e0<_0x1fbcd7)break;}_0x2520cc=_0x2520cc['previousSibling'];}return _0x5ca083;}function Ee(_0x236d0d){const _0x543bab=[];if(_0x236d0d['is']('element','listItem')&&_0x236d0d['getAttribute']('listIndent')>0x0){let _0x4b9e89=_0x236d0d['nextSibling'];for(;_0x4b9e89&&'listItem'==_0x4b9e89['name']&&_0x4b9e89['getAttribute']('listIndent')==_0x236d0d['getAttribute']('listIndent');)_0x543bab['push'](_0x4b9e89),_0x4b9e89=_0x4b9e89['nextSibling'];}return _0x543bab;}class mt extends _0x959a6f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2564ba=this['editor']['config']['get']('list.properties'),_0x1cf09a=this['editor']['plugins']['get']('TrackChangesEditing');_0x2564ba['styles']&&_0x1cf09a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2564ba['reversed']&&_0x1cf09a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2564ba['startIndex']&&_0x1cf09a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1cf09a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x12ed38,_0x3f258d={}){const _0x5d6b1b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc70b9d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5d6b1b['markMultiRangeBlockFormat'](_0xc70b9d,{'commandName':'listStyle','commandParams':[{'type':_0x3f258d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x24f2bc,_0x1158b4={}){const _0x13e901=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d0024=this['_getSuggestionBlocks'](_0x495dba=>_0x495dba['is']('element','listItem')&&'numbered'===_0x495dba['getAttribute']('listType'));if(_0x5d0024['length']<0x1)return;const _0x13049f=_0x5d0024['map'](_0x58501c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x58501c,'before'),this['editor']['model']['createPositionAt'](_0x58501c,0x0)));this['editor']['model']['change'](()=>{_0x13e901['markMultiRangeBlockFormat'](_0x13049f,{'commandName':'listReversed','commandParams':[{'reversed':_0x1158b4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4dd5ec,_0x3e102c={}){const _0x22052f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eecf0=this['_getSuggestionBlocks'](_0x432c2a=>_0x432c2a['is']('element','listItem')&&'numbered'===_0x432c2a['getAttribute']('listType'));if(_0x3eecf0['length']<0x1)return;const _0x386c94=_0x3eecf0['map'](_0x278c54=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x278c54,'before'),this['editor']['model']['createPositionAt'](_0x278c54,0x0)));this['editor']['model']['change'](()=>{_0x22052f['markMultiRangeBlockFormat'](_0x386c94,{'commandName':'listStart','commandParams':[{'startIndex':_0x3e102c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x297285){if('formatBlock'!=_0x297285['type']&&'formatInline'!=_0x297285['type'])return;const _0x5e4aaa=this['editor']['locale'],{data:_0x4ed0dd}=_0x297285;if(!_0x4ed0dd)return;let _0x30c378,_0x2115d4;switch(_0x4ed0dd['commandName']){case'listStyle':_0x30c378='*Change\x20to:*\x20%0',_0x2115d4={'type':'format','content':o(_0x5e4aaa,_0x30c378,o(_0x5e4aaa,this['_getTranslationKeyForListStyle'](_0x4ed0dd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x30c378=_0x4ed0dd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2115d4={'type':'format','content':o(_0x5e4aaa,_0x30c378)};break;case'listStart':_0x30c378='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2115d4={'type':'format','content':o(_0x5e4aaa,_0x30c378,_0x4ed0dd['commandParams'][0x0]['startIndex'])};}return _0x2115d4;}['_getSuggestionBlocksForListStyle'](){const _0x49de05=this['editor']['plugins']['get']('LegacyListUtils');let _0x3ec1b5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3ec1b5[0x0]?.['is']('element','listItem')&&_0x3ec1b5['unshift'](..._0x49de05['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3ec1b5[_0x3ec1b5['length']-0x1]?.['is']('element','listItem')&&_0x3ec1b5['push'](..._0x49de05['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3ec1b5=[...new Set(_0x3ec1b5)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3ec1b5=_0x3ec1b5['filter'](_0x5cb372=>_0x5cb372['is']('element','listItem'))),_0x3ec1b5;}['_getSuggestionBlocks'](_0x4bbaa7){const _0x42753b=this['editor']['plugins']['get']('LegacyListUtils');let _0x410188=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4bbaa7)['map'](_0x4e698d=>{const _0x268821=this['editor']['model']['createPositionAt'](_0x4e698d,0x0);return[..._0x42753b['getSiblingNodes'](_0x268821,'backward'),..._0x42753b['getSiblingNodes'](_0x268821,'forward')];})['flat']();return _0x410188=[...new Set(_0x410188)],_0x410188;}['_getTranslationKeyForListStyle'](_0x1d1b10){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1d1b10)||'default')['toUpperCase']()+'_LIST_'+_0x1d1b10['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x959a6f{['afterInit'](){const _0x32b87b=this['editor'];if(!_0x32b87b['plugins']['has']('MediaEmbedEditing'))return;const _0xeefeea=_0x32b87b['plugins']['get']('TrackChangesEditing'),_0x4b5798=_0x32b87b['locale'];_0xeefeea['enableCommand']('mediaEmbed'),_0xeefeea['descriptionFactory']['registerElementLabel']('media',_0x1cae00=>o(_0x4b5798,'ELEMENT_MEDIA',_0x1cae00));}}class pt extends _0x959a6f{['afterInit'](){const _0x100d09=this['editor'];_0x100d09['plugins']['has']('MentionEditing')&&_0x100d09['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x959a6f{['afterInit'](){const _0x3e9e3a=this['editor'];if(!_0x3e9e3a['plugins']['has']('MergeFieldsEditing'))return;const _0xf060f3=_0x3e9e3a['plugins']['get']('TrackChangesEditing'),_0x7a4eec=_0x3e9e3a['locale'];_0xf060f3['enableCommand']('insertMergeField'),_0xf060f3['enableCommand']('insertMergeFieldBlock'),_0xf060f3['enableCommand']('insertMergeFieldImage'),_0xf060f3['descriptionFactory']['registerElementLabel']('mergeField',_0x507870=>o(_0x7a4eec,'ELEMENT_MERGE_FIELD',_0x507870)),_0xf060f3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4805f8=>o(_0x7a4eec,'ELEMENT_MERGE_FIELD',_0x4805f8)),_0xf060f3['descriptionFactory']['registerDescriptionCallback'](_0x2816a4=>{if('insertion'!=_0x2816a4['type']&&'deletion'!=_0x2816a4['type'])return;const _0x295301=_0x2816a4['getContainedElement']();if(null==_0x295301)return;const _0x159cb9=_0x3e9e3a['plugins']['get']('MergeFieldsEditing');let _0x58b060;switch(_0x159cb9['getMergeFieldType'](_0x295301)){case null:return;case'image':{const _0x2c18a0=_0x159cb9['unwrapAffixes'](_0x295301['getAttribute']('src'));_0x58b060=_0x159cb9['getLabel'](_0x2c18a0)||_0x2c18a0;break;}default:{const _0x14a65d=_0x295301['getAttribute']('id');_0x58b060=_0x159cb9['getLabel'](_0x14a65d)||_0x14a65d;break;}}return'insertion'==_0x2816a4['type']?{'type':'insertion','content':o(_0x7a4eec,'*Insert:*\x20%0','\x22'+_0x58b060+'\x22\x20'+o(_0x7a4eec,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x7a4eec,'*Remove:*\x20%0','\x22'+_0x58b060+'\x22\x20'+o(_0x7a4eec,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x959a6f{['afterInit'](){const _0x262d19=this['editor'],_0x4d7b10=_0x262d19['plugins']['get']('TrackChangesEditing');_0x262d19['plugins']['has']('MultiLevelList')&&(_0x4d7b10['enableDefaultAttributesIntegration']('multiLevelList'),_0x4d7b10['descriptionFactory']['registerDescriptionCallback'](_0x507200=>this['handleDescriptions'](_0x507200)));}['handleDescriptions'](_0xb055a9){const _0x33e923=this['editor']['locale'],{data:_0x32504a}=_0xb055a9,_0x531137={'type':'format','content':''};if(_0x32504a&&'listMarkerStyle'==_0x32504a['key']){if(!_0x32504a['oldValue'])return{'type':'format','content':o(_0x33e923,'*Set\x20format:*\x20%0',o(_0x33e923,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x32504a['newValue']+')'};if(!_0x32504a['newValue']){let _0x1dc42e=_0xb055a9['head'];for(;_0x1dc42e;){if(_0x1dc42e['data']&&'listType'==_0x1dc42e['data']['key']&&_0x1dc42e['data']['newValue'])return _0x531137;_0x1dc42e=_0x1dc42e['next'];}return{'type':'format','content':o(_0x33e923,'*Remove\x20format:*\x20%0',o(_0x33e923,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x32504a['oldValue']+')'};}}}}class bt extends _0x959a6f{['afterInit'](){const _0x2f052b=this['editor'];if(!_0x2f052b['plugins']['has']('PageBreakEditing'))return;_0x2f052b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x26b16c=_0x2f052b['plugins']['get']('TrackChangesEditing'),_0x16e7b9=_0x2f052b['locale'];_0x26b16c['descriptionFactory']['registerElementLabel']('pageBreak',_0x3bb47b=>o(_0x16e7b9,'ELEMENT_PAGE_BREAK',_0x3bb47b));}}class yt extends _0x959a6f{['afterInit'](){const _0x52b4af=this['editor'];if(!_0x52b4af['plugins']['has']('Paragraph'))return;const _0x41561f=_0x52b4af['locale'],_0x3245c2=_0x52b4af['plugins']['get']('TrackChangesEditing');_0x3245c2['descriptionFactory']['registerElementLabel']('paragraph',_0x5f4781=>o(_0x41561f,'ELEMENT_PARAGRAPH',_0x5f4781)),_0x3245c2['enableDefaultAttributesIntegration']('paragraph'),_0x3245c2['enableCommand']('insertParagraph');const _0xcc0d91=_0x3245c2['descriptionFactory'];_0xcc0d91['registerDescriptionCallback'](_0x329d55=>{if('insertion'!==_0x329d55['type'])return;const {start:_0x4428b5,end:_0x2ab6d5}=_0x329d55['getFirstRange']();if(!_0x4428b5['isTouching'](_0x2ab6d5)||!_0x4428b5['nodeAfter'])return;const _0x499e79=_0x52b4af['model']['schema'],_0x140611=_0x4428b5['nodeAfter'];return _0x499e79['isBlock'](_0x140611)&&!_0x499e79['isLimit'](_0x140611)&&_0x499e79['checkChild'](_0x140611,'$text')?{'type':'insertion','content':o(_0x41561f,'*Insert:*\x20%0',_0xcc0d91['getItemLabel'](_0x140611,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27f855=this['editor'],_0x3174c9=_0x27f855['locale'];_0x27f855['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a061b=>{if('formatBlock'!=_0x1a061b['type'])return;const {data:_0x89cc2d}=_0x1a061b;return _0x89cc2d&&'paragraph'==_0x89cc2d['commandName']?{'type':'format','content':o(_0x3174c9,'*Change\x20to:*\x20%0',o(_0x3174c9,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x959a6f{['afterInit'](){const _0x4d6b62=this['editor'];_0x4d6b62['commands']['get']('replaceSource')&&_0x4d6b62['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x959a6f{['afterInit'](){const _0x5499b3=this['editor'];if(!_0x5499b3['plugins']['has']('RemoveFormatEditing'))return;_0x5499b3['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17336e=this['editor'];_0x17336e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x972690=>{if('formatBlock'!=_0x972690['type']&&'formatInline'!=_0x972690['type'])return;const {data:_0x42e5bb}=_0x972690;return _0x42e5bb&&'removeFormat'==_0x42e5bb['commandName']?{'type':'format','content':o(_0x17336e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x959a6f{['afterInit'](){const _0x223a5f=this['editor'];if(!_0x223a5f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x50a722=_0x223a5f['plugins']['get']('TrackChangesEditing');_0x50a722['enableCommand']('goToPreviousRestrictedEditingException'),_0x50a722['enableCommand']('goToNextRestrictedEditingException');const _0x17102f=_0x223a5f['plugins']['get']('RestrictedEditingModeEditing');_0x17102f['enableCommand']('trackChanges'),_0x17102f['enableCommand']('acceptSuggestion'),_0x17102f['enableCommand']('discardSuggestion'),_0x17102f['enableCommand']('acceptAllSuggestions'),_0x17102f['enableCommand']('discardAllSuggestions'),_0x17102f['enableCommand']('acceptSelectedSuggestions'),_0x17102f['enableCommand']('discardSelectedSuggestions');}}class At extends _0x959a6f{['afterInit'](){const _0x44b70a=this['editor'];if(!_0x44b70a['plugins']['has']('ShiftEnter'))return;const _0x2d01ba=_0x44b70a['plugins']['get']('TrackChangesEditing');_0x2d01ba['enableCommand']('shiftEnter'),_0x2d01ba['descriptionFactory']['registerElementLabel']('softBreak',_0x4d43c4=>o(_0x44b70a['locale'],'ELEMENT_LINE_BREAK',_0x4d43c4));}}function an(_0x589d92,_0x52ee66,_0x28f3d8){const _0x24b4ec=[];for(const _0x4b9f2e of _0x52ee66['getItems']())_0x4b9f2e['hasAttribute'](_0x589d92)&&_0x24b4ec['push'](_0x28f3d8['createRangeOn'](_0x4b9f2e));return _0x24b4ec;}class _t extends _0x959a6f{['afterInit'](){const _0x4f1b8c=this['editor'],_0x5b5711=_0x4f1b8c['plugins']['get']('TrackChangesEditing');_0x4f1b8c['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5b5711['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x1ea4da=this['editor'],_0x3a6d37=_0x1ea4da['model'],_0x16c3ab=_0x1ea4da['locale'],_0x23ad45=_0x1ea4da['plugins']['get']('TrackChangesEditing'),_0x596405='restrictedEditingException',_0x5d747e=_0x1ea4da['commands']['get'](_0x596405);_0x23ad45['enableCommand'](_0x596405,(_0x262f0b,_0x5e38a3={})=>{const _0x443206=_0x3a6d37['document']['selection'];if(_0x443206['isCollapsed'])return void _0x262f0b(_0x5e38a3);const _0xba0b05=void 0x0!==_0x5e38a3['forceValue']?_0x5e38a3['forceValue']:!_0x5d747e['value'];_0x3a6d37['change'](()=>{const _0x417095=Array['from'](_0x443206['getRanges']());for(const _0x4a6358 of _0x417095){const _0x5b1dd1=_0xba0b05?[_0x4a6358]:an(_0x596405,_0x4a6358,_0x3a6d37);for(const _0x1b75b3 of _0x5b1dd1)_0x23ad45['markInlineFormat'](_0x1b75b3,{'commandName':_0x596405,'commandParams':[{'forceValue':_0xba0b05}]});}});}),_0x23ad45['descriptionFactory']['registerDescriptionCallback'](_0x3be7ea=>{if('formatBlock'!=_0x3be7ea['type']&&'formatInline'!=_0x3be7ea['type'])return;const {data:_0x511257}=_0x3be7ea;return _0x511257&&_0x511257['commandName']==_0x596405?_0x511257['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16c3ab,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x16c3ab,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x4541f8=this['editor'],_0x5c56bb=_0x4541f8['locale'],_0x32eca8=_0x4541f8['plugins']['get']('TrackChangesEditing'),_0x4e8c01='restrictedEditingExceptionBlock',_0x4e23f8=this['editor']['commands']['get'](_0x4e8c01);_0x32eca8['enableCommand'](_0x4e8c01,(_0xb8be37,_0x5cc977={})=>{const _0x3e4953=this['editor']['model']['document']['selection'],_0x231ec3=_0x5cc977&&void 0x0!==_0x5cc977['forceValue']?_0x5cc977['forceValue']:!_0x4e23f8['value'];let _0x24843d=[];if(_0x231ec3){const _0x17d2c6=Array['from'](_0x3e4953['getSelectedBlocks']())['filter'](_0x4e99e0=>function(_0x7bf664){return!!_0x7bf664['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x4e99e0)||function(_0x47b9bb,_0x4adc9e){const _0x1aa3b3=_0x4adc9e['createContext'](_0x47b9bb['parent']);if(!_0x4adc9e['checkChild'](_0x1aa3b3,'restrictedEditingException'))return!0x1;if(!_0x4adc9e['checkChild'](_0x1aa3b3['push']('restrictedEditingException'),_0x47b9bb))return!0x1;return!0x0;}(_0x4e99e0,this['editor']['model']['schema']));_0x24843d=to(_0x17d2c6,_0x4541f8['model']);}else{const _0x2b6079=Array['from'](_0x3e4953['getSelectedBlocks']())['map'](_0x5aa918=>function(_0x10dd64){let _0x47aeb4=_0x10dd64;for(;_0x47aeb4['parent'];){if('restrictedEditingException'==_0x47aeb4['parent']['name'])return _0x47aeb4;_0x47aeb4=_0x47aeb4['parent'];}return null;}(_0x5aa918))['filter'](_0x210b71=>!!_0x210b71);_0x24843d=to(_0x2b6079,_0x4541f8['model']);}_0x4541f8['model']['change'](()=>{for(const _0x3bb79e of _0x24843d)_0x32eca8['markBlockFormat'](_0x3bb79e,{'commandName':_0x4e8c01,'commandParams':[{'forceValue':_0x231ec3}]});});}),_0x32eca8['descriptionFactory']['registerDescriptionCallback'](_0x4d73ef=>{const {data:_0x5863d4}=_0x4d73ef;if(_0x5863d4&&_0x5863d4['commandName']==_0x4e8c01)return _0x5863d4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c56bb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5c56bb,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x959a6f{['afterInit'](){const _0x3cb075=this['editor'];if(!_0x3cb075['plugins']['has']('Style')||!_0x3cb075['plugins']['has']('DataSchema'))return;const _0x2f3b26=_0x3cb075['plugins']['get']('TrackChangesEditing'),_0x4d2b38=_0x3cb075['locale'],_0x3bc246=_0x3cb075['config']['get']('style')||{},_0x3522ae=_0x3cb075['plugins']['get']('GeneralHtmlSupport'),_0x5da685=_0x3cb075['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3cb075['plugins']['get']('DataSchema'),_0x3bc246['definitions']);_0x2f3b26['enableDefaultAttributesIntegration']('style');const _0x496e54=new Set();for(const _0x2e4ee3 of _0x5da685['block']){const _0x1e9272=_0x3522ae['getGhsAttributeNameForElement'](_0x2e4ee3['element']);_0x496e54['add'](_0x1e9272);}const _0x533b78=new Set();for(const _0x1d7eda of _0x5da685['inline']){const _0x2e0014=_0x3522ae['getGhsAttributeNameForElement'](_0x1d7eda['element']);_0x533b78['add'](_0x2e0014);for(const _0xd740c6 of _0x1d7eda['ghsAttributes'])_0x533b78['add'](_0xd740c6);}for(const _0x43dacf of _0x496e54)_0x2f3b26['descriptionFactory']['registerAttributeLabel'](_0x43dacf,o(_0x4d2b38,'FORMAT_STYLE'));for(const _0x384f8d of _0x533b78)_0x2f3b26['descriptionFactory']['registerAttributeLabel'](_0x384f8d,o(_0x4d2b38,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34628b=this['editor'],_0x4c2f40=_0x34628b['locale'];_0x34628b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf18535=>{if('formatBlock'!=_0xf18535['type']&&'formatInline'!=_0xf18535['type'])return;const {data:_0x119798}=_0xf18535;return _0x119798&&'style'===_0x119798['commandName']?_0x119798['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c2f40,'*Set\x20format:*\x20%0',_0x119798['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4c2f40,'*Remove\x20format:*\x20%0',_0x119798['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x959a6f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x56ccba){super(_0x56ccba),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1368c3=this['editor'],_0xd65ae2=_0x1368c3['model']['document']['selection'];if(!_0x1368c3['plugins']['has']('TableEditing'))return;const _0x3fa181=_0x1368c3['locale'],_0x49193e=_0x1368c3['plugins']['get']('TrackChangesEditing'),_0x37a8db=_0x1368c3['plugins']['get']('TableUtils');_0x49193e['descriptionFactory']['registerElementLabel']('table',_0x18292c=>o(_0x3fa181,'ELEMENT_TABLE',_0x18292c)),this['_setupColumnsRowsFixing'](),_0x49193e['enableCommand']('insertTable'),_0x49193e['enableCommand']('selectTableRow'),_0x49193e['enableCommand']('selectTableColumn');for(const _0xf8c684 of['insertTableRowAbove','insertTableRowBelow']){const _0x2df5e1=_0x1368c3['commands']['get'](_0xf8c684);_0x49193e['enableCommand'](_0xf8c684,_0x154271=>{_0x1368c3['model']['change'](_0xce4536=>{_0x154271();const _0x55525a='above'===_0x2df5e1['order'],_0x4416f8=_0x37a8db['getSelectionAffectedTableCells'](_0xd65ae2),_0x42d56d=_0x37a8db['getRowIndexes'](_0x4416f8),_0x2c4fd8=_0x55525a?_0x42d56d['first']-0x1:_0x42d56d['last']+0x1,_0x21d796=_0x4416f8[0x0]['findAncestor']('table'),_0x5bca15=_0x37a8db['createTableWalker'](_0x21d796,{'startRow':_0x2c4fd8,'endRow':_0x2c4fd8}),_0x274f3a=Array['from'](_0x5bca15)['map'](_0x5256fe=>_0xce4536['createRangeOn'](_0x5256fe['cell']));_0x49193e['markMultiRangeInsertion'](_0x274f3a,'tableRow');});});}for(const _0x26a12a of['insertTableColumnLeft','insertTableColumnRight']){const _0x502994=_0x1368c3['commands']['get'](_0x26a12a);_0x49193e['enableCommand'](_0x26a12a,_0x5381fa=>{_0x1368c3['model']['change'](_0x3ac2f7=>{_0x5381fa();const _0x2c69f3='left'===_0x502994['order'],_0x202b96=_0x37a8db['getSelectionAffectedTableCells'](_0xd65ae2),_0x240455=_0x37a8db['getColumnIndexes'](_0x202b96),_0x702c05=_0x2c69f3?_0x240455['first']-0x1:_0x240455['last']+0x1,_0x279f62=_0x202b96[0x0]['findAncestor']('table'),_0x16a3ec=_0x37a8db['createTableWalker'](_0x279f62,{'startRow':0x0,'column':_0x702c05,'includeAllSlots':!0x1}),_0xa6e11=Array['from'](_0x16a3ec)['map'](_0x1cab79=>_0x3ac2f7['createRangeOn'](_0x1cab79['cell']));_0x49193e['markMultiRangeInsertion'](_0xa6e11,'tableColumn');});});}for(const _0x592043 of['removeTableRow','removeTableColumn']){const _0x40d7e2=_0x592043['substr'](0xb),_0x5f1bf6=_0x40d7e2['toLowerCase'](),_0x38f7c1=_0x5f1bf6['substr'](0x0,0x3)+'span',_0x21eb4a='table'+_0x40d7e2,_0x104bb4='min'+_0x40d7e2,_0x16d096='max'+_0x40d7e2;_0x49193e['enableCommand'](_0x592043,()=>{_0x1368c3['model']['change'](_0x296f43=>{const _0xb13a50=_0x37a8db['getSelectionAffectedTableCells'](_0xd65ae2),_0x179d24=_0xb13a50[0x0]['findAncestor']('table');let _0xaebeb4;if('removeTableRow'==_0x592043){const _0x395acd=_0x37a8db['getRowIndexes'](_0xb13a50);_0xaebeb4={'startRow':_0x395acd['first'],'endRow':_0x395acd['last'],'includeAllSlots':!0x0};}else{const _0x35a63e=_0x37a8db['getColumnIndexes'](_0xb13a50);_0xaebeb4={'startColumn':_0x35a63e['first'],'endColumn':_0x35a63e['last'],'includeAllSlots':!0x0};}const _0x2b98ed=_0x37a8db['createTableWalker'](_0x179d24,_0xaebeb4),_0x17ca22=Array['from'](_0x2b98ed)['map'](({cell:_0x3b2e96})=>_0x3b2e96),_0xb14817=_e(_0x17ca22['filter'](_0x389be6=>_0x389be6['hasAttribute'](_0x38f7c1))),_0x154e80=_e(_0x17ca22['filter'](_0xe84643=>!_0xe84643['hasAttribute'](_0x38f7c1)))['map'](_0x270f17=>_0x296f43['createRangeOn'](_0x270f17)),_0x5aa74e=_0x49193e['markMultiRangeDeletion'](_0x154e80,_0x21eb4a);if(_0x5aa74e&&('tableRow'==_0x5aa74e['subType']||'tableColumn'==_0x5aa74e['subType'])){const _0x55cf6a=this['_getSuggestionCoords'](_0x5aa74e);for(const _0x398a2b of _0xb14817){const _0x523a61=_0x296f43['createRangeOn'](_0x398a2b),_0x28c3a5=_0x37a8db['getCellLocation'](_0x398a2b),_0x2a7eb5=_0x398a2b['getAttribute'](_0x38f7c1)-0x1,_0x1981ca=_0x55cf6a[_0x104bb4],_0x5938a3=_0x55cf6a[_0x16d096];_0x1981ca<=_0x28c3a5[_0x5f1bf6]&&_0x28c3a5[_0x5f1bf6]+_0x2a7eb5<=_0x5938a3&&_0x5aa74e['addRange'](_0x523a61);}}});});}function _0x6851cc(_0x5b8bdd){const _0x420675=Array['from'](_0xd65ae2['getRanges']())['map'](_0x2a7baa=>_0x481a5c['fromRange'](_0x2a7baa));_0x1368c3['model']['change'](_0x5a3f75=>{const _0xcd6307=_0x5a3f75['batch'];_0x5b8bdd=_0x5b8bdd['filter'](_0x4bc232=>'$graveyard'!=_0x4bc232['root']['rootName']),_0x5a3f75['setSelection'](_0x5b8bdd),_0x1368c3['commands']['get']('removeTableRow')['refresh'](),_0x1368c3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1368c3['model']['enqueueChange'](()=>{_0x1368c3['model']['enqueueChange'](_0xcd6307,_0x255b8d=>{const _0x21e1b1=_0x420675['filter'](_0x347bb8=>'$graveyard'!=_0x347bb8['root']['rootName']);_0x21e1b1['length']>0x0&&_0x255b8d['setSelection'](_0x21e1b1);for(const _0x46fc0c of _0x420675)_0x46fc0c['detach']();});});});}function _0x291662(_0x1a2cff){_0x1368c3['model']['change'](_0x3ae368=>{const _0x681b82=Array['from'](_0xd65ae2['getRanges']())['map'](_0x11243b=>_0x481a5c['fromRange'](_0x11243b)),_0x23a5c4=[];for(const _0x2e6ed9 of _0x1a2cff)for(const _0x5e21c8 of _0x2e6ed9['getItems']({'shallow':!0x0}))_0x23a5c4['push'](_0x5e21c8);for(const _0x2843c9 of _0x23a5c4)'$graveyard'!=_0x2843c9['root']['rootName']&&(_0x3ae368['setSelection'](_0x3ae368['createPositionAt'](_0x2843c9,0x0)),_0x1368c3['commands']['get']('removeTableColumn')['refresh'](),_0x1368c3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1f2fde=_0x681b82['filter'](_0x5de369=>'$graveyard'!=_0x5de369['root']['rootName']);_0x1f2fde['length']>0x0&&_0x3ae368['setSelection'](_0x1f2fde);for(const _0x59430f of _0x681b82)_0x59430f['detach']();});}function _0x409922(_0x501627,_0x36b2ac){return _0x36b2ac['every'](_0x571e46=>_0x501627['some'](_0x586a11=>_0x586a11['end']['isEqual'](_0x571e46['start'])||_0x571e46['end']['isEqual'](_0x586a11['start'])));}function _0x1e204e(_0x244cd0,_0x4b09d9){return!_0x244cd0['some'](_0x59b632=>_0x4b09d9['some'](_0x30d0c7=>_0x59b632['isIntersecting'](_0x30d0c7)))&&_0x244cd0['some'](_0x2249af=>_0x4b09d9['some'](_0x20802b=>_0x2249af['end']['isTouching'](_0x20802b['start'])));}_0x49193e['descriptionFactory']['registerDescriptionCallback'](_0x1f4f89=>{if('insertion'!=_0x1f4f89['type']&&'deletion'!=_0x1f4f89['type'])return;const _0x5edd3a=_0x1f4f89['getContainedElement']();if(null!=_0x5edd3a&&_0x5edd3a['is']('element','table')){if('insertion'==_0x1f4f89['type']){const _0x5ed486=_0x1f4f89['getItems']()['filter'](_0x10e45e=>_0x10e45e['is']('$textProxy'))['map'](_0x27daa0=>_0x27daa0['data']);if(_0x5ed486['length'])return{'type':'insertion','content':o(_0x3fa181,'*Insert:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5ed486['join']('\x20')+'\x22'))};}if('deletion'==_0x1f4f89['type']){const _0x238894=_0x1f4f89['getItems']()['filter'](_0x134d67=>_0x134d67['is']('$textProxy'))['map'](_0x194577=>_0x194577['data']);if(_0x238894['length'])return{'type':'deletion','content':o(_0x3fa181,'*Remove:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x238894['join']('\x20')+'\x22'))};}}}),_0x49193e['descriptionFactory']['registerDescriptionCallback'](_0x598e57=>{if('tableRow'==_0x598e57['subType']){const _0x22b9d0=_0x598e57['getItems']()['filter'](_0x4aef51=>_0x4aef51['is']('$textProxy'))['map'](_0x40710b=>_0x40710b['data']),_0x37e6cb=this['_getSuggestionCoords'](_0x598e57),_0x48c1fc=_0x37e6cb['maxRow']-_0x37e6cb['minRow']+0x1;if('insertion'==_0x598e57['type'])return _0x22b9d0['length']?{'type':'insertion','content':o(_0x3fa181,'*Insert:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48c1fc,'\x22'+_0x22b9d0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3fa181,'*Insert:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_ROW',_0x48c1fc))};if('deletion'==_0x598e57['type'])return _0x22b9d0['length']?{'type':'deletion','content':o(_0x3fa181,'*Remove:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48c1fc,'\x22'+_0x22b9d0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3fa181,'*Remove:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_ROW',_0x48c1fc))};}if('tableColumn'==_0x598e57['subType']){const _0x137a37=_0x598e57['getItems']()['filter'](_0x944437=>_0x944437['is']('$textProxy'))['map'](_0x2e45ba=>_0x2e45ba['data']),_0x4c0f63=this['_getSuggestionCoords'](_0x598e57),_0x204854=_0x4c0f63['maxColumn']-_0x4c0f63['minColumn']+0x1;if('insertion'==_0x598e57['type'])return _0x137a37['length']?{'type':'insertion','content':o(_0x3fa181,'*Insert:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x204854,'\x22'+_0x137a37['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3fa181,'*Insert:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_COLUMN',_0x204854))};if('deletion'==_0x598e57['type'])return _0x137a37['length']?{'type':'deletion','content':o(_0x3fa181,'*Remove:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x204854,'\x22'+_0x137a37['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3fa181,'*Remove:*\x20%0',o(_0x3fa181,'ELEMENT_TABLE_COLUMN',_0x204854))};}}),_0x49193e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x6851cc),_0x49193e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x6851cc),_0x49193e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x291662),_0x49193e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x291662),_0x49193e['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x409922),_0x49193e['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x409922),_0x49193e['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1e204e),_0x49193e['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1e204e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4e306c=this['editor'],_0x2b1f9f=_0x4e306c['model']['document']['selection'];return(_0xdb0df1,_0x14e56f)=>{_0x4e306c['model']['change'](_0x1a2163=>{const {commandName:_0x7883d1,commandParams:_0x36dfff}=_0x14e56f;let _0x39700f=_0xdb0df1[0x0]['end']['nodeBefore'];_0x36dfff&&_0x36dfff[0x0]&&!0x1===_0x36dfff[0x0]['forceValue']&&(_0x39700f=_0xdb0df1[0x0]['start']['nodeAfter']);const _0x3497f7=_0x1a2163['createRangeIn'](_0x39700f);if('$graveyard'==_0x3497f7['root']['rootName'])return;const _0xebbb92=Array['from'](_0x2b1f9f['getRanges']())['map'](_0x559f95=>_0x481a5c['fromRange'](_0x559f95));_0x1a2163['setSelection'](_0x3497f7),_0x4e306c['commands']['get'](_0x7883d1)['refresh'](),_0x36dfff['push']({'forceDefaultExecution':!0x0}),_0x4e306c['execute'](_0x7883d1,..._0x36dfff);const _0x4e22c3=_0xebbb92['filter'](_0x124678=>'$graveyard'!=_0x124678['root']['rootName']);_0x4e22c3['length']>0x0&&_0x1a2163['setSelection'](_0x4e22c3);for(const _0x4771dd of _0xebbb92)_0x4771dd['detach']();});};}['_getCoordsForCells'](_0x2eda7b){const _0x2d0e64=this['editor']['plugins']['get']('TableUtils');let _0x400003=Number['MAX_SAFE_INTEGER'],_0x2f4b1a=Number['MIN_SAFE_INTEGER'],_0x12d366=Number['MAX_SAFE_INTEGER'],_0x29d70f=Number['MIN_SAFE_INTEGER'];for(const _0x32a7e7 of _0x2eda7b){if('$graveyard'==_0x32a7e7['root']['rootName'])continue;const {row:_0x2b24b9,column:_0x1e1aad}=_0x2d0e64['getCellLocation'](_0x32a7e7),_0x558332=_0x32a7e7['hasAttribute']('rowspan')?_0x32a7e7['getAttribute']('rowspan')-0x1:0x0,_0xaea340=_0x32a7e7['hasAttribute']('colspan')?_0x32a7e7['getAttribute']('colspan')-0x1:0x0;_0x400003=_0x2b24b9<_0x400003?_0x2b24b9:_0x400003,_0x2f4b1a=_0x2b24b9+_0x558332>_0x2f4b1a?_0x2b24b9+_0x558332:_0x2f4b1a,_0x12d366=_0x1e1aad<_0x12d366?_0x1e1aad:_0x12d366,_0x29d70f=_0x1e1aad+_0xaea340>_0x29d70f?_0x1e1aad+_0xaea340:_0x29d70f;}return{'minRow':_0x400003,'maxRow':_0x2f4b1a,'minColumn':_0x12d366,'maxColumn':_0x29d70f};}['_setupColumnsRowsFixing'](){const _0x579edd=this['editor'],_0xac35ce=_0x579edd['plugins']['get']('TrackChangesEditing'),_0x453994=_0x579edd['plugins']['get']('TableUtils');_0x579edd['model']['document']['on']('change:data',()=>{const _0xd13ee6=Array['from'](_0x579edd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x132600,data:_0xe918ea}of _0xd13ee6){const {group:_0x44fdad,id:_0x1de2ff,subType:_0x262fb6}=_0xac35ce['_splitMarkerName'](_0x132600);if('suggestion'!=_0x44fdad)continue;if(null!=_0xe918ea['oldRange'])continue;const _0x335aaf=_0xac35ce['getSuggestion'](_0x1de2ff);this['_tablePostFixingSubtypes']['includes'](_0x262fb6)&&this['_tableSuggestions']['add'](_0x335aaf);}},{'priority':'low'});const _0x2bf31a=(_0x27b928,_0x57ea68)=>{let _0x3c6acc=!0x1;const _0x49cb8b=_0x57ea68['createRangeOn'](_0x27b928),_0x227554=_0x27b928['findAncestor']('table'),_0x1273af=_0x453994['getCellLocation'](_0x27b928);for(const _0x4bc570 of this['_tableSuggestions']){const _0xc554eb=_0x4bc570['subType'],_0x5122bc=_0xc554eb['startsWith']('tablePaste'),_0x5d1238=_0xc554eb['substr'](_0x5122bc?0xa:0x5),_0x5414ac=_0x5d1238['toLowerCase'](),_0x3bd84f=_0x5414ac['substr'](0x0,0x3)+'span',_0x2195c1='min'+_0x5d1238,_0x190dce='max'+_0x5d1238;if(!_0x4bc570['isInContent'])continue;if(_0x227554!=_0x4bc570['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4bc570['isIntersectingWithRange'](_0x49cb8b))continue;const _0x568548=_0x27b928['hasAttribute'](_0x3bd84f)?_0x27b928['getAttribute'](_0x3bd84f)-0x1:0x0,_0x2e630e=this['_getSuggestionCoords'](_0x4bc570),_0x5693f0=_0x2e630e[_0x2195c1],_0x512f37=_0x2e630e[_0x190dce];_0x5693f0<=_0x1273af[_0x5414ac]&&_0x1273af[_0x5414ac]+_0x568548<=_0x512f37&&(_0x4bc570['addRange'](_0x49cb8b),_0x3c6acc=!0x0);}return _0x3c6acc;};_0x579edd['model']['document']['registerPostFixer'](_0xd2ffe3=>{let _0x25f55d=!0x1;for(const _0xef94a8 of _0x579edd['model']['document']['differ']['getChanges']())if('insert'==_0xef94a8['type']){if('tableRow'==_0xef94a8['name']){for(const _0x2c8a15 of _0xef94a8['position']['nodeAfter']['getChildren']())_0x25f55d=_0x25f55d||_0x2bf31a(_0x2c8a15,_0xd2ffe3);}else'tableCell'==_0xef94a8['name']&&(_0x25f55d=_0x25f55d||_0x2bf31a(_0xef94a8['position']['nodeAfter'],_0xd2ffe3));}return _0x25f55d;});}['_getSuggestionCoords'](_0x3af2db){return this['_getCoordsForCells'](_0x3af2db['getRanges']()['map'](_0xc00ddc=>_0xc00ddc['start']['nodeAfter']));}}function _e(_0x58c0de){return Array['from'](new Set(_0x58c0de)['values']());}class $t extends _0x959a6f{static get['requires'](){return[Nt];}['afterInit'](){const _0x5c0f60=this['editor'],_0x557936=_0x5c0f60['model']['document']['selection'],_0x2d0d68=_0x5c0f60['locale'];if(!_0x5c0f60['plugins']['has']('TableEditing'))return;const _0xdd9b10=_0x5c0f60['plugins']['get']('TrackChangesEditing'),_0x49547d=_0x5c0f60['plugins']['get']('TableUtils'),_0x56c367=_0x5c0f60['plugins']['get'](Nt);_0x56c367['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xdd9b10['enableCommand']('mergeTableCells',()=>{const _0x3510ce=_0x49547d['getSelectionAffectedTableCells'](_0x5c0f60['model']['document']['selection']);_0x5c0f60['model']['change'](()=>{_0xdd9b10['markMultiRangeBlockFormat'](_0x3510ce,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5c0f60['commands']['get']('mergeTableCells')['on']('execute',(_0x4d6f17,_0x5374fe)=>{_0x5c0f60['commands']['get']('trackChanges')['value']&&(_0x5374fe['length']>0x0&&_0x5374fe[_0x5374fe['length']-0x1]&&_0x5374fe[_0x5374fe['length']-0x1]['forceDefaultExecution']||_0xdd9b10['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4d6f17['stop']());},{'priority':'highest'});for(const _0x3364e1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3bacd1=_0x5c0f60['commands']['get'](_0x3364e1);_0xdd9b10['enableCommand'](_0x3364e1,()=>{const _0x3843c4=_0x5c0f60['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x508732=>_0x508732['is']('element','tableCell')),_0x3d850b=_0x3bacd1['value'];_0x5c0f60['model']['change'](()=>{_0xdd9b10['markMultiRangeBlockFormat']([_0x3843c4,_0x3d850b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xcf55fc of['splitTableCellVertically','splitTableCellHorizontally']){const _0x276e4d=_0x5c0f60['commands']['get'](_0xcf55fc);_0xdd9b10['enableCommand'](_0xcf55fc,()=>{const _0x2331d3=_0x49547d['getSelectionAffectedTableCells'](_0x5c0f60['model']['document']['selection'])[0x0],_0x5c7fd4=_0x2331d3['findAncestor']('table'),{column:_0x3a7632,row:_0x1fa476}=_0x49547d['getCellLocation'](_0x2331d3);let _0x290ba2=[];if('horizontally'==_0x276e4d['direction']){const _0xbd7cab=_0x49547d['createTableWalker'](_0x5c7fd4,{'startRow':_0x1fa476,'endRow':_0x1fa476,'includeAllSlots':!0x0});_0x290ba2=Array['from'](_0xbd7cab)['map'](_0x268527=>_0x268527['cell']);}else{const _0x3383ef=_0x49547d['createTableWalker'](_0x5c7fd4,{'column':_0x3a7632,'includeAllSlots':!0x0});_0x290ba2=Array['from'](_0x3383ef)['map'](_0x342a72=>_0x342a72['cell']);}_0x5c0f60['model']['change'](_0x25697a=>{_0xdd9b10['markBlockFormat'](_0x25697a['createRangeOn'](_0x2331d3),{'commandName':_0xcf55fc,'commandParams':[]},_0x290ba2,_0xcf55fc);});});}_0xdd9b10['descriptionFactory']['registerDescriptionCallback'](_0x2c6232=>{if('formatBlock'!=_0x2c6232['type']&&'formatInline'!=_0x2c6232['type'])return;const {data:_0x7d6578}=_0x2c6232;return _0x7d6578&&'mergeTableCells'==_0x7d6578['commandName']?{'type':'format','content':o(_0x2d0d68,'*Merge\x20cells*')}:void 0x0;}),_0xdd9b10['descriptionFactory']['registerDescriptionCallback'](_0x18e52c=>{if('formatBlock'!=_0x18e52c['type']&&'formatInline'!=_0x18e52c['type'])return;const {data:_0x47abc2}=_0x18e52c;return _0x47abc2?'splitTableCellVertically'==_0x47abc2['commandName']?{'type':'format','content':o(_0x2d0d68,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x47abc2['commandName']?{'type':'format','content':o(_0x2d0d68,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1330aa=_0x56c367['_acceptFormatSuggestionCallbackFactory']();for(const _0x48c5e9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xdd9b10['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x48c5e9,'accept',_0x1330aa);for(const _0x2b3694 of['splitTableCellVertically','splitTableCellHorizontally'])_0xdd9b10['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b3694,'accept',_0x1330aa);_0xdd9b10['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x22c54c=>{_0x5c0f60['model']['change'](_0x7e6067=>{const _0x6b9083=Array['from'](_0x557936['getRanges']())['map'](_0x2aff00=>_0x481a5c['fromRange'](_0x2aff00));_0x7e6067['setSelection'](_0x22c54c),_0x5c0f60['commands']['get']('mergeTableCells')['refresh'](),_0x5c0f60['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4ffb2e=_0x6b9083['filter'](_0x36b9fa=>'$graveyard'!=_0x36b9fa['root']['rootName']);_0x4ffb2e['length']>0x0&&_0x7e6067['setSelection'](_0x4ffb2e);for(const _0x54a66f of _0x6b9083)_0x54a66f['detach']();});});for(const _0x4a573f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x25c07b=_0x5c0f60['commands']['get'](_0x4a573f);_0x25c07b['on']('set:isEnabled',(_0x1e4c73,_0x49919f,_0x429231)=>{if(_0x429231){const _0xeea234=_0x5c0f60['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3dccad=>_0x3dccad['is']('element','tableCell'));this['_areMergableCells'](_0x25c07b['value'],_0xeea234)||(_0x1e4c73['return']=!0x1,_0x1e4c73['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2919da=this['editor']['commands']['get']('mergeTableCells'),_0x34eb6d=this['editor']['plugins']['get']('TableUtils');if(!_0x2919da['isEnabled'])return!0x1;const _0x5a1070=_0x34eb6d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4fd1eb of _0x5a1070)for(const _0x5e7b48 of _0x5a1070)if(_0x4fd1eb!=_0x5e7b48&&!this['_areMergableCells'](_0x4fd1eb,_0x5e7b48))return!0x1;return!0x0;}['_areMergableCells'](_0x57e0a6,_0x42fc54){const _0x46ee89=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1461ee=this['editor']['model']['createRangeOn'](_0x57e0a6),_0x3fa818=this['editor']['model']['createRangeOn'](_0x42fc54),_0x15b656=new Set(),_0x3f2310=new Set();for(const _0xbf9272 of _0x46ee89['getSuggestions']())if(('insertion'==_0xbf9272['type']||'deletion'==_0xbf9272['type']||'mergeTableCells'==_0xbf9272['subType'])&&_0xbf9272['isInContent']){for(const _0xb2e8a8 of _0xbf9272['getRanges']())_0xb2e8a8['containsRange'](_0x1461ee,!0x0)&&_0x15b656['add'](_0xbf9272['type']+':'+_0xbf9272['author']['id']),_0xb2e8a8['containsRange'](_0x3fa818,!0x0)&&_0x3f2310['add'](_0xbf9272['type']+':'+_0xbf9272['author']['id']);}if(_0x15b656['size']!=_0x3f2310['size'])return!0x1;for(const _0x116e40 of _0x15b656)if(!_0x3f2310['has'](_0x116e40))return!0x1;return!0x0;}}class vt extends _0x959a6f{static get['requires'](){return[Nt];}['afterInit'](){const _0xcc2250=this['editor'];if(!_0xcc2250['plugins']['has']('TableEditing'))return;const _0x2e8a33=_0xcc2250['locale'],_0x20afb9=_0xcc2250['plugins']['get']('TrackChangesEditing');_0x20afb9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x20afb9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x20afb9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2e8a33,'FORMAT_HEADER_ROW')),_0x20afb9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2e8a33,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4909ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36a594=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x4909ea['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36a594),_0x4909ea['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36a594),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x29710=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31992a=this['editor']['plugins']['get']('TableUtils');function _0x547cf3({showActiveMarker:_0x203b82=!0x0,setDataAttribute:_0x9d5d13=!0x0}={}){return(_0x4597c8,_0x1643b2,_0x5c2100)=>{const {type:_0x2a4438,id:_0x37a783}=_0x29710['_splitMarkerName'](_0x1643b2['markerName']);if(!_0x29710['hasSuggestion'](_0x37a783))return;const _0x1b447b=_0x29710['getSuggestion'](_0x37a783),_0x550ec6=_0x1b447b['data'];if('formatBlock'!=_0x1b447b['type']||!_0x550ec6||'setTableColumnHeader'!=_0x550ec6['commandName'])return;if(_0x1643b2['item'])return void _0x4597c8['stop']();if(!_0x5c2100['consumable']['consume'](_0x1643b2['markerRange'],_0x4597c8['name']))return;const _0x5cd6ac=_0x1643b2['markerRange']['start']['nodeAfter'],_0x2c25d4=_0x1643b2['markerRange']['end']['nodeBefore'],_0x51477d=_0x5cd6ac['parent']['parent'],{column:_0x4b3204}=_0x31992a['getCellLocation'](_0x5cd6ac),{column:_0x42c821}=_0x31992a['getCellLocation'](_0x2c25d4);for(let _0xfe7e34=_0x4b3204;_0xfe7e34<=_0x42c821;_0xfe7e34++){const _0x33b0e0=_0x31992a['createTableWalker'](_0x51477d,{'column':_0xfe7e34,'includeAllSlots':!0x1});for(const _0xb880b of _0x33b0e0){const _0x5bfe85=_0xb880b['cell'],_0x35ab6a=_0x5c2100['mapper']['toViewElement'](_0x5bfe85);_0x5c2100['writer']['addClass']('ck-suggestion-marker-'+_0x2a4438,_0x35ab6a),_0x9d5d13&&_0x5c2100['writer']['setAttribute']('data-suggestion',_0x37a783,_0x35ab6a),_0x5c2100['mapper']['bindElementToMarker'](_0x35ab6a,_0x1643b2['markerName']),_0x203b82&&(_0x29710['activeMarkers']['includes'](_0x1643b2['markerName'])?_0x5c2100['writer']['addClass']('ck-suggestion-marker--active',_0x35ab6a):_0x5c2100['writer']['removeClass']('ck-suggestion-marker--active',_0x35ab6a));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x547cf3(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x47f7e8,_0x2cc466,_0x42004c)=>{_0x42004c['options']['showSuggestionHighlights']&&_0x547cf3({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x47f7e8,_0x2cc466,_0x42004c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x42884b,_0x4cbaf1,_0x401953)=>{const {type:_0x43565a,id:_0x28b068}=_0x29710['_splitMarkerName'](_0x4cbaf1['markerName']);if(!_0x29710['hasSuggestion'](_0x28b068))return;const _0x43e8e1=_0x29710['getSuggestion'](_0x28b068),_0x4699d3=_0x43e8e1['data'];if('formatBlock'!=_0x43e8e1['type']||!_0x4699d3||'setTableColumnHeader'!=_0x4699d3['commandName'])return;const _0x534866=_0x401953['mapper']['markerNameToElements'](_0x4cbaf1['markerName']);if(_0x534866){for(const _0x4e96ed of _0x534866)_0x401953['writer']['removeClass']('ck-suggestion-marker-'+_0x43565a,_0x4e96ed),_0x401953['writer']['removeClass']('ck-suggestion-marker--active',_0x4e96ed),_0x401953['writer']['removeAttribute']('data-suggestion',_0x4e96ed),_0x401953['mapper']['unbindElementFromMarkerName'](_0x4e96ed,_0x4cbaf1['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x39d782=this['editor'],_0x5813a3=_0x39d782['locale'];function _0x52ab70(_0x593450){return{'type':'format','content':o(_0x5813a3,'*Format:*\x20%0',_0x593450)};}_0x39d782['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cb841=>{if('formatBlock'!=_0x1cb841['type'])return;const {data:_0x3f9623}=_0x1cb841;if(_0x3f9623){if('setTableRowHeader'==_0x3f9623['commandName']){const _0x243190=_0x3f9623['commandParams'][0x0]['forceValue'];return _0x52ab70(o(_0x5813a3,_0x243190?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3f9623['commandName']){const _0x4595db=_0x3f9623['commandParams'][0x0]['forceValue'];return _0x52ab70(o(_0x5813a3,_0x4595db?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x959a6f{['afterInit'](){const _0x4862c8=this['editor'],_0x1033c9=_0x4862c8['locale'],_0x367b20=_0x4862c8['plugins']['get']('TrackChangesEditing');function _0x59e230(_0x1ca46e){return{'type':'format','content':''+o(_0x1033c9,'*Set\x20table\x20type:*\x20%0',_0x1ca46e)};}_0x4862c8['plugins']['has']('TableLayout')&&(_0x367b20['enableCommand']('insertTableLayout'),_0x367b20['enableDefaultAttributesIntegration']('tableType'),_0x367b20['descriptionFactory']['registerElementLabel'](_0x26901c=>_0x26901c['is']('element','table')&&'layout'===_0x26901c['getAttribute']('tableType'),_0x1bd15b=>o(_0x1033c9,'ELEMENT_LAYOUT_TABLE',_0x1bd15b)),_0x367b20['descriptionFactory']['registerDescriptionCallback'](_0x397d89=>{const {data:_0x15bd1e}=_0x397d89;if(_0x15bd1e&&'tableType'==_0x15bd1e['key'])switch(_0x15bd1e['newValue']){case'layout':return _0x59e230(o(_0x1033c9,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x59e230(o(_0x1033c9,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x4de3bf=>[_0x4de3bf,null]));class Bt extends _0x959a6f{static get['requires'](){return[Nt];}['afterInit'](){const _0x417a06=this['editor'];if(!_0x417a06['plugins']['has']('TableClipboard'))return;const _0x1bbac3=_0x417a06['plugins']['get']('TrackChangesEditing'),_0x51b76f=_0x417a06['plugins']['get']('TableUtils'),_0x1889cd=_0x417a06['plugins']['get'](Nt),_0x5530f7=_0x417a06['plugins']['get']('TableClipboard'),_0x531d5a=_0x417a06['plugins']['get']('TableSelection'),_0x4a7e88=_0x417a06['plugins']['get'](_0x40b474);_0x1889cd['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x417a06['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x417a06['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x42f761=null,_0x45d5e8=!0x1;_0x4a7e88['on']('contentInsertion',(_0x522e45,_0x22ba2f)=>{_0x45d5e8='paste'===_0x22ba2f['method'];}),_0x417a06['model']['on']('insertContent',(_0x45fd10,_0x4edf80)=>{if(!_0x45d5e8&&null===_0x531d5a['getSelectedTableCells']())return;const [_0xc30473,_0x324138]=_0x4edf80,_0x303dc8=_0x4edf80[_0x4edf80['length']-0x1];_0x303dc8&&_0x303dc8['forceDefaultExecution']||_0x1bbac3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5a240e,_0xe61419,_0x3084a5,_0x27ce20,_0x57a9ea){if(_0xe61419&&!_0xe61419['is']('documentSelection'))return!0x1;const _0x398e99=_0x57a9ea['getTableIfOnlyTableInContent'](_0x5a240e,_0x3084a5);if(!_0x398e99||!Oe(_0x398e99,void 0x0,_0x27ce20))return!0x1;const _0x5d5dd1=_0x27ce20['getSelectionAffectedTableCells'](_0x3084a5['document']['selection']);if(!_0x5d5dd1['length'])return!0x1;const _0x1061c4=_0x5d5dd1[0x0]['findAncestor']('table'),_0x3923af=_0x27ce20['getRowIndexes'](_0x5d5dd1),_0x37f339=_0x27ce20['getColumnIndexes'](_0x5d5dd1),_0x4693ce={'startRow':_0x3923af['first'],'endRow':_0x3923af['last'],'startColumn':_0x37f339['first'],'endColumn':_0x37f339['last']};return 0x1==_0x5d5dd1['length']&&(_0x4693ce['endRow']+=_0x27ce20['getRows'](_0x398e99)-0x1,_0x4693ce['endColumn']+=_0x27ce20['getColumns'](_0x398e99)-0x1),Oe(_0x1061c4,_0x4693ce,_0x27ce20);}(_0xc30473,_0x324138,_0x417a06['model'],_0x51b76f,_0x5530f7)&&(_0x45fd10['stop'](),_0x42f761={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x417a06['model']['change'](()=>{_0x417a06['model']['insertContent'](_0x4edf80[0x0],_0x4edf80[0x1],_0x4edf80[0x2],{'forceDefaultExecution':!0x0});const _0x4494ef=_0x257abf(),{rowInsertionRanges:_0x281a2d,columnInsertionRanges:_0x5138b7,insertionRanges:_0x1e96dd,deletionRanges:_0x43b371,cells:_0x5d54a6}=_0x42f761;_0x281a2d['length']&&_0x1bbac3['markMultiRangeInsertion'](_0x281a2d,'tablePasteRow',{'tablePasteChainId':_0x4494ef}),_0x5138b7['length']&&_0x1bbac3['markMultiRangeInsertion'](_0x5138b7,'tablePasteColumn',{'tablePasteChainId':_0x4494ef}),_0x1e96dd['length']&&(_0x1bbac3['markMultiRangeInsertion'](_0x1e96dd,'tablePaste',{'tablePasteChainId':_0x4494ef,'skipNestingCheck':!0x0}),_0x1e96dd['forEach'](_0x3ff99f=>_0x3ff99f['detach']?.())),_0x43b371['length']&&(_0x1bbac3['markMultiRangeDeletion'](_0x43b371,'tablePaste',{'tablePasteChainId':_0x4494ef,'skipNestingCheck':!0x0}),_0x43b371['forEach'](_0x335300=>_0x335300['detach']?.()));const _0x4127b2=_0x1bbac3['markMultiRangeBlockFormat'](_0x5d54a6['map'](({element:_0x41471d})=>_0x41471d),{'formatGroupId':_0x257abf()},[],'tablePasteCell',{'tablePasteChainId':_0x4494ef});if(_0x4127b2){const _0x22d56b=_0x4127b2['getMarkers'](),_0x29c455=[];for(const {element:_0x4ab29f,attributes:_0x4d4e30}of _0x5d54a6){if(!_0x4d4e30)continue;const _0x30856d=_0x417a06['model']['createRangeOn'](_0x4ab29f),_0x295231=_0x22d56b['find'](_0x42b3c2=>_0x42b3c2['getRange']()['isEqual'](_0x30856d));_0x295231&&_0x29c455['push']([_0x295231['name'],_0x4d4e30]);}_0x29c455['length']&&_0x4127b2['setAttribute']('markerAttributes',Object['fromEntries'](_0x29c455));}_0x42f761=null;}));},{'priority':_0x1d470f['high']+0xa}),_0x4a7e88['on']('contentInsertion',()=>{_0x45d5e8=!0x1;},{'priority':'lowest'}),_0x417a06['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4b5a1d,_0x732ed2)=>{const [_0x2a727b,_0x3d8131,,_0x4b2516]=_0x732ed2;if(!_0x42f761)return;_0x4b5a1d['stop']();const _0x35d0db=_0x2a727b['cell'],_0x7651d=_0x3d8131,_0xc36cfa=Be(_0x35d0db),_0x2f1b3e=Be(_0x7651d);_0x4b5a1d['return']=_0x35d0db;let _0x1f5186=null,_0x50e003=null;if(_0x2f1b3e||_0xc36cfa){if(_0xc36cfa&&!_0x2f1b3e){_0x4b2516['remove'](_0x35d0db['getChild'](0x0));for(const _0x2f4c30 of Array['from'](_0x7651d['getChildren']()))_0x4b2516['insert'](_0x2f4c30,_0x35d0db,'end');const _0x4e6369=_0x42f761['rowInsertionIndexes']['includes'](_0x2a727b['row']),_0x313118=_0x42f761['columnInsertionIndexes']['includes'](_0x2a727b['column']);_0x4e6369||_0x313118||(_0x1f5186=_0x481a5c['fromRange'](_0x4b2516['createRangeIn'](_0x35d0db)));}else _0x2f1b3e&&!_0xc36cfa&&(_0x50e003=_0x4b2516['createRangeIn'](_0x35d0db));}else{const _0x2f089c=_0x4b2516['createElement']('tableCellSuggestion'),_0x27622c=_0x4b2516['createElement']('tableCellSuggestion');_0x4b2516['wrap'](_0x4b2516['createRangeIn'](_0x35d0db),_0x27622c),_0x4b2516['insert'](_0x2f089c,_0x35d0db,0x0);for(const _0x39c141 of Array['from'](_0x7651d['getChildren']()))_0x4b2516['insert'](_0x39c141,_0x2f089c,'end');_0x1f5186=_0x481a5c['fromRange'](_0x4b2516['createRangeOn'](_0x2f089c)),_0x50e003=_0x481a5c['fromRange'](_0x4b2516['createRangeOn'](_0x27622c));}const _0x438780=Array['from'](_0x7651d['getAttributes']())['filter'](([_0x2208dc])=>Re['includes'](_0x2208dc));_0x42f761['cells']['push']({'element':_0x35d0db,'attributes':_0x438780['length']?Object['fromEntries'](_0x438780):null}),_0x1f5186&&_0x42f761['insertionRanges']['push'](_0x1f5186),_0x50e003&&_0x42f761['deletionRanges']['push'](_0x50e003);},{'priority':'high'}),_0x51b76f['on']('insertColumns',(_0x2bf956,_0x2fd13b)=>{const [_0x5aba7f,_0x316929={}]=_0x2fd13b;if(!_0x42f761)return;const _0x3cf6e6=_0x316929['at']||0x0,_0x12b237=_0x316929['columns']||0x1;_0x42f761['columnInsertionIndexes']=new Array(_0x12b237)['fill'](_0x3cf6e6)['map']((_0x4fe3c4,_0x17af45)=>_0x4fe3c4+_0x17af45);for(const {cell:_0x5d26cf}of _0x51b76f['createTableWalker'](_0x5aba7f,{'startColumn':_0x3cf6e6,'endColumn':_0x3cf6e6+_0x12b237-0x1}))_0x42f761['columnInsertionRanges']['push'](_0x417a06['model']['createRangeOn'](_0x5d26cf));},{'priority':'low'}),_0x51b76f['on']('insertRows',(_0x433a7b,_0x5259ca)=>{const [_0x388082,_0x17a54c={}]=_0x5259ca;if(!_0x42f761)return;const _0x245b2a=_0x17a54c['at']||0x0,_0x2003c5=_0x17a54c['rows']||0x1;_0x42f761['rowInsertionIndexes']=new Array(_0x2003c5)['fill'](_0x245b2a)['map']((_0x37a354,_0x300637)=>_0x37a354+_0x300637);for(const {cell:_0x142339}of _0x51b76f['createTableWalker'](_0x388082,{'startRow':_0x245b2a,'endRow':_0x245b2a+_0x2003c5-0x1}))_0x42f761['rowInsertionRanges']['push'](_0x417a06['model']['createRangeOn'](_0x142339));},{'priority':'low'}),_0x1bbac3['descriptionFactory']['registerDescriptionCallback'](_0x51dc8e=>{if(_0x51dc8e['subType']&&_0x51dc8e['subType']['startsWith']('tablePaste'))return _0x51dc8e['previous']?{}:{'type':'insertion','content':o(_0x417a06['locale'],'*Replace\x20table\x20cells*')};});const _0x22ab24=()=>!0x1;for(const _0xca0bd4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1bbac3['_suggestionFactory']['registerCustomCallback']('insertion',_0xca0bd4,'join',_0x22ab24),_0x1bbac3['_suggestionFactory']['registerCustomCallback']('deletion',_0xca0bd4,'join',_0x22ab24),_0x1bbac3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xca0bd4,'join',_0x22ab24);_0x1bbac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x22ab24),_0x1bbac3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x267a1e,_0x1fef71,_0x248c43)=>{const _0x56136c=_0x267a1e['map'](_0x34ca02=>_0x34ca02['getContainedElement']())['filter'](_0x3e2442=>_0x3e2442),_0x29ee3d=new Map(_0x56136c['map'](_0x34ac76=>[_0x34ac76,null]));if(_0x42f761){for(const {element:_0x50236a,attributes:_0x32e970}of _0x42f761['cells'])_0x32e970&&_0x29ee3d['set'](_0x50236a,_0x32e970);}else{if(_0x248c43&&_0x248c43['markerAttributes'])for(const [_0x47cf65,_0x5310d3]of Object['entries'](_0x248c43['markerAttributes'])){const _0x28e740=_0x417a06['model']['markers']['get'](_0x47cf65),_0x5074a9=_0x28e740?_0x28e740['getRange']()['getContainedElement']():null;_0x5074a9&&_0x29ee3d['set'](_0x5074a9,_0x5310d3);}}_0x417a06['model']['change'](_0x2c7d31=>{for(const [_0x49f38b,_0x3f5fd7]of _0x29ee3d)_0x2c7d31['setAttributes']({...Ae,..._0x3f5fd7},_0x49f38b);});});const _0x4f63b3=(_0x4f1cbb,_0x1a5439)=>{_0x1bbac3['_suggestionFactory']['registerCustomCallback'](_0x4f1cbb,'tablePaste',_0x1a5439,(_0x2fd951,_0x555365,_0x5e6c96)=>{_0x417a06['model']['change'](_0x2e9d37=>{const _0x51fa80=[];for(const _0x13686c of _0x2fd951){const _0x5684e0=_0x13686c['start']['nodeAfter'];_0x5684e0['is']('element','tableCellSuggestion')&&_0x51fa80['push'](_0x5684e0);}_0x1bbac3['_suggestionFactory']['getSuggestionCallback'](_0x4f1cbb,null,_0x1a5439)(_0x2fd951,_0x555365,_0x5e6c96);for(const _0xea1e6d of _0x51fa80)'$graveyard'!=_0xea1e6d['root']['rootName']&&_0x2e9d37['unwrap'](_0xea1e6d);});});};_0x4f63b3('insertion','accept'),_0x4f63b3('insertion','discard'),_0x4f63b3('deletion','accept'),_0x4f63b3('deletion','discard'),_0x1bbac3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x303cf9=>{const _0x244f8a=_0x303cf9['map'](_0x2ac0d7=>_0x2ac0d7['getContainedElement']()),_0x15d4c9=_0x244f8a[0x0]['findAncestor']('table'),{minRow:_0x3eaab1,maxRow:_0x20cab9}=_0x1889cd['_getCoordsForCells'](_0x244f8a);_0x51b76f['removeRows'](_0x15d4c9,{'at':_0x3eaab1,'rows':_0x20cab9-_0x3eaab1+0x1});}),_0x1bbac3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4f1da6=>{const _0x3e54a5=_0x4f1da6['map'](_0x1e95b4=>_0x1e95b4['getContainedElement']()),_0xd914a9=_0x3e54a5[0x0]['findAncestor']('table'),{minColumn:_0x25ccde,maxColumn:_0x1a6547}=_0x1889cd['_getCoordsForCells'](_0x3e54a5);_0x51b76f['removeColumns'](_0xd914a9,{'at':_0x25ccde,'columns':_0x1a6547-_0x25ccde+0x1});});const _0xbd5420=(_0x1cf0fc,_0x491c79)=>{if(!_0x491c79['subType']||!_0x491c79['subType']['startsWith']('tablePaste'))return;const _0xcbb92e=_0x491c79['attributes']['tablePasteChainId'],_0x17443f=_0x1bbac3['getSuggestions']()['filter'](_0x4467c8=>_0x4467c8['isInContent']&&_0x4467c8['attributes']&&_0x4467c8['attributes']['tablePasteChainId']==_0xcbb92e);_0x17443f['length']&&_0x491c79['getAllAdjacentSuggestions']()['length']!=_0x17443f['length']&&_0x17443f['reduce']((_0x339b7c,_0x3b68a2)=>(_0x339b7c['next']=_0x3b68a2,_0x3b68a2['previous']=_0x339b7c,_0x3b68a2));};function _0xdf1fc6(_0x361e56,_0x27f0e4=!0x0){const {id:_0x1fbde1,authorId:_0x3dfc84}=_0x1bbac3['_splitMarkerName'](_0x361e56['markerName']),_0xccd41=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x130c9f=_0x1bbac3['activeMarkers']['includes'](_0x361e56['markerName']);return _0x130c9f&&_0xccd41['push']('ck-suggestion-marker--active'),{'classes':_0xccd41,'attributes':{'data-suggestion':_0x1fbde1,'data-author-id':_0x3dfc84},'priority':_0x130c9f&&_0x27f0e4?0xbc2:0xbb8};}_0x1bbac3['on']('suggestionLoaded',_0xbd5420,{'priority':'high'}),_0x1bbac3['on']('suggestionUnloaded',_0xbd5420,{'priority':'high'}),_0x417a06['model']['document']['registerPostFixer'](()=>{let _0x2d3e3d=!0x1;const _0x1a2cc5=Array['from'](_0x417a06['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x304de3,data:_0x7cb78a}of _0x1a2cc5){const {group:_0x16f4e4,type:_0x53bf9b,id:_0x5a072e}=_0x1bbac3['_splitMarkerName'](_0x304de3);if('suggestion'!=_0x16f4e4||'deletion'!=_0x53bf9b||_0x7cb78a['oldRange'])continue;if(!_0x1bbac3['hasSuggestion'](_0x5a072e))continue;const _0xfd0904=_0x1bbac3['getSuggestion'](_0x5a072e)['getRanges'](),_0x567a19=_0x417a06['plugins']['get']('Users')['me'];for(const _0x2eb34d of _0x1bbac3['getSuggestions']()){if(!_0x2eb34d['isInContent']||_0x2eb34d['author']!=_0x567a19)continue;if('formatBlock'!=_0x2eb34d['type']||'tablePasteCell'!=_0x2eb34d['subType'])continue;if(_0x2eb34d['getRanges']()['every'](_0x4502fc=>_0xfd0904['some'](_0x3acd4d=>_0x3acd4d['containsRange'](_0x4502fc,!0x0)))){for(const _0x7af2f3 of _0x2eb34d['getAllAdjacentSuggestions']())_0x7af2f3['isInContent']&&(_0x7af2f3['discard'](),_0x2d3e3d=!0x0);}}}return _0x2d3e3d;}),_0x417a06['model']['document']['registerPostFixer'](_0x44fca4=>{const _0x575ed4=_0x417a06['commands']['get']('redo');if(!_0x575ed4||!_0x575ed4['_createdBatches']['has'](_0x44fca4['batch']))return!0x1;let _0x46a378=!0x1;const _0x5e2642=_0x417a06['plugins']['get']('Users')['me'],_0x455019=_0x417a06['model']['document']['differ']['getChanges'](),_0xc8838d=Array['from'](_0x417a06['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1f6d99,data:_0x2b6268})=>{const {group:_0x28d0eb,subType:_0x39399b,authorId:_0x1f3b2d}=_0x1bbac3['_splitMarkerName'](_0x1f6d99);return'suggestion'==_0x28d0eb&&'tablePaste'==_0x39399b&&_0x1f3b2d==_0x5e2642['id']&&!_0x2b6268['oldRange'];});for(const _0x2ba4eb of _0x455019){if('insert'!=_0x2ba4eb['type']||'tableCellSuggestion'!=_0x2ba4eb['name']||0x1!=_0x2ba4eb['length'])continue;const _0x16aee0=_0x44fca4['createRange'](_0x2ba4eb['position'],_0x2ba4eb['position']['getShiftedBy'](0x1));if(!_0xc8838d['find'](({data:_0x16ccc1})=>_0x16ccc1['newRange']['isEqual'](_0x16aee0))){for(const {name:_0x38bebe,data:_0x4841a3}of _0xc8838d)if(_0x16aee0['containsRange'](_0x4841a3['newRange'])){_0x44fca4['updateMarker'](_0x38bebe,{'range':_0x16aee0}),_0x46a378=!0x0;break;}}}return _0x46a378;}),_0x417a06['model']['document']['registerPostFixer'](_0x1e9fc6=>{let _0x23ed64=!0x1;const _0x5bae96=_0x417a06['plugins']['get']('Users')['me'],_0x23094e=_0x1bbac3['getSuggestions']()['filter'](_0x382fa4=>_0x382fa4['isInContent']&&_0x382fa4['author']==_0x5bae96),_0x5afbae=new Set(),_0x47ba90=new Set();for(const _0x154836 of _0x23094e)if('tablePaste'==_0x154836['subType'])for(const _0x3ba125 of _0x154836['getMarkers']()){const _0xc3eb54=_0x3ba125['getRange']()['getContainedElement']();if(_0xc3eb54){if(_0xc3eb54['is']('element','tableCellSuggestion')&&Be(_0xc3eb54)){_0x154836['removeMarker'](_0x3ba125['name']),_0x5afbae['add'](_0xc3eb54),_0x23ed64=!0x0;const _0x2b1ddf=_0xc3eb54['nextSibling'],_0x18b0da=_0xc3eb54['previousSibling'],_0x306379=_0x2b1ddf&&_0x2b1ddf['is']('element','tableCellSuggestion'),_0x3c2d49=_0x18b0da&&_0x18b0da['is']('element','tableCellSuggestion');_0x306379&&!_0x5afbae['has'](_0x2b1ddf)&&_0x47ba90['add'](_0x2b1ddf),_0x3c2d49&&!_0x5afbae['has'](_0x18b0da)&&_0x47ba90['add'](_0x18b0da);}else _0xc3eb54['is']('element','paragraph')&&_0xc3eb54['isEmpty']&&(_0x154836['removeMarker'](_0x3ba125['name']),_0x23ed64=!0x0);}}else{if('tablePasteCell'==_0x154836['subType']){if(!_0x154836['attributes']||!_0x154836['attributes']['tablePasteChainId'])continue;const _0xa9788f=_0x154836['attributes']['markerAttributes'];if(_0xa9788f&&Object['keys'](_0xa9788f)['length'])continue;const _0xcabb78=_0x154836['attributes']['tablePasteChainId'];let _0x1fbede=!0x0,_0x270b3c=!0x0;for(const _0x7febdd of _0x23094e)if(_0x7febdd['subType']&&_0x7febdd['subType']['startsWith']('tablePaste')){if(!_0x7febdd['attributes']['tablePasteChainId']){_0x270b3c=!0x1;break;}if(_0x7febdd['id']!=_0x154836['id']&&_0x7febdd['attributes']['tablePasteChainId']==_0xcabb78){_0x1fbede=!0x1;break;}}_0x270b3c&&_0x1fbede&&(_0x154836['removeMarkers'](),_0x23ed64=!0x0);}}for(const _0x5c35a4 of _0x5afbae)_0x1e9fc6['remove'](_0x5c35a4);for(const _0x4a734d of _0x47ba90)_0x1e9fc6['unwrap'](_0x4a734d);return _0x23ed64;}),_0x417a06['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xcdddde=>_0xdf1fc6(_0xcdddde),'converterPriority':'high'}),_0x417a06['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3ff62e,_0x214d2c)=>_0x214d2c['options']['showSuggestionHighlights']?_0xdf1fc6(_0x3ff62e,!0x1):null,'converterPriority':'high'});const _0x3f1b05=_0x417a06['editing']['view'];this['listenTo'](_0x3f1b05['document'],'clipboardOutput',(_0x67a98d,_0x5779d7)=>{const _0x4507e8=[];for(const _0x4f14ff of _0x3f1b05['createRangeIn'](_0x5779d7['content'])['getItems']())_0x4f14ff['is']('element','suggestion-td')&&_0x4507e8['push'](_0x4f14ff);_0x3f1b05['change'](_0x540e46=>{for(const _0x49dcc4 of _0x4507e8)_0x540e46['move'](_0x540e46['createRangeIn'](_0x49dcc4),_0x540e46['createPositionBefore'](_0x49dcc4)),_0x540e46['remove'](_0x49dcc4);});});}}function Be(_0x11e3b7){if(_0x11e3b7['isEmpty'])return!0x0;const _0x28d256=_0x11e3b7['getChild'](0x0);return _0x28d256['is']('element','paragraph')&&_0x28d256['isEmpty'];}function Oe(_0x41c726,_0xc8af00={},_0x393a3a){for(const {isAnchor:_0x5c12d8,cellHeight:_0x1575f7,cellWidth:_0x407c55}of _0x393a3a['createTableWalker'](_0x41c726,{'includeAllSlots':!0x0,..._0xc8af00}))if(!_0x5c12d8||0x1!=_0x1575f7||0x1!=_0x407c55)return!0x1;return!0x0;}class Ot extends _0x959a6f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1badeb=this['editor']['plugins']['get']('TrackChangesEditing');_0x1badeb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1badeb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1badeb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1badeb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1badeb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1badeb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x555a4e,_0x5c9d9c){const _0x1ed891=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f02e9=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x130fbc=_0x5c9d9c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7c85d4=_0x2f02e9['getColumnGroupElement'](_0x130fbc);let _0x55e224=_0x7c85d4?_0x2f02e9['getTableColumnsWidths'](_0x7c85d4):null,_0x11da71=_0x130fbc['getAttribute']('tableWidth')||null;const _0x167e16=_0x5c9d9c['tableWidth']||_0x11da71,_0x78e128=_0x5c9d9c['columnWidths']||_0x55e224,_0x43d8cb=this['editor']['plugins']['get']('Users')['me'];for(const _0x14cdc4 of _0x1ed891['getSuggestions']()){const _0x108af0=_0x14cdc4['getContainedElement']();if('resizeTable'===_0x14cdc4['subType']&&_0x108af0===_0x130fbc){_0x14cdc4['author']!==_0x43d8cb&&_0x14cdc4['discard']();const _0x270cba=_0x14cdc4['data']['commandParams'];_0x11da71=_0x270cba[0x0]['tableWidth'],_0x55e224=_0x270cba[0x0]['columnWidths'];break;}}_0x555a4e({'table':_0x130fbc,'tableWidth':_0x167e16,'columnWidths':_0x78e128}),_0x1ed891['markBlockFormat'](_0x130fbc,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x11da71,'columnWidths':_0x55e224}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x56f258){if('formatBlock'!=_0x56f258['type']&&'formatInline'!=_0x56f258['type'])return;const {data:_0x28248d}=_0x56f258;if(_0x28248d&&'resizeTable'===_0x28248d['formatGroupId']){const _0xbe5907='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xbe5907)};}}}class xt extends _0x959a6f{['afterInit'](){const _0xafe590=this['editor'];_0xafe590['plugins']['has']('Template')&&_0xafe590['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x959a6f{['afterInit'](){const _0xb7d765=this['editor'];if(!_0xb7d765['commands']['get']('insertTableOfContents'))return;_0xb7d765['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x31b728=_0xb7d765['plugins']['get']('TrackChangesEditing'),_0x1aa771=_0xb7d765['locale'];_0x31b728['descriptionFactory']['registerElementLabel']('tableOfContents',_0x19be43=>o(_0x1aa771,'ELEMENT_TABLE_OF_CONTENTS',_0x19be43));}}class Rt extends _0x959a6f{['afterInit'](){const _0x306c52=this['editor'];if(!_0x306c52['plugins']['has']('Title'))return;const _0x32bdc9=_0x306c52['plugins']['get']('TrackChangesEditing');_0x32bdc9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x306c52['locale'],'ELEMENT_TITLE')),_0x306c52['model']['document']['registerPostFixer'](_0x2226a4=>{let _0x1e7b5c=!0x1;const _0x2f9a3c=Array['from'](_0x306c52['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2657e3,data:_0x9a801c}of _0x2f9a3c){const {group:_0x17090a}=_0x32bdc9['_splitMarkerName'](_0x2657e3);if('suggestion'!==_0x17090a||!_0x9a801c['newRange'])continue;const _0x4716c3=_0x9a801c['newRange'],_0x526dee=_0x4716c3['end']['nodeBefore'];if(!_0x526dee||!_0x526dee['is']('element','title-content'))continue;if(!_0x4716c3['start']['isTouching'](_0x4716c3['end']))continue;const _0x4fac07=_0x306c52['model']['schema']['getNearestSelectionRange'](_0x4716c3['end'],'forward');if(_0x4fac07&&_0x4fac07['isCollapsed']){const _0x1fecff=_0x2226a4['createRange'](_0x4716c3['start'],_0x4fac07['start']);_0x1fecff['isEqual'](_0x4716c3)||(_0x2226a4['updateMarker'](_0x2657e3,{'range':_0x1fecff}),_0x1e7b5c=!0x0);}_0x1e7b5c||(_0x2226a4['removeMarker'](_0x2657e3),_0x1e7b5c=!0x0);}return _0x1e7b5c;});}}class Tt extends _0x959a6f{['afterInit'](){const _0x31aab1=this['editor'],_0x272094=_0x31aab1['plugins']['get']('TrackChangesEditing');_0x31aab1['plugins']['has']('Uploadcare')&&(_0x272094['enableCommand']('uploadcare'),_0x31aab1['plugins']['has']('UploadcareImageEdit')&&(_0x272094['enableCommand']('uploadcareImageEdit'),_0x272094['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x272094['descriptionFactory']['registerDescriptionCallback'](_0x257378=>{if('attribute'!=_0x257378['type'])return;const {data:_0xc0f906}=_0x257378;return _0xc0f906&&'uploadcareImageId'==_0xc0f906['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x959a6f{['afterInit'](){const _0x3bf54c=this['editor'],_0x23ce31=_0x3bf54c['plugins']['get']('TrackChangesEditing');_0x3bf54c['plugins']['has']('UndoEditing')&&(_0x23ce31['enableCommand']('undo'),_0x23ce31['enableCommand']('redo'));}}class Ut extends _0x959a6f{static get['requires'](){return[Nt];}['afterInit'](){const _0x14ff27=this['editor'];if(!_0x14ff27['plugins']['has']('TableCaptionEditing'))return;_0x14ff27['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x959a6f{['tableProperties'];['tableCellProperties'];constructor(_0x5eda21){super(_0x5eda21),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x5eda21['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x554136=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x49379a of this['tableProperties'])_0x554136['enableCommand'](_0x49379a,(_0x1416ec,_0x3cd2ae)=>{const _0x19f655=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x49379a,[_0x19f655],this['tableProperties'],'tableProperties',_0x1416ec,_0x3cd2ae);});_0x554136['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x554136['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x554136['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x476b64,_0x4c9f1d)=>this['handleDiscardAction'](this['tableProperties'],_0x476b64,_0x4c9f1d)),_0x554136['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3336c4 of this['tableCellProperties'])this['editor']['commands']['get'](_0x3336c4)&&_0x554136['enableCommand'](_0x3336c4,(_0x2343f6,_0x510df2)=>{const _0x4f094f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3336c4,_0x4f094f,this['tableCellProperties'],'tableCellProperties',_0x2343f6,_0x510df2);});_0x554136['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x554136['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x554136['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x421bca,_0x2e4399)=>this['handleDiscardAction'](this['tableCellProperties'],_0x421bca,_0x2e4399)),_0x554136['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x554136['registerBlockAttribute']('tableCellType'),_0x554136['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x554136['descriptionFactory']['registerDescriptionCallback'](_0x38a461=>this['handleSuggestionDescription'](_0x38a461)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x5db504,_0x668fb3,_0x416e13,_0x380d87,_0x157f08,_0x316ad2){const _0x3c2c5e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x316ad2['batch'],()=>{for(const _0xde933a of _0x668fb3){if(this['_getSuggestion'](_0xde933a,_0x380d87))_0x157f08(_0x316ad2);else{const _0x1e902b={};for(const _0x28f7ff of _0x416e13){const _0x299605=_0xde933a['getAttribute'](_0x28f7ff);void 0x0!==_0x299605&&(_0x1e902b[_0x28f7ff]=_0x299605);}_0x157f08(_0x316ad2),_0x3c2c5e['markBlockFormat'](_0xde933a,{'commandParams':[_0x1e902b]},[],_0x380d87);}}});}['handleDiscardAction'](_0x2d06a8,_0x35f04c,_0x389adf){const _0x5e8937=_0x35f04c[0x0]['start']['nodeAfter'],_0x72aaed=_0x389adf['commandParams'][0x0];this['editor']['model']['change'](_0x2d6bb0=>{for(const _0x2aa253 of _0x2d06a8)void 0x0!==_0x72aaed[_0x2aa253]?_0x2d6bb0['setAttribute'](_0x2aa253,_0x72aaed[_0x2aa253],_0x5e8937):_0x2d6bb0['removeAttribute'](_0x2aa253,_0x5e8937);});}['handleSuggestionDescription'](_0x13f49b){if(_0x13f49b['data'])switch(_0x13f49b['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'](_0x135806,_0x49634f){const _0x101434=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3ac1ad of _0x101434['getSuggestions']({'skipNotAttached':!0x0})){const _0x4de032=_0x3ac1ad['getContainedElement']();if(_0x3ac1ad['subType']===_0x49634f&&_0x4de032===_0x135806)return _0x3ac1ad;}return null;}['_registerTablePropertiesAttributes'](){const _0x2bb02f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xacbf6c=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x335a66 of _0xacbf6c){const _0x5dc9f5=_0x335a66['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x2bb02f['descriptionFactory']['registerAttributeLabel'](_0x335a66,o(this['editor']['locale'],'FORMAT_'+_0x5dc9f5));}}}class Ft extends _0x959a6f{['afterInit'](){const _0x423d16=this['editor'];if(!_0x423d16['plugins']['has']('LineHeight'))return;const _0x50867d=_0x423d16['plugins']['get']('TrackChangesEditing'),_0x1b5e52=_0x423d16['locale'];_0x50867d['enableDefaultAttributesIntegration']('lineHeight'),_0x50867d['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1b5e52,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x959a6f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x48ca16,_0x3999ed,_0x22a795,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f3583){super(_0x1f3583),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3f5941,_0x2fa3ab,_0x5b09d1,_0x5dc7b3)=>{this['_model']['change'](()=>{for(const _0x4f78da of[..._0x5dc7b3,..._0x5b09d1])this['_model']['markers']['has'](_0x4f78da)&&_0x1f3583['editing']['reconvertMarker'](_0x4f78da);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1f3583['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1f3583['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1f3583['config']['get']('trackChanges.trackFormatChanges'),_0x1f3583['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1f3583['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x1f3583,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x334d06=this['editor'];_0x334d06['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x328e35,{writer:_0x5a547c})=>{let _0x434131='suggestion:'+_0x328e35['getAttribute']('suggestion-type')+':'+_0x328e35['getAttribute']('id');return _0x328e35['getAttribute']('marker-count')&&(_0x434131+=':'+_0x328e35['getAttribute']('marker-count')),_0x5a547c['createElement']('$marker',{'data-name':_0x434131});}}),_0x334d06['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x334d06['model']['document']['registerPostFixer'](_0x3e8a5a=>{let _0x181c6a=!0x1;const _0x3abdc8=Array['from'](_0x334d06['model']['document']['differ']['getChangedMarkers']()),_0x1b3f18=new Set();for(const {name:_0x295cd4,data:_0x5ab2de}of _0x3abdc8){const {group:_0x48240f,type:_0x23700f,subType:_0xd5414f,id:_0x342357}=this['_splitMarkerName'](_0x295cd4);if('suggestion'!==_0x48240f)continue;const _0x41f435=_0xd5414f?'suggestion:'+_0x23700f+':'+_0xd5414f+':'+_0x342357:'suggestion:'+_0x23700f+':'+_0x342357,_0xff0c37=_0x334d06['model']['markers']['getMarkersGroup'](_0x41f435),_0x330e00=_0x334d06['model']['markers']['get'](_0x295cd4),_0xb5d7c9=this['_suggestions']['get'](_0x342357);if(null!=_0x5ab2de['newRange']){'formatInline'==_0x23700f&&(_0x181c6a=_0x181c6a||Wt(_0x5ab2de['newRange'],_0x295cd4,_0x3e8a5a,_0x334d06['model']['schema']));const _0x45260f='attribute'==_0x23700f&&this['_isBlockAttribute'](_0xd5414f['split']('|')[0x0]),_0x59f318='attribute'==_0x23700f&&this['_isInlineAttribute'](_0xd5414f['split']('|')[0x0]);if(_0x5ab2de['newRange']['isCollapsed']||'$graveyard'==_0x5ab2de['newRange']['root']['rootName']||'formatBlock'==_0x23700f&&!Qt(_0x5ab2de['newRange'])||_0x45260f&&!Qt(_0x5ab2de['newRange'])||_0x59f318&&Xt(_0x5ab2de['newRange'])||'deletion'==_0x23700f&&Xt(_0x5ab2de['newRange'])||_0x330e00&&Yt(_0x330e00,_0xff0c37))_0x3e8a5a['removeMarker'](_0x295cd4),_0x181c6a=!0x0;else{if(!_0xb5d7c9||!_0xb5d7c9['isInContent'])continue;if(_0x5ab2de['newRange']&&_0x5ab2de['oldRange']&&_0x5ab2de['newRange']['isEqual'](_0x5ab2de['oldRange']))continue;_0x1b3f18['add'](_0xb5d7c9);}}}return _0x1b3f18['size']>0x0&&(_0x181c6a=!!this['_joinWithAdjacentSuggestions'](_0x1b3f18)||_0x181c6a),_0x181c6a;}),_0x334d06['model']['document']['registerPostFixer'](_0x4a49a8=>{let _0xf62e26=!0x1;for(const _0x1a17ed of _0x334d06['model']['document']['differ']['getChanges']())if('insert'==_0x1a17ed['type'])for(const _0x3b16a4 of this['_suggestions']['values']()){if(_0x3b16a4['isMultiRange']||!_0x3b16a4['isInContent'])continue;const _0x12b23b='formatBlock'==_0x3b16a4['type'],_0xb24a9f=this['_getAttributeKey'](_0x3b16a4),_0x3dedd6=_0xb24a9f&&this['_isBlockAttribute'](_0xb24a9f);if(!_0x12b23b&&!_0x3dedd6)continue;const _0xa38e6f=_0x3b16a4['getFirstRange']();if(_0xa38e6f['start']['parent']!=_0xa38e6f['end']['parent']&&!_0xa38e6f['end']['isAtEnd']){const _0x28e924=_0x334d06['model']['createPositionAt'](_0xa38e6f['start']['nodeAfter'],'end'),_0x46b232=_0x334d06['model']['createRange'](_0xa38e6f['start'],_0x28e924);_0x4a49a8['updateMarker'](_0x3b16a4['getFirstMarker'](),{'range':_0x46b232}),_0xf62e26=!0x0;}}return _0xf62e26;}),_0x334d06['model']['document']['registerPostFixer'](_0x1630d7=>this['_processAttributeChanges'](_0x1630d7)),_0x334d06['model']['document']['registerPostFixer'](_0x101b26=>!_0x101b26['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x101b26)),_0x334d06['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x334d06['model']['document']['on']('change:data',(_0x3e29fb,_0x42bf07)=>{if(!_0x42bf07['isLocal']||_0x42bf07['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x477aa7=_0x334d06['model']['document']['differ']['getChanges']();if(0x0==_0x477aa7['length'])return;const _0x3b1b80=[],_0x351c05=_0x477aa7['filter'](_0x2d9b4c=>'attribute'==_0x2d9b4c['type']),_0x10b564=_0x477aa7['filter'](_0x58f1e4=>'insert'==_0x58f1e4['type']&&'$text'!=_0x58f1e4['name']);for(const _0x152b8c of _0x351c05)this['_isRegisteredAttribute'](_0x152b8c['attributeKey'])&&_0x3b1b80['push']({'key':_0x152b8c['attributeKey'],'newValue':_0x152b8c['attributeNewValue'],'oldValue':_0x152b8c['attributeOldValue'],'range':Zt(_0x152b8c['range'],_0x334d06['model'])});for(const _0x223712 of _0x10b564){if('rename'!=_0x223712['action']&&'refresh'!=_0x223712['action'])continue;const _0x296a16=tn(_0x223712['position']['nodeAfter'],_0x334d06['model']),_0x5a077d=_0x223712['before'];'rename'==_0x223712['action']&&_0x3b1b80['push']({'key':m,'newValue':_0x223712['name'],'oldValue':_0x5a077d['name'],'range':_0x296a16});for(const [_0x4d230d,_0x414224]of _0x5a077d['attributes']){if(!this['_isRegisteredAttribute'](_0x4d230d))continue;const _0x467f47=_0x223712['attributes']['get'](_0x4d230d);_0x414224!==_0x467f47&&_0x3b1b80['push']({'key':_0x4d230d,'newValue':_0x467f47,'oldValue':_0x414224,'range':_0x296a16});}for(const [_0x30641c,_0x47a375]of _0x223712['attributes'])this['_isRegisteredAttribute'](_0x30641c)&&(_0x5a077d['attributes']['has'](_0x30641c)||_0x3b1b80['push']({'key':_0x30641c,'newValue':_0x47a375,'oldValue':null,'range':_0x296a16}));}0x0!=_0x3b1b80['length']&&_0x334d06['model']['enqueueChange'](_0x42bf07,_0x419447=>{const _0x299e94=_0x257abf();for(const {range:_0x5263d5,key:_0x1825ab,oldValue:_0x300127,newValue:_0x1018b1}of _0x3b1b80)this['markAttributeChange'](_0x5263d5,_0x1825ab,_0x300127,_0x1018b1,{'groupId':_0x299e94});this['_reduceExistingSuggestions'](_0x419447,_0x3b1b80);});},{'priority':'lowest'}),_0x334d06['model']['markers']['on']('update:suggestion',(_0xb63cc5,_0x4d5877,_0x1700de)=>{if(null==_0x1700de){const {id:_0x221ddb}=this['_splitMarkerName'](_0x4d5877['name']),_0x5e3644=this['_suggestions']['get'](_0x221ddb);_0x5e3644&&_0x5e3644['addMarkerName'](_0x4d5877['name']);}}),_0x334d06['model']['document']['on']('change:data',()=>{const _0x1f1955=Array['from'](_0x334d06['model']['document']['differ']['getChangedMarkers']())['filter'](_0x30b39f=>'suggestion'===this['_splitMarkerName'](_0x30b39f['name'])['group']);if(0x0===_0x1f1955['length'])return;_0x1f1955['sort']((_0x1180c5,_0x6791b1)=>{const _0x4f8e28=_0x1180c5['data']['oldRange'],_0x50f742=_0x6791b1['data']['oldRange'];return null===_0x4f8e28&&null===_0x50f742?0x0:null===_0x4f8e28&&null!==_0x50f742?-0x1:null!==_0x4f8e28&&null===_0x50f742?0x1:_0x4f8e28['start']['isBefore'](_0x50f742['start'])?-0x1:0x1;});const _0x2b9cb2=new Set(),_0x1500b9=new Set();for(const {name:_0x585f73,data:_0xf6ab68}of _0x1f1955){const {id:_0x3d1b67}=this['_splitMarkerName'](_0x585f73);if(null===_0xf6ab68['oldRange']){const _0x398778=this['_handleNewSuggestionMarker'](_0x585f73);_0x1500b9['add'](_0x398778);}else{const _0x55ce20=this['_suggestions']['get'](_0x3d1b67);null!==_0xf6ab68['newRange']||_0x55ce20['isInContent']?(_0x2b9cb2['add'](_0x55ce20['head']),_0x1500b9['add'](_0x55ce20)):this['_removeSuggestion'](_0x55ce20);}}_0x1500b9['size']>0x0&&this['_refreshSuggestionsChain'](_0x1500b9);for(const _0x2866bb of _0x2b9cb2)this['fire']('suggestionChanged',_0x2866bb);}),_0x334d06['model']['on']('applyOperation',(_0x214179,_0x266a0c)=>{const _0x423ca3=_0x266a0c[0x0];if(!this['_suggestions']['size'])return;if(!_0x423ca3['isDocumentOperation'])return;if(_0x423ca3['batch']['isUndo']||!_0x423ca3['batch']['isLocal'])return;let _0x8ed6eb,_0x496096;switch(_0x423ca3['type']){case'insert':_0x8ed6eb=_0x334d06['model']['createPositionAt'](_0x423ca3['position']),_0x496096=_0x8ed6eb['getShiftedBy'](_0x423ca3['howMany']);break;case'split':_0x8ed6eb=_0x334d06['model']['createPositionAt'](_0x423ca3['splitPosition']),_0x496096=_0x334d06['model']['createPositionAt'](_0x423ca3['moveTargetPosition']);break;case'move':_0x8ed6eb=_0x334d06['model']['createPositionAt'](_0x423ca3['targetPosition']),_0x496096=_0x8ed6eb['getShiftedBy'](_0x423ca3['howMany']);break;default:return;}const _0x30c779=_0x334d06['model']['createRange'](_0x8ed6eb,_0x496096);_0x334d06['model']['change'](()=>{for(const {suggestion:_0x550bad,meta:_0x5519d1}of this['_findSuggestions'](_0x30c779)){if(_0x550bad['isMultiRange'])continue;if('formatInline'==_0x550bad['type'])continue;const _0x304d4a=this['_getAttributeKey'](_0x550bad);if(_0x304d4a&&this['_isBlockAttribute'](_0x304d4a)&&'split'!=_0x423ca3['type'])continue;const _0x376745=_0x550bad['data']&&_0x550bad['data']['multipleBlocks'];('formatBlock'!=_0x550bad['type']||'split'==_0x423ca3['type']&&!_0x376745)&&(_0x5519d1['containsRangeInObject']||'insertion'==_0x550bad['type']&&_0x5519d1['isOwn']||_0x550bad['getFirstRange']()['containsRange'](_0x30c779)&&this['_breakSuggestionMarker'](_0x550bad,_0x8ed6eb,_0x496096));}});},{'priority':'lowest'}),_0x334d06['model']['on']('deleteContent',(_0x22dce1,_0x5c4a7e)=>{const _0x55a88a=_0x5c4a7e[0x0],_0x3d430e=_0x5c4a7e[0x1];if(_0x3d430e&&_0x3d430e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x55a88a['isCollapsed'])return;const _0x33b1b0=_0x334d06['model']['schema'],{start:_0x4077db,end:_0x4a46a1}=_0x55a88a['getFirstRange'](),_0x3c7e1a=_0x4077db['nodeAfter']&&_0x33b1b0['isLimit'](_0x4077db['nodeAfter'])?null:_0x33b1b0['getNearestSelectionRange'](_0x4077db,'forward'),_0x4a29b9=_0x4a46a1['nodeBefore']&&_0x33b1b0['isLimit'](_0x4a46a1['nodeBefore'])?null:_0x33b1b0['getNearestSelectionRange'](_0x4a46a1,'backward'),_0x42d9cd=_0x334d06['model']['createRange'](_0x3c7e1a?_0x3c7e1a['start']:_0x4077db,_0x4a29b9?_0x4a29b9['end']:_0x4a46a1);_0x334d06['model']['change'](_0x3438d3=>{this['markDeletion'](_0x42d9cd);const _0x37d88f=_0x334d06['model']['schema']['getNearestSelectionRange'](_0x42d9cd['start']);_0x55a88a['is']('documentSelection')?_0x3438d3['setSelection'](_0x37d88f):_0x55a88a['setTo'](_0x37d88f);}),_0x22dce1['stop']();},{'priority':_0x1d470f['normal']+0xa}),_0x334d06['model']['on']('insertContent',(_0x4bb2f9,_0x155eb2)=>{const _0xf6a9b2=_0x155eb2[_0x155eb2['length']-0x1];_0xf6a9b2&&_0xf6a9b2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x334d06['model']['change'](()=>{let _0x5a517b=_0x334d06['model']['insertContent'](_0x155eb2[0x0],_0x155eb2[0x1],_0x155eb2[0x2],{'forceDefaultExecution':!0x0});if(!_0x5a517b)return;_0x4bb2f9['return']=_0x5a517b['clone']();const _0x296bb3=_0x5a517b['end']['nodeBefore'],_0x30f30d=_0x334d06['model']['schema'];_0x296bb3&&_0x30f30d['isBlock'](_0x296bb3)&&!_0x30f30d['isObject'](_0x296bb3)&&(_0x5a517b=_0x334d06['model']['createRange'](_0x5a517b['start'],_0x334d06['model']['createPositionAt'](_0x296bb3,'end'))),this['markInsertion'](_0x5a517b);}),_0x4bb2f9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x12e096=new v(_0x334d06,this['_suggestions']);_0x334d06['commands']['add']('acceptSuggestion',_0x12e096),this['enableCommand']('acceptSuggestion');const _0x472dea=new D(_0x334d06,this['_suggestions']);_0x334d06['commands']['add']('discardSuggestion',_0x472dea),this['enableCommand']('discardSuggestion'),_0x334d06['commands']['add']('acceptAllSuggestions',new B(_0x334d06,_0x12e096,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x334d06['commands']['add']('discardAllSuggestions',new B(_0x334d06,_0x472dea,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x334d06['commands']['add']('acceptSelectedSuggestions',new O(_0x334d06,_0x12e096,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x334d06['commands']['add']('discardSelectedSuggestions',new O(_0x334d06,_0x472dea,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1c5c62=_0x334d06['plugins']['get']('CommentsRepository');this['listenTo'](_0x1c5c62,'addComment',(_0x45db0e,{threadId:_0x30a982})=>{const _0x1292c0=this['_suggestions']['get'](_0x30a982);_0x1292c0&&_0x1292c0['commentThread']&&0x1===_0x1292c0['commentThread']['length']&&this['_updateSuggestionData'](_0x30a982,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1c5c62,'removeComment',(_0x4319e0,{threadId:_0x4d2f81})=>{const _0x15f007=this['_suggestions']['get'](_0x4d2f81);_0x15f007&&_0x15f007['commentThread']&&!_0x15f007['commentThread']['length']&&this['_updateSuggestionData'](_0x4d2f81,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x550dfc){const _0x39fc28=_0x3091b0([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x5d054b=0x3d8d0df,_0x45e13c=0x3dfaeb7^_0x5d054b,_0x5ad598=window[_0x3091b0([0x44,0x61,0x74,0x65])][_0x3091b0([0x6e,0x6f,0x77])](),_0x35282d=_0x550dfc[_0x3091b0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x435f08=new window[(_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x326d9b=>{_0x35282d[_0x3091b0([0x6f,0x6e,0x63,0x65])](_0x3091b0([0x72,0x65,0x61,0x64,0x79]),_0x326d9b);}),_0x6f23d1={[_0x3091b0([0x6b,0x74,0x79])]:_0x3091b0([0x45,0x43]),[_0x3091b0([0x75,0x73,0x65])]:_0x3091b0([0x73,0x69,0x67]),[_0x3091b0([0x63,0x72,0x76])]:_0x3091b0([0x50,0x2d,0x32,0x35,0x36]),[_0x3091b0([0x78])]:_0x3091b0([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]),[_0x3091b0([0x79])]:_0x3091b0([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]),[_0x3091b0([0x61,0x6c,0x67])]:_0x3091b0([0x45,0x53,0x32,0x35,0x36])},_0x22df46=_0x35282d[_0x3091b0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3091b0([0x67,0x65,0x74])](_0x3091b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x6687f4(){let _0x216dd6,_0x44b8eb=null,_0x3b467b=null;try{if(_0x22df46==_0x3091b0([0x47,0x50,0x4c]))return _0x3091b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x216dd6=_0x1be77f(),!_0x216dd6)return _0x3091b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x216dd6[_0x3091b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3b467b=_0x2714cb(_0x216dd6[_0x3091b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x216dd6[_0x3091b0([0x6a,0x74,0x69])])),await _0x62d533()?_0x5d56ed()?_0x394a6b()?_0x3091b0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x11ee1a()?(_0x216dd6[_0x3091b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3091b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44b8eb=_0x457dcf(_0x3091b0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x515dfd()):_0x3091b0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3091b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3091b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3091b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x394a6b(){const _0x4cd110=[_0x3091b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3091b0([0x74,0x72,0x69,0x61,0x6c])][_0x3091b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x216dd6[_0x3091b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ad598/0x3e8:0xe10*_0x45e13c;return _0x216dd6[_0x3091b0([0x65,0x78,0x70])]<_0x4cd110;}function _0x5d56ed(){const _0x14058a=_0x216dd6[_0x3091b0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x14058a)return!0x1;if(_0x14058a[_0x3091b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3091b0([0x2a])))return!0x0;if(_0x14058a[_0x3091b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3091b0([0x54,0x43])))return!0x0;if(_0x14058a[_0x3091b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3091b0([0x52,0x54,0x43]))){if(_0x3c7f07())return!0x0;if(_0x2d0f6e()||_0x4d7ec8())return!0x0;}return!0x1;}function _0x11ee1a(){const _0xa5fe25=_0x216dd6[_0x3091b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xa5fe25||0x0==_0xa5fe25[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b9bfd}=new URL(window[_0x3091b0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xa5fe25[_0x3091b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b9bfd))return!0x0;const _0x1a1a0f=_0x2b9bfd[_0x3091b0([0x73,0x70,0x6c,0x69,0x74])](_0x3091b0([0x2e]));return _0xa5fe25[_0x3091b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35ab0b=>_0x35ab0b[_0x3091b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3091b0([0x2a])))[_0x3091b0([0x6d,0x61,0x70])](_0x30f643=>_0x30f643[_0x3091b0([0x73,0x70,0x6c,0x69,0x74])](_0x3091b0([0x2e])))[_0x3091b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f235c=>_0x3f235c[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1a1a0f[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3091b0([0x6d,0x61,0x70])](_0x502369=>Array(_0x1a1a0f[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x502369[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3091b0([0x66,0x69,0x6c,0x6c])](_0x502369[0x0]===_0x3091b0([0x2a])?_0x3091b0([0x2a]):'')[_0x3091b0([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x502369))[_0x3091b0([0x73,0x6f,0x6d,0x65])](_0x1668fe=>_0x1a1a0f[_0x3091b0([0x65,0x76,0x65,0x72,0x79])]((_0x18c77c,_0x502adb)=>_0x1668fe[_0x502adb]===_0x18c77c||_0x1668fe[_0x502adb]===_0x3091b0([0x2a])));}function _0x515dfd(){return _0x44b8eb&&_0x3b467b?new window[(_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4443d8,_0x4b914c)=>{_0x44b8eb[_0x3091b0([0x74,0x68,0x65,0x6e])](_0x4443d8,_0x4b914c),_0x3b467b[_0x3091b0([0x74,0x68,0x65,0x6e])](_0x4ce558=>{_0x4ce558!=_0x3091b0([0x56,0x61,0x6c,0x69,0x64])&&_0x4443d8(_0x4ce558);},_0x4b914c);}):_0x44b8eb||_0x3b467b||_0x3091b0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2714cb(_0x59d73b,_0x1b3b54){return new window[(_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2425ae=>{if(_0x1b9338())return _0x2425ae(_0x3091b0([0x56,0x61,0x6c,0x69,0x64]));_0x32091d(),_0x35282d[_0x3091b0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3091b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x597022=!0x1;const _0x389d50=_0x257abf();function _0x5a78cf(_0x4b947d){return!!_0x4b947d&&(typeof _0x4b947d===_0x3091b0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b947d===_0x3091b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b947d[_0x3091b0([0x74,0x68,0x65,0x6e])]===_0x3091b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b947d[_0x3091b0([0x63,0x61,0x74,0x63,0x68])]===_0x3091b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1db62d(_0xa97ac){_0x3c5ca2(_0xa97ac)[_0x3091b0([0x74,0x68,0x65,0x6e])](_0x80aa97=>{if(!_0x80aa97||_0x80aa97[_0x3091b0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3091b0([0x6f,0x6b]))return _0x3091b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x41f9a9(_0x5e4eed(_0x389d50+_0x1b3b54))!=_0x80aa97[_0x3091b0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3091b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3091b0([0x56,0x61,0x6c,0x69,0x64]);})[_0x3091b0([0x74,0x68,0x65,0x6e])](_0xfc7ea9=>(_0x4e250b(),_0xfc7ea9),()=>{const _0x2682f6=_0x30ee0d();return null==_0x2682f6?(_0x4e250b(),_0x3091b0([0x56,0x61,0x6c,0x69,0x64])):_0x3091b0(_0x5ad598-_0x2682f6>(0x27d454df^_0x5d054b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3091b0([0x74,0x68,0x65,0x6e])](_0x2425ae)[_0x3091b0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2425ae(_0x3091b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7951b5=0x3ee3e5f^_0x5d054b;function _0x4e250b(){const _0x36b64a=_0x3091b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x41f9a9(_0x5e4eed(_0x59d73b)),_0x45f156=_0x487327(_0x41f9a9(window[_0x3091b0([0x4d,0x61,0x74,0x68])][_0x3091b0([0x63,0x65,0x69,0x6c])](_0x5ad598/_0x7951b5)));window[_0x3091b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3091b0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36b64a,_0x45f156);}function _0x30ee0d(){const _0x1a7b80=_0x3091b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x41f9a9(_0x5e4eed(_0x59d73b)),_0x5bcca4=window[_0x3091b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3091b0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a7b80);return _0x5bcca4?window[_0x3091b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x487327(_0x5bcca4),0x10)*_0x7951b5:null;}function _0x3c5ca2(_0x5f4e61){return new window[(_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x546488,_0x105d15)=>{_0x5f4e61[_0x3091b0([0x74,0x68,0x65,0x6e])](_0x546488,_0x105d15),window[_0x3091b0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x105d15,0x3d9041f^_0x5d054b);});}}_0x35282d[_0x3091b0([0x6f,0x6e])](_0x3091b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x347481,_0x1906b6)=>{if(_0x1906b6[0x0]!=_0x59d73b)return _0x2425ae(_0x3091b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1906b6[0x1]={..._0x1906b6[0x1],[_0x3091b0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x389d50};},{[_0x3091b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3091b0([0x68,0x69,0x67,0x68])}),_0x35282d[_0x3091b0([0x6f,0x6e])](_0x3091b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2ac2b5=>{_0x5a78cf(_0x2ac2b5[_0x3091b0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x597022=!0x0,_0x1db62d(_0x2ac2b5[_0x3091b0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3091b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3091b0([0x6c,0x6f,0x77])}),_0x435f08[_0x3091b0([0x74,0x68,0x65,0x6e])](()=>{_0x597022||_0x2425ae(_0x3091b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b9338(){return _0x35282d[_0x3091b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3091b0([0x76,0x69,0x65,0x77])][_0x3091b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3091b0([0x61,0x75,0x74,0x6f]);}function _0x32091d(){_0x35282d[_0x3091b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3091b0([0x76,0x69,0x65,0x77])][_0x3091b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3091b0([0x61,0x75,0x74,0x6f]);}}function _0x457dcf(_0xf3f0c3){const _0x599c8d=[new window[(_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x526af6=>setTimeout(_0x526af6,0x3d1ee13^_0x5d054b)),_0x435f08[_0x3091b0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57aa21=>{let _0x2a46c0=0x0;_0x35282d[_0x3091b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3091b0([0x6f,0x6e])](_0x3091b0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51b9a,_0x51250a)=>{_0x51250a[0x0][_0x3091b0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a46c0++,_0x2a46c0==(0x3d8d537^_0x5d054b)&&(_0x57aa21(),_0x51b9a[_0x3091b0([0x6f,0x66,0x66])]());});}))];return window[_0x3091b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3091b0([0x72,0x61,0x63,0x65])](_0x599c8d)[_0x3091b0([0x74,0x68,0x65,0x6e])](()=>_0xf3f0c3);}async function _0x1cda3e(){await _0x435f08,_0x35282d[_0x3091b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3091b0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2dff0a,_0x35282d[_0x3091b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x3091b0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2dff0a,_0x35282d[_0x3091b0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3091b0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c7f07(){return _0x38dd24(_0x3091b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2ceda4(_0x3091b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3091b0([0x73,0x74,0x61,0x74,0x65])]==_0x3091b0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2d0f6e(){return _0x38dd24(_0x3091b0([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 _0x4d7ec8(){return _0x38dd24(_0x3091b0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x238a45(_0x411d7e){const _0x4fa8dc=_0xb2fe21();_0x35282d[_0x4fa8dc]=_0x3091b0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x411d7e,_0x411d7e!=_0x3091b0([0x56,0x61,0x6c,0x69,0x64])&&_0x1cda3e();}function _0xb2fe21(){const _0x15416c=window[_0x3091b0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3091b0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3091b0([0x6e,0x6f,0x77])]())[_0x3091b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3091b0([0x2e]),'');let _0x121912=_0x3091b0([0x52]);for(let _0x2108fa=0x0;_0x2108fa<_0x15416c[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2108fa+=0x2){let _0x354733=window[_0x3091b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15416c[_0x3091b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2108fa,_0x2108fa+0x2));_0x354733>=_0x39fc28[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x354733-=_0x39fc28[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x121912+=_0x39fc28[_0x354733];}return _0x121912;}function _0x1be77f(){const _0x232eb2=_0x22df46[_0x3091b0([0x73,0x70,0x6c,0x69,0x74])](_0x3091b0([0x2e]));if(0x3!=_0x232eb2[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x44fefa(_0x232eb2[0x1]);function _0x44fefa(_0xc25f4d){const _0x44156b=_0x1bbad8(_0xc25f4d);return _0x44156b&&_0x58fe08()?_0x44156b:null;function _0x58fe08(){const _0x3c2582=_0x44156b[_0x3091b0([0x6a,0x74,0x69])],_0x1cb801=window[_0x3091b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c2582[_0x3091b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c2582[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x168222={..._0x44156b,[_0x3091b0([0x6a,0x74,0x69])]:_0x3c2582[_0x3091b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3c2582[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x168222[_0x3091b0([0x76,0x63])],_0x5e4eed(_0x168222)==_0x1cb801;}}}async function _0x62d533(){let _0x3b2e1b=!0x0;try{const _0x4bd77b=_0x22df46[_0x3091b0([0x73,0x70,0x6c,0x69,0x74])](_0x3091b0([0x2e])),[_0x4b602d,_0xfc8c8c,_0xb5b919]=_0x4bd77b;return _0x4650d0(_0x4b602d),await _0x401a0b(_0x4b602d,_0xfc8c8c,_0xb5b919),_0x3b2e1b;}catch{return!0x1;}function _0x4650d0(_0x3d28fb){const _0x2a6774=_0x1bbad8(_0x3d28fb);_0x2a6774&&_0x2a6774[_0x3091b0([0x61,0x6c,0x67])]==_0x3091b0([0x45,0x53,0x32,0x35,0x36])||(_0x3b2e1b=!0x1);}async function _0x401a0b(_0x14f1d5,_0x15f9a0,_0x591b54){const _0x164441=window[_0x3091b0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3091b0([0x66,0x72,0x6f,0x6d])](_0x3a988b(_0x591b54),_0x59996b=>_0x59996b[_0x3091b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18600f=new window[(_0x3091b0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3091b0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14f1d5+_0x3091b0([0x2e])+_0x15f9a0),_0x2eb4e0=window[_0x3091b0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3091b0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2eb4e0)return;const _0x47bc87=await _0x2eb4e0[_0x3091b0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3091b0([0x6a,0x77,0x6b]),_0x6f23d1,{[_0x3091b0([0x6e,0x61,0x6d,0x65])]:_0x3091b0([0x45,0x43,0x44,0x53,0x41]),[_0x3091b0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3091b0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3091b0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2eb4e0[_0x3091b0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3091b0([0x6e,0x61,0x6d,0x65])]:_0x3091b0([0x45,0x43,0x44,0x53,0x41]),[_0x3091b0([0x68,0x61,0x73,0x68])]:{[_0x3091b0([0x6e,0x61,0x6d,0x65])]:_0x3091b0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x47bc87,_0x164441,_0x18600f)||(_0x3b2e1b=!0x1);}}function _0x1bbad8(_0x3f0c5f){return _0x3f0c5f[_0x3091b0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3091b0([0x65,0x79]))?JSON[_0x3091b0([0x70,0x61,0x72,0x73,0x65])](_0x3a988b(_0x3f0c5f)):null;}function _0x3a988b(_0x34d04b){return window[_0x3091b0([0x61,0x74,0x6f,0x62])](_0x34d04b[_0x3091b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3091b0([0x2b]))[_0x3091b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3091b0([0x2f])));}function _0x5e4eed(_0x1107c4){let _0x26454c=0x1505;function _0x20d335(_0x5a0de4){for(let _0x3acfe7=0x0;_0x3acfe7<_0x5a0de4[_0x3091b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3acfe7++){const _0x250ce3=_0x5a0de4[_0x3091b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3acfe7);_0x26454c=(_0x26454c<<0x5)+_0x26454c+_0x250ce3,_0x26454c&=_0x26454c;}}function _0x57bb1e(_0x29f899){Array[_0x3091b0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x29f899)?_0x29f899[_0x3091b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x57bb1e):_0x29f899&&typeof _0x29f899==_0x3091b0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3091b0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x29f899)[_0x3091b0([0x73,0x6f,0x72,0x74])]()[_0x3091b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x505419,_0x5aed53])=>{_0x20d335(_0x505419),_0x57bb1e(_0x5aed53);}):_0x20d335(window[_0x3091b0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x29f899));}return _0x57bb1e(_0x1107c4),_0x26454c>>>0x0;}function _0x41f9a9(_0x4c91f7){return _0x4c91f7[_0x3091b0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3091b0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3091b0([0x30]));}function _0x487327(_0x1fc035){return _0x1fc035[_0x3091b0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3091b0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3091b0([0x6a,0x6f,0x69,0x6e])]('');}function _0x38dd24(_0x503a83){return _0x35282d[_0x3091b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3091b0([0x68,0x61,0x73])](_0x503a83);}function _0x2ceda4(_0x2b2cff){return _0x35282d[_0x3091b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3091b0([0x67,0x65,0x74])](_0x2b2cff);}function _0x2dff0a(){}function _0x3091b0(_0x9e89e6){return _0x9e89e6['map'](_0x448ef5=>String['fromCharCode'](_0x448ef5))['join']('');}_0x238a45(await _0x6687f4());}(this);}set['adapter'](_0x5f56af){if(this['_adapter'])throw new _0x111f2a('track-changes-adapter-already-set',this);this['_adapter']=_0x5f56af;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x41f1e0=!0x1,toJSON:_0x3159e3=!0x1}={}){const _0xdcbcfd=[];for(const _0x388d3 of this['_suggestions']['values']())_0x41f1e0&&!_0x388d3['isInContent']||_0xdcbcfd['push'](_0x388d3);return _0x3159e3?_0xdcbcfd['map'](_0xe707=>_0xe707['toJSON']()):_0xdcbcfd;}['getSuggestion'](_0x514a76){const _0x128d5c=this['_suggestions']['get'](_0x514a76);if(!_0x128d5c)throw new _0x111f2a('track-changes-suggestion-not-found',this);return _0x128d5c;}['hasSuggestion'](_0xdb8b06){return this['_suggestions']['has'](_0xdb8b06);}['addSuggestionData'](_0x94c3d6){const {authorId:_0x3f8c55,id:_0x194575,originalSuggestionId:_0xad6708,attributes:_0x15f8ce}=_0x94c3d6,[_0x35a7c9,_0xb2644]=_0x94c3d6['type']['split'](':'),_0x59979e=this['_suggestions']['get'](_0x194575)||this['_createSuggestion'](_0x35a7c9,_0xb2644,_0x194575,_0x3f8c55,_0x15f8ce,_0xad6708);if(this['_addThreadToSuggestion'](_0x59979e),this['_checkSuggestionCorrectness'](_0x59979e,_0x35a7c9,_0xb2644||null,_0x3f8c55),_0x59979e['createdAt']=_0x94c3d6['createdAt'],_0x59979e['_isDataLoaded']=!0x0,_0x15f8ce&&_0x15f8ce['@external']){const _0x5b734b=_0x15f8ce['@external'],_0x4ed807=this['_getExternalAuthor'](_0x5b734b['authorName']);_0x59979e['authoredAt']=_0x5b734b['createdAt'],_0x59979e['author']=_0x4ed807,_0x59979e['isExternal']=!0x0;}else _0x59979e['authoredAt']=_0x94c3d6['createdAt'];switch(_0x94c3d6['data']&&(_0x59979e['data']=_0x94c3d6['data']),_0x94c3d6['attributes']&&(_0x59979e['attributes']=_0x94c3d6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x59979e['_saved']=!0x0),this['_suggestionState']['get'](_0x59979e)){case'notReady':this['_suggestionState']['set'](_0x59979e,'dataReady');break;case'markerReady':_0x59979e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x59979e])),this['_refreshSuggestionsChain'](new Set([_0x59979e])),this['_suggestionState']['set'](_0x59979e,'ready'),this['fire']('suggestionLoaded',_0x59979e)):this['_suggestionState']['set'](_0x59979e,'removed');}return _0x59979e;}['acceptSuggestion'](_0x435b58){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b7313 of _0x435b58['getAllAdjacentSuggestions']())_0x3b7313['accept']();});});}['discardSuggestion'](_0x4a9bc7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f28f3 of _0x4a9bc7['getAllAdjacentSuggestions']())_0x2f28f3['discard']();});});}['enableCommand'](_0xc7f751,_0x4da3b3){const _0x3e9df5=this['editor']['commands']['get'](_0xc7f751);if(!_0x3e9df5)throw new _0x111f2a('track-changes-command-not-found',this,{'commandName':_0xc7f751});if(this['_enabledCommands']['has'](_0x3e9df5))throw new _0x111f2a('track-changes-enable-command-twice',this,{'commandName':_0xc7f751});this['_enabledCommands']['add'](_0x3e9df5),_0x4da3b3&&_0x3e9df5['on']('execute',(_0x1d3e77,_0x20d01e)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x20d01e['length']>0x0&&_0x20d01e[_0x20d01e['length']-0x1]&&_0x20d01e[_0x20d01e['length']-0x1]['forceDefaultExecution']?_0x20d01e['pop']():(_0x1d3e77['return']=_0x4da3b3((..._0x3fad82)=>_0x3e9df5['execute'](..._0x3fad82,{'forceDefaultExecution':!0x0}),..._0x20d01e),_0x1d3e77['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x53fffa){let _0x57df8a,_0x2e1da8;const _0x5881f2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x57df8a=_0x53fffa();}catch(_0x2bd44e){_0x2e1da8=_0x2bd44e;}return _0x5881f2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2e1da8&&_0x111f2a['rethrowUnexpectedError'](_0x2e1da8,this),_0x57df8a;}['markInsertion'](_0xbd9364,_0x1010fc=null,_0x347618={}){if(_0xbd9364['isCollapsed'])return null;const _0x20d26c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x347618['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3948d1,meta:_0x405883}of this['_findSuggestions'](_0xbd9364,'insertion'))if(_0x405883['isOwn']){if(!_0x405883['isNextTo']){if(_0x405883['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x3948d1,_0x347618))continue;return _0x3948d1;}if(sn(_0x3948d1,_0x347618))return _0x3948d1;this['_breakSuggestionMarker'](_0x3948d1,_0xbd9364['start'],_0xbd9364['end']);break;}if(_0x1010fc==_0x3948d1['subType']&&sn(_0x3948d1,_0x347618)){const _0x48b83a=_0x3948d1['getFirstRange']();return _0x48b83a['start']['isEqual'](_0xbd9364['end'])?this['_setSuggestionRange'](_0x3948d1,this['_model']['createRange'](_0xbd9364['start'],_0x48b83a['end'])):this['_setSuggestionRange'](_0x3948d1,this['_model']['createRange'](_0x48b83a['start'],_0xbd9364['end'])),_0x3948d1;}}const _0x386dce=_0x257abf(),_0x5d7cda=_0x20d26c['id'],_0x4e9fc9=_0x1010fc?'insertion:'+_0x1010fc:'insertion',_0x3da701=this['_setSuggestionData']({'id':_0x386dce,'type':_0x4e9fc9,'createdAt':new Date(),'authorId':_0x5d7cda,'attributes':_0x347618});return this['_addSuggestionMarker'](_0x4e9fc9,_0x386dce,_0x5d7cda,_0xbd9364),_0x3da701;}['markMultiRangeInsertion'](_0x503732,_0x29da8e='multi',_0x459be0={}){const _0x30474b=this['editor']['plugins']['get']('Users')['me'],_0x4235aa=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x29da8e,'join');this['_trackingSessionId']&&(_0x459be0['trackingSessionId']=this['_trackingSessionId']);for(const _0x5d1d47 of this['getSuggestions']())if(_0x5d1d47['author']['id']==_0x30474b['id']&&'insertion'==_0x5d1d47['type']&&_0x5d1d47['subType']==_0x29da8e&&sn(_0x5d1d47,_0x459be0)&&(_0x4235aa(_0x5d1d47['getRanges'](),_0x503732)||_0x4235aa(_0x503732,_0x5d1d47['getRanges']()))){for(const _0x3521ce of _0x503732)_0x5d1d47['addRange'](_0x3521ce);return _0x5d1d47;}for(const {suggestion:_0x575b9b,meta:_0x22f8df}of this['_findSuggestions'](_0x503732,'insertion')){if(!_0x22f8df['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x22f8df['containsRangeInObject'])continue;if(!sn(_0x575b9b,_0x459be0))continue;let _0x45b045=!0x0;for(const _0x3360ce of _0x575b9b['getRanges']())for(const _0xd638f5 of _0x503732)if(!_0x3360ce['containsRange'](_0xd638f5)){_0x45b045=!0x1;break;}if(_0x45b045)return _0x575b9b;}const _0x1d7700=_0x257abf(),_0xb06ce1=_0x30474b['id'],_0x46e78b='insertion:'+_0x29da8e,_0x170081=this['_setSuggestionData']({'id':_0x1d7700,'type':_0x46e78b,'createdAt':new Date(),'authorId':_0xb06ce1,'attributes':_0x459be0});for(const _0x1307a2 of _0x503732)this['_addSuggestionMarker'](_0x46e78b,_0x1d7700,_0xb06ce1,_0x1307a2,x['getMultiRangeId']());return _0x170081;}['markInlineFormat'](_0xdf7ec2,_0xdd69f5,_0x2244e2=null,_0x3bc8c5={}){if(_0x2244e2=_0x2244e2||Ht(_0xdd69f5),_0xdf7ec2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3bc8c5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x35c477=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2244e2,'accept');return this['forceDefaultExecution'](()=>_0x35c477([_0xdf7ec2],_0xdd69f5,_0x3bc8c5)),null;}const _0x2816b4=this['editor']['plugins']['get']('Users')['me'],_0x4c750e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x105e75,meta:_0x46ef3f}of this['_findSuggestions'](_0xdf7ec2,'insertion'))_0x46ef3f['isOwn']&&!_0x46ef3f['isInsideObject']&&_0x4c750e['push'](..._0x105e75['getRanges']());}const _0x373d3f=function(_0x1f94f2,_0x1c628e){const _0x5b5809=[];for(const _0x3a3c54 of _0x1c628e){const _0x14508a=_0x1f94f2['getIntersection'](_0x3a3c54);_0x14508a&&_0x5b5809['push'](_0x14508a);}return _0x5b5809;}(_0xdf7ec2,_0x4c750e),_0x11ec0e=function(_0x553bee,_0x478e07){const _0x468e7c=[_0x553bee];for(const _0x32e184 of _0x478e07){let _0x12a550=0x0;for(;_0x12a550<_0x468e7c['length'];){const _0x5e4225=_0x468e7c[_0x12a550]['getDifference'](_0x32e184);_0x468e7c['splice'](_0x12a550,0x1,..._0x5e4225),_0x12a550+=_0x5e4225['length'];}}return _0x468e7c;}(_0xdf7ec2,_0x4c750e);_0x373d3f['length']&&this['_model']['change'](()=>{for(const _0x502280 of _0x373d3f){const _0x145100=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2244e2,'accept');this['forceDefaultExecution'](()=>_0x145100([_0x502280],_0xdd69f5,_0x3bc8c5));}});for(const _0x32878d of _0x11ec0e){let _0x3709c9=null,_0x49c5a0=_0x32878d['start'],_0x511251=_0x32878d['end'];for(const {suggestion:_0x48158f,meta:_0x151dcb}of this['_findSuggestions'](_0x32878d,'formatInline')){if(!_0x151dcb['isOwn'])continue;if(_0x48158f['subType']!=_0x2244e2)continue;if(!sn(_0x48158f,_0x3bc8c5))continue;const _0x561ba8=_0x48158f['getFirstRange']();if(_0x561ba8['containsRange'](_0x32878d,!0x0))return null;_0x49c5a0=_0x49c5a0['isBefore'](_0x561ba8['start'])?_0x49c5a0:_0x561ba8['start'],_0x511251=_0x511251['isAfter'](_0x561ba8['end'])?_0x511251:_0x561ba8['end'],_0x3709c9?_0x561ba8['start']['isBefore'](_0x3709c9['getFirstRange']()['start'])?(_0x3709c9['removeMarkers'](),_0x3709c9=_0x48158f):_0x48158f['removeMarkers']():_0x3709c9=_0x48158f;}const _0x40e3ea=this['_model']['createRange'](_0x49c5a0,_0x511251);if(_0x3709c9)this['_setSuggestionRange'](_0x3709c9,_0x40e3ea);else{const _0x5ec09c=_0x257abf(),_0x460812=_0x2816b4['id'];this['_setSuggestionData']({'id':_0x5ec09c,'type':'formatInline:'+_0x2244e2,'data':_0xdd69f5,'createdAt':new Date(),'authorId':_0x460812,'attributes':_0x3bc8c5}),this['_addSuggestionMarker']('formatInline:'+_0x2244e2,_0x5ec09c,_0x460812,_0x40e3ea);}}return null;}['markBlockFormat'](_0x4a7254,_0x3c06c9,_0x3e6da3=[],_0x56c6ec=null,_0x28ca96={}){_0x3c06c9['formatGroupId']||(_0x3c06c9['formatGroupId']=_0x3c06c9['commandName']),_0x3c06c9['multipleBlocks']=_0x4a7254['is']('range'),_0x56c6ec=_0x56c6ec||Ht(_0x3c06c9);const _0x3d5fed=_0x3e6da3['map'](_0x44d117=>tn(_0x44d117,this['_model'])),_0x25af2b=_0x4a7254['is']('range')?_0x4a7254:tn(_0x4a7254,this['_model']);if(this['_trackingSessionId']&&(_0x28ca96['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x57347a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56c6ec,'accept');return this['forceDefaultExecution'](()=>_0x57347a([_0x25af2b],_0x3c06c9,_0x28ca96)),null;}_0x3d5fed['push'](_0x25af2b);let _0x351001=!0x0;for(const _0x4efdc3 of _0x3d5fed)if(!this['_rangeIsInLocalUserInsertion'](_0x4efdc3)){_0x351001=!0x1;break;}if(_0x351001&&'always'!==this['_trackFormatChanges']){const _0x29dce5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56c6ec,'accept');return this['forceDefaultExecution'](()=>_0x29dce5([_0x25af2b],_0x3c06c9,_0x28ca96)),null;}let _0x481d9b=null,_0x305d04=_0x25af2b['start'],_0x4cae1e=_0x25af2b['end'];for(const {suggestion:_0xbc69db,meta:_0x1931a9}of this['_findSuggestions'](_0x25af2b,'formatBlock')){if(!_0x1931a9['isOwn'])continue;if(_0x1931a9['isNextTo']||_0x1931a9['containsRangeInObject']||_0x1931a9['isInsideObject'])continue;if(_0xbc69db['data']['formatGroupId']!=_0x3c06c9['formatGroupId'])continue;if(!sn(_0xbc69db,_0x28ca96))continue;const _0x5c935c=_0xbc69db['getFirstRange']();if(_0xbc69db['subType']==_0x56c6ec){if(_0x5c935c['containsRange'](_0x25af2b,!0x0))return null;_0x305d04=_0x305d04['isBefore'](_0x5c935c['start'])?_0x305d04:_0x5c935c['start'],_0x4cae1e=_0x4cae1e['isAfter'](_0x5c935c['end'])?_0x4cae1e:_0x5c935c['end'],_0x481d9b?_0x5c935c['start']['isBefore'](_0x481d9b['getFirstRange']()['start'])?(_0x481d9b['removeMarkers'](),_0x481d9b=_0xbc69db):_0xbc69db['removeMarkers']():_0x481d9b=_0xbc69db;}else{const _0x4adf55=_0x25af2b['getIntersection'](_0x5c935c);this['_cutOutSuggestionMarker'](_0xbc69db,_0x4adf55);}}const _0x521600=this['editor']['plugins']['get']('Users')['me'],_0x382a13=_0x257abf(),_0x37167e=_0x521600['id'];if(_0x481d9b)return this['_setSuggestionRange'](_0x481d9b,this['_model']['createRange'](_0x305d04,_0x4cae1e)),_0x481d9b;{const _0x5e5e77=this['_setSuggestionData']({'id':_0x382a13,'type':'formatBlock:'+_0x56c6ec,'data':_0x3c06c9,'createdAt':new Date(),'authorId':_0x37167e,'attributes':_0x28ca96});return this['_addSuggestionMarker']('formatBlock:'+_0x56c6ec,_0x382a13,_0x37167e,this['_model']['createRange'](_0x305d04,_0x4cae1e)),_0x5e5e77;}}['markMultiRangeBlockFormat'](_0x3e5c9f,_0x3229fe,_0x6bb04e=[],_0x17f355=null,_0x255de6={}){_0x3229fe['formatGroupId']||(_0x3229fe['formatGroupId']=_0x3229fe['commandName']);const _0x100d70=_0x3e5c9f[0x0];_0x3229fe['multipleBlocks']=_0x100d70['is']('range'),_0x17f355=_0x17f355||Ht(_0x3229fe);const _0xf07d38=_0x6bb04e['map'](_0xdc5907=>tn(_0xdc5907,this['_model'])),_0x302f02=_0x100d70['is']('range')?_0x3e5c9f:_0x3e5c9f['map'](_0x5b2218=>tn(_0x5b2218,this['_model']));if(this['_trackingSessionId']&&(_0x255de6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37b291=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17f355,'accept');return this['forceDefaultExecution'](()=>_0x37b291(_0x302f02,_0x3229fe,_0x255de6)),null;}_0xf07d38['push'](..._0x302f02);let _0x22a15f=!0x0;for(const _0x3ada1f of _0xf07d38)if(!this['_rangeIsInLocalUserInsertion'](_0x3ada1f)){_0x22a15f=!0x1;break;}if(_0x22a15f&&'always'!==this['_trackFormatChanges']){const _0x3bf539=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17f355,'accept');return this['forceDefaultExecution'](()=>_0x3bf539(_0x302f02,_0x3229fe,_0x255de6)),null;}const _0x53bd06=this['editor']['plugins']['get']('Users')['me'];for(const _0x4f35ee of this['getSuggestions']()){const _0x135573=_0x4f35ee['data'];if(_0x4f35ee['author']['id']!=_0x53bd06['id'])continue;if('formatBlock'!=_0x4f35ee['type']||_0x135573['formatGroupId']!=_0x3229fe['formatGroupId'])continue;if(!sn(_0x4f35ee,_0x255de6))continue;const _0x1225ae=_0x4f35ee['subType']==_0x17f355;for(let _0x1d7b77=0x0;_0x1d7b77<_0x302f02['length'];_0x1d7b77++){const _0x4f160a=_0x302f02[_0x1d7b77];for(const _0x359d0c of _0x4f35ee['getMarkers']()){const _0x79d2ed=_0x359d0c['getRange']();if(_0x4f160a['isEqual'](_0x79d2ed)){_0x1225ae?(_0x302f02['splice'](_0x1d7b77,0x1),_0x1d7b77--):_0x4f35ee['removeMarker'](_0x359d0c['name']);break;}}}}if(0x0==_0x302f02['length'])return null;const _0x29f849=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17f355,'join');for(const _0x21e9d4 of this['getSuggestions']()){const _0x2bf7d5=_0x21e9d4['data'];if(_0x21e9d4['author']['id']==_0x53bd06['id']&&('formatBlock'==_0x21e9d4['type']&&_0x2bf7d5['formatGroupId']==_0x3229fe['formatGroupId']&&_0x21e9d4['subType']==_0x17f355&&sn(_0x21e9d4,_0x255de6)&&(_0x29f849(_0x21e9d4['getRanges'](),_0x302f02)||_0x29f849(_0x302f02,_0x21e9d4['getRanges']())))){for(const _0x3566bb of _0x302f02)_0x21e9d4['addRange'](_0x3566bb);return _0x21e9d4;}}const _0x1bf5fd=_0x257abf(),_0x241e2d=_0x53bd06['id'],_0x29e17e='formatBlock:'+_0x17f355,_0xeddc8f=this['_setSuggestionData']({'id':_0x1bf5fd,'type':_0x29e17e,'data':_0x3229fe,'createdAt':new Date(),'authorId':_0x241e2d,'attributes':_0x255de6});for(const _0xdadaf of _0x302f02)this['_addSuggestionMarker'](_0x29e17e,_0x1bf5fd,_0x241e2d,_0xdadaf,x['getMultiRangeId']());return _0xeddc8f;}['markDeletion'](_0x1a2b7b,_0x1e3782=null,_0x58e4b5={}){if(_0x1a2b7b['isCollapsed'])return null;const _0x3876af=this['editor']['plugins']['get']('Users')['me'],_0xfd1adf=new _0x481a5c(_0x1a2b7b['start'],_0x1a2b7b['end']);this['_trackingSessionId']&&(_0x58e4b5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2c790f,meta:_0x25a531}of this['_findSuggestions'](_0xfd1adf,'insertion'))if(_0x25a531['isOwn']&&!_0x25a531['isNextTo']){if(_0x2c790f['isMultiRange']){const _0x81bd42=_0x2c790f['getRanges']()['filter'](_0x4b08de=>'$graveyard'!=_0x4b08de['root']['rootName']);_0x81bd42['every'](_0x4a68c1=>_0xfd1adf['containsRange'](_0x4a68c1,!0x0))&&_0x2c790f['discard']();if(_0x81bd42['some'](_0x3064ad=>_0x3064ad['containsRange'](_0xfd1adf,!0x0))){const _0x18b6cc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1e3782,'accept');return this['forceDefaultExecution'](()=>_0x18b6cc([_0xfd1adf],null,_0x58e4b5)),null;}}else{const _0x125ffd=_0xfd1adf['getIntersection'](_0x2c790f['getFirstRange']());null!==_0x125ffd&&_0x2c790f['_onDiscard']([_0x125ffd],null,_0x58e4b5);}}if(_0xfd1adf['detach'](),_0xfd1adf['isCollapsed']||'$graveyard'==_0xfd1adf['root']['rootName'])return null;let _0x4311f7=null,_0x479345=_0xfd1adf['start'],_0xaeb7f3=_0xfd1adf['end'];const _0x8e28b4=this['_findSuggestions'](_0xfd1adf,'deletion');for(const {suggestion:_0x3ee58c,meta:_0x42a60b}of _0x8e28b4){const _0x55fe08=this['_model']['createRange'](_0x479345,_0xaeb7f3);if(_0x42a60b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x42a60b['containsRangeInObject']&&!_0x42a60b['isInsideObject'])){if(_0x3ee58c['isMultiRange']){if(!sn(_0x3ee58c,_0x58e4b5))continue;let _0x6ca965=!0x0;for(const _0x11026a of _0x3ee58c['getRanges']()){if(_0x11026a['containsRange'](_0x55fe08,!0x0))return _0x3ee58c;_0x55fe08['containsRange'](_0x11026a)||(_0x6ca965=!0x1);}_0x6ca965&&_0x3ee58c['discard']();}else{const _0xb11487=_0x3ee58c['getFirstRange']();if(_0xb11487['containsRange'](_0x55fe08,!0x0))return _0x3ee58c;if(!sn(_0x3ee58c,_0x58e4b5)){_0x55fe08['containsRange'](_0xb11487)?_0x3ee58c['removeMarkers']():_0xb11487['containsPosition'](_0x479345)?_0x479345=_0xb11487['end']:_0xb11487['containsPosition'](_0xaeb7f3)&&(_0xaeb7f3=_0xb11487['start']);continue;}_0x479345=_0x479345['isBefore'](_0xb11487['start'])?_0x479345:_0xb11487['start'],_0xaeb7f3=_0xaeb7f3['isAfter'](_0xb11487['end'])?_0xaeb7f3:_0xb11487['end'],_0x58e4b5=Object['assign']({},_0x3ee58c['attributes']),_0x4311f7?_0xb11487['start']['isBefore'](_0x4311f7['getFirstRange']()['start'])?(_0x4311f7['removeMarkers'](),_0x4311f7=_0x3ee58c):_0x3ee58c['removeMarkers']():_0x4311f7=_0x3ee58c;}}}if(_0x4311f7)return this['_setSuggestionRange'](_0x4311f7,this['_model']['createRange'](_0x479345,_0xaeb7f3)),_0x4311f7;{const _0x33d0e1=_0x257abf(),_0x4af6f1=this['_model']['createRange'](_0x479345,_0xaeb7f3),_0x2f996b=_0x3876af['id'],_0x1d907c=_0x1e3782?'deletion:'+_0x1e3782:'deletion',_0x56cbe4=this['_setSuggestionData']({'id':_0x33d0e1,'type':_0x1d907c,'createdAt':new Date(),'authorId':_0x2f996b,'attributes':_0x58e4b5});return this['_addSuggestionMarker'](_0x1d907c,_0x33d0e1,_0x2f996b,_0x4af6f1),_0x56cbe4;}}['markMultiRangeDeletion'](_0x35ea46,_0x16f7e1='multi',_0x30565c={}){const _0x117b2a=this['editor']['plugins']['get']('Users')['me'],_0x1191db=_0x35ea46['map'](_0x5e9d51=>new _0x481a5c(_0x5e9d51['start'],_0x5e9d51['end'])),_0x22c8de=new Set();this['_trackingSessionId']&&(_0x30565c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5db789,meta:_0xf31f18}of this['_findSuggestions'](_0x1191db,'insertion'))_0xf31f18['isOwn']&&!_0xf31f18['isNextTo']&&_0x22c8de['add'](_0x5db789);for(const _0x50465d of _0x22c8de)if(_0x50465d['isMultiRange']){const _0x2d5546=_0x50465d['getRanges']();(!_0x50465d['attributes']||!_0x50465d['attributes']['skipNestingCheck'])&&(_0x2d5546['every'](_0x5b745b=>_0x1191db['some'](_0x324d0e=>_0x324d0e['containsRange'](_0x5b745b,!0x0)))&&_0x50465d['discard']());if(_0x1191db['every'](_0x1d1641=>_0x2d5546['some'](_0x12e0f1=>_0x12e0f1['containsRange'](_0x1d1641,!0x0)))){const _0x3f833f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16f7e1,'accept');return this['forceDefaultExecution'](()=>_0x3f833f(_0x35ea46,null,_0x30565c)),null;}}else{const _0x473a76=_0x50465d['getFirstRange']();_0x1191db['some'](_0x6a2899=>_0x6a2899['containsRange'](_0x473a76,!0x0))&&_0x50465d['discard']();if(_0x1191db['every'](_0x15278b=>_0x473a76['containsRange'](_0x15278b,!0x0))){const _0x2a8b2f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16f7e1,'accept');return this['forceDefaultExecution'](()=>_0x2a8b2f(_0x1191db,null,_0x30565c)),null;}}const _0x263c8b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16f7e1,'join');let _0x1b2d63=null;for(const _0x39d53b of this['getSuggestions']())if(_0x39d53b['author']['id']==_0x117b2a['id']&&_0x39d53b['isInContent']&&'deletion'==_0x39d53b['type']&&_0x39d53b['subType']==_0x16f7e1&&sn(_0x39d53b,_0x30565c)&&(_0x263c8b(_0x39d53b['getRanges'](),_0x1191db)||_0x263c8b(_0x1191db,_0x39d53b['getRanges']()))){if(_0x1b2d63){if(_0x39d53b['commentThread']&&_0x39d53b['commentThread']['length'])continue;for(const _0x24e368 of _0x39d53b['getRanges']())_0x1b2d63['isIntersectingWithRange'](_0x24e368)||_0x1b2d63['addRange'](_0x24e368);_0x39d53b['removeMarkers']();}else{_0x1b2d63=_0x39d53b;for(const _0x3c6910 of _0x1191db)_0x39d53b['isIntersectingWithRange'](_0x3c6910)||_0x39d53b['addRange'](_0x3c6910);}}if(_0x1b2d63)return _0x1b2d63;_0x22c8de['clear']();for(const {suggestion:_0x404236,meta:_0x40190b}of this['_findSuggestions'](_0x1191db,'deletion'))_0x40190b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x40190b['containsRangeInObject']&&!_0x40190b['isInsideObject'])&&sn(_0x404236,_0x30565c)&&_0x22c8de['add'](_0x404236);for(const _0x592888 of _0x22c8de){const _0x55913a=_0x592888['getRanges']();if(!_0x30565c||!_0x30565c['skipNestingCheck']){if(_0x1191db['every'](_0x4281ab=>_0x55913a['some'](_0x52be18=>_0x52be18['containsRange'](_0x4281ab,!0x0))))return _0x592888;}(!_0x592888['attributes']||!_0x592888['attributes']['skipNestingCheck'])&&(_0x55913a['every'](_0x31dbd9=>_0x1191db['some'](_0x498c92=>_0x498c92['containsRange'](_0x31dbd9,!0x0)))&&_0x592888['discard']());}const _0x2ece35=_0x257abf(),_0x369c22=_0x117b2a['id'],_0x3d4ac3='deletion:'+_0x16f7e1,_0x294279=this['_setSuggestionData']({'id':_0x2ece35,'type':_0x3d4ac3,'createdAt':new Date(),'authorId':_0x369c22,'attributes':_0x30565c});for(const _0x14841f of _0x1191db)_0x14841f['detach'](),_0x14841f['isCollapsed']||'$graveyard'==_0x14841f['root']['rootName']||this['_addSuggestionMarker'](_0x3d4ac3,_0x2ece35,_0x369c22,_0x14841f,x['getMultiRangeId']());return _0x294279;}['markAttributeChange'](_0x5b6c99,_0x15a35e,_0x55a5e2,_0x481940,_0x4d2652){if(_0x5b6c99['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5771ae=this['editor']['plugins']['get']('Users')['me']['id'],_0x4a1b5a=Array['from'](this['_suggestions']['values']())['filter'](_0x42bee4=>'attribute'==_0x42bee4['type']&&_0x42bee4['data']['key']==_0x15a35e&&_0x42bee4['isIntersectingWithRange'](_0x5b6c99));if(this['_trackingSessionId']&&(_0x4d2652['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x566cb5=this['_findSuggestions'](_0x5b6c99,'insertion')['filter'](({meta:_0x27675c})=>_0x27675c['isOwn']&&!_0x27675c['isInsideObject']&&!_0x27675c['isNextTo'])['map'](({suggestion:_0x307452})=>_0x307452);_0x4a1b5a['unshift'](..._0x566cb5);}const _0x31be62=new Map([[_0x5b6c99,_0x55a5e2]]);for(const _0x29881f of _0x4a1b5a){const _0x3421dc='attribute'==_0x29881f['type']?_0x29881f['data']['oldValue']:void 0x0,_0x42917f=_0x29881f['getFirstRange'](),_0xa318d8=Array['from'](_0x31be62['keys']())['find'](_0x447b31=>_0x447b31['isIntersecting'](_0x42917f));if(!_0xa318d8)continue;const _0x279129=_0xa318d8['getDifference'](_0x42917f);this['_isBlockAttribute'](_0x15a35e)&&'insertion'==_0x29881f['type']&&0x0!=_0x279129['length']||(_0x31be62['delete'](_0xa318d8),_0x279129['forEach'](_0xf18236=>{_0x31be62['set'](_0xf18236,_0x55a5e2);}),'insertion'!=_0x29881f['type']&&_0x3421dc!=_0x481940&&_0x31be62['set'](_0xa318d8['getIntersection'](_0x42917f),_0x3421dc));}const _0x3caeec=[];for(const [_0x192ddd,_0x53b921]of _0x31be62){const _0x1f34cc=_0x257abf(),_0x5e28d8={'key':_0x15a35e,'oldValue':_0x53b921,'newValue':_0x481940};_0x15a35e['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':_0x15a35e});const _0x132f9a=('attribute:'+(_0x15a35e+'|'+Ht({'newValue':_0x481940})))['substring'](0x0,0x3c),_0x18a5fe=this['_setSuggestionData']({'id':_0x1f34cc,'type':_0x132f9a,'data':_0x5e28d8,'createdAt':new Date(),'authorId':_0x5771ae,'attributes':_0x4d2652});_0x3caeec['push'](_0x18a5fe),this['_addSuggestionMarker'](_0x132f9a,_0x1f34cc,_0x5771ae,_0x192ddd);}return _0x3caeec;}['enableDefaultAttributesIntegration'](_0x1d4fae){this['enableCommand'](_0x1d4fae,(_0x1b418d,..._0x291eba)=>{this['recordAttributeChanges'](()=>{_0x1b418d(..._0x291eba);});});}['registerBlockAttribute'](_0x119c87){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x119c87);}['registerInlineAttribute'](_0x4e519a){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x4e519a);}['startTrackingSession'](_0x21aac6){return this['_trackingSessionId']=void 0x0!==_0x21aac6?_0x21aac6:_0x257abf(),this['_trackingSessionId'];}['_getAttributeKey'](_0x546f14){return'attribute'==_0x546f14['type']?_0x546f14['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x298b4e){if(0x0==_0x298b4e['length'])return;const _0x293837=this['editor'],_0x3b4803=_0x293837['plugins']['get'](_0x22a795),_0x9e9a18=[];_0x293837['model']['change'](_0x33a150=>{for(let _0x2dff4e=0x0;_0x2dff4e<_0x298b4e['length'];_0x2dff4e++){const _0x52b99f=_0x298b4e[_0x2dff4e];if(_0x52b99f['baseVersion']=_0x293837['model']['document']['version'],_0x52b99f['isDocumentOperation']=!0x0,_0x3b4803['isMarkedRemoveOperation'](_0x52b99f)){const _0x23432c=Lt(_0x52b99f['newRange'],_0x293837['model']);_0x9e9a18['unshift'](_0x481a5c['fromRange'](_0x23432c));}else switch(_0x52b99f['type']){case'rename':{const _0x27eaac=_0x52b99f['oldName'],_0x1d7a8e=_0x52b99f['newName'];if(_0x27eaac==_0x1d7a8e)break;_0x33a150['batch']['addOperation'](_0x52b99f),_0x293837['model']['applyOperation'](_0x52b99f);const _0x5e5012='$elementName',_0x1ea358=_0x52b99f['position'],_0x41afde=_0x293837['model']['createRange'](_0x1ea358,_0x293837['model']['createPositionAt'](_0x1ea358['nodeAfter'],'end'));this['markAttributeChange'](_0x41afde,_0x5e5012,_0x27eaac,_0x1d7a8e,{'groupId':_0x257abf()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x18df56=_0x52b99f['oldValue'],_0x40f54f=_0x52b99f['newValue'];if(_0x18df56==_0x40f54f)break;_0x33a150['batch']['addOperation'](_0x52b99f),_0x293837['model']['applyOperation'](_0x52b99f);const _0x514332=_0x52b99f['key'];if(!this['_isRegisteredAttribute'](_0x514332))break;const _0x449baf=Lt(_0x52b99f['range'],_0x293837['model']);this['markAttributeChange'](_0x449baf,_0x514332,_0x18df56,_0x40f54f,{'groupId':_0x257abf()});break;}case'insert':{_0x33a150['batch']['addOperation'](_0x52b99f),_0x293837['model']['applyOperation'](_0x52b99f);if(_0x298b4e[_0x2dff4e+0x1]&&'move'==_0x298b4e[_0x2dff4e+0x1]['type'])break;const _0x13d8d5=_0x52b99f['position'],_0x393cf1=_0x52b99f['howMany'],_0x1180bf=Lt(_0x293837['model']['createRange'](_0x13d8d5,_0x13d8d5['getShiftedBy'](_0x393cf1)),_0x293837['model']);this['markInsertion'](_0x1180bf);break;}case'split':{_0x33a150['batch']['addOperation'](_0x52b99f),_0x293837['model']['applyOperation'](_0x52b99f);const _0xb1e586=_0x52b99f['splitPosition'],_0x121e04=_0x52b99f['moveTargetPosition'];this['markInsertion'](_0x293837['model']['createRange'](_0xb1e586,_0x121e04));break;}case'move':case'remove':_0x33a150['batch']['addOperation'](_0x52b99f),_0x293837['model']['applyOperation'](_0x52b99f);}}for(const _0x546e95 of _0x9e9a18)_0x546e95['detach'](),this['markDeletion'](_0x546e95);});}['_setSuggestionRange'](_0x4fd770,_0xfcafd3){const _0x2e1152=_0x4fd770['getFirstMarker']();this['_model']['change'](_0x58a2aa=>{_0x58a2aa['updateMarker'](_0x2e1152,{'range':_0xfcafd3});});}['_addThreadToSuggestion'](_0x36832f){const _0x1220ef=_0x36832f['id'],_0x280d3d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1220ef)||this['_commentsRepository']['addCommentThread']({'channelId':_0x280d3d,'threadId':_0x1220ef,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x315716=this['_commentsRepository']['getCommentThread'](_0x1220ef);_0x315716['unbind']('isRemovable'),_0x315716['isRemovable']=!0x1,_0x36832f['commentThread']=_0x315716;}['_checkSuggestionCorrectness'](_0x56086c,_0x1bfc63,_0x4e0b64,_0x3bd38e){if(_0x56086c['type']!=_0x1bfc63||_0x56086c['subType']!=_0x4e0b64||_0x56086c['creator']['id']!=_0x3bd38e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x111f2a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x173c20,_0x1f7d05){const _0x378d8b=_0x173c20['getFirstRange']();if(_0x1f7d05['isEqual'](_0x378d8b))_0x173c20['removeMarkers']();else{if(_0x378d8b['containsRange'](_0x1f7d05)){const _0x371ca2=this['_model']['createPositionAt'](_0x1f7d05['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x173c20,this['_model']['createRange'](_0x378d8b['start'],_0x371ca2));const _0xa91ab8=_0x257abf(),_0x1cb53e=_0x173c20['creator']['id'],_0x4a7fd7=_0x173c20['type']+':'+_0x173c20['subType'];this['_setSuggestionData']({'id':_0xa91ab8,'type':_0x4a7fd7,'createdAt':new Date(),'authorId':_0x1cb53e,'data':_0x173c20['data'],'attributes':_0x173c20['attributes']});const _0x3eae1a=this['_model']['createPositionAt'](_0x1f7d05['end']['parent'],'after'),_0x4d5bfa=this['_model']['createRange'](_0x3eae1a,_0x378d8b['end']);this['_addSuggestionMarker'](_0x4a7fd7,_0xa91ab8,_0x1cb53e,_0x4d5bfa);}else{if(_0x378d8b['containsPosition'](_0x1f7d05['start'])){const _0x1e5822=this['_model']['createPositionAt'](_0x1f7d05['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x173c20,this['_model']['createRange'](_0x378d8b['start'],_0x1e5822));}else{const _0x2c5a98=this['_model']['createPositionAt'](_0x1f7d05['end']['parent'],'after');this['_setSuggestionRange'](_0x173c20,this['_model']['createRange'](_0x2c5a98,_0x378d8b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1a80b0){for(const {suggestion:_0x2079c0,meta:_0x485ec1}of this['_findSuggestions'](_0x1a80b0,'insertion')){if(!_0x485ec1['isOwn'])continue;const _0x89490c=_0x2079c0['getRanges']();for(const _0x29a54e of _0x89490c)if(!_0x1a80b0['getDifference'](_0x29a54e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43e845){return this['editor']['plugins']['get']('Users')['getUser'](_0x43e845);}['_getExternalAuthor'](_0x245b5d){const _0x2d0acf=this['editor']['plugins']['get']('Users'),_0x4a8637=_0x4b0c9d('external:'+_0x245b5d),_0xb3a98d=_0x2d0acf['getUser'](_0x4a8637);return _0xb3a98d||_0x2d0acf['addUser']({'id':_0x4a8637,'name':_0x245b5d});}['_createSuggestion'](_0x47831d,_0x552231,_0x1ace57,_0x1e0d40,_0x1853df,_0x194a64){const _0x102139=this['_getAuthorFromId'](_0x1e0d40);if(!_0x102139)throw new _0x111f2a('track-changes-user-not-found',this,{'authorId':_0x1e0d40,'suggestionId':_0x1ace57});const _0x26117b=this['_suggestionFactory']['buildSuggestion'](_0x47831d,_0x552231,_0x1ace57,_0x102139,_0x1853df,_0x15f314=>{this['_updateSuggestionData'](_0x1ace57,{'attributes':_0x15f314});const _0x3de41c=this['getSuggestion'](_0x1ace57);this['_joinWithAdjacentSuggestions'](new Set([_0x3de41c])),this['_refreshSuggestionsChain'](new Set([_0x3de41c]));},_0x194a64);return this['listenTo'](_0x26117b,'accept',()=>{this['_updateSuggestionData'](_0x1ace57,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x26117b,'discard',()=>{this['_updateSuggestionData'](_0x1ace57,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1ace57,_0x26117b),this['_suggestionState']['set'](_0x26117b,'notReady'),_0x26117b;}['_splitMarkerName'](_0x3959bb){return Gt(_0x3959bb);}['_breakSuggestionMarker'](_0x14a45e,_0x47aa2c,_0xfa873c){const _0x2cb3af=_0x14a45e['getFirstRange'](),_0x3c1d35=_0x2cb3af['start'],_0x5ad476=_0x2cb3af['end'];this['_setSuggestionRange'](_0x14a45e,this['_model']['createRange'](_0x3c1d35,_0x47aa2c));const _0x7286c8=_0x257abf(),_0x683d49=_0x14a45e['creator']['id'],_0x4b1d3c=_0x14a45e['type']+(_0x14a45e['subType']?':'+_0x14a45e['subType']:'');this['_setSuggestionData']({'id':_0x7286c8,'type':_0x4b1d3c,'createdAt':new Date(),'authorId':_0x683d49,'originalSuggestionId':_0x14a45e['_originalSuggestionId']||_0x14a45e['id'],'attributes':_0x14a45e['attributes'],'data':_0x14a45e['data']});const _0x4f6c16=this['_getAttributeKey'](_0x14a45e);('formatBlock'==_0x14a45e['type']||_0x4f6c16&&this['_isBlockAttribute'](_0x4f6c16))&&(_0xfa873c=this['_model']['createPositionBefore'](_0xfa873c['parent'])),this['_addSuggestionMarker'](_0x4b1d3c,_0x7286c8,_0x683d49,this['_model']['createRange'](_0xfa873c,_0x5ad476));}['_findSuggestions'](_0x3c490d,_0x192d64=null){const _0x15ba82=[],_0x1bc95d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3c490d)||(_0x3c490d=[_0x3c490d]);for(const _0x3ae1d5 of this['getSuggestions']()){if(!_0x3ae1d5['isInContent'])continue;if(_0x192d64&&_0x3ae1d5['type']!=_0x192d64)continue;let _0x40345b=!0x1;for(const _0x3d51f0 of _0x3ae1d5['getRanges']()){for(const _0x13754b of _0x3c490d){const _0x21f069=_0x13754b['start']['isEqual'](_0x3d51f0['end'])||_0x13754b['end']['isEqual'](_0x3d51f0['start']);if(_0x21f069||_0x13754b['getIntersection'](_0x3d51f0)){const _0x30aa8c=_0x13754b['containsRange'](_0x3d51f0)&&zt(this['_model']['schema'],_0x3d51f0['start'],_0x13754b),_0x2ad7d9=_0x3d51f0['containsRange'](_0x13754b)&&zt(this['_model']['schema'],_0x13754b['start'],_0x3d51f0);_0x15ba82['push']({'suggestion':_0x3ae1d5,'meta':{'isOwn':_0x1bc95d==_0x3ae1d5['author'],'isNextTo':_0x21f069,'isInsideObject':_0x30aa8c,'containsRangeInObject':_0x2ad7d9}}),_0x40345b=!0x0;break;}}if(_0x40345b)break;}}return _0x15ba82;}['_addSuggestionMarker'](_0x552bd4,_0x381228,_0xd55efd,_0x4462d2,_0x3cabbc){this['_model']['change'](_0x444851=>{let _0x429679='suggestion:'+_0x552bd4+':'+_0x381228+':'+_0xd55efd;_0x3cabbc&&(_0x429679=_0x429679+':'+_0x3cabbc),_0x444851['addMarker'](_0x429679,{'range':_0x4462d2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x475721){const _0x53516f=_0x475721['previous'],_0x9a90c4=_0x475721['next'];_0x475721['previous']=null,_0x475721['next']=null,null!=_0x53516f&&_0x53516f['next']==_0x475721&&(_0x53516f['next']=_0x9a90c4),null!=_0x9a90c4&&_0x9a90c4['previous']==_0x475721&&(_0x9a90c4['previous']=_0x53516f),'ready'==this['_suggestionState']['get'](_0x475721)&&(this['_suggestionState']['set'](_0x475721,'removed'),this['fire']('suggestionUnloaded',_0x475721,_0x53516f,_0x9a90c4));}['_setSuggestionData'](_0x44ab21){const _0x3a63ad=_0x44ab21['id'],_0x1de308=this['addSuggestionData'](_0x44ab21);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xaff9e7=this['editor']['plugins']['get']('PendingActions'),_0x4d4b25=_0x1de308['hasComments'],_0x1259b3=_0x1de308['subType']?_0x1de308['type']+':'+_0x1de308['subType']:_0x1de308['type'],_0x486f46=this['editor']['locale'],_0x4cb2c9=_0xaff9e7['add'](o(_0x486f46,'PENDING_ACTION_SUGGESTION')),_0x13255c={'id':_0x3a63ad,'type':_0x1259b3,'hasComments':_0x4d4b25,'data':_0x44ab21['data']||null,'originalSuggestionId':_0x44ab21['originalSuggestionId']||null,'attributes':_0x1de308['attributes']};this['_adapter']['addSuggestion'](_0x13255c)['then'](_0x21d051=>{_0x1de308['_saved']=!0x0,_0xaff9e7['remove'](_0x4cb2c9),_0x21d051&&_0x21d051['createdAt']&&(this['_suggestions']['get'](_0x3a63ad)['createdAt']=_0x21d051['createdAt']);})['catch'](_0x399276=>{throw _0x3cf8e5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1de308['discard']();}),_0x1de308['stopListening'](),this['_suggestions']['delete'](_0x1de308['id']),this['_suggestionState']['delete'](_0x1de308),_0x399276;});}return _0x1de308;}['_isBlockAttribute'](_0x155e76){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x155e76);}['_isInlineAttribute'](_0x448cf3){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x448cf3);}['_updateSuggestionData'](_0x25155a,_0x3be533){const _0x41db94=this['editor']['plugins']['get']('PendingActions'),_0x14658b=this['getSuggestion'](_0x25155a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x14658b['_saved']){const _0x14b639=_0x41db94['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x25155a,_0x3be533)['then'](()=>{_0x41db94['remove'](_0x14b639);});}else _0x14658b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x25155a,_0x3be533);});}}['_getSuggestionData'](_0x47947e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x111f2a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47947e);}['_handleNewSuggestionMarker'](_0x2cf70b){const {id:_0x366b6c,type:_0x2de172,subType:_0x2305a0,authorId:_0x158fbc}=this['_splitMarkerName'](_0x2cf70b),_0x3c4379=this['_suggestions']['get'](_0x366b6c)||this['_createSuggestion'](_0x2de172,_0x2305a0,_0x366b6c,_0x158fbc,{});switch(this['_checkSuggestionCorrectness'](_0x3c4379,_0x2de172,_0x2305a0,_0x158fbc),this['_suggestionState']['get'](_0x3c4379)){case'notReady':this['_getSuggestionData'](_0x366b6c)['then'](_0x2715b1=>{let _0x399b13=Promise['resolve']();_0x2715b1['hasComments']&&(_0x399b13=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x366b6c})),_0x399b13['then'](()=>{this['addSuggestionData'](_0x2715b1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3c4379,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x366b6c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3c4379,'ready'),this['fire']('suggestionLoaded',_0x3c4379);break;case'ready':this['fire']('suggestionChanged',_0x3c4379);}return _0x3c4379['addMarkerName'](_0x2cf70b),_0x3c4379;}['_refreshSuggestionsChain'](_0x300fa1){const _0x1c978f=Array['from'](_0x300fa1),_0x28c8d5=_0x1c978f['filter'](_0xfb953b=>'attribute'==_0xfb953b['type']);this['_refreshAttributeSuggestionsChain'](_0x28c8d5);const _0x447b9f=_0x1c978f['filter'](_0x58d6c5=>!_0x58d6c5['isMultiRange']&&'attribute'!=_0x58d6c5['type']),_0x326b84=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x153164=>!_0x153164['isMultiRange']&&'attribute'!=_0x153164['type']),_0x4d7361=_0x326b84['filter'](_0x34a82d=>!_0x300fa1['has'](_0x34a82d)),_0x20fb08=new Map(_0x326b84['map'](_0x4c9cc5=>[_0x4c9cc5,this['_suggestionFactory']['getSuggestionCallback'](_0x4c9cc5['type'],_0x4c9cc5['subType'],'chain')])),_0x53b802=new Map(_0x326b84['map'](_0x32750d=>[_0x32750d,_0x32750d['getFirstRange']()])),_0x1fa711=new Set(),_0x3792cc=new Set();for(let _0x4f5007=0x0;_0x4f5007<_0x447b9f['length'];_0x4f5007++)_0x43d504(_0x447b9f[_0x4f5007],_0x447b9f,_0x4f5007+0x1);for(let _0x20b65f=0x0;_0x20b65f<_0x447b9f['length'];_0x20b65f++)_0x43d504(_0x447b9f[_0x20b65f],_0x4d7361,0x0);const _0x54a2f4=new Set();for(let _0x2325f0=0x0;_0x2325f0<_0x447b9f['length'];_0x2325f0++){const _0x9d79d9=_0x447b9f[_0x2325f0];!_0x3792cc['has'](_0x9d79d9)&&_0x9d79d9['previous']&&(_0x54a2f4['add'](_0x9d79d9['previous']),_0x9d79d9['previous']['next']===_0x9d79d9&&(_0x9d79d9['previous']['next']=null),_0x9d79d9['previous']=null),!_0x1fa711['has'](_0x9d79d9)&&_0x9d79d9['next']&&(_0x54a2f4['add'](_0x9d79d9['next']),_0x9d79d9['next']['previous']===_0x9d79d9&&(_0x9d79d9['next']['previous']=null),_0x9d79d9['next']=null);}function _0x43d504(_0x295744,_0x2f0a27,_0x51559f){for(let _0x4e80d2=_0x51559f;_0x4e80d2<_0x2f0a27['length'];_0x4e80d2++){const _0x223199=_0x1170af(_0x295744,_0x2f0a27[_0x4e80d2]);_0x223199&&(_0x223199[0x0]['next']=_0x223199[0x1],_0x223199[0x1]['previous']=_0x223199[0x0],_0x1fa711['add'](_0x223199[0x0]),_0x3792cc['add'](_0x223199[0x1]));}}function _0x1170af(_0x516545,_0x1627a0){if(_0x516545['author']['id']!==_0x1627a0['author']['id'])return null;const _0x26c286=_0x20fb08['get'](_0x516545)(_0x516545,_0x1627a0,_0x53b802['get'](_0x516545),_0x53b802['get'](_0x1627a0));if(!_0x26c286)return null;return _0x20fb08['get'](_0x1627a0)(_0x516545,_0x1627a0,_0x53b802['get'](_0x516545),_0x53b802['get'](_0x1627a0))?_0x26c286[0x1]['commentThread']&&_0x26c286[0x1]['commentThread']['length']?null:_0x26c286:null;}_0x54a2f4['size']&&this['_refreshSuggestionsChain'](_0x54a2f4);}['_refreshAttributeSuggestionsChain'](_0x32a11d){if(0x0==_0x32a11d['length'])return;const _0x39e471=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54e83c=>'attribute'==_0x54e83c['type']&&_0x54e83c['_isDataLoaded']),_0x1cfc0f=[],_0x5304f6=new Map();for(const _0x3ac612 of _0x39e471){const _0x12a482=_0x4b0c9d(_0x3ac612['attributes']);_0x5304f6['has'](_0x12a482)||(_0x5304f6['set'](_0x12a482,_0x1cfc0f['length']),_0x1cfc0f['push']([]));const _0x4d8db8=_0x5304f6['get'](_0x12a482);_0x1cfc0f[_0x4d8db8]['push'](_0x3ac612);}!(function(){_0x1cfc0f['sort']((_0x259f4e,_0xc51124)=>{const _0x52e30b=_0x259f4e[0x0]['createdAt'],_0x87b54b=_0xc51124[0x0]['createdAt'];return _0x52e30b==_0x87b54b?_0x259f4e[0x0]['attributes']['groupId']<_0xc51124[0x0]['attributes']['groupId']?-0x1:0x1:_0x52e30b<_0x87b54b?-0x1:0x1;});for(const _0x40941b of _0x1cfc0f)_0x40941b['sort']((_0x18d33a,_0x38edfc)=>_0x18d33a['id']<_0x38edfc['id']?-0x1:0x1);}());for(let _0x40e943=0x0;_0x40e943<_0x1cfc0f['length'];_0x40e943++){if(0x0==_0x1cfc0f[_0x40e943]['length'])continue;const _0x13463b=[];for(let _0x22cf32=_0x40e943+0x1;_0x22cf32<_0x1cfc0f['length'];_0x22cf32++)0x0!=_0x1cfc0f[_0x22cf32]['length']&&_0x25c93e(_0x1cfc0f[_0x40e943],_0x1cfc0f[_0x22cf32])&&_0x13463b['push'](_0x22cf32);for(const _0x5b1659 of _0x13463b)_0x1cfc0f[_0x40e943]=_0x1cfc0f[_0x40e943]['concat'](_0x1cfc0f[_0x5b1659]),_0x1cfc0f[_0x5b1659]=[];}for(const _0x42dc0e of _0x1cfc0f)for(let _0x1d5b8=0x0;_0x1d5b8<_0x42dc0e['length'];_0x1d5b8++){const _0x3e380c=_0x42dc0e[_0x1d5b8+0x1]||null;_0x42dc0e[_0x1d5b8]['next']!==_0x3e380c&&(_0x42dc0e[_0x1d5b8]['next']=_0x3e380c);}for(const _0x81e4ca of _0x1cfc0f)for(let _0x1e4ce0=0x0;_0x1e4ce0<_0x81e4ca['length'];_0x1e4ce0++){const _0x4ae03d=_0x81e4ca[_0x1e4ce0-0x1]||null;_0x81e4ca[_0x1e4ce0]['previous']!==_0x4ae03d&&(_0x81e4ca[_0x1e4ce0]['previous']=_0x4ae03d);}function _0x25c93e(_0x55a7eb,_0x4b8f21){if(_0x55a7eb[0x0]['attributes']['groupId']!==_0x4b8f21[0x0]['attributes']['groupId']&&_0x55a7eb[0x0]['author']!==_0x4b8f21[0x0]['author'])return!0x1;if(!function(_0xad6c9c,_0x2b0ac6){if(!_0xad6c9c['hasComments']&&!_0x2b0ac6['hasComments'])return!0x0;if(_0xad6c9c['hasComments']&&_0x2b0ac6['hasComments'])return!0x1;if(_0xad6c9c['hasComments']&&_0x2b0ac6['createdAt']<_0xad6c9c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2b0ac6['hasComments']&&_0xad6c9c['createdAt']<_0x2b0ac6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x55a7eb[0x0],_0x4b8f21[0x0]))return!0x1;const _0x137636=Pt(_0x55a7eb[0x0]['attributes'],['groupId','trackingSessionId']),_0x5774c0=Pt(_0x4b8f21[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xe0300(_0x137636,_0x5774c0))return!0x1;if(_0x55a7eb[0x0]['attributes']['groupId']==_0x4b8f21[0x0]['attributes']['groupId'])return!0x0;if(_0x55a7eb[0x0]['attributes']['trackingSessionId']!==_0x4b8f21[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x55a7eb['every'](_0x403eb5=>_0x4b8f21['some'](_0x18e571=>_0x403eb5['getFirstRange']()['isEqual'](_0x18e571['getFirstRange']())))&&_0x4b8f21['every'](_0x5742b1=>_0x55a7eb['some'](_0x166430=>_0x5742b1['getFirstRange']()['isEqual'](_0x166430['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4f8ec6){const _0x27c179=Array['from'](_0x4f8ec6),_0x39f5bd=this['getSuggestions']({'skipNotAttached':!0x0}),_0x209e51=_0x39f5bd['filter'](_0x4a6335=>!_0x4f8ec6['has'](_0x4a6335)),_0xc715b1=new Map(_0x27c179['map'](_0x2f45bb=>[_0x2f45bb,this['_suggestionFactory']['getSuggestionCallback'](_0x2f45bb['type'],_0x2f45bb['subType'],'join')])),_0x2bf46a=new Map(_0x39f5bd['map'](_0x5db2a0=>[_0x5db2a0,_0x5db2a0['getRanges']()]));for(let _0x5438e3=0x0;_0x5438e3<_0x27c179['length'];_0x5438e3++){if(_0x398843(this,_0x27c179[_0x5438e3],_0x27c179,_0x5438e3+0x1))return!0x0;}for(let _0x129f1e=0x0;_0x129f1e<_0x27c179['length'];_0x129f1e++){if(_0x398843(this,_0x27c179[_0x129f1e],_0x209e51,0x0))return!0x0;}return!0x1;function _0x398843(_0x25dace,_0x3a74e9,_0x2c3444,_0x326a69){for(let _0x18136c=_0x326a69;_0x18136c<_0x2c3444['length'];_0x18136c++){const _0x2b1542=_0x2c3444[_0x18136c];if(_0x2b1542['type']!==_0x3a74e9['type']||_0x2b1542['author']['id']!==_0x3a74e9['author']['id']||_0x2b1542['subType']!==_0x3a74e9['subType'])continue;if(!en(_0x3a74e9,_0x2b1542))continue;if('attribute'==_0x3a74e9['type']&&_0x3a74e9['data']['oldValue']!=_0x2b1542['data']['oldValue'])continue;if('attribute'==_0x3a74e9['type']&&_0x25dace['_isBlockAttribute'](_0x3a74e9['data']['key']))continue;if('formatBlock'==_0x3a74e9['type']){const _0x506275=_0x25dace['editor']['model'],_0x7a8521=_0x3a74e9['getContainedElement']();if(_0x7a8521&&(_0x506275['schema']['isObject'](_0x7a8521)||_0x506275['schema']['isLimit'](_0x7a8521)))continue;}const _0x157f3d=_0xc715b1['get'](_0x3a74e9),_0x4f5c14=_0x2bf46a['get'](_0x3a74e9),_0x2388ed=_0x2bf46a['get'](_0x2b1542),_0x21a211=_0x3a74e9['commentThread']&&_0x3a74e9['commentThread']['length'],_0x2596e9=_0x2b1542['commentThread']&&_0x2b1542['commentThread']['length'];if(!_0x21a211&&_0x157f3d(_0x2388ed,_0x4f5c14))return _0x25dace['_joinSuggestions'](_0x2b1542,_0x3a74e9),_0x2bf46a['delete'](_0x3a74e9),!0x0;if(!_0x2596e9&&_0x157f3d(_0x4f5c14,_0x2388ed))return _0x25dace['_joinSuggestions'](_0x3a74e9,_0x2b1542),_0x2bf46a['delete'](_0x2b1542),!0x0;}return!0x1;}}['_joinSuggestions'](_0x41bcac,_0x174b9b){if(_0x41bcac['isMultiRange']){for(const _0x22253a of _0x174b9b['getRanges']())_0x41bcac['addRange'](_0x22253a);}else{const _0x5c6e35=_0x174b9b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x41bcac,this['_model']['createRange'](_0x41bcac['getFirstRange']()['start'],_0x5c6e35));}_0x174b9b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1c7bfc,_0x3d2c6d,_0x242067){const _0x2c1202=_0x1c7bfc['startsWith']('format')||_0x1c7bfc['startsWith']('attribute')?'FORMATTING':_0x1c7bfc['toUpperCase']();return o(this['editor']['locale'],_0x3d2c6d+'_'+_0x2c1202+'_SUGGESTION_ANNOUNCEMENT',_0x242067);}['_initAriaMarkerChangeAnnouncements'](){const _0x3cbcbf=this['editor'];if(!_0x3cbcbf['ui'])return;const {ariaLiveAnnouncer:_0xd85bb0}=_0x3cbcbf['ui'];_0x2d91fb(this['_model'],({left:_0x409686,entered:_0x5f460f})=>{for(const _0x3bfce6 of _0x409686){const {group:_0x4e7a56,type:_0x31fa42}=this['_splitMarkerName'](_0x3bfce6['name']);if('suggestion'===_0x4e7a56){_0xd85bb0['announce'](this['_getMarkerAnnouncementText'](_0x31fa42,'LEAVE'));break;}}for(const _0x3f4b90 of _0x5f460f){const {group:_0x297969,type:_0x55d385}=this['_splitMarkerName'](_0x3f4b90['name']);if('suggestion'===_0x297969){_0xd85bb0['announce'](this['_getMarkerAnnouncementText'](_0x55d385,'ENTER',_0x2f914b(_0xb34256)));break;}}});}['_processAttributeChanges'](_0x38fa74){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb6852b=this['editor'],_0x3eee9a=_0xb6852b['model']['document']['differ']['getChanges']();if(0x0==_0x3eee9a['length'])return!0x1;const _0x3eabe8=[],_0x1d7c87=_0x3eee9a['filter'](_0x56ff49=>'attribute'==_0x56ff49['type']),_0x5d863d=_0x3eee9a['filter'](_0x56cefb=>'insert'==_0x56cefb['type']&&'$text'!=_0x56cefb['name']),_0x3d43e8=_0x3eee9a['filter'](_0xc0173e=>'remove'==_0xc0173e['type']&&'$text'!=_0xc0173e['name']);for(const _0x18e4bb of _0x1d7c87)_0x3eabe8['push']({'key':_0x18e4bb['attributeKey'],'newValue':_0x18e4bb['attributeNewValue'],'oldValue':_0x18e4bb['attributeOldValue'],'range':Zt(_0x18e4bb['range'],_0xb6852b['model'])});for(const _0x27775f of _0x5d863d){const _0x25acf1=_0x3d43e8['find'](_0x37d78a=>_0x37d78a['position']['isEqual'](_0x27775f['position']));_0x25acf1&&_0x3eabe8['push']({'key':m,'newValue':_0x27775f['name'],'oldValue':_0x25acf1['name'],'range':_0xb6852b['model']['createRangeOn'](_0x27775f['position']['nodeAfter'])});}return 0x0!=_0x3eabe8['length']&&this['_reduceExistingSuggestions'](_0x38fa74,_0x3eabe8);}['_processAttributeSuggestions'](_0x36f908){let _0xd02764=!0x1;const _0x1aa9c5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3e0b74=>_0x3e0b74['data']['newRange']&&_0x3e0b74['name']['startsWith']('suggestion:attribute:'));for(const _0x1f3ccc of _0x1aa9c5){const {subType:_0x6349e1,id:_0x22a2b2}=this['_splitMarkerName'](_0x1f3ccc['name']),_0x3ddde3=_0x6349e1['split']('|')[0x0];for(const _0x240dd2 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x240dd2['id']!=_0x22a2b2&&'attribute'==_0x240dd2['type']&&_0x240dd2['data']&&_0x240dd2['data']['key']==_0x3ddde3&&_0x240dd2['getFirstRange']()['isIntersecting'](_0x1f3ccc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x240dd2,_0x1f3ccc['data']['newRange'],_0x36f908),_0xd02764=!0x0);}return _0xd02764;}['recordAttributeChanges'](_0x371b0b){this['_recordAttributeSuggestions']=!0x0,_0x371b0b();}['_isRegisteredAttribute'](_0x453bd7){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x453bd7);}['_reduceExistingSuggestions'](_0x185521,_0x4e120d){if(0x0==_0x4e120d['length'])return!0x1;let _0x289f3e=!0x1;for(const _0x112861 of _0x4e120d){const _0x581db1=this['_findSuggestions'](_0x112861['range'],'attribute')['filter'](_0x53ab01=>!_0x53ab01['meta']['isNextTo'])['map'](_0x386b40=>_0x386b40['suggestion']),_0x531ebf=_0x4b0c9d({'newValue':_0x112861['newValue']});_0x581db1['filter'](_0x9ee130=>{const [_0x472d7f,_0x5509a7]=_0x9ee130['subType']['split']('|');return _0x472d7f==_0x112861['key']&&_0x5509a7!=_0x531ebf;})['forEach'](_0x3457a7=>{this['_reduceSuggestionAttributeRange'](_0x3457a7,_0x112861['range'],_0x185521),_0x289f3e=!0x0;});}return _0x289f3e;}['_reduceSuggestionAttributeRange'](_0x3d56aa,_0x325d2e,_0x4fd6fd){const _0x518576=_0x3d56aa['getFirstRange']()['getDifference'](_0x325d2e);0x0!==_0x518576['length']?0x1!==_0x518576['length']?this['_breakSuggestionMarker'](_0x3d56aa,_0x325d2e['start'],_0x325d2e['end']):this['_setSuggestionRange'](_0x3d56aa,_0x518576[0x0]):_0x4fd6fd['removeMarker'](_0x3d56aa['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4476ae){this['_editor']=_0x4476ae,this['_model']=_0x4476ae['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4a4633,_0x3eb402,_0x3d7bc2,_0x3eb591,_0x10dfd5,_0x592d5e,_0x38c65b){return new x(this['_model'],{'type':_0x4a4633,'subType':_0x3eb402,'id':_0x3d7bc2,'originalSuggestionId':_0x38c65b,'author':_0x3eb591,'creator':_0x3eb591,'attributes':_0x10dfd5,'onAttributesChange':_0x592d5e,'onAccept':(..._0x339476)=>this['getSuggestionCallback'](_0x4a4633,_0x3eb402,'accept')(..._0x339476),'onDiscard':(..._0x5f3871)=>this['getSuggestionCallback'](_0x4a4633,_0x3eb402,'discard')(..._0x5f3871)});}['registerCustomCallback'](_0x48db9a,_0x498906,_0x516393,_0x548d8b){const _0x4073d9=_0x48db9a+':'+_0x498906+':'+_0x516393;this['_customCallbacks']['set'](_0x4073d9,_0x548d8b);}['getSuggestionCallback'](_0x2703da,_0x17701a,_0x7b2985){const _0x423fa4=_0x2703da+':'+_0x17701a+':'+_0x7b2985;return this['_customCallbacks']['get'](_0x423fa4)||this['_defaultCallbacks']['get'](_0x2703da+':'+_0x7b2985);}['_registerDefaultCallbacks'](){const _0x244ce4=()=>!0x1,_0x57ffaf=_0x1450d7=>{_0x1450d7['sort']((_0x37649b,_0x4d4dbb)=>_0x37649b['start']['isBefore'](_0x4d4dbb['start'])?0x1:-0x1),this['_model']['change'](_0x29a8d5=>{for(const _0x6e35ea of _0x1450d7){let _0x164426;_0x164426=_0x6e35ea['end']['isAtEnd']&&_0x6e35ea['end']['parent']==_0x6e35ea['start']['nodeAfter']?_0x29a8d5['createSelection'](_0x6e35ea['start']['nodeAfter'],'on'):_0x29a8d5['createSelection'](_0x6e35ea),this['_model']['deleteContent'](_0x164426,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0xf2ed35=(_0x13c7c1,_0x54ddd5)=>{_0x54ddd5&&this['_model']['change'](_0x2b2492=>{const {commandName:_0x13f5e2,commandParams:_0x25fd0c=[]}=_0x54ddd5,_0x559845=_0x13c7c1['map'](_0x58fc5f=>(Kt(_0x58fc5f)&&(_0x58fc5f=this['_model']['createRange'](_0x58fc5f['end'])),_0x58fc5f))['filter'](_0x2d9325=>'$graveyard'!==_0x2d9325['root']['rootName']);if(_0x559845['length']<0x1)return;const _0x1017e4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xce458=>_0x481a5c['fromRange'](_0xce458));_0x2b2492['setSelection'](_0x559845);for(const _0x1a20e6 of this['_editor']['commands']['commands']())_0x1a20e6['refresh']();_0x25fd0c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x13f5e2,..._0x25fd0c);const _0x1d80b1=_0x1017e4['filter'](_0x1da76b=>'$graveyard'!=_0x1da76b['root']['rootName']);_0x1d80b1['length']>0x0&&_0x2b2492['setSelection'](_0x1d80b1);for(const _0x2f210e of _0x1017e4)_0x2f210e['detach']();});},_0x274400=(_0x146e5c,_0x761679)=>0x1==_0x146e5c['length']&&0x1==_0x761679['length']&&_0x146e5c[0x0]['end']['isEqual'](_0x761679[0x0]['start']),_0x5b7058=(_0x43c9a8,_0x323c51,_0x219a4f,_0x4f6ac5)=>nn(_0x43c9a8,_0x323c51,_0x219a4f,_0x4f6ac5)?[_0x43c9a8,_0x323c51]:nn(_0x323c51,_0x43c9a8,_0x4f6ac5,_0x219a4f)?[_0x323c51,_0x43c9a8]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x244ce4),this['_defaultCallbacks']['set']('insertion:discard',_0x57ffaf),this['_defaultCallbacks']['set']('insertion:join',_0x274400),this['_defaultCallbacks']['set']('insertion:chain',_0x5b7058),this['_defaultCallbacks']['set']('deletion:accept',_0x57ffaf),this['_defaultCallbacks']['set']('deletion:discard',_0x244ce4),this['_defaultCallbacks']['set']('deletion:join',_0x274400),this['_defaultCallbacks']['set']('deletion:chain',_0x5b7058),this['_defaultCallbacks']['set']('formatInline:accept',_0xf2ed35),this['_defaultCallbacks']['set']('formatInline:discard',_0x244ce4),this['_defaultCallbacks']['set']('formatInline:join',_0x274400),this['_defaultCallbacks']['set']('formatInline:chain',_0x244ce4),this['_defaultCallbacks']['set']('formatBlock:accept',_0xf2ed35),this['_defaultCallbacks']['set']('formatBlock:discard',_0x244ce4),this['_defaultCallbacks']['set']('formatBlock:join',_0x274400),this['_defaultCallbacks']['set']('formatBlock:chain',_0x244ce4),this['_defaultCallbacks']['set']('attribute:accept',_0x244ce4),this['_defaultCallbacks']['set']('attribute:discard',(_0x47fc9a,_0x54de39)=>{if(!_0x54de39)return;const _0x780ade=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x42ba3a=>{if(_0x54de39['key']==m)for(const _0x15ce5c of _0x47fc9a){const _0x44d13c=_0x15ce5c['start']['nodeAfter'],_0x5237b8=_0x54de39['oldValue'];_0x42ba3a['rename'](_0x44d13c,_0x5237b8);}else{if(_0x780ade['_isBlockAttribute'](_0x54de39['key'])){for(const _0x5686dd of _0x47fc9a)void 0x0!==_0x54de39['oldValue']?_0x42ba3a['setAttribute'](_0x54de39['key'],_0x54de39['oldValue'],_0x5686dd['start']['nodeAfter']):_0x42ba3a['removeAttribute'](_0x54de39['key'],_0x5686dd['start']['nodeAfter']);}else{for(const _0x402100 of _0x47fc9a)_0x54de39['oldValue']?_0x42ba3a['setAttribute'](_0x54de39['key'],_0x54de39['oldValue'],_0x402100):_0x42ba3a['removeAttribute'](_0x54de39['key'],_0x402100);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x274400);}}function zt(_0x396c47,_0x107a9b,_0x2a3af4){for(const _0x56b21e of _0x107a9b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x56b21e['root']==_0x56b21e)return!0x1;if(!_0x2a3af4['containsItem'](_0x56b21e))return!0x1;if(_0x396c47['isObject'](_0x56b21e)||_0x396c47['isLimit'](_0x56b21e))return!0x0;}return!0x1;}function Kt(_0x5b856a){return _0x5b856a['end']['parent']==_0x5b856a['start']['nodeAfter']&&_0x5b856a['end']['isAtStart'];}function Wt(_0x39f9ab,_0x8280c1,_0x27e583,_0x322880){const _0x16e2f1=_0x20aaaa=>!_0x20aaaa['item']['is']('$textProxy')&&!_0x322880['isObject'](_0x20aaaa['item']),_0x443901=_0x39f9ab['start']['getLastMatchingPosition'](_0x16e2f1),_0x42e74a=_0x39f9ab['end']['getLastMatchingPosition'](_0x16e2f1,{'direction':'backward'});return(!_0x39f9ab['start']['isEqual'](_0x443901)||!_0x39f9ab['end']['isEqual'](_0x42e74a))&&(_0x443901['isBefore'](_0x42e74a)?_0x27e583['updateMarker'](_0x8280c1,{'range':_0x27e583['createRange'](_0x443901,_0x42e74a)}):_0x27e583['removeMarker'](_0x8280c1),!0x0);}function Ht(_0x3e3aa3){return _0x4b0c9d(_0x3e3aa3);}function Qt(_0x4e2b43){const _0x5d29c5=_0x4e2b43['start']['nodeAfter'];return _0x5d29c5&&_0x5d29c5['is']('element');}function Xt(_0x410b6b){return Kt(_0x410b6b)||function(_0x3deb33){return _0x3deb33['start']['parent']==_0x3deb33['end']['nodeBefore']&&_0x3deb33['start']['isAtEnd'];}(_0x410b6b);}function Yt(_0x1d6a69,_0x1e715e){try{const _0x3c10c4=_0x1d6a69['getRange']();for(const _0x34d16c of _0x1e715e)if(_0x1d6a69!==_0x34d16c&&_0x3c10c4&&_0x3c10c4['isIntersecting'](_0x34d16c['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0xaf0863,_0xfeba15){return null==_0xaf0863['end']['nodeBefore']&&_0xaf0863['end']['parent']==_0xaf0863['start']['nodeAfter']?tn(_0xaf0863['start']['nodeAfter'],_0xfeba15):_0xaf0863;}function tn(_0x523b9a,_0x513824){const _0xba5e83=_0x513824['schema']['isObject'](_0x523b9a)||_0x513824['schema']['isSelectable'](_0x523b9a);return _0x513824['createRange'](_0x513824['createPositionAt'](_0x523b9a,'before'),_0xba5e83?_0x513824['createPositionAfter'](_0x523b9a):_0x513824['createPositionAt'](_0x523b9a,'end'));}function nn(_0x5e72bf,_0x11b394,_0x24f5aa,_0x154a50){return!!en(_0x5e72bf,_0x11b394)&&_0x24f5aa['end']['isEqual'](_0x154a50['start']);}function en(_0x2ef3ba,_0x20b72f){if(!_0x2ef3ba['_isDataLoaded']||!_0x20b72f['_isDataLoaded'])return!0x1;const _0x27df73=new Set(Object['keys'](_0x2ef3ba['attributes'])),_0x467a0a=new Set(Object['keys'](_0x20b72f['attributes']));if(_0x27df73['delete']('groupId'),_0x467a0a['delete']('groupId'),0x0==_0x27df73['size']&&0x0==_0x467a0a['size'])return!0x0;if(_0x27df73['size']!=_0x467a0a['size'])return!0x1;const _0x21d2ab={..._0x2ef3ba['attributes']},_0x16da7b={..._0x20b72f['attributes']};return delete _0x21d2ab['groupId'],delete _0x16da7b['groupId'],JSON['stringify'](_0x21d2ab)==JSON['stringify'](_0x16da7b);}function sn(_0x118600,_0x2feb8f){const _0x1c3789=on(_0x118600['attributes']),_0x1eee9e=on(_0x2feb8f);if(!_0x118600['_isDataLoaded'])return!0x1;for(const _0x56399b of Object['keys'](_0x1eee9e))if(!_0xe0300(_0x1c3789[_0x56399b],_0x1eee9e[_0x56399b]))return!0x1;return!0x0;}function on(_0x35b1e7){const _0x17c487=Object['assign']({},_0x35b1e7);return delete _0x17c487['skipNestingCheck'],delete _0x17c487['tablePasteChainId'],_0x17c487;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x3c04a9(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3c5531,_0x257537,_0x438154,_0x2309a4){super(),this['model']=_0x257537,this['view']=_0x438154,this['commentThreadController']=_0x2309a4,this['_editor']=_0x3c5531,this['_acceptCommand']=_0x3c5531['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3c5531['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1a320b,_0x5b799a)=>_0x1a320b||_0x5b799a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x276f05=>_0x276f05&&this['_editor']['model']['canEditAt'](_0x257537['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5b3a91=>_0x5b3a91&&this['_editor']['model']['canEditAt'](_0x257537['getRanges']())),this['_pendingAction']=null,_0x438154['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x438154,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x438154,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x438154,'change:isDirty',()=>{_0x438154['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 _0x168abb=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x168abb);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2ba5cd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4f4598,_0x4d90c0,_0x25afdf,_0x321da5){super(_0x4f4598),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1576c6(_0x4f4598,o(_0x4f4598,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4d90c0['authoredAt']),this['bind']('authoredAt')['to'](_0x4d90c0),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',_0x4d90c0,'authoredAt',this,'descriptionParts',(_0x5a0259,_0x4ca54d,_0x2de598)=>{const _0x4f390e=_0x2de598['map'](_0x5e3a22=>ls(_0x5e3a22['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x5a0259-0x1,_0x4d90c0['author']['name'],_0x4ca54d?_0x321da5['formatDateTime'](_0x4ca54d):'',new DOMParser()['parseFromString'](_0x4f390e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x53236d(),this['focusTracker']=new _0x460eae(),this['keystrokes']=new _0x3f8102(),this['focusCycler']=new _0x5e5a1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x29541b=>_0x29541b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4d90c0,this['_localUser']=_0x25afdf,this['_config']=_0x321da5,_0x321da5['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x424111(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1729c4}=this['_config'];this['commentsListView']=new _0x1729c4(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',_0x405ea8=>_0x405ea8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4d1be1,_0x493bba)=>_0x4d1be1||!!_0x493bba);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3aeb8b}=this['_config'],_0x32c48e=new _0x3aeb8b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b5836=_0x32c48e['commentInputView'];return _0x32c48e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b5836,'value',(_0x4b791c,_0x25555d,_0x2b39f8)=>!!_0x2b39f8||_0x4b791c&&!_0x25555d),_0x4b5836['on']('submit',(_0x127487,_0x37f22f)=>{this['fire']('addComment',_0x37f22f),_0x4b5836['editor']['setData']('');}),_0x4b5836['on']('cancel',()=>this['focus']()),_0x4b5836['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x32c48e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x1e84a2,_0x3d2d5e,_0x3357ed,_0x352660){super(_0x1e84a2,_0x3d2d5e,_0x3357ed,_0x352660),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x22e996=>_0x22e996&&_0x22e996[0x0]?_0x22e996[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3680ad,_0x49f6fd)=>{let _0x53dde4='';for(const _0x142151 of _0x3680ad)_0x53dde4+='<p>'+ls(_0x142151['content'],_0x142151['color'])+'</p>';return _0x49f6fd?_0x53dde4:_0x4d92c2(_0x53dde4,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x352660['SuggestionView'](_0x1e84a2,_0x3d2d5e,{'formatDateTime':_0x352660['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 _0x3224e4=this['bindTemplate'],_0x3e645f=[this['suggestionView']];return this['commentsListView']&&_0x3e645f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3e645f['push'](this['commentThreadInputView']),_0x3e645f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3224e4['if']('isActive','ck-suggestion-wrapper--active'),_0x3224e4['to']('type',_0x2fd470=>'ck-suggestion-'+_0x2fd470),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':_0x3224e4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3e645f};}['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 _0x2ba5cd{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x530040,_0x46e582,_0x14ec9d){super(_0x530040),this['_model']=_0x46e582,this['_config']=_0x14ec9d,this['set']('description',''),this['bind']('authoredAt')['to'](_0x46e582),this['acceptButton']=this['_createButton'](o(_0x530040,'Accept\x20suggestion'),_0x46abf4,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x530040,'Discard\x20suggestion'),_0x58a017,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x40e69b(_0x530040,_0x46e582['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x53236d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x460eae(),this['keystrokes']=new _0x3f8102(),this['focusCycler']=new _0x5e5a1f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x548248=>_0x548248['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x581b65=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x581b65['innerHTML']=this['description'],this['on']('change:description',(_0x839ce1,_0x5976a8,_0x4fe9d5)=>{_0x581b65['innerHTML']=_0x4fe9d5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2f3eb6=this['bindTemplate'],_0x4918aa=[{'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':_0x2f3eb6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2f3eb6['to']('authoredAt',_0x39d410=>this['_config']['formatDateTime'](_0x39d410))}]}]},{'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']&&_0x4918aa['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':_0x4918aa}]};}['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'](_0xaf0c36,_0x33d9e4,_0x4e3a1b,_0xc08def,_0x3b36e1){const _0x360538=new _0x385949(this['locale']);return _0x360538['set']({'label':_0xaf0c36,'icon':_0x33d9e4,'tooltip':!0x0,'tooltipPosition':_0x3b36e1}),_0x360538['extendTemplate']({'attributes':{'class':_0x4e3a1b}}),_0x360538['on']('execute',()=>{this['fire'](_0xc08def,this['_model']['id']);}),_0x360538;}['_setupKeyboardNavigation'](){const _0x4008c2=this['element'];this['keystrokes']['listenTo'](_0x4008c2);for(const _0x4d07f4 of this['focusables'])this['focusTracker']['add'](_0x4d07f4['element']),this['keystrokes']['listenTo'](_0x4d07f4['element']);this['keystrokes']['set']('enter',(_0x1699bc,_0x3b5d6b)=>{_0x4008c2===_0x1699bc['target']&&(this['focusCycler']['focusFirst'](),_0x3b5d6b());}),this['keystrokes']['set']('esc',(_0x3b3ac5,_0x37a481)=>{_0x4008c2!==_0x3b3ac5['target']&&(this['focus'](),_0x37a481());});}}class u extends _0x959a6f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x48ca16,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x183a9c){super(_0x183a9c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5ae0f=this['editor']['config'];_0x5ae0f['define']('trackChanges.SuggestionThreadView',fe),_0x5ae0f['define']('trackChanges.SuggestionView',we),_0x5ae0f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5ae0f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x59a565,_0x4e2ee0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x362b2c,_0x2d0a80]of this['_handleControllerBuffer']){const _0xd3fcd9=this['_suggestionToController']['has'](_0x362b2c);_0xd3fcd9||_0x2d0a80?_0xd3fcd9&&_0x2d0a80&&this['_destroyController'](_0x362b2c):this['_initializeController'](_0x362b2c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x59a565,_0x4e2ee0);}['init'](){const _0x3ec0fd=this['editor'],_0x3acc93=_0x3ec0fd['plugins']['get']('TrackChangesEditing'),_0x4eeeda=_0x3ec0fd['plugins']['get']('Annotations'),_0x150ef4=_0x3ec0fd['plugins']['get']('EditorAnnotations'),_0x2729ad=_0x3ec0fd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x150ef4['addSourceCollector'](()=>{const _0x2c3673=[];for(const [_0x5057fc,_0x81febc]of Array['from'](this['_suggestionToController'])){const _0x3af6f5=_0x5057fc['getAllAdjacentSuggestions'](),_0x12576e=[];for(const _0x470105 of _0x3af6f5){if(!_0x470105['isInContent'])continue;if(_0x470105['isMultiRange']){_0x12576e['push'](..._0x470105['getRanges']());continue;}const _0x1e0848=_0x470105['getFirstRange']();if(_0x12576e['length']>0x0){const _0x2e69d9=_0x12576e[0x0]['getJoined'](_0x1e0848);if(_0x2e69d9){_0x12576e[0x0]=_0x2e69d9;continue;}}_0x12576e['push'](_0x1e0848);}_0x2c3673['push']([_0x81febc['view'],_0x12576e]);}return _0x2c3673;}),this['listenTo'](_0x3acc93,'suggestionLoaded',(_0x2f6ac8,_0x2fda3d)=>{this['listenTo'](_0x2fda3d,'change:previous',(_0x22568f,_0x56be8e,_0xb25f0a,_0x4b2e15)=>{_0x2fda3d['isInContent']&&(null==_0xb25f0a?(this['_updateController'](_0x4b2e15['head']),this['_handleSuggestionControllerDelayed'](_0x2fda3d,!0x1)):(this['_updateController'](_0xb25f0a['head']),null==_0x4b2e15&&this['_handleSuggestionControllerDelayed'](_0x2fda3d,!0x0)));}),null!==_0x2fda3d['previous']?this['_updateController'](_0x2fda3d['head']):this['_handleSuggestionControllerDelayed'](_0x2fda3d,!0x1);}),this['listenTo'](_0x3acc93,'suggestionUnloaded',(_0x3694d1,_0x51fce6,_0x4b674b)=>{this['stopListening'](_0x51fce6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x51fce6),this['_suggestionToController']['has'](_0x51fce6)&&this['_destroyController'](_0x51fce6),_0x4b674b&&this['_updateController'](_0x4b674b['head']);}),this['listenTo'](_0x3acc93,'suggestionChanged',(_0x18ee26,_0x173c28)=>{this['_updateController'](_0x173c28);}),this['listenTo'](_0x4eeeda,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2729ad,'addComment',(_0x3061c7,{threadId:_0x135f84,isFromAdapter:_0x15e29e})=>{if(_0x15e29e||!_0x3acc93['hasSuggestion'](_0x135f84))return;const _0x54b7a5=_0x3acc93['getSuggestion'](_0x135f84);this['_suggestionToController']['get'](_0x54b7a5)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x22af3f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c7ae2;for(const _0x192bc4 in _0x22af3f){const _0x964cec=_0x192bc4,_0x90cf3e=_0x22af3f[_0x964cec];if('trackChangesLicenseKeyValid'==_0x90cf3e||'trackChangesLicenseKeyInvalid'==_0x90cf3e||'trackChangesLicenseKeyExpired'==_0x90cf3e||'trackChangesLicenseKeyDomainLimit'==_0x90cf3e||'trackChangesLicenseKeyNotAllowed'==_0x90cf3e||'trackChangesLicenseKeyEvaluationLimit'==_0x90cf3e||'trackChangesLicenseKeyUsageLimit'==_0x90cf3e){delete _0x22af3f[_0x964cec],_0x1c7ae2=_0x90cf3e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1c7ae2&&_0x22af3f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1c7ae2&&_0x22af3f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1c7ae2&&_0x22af3f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1c7ae2&&_0x22af3f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1c7ae2&&_0x22af3f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1c7ae2&&_0x22af3f['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xdac85d){const _0x2247e5=this['_suggestionToController']['get'](_0xdac85d);if(!_0x2247e5)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2247e5['view'])||null;}['getSuggestionForAnnotation'](_0x44062a){const _0x3de9b6=this['_viewToController']['get'](_0x44062a['innerView']);return _0x3de9b6?_0x3de9b6['model']:null;}['_refreshActiveMarkers'](){const _0x2b20ed=this['editor']['plugins']['get']('Annotations'),_0x4ed1dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfcd337=Array['from'](_0x2b20ed['activeAnnotations'],_0x467bce=>_0x467bce['innerView'])['filter'](_0x3cde3c=>this['_viewToController']['has'](_0x3cde3c)),_0x141556=[];for(const _0x4c2127 of _0xfcd337){const _0x204794=this['_viewToController']['get'](_0x4c2127)['model']['getAllAdjacentSuggestions']();_0x141556['push'](..._0x204794['reduce']((_0x4f3ecf,_0x43b20b)=>[..._0x4f3ecf,..._0x43b20b['getMarkerNames']()],[]));}_0x4ed1dd['activeMarkers']=_0x141556;}['_addUIComponentsToFactory'](){const _0x3f0574=this['editor'],_0x4dfd24=_0x3f0574['locale'],_0x356813=o(_0x4dfd24,'Track\x20changes'),_0x560ed1=new _0x277329([{'type':'switchbutton','model':new _0x544900({'withText':!0x0,'isToggleable':!0x0,'label':_0x356813,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x544900({'withText':!0x0,'label':o(_0x4dfd24,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x544900({'withText':!0x0,'label':o(_0x4dfd24,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x544900({'withText':!0x0,'label':o(_0x4dfd24,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x544900({'withText':!0x0,'label':o(_0x4dfd24,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3f0574['plugins']['has']('TrackChangesPreview')&&_0x560ed1['addMany']([{'type':'separator'},{'type':'button','model':new _0x544900({'withText':!0x0,'label':o(_0x4dfd24,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x460eeb of _0x560ed1)if(ke(_0x460eeb)){const _0x5656f1=_0x3f0574['commands']['get'](_0x460eeb['model']['commandName']);_0x460eeb['model']['bind']('isOn','isEnabled')['to'](_0x5656f1,'value','isEnabled');}_0x3f0574['ui']['componentFactory']['add']('trackChanges',_0x1215c3=>this['_createToolbarButton'](_0x1215c3,_0x560ed1,_0x356813)),_0x3f0574['ui']['componentFactory']['add']('menuBar:trackChanges',_0x232ee9=>this['_createMenuBarMenu'](_0x232ee9,_0x560ed1,_0x356813));}['_createToolbarButton'](_0x5ecb65,_0xbaa394,_0x57fd8b){const _0x42e86d=_0x3c1474(_0x5ecb65,_0x4e2d1d),_0x7d4062=this['editor']['commands']['get']('trackChanges');_0x42e86d['buttonView']['set']({'tooltip':_0x57fd8b,'label':_0x57fd8b,'icon':_0x2a8e05}),_0x42e86d['buttonView']['bind']('isOn')['to'](_0x7d4062,'value'),_0x42e86d['buttonView']['on']('execute',()=>{_0x7d4062['execute'](),this['editor']['editing']['view']['focus']();}),_0xc4153e(_0x42e86d,_0xbaa394,{'role':'menu'});const _0x279d29=[];for(const _0x165873 of _0xbaa394)ke(_0x165873)&&_0x279d29['push'](this['editor']['commands']['get'](_0x165873['model']['commandName']));const _0x5e24ba=_0x42e86d['buttonView'];return _0x5e24ba['actionView']['unbind']('isEnabled'),_0x5e24ba['arrowView']['unbind']('isEnabled'),_0x5e24ba['actionView']['bind']('isEnabled')['to'](_0x7d4062,'isEnabled'),_0x5e24ba['arrowView']['bind']('isEnabled')['toMany'](_0x279d29,'isEnabled',(..._0x225ccb)=>_0x225ccb['some'](_0x35183e=>_0x35183e)),_0x42e86d['on']('execute',_0x482c50=>{this['editor']['execute'](_0x482c50['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x42e86d;}['_createMenuBarMenu'](_0x1593c3,_0x3cad7b,_0x488856){const _0x5f4c76=new _0x302f51(_0x1593c3),_0x337df8=this['editor']['commands']['get']('trackChanges');_0x5f4c76['buttonView']['set']({'label':_0x488856,'icon':_0x2a8e05});const _0x2512a3=new _0x22e11a(_0x1593c3);for(const _0xb8d739 of _0x3cad7b){if('separator'==_0xb8d739['type']){_0x2512a3['items']['add'](new _0x1b51d6(_0x1593c3));continue;}const _0x4c25c0=new _0x369233(_0x1593c3,_0x5f4c76),_0x33772a=new _0x1a656f(_0x1593c3),_0x57e547=_0xb8d739['model'];_0x33772a['bind'](...Object['keys'](_0x57e547))['to'](_0x57e547),_0x33772a['delegate']('execute')['to'](_0x5f4c76),_0x33772a['on']('execute',()=>{this['editor']['execute'](_0x57e547['commandName']),this['editor']['editing']['view']['focus']();}),_0x4c25c0['children']['add'](_0x33772a),_0x2512a3['items']['add'](_0x4c25c0);}return _0x5f4c76['bind']('isEnabled')['to'](_0x337df8,'isEnabled'),_0x5f4c76['panelView']['children']['add'](_0x2512a3),_0x5f4c76;}['_initializeController'](_0x3e8c17){const _0x34bd52=this['editor'],_0x39f070=_0x34bd52['config'],_0x28729e=_0x34bd52['plugins']['get']('Annotations'),_0x43c732=_0x34bd52['plugins']['get']('CommentsRepository'),_0x39243b=_0x34bd52['plugins']['get']('EditorAnnotations'),_0x5e6630=_0x34bd52['plugins']['get'](_0x48ca16)['me'],_0x4efb72=_0x39f070['get']('trackChanges')['SuggestionThreadView'],_0x1b9b63=_0x39f070['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x34029e,CommentThreadInputView:_0xec69a9}=_0x34bd52['plugins']['get']('CommentsUI');let _0x37e0dc,_0x12c292,_0xe690c7;this['_annotationViews']['has'](_0x3e8c17['id'])?(_0x12c292=this['_annotationViews']['get'](_0x3e8c17['id']),_0x37e0dc=_0x12c292['mainView']):(_0x37e0dc=new _0x4efb72(_0x34bd52['locale'],_0x3e8c17,_0x5e6630,{'disableComments':this['_disableComments'],'editorConfig':{..._0x39f070['get']('comments.editorConfig'),'licenseKey':_0x39f070['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x39f070['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x39f070['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x39f070['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x47d009(_0x39f070['get']('locale'),_0x34bd52['locale']),'CommentView':_0x39f070['get']('comments')['CommentView'],'CommentsListView':_0x34029e,'CommentThreadInputView':_0xec69a9,'SuggestionView':_0x1b9b63}),_0x37e0dc['suggestionView']['acceptButton']['on']('execute',()=>{_0x34bd52['editing']['view']['focus']();}),_0x37e0dc['suggestionView']['discardButton']['on']('execute',()=>{_0x34bd52['editing']['view']['focus']();}),_0x12c292=_0x28729e['createAnnotationView'](this['editor']['locale'],_0x37e0dc),_0x12c292['bind']('isDirty')['to'](_0x37e0dc,'isDirty'),_0x12c292['bind']('length')['to'](_0x37e0dc),_0x12c292['bind']('type')['to'](_0x37e0dc,'type',_0x5ff4c6=>'suggestion-'+_0x5ff4c6),_0x37e0dc['on']('escape',()=>{_0xe690c7['fire']('escape');}),this['_annotationViews']['set'](_0x3e8c17['id'],_0x12c292));const _0x470118=_0x43c732['createCommentThreadController'](_0x3e8c17['commentThread'],_0x37e0dc),_0x340b52=new pe(_0x34bd52,_0x3e8c17,_0x37e0dc,_0x470118),_0x4ca5c0=_0x3e8c17['getAllAdjacentSuggestions']()['filter'](_0xff41dd=>_0xff41dd['isInContent']);_0x37e0dc['descriptionParts']=_0x34bd52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4ca5c0),this['_suggestionToController']['set'](_0x3e8c17,_0x340b52),this['_viewToController']['set'](_0x37e0dc,_0x340b52);const _0x5c4584=()=>{const _0x163a9d=[],_0x2436c8=_0x3e8c17['getAllAdjacentSuggestions']()['filter'](_0x2e4c7c=>_0x2e4c7c['isInContent']);for(const _0x4b00e0 of _0x2436c8)_0x163a9d['push'](..._0x4b00e0['getMarkers']());return _0x5244e2(_0x34bd52['editing'],_0x163a9d);};_0xe690c7=_0x28729e['createAnnotation']({'view':_0x12c292,'target':_0x5c4584,'type':()=>'suggestion-'+_0x340b52['view']['type'],'isVisible':!!_0x5c4584()}),_0x43c732['_bindAnnotationToEditors'](_0x37e0dc,_0xe690c7),_0x28729e['add'](_0xe690c7),_0x39243b['registerAnnotation'](_0xe690c7);}['_destroyController'](_0x239d7f){const _0x455035=this['editor']['plugins']['get']('CommentsRepository'),_0x4a8721=this['editor']['plugins']['get']('Annotations'),_0x23454e=this['_suggestionToController']['get'](_0x239d7f),_0x19d5e0=_0x23454e['view'],_0x2bec63=_0x4a8721['getByInnerView'](_0x19d5e0);_0x455035['_unbindEditors'](_0x19d5e0),_0x2bec63&&_0x4a8721['remove'](_0x2bec63),this['_suggestionToController']['delete'](_0x239d7f),this['_viewToController']['delete'](_0x19d5e0),_0x23454e['destroy']();}['_updateController'](_0x3ff71d){if(!_0x3ff71d['isInContent']||!this['_suggestionToController']['has'](_0x3ff71d))return;const _0x57b783=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f11d1=this['_suggestionToController']['get'](_0x3ff71d),_0x115e4a=_0x3ff71d['getAllAdjacentSuggestions']();_0x5f11d1['view']['descriptionParts']=_0x57b783['descriptionFactory']['getDescriptions'](_0x115e4a);}['destroy'](){for(const _0xf1e2c1 of this['_suggestionToController']['keys']())this['_destroyController'](_0xf1e2c1);for(const _0x2abb1d of this['_annotationViews']['values']())_0x2abb1d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x32bd97){return'model'in _0x32bd97;}class Ne extends _0x959a6f{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2d7080){this['editor']['plugins']['get'](d)['adapter']=_0x2d7080;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x563ec2){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x563ec2);}['getSuggestions']({skipNotAttached:_0x2b1e4e=!0x1,toJSON:_0x5f475a=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2b1e4e,'toJSON':_0x5f475a});}['getSuggestion'](_0x36deb6){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x36deb6);}}const p=['Pagination'];class re extends _0x959a6f{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2ef30f=this['editor'];if(_0x2ef30f['config']['define']('trackChangesData.editorCreator',_0x28924e=>{const _0x292375=_0x2ef30f['model']['document']['getRootNames']()['reduce']((_0x1ad056,_0x4d24cf)=>(_0x1ad056[_0x4d24cf]='',_0x1ad056),{});return _0x2ef30f['constructor']['create'](_0x292375,_0x28924e);}),'function'!=typeof _0x2ef30f['config']['get']('trackChangesData')['editorCreator'])throw new _0x111f2a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2b818e){return P(this['editor'],!0x0,_0x2b818e);}['getDataWithDiscardedSuggestions'](_0x54217e){return P(this['editor'],!0x1,_0x54217e);}}class Fe extends _0x959a6f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f2dfd){function _0x2f300c(_0x4e19a4){return _0x4e19a4['map'](_0x2c1cd7=>String['fromCharCode'](_0x2c1cd7))['join']('');}super(_0x4f2dfd),this['result']='end',_0x4f2dfd[_0x2f300c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f300c([0x76,0x69,0x65,0x77])][_0x2f300c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f300c([0x61,0x75,0x74,0x6f]),_0x4f2dfd[_0x2f300c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2f300c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f300c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2f300c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2f300c([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 De(_0x306579){return void 0x0!==_0x306579['getRootsAttributes'];}async function P(_0x5a69ce,_0x3935d2,_0x2b824a){const _0x1a43c9=_0x2e5561(_0x5a69ce,p);_0x1a43c9['plugins']['push'](d,Fe),_0x1a43c9['rootsAttributes']=De(_0x5a69ce)?_0x5a69ce['getRootsAttributes']():void 0x0;const _0x36bad6=document['createDocumentFragment'](),_0x5f6a86=_0x5a69ce['config']['get']('trackChangesData')['editorCreator'],_0x2c95cc=await _0x5f6a86(_0x1a43c9,()=>function(_0x2cff6b){const _0xe3a779=document['createElement']('div');return _0x2cff6b['appendChild'](_0xe3a779),_0xe3a779;}(_0x36bad6));!function(_0x2580d6,_0x473962){const _0x1f3093=_0x2580d6['model']['document']['getRootNames']()['reduce']((_0x2384bc,_0x4141a4)=>(_0x2384bc[_0x4141a4]=_0x2580d6['data']['get']({'rootName':_0x4141a4}),_0x2384bc),{}),_0x52912f=_0x2580d6['plugins']['get']('Users')['users']['map'](_0x11f9c7=>({'id':_0x11f9c7['id'],'name':_0x11f9c7['name']})),_0x4bd74f=_0x2580d6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x374ee1=_0x2580d6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f2e9f=_0x473962['plugins']['get']('Users'),_0x3dc18e=_0x473962['plugins']['get']('TrackChangesEditing'),_0x4979c1=_0x473962['plugins']['get']('CommentsRepository');for(const _0x17e43b of _0x4979c1['getCommentThreads']())_0x17e43b['remove']();for(const _0x2b393f of _0x52912f)_0x1f2e9f['getUser'](_0x2b393f['id'])||_0x1f2e9f['addUser'](_0x2b393f);_0x1f2e9f['me']||_0x1f2e9f['useAnonymousUser']();for(const _0x84c05b of _0x374ee1)_0x4979c1['addCommentThread'](_0x84c05b);for(const _0x38d338 of _0x4bd74f)_0x3dc18e['addSuggestionData'](_0x38d338);_0x473962['data']['set'](_0x1f3093);}(_0x5a69ce,_0x2c95cc),_0x2c95cc['execute'](_0x3935d2?'acceptAllSuggestions':'discardAllSuggestions');const _0x128690=De(_0x2c95cc)?_0x2c95cc['getFullData'](_0x2b824a):_0x2c95cc['data']['get'](_0x2b824a);return await _0x2c95cc['destroy'](),_0x128690;}class Me extends _0x2ba5cd{['options'];constructor(_0x1afa3c,_0x31baac){super(_0x1afa3c),this['options']=_0x31baac,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'](_0x32ccf8,_0x4ecb5b){if(!this['element'])return;const _0x3259d7=[];for(const [_0x3cba5b,_0x41a9f2]of _0x32ccf8){const _0x4fb074=document['createElement']('div');_0x4fb074['setAttribute']('data-ck-root-name',_0x3cba5b),_0x4fb074['className']=_0x41a9f2['classes']+'\x20ck-track-changes-preview__root-container',_0x4fb074['innerHTML']=_0x41a9f2['content'],_0x3259d7['push'](_0x4fb074);}_0x4ecb5b(this['element'],_0x3259d7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x309c82{constructor(_0x383422){super(_0x383422),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3357cb=this['editor'],_0x48ba25=_0x3357cb['locale'],_0x368fc7=_0x3357cb['plugins']['get']('Dialog');let _0x2930c3;const _0x341072=function(_0x54bdfc){const _0x58b2c2={};if('editables'in _0x54bdfc['ui']['view']){for(const [_0x57ff74,_0x5203c5]of Object['entries'](_0x54bdfc['ui']['view']['editables']))_0x58b2c2[_0x57ff74]=_0x5203c5['element'];}else _0x58b2c2[_0x54bdfc['model']['document']['getRootNames']()[0x0]]=_0x54bdfc['ui']['view']['editable']['element'];return _0x58b2c2;}(_0x3357cb),_0x110525=function(_0xaba211){let _0x5da6d7=0x0;for(const _0xc465b7 of Object['values'](_0xaba211))_0x5da6d7=Math['max'](_0x5da6d7,_0xc465b7['getBoundingClientRect']()['width']);let _0x448f3a=0x0;for(const _0x14656f of Object['values'](_0xaba211))_0x448f3a+=_0x14656f['getBoundingClientRect']()['height'];const _0x4e7180=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2d30d8=Math['min'](_0x448f3a,_0x4e7180);return{'width':_0x5da6d7,'height':_0x2d30d8};}(_0x341072);_0x368fc7['show']({'id':'finalContentPreview','title':o(_0x48ba25,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x48ba25,{'dialogRects':_0x110525}),'onHide':()=>{_0x2930c3['detachFromDom']();},'onShow':()=>{_0x3357cb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x468ff0=>{const _0x44a138=this['_standarizeRootsData'](_0x468ff0,_0x3357cb,_0x341072);_0x368fc7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44a138,_0x3357cb['config']['get']('trackChanges.preview.renderFunction'));}),_0x2930c3=new _0x134e0f(_0x48ba25,[_0x368fc7['view']]),_0x2930c3['attachToDom'](),_0x2930c3['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3357cb['once']('destroy',()=>{_0x2930c3['detachFromDom']();});const _0x2cf244=_0x368fc7['view']['headerView']['class'];_0x368fc7['view']['headerView']['class']=_0x2cf244?_0x2cf244+'\x20ck-reset_all':'ck-reset_all',_0x368fc7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x368fc7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x28ba33=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x51660d=_0x28ba33['previewMode'],_0x1f0f6a={};if('$labels'===_0x51660d){for(const _0x3100fd of _0x28ba33['getMergeFieldsIds']())_0x1f0f6a[_0x3100fd]=_0x28ba33['getLabel'](_0x3100fd)||_0x3100fd;}else{const _0x3ee3e6='$defaultValues'===_0x51660d?_0x28ba33['getDefaultValues']():_0x28ba33['getDataSetValues'](_0x51660d,!0x0);for(const _0x13fa38 of Object['entries'](_0x3ee3e6)){const [_0x34186a,_0x1c9189]=_0x13fa38;_0x1f0f6a[_0x34186a]=null!==_0x1c9189?_0x1c9189:_0x28ba33['getLabel'](_0x34186a)||_0x34186a;}}return{'mergeFieldsData':_0x1f0f6a};}['_standarizeRootsData'](_0x5deb88,_0x529eb5,_0x306a1e){let _0xf419b8;if('string'==typeof _0x5deb88){const _0x46f793=_0x529eb5['model']['document']['getRootNames']()[0x0];_0xf419b8={[_0x46f793]:_0x5deb88};}else _0xf419b8=_0x5deb88;const _0x536813=this['_fixMediaEmbeds'](_0xf419b8,_0x529eb5),_0x21ab7d=function(_0x2877c6,_0xd0f32a){for(const [_0x3109a1,_0x42d49f]of _0x2877c6)_0x42d49f['classes']=_0xd0f32a[_0x3109a1]['classList']['value']['replace']('ck-focused','');return _0x2877c6;}(this['_sortRoots'](_0x529eb5)['reduce']((_0x5598f5,_0x472161)=>(_0x5598f5['push']([_0x472161,{'content':_0x536813[_0x472161],'classes':''}]),_0x5598f5),[]),_0x306a1e);return _0x21ab7d;}['_fixMediaEmbeds'](_0x3a7132,_0x3123de){if(!_0x3123de['plugins']['has']('MediaEmbedEditing'))return _0x3a7132;const _0x40333f=_0x3123de['plugins']['get']('MediaEmbedEditing');for(const [_0x4415a3,_0x43343c]of Object['entries'](_0x3a7132)){const _0x43b207=document['createElement']('div');_0x43b207['innerHTML']=_0x43343c,(_0x43b207['querySelectorAll']('figure.media')['forEach'](_0x2556b2=>{const _0x5b2b03=_0x2556b2['querySelector']('oembed');if(_0x5b2b03){const _0x2fa944=_0x5b2b03['getAttribute']('url');if(_0x2fa944){const _0x1acb2f=_0x40333f['registry']['getMediaViewElement'](new _0xc473be(_0x3123de['editing']['view']['document']),_0x2fa944,{'elementName':'','renderForEditingView':!0x0}),_0x3f56f5=document['createElement']('div');_0x3f56f5['classList']['add']('ck-media__wrapper'),_0x1acb2f['render'](_0x3f56f5,_0x3123de['editing']['view']['domConverter']),_0x5b2b03['replaceWith'](_0x3f56f5);}}}),_0x3a7132[_0x4415a3]=_0x43b207['innerHTML']);}return _0x3a7132;}['_sortRoots'](_0x1d7cde){if(!function(_0x2fc76d){return void 0x0!==_0x2fc76d['getRootsAttributes'];}(_0x1d7cde))return _0x1d7cde['model']['document']['getRootNames']();const _0x4ddba1=[],_0x42664e=new Map();for(const _0x16eef0 of _0x1d7cde['model']['document']['getRootNames']()){const _0x40da91=_0x1d7cde['editing']['view']['getDomRoot'](_0x16eef0)['getClientRects']()['item'](0x0);_0x4ddba1['push'](_0x16eef0),_0x42664e['set'](_0x16eef0,_0x40da91);}return _0x4ddba1['sort']((_0x1f12fc,_0x4559ff)=>{const _0x49b749=_0x42664e['get'](_0x1f12fc),_0x3ce103=_0x42664e['get'](_0x4559ff);return _0x49b749['y']-_0x3ce103['y']||_0x49b749['x']-_0x3ce103['x'];}),_0x4ddba1;}}class Ue extends _0x959a6f{static get['requires'](){return[re,_0x46668e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a1ae3){super(_0x4a1ae3),_0x4a1ae3['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4a1ae3['config']['define']('trackChanges.preview.renderFunction',(_0x6f590b,_0x22120a)=>{for(const _0x431771 of _0x22120a)_0x6f590b['appendChild'](_0x431771);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x3a87a0,Plugin as _0x46e166,PendingActions as _0x7d041f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x421710,ObservableMixin as _0x21dcbf,uid as _0xf371f8,priorities as _0x46e3bc,insertToPriorityArray as _0x2b5360,logWarning as _0x342a12,getEnvKeystrokeText as _0x315045,FocusTracker as _0x158530,KeystrokeHandler as _0x451e34,Collection as _0x1f4d8f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x44e669,IconCancel as _0x3c2023,IconTrackChanges as _0x515704}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x488dc2,View as _0x48a8df,ViewCollection as _0x2735b7,FocusCycler as _0x559703,UIModel as _0x4a7c1f,createDropdown as _0x39ded0,SplitButtonView as _0x308329,addListToDropdown as _0x3e1505,MenuBarMenuView as _0x39e8d0,MenuBarMenuListView as _0x279e5c,ListSeparatorView as _0x14d5eb,MenuBarMenuListItemView as _0x2b73a1,MenuBarMenuListItemButtonView as _0x4c9a9c,BodyCollection as _0x4992fe,Dialog as _0x566640}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x35c779,Users as _0x136b9c,DocumentCompare as _0x2c6ba5,fixElementSuggestionRange as _0x552948,hashObject as _0x43daf5,splitSuggestionMarkerName as _0x11da72,surroundingMarkersDetector as _0x3fc19c,FOCUS_ANNOTATION_KEYSTROKE as _0x1375db,AriaDescriptionView as _0x546f2c,setupThreadKeyboardNavigation as _0xe34ed,trimHtml as _0x400e5b,UserView as _0x19c31f,LateFocusButtonView as _0x39bffe,getDateTimeFormatter as _0x1a5672,getAllMarkersDomElementsSorted as _0x4bf4ee,sanitizeEditorConfig as _0x38cd05}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x4693fe,ModelLiveRange as _0x541ce3,ModelLivePosition as _0x258158,ViewDowncastWriter as _0x55eee0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x4ed240,set as _0x5b0a4d,isEqual as tt,unset as et,omit as nt}from'es-toolkit/compat';import{Delete as it,Input as st}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as rt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ot}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class at extends _0x3a87a0{['_enabledCommands'];constructor(_0x182142,_0x16a2f5){super(_0x182142),this['_enabledCommands']=_0x16a2f5,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 _0x8989e1 of this['editor']['commands']['commands']())_0x8989e1['affectsData']&&!this['_enabledCommands']['has'](_0x8989e1)&&_0x8989e1['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4f1eba of this['editor']['commands']['commands']())_0x4f1eba['affectsData']&&!this['_enabledCommands']['has'](_0x4f1eba)&&_0x4f1eba['clearForceDisabled']('TrackChangesCommand');}}class ct extends _0x3a87a0{['_suggestions'];constructor(_0x4945c4,_0x3dffc6){super(_0x4945c4),this['_suggestions']=_0x3dffc6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2593ab){const _0xddabc7=this['_suggestions']['get'](_0x2593ab);if(!_0xddabc7)throw new _0x421710('track-changes-accept-suggestion-not-found',this);const _0x1ee146=_0xddabc7['getRanges']();this['editor']['model']['canEditAt'](_0x1ee146)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xddabc7);}}class lt extends _0x3a87a0{['_suggestions'];constructor(_0x5c41ad,_0x112822){super(_0x5c41ad),this['_suggestions']=_0x112822,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x55364d){const _0x309c5f=this['_suggestions']['get'](_0x55364d);if(!_0x309c5f)throw new _0x421710('track-changes-discard-suggestion-not-found',this);const _0x5c885b=_0x309c5f['getRanges']();this['editor']['model']['canEditAt'](_0x5c885b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x309c5f);}}function ut(_0x245e2c,_0xfbc25b){let _0x54660e='';return _0x54660e+=_0x245e2c['split']('*')['map']((_0x5af8ba,_0x1328f3)=>_0x1328f3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+ht(_0x5af8ba)+'</span>':ht(_0x5af8ba))['join'](''),_0xfbc25b&&(_0x54660e+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xfbc25b['value']+'\x22\x20title=\x22'+_0xfbc25b['title']+'\x22></span>'),_0x54660e;}function ht(_0x564491){const _0x16694b=document['createElement']('span');return _0x16694b['innerText']=_0x564491,_0x16694b['innerHTML'];}function dt(_0x5d7fcd){return _0x5d7fcd['sort']((_0x33ac5f,_0x38560e)=>'attribute'===_0x33ac5f['type']&&'attribute'!==_0x38560e['type']?-0x1:'attribute'!==_0x33ac5f['type']&&'attribute'===_0x38560e['type']?0x1:'deletion'==_0x33ac5f['type']&&'deletion'!=_0x38560e['type']?-0x1:'deletion'!=_0x33ac5f['type']&&'deletion'==_0x38560e['type']?0x1:0x0);}function ft(_0x320a81,_0x52e455){let _0x444b6c,_0x133813=0x0;const _0x291e5a=[],_0x2c7f41=_0x52e455['schema'];for(;_0x133813<_0x320a81['length'];){const _0x158328=_0x320a81[_0x133813],_0x1cf6a3=_0x320a81[_0x133813+0x1];_0x444b6c||(_0x444b6c=_0x52e455['createPositionBefore'](_0x158328)),gt(_0x52e455,_0x158328,_0x1cf6a3)||(_0x291e5a['push'](_0x52e455['createRange'](_0x444b6c,_0x2c7f41['isObject'](_0x158328)?_0x52e455['createPositionAfter'](_0x158328):_0x52e455['createPositionAt'](_0x158328,'end'))),_0x444b6c=null),_0x133813++;}return _0x291e5a;}function gt(_0x3a18ce,_0x49e2a3,_0x36ff66){if(!_0x36ff66)return!0x1;const _0x39dc05=_0x3a18ce['createPositionAfter'](_0x49e2a3),_0x564905=_0x3a18ce['createPositionBefore'](_0x36ff66);return _0x39dc05['isTouching'](_0x564905);}function mt(_0x4a3673,_0x2b9a0b,_0x3d24e6){for(;_0x3d24e6['length'];){const _0x4b6cc2=_0x3d24e6['splice'](0x0,0x64);_0x4a3673['change'](()=>{for(const _0x5b9388 of _0x4b6cc2)_0x5b9388['isInContent']&&_0x2b9a0b['execute'](_0x5b9388['id']);});}}class Et extends _0x3a87a0{['_command'];['_suggestions'];constructor(_0x4ec29a,_0x5e930e,_0x4e021b){super(_0x4ec29a),this['_command']=_0x5e930e,this['_suggestions']=_0x4e021b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x332d82=Array['from'](this['_suggestions']['values']())['some'](_0x5645f5=>_0x5645f5['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x332d82;}['execute'](){const _0x3f8bbe=dt(Array['from'](this['_suggestions']['values']()));for(const _0x59dbe0 of _0x3f8bbe){const _0x7846dc=_0x59dbe0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x7846dc))return;}mt(this['editor']['model'],this['_command'],_0x3f8bbe);}}class Tt extends _0x3a87a0{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x414f9f,_0x25d3dc,_0x11f855){super(_0x414f9f),this['_command']=_0x25d3dc,this['_suggestions']=_0x11f855,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x44b630=this['editor']['model']['document']['selection'],_0x54ebdf=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x11d48d,_0x494787){const _0x3285f8=Array['from'](_0x11d48d['getRanges']()),_0x1eefdf=new Set();for(const _0x16bcc9 of _0x494787)if(_0x16bcc9['isInContent']){for(const _0x4e95c7 of _0x3285f8)for(const _0x9eb2ff of _0x16bcc9['getRanges']())(_0x4e95c7['isIntersecting'](_0x9eb2ff)||_0x11d48d['isCollapsed']&&!_0x16bcc9['isMultiRange']&&_0x16bcc9['next']&&_0x9eb2ff['end']['isTouching'](_0x4e95c7['start']))&&_0x1eefdf['add'](_0x16bcc9);}return _0x1eefdf;}(_0x44b630,_0x54ebdf),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x48b5ac=dt(Array['from'](this['_selectedSuggestions']));for(const _0x1b042b of _0x48b5ac){const _0x3476ef=_0x1b042b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3476ef))return;}mt(this['editor']['model'],this['_command'],_0x48b5ac);}}class _t extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x21dcbf(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xc6e0b3,_0x3d7046){super(),this['id']=_0x3d7046['id'],this['type']=_0x3d7046['type'],this['subType']=_0x3d7046['subType']||null,this['author']=_0x3d7046['author'],this['creator']=_0x3d7046['creator']||_0x3d7046['author'],this['isExternal']=Boolean(_0x3d7046['attributes']&&_0x3d7046['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x3d7046['originalSuggestionId']||null,this['_model']=_0xc6e0b3,this['_onAccept']=_0x3d7046['onAccept'],this['_onDiscard']=_0x3d7046['onDiscard'],this['_onAttributesChange']=_0x3d7046['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3d7046['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 _0x458103=this;for(;_0x458103['previous'];)_0x458103=_0x458103['previous'];return _0x458103;}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'](_0x4452bd){this['_markerNames']['add'](_0x4452bd);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x18e601=>this['_model']['markers']['get'](_0x18e601))['filter'](_0x257f9f=>_0x257f9f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xbea0cd=>{for(const _0x4c71fb of this['getMarkers']())_0xbea0cd['removeMarker'](_0x4c71fb);}),this['_markerNames']['clear']();}['removeMarker'](_0x52e7bb){this['_model']['change'](_0x3303f6=>{_0x3303f6['removeMarker'](_0x52e7bb);}),this['_markerNames']['delete'](_0x52e7bb);}['addRange'](_0x1ccc1e){const _0x457d60='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+_t['getMultiRangeId']();this['addMarkerName'](_0x457d60),this['_model']['change'](_0xea3586=>{_0xea3586['addMarker'](_0x457d60,{'range':_0x1ccc1e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x150982){for(const _0x58da6f of this['getRanges']())if(_0x58da6f['isIntersecting'](_0x150982))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x44fa6d=>_0x44fa6d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x25782e,_0x6fd51d)=>[..._0x25782e,..._0x6fd51d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4283d8=this['getRanges']();if(0x1!=_0x4283d8['length'])return null;const _0x2f1a90=_0x4283d8[0x0],_0x48af41=_0x2f1a90['start']['nodeAfter'],_0x559eda=_0x2f1a90['end']['nodeBefore'];return _0x48af41 instanceof _0x4693fe?_0x48af41!=_0x559eda?null:_0x48af41: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 _0x5a61da=[];let _0x24cdcf=this['head'];for(;_0x24cdcf;)_0x5a61da['push'](_0x24cdcf),_0x24cdcf=_0x24cdcf['next'];return _0x5a61da;}['setAttribute'](_0x400714,_0x1c4fb5){const _0x2e9c52=_0x4ed240(this['attributes']);_0x5b0a4d(_0x2e9c52,_0x400714,_0x1c4fb5),tt(_0x2e9c52,this['attributes'])||(this['attributes']=_0x2e9c52,this['_onAttributesChange'](_0x2e9c52));}['removeAttribute'](_0xe5fa07){const _0x488f47=_0x4ed240(this['attributes']);et(_0x488f47,_0xe5fa07),tt(_0x488f47,this['attributes'])||(this['attributes']=_0x488f47,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 _0xf371f8()['substr'](0x1,0x5);}}function pt(_0x2bb481,_0x3496bf,_0xf33e76){const _0x58bcab=_0x2bb481['t'],t=_0x2bb481['t'];switch(_0x3496bf){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',_0xf33e76);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xf33e76);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xf33e76);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xf33e76);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xf33e76);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',_0xf33e76);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xf33e76);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',_0xf33e76);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xf33e76);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xf33e76);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xf33e76);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xf33e76);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xf33e76);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xf33e76);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xf33e76);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xf33e76);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xf33e76);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xf33e76);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xf33e76);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xf33e76);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xf33e76);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xf33e76);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xf33e76);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xf33e76);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xf33e76);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'},_0xf33e76);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xf33e76);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xf33e76);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xf33e76);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xf33e76);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xf33e76);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xf33e76);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xf33e76);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'},_0xf33e76);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xf33e76);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xf33e76);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xf33e76);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xf33e76);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'},_0xf33e76);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xf33e76);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'},_0xf33e76);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0xf33e76);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xf33e76);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'},_0xf33e76);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xf33e76);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'},_0xf33e76);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xf33e76);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0xf33e76);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0xf33e76);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0xf33e76);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xf33e76);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'},_0xf33e76);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xf33e76);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 _0x58bcab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xf33e76);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x58bcab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xf33e76);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xf33e76);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'},_0xf33e76);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'},_0xf33e76);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'},_0xf33e76);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3496bf;}}class Lt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x149753,_0x43f3de){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x149753,this['_locale']=_0x43f3de;}['getDescriptions'](_0x1c53d4){const _0x86a87d=[],_0x464fdc=new Set(),_0x927375=new Set();for(let _0x574853=0x0;_0x574853<_0x1c53d4['length'];_0x574853++){const _0x7cdc4e=_0x1c53d4[_0x574853];if(!_0x7cdc4e['isInContent'])continue;const _0xcf473f=this['_handleCustomCallbackDescription'](_0x7cdc4e);if(_0xcf473f){if(null!=_0x7cdc4e['subType']){if(_0x464fdc['has'](_0x7cdc4e['subType']))continue;_0x464fdc['add'](_0x7cdc4e['subType']);}_0x86a87d['push'](_0xcf473f);}else{if('attribute'==_0x7cdc4e['type']){const _0x1087dd=_0x7cdc4e['data']['key'];if(_0x927375['has'](_0x1087dd))continue;_0x927375['add'](_0x7cdc4e['data']['key']),_0x1087dd==$e?this['_handleRenameSuggestionDescription'](_0x86a87d,_0x7cdc4e):this['_handleAttributeSuggestionDescription'](_0x86a87d,_0x7cdc4e);continue;}'insertion'!=_0x7cdc4e['type']&&'deletion'!=_0x7cdc4e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x86a87d,_0x7cdc4e,_0x1c53d4[_0x574853+0x1]);}}return this['_resolveDescriptionItems'](_0x86a87d);}['registerDescriptionCallback'](_0x3bab58){this['_customCallbacks']['push'](_0x3bab58);}['registerElementLabel'](_0x2f5cdb,_0x31d2e0,_0x5a7cce=_0x46e3bc['normal']){'function'==typeof _0x2f5cdb?_0x2b5360(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2f5cdb,'label':_0x31d2e0,'priority':_0x5a7cce}):this['_itemLabels']['set'](_0x2f5cdb,_0x31d2e0);}['registerAttributeLabel'](_0x3c9bd4,_0x24ac39){this['_attributeLabels']['set'](_0x3c9bd4,_0x24ac39);}['getItemLabel'](_0x183343,_0xc6039e=0x1){let _0x53c311;for(const _0x5bad0b of this['_itemLabelsCallbacks'])if(_0x5bad0b['matchingCallback'](_0x183343)){_0x53c311=_0x5bad0b['label'];break;}return _0x53c311||(_0x53c311=this['_itemLabels']['get'](_0x183343['name'])),_0x53c311?_0x53c311(_0xc6039e):0x1!==_0xc6039e?_0xc6039e+'\x20'+_0x183343['name']+'s':''+_0x183343['name'];}['_addDescriptionItems'](_0x33509a,_0x5ee2f0){const _0x361e7a=_0x5ee2f0['getFirstRange']()['getWalker'](),_0x2749ed='insertion'==_0x5ee2f0['type']?'add':'remove';for(const _0x2ba409 of _0x361e7a){const _0x5696e5=_0x2ba409['item'],_0x1964b3=_0x33509a[_0x33509a['length']-0x1];if(_0x5696e5['is']('$textProxy'))_0x1964b3&&_0x1964b3['type']['indexOf']('Container')>-0x1&&_0x33509a['pop'](),_0x1964b3&&'text'==_0x1964b3['type']?_0x1964b3[_0x2749ed]+=_0x5696e5['data']:_0x33509a['push']({'type':'text','add':'add'==_0x2749ed?_0x5696e5['data']:'','remove':'remove'==_0x2749ed?_0x5696e5['data']:''});else{if(this['_schema']['isObject'](_0x5696e5)){const _0x2c954b=_0x5696e5;if(_0x1964b3&&_0x1964b3['type']['indexOf']('Container')>-0x1&&_0x33509a['pop'](),'elementEnd'==_0x2ba409['type'])continue;_0x1964b3&&_0x1964b3['type']==_0x2749ed+'Object'&&_0x1964b3['element']['name']==_0x2c954b['name']?_0x1964b3['quantity']++:_0x33509a['push']({'type':_0x2749ed+'Object','element':_0x2c954b,'quantity':0x1}),_0x361e7a['skip'](_0x2da8d0=>!('elementEnd'==_0x2da8d0['type']&&_0x2da8d0['item']==_0x5696e5));}else{if(this['_schema']['checkChild'](_0x5696e5,'$text')||_0x5696e5['is']('element','softBreak')){const _0x183d5c=_0x5696e5;if('add'==_0x2749ed&&'elementStart'==_0x2ba409['type']||'remove'==_0x2749ed&&'elementEnd'==_0x2ba409['type'])continue;if(_0x1964b3&&-0x1==_0x1964b3['type']['indexOf']('Container')){'text'==_0x1964b3['type']&&(_0x1964b3[_0x2749ed]+='\x0a');continue;}let _0x29f089;if(_0x29f089='add'==_0x2749ed?_0x183d5c['nextSibling']&&!this['_schema']['isObject'](_0x183d5c['nextSibling'])?_0x183d5c['nextSibling']:null:_0x183d5c['previousSibling']&&!this['_schema']['isObject'](_0x183d5c['previousSibling'])?_0x183d5c['previousSibling']:null,_0x183d5c['isEmpty']||_0x29f089&&_0x29f089['isEmpty']){const _0xfe4aee=_0x29f089&&_0x29f089['isEmpty']?_0x29f089:_0x183d5c;_0x1964b3&&_0x1964b3['type']==_0x2749ed+'EmptyContainer'&&_0x1964b3['element']['name']==_0xfe4aee['name']?_0x1964b3['quantity']++:_0x33509a['push']({'type':_0x2749ed+'EmptyContainer','element':_0xfe4aee,'quantity':0x1});}else _0x33509a['push']({'type':_0x2749ed+'Container','element':_0x183d5c});}}}}}['_resolveDescriptionItems'](_0x6f3e6){const _0x427ab3=this['_locale'],_0x3d86ed=[],_0x491834=[],_0x342860=[];for(const _0x1030f5 of _0x6f3e6)switch(_0x1030f5['type']){case'text':if(_0x1030f5['add']=_0x1030f5['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1030f5['remove']=_0x1030f5['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1030f5['add']&&''!=_0x1030f5['remove']){_0x3d86ed['push']({'type':'replace','content':pt(_0x427ab3,'REPLACE_TEXT',['\x22'+_0x1030f5['remove']+'\x22','\x22'+_0x1030f5['add']+'\x22'])});continue;}if(null!=_0x1030f5['add']['match'](/^ +$/)){_0x3d86ed['push']({'type':'insertion','content':pt(_0x427ab3,'*Insert:*\x20%0',pt(_0x427ab3,'ELEMENT_SPACE',_0x1030f5['add']['length']))});continue;}if(null!=_0x1030f5['remove']['match'](/^ +$/)){_0x3d86ed['push']({'type':'deletion','content':pt(_0x427ab3,'*Remove:*\x20%0',pt(_0x427ab3,'ELEMENT_SPACE',_0x1030f5['remove']['length']))});continue;}if(''!=_0x1030f5['add']){_0x3d86ed['push']({'type':'insertion','content':pt(_0x427ab3,'*Insert:*\x20%0','\x22'+_0x1030f5['add']+'\x22')});continue;}_0x3d86ed['push']({'type':'deletion','content':pt(_0x427ab3,'*Remove:*\x20%0','\x22'+_0x1030f5['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3d86ed['push']({'type':'insertion','content':pt(_0x427ab3,'*Insert:*\x20%0',this['getItemLabel'](_0x1030f5['element'],_0x1030f5['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3d86ed['push']({'type':'deletion','content':pt(_0x427ab3,'*Remove:*\x20%0',this['getItemLabel'](_0x1030f5['element'],_0x1030f5['quantity']))});continue;case'addContainer':_0x3d86ed['push']({'type':'insertion','content':pt(_0x427ab3,'*Split:*\x20%0',this['getItemLabel'](_0x1030f5['element'],_0x1030f5['quantity']))});continue;case'removeContainer':_0x3d86ed['push']({'type':'deletion','content':pt(_0x427ab3,'*Merge:*\x20%0',this['getItemLabel'](_0x1030f5['element'],_0x1030f5['quantity']))});continue;case'addFormat':_0x491834['push'](_0x1030f5['key']);continue;case'removeFormat':_0x342860['push'](_0x1030f5['key']);continue;default:_0x3d86ed['push'](_0x1030f5);}if(_0x491834['length']){const _0x2cd462=_0x491834['map'](_0x1d1370=>this['_attributeLabels']['has'](_0x1d1370)?this['_attributeLabels']['get'](_0x1d1370):_0x1d1370)['join'](',\x20');_0x3d86ed['push']({'type':'format','content':pt(this['_locale'],'*Set\x20format:*\x20%0',_0x2cd462)});}if(_0x342860['length']){const _0x44e496=_0x342860['map'](_0x50aeed=>this['_attributeLabels']['has'](_0x50aeed)?this['_attributeLabels']['get'](_0x50aeed):_0x50aeed)['join'](',\x20');_0x3d86ed['push']({'type':'format','content':pt(this['_locale'],'*Remove\x20format:*\x20%0',_0x44e496)});}return _0x3d86ed;}['_handleCustomCallbackDescription'](_0x385001){for(const _0x268c9e of this['_customCallbacks']){const _0x4b272e=_0x268c9e(_0x385001);if(_0x4b272e&&'type'in _0x4b272e)return _0x4b272e;}}['_handleAttributeSuggestionDescription'](_0x3c5193,_0x5dcaec){const _0x203167=_0x5dcaec['data'],_0x2e3791=void 0x0===_0x203167['newValue']?'removeFormat':'addFormat';_0x3c5193['push']({'type':_0x2e3791,'key':_0x203167['key']});}['_handleRenameSuggestionDescription'](_0x23c1c9,_0x469083){_0x23c1c9['push']({'type':'format','content':pt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x469083['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xc3730,_0x5a041b,_0x312c77){if(this['_addDescriptionItems'](_0xc3730,_0x5a041b),_0x312c77&&_0x312c77['getFirstRange']()&&!_0x5a041b['getFirstRange']()['end']['isEqual'](_0x312c77['getFirstRange']()['start'])){const _0xeceda3=_0xc3730[_0xc3730['length']-0x1],_0x2e7403='insertion'==_0x5a041b['type']?'add':'remove';_0xeceda3&&'text'==_0xeceda3['type']&&(_0xeceda3[_0x2e7403]+='\x0a');}}}class It extends _0x46e166{['afterInit'](){const _0x4a246b=this['editor'],_0x13ae19=_0x4a246b['plugins']['get']('TrackChangesEditing');_0x4a246b['commands']['get']('showAIAssistant')&&_0x13ae19['enableCommand']('showAIAssistant');}}class bt extends _0x46e166{['afterInit'](){const _0x424fa6=this['editor'],_0x53a4e5=_0x424fa6['plugins']['get']('TrackChangesEditing');_0x424fa6['commands']['get']('toggleAi')&&_0x53a4e5['enableCommand']('toggleAi');}}class At extends _0x46e166{['afterInit'](){const _0x212a88=this['editor'],_0x51a637=_0x212a88['plugins']['get']('TrackChangesEditing');_0x212a88['commands']['get']('aiQuickAction')&&_0x51a637['enableCommand']('aiQuickAction');}}class kt extends _0x46e166{['afterInit'](){const _0x1efe66=this['editor'],_0x582d3=_0x1efe66['locale'];if(!_0x1efe66['plugins']['has']('AlignmentEditing'))return;const _0x53e858=_0x1efe66['plugins']['get']('TrackChangesEditing');_0x53e858['enableDefaultAttributesIntegration']('alignment'),_0x53e858['descriptionFactory']['registerAttributeLabel']('alignment',pt(_0x582d3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59a426=this['editor'],_0x4c2fa9=_0x59a426['locale'];_0x59a426['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a4a2a=>{if('formatBlock'!=_0x1a4a2a['type'])return;const {data:_0xdf8858}=_0x1a4a2a;if(_0xdf8858&&'alignment'==_0xdf8858['commandName']){const _0x3c7133=_0xdf8858['commandParams'][0x0]['value'];return{'type':'format','content':pt(_0x4c2fa9,'*Format:*\x20%0',function(_0x159c60){switch(_0x159c60){case'left':return pt(_0x4c2fa9,'FORMAT_ALIGN_TO_LEFT');case'right':return pt(_0x4c2fa9,'FORMAT_ALIGN_TO_RIGHT');case'center':return pt(_0x4c2fa9,'FORMAT_ALIGN_TO_CENTER');case'justify':return pt(_0x4c2fa9,'FORMAT_JUSTIFY_TEXT');}}(_0x3c7133))};}});}}const Ct=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class yt extends _0x46e166{['afterInit'](){const _0x25ede4=this['editor'],_0x241b9b=_0x25ede4['plugins']['get']('TrackChangesEditing'),_0x1790bd=_0x25ede4['locale'];for(const _0xd3288f of Ct){if(!_0x25ede4['plugins']['has'](_0xd3288f))continue;const _0x6ab784=_0xd3288f['slice'](0x0,-0x7)['toLowerCase'](),_0x34361d='FORMAT_'+_0x6ab784['toUpperCase']();_0x241b9b['enableDefaultAttributesIntegration'](_0x6ab784),_0x241b9b['descriptionFactory']['registerAttributeLabel'](_0x6ab784,pt(_0x1790bd,_0x34361d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34c9c0=this['editor'],_0x47b261=_0x34c9c0['locale'],_0x364947=_0x34c9c0['plugins']['get']('TrackChangesEditing');function _0x26cdb9(_0xe1d074,_0x3a3747){_0x364947['descriptionFactory']['registerDescriptionCallback'](_0x43f19c=>{if('formatInline'!=_0x43f19c['type'])return;const {data:_0x4c9632}=_0x43f19c;return _0x4c9632&&_0x4c9632['commandName']===_0xe1d074?_0x4c9632['commandParams'][0x0]['forceValue']?{'type':'format','content':pt(_0x47b261,'*Format:*\x20%0',_0x3a3747)}:{'type':'format','content':pt(_0x47b261,'*Remove\x20format:*\x20%0',_0x3a3747)}:void 0x0;});}_0x26cdb9('bold',pt(_0x47b261,'FORMAT_BOLD')),_0x26cdb9('italic',pt(_0x47b261,'FORMAT_ITALIC')),_0x26cdb9('underline',pt(_0x47b261,'FORMAT_UNDERLINE')),_0x26cdb9('code',pt(_0x47b261,'FORMAT_CODE')),_0x26cdb9('strikethrough',pt(_0x47b261,'FORMAT_STRIKETHROUGH')),_0x26cdb9('subscript',pt(_0x47b261,'FORMAT_SUBSCRIPT')),_0x26cdb9('superscript',pt(_0x47b261,'FORMAT_SUPERSCRIPT'));}}class Nt extends _0x46e166{['afterInit'](){const _0x13dc5c=this['editor'],_0x4c9151=_0x13dc5c['locale'];if(!_0x13dc5c['plugins']['has']('BlockQuoteEditing'))return;const _0x2093ff=_0x13dc5c['plugins']['get']('TrackChangesEditing'),_0x109e0c=this['editor']['commands']['get']('blockQuote');_0x2093ff['enableCommand']('blockQuote',(_0x2e8911,_0x53ffdf={})=>{const _0x4ca936=this['editor']['model']['document']['selection'],_0x460612=_0x53ffdf&&void 0x0!==_0x53ffdf['forceValue']?_0x53ffdf['forceValue']:!_0x109e0c['value'];let _0x3efa28=[];if(_0x460612){const _0x5006f1=Array['from'](_0x4ca936['getSelectedBlocks']())['filter'](_0x106e75=>Rt(_0x106e75)||function(_0x5cb82e,_0x1bdeef){const _0x54f66a=_0x1bdeef['checkChild'](_0x5cb82e['parent'],'blockQuote'),_0x4500b1=_0x1bdeef['checkChild'](['$root','blockQuote'],_0x5cb82e);return _0x54f66a&&_0x4500b1;}(_0x106e75,this['editor']['model']['schema']));_0x3efa28=ft(_0x5006f1,_0x13dc5c['model']);}else{const _0x3b541b=Array['from'](_0x4ca936['getSelectedBlocks']())['filter'](_0x95e70=>Rt(_0x95e70));_0x3efa28=ft(_0x3b541b,_0x13dc5c['model']);}_0x13dc5c['model']['change'](()=>{for(const _0x5a2c15 of _0x3efa28)_0x2093ff['markBlockFormat'](_0x5a2c15,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x460612}]});});}),_0x2093ff['descriptionFactory']['registerDescriptionCallback'](_0xc545a8=>{const {data:_0x5046d3}=_0xc545a8;if(_0x5046d3&&'blockQuote'==_0x5046d3['commandName']){const _0x883957=pt(_0x4c9151,'ELEMENT_BLOCK_QUOTE');return _0x5046d3['commandParams'][0x0]['forceValue']?{'type':'format','content':pt(_0x4c9151,'*Set\x20format:*\x20%0',_0x883957)}:{'type':'format','content':pt(_0x4c9151,'*Remove\x20format:*\x20%0',_0x883957)};}});}}function Rt(_0x434a79){return'blockQuote'==_0x434a79['parent']['name'];}class St extends _0x46e166{['afterInit'](){const _0x1ed023=this['editor'],_0x18c443=_0x1ed023['locale'],_0x306d35=_0x1ed023['plugins']['get']('TrackChangesEditing');_0x1ed023['plugins']['has']('BookmarkEditing')&&(_0x306d35['enableCommand']('insertBookmark'),_0x306d35['enableDefaultAttributesIntegration']('updateBookmark'),_0x306d35['descriptionFactory']['registerDescriptionCallback'](_0x4f8285=>{if('insertion'!=_0x4f8285['type']&&'deletion'!=_0x4f8285['type']&&'attribute'!=_0x4f8285['type'])return;const _0x19913e=_0x4f8285['getContainedElement']();if(null==_0x19913e)return;if(!_0x19913e['is']('element','bookmark'))return;const _0x8cf888=_0x19913e['getAttribute']('bookmarkId');if('insertion'==_0x4f8285['type'])return{'type':'insertion','content':pt(_0x18c443,'*Insert:*\x20%0','\x22'+_0x8cf888+'\x22\x20'+pt(_0x18c443,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4f8285['type'])return{'type':'deletion','content':pt(_0x18c443,'*Remove:*\x20%0','\x22'+_0x8cf888+'\x22\x20'+pt(_0x18c443,'ELEMENT_BOOKMARK'))};const {data:_0x3b432c}=_0x4f8285;if(!_0x3b432c||'bookmarkId'!=_0x3b432c['key'])return;return{'type':'format','content':pt(_0x18c443,'*Set\x20bookmark:*\x20%0','\x22'+_0x3b432c['newValue']+'\x22')};}));}}class Mt extends _0x46e166{['afterInit'](){const _0x57de29=this['editor'];_0x57de29['plugins']['has']('CaseChange')&&(_0x57de29['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x57de29['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x57de29['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Ot extends _0x46e166{['afterInit'](){const _0xbd5337=this['editor'];_0xbd5337['commands']['get']('ckbox')&&_0xbd5337['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class wt extends _0x46e166{['afterInit'](){const _0x3ca328=this['editor'];if(!_0x3ca328['plugins']['has']('CodeBlock'))return;const _0x3d4dd5=_0x3ca328['plugins']['get']('TrackChangesEditing'),_0x272cc8=_0x3ca328['locale'],_0x5aaf50=_0x3ca328['config']['get']('codeBlock')['languages'],_0x1f6cb4=_0x3ca328['commands']['get']('codeBlock');_0x3d4dd5['enableCommand']('indentCodeBlock'),_0x3d4dd5['enableCommand']('outdentCodeBlock'),_0x3d4dd5['enableCommand']('codeBlock',(_0x463211,_0x564604={})=>{const _0x2de477=_0x3ca328['model'],_0x1595e8=_0x3ca328['model']['document']['selection'],_0x5cbbfc=_0x564604&&void 0x0!==_0x564604['forceValue']?_0x564604['forceValue']:!_0x1f6cb4['value'];let _0x321f50;_0x564604['language']||(_0x564604['language']=_0x5aaf50[0x0]['language']),_0x321f50=_0x5cbbfc?Array['from'](_0x1595e8['getSelectedBlocks']())['filter'](_0x5857e7=>Bt(_0x5857e7)||function(_0x24b853,_0x470e30){if(_0x24b853['is']('rootElement')||_0x470e30['isLimit'](_0x24b853))return!0x1;return _0x470e30['checkChild'](_0x24b853['parent'],'codeBlock');}(_0x5857e7,_0x2de477['schema'])):Array['from'](_0x1595e8['getSelectedBlocks']())['filter'](_0x583f7a=>Bt(_0x583f7a));const _0xe77379=ft(_0x321f50,_0x2de477);_0x2de477['change'](()=>{for(const _0x4e831c of _0xe77379)_0x3d4dd5['markBlockFormat'](_0x4e831c,{'commandName':'codeBlock','commandParams':[{..._0x564604,'forceValue':_0x5cbbfc}],'formatGroupId':'blockName'});});}),(_0x3d4dd5['descriptionFactory']['registerElementLabel']('codeBlock',_0x4e16a1=>pt(_0x272cc8,'ELEMENT_CODE_BLOCK',_0x4e16a1)),_0x3d4dd5['descriptionFactory']['registerDescriptionCallback'](_0x30e70a=>{if('formatBlock'!=_0x30e70a['type'])return;const _0x1b4998=_0x272cc8['t'],{data:_0x197409}=_0x30e70a;if(!_0x197409||'codeBlock'!=_0x197409['commandName'])return;const _0x597a67=_0x197409['commandParams'][0x0]['language'],_0x69fdd8=_0x1b4998(_0x5aaf50['find'](_0xfa7da7=>_0xfa7da7['language']===_0x597a67)['label'])['toLowerCase']();return _0x197409['commandParams'][0x0]['forceValue']?{'type':'format','content':pt(_0x272cc8,'*Set\x20format:*\x20%0',pt(_0x272cc8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x69fdd8+')')}:{'type':'format','content':pt(_0x272cc8,'*Remove\x20format:*\x20%0',pt(_0x272cc8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function Bt(_0x33aee2){return'codeBlock'==_0x33aee2['name'];}class Ft extends _0x46e166{['afterInit'](){const _0x3cd253=this['editor'];if(!_0x3cd253['plugins']['has']('CommentsEditing'))return;_0x3cd253['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Dt extends _0x46e166{static get['requires'](){return[it];}['init'](){const _0x263b15=this['editor'],_0x15e9db=_0x263b15['plugins']['get']('TrackChangesEditing');_0x15e9db['enableCommand']('delete');const _0x337a80=_0x263b15['commands']['get']('deleteForward');_0x15e9db['enableCommand']('deleteForward',(_0xbd0fc2,_0x5aefc8={})=>{const _0x165494=_0x263b15['model']['createSelection'](_0x263b15['model']['document']['selection']);_0x165494['isCollapsed']&&_0x263b15['model']['modifySelection'](_0x165494,{'direction':'forward','unit':_0x5aefc8['unit']});const _0x1de2ff=_0x165494['getFirstRange'](),_0x2b6e87=_0x541ce3['fromRange'](_0x1de2ff);let _0x3a7753;_0xbd0fc2(_0x5aefc8),_0x3a7753='$graveyard'==_0x2b6e87['root']['rootName']?_0x263b15['model']['createRange'](_0x1de2ff['start']):_0x263b15['model']['createRange'](_0x2b6e87['start'],_0x2b6e87['end']),_0x2b6e87['detach'](),_0x263b15['model']['enqueueChange'](_0x337a80['buffer']['batch'],_0x4e171d=>{_0x337a80['buffer']['lock'](),_0x4e171d['setSelection'](_0x4e171d['createRange'](_0x3a7753['end'])),_0x337a80['buffer']['unlock']();});});}}class vt extends _0x46e166{['afterInit'](){const _0x125b56=this['editor'];if(!_0x125b56['plugins']['has']('ListEditing'))return;const _0x3ca984=_0x125b56['locale'],_0x3aa415=_0x125b56['plugins']['get']('TrackChangesEditing'),_0x33a86b=_0x125b56['plugins']['has']('TodoListEditing'),_0xf1aba6=!!_0x125b56['config']['get']('list.multiBlock');function _0x6a0f31(_0x5c72a6){return{'type':'format','content':''+pt(_0x3ca984,'*Set\x20format:*\x20%0',_0x5c72a6)};}function _0xd56629(_0x5b0c90){return{'type':'format','content':''+pt(_0x3ca984,'*Remove\x20format:*\x20%0',_0x5b0c90)};}_0x3aa415['enableDefaultAttributesIntegration']('numberedList'),_0x3aa415['enableDefaultAttributesIntegration']('bulletedList'),_0x3aa415['enableDefaultAttributesIntegration']('customNumberedList'),_0x3aa415['enableDefaultAttributesIntegration']('customBulletedList'),_0x3aa415['enableDefaultAttributesIntegration']('indentList'),_0x3aa415['enableDefaultAttributesIntegration']('outdentList'),_0x3aa415['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3aa415['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xf1aba6&&(_0x3aa415['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3aa415['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x33a86b&&(_0x3aa415['enableDefaultAttributesIntegration']('todoList'),_0x3aa415['enableDefaultAttributesIntegration']('checkTodoList'),_0x3aa415['descriptionFactory']['registerDescriptionCallback'](_0x365dfb=>{const {data:_0x370515}=_0x365dfb;if(_0x370515&&'todoListChecked'==_0x370515['key'])return{'type':'format','content':_0x370515['newValue']?pt(_0x3ca984,'*Check\x20item*'):pt(_0x3ca984,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2af113=>{if(_0x2af113['batch']['isUndo'])return!0x1;let _0x170cc8=!0x1;const _0x1c4af0=_0x3aa415['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e68b8=>'todoListChecked'===_0x3aa415['_getAttributeKey'](_0x3e68b8));for(const _0x42ccd9 of _0x1c4af0){'todo'!=_0x42ccd9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3aa415['_findSuggestions'](_0x42ccd9['getFirstRange'](),'attribute')['find'](_0xeacaa2=>'listType'===_0x3aa415['_getAttributeKey'](_0xeacaa2['suggestion']))||(_0x2af113['removeMarker'](_0x42ccd9['getFirstMarker']()),_0x170cc8=!0x0));}return _0x170cc8;})),_0x3aa415['descriptionFactory']['registerAttributeLabel']('listIndent',pt(_0x3ca984,'FORMAT_INDENT'));const _0x599bf4={'type':'format','content':''};_0x3aa415['descriptionFactory']['registerDescriptionCallback'](_0x3255e4=>{const {data:_0xc66f85}=_0x3255e4;if(!_0xc66f85||'listType'!=_0xc66f85['key'])return;let _0x24ff68=_0x3255e4['head'];for(;_0x24ff68;){if(_0x24ff68['data']&&(('listStyle'==_0x24ff68['data']['key']||'listMarkerStyle'==_0x24ff68['data']['key'])&&(_0x24ff68['data']['newValue']&&'default'!=_0x24ff68['data']['newValue']||'default'!=_0x24ff68['data']['oldValue']&&!_0xc66f85['newValue'])||!_0xf1aba6&&_0x24ff68['data']['key']==$e))return _0x599bf4;_0x24ff68=_0x24ff68['next'];}if(null==_0xc66f85['newValue'])switch(_0xc66f85['oldValue']){case'bulleted':return _0xd56629(pt(_0x3ca984,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd56629(pt(_0x3ca984,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd56629(pt(_0x3ca984,'ELEMENT_TODO_LIST'));}switch(_0xc66f85['newValue']){case'bulleted':return _0x6a0f31(pt(_0x3ca984,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x6a0f31(pt(_0x3ca984,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x6a0f31(pt(_0x3ca984,'ELEMENT_TODO_LIST'));}}),_0x3aa415['descriptionFactory']['registerDescriptionCallback'](_0x747df0=>{const {data:_0x2411f8}=_0x747df0;if(_0x2411f8&&'listIndent'==_0x2411f8['key'])return null==_0x2411f8['newValue']||null==_0x2411f8['oldValue']&&0x0==_0x2411f8['newValue']?_0x599bf4:void 0x0;}),_0x3aa415['descriptionFactory']['registerDescriptionCallback'](_0x1f3f9b=>{if('attribute'!=_0x1f3f9b['type'])return;const {data:_0x5f4270}=_0x1f3f9b;if(!_0x5f4270||'listItemId'!=_0x5f4270['key'])return;const _0x1fcdc4=xt(_0x1f3f9b);return'newValue'==_0x1fcdc4?{'type':'format','content':pt(_0x3ca984,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1fcdc4?{'type':'format','content':pt(_0x3ca984,'*Split:*\x20list\x20item')}:_0x599bf4;}),_0x125b56['model']['document']['registerPostFixer'](_0x47eb4b=>this['listItemIdFixer'](_0x47eb4b)),_0x125b56['model']['document']['registerPostFixer'](_0x256b99=>this['noTrackChangesFixer'](_0x256b99)),_0x125b56['model']['document']['on']('change:data',(_0x38e2d8,_0x589437)=>{if(_0x589437['isUndo']||!_0x589437['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2f2ff4){if(_0x2f2ff4['batch']['isUndo']||!_0x2f2ff4['batch']['isLocal'])return!0x1;let _0x536114=!0x1;const _0x53fe11=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e7f0b=>_0x1e7f0b['data']&&'listItemId'==_0x1e7f0b['data']['key'])['filter'](_0x527a7b=>_0x527a7b['data']['newValue']&&_0x527a7b['data']['oldValue']);for(const _0x21b4c1 of _0x53fe11)xt(_0x21b4c1)||(_0x2f2ff4['removeMarker'](_0x21b4c1['getFirstMarker']()),_0x536114=!0x0);return _0x536114;}['noTrackChangesFixer'](_0x478dc8){if(_0x478dc8['batch']['isUndo']||!_0x478dc8['batch']['isLocal'])return!0x1;const _0xfd63cb=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xfd63cb['trackChangesCommand']['value'])return!0x1;let _0x2f5223=!0x1;const _0x439fe0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3c142b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x18a157=>'attribute'==_0x18a157['type'])['filter'](_0x300bc0=>_0x439fe0['includes'](_0x300bc0['attributeKey']));if(0x0==_0x3c142b['length'])return _0x2f5223;for(const _0x15c8c1 of _0x3c142b){const _0x34ae6c=_0xfd63cb['_findSuggestions'](_0x15c8c1['range'],'attribute')['filter'](_0x24bbda=>!_0x24bbda['meta']['isNextTo'])['map'](_0x502dd8=>_0x502dd8['suggestion'])['filter'](_0x1f1f66=>{const _0x57380d=_0xfd63cb['_getAttributeKey'](_0x1f1f66);return _0x439fe0['includes'](_0x57380d);});if(_0x34ae6c['length']){for(const _0x264c42 of _0x34ae6c)_0x478dc8['removeMarker'](_0x264c42['getFirstMarker']());_0x2f5223=!0x0;}}return _0x2f5223;}['assureChains'](){const _0x2a2b1b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x214808=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xc96a1;const _0x30e35b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x22f438=>{if(_0x22f438['data']['oldRange']||!_0x22f438['data']['newRange'])return null;if(!_0x22f438['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x27da37}=_0x2a2b1b['_splitMarkerName'](_0x22f438['name']);if(!_0x2a2b1b['hasSuggestion'](_0x27da37))return null;const _0x484159=_0x2a2b1b['getSuggestion'](_0x27da37);return _0x214808['includes'](_0x484159['data']['key']);})['map'](_0x218700=>{const {id:_0x26f973}=_0x2a2b1b['_splitMarkerName'](_0x218700['name']),_0x4f2f11=_0x2a2b1b['getSuggestion'](_0x26f973);return _0xc96a1=_0x4f2f11['attributes']['groupId'],_0x4f2f11['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x30e35b['size'])return;const _0x51ab05=_0x2a2b1b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x359e8e=>'attribute'==_0x359e8e['type']&&_0x359e8e['data']&&_0x214808['includes'](_0x359e8e['data']['key'])&&_0x359e8e['attributes']['groupId']!=_0xc96a1)['map'](_0x329de0=>({'listItem':_0x329de0['getFirstRange']()['start']['nodeAfter'],'groupId':_0x329de0['attributes']['groupId']})),_0x2d60f6=new Set();for(const {groupId:_0x37078a,listItem:_0x3070bc}of _0x51ab05)_0x30e35b['has'](_0x3070bc)&&_0x2d60f6['add'](_0x37078a);for(const _0x2622ba of _0x2a2b1b['getSuggestions']())_0x2d60f6['has'](_0x2622ba['attributes']['groupId'])&&_0x2622ba['setAttribute']('groupId',_0xc96a1);}['_supportLegacySuggestions'](){const _0x39cfe8=this['editor'],_0x268973=_0x39cfe8['locale'],_0x1f490e=_0x39cfe8['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1f490e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x45cc93,_0x5c1365){const _0x5aae20=[];for(let _0x46e40f of _0x45cc93)_0x46e40f['start']['nodeAfter']===_0x46e40f['end']['parent']&&(_0x46e40f=_0x39cfe8['model']['createRange'](_0x39cfe8['model']['createPositionAt'](_0x46e40f['start']['nodeAfter'],0x0))),_0x5aae20['push'](_0x46e40f);_0x39cfe8['model']['change'](_0x4d1c28=>{const _0x1fa9c7=_0x39cfe8['model']['document']['selection'],_0x1f6485=Array['from'](_0x1fa9c7['getRanges']())['map'](_0x5ba3bb=>_0x541ce3['fromRange'](_0x5ba3bb));_0x4d1c28['setSelection'](_0x5aae20),_0x39cfe8['commands']['get'](_0x5c1365['commandName'])['refresh'](),_0x5c1365['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x39cfe8['execute'](_0x5c1365['commandName'],..._0x5c1365['commandParams']),_0x4d1c28['setSelection'](_0x1f6485);for(const _0x165946 of _0x1f6485)_0x165946['detach']();});}),_0x1f490e['descriptionFactory']['registerElementLabel'](function(_0x121f38){const _0x46ea61=!_0x39cfe8['model']['schema']['isObject'](_0x121f38),_0x337d99=_0x121f38['previousSibling'],_0x4c4fef=_0x121f38['nextSibling'],_0x37ebe2=_0x121f38['getAttribute']('listItemId'),_0x464dce=!_0x337d99||_0x337d99['getAttribute']('listItemId')!==_0x37ebe2,_0x545d30=!_0x4c4fef||_0x4c4fef['getAttribute']('listItemId')!==_0x37ebe2;return _0x46ea61&&Boolean(_0x37ebe2)&&_0x464dce&&_0x545d30;},_0xa5686b=>pt(_0x268973,'ELEMENT_LIST_ITEM',_0xa5686b));}['_registerLegacyDescription'](){const _0xe3162=this['editor'],_0x2bfc8b=_0xe3162['locale'];function _0x3648cc(_0x87a26a){const _0x10158e=_0xe3162['commands']['get']('bulletedList')['value'],_0x79b6f6=_0xe3162['commands']['get']('numberedList')['value'];return'numberedList'===_0x87a26a?_0x10158e:_0x79b6f6;}_0xe3162['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x163977){if('formatBlock'!=_0x163977['type'])return;const {data:_0x480262}=_0x163977;if(!_0x480262)return;let _0x2369fc,_0x511337,_0x46ed48,_0x598918;switch(_0x480262['commandName']){case'bulletedList':_0x46ed48=_0x480262['commandParams'][0x0]['forceValue'],_0x598918=_0x3648cc(_0x480262['commandName']),_0x2369fc=_0x46ed48?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x598918&&_0xe3162['config']['get']('list.multiBlock')||(_0x2369fc='*Change\x20to:*\x20%0'),_0x511337={'type':'format','content':pt(_0x2bfc8b,_0x2369fc,pt(_0x2bfc8b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x46ed48=_0x480262['commandParams'][0x0]['forceValue'],_0x598918=_0x3648cc(_0x480262['commandName']),_0x2369fc=_0x46ed48?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x598918&&_0xe3162['config']['get']('list.multiBlock')||(_0x2369fc='*Change\x20to:*\x20%0'),_0x511337={'type':'format','content':pt(_0x2bfc8b,_0x2369fc,pt(_0x2bfc8b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2369fc='*Indent:*\x20%0',_0x511337={'type':'format','content':pt(_0x2bfc8b,_0x2369fc,pt(_0x2bfc8b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2369fc=function(_0x1e0bd4){const _0x32b2ab=_0x1e0bd4['getFirstRange']();let _0x30eb90=_0x32b2ab['start']['nodeAfter'];for(;_0x30eb90&&_0x32b2ab['containsItem'](_0x30eb90);){if(_0x30eb90['getAttribute']('listIndent')>0x0)return!0x1;_0x30eb90=_0x30eb90['nextSibling'];}return!0x0;}(_0x163977)?pt(_0x2bfc8b,'*Format:*\x20remove\x20from\x20%0',pt(_0x2bfc8b,function(_0x3e163f){return'ELEMENT_'+_0x3e163f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x163977))):pt(_0x2bfc8b,'*Outdent:*\x20%0',pt(_0x2bfc8b,'ELEMENT_LIST_ITEM')),_0x511337={'type':'format','content':_0x2369fc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x480262['multipleBlocks']&&(_0x2369fc='*Merge:*\x20%0',_0x511337={'type':'deletion','content':pt(_0x2bfc8b,_0x2369fc,pt(_0x2bfc8b,'ELEMENT_LIST_ITEM'))});}return _0x511337;});}}function xt(_0x4dbf44){let _0x59e057=_0x4dbf44['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x59e057;){const _0x26d020=_0x59e057['getAttribute']('listItemId');if(!_0x26d020)return!0x1;if(_0x26d020==_0x4dbf44['data']['newValue'])return'newValue';if(_0x26d020==_0x4dbf44['data']['oldValue'])return'oldValue';_0x59e057=_0x59e057['previousSibling'];}return!0x1;}class Pt extends _0x46e166{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1779cb=this['editor']['config']['get']('list.properties'),_0x464009=this['editor']['plugins']['get']('TrackChangesEditing');_0x1779cb['styles']&&_0x464009['enableDefaultAttributesIntegration']('listStyle'),_0x1779cb['reversed']&&_0x464009['enableDefaultAttributesIntegration']('listReversed'),_0x1779cb['startIndex']&&_0x464009['enableDefaultAttributesIntegration']('listStart');const _0x438aba={'type':'format','content':''};_0x464009['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5dbd29=this['editor']['locale'];_0x464009['descriptionFactory']['registerAttributeLabel']('listReversed',pt(_0x5dbd29,'FORMAT_LIST_REVERSED')),_0x464009['descriptionFactory']['registerDescriptionCallback'](_0x17faf0=>{const {data:_0x5aea5a}=_0x17faf0;if(_0x5aea5a&&'listReversed'==_0x5aea5a['key'])return null==_0x5aea5a['newValue']||0x0==_0x5aea5a['newValue']&&null==_0x5aea5a['oldValue']?_0x438aba:void 0x0;}),_0x464009['descriptionFactory']['registerAttributeLabel']('listStart',pt(_0x5dbd29,'FORMAT_LIST_START')),_0x464009['descriptionFactory']['registerDescriptionCallback'](_0x70b2e7=>{const {data:_0x34288e}=_0x70b2e7;if(_0x34288e&&'listStart'==_0x34288e['key'])return null==_0x34288e['newValue']||0x1==_0x34288e['newValue']&&null==_0x34288e['oldValue']?_0x438aba:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x44aec3=>{if(_0x44aec3['batch']['isUndo'])return!0x1;let _0x347eee=!0x1;const _0x4cf858=_0x464009['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5882c2=>{const _0x32fa0a=_0x464009['_getAttributeKey'](_0x5882c2);return'listStart'==_0x32fa0a||'listReversed'==_0x32fa0a;});for(const _0x473941 of _0x4cf858){const _0x5c9410=_0x473941['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5c9410||'customNumbered'==_0x5c9410)continue;_0x464009['_findSuggestions'](_0x473941['getFirstRange'](),'attribute')['find'](_0x504c36=>'listType'==_0x464009['_getAttributeKey'](_0x504c36['suggestion']))||(_0x44aec3['removeMarker'](_0x473941['getFirstMarker']()),_0x347eee=!0x0);}return _0x347eee;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x6ec97a){const _0x59e7b8=this['editor']['locale'],{data:_0x48a4b6}=_0x6ec97a,_0x462704={'type':'format','content':''};if(!_0x48a4b6||'listStyle'!=_0x48a4b6['key'])return;if(!_0x48a4b6['oldValue'])return'default'==_0x48a4b6['newValue']?_0x462704:{'type':'format','content':''+pt(_0x59e7b8,'*Set\x20format:*\x20%0',pt(_0x59e7b8,this['_getTranslationKeyForListStyle'](_0x48a4b6['newValue'])))};if(!_0x48a4b6['newValue']){if('default'==_0x48a4b6['oldValue'])return _0x462704;let _0x3339a3=_0x6ec97a['head'];for(;_0x3339a3;){if(_0x3339a3['data']&&'listType'==_0x3339a3['data']['key']&&_0x3339a3['data']['newValue'])return _0x462704;_0x3339a3=_0x3339a3['next'];}return{'type':'format','content':''+pt(_0x59e7b8,'*Remove\x20format:*\x20%0',pt(_0x59e7b8,this['_getTranslationKeyForListStyle'](_0x48a4b6['oldValue'])))};}if('default'!=_0x48a4b6['newValue'])return{'type':'format','content':''+pt(_0x59e7b8,'*Set\x20format:*\x20%0',pt(_0x59e7b8,this['_getTranslationKeyForListStyle'](_0x48a4b6['newValue'])))};let _0x1ece8c=_0x6ec97a['head'];for(;_0x1ece8c;){if(_0x1ece8c['data']&&'listType'==_0x1ece8c['data']['key']&&_0x1ece8c['data']['newValue']&&_0x1ece8c['data']['oldValue'])return _0x462704;_0x1ece8c=_0x1ece8c['next'];}return{'type':'format','content':pt(_0x59e7b8,'*Set\x20format:*\x20%0',pt(_0x59e7b8,'ELEMENT_'+_0x6ec97a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4b0c4d=this['editor'],_0x5da28b=_0x4b0c4d['locale'];_0x4b0c4d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b57b5=>{if('formatBlock'!=_0x4b57b5['type'])return;const {data:_0x1668da}=_0x4b57b5;if(!_0x1668da)return;let _0x4cacef,_0x3b7d1b;switch(_0x1668da['commandName']){case'listStyle':_0x4cacef='*Change\x20to:*\x20%0',_0x3b7d1b={'type':'format','content':pt(_0x5da28b,_0x4cacef,pt(_0x5da28b,this['_getTranslationKeyForListStyle'](_0x1668da['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4cacef=_0x1668da['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3b7d1b={'type':'format','content':pt(_0x5da28b,_0x4cacef)};break;case'listStart':_0x4cacef='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3b7d1b={'type':'format','content':pt(_0x5da28b,_0x4cacef,_0x1668da['commandParams'][0x0]['startIndex'])};}return _0x3b7d1b;});}['_getTranslationKeyForListStyle'](_0x469944){return'ELEMENT_'+function(_0x19be37){if(Ut['includes'](_0x19be37))return'bulleted';if(Gt['includes'](_0x19be37))return'numbered';return null;}(_0x469944)['toUpperCase']()+'_LIST_'+_0x469944['toUpperCase']()['replace'](/-/g,'_');}}const Ut=['disc','circle','square'],Gt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Ht extends _0x46e166{['afterInit'](){const _0x2df3b0=this['editor'];_0x2df3b0['commands']['get']('emoji')&&_0x2df3b0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class $t extends _0x46e166{static get['requires'](){return[rt];}['init'](){const _0x3dd345=this['editor'],_0x19de50=_0x3dd345['plugins']['get']('TrackChangesEditing'),_0x5eaaab=_0x3dd345['commands']['get']('enter');_0x19de50['enableCommand']('enter',()=>{_0x3dd345['model']['change'](_0x358aac=>{const _0x3de75d=_0x3dd345['model']['document']['selection'],_0x18c743=_0x3de75d['getFirstPosition'](),_0x5d6372=_0x541ce3['fromRange'](_0x3de75d['getFirstRange']());if(_0x5eaaab['enterBlock'](_0x358aac)){const _0x4c7fbd=_0x3dd345['model']['createPositionAt'](_0x18c743['parent']['nextSibling'],0x0),_0x450f8e=_0x358aac['createRange'](_0x18c743,_0x4c7fbd);_0x19de50['markInsertion'](_0x450f8e);}else _0x358aac['setSelection'](_0x358aac['createRange'](_0x5d6372['end']));_0x5d6372['detach'](),_0x5eaaab['fire']('afterExecute',{'writer':_0x358aac});});});}}class Vt extends _0x46e166{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5a6ca7=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a6ca7['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5a6ca7['enableCommand']('findNext'),_0x5a6ca7['enableCommand']('findPrevious'),_0x5a6ca7['enableCommand']('replace'),_0x5a6ca7['enableCommand']('replaceAll');}['handleFindCommand'](_0x5486e1,_0x1bddd5,_0x48ff07={}){const _0x5b40ad=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5486e1(_0x1ed9c8=>{let _0x5def3c=('string'==typeof _0x1bddd5?_0x5b40ad['findByTextCallback'](_0x1bddd5,_0x48ff07):_0x1bddd5)(_0x1ed9c8);Array['isArray'](_0x5def3c)&&(_0x5def3c={'results':_0x5def3c,'searchText':'string'==typeof _0x1bddd5?_0x1bddd5:''});const _0x54723f=_0x5def3c['results']['filter'](_0x42d1ed=>!0x1===this['_isInDeletionRange'](_0x42d1ed,_0x1ed9c8['item']));return{..._0x5def3c,'results':_0x54723f};},_0x48ff07);}['_isInDeletionRange'](_0x5c2a10,_0x3bd993){const _0x38a001=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3bd993,_0x5c2a10['start']),this['editor']['model']['createPositionAt'](_0x3bd993,_0x5c2a10['end']));for(const _0x49afde of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x38a001['getIntersection'](_0x49afde['getRange']()))return!0x0;return!0x1;}}const Wt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class jt extends _0x46e166{['afterInit'](){const _0x44a892=this['editor']['locale'],_0x280dea=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2b92b7,commandName:_0x31826e}of Wt)this['editor']['plugins']['has'](_0x2b92b7)&&_0x280dea['enableDefaultAttributesIntegration'](_0x31826e);_0x280dea['descriptionFactory']['registerAttributeLabel']('fontSize',pt(_0x44a892,'FORMAT_FONT_SIZE')),_0x280dea['descriptionFactory']['registerAttributeLabel']('fontFamily',pt(_0x44a892,'FORMAT_FONT_FAMILY')),_0x280dea['descriptionFactory']['registerAttributeLabel']('fontColor',pt(_0x44a892,'FORMAT_FONT_COLOR')),_0x280dea['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',pt(_0x44a892,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e9c9e=this['editor'],_0x52fd0a=_0x1e9c9e['locale'];_0x1e9c9e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x599dca=>{const _0x1693b=_0x52fd0a['t'];if('formatInline'!=_0x599dca['type'])return;const {data:_0x21cd93}=_0x599dca;if(null!=_0x21cd93){if('fontSize'==_0x21cd93['commandName']){const _0x36e5c6=_0x21cd93['commandParams'][0x0]['value'];if(_0x36e5c6){const _0x333f02=_0x1693b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x264d97=>_0x264d97['model']==_0x36e5c6)['title'])['toLowerCase']();return{'type':'format','content':pt(_0x52fd0a,'*Set\x20font\x20size:*\x20%0',_0x333f02)};}return{'type':'format','content':pt(_0x52fd0a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x21cd93['commandName']){const _0x14f9b2=_0x21cd93['commandParams'][0x0]['value'];return _0x14f9b2?{'type':'format','content':pt(_0x52fd0a,'*Set\x20font\x20family:*\x20%0',_0x14f9b2)}:{'type':'format','content':pt(_0x52fd0a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x21cd93['commandName']){const _0x4ecd1c=_0x21cd93['commandParams'][0x0]['value'];if(_0x4ecd1c){const _0x2594b2=_0x488dc2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x19647e=>_0x19647e['model']==_0x4ecd1c);let _0x45fa60=_0x4ecd1c,_0xb52846='';return _0x2594b2&&(_0x45fa60=_0x2594b2['label'],_0xb52846=_0x1693b(_0x45fa60)['toLowerCase']()),{'type':'format','content':pt(_0x52fd0a,'*Set\x20font\x20color:*\x20%0',_0xb52846)['trim'](),'color':{'value':_0x4ecd1c,'title':_0xb52846||_0x45fa60}};}return{'type':'format','content':pt(_0x52fd0a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x21cd93['commandName']){const _0x146926=_0x21cd93['commandParams'][0x0]['value'];if(_0x146926){const _0x26e74f=_0x488dc2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1c94bc=>_0x1c94bc['model']==_0x146926);let _0x5be60d=_0x146926,_0x2157c1='';return _0x26e74f&&(_0x5be60d=_0x26e74f['label'],_0x2157c1=_0x1693b(_0x5be60d)['toLowerCase']()),{'type':'format','content':pt(_0x52fd0a,'*Set\x20font\x20background\x20color:*\x20%0',_0x2157c1)['trim'](),'color':{'value':_0x146926,'title':_0x2157c1||_0x5be60d}};}return{'type':'format','content':pt(_0x52fd0a,'*Reset\x20font\x20background\x20color*')};}}});}}class zt extends _0x46e166{['afterInit'](){const {plugins:_0xc91e39}=this['editor'];_0xc91e39['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xc91e39['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x386c1e,plugins:_0x55b5d9,commands:_0x482f49}=this['editor'],_0x46df63=_0x55b5d9['get']('TrackChangesEditing');_0x482f49['get']('footnotesStyle')&&_0x46df63['enableDefaultAttributesIntegration']('footnotesStyle'),_0x482f49['get']('footnotesStart')&&_0x46df63['enableDefaultAttributesIntegration']('footnotesStart'),_0x46df63['registerBlockAttribute']('footnotesListStyle'),_0x46df63['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',pt(_0x386c1e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x46df63['registerBlockAttribute']('footnotesListStart'),_0x46df63['descriptionFactory']['registerAttributeLabel']('footnotesListStart',pt(_0x386c1e,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x17ac0e=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x15389b,commands:_0x385a41}=this['editor'];_0x385a41['get']('insertFootnote')&&_0x17ac0e['enableCommand']('insertFootnote'),_0x17ac0e['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1877f7=>pt(_0x15389b,'ELEMENT_FOOTNOTE_REF',_0x1877f7)),_0x17ac0e['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5648a2=>pt(_0x15389b,'ELEMENT_FOOTNOTE_DEFINITION',_0x5648a2)),_0x17ac0e['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x185c75=>pt(_0x15389b,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x185c75));}}class Kt extends _0x46e166{['afterInit'](){const _0x10fc32=this['editor'],_0x387fd1=_0x10fc32['plugins']['get']('TrackChangesEditing'),_0x2d7a7d=_0x10fc32['commands']['get']('copyFormat'),_0x1cafca=_0x10fc32['commands']['get']('pasteFormat');_0x2d7a7d&&_0x1cafca&&(_0x387fd1['enableDefaultAttributesIntegration']('pasteFormat'),_0x387fd1['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xfe5caa=this['editor'],_0xbd6580=_0xfe5caa['locale'];_0xfe5caa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f2032=>{if('formatBlock'!=_0x4f2032['type']&&'formatInline'!=_0x4f2032['type'])return;const {data:_0x40e195}=_0x4f2032;if(_0x40e195&&'pasteFormat'===_0x40e195['commandName']){const _0x51efb7=[],_0x223c36=_0x40e195['commandParams'][0x0];for(const [_0x352e4e,_0x4f4fd2]of Object['entries'](_0x223c36))_0x51efb7['push'](Xt(_0xfe5caa,_0x352e4e,_0x4f4fd2));return _0x51efb7['length']?{'type':'format','content':pt(_0xbd6580,'*Set\x20format\x20to:*\x20%0',_0x51efb7['join'](',\x20'))}:{'type':'format','content':pt(_0xbd6580,'*Remove\x20all\x20formatting*')};}});}}function Xt(_0x4b62a7,_0x2cafa0,_0x3924fb){const _0x5c0b9c=_0x4b62a7['locale']['t'],_0x20d414=_0x2cafa0['split'](/(?=[A-Z])/)['join']('\x20'),_0x54e55e=_0x5c0b9c(_0x20d414['charAt'](0x0)['toUpperCase']()+_0x20d414['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3924fb)return _0x54e55e;if('fontColor'===_0x2cafa0||'fontBackgroundColor'===_0x2cafa0){const _0x4ee238=_0x488dc2(_0x4b62a7['config']['get']('fontColor.colors'))['find'](_0x5cbfa5=>_0x5cbfa5['model']==_0x3924fb);return _0x54e55e+'\x20('+(_0x4ee238?_0x5c0b9c(_0x4ee238['label'])['toLowerCase']():_0x3924fb)+')';}if('fontSize'===_0x2cafa0&&isNaN(parseFloat(_0x3924fb))){const _0x472cd8=_0x4b62a7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4b62a7['config']['get']('fontSize.options'))['find'](_0x1e6ad2=>_0x1e6ad2['model']==_0x3924fb);return _0x54e55e+'\x20('+(_0x472cd8?_0x5c0b9c(_0x472cd8['title'])['toLowerCase']():_0x3924fb)+')';}return _0x54e55e+'\x20('+_0x3924fb+')';}class Yt extends _0x46e166{['_headingOptions'];['afterInit'](){const _0x5aa284=this['editor'];if(!_0x5aa284['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5aa284['config']['get']('heading.options');const _0x49e2a9=_0x5aa284['locale'],_0x2cfae6=_0x5aa284['plugins']['get']('TrackChangesEditing');_0x2cfae6['enableDefaultAttributesIntegration']('heading');for(const _0x14e4fb of this['_headingOptions'])'paragraph'!=_0x14e4fb['model']&&_0x2cfae6['descriptionFactory']['registerElementLabel'](_0x14e4fb['model'],_0xaef8e0=>{const _0x4e60d8=this['_getHeadingLevel'](_0x14e4fb['model']);return null!==_0x4e60d8?_0x3c331f(_0xaef8e0,_0x4e60d8):_0x497599(_0xaef8e0,_0x14e4fb['title']);});function _0x3c331f(_0x5680cf,_0x27328b){return pt(_0x49e2a9,'ELEMENT_HEADING',[_0x5680cf,_0x27328b]);}function _0x497599(_0x1170d7,_0x2ebd4b){return pt(_0x49e2a9,'ELEMENT_HEADING_CUSTOM',[_0x1170d7,_0x2ebd4b]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x131811=this['editor'],_0x13bb76=_0x131811['locale'];function _0x1bda82(_0x4e7b88,_0x37811b){return pt(_0x13bb76,'ELEMENT_HEADING_CUSTOM',[_0x4e7b88,_0x37811b]);}_0x131811['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x184d87=>{if('formatBlock'!=_0x184d87['type'])return;const {data:_0x5984dc}=_0x184d87;if(_0x5984dc&&'heading'==_0x5984dc['commandName']){const _0x2456ae=_0x5984dc['commandParams'][0x0]['value'],_0x4711a2=this['_getHeadingLevel'](_0x2456ae);if(null!==_0x4711a2)return{'type':'format','content':pt(_0x13bb76,'*Change\x20to:*\x20%0',(_0x3d85d9=0x1,_0x160712=_0x4711a2,pt(_0x13bb76,'ELEMENT_HEADING',[_0x3d85d9,_0x160712])))};const _0x4206e2=this['_headingOptions']['find'](_0x564019=>_0x564019['model']===_0x2456ae)['title'];return{'type':'format','content':pt(_0x13bb76,'*Change\x20to:*\x20%0',_0x1bda82(0x1,_0x4206e2))};}var _0x3d85d9,_0x160712;});}['_getHeadingLevel'](_0x54880b){const _0xe36329=_0x54880b['match'](/^heading(\d+)/);if(_0xe36329)return _0xe36329[0x1];const _0x59e1b0=this['_headingOptions']?.['find'](_0x3c3667=>_0x3c3667['model']==_0x54880b);if(_0x59e1b0&&_0x59e1b0['view']){const _0x5b6bd9=_0x59e1b0['view'],_0x339f5f=(_0x5b6bd9['name']??_0x5b6bd9)['match'](/^h(\d+)/);if(_0x339f5f)return _0x339f5f[0x1];}return null;}}class qt extends _0x46e166{['afterInit'](){const _0xad93d=this['editor'];if(!_0xad93d['plugins']['has']('HighlightEditing'))return;const _0x447dc3=_0xad93d['plugins']['get']('TrackChangesEditing'),_0x2452f0=_0xad93d['locale'];_0x447dc3['enableDefaultAttributesIntegration']('highlight'),_0x447dc3['descriptionFactory']['registerAttributeLabel']('highlight',pt(_0x2452f0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x380ce3=this['editor'],_0x5e4d42=_0x380ce3['locale'];_0x380ce3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f532b=>{if('formatInline'!=_0x5f532b['type'])return;const {data:_0x377f07}=_0x5f532b;if(_0x377f07&&'highlight'==_0x377f07['commandName']){const _0x289835=_0x5e4d42['t'],_0xba0639=_0x377f07['commandParams'][0x0]['value'];if(_0xba0639){const _0x237898=_0x380ce3['config']['get']('highlight.options')['find'](_0x199f84=>_0x199f84['model']==_0xba0639),_0x1e06a0=_0x289835(_0x237898['title'])['toLowerCase']();return{'type':'format','content':pt(_0x5e4d42,'*Set\x20highlight:*\x20%0',_0x1e06a0),'color':{'value':_0x237898['color'],'title':_0x237898['title']}};}return{'type':'format','content':pt(_0x5e4d42,'*Remove\x20highlight*',pt(_0x5e4d42,'FORMAT_HIGHLIGHT'))};}});}}class Qt extends _0x46e166{['afterInit'](){const _0x570336=this['editor'];if(!_0x570336['plugins']['has']('HorizontalLineEditing'))return;_0x570336['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x21ddb3=_0x570336['plugins']['get']('TrackChangesEditing'),_0x40ac15=_0x570336['locale'];_0x21ddb3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x33575e=>pt(_0x40ac15,'ELEMENT_HORIZONTAL_LINE',_0x33575e));}}class Zt extends _0x46e166{['afterInit'](){const _0x558ee4=this['editor'];if(!_0x558ee4['plugins']['has']('HtmlEmbed'))return;const _0x5a9b1f=_0x558ee4['plugins']['get']('TrackChangesEditing'),_0x5939ca=_0x558ee4['locale'];_0x5a9b1f['descriptionFactory']['registerElementLabel']('rawHtml',_0x336bf2=>pt(_0x5939ca,'ELEMENT_HTML_EMBED',_0x336bf2)),_0x5a9b1f['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5a9b1f['descriptionFactory']['registerDescriptionCallback'](_0xb7bb29=>{if('attribute'!=_0xb7bb29['type'])return;const {data:_0x3957f}=_0xb7bb29;if(_0x3957f&&'value'==_0x3957f['key']&&_0xb7bb29['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x399fde=pt(_0x5939ca,'ELEMENT_HTML_EMBED');return{'type':'format','content':pt(_0x5939ca,'*Change\x20%0\x20content*',_0x399fde)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5db894=this['editor'],_0x17de4b=_0x5db894['locale'];_0x5db894['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1848b6=>{if('formatBlock'!=_0x1848b6['type'])return;const {data:_0x124e7a}=_0x1848b6;if(_0x124e7a&&'htmlEmbed'==_0x124e7a['commandName']){const _0x4d6f3c=pt(_0x17de4b,'ELEMENT_HTML_EMBED');return{'type':'format','content':pt(_0x17de4b,'*Change\x20%0\x20content*',_0x4d6f3c)};}});}}class Jt extends _0x46e166{['afterInit'](){const _0x37a9da=this['editor'];if(!_0x37a9da['plugins']['has']('ImageEditing'))return;const _0x32cd3c=_0x37a9da['plugins']['get']('TrackChangesEditing'),_0x1b4844=_0x37a9da['plugins']['get']('ImageUtils'),_0x231560=_0x37a9da['locale'];_0x32cd3c['enableCommand']('insertImage'),_0x32cd3c['descriptionFactory']['registerElementLabel']('imageBlock',_0x36c420=>pt(_0x231560,'ELEMENT_IMAGE',_0x36c420)),_0x32cd3c['descriptionFactory']['registerElementLabel']('imageInline',_0x573fb7=>pt(_0x231560,'ELEMENT_INLINE_IMAGE',_0x573fb7)),_0x32cd3c['descriptionFactory']['registerElementLabel']('caption',()=>pt(_0x231560,'ELEMENT_CAPTION')),_0x37a9da['plugins']['has']('ImageUploadEditing')&&_0x32cd3c['enableCommand']('uploadImage'),_0x37a9da['plugins']['has']('ImageBlockEditing')&&_0x37a9da['plugins']['has']('ImageInlineEditing')&&(_0x32cd3c['enableCommand']('imageTypeInline',(_0x94bd0a,_0x27ae15)=>{const _0x3042ce=_0x1b4844['getClosestSelectedImageElement'](_0x37a9da['model']['document']['selection']);_0x37a9da['model']['change'](()=>{_0x32cd3c['markBlockFormat'](_0x3042ce,{'commandName':'imageTypeInline','commandParams':[_0x27ae15]},[],'convertBlockImageToInline');});}),_0x32cd3c['enableCommand']('imageTypeBlock',(_0x2410fe,_0x369586)=>{_0x37a9da['model']['change'](_0xf3fb27=>{let _0x2d1de8=_0x1b4844['getClosestSelectedImageElement'](_0x37a9da['model']['document']['selection']),_0x11de00=_0xf3fb27['createRangeOn'](_0x2d1de8);const _0x3bcaa0=_0x258158['fromPosition'](_0x11de00['start'],'toPrevious'),_0x92d912=_0x258158['fromPosition'](_0x11de00['end'],'toNext');_0x32cd3c['forceDefaultExecution'](()=>_0x2410fe(_0x369586)),_0x2d1de8=_0x1b4844['getClosestSelectedImageElement'](_0x37a9da['model']['document']['selection']),_0x11de00=_0xf3fb27['createRangeOn'](_0x2d1de8);const _0x10f530=_0xf3fb27['createRange'](_0x3bcaa0,_0x92d912);_0x3bcaa0['detach'](),_0x92d912['detach'](),_0x32cd3c['markBlockFormat'](_0x2d1de8,{'commandName':'imageTypeInline','commandParams':[_0x369586]},[],'convertInlineImageToBlock'),_0x10f530['start']['isBefore'](_0x11de00['start'])&&_0x32cd3c['markInsertion'](_0xf3fb27['createRange'](_0x10f530['start'],_0x11de00['start']),'convertInlineImageToBlock'),_0x11de00['end']['isBefore'](_0x10f530['end'])&&_0x32cd3c['markInsertion'](_0xf3fb27['createRange'](_0x11de00['end'],_0x10f530['end']),'convertInlineImageToBlock');});}),_0x32cd3c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x32cd3c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x32cd3c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x32cd3c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x32cd3c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x32cd3c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x592f5e])=>{const _0x1f2228=_0x32cd3c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1b457a=_0x592f5e['start'],_0x11a0da=_0x592f5e['end'];const _0x32048b=_0x37a9da['model']['schema']['getNearestSelectionRange'](_0x1b457a,'backward'),_0x22d5d7=_0x37a9da['model']['schema']['getNearestSelectionRange'](_0x11a0da,'forward');_0x32048b['isCollapsed']&&(_0x1b457a=_0x32048b['start']),_0x22d5d7['isCollapsed']&&(_0x11a0da=_0x22d5d7['end']),_0x1f2228([_0x37a9da['model']['createRange'](_0x1b457a,_0x11a0da)]);}),_0x32cd3c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xa55874),_0x32cd3c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xa55874)),_0x37a9da['plugins']['has']('ImageCaptionEditing')&&(_0x32cd3c['enableCommand']('toggleImageCaption',(_0x4e722a,_0x229325)=>{const _0x24b1df=_0x37a9da['plugins']['get']('ImageCaptionUtils');let _0x4901f4=_0x1b4844['getClosestSelectedImageElement'](_0x37a9da['model']['document']['selection']),_0x2fcfca=_0x24b1df['getCaptionFromImageModelElement'](_0x4901f4);_0x37a9da['model']['change'](()=>{if(_0x2fcfca)return void _0x32cd3c['markDeletion'](_0x37a9da['model']['createRangeOn'](_0x2fcfca));const _0x5d1c50=_0x1b4844['isBlockImage'](_0x4901f4);_0x4e722a(_0x229325),_0x4901f4=_0x1b4844['getClosestSelectedImageElement'](_0x37a9da['model']['document']['selection']),_0x2fcfca=_0x24b1df['getCaptionFromImageModelElement'](_0x4901f4),_0x32cd3c['markInsertion'](_0x37a9da['model']['createRangeOn'](_0x2fcfca),_0x5d1c50?null:'imageCaption');});}),_0x32cd3c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xa55874));const _0x1782a1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5b254e(_0x3f90aa,_0x47f378){const _0x5a1262=_0x1782a1['findIndex'](({type:_0x3f9c83,subType:_0xb2e5e9})=>_0x3f90aa['type']==_0x3f9c83&&_0x3f90aa['subType']==_0xb2e5e9),_0x127c2d=_0x1782a1['findIndex'](({type:_0x4cd00b,subType:_0x5d6234})=>_0x47f378['type']==_0x4cd00b&&_0x47f378['subType']==_0x5d6234);if(_0x5a1262<0x0||_0x127c2d<0x0)return!0x1;const _0x2b4894=_0x3f90aa['getFirstRange'](),_0x5b8f8d=_0x47f378['getFirstRange']();if((0x0==_0x5a1262||0x1==_0x5a1262)&&0x2==_0x127c2d&&_0x2b4894['isIntersecting'](_0x5b8f8d))return!0x0;if(0x2==_0x5a1262&&0x3==_0x127c2d){const _0x3e2800=_0x32cd3c['_findSuggestions'](_0x2b4894,'insertion')['filter'](({suggestion:_0xa8b2e7,meta:_0x8d7ae4})=>_0x8d7ae4['isOwn']&&'convertInlineImageToBlock'==_0xa8b2e7['subType']);if(_0x3e2800['length']>0x1&&_0x5b8f8d['end']['isEqual'](_0x2b4894['start']))return!0x0;if(0x1==_0x3e2800['length']&&(_0x2b4894['start']['isEqual'](_0x5b8f8d['end'])||_0x2b4894['end']['isEqual'](_0x5b8f8d['start'])))return!0x0;}if(0x3==_0x5a1262&&0x3==_0x127c2d&&_0x2b4894['start']['isBefore'](_0x5b8f8d['start'])){const _0x1900f0=_0x2b4894['end']['nodeAfter'],_0x1138c3=_0x5b8f8d['start']['nodeBefore'];return _0x1b4844['isBlockImage'](_0x1900f0)&&_0x1900f0===_0x1138c3;}return!0x1;}function _0xa55874(_0x3e0d9,_0x30e3fa){return _0x5b254e(_0x3e0d9,_0x30e3fa)?[_0x3e0d9,_0x30e3fa]:_0x5b254e(_0x30e3fa,_0x3e0d9)?[_0x30e3fa,_0x3e0d9]:null;}_0x37a9da['plugins']['has']('ImageResize')&&(_0x32cd3c['enableDefaultAttributesIntegration']('resizeImage'),_0x32cd3c['descriptionFactory']['registerAttributeLabel']('resizedWidth',pt(_0x231560,'FORMAT_IMAGE_SIZE'))),_0x37a9da['plugins']['has']('ImageTextAlternativeEditing')&&_0x32cd3c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x37a9da['plugins']['has']('PictureEditing')&&_0x32cd3c['descriptionFactory']['registerDescriptionCallback'](_0x3f349c=>{if('attribute'!=_0x3f349c['type'])return;const {data:_0x23554d}=_0x3f349c;return _0x23554d&&'sources'==_0x23554d['key']?{'type':'format','content':''}:void 0x0;}),_0x37a9da['plugins']['has']('ImageSizeAttributes')&&_0x32cd3c['descriptionFactory']['registerDescriptionCallback'](_0x4f1f43=>{if('attribute'!=_0x4f1f43['type'])return;const {data:_0x114f78}=_0x4f1f43;return!_0x114f78||'width'!=_0x114f78['key']&&'height'!=_0x114f78['key']?void 0x0:{'type':'format','content':''};}),_0x32cd3c['descriptionFactory']['registerDescriptionCallback'](_0xb05406=>{if(!!_0x1782a1['find'](({type:_0x23139c,subType:_0x28df0d})=>_0xb05406['type']==_0x23139c&&_0xb05406['subType']==_0x28df0d))return _0xb05406['previous']?{}:void 0x0;}),_0x32cd3c['descriptionFactory']['registerDescriptionCallback'](_0x2d6869=>{if('insertion'==_0x2d6869['type']||'deletion'==_0x2d6869['type']){const _0x51ef48=_0x2d6869['getContainedElement']();if(_0x51ef48&&_0x51ef48['is']('element','caption'))return{'type':'insertion'==_0x2d6869['type']?'addObject':'removeObject','element':_0x51ef48,'quantity':0x1};}}),_0x32cd3c['descriptionFactory']['registerDescriptionCallback'](_0x1c7943=>'formatBlock'==_0x1c7943['type']&&'convertInlineImageToBlock'==_0x1c7943['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1c7943['type']&&'convertBlockImageToInline'==_0x1c7943['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x32cd3c['descriptionFactory']['registerDescriptionCallback'](_0x532ad7=>{if('attribute'!=_0x532ad7['type'])return;const {data:_0x277ceb}=_0x532ad7;if(!_0x277ceb||'alt'!=_0x277ceb['key'])return;const _0x543c94=_0x277ceb['newValue'];return _0x543c94?{'type':'format','content':pt(_0x231560,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x543c94+'\x22')}:{'type':'format','content':pt(_0x231560,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ba658=this['editor'],_0x125afc=_0x1ba658['locale'];_0x1ba658['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44e3fa=>{if('formatBlock'!=_0x44e3fa['type']&&'formatInline'!=_0x44e3fa['type'])return;const {data:_0x2d1acd}=_0x44e3fa;if(_0x2d1acd){if('imageTextAlternative'==_0x2d1acd['commandName']){const _0x176174=_0x2d1acd['commandParams'][0x0]['newValue'];return _0x176174?{'type':'format','content':pt(_0x125afc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x176174+'\x22')}:{'type':'format','content':pt(_0x125afc,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2d1acd['commandName']){const _0x22ac1c=_0x2d1acd['commandParams'][0x0]['width'];return _0x22ac1c?{'type':'format','content':pt(_0x125afc,'*Set\x20image\x20width:*\x20%0',_0x22ac1c)}:{'type':'format','content':pt(_0x125afc,'*Reset\x20image\x20width*')};}}});}}class te extends _0x46e166{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5a8e7b=this['editor']['locale'],_0x18c9a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x18c9a4['enableDefaultAttributesIntegration']('replaceImageSource'),_0x18c9a4['descriptionFactory']['registerDescriptionCallback'](_0x5d8bbb=>{if('attribute'!=_0x5d8bbb['type'])return;const {data:_0x249f9f}=_0x5d8bbb;return _0x249f9f&&'src'==_0x249f9f['key']?_0x249f9f['newValue']&&_0x249f9f['oldValue']?{'type':'format','content':pt(_0x5a8e7b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xcf32c9=this['editor']['plugins']['get']('TrackChangesEditing');_0xcf32c9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xcf32c9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xcf32c9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xcf32c9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f064b=this['editor'],_0x27f1fc=_0x1f064b['locale'];_0x1f064b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d05ae=>{if('formatBlock'!=_0x5d05ae['type']&&'formatInline'!=_0x5d05ae['type'])return;const {data:_0x55b9bc}=_0x5d05ae;if(!_0x55b9bc||'replaceImageSource'!=_0x55b9bc['commandName'])return;return{'type':'format','content':pt(_0x27f1fc,'*Format:*\x20replace\x20image\x20URL')};});}}class ee extends _0x46e166{['afterInit'](){const _0x5724d4=this['editor'];if(!_0x5724d4['plugins']['has']('ImageStyleEditing'))return;const _0xb4d53e=_0x5724d4['plugins']['get']('TrackChangesEditing'),_0x2f8626=_0x5724d4['plugins']['get']('ImageUtils'),_0x32185d={};_0xb4d53e['enableCommand']('imageStyle',(_0x263e7c,_0x35ed96)=>{const _0x4b093b=_0x5724d4['plugins']['get']('Users')['me'],_0x477d75=_0x5724d4['commands']['get']('imageStyle');let _0x1eb80f=_0x2f8626['getClosestSelectedImageElement'](_0x5724d4['model']['document']['selection']),_0x59b068=_0x5724d4['model']['createRangeOn'](_0x1eb80f),_0x19a1ab=_0x477d75['value'];if(_0x19a1ab==_0x35ed96['value'])return;const _0x54853d={'commandName':'imageStyle','commandParams':[_0x35ed96],'formatGroupId':_0xf371f8()};_0x5724d4['model']['change'](()=>{if(_0xb4d53e['getSuggestions']()['filter'](_0x1aa419=>_0x1aa419['isInContent']&&_0x4b093b==_0x1aa419['author']&&('formatBlock'==_0x1aa419['type']||'formatInline'==_0x1aa419['type'])&&('imageStylePreApply'==_0x1aa419['subType']||'imageStylePostApply'==_0x1aa419['subType'])&&_0x1aa419['getFirstRange']()['isEqual'](_0x59b068))['forEach'](_0x4ea017=>_0xb4d53e['discardSuggestion'](_0x4ea017['head'])),_0x1eb80f=_0x2f8626['getClosestSelectedImageElement'](_0x5724d4['model']['document']['selection']),_0x59b068=_0x5724d4['model']['createRangeOn'](_0x1eb80f),_0x477d75['refresh'](),_0x5724d4['commands']['get']('imageTypeInline')['refresh'](),_0x5724d4['commands']['get']('imageTypeBlock')['refresh'](),_0x19a1ab=_0x477d75['value'],_0x19a1ab!=_0x35ed96['value'])return _0x2f8626['isInlineImage'](_0x1eb80f)&&_0x477d75['shouldConvertImageType'](_0x35ed96['value'],_0x1eb80f)?(_0x263e7c({..._0x35ed96,'setImageSizes':!0x1}),_0x1eb80f=_0x2f8626['getClosestSelectedImageElement'](_0x5724d4['model']['document']['selection']),void _0xb4d53e['markBlockFormat'](_0x1eb80f,{..._0x54853d,'commandReversedParams':[{'value':_0x19a1ab||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2f8626['isBlockImage'](_0x1eb80f)?_0xb4d53e['markBlockFormat'](_0x1eb80f,_0x54853d,[],'imageStylePostApply'):_0xb4d53e['markInlineFormat'](_0x59b068,_0x54853d,'imageStylePostApply'));});});for(const _0x171349 of _0x5724d4['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x32185d[_0x171349['name']]=_0x171349['title']['toLowerCase']();_0xb4d53e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xb4d53e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xb4d53e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xb4d53e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2ad8f3])=>{_0x2f8626['setImageNaturalSizeAttributes'](_0x2ad8f3['getContainedElement']());}),_0xb4d53e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2cc7fb,_0xc3209)=>{_0xb4d53e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2cc7fb,{'commandName':_0xc3209['commandName'],'commandParams':_0xc3209['commandReversedParams']});}),_0xb4d53e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x99c909,_0x314bc6){if(_0x280710(_0x99c909,_0x314bc6))return[_0x99c909,_0x314bc6];if(_0x280710(_0x314bc6,_0x99c909))return[_0x314bc6,_0x99c909];return null;});const _0x12c1a5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x280710(_0x2a20ce,_0x1c2b54){const _0x4edff1=_0x12c1a5['findIndex'](({type:_0x274ebb,subType:_0x5aa5d7})=>_0x2a20ce['type']==_0x274ebb&&_0x2a20ce['subType']==_0x5aa5d7),_0x441567=_0x12c1a5['findIndex'](({type:_0x5447b2,subType:_0x292578})=>_0x1c2b54['type']==_0x5447b2&&_0x1c2b54['subType']==_0x292578);if(_0x4edff1<0x0||_0x441567<0x0)return!0x1;const _0x5c4c57=_0x2a20ce['getFirstRange'](),_0x44d694=_0x1c2b54['getFirstRange']();if((0x0==_0x4edff1||0x1==_0x4edff1)&&0x2==_0x441567&&_0x5c4c57['isIntersecting'](_0x44d694))return!0x0;if(0x2==_0x4edff1&&0x3==_0x441567){const _0x469b76=_0xb4d53e['_findSuggestions'](_0x5c4c57,'insertion')['filter'](({suggestion:_0x1afe82,meta:_0x4ffeb8})=>_0x4ffeb8['isOwn']&&'convertInlineImageToBlock'==_0x1afe82['subType']);if(_0x469b76['length']>0x1&&_0x44d694['end']['isEqual'](_0x5c4c57['start']))return!0x0;if(0x1==_0x469b76['length']&&(_0x5c4c57['start']['isEqual'](_0x44d694['end'])||_0x5c4c57['end']['isEqual'](_0x44d694['start'])))return!0x0;}if(0x3==_0x4edff1&&0x3==_0x441567&&_0x5c4c57['start']['isBefore'](_0x44d694['start'])){const _0x19e7c4=_0x5c4c57['end']['nodeAfter'],_0x5b0c9c=_0x44d694['start']['nodeBefore'];return _0x2f8626['isBlockImage'](_0x19e7c4)&&_0x19e7c4===_0x5b0c9c;}return!0x1;}_0x5724d4['model']['document']['registerPostFixer'](()=>{let _0x3f17f7=!0x1;const _0x2f278f=Array['from'](_0x5724d4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x481a64,data:_0x1400df}of _0x2f278f){const {group:_0xe03fc9,type:_0x4435f6,subType:_0x27c3bb,id:_0xd3ffcc}=_0xb4d53e['_splitMarkerName'](_0x481a64);if('suggestion'==_0xe03fc9&&_0xb4d53e['hasSuggestion'](_0xd3ffcc)){if('formatBlock'==_0x4435f6&&('imageStylePreApply'==_0x27c3bb||'imageStylePostApply'==_0x27c3bb)){const _0x4060ba=_0xb4d53e['getSuggestion'](_0xd3ffcc);if(_0x1400df['newRange']){const _0x324ef0=_0x4060ba['getFirstRange']()['getContainedElement']();if(_0x2f8626['isBlockImage'](_0x324ef0))continue;_0xb4d53e['discardSuggestion'](_0x4060ba),_0x3f17f7=!0x0;}}if('insertion'==_0x4435f6&&'imageCaption'==_0x27c3bb&&!_0x1400df['newRange']){const _0x2906e4=_0xb4d53e['getSuggestion'](_0xd3ffcc);_0x2906e4['next']&&_0x2906e4['next']['isInContent']&&(_0xb4d53e['discardSuggestion'](_0x2906e4['next']),_0x3f17f7=!0x0);}}}return _0x3f17f7;}),this['_registerLegacyDescription'](_0x32185d);}['_registerLegacyDescription'](_0x2dd3bf){const _0x5a7ba3=this['editor'],_0x4337f9=_0x5a7ba3['locale'];_0x5a7ba3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f1d59=>{if('formatBlock'!=_0x1f1d59['type']&&'formatInline'!=_0x1f1d59['type'])return;const {data:_0x4d39c6}=_0x1f1d59;if(!_0x4d39c6||'imageStyle'!=_0x4d39c6['commandName'])return;const _0x48044e=_0x4d39c6['commandParams'][0x0]['value'];return _0x33f655('side'===_0x48044e?pt(_0x4337f9,'FORMAT_SIDE_IMAGE'):_0x2dd3bf[_0x48044e]||_0x48044e);function _0x33f655(_0x8d8acf){return{'type':'format','content':pt(_0x4337f9,'*Format:*\x20%0',_0x8d8acf)};}});}}class ne extends _0x46e166{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3554da){super(_0x3554da),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x111eaf=this['editor'],_0x81292f=_0x111eaf['commands']['get']('importWord'),_0x2ba8a3=_0x111eaf['commands']['get']('trackChanges');_0x81292f&&(_0x81292f['on']('execute',(_0x12c579,[,_0x3315ea])=>{this['_trackChangesValueDuringImport']=_0x2ba8a3['value'],_0x3315ea['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x81292f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x81292f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2ba8a3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x111eaf['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xc78fb9,_0x55198f){const {suggestions:_0x48c4ff}=_0x55198f,_0x35580f=this['editor']['commands']['get']('trackChanges'),_0x105f4f=_0x35580f['value'];this['_trackChangesValueDuringImport']!==_0x105f4f&&(_0x35580f['execute'](),this['_trackChangesExecuted']=!0x0),_0x48c4ff&&_0x48c4ff['forEach'](({id:_0x51967e,type:_0x2c1b73,author:_0x19e6bd,created_at:_0x19b041})=>{const _0x18fd05={'id':_0x51967e,'type':_0x2c1b73,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x19e6bd,'createdAt':_0x19b041?new Date(_0x19b041):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x18fd05);});}}class ie extends _0x46e166{['afterInit'](){const _0x4e6b69=this['editor'],_0x27f25=_0x4e6b69['plugins']['get']('TrackChangesEditing');if(_0x4e6b69['plugins']['has']('IndentEditing')&&(_0x27f25['enableCommand']('indent'),_0x27f25['enableCommand']('outdent')),_0x4e6b69['plugins']['has']('IndentBlock')){for(const _0x475e4a of['indentBlock','outdentBlock'])_0x27f25['enableDefaultAttributesIntegration'](_0x475e4a);}const _0x4e8166=_0x4e6b69['locale'];_0x27f25['descriptionFactory']['registerAttributeLabel']('blockIndent',pt(_0x4e8166,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52b012=this['editor'],_0x2a5687=_0x52b012['locale'],_0x4820a7=_0x52b012['plugins']['get']('TrackChangesEditing');_0x4820a7['descriptionFactory']['registerDescriptionCallback'](_0x1cf41c=>{if('formatBlock'!=_0x1cf41c['type'])return;const {data:_0x34f0e5}=_0x1cf41c;if(!_0x34f0e5)return;if('indentBlock'!=_0x34f0e5['commandName']&&'outdentBlock'!=_0x34f0e5['commandName'])return;const _0x5bee60=_0x1cf41c['getItems']()[0x0],_0xa38d02=_0x4820a7['descriptionFactory']['getItemLabel'](_0x5bee60);return'indentBlock'==_0x34f0e5['commandName']?{'type':'format','content':pt(_0x2a5687,'*Indent:*\x20%0',_0xa38d02)}:'outdentBlock'==_0x34f0e5['commandName']?{'type':'format','content':pt(_0x2a5687,'*Outdent:*\x20%0',_0xa38d02)}:void 0x0;});}}class se extends _0x46e166{static get['requires'](){return[st];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class re extends _0x46e166{['afterInit'](){const _0x381f24=this['editor'];if(!_0x381f24['plugins']['has']('LinkEditing'))return;const _0x40ed9d=_0x381f24['plugins']['get']('TrackChangesEditing'),_0x4e2fe0=_0x381f24['commands']['get']('link');_0x40ed9d['enableDefaultAttributesIntegration']('link'),_0x40ed9d['enableDefaultAttributesIntegration']('unlink');for(const _0x17f4fb of _0x4e2fe0['manualDecorators'])_0x40ed9d['descriptionFactory']['registerAttributeLabel'](_0x17f4fb['id'],'link\x20('+_0x17f4fb['label']['toLowerCase']()+')');_0x40ed9d['descriptionFactory']['registerDescriptionCallback'](_0x4aab85=>{if('attribute'!=_0x4aab85['type'])return;const {data:_0x5184e1}=_0x4aab85;if(!_0x5184e1||'linkHref'!=_0x5184e1['key'])return;const _0x3f69b1=_0x5184e1['newValue'],_0x439e37=_0x381f24['locale'];return{'type':'format','content':null==_0x3f69b1?pt(_0x439e37,'*Remove\x20link*'):pt(_0x439e37,'*Set\x20link:*\x20%0','\x22'+_0x3f69b1+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x244761=this['editor'],_0x1b679c=_0x244761['locale'];_0x244761['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37fdbe=>{if('formatInline'!=_0x37fdbe['type'])return;const {data:_0x42627a}=_0x37fdbe;if(_0x42627a){if('link'==_0x42627a['commandName']){const _0x37c585=_0x42627a['commandParams'][0x0];return{'type':'format','content':pt(_0x1b679c,'*Set\x20link:*\x20%0','\x22'+_0x37c585+'\x22')};}return'unlink'==_0x42627a['commandName']?{'type':'format','content':pt(_0x1b679c,'*Remove\x20link*')}:void 0x0;}});}}class oe extends _0x46e166{['afterInit'](){const _0x26d4c2=this['editor'],_0x3bf364=_0x26d4c2['locale'];if(!_0x26d4c2['plugins']['has']('LegacyListEditing'))return;const _0x270568=_0x26d4c2['plugins']['get']('TrackChangesEditing'),_0x4e6a7b=_0x26d4c2['plugins']['has']('LegacyTodoListEditing');function _0x4b5bb8(_0x189036){return()=>{const _0x4d3350=_0x26d4c2['model']['document']['selection'],_0x67a247=_0x26d4c2['commands']['get'](_0x189036);if(_0x67a247['value'])return void _0x26d4c2['execute']('paragraph',{});const _0x3af354=_0x189036['slice'](0x0,-0x4),_0x25f3fc=function(_0x4ebe0f,_0x3f5e2d,_0x480a0e){let _0x1a965a=Array['from'](_0x4ebe0f)['filter'](_0x45e5b0=>function(_0xa2d310,_0x56d7e2){return _0x56d7e2['checkChild'](_0xa2d310['parent'],'listItem')&&!_0x56d7e2['isObject'](_0xa2d310);}(_0x45e5b0,_0x480a0e));_0x1a965a=_0x1a965a['filter'](_0x45b616=>!_0x45b616['is']('element','listItem')||_0x45b616['getAttribute']('listType')!=_0x3f5e2d);const _0x13914f=new Set();for(const _0x3fae2a of _0x1a965a)_0x3fae2a['is']('element','listItem')?_0x13914f['add'](ae(_0x3fae2a)):_0x13914f['add'](_0x3fae2a);return Array['from'](_0x13914f);}(_0x4d3350['getSelectedBlocks'](),_0x3af354,_0x26d4c2['model']['schema']);_0x26d4c2['model']['change'](()=>{for(const _0x3f249d of _0x25f3fc)_0x270568['markBlockFormat'](_0x3f249d,{'commandName':_0x189036,'commandParams':[{'forceValue':!_0x67a247['value']}],'formatGroupId':'blockName'},ce(_0x3f249d));});};}function _0x260f82(_0x4292ac){return()=>{const _0x359673=function(_0x12a1aa){let _0x44f264=Array['from'](_0x12a1aa);const _0x167575=_0x44f264['findIndex'](_0x2a38a9=>'listItem'!=_0x2a38a9['name']);return _0x167575>-0x1&&(_0x44f264=_0x44f264['slice'](0x0,_0x167575)),_0x44f264;}(_0x26d4c2['model']['document']['selection']['getSelectedBlocks']()),_0x4941a7=_0x26d4c2['model']['createRange'](_0x26d4c2['model']['createPositionAt'](_0x359673[0x0],'before'),_0x26d4c2['model']['createPositionAt'](_0x359673[_0x359673['length']-0x1],'end'));_0x26d4c2['model']['change'](()=>{_0x270568['markBlockFormat'](_0x4941a7,{'commandName':_0x4292ac,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1d7f75){const _0x93a576=new Set();for(const _0x496746 of _0x1d7f75){let _0x13f65a=_0x496746['nextSibling'];for(;_0x13f65a&&_0x13f65a['getAttribute']('listIndent')>_0x496746['getAttribute']('listIndent');)_0x93a576['add'](_0x13f65a),_0x13f65a=_0x13f65a['nextSibling'];}return Array['from'](_0x93a576);}(_0x359673));});};}_0x270568['enableCommand']('numberedList',_0x4b5bb8('numberedList')),_0x270568['enableCommand']('bulletedList',_0x4b5bb8('bulletedList')),_0x4e6a7b&&_0x270568['enableCommand']('todoList',_0x4b5bb8('todoList')),_0x270568['enableCommand']('indentList',_0x260f82('indentList')),_0x270568['enableCommand']('outdentList',_0x260f82('outdentList')),_0x4e6a7b&&_0x270568['enableCommand']('checkTodoList',()=>{const _0x34a08d=_0x26d4c2['commands']['get']('checkTodoList'),_0x2ad9d8=Array['from'](_0x34a08d['_selectedElements']);_0x2ad9d8['filter'](_0xfe5733=>_0xfe5733['getAttribute']('todoListChecked')!=_0x34a08d['value']),_0x26d4c2['model']['change'](()=>{for(const _0x204830 of _0x2ad9d8)_0x270568['markBlockFormat'](_0x204830,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x34a08d['value']}]});});}),_0x270568['descriptionFactory']['registerElementLabel']('listItem',_0x134516=>pt(_0x3bf364,'ELEMENT_LIST_ITEM',_0x134516)),_0x270568['descriptionFactory']['registerDescriptionCallback'](_0x341da6=>{if('formatBlock'!=_0x341da6['type']&&'formatInline'!=_0x341da6['type'])return;const {data:_0x3da554}=_0x341da6;if(_0x3da554){if('numberedList'==_0x3da554['commandName']||'bulletedList'==_0x3da554['commandName']||'todoList'==_0x3da554['commandName'])switch(_0x3da554['commandName']['replace']('List','')){case'bulleted':return _0x1b88dd(pt(_0x3bf364,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b88dd(pt(_0x3bf364,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b88dd(pt(_0x3bf364,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3da554['commandName'])return{'type':'format','content':pt(_0x3bf364,'*Indent:*\x20%0',pt(_0x3bf364,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3da554['commandName'])return{'type':'format','content':pt(_0x3bf364,'*Outdent:*\x20%0',pt(_0x3bf364,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3da554['commandName'])return _0x3da554['commandParams'][0x0]['forceValue']?{'type':'format','content':pt(_0x3bf364,'*Check\x20item*')}:{'type':'format','content':pt(_0x3bf364,'*Uncheck\x20item*')};}function _0x1b88dd(_0x160dd4){return{'type':'format','content':pt(_0x3bf364,'*Change\x20to:*\x20%0',_0x160dd4)};}});}}function ae(_0x437224){const _0x194ca5=_0x437224['getAttribute']('listIndent');if(0x0==_0x194ca5)return _0x437224;let _0x11fed0=_0x437224;for(;_0x437224['previousSibling']&&_0x437224['previousSibling']['is']('element','listItem');){const _0x50a31e=_0x437224['previousSibling']['getAttribute']('listIndent');if(_0x50a31e==_0x194ca5)_0x11fed0=_0x437224['previousSibling'];else{if(_0x50a31e<_0x194ca5)break;}_0x437224=_0x437224['previousSibling'];}return _0x11fed0;}function ce(_0x1b02ea){const _0x5bb85c=[];if(_0x1b02ea['is']('element','listItem')&&_0x1b02ea['getAttribute']('listIndent')>0x0){let _0x500613=_0x1b02ea['nextSibling'];for(;_0x500613&&'listItem'==_0x500613['name']&&_0x500613['getAttribute']('listIndent')==_0x1b02ea['getAttribute']('listIndent');)_0x5bb85c['push'](_0x500613),_0x500613=_0x500613['nextSibling'];}return _0x5bb85c;}class le extends _0x46e166{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1d64b7=this['editor']['config']['get']('list.properties'),_0x21ce03=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d64b7['styles']&&_0x21ce03['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1d64b7['reversed']&&_0x21ce03['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1d64b7['startIndex']&&_0x21ce03['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x21ce03['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x57b45f,_0x519a01={}){const _0x404f77=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54de02=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x404f77['markMultiRangeBlockFormat'](_0x54de02,{'commandName':'listStyle','commandParams':[{'type':_0x519a01['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x7c07bb,_0x4800f6={}){const _0xca3d8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38c6e1=this['_getSuggestionBlocks'](_0x5004c9=>_0x5004c9['is']('element','listItem')&&'numbered'===_0x5004c9['getAttribute']('listType'));if(_0x38c6e1['length']<0x1)return;const _0x5ec798=_0x38c6e1['map'](_0x104012=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x104012,'before'),this['editor']['model']['createPositionAt'](_0x104012,0x0)));this['editor']['model']['change'](()=>{_0xca3d8a['markMultiRangeBlockFormat'](_0x5ec798,{'commandName':'listReversed','commandParams':[{'reversed':_0x4800f6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x292a74,_0x295917={}){const _0x28965a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c4abe=this['_getSuggestionBlocks'](_0x1e8843=>_0x1e8843['is']('element','listItem')&&'numbered'===_0x1e8843['getAttribute']('listType'));if(_0x4c4abe['length']<0x1)return;const _0x3081fc=_0x4c4abe['map'](_0x50b8c9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50b8c9,'before'),this['editor']['model']['createPositionAt'](_0x50b8c9,0x0)));this['editor']['model']['change'](()=>{_0x28965a['markMultiRangeBlockFormat'](_0x3081fc,{'commandName':'listStart','commandParams':[{'startIndex':_0x295917['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1cbb8f){if('formatBlock'!=_0x1cbb8f['type']&&'formatInline'!=_0x1cbb8f['type'])return;const _0x3b192e=this['editor']['locale'],{data:_0x544837}=_0x1cbb8f;if(!_0x544837)return;let _0x2985eb,_0x52533d;switch(_0x544837['commandName']){case'listStyle':_0x2985eb='*Change\x20to:*\x20%0',_0x52533d={'type':'format','content':pt(_0x3b192e,_0x2985eb,pt(_0x3b192e,this['_getTranslationKeyForListStyle'](_0x544837['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2985eb=_0x544837['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x52533d={'type':'format','content':pt(_0x3b192e,_0x2985eb)};break;case'listStart':_0x2985eb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x52533d={'type':'format','content':pt(_0x3b192e,_0x2985eb,_0x544837['commandParams'][0x0]['startIndex'])};}return _0x52533d;}['_getSuggestionBlocksForListStyle'](){const _0x3e4db7=this['editor']['plugins']['get']('LegacyListUtils');let _0xd1965f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xd1965f[0x0]?.['is']('element','listItem')&&_0xd1965f['unshift'](..._0x3e4db7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xd1965f[_0xd1965f['length']-0x1]?.['is']('element','listItem')&&_0xd1965f['push'](..._0x3e4db7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xd1965f=[...new Set(_0xd1965f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xd1965f=_0xd1965f['filter'](_0xf22ef4=>_0xf22ef4['is']('element','listItem'))),_0xd1965f;}['_getSuggestionBlocks'](_0x422b2c){const _0x3938f7=this['editor']['plugins']['get']('LegacyListUtils');let _0x425078=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x422b2c)['map'](_0x4cbdb5=>{const _0x1b1afc=this['editor']['model']['createPositionAt'](_0x4cbdb5,0x0);return[..._0x3938f7['getSiblingNodes'](_0x1b1afc,'backward'),..._0x3938f7['getSiblingNodes'](_0x1b1afc,'forward')];})['flat']();return _0x425078=[...new Set(_0x425078)],_0x425078;}['_getTranslationKeyForListStyle'](_0x34bdd7){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x34bdd7)||'default')['toUpperCase']()+'_LIST_'+_0x34bdd7['toUpperCase']()['replace'](/-/g,'_');}}class ue extends _0x46e166{['afterInit'](){const _0x56063f=this['editor'];if(!_0x56063f['plugins']['has']('MediaEmbedEditing'))return;const _0x45645b=_0x56063f['plugins']['get']('TrackChangesEditing'),_0xbb6532=_0x56063f['locale'];_0x45645b['enableCommand']('mediaEmbed'),_0x45645b['descriptionFactory']['registerElementLabel']('media',_0x13d4b7=>pt(_0xbb6532,'ELEMENT_MEDIA',_0x13d4b7));}}class he extends _0x46e166{['afterInit'](){const _0x4ca170=this['editor'];_0x4ca170['plugins']['has']('MentionEditing')&&_0x4ca170['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class de extends _0x46e166{['afterInit'](){const _0x33ce47=this['editor'];if(!_0x33ce47['plugins']['has']('MergeFieldsEditing'))return;const _0x562c01=_0x33ce47['plugins']['get']('TrackChangesEditing'),_0x5be367=_0x33ce47['locale'];_0x562c01['enableCommand']('insertMergeField'),_0x562c01['enableCommand']('insertMergeFieldBlock'),_0x562c01['enableCommand']('insertMergeFieldImage'),_0x562c01['descriptionFactory']['registerElementLabel']('mergeField',_0x43af11=>pt(_0x5be367,'ELEMENT_MERGE_FIELD',_0x43af11)),_0x562c01['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3bc9f5=>pt(_0x5be367,'ELEMENT_MERGE_FIELD',_0x3bc9f5)),_0x562c01['descriptionFactory']['registerDescriptionCallback'](_0x5180d6=>{if('insertion'!=_0x5180d6['type']&&'deletion'!=_0x5180d6['type'])return;const _0x43d78e=_0x5180d6['getContainedElement']();if(null==_0x43d78e)return;const _0x191e66=_0x33ce47['plugins']['get']('MergeFieldsEditing');let _0x1e81c5;switch(_0x191e66['getMergeFieldType'](_0x43d78e)){case null:return;case'image':{const _0x28c56b=_0x191e66['unwrapAffixes'](_0x43d78e['getAttribute']('src'));_0x1e81c5=_0x191e66['getLabel'](_0x28c56b)||_0x28c56b;break;}default:{const _0x4aacd6=_0x43d78e['getAttribute']('id');_0x1e81c5=_0x191e66['getLabel'](_0x4aacd6)||_0x4aacd6;break;}}return'insertion'==_0x5180d6['type']?{'type':'insertion','content':pt(_0x5be367,'*Insert:*\x20%0','\x22'+_0x1e81c5+'\x22\x20'+pt(_0x5be367,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':pt(_0x5be367,'*Remove:*\x20%0','\x22'+_0x1e81c5+'\x22\x20'+pt(_0x5be367,'ELEMENT_MERGE_FIELD'))};});}}class fe extends _0x46e166{['afterInit'](){const _0x8446f=this['editor'],_0x164828=_0x8446f['plugins']['get']('TrackChangesEditing');_0x8446f['plugins']['has']('MultiLevelList')&&(_0x164828['enableDefaultAttributesIntegration']('multiLevelList'),_0x164828['descriptionFactory']['registerDescriptionCallback'](_0xc8cf37=>this['handleDescriptions'](_0xc8cf37)));}['handleDescriptions'](_0x4bb161){const _0xba87e9=this['editor']['locale'],{data:_0x1f1e03}=_0x4bb161,_0x502636={'type':'format','content':''};if(_0x1f1e03&&'listMarkerStyle'==_0x1f1e03['key']){if(!_0x1f1e03['oldValue'])return{'type':'format','content':pt(_0xba87e9,'*Set\x20format:*\x20%0',pt(_0xba87e9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f1e03['newValue']+')'};if(!_0x1f1e03['newValue']){let _0x19e401=_0x4bb161['head'];for(;_0x19e401;){if(_0x19e401['data']&&'listType'==_0x19e401['data']['key']&&_0x19e401['data']['newValue'])return _0x502636;_0x19e401=_0x19e401['next'];}return{'type':'format','content':pt(_0xba87e9,'*Remove\x20format:*\x20%0',pt(_0xba87e9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1f1e03['oldValue']+')'};}}}}class ge extends _0x46e166{['afterInit'](){const _0x15070a=this['editor'];if(!_0x15070a['plugins']['has']('PageBreakEditing'))return;_0x15070a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b606f=_0x15070a['plugins']['get']('TrackChangesEditing'),_0x59c118=_0x15070a['locale'];_0x2b606f['descriptionFactory']['registerElementLabel']('pageBreak',_0x2b45fe=>pt(_0x59c118,'ELEMENT_PAGE_BREAK',_0x2b45fe));}}class me extends _0x46e166{['afterInit'](){const _0x2b37d2=this['editor'];if(!_0x2b37d2['plugins']['has']('Paragraph'))return;const _0x5d92c5=_0x2b37d2['locale'],_0x27d0e3=_0x2b37d2['plugins']['get']('TrackChangesEditing');_0x27d0e3['descriptionFactory']['registerElementLabel']('paragraph',_0x2a00a1=>pt(_0x5d92c5,'ELEMENT_PARAGRAPH',_0x2a00a1)),_0x27d0e3['enableDefaultAttributesIntegration']('paragraph'),_0x27d0e3['enableCommand']('insertParagraph');const _0x1cebc0=_0x27d0e3['descriptionFactory'];_0x1cebc0['registerDescriptionCallback'](_0x1b3525=>{if('insertion'!==_0x1b3525['type'])return;const {start:_0x3157ae,end:_0x2a138}=_0x1b3525['getFirstRange']();if(!_0x3157ae['isTouching'](_0x2a138)||!_0x3157ae['nodeAfter'])return;const _0x434af2=_0x2b37d2['model']['schema'],_0x53488a=_0x3157ae['nodeAfter'];return _0x434af2['isBlock'](_0x53488a)&&!_0x434af2['isLimit'](_0x53488a)&&_0x434af2['checkChild'](_0x53488a,'$text')?{'type':'insertion','content':pt(_0x5d92c5,'*Insert:*\x20%0',_0x1cebc0['getItemLabel'](_0x53488a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x154446=this['editor'],_0x2f44f5=_0x154446['locale'];_0x154446['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cef6c=>{if('formatBlock'!=_0x1cef6c['type'])return;const {data:_0x5a7e63}=_0x1cef6c;return _0x5a7e63&&'paragraph'==_0x5a7e63['commandName']?{'type':'format','content':pt(_0x2f44f5,'*Change\x20to:*\x20%0',pt(_0x2f44f5,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Ee extends _0x46e166{['afterInit'](){const _0x3bbd79=this['editor'];_0x3bbd79['commands']['get']('replaceSource')&&_0x3bbd79['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Te extends _0x46e166{['afterInit'](){const _0x359d4d=this['editor'];if(!_0x359d4d['plugins']['has']('RemoveFormatEditing'))return;_0x359d4d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa873ba=this['editor'];_0xa873ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x444571=>{if('formatBlock'!=_0x444571['type']&&'formatInline'!=_0x444571['type'])return;const {data:_0x35e371}=_0x444571;return _0x35e371&&'removeFormat'==_0x35e371['commandName']?{'type':'format','content':pt(_0xa873ba['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class _e extends _0x46e166{['afterInit'](){const _0x1698f5=this['editor'];if(!_0x1698f5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5ea20e=_0x1698f5['plugins']['get']('TrackChangesEditing');_0x5ea20e['enableCommand']('goToPreviousRestrictedEditingException'),_0x5ea20e['enableCommand']('goToNextRestrictedEditingException');const _0x271f32=_0x1698f5['plugins']['get']('RestrictedEditingModeEditing');_0x271f32['enableCommand']('trackChanges'),_0x271f32['enableCommand']('acceptSuggestion'),_0x271f32['enableCommand']('discardSuggestion'),_0x271f32['enableCommand']('acceptAllSuggestions'),_0x271f32['enableCommand']('discardAllSuggestions'),_0x271f32['enableCommand']('acceptSelectedSuggestions'),_0x271f32['enableCommand']('discardSelectedSuggestions');}}class pe extends _0x46e166{['afterInit'](){const _0x1e2e1f=this['editor'];if(!_0x1e2e1f['plugins']['has']('ShiftEnter'))return;const _0x170fcb=_0x1e2e1f['plugins']['get']('TrackChangesEditing');_0x170fcb['enableCommand']('shiftEnter'),_0x170fcb['descriptionFactory']['registerElementLabel']('softBreak',_0x453f5a=>pt(_0x1e2e1f['locale'],'ELEMENT_LINE_BREAK',_0x453f5a));}}function Le(_0x4fc285,_0x513586,_0x50a952){const _0xc0257d=[];for(const _0x3ffb66 of _0x513586['getItems']())_0x3ffb66['hasAttribute'](_0x4fc285)&&_0xc0257d['push'](_0x50a952['createRangeOn'](_0x3ffb66));return _0xc0257d;}class Ie extends _0x46e166{['afterInit'](){const _0x324fd0=this['editor'],_0x1ee0be=_0x324fd0['plugins']['get']('TrackChangesEditing');_0x324fd0['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1ee0be['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x3335d6=this['editor'],_0x2624dc=_0x3335d6['model'],_0x2d5129=_0x3335d6['locale'],_0xe4cfff=_0x3335d6['plugins']['get']('TrackChangesEditing'),_0x11f03e='restrictedEditingException',_0x57ab04=_0x3335d6['commands']['get'](_0x11f03e);_0xe4cfff['enableCommand'](_0x11f03e,(_0x3fdcf0,_0x552785={})=>{const _0x393349=_0x2624dc['document']['selection'];if(_0x393349['isCollapsed'])return void _0x3fdcf0(_0x552785);const _0x42ede7=void 0x0!==_0x552785['forceValue']?_0x552785['forceValue']:!_0x57ab04['value'];_0x2624dc['change'](()=>{const _0x537b44=Array['from'](_0x393349['getRanges']());for(const _0xc39444 of _0x537b44){const _0x4ad35f=_0x42ede7?[_0xc39444]:Le(_0x11f03e,_0xc39444,_0x2624dc);for(const _0x505af8 of _0x4ad35f)_0xe4cfff['markInlineFormat'](_0x505af8,{'commandName':_0x11f03e,'commandParams':[{'forceValue':_0x42ede7}]});}});}),_0xe4cfff['descriptionFactory']['registerDescriptionCallback'](_0x15fa5b=>{if('formatBlock'!=_0x15fa5b['type']&&'formatInline'!=_0x15fa5b['type'])return;const {data:_0x4746b0}=_0x15fa5b;return _0x4746b0&&_0x4746b0['commandName']==_0x11f03e?_0x4746b0['commandParams'][0x0]['forceValue']?{'type':'format','content':pt(_0x2d5129,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':pt(_0x2d5129,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x359932=this['editor'],_0x1fb2cf=_0x359932['locale'],_0x5e821f=_0x359932['plugins']['get']('TrackChangesEditing'),_0x39a5ab='restrictedEditingExceptionBlock',_0x34c2a2=this['editor']['commands']['get'](_0x39a5ab);_0x5e821f['enableCommand'](_0x39a5ab,(_0x5773ab,_0x3afed5={})=>{const _0xd818b9=this['editor']['model']['document']['selection'],_0x28027e=_0x3afed5&&void 0x0!==_0x3afed5['forceValue']?_0x3afed5['forceValue']:!_0x34c2a2['value'];let _0x11f773=[];if(_0x28027e){const _0x593ea5=Array['from'](_0xd818b9['getSelectedBlocks']())['filter'](_0x555e54=>function(_0x2a4462){return!!_0x2a4462['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x555e54)||function(_0x4d5943,_0x8bab50){const _0x7f607d=_0x8bab50['createContext'](_0x4d5943['parent']);if(!_0x8bab50['checkChild'](_0x7f607d,'restrictedEditingException'))return!0x1;if(!_0x8bab50['checkChild'](_0x7f607d['push']('restrictedEditingException'),_0x4d5943))return!0x1;return!0x0;}(_0x555e54,this['editor']['model']['schema']));_0x11f773=ft(_0x593ea5,_0x359932['model']);}else{const _0x2f3606=Array['from'](_0xd818b9['getSelectedBlocks']())['map'](_0x31d3b4=>function(_0x2ddbb3){let _0x3c0de9=_0x2ddbb3;for(;_0x3c0de9['parent'];){if('restrictedEditingException'==_0x3c0de9['parent']['name'])return _0x3c0de9;_0x3c0de9=_0x3c0de9['parent'];}return null;}(_0x31d3b4))['filter'](_0x1cb9ab=>!!_0x1cb9ab);_0x11f773=ft(_0x2f3606,_0x359932['model']);}_0x359932['model']['change'](()=>{for(const _0x15e0e5 of _0x11f773)_0x5e821f['markBlockFormat'](_0x15e0e5,{'commandName':_0x39a5ab,'commandParams':[{'forceValue':_0x28027e}]});});}),_0x5e821f['descriptionFactory']['registerDescriptionCallback'](_0x2744c0=>{const {data:_0x1979db}=_0x2744c0;if(_0x1979db&&_0x1979db['commandName']==_0x39a5ab)return _0x1979db['commandParams'][0x0]['forceValue']?{'type':'format','content':pt(_0x1fb2cf,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':pt(_0x1fb2cf,'FORMAT_RESTRICTED_DISABLED')};});}}class be extends _0x46e166{['afterInit'](){const _0x38835e=this['editor'];if(!_0x38835e['plugins']['has']('Style')||!_0x38835e['plugins']['has']('DataSchema'))return;const _0x35edc3=_0x38835e['plugins']['get']('TrackChangesEditing'),_0x1e0210=_0x38835e['locale'],_0x1de1a3=_0x38835e['config']['get']('style')||{},_0x3112cc=_0x38835e['plugins']['get']('GeneralHtmlSupport'),_0x47935c=_0x38835e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x38835e['plugins']['get']('DataSchema'),_0x1de1a3['definitions']);_0x35edc3['enableDefaultAttributesIntegration']('style');const _0x39f8b4=new Set();for(const _0x325a42 of _0x47935c['block']){const _0x288d42=_0x3112cc['getGhsAttributeNameForElement'](_0x325a42['element']);_0x39f8b4['add'](_0x288d42);}const _0x283dd6=new Set();for(const _0x2ece62 of _0x47935c['inline']){const _0x1572ff=_0x3112cc['getGhsAttributeNameForElement'](_0x2ece62['element']);_0x283dd6['add'](_0x1572ff);for(const _0x1f5d0a of _0x2ece62['ghsAttributes'])_0x283dd6['add'](_0x1f5d0a);}for(const _0x88fb2a of _0x39f8b4)_0x35edc3['descriptionFactory']['registerAttributeLabel'](_0x88fb2a,pt(_0x1e0210,'FORMAT_STYLE'));for(const _0x2615e1 of _0x283dd6)_0x35edc3['descriptionFactory']['registerAttributeLabel'](_0x2615e1,pt(_0x1e0210,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x308286=this['editor'],_0x4fc64e=_0x308286['locale'];_0x308286['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51f0e1=>{if('formatBlock'!=_0x51f0e1['type']&&'formatInline'!=_0x51f0e1['type'])return;const {data:_0x1b35f8}=_0x51f0e1;return _0x1b35f8&&'style'===_0x1b35f8['commandName']?_0x1b35f8['commandParams'][0x0]['forceValue']?{'type':'format','content':pt(_0x4fc64e,'*Set\x20format:*\x20%0',_0x1b35f8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':pt(_0x4fc64e,'*Remove\x20format:*\x20%0',_0x1b35f8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ae extends _0x46e166{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x934a8a){super(_0x934a8a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3db78a=this['editor'],_0x2c6101=_0x3db78a['model']['document']['selection'];if(!_0x3db78a['plugins']['has']('TableEditing'))return;const _0x3fc665=_0x3db78a['locale'],_0x372d55=_0x3db78a['plugins']['get']('TrackChangesEditing'),_0x310e76=_0x3db78a['plugins']['get']('TableUtils');_0x372d55['descriptionFactory']['registerElementLabel']('table',_0x4ed5f8=>pt(_0x3fc665,'ELEMENT_TABLE',_0x4ed5f8)),this['_setupColumnsRowsFixing'](),_0x372d55['enableCommand']('insertTable'),_0x372d55['enableCommand']('selectTableRow'),_0x372d55['enableCommand']('selectTableColumn');for(const _0x3b9bb7 of['insertTableRowAbove','insertTableRowBelow']){const _0xff2809=_0x3db78a['commands']['get'](_0x3b9bb7);_0x372d55['enableCommand'](_0x3b9bb7,_0x10326a=>{_0x3db78a['model']['change'](_0x37e05a=>{_0x10326a();const _0xbf2e27='above'===_0xff2809['order'],_0x33c175=_0x310e76['getSelectionAffectedTableCells'](_0x2c6101),_0xfd074c=_0x310e76['getRowIndexes'](_0x33c175),_0x2e09d7=_0xbf2e27?_0xfd074c['first']-0x1:_0xfd074c['last']+0x1,_0x34eb1a=_0x33c175[0x0]['findAncestor']('table'),_0x37f39f=_0x310e76['createTableWalker'](_0x34eb1a,{'startRow':_0x2e09d7,'endRow':_0x2e09d7}),_0x2dcd78=Array['from'](_0x37f39f)['map'](_0x464d78=>_0x37e05a['createRangeOn'](_0x464d78['cell']));_0x372d55['markMultiRangeInsertion'](_0x2dcd78,'tableRow');});});}for(const _0x5c324f of['insertTableColumnLeft','insertTableColumnRight']){const _0xfb60a2=_0x3db78a['commands']['get'](_0x5c324f);_0x372d55['enableCommand'](_0x5c324f,_0x256bb6=>{_0x3db78a['model']['change'](_0x53fe0a=>{_0x256bb6();const _0x121e5c='left'===_0xfb60a2['order'],_0x101fa2=_0x310e76['getSelectionAffectedTableCells'](_0x2c6101),_0x47241b=_0x310e76['getColumnIndexes'](_0x101fa2),_0x20b516=_0x121e5c?_0x47241b['first']-0x1:_0x47241b['last']+0x1,_0x244c96=_0x101fa2[0x0]['findAncestor']('table'),_0x2eb2f8=_0x310e76['createTableWalker'](_0x244c96,{'startRow':0x0,'column':_0x20b516,'includeAllSlots':!0x1}),_0x352cd7=Array['from'](_0x2eb2f8)['map'](_0x3f7b4e=>_0x53fe0a['createRangeOn'](_0x3f7b4e['cell']));_0x372d55['markMultiRangeInsertion'](_0x352cd7,'tableColumn');});});}for(const _0x2dd336 of['removeTableRow','removeTableColumn']){const _0x1c5a69=_0x2dd336['substr'](0xb),_0x37396a=_0x1c5a69['toLowerCase'](),_0x299523=_0x37396a['substr'](0x0,0x3)+'span',_0x5a40b8='table'+_0x1c5a69,_0x159456='min'+_0x1c5a69,_0x239090='max'+_0x1c5a69;_0x372d55['enableCommand'](_0x2dd336,()=>{_0x3db78a['model']['change'](_0x3d4715=>{const _0x529102=_0x310e76['getSelectionAffectedTableCells'](_0x2c6101),_0x1d78b4=_0x529102[0x0]['findAncestor']('table');let _0x3174cf;if('removeTableRow'==_0x2dd336){const _0x2b9fa5=_0x310e76['getRowIndexes'](_0x529102);_0x3174cf={'startRow':_0x2b9fa5['first'],'endRow':_0x2b9fa5['last'],'includeAllSlots':!0x0};}else{const _0x2813ae=_0x310e76['getColumnIndexes'](_0x529102);_0x3174cf={'startColumn':_0x2813ae['first'],'endColumn':_0x2813ae['last'],'includeAllSlots':!0x0};}const _0x311975=_0x310e76['createTableWalker'](_0x1d78b4,_0x3174cf),_0xf91ff=Array['from'](_0x311975)['map'](({cell:_0x5d5851})=>_0x5d5851),_0x40d3d2=ke(_0xf91ff['filter'](_0x4d0211=>_0x4d0211['hasAttribute'](_0x299523))),_0x3d3146=ke(_0xf91ff['filter'](_0x280f24=>!_0x280f24['hasAttribute'](_0x299523)))['map'](_0x4e6868=>_0x3d4715['createRangeOn'](_0x4e6868)),_0x53c54a=_0x372d55['markMultiRangeDeletion'](_0x3d3146,_0x5a40b8);if(_0x53c54a&&('tableRow'==_0x53c54a['subType']||'tableColumn'==_0x53c54a['subType'])){const _0x29d8a5=this['_getSuggestionCoords'](_0x53c54a);for(const _0x1d1707 of _0x40d3d2){const _0x46b0be=_0x3d4715['createRangeOn'](_0x1d1707),_0x3454c2=_0x310e76['getCellLocation'](_0x1d1707),_0x55f395=_0x1d1707['getAttribute'](_0x299523)-0x1,_0x87a309=_0x29d8a5[_0x159456],_0x5953d4=_0x29d8a5[_0x239090];_0x87a309<=_0x3454c2[_0x37396a]&&_0x3454c2[_0x37396a]+_0x55f395<=_0x5953d4&&_0x53c54a['addRange'](_0x46b0be);}}});});}function _0xd93f36(_0x3317f4){const _0x1395f9=Array['from'](_0x2c6101['getRanges']())['map'](_0x235acd=>_0x541ce3['fromRange'](_0x235acd));_0x3db78a['model']['change'](_0x274465=>{const _0xe8fb5c=_0x274465['batch'];_0x3317f4=_0x3317f4['filter'](_0x194d79=>'$graveyard'!=_0x194d79['root']['rootName']),_0x274465['setSelection'](_0x3317f4),_0x3db78a['commands']['get']('removeTableRow')['refresh'](),_0x3db78a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3db78a['model']['enqueueChange'](()=>{_0x3db78a['model']['enqueueChange'](_0xe8fb5c,_0x27030f=>{const _0x1e32b8=_0x1395f9['filter'](_0x56ade6=>'$graveyard'!=_0x56ade6['root']['rootName']);_0x1e32b8['length']>0x0&&_0x27030f['setSelection'](_0x1e32b8);for(const _0x52b8cf of _0x1395f9)_0x52b8cf['detach']();});});});}function _0x31e5f2(_0x18a5c1){_0x3db78a['model']['change'](_0x485fc7=>{const _0x1d7117=Array['from'](_0x2c6101['getRanges']())['map'](_0x5e065b=>_0x541ce3['fromRange'](_0x5e065b)),_0x2b72d6=[];for(const _0x5ca958 of _0x18a5c1)for(const _0x192234 of _0x5ca958['getItems']({'shallow':!0x0}))_0x2b72d6['push'](_0x192234);for(const _0x55780a of _0x2b72d6)'$graveyard'!=_0x55780a['root']['rootName']&&(_0x485fc7['setSelection'](_0x485fc7['createPositionAt'](_0x55780a,0x0)),_0x3db78a['commands']['get']('removeTableColumn')['refresh'](),_0x3db78a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x23b268=_0x1d7117['filter'](_0x223d78=>'$graveyard'!=_0x223d78['root']['rootName']);_0x23b268['length']>0x0&&_0x485fc7['setSelection'](_0x23b268);for(const _0x5c5b7f of _0x1d7117)_0x5c5b7f['detach']();});}function _0x275a0e(_0x17a646,_0x1f2ede){return _0x1f2ede['every'](_0x4839e8=>_0x17a646['some'](_0x324fc8=>_0x324fc8['end']['isEqual'](_0x4839e8['start'])||_0x4839e8['end']['isEqual'](_0x324fc8['start'])));}function _0x491f75(_0x48d6a1,_0x1c1ca8){return!_0x48d6a1['some'](_0x2ae02c=>_0x1c1ca8['some'](_0x42018a=>_0x2ae02c['isIntersecting'](_0x42018a)))&&_0x48d6a1['some'](_0xa39bc5=>_0x1c1ca8['some'](_0x2c102c=>_0xa39bc5['end']['isTouching'](_0x2c102c['start'])));}_0x372d55['descriptionFactory']['registerDescriptionCallback'](_0x6cb59=>{if('insertion'!=_0x6cb59['type']&&'deletion'!=_0x6cb59['type'])return;const _0x120605=_0x6cb59['getContainedElement']();if(null!=_0x120605&&_0x120605['is']('element','table')){if('insertion'==_0x6cb59['type']){const _0x45b455=_0x6cb59['getItems']()['filter'](_0x148152=>_0x148152['is']('$textProxy'))['map'](_0x53dabe=>_0x53dabe['data']);if(_0x45b455['length'])return{'type':'insertion','content':pt(_0x3fc665,'*Insert:*\x20%0',pt(_0x3fc665,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x45b455['join']('\x20')+'\x22'))};}if('deletion'==_0x6cb59['type']){const _0x5bea25=_0x6cb59['getItems']()['filter'](_0x330307=>_0x330307['is']('$textProxy'))['map'](_0xcb16f5=>_0xcb16f5['data']);if(_0x5bea25['length'])return{'type':'deletion','content':pt(_0x3fc665,'*Remove:*\x20%0',pt(_0x3fc665,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5bea25['join']('\x20')+'\x22'))};}}}),_0x372d55['descriptionFactory']['registerDescriptionCallback'](_0x5ede13=>{if('tableRow'==_0x5ede13['subType']){const _0x40177e=_0x5ede13['getItems']()['filter'](_0x2f5fef=>_0x2f5fef['is']('$textProxy'))['map'](_0x11ebf8=>_0x11ebf8['data']),_0xe52400=this['_getSuggestionCoords'](_0x5ede13),_0x2643ca=_0xe52400['maxRow']-_0xe52400['minRow']+0x1;if('insertion'==_0x5ede13['type'])return _0x40177e['length']?{'type':'insertion','content':pt(_0x3fc665,'*Insert:*\x20%0',pt(_0x3fc665,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2643ca,'\x22'+_0x40177e['join']('\x20')+'\x22']))}:{'type':'insertion','content':pt(_0x3fc665,'*Insert:*\x20%0',pt(_0x3fc665,'ELEMENT_TABLE_ROW',_0x2643ca))};if('deletion'==_0x5ede13['type'])return _0x40177e['length']?{'type':'deletion','content':pt(_0x3fc665,'*Remove:*\x20%0',pt(_0x3fc665,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2643ca,'\x22'+_0x40177e['join']('\x20')+'\x22']))}:{'type':'deletion','content':pt(_0x3fc665,'*Remove:*\x20%0',pt(_0x3fc665,'ELEMENT_TABLE_ROW',_0x2643ca))};}if('tableColumn'==_0x5ede13['subType']){const _0x8394b8=_0x5ede13['getItems']()['filter'](_0x9881fa=>_0x9881fa['is']('$textProxy'))['map'](_0x3fa18b=>_0x3fa18b['data']),_0x5f1018=this['_getSuggestionCoords'](_0x5ede13),_0x41de75=_0x5f1018['maxColumn']-_0x5f1018['minColumn']+0x1;if('insertion'==_0x5ede13['type'])return _0x8394b8['length']?{'type':'insertion','content':pt(_0x3fc665,'*Insert:*\x20%0',pt(_0x3fc665,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x41de75,'\x22'+_0x8394b8['join']('\x20')+'\x22']))}:{'type':'insertion','content':pt(_0x3fc665,'*Insert:*\x20%0',pt(_0x3fc665,'ELEMENT_TABLE_COLUMN',_0x41de75))};if('deletion'==_0x5ede13['type'])return _0x8394b8['length']?{'type':'deletion','content':pt(_0x3fc665,'*Remove:*\x20%0',pt(_0x3fc665,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x41de75,'\x22'+_0x8394b8['join']('\x20')+'\x22']))}:{'type':'deletion','content':pt(_0x3fc665,'*Remove:*\x20%0',pt(_0x3fc665,'ELEMENT_TABLE_COLUMN',_0x41de75))};}}),_0x372d55['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xd93f36),_0x372d55['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xd93f36),_0x372d55['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x31e5f2),_0x372d55['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x31e5f2),_0x372d55['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x275a0e),_0x372d55['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x275a0e),_0x372d55['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x491f75),_0x372d55['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x491f75);}['_acceptFormatSuggestionCallbackFactory'](){const _0x40f7c2=this['editor'],_0x176f3c=_0x40f7c2['model']['document']['selection'];return(_0x44279b,_0x131f87)=>{_0x40f7c2['model']['change'](_0x4fcb54=>{const {commandName:_0x2cca0e,commandParams:_0x46c03b}=_0x131f87;let _0x742cef=_0x44279b[0x0]['end']['nodeBefore'];_0x46c03b&&_0x46c03b[0x0]&&!0x1===_0x46c03b[0x0]['forceValue']&&(_0x742cef=_0x44279b[0x0]['start']['nodeAfter']);const _0x130400=_0x4fcb54['createRangeIn'](_0x742cef);if('$graveyard'==_0x130400['root']['rootName'])return;const _0x5eee10=Array['from'](_0x176f3c['getRanges']())['map'](_0xdad1d9=>_0x541ce3['fromRange'](_0xdad1d9));_0x4fcb54['setSelection'](_0x130400),_0x40f7c2['commands']['get'](_0x2cca0e)['refresh'](),_0x46c03b['push']({'forceDefaultExecution':!0x0}),_0x40f7c2['execute'](_0x2cca0e,..._0x46c03b);const _0x25b5f5=_0x5eee10['filter'](_0x4d5936=>'$graveyard'!=_0x4d5936['root']['rootName']);_0x25b5f5['length']>0x0&&_0x4fcb54['setSelection'](_0x25b5f5);for(const _0x47eaf6 of _0x5eee10)_0x47eaf6['detach']();});};}['_getCoordsForCells'](_0x58a1c0){const _0x5af494=this['editor']['plugins']['get']('TableUtils');let _0x1d6c0d=Number['MAX_SAFE_INTEGER'],_0x2a78af=Number['MIN_SAFE_INTEGER'],_0x44b085=Number['MAX_SAFE_INTEGER'],_0x102490=Number['MIN_SAFE_INTEGER'];for(const _0x51a92d of _0x58a1c0){if('$graveyard'==_0x51a92d['root']['rootName'])continue;const {row:_0x56f847,column:_0x2301e2}=_0x5af494['getCellLocation'](_0x51a92d),_0x3bd29f=_0x51a92d['hasAttribute']('rowspan')?_0x51a92d['getAttribute']('rowspan')-0x1:0x0,_0x1a7e3b=_0x51a92d['hasAttribute']('colspan')?_0x51a92d['getAttribute']('colspan')-0x1:0x0;_0x1d6c0d=_0x56f847<_0x1d6c0d?_0x56f847:_0x1d6c0d,_0x2a78af=_0x56f847+_0x3bd29f>_0x2a78af?_0x56f847+_0x3bd29f:_0x2a78af,_0x44b085=_0x2301e2<_0x44b085?_0x2301e2:_0x44b085,_0x102490=_0x2301e2+_0x1a7e3b>_0x102490?_0x2301e2+_0x1a7e3b:_0x102490;}return{'minRow':_0x1d6c0d,'maxRow':_0x2a78af,'minColumn':_0x44b085,'maxColumn':_0x102490};}['_setupColumnsRowsFixing'](){const _0x2b4878=this['editor'],_0xa4b352=_0x2b4878['plugins']['get']('TrackChangesEditing'),_0x7625f4=_0x2b4878['plugins']['get']('TableUtils');_0x2b4878['model']['document']['on']('change:data',()=>{const _0x2c844f=Array['from'](_0x2b4878['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f28f1,data:_0x32e39a}of _0x2c844f){const {group:_0xcab779,id:_0x32e7fa,subType:_0xb28682}=_0xa4b352['_splitMarkerName'](_0x2f28f1);if('suggestion'!=_0xcab779)continue;if(null!=_0x32e39a['oldRange'])continue;const _0x3759cb=_0xa4b352['getSuggestion'](_0x32e7fa);this['_tablePostFixingSubtypes']['includes'](_0xb28682)&&this['_tableSuggestions']['add'](_0x3759cb);}},{'priority':'low'});const _0x239211=(_0x28df21,_0x49d325)=>{let _0x5b4471=!0x1;const _0x44a334=_0x49d325['createRangeOn'](_0x28df21),_0x2791ea=_0x28df21['findAncestor']('table'),_0x7f87b1=_0x7625f4['getCellLocation'](_0x28df21);for(const _0x4b85a7 of this['_tableSuggestions']){const _0x3e7dd7=_0x4b85a7['subType'],_0x44c7ae=_0x3e7dd7['startsWith']('tablePaste'),_0x55aa57=_0x3e7dd7['substr'](_0x44c7ae?0xa:0x5),_0x40c1bd=_0x55aa57['toLowerCase'](),_0x4d68c1=_0x40c1bd['substr'](0x0,0x3)+'span',_0x21b738='min'+_0x55aa57,_0xe5939b='max'+_0x55aa57;if(!_0x4b85a7['isInContent'])continue;if(_0x2791ea!=_0x4b85a7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4b85a7['isIntersectingWithRange'](_0x44a334))continue;const _0x2295f7=_0x28df21['hasAttribute'](_0x4d68c1)?_0x28df21['getAttribute'](_0x4d68c1)-0x1:0x0,_0x31eb34=this['_getSuggestionCoords'](_0x4b85a7),_0x447f7e=_0x31eb34[_0x21b738],_0x271825=_0x31eb34[_0xe5939b];_0x447f7e<=_0x7f87b1[_0x40c1bd]&&_0x7f87b1[_0x40c1bd]+_0x2295f7<=_0x271825&&(_0x4b85a7['addRange'](_0x44a334),_0x5b4471=!0x0);}return _0x5b4471;};_0x2b4878['model']['document']['registerPostFixer'](_0xca8276=>{let _0x51c397=!0x1;for(const _0x173c59 of _0x2b4878['model']['document']['differ']['getChanges']())if('insert'==_0x173c59['type']){if('tableRow'==_0x173c59['name']){for(const _0x3c299b of _0x173c59['position']['nodeAfter']['getChildren']())_0x51c397=_0x51c397||_0x239211(_0x3c299b,_0xca8276);}else'tableCell'==_0x173c59['name']&&(_0x51c397=_0x51c397||_0x239211(_0x173c59['position']['nodeAfter'],_0xca8276));}return _0x51c397;});}['_getSuggestionCoords'](_0xa665d0){return this['_getCoordsForCells'](_0xa665d0['getRanges']()['map'](_0x4caf53=>_0x4caf53['start']['nodeAfter']));}}function ke(_0x28049b){return Array['from'](new Set(_0x28049b)['values']());}class Ce extends _0x46e166{static get['requires'](){return[Ae];}['afterInit'](){const _0x13b87c=this['editor'],_0xdca4fc=_0x13b87c['model']['document']['selection'],_0x21e0fd=_0x13b87c['locale'];if(!_0x13b87c['plugins']['has']('TableEditing'))return;const _0x177f68=_0x13b87c['plugins']['get']('TrackChangesEditing'),_0x413560=_0x13b87c['plugins']['get']('TableUtils'),_0x6ec23a=_0x13b87c['plugins']['get'](Ae);_0x6ec23a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x177f68['enableCommand']('mergeTableCells',()=>{const _0xe515b=_0x413560['getSelectionAffectedTableCells'](_0x13b87c['model']['document']['selection']);_0x13b87c['model']['change'](()=>{_0x177f68['markMultiRangeBlockFormat'](_0xe515b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x13b87c['commands']['get']('mergeTableCells')['on']('execute',(_0x4e6254,_0x44caed)=>{_0x13b87c['commands']['get']('trackChanges')['value']&&(_0x44caed['length']>0x0&&_0x44caed[_0x44caed['length']-0x1]&&_0x44caed[_0x44caed['length']-0x1]['forceDefaultExecution']||_0x177f68['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4e6254['stop']());},{'priority':'highest'});for(const _0xfb1f0a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2c6bc8=_0x13b87c['commands']['get'](_0xfb1f0a);_0x177f68['enableCommand'](_0xfb1f0a,()=>{const _0x26a3c9=_0x13b87c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ea973=>_0x4ea973['is']('element','tableCell')),_0x26938e=_0x2c6bc8['value'];_0x13b87c['model']['change'](()=>{_0x177f68['markMultiRangeBlockFormat']([_0x26a3c9,_0x26938e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x557bad of['splitTableCellVertically','splitTableCellHorizontally']){const _0x55a71f=_0x13b87c['commands']['get'](_0x557bad);_0x177f68['enableCommand'](_0x557bad,()=>{const _0x4aad8f=_0x413560['getSelectionAffectedTableCells'](_0x13b87c['model']['document']['selection'])[0x0],_0x2d0f55=_0x4aad8f['findAncestor']('table'),{column:_0xc01453,row:_0x2469a5}=_0x413560['getCellLocation'](_0x4aad8f);let _0x5130d0=[];if('horizontally'==_0x55a71f['direction']){const _0x4ba8fe=_0x413560['createTableWalker'](_0x2d0f55,{'startRow':_0x2469a5,'endRow':_0x2469a5,'includeAllSlots':!0x0});_0x5130d0=Array['from'](_0x4ba8fe)['map'](_0x2c3659=>_0x2c3659['cell']);}else{const _0x329ca5=_0x413560['createTableWalker'](_0x2d0f55,{'column':_0xc01453,'includeAllSlots':!0x0});_0x5130d0=Array['from'](_0x329ca5)['map'](_0x37af54=>_0x37af54['cell']);}_0x13b87c['model']['change'](_0x301920=>{_0x177f68['markBlockFormat'](_0x301920['createRangeOn'](_0x4aad8f),{'commandName':_0x557bad,'commandParams':[]},_0x5130d0,_0x557bad);});});}_0x177f68['descriptionFactory']['registerDescriptionCallback'](_0x13f8d0=>{if('formatBlock'!=_0x13f8d0['type']&&'formatInline'!=_0x13f8d0['type'])return;const {data:_0x62a13a}=_0x13f8d0;return _0x62a13a&&'mergeTableCells'==_0x62a13a['commandName']?{'type':'format','content':pt(_0x21e0fd,'*Merge\x20cells*')}:void 0x0;}),_0x177f68['descriptionFactory']['registerDescriptionCallback'](_0x5d6f49=>{if('formatBlock'!=_0x5d6f49['type']&&'formatInline'!=_0x5d6f49['type'])return;const {data:_0x169bf2}=_0x5d6f49;return _0x169bf2?'splitTableCellVertically'==_0x169bf2['commandName']?{'type':'format','content':pt(_0x21e0fd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x169bf2['commandName']?{'type':'format','content':pt(_0x21e0fd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2f5278=_0x6ec23a['_acceptFormatSuggestionCallbackFactory']();for(const _0x2f4f2f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x177f68['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2f4f2f,'accept',_0x2f5278);for(const _0x37b038 of['splitTableCellVertically','splitTableCellHorizontally'])_0x177f68['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x37b038,'accept',_0x2f5278);_0x177f68['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x18f1eb=>{_0x13b87c['model']['change'](_0x566e90=>{const _0x1b8e96=Array['from'](_0xdca4fc['getRanges']())['map'](_0xc4a365=>_0x541ce3['fromRange'](_0xc4a365));_0x566e90['setSelection'](_0x18f1eb),_0x13b87c['commands']['get']('mergeTableCells')['refresh'](),_0x13b87c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2448d=_0x1b8e96['filter'](_0xd69447=>'$graveyard'!=_0xd69447['root']['rootName']);_0x2448d['length']>0x0&&_0x566e90['setSelection'](_0x2448d);for(const _0x23b9a6 of _0x1b8e96)_0x23b9a6['detach']();});});for(const _0x3794a0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x400116=_0x13b87c['commands']['get'](_0x3794a0);_0x400116['on']('set:isEnabled',(_0x96e17d,_0x4c7c30,_0x45d859)=>{if(_0x45d859){const _0x545d84=_0x13b87c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x290dcd=>_0x290dcd['is']('element','tableCell'));this['_areMergableCells'](_0x400116['value'],_0x545d84)||(_0x96e17d['return']=!0x1,_0x96e17d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3d57e9=this['editor']['commands']['get']('mergeTableCells'),_0x594ee8=this['editor']['plugins']['get']('TableUtils');if(!_0x3d57e9['isEnabled'])return!0x1;const _0x51c7f8=_0x594ee8['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3c2a89 of _0x51c7f8)for(const _0x47a58a of _0x51c7f8)if(_0x3c2a89!=_0x47a58a&&!this['_areMergableCells'](_0x3c2a89,_0x47a58a))return!0x1;return!0x0;}['_areMergableCells'](_0x370672,_0x459d29){const _0x2d5cae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x182539=this['editor']['model']['createRangeOn'](_0x370672),_0x213293=this['editor']['model']['createRangeOn'](_0x459d29),_0x29d326=new Set(),_0x5d5c52=new Set();for(const _0x3cd127 of _0x2d5cae['getSuggestions']())if(('insertion'==_0x3cd127['type']||'deletion'==_0x3cd127['type']||'mergeTableCells'==_0x3cd127['subType'])&&_0x3cd127['isInContent']){for(const _0x4965f4 of _0x3cd127['getRanges']())_0x4965f4['containsRange'](_0x182539,!0x0)&&_0x29d326['add'](_0x3cd127['type']+':'+_0x3cd127['author']['id']),_0x4965f4['containsRange'](_0x213293,!0x0)&&_0x5d5c52['add'](_0x3cd127['type']+':'+_0x3cd127['author']['id']);}if(_0x29d326['size']!=_0x5d5c52['size'])return!0x1;for(const _0x1db7c4 of _0x29d326)if(!_0x5d5c52['has'](_0x1db7c4))return!0x1;return!0x0;}}class ye extends _0x46e166{static get['requires'](){return[Ae];}['afterInit'](){const _0x188fd1=this['editor'];if(!_0x188fd1['plugins']['has']('TableEditing'))return;const _0x553d54=_0x188fd1['locale'],_0x19d82f=_0x188fd1['plugins']['get']('TrackChangesEditing');_0x19d82f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x19d82f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x19d82f['descriptionFactory']['registerAttributeLabel']('headingRows',pt(_0x553d54,'FORMAT_HEADER_ROW')),_0x19d82f['descriptionFactory']['registerAttributeLabel']('headingColumns',pt(_0x553d54,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x49bba6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31b340=this['editor']['plugins']['get'](Ae)['_acceptFormatSuggestionCallbackFactory']();_0x49bba6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x31b340),_0x49bba6['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x31b340),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x131e6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dc2de=this['editor']['plugins']['get']('TableUtils');function _0x421605({showActiveMarker:_0x172882=!0x0,setDataAttribute:_0x532db5=!0x0}={}){return(_0x19230e,_0x2b067f,_0x4e5c24)=>{const {type:_0x1da2f6,id:_0x21de5e}=_0x131e6a['_splitMarkerName'](_0x2b067f['markerName']);if(!_0x131e6a['hasSuggestion'](_0x21de5e))return;const _0x8b49be=_0x131e6a['getSuggestion'](_0x21de5e),_0x3dcad1=_0x8b49be['data'];if('formatBlock'!=_0x8b49be['type']||!_0x3dcad1||'setTableColumnHeader'!=_0x3dcad1['commandName'])return;if(_0x2b067f['item'])return void _0x19230e['stop']();if(!_0x4e5c24['consumable']['consume'](_0x2b067f['markerRange'],_0x19230e['name']))return;const _0x2c10b1=_0x2b067f['markerRange']['start']['nodeAfter'],_0x3bccc7=_0x2b067f['markerRange']['end']['nodeBefore'],_0x448af3=_0x2c10b1['parent']['parent'],{column:_0x527cc4}=_0x4dc2de['getCellLocation'](_0x2c10b1),{column:_0x191692}=_0x4dc2de['getCellLocation'](_0x3bccc7);for(let _0x160856=_0x527cc4;_0x160856<=_0x191692;_0x160856++){const _0x4f8d09=_0x4dc2de['createTableWalker'](_0x448af3,{'column':_0x160856,'includeAllSlots':!0x1});for(const _0x37a66c of _0x4f8d09){const _0x5b0d1f=_0x37a66c['cell'],_0x1ee99d=_0x4e5c24['mapper']['toViewElement'](_0x5b0d1f);_0x4e5c24['writer']['addClass']('ck-suggestion-marker-'+_0x1da2f6,_0x1ee99d),_0x532db5&&_0x4e5c24['writer']['setAttribute']('data-suggestion',_0x21de5e,_0x1ee99d),_0x4e5c24['mapper']['bindElementToMarker'](_0x1ee99d,_0x2b067f['markerName']),_0x172882&&(_0x131e6a['activeMarkers']['includes'](_0x2b067f['markerName'])?_0x4e5c24['writer']['addClass']('ck-suggestion-marker--active',_0x1ee99d):_0x4e5c24['writer']['removeClass']('ck-suggestion-marker--active',_0x1ee99d));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x421605(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x41b6f3,_0x1ea2ec,_0x123c3b)=>{_0x123c3b['options']['showSuggestionHighlights']&&_0x421605({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x41b6f3,_0x1ea2ec,_0x123c3b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x48fd67,_0x35c1f6,_0x9c0c67)=>{const {type:_0x1dfc93,id:_0x21dad1}=_0x131e6a['_splitMarkerName'](_0x35c1f6['markerName']);if(!_0x131e6a['hasSuggestion'](_0x21dad1))return;const _0x352a30=_0x131e6a['getSuggestion'](_0x21dad1),_0x5ce8fb=_0x352a30['data'];if('formatBlock'!=_0x352a30['type']||!_0x5ce8fb||'setTableColumnHeader'!=_0x5ce8fb['commandName'])return;const _0x448763=_0x9c0c67['mapper']['markerNameToElements'](_0x35c1f6['markerName']);if(_0x448763){for(const _0x3d83ee of _0x448763)_0x9c0c67['writer']['removeClass']('ck-suggestion-marker-'+_0x1dfc93,_0x3d83ee),_0x9c0c67['writer']['removeClass']('ck-suggestion-marker--active',_0x3d83ee),_0x9c0c67['writer']['removeAttribute']('data-suggestion',_0x3d83ee),_0x9c0c67['mapper']['unbindElementFromMarkerName'](_0x3d83ee,_0x35c1f6['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x3ef7ac=this['editor'],_0x2c5753=_0x3ef7ac['locale'];function _0x30f1df(_0x1f4810){return{'type':'format','content':pt(_0x2c5753,'*Format:*\x20%0',_0x1f4810)};}_0x3ef7ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x493820=>{if('formatBlock'!=_0x493820['type'])return;const {data:_0x3b6134}=_0x493820;if(_0x3b6134){if('setTableRowHeader'==_0x3b6134['commandName']){const _0x221ca9=_0x3b6134['commandParams'][0x0]['forceValue'];return _0x30f1df(pt(_0x2c5753,_0x221ca9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3b6134['commandName']){const _0x57981a=_0x3b6134['commandParams'][0x0]['forceValue'];return _0x30f1df(pt(_0x2c5753,_0x57981a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ne extends _0x46e166{['afterInit'](){const _0x245015=this['editor'],_0x59d163=_0x245015['locale'],_0x560b9d=_0x245015['plugins']['get']('TrackChangesEditing');function _0x3f93e9(_0x163c8b){return{'type':'format','content':''+pt(_0x59d163,'*Set\x20table\x20type:*\x20%0',_0x163c8b)};}_0x245015['plugins']['has']('TableLayout')&&(_0x560b9d['enableCommand']('insertTableLayout'),_0x560b9d['enableDefaultAttributesIntegration']('tableType'),_0x560b9d['descriptionFactory']['registerElementLabel'](_0x409af7=>_0x409af7['is']('element','table')&&'layout'===_0x409af7['getAttribute']('tableType'),_0x450bcb=>pt(_0x59d163,'ELEMENT_LAYOUT_TABLE',_0x450bcb)),_0x560b9d['descriptionFactory']['registerDescriptionCallback'](_0x210758=>{const {data:_0x21efcd}=_0x210758;if(_0x21efcd&&'tableType'==_0x21efcd['key'])switch(_0x21efcd['newValue']){case'layout':return _0x3f93e9(pt(_0x59d163,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3f93e9(pt(_0x59d163,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Se=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x5b4468=>[_0x5b4468,null]));class Me extends _0x46e166{static get['requires'](){return[Ae];}['afterInit'](){const _0x3a40c9=this['editor'];if(!_0x3a40c9['plugins']['has']('TableClipboard'))return;const _0x31af33=_0x3a40c9['plugins']['get']('TrackChangesEditing'),_0x9fffca=_0x3a40c9['plugins']['get']('TableUtils'),_0x30bf16=_0x3a40c9['plugins']['get'](Ae),_0x1267c3=_0x3a40c9['plugins']['get']('TableClipboard'),_0x2acfdc=_0x3a40c9['plugins']['get']('TableSelection'),_0x20fbed=_0x3a40c9['plugins']['get'](ot);_0x30bf16['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3a40c9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3a40c9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x58ee67=null,_0x422e40=!0x1;_0x20fbed['on']('contentInsertion',(_0x5cb934,_0x29711c)=>{_0x422e40='paste'===_0x29711c['method'];}),_0x3a40c9['model']['on']('insertContent',(_0x4d3737,_0x3e3f37)=>{if(!_0x422e40&&null===_0x2acfdc['getSelectedTableCells']())return;const [_0x6560be,_0x3999e9]=_0x3e3f37,_0x52bfba=_0x3e3f37[_0x3e3f37['length']-0x1];_0x52bfba&&_0x52bfba['forceDefaultExecution']||_0x31af33['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1b6be0,_0xf017b5,_0x4103e2,_0xf7ad41,_0x46e67d){if(_0xf017b5&&!_0xf017b5['is']('documentSelection'))return!0x1;const _0x4ba826=_0x46e67d['getTableIfOnlyTableInContent'](_0x1b6be0,_0x4103e2);if(!_0x4ba826||!we(_0x4ba826,void 0x0,_0xf7ad41))return!0x1;const _0x33771f=_0xf7ad41['getSelectionAffectedTableCells'](_0x4103e2['document']['selection']);if(!_0x33771f['length'])return!0x1;const _0x5b339b=_0x33771f[0x0]['findAncestor']('table'),_0x563c35=_0xf7ad41['getRowIndexes'](_0x33771f),_0x5dc2ab=_0xf7ad41['getColumnIndexes'](_0x33771f),_0x389660={'startRow':_0x563c35['first'],'endRow':_0x563c35['last'],'startColumn':_0x5dc2ab['first'],'endColumn':_0x5dc2ab['last']};return 0x1==_0x33771f['length']&&(_0x389660['endRow']+=_0xf7ad41['getRows'](_0x4ba826)-0x1,_0x389660['endColumn']+=_0xf7ad41['getColumns'](_0x4ba826)-0x1),we(_0x5b339b,_0x389660,_0xf7ad41);}(_0x6560be,_0x3999e9,_0x3a40c9['model'],_0x9fffca,_0x1267c3)&&(_0x4d3737['stop'](),_0x58ee67={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3a40c9['model']['change'](()=>{_0x3a40c9['model']['insertContent'](_0x3e3f37[0x0],_0x3e3f37[0x1],_0x3e3f37[0x2],{'forceDefaultExecution':!0x0});const _0x15173d=_0xf371f8(),{rowInsertionRanges:_0x3ff3ae,columnInsertionRanges:_0x2b7d89,insertionRanges:_0x28ea72,deletionRanges:_0x354c79,cells:_0x5d7b08}=_0x58ee67;_0x3ff3ae['length']&&_0x31af33['markMultiRangeInsertion'](_0x3ff3ae,'tablePasteRow',{'tablePasteChainId':_0x15173d}),_0x2b7d89['length']&&_0x31af33['markMultiRangeInsertion'](_0x2b7d89,'tablePasteColumn',{'tablePasteChainId':_0x15173d}),_0x28ea72['length']&&(_0x31af33['markMultiRangeInsertion'](_0x28ea72,'tablePaste',{'tablePasteChainId':_0x15173d,'skipNestingCheck':!0x0}),_0x28ea72['forEach'](_0x24dd08=>_0x24dd08['detach']?.())),_0x354c79['length']&&(_0x31af33['markMultiRangeDeletion'](_0x354c79,'tablePaste',{'tablePasteChainId':_0x15173d,'skipNestingCheck':!0x0}),_0x354c79['forEach'](_0x36963a=>_0x36963a['detach']?.()));const _0x2d0d08=_0x31af33['markMultiRangeBlockFormat'](_0x5d7b08['map'](({element:_0x47ce66})=>_0x47ce66),{'formatGroupId':_0xf371f8()},[],'tablePasteCell',{'tablePasteChainId':_0x15173d});if(_0x2d0d08){const _0x224aeb=_0x2d0d08['getMarkers'](),_0x2dbcba=[];for(const {element:_0x416dc3,attributes:_0x32066c}of _0x5d7b08){if(!_0x32066c)continue;const _0x40c937=_0x3a40c9['model']['createRangeOn'](_0x416dc3),_0x3b12af=_0x224aeb['find'](_0x27547b=>_0x27547b['getRange']()['isEqual'](_0x40c937));_0x3b12af&&_0x2dbcba['push']([_0x3b12af['name'],_0x32066c]);}_0x2dbcba['length']&&_0x2d0d08['setAttribute']('markerAttributes',Object['fromEntries'](_0x2dbcba));}_0x58ee67=null;}));},{'priority':_0x46e3bc['high']+0xa}),_0x20fbed['on']('contentInsertion',()=>{_0x422e40=!0x1;},{'priority':'lowest'}),_0x3a40c9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x51e4e4,_0x1d3058)=>{const [_0xb40dfe,_0x56d3f1,,_0x11d44d]=_0x1d3058;if(!_0x58ee67)return;_0x51e4e4['stop']();const _0xa936b2=_0xb40dfe['cell'],_0x80b95f=_0x56d3f1,_0x42b1ef=Oe(_0xa936b2),_0x6164b1=Oe(_0x80b95f);_0x51e4e4['return']=_0xa936b2;let _0x570606=null,_0x5b109f=null;if(_0x6164b1||_0x42b1ef){if(_0x42b1ef&&!_0x6164b1){_0x11d44d['remove'](_0xa936b2['getChild'](0x0));for(const _0x5043a5 of Array['from'](_0x80b95f['getChildren']()))_0x11d44d['insert'](_0x5043a5,_0xa936b2,'end');const _0x2530f5=_0x58ee67['rowInsertionIndexes']['includes'](_0xb40dfe['row']),_0x3f5a68=_0x58ee67['columnInsertionIndexes']['includes'](_0xb40dfe['column']);_0x2530f5||_0x3f5a68||(_0x570606=_0x541ce3['fromRange'](_0x11d44d['createRangeIn'](_0xa936b2)));}else _0x6164b1&&!_0x42b1ef&&(_0x5b109f=_0x11d44d['createRangeIn'](_0xa936b2));}else{const _0x56631a=_0x11d44d['createElement']('tableCellSuggestion'),_0x104f50=_0x11d44d['createElement']('tableCellSuggestion');_0x11d44d['wrap'](_0x11d44d['createRangeIn'](_0xa936b2),_0x104f50),_0x11d44d['insert'](_0x56631a,_0xa936b2,0x0);for(const _0x5c2247 of Array['from'](_0x80b95f['getChildren']()))_0x11d44d['insert'](_0x5c2247,_0x56631a,'end');_0x570606=_0x541ce3['fromRange'](_0x11d44d['createRangeOn'](_0x56631a)),_0x5b109f=_0x541ce3['fromRange'](_0x11d44d['createRangeOn'](_0x104f50));}const _0x2df14d=Array['from'](_0x80b95f['getAttributes']())['filter'](([_0x4facd2])=>Re['includes'](_0x4facd2));_0x58ee67['cells']['push']({'element':_0xa936b2,'attributes':_0x2df14d['length']?Object['fromEntries'](_0x2df14d):null}),_0x570606&&_0x58ee67['insertionRanges']['push'](_0x570606),_0x5b109f&&_0x58ee67['deletionRanges']['push'](_0x5b109f);},{'priority':'high'}),_0x9fffca['on']('insertColumns',(_0x32db85,_0x550f38)=>{const [_0x26dade,_0x5b9353={}]=_0x550f38;if(!_0x58ee67)return;const _0x58621c=_0x5b9353['at']||0x0,_0x1bd61a=_0x5b9353['columns']||0x1;_0x58ee67['columnInsertionIndexes']=new Array(_0x1bd61a)['fill'](_0x58621c)['map']((_0x259667,_0x2e423b)=>_0x259667+_0x2e423b);for(const {cell:_0x2733db}of _0x9fffca['createTableWalker'](_0x26dade,{'startColumn':_0x58621c,'endColumn':_0x58621c+_0x1bd61a-0x1}))_0x58ee67['columnInsertionRanges']['push'](_0x3a40c9['model']['createRangeOn'](_0x2733db));},{'priority':'low'}),_0x9fffca['on']('insertRows',(_0x485e5a,_0x4a28d2)=>{const [_0x38876e,_0xc555cb={}]=_0x4a28d2;if(!_0x58ee67)return;const _0x2222aa=_0xc555cb['at']||0x0,_0x362685=_0xc555cb['rows']||0x1;_0x58ee67['rowInsertionIndexes']=new Array(_0x362685)['fill'](_0x2222aa)['map']((_0x33c5d0,_0x3cf13a)=>_0x33c5d0+_0x3cf13a);for(const {cell:_0x308ceb}of _0x9fffca['createTableWalker'](_0x38876e,{'startRow':_0x2222aa,'endRow':_0x2222aa+_0x362685-0x1}))_0x58ee67['rowInsertionRanges']['push'](_0x3a40c9['model']['createRangeOn'](_0x308ceb));},{'priority':'low'}),_0x31af33['descriptionFactory']['registerDescriptionCallback'](_0x51412f=>{if(_0x51412f['subType']&&_0x51412f['subType']['startsWith']('tablePaste'))return _0x51412f['previous']?{}:{'type':'insertion','content':pt(_0x3a40c9['locale'],'*Replace\x20table\x20cells*')};});const _0x573c8e=()=>!0x1;for(const _0x14519e of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x31af33['_suggestionFactory']['registerCustomCallback']('insertion',_0x14519e,'join',_0x573c8e),_0x31af33['_suggestionFactory']['registerCustomCallback']('deletion',_0x14519e,'join',_0x573c8e),_0x31af33['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14519e,'join',_0x573c8e);_0x31af33['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x573c8e),_0x31af33['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x57bdde,_0x379067,_0x59112e)=>{const _0x2f6e78=_0x57bdde['map'](_0x20bc87=>_0x20bc87['getContainedElement']())['filter'](_0x5a7c53=>_0x5a7c53),_0x1363f6=new Map(_0x2f6e78['map'](_0x1252a5=>[_0x1252a5,null]));if(_0x58ee67){for(const {element:_0x3ada68,attributes:_0x2edc2d}of _0x58ee67['cells'])_0x2edc2d&&_0x1363f6['set'](_0x3ada68,_0x2edc2d);}else{if(_0x59112e&&_0x59112e['markerAttributes'])for(const [_0x282b6c,_0x5c09fe]of Object['entries'](_0x59112e['markerAttributes'])){const _0x1de8dd=_0x3a40c9['model']['markers']['get'](_0x282b6c),_0xe0484=_0x1de8dd?_0x1de8dd['getRange']()['getContainedElement']():null;_0xe0484&&_0x1363f6['set'](_0xe0484,_0x5c09fe);}}_0x3a40c9['model']['change'](_0x3184ba=>{for(const [_0x39b2a7,_0x16e955]of _0x1363f6)_0x3184ba['setAttributes']({...Se,..._0x16e955},_0x39b2a7);});});const _0x58d41c=(_0x1e8461,_0x40e2b1)=>{_0x31af33['_suggestionFactory']['registerCustomCallback'](_0x1e8461,'tablePaste',_0x40e2b1,(_0x2d2012,_0x3790aa,_0x5b8998)=>{_0x3a40c9['model']['change'](_0x4e27ce=>{const _0x391b73=[];for(const _0x4930fc of _0x2d2012){const _0x5758a9=_0x4930fc['start']['nodeAfter'];_0x5758a9['is']('element','tableCellSuggestion')&&_0x391b73['push'](_0x5758a9);}_0x31af33['_suggestionFactory']['getSuggestionCallback'](_0x1e8461,null,_0x40e2b1)(_0x2d2012,_0x3790aa,_0x5b8998);for(const _0x3df5cf of _0x391b73)'$graveyard'!=_0x3df5cf['root']['rootName']&&_0x4e27ce['unwrap'](_0x3df5cf);});});};_0x58d41c('insertion','accept'),_0x58d41c('insertion','discard'),_0x58d41c('deletion','accept'),_0x58d41c('deletion','discard'),_0x31af33['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2b67d7=>{const _0x331445=_0x2b67d7['map'](_0x227d43=>_0x227d43['getContainedElement']()),_0x2e69e2=_0x331445[0x0]['findAncestor']('table'),{minRow:_0x53036d,maxRow:_0x39f3e2}=_0x30bf16['_getCoordsForCells'](_0x331445);_0x9fffca['removeRows'](_0x2e69e2,{'at':_0x53036d,'rows':_0x39f3e2-_0x53036d+0x1});}),_0x31af33['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x23c11e=>{const _0x4eec7e=_0x23c11e['map'](_0x506885=>_0x506885['getContainedElement']()),_0x35ddb8=_0x4eec7e[0x0]['findAncestor']('table'),{minColumn:_0x4dfe1d,maxColumn:_0x1330b3}=_0x30bf16['_getCoordsForCells'](_0x4eec7e);_0x9fffca['removeColumns'](_0x35ddb8,{'at':_0x4dfe1d,'columns':_0x1330b3-_0x4dfe1d+0x1});});const _0xefb2a=(_0x44eacb,_0x3c7f5e)=>{if(!_0x3c7f5e['subType']||!_0x3c7f5e['subType']['startsWith']('tablePaste'))return;const _0xc95d6c=_0x3c7f5e['attributes']['tablePasteChainId'],_0x31e366=_0x31af33['getSuggestions']()['filter'](_0x59027a=>_0x59027a['isInContent']&&_0x59027a['attributes']&&_0x59027a['attributes']['tablePasteChainId']==_0xc95d6c);_0x31e366['length']&&_0x3c7f5e['getAllAdjacentSuggestions']()['length']!=_0x31e366['length']&&_0x31e366['reduce']((_0x1a9a08,_0x202236)=>(_0x1a9a08['next']=_0x202236,_0x202236['previous']=_0x1a9a08,_0x202236));};function _0x786b39(_0x5a893f,_0x25b19c=!0x0){const {id:_0x4e46d1,authorId:_0x336c1c}=_0x31af33['_splitMarkerName'](_0x5a893f['markerName']),_0x18cce6=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x459002=_0x31af33['activeMarkers']['includes'](_0x5a893f['markerName']);return _0x459002&&_0x18cce6['push']('ck-suggestion-marker--active'),{'classes':_0x18cce6,'attributes':{'data-suggestion':_0x4e46d1,'data-author-id':_0x336c1c},'priority':_0x459002&&_0x25b19c?0xbc2:0xbb8};}_0x31af33['on']('suggestionLoaded',_0xefb2a,{'priority':'high'}),_0x31af33['on']('suggestionUnloaded',_0xefb2a,{'priority':'high'}),_0x3a40c9['model']['document']['registerPostFixer'](()=>{let _0x5a88ea=!0x1;const _0x3cc6ca=Array['from'](_0x3a40c9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3eb230,data:_0x21c011}of _0x3cc6ca){const {group:_0x154673,type:_0x95cd6d,id:_0xb8104d}=_0x31af33['_splitMarkerName'](_0x3eb230);if('suggestion'!=_0x154673||'deletion'!=_0x95cd6d||_0x21c011['oldRange'])continue;if(!_0x31af33['hasSuggestion'](_0xb8104d))continue;const _0x10bc12=_0x31af33['getSuggestion'](_0xb8104d)['getRanges'](),_0x6fd0bc=_0x3a40c9['plugins']['get']('Users')['me'];for(const _0x32a7f9 of _0x31af33['getSuggestions']()){if(!_0x32a7f9['isInContent']||_0x32a7f9['author']!=_0x6fd0bc)continue;if('formatBlock'!=_0x32a7f9['type']||'tablePasteCell'!=_0x32a7f9['subType'])continue;if(_0x32a7f9['getRanges']()['every'](_0x3b485c=>_0x10bc12['some'](_0x450f4a=>_0x450f4a['containsRange'](_0x3b485c,!0x0)))){for(const _0x17ffba of _0x32a7f9['getAllAdjacentSuggestions']())_0x17ffba['isInContent']&&(_0x17ffba['discard'](),_0x5a88ea=!0x0);}}}return _0x5a88ea;}),_0x3a40c9['model']['document']['registerPostFixer'](_0x4d3cc7=>{const _0x42addc=_0x3a40c9['commands']['get']('redo');if(!_0x42addc||!_0x42addc['_createdBatches']['has'](_0x4d3cc7['batch']))return!0x1;let _0x2b2595=!0x1;const _0xda3d67=_0x3a40c9['plugins']['get']('Users')['me'],_0x278187=_0x3a40c9['model']['document']['differ']['getChanges'](),_0xe22770=Array['from'](_0x3a40c9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xfc8a57,data:_0x3f624e})=>{const {group:_0x1020e8,subType:_0x334303,authorId:_0x1d3424}=_0x31af33['_splitMarkerName'](_0xfc8a57);return'suggestion'==_0x1020e8&&'tablePaste'==_0x334303&&_0x1d3424==_0xda3d67['id']&&!_0x3f624e['oldRange'];});for(const _0x17d5e7 of _0x278187){if('insert'!=_0x17d5e7['type']||'tableCellSuggestion'!=_0x17d5e7['name']||0x1!=_0x17d5e7['length'])continue;const _0x1c6e5b=_0x4d3cc7['createRange'](_0x17d5e7['position'],_0x17d5e7['position']['getShiftedBy'](0x1));if(!_0xe22770['find'](({data:_0x1b20f3})=>_0x1b20f3['newRange']['isEqual'](_0x1c6e5b))){for(const {name:_0x295939,data:_0x20946c}of _0xe22770)if(_0x1c6e5b['containsRange'](_0x20946c['newRange'])){_0x4d3cc7['updateMarker'](_0x295939,{'range':_0x1c6e5b}),_0x2b2595=!0x0;break;}}}return _0x2b2595;}),_0x3a40c9['model']['document']['registerPostFixer'](_0x511f9b=>{let _0x29d301=!0x1;const _0x7fce7b=_0x3a40c9['plugins']['get']('Users')['me'],_0x5f408e=_0x31af33['getSuggestions']()['filter'](_0x162390=>_0x162390['isInContent']&&_0x162390['author']==_0x7fce7b),_0x275552=new Set(),_0x1f511a=new Set();for(const _0x34d662 of _0x5f408e)if('tablePaste'==_0x34d662['subType'])for(const _0x14659f of _0x34d662['getMarkers']()){const _0x51386a=_0x14659f['getRange']()['getContainedElement']();if(_0x51386a){if(_0x51386a['is']('element','tableCellSuggestion')&&Oe(_0x51386a)){_0x34d662['removeMarker'](_0x14659f['name']),_0x275552['add'](_0x51386a),_0x29d301=!0x0;const _0xa906c5=_0x51386a['nextSibling'],_0x4da653=_0x51386a['previousSibling'],_0x525a8c=_0xa906c5&&_0xa906c5['is']('element','tableCellSuggestion'),_0x2a7fcf=_0x4da653&&_0x4da653['is']('element','tableCellSuggestion');_0x525a8c&&!_0x275552['has'](_0xa906c5)&&_0x1f511a['add'](_0xa906c5),_0x2a7fcf&&!_0x275552['has'](_0x4da653)&&_0x1f511a['add'](_0x4da653);}else _0x51386a['is']('element','paragraph')&&_0x51386a['isEmpty']&&(_0x34d662['removeMarker'](_0x14659f['name']),_0x29d301=!0x0);}}else{if('tablePasteCell'==_0x34d662['subType']){if(!_0x34d662['attributes']||!_0x34d662['attributes']['tablePasteChainId'])continue;const _0x5b8be9=_0x34d662['attributes']['markerAttributes'];if(_0x5b8be9&&Object['keys'](_0x5b8be9)['length'])continue;const _0x291a7c=_0x34d662['attributes']['tablePasteChainId'];let _0x4bf703=!0x0,_0x7f6060=!0x0;for(const _0x598b3a of _0x5f408e)if(_0x598b3a['subType']&&_0x598b3a['subType']['startsWith']('tablePaste')){if(!_0x598b3a['attributes']['tablePasteChainId']){_0x7f6060=!0x1;break;}if(_0x598b3a['id']!=_0x34d662['id']&&_0x598b3a['attributes']['tablePasteChainId']==_0x291a7c){_0x4bf703=!0x1;break;}}_0x7f6060&&_0x4bf703&&(_0x34d662['removeMarkers'](),_0x29d301=!0x0);}}for(const _0x162fec of _0x275552)_0x511f9b['remove'](_0x162fec);for(const _0x3ca043 of _0x1f511a)_0x511f9b['unwrap'](_0x3ca043);return _0x29d301;}),_0x3a40c9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5ebfa1=>_0x786b39(_0x5ebfa1),'converterPriority':'high'}),_0x3a40c9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x28aa8b,_0x4ece9c)=>_0x4ece9c['options']['showSuggestionHighlights']?_0x786b39(_0x28aa8b,!0x1):null,'converterPriority':'high'});const _0x35d1a9=_0x3a40c9['editing']['view'];this['listenTo'](_0x35d1a9['document'],'clipboardOutput',(_0x3d4975,_0x4e23ed)=>{const _0x591c88=[];for(const _0x29dc3c of _0x35d1a9['createRangeIn'](_0x4e23ed['content'])['getItems']())_0x29dc3c['is']('element','suggestion-td')&&_0x591c88['push'](_0x29dc3c);_0x35d1a9['change'](_0x56815d=>{for(const _0x322deb of _0x591c88)_0x56815d['move'](_0x56815d['createRangeIn'](_0x322deb),_0x56815d['createPositionBefore'](_0x322deb)),_0x56815d['remove'](_0x322deb);});});}}function Oe(_0x4ae45f){if(_0x4ae45f['isEmpty'])return!0x0;const _0x4b690c=_0x4ae45f['getChild'](0x0);return _0x4b690c['is']('element','paragraph')&&_0x4b690c['isEmpty'];}function we(_0x217259,_0x3c78c8={},_0x389d63){for(const {isAnchor:_0x281668,cellHeight:_0x1f940c,cellWidth:_0x15468e}of _0x389d63['createTableWalker'](_0x217259,{'includeAllSlots':!0x0,..._0x3c78c8}))if(!_0x281668||0x1!=_0x1f940c||0x1!=_0x15468e)return!0x1;return!0x0;}class Be extends _0x46e166{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x949b1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x949b1e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x949b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x949b1e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x949b1e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x949b1e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x949b1e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x16024e,_0x3f124e){const _0x5ba8e3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21829f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x289356=_0x3f124e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2ad7cd=_0x21829f['getColumnGroupElement'](_0x289356);let _0xb6739c=_0x2ad7cd?_0x21829f['getTableColumnsWidths'](_0x2ad7cd):null,_0x4ba99e=_0x289356['getAttribute']('tableWidth')||null;const _0x5de961=_0x3f124e['tableWidth']||_0x4ba99e,_0x1eb81b=_0x3f124e['columnWidths']||_0xb6739c,_0xf45c72=this['editor']['plugins']['get']('Users')['me'];for(const _0x454a6c of _0x5ba8e3['getSuggestions']()){const _0x22a885=_0x454a6c['getContainedElement']();if('resizeTable'===_0x454a6c['subType']&&_0x22a885===_0x289356){_0x454a6c['author']!==_0xf45c72&&_0x454a6c['discard']();const _0xfdf04a=_0x454a6c['data']['commandParams'];_0x4ba99e=_0xfdf04a[0x0]['tableWidth'],_0xb6739c=_0xfdf04a[0x0]['columnWidths'];break;}}_0x16024e({'table':_0x289356,'tableWidth':_0x5de961,'columnWidths':_0x1eb81b}),_0x5ba8e3['markBlockFormat'](_0x289356,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4ba99e,'columnWidths':_0xb6739c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2e3386){if('formatBlock'!=_0x2e3386['type']&&'formatInline'!=_0x2e3386['type'])return;const {data:_0x44d9f1}=_0x2e3386;if(_0x44d9f1&&'resizeTable'===_0x44d9f1['formatGroupId']){const _0x10f35e='*Format:*\x20resize\x20table';return{'type':'format','content':pt(this['editor']['locale'],_0x10f35e)};}}}class Fe extends _0x46e166{['afterInit'](){const _0x14ecad=this['editor'];_0x14ecad['plugins']['has']('Template')&&_0x14ecad['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class De extends _0x46e166{['afterInit'](){const _0x303a72=this['editor'];if(!_0x303a72['commands']['get']('insertTableOfContents'))return;_0x303a72['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x33481d=_0x303a72['plugins']['get']('TrackChangesEditing'),_0x2475a8=_0x303a72['locale'];_0x33481d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x258f56=>pt(_0x2475a8,'ELEMENT_TABLE_OF_CONTENTS',_0x258f56));}}class ve extends _0x46e166{['afterInit'](){const _0x388147=this['editor'];if(!_0x388147['plugins']['has']('Title'))return;const _0x3a696f=_0x388147['plugins']['get']('TrackChangesEditing');_0x3a696f['descriptionFactory']['registerElementLabel']('title-content',()=>pt(_0x388147['locale'],'ELEMENT_TITLE')),_0x388147['model']['document']['registerPostFixer'](_0x54e8ee=>{let _0x51cb11=!0x1;const _0x188969=Array['from'](_0x388147['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a5b16,data:_0x20f7e5}of _0x188969){const {group:_0x3f65e4}=_0x3a696f['_splitMarkerName'](_0x2a5b16);if('suggestion'!==_0x3f65e4||!_0x20f7e5['newRange'])continue;const _0x4b67f5=_0x20f7e5['newRange'],_0x84d975=_0x4b67f5['end']['nodeBefore'];if(!_0x84d975||!_0x84d975['is']('element','title-content'))continue;if(!_0x4b67f5['start']['isTouching'](_0x4b67f5['end']))continue;const _0x1ab926=_0x388147['model']['schema']['getNearestSelectionRange'](_0x4b67f5['end'],'forward');if(_0x1ab926&&_0x1ab926['isCollapsed']){const _0x294e69=_0x54e8ee['createRange'](_0x4b67f5['start'],_0x1ab926['start']);_0x294e69['isEqual'](_0x4b67f5)||(_0x54e8ee['updateMarker'](_0x2a5b16,{'range':_0x294e69}),_0x51cb11=!0x0);}_0x51cb11||(_0x54e8ee['removeMarker'](_0x2a5b16),_0x51cb11=!0x0);}return _0x51cb11;});}}class xe extends _0x46e166{['afterInit'](){const _0x3ea0dc=this['editor'],_0x400741=_0x3ea0dc['plugins']['get']('TrackChangesEditing');_0x3ea0dc['plugins']['has']('Uploadcare')&&(_0x400741['enableCommand']('uploadcare'),_0x3ea0dc['plugins']['has']('UploadcareImageEdit')&&(_0x400741['enableCommand']('uploadcareImageEdit'),_0x400741['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x400741['descriptionFactory']['registerDescriptionCallback'](_0xb6e757=>{if('attribute'!=_0xb6e757['type'])return;const {data:_0x87145b}=_0xb6e757;return _0x87145b&&'uploadcareImageId'==_0x87145b['key']?{'type':'format','content':''}:void 0x0;})));}}class Pe extends _0x46e166{['afterInit'](){const _0x348674=this['editor'],_0x3e440f=_0x348674['plugins']['get']('TrackChangesEditing');_0x348674['plugins']['has']('UndoEditing')&&(_0x3e440f['enableCommand']('undo'),_0x3e440f['enableCommand']('redo'));}}class Ue extends _0x46e166{static get['requires'](){return[Ae];}['afterInit'](){const _0x39ed4b=this['editor'];if(!_0x39ed4b['plugins']['has']('TableCaptionEditing'))return;_0x39ed4b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ge extends _0x46e166{['tableProperties'];['tableCellProperties'];constructor(_0xcb3165){super(_0xcb3165),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4947b8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x56c132 of this['tableProperties'])_0x4947b8['enableCommand'](_0x56c132,(_0x263ebc,_0x51d099)=>{const _0x5d677e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x56c132,[_0x5d677e],this['tableProperties'],'tableProperties',_0x263ebc,_0x51d099);});_0x4947b8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4947b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4947b8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x55f1a3,_0x33f9e7)=>this['handleDiscardAction'](this['tableProperties'],_0x55f1a3,_0x33f9e7)),_0x4947b8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5562e3 of this['tableCellProperties'])this['editor']['commands']['get'](_0x5562e3)&&_0x4947b8['enableCommand'](_0x5562e3,(_0x5ace36,_0x4750da)=>{const _0x5644fc=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5562e3,_0x5644fc,this['tableCellProperties'],'tableCellProperties',_0x5ace36,_0x4750da);});_0x4947b8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4947b8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4947b8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5db1f2,_0x43a122)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5db1f2,_0x43a122)),_0x4947b8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x4947b8['registerBlockAttribute']('tableCellType'),_0x4947b8['descriptionFactory']['registerAttributeLabel']('tableCellType',pt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x4947b8['descriptionFactory']['registerDescriptionCallback'](_0x5d6350=>this['handleSuggestionDescription'](_0x5d6350)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2d68aa,_0x3474df,_0x3fcc8f,_0x1b7683,_0xd86e0f,_0x245adf){const _0x299b6a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x245adf['batch'],()=>{for(const _0x16883a of _0x3474df){if(this['_getSuggestion'](_0x16883a,_0x1b7683))_0xd86e0f(_0x245adf);else{const _0x32b987={};for(const _0x184592 of _0x3fcc8f){const _0x3c812d=_0x16883a['getAttribute'](_0x184592);void 0x0!==_0x3c812d&&(_0x32b987[_0x184592]=_0x3c812d);}_0xd86e0f(_0x245adf),_0x299b6a['markBlockFormat'](_0x16883a,{'commandParams':[_0x32b987]},[],_0x1b7683);}}});}['handleDiscardAction'](_0x4343d9,_0x14f2fe,_0x245f6e){const _0x47f720=_0x14f2fe[0x0]['start']['nodeAfter'],_0x4e4e7e=_0x245f6e['commandParams'][0x0];this['editor']['model']['change'](_0x2e9b90=>{for(const _0x5912ab of _0x4343d9)void 0x0!==_0x4e4e7e[_0x5912ab]?_0x2e9b90['setAttribute'](_0x5912ab,_0x4e4e7e[_0x5912ab],_0x47f720):_0x2e9b90['removeAttribute'](_0x5912ab,_0x47f720);});}['handleSuggestionDescription'](_0x35d0be){if(_0x35d0be['data'])switch(_0x35d0be['subType']){case'tableProperties':return{'type':'format','content':pt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':pt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x54aaa4,_0x286440){const _0x13d803=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x301783 of _0x13d803['getSuggestions']({'skipNotAttached':!0x0})){const _0x43a827=_0x301783['getContainedElement']();if(_0x301783['subType']===_0x286440&&_0x43a827===_0x54aaa4)return _0x301783;}return null;}['_registerTablePropertiesAttributes'](){const _0x375900=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1818c2=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4d1665 of _0x1818c2){const _0x4804a6=_0x4d1665['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x375900['descriptionFactory']['registerAttributeLabel'](_0x4d1665,pt(this['editor']['locale'],'FORMAT_'+_0x4804a6));}}}class He extends _0x46e166{['afterInit'](){const _0x51899d=this['editor'];if(!_0x51899d['plugins']['has']('LineHeight'))return;const _0x4fa7f0=_0x51899d['plugins']['get']('TrackChangesEditing'),_0x105022=_0x51899d['locale'];_0x4fa7f0['enableDefaultAttributesIntegration']('lineHeight'),_0x4fa7f0['descriptionFactory']['registerAttributeLabel']('lineHeight',pt(_0x105022,'FORMAT_LINE_HEIGHT'));}}const $e='$elementName';class Ve extends _0x46e166{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x35c779,_0x136b9c,_0x7d041f,_0x2c6ba5,It,bt,At,kt,yt,Nt,St,Ot,Mt,wt,Ft,Dt,Ht,$t,Vt,jt,zt,Kt,Yt,qt,Qt,Zt,Jt,ee,te,ne,ie,se,oe,le,fe,re,vt,He,Pt,ue,he,de,ge,me,Ee,Te,_e,pe,Ie,be,Ae,Ce,ye,Ne,Ue,Me,Be,De,Ge,Fe,ve,xe,Pe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5341be){super(_0x5341be),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5a73bc,_0x122d87,_0x39420d,_0x59b067)=>{this['_model']['change'](()=>{for(const _0x7ba53b of[..._0x59b067,..._0x39420d])this['_model']['markers']['has'](_0x7ba53b)&&_0x5341be['editing']['reconvertMarker'](_0x7ba53b);});}),this['descriptionFactory']=new Lt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new We(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5341be['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5341be['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5341be['config']['get']('trackChanges.trackFormatChanges'),_0x5341be['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5341be['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new at(_0x5341be,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5e9cc4=this['editor'];_0x5e9cc4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x17cc9b,{writer:_0x355f6c})=>{let _0x18fcbc='suggestion:'+_0x17cc9b['getAttribute']('suggestion-type')+':'+_0x17cc9b['getAttribute']('id');return _0x17cc9b['getAttribute']('marker-count')&&(_0x18fcbc+=':'+_0x17cc9b['getAttribute']('marker-count')),_0x355f6c['createElement']('$marker',{'data-name':_0x18fcbc});}}),_0x5e9cc4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5e9cc4['model']['document']['registerPostFixer'](_0x3ad2ff=>{let _0x1576e4=!0x1;const _0xd9803e=Array['from'](_0x5e9cc4['model']['document']['differ']['getChangedMarkers']()),_0x38c579=new Set();for(const {name:_0x195ad2,data:_0x11b2d4}of _0xd9803e){const {group:_0x42b2bf,type:_0x1678d7,subType:_0x158966,id:_0x52909b}=this['_splitMarkerName'](_0x195ad2);if('suggestion'!==_0x42b2bf)continue;const _0x5954ca=_0x158966?'suggestion:'+_0x1678d7+':'+_0x158966+':'+_0x52909b:'suggestion:'+_0x1678d7+':'+_0x52909b,_0x4d985f=_0x5e9cc4['model']['markers']['getMarkersGroup'](_0x5954ca),_0x603f45=_0x5e9cc4['model']['markers']['get'](_0x195ad2),_0x20126d=this['_suggestions']['get'](_0x52909b);if(null!=_0x11b2d4['newRange']){'formatInline'==_0x1678d7&&(_0x1576e4=_0x1576e4||Ke(_0x11b2d4['newRange'],_0x195ad2,_0x3ad2ff,_0x5e9cc4['model']['schema']));const _0x4d0890='attribute'==_0x1678d7&&this['_isBlockAttribute'](_0x158966['split']('|')[0x0]),_0xd256a2='attribute'==_0x1678d7&&this['_isInlineAttribute'](_0x158966['split']('|')[0x0]);if(_0x11b2d4['newRange']['isCollapsed']||'$graveyard'==_0x11b2d4['newRange']['root']['rootName']||'formatBlock'==_0x1678d7&&!Ye(_0x11b2d4['newRange'])||_0x4d0890&&!Ye(_0x11b2d4['newRange'])||_0xd256a2&&qe(_0x11b2d4['newRange'])||'deletion'==_0x1678d7&&qe(_0x11b2d4['newRange'])||_0x603f45&&Qe(_0x603f45,_0x4d985f))_0x3ad2ff['removeMarker'](_0x195ad2),_0x1576e4=!0x0;else{if(!_0x20126d||!_0x20126d['isInContent'])continue;if(_0x11b2d4['newRange']&&_0x11b2d4['oldRange']&&_0x11b2d4['newRange']['isEqual'](_0x11b2d4['oldRange']))continue;_0x38c579['add'](_0x20126d);}}}return _0x38c579['size']>0x0&&(_0x1576e4=!!this['_joinWithAdjacentSuggestions'](_0x38c579)||_0x1576e4),_0x1576e4;}),_0x5e9cc4['model']['document']['registerPostFixer'](_0x1b55aa=>{let _0x47eb01=!0x1;for(const _0x5eb9a7 of _0x5e9cc4['model']['document']['differ']['getChanges']())if('insert'==_0x5eb9a7['type'])for(const _0x1bcdf1 of this['_suggestions']['values']()){if(_0x1bcdf1['isMultiRange']||!_0x1bcdf1['isInContent'])continue;const _0x21c815='formatBlock'==_0x1bcdf1['type'],_0x140908=this['_getAttributeKey'](_0x1bcdf1),_0x2f2dfc=_0x140908&&this['_isBlockAttribute'](_0x140908);if(!_0x21c815&&!_0x2f2dfc)continue;const _0x2c60c6=_0x1bcdf1['getFirstRange']();if(_0x2c60c6['start']['parent']!=_0x2c60c6['end']['parent']&&!_0x2c60c6['end']['isAtEnd']){const _0x3a84b0=_0x5e9cc4['model']['createPositionAt'](_0x2c60c6['start']['nodeAfter'],'end'),_0x3af96f=_0x5e9cc4['model']['createRange'](_0x2c60c6['start'],_0x3a84b0);_0x1b55aa['updateMarker'](_0x1bcdf1['getFirstMarker'](),{'range':_0x3af96f}),_0x47eb01=!0x0;}}return _0x47eb01;}),_0x5e9cc4['model']['document']['registerPostFixer'](_0x144ccc=>this['_processAttributeChanges'](_0x144ccc)),_0x5e9cc4['model']['document']['registerPostFixer'](_0x5b667d=>!_0x5b667d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5b667d)),_0x5e9cc4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5e9cc4['model']['document']['on']('change:data',(_0x295b8e,_0x446349)=>{if(!_0x446349['isLocal']||_0x446349['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2bf505=_0x5e9cc4['model']['document']['differ']['getChanges']();if(0x0==_0x2bf505['length'])return;const _0x5a9c13=[],_0x5556a5=_0x2bf505['filter'](_0x48a1c9=>'attribute'==_0x48a1c9['type']),_0x1b3045=_0x2bf505['filter'](_0x2351ce=>'insert'==_0x2351ce['type']&&'$text'!=_0x2351ce['name']);for(const _0x5bd1d9 of _0x5556a5)this['_isRegisteredAttribute'](_0x5bd1d9['attributeKey'])&&_0x5a9c13['push']({'key':_0x5bd1d9['attributeKey'],'newValue':_0x5bd1d9['attributeNewValue'],'oldValue':_0x5bd1d9['attributeOldValue'],'range':Ze(_0x5bd1d9['range'],_0x5e9cc4['model'])});for(const _0x41f37e of _0x1b3045){if('rename'!=_0x41f37e['action']&&'refresh'!=_0x41f37e['action'])continue;const _0x337399=Je(_0x41f37e['position']['nodeAfter'],_0x5e9cc4['model']),_0x215bd4=_0x41f37e['before'];'rename'==_0x41f37e['action']&&_0x5a9c13['push']({'key':$e,'newValue':_0x41f37e['name'],'oldValue':_0x215bd4['name'],'range':_0x337399});for(const [_0x1ef49b,_0x361457]of _0x215bd4['attributes']){if(!this['_isRegisteredAttribute'](_0x1ef49b))continue;const _0x58af61=_0x41f37e['attributes']['get'](_0x1ef49b);_0x361457!==_0x58af61&&_0x5a9c13['push']({'key':_0x1ef49b,'newValue':_0x58af61,'oldValue':_0x361457,'range':_0x337399});}for(const [_0x2c900f,_0x3dbb3b]of _0x41f37e['attributes'])this['_isRegisteredAttribute'](_0x2c900f)&&(_0x215bd4['attributes']['has'](_0x2c900f)||_0x5a9c13['push']({'key':_0x2c900f,'newValue':_0x3dbb3b,'oldValue':null,'range':_0x337399}));}0x0!=_0x5a9c13['length']&&_0x5e9cc4['model']['enqueueChange'](_0x446349,_0x34c5c2=>{const _0x3d43b2=_0xf371f8();for(const {range:_0x50d04d,key:_0xb17268,oldValue:_0x1b3756,newValue:_0x4e8b1a}of _0x5a9c13)this['markAttributeChange'](_0x50d04d,_0xb17268,_0x1b3756,_0x4e8b1a,{'groupId':_0x3d43b2});this['_reduceExistingSuggestions'](_0x34c5c2,_0x5a9c13);});},{'priority':'lowest'}),_0x5e9cc4['model']['markers']['on']('update:suggestion',(_0x37b16b,_0x2d9568,_0x29bacf)=>{if(null==_0x29bacf){const {id:_0x49bf44}=this['_splitMarkerName'](_0x2d9568['name']),_0x5c6149=this['_suggestions']['get'](_0x49bf44);_0x5c6149&&_0x5c6149['addMarkerName'](_0x2d9568['name']);}}),_0x5e9cc4['model']['document']['on']('change:data',()=>{const _0x57d762=Array['from'](_0x5e9cc4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5badd7=>'suggestion'===this['_splitMarkerName'](_0x5badd7['name'])['group']);if(0x0===_0x57d762['length'])return;_0x57d762['sort']((_0x41d716,_0x50a3fd)=>{const _0x59d60e=_0x41d716['data']['oldRange'],_0x22cc80=_0x50a3fd['data']['oldRange'];return null===_0x59d60e&&null===_0x22cc80?0x0:null===_0x59d60e&&null!==_0x22cc80?-0x1:null!==_0x59d60e&&null===_0x22cc80?0x1:_0x59d60e['start']['isBefore'](_0x22cc80['start'])?-0x1:0x1;});const _0x1659e5=new Set(),_0x3c394b=new Set();for(const {name:_0x46b3cc,data:_0x53270a}of _0x57d762){const {id:_0x1fac78}=this['_splitMarkerName'](_0x46b3cc);if(null===_0x53270a['oldRange']){const _0x5871ad=this['_handleNewSuggestionMarker'](_0x46b3cc);_0x3c394b['add'](_0x5871ad);}else{const _0x380627=this['_suggestions']['get'](_0x1fac78);null!==_0x53270a['newRange']||_0x380627['isInContent']?(_0x1659e5['add'](_0x380627['head']),_0x3c394b['add'](_0x380627)):this['_removeSuggestion'](_0x380627);}}_0x3c394b['size']>0x0&&this['_refreshSuggestionsChain'](_0x3c394b);for(const _0x86383e of _0x1659e5)this['fire']('suggestionChanged',_0x86383e);}),_0x5e9cc4['model']['on']('applyOperation',(_0x54d6d1,_0x48fb3c)=>{const _0x41e9d0=_0x48fb3c[0x0];if(!this['_suggestions']['size'])return;if(!_0x41e9d0['isDocumentOperation'])return;if(_0x41e9d0['batch']['isUndo']||!_0x41e9d0['batch']['isLocal'])return;let _0x2b57dd,_0x3e991b;switch(_0x41e9d0['type']){case'insert':_0x2b57dd=_0x5e9cc4['model']['createPositionAt'](_0x41e9d0['position']),_0x3e991b=_0x2b57dd['getShiftedBy'](_0x41e9d0['howMany']);break;case'split':_0x2b57dd=_0x5e9cc4['model']['createPositionAt'](_0x41e9d0['splitPosition']),_0x3e991b=_0x5e9cc4['model']['createPositionAt'](_0x41e9d0['moveTargetPosition']);break;case'move':_0x2b57dd=_0x5e9cc4['model']['createPositionAt'](_0x41e9d0['targetPosition']),_0x3e991b=_0x2b57dd['getShiftedBy'](_0x41e9d0['howMany']);break;default:return;}const _0x28cdc0=_0x5e9cc4['model']['createRange'](_0x2b57dd,_0x3e991b);_0x5e9cc4['model']['change'](()=>{for(const {suggestion:_0x1944e9,meta:_0x3c2c97}of this['_findSuggestions'](_0x28cdc0)){if(_0x1944e9['isMultiRange'])continue;if('formatInline'==_0x1944e9['type'])continue;const _0xcfe702=this['_getAttributeKey'](_0x1944e9);if(_0xcfe702&&this['_isBlockAttribute'](_0xcfe702)&&'split'!=_0x41e9d0['type'])continue;const _0x167eb3=_0x1944e9['data']&&_0x1944e9['data']['multipleBlocks'];('formatBlock'!=_0x1944e9['type']||'split'==_0x41e9d0['type']&&!_0x167eb3)&&(_0x3c2c97['containsRangeInObject']||'insertion'==_0x1944e9['type']&&_0x3c2c97['isOwn']||_0x1944e9['getFirstRange']()['containsRange'](_0x28cdc0)&&this['_breakSuggestionMarker'](_0x1944e9,_0x2b57dd,_0x3e991b));}});},{'priority':'lowest'}),_0x5e9cc4['model']['on']('deleteContent',(_0x53a053,_0x2bfe68)=>{const _0x989c3c=_0x2bfe68[0x0],_0x1af930=_0x2bfe68[0x1];if(_0x1af930&&_0x1af930['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x989c3c['isCollapsed'])return;const _0x59761b=_0x5e9cc4['model']['schema'],{start:_0x110cb0,end:_0x288f3e}=_0x989c3c['getFirstRange'](),_0x2ee29e=_0x110cb0['nodeAfter']&&_0x59761b['isLimit'](_0x110cb0['nodeAfter'])?null:_0x59761b['getNearestSelectionRange'](_0x110cb0,'forward'),_0x591c98=_0x288f3e['nodeBefore']&&_0x59761b['isLimit'](_0x288f3e['nodeBefore'])?null:_0x59761b['getNearestSelectionRange'](_0x288f3e,'backward'),_0x547d41=_0x5e9cc4['model']['createRange'](_0x2ee29e?_0x2ee29e['start']:_0x110cb0,_0x591c98?_0x591c98['end']:_0x288f3e);_0x5e9cc4['model']['change'](_0x3bfe4c=>{this['markDeletion'](_0x547d41);const _0x469913=_0x5e9cc4['model']['schema']['getNearestSelectionRange'](_0x547d41['start']);_0x989c3c['is']('documentSelection')?_0x3bfe4c['setSelection'](_0x469913):_0x989c3c['setTo'](_0x469913);}),_0x53a053['stop']();},{'priority':_0x46e3bc['normal']+0xa}),_0x5e9cc4['model']['on']('insertContent',(_0x13ed18,_0x3857fa)=>{const _0x4a605d=_0x3857fa[_0x3857fa['length']-0x1];_0x4a605d&&_0x4a605d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5e9cc4['model']['change'](()=>{let _0x25b8fb=_0x5e9cc4['model']['insertContent'](_0x3857fa[0x0],_0x3857fa[0x1],_0x3857fa[0x2],{'forceDefaultExecution':!0x0});if(!_0x25b8fb)return;_0x13ed18['return']=_0x25b8fb['clone']();const _0x112492=_0x25b8fb['end']['nodeBefore'],_0x2c279c=_0x5e9cc4['model']['schema'];_0x112492&&_0x2c279c['isBlock'](_0x112492)&&!_0x2c279c['isObject'](_0x112492)&&(_0x25b8fb=_0x5e9cc4['model']['createRange'](_0x25b8fb['start'],_0x5e9cc4['model']['createPositionAt'](_0x112492,'end'))),this['markInsertion'](_0x25b8fb);}),_0x13ed18['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x19f2ac=new ct(_0x5e9cc4,this['_suggestions']);_0x5e9cc4['commands']['add']('acceptSuggestion',_0x19f2ac),this['enableCommand']('acceptSuggestion');const _0x5c43f3=new lt(_0x5e9cc4,this['_suggestions']);_0x5e9cc4['commands']['add']('discardSuggestion',_0x5c43f3),this['enableCommand']('discardSuggestion'),_0x5e9cc4['commands']['add']('acceptAllSuggestions',new Et(_0x5e9cc4,_0x19f2ac,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5e9cc4['commands']['add']('discardAllSuggestions',new Et(_0x5e9cc4,_0x5c43f3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5e9cc4['commands']['add']('acceptSelectedSuggestions',new Tt(_0x5e9cc4,_0x19f2ac,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5e9cc4['commands']['add']('discardSelectedSuggestions',new Tt(_0x5e9cc4,_0x5c43f3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x466e8c=_0x5e9cc4['plugins']['get']('CommentsRepository');this['listenTo'](_0x466e8c,'addComment',(_0x2e7041,{threadId:_0x17d5e6})=>{const _0x35aa70=this['_suggestions']['get'](_0x17d5e6);_0x35aa70&&_0x35aa70['commentThread']&&0x1===_0x35aa70['commentThread']['length']&&this['_updateSuggestionData'](_0x17d5e6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x466e8c,'removeComment',(_0x561ab7,{threadId:_0x3a9c77})=>{const _0x400fba=this['_suggestions']['get'](_0x3a9c77);_0x400fba&&_0x400fba['commentThread']&&!_0x400fba['commentThread']['length']&&this['_updateSuggestionData'](_0x3a9c77,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x576338){const _0x285164=_0x2f6a3e([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x8cbed9=0x3d8d0df,_0x49db81=0x3dfaeb7^_0x8cbed9,_0x308e3a=window[_0x2f6a3e([0x44,0x61,0x74,0x65])][_0x2f6a3e([0x6e,0x6f,0x77])](),_0xc37046=_0x576338[_0x2f6a3e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2556cf=new window[(_0x2f6a3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bdd7c=>{_0xc37046[_0x2f6a3e([0x6f,0x6e,0x63,0x65])](_0x2f6a3e([0x72,0x65,0x61,0x64,0x79]),_0x4bdd7c);}),_0x571b00={[_0x2f6a3e([0x6b,0x74,0x79])]:_0x2f6a3e([0x45,0x43]),[_0x2f6a3e([0x75,0x73,0x65])]:_0x2f6a3e([0x73,0x69,0x67]),[_0x2f6a3e([0x63,0x72,0x76])]:_0x2f6a3e([0x50,0x2d,0x32,0x35,0x36]),[_0x2f6a3e([0x78])]:_0x2f6a3e([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]),[_0x2f6a3e([0x79])]:_0x2f6a3e([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]),[_0x2f6a3e([0x61,0x6c,0x67])]:_0x2f6a3e([0x45,0x53,0x32,0x35,0x36])},_0x14a389=_0xc37046[_0x2f6a3e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f6a3e([0x67,0x65,0x74])](_0x2f6a3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x287a7e(){let _0xea709d,_0x1f86dd=null,_0x4225db=null;try{if(_0x14a389==_0x2f6a3e([0x47,0x50,0x4c]))return _0x2f6a3e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xea709d=_0x124e49(),!_0xea709d)return _0x2f6a3e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xea709d[_0x2f6a3e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4225db=_0x2420c8(_0xea709d[_0x2f6a3e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xea709d[_0x2f6a3e([0x6a,0x74,0x69])])),await _0x1b99d4()?_0x24d02d()?_0x179fe6()?_0x2f6a3e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c9173()?(_0xea709d[_0x2f6a3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f6a3e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f86dd=_0x55fa0c(_0x2f6a3e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1c94bb()):_0x2f6a3e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f6a3e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f6a3e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f6a3e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x179fe6(){const _0x493823=[_0x2f6a3e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f6a3e([0x74,0x72,0x69,0x61,0x6c])][_0x2f6a3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xea709d[_0x2f6a3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x308e3a/0x3e8:0xe10*_0x49db81;return _0xea709d[_0x2f6a3e([0x65,0x78,0x70])]<_0x493823;}function _0x24d02d(){const _0xc79fa6=_0xea709d[_0x2f6a3e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xc79fa6)return!0x1;if(_0xc79fa6[_0x2f6a3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6a3e([0x2a])))return!0x0;if(_0xc79fa6[_0x2f6a3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6a3e([0x54,0x43])))return!0x0;if(_0xc79fa6[_0x2f6a3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6a3e([0x52,0x54,0x43]))){if(_0x1c6ac5())return!0x0;if(_0x470746()||_0x29bfd0())return!0x0;}return!0x1;}function _0x5c9173(){const _0x394b11=_0xea709d[_0x2f6a3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x394b11||0x0==_0x394b11[_0x2f6a3e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57c5fa}=new URL(window[_0x2f6a3e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x394b11[_0x2f6a3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57c5fa))return!0x0;const _0x5c1bd2=_0x57c5fa[_0x2f6a3e([0x73,0x70,0x6c,0x69,0x74])](_0x2f6a3e([0x2e]));return _0x394b11[_0x2f6a3e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23b7c7=>_0x23b7c7[_0x2f6a3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f6a3e([0x2a])))[_0x2f6a3e([0x6d,0x61,0x70])](_0x27c233=>_0x27c233[_0x2f6a3e([0x73,0x70,0x6c,0x69,0x74])](_0x2f6a3e([0x2e])))[_0x2f6a3e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x317c2e=>_0x317c2e[_0x2f6a3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5c1bd2[_0x2f6a3e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f6a3e([0x6d,0x61,0x70])](_0x295ada=>Array(_0x5c1bd2[_0x2f6a3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x295ada[_0x2f6a3e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f6a3e([0x66,0x69,0x6c,0x6c])](_0x295ada[0x0]===_0x2f6a3e([0x2a])?_0x2f6a3e([0x2a]):'')[_0x2f6a3e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x295ada))[_0x2f6a3e([0x73,0x6f,0x6d,0x65])](_0x207f9f=>_0x5c1bd2[_0x2f6a3e([0x65,0x76,0x65,0x72,0x79])]((_0x188a10,_0x139c18)=>_0x207f9f[_0x139c18]===_0x188a10||_0x207f9f[_0x139c18]===_0x2f6a3e([0x2a])));}function _0x1c94bb(){return _0x1f86dd&&_0x4225db?new window[(_0x2f6a3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2e9bd2,_0x21c18)=>{_0x1f86dd[_0x2f6a3e([0x74,0x68,0x65,0x6e])](_0x2e9bd2,_0x21c18),_0x4225db[_0x2f6a3e([0x74,0x68,0x65,0x6e])](_0xa24060=>{_0xa24060!=_0x2f6a3e([0x56,0x61,0x6c,0x69,0x64])&&_0x2e9bd2(_0xa24060);},_0x21c18);}):_0x1f86dd||_0x4225db||_0x2f6a3e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2420c8(_0x549c4e,_0x5b508b){return new window[(_0x2f6a3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19c64d=>{if(_0x2e0060())return _0x19c64d(_0x2f6a3e([0x56,0x61,0x6c,0x69,0x64]));_0x20e3e4(),_0xc37046[_0x2f6a3e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f6a3e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x21d8fb=!0x1;const _0x59c3c2=_0xf371f8();function _0x39061a(_0x8ef05e){return!!_0x8ef05e&&(typeof _0x8ef05e===_0x2f6a3e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x8ef05e===_0x2f6a3e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x8ef05e[_0x2f6a3e([0x74,0x68,0x65,0x6e])]===_0x2f6a3e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x8ef05e[_0x2f6a3e([0x63,0x61,0x74,0x63,0x68])]===_0x2f6a3e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x507b74(_0x3556bd){_0x527ba1(_0x3556bd)[_0x2f6a3e([0x74,0x68,0x65,0x6e])](_0x25af9d=>{if(!_0x25af9d||_0x25af9d[_0x2f6a3e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f6a3e([0x6f,0x6b]))return _0x2f6a3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x74f37a(_0x2b9b6d(_0x59c3c2+_0x5b508b))!=_0x25af9d[_0x2f6a3e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f6a3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f6a3e([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f6a3e([0x74,0x68,0x65,0x6e])](_0x3078fe=>(_0x1c155a(),_0x3078fe),()=>{const _0x29869a=_0x4dd0ce();return null==_0x29869a?(_0x1c155a(),_0x2f6a3e([0x56,0x61,0x6c,0x69,0x64])):_0x2f6a3e(_0x308e3a-_0x29869a>(0x27d454df^_0x8cbed9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f6a3e([0x74,0x68,0x65,0x6e])](_0x19c64d)[_0x2f6a3e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19c64d(_0x2f6a3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x248505=0x3ee3e5f^_0x8cbed9;function _0x1c155a(){const _0x944a4b=_0x2f6a3e([0x6c,0x6c,0x63,0x74,0x2d])+_0x74f37a(_0x2b9b6d(_0x549c4e)),_0x59c2c4=_0xbc1c1(_0x74f37a(window[_0x2f6a3e([0x4d,0x61,0x74,0x68])][_0x2f6a3e([0x63,0x65,0x69,0x6c])](_0x308e3a/_0x248505)));window[_0x2f6a3e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f6a3e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x944a4b,_0x59c2c4);}function _0x4dd0ce(){const _0x451c2c=_0x2f6a3e([0x6c,0x6c,0x63,0x74,0x2d])+_0x74f37a(_0x2b9b6d(_0x549c4e)),_0x2a2d16=window[_0x2f6a3e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f6a3e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x451c2c);return _0x2a2d16?window[_0x2f6a3e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbc1c1(_0x2a2d16),0x10)*_0x248505:null;}function _0x527ba1(_0x2123e6){return new window[(_0x2f6a3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22b5d4,_0xdeb01b)=>{_0x2123e6[_0x2f6a3e([0x74,0x68,0x65,0x6e])](_0x22b5d4,_0xdeb01b),window[_0x2f6a3e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdeb01b,0x3d9041f^_0x8cbed9);});}}_0xc37046[_0x2f6a3e([0x6f,0x6e])](_0x2f6a3e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x400d2b,_0xdc1f90)=>{if(_0xdc1f90[0x0]!=_0x549c4e)return _0x19c64d(_0x2f6a3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xdc1f90[0x1]={..._0xdc1f90[0x1],[_0x2f6a3e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x59c3c2};},{[_0x2f6a3e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f6a3e([0x68,0x69,0x67,0x68])}),_0xc37046[_0x2f6a3e([0x6f,0x6e])](_0x2f6a3e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e2692=>{_0x39061a(_0x1e2692[_0x2f6a3e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x21d8fb=!0x0,_0x507b74(_0x1e2692[_0x2f6a3e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f6a3e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f6a3e([0x6c,0x6f,0x77])}),_0x2556cf[_0x2f6a3e([0x74,0x68,0x65,0x6e])](()=>{_0x21d8fb||_0x19c64d(_0x2f6a3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e0060(){return _0xc37046[_0x2f6a3e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f6a3e([0x76,0x69,0x65,0x77])][_0x2f6a3e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f6a3e([0x61,0x75,0x74,0x6f]);}function _0x20e3e4(){_0xc37046[_0x2f6a3e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f6a3e([0x76,0x69,0x65,0x77])][_0x2f6a3e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f6a3e([0x61,0x75,0x74,0x6f]);}}function _0x55fa0c(_0x4c7978){const _0x20665c=[new window[(_0x2f6a3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12a9a1=>setTimeout(_0x12a9a1,0x3d1ee13^_0x8cbed9)),_0x2556cf[_0x2f6a3e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f6a3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51378a=>{let _0x45b15e=0x0;_0xc37046[_0x2f6a3e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f6a3e([0x6f,0x6e])](_0x2f6a3e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x281cac,_0x1f1fd3)=>{_0x1f1fd3[0x0][_0x2f6a3e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x45b15e++,_0x45b15e==(0x3d8d537^_0x8cbed9)&&(_0x51378a(),_0x281cac[_0x2f6a3e([0x6f,0x66,0x66])]());});}))];return window[_0x2f6a3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f6a3e([0x72,0x61,0x63,0x65])](_0x20665c)[_0x2f6a3e([0x74,0x68,0x65,0x6e])](()=>_0x4c7978);}async function _0x337cde(){await _0x2556cf,_0xc37046[_0x2f6a3e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f6a3e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42909a,_0xc37046[_0x2f6a3e([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f6a3e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42909a,_0xc37046[_0x2f6a3e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f6a3e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1c6ac5(){return _0x25c223(_0x2f6a3e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x226fef(_0x2f6a3e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2f6a3e([0x73,0x74,0x61,0x74,0x65])]==_0x2f6a3e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x470746(){return _0x25c223(_0x2f6a3e([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 _0x29bfd0(){return _0x25c223(_0x2f6a3e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5ed486(_0x382ed8){const _0x2bd565=_0xcce218();_0xc37046[_0x2bd565]=_0x2f6a3e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x382ed8,_0x382ed8!=_0x2f6a3e([0x56,0x61,0x6c,0x69,0x64])&&_0x337cde();}function _0xcce218(){const _0x21c275=window[_0x2f6a3e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f6a3e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f6a3e([0x6e,0x6f,0x77])]())[_0x2f6a3e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f6a3e([0x2e]),'');let _0x427d6d=_0x2f6a3e([0x52]);for(let _0xb25896=0x0;_0xb25896<_0x21c275[_0x2f6a3e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb25896+=0x2){let _0x22b95e=window[_0x2f6a3e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21c275[_0x2f6a3e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb25896,_0xb25896+0x2));_0x22b95e>=_0x285164[_0x2f6a3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22b95e-=_0x285164[_0x2f6a3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x427d6d+=_0x285164[_0x22b95e];}return _0x427d6d;}function _0x124e49(){const _0x1fcf77=_0x14a389[_0x2f6a3e([0x73,0x70,0x6c,0x69,0x74])](_0x2f6a3e([0x2e]));if(0x3!=_0x1fcf77[_0x2f6a3e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3b766d(_0x1fcf77[0x1]);function _0x3b766d(_0x2e74ad){const _0x29b78d=_0x141202(_0x2e74ad);return _0x29b78d&&_0x155d9c()?_0x29b78d:null;function _0x155d9c(){const _0x5544f2=_0x29b78d[_0x2f6a3e([0x6a,0x74,0x69])],_0x367337=window[_0x2f6a3e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5544f2[_0x2f6a3e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5544f2[_0x2f6a3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5f5c21={..._0x29b78d,[_0x2f6a3e([0x6a,0x74,0x69])]:_0x5544f2[_0x2f6a3e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5544f2[_0x2f6a3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5f5c21[_0x2f6a3e([0x76,0x63])],_0x2b9b6d(_0x5f5c21)==_0x367337;}}}async function _0x1b99d4(){let _0x4476b9=!0x0;try{const _0x4641ae=_0x14a389[_0x2f6a3e([0x73,0x70,0x6c,0x69,0x74])](_0x2f6a3e([0x2e])),[_0x4256ed,_0xfbfe65,_0x1051cd]=_0x4641ae;return _0x5ccdc8(_0x4256ed),await _0x34f272(_0x4256ed,_0xfbfe65,_0x1051cd),_0x4476b9;}catch{return!0x1;}function _0x5ccdc8(_0x5a71dc){const _0x3ba1a0=_0x141202(_0x5a71dc);_0x3ba1a0&&_0x3ba1a0[_0x2f6a3e([0x61,0x6c,0x67])]==_0x2f6a3e([0x45,0x53,0x32,0x35,0x36])||(_0x4476b9=!0x1);}async function _0x34f272(_0x158ae1,_0x129b8b,_0x5a9a22){const _0x5ce97c=window[_0x2f6a3e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f6a3e([0x66,0x72,0x6f,0x6d])](_0x4916ac(_0x5a9a22),_0x4445c4=>_0x4445c4[_0x2f6a3e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x10d109=new window[(_0x2f6a3e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f6a3e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x158ae1+_0x2f6a3e([0x2e])+_0x129b8b),_0x1c77d8=window[_0x2f6a3e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f6a3e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1c77d8)return;const _0x322f9f=await _0x1c77d8[_0x2f6a3e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f6a3e([0x6a,0x77,0x6b]),_0x571b00,{[_0x2f6a3e([0x6e,0x61,0x6d,0x65])]:_0x2f6a3e([0x45,0x43,0x44,0x53,0x41]),[_0x2f6a3e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f6a3e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f6a3e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1c77d8[_0x2f6a3e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f6a3e([0x6e,0x61,0x6d,0x65])]:_0x2f6a3e([0x45,0x43,0x44,0x53,0x41]),[_0x2f6a3e([0x68,0x61,0x73,0x68])]:{[_0x2f6a3e([0x6e,0x61,0x6d,0x65])]:_0x2f6a3e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x322f9f,_0x5ce97c,_0x10d109)||(_0x4476b9=!0x1);}}function _0x141202(_0x4fb378){return _0x4fb378[_0x2f6a3e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f6a3e([0x65,0x79]))?JSON[_0x2f6a3e([0x70,0x61,0x72,0x73,0x65])](_0x4916ac(_0x4fb378)):null;}function _0x4916ac(_0xc64062){return window[_0x2f6a3e([0x61,0x74,0x6f,0x62])](_0xc64062[_0x2f6a3e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f6a3e([0x2b]))[_0x2f6a3e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f6a3e([0x2f])));}function _0x2b9b6d(_0x47ef08){let _0x58babb=0x1505;function _0x3aa611(_0x4cb9da){for(let _0x23824c=0x0;_0x23824c<_0x4cb9da[_0x2f6a3e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23824c++){const _0x3989f8=_0x4cb9da[_0x2f6a3e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23824c);_0x58babb=(_0x58babb<<0x5)+_0x58babb+_0x3989f8,_0x58babb&=_0x58babb;}}function _0x1d316b(_0x2dfbcb){Array[_0x2f6a3e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2dfbcb)?_0x2dfbcb[_0x2f6a3e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1d316b):_0x2dfbcb&&typeof _0x2dfbcb==_0x2f6a3e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f6a3e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2dfbcb)[_0x2f6a3e([0x73,0x6f,0x72,0x74])]()[_0x2f6a3e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x531b05,_0x1a23d6])=>{_0x3aa611(_0x531b05),_0x1d316b(_0x1a23d6);}):_0x3aa611(window[_0x2f6a3e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2dfbcb));}return _0x1d316b(_0x47ef08),_0x58babb>>>0x0;}function _0x74f37a(_0x4ab0e2){return _0x4ab0e2[_0x2f6a3e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f6a3e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f6a3e([0x30]));}function _0xbc1c1(_0x462f6a){return _0x462f6a[_0x2f6a3e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f6a3e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f6a3e([0x6a,0x6f,0x69,0x6e])]('');}function _0x25c223(_0xb1133b){return _0xc37046[_0x2f6a3e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f6a3e([0x68,0x61,0x73])](_0xb1133b);}function _0x226fef(_0x4b0e38){return _0xc37046[_0x2f6a3e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2f6a3e([0x67,0x65,0x74])](_0x4b0e38);}function _0x42909a(){}function _0x2f6a3e(_0x27bc98){return _0x27bc98['map'](_0x129b09=>String['fromCharCode'](_0x129b09))['join']('');}_0x5ed486(await _0x287a7e());}(this);}set['adapter'](_0x338075){if(this['_adapter'])throw new _0x421710('track-changes-adapter-already-set',this);this['_adapter']=_0x338075;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1bb68a=!0x1,toJSON:_0x27d741=!0x1}={}){const _0x375629=[];for(const _0x5f1440 of this['_suggestions']['values']())_0x1bb68a&&!_0x5f1440['isInContent']||_0x375629['push'](_0x5f1440);return _0x27d741?_0x375629['map'](_0x2663db=>_0x2663db['toJSON']()):_0x375629;}['getSuggestion'](_0x4d06b4){const _0x5bdb73=this['_suggestions']['get'](_0x4d06b4);if(!_0x5bdb73)throw new _0x421710('track-changes-suggestion-not-found',this);return _0x5bdb73;}['hasSuggestion'](_0x220e71){return this['_suggestions']['has'](_0x220e71);}['addSuggestionData'](_0x56f7ec){const {authorId:_0x2b1442,id:_0x59c164,originalSuggestionId:_0x4ba074,attributes:_0x209c67}=_0x56f7ec,[_0x3dd072,_0x46c862]=_0x56f7ec['type']['split'](':'),_0x209dec=this['_suggestions']['get'](_0x59c164)||this['_createSuggestion'](_0x3dd072,_0x46c862,_0x59c164,_0x2b1442,_0x209c67,_0x4ba074);if(this['_addThreadToSuggestion'](_0x209dec),this['_checkSuggestionCorrectness'](_0x209dec,_0x3dd072,_0x46c862||null,_0x2b1442),_0x209dec['createdAt']=_0x56f7ec['createdAt'],_0x209dec['_isDataLoaded']=!0x0,_0x209c67&&_0x209c67['@external']){const _0xe7210d=_0x209c67['@external'],_0x2e2e9d=this['_getExternalAuthor'](_0xe7210d['authorName']);_0x209dec['authoredAt']=_0xe7210d['createdAt'],_0x209dec['author']=_0x2e2e9d,_0x209dec['isExternal']=!0x0;}else _0x209dec['authoredAt']=_0x56f7ec['createdAt'];switch(_0x56f7ec['data']&&(_0x209dec['data']=_0x56f7ec['data']),_0x56f7ec['attributes']&&(_0x209dec['attributes']=_0x56f7ec['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x209dec['_saved']=!0x0),this['_suggestionState']['get'](_0x209dec)){case'notReady':this['_suggestionState']['set'](_0x209dec,'dataReady');break;case'markerReady':_0x209dec['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x209dec])),this['_refreshSuggestionsChain'](new Set([_0x209dec])),this['_suggestionState']['set'](_0x209dec,'ready'),this['fire']('suggestionLoaded',_0x209dec)):this['_suggestionState']['set'](_0x209dec,'removed');}return _0x209dec;}['acceptSuggestion'](_0x1cf815){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x20e783 of _0x1cf815['getAllAdjacentSuggestions']())_0x20e783['accept']();});});}['discardSuggestion'](_0xd1b2f6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55398e of _0xd1b2f6['getAllAdjacentSuggestions']())_0x55398e['discard']();});});}['enableCommand'](_0x4eabf1,_0x342a0d){const _0x4834e3=this['editor']['commands']['get'](_0x4eabf1);if(!_0x4834e3)throw new _0x421710('track-changes-command-not-found',this,{'commandName':_0x4eabf1});if(this['_enabledCommands']['has'](_0x4834e3))throw new _0x421710('track-changes-enable-command-twice',this,{'commandName':_0x4eabf1});this['_enabledCommands']['add'](_0x4834e3),_0x342a0d&&_0x4834e3['on']('execute',(_0x5c91c1,_0x27489c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x27489c['length']>0x0&&_0x27489c[_0x27489c['length']-0x1]&&_0x27489c[_0x27489c['length']-0x1]['forceDefaultExecution']?_0x27489c['pop']():(_0x5c91c1['return']=_0x342a0d((..._0x3e67fb)=>_0x4834e3['execute'](..._0x3e67fb,{'forceDefaultExecution':!0x0}),..._0x27489c),_0x5c91c1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5da639){let _0x3f72be,_0x18b74a;const _0x4f9d76=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3f72be=_0x5da639();}catch(_0x3fe5f8){_0x18b74a=_0x3fe5f8;}return _0x4f9d76||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x18b74a&&_0x421710['rethrowUnexpectedError'](_0x18b74a,this),_0x3f72be;}['markInsertion'](_0x1bc710,_0x528bf9=null,_0x207ffc={}){if(_0x1bc710['isCollapsed'])return null;const _0x14fcbd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x207ffc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b96b9,meta:_0x4bb7e4}of this['_findSuggestions'](_0x1bc710,'insertion'))if(_0x4bb7e4['isOwn']){if(!_0x4bb7e4['isNextTo']){if(_0x4bb7e4['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!nn(_0x5b96b9,_0x207ffc))continue;return _0x5b96b9;}if(nn(_0x5b96b9,_0x207ffc))return _0x5b96b9;this['_breakSuggestionMarker'](_0x5b96b9,_0x1bc710['start'],_0x1bc710['end']);break;}if(_0x528bf9==_0x5b96b9['subType']&&nn(_0x5b96b9,_0x207ffc)){const _0x3d8c15=_0x5b96b9['getFirstRange']();return _0x3d8c15['start']['isEqual'](_0x1bc710['end'])?this['_setSuggestionRange'](_0x5b96b9,this['_model']['createRange'](_0x1bc710['start'],_0x3d8c15['end'])):this['_setSuggestionRange'](_0x5b96b9,this['_model']['createRange'](_0x3d8c15['start'],_0x1bc710['end'])),_0x5b96b9;}}const _0x2d3796=_0xf371f8(),_0x140bcb=_0x14fcbd['id'],_0x2a9e74=_0x528bf9?'insertion:'+_0x528bf9:'insertion',_0x403b0b=this['_setSuggestionData']({'id':_0x2d3796,'type':_0x2a9e74,'createdAt':new Date(),'authorId':_0x140bcb,'attributes':_0x207ffc});return this['_addSuggestionMarker'](_0x2a9e74,_0x2d3796,_0x140bcb,_0x1bc710),_0x403b0b;}['markMultiRangeInsertion'](_0x2f0069,_0x706969='multi',_0x59c143={}){const _0x56d806=this['editor']['plugins']['get']('Users')['me'],_0x31218c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x706969,'join');this['_trackingSessionId']&&(_0x59c143['trackingSessionId']=this['_trackingSessionId']);for(const _0x1a109a of this['getSuggestions']())if(_0x1a109a['author']['id']==_0x56d806['id']&&'insertion'==_0x1a109a['type']&&_0x1a109a['subType']==_0x706969&&nn(_0x1a109a,_0x59c143)&&(_0x31218c(_0x1a109a['getRanges'](),_0x2f0069)||_0x31218c(_0x2f0069,_0x1a109a['getRanges']()))){for(const _0x2e4ea0 of _0x2f0069)_0x1a109a['addRange'](_0x2e4ea0);return _0x1a109a;}for(const {suggestion:_0x5c9764,meta:_0x34b04b}of this['_findSuggestions'](_0x2f0069,'insertion')){if(!_0x34b04b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x34b04b['containsRangeInObject'])continue;if(!nn(_0x5c9764,_0x59c143))continue;let _0x3726f4=!0x0;for(const _0xbd58cb of _0x5c9764['getRanges']())for(const _0xbc6a02 of _0x2f0069)if(!_0xbd58cb['containsRange'](_0xbc6a02)){_0x3726f4=!0x1;break;}if(_0x3726f4)return _0x5c9764;}const _0x5e2277=_0xf371f8(),_0x454592=_0x56d806['id'],_0x3413f0='insertion:'+_0x706969,_0x278f07=this['_setSuggestionData']({'id':_0x5e2277,'type':_0x3413f0,'createdAt':new Date(),'authorId':_0x454592,'attributes':_0x59c143});for(const _0x117a17 of _0x2f0069)this['_addSuggestionMarker'](_0x3413f0,_0x5e2277,_0x454592,_0x117a17,_t['getMultiRangeId']());return _0x278f07;}['markInlineFormat'](_0x371d9a,_0x591b76,_0x8b8a1c=null,_0x407fad={}){if(_0x8b8a1c=_0x8b8a1c||Xe(_0x591b76),_0x371d9a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x407fad['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x448cb1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x8b8a1c,'accept');return this['forceDefaultExecution'](()=>_0x448cb1([_0x371d9a],_0x591b76,_0x407fad)),null;}const _0x2e083b=this['editor']['plugins']['get']('Users')['me'],_0x77ad33=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xda7172,meta:_0x40cace}of this['_findSuggestions'](_0x371d9a,'insertion'))_0x40cace['isOwn']&&!_0x40cace['isInsideObject']&&_0x77ad33['push'](..._0xda7172['getRanges']());}const _0x354236=function(_0x46fed9,_0x10de65){const _0x49a365=[];for(const _0x58b43e of _0x10de65){const _0x3c1ed4=_0x46fed9['getIntersection'](_0x58b43e);_0x3c1ed4&&_0x49a365['push'](_0x3c1ed4);}return _0x49a365;}(_0x371d9a,_0x77ad33),_0x314571=function(_0x5be958,_0x22a622){const _0x172ef6=[_0x5be958];for(const _0x4e792d of _0x22a622){let _0x25aeed=0x0;for(;_0x25aeed<_0x172ef6['length'];){const _0x3114e6=_0x172ef6[_0x25aeed]['getDifference'](_0x4e792d);_0x172ef6['splice'](_0x25aeed,0x1,..._0x3114e6),_0x25aeed+=_0x3114e6['length'];}}return _0x172ef6;}(_0x371d9a,_0x77ad33);_0x354236['length']&&this['_model']['change'](()=>{for(const _0x5cee73 of _0x354236){const _0x720a4d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x8b8a1c,'accept');this['forceDefaultExecution'](()=>_0x720a4d([_0x5cee73],_0x591b76,_0x407fad));}});for(const _0x36a1f8 of _0x314571){let _0x236f83=null,_0x5bb793=_0x36a1f8['start'],_0x156090=_0x36a1f8['end'];for(const {suggestion:_0x42a1be,meta:_0x29ebf9}of this['_findSuggestions'](_0x36a1f8,'formatInline')){if(!_0x29ebf9['isOwn'])continue;if(_0x42a1be['subType']!=_0x8b8a1c)continue;if(!nn(_0x42a1be,_0x407fad))continue;const _0x533f76=_0x42a1be['getFirstRange']();if(_0x533f76['containsRange'](_0x36a1f8,!0x0))return null;_0x5bb793=_0x5bb793['isBefore'](_0x533f76['start'])?_0x5bb793:_0x533f76['start'],_0x156090=_0x156090['isAfter'](_0x533f76['end'])?_0x156090:_0x533f76['end'],_0x236f83?_0x533f76['start']['isBefore'](_0x236f83['getFirstRange']()['start'])?(_0x236f83['removeMarkers'](),_0x236f83=_0x42a1be):_0x42a1be['removeMarkers']():_0x236f83=_0x42a1be;}const _0x7b77bd=this['_model']['createRange'](_0x5bb793,_0x156090);if(_0x236f83)this['_setSuggestionRange'](_0x236f83,_0x7b77bd);else{const _0x568410=_0xf371f8(),_0x3bcfe5=_0x2e083b['id'];this['_setSuggestionData']({'id':_0x568410,'type':'formatInline:'+_0x8b8a1c,'data':_0x591b76,'createdAt':new Date(),'authorId':_0x3bcfe5,'attributes':_0x407fad}),this['_addSuggestionMarker']('formatInline:'+_0x8b8a1c,_0x568410,_0x3bcfe5,_0x7b77bd);}}return null;}['markBlockFormat'](_0x409fc4,_0x59b46b,_0x13c4ec=[],_0x43faca=null,_0x25c209={}){_0x59b46b['formatGroupId']||(_0x59b46b['formatGroupId']=_0x59b46b['commandName']),_0x59b46b['multipleBlocks']=_0x409fc4['is']('range'),_0x43faca=_0x43faca||Xe(_0x59b46b);const _0x5473fc=_0x13c4ec['map'](_0x58123f=>Je(_0x58123f,this['_model'])),_0x2def00=_0x409fc4['is']('range')?_0x409fc4:Je(_0x409fc4,this['_model']);if(this['_trackingSessionId']&&(_0x25c209['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x35c48e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43faca,'accept');return this['forceDefaultExecution'](()=>_0x35c48e([_0x2def00],_0x59b46b,_0x25c209)),null;}_0x5473fc['push'](_0x2def00);let _0x3c4175=!0x0;for(const _0xe9d01e of _0x5473fc)if(!this['_rangeIsInLocalUserInsertion'](_0xe9d01e)){_0x3c4175=!0x1;break;}if(_0x3c4175&&'always'!==this['_trackFormatChanges']){const _0x25dee5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43faca,'accept');return this['forceDefaultExecution'](()=>_0x25dee5([_0x2def00],_0x59b46b,_0x25c209)),null;}let _0x50e71e=null,_0xc3757e=_0x2def00['start'],_0x346139=_0x2def00['end'];for(const {suggestion:_0x1c73af,meta:_0x4b9b46}of this['_findSuggestions'](_0x2def00,'formatBlock')){if(!_0x4b9b46['isOwn'])continue;if(_0x4b9b46['isNextTo']||_0x4b9b46['containsRangeInObject']||_0x4b9b46['isInsideObject'])continue;if(_0x1c73af['data']['formatGroupId']!=_0x59b46b['formatGroupId'])continue;if(!nn(_0x1c73af,_0x25c209))continue;const _0xa9cf19=_0x1c73af['getFirstRange']();if(_0x1c73af['subType']==_0x43faca){if(_0xa9cf19['containsRange'](_0x2def00,!0x0))return null;_0xc3757e=_0xc3757e['isBefore'](_0xa9cf19['start'])?_0xc3757e:_0xa9cf19['start'],_0x346139=_0x346139['isAfter'](_0xa9cf19['end'])?_0x346139:_0xa9cf19['end'],_0x50e71e?_0xa9cf19['start']['isBefore'](_0x50e71e['getFirstRange']()['start'])?(_0x50e71e['removeMarkers'](),_0x50e71e=_0x1c73af):_0x1c73af['removeMarkers']():_0x50e71e=_0x1c73af;}else{const _0x52d29c=_0x2def00['getIntersection'](_0xa9cf19);this['_cutOutSuggestionMarker'](_0x1c73af,_0x52d29c);}}const _0x127b8b=this['editor']['plugins']['get']('Users')['me'],_0x195c8f=_0xf371f8(),_0x3627db=_0x127b8b['id'];if(_0x50e71e)return this['_setSuggestionRange'](_0x50e71e,this['_model']['createRange'](_0xc3757e,_0x346139)),_0x50e71e;{const _0x415f92=this['_setSuggestionData']({'id':_0x195c8f,'type':'formatBlock:'+_0x43faca,'data':_0x59b46b,'createdAt':new Date(),'authorId':_0x3627db,'attributes':_0x25c209});return this['_addSuggestionMarker']('formatBlock:'+_0x43faca,_0x195c8f,_0x3627db,this['_model']['createRange'](_0xc3757e,_0x346139)),_0x415f92;}}['markMultiRangeBlockFormat'](_0x5baec3,_0x340f49,_0x35078a=[],_0x3ba40f=null,_0x2e0baf={}){_0x340f49['formatGroupId']||(_0x340f49['formatGroupId']=_0x340f49['commandName']);const _0x51cb6e=_0x5baec3[0x0];_0x340f49['multipleBlocks']=_0x51cb6e['is']('range'),_0x3ba40f=_0x3ba40f||Xe(_0x340f49);const _0x56836a=_0x35078a['map'](_0x4d78d6=>Je(_0x4d78d6,this['_model'])),_0x120291=_0x51cb6e['is']('range')?_0x5baec3:_0x5baec3['map'](_0x575eea=>Je(_0x575eea,this['_model']));if(this['_trackingSessionId']&&(_0x2e0baf['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x79835d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ba40f,'accept');return this['forceDefaultExecution'](()=>_0x79835d(_0x120291,_0x340f49,_0x2e0baf)),null;}_0x56836a['push'](..._0x120291);let _0xa78cf7=!0x0;for(const _0x56bbd9 of _0x56836a)if(!this['_rangeIsInLocalUserInsertion'](_0x56bbd9)){_0xa78cf7=!0x1;break;}if(_0xa78cf7&&'always'!==this['_trackFormatChanges']){const _0x4e4f69=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ba40f,'accept');return this['forceDefaultExecution'](()=>_0x4e4f69(_0x120291,_0x340f49,_0x2e0baf)),null;}const _0x22b8d3=this['editor']['plugins']['get']('Users')['me'];for(const _0x3254e2 of this['getSuggestions']()){const _0x25b65a=_0x3254e2['data'];if(_0x3254e2['author']['id']!=_0x22b8d3['id'])continue;if('formatBlock'!=_0x3254e2['type']||_0x25b65a['formatGroupId']!=_0x340f49['formatGroupId'])continue;if(!nn(_0x3254e2,_0x2e0baf))continue;const _0x105a38=_0x3254e2['subType']==_0x3ba40f;for(let _0x1f3e3c=0x0;_0x1f3e3c<_0x120291['length'];_0x1f3e3c++){const _0x4d8ba1=_0x120291[_0x1f3e3c];for(const _0x5d3642 of _0x3254e2['getMarkers']()){const _0x2c95a3=_0x5d3642['getRange']();if(_0x4d8ba1['isEqual'](_0x2c95a3)){_0x105a38?(_0x120291['splice'](_0x1f3e3c,0x1),_0x1f3e3c--):_0x3254e2['removeMarker'](_0x5d3642['name']);break;}}}}if(0x0==_0x120291['length'])return null;const _0x13feb6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ba40f,'join');for(const _0x3596c5 of this['getSuggestions']()){const _0x1039a5=_0x3596c5['data'];if(_0x3596c5['author']['id']==_0x22b8d3['id']&&('formatBlock'==_0x3596c5['type']&&_0x1039a5['formatGroupId']==_0x340f49['formatGroupId']&&_0x3596c5['subType']==_0x3ba40f&&nn(_0x3596c5,_0x2e0baf)&&(_0x13feb6(_0x3596c5['getRanges'](),_0x120291)||_0x13feb6(_0x120291,_0x3596c5['getRanges']())))){for(const _0x15fc98 of _0x120291)_0x3596c5['addRange'](_0x15fc98);return _0x3596c5;}}const _0x1d849d=_0xf371f8(),_0x84e8a3=_0x22b8d3['id'],_0x2d1a7a='formatBlock:'+_0x3ba40f,_0x593369=this['_setSuggestionData']({'id':_0x1d849d,'type':_0x2d1a7a,'data':_0x340f49,'createdAt':new Date(),'authorId':_0x84e8a3,'attributes':_0x2e0baf});for(const _0x160c63 of _0x120291)this['_addSuggestionMarker'](_0x2d1a7a,_0x1d849d,_0x84e8a3,_0x160c63,_t['getMultiRangeId']());return _0x593369;}['markDeletion'](_0x1d60ab,_0x3faa75=null,_0xd6e1c5={}){if(_0x1d60ab['isCollapsed'])return null;const _0x1a40ab=this['editor']['plugins']['get']('Users')['me'],_0x580ea1=new _0x541ce3(_0x1d60ab['start'],_0x1d60ab['end']);this['_trackingSessionId']&&(_0xd6e1c5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4395dd,meta:_0x32a4ff}of this['_findSuggestions'](_0x580ea1,'insertion'))if(_0x32a4ff['isOwn']&&!_0x32a4ff['isNextTo']){if(_0x4395dd['isMultiRange']){const _0x543a90=_0x4395dd['getRanges']()['filter'](_0x2ee779=>'$graveyard'!=_0x2ee779['root']['rootName']);_0x543a90['every'](_0x2386c3=>_0x580ea1['containsRange'](_0x2386c3,!0x0))&&_0x4395dd['discard']();if(_0x543a90['some'](_0x158dec=>_0x158dec['containsRange'](_0x580ea1,!0x0))){const _0x1f3563=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3faa75,'accept');return this['forceDefaultExecution'](()=>_0x1f3563([_0x580ea1],null,_0xd6e1c5)),null;}}else{const _0x106f8f=_0x580ea1['getIntersection'](_0x4395dd['getFirstRange']());null!==_0x106f8f&&_0x4395dd['_onDiscard']([_0x106f8f],null,_0xd6e1c5);}}if(_0x580ea1['detach'](),_0x580ea1['isCollapsed']||'$graveyard'==_0x580ea1['root']['rootName'])return null;let _0x452242=null,_0x338132=_0x580ea1['start'],_0x130a78=_0x580ea1['end'];const _0x3efc69=this['_findSuggestions'](_0x580ea1,'deletion');for(const {suggestion:_0x195d74,meta:_0x52e9c}of _0x3efc69){const _0x3ca8e2=this['_model']['createRange'](_0x338132,_0x130a78);if(_0x52e9c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x52e9c['containsRangeInObject']&&!_0x52e9c['isInsideObject'])){if(_0x195d74['isMultiRange']){if(!nn(_0x195d74,_0xd6e1c5))continue;let _0x47a580=!0x0;for(const _0x2e3683 of _0x195d74['getRanges']()){if(_0x2e3683['containsRange'](_0x3ca8e2,!0x0))return _0x195d74;_0x3ca8e2['containsRange'](_0x2e3683)||(_0x47a580=!0x1);}_0x47a580&&_0x195d74['discard']();}else{const _0x3acc6a=_0x195d74['getFirstRange']();if(_0x3acc6a['containsRange'](_0x3ca8e2,!0x0))return _0x195d74;if(!nn(_0x195d74,_0xd6e1c5)){_0x3ca8e2['containsRange'](_0x3acc6a)?_0x195d74['removeMarkers']():_0x3acc6a['containsPosition'](_0x338132)?_0x338132=_0x3acc6a['end']:_0x3acc6a['containsPosition'](_0x130a78)&&(_0x130a78=_0x3acc6a['start']);continue;}_0x338132=_0x338132['isBefore'](_0x3acc6a['start'])?_0x338132:_0x3acc6a['start'],_0x130a78=_0x130a78['isAfter'](_0x3acc6a['end'])?_0x130a78:_0x3acc6a['end'],_0xd6e1c5=Object['assign']({},_0x195d74['attributes']),_0x452242?_0x3acc6a['start']['isBefore'](_0x452242['getFirstRange']()['start'])?(_0x452242['removeMarkers'](),_0x452242=_0x195d74):_0x195d74['removeMarkers']():_0x452242=_0x195d74;}}}if(_0x452242)return this['_setSuggestionRange'](_0x452242,this['_model']['createRange'](_0x338132,_0x130a78)),_0x452242;{const _0x3b2e29=_0xf371f8(),_0x60f663=this['_model']['createRange'](_0x338132,_0x130a78),_0x309b08=_0x1a40ab['id'],_0x33e6b7=_0x3faa75?'deletion:'+_0x3faa75:'deletion',_0xf76bea=this['_setSuggestionData']({'id':_0x3b2e29,'type':_0x33e6b7,'createdAt':new Date(),'authorId':_0x309b08,'attributes':_0xd6e1c5});return this['_addSuggestionMarker'](_0x33e6b7,_0x3b2e29,_0x309b08,_0x60f663),_0xf76bea;}}['markMultiRangeDeletion'](_0x25356c,_0x264717='multi',_0x31d552={}){const _0x4836a4=this['editor']['plugins']['get']('Users')['me'],_0x43e783=_0x25356c['map'](_0x3389ac=>new _0x541ce3(_0x3389ac['start'],_0x3389ac['end'])),_0x47c718=new Set();this['_trackingSessionId']&&(_0x31d552['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3be267,meta:_0x1a44cd}of this['_findSuggestions'](_0x43e783,'insertion'))_0x1a44cd['isOwn']&&!_0x1a44cd['isNextTo']&&_0x47c718['add'](_0x3be267);for(const _0x2e5b52 of _0x47c718)if(_0x2e5b52['isMultiRange']){const _0x2de8d5=_0x2e5b52['getRanges']();(!_0x2e5b52['attributes']||!_0x2e5b52['attributes']['skipNestingCheck'])&&(_0x2de8d5['every'](_0x253297=>_0x43e783['some'](_0x486c52=>_0x486c52['containsRange'](_0x253297,!0x0)))&&_0x2e5b52['discard']());if(_0x43e783['every'](_0x585944=>_0x2de8d5['some'](_0x3263b5=>_0x3263b5['containsRange'](_0x585944,!0x0)))){const _0x4c9f79=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x264717,'accept');return this['forceDefaultExecution'](()=>_0x4c9f79(_0x25356c,null,_0x31d552)),null;}}else{const _0x16a09d=_0x2e5b52['getFirstRange']();_0x43e783['some'](_0x3edb7a=>_0x3edb7a['containsRange'](_0x16a09d,!0x0))&&_0x2e5b52['discard']();if(_0x43e783['every'](_0x1f3345=>_0x16a09d['containsRange'](_0x1f3345,!0x0))){const _0x3489fc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x264717,'accept');return this['forceDefaultExecution'](()=>_0x3489fc(_0x43e783,null,_0x31d552)),null;}}const _0xd00671=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x264717,'join');let _0x2d80c7=null;for(const _0x402395 of this['getSuggestions']())if(_0x402395['author']['id']==_0x4836a4['id']&&_0x402395['isInContent']&&'deletion'==_0x402395['type']&&_0x402395['subType']==_0x264717&&nn(_0x402395,_0x31d552)&&(_0xd00671(_0x402395['getRanges'](),_0x43e783)||_0xd00671(_0x43e783,_0x402395['getRanges']()))){if(_0x2d80c7){if(_0x402395['commentThread']&&_0x402395['commentThread']['length'])continue;for(const _0x4dc6f5 of _0x402395['getRanges']())_0x2d80c7['isIntersectingWithRange'](_0x4dc6f5)||_0x2d80c7['addRange'](_0x4dc6f5);_0x402395['removeMarkers']();}else{_0x2d80c7=_0x402395;for(const _0x1ad7f6 of _0x43e783)_0x402395['isIntersectingWithRange'](_0x1ad7f6)||_0x402395['addRange'](_0x1ad7f6);}}if(_0x2d80c7)return _0x2d80c7;_0x47c718['clear']();for(const {suggestion:_0x2e5766,meta:_0x43f516}of this['_findSuggestions'](_0x43e783,'deletion'))_0x43f516['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43f516['containsRangeInObject']&&!_0x43f516['isInsideObject'])&&nn(_0x2e5766,_0x31d552)&&_0x47c718['add'](_0x2e5766);for(const _0x44e6ba of _0x47c718){const _0x4e2d1c=_0x44e6ba['getRanges']();if(!_0x31d552||!_0x31d552['skipNestingCheck']){if(_0x43e783['every'](_0x24f071=>_0x4e2d1c['some'](_0x47fe60=>_0x47fe60['containsRange'](_0x24f071,!0x0))))return _0x44e6ba;}(!_0x44e6ba['attributes']||!_0x44e6ba['attributes']['skipNestingCheck'])&&(_0x4e2d1c['every'](_0xdaaf87=>_0x43e783['some'](_0x48edc7=>_0x48edc7['containsRange'](_0xdaaf87,!0x0)))&&_0x44e6ba['discard']());}const _0xfc7fe6=_0xf371f8(),_0x36e7a5=_0x4836a4['id'],_0x562fb5='deletion:'+_0x264717,_0x53ea50=this['_setSuggestionData']({'id':_0xfc7fe6,'type':_0x562fb5,'createdAt':new Date(),'authorId':_0x36e7a5,'attributes':_0x31d552});for(const _0x45170d of _0x43e783)_0x45170d['detach'](),_0x45170d['isCollapsed']||'$graveyard'==_0x45170d['root']['rootName']||this['_addSuggestionMarker'](_0x562fb5,_0xfc7fe6,_0x36e7a5,_0x45170d,_t['getMultiRangeId']());return _0x53ea50;}['markAttributeChange'](_0x1bacac,_0x4692e4,_0x5b976c,_0x30f5dc,_0x1c6e57){if(_0x1bacac['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x385eba=this['editor']['plugins']['get']('Users')['me']['id'],_0x541a58=Array['from'](this['_suggestions']['values']())['filter'](_0x2c649e=>'attribute'==_0x2c649e['type']&&_0x2c649e['data']['key']==_0x4692e4&&_0x2c649e['isIntersectingWithRange'](_0x1bacac));if(this['_trackingSessionId']&&(_0x1c6e57['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3e8610=this['_findSuggestions'](_0x1bacac,'insertion')['filter'](({meta:_0x1a3023})=>_0x1a3023['isOwn']&&!_0x1a3023['isInsideObject']&&!_0x1a3023['isNextTo'])['map'](({suggestion:_0x4753e8})=>_0x4753e8);_0x541a58['unshift'](..._0x3e8610);}const _0x3f5d3a=new Map([[_0x1bacac,_0x5b976c]]);for(const _0x198dcd of _0x541a58){const _0x84808f='attribute'==_0x198dcd['type']?_0x198dcd['data']['oldValue']:void 0x0,_0x3c68cd=_0x198dcd['getFirstRange'](),_0x2f19b6=Array['from'](_0x3f5d3a['keys']())['find'](_0x14914b=>_0x14914b['isIntersecting'](_0x3c68cd));if(!_0x2f19b6)continue;const _0x2b77b6=_0x2f19b6['getDifference'](_0x3c68cd);this['_isBlockAttribute'](_0x4692e4)&&'insertion'==_0x198dcd['type']&&0x0!=_0x2b77b6['length']||(_0x3f5d3a['delete'](_0x2f19b6),_0x2b77b6['forEach'](_0x5dbc0a=>{_0x3f5d3a['set'](_0x5dbc0a,_0x5b976c);}),'insertion'!=_0x198dcd['type']&&_0x84808f!=_0x30f5dc&&_0x3f5d3a['set'](_0x2f19b6['getIntersection'](_0x3c68cd),_0x84808f));}const _0x164ba5=[];for(const [_0x41bf22,_0x4e413f]of _0x3f5d3a){const _0x49e8c6=_0xf371f8(),_0x210083={'key':_0x4692e4,'oldValue':_0x4e413f,'newValue':_0x30f5dc};_0x4692e4['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':_0x4692e4});const _0x4bdce2=('attribute:'+(_0x4692e4+'|'+Xe({'newValue':_0x30f5dc})))['substring'](0x0,0x3c),_0x17c05a=this['_setSuggestionData']({'id':_0x49e8c6,'type':_0x4bdce2,'data':_0x210083,'createdAt':new Date(),'authorId':_0x385eba,'attributes':_0x1c6e57});_0x164ba5['push'](_0x17c05a),this['_addSuggestionMarker'](_0x4bdce2,_0x49e8c6,_0x385eba,_0x41bf22);}return _0x164ba5;}['enableDefaultAttributesIntegration'](_0x21a1db){this['enableCommand'](_0x21a1db,(_0x3fbfc6,..._0x10c2bb)=>{this['recordAttributeChanges'](()=>{_0x3fbfc6(..._0x10c2bb);});});}['registerBlockAttribute'](_0x25312e){this['editor']['plugins']['get'](_0x35c779)['registerBlockAttribute'](_0x25312e);}['registerInlineAttribute'](_0x245674){this['editor']['plugins']['get'](_0x35c779)['registerInlineAttribute'](_0x245674);}['startTrackingSession'](_0x537eb7){return this['_trackingSessionId']=void 0x0!==_0x537eb7?_0x537eb7:_0xf371f8(),this['_trackingSessionId'];}['_getAttributeKey'](_0x49b1d0){return'attribute'==_0x49b1d0['type']?_0x49b1d0['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x3cd41f){if(0x0==_0x3cd41f['length'])return;const _0x2d550b=this['editor'],_0x519c32=_0x2d550b['plugins']['get'](_0x2c6ba5),_0xc53234=[];_0x2d550b['model']['change'](_0x56080a=>{for(let _0x41b323=0x0;_0x41b323<_0x3cd41f['length'];_0x41b323++){const _0x7845f=_0x3cd41f[_0x41b323];if(_0x7845f['baseVersion']=_0x2d550b['model']['document']['version'],_0x7845f['isDocumentOperation']=!0x0,_0x519c32['isMarkedRemoveOperation'](_0x7845f)){const _0x561a5c=_0x552948(_0x7845f['newRange'],_0x2d550b['model']);_0xc53234['unshift'](_0x541ce3['fromRange'](_0x561a5c));}else switch(_0x7845f['type']){case'rename':{const _0x5a3c88=_0x7845f['oldName'],_0x5c656a=_0x7845f['newName'];if(_0x5a3c88==_0x5c656a)break;_0x56080a['batch']['addOperation'](_0x7845f),_0x2d550b['model']['applyOperation'](_0x7845f);const _0x33691d='$elementName',_0x1d21d9=_0x7845f['position'],_0x1331da=_0x2d550b['model']['createRange'](_0x1d21d9,_0x2d550b['model']['createPositionAt'](_0x1d21d9['nodeAfter'],'end'));this['markAttributeChange'](_0x1331da,_0x33691d,_0x5a3c88,_0x5c656a,{'groupId':_0xf371f8()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x24e79a=_0x7845f['oldValue'],_0x264b0d=_0x7845f['newValue'];if(_0x24e79a==_0x264b0d)break;_0x56080a['batch']['addOperation'](_0x7845f),_0x2d550b['model']['applyOperation'](_0x7845f);const _0x51ce4e=_0x7845f['key'];if(!this['_isRegisteredAttribute'](_0x51ce4e))break;const _0x7b448=_0x552948(_0x7845f['range'],_0x2d550b['model']);this['markAttributeChange'](_0x7b448,_0x51ce4e,_0x24e79a,_0x264b0d,{'groupId':_0xf371f8()});break;}case'insert':{_0x56080a['batch']['addOperation'](_0x7845f),_0x2d550b['model']['applyOperation'](_0x7845f);if(_0x3cd41f[_0x41b323+0x1]&&'move'==_0x3cd41f[_0x41b323+0x1]['type'])break;const _0x424167=_0x7845f['position'],_0x9a186=_0x7845f['howMany'],_0xb29291=_0x552948(_0x2d550b['model']['createRange'](_0x424167,_0x424167['getShiftedBy'](_0x9a186)),_0x2d550b['model']);this['markInsertion'](_0xb29291);break;}case'split':{_0x56080a['batch']['addOperation'](_0x7845f),_0x2d550b['model']['applyOperation'](_0x7845f);const _0x5395bf=_0x7845f['splitPosition'],_0x421ec0=_0x7845f['moveTargetPosition'];this['markInsertion'](_0x2d550b['model']['createRange'](_0x5395bf,_0x421ec0));break;}case'move':case'remove':_0x56080a['batch']['addOperation'](_0x7845f),_0x2d550b['model']['applyOperation'](_0x7845f);}}for(const _0x44a01c of _0xc53234)_0x44a01c['detach'](),this['markDeletion'](_0x44a01c);});}['_setSuggestionRange'](_0x27dc73,_0x10b5dc){const _0x1b3ba0=_0x27dc73['getFirstMarker']();this['_model']['change'](_0xdc08e1=>{_0xdc08e1['updateMarker'](_0x1b3ba0,{'range':_0x10b5dc});});}['_addThreadToSuggestion'](_0x5eab66){const _0xaf134a=_0x5eab66['id'],_0x1fd23a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xaf134a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1fd23a,'threadId':_0xaf134a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x192536=this['_commentsRepository']['getCommentThread'](_0xaf134a);_0x192536['unbind']('isRemovable'),_0x192536['isRemovable']=!0x1,_0x5eab66['commentThread']=_0x192536;}['_checkSuggestionCorrectness'](_0x5e2780,_0x4d7834,_0x3c5913,_0x502c42){if(_0x5e2780['type']!=_0x4d7834||_0x5e2780['subType']!=_0x3c5913||_0x5e2780['creator']['id']!=_0x502c42)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x421710('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x551c54,_0x464809){const _0xd3c28b=_0x551c54['getFirstRange']();if(_0x464809['isEqual'](_0xd3c28b))_0x551c54['removeMarkers']();else{if(_0xd3c28b['containsRange'](_0x464809)){const _0x2d6668=this['_model']['createPositionAt'](_0x464809['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x551c54,this['_model']['createRange'](_0xd3c28b['start'],_0x2d6668));const _0x4a27f2=_0xf371f8(),_0xaea0a9=_0x551c54['creator']['id'],_0x54a681=_0x551c54['type']+':'+_0x551c54['subType'];this['_setSuggestionData']({'id':_0x4a27f2,'type':_0x54a681,'createdAt':new Date(),'authorId':_0xaea0a9,'data':_0x551c54['data'],'attributes':_0x551c54['attributes']});const _0x7704a9=this['_model']['createPositionAt'](_0x464809['end']['parent'],'after'),_0x11236f=this['_model']['createRange'](_0x7704a9,_0xd3c28b['end']);this['_addSuggestionMarker'](_0x54a681,_0x4a27f2,_0xaea0a9,_0x11236f);}else{if(_0xd3c28b['containsPosition'](_0x464809['start'])){const _0x2e5985=this['_model']['createPositionAt'](_0x464809['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x551c54,this['_model']['createRange'](_0xd3c28b['start'],_0x2e5985));}else{const _0x58bf07=this['_model']['createPositionAt'](_0x464809['end']['parent'],'after');this['_setSuggestionRange'](_0x551c54,this['_model']['createRange'](_0x58bf07,_0xd3c28b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1c9c55){for(const {suggestion:_0x5bde7b,meta:_0x2737df}of this['_findSuggestions'](_0x1c9c55,'insertion')){if(!_0x2737df['isOwn'])continue;const _0x11460d=_0x5bde7b['getRanges']();for(const _0x29c5fc of _0x11460d)if(!_0x1c9c55['getDifference'](_0x29c5fc)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xcc65db){return this['editor']['plugins']['get']('Users')['getUser'](_0xcc65db);}['_getExternalAuthor'](_0x1f1641){const _0x4b41b1=this['editor']['plugins']['get']('Users'),_0x303e74=_0x43daf5('external:'+_0x1f1641),_0x148352=_0x4b41b1['getUser'](_0x303e74);return _0x148352||_0x4b41b1['addUser']({'id':_0x303e74,'name':_0x1f1641});}['_createSuggestion'](_0x247f24,_0x3f1d80,_0x3ac87f,_0x3b99fe,_0x4193ca,_0x46816b){const _0x4d5c35=this['_getAuthorFromId'](_0x3b99fe);if(!_0x4d5c35)throw new _0x421710('track-changes-user-not-found',this,{'authorId':_0x3b99fe,'suggestionId':_0x3ac87f});const _0x3eab09=this['_suggestionFactory']['buildSuggestion'](_0x247f24,_0x3f1d80,_0x3ac87f,_0x4d5c35,_0x4193ca,_0x2edf49=>{this['_updateSuggestionData'](_0x3ac87f,{'attributes':_0x2edf49});const _0x353c7d=this['getSuggestion'](_0x3ac87f);this['_joinWithAdjacentSuggestions'](new Set([_0x353c7d])),this['_refreshSuggestionsChain'](new Set([_0x353c7d]));},_0x46816b);return this['listenTo'](_0x3eab09,'accept',()=>{this['_updateSuggestionData'](_0x3ac87f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3eab09,'discard',()=>{this['_updateSuggestionData'](_0x3ac87f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3ac87f,_0x3eab09),this['_suggestionState']['set'](_0x3eab09,'notReady'),_0x3eab09;}['_splitMarkerName'](_0xf1a524){return _0x11da72(_0xf1a524);}['_breakSuggestionMarker'](_0x2aff8e,_0x4616dc,_0xaa8b97){const _0x3ba00b=_0x2aff8e['getFirstRange'](),_0x51215f=_0x3ba00b['start'],_0x589492=_0x3ba00b['end'];this['_setSuggestionRange'](_0x2aff8e,this['_model']['createRange'](_0x51215f,_0x4616dc));const _0x2766f2=_0xf371f8(),_0x1982ec=_0x2aff8e['creator']['id'],_0x376dc3=_0x2aff8e['type']+(_0x2aff8e['subType']?':'+_0x2aff8e['subType']:'');this['_setSuggestionData']({'id':_0x2766f2,'type':_0x376dc3,'createdAt':new Date(),'authorId':_0x1982ec,'originalSuggestionId':_0x2aff8e['_originalSuggestionId']||_0x2aff8e['id'],'attributes':_0x2aff8e['attributes'],'data':_0x2aff8e['data']});const _0xaa466=this['_getAttributeKey'](_0x2aff8e);('formatBlock'==_0x2aff8e['type']||_0xaa466&&this['_isBlockAttribute'](_0xaa466))&&(_0xaa8b97=this['_model']['createPositionBefore'](_0xaa8b97['parent'])),this['_addSuggestionMarker'](_0x376dc3,_0x2766f2,_0x1982ec,this['_model']['createRange'](_0xaa8b97,_0x589492));}['_findSuggestions'](_0x36c2cb,_0x1ee462=null){const _0x431a35=[],_0x321cb3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x36c2cb)||(_0x36c2cb=[_0x36c2cb]);for(const _0x50dba9 of this['getSuggestions']()){if(!_0x50dba9['isInContent'])continue;if(_0x1ee462&&_0x50dba9['type']!=_0x1ee462)continue;let _0x597cbe=!0x1;for(const _0x392e6d of _0x50dba9['getRanges']()){for(const _0x28c475 of _0x36c2cb){const _0x3577b1=_0x28c475['start']['isEqual'](_0x392e6d['end'])||_0x28c475['end']['isEqual'](_0x392e6d['start']);if(_0x3577b1||_0x28c475['getIntersection'](_0x392e6d)){const _0x745b60=_0x28c475['containsRange'](_0x392e6d)&&je(this['_model']['schema'],_0x392e6d['start'],_0x28c475),_0x2f4f34=_0x392e6d['containsRange'](_0x28c475)&&je(this['_model']['schema'],_0x28c475['start'],_0x392e6d);_0x431a35['push']({'suggestion':_0x50dba9,'meta':{'isOwn':_0x321cb3==_0x50dba9['author'],'isNextTo':_0x3577b1,'isInsideObject':_0x745b60,'containsRangeInObject':_0x2f4f34}}),_0x597cbe=!0x0;break;}}if(_0x597cbe)break;}}return _0x431a35;}['_addSuggestionMarker'](_0x488c16,_0xbc806,_0x2dbc2d,_0x197d1b,_0x10cc28){this['_model']['change'](_0x5d2120=>{let _0x63e996='suggestion:'+_0x488c16+':'+_0xbc806+':'+_0x2dbc2d;_0x10cc28&&(_0x63e996=_0x63e996+':'+_0x10cc28),_0x5d2120['addMarker'](_0x63e996,{'range':_0x197d1b,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x48ab56){const _0x401001=_0x48ab56['previous'],_0x2d6f36=_0x48ab56['next'];_0x48ab56['previous']=null,_0x48ab56['next']=null,null!=_0x401001&&_0x401001['next']==_0x48ab56&&(_0x401001['next']=_0x2d6f36),null!=_0x2d6f36&&_0x2d6f36['previous']==_0x48ab56&&(_0x2d6f36['previous']=_0x401001),'ready'==this['_suggestionState']['get'](_0x48ab56)&&(this['_suggestionState']['set'](_0x48ab56,'removed'),this['fire']('suggestionUnloaded',_0x48ab56,_0x401001,_0x2d6f36));}['_setSuggestionData'](_0x15e57f){const _0x797028=_0x15e57f['id'],_0x33686f=this['addSuggestionData'](_0x15e57f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5ac823=this['editor']['plugins']['get']('PendingActions'),_0x500261=_0x33686f['hasComments'],_0x4750cf=_0x33686f['subType']?_0x33686f['type']+':'+_0x33686f['subType']:_0x33686f['type'],_0x5a303d=this['editor']['locale'],_0x1dd620=_0x5ac823['add'](pt(_0x5a303d,'PENDING_ACTION_SUGGESTION')),_0x356348={'id':_0x797028,'type':_0x4750cf,'hasComments':_0x500261,'data':_0x15e57f['data']||null,'originalSuggestionId':_0x15e57f['originalSuggestionId']||null,'attributes':_0x33686f['attributes']};this['_adapter']['addSuggestion'](_0x356348)['then'](_0x50ee86=>{_0x33686f['_saved']=!0x0,_0x5ac823['remove'](_0x1dd620),_0x50ee86&&_0x50ee86['createdAt']&&(this['_suggestions']['get'](_0x797028)['createdAt']=_0x50ee86['createdAt']);})['catch'](_0x550ff8=>{throw _0x342a12('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x33686f['discard']();}),_0x33686f['stopListening'](),this['_suggestions']['delete'](_0x33686f['id']),this['_suggestionState']['delete'](_0x33686f),_0x550ff8;});}return _0x33686f;}['_isBlockAttribute'](_0x21c012){return this['editor']['plugins']['get'](_0x35c779)['isBlockAttribute'](_0x21c012);}['_isInlineAttribute'](_0x2e6841){return this['editor']['plugins']['get'](_0x35c779)['isInlineAttribute'](_0x2e6841);}['_updateSuggestionData'](_0x384a13,_0x5eb362){const _0x3fdc98=this['editor']['plugins']['get']('PendingActions'),_0x3fbba2=this['getSuggestion'](_0x384a13);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3fbba2['_saved']){const _0x421de1=_0x3fdc98['add'](pt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x384a13,_0x5eb362)['then'](()=>{_0x3fdc98['remove'](_0x421de1);});}else _0x3fbba2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x384a13,_0x5eb362);});}}['_getSuggestionData'](_0x2b10c7){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x421710('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2b10c7);}['_handleNewSuggestionMarker'](_0x345ec8){const {id:_0x5d50d3,type:_0x224ea0,subType:_0x160105,authorId:_0x292665}=this['_splitMarkerName'](_0x345ec8),_0x34d85c=this['_suggestions']['get'](_0x5d50d3)||this['_createSuggestion'](_0x224ea0,_0x160105,_0x5d50d3,_0x292665,{});switch(this['_checkSuggestionCorrectness'](_0x34d85c,_0x224ea0,_0x160105,_0x292665),this['_suggestionState']['get'](_0x34d85c)){case'notReady':this['_getSuggestionData'](_0x5d50d3)['then'](_0x1aec9b=>{let _0x4dc871=Promise['resolve']();_0x1aec9b['hasComments']&&(_0x4dc871=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5d50d3})),_0x4dc871['then'](()=>{this['addSuggestionData'](_0x1aec9b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x34d85c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5d50d3,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x34d85c,'ready'),this['fire']('suggestionLoaded',_0x34d85c);break;case'ready':this['fire']('suggestionChanged',_0x34d85c);}return _0x34d85c['addMarkerName'](_0x345ec8),_0x34d85c;}['_refreshSuggestionsChain'](_0x8709f3){const _0x3eff05=Array['from'](_0x8709f3),_0x258704=_0x3eff05['filter'](_0x14904b=>'attribute'==_0x14904b['type']);this['_refreshAttributeSuggestionsChain'](_0x258704);const _0x2056ab=_0x3eff05['filter'](_0x3ffd3=>!_0x3ffd3['isMultiRange']&&'attribute'!=_0x3ffd3['type']),_0x369ab7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x260b3c=>!_0x260b3c['isMultiRange']&&'attribute'!=_0x260b3c['type']),_0x43341d=_0x369ab7['filter'](_0x579be6=>!_0x8709f3['has'](_0x579be6)),_0x7742c6=new Map(_0x369ab7['map'](_0x5c2628=>[_0x5c2628,this['_suggestionFactory']['getSuggestionCallback'](_0x5c2628['type'],_0x5c2628['subType'],'chain')])),_0x960e7=new Map(_0x369ab7['map'](_0xaa4799=>[_0xaa4799,_0xaa4799['getFirstRange']()])),_0x2f9022=new Set(),_0x166b88=new Set();for(let _0x421ff2=0x0;_0x421ff2<_0x2056ab['length'];_0x421ff2++)_0x552ff9(_0x2056ab[_0x421ff2],_0x2056ab,_0x421ff2+0x1);for(let _0x13dae0=0x0;_0x13dae0<_0x2056ab['length'];_0x13dae0++)_0x552ff9(_0x2056ab[_0x13dae0],_0x43341d,0x0);const _0x4156d0=new Set();for(let _0x10b6b4=0x0;_0x10b6b4<_0x2056ab['length'];_0x10b6b4++){const _0x41f05c=_0x2056ab[_0x10b6b4];!_0x166b88['has'](_0x41f05c)&&_0x41f05c['previous']&&(_0x4156d0['add'](_0x41f05c['previous']),_0x41f05c['previous']['next']===_0x41f05c&&(_0x41f05c['previous']['next']=null),_0x41f05c['previous']=null),!_0x2f9022['has'](_0x41f05c)&&_0x41f05c['next']&&(_0x4156d0['add'](_0x41f05c['next']),_0x41f05c['next']['previous']===_0x41f05c&&(_0x41f05c['next']['previous']=null),_0x41f05c['next']=null);}function _0x552ff9(_0x526bb9,_0x502b6d,_0x28d3be){for(let _0x272d27=_0x28d3be;_0x272d27<_0x502b6d['length'];_0x272d27++){const _0x366ccf=_0x3e41f6(_0x526bb9,_0x502b6d[_0x272d27]);_0x366ccf&&(_0x366ccf[0x0]['next']=_0x366ccf[0x1],_0x366ccf[0x1]['previous']=_0x366ccf[0x0],_0x2f9022['add'](_0x366ccf[0x0]),_0x166b88['add'](_0x366ccf[0x1]));}}function _0x3e41f6(_0x1fae5c,_0x43a8cb){if(_0x1fae5c['author']['id']!==_0x43a8cb['author']['id'])return null;const _0x302b3a=_0x7742c6['get'](_0x1fae5c)(_0x1fae5c,_0x43a8cb,_0x960e7['get'](_0x1fae5c),_0x960e7['get'](_0x43a8cb));if(!_0x302b3a)return null;return _0x7742c6['get'](_0x43a8cb)(_0x1fae5c,_0x43a8cb,_0x960e7['get'](_0x1fae5c),_0x960e7['get'](_0x43a8cb))?_0x302b3a[0x1]['commentThread']&&_0x302b3a[0x1]['commentThread']['length']?null:_0x302b3a:null;}_0x4156d0['size']&&this['_refreshSuggestionsChain'](_0x4156d0);}['_refreshAttributeSuggestionsChain'](_0x48ff6c){if(0x0==_0x48ff6c['length'])return;const _0x464a77=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ea2a8=>'attribute'==_0x3ea2a8['type']&&_0x3ea2a8['_isDataLoaded']),_0x13c010=[],_0x5c96c7=new Map();for(const _0x9bfae3 of _0x464a77){const _0x43e003=_0x43daf5(_0x9bfae3['attributes']);_0x5c96c7['has'](_0x43e003)||(_0x5c96c7['set'](_0x43e003,_0x13c010['length']),_0x13c010['push']([]));const _0x3f987f=_0x5c96c7['get'](_0x43e003);_0x13c010[_0x3f987f]['push'](_0x9bfae3);}!(function(){_0x13c010['sort']((_0x42f8f4,_0x18b66f)=>{const _0x581d10=_0x42f8f4[0x0]['createdAt'],_0x4c4c54=_0x18b66f[0x0]['createdAt'];return _0x581d10==_0x4c4c54?_0x42f8f4[0x0]['attributes']['groupId']<_0x18b66f[0x0]['attributes']['groupId']?-0x1:0x1:_0x581d10<_0x4c4c54?-0x1:0x1;});for(const _0x31256e of _0x13c010)_0x31256e['sort']((_0x21d512,_0x47c738)=>_0x21d512['id']<_0x47c738['id']?-0x1:0x1);}());for(let _0x513884=0x0;_0x513884<_0x13c010['length'];_0x513884++){if(0x0==_0x13c010[_0x513884]['length'])continue;const _0x4c9bd1=[];for(let _0x20fe95=_0x513884+0x1;_0x20fe95<_0x13c010['length'];_0x20fe95++)0x0!=_0x13c010[_0x20fe95]['length']&&_0x118555(_0x13c010[_0x513884],_0x13c010[_0x20fe95])&&_0x4c9bd1['push'](_0x20fe95);for(const _0x4a5c68 of _0x4c9bd1)_0x13c010[_0x513884]=_0x13c010[_0x513884]['concat'](_0x13c010[_0x4a5c68]),_0x13c010[_0x4a5c68]=[];}for(const _0xcf7d3f of _0x13c010)for(let _0x370788=0x0;_0x370788<_0xcf7d3f['length'];_0x370788++){const _0x570d98=_0xcf7d3f[_0x370788+0x1]||null;_0xcf7d3f[_0x370788]['next']!==_0x570d98&&(_0xcf7d3f[_0x370788]['next']=_0x570d98);}for(const _0x4be34f of _0x13c010)for(let _0x3a9238=0x0;_0x3a9238<_0x4be34f['length'];_0x3a9238++){const _0x44e725=_0x4be34f[_0x3a9238-0x1]||null;_0x4be34f[_0x3a9238]['previous']!==_0x44e725&&(_0x4be34f[_0x3a9238]['previous']=_0x44e725);}function _0x118555(_0x4522c0,_0x1a1f45){if(_0x4522c0[0x0]['attributes']['groupId']!==_0x1a1f45[0x0]['attributes']['groupId']&&_0x4522c0[0x0]['author']!==_0x1a1f45[0x0]['author'])return!0x1;if(!function(_0x1bf3a6,_0x3ec9f9){if(!_0x1bf3a6['hasComments']&&!_0x3ec9f9['hasComments'])return!0x0;if(_0x1bf3a6['hasComments']&&_0x3ec9f9['hasComments'])return!0x1;if(_0x1bf3a6['hasComments']&&_0x3ec9f9['createdAt']<_0x1bf3a6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3ec9f9['hasComments']&&_0x1bf3a6['createdAt']<_0x3ec9f9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4522c0[0x0],_0x1a1f45[0x0]))return!0x1;const _0x5d042d=nt(_0x4522c0[0x0]['attributes'],['groupId','trackingSessionId']),_0x1aa1ae=nt(_0x1a1f45[0x0]['attributes'],['groupId','trackingSessionId']);if(!tt(_0x5d042d,_0x1aa1ae))return!0x1;if(_0x4522c0[0x0]['attributes']['groupId']==_0x1a1f45[0x0]['attributes']['groupId'])return!0x0;if(_0x4522c0[0x0]['attributes']['trackingSessionId']!==_0x1a1f45[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4522c0['every'](_0x21095c=>_0x1a1f45['some'](_0x2fb936=>_0x21095c['getFirstRange']()['isEqual'](_0x2fb936['getFirstRange']())))&&_0x1a1f45['every'](_0x5ac1bb=>_0x4522c0['some'](_0x133c61=>_0x5ac1bb['getFirstRange']()['isEqual'](_0x133c61['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1acc7b){const _0x3685db=Array['from'](_0x1acc7b),_0x4c09b1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ea727=_0x4c09b1['filter'](_0x283a92=>!_0x1acc7b['has'](_0x283a92)),_0x3bf733=new Map(_0x3685db['map'](_0x1d7f99=>[_0x1d7f99,this['_suggestionFactory']['getSuggestionCallback'](_0x1d7f99['type'],_0x1d7f99['subType'],'join')])),_0x424a07=new Map(_0x4c09b1['map'](_0x496d4a=>[_0x496d4a,_0x496d4a['getRanges']()]));for(let _0x5523e2=0x0;_0x5523e2<_0x3685db['length'];_0x5523e2++){if(_0x294a13(this,_0x3685db[_0x5523e2],_0x3685db,_0x5523e2+0x1))return!0x0;}for(let _0x43dae9=0x0;_0x43dae9<_0x3685db['length'];_0x43dae9++){if(_0x294a13(this,_0x3685db[_0x43dae9],_0x3ea727,0x0))return!0x0;}return!0x1;function _0x294a13(_0x4a05ad,_0x232479,_0x474c8b,_0x46aff6){for(let _0x4e74ca=_0x46aff6;_0x4e74ca<_0x474c8b['length'];_0x4e74ca++){const _0x457596=_0x474c8b[_0x4e74ca];if(_0x457596['type']!==_0x232479['type']||_0x457596['author']['id']!==_0x232479['author']['id']||_0x457596['subType']!==_0x232479['subType'])continue;if(!en(_0x232479,_0x457596))continue;if('attribute'==_0x232479['type']&&_0x232479['data']['oldValue']!=_0x457596['data']['oldValue'])continue;if('attribute'==_0x232479['type']&&_0x4a05ad['_isBlockAttribute'](_0x232479['data']['key']))continue;if('formatBlock'==_0x232479['type']){const _0x3bb473=_0x4a05ad['editor']['model'],_0x424ad3=_0x232479['getContainedElement']();if(_0x424ad3&&(_0x3bb473['schema']['isObject'](_0x424ad3)||_0x3bb473['schema']['isLimit'](_0x424ad3)))continue;}const _0x2803cc=_0x3bf733['get'](_0x232479),_0x2db300=_0x424a07['get'](_0x232479),_0x411650=_0x424a07['get'](_0x457596),_0x463e05=_0x232479['commentThread']&&_0x232479['commentThread']['length'],_0x5b4f9e=_0x457596['commentThread']&&_0x457596['commentThread']['length'];if(!_0x463e05&&_0x2803cc(_0x411650,_0x2db300))return _0x4a05ad['_joinSuggestions'](_0x457596,_0x232479),_0x424a07['delete'](_0x232479),!0x0;if(!_0x5b4f9e&&_0x2803cc(_0x2db300,_0x411650))return _0x4a05ad['_joinSuggestions'](_0x232479,_0x457596),_0x424a07['delete'](_0x457596),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1e28a4,_0xa64fcf){if(_0x1e28a4['isMultiRange']){for(const _0x413808 of _0xa64fcf['getRanges']())_0x1e28a4['addRange'](_0x413808);}else{const _0x4c1194=_0xa64fcf['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1e28a4,this['_model']['createRange'](_0x1e28a4['getFirstRange']()['start'],_0x4c1194));}_0xa64fcf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x54db2d,_0x57c00a,_0x57f8f0){const _0x12f5b6=_0x54db2d['startsWith']('format')||_0x54db2d['startsWith']('attribute')?'FORMATTING':_0x54db2d['toUpperCase']();return pt(this['editor']['locale'],_0x57c00a+'_'+_0x12f5b6+'_SUGGESTION_ANNOUNCEMENT',_0x57f8f0);}['_initAriaMarkerChangeAnnouncements'](){const _0x1f64bd=this['editor'];if(!_0x1f64bd['ui'])return;const {ariaLiveAnnouncer:_0x215863}=_0x1f64bd['ui'];_0x3fc19c(this['_model'],({left:_0x33e1f0,entered:_0x27d099})=>{for(const _0x49e1e7 of _0x33e1f0){const {group:_0x90f6db,type:_0x1a4aa1}=this['_splitMarkerName'](_0x49e1e7['name']);if('suggestion'===_0x90f6db){_0x215863['announce'](this['_getMarkerAnnouncementText'](_0x1a4aa1,'LEAVE'));break;}}for(const _0x27e438 of _0x27d099){const {group:_0x28af9a,type:_0x1f5a33}=this['_splitMarkerName'](_0x27e438['name']);if('suggestion'===_0x28af9a){_0x215863['announce'](this['_getMarkerAnnouncementText'](_0x1f5a33,'ENTER',_0x315045(_0x1375db)));break;}}});}['_processAttributeChanges'](_0x5567cf){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1e38da=this['editor'],_0x4b6afa=_0x1e38da['model']['document']['differ']['getChanges']();if(0x0==_0x4b6afa['length'])return!0x1;const _0x4bbd22=[],_0x1e4a28=_0x4b6afa['filter'](_0x5581f2=>'attribute'==_0x5581f2['type']),_0x28941b=_0x4b6afa['filter'](_0x12734e=>'insert'==_0x12734e['type']&&'$text'!=_0x12734e['name']),_0x5e6318=_0x4b6afa['filter'](_0x42b13c=>'remove'==_0x42b13c['type']&&'$text'!=_0x42b13c['name']);for(const _0x4d0d92 of _0x1e4a28)_0x4bbd22['push']({'key':_0x4d0d92['attributeKey'],'newValue':_0x4d0d92['attributeNewValue'],'oldValue':_0x4d0d92['attributeOldValue'],'range':Ze(_0x4d0d92['range'],_0x1e38da['model'])});for(const _0x5f89fc of _0x28941b){const _0x8d0f89=_0x5e6318['find'](_0x3eb993=>_0x3eb993['position']['isEqual'](_0x5f89fc['position']));_0x8d0f89&&_0x4bbd22['push']({'key':$e,'newValue':_0x5f89fc['name'],'oldValue':_0x8d0f89['name'],'range':_0x1e38da['model']['createRangeOn'](_0x5f89fc['position']['nodeAfter'])});}return 0x0!=_0x4bbd22['length']&&this['_reduceExistingSuggestions'](_0x5567cf,_0x4bbd22);}['_processAttributeSuggestions'](_0x42dafe){let _0x1a437e=!0x1;const _0x46e99b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x34888f=>_0x34888f['data']['newRange']&&_0x34888f['name']['startsWith']('suggestion:attribute:'));for(const _0x435ea8 of _0x46e99b){const {subType:_0x482223,id:_0x4ff436}=this['_splitMarkerName'](_0x435ea8['name']),_0x46358a=_0x482223['split']('|')[0x0];for(const _0x3d3f29 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3d3f29['id']!=_0x4ff436&&'attribute'==_0x3d3f29['type']&&_0x3d3f29['data']&&_0x3d3f29['data']['key']==_0x46358a&&_0x3d3f29['getFirstRange']()['isIntersecting'](_0x435ea8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3d3f29,_0x435ea8['data']['newRange'],_0x42dafe),_0x1a437e=!0x0);}return _0x1a437e;}['recordAttributeChanges'](_0x3b2f82){this['_recordAttributeSuggestions']=!0x0,_0x3b2f82();}['_isRegisteredAttribute'](_0x4a967f){return this['editor']['plugins']['get'](_0x35c779)['isRegisteredAttribute'](_0x4a967f);}['_reduceExistingSuggestions'](_0x4cf6be,_0x84f09b){if(0x0==_0x84f09b['length'])return!0x1;let _0x4789a5=!0x1;for(const _0x13c674 of _0x84f09b){const _0x2a32cd=this['_findSuggestions'](_0x13c674['range'],'attribute')['filter'](_0x905f34=>!_0x905f34['meta']['isNextTo'])['map'](_0x51c8a4=>_0x51c8a4['suggestion']),_0x4b41b3=_0x43daf5({'newValue':_0x13c674['newValue']});_0x2a32cd['filter'](_0x5625b4=>{const [_0x287d6b,_0x423d8a]=_0x5625b4['subType']['split']('|');return _0x287d6b==_0x13c674['key']&&_0x423d8a!=_0x4b41b3;})['forEach'](_0x42e1dd=>{this['_reduceSuggestionAttributeRange'](_0x42e1dd,_0x13c674['range'],_0x4cf6be),_0x4789a5=!0x0;});}return _0x4789a5;}['_reduceSuggestionAttributeRange'](_0x5c93ca,_0x152042,_0x235965){const _0x33ae3e=_0x5c93ca['getFirstRange']()['getDifference'](_0x152042);0x0!==_0x33ae3e['length']?0x1!==_0x33ae3e['length']?this['_breakSuggestionMarker'](_0x5c93ca,_0x152042['start'],_0x152042['end']):this['_setSuggestionRange'](_0x5c93ca,_0x33ae3e[0x0]):_0x235965['removeMarker'](_0x5c93ca['getFirstMarker']());}}class We{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x320924){this['_editor']=_0x320924,this['_model']=_0x320924['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5c4bf1,_0x13d5e1,_0x547e36,_0x2d6c59,_0x15bbed,_0x180d9e,_0x51e7f2){return new _t(this['_model'],{'type':_0x5c4bf1,'subType':_0x13d5e1,'id':_0x547e36,'originalSuggestionId':_0x51e7f2,'author':_0x2d6c59,'creator':_0x2d6c59,'attributes':_0x15bbed,'onAttributesChange':_0x180d9e,'onAccept':(..._0x3d8bbd)=>this['getSuggestionCallback'](_0x5c4bf1,_0x13d5e1,'accept')(..._0x3d8bbd),'onDiscard':(..._0x2e3c3b)=>this['getSuggestionCallback'](_0x5c4bf1,_0x13d5e1,'discard')(..._0x2e3c3b)});}['registerCustomCallback'](_0x23ad85,_0x11abe2,_0x169f54,_0x4751d9){const _0x21b1d3=_0x23ad85+':'+_0x11abe2+':'+_0x169f54;this['_customCallbacks']['set'](_0x21b1d3,_0x4751d9);}['getSuggestionCallback'](_0x144f7b,_0x448666,_0xa99fb5){const _0x16744b=_0x144f7b+':'+_0x448666+':'+_0xa99fb5;return this['_customCallbacks']['get'](_0x16744b)||this['_defaultCallbacks']['get'](_0x144f7b+':'+_0xa99fb5);}['_registerDefaultCallbacks'](){const _0x2d00f6=()=>!0x1,_0x3c3f6b=_0x380b48=>{_0x380b48['sort']((_0x2643ae,_0x4501a6)=>_0x2643ae['start']['isBefore'](_0x4501a6['start'])?0x1:-0x1),this['_model']['change'](_0x29eec0=>{for(const _0x22f0ee of _0x380b48){let _0x5bb227;_0x5bb227=_0x22f0ee['end']['isAtEnd']&&_0x22f0ee['end']['parent']==_0x22f0ee['start']['nodeAfter']?_0x29eec0['createSelection'](_0x22f0ee['start']['nodeAfter'],'on'):_0x29eec0['createSelection'](_0x22f0ee),this['_model']['deleteContent'](_0x5bb227,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x641d01=(_0x3d97a4,_0x5508ee)=>{_0x5508ee&&this['_model']['change'](_0x4fc55e=>{const {commandName:_0x4ca218,commandParams:_0xba13aa=[]}=_0x5508ee,_0x22464b=_0x3d97a4['map'](_0x4f8a9f=>(ze(_0x4f8a9f)&&(_0x4f8a9f=this['_model']['createRange'](_0x4f8a9f['end'])),_0x4f8a9f))['filter'](_0x236153=>'$graveyard'!==_0x236153['root']['rootName']);if(_0x22464b['length']<0x1)return;const _0x30abb9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x43985d=>_0x541ce3['fromRange'](_0x43985d));_0x4fc55e['setSelection'](_0x22464b);for(const _0x43ecf8 of this['_editor']['commands']['commands']())_0x43ecf8['refresh']();_0xba13aa['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4ca218,..._0xba13aa);const _0xc0240=_0x30abb9['filter'](_0x115deb=>'$graveyard'!=_0x115deb['root']['rootName']);_0xc0240['length']>0x0&&_0x4fc55e['setSelection'](_0xc0240);for(const _0x30c6b8 of _0x30abb9)_0x30c6b8['detach']();});},_0x56159d=(_0xced463,_0x517f55)=>0x1==_0xced463['length']&&0x1==_0x517f55['length']&&_0xced463[0x0]['end']['isEqual'](_0x517f55[0x0]['start']),_0x43842a=(_0x380e24,_0xb6207c,_0x2d027f,_0x1d06bc)=>tn(_0x380e24,_0xb6207c,_0x2d027f,_0x1d06bc)?[_0x380e24,_0xb6207c]:tn(_0xb6207c,_0x380e24,_0x1d06bc,_0x2d027f)?[_0xb6207c,_0x380e24]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2d00f6),this['_defaultCallbacks']['set']('insertion:discard',_0x3c3f6b),this['_defaultCallbacks']['set']('insertion:join',_0x56159d),this['_defaultCallbacks']['set']('insertion:chain',_0x43842a),this['_defaultCallbacks']['set']('deletion:accept',_0x3c3f6b),this['_defaultCallbacks']['set']('deletion:discard',_0x2d00f6),this['_defaultCallbacks']['set']('deletion:join',_0x56159d),this['_defaultCallbacks']['set']('deletion:chain',_0x43842a),this['_defaultCallbacks']['set']('formatInline:accept',_0x641d01),this['_defaultCallbacks']['set']('formatInline:discard',_0x2d00f6),this['_defaultCallbacks']['set']('formatInline:join',_0x56159d),this['_defaultCallbacks']['set']('formatInline:chain',_0x2d00f6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x641d01),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2d00f6),this['_defaultCallbacks']['set']('formatBlock:join',_0x56159d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2d00f6),this['_defaultCallbacks']['set']('attribute:accept',_0x2d00f6),this['_defaultCallbacks']['set']('attribute:discard',(_0x1077af,_0x2ab4b4)=>{if(!_0x2ab4b4)return;const _0x1c6543=this['_editor']['plugins']['get'](Ve);this['_model']['change'](_0x52e9de=>{if(_0x2ab4b4['key']==$e)for(const _0x29b190 of _0x1077af){const _0x5a5b79=_0x29b190['start']['nodeAfter'],_0x58741b=_0x2ab4b4['oldValue'];_0x52e9de['rename'](_0x5a5b79,_0x58741b);}else{if(_0x1c6543['_isBlockAttribute'](_0x2ab4b4['key'])){for(const _0x331b25 of _0x1077af)void 0x0!==_0x2ab4b4['oldValue']?_0x52e9de['setAttribute'](_0x2ab4b4['key'],_0x2ab4b4['oldValue'],_0x331b25['start']['nodeAfter']):_0x52e9de['removeAttribute'](_0x2ab4b4['key'],_0x331b25['start']['nodeAfter']);}else{for(const _0x62869d of _0x1077af)_0x2ab4b4['oldValue']?_0x52e9de['setAttribute'](_0x2ab4b4['key'],_0x2ab4b4['oldValue'],_0x62869d):_0x52e9de['removeAttribute'](_0x2ab4b4['key'],_0x62869d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x56159d);}}function je(_0x5c6396,_0x1de4db,_0x1d565e){for(const _0x425fe6 of _0x1de4db['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x425fe6['root']==_0x425fe6)return!0x1;if(!_0x1d565e['containsItem'](_0x425fe6))return!0x1;if(_0x5c6396['isObject'](_0x425fe6)||_0x5c6396['isLimit'](_0x425fe6))return!0x0;}return!0x1;}function ze(_0x14e2e5){return _0x14e2e5['end']['parent']==_0x14e2e5['start']['nodeAfter']&&_0x14e2e5['end']['isAtStart'];}function Ke(_0x28607d,_0x2b9150,_0x15cce5,_0x2a42d5){const _0x7dd10d=_0x52553f=>!_0x52553f['item']['is']('$textProxy')&&!_0x2a42d5['isObject'](_0x52553f['item']),_0x191fda=_0x28607d['start']['getLastMatchingPosition'](_0x7dd10d),_0xbc0d21=_0x28607d['end']['getLastMatchingPosition'](_0x7dd10d,{'direction':'backward'});return(!_0x28607d['start']['isEqual'](_0x191fda)||!_0x28607d['end']['isEqual'](_0xbc0d21))&&(_0x191fda['isBefore'](_0xbc0d21)?_0x15cce5['updateMarker'](_0x2b9150,{'range':_0x15cce5['createRange'](_0x191fda,_0xbc0d21)}):_0x15cce5['removeMarker'](_0x2b9150),!0x0);}function Xe(_0x2d82b1){return _0x43daf5(_0x2d82b1);}function Ye(_0x54458d){const _0x427c9c=_0x54458d['start']['nodeAfter'];return _0x427c9c&&_0x427c9c['is']('element');}function qe(_0x4edcad){return ze(_0x4edcad)||function(_0x320bb1){return _0x320bb1['start']['parent']==_0x320bb1['end']['nodeBefore']&&_0x320bb1['start']['isAtEnd'];}(_0x4edcad);}function Qe(_0x9ed08b,_0x83eec4){try{const _0xb080b5=_0x9ed08b['getRange']();for(const _0x655d56 of _0x83eec4)if(_0x9ed08b!==_0x655d56&&_0xb080b5&&_0xb080b5['isIntersecting'](_0x655d56['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Ze(_0x4c6422,_0x29c1ea){return null==_0x4c6422['end']['nodeBefore']&&_0x4c6422['end']['parent']==_0x4c6422['start']['nodeAfter']?Je(_0x4c6422['start']['nodeAfter'],_0x29c1ea):_0x4c6422;}function Je(_0x49cba1,_0x4c8be0){const _0xbd9c8b=_0x4c8be0['schema']['isObject'](_0x49cba1)||_0x4c8be0['schema']['isSelectable'](_0x49cba1);return _0x4c8be0['createRange'](_0x4c8be0['createPositionAt'](_0x49cba1,'before'),_0xbd9c8b?_0x4c8be0['createPositionAfter'](_0x49cba1):_0x4c8be0['createPositionAt'](_0x49cba1,'end'));}function tn(_0x26cf0d,_0x2d4f23,_0x5c3d0c,_0x3d1cdc){return!!en(_0x26cf0d,_0x2d4f23)&&_0x5c3d0c['end']['isEqual'](_0x3d1cdc['start']);}function en(_0x1ea00b,_0x205609){if(!_0x1ea00b['_isDataLoaded']||!_0x205609['_isDataLoaded'])return!0x1;const _0x546b5d=new Set(Object['keys'](_0x1ea00b['attributes'])),_0x3f1928=new Set(Object['keys'](_0x205609['attributes']));if(_0x546b5d['delete']('groupId'),_0x3f1928['delete']('groupId'),0x0==_0x546b5d['size']&&0x0==_0x3f1928['size'])return!0x0;if(_0x546b5d['size']!=_0x3f1928['size'])return!0x1;const _0x3cf530={..._0x1ea00b['attributes']},_0x5948a0={..._0x205609['attributes']};return delete _0x3cf530['groupId'],delete _0x5948a0['groupId'],JSON['stringify'](_0x3cf530)==JSON['stringify'](_0x5948a0);}function nn(_0x1d6649,_0x706f12){const _0x2e8c6e=sn(_0x1d6649['attributes']),_0x10c573=sn(_0x706f12);if(!_0x1d6649['_isDataLoaded'])return!0x1;for(const _0x585ea8 of Object['keys'](_0x10c573))if(!tt(_0x2e8c6e[_0x585ea8],_0x10c573[_0x585ea8]))return!0x1;return!0x0;}function sn(_0x517968){const _0x2eae73=Object['assign']({},_0x517968);return delete _0x2eae73['skipNestingCheck'],delete _0x2eae73['tablePasteChainId'],_0x2eae73;}class rn extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x21dcbf(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xc93b38,_0x39d7f5,_0x4c6f1a,_0x3585ad){super(),this['model']=_0x39d7f5,this['view']=_0x4c6f1a,this['commentThreadController']=_0x3585ad,this['_editor']=_0xc93b38,this['_acceptCommand']=_0xc93b38['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xc93b38['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4fc5b2,_0x4f64c9)=>_0x4fc5b2||_0x4f64c9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2a1b53=>_0x2a1b53&&this['_editor']['model']['canEditAt'](_0x39d7f5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x447056=>_0x447056&&this['_editor']['model']['canEditAt'](_0x39d7f5['getRanges']())),this['_pendingAction']=null,_0x4c6f1a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4c6f1a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4c6f1a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4c6f1a,'change:isDirty',()=>{_0x4c6f1a['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 _0x3e7172=pt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3e7172);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class on extends _0x48a8df{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x44e3f6,_0x38241d,_0x2475ad,_0x1b53aa){super(_0x44e3f6),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x546f2c(_0x44e3f6,pt(_0x44e3f6,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x38241d['authoredAt']),this['bind']('authoredAt')['to'](_0x38241d),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',_0x38241d,'authoredAt',this,'descriptionParts',(_0x55615b,_0x35f312,_0x236db5)=>{const _0xc7eb7f=_0x236db5['map'](_0x4a9d7b=>ut(_0x4a9d7b['content']))['join']('.\x20')+'.';return pt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x55615b-0x1,_0x38241d['author']['name'],_0x35f312?_0x1b53aa['formatDateTime'](_0x35f312):'',new DOMParser()['parseFromString'](_0xc7eb7f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2735b7(),this['focusTracker']=new _0x158530(),this['keystrokes']=new _0x451e34(),this['focusCycler']=new _0x559703({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x785195=>_0x785195['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x38241d,this['_localUser']=_0x2475ad,this['_config']=_0x1b53aa,_0x1b53aa['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xe34ed(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x502d6f}=this['_config'];this['commentsListView']=new _0x502d6f(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',_0x1649b4=>_0x1649b4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x46cf35,_0x13bd37)=>_0x46cf35||!!_0x13bd37);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4f2455}=this['_config'],_0x51ab09=new _0x4f2455(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2b7bed=_0x51ab09['commentInputView'];return _0x51ab09['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2b7bed,'value',(_0x59c1b4,_0x41e71d,_0x16af5b)=>!!_0x16af5b||_0x59c1b4&&!_0x41e71d),_0x2b7bed['on']('submit',(_0x4fcaf6,_0x82926f)=>{this['fire']('addComment',_0x82926f),_0x2b7bed['editor']['setData']('');}),_0x2b7bed['on']('cancel',()=>this['focus']()),_0x2b7bed['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x51ab09;}}class an extends on{['suggestionView'];['_descriptionElement'];constructor(_0x330d28,_0x3cd74a,_0x3ed792,_0x463426){super(_0x330d28,_0x3cd74a,_0x3ed792,_0x463426),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1346a0=>_0x1346a0&&_0x1346a0[0x0]?_0x1346a0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x26d887,_0x436e7f)=>{let _0x11dc0c='';for(const _0x4d32f1 of _0x26d887)_0x11dc0c+='<p>'+ut(_0x4d32f1['content'],_0x4d32f1['color'])+'</p>';return _0x436e7f?_0x11dc0c:_0x400e5b(_0x11dc0c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x463426['SuggestionView'](_0x330d28,_0x3cd74a,{'formatDateTime':_0x463426['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 _0x394d7b=this['bindTemplate'],_0x1a9a64=[this['suggestionView']];return this['commentsListView']&&_0x1a9a64['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1a9a64['push'](this['commentThreadInputView']),_0x1a9a64['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x394d7b['if']('isActive','ck-suggestion-wrapper--active'),_0x394d7b['to']('type',_0x157f7a=>'ck-suggestion-'+_0x157f7a),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':_0x394d7b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1a9a64};}['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 cn extends _0x48a8df{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xe2b258,_0x12a8f5,_0x16040a){super(_0xe2b258),this['_model']=_0x12a8f5,this['_config']=_0x16040a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x12a8f5),this['acceptButton']=this['_createButton'](pt(_0xe2b258,'Accept\x20suggestion'),_0x44e669,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](pt(_0xe2b258,'Discard\x20suggestion'),_0x3c2023,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x19c31f(_0xe2b258,_0x12a8f5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2735b7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x158530(),this['keystrokes']=new _0x451e34(),this['focusCycler']=new _0x559703({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x25c2a0=>_0x25c2a0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2d4b11=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2d4b11['innerHTML']=this['description'],this['on']('change:description',(_0x555ccb,_0x3bdf0e,_0x9e285a)=>{_0x2d4b11['innerHTML']=_0x9e285a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x28e4bd=this['bindTemplate'],_0xba5b32=[{'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':_0x28e4bd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x28e4bd['to']('authoredAt',_0x3e5510=>this['_config']['formatDateTime'](_0x3e5510))}]}]},{'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']&&_0xba5b32['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':_0xba5b32}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?pt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):pt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?pt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):pt(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x519de5,_0x4a06d9,_0x3f9291,_0x5d7286,_0x29b3ad){const _0x481eda=new _0x39bffe(this['locale']);return _0x481eda['set']({'label':_0x519de5,'icon':_0x4a06d9,'tooltip':!0x0,'tooltipPosition':_0x29b3ad}),_0x481eda['extendTemplate']({'attributes':{'class':_0x3f9291}}),_0x481eda['on']('execute',()=>{this['fire'](_0x5d7286,this['_model']['id']);}),_0x481eda;}['_setupKeyboardNavigation'](){const _0x54d3e7=this['element'];this['keystrokes']['listenTo'](_0x54d3e7);for(const _0x471efb of this['focusables'])this['focusTracker']['add'](_0x471efb['element']),this['keystrokes']['listenTo'](_0x471efb['element']);this['keystrokes']['set']('enter',(_0x40d091,_0x53dab8)=>{_0x54d3e7===_0x40d091['target']&&(this['focusCycler']['focusFirst'](),_0x53dab8());}),this['keystrokes']['set']('esc',(_0x5e644d,_0x3f4bd5)=>{_0x54d3e7!==_0x5e644d['target']&&(this['focus'](),_0x3f4bd5());});}}class ln extends _0x46e166{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Ve,_0x136b9c,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a50a8){super(_0x4a50a8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x33815d=this['editor']['config'];_0x33815d['define']('trackChanges.SuggestionThreadView',an),_0x33815d['define']('trackChanges.SuggestionView',cn),_0x33815d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x33815d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4edd23,_0x4b8b91){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xf09efc,_0x206580]of this['_handleControllerBuffer']){const _0x2c66b4=this['_suggestionToController']['has'](_0xf09efc);_0x2c66b4||_0x206580?_0x2c66b4&&_0x206580&&this['_destroyController'](_0xf09efc):this['_initializeController'](_0xf09efc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4edd23,_0x4b8b91);}['init'](){const _0x2b4701=this['editor'],_0x342363=_0x2b4701['plugins']['get']('TrackChangesEditing'),_0x48b340=_0x2b4701['plugins']['get']('Annotations'),_0x482945=_0x2b4701['plugins']['get']('EditorAnnotations'),_0x2fffac=_0x2b4701['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x482945['addSourceCollector'](()=>{const _0x44e4e2=[];for(const [_0x45828e,_0x34e75e]of Array['from'](this['_suggestionToController'])){const _0x534c7d=_0x45828e['getAllAdjacentSuggestions'](),_0x1dd542=[];for(const _0x53fb84 of _0x534c7d){if(!_0x53fb84['isInContent'])continue;if(_0x53fb84['isMultiRange']){_0x1dd542['push'](..._0x53fb84['getRanges']());continue;}const _0x1ae563=_0x53fb84['getFirstRange']();if(_0x1dd542['length']>0x0){const _0x3a0ab6=_0x1dd542[0x0]['getJoined'](_0x1ae563);if(_0x3a0ab6){_0x1dd542[0x0]=_0x3a0ab6;continue;}}_0x1dd542['push'](_0x1ae563);}_0x44e4e2['push']([_0x34e75e['view'],_0x1dd542]);}return _0x44e4e2;}),this['listenTo'](_0x342363,'suggestionLoaded',(_0xffff54,_0x5a7b77)=>{this['listenTo'](_0x5a7b77,'change:previous',(_0x44a169,_0x4274a7,_0x1357c3,_0x588130)=>{_0x5a7b77['isInContent']&&(null==_0x1357c3?(this['_updateController'](_0x588130['head']),this['_handleSuggestionControllerDelayed'](_0x5a7b77,!0x1)):(this['_updateController'](_0x1357c3['head']),null==_0x588130&&this['_handleSuggestionControllerDelayed'](_0x5a7b77,!0x0)));}),null!==_0x5a7b77['previous']?this['_updateController'](_0x5a7b77['head']):this['_handleSuggestionControllerDelayed'](_0x5a7b77,!0x1);}),this['listenTo'](_0x342363,'suggestionUnloaded',(_0x3a9c9a,_0x12a6b7,_0x27258f)=>{this['stopListening'](_0x12a6b7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x12a6b7),this['_suggestionToController']['has'](_0x12a6b7)&&this['_destroyController'](_0x12a6b7),_0x27258f&&this['_updateController'](_0x27258f['head']);}),this['listenTo'](_0x342363,'suggestionChanged',(_0x5202f6,_0xe441a2)=>{this['_updateController'](_0xe441a2);}),this['listenTo'](_0x48b340,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2fffac,'addComment',(_0x5a316b,{threadId:_0x2884ce,isFromAdapter:_0x3ccf74})=>{if(_0x3ccf74||!_0x342363['hasSuggestion'](_0x2884ce))return;const _0x2c29c2=_0x342363['getSuggestion'](_0x2884ce);this['_suggestionToController']['get'](_0x2c29c2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x268cc3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x392115;for(const _0x32903d in _0x268cc3){const _0x8e333e=_0x32903d,_0x195988=_0x268cc3[_0x8e333e];if('trackChangesLicenseKeyValid'==_0x195988||'trackChangesLicenseKeyInvalid'==_0x195988||'trackChangesLicenseKeyExpired'==_0x195988||'trackChangesLicenseKeyDomainLimit'==_0x195988||'trackChangesLicenseKeyNotAllowed'==_0x195988||'trackChangesLicenseKeyEvaluationLimit'==_0x195988||'trackChangesLicenseKeyUsageLimit'==_0x195988){delete _0x268cc3[_0x8e333e],_0x392115=_0x195988,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x392115&&_0x268cc3['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x392115&&_0x268cc3['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x392115&&_0x268cc3['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x392115&&_0x268cc3['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x392115&&_0x268cc3['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x392115&&_0x268cc3['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3de777){const _0x37ac94=this['_suggestionToController']['get'](_0x3de777);if(!_0x37ac94)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x37ac94['view'])||null;}['getSuggestionForAnnotation'](_0x294808){const _0x3b3680=this['_viewToController']['get'](_0x294808['innerView']);return _0x3b3680?_0x3b3680['model']:null;}['_refreshActiveMarkers'](){const _0x2bfdfb=this['editor']['plugins']['get']('Annotations'),_0xd22016=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dd40b=Array['from'](_0x2bfdfb['activeAnnotations'],_0x1f2f96=>_0x1f2f96['innerView'])['filter'](_0x39b88e=>this['_viewToController']['has'](_0x39b88e)),_0x456a99=[];for(const _0x375f85 of _0x1dd40b){const _0xe55182=this['_viewToController']['get'](_0x375f85)['model']['getAllAdjacentSuggestions']();_0x456a99['push'](..._0xe55182['reduce']((_0x4b7147,_0xfa7ee2)=>[..._0x4b7147,..._0xfa7ee2['getMarkerNames']()],[]));}_0xd22016['activeMarkers']=_0x456a99;}['_addUIComponentsToFactory'](){const _0x598fea=this['editor'],_0xe7ac61=_0x598fea['locale'],_0x465c31=pt(_0xe7ac61,'Track\x20changes'),_0x58f08e=new _0x1f4d8f([{'type':'switchbutton','model':new _0x4a7c1f({'withText':!0x0,'isToggleable':!0x0,'label':_0x465c31,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4a7c1f({'withText':!0x0,'label':pt(_0xe7ac61,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a7c1f({'withText':!0x0,'label':pt(_0xe7ac61,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a7c1f({'withText':!0x0,'label':pt(_0xe7ac61,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4a7c1f({'withText':!0x0,'label':pt(_0xe7ac61,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x598fea['plugins']['has']('TrackChangesPreview')&&_0x58f08e['addMany']([{'type':'separator'},{'type':'button','model':new _0x4a7c1f({'withText':!0x0,'label':pt(_0xe7ac61,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x50eabe of _0x58f08e)if(un(_0x50eabe)){const _0x217cca=_0x598fea['commands']['get'](_0x50eabe['model']['commandName']);_0x50eabe['model']['bind']('isOn','isEnabled')['to'](_0x217cca,'value','isEnabled');}_0x598fea['ui']['componentFactory']['add']('trackChanges',_0x202030=>this['_createToolbarButton'](_0x202030,_0x58f08e,_0x465c31)),_0x598fea['ui']['componentFactory']['add']('menuBar:trackChanges',_0x40c1f4=>this['_createMenuBarMenu'](_0x40c1f4,_0x58f08e,_0x465c31));}['_createToolbarButton'](_0x1ca294,_0x4b4967,_0x535b30){const _0xe21415=_0x39ded0(_0x1ca294,_0x308329),_0x271e8f=this['editor']['commands']['get']('trackChanges');_0xe21415['buttonView']['set']({'tooltip':_0x535b30,'label':_0x535b30,'icon':_0x515704}),_0xe21415['buttonView']['bind']('isOn')['to'](_0x271e8f,'value'),_0xe21415['buttonView']['on']('execute',()=>{_0x271e8f['execute'](),this['editor']['editing']['view']['focus']();}),_0x3e1505(_0xe21415,_0x4b4967,{'role':'menu'});const _0x274717=[];for(const _0x557af6 of _0x4b4967)un(_0x557af6)&&_0x274717['push'](this['editor']['commands']['get'](_0x557af6['model']['commandName']));const _0x2720b5=_0xe21415['buttonView'];return _0x2720b5['actionView']['unbind']('isEnabled'),_0x2720b5['arrowView']['unbind']('isEnabled'),_0x2720b5['actionView']['bind']('isEnabled')['to'](_0x271e8f,'isEnabled'),_0x2720b5['arrowView']['bind']('isEnabled')['toMany'](_0x274717,'isEnabled',(..._0x5d4dbc)=>_0x5d4dbc['some'](_0x534766=>_0x534766)),_0xe21415['on']('execute',_0x5ed88d=>{this['editor']['execute'](_0x5ed88d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xe21415;}['_createMenuBarMenu'](_0x32fd5e,_0x4e03a4,_0x13e885){const _0x1ddbfd=new _0x39e8d0(_0x32fd5e),_0x1cce4f=this['editor']['commands']['get']('trackChanges');_0x1ddbfd['buttonView']['set']({'label':_0x13e885,'icon':_0x515704});const _0x5a50c8=new _0x279e5c(_0x32fd5e);for(const _0x2f259f of _0x4e03a4){if('separator'==_0x2f259f['type']){_0x5a50c8['items']['add'](new _0x14d5eb(_0x32fd5e));continue;}const _0x3b07d4=new _0x2b73a1(_0x32fd5e,_0x1ddbfd),_0x3956a7=new _0x4c9a9c(_0x32fd5e),_0x5e1fd0=_0x2f259f['model'];_0x3956a7['bind'](...Object['keys'](_0x5e1fd0))['to'](_0x5e1fd0),_0x3956a7['delegate']('execute')['to'](_0x1ddbfd),_0x3956a7['on']('execute',()=>{this['editor']['execute'](_0x5e1fd0['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b07d4['children']['add'](_0x3956a7),_0x5a50c8['items']['add'](_0x3b07d4);}return _0x1ddbfd['bind']('isEnabled')['to'](_0x1cce4f,'isEnabled'),_0x1ddbfd['panelView']['children']['add'](_0x5a50c8),_0x1ddbfd;}['_initializeController'](_0x433a49){const _0x14b56c=this['editor'],_0x1e5418=_0x14b56c['config'],_0x5c8c9d=_0x14b56c['plugins']['get']('Annotations'),_0x214cf5=_0x14b56c['plugins']['get']('CommentsRepository'),_0x1b5e0=_0x14b56c['plugins']['get']('EditorAnnotations'),_0x5a1f14=_0x14b56c['plugins']['get'](_0x136b9c)['me'],_0xc40ea8=_0x1e5418['get']('trackChanges')['SuggestionThreadView'],_0x29af26=_0x1e5418['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x566cf0,CommentThreadInputView:_0x3e9466}=_0x14b56c['plugins']['get']('CommentsUI');let _0x1f9ff8,_0x3b5e00,_0x3fcc08;this['_annotationViews']['has'](_0x433a49['id'])?(_0x3b5e00=this['_annotationViews']['get'](_0x433a49['id']),_0x1f9ff8=_0x3b5e00['mainView']):(_0x1f9ff8=new _0xc40ea8(_0x14b56c['locale'],_0x433a49,_0x5a1f14,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1e5418['get']('comments.editorConfig'),'licenseKey':_0x1e5418['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1e5418['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1e5418['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1e5418['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1a5672(_0x1e5418['get']('locale'),_0x14b56c['locale']),'CommentView':_0x1e5418['get']('comments')['CommentView'],'CommentsListView':_0x566cf0,'CommentThreadInputView':_0x3e9466,'SuggestionView':_0x29af26}),_0x1f9ff8['suggestionView']['acceptButton']['on']('execute',()=>{_0x14b56c['editing']['view']['focus']();}),_0x1f9ff8['suggestionView']['discardButton']['on']('execute',()=>{_0x14b56c['editing']['view']['focus']();}),_0x3b5e00=_0x5c8c9d['createAnnotationView'](this['editor']['locale'],_0x1f9ff8),_0x3b5e00['bind']('isDirty')['to'](_0x1f9ff8,'isDirty'),_0x3b5e00['bind']('length')['to'](_0x1f9ff8),_0x3b5e00['bind']('type')['to'](_0x1f9ff8,'type',_0x588fd0=>'suggestion-'+_0x588fd0),_0x1f9ff8['on']('escape',()=>{_0x3fcc08['fire']('escape');}),this['_annotationViews']['set'](_0x433a49['id'],_0x3b5e00));const _0xec00a7=_0x214cf5['createCommentThreadController'](_0x433a49['commentThread'],_0x1f9ff8),_0x1b5f04=new rn(_0x14b56c,_0x433a49,_0x1f9ff8,_0xec00a7),_0x5bb71a=_0x433a49['getAllAdjacentSuggestions']()['filter'](_0x14ba80=>_0x14ba80['isInContent']);_0x1f9ff8['descriptionParts']=_0x14b56c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5bb71a),this['_suggestionToController']['set'](_0x433a49,_0x1b5f04),this['_viewToController']['set'](_0x1f9ff8,_0x1b5f04);const _0x2a268c=()=>{const _0x459bf3=[],_0x175b31=_0x433a49['getAllAdjacentSuggestions']()['filter'](_0x38206b=>_0x38206b['isInContent']);for(const _0x260431 of _0x175b31)_0x459bf3['push'](..._0x260431['getMarkers']());return _0x4bf4ee(_0x14b56c['editing'],_0x459bf3);};_0x3fcc08=_0x5c8c9d['createAnnotation']({'view':_0x3b5e00,'target':_0x2a268c,'type':()=>'suggestion-'+_0x1b5f04['view']['type'],'isVisible':!!_0x2a268c()}),_0x214cf5['_bindAnnotationToEditors'](_0x1f9ff8,_0x3fcc08),_0x5c8c9d['add'](_0x3fcc08),_0x1b5e0['registerAnnotation'](_0x3fcc08);}['_destroyController'](_0x3ed1ea){const _0x1dbc7=this['editor']['plugins']['get']('CommentsRepository'),_0x2daedc=this['editor']['plugins']['get']('Annotations'),_0x26d66e=this['_suggestionToController']['get'](_0x3ed1ea),_0x56e566=_0x26d66e['view'],_0x19785c=_0x2daedc['getByInnerView'](_0x56e566);_0x1dbc7['_unbindEditors'](_0x56e566),_0x19785c&&_0x2daedc['remove'](_0x19785c),this['_suggestionToController']['delete'](_0x3ed1ea),this['_viewToController']['delete'](_0x56e566),_0x26d66e['destroy']();}['_updateController'](_0x49f5ce){if(!_0x49f5ce['isInContent']||!this['_suggestionToController']['has'](_0x49f5ce))return;const _0x2bde20=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2df7d1=this['_suggestionToController']['get'](_0x49f5ce),_0xd55048=_0x49f5ce['getAllAdjacentSuggestions']();_0x2df7d1['view']['descriptionParts']=_0x2bde20['descriptionFactory']['getDescriptions'](_0xd55048);}['destroy'](){for(const _0x48a874 of this['_suggestionToController']['keys']())this['_destroyController'](_0x48a874);for(const _0x2ae325 of this['_annotationViews']['values']())_0x2ae325['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function un(_0x22c6fb){return'model'in _0x22c6fb;}class hn extends _0x46e166{static get['requires'](){return[Ve,ln,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x34b8d5){this['editor']['plugins']['get'](Ve)['adapter']=_0x34b8d5;}get['adapter'](){return this['editor']['plugins']['get'](Ve)['adapter'];}['addSuggestion'](_0x5d33a8){return this['editor']['plugins']['get'](Ve)['addSuggestionData'](_0x5d33a8);}['getSuggestions']({skipNotAttached:_0x12338f=!0x1,toJSON:_0x25881b=!0x1}={}){return this['editor']['plugins']['get'](Ve)['getSuggestions']({'skipNotAttached':_0x12338f,'toJSON':_0x25881b});}['getSuggestion'](_0x44e2dc){return this['editor']['plugins']['get'](Ve)['getSuggestion'](_0x44e2dc);}}const dn=['Pagination'];class fn extends _0x46e166{static get['requires'](){return[Ve];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2439f4=this['editor'];if(_0x2439f4['config']['define']('trackChangesData.editorCreator',_0x3cf9cf=>{const _0x5767bb=_0x2439f4['model']['document']['getRootNames']()['reduce']((_0x3ba157,_0x89583e)=>(_0x3ba157[_0x89583e]='',_0x3ba157),{});return _0x2439f4['constructor']['create'](_0x5767bb,_0x3cf9cf);}),'function'!=typeof _0x2439f4['config']['get']('trackChangesData')['editorCreator'])throw new _0x421710('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5b0256){return En(this['editor'],!0x0,_0x5b0256);}['getDataWithDiscardedSuggestions'](_0x3deda6){return En(this['editor'],!0x1,_0x3deda6);}}class gn extends _0x46e166{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30779b){function _0x3fa90e(_0x49ae7e){return _0x49ae7e['map'](_0x5a30bf=>String['fromCharCode'](_0x5a30bf))['join']('');}super(_0x30779b),this['result']='end',_0x30779b[_0x3fa90e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fa90e([0x76,0x69,0x65,0x77])][_0x3fa90e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fa90e([0x61,0x75,0x74,0x6f]),_0x30779b[_0x3fa90e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3fa90e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fa90e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3fa90e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3fa90e([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 mn(_0x14fb1a){return void 0x0!==_0x14fb1a['getRootsAttributes'];}async function En(_0xc08fbe,_0x4e77d9,_0x1c26b3){const _0xd081bf=_0x38cd05(_0xc08fbe,dn);_0xd081bf['plugins']['push'](Ve,gn),_0xd081bf['rootsAttributes']=mn(_0xc08fbe)?_0xc08fbe['getRootsAttributes']():void 0x0;const _0x40fdea=document['createDocumentFragment'](),_0x13451d=_0xc08fbe['config']['get']('trackChangesData')['editorCreator'],_0x1fbb02=await _0x13451d(_0xd081bf,()=>function(_0x41c0ee){const _0x289a4b=document['createElement']('div');return _0x41c0ee['appendChild'](_0x289a4b),_0x289a4b;}(_0x40fdea));!function(_0x5aaca7,_0x49cc9e){const _0x2d5e9c=_0x5aaca7['model']['document']['getRootNames']()['reduce']((_0x567c07,_0x241525)=>(_0x567c07[_0x241525]=_0x5aaca7['data']['get']({'rootName':_0x241525}),_0x567c07),{}),_0xa3a3d1=_0x5aaca7['plugins']['get']('Users')['users']['map'](_0x468a96=>({'id':_0x468a96['id'],'name':_0x468a96['name']})),_0x50eec5=_0x5aaca7['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x157fbc=_0x5aaca7['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a9077=_0x49cc9e['plugins']['get']('Users'),_0x396b6e=_0x49cc9e['plugins']['get']('TrackChangesEditing'),_0x4dac16=_0x49cc9e['plugins']['get']('CommentsRepository');for(const _0x1d8b38 of _0x4dac16['getCommentThreads']())_0x1d8b38['remove']();for(const _0x2e02c5 of _0xa3a3d1)_0x5a9077['getUser'](_0x2e02c5['id'])||_0x5a9077['addUser'](_0x2e02c5);_0x5a9077['me']||_0x5a9077['useAnonymousUser']();for(const _0x59d8a8 of _0x157fbc)_0x4dac16['addCommentThread'](_0x59d8a8);for(const _0x36c6a2 of _0x50eec5)_0x396b6e['addSuggestionData'](_0x36c6a2);_0x49cc9e['data']['set'](_0x2d5e9c);}(_0xc08fbe,_0x1fbb02),_0x1fbb02['execute'](_0x4e77d9?'acceptAllSuggestions':'discardAllSuggestions');const _0x532923=mn(_0x1fbb02)?_0x1fbb02['getFullData'](_0x1c26b3):_0x1fbb02['data']['get'](_0x1c26b3);return await _0x1fbb02['destroy'](),_0x532923;}class Tn extends _0x48a8df{['options'];constructor(_0x33eb2e,_0x52450c){super(_0x33eb2e),this['options']=_0x52450c,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'](_0x28cb95,_0x5cf743){if(!this['element'])return;const _0x36da43=[];for(const [_0x4af731,_0x2283b0]of _0x28cb95){const _0x423717=document['createElement']('div');_0x423717['setAttribute']('data-ck-root-name',_0x4af731),_0x423717['className']=_0x2283b0['classes']+'\x20ck-track-changes-preview__root-container',_0x423717['innerHTML']=_0x2283b0['content'],_0x36da43['push'](_0x423717);}_0x5cf743(this['element'],_0x36da43),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class _n extends _0x3a87a0{constructor(_0x95ac89){super(_0x95ac89),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3bc935=this['editor'],_0x287fbc=_0x3bc935['locale'],_0x338213=_0x3bc935['plugins']['get']('Dialog');let _0x4af422;const _0x5d67e0=function(_0x3f014e){const _0x52b364={};if('editables'in _0x3f014e['ui']['view']){for(const [_0x3036cd,_0x274996]of Object['entries'](_0x3f014e['ui']['view']['editables']))_0x52b364[_0x3036cd]=_0x274996['element'];}else _0x52b364[_0x3f014e['model']['document']['getRootNames']()[0x0]]=_0x3f014e['ui']['view']['editable']['element'];return _0x52b364;}(_0x3bc935),_0x2a0250=function(_0x45d003){let _0x5693ab=0x0;for(const _0x18b208 of Object['values'](_0x45d003))_0x5693ab=Math['max'](_0x5693ab,_0x18b208['getBoundingClientRect']()['width']);let _0x2371ea=0x0;for(const _0x1c99a5 of Object['values'](_0x45d003))_0x2371ea+=_0x1c99a5['getBoundingClientRect']()['height'];const _0xfa6984=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x429028=Math['min'](_0x2371ea,_0xfa6984);return{'width':_0x5693ab,'height':_0x429028};}(_0x5d67e0);_0x338213['show']({'id':'finalContentPreview','title':pt(_0x287fbc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Tn(_0x287fbc,{'dialogRects':_0x2a0250}),'onHide':()=>{_0x4af422['detachFromDom']();},'onShow':()=>{_0x3bc935['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x26ee0c=>{const _0x4324f0=this['_standarizeRootsData'](_0x26ee0c,_0x3bc935,_0x5d67e0);_0x338213['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4324f0,_0x3bc935['config']['get']('trackChanges.preview.renderFunction'));}),_0x4af422=new _0x4992fe(_0x287fbc,[_0x338213['view']]),_0x4af422['attachToDom'](),_0x4af422['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3bc935['once']('destroy',()=>{_0x4af422['detachFromDom']();});const _0x4fde04=_0x338213['view']['headerView']['class'];_0x338213['view']['headerView']['class']=_0x4fde04?_0x4fde04+'\x20ck-reset_all':'ck-reset_all',_0x338213['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x338213['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5cd4c6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x593c64=_0x5cd4c6['previewMode'],_0x582fda={};if('$labels'===_0x593c64){for(const _0x10b579 of _0x5cd4c6['getMergeFieldsIds']())_0x582fda[_0x10b579]=_0x5cd4c6['getLabel'](_0x10b579)||_0x10b579;}else{const _0x4427f9='$defaultValues'===_0x593c64?_0x5cd4c6['getDefaultValues']():_0x5cd4c6['getDataSetValues'](_0x593c64,!0x0);for(const _0xda4ae of Object['entries'](_0x4427f9)){const [_0x363d0f,_0x51e46c]=_0xda4ae;_0x582fda[_0x363d0f]=null!==_0x51e46c?_0x51e46c:_0x5cd4c6['getLabel'](_0x363d0f)||_0x363d0f;}}return{'mergeFieldsData':_0x582fda};}['_standarizeRootsData'](_0x4d1a06,_0x2de34b,_0xc4cd0e){let _0x3f2d85;if('string'==typeof _0x4d1a06){const _0x5918c9=_0x2de34b['model']['document']['getRootNames']()[0x0];_0x3f2d85={[_0x5918c9]:_0x4d1a06};}else _0x3f2d85=_0x4d1a06;const _0x13084b=this['_fixMediaEmbeds'](_0x3f2d85,_0x2de34b),_0xdde4fb=function(_0x39ae42,_0x25853b){for(const [_0x43253d,_0x14bac7]of _0x39ae42)_0x14bac7['classes']=_0x25853b[_0x43253d]['classList']['value']['replace']('ck-focused','');return _0x39ae42;}(this['_sortRoots'](_0x2de34b)['reduce']((_0x541a59,_0x2bd90c)=>(_0x541a59['push']([_0x2bd90c,{'content':_0x13084b[_0x2bd90c],'classes':''}]),_0x541a59),[]),_0xc4cd0e);return _0xdde4fb;}['_fixMediaEmbeds'](_0x5c1a7c,_0x77538f){if(!_0x77538f['plugins']['has']('MediaEmbedEditing'))return _0x5c1a7c;const _0x14ae04=_0x77538f['plugins']['get']('MediaEmbedEditing');for(const [_0x731da3,_0x315272]of Object['entries'](_0x5c1a7c)){const _0x5e003a=document['createElement']('div');_0x5e003a['innerHTML']=_0x315272,(_0x5e003a['querySelectorAll']('figure.media')['forEach'](_0x2cdb09=>{const _0x724b35=_0x2cdb09['querySelector']('oembed');if(_0x724b35){const _0xbbc10c=_0x724b35['getAttribute']('url');if(_0xbbc10c){const _0x49975f=_0x14ae04['registry']['getMediaViewElement'](new _0x55eee0(_0x77538f['editing']['view']['document']),_0xbbc10c,{'elementName':'','renderForEditingView':!0x0}),_0x33d292=document['createElement']('div');_0x33d292['classList']['add']('ck-media__wrapper'),_0x49975f['render'](_0x33d292,_0x77538f['editing']['view']['domConverter']),_0x724b35['replaceWith'](_0x33d292);}}}),_0x5c1a7c[_0x731da3]=_0x5e003a['innerHTML']);}return _0x5c1a7c;}['_sortRoots'](_0xe37396){if(!function(_0x47778a){return void 0x0!==_0x47778a['getRootsAttributes'];}(_0xe37396))return _0xe37396['model']['document']['getRootNames']();const _0x15be1d=[],_0x3916b5=new Map();for(const _0x3d4504 of _0xe37396['model']['document']['getRootNames']()){const _0x26b9ce=_0xe37396['editing']['view']['getDomRoot'](_0x3d4504)['getClientRects']()['item'](0x0);_0x15be1d['push'](_0x3d4504),_0x3916b5['set'](_0x3d4504,_0x26b9ce);}return _0x15be1d['sort']((_0xc6699,_0x88363d)=>{const _0x1f221f=_0x3916b5['get'](_0xc6699),_0x2a8a81=_0x3916b5['get'](_0x88363d);return _0x1f221f['y']-_0x2a8a81['y']||_0x1f221f['x']-_0x2a8a81['x'];}),_0x15be1d;}}class pn extends _0x46e166{static get['requires'](){return[fn,_0x566640];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c2b30){super(_0x3c2b30),_0x3c2b30['commands']['add']('previewFinalContent',new _n(this['editor'])),_0x3c2b30['config']['define']('trackChanges.preview.renderFunction',(_0x10885f,_0x334ef1)=>{for(const _0x3969aa of _0x334ef1)_0x10885f['appendChild'](_0x3969aa);});}}export{ct as AcceptSuggestionCommand,on as BaseSuggestionThreadView,lt as DiscardSuggestionCommand,Et as ExecuteOnAllSuggestionsCommand,Tt as ExecuteOnSelectedSuggestionsCommand,_n as PreviewFinalContentCommand,_t as Suggestion,Lt as SuggestionDescriptionFactory,an as SuggestionThreadView,cn as SuggestionView,hn as TrackChanges,at as TrackChangesCommand,fn as TrackChangesData,gn as TrackChangesDataGetter,Ve as TrackChangesEditing,pn as TrackChangesPreview,ln as TrackChangesUI};
|