@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250210.0 → 0.0.0-nightly-next-20250211.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/build/track-changes.js +1 -1
- package/ckeditor5-metadata.json +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +27 -26
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +0 -11
- package/theme/icons/track-changes-discard.svg +0 -11
- package/theme/icons/track-changes.svg +0 -11
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x44e880(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x615a8e,_0xb1a36d){super(),this['id']=_0xb1a36d['id'],this['type']=_0xb1a36d['type'],this['subType']=_0xb1a36d['subType']||null,this['author']=_0xb1a36d['author'],this['creator']=_0xb1a36d['creator']||_0xb1a36d['author'],this['isExternal']=Boolean(_0xb1a36d['attributes']&&_0xb1a36d['attributes']['@external']),this['data']=null,this['_model']=_0x615a8e,this['_onAccept']=_0xb1a36d['onAccept'],this['_onDiscard']=_0xb1a36d['onDiscard'],this['_onAttributesChange']=_0xb1a36d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xb1a36d['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 _0x56df9d=this;for(;_0x56df9d['previous'];)_0x56df9d=_0x56df9d['previous'];return _0x56df9d;}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'](_0x26a686){this['_markerNames']['add'](_0x26a686);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2babbd=>this['_model']['markers']['get'](_0x2babbd))['filter'](_0x52d258=>_0x52d258);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x29ac54=>{for(const _0x217586 of this['getMarkers']())_0x29ac54['removeMarker'](_0x217586);}),this['_markerNames']['clear']();}['removeMarker'](_0x48cdf8){this['_model']['change'](_0x26d06e=>{_0x26d06e['removeMarker'](_0x48cdf8);}),this['_markerNames']['delete'](_0x48cdf8);}['addRange'](_0x3fdc0b){const _0x25f6f8='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x25f6f8),this['_model']['change'](_0xa061dc=>{_0xa061dc['addMarker'](_0x25f6f8,{'range':_0x3fdc0b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xe88f6f){for(const _0xd4df67 of this['getRanges']())if(_0xd4df67['isIntersecting'](_0xe88f6f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x342314=>_0x342314['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x46261a,_0x29068f)=>[..._0x46261a,..._0x29068f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x13719d=this['getRanges']();if(0x1!=_0x13719d['length'])return null;const _0x41c1ab=_0x13719d[0x0],_0x50f592=_0x41c1ab['start']['nodeAfter'],_0x3b2465=_0x41c1ab['end']['nodeBefore'];return _0x50f592 instanceof _0x2ee9c0?_0x50f592!=_0x3b2465?null:_0x50f592: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 _0x28613c=[];let _0x2e6062=this['head'];for(;_0x2e6062;)_0x28613c['push'](_0x2e6062),_0x2e6062=_0x2e6062['next'];return _0x28613c;}['setAttribute'](_0xf6fdb5,_0x212d80){const _0x3bf6b0=_0x7a7cb2(this['attributes']);_0x5527d(_0x3bf6b0,_0xf6fdb5,_0x212d80),_0x5a7cf5(_0x3bf6b0,this['attributes'])||(this['attributes']=_0x3bf6b0,this['_onAttributesChange'](_0x3bf6b0));}['removeAttribute'](_0x21cc1d){const _0x1b30f9=_0x7a7cb2(this['attributes']);_0x16bf74(_0x1b30f9,_0x21cc1d),_0x5a7cf5(_0x1b30f9,this['attributes'])||(this['attributes']=_0x1b30f9,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 _0x309c8a()['substr'](0x1,0x5);}}function o(_0x39b192,_0x13c471,_0x5cee1b){const _0x2e79e1=_0x39b192['t'],t=_0x39b192['t'];switch(_0x13c471){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',_0x5cee1b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5cee1b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5cee1b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5cee1b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5cee1b);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',_0x5cee1b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5cee1b);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',_0x5cee1b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5cee1b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5cee1b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5cee1b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5cee1b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5cee1b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5cee1b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5cee1b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5cee1b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5cee1b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5cee1b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5cee1b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5cee1b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5cee1b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5cee1b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5cee1b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5cee1b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5cee1b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5cee1b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5cee1b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5cee1b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5cee1b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5cee1b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5cee1b);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'},_0x5cee1b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5cee1b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5cee1b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5cee1b);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'},_0x5cee1b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5cee1b);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 _0x2e79e1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5cee1b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2e79e1({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5cee1b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5cee1b);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'},_0x5cee1b);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'},_0x5cee1b);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'},_0x5cee1b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x13c471;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x411d04,_0x506bc1){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x411d04,this['_locale']=_0x506bc1;}['getDescriptions'](_0x8bb661){const _0x58f019=[],_0x4597eb=new Set(),_0x81b03d=new Set();for(let _0x15c366=0x0;_0x15c366<_0x8bb661['length'];_0x15c366++){const _0xee5c8=_0x8bb661[_0x15c366];if(!_0xee5c8['isInContent'])continue;const _0x5a5d6f=this['_handleCustomCallbackDescription'](_0xee5c8);if(_0x5a5d6f){if(null!=_0xee5c8['subType']){if(_0x4597eb['has'](_0xee5c8['subType']))continue;_0x4597eb['add'](_0xee5c8['subType']);}_0x58f019['push'](_0x5a5d6f);}else{if('attribute'!=_0xee5c8['type'])'insertion'!=_0xee5c8['type']&&'deletion'!=_0xee5c8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x58f019,_0xee5c8,_0x8bb661[_0x15c366+0x1]);else{const _0xe5f5b9=_0xee5c8['data']['key'];if(_0x81b03d['has'](_0xe5f5b9))continue;_0x81b03d['add'](_0xee5c8['data']['key']),_0xe5f5b9==m?this['_handleRenameSuggestionDescription'](_0x58f019,_0xee5c8):this['_handleAttributeSuggestionDescription'](_0x58f019,_0xee5c8);}}}return this['_resolveDescriptionItems'](_0x58f019);}['registerDescriptionCallback'](_0x4a51dd){this['_customCallbacks']['push'](_0x4a51dd);}['registerElementLabel'](_0x428c5c,_0x1ef60b,_0x37640c=_0x574764['normal']){'function'==typeof _0x428c5c?_0x264422(this['_itemLabelsCallbacks'],{'matchingCallback':_0x428c5c,'label':_0x1ef60b,'priority':_0x37640c}):this['_itemLabels']['set'](_0x428c5c,_0x1ef60b);}['registerAttributeLabel'](_0x44b430,_0x1090b8){this['_attributeLabels']['set'](_0x44b430,_0x1090b8);}['getItemLabel'](_0x5901f8,_0x13bbec=0x1){let _0x6676b2;for(const _0x4f5356 of this['_itemLabelsCallbacks'])if(_0x4f5356['matchingCallback'](_0x5901f8)){_0x6676b2=_0x4f5356['label'];break;}return _0x6676b2||(_0x6676b2=this['_itemLabels']['get'](_0x5901f8['name'])),_0x6676b2?_0x6676b2(_0x13bbec):0x1!==_0x13bbec?_0x13bbec+'\x20'+_0x5901f8['name']+'s':''+_0x5901f8['name'];}['_addDescriptionItems'](_0xddccd2,_0x1c0a13){const _0x5cdf27=_0x1c0a13['getFirstRange']()['getWalker'](),_0xfe6db1='insertion'==_0x1c0a13['type']?'add':'remove';for(const _0xd8d953 of _0x5cdf27){const _0x38de7f=_0xd8d953['item'],_0x338c7c=_0xddccd2[_0xddccd2['length']-0x1];if(_0x38de7f['is']('$textProxy'))_0x338c7c&&_0x338c7c['type']['indexOf']('Container')>-0x1&&_0xddccd2['pop'](),_0x338c7c&&'text'==_0x338c7c['type']?_0x338c7c[_0xfe6db1]+=_0x38de7f['data']:_0xddccd2['push']({'type':'text','add':'add'==_0xfe6db1?_0x38de7f['data']:'','remove':'remove'==_0xfe6db1?_0x38de7f['data']:''});else{if(this['_schema']['isObject'](_0x38de7f)){const _0x17b3df=_0x38de7f;if(_0x338c7c&&_0x338c7c['type']['indexOf']('Container')>-0x1&&_0xddccd2['pop'](),'elementEnd'==_0xd8d953['type'])continue;_0x338c7c&&_0x338c7c['type']==_0xfe6db1+'Object'&&_0x338c7c['element']['name']==_0x17b3df['name']?_0x338c7c['quantity']++:_0xddccd2['push']({'type':_0xfe6db1+'Object','element':_0x17b3df,'quantity':0x1}),_0x5cdf27['skip'](_0x4665d3=>!('elementEnd'==_0x4665d3['type']&&_0x4665d3['item']==_0x38de7f));}else{if(this['_schema']['checkChild'](_0x38de7f,'$text')||_0x38de7f['is']('element','softBreak')){const _0x4a27d3=_0x38de7f;if('add'==_0xfe6db1&&'elementStart'==_0xd8d953['type']||'remove'==_0xfe6db1&&'elementEnd'==_0xd8d953['type'])continue;if(_0x338c7c&&-0x1==_0x338c7c['type']['indexOf']('Container')){'text'==_0x338c7c['type']&&(_0x338c7c[_0xfe6db1]+='\x0a');continue;}let _0x3c445b;if(_0x3c445b='add'==_0xfe6db1?_0x4a27d3['nextSibling']&&!this['_schema']['isObject'](_0x4a27d3['nextSibling'])?_0x4a27d3['nextSibling']:null:_0x4a27d3['previousSibling']&&!this['_schema']['isObject'](_0x4a27d3['previousSibling'])?_0x4a27d3['previousSibling']:null,_0x4a27d3['isEmpty']||_0x3c445b&&_0x3c445b['isEmpty']){const _0x55f7e7=_0x3c445b&&_0x3c445b['isEmpty']?_0x3c445b:_0x4a27d3;_0x338c7c&&_0x338c7c['type']==_0xfe6db1+'EmptyContainer'&&_0x338c7c['element']['name']==_0x55f7e7['name']?_0x338c7c['quantity']++:_0xddccd2['push']({'type':_0xfe6db1+'EmptyContainer','element':_0x55f7e7,'quantity':0x1});}else _0xddccd2['push']({'type':_0xfe6db1+'Container','element':_0x4a27d3});}}}}}['_resolveDescriptionItems'](_0x24a035){const _0x1f5d99=this['_locale'],_0x15f2f7=[],_0x31606a=[],_0x3e5349=[];for(const _0x1b324d of _0x24a035)switch(_0x1b324d['type']){case'text':if(_0x1b324d['add']=_0x1b324d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1b324d['remove']=_0x1b324d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1b324d['add']&&''!=_0x1b324d['remove']){_0x15f2f7['push']({'type':'replace','content':o(_0x1f5d99,'REPLACE_TEXT',['\x22'+_0x1b324d['remove']+'\x22','\x22'+_0x1b324d['add']+'\x22'])});continue;}if(null!=_0x1b324d['add']['match'](/^ +$/)){_0x15f2f7['push']({'type':'insertion','content':o(_0x1f5d99,'*Insert:*\x20%0',o(_0x1f5d99,'ELEMENT_SPACE',_0x1b324d['add']['length']))});continue;}if(null!=_0x1b324d['remove']['match'](/^ +$/)){_0x15f2f7['push']({'type':'deletion','content':o(_0x1f5d99,'*Remove:*\x20%0',o(_0x1f5d99,'ELEMENT_SPACE',_0x1b324d['remove']['length']))});continue;}if(''!=_0x1b324d['add']){_0x15f2f7['push']({'type':'insertion','content':o(_0x1f5d99,'*Insert:*\x20%0','\x22'+_0x1b324d['add']+'\x22')});continue;}_0x15f2f7['push']({'type':'deletion','content':o(_0x1f5d99,'*Remove:*\x20%0','\x22'+_0x1b324d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x15f2f7['push']({'type':'insertion','content':o(_0x1f5d99,'*Insert:*\x20%0',this['getItemLabel'](_0x1b324d['element'],_0x1b324d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x15f2f7['push']({'type':'deletion','content':o(_0x1f5d99,'*Remove:*\x20%0',this['getItemLabel'](_0x1b324d['element'],_0x1b324d['quantity']))});continue;case'addContainer':_0x15f2f7['push']({'type':'insertion','content':o(_0x1f5d99,'*Split:*\x20%0',this['getItemLabel'](_0x1b324d['element'],_0x1b324d['quantity']))});continue;case'removeContainer':_0x15f2f7['push']({'type':'deletion','content':o(_0x1f5d99,'*Merge:*\x20%0',this['getItemLabel'](_0x1b324d['element'],_0x1b324d['quantity']))});continue;case'addFormat':_0x31606a['push'](_0x1b324d['key']);continue;case'removeFormat':_0x3e5349['push'](_0x1b324d['key']);continue;default:_0x15f2f7['push'](_0x1b324d);}if(_0x31606a['length']){const _0x5e4deb=_0x31606a['map'](_0x399516=>this['_attributeLabels']['has'](_0x399516)?this['_attributeLabels']['get'](_0x399516):_0x399516)['join'](',\x20');_0x15f2f7['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5e4deb)});}if(_0x3e5349['length']){const _0x4c0a48=_0x3e5349['map'](_0x47f1d1=>this['_attributeLabels']['has'](_0x47f1d1)?this['_attributeLabels']['get'](_0x47f1d1):_0x47f1d1)['join'](',\x20');_0x15f2f7['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4c0a48)});}return _0x15f2f7;}['_handleCustomCallbackDescription'](_0xe0ffc5){for(const _0x1e50ba of this['_customCallbacks']){const _0x3819a9=_0x1e50ba(_0xe0ffc5);if(_0x3819a9&&'type'in _0x3819a9)return _0x3819a9;}}['_handleAttributeSuggestionDescription'](_0x51e4e7,_0x1ffa63){const _0x2a31bd=_0x1ffa63['data'],_0x37c6bf=void 0x0===_0x2a31bd['newValue']?'removeFormat':'addFormat';_0x51e4e7['push']({'type':_0x37c6bf,'key':_0x2a31bd['key']});}['_handleRenameSuggestionDescription'](_0x2bde52,_0xed98c2){_0x2bde52['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xed98c2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1717a2,_0x5f23a4,_0x3f06f6){if(this['_addDescriptionItems'](_0x1717a2,_0x5f23a4),_0x3f06f6&&_0x3f06f6['getFirstRange']()&&!_0x5f23a4['getFirstRange']()['end']['isEqual'](_0x3f06f6['getFirstRange']()['start'])){const _0x49879a=_0x1717a2[_0x1717a2['length']-0x1],_0x1f95c8='insertion'==_0x5f23a4['type']?'add':'remove';_0x49879a&&'text'==_0x49879a['type']&&(_0x49879a[_0x1f95c8]+='\x0a');}}}class U extends _0x2bd390{['afterInit'](){const _0x7a4ead=this['editor'],_0x19434b=_0x7a4ead['plugins']['get']('TrackChangesEditing');_0x7a4ead['commands']['get']('showAIAssistant')&&_0x19434b['enableCommand']('showAIAssistant');}}class V extends _0x2bd390{['afterInit'](){const _0x300438=this['editor'],_0x1fbe55=_0x300438['locale'];if(!_0x300438['plugins']['has']('AlignmentEditing'))return;const _0x3f23f5=_0x300438['plugins']['get']('TrackChangesEditing');_0x3f23f5['enableDefaultAttributesIntegration']('alignment'),_0x3f23f5['registerBlockAttribute']('alignment'),_0x3f23f5['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1fbe55,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32f4dc=this['editor'],_0xea28a9=_0x32f4dc['locale'];_0x32f4dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565e23=>{if('formatBlock'!=_0x565e23['type'])return;const {data:_0x177706}=_0x565e23;if(_0x177706&&'alignment'==_0x177706['commandName']){const _0x390908=_0x177706['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xea28a9,'*Format:*\x20%0',function(_0x1b3375){switch(_0x1b3375){case'left':return o(_0xea28a9,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xea28a9,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xea28a9,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xea28a9,'FORMAT_JUSTIFY_TEXT');}}(_0x390908))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2bd390{['afterInit'](){const _0x347cd8=this['editor'],_0x5d9586=_0x347cd8['plugins']['get']('TrackChangesEditing'),_0x22c73b=_0x347cd8['locale'];for(const _0x5c164b of ti){if(!_0x347cd8['plugins']['has'](_0x5c164b))continue;const _0x31f768=_0x5c164b['slice'](0x0,-0x7)['toLowerCase'](),_0x24ed3f='FORMAT_'+_0x31f768['toUpperCase']();_0x5d9586['enableDefaultAttributesIntegration'](_0x31f768),_0x5d9586['registerInlineAttribute'](_0x31f768),_0x5d9586['descriptionFactory']['registerAttributeLabel'](_0x31f768,o(_0x22c73b,_0x24ed3f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fda9e=this['editor'],_0x4dfacb=_0x2fda9e['locale'],_0x123475=_0x2fda9e['plugins']['get']('TrackChangesEditing');function _0x12b4e2(_0x2d37a0,_0x52b101){_0x123475['descriptionFactory']['registerDescriptionCallback'](_0x4871dc=>{if('formatInline'!=_0x4871dc['type'])return;const {data:_0x1933a1}=_0x4871dc;return _0x1933a1&&_0x1933a1['commandName']===_0x2d37a0?_0x1933a1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4dfacb,'*Format:*\x20%0',_0x52b101)}:{'type':'format','content':o(_0x4dfacb,'*Remove\x20format:*\x20%0',_0x52b101)}:void 0x0;});}_0x12b4e2('bold',o(_0x4dfacb,'FORMAT_BOLD')),_0x12b4e2('italic',o(_0x4dfacb,'FORMAT_ITALIC')),_0x12b4e2('underline',o(_0x4dfacb,'FORMAT_UNDERLINE')),_0x12b4e2('code',o(_0x4dfacb,'FORMAT_CODE')),_0x12b4e2('strikethrough',o(_0x4dfacb,'FORMAT_STRIKETHROUGH')),_0x12b4e2('subscript',o(_0x4dfacb,'FORMAT_SUBSCRIPT')),_0x12b4e2('superscript',o(_0x4dfacb,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2bd390{['afterInit'](){const _0x39a256=this['editor'],_0x538d0a=_0x39a256['locale'];if(!_0x39a256['plugins']['has']('BlockQuoteEditing'))return;const _0x251b39=_0x39a256['plugins']['get']('TrackChangesEditing'),_0x550e2b=this['editor']['commands']['get']('blockQuote');_0x251b39['enableCommand']('blockQuote',(_0x2f543f,_0x47e2fb={})=>{const _0x2b26fa=this['editor']['model']['document']['selection'],_0x2a392a=_0x47e2fb&&void 0x0!==_0x47e2fb['forceValue']?_0x47e2fb['forceValue']:!_0x550e2b['value'];let _0x5152e0=[];if(_0x2a392a){const _0x1d7913=Array['from'](_0x2b26fa['getSelectedBlocks']())['filter'](_0x3a8435=>oo(_0x3a8435)||function(_0x464ea9,_0x4bd3d1){const _0x5c1bcf=_0x4bd3d1['checkChild'](_0x464ea9['parent'],'blockQuote'),_0x3c4a83=_0x4bd3d1['checkChild'](['$root','blockQuote'],_0x464ea9);return _0x5c1bcf&&_0x3c4a83;}(_0x3a8435,this['editor']['model']['schema']));_0x5152e0=to(_0x1d7913,_0x39a256['model']);}else{const _0x3bc741=Array['from'](_0x2b26fa['getSelectedBlocks']())['filter'](_0x349b6c=>oo(_0x349b6c));_0x5152e0=to(_0x3bc741,_0x39a256['model']);}_0x39a256['model']['change'](()=>{for(const _0x5126b4 of _0x5152e0)_0x251b39['markBlockFormat'](_0x5126b4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2a392a}]});});}),_0x251b39['descriptionFactory']['registerDescriptionCallback'](_0x4141ce=>{const {data:_0x1f98a3}=_0x4141ce;if(_0x1f98a3&&'blockQuote'==_0x1f98a3['commandName']){const _0x4741e2=o(_0x538d0a,'ELEMENT_BLOCK_QUOTE');return _0x1f98a3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x538d0a,'*Set\x20format:*\x20%0',_0x4741e2)}:{'type':'format','content':o(_0x538d0a,'*Remove\x20format:*\x20%0',_0x4741e2)};}});}}function oo(_0x8a753a){return'blockQuote'==_0x8a753a['parent']['name'];}class L extends _0x2bd390{['afterInit'](){const _0x8b8bfe=this['editor'],_0xd6351e=_0x8b8bfe['locale'],_0x426551=_0x8b8bfe['plugins']['get']('TrackChangesEditing');_0x8b8bfe['plugins']['has']('BookmarkEditing')&&(_0x426551['enableCommand']('insertBookmark'),_0x426551['enableDefaultAttributesIntegration']('updateBookmark'),_0x426551['registerBlockAttribute']('bookmarkId'),_0x426551['descriptionFactory']['registerDescriptionCallback'](_0x1c7f4b=>{if('insertion'!=_0x1c7f4b['type']&&'deletion'!=_0x1c7f4b['type']&&'attribute'!=_0x1c7f4b['type'])return;const _0x4e1fbc=_0x1c7f4b['getContainedElement']();if(null==_0x4e1fbc)return;if(!_0x4e1fbc['is']('element','bookmark'))return;const _0x1d45af=_0x4e1fbc['getAttribute']('bookmarkId');if('insertion'==_0x1c7f4b['type'])return{'type':'insertion','content':o(_0xd6351e,'*Insert:*\x20%0','\x22'+_0x1d45af+'\x22\x20'+o(_0xd6351e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1c7f4b['type'])return{'type':'deletion','content':o(_0xd6351e,'*Remove:*\x20%0','\x22'+_0x1d45af+'\x22\x20'+o(_0xd6351e,'ELEMENT_BOOKMARK'))};const {data:_0x21cdea}=_0x1c7f4b;if(!_0x21cdea||'bookmarkId'!=_0x21cdea['key'])return;return{'type':'format','content':o(_0xd6351e,'*Set\x20bookmark:*\x20%0','\x22'+_0x21cdea['newValue']+'\x22')};}));}}class J extends _0x2bd390{['afterInit'](){const _0x5255c0=this['editor'];_0x5255c0['plugins']['has']('CaseChange')&&(_0x5255c0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5255c0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5255c0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2bd390{['afterInit'](){const _0x2d2b5a=this['editor'];_0x2d2b5a['commands']['get']('ckbox')&&_0x2d2b5a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2bd390{['afterInit'](){const _0x279224=this['editor'];if(!_0x279224['plugins']['has']('CodeBlock'))return;const _0x49f00b=_0x279224['plugins']['get']('TrackChangesEditing'),_0x2e36bc=_0x279224['locale'],_0x1ec889=_0x279224['config']['get']('codeBlock')['languages'],_0x4dc9db=_0x279224['commands']['get']('codeBlock');_0x49f00b['enableCommand']('indentCodeBlock'),_0x49f00b['enableCommand']('outdentCodeBlock'),_0x49f00b['enableCommand']('codeBlock',(_0x5246d4,_0x497bcb={})=>{const _0x20d25d=_0x279224['model'],_0x4dd2d5=_0x279224['model']['document']['selection'],_0x13c14e=_0x497bcb&&void 0x0!==_0x497bcb['forceValue']?_0x497bcb['forceValue']:!_0x4dc9db['value'];let _0x545bae;_0x497bcb['language']||(_0x497bcb['language']=_0x1ec889[0x0]['language']),_0x545bae=_0x13c14e?Array['from'](_0x4dd2d5['getSelectedBlocks']())['filter'](_0x50b509=>eo(_0x50b509)||function(_0x2fc17c,_0x2e8807){if(_0x2fc17c['is']('rootElement')||_0x2e8807['isLimit'](_0x2fc17c))return!0x1;return _0x2e8807['checkChild'](_0x2fc17c['parent'],'codeBlock');}(_0x50b509,_0x20d25d['schema'])):Array['from'](_0x4dd2d5['getSelectedBlocks']())['filter'](_0x2a0c33=>eo(_0x2a0c33));const _0x207a02=to(_0x545bae,_0x20d25d);_0x20d25d['change'](()=>{for(const _0x1b69b1 of _0x207a02)_0x49f00b['markBlockFormat'](_0x1b69b1,{'commandName':'codeBlock','commandParams':[{..._0x497bcb,'forceValue':_0x13c14e}],'formatGroupId':'blockName'});});}),(_0x49f00b['descriptionFactory']['registerElementLabel']('codeBlock',_0x6529ca=>o(_0x2e36bc,'ELEMENT_CODE_BLOCK',_0x6529ca)),_0x49f00b['descriptionFactory']['registerDescriptionCallback'](_0x4834e5=>{if('formatBlock'!=_0x4834e5['type'])return;const _0xc69cfa=_0x2e36bc['t'],{data:_0x16ebe4}=_0x4834e5;if(!_0x16ebe4||'codeBlock'!=_0x16ebe4['commandName'])return;const _0x5b225e=_0x16ebe4['commandParams'][0x0]['language'],_0x40c520=_0xc69cfa(_0x1ec889['find'](_0xe7b53d=>_0xe7b53d['language']===_0x5b225e)['label'])['toLowerCase']();return _0x16ebe4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e36bc,'*Set\x20format:*\x20%0',o(_0x2e36bc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x40c520+')')}:{'type':'format','content':o(_0x2e36bc,'*Remove\x20format:*\x20%0',o(_0x2e36bc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x25569b){return'codeBlock'==_0x25569b['name'];}class z extends _0x2bd390{['afterInit'](){const _0x4a789c=this['editor'];if(!_0x4a789c['plugins']['has']('CommentsEditing'))return;_0x4a789c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x23e815,_0xef1a7f,_0x17686f){const _0x33a1d1=[];for(const _0x234d4b of _0xef1a7f['getItems']())_0x234d4b['hasAttribute'](_0x23e815)&&_0x33a1d1['push'](_0x17686f['createRangeOn'](_0x234d4b));return _0x33a1d1;}function De(_0x29615c,_0x2228a8,{showActiveMarker:_0x6ba690=!0x0}={}){const _0x508c99=_0x29615c['plugins']['get']('TrackChangesEditing');return(_0x44e4ab,_0x125ccc,_0x2a9c84)=>{if(!_0x2a9c84['consumable']['test'](_0x125ccc['markerRange'],_0x44e4ab['name']))return;const _0x3cbfc2=_0x125ccc['markerRange']['getWalker'](),_0x2fab07=_0x125ccc['markerRange']['start'],_0x10f2a5=_0x29615c['model']['schema'];let _0x10c5b0=null,_0x4f9c2a=null,_0x121bd6=!0x1,_0x468193=!0x1;for(const _0xcc6698 of _0x3cbfc2){const _0x1ba6d9=_0xcc6698['item'];_0x121bd6=_0x121bd6||_0x10f2a5['isContent'](_0x1ba6d9);const _0x5a438d=_0x2a9c84['mapper']['toViewElement'](_0x1ba6d9);if(_0x5a438d&&_0x5a438d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xcc6698['type']&&(_0x10f2a5['isBlock'](_0x1ba6d9)&&!_0x10f2a5['isLimit'](_0x1ba6d9)&&(_0x1ba6d9['nextSibling']||_0x2fab07['isAtEnd']?_0x10c5b0&&_0x10c5b0['parent']==_0x1ba6d9||(_0x10c5b0=_0x1ba6d9,_0xb9735d(_0xcc6698['previousPosition']),_0x468193=!0x0):_0x4f9c2a=_0x4f9c2a||_0xcc6698['previousPosition']));}function _0xb9735d(_0x5e8d4b){const {authorId:_0x291068}=_0x508c99['_splitMarkerName'](_0x125ccc['markerName']),_0x36b47e=_0x2a9c84['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2228a8,'data-author-id':_0x291068}),_0x3e19e6=_0x2a9c84['mapper']['toViewPosition'](_0x5e8d4b);_0x6ba690&&_0x508c99['activeMarkers']['includes'](_0x125ccc['markerName'])&&_0x2a9c84['writer']['addClass']('ck-suggestion-marker--active',_0x36b47e),_0x2a9c84['writer']['insert'](_0x3e19e6,_0x36b47e),_0x2a9c84['mapper']['bindElementToMarker'](_0x36b47e,_0x125ccc['markerName']);}_0x121bd6||_0x468193||!_0x4f9c2a||_0xb9735d(_0x4f9c2a);};}class K extends _0x2bd390{static get['requires'](){return[_0x562238];}['init'](){const _0x374dcd=this['editor'],_0x5aee68=_0x374dcd['plugins']['get']('TrackChangesEditing');_0x5aee68['enableCommand']('delete');const _0x2d830b=_0x374dcd['commands']['get']('deleteForward');_0x5aee68['enableCommand']('deleteForward',(_0x4714c4,_0x224e3c={})=>{const _0x2f4b78=_0x374dcd['model']['createSelection'](_0x374dcd['model']['document']['selection']);_0x2f4b78['isCollapsed']&&_0x374dcd['model']['modifySelection'](_0x2f4b78,{'direction':'forward','unit':_0x224e3c['unit']});const _0x333dd2=_0x2f4b78['getFirstRange'](),_0x2d7140=_0xfaa3eb['fromRange'](_0x333dd2);let _0x5a4b78;_0x4714c4(_0x224e3c),_0x5a4b78='$graveyard'==_0x2d7140['root']['rootName']?_0x374dcd['model']['createRange'](_0x333dd2['start']):_0x374dcd['model']['createRange'](_0x2d7140['start'],_0x2d7140['end']),_0x2d7140['detach'](),_0x374dcd['model']['enqueueChange'](_0x2d830b['buffer']['batch'],_0x4a7c7e=>{_0x2d830b['buffer']['lock'](),_0x4a7c7e['setSelection'](_0x4a7c7e['createRange'](_0x5a4b78['end'])),_0x2d830b['buffer']['unlock']();});}),_0x374dcd['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x374dcd,'merge'),{'priority':'high'}),_0x374dcd['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x6886dd,_0x93810f,_0x534c1d)=>{_0x534c1d['options']['showSuggestionHighlights']&&De(_0x374dcd,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x6886dd,_0x93810f,_0x534c1d);},{'priority':'high'}),_0x374dcd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5ee0e5,_0xaeae03,_0x2441bc)=>{const _0x11be15=_0x2441bc['mapper']['markerNameToElements'](_0xaeae03['markerName']);if(_0x11be15){for(const _0x3f5c7c of _0x11be15)_0x3f5c7c['is']('uiElement')&&(_0x2441bc['mapper']['unbindElementFromMarkerName'](_0x3f5c7c,_0xaeae03['markerName']),_0x2441bc['writer']['remove'](_0x3f5c7c));}},{'priority':'high'});}}class W extends _0x2bd390{['afterInit'](){const _0x30ae1c=this['editor'];if(!_0x30ae1c['plugins']['has']('ListEditing'))return;const _0xa0889a=_0x30ae1c['locale'],_0x3f81a5=_0x30ae1c['plugins']['get']('TrackChangesEditing'),_0x470df8=_0x30ae1c['plugins']['has']('TodoListEditing'),_0x6c2d4b=!!_0x30ae1c['config']['get']('list.multiBlock');function _0x498986(_0x165b7d){return{'type':'format','content':''+o(_0xa0889a,'*Set\x20format:*\x20%0',_0x165b7d)};}function _0x76c614(_0x3b9350){return{'type':'format','content':''+o(_0xa0889a,'*Remove\x20format:*\x20%0',_0x3b9350)};}_0x3f81a5['enableDefaultAttributesIntegration']('numberedList'),_0x3f81a5['enableDefaultAttributesIntegration']('bulletedList'),_0x3f81a5['enableDefaultAttributesIntegration']('customNumberedList'),_0x3f81a5['enableDefaultAttributesIntegration']('customBulletedList'),_0x3f81a5['enableDefaultAttributesIntegration']('indentList'),_0x3f81a5['enableDefaultAttributesIntegration']('outdentList'),_0x3f81a5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3f81a5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3f81a5['registerBlockAttribute']('listItemId'),_0x3f81a5['registerBlockAttribute']('listType'),_0x3f81a5['registerBlockAttribute']('listIndent'),_0x6c2d4b&&(_0x3f81a5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3f81a5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x470df8&&(_0x3f81a5['enableDefaultAttributesIntegration']('todoList'),_0x3f81a5['enableDefaultAttributesIntegration']('checkTodoList'),_0x3f81a5['registerBlockAttribute']('todoListChecked'),_0x3f81a5['descriptionFactory']['registerDescriptionCallback'](_0x3b8d68=>{const {data:_0x38fa24}=_0x3b8d68;if(_0x38fa24&&'todoListChecked'==_0x38fa24['key'])return{'type':'format','content':_0x38fa24['newValue']?o(_0xa0889a,'*Check\x20item*'):o(_0xa0889a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x36a928=>{if(_0x36a928['batch']['isUndo'])return!0x1;let _0x5dfd1e=!0x1;const _0x1fcfd4=_0x3f81a5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x187ad0=>'todoListChecked'===_0x3f81a5['_getAttributeKey'](_0x187ad0));for(const _0x47ab0e of _0x1fcfd4){'todo'!=_0x47ab0e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3f81a5['_findSuggestions'](_0x47ab0e['getFirstRange'](),'attribute')['find'](_0x44d986=>'listType'===_0x3f81a5['_getAttributeKey'](_0x44d986['suggestion']))||(_0x36a928['removeMarker'](_0x47ab0e['getFirstMarker']()),_0x5dfd1e=!0x0));}return _0x5dfd1e;})),_0x3f81a5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xa0889a,'FORMAT_INDENT'));const _0x2d51d0={'type':'format','content':''};_0x3f81a5['descriptionFactory']['registerDescriptionCallback'](_0x4c0be3=>{const {data:_0x4fbbf1}=_0x4c0be3;if(!_0x4fbbf1||'listType'!=_0x4fbbf1['key'])return;let _0x2d321e=_0x4c0be3['head'];for(;_0x2d321e;){if(_0x2d321e['data']&&(('listStyle'==_0x2d321e['data']['key']||'listMarkerStyle'==_0x2d321e['data']['key'])&&(_0x2d321e['data']['newValue']&&'default'!=_0x2d321e['data']['newValue']||'default'!=_0x2d321e['data']['oldValue']&&!_0x4fbbf1['newValue'])||!_0x6c2d4b&&_0x2d321e['data']['key']==m))return _0x2d51d0;_0x2d321e=_0x2d321e['next'];}if(null==_0x4fbbf1['newValue'])switch(_0x4fbbf1['oldValue']){case'bulleted':return _0x76c614(o(_0xa0889a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x76c614(o(_0xa0889a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x76c614(o(_0xa0889a,'ELEMENT_TODO_LIST'));}switch(_0x4fbbf1['newValue']){case'bulleted':return _0x498986(o(_0xa0889a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x498986(o(_0xa0889a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x498986(o(_0xa0889a,'ELEMENT_TODO_LIST'));}}),_0x3f81a5['descriptionFactory']['registerDescriptionCallback'](_0x342196=>{const {data:_0xa77696}=_0x342196;if(_0xa77696&&'listIndent'==_0xa77696['key'])return null==_0xa77696['newValue']||null==_0xa77696['oldValue']&&0x0==_0xa77696['newValue']?_0x2d51d0:void 0x0;}),_0x3f81a5['descriptionFactory']['registerDescriptionCallback'](_0x7f70c3=>{if('attribute'!=_0x7f70c3['type'])return;const {data:_0xcaa65f}=_0x7f70c3;if(!_0xcaa65f||'listItemId'!=_0xcaa65f['key'])return;const _0xbdb6b2=Te(_0x7f70c3);return'newValue'==_0xbdb6b2?{'type':'format','content':o(_0xa0889a,'*Merge:*\x20list\x20item')}:'oldValue'==_0xbdb6b2?{'type':'format','content':o(_0xa0889a,'*Split:*\x20list\x20item')}:_0x2d51d0;}),_0x30ae1c['model']['document']['registerPostFixer'](_0x4b279e=>this['listItemIdFixer'](_0x4b279e)),_0x30ae1c['model']['document']['registerPostFixer'](_0x17ea27=>this['noTrackChangesFixer'](_0x17ea27)),_0x30ae1c['model']['document']['on']('change:data',(_0x57be43,_0x5c35e9)=>{if(_0x5c35e9['isUndo']||!_0x5c35e9['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x570bbc){if(_0x570bbc['batch']['isUndo']||!_0x570bbc['batch']['isLocal'])return!0x1;let _0x1b1e2b=!0x1;const _0x2a1ceb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3635aa=>_0x3635aa['data']&&'listItemId'==_0x3635aa['data']['key'])['filter'](_0x26060d=>_0x26060d['data']['newValue']&&_0x26060d['data']['oldValue']);for(const _0xf62136 of _0x2a1ceb)Te(_0xf62136)||(_0x570bbc['removeMarker'](_0xf62136['getFirstMarker']()),_0x1b1e2b=!0x0);return _0x1b1e2b;}['noTrackChangesFixer'](_0x2bcb49){if(_0x2bcb49['batch']['isUndo']||!_0x2bcb49['batch']['isLocal'])return!0x1;const _0x447163=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x447163['trackChangesCommand']['value'])return!0x1;let _0x5c9a95=!0x1;const _0x52bb38=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x478019=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3dbbd3=>'attribute'==_0x3dbbd3['type'])['filter'](_0x55046f=>_0x52bb38['includes'](_0x55046f['attributeKey']));if(0x0==_0x478019['length'])return _0x5c9a95;for(const _0x1b63dc of _0x478019){const _0x3fb001=_0x447163['_findSuggestions'](_0x1b63dc['range'],'attribute')['filter'](_0x13e621=>!_0x13e621['meta']['isNextTo'])['map'](_0x6f91e9=>_0x6f91e9['suggestion'])['filter'](_0x3f6bb7=>{const _0x2c5e67=_0x447163['_getAttributeKey'](_0x3f6bb7);return _0x52bb38['includes'](_0x2c5e67);});if(_0x3fb001['length']){for(const _0x175d3c of _0x3fb001)_0x2bcb49['removeMarker'](_0x175d3c['getFirstMarker']());_0x5c9a95=!0x0;}}return _0x5c9a95;}['assureChains'](){const _0x3d27b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ca702=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4e9657;const _0x4199c6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x13c657=>{if(_0x13c657['data']['oldRange']||!_0x13c657['data']['newRange'])return null;if(!_0x13c657['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x36702e}=_0x3d27b0['_splitMarkerName'](_0x13c657['name']);if(!_0x3d27b0['hasSuggestion'](_0x36702e))return null;const _0x522a47=_0x3d27b0['getSuggestion'](_0x36702e);return _0x2ca702['includes'](_0x522a47['data']['key']);})['map'](_0x3d135a=>{const {id:_0x3ba2e7}=_0x3d27b0['_splitMarkerName'](_0x3d135a['name']),_0x2634cc=_0x3d27b0['getSuggestion'](_0x3ba2e7);return _0x4e9657=_0x2634cc['attributes']['groupId'],_0x2634cc['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4199c6['size'])return;const _0x52979a=_0x3d27b0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xba6eba=>'attribute'==_0xba6eba['type']&&_0xba6eba['data']&&_0x2ca702['includes'](_0xba6eba['data']['key'])&&_0xba6eba['attributes']['groupId']!=_0x4e9657)['map'](_0x23c80d=>({'listItem':_0x23c80d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x23c80d['attributes']['groupId']})),_0x38facc=new Set();for(const {groupId:_0x379d48,listItem:_0x20186a}of _0x52979a)_0x4199c6['has'](_0x20186a)&&_0x38facc['add'](_0x379d48);for(const _0x45aac6 of _0x3d27b0['getSuggestions']())_0x38facc['has'](_0x45aac6['attributes']['groupId'])&&_0x45aac6['setAttribute']('groupId',_0x4e9657);}['_supportLegacySuggestions'](){const _0x204bef=this['editor'],_0x3e3366=_0x204bef['locale'],_0x1a0ea0=_0x204bef['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1a0ea0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x23fa8f,_0x5cae92){const _0x463642=[];for(let _0x4e776b of _0x23fa8f)_0x4e776b['start']['nodeAfter']===_0x4e776b['end']['parent']&&(_0x4e776b=_0x204bef['model']['createRange'](_0x204bef['model']['createPositionAt'](_0x4e776b['start']['nodeAfter'],0x0))),_0x463642['push'](_0x4e776b);_0x204bef['model']['change'](_0x542a1a=>{const _0x1354ea=_0x204bef['model']['document']['selection'],_0xcb17c3=Array['from'](_0x1354ea['getRanges']())['map'](_0x2ec80a=>_0xfaa3eb['fromRange'](_0x2ec80a));_0x542a1a['setSelection'](_0x463642),_0x204bef['commands']['get'](_0x5cae92['commandName'])['refresh'](),_0x5cae92['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x204bef['execute'](_0x5cae92['commandName'],..._0x5cae92['commandParams']),_0x542a1a['setSelection'](_0xcb17c3);for(const _0x430ba5 of _0xcb17c3)_0x430ba5['detach']();});}),_0x1a0ea0['descriptionFactory']['registerElementLabel'](function(_0x3bf23f){const _0x53358e=!_0x204bef['model']['schema']['isObject'](_0x3bf23f),_0x1b7145=_0x3bf23f['previousSibling'],_0x4e357e=_0x3bf23f['nextSibling'],_0x44d1f8=_0x3bf23f['getAttribute']('listItemId'),_0x138401=!_0x1b7145||_0x1b7145['getAttribute']('listItemId')!==_0x44d1f8,_0x281239=!_0x4e357e||_0x4e357e['getAttribute']('listItemId')!==_0x44d1f8;return _0x53358e&&Boolean(_0x44d1f8)&&_0x138401&&_0x281239;},_0x5b1d75=>o(_0x3e3366,'ELEMENT_LIST_ITEM',_0x5b1d75));}['_registerLegacyDescription'](){const _0x458598=this['editor'],_0xec26e1=_0x458598['locale'];function _0x139bcb(_0x1671d1){const _0x5d9d24=_0x458598['commands']['get']('bulletedList')['value'],_0x23444e=_0x458598['commands']['get']('numberedList')['value'];return'numberedList'===_0x1671d1?_0x5d9d24:_0x23444e;}_0x458598['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1daae6){if('formatBlock'!=_0x1daae6['type'])return;const {data:_0x229218}=_0x1daae6;if(!_0x229218)return;let _0x5d8ced,_0x2cfd22,_0x41ed7b,_0x2dd539;switch(_0x229218['commandName']){case'bulletedList':_0x41ed7b=_0x229218['commandParams'][0x0]['forceValue'],_0x2dd539=_0x139bcb(_0x229218['commandName']),_0x5d8ced=_0x41ed7b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2dd539&&_0x458598['config']['get']('list.multiBlock')||(_0x5d8ced='*Change\x20to:*\x20%0'),_0x2cfd22={'type':'format','content':o(_0xec26e1,_0x5d8ced,o(_0xec26e1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x41ed7b=_0x229218['commandParams'][0x0]['forceValue'],_0x2dd539=_0x139bcb(_0x229218['commandName']),_0x5d8ced=_0x41ed7b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2dd539&&_0x458598['config']['get']('list.multiBlock')||(_0x5d8ced='*Change\x20to:*\x20%0'),_0x2cfd22={'type':'format','content':o(_0xec26e1,_0x5d8ced,o(_0xec26e1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5d8ced='*Indent:*\x20%0',_0x2cfd22={'type':'format','content':o(_0xec26e1,_0x5d8ced,o(_0xec26e1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5d8ced=function(_0x12fa9f){const _0x568373=_0x12fa9f['getFirstRange']();let _0x385fe0=_0x568373['start']['nodeAfter'];for(;_0x385fe0&&_0x568373['containsItem'](_0x385fe0);){if(_0x385fe0['getAttribute']('listIndent')>0x0)return!0x1;_0x385fe0=_0x385fe0['nextSibling'];}return!0x0;}(_0x1daae6)?o(_0xec26e1,'*Format:*\x20remove\x20from\x20%0',o(_0xec26e1,function(_0x438377){return'ELEMENT_'+_0x438377['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1daae6))):o(_0xec26e1,'*Outdent:*\x20%0',o(_0xec26e1,'ELEMENT_LIST_ITEM')),_0x2cfd22={'type':'format','content':_0x5d8ced};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x229218['multipleBlocks']&&(_0x5d8ced='*Merge:*\x20%0',_0x2cfd22={'type':'deletion','content':o(_0xec26e1,_0x5d8ced,o(_0xec26e1,'ELEMENT_LIST_ITEM'))});}return _0x2cfd22;});}}function Te(_0x2cc2ed){let _0xc760fa=_0x2cc2ed['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xc760fa;){const _0x592a13=_0xc760fa['getAttribute']('listItemId');if(!_0x592a13)return!0x1;if(_0x592a13==_0x2cc2ed['data']['newValue'])return'newValue';if(_0x592a13==_0x2cc2ed['data']['oldValue'])return'oldValue';_0xc760fa=_0xc760fa['previousSibling'];}return!0x1;}class Se extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1de4cc=this['editor']['config']['get']('list.properties'),_0x51a7c1=this['editor']['plugins']['get']('TrackChangesEditing');_0x1de4cc['styles']&&(_0x51a7c1['enableDefaultAttributesIntegration']('listStyle'),_0x51a7c1['registerBlockAttribute']('listStyle')),_0x1de4cc['reversed']&&(_0x51a7c1['enableDefaultAttributesIntegration']('listReversed'),_0x51a7c1['registerBlockAttribute']('listReversed')),_0x1de4cc['startIndex']&&(_0x51a7c1['enableDefaultAttributesIntegration']('listStart'),_0x51a7c1['registerBlockAttribute']('listStart'));const _0x447090={'type':'format','content':''};_0x51a7c1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x326ecf=this['editor']['locale'];_0x51a7c1['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x326ecf,'FORMAT_LIST_REVERSED')),_0x51a7c1['descriptionFactory']['registerDescriptionCallback'](_0x53f44b=>{const {data:_0x165c53}=_0x53f44b;if(_0x165c53&&'listReversed'==_0x165c53['key'])return null==_0x165c53['newValue']||0x0==_0x165c53['newValue']&&null==_0x165c53['oldValue']?_0x447090:void 0x0;}),_0x51a7c1['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x326ecf,'FORMAT_LIST_START')),_0x51a7c1['descriptionFactory']['registerDescriptionCallback'](_0x4a0eef=>{const {data:_0x249e34}=_0x4a0eef;if(_0x249e34&&'listStart'==_0x249e34['key'])return null==_0x249e34['newValue']||0x1==_0x249e34['newValue']&&null==_0x249e34['oldValue']?_0x447090:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x826d84=>{if(_0x826d84['batch']['isUndo'])return!0x1;let _0x3b0643=!0x1;const _0x58ffed=_0x51a7c1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x10d94e=>{const _0x1cbd6e=_0x51a7c1['_getAttributeKey'](_0x10d94e);return'listStart'==_0x1cbd6e||'listReversed'==_0x1cbd6e;});for(const _0x3f4c9f of _0x58ffed){const _0x46b294=_0x3f4c9f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x46b294||'customNumbered'==_0x46b294)continue;_0x51a7c1['_findSuggestions'](_0x3f4c9f['getFirstRange'](),'attribute')['find'](_0x2ac60b=>'listType'==_0x51a7c1['_getAttributeKey'](_0x2ac60b['suggestion']))||(_0x826d84['removeMarker'](_0x3f4c9f['getFirstMarker']()),_0x3b0643=!0x0);}return _0x3b0643;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x42aef0){const _0x322d52=this['editor']['locale'],{data:_0x69543d}=_0x42aef0,_0x23d560={'type':'format','content':''};if(!_0x69543d||'listStyle'!=_0x69543d['key'])return;if(!_0x69543d['oldValue'])return'default'==_0x69543d['newValue']?_0x23d560:{'type':'format','content':''+o(_0x322d52,'*Set\x20format:*\x20%0',o(_0x322d52,this['_getTranslationKeyForListStyle'](_0x69543d['newValue'])))};if(!_0x69543d['newValue']){if('default'==_0x69543d['oldValue'])return _0x23d560;let _0x1fc310=_0x42aef0['head'];for(;_0x1fc310;){if(_0x1fc310['data']&&'listType'==_0x1fc310['data']['key']&&_0x1fc310['data']['newValue'])return _0x23d560;_0x1fc310=_0x1fc310['next'];}return{'type':'format','content':''+o(_0x322d52,'*Remove\x20format:*\x20%0',o(_0x322d52,this['_getTranslationKeyForListStyle'](_0x69543d['oldValue'])))};}if('default'!=_0x69543d['newValue'])return{'type':'format','content':''+o(_0x322d52,'*Set\x20format:*\x20%0',o(_0x322d52,this['_getTranslationKeyForListStyle'](_0x69543d['newValue'])))};let _0x3785ad=_0x42aef0['head'];for(;_0x3785ad;){if(_0x3785ad['data']&&'listType'==_0x3785ad['data']['key']&&_0x3785ad['data']['newValue']&&_0x3785ad['data']['oldValue'])return _0x23d560;_0x3785ad=_0x3785ad['next'];}return{'type':'format','content':o(_0x322d52,'*Set\x20format:*\x20%0',o(_0x322d52,'ELEMENT_'+_0x42aef0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5d6fce=this['editor'],_0x2ae3e1=_0x5d6fce['locale'];_0x5d6fce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a79fb=>{if('formatBlock'!=_0x3a79fb['type'])return;const {data:_0x23c7e1}=_0x3a79fb;if(!_0x23c7e1)return;let _0x14d8fd,_0x3379c0;switch(_0x23c7e1['commandName']){case'listStyle':_0x14d8fd='*Change\x20to:*\x20%0',_0x3379c0={'type':'format','content':o(_0x2ae3e1,_0x14d8fd,o(_0x2ae3e1,this['_getTranslationKeyForListStyle'](_0x23c7e1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14d8fd=_0x23c7e1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3379c0={'type':'format','content':o(_0x2ae3e1,_0x14d8fd)};break;case'listStart':_0x14d8fd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3379c0={'type':'format','content':o(_0x2ae3e1,_0x14d8fd,_0x23c7e1['commandParams'][0x0]['startIndex'])};}return _0x3379c0;});}['_getTranslationKeyForListStyle'](_0x35e22b){return'ELEMENT_'+function(_0x38f56e){if(_e['includes'](_0x38f56e))return'bulleted';if(Re['includes'](_0x38f56e))return'numbered';return null;}(_0x35e22b)['toUpperCase']()+'_LIST_'+_0x35e22b['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2bd390{static get['requires'](){return[_0x212829];}['init'](){const _0x52f8ae=this['editor'],_0x4214ac=_0x52f8ae['plugins']['get']('TrackChangesEditing'),_0x57a00e=_0x52f8ae['commands']['get']('enter');_0x4214ac['enableCommand']('enter',()=>{_0x52f8ae['model']['change'](_0x31aa7e=>{const _0x2473f0=_0x52f8ae['model']['document']['selection'],_0x4a4953=_0x2473f0['getFirstPosition'](),_0xe19bc0=_0xfaa3eb['fromRange'](_0x2473f0['getFirstRange']());if(_0x57a00e['enterBlock'](_0x31aa7e)){const _0x3abf41=_0x52f8ae['model']['createPositionAt'](_0x4a4953['parent']['nextSibling'],0x0),_0x35d5f8=_0x31aa7e['createRange'](_0x4a4953,_0x3abf41);_0x4214ac['markInsertion'](_0x35d5f8);}else _0x31aa7e['setSelection'](_0x31aa7e['createRange'](_0xe19bc0['end']));_0xe19bc0['detach'](),_0x57a00e['fire']('afterExecute',{'writer':_0x31aa7e});});}),_0x52f8ae['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x52f8ae,'split'),{'priority':'high'}),_0x52f8ae['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xe2c2dd,_0x2036e4,_0xaa357f)=>{const _0x1d24bd=_0xaa357f['mapper']['markerNameToElements'](_0x2036e4['markerName']);if(_0x1d24bd){for(const _0x44e4fa of _0x1d24bd)_0x44e4fa['hasClass']('ck-suggestion-marker-split')&&(_0xaa357f['mapper']['unbindElementFromMarkerName'](_0x44e4fa,_0x2036e4['markerName']),_0xaa357f['writer']['remove'](_0x44e4fa));}},{'priority':'high'}),_0x52f8ae['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4c1c6f,_0x15b49d,_0x55f6c9)=>{_0x55f6c9['options']['showSuggestionHighlights']&&De(_0x52f8ae,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4c1c6f,_0x15b49d,_0x55f6c9);},{'priority':'high'});}}class Y extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x58cc83=this['editor']['plugins']['get']('TrackChangesEditing');_0x58cc83['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x58cc83['enableCommand']('findNext'),_0x58cc83['enableCommand']('findPrevious'),_0x58cc83['enableCommand']('replace'),_0x58cc83['enableCommand']('replaceAll');}['handleFindCommand'](_0x43bc2e,_0x51cbea,_0x334b37={}){const _0x12ff8a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x43bc2e(_0x5255ba=>{let _0xcfe00f=('string'==typeof _0x51cbea?_0x12ff8a['findByTextCallback'](_0x51cbea,_0x334b37):_0x51cbea)(_0x5255ba);Array['isArray'](_0xcfe00f)&&(_0xcfe00f={'results':_0xcfe00f,'searchText':'string'==typeof _0x51cbea?_0x51cbea:''});const _0x34c1d=_0xcfe00f['results']['filter'](_0x174dd0=>!0x1===this['_isInDeletionRange'](_0x174dd0,_0x5255ba['item']));return{..._0xcfe00f,'results':_0x34c1d};},_0x334b37);}['_isInDeletionRange'](_0x221719,_0x19f34c){const _0x3000ef=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x19f34c,_0x221719['start']),this['editor']['model']['createPositionAt'](_0x19f34c,_0x221719['end']));for(const _0x1d0a3b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3000ef['getIntersection'](_0x1d0a3b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2bd390{['afterInit'](){const _0x2adf11=this['editor']['locale'],_0xc504cb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1865f1,commandName:_0x44614e}of ro)this['editor']['plugins']['has'](_0x1865f1)&&(_0xc504cb['enableDefaultAttributesIntegration'](_0x44614e),_0xc504cb['registerInlineAttribute'](_0x44614e));_0xc504cb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2adf11,'FORMAT_FONT_SIZE')),_0xc504cb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2adf11,'FORMAT_FONT_FAMILY')),_0xc504cb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2adf11,'FORMAT_FONT_COLOR')),_0xc504cb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2adf11,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a91ef=this['editor'],_0xb5ec0d=_0x3a91ef['locale'];_0x3a91ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x480895=>{const _0x4ba42b=_0xb5ec0d['t'];if('formatInline'!=_0x480895['type'])return;const {data:_0xd95eae}=_0x480895;if(null!=_0xd95eae){if('fontSize'==_0xd95eae['commandName']){const _0x22fae5=_0xd95eae['commandParams'][0x0]['value'];if(_0x22fae5){const _0x21c0f6=_0x4ba42b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x68ca1=>_0x68ca1['model']==_0x22fae5)['title'])['toLowerCase']();return{'type':'format','content':o(_0xb5ec0d,'*Set\x20font\x20size:*\x20%0',_0x21c0f6)};}return{'type':'format','content':o(_0xb5ec0d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xd95eae['commandName']){const _0x28451d=_0xd95eae['commandParams'][0x0]['value'];return _0x28451d?{'type':'format','content':o(_0xb5ec0d,'*Set\x20font\x20family:*\x20%0',_0x28451d)}:{'type':'format','content':o(_0xb5ec0d,'*Reset\x20font\x20family*')};}if('fontColor'==_0xd95eae['commandName']){const _0x20d4fe=_0xd95eae['commandParams'][0x0]['value'];if(_0x20d4fe){const _0x475131=_0x4deacf(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1e6ba1=>_0x1e6ba1['model']==_0x20d4fe);let _0x5d3590=_0x20d4fe,_0x393382='';return _0x475131&&(_0x5d3590=_0x475131['label'],_0x393382=_0x4ba42b(_0x5d3590)['toLowerCase']()),{'type':'format','content':o(_0xb5ec0d,'*Set\x20font\x20color:*\x20%0',_0x393382)['trim'](),'color':{'value':_0x20d4fe,'title':_0x393382||_0x5d3590}};}return{'type':'format','content':o(_0xb5ec0d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xd95eae['commandName']){const _0xe7978=_0xd95eae['commandParams'][0x0]['value'];if(_0xe7978){const _0x3ba827=_0x4deacf(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1bdb3d=>_0x1bdb3d['model']==_0xe7978);let _0x8175ac=_0xe7978,_0x5f0afe='';return _0x3ba827&&(_0x8175ac=_0x3ba827['label'],_0x5f0afe=_0x4ba42b(_0x8175ac)['toLowerCase']()),{'type':'format','content':o(_0xb5ec0d,'*Set\x20font\x20background\x20color:*\x20%0',_0x5f0afe)['trim'](),'color':{'value':_0xe7978,'title':_0x5f0afe||_0x8175ac}};}return{'type':'format','content':o(_0xb5ec0d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2bd390{['afterInit'](){const _0x572d09=this['editor'],_0x180206=_0x572d09['plugins']['get']('TrackChangesEditing'),_0x4094e7=_0x572d09['commands']['get']('copyFormat'),_0xce28a8=_0x572d09['commands']['get']('pasteFormat');_0x4094e7&&_0xce28a8&&(_0x180206['enableDefaultAttributesIntegration']('pasteFormat'),_0x180206['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1134d8=this['editor'],_0x5d80f7=_0x1134d8['locale'];_0x1134d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x152666=>{if('formatBlock'!=_0x152666['type']&&'formatInline'!=_0x152666['type'])return;const {data:_0x5b692f}=_0x152666;if(_0x5b692f&&'pasteFormat'===_0x5b692f['commandName']){const _0x2bd91b=[],_0x4bc76a=_0x5b692f['commandParams'][0x0];for(const [_0x27ce36,_0x46eb31]of Object['entries'](_0x4bc76a))_0x2bd91b['push'](so(_0x1134d8,_0x27ce36,_0x46eb31));return _0x2bd91b['length']?{'type':'format','content':o(_0x5d80f7,'*Set\x20format\x20to:*\x20%0',_0x2bd91b['join'](',\x20'))}:{'type':'format','content':o(_0x5d80f7,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1efb19,_0x15a62e,_0x471f6e){const _0x2a1283=_0x1efb19['locale']['t'],_0x2fe466=_0x15a62e['split'](/(?=[A-Z])/)['join']('\x20'),_0x4d7cbf=_0x2a1283(_0x2fe466['charAt'](0x0)['toUpperCase']()+_0x2fe466['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x471f6e)return _0x4d7cbf;if('fontColor'===_0x15a62e||'fontBackgroundColor'===_0x15a62e){const _0x45666d=_0x4deacf(_0x1efb19['config']['get']('fontColor.colors'))['find'](_0x19a001=>_0x19a001['model']==_0x471f6e);return _0x4d7cbf+'\x20('+(_0x45666d?_0x2a1283(_0x45666d['label'])['toLowerCase']():_0x471f6e)+')';}if('fontSize'===_0x15a62e&&isNaN(parseFloat(_0x471f6e))){const _0x12962e=_0x1efb19['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1efb19['config']['get']('fontSize.options'))['find'](_0x274059=>_0x274059['model']==_0x471f6e);return _0x4d7cbf+'\x20('+(_0x12962e?_0x2a1283(_0x12962e['title'])['toLowerCase']():_0x471f6e)+')';}return _0x4d7cbf+'\x20('+_0x471f6e+')';}class nt extends _0x2bd390{['_headingOptions'];['afterInit'](){const _0x2edf67=this['editor'];if(!_0x2edf67['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2edf67['config']['get']('heading.options');const _0x2e6324=_0x2edf67['locale'],_0x5b1cce=_0x2edf67['plugins']['get']('TrackChangesEditing');_0x5b1cce['enableDefaultAttributesIntegration']('heading');for(const _0xa579d7 of this['_headingOptions'])'paragraph'!=_0xa579d7['model']&&_0x5b1cce['descriptionFactory']['registerElementLabel'](_0xa579d7['model'],_0x2c14c3=>{const _0x2f580d=this['_getHeadingLevel'](_0xa579d7['model']);return null!==_0x2f580d?_0x12ebc6(_0x2c14c3,_0x2f580d):_0x575a7e(_0x2c14c3,_0xa579d7['title']);});function _0x12ebc6(_0x404255,_0x2a5c88){return o(_0x2e6324,'ELEMENT_HEADING',[_0x404255,_0x2a5c88]);}function _0x575a7e(_0x35c06c,_0x50ca02){return o(_0x2e6324,'ELEMENT_HEADING_CUSTOM',[_0x35c06c,_0x50ca02]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d49b4=this['editor'],_0x3599ee=_0x2d49b4['locale'];function _0x286068(_0x223f3c,_0x59548b){return o(_0x3599ee,'ELEMENT_HEADING_CUSTOM',[_0x223f3c,_0x59548b]);}_0x2d49b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x537440=>{if('formatBlock'!=_0x537440['type'])return;const {data:_0x169c4a}=_0x537440;if(_0x169c4a&&'heading'==_0x169c4a['commandName']){const _0x10d0d5=_0x169c4a['commandParams'][0x0]['value'],_0x343b3b=this['_getHeadingLevel'](_0x10d0d5);if(null!==_0x343b3b)return{'type':'format','content':o(_0x3599ee,'*Change\x20to:*\x20%0',(_0x39b0b3=0x1,_0x1baa9b=_0x343b3b,o(_0x3599ee,'ELEMENT_HEADING',[_0x39b0b3,_0x1baa9b])))};const _0x3d649e=this['_headingOptions']['find'](_0x373f83=>_0x373f83['model']===_0x10d0d5)['title'];return{'type':'format','content':o(_0x3599ee,'*Change\x20to:*\x20%0',_0x286068(0x1,_0x3d649e))};}var _0x39b0b3,_0x1baa9b;});}['_getHeadingLevel'](_0x1b12d3){const _0x3ee467=_0x1b12d3['match'](/^heading(\d+)/);if(_0x3ee467)return _0x3ee467[0x1];const _0x2952db=this['_headingOptions']?.['find'](_0x5bf261=>_0x5bf261['model']==_0x1b12d3);if(_0x2952db&&_0x2952db['view']){const _0x33d37a=_0x2952db['view'],_0x366b41=(_0x33d37a['name']??_0x33d37a)['match'](/^h(\d+)/);if(_0x366b41)return _0x366b41[0x1];}return null;}}class it extends _0x2bd390{['afterInit'](){const _0x15ce58=this['editor'];if(!_0x15ce58['plugins']['has']('HighlightEditing'))return;const _0x2bf205=_0x15ce58['plugins']['get']('TrackChangesEditing'),_0x5f5df7=_0x15ce58['locale'];_0x2bf205['enableDefaultAttributesIntegration']('highlight'),_0x2bf205['registerInlineAttribute']('highlight'),_0x2bf205['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5f5df7,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x544559=this['editor'],_0x4ebe30=_0x544559['locale'];_0x544559['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x257397=>{if('formatInline'!=_0x257397['type'])return;const {data:_0x2a765e}=_0x257397;if(_0x2a765e&&'highlight'==_0x2a765e['commandName']){const _0x490b60=_0x4ebe30['t'],_0x51ea86=_0x2a765e['commandParams'][0x0]['value'];if(_0x51ea86){const _0x25b44c=_0x544559['config']['get']('highlight.options')['find'](_0x30235b=>_0x30235b['model']==_0x51ea86),_0x4be0d0=_0x490b60(_0x25b44c['title'])['toLowerCase']();return{'type':'format','content':o(_0x4ebe30,'*Set\x20highlight:*\x20%0',_0x4be0d0),'color':{'value':_0x25b44c['color'],'title':_0x25b44c['title']}};}return{'type':'format','content':o(_0x4ebe30,'*Remove\x20highlight*',o(_0x4ebe30,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x2bd390{['afterInit'](){const _0x28d622=this['editor'];if(!_0x28d622['plugins']['has']('HorizontalLineEditing'))return;_0x28d622['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x15cb6f=_0x28d622['plugins']['get']('TrackChangesEditing'),_0x285def=_0x28d622['locale'];_0x15cb6f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1537c3=>o(_0x285def,'ELEMENT_HORIZONTAL_LINE',_0x1537c3)),_0x28d622['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4e8bff,{writer:_0x3bc868,options:_0x5dcd1d})=>{if(!_0x5dcd1d['showSuggestionHighlights'])return null;const _0x56b449=_0x3bc868['createContainerElement']('div'),_0x21e74a=_0x3bc868['createEmptyElement']('hr');return _0x3bc868['addClass']('ck-horizontal-line',_0x56b449),_0x3bc868['insert'](_0x3bc868['createPositionAt'](_0x56b449,0x0),_0x21e74a),_0x56b449;},'converterPriority':'high'});}}class st extends _0x2bd390{['afterInit'](){const _0x464ca5=this['editor'];if(!_0x464ca5['plugins']['has']('HtmlEmbed'))return;const _0xfa6c9c=_0x464ca5['plugins']['get']('TrackChangesEditing'),_0xa7ab91=_0x464ca5['locale'];_0xfa6c9c['descriptionFactory']['registerElementLabel']('rawHtml',_0x5c0e95=>o(_0xa7ab91,'ELEMENT_HTML_EMBED',_0x5c0e95)),_0xfa6c9c['enableDefaultAttributesIntegration']('htmlEmbed'),_0xfa6c9c['registerBlockAttribute']('value'),_0xfa6c9c['descriptionFactory']['registerDescriptionCallback'](_0x11ece2=>{if('attribute'!=_0x11ece2['type'])return;const {data:_0x50a178}=_0x11ece2;if(_0x50a178&&'value'==_0x50a178['key']&&_0x11ece2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x84e6bb=o(_0xa7ab91,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xa7ab91,'*Change\x20%0\x20content*',_0x84e6bb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40f827=this['editor'],_0x31bd3b=_0x40f827['locale'];_0x40f827['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a0281=>{if('formatBlock'!=_0x1a0281['type'])return;const {data:_0x425521}=_0x1a0281;if(_0x425521&&'htmlEmbed'==_0x425521['commandName']){const _0x1409c9=o(_0x31bd3b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x31bd3b,'*Change\x20%0\x20content*',_0x1409c9)};}});}}class ot extends _0x2bd390{['afterInit'](){const _0x104569=this['editor'];if(!_0x104569['plugins']['has']('ImageEditing'))return;const _0x3ecf41=_0x104569['plugins']['get']('TrackChangesEditing'),_0x9c1a0a=_0x104569['plugins']['get']('ImageUtils'),_0x4fd963=_0x104569['locale'];_0x3ecf41['enableCommand']('insertImage'),_0x3ecf41['descriptionFactory']['registerElementLabel']('imageBlock',_0x1ebb7b=>o(_0x4fd963,'ELEMENT_IMAGE',_0x1ebb7b)),_0x3ecf41['descriptionFactory']['registerElementLabel']('imageInline',_0x2a9f53=>o(_0x4fd963,'ELEMENT_INLINE_IMAGE',_0x2a9f53)),_0x3ecf41['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4fd963,'ELEMENT_CAPTION')),_0x104569['plugins']['has']('ImageUploadEditing')&&_0x3ecf41['enableCommand']('uploadImage'),_0x104569['plugins']['has']('ImageBlockEditing')&&_0x104569['plugins']['has']('ImageInlineEditing')&&(_0x3ecf41['enableCommand']('imageTypeInline',(_0x1deab8,_0x234bfd)=>{const _0x5c9662=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']);_0x104569['model']['change'](()=>{_0x3ecf41['markBlockFormat'](_0x5c9662,{'commandName':'imageTypeInline','commandParams':[_0x234bfd]},[],'convertBlockImageToInline');});}),_0x3ecf41['enableCommand']('imageTypeBlock',(_0x789b9,_0x275b5f)=>{_0x104569['model']['change'](_0x136ebe=>{let _0x937ba2=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']),_0x283c0f=_0x136ebe['createRangeOn'](_0x937ba2);const _0xee00a2=_0x152006['fromPosition'](_0x283c0f['start'],'toPrevious'),_0x35ef52=_0x152006['fromPosition'](_0x283c0f['end'],'toNext');_0x3ecf41['forceDefaultExecution'](()=>_0x789b9(_0x275b5f)),_0x937ba2=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']),_0x283c0f=_0x136ebe['createRangeOn'](_0x937ba2);const _0x52e43f=_0x136ebe['createRange'](_0xee00a2,_0x35ef52);_0xee00a2['detach'](),_0x35ef52['detach'](),_0x3ecf41['markBlockFormat'](_0x937ba2,{'commandName':'imageTypeInline','commandParams':[_0x275b5f]},[],'convertInlineImageToBlock'),_0x52e43f['start']['isBefore'](_0x283c0f['start'])&&_0x3ecf41['markInsertion'](_0x136ebe['createRange'](_0x52e43f['start'],_0x283c0f['start']),'convertInlineImageToBlock'),_0x283c0f['end']['isBefore'](_0x52e43f['end'])&&_0x3ecf41['markInsertion'](_0x136ebe['createRange'](_0x283c0f['end'],_0x52e43f['end']),'convertInlineImageToBlock');});}),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3ecf41['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4cc335])=>{const _0x23d456=_0x3ecf41['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x546029=_0x4cc335['start'],_0x49ba53=_0x4cc335['end'];const _0x185758=_0x104569['model']['schema']['getNearestSelectionRange'](_0x546029,'backward'),_0x5e25cc=_0x104569['model']['schema']['getNearestSelectionRange'](_0x49ba53,'forward');_0x185758['isCollapsed']&&(_0x546029=_0x185758['start']),_0x5e25cc['isCollapsed']&&(_0x49ba53=_0x5e25cc['end']),_0x23d456([_0x104569['model']['createRange'](_0x546029,_0x49ba53)]);}),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5d8c73),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5d8c73)),_0x104569['plugins']['has']('ImageCaptionEditing')&&(_0x3ecf41['enableCommand']('toggleImageCaption',(_0x58f767,_0x430fa7)=>{const _0x260624=_0x104569['plugins']['get']('ImageCaptionUtils');let _0x7a76d1=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']),_0x209860=_0x260624['getCaptionFromImageModelElement'](_0x7a76d1);_0x104569['model']['change'](()=>{if(_0x209860)return void _0x3ecf41['markDeletion'](_0x104569['model']['createRangeOn'](_0x209860));const _0x31d732=_0x9c1a0a['isBlockImage'](_0x7a76d1);_0x58f767(_0x430fa7),_0x7a76d1=_0x9c1a0a['getClosestSelectedImageElement'](_0x104569['model']['document']['selection']),_0x209860=_0x260624['getCaptionFromImageModelElement'](_0x7a76d1),_0x3ecf41['markInsertion'](_0x104569['model']['createRangeOn'](_0x209860),_0x31d732?null:'imageCaption');});}),_0x3ecf41['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5d8c73));const _0x29017b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2d88ae(_0x5a353e,_0xf40a83){const _0x41266d=_0x29017b['findIndex'](({type:_0x538900,subType:_0x2d2ef2})=>_0x5a353e['type']==_0x538900&&_0x5a353e['subType']==_0x2d2ef2),_0x41ac51=_0x29017b['findIndex'](({type:_0x450ea1,subType:_0x229262})=>_0xf40a83['type']==_0x450ea1&&_0xf40a83['subType']==_0x229262);if(_0x41266d<0x0||_0x41ac51<0x0)return!0x1;const _0x3ef497=_0x5a353e['getFirstRange'](),_0x309add=_0xf40a83['getFirstRange']();if((0x0==_0x41266d||0x1==_0x41266d)&&0x2==_0x41ac51&&_0x3ef497['isIntersecting'](_0x309add))return!0x0;if(0x2==_0x41266d&&0x3==_0x41ac51){const _0x58467e=_0x3ecf41['_findSuggestions'](_0x3ef497,'insertion')['filter'](({suggestion:_0x36ceef,meta:_0x38d4ec})=>_0x38d4ec['isOwn']&&'convertInlineImageToBlock'==_0x36ceef['subType']);if(_0x58467e['length']>0x1&&_0x309add['end']['isEqual'](_0x3ef497['start']))return!0x0;if(0x1==_0x58467e['length']&&(_0x3ef497['start']['isEqual'](_0x309add['end'])||_0x3ef497['end']['isEqual'](_0x309add['start'])))return!0x0;}if(0x3==_0x41266d&&0x3==_0x41ac51&&_0x3ef497['start']['isBefore'](_0x309add['start'])){const _0x210791=_0x3ef497['end']['nodeAfter'],_0x3feb6a=_0x309add['start']['nodeBefore'];return _0x9c1a0a['isBlockImage'](_0x210791)&&_0x210791===_0x3feb6a;}return!0x1;}function _0x5d8c73(_0x41aa06,_0x4d9718){return _0x2d88ae(_0x41aa06,_0x4d9718)?[_0x41aa06,_0x4d9718]:_0x2d88ae(_0x4d9718,_0x41aa06)?[_0x4d9718,_0x41aa06]:null;}_0x104569['plugins']['has']('ImageResize')&&(_0x3ecf41['enableDefaultAttributesIntegration']('resizeImage'),_0x3ecf41['registerBlockAttribute']('resizedWidth'),_0x3ecf41['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4fd963,'FORMAT_IMAGE_SIZE'))),_0x104569['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3ecf41['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3ecf41['registerBlockAttribute']('alt')),_0x104569['plugins']['has']('PictureEditing')&&(_0x3ecf41['registerBlockAttribute']('sources'),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x535b9d=>{if('attribute'!=_0x535b9d['type'])return;const {data:_0x2a5466}=_0x535b9d;return _0x2a5466&&'sources'==_0x2a5466['key']?{'type':'format','content':''}:void 0x0;})),_0x104569['plugins']['has']('ImageSizeAttributes')&&(_0x3ecf41['registerBlockAttribute']('width'),_0x3ecf41['registerBlockAttribute']('height'),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x37cc36=>{if('attribute'!=_0x37cc36['type'])return;const {data:_0x450d16}=_0x37cc36;return!_0x450d16||'width'!=_0x450d16['key']&&'height'!=_0x450d16['key']?void 0x0:{'type':'format','content':''};})),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x5d768d=>{if(!!_0x29017b['find'](({type:_0xcfb62c,subType:_0x47b717})=>_0x5d768d['type']==_0xcfb62c&&_0x5d768d['subType']==_0x47b717))return _0x5d768d['previous']?{}:void 0x0;}),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x5ddf4e=>{if('insertion'==_0x5ddf4e['type']||'deletion'==_0x5ddf4e['type']){const _0x223707=_0x5ddf4e['getContainedElement']();if(_0x223707&&_0x223707['is']('element','caption'))return{'type':'insertion'==_0x5ddf4e['type']?'addObject':'removeObject','element':_0x223707,'quantity':0x1};}}),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x2835c9=>'formatBlock'==_0x2835c9['type']&&'convertInlineImageToBlock'==_0x2835c9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2835c9['type']&&'convertBlockImageToInline'==_0x2835c9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3ecf41['descriptionFactory']['registerDescriptionCallback'](_0x3b7e71=>{if('attribute'!=_0x3b7e71['type'])return;const {data:_0x583e77}=_0x3b7e71;if(!_0x583e77||'alt'!=_0x583e77['key'])return;const _0x2bbe30=_0x583e77['newValue'];return _0x2bbe30?{'type':'format','content':o(_0x4fd963,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2bbe30+'\x22')}:{'type':'format','content':o(_0x4fd963,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42efa3=this['editor'],_0x43f4f7=_0x42efa3['locale'];_0x42efa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10cd93=>{if('formatBlock'!=_0x10cd93['type']&&'formatInline'!=_0x10cd93['type'])return;const {data:_0xb660e2}=_0x10cd93;if(_0xb660e2){if('imageTextAlternative'==_0xb660e2['commandName']){const _0x16427e=_0xb660e2['commandParams'][0x0]['newValue'];return _0x16427e?{'type':'format','content':o(_0x43f4f7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x16427e+'\x22')}:{'type':'format','content':o(_0x43f4f7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xb660e2['commandName']){const _0x16704a=_0xb660e2['commandParams'][0x0]['width'];return _0x16704a?{'type':'format','content':o(_0x43f4f7,'*Set\x20image\x20width:*\x20%0',_0x16704a)}:{'type':'format','content':o(_0x43f4f7,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x96c6f6=this['editor']['locale'],_0x2e1846=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e1846['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2e1846['registerBlockAttribute']('src'),_0x2e1846['descriptionFactory']['registerDescriptionCallback'](_0x2e1099=>{if('attribute'!=_0x2e1099['type'])return;const {data:_0x4719db}=_0x2e1099;return _0x4719db&&'src'==_0x4719db['key']?_0x4719db['newValue']&&_0x4719db['oldValue']?{'type':'format','content':o(_0x96c6f6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x6c9c03=this['editor']['plugins']['get']('TrackChangesEditing');_0x6c9c03['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x6c9c03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6c9c03['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x6c9c03['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27030f=this['editor'],_0x2b2dca=_0x27030f['locale'];_0x27030f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56809b=>{if('formatBlock'!=_0x56809b['type']&&'formatInline'!=_0x56809b['type'])return;const {data:_0x2b6000}=_0x56809b;if(!_0x2b6000||'replaceImageSource'!=_0x2b6000['commandName'])return;return{'type':'format','content':o(_0x2b2dca,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x2bd390{['afterInit'](){const _0x4d3418=this['editor'];if(!_0x4d3418['plugins']['has']('ImageStyleEditing'))return;const _0x524fa3=_0x4d3418['plugins']['get']('TrackChangesEditing'),_0x2fe9f1=_0x4d3418['plugins']['get']('ImageUtils'),_0x9296d4={};_0x524fa3['enableCommand']('imageStyle',(_0x285ade,_0x32ad5b)=>{const _0x2149e2=_0x4d3418['plugins']['get']('Users')['me'],_0xc7f3d4=_0x4d3418['commands']['get']('imageStyle');let _0xcb723f=_0x2fe9f1['getClosestSelectedImageElement'](_0x4d3418['model']['document']['selection']),_0x29f7cd=_0x4d3418['model']['createRangeOn'](_0xcb723f),_0x1d4b25=_0xc7f3d4['value'];if(_0x1d4b25==_0x32ad5b['value'])return;const _0x57f977={'commandName':'imageStyle','commandParams':[_0x32ad5b],'formatGroupId':_0x309c8a()};_0x4d3418['model']['change'](()=>{if(_0x524fa3['getSuggestions']()['filter'](_0x282a2c=>_0x282a2c['isInContent']&&_0x2149e2==_0x282a2c['author']&&('formatBlock'==_0x282a2c['type']||'formatInline'==_0x282a2c['type'])&&('imageStylePreApply'==_0x282a2c['subType']||'imageStylePostApply'==_0x282a2c['subType'])&&_0x282a2c['getFirstRange']()['isEqual'](_0x29f7cd))['forEach'](_0x2892ae=>_0x524fa3['discardSuggestion'](_0x2892ae['head'])),_0xcb723f=_0x2fe9f1['getClosestSelectedImageElement'](_0x4d3418['model']['document']['selection']),_0x29f7cd=_0x4d3418['model']['createRangeOn'](_0xcb723f),_0xc7f3d4['refresh'](),_0x4d3418['commands']['get']('imageTypeInline')['refresh'](),_0x4d3418['commands']['get']('imageTypeBlock')['refresh'](),_0x1d4b25=_0xc7f3d4['value'],_0x1d4b25!=_0x32ad5b['value'])return _0x2fe9f1['isInlineImage'](_0xcb723f)&&_0xc7f3d4['shouldConvertImageType'](_0x32ad5b['value'],_0xcb723f)?(_0x285ade({..._0x32ad5b,'setImageSizes':!0x1}),_0xcb723f=_0x2fe9f1['getClosestSelectedImageElement'](_0x4d3418['model']['document']['selection']),void _0x524fa3['markBlockFormat'](_0xcb723f,{..._0x57f977,'commandReversedParams':[{'value':_0x1d4b25||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2fe9f1['isBlockImage'](_0xcb723f)?_0x524fa3['markBlockFormat'](_0xcb723f,_0x57f977,[],'imageStylePostApply'):_0x524fa3['markInlineFormat'](_0x29f7cd,_0x57f977,'imageStylePostApply'));});});for(const _0x44ac07 of _0x4d3418['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x9296d4[_0x44ac07['name']]=_0x44ac07['title']['toLowerCase']();_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4c2de5])=>{_0x2fe9f1['setImageNaturalSizeAttributes'](_0x4c2de5['getContainedElement']());}),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2a2e1d,_0x3259db)=>{_0x524fa3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2a2e1d,{'commandName':_0x3259db['commandName'],'commandParams':_0x3259db['commandReversedParams']});}),_0x524fa3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x9c07a,_0x1c4b40){if(_0x12801d(_0x9c07a,_0x1c4b40))return[_0x9c07a,_0x1c4b40];if(_0x12801d(_0x1c4b40,_0x9c07a))return[_0x1c4b40,_0x9c07a];return null;});const _0x5a8f11=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x12801d(_0x4fec23,_0xd7e394){const _0x36d9ec=_0x5a8f11['findIndex'](({type:_0x47fac6,subType:_0x165d4d})=>_0x4fec23['type']==_0x47fac6&&_0x4fec23['subType']==_0x165d4d),_0x16383c=_0x5a8f11['findIndex'](({type:_0x30a83b,subType:_0x5b27fe})=>_0xd7e394['type']==_0x30a83b&&_0xd7e394['subType']==_0x5b27fe);if(_0x36d9ec<0x0||_0x16383c<0x0)return!0x1;const _0x37f0ff=_0x4fec23['getFirstRange'](),_0x1dd128=_0xd7e394['getFirstRange']();if((0x0==_0x36d9ec||0x1==_0x36d9ec)&&0x2==_0x16383c&&_0x37f0ff['isIntersecting'](_0x1dd128))return!0x0;if(0x2==_0x36d9ec&&0x3==_0x16383c){const _0x4d272f=_0x524fa3['_findSuggestions'](_0x37f0ff,'insertion')['filter'](({suggestion:_0x9a150e,meta:_0x362532})=>_0x362532['isOwn']&&'convertInlineImageToBlock'==_0x9a150e['subType']);if(_0x4d272f['length']>0x1&&_0x1dd128['end']['isEqual'](_0x37f0ff['start']))return!0x0;if(0x1==_0x4d272f['length']&&(_0x37f0ff['start']['isEqual'](_0x1dd128['end'])||_0x37f0ff['end']['isEqual'](_0x1dd128['start'])))return!0x0;}if(0x3==_0x36d9ec&&0x3==_0x16383c&&_0x37f0ff['start']['isBefore'](_0x1dd128['start'])){const _0x1cbb96=_0x37f0ff['end']['nodeAfter'],_0x5683ed=_0x1dd128['start']['nodeBefore'];return _0x2fe9f1['isBlockImage'](_0x1cbb96)&&_0x1cbb96===_0x5683ed;}return!0x1;}_0x4d3418['model']['document']['registerPostFixer'](()=>{let _0x33a0ea=!0x1;const _0x11a10d=Array['from'](_0x4d3418['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49b54d,data:_0x6f6a45}of _0x11a10d){const {group:_0x27caab,type:_0xbb6cb1,subType:_0x2057d1,id:_0x3bf42b}=_0x524fa3['_splitMarkerName'](_0x49b54d);if('suggestion'==_0x27caab&&_0x524fa3['hasSuggestion'](_0x3bf42b)){if('formatBlock'==_0xbb6cb1&&('imageStylePreApply'==_0x2057d1||'imageStylePostApply'==_0x2057d1)){const _0x3bce12=_0x524fa3['getSuggestion'](_0x3bf42b);if(_0x6f6a45['newRange']){const _0x2b523f=_0x3bce12['getFirstRange']()['getContainedElement']();if(_0x2fe9f1['isBlockImage'](_0x2b523f))continue;_0x524fa3['discardSuggestion'](_0x3bce12),_0x33a0ea=!0x0;}}if('insertion'==_0xbb6cb1&&'imageCaption'==_0x2057d1&&!_0x6f6a45['newRange']){const _0x167eb2=_0x524fa3['getSuggestion'](_0x3bf42b);_0x167eb2['next']&&_0x167eb2['next']['isInContent']&&(_0x524fa3['discardSuggestion'](_0x167eb2['next']),_0x33a0ea=!0x0);}}}return _0x33a0ea;}),this['_registerLegacyDescription'](_0x9296d4);}['_registerLegacyDescription'](_0xe5b9e1){const _0x1a8db3=this['editor'],_0x1202d0=_0x1a8db3['locale'];_0x1a8db3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34b12d=>{if('formatBlock'!=_0x34b12d['type']&&'formatInline'!=_0x34b12d['type'])return;const {data:_0x32157f}=_0x34b12d;if(!_0x32157f||'imageStyle'!=_0x32157f['commandName'])return;const _0xe3741b=_0x32157f['commandParams'][0x0]['value'];return _0x8cfd5f('side'===_0xe3741b?o(_0x1202d0,'FORMAT_SIDE_IMAGE'):_0xe5b9e1[_0xe3741b]||_0xe3741b);function _0x8cfd5f(_0x1b3fa3){return{'type':'format','content':o(_0x1202d0,'*Format:*\x20%0',_0x1b3fa3)};}});}}class ct extends _0x2bd390{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x16b642){super(_0x16b642),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5c2b6b=this['editor'],_0x31a67d=_0x5c2b6b['commands']['get']('importWord'),_0xe12c=_0x5c2b6b['commands']['get']('trackChanges');_0x31a67d&&(_0x31a67d['on']('execute',(_0x4ae3de,[,_0x4e7daf])=>{this['_trackChangesValueDuringImport']=_0xe12c['value'],_0x4e7daf['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x31a67d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x31a67d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xe12c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5c2b6b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x17b461,_0x460c99){const {suggestions:_0x46608d}=_0x460c99,_0xfdb788=this['editor']['commands']['get']('trackChanges'),_0x4b5904=_0xfdb788['value'];this['_trackChangesValueDuringImport']!==_0x4b5904&&(_0xfdb788['execute'](),this['_trackChangesExecuted']=!0x0),_0x46608d&&_0x46608d['forEach'](({id:_0x28c7ef,type:_0xae7c1d,author:_0x17e9ad,created_at:_0x1e1f54})=>{const _0x525012={'id':_0x28c7ef,'type':_0xae7c1d,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x17e9ad,'createdAt':_0x1e1f54?new Date(_0x1e1f54):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x525012);});}}class ut extends _0x2bd390{['afterInit'](){const _0x2d3a04=this['editor'],_0x7baeb3=_0x2d3a04['plugins']['get']('TrackChangesEditing');if(_0x2d3a04['plugins']['has']('IndentEditing')&&(_0x7baeb3['enableCommand']('indent'),_0x7baeb3['enableCommand']('outdent')),_0x2d3a04['plugins']['has']('IndentBlock')){for(const _0x2cdac9 of['indentBlock','outdentBlock'])_0x7baeb3['enableDefaultAttributesIntegration'](_0x2cdac9);}const _0x2fd960=_0x2d3a04['locale'];_0x7baeb3['registerBlockAttribute']('blockIndent'),_0x7baeb3['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2fd960,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5807a0=this['editor'],_0x583f11=_0x5807a0['locale'],_0x4ae6d6=_0x5807a0['plugins']['get']('TrackChangesEditing');_0x4ae6d6['descriptionFactory']['registerDescriptionCallback'](_0x4ef9f9=>{if('formatBlock'!=_0x4ef9f9['type'])return;const {data:_0x23541b}=_0x4ef9f9;if(!_0x23541b)return;if('indentBlock'!=_0x23541b['commandName']&&'outdentBlock'!=_0x23541b['commandName'])return;const _0x9dff66=_0x4ef9f9['getItems']()[0x0],_0x2a7b35=_0x4ae6d6['descriptionFactory']['getItemLabel'](_0x9dff66);return'indentBlock'==_0x23541b['commandName']?{'type':'format','content':o(_0x583f11,'*Indent:*\x20%0',_0x2a7b35)}:'outdentBlock'==_0x23541b['commandName']?{'type':'format','content':o(_0x583f11,'*Outdent:*\x20%0',_0x2a7b35)}:void 0x0;});}}class ft extends _0x2bd390{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2bd390{['afterInit'](){const _0x4f61cd=this['editor'];if(!_0x4f61cd['plugins']['has']('LinkEditing'))return;const _0xc6ce23=_0x4f61cd['plugins']['get']('TrackChangesEditing'),_0x1e70af=_0x4f61cd['commands']['get']('link');_0xc6ce23['enableDefaultAttributesIntegration']('link'),_0xc6ce23['enableDefaultAttributesIntegration']('unlink'),_0xc6ce23['registerInlineAttribute']('linkHref');for(const _0x5cd96b of _0x1e70af['manualDecorators'])_0xc6ce23['registerInlineAttribute'](_0x5cd96b['id']),_0xc6ce23['descriptionFactory']['registerAttributeLabel'](_0x5cd96b['id'],'link\x20('+_0x5cd96b['label']['toLowerCase']()+')');_0xc6ce23['descriptionFactory']['registerDescriptionCallback'](_0x1bd8af=>{if('attribute'!=_0x1bd8af['type'])return;const {data:_0x5ccd1c}=_0x1bd8af;if(!_0x5ccd1c||'linkHref'!=_0x5ccd1c['key'])return;const _0x4385b8=_0x5ccd1c['newValue'],_0x1a241a=_0x4f61cd['locale'];return{'type':'format','content':null==_0x4385b8?o(_0x1a241a,'*Remove\x20link*'):o(_0x1a241a,'*Set\x20link:*\x20%0','\x22'+_0x4385b8+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1553ee=this['editor'],_0xbc99bc=_0x1553ee['locale'];_0x1553ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x227790=>{if('formatInline'!=_0x227790['type'])return;const {data:_0x415201}=_0x227790;if(_0x415201){if('link'==_0x415201['commandName']){const _0x31724b=_0x415201['commandParams'][0x0];return{'type':'format','content':o(_0xbc99bc,'*Set\x20link:*\x20%0','\x22'+_0x31724b+'\x22')};}return'unlink'==_0x415201['commandName']?{'type':'format','content':o(_0xbc99bc,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x2bd390{['afterInit'](){const _0x306b36=this['editor'],_0x5ce6c6=_0x306b36['locale'];if(!_0x306b36['plugins']['has']('LegacyListEditing'))return;const _0x54baa8=_0x306b36['plugins']['get']('TrackChangesEditing'),_0x224ebe=_0x306b36['plugins']['has']('LegacyTodoListEditing');function _0x438698(_0x55dd2f){return()=>{const _0x275c46=_0x306b36['model']['document']['selection'],_0x188c4e=_0x306b36['commands']['get'](_0x55dd2f);if(_0x188c4e['value'])return void _0x306b36['execute']('paragraph',{});const _0x5e8e28=_0x55dd2f['slice'](0x0,-0x4),_0x39afdd=function(_0x3e6e0f,_0x4575b5,_0x557956){let _0x552b4a=Array['from'](_0x3e6e0f)['filter'](_0x3d8706=>function(_0x12c3c6,_0x306adc){return _0x306adc['checkChild'](_0x12c3c6['parent'],'listItem')&&!_0x306adc['isObject'](_0x12c3c6);}(_0x3d8706,_0x557956));_0x552b4a=_0x552b4a['filter'](_0x2d2ba7=>!_0x2d2ba7['is']('element','listItem')||_0x2d2ba7['getAttribute']('listType')!=_0x4575b5);const _0x10ac2d=new Set();for(const _0x504f9a of _0x552b4a)_0x504f9a['is']('element','listItem')?_0x10ac2d['add'](Le(_0x504f9a)):_0x10ac2d['add'](_0x504f9a);return Array['from'](_0x10ac2d);}(_0x275c46['getSelectedBlocks'](),_0x5e8e28,_0x306b36['model']['schema']);_0x306b36['model']['change'](()=>{for(const _0x56950f of _0x39afdd)_0x54baa8['markBlockFormat'](_0x56950f,{'commandName':_0x55dd2f,'commandParams':[{'forceValue':!_0x188c4e['value']}],'formatGroupId':'blockName'},Ee(_0x56950f));});};}function _0x3c1064(_0x1cd742){return()=>{const _0x4162c9=function(_0x12aa46){let _0x51430b=Array['from'](_0x12aa46);const _0x30fc5a=_0x51430b['findIndex'](_0x1c8dfd=>'listItem'!=_0x1c8dfd['name']);return _0x30fc5a>-0x1&&(_0x51430b=_0x51430b['slice'](0x0,_0x30fc5a)),_0x51430b;}(_0x306b36['model']['document']['selection']['getSelectedBlocks']()),_0x39cbba=_0x306b36['model']['createRange'](_0x306b36['model']['createPositionAt'](_0x4162c9[0x0],'before'),_0x306b36['model']['createPositionAt'](_0x4162c9[_0x4162c9['length']-0x1],'end'));_0x306b36['model']['change'](()=>{_0x54baa8['markBlockFormat'](_0x39cbba,{'commandName':_0x1cd742,'commandParams':[],'formatGroupId':'listIndent'},function(_0x48a08d){const _0x4b7f2a=new Set();for(const _0x4f82d1 of _0x48a08d){let _0x4f0361=_0x4f82d1['nextSibling'];for(;_0x4f0361&&_0x4f0361['getAttribute']('listIndent')>_0x4f82d1['getAttribute']('listIndent');)_0x4b7f2a['add'](_0x4f0361),_0x4f0361=_0x4f0361['nextSibling'];}return Array['from'](_0x4b7f2a);}(_0x4162c9));});};}_0x54baa8['enableCommand']('numberedList',_0x438698('numberedList')),_0x54baa8['enableCommand']('bulletedList',_0x438698('bulletedList')),_0x224ebe&&_0x54baa8['enableCommand']('todoList',_0x438698('todoList')),_0x54baa8['enableCommand']('indentList',_0x3c1064('indentList')),_0x54baa8['enableCommand']('outdentList',_0x3c1064('outdentList')),_0x224ebe&&_0x54baa8['enableCommand']('checkTodoList',()=>{const _0x241515=_0x306b36['commands']['get']('checkTodoList'),_0x51f556=Array['from'](_0x241515['_selectedElements']);_0x51f556['filter'](_0x1d9894=>_0x1d9894['getAttribute']('todoListChecked')!=_0x241515['value']),_0x306b36['model']['change'](()=>{for(const _0xf0ef6b of _0x51f556)_0x54baa8['markBlockFormat'](_0xf0ef6b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x241515['value']}]});});}),_0x54baa8['descriptionFactory']['registerElementLabel']('listItem',_0x15c558=>o(_0x5ce6c6,'ELEMENT_LIST_ITEM',_0x15c558)),_0x54baa8['descriptionFactory']['registerDescriptionCallback'](_0x2e76d3=>{if('formatBlock'!=_0x2e76d3['type']&&'formatInline'!=_0x2e76d3['type'])return;const {data:_0x47eef8}=_0x2e76d3;if(_0x47eef8){if('numberedList'==_0x47eef8['commandName']||'bulletedList'==_0x47eef8['commandName']||'todoList'==_0x47eef8['commandName'])switch(_0x47eef8['commandName']['replace']('List','')){case'bulleted':return _0x5f2d1c(o(_0x5ce6c6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5f2d1c(o(_0x5ce6c6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5f2d1c(o(_0x5ce6c6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x47eef8['commandName'])return{'type':'format','content':o(_0x5ce6c6,'*Indent:*\x20%0',o(_0x5ce6c6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x47eef8['commandName'])return{'type':'format','content':o(_0x5ce6c6,'*Outdent:*\x20%0',o(_0x5ce6c6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x47eef8['commandName'])return _0x47eef8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ce6c6,'*Check\x20item*')}:{'type':'format','content':o(_0x5ce6c6,'*Uncheck\x20item*')};}function _0x5f2d1c(_0x48294b){return{'type':'format','content':o(_0x5ce6c6,'*Change\x20to:*\x20%0',_0x48294b)};}});}}function Le(_0x1f2052){const _0x587770=_0x1f2052['getAttribute']('listIndent');if(0x0==_0x587770)return _0x1f2052;let _0x60e4a1=_0x1f2052;for(;_0x1f2052['previousSibling']&&_0x1f2052['previousSibling']['is']('element','listItem');){const _0x5f33fd=_0x1f2052['previousSibling']['getAttribute']('listIndent');if(_0x5f33fd==_0x587770)_0x60e4a1=_0x1f2052['previousSibling'];else{if(_0x5f33fd<_0x587770)break;}_0x1f2052=_0x1f2052['previousSibling'];}return _0x60e4a1;}function Ee(_0xae1b82){const _0x6756ac=[];if(_0xae1b82['is']('element','listItem')&&_0xae1b82['getAttribute']('listIndent')>0x0){let _0x408f76=_0xae1b82['nextSibling'];for(;_0x408f76&&'listItem'==_0x408f76['name']&&_0x408f76['getAttribute']('listIndent')==_0xae1b82['getAttribute']('listIndent');)_0x6756ac['push'](_0x408f76),_0x408f76=_0x408f76['nextSibling'];}return _0x6756ac;}class Q extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3e3413=this['editor']['config']['get']('list.properties'),_0x4a8704=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e3413['styles']&&_0x4a8704['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3e3413['reversed']&&_0x4a8704['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3e3413['startIndex']&&_0x4a8704['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4a8704['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3a83db,_0x453103={}){const _0x16948a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x374b66=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x16948a['markMultiRangeBlockFormat'](_0x374b66,{'commandName':'listStyle','commandParams':[{'type':_0x453103['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x455c60,_0x1d9766={}){const _0x2dbedb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x6dd0b5=this['_getSuggestionBlocks'](_0x4e2097=>_0x4e2097['is']('element','listItem')&&'numbered'===_0x4e2097['getAttribute']('listType'));if(_0x6dd0b5['length']<0x1)return;const _0x553205=_0x6dd0b5['map'](_0x4e82bd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e82bd,'before'),this['editor']['model']['createPositionAt'](_0x4e82bd,0x0)));this['editor']['model']['change'](()=>{_0x2dbedb['markMultiRangeBlockFormat'](_0x553205,{'commandName':'listReversed','commandParams':[{'reversed':_0x1d9766['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xc19239,_0x147046={}){const _0x21d268=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cbf11=this['_getSuggestionBlocks'](_0x268954=>_0x268954['is']('element','listItem')&&'numbered'===_0x268954['getAttribute']('listType'));if(_0x5cbf11['length']<0x1)return;const _0x3d4b3d=_0x5cbf11['map'](_0x5b4584=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b4584,'before'),this['editor']['model']['createPositionAt'](_0x5b4584,0x0)));this['editor']['model']['change'](()=>{_0x21d268['markMultiRangeBlockFormat'](_0x3d4b3d,{'commandName':'listStart','commandParams':[{'startIndex':_0x147046['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x235468){if('formatBlock'!=_0x235468['type']&&'formatInline'!=_0x235468['type'])return;const _0x1e907d=this['editor']['locale'],{data:_0x28863c}=_0x235468;if(!_0x28863c)return;let _0x40da3c,_0x15578e;switch(_0x28863c['commandName']){case'listStyle':_0x40da3c='*Change\x20to:*\x20%0',_0x15578e={'type':'format','content':o(_0x1e907d,_0x40da3c,o(_0x1e907d,this['_getTranslationKeyForListStyle'](_0x28863c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x40da3c=_0x28863c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x15578e={'type':'format','content':o(_0x1e907d,_0x40da3c)};break;case'listStart':_0x40da3c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x15578e={'type':'format','content':o(_0x1e907d,_0x40da3c,_0x28863c['commandParams'][0x0]['startIndex'])};}return _0x15578e;}['_getSuggestionBlocksForListStyle'](){const _0x199a6a=this['editor']['plugins']['get']('LegacyListUtils');let _0x25ae0b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x25ae0b[0x0]?.['is']('element','listItem')&&_0x25ae0b['unshift'](..._0x199a6a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x25ae0b[_0x25ae0b['length']-0x1]?.['is']('element','listItem')&&_0x25ae0b['push'](..._0x199a6a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x25ae0b=[...new Set(_0x25ae0b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x25ae0b=_0x25ae0b['filter'](_0x6052c0=>_0x6052c0['is']('element','listItem'))),_0x25ae0b;}['_getSuggestionBlocks'](_0x393bb1){const _0x19987b=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ee143=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x393bb1)['map'](_0x46a0b4=>{const _0x2b72ca=this['editor']['model']['createPositionAt'](_0x46a0b4,0x0);return[..._0x19987b['getSiblingNodes'](_0x2b72ca,'backward'),..._0x19987b['getSiblingNodes'](_0x2b72ca,'forward')];})['flat']();return _0x4ee143=[...new Set(_0x4ee143)],_0x4ee143;}['_getTranslationKeyForListStyle'](_0x513966){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x513966)||'default')['toUpperCase']()+'_LIST_'+_0x513966['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2bd390{['afterInit'](){const _0x22f5ea=this['editor'];if(!_0x22f5ea['plugins']['has']('MediaEmbedEditing'))return;const _0x154430=_0x22f5ea['plugins']['get']('TrackChangesEditing'),_0x22fc1a=_0x22f5ea['locale'];_0x154430['enableCommand']('mediaEmbed'),_0x154430['descriptionFactory']['registerElementLabel']('media',_0x34b060=>o(_0x22fc1a,'ELEMENT_MEDIA',_0x34b060)),_0x22f5ea['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x389abf,{writer:_0x1ad3a6,options:_0xdb5254})=>{if(_0xdb5254['showSuggestionHighlights'])return _0x1ad3a6['createEmptyElement']('div');},'converterPriority':'high'}),_0x22f5ea['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1c0e16,_0x574e91,_0x20803e)=>{_0x20803e['options']['showSuggestionHighlights']&&_0x1c0e16['stop']();},{'priority':'high'});}}class mt extends _0x2bd390{['afterInit'](){const _0xb459e5=this['editor'];_0xb459e5['plugins']['has']('MentionEditing')&&_0xb459e5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x2bd390{['afterInit'](){const _0x5b3792=this['editor'];if(!_0x5b3792['plugins']['has']('MergeFieldsEditing'))return;const _0x75da9b=_0x5b3792['plugins']['get']('TrackChangesEditing'),_0x1268a8=_0x5b3792['locale'];_0x75da9b['enableCommand']('insertMergeField'),_0x75da9b['enableCommand']('insertMergeFieldBlock'),_0x75da9b['enableCommand']('insertMergeFieldImage'),_0x75da9b['descriptionFactory']['registerElementLabel']('mergeField',_0x2cff02=>o(_0x1268a8,'ELEMENT_MERGE_FIELD',_0x2cff02)),_0x75da9b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x49dc9d=>o(_0x1268a8,'ELEMENT_MERGE_FIELD',_0x49dc9d)),_0x75da9b['descriptionFactory']['registerDescriptionCallback'](_0x2f6853=>{if('insertion'!=_0x2f6853['type']&&'deletion'!=_0x2f6853['type'])return;const _0x336f47=_0x2f6853['getContainedElement']();if(null==_0x336f47)return;const _0xa76569=_0x5b3792['plugins']['get']('MergeFieldsEditing');let _0x392de3;switch(_0xa76569['getMergeFieldType'](_0x336f47)){case null:return;case'image':{const _0x202566=_0xa76569['unwrapAffixes'](_0x336f47['getAttribute']('src'));_0x392de3=_0xa76569['getLabel'](_0x202566)||_0x202566;break;}default:{const _0xac9b2d=_0x336f47['getAttribute']('id');_0x392de3=_0xa76569['getLabel'](_0xac9b2d)||_0xac9b2d;break;}}return'insertion'==_0x2f6853['type']?{'type':'insertion','content':o(_0x1268a8,'*Insert:*\x20%0','\x22'+_0x392de3+'\x22\x20'+o(_0x1268a8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1268a8,'*Remove:*\x20%0','\x22'+_0x392de3+'\x22\x20'+o(_0x1268a8,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x2bd390{['afterInit'](){const _0x31ae7c=this['editor'],_0x5b6d7b=_0x31ae7c['plugins']['get']('TrackChangesEditing');_0x31ae7c['plugins']['has']('MultiLevelList')&&(_0x5b6d7b['enableDefaultAttributesIntegration']('multiLevelList'),_0x5b6d7b['registerBlockAttribute']('listMarkerStyle'),_0x5b6d7b['descriptionFactory']['registerDescriptionCallback'](_0x3d11ed=>this['handleDescriptions'](_0x3d11ed)));}['handleDescriptions'](_0x20e229){const _0x56d628=this['editor']['locale'],{data:_0x5062d7}=_0x20e229,_0x524765={'type':'format','content':''};if(_0x5062d7&&'listMarkerStyle'==_0x5062d7['key']){if(!_0x5062d7['oldValue'])return{'type':'format','content':o(_0x56d628,'*Set\x20format:*\x20%0',o(_0x56d628,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5062d7['newValue']+')'};if(!_0x5062d7['newValue']){let _0xac1dfd=_0x20e229['head'];for(;_0xac1dfd;){if(_0xac1dfd['data']&&'listType'==_0xac1dfd['data']['key']&&_0xac1dfd['data']['newValue'])return _0x524765;_0xac1dfd=_0xac1dfd['next'];}return{'type':'format','content':o(_0x56d628,'*Remove\x20format:*\x20%0',o(_0x56d628,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5062d7['oldValue']+')'};}}}}class kt extends _0x2bd390{['afterInit'](){const _0x512154=this['editor'];if(!_0x512154['plugins']['has']('PageBreakEditing'))return;_0x512154['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2aff37=_0x512154['plugins']['get']('TrackChangesEditing'),_0x10c562=_0x512154['locale'];_0x2aff37['descriptionFactory']['registerElementLabel']('pageBreak',_0x1d63f8=>o(_0x10c562,'ELEMENT_PAGE_BREAK',_0x1d63f8));}}class bt extends _0x2bd390{['afterInit'](){const _0x59027c=this['editor'];if(!_0x59027c['plugins']['has']('Paragraph'))return;const _0xa5ddf5=_0x59027c['locale'],_0x125b4d=_0x59027c['plugins']['get']('TrackChangesEditing');_0x125b4d['descriptionFactory']['registerElementLabel']('paragraph',_0x4066a7=>o(_0xa5ddf5,'ELEMENT_PARAGRAPH',_0x4066a7)),_0x125b4d['enableDefaultAttributesIntegration']('paragraph'),_0x125b4d['enableCommand']('insertParagraph'),_0x59027c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x59027c),{'priority':'highest'}),_0x59027c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x55338f,_0x3d9460,_0x8fc34b)=>{_0x8fc34b['options']['showSuggestionHighlights']&&nr(_0x59027c,{'showActiveMarker':!0x1})(_0x55338f,_0x3d9460,_0x8fc34b);},{'priority':'highest'});const _0x75a627=_0x125b4d['descriptionFactory'];_0x75a627['registerDescriptionCallback'](_0x579f8d=>{if('insertion'!==_0x579f8d['type'])return;const {start:_0x1f1bdf,end:_0x5c4c38}=_0x579f8d['getFirstRange']();if(!_0x1f1bdf['isTouching'](_0x5c4c38)||!_0x1f1bdf['nodeAfter'])return;const _0x2d6187=_0x59027c['model']['schema'],_0x405347=_0x1f1bdf['nodeAfter'];return _0x2d6187['isBlock'](_0x405347)&&!_0x2d6187['isLimit'](_0x405347)&&_0x2d6187['checkChild'](_0x405347,'$text')?{'type':'insertion','content':o(_0xa5ddf5,'*Insert:*\x20%0',_0x75a627['getItemLabel'](_0x405347,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cf29e=this['editor'],_0x5cbf9e=_0x3cf29e['locale'];_0x3cf29e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x597ac3=>{if('formatBlock'!=_0x597ac3['type'])return;const {data:_0x3a26d6}=_0x597ac3;return _0x3a26d6&&'paragraph'==_0x3a26d6['commandName']?{'type':'format','content':o(_0x5cbf9e,'*Change\x20to:*\x20%0',o(_0x5cbf9e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3d3d66,{showActiveMarker:_0x4f4916=!0x0}={}){return(_0x41ac86,_0x27cdb3,_0xbacbc0)=>{const _0x184d23=_0x3d3d66['plugins']['get']('TrackChangesEditing'),_0x4ce77f=_0x27cdb3['markerRange']['start'],_0x1a1996=_0x27cdb3['markerRange']['end'],_0x2a564a=_0x3d3d66['model']['schema'];if(!_0x4ce77f['isTouching'](_0x1a1996)||!_0x4ce77f['nodeAfter'])return;const _0x3ec8b4=_0x4ce77f['nodeAfter'];if(_0x2a564a['isBlock'](_0x3ec8b4)&&!_0x2a564a['isLimit'](_0x3ec8b4)&&_0x2a564a['checkChild'](_0x3ec8b4,'$text')){if(!_0xbacbc0['consumable']['consume'](_0x27cdb3['markerRange'],_0x41ac86['name']))return;const {authorId:_0x3663e6}=_0x184d23['_splitMarkerName'](_0x27cdb3['markerName']),_0x358409=_0xbacbc0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3663e6}),_0x4100a4=_0xbacbc0['mapper']['toViewPosition'](_0x1a1996);_0x4f4916&&_0x184d23['activeMarkers']['includes'](_0x27cdb3['markerName'])&&_0xbacbc0['writer']['addClass']('ck-suggestion-marker--active',_0x358409),_0xbacbc0['writer']['insert'](_0x4100a4,_0x358409),_0xbacbc0['mapper']['bindElementToMarker'](_0x358409,_0x27cdb3['markerName']);}};}class yt extends _0x2bd390{['afterInit'](){const _0x177f1f=this['editor'];if(!_0x177f1f['plugins']['has']('RemoveFormatEditing'))return;_0x177f1f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d2fc6=this['editor'];_0x2d2fc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x318008=>{if('formatBlock'!=_0x318008['type']&&'formatInline'!=_0x318008['type'])return;const {data:_0x523b28}=_0x318008;return _0x523b28&&'removeFormat'==_0x523b28['commandName']?{'type':'format','content':o(_0x2d2fc6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x2bd390{['afterInit'](){const _0xb3be67=this['editor'];if(!_0xb3be67['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2e404c=_0xb3be67['plugins']['get']('TrackChangesEditing');_0x2e404c['enableCommand']('goToPreviousRestrictedEditingException'),_0x2e404c['enableCommand']('goToNextRestrictedEditingException');const _0x90548e=_0xb3be67['plugins']['get']('RestrictedEditingModeEditing');_0x90548e['enableCommand']('trackChanges'),_0x90548e['enableCommand']('acceptSuggestion'),_0x90548e['enableCommand']('discardSuggestion'),_0x90548e['enableCommand']('acceptAllSuggestions'),_0x90548e['enableCommand']('discardAllSuggestions'),_0x90548e['enableCommand']('acceptSelectedSuggestions'),_0x90548e['enableCommand']('discardSelectedSuggestions');}}class St extends _0x2bd390{static get['requires'](){return[_0xf93acd];}['init'](){const _0x4c7f6d=this['editor'],_0x4f6422=_0x4c7f6d['plugins']['get']('TrackChangesEditing');_0x4f6422['enableCommand']('shiftEnter'),_0x4c7f6d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4c7f6d),{'priority':'high'}),_0x4c7f6d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4c7f6d),{'priority':'high'}),_0x4c7f6d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x478525,_0x435509,_0x49b65d)=>{_0x49b65d['options']['showSuggestionHighlights']&&je(_0x4c7f6d,{'showActiveMarker':!0x1})(_0x478525,_0x435509,_0x49b65d);}),_0x4f6422['descriptionFactory']['registerElementLabel']('softBreak',_0x4077a0=>o(_0x4c7f6d['locale'],'ELEMENT_LINE_BREAK',_0x4077a0));}}function je(_0x2b115e,{showActiveMarker:_0x212e77=!0x0}={}){return(_0x5cc0c0,_0x39476f,_0x38ddfd)=>{const _0x28a81e=_0x2b115e['plugins']['get']('TrackChangesEditing');if(!_0x38ddfd['consumable']['test'](_0x39476f['markerRange'],_0x5cc0c0['name']))return;const _0x5a2bb1=_0x2b115e['model'];for(const _0x14b7e1 of _0x39476f['markerRange']['getItems']()){if(!_0x14b7e1['is']('element','softBreak'))continue;const _0x52836e='deletion'==_0x39476f['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x154dd7}=_0x28a81e['_splitMarkerName'](_0x39476f['markerName']),_0x4375de=_0x38ddfd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x52836e,'data-author-id':_0x154dd7}),_0x2970cf=_0x38ddfd['mapper']['toViewPosition'](_0x5a2bb1['createPositionBefore'](_0x14b7e1));_0x212e77&&_0x28a81e['activeMarkers']['includes'](_0x39476f['markerName'])&&_0x38ddfd['writer']['addClass']('ck-suggestion-marker--active',_0x4375de),_0x38ddfd['writer']['insert'](_0x2970cf,_0x4375de),_0x38ddfd['mapper']['bindElementToMarker'](_0x4375de,_0x39476f['markerName']);}};}class At extends _0x2bd390{['afterInit'](){const _0x4e559c=this['editor'],_0x18600b=_0x4e559c['model'],_0x3e00f4=_0x4e559c['locale'];if(!_0x4e559c['plugins']['has']('StandardEditingModeEditing'))return;const _0x54c6f2=_0x4e559c['plugins']['get']('TrackChangesEditing'),_0x26361b='restrictedEditingException',_0x5e94ed=_0x4e559c['commands']['get'](_0x26361b);_0x54c6f2['enableCommand'](_0x26361b,(_0x2e989a,_0x3ac0d8={})=>{const _0x51f146=_0x18600b['document']['selection'];if(_0x51f146['isCollapsed'])return void _0x2e989a(_0x3ac0d8);const _0x18027f=void 0x0!==_0x3ac0d8['forceValue']?_0x3ac0d8['forceValue']:!_0x5e94ed['value'];_0x18600b['change'](()=>{const _0x4d6aef=Array['from'](_0x51f146['getRanges']());for(const _0x1a5cd9 of _0x4d6aef){const _0x4d7fc=_0x18027f?[_0x1a5cd9]:io(_0x26361b,_0x1a5cd9,_0x18600b);for(const _0x4c6c04 of _0x4d7fc)_0x54c6f2['markInlineFormat'](_0x4c6c04,{'commandName':_0x26361b,'commandParams':[{'forceValue':_0x18027f}]});}});}),_0x54c6f2['descriptionFactory']['registerDescriptionCallback'](_0x52be07=>{if('formatBlock'!=_0x52be07['type']&&'formatInline'!=_0x52be07['type'])return;const {data:_0x1a5632}=_0x52be07;return _0x1a5632&&_0x1a5632['commandName']==_0x26361b?_0x1a5632['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e00f4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3e00f4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2bd390{['afterInit'](){const _0x27de2c=this['editor'];if(!_0x27de2c['plugins']['has']('Style')||!_0x27de2c['plugins']['has']('DataSchema'))return;const _0x504b99=_0x27de2c['plugins']['get']('TrackChangesEditing'),_0xf6410d=_0x27de2c['locale'],_0x424866=_0x27de2c['config']['get']('style')||{},_0x38000a=_0x27de2c['plugins']['get']('GeneralHtmlSupport'),_0x780bfa=_0x27de2c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x27de2c['plugins']['get']('DataSchema'),_0x424866['definitions']);_0x504b99['enableDefaultAttributesIntegration']('style');const _0x24e9c4=new Set();for(const _0x4d590b of _0x780bfa['block']){const _0x1fe025=_0x38000a['getGhsAttributeNameForElement'](_0x4d590b['element']);_0x24e9c4['add'](_0x1fe025);}const _0x491e43=new Set();for(const _0x102352 of _0x780bfa['inline']){const _0x411951=_0x38000a['getGhsAttributeNameForElement'](_0x102352['element']);_0x491e43['add'](_0x411951);for(const _0x1b7192 of _0x102352['ghsAttributes'])_0x491e43['add'](_0x1b7192);}for(const _0x2055a9 of _0x24e9c4)_0x504b99['registerBlockAttribute'](_0x2055a9),_0x504b99['descriptionFactory']['registerAttributeLabel'](_0x2055a9,o(_0xf6410d,'FORMAT_STYLE'));for(const _0x5523a8 of _0x491e43)_0x504b99['registerInlineAttribute'](_0x5523a8),_0x504b99['descriptionFactory']['registerAttributeLabel'](_0x5523a8,o(_0xf6410d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x306497=this['editor'],_0x113347=_0x306497['locale'];_0x306497['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f206f=>{if('formatBlock'!=_0x5f206f['type']&&'formatInline'!=_0x5f206f['type'])return;const {data:_0x1eda38}=_0x5f206f;return _0x1eda38&&'style'===_0x1eda38['commandName']?_0x1eda38['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x113347,'*Set\x20format:*\x20%0',_0x1eda38['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x113347,'*Remove\x20format:*\x20%0',_0x1eda38['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x2bd390{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x26dc2d){super(_0x26dc2d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4db63d=this['editor'],_0x5c75eb=_0x4db63d['model']['document']['selection'];if(!_0x4db63d['plugins']['has']('TableEditing'))return;const _0x387aa2=_0x4db63d['locale'],_0x1a737b=_0x4db63d['plugins']['get']('TrackChangesEditing'),_0xd912ba=_0x4db63d['plugins']['get']('TableUtils');_0x1a737b['descriptionFactory']['registerElementLabel']('table',_0x59b065=>o(_0x387aa2,'ELEMENT_TABLE',_0x59b065)),this['_setupColumnsRowsFixing'](),_0x1a737b['enableCommand']('insertTable'),_0x1a737b['enableCommand']('selectTableRow'),_0x1a737b['enableCommand']('selectTableColumn');for(const _0x453e04 of['insertTableRowAbove','insertTableRowBelow']){const _0x533dd8=_0x4db63d['commands']['get'](_0x453e04);_0x1a737b['enableCommand'](_0x453e04,_0x3c49e5=>{_0x4db63d['model']['change'](_0x23ae79=>{_0x3c49e5();const _0x18e508='above'===_0x533dd8['order'],_0x5c4d6b=_0xd912ba['getSelectionAffectedTableCells'](_0x5c75eb),_0xbe1105=_0xd912ba['getRowIndexes'](_0x5c4d6b),_0x2297fc=_0x18e508?_0xbe1105['first']-0x1:_0xbe1105['last']+0x1,_0x31c1b5=_0x5c4d6b[0x0]['findAncestor']('table'),_0x5f26a3=_0xd912ba['createTableWalker'](_0x31c1b5,{'startRow':_0x2297fc,'endRow':_0x2297fc}),_0x455da5=Array['from'](_0x5f26a3)['map'](_0x4bfcb1=>_0x23ae79['createRangeOn'](_0x4bfcb1['cell']));_0x1a737b['markMultiRangeInsertion'](_0x455da5,'tableRow');});});}for(const _0x1b56a9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x8e6211=_0x4db63d['commands']['get'](_0x1b56a9);_0x1a737b['enableCommand'](_0x1b56a9,_0x3227af=>{_0x4db63d['model']['change'](_0x108b1b=>{_0x3227af();const _0x69a6ab='left'===_0x8e6211['order'],_0x10fb42=_0xd912ba['getSelectionAffectedTableCells'](_0x5c75eb),_0x54e905=_0xd912ba['getColumnIndexes'](_0x10fb42),_0x387a61=_0x69a6ab?_0x54e905['first']-0x1:_0x54e905['last']+0x1,_0x21efa7=_0x10fb42[0x0]['findAncestor']('table'),_0x37392c=_0xd912ba['createTableWalker'](_0x21efa7,{'startRow':0x0,'column':_0x387a61,'includeAllSlots':!0x1}),_0x28ad86=Array['from'](_0x37392c)['map'](_0x2fdb66=>_0x108b1b['createRangeOn'](_0x2fdb66['cell']));_0x1a737b['markMultiRangeInsertion'](_0x28ad86,'tableColumn');});});}for(const _0x3452db of['removeTableRow','removeTableColumn']){const _0x2f78ae=_0x3452db['substr'](0xb),_0x46a0cb=_0x2f78ae['toLowerCase'](),_0xa4b0cb=_0x46a0cb['substr'](0x0,0x3)+'span',_0x1a06c5='table'+_0x2f78ae,_0x5f2071='min'+_0x2f78ae,_0x1029f1='max'+_0x2f78ae;_0x1a737b['enableCommand'](_0x3452db,()=>{_0x4db63d['model']['change'](_0x178a50=>{const _0xebe0ff=_0xd912ba['getSelectionAffectedTableCells'](_0x5c75eb),_0x43b455=_0xebe0ff[0x0]['findAncestor']('table');let _0x5a7513;if('removeTableRow'==_0x3452db){const _0x354639=_0xd912ba['getRowIndexes'](_0xebe0ff);_0x5a7513={'startRow':_0x354639['first'],'endRow':_0x354639['last'],'includeAllSlots':!0x0};}else{const _0x41fe8f=_0xd912ba['getColumnIndexes'](_0xebe0ff);_0x5a7513={'startColumn':_0x41fe8f['first'],'endColumn':_0x41fe8f['last'],'includeAllSlots':!0x0};}const _0x37987e=_0xd912ba['createTableWalker'](_0x43b455,_0x5a7513),_0x33a037=Array['from'](_0x37987e)['map'](({cell:_0x3dbd71})=>_0x3dbd71),_0x13dea6=Ne(_0x33a037['filter'](_0x4320ef=>_0x4320ef['hasAttribute'](_0xa4b0cb))),_0x2ebebd=Ne(_0x33a037['filter'](_0x410d23=>!_0x410d23['hasAttribute'](_0xa4b0cb)))['map'](_0x2380f8=>_0x178a50['createRangeOn'](_0x2380f8)),_0xd80076=_0x1a737b['markMultiRangeDeletion'](_0x2ebebd,_0x1a06c5);if(_0xd80076&&('tableRow'==_0xd80076['subType']||'tableColumn'==_0xd80076['subType'])){const _0x6cd022=this['_getSuggestionCoords'](_0xd80076);for(const _0x77c8d0 of _0x13dea6){const _0x218dc5=_0x178a50['createRangeOn'](_0x77c8d0),_0x3046ce=_0xd912ba['getCellLocation'](_0x77c8d0),_0x249f52=_0x77c8d0['getAttribute'](_0xa4b0cb)-0x1,_0x108a8c=_0x6cd022[_0x5f2071],_0x15d8d9=_0x6cd022[_0x1029f1];_0x108a8c<=_0x3046ce[_0x46a0cb]&&_0x3046ce[_0x46a0cb]+_0x249f52<=_0x15d8d9&&_0xd80076['addRange'](_0x218dc5);}}});});}function _0xe5ee49(_0x1a54cb){const _0x427f4d=Array['from'](_0x5c75eb['getRanges']())['map'](_0x42d0f4=>_0xfaa3eb['fromRange'](_0x42d0f4));_0x4db63d['model']['change'](_0x181735=>{const _0x144fb2=_0x181735['batch'];_0x1a54cb=_0x1a54cb['filter'](_0x5cea33=>'$graveyard'!=_0x5cea33['root']['rootName']),_0x181735['setSelection'](_0x1a54cb),_0x4db63d['commands']['get']('removeTableRow')['refresh'](),_0x4db63d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4db63d['model']['enqueueChange'](()=>{_0x4db63d['model']['enqueueChange'](_0x144fb2,_0x235739=>{const _0x5e95fc=_0x427f4d['filter'](_0x3f5150=>'$graveyard'!=_0x3f5150['root']['rootName']);_0x5e95fc['length']>0x0&&_0x235739['setSelection'](_0x5e95fc);for(const _0x5ed772 of _0x427f4d)_0x5ed772['detach']();});});});}function _0x53a4bc(_0xd2781b){_0x4db63d['model']['change'](_0x5f1e75=>{const _0x2e47c3=Array['from'](_0x5c75eb['getRanges']())['map'](_0x22438c=>_0xfaa3eb['fromRange'](_0x22438c)),_0x1db293=[];for(const _0x19d76e of _0xd2781b)for(const _0x4118f5 of _0x19d76e['getItems']({'shallow':!0x0}))_0x1db293['push'](_0x4118f5);for(const _0x130119 of _0x1db293)'$graveyard'!=_0x130119['root']['rootName']&&(_0x5f1e75['setSelection'](_0x5f1e75['createPositionAt'](_0x130119,0x0)),_0x4db63d['commands']['get']('removeTableColumn')['refresh'](),_0x4db63d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3db673=_0x2e47c3['filter'](_0x4bdb2c=>'$graveyard'!=_0x4bdb2c['root']['rootName']);_0x3db673['length']>0x0&&_0x5f1e75['setSelection'](_0x3db673);for(const _0x25b664 of _0x2e47c3)_0x25b664['detach']();});}function _0x2669f2(_0x28047c,_0xd79f60){return _0xd79f60['every'](_0x1d0714=>_0x28047c['some'](_0x456f3b=>_0x456f3b['end']['isEqual'](_0x1d0714['start'])||_0x1d0714['end']['isEqual'](_0x456f3b['start'])));}function _0x385c8d(_0x20ae73,_0x312aba){return!_0x20ae73['some'](_0x4a7709=>_0x312aba['some'](_0x3173ee=>_0x4a7709['isIntersecting'](_0x3173ee)))&&_0x20ae73['some'](_0x47f28a=>_0x312aba['some'](_0x52e7ce=>_0x47f28a['end']['isTouching'](_0x52e7ce['start'])));}_0x4db63d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e073e,_0x24969f,_0x351144)=>{if(!_0x351144['options']['showSuggestionHighlights'])return;const _0x24d5da=_0x24969f['item'];if(!_0x24d5da)return;const _0x1bcc94=_0x351144['mapper']['toViewElement'](_0x24d5da);function _0x2c2584(_0x181b71){return Array['isArray'](_0x181b71)?_0x181b71:[_0x181b71];}_0x1bcc94&&'tableCell'===_0x24d5da['name']&&_0xe45f10(_0x1bcc94,_0x351144['writer'],(_0x3c1a28,_0x4a3265,_0x412f5d)=>_0x412f5d['addClass'](_0x2c2584(_0x4a3265['classes']),_0x3c1a28),(_0x1beb75,_0xccb910,_0x27d077)=>_0x27d077['removeClass'](_0x2c2584(_0xccb910['classes']),_0x1beb75));},{'priority':'highest'}),_0x1a737b['descriptionFactory']['registerDescriptionCallback'](_0x563766=>{if('insertion'!=_0x563766['type']&&'deletion'!=_0x563766['type'])return;const _0x33f9fb=_0x563766['getContainedElement']();if(null!=_0x33f9fb&&_0x33f9fb['is']('element','table')){if('insertion'==_0x563766['type']){const _0x54339f=_0x563766['getItems']()['filter'](_0x41b285=>_0x41b285['is']('$textProxy'))['map'](_0x318e4e=>_0x318e4e['data']);if(_0x54339f['length'])return{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x54339f['join']('\x20')+'\x22'))};}if('deletion'==_0x563766['type']){const _0x283a1f=_0x563766['getItems']()['filter'](_0x5aabfd=>_0x5aabfd['is']('$textProxy'))['map'](_0x54708a=>_0x54708a['data']);if(_0x283a1f['length'])return{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x283a1f['join']('\x20')+'\x22'))};}}}),_0x1a737b['descriptionFactory']['registerDescriptionCallback'](_0xd8b2fe=>{if('tableRow'==_0xd8b2fe['subType']){const _0xdea9b1=_0xd8b2fe['getItems']()['filter'](_0x146e38=>_0x146e38['is']('$textProxy'))['map'](_0x2bf382=>_0x2bf382['data']),_0x43d746=this['_getSuggestionCoords'](_0xd8b2fe),_0x2b8600=_0x43d746['maxRow']-_0x43d746['minRow']+0x1;if('insertion'==_0xd8b2fe['type'])return _0xdea9b1['length']?{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b8600,'\x22'+_0xdea9b1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_ROW',_0x2b8600))};if('deletion'==_0xd8b2fe['type'])return _0xdea9b1['length']?{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b8600,'\x22'+_0xdea9b1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_ROW',_0x2b8600))};}if('tableColumn'==_0xd8b2fe['subType']){const _0x3064b5=_0xd8b2fe['getItems']()['filter'](_0x44dd5c=>_0x44dd5c['is']('$textProxy'))['map'](_0x45d2ca=>_0x45d2ca['data']),_0x197858=this['_getSuggestionCoords'](_0xd8b2fe),_0x20ee38=_0x197858['maxColumn']-_0x197858['minColumn']+0x1;if('insertion'==_0xd8b2fe['type'])return _0x3064b5['length']?{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20ee38,'\x22'+_0x3064b5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x387aa2,'*Insert:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_COLUMN',_0x20ee38))};if('deletion'==_0xd8b2fe['type'])return _0x3064b5['length']?{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20ee38,'\x22'+_0x3064b5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x387aa2,'*Remove:*\x20%0',o(_0x387aa2,'ELEMENT_TABLE_COLUMN',_0x20ee38))};}}),_0x1a737b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xe5ee49),_0x1a737b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xe5ee49),_0x1a737b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x53a4bc),_0x1a737b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x53a4bc),_0x1a737b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2669f2),_0x1a737b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2669f2),_0x1a737b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x385c8d),_0x1a737b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x385c8d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x28e41c=this['editor'],_0x55c71a=_0x28e41c['model']['document']['selection'];return(_0x425e31,_0x390047)=>{_0x28e41c['model']['change'](_0x555c4c=>{const {commandName:_0x1b62ac,commandParams:_0x1bec45}=_0x390047;let _0x50bbfb=_0x425e31[0x0]['end']['nodeBefore'];_0x1bec45&&_0x1bec45[0x0]&&!0x1===_0x1bec45[0x0]['forceValue']&&(_0x50bbfb=_0x425e31[0x0]['start']['nodeAfter']);const _0x10cf6c=_0x555c4c['createRangeIn'](_0x50bbfb);if('$graveyard'==_0x10cf6c['root']['rootName'])return;const _0x38f09f=Array['from'](_0x55c71a['getRanges']())['map'](_0x231ac2=>_0xfaa3eb['fromRange'](_0x231ac2));_0x555c4c['setSelection'](_0x10cf6c),_0x28e41c['commands']['get'](_0x1b62ac)['refresh'](),_0x1bec45['push']({'forceDefaultExecution':!0x0}),_0x28e41c['execute'](_0x1b62ac,..._0x1bec45);const _0x3dfedf=_0x38f09f['filter'](_0x192db6=>'$graveyard'!=_0x192db6['root']['rootName']);_0x3dfedf['length']>0x0&&_0x555c4c['setSelection'](_0x3dfedf);for(const _0x1d561a of _0x38f09f)_0x1d561a['detach']();});};}['_getCoordsForCells'](_0x152511){const _0x409df8=this['editor']['plugins']['get']('TableUtils');let _0x513627=Number['MAX_SAFE_INTEGER'],_0x3a4e7f=Number['MIN_SAFE_INTEGER'],_0x2c10b4=Number['MAX_SAFE_INTEGER'],_0x36fcd1=Number['MIN_SAFE_INTEGER'];for(const _0x53861e of _0x152511){if('$graveyard'==_0x53861e['root']['rootName'])continue;const {row:_0xedc5b2,column:_0x18c714}=_0x409df8['getCellLocation'](_0x53861e),_0x37b3c4=_0x53861e['hasAttribute']('rowspan')?_0x53861e['getAttribute']('rowspan')-0x1:0x0,_0x5d3b5a=_0x53861e['hasAttribute']('colspan')?_0x53861e['getAttribute']('colspan')-0x1:0x0;_0x513627=_0xedc5b2<_0x513627?_0xedc5b2:_0x513627,_0x3a4e7f=_0xedc5b2+_0x37b3c4>_0x3a4e7f?_0xedc5b2+_0x37b3c4:_0x3a4e7f,_0x2c10b4=_0x18c714<_0x2c10b4?_0x18c714:_0x2c10b4,_0x36fcd1=_0x18c714+_0x5d3b5a>_0x36fcd1?_0x18c714+_0x5d3b5a:_0x36fcd1;}return{'minRow':_0x513627,'maxRow':_0x3a4e7f,'minColumn':_0x2c10b4,'maxColumn':_0x36fcd1};}['_setupColumnsRowsFixing'](){const _0x3b41f5=this['editor'],_0x12c448=_0x3b41f5['plugins']['get']('TrackChangesEditing'),_0x4ed292=_0x3b41f5['plugins']['get']('TableUtils');_0x3b41f5['model']['document']['on']('change:data',()=>{const _0x30d9f3=Array['from'](_0x3b41f5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x563036,data:_0x5870c5}of _0x30d9f3){const {group:_0x35627e,id:_0xa7dfb,subType:_0x74b55e}=_0x12c448['_splitMarkerName'](_0x563036);if('suggestion'!=_0x35627e)continue;if(null!=_0x5870c5['oldRange'])continue;const _0x3ec720=_0x12c448['getSuggestion'](_0xa7dfb);this['_tablePostFixingSubtypes']['includes'](_0x74b55e)&&this['_tableSuggestions']['add'](_0x3ec720);}},{'priority':'low'});const _0x274102=(_0x40ebeb,_0x1f8bf6)=>{let _0x5a2d48=!0x1;const _0x53a76e=_0x1f8bf6['createRangeOn'](_0x40ebeb),_0x578928=_0x40ebeb['findAncestor']('table'),_0x102fce=_0x4ed292['getCellLocation'](_0x40ebeb);for(const _0x7cf864 of this['_tableSuggestions']){const _0x5a3ec1=_0x7cf864['subType'],_0x15aa12=_0x5a3ec1['startsWith']('tablePaste'),_0x202a92=_0x5a3ec1['substr'](_0x15aa12?0xa:0x5),_0x2333f1=_0x202a92['toLowerCase'](),_0xf82fe=_0x2333f1['substr'](0x0,0x3)+'span',_0x8b04ca='min'+_0x202a92,_0x5ad011='max'+_0x202a92;if(!_0x7cf864['isInContent'])continue;if(_0x578928!=_0x7cf864['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x7cf864['isIntersectingWithRange'](_0x53a76e))continue;const _0x56a733=_0x40ebeb['hasAttribute'](_0xf82fe)?_0x40ebeb['getAttribute'](_0xf82fe)-0x1:0x0,_0xa0473e=this['_getSuggestionCoords'](_0x7cf864),_0x120eba=_0xa0473e[_0x8b04ca],_0x3cb895=_0xa0473e[_0x5ad011];_0x120eba<=_0x102fce[_0x2333f1]&&_0x102fce[_0x2333f1]+_0x56a733<=_0x3cb895&&(_0x7cf864['addRange'](_0x53a76e),_0x5a2d48=!0x0);}return _0x5a2d48;};_0x3b41f5['model']['document']['registerPostFixer'](_0x23b9cd=>{let _0x88336d=!0x1;for(const _0x36bef1 of _0x3b41f5['model']['document']['differ']['getChanges']())if('insert'==_0x36bef1['type']){if('tableRow'==_0x36bef1['name']){for(const _0x22ec16 of _0x36bef1['position']['nodeAfter']['getChildren']())_0x88336d=_0x88336d||_0x274102(_0x22ec16,_0x23b9cd);}else'tableCell'==_0x36bef1['name']&&(_0x88336d=_0x88336d||_0x274102(_0x36bef1['position']['nodeAfter'],_0x23b9cd));}return _0x88336d;});}['_getSuggestionCoords'](_0x179677){return this['_getCoordsForCells'](_0x179677['getRanges']()['map'](_0x10ca93=>_0x10ca93['start']['nodeAfter']));}}function Ne(_0x207ee1){return Array['from'](new Set(_0x207ee1)['values']());}class _t extends _0x2bd390{static get['requires'](){return[vt];}['afterInit'](){const _0x175e6e=this['editor'],_0x1b6a46=_0x175e6e['model']['document']['selection'],_0x4ef5fd=_0x175e6e['locale'];if(!_0x175e6e['plugins']['has']('TableEditing'))return;const _0x2502a8=_0x175e6e['plugins']['get']('TrackChangesEditing'),_0x482795=_0x175e6e['plugins']['get']('TableUtils'),_0xaeab7b=_0x175e6e['plugins']['get'](vt);_0xaeab7b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2502a8['enableCommand']('mergeTableCells',()=>{const _0x5dac24=_0x482795['getSelectionAffectedTableCells'](_0x175e6e['model']['document']['selection']);_0x175e6e['model']['change'](()=>{_0x2502a8['markMultiRangeBlockFormat'](_0x5dac24,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x175e6e['commands']['get']('mergeTableCells')['on']('execute',(_0x1810b3,_0x8275ac)=>{_0x175e6e['commands']['get']('trackChanges')['value']&&(_0x8275ac['length']>0x0&&_0x8275ac[_0x8275ac['length']-0x1]&&_0x8275ac[_0x8275ac['length']-0x1]['forceDefaultExecution']||_0x2502a8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1810b3['stop']());},{'priority':'highest'});for(const _0x461060 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x582073=_0x175e6e['commands']['get'](_0x461060);_0x2502a8['enableCommand'](_0x461060,()=>{const _0x96f249=_0x175e6e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13c705=>_0x13c705['is']('element','tableCell')),_0xa1f9fe=_0x582073['value'];_0x175e6e['model']['change'](()=>{_0x2502a8['markMultiRangeBlockFormat']([_0x96f249,_0xa1f9fe],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x85ecff of['splitTableCellVertically','splitTableCellHorizontally']){const _0x530861=_0x175e6e['commands']['get'](_0x85ecff);_0x2502a8['enableCommand'](_0x85ecff,()=>{const _0x48ae2f=_0x482795['getSelectionAffectedTableCells'](_0x175e6e['model']['document']['selection'])[0x0],_0x270b74=_0x48ae2f['findAncestor']('table'),{column:_0x4d4f91,row:_0x20d2b0}=_0x482795['getCellLocation'](_0x48ae2f);let _0x5119a0=[];if('horizontally'==_0x530861['direction']){const _0x4b3988=_0x482795['createTableWalker'](_0x270b74,{'startRow':_0x20d2b0,'endRow':_0x20d2b0,'includeAllSlots':!0x0});_0x5119a0=Array['from'](_0x4b3988)['map'](_0x3f3d34=>_0x3f3d34['cell']);}else{const _0x47c9c4=_0x482795['createTableWalker'](_0x270b74,{'column':_0x4d4f91,'includeAllSlots':!0x0});_0x5119a0=Array['from'](_0x47c9c4)['map'](_0x10def4=>_0x10def4['cell']);}_0x175e6e['model']['change'](_0x3e8400=>{_0x2502a8['markBlockFormat'](_0x3e8400['createRangeOn'](_0x48ae2f),{'commandName':_0x85ecff,'commandParams':[]},_0x5119a0,_0x85ecff);});});}_0x2502a8['descriptionFactory']['registerDescriptionCallback'](_0x36eff5=>{if('formatBlock'!=_0x36eff5['type']&&'formatInline'!=_0x36eff5['type'])return;const {data:_0x8b8d04}=_0x36eff5;return _0x8b8d04&&'mergeTableCells'==_0x8b8d04['commandName']?{'type':'format','content':o(_0x4ef5fd,'*Merge\x20cells*')}:void 0x0;}),_0x2502a8['descriptionFactory']['registerDescriptionCallback'](_0xb4f4ce=>{if('formatBlock'!=_0xb4f4ce['type']&&'formatInline'!=_0xb4f4ce['type'])return;const {data:_0xec1bb4}=_0xb4f4ce;return _0xec1bb4?'splitTableCellVertically'==_0xec1bb4['commandName']?{'type':'format','content':o(_0x4ef5fd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xec1bb4['commandName']?{'type':'format','content':o(_0x4ef5fd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4f189a=_0xaeab7b['_acceptFormatSuggestionCallbackFactory']();for(const _0x5575ea of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2502a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5575ea,'accept',_0x4f189a);for(const _0x3c966d of['splitTableCellVertically','splitTableCellHorizontally'])_0x2502a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c966d,'accept',_0x4f189a);_0x2502a8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4aadbf=>{_0x175e6e['model']['change'](_0x1294c1=>{const _0x3cec2e=Array['from'](_0x1b6a46['getRanges']())['map'](_0x325727=>_0xfaa3eb['fromRange'](_0x325727));_0x1294c1['setSelection'](_0x4aadbf),_0x175e6e['commands']['get']('mergeTableCells')['refresh'](),_0x175e6e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x549930=_0x3cec2e['filter'](_0x547ade=>'$graveyard'!=_0x547ade['root']['rootName']);_0x549930['length']>0x0&&_0x1294c1['setSelection'](_0x549930);for(const _0x4ffc95 of _0x3cec2e)_0x4ffc95['detach']();});});for(const _0x238ebb of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4ae6ee=_0x175e6e['commands']['get'](_0x238ebb);_0x4ae6ee['on']('set:isEnabled',(_0x5f58d4,_0x1e6fab,_0x128ae6)=>{if(_0x128ae6){const _0x18e75b=_0x175e6e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4a727d=>_0x4a727d['is']('element','tableCell'));this['_areMergableCells'](_0x4ae6ee['value'],_0x18e75b)||(_0x5f58d4['return']=!0x1,_0x5f58d4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3498a8=this['editor']['commands']['get']('mergeTableCells'),_0x319e1e=this['editor']['plugins']['get']('TableUtils');if(!_0x3498a8['isEnabled'])return!0x1;const _0x5a30d5=_0x319e1e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x61d3da of _0x5a30d5)for(const _0x25839d of _0x5a30d5)if(_0x61d3da!=_0x25839d&&!this['_areMergableCells'](_0x61d3da,_0x25839d))return!0x1;return!0x0;}['_areMergableCells'](_0x1850fe,_0x211cd3){const _0x4039d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26b5a8=this['editor']['model']['createRangeOn'](_0x1850fe),_0x3aa104=this['editor']['model']['createRangeOn'](_0x211cd3),_0x157186=new Set(),_0xdca85a=new Set();for(const _0x2edbe2 of _0x4039d8['getSuggestions']())if(('insertion'==_0x2edbe2['type']||'deletion'==_0x2edbe2['type']||'mergeTableCells'==_0x2edbe2['subType'])&&_0x2edbe2['isInContent']){for(const _0x219556 of _0x2edbe2['getRanges']())_0x219556['containsRange'](_0x26b5a8,!0x0)&&_0x157186['add'](_0x2edbe2['type']+':'+_0x2edbe2['author']['id']),_0x219556['containsRange'](_0x3aa104,!0x0)&&_0xdca85a['add'](_0x2edbe2['type']+':'+_0x2edbe2['author']['id']);}if(_0x157186['size']!=_0xdca85a['size'])return!0x1;for(const _0x5259d9 of _0x157186)if(!_0xdca85a['has'](_0x5259d9))return!0x1;return!0x0;}}class Ct extends _0x2bd390{static get['requires'](){return[vt];}['afterInit'](){const _0x2ea0a0=this['editor'];if(!_0x2ea0a0['plugins']['has']('TableEditing'))return;const _0x5d10bc=_0x2ea0a0['locale'],_0x1b8e73=_0x2ea0a0['plugins']['get']('TrackChangesEditing');_0x1b8e73['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b8e73['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b8e73['registerBlockAttribute']('headingRows'),_0x1b8e73['registerBlockAttribute']('headingColumns'),_0x1b8e73['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5d10bc,'FORMAT_HEADER_ROW')),_0x1b8e73['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5d10bc,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2063d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x405e28=this['editor']['plugins']['get']('TableUtils'),_0x3256e7=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x488b56({showActiveMarker:_0x563e71=!0x0,setDataAttribute:_0x17f51a=!0x0}={}){return(_0x24eb2f,_0x1b8a5b,_0x48948f)=>{const {type:_0x57997f,id:_0x52bc17}=_0x2063d7['_splitMarkerName'](_0x1b8a5b['markerName']),_0x16b899=_0x2063d7['getSuggestion'](_0x52bc17),_0x2d280f=_0x16b899['data'];if('formatBlock'!=_0x16b899['type']||!_0x2d280f||'setTableColumnHeader'!=_0x2d280f['commandName'])return;if(_0x1b8a5b['item'])return void _0x24eb2f['stop']();if(!_0x48948f['consumable']['consume'](_0x1b8a5b['markerRange'],_0x24eb2f['name']))return;const _0x338dc4=_0x1b8a5b['markerRange']['start']['nodeAfter'],_0x10c18b=_0x1b8a5b['markerRange']['end']['nodeBefore'],_0x5b902d=_0x338dc4['parent']['parent'],{column:_0x31b9cf}=_0x405e28['getCellLocation'](_0x338dc4),{column:_0x2f546a}=_0x405e28['getCellLocation'](_0x10c18b);for(let _0x55ade1=_0x31b9cf;_0x55ade1<=_0x2f546a;_0x55ade1++){const _0x4b971a=_0x405e28['createTableWalker'](_0x5b902d,{'column':_0x55ade1,'includeAllSlots':!0x1});for(const _0x238d72 of _0x4b971a){const _0x58735c=_0x238d72['cell'],_0x1ecc16=_0x48948f['mapper']['toViewElement'](_0x58735c);_0x48948f['writer']['addClass']('ck-suggestion-marker-'+_0x57997f,_0x1ecc16),_0x17f51a&&_0x48948f['writer']['setAttribute']('data-suggestion',_0x52bc17,_0x1ecc16),_0x48948f['mapper']['bindElementToMarker'](_0x1ecc16,_0x1b8a5b['markerName']),_0x563e71&&(_0x2063d7['activeMarkers']['includes'](_0x1b8a5b['markerName'])?_0x48948f['writer']['addClass']('ck-suggestion-marker--active',_0x1ecc16):_0x48948f['writer']['removeClass']('ck-suggestion-marker--active',_0x1ecc16));}}};}_0x2063d7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3256e7),_0x2063d7['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3256e7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x488b56(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e0042,_0x2d1f28,_0x39b707)=>{_0x39b707['options']['showSuggestionHighlights']&&_0x488b56({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4e0042,_0x2d1f28,_0x39b707);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3cd8b1,_0x4a40f3,_0x5b0f06)=>{const {type:_0x55972a,id:_0x28aa2d}=_0x2063d7['_splitMarkerName'](_0x4a40f3['markerName']),_0x2bfe14=_0x2063d7['getSuggestion'](_0x28aa2d),_0x297b50=_0x2bfe14['data'];if('formatBlock'!=_0x2bfe14['type']||!_0x297b50||'setTableColumnHeader'!=_0x297b50['commandName'])return;const _0x59d82b=_0x5b0f06['mapper']['markerNameToElements'](_0x4a40f3['markerName']);if(_0x59d82b){for(const _0xb7a87e of _0x59d82b)_0x5b0f06['writer']['removeClass']('ck-suggestion-marker-'+_0x55972a,_0xb7a87e),_0x5b0f06['writer']['removeClass']('ck-suggestion-marker--active',_0xb7a87e),_0x5b0f06['writer']['removeAttribute']('data-suggestion',_0xb7a87e),_0x5b0f06['mapper']['unbindElementFromMarkerName'](_0xb7a87e,_0x4a40f3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e4820=this['editor'],_0x59dc58=_0x3e4820['locale'];function _0x14250a(_0x29cd1a){return{'type':'format','content':o(_0x59dc58,'*Format:*\x20%0',_0x29cd1a)};}_0x3e4820['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f5d17=>{if('formatBlock'!=_0x5f5d17['type'])return;const {data:_0xe05fec}=_0x5f5d17;if(_0xe05fec){if('setTableRowHeader'==_0xe05fec['commandName']){const _0x5a0661=_0xe05fec['commandParams'][0x0]['forceValue'];return _0x14250a(o(_0x59dc58,_0x5a0661?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xe05fec['commandName']){const _0x1f9c14=_0xe05fec['commandParams'][0x0]['forceValue'];return _0x14250a(o(_0x59dc58,_0x1f9c14?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x843b90=>[_0x843b90,null]));class Nt extends _0x2bd390{static get['requires'](){return[vt];}['afterInit'](){const _0x58d3cb=this['editor'];if(!_0x58d3cb['plugins']['has']('TableClipboard'))return;const _0x1d1408=_0x58d3cb['plugins']['get']('TrackChangesEditing'),_0x144095=_0x58d3cb['plugins']['get']('TableUtils'),_0x157f33=_0x58d3cb['plugins']['get'](vt),_0x29a5de=_0x58d3cb['plugins']['get']('TableClipboard');_0x157f33['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x58d3cb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x58d3cb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2b9fa6=null;_0x58d3cb['model']['on']('insertContent',(_0xb634d4,_0x304ede)=>{const [_0x8cb50b,_0x5dcb0d]=_0x304ede,_0x2a5168=_0x304ede[_0x304ede['length']-0x1];_0x2a5168&&_0x2a5168['forceDefaultExecution']||_0x1d1408['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1eed1b,_0x5be585,_0x4d40c5,_0x4342c0,_0x443065){if(_0x5be585&&!_0x5be585['is']('documentSelection'))return!0x1;const _0x31e6bf=_0x443065['getTableIfOnlyTableInContent'](_0x1eed1b,_0x4d40c5);if(!_0x31e6bf||!Ue(_0x31e6bf,void 0x0,_0x4342c0))return!0x1;const _0x49757f=_0x4342c0['getSelectionAffectedTableCells'](_0x4d40c5['document']['selection']);if(!_0x49757f['length'])return!0x1;const _0x29371e=_0x49757f[0x0]['findAncestor']('table'),_0x36dc08=_0x4342c0['getRowIndexes'](_0x49757f),_0x38f635=_0x4342c0['getColumnIndexes'](_0x49757f),_0x3cb2ce={'startRow':_0x36dc08['first'],'endRow':_0x36dc08['last'],'startColumn':_0x38f635['first'],'endColumn':_0x38f635['last']};return 0x1==_0x49757f['length']&&(_0x3cb2ce['endRow']+=_0x4342c0['getRows'](_0x31e6bf)-0x1,_0x3cb2ce['endColumn']+=_0x4342c0['getColumns'](_0x31e6bf)-0x1),Ue(_0x29371e,_0x3cb2ce,_0x4342c0);}(_0x8cb50b,_0x5dcb0d,_0x58d3cb['model'],_0x144095,_0x29a5de)&&(_0xb634d4['stop'](),_0x2b9fa6={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x58d3cb['model']['change'](()=>{_0x58d3cb['model']['insertContent'](_0x304ede[0x0],_0x304ede[0x1],_0x304ede[0x2],{'forceDefaultExecution':!0x0});const _0x175a7e=_0x309c8a(),{rowInsertionRanges:_0x4a749b,columnInsertionRanges:_0x3922a5,insertionRanges:_0x466611,deletionRanges:_0x4196c5,cells:_0xc5a1a4}=_0x2b9fa6;_0x4a749b['length']&&_0x1d1408['markMultiRangeInsertion'](_0x4a749b,'tablePasteRow',{'tablePasteChainId':_0x175a7e}),_0x3922a5['length']&&_0x1d1408['markMultiRangeInsertion'](_0x3922a5,'tablePasteColumn',{'tablePasteChainId':_0x175a7e}),_0x466611['length']&&(_0x1d1408['markMultiRangeInsertion'](_0x466611,'tablePaste',{'tablePasteChainId':_0x175a7e,'skipNestingCheck':!0x0}),_0x466611['forEach'](_0x4e128d=>_0x4e128d['detach']?.())),_0x4196c5['length']&&(_0x1d1408['markMultiRangeDeletion'](_0x4196c5,'tablePaste',{'tablePasteChainId':_0x175a7e,'skipNestingCheck':!0x0}),_0x4196c5['forEach'](_0x14103a=>_0x14103a['detach']?.()));const _0x171bdd=_0x1d1408['markMultiRangeBlockFormat'](_0xc5a1a4['map'](({element:_0x1f36b7})=>_0x1f36b7),{'formatGroupId':_0x309c8a()},[],'tablePasteCell',{'tablePasteChainId':_0x175a7e});if(_0x171bdd){const _0x25cb92=_0x171bdd['getMarkers'](),_0x74925d=[];for(const {element:_0x87cb79,attributes:_0x3515ea}of _0xc5a1a4){if(!_0x3515ea)continue;const _0x76f025=_0x58d3cb['model']['createRangeOn'](_0x87cb79),_0x1f4960=_0x25cb92['find'](_0x5b3263=>_0x5b3263['getRange']()['isEqual'](_0x76f025));_0x1f4960&&_0x74925d['push']([_0x1f4960['name'],_0x3515ea]);}_0x74925d['length']&&_0x171bdd['setAttribute']('markerAttributes',Object['fromEntries'](_0x74925d));}_0x2b9fa6=null;}));},{'priority':_0x574764['high']+0xa}),_0x58d3cb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x927eef,_0x5cf563)=>{const [_0x3c7f66,_0x4e5705,,_0x361d20]=_0x5cf563;if(!_0x2b9fa6)return;_0x927eef['stop']();const _0x1912f0=_0x3c7f66['cell'],_0x1e8329=_0x4e5705,_0x427b27=Oe(_0x1912f0),_0x4e7b57=Oe(_0x1e8329);_0x927eef['return']=_0x1912f0;let _0x583b4c=null,_0x12f697=null;if(_0x4e7b57||_0x427b27){if(_0x427b27&&!_0x4e7b57){_0x361d20['remove'](_0x1912f0['getChild'](0x0));for(const _0x5b157c of Array['from'](_0x1e8329['getChildren']()))_0x361d20['insert'](_0x5b157c,_0x1912f0,'end');const _0x5c367c=_0x2b9fa6['rowInsertionIndexes']['includes'](_0x3c7f66['row']),_0xc13c8e=_0x2b9fa6['columnInsertionIndexes']['includes'](_0x3c7f66['column']);_0x5c367c||_0xc13c8e||(_0x583b4c=_0xfaa3eb['fromRange'](_0x361d20['createRangeIn'](_0x1912f0)));}else _0x4e7b57&&!_0x427b27&&(_0x12f697=_0x361d20['createRangeIn'](_0x1912f0));}else{const _0x12547a=_0x361d20['createElement']('tableCellSuggestion'),_0x4a8c38=_0x361d20['createElement']('tableCellSuggestion');_0x361d20['wrap'](_0x361d20['createRangeIn'](_0x1912f0),_0x4a8c38),_0x361d20['insert'](_0x12547a,_0x1912f0,0x0);for(const _0x1fdc3 of Array['from'](_0x1e8329['getChildren']()))_0x361d20['insert'](_0x1fdc3,_0x12547a,'end');_0x583b4c=_0xfaa3eb['fromRange'](_0x361d20['createRangeOn'](_0x12547a)),_0x12f697=_0xfaa3eb['fromRange'](_0x361d20['createRangeOn'](_0x4a8c38));}const _0x2ed57e=Array['from'](_0x1e8329['getAttributes']())['filter'](([_0x2afc75])=>Be['includes'](_0x2afc75));_0x2b9fa6['cells']['push']({'element':_0x1912f0,'attributes':_0x2ed57e['length']?Object['fromEntries'](_0x2ed57e):null}),_0x583b4c&&_0x2b9fa6['insertionRanges']['push'](_0x583b4c),_0x12f697&&_0x2b9fa6['deletionRanges']['push'](_0x12f697);},{'priority':'high'}),_0x144095['on']('insertColumns',(_0x5ca148,_0x1ad145)=>{const [_0x571c5e,_0x125f04={}]=_0x1ad145;if(!_0x2b9fa6)return;const _0x429267=_0x125f04['at']||0x0,_0x4d67d6=_0x125f04['columns']||0x1;_0x2b9fa6['columnInsertionIndexes']=new Array(_0x4d67d6)['fill'](_0x429267)['map']((_0x405659,_0x4ec09f)=>_0x405659+_0x4ec09f);for(const {cell:_0x3b89e1}of _0x144095['createTableWalker'](_0x571c5e,{'startColumn':_0x429267,'endColumn':_0x429267+_0x4d67d6-0x1}))_0x2b9fa6['columnInsertionRanges']['push'](_0x58d3cb['model']['createRangeOn'](_0x3b89e1));},{'priority':'low'}),_0x144095['on']('insertRows',(_0x49692c,_0x36f5c4)=>{const [_0x1df5a7,_0x286bc6={}]=_0x36f5c4;if(!_0x2b9fa6)return;const _0xc02fff=_0x286bc6['at']||0x0,_0x4e3c80=_0x286bc6['rows']||0x1;_0x2b9fa6['rowInsertionIndexes']=new Array(_0x4e3c80)['fill'](_0xc02fff)['map']((_0x3903c0,_0x4e659d)=>_0x3903c0+_0x4e659d);for(const {cell:_0x3e3b56}of _0x144095['createTableWalker'](_0x1df5a7,{'startRow':_0xc02fff,'endRow':_0xc02fff+_0x4e3c80-0x1}))_0x2b9fa6['rowInsertionRanges']['push'](_0x58d3cb['model']['createRangeOn'](_0x3e3b56));},{'priority':'low'}),_0x1d1408['descriptionFactory']['registerDescriptionCallback'](_0x4a92a7=>{if(_0x4a92a7['subType']&&_0x4a92a7['subType']['startsWith']('tablePaste'))return _0x4a92a7['previous']?{}:{'type':'insertion','content':o(_0x58d3cb['locale'],'*Replace\x20table\x20cells*')};});const _0x2c8e10=()=>!0x1;for(const _0x592bbb of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1d1408['_suggestionFactory']['registerCustomCallback']('insertion',_0x592bbb,'join',_0x2c8e10),_0x1d1408['_suggestionFactory']['registerCustomCallback']('deletion',_0x592bbb,'join',_0x2c8e10),_0x1d1408['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x592bbb,'join',_0x2c8e10);_0x1d1408['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2c8e10),_0x1d1408['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x50a311,_0x4dffb1,_0x5a2133)=>{const _0x45a628=_0x50a311['map'](_0x5b7ba1=>_0x5b7ba1['getContainedElement']())['filter'](_0x1671a5=>_0x1671a5),_0x564871=new Map(_0x45a628['map'](_0x1f0f19=>[_0x1f0f19,null]));if(_0x2b9fa6){for(const {element:_0x283e87,attributes:_0x39a77d}of _0x2b9fa6['cells'])_0x39a77d&&_0x564871['set'](_0x283e87,_0x39a77d);}else{if(_0x5a2133&&_0x5a2133['markerAttributes'])for(const [_0x16e49c,_0x1c7787]of Object['entries'](_0x5a2133['markerAttributes'])){const _0x576758=_0x58d3cb['model']['markers']['get'](_0x16e49c),_0x582997=_0x576758?_0x576758['getRange']()['getContainedElement']():null;_0x582997&&_0x564871['set'](_0x582997,_0x1c7787);}}_0x58d3cb['model']['change'](_0x4ea964=>{for(const [_0x526efb,_0x5a31a9]of _0x564871)_0x4ea964['setAttributes']({...xe,..._0x5a31a9},_0x526efb);});});const _0x581c19=(_0x360d4b,_0x4bcfae)=>{_0x1d1408['_suggestionFactory']['registerCustomCallback'](_0x360d4b,'tablePaste',_0x4bcfae,(_0xa1cf84,_0x4450c9,_0xd2396b)=>{_0x58d3cb['model']['change'](_0x5d6189=>{const _0x52bc39=[];for(const _0x37a0ec of _0xa1cf84){const _0x48b348=_0x37a0ec['start']['nodeAfter'];_0x48b348['is']('element','tableCellSuggestion')&&_0x52bc39['push'](_0x48b348);}_0x1d1408['_suggestionFactory']['getSuggestionCallback'](_0x360d4b,null,_0x4bcfae)(_0xa1cf84,_0x4450c9,_0xd2396b);for(const _0x4fb2bd of _0x52bc39)'$graveyard'!=_0x4fb2bd['root']['rootName']&&_0x5d6189['unwrap'](_0x4fb2bd);});});};_0x581c19('insertion','accept'),_0x581c19('insertion','discard'),_0x581c19('deletion','accept'),_0x581c19('deletion','discard'),_0x1d1408['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2377cf=>{const _0x5628b1=_0x2377cf['map'](_0x5cf3fe=>_0x5cf3fe['getContainedElement']()),_0x576590=_0x5628b1[0x0]['findAncestor']('table'),{minRow:_0x30e9ce,maxRow:_0x58e530}=_0x157f33['_getCoordsForCells'](_0x5628b1);_0x144095['removeRows'](_0x576590,{'at':_0x30e9ce,'rows':_0x58e530-_0x30e9ce+0x1});}),_0x1d1408['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x33b9d0=>{const _0x3294e6=_0x33b9d0['map'](_0x426a22=>_0x426a22['getContainedElement']()),_0x2b8f24=_0x3294e6[0x0]['findAncestor']('table'),{minColumn:_0x9a485f,maxColumn:_0x575b0d}=_0x157f33['_getCoordsForCells'](_0x3294e6);_0x144095['removeColumns'](_0x2b8f24,{'at':_0x9a485f,'columns':_0x575b0d-_0x9a485f+0x1});});const _0xdc5c40=(_0x2eac00,_0x255de4)=>{if(!_0x255de4['subType']||!_0x255de4['subType']['startsWith']('tablePaste'))return;const _0x334d51=_0x255de4['attributes']['tablePasteChainId'],_0x2d9bae=_0x1d1408['getSuggestions']()['filter'](_0x16ed43=>_0x16ed43['isInContent']&&_0x16ed43['attributes']&&_0x16ed43['attributes']['tablePasteChainId']==_0x334d51);_0x2d9bae['length']&&_0x255de4['getAllAdjacentSuggestions']()['length']!=_0x2d9bae['length']&&_0x2d9bae['reduce']((_0x1e6d86,_0x4918f0)=>(_0x1e6d86['next']=_0x4918f0,_0x4918f0['previous']=_0x1e6d86,_0x4918f0));};function _0x91341e(_0x17ff7f,_0x440e2e=!0x0){const {id:_0x5c0c8e,authorId:_0x148cb0}=_0x1d1408['_splitMarkerName'](_0x17ff7f['markerName']),_0x3bf1f8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xc856cf=_0x1d1408['activeMarkers']['includes'](_0x17ff7f['markerName']);return _0xc856cf&&_0x3bf1f8['push']('ck-suggestion-marker--active'),{'classes':_0x3bf1f8,'attributes':{'data-suggestion':_0x5c0c8e,'data-author-id':_0x148cb0},'priority':_0xc856cf&&_0x440e2e?0xbc2:0xbb8};}_0x1d1408['on']('suggestionLoaded',_0xdc5c40,{'priority':'high'}),_0x1d1408['on']('suggestionUnloaded',_0xdc5c40,{'priority':'high'}),_0x58d3cb['model']['document']['registerPostFixer'](()=>{let _0x34ef2f=!0x1;const _0x1c587c=Array['from'](_0x58d3cb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3003ea,data:_0x57871a}of _0x1c587c){const {group:_0x5b1b3e,type:_0x2eaf79,id:_0x4963e0}=_0x1d1408['_splitMarkerName'](_0x3003ea);if('suggestion'!=_0x5b1b3e||'deletion'!=_0x2eaf79||_0x57871a['oldRange'])continue;if(!_0x1d1408['hasSuggestion'](_0x4963e0))continue;const _0x50dbf2=_0x1d1408['getSuggestion'](_0x4963e0)['getRanges'](),_0x42a787=_0x58d3cb['plugins']['get']('Users')['me'];for(const _0x102f7f of _0x1d1408['getSuggestions']()){if(!_0x102f7f['isInContent']||_0x102f7f['author']!=_0x42a787)continue;if('formatBlock'!=_0x102f7f['type']||'tablePasteCell'!=_0x102f7f['subType'])continue;if(_0x102f7f['getRanges']()['every'](_0x22d9af=>_0x50dbf2['some'](_0x483328=>_0x483328['containsRange'](_0x22d9af,!0x0)))){for(const _0x533934 of _0x102f7f['getAllAdjacentSuggestions']())_0x533934['isInContent']&&(_0x533934['discard'](),_0x34ef2f=!0x0);}}}return _0x34ef2f;}),_0x58d3cb['model']['document']['registerPostFixer'](_0x69621b=>{const _0x56a7c3=_0x58d3cb['commands']['get']('redo');if(!_0x56a7c3||!_0x56a7c3['_createdBatches']['has'](_0x69621b['batch']))return!0x1;let _0x321836=!0x1;const _0x30d1b9=_0x58d3cb['plugins']['get']('Users')['me'],_0x260282=_0x58d3cb['model']['document']['differ']['getChanges'](),_0x44999b=Array['from'](_0x58d3cb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x53b5d3,data:_0x26fbcd})=>{const {group:_0x18479a,subType:_0x2c30a4,authorId:_0x1480d3}=_0x1d1408['_splitMarkerName'](_0x53b5d3);return'suggestion'==_0x18479a&&'tablePaste'==_0x2c30a4&&_0x1480d3==_0x30d1b9['id']&&!_0x26fbcd['oldRange'];});for(const _0x5c82e3 of _0x260282){if('insert'!=_0x5c82e3['type']||'tableCellSuggestion'!=_0x5c82e3['name']||0x1!=_0x5c82e3['length'])continue;const _0x2ea15b=_0x69621b['createRange'](_0x5c82e3['position'],_0x5c82e3['position']['getShiftedBy'](0x1));if(!_0x44999b['find'](({data:_0x21f0de})=>_0x21f0de['newRange']['isEqual'](_0x2ea15b))){for(const {name:_0x5b42ff,data:_0x49b6f6}of _0x44999b)if(_0x2ea15b['containsRange'](_0x49b6f6['newRange'])){_0x69621b['updateMarker'](_0x5b42ff,{'range':_0x2ea15b}),_0x321836=!0x0;break;}}}return _0x321836;}),_0x58d3cb['model']['document']['registerPostFixer'](_0x131765=>{let _0x162528=!0x1;const _0x441ae1=_0x58d3cb['plugins']['get']('Users')['me'],_0x8973d2=_0x1d1408['getSuggestions']()['filter'](_0xa5aa5e=>_0xa5aa5e['isInContent']&&_0xa5aa5e['author']==_0x441ae1),_0x5ef98d=new Set(),_0x256831=new Set();for(const _0x58eed2 of _0x8973d2)if('tablePaste'==_0x58eed2['subType'])for(const _0x34a727 of _0x58eed2['getMarkers']()){const _0x39a734=_0x34a727['getRange']()['getContainedElement']();if(_0x39a734){if(_0x39a734['is']('element','tableCellSuggestion')&&Oe(_0x39a734)){_0x58eed2['removeMarker'](_0x34a727['name']),_0x5ef98d['add'](_0x39a734),_0x162528=!0x0;const _0x5555f1=_0x39a734['nextSibling'],_0x3d4830=_0x39a734['previousSibling'],_0x14a5df=_0x5555f1&&_0x5555f1['is']('element','tableCellSuggestion'),_0x476b9=_0x3d4830&&_0x3d4830['is']('element','tableCellSuggestion');_0x14a5df&&!_0x5ef98d['has'](_0x5555f1)&&_0x256831['add'](_0x5555f1),_0x476b9&&!_0x5ef98d['has'](_0x3d4830)&&_0x256831['add'](_0x3d4830);}else _0x39a734['is']('element','paragraph')&&_0x39a734['isEmpty']&&(_0x58eed2['removeMarker'](_0x34a727['name']),_0x162528=!0x0);}}else{if('tablePasteCell'==_0x58eed2['subType']){if(!_0x58eed2['attributes']||!_0x58eed2['attributes']['tablePasteChainId'])continue;const _0x43ce26=_0x58eed2['attributes']['markerAttributes'];if(_0x43ce26&&Object['keys'](_0x43ce26)['length'])continue;const _0x5b70e9=_0x58eed2['attributes']['tablePasteChainId'];let _0x154452=!0x0,_0x11601c=!0x0;for(const _0x30a4e7 of _0x8973d2)if(_0x30a4e7['subType']&&_0x30a4e7['subType']['startsWith']('tablePaste')){if(!_0x30a4e7['attributes']['tablePasteChainId']){_0x11601c=!0x1;break;}if(_0x30a4e7['id']!=_0x58eed2['id']&&_0x30a4e7['attributes']['tablePasteChainId']==_0x5b70e9){_0x154452=!0x1;break;}}_0x11601c&&_0x154452&&(_0x58eed2['removeMarkers'](),_0x162528=!0x0);}}for(const _0x1caff0 of _0x5ef98d)_0x131765['remove'](_0x1caff0);for(const _0x24a6f6 of _0x256831)_0x131765['unwrap'](_0x24a6f6);return _0x162528;}),_0x58d3cb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x269057=>_0x91341e(_0x269057),'converterPriority':'high'}),_0x58d3cb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x50444d,_0x4e9355)=>_0x4e9355['options']['showSuggestionHighlights']?_0x91341e(_0x50444d,!0x1):null,'converterPriority':'high'});const _0x5a7e13=_0x58d3cb['editing']['view'];this['listenTo'](_0x5a7e13['document'],'clipboardOutput',(_0x402d5d,_0x2262b2)=>{const _0x106825=[];for(const _0x5083eb of _0x5a7e13['createRangeIn'](_0x2262b2['content'])['getItems']())_0x5083eb['is']('element','suggestion-td')&&_0x106825['push'](_0x5083eb);_0x5a7e13['change'](_0x416bc2=>{for(const _0x1a8fee of _0x106825)_0x416bc2['move'](_0x416bc2['createRangeIn'](_0x1a8fee),_0x416bc2['createPositionBefore'](_0x1a8fee)),_0x416bc2['remove'](_0x1a8fee);});});}}function Oe(_0x299883){if(_0x299883['isEmpty'])return!0x0;const _0x5cdffc=_0x299883['getChild'](0x0);return _0x5cdffc['is']('element','paragraph')&&_0x5cdffc['isEmpty'];}function Ue(_0x407cf6,_0x16dede={},_0x1b36fe){for(const {isAnchor:_0x4dac38,cellHeight:_0x4f8102,cellWidth:_0x3412ec}of _0x1b36fe['createTableWalker'](_0x407cf6,{'includeAllSlots':!0x0,..._0x16dede}))if(!_0x4dac38||0x1!=_0x4f8102||0x1!=_0x3412ec)return!0x1;return!0x0;}class Dt extends _0x2bd390{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2211b1=this['editor']['plugins']['get']('TrackChangesEditing');_0x2211b1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2211b1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2211b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2211b1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2211b1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2211b1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x6a3242,_0x5acfae){const _0x4876fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x507b9c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2c6db2=_0x5acfae['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x54ba77=_0x507b9c['getColumnGroupElement'](_0x2c6db2);let _0x1a6808=_0x54ba77?_0x507b9c['getTableColumnsWidths'](_0x54ba77):null,_0x3046db=_0x2c6db2['getAttribute']('tableWidth')||null;const _0x4f2dda=_0x5acfae['tableWidth']||_0x3046db,_0xb269b1=_0x5acfae['columnWidths']||_0x1a6808,_0x47edda=this['editor']['plugins']['get']('Users')['me'];for(const _0x320cf2 of _0x4876fc['getSuggestions']()){const _0x31e4d6=_0x320cf2['getContainedElement']();if('resizeTable'===_0x320cf2['subType']&&_0x31e4d6===_0x2c6db2){_0x320cf2['author']!==_0x47edda&&_0x320cf2['discard']();const _0x5a9751=_0x320cf2['data']['commandParams'];_0x3046db=_0x5a9751[0x0]['tableWidth'],_0x1a6808=_0x5a9751[0x0]['columnWidths'];break;}}_0x6a3242({'table':_0x2c6db2,'tableWidth':_0x4f2dda,'columnWidths':_0xb269b1}),_0x4876fc['markBlockFormat'](_0x2c6db2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3046db,'columnWidths':_0x1a6808}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5e7b9d){if('formatBlock'!=_0x5e7b9d['type']&&'formatInline'!=_0x5e7b9d['type'])return;const {data:_0x518667}=_0x5e7b9d;if(_0x518667&&'resizeTable'===_0x518667['formatGroupId']){const _0x4bdcdf='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4bdcdf)};}}}class Mt extends _0x2bd390{['afterInit'](){const _0x48a2dd=this['editor'];_0x48a2dd['plugins']['has']('Template')&&_0x48a2dd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x2bd390{['afterInit'](){const _0x36bd17=this['editor'];if(!_0x36bd17['commands']['get']('insertTableOfContents'))return;_0x36bd17['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30a022=_0x36bd17['plugins']['get']('TrackChangesEditing'),_0x2eec7b=_0x36bd17['locale'];_0x30a022['descriptionFactory']['registerElementLabel']('tableOfContents',_0xf53dc5=>o(_0x2eec7b,'ELEMENT_TABLE_OF_CONTENTS',_0xf53dc5));}}class Bt extends _0x2bd390{['afterInit'](){const _0x54bda4=this['editor'];if(!_0x54bda4['plugins']['has']('Title'))return;const _0x501f4d=_0x54bda4['plugins']['get']('TrackChangesEditing');_0x501f4d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x54bda4['locale'],'ELEMENT_TITLE')),_0x54bda4['model']['document']['registerPostFixer'](_0x46c717=>{let _0x43a288=!0x1;const _0x39baf1=Array['from'](_0x54bda4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12b18d,data:_0x545984}of _0x39baf1){const {group:_0x3d9ba3}=_0x501f4d['_splitMarkerName'](_0x12b18d);if('suggestion'!==_0x3d9ba3||!_0x545984['newRange'])continue;const _0x8be918=_0x545984['newRange'],_0x136e06=_0x8be918['end']['nodeBefore'];if(!_0x136e06||!_0x136e06['is']('element','title-content'))continue;if(!_0x8be918['start']['isTouching'](_0x8be918['end']))continue;const _0xb395c6=_0x54bda4['model']['schema']['getNearestSelectionRange'](_0x8be918['end'],'forward');if(_0xb395c6&&_0xb395c6['isCollapsed']){const _0x482794=_0x46c717['createRange'](_0x8be918['start'],_0xb395c6['start']);_0x482794['isEqual'](_0x8be918)||(_0x46c717['updateMarker'](_0x12b18d,{'range':_0x482794}),_0x43a288=!0x0);}_0x43a288||(_0x46c717['removeMarker'](_0x12b18d),_0x43a288=!0x0);}return _0x43a288;});}}class Ot extends _0x2bd390{['afterInit'](){const _0x2e9887=this['editor'],_0x14d79b=_0x2e9887['plugins']['get']('TrackChangesEditing');_0x2e9887['plugins']['has']('Uploadcare')&&(_0x14d79b['enableCommand']('uploadcare'),_0x2e9887['plugins']['has']('UploadcareImageEdit')&&(_0x14d79b['enableCommand']('uploadcareImageEdit'),_0x14d79b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x14d79b['registerBlockAttribute']('uploadcareImageId'),_0x14d79b['descriptionFactory']['registerDescriptionCallback'](_0x2d3a23=>{if('attribute'!=_0x2d3a23['type'])return;const {data:_0x389a03}=_0x2d3a23;return _0x389a03&&'uploadcareImageId'==_0x389a03['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x2bd390{['afterInit'](){const _0x81208=this['editor'],_0x22dd60=_0x81208['plugins']['get']('TrackChangesEditing');_0x81208['plugins']['has']('UndoEditing')&&(_0x22dd60['enableCommand']('undo'),_0x22dd60['enableCommand']('redo'));}}class Tt extends _0x2bd390{static get['requires'](){return[vt];}['afterInit'](){const _0x33bfe9=this['editor'];if(!_0x33bfe9['plugins']['has']('TableCaptionEditing'))return;_0x33bfe9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x2bd390{['tableProperties'];['tableCellProperties'];constructor(_0x558b39){super(_0x558b39),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xb5c5c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29ecdf of this['tableProperties'])_0xb5c5c['enableCommand'](_0x29ecdf,(_0x441917,_0x4e1b96)=>{const _0x480035=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29ecdf,[_0x480035],this['tableProperties'],'tableProperties',_0x441917,_0x4e1b96);});_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xb5c5c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5532e5,_0x1a02df)=>this['handleDiscardAction'](this['tableProperties'],_0x5532e5,_0x1a02df)),_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x237471 of this['tableCellProperties'])_0xb5c5c['enableCommand'](_0x237471,(_0x45c7af,_0x310f5c)=>{const _0x9efd03=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x237471,_0x9efd03,this['tableCellProperties'],'tableCellProperties',_0x45c7af,_0x310f5c);});_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xb5c5c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x55a736,_0x5324c3)=>this['handleDiscardAction'](this['tableCellProperties'],_0x55a736,_0x5324c3)),_0xb5c5c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xb5c5c['descriptionFactory']['registerDescriptionCallback'](_0x3f21fb=>this['handleSuggestionDescription'](_0x3f21fb));}['_handlePropertyChange'](_0x4e4ed6,_0x4fdf40,_0x1d7f5d,_0x4d4ac1,_0xc1ee48,_0x5ab33a){const _0x1583ce=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5ab33a['batch'],()=>{for(const _0x22bbd5 of _0x4fdf40){if(this['_getSuggestion'](_0x22bbd5,_0x4d4ac1))_0xc1ee48(_0x5ab33a);else{const _0x3501f4={};for(const _0x1ac42d of _0x1d7f5d){const _0x5c73c0=_0x22bbd5['getAttribute'](_0x1ac42d);void 0x0!==_0x5c73c0&&(_0x3501f4[_0x1ac42d]=_0x5c73c0);}_0xc1ee48(_0x5ab33a),_0x1583ce['markBlockFormat'](_0x22bbd5,{'commandParams':[_0x3501f4]},[],_0x4d4ac1);}}});}['handleDiscardAction'](_0x5817dc,_0x321a83,_0x5451db){const _0x52c7e3=_0x321a83[0x0]['start']['nodeAfter'],_0x4d1603=_0x5451db['commandParams'][0x0];this['editor']['model']['change'](_0x1e2118=>{for(const _0x5a3aa4 of _0x5817dc)void 0x0!==_0x4d1603[_0x5a3aa4]?_0x1e2118['setAttribute'](_0x5a3aa4,_0x4d1603[_0x5a3aa4],_0x52c7e3):_0x1e2118['removeAttribute'](_0x5a3aa4,_0x52c7e3);});}['handleSuggestionDescription'](_0x4a6c7e){if(_0x4a6c7e['data'])switch(_0x4a6c7e['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'](_0x2ea7b8,_0x504eb1){const _0x3bf7cc=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3b5f35 of _0x3bf7cc['getSuggestions']({'skipNotAttached':!0x0})){const _0x3ae8d9=_0x3b5f35['getContainedElement']();if(_0x3b5f35['subType']===_0x504eb1&&_0x3ae8d9===_0x2ea7b8)return _0x3b5f35;}return null;}}const m='$elementName';class p extends _0x2bd390{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x396d67,_0x5dcbf1,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3336a4){super(_0x3336a4),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5c59dc,_0x1fe014,_0x2e32be,_0x4163da)=>{this['_model']['change'](()=>{for(const _0x3f6c52 of[..._0x4163da,..._0x2e32be])this['_model']['markers']['has'](_0x3f6c52)&&_0x3336a4['editing']['reconvertMarker'](_0x3f6c52);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3336a4['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3336a4['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3336a4['config']['get']('trackChanges.trackFormatChanges'),_0x3336a4['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3336a4['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3336a4,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x198604=this['editor'],_0x23463=(_0x47b361,_0x1ab57f)=>{if('attribute'!=_0x47b361)return'ck-suggestion-marker-'+_0x47b361;const _0x1fd076=_0x1ab57f['split']('|')[0x0];return this['_isBlockAttribute'](_0x1fd076)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x198604['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x39eb44=>{const {id:_0x30ea47,authorId:_0x640a4f,type:_0x59bfb9,subType:_0x1593cf}=this['_splitMarkerName'](_0x39eb44['markerName']),_0x5ce9d2=['ck-suggestion-marker',_0x23463(_0x59bfb9,_0x1593cf)];let _0x56c173=0xbb8;return this['activeMarkers']['includes'](_0x39eb44['markerName'])&&(_0x5ce9d2['push']('ck-suggestion-marker--active'),_0x56c173=0xbc2),'deletion'==_0x59bfb9&&(_0x56c173+=0x5),{'classes':_0x5ce9d2,'attributes':{'data-suggestion':_0x30ea47,'data-author-id':_0x640a4f},'priority':_0x56c173};}}),_0x198604['conversion']['for']('dataDowncast')['add'](_0x1127be=>{_0x1127be['on']('addMarker:suggestion',(_0x587d2e,_0x5725ca,_0x212198)=>{if(!_0x212198['options']['showSuggestionHighlights'])return;const _0x3edf56=_0x5725ca['item'];if(!_0x3edf56)return;const _0x39c2ee=_0x212198['mapper']['toViewElement'](_0x3edf56);_0x198604['model']['schema']['isObject'](_0x3edf56)&&_0x39c2ee&&!_0x39c2ee['getCustomProperty']('widget')&&_0x39c2ee['is']('containerElement')&&_0x33f2b9(_0x39c2ee,_0x212198['writer']);},{'priority':'high'});}),_0x198604['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x576623,_0x4b3222)=>{if(!_0x4b3222['options']['showSuggestionHighlights'])return null;const {type:_0x11cccd,subType:_0x3d0366}=this['_splitMarkerName'](_0x576623['markerName']);return{'classes':['ck-suggestion-marker',_0x23463(_0x11cccd,_0x3d0366)],'priority':0xbb8};}});const _0x37baea=({showActiveMarkers:_0x5df308=!0x0,isAttributeSuggestion:_0x74d22f=!0x1}={})=>(_0xbe5197,_0x1e9c7f,_0x11954d)=>{if(!_0x1e9c7f['item'])return;const {id:_0x2c5dd4,authorId:_0x485e96}=this['_splitMarkerName'](_0x1e9c7f['markerName']);if(_0x74d22f){const _0xf03fc=this['_suggestions']['get'](_0x2c5dd4),_0x3d24ed=this['_getAttributeKey'](_0xf03fc);if(!this['_isBlockAttribute'](_0x3d24ed))return;}if(_0x1e9c7f['item']['is']('selection'))return void _0x11954d['consumable']['consume'](_0x1e9c7f['item'],_0xbe5197['name']);const _0x5cee82=_0x11954d['mapper']['toViewElement'](_0x1e9c7f['item']);if(_0x1e9c7f['item']['is']('element')&&_0x198604['model']['schema']['isBlock'](_0x1e9c7f['item'])&&!_0x5cee82['getCustomProperty']('addHighlight')){_0x11954d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5cee82),_0x11954d['writer']['setAttribute']('data-suggestion',_0x2c5dd4,_0x5cee82),_0x11954d['writer']['setAttribute']('data-author-id',_0x485e96,_0x5cee82),_0x11954d['mapper']['bindElementToMarker'](_0x5cee82,_0x1e9c7f['markerName']),_0x5df308&&(this['activeMarkers']['includes'](_0x1e9c7f['markerName'])?_0x11954d['writer']['addClass']('ck-suggestion-marker--active',_0x5cee82):_0x11954d['writer']['removeClass']('ck-suggestion-marker--active',_0x5cee82));for(const _0x48dd95 of _0x198604['model']['createRangeIn'](_0x1e9c7f['item'])['getItems']())_0x11954d['consumable']['consume'](_0x48dd95,_0xbe5197['name']);_0x11954d['consumable']['consume'](_0x1e9c7f['item'],_0xbe5197['name']);}};_0x198604['conversion']['for']('dataDowncast')['add'](_0x319a15=>{_0x319a15['on']('addMarker:suggestion:formatBlock',(_0x4fdc5b,_0x5abada,_0x511ab4)=>{_0x511ab4['options']['showSuggestionHighlights']&&_0x37baea({'showActiveMarkers':!0x1})(_0x4fdc5b,_0x5abada,_0x511ab4);},{'priority':'highest'});}),_0x198604['conversion']['for']('dataDowncast')['add'](_0x47bedc=>{_0x47bedc['on']('addMarker:suggestion:attribute',(_0x1199b9,_0x22f21d,_0x1acdfc)=>{_0x1acdfc['options']['showSuggestionHighlights']&&_0x37baea({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1199b9,_0x22f21d,_0x1acdfc);},{'priority':'highest'});}),_0x198604['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2699ae,_0x4d463f)=>_0x4d463f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2699ae['substr'](0xb)}}),_0x198604['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x35380f,{writer:_0x21f8e6})=>{let _0x14391f='suggestion:'+_0x35380f['getAttribute']('suggestion-type')+':'+_0x35380f['getAttribute']('id');return _0x35380f['getAttribute']('marker-count')&&(_0x14391f+=':'+_0x35380f['getAttribute']('marker-count')),_0x21f8e6['createElement']('$marker',{'data-name':_0x14391f});}}),_0x198604['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x198604['conversion']['for']('editingDowncast')['add'](_0x3ea95e=>{_0x3ea95e['on']('addMarker:suggestion:formatBlock',_0x37baea(),{'priority':'high'});}),_0x198604['conversion']['for']('editingDowncast')['add'](_0x1dd763=>{_0x1dd763['on']('addMarker:suggestion:attribute',_0x37baea({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x198604['conversion']['for']('editingDowncast')['add'](_0x214639=>{_0x214639['on']('removeMarker:suggestion:formatBlock',(_0x2ffaaa,_0x994468,_0x1dca3e)=>{const _0x3cf1b9=_0x1dca3e['mapper']['markerNameToElements'](_0x994468['markerName']);if(_0x3cf1b9){for(const _0x1421e1 of _0x3cf1b9)_0x1421e1['getCustomProperty']('addHighlight')||(_0x1dca3e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1421e1),_0x1dca3e['writer']['removeAttribute']('data-suggestion',_0x1421e1),_0x1dca3e['writer']['removeAttribute']('data-author-id',_0x1421e1),_0x1dca3e['mapper']['unbindElementFromMarkerName'](_0x1421e1,_0x994468['markerName']));}},{'priority':'high'});}),_0x198604['conversion']['for']('editingDowncast')['add'](_0x6fcc2e=>{_0x6fcc2e['on']('removeMarker:suggestion:attribute',(_0x2cf2c7,_0x32d78c,_0x48412e)=>{const _0x34155a=_0x48412e['mapper']['markerNameToElements'](_0x32d78c['markerName']);if(!_0x34155a)return;const {id:_0xc2bf22}=this['_splitMarkerName'](_0x32d78c['markerName']),_0x5f0654=this['_suggestions']['get'](_0xc2bf22),_0x351eb1=this['_getAttributeKey'](_0x5f0654);if(this['_isBlockAttribute'](_0x351eb1)){for(const _0x487aeb of _0x34155a)_0x487aeb['getCustomProperty']('addHighlight')||(_0x48412e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x487aeb),_0x48412e['writer']['removeAttribute']('data-suggestion',_0x487aeb),_0x48412e['writer']['removeAttribute']('data-author-id',_0x487aeb),_0x48412e['mapper']['unbindElementFromMarkerName'](_0x487aeb,_0x32d78c['markerName']));}},{'priority':'high'});}),_0x198604['model']['document']['registerPostFixer'](_0xd7ea67=>{let _0x206d32=!0x1;const _0x1bbaa9=Array['from'](_0x198604['model']['document']['differ']['getChangedMarkers']()),_0x19d811=new Set();for(const {name:_0x4fe618,data:_0x4801f6}of _0x1bbaa9){const {group:_0x34ea3a,type:_0xa8ea12,subType:_0x15c22b,id:_0x2d255a}=this['_splitMarkerName'](_0x4fe618);if('suggestion'!==_0x34ea3a)continue;const _0x5ea001=this['_suggestions']['get'](_0x2d255a);if(null!=_0x4801f6['newRange']){'formatInline'==_0xa8ea12&&(_0x206d32=_0x206d32||Gt(_0x4801f6['newRange'],_0x4fe618,_0xd7ea67,_0x198604['model']['schema']));const _0x1c0cfa='attribute'==_0xa8ea12&&this['_isBlockAttribute'](_0x15c22b['split']('|')[0x0]);if(_0x4801f6['newRange']['isCollapsed']||'$graveyard'==_0x4801f6['newRange']['root']['rootName']||'formatBlock'==_0xa8ea12&&!Lt(_0x4801f6['newRange'])||_0x1c0cfa&&!Lt(_0x4801f6['newRange'])||'deletion'==_0xa8ea12&&!(!Pt(_0x476cac=_0x4801f6['newRange'])&&!function(_0x4941e9){return _0x4941e9['start']['parent']==_0x4941e9['end']['nodeBefore']&&_0x4941e9['start']['isAtEnd'];}(_0x476cac)))_0xd7ea67['removeMarker'](_0x4fe618),_0x206d32=!0x0;else{if(!_0x5ea001||!_0x5ea001['isInContent'])continue;if(_0x4801f6['newRange']&&_0x4801f6['oldRange']&&_0x4801f6['newRange']['isEqual'](_0x4801f6['oldRange']))continue;_0x19d811['add'](_0x5ea001);}}}var _0x476cac;return _0x19d811['size']>0x0&&(_0x206d32=!!this['_joinWithAdjacentSuggestions'](_0x19d811)||_0x206d32),_0x206d32;}),_0x198604['model']['document']['registerPostFixer'](_0x5d9fa5=>{let _0x26979c=!0x1;for(const _0x448513 of _0x198604['model']['document']['differ']['getChanges']())if('insert'==_0x448513['type'])for(const _0x342d4d of this['_suggestions']['values']()){if(_0x342d4d['isMultiRange']||!_0x342d4d['isInContent'])continue;const _0x308a17='formatBlock'==_0x342d4d['type'],_0x124bb2=this['_getAttributeKey'](_0x342d4d),_0x209f0f=_0x124bb2&&this['_isBlockAttribute'](_0x124bb2);if(!_0x308a17&&!_0x209f0f)continue;const _0x49a92e=_0x342d4d['getFirstRange']();if(_0x49a92e['start']['parent']!=_0x49a92e['end']['parent']&&!_0x49a92e['end']['isAtEnd']){const _0x15623e=_0x198604['model']['createPositionAt'](_0x49a92e['start']['nodeAfter'],'end'),_0x358bd9=_0x198604['model']['createRange'](_0x49a92e['start'],_0x15623e);_0x5d9fa5['updateMarker'](_0x342d4d['getFirstMarker'](),{'range':_0x358bd9}),_0x26979c=!0x0;}}return _0x26979c;}),_0x198604['model']['document']['registerPostFixer'](_0x3f02c6=>this['_processAttributeChanges'](_0x3f02c6)),_0x198604['model']['document']['registerPostFixer'](_0x36bad9=>!_0x36bad9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x36bad9)),_0x198604['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x198604['model']['document']['on']('change:data',(_0x419e7c,_0x1bba08)=>{if(!_0x1bba08['isLocal']||_0x1bba08['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xdcdf23=_0x198604['model']['document']['differ']['getChanges']();if(0x0==_0xdcdf23['length'])return;const _0x403650=[],_0x44bc08=_0xdcdf23['filter'](_0x1ce855=>'attribute'==_0x1ce855['type']),_0x5599b8=_0xdcdf23['filter'](_0x1edeaa=>'insert'==_0x1edeaa['type']&&'$text'!=_0x1edeaa['name']);for(const _0x614677 of _0x44bc08)this['_isRegisteredAttribute'](_0x614677['attributeKey'])&&_0x403650['push']({'key':_0x614677['attributeKey'],'newValue':_0x614677['attributeNewValue'],'oldValue':_0x614677['attributeOldValue'],'range':Jt(_0x614677['range'],_0x198604['model'])});for(const _0x4512c0 of _0x5599b8){if('rename'!=_0x4512c0['action']&&'refresh'!=_0x4512c0['action'])continue;const _0x2c6756=Ht(_0x4512c0['position']['nodeAfter'],_0x198604['model']),_0x497904=_0x4512c0['before'];'rename'==_0x4512c0['action']&&_0x403650['push']({'key':m,'newValue':_0x4512c0['name'],'oldValue':_0x497904['name'],'range':_0x2c6756});for(const [_0xe15fed,_0x373b79]of _0x497904['attributes']){if(!this['_isRegisteredAttribute'](_0xe15fed))continue;const _0x5951f1=_0x4512c0['attributes']['get'](_0xe15fed);_0x373b79!==_0x5951f1&&_0x403650['push']({'key':_0xe15fed,'newValue':_0x5951f1,'oldValue':_0x373b79,'range':_0x2c6756});}for(const [_0x306e2a,_0x21ed48]of _0x4512c0['attributes'])this['_isRegisteredAttribute'](_0x306e2a)&&(_0x497904['attributes']['has'](_0x306e2a)||_0x403650['push']({'key':_0x306e2a,'newValue':_0x21ed48,'oldValue':null,'range':_0x2c6756}));}0x0!=_0x403650['length']&&_0x198604['model']['enqueueChange'](_0x1bba08,_0x1cebc2=>{const _0x4e610f=_0x309c8a();for(const {range:_0x20879c,key:_0x481b99,oldValue:_0x1f317d,newValue:_0xc6909}of _0x403650)this['markAttributeChange'](_0x20879c,_0x481b99,_0x1f317d,_0xc6909,{'groupId':_0x4e610f});this['_reduceExistingSuggestions'](_0x1cebc2,_0x403650);});},{'priority':'lowest'}),_0x198604['model']['markers']['on']('update:suggestion',(_0x15b0c2,_0x47cd93,_0x570370)=>{if(null==_0x570370){const {id:_0xd0f501}=this['_splitMarkerName'](_0x47cd93['name']),_0x146779=this['_suggestions']['get'](_0xd0f501);_0x146779&&_0x146779['addMarkerName'](_0x47cd93['name']);}}),_0x198604['model']['document']['on']('change:data',()=>{const _0x44728d=Array['from'](_0x198604['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2f670c=>'suggestion'===this['_splitMarkerName'](_0x2f670c['name'])['group']);if(0x0===_0x44728d['length'])return;_0x44728d['sort']((_0x4594f2,_0x4cc845)=>{const _0x13e81a=_0x4594f2['data']['oldRange'],_0x456ee1=_0x4cc845['data']['oldRange'];return null===_0x13e81a&&null===_0x456ee1?0x0:null===_0x13e81a&&null!==_0x456ee1?-0x1:null!==_0x13e81a&&null===_0x456ee1?0x1:_0x13e81a['start']['isBefore'](_0x456ee1['start'])?-0x1:0x1;});const _0x5d3774=new Set(),_0x4a84ae=new Set();for(const {name:_0x5a6d7e,data:_0xd34d02}of _0x44728d){const {id:_0x61e1ba}=this['_splitMarkerName'](_0x5a6d7e);if(null===_0xd34d02['oldRange']){const _0x4ef0c7=this['_handleNewSuggestionMarker'](_0x5a6d7e);_0x4a84ae['add'](_0x4ef0c7);}else{const _0x400c87=this['_suggestions']['get'](_0x61e1ba);null!==_0xd34d02['newRange']||_0x400c87['isInContent']?(_0x5d3774['add'](_0x400c87['head']),_0x4a84ae['add'](_0x400c87)):this['_removeSuggestion'](_0x400c87);}}_0x4a84ae['size']>0x0&&this['_refreshSuggestionsChain'](_0x4a84ae);for(const _0x12eb00 of _0x5d3774)this['fire']('suggestionChanged',_0x12eb00);}),_0x198604['model']['on']('applyOperation',(_0x4e859a,_0x424a5d)=>{const _0x568250=_0x424a5d[0x0];if(!this['_suggestions']['size'])return;if(!_0x568250['isDocumentOperation'])return;if(_0x568250['batch']['isUndo']||!_0x568250['batch']['isLocal'])return;let _0x4c6cbb,_0x14fa52;switch(_0x568250['type']){case'insert':_0x4c6cbb=_0x198604['model']['createPositionAt'](_0x568250['position']),_0x14fa52=_0x4c6cbb['getShiftedBy'](_0x568250['howMany']);break;case'split':_0x4c6cbb=_0x198604['model']['createPositionAt'](_0x568250['splitPosition']),_0x14fa52=_0x198604['model']['createPositionAt'](_0x568250['moveTargetPosition']);break;case'move':_0x4c6cbb=_0x198604['model']['createPositionAt'](_0x568250['targetPosition']),_0x14fa52=_0x4c6cbb['getShiftedBy'](_0x568250['howMany']);break;default:return;}const _0x41895e=_0x198604['model']['createRange'](_0x4c6cbb,_0x14fa52);_0x198604['model']['change'](()=>{for(const {suggestion:_0x104376,meta:_0x1d8787}of this['_findSuggestions'](_0x41895e)){if(_0x104376['isMultiRange'])continue;if('formatInline'==_0x104376['type'])continue;const _0x192f47=this['_getAttributeKey'](_0x104376);if(_0x192f47&&this['_isBlockAttribute'](_0x192f47)&&'split'!=_0x568250['type'])continue;const _0x34b2cd=_0x104376['data']&&_0x104376['data']['multipleBlocks'];('formatBlock'!=_0x104376['type']||'split'==_0x568250['type']&&!_0x34b2cd)&&(_0x1d8787['containsRangeInObject']||'insertion'==_0x104376['type']&&_0x1d8787['isOwn']||_0x104376['getFirstRange']()['containsRange'](_0x41895e)&&this['_breakSuggestionMarker'](_0x104376,_0x4c6cbb,_0x14fa52));}});},{'priority':'lowest'}),_0x198604['model']['on']('deleteContent',(_0x563d3f,_0x1e97b3)=>{const _0x346a57=_0x1e97b3[0x0],_0x216657=_0x1e97b3[0x1];if(_0x216657&&_0x216657['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x346a57['isCollapsed'])return;const _0x410b3c=_0x198604['model']['schema'],{start:_0x4dfcdc,end:_0x1f18bc}=_0x346a57['getFirstRange'](),_0x4ed4df=_0x4dfcdc['nodeAfter']&&_0x410b3c['isLimit'](_0x4dfcdc['nodeAfter'])?null:_0x410b3c['getNearestSelectionRange'](_0x4dfcdc,'forward'),_0x4b9d9d=_0x1f18bc['nodeBefore']&&_0x410b3c['isLimit'](_0x1f18bc['nodeBefore'])?null:_0x410b3c['getNearestSelectionRange'](_0x1f18bc,'backward'),_0x59a789=_0x198604['model']['createRange'](_0x4ed4df?_0x4ed4df['start']:_0x4dfcdc,_0x4b9d9d?_0x4b9d9d['end']:_0x1f18bc);_0x198604['model']['change'](_0x3bbe61=>{this['markDeletion'](_0x59a789);const _0x3dd200=_0x198604['model']['schema']['getNearestSelectionRange'](_0x59a789['start']);_0x346a57['is']('documentSelection')?_0x3bbe61['setSelection'](_0x3dd200):_0x346a57['setTo'](_0x3dd200);}),_0x563d3f['stop']();},{'priority':_0x574764['normal']+0xa}),_0x198604['model']['on']('insertContent',(_0x5705b5,_0x1bcee9)=>{const _0x563d12=_0x1bcee9[_0x1bcee9['length']-0x1];_0x563d12&&_0x563d12['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x198604['model']['change'](()=>{let _0x4788e1=_0x198604['model']['insertContent'](_0x1bcee9[0x0],_0x1bcee9[0x1],_0x1bcee9[0x2],{'forceDefaultExecution':!0x0});if(!_0x4788e1)return;_0x5705b5['return']=_0x4788e1['clone']();const _0x3657a7=_0x4788e1['end']['nodeBefore'],_0x3d5c18=_0x198604['model']['schema'];_0x3657a7&&_0x3d5c18['isBlock'](_0x3657a7)&&!_0x3d5c18['isObject'](_0x3657a7)&&(_0x4788e1=_0x198604['model']['createRange'](_0x4788e1['start'],_0x198604['model']['createPositionAt'](_0x3657a7,'end'))),this['markInsertion'](_0x4788e1);}),_0x5705b5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4b723c=new O(_0x198604,this['_suggestions']);_0x198604['commands']['add']('acceptSuggestion',_0x4b723c),this['enableCommand']('acceptSuggestion');const _0x12d994=new R(_0x198604,this['_suggestions']);_0x198604['commands']['add']('discardSuggestion',_0x12d994),this['enableCommand']('discardSuggestion'),_0x198604['commands']['add']('acceptAllSuggestions',new x(_0x198604,_0x4b723c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x198604['commands']['add']('discardAllSuggestions',new x(_0x198604,_0x12d994,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x198604['commands']['add']('acceptSelectedSuggestions',new E(_0x198604,_0x4b723c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x198604['commands']['add']('discardSelectedSuggestions',new E(_0x198604,_0x12d994,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5e0adf=_0x198604['plugins']['get']('CommentsRepository');this['listenTo'](_0x5e0adf,'addComment',(_0x4dae35,{threadId:_0x106bd6})=>{const _0x398141=this['_suggestions']['get'](_0x106bd6);_0x398141&&_0x398141['commentThread']&&0x1===_0x398141['commentThread']['length']&&this['_updateSuggestionData'](_0x106bd6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5e0adf,'removeComment',(_0x266293,{threadId:_0x265cc8})=>{const _0x414fcc=this['_suggestions']['get'](_0x265cc8);_0x414fcc&&_0x414fcc['commentThread']&&!_0x414fcc['commentThread']['length']&&this['_updateSuggestionData'](_0x265cc8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xee8796){const _0x1f3184=_0x71e1aa([0x44,0x39,0x54,0x74,0x6a,0x49,0x5a,0x32,0x57,0x6f,0x30,0x52,0x76,0x6d,0x63,0x4f,0x62,0x71,0x58,0x79,0x78,0x6c,0x6b,0x75,0x59,0x46,0x53,0x6e,0x38,0x45,0x73,0x77,0x7a,0x50,0x68,0x35,0x55,0x51,0x4b,0x4a,0x67,0x43,0x33,0x65,0x4e,0x70,0x48,0x47,0x42,0x56,0x34,0x72,0x61,0x36,0x66,0x31,0x4c,0x69,0x4d,0x37,0x64,0x41]),_0x56f697=0x19176726,_0xeef55b=0x1910383e^_0x56f697,_0x5536df=window[_0x71e1aa([0x44,0x61,0x74,0x65])][_0x71e1aa([0x6e,0x6f,0x77])](),_0x5e7f26=_0xee8796[_0x71e1aa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x445a49=new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b69c2=>{_0x5e7f26[_0x71e1aa([0x6f,0x6e,0x63,0x65])](_0x71e1aa([0x72,0x65,0x61,0x64,0x79]),_0x1b69c2);}),_0x1457d7={[_0x71e1aa([0x6b,0x74,0x79])]:_0x71e1aa([0x45,0x43]),[_0x71e1aa([0x75,0x73,0x65])]:_0x71e1aa([0x73,0x69,0x67]),[_0x71e1aa([0x63,0x72,0x76])]:_0x71e1aa([0x50,0x2d,0x32,0x35,0x36]),[_0x71e1aa([0x78])]:_0x71e1aa([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]),[_0x71e1aa([0x79])]:_0x71e1aa([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]),[_0x71e1aa([0x61,0x6c,0x67])]:_0x71e1aa([0x45,0x53,0x32,0x35,0x36])},_0x24f1dc=_0x5e7f26[_0x71e1aa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x71e1aa([0x67,0x65,0x74])](_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa8b06d(){let _0x401bf7,_0x478c72=null,_0x5c5e78=null;try{if(_0x24f1dc==_0x71e1aa([0x47,0x50,0x4c]))return _0x71e1aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x401bf7=_0x1bca48(),!_0x401bf7)return _0x71e1aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x401bf7[_0x71e1aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5c5e78=_0x4d28be(_0x401bf7[_0x71e1aa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x401bf7[_0x71e1aa([0x6a,0x74,0x69])])),await _0x1b5571()?_0x3d9347()?_0x17b106()?_0x71e1aa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5d0ac6()?(_0x401bf7[_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x71e1aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x478c72=_0x4c3f42(_0x71e1aa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x401bf7[_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x71e1aa([0x74,0x72,0x69,0x61,0x6c])&&(_0x478c72=_0x4c3f42(_0x71e1aa([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e5203()):_0x71e1aa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x71e1aa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x71e1aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3f9920){return _0x71e1aa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x17b106(){const _0x519b16=[_0x71e1aa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x71e1aa([0x74,0x72,0x69,0x61,0x6c])][_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x401bf7[_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5536df/0x3e8:0xe10*_0xeef55b;return _0x401bf7[_0x71e1aa([0x65,0x78,0x70])]<_0x519b16;}function _0x3d9347(){const _0x3cb7d7=_0x401bf7[_0x71e1aa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3cb7d7)return!0x1;if(_0x3cb7d7[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e1aa([0x2a])))return!0x0;if(_0x3cb7d7[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e1aa([0x54,0x43])))return!0x0;if(_0x3cb7d7[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e1aa([0x52,0x54,0x43]))){if(_0x45a773())return!0x0;if(_0x3e409b()||_0x599a08())return!0x0;}return!0x1;}function _0x5d0ac6(){const _0x452d5c=_0x401bf7[_0x71e1aa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x452d5c||0x0==_0x452d5c[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c0f43}=new URL(window[_0x71e1aa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x452d5c[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c0f43))return!0x0;const _0x19bb4a=_0x4c0f43[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])](_0x71e1aa([0x2e]));return _0x452d5c[_0x71e1aa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x209e31=>_0x209e31[_0x71e1aa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x71e1aa([0x2a])))[_0x71e1aa([0x6d,0x61,0x70])](_0x356fd8=>_0x356fd8[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])](_0x71e1aa([0x2e])))[_0x71e1aa([0x73,0x6f,0x6d,0x65])](_0x33ce86=>_0x19bb4a[_0x71e1aa([0x65,0x76,0x65,0x72,0x79])]((_0x10bbd2,_0x46d43f)=>_0x33ce86[_0x46d43f]===_0x10bbd2||_0x33ce86[_0x46d43f]===_0x71e1aa([0x2a])));}function _0x1e5203(){return _0x478c72&&_0x5c5e78?new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c665d,_0x9f4df4)=>{_0x478c72[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x5c665d,_0x9f4df4),_0x5c5e78[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x429e09=>{_0x429e09!=_0x71e1aa([0x56,0x61,0x6c,0x69,0x64])&&_0x5c665d(_0x429e09);},_0x9f4df4);}):_0x478c72||_0x5c5e78||_0x71e1aa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d28be(_0x126497,_0x3dc315){return new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x290cd3=>{if(_0x36fcb8())return _0x290cd3(_0x71e1aa([0x56,0x61,0x6c,0x69,0x64]));_0x58abf9(),_0x5e7f26[_0x71e1aa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x71e1aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb88fe5=!0x1;const _0x4e5611=_0x309c8a();function _0x638e6b(_0x55963c){return!!_0x55963c&&(typeof _0x55963c===_0x71e1aa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x55963c===_0x71e1aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x55963c[_0x71e1aa([0x74,0x68,0x65,0x6e])]===_0x71e1aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x55963c[_0x71e1aa([0x63,0x61,0x74,0x63,0x68])]===_0x71e1aa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4b08e4(_0x47846c){_0x2dcdfb(_0x47846c)[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x4ca32b=>{if(!_0x4ca32b||_0x4ca32b[_0x71e1aa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x71e1aa([0x6f,0x6b]))return _0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3d12c8(_0x1eed63(_0x4e5611+_0x3dc315))!=_0x4ca32b[_0x71e1aa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x71e1aa([0x56,0x61,0x6c,0x69,0x64]);})[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x1fcdd0=>(_0x589d38(),_0x1fcdd0),()=>{const _0x151692=_0x4e99ba();return null==_0x151692?(_0x589d38(),_0x71e1aa([0x56,0x61,0x6c,0x69,0x64])):_0x71e1aa(_0x5536df-_0x151692>(0x3d1be326^_0x56f697)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x290cd3)[_0x71e1aa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x290cd3(_0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e8f26=0x192189a6^_0x56f697;function _0x589d38(){const _0x1cc178=_0x71e1aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d12c8(_0x1eed63(_0x126497)),_0x5c36ab=_0x58b9ff(_0x3d12c8(window[_0x71e1aa([0x4d,0x61,0x74,0x68])][_0x71e1aa([0x63,0x65,0x69,0x6c])](_0x5536df/_0x4e8f26)));window[_0x71e1aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x71e1aa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cc178,_0x5c36ab);}function _0x4e99ba(){const _0x51ea09=_0x71e1aa([0x6c,0x6c,0x63,0x74,0x2d])+_0x3d12c8(_0x1eed63(_0x126497)),_0x1981c5=window[_0x71e1aa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x71e1aa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x51ea09);return _0x1981c5?window[_0x71e1aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58b9ff(_0x1981c5),0x10)*_0x4e8f26:null;}function _0x2dcdfb(_0x481883){return new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x242983,_0x2be2e0)=>{_0x481883[_0x71e1aa([0x74,0x68,0x65,0x6e])](_0x242983,_0x2be2e0),window[_0x71e1aa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2be2e0,0x1916b3e6^_0x56f697);});}}_0x5e7f26[_0x71e1aa([0x6f,0x6e])](_0x71e1aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x551287,_0x13a75e)=>{if(_0x13a75e[0x0]!=_0x126497)return _0x290cd3(_0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13a75e[0x1]={..._0x13a75e[0x1],[_0x71e1aa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4e5611};},{[_0x71e1aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x71e1aa([0x68,0x69,0x67,0x68])}),_0x5e7f26[_0x71e1aa([0x6f,0x6e])](_0x71e1aa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49d89b=>{_0x638e6b(_0x49d89b[_0x71e1aa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb88fe5=!0x0,_0x4b08e4(_0x49d89b[_0x71e1aa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x71e1aa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x71e1aa([0x6c,0x6f,0x77])}),_0x445a49[_0x71e1aa([0x74,0x68,0x65,0x6e])](()=>{_0xb88fe5||_0x290cd3(_0x71e1aa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36fcb8(){return _0x5e7f26[_0x71e1aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x71e1aa([0x76,0x69,0x65,0x77])][_0x71e1aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x71e1aa([0x61,0x75,0x74,0x6f]);}function _0x58abf9(){_0x5e7f26[_0x71e1aa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x71e1aa([0x76,0x69,0x65,0x77])][_0x71e1aa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x71e1aa([0x61,0x75,0x74,0x6f]);}}function _0x4c3f42(_0x287ebd){const _0x34c055=[new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d1796=>setTimeout(_0x1d1796,0x191e59ea^_0x56f697)),_0x445a49[_0x71e1aa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x376d6e=>{let _0x16dca9=0x0;_0x5e7f26[_0x71e1aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x71e1aa([0x6f,0x6e])](_0x71e1aa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x47336c,_0xb18c95)=>{_0xb18c95[0x0][_0x71e1aa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x16dca9++,_0x16dca9==(0x191766de^_0x56f697)&&(_0x376d6e(),_0x47336c[_0x71e1aa([0x6f,0x66,0x66])]());});}))];return window[_0x71e1aa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x71e1aa([0x72,0x61,0x63,0x65])](_0x34c055)[_0x71e1aa([0x74,0x68,0x65,0x6e])](()=>_0x287ebd);}async function _0x40080c(){await _0x445a49,_0x5e7f26[_0x71e1aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x71e1aa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a39fc,_0x5e7f26[_0x71e1aa([0x6d,0x6f,0x64,0x65,0x6c])][_0x71e1aa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a39fc,_0x5e7f26[_0x71e1aa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x71e1aa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45a773(){return _0x3676e9(_0x71e1aa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x446bdb(_0x71e1aa([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x71e1aa([0x73,0x74,0x61,0x74,0x65])]==_0x71e1aa([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3e409b(){return _0x3676e9(_0x71e1aa([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 _0x599a08(){return _0x3676e9(_0x71e1aa([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x527b4d(_0x4ec48b){const _0x7c41c3=_0x33af11();_0x5e7f26[_0x7c41c3]=_0x71e1aa([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4ec48b,_0x4ec48b!=_0x71e1aa([0x56,0x61,0x6c,0x69,0x64])&&_0x40080c();}function _0x33af11(){const _0x362678=window[_0x71e1aa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x71e1aa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x71e1aa([0x6e,0x6f,0x77])]())[_0x71e1aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x71e1aa([0x2e]),'');let _0x39a740=_0x71e1aa([0x44]);for(let _0x542c64=0x0;_0x542c64<_0x362678[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x542c64+=0x2){let _0x567789=window[_0x71e1aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x362678[_0x71e1aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x542c64,_0x542c64+0x2));_0x567789>=_0x1f3184[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x567789-=_0x1f3184[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39a740+=_0x1f3184[_0x567789];}return _0x39a740;}function _0x1bca48(){const _0x416666=_0x24f1dc[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])](_0x71e1aa([0x2e]));if(0x3!=_0x416666[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x42d194(_0x416666[0x1]);function _0x42d194(_0x5f54ab){const _0x355e0e=_0x18240e(_0x5f54ab);return _0x355e0e&&_0x19d6f9()?_0x355e0e:null;function _0x19d6f9(){const _0xab69d5=_0x355e0e[_0x71e1aa([0x6a,0x74,0x69])],_0x5ca168=window[_0x71e1aa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xab69d5[_0x71e1aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xab69d5[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3aa02f={..._0x355e0e,[_0x71e1aa([0x6a,0x74,0x69])]:_0xab69d5[_0x71e1aa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xab69d5[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3aa02f[_0x71e1aa([0x76,0x63])],_0x1eed63(_0x3aa02f)==_0x5ca168;}}}async function _0x1b5571(){let _0x462ffc=!0x0;try{const _0x3f7757=_0x24f1dc[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])](_0x71e1aa([0x2e])),[_0x2940dd,_0xbc1d6d,_0x46962c]=_0x3f7757;return _0x5bc597(_0x2940dd),await _0x4825a7(_0x2940dd,_0xbc1d6d,_0x46962c),_0x462ffc;}catch(_0x435c28){return!0x1;}function _0x5bc597(_0x324af3){const _0x56ffae=_0x18240e(_0x324af3);_0x56ffae&&_0x56ffae[_0x71e1aa([0x61,0x6c,0x67])]==_0x71e1aa([0x45,0x53,0x32,0x35,0x36])||(_0x462ffc=!0x1);}async function _0x4825a7(_0x519492,_0x454464,_0x50d32e){const _0xd61717=window[_0x71e1aa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x71e1aa([0x66,0x72,0x6f,0x6d])](_0x31ca1e(_0x50d32e),_0x4f48da=>_0x4f48da[_0x71e1aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2d8e04=new window[(_0x71e1aa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x71e1aa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x519492+_0x71e1aa([0x2e])+_0x454464),_0x4865d8=window[_0x71e1aa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x71e1aa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4865d8)return;const _0x4a0940=await _0x4865d8[_0x71e1aa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x71e1aa([0x6a,0x77,0x6b]),_0x1457d7,{[_0x71e1aa([0x6e,0x61,0x6d,0x65])]:_0x71e1aa([0x45,0x43,0x44,0x53,0x41]),[_0x71e1aa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x71e1aa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x71e1aa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4865d8[_0x71e1aa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x71e1aa([0x6e,0x61,0x6d,0x65])]:_0x71e1aa([0x45,0x43,0x44,0x53,0x41]),[_0x71e1aa([0x68,0x61,0x73,0x68])]:{[_0x71e1aa([0x6e,0x61,0x6d,0x65])]:_0x71e1aa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4a0940,_0xd61717,_0x2d8e04)||(_0x462ffc=!0x1);}}function _0x18240e(_0x378fcf){return _0x378fcf[_0x71e1aa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x71e1aa([0x65,0x79]))?JSON[_0x71e1aa([0x70,0x61,0x72,0x73,0x65])](_0x31ca1e(_0x378fcf)):null;}function _0x31ca1e(_0x5b4a0d){return window[_0x71e1aa([0x61,0x74,0x6f,0x62])](_0x5b4a0d[_0x71e1aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x71e1aa([0x2b]))[_0x71e1aa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x71e1aa([0x2f])));}function _0x1eed63(_0x215054){let _0x39c781=0x1505;function _0x5cd60b(_0x53d9c7){for(let _0x5c6b60=0x0;_0x5c6b60<_0x53d9c7[_0x71e1aa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c6b60++){const _0x54db41=_0x53d9c7[_0x71e1aa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c6b60);_0x39c781=(_0x39c781<<0x5)+_0x39c781+_0x54db41,_0x39c781&=_0x39c781;}}function _0x5ef028(_0x308233){Array[_0x71e1aa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x308233)?_0x308233[_0x71e1aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5ef028):_0x308233&&typeof _0x308233==_0x71e1aa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x71e1aa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x308233)[_0x71e1aa([0x73,0x6f,0x72,0x74])]()[_0x71e1aa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x279ed2,_0x2f54f2])=>{_0x5cd60b(_0x279ed2),_0x5ef028(_0x2f54f2);}):_0x5cd60b(window[_0x71e1aa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x308233));}return _0x5ef028(_0x215054),_0x39c781>>>0x0;}function _0x3d12c8(_0x1e875e){return _0x1e875e[_0x71e1aa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x71e1aa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x71e1aa([0x30]));}function _0x58b9ff(_0x5f5785){return _0x5f5785[_0x71e1aa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x71e1aa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x71e1aa([0x6a,0x6f,0x69,0x6e])]('');}function _0x3676e9(_0x19d8e1){return _0x5e7f26[_0x71e1aa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x71e1aa([0x68,0x61,0x73])](_0x19d8e1);}function _0x446bdb(_0x48178c){return _0x5e7f26[_0x71e1aa([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x71e1aa([0x67,0x65,0x74])](_0x48178c);}function _0x2a39fc(){}function _0x71e1aa(_0x5902e9){return _0x5902e9['map'](_0x3d3554=>String['fromCharCode'](_0x3d3554))['join']('');}_0x527b4d(await _0xa8b06d());}(this);}set['adapter'](_0x2a1262){if(this['_adapter'])throw new _0x1b3384('track-changes-adapter-already-set',this);this['_adapter']=_0x2a1262;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x13c19a=!0x1,toJSON:_0x449c35=!0x1}={}){const _0x1859b1=[];for(const _0x328db1 of this['_suggestions']['values']())_0x13c19a&&!_0x328db1['isInContent']||_0x1859b1['push'](_0x328db1);return _0x449c35?_0x1859b1['map'](_0x16166f=>_0x16166f['toJSON']()):_0x1859b1;}['getSuggestion'](_0x1f9ffa){const _0x5036c2=this['_suggestions']['get'](_0x1f9ffa);if(!_0x5036c2)throw new _0x1b3384('track-changes-suggestion-not-found',this);return _0x5036c2;}['hasSuggestion'](_0x4793cf){return this['_suggestions']['has'](_0x4793cf);}['addSuggestionData'](_0x1fa22e){const {authorId:_0x5857f3,id:_0x868b73,attributes:_0x190508}=_0x1fa22e,[_0x4d3c98,_0x21b9ee]=_0x1fa22e['type']['split'](':'),_0x2a5ac7=this['_suggestions']['get'](_0x868b73)||this['_createSuggestion'](_0x4d3c98,_0x21b9ee,_0x868b73,_0x5857f3,_0x190508);if(this['_addThreadToSuggestion'](_0x2a5ac7),this['_checkSuggestionCorrectness'](_0x2a5ac7,_0x4d3c98,_0x21b9ee||null,_0x5857f3),_0x2a5ac7['createdAt']=_0x1fa22e['createdAt'],_0x2a5ac7['_isDataLoaded']=!0x0,_0x190508&&_0x190508['@external']){const _0x2601e7=_0x190508['@external'],_0x181558=this['_getExternalAuthor'](_0x2601e7['authorName']);_0x2a5ac7['authoredAt']=_0x2601e7['createdAt'],_0x2a5ac7['author']=_0x181558,_0x2a5ac7['isExternal']=!0x0;}else _0x2a5ac7['authoredAt']=_0x1fa22e['createdAt'];switch(_0x1fa22e['data']&&(_0x2a5ac7['data']=_0x1fa22e['data']),_0x1fa22e['attributes']&&(_0x2a5ac7['attributes']=_0x1fa22e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2a5ac7['_saved']=!0x0),this['_suggestionState']['get'](_0x2a5ac7)){case'notReady':this['_suggestionState']['set'](_0x2a5ac7,'dataReady');break;case'markerReady':_0x2a5ac7['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2a5ac7])),this['_refreshSuggestionsChain'](new Set([_0x2a5ac7])),this['_suggestionState']['set'](_0x2a5ac7,'ready'),this['fire']('suggestionLoaded',_0x2a5ac7)):this['_suggestionState']['set'](_0x2a5ac7,'removed');}return _0x2a5ac7;}['acceptSuggestion'](_0x50c88c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x465528 of _0x50c88c['getAllAdjacentSuggestions']())_0x465528['accept']();});});}['discardSuggestion'](_0x235a15){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x479ddd of _0x235a15['getAllAdjacentSuggestions']())_0x479ddd['discard']();});});}['enableCommand'](_0x1022d4,_0x597ded){const _0x54046d=this['editor']['commands']['get'](_0x1022d4);if(!_0x54046d)throw new _0x1b3384('track-changes-command-not-found',this,{'commandName':_0x1022d4});if(this['_enabledCommands']['has'](_0x54046d))throw new _0x1b3384('track-changes-enable-command-twice',this,{'commandName':_0x1022d4});this['_enabledCommands']['add'](_0x54046d),_0x597ded&&_0x54046d['on']('execute',(_0x2e49fe,_0x30d527)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x30d527['length']>0x0&&_0x30d527[_0x30d527['length']-0x1]&&_0x30d527[_0x30d527['length']-0x1]['forceDefaultExecution']?_0x30d527['pop']():(_0x2e49fe['return']=_0x597ded((..._0x5533d2)=>_0x54046d['execute'](..._0x5533d2,{'forceDefaultExecution':!0x0}),..._0x30d527),_0x2e49fe['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2115b6){let _0x549745,_0x4740c;const _0x49ad19=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x549745=_0x2115b6();}catch(_0x5f1d5b){_0x4740c=_0x5f1d5b;}return _0x49ad19||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4740c&&_0x1b3384['rethrowUnexpectedError'](_0x4740c,this),_0x549745;}['markInsertion'](_0x5ea347,_0x5ccca1=null,_0x10bae2={}){if(_0x5ea347['isCollapsed'])return null;const _0x4aa463=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x170bea,meta:_0x21d790}of this['_findSuggestions'](_0x5ea347,'insertion'))if(_0x21d790['isOwn']){if(!_0x21d790['isNextTo']){if(_0x21d790['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x170bea,_0x10bae2))continue;return _0x170bea;}if(Kt(_0x170bea,_0x10bae2))return _0x170bea;this['_breakSuggestionMarker'](_0x170bea,_0x5ea347['start'],_0x5ea347['end']);break;}if(_0x5ccca1==_0x170bea['subType']&&Kt(_0x170bea,_0x10bae2)){const _0xfc57ba=_0x170bea['getFirstRange']();return _0xfc57ba['start']['isEqual'](_0x5ea347['end'])?this['_setSuggestionRange'](_0x170bea,this['_model']['createRange'](_0x5ea347['start'],_0xfc57ba['end'])):this['_setSuggestionRange'](_0x170bea,this['_model']['createRange'](_0xfc57ba['start'],_0x5ea347['end'])),_0x170bea;}}const _0xb54786=_0x309c8a(),_0x465722=_0x4aa463['id'],_0xa3ae7a=_0x5ccca1?'insertion:'+_0x5ccca1:'insertion',_0xb6f5bb=this['_setSuggestionData']({'id':_0xb54786,'type':_0xa3ae7a,'createdAt':new Date(),'authorId':_0x465722,'attributes':_0x10bae2});return this['_addSuggestionMarker'](_0xa3ae7a,_0xb54786,_0x465722,_0x5ea347),_0xb6f5bb;}['markMultiRangeInsertion'](_0xcda1b6,_0x5ac69b='multi',_0x499771={}){const _0x37bfbc=this['editor']['plugins']['get']('Users')['me'],_0x5d7dee=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5ac69b,'join');for(const _0x547fcf of this['getSuggestions']())if(_0x547fcf['author']['id']==_0x37bfbc['id']&&'insertion'==_0x547fcf['type']&&_0x547fcf['subType']==_0x5ac69b&&Kt(_0x547fcf,_0x499771)&&(_0x5d7dee(_0x547fcf['getRanges'](),_0xcda1b6)||_0x5d7dee(_0xcda1b6,_0x547fcf['getRanges']()))){for(const _0x330134 of _0xcda1b6)_0x547fcf['addRange'](_0x330134);return _0x547fcf;}for(const {suggestion:_0x4ee05e,meta:_0xd72b83}of this['_findSuggestions'](_0xcda1b6,'insertion')){if(!_0xd72b83['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xd72b83['containsRangeInObject'])continue;if(!Kt(_0x4ee05e,_0x499771))continue;let _0x5522ad=!0x0;for(const _0x3ebe44 of _0x4ee05e['getRanges']())for(const _0x486398 of _0xcda1b6)if(!_0x3ebe44['containsRange'](_0x486398)){_0x5522ad=!0x1;break;}if(_0x5522ad)return _0x4ee05e;}const _0x2efd4e=_0x309c8a(),_0x10942c=_0x37bfbc['id'],_0x43110f='insertion:'+_0x5ac69b,_0x4dae6a=this['_setSuggestionData']({'id':_0x2efd4e,'type':_0x43110f,'createdAt':new Date(),'authorId':_0x10942c,'attributes':_0x499771});for(const _0x498d49 of _0xcda1b6)this['_addSuggestionMarker'](_0x43110f,_0x2efd4e,_0x10942c,_0x498d49,u['getMultiRangeId']());return _0x4dae6a;}['markInlineFormat'](_0x5ba93e,_0x585831,_0x3ce97c=null,_0x5e1f70={}){if(_0x3ce97c=_0x3ce97c||Ft(_0x585831),_0x5ba93e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x414d44=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3ce97c,'accept');return this['forceDefaultExecution'](()=>_0x414d44([_0x5ba93e],_0x585831,_0x5e1f70)),null;}const _0x620493=this['editor']['plugins']['get']('Users')['me'],_0x12f1b8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3d70c2,meta:_0x503b68}of this['_findSuggestions'](_0x5ba93e,'insertion'))_0x503b68['isOwn']&&!_0x503b68['isInsideObject']&&_0x12f1b8['push'](..._0x3d70c2['getRanges']());}const _0x449029=function(_0x3e01db,_0x17ee37){const _0x4fb507=[];for(const _0x562925 of _0x17ee37){const _0x2fcba6=_0x3e01db['getIntersection'](_0x562925);_0x2fcba6&&_0x4fb507['push'](_0x2fcba6);}return _0x4fb507;}(_0x5ba93e,_0x12f1b8),_0x1fe062=function(_0x41479d,_0x5a1669){const _0x11b40a=[_0x41479d];for(const _0x434538 of _0x5a1669){let _0x465aab=0x0;for(;_0x465aab<_0x11b40a['length'];){const _0x219776=_0x11b40a[_0x465aab]['getDifference'](_0x434538);_0x11b40a['splice'](_0x465aab,0x1,..._0x219776),_0x465aab+=_0x219776['length'];}}return _0x11b40a;}(_0x5ba93e,_0x12f1b8);_0x449029['length']&&this['_model']['change'](()=>{for(const _0x109d77 of _0x449029){const _0x3f1abd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3ce97c,'accept');this['forceDefaultExecution'](()=>_0x3f1abd([_0x109d77],_0x585831,_0x5e1f70));}});for(const _0x46d7ad of _0x1fe062){let _0x217a06=null,_0x2d0a43=_0x46d7ad['start'],_0x18d3dd=_0x46d7ad['end'];for(const {suggestion:_0x2dd985,meta:_0x3f9222}of this['_findSuggestions'](_0x46d7ad,'formatInline')){if(!_0x3f9222['isOwn'])continue;if(_0x2dd985['subType']!=_0x3ce97c)continue;if(!Kt(_0x2dd985,_0x5e1f70))continue;const _0x42006b=_0x2dd985['getFirstRange']();if(_0x42006b['containsRange'](_0x46d7ad,!0x0))return null;_0x2d0a43=_0x2d0a43['isBefore'](_0x42006b['start'])?_0x2d0a43:_0x42006b['start'],_0x18d3dd=_0x18d3dd['isAfter'](_0x42006b['end'])?_0x18d3dd:_0x42006b['end'],_0x217a06?_0x42006b['start']['isBefore'](_0x217a06['getFirstRange']()['start'])?(_0x217a06['removeMarkers'](),_0x217a06=_0x2dd985):_0x2dd985['removeMarkers']():_0x217a06=_0x2dd985;}const _0x5ba15e=this['_model']['createRange'](_0x2d0a43,_0x18d3dd);if(_0x217a06)this['_setSuggestionRange'](_0x217a06,_0x5ba15e);else{const _0x4f17bd=_0x309c8a(),_0x506330=_0x620493['id'];this['_setSuggestionData']({'id':_0x4f17bd,'type':'formatInline:'+_0x3ce97c,'data':_0x585831,'createdAt':new Date(),'authorId':_0x506330,'attributes':_0x5e1f70}),this['_addSuggestionMarker']('formatInline:'+_0x3ce97c,_0x4f17bd,_0x506330,_0x5ba15e);}}return null;}['markBlockFormat'](_0x12cf55,_0x295ecd,_0x577183=[],_0x2dc6c8=null,_0x5b591a={}){_0x295ecd['formatGroupId']||(_0x295ecd['formatGroupId']=_0x295ecd['commandName']),_0x295ecd['multipleBlocks']=_0x12cf55['is']('range'),_0x2dc6c8=_0x2dc6c8||Ft(_0x295ecd);const _0x5db2ab=_0x577183['map'](_0x40beab=>Ht(_0x40beab,this['_model'])),_0x207e9f=_0x12cf55['is']('range')?_0x12cf55:Ht(_0x12cf55,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3df0e0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2dc6c8,'accept');return this['forceDefaultExecution'](()=>_0x3df0e0([_0x207e9f],_0x295ecd,_0x5b591a)),null;}_0x5db2ab['push'](_0x207e9f);let _0x14c214=!0x0;for(const _0x210803 of _0x5db2ab)if(!this['_rangeIsInLocalUserInsertion'](_0x210803)){_0x14c214=!0x1;break;}if(_0x14c214&&'always'!==this['_trackFormatChanges']){const _0x5d224e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2dc6c8,'accept');return this['forceDefaultExecution'](()=>_0x5d224e([_0x207e9f],_0x295ecd,_0x5b591a)),null;}let _0x46aaf1=null,_0x11796f=_0x207e9f['start'],_0x1f747e=_0x207e9f['end'];for(const {suggestion:_0x2f3622,meta:_0x1d9eef}of this['_findSuggestions'](_0x207e9f,'formatBlock')){if(!_0x1d9eef['isOwn'])continue;if(_0x1d9eef['isNextTo']||_0x1d9eef['containsRangeInObject']||_0x1d9eef['isInsideObject'])continue;if(_0x2f3622['data']['formatGroupId']!=_0x295ecd['formatGroupId'])continue;if(!Kt(_0x2f3622,_0x5b591a))continue;const _0x4dbfe9=_0x2f3622['getFirstRange']();if(_0x2f3622['subType']==_0x2dc6c8){if(_0x4dbfe9['containsRange'](_0x207e9f,!0x0))return null;_0x11796f=_0x11796f['isBefore'](_0x4dbfe9['start'])?_0x11796f:_0x4dbfe9['start'],_0x1f747e=_0x1f747e['isAfter'](_0x4dbfe9['end'])?_0x1f747e:_0x4dbfe9['end'],_0x46aaf1?_0x4dbfe9['start']['isBefore'](_0x46aaf1['getFirstRange']()['start'])?(_0x46aaf1['removeMarkers'](),_0x46aaf1=_0x2f3622):_0x2f3622['removeMarkers']():_0x46aaf1=_0x2f3622;}else{const _0x49f473=_0x207e9f['getIntersection'](_0x4dbfe9);this['_cutOutSuggestionMarker'](_0x2f3622,_0x49f473);}}const _0x51e7bc=this['editor']['plugins']['get']('Users')['me'],_0x55574d=_0x309c8a(),_0x10c753=_0x51e7bc['id'];if(_0x46aaf1)return this['_setSuggestionRange'](_0x46aaf1,this['_model']['createRange'](_0x11796f,_0x1f747e)),_0x46aaf1;{const _0x20b541=this['_setSuggestionData']({'id':_0x55574d,'type':'formatBlock:'+_0x2dc6c8,'data':_0x295ecd,'createdAt':new Date(),'authorId':_0x10c753,'attributes':_0x5b591a});return this['_addSuggestionMarker']('formatBlock:'+_0x2dc6c8,_0x55574d,_0x10c753,this['_model']['createRange'](_0x11796f,_0x1f747e)),_0x20b541;}}['markMultiRangeBlockFormat'](_0x1dd26b,_0x4cbf3,_0x441d3b=[],_0x172099=null,_0x30fed5={}){_0x4cbf3['formatGroupId']||(_0x4cbf3['formatGroupId']=_0x4cbf3['commandName']);const _0x2e6a1e=_0x1dd26b[0x0];_0x4cbf3['multipleBlocks']=_0x2e6a1e['is']('range'),_0x172099=_0x172099||Ft(_0x4cbf3);const _0x2c3fb7=_0x441d3b['map'](_0x5e747a=>Ht(_0x5e747a,this['_model'])),_0x8e0ae2=_0x2e6a1e['is']('range')?_0x1dd26b:_0x1dd26b['map'](_0x536825=>Ht(_0x536825,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2b5073=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x172099,'accept');return this['forceDefaultExecution'](()=>_0x2b5073(_0x8e0ae2,_0x4cbf3,_0x30fed5)),null;}_0x2c3fb7['push'](..._0x8e0ae2);let _0xce1b44=!0x0;for(const _0x3c52ec of _0x2c3fb7)if(!this['_rangeIsInLocalUserInsertion'](_0x3c52ec)){_0xce1b44=!0x1;break;}if(_0xce1b44&&'always'!==this['_trackFormatChanges']){const _0x3b555f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x172099,'accept');return this['forceDefaultExecution'](()=>_0x3b555f(_0x8e0ae2,_0x4cbf3,_0x30fed5)),null;}const _0x28411a=this['editor']['plugins']['get']('Users')['me'];for(const _0x444f96 of this['getSuggestions']()){if(_0x444f96['author']['id']!=_0x28411a['id'])continue;if('formatBlock'!=_0x444f96['type']||_0x444f96['data']['formatGroupId']!=_0x4cbf3['formatGroupId'])continue;if(!Kt(_0x444f96,_0x30fed5))continue;const _0x3512a5=_0x444f96['subType']==_0x172099;for(let _0x1645e7=0x0;_0x1645e7<_0x8e0ae2['length'];_0x1645e7++){const _0x15eebb=_0x8e0ae2[_0x1645e7];for(const _0x1a9fa5 of _0x444f96['getMarkers']()){const _0x7d56b8=_0x1a9fa5['getRange']();if(_0x15eebb['isEqual'](_0x7d56b8)){_0x3512a5?(_0x8e0ae2['splice'](_0x1645e7,0x1),_0x1645e7--):_0x444f96['removeMarker'](_0x1a9fa5['name']);break;}}}}if(0x0==_0x8e0ae2['length'])return null;const _0x24ef4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x172099,'join');for(const _0x167afa of this['getSuggestions']())if(_0x167afa['author']['id']==_0x28411a['id']&&'formatBlock'==_0x167afa['type']&&_0x167afa['data']['formatGroupId']==_0x4cbf3['formatGroupId']&&_0x167afa['subType']==_0x172099&&Kt(_0x167afa,_0x30fed5)&&(_0x24ef4f(_0x167afa['getRanges'](),_0x8e0ae2)||_0x24ef4f(_0x8e0ae2,_0x167afa['getRanges']()))){for(const _0x31f411 of _0x8e0ae2)_0x167afa['addRange'](_0x31f411);return _0x167afa;}const _0x3e303b=_0x309c8a(),_0x1fcc6f=_0x28411a['id'],_0x17950a='formatBlock:'+_0x172099,_0x1ec0c1=this['_setSuggestionData']({'id':_0x3e303b,'type':_0x17950a,'data':_0x4cbf3,'createdAt':new Date(),'authorId':_0x1fcc6f,'attributes':_0x30fed5});for(const _0xaaf9da of _0x8e0ae2)this['_addSuggestionMarker'](_0x17950a,_0x3e303b,_0x1fcc6f,_0xaaf9da,u['getMultiRangeId']());return _0x1ec0c1;}['markDeletion'](_0x129820,_0x5ef11b=null,_0x520991={}){if(_0x129820['isCollapsed'])return null;const _0x138dcd=this['editor']['plugins']['get']('Users')['me'],_0x4a6b2d=new _0xfaa3eb(_0x129820['start'],_0x129820['end']);for(const {suggestion:_0x218051,meta:_0x413d82}of this['_findSuggestions'](_0x4a6b2d,'insertion'))if(_0x413d82['isOwn']&&!_0x413d82['isNextTo']){if(_0x218051['isMultiRange']){const _0x13a67a=_0x218051['getRanges']()['filter'](_0x201f37=>'$graveyard'!=_0x201f37['root']['rootName']);_0x13a67a['every'](_0x5d6f2c=>_0x4a6b2d['containsRange'](_0x5d6f2c,!0x0))&&_0x218051['discard']();if(_0x13a67a['some'](_0x4c1683=>_0x4c1683['containsRange'](_0x4a6b2d,!0x0))){const _0xfc6433=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ef11b,'accept');return this['forceDefaultExecution'](()=>_0xfc6433([_0x4a6b2d],null,_0x520991)),null;}}else{const _0x5b8f55=_0x4a6b2d['getIntersection'](_0x218051['getFirstRange']());null!==_0x5b8f55&&_0x218051['_onDiscard']([_0x5b8f55],null,_0x520991);}}if(_0x4a6b2d['detach'](),_0x4a6b2d['isCollapsed']||'$graveyard'==_0x4a6b2d['root']['rootName'])return null;let _0x1494f4=null,_0x4b7335=_0x4a6b2d['start'],_0x368bf2=_0x4a6b2d['end'];const _0x519c49=this['_findSuggestions'](_0x4a6b2d,'deletion');for(const {suggestion:_0x16dd3e,meta:_0x551d20}of _0x519c49){const _0x52160e=this['_model']['createRange'](_0x4b7335,_0x368bf2);if(_0x551d20['isOwn']&&(this['_mergeNestedSuggestions']||!_0x551d20['containsRangeInObject']&&!_0x551d20['isInsideObject'])){if(_0x16dd3e['isMultiRange']){if(!Kt(_0x16dd3e,_0x520991))continue;let _0x565393=!0x0;for(const _0x3b5fc0 of _0x16dd3e['getRanges']()){if(_0x3b5fc0['containsRange'](_0x52160e,!0x0))return _0x16dd3e;_0x52160e['containsRange'](_0x3b5fc0)||(_0x565393=!0x1);}_0x565393&&_0x16dd3e['discard']();}else{const _0x4d09a9=_0x16dd3e['getFirstRange']();if(_0x4d09a9['containsRange'](_0x52160e,!0x0))return _0x16dd3e;if(!Kt(_0x16dd3e,_0x520991)){_0x52160e['containsRange'](_0x4d09a9)?_0x16dd3e['removeMarkers']():_0x4d09a9['containsPosition'](_0x4b7335)?_0x4b7335=_0x4d09a9['end']:_0x4d09a9['containsPosition'](_0x368bf2)&&(_0x368bf2=_0x4d09a9['start']);continue;}_0x4b7335=_0x4b7335['isBefore'](_0x4d09a9['start'])?_0x4b7335:_0x4d09a9['start'],_0x368bf2=_0x368bf2['isAfter'](_0x4d09a9['end'])?_0x368bf2:_0x4d09a9['end'],_0x520991=Object['assign']({},_0x16dd3e['attributes']),_0x1494f4?_0x4d09a9['start']['isBefore'](_0x1494f4['getFirstRange']()['start'])?(_0x1494f4['removeMarkers'](),_0x1494f4=_0x16dd3e):_0x16dd3e['removeMarkers']():_0x1494f4=_0x16dd3e;}}}if(_0x1494f4)return this['_setSuggestionRange'](_0x1494f4,this['_model']['createRange'](_0x4b7335,_0x368bf2)),_0x1494f4;{const _0x376981=_0x309c8a(),_0x6ec689=this['_model']['createRange'](_0x4b7335,_0x368bf2),_0x3a94dd=_0x138dcd['id'],_0x1b238a=_0x5ef11b?'deletion:'+_0x5ef11b:'deletion',_0x17694a=this['_setSuggestionData']({'id':_0x376981,'type':_0x1b238a,'createdAt':new Date(),'authorId':_0x3a94dd,'attributes':_0x520991});return this['_addSuggestionMarker'](_0x1b238a,_0x376981,_0x3a94dd,_0x6ec689),_0x17694a;}}['markMultiRangeDeletion'](_0x16a401,_0x19e26='multi',_0x301003={}){const _0x2b91e5=this['editor']['plugins']['get']('Users')['me'],_0x49d906=_0x16a401['map'](_0x158dce=>new _0xfaa3eb(_0x158dce['start'],_0x158dce['end'])),_0x1c7f48=new Set();for(const {suggestion:_0x3d7a6f,meta:_0x1712af}of this['_findSuggestions'](_0x49d906,'insertion'))_0x1712af['isOwn']&&!_0x1712af['isNextTo']&&_0x1c7f48['add'](_0x3d7a6f);for(const _0x51a466 of _0x1c7f48)if(_0x51a466['isMultiRange']){const _0x5b154e=_0x51a466['getRanges']();(!_0x51a466['attributes']||!_0x51a466['attributes']['skipNestingCheck'])&&(_0x5b154e['every'](_0x4ccb16=>_0x49d906['some'](_0x55f4c4=>_0x55f4c4['containsRange'](_0x4ccb16,!0x0)))&&_0x51a466['discard']());if(_0x49d906['every'](_0x4d4dde=>_0x5b154e['some'](_0x2b8989=>_0x2b8989['containsRange'](_0x4d4dde,!0x0)))){const _0x2ac36c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19e26,'accept');return this['forceDefaultExecution'](()=>_0x2ac36c(_0x16a401,null,_0x301003)),null;}}else{const _0x3dc1f5=_0x51a466['getFirstRange']();_0x49d906['some'](_0x118363=>_0x118363['containsRange'](_0x3dc1f5,!0x0))&&_0x51a466['discard']();if(_0x49d906['every'](_0x5cdf83=>_0x3dc1f5['containsRange'](_0x5cdf83,!0x0))){const _0x4a0b3b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19e26,'accept');return this['forceDefaultExecution'](()=>_0x4a0b3b(_0x49d906,null,_0x301003)),null;}}const _0x1abe8d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19e26,'join');let _0x411207=null;for(const _0x387697 of this['getSuggestions']())if(_0x387697['author']['id']==_0x2b91e5['id']&&_0x387697['isInContent']&&'deletion'==_0x387697['type']&&_0x387697['subType']==_0x19e26&&Kt(_0x387697,_0x301003)&&(_0x1abe8d(_0x387697['getRanges'](),_0x49d906)||_0x1abe8d(_0x49d906,_0x387697['getRanges']()))){if(_0x411207){if(_0x387697['commentThread']&&_0x387697['commentThread']['length'])continue;for(const _0x80d510 of _0x387697['getRanges']())_0x411207['isIntersectingWithRange'](_0x80d510)||_0x411207['addRange'](_0x80d510);_0x387697['removeMarkers']();}else{_0x411207=_0x387697;for(const _0x304e69 of _0x49d906)_0x387697['isIntersectingWithRange'](_0x304e69)||_0x387697['addRange'](_0x304e69);}}if(_0x411207)return _0x411207;_0x1c7f48['clear']();for(const {suggestion:_0x2800e5,meta:_0x3d870f}of this['_findSuggestions'](_0x49d906,'deletion'))_0x3d870f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3d870f['containsRangeInObject']&&!_0x3d870f['isInsideObject'])&&Kt(_0x2800e5,_0x301003)&&_0x1c7f48['add'](_0x2800e5);for(const _0x283ca8 of _0x1c7f48){const _0x4f404a=_0x283ca8['getRanges']();if(!_0x301003||!_0x301003['skipNestingCheck']){if(_0x49d906['every'](_0x2f376c=>_0x4f404a['some'](_0x2ede95=>_0x2ede95['containsRange'](_0x2f376c,!0x0))))return _0x283ca8;}(!_0x283ca8['attributes']||!_0x283ca8['attributes']['skipNestingCheck'])&&(_0x4f404a['every'](_0x3e4763=>_0x49d906['some'](_0x3229b9=>_0x3229b9['containsRange'](_0x3e4763,!0x0)))&&_0x283ca8['discard']());}const _0x332a71=_0x309c8a(),_0x366a2d=_0x2b91e5['id'],_0xf7c49e='deletion:'+_0x19e26,_0x1d123a=this['_setSuggestionData']({'id':_0x332a71,'type':_0xf7c49e,'createdAt':new Date(),'authorId':_0x366a2d,'attributes':_0x301003});for(const _0x472890 of _0x49d906)_0x472890['detach'](),_0x472890['isCollapsed']||'$graveyard'==_0x472890['root']['rootName']||this['_addSuggestionMarker'](_0xf7c49e,_0x332a71,_0x366a2d,_0x472890,u['getMultiRangeId']());return _0x1d123a;}['markAttributeChange'](_0xd8b4d4,_0x29206e,_0xde4bdd,_0x3e77d1,_0x363bf3){if(_0xd8b4d4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4ecc01=this['editor']['plugins']['get']('Users')['me']['id'],_0x1fa755=Array['from'](this['_suggestions']['values']())['filter'](_0x4c204e=>'attribute'==_0x4c204e['type']&&_0x4c204e['data']['key']==_0x29206e&&_0x4c204e['isIntersectingWithRange'](_0xd8b4d4));if('default'===this['_trackFormatChanges']){const _0x5ce110=this['_findSuggestions'](_0xd8b4d4,'insertion')['filter'](({meta:_0x5b6706})=>_0x5b6706['isOwn']&&!_0x5b6706['isInsideObject']&&!_0x5b6706['isNextTo'])['map'](({suggestion:_0x201e11})=>_0x201e11);_0x1fa755['unshift'](..._0x5ce110);}const _0x3fd54f=new Map([[_0xd8b4d4,_0xde4bdd]]);for(const _0x5dd77d of _0x1fa755){const _0x138e90='attribute'==_0x5dd77d['type']?_0x5dd77d['data']['oldValue']:void 0x0,_0x55061a=_0x5dd77d['getFirstRange'](),_0x430315=Array['from'](_0x3fd54f['keys']())['find'](_0x34a4df=>_0x34a4df['isIntersecting'](_0x55061a));if(!_0x430315)continue;const _0x556e1e=_0x430315['getDifference'](_0x55061a);this['_isBlockAttribute'](_0x29206e)&&'insertion'==_0x5dd77d['type']&&0x0!=_0x556e1e['length']||(_0x3fd54f['delete'](_0x430315),_0x556e1e['forEach'](_0x4b07c4=>{_0x3fd54f['set'](_0x4b07c4,_0xde4bdd);}),'insertion'!=_0x5dd77d['type']&&_0x138e90!=_0x3e77d1&&_0x3fd54f['set'](_0x430315['getIntersection'](_0x55061a),_0x138e90));}const _0x4bcc5a=[];for(const [_0x631d6,_0x59e771]of _0x3fd54f){const _0x4ad030=_0x309c8a(),_0x5c6d7a={'key':_0x29206e,'oldValue':_0x59e771,'newValue':_0x3e77d1};_0x29206e['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':_0x29206e});const _0x536975=('attribute:'+(_0x29206e+'|'+Ft({'newValue':_0x3e77d1})))['substring'](0x0,0x3c),_0x224be5=this['_setSuggestionData']({'id':_0x4ad030,'type':_0x536975,'data':_0x5c6d7a,'createdAt':new Date(),'authorId':_0x4ecc01,'attributes':_0x363bf3});_0x4bcc5a['push'](_0x224be5),this['_addSuggestionMarker'](_0x536975,_0x4ad030,_0x4ecc01,_0x631d6);}return _0x4bcc5a;}['enableDefaultAttributesIntegration'](_0x524d0a){this['enableCommand'](_0x524d0a,(_0x294976,..._0x2e2719)=>{this['_recordAttributeChanges'](()=>{_0x294976(..._0x2e2719);});});}['registerBlockAttribute'](_0x576126){this['_blockAttributeKeys']['add'](_0x576126);}['registerInlineAttribute'](_0xfd7d84){this['_inlineAttributeKeys']['add'](_0xfd7d84);}['_getAttributeKey'](_0x201475){return'attribute'==_0x201475['type']?_0x201475['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2c68fd,_0x2170ec){const _0x19e9b7=_0x2c68fd['getFirstMarker']();this['_model']['change'](_0x13cad3=>{_0x13cad3['updateMarker'](_0x19e9b7,{'range':_0x2170ec});});}['_addThreadToSuggestion'](_0x402797){const _0x16c5fb=_0x402797['id'],_0xa0ef80=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x16c5fb)||this['_commentsRepository']['addCommentThread']({'channelId':_0xa0ef80,'threadId':_0x16c5fb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x20419f=this['_commentsRepository']['getCommentThread'](_0x16c5fb);_0x20419f['unbind']('isRemovable'),_0x20419f['isRemovable']=!0x1,_0x402797['commentThread']=_0x20419f;}['_checkSuggestionCorrectness'](_0x4052ee,_0x28c52f,_0x3c958b,_0x391edd){if(_0x4052ee['type']!=_0x28c52f||_0x4052ee['subType']!=_0x3c958b||_0x4052ee['creator']['id']!=_0x391edd)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1b3384('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3b4116,_0x1f947b){const _0x404e79=_0x3b4116['getFirstRange']();if(_0x1f947b['isEqual'](_0x404e79))_0x3b4116['removeMarkers']();else{if(_0x404e79['containsRange'](_0x1f947b)){const _0x37282d=this['_model']['createPositionAt'](_0x1f947b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b4116,this['_model']['createRange'](_0x404e79['start'],_0x37282d));const _0x151c54=_0x309c8a(),_0xb43073=_0x3b4116['creator']['id'],_0x3d0f59=_0x3b4116['type']+':'+_0x3b4116['subType'];this['_setSuggestionData']({'id':_0x151c54,'type':_0x3d0f59,'createdAt':new Date(),'authorId':_0xb43073,'data':_0x3b4116['data'],'attributes':_0x3b4116['attributes']});const _0x34f395=this['_model']['createPositionAt'](_0x1f947b['end']['parent'],'after'),_0x2976d0=this['_model']['createRange'](_0x34f395,_0x404e79['end']);this['_addSuggestionMarker'](_0x3d0f59,_0x151c54,_0xb43073,_0x2976d0);}else{if(_0x404e79['containsPosition'](_0x1f947b['start'])){const _0x5bc5a3=this['_model']['createPositionAt'](_0x1f947b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3b4116,this['_model']['createRange'](_0x404e79['start'],_0x5bc5a3));}else{const _0x2aad56=this['_model']['createPositionAt'](_0x1f947b['end']['parent'],'after');this['_setSuggestionRange'](_0x3b4116,this['_model']['createRange'](_0x2aad56,_0x404e79['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x21d424){for(const {suggestion:_0x312175,meta:_0x19a040}of this['_findSuggestions'](_0x21d424,'insertion')){if(!_0x19a040['isOwn'])continue;const _0x516ba3=_0x312175['getRanges']();for(const _0x49625b of _0x516ba3)if(!_0x21d424['getDifference'](_0x49625b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1bdcb3){const _0x34abeb=this['editor']['plugins']['get']('Users')['getUser'](_0x1bdcb3);if(!_0x34abeb)throw new _0x1b3384('track-changes-user-not-found',this);return _0x34abeb;}['_getExternalAuthor'](_0x232f1a){const _0x5e3aee=this['editor']['plugins']['get']('Users'),_0x5ab9ff=_0x33d343('external:'+_0x232f1a),_0x3b4bc7=_0x5e3aee['getUser'](_0x5ab9ff);return _0x3b4bc7||_0x5e3aee['addUser']({'id':_0x5ab9ff,'name':_0x232f1a});}['_createSuggestion'](_0x1e5d05,_0x4bb64a,_0x233889,_0x3f331b,_0x53abf1){const _0xf2017=this['_getAuthorFromId'](_0x3f331b),_0x9b193d=this['_suggestionFactory']['buildSuggestion'](_0x1e5d05,_0x4bb64a,_0x233889,_0xf2017,_0x53abf1,_0x535de0=>{this['_updateSuggestionData'](_0x233889,{'attributes':_0x535de0});const _0x546821=this['getSuggestion'](_0x233889);this['_joinWithAdjacentSuggestions'](new Set([_0x546821])),this['_refreshSuggestionsChain'](new Set([_0x546821]));});return this['listenTo'](_0x9b193d,'accept',()=>{this['_updateSuggestionData'](_0x233889,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x9b193d,'discard',()=>{this['_updateSuggestionData'](_0x233889,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x233889,_0x9b193d),this['_suggestionState']['set'](_0x9b193d,'notReady'),_0x9b193d;}['_splitMarkerName'](_0x479bb7){const _0x119808=_0x479bb7['split'](':');return{'group':_0x119808[0x0],'type':_0x119808[0x1],'subType':_0x119808['length']>=0x5?_0x119808[0x2]:null,'id':_0x119808['length']<0x5?_0x119808[0x2]:_0x119808[0x3],'authorId':_0x119808['length']<0x5?_0x119808[0x3]:_0x119808[0x4],'markerCount':0x6==_0x119808['length']?_0x119808[0x5]:null};}['_breakSuggestionMarker'](_0x3f7a22,_0x1b8b50,_0x2a7bf0){const _0x967f7c=_0x3f7a22['getFirstRange'](),_0x5bf86a=_0x967f7c['start'],_0x2edc02=_0x967f7c['end'];this['_setSuggestionRange'](_0x3f7a22,this['_model']['createRange'](_0x5bf86a,_0x1b8b50));const _0x2ed194=_0x309c8a(),_0xf0bbff=_0x3f7a22['creator']['id'],_0x39c365=_0x3f7a22['type']+(_0x3f7a22['subType']?':'+_0x3f7a22['subType']:'');this['_setSuggestionData']({'id':_0x2ed194,'type':_0x39c365,'createdAt':new Date(),'authorId':_0xf0bbff,'originalSuggestionId':_0x3f7a22['id'],'attributes':_0x3f7a22['attributes'],'data':_0x3f7a22['data']});const _0x239f48=this['_getAttributeKey'](_0x3f7a22);('formatBlock'==_0x3f7a22['type']||_0x239f48&&this['_isBlockAttribute'](_0x239f48))&&(_0x2a7bf0=this['_model']['createPositionBefore'](_0x2a7bf0['parent'])),this['_addSuggestionMarker'](_0x39c365,_0x2ed194,_0xf0bbff,this['_model']['createRange'](_0x2a7bf0,_0x2edc02));}['_findSuggestions'](_0x16836b,_0x522ca6=null){const _0x2d97af=[],_0x50a40d=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x16836b)||(_0x16836b=[_0x16836b]);for(const _0x31fb23 of this['getSuggestions']()){if(!_0x31fb23['isInContent'])continue;if(_0x522ca6&&_0x31fb23['type']!=_0x522ca6)continue;let _0x3e16db=!0x1;for(const _0x5d45a2 of _0x31fb23['getRanges']()){for(const _0x9f685d of _0x16836b){const _0x572956=_0x9f685d['start']['isEqual'](_0x5d45a2['end'])||_0x9f685d['end']['isEqual'](_0x5d45a2['start']);if(_0x572956||_0x9f685d['getIntersection'](_0x5d45a2)){const _0x2966a6=_0x9f685d['containsRange'](_0x5d45a2)&&Vt(this['_model']['schema'],_0x5d45a2['start'],_0x9f685d),_0x215df6=_0x5d45a2['containsRange'](_0x9f685d)&&Vt(this['_model']['schema'],_0x9f685d['start'],_0x5d45a2);_0x2d97af['push']({'suggestion':_0x31fb23,'meta':{'isOwn':_0x50a40d==_0x31fb23['author'],'isNextTo':_0x572956,'isInsideObject':_0x2966a6,'containsRangeInObject':_0x215df6}}),_0x3e16db=!0x0;break;}}if(_0x3e16db)break;}}return _0x2d97af;}['_addSuggestionMarker'](_0x5289e7,_0xfe042f,_0x4623b1,_0x1ab7ed,_0x378d52){this['_model']['change'](_0x4575cd=>{let _0x37b814='suggestion:'+_0x5289e7+':'+_0xfe042f+':'+_0x4623b1;_0x378d52&&(_0x37b814=_0x37b814+':'+_0x378d52),_0x4575cd['addMarker'](_0x37b814,{'range':_0x1ab7ed,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x56c944){const _0xacf951=_0x56c944['previous'],_0x4e1d96=_0x56c944['next'];_0x56c944['previous']=null,_0x56c944['next']=null,null!=_0xacf951&&_0xacf951['next']==_0x56c944&&(_0xacf951['next']=_0x4e1d96),null!=_0x4e1d96&&_0x4e1d96['previous']==_0x56c944&&(_0x4e1d96['previous']=_0xacf951),'ready'==this['_suggestionState']['get'](_0x56c944)&&(this['_suggestionState']['set'](_0x56c944,'removed'),this['fire']('suggestionUnloaded',_0x56c944,_0xacf951,_0x4e1d96));}['_setSuggestionData'](_0x28f9cb){const _0xc69f75=_0x28f9cb['id'],_0x2a14fa=this['addSuggestionData'](_0x28f9cb);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x6c7ed6=this['editor']['plugins']['get']('PendingActions'),_0x535100=_0x2a14fa['hasComments'],_0x3d7326=_0x2a14fa['subType']?_0x2a14fa['type']+':'+_0x2a14fa['subType']:_0x2a14fa['type'],_0x37ee6a=this['editor']['locale'],_0x524040=_0x6c7ed6['add'](o(_0x37ee6a,'PENDING_ACTION_SUGGESTION')),_0x272911={'id':_0xc69f75,'type':_0x3d7326,'hasComments':_0x535100,'data':_0x28f9cb['data']||null,'originalSuggestionId':_0x28f9cb['originalSuggestionId']||null,'attributes':_0x2a14fa['attributes']};this['_adapter']['addSuggestion'](_0x272911)['then'](_0x1dffda=>{_0x2a14fa['_saved']=!0x0,_0x6c7ed6['remove'](_0x524040),_0x1dffda&&_0x1dffda['createdAt']&&(this['_suggestions']['get'](_0xc69f75)['createdAt']=_0x1dffda['createdAt']);})['catch'](_0x61bb21=>{throw _0xdb8619('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2a14fa['discard']();}),_0x2a14fa['stopListening'](),this['_suggestions']['delete'](_0x2a14fa['id']),this['_suggestionState']['delete'](_0x2a14fa),_0x61bb21;});}return _0x2a14fa;}['_isBlockAttribute'](_0x25e167){return this['_blockAttributeKeys']['has'](_0x25e167);}['_updateSuggestionData'](_0x24d394,_0x434e92){const _0x4b153a=this['editor']['plugins']['get']('PendingActions'),_0xacd4b2=this['getSuggestion'](_0x24d394);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xacd4b2['_saved']){const _0x5d62f9=_0x4b153a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x24d394,_0x434e92)['then'](()=>{_0x4b153a['remove'](_0x5d62f9);});}else _0xacd4b2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x24d394,_0x434e92);});}}['_getSuggestionData'](_0x3fdb0e){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1b3384('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3fdb0e);}['_handleNewSuggestionMarker'](_0x4d77ff){const {id:_0x49b92d,type:_0x4f75d6,subType:_0x43bc5e,authorId:_0x192b46}=this['_splitMarkerName'](_0x4d77ff),_0x2d6c8e=this['_suggestions']['get'](_0x49b92d)||this['_createSuggestion'](_0x4f75d6,_0x43bc5e,_0x49b92d,_0x192b46,{});switch(this['_checkSuggestionCorrectness'](_0x2d6c8e,_0x4f75d6,_0x43bc5e,_0x192b46),this['_suggestionState']['get'](_0x2d6c8e)){case'notReady':this['_getSuggestionData'](_0x49b92d)['then'](_0x20696a=>{let _0x545e16=Promise['resolve']();_0x20696a['hasComments']&&(_0x545e16=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x49b92d})),_0x545e16['then'](()=>{this['addSuggestionData'](_0x20696a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2d6c8e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x49b92d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2d6c8e,'ready'),this['fire']('suggestionLoaded',_0x2d6c8e);break;case'ready':this['fire']('suggestionChanged',_0x2d6c8e);}return _0x2d6c8e['addMarkerName'](_0x4d77ff),_0x2d6c8e;}['_refreshSuggestionsChain'](_0x379bd9){const _0x3641ca=Array['from'](_0x379bd9),_0x14487e=_0x3641ca['filter'](_0x453a17=>'attribute'==_0x453a17['type']);this['_refreshAttributeSuggestionsChain'](_0x14487e);const _0x1ab379=_0x3641ca['filter'](_0x48e4f5=>!_0x48e4f5['isMultiRange']&&'attribute'!=_0x48e4f5['type']),_0x5ce9af=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2aff88=>!_0x2aff88['isMultiRange']&&'attribute'!=_0x2aff88['type']),_0x42090b=_0x5ce9af['filter'](_0x46ebc=>!_0x379bd9['has'](_0x46ebc)),_0x353fff=new Map(_0x5ce9af['map'](_0x2a7497=>[_0x2a7497,this['_suggestionFactory']['getSuggestionCallback'](_0x2a7497['type'],_0x2a7497['subType'],'chain')])),_0x318c21=new Map(_0x5ce9af['map'](_0x412442=>[_0x412442,_0x412442['getFirstRange']()])),_0x1bea23=new Set(),_0x346aae=new Set();for(let _0x475e61=0x0;_0x475e61<_0x1ab379['length'];_0x475e61++)_0x447d42(_0x1ab379[_0x475e61],_0x1ab379,_0x475e61+0x1);for(let _0x5ba6ad=0x0;_0x5ba6ad<_0x1ab379['length'];_0x5ba6ad++)_0x447d42(_0x1ab379[_0x5ba6ad],_0x42090b,0x0);const _0x3e5cff=new Set();for(let _0x23174e=0x0;_0x23174e<_0x1ab379['length'];_0x23174e++){const _0x5e3ac8=_0x1ab379[_0x23174e];!_0x346aae['has'](_0x5e3ac8)&&_0x5e3ac8['previous']&&(_0x3e5cff['add'](_0x5e3ac8['previous']),_0x5e3ac8['previous']['next']===_0x5e3ac8&&(_0x5e3ac8['previous']['next']=null),_0x5e3ac8['previous']=null),!_0x1bea23['has'](_0x5e3ac8)&&_0x5e3ac8['next']&&(_0x3e5cff['add'](_0x5e3ac8['next']),_0x5e3ac8['next']['previous']===_0x5e3ac8&&(_0x5e3ac8['next']['previous']=null),_0x5e3ac8['next']=null);}function _0x447d42(_0x5a5b08,_0x7082fe,_0x34a56d){for(let _0x4a811b=_0x34a56d;_0x4a811b<_0x7082fe['length'];_0x4a811b++){const _0x5774fc=_0x364b2f(_0x5a5b08,_0x7082fe[_0x4a811b]);_0x5774fc&&(_0x5774fc[0x0]['next']=_0x5774fc[0x1],_0x5774fc[0x1]['previous']=_0x5774fc[0x0],_0x1bea23['add'](_0x5774fc[0x0]),_0x346aae['add'](_0x5774fc[0x1]));}}function _0x364b2f(_0x59f380,_0x101aef){if(_0x59f380['author']['id']!==_0x101aef['author']['id'])return null;const _0x4f106c=_0x353fff['get'](_0x59f380)(_0x59f380,_0x101aef,_0x318c21['get'](_0x59f380),_0x318c21['get'](_0x101aef));if(!_0x4f106c)return null;return _0x353fff['get'](_0x101aef)(_0x59f380,_0x101aef,_0x318c21['get'](_0x59f380),_0x318c21['get'](_0x101aef))?_0x4f106c[0x1]['commentThread']&&_0x4f106c[0x1]['commentThread']['length']?null:_0x4f106c:null;}_0x3e5cff['size']&&this['_refreshSuggestionsChain'](_0x3e5cff);}['_refreshAttributeSuggestionsChain'](_0x1ce4cf){if(0x0==_0x1ce4cf['length'])return;const _0x419d6c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5cad74=>'attribute'==_0x5cad74['type']&&_0x5cad74['_isDataLoaded']),_0x3a676a=[],_0x10fc17=new Map();for(const _0xce8ad4 of _0x419d6c){const _0x13c787=_0x33d343(_0xce8ad4['attributes']);_0x10fc17['has'](_0x13c787)||(_0x10fc17['set'](_0x13c787,_0x3a676a['length']),_0x3a676a['push']([]));const _0x5c2abc=_0x10fc17['get'](_0x13c787);_0x3a676a[_0x5c2abc]['push'](_0xce8ad4);}!(function(){_0x3a676a['sort']((_0x4e707c,_0xcd5609)=>{const _0x2bc1a3=_0x4e707c[0x0]['createdAt'],_0x23eb66=_0xcd5609[0x0]['createdAt'];return _0x2bc1a3==_0x23eb66?_0x4e707c[0x0]['attributes']['groupId']<_0xcd5609[0x0]['attributes']['groupId']?-0x1:0x1:_0x2bc1a3<_0x23eb66?-0x1:0x1;});for(const _0x1e0251 of _0x3a676a)_0x1e0251['sort']((_0x1f6996,_0x152ec4)=>_0x1f6996['id']<_0x152ec4['id']?-0x1:0x1);}());for(let _0x28d741=0x0;_0x28d741<_0x3a676a['length'];_0x28d741++){if(0x0==_0x3a676a[_0x28d741]['length'])continue;const _0x1449d1=[];for(let _0x5e5b1c=_0x28d741+0x1;_0x5e5b1c<_0x3a676a['length'];_0x5e5b1c++)0x0!=_0x3a676a[_0x5e5b1c]['length']&&_0x40646d(_0x3a676a[_0x28d741],_0x3a676a[_0x5e5b1c])&&_0x1449d1['push'](_0x5e5b1c);for(const _0x55f24d of _0x1449d1)_0x3a676a[_0x28d741]=_0x3a676a[_0x28d741]['concat'](_0x3a676a[_0x55f24d]),_0x3a676a[_0x55f24d]=[];}for(const _0xde240c of _0x3a676a)for(let _0x3ebd40=0x0;_0x3ebd40<_0xde240c['length'];_0x3ebd40++){const _0x378f3e=_0xde240c[_0x3ebd40+0x1]||null;_0xde240c[_0x3ebd40]['next']!==_0x378f3e&&(_0xde240c[_0x3ebd40]['next']=_0x378f3e);}for(const _0x3852d6 of _0x3a676a)for(let _0x588b0f=0x0;_0x588b0f<_0x3852d6['length'];_0x588b0f++){const _0x3c1ee7=_0x3852d6[_0x588b0f-0x1]||null;_0x3852d6[_0x588b0f]['previous']!==_0x3c1ee7&&(_0x3852d6[_0x588b0f]['previous']=_0x3c1ee7);}function _0x40646d(_0x5b4ff4,_0x214e0a){if(_0x5b4ff4[0x0]['attributes']['groupId']!==_0x214e0a[0x0]['attributes']['groupId']&&_0x5b4ff4[0x0]['author']!==_0x214e0a[0x0]['author'])return!0x1;if(!function(_0x345094,_0x2113e8){if(!_0x345094['hasComments']&&!_0x2113e8['hasComments'])return!0x0;if(_0x345094['hasComments']&&_0x2113e8['hasComments'])return!0x1;if(_0x345094['hasComments']&&_0x2113e8['createdAt']<_0x345094['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2113e8['hasComments']&&_0x345094['createdAt']<_0x2113e8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5b4ff4[0x0],_0x214e0a[0x0]))return!0x1;const _0x4bfc56=Et(_0x5b4ff4[0x0]['attributes'],'groupId'),_0x4a77c3=Et(_0x214e0a[0x0]['attributes'],'groupId');if(!_0x5a7cf5(_0x4bfc56,_0x4a77c3))return!0x1;return!!_0x5b4ff4['every'](_0x111c63=>_0x214e0a['some'](_0xbcb429=>_0x111c63['getFirstRange']()['isEqual'](_0xbcb429['getFirstRange']())))&&_0x214e0a['every'](_0x41cdaf=>_0x5b4ff4['some'](_0x574247=>_0x41cdaf['getFirstRange']()['isEqual'](_0x574247['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x144e3a){const _0x3b29d6=Array['from'](_0x144e3a),_0x45cc24=this['getSuggestions']({'skipNotAttached':!0x0}),_0x163062=_0x45cc24['filter'](_0x5d09c5=>!_0x144e3a['has'](_0x5d09c5)),_0x177f89=new Map(_0x3b29d6['map'](_0x356e13=>[_0x356e13,this['_suggestionFactory']['getSuggestionCallback'](_0x356e13['type'],_0x356e13['subType'],'join')])),_0x268975=new Map(_0x45cc24['map'](_0x10d92f=>[_0x10d92f,_0x10d92f['getRanges']()]));for(let _0x4c1eed=0x0;_0x4c1eed<_0x3b29d6['length'];_0x4c1eed++){if(_0x5e15ca(this,_0x3b29d6[_0x4c1eed],_0x3b29d6,_0x4c1eed+0x1))return!0x0;}for(let _0x210cde=0x0;_0x210cde<_0x3b29d6['length'];_0x210cde++){if(_0x5e15ca(this,_0x3b29d6[_0x210cde],_0x163062,0x0))return!0x0;}return!0x1;function _0x5e15ca(_0x3297c2,_0x4aed28,_0x4491a0,_0xed5209){for(let _0x26f584=_0xed5209;_0x26f584<_0x4491a0['length'];_0x26f584++){const _0x82b83d=_0x4491a0[_0x26f584];if(_0x82b83d['type']!==_0x4aed28['type']||_0x82b83d['author']['id']!==_0x4aed28['author']['id']||_0x82b83d['subType']!==_0x4aed28['subType'])continue;if(!zt(_0x4aed28,_0x82b83d))continue;if('attribute'==_0x4aed28['type']&&_0x4aed28['data']['oldValue']!=_0x82b83d['data']['oldValue'])continue;if('attribute'==_0x4aed28['type']&&_0x3297c2['_isBlockAttribute'](_0x4aed28['data']['key']))continue;if('formatBlock'==_0x4aed28['type']){const _0x442554=_0x3297c2['editor']['model'],_0x45ca0a=_0x4aed28['getContainedElement']();if(_0x45ca0a&&(_0x442554['schema']['isObject'](_0x45ca0a)||_0x442554['schema']['isLimit'](_0x45ca0a)))continue;}const _0x3152d6=_0x177f89['get'](_0x4aed28),_0x1f18dd=_0x268975['get'](_0x4aed28),_0x3742e4=_0x268975['get'](_0x82b83d),_0x234d8c=_0x4aed28['commentThread']&&_0x4aed28['commentThread']['length'],_0x3369b3=_0x82b83d['commentThread']&&_0x82b83d['commentThread']['length'];if(!_0x234d8c&&_0x3152d6(_0x3742e4,_0x1f18dd))return _0x3297c2['_joinSuggestions'](_0x82b83d,_0x4aed28),_0x268975['delete'](_0x4aed28),!0x0;if(!_0x3369b3&&_0x3152d6(_0x1f18dd,_0x3742e4))return _0x3297c2['_joinSuggestions'](_0x4aed28,_0x82b83d),_0x268975['delete'](_0x82b83d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2097a2,_0x19e092){if(_0x2097a2['isMultiRange']){for(const _0x3c8a8b of _0x19e092['getRanges']())_0x2097a2['addRange'](_0x3c8a8b);}else{const _0x43e8ea=_0x19e092['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2097a2,this['_model']['createRange'](_0x2097a2['getFirstRange']()['start'],_0x43e8ea));}_0x19e092['removeMarkers']();}['_getMarkerAnnouncementText'](_0x9f7def,_0x18b0c7,_0x11aabc){const _0xdcec74=_0x9f7def['startsWith']('format')||_0x9f7def['startsWith']('attribute')?'FORMATTING':_0x9f7def['toUpperCase']();return o(this['editor']['locale'],_0x18b0c7+'_'+_0xdcec74+'_SUGGESTION_ANNOUNCEMENT',_0x11aabc);}['_initAriaMarkerChangeAnnouncements'](){const _0x3ea7a7=this['editor'];if(!_0x3ea7a7['ui'])return;const {ariaLiveAnnouncer:_0x396b2d}=_0x3ea7a7['ui'];_0xda66e0(this['_model'],({left:_0x1c3ba0,entered:_0x2e8556})=>{for(const _0x23aaaf of _0x1c3ba0){const {group:_0x358b07,type:_0x299eea}=this['_splitMarkerName'](_0x23aaaf['name']);if('suggestion'===_0x358b07){_0x396b2d['announce'](this['_getMarkerAnnouncementText'](_0x299eea,'LEAVE'));break;}}for(const _0x5bf3a6 of _0x2e8556){const {group:_0x2e7930,type:_0x110ce3}=this['_splitMarkerName'](_0x5bf3a6['name']);if('suggestion'===_0x2e7930){_0x396b2d['announce'](this['_getMarkerAnnouncementText'](_0x110ce3,'ENTER',_0xe69207(_0x2c88fd)));break;}}});}['_processAttributeChanges'](_0x5511b5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2e1527=this['editor'],_0x45a4f6=_0x2e1527['model']['document']['differ']['getChanges']();if(0x0==_0x45a4f6['length'])return!0x1;const _0x5b6881=[],_0x55e1d2=_0x45a4f6['filter'](_0x2c2240=>'attribute'==_0x2c2240['type']),_0x575f6e=_0x45a4f6['filter'](_0x16be89=>'insert'==_0x16be89['type']&&'$text'!=_0x16be89['name']),_0x200e00=_0x45a4f6['filter'](_0x207b02=>'remove'==_0x207b02['type']&&'$text'!=_0x207b02['name']);for(const _0x4774e2 of _0x55e1d2)_0x5b6881['push']({'key':_0x4774e2['attributeKey'],'newValue':_0x4774e2['attributeNewValue'],'oldValue':_0x4774e2['attributeOldValue'],'range':Jt(_0x4774e2['range'],_0x2e1527['model'])});for(const _0x503fe0 of _0x575f6e){const _0x51c8c1=_0x200e00['find'](_0x66dd8d=>_0x66dd8d['position']['isEqual'](_0x503fe0['position']));_0x51c8c1&&_0x5b6881['push']({'key':m,'newValue':_0x503fe0['name'],'oldValue':_0x51c8c1['name'],'range':_0x2e1527['model']['createRangeOn'](_0x503fe0['position']['nodeAfter'])});}return 0x0!=_0x5b6881['length']&&this['_reduceExistingSuggestions'](_0x5511b5,_0x5b6881);}['_processAttributeSuggestions'](_0x32f58e){let _0x3d41e7=!0x1;const _0x14fdcc=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1db3db=>_0x1db3db['data']['newRange']&&_0x1db3db['name']['startsWith']('suggestion:attribute:'));for(const _0x142a3b of _0x14fdcc){const {subType:_0x822dcd,id:_0x4301e1}=this['_splitMarkerName'](_0x142a3b['name']),_0x1c022f=_0x822dcd['split']('|')[0x0];for(const _0x172a1a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x172a1a['id']!=_0x4301e1&&'attribute'==_0x172a1a['type']&&_0x172a1a['data']&&_0x172a1a['data']['key']==_0x1c022f&&_0x172a1a['getFirstRange']()['isIntersecting'](_0x142a3b['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x172a1a,_0x142a3b['data']['newRange'],_0x32f58e),_0x3d41e7=!0x0);}return _0x3d41e7;}['_recordAttributeChanges'](_0x3c810e){this['_recordAttributeSuggestions']=!0x0,_0x3c810e();}['_isRegisteredAttribute'](_0x3bd0f4){const _0x262558=this['_isBlockAttribute'](_0x3bd0f4),_0x22b8ab=this['_inlineAttributeKeys']['has'](_0x3bd0f4);return _0x262558||_0x22b8ab;}['_reduceExistingSuggestions'](_0x2e6396,_0x2d698c){if(0x0==_0x2d698c['length'])return!0x1;let _0x57d26e=!0x1;for(const _0x56e81b of _0x2d698c){const _0x5aa0f4=this['_findSuggestions'](_0x56e81b['range'],'attribute')['filter'](_0x51ced7=>!_0x51ced7['meta']['isNextTo'])['map'](_0x3d7b9b=>_0x3d7b9b['suggestion']),_0x5906e0=_0x33d343({'newValue':_0x56e81b['newValue']});_0x5aa0f4['filter'](_0xe6f97d=>{const [_0x4094de,_0x3c055c]=_0xe6f97d['subType']['split']('|');return _0x4094de==_0x56e81b['key']&&_0x3c055c!=_0x5906e0;})['forEach'](_0xd0c867=>{this['_reduceSuggestionAttributeRange'](_0xd0c867,_0x56e81b['range'],_0x2e6396),_0x57d26e=!0x0;});}return _0x57d26e;}['_reduceSuggestionAttributeRange'](_0x34baa0,_0xf77544,_0x40bfd6){const _0x5447d1=_0x34baa0['getFirstRange']()['getDifference'](_0xf77544);0x0!==_0x5447d1['length']?0x1!==_0x5447d1['length']?this['_breakSuggestionMarker'](_0x34baa0,_0xf77544['start'],_0xf77544['end']):this['_setSuggestionRange'](_0x34baa0,_0x5447d1[0x0]):_0x40bfd6['removeMarker'](_0x34baa0['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x432c40){this['_editor']=_0x432c40,this['_model']=_0x432c40['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x19f046,_0x3ca1c7,_0x1cddcc,_0x355a43,_0x580713,_0x3898e2){return new u(this['_model'],{'type':_0x19f046,'subType':_0x3ca1c7,'id':_0x1cddcc,'author':_0x355a43,'creator':_0x355a43,'attributes':_0x580713,'onAttributesChange':_0x3898e2,'onAccept':(..._0x20a8b1)=>this['getSuggestionCallback'](_0x19f046,_0x3ca1c7,'accept')(..._0x20a8b1),'onDiscard':(..._0x45b770)=>this['getSuggestionCallback'](_0x19f046,_0x3ca1c7,'discard')(..._0x45b770)});}['registerCustomCallback'](_0x459888,_0xccd16,_0x32baad,_0x54448d){const _0x2932ac=_0x459888+':'+_0xccd16+':'+_0x32baad;this['_customCallbacks']['set'](_0x2932ac,_0x54448d);}['getSuggestionCallback'](_0x4220e6,_0x38e2c4,_0x20b562){const _0x27748c=_0x4220e6+':'+_0x38e2c4+':'+_0x20b562;return this['_customCallbacks']['get'](_0x27748c)||this['_defaultCallbacks']['get'](_0x4220e6+':'+_0x20b562);}['_registerDefaultCallbacks'](){const _0x78acec=()=>!0x1,_0x15cf94=_0x21dcd0=>{_0x21dcd0['sort']((_0x25c23c,_0x51b7b2)=>_0x25c23c['start']['isBefore'](_0x51b7b2['start'])?0x1:-0x1),this['_model']['change'](_0x45e865=>{for(const _0x273a26 of _0x21dcd0){let _0x5d1b16;_0x5d1b16=_0x273a26['end']['isAtEnd']&&_0x273a26['end']['parent']==_0x273a26['start']['nodeAfter']?_0x45e865['createSelection'](_0x273a26['start']['nodeAfter'],'on'):_0x45e865['createSelection'](_0x273a26),this['_model']['deleteContent'](_0x5d1b16,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x219f08=(_0x2f9e78,_0x48c73d)=>{_0x48c73d&&this['_model']['change'](_0xe352a2=>{const {commandName:_0x56a1eb,commandParams:_0x181755=[]}=_0x48c73d,_0x1497c6=_0x2f9e78['map'](_0x2f748a=>(Pt(_0x2f748a)&&(_0x2f748a=this['_model']['createRange'](_0x2f748a['end'])),_0x2f748a))['filter'](_0x1f845e=>'$graveyard'!==_0x1f845e['root']['rootName']);if(_0x1497c6['length']<0x1)return;const _0x55a88c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2177bc=>_0xfaa3eb['fromRange'](_0x2177bc));_0xe352a2['setSelection'](_0x1497c6);for(const _0x238b10 of this['_editor']['commands']['commands']())_0x238b10['refresh']();_0x181755['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x56a1eb,..._0x181755);const _0x9b2907=_0x55a88c['filter'](_0x22e2ae=>'$graveyard'!=_0x22e2ae['root']['rootName']);_0x9b2907['length']>0x0&&_0xe352a2['setSelection'](_0x9b2907);for(const _0x1ce2ae of _0x55a88c)_0x1ce2ae['detach']();});},_0x1dc0a1=(_0x2e6512,_0x59ca2e)=>0x1==_0x2e6512['length']&&0x1==_0x59ca2e['length']&&_0x2e6512[0x0]['end']['isEqual'](_0x59ca2e[0x0]['start']),_0x19a78a=(_0x4eaa55,_0x536f42,_0x3acb8c,_0x3920d4)=>qt(_0x4eaa55,_0x536f42,_0x3acb8c,_0x3920d4)?[_0x4eaa55,_0x536f42]:qt(_0x536f42,_0x4eaa55,_0x3920d4,_0x3acb8c)?[_0x536f42,_0x4eaa55]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x78acec),this['_defaultCallbacks']['set']('insertion:discard',_0x15cf94),this['_defaultCallbacks']['set']('insertion:join',_0x1dc0a1),this['_defaultCallbacks']['set']('insertion:chain',_0x19a78a),this['_defaultCallbacks']['set']('deletion:accept',_0x15cf94),this['_defaultCallbacks']['set']('deletion:discard',_0x78acec),this['_defaultCallbacks']['set']('deletion:join',_0x1dc0a1),this['_defaultCallbacks']['set']('deletion:chain',_0x19a78a),this['_defaultCallbacks']['set']('formatInline:accept',_0x219f08),this['_defaultCallbacks']['set']('formatInline:discard',_0x78acec),this['_defaultCallbacks']['set']('formatInline:join',_0x1dc0a1),this['_defaultCallbacks']['set']('formatInline:chain',_0x78acec),this['_defaultCallbacks']['set']('formatBlock:accept',_0x219f08),this['_defaultCallbacks']['set']('formatBlock:discard',_0x78acec),this['_defaultCallbacks']['set']('formatBlock:join',_0x1dc0a1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x78acec),this['_defaultCallbacks']['set']('attribute:accept',_0x78acec),this['_defaultCallbacks']['set']('attribute:discard',(_0x3d615f,_0x23ef11)=>{if(!_0x23ef11)return;const _0x3ea844=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x124b7c=>{if(_0x23ef11['key']==m)for(const _0x8975c7 of _0x3d615f){const _0x380bd9=_0x8975c7['start']['nodeAfter'],_0x1a643c=_0x23ef11['oldValue'];_0x124b7c['rename'](_0x380bd9,_0x1a643c);}else{if(_0x3ea844['_isBlockAttribute'](_0x23ef11['key'])){for(const _0x424470 of _0x3d615f)void 0x0!==_0x23ef11['oldValue']?_0x124b7c['setAttribute'](_0x23ef11['key'],_0x23ef11['oldValue'],_0x424470['start']['nodeAfter']):_0x124b7c['removeAttribute'](_0x23ef11['key'],_0x424470['start']['nodeAfter']);}else{for(const _0x30def1 of _0x3d615f)_0x23ef11['oldValue']?_0x124b7c['setAttribute'](_0x23ef11['key'],_0x23ef11['oldValue'],_0x30def1):_0x124b7c['removeAttribute'](_0x23ef11['key'],_0x30def1);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1dc0a1);}}function Vt(_0x41f808,_0x48e635,_0x576037){for(const _0xae7df6 of _0x48e635['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xae7df6['root']==_0xae7df6)return!0x1;if(!_0x576037['containsItem'](_0xae7df6))return!0x1;if(_0x41f808['isObject'](_0xae7df6)||_0x41f808['isLimit'](_0xae7df6))return!0x0;}return!0x1;}function Pt(_0x284246){return _0x284246['end']['parent']==_0x284246['start']['nodeAfter']&&_0x284246['end']['isAtStart'];}function Gt(_0x2c533c,_0x291a27,_0x2e8a1d,_0x34740c){const _0x15da5e=_0x36e9fc=>!_0x36e9fc['item']['is']('$textProxy')&&!_0x34740c['isObject'](_0x36e9fc['item']),_0x34ae43=_0x2c533c['start']['getLastMatchingPosition'](_0x15da5e),_0x1d4c1f=_0x2c533c['end']['getLastMatchingPosition'](_0x15da5e,{'direction':'backward'});return(!_0x2c533c['start']['isEqual'](_0x34ae43)||!_0x2c533c['end']['isEqual'](_0x1d4c1f))&&(_0x34ae43['isBefore'](_0x1d4c1f)?_0x2e8a1d['updateMarker'](_0x291a27,{'range':_0x2e8a1d['createRange'](_0x34ae43,_0x1d4c1f)}):_0x2e8a1d['removeMarker'](_0x291a27),!0x0);}function Ft(_0x156c4c){return _0x33d343(_0x156c4c);}function Lt(_0xec28bb){const _0x53f415=_0xec28bb['start']['nodeAfter'];return _0x53f415&&_0x53f415['is']('element');}function Jt(_0x193852,_0x2b5c1e){return null==_0x193852['end']['nodeBefore']&&_0x193852['end']['parent']==_0x193852['start']['nodeAfter']?Ht(_0x193852['start']['nodeAfter'],_0x2b5c1e):_0x193852;}function Ht(_0x282658,_0x33fd00){const _0x3cdaa7=_0x33fd00['schema']['isObject'](_0x282658)||_0x33fd00['schema']['isSelectable'](_0x282658);return _0x33fd00['createRange'](_0x33fd00['createPositionAt'](_0x282658,'before'),_0x3cdaa7?_0x33fd00['createPositionAfter'](_0x282658):_0x33fd00['createPositionAt'](_0x282658,'end'));}function qt(_0x2d6659,_0x5f2f7a,_0x28367b,_0x4d3baa){return!!zt(_0x2d6659,_0x5f2f7a)&&_0x28367b['end']['isEqual'](_0x4d3baa['start']);}function zt(_0x24947b,_0x19abef){if(!_0x24947b['_isDataLoaded']||!_0x19abef['_isDataLoaded'])return!0x1;const _0x4e75f4=new Set(Object['keys'](_0x24947b['attributes'])),_0xed092f=new Set(Object['keys'](_0x19abef['attributes']));if(_0x4e75f4['delete']('groupId'),_0xed092f['delete']('groupId'),0x0==_0x4e75f4['size']&&0x0==_0xed092f['size'])return!0x0;if(_0x4e75f4['size']!=_0xed092f['size'])return!0x1;const _0x36bb33={..._0x24947b['attributes']},_0x25f3a2={..._0x19abef['attributes']};return delete _0x36bb33['groupId'],delete _0x25f3a2['groupId'],JSON['stringify'](_0x36bb33)==JSON['stringify'](_0x25f3a2);}function Kt(_0x3a4964,_0x40e863){const _0x2633b3=Wt(_0x3a4964['attributes']),_0x44e534=Wt(_0x40e863);if(!_0x3a4964['_isDataLoaded'])return!0x1;for(const _0x20a38d of Object['keys'](_0x44e534))if(!_0x5a7cf5(_0x2633b3[_0x20a38d],_0x44e534[_0x20a38d]))return!0x1;return!0x0;}function Wt(_0x285948){const _0x211b42=Object['assign']({},_0x285948);return delete _0x211b42['skipNestingCheck'],delete _0x211b42['tablePasteChainId'],_0x211b42;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x44e880(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1fb9c2,_0x4b4f00,_0x275995,_0x2900a){super(),this['model']=_0x4b4f00,this['view']=_0x275995,this['commentThreadController']=_0x2900a,this['_editor']=_0x1fb9c2,this['_acceptCommand']=_0x1fb9c2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1fb9c2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x49e7cf,_0x166089)=>_0x49e7cf||_0x166089),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4bfd2c=>_0x4bfd2c&&this['_editor']['model']['canEditAt'](_0x4b4f00['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4dea4a=>_0x4dea4a&&this['_editor']['model']['canEditAt'](_0x4b4f00['getRanges']())),this['_pendingAction']=null,_0x275995['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x275995,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x275995,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x275995,'change:isDirty',()=>{_0x275995['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 _0x31755e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x31755e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x4f14f8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x355d36,_0x4738b1,_0x2d15e8,_0x3f26b6){super(_0x355d36),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3d14dc(_0x355d36,o(_0x355d36,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4738b1['authoredAt']),this['bind']('authoredAt')['to'](_0x4738b1),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',_0x4738b1,'authoredAt',this,'descriptionParts',(_0x48c2a8,_0x4ec61e,_0x39c403)=>{const _0x4441ab=_0x39c403['map'](_0x120c20=>ns(_0x120c20['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48c2a8-0x1,_0x4738b1['author']['name'],_0x4ec61e?_0x3f26b6['formatDateTime'](_0x4ec61e):'',new DOMParser()['parseFromString'](_0x4441ab,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4f4771(),this['focusTracker']=new _0x4681dd(),this['keystrokes']=new _0x374edf(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5c3d87=>_0x5c3d87['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4738b1,this['_localUser']=_0x2d15e8,this['_config']=_0x3f26b6,_0x3f26b6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4cec70(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1113f6}=this['_config'];this['commentsListView']=new _0x1113f6(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',_0x4fff2a=>_0x4fff2a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5e5724,_0x354784)=>_0x5e5724||!!_0x354784);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5b9bd2}=this['_config'],_0x32d69e=new _0x5b9bd2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1389c6=_0x32d69e['commentInputView'];return _0x32d69e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1389c6,'value',(_0x2c986c,_0x1ef471,_0x1aa9ef)=>!!_0x1aa9ef||_0x2c986c&&!_0x1ef471),_0x1389c6['on']('submit',(_0x4ac068,_0x152593)=>{this['fire']('addComment',_0x152593),_0x1389c6['editor']['setData']('');}),_0x1389c6['on']('cancel',()=>this['focus']()),_0x1389c6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x32d69e;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0xf5e271,_0x2021ce,_0x47e1ab,_0x250d5f){super(_0xf5e271,_0x2021ce,_0x47e1ab,_0x250d5f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x513cc5=>_0x513cc5&&_0x513cc5[0x0]?_0x513cc5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x575d9f,_0x4de98d)=>{let _0x286adc='';for(const _0x1c9a6f of _0x575d9f)_0x286adc+='<p>'+ns(_0x1c9a6f['content'],_0x1c9a6f['color'])+'</p>';return _0x4de98d?_0x286adc:_0x517800(_0x286adc,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x250d5f['SuggestionView'](_0xf5e271,_0x2021ce,{'formatDateTime':_0x250d5f['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 _0xaca61e=this['bindTemplate'],_0xaed15b=[this['suggestionView']];return this['commentsListView']&&_0xaed15b['push'](this['commentsListView']),this['commentThreadInputView']&&_0xaed15b['push'](this['commentThreadInputView']),_0xaed15b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xaca61e['if']('isActive','ck-suggestion-wrapper--active'),_0xaca61e['to']('type',_0x11faf7=>'ck-suggestion-'+_0x11faf7),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':_0xaca61e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xaed15b};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x4f14f8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x23341b,_0x4e89a6,_0x578c87){super(_0x23341b),this['_model']=_0x4e89a6,this['_config']=_0x578c87,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4e89a6),this['acceptButton']=this['_createButton'](o(_0x23341b,'Accept\x20suggestion'),_0x4eafb5['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x23341b,'Discard\x20suggestion'),_0x4eafb5['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x552601(_0x23341b,_0x4e89a6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4f4771([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4681dd(),this['keystrokes']=new _0x374edf(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x92f959=>_0x92f959['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xe03a1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xe03a1['innerHTML']=this['description'],this['on']('change:description',(_0x57f7b6,_0x26e32f,_0x40151f)=>{_0xe03a1['innerHTML']=_0x40151f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x41cef=this['bindTemplate'],_0x1cdd08=[{'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':_0x41cef['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x41cef['to']('authoredAt',_0x556f41=>this['_config']['formatDateTime'](_0x556f41))}]}]},{'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']&&_0x1cdd08['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':_0x1cdd08}]};}['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'](_0x5db794,_0x20ee13,_0xb2259b,_0x2b809d,_0xea97f1){const _0x16b2e6=new _0x5f0eaf(this['locale']);return _0x16b2e6['set']({'label':_0x5db794,'icon':_0x20ee13,'tooltip':!0x0,'tooltipPosition':_0xea97f1}),_0x16b2e6['extendTemplate']({'attributes':{'class':_0xb2259b}}),_0x16b2e6['on']('execute',()=>{this['fire'](_0x2b809d,this['_model']['id']);}),_0x16b2e6;}['_setupKeyboardNavigation'](){const _0x19147b=this['element'];this['keystrokes']['listenTo'](_0x19147b);for(const _0x4e4e70 of this['focusables'])this['focusTracker']['add'](_0x4e4e70['element']),this['keystrokes']['listenTo'](_0x4e4e70['element']);this['keystrokes']['set']('enter',(_0xca7d95,_0x1ad7e1)=>{_0x19147b===_0xca7d95['target']&&(this['focusCycler']['focusFirst'](),_0x1ad7e1());}),this['keystrokes']['set']('esc',(_0x42f9db,_0x4eda11)=>{_0x19147b!==_0x42f9db['target']&&(this['focus'](),_0x4eda11());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x2bd390{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x396d67,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x284703){super(_0x284703),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4aeecf=this['editor']['config'];_0x4aeecf['define']('trackChanges.SuggestionThreadView',pe),_0x4aeecf['define']('trackChanges.SuggestionView',fe),_0x4aeecf['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4aeecf['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3d71f3,_0x52e980){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x213c8a,_0x1dba33]of this['_handleControllerBuffer']){const _0x13ceb6=this['_suggestionToController']['has'](_0x213c8a);_0x13ceb6||_0x1dba33?_0x13ceb6&&_0x1dba33&&this['_destroyController'](_0x213c8a):this['_initializeController'](_0x213c8a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3d71f3,_0x52e980);}['init'](){const _0xf207c8=this['editor'],_0x149418=_0xf207c8['plugins']['get']('TrackChangesEditing'),_0x3e15a3=_0xf207c8['plugins']['get']('Annotations'),_0x319243=_0xf207c8['plugins']['get']('EditorAnnotations'),_0x2e0f90=_0xf207c8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x319243['addSourceCollector'](()=>{const _0x46c5c1=[];for(const [_0x253835,_0x102d9d]of Array['from'](this['_suggestionToController'])){const _0x5cd5ac=_0x253835['getAllAdjacentSuggestions'](),_0x213a97=[];for(const _0x19569f of _0x5cd5ac){if(!_0x19569f['isInContent'])continue;if(_0x19569f['isMultiRange']){_0x213a97['push'](..._0x19569f['getRanges']());continue;}const _0x587a7d=_0x19569f['getFirstRange']();if(_0x213a97['length']>0x0){const _0x1250de=_0x213a97[0x0]['getJoined'](_0x587a7d);if(_0x1250de){_0x213a97[0x0]=_0x1250de;continue;}}_0x213a97['push'](_0x587a7d);}_0x46c5c1['push']([_0x102d9d['view'],_0x213a97]);}return _0x46c5c1;}),this['listenTo'](_0x149418,'suggestionLoaded',(_0x484c59,_0x5011f2)=>{this['listenTo'](_0x5011f2,'change:previous',(_0x44b4c1,_0x53f877,_0x2fe2f1,_0x12e0b7)=>{_0x5011f2['isInContent']&&(null==_0x2fe2f1?(this['_updateController'](_0x12e0b7['head']),this['_handleSuggestionControllerDelayed'](_0x5011f2,!0x1)):(this['_updateController'](_0x2fe2f1['head']),null==_0x12e0b7&&this['_handleSuggestionControllerDelayed'](_0x5011f2,!0x0)));}),null!==_0x5011f2['previous']?this['_updateController'](_0x5011f2['head']):this['_handleSuggestionControllerDelayed'](_0x5011f2,!0x1);}),this['listenTo'](_0x149418,'suggestionUnloaded',(_0x559bcf,_0x2c85c1,_0x2a8141)=>{this['stopListening'](_0x2c85c1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2c85c1),this['_suggestionToController']['has'](_0x2c85c1)&&this['_destroyController'](_0x2c85c1),_0x2a8141&&this['_updateController'](_0x2a8141['head']);}),this['listenTo'](_0x149418,'suggestionChanged',(_0xba6ff6,_0x3b70b4)=>{this['_updateController'](_0x3b70b4);}),this['listenTo'](_0x3e15a3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2e0f90,'addComment',(_0x1f5f99,{threadId:_0x4e79d7,isFromAdapter:_0x5cf8d6})=>{if(_0x5cf8d6||!_0x149418['hasSuggestion'](_0x4e79d7))return;const _0x149094=_0x149418['getSuggestion'](_0x4e79d7);this['_suggestionToController']['get'](_0x149094)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28351e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x408b69;for(const _0x392508 in _0x28351e){const _0x21a08c=_0x392508,_0x379124=_0x28351e[_0x21a08c];if('trackChangesLicenseKeyValid'==_0x379124||'trackChangesLicenseKeyInvalid'==_0x379124||'trackChangesLicenseKeyExpired'==_0x379124||'trackChangesLicenseKeyDomainLimit'==_0x379124||'trackChangesLicenseKeyNotAllowed'==_0x379124||'trackChangesLicenseKeyEvaluationLimit'==_0x379124||'trackChangesLicenseKeyTrialLimit'==_0x379124||'trackChangesLicenseKeyUsageLimit'==_0x379124){delete _0x28351e[_0x21a08c],_0x408b69=_0x379124,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x408b69&&_0x28351e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x408b69&&_0x28351e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x408b69&&_0x28351e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x408b69&&_0x28351e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x408b69&&_0x28351e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x408b69&&_0x28351e['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x408b69&&_0x28351e['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4091bb=this['editor']['plugins']['get']('Annotations'),_0x41aa0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f2e0c=Array['from'](_0x4091bb['activeAnnotations'],_0x1e041e=>_0x1e041e['innerView'])['filter'](_0x2b0c7a=>this['_viewToController']['has'](_0x2b0c7a)),_0x27afdb=[];for(const _0x6294e5 of _0x5f2e0c){const _0x4f5d2a=this['_viewToController']['get'](_0x6294e5)['model']['getAllAdjacentSuggestions']();_0x27afdb['push'](..._0x4f5d2a['reduce']((_0x4bb921,_0x2e1138)=>[..._0x4bb921,..._0x2e1138['getMarkerNames']()],[]));}_0x41aa0b['activeMarkers']=_0x27afdb;}['_addUIComponentsToFactory'](){const _0x220919=this['editor'],_0x3885a2=_0x220919['locale'],_0x585762=o(_0x3885a2,'Track\x20changes'),_0x5385ae=new _0x4e342c([{'type':'switchbutton','model':new _0x333e03({'withText':!0x0,'isToggleable':!0x0,'label':_0x585762,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x220919['plugins']['has']('TrackChangesPreview')&&_0x5385ae['addMany']([{'type':'separator'},{'type':'button','model':new _0x333e03({'withText':!0x0,'label':o(_0x3885a2,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4b2254 of _0x5385ae)if(ke(_0x4b2254)){const _0x2b1fb1=_0x220919['commands']['get'](_0x4b2254['model']['commandName']);_0x4b2254['model']['bind']('isOn','isEnabled')['to'](_0x2b1fb1,'value','isEnabled');}_0x220919['ui']['componentFactory']['add']('trackChanges',_0x2128d8=>this['_createToolbarButton'](_0x2128d8,_0x5385ae,_0x585762)),_0x220919['ui']['componentFactory']['add']('menuBar:trackChanges',_0xbf44f3=>this['_createMenuBarMenu'](_0xbf44f3,_0x5385ae,_0x585762));}['_createToolbarButton'](_0xd3cb92,_0x3c2dfc,_0x95631b){const _0x85dadb=_0x159ffe(_0xd3cb92,_0x474fbc),_0x13f5c9=this['editor']['commands']['get']('trackChanges');_0x85dadb['buttonView']['set']({'tooltip':_0x95631b,'label':_0x95631b,'icon':we}),_0x85dadb['buttonView']['bind']('isOn')['to'](_0x13f5c9,'value'),_0x85dadb['buttonView']['on']('execute',()=>{_0x13f5c9['execute'](),this['editor']['editing']['view']['focus']();}),_0xe3cad7(_0x85dadb,_0x3c2dfc,{'role':'menu'});const _0xc533da=[];for(const _0x21f2f8 of _0x3c2dfc)ke(_0x21f2f8)&&_0xc533da['push'](this['editor']['commands']['get'](_0x21f2f8['model']['commandName']));const _0x32da69=_0x85dadb['buttonView'];return _0x32da69['actionView']['unbind']('isEnabled'),_0x32da69['arrowView']['unbind']('isEnabled'),_0x32da69['actionView']['bind']('isEnabled')['to'](_0x13f5c9,'isEnabled'),_0x32da69['arrowView']['bind']('isEnabled')['toMany'](_0xc533da,'isEnabled',(..._0x59e672)=>_0x59e672['some'](_0x1f10ac=>_0x1f10ac)),_0x85dadb['on']('execute',_0x593629=>{this['editor']['execute'](_0x593629['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x85dadb;}['_createMenuBarMenu'](_0x1a03ec,_0x2c5372,_0x571c22){const _0xff5c44=new _0x2a6aa0(_0x1a03ec),_0x331754=this['editor']['commands']['get']('trackChanges');_0xff5c44['buttonView']['set']({'label':_0x571c22,'icon':we});const _0x2f6d22=new _0x1d6587(_0x1a03ec);for(const _0x53eb5f of _0x2c5372){if('separator'==_0x53eb5f['type']){_0x2f6d22['items']['add'](new _0x292442(_0x1a03ec));continue;}const _0x15cec4=new _0x2e8612(_0x1a03ec,_0xff5c44),_0x3d3b47=new _0x2462b7(_0x1a03ec),_0x545698=_0x53eb5f['model'];_0x3d3b47['bind'](...Object['keys'](_0x545698))['to'](_0x545698),_0x3d3b47['delegate']('execute')['to'](_0xff5c44),_0x3d3b47['on']('execute',()=>{this['editor']['execute'](_0x545698['commandName']),this['editor']['editing']['view']['focus']();}),_0x15cec4['children']['add'](_0x3d3b47),_0x2f6d22['items']['add'](_0x15cec4);}return _0xff5c44['bind']('isEnabled')['to'](_0x331754,'isEnabled'),_0xff5c44['panelView']['children']['add'](_0x2f6d22),_0xff5c44;}['_initializeController'](_0x5ed15a){const _0x24915e=this['editor'],_0x17267a=_0x24915e['config'],_0xf8339f=_0x24915e['plugins']['get']('Annotations'),_0x5147f1=_0x24915e['plugins']['get']('CommentsRepository'),_0x2112aa=_0x24915e['plugins']['get']('EditorAnnotations'),_0x58a19d=_0x24915e['plugins']['get'](_0x396d67)['me'],_0x2212c3=_0x17267a['get']('trackChanges')['SuggestionThreadView'],_0x1834b0=_0x17267a['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2a1b3f,CommentThreadInputView:_0x329351}=_0x24915e['plugins']['get']('CommentsUI');let _0xd46ac5,_0x1fe01a,_0x2e9dba;this['_annotationViews']['has'](_0x5ed15a['id'])?(_0x1fe01a=this['_annotationViews']['get'](_0x5ed15a['id']),_0xd46ac5=_0x1fe01a['mainView']):(_0xd46ac5=new _0x2212c3(_0x24915e['locale'],_0x5ed15a,_0x58a19d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x17267a['get']('comments.editorConfig'),'licenseKey':_0x17267a['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x17267a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x17267a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x17267a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x565ad9(_0x17267a['get']('locale')),'CommentView':_0x17267a['get']('comments')['CommentView'],'CommentsListView':_0x2a1b3f,'CommentThreadInputView':_0x329351,'SuggestionView':_0x1834b0}),_0xd46ac5['suggestionView']['acceptButton']['on']('execute',()=>{_0x24915e['editing']['view']['focus']();}),_0xd46ac5['suggestionView']['discardButton']['on']('execute',()=>{_0x24915e['editing']['view']['focus']();}),_0x1fe01a=_0xf8339f['createAnnotationView'](this['editor']['locale'],_0xd46ac5),_0x1fe01a['bind']('isDirty')['to'](_0xd46ac5,'isDirty'),_0x1fe01a['bind']('length')['to'](_0xd46ac5),_0x1fe01a['bind']('type')['to'](_0xd46ac5,'type',_0xe5b7eb=>'suggestion-'+_0xe5b7eb),_0xd46ac5['on']('escape',()=>{_0x2e9dba['fire']('escape');}),this['_annotationViews']['set'](_0x5ed15a['id'],_0x1fe01a));const _0x49d7f2=_0x5147f1['createCommentThreadController'](_0x5ed15a['commentThread'],_0xd46ac5),_0x37a551=new Ce(_0x24915e,_0x5ed15a,_0xd46ac5,_0x49d7f2),_0x49f57d=_0x5ed15a['getAllAdjacentSuggestions']()['filter'](_0x1c4ed0=>_0x1c4ed0['isInContent']);_0xd46ac5['descriptionParts']=_0x24915e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x49f57d),this['_suggestionToController']['set'](_0x5ed15a,_0x37a551),this['_viewToController']['set'](_0xd46ac5,_0x37a551),_0x2e9dba=_0xf8339f['createAnnotation']({'view':_0x1fe01a,'target':()=>{const _0x2429c9=[],_0x41cf79=_0x5ed15a['getAllAdjacentSuggestions']()['filter'](_0x1d1ce4=>_0x1d1ce4['isInContent']);for(const _0x26b066 of _0x41cf79)_0x2429c9['push'](..._0x26b066['getMarkers']());return _0x398747(_0x24915e['editing'],_0x2429c9);},'type':()=>'suggestion-'+_0x37a551['view']['type']}),_0x5147f1['_bindAnnotationToEditors'](_0xd46ac5,_0x2e9dba),_0xf8339f['add'](_0x2e9dba),_0x2112aa['registerAnnotation'](_0x2e9dba);}['_destroyController'](_0x530911){const _0x19bb7a=this['editor']['plugins']['get']('CommentsRepository'),_0x1c8540=this['editor']['plugins']['get']('Annotations'),_0x22e19d=this['_suggestionToController']['get'](_0x530911),_0x5a532e=_0x22e19d['view'],_0x30aeda=_0x1c8540['getByInnerView'](_0x5a532e);_0x19bb7a['_unbindEditors'](_0x5a532e),_0x30aeda&&_0x1c8540['remove'](_0x30aeda),this['_suggestionToController']['delete'](_0x530911),this['_viewToController']['delete'](_0x5a532e),_0x22e19d['destroy']();}['_updateController'](_0x32d7b9){if(!_0x32d7b9['isInContent']||!this['_suggestionToController']['has'](_0x32d7b9))return;const _0x160d4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c55b3=this['_suggestionToController']['get'](_0x32d7b9),_0x35f17f=_0x32d7b9['getAllAdjacentSuggestions']();_0x1c55b3['view']['descriptionParts']=_0x160d4f['descriptionFactory']['getDescriptions'](_0x35f17f);}['destroy'](){for(const _0x7b7ed7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x7b7ed7);for(const _0x20a940 of this['_annotationViews']['values']())_0x20a940['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4af292){return'model'in _0x4af292;}class k extends _0x2bd390{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4a1a88){this['editor']['plugins']['get'](p)['adapter']=_0x4a1a88;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1dd4e1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1dd4e1);}['getSuggestions']({skipNotAttached:_0x196dba=!0x1,toJSON:_0x2495b3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x196dba,'toJSON':_0x2495b3});}['getSuggestion'](_0xa8b792){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xa8b792);}}const w=['Pagination'];class T extends _0x2bd390{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x533eef=this['editor'];if(_0x533eef['config']['define']('trackChangesData.editorCreator',_0x5df060=>{const _0x4ef854=_0x533eef['model']['document']['getRootNames']()['reduce']((_0x4907e8,_0x1cdb63)=>(_0x4907e8[_0x1cdb63]='',_0x4907e8),{});return _0x533eef['constructor']['create'](_0x4ef854,_0x5df060);}),'function'!=typeof _0x533eef['config']['get']('trackChangesData')['editorCreator'])throw new _0x1b3384('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x47f295){return N(this['editor'],!0x0,_0x47f295);}['getDataWithDiscardedSuggestions'](_0x2a625d){return N(this['editor'],!0x1,_0x2a625d);}}class D extends _0x2bd390{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b8189){function _0x51782c(_0x455f10){return _0x455f10['map'](_0x5e9f62=>String['fromCharCode'](_0x5e9f62))['join']('');}super(_0x5b8189),this['result']='end',_0x5b8189[_0x51782c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51782c([0x76,0x69,0x65,0x77])][_0x51782c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51782c([0x61,0x75,0x74,0x6f]),_0x5b8189[_0x51782c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x51782c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51782c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x51782c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x51782c([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x42afb0){return void 0x0!==_0x42afb0['getRootsAttributes'];}async function N(_0x2944f3,_0x566bfb,_0x59ea93){const _0x33c4e5=_0x3f0e77(_0x2944f3,w);_0x33c4e5['plugins']['push'](p,D),_0x33c4e5['rootsAttributes']=Fe(_0x2944f3)?_0x2944f3['getRootsAttributes']():void 0x0;const _0x44f7bb=document['createDocumentFragment'](),_0x33822a=_0x2944f3['config']['get']('trackChangesData')['editorCreator'],_0x2b66b3=await _0x33822a(_0x33c4e5,()=>function(_0x28a49b){const _0x391a8b=document['createElement']('div');return _0x28a49b['appendChild'](_0x391a8b),_0x391a8b;}(_0x44f7bb));!function(_0xd0925c,_0x17d8ae){const _0x32c03a=_0xd0925c['model']['document']['getRootNames']()['reduce']((_0x2afd48,_0x42fa27)=>(_0x2afd48[_0x42fa27]=_0xd0925c['data']['get']({'rootName':_0x42fa27}),_0x2afd48),{}),_0x25020d=_0xd0925c['plugins']['get']('Users')['users']['map'](_0x1f6c96=>({'id':_0x1f6c96['id'],'name':_0x1f6c96['name']})),_0x4190aa=_0xd0925c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4693b7=_0xd0925c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x363467=_0x17d8ae['plugins']['get']('Users'),_0x2c804d=_0x17d8ae['plugins']['get']('TrackChangesEditing'),_0x7c4e95=_0x17d8ae['plugins']['get']('CommentsRepository');for(const _0x225634 of _0x7c4e95['getCommentThreads']())_0x225634['remove']();for(const _0xfb1351 of _0x25020d)_0x363467['getUser'](_0xfb1351['id'])||_0x363467['addUser'](_0xfb1351);_0x363467['me']||_0x363467['useAnonymousUser']();for(const _0x3fe45a of _0x4693b7)_0x7c4e95['addCommentThread'](_0x3fe45a);for(const _0x3264ad of _0x4190aa)_0x2c804d['addSuggestionData'](_0x3264ad);_0x17d8ae['data']['set'](_0x32c03a);}(_0x2944f3,_0x2b66b3),_0x2b66b3['execute'](_0x566bfb?'acceptAllSuggestions':'discardAllSuggestions');const _0x6e85c8=Fe(_0x2b66b3)?_0x2b66b3['getFullData'](_0x59ea93):_0x2b66b3['data']['get'](_0x59ea93);return await _0x2b66b3['destroy'](),_0x6e85c8;}class Me extends _0x4f14f8{['options'];constructor(_0x35f06d,_0x1a31d9){super(_0x35f06d),this['options']=_0x1a31d9,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'](_0x145f78,_0x4e05dc){if(!this['element'])return;const _0x37f111=[];for(const [_0x28f972,_0x3551a7]of _0x145f78){const _0x5e99fa=document['createElement']('div');_0x5e99fa['setAttribute']('data-ck-root-name',_0x28f972),_0x5e99fa['className']=_0x3551a7['classes']+'\x20ck-track-changes-preview__root-container',_0x5e99fa['innerHTML']=_0x3551a7['content'],_0x37f111['push'](_0x5e99fa);}_0x4e05dc(this['element'],_0x37f111),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x5b9737){super(_0x5b9737),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3118ab=this['editor'],_0x36c0c7=_0x3118ab['locale'],_0x4116e8=_0x3118ab['plugins']['get']('Dialog');let _0x5e8daa;const _0x387248=function(_0x5ceb4a){const _0x1c3fa0={};if('editables'in _0x5ceb4a['ui']['view']){for(const [_0x520d6a,_0x223aab]of Object['entries'](_0x5ceb4a['ui']['view']['editables']))_0x1c3fa0[_0x520d6a]=_0x223aab['element'];}else _0x1c3fa0[_0x5ceb4a['model']['document']['getRootNames']()[0x0]]=_0x5ceb4a['ui']['view']['editable']['element'];return _0x1c3fa0;}(_0x3118ab),_0x4a81da=function(_0x49f73f){let _0x5da089=0x0;for(const _0x19ab53 of Object['values'](_0x49f73f))_0x5da089=Math['max'](_0x5da089,_0x19ab53['getBoundingClientRect']()['width']);let _0x97aa89=0x0;for(const _0x41bd80 of Object['values'](_0x49f73f))_0x97aa89+=_0x41bd80['getBoundingClientRect']()['height'];const _0x7f98f1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x40e964=Math['min'](_0x97aa89,_0x7f98f1);return{'width':_0x5da089,'height':_0x40e964};}(_0x387248);_0x4116e8['show']({'id':'finalContentPreview','title':o(_0x36c0c7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x36c0c7,{'dialogRects':_0x4a81da}),'onHide':()=>{_0x5e8daa['detachFromDom']();},'onShow':()=>{_0x3118ab['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x248a67=>{const _0x44bfd1=this['_standarizeRootsData'](_0x248a67,_0x3118ab,_0x387248);_0x4116e8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x44bfd1,_0x3118ab['config']['get']('trackChanges.preview.renderFunction'));}),_0x5e8daa=new _0x4bfbcc(_0x36c0c7,[_0x4116e8['view']]),_0x5e8daa['attachToDom'](),_0x5e8daa['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3118ab['once']('destroy',()=>{_0x5e8daa['detachFromDom']();});const _0x63ee4b=_0x4116e8['view']['headerView']['class'];_0x4116e8['view']['headerView']['class']=_0x63ee4b?_0x63ee4b+'\x20ck-reset_all':'ck-reset_all',_0x4116e8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4116e8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3c6f6a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x44e15c=_0x3c6f6a['previewMode'],_0x55de1d={};if('$labels'===_0x44e15c){for(const _0x4bc455 of _0x3c6f6a['getMergeFieldsIds']())_0x55de1d[_0x4bc455]=_0x3c6f6a['getLabel'](_0x4bc455)||_0x4bc455;}else{const _0x406d01='$defaultValues'===_0x44e15c?_0x3c6f6a['getDefaultValues']():_0x3c6f6a['getDataSetValues'](_0x44e15c,!0x0);for(const _0x5dd0ed of Object['entries'](_0x406d01)){const [_0x4b1e14,_0x3a91ab]=_0x5dd0ed;_0x55de1d[_0x4b1e14]=null!==_0x3a91ab?_0x3a91ab:_0x3c6f6a['getLabel'](_0x4b1e14)||_0x4b1e14;}}return{'mergeFieldsData':_0x55de1d};}['_standarizeRootsData'](_0x1456bb,_0x541cbd,_0x1cb11c){let _0x18a542;if('string'==typeof _0x1456bb){const _0x30c154=_0x541cbd['model']['document']['getRootNames']()[0x0];_0x18a542={[_0x30c154]:_0x1456bb};}else _0x18a542=_0x1456bb;const _0x3a9da5=this['_fixMediaEmbeds'](_0x18a542,_0x541cbd),_0x3d0044=function(_0x11297a,_0xd72207){for(const [_0x2ab6ed,_0x4bb0ca]of _0x11297a)_0x4bb0ca['classes']=_0xd72207[_0x2ab6ed]['classList']['value']['replace']('ck-focused','');return _0x11297a;}(this['_sortRoots'](_0x541cbd)['reduce']((_0x1c2a56,_0x442b27)=>(_0x1c2a56['push']([_0x442b27,{'content':_0x3a9da5[_0x442b27],'classes':''}]),_0x1c2a56),[]),_0x1cb11c);return _0x3d0044;}['_fixMediaEmbeds'](_0x2245b3,_0x1aab8c){if(!_0x1aab8c['plugins']['has']('MediaEmbedEditing'))return _0x2245b3;const _0x2ede11=_0x1aab8c['plugins']['get']('MediaEmbedEditing');for(const [_0x1ae92f,_0x20dfef]of Object['entries'](_0x2245b3)){const _0xbb83e7=document['createElement']('div');_0xbb83e7['innerHTML']=_0x20dfef,(_0xbb83e7['querySelectorAll']('figure.media')['forEach'](_0x327f4c=>{const _0x5c448d=_0x327f4c['querySelector']('oembed');if(_0x5c448d){const _0x11cc8f=_0x5c448d['getAttribute']('url');if(_0x11cc8f){const _0x17f086=_0x2ede11['registry']['getMediaViewElement'](new _0x2bfc92(_0x1aab8c['editing']['view']['document']),_0x11cc8f,{'elementName':'','renderForEditingView':!0x0}),_0x27a071=document['createElement']('div');_0x27a071['classList']['add']('ck-media__wrapper'),_0x17f086['render'](_0x27a071,_0x1aab8c['editing']['view']['domConverter']),_0x5c448d['replaceWith'](_0x27a071);}}}),_0x2245b3[_0x1ae92f]=_0xbb83e7['innerHTML']);}return _0x2245b3;}['_sortRoots'](_0xeaa8b5){if(!function(_0x367649){return void 0x0!==_0x367649['getRootsAttributes'];}(_0xeaa8b5))return _0xeaa8b5['model']['document']['getRootNames']();const _0x32b29f=[],_0x38b10b=new Map();for(const _0x468d86 of _0xeaa8b5['model']['document']['getRootNames']()){const _0x24c39e=_0xeaa8b5['editing']['view']['getDomRoot'](_0x468d86)['getClientRects']()['item'](0x0);_0x32b29f['push'](_0x468d86),_0x38b10b['set'](_0x468d86,_0x24c39e);}return _0x32b29f['sort']((_0x1a1369,_0x21195b)=>{const _0x6be683=_0x38b10b['get'](_0x1a1369),_0x59c56c=_0x38b10b['get'](_0x21195b);return _0x6be683['y']-_0x59c56c['y']||_0x6be683['x']-_0x59c56c['x'];}),_0x32b29f;}}class te extends _0x2bd390{static get['requires'](){return[T,_0x1f395f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7501){super(_0x7501),_0x7501['commands']['add']('previewFinalContent',new re(this['editor'])),_0x7501['config']['define']('trackChanges.preview.renderFunction',(_0x33a42a,_0x542372)=>{for(const _0x1e1f52 of _0x542372)_0x33a42a['appendChild'](_0x1e1f52);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x33780e,Plugin as _0x104d33,PendingActions as _0x4e2c61}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2ff27c,ObservableMixin as _0x32db8d,uid as _0x5a1697,priorities as _0x185083,insertToPriorityArray as _0x5c974e,logWarning as _0x4f88d6,getEnvKeystrokeText as _0x58d004,FocusTracker as _0x48917c,KeystrokeHandler as _0x455a98,Collection as _0xd666d2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1b653b,IconCancel as _0x2fcadb,IconTrackChanges as _0x20f8aa}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as Zt,View as _0x3fadb1,ViewCollection as _0x5a3c9d,FocusCycler as _0x2bda9c,ViewModel as _0x25171f,createDropdown as _0x4076e8,SplitButtonView as _0x5a3d17,addListToDropdown as _0x2028ea,MenuBarMenuView as _0x23b047,MenuBarMenuListView as _0x28c472,ListSeparatorView as _0x49a779,MenuBarMenuListItemView as _0x2e29b1,MenuBarMenuListItemButtonView as _0x394f0b,BodyCollection as _0x3b70f9,Dialog as _0x4b542f}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1615a7,hashObject as _0x4f76cd,surroundingMarkersDetector as _0x5df461,FOCUS_ANNOTATION_KEYSTROKE as _0xe1b8ad,AriaDescriptionView as _0x2fbc95,setupThreadKeyboardNavigation as _0x334806,trimHtml as ti,UserView as _0xee1198,LateFocusButtonView as _0xba3192,getDateTimeFormatter as _0x3a19b8,getAllMarkersDomElementsSorted as _0x1c092e,sanitizeEditorConfig as _0x1a7297}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x55fbd1,LiveRange as _0x27b625,LivePosition as _0x2f306f,DowncastWriter as _0x52b430}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2bf806,toWidget as _0x43a896}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x555c32,set as _0x222abb,isEqual as _0x4d0e84,unset as _0x518d46,omit as Et}from'es-toolkit/compat';import{Delete as _0x44daea,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3f791,ShiftEnter as _0x84f1d4}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x33780e{['_enabledCommands'];constructor(_0x64ecb4,_0x510523){super(_0x64ecb4),this['_enabledCommands']=_0x510523,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 _0x54bfc8 of this['editor']['commands']['commands']())_0x54bfc8['affectsData']&&!this['_enabledCommands']['has'](_0x54bfc8)&&_0x54bfc8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x59a607 of this['editor']['commands']['commands']())_0x59a607['affectsData']&&!this['_enabledCommands']['has'](_0x59a607)&&_0x59a607['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x33780e{['_suggestions'];constructor(_0x3b510a,_0x2298e0){super(_0x3b510a),this['_suggestions']=_0x2298e0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x191995){const _0x4014e4=this['_suggestions']['get'](_0x191995);if(!_0x4014e4)throw new _0x2ff27c('track-changes-accept-suggestion-not-found',this);const _0x53ab11=_0x4014e4['getRanges']();this['editor']['model']['canEditAt'](_0x53ab11)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4014e4);}}class R extends _0x33780e{['_suggestions'];constructor(_0x37001b,_0x38f4a3){super(_0x37001b),this['_suggestions']=_0x38f4a3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x37bfe9){const _0x4c4646=this['_suggestions']['get'](_0x37bfe9);if(!_0x4c4646)throw new _0x2ff27c('track-changes-discard-suggestion-not-found',this);const _0x2a6531=_0x4c4646['getRanges']();this['editor']['model']['canEditAt'](_0x2a6531)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4c4646);}}function ls(_0x191569,_0x8f902f){let _0x153145='';return _0x153145+=_0x191569['split']('*')['map']((_0xe816e8,_0x4eccd6)=>_0x4eccd6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xe816e8)+'</span>':nn(_0xe816e8))['join'](''),_0x8f902f&&(_0x153145+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x8f902f['value']+'\x22\x20title=\x22'+_0x8f902f['title']+'\x22></span>'),_0x153145;}function nn(_0x2f5e18){const _0x13d0af=document['createElement']('span');return _0x13d0af['innerText']=_0x2f5e18,_0x13d0af['innerHTML'];}function ts(_0x303e30){return _0x303e30['sort']((_0x154c01,_0x3c22ee)=>'deletion'==_0x154c01['type']&&'deletion'!=_0x3c22ee['type']?-0x1:'deletion'!=_0x154c01['type']&&'deletion'==_0x3c22ee['type']?0x1:0x0);}function Xt(_0x3ac419,_0x168870){let _0x1ae903,_0x554590=0x0;const _0x497943=[],_0x426603=_0x168870['schema'];for(;_0x554590<_0x3ac419['length'];){const _0x3f8dc4=_0x3ac419[_0x554590],_0x33bbba=_0x3ac419[_0x554590+0x1];_0x1ae903||(_0x1ae903=_0x168870['createPositionBefore'](_0x3f8dc4)),on(_0x168870,_0x3f8dc4,_0x33bbba)||(_0x497943['push'](_0x168870['createRange'](_0x1ae903,_0x426603['isObject'](_0x3f8dc4)?_0x168870['createPositionAfter'](_0x3f8dc4):_0x168870['createPositionAt'](_0x3f8dc4,'end'))),_0x1ae903=null),_0x554590++;}return _0x497943;}function on(_0x43202a,_0x18d46c,_0x30efa9){if(!_0x30efa9)return!0x1;const _0x13135c=_0x43202a['createPositionAfter'](_0x18d46c),_0x15bdbe=_0x43202a['createPositionBefore'](_0x30efa9);return _0x13135c['isTouching'](_0x15bdbe);}function rs(_0x3f3480,_0x26eb8b,_0x392668){for(;_0x392668['length'];){const _0x40a524=_0x392668['splice'](0x0,0x64);_0x3f3480['change'](()=>{for(const _0x16c40d of _0x40a524)_0x16c40d['isInContent']&&_0x26eb8b['execute'](_0x16c40d['id']);});}}class x extends _0x33780e{['_command'];['_suggestions'];constructor(_0x31da14,_0x4bf5ee,_0x2b7320){super(_0x31da14),this['_command']=_0x4bf5ee,this['_suggestions']=_0x2b7320,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5cb55f=Array['from'](this['_suggestions']['values']())['some'](_0x32b7dd=>_0x32b7dd['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5cb55f;}['execute'](){const _0x4b117f=ts(Array['from'](this['_suggestions']['values']()));for(const _0x596fdd of _0x4b117f){const _0x35b8eb=_0x596fdd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x35b8eb))return;}rs(this['editor']['model'],this['_command'],_0x4b117f);}}class E extends _0x33780e{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5cb7ab,_0x5ae84c,_0x65de29){super(_0x5cb7ab),this['_command']=_0x5ae84c,this['_suggestions']=_0x65de29,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x198cfb=this['editor']['model']['document']['selection'],_0x11892f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x72ec94,_0x35b0bc){const _0x4cb3d6=Array['from'](_0x72ec94['getRanges']()),_0x7539e5=new Set();for(const _0x9f0110 of _0x35b0bc)if(_0x9f0110['isInContent']){for(const _0x3c995c of _0x4cb3d6)for(const _0x1c2655 of _0x9f0110['getRanges']())(_0x3c995c['isIntersecting'](_0x1c2655)||_0x72ec94['isCollapsed']&&!_0x9f0110['isMultiRange']&&_0x9f0110['next']&&_0x1c2655['end']['isTouching'](_0x3c995c['start']))&&_0x7539e5['add'](_0x9f0110);}return _0x7539e5;}(_0x198cfb,_0x11892f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x272c4d=ts(Array['from'](this['_selectedSuggestions']));for(const _0x314fc9 of _0x272c4d){const _0x5800db=_0x314fc9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5800db))return;}rs(this['editor']['model'],this['_command'],_0x272c4d);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x32db8d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x33cc6a,_0x405066){super(),this['id']=_0x405066['id'],this['type']=_0x405066['type'],this['subType']=_0x405066['subType']||null,this['author']=_0x405066['author'],this['creator']=_0x405066['creator']||_0x405066['author'],this['isExternal']=Boolean(_0x405066['attributes']&&_0x405066['attributes']['@external']),this['data']=null,this['_model']=_0x33cc6a,this['_onAccept']=_0x405066['onAccept'],this['_onDiscard']=_0x405066['onDiscard'],this['_onAttributesChange']=_0x405066['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x405066['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 _0x2d02dd=this;for(;_0x2d02dd['previous'];)_0x2d02dd=_0x2d02dd['previous'];return _0x2d02dd;}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'](_0x2e3d62){this['_markerNames']['add'](_0x2e3d62);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2d3b1b=>this['_model']['markers']['get'](_0x2d3b1b))['filter'](_0x26bfc1=>_0x26bfc1);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x94df29=>{for(const _0x2927f5 of this['getMarkers']())_0x94df29['removeMarker'](_0x2927f5);}),this['_markerNames']['clear']();}['removeMarker'](_0x492579){this['_model']['change'](_0x3276e1=>{_0x3276e1['removeMarker'](_0x492579);}),this['_markerNames']['delete'](_0x492579);}['addRange'](_0x45fb1f){const _0x15406f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x15406f),this['_model']['change'](_0x27c750=>{_0x27c750['addMarker'](_0x15406f,{'range':_0x45fb1f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1a13df){for(const _0xe39daf of this['getRanges']())if(_0xe39daf['isIntersecting'](_0x1a13df))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4eaa1d=>_0x4eaa1d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x50c723,_0x293d05)=>[..._0x50c723,..._0x293d05['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x307d74=this['getRanges']();if(0x1!=_0x307d74['length'])return null;const _0x4ccb2c=_0x307d74[0x0],_0x2b82c9=_0x4ccb2c['start']['nodeAfter'],_0x14b42a=_0x4ccb2c['end']['nodeBefore'];return _0x2b82c9 instanceof _0x55fbd1?_0x2b82c9!=_0x14b42a?null:_0x2b82c9: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 _0x437efa=[];let _0x3b44c1=this['head'];for(;_0x3b44c1;)_0x437efa['push'](_0x3b44c1),_0x3b44c1=_0x3b44c1['next'];return _0x437efa;}['setAttribute'](_0x1b4118,_0x538d1c){const _0x4d36a7=_0x555c32(this['attributes']);_0x222abb(_0x4d36a7,_0x1b4118,_0x538d1c),_0x4d0e84(_0x4d36a7,this['attributes'])||(this['attributes']=_0x4d36a7,this['_onAttributesChange'](_0x4d36a7));}['removeAttribute'](_0x4977d6){const _0x1356c4=_0x555c32(this['attributes']);_0x518d46(_0x1356c4,_0x4977d6),_0x4d0e84(_0x1356c4,this['attributes'])||(this['attributes']=_0x1356c4,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 _0x5a1697()['substr'](0x1,0x5);}}function c(_0x556473,_0x43c5a1,_0x224a4c){const _0x3b2541=_0x556473['t'],t=_0x556473['t'];switch(_0x43c5a1){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',_0x224a4c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x224a4c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x224a4c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x224a4c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x224a4c);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',_0x224a4c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x224a4c);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',_0x224a4c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x224a4c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x224a4c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x224a4c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x224a4c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x224a4c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x224a4c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x224a4c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x224a4c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x224a4c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x224a4c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x224a4c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x224a4c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x224a4c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x224a4c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x224a4c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x224a4c);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'},_0x224a4c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x224a4c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x224a4c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x224a4c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x224a4c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x224a4c);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'},_0x224a4c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x224a4c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x224a4c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x224a4c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x224a4c);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'},_0x224a4c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x224a4c);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'},_0x224a4c);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x224a4c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x224a4c);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'},_0x224a4c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x224a4c);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'},_0x224a4c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x224a4c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x224a4c);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'},_0x224a4c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x224a4c);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 _0x3b2541({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x224a4c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3b2541({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x224a4c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x224a4c);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'},_0x224a4c);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'},_0x224a4c);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'},_0x224a4c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x43c5a1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x14e808,_0x1e8362){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x14e808,this['_locale']=_0x1e8362;}['getDescriptions'](_0xeea9b0){const _0x14639a=[],_0x2a3d45=new Set(),_0x515cd4=new Set();for(let _0x821ef0=0x0;_0x821ef0<_0xeea9b0['length'];_0x821ef0++){const _0x59ddce=_0xeea9b0[_0x821ef0];if(!_0x59ddce['isInContent'])continue;const _0x1dd2ad=this['_handleCustomCallbackDescription'](_0x59ddce);if(_0x1dd2ad){if(null!=_0x59ddce['subType']){if(_0x2a3d45['has'](_0x59ddce['subType']))continue;_0x2a3d45['add'](_0x59ddce['subType']);}_0x14639a['push'](_0x1dd2ad);}else{if('attribute'!=_0x59ddce['type'])'insertion'!=_0x59ddce['type']&&'deletion'!=_0x59ddce['type']||this['_handleInsertRemoveSuggestionDescription'](_0x14639a,_0x59ddce,_0xeea9b0[_0x821ef0+0x1]);else{const _0x2d12fc=_0x59ddce['data']['key'];if(_0x515cd4['has'](_0x2d12fc))continue;_0x515cd4['add'](_0x59ddce['data']['key']),_0x2d12fc==u?this['_handleRenameSuggestionDescription'](_0x14639a,_0x59ddce):this['_handleAttributeSuggestionDescription'](_0x14639a,_0x59ddce);}}}return this['_resolveDescriptionItems'](_0x14639a);}['registerDescriptionCallback'](_0x4b834b){this['_customCallbacks']['push'](_0x4b834b);}['registerElementLabel'](_0x52a974,_0x201991,_0x23a15f=_0x185083['normal']){'function'==typeof _0x52a974?_0x5c974e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x52a974,'label':_0x201991,'priority':_0x23a15f}):this['_itemLabels']['set'](_0x52a974,_0x201991);}['registerAttributeLabel'](_0x37d802,_0x1024c2){this['_attributeLabels']['set'](_0x37d802,_0x1024c2);}['getItemLabel'](_0x223ff8,_0x37cffc=0x1){let _0x1a8fdf;for(const _0x2e2849 of this['_itemLabelsCallbacks'])if(_0x2e2849['matchingCallback'](_0x223ff8)){_0x1a8fdf=_0x2e2849['label'];break;}return _0x1a8fdf||(_0x1a8fdf=this['_itemLabels']['get'](_0x223ff8['name'])),_0x1a8fdf?_0x1a8fdf(_0x37cffc):0x1!==_0x37cffc?_0x37cffc+'\x20'+_0x223ff8['name']+'s':''+_0x223ff8['name'];}['_addDescriptionItems'](_0x4be7a0,_0x10dfbc){const _0x6956a9=_0x10dfbc['getFirstRange']()['getWalker'](),_0x5c2c7d='insertion'==_0x10dfbc['type']?'add':'remove';for(const _0x978ade of _0x6956a9){const _0x235389=_0x978ade['item'],_0x1720c9=_0x4be7a0[_0x4be7a0['length']-0x1];if(_0x235389['is']('$textProxy'))_0x1720c9&&_0x1720c9['type']['indexOf']('Container')>-0x1&&_0x4be7a0['pop'](),_0x1720c9&&'text'==_0x1720c9['type']?_0x1720c9[_0x5c2c7d]+=_0x235389['data']:_0x4be7a0['push']({'type':'text','add':'add'==_0x5c2c7d?_0x235389['data']:'','remove':'remove'==_0x5c2c7d?_0x235389['data']:''});else{if(this['_schema']['isObject'](_0x235389)){const _0x4d68a1=_0x235389;if(_0x1720c9&&_0x1720c9['type']['indexOf']('Container')>-0x1&&_0x4be7a0['pop'](),'elementEnd'==_0x978ade['type'])continue;_0x1720c9&&_0x1720c9['type']==_0x5c2c7d+'Object'&&_0x1720c9['element']['name']==_0x4d68a1['name']?_0x1720c9['quantity']++:_0x4be7a0['push']({'type':_0x5c2c7d+'Object','element':_0x4d68a1,'quantity':0x1}),_0x6956a9['skip'](_0x5481fe=>!('elementEnd'==_0x5481fe['type']&&_0x5481fe['item']==_0x235389));}else{if(this['_schema']['checkChild'](_0x235389,'$text')||_0x235389['is']('element','softBreak')){const _0x3aa7f8=_0x235389;if('add'==_0x5c2c7d&&'elementStart'==_0x978ade['type']||'remove'==_0x5c2c7d&&'elementEnd'==_0x978ade['type'])continue;if(_0x1720c9&&-0x1==_0x1720c9['type']['indexOf']('Container')){'text'==_0x1720c9['type']&&(_0x1720c9[_0x5c2c7d]+='\x0a');continue;}let _0x926ff4;if(_0x926ff4='add'==_0x5c2c7d?_0x3aa7f8['nextSibling']&&!this['_schema']['isObject'](_0x3aa7f8['nextSibling'])?_0x3aa7f8['nextSibling']:null:_0x3aa7f8['previousSibling']&&!this['_schema']['isObject'](_0x3aa7f8['previousSibling'])?_0x3aa7f8['previousSibling']:null,_0x3aa7f8['isEmpty']||_0x926ff4&&_0x926ff4['isEmpty']){const _0x5a0542=_0x926ff4&&_0x926ff4['isEmpty']?_0x926ff4:_0x3aa7f8;_0x1720c9&&_0x1720c9['type']==_0x5c2c7d+'EmptyContainer'&&_0x1720c9['element']['name']==_0x5a0542['name']?_0x1720c9['quantity']++:_0x4be7a0['push']({'type':_0x5c2c7d+'EmptyContainer','element':_0x5a0542,'quantity':0x1});}else _0x4be7a0['push']({'type':_0x5c2c7d+'Container','element':_0x3aa7f8});}}}}}['_resolveDescriptionItems'](_0x528b9d){const _0xaf62ee=this['_locale'],_0x379ca7=[],_0x124581=[],_0x4f544c=[];for(const _0xb1c072 of _0x528b9d)switch(_0xb1c072['type']){case'text':if(_0xb1c072['add']=_0xb1c072['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xb1c072['remove']=_0xb1c072['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xb1c072['add']&&''!=_0xb1c072['remove']){_0x379ca7['push']({'type':'replace','content':c(_0xaf62ee,'REPLACE_TEXT',['\x22'+_0xb1c072['remove']+'\x22','\x22'+_0xb1c072['add']+'\x22'])});continue;}if(null!=_0xb1c072['add']['match'](/^ +$/)){_0x379ca7['push']({'type':'insertion','content':c(_0xaf62ee,'*Insert:*\x20%0',c(_0xaf62ee,'ELEMENT_SPACE',_0xb1c072['add']['length']))});continue;}if(null!=_0xb1c072['remove']['match'](/^ +$/)){_0x379ca7['push']({'type':'deletion','content':c(_0xaf62ee,'*Remove:*\x20%0',c(_0xaf62ee,'ELEMENT_SPACE',_0xb1c072['remove']['length']))});continue;}if(''!=_0xb1c072['add']){_0x379ca7['push']({'type':'insertion','content':c(_0xaf62ee,'*Insert:*\x20%0','\x22'+_0xb1c072['add']+'\x22')});continue;}_0x379ca7['push']({'type':'deletion','content':c(_0xaf62ee,'*Remove:*\x20%0','\x22'+_0xb1c072['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x379ca7['push']({'type':'insertion','content':c(_0xaf62ee,'*Insert:*\x20%0',this['getItemLabel'](_0xb1c072['element'],_0xb1c072['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x379ca7['push']({'type':'deletion','content':c(_0xaf62ee,'*Remove:*\x20%0',this['getItemLabel'](_0xb1c072['element'],_0xb1c072['quantity']))});continue;case'addContainer':_0x379ca7['push']({'type':'insertion','content':c(_0xaf62ee,'*Split:*\x20%0',this['getItemLabel'](_0xb1c072['element'],_0xb1c072['quantity']))});continue;case'removeContainer':_0x379ca7['push']({'type':'deletion','content':c(_0xaf62ee,'*Merge:*\x20%0',this['getItemLabel'](_0xb1c072['element'],_0xb1c072['quantity']))});continue;case'addFormat':_0x124581['push'](_0xb1c072['key']);continue;case'removeFormat':_0x4f544c['push'](_0xb1c072['key']);continue;default:_0x379ca7['push'](_0xb1c072);}if(_0x124581['length']){const _0x636f6e=_0x124581['map'](_0xef450b=>this['_attributeLabels']['has'](_0xef450b)?this['_attributeLabels']['get'](_0xef450b):_0xef450b)['join'](',\x20');_0x379ca7['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x636f6e)});}if(_0x4f544c['length']){const _0xe16b2f=_0x4f544c['map'](_0x2a4979=>this['_attributeLabels']['has'](_0x2a4979)?this['_attributeLabels']['get'](_0x2a4979):_0x2a4979)['join'](',\x20');_0x379ca7['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0xe16b2f)});}return _0x379ca7;}['_handleCustomCallbackDescription'](_0x35b19b){for(const _0x369175 of this['_customCallbacks']){const _0x3bb99a=_0x369175(_0x35b19b);if(_0x3bb99a&&'type'in _0x3bb99a)return _0x3bb99a;}}['_handleAttributeSuggestionDescription'](_0x3a79d7,_0x53df99){const _0x24bd90=_0x53df99['data'],_0x5ebc60=void 0x0===_0x24bd90['newValue']?'removeFormat':'addFormat';_0x3a79d7['push']({'type':_0x5ebc60,'key':_0x24bd90['key']});}['_handleRenameSuggestionDescription'](_0x8005da,_0x342abd){_0x8005da['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x342abd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x31ec5a,_0x17d67e,_0x10ec78){if(this['_addDescriptionItems'](_0x31ec5a,_0x17d67e),_0x10ec78&&_0x10ec78['getFirstRange']()&&!_0x17d67e['getFirstRange']()['end']['isEqual'](_0x10ec78['getFirstRange']()['start'])){const _0x35c0a2=_0x31ec5a[_0x31ec5a['length']-0x1],_0x39935f='insertion'==_0x17d67e['type']?'add':'remove';_0x35c0a2&&'text'==_0x35c0a2['type']&&(_0x35c0a2[_0x39935f]+='\x0a');}}}class U extends _0x104d33{['afterInit'](){const _0x3d5fcc=this['editor'],_0x1676d8=_0x3d5fcc['plugins']['get']('TrackChangesEditing');_0x3d5fcc['commands']['get']('showAIAssistant')&&_0x1676d8['enableCommand']('showAIAssistant');}}class V extends _0x104d33{['afterInit'](){const _0x185cc4=this['editor'],_0x4dbb17=_0x185cc4['locale'];if(!_0x185cc4['plugins']['has']('AlignmentEditing'))return;const _0x168791=_0x185cc4['plugins']['get']('TrackChangesEditing');_0x168791['enableDefaultAttributesIntegration']('alignment'),_0x168791['registerBlockAttribute']('alignment'),_0x168791['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x4dbb17,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6029f4=this['editor'],_0x46537e=_0x6029f4['locale'];_0x6029f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d75b4=>{if('formatBlock'!=_0x4d75b4['type'])return;const {data:_0x12956c}=_0x4d75b4;if(_0x12956c&&'alignment'==_0x12956c['commandName']){const _0x166a7b=_0x12956c['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x46537e,'*Format:*\x20%0',function(_0x2968e6){switch(_0x2968e6){case'left':return c(_0x46537e,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x46537e,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x46537e,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x46537e,'FORMAT_JUSTIFY_TEXT');}}(_0x166a7b))};}});}}const Qt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x104d33{['afterInit'](){const _0x3ff865=this['editor'],_0x2ce74c=_0x3ff865['plugins']['get']('TrackChangesEditing'),_0x2fcc90=_0x3ff865['locale'];for(const _0x3aea6d of Qt){if(!_0x3ff865['plugins']['has'](_0x3aea6d))continue;const _0x4b06e5=_0x3aea6d['slice'](0x0,-0x7)['toLowerCase'](),_0x35b8be='FORMAT_'+_0x4b06e5['toUpperCase']();_0x2ce74c['enableDefaultAttributesIntegration'](_0x4b06e5),_0x2ce74c['registerInlineAttribute'](_0x4b06e5),_0x2ce74c['descriptionFactory']['registerAttributeLabel'](_0x4b06e5,c(_0x2fcc90,_0x35b8be));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34d68e=this['editor'],_0x3490d7=_0x34d68e['locale'],_0x2b23aa=_0x34d68e['plugins']['get']('TrackChangesEditing');function _0x28eb5c(_0x38a359,_0x1c9401){_0x2b23aa['descriptionFactory']['registerDescriptionCallback'](_0x2c0b91=>{if('formatInline'!=_0x2c0b91['type'])return;const {data:_0x4c6edd}=_0x2c0b91;return _0x4c6edd&&_0x4c6edd['commandName']===_0x38a359?_0x4c6edd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3490d7,'*Format:*\x20%0',_0x1c9401)}:{'type':'format','content':c(_0x3490d7,'*Remove\x20format:*\x20%0',_0x1c9401)}:void 0x0;});}_0x28eb5c('bold',c(_0x3490d7,'FORMAT_BOLD')),_0x28eb5c('italic',c(_0x3490d7,'FORMAT_ITALIC')),_0x28eb5c('underline',c(_0x3490d7,'FORMAT_UNDERLINE')),_0x28eb5c('code',c(_0x3490d7,'FORMAT_CODE')),_0x28eb5c('strikethrough',c(_0x3490d7,'FORMAT_STRIKETHROUGH')),_0x28eb5c('subscript',c(_0x3490d7,'FORMAT_SUBSCRIPT')),_0x28eb5c('superscript',c(_0x3490d7,'FORMAT_SUPERSCRIPT'));}}class G extends _0x104d33{['afterInit'](){const _0x2312e5=this['editor'],_0x506966=_0x2312e5['locale'];if(!_0x2312e5['plugins']['has']('BlockQuoteEditing'))return;const _0x555bff=_0x2312e5['plugins']['get']('TrackChangesEditing'),_0x3d10e0=this['editor']['commands']['get']('blockQuote');_0x555bff['enableCommand']('blockQuote',(_0x5135f0,_0x422c49={})=>{const _0x54884b=this['editor']['model']['document']['selection'],_0x55563b=_0x422c49&&void 0x0!==_0x422c49['forceValue']?_0x422c49['forceValue']:!_0x3d10e0['value'];let _0x318abe=[];if(_0x55563b){const _0x2d1318=Array['from'](_0x54884b['getSelectedBlocks']())['filter'](_0xf8617e=>Yt(_0xf8617e)||function(_0x2efcf5,_0x35602f){const _0x1b0688=_0x35602f['checkChild'](_0x2efcf5['parent'],'blockQuote'),_0x409391=_0x35602f['checkChild'](['$root','blockQuote'],_0x2efcf5);return _0x1b0688&&_0x409391;}(_0xf8617e,this['editor']['model']['schema']));_0x318abe=Xt(_0x2d1318,_0x2312e5['model']);}else{const _0x20d014=Array['from'](_0x54884b['getSelectedBlocks']())['filter'](_0x493f21=>Yt(_0x493f21));_0x318abe=Xt(_0x20d014,_0x2312e5['model']);}_0x2312e5['model']['change'](()=>{for(const _0x5d80be of _0x318abe)_0x555bff['markBlockFormat'](_0x5d80be,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x55563b}]});});}),_0x555bff['descriptionFactory']['registerDescriptionCallback'](_0x582460=>{const {data:_0x4dee67}=_0x582460;if(_0x4dee67&&'blockQuote'==_0x4dee67['commandName']){const _0x42b47b=c(_0x506966,'ELEMENT_BLOCK_QUOTE');return _0x4dee67['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x506966,'*Set\x20format:*\x20%0',_0x42b47b)}:{'type':'format','content':c(_0x506966,'*Remove\x20format:*\x20%0',_0x42b47b)};}});}}function Yt(_0x5b5890){return'blockQuote'==_0x5b5890['parent']['name'];}class L extends _0x104d33{['afterInit'](){const _0x44b7d2=this['editor'],_0x16dc27=_0x44b7d2['locale'],_0x161c8c=_0x44b7d2['plugins']['get']('TrackChangesEditing');_0x44b7d2['plugins']['has']('BookmarkEditing')&&(_0x161c8c['enableCommand']('insertBookmark'),_0x161c8c['enableDefaultAttributesIntegration']('updateBookmark'),_0x161c8c['registerBlockAttribute']('bookmarkId'),_0x161c8c['descriptionFactory']['registerDescriptionCallback'](_0x223389=>{if('insertion'!=_0x223389['type']&&'deletion'!=_0x223389['type']&&'attribute'!=_0x223389['type'])return;const _0x40271a=_0x223389['getContainedElement']();if(null==_0x40271a)return;if(!_0x40271a['is']('element','bookmark'))return;const _0x3127a2=_0x40271a['getAttribute']('bookmarkId');if('insertion'==_0x223389['type'])return{'type':'insertion','content':c(_0x16dc27,'*Insert:*\x20%0','\x22'+_0x3127a2+'\x22\x20'+c(_0x16dc27,'ELEMENT_BOOKMARK'))};if('deletion'==_0x223389['type'])return{'type':'deletion','content':c(_0x16dc27,'*Remove:*\x20%0','\x22'+_0x3127a2+'\x22\x20'+c(_0x16dc27,'ELEMENT_BOOKMARK'))};const {data:_0x17ca92}=_0x223389;if(!_0x17ca92||'bookmarkId'!=_0x17ca92['key'])return;return{'type':'format','content':c(_0x16dc27,'*Set\x20bookmark:*\x20%0','\x22'+_0x17ca92['newValue']+'\x22')};}));}}class J extends _0x104d33{['afterInit'](){const _0x3d2707=this['editor'];_0x3d2707['plugins']['has']('CaseChange')&&(_0x3d2707['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3d2707['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3d2707['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x104d33{['afterInit'](){const _0x2490d4=this['editor'];_0x2490d4['commands']['get']('ckbox')&&_0x2490d4['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x104d33{['afterInit'](){const _0x1c2b5f=this['editor'];if(!_0x1c2b5f['plugins']['has']('CodeBlock'))return;const _0xfa9d97=_0x1c2b5f['plugins']['get']('TrackChangesEditing'),_0x32cf6c=_0x1c2b5f['locale'],_0x32855e=_0x1c2b5f['config']['get']('codeBlock')['languages'],_0x5daade=_0x1c2b5f['commands']['get']('codeBlock');_0xfa9d97['enableCommand']('indentCodeBlock'),_0xfa9d97['enableCommand']('outdentCodeBlock'),_0xfa9d97['enableCommand']('codeBlock',(_0x5919e6,_0x323672={})=>{const _0x38b078=_0x1c2b5f['model'],_0x5b6f05=_0x1c2b5f['model']['document']['selection'],_0x1d599b=_0x323672&&void 0x0!==_0x323672['forceValue']?_0x323672['forceValue']:!_0x5daade['value'];let _0x1d1a4f;_0x323672['language']||(_0x323672['language']=_0x32855e[0x0]['language']),_0x1d1a4f=_0x1d599b?Array['from'](_0x5b6f05['getSelectedBlocks']())['filter'](_0xbfdf23=>oo(_0xbfdf23)||function(_0x13ac27,_0x765c98){if(_0x13ac27['is']('rootElement')||_0x765c98['isLimit'](_0x13ac27))return!0x1;return _0x765c98['checkChild'](_0x13ac27['parent'],'codeBlock');}(_0xbfdf23,_0x38b078['schema'])):Array['from'](_0x5b6f05['getSelectedBlocks']())['filter'](_0xe3359f=>oo(_0xe3359f));const _0x56c34b=Xt(_0x1d1a4f,_0x38b078);_0x38b078['change'](()=>{for(const _0x1397a1 of _0x56c34b)_0xfa9d97['markBlockFormat'](_0x1397a1,{'commandName':'codeBlock','commandParams':[{..._0x323672,'forceValue':_0x1d599b}],'formatGroupId':'blockName'});});}),(_0xfa9d97['descriptionFactory']['registerElementLabel']('codeBlock',_0x11a02c=>c(_0x32cf6c,'ELEMENT_CODE_BLOCK',_0x11a02c)),_0xfa9d97['descriptionFactory']['registerDescriptionCallback'](_0x4e9727=>{if('formatBlock'!=_0x4e9727['type'])return;const _0x16e02f=_0x32cf6c['t'],{data:_0x2c993c}=_0x4e9727;if(!_0x2c993c||'codeBlock'!=_0x2c993c['commandName'])return;const _0x51640=_0x2c993c['commandParams'][0x0]['language'],_0x420306=_0x16e02f(_0x32855e['find'](_0x321537=>_0x321537['language']===_0x51640)['label'])['toLowerCase']();return _0x2c993c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x32cf6c,'*Set\x20format:*\x20%0',c(_0x32cf6c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x420306+')')}:{'type':'format','content':c(_0x32cf6c,'*Remove\x20format:*\x20%0',c(_0x32cf6c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x44d3df){return'codeBlock'==_0x44d3df['name'];}class q extends _0x104d33{['afterInit'](){const _0x2575ec=this['editor'];if(!_0x2575ec['plugins']['has']('CommentsEditing'))return;_0x2575ec['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function no(_0x3da120,_0xa10f7f,_0x3f0cba){const _0x4b72c0=[];for(const _0x35edc5 of _0xa10f7f['getItems']())_0x35edc5['hasAttribute'](_0x3da120)&&_0x4b72c0['push'](_0x3f0cba['createRangeOn'](_0x35edc5));return _0x4b72c0;}function De(_0x21cdb2,_0x2f0d41,{showActiveMarker:_0xd82a8a=!0x0}={}){const _0x296417=_0x21cdb2['plugins']['get']('TrackChangesEditing');return(_0x3a4ccd,_0x1c4043,_0x24e8b2)=>{if(!_0x24e8b2['consumable']['test'](_0x1c4043['markerRange'],_0x3a4ccd['name']))return;const _0x4080ce=_0x1c4043['markerRange']['getWalker'](),_0x59b02a=_0x1c4043['markerRange']['start'],_0x246585=_0x21cdb2['model']['schema'];let _0x33c949=null,_0x5dfb36=null,_0x3ba868=!0x1,_0x443718=!0x1;for(const _0x25e9c3 of _0x4080ce){const _0x59ff1a=_0x25e9c3['item'];_0x3ba868=_0x3ba868||_0x246585['isContent'](_0x59ff1a);const _0x4d8966=_0x24e8b2['mapper']['toViewElement'](_0x59ff1a);if(_0x4d8966&&_0x4d8966['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x25e9c3['type']&&(_0x246585['isBlock'](_0x59ff1a)&&!_0x246585['isLimit'](_0x59ff1a)&&(_0x59ff1a['nextSibling']||_0x59b02a['isAtEnd']?_0x33c949&&_0x33c949['parent']==_0x59ff1a||(_0x33c949=_0x59ff1a,_0x5c83dc(_0x25e9c3['previousPosition']),_0x443718=!0x0):_0x5dfb36=_0x5dfb36||_0x25e9c3['previousPosition']));}function _0x5c83dc(_0x4a27d3){const {authorId:_0x3ecff0}=_0x296417['_splitMarkerName'](_0x1c4043['markerName']),_0x2cd981=_0x24e8b2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f0d41,'data-author-id':_0x3ecff0}),_0x3490f4=_0x24e8b2['mapper']['toViewPosition'](_0x4a27d3);_0xd82a8a&&_0x296417['activeMarkers']['includes'](_0x1c4043['markerName'])&&_0x24e8b2['writer']['addClass']('ck-suggestion-marker--active',_0x2cd981),_0x24e8b2['writer']['insert'](_0x3490f4,_0x2cd981),_0x24e8b2['mapper']['bindElementToMarker'](_0x2cd981,_0x1c4043['markerName']);}_0x3ba868||_0x443718||!_0x5dfb36||_0x5c83dc(_0x5dfb36);};}class z extends _0x104d33{static get['requires'](){return[_0x44daea];}['init'](){const _0x1dd1b2=this['editor'],_0x495f37=_0x1dd1b2['plugins']['get']('TrackChangesEditing');_0x495f37['enableCommand']('delete');const _0x564007=_0x1dd1b2['commands']['get']('deleteForward');_0x495f37['enableCommand']('deleteForward',(_0x162c18,_0x4ebc34={})=>{const _0x3c6afd=_0x1dd1b2['model']['createSelection'](_0x1dd1b2['model']['document']['selection']);_0x3c6afd['isCollapsed']&&_0x1dd1b2['model']['modifySelection'](_0x3c6afd,{'direction':'forward','unit':_0x4ebc34['unit']});const _0x44ff19=_0x3c6afd['getFirstRange'](),_0x425126=_0x27b625['fromRange'](_0x44ff19);let _0x191b0e;_0x162c18(_0x4ebc34),_0x191b0e='$graveyard'==_0x425126['root']['rootName']?_0x1dd1b2['model']['createRange'](_0x44ff19['start']):_0x1dd1b2['model']['createRange'](_0x425126['start'],_0x425126['end']),_0x425126['detach'](),_0x1dd1b2['model']['enqueueChange'](_0x564007['buffer']['batch'],_0x9c41f7=>{_0x564007['buffer']['lock'](),_0x9c41f7['setSelection'](_0x9c41f7['createRange'](_0x191b0e['end'])),_0x564007['buffer']['unlock']();});}),_0x1dd1b2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1dd1b2,'merge'),{'priority':'high'}),_0x1dd1b2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2d7cd2,_0x446ccf,_0x3959b2)=>{_0x3959b2['options']['showSuggestionHighlights']&&De(_0x1dd1b2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2d7cd2,_0x446ccf,_0x3959b2);},{'priority':'high'}),_0x1dd1b2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4e9a3e,_0x216ac3,_0x296acd)=>{const _0xbe98f4=_0x296acd['mapper']['markerNameToElements'](_0x216ac3['markerName']);if(_0xbe98f4){for(const _0x2cfba9 of _0xbe98f4)_0x2cfba9['is']('uiElement')&&(_0x296acd['mapper']['unbindElementFromMarkerName'](_0x2cfba9,_0x216ac3['markerName']),_0x296acd['writer']['remove'](_0x2cfba9));}},{'priority':'high'});}}class W extends _0x104d33{['afterInit'](){const _0x138a4e=this['editor'];if(!_0x138a4e['plugins']['has']('ListEditing'))return;const _0x3ac6aa=_0x138a4e['locale'],_0x3723df=_0x138a4e['plugins']['get']('TrackChangesEditing'),_0x1cb868=_0x138a4e['plugins']['has']('TodoListEditing'),_0x152df1=!!_0x138a4e['config']['get']('list.multiBlock');function _0x603c0d(_0x129a87){return{'type':'format','content':''+c(_0x3ac6aa,'*Set\x20format:*\x20%0',_0x129a87)};}function _0x3303b8(_0x59d53a){return{'type':'format','content':''+c(_0x3ac6aa,'*Remove\x20format:*\x20%0',_0x59d53a)};}_0x3723df['enableDefaultAttributesIntegration']('numberedList'),_0x3723df['enableDefaultAttributesIntegration']('bulletedList'),_0x3723df['enableDefaultAttributesIntegration']('customNumberedList'),_0x3723df['enableDefaultAttributesIntegration']('customBulletedList'),_0x3723df['enableDefaultAttributesIntegration']('indentList'),_0x3723df['enableDefaultAttributesIntegration']('outdentList'),_0x3723df['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3723df['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3723df['registerBlockAttribute']('listItemId'),_0x3723df['registerBlockAttribute']('listType'),_0x3723df['registerBlockAttribute']('listIndent'),_0x152df1&&(_0x3723df['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3723df['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1cb868&&(_0x3723df['enableDefaultAttributesIntegration']('todoList'),_0x3723df['enableDefaultAttributesIntegration']('checkTodoList'),_0x3723df['registerBlockAttribute']('todoListChecked'),_0x3723df['descriptionFactory']['registerDescriptionCallback'](_0x1f3bcc=>{const {data:_0x369220}=_0x1f3bcc;if(_0x369220&&'todoListChecked'==_0x369220['key'])return{'type':'format','content':_0x369220['newValue']?c(_0x3ac6aa,'*Check\x20item*'):c(_0x3ac6aa,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3e0d45=>{if(_0x3e0d45['batch']['isUndo'])return!0x1;let _0x2f68e3=!0x1;const _0x28e8c1=_0x3723df['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9aa552=>'todoListChecked'===_0x3723df['_getAttributeKey'](_0x9aa552));for(const _0x9c2b53 of _0x28e8c1){'todo'!=_0x9c2b53['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3723df['_findSuggestions'](_0x9c2b53['getFirstRange'](),'attribute')['find'](_0x2e99c6=>'listType'===_0x3723df['_getAttributeKey'](_0x2e99c6['suggestion']))||(_0x3e0d45['removeMarker'](_0x9c2b53['getFirstMarker']()),_0x2f68e3=!0x0));}return _0x2f68e3;})),_0x3723df['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3ac6aa,'FORMAT_INDENT'));const _0x13f420={'type':'format','content':''};_0x3723df['descriptionFactory']['registerDescriptionCallback'](_0x2db326=>{const {data:_0x1a20ae}=_0x2db326;if(!_0x1a20ae||'listType'!=_0x1a20ae['key'])return;let _0x5c0376=_0x2db326['head'];for(;_0x5c0376;){if(_0x5c0376['data']&&(('listStyle'==_0x5c0376['data']['key']||'listMarkerStyle'==_0x5c0376['data']['key'])&&(_0x5c0376['data']['newValue']&&'default'!=_0x5c0376['data']['newValue']||'default'!=_0x5c0376['data']['oldValue']&&!_0x1a20ae['newValue'])||!_0x152df1&&_0x5c0376['data']['key']==u))return _0x13f420;_0x5c0376=_0x5c0376['next'];}if(null==_0x1a20ae['newValue'])switch(_0x1a20ae['oldValue']){case'bulleted':return _0x3303b8(c(_0x3ac6aa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3303b8(c(_0x3ac6aa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3303b8(c(_0x3ac6aa,'ELEMENT_TODO_LIST'));}switch(_0x1a20ae['newValue']){case'bulleted':return _0x603c0d(c(_0x3ac6aa,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x603c0d(c(_0x3ac6aa,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x603c0d(c(_0x3ac6aa,'ELEMENT_TODO_LIST'));}}),_0x3723df['descriptionFactory']['registerDescriptionCallback'](_0x37718f=>{const {data:_0x1c6c99}=_0x37718f;if(_0x1c6c99&&'listIndent'==_0x1c6c99['key'])return null==_0x1c6c99['newValue']||null==_0x1c6c99['oldValue']&&0x0==_0x1c6c99['newValue']?_0x13f420:void 0x0;}),_0x3723df['descriptionFactory']['registerDescriptionCallback'](_0x43e8a5=>{if('attribute'!=_0x43e8a5['type'])return;const {data:_0x35b876}=_0x43e8a5;if(!_0x35b876||'listItemId'!=_0x35b876['key'])return;const _0x3fa04c=Te(_0x43e8a5);return'newValue'==_0x3fa04c?{'type':'format','content':c(_0x3ac6aa,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3fa04c?{'type':'format','content':c(_0x3ac6aa,'*Split:*\x20list\x20item')}:_0x13f420;}),_0x138a4e['model']['document']['registerPostFixer'](_0x5592c3=>this['listItemIdFixer'](_0x5592c3)),_0x138a4e['model']['document']['registerPostFixer'](_0x5c6c0f=>this['noTrackChangesFixer'](_0x5c6c0f)),_0x138a4e['model']['document']['on']('change:data',(_0x1b50cb,_0x335518)=>{if(_0x335518['isUndo']||!_0x335518['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5451d7){if(_0x5451d7['batch']['isUndo']||!_0x5451d7['batch']['isLocal'])return!0x1;let _0x5037b7=!0x1;const _0x1fd152=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x406c94=>_0x406c94['data']&&'listItemId'==_0x406c94['data']['key'])['filter'](_0x120f24=>_0x120f24['data']['newValue']&&_0x120f24['data']['oldValue']);for(const _0x43f3a5 of _0x1fd152)Te(_0x43f3a5)||(_0x5451d7['removeMarker'](_0x43f3a5['getFirstMarker']()),_0x5037b7=!0x0);return _0x5037b7;}['noTrackChangesFixer'](_0x72f876){if(_0x72f876['batch']['isUndo']||!_0x72f876['batch']['isLocal'])return!0x1;const _0x10ebee=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x10ebee['trackChangesCommand']['value'])return!0x1;let _0x20b76d=!0x1;const _0xad666f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2cbe71=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x234f74=>'attribute'==_0x234f74['type'])['filter'](_0x41442d=>_0xad666f['includes'](_0x41442d['attributeKey']));if(0x0==_0x2cbe71['length'])return _0x20b76d;for(const _0x2a593e of _0x2cbe71){const _0x31b256=_0x10ebee['_findSuggestions'](_0x2a593e['range'],'attribute')['filter'](_0x224896=>!_0x224896['meta']['isNextTo'])['map'](_0x77009e=>_0x77009e['suggestion'])['filter'](_0xd8883c=>{const _0x37e913=_0x10ebee['_getAttributeKey'](_0xd8883c);return _0xad666f['includes'](_0x37e913);});if(_0x31b256['length']){for(const _0x1d3a07 of _0x31b256)_0x72f876['removeMarker'](_0x1d3a07['getFirstMarker']());_0x20b76d=!0x0;}}return _0x20b76d;}['assureChains'](){const _0x4f6749=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b328e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x26acdf;const _0xcfc689=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2fc21d=>{if(_0x2fc21d['data']['oldRange']||!_0x2fc21d['data']['newRange'])return null;if(!_0x2fc21d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x25aff7}=_0x4f6749['_splitMarkerName'](_0x2fc21d['name']);if(!_0x4f6749['hasSuggestion'](_0x25aff7))return null;const _0x25eed5=_0x4f6749['getSuggestion'](_0x25aff7);return _0x3b328e['includes'](_0x25eed5['data']['key']);})['map'](_0x3acc53=>{const {id:_0x14761a}=_0x4f6749['_splitMarkerName'](_0x3acc53['name']),_0x20becb=_0x4f6749['getSuggestion'](_0x14761a);return _0x26acdf=_0x20becb['attributes']['groupId'],_0x20becb['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xcfc689['size'])return;const _0x115d85=_0x4f6749['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3184d2=>'attribute'==_0x3184d2['type']&&_0x3184d2['data']&&_0x3b328e['includes'](_0x3184d2['data']['key'])&&_0x3184d2['attributes']['groupId']!=_0x26acdf)['map'](_0x58af39=>({'listItem':_0x58af39['getFirstRange']()['start']['nodeAfter'],'groupId':_0x58af39['attributes']['groupId']})),_0x55db43=new Set();for(const {groupId:_0x47a024,listItem:_0x1985d3}of _0x115d85)_0xcfc689['has'](_0x1985d3)&&_0x55db43['add'](_0x47a024);for(const _0x1db922 of _0x4f6749['getSuggestions']())_0x55db43['has'](_0x1db922['attributes']['groupId'])&&_0x1db922['setAttribute']('groupId',_0x26acdf);}['_supportLegacySuggestions'](){const _0x4136cb=this['editor'],_0x56499a=_0x4136cb['locale'],_0x540ecd=_0x4136cb['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x540ecd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2f8ad0,_0x16d463){const _0x73edb=[];for(let _0x2b0083 of _0x2f8ad0)_0x2b0083['start']['nodeAfter']===_0x2b0083['end']['parent']&&(_0x2b0083=_0x4136cb['model']['createRange'](_0x4136cb['model']['createPositionAt'](_0x2b0083['start']['nodeAfter'],0x0))),_0x73edb['push'](_0x2b0083);_0x4136cb['model']['change'](_0x3d561a=>{const _0xf3da8a=_0x4136cb['model']['document']['selection'],_0x19c7a0=Array['from'](_0xf3da8a['getRanges']())['map'](_0x44a1dc=>_0x27b625['fromRange'](_0x44a1dc));_0x3d561a['setSelection'](_0x73edb),_0x4136cb['commands']['get'](_0x16d463['commandName'])['refresh'](),_0x16d463['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4136cb['execute'](_0x16d463['commandName'],..._0x16d463['commandParams']),_0x3d561a['setSelection'](_0x19c7a0);for(const _0x451091 of _0x19c7a0)_0x451091['detach']();});}),_0x540ecd['descriptionFactory']['registerElementLabel'](function(_0x5acc4e){const _0x533827=!_0x4136cb['model']['schema']['isObject'](_0x5acc4e),_0x3f07f4=_0x5acc4e['previousSibling'],_0x22b04a=_0x5acc4e['nextSibling'],_0x8ab135=_0x5acc4e['getAttribute']('listItemId'),_0x5cb63b=!_0x3f07f4||_0x3f07f4['getAttribute']('listItemId')!==_0x8ab135,_0x1dc1e6=!_0x22b04a||_0x22b04a['getAttribute']('listItemId')!==_0x8ab135;return _0x533827&&Boolean(_0x8ab135)&&_0x5cb63b&&_0x1dc1e6;},_0x540eb3=>c(_0x56499a,'ELEMENT_LIST_ITEM',_0x540eb3));}['_registerLegacyDescription'](){const _0xa31e81=this['editor'],_0x4be9fb=_0xa31e81['locale'];function _0x20813c(_0x1039af){const _0x5f0b79=_0xa31e81['commands']['get']('bulletedList')['value'],_0x274cf6=_0xa31e81['commands']['get']('numberedList')['value'];return'numberedList'===_0x1039af?_0x5f0b79:_0x274cf6;}_0xa31e81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xb6d3e5){if('formatBlock'!=_0xb6d3e5['type'])return;const {data:_0x2e2bdf}=_0xb6d3e5;if(!_0x2e2bdf)return;let _0x5ed453,_0x35cfea,_0x483cb6,_0x5851c2;switch(_0x2e2bdf['commandName']){case'bulletedList':_0x483cb6=_0x2e2bdf['commandParams'][0x0]['forceValue'],_0x5851c2=_0x20813c(_0x2e2bdf['commandName']),_0x5ed453=_0x483cb6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5851c2&&_0xa31e81['config']['get']('list.multiBlock')||(_0x5ed453='*Change\x20to:*\x20%0'),_0x35cfea={'type':'format','content':c(_0x4be9fb,_0x5ed453,c(_0x4be9fb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x483cb6=_0x2e2bdf['commandParams'][0x0]['forceValue'],_0x5851c2=_0x20813c(_0x2e2bdf['commandName']),_0x5ed453=_0x483cb6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5851c2&&_0xa31e81['config']['get']('list.multiBlock')||(_0x5ed453='*Change\x20to:*\x20%0'),_0x35cfea={'type':'format','content':c(_0x4be9fb,_0x5ed453,c(_0x4be9fb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5ed453='*Indent:*\x20%0',_0x35cfea={'type':'format','content':c(_0x4be9fb,_0x5ed453,c(_0x4be9fb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5ed453=function(_0x52b37a){const _0x1d89fc=_0x52b37a['getFirstRange']();let _0x43dc43=_0x1d89fc['start']['nodeAfter'];for(;_0x43dc43&&_0x1d89fc['containsItem'](_0x43dc43);){if(_0x43dc43['getAttribute']('listIndent')>0x0)return!0x1;_0x43dc43=_0x43dc43['nextSibling'];}return!0x0;}(_0xb6d3e5)?c(_0x4be9fb,'*Format:*\x20remove\x20from\x20%0',c(_0x4be9fb,function(_0x50dc59){return'ELEMENT_'+_0x50dc59['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xb6d3e5))):c(_0x4be9fb,'*Outdent:*\x20%0',c(_0x4be9fb,'ELEMENT_LIST_ITEM')),_0x35cfea={'type':'format','content':_0x5ed453};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2e2bdf['multipleBlocks']&&(_0x5ed453='*Merge:*\x20%0',_0x35cfea={'type':'deletion','content':c(_0x4be9fb,_0x5ed453,c(_0x4be9fb,'ELEMENT_LIST_ITEM'))});}return _0x35cfea;});}}function Te(_0x3e4b4c){let _0x3b4b88=_0x3e4b4c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3b4b88;){const _0x42ba2b=_0x3b4b88['getAttribute']('listItemId');if(!_0x42ba2b)return!0x1;if(_0x42ba2b==_0x3e4b4c['data']['newValue'])return'newValue';if(_0x42ba2b==_0x3e4b4c['data']['oldValue'])return'oldValue';_0x3b4b88=_0x3b4b88['previousSibling'];}return!0x1;}class Se extends _0x104d33{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x316052=this['editor']['config']['get']('list.properties'),_0x445a45=this['editor']['plugins']['get']('TrackChangesEditing');_0x316052['styles']&&(_0x445a45['enableDefaultAttributesIntegration']('listStyle'),_0x445a45['registerBlockAttribute']('listStyle')),_0x316052['reversed']&&(_0x445a45['enableDefaultAttributesIntegration']('listReversed'),_0x445a45['registerBlockAttribute']('listReversed')),_0x316052['startIndex']&&(_0x445a45['enableDefaultAttributesIntegration']('listStart'),_0x445a45['registerBlockAttribute']('listStart'));const _0x56ae7a={'type':'format','content':''};_0x445a45['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4c6229=this['editor']['locale'];_0x445a45['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4c6229,'FORMAT_LIST_REVERSED')),_0x445a45['descriptionFactory']['registerDescriptionCallback'](_0x23136b=>{const {data:_0x26eb3f}=_0x23136b;if(_0x26eb3f&&'listReversed'==_0x26eb3f['key'])return null==_0x26eb3f['newValue']||0x0==_0x26eb3f['newValue']&&null==_0x26eb3f['oldValue']?_0x56ae7a:void 0x0;}),_0x445a45['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4c6229,'FORMAT_LIST_START')),_0x445a45['descriptionFactory']['registerDescriptionCallback'](_0xf8b76d=>{const {data:_0x4f9f9f}=_0xf8b76d;if(_0x4f9f9f&&'listStart'==_0x4f9f9f['key'])return null==_0x4f9f9f['newValue']||0x1==_0x4f9f9f['newValue']&&null==_0x4f9f9f['oldValue']?_0x56ae7a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x40e112=>{if(_0x40e112['batch']['isUndo'])return!0x1;let _0x3ec06a=!0x1;const _0x117424=_0x445a45['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51d4e1=>{const _0x378c7f=_0x445a45['_getAttributeKey'](_0x51d4e1);return'listStart'==_0x378c7f||'listReversed'==_0x378c7f;});for(const _0xeb7e1e of _0x117424){const _0x4f3204=_0xeb7e1e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4f3204||'customNumbered'==_0x4f3204)continue;_0x445a45['_findSuggestions'](_0xeb7e1e['getFirstRange'](),'attribute')['find'](_0x1590e1=>'listType'==_0x445a45['_getAttributeKey'](_0x1590e1['suggestion']))||(_0x40e112['removeMarker'](_0xeb7e1e['getFirstMarker']()),_0x3ec06a=!0x0);}return _0x3ec06a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2f4e2e){const _0x39e33d=this['editor']['locale'],{data:_0x456293}=_0x2f4e2e,_0x140556={'type':'format','content':''};if(!_0x456293||'listStyle'!=_0x456293['key'])return;if(!_0x456293['oldValue'])return'default'==_0x456293['newValue']?_0x140556:{'type':'format','content':''+c(_0x39e33d,'*Set\x20format:*\x20%0',c(_0x39e33d,this['_getTranslationKeyForListStyle'](_0x456293['newValue'])))};if(!_0x456293['newValue']){if('default'==_0x456293['oldValue'])return _0x140556;let _0xb8c2ef=_0x2f4e2e['head'];for(;_0xb8c2ef;){if(_0xb8c2ef['data']&&'listType'==_0xb8c2ef['data']['key']&&_0xb8c2ef['data']['newValue'])return _0x140556;_0xb8c2ef=_0xb8c2ef['next'];}return{'type':'format','content':''+c(_0x39e33d,'*Remove\x20format:*\x20%0',c(_0x39e33d,this['_getTranslationKeyForListStyle'](_0x456293['oldValue'])))};}if('default'!=_0x456293['newValue'])return{'type':'format','content':''+c(_0x39e33d,'*Set\x20format:*\x20%0',c(_0x39e33d,this['_getTranslationKeyForListStyle'](_0x456293['newValue'])))};let _0x2c62d2=_0x2f4e2e['head'];for(;_0x2c62d2;){if(_0x2c62d2['data']&&'listType'==_0x2c62d2['data']['key']&&_0x2c62d2['data']['newValue']&&_0x2c62d2['data']['oldValue'])return _0x140556;_0x2c62d2=_0x2c62d2['next'];}return{'type':'format','content':c(_0x39e33d,'*Set\x20format:*\x20%0',c(_0x39e33d,'ELEMENT_'+_0x2f4e2e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x107c5a=this['editor'],_0x3eb390=_0x107c5a['locale'];_0x107c5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x252e1b=>{if('formatBlock'!=_0x252e1b['type'])return;const {data:_0xd48f0c}=_0x252e1b;if(!_0xd48f0c)return;let _0x3ce689,_0x56c36e;switch(_0xd48f0c['commandName']){case'listStyle':_0x3ce689='*Change\x20to:*\x20%0',_0x56c36e={'type':'format','content':c(_0x3eb390,_0x3ce689,c(_0x3eb390,this['_getTranslationKeyForListStyle'](_0xd48f0c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3ce689=_0xd48f0c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56c36e={'type':'format','content':c(_0x3eb390,_0x3ce689)};break;case'listStart':_0x3ce689='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56c36e={'type':'format','content':c(_0x3eb390,_0x3ce689,_0xd48f0c['commandParams'][0x0]['startIndex'])};}return _0x56c36e;});}['_getTranslationKeyForListStyle'](_0x15d6c8){return'ELEMENT_'+function(_0x334d66){if(_e['includes'](_0x334d66))return'bulleted';if(Re['includes'](_0x334d66))return'numbered';return null;}(_0x15d6c8)['toUpperCase']()+'_LIST_'+_0x15d6c8['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x104d33{static get['requires'](){return[_0x3f791];}['init'](){const _0x476a17=this['editor'],_0x2068f9=_0x476a17['plugins']['get']('TrackChangesEditing'),_0x3f7147=_0x476a17['commands']['get']('enter');_0x2068f9['enableCommand']('enter',()=>{_0x476a17['model']['change'](_0x12d2b2=>{const _0x256ebc=_0x476a17['model']['document']['selection'],_0x4eb50b=_0x256ebc['getFirstPosition'](),_0x3da90d=_0x27b625['fromRange'](_0x256ebc['getFirstRange']());if(_0x3f7147['enterBlock'](_0x12d2b2)){const _0x210bf5=_0x476a17['model']['createPositionAt'](_0x4eb50b['parent']['nextSibling'],0x0),_0x5006ed=_0x12d2b2['createRange'](_0x4eb50b,_0x210bf5);_0x2068f9['markInsertion'](_0x5006ed);}else _0x12d2b2['setSelection'](_0x12d2b2['createRange'](_0x3da90d['end']));_0x3da90d['detach'](),_0x3f7147['fire']('afterExecute',{'writer':_0x12d2b2});});}),_0x476a17['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x476a17,'split'),{'priority':'high'}),_0x476a17['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5be850,_0x3dd3c7,_0x5e43ef)=>{const _0x4ef804=_0x5e43ef['mapper']['markerNameToElements'](_0x3dd3c7['markerName']);if(_0x4ef804){for(const _0x169499 of _0x4ef804)_0x169499['hasClass']('ck-suggestion-marker-split')&&(_0x5e43ef['mapper']['unbindElementFromMarkerName'](_0x169499,_0x3dd3c7['markerName']),_0x5e43ef['writer']['remove'](_0x169499));}},{'priority':'high'}),_0x476a17['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2767c4,_0x3191e1,_0x1881a7)=>{_0x1881a7['options']['showSuggestionHighlights']&&De(_0x476a17,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2767c4,_0x3191e1,_0x1881a7);},{'priority':'high'});}}class Y extends _0x104d33{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1b69b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b69b5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1b69b5['enableCommand']('findNext'),_0x1b69b5['enableCommand']('findPrevious'),_0x1b69b5['enableCommand']('replace'),_0x1b69b5['enableCommand']('replaceAll');}['handleFindCommand'](_0x4512f0,_0x3b5711,_0xcc00d3={}){const _0x2d6d79=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4512f0(_0x47935f=>{let _0x165fc4=('string'==typeof _0x3b5711?_0x2d6d79['findByTextCallback'](_0x3b5711,_0xcc00d3):_0x3b5711)(_0x47935f);Array['isArray'](_0x165fc4)&&(_0x165fc4={'results':_0x165fc4,'searchText':'string'==typeof _0x3b5711?_0x3b5711:''});const _0x39ed46=_0x165fc4['results']['filter'](_0x46417e=>!0x1===this['_isInDeletionRange'](_0x46417e,_0x47935f['item']));return{..._0x165fc4,'results':_0x39ed46};},_0xcc00d3);}['_isInDeletionRange'](_0x248680,_0x448448){const _0x4c9c0a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x448448,_0x248680['start']),this['editor']['model']['createPositionAt'](_0x448448,_0x248680['end']));for(const _0x1119ee of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4c9c0a['getIntersection'](_0x1119ee['getRange']()))return!0x0;return!0x1;}}const to=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x104d33{['afterInit'](){const _0x465334=this['editor']['locale'],_0x3c05a5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2978ca,commandName:_0x2aaaa7}of to)this['editor']['plugins']['has'](_0x2978ca)&&(_0x3c05a5['enableDefaultAttributesIntegration'](_0x2aaaa7),_0x3c05a5['registerInlineAttribute'](_0x2aaaa7));_0x3c05a5['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x465334,'FORMAT_FONT_SIZE')),_0x3c05a5['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x465334,'FORMAT_FONT_FAMILY')),_0x3c05a5['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x465334,'FORMAT_FONT_COLOR')),_0x3c05a5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x465334,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d625d=this['editor'],_0xbf93d=_0x4d625d['locale'];_0x4d625d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16d85d=>{const _0x1616d0=_0xbf93d['t'];if('formatInline'!=_0x16d85d['type'])return;const {data:_0x914977}=_0x16d85d;if(null!=_0x914977){if('fontSize'==_0x914977['commandName']){const _0xdcd180=_0x914977['commandParams'][0x0]['value'];if(_0xdcd180){const _0xaa081=_0x1616d0(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x221a75=>_0x221a75['model']==_0xdcd180)['title'])['toLowerCase']();return{'type':'format','content':c(_0xbf93d,'*Set\x20font\x20size:*\x20%0',_0xaa081)};}return{'type':'format','content':c(_0xbf93d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x914977['commandName']){const _0x4024ee=_0x914977['commandParams'][0x0]['value'];return _0x4024ee?{'type':'format','content':c(_0xbf93d,'*Set\x20font\x20family:*\x20%0',_0x4024ee)}:{'type':'format','content':c(_0xbf93d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x914977['commandName']){const _0x134bf3=_0x914977['commandParams'][0x0]['value'];if(_0x134bf3){const _0x4d1412=Zt(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2240b7=>_0x2240b7['model']==_0x134bf3);let _0x3400f5=_0x134bf3,_0x30e039='';return _0x4d1412&&(_0x3400f5=_0x4d1412['label'],_0x30e039=_0x1616d0(_0x3400f5)['toLowerCase']()),{'type':'format','content':c(_0xbf93d,'*Set\x20font\x20color:*\x20%0',_0x30e039)['trim'](),'color':{'value':_0x134bf3,'title':_0x30e039||_0x3400f5}};}return{'type':'format','content':c(_0xbf93d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x914977['commandName']){const _0x39c948=_0x914977['commandParams'][0x0]['value'];if(_0x39c948){const _0x514422=Zt(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x565379=>_0x565379['model']==_0x39c948);let _0x51ba24=_0x39c948,_0x5bb4ee='';return _0x514422&&(_0x51ba24=_0x514422['label'],_0x5bb4ee=_0x1616d0(_0x51ba24)['toLowerCase']()),{'type':'format','content':c(_0xbf93d,'*Set\x20font\x20background\x20color:*\x20%0',_0x5bb4ee)['trim'](),'color':{'value':_0x39c948,'title':_0x5bb4ee||_0x51ba24}};}return{'type':'format','content':c(_0xbf93d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x104d33{['afterInit'](){const _0x33087a=this['editor'],_0x26b5e3=_0x33087a['plugins']['get']('TrackChangesEditing'),_0x183d8d=_0x33087a['commands']['get']('copyFormat'),_0x2e53f9=_0x33087a['commands']['get']('pasteFormat');_0x183d8d&&_0x2e53f9&&(_0x26b5e3['enableDefaultAttributesIntegration']('pasteFormat'),_0x26b5e3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xc061a3=this['editor'],_0x5d2a6f=_0xc061a3['locale'];_0xc061a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3554ec=>{if('formatBlock'!=_0x3554ec['type']&&'formatInline'!=_0x3554ec['type'])return;const {data:_0x32c89f}=_0x3554ec;if(_0x32c89f&&'pasteFormat'===_0x32c89f['commandName']){const _0x3b6642=[],_0x4754d7=_0x32c89f['commandParams'][0x0];for(const [_0x222590,_0x19fce3]of Object['entries'](_0x4754d7))_0x3b6642['push'](ro(_0xc061a3,_0x222590,_0x19fce3));return _0x3b6642['length']?{'type':'format','content':c(_0x5d2a6f,'*Set\x20format\x20to:*\x20%0',_0x3b6642['join'](',\x20'))}:{'type':'format','content':c(_0x5d2a6f,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x47aebe,_0x39f6de,_0x35e735){const _0x1a91a2=_0x47aebe['locale']['t'],_0x183992=_0x39f6de['split'](/(?=[A-Z])/)['join']('\x20'),_0x15cf60=_0x1a91a2(_0x183992['charAt'](0x0)['toUpperCase']()+_0x183992['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x35e735)return _0x15cf60;if('fontColor'===_0x39f6de||'fontBackgroundColor'===_0x39f6de){const _0x58f0c8=Zt(_0x47aebe['config']['get']('fontColor.colors'))['find'](_0x1fea27=>_0x1fea27['model']==_0x35e735);return _0x15cf60+'\x20('+(_0x58f0c8?_0x1a91a2(_0x58f0c8['label'])['toLowerCase']():_0x35e735)+')';}if('fontSize'===_0x39f6de&&isNaN(parseFloat(_0x35e735))){const _0x25fd79=_0x47aebe['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x47aebe['config']['get']('fontSize.options'))['find'](_0x434793=>_0x434793['model']==_0x35e735);return _0x15cf60+'\x20('+(_0x25fd79?_0x1a91a2(_0x25fd79['title'])['toLowerCase']():_0x35e735)+')';}return _0x15cf60+'\x20('+_0x35e735+')';}class et extends _0x104d33{['_headingOptions'];['afterInit'](){const _0x11cb4d=this['editor'];if(!_0x11cb4d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11cb4d['config']['get']('heading.options');const _0x2de42d=_0x11cb4d['locale'],_0x451ad8=_0x11cb4d['plugins']['get']('TrackChangesEditing');_0x451ad8['enableDefaultAttributesIntegration']('heading');for(const _0x2fe2b7 of this['_headingOptions'])'paragraph'!=_0x2fe2b7['model']&&_0x451ad8['descriptionFactory']['registerElementLabel'](_0x2fe2b7['model'],_0x3db1c4=>{const _0xde1bc5=this['_getHeadingLevel'](_0x2fe2b7['model']);return null!==_0xde1bc5?_0x1b5ee8(_0x3db1c4,_0xde1bc5):_0x2aec8d(_0x3db1c4,_0x2fe2b7['title']);});function _0x1b5ee8(_0x46fed5,_0x24c991){return c(_0x2de42d,'ELEMENT_HEADING',[_0x46fed5,_0x24c991]);}function _0x2aec8d(_0x418a1c,_0x17d985){return c(_0x2de42d,'ELEMENT_HEADING_CUSTOM',[_0x418a1c,_0x17d985]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a1bdc=this['editor'],_0x1a3277=_0x1a1bdc['locale'];function _0x5c317f(_0x32ef84,_0x3cfc53){return c(_0x1a3277,'ELEMENT_HEADING_CUSTOM',[_0x32ef84,_0x3cfc53]);}_0x1a1bdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cfe74=>{if('formatBlock'!=_0x4cfe74['type'])return;const {data:_0x5b3b1c}=_0x4cfe74;if(_0x5b3b1c&&'heading'==_0x5b3b1c['commandName']){const _0x55dab4=_0x5b3b1c['commandParams'][0x0]['value'],_0x539400=this['_getHeadingLevel'](_0x55dab4);if(null!==_0x539400)return{'type':'format','content':c(_0x1a3277,'*Change\x20to:*\x20%0',(_0x412030=0x1,_0x4815d2=_0x539400,c(_0x1a3277,'ELEMENT_HEADING',[_0x412030,_0x4815d2])))};const _0x460392=this['_headingOptions']['find'](_0x381798=>_0x381798['model']===_0x55dab4)['title'];return{'type':'format','content':c(_0x1a3277,'*Change\x20to:*\x20%0',_0x5c317f(0x1,_0x460392))};}var _0x412030,_0x4815d2;});}['_getHeadingLevel'](_0x5beea1){const _0x2c5568=_0x5beea1['match'](/^heading(\d+)/);if(_0x2c5568)return _0x2c5568[0x1];const _0x2b920a=this['_headingOptions']?.['find'](_0x19f372=>_0x19f372['model']==_0x5beea1);if(_0x2b920a&&_0x2b920a['view']){const _0x51118c=_0x2b920a['view'],_0x563c82=(_0x51118c['name']??_0x51118c)['match'](/^h(\d+)/);if(_0x563c82)return _0x563c82[0x1];}return null;}}class nt extends _0x104d33{['afterInit'](){const _0x489763=this['editor'];if(!_0x489763['plugins']['has']('HighlightEditing'))return;const _0xd80f6=_0x489763['plugins']['get']('TrackChangesEditing'),_0x215fcf=_0x489763['locale'];_0xd80f6['enableDefaultAttributesIntegration']('highlight'),_0xd80f6['registerInlineAttribute']('highlight'),_0xd80f6['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x215fcf,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5938bb=this['editor'],_0x4e3710=_0x5938bb['locale'];_0x5938bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb21357=>{if('formatInline'!=_0xb21357['type'])return;const {data:_0x129032}=_0xb21357;if(_0x129032&&'highlight'==_0x129032['commandName']){const _0x41252f=_0x4e3710['t'],_0x4cce7b=_0x129032['commandParams'][0x0]['value'];if(_0x4cce7b){const _0x4d49a3=_0x5938bb['config']['get']('highlight.options')['find'](_0x464503=>_0x464503['model']==_0x4cce7b),_0x8973d8=_0x41252f(_0x4d49a3['title'])['toLowerCase']();return{'type':'format','content':c(_0x4e3710,'*Set\x20highlight:*\x20%0',_0x8973d8),'color':{'value':_0x4d49a3['color'],'title':_0x4d49a3['title']}};}return{'type':'format','content':c(_0x4e3710,'*Remove\x20highlight*',c(_0x4e3710,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x104d33{['afterInit'](){const _0x42f79a=this['editor'];if(!_0x42f79a['plugins']['has']('HorizontalLineEditing'))return;_0x42f79a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4fe97a=_0x42f79a['plugins']['get']('TrackChangesEditing'),_0x430177=_0x42f79a['locale'];_0x4fe97a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3ce2d7=>c(_0x430177,'ELEMENT_HORIZONTAL_LINE',_0x3ce2d7)),_0x42f79a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x568246,{writer:_0x337186,options:_0x4350ac})=>{if(!_0x4350ac['showSuggestionHighlights'])return null;const _0x31e3a8=_0x337186['createContainerElement']('div'),_0x1bb4a1=_0x337186['createEmptyElement']('hr');return _0x337186['addClass']('ck-horizontal-line',_0x31e3a8),_0x337186['insert'](_0x337186['createPositionAt'](_0x31e3a8,0x0),_0x1bb4a1),_0x31e3a8;},'converterPriority':'high'});}}class st extends _0x104d33{['afterInit'](){const _0x1d031e=this['editor'];if(!_0x1d031e['plugins']['has']('HtmlEmbed'))return;const _0x19ca59=_0x1d031e['plugins']['get']('TrackChangesEditing'),_0x45cab6=_0x1d031e['locale'];_0x19ca59['descriptionFactory']['registerElementLabel']('rawHtml',_0x63b8d0=>c(_0x45cab6,'ELEMENT_HTML_EMBED',_0x63b8d0)),_0x19ca59['enableDefaultAttributesIntegration']('htmlEmbed'),_0x19ca59['registerBlockAttribute']('value'),_0x19ca59['descriptionFactory']['registerDescriptionCallback'](_0x2a6f87=>{if('attribute'!=_0x2a6f87['type'])return;const {data:_0x2dbc80}=_0x2a6f87;if(_0x2dbc80&&'value'==_0x2dbc80['key']&&_0x2a6f87['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4b5dca=c(_0x45cab6,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x45cab6,'*Change\x20%0\x20content*',_0x4b5dca)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3da96f=this['editor'],_0x5a41dc=_0x3da96f['locale'];_0x3da96f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45c8c2=>{if('formatBlock'!=_0x45c8c2['type'])return;const {data:_0x3e3b44}=_0x45c8c2;if(_0x3e3b44&&'htmlEmbed'==_0x3e3b44['commandName']){const _0xf36fbd=c(_0x5a41dc,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5a41dc,'*Change\x20%0\x20content*',_0xf36fbd)};}});}}class ot extends _0x104d33{['afterInit'](){const _0x2cded8=this['editor'];if(!_0x2cded8['plugins']['has']('ImageEditing'))return;const _0x24c55e=_0x2cded8['plugins']['get']('TrackChangesEditing'),_0x2b6952=_0x2cded8['plugins']['get']('ImageUtils'),_0x56e4d4=_0x2cded8['locale'];_0x24c55e['enableCommand']('insertImage'),_0x24c55e['descriptionFactory']['registerElementLabel']('imageBlock',_0x26b8c8=>c(_0x56e4d4,'ELEMENT_IMAGE',_0x26b8c8)),_0x24c55e['descriptionFactory']['registerElementLabel']('imageInline',_0x2776b6=>c(_0x56e4d4,'ELEMENT_INLINE_IMAGE',_0x2776b6)),_0x24c55e['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x56e4d4,'ELEMENT_CAPTION')),_0x2cded8['plugins']['has']('ImageUploadEditing')&&_0x24c55e['enableCommand']('uploadImage'),_0x2cded8['plugins']['has']('ImageBlockEditing')&&_0x2cded8['plugins']['has']('ImageInlineEditing')&&(_0x24c55e['enableCommand']('imageTypeInline',(_0x780e9f,_0x5a5ac1)=>{const _0x594a4a=_0x2b6952['getClosestSelectedImageElement'](_0x2cded8['model']['document']['selection']);_0x2cded8['model']['change'](()=>{_0x24c55e['markBlockFormat'](_0x594a4a,{'commandName':'imageTypeInline','commandParams':[_0x5a5ac1]},[],'convertBlockImageToInline');});}),_0x24c55e['enableCommand']('imageTypeBlock',(_0x3c50fd,_0xc3268c)=>{_0x2cded8['model']['change'](_0x18d70a=>{let _0x3dfa7d=_0x2b6952['getClosestSelectedImageElement'](_0x2cded8['model']['document']['selection']),_0x45dbf2=_0x18d70a['createRangeOn'](_0x3dfa7d);const _0x35262d=_0x2f306f['fromPosition'](_0x45dbf2['start'],'toPrevious'),_0x126980=_0x2f306f['fromPosition'](_0x45dbf2['end'],'toNext');_0x24c55e['forceDefaultExecution'](()=>_0x3c50fd(_0xc3268c)),_0x3dfa7d=_0x2b6952['getClosestSelectedImageElement'](_0x2cded8['model']['document']['selection']),_0x45dbf2=_0x18d70a['createRangeOn'](_0x3dfa7d);const _0x5e7812=_0x18d70a['createRange'](_0x35262d,_0x126980);_0x35262d['detach'](),_0x126980['detach'](),_0x24c55e['markBlockFormat'](_0x3dfa7d,{'commandName':'imageTypeInline','commandParams':[_0xc3268c]},[],'convertInlineImageToBlock'),_0x5e7812['start']['isBefore'](_0x45dbf2['start'])&&_0x24c55e['markInsertion'](_0x18d70a['createRange'](_0x5e7812['start'],_0x45dbf2['start']),'convertInlineImageToBlock'),_0x45dbf2['end']['isBefore'](_0x5e7812['end'])&&_0x24c55e['markInsertion'](_0x18d70a['createRange'](_0x45dbf2['end'],_0x5e7812['end']),'convertInlineImageToBlock');});}),_0x24c55e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x24c55e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x24c55e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x24c55e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x24c55e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x24c55e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1a4e13])=>{const _0x26e9b2=_0x24c55e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x310a1c=_0x1a4e13['start'],_0x354d86=_0x1a4e13['end'];const _0x2e2371=_0x2cded8['model']['schema']['getNearestSelectionRange'](_0x310a1c,'backward'),_0x23ef6b=_0x2cded8['model']['schema']['getNearestSelectionRange'](_0x354d86,'forward');_0x2e2371['isCollapsed']&&(_0x310a1c=_0x2e2371['start']),_0x23ef6b['isCollapsed']&&(_0x354d86=_0x23ef6b['end']),_0x26e9b2([_0x2cded8['model']['createRange'](_0x310a1c,_0x354d86)]);}),_0x24c55e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3fc240),_0x24c55e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3fc240)),_0x2cded8['plugins']['has']('ImageCaptionEditing')&&(_0x24c55e['enableCommand']('toggleImageCaption',(_0x4a28a8,_0x12924c)=>{const _0x3fd466=_0x2cded8['plugins']['get']('ImageCaptionUtils');let _0x217470=_0x2b6952['getClosestSelectedImageElement'](_0x2cded8['model']['document']['selection']),_0x1cc697=_0x3fd466['getCaptionFromImageModelElement'](_0x217470);_0x2cded8['model']['change'](()=>{if(_0x1cc697)return void _0x24c55e['markDeletion'](_0x2cded8['model']['createRangeOn'](_0x1cc697));const _0x220dec=_0x2b6952['isBlockImage'](_0x217470);_0x4a28a8(_0x12924c),_0x217470=_0x2b6952['getClosestSelectedImageElement'](_0x2cded8['model']['document']['selection']),_0x1cc697=_0x3fd466['getCaptionFromImageModelElement'](_0x217470),_0x24c55e['markInsertion'](_0x2cded8['model']['createRangeOn'](_0x1cc697),_0x220dec?null:'imageCaption');});}),_0x24c55e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3fc240));const _0x20c732=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3fa2d4(_0x4e571f,_0x2b8603){const _0x3212c2=_0x20c732['findIndex'](({type:_0x2140a6,subType:_0x23ee5d})=>_0x4e571f['type']==_0x2140a6&&_0x4e571f['subType']==_0x23ee5d),_0x112139=_0x20c732['findIndex'](({type:_0x3a8f38,subType:_0x22996f})=>_0x2b8603['type']==_0x3a8f38&&_0x2b8603['subType']==_0x22996f);if(_0x3212c2<0x0||_0x112139<0x0)return!0x1;const _0x13c29f=_0x4e571f['getFirstRange'](),_0x21c7bf=_0x2b8603['getFirstRange']();if((0x0==_0x3212c2||0x1==_0x3212c2)&&0x2==_0x112139&&_0x13c29f['isIntersecting'](_0x21c7bf))return!0x0;if(0x2==_0x3212c2&&0x3==_0x112139){const _0x184c22=_0x24c55e['_findSuggestions'](_0x13c29f,'insertion')['filter'](({suggestion:_0x5f306a,meta:_0x322024})=>_0x322024['isOwn']&&'convertInlineImageToBlock'==_0x5f306a['subType']);if(_0x184c22['length']>0x1&&_0x21c7bf['end']['isEqual'](_0x13c29f['start']))return!0x0;if(0x1==_0x184c22['length']&&(_0x13c29f['start']['isEqual'](_0x21c7bf['end'])||_0x13c29f['end']['isEqual'](_0x21c7bf['start'])))return!0x0;}if(0x3==_0x3212c2&&0x3==_0x112139&&_0x13c29f['start']['isBefore'](_0x21c7bf['start'])){const _0x3e3958=_0x13c29f['end']['nodeAfter'],_0x4728e4=_0x21c7bf['start']['nodeBefore'];return _0x2b6952['isBlockImage'](_0x3e3958)&&_0x3e3958===_0x4728e4;}return!0x1;}function _0x3fc240(_0xffd05d,_0x3a8fd8){return _0x3fa2d4(_0xffd05d,_0x3a8fd8)?[_0xffd05d,_0x3a8fd8]:_0x3fa2d4(_0x3a8fd8,_0xffd05d)?[_0x3a8fd8,_0xffd05d]:null;}_0x2cded8['plugins']['has']('ImageResize')&&(_0x24c55e['enableDefaultAttributesIntegration']('resizeImage'),_0x24c55e['registerBlockAttribute']('resizedWidth'),_0x24c55e['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x56e4d4,'FORMAT_IMAGE_SIZE'))),_0x2cded8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x24c55e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x24c55e['registerBlockAttribute']('alt')),_0x2cded8['plugins']['has']('PictureEditing')&&(_0x24c55e['registerBlockAttribute']('sources'),_0x24c55e['descriptionFactory']['registerDescriptionCallback'](_0x32fed5=>{if('attribute'!=_0x32fed5['type'])return;const {data:_0x3ac6be}=_0x32fed5;return _0x3ac6be&&'sources'==_0x3ac6be['key']?{'type':'format','content':''}:void 0x0;})),_0x2cded8['plugins']['has']('ImageSizeAttributes')&&(_0x24c55e['registerBlockAttribute']('width'),_0x24c55e['registerBlockAttribute']('height'),_0x24c55e['descriptionFactory']['registerDescriptionCallback'](_0x26f4b1=>{if('attribute'!=_0x26f4b1['type'])return;const {data:_0x401ea5}=_0x26f4b1;return!_0x401ea5||'width'!=_0x401ea5['key']&&'height'!=_0x401ea5['key']?void 0x0:{'type':'format','content':''};})),_0x24c55e['descriptionFactory']['registerDescriptionCallback'](_0x4ea776=>{if(!!_0x20c732['find'](({type:_0x3cd0d1,subType:_0x487367})=>_0x4ea776['type']==_0x3cd0d1&&_0x4ea776['subType']==_0x487367))return _0x4ea776['previous']?{}:void 0x0;}),_0x24c55e['descriptionFactory']['registerDescriptionCallback'](_0x48c9bb=>{if('insertion'==_0x48c9bb['type']||'deletion'==_0x48c9bb['type']){const _0x5c49e4=_0x48c9bb['getContainedElement']();if(_0x5c49e4&&_0x5c49e4['is']('element','caption'))return{'type':'insertion'==_0x48c9bb['type']?'addObject':'removeObject','element':_0x5c49e4,'quantity':0x1};}}),_0x24c55e['descriptionFactory']['registerDescriptionCallback'](_0x3446d6=>'formatBlock'==_0x3446d6['type']&&'convertInlineImageToBlock'==_0x3446d6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3446d6['type']&&'convertBlockImageToInline'==_0x3446d6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x24c55e['descriptionFactory']['registerDescriptionCallback'](_0x52b630=>{if('attribute'!=_0x52b630['type'])return;const {data:_0x199532}=_0x52b630;if(!_0x199532||'alt'!=_0x199532['key'])return;const _0x215c29=_0x199532['newValue'];return _0x215c29?{'type':'format','content':c(_0x56e4d4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x215c29+'\x22')}:{'type':'format','content':c(_0x56e4d4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36d9fd=this['editor'],_0x4aa766=_0x36d9fd['locale'];_0x36d9fd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfa6b7c=>{if('formatBlock'!=_0xfa6b7c['type']&&'formatInline'!=_0xfa6b7c['type'])return;const {data:_0xe8301c}=_0xfa6b7c;if(_0xe8301c){if('imageTextAlternative'==_0xe8301c['commandName']){const _0x3a4f78=_0xe8301c['commandParams'][0x0]['newValue'];return _0x3a4f78?{'type':'format','content':c(_0x4aa766,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3a4f78+'\x22')}:{'type':'format','content':c(_0x4aa766,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xe8301c['commandName']){const _0x8b8b67=_0xe8301c['commandParams'][0x0]['width'];return _0x8b8b67?{'type':'format','content':c(_0x4aa766,'*Set\x20image\x20width:*\x20%0',_0x8b8b67)}:{'type':'format','content':c(_0x4aa766,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x104d33{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x56b3f3=this['editor']['locale'],_0x109ad5=this['editor']['plugins']['get']('TrackChangesEditing');_0x109ad5['enableDefaultAttributesIntegration']('replaceImageSource'),_0x109ad5['registerBlockAttribute']('src'),_0x109ad5['descriptionFactory']['registerDescriptionCallback'](_0x40a573=>{if('attribute'!=_0x40a573['type'])return;const {data:_0x3f665d}=_0x40a573;return _0x3f665d&&'src'==_0x3f665d['key']?_0x3f665d['newValue']&&_0x3f665d['oldValue']?{'type':'format','content':c(_0x56b3f3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x262ce0=this['editor']['plugins']['get']('TrackChangesEditing');_0x262ce0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x262ce0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x262ce0['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x262ce0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c8ce1=this['editor'],_0x886c61=_0x3c8ce1['locale'];_0x3c8ce1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x198c6e=>{if('formatBlock'!=_0x198c6e['type']&&'formatInline'!=_0x198c6e['type'])return;const {data:_0x3d30b7}=_0x198c6e;if(!_0x3d30b7||'replaceImageSource'!=_0x3d30b7['commandName'])return;return{'type':'format','content':c(_0x886c61,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x104d33{['afterInit'](){const _0x110f05=this['editor'];if(!_0x110f05['plugins']['has']('ImageStyleEditing'))return;const _0x3b21f5=_0x110f05['plugins']['get']('TrackChangesEditing'),_0x3087dc=_0x110f05['plugins']['get']('ImageUtils'),_0x15c56b={};_0x3b21f5['enableCommand']('imageStyle',(_0x1583f1,_0x1f2639)=>{const _0x47e8c7=_0x110f05['plugins']['get']('Users')['me'],_0x416fac=_0x110f05['commands']['get']('imageStyle');let _0x2e60d6=_0x3087dc['getClosestSelectedImageElement'](_0x110f05['model']['document']['selection']),_0x320924=_0x110f05['model']['createRangeOn'](_0x2e60d6),_0x1fe44c=_0x416fac['value'];if(_0x1fe44c==_0x1f2639['value'])return;const _0x1bc013={'commandName':'imageStyle','commandParams':[_0x1f2639],'formatGroupId':_0x5a1697()};_0x110f05['model']['change'](()=>{if(_0x3b21f5['getSuggestions']()['filter'](_0x51b0a6=>_0x51b0a6['isInContent']&&_0x47e8c7==_0x51b0a6['author']&&('formatBlock'==_0x51b0a6['type']||'formatInline'==_0x51b0a6['type'])&&('imageStylePreApply'==_0x51b0a6['subType']||'imageStylePostApply'==_0x51b0a6['subType'])&&_0x51b0a6['getFirstRange']()['isEqual'](_0x320924))['forEach'](_0x562601=>_0x3b21f5['discardSuggestion'](_0x562601['head'])),_0x2e60d6=_0x3087dc['getClosestSelectedImageElement'](_0x110f05['model']['document']['selection']),_0x320924=_0x110f05['model']['createRangeOn'](_0x2e60d6),_0x416fac['refresh'](),_0x110f05['commands']['get']('imageTypeInline')['refresh'](),_0x110f05['commands']['get']('imageTypeBlock')['refresh'](),_0x1fe44c=_0x416fac['value'],_0x1fe44c!=_0x1f2639['value'])return _0x3087dc['isInlineImage'](_0x2e60d6)&&_0x416fac['shouldConvertImageType'](_0x1f2639['value'],_0x2e60d6)?(_0x1583f1({..._0x1f2639,'setImageSizes':!0x1}),_0x2e60d6=_0x3087dc['getClosestSelectedImageElement'](_0x110f05['model']['document']['selection']),void _0x3b21f5['markBlockFormat'](_0x2e60d6,{..._0x1bc013,'commandReversedParams':[{'value':_0x1fe44c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3087dc['isBlockImage'](_0x2e60d6)?_0x3b21f5['markBlockFormat'](_0x2e60d6,_0x1bc013,[],'imageStylePostApply'):_0x3b21f5['markInlineFormat'](_0x320924,_0x1bc013,'imageStylePostApply'));});});for(const _0x2fd11f of _0x110f05['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x15c56b[_0x2fd11f['name']]=_0x2fd11f['title']['toLowerCase']();_0x3b21f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3b21f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3b21f5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3b21f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x33b195])=>{_0x3087dc['setImageNaturalSizeAttributes'](_0x33b195['getContainedElement']());}),_0x3b21f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x21d6b0,_0x490cec)=>{_0x3b21f5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x21d6b0,{'commandName':_0x490cec['commandName'],'commandParams':_0x490cec['commandReversedParams']});}),_0x3b21f5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4e4d5e,_0x15a134){if(_0x3e6df5(_0x4e4d5e,_0x15a134))return[_0x4e4d5e,_0x15a134];if(_0x3e6df5(_0x15a134,_0x4e4d5e))return[_0x15a134,_0x4e4d5e];return null;});const _0x52a41e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e6df5(_0x246b32,_0x3d5c4a){const _0x247aa2=_0x52a41e['findIndex'](({type:_0x9fec5f,subType:_0x2a1184})=>_0x246b32['type']==_0x9fec5f&&_0x246b32['subType']==_0x2a1184),_0x20832e=_0x52a41e['findIndex'](({type:_0x1692c3,subType:_0x1497a0})=>_0x3d5c4a['type']==_0x1692c3&&_0x3d5c4a['subType']==_0x1497a0);if(_0x247aa2<0x0||_0x20832e<0x0)return!0x1;const _0x4d436f=_0x246b32['getFirstRange'](),_0x564eaf=_0x3d5c4a['getFirstRange']();if((0x0==_0x247aa2||0x1==_0x247aa2)&&0x2==_0x20832e&&_0x4d436f['isIntersecting'](_0x564eaf))return!0x0;if(0x2==_0x247aa2&&0x3==_0x20832e){const _0x2cbce0=_0x3b21f5['_findSuggestions'](_0x4d436f,'insertion')['filter'](({suggestion:_0x104409,meta:_0x4cebe3})=>_0x4cebe3['isOwn']&&'convertInlineImageToBlock'==_0x104409['subType']);if(_0x2cbce0['length']>0x1&&_0x564eaf['end']['isEqual'](_0x4d436f['start']))return!0x0;if(0x1==_0x2cbce0['length']&&(_0x4d436f['start']['isEqual'](_0x564eaf['end'])||_0x4d436f['end']['isEqual'](_0x564eaf['start'])))return!0x0;}if(0x3==_0x247aa2&&0x3==_0x20832e&&_0x4d436f['start']['isBefore'](_0x564eaf['start'])){const _0x394b67=_0x4d436f['end']['nodeAfter'],_0x18c461=_0x564eaf['start']['nodeBefore'];return _0x3087dc['isBlockImage'](_0x394b67)&&_0x394b67===_0x18c461;}return!0x1;}_0x110f05['model']['document']['registerPostFixer'](()=>{let _0x15bff2=!0x1;const _0x1fe447=Array['from'](_0x110f05['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2eeee9,data:_0x27babb}of _0x1fe447){const {group:_0x51b3af,type:_0x2b949e,subType:_0x4a30fe,id:_0x12eeec}=_0x3b21f5['_splitMarkerName'](_0x2eeee9);if('suggestion'==_0x51b3af&&_0x3b21f5['hasSuggestion'](_0x12eeec)){if('formatBlock'==_0x2b949e&&('imageStylePreApply'==_0x4a30fe||'imageStylePostApply'==_0x4a30fe)){const _0x177690=_0x3b21f5['getSuggestion'](_0x12eeec);if(_0x27babb['newRange']){const _0x2aac3a=_0x177690['getFirstRange']()['getContainedElement']();if(_0x3087dc['isBlockImage'](_0x2aac3a))continue;_0x3b21f5['discardSuggestion'](_0x177690),_0x15bff2=!0x0;}}if('insertion'==_0x2b949e&&'imageCaption'==_0x4a30fe&&!_0x27babb['newRange']){const _0x513ed8=_0x3b21f5['getSuggestion'](_0x12eeec);_0x513ed8['next']&&_0x513ed8['next']['isInContent']&&(_0x3b21f5['discardSuggestion'](_0x513ed8['next']),_0x15bff2=!0x0);}}}return _0x15bff2;}),this['_registerLegacyDescription'](_0x15c56b);}['_registerLegacyDescription'](_0x17c65f){const _0x82b375=this['editor'],_0x583424=_0x82b375['locale'];_0x82b375['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x488bb2=>{if('formatBlock'!=_0x488bb2['type']&&'formatInline'!=_0x488bb2['type'])return;const {data:_0x22242e}=_0x488bb2;if(!_0x22242e||'imageStyle'!=_0x22242e['commandName'])return;const _0x2f52ce=_0x22242e['commandParams'][0x0]['value'];return _0x2890d8('side'===_0x2f52ce?c(_0x583424,'FORMAT_SIDE_IMAGE'):_0x17c65f[_0x2f52ce]||_0x2f52ce);function _0x2890d8(_0x38b370){return{'type':'format','content':c(_0x583424,'*Format:*\x20%0',_0x38b370)};}});}}class ct extends _0x104d33{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x129fd7){super(_0x129fd7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4e71f3=this['editor'],_0xc3b666=_0x4e71f3['commands']['get']('importWord'),_0x5c742f=_0x4e71f3['commands']['get']('trackChanges');_0xc3b666&&(_0xc3b666['on']('execute',(_0x2cd1eb,[,_0x2de3cb])=>{this['_trackChangesValueDuringImport']=_0x5c742f['value'],_0x2de3cb['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xc3b666,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xc3b666,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5c742f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4e71f3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4caf73,_0x24847b){const {suggestions:_0x4d372c}=_0x24847b,_0x4cdb32=this['editor']['commands']['get']('trackChanges'),_0x30956c=_0x4cdb32['value'];this['_trackChangesValueDuringImport']!==_0x30956c&&(_0x4cdb32['execute'](),this['_trackChangesExecuted']=!0x0),_0x4d372c&&_0x4d372c['forEach'](({id:_0x392fe7,type:_0x56a12e,author:_0x4be062,created_at:_0x1a3ff4})=>{const _0x1c702d={'id':_0x392fe7,'type':_0x56a12e,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4be062,'createdAt':_0x1a3ff4?new Date(_0x1a3ff4):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1c702d);});}}class ut extends _0x104d33{['afterInit'](){const _0x2a0805=this['editor'],_0xec36a2=_0x2a0805['plugins']['get']('TrackChangesEditing');if(_0x2a0805['plugins']['has']('IndentEditing')&&(_0xec36a2['enableCommand']('indent'),_0xec36a2['enableCommand']('outdent')),_0x2a0805['plugins']['has']('IndentBlock')){for(const _0x38dd83 of['indentBlock','outdentBlock'])_0xec36a2['enableDefaultAttributesIntegration'](_0x38dd83);}const _0x16f431=_0x2a0805['locale'];_0xec36a2['registerBlockAttribute']('blockIndent'),_0xec36a2['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x16f431,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x186d29=this['editor'],_0x4fb66e=_0x186d29['locale'],_0x3251ae=_0x186d29['plugins']['get']('TrackChangesEditing');_0x3251ae['descriptionFactory']['registerDescriptionCallback'](_0x52d7ee=>{if('formatBlock'!=_0x52d7ee['type'])return;const {data:_0x3d5a48}=_0x52d7ee;if(!_0x3d5a48)return;if('indentBlock'!=_0x3d5a48['commandName']&&'outdentBlock'!=_0x3d5a48['commandName'])return;const _0x321d36=_0x52d7ee['getItems']()[0x0],_0xd699db=_0x3251ae['descriptionFactory']['getItemLabel'](_0x321d36);return'indentBlock'==_0x3d5a48['commandName']?{'type':'format','content':c(_0x4fb66e,'*Indent:*\x20%0',_0xd699db)}:'outdentBlock'==_0x3d5a48['commandName']?{'type':'format','content':c(_0x4fb66e,'*Outdent:*\x20%0',_0xd699db)}:void 0x0;});}}class ft extends _0x104d33{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x104d33{['afterInit'](){const _0x4a24f3=this['editor'];if(!_0x4a24f3['plugins']['has']('LinkEditing'))return;const _0x193901=_0x4a24f3['plugins']['get']('TrackChangesEditing'),_0xa86666=_0x4a24f3['commands']['get']('link');_0x193901['enableDefaultAttributesIntegration']('link'),_0x193901['enableDefaultAttributesIntegration']('unlink'),_0x193901['registerInlineAttribute']('linkHref');for(const _0x46cf85 of _0xa86666['manualDecorators'])_0x193901['registerInlineAttribute'](_0x46cf85['id']),_0x193901['descriptionFactory']['registerAttributeLabel'](_0x46cf85['id'],'link\x20('+_0x46cf85['label']['toLowerCase']()+')');_0x193901['descriptionFactory']['registerDescriptionCallback'](_0xebb46=>{if('attribute'!=_0xebb46['type'])return;const {data:_0x33c01e}=_0xebb46;if(!_0x33c01e||'linkHref'!=_0x33c01e['key'])return;const _0x4aa489=_0x33c01e['newValue'],_0x35011e=_0x4a24f3['locale'];return{'type':'format','content':null==_0x4aa489?c(_0x35011e,'*Remove\x20link*'):c(_0x35011e,'*Set\x20link:*\x20%0','\x22'+_0x4aa489+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x336702=this['editor'],_0x28809b=_0x336702['locale'];_0x336702['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57e743=>{if('formatInline'!=_0x57e743['type'])return;const {data:_0x3c4734}=_0x57e743;if(_0x3c4734){if('link'==_0x3c4734['commandName']){const _0x1a1f4f=_0x3c4734['commandParams'][0x0];return{'type':'format','content':c(_0x28809b,'*Set\x20link:*\x20%0','\x22'+_0x1a1f4f+'\x22')};}return'unlink'==_0x3c4734['commandName']?{'type':'format','content':c(_0x28809b,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x104d33{['afterInit'](){const _0x120374=this['editor'],_0xed4f45=_0x120374['locale'];if(!_0x120374['plugins']['has']('LegacyListEditing'))return;const _0x49633d=_0x120374['plugins']['get']('TrackChangesEditing'),_0x5605d2=_0x120374['plugins']['has']('LegacyTodoListEditing');function _0x3385ea(_0x2d5322){return()=>{const _0x77b229=_0x120374['model']['document']['selection'],_0x5f0d06=_0x120374['commands']['get'](_0x2d5322);if(_0x5f0d06['value'])return void _0x120374['execute']('paragraph',{});const _0x17e0fd=_0x2d5322['slice'](0x0,-0x4),_0x3bedc5=function(_0x23eb42,_0x38a84b,_0x4912f6){let _0x5b208c=Array['from'](_0x23eb42)['filter'](_0x3225e2=>function(_0xa2d7e,_0x127cfa){return _0x127cfa['checkChild'](_0xa2d7e['parent'],'listItem')&&!_0x127cfa['isObject'](_0xa2d7e);}(_0x3225e2,_0x4912f6));_0x5b208c=_0x5b208c['filter'](_0x38d1fe=>!_0x38d1fe['is']('element','listItem')||_0x38d1fe['getAttribute']('listType')!=_0x38a84b);const _0x3eb8c6=new Set();for(const _0x43c815 of _0x5b208c)_0x43c815['is']('element','listItem')?_0x3eb8c6['add'](Le(_0x43c815)):_0x3eb8c6['add'](_0x43c815);return Array['from'](_0x3eb8c6);}(_0x77b229['getSelectedBlocks'](),_0x17e0fd,_0x120374['model']['schema']);_0x120374['model']['change'](()=>{for(const _0x4764d9 of _0x3bedc5)_0x49633d['markBlockFormat'](_0x4764d9,{'commandName':_0x2d5322,'commandParams':[{'forceValue':!_0x5f0d06['value']}],'formatGroupId':'blockName'},Ee(_0x4764d9));});};}function _0x52991f(_0x545c58){return()=>{const _0x11eec4=function(_0x40e68e){let _0xbeede2=Array['from'](_0x40e68e);const _0x63e5ee=_0xbeede2['findIndex'](_0x2a51bc=>'listItem'!=_0x2a51bc['name']);return _0x63e5ee>-0x1&&(_0xbeede2=_0xbeede2['slice'](0x0,_0x63e5ee)),_0xbeede2;}(_0x120374['model']['document']['selection']['getSelectedBlocks']()),_0x3e7fb8=_0x120374['model']['createRange'](_0x120374['model']['createPositionAt'](_0x11eec4[0x0],'before'),_0x120374['model']['createPositionAt'](_0x11eec4[_0x11eec4['length']-0x1],'end'));_0x120374['model']['change'](()=>{_0x49633d['markBlockFormat'](_0x3e7fb8,{'commandName':_0x545c58,'commandParams':[],'formatGroupId':'listIndent'},function(_0x202ccd){const _0x45d201=new Set();for(const _0x44904a of _0x202ccd){let _0x484d1a=_0x44904a['nextSibling'];for(;_0x484d1a&&_0x484d1a['getAttribute']('listIndent')>_0x44904a['getAttribute']('listIndent');)_0x45d201['add'](_0x484d1a),_0x484d1a=_0x484d1a['nextSibling'];}return Array['from'](_0x45d201);}(_0x11eec4));});};}_0x49633d['enableCommand']('numberedList',_0x3385ea('numberedList')),_0x49633d['enableCommand']('bulletedList',_0x3385ea('bulletedList')),_0x5605d2&&_0x49633d['enableCommand']('todoList',_0x3385ea('todoList')),_0x49633d['enableCommand']('indentList',_0x52991f('indentList')),_0x49633d['enableCommand']('outdentList',_0x52991f('outdentList')),_0x5605d2&&_0x49633d['enableCommand']('checkTodoList',()=>{const _0x37fb05=_0x120374['commands']['get']('checkTodoList'),_0x2a9990=Array['from'](_0x37fb05['_selectedElements']);_0x2a9990['filter'](_0x156e55=>_0x156e55['getAttribute']('todoListChecked')!=_0x37fb05['value']),_0x120374['model']['change'](()=>{for(const _0x6bd057 of _0x2a9990)_0x49633d['markBlockFormat'](_0x6bd057,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x37fb05['value']}]});});}),_0x49633d['descriptionFactory']['registerElementLabel']('listItem',_0x5030bb=>c(_0xed4f45,'ELEMENT_LIST_ITEM',_0x5030bb)),_0x49633d['descriptionFactory']['registerDescriptionCallback'](_0x325c2d=>{if('formatBlock'!=_0x325c2d['type']&&'formatInline'!=_0x325c2d['type'])return;const {data:_0x456b21}=_0x325c2d;if(_0x456b21){if('numberedList'==_0x456b21['commandName']||'bulletedList'==_0x456b21['commandName']||'todoList'==_0x456b21['commandName'])switch(_0x456b21['commandName']['replace']('List','')){case'bulleted':return _0x52a91e(c(_0xed4f45,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x52a91e(c(_0xed4f45,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x52a91e(c(_0xed4f45,'ELEMENT_TODO_LIST'));}if('indentList'==_0x456b21['commandName'])return{'type':'format','content':c(_0xed4f45,'*Indent:*\x20%0',c(_0xed4f45,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x456b21['commandName'])return{'type':'format','content':c(_0xed4f45,'*Outdent:*\x20%0',c(_0xed4f45,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x456b21['commandName'])return _0x456b21['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xed4f45,'*Check\x20item*')}:{'type':'format','content':c(_0xed4f45,'*Uncheck\x20item*')};}function _0x52a91e(_0x55c9f2){return{'type':'format','content':c(_0xed4f45,'*Change\x20to:*\x20%0',_0x55c9f2)};}});}}function Le(_0x3d4a4c){const _0x2804c9=_0x3d4a4c['getAttribute']('listIndent');if(0x0==_0x2804c9)return _0x3d4a4c;let _0xdb6b65=_0x3d4a4c;for(;_0x3d4a4c['previousSibling']&&_0x3d4a4c['previousSibling']['is']('element','listItem');){const _0x27e7cf=_0x3d4a4c['previousSibling']['getAttribute']('listIndent');if(_0x27e7cf==_0x2804c9)_0xdb6b65=_0x3d4a4c['previousSibling'];else{if(_0x27e7cf<_0x2804c9)break;}_0x3d4a4c=_0x3d4a4c['previousSibling'];}return _0xdb6b65;}function Ee(_0xc97950){const _0x22e96b=[];if(_0xc97950['is']('element','listItem')&&_0xc97950['getAttribute']('listIndent')>0x0){let _0x4eb90f=_0xc97950['nextSibling'];for(;_0x4eb90f&&'listItem'==_0x4eb90f['name']&&_0x4eb90f['getAttribute']('listIndent')==_0xc97950['getAttribute']('listIndent');)_0x22e96b['push'](_0x4eb90f),_0x4eb90f=_0x4eb90f['nextSibling'];}return _0x22e96b;}class Q extends _0x104d33{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x407cfa=this['editor']['config']['get']('list.properties'),_0x5e0f4a=this['editor']['plugins']['get']('TrackChangesEditing');_0x407cfa['styles']&&_0x5e0f4a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x407cfa['reversed']&&_0x5e0f4a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x407cfa['startIndex']&&_0x5e0f4a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5e0f4a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x10e107,_0x29dda6={}){const _0x476de7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f3655=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x476de7['markMultiRangeBlockFormat'](_0x5f3655,{'commandName':'listStyle','commandParams':[{'type':_0x29dda6['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xd02d72,_0x4d6df0={}){const _0x24c90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5de813=this['_getSuggestionBlocks'](_0x3f465d=>_0x3f465d['is']('element','listItem')&&'numbered'===_0x3f465d['getAttribute']('listType'));if(_0x5de813['length']<0x1)return;const _0x24e12e=_0x5de813['map'](_0x4a2d3f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a2d3f,'before'),this['editor']['model']['createPositionAt'](_0x4a2d3f,0x0)));this['editor']['model']['change'](()=>{_0x24c90['markMultiRangeBlockFormat'](_0x24e12e,{'commandName':'listReversed','commandParams':[{'reversed':_0x4d6df0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xcb51d0,_0x33b593={}){const _0x15262b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x354322=this['_getSuggestionBlocks'](_0x42b772=>_0x42b772['is']('element','listItem')&&'numbered'===_0x42b772['getAttribute']('listType'));if(_0x354322['length']<0x1)return;const _0x445159=_0x354322['map'](_0x2f9509=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f9509,'before'),this['editor']['model']['createPositionAt'](_0x2f9509,0x0)));this['editor']['model']['change'](()=>{_0x15262b['markMultiRangeBlockFormat'](_0x445159,{'commandName':'listStart','commandParams':[{'startIndex':_0x33b593['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x493d1c){if('formatBlock'!=_0x493d1c['type']&&'formatInline'!=_0x493d1c['type'])return;const _0x31b670=this['editor']['locale'],{data:_0x294aed}=_0x493d1c;if(!_0x294aed)return;let _0xbda546,_0x261fcf;switch(_0x294aed['commandName']){case'listStyle':_0xbda546='*Change\x20to:*\x20%0',_0x261fcf={'type':'format','content':c(_0x31b670,_0xbda546,c(_0x31b670,this['_getTranslationKeyForListStyle'](_0x294aed['commandParams'][0x0]['type'])))};break;case'listReversed':_0xbda546=_0x294aed['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x261fcf={'type':'format','content':c(_0x31b670,_0xbda546)};break;case'listStart':_0xbda546='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x261fcf={'type':'format','content':c(_0x31b670,_0xbda546,_0x294aed['commandParams'][0x0]['startIndex'])};}return _0x261fcf;}['_getSuggestionBlocksForListStyle'](){const _0x5cdf72=this['editor']['plugins']['get']('LegacyListUtils');let _0x4386bc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4386bc[0x0]?.['is']('element','listItem')&&_0x4386bc['unshift'](..._0x5cdf72['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4386bc[_0x4386bc['length']-0x1]?.['is']('element','listItem')&&_0x4386bc['push'](..._0x5cdf72['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4386bc=[...new Set(_0x4386bc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4386bc=_0x4386bc['filter'](_0x47a16e=>_0x47a16e['is']('element','listItem'))),_0x4386bc;}['_getSuggestionBlocks'](_0xd5db0e){const _0x5e52f2=this['editor']['plugins']['get']('LegacyListUtils');let _0x29d832=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xd5db0e)['map'](_0x29058f=>{const _0x19d260=this['editor']['model']['createPositionAt'](_0x29058f,0x0);return[..._0x5e52f2['getSiblingNodes'](_0x19d260,'backward'),..._0x5e52f2['getSiblingNodes'](_0x19d260,'forward')];})['flat']();return _0x29d832=[...new Set(_0x29d832)],_0x29d832;}['_getTranslationKeyForListStyle'](_0x2a7347){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2a7347)||'default')['toUpperCase']()+'_LIST_'+_0x2a7347['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x104d33{['afterInit'](){const _0x29f3d9=this['editor'];if(!_0x29f3d9['plugins']['has']('MediaEmbedEditing'))return;const _0x46b785=_0x29f3d9['plugins']['get']('TrackChangesEditing'),_0x524576=_0x29f3d9['locale'];_0x46b785['enableCommand']('mediaEmbed'),_0x46b785['descriptionFactory']['registerElementLabel']('media',_0x532682=>c(_0x524576,'ELEMENT_MEDIA',_0x532682)),_0x29f3d9['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4116c0,{writer:_0x437bf8,options:_0x189020})=>{if(_0x189020['showSuggestionHighlights'])return _0x437bf8['createEmptyElement']('div');},'converterPriority':'high'}),_0x29f3d9['data']['downcastDispatcher']['on']('attribute:url:media',(_0x11f440,_0x5967e2,_0x5ea988)=>{_0x5ea988['options']['showSuggestionHighlights']&&_0x11f440['stop']();},{'priority':'high'});}}class mt extends _0x104d33{['afterInit'](){const _0x2fd281=this['editor'];_0x2fd281['plugins']['has']('MentionEditing')&&_0x2fd281['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x104d33{['afterInit'](){const _0x4702fd=this['editor'];if(!_0x4702fd['plugins']['has']('MergeFieldsEditing'))return;const _0x3a76ff=_0x4702fd['plugins']['get']('TrackChangesEditing'),_0x2e5b65=_0x4702fd['locale'];_0x3a76ff['enableCommand']('insertMergeField'),_0x3a76ff['enableCommand']('insertMergeFieldBlock'),_0x3a76ff['enableCommand']('insertMergeFieldImage'),_0x3a76ff['descriptionFactory']['registerElementLabel']('mergeField',_0x4c7ec2=>c(_0x2e5b65,'ELEMENT_MERGE_FIELD',_0x4c7ec2)),_0x3a76ff['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3c7fb5=>c(_0x2e5b65,'ELEMENT_MERGE_FIELD',_0x3c7fb5)),_0x3a76ff['descriptionFactory']['registerDescriptionCallback'](_0x48f1b4=>{if('insertion'!=_0x48f1b4['type']&&'deletion'!=_0x48f1b4['type'])return;const _0x2dd17f=_0x48f1b4['getContainedElement']();if(null==_0x2dd17f)return;const _0x774447=_0x4702fd['plugins']['get']('MergeFieldsEditing');let _0x4cba6d;switch(_0x774447['getMergeFieldType'](_0x2dd17f)){case null:return;case'image':{const _0x25548a=_0x774447['unwrapAffixes'](_0x2dd17f['getAttribute']('src'));_0x4cba6d=_0x774447['getLabel'](_0x25548a)||_0x25548a;break;}default:{const _0x4518af=_0x2dd17f['getAttribute']('id');_0x4cba6d=_0x774447['getLabel'](_0x4518af)||_0x4518af;break;}}return'insertion'==_0x48f1b4['type']?{'type':'insertion','content':c(_0x2e5b65,'*Insert:*\x20%0','\x22'+_0x4cba6d+'\x22\x20'+c(_0x2e5b65,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2e5b65,'*Remove:*\x20%0','\x22'+_0x4cba6d+'\x22\x20'+c(_0x2e5b65,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x104d33{['afterInit'](){const _0x55a799=this['editor'],_0x3a61a5=_0x55a799['plugins']['get']('TrackChangesEditing');_0x55a799['plugins']['has']('MultiLevelList')&&(_0x3a61a5['enableDefaultAttributesIntegration']('multiLevelList'),_0x3a61a5['registerBlockAttribute']('listMarkerStyle'),_0x3a61a5['descriptionFactory']['registerDescriptionCallback'](_0xcc447c=>this['handleDescriptions'](_0xcc447c)));}['handleDescriptions'](_0x390a56){const _0x326eec=this['editor']['locale'],{data:_0x4deef4}=_0x390a56,_0x19e589={'type':'format','content':''};if(_0x4deef4&&'listMarkerStyle'==_0x4deef4['key']){if(!_0x4deef4['oldValue'])return{'type':'format','content':c(_0x326eec,'*Set\x20format:*\x20%0',c(_0x326eec,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4deef4['newValue']+')'};if(!_0x4deef4['newValue']){let _0xd40a92=_0x390a56['head'];for(;_0xd40a92;){if(_0xd40a92['data']&&'listType'==_0xd40a92['data']['key']&&_0xd40a92['data']['newValue'])return _0x19e589;_0xd40a92=_0xd40a92['next'];}return{'type':'format','content':c(_0x326eec,'*Remove\x20format:*\x20%0',c(_0x326eec,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4deef4['oldValue']+')'};}}}}class kt extends _0x104d33{['afterInit'](){const _0x3b7646=this['editor'];if(!_0x3b7646['plugins']['has']('PageBreakEditing'))return;_0x3b7646['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x24a51d=_0x3b7646['plugins']['get']('TrackChangesEditing'),_0x487652=_0x3b7646['locale'];_0x24a51d['descriptionFactory']['registerElementLabel']('pageBreak',_0x15c316=>c(_0x487652,'ELEMENT_PAGE_BREAK',_0x15c316));}}class bt extends _0x104d33{['afterInit'](){const _0x411e2e=this['editor'];if(!_0x411e2e['plugins']['has']('Paragraph'))return;const _0x1b1b4a=_0x411e2e['locale'],_0x56e0a5=_0x411e2e['plugins']['get']('TrackChangesEditing');_0x56e0a5['descriptionFactory']['registerElementLabel']('paragraph',_0x149f13=>c(_0x1b1b4a,'ELEMENT_PARAGRAPH',_0x149f13)),_0x56e0a5['enableDefaultAttributesIntegration']('paragraph'),_0x56e0a5['enableCommand']('insertParagraph'),_0x411e2e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x411e2e),{'priority':'highest'}),_0x411e2e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e45a9,_0x2f3de1,_0x361161)=>{_0x361161['options']['showSuggestionHighlights']&&nr(_0x411e2e,{'showActiveMarker':!0x1})(_0x1e45a9,_0x2f3de1,_0x361161);},{'priority':'highest'});const _0x244f02=_0x56e0a5['descriptionFactory'];_0x244f02['registerDescriptionCallback'](_0x18ed2a=>{if('insertion'!==_0x18ed2a['type'])return;const {start:_0x3b93cc,end:_0x330f47}=_0x18ed2a['getFirstRange']();if(!_0x3b93cc['isTouching'](_0x330f47)||!_0x3b93cc['nodeAfter'])return;const _0x3e5c56=_0x411e2e['model']['schema'],_0x34c0b5=_0x3b93cc['nodeAfter'];return _0x3e5c56['isBlock'](_0x34c0b5)&&!_0x3e5c56['isLimit'](_0x34c0b5)&&_0x3e5c56['checkChild'](_0x34c0b5,'$text')?{'type':'insertion','content':c(_0x1b1b4a,'*Insert:*\x20%0',_0x244f02['getItemLabel'](_0x34c0b5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ee924=this['editor'],_0x49f328=_0x3ee924['locale'];_0x3ee924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b6d56=>{if('formatBlock'!=_0x1b6d56['type'])return;const {data:_0x9a070b}=_0x1b6d56;return _0x9a070b&&'paragraph'==_0x9a070b['commandName']?{'type':'format','content':c(_0x49f328,'*Change\x20to:*\x20%0',c(_0x49f328,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x51ae58,{showActiveMarker:_0x2849a7=!0x0}={}){return(_0x208259,_0x2ea8a2,_0x415fb2)=>{const _0x2f9a2b=_0x51ae58['plugins']['get']('TrackChangesEditing'),_0x13f96f=_0x2ea8a2['markerRange']['start'],_0x30d289=_0x2ea8a2['markerRange']['end'],_0x2a683d=_0x51ae58['model']['schema'];if(!_0x13f96f['isTouching'](_0x30d289)||!_0x13f96f['nodeAfter'])return;const _0x82d7b4=_0x13f96f['nodeAfter'];if(_0x2a683d['isBlock'](_0x82d7b4)&&!_0x2a683d['isLimit'](_0x82d7b4)&&_0x2a683d['checkChild'](_0x82d7b4,'$text')){if(!_0x415fb2['consumable']['consume'](_0x2ea8a2['markerRange'],_0x208259['name']))return;const {authorId:_0x4b7009}=_0x2f9a2b['_splitMarkerName'](_0x2ea8a2['markerName']),_0x2e169b=_0x415fb2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4b7009}),_0x46466d=_0x415fb2['mapper']['toViewPosition'](_0x30d289);_0x2849a7&&_0x2f9a2b['activeMarkers']['includes'](_0x2ea8a2['markerName'])&&_0x415fb2['writer']['addClass']('ck-suggestion-marker--active',_0x2e169b),_0x415fb2['writer']['insert'](_0x46466d,_0x2e169b),_0x415fb2['mapper']['bindElementToMarker'](_0x2e169b,_0x2ea8a2['markerName']);}};}class yt extends _0x104d33{['afterInit'](){const _0x4ad888=this['editor'];if(!_0x4ad888['plugins']['has']('RemoveFormatEditing'))return;_0x4ad888['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7e793d=this['editor'];_0x7e793d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1902c0=>{if('formatBlock'!=_0x1902c0['type']&&'formatInline'!=_0x1902c0['type'])return;const {data:_0x4f988b}=_0x1902c0;return _0x4f988b&&'removeFormat'==_0x4f988b['commandName']?{'type':'format','content':c(_0x7e793d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x104d33{['afterInit'](){const _0x240880=this['editor'];if(!_0x240880['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xb3e8ab=_0x240880['plugins']['get']('TrackChangesEditing');_0xb3e8ab['enableCommand']('goToPreviousRestrictedEditingException'),_0xb3e8ab['enableCommand']('goToNextRestrictedEditingException');const _0x5b4446=_0x240880['plugins']['get']('RestrictedEditingModeEditing');_0x5b4446['enableCommand']('trackChanges'),_0x5b4446['enableCommand']('acceptSuggestion'),_0x5b4446['enableCommand']('discardSuggestion'),_0x5b4446['enableCommand']('acceptAllSuggestions'),_0x5b4446['enableCommand']('discardAllSuggestions'),_0x5b4446['enableCommand']('acceptSelectedSuggestions'),_0x5b4446['enableCommand']('discardSelectedSuggestions');}}class St extends _0x104d33{static get['requires'](){return[_0x84f1d4];}['init'](){const _0x31254f=this['editor'],_0xb030f8=_0x31254f['plugins']['get']('TrackChangesEditing');_0xb030f8['enableCommand']('shiftEnter'),_0x31254f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x31254f),{'priority':'high'}),_0x31254f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x31254f),{'priority':'high'}),_0x31254f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc83a02,_0x36b53c,_0x4d8e62)=>{_0x4d8e62['options']['showSuggestionHighlights']&&je(_0x31254f,{'showActiveMarker':!0x1})(_0xc83a02,_0x36b53c,_0x4d8e62);}),_0xb030f8['descriptionFactory']['registerElementLabel']('softBreak',_0x4ea2be=>c(_0x31254f['locale'],'ELEMENT_LINE_BREAK',_0x4ea2be));}}function je(_0x2e927a,{showActiveMarker:_0x3a5872=!0x0}={}){return(_0x3b8fde,_0x2206d5,_0x2e7196)=>{const _0x5f44f0=_0x2e927a['plugins']['get']('TrackChangesEditing');if(!_0x2e7196['consumable']['test'](_0x2206d5['markerRange'],_0x3b8fde['name']))return;const _0x266bca=_0x2e927a['model'];for(const _0x54ec6b of _0x2206d5['markerRange']['getItems']()){if(!_0x54ec6b['is']('element','softBreak'))continue;const _0x7db88f='deletion'==_0x2206d5['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5aab4c}=_0x5f44f0['_splitMarkerName'](_0x2206d5['markerName']),_0x15d7c1=_0x2e7196['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7db88f,'data-author-id':_0x5aab4c}),_0x254479=_0x2e7196['mapper']['toViewPosition'](_0x266bca['createPositionBefore'](_0x54ec6b));_0x3a5872&&_0x5f44f0['activeMarkers']['includes'](_0x2206d5['markerName'])&&_0x2e7196['writer']['addClass']('ck-suggestion-marker--active',_0x15d7c1),_0x2e7196['writer']['insert'](_0x254479,_0x15d7c1),_0x2e7196['mapper']['bindElementToMarker'](_0x15d7c1,_0x2206d5['markerName']);}};}class At extends _0x104d33{['afterInit'](){const _0x24f5a3=this['editor'],_0x228e86=_0x24f5a3['model'],_0x1710c7=_0x24f5a3['locale'];if(!_0x24f5a3['plugins']['has']('StandardEditingModeEditing'))return;const _0x4e1ae8=_0x24f5a3['plugins']['get']('TrackChangesEditing'),_0x2c1ca7='restrictedEditingException',_0x19d8ab=_0x24f5a3['commands']['get'](_0x2c1ca7);_0x4e1ae8['enableCommand'](_0x2c1ca7,(_0x3c2138,_0x34a9f7={})=>{const _0x28de4b=_0x228e86['document']['selection'];if(_0x28de4b['isCollapsed'])return void _0x3c2138(_0x34a9f7);const _0x1de7e9=void 0x0!==_0x34a9f7['forceValue']?_0x34a9f7['forceValue']:!_0x19d8ab['value'];_0x228e86['change'](()=>{const _0x4b0f68=Array['from'](_0x28de4b['getRanges']());for(const _0x65562e of _0x4b0f68){const _0x2e0ca2=_0x1de7e9?[_0x65562e]:no(_0x2c1ca7,_0x65562e,_0x228e86);for(const _0x21b842 of _0x2e0ca2)_0x4e1ae8['markInlineFormat'](_0x21b842,{'commandName':_0x2c1ca7,'commandParams':[{'forceValue':_0x1de7e9}]});}});}),_0x4e1ae8['descriptionFactory']['registerDescriptionCallback'](_0x233d69=>{if('formatBlock'!=_0x233d69['type']&&'formatInline'!=_0x233d69['type'])return;const {data:_0x478cf4}=_0x233d69;return _0x478cf4&&_0x478cf4['commandName']==_0x2c1ca7?_0x478cf4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1710c7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1710c7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x104d33{['afterInit'](){const _0x50f701=this['editor'];if(!_0x50f701['plugins']['has']('Style')||!_0x50f701['plugins']['has']('DataSchema'))return;const _0x46c784=_0x50f701['plugins']['get']('TrackChangesEditing'),_0x315cc3=_0x50f701['locale'],_0x168450=_0x50f701['config']['get']('style')||{},_0x135d2=_0x50f701['plugins']['get']('GeneralHtmlSupport'),_0x43c43d=_0x50f701['plugins']['get']('StyleUtils')['normalizeConfig'](_0x50f701['plugins']['get']('DataSchema'),_0x168450['definitions']);_0x46c784['enableDefaultAttributesIntegration']('style');const _0x42ad8e=new Set();for(const _0x262122 of _0x43c43d['block']){const _0xa845ba=_0x135d2['getGhsAttributeNameForElement'](_0x262122['element']);_0x42ad8e['add'](_0xa845ba);}const _0x47a59a=new Set();for(const _0x7527d2 of _0x43c43d['inline']){const _0x139416=_0x135d2['getGhsAttributeNameForElement'](_0x7527d2['element']);_0x47a59a['add'](_0x139416);for(const _0x29e673 of _0x7527d2['ghsAttributes'])_0x47a59a['add'](_0x29e673);}for(const _0x262ac0 of _0x42ad8e)_0x46c784['registerBlockAttribute'](_0x262ac0),_0x46c784['descriptionFactory']['registerAttributeLabel'](_0x262ac0,c(_0x315cc3,'FORMAT_STYLE'));for(const _0x18bc5a of _0x47a59a)_0x46c784['registerInlineAttribute'](_0x18bc5a),_0x46c784['descriptionFactory']['registerAttributeLabel'](_0x18bc5a,c(_0x315cc3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58824d=this['editor'],_0x2ae288=_0x58824d['locale'];_0x58824d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28af7c=>{if('formatBlock'!=_0x28af7c['type']&&'formatInline'!=_0x28af7c['type'])return;const {data:_0x1392c0}=_0x28af7c;return _0x1392c0&&'style'===_0x1392c0['commandName']?_0x1392c0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2ae288,'*Set\x20format:*\x20%0',_0x1392c0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x2ae288,'*Remove\x20format:*\x20%0',_0x1392c0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class _t extends _0x104d33{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4fb44a){super(_0x4fb44a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4911d2=this['editor'],_0x5e349d=_0x4911d2['model']['document']['selection'];if(!_0x4911d2['plugins']['has']('TableEditing'))return;const _0x53491f=_0x4911d2['locale'],_0x52881c=_0x4911d2['plugins']['get']('TrackChangesEditing'),_0x267c0c=_0x4911d2['plugins']['get']('TableUtils');_0x52881c['descriptionFactory']['registerElementLabel']('table',_0x6dcbba=>c(_0x53491f,'ELEMENT_TABLE',_0x6dcbba)),this['_setupColumnsRowsFixing'](),_0x52881c['enableCommand']('insertTable'),_0x52881c['enableCommand']('selectTableRow'),_0x52881c['enableCommand']('selectTableColumn');for(const _0x4341c5 of['insertTableRowAbove','insertTableRowBelow']){const _0x343fe0=_0x4911d2['commands']['get'](_0x4341c5);_0x52881c['enableCommand'](_0x4341c5,_0x18fa52=>{_0x4911d2['model']['change'](_0x5e16c3=>{_0x18fa52();const _0x831b06='above'===_0x343fe0['order'],_0x51d148=_0x267c0c['getSelectionAffectedTableCells'](_0x5e349d),_0xb8a8d4=_0x267c0c['getRowIndexes'](_0x51d148),_0x177393=_0x831b06?_0xb8a8d4['first']-0x1:_0xb8a8d4['last']+0x1,_0x513c0e=_0x51d148[0x0]['findAncestor']('table'),_0x25fae9=_0x267c0c['createTableWalker'](_0x513c0e,{'startRow':_0x177393,'endRow':_0x177393}),_0x383dd6=Array['from'](_0x25fae9)['map'](_0x2c425f=>_0x5e16c3['createRangeOn'](_0x2c425f['cell']));_0x52881c['markMultiRangeInsertion'](_0x383dd6,'tableRow');});});}for(const _0x150023 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1e3404=_0x4911d2['commands']['get'](_0x150023);_0x52881c['enableCommand'](_0x150023,_0x514fff=>{_0x4911d2['model']['change'](_0x186470=>{_0x514fff();const _0x235eb6='left'===_0x1e3404['order'],_0x4fc6fb=_0x267c0c['getSelectionAffectedTableCells'](_0x5e349d),_0x476069=_0x267c0c['getColumnIndexes'](_0x4fc6fb),_0x5e280d=_0x235eb6?_0x476069['first']-0x1:_0x476069['last']+0x1,_0x13b515=_0x4fc6fb[0x0]['findAncestor']('table'),_0x25a73e=_0x267c0c['createTableWalker'](_0x13b515,{'startRow':0x0,'column':_0x5e280d,'includeAllSlots':!0x1}),_0x1cd669=Array['from'](_0x25a73e)['map'](_0x32be99=>_0x186470['createRangeOn'](_0x32be99['cell']));_0x52881c['markMultiRangeInsertion'](_0x1cd669,'tableColumn');});});}for(const _0x3559ca of['removeTableRow','removeTableColumn']){const _0x373d3f=_0x3559ca['substr'](0xb),_0x239e30=_0x373d3f['toLowerCase'](),_0x584dea=_0x239e30['substr'](0x0,0x3)+'span',_0x14c8e8='table'+_0x373d3f,_0x2db779='min'+_0x373d3f,_0x3566f7='max'+_0x373d3f;_0x52881c['enableCommand'](_0x3559ca,()=>{_0x4911d2['model']['change'](_0x326710=>{const _0x4e1858=_0x267c0c['getSelectionAffectedTableCells'](_0x5e349d),_0x45a203=_0x4e1858[0x0]['findAncestor']('table');let _0x59d7ee;if('removeTableRow'==_0x3559ca){const _0x1fb6a8=_0x267c0c['getRowIndexes'](_0x4e1858);_0x59d7ee={'startRow':_0x1fb6a8['first'],'endRow':_0x1fb6a8['last'],'includeAllSlots':!0x0};}else{const _0x3063c1=_0x267c0c['getColumnIndexes'](_0x4e1858);_0x59d7ee={'startColumn':_0x3063c1['first'],'endColumn':_0x3063c1['last'],'includeAllSlots':!0x0};}const _0x5a27d3=_0x267c0c['createTableWalker'](_0x45a203,_0x59d7ee),_0x5ea84c=Array['from'](_0x5a27d3)['map'](({cell:_0x5d1f94})=>_0x5d1f94),_0x104a43=Ne(_0x5ea84c['filter'](_0x3d92a6=>_0x3d92a6['hasAttribute'](_0x584dea))),_0x3f349b=Ne(_0x5ea84c['filter'](_0x4b09b8=>!_0x4b09b8['hasAttribute'](_0x584dea)))['map'](_0x2f2663=>_0x326710['createRangeOn'](_0x2f2663)),_0x2c2e8b=_0x52881c['markMultiRangeDeletion'](_0x3f349b,_0x14c8e8);if(_0x2c2e8b&&('tableRow'==_0x2c2e8b['subType']||'tableColumn'==_0x2c2e8b['subType'])){const _0x2cfdaf=this['_getSuggestionCoords'](_0x2c2e8b);for(const _0x2dc734 of _0x104a43){const _0x198329=_0x326710['createRangeOn'](_0x2dc734),_0x4e9eca=_0x267c0c['getCellLocation'](_0x2dc734),_0x31aaa6=_0x2dc734['getAttribute'](_0x584dea)-0x1,_0x1b3e1b=_0x2cfdaf[_0x2db779],_0x1cd4e9=_0x2cfdaf[_0x3566f7];_0x1b3e1b<=_0x4e9eca[_0x239e30]&&_0x4e9eca[_0x239e30]+_0x31aaa6<=_0x1cd4e9&&_0x2c2e8b['addRange'](_0x198329);}}});});}function _0x10fb9f(_0x189452){const _0x1ee506=Array['from'](_0x5e349d['getRanges']())['map'](_0x14e769=>_0x27b625['fromRange'](_0x14e769));_0x4911d2['model']['change'](_0x64e9c0=>{const _0x19f247=_0x64e9c0['batch'];_0x189452=_0x189452['filter'](_0x1ba86e=>'$graveyard'!=_0x1ba86e['root']['rootName']),_0x64e9c0['setSelection'](_0x189452),_0x4911d2['commands']['get']('removeTableRow')['refresh'](),_0x4911d2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4911d2['model']['enqueueChange'](()=>{_0x4911d2['model']['enqueueChange'](_0x19f247,_0x2e0ad2=>{const _0x32ff68=_0x1ee506['filter'](_0x328fa5=>'$graveyard'!=_0x328fa5['root']['rootName']);_0x32ff68['length']>0x0&&_0x2e0ad2['setSelection'](_0x32ff68);for(const _0x99fb10 of _0x1ee506)_0x99fb10['detach']();});});});}function _0x5126bb(_0xe386a9){_0x4911d2['model']['change'](_0x54a329=>{const _0x8a6a37=Array['from'](_0x5e349d['getRanges']())['map'](_0xc6b14f=>_0x27b625['fromRange'](_0xc6b14f)),_0xff7b6b=[];for(const _0x59e733 of _0xe386a9)for(const _0x56c449 of _0x59e733['getItems']({'shallow':!0x0}))_0xff7b6b['push'](_0x56c449);for(const _0x3ab990 of _0xff7b6b)'$graveyard'!=_0x3ab990['root']['rootName']&&(_0x54a329['setSelection'](_0x54a329['createPositionAt'](_0x3ab990,0x0)),_0x4911d2['commands']['get']('removeTableColumn')['refresh'](),_0x4911d2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xd6cc73=_0x8a6a37['filter'](_0x3740bf=>'$graveyard'!=_0x3740bf['root']['rootName']);_0xd6cc73['length']>0x0&&_0x54a329['setSelection'](_0xd6cc73);for(const _0x1e7ea6 of _0x8a6a37)_0x1e7ea6['detach']();});}function _0x567d0b(_0x3f708c,_0x32a889){return _0x32a889['every'](_0x39fcd9=>_0x3f708c['some'](_0x2b0df6=>_0x2b0df6['end']['isEqual'](_0x39fcd9['start'])||_0x39fcd9['end']['isEqual'](_0x2b0df6['start'])));}function _0x5d30a8(_0x186b3d,_0x50bebf){return!_0x186b3d['some'](_0x38c256=>_0x50bebf['some'](_0x28b255=>_0x38c256['isIntersecting'](_0x28b255)))&&_0x186b3d['some'](_0x533a37=>_0x50bebf['some'](_0x22500e=>_0x533a37['end']['isTouching'](_0x22500e['start'])));}_0x4911d2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ac3ea,_0x1f4407,_0x262460)=>{if(!_0x262460['options']['showSuggestionHighlights'])return;const _0x340d70=_0x1f4407['item'];if(!_0x340d70)return;const _0x16d841=_0x262460['mapper']['toViewElement'](_0x340d70);function _0x2221d8(_0x334a16){return Array['isArray'](_0x334a16)?_0x334a16:[_0x334a16];}_0x16d841&&'tableCell'===_0x340d70['name']&&_0x2bf806(_0x16d841,_0x262460['writer'],(_0x157446,_0x448905,_0x475dba)=>_0x475dba['addClass'](_0x2221d8(_0x448905['classes']),_0x157446),(_0x51c538,_0x3bd9ab,_0x3fe441)=>_0x3fe441['removeClass'](_0x2221d8(_0x3bd9ab['classes']),_0x51c538));},{'priority':'highest'}),_0x52881c['descriptionFactory']['registerDescriptionCallback'](_0xbec2ac=>{if('insertion'!=_0xbec2ac['type']&&'deletion'!=_0xbec2ac['type'])return;const _0x15c3f0=_0xbec2ac['getContainedElement']();if(null!=_0x15c3f0&&_0x15c3f0['is']('element','table')){if('insertion'==_0xbec2ac['type']){const _0x431c00=_0xbec2ac['getItems']()['filter'](_0x1d0ae3=>_0x1d0ae3['is']('$textProxy'))['map'](_0x3202b3=>_0x3202b3['data']);if(_0x431c00['length'])return{'type':'insertion','content':c(_0x53491f,'*Insert:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x431c00['join']('\x20')+'\x22'))};}if('deletion'==_0xbec2ac['type']){const _0x42f938=_0xbec2ac['getItems']()['filter'](_0x4d5bde=>_0x4d5bde['is']('$textProxy'))['map'](_0x10feb0=>_0x10feb0['data']);if(_0x42f938['length'])return{'type':'deletion','content':c(_0x53491f,'*Remove:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42f938['join']('\x20')+'\x22'))};}}}),_0x52881c['descriptionFactory']['registerDescriptionCallback'](_0xc1d85e=>{if('tableRow'==_0xc1d85e['subType']){const _0xd21175=_0xc1d85e['getItems']()['filter'](_0x56db72=>_0x56db72['is']('$textProxy'))['map'](_0x291042=>_0x291042['data']),_0x1cd800=this['_getSuggestionCoords'](_0xc1d85e),_0x3a4209=_0x1cd800['maxRow']-_0x1cd800['minRow']+0x1;if('insertion'==_0xc1d85e['type'])return _0xd21175['length']?{'type':'insertion','content':c(_0x53491f,'*Insert:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a4209,'\x22'+_0xd21175['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x53491f,'*Insert:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_ROW',_0x3a4209))};if('deletion'==_0xc1d85e['type'])return _0xd21175['length']?{'type':'deletion','content':c(_0x53491f,'*Remove:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3a4209,'\x22'+_0xd21175['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x53491f,'*Remove:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_ROW',_0x3a4209))};}if('tableColumn'==_0xc1d85e['subType']){const _0x2c36a3=_0xc1d85e['getItems']()['filter'](_0x572ab9=>_0x572ab9['is']('$textProxy'))['map'](_0xf0e69d=>_0xf0e69d['data']),_0xbc7ed6=this['_getSuggestionCoords'](_0xc1d85e),_0x30fa21=_0xbc7ed6['maxColumn']-_0xbc7ed6['minColumn']+0x1;if('insertion'==_0xc1d85e['type'])return _0x2c36a3['length']?{'type':'insertion','content':c(_0x53491f,'*Insert:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x30fa21,'\x22'+_0x2c36a3['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x53491f,'*Insert:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_COLUMN',_0x30fa21))};if('deletion'==_0xc1d85e['type'])return _0x2c36a3['length']?{'type':'deletion','content':c(_0x53491f,'*Remove:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x30fa21,'\x22'+_0x2c36a3['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x53491f,'*Remove:*\x20%0',c(_0x53491f,'ELEMENT_TABLE_COLUMN',_0x30fa21))};}}),_0x52881c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x10fb9f),_0x52881c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x10fb9f),_0x52881c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5126bb),_0x52881c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5126bb),_0x52881c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x567d0b),_0x52881c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x567d0b),_0x52881c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5d30a8),_0x52881c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5d30a8);}['_acceptFormatSuggestionCallbackFactory'](){const _0x562fa9=this['editor'],_0x532f0a=_0x562fa9['model']['document']['selection'];return(_0x451a8b,_0x9f045d)=>{_0x562fa9['model']['change'](_0x3b3585=>{const {commandName:_0x5953af,commandParams:_0x562ef9}=_0x9f045d;let _0x2bca66=_0x451a8b[0x0]['end']['nodeBefore'];_0x562ef9&&_0x562ef9[0x0]&&!0x1===_0x562ef9[0x0]['forceValue']&&(_0x2bca66=_0x451a8b[0x0]['start']['nodeAfter']);const _0x2eca9f=_0x3b3585['createRangeIn'](_0x2bca66);if('$graveyard'==_0x2eca9f['root']['rootName'])return;const _0x539497=Array['from'](_0x532f0a['getRanges']())['map'](_0x3882c9=>_0x27b625['fromRange'](_0x3882c9));_0x3b3585['setSelection'](_0x2eca9f),_0x562fa9['commands']['get'](_0x5953af)['refresh'](),_0x562ef9['push']({'forceDefaultExecution':!0x0}),_0x562fa9['execute'](_0x5953af,..._0x562ef9);const _0x50bdc4=_0x539497['filter'](_0x4ff8be=>'$graveyard'!=_0x4ff8be['root']['rootName']);_0x50bdc4['length']>0x0&&_0x3b3585['setSelection'](_0x50bdc4);for(const _0x209002 of _0x539497)_0x209002['detach']();});};}['_getCoordsForCells'](_0x356f40){const _0x40a910=this['editor']['plugins']['get']('TableUtils');let _0x59f1e5=Number['MAX_SAFE_INTEGER'],_0x5d4157=Number['MIN_SAFE_INTEGER'],_0x17d46b=Number['MAX_SAFE_INTEGER'],_0x1a40fd=Number['MIN_SAFE_INTEGER'];for(const _0x261ceb of _0x356f40){if('$graveyard'==_0x261ceb['root']['rootName'])continue;const {row:_0x4d9fa8,column:_0x32dc32}=_0x40a910['getCellLocation'](_0x261ceb),_0x3c75f2=_0x261ceb['hasAttribute']('rowspan')?_0x261ceb['getAttribute']('rowspan')-0x1:0x0,_0x43af87=_0x261ceb['hasAttribute']('colspan')?_0x261ceb['getAttribute']('colspan')-0x1:0x0;_0x59f1e5=_0x4d9fa8<_0x59f1e5?_0x4d9fa8:_0x59f1e5,_0x5d4157=_0x4d9fa8+_0x3c75f2>_0x5d4157?_0x4d9fa8+_0x3c75f2:_0x5d4157,_0x17d46b=_0x32dc32<_0x17d46b?_0x32dc32:_0x17d46b,_0x1a40fd=_0x32dc32+_0x43af87>_0x1a40fd?_0x32dc32+_0x43af87:_0x1a40fd;}return{'minRow':_0x59f1e5,'maxRow':_0x5d4157,'minColumn':_0x17d46b,'maxColumn':_0x1a40fd};}['_setupColumnsRowsFixing'](){const _0x593b74=this['editor'],_0x33b2ba=_0x593b74['plugins']['get']('TrackChangesEditing'),_0x1098df=_0x593b74['plugins']['get']('TableUtils');_0x593b74['model']['document']['on']('change:data',()=>{const _0x32e370=Array['from'](_0x593b74['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x42443a,data:_0xcc015d}of _0x32e370){const {group:_0x185da2,id:_0x153d67,subType:_0x1e2613}=_0x33b2ba['_splitMarkerName'](_0x42443a);if('suggestion'!=_0x185da2)continue;if(null!=_0xcc015d['oldRange'])continue;const _0x1b7080=_0x33b2ba['getSuggestion'](_0x153d67);this['_tablePostFixingSubtypes']['includes'](_0x1e2613)&&this['_tableSuggestions']['add'](_0x1b7080);}},{'priority':'low'});const _0x135124=(_0x3c5c04,_0x5b5560)=>{let _0x410c50=!0x1;const _0x334f57=_0x5b5560['createRangeOn'](_0x3c5c04),_0x37fd9a=_0x3c5c04['findAncestor']('table'),_0x598950=_0x1098df['getCellLocation'](_0x3c5c04);for(const _0x52bd38 of this['_tableSuggestions']){const _0xf1c6c9=_0x52bd38['subType'],_0x1abe73=_0xf1c6c9['startsWith']('tablePaste'),_0x9fabbf=_0xf1c6c9['substr'](_0x1abe73?0xa:0x5),_0x785a3a=_0x9fabbf['toLowerCase'](),_0x5f5d57=_0x785a3a['substr'](0x0,0x3)+'span',_0x3c7a93='min'+_0x9fabbf,_0x416c41='max'+_0x9fabbf;if(!_0x52bd38['isInContent'])continue;if(_0x37fd9a!=_0x52bd38['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x52bd38['isIntersectingWithRange'](_0x334f57))continue;const _0x3aac6e=_0x3c5c04['hasAttribute'](_0x5f5d57)?_0x3c5c04['getAttribute'](_0x5f5d57)-0x1:0x0,_0x26fc15=this['_getSuggestionCoords'](_0x52bd38),_0x46c4e0=_0x26fc15[_0x3c7a93],_0x425bd3=_0x26fc15[_0x416c41];_0x46c4e0<=_0x598950[_0x785a3a]&&_0x598950[_0x785a3a]+_0x3aac6e<=_0x425bd3&&(_0x52bd38['addRange'](_0x334f57),_0x410c50=!0x0);}return _0x410c50;};_0x593b74['model']['document']['registerPostFixer'](_0x3ed2a1=>{let _0x2c6b23=!0x1;for(const _0x412d3e of _0x593b74['model']['document']['differ']['getChanges']())if('insert'==_0x412d3e['type']){if('tableRow'==_0x412d3e['name']){for(const _0x4a1390 of _0x412d3e['position']['nodeAfter']['getChildren']())_0x2c6b23=_0x2c6b23||_0x135124(_0x4a1390,_0x3ed2a1);}else'tableCell'==_0x412d3e['name']&&(_0x2c6b23=_0x2c6b23||_0x135124(_0x412d3e['position']['nodeAfter'],_0x3ed2a1));}return _0x2c6b23;});}['_getSuggestionCoords'](_0x5f839){return this['_getCoordsForCells'](_0x5f839['getRanges']()['map'](_0x18c269=>_0x18c269['start']['nodeAfter']));}}function Ne(_0x15e5d0){return Array['from'](new Set(_0x15e5d0)['values']());}class vt extends _0x104d33{static get['requires'](){return[_t];}['afterInit'](){const _0x56c97e=this['editor'],_0x5ec2a1=_0x56c97e['model']['document']['selection'],_0x5adbe1=_0x56c97e['locale'];if(!_0x56c97e['plugins']['has']('TableEditing'))return;const _0x3306cc=_0x56c97e['plugins']['get']('TrackChangesEditing'),_0x52f697=_0x56c97e['plugins']['get']('TableUtils'),_0x1a458c=_0x56c97e['plugins']['get'](_t);_0x1a458c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3306cc['enableCommand']('mergeTableCells',()=>{const _0x17d317=_0x52f697['getSelectionAffectedTableCells'](_0x56c97e['model']['document']['selection']);_0x56c97e['model']['change'](()=>{_0x3306cc['markMultiRangeBlockFormat'](_0x17d317,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x56c97e['commands']['get']('mergeTableCells')['on']('execute',(_0x533674,_0x28d557)=>{_0x56c97e['commands']['get']('trackChanges')['value']&&(_0x28d557['length']>0x0&&_0x28d557[_0x28d557['length']-0x1]&&_0x28d557[_0x28d557['length']-0x1]['forceDefaultExecution']||_0x3306cc['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x533674['stop']());},{'priority':'highest'});for(const _0x591726 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x112cb7=_0x56c97e['commands']['get'](_0x591726);_0x3306cc['enableCommand'](_0x591726,()=>{const _0xf937c9=_0x56c97e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2caa84=>_0x2caa84['is']('element','tableCell')),_0x4cabcf=_0x112cb7['value'];_0x56c97e['model']['change'](()=>{_0x3306cc['markMultiRangeBlockFormat']([_0xf937c9,_0x4cabcf],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5e951a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x478a20=_0x56c97e['commands']['get'](_0x5e951a);_0x3306cc['enableCommand'](_0x5e951a,()=>{const _0x1e5117=_0x52f697['getSelectionAffectedTableCells'](_0x56c97e['model']['document']['selection'])[0x0],_0x128870=_0x1e5117['findAncestor']('table'),{column:_0x1ff8d1,row:_0x1e1c0b}=_0x52f697['getCellLocation'](_0x1e5117);let _0x47cda8=[];if('horizontally'==_0x478a20['direction']){const _0x50a1c2=_0x52f697['createTableWalker'](_0x128870,{'startRow':_0x1e1c0b,'endRow':_0x1e1c0b,'includeAllSlots':!0x0});_0x47cda8=Array['from'](_0x50a1c2)['map'](_0x456aff=>_0x456aff['cell']);}else{const _0x2a632d=_0x52f697['createTableWalker'](_0x128870,{'column':_0x1ff8d1,'includeAllSlots':!0x0});_0x47cda8=Array['from'](_0x2a632d)['map'](_0x4c9555=>_0x4c9555['cell']);}_0x56c97e['model']['change'](_0x611b95=>{_0x3306cc['markBlockFormat'](_0x611b95['createRangeOn'](_0x1e5117),{'commandName':_0x5e951a,'commandParams':[]},_0x47cda8,_0x5e951a);});});}_0x3306cc['descriptionFactory']['registerDescriptionCallback'](_0x438baf=>{if('formatBlock'!=_0x438baf['type']&&'formatInline'!=_0x438baf['type'])return;const {data:_0x48abc9}=_0x438baf;return _0x48abc9&&'mergeTableCells'==_0x48abc9['commandName']?{'type':'format','content':c(_0x5adbe1,'*Merge\x20cells*')}:void 0x0;}),_0x3306cc['descriptionFactory']['registerDescriptionCallback'](_0x3e524c=>{if('formatBlock'!=_0x3e524c['type']&&'formatInline'!=_0x3e524c['type'])return;const {data:_0x455dbf}=_0x3e524c;return _0x455dbf?'splitTableCellVertically'==_0x455dbf['commandName']?{'type':'format','content':c(_0x5adbe1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x455dbf['commandName']?{'type':'format','content':c(_0x5adbe1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x571d99=_0x1a458c['_acceptFormatSuggestionCallbackFactory']();for(const _0x2124f6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3306cc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2124f6,'accept',_0x571d99);for(const _0x5ed7f9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3306cc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ed7f9,'accept',_0x571d99);_0x3306cc['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x11753d=>{_0x56c97e['model']['change'](_0x29f4f1=>{const _0x4add31=Array['from'](_0x5ec2a1['getRanges']())['map'](_0x4be738=>_0x27b625['fromRange'](_0x4be738));_0x29f4f1['setSelection'](_0x11753d),_0x56c97e['commands']['get']('mergeTableCells')['refresh'](),_0x56c97e['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x33191d=_0x4add31['filter'](_0x3bf3ba=>'$graveyard'!=_0x3bf3ba['root']['rootName']);_0x33191d['length']>0x0&&_0x29f4f1['setSelection'](_0x33191d);for(const _0x557023 of _0x4add31)_0x557023['detach']();});});for(const _0x56e300 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xff82b4=_0x56c97e['commands']['get'](_0x56e300);_0xff82b4['on']('set:isEnabled',(_0x1ad6c5,_0x189b0d,_0x2b39da)=>{if(_0x2b39da){const _0x36f89f=_0x56c97e['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x354383=>_0x354383['is']('element','tableCell'));this['_areMergableCells'](_0xff82b4['value'],_0x36f89f)||(_0x1ad6c5['return']=!0x1,_0x1ad6c5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1bc966=this['editor']['commands']['get']('mergeTableCells'),_0x1c1966=this['editor']['plugins']['get']('TableUtils');if(!_0x1bc966['isEnabled'])return!0x1;const _0x23d059=_0x1c1966['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3aae9c of _0x23d059)for(const _0x4e20dd of _0x23d059)if(_0x3aae9c!=_0x4e20dd&&!this['_areMergableCells'](_0x3aae9c,_0x4e20dd))return!0x1;return!0x0;}['_areMergableCells'](_0x4eb422,_0x4e97b4){const _0x38c485=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49e8b2=this['editor']['model']['createRangeOn'](_0x4eb422),_0x1eba0b=this['editor']['model']['createRangeOn'](_0x4e97b4),_0x275a36=new Set(),_0x4d490d=new Set();for(const _0x23c8e4 of _0x38c485['getSuggestions']())if(('insertion'==_0x23c8e4['type']||'deletion'==_0x23c8e4['type']||'mergeTableCells'==_0x23c8e4['subType'])&&_0x23c8e4['isInContent']){for(const _0x14cae8 of _0x23c8e4['getRanges']())_0x14cae8['containsRange'](_0x49e8b2,!0x0)&&_0x275a36['add'](_0x23c8e4['type']+':'+_0x23c8e4['author']['id']),_0x14cae8['containsRange'](_0x1eba0b,!0x0)&&_0x4d490d['add'](_0x23c8e4['type']+':'+_0x23c8e4['author']['id']);}if(_0x275a36['size']!=_0x4d490d['size'])return!0x1;for(const _0xbf4c98 of _0x275a36)if(!_0x4d490d['has'](_0xbf4c98))return!0x1;return!0x0;}}class Ct extends _0x104d33{static get['requires'](){return[_t];}['afterInit'](){const _0x4558ea=this['editor'];if(!_0x4558ea['plugins']['has']('TableEditing'))return;const _0x1cf608=_0x4558ea['locale'],_0x404b19=_0x4558ea['plugins']['get']('TrackChangesEditing');_0x404b19['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x404b19['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x404b19['registerBlockAttribute']('headingRows'),_0x404b19['registerBlockAttribute']('headingColumns'),_0x404b19['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x1cf608,'FORMAT_HEADER_ROW')),_0x404b19['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x1cf608,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x58ceaf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x569cc7=this['editor']['plugins']['get']('TableUtils'),_0x11870b=this['editor']['plugins']['get'](_t)['_acceptFormatSuggestionCallbackFactory']();function _0x4a7d43({showActiveMarker:_0x4e1ba1=!0x0,setDataAttribute:_0x2ac523=!0x0}={}){return(_0x443ca5,_0x8680ea,_0xc38c77)=>{const {type:_0x48d9b7,id:_0x555031}=_0x58ceaf['_splitMarkerName'](_0x8680ea['markerName']),_0x4de221=_0x58ceaf['getSuggestion'](_0x555031),_0x1cb081=_0x4de221['data'];if('formatBlock'!=_0x4de221['type']||!_0x1cb081||'setTableColumnHeader'!=_0x1cb081['commandName'])return;if(_0x8680ea['item'])return void _0x443ca5['stop']();if(!_0xc38c77['consumable']['consume'](_0x8680ea['markerRange'],_0x443ca5['name']))return;const _0x8334a4=_0x8680ea['markerRange']['start']['nodeAfter'],_0x280a38=_0x8680ea['markerRange']['end']['nodeBefore'],_0x4a534f=_0x8334a4['parent']['parent'],{column:_0x2c5153}=_0x569cc7['getCellLocation'](_0x8334a4),{column:_0x38a051}=_0x569cc7['getCellLocation'](_0x280a38);for(let _0x39719e=_0x2c5153;_0x39719e<=_0x38a051;_0x39719e++){const _0x451e51=_0x569cc7['createTableWalker'](_0x4a534f,{'column':_0x39719e,'includeAllSlots':!0x1});for(const _0x16c8c4 of _0x451e51){const _0x2e80e4=_0x16c8c4['cell'],_0x5588a3=_0xc38c77['mapper']['toViewElement'](_0x2e80e4);_0xc38c77['writer']['addClass']('ck-suggestion-marker-'+_0x48d9b7,_0x5588a3),_0x2ac523&&_0xc38c77['writer']['setAttribute']('data-suggestion',_0x555031,_0x5588a3),_0xc38c77['mapper']['bindElementToMarker'](_0x5588a3,_0x8680ea['markerName']),_0x4e1ba1&&(_0x58ceaf['activeMarkers']['includes'](_0x8680ea['markerName'])?_0xc38c77['writer']['addClass']('ck-suggestion-marker--active',_0x5588a3):_0xc38c77['writer']['removeClass']('ck-suggestion-marker--active',_0x5588a3));}}};}_0x58ceaf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x11870b),_0x58ceaf['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x11870b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4a7d43(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2898a3,_0x585cbf,_0x394dd1)=>{_0x394dd1['options']['showSuggestionHighlights']&&_0x4a7d43({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2898a3,_0x585cbf,_0x394dd1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2041a8,_0x1ffcc5,_0x797f78)=>{const {type:_0x21c19d,id:_0x55b634}=_0x58ceaf['_splitMarkerName'](_0x1ffcc5['markerName']),_0x501dd2=_0x58ceaf['getSuggestion'](_0x55b634),_0x40e570=_0x501dd2['data'];if('formatBlock'!=_0x501dd2['type']||!_0x40e570||'setTableColumnHeader'!=_0x40e570['commandName'])return;const _0x5045a3=_0x797f78['mapper']['markerNameToElements'](_0x1ffcc5['markerName']);if(_0x5045a3){for(const _0x47358a of _0x5045a3)_0x797f78['writer']['removeClass']('ck-suggestion-marker-'+_0x21c19d,_0x47358a),_0x797f78['writer']['removeClass']('ck-suggestion-marker--active',_0x47358a),_0x797f78['writer']['removeAttribute']('data-suggestion',_0x47358a),_0x797f78['mapper']['unbindElementFromMarkerName'](_0x47358a,_0x1ffcc5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46a9dd=this['editor'],_0x587f85=_0x46a9dd['locale'];function _0x2d17a5(_0x44e988){return{'type':'format','content':c(_0x587f85,'*Format:*\x20%0',_0x44e988)};}_0x46a9dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37ea4a=>{if('formatBlock'!=_0x37ea4a['type'])return;const {data:_0x52bda7}=_0x37ea4a;if(_0x52bda7){if('setTableRowHeader'==_0x52bda7['commandName']){const _0xf67176=_0x52bda7['commandParams'][0x0]['forceValue'];return _0x2d17a5(c(_0x587f85,_0xf67176?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x52bda7['commandName']){const _0x4fcf38=_0x52bda7['commandParams'][0x0]['forceValue'];return _0x2d17a5(c(_0x587f85,_0x4fcf38?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x2bfc94=>[_0x2bfc94,null]));class Nt extends _0x104d33{static get['requires'](){return[_t];}['afterInit'](){const _0x139a5d=this['editor'];if(!_0x139a5d['plugins']['has']('TableClipboard'))return;const _0x3a24a0=_0x139a5d['plugins']['get']('TrackChangesEditing'),_0x56a3df=_0x139a5d['plugins']['get']('TableUtils'),_0x1696d7=_0x139a5d['plugins']['get'](_t),_0x100a8e=_0x139a5d['plugins']['get']('TableClipboard');_0x1696d7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x139a5d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x139a5d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x589fea=null;_0x139a5d['model']['on']('insertContent',(_0x27d5e2,_0x3904c9)=>{const [_0x504fd8,_0x38642c]=_0x3904c9,_0x3a2f04=_0x3904c9[_0x3904c9['length']-0x1];_0x3a2f04&&_0x3a2f04['forceDefaultExecution']||_0x3a24a0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2718ce,_0x572e90,_0x4ddfa4,_0x34a1fd,_0x451f97){if(_0x572e90&&!_0x572e90['is']('documentSelection'))return!0x1;const _0x9f1d2b=_0x451f97['getTableIfOnlyTableInContent'](_0x2718ce,_0x4ddfa4);if(!_0x9f1d2b||!Ue(_0x9f1d2b,void 0x0,_0x34a1fd))return!0x1;const _0x5557cd=_0x34a1fd['getSelectionAffectedTableCells'](_0x4ddfa4['document']['selection']);if(!_0x5557cd['length'])return!0x1;const _0x3da4c5=_0x5557cd[0x0]['findAncestor']('table'),_0x575dbe=_0x34a1fd['getRowIndexes'](_0x5557cd),_0x28d7d1=_0x34a1fd['getColumnIndexes'](_0x5557cd),_0x2d4c12={'startRow':_0x575dbe['first'],'endRow':_0x575dbe['last'],'startColumn':_0x28d7d1['first'],'endColumn':_0x28d7d1['last']};return 0x1==_0x5557cd['length']&&(_0x2d4c12['endRow']+=_0x34a1fd['getRows'](_0x9f1d2b)-0x1,_0x2d4c12['endColumn']+=_0x34a1fd['getColumns'](_0x9f1d2b)-0x1),Ue(_0x3da4c5,_0x2d4c12,_0x34a1fd);}(_0x504fd8,_0x38642c,_0x139a5d['model'],_0x56a3df,_0x100a8e)&&(_0x27d5e2['stop'](),_0x589fea={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x139a5d['model']['change'](()=>{_0x139a5d['model']['insertContent'](_0x3904c9[0x0],_0x3904c9[0x1],_0x3904c9[0x2],{'forceDefaultExecution':!0x0});const _0x360de6=_0x5a1697(),{rowInsertionRanges:_0x4a4729,columnInsertionRanges:_0x3a5ce2,insertionRanges:_0x4060e4,deletionRanges:_0x142e09,cells:_0x3333be}=_0x589fea;_0x4a4729['length']&&_0x3a24a0['markMultiRangeInsertion'](_0x4a4729,'tablePasteRow',{'tablePasteChainId':_0x360de6}),_0x3a5ce2['length']&&_0x3a24a0['markMultiRangeInsertion'](_0x3a5ce2,'tablePasteColumn',{'tablePasteChainId':_0x360de6}),_0x4060e4['length']&&(_0x3a24a0['markMultiRangeInsertion'](_0x4060e4,'tablePaste',{'tablePasteChainId':_0x360de6,'skipNestingCheck':!0x0}),_0x4060e4['forEach'](_0x157520=>_0x157520['detach']?.())),_0x142e09['length']&&(_0x3a24a0['markMultiRangeDeletion'](_0x142e09,'tablePaste',{'tablePasteChainId':_0x360de6,'skipNestingCheck':!0x0}),_0x142e09['forEach'](_0x21a84a=>_0x21a84a['detach']?.()));const _0x3b2aa6=_0x3a24a0['markMultiRangeBlockFormat'](_0x3333be['map'](({element:_0x63d4e})=>_0x63d4e),{'formatGroupId':_0x5a1697()},[],'tablePasteCell',{'tablePasteChainId':_0x360de6});if(_0x3b2aa6){const _0x37572e=_0x3b2aa6['getMarkers'](),_0x329f06=[];for(const {element:_0x1eb5c0,attributes:_0x40a0e0}of _0x3333be){if(!_0x40a0e0)continue;const _0x4f981c=_0x139a5d['model']['createRangeOn'](_0x1eb5c0),_0x1f6f1a=_0x37572e['find'](_0x116a27=>_0x116a27['getRange']()['isEqual'](_0x4f981c));_0x1f6f1a&&_0x329f06['push']([_0x1f6f1a['name'],_0x40a0e0]);}_0x329f06['length']&&_0x3b2aa6['setAttribute']('markerAttributes',Object['fromEntries'](_0x329f06));}_0x589fea=null;}));},{'priority':_0x185083['high']+0xa}),_0x139a5d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xd864a2,_0x9abcbd)=>{const [_0x4ea11f,_0x4c16f7,,_0x356b6e]=_0x9abcbd;if(!_0x589fea)return;_0xd864a2['stop']();const _0x2b1b9e=_0x4ea11f['cell'],_0xdd3f18=_0x4c16f7,_0x48846d=Oe(_0x2b1b9e),_0x4a3238=Oe(_0xdd3f18);_0xd864a2['return']=_0x2b1b9e;let _0x4c219d=null,_0x45c567=null;if(_0x4a3238||_0x48846d){if(_0x48846d&&!_0x4a3238){_0x356b6e['remove'](_0x2b1b9e['getChild'](0x0));for(const _0x223247 of Array['from'](_0xdd3f18['getChildren']()))_0x356b6e['insert'](_0x223247,_0x2b1b9e,'end');const _0x203838=_0x589fea['rowInsertionIndexes']['includes'](_0x4ea11f['row']),_0x8648ae=_0x589fea['columnInsertionIndexes']['includes'](_0x4ea11f['column']);_0x203838||_0x8648ae||(_0x4c219d=_0x27b625['fromRange'](_0x356b6e['createRangeIn'](_0x2b1b9e)));}else _0x4a3238&&!_0x48846d&&(_0x45c567=_0x356b6e['createRangeIn'](_0x2b1b9e));}else{const _0x267661=_0x356b6e['createElement']('tableCellSuggestion'),_0x581c27=_0x356b6e['createElement']('tableCellSuggestion');_0x356b6e['wrap'](_0x356b6e['createRangeIn'](_0x2b1b9e),_0x581c27),_0x356b6e['insert'](_0x267661,_0x2b1b9e,0x0);for(const _0x341463 of Array['from'](_0xdd3f18['getChildren']()))_0x356b6e['insert'](_0x341463,_0x267661,'end');_0x4c219d=_0x27b625['fromRange'](_0x356b6e['createRangeOn'](_0x267661)),_0x45c567=_0x27b625['fromRange'](_0x356b6e['createRangeOn'](_0x581c27));}const _0x1ae943=Array['from'](_0xdd3f18['getAttributes']())['filter'](([_0x260fb1])=>Be['includes'](_0x260fb1));_0x589fea['cells']['push']({'element':_0x2b1b9e,'attributes':_0x1ae943['length']?Object['fromEntries'](_0x1ae943):null}),_0x4c219d&&_0x589fea['insertionRanges']['push'](_0x4c219d),_0x45c567&&_0x589fea['deletionRanges']['push'](_0x45c567);},{'priority':'high'}),_0x56a3df['on']('insertColumns',(_0x306b3e,_0x26ead1)=>{const [_0x16e5b3,_0x272c29={}]=_0x26ead1;if(!_0x589fea)return;const _0x1e270e=_0x272c29['at']||0x0,_0x4bc9d1=_0x272c29['columns']||0x1;_0x589fea['columnInsertionIndexes']=new Array(_0x4bc9d1)['fill'](_0x1e270e)['map']((_0x376fc9,_0x3020de)=>_0x376fc9+_0x3020de);for(const {cell:_0x341aa2}of _0x56a3df['createTableWalker'](_0x16e5b3,{'startColumn':_0x1e270e,'endColumn':_0x1e270e+_0x4bc9d1-0x1}))_0x589fea['columnInsertionRanges']['push'](_0x139a5d['model']['createRangeOn'](_0x341aa2));},{'priority':'low'}),_0x56a3df['on']('insertRows',(_0x599297,_0x4216f6)=>{const [_0x406690,_0x30e56a={}]=_0x4216f6;if(!_0x589fea)return;const _0x155b38=_0x30e56a['at']||0x0,_0xd939a9=_0x30e56a['rows']||0x1;_0x589fea['rowInsertionIndexes']=new Array(_0xd939a9)['fill'](_0x155b38)['map']((_0x4a4c33,_0x184115)=>_0x4a4c33+_0x184115);for(const {cell:_0x1f98bc}of _0x56a3df['createTableWalker'](_0x406690,{'startRow':_0x155b38,'endRow':_0x155b38+_0xd939a9-0x1}))_0x589fea['rowInsertionRanges']['push'](_0x139a5d['model']['createRangeOn'](_0x1f98bc));},{'priority':'low'}),_0x3a24a0['descriptionFactory']['registerDescriptionCallback'](_0x27248c=>{if(_0x27248c['subType']&&_0x27248c['subType']['startsWith']('tablePaste'))return _0x27248c['previous']?{}:{'type':'insertion','content':c(_0x139a5d['locale'],'*Replace\x20table\x20cells*')};});const _0x31635c=()=>!0x1;for(const _0x547ed1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3a24a0['_suggestionFactory']['registerCustomCallback']('insertion',_0x547ed1,'join',_0x31635c),_0x3a24a0['_suggestionFactory']['registerCustomCallback']('deletion',_0x547ed1,'join',_0x31635c),_0x3a24a0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x547ed1,'join',_0x31635c);_0x3a24a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x31635c),_0x3a24a0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x358f7f,_0x535e6e,_0x552f3f)=>{const _0x6a606=_0x358f7f['map'](_0x402099=>_0x402099['getContainedElement']())['filter'](_0x4a074b=>_0x4a074b),_0x227d21=new Map(_0x6a606['map'](_0x511241=>[_0x511241,null]));if(_0x589fea){for(const {element:_0x191c87,attributes:_0xb6c44}of _0x589fea['cells'])_0xb6c44&&_0x227d21['set'](_0x191c87,_0xb6c44);}else{if(_0x552f3f&&_0x552f3f['markerAttributes'])for(const [_0xea4230,_0x164af9]of Object['entries'](_0x552f3f['markerAttributes'])){const _0x50e78e=_0x139a5d['model']['markers']['get'](_0xea4230),_0x36c2c8=_0x50e78e?_0x50e78e['getRange']()['getContainedElement']():null;_0x36c2c8&&_0x227d21['set'](_0x36c2c8,_0x164af9);}}_0x139a5d['model']['change'](_0x491797=>{for(const [_0x590833,_0x51e2f9]of _0x227d21)_0x491797['setAttributes']({...xe,..._0x51e2f9},_0x590833);});});const _0x21c59d=(_0x25589b,_0xed0ef5)=>{_0x3a24a0['_suggestionFactory']['registerCustomCallback'](_0x25589b,'tablePaste',_0xed0ef5,(_0x3048e8,_0x5f4eda,_0x5a12f3)=>{_0x139a5d['model']['change'](_0x414cc5=>{const _0x1c04c9=[];for(const _0x7a690b of _0x3048e8){const _0x5e34bd=_0x7a690b['start']['nodeAfter'];_0x5e34bd['is']('element','tableCellSuggestion')&&_0x1c04c9['push'](_0x5e34bd);}_0x3a24a0['_suggestionFactory']['getSuggestionCallback'](_0x25589b,null,_0xed0ef5)(_0x3048e8,_0x5f4eda,_0x5a12f3);for(const _0x47446c of _0x1c04c9)'$graveyard'!=_0x47446c['root']['rootName']&&_0x414cc5['unwrap'](_0x47446c);});});};_0x21c59d('insertion','accept'),_0x21c59d('insertion','discard'),_0x21c59d('deletion','accept'),_0x21c59d('deletion','discard'),_0x3a24a0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x295e17=>{const _0xf628a0=_0x295e17['map'](_0x368d23=>_0x368d23['getContainedElement']()),_0xf850e9=_0xf628a0[0x0]['findAncestor']('table'),{minRow:_0x4767b2,maxRow:_0x5d3fbc}=_0x1696d7['_getCoordsForCells'](_0xf628a0);_0x56a3df['removeRows'](_0xf850e9,{'at':_0x4767b2,'rows':_0x5d3fbc-_0x4767b2+0x1});}),_0x3a24a0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x455e49=>{const _0x575ea2=_0x455e49['map'](_0xe174cf=>_0xe174cf['getContainedElement']()),_0x32adff=_0x575ea2[0x0]['findAncestor']('table'),{minColumn:_0x12e000,maxColumn:_0x1f26b0}=_0x1696d7['_getCoordsForCells'](_0x575ea2);_0x56a3df['removeColumns'](_0x32adff,{'at':_0x12e000,'columns':_0x1f26b0-_0x12e000+0x1});});const _0x247aa0=(_0x499110,_0x76dd98)=>{if(!_0x76dd98['subType']||!_0x76dd98['subType']['startsWith']('tablePaste'))return;const _0x5e6453=_0x76dd98['attributes']['tablePasteChainId'],_0x36c94d=_0x3a24a0['getSuggestions']()['filter'](_0x1b535b=>_0x1b535b['isInContent']&&_0x1b535b['attributes']&&_0x1b535b['attributes']['tablePasteChainId']==_0x5e6453);_0x36c94d['length']&&_0x76dd98['getAllAdjacentSuggestions']()['length']!=_0x36c94d['length']&&_0x36c94d['reduce']((_0x56b5a6,_0x4e253b)=>(_0x56b5a6['next']=_0x4e253b,_0x4e253b['previous']=_0x56b5a6,_0x4e253b));};function _0x38ce0e(_0x20b469,_0x4d3b3b=!0x0){const {id:_0x2c4023,authorId:_0x265133}=_0x3a24a0['_splitMarkerName'](_0x20b469['markerName']),_0x5afc48=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x500808=_0x3a24a0['activeMarkers']['includes'](_0x20b469['markerName']);return _0x500808&&_0x5afc48['push']('ck-suggestion-marker--active'),{'classes':_0x5afc48,'attributes':{'data-suggestion':_0x2c4023,'data-author-id':_0x265133},'priority':_0x500808&&_0x4d3b3b?0xbc2:0xbb8};}_0x3a24a0['on']('suggestionLoaded',_0x247aa0,{'priority':'high'}),_0x3a24a0['on']('suggestionUnloaded',_0x247aa0,{'priority':'high'}),_0x139a5d['model']['document']['registerPostFixer'](()=>{let _0x3ceb11=!0x1;const _0x4bbe37=Array['from'](_0x139a5d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43fa2c,data:_0x524f3f}of _0x4bbe37){const {group:_0x1e421d,type:_0x57b385,id:_0x31632c}=_0x3a24a0['_splitMarkerName'](_0x43fa2c);if('suggestion'!=_0x1e421d||'deletion'!=_0x57b385||_0x524f3f['oldRange'])continue;if(!_0x3a24a0['hasSuggestion'](_0x31632c))continue;const _0x5acd97=_0x3a24a0['getSuggestion'](_0x31632c)['getRanges'](),_0x5463bc=_0x139a5d['plugins']['get']('Users')['me'];for(const _0x5bac73 of _0x3a24a0['getSuggestions']()){if(!_0x5bac73['isInContent']||_0x5bac73['author']!=_0x5463bc)continue;if('formatBlock'!=_0x5bac73['type']||'tablePasteCell'!=_0x5bac73['subType'])continue;if(_0x5bac73['getRanges']()['every'](_0x316b8d=>_0x5acd97['some'](_0x3f81f3=>_0x3f81f3['containsRange'](_0x316b8d,!0x0)))){for(const _0x8c66e1 of _0x5bac73['getAllAdjacentSuggestions']())_0x8c66e1['isInContent']&&(_0x8c66e1['discard'](),_0x3ceb11=!0x0);}}}return _0x3ceb11;}),_0x139a5d['model']['document']['registerPostFixer'](_0x25d20f=>{const _0x1c8c34=_0x139a5d['commands']['get']('redo');if(!_0x1c8c34||!_0x1c8c34['_createdBatches']['has'](_0x25d20f['batch']))return!0x1;let _0x236cc4=!0x1;const _0x101d57=_0x139a5d['plugins']['get']('Users')['me'],_0x13e347=_0x139a5d['model']['document']['differ']['getChanges'](),_0x53d58d=Array['from'](_0x139a5d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1007a4,data:_0x1b7ac1})=>{const {group:_0x2d8a4b,subType:_0xebc620,authorId:_0x3eef80}=_0x3a24a0['_splitMarkerName'](_0x1007a4);return'suggestion'==_0x2d8a4b&&'tablePaste'==_0xebc620&&_0x3eef80==_0x101d57['id']&&!_0x1b7ac1['oldRange'];});for(const _0x3f69b5 of _0x13e347){if('insert'!=_0x3f69b5['type']||'tableCellSuggestion'!=_0x3f69b5['name']||0x1!=_0x3f69b5['length'])continue;const _0x47b0d3=_0x25d20f['createRange'](_0x3f69b5['position'],_0x3f69b5['position']['getShiftedBy'](0x1));if(!_0x53d58d['find'](({data:_0x4eea96})=>_0x4eea96['newRange']['isEqual'](_0x47b0d3))){for(const {name:_0xcba97a,data:_0x45cddf}of _0x53d58d)if(_0x47b0d3['containsRange'](_0x45cddf['newRange'])){_0x25d20f['updateMarker'](_0xcba97a,{'range':_0x47b0d3}),_0x236cc4=!0x0;break;}}}return _0x236cc4;}),_0x139a5d['model']['document']['registerPostFixer'](_0x507fdf=>{let _0x34588f=!0x1;const _0x1618bb=_0x139a5d['plugins']['get']('Users')['me'],_0x25cbf5=_0x3a24a0['getSuggestions']()['filter'](_0x2aa2a9=>_0x2aa2a9['isInContent']&&_0x2aa2a9['author']==_0x1618bb),_0x5aad81=new Set(),_0x4ad4a8=new Set();for(const _0x41a36c of _0x25cbf5)if('tablePaste'==_0x41a36c['subType'])for(const _0x557da2 of _0x41a36c['getMarkers']()){const _0x143697=_0x557da2['getRange']()['getContainedElement']();if(_0x143697){if(_0x143697['is']('element','tableCellSuggestion')&&Oe(_0x143697)){_0x41a36c['removeMarker'](_0x557da2['name']),_0x5aad81['add'](_0x143697),_0x34588f=!0x0;const _0x498d92=_0x143697['nextSibling'],_0x220720=_0x143697['previousSibling'],_0x157338=_0x498d92&&_0x498d92['is']('element','tableCellSuggestion'),_0x7a40d1=_0x220720&&_0x220720['is']('element','tableCellSuggestion');_0x157338&&!_0x5aad81['has'](_0x498d92)&&_0x4ad4a8['add'](_0x498d92),_0x7a40d1&&!_0x5aad81['has'](_0x220720)&&_0x4ad4a8['add'](_0x220720);}else _0x143697['is']('element','paragraph')&&_0x143697['isEmpty']&&(_0x41a36c['removeMarker'](_0x557da2['name']),_0x34588f=!0x0);}}else{if('tablePasteCell'==_0x41a36c['subType']){if(!_0x41a36c['attributes']||!_0x41a36c['attributes']['tablePasteChainId'])continue;const _0x4d100c=_0x41a36c['attributes']['markerAttributes'];if(_0x4d100c&&Object['keys'](_0x4d100c)['length'])continue;const _0x109929=_0x41a36c['attributes']['tablePasteChainId'];let _0x2ba78d=!0x0,_0x595a8b=!0x0;for(const _0x19e21b of _0x25cbf5)if(_0x19e21b['subType']&&_0x19e21b['subType']['startsWith']('tablePaste')){if(!_0x19e21b['attributes']['tablePasteChainId']){_0x595a8b=!0x1;break;}if(_0x19e21b['id']!=_0x41a36c['id']&&_0x19e21b['attributes']['tablePasteChainId']==_0x109929){_0x2ba78d=!0x1;break;}}_0x595a8b&&_0x2ba78d&&(_0x41a36c['removeMarkers'](),_0x34588f=!0x0);}}for(const _0x20c957 of _0x5aad81)_0x507fdf['remove'](_0x20c957);for(const _0x22d6f8 of _0x4ad4a8)_0x507fdf['unwrap'](_0x22d6f8);return _0x34588f;}),_0x139a5d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x23c5f6=>_0x38ce0e(_0x23c5f6),'converterPriority':'high'}),_0x139a5d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x546a6a,_0x10a4f1)=>_0x10a4f1['options']['showSuggestionHighlights']?_0x38ce0e(_0x546a6a,!0x1):null,'converterPriority':'high'});const _0x2dd719=_0x139a5d['editing']['view'];this['listenTo'](_0x2dd719['document'],'clipboardOutput',(_0x43a015,_0x4e4ad0)=>{const _0x5dafed=[];for(const _0x5128a1 of _0x2dd719['createRangeIn'](_0x4e4ad0['content'])['getItems']())_0x5128a1['is']('element','suggestion-td')&&_0x5dafed['push'](_0x5128a1);_0x2dd719['change'](_0x1480d8=>{for(const _0x1ee3b3 of _0x5dafed)_0x1480d8['move'](_0x1480d8['createRangeIn'](_0x1ee3b3),_0x1480d8['createPositionBefore'](_0x1ee3b3)),_0x1480d8['remove'](_0x1ee3b3);});});}}function Oe(_0x5baff6){if(_0x5baff6['isEmpty'])return!0x0;const _0x2e2403=_0x5baff6['getChild'](0x0);return _0x2e2403['is']('element','paragraph')&&_0x2e2403['isEmpty'];}function Ue(_0x2fd884,_0x52dc2a={},_0xa1faf0){for(const {isAnchor:_0x263bb2,cellHeight:_0x53bf1e,cellWidth:_0x1f0960}of _0xa1faf0['createTableWalker'](_0x2fd884,{'includeAllSlots':!0x0,..._0x52dc2a}))if(!_0x263bb2||0x1!=_0x53bf1e||0x1!=_0x1f0960)return!0x1;return!0x0;}class Dt extends _0x104d33{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5367b9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5367b9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5367b9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5367b9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5367b9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5367b9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5367b9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4594bd,_0x28bd3f){const _0x3c2b34=this['editor']['plugins']['get']('TrackChangesEditing'),_0x408573=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x55e56b=_0x28bd3f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5bafe0=_0x408573['getColumnGroupElement'](_0x55e56b);let _0x5a2600=_0x5bafe0?_0x408573['getTableColumnsWidths'](_0x5bafe0):null,_0x218bd2=_0x55e56b['getAttribute']('tableWidth')||null;const _0x427430=_0x28bd3f['tableWidth']||_0x218bd2,_0x56e346=_0x28bd3f['columnWidths']||_0x5a2600,_0x2b7c73=this['editor']['plugins']['get']('Users')['me'];for(const _0x17f674 of _0x3c2b34['getSuggestions']()){const _0x3ed63e=_0x17f674['getContainedElement']();if('resizeTable'===_0x17f674['subType']&&_0x3ed63e===_0x55e56b){_0x17f674['author']!==_0x2b7c73&&_0x17f674['discard']();const _0x234d87=_0x17f674['data']['commandParams'];_0x218bd2=_0x234d87[0x0]['tableWidth'],_0x5a2600=_0x234d87[0x0]['columnWidths'];break;}}_0x4594bd({'table':_0x55e56b,'tableWidth':_0x427430,'columnWidths':_0x56e346}),_0x3c2b34['markBlockFormat'](_0x55e56b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x218bd2,'columnWidths':_0x5a2600}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5b9df0){if('formatBlock'!=_0x5b9df0['type']&&'formatInline'!=_0x5b9df0['type'])return;const {data:_0x112aa8}=_0x5b9df0;if(_0x112aa8&&'resizeTable'===_0x112aa8['formatGroupId']){const _0x308940='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x308940)};}}}class Mt extends _0x104d33{['afterInit'](){const _0x5b9e72=this['editor'];_0x5b9e72['plugins']['has']('Template')&&_0x5b9e72['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x104d33{['afterInit'](){const _0x3e37e6=this['editor'];if(!_0x3e37e6['commands']['get']('insertTableOfContents'))return;_0x3e37e6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x106ac7=_0x3e37e6['plugins']['get']('TrackChangesEditing'),_0x294b33=_0x3e37e6['locale'];_0x106ac7['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5c8c72=>c(_0x294b33,'ELEMENT_TABLE_OF_CONTENTS',_0x5c8c72));}}class Bt extends _0x104d33{['afterInit'](){const _0x5b53d8=this['editor'];if(!_0x5b53d8['plugins']['has']('Title'))return;const _0x1c4bca=_0x5b53d8['plugins']['get']('TrackChangesEditing');_0x1c4bca['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5b53d8['locale'],'ELEMENT_TITLE')),_0x5b53d8['model']['document']['registerPostFixer'](_0x1fd9ef=>{let _0x558f03=!0x1;const _0x182a2f=Array['from'](_0x5b53d8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x227b65,data:_0x5e36f0}of _0x182a2f){const {group:_0x57b22f}=_0x1c4bca['_splitMarkerName'](_0x227b65);if('suggestion'!==_0x57b22f||!_0x5e36f0['newRange'])continue;const _0x2352a6=_0x5e36f0['newRange'],_0x3e10db=_0x2352a6['end']['nodeBefore'];if(!_0x3e10db||!_0x3e10db['is']('element','title-content'))continue;if(!_0x2352a6['start']['isTouching'](_0x2352a6['end']))continue;const _0x36b557=_0x5b53d8['model']['schema']['getNearestSelectionRange'](_0x2352a6['end'],'forward');if(_0x36b557&&_0x36b557['isCollapsed']){const _0x5b9d23=_0x1fd9ef['createRange'](_0x2352a6['start'],_0x36b557['start']);_0x5b9d23['isEqual'](_0x2352a6)||(_0x1fd9ef['updateMarker'](_0x227b65,{'range':_0x5b9d23}),_0x558f03=!0x0);}_0x558f03||(_0x1fd9ef['removeMarker'](_0x227b65),_0x558f03=!0x0);}return _0x558f03;});}}class Ot extends _0x104d33{['afterInit'](){const _0x474d9b=this['editor'],_0x431d73=_0x474d9b['plugins']['get']('TrackChangesEditing');_0x474d9b['plugins']['has']('Uploadcare')&&(_0x431d73['enableCommand']('uploadcare'),_0x474d9b['plugins']['has']('UploadcareImageEdit')&&(_0x431d73['enableCommand']('uploadcareImageEdit'),_0x431d73['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x431d73['registerBlockAttribute']('uploadcareImageId'),_0x431d73['descriptionFactory']['registerDescriptionCallback'](_0x2f5876=>{if('attribute'!=_0x2f5876['type'])return;const {data:_0x12a26c}=_0x2f5876;return _0x12a26c&&'uploadcareImageId'==_0x12a26c['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x104d33{['afterInit'](){const _0x163034=this['editor'],_0x53708e=_0x163034['plugins']['get']('TrackChangesEditing');_0x163034['plugins']['has']('UndoEditing')&&(_0x53708e['enableCommand']('undo'),_0x53708e['enableCommand']('redo'));}}class xt extends _0x104d33{static get['requires'](){return[_t];}['afterInit'](){const _0x3d7ad3=this['editor'];if(!_0x3d7ad3['plugins']['has']('TableCaptionEditing'))return;_0x3d7ad3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x104d33{['tableProperties'];['tableCellProperties'];constructor(_0x49b402){super(_0x49b402),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x43515d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3b9942 of this['tableProperties'])_0x43515d['enableCommand'](_0x3b9942,(_0x45990a,_0x4c49e3)=>{const _0x1955b9=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3b9942,[_0x1955b9],this['tableProperties'],'tableProperties',_0x45990a,_0x4c49e3);});_0x43515d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x43515d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x43515d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4463c3,_0x20c4f1)=>this['handleDiscardAction'](this['tableProperties'],_0x4463c3,_0x20c4f1)),_0x43515d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2dd142 of this['tableCellProperties'])_0x43515d['enableCommand'](_0x2dd142,(_0x451b3f,_0x21d10b)=>{const _0x16b405=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2dd142,_0x16b405,this['tableCellProperties'],'tableCellProperties',_0x451b3f,_0x21d10b);});_0x43515d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x43515d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x43515d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4bbab7,_0x320354)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4bbab7,_0x320354)),_0x43515d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x43515d['descriptionFactory']['registerDescriptionCallback'](_0x4de690=>this['handleSuggestionDescription'](_0x4de690));}['_handlePropertyChange'](_0xfd58ee,_0x231107,_0x246aa6,_0x2b3629,_0x51f939,_0x1bcbf8){const _0x16b318=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1bcbf8['batch'],()=>{for(const _0xb5a654 of _0x231107){if(this['_getSuggestion'](_0xb5a654,_0x2b3629))_0x51f939(_0x1bcbf8);else{const _0x5c3856={};for(const _0x283466 of _0x246aa6){const _0x56112a=_0xb5a654['getAttribute'](_0x283466);void 0x0!==_0x56112a&&(_0x5c3856[_0x283466]=_0x56112a);}_0x51f939(_0x1bcbf8),_0x16b318['markBlockFormat'](_0xb5a654,{'commandParams':[_0x5c3856]},[],_0x2b3629);}}});}['handleDiscardAction'](_0x2c8cef,_0x1c0cf2,_0x17836d){const _0x9350e7=_0x1c0cf2[0x0]['start']['nodeAfter'],_0x23a44f=_0x17836d['commandParams'][0x0];this['editor']['model']['change'](_0x1dda21=>{for(const _0x1e721c of _0x2c8cef)void 0x0!==_0x23a44f[_0x1e721c]?_0x1dda21['setAttribute'](_0x1e721c,_0x23a44f[_0x1e721c],_0x9350e7):_0x1dda21['removeAttribute'](_0x1e721c,_0x9350e7);});}['handleSuggestionDescription'](_0x4b2980){if(_0x4b2980['data'])switch(_0x4b2980['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x57a09b,_0x499bd1){const _0x4a5eb5=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x50afee of _0x4a5eb5['getSuggestions']({'skipNotAttached':!0x0})){const _0x3be27=_0x50afee['getContainedElement']();if(_0x50afee['subType']===_0x499bd1&&_0x3be27===_0x57a09b)return _0x50afee;}return null;}}const u='$elementName';class p extends _0x104d33{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1615a7,_0x4e2c61,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,_t,vt,Ct,xt,Nt,Dt,$t,Tt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xed42bd){super(_0xed42bd),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4c7984,_0x2181ff,_0x1a0446,_0x277112)=>{this['_model']['change'](()=>{for(const _0x3885e9 of[..._0x277112,..._0x1a0446])this['_model']['markers']['has'](_0x3885e9)&&_0xed42bd['editing']['reconvertMarker'](_0x3885e9);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xed42bd['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0xed42bd['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xed42bd['config']['get']('trackChanges.trackFormatChanges'),_0xed42bd['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xed42bd['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xed42bd,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d7f99=this['editor'],_0x1c3134=(_0x233c8d,_0x346eca)=>{if('attribute'!=_0x233c8d)return'ck-suggestion-marker-'+_0x233c8d;const _0x5678eb=_0x346eca['split']('|')[0x0];return this['_isBlockAttribute'](_0x5678eb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3d7f99['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1c748f=>{const {id:_0x1e7b34,authorId:_0x45f210,type:_0x4f1220,subType:_0x5cb6de}=this['_splitMarkerName'](_0x1c748f['markerName']),_0x1d7a77=['ck-suggestion-marker',_0x1c3134(_0x4f1220,_0x5cb6de)];let _0x820220=0xbb8;return this['activeMarkers']['includes'](_0x1c748f['markerName'])&&(_0x1d7a77['push']('ck-suggestion-marker--active'),_0x820220=0xbc2),'deletion'==_0x4f1220&&(_0x820220+=0x5),{'classes':_0x1d7a77,'attributes':{'data-suggestion':_0x1e7b34,'data-author-id':_0x45f210},'priority':_0x820220};}}),_0x3d7f99['conversion']['for']('dataDowncast')['add'](_0x4e51d7=>{_0x4e51d7['on']('addMarker:suggestion',(_0x4ca402,_0x202257,_0x63f08d)=>{if(!_0x63f08d['options']['showSuggestionHighlights'])return;const _0x224846=_0x202257['item'];if(!_0x224846)return;const _0x217db6=_0x63f08d['mapper']['toViewElement'](_0x224846);_0x3d7f99['model']['schema']['isObject'](_0x224846)&&_0x217db6&&!_0x217db6['getCustomProperty']('widget')&&_0x217db6['is']('containerElement')&&_0x43a896(_0x217db6,_0x63f08d['writer']);},{'priority':'high'});}),_0x3d7f99['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2d97b5,_0x418281)=>{if(!_0x418281['options']['showSuggestionHighlights'])return null;const {type:_0x520a03,subType:_0x21996b}=this['_splitMarkerName'](_0x2d97b5['markerName']);return{'classes':['ck-suggestion-marker',_0x1c3134(_0x520a03,_0x21996b)],'priority':0xbb8};}});const _0x5297c2=({showActiveMarkers:_0x5d0c81=!0x0,isAttributeSuggestion:_0x48ede5=!0x1}={})=>(_0x318ce6,_0x3f5d33,_0x583b51)=>{if(!_0x3f5d33['item'])return;const {id:_0x42cba3,authorId:_0x22c6fd}=this['_splitMarkerName'](_0x3f5d33['markerName']);if(_0x48ede5){const _0x5f40ee=this['_suggestions']['get'](_0x42cba3),_0x34ed24=this['_getAttributeKey'](_0x5f40ee);if(!this['_isBlockAttribute'](_0x34ed24))return;}if(_0x3f5d33['item']['is']('selection'))return void _0x583b51['consumable']['consume'](_0x3f5d33['item'],_0x318ce6['name']);const _0x5bcb4e=_0x583b51['mapper']['toViewElement'](_0x3f5d33['item']);if(_0x3f5d33['item']['is']('element')&&_0x3d7f99['model']['schema']['isBlock'](_0x3f5d33['item'])&&!_0x5bcb4e['getCustomProperty']('addHighlight')){_0x583b51['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5bcb4e),_0x583b51['writer']['setAttribute']('data-suggestion',_0x42cba3,_0x5bcb4e),_0x583b51['writer']['setAttribute']('data-author-id',_0x22c6fd,_0x5bcb4e),_0x583b51['mapper']['bindElementToMarker'](_0x5bcb4e,_0x3f5d33['markerName']),_0x5d0c81&&(this['activeMarkers']['includes'](_0x3f5d33['markerName'])?_0x583b51['writer']['addClass']('ck-suggestion-marker--active',_0x5bcb4e):_0x583b51['writer']['removeClass']('ck-suggestion-marker--active',_0x5bcb4e));for(const _0x45965c of _0x3d7f99['model']['createRangeIn'](_0x3f5d33['item'])['getItems']())_0x583b51['consumable']['consume'](_0x45965c,_0x318ce6['name']);_0x583b51['consumable']['consume'](_0x3f5d33['item'],_0x318ce6['name']);}};_0x3d7f99['conversion']['for']('dataDowncast')['add'](_0x234bad=>{_0x234bad['on']('addMarker:suggestion:formatBlock',(_0x18cb67,_0x50d100,_0x51b447)=>{_0x51b447['options']['showSuggestionHighlights']&&_0x5297c2({'showActiveMarkers':!0x1})(_0x18cb67,_0x50d100,_0x51b447);},{'priority':'highest'});}),_0x3d7f99['conversion']['for']('dataDowncast')['add'](_0x43c761=>{_0x43c761['on']('addMarker:suggestion:attribute',(_0x27d31b,_0x5a6f61,_0xf2e921)=>{_0xf2e921['options']['showSuggestionHighlights']&&_0x5297c2({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x27d31b,_0x5a6f61,_0xf2e921);},{'priority':'highest'});}),_0x3d7f99['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x17bb02,_0x40539f)=>_0x40539f['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x17bb02['substr'](0xb)}}),_0x3d7f99['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xc56485,{writer:_0x194f82})=>{let _0x207ed3='suggestion:'+_0xc56485['getAttribute']('suggestion-type')+':'+_0xc56485['getAttribute']('id');return _0xc56485['getAttribute']('marker-count')&&(_0x207ed3+=':'+_0xc56485['getAttribute']('marker-count')),_0x194f82['createElement']('$marker',{'data-name':_0x207ed3});}}),_0x3d7f99['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d7f99['conversion']['for']('editingDowncast')['add'](_0x4d8df7=>{_0x4d8df7['on']('addMarker:suggestion:formatBlock',_0x5297c2(),{'priority':'high'});}),_0x3d7f99['conversion']['for']('editingDowncast')['add'](_0x54d852=>{_0x54d852['on']('addMarker:suggestion:attribute',_0x5297c2({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3d7f99['conversion']['for']('editingDowncast')['add'](_0x1972e7=>{_0x1972e7['on']('removeMarker:suggestion:formatBlock',(_0x408c72,_0xf77d3,_0x3c0d64)=>{const _0x1efadf=_0x3c0d64['mapper']['markerNameToElements'](_0xf77d3['markerName']);if(_0x1efadf){for(const _0x12b478 of _0x1efadf)_0x12b478['getCustomProperty']('addHighlight')||(_0x3c0d64['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x12b478),_0x3c0d64['writer']['removeAttribute']('data-suggestion',_0x12b478),_0x3c0d64['writer']['removeAttribute']('data-author-id',_0x12b478),_0x3c0d64['mapper']['unbindElementFromMarkerName'](_0x12b478,_0xf77d3['markerName']));}},{'priority':'high'});}),_0x3d7f99['conversion']['for']('editingDowncast')['add'](_0x5519d1=>{_0x5519d1['on']('removeMarker:suggestion:attribute',(_0x3bd6dc,_0x2f94b8,_0x122270)=>{const _0x2e14b1=_0x122270['mapper']['markerNameToElements'](_0x2f94b8['markerName']);if(!_0x2e14b1)return;const {id:_0x4a302d}=this['_splitMarkerName'](_0x2f94b8['markerName']),_0x2b2090=this['_suggestions']['get'](_0x4a302d),_0x1caacb=this['_getAttributeKey'](_0x2b2090);if(this['_isBlockAttribute'](_0x1caacb)){for(const _0x393d6a of _0x2e14b1)_0x393d6a['getCustomProperty']('addHighlight')||(_0x122270['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x393d6a),_0x122270['writer']['removeAttribute']('data-suggestion',_0x393d6a),_0x122270['writer']['removeAttribute']('data-author-id',_0x393d6a),_0x122270['mapper']['unbindElementFromMarkerName'](_0x393d6a,_0x2f94b8['markerName']));}},{'priority':'high'});}),_0x3d7f99['model']['document']['registerPostFixer'](_0x40a3ec=>{let _0x2d06e6=!0x1;const _0x3349f8=Array['from'](_0x3d7f99['model']['document']['differ']['getChangedMarkers']()),_0x5333cd=new Set();for(const {name:_0x2dc8a2,data:_0x38cb55}of _0x3349f8){const {group:_0xb82853,type:_0x5263cc,subType:_0x647812,id:_0x4e1df2}=this['_splitMarkerName'](_0x2dc8a2);if('suggestion'!==_0xb82853)continue;const _0x2e4abd=this['_suggestions']['get'](_0x4e1df2);if(null!=_0x38cb55['newRange']){'formatInline'==_0x5263cc&&(_0x2d06e6=_0x2d06e6||Pt(_0x38cb55['newRange'],_0x2dc8a2,_0x40a3ec,_0x3d7f99['model']['schema']));const _0x504515='attribute'==_0x5263cc&&this['_isBlockAttribute'](_0x647812['split']('|')[0x0]);if(_0x38cb55['newRange']['isCollapsed']||'$graveyard'==_0x38cb55['newRange']['root']['rootName']||'formatBlock'==_0x5263cc&&!Lt(_0x38cb55['newRange'])||_0x504515&&!Lt(_0x38cb55['newRange'])||'deletion'==_0x5263cc&&!(!Ft(_0x4a1817=_0x38cb55['newRange'])&&!function(_0x3e1e08){return _0x3e1e08['start']['parent']==_0x3e1e08['end']['nodeBefore']&&_0x3e1e08['start']['isAtEnd'];}(_0x4a1817)))_0x40a3ec['removeMarker'](_0x2dc8a2),_0x2d06e6=!0x0;else{if(!_0x2e4abd||!_0x2e4abd['isInContent'])continue;if(_0x38cb55['newRange']&&_0x38cb55['oldRange']&&_0x38cb55['newRange']['isEqual'](_0x38cb55['oldRange']))continue;_0x5333cd['add'](_0x2e4abd);}}}var _0x4a1817;return _0x5333cd['size']>0x0&&(_0x2d06e6=!!this['_joinWithAdjacentSuggestions'](_0x5333cd)||_0x2d06e6),_0x2d06e6;}),_0x3d7f99['model']['document']['registerPostFixer'](_0x394569=>{let _0x3d473d=!0x1;for(const _0x482923 of _0x3d7f99['model']['document']['differ']['getChanges']())if('insert'==_0x482923['type'])for(const _0x4c8287 of this['_suggestions']['values']()){if(_0x4c8287['isMultiRange']||!_0x4c8287['isInContent'])continue;const _0x86950f='formatBlock'==_0x4c8287['type'],_0x5b3731=this['_getAttributeKey'](_0x4c8287),_0x1f8022=_0x5b3731&&this['_isBlockAttribute'](_0x5b3731);if(!_0x86950f&&!_0x1f8022)continue;const _0x4affa3=_0x4c8287['getFirstRange']();if(_0x4affa3['start']['parent']!=_0x4affa3['end']['parent']&&!_0x4affa3['end']['isAtEnd']){const _0x55107f=_0x3d7f99['model']['createPositionAt'](_0x4affa3['start']['nodeAfter'],'end'),_0x2407f0=_0x3d7f99['model']['createRange'](_0x4affa3['start'],_0x55107f);_0x394569['updateMarker'](_0x4c8287['getFirstMarker'](),{'range':_0x2407f0}),_0x3d473d=!0x0;}}return _0x3d473d;}),_0x3d7f99['model']['document']['registerPostFixer'](_0x4f0627=>this['_processAttributeChanges'](_0x4f0627)),_0x3d7f99['model']['document']['registerPostFixer'](_0x1c0ac3=>!_0x1c0ac3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1c0ac3)),_0x3d7f99['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d7f99['model']['document']['on']('change:data',(_0x49bd3b,_0x3fb385)=>{if(!_0x3fb385['isLocal']||_0x3fb385['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3afd86=_0x3d7f99['model']['document']['differ']['getChanges']();if(0x0==_0x3afd86['length'])return;const _0x455946=[],_0x31aca4=_0x3afd86['filter'](_0x4408fc=>'attribute'==_0x4408fc['type']),_0x24a3f4=_0x3afd86['filter'](_0x1b9f38=>'insert'==_0x1b9f38['type']&&'$text'!=_0x1b9f38['name']);for(const _0xc2bb32 of _0x31aca4)this['_isRegisteredAttribute'](_0xc2bb32['attributeKey'])&&_0x455946['push']({'key':_0xc2bb32['attributeKey'],'newValue':_0xc2bb32['attributeNewValue'],'oldValue':_0xc2bb32['attributeOldValue'],'range':Jt(_0xc2bb32['range'],_0x3d7f99['model'])});for(const _0x1cacb8 of _0x24a3f4){if('rename'!=_0x1cacb8['action']&&'refresh'!=_0x1cacb8['action'])continue;const _0x512ff5=Kt(_0x1cacb8['position']['nodeAfter'],_0x3d7f99['model']),_0x512b03=_0x1cacb8['before'];'rename'==_0x1cacb8['action']&&_0x455946['push']({'key':u,'newValue':_0x1cacb8['name'],'oldValue':_0x512b03['name'],'range':_0x512ff5});for(const [_0x3cd00d,_0xcde72c]of _0x512b03['attributes']){if(!this['_isRegisteredAttribute'](_0x3cd00d))continue;const _0x62fc8a=_0x1cacb8['attributes']['get'](_0x3cd00d);_0xcde72c!==_0x62fc8a&&_0x455946['push']({'key':_0x3cd00d,'newValue':_0x62fc8a,'oldValue':_0xcde72c,'range':_0x512ff5});}for(const [_0x520d89,_0x4d8707]of _0x1cacb8['attributes'])this['_isRegisteredAttribute'](_0x520d89)&&(_0x512b03['attributes']['has'](_0x520d89)||_0x455946['push']({'key':_0x520d89,'newValue':_0x4d8707,'oldValue':null,'range':_0x512ff5}));}0x0!=_0x455946['length']&&_0x3d7f99['model']['enqueueChange'](_0x3fb385,_0x392969=>{const _0x46ada9=_0x5a1697();for(const {range:_0xa4c7dc,key:_0x2d2d2d,oldValue:_0x55d4b5,newValue:_0x4d23d8}of _0x455946)this['markAttributeChange'](_0xa4c7dc,_0x2d2d2d,_0x55d4b5,_0x4d23d8,{'groupId':_0x46ada9});this['_reduceExistingSuggestions'](_0x392969,_0x455946);});},{'priority':'lowest'}),_0x3d7f99['model']['markers']['on']('update:suggestion',(_0x3cd057,_0x240443,_0x5117ca)=>{if(null==_0x5117ca){const {id:_0x295595}=this['_splitMarkerName'](_0x240443['name']),_0x4e2e5a=this['_suggestions']['get'](_0x295595);_0x4e2e5a&&_0x4e2e5a['addMarkerName'](_0x240443['name']);}}),_0x3d7f99['model']['document']['on']('change:data',()=>{const _0x2fefcf=Array['from'](_0x3d7f99['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4b00de=>'suggestion'===this['_splitMarkerName'](_0x4b00de['name'])['group']);if(0x0===_0x2fefcf['length'])return;_0x2fefcf['sort']((_0x703390,_0x249b50)=>{const _0x527c24=_0x703390['data']['oldRange'],_0x26643b=_0x249b50['data']['oldRange'];return null===_0x527c24&&null===_0x26643b?0x0:null===_0x527c24&&null!==_0x26643b?-0x1:null!==_0x527c24&&null===_0x26643b?0x1:_0x527c24['start']['isBefore'](_0x26643b['start'])?-0x1:0x1;});const _0x2272e4=new Set(),_0x409722=new Set();for(const {name:_0x354727,data:_0x2bf32d}of _0x2fefcf){const {id:_0x3c6c5e}=this['_splitMarkerName'](_0x354727);if(null===_0x2bf32d['oldRange']){const _0x3fe44d=this['_handleNewSuggestionMarker'](_0x354727);_0x409722['add'](_0x3fe44d);}else{const _0x59c15e=this['_suggestions']['get'](_0x3c6c5e);null!==_0x2bf32d['newRange']||_0x59c15e['isInContent']?(_0x2272e4['add'](_0x59c15e['head']),_0x409722['add'](_0x59c15e)):this['_removeSuggestion'](_0x59c15e);}}_0x409722['size']>0x0&&this['_refreshSuggestionsChain'](_0x409722);for(const _0x589bb9 of _0x2272e4)this['fire']('suggestionChanged',_0x589bb9);}),_0x3d7f99['model']['on']('applyOperation',(_0x2dfbff,_0xd213be)=>{const _0x14c843=_0xd213be[0x0];if(!this['_suggestions']['size'])return;if(!_0x14c843['isDocumentOperation'])return;if(_0x14c843['batch']['isUndo']||!_0x14c843['batch']['isLocal'])return;let _0x2d5717,_0x262083;switch(_0x14c843['type']){case'insert':_0x2d5717=_0x3d7f99['model']['createPositionAt'](_0x14c843['position']),_0x262083=_0x2d5717['getShiftedBy'](_0x14c843['howMany']);break;case'split':_0x2d5717=_0x3d7f99['model']['createPositionAt'](_0x14c843['splitPosition']),_0x262083=_0x3d7f99['model']['createPositionAt'](_0x14c843['moveTargetPosition']);break;case'move':_0x2d5717=_0x3d7f99['model']['createPositionAt'](_0x14c843['targetPosition']),_0x262083=_0x2d5717['getShiftedBy'](_0x14c843['howMany']);break;default:return;}const _0xccd9ad=_0x3d7f99['model']['createRange'](_0x2d5717,_0x262083);_0x3d7f99['model']['change'](()=>{for(const {suggestion:_0x2c203a,meta:_0x4958c8}of this['_findSuggestions'](_0xccd9ad)){if(_0x2c203a['isMultiRange'])continue;if('formatInline'==_0x2c203a['type'])continue;const _0xfa9c48=this['_getAttributeKey'](_0x2c203a);if(_0xfa9c48&&this['_isBlockAttribute'](_0xfa9c48)&&'split'!=_0x14c843['type'])continue;const _0x55f1c0=_0x2c203a['data']&&_0x2c203a['data']['multipleBlocks'];('formatBlock'!=_0x2c203a['type']||'split'==_0x14c843['type']&&!_0x55f1c0)&&(_0x4958c8['containsRangeInObject']||'insertion'==_0x2c203a['type']&&_0x4958c8['isOwn']||_0x2c203a['getFirstRange']()['containsRange'](_0xccd9ad)&&this['_breakSuggestionMarker'](_0x2c203a,_0x2d5717,_0x262083));}});},{'priority':'lowest'}),_0x3d7f99['model']['on']('deleteContent',(_0x5c51df,_0x560fcb)=>{const _0x62afa0=_0x560fcb[0x0],_0x597419=_0x560fcb[0x1];if(_0x597419&&_0x597419['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x62afa0['isCollapsed'])return;const _0x48150d=_0x3d7f99['model']['schema'],{start:_0x4b525e,end:_0x1e5752}=_0x62afa0['getFirstRange'](),_0xe60bc7=_0x4b525e['nodeAfter']&&_0x48150d['isLimit'](_0x4b525e['nodeAfter'])?null:_0x48150d['getNearestSelectionRange'](_0x4b525e,'forward'),_0x33d42b=_0x1e5752['nodeBefore']&&_0x48150d['isLimit'](_0x1e5752['nodeBefore'])?null:_0x48150d['getNearestSelectionRange'](_0x1e5752,'backward'),_0x346c69=_0x3d7f99['model']['createRange'](_0xe60bc7?_0xe60bc7['start']:_0x4b525e,_0x33d42b?_0x33d42b['end']:_0x1e5752);_0x3d7f99['model']['change'](_0x3bad55=>{this['markDeletion'](_0x346c69);const _0x42977e=_0x3d7f99['model']['schema']['getNearestSelectionRange'](_0x346c69['start']);_0x62afa0['is']('documentSelection')?_0x3bad55['setSelection'](_0x42977e):_0x62afa0['setTo'](_0x42977e);}),_0x5c51df['stop']();},{'priority':_0x185083['normal']+0xa}),_0x3d7f99['model']['on']('insertContent',(_0x5dfc7e,_0x3e86b9)=>{const _0x875ef0=_0x3e86b9[_0x3e86b9['length']-0x1];_0x875ef0&&_0x875ef0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d7f99['model']['change'](()=>{let _0x5db55e=_0x3d7f99['model']['insertContent'](_0x3e86b9[0x0],_0x3e86b9[0x1],_0x3e86b9[0x2],{'forceDefaultExecution':!0x0});if(!_0x5db55e)return;_0x5dfc7e['return']=_0x5db55e['clone']();const _0xa69cbc=_0x5db55e['end']['nodeBefore'],_0x5710fc=_0x3d7f99['model']['schema'];_0xa69cbc&&_0x5710fc['isBlock'](_0xa69cbc)&&!_0x5710fc['isObject'](_0xa69cbc)&&(_0x5db55e=_0x3d7f99['model']['createRange'](_0x5db55e['start'],_0x3d7f99['model']['createPositionAt'](_0xa69cbc,'end'))),this['markInsertion'](_0x5db55e);}),_0x5dfc7e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x28a2e1=new O(_0x3d7f99,this['_suggestions']);_0x3d7f99['commands']['add']('acceptSuggestion',_0x28a2e1),this['enableCommand']('acceptSuggestion');const _0x558e2e=new R(_0x3d7f99,this['_suggestions']);_0x3d7f99['commands']['add']('discardSuggestion',_0x558e2e),this['enableCommand']('discardSuggestion'),_0x3d7f99['commands']['add']('acceptAllSuggestions',new x(_0x3d7f99,_0x28a2e1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d7f99['commands']['add']('discardAllSuggestions',new x(_0x3d7f99,_0x558e2e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d7f99['commands']['add']('acceptSelectedSuggestions',new E(_0x3d7f99,_0x28a2e1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d7f99['commands']['add']('discardSelectedSuggestions',new E(_0x3d7f99,_0x558e2e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x45f68b=_0x3d7f99['plugins']['get']('CommentsRepository');this['listenTo'](_0x45f68b,'addComment',(_0x124097,{threadId:_0x1616f0})=>{const _0x219032=this['_suggestions']['get'](_0x1616f0);_0x219032&&_0x219032['commentThread']&&0x1===_0x219032['commentThread']['length']&&this['_updateSuggestionData'](_0x1616f0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x45f68b,'removeComment',(_0x5da8d0,{threadId:_0x4d1274})=>{const _0x4f57e9=this['_suggestions']['get'](_0x4d1274);_0x4f57e9&&_0x4f57e9['commentThread']&&!_0x4f57e9['commentThread']['length']&&this['_updateSuggestionData'](_0x4d1274,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x10ca98){const _0x16b843=_0x580041([0x71,0x74,0x6b,0x69,0x49,0x62,0x59,0x6e,0x36,0x75,0x58,0x4f,0x57,0x6c,0x76,0x6d,0x50,0x4a,0x6f,0x42,0x4e,0x38,0x55,0x56,0x43,0x6a,0x67,0x45,0x53,0x33,0x35,0x51,0x54,0x4b,0x47,0x64,0x66,0x52,0x61,0x30,0x73,0x48,0x44,0x4c,0x37,0x5a,0x32,0x46,0x65,0x78,0x4d,0x39,0x41,0x72,0x79,0x7a,0x70,0x34,0x31,0x63,0x77,0x68]),_0x136a7a=0x5f6c9b63,_0x56bd67=0x5f6bc453^_0x136a7a,_0x219985=window[_0x580041([0x44,0x61,0x74,0x65])][_0x580041([0x6e,0x6f,0x77])](),_0x23ced6=_0x10ca98[_0x580041([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50d873=new window[(_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12f0a1=>{_0x23ced6[_0x580041([0x6f,0x6e,0x63,0x65])](_0x580041([0x72,0x65,0x61,0x64,0x79]),_0x12f0a1);}),_0x218cca={[_0x580041([0x6b,0x74,0x79])]:_0x580041([0x45,0x43]),[_0x580041([0x75,0x73,0x65])]:_0x580041([0x73,0x69,0x67]),[_0x580041([0x63,0x72,0x76])]:_0x580041([0x50,0x2d,0x32,0x35,0x36]),[_0x580041([0x78])]:_0x580041([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]),[_0x580041([0x79])]:_0x580041([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]),[_0x580041([0x61,0x6c,0x67])]:_0x580041([0x45,0x53,0x32,0x35,0x36])},_0xfe98a=_0x23ced6[_0x580041([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x580041([0x67,0x65,0x74])](_0x580041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2eb091(){let _0x51b1e8,_0x3cbfe1=null,_0x3297aa=null;try{if(_0xfe98a==_0x580041([0x47,0x50,0x4c]))return _0x580041([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x51b1e8=_0x569141(),!_0x51b1e8)return _0x580041([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x51b1e8[_0x580041([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3297aa=_0x105da2(_0x51b1e8[_0x580041([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x51b1e8[_0x580041([0x6a,0x74,0x69])])),await _0x297786()?_0x1830cc()?_0x59b4ea()?_0x580041([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c220d()?(_0x51b1e8[_0x580041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x580041([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3cbfe1=_0x143192(_0x580041([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x51b1e8[_0x580041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x580041([0x74,0x72,0x69,0x61,0x6c])&&(_0x3cbfe1=_0x143192(_0x580041([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x283776()):_0x580041([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x580041([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x580041([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x106df9){return _0x580041([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x59b4ea(){const _0x5469b5=[_0x580041([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x580041([0x74,0x72,0x69,0x61,0x6c])][_0x580041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51b1e8[_0x580041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x219985/0x3e8:0xe10*_0x56bd67;return _0x51b1e8[_0x580041([0x65,0x78,0x70])]<_0x5469b5;}function _0x1830cc(){const _0x246104=_0x51b1e8[_0x580041([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x246104)return!0x1;if(_0x246104[_0x580041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580041([0x2a])))return!0x0;if(_0x246104[_0x580041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580041([0x54,0x43])))return!0x0;if(_0x246104[_0x580041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580041([0x52,0x54,0x43]))){if(_0x5ad90a())return!0x0;if(_0x1ba012()||_0x3154a6())return!0x0;}return!0x1;}function _0x4c220d(){const _0x4e3ee6=_0x51b1e8[_0x580041([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e3ee6||0x0==_0x4e3ee6[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x906caf}=new URL(window[_0x580041([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e3ee6[_0x580041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x906caf))return!0x0;const _0x4f44e5=_0x906caf[_0x580041([0x73,0x70,0x6c,0x69,0x74])](_0x580041([0x2e]));return _0x4e3ee6[_0x580041([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7e0a6e=>_0x7e0a6e[_0x580041([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x580041([0x2a])))[_0x580041([0x6d,0x61,0x70])](_0x238112=>_0x238112[_0x580041([0x73,0x70,0x6c,0x69,0x74])](_0x580041([0x2e])))[_0x580041([0x73,0x6f,0x6d,0x65])](_0x10db8b=>_0x4f44e5[_0x580041([0x65,0x76,0x65,0x72,0x79])]((_0x315d82,_0x3e13c8)=>_0x10db8b[_0x3e13c8]===_0x315d82||_0x10db8b[_0x3e13c8]===_0x580041([0x2a])));}function _0x283776(){return _0x3cbfe1&&_0x3297aa?new window[(_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b7134,_0x2571b7)=>{_0x3cbfe1[_0x580041([0x74,0x68,0x65,0x6e])](_0x3b7134,_0x2571b7),_0x3297aa[_0x580041([0x74,0x68,0x65,0x6e])](_0x515a5b=>{_0x515a5b!=_0x580041([0x56,0x61,0x6c,0x69,0x64])&&_0x3b7134(_0x515a5b);},_0x2571b7);}):_0x3cbfe1||_0x3297aa||_0x580041([0x56,0x61,0x6c,0x69,0x64]);}}function _0x105da2(_0x322212,_0x4cf4c7){return new window[(_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ce99a=>{if(_0x3a0bfe())return _0x3ce99a(_0x580041([0x56,0x61,0x6c,0x69,0x64]));_0x269d56(),_0x23ced6[_0x580041([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x580041([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39a1ac=!0x1;const _0x33cb47=_0x5a1697();function _0x410c72(_0x33759a){return!!_0x33759a&&(typeof _0x33759a===_0x580041([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x33759a===_0x580041([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x33759a[_0x580041([0x74,0x68,0x65,0x6e])]===_0x580041([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x33759a[_0x580041([0x63,0x61,0x74,0x63,0x68])]===_0x580041([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xfef108(_0x5207c3){_0x2a97c5(_0x5207c3)[_0x580041([0x74,0x68,0x65,0x6e])](_0x3bce1b=>{if(!_0x3bce1b||_0x3bce1b[_0x580041([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x580041([0x6f,0x6b]))return _0x580041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x485401(_0x4c6fd8(_0x33cb47+_0x4cf4c7))!=_0x3bce1b[_0x580041([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x580041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x580041([0x56,0x61,0x6c,0x69,0x64]);})[_0x580041([0x74,0x68,0x65,0x6e])](_0x268979=>(_0x1aa478(),_0x268979),()=>{const _0x43971c=_0x48d9d7();return null==_0x43971c?(_0x1aa478(),_0x580041([0x56,0x61,0x6c,0x69,0x64])):_0x580041(_0x219985-_0x43971c>(0x7b601f63^_0x136a7a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x580041([0x74,0x68,0x65,0x6e])](_0x3ce99a)[_0x580041([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ce99a(_0x580041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a21a4=0x5f5a75e3^_0x136a7a;function _0x1aa478(){const _0x77072d=_0x580041([0x6c,0x6c,0x63,0x74,0x2d])+_0x485401(_0x4c6fd8(_0x322212)),_0x448a7f=_0x23729b(_0x485401(window[_0x580041([0x4d,0x61,0x74,0x68])][_0x580041([0x63,0x65,0x69,0x6c])](_0x219985/_0x4a21a4)));window[_0x580041([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x580041([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x77072d,_0x448a7f);}function _0x48d9d7(){const _0x121b4b=_0x580041([0x6c,0x6c,0x63,0x74,0x2d])+_0x485401(_0x4c6fd8(_0x322212)),_0x3418af=window[_0x580041([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x580041([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x121b4b);return _0x3418af?window[_0x580041([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x23729b(_0x3418af),0x10)*_0x4a21a4:null;}function _0x2a97c5(_0x52498d){return new window[(_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x253fbd,_0x4fc45d)=>{_0x52498d[_0x580041([0x74,0x68,0x65,0x6e])](_0x253fbd,_0x4fc45d),window[_0x580041([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fc45d,0x5f6d4fa3^_0x136a7a);});}}_0x23ced6[_0x580041([0x6f,0x6e])](_0x580041([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x562a04,_0x2fa091)=>{if(_0x2fa091[0x0]!=_0x322212)return _0x3ce99a(_0x580041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2fa091[0x1]={..._0x2fa091[0x1],[_0x580041([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33cb47};},{[_0x580041([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x580041([0x68,0x69,0x67,0x68])}),_0x23ced6[_0x580041([0x6f,0x6e])](_0x580041([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38bbd5=>{_0x410c72(_0x38bbd5[_0x580041([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39a1ac=!0x0,_0xfef108(_0x38bbd5[_0x580041([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x580041([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x580041([0x6c,0x6f,0x77])}),_0x50d873[_0x580041([0x74,0x68,0x65,0x6e])](()=>{_0x39a1ac||_0x3ce99a(_0x580041([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a0bfe(){return _0x23ced6[_0x580041([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x580041([0x76,0x69,0x65,0x77])][_0x580041([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x580041([0x61,0x75,0x74,0x6f]);}function _0x269d56(){_0x23ced6[_0x580041([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x580041([0x76,0x69,0x65,0x77])][_0x580041([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x580041([0x61,0x75,0x74,0x6f]);}}function _0x143192(_0x219601){const _0x5e9758=[new window[(_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c6b18=>setTimeout(_0x1c6b18,0x5f65a5af^_0x136a7a)),_0x50d873[_0x580041([0x74,0x68,0x65,0x6e])](()=>new window[(_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a10cf=>{let _0x562939=0x0;_0x23ced6[_0x580041([0x6d,0x6f,0x64,0x65,0x6c])][_0x580041([0x6f,0x6e])](_0x580041([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51707e,_0x21777a)=>{_0x21777a[0x0][_0x580041([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x562939++,_0x562939==(0x5f6c9a9b^_0x136a7a)&&(_0x4a10cf(),_0x51707e[_0x580041([0x6f,0x66,0x66])]());});}))];return window[_0x580041([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x580041([0x72,0x61,0x63,0x65])](_0x5e9758)[_0x580041([0x74,0x68,0x65,0x6e])](()=>_0x219601);}async function _0x3ef7ca(){await _0x50d873,_0x23ced6[_0x580041([0x6d,0x6f,0x64,0x65,0x6c])][_0x580041([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33a2d0,_0x23ced6[_0x580041([0x6d,0x6f,0x64,0x65,0x6c])][_0x580041([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33a2d0,_0x23ced6[_0x580041([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x580041([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ad90a(){return _0x97a73b(_0x580041([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2cfbf6(_0x580041([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x580041([0x73,0x74,0x61,0x74,0x65])]==_0x580041([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ba012(){return _0x97a73b(_0x580041([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 _0x3154a6(){return _0x97a73b(_0x580041([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x184cb1(_0x1b5e97){const _0x107d62=_0x28248a();_0x23ced6[_0x107d62]=_0x580041([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b5e97,_0x1b5e97!=_0x580041([0x56,0x61,0x6c,0x69,0x64])&&_0x3ef7ca();}function _0x28248a(){const _0x1f94bc=window[_0x580041([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x580041([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x580041([0x6e,0x6f,0x77])]())[_0x580041([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x580041([0x2e]),'');let _0x1ec554=_0x580041([0x71]);for(let _0x548cb7=0x0;_0x548cb7<_0x1f94bc[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x548cb7+=0x2){let _0x23cee3=window[_0x580041([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f94bc[_0x580041([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x548cb7,_0x548cb7+0x2));_0x23cee3>=_0x16b843[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x23cee3-=_0x16b843[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ec554+=_0x16b843[_0x23cee3];}return _0x1ec554;}function _0x569141(){const _0x516240=_0xfe98a[_0x580041([0x73,0x70,0x6c,0x69,0x74])](_0x580041([0x2e]));if(0x3!=_0x516240[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x43ff84(_0x516240[0x1]);function _0x43ff84(_0x1a5a15){const _0x58e2b5=_0xa88e7f(_0x1a5a15);return _0x58e2b5&&_0x3882c8()?_0x58e2b5:null;function _0x3882c8(){const _0x2b3122=_0x58e2b5[_0x580041([0x6a,0x74,0x69])],_0xb9c1fe=window[_0x580041([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b3122[_0x580041([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2b3122[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x436edc={..._0x58e2b5,[_0x580041([0x6a,0x74,0x69])]:_0x2b3122[_0x580041([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2b3122[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x436edc[_0x580041([0x76,0x63])],_0x4c6fd8(_0x436edc)==_0xb9c1fe;}}}async function _0x297786(){let _0x4c88a1=!0x0;try{const _0x6f04a5=_0xfe98a[_0x580041([0x73,0x70,0x6c,0x69,0x74])](_0x580041([0x2e])),[_0x54d864,_0x5f4874,_0x2493eb]=_0x6f04a5;return _0x1e0bf8(_0x54d864),await _0x44600e(_0x54d864,_0x5f4874,_0x2493eb),_0x4c88a1;}catch(_0x46289b){return!0x1;}function _0x1e0bf8(_0xf379bd){const _0x4061e8=_0xa88e7f(_0xf379bd);_0x4061e8&&_0x4061e8[_0x580041([0x61,0x6c,0x67])]==_0x580041([0x45,0x53,0x32,0x35,0x36])||(_0x4c88a1=!0x1);}async function _0x44600e(_0xc1c46f,_0x1d3d92,_0x144cb4){const _0xd0fc66=window[_0x580041([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x580041([0x66,0x72,0x6f,0x6d])](_0x4ed6fe(_0x144cb4),_0x24c1cb=>_0x24c1cb[_0x580041([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5d3678=new window[(_0x580041([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x580041([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc1c46f+_0x580041([0x2e])+_0x1d3d92),_0x7e2258=window[_0x580041([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x580041([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x7e2258)return;const _0x426be6=await _0x7e2258[_0x580041([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x580041([0x6a,0x77,0x6b]),_0x218cca,{[_0x580041([0x6e,0x61,0x6d,0x65])]:_0x580041([0x45,0x43,0x44,0x53,0x41]),[_0x580041([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x580041([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x580041([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x7e2258[_0x580041([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x580041([0x6e,0x61,0x6d,0x65])]:_0x580041([0x45,0x43,0x44,0x53,0x41]),[_0x580041([0x68,0x61,0x73,0x68])]:{[_0x580041([0x6e,0x61,0x6d,0x65])]:_0x580041([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x426be6,_0xd0fc66,_0x5d3678)||(_0x4c88a1=!0x1);}}function _0xa88e7f(_0xe45b7e){return _0xe45b7e[_0x580041([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x580041([0x65,0x79]))?JSON[_0x580041([0x70,0x61,0x72,0x73,0x65])](_0x4ed6fe(_0xe45b7e)):null;}function _0x4ed6fe(_0x50aba0){return window[_0x580041([0x61,0x74,0x6f,0x62])](_0x50aba0[_0x580041([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x580041([0x2b]))[_0x580041([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x580041([0x2f])));}function _0x4c6fd8(_0x4318da){let _0x42c4d0=0x1505;function _0x4eeaa6(_0x26b1e0){for(let _0x40aae6=0x0;_0x40aae6<_0x26b1e0[_0x580041([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40aae6++){const _0x2be45c=_0x26b1e0[_0x580041([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40aae6);_0x42c4d0=(_0x42c4d0<<0x5)+_0x42c4d0+_0x2be45c,_0x42c4d0&=_0x42c4d0;}}function _0x5734d3(_0x256c2f){Array[_0x580041([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x256c2f)?_0x256c2f[_0x580041([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5734d3):_0x256c2f&&typeof _0x256c2f==_0x580041([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x580041([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x256c2f)[_0x580041([0x73,0x6f,0x72,0x74])]()[_0x580041([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1f1959,_0x5de213])=>{_0x4eeaa6(_0x1f1959),_0x5734d3(_0x5de213);}):_0x4eeaa6(window[_0x580041([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x256c2f));}return _0x5734d3(_0x4318da),_0x42c4d0>>>0x0;}function _0x485401(_0x435b01){return _0x435b01[_0x580041([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x580041([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x580041([0x30]));}function _0x23729b(_0x5c2038){return _0x5c2038[_0x580041([0x73,0x70,0x6c,0x69,0x74])]('')[_0x580041([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x580041([0x6a,0x6f,0x69,0x6e])]('');}function _0x97a73b(_0x35b99d){return _0x23ced6[_0x580041([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x580041([0x68,0x61,0x73])](_0x35b99d);}function _0x2cfbf6(_0x1a0fd2){return _0x23ced6[_0x580041([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x580041([0x67,0x65,0x74])](_0x1a0fd2);}function _0x33a2d0(){}function _0x580041(_0x565706){return _0x565706['map'](_0x6fac4=>String['fromCharCode'](_0x6fac4))['join']('');}_0x184cb1(await _0x2eb091());}(this);}set['adapter'](_0x5ef186){if(this['_adapter'])throw new _0x2ff27c('track-changes-adapter-already-set',this);this['_adapter']=_0x5ef186;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1b65e4=!0x1,toJSON:_0x233fea=!0x1}={}){const _0x516a26=[];for(const _0x1bff06 of this['_suggestions']['values']())_0x1b65e4&&!_0x1bff06['isInContent']||_0x516a26['push'](_0x1bff06);return _0x233fea?_0x516a26['map'](_0xca4759=>_0xca4759['toJSON']()):_0x516a26;}['getSuggestion'](_0x4d1a79){const _0x3cf8bc=this['_suggestions']['get'](_0x4d1a79);if(!_0x3cf8bc)throw new _0x2ff27c('track-changes-suggestion-not-found',this);return _0x3cf8bc;}['hasSuggestion'](_0x268da4){return this['_suggestions']['has'](_0x268da4);}['addSuggestionData'](_0xcdd512){const {authorId:_0x3f4f16,id:_0x186f80,attributes:_0xb4737c}=_0xcdd512,[_0x4aa197,_0x36f721]=_0xcdd512['type']['split'](':'),_0x7ae68b=this['_suggestions']['get'](_0x186f80)||this['_createSuggestion'](_0x4aa197,_0x36f721,_0x186f80,_0x3f4f16,_0xb4737c);if(this['_addThreadToSuggestion'](_0x7ae68b),this['_checkSuggestionCorrectness'](_0x7ae68b,_0x4aa197,_0x36f721||null,_0x3f4f16),_0x7ae68b['createdAt']=_0xcdd512['createdAt'],_0x7ae68b['_isDataLoaded']=!0x0,_0xb4737c&&_0xb4737c['@external']){const _0x3febbe=_0xb4737c['@external'],_0x4e4bfb=this['_getExternalAuthor'](_0x3febbe['authorName']);_0x7ae68b['authoredAt']=_0x3febbe['createdAt'],_0x7ae68b['author']=_0x4e4bfb,_0x7ae68b['isExternal']=!0x0;}else _0x7ae68b['authoredAt']=_0xcdd512['createdAt'];switch(_0xcdd512['data']&&(_0x7ae68b['data']=_0xcdd512['data']),_0xcdd512['attributes']&&(_0x7ae68b['attributes']=_0xcdd512['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x7ae68b['_saved']=!0x0),this['_suggestionState']['get'](_0x7ae68b)){case'notReady':this['_suggestionState']['set'](_0x7ae68b,'dataReady');break;case'markerReady':_0x7ae68b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x7ae68b])),this['_refreshSuggestionsChain'](new Set([_0x7ae68b])),this['_suggestionState']['set'](_0x7ae68b,'ready'),this['fire']('suggestionLoaded',_0x7ae68b)):this['_suggestionState']['set'](_0x7ae68b,'removed');}return _0x7ae68b;}['acceptSuggestion'](_0xdc24f4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x65b62e of _0xdc24f4['getAllAdjacentSuggestions']())_0x65b62e['accept']();});});}['discardSuggestion'](_0x444314){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54fd68 of _0x444314['getAllAdjacentSuggestions']())_0x54fd68['discard']();});});}['enableCommand'](_0x562ed0,_0x395be3){const _0x57e687=this['editor']['commands']['get'](_0x562ed0);if(!_0x57e687)throw new _0x2ff27c('track-changes-command-not-found',this,{'commandName':_0x562ed0});if(this['_enabledCommands']['has'](_0x57e687))throw new _0x2ff27c('track-changes-enable-command-twice',this,{'commandName':_0x562ed0});this['_enabledCommands']['add'](_0x57e687),_0x395be3&&_0x57e687['on']('execute',(_0x9e4e04,_0x16701c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x16701c['length']>0x0&&_0x16701c[_0x16701c['length']-0x1]&&_0x16701c[_0x16701c['length']-0x1]['forceDefaultExecution']?_0x16701c['pop']():(_0x9e4e04['return']=_0x395be3((..._0x53f670)=>_0x57e687['execute'](..._0x53f670,{'forceDefaultExecution':!0x0}),..._0x16701c),_0x9e4e04['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5c6d60){let _0x575555,_0x3ee478;const _0x3c4caf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x575555=_0x5c6d60();}catch(_0x5dd4a4){_0x3ee478=_0x5dd4a4;}return _0x3c4caf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3ee478&&_0x2ff27c['rethrowUnexpectedError'](_0x3ee478,this),_0x575555;}['markInsertion'](_0x2f2376,_0x170c2c=null,_0x578a01={}){if(_0x2f2376['isCollapsed'])return null;const _0x223dbf=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3063c6,meta:_0x58d98e}of this['_findSuggestions'](_0x2f2376,'insertion'))if(_0x58d98e['isOwn']){if(!_0x58d98e['isNextTo']){if(_0x58d98e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x3063c6,_0x578a01))continue;return _0x3063c6;}if(zt(_0x3063c6,_0x578a01))return _0x3063c6;this['_breakSuggestionMarker'](_0x3063c6,_0x2f2376['start'],_0x2f2376['end']);break;}if(_0x170c2c==_0x3063c6['subType']&&zt(_0x3063c6,_0x578a01)){const _0x15bffc=_0x3063c6['getFirstRange']();return _0x15bffc['start']['isEqual'](_0x2f2376['end'])?this['_setSuggestionRange'](_0x3063c6,this['_model']['createRange'](_0x2f2376['start'],_0x15bffc['end'])):this['_setSuggestionRange'](_0x3063c6,this['_model']['createRange'](_0x15bffc['start'],_0x2f2376['end'])),_0x3063c6;}}const _0x4b3a4e=_0x5a1697(),_0x19b64f=_0x223dbf['id'],_0x31ee18=_0x170c2c?'insertion:'+_0x170c2c:'insertion',_0x48399e=this['_setSuggestionData']({'id':_0x4b3a4e,'type':_0x31ee18,'createdAt':new Date(),'authorId':_0x19b64f,'attributes':_0x578a01});return this['_addSuggestionMarker'](_0x31ee18,_0x4b3a4e,_0x19b64f,_0x2f2376),_0x48399e;}['markMultiRangeInsertion'](_0x5df807,_0x4b595d='multi',_0x1519c9={}){const _0x366a1=this['editor']['plugins']['get']('Users')['me'],_0x208e34=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4b595d,'join');for(const _0x5e2e93 of this['getSuggestions']())if(_0x5e2e93['author']['id']==_0x366a1['id']&&'insertion'==_0x5e2e93['type']&&_0x5e2e93['subType']==_0x4b595d&&zt(_0x5e2e93,_0x1519c9)&&(_0x208e34(_0x5e2e93['getRanges'](),_0x5df807)||_0x208e34(_0x5df807,_0x5e2e93['getRanges']()))){for(const _0x563906 of _0x5df807)_0x5e2e93['addRange'](_0x563906);return _0x5e2e93;}for(const {suggestion:_0x27d7ab,meta:_0x56b09b}of this['_findSuggestions'](_0x5df807,'insertion')){if(!_0x56b09b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x56b09b['containsRangeInObject'])continue;if(!zt(_0x27d7ab,_0x1519c9))continue;let _0x5ba6b1=!0x0;for(const _0x3059a6 of _0x27d7ab['getRanges']())for(const _0x11554d of _0x5df807)if(!_0x3059a6['containsRange'](_0x11554d)){_0x5ba6b1=!0x1;break;}if(_0x5ba6b1)return _0x27d7ab;}const _0x48c0bf=_0x5a1697(),_0x29a0e3=_0x366a1['id'],_0xffffd3='insertion:'+_0x4b595d,_0x277795=this['_setSuggestionData']({'id':_0x48c0bf,'type':_0xffffd3,'createdAt':new Date(),'authorId':_0x29a0e3,'attributes':_0x1519c9});for(const _0x3010e2 of _0x5df807)this['_addSuggestionMarker'](_0xffffd3,_0x48c0bf,_0x29a0e3,_0x3010e2,o['getMultiRangeId']());return _0x277795;}['markInlineFormat'](_0x4384e5,_0x30a346,_0x3c2a76=null,_0x219f76={}){if(_0x3c2a76=_0x3c2a76||Gt(_0x30a346),_0x4384e5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x19f129=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3c2a76,'accept');return this['forceDefaultExecution'](()=>_0x19f129([_0x4384e5],_0x30a346,_0x219f76)),null;}const _0x3ef038=this['editor']['plugins']['get']('Users')['me'],_0x585fb7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x13d60b,meta:_0x57c611}of this['_findSuggestions'](_0x4384e5,'insertion'))_0x57c611['isOwn']&&!_0x57c611['isInsideObject']&&_0x585fb7['push'](..._0x13d60b['getRanges']());}const _0x3284eb=function(_0x5c13d3,_0x2f4264){const _0x4841db=[];for(const _0x35cb93 of _0x2f4264){const _0x30a523=_0x5c13d3['getIntersection'](_0x35cb93);_0x30a523&&_0x4841db['push'](_0x30a523);}return _0x4841db;}(_0x4384e5,_0x585fb7),_0xbb46f3=function(_0x576219,_0x740b47){const _0x1e3967=[_0x576219];for(const _0x5af563 of _0x740b47){let _0xcb7b29=0x0;for(;_0xcb7b29<_0x1e3967['length'];){const _0x592931=_0x1e3967[_0xcb7b29]['getDifference'](_0x5af563);_0x1e3967['splice'](_0xcb7b29,0x1,..._0x592931),_0xcb7b29+=_0x592931['length'];}}return _0x1e3967;}(_0x4384e5,_0x585fb7);_0x3284eb['length']&&this['_model']['change'](()=>{for(const _0x4c18f4 of _0x3284eb){const _0x6abef9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3c2a76,'accept');this['forceDefaultExecution'](()=>_0x6abef9([_0x4c18f4],_0x30a346,_0x219f76));}});for(const _0x36a339 of _0xbb46f3){let _0x1601b9=null,_0x49c22a=_0x36a339['start'],_0x1b9913=_0x36a339['end'];for(const {suggestion:_0x414397,meta:_0x43c4ad}of this['_findSuggestions'](_0x36a339,'formatInline')){if(!_0x43c4ad['isOwn'])continue;if(_0x414397['subType']!=_0x3c2a76)continue;if(!zt(_0x414397,_0x219f76))continue;const _0x56bfca=_0x414397['getFirstRange']();if(_0x56bfca['containsRange'](_0x36a339,!0x0))return null;_0x49c22a=_0x49c22a['isBefore'](_0x56bfca['start'])?_0x49c22a:_0x56bfca['start'],_0x1b9913=_0x1b9913['isAfter'](_0x56bfca['end'])?_0x1b9913:_0x56bfca['end'],_0x1601b9?_0x56bfca['start']['isBefore'](_0x1601b9['getFirstRange']()['start'])?(_0x1601b9['removeMarkers'](),_0x1601b9=_0x414397):_0x414397['removeMarkers']():_0x1601b9=_0x414397;}const _0x59ca4a=this['_model']['createRange'](_0x49c22a,_0x1b9913);if(_0x1601b9)this['_setSuggestionRange'](_0x1601b9,_0x59ca4a);else{const _0x1c9cb3=_0x5a1697(),_0x37aa23=_0x3ef038['id'];this['_setSuggestionData']({'id':_0x1c9cb3,'type':'formatInline:'+_0x3c2a76,'data':_0x30a346,'createdAt':new Date(),'authorId':_0x37aa23,'attributes':_0x219f76}),this['_addSuggestionMarker']('formatInline:'+_0x3c2a76,_0x1c9cb3,_0x37aa23,_0x59ca4a);}}return null;}['markBlockFormat'](_0x5592f3,_0x1259ed,_0xdcf9de=[],_0xaac276=null,_0x5128f2={}){_0x1259ed['formatGroupId']||(_0x1259ed['formatGroupId']=_0x1259ed['commandName']),_0x1259ed['multipleBlocks']=_0x5592f3['is']('range'),_0xaac276=_0xaac276||Gt(_0x1259ed);const _0x41c205=_0xdcf9de['map'](_0x346898=>Kt(_0x346898,this['_model'])),_0x28fbec=_0x5592f3['is']('range')?_0x5592f3:Kt(_0x5592f3,this['_model']);if('never'===this['_trackFormatChanges']){const _0x365e52=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xaac276,'accept');return this['forceDefaultExecution'](()=>_0x365e52([_0x28fbec],_0x1259ed,_0x5128f2)),null;}_0x41c205['push'](_0x28fbec);let _0x3cfe14=!0x0;for(const _0x178c25 of _0x41c205)if(!this['_rangeIsInLocalUserInsertion'](_0x178c25)){_0x3cfe14=!0x1;break;}if(_0x3cfe14&&'always'!==this['_trackFormatChanges']){const _0x7688d6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xaac276,'accept');return this['forceDefaultExecution'](()=>_0x7688d6([_0x28fbec],_0x1259ed,_0x5128f2)),null;}let _0x2c1f9b=null,_0x3fdd45=_0x28fbec['start'],_0x1f3902=_0x28fbec['end'];for(const {suggestion:_0x5ee764,meta:_0x40a52b}of this['_findSuggestions'](_0x28fbec,'formatBlock')){if(!_0x40a52b['isOwn'])continue;if(_0x40a52b['isNextTo']||_0x40a52b['containsRangeInObject']||_0x40a52b['isInsideObject'])continue;if(_0x5ee764['data']['formatGroupId']!=_0x1259ed['formatGroupId'])continue;if(!zt(_0x5ee764,_0x5128f2))continue;const _0x441642=_0x5ee764['getFirstRange']();if(_0x5ee764['subType']==_0xaac276){if(_0x441642['containsRange'](_0x28fbec,!0x0))return null;_0x3fdd45=_0x3fdd45['isBefore'](_0x441642['start'])?_0x3fdd45:_0x441642['start'],_0x1f3902=_0x1f3902['isAfter'](_0x441642['end'])?_0x1f3902:_0x441642['end'],_0x2c1f9b?_0x441642['start']['isBefore'](_0x2c1f9b['getFirstRange']()['start'])?(_0x2c1f9b['removeMarkers'](),_0x2c1f9b=_0x5ee764):_0x5ee764['removeMarkers']():_0x2c1f9b=_0x5ee764;}else{const _0x1c47c0=_0x28fbec['getIntersection'](_0x441642);this['_cutOutSuggestionMarker'](_0x5ee764,_0x1c47c0);}}const _0x66e859=this['editor']['plugins']['get']('Users')['me'],_0x242f72=_0x5a1697(),_0x583d72=_0x66e859['id'];if(_0x2c1f9b)return this['_setSuggestionRange'](_0x2c1f9b,this['_model']['createRange'](_0x3fdd45,_0x1f3902)),_0x2c1f9b;{const _0x2eba71=this['_setSuggestionData']({'id':_0x242f72,'type':'formatBlock:'+_0xaac276,'data':_0x1259ed,'createdAt':new Date(),'authorId':_0x583d72,'attributes':_0x5128f2});return this['_addSuggestionMarker']('formatBlock:'+_0xaac276,_0x242f72,_0x583d72,this['_model']['createRange'](_0x3fdd45,_0x1f3902)),_0x2eba71;}}['markMultiRangeBlockFormat'](_0x58ce5e,_0x3f90de,_0xad2297=[],_0x2467fc=null,_0x849f46={}){_0x3f90de['formatGroupId']||(_0x3f90de['formatGroupId']=_0x3f90de['commandName']);const _0x155b5f=_0x58ce5e[0x0];_0x3f90de['multipleBlocks']=_0x155b5f['is']('range'),_0x2467fc=_0x2467fc||Gt(_0x3f90de);const _0x157c32=_0xad2297['map'](_0x1ba5da=>Kt(_0x1ba5da,this['_model'])),_0x26eb04=_0x155b5f['is']('range')?_0x58ce5e:_0x58ce5e['map'](_0x432b81=>Kt(_0x432b81,this['_model']));if('never'===this['_trackFormatChanges']){const _0x38a678=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2467fc,'accept');return this['forceDefaultExecution'](()=>_0x38a678(_0x26eb04,_0x3f90de,_0x849f46)),null;}_0x157c32['push'](..._0x26eb04);let _0x2249d9=!0x0;for(const _0x56d8cd of _0x157c32)if(!this['_rangeIsInLocalUserInsertion'](_0x56d8cd)){_0x2249d9=!0x1;break;}if(_0x2249d9&&'always'!==this['_trackFormatChanges']){const _0x55579b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2467fc,'accept');return this['forceDefaultExecution'](()=>_0x55579b(_0x26eb04,_0x3f90de,_0x849f46)),null;}const _0x5b3e8e=this['editor']['plugins']['get']('Users')['me'];for(const _0x56b443 of this['getSuggestions']()){if(_0x56b443['author']['id']!=_0x5b3e8e['id'])continue;if('formatBlock'!=_0x56b443['type']||_0x56b443['data']['formatGroupId']!=_0x3f90de['formatGroupId'])continue;if(!zt(_0x56b443,_0x849f46))continue;const _0x4ea5bb=_0x56b443['subType']==_0x2467fc;for(let _0x182f01=0x0;_0x182f01<_0x26eb04['length'];_0x182f01++){const _0x3b1370=_0x26eb04[_0x182f01];for(const _0x17b7b8 of _0x56b443['getMarkers']()){const _0x5252ff=_0x17b7b8['getRange']();if(_0x3b1370['isEqual'](_0x5252ff)){_0x4ea5bb?(_0x26eb04['splice'](_0x182f01,0x1),_0x182f01--):_0x56b443['removeMarker'](_0x17b7b8['name']);break;}}}}if(0x0==_0x26eb04['length'])return null;const _0x16caf4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2467fc,'join');for(const _0x9c48fc of this['getSuggestions']())if(_0x9c48fc['author']['id']==_0x5b3e8e['id']&&'formatBlock'==_0x9c48fc['type']&&_0x9c48fc['data']['formatGroupId']==_0x3f90de['formatGroupId']&&_0x9c48fc['subType']==_0x2467fc&&zt(_0x9c48fc,_0x849f46)&&(_0x16caf4(_0x9c48fc['getRanges'](),_0x26eb04)||_0x16caf4(_0x26eb04,_0x9c48fc['getRanges']()))){for(const _0x2816a0 of _0x26eb04)_0x9c48fc['addRange'](_0x2816a0);return _0x9c48fc;}const _0x1bf025=_0x5a1697(),_0x537b53=_0x5b3e8e['id'],_0x1f7a94='formatBlock:'+_0x2467fc,_0x2cb840=this['_setSuggestionData']({'id':_0x1bf025,'type':_0x1f7a94,'data':_0x3f90de,'createdAt':new Date(),'authorId':_0x537b53,'attributes':_0x849f46});for(const _0x34e2fa of _0x26eb04)this['_addSuggestionMarker'](_0x1f7a94,_0x1bf025,_0x537b53,_0x34e2fa,o['getMultiRangeId']());return _0x2cb840;}['markDeletion'](_0x1e4869,_0xa5f3db=null,_0x38d9cd={}){if(_0x1e4869['isCollapsed'])return null;const _0x4bba01=this['editor']['plugins']['get']('Users')['me'],_0x38ce31=new _0x27b625(_0x1e4869['start'],_0x1e4869['end']);for(const {suggestion:_0x5cf5e1,meta:_0x559c70}of this['_findSuggestions'](_0x38ce31,'insertion'))if(_0x559c70['isOwn']&&!_0x559c70['isNextTo']){if(_0x5cf5e1['isMultiRange']){const _0x149da2=_0x5cf5e1['getRanges']()['filter'](_0x5829cf=>'$graveyard'!=_0x5829cf['root']['rootName']);_0x149da2['every'](_0x22c03f=>_0x38ce31['containsRange'](_0x22c03f,!0x0))&&_0x5cf5e1['discard']();if(_0x149da2['some'](_0x33859f=>_0x33859f['containsRange'](_0x38ce31,!0x0))){const _0x4dc7e2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa5f3db,'accept');return this['forceDefaultExecution'](()=>_0x4dc7e2([_0x38ce31],null,_0x38d9cd)),null;}}else{const _0x530993=_0x38ce31['getIntersection'](_0x5cf5e1['getFirstRange']());null!==_0x530993&&_0x5cf5e1['_onDiscard']([_0x530993],null,_0x38d9cd);}}if(_0x38ce31['detach'](),_0x38ce31['isCollapsed']||'$graveyard'==_0x38ce31['root']['rootName'])return null;let _0x5830d6=null,_0x2ed904=_0x38ce31['start'],_0x4445bd=_0x38ce31['end'];const _0x202777=this['_findSuggestions'](_0x38ce31,'deletion');for(const {suggestion:_0x5ab93d,meta:_0x4ff084}of _0x202777){const _0x248c36=this['_model']['createRange'](_0x2ed904,_0x4445bd);if(_0x4ff084['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4ff084['containsRangeInObject']&&!_0x4ff084['isInsideObject'])){if(_0x5ab93d['isMultiRange']){if(!zt(_0x5ab93d,_0x38d9cd))continue;let _0x39e433=!0x0;for(const _0x2bd83c of _0x5ab93d['getRanges']()){if(_0x2bd83c['containsRange'](_0x248c36,!0x0))return _0x5ab93d;_0x248c36['containsRange'](_0x2bd83c)||(_0x39e433=!0x1);}_0x39e433&&_0x5ab93d['discard']();}else{const _0x5b8442=_0x5ab93d['getFirstRange']();if(_0x5b8442['containsRange'](_0x248c36,!0x0))return _0x5ab93d;if(!zt(_0x5ab93d,_0x38d9cd)){_0x248c36['containsRange'](_0x5b8442)?_0x5ab93d['removeMarkers']():_0x5b8442['containsPosition'](_0x2ed904)?_0x2ed904=_0x5b8442['end']:_0x5b8442['containsPosition'](_0x4445bd)&&(_0x4445bd=_0x5b8442['start']);continue;}_0x2ed904=_0x2ed904['isBefore'](_0x5b8442['start'])?_0x2ed904:_0x5b8442['start'],_0x4445bd=_0x4445bd['isAfter'](_0x5b8442['end'])?_0x4445bd:_0x5b8442['end'],_0x38d9cd=Object['assign']({},_0x5ab93d['attributes']),_0x5830d6?_0x5b8442['start']['isBefore'](_0x5830d6['getFirstRange']()['start'])?(_0x5830d6['removeMarkers'](),_0x5830d6=_0x5ab93d):_0x5ab93d['removeMarkers']():_0x5830d6=_0x5ab93d;}}}if(_0x5830d6)return this['_setSuggestionRange'](_0x5830d6,this['_model']['createRange'](_0x2ed904,_0x4445bd)),_0x5830d6;{const _0x12a57a=_0x5a1697(),_0x19f99b=this['_model']['createRange'](_0x2ed904,_0x4445bd),_0x532c3b=_0x4bba01['id'],_0xc7c377=_0xa5f3db?'deletion:'+_0xa5f3db:'deletion',_0x4c8d75=this['_setSuggestionData']({'id':_0x12a57a,'type':_0xc7c377,'createdAt':new Date(),'authorId':_0x532c3b,'attributes':_0x38d9cd});return this['_addSuggestionMarker'](_0xc7c377,_0x12a57a,_0x532c3b,_0x19f99b),_0x4c8d75;}}['markMultiRangeDeletion'](_0x34a2bf,_0x354873='multi',_0x1e212f={}){const _0x2d916b=this['editor']['plugins']['get']('Users')['me'],_0x1c212e=_0x34a2bf['map'](_0x442b3b=>new _0x27b625(_0x442b3b['start'],_0x442b3b['end'])),_0x16c284=new Set();for(const {suggestion:_0x5a2d4c,meta:_0x157e81}of this['_findSuggestions'](_0x1c212e,'insertion'))_0x157e81['isOwn']&&!_0x157e81['isNextTo']&&_0x16c284['add'](_0x5a2d4c);for(const _0x104690 of _0x16c284)if(_0x104690['isMultiRange']){const _0x481b1f=_0x104690['getRanges']();(!_0x104690['attributes']||!_0x104690['attributes']['skipNestingCheck'])&&(_0x481b1f['every'](_0x19a8a6=>_0x1c212e['some'](_0x566cf1=>_0x566cf1['containsRange'](_0x19a8a6,!0x0)))&&_0x104690['discard']());if(_0x1c212e['every'](_0x23572d=>_0x481b1f['some'](_0x5f54dc=>_0x5f54dc['containsRange'](_0x23572d,!0x0)))){const _0x5e39a7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354873,'accept');return this['forceDefaultExecution'](()=>_0x5e39a7(_0x34a2bf,null,_0x1e212f)),null;}}else{const _0x57b10b=_0x104690['getFirstRange']();_0x1c212e['some'](_0x1476e1=>_0x1476e1['containsRange'](_0x57b10b,!0x0))&&_0x104690['discard']();if(_0x1c212e['every'](_0x457e92=>_0x57b10b['containsRange'](_0x457e92,!0x0))){const _0x3284db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354873,'accept');return this['forceDefaultExecution'](()=>_0x3284db(_0x1c212e,null,_0x1e212f)),null;}}const _0xd9c966=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x354873,'join');let _0x394094=null;for(const _0x41af5f of this['getSuggestions']())if(_0x41af5f['author']['id']==_0x2d916b['id']&&_0x41af5f['isInContent']&&'deletion'==_0x41af5f['type']&&_0x41af5f['subType']==_0x354873&&zt(_0x41af5f,_0x1e212f)&&(_0xd9c966(_0x41af5f['getRanges'](),_0x1c212e)||_0xd9c966(_0x1c212e,_0x41af5f['getRanges']()))){if(_0x394094){if(_0x41af5f['commentThread']&&_0x41af5f['commentThread']['length'])continue;for(const _0x35c17b of _0x41af5f['getRanges']())_0x394094['isIntersectingWithRange'](_0x35c17b)||_0x394094['addRange'](_0x35c17b);_0x41af5f['removeMarkers']();}else{_0x394094=_0x41af5f;for(const _0x4f4291 of _0x1c212e)_0x41af5f['isIntersectingWithRange'](_0x4f4291)||_0x41af5f['addRange'](_0x4f4291);}}if(_0x394094)return _0x394094;_0x16c284['clear']();for(const {suggestion:_0x3498f8,meta:_0x209f90}of this['_findSuggestions'](_0x1c212e,'deletion'))_0x209f90['isOwn']&&(this['_mergeNestedSuggestions']||!_0x209f90['containsRangeInObject']&&!_0x209f90['isInsideObject'])&&zt(_0x3498f8,_0x1e212f)&&_0x16c284['add'](_0x3498f8);for(const _0x5969f7 of _0x16c284){const _0xf3d036=_0x5969f7['getRanges']();if(!_0x1e212f||!_0x1e212f['skipNestingCheck']){if(_0x1c212e['every'](_0x35c3a8=>_0xf3d036['some'](_0x4db583=>_0x4db583['containsRange'](_0x35c3a8,!0x0))))return _0x5969f7;}(!_0x5969f7['attributes']||!_0x5969f7['attributes']['skipNestingCheck'])&&(_0xf3d036['every'](_0x5cdc24=>_0x1c212e['some'](_0x4179a4=>_0x4179a4['containsRange'](_0x5cdc24,!0x0)))&&_0x5969f7['discard']());}const _0x24973d=_0x5a1697(),_0x9feb84=_0x2d916b['id'],_0xdbbec9='deletion:'+_0x354873,_0xa259ae=this['_setSuggestionData']({'id':_0x24973d,'type':_0xdbbec9,'createdAt':new Date(),'authorId':_0x9feb84,'attributes':_0x1e212f});for(const _0x3a71f0 of _0x1c212e)_0x3a71f0['detach'](),_0x3a71f0['isCollapsed']||'$graveyard'==_0x3a71f0['root']['rootName']||this['_addSuggestionMarker'](_0xdbbec9,_0x24973d,_0x9feb84,_0x3a71f0,o['getMultiRangeId']());return _0xa259ae;}['markAttributeChange'](_0x95864d,_0x369676,_0x5f5cf4,_0x3c0fbd,_0x27dd38){if(_0x95864d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5e9853=this['editor']['plugins']['get']('Users')['me']['id'],_0x5b8960=Array['from'](this['_suggestions']['values']())['filter'](_0x184666=>'attribute'==_0x184666['type']&&_0x184666['data']['key']==_0x369676&&_0x184666['isIntersectingWithRange'](_0x95864d));if('default'===this['_trackFormatChanges']){const _0x4fa8ea=this['_findSuggestions'](_0x95864d,'insertion')['filter'](({meta:_0x1074b1})=>_0x1074b1['isOwn']&&!_0x1074b1['isInsideObject']&&!_0x1074b1['isNextTo'])['map'](({suggestion:_0x39e1b2})=>_0x39e1b2);_0x5b8960['unshift'](..._0x4fa8ea);}const _0xfc0568=new Map([[_0x95864d,_0x5f5cf4]]);for(const _0x54b7f3 of _0x5b8960){const _0x3d1964='attribute'==_0x54b7f3['type']?_0x54b7f3['data']['oldValue']:void 0x0,_0x488f81=_0x54b7f3['getFirstRange'](),_0x5544d5=Array['from'](_0xfc0568['keys']())['find'](_0xbecff1=>_0xbecff1['isIntersecting'](_0x488f81));if(!_0x5544d5)continue;const _0x4db429=_0x5544d5['getDifference'](_0x488f81);this['_isBlockAttribute'](_0x369676)&&'insertion'==_0x54b7f3['type']&&0x0!=_0x4db429['length']||(_0xfc0568['delete'](_0x5544d5),_0x4db429['forEach'](_0x1a45c6=>{_0xfc0568['set'](_0x1a45c6,_0x5f5cf4);}),'insertion'!=_0x54b7f3['type']&&_0x3d1964!=_0x3c0fbd&&_0xfc0568['set'](_0x5544d5['getIntersection'](_0x488f81),_0x3d1964));}const _0xeaf703=[];for(const [_0x53ae4d,_0x5b691c]of _0xfc0568){const _0x116c5e=_0x5a1697(),_0x38d8bd={'key':_0x369676,'oldValue':_0x5b691c,'newValue':_0x3c0fbd};_0x369676['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':_0x369676});const _0x45ef31=('attribute:'+(_0x369676+'|'+Gt({'newValue':_0x3c0fbd})))['substring'](0x0,0x3c),_0x2011e3=this['_setSuggestionData']({'id':_0x116c5e,'type':_0x45ef31,'data':_0x38d8bd,'createdAt':new Date(),'authorId':_0x5e9853,'attributes':_0x27dd38});_0xeaf703['push'](_0x2011e3),this['_addSuggestionMarker'](_0x45ef31,_0x116c5e,_0x5e9853,_0x53ae4d);}return _0xeaf703;}['enableDefaultAttributesIntegration'](_0x3732eb){this['enableCommand'](_0x3732eb,(_0x303a57,..._0x385fcc)=>{this['_recordAttributeChanges'](()=>{_0x303a57(..._0x385fcc);});});}['registerBlockAttribute'](_0x46f0d0){this['_blockAttributeKeys']['add'](_0x46f0d0);}['registerInlineAttribute'](_0x8818d6){this['_inlineAttributeKeys']['add'](_0x8818d6);}['_getAttributeKey'](_0x3e31f5){return'attribute'==_0x3e31f5['type']?_0x3e31f5['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x545e73,_0x395f6a){const _0x2414e4=_0x545e73['getFirstMarker']();this['_model']['change'](_0x54a172=>{_0x54a172['updateMarker'](_0x2414e4,{'range':_0x395f6a});});}['_addThreadToSuggestion'](_0x11d031){const _0x2456d5=_0x11d031['id'],_0x42e9af=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2456d5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x42e9af,'threadId':_0x2456d5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x54d8e6=this['_commentsRepository']['getCommentThread'](_0x2456d5);_0x54d8e6['unbind']('isRemovable'),_0x54d8e6['isRemovable']=!0x1,_0x11d031['commentThread']=_0x54d8e6;}['_checkSuggestionCorrectness'](_0x2dd203,_0x5f3fda,_0x43ef54,_0x3ac598){if(_0x2dd203['type']!=_0x5f3fda||_0x2dd203['subType']!=_0x43ef54||_0x2dd203['creator']['id']!=_0x3ac598)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ff27c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2aa6e1,_0x3a2156){const _0x1d29b9=_0x2aa6e1['getFirstRange']();if(_0x3a2156['isEqual'](_0x1d29b9))_0x2aa6e1['removeMarkers']();else{if(_0x1d29b9['containsRange'](_0x3a2156)){const _0x14c59a=this['_model']['createPositionAt'](_0x3a2156['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2aa6e1,this['_model']['createRange'](_0x1d29b9['start'],_0x14c59a));const _0x52a37d=_0x5a1697(),_0x4ef8ad=_0x2aa6e1['creator']['id'],_0x247c0f=_0x2aa6e1['type']+':'+_0x2aa6e1['subType'];this['_setSuggestionData']({'id':_0x52a37d,'type':_0x247c0f,'createdAt':new Date(),'authorId':_0x4ef8ad,'data':_0x2aa6e1['data'],'attributes':_0x2aa6e1['attributes']});const _0x5588fd=this['_model']['createPositionAt'](_0x3a2156['end']['parent'],'after'),_0xfd653b=this['_model']['createRange'](_0x5588fd,_0x1d29b9['end']);this['_addSuggestionMarker'](_0x247c0f,_0x52a37d,_0x4ef8ad,_0xfd653b);}else{if(_0x1d29b9['containsPosition'](_0x3a2156['start'])){const _0x113893=this['_model']['createPositionAt'](_0x3a2156['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2aa6e1,this['_model']['createRange'](_0x1d29b9['start'],_0x113893));}else{const _0x1f8c37=this['_model']['createPositionAt'](_0x3a2156['end']['parent'],'after');this['_setSuggestionRange'](_0x2aa6e1,this['_model']['createRange'](_0x1f8c37,_0x1d29b9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3aa6ef){for(const {suggestion:_0x17a371,meta:_0x3c6bfa}of this['_findSuggestions'](_0x3aa6ef,'insertion')){if(!_0x3c6bfa['isOwn'])continue;const _0x200aa2=_0x17a371['getRanges']();for(const _0x533948 of _0x200aa2)if(!_0x3aa6ef['getDifference'](_0x533948)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5e9dae){const _0x13ae32=this['editor']['plugins']['get']('Users')['getUser'](_0x5e9dae);if(!_0x13ae32)throw new _0x2ff27c('track-changes-user-not-found',this);return _0x13ae32;}['_getExternalAuthor'](_0x4f3c54){const _0x7fa069=this['editor']['plugins']['get']('Users'),_0x28b190=_0x4f76cd('external:'+_0x4f3c54),_0x19248b=_0x7fa069['getUser'](_0x28b190);return _0x19248b||_0x7fa069['addUser']({'id':_0x28b190,'name':_0x4f3c54});}['_createSuggestion'](_0x24f6e7,_0x34f844,_0x2fd7f3,_0x147952,_0x3f57a3){const _0x3af8dd=this['_getAuthorFromId'](_0x147952),_0x5e1a82=this['_suggestionFactory']['buildSuggestion'](_0x24f6e7,_0x34f844,_0x2fd7f3,_0x3af8dd,_0x3f57a3,_0x2c82ec=>{this['_updateSuggestionData'](_0x2fd7f3,{'attributes':_0x2c82ec});const _0xf7c54f=this['getSuggestion'](_0x2fd7f3);this['_joinWithAdjacentSuggestions'](new Set([_0xf7c54f])),this['_refreshSuggestionsChain'](new Set([_0xf7c54f]));});return this['listenTo'](_0x5e1a82,'accept',()=>{this['_updateSuggestionData'](_0x2fd7f3,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5e1a82,'discard',()=>{this['_updateSuggestionData'](_0x2fd7f3,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2fd7f3,_0x5e1a82),this['_suggestionState']['set'](_0x5e1a82,'notReady'),_0x5e1a82;}['_splitMarkerName'](_0x2ef01a){const _0x368e80=_0x2ef01a['split'](':');return{'group':_0x368e80[0x0],'type':_0x368e80[0x1],'subType':_0x368e80['length']>=0x5?_0x368e80[0x2]:null,'id':_0x368e80['length']<0x5?_0x368e80[0x2]:_0x368e80[0x3],'authorId':_0x368e80['length']<0x5?_0x368e80[0x3]:_0x368e80[0x4],'markerCount':0x6==_0x368e80['length']?_0x368e80[0x5]:null};}['_breakSuggestionMarker'](_0x39b4bd,_0x1605b9,_0xe568e5){const _0x58bbff=_0x39b4bd['getFirstRange'](),_0x2e98c5=_0x58bbff['start'],_0x2a630a=_0x58bbff['end'];this['_setSuggestionRange'](_0x39b4bd,this['_model']['createRange'](_0x2e98c5,_0x1605b9));const _0x3c7e42=_0x5a1697(),_0x208907=_0x39b4bd['creator']['id'],_0x404872=_0x39b4bd['type']+(_0x39b4bd['subType']?':'+_0x39b4bd['subType']:'');this['_setSuggestionData']({'id':_0x3c7e42,'type':_0x404872,'createdAt':new Date(),'authorId':_0x208907,'originalSuggestionId':_0x39b4bd['id'],'attributes':_0x39b4bd['attributes'],'data':_0x39b4bd['data']});const _0x2ec453=this['_getAttributeKey'](_0x39b4bd);('formatBlock'==_0x39b4bd['type']||_0x2ec453&&this['_isBlockAttribute'](_0x2ec453))&&(_0xe568e5=this['_model']['createPositionBefore'](_0xe568e5['parent'])),this['_addSuggestionMarker'](_0x404872,_0x3c7e42,_0x208907,this['_model']['createRange'](_0xe568e5,_0x2a630a));}['_findSuggestions'](_0xcd958,_0x143af4=null){const _0x1f5124=[],_0x3a9118=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xcd958)||(_0xcd958=[_0xcd958]);for(const _0xa732e of this['getSuggestions']()){if(!_0xa732e['isInContent'])continue;if(_0x143af4&&_0xa732e['type']!=_0x143af4)continue;let _0x352598=!0x1;for(const _0x298b6d of _0xa732e['getRanges']()){for(const _0x380231 of _0xcd958){const _0x34c4f0=_0x380231['start']['isEqual'](_0x298b6d['end'])||_0x380231['end']['isEqual'](_0x298b6d['start']);if(_0x34c4f0||_0x380231['getIntersection'](_0x298b6d)){const _0x3f04d5=_0x380231['containsRange'](_0x298b6d)&&Vt(this['_model']['schema'],_0x298b6d['start'],_0x380231),_0x2b4f74=_0x298b6d['containsRange'](_0x380231)&&Vt(this['_model']['schema'],_0x380231['start'],_0x298b6d);_0x1f5124['push']({'suggestion':_0xa732e,'meta':{'isOwn':_0x3a9118==_0xa732e['author'],'isNextTo':_0x34c4f0,'isInsideObject':_0x3f04d5,'containsRangeInObject':_0x2b4f74}}),_0x352598=!0x0;break;}}if(_0x352598)break;}}return _0x1f5124;}['_addSuggestionMarker'](_0x134b3f,_0x9ea6ee,_0x1ef417,_0x49c026,_0x3f3034){this['_model']['change'](_0x6ad81=>{let _0x20f740='suggestion:'+_0x134b3f+':'+_0x9ea6ee+':'+_0x1ef417;_0x3f3034&&(_0x20f740=_0x20f740+':'+_0x3f3034),_0x6ad81['addMarker'](_0x20f740,{'range':_0x49c026,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x16f533){const _0x517fe1=_0x16f533['previous'],_0xa1bd54=_0x16f533['next'];_0x16f533['previous']=null,_0x16f533['next']=null,null!=_0x517fe1&&_0x517fe1['next']==_0x16f533&&(_0x517fe1['next']=_0xa1bd54),null!=_0xa1bd54&&_0xa1bd54['previous']==_0x16f533&&(_0xa1bd54['previous']=_0x517fe1),'ready'==this['_suggestionState']['get'](_0x16f533)&&(this['_suggestionState']['set'](_0x16f533,'removed'),this['fire']('suggestionUnloaded',_0x16f533,_0x517fe1,_0xa1bd54));}['_setSuggestionData'](_0x37e44e){const _0x549cb9=_0x37e44e['id'],_0x14b684=this['addSuggestionData'](_0x37e44e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1bc9b3=this['editor']['plugins']['get']('PendingActions'),_0x322f2f=_0x14b684['hasComments'],_0x2ffee1=_0x14b684['subType']?_0x14b684['type']+':'+_0x14b684['subType']:_0x14b684['type'],_0x1ee3a7=this['editor']['locale'],_0x388d08=_0x1bc9b3['add'](c(_0x1ee3a7,'PENDING_ACTION_SUGGESTION')),_0x213487={'id':_0x549cb9,'type':_0x2ffee1,'hasComments':_0x322f2f,'data':_0x37e44e['data']||null,'originalSuggestionId':_0x37e44e['originalSuggestionId']||null,'attributes':_0x14b684['attributes']};this['_adapter']['addSuggestion'](_0x213487)['then'](_0x24b1a4=>{_0x14b684['_saved']=!0x0,_0x1bc9b3['remove'](_0x388d08),_0x24b1a4&&_0x24b1a4['createdAt']&&(this['_suggestions']['get'](_0x549cb9)['createdAt']=_0x24b1a4['createdAt']);})['catch'](_0x4de60a=>{throw _0x4f88d6('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x14b684['discard']();}),_0x14b684['stopListening'](),this['_suggestions']['delete'](_0x14b684['id']),this['_suggestionState']['delete'](_0x14b684),_0x4de60a;});}return _0x14b684;}['_isBlockAttribute'](_0x2b2e00){return this['_blockAttributeKeys']['has'](_0x2b2e00);}['_updateSuggestionData'](_0x5d2db2,_0x28d974){const _0x1eb976=this['editor']['plugins']['get']('PendingActions'),_0x3c6e83=this['getSuggestion'](_0x5d2db2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3c6e83['_saved']){const _0x5c409f=_0x1eb976['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5d2db2,_0x28d974)['then'](()=>{_0x1eb976['remove'](_0x5c409f);});}else _0x3c6e83['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5d2db2,_0x28d974);});}}['_getSuggestionData'](_0x117bfa){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ff27c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x117bfa);}['_handleNewSuggestionMarker'](_0x12a16b){const {id:_0x272ba0,type:_0x3d59ba,subType:_0x49381b,authorId:_0x5a02d7}=this['_splitMarkerName'](_0x12a16b),_0x3b28e8=this['_suggestions']['get'](_0x272ba0)||this['_createSuggestion'](_0x3d59ba,_0x49381b,_0x272ba0,_0x5a02d7,{});switch(this['_checkSuggestionCorrectness'](_0x3b28e8,_0x3d59ba,_0x49381b,_0x5a02d7),this['_suggestionState']['get'](_0x3b28e8)){case'notReady':this['_getSuggestionData'](_0x272ba0)['then'](_0x4664fa=>{let _0x18a53b=Promise['resolve']();_0x4664fa['hasComments']&&(_0x18a53b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x272ba0})),_0x18a53b['then'](()=>{this['addSuggestionData'](_0x4664fa)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3b28e8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x272ba0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3b28e8,'ready'),this['fire']('suggestionLoaded',_0x3b28e8);break;case'ready':this['fire']('suggestionChanged',_0x3b28e8);}return _0x3b28e8['addMarkerName'](_0x12a16b),_0x3b28e8;}['_refreshSuggestionsChain'](_0x2b2f70){const _0x66604e=Array['from'](_0x2b2f70),_0x516cf4=_0x66604e['filter'](_0x295379=>'attribute'==_0x295379['type']);this['_refreshAttributeSuggestionsChain'](_0x516cf4);const _0xd023e0=_0x66604e['filter'](_0x275962=>!_0x275962['isMultiRange']&&'attribute'!=_0x275962['type']),_0x4615dc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3933de=>!_0x3933de['isMultiRange']&&'attribute'!=_0x3933de['type']),_0xcdbb66=_0x4615dc['filter'](_0x194525=>!_0x2b2f70['has'](_0x194525)),_0x4c0147=new Map(_0x4615dc['map'](_0x1a3801=>[_0x1a3801,this['_suggestionFactory']['getSuggestionCallback'](_0x1a3801['type'],_0x1a3801['subType'],'chain')])),_0x39cb96=new Map(_0x4615dc['map'](_0x40bc28=>[_0x40bc28,_0x40bc28['getFirstRange']()])),_0x204b10=new Set(),_0x2cdc22=new Set();for(let _0x1116b5=0x0;_0x1116b5<_0xd023e0['length'];_0x1116b5++)_0x5334ad(_0xd023e0[_0x1116b5],_0xd023e0,_0x1116b5+0x1);for(let _0x35c914=0x0;_0x35c914<_0xd023e0['length'];_0x35c914++)_0x5334ad(_0xd023e0[_0x35c914],_0xcdbb66,0x0);const _0x50ffb7=new Set();for(let _0x510abf=0x0;_0x510abf<_0xd023e0['length'];_0x510abf++){const _0x58a899=_0xd023e0[_0x510abf];!_0x2cdc22['has'](_0x58a899)&&_0x58a899['previous']&&(_0x50ffb7['add'](_0x58a899['previous']),_0x58a899['previous']['next']===_0x58a899&&(_0x58a899['previous']['next']=null),_0x58a899['previous']=null),!_0x204b10['has'](_0x58a899)&&_0x58a899['next']&&(_0x50ffb7['add'](_0x58a899['next']),_0x58a899['next']['previous']===_0x58a899&&(_0x58a899['next']['previous']=null),_0x58a899['next']=null);}function _0x5334ad(_0x3d8899,_0x1235ed,_0x51418a){for(let _0x43e0c4=_0x51418a;_0x43e0c4<_0x1235ed['length'];_0x43e0c4++){const _0x5d57de=_0x5cbf17(_0x3d8899,_0x1235ed[_0x43e0c4]);_0x5d57de&&(_0x5d57de[0x0]['next']=_0x5d57de[0x1],_0x5d57de[0x1]['previous']=_0x5d57de[0x0],_0x204b10['add'](_0x5d57de[0x0]),_0x2cdc22['add'](_0x5d57de[0x1]));}}function _0x5cbf17(_0x3d59ec,_0x25d549){if(_0x3d59ec['author']['id']!==_0x25d549['author']['id'])return null;const _0x3a3048=_0x4c0147['get'](_0x3d59ec)(_0x3d59ec,_0x25d549,_0x39cb96['get'](_0x3d59ec),_0x39cb96['get'](_0x25d549));if(!_0x3a3048)return null;return _0x4c0147['get'](_0x25d549)(_0x3d59ec,_0x25d549,_0x39cb96['get'](_0x3d59ec),_0x39cb96['get'](_0x25d549))?_0x3a3048[0x1]['commentThread']&&_0x3a3048[0x1]['commentThread']['length']?null:_0x3a3048:null;}_0x50ffb7['size']&&this['_refreshSuggestionsChain'](_0x50ffb7);}['_refreshAttributeSuggestionsChain'](_0x248b9a){if(0x0==_0x248b9a['length'])return;const _0x36366a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xffd675=>'attribute'==_0xffd675['type']&&_0xffd675['_isDataLoaded']),_0x28ba03=[],_0x54a613=new Map();for(const _0x2134bd of _0x36366a){const _0x402d15=_0x4f76cd(_0x2134bd['attributes']);_0x54a613['has'](_0x402d15)||(_0x54a613['set'](_0x402d15,_0x28ba03['length']),_0x28ba03['push']([]));const _0x13fb06=_0x54a613['get'](_0x402d15);_0x28ba03[_0x13fb06]['push'](_0x2134bd);}!(function(){_0x28ba03['sort']((_0x431e0c,_0x9f33bc)=>{const _0x5d929b=_0x431e0c[0x0]['createdAt'],_0x588518=_0x9f33bc[0x0]['createdAt'];return _0x5d929b==_0x588518?_0x431e0c[0x0]['attributes']['groupId']<_0x9f33bc[0x0]['attributes']['groupId']?-0x1:0x1:_0x5d929b<_0x588518?-0x1:0x1;});for(const _0x3f7b05 of _0x28ba03)_0x3f7b05['sort']((_0x1089fd,_0x71b7d)=>_0x1089fd['id']<_0x71b7d['id']?-0x1:0x1);}());for(let _0x2c819f=0x0;_0x2c819f<_0x28ba03['length'];_0x2c819f++){if(0x0==_0x28ba03[_0x2c819f]['length'])continue;const _0x4b8bf0=[];for(let _0x374d94=_0x2c819f+0x1;_0x374d94<_0x28ba03['length'];_0x374d94++)0x0!=_0x28ba03[_0x374d94]['length']&&_0x4e4105(_0x28ba03[_0x2c819f],_0x28ba03[_0x374d94])&&_0x4b8bf0['push'](_0x374d94);for(const _0x2129df of _0x4b8bf0)_0x28ba03[_0x2c819f]=_0x28ba03[_0x2c819f]['concat'](_0x28ba03[_0x2129df]),_0x28ba03[_0x2129df]=[];}for(const _0x1a89dc of _0x28ba03)for(let _0x33082f=0x0;_0x33082f<_0x1a89dc['length'];_0x33082f++){const _0x5eaaaf=_0x1a89dc[_0x33082f+0x1]||null;_0x1a89dc[_0x33082f]['next']!==_0x5eaaaf&&(_0x1a89dc[_0x33082f]['next']=_0x5eaaaf);}for(const _0x235ea1 of _0x28ba03)for(let _0x34e899=0x0;_0x34e899<_0x235ea1['length'];_0x34e899++){const _0x112915=_0x235ea1[_0x34e899-0x1]||null;_0x235ea1[_0x34e899]['previous']!==_0x112915&&(_0x235ea1[_0x34e899]['previous']=_0x112915);}function _0x4e4105(_0x5de0b6,_0x4f18fc){if(_0x5de0b6[0x0]['attributes']['groupId']!==_0x4f18fc[0x0]['attributes']['groupId']&&_0x5de0b6[0x0]['author']!==_0x4f18fc[0x0]['author'])return!0x1;if(!function(_0x57a9b6,_0x3e2fa7){if(!_0x57a9b6['hasComments']&&!_0x3e2fa7['hasComments'])return!0x0;if(_0x57a9b6['hasComments']&&_0x3e2fa7['hasComments'])return!0x1;if(_0x57a9b6['hasComments']&&_0x3e2fa7['createdAt']<_0x57a9b6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3e2fa7['hasComments']&&_0x57a9b6['createdAt']<_0x3e2fa7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5de0b6[0x0],_0x4f18fc[0x0]))return!0x1;const _0x2f03b2=Et(_0x5de0b6[0x0]['attributes'],'groupId'),_0x1eeba7=Et(_0x4f18fc[0x0]['attributes'],'groupId');if(!_0x4d0e84(_0x2f03b2,_0x1eeba7))return!0x1;return!!_0x5de0b6['every'](_0x48cecc=>_0x4f18fc['some'](_0x2ca995=>_0x48cecc['getFirstRange']()['isEqual'](_0x2ca995['getFirstRange']())))&&_0x4f18fc['every'](_0x4a7a53=>_0x5de0b6['some'](_0x24c096=>_0x4a7a53['getFirstRange']()['isEqual'](_0x24c096['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3648af){const _0x57738d=Array['from'](_0x3648af),_0x2d69a2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x27ce20=_0x2d69a2['filter'](_0xa580e5=>!_0x3648af['has'](_0xa580e5)),_0x5ad760=new Map(_0x57738d['map'](_0x9d27ac=>[_0x9d27ac,this['_suggestionFactory']['getSuggestionCallback'](_0x9d27ac['type'],_0x9d27ac['subType'],'join')])),_0x580bac=new Map(_0x2d69a2['map'](_0x3ae93d=>[_0x3ae93d,_0x3ae93d['getRanges']()]));for(let _0x46374c=0x0;_0x46374c<_0x57738d['length'];_0x46374c++){if(_0x58f755(this,_0x57738d[_0x46374c],_0x57738d,_0x46374c+0x1))return!0x0;}for(let _0x4c04db=0x0;_0x4c04db<_0x57738d['length'];_0x4c04db++){if(_0x58f755(this,_0x57738d[_0x4c04db],_0x27ce20,0x0))return!0x0;}return!0x1;function _0x58f755(_0xcf173,_0xea24a3,_0x1842ea,_0x17ed94){for(let _0x4ff4c5=_0x17ed94;_0x4ff4c5<_0x1842ea['length'];_0x4ff4c5++){const _0x2030c3=_0x1842ea[_0x4ff4c5];if(_0x2030c3['type']!==_0xea24a3['type']||_0x2030c3['author']['id']!==_0xea24a3['author']['id']||_0x2030c3['subType']!==_0xea24a3['subType'])continue;if(!qt(_0xea24a3,_0x2030c3))continue;if('attribute'==_0xea24a3['type']&&_0xea24a3['data']['oldValue']!=_0x2030c3['data']['oldValue'])continue;if('attribute'==_0xea24a3['type']&&_0xcf173['_isBlockAttribute'](_0xea24a3['data']['key']))continue;if('formatBlock'==_0xea24a3['type']){const _0x7ec106=_0xcf173['editor']['model'],_0x3adfac=_0xea24a3['getContainedElement']();if(_0x3adfac&&(_0x7ec106['schema']['isObject'](_0x3adfac)||_0x7ec106['schema']['isLimit'](_0x3adfac)))continue;}const _0x29099e=_0x5ad760['get'](_0xea24a3),_0x451c97=_0x580bac['get'](_0xea24a3),_0x51eaf3=_0x580bac['get'](_0x2030c3),_0x383050=_0xea24a3['commentThread']&&_0xea24a3['commentThread']['length'],_0xe39e8=_0x2030c3['commentThread']&&_0x2030c3['commentThread']['length'];if(!_0x383050&&_0x29099e(_0x51eaf3,_0x451c97))return _0xcf173['_joinSuggestions'](_0x2030c3,_0xea24a3),_0x580bac['delete'](_0xea24a3),!0x0;if(!_0xe39e8&&_0x29099e(_0x451c97,_0x51eaf3))return _0xcf173['_joinSuggestions'](_0xea24a3,_0x2030c3),_0x580bac['delete'](_0x2030c3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x317f0a,_0x23a856){if(_0x317f0a['isMultiRange']){for(const _0x53746e of _0x23a856['getRanges']())_0x317f0a['addRange'](_0x53746e);}else{const _0x4d9fa4=_0x23a856['getFirstRange']()['end'];this['_setSuggestionRange'](_0x317f0a,this['_model']['createRange'](_0x317f0a['getFirstRange']()['start'],_0x4d9fa4));}_0x23a856['removeMarkers']();}['_getMarkerAnnouncementText'](_0x36e6e7,_0x2462fc,_0x1acea4){const _0x48dec6=_0x36e6e7['startsWith']('format')||_0x36e6e7['startsWith']('attribute')?'FORMATTING':_0x36e6e7['toUpperCase']();return c(this['editor']['locale'],_0x2462fc+'_'+_0x48dec6+'_SUGGESTION_ANNOUNCEMENT',_0x1acea4);}['_initAriaMarkerChangeAnnouncements'](){const _0x578e76=this['editor'];if(!_0x578e76['ui'])return;const {ariaLiveAnnouncer:_0x4856c5}=_0x578e76['ui'];_0x5df461(this['_model'],({left:_0x3aab0c,entered:_0x1e2bfd})=>{for(const _0x3aeccc of _0x3aab0c){const {group:_0x5b3fce,type:_0x2f742b}=this['_splitMarkerName'](_0x3aeccc['name']);if('suggestion'===_0x5b3fce){_0x4856c5['announce'](this['_getMarkerAnnouncementText'](_0x2f742b,'LEAVE'));break;}}for(const _0x248715 of _0x1e2bfd){const {group:_0x3a2d11,type:_0x152105}=this['_splitMarkerName'](_0x248715['name']);if('suggestion'===_0x3a2d11){_0x4856c5['announce'](this['_getMarkerAnnouncementText'](_0x152105,'ENTER',_0x58d004(_0xe1b8ad)));break;}}});}['_processAttributeChanges'](_0x13358a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2e5584=this['editor'],_0x428854=_0x2e5584['model']['document']['differ']['getChanges']();if(0x0==_0x428854['length'])return!0x1;const _0x251683=[],_0x9fed58=_0x428854['filter'](_0x3240fc=>'attribute'==_0x3240fc['type']),_0x5e3051=_0x428854['filter'](_0xc68a37=>'insert'==_0xc68a37['type']&&'$text'!=_0xc68a37['name']),_0x6e6b1f=_0x428854['filter'](_0x2b56cc=>'remove'==_0x2b56cc['type']&&'$text'!=_0x2b56cc['name']);for(const _0x1349e6 of _0x9fed58)_0x251683['push']({'key':_0x1349e6['attributeKey'],'newValue':_0x1349e6['attributeNewValue'],'oldValue':_0x1349e6['attributeOldValue'],'range':Jt(_0x1349e6['range'],_0x2e5584['model'])});for(const _0x75a48f of _0x5e3051){const _0x26b233=_0x6e6b1f['find'](_0x3a4691=>_0x3a4691['position']['isEqual'](_0x75a48f['position']));_0x26b233&&_0x251683['push']({'key':u,'newValue':_0x75a48f['name'],'oldValue':_0x26b233['name'],'range':_0x2e5584['model']['createRangeOn'](_0x75a48f['position']['nodeAfter'])});}return 0x0!=_0x251683['length']&&this['_reduceExistingSuggestions'](_0x13358a,_0x251683);}['_processAttributeSuggestions'](_0x265bd1){let _0xaf3ebb=!0x1;const _0x5b54e7=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x28b4f6=>_0x28b4f6['data']['newRange']&&_0x28b4f6['name']['startsWith']('suggestion:attribute:'));for(const _0x1a81d5 of _0x5b54e7){const {subType:_0x79c59e,id:_0x5dbf7a}=this['_splitMarkerName'](_0x1a81d5['name']),_0x29d322=_0x79c59e['split']('|')[0x0];for(const _0x4fc49b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4fc49b['id']!=_0x5dbf7a&&'attribute'==_0x4fc49b['type']&&_0x4fc49b['data']&&_0x4fc49b['data']['key']==_0x29d322&&_0x4fc49b['getFirstRange']()['isIntersecting'](_0x1a81d5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4fc49b,_0x1a81d5['data']['newRange'],_0x265bd1),_0xaf3ebb=!0x0);}return _0xaf3ebb;}['_recordAttributeChanges'](_0x49be8e){this['_recordAttributeSuggestions']=!0x0,_0x49be8e();}['_isRegisteredAttribute'](_0x515381){const _0x3a0857=this['_isBlockAttribute'](_0x515381),_0x1ec650=this['_inlineAttributeKeys']['has'](_0x515381);return _0x3a0857||_0x1ec650;}['_reduceExistingSuggestions'](_0x21678f,_0x38d403){if(0x0==_0x38d403['length'])return!0x1;let _0x9a328e=!0x1;for(const _0x350660 of _0x38d403){const _0x570df1=this['_findSuggestions'](_0x350660['range'],'attribute')['filter'](_0x3dc501=>!_0x3dc501['meta']['isNextTo'])['map'](_0x1fbcd4=>_0x1fbcd4['suggestion']),_0x3667b4=_0x4f76cd({'newValue':_0x350660['newValue']});_0x570df1['filter'](_0x3b81e0=>{const [_0x2a418a,_0xe4991b]=_0x3b81e0['subType']['split']('|');return _0x2a418a==_0x350660['key']&&_0xe4991b!=_0x3667b4;})['forEach'](_0x140a4b=>{this['_reduceSuggestionAttributeRange'](_0x140a4b,_0x350660['range'],_0x21678f),_0x9a328e=!0x0;});}return _0x9a328e;}['_reduceSuggestionAttributeRange'](_0x405be0,_0x3b90d6,_0x54cc09){const _0x520894=_0x405be0['getFirstRange']()['getDifference'](_0x3b90d6);0x0!==_0x520894['length']?0x1!==_0x520894['length']?this['_breakSuggestionMarker'](_0x405be0,_0x3b90d6['start'],_0x3b90d6['end']):this['_setSuggestionRange'](_0x405be0,_0x520894[0x0]):_0x54cc09['removeMarker'](_0x405be0['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xf1c06d){this['_editor']=_0xf1c06d,this['_model']=_0xf1c06d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5dd17b,_0x318d54,_0x41c66b,_0xae336c,_0x181717,_0x45a800){return new o(this['_model'],{'type':_0x5dd17b,'subType':_0x318d54,'id':_0x41c66b,'author':_0xae336c,'creator':_0xae336c,'attributes':_0x181717,'onAttributesChange':_0x45a800,'onAccept':(..._0x39283b)=>this['getSuggestionCallback'](_0x5dd17b,_0x318d54,'accept')(..._0x39283b),'onDiscard':(..._0x1b37a0)=>this['getSuggestionCallback'](_0x5dd17b,_0x318d54,'discard')(..._0x1b37a0)});}['registerCustomCallback'](_0x51909f,_0x473474,_0x14a540,_0x35e3cc){const _0x316f13=_0x51909f+':'+_0x473474+':'+_0x14a540;this['_customCallbacks']['set'](_0x316f13,_0x35e3cc);}['getSuggestionCallback'](_0x1243a9,_0x55259f,_0xfca7c8){const _0x38b12f=_0x1243a9+':'+_0x55259f+':'+_0xfca7c8;return this['_customCallbacks']['get'](_0x38b12f)||this['_defaultCallbacks']['get'](_0x1243a9+':'+_0xfca7c8);}['_registerDefaultCallbacks'](){const _0x4e8acc=()=>!0x1,_0x322a3a=_0x3c0c17=>{_0x3c0c17['sort']((_0x1ea2db,_0x14ab7a)=>_0x1ea2db['start']['isBefore'](_0x14ab7a['start'])?0x1:-0x1),this['_model']['change'](_0x44debd=>{for(const _0x186a3c of _0x3c0c17){let _0x32d0cf;_0x32d0cf=_0x186a3c['end']['isAtEnd']&&_0x186a3c['end']['parent']==_0x186a3c['start']['nodeAfter']?_0x44debd['createSelection'](_0x186a3c['start']['nodeAfter'],'on'):_0x44debd['createSelection'](_0x186a3c),this['_model']['deleteContent'](_0x32d0cf,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c3918=(_0x5d75b6,_0x4b6596)=>{_0x4b6596&&this['_model']['change'](_0x1627df=>{const {commandName:_0x3d2b12,commandParams:_0x3b8bff=[]}=_0x4b6596,_0x3d0074=_0x5d75b6['map'](_0x31cf0f=>(Ft(_0x31cf0f)&&(_0x31cf0f=this['_model']['createRange'](_0x31cf0f['end'])),_0x31cf0f))['filter'](_0x463309=>'$graveyard'!==_0x463309['root']['rootName']);if(_0x3d0074['length']<0x1)return;const _0x564e3d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49a433=>_0x27b625['fromRange'](_0x49a433));_0x1627df['setSelection'](_0x3d0074);for(const _0x545914 of this['_editor']['commands']['commands']())_0x545914['refresh']();_0x3b8bff['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3d2b12,..._0x3b8bff);const _0x41bcce=_0x564e3d['filter'](_0x35b0a2=>'$graveyard'!=_0x35b0a2['root']['rootName']);_0x41bcce['length']>0x0&&_0x1627df['setSelection'](_0x41bcce);for(const _0x5bf425 of _0x564e3d)_0x5bf425['detach']();});},_0x146c03=(_0x1733c9,_0x50483d)=>0x1==_0x1733c9['length']&&0x1==_0x50483d['length']&&_0x1733c9[0x0]['end']['isEqual'](_0x50483d[0x0]['start']),_0x414a40=(_0x4afa2e,_0x598081,_0x355800,_0x24abc9)=>Ht(_0x4afa2e,_0x598081,_0x355800,_0x24abc9)?[_0x4afa2e,_0x598081]:Ht(_0x598081,_0x4afa2e,_0x24abc9,_0x355800)?[_0x598081,_0x4afa2e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4e8acc),this['_defaultCallbacks']['set']('insertion:discard',_0x322a3a),this['_defaultCallbacks']['set']('insertion:join',_0x146c03),this['_defaultCallbacks']['set']('insertion:chain',_0x414a40),this['_defaultCallbacks']['set']('deletion:accept',_0x322a3a),this['_defaultCallbacks']['set']('deletion:discard',_0x4e8acc),this['_defaultCallbacks']['set']('deletion:join',_0x146c03),this['_defaultCallbacks']['set']('deletion:chain',_0x414a40),this['_defaultCallbacks']['set']('formatInline:accept',_0x2c3918),this['_defaultCallbacks']['set']('formatInline:discard',_0x4e8acc),this['_defaultCallbacks']['set']('formatInline:join',_0x146c03),this['_defaultCallbacks']['set']('formatInline:chain',_0x4e8acc),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2c3918),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4e8acc),this['_defaultCallbacks']['set']('formatBlock:join',_0x146c03),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4e8acc),this['_defaultCallbacks']['set']('attribute:accept',_0x4e8acc),this['_defaultCallbacks']['set']('attribute:discard',(_0x239b2d,_0x2d3389)=>{if(!_0x2d3389)return;const _0x49ff16=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x481685=>{if(_0x2d3389['key']==u)for(const _0x3e334b of _0x239b2d){const _0x4a4fbe=_0x3e334b['start']['nodeAfter'],_0x48a611=_0x2d3389['oldValue'];_0x481685['rename'](_0x4a4fbe,_0x48a611);}else{if(_0x49ff16['_isBlockAttribute'](_0x2d3389['key'])){for(const _0x4001b6 of _0x239b2d)void 0x0!==_0x2d3389['oldValue']?_0x481685['setAttribute'](_0x2d3389['key'],_0x2d3389['oldValue'],_0x4001b6['start']['nodeAfter']):_0x481685['removeAttribute'](_0x2d3389['key'],_0x4001b6['start']['nodeAfter']);}else{for(const _0x2aaf2d of _0x239b2d)_0x2d3389['oldValue']?_0x481685['setAttribute'](_0x2d3389['key'],_0x2d3389['oldValue'],_0x2aaf2d):_0x481685['removeAttribute'](_0x2d3389['key'],_0x2aaf2d);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x146c03);}}function Vt(_0x3f2515,_0x594165,_0x35eb92){for(const _0x46ea0e of _0x594165['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x46ea0e['root']==_0x46ea0e)return!0x1;if(!_0x35eb92['containsItem'](_0x46ea0e))return!0x1;if(_0x3f2515['isObject'](_0x46ea0e)||_0x3f2515['isLimit'](_0x46ea0e))return!0x0;}return!0x1;}function Ft(_0x5e8dfd){return _0x5e8dfd['end']['parent']==_0x5e8dfd['start']['nodeAfter']&&_0x5e8dfd['end']['isAtStart'];}function Pt(_0x4a835b,_0x9f6ca8,_0x3e6a34,_0x2aea1d){const _0xf9921a=_0x5c797e=>!_0x5c797e['item']['is']('$textProxy')&&!_0x2aea1d['isObject'](_0x5c797e['item']),_0x2e6ecb=_0x4a835b['start']['getLastMatchingPosition'](_0xf9921a),_0x1b6d50=_0x4a835b['end']['getLastMatchingPosition'](_0xf9921a,{'direction':'backward'});return(!_0x4a835b['start']['isEqual'](_0x2e6ecb)||!_0x4a835b['end']['isEqual'](_0x1b6d50))&&(_0x2e6ecb['isBefore'](_0x1b6d50)?_0x3e6a34['updateMarker'](_0x9f6ca8,{'range':_0x3e6a34['createRange'](_0x2e6ecb,_0x1b6d50)}):_0x3e6a34['removeMarker'](_0x9f6ca8),!0x0);}function Gt(_0x44a5a4){return _0x4f76cd(_0x44a5a4);}function Lt(_0x3f9c58){const _0x451e66=_0x3f9c58['start']['nodeAfter'];return _0x451e66&&_0x451e66['is']('element');}function Jt(_0x59feaf,_0x484295){return null==_0x59feaf['end']['nodeBefore']&&_0x59feaf['end']['parent']==_0x59feaf['start']['nodeAfter']?Kt(_0x59feaf['start']['nodeAfter'],_0x484295):_0x59feaf;}function Kt(_0x307378,_0xf2f9f1){const _0x26ba93=_0xf2f9f1['schema']['isObject'](_0x307378)||_0xf2f9f1['schema']['isSelectable'](_0x307378);return _0xf2f9f1['createRange'](_0xf2f9f1['createPositionAt'](_0x307378,'before'),_0x26ba93?_0xf2f9f1['createPositionAfter'](_0x307378):_0xf2f9f1['createPositionAt'](_0x307378,'end'));}function Ht(_0x667cc0,_0x59da61,_0x13ef6b,_0x122365){return!!qt(_0x667cc0,_0x59da61)&&_0x13ef6b['end']['isEqual'](_0x122365['start']);}function qt(_0x2c3965,_0x2b97d7){if(!_0x2c3965['_isDataLoaded']||!_0x2b97d7['_isDataLoaded'])return!0x1;const _0x587f21=new Set(Object['keys'](_0x2c3965['attributes'])),_0x5d3268=new Set(Object['keys'](_0x2b97d7['attributes']));if(_0x587f21['delete']('groupId'),_0x5d3268['delete']('groupId'),0x0==_0x587f21['size']&&0x0==_0x5d3268['size'])return!0x0;if(_0x587f21['size']!=_0x5d3268['size'])return!0x1;const _0x19190d={..._0x2c3965['attributes']},_0x1f42a8={..._0x2b97d7['attributes']};return delete _0x19190d['groupId'],delete _0x1f42a8['groupId'],JSON['stringify'](_0x19190d)==JSON['stringify'](_0x1f42a8);}function zt(_0x28a1cc,_0x58adab){const _0x495481=Wt(_0x28a1cc['attributes']),_0xc3b2c0=Wt(_0x58adab);if(!_0x28a1cc['_isDataLoaded'])return!0x1;for(const _0x3986d0 of Object['keys'](_0xc3b2c0))if(!_0x4d0e84(_0x495481[_0x3986d0],_0xc3b2c0[_0x3986d0]))return!0x1;return!0x0;}function Wt(_0x493465){const _0x280b3a=Object['assign']({},_0x493465);return delete _0x280b3a['skipNestingCheck'],delete _0x280b3a['tablePasteChainId'],_0x280b3a;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x32db8d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x155819,_0x4a9637,_0x4a2fa7,_0x5aa0c3){super(),this['model']=_0x4a9637,this['view']=_0x4a2fa7,this['commentThreadController']=_0x5aa0c3,this['_editor']=_0x155819,this['_acceptCommand']=_0x155819['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x155819['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x539d4c,_0x785642)=>_0x539d4c||_0x785642),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4197b5=>_0x4197b5&&this['_editor']['model']['canEditAt'](_0x4a9637['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4c17fe=>_0x4c17fe&&this['_editor']['model']['canEditAt'](_0x4a9637['getRanges']())),this['_pendingAction']=null,_0x4a2fa7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4a2fa7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4a2fa7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4a2fa7,'change:isDirty',()=>{_0x4a2fa7['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 _0x534980=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x534980);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3fadb1{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4121e8,_0x56265f,_0x2835aa,_0x53e6ff){super(_0x4121e8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2fbc95(_0x4121e8,c(_0x4121e8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x56265f['authoredAt']),this['bind']('authoredAt')['to'](_0x56265f),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',_0x56265f,'authoredAt',this,'descriptionParts',(_0x22924c,_0x15eb6a,_0x33d4ef)=>{const _0x111cb1=_0x33d4ef['map'](_0x50813f=>ls(_0x50813f['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x22924c-0x1,_0x56265f['author']['name'],_0x15eb6a?_0x53e6ff['formatDateTime'](_0x15eb6a):'',new DOMParser()['parseFromString'](_0x111cb1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5a3c9d(),this['focusTracker']=new _0x48917c(),this['keystrokes']=new _0x455a98(),this['focusCycler']=new _0x2bda9c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x57cd41=>_0x57cd41['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x56265f,this['_localUser']=_0x2835aa,this['_config']=_0x53e6ff,_0x53e6ff['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x334806(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2407b0}=this['_config'];this['commentsListView']=new _0x2407b0(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',_0x3ac7e0=>_0x3ac7e0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1f9263,_0x21422d)=>_0x1f9263||!!_0x21422d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x368f9e}=this['_config'],_0x4f3265=new _0x368f9e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5689fe=_0x4f3265['commentInputView'];return _0x4f3265['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5689fe,'value',(_0x582bf6,_0x53407f,_0x243977)=>!!_0x243977||_0x582bf6&&!_0x53407f),_0x5689fe['on']('submit',(_0xf33924,_0xf7a18d)=>{this['fire']('addComment',_0xf7a18d),_0x5689fe['editor']['setData']('');}),_0x5689fe['on']('cancel',()=>this['focus']()),_0x5689fe['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4f3265;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1a7dc3,_0x5229f7,_0xfd29f7,_0x217595){super(_0x1a7dc3,_0x5229f7,_0xfd29f7,_0x217595),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x36d5bc=>_0x36d5bc&&_0x36d5bc[0x0]?_0x36d5bc[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4149e6,_0xe6656c)=>{let _0x243131='';for(const _0x35943b of _0x4149e6)_0x243131+='<p>'+ls(_0x35943b['content'],_0x35943b['color'])+'</p>';return _0xe6656c?_0x243131:ti(_0x243131,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x217595['SuggestionView'](_0x1a7dc3,_0x5229f7,{'formatDateTime':_0x217595['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 _0x238e96=this['bindTemplate'],_0x21f5a4=[this['suggestionView']];return this['commentsListView']&&_0x21f5a4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x21f5a4['push'](this['commentThreadInputView']),_0x21f5a4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x238e96['if']('isActive','ck-suggestion-wrapper--active'),_0x238e96['to']('type',_0x139299=>'ck-suggestion-'+_0x139299),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':_0x238e96['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x21f5a4};}['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 _0x3fadb1{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x6b35a1,_0x4e2345,_0x4bf88b){super(_0x6b35a1),this['_model']=_0x4e2345,this['_config']=_0x4bf88b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4e2345),this['acceptButton']=this['_createButton'](c(_0x6b35a1,'Accept\x20suggestion'),_0x1b653b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x6b35a1,'Discard\x20suggestion'),_0x2fcadb,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xee1198(_0x6b35a1,_0x4e2345['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5a3c9d([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x48917c(),this['keystrokes']=new _0x455a98(),this['focusCycler']=new _0x2bda9c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1fa940=>_0x1fa940['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4667b1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4667b1['innerHTML']=this['description'],this['on']('change:description',(_0x2b8c32,_0x33bee5,_0x3ab478)=>{_0x4667b1['innerHTML']=_0x3ab478;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1ee79a=this['bindTemplate'],_0x31ee64=[{'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':_0x1ee79a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1ee79a['to']('authoredAt',_0x32d96b=>this['_config']['formatDateTime'](_0x32d96b))}]}]},{'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']&&_0x31ee64['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':_0x31ee64}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x369273,_0x45a975,_0x5c662d,_0x5344f1,_0x422dd4){const _0x41098f=new _0xba3192(this['locale']);return _0x41098f['set']({'label':_0x369273,'icon':_0x45a975,'tooltip':!0x0,'tooltipPosition':_0x422dd4}),_0x41098f['extendTemplate']({'attributes':{'class':_0x5c662d}}),_0x41098f['on']('execute',()=>{this['fire'](_0x5344f1,this['_model']['id']);}),_0x41098f;}['_setupKeyboardNavigation'](){const _0x425c04=this['element'];this['keystrokes']['listenTo'](_0x425c04);for(const _0x4fc3c3 of this['focusables'])this['focusTracker']['add'](_0x4fc3c3['element']),this['keystrokes']['listenTo'](_0x4fc3c3['element']);this['keystrokes']['set']('enter',(_0x3dbbff,_0x34d659)=>{_0x425c04===_0x3dbbff['target']&&(this['focusCycler']['focusFirst'](),_0x34d659());}),this['keystrokes']['set']('esc',(_0x495755,_0x27a67a)=>{_0x425c04!==_0x495755['target']&&(this['focus'](),_0x27a67a());});}}class d extends _0x104d33{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1615a7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xb6f83e){super(_0xb6f83e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1d7744=this['editor']['config'];_0x1d7744['define']('trackChanges.SuggestionThreadView',fe),_0x1d7744['define']('trackChanges.SuggestionView',we),_0x1d7744['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1d7744['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3b1e27,_0x25b87f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2180d3,_0x273494]of this['_handleControllerBuffer']){const _0x5317d8=this['_suggestionToController']['has'](_0x2180d3);_0x5317d8||_0x273494?_0x5317d8&&_0x273494&&this['_destroyController'](_0x2180d3):this['_initializeController'](_0x2180d3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3b1e27,_0x25b87f);}['init'](){const _0x1f54f6=this['editor'],_0x5b86b3=_0x1f54f6['plugins']['get']('TrackChangesEditing'),_0x4d558d=_0x1f54f6['plugins']['get']('Annotations'),_0x5b3c57=_0x1f54f6['plugins']['get']('EditorAnnotations'),_0x15ea9b=_0x1f54f6['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5b3c57['addSourceCollector'](()=>{const _0x4b6736=[];for(const [_0x2d5cee,_0x4e4af3]of Array['from'](this['_suggestionToController'])){const _0x2a8123=_0x2d5cee['getAllAdjacentSuggestions'](),_0x5b52a9=[];for(const _0x3615e1 of _0x2a8123){if(!_0x3615e1['isInContent'])continue;if(_0x3615e1['isMultiRange']){_0x5b52a9['push'](..._0x3615e1['getRanges']());continue;}const _0x25ba7f=_0x3615e1['getFirstRange']();if(_0x5b52a9['length']>0x0){const _0x13466f=_0x5b52a9[0x0]['getJoined'](_0x25ba7f);if(_0x13466f){_0x5b52a9[0x0]=_0x13466f;continue;}}_0x5b52a9['push'](_0x25ba7f);}_0x4b6736['push']([_0x4e4af3['view'],_0x5b52a9]);}return _0x4b6736;}),this['listenTo'](_0x5b86b3,'suggestionLoaded',(_0x17902c,_0x56319f)=>{this['listenTo'](_0x56319f,'change:previous',(_0x47932a,_0x1fa8e7,_0x1906f6,_0x189b80)=>{_0x56319f['isInContent']&&(null==_0x1906f6?(this['_updateController'](_0x189b80['head']),this['_handleSuggestionControllerDelayed'](_0x56319f,!0x1)):(this['_updateController'](_0x1906f6['head']),null==_0x189b80&&this['_handleSuggestionControllerDelayed'](_0x56319f,!0x0)));}),null!==_0x56319f['previous']?this['_updateController'](_0x56319f['head']):this['_handleSuggestionControllerDelayed'](_0x56319f,!0x1);}),this['listenTo'](_0x5b86b3,'suggestionUnloaded',(_0xf64a6,_0x4e082b,_0x285f3c)=>{this['stopListening'](_0x4e082b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4e082b),this['_suggestionToController']['has'](_0x4e082b)&&this['_destroyController'](_0x4e082b),_0x285f3c&&this['_updateController'](_0x285f3c['head']);}),this['listenTo'](_0x5b86b3,'suggestionChanged',(_0xa31656,_0x3f5d6b)=>{this['_updateController'](_0x3f5d6b);}),this['listenTo'](_0x4d558d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x15ea9b,'addComment',(_0x40af24,{threadId:_0x2cc8ee,isFromAdapter:_0x3a0f86})=>{if(_0x3a0f86||!_0x5b86b3['hasSuggestion'](_0x2cc8ee))return;const _0x5eb6be=_0x5b86b3['getSuggestion'](_0x2cc8ee);this['_suggestionToController']['get'](_0x5eb6be)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54527d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5eea6e;for(const _0x2e13be in _0x54527d){const _0x1a0e45=_0x2e13be,_0x2ce8cc=_0x54527d[_0x1a0e45];if('trackChangesLicenseKeyValid'==_0x2ce8cc||'trackChangesLicenseKeyInvalid'==_0x2ce8cc||'trackChangesLicenseKeyExpired'==_0x2ce8cc||'trackChangesLicenseKeyDomainLimit'==_0x2ce8cc||'trackChangesLicenseKeyNotAllowed'==_0x2ce8cc||'trackChangesLicenseKeyEvaluationLimit'==_0x2ce8cc||'trackChangesLicenseKeyTrialLimit'==_0x2ce8cc||'trackChangesLicenseKeyUsageLimit'==_0x2ce8cc){delete _0x54527d[_0x1a0e45],_0x5eea6e=_0x2ce8cc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5eea6e&&_0x54527d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5eea6e&&_0x54527d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5eea6e&&_0x54527d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5eea6e&&_0x54527d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5eea6e&&_0x54527d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5eea6e&&_0x54527d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5eea6e&&_0x54527d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5aed2f=this['editor']['plugins']['get']('Annotations'),_0x4b6813=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d5622=Array['from'](_0x5aed2f['activeAnnotations'],_0x31f273=>_0x31f273['innerView'])['filter'](_0x1ee2ca=>this['_viewToController']['has'](_0x1ee2ca)),_0x5777b8=[];for(const _0x3dd20a of _0x3d5622){const _0x575028=this['_viewToController']['get'](_0x3dd20a)['model']['getAllAdjacentSuggestions']();_0x5777b8['push'](..._0x575028['reduce']((_0x22a067,_0x23c699)=>[..._0x22a067,..._0x23c699['getMarkerNames']()],[]));}_0x4b6813['activeMarkers']=_0x5777b8;}['_addUIComponentsToFactory'](){const _0x4118cf=this['editor'],_0x11ccf1=_0x4118cf['locale'],_0x4d7967=c(_0x11ccf1,'Track\x20changes'),_0x30f7bb=new _0xd666d2([{'type':'switchbutton','model':new _0x25171f({'withText':!0x0,'isToggleable':!0x0,'label':_0x4d7967,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x25171f({'withText':!0x0,'label':c(_0x11ccf1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x25171f({'withText':!0x0,'label':c(_0x11ccf1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x25171f({'withText':!0x0,'label':c(_0x11ccf1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x25171f({'withText':!0x0,'label':c(_0x11ccf1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4118cf['plugins']['has']('TrackChangesPreview')&&_0x30f7bb['addMany']([{'type':'separator'},{'type':'button','model':new _0x25171f({'withText':!0x0,'label':c(_0x11ccf1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5abe65 of _0x30f7bb)if(ke(_0x5abe65)){const _0x1478d3=_0x4118cf['commands']['get'](_0x5abe65['model']['commandName']);_0x5abe65['model']['bind']('isOn','isEnabled')['to'](_0x1478d3,'value','isEnabled');}_0x4118cf['ui']['componentFactory']['add']('trackChanges',_0x12979b=>this['_createToolbarButton'](_0x12979b,_0x30f7bb,_0x4d7967)),_0x4118cf['ui']['componentFactory']['add']('menuBar:trackChanges',_0x37f130=>this['_createMenuBarMenu'](_0x37f130,_0x30f7bb,_0x4d7967));}['_createToolbarButton'](_0x2bc0cb,_0x2ce18d,_0x1fefeb){const _0x38ebbb=_0x4076e8(_0x2bc0cb,_0x5a3d17),_0x655db0=this['editor']['commands']['get']('trackChanges');_0x38ebbb['buttonView']['set']({'tooltip':_0x1fefeb,'label':_0x1fefeb,'icon':_0x20f8aa}),_0x38ebbb['buttonView']['bind']('isOn')['to'](_0x655db0,'value'),_0x38ebbb['buttonView']['on']('execute',()=>{_0x655db0['execute'](),this['editor']['editing']['view']['focus']();}),_0x2028ea(_0x38ebbb,_0x2ce18d,{'role':'menu'});const _0x4f1448=[];for(const _0x1d488e of _0x2ce18d)ke(_0x1d488e)&&_0x4f1448['push'](this['editor']['commands']['get'](_0x1d488e['model']['commandName']));const _0x1cdf63=_0x38ebbb['buttonView'];return _0x1cdf63['actionView']['unbind']('isEnabled'),_0x1cdf63['arrowView']['unbind']('isEnabled'),_0x1cdf63['actionView']['bind']('isEnabled')['to'](_0x655db0,'isEnabled'),_0x1cdf63['arrowView']['bind']('isEnabled')['toMany'](_0x4f1448,'isEnabled',(..._0x25da90)=>_0x25da90['some'](_0x175d7a=>_0x175d7a)),_0x38ebbb['on']('execute',_0x3568d7=>{this['editor']['execute'](_0x3568d7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x38ebbb;}['_createMenuBarMenu'](_0x1f14e6,_0x33fe51,_0x486e80){const _0x10b65f=new _0x23b047(_0x1f14e6),_0x16b955=this['editor']['commands']['get']('trackChanges');_0x10b65f['buttonView']['set']({'label':_0x486e80,'icon':_0x20f8aa});const _0x3d8a74=new _0x28c472(_0x1f14e6);for(const _0xf6250 of _0x33fe51){if('separator'==_0xf6250['type']){_0x3d8a74['items']['add'](new _0x49a779(_0x1f14e6));continue;}const _0x599f08=new _0x2e29b1(_0x1f14e6,_0x10b65f),_0x5191f4=new _0x394f0b(_0x1f14e6),_0x5b192c=_0xf6250['model'];_0x5191f4['bind'](...Object['keys'](_0x5b192c))['to'](_0x5b192c),_0x5191f4['delegate']('execute')['to'](_0x10b65f),_0x5191f4['on']('execute',()=>{this['editor']['execute'](_0x5b192c['commandName']),this['editor']['editing']['view']['focus']();}),_0x599f08['children']['add'](_0x5191f4),_0x3d8a74['items']['add'](_0x599f08);}return _0x10b65f['bind']('isEnabled')['to'](_0x16b955,'isEnabled'),_0x10b65f['panelView']['children']['add'](_0x3d8a74),_0x10b65f;}['_initializeController'](_0x514692){const _0x1341f5=this['editor'],_0x124acc=_0x1341f5['config'],_0x8ef518=_0x1341f5['plugins']['get']('Annotations'),_0x4f56b1=_0x1341f5['plugins']['get']('CommentsRepository'),_0x2ed4a8=_0x1341f5['plugins']['get']('EditorAnnotations'),_0x379b02=_0x1341f5['plugins']['get'](_0x1615a7)['me'],_0x42e167=_0x124acc['get']('trackChanges')['SuggestionThreadView'],_0x2e821f=_0x124acc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1a9439,CommentThreadInputView:_0x1b418a}=_0x1341f5['plugins']['get']('CommentsUI');let _0x302985,_0x4c8a52,_0x4f9651;this['_annotationViews']['has'](_0x514692['id'])?(_0x4c8a52=this['_annotationViews']['get'](_0x514692['id']),_0x302985=_0x4c8a52['mainView']):(_0x302985=new _0x42e167(_0x1341f5['locale'],_0x514692,_0x379b02,{'disableComments':this['_disableComments'],'editorConfig':{..._0x124acc['get']('comments.editorConfig'),'licenseKey':_0x124acc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x124acc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x124acc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x124acc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3a19b8(_0x124acc['get']('locale')),'CommentView':_0x124acc['get']('comments')['CommentView'],'CommentsListView':_0x1a9439,'CommentThreadInputView':_0x1b418a,'SuggestionView':_0x2e821f}),_0x302985['suggestionView']['acceptButton']['on']('execute',()=>{_0x1341f5['editing']['view']['focus']();}),_0x302985['suggestionView']['discardButton']['on']('execute',()=>{_0x1341f5['editing']['view']['focus']();}),_0x4c8a52=_0x8ef518['createAnnotationView'](this['editor']['locale'],_0x302985),_0x4c8a52['bind']('isDirty')['to'](_0x302985,'isDirty'),_0x4c8a52['bind']('length')['to'](_0x302985),_0x4c8a52['bind']('type')['to'](_0x302985,'type',_0x284b34=>'suggestion-'+_0x284b34),_0x302985['on']('escape',()=>{_0x4f9651['fire']('escape');}),this['_annotationViews']['set'](_0x514692['id'],_0x4c8a52));const _0x35e339=_0x4f56b1['createCommentThreadController'](_0x514692['commentThread'],_0x302985),_0x437ee9=new pe(_0x1341f5,_0x514692,_0x302985,_0x35e339),_0x199d2e=_0x514692['getAllAdjacentSuggestions']()['filter'](_0x4fb8ae=>_0x4fb8ae['isInContent']);_0x302985['descriptionParts']=_0x1341f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x199d2e),this['_suggestionToController']['set'](_0x514692,_0x437ee9),this['_viewToController']['set'](_0x302985,_0x437ee9),_0x4f9651=_0x8ef518['createAnnotation']({'view':_0x4c8a52,'target':()=>{const _0x3f2e7c=[],_0x3846f9=_0x514692['getAllAdjacentSuggestions']()['filter'](_0x1c3adf=>_0x1c3adf['isInContent']);for(const _0x1f988a of _0x3846f9)_0x3f2e7c['push'](..._0x1f988a['getMarkers']());return _0x1c092e(_0x1341f5['editing'],_0x3f2e7c);},'type':()=>'suggestion-'+_0x437ee9['view']['type']}),_0x4f56b1['_bindAnnotationToEditors'](_0x302985,_0x4f9651),_0x8ef518['add'](_0x4f9651),_0x2ed4a8['registerAnnotation'](_0x4f9651);}['_destroyController'](_0xeb2e7b){const _0x4e952a=this['editor']['plugins']['get']('CommentsRepository'),_0x3d2a69=this['editor']['plugins']['get']('Annotations'),_0x259417=this['_suggestionToController']['get'](_0xeb2e7b),_0x331614=_0x259417['view'],_0xa755=_0x3d2a69['getByInnerView'](_0x331614);_0x4e952a['_unbindEditors'](_0x331614),_0xa755&&_0x3d2a69['remove'](_0xa755),this['_suggestionToController']['delete'](_0xeb2e7b),this['_viewToController']['delete'](_0x331614),_0x259417['destroy']();}['_updateController'](_0x3ea2b3){if(!_0x3ea2b3['isInContent']||!this['_suggestionToController']['has'](_0x3ea2b3))return;const _0x4c84b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x318263=this['_suggestionToController']['get'](_0x3ea2b3),_0x2a6f4a=_0x3ea2b3['getAllAdjacentSuggestions']();_0x318263['view']['descriptionParts']=_0x4c84b2['descriptionFactory']['getDescriptions'](_0x2a6f4a);}['destroy'](){for(const _0x4629bc of this['_suggestionToController']['keys']())this['_destroyController'](_0x4629bc);for(const _0x5cf000 of this['_annotationViews']['values']())_0x5cf000['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3f8638){return'model'in _0x3f8638;}class k extends _0x104d33{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x179749){this['editor']['plugins']['get'](p)['adapter']=_0x179749;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4386b3){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4386b3);}['getSuggestions']({skipNotAttached:_0x1d4709=!0x1,toJSON:_0x32679b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1d4709,'toJSON':_0x32679b});}['getSuggestion'](_0x5b3bb3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5b3bb3);}}const w=['Pagination'];class T extends _0x104d33{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x20ec95=this['editor'];if(_0x20ec95['config']['define']('trackChangesData.editorCreator',_0x238855=>{const _0x178cd1=_0x20ec95['model']['document']['getRootNames']()['reduce']((_0x35d6ff,_0x34048f)=>(_0x35d6ff[_0x34048f]='',_0x35d6ff),{});return _0x20ec95['constructor']['create'](_0x178cd1,_0x238855);}),'function'!=typeof _0x20ec95['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ff27c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x35f91a){return N(this['editor'],!0x0,_0x35f91a);}['getDataWithDiscardedSuggestions'](_0x2e2c8e){return N(this['editor'],!0x1,_0x2e2c8e);}}class D extends _0x104d33{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ef95f){function _0x5be8f7(_0x594454){return _0x594454['map'](_0x1f3a8c=>String['fromCharCode'](_0x1f3a8c))['join']('');}super(_0x1ef95f),this['result']='end',_0x1ef95f[_0x5be8f7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5be8f7([0x76,0x69,0x65,0x77])][_0x5be8f7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5be8f7([0x61,0x75,0x74,0x6f]),_0x1ef95f[_0x5be8f7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5be8f7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5be8f7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5be8f7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5be8f7([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x215a6d){return void 0x0!==_0x215a6d['getRootsAttributes'];}async function N(_0x5649cd,_0x3941f2,_0x20d61c){const _0x1b80d7=_0x1a7297(_0x5649cd,w);_0x1b80d7['plugins']['push'](p,D),_0x1b80d7['rootsAttributes']=Fe(_0x5649cd)?_0x5649cd['getRootsAttributes']():void 0x0;const _0xfede4c=document['createDocumentFragment'](),_0x4b2f66=_0x5649cd['config']['get']('trackChangesData')['editorCreator'],_0x2283bd=await _0x4b2f66(_0x1b80d7,()=>function(_0x1297bf){const _0x521bbd=document['createElement']('div');return _0x1297bf['appendChild'](_0x521bbd),_0x521bbd;}(_0xfede4c));!function(_0x6d792e,_0x1d4b87){const _0x5218c2=_0x6d792e['model']['document']['getRootNames']()['reduce']((_0x513cfd,_0x327cc6)=>(_0x513cfd[_0x327cc6]=_0x6d792e['data']['get']({'rootName':_0x327cc6}),_0x513cfd),{}),_0x3f3206=_0x6d792e['plugins']['get']('Users')['users']['map'](_0x1eb855=>({'id':_0x1eb855['id'],'name':_0x1eb855['name']})),_0x2432ff=_0x6d792e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ca766=_0x6d792e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3a4674=_0x1d4b87['plugins']['get']('Users'),_0x3d5572=_0x1d4b87['plugins']['get']('TrackChangesEditing'),_0x582e2e=_0x1d4b87['plugins']['get']('CommentsRepository');for(const _0x38332e of _0x582e2e['getCommentThreads']())_0x38332e['remove']();for(const _0x3021eb of _0x3f3206)_0x3a4674['getUser'](_0x3021eb['id'])||_0x3a4674['addUser'](_0x3021eb);_0x3a4674['me']||_0x3a4674['useAnonymousUser']();for(const _0x486f35 of _0x4ca766)_0x582e2e['addCommentThread'](_0x486f35);for(const _0x3a3f16 of _0x2432ff)_0x3d5572['addSuggestionData'](_0x3a3f16);_0x1d4b87['data']['set'](_0x5218c2);}(_0x5649cd,_0x2283bd),_0x2283bd['execute'](_0x3941f2?'acceptAllSuggestions':'discardAllSuggestions');const _0x400289=Fe(_0x2283bd)?_0x2283bd['getFullData'](_0x20d61c):_0x2283bd['data']['get'](_0x20d61c);return await _0x2283bd['destroy'](),_0x400289;}class Me extends _0x3fadb1{['options'];constructor(_0x4c1032,_0x305341){super(_0x4c1032),this['options']=_0x305341,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'](_0xfab11a,_0x1cfc1d){if(!this['element'])return;const _0x5833e1=[];for(const [_0x1ee657,_0x113854]of _0xfab11a){const _0x387ba9=document['createElement']('div');_0x387ba9['setAttribute']('data-ck-root-name',_0x1ee657),_0x387ba9['className']=_0x113854['classes']+'\x20ck-track-changes-preview__root-container',_0x387ba9['innerHTML']=_0x113854['content'],_0x5833e1['push'](_0x387ba9);}_0x1cfc1d(this['element'],_0x5833e1),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x33780e{constructor(_0x5ac961){super(_0x5ac961),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x527778=this['editor'],_0x178eec=_0x527778['locale'],_0x43dfec=_0x527778['plugins']['get']('Dialog');let _0x1c7c81;const _0x1ed340=function(_0x3fba4b){const _0x5c6b92={};if('editables'in _0x3fba4b['ui']['view']){for(const [_0x43e662,_0x11dd5e]of Object['entries'](_0x3fba4b['ui']['view']['editables']))_0x5c6b92[_0x43e662]=_0x11dd5e['element'];}else _0x5c6b92[_0x3fba4b['model']['document']['getRootNames']()[0x0]]=_0x3fba4b['ui']['view']['editable']['element'];return _0x5c6b92;}(_0x527778),_0x15aebd=function(_0x2b6194){let _0x4aa031=0x0;for(const _0x13b0b8 of Object['values'](_0x2b6194))_0x4aa031=Math['max'](_0x4aa031,_0x13b0b8['getBoundingClientRect']()['width']);let _0x38f1d4=0x0;for(const _0x3d813c of Object['values'](_0x2b6194))_0x38f1d4+=_0x3d813c['getBoundingClientRect']()['height'];const _0x2d2204=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1a2852=Math['min'](_0x38f1d4,_0x2d2204);return{'width':_0x4aa031,'height':_0x1a2852};}(_0x1ed340);_0x43dfec['show']({'id':'finalContentPreview','title':c(_0x178eec,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x178eec,{'dialogRects':_0x15aebd}),'onHide':()=>{_0x1c7c81['detachFromDom']();},'onShow':()=>{_0x527778['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x34a3c3=>{const _0x1f3dbb=this['_standarizeRootsData'](_0x34a3c3,_0x527778,_0x1ed340);_0x43dfec['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1f3dbb,_0x527778['config']['get']('trackChanges.preview.renderFunction'));}),_0x1c7c81=new _0x3b70f9(_0x178eec,[_0x43dfec['view']]),_0x1c7c81['attachToDom'](),_0x1c7c81['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x527778['once']('destroy',()=>{_0x1c7c81['detachFromDom']();});const _0x3449ee=_0x43dfec['view']['headerView']['class'];_0x43dfec['view']['headerView']['class']=_0x3449ee?_0x3449ee+'\x20ck-reset_all':'ck-reset_all',_0x43dfec['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x43dfec['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4c6fb9=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x553513=_0x4c6fb9['previewMode'],_0xa26b18={};if('$labels'===_0x553513){for(const _0x412557 of _0x4c6fb9['getMergeFieldsIds']())_0xa26b18[_0x412557]=_0x4c6fb9['getLabel'](_0x412557)||_0x412557;}else{const _0x352ac6='$defaultValues'===_0x553513?_0x4c6fb9['getDefaultValues']():_0x4c6fb9['getDataSetValues'](_0x553513,!0x0);for(const _0x1b1498 of Object['entries'](_0x352ac6)){const [_0x15a374,_0x4a5337]=_0x1b1498;_0xa26b18[_0x15a374]=null!==_0x4a5337?_0x4a5337:_0x4c6fb9['getLabel'](_0x15a374)||_0x15a374;}}return{'mergeFieldsData':_0xa26b18};}['_standarizeRootsData'](_0x3666e1,_0x382cd9,_0x754a2a){let _0x326df8;if('string'==typeof _0x3666e1){const _0x186279=_0x382cd9['model']['document']['getRootNames']()[0x0];_0x326df8={[_0x186279]:_0x3666e1};}else _0x326df8=_0x3666e1;const _0x3f2ed5=this['_fixMediaEmbeds'](_0x326df8,_0x382cd9),_0x546d38=function(_0x58ac87,_0x4cb55d){for(const [_0x54ba23,_0x7e8467]of _0x58ac87)_0x7e8467['classes']=_0x4cb55d[_0x54ba23]['classList']['value']['replace']('ck-focused','');return _0x58ac87;}(this['_sortRoots'](_0x382cd9)['reduce']((_0x5dc8c8,_0x5d4752)=>(_0x5dc8c8['push']([_0x5d4752,{'content':_0x3f2ed5[_0x5d4752],'classes':''}]),_0x5dc8c8),[]),_0x754a2a);return _0x546d38;}['_fixMediaEmbeds'](_0x2476db,_0x26a859){if(!_0x26a859['plugins']['has']('MediaEmbedEditing'))return _0x2476db;const _0x1cea8c=_0x26a859['plugins']['get']('MediaEmbedEditing');for(const [_0x139bc7,_0x32f81a]of Object['entries'](_0x2476db)){const _0x43e27b=document['createElement']('div');_0x43e27b['innerHTML']=_0x32f81a,(_0x43e27b['querySelectorAll']('figure.media')['forEach'](_0x4ec874=>{const _0x126ad=_0x4ec874['querySelector']('oembed');if(_0x126ad){const _0x1a6e9b=_0x126ad['getAttribute']('url');if(_0x1a6e9b){const _0x31d24e=_0x1cea8c['registry']['getMediaViewElement'](new _0x52b430(_0x26a859['editing']['view']['document']),_0x1a6e9b,{'elementName':'','renderForEditingView':!0x0}),_0x1969e0=document['createElement']('div');_0x1969e0['classList']['add']('ck-media__wrapper'),_0x31d24e['render'](_0x1969e0,_0x26a859['editing']['view']['domConverter']),_0x126ad['replaceWith'](_0x1969e0);}}}),_0x2476db[_0x139bc7]=_0x43e27b['innerHTML']);}return _0x2476db;}['_sortRoots'](_0x293519){if(!function(_0x617feb){return void 0x0!==_0x617feb['getRootsAttributes'];}(_0x293519))return _0x293519['model']['document']['getRootNames']();const _0xb0663=[],_0x474a60=new Map();for(const _0x3e2da9 of _0x293519['model']['document']['getRootNames']()){const _0x25be36=_0x293519['editing']['view']['getDomRoot'](_0x3e2da9)['getClientRects']()['item'](0x0);_0xb0663['push'](_0x3e2da9),_0x474a60['set'](_0x3e2da9,_0x25be36);}return _0xb0663['sort']((_0x5b4bc1,_0x3dce27)=>{const _0x4f8ad3=_0x474a60['get'](_0x5b4bc1),_0x10935a=_0x474a60['get'](_0x3dce27);return _0x4f8ad3['y']-_0x10935a['y']||_0x4f8ad3['x']-_0x10935a['x'];}),_0xb0663;}}class te extends _0x104d33{static get['requires'](){return[T,_0x4b542f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7ba5c6){super(_0x7ba5c6),_0x7ba5c6['commands']['add']('previewFinalContent',new re(this['editor'])),_0x7ba5c6['config']['define']('trackChanges.preview.renderFunction',(_0xef91f6,_0x4e1c97)=>{for(const _0x4bc2b8 of _0x4e1c97)_0xef91f6['appendChild'](_0x4bc2b8);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|