@ckeditor/ckeditor5-track-changes 0.0.0-nightly-next-20250221.0 → 0.0.0-nightly-20250222.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 +26 -27
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/replacesourcecommand.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
- package/theme/icons/track-changes-accept.svg +11 -0
- package/theme/icons/track-changes-discard.svg +11 -0
- package/theme/icons/track-changes.svg +11 -0
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x4c8e05(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x35f3d1,_0xe09f65){super(),this['id']=_0xe09f65['id'],this['type']=_0xe09f65['type'],this['subType']=_0xe09f65['subType']||null,this['author']=_0xe09f65['author'],this['creator']=_0xe09f65['creator']||_0xe09f65['author'],this['isExternal']=Boolean(_0xe09f65['attributes']&&_0xe09f65['attributes']['@external']),this['data']=null,this['_model']=_0x35f3d1,this['_onAccept']=_0xe09f65['onAccept'],this['_onDiscard']=_0xe09f65['onDiscard'],this['_onAttributesChange']=_0xe09f65['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xe09f65['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 _0xea6e83=this;for(;_0xea6e83['previous'];)_0xea6e83=_0xea6e83['previous'];return _0xea6e83;}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'](_0x3fd9d8){this['_markerNames']['add'](_0x3fd9d8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2e5efc=>this['_model']['markers']['get'](_0x2e5efc))['filter'](_0x3cd2bf=>_0x3cd2bf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x35af59=>{for(const _0x20c096 of this['getMarkers']())_0x35af59['removeMarker'](_0x20c096);}),this['_markerNames']['clear']();}['removeMarker'](_0x21f4f9){this['_model']['change'](_0x15a54b=>{_0x15a54b['removeMarker'](_0x21f4f9);}),this['_markerNames']['delete'](_0x21f4f9);}['addRange'](_0x4bb5cf){const _0x199bf6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x199bf6),this['_model']['change'](_0x279aaa=>{_0x279aaa['addMarker'](_0x199bf6,{'range':_0x4bb5cf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x533343){for(const _0x3e4290 of this['getRanges']())if(_0x3e4290['isIntersecting'](_0x533343))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5ba00e=>_0x5ba00e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x153fa3,_0x5d13ff)=>[..._0x153fa3,..._0x5d13ff['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x22af61=this['getRanges']();if(0x1!=_0x22af61['length'])return null;const _0x34b7ef=_0x22af61[0x0],_0x175494=_0x34b7ef['start']['nodeAfter'],_0x2fad31=_0x34b7ef['end']['nodeBefore'];return _0x175494 instanceof _0x3acc55?_0x175494!=_0x2fad31?null:_0x175494: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 _0x20d937=[];let _0x43fced=this['head'];for(;_0x43fced;)_0x20d937['push'](_0x43fced),_0x43fced=_0x43fced['next'];return _0x20d937;}['setAttribute'](_0x394385,_0x26508b){const _0x3c5447=_0x40d4c8(this['attributes']);_0x30a960(_0x3c5447,_0x394385,_0x26508b),_0x21c99e(_0x3c5447,this['attributes'])||(this['attributes']=_0x3c5447,this['_onAttributesChange'](_0x3c5447));}['removeAttribute'](_0x340def){const _0xa94194=_0x40d4c8(this['attributes']);_0x1a1a69(_0xa94194,_0x340def),_0x21c99e(_0xa94194,this['attributes'])||(this['attributes']=_0xa94194,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 _0x2612d4()['substr'](0x1,0x5);}}function c(_0x9b4410,_0x396dc8,_0x33733e){const _0x4ba844=_0x9b4410['t'],t=_0x9b4410['t'];switch(_0x396dc8){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',_0x33733e);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x33733e);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x33733e);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x33733e);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x33733e);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',_0x33733e);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x33733e);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',_0x33733e);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x33733e);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x33733e);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x33733e);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x33733e);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x33733e);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x33733e);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x33733e);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x33733e);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x33733e);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x33733e);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x33733e);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x33733e);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x33733e);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x33733e);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x33733e);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x33733e);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'},_0x33733e);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x33733e);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x33733e);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x33733e);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x33733e);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x33733e);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'},_0x33733e);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x33733e);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x33733e);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x33733e);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x33733e);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'},_0x33733e);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x33733e);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'},_0x33733e);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'},_0x33733e);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x33733e);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'},_0x33733e);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x33733e);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'},_0x33733e);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x33733e);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x33733e);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'},_0x33733e);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x33733e);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 _0x4ba844({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x33733e);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ba844({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x33733e);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x33733e);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'},_0x33733e);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'},_0x33733e);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'},_0x33733e);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x396dc8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3137cb,_0x432fea){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3137cb,this['_locale']=_0x432fea;}['getDescriptions'](_0x286496){const _0x837681=[],_0xa49438=new Set(),_0x536c88=new Set();for(let _0x3c070f=0x0;_0x3c070f<_0x286496['length'];_0x3c070f++){const _0x80a1c2=_0x286496[_0x3c070f];if(!_0x80a1c2['isInContent'])continue;const _0x19e44d=this['_handleCustomCallbackDescription'](_0x80a1c2);if(_0x19e44d){if(null!=_0x80a1c2['subType']){if(_0xa49438['has'](_0x80a1c2['subType']))continue;_0xa49438['add'](_0x80a1c2['subType']);}_0x837681['push'](_0x19e44d);}else{if('attribute'!=_0x80a1c2['type'])'insertion'!=_0x80a1c2['type']&&'deletion'!=_0x80a1c2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x837681,_0x80a1c2,_0x286496[_0x3c070f+0x1]);else{const _0x51a76e=_0x80a1c2['data']['key'];if(_0x536c88['has'](_0x51a76e))continue;_0x536c88['add'](_0x80a1c2['data']['key']),_0x51a76e==u?this['_handleRenameSuggestionDescription'](_0x837681,_0x80a1c2):this['_handleAttributeSuggestionDescription'](_0x837681,_0x80a1c2);}}}return this['_resolveDescriptionItems'](_0x837681);}['registerDescriptionCallback'](_0x69e9fd){this['_customCallbacks']['push'](_0x69e9fd);}['registerElementLabel'](_0x5c5483,_0x366b05,_0x4d8b8b=_0x1691ee['normal']){'function'==typeof _0x5c5483?_0x177b99(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5c5483,'label':_0x366b05,'priority':_0x4d8b8b}):this['_itemLabels']['set'](_0x5c5483,_0x366b05);}['registerAttributeLabel'](_0x106889,_0x15d3b7){this['_attributeLabels']['set'](_0x106889,_0x15d3b7);}['getItemLabel'](_0x55b0b9,_0x560277=0x1){let _0x4c6f4b;for(const _0x4ab86b of this['_itemLabelsCallbacks'])if(_0x4ab86b['matchingCallback'](_0x55b0b9)){_0x4c6f4b=_0x4ab86b['label'];break;}return _0x4c6f4b||(_0x4c6f4b=this['_itemLabels']['get'](_0x55b0b9['name'])),_0x4c6f4b?_0x4c6f4b(_0x560277):0x1!==_0x560277?_0x560277+'\x20'+_0x55b0b9['name']+'s':''+_0x55b0b9['name'];}['_addDescriptionItems'](_0x2f948a,_0x4cfec8){const _0x435d62=_0x4cfec8['getFirstRange']()['getWalker'](),_0x4938c1='insertion'==_0x4cfec8['type']?'add':'remove';for(const _0x552dfa of _0x435d62){const _0x2916f6=_0x552dfa['item'],_0x25b72c=_0x2f948a[_0x2f948a['length']-0x1];if(_0x2916f6['is']('$textProxy'))_0x25b72c&&_0x25b72c['type']['indexOf']('Container')>-0x1&&_0x2f948a['pop'](),_0x25b72c&&'text'==_0x25b72c['type']?_0x25b72c[_0x4938c1]+=_0x2916f6['data']:_0x2f948a['push']({'type':'text','add':'add'==_0x4938c1?_0x2916f6['data']:'','remove':'remove'==_0x4938c1?_0x2916f6['data']:''});else{if(this['_schema']['isObject'](_0x2916f6)){const _0x4ff005=_0x2916f6;if(_0x25b72c&&_0x25b72c['type']['indexOf']('Container')>-0x1&&_0x2f948a['pop'](),'elementEnd'==_0x552dfa['type'])continue;_0x25b72c&&_0x25b72c['type']==_0x4938c1+'Object'&&_0x25b72c['element']['name']==_0x4ff005['name']?_0x25b72c['quantity']++:_0x2f948a['push']({'type':_0x4938c1+'Object','element':_0x4ff005,'quantity':0x1}),_0x435d62['skip'](_0x53f29b=>!('elementEnd'==_0x53f29b['type']&&_0x53f29b['item']==_0x2916f6));}else{if(this['_schema']['checkChild'](_0x2916f6,'$text')||_0x2916f6['is']('element','softBreak')){const _0x47a67a=_0x2916f6;if('add'==_0x4938c1&&'elementStart'==_0x552dfa['type']||'remove'==_0x4938c1&&'elementEnd'==_0x552dfa['type'])continue;if(_0x25b72c&&-0x1==_0x25b72c['type']['indexOf']('Container')){'text'==_0x25b72c['type']&&(_0x25b72c[_0x4938c1]+='\x0a');continue;}let _0x2d5c7d;if(_0x2d5c7d='add'==_0x4938c1?_0x47a67a['nextSibling']&&!this['_schema']['isObject'](_0x47a67a['nextSibling'])?_0x47a67a['nextSibling']:null:_0x47a67a['previousSibling']&&!this['_schema']['isObject'](_0x47a67a['previousSibling'])?_0x47a67a['previousSibling']:null,_0x47a67a['isEmpty']||_0x2d5c7d&&_0x2d5c7d['isEmpty']){const _0x42f14d=_0x2d5c7d&&_0x2d5c7d['isEmpty']?_0x2d5c7d:_0x47a67a;_0x25b72c&&_0x25b72c['type']==_0x4938c1+'EmptyContainer'&&_0x25b72c['element']['name']==_0x42f14d['name']?_0x25b72c['quantity']++:_0x2f948a['push']({'type':_0x4938c1+'EmptyContainer','element':_0x42f14d,'quantity':0x1});}else _0x2f948a['push']({'type':_0x4938c1+'Container','element':_0x47a67a});}}}}}['_resolveDescriptionItems'](_0x40b47e){const _0x5d0da7=this['_locale'],_0x19c19b=[],_0x5f52bb=[],_0x7e99e1=[];for(const _0x48c7a7 of _0x40b47e)switch(_0x48c7a7['type']){case'text':if(_0x48c7a7['add']=_0x48c7a7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x48c7a7['remove']=_0x48c7a7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x48c7a7['add']&&''!=_0x48c7a7['remove']){_0x19c19b['push']({'type':'replace','content':c(_0x5d0da7,'REPLACE_TEXT',['\x22'+_0x48c7a7['remove']+'\x22','\x22'+_0x48c7a7['add']+'\x22'])});continue;}if(null!=_0x48c7a7['add']['match'](/^ +$/)){_0x19c19b['push']({'type':'insertion','content':c(_0x5d0da7,'*Insert:*\x20%0',c(_0x5d0da7,'ELEMENT_SPACE',_0x48c7a7['add']['length']))});continue;}if(null!=_0x48c7a7['remove']['match'](/^ +$/)){_0x19c19b['push']({'type':'deletion','content':c(_0x5d0da7,'*Remove:*\x20%0',c(_0x5d0da7,'ELEMENT_SPACE',_0x48c7a7['remove']['length']))});continue;}if(''!=_0x48c7a7['add']){_0x19c19b['push']({'type':'insertion','content':c(_0x5d0da7,'*Insert:*\x20%0','\x22'+_0x48c7a7['add']+'\x22')});continue;}_0x19c19b['push']({'type':'deletion','content':c(_0x5d0da7,'*Remove:*\x20%0','\x22'+_0x48c7a7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x19c19b['push']({'type':'insertion','content':c(_0x5d0da7,'*Insert:*\x20%0',this['getItemLabel'](_0x48c7a7['element'],_0x48c7a7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x19c19b['push']({'type':'deletion','content':c(_0x5d0da7,'*Remove:*\x20%0',this['getItemLabel'](_0x48c7a7['element'],_0x48c7a7['quantity']))});continue;case'addContainer':_0x19c19b['push']({'type':'insertion','content':c(_0x5d0da7,'*Split:*\x20%0',this['getItemLabel'](_0x48c7a7['element'],_0x48c7a7['quantity']))});continue;case'removeContainer':_0x19c19b['push']({'type':'deletion','content':c(_0x5d0da7,'*Merge:*\x20%0',this['getItemLabel'](_0x48c7a7['element'],_0x48c7a7['quantity']))});continue;case'addFormat':_0x5f52bb['push'](_0x48c7a7['key']);continue;case'removeFormat':_0x7e99e1['push'](_0x48c7a7['key']);continue;default:_0x19c19b['push'](_0x48c7a7);}if(_0x5f52bb['length']){const _0x416b29=_0x5f52bb['map'](_0x2c8563=>this['_attributeLabels']['has'](_0x2c8563)?this['_attributeLabels']['get'](_0x2c8563):_0x2c8563)['join'](',\x20');_0x19c19b['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x416b29)});}if(_0x7e99e1['length']){const _0x930051=_0x7e99e1['map'](_0x4272c6=>this['_attributeLabels']['has'](_0x4272c6)?this['_attributeLabels']['get'](_0x4272c6):_0x4272c6)['join'](',\x20');_0x19c19b['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x930051)});}return _0x19c19b;}['_handleCustomCallbackDescription'](_0x538e28){for(const _0x4cd647 of this['_customCallbacks']){const _0x23aca6=_0x4cd647(_0x538e28);if(_0x23aca6&&'type'in _0x23aca6)return _0x23aca6;}}['_handleAttributeSuggestionDescription'](_0x43ca9a,_0x479aab){const _0x27c6b9=_0x479aab['data'],_0x4c0339=void 0x0===_0x27c6b9['newValue']?'removeFormat':'addFormat';_0x43ca9a['push']({'type':_0x4c0339,'key':_0x27c6b9['key']});}['_handleRenameSuggestionDescription'](_0x311922,_0x40b4ee){_0x311922['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x40b4ee['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xa55a1,_0x1b89d0,_0x36de5e){if(this['_addDescriptionItems'](_0xa55a1,_0x1b89d0),_0x36de5e&&_0x36de5e['getFirstRange']()&&!_0x1b89d0['getFirstRange']()['end']['isEqual'](_0x36de5e['getFirstRange']()['start'])){const _0x140c93=_0xa55a1[_0xa55a1['length']-0x1],_0x1fe002='insertion'==_0x1b89d0['type']?'add':'remove';_0x140c93&&'text'==_0x140c93['type']&&(_0x140c93[_0x1fe002]+='\x0a');}}}class U extends _0x45133c{['afterInit'](){const _0x1b9a7c=this['editor'],_0x4201dd=_0x1b9a7c['plugins']['get']('TrackChangesEditing');_0x1b9a7c['commands']['get']('showAIAssistant')&&_0x4201dd['enableCommand']('showAIAssistant');}}class V extends _0x45133c{['afterInit'](){const _0x1d84a4=this['editor'],_0x5ded3a=_0x1d84a4['locale'];if(!_0x1d84a4['plugins']['has']('AlignmentEditing'))return;const _0x2f6615=_0x1d84a4['plugins']['get']('TrackChangesEditing');_0x2f6615['enableDefaultAttributesIntegration']('alignment'),_0x2f6615['registerBlockAttribute']('alignment'),_0x2f6615['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x5ded3a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xef3064=this['editor'],_0x124dd0=_0xef3064['locale'];_0xef3064['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13c853=>{if('formatBlock'!=_0x13c853['type'])return;const {data:_0x1d809a}=_0x13c853;if(_0x1d809a&&'alignment'==_0x1d809a['commandName']){const _0x18b4d6=_0x1d809a['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x124dd0,'*Format:*\x20%0',function(_0x5cee04){switch(_0x5cee04){case'left':return c(_0x124dd0,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x124dd0,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x124dd0,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x124dd0,'FORMAT_JUSTIFY_TEXT');}}(_0x18b4d6))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x45133c{['afterInit'](){const _0x2ea693=this['editor'],_0x45a953=_0x2ea693['plugins']['get']('TrackChangesEditing'),_0x21cd18=_0x2ea693['locale'];for(const _0x302dfa of Yt){if(!_0x2ea693['plugins']['has'](_0x302dfa))continue;const _0x1694f6=_0x302dfa['slice'](0x0,-0x7)['toLowerCase'](),_0x5d3021='FORMAT_'+_0x1694f6['toUpperCase']();_0x45a953['enableDefaultAttributesIntegration'](_0x1694f6),_0x45a953['registerInlineAttribute'](_0x1694f6),_0x45a953['descriptionFactory']['registerAttributeLabel'](_0x1694f6,c(_0x21cd18,_0x5d3021));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bb47e=this['editor'],_0x5a1556=_0x4bb47e['locale'],_0x3dcb1d=_0x4bb47e['plugins']['get']('TrackChangesEditing');function _0x10f2da(_0x236dab,_0x1635cd){_0x3dcb1d['descriptionFactory']['registerDescriptionCallback'](_0x7b9e97=>{if('formatInline'!=_0x7b9e97['type'])return;const {data:_0x4c2ff4}=_0x7b9e97;return _0x4c2ff4&&_0x4c2ff4['commandName']===_0x236dab?_0x4c2ff4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5a1556,'*Format:*\x20%0',_0x1635cd)}:{'type':'format','content':c(_0x5a1556,'*Remove\x20format:*\x20%0',_0x1635cd)}:void 0x0;});}_0x10f2da('bold',c(_0x5a1556,'FORMAT_BOLD')),_0x10f2da('italic',c(_0x5a1556,'FORMAT_ITALIC')),_0x10f2da('underline',c(_0x5a1556,'FORMAT_UNDERLINE')),_0x10f2da('code',c(_0x5a1556,'FORMAT_CODE')),_0x10f2da('strikethrough',c(_0x5a1556,'FORMAT_STRIKETHROUGH')),_0x10f2da('subscript',c(_0x5a1556,'FORMAT_SUBSCRIPT')),_0x10f2da('superscript',c(_0x5a1556,'FORMAT_SUPERSCRIPT'));}}class G extends _0x45133c{['afterInit'](){const _0x22dbb1=this['editor'],_0x23f853=_0x22dbb1['locale'];if(!_0x22dbb1['plugins']['has']('BlockQuoteEditing'))return;const _0x4ebe34=_0x22dbb1['plugins']['get']('TrackChangesEditing'),_0x1a261c=this['editor']['commands']['get']('blockQuote');_0x4ebe34['enableCommand']('blockQuote',(_0x3ff6d1,_0x16f44d={})=>{const _0xb9e603=this['editor']['model']['document']['selection'],_0x47a695=_0x16f44d&&void 0x0!==_0x16f44d['forceValue']?_0x16f44d['forceValue']:!_0x1a261c['value'];let _0x10495a=[];if(_0x47a695){const _0x2b3e2f=Array['from'](_0xb9e603['getSelectedBlocks']())['filter'](_0x195fc1=>to(_0x195fc1)||function(_0x257d15,_0x1ac752){const _0x502627=_0x1ac752['checkChild'](_0x257d15['parent'],'blockQuote'),_0x5a3c93=_0x1ac752['checkChild'](['$root','blockQuote'],_0x257d15);return _0x502627&&_0x5a3c93;}(_0x195fc1,this['editor']['model']['schema']));_0x10495a=Zt(_0x2b3e2f,_0x22dbb1['model']);}else{const _0x172a78=Array['from'](_0xb9e603['getSelectedBlocks']())['filter'](_0xca1903=>to(_0xca1903));_0x10495a=Zt(_0x172a78,_0x22dbb1['model']);}_0x22dbb1['model']['change'](()=>{for(const _0xca9dd2 of _0x10495a)_0x4ebe34['markBlockFormat'](_0xca9dd2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x47a695}]});});}),_0x4ebe34['descriptionFactory']['registerDescriptionCallback'](_0x228c10=>{const {data:_0x22faad}=_0x228c10;if(_0x22faad&&'blockQuote'==_0x22faad['commandName']){const _0x1479b9=c(_0x23f853,'ELEMENT_BLOCK_QUOTE');return _0x22faad['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x23f853,'*Set\x20format:*\x20%0',_0x1479b9)}:{'type':'format','content':c(_0x23f853,'*Remove\x20format:*\x20%0',_0x1479b9)};}});}}function to(_0x5b2ca3){return'blockQuote'==_0x5b2ca3['parent']['name'];}class L extends _0x45133c{['afterInit'](){const _0x39db80=this['editor'],_0x530a76=_0x39db80['locale'],_0x50abdb=_0x39db80['plugins']['get']('TrackChangesEditing');_0x39db80['plugins']['has']('BookmarkEditing')&&(_0x50abdb['enableCommand']('insertBookmark'),_0x50abdb['enableDefaultAttributesIntegration']('updateBookmark'),_0x50abdb['registerBlockAttribute']('bookmarkId'),_0x50abdb['descriptionFactory']['registerDescriptionCallback'](_0x4cfa13=>{if('insertion'!=_0x4cfa13['type']&&'deletion'!=_0x4cfa13['type']&&'attribute'!=_0x4cfa13['type'])return;const _0x14d146=_0x4cfa13['getContainedElement']();if(null==_0x14d146)return;if(!_0x14d146['is']('element','bookmark'))return;const _0x2112ab=_0x14d146['getAttribute']('bookmarkId');if('insertion'==_0x4cfa13['type'])return{'type':'insertion','content':c(_0x530a76,'*Insert:*\x20%0','\x22'+_0x2112ab+'\x22\x20'+c(_0x530a76,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4cfa13['type'])return{'type':'deletion','content':c(_0x530a76,'*Remove:*\x20%0','\x22'+_0x2112ab+'\x22\x20'+c(_0x530a76,'ELEMENT_BOOKMARK'))};const {data:_0x43df38}=_0x4cfa13;if(!_0x43df38||'bookmarkId'!=_0x43df38['key'])return;return{'type':'format','content':c(_0x530a76,'*Set\x20bookmark:*\x20%0','\x22'+_0x43df38['newValue']+'\x22')};}));}}class J extends _0x45133c{['afterInit'](){const _0xbe3ea1=this['editor'];_0xbe3ea1['plugins']['has']('CaseChange')&&(_0xbe3ea1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xbe3ea1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xbe3ea1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x45133c{['afterInit'](){const _0x264808=this['editor'];_0x264808['commands']['get']('ckbox')&&_0x264808['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x45133c{['afterInit'](){const _0x31f64a=this['editor'];if(!_0x31f64a['plugins']['has']('CodeBlock'))return;const _0x1386f9=_0x31f64a['plugins']['get']('TrackChangesEditing'),_0xa6e45e=_0x31f64a['locale'],_0x4e4cf5=_0x31f64a['config']['get']('codeBlock')['languages'],_0x314329=_0x31f64a['commands']['get']('codeBlock');_0x1386f9['enableCommand']('indentCodeBlock'),_0x1386f9['enableCommand']('outdentCodeBlock'),_0x1386f9['enableCommand']('codeBlock',(_0xf2a47c,_0x2bfc57={})=>{const _0x317cf8=_0x31f64a['model'],_0x74ed19=_0x31f64a['model']['document']['selection'],_0xc8059f=_0x2bfc57&&void 0x0!==_0x2bfc57['forceValue']?_0x2bfc57['forceValue']:!_0x314329['value'];let _0x358c1d;_0x2bfc57['language']||(_0x2bfc57['language']=_0x4e4cf5[0x0]['language']),_0x358c1d=_0xc8059f?Array['from'](_0x74ed19['getSelectedBlocks']())['filter'](_0x24c39b=>oo(_0x24c39b)||function(_0x4f768d,_0x2cd03f){if(_0x4f768d['is']('rootElement')||_0x2cd03f['isLimit'](_0x4f768d))return!0x1;return _0x2cd03f['checkChild'](_0x4f768d['parent'],'codeBlock');}(_0x24c39b,_0x317cf8['schema'])):Array['from'](_0x74ed19['getSelectedBlocks']())['filter'](_0xfdde0f=>oo(_0xfdde0f));const _0x22c46a=Zt(_0x358c1d,_0x317cf8);_0x317cf8['change'](()=>{for(const _0x4b2c0e of _0x22c46a)_0x1386f9['markBlockFormat'](_0x4b2c0e,{'commandName':'codeBlock','commandParams':[{..._0x2bfc57,'forceValue':_0xc8059f}],'formatGroupId':'blockName'});});}),(_0x1386f9['descriptionFactory']['registerElementLabel']('codeBlock',_0x187240=>c(_0xa6e45e,'ELEMENT_CODE_BLOCK',_0x187240)),_0x1386f9['descriptionFactory']['registerDescriptionCallback'](_0x546350=>{if('formatBlock'!=_0x546350['type'])return;const _0x21cf39=_0xa6e45e['t'],{data:_0x3d7a4c}=_0x546350;if(!_0x3d7a4c||'codeBlock'!=_0x3d7a4c['commandName'])return;const _0x4f4b25=_0x3d7a4c['commandParams'][0x0]['language'],_0x99a26f=_0x21cf39(_0x4e4cf5['find'](_0x285768=>_0x285768['language']===_0x4f4b25)['label'])['toLowerCase']();return _0x3d7a4c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xa6e45e,'*Set\x20format:*\x20%0',c(_0xa6e45e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x99a26f+')')}:{'type':'format','content':c(_0xa6e45e,'*Remove\x20format:*\x20%0',c(_0xa6e45e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x139cdf){return'codeBlock'==_0x139cdf['name'];}class q extends _0x45133c{['afterInit'](){const _0x3bc8c9=this['editor'];if(!_0x3bc8c9['plugins']['has']('CommentsEditing'))return;_0x3bc8c9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1dfcb1,_0x252191,_0x4af75c){const _0x369d50=[];for(const _0x71ccc4 of _0x252191['getItems']())_0x71ccc4['hasAttribute'](_0x1dfcb1)&&_0x369d50['push'](_0x4af75c['createRangeOn'](_0x71ccc4));return _0x369d50;}function De(_0x522a8a,_0x28434e,{showActiveMarker:_0x5600a8=!0x0}={}){const _0x3c3dc8=_0x522a8a['plugins']['get']('TrackChangesEditing');return(_0x489449,_0x4be8fb,_0x181c5c)=>{if(!_0x181c5c['consumable']['test'](_0x4be8fb['markerRange'],_0x489449['name']))return;const _0x20eb71=_0x4be8fb['markerRange']['getWalker'](),_0x5bf45b=_0x4be8fb['markerRange']['start'],_0x5c0dab=_0x522a8a['model']['schema'];let _0x4079f8=null,_0x1d772b=null,_0x368014=!0x1,_0x5d15e4=!0x1;for(const _0x2551b7 of _0x20eb71){const _0x25ffb5=_0x2551b7['item'];_0x368014=_0x368014||_0x5c0dab['isContent'](_0x25ffb5);const _0x2a2225=_0x181c5c['mapper']['toViewElement'](_0x25ffb5);if(_0x2a2225&&_0x2a2225['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2551b7['type']&&(_0x5c0dab['isBlock'](_0x25ffb5)&&!_0x5c0dab['isLimit'](_0x25ffb5)&&(_0x25ffb5['nextSibling']||_0x5bf45b['isAtEnd']?_0x4079f8&&_0x4079f8['parent']==_0x25ffb5||(_0x4079f8=_0x25ffb5,_0x4e0faa(_0x2551b7['previousPosition']),_0x5d15e4=!0x0):_0x1d772b=_0x1d772b||_0x2551b7['previousPosition']));}function _0x4e0faa(_0x29b7dd){const {authorId:_0x4f8c6c}=_0x3c3dc8['_splitMarkerName'](_0x4be8fb['markerName']),_0x365d54=_0x181c5c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x28434e,'data-author-id':_0x4f8c6c}),_0x5d2a0d=_0x181c5c['mapper']['toViewPosition'](_0x29b7dd);_0x5600a8&&_0x3c3dc8['activeMarkers']['includes'](_0x4be8fb['markerName'])&&_0x181c5c['writer']['addClass']('ck-suggestion-marker--active',_0x365d54),_0x181c5c['writer']['insert'](_0x5d2a0d,_0x365d54),_0x181c5c['mapper']['bindElementToMarker'](_0x365d54,_0x4be8fb['markerName']);}_0x368014||_0x5d15e4||!_0x1d772b||_0x4e0faa(_0x1d772b);};}class z extends _0x45133c{static get['requires'](){return[_0x354e30];}['init'](){const _0x3d530d=this['editor'],_0x5a2fb2=_0x3d530d['plugins']['get']('TrackChangesEditing');_0x5a2fb2['enableCommand']('delete');const _0x2e67c3=_0x3d530d['commands']['get']('deleteForward');_0x5a2fb2['enableCommand']('deleteForward',(_0x35a75b,_0x650a79={})=>{const _0x3cae19=_0x3d530d['model']['createSelection'](_0x3d530d['model']['document']['selection']);_0x3cae19['isCollapsed']&&_0x3d530d['model']['modifySelection'](_0x3cae19,{'direction':'forward','unit':_0x650a79['unit']});const _0x2e8b5c=_0x3cae19['getFirstRange'](),_0x3dd8e0=_0x51fe0f['fromRange'](_0x2e8b5c);let _0x495e1d;_0x35a75b(_0x650a79),_0x495e1d='$graveyard'==_0x3dd8e0['root']['rootName']?_0x3d530d['model']['createRange'](_0x2e8b5c['start']):_0x3d530d['model']['createRange'](_0x3dd8e0['start'],_0x3dd8e0['end']),_0x3dd8e0['detach'](),_0x3d530d['model']['enqueueChange'](_0x2e67c3['buffer']['batch'],_0x21934f=>{_0x2e67c3['buffer']['lock'](),_0x21934f['setSelection'](_0x21934f['createRange'](_0x495e1d['end'])),_0x2e67c3['buffer']['unlock']();});}),_0x3d530d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3d530d,'merge'),{'priority':'high'}),_0x3d530d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4b11d8,_0x281af5,_0x38d487)=>{_0x38d487['options']['showSuggestionHighlights']&&De(_0x3d530d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4b11d8,_0x281af5,_0x38d487);},{'priority':'high'}),_0x3d530d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4831fc,_0x533188,_0x122ebd)=>{const _0x5e1a9f=_0x122ebd['mapper']['markerNameToElements'](_0x533188['markerName']);if(_0x5e1a9f){for(const _0x598b66 of _0x5e1a9f)_0x598b66['is']('uiElement')&&(_0x122ebd['mapper']['unbindElementFromMarkerName'](_0x598b66,_0x533188['markerName']),_0x122ebd['writer']['remove'](_0x598b66));}},{'priority':'high'});}}class W extends _0x45133c{['afterInit'](){const _0x294b6a=this['editor'];if(!_0x294b6a['plugins']['has']('ListEditing'))return;const _0xace367=_0x294b6a['locale'],_0x294244=_0x294b6a['plugins']['get']('TrackChangesEditing'),_0x1cf031=_0x294b6a['plugins']['has']('TodoListEditing'),_0x4c1512=!!_0x294b6a['config']['get']('list.multiBlock');function _0x137587(_0x585747){return{'type':'format','content':''+c(_0xace367,'*Set\x20format:*\x20%0',_0x585747)};}function _0x4b05b2(_0x46c153){return{'type':'format','content':''+c(_0xace367,'*Remove\x20format:*\x20%0',_0x46c153)};}_0x294244['enableDefaultAttributesIntegration']('numberedList'),_0x294244['enableDefaultAttributesIntegration']('bulletedList'),_0x294244['enableDefaultAttributesIntegration']('customNumberedList'),_0x294244['enableDefaultAttributesIntegration']('customBulletedList'),_0x294244['enableDefaultAttributesIntegration']('indentList'),_0x294244['enableDefaultAttributesIntegration']('outdentList'),_0x294244['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x294244['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x294244['registerBlockAttribute']('listItemId'),_0x294244['registerBlockAttribute']('listType'),_0x294244['registerBlockAttribute']('listIndent'),_0x4c1512&&(_0x294244['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x294244['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1cf031&&(_0x294244['enableDefaultAttributesIntegration']('todoList'),_0x294244['enableDefaultAttributesIntegration']('checkTodoList'),_0x294244['registerBlockAttribute']('todoListChecked'),_0x294244['descriptionFactory']['registerDescriptionCallback'](_0x50b164=>{const {data:_0x2d6aca}=_0x50b164;if(_0x2d6aca&&'todoListChecked'==_0x2d6aca['key'])return{'type':'format','content':_0x2d6aca['newValue']?c(_0xace367,'*Check\x20item*'):c(_0xace367,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4968bf=>{if(_0x4968bf['batch']['isUndo'])return!0x1;let _0x439da2=!0x1;const _0x4ea898=_0x294244['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x533877=>'todoListChecked'===_0x294244['_getAttributeKey'](_0x533877));for(const _0x4190f7 of _0x4ea898){'todo'!=_0x4190f7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x294244['_findSuggestions'](_0x4190f7['getFirstRange'](),'attribute')['find'](_0x37cdd0=>'listType'===_0x294244['_getAttributeKey'](_0x37cdd0['suggestion']))||(_0x4968bf['removeMarker'](_0x4190f7['getFirstMarker']()),_0x439da2=!0x0));}return _0x439da2;})),_0x294244['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xace367,'FORMAT_INDENT'));const _0x29845b={'type':'format','content':''};_0x294244['descriptionFactory']['registerDescriptionCallback'](_0xa49217=>{const {data:_0x4b6f13}=_0xa49217;if(!_0x4b6f13||'listType'!=_0x4b6f13['key'])return;let _0x2e3f16=_0xa49217['head'];for(;_0x2e3f16;){if(_0x2e3f16['data']&&(('listStyle'==_0x2e3f16['data']['key']||'listMarkerStyle'==_0x2e3f16['data']['key'])&&(_0x2e3f16['data']['newValue']&&'default'!=_0x2e3f16['data']['newValue']||'default'!=_0x2e3f16['data']['oldValue']&&!_0x4b6f13['newValue'])||!_0x4c1512&&_0x2e3f16['data']['key']==u))return _0x29845b;_0x2e3f16=_0x2e3f16['next'];}if(null==_0x4b6f13['newValue'])switch(_0x4b6f13['oldValue']){case'bulleted':return _0x4b05b2(c(_0xace367,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b05b2(c(_0xace367,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b05b2(c(_0xace367,'ELEMENT_TODO_LIST'));}switch(_0x4b6f13['newValue']){case'bulleted':return _0x137587(c(_0xace367,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x137587(c(_0xace367,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x137587(c(_0xace367,'ELEMENT_TODO_LIST'));}}),_0x294244['descriptionFactory']['registerDescriptionCallback'](_0x5744af=>{const {data:_0x59b978}=_0x5744af;if(_0x59b978&&'listIndent'==_0x59b978['key'])return null==_0x59b978['newValue']||null==_0x59b978['oldValue']&&0x0==_0x59b978['newValue']?_0x29845b:void 0x0;}),_0x294244['descriptionFactory']['registerDescriptionCallback'](_0x1d7568=>{if('attribute'!=_0x1d7568['type'])return;const {data:_0x1f70d2}=_0x1d7568;if(!_0x1f70d2||'listItemId'!=_0x1f70d2['key'])return;const _0x2ba051=Te(_0x1d7568);return'newValue'==_0x2ba051?{'type':'format','content':c(_0xace367,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2ba051?{'type':'format','content':c(_0xace367,'*Split:*\x20list\x20item')}:_0x29845b;}),_0x294b6a['model']['document']['registerPostFixer'](_0x224009=>this['listItemIdFixer'](_0x224009)),_0x294b6a['model']['document']['registerPostFixer'](_0x180dc5=>this['noTrackChangesFixer'](_0x180dc5)),_0x294b6a['model']['document']['on']('change:data',(_0x269b79,_0x2d6802)=>{if(_0x2d6802['isUndo']||!_0x2d6802['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x13e2eb){if(_0x13e2eb['batch']['isUndo']||!_0x13e2eb['batch']['isLocal'])return!0x1;let _0x2021db=!0x1;const _0x1a3c82=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53a0ba=>_0x53a0ba['data']&&'listItemId'==_0x53a0ba['data']['key'])['filter'](_0x7a21a5=>_0x7a21a5['data']['newValue']&&_0x7a21a5['data']['oldValue']);for(const _0x212748 of _0x1a3c82)Te(_0x212748)||(_0x13e2eb['removeMarker'](_0x212748['getFirstMarker']()),_0x2021db=!0x0);return _0x2021db;}['noTrackChangesFixer'](_0x2d8477){if(_0x2d8477['batch']['isUndo']||!_0x2d8477['batch']['isLocal'])return!0x1;const _0x257807=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x257807['trackChangesCommand']['value'])return!0x1;let _0x184ae1=!0x1;const _0x2c17c8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xed3b63=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x118566=>'attribute'==_0x118566['type'])['filter'](_0x9786fa=>_0x2c17c8['includes'](_0x9786fa['attributeKey']));if(0x0==_0xed3b63['length'])return _0x184ae1;for(const _0x227eb9 of _0xed3b63){const _0x1fd506=_0x257807['_findSuggestions'](_0x227eb9['range'],'attribute')['filter'](_0x2e86dc=>!_0x2e86dc['meta']['isNextTo'])['map'](_0x5eddcd=>_0x5eddcd['suggestion'])['filter'](_0x12a00e=>{const _0x360d04=_0x257807['_getAttributeKey'](_0x12a00e);return _0x2c17c8['includes'](_0x360d04);});if(_0x1fd506['length']){for(const _0x4c2af8 of _0x1fd506)_0x2d8477['removeMarker'](_0x4c2af8['getFirstMarker']());_0x184ae1=!0x0;}}return _0x184ae1;}['assureChains'](){const _0x2524f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e025a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x67bbb5;const _0x3c1b13=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b6b28=>{if(_0x3b6b28['data']['oldRange']||!_0x3b6b28['data']['newRange'])return null;if(!_0x3b6b28['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5ec9da}=_0x2524f8['_splitMarkerName'](_0x3b6b28['name']);if(!_0x2524f8['hasSuggestion'](_0x5ec9da))return null;const _0x281e89=_0x2524f8['getSuggestion'](_0x5ec9da);return _0x2e025a['includes'](_0x281e89['data']['key']);})['map'](_0x1fe4ca=>{const {id:_0x3ec4cc}=_0x2524f8['_splitMarkerName'](_0x1fe4ca['name']),_0x587a63=_0x2524f8['getSuggestion'](_0x3ec4cc);return _0x67bbb5=_0x587a63['attributes']['groupId'],_0x587a63['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3c1b13['size'])return;const _0x2eb3b0=_0x2524f8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24e540=>'attribute'==_0x24e540['type']&&_0x24e540['data']&&_0x2e025a['includes'](_0x24e540['data']['key'])&&_0x24e540['attributes']['groupId']!=_0x67bbb5)['map'](_0x157459=>({'listItem':_0x157459['getFirstRange']()['start']['nodeAfter'],'groupId':_0x157459['attributes']['groupId']})),_0xc99fc8=new Set();for(const {groupId:_0x1d0c48,listItem:_0x107630}of _0x2eb3b0)_0x3c1b13['has'](_0x107630)&&_0xc99fc8['add'](_0x1d0c48);for(const _0x4d01ee of _0x2524f8['getSuggestions']())_0xc99fc8['has'](_0x4d01ee['attributes']['groupId'])&&_0x4d01ee['setAttribute']('groupId',_0x67bbb5);}['_supportLegacySuggestions'](){const _0x4eb1c9=this['editor'],_0x32890a=_0x4eb1c9['locale'],_0x16c111=_0x4eb1c9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x16c111['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1dd8da,_0x5367d2){const _0x457053=[];for(let _0x1997e8 of _0x1dd8da)_0x1997e8['start']['nodeAfter']===_0x1997e8['end']['parent']&&(_0x1997e8=_0x4eb1c9['model']['createRange'](_0x4eb1c9['model']['createPositionAt'](_0x1997e8['start']['nodeAfter'],0x0))),_0x457053['push'](_0x1997e8);_0x4eb1c9['model']['change'](_0x47a2fc=>{const _0x43be47=_0x4eb1c9['model']['document']['selection'],_0xcc3316=Array['from'](_0x43be47['getRanges']())['map'](_0x2260a0=>_0x51fe0f['fromRange'](_0x2260a0));_0x47a2fc['setSelection'](_0x457053),_0x4eb1c9['commands']['get'](_0x5367d2['commandName'])['refresh'](),_0x5367d2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4eb1c9['execute'](_0x5367d2['commandName'],..._0x5367d2['commandParams']),_0x47a2fc['setSelection'](_0xcc3316);for(const _0x5827b6 of _0xcc3316)_0x5827b6['detach']();});}),_0x16c111['descriptionFactory']['registerElementLabel'](function(_0x2b586c){const _0x5421ae=!_0x4eb1c9['model']['schema']['isObject'](_0x2b586c),_0x1f7047=_0x2b586c['previousSibling'],_0x3d9435=_0x2b586c['nextSibling'],_0x44e0ff=_0x2b586c['getAttribute']('listItemId'),_0x17a536=!_0x1f7047||_0x1f7047['getAttribute']('listItemId')!==_0x44e0ff,_0x57f9e2=!_0x3d9435||_0x3d9435['getAttribute']('listItemId')!==_0x44e0ff;return _0x5421ae&&Boolean(_0x44e0ff)&&_0x17a536&&_0x57f9e2;},_0x4fe66e=>c(_0x32890a,'ELEMENT_LIST_ITEM',_0x4fe66e));}['_registerLegacyDescription'](){const _0x26579c=this['editor'],_0x2c3a0=_0x26579c['locale'];function _0x5a1e09(_0x1e89b7){const _0x456093=_0x26579c['commands']['get']('bulletedList')['value'],_0x15415b=_0x26579c['commands']['get']('numberedList')['value'];return'numberedList'===_0x1e89b7?_0x456093:_0x15415b;}_0x26579c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3dff4b){if('formatBlock'!=_0x3dff4b['type'])return;const {data:_0x4653e8}=_0x3dff4b;if(!_0x4653e8)return;let _0x3e17c5,_0x257fcc,_0x3d0638,_0x5950bd;switch(_0x4653e8['commandName']){case'bulletedList':_0x3d0638=_0x4653e8['commandParams'][0x0]['forceValue'],_0x5950bd=_0x5a1e09(_0x4653e8['commandName']),_0x3e17c5=_0x3d0638?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5950bd&&_0x26579c['config']['get']('list.multiBlock')||(_0x3e17c5='*Change\x20to:*\x20%0'),_0x257fcc={'type':'format','content':c(_0x2c3a0,_0x3e17c5,c(_0x2c3a0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3d0638=_0x4653e8['commandParams'][0x0]['forceValue'],_0x5950bd=_0x5a1e09(_0x4653e8['commandName']),_0x3e17c5=_0x3d0638?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5950bd&&_0x26579c['config']['get']('list.multiBlock')||(_0x3e17c5='*Change\x20to:*\x20%0'),_0x257fcc={'type':'format','content':c(_0x2c3a0,_0x3e17c5,c(_0x2c3a0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3e17c5='*Indent:*\x20%0',_0x257fcc={'type':'format','content':c(_0x2c3a0,_0x3e17c5,c(_0x2c3a0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3e17c5=function(_0x2dd6f7){const _0x77c6d7=_0x2dd6f7['getFirstRange']();let _0x4f04f9=_0x77c6d7['start']['nodeAfter'];for(;_0x4f04f9&&_0x77c6d7['containsItem'](_0x4f04f9);){if(_0x4f04f9['getAttribute']('listIndent')>0x0)return!0x1;_0x4f04f9=_0x4f04f9['nextSibling'];}return!0x0;}(_0x3dff4b)?c(_0x2c3a0,'*Format:*\x20remove\x20from\x20%0',c(_0x2c3a0,function(_0x340972){return'ELEMENT_'+_0x340972['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3dff4b))):c(_0x2c3a0,'*Outdent:*\x20%0',c(_0x2c3a0,'ELEMENT_LIST_ITEM')),_0x257fcc={'type':'format','content':_0x3e17c5};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4653e8['multipleBlocks']&&(_0x3e17c5='*Merge:*\x20%0',_0x257fcc={'type':'deletion','content':c(_0x2c3a0,_0x3e17c5,c(_0x2c3a0,'ELEMENT_LIST_ITEM'))});}return _0x257fcc;});}}function Te(_0x4af827){let _0x40eb8f=_0x4af827['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x40eb8f;){const _0x806670=_0x40eb8f['getAttribute']('listItemId');if(!_0x806670)return!0x1;if(_0x806670==_0x4af827['data']['newValue'])return'newValue';if(_0x806670==_0x4af827['data']['oldValue'])return'oldValue';_0x40eb8f=_0x40eb8f['previousSibling'];}return!0x1;}class Se extends _0x45133c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x302f30=this['editor']['config']['get']('list.properties'),_0x3c9433=this['editor']['plugins']['get']('TrackChangesEditing');_0x302f30['styles']&&(_0x3c9433['enableDefaultAttributesIntegration']('listStyle'),_0x3c9433['registerBlockAttribute']('listStyle')),_0x302f30['reversed']&&(_0x3c9433['enableDefaultAttributesIntegration']('listReversed'),_0x3c9433['registerBlockAttribute']('listReversed')),_0x302f30['startIndex']&&(_0x3c9433['enableDefaultAttributesIntegration']('listStart'),_0x3c9433['registerBlockAttribute']('listStart'));const _0xa6826={'type':'format','content':''};_0x3c9433['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3f7ed0=this['editor']['locale'];_0x3c9433['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3f7ed0,'FORMAT_LIST_REVERSED')),_0x3c9433['descriptionFactory']['registerDescriptionCallback'](_0x58eb73=>{const {data:_0x2e3d54}=_0x58eb73;if(_0x2e3d54&&'listReversed'==_0x2e3d54['key'])return null==_0x2e3d54['newValue']||0x0==_0x2e3d54['newValue']&&null==_0x2e3d54['oldValue']?_0xa6826:void 0x0;}),_0x3c9433['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3f7ed0,'FORMAT_LIST_START')),_0x3c9433['descriptionFactory']['registerDescriptionCallback'](_0xfb74b2=>{const {data:_0x228c33}=_0xfb74b2;if(_0x228c33&&'listStart'==_0x228c33['key'])return null==_0x228c33['newValue']||0x1==_0x228c33['newValue']&&null==_0x228c33['oldValue']?_0xa6826:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xcfd221=>{if(_0xcfd221['batch']['isUndo'])return!0x1;let _0x26c2bf=!0x1;const _0x1818e8=_0x3c9433['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cc607=>{const _0x1c5153=_0x3c9433['_getAttributeKey'](_0x1cc607);return'listStart'==_0x1c5153||'listReversed'==_0x1c5153;});for(const _0x5cb7aa of _0x1818e8){const _0x566c9a=_0x5cb7aa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x566c9a||'customNumbered'==_0x566c9a)continue;_0x3c9433['_findSuggestions'](_0x5cb7aa['getFirstRange'](),'attribute')['find'](_0x252239=>'listType'==_0x3c9433['_getAttributeKey'](_0x252239['suggestion']))||(_0xcfd221['removeMarker'](_0x5cb7aa['getFirstMarker']()),_0x26c2bf=!0x0);}return _0x26c2bf;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x158119){const _0x3924df=this['editor']['locale'],{data:_0x48c4c9}=_0x158119,_0x58604d={'type':'format','content':''};if(!_0x48c4c9||'listStyle'!=_0x48c4c9['key'])return;if(!_0x48c4c9['oldValue'])return'default'==_0x48c4c9['newValue']?_0x58604d:{'type':'format','content':''+c(_0x3924df,'*Set\x20format:*\x20%0',c(_0x3924df,this['_getTranslationKeyForListStyle'](_0x48c4c9['newValue'])))};if(!_0x48c4c9['newValue']){if('default'==_0x48c4c9['oldValue'])return _0x58604d;let _0x2f3940=_0x158119['head'];for(;_0x2f3940;){if(_0x2f3940['data']&&'listType'==_0x2f3940['data']['key']&&_0x2f3940['data']['newValue'])return _0x58604d;_0x2f3940=_0x2f3940['next'];}return{'type':'format','content':''+c(_0x3924df,'*Remove\x20format:*\x20%0',c(_0x3924df,this['_getTranslationKeyForListStyle'](_0x48c4c9['oldValue'])))};}if('default'!=_0x48c4c9['newValue'])return{'type':'format','content':''+c(_0x3924df,'*Set\x20format:*\x20%0',c(_0x3924df,this['_getTranslationKeyForListStyle'](_0x48c4c9['newValue'])))};let _0x5388eb=_0x158119['head'];for(;_0x5388eb;){if(_0x5388eb['data']&&'listType'==_0x5388eb['data']['key']&&_0x5388eb['data']['newValue']&&_0x5388eb['data']['oldValue'])return _0x58604d;_0x5388eb=_0x5388eb['next'];}return{'type':'format','content':c(_0x3924df,'*Set\x20format:*\x20%0',c(_0x3924df,'ELEMENT_'+_0x158119['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1ff645=this['editor'],_0x16ea1d=_0x1ff645['locale'];_0x1ff645['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1405ff=>{if('formatBlock'!=_0x1405ff['type'])return;const {data:_0x5d12fe}=_0x1405ff;if(!_0x5d12fe)return;let _0x5153d6,_0x415c5c;switch(_0x5d12fe['commandName']){case'listStyle':_0x5153d6='*Change\x20to:*\x20%0',_0x415c5c={'type':'format','content':c(_0x16ea1d,_0x5153d6,c(_0x16ea1d,this['_getTranslationKeyForListStyle'](_0x5d12fe['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5153d6=_0x5d12fe['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x415c5c={'type':'format','content':c(_0x16ea1d,_0x5153d6)};break;case'listStart':_0x5153d6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x415c5c={'type':'format','content':c(_0x16ea1d,_0x5153d6,_0x5d12fe['commandParams'][0x0]['startIndex'])};}return _0x415c5c;});}['_getTranslationKeyForListStyle'](_0x2642c9){return'ELEMENT_'+function(_0x41a5d1){if(_e['includes'](_0x41a5d1))return'bulleted';if(Re['includes'](_0x41a5d1))return'numbered';return null;}(_0x2642c9)['toUpperCase']()+'_LIST_'+_0x2642c9['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x45133c{['afterInit'](){const _0x52cb64=this['editor'];_0x52cb64['commands']['get']('emoji')&&_0x52cb64['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x45133c{static get['requires'](){return[_0x3c3269];}['init'](){const _0x3e9a54=this['editor'],_0x4e6518=_0x3e9a54['plugins']['get']('TrackChangesEditing'),_0x149cf6=_0x3e9a54['commands']['get']('enter');_0x4e6518['enableCommand']('enter',()=>{_0x3e9a54['model']['change'](_0x180669=>{const _0x4dc8d3=_0x3e9a54['model']['document']['selection'],_0x1539a1=_0x4dc8d3['getFirstPosition'](),_0x2a3227=_0x51fe0f['fromRange'](_0x4dc8d3['getFirstRange']());if(_0x149cf6['enterBlock'](_0x180669)){const _0x1bebb1=_0x3e9a54['model']['createPositionAt'](_0x1539a1['parent']['nextSibling'],0x0),_0x9517d5=_0x180669['createRange'](_0x1539a1,_0x1bebb1);_0x4e6518['markInsertion'](_0x9517d5);}else _0x180669['setSelection'](_0x180669['createRange'](_0x2a3227['end']));_0x2a3227['detach'](),_0x149cf6['fire']('afterExecute',{'writer':_0x180669});});}),_0x3e9a54['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x3e9a54,'split'),{'priority':'high'}),_0x3e9a54['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2577de,_0x4701d5,_0x557950)=>{const _0x469c3c=_0x557950['mapper']['markerNameToElements'](_0x4701d5['markerName']);if(_0x469c3c){for(const _0x10b7a2 of _0x469c3c)_0x10b7a2['hasClass']('ck-suggestion-marker-split')&&(_0x557950['mapper']['unbindElementFromMarkerName'](_0x10b7a2,_0x4701d5['markerName']),_0x557950['writer']['remove'](_0x10b7a2));}},{'priority':'high'}),_0x3e9a54['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f1c14,_0x14b5ed,_0xf32b97)=>{_0xf32b97['options']['showSuggestionHighlights']&&De(_0x3e9a54,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1f1c14,_0x14b5ed,_0xf32b97);},{'priority':'high'});}}class Z extends _0x45133c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x492065=this['editor']['plugins']['get']('TrackChangesEditing');_0x492065['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x492065['enableCommand']('findNext'),_0x492065['enableCommand']('findPrevious'),_0x492065['enableCommand']('replace'),_0x492065['enableCommand']('replaceAll');}['handleFindCommand'](_0x27406b,_0xc21db8,_0x59be6b={}){const _0x3c1c73=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x27406b(_0x59e051=>{let _0x2c39c5=('string'==typeof _0xc21db8?_0x3c1c73['findByTextCallback'](_0xc21db8,_0x59be6b):_0xc21db8)(_0x59e051);Array['isArray'](_0x2c39c5)&&(_0x2c39c5={'results':_0x2c39c5,'searchText':'string'==typeof _0xc21db8?_0xc21db8:''});const _0x2780b8=_0x2c39c5['results']['filter'](_0x2a9c23=>!0x1===this['_isInDeletionRange'](_0x2a9c23,_0x59e051['item']));return{..._0x2c39c5,'results':_0x2780b8};},_0x59be6b);}['_isInDeletionRange'](_0x579613,_0xa70af1){const _0x4e3287=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa70af1,_0x579613['start']),this['editor']['model']['createPositionAt'](_0xa70af1,_0x579613['end']));for(const _0x4d8506 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4e3287['getIntersection'](_0x4d8506['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x45133c{['afterInit'](){const _0x49313f=this['editor']['locale'],_0x5f529e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5da31a,commandName:_0x12f6fa}of eo)this['editor']['plugins']['has'](_0x5da31a)&&(_0x5f529e['enableDefaultAttributesIntegration'](_0x12f6fa),_0x5f529e['registerInlineAttribute'](_0x12f6fa));_0x5f529e['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x49313f,'FORMAT_FONT_SIZE')),_0x5f529e['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x49313f,'FORMAT_FONT_FAMILY')),_0x5f529e['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x49313f,'FORMAT_FONT_COLOR')),_0x5f529e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x49313f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5327c5=this['editor'],_0x566d31=_0x5327c5['locale'];_0x5327c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x322e0d=>{const _0x53599a=_0x566d31['t'];if('formatInline'!=_0x322e0d['type'])return;const {data:_0x2dcbe4}=_0x322e0d;if(null!=_0x2dcbe4){if('fontSize'==_0x2dcbe4['commandName']){const _0x210bde=_0x2dcbe4['commandParams'][0x0]['value'];if(_0x210bde){const _0x1f38c0=_0x53599a(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x29a010=>_0x29a010['model']==_0x210bde)['title'])['toLowerCase']();return{'type':'format','content':c(_0x566d31,'*Set\x20font\x20size:*\x20%0',_0x1f38c0)};}return{'type':'format','content':c(_0x566d31,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2dcbe4['commandName']){const _0x8e8a8f=_0x2dcbe4['commandParams'][0x0]['value'];return _0x8e8a8f?{'type':'format','content':c(_0x566d31,'*Set\x20font\x20family:*\x20%0',_0x8e8a8f)}:{'type':'format','content':c(_0x566d31,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2dcbe4['commandName']){const _0x5ad250=_0x2dcbe4['commandParams'][0x0]['value'];if(_0x5ad250){const _0x333985=_0x31d9e1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4a0843=>_0x4a0843['model']==_0x5ad250);let _0x282535=_0x5ad250,_0x2e3d30='';return _0x333985&&(_0x282535=_0x333985['label'],_0x2e3d30=_0x53599a(_0x282535)['toLowerCase']()),{'type':'format','content':c(_0x566d31,'*Set\x20font\x20color:*\x20%0',_0x2e3d30)['trim'](),'color':{'value':_0x5ad250,'title':_0x2e3d30||_0x282535}};}return{'type':'format','content':c(_0x566d31,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2dcbe4['commandName']){const _0x3ba771=_0x2dcbe4['commandParams'][0x0]['value'];if(_0x3ba771){const _0x139447=_0x31d9e1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3df0b7=>_0x3df0b7['model']==_0x3ba771);let _0x228a2a=_0x3ba771,_0x377d57='';return _0x139447&&(_0x228a2a=_0x139447['label'],_0x377d57=_0x53599a(_0x228a2a)['toLowerCase']()),{'type':'format','content':c(_0x566d31,'*Set\x20font\x20background\x20color:*\x20%0',_0x377d57)['trim'](),'color':{'value':_0x3ba771,'title':_0x377d57||_0x228a2a}};}return{'type':'format','content':c(_0x566d31,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x45133c{['afterInit'](){const _0x3a03e0=this['editor'],_0x16ed1d=_0x3a03e0['plugins']['get']('TrackChangesEditing'),_0x195e41=_0x3a03e0['commands']['get']('copyFormat'),_0x4d310d=_0x3a03e0['commands']['get']('pasteFormat');_0x195e41&&_0x4d310d&&(_0x16ed1d['enableDefaultAttributesIntegration']('pasteFormat'),_0x16ed1d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x38d037=this['editor'],_0x1104ca=_0x38d037['locale'];_0x38d037['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5986=>{if('formatBlock'!=_0x4e5986['type']&&'formatInline'!=_0x4e5986['type'])return;const {data:_0x15b63d}=_0x4e5986;if(_0x15b63d&&'pasteFormat'===_0x15b63d['commandName']){const _0x3dfa9c=[],_0x31b82f=_0x15b63d['commandParams'][0x0];for(const [_0x39d14c,_0x50e7b0]of Object['entries'](_0x31b82f))_0x3dfa9c['push'](ro(_0x38d037,_0x39d14c,_0x50e7b0));return _0x3dfa9c['length']?{'type':'format','content':c(_0x1104ca,'*Set\x20format\x20to:*\x20%0',_0x3dfa9c['join'](',\x20'))}:{'type':'format','content':c(_0x1104ca,'*Remove\x20all\x20formatting*')};}});}}function ro(_0xce286d,_0x5b654a,_0x4a9c81){const _0x2377a2=_0xce286d['locale']['t'],_0x494fff=_0x5b654a['split'](/(?=[A-Z])/)['join']('\x20'),_0x455e2c=_0x2377a2(_0x494fff['charAt'](0x0)['toUpperCase']()+_0x494fff['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4a9c81)return _0x455e2c;if('fontColor'===_0x5b654a||'fontBackgroundColor'===_0x5b654a){const _0x426175=_0x31d9e1(_0xce286d['config']['get']('fontColor.colors'))['find'](_0xe41ea0=>_0xe41ea0['model']==_0x4a9c81);return _0x455e2c+'\x20('+(_0x426175?_0x2377a2(_0x426175['label'])['toLowerCase']():_0x4a9c81)+')';}if('fontSize'===_0x5b654a&&isNaN(parseFloat(_0x4a9c81))){const _0x30a6a2=_0xce286d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xce286d['config']['get']('fontSize.options'))['find'](_0xb19806=>_0xb19806['model']==_0x4a9c81);return _0x455e2c+'\x20('+(_0x30a6a2?_0x2377a2(_0x30a6a2['title'])['toLowerCase']():_0x4a9c81)+')';}return _0x455e2c+'\x20('+_0x4a9c81+')';}class nt extends _0x45133c{['_headingOptions'];['afterInit'](){const _0xa83c84=this['editor'];if(!_0xa83c84['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xa83c84['config']['get']('heading.options');const _0xc24735=_0xa83c84['locale'],_0x315192=_0xa83c84['plugins']['get']('TrackChangesEditing');_0x315192['enableDefaultAttributesIntegration']('heading');for(const _0x4fad77 of this['_headingOptions'])'paragraph'!=_0x4fad77['model']&&_0x315192['descriptionFactory']['registerElementLabel'](_0x4fad77['model'],_0x258d00=>{const _0x2761a8=this['_getHeadingLevel'](_0x4fad77['model']);return null!==_0x2761a8?_0x34ad12(_0x258d00,_0x2761a8):_0x2533cb(_0x258d00,_0x4fad77['title']);});function _0x34ad12(_0x45f9dc,_0x5acca8){return c(_0xc24735,'ELEMENT_HEADING',[_0x45f9dc,_0x5acca8]);}function _0x2533cb(_0xa40d4f,_0x1bd919){return c(_0xc24735,'ELEMENT_HEADING_CUSTOM',[_0xa40d4f,_0x1bd919]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa1afd8=this['editor'],_0x54061c=_0xa1afd8['locale'];function _0x8ea0b9(_0x2fda07,_0x4f0ce5){return c(_0x54061c,'ELEMENT_HEADING_CUSTOM',[_0x2fda07,_0x4f0ce5]);}_0xa1afd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd5a47f=>{if('formatBlock'!=_0xd5a47f['type'])return;const {data:_0x4a4f7f}=_0xd5a47f;if(_0x4a4f7f&&'heading'==_0x4a4f7f['commandName']){const _0x284c9f=_0x4a4f7f['commandParams'][0x0]['value'],_0x287cee=this['_getHeadingLevel'](_0x284c9f);if(null!==_0x287cee)return{'type':'format','content':c(_0x54061c,'*Change\x20to:*\x20%0',(_0x2a4e1d=0x1,_0x3e17a1=_0x287cee,c(_0x54061c,'ELEMENT_HEADING',[_0x2a4e1d,_0x3e17a1])))};const _0x494af9=this['_headingOptions']['find'](_0x523b00=>_0x523b00['model']===_0x284c9f)['title'];return{'type':'format','content':c(_0x54061c,'*Change\x20to:*\x20%0',_0x8ea0b9(0x1,_0x494af9))};}var _0x2a4e1d,_0x3e17a1;});}['_getHeadingLevel'](_0x3320e9){const _0x270802=_0x3320e9['match'](/^heading(\d+)/);if(_0x270802)return _0x270802[0x1];const _0x2b426d=this['_headingOptions']?.['find'](_0x2ade3b=>_0x2ade3b['model']==_0x3320e9);if(_0x2b426d&&_0x2b426d['view']){const _0x5b1a9a=_0x2b426d['view'],_0x323d25=(_0x5b1a9a['name']??_0x5b1a9a)['match'](/^h(\d+)/);if(_0x323d25)return _0x323d25[0x1];}return null;}}class it extends _0x45133c{['afterInit'](){const _0x575129=this['editor'];if(!_0x575129['plugins']['has']('HighlightEditing'))return;const _0x56e009=_0x575129['plugins']['get']('TrackChangesEditing'),_0x9ecdee=_0x575129['locale'];_0x56e009['enableDefaultAttributesIntegration']('highlight'),_0x56e009['registerInlineAttribute']('highlight'),_0x56e009['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x9ecdee,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50f7b8=this['editor'],_0xa98b09=_0x50f7b8['locale'];_0x50f7b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a5a13=>{if('formatInline'!=_0x1a5a13['type'])return;const {data:_0x4b0c67}=_0x1a5a13;if(_0x4b0c67&&'highlight'==_0x4b0c67['commandName']){const _0xdd0a35=_0xa98b09['t'],_0x7e03cd=_0x4b0c67['commandParams'][0x0]['value'];if(_0x7e03cd){const _0x375b56=_0x50f7b8['config']['get']('highlight.options')['find'](_0x268389=>_0x268389['model']==_0x7e03cd),_0x367acf=_0xdd0a35(_0x375b56['title'])['toLowerCase']();return{'type':'format','content':c(_0xa98b09,'*Set\x20highlight:*\x20%0',_0x367acf),'color':{'value':_0x375b56['color'],'title':_0x375b56['title']}};}return{'type':'format','content':c(_0xa98b09,'*Remove\x20highlight*',c(_0xa98b09,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x45133c{['afterInit'](){const _0x1cbd03=this['editor'];if(!_0x1cbd03['plugins']['has']('HorizontalLineEditing'))return;_0x1cbd03['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xfe3ce9=_0x1cbd03['plugins']['get']('TrackChangesEditing'),_0x34c34c=_0x1cbd03['locale'];_0xfe3ce9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x8d961e=>c(_0x34c34c,'ELEMENT_HORIZONTAL_LINE',_0x8d961e)),_0x1cbd03['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2c2e8f,{writer:_0x58217b,options:_0x2cb479})=>{if(!_0x2cb479['showSuggestionHighlights'])return null;const _0x1b024f=_0x58217b['createContainerElement']('div'),_0x4296a2=_0x58217b['createEmptyElement']('hr');return _0x58217b['addClass']('ck-horizontal-line',_0x1b024f),_0x58217b['insert'](_0x58217b['createPositionAt'](_0x1b024f,0x0),_0x4296a2),_0x1b024f;},'converterPriority':'high'});}}class ot extends _0x45133c{['afterInit'](){const _0x96849d=this['editor'];if(!_0x96849d['plugins']['has']('HtmlEmbed'))return;const _0x4d4ad2=_0x96849d['plugins']['get']('TrackChangesEditing'),_0x5958f2=_0x96849d['locale'];_0x4d4ad2['descriptionFactory']['registerElementLabel']('rawHtml',_0x4d7485=>c(_0x5958f2,'ELEMENT_HTML_EMBED',_0x4d7485)),_0x4d4ad2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4d4ad2['registerBlockAttribute']('value'),_0x4d4ad2['descriptionFactory']['registerDescriptionCallback'](_0x2c4914=>{if('attribute'!=_0x2c4914['type'])return;const {data:_0x363dea}=_0x2c4914;if(_0x363dea&&'value'==_0x363dea['key']&&_0x2c4914['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x139779=c(_0x5958f2,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5958f2,'*Change\x20%0\x20content*',_0x139779)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2163c5=this['editor'],_0x5ce378=_0x2163c5['locale'];_0x2163c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c49c2=>{if('formatBlock'!=_0x2c49c2['type'])return;const {data:_0x1c7503}=_0x2c49c2;if(_0x1c7503&&'htmlEmbed'==_0x1c7503['commandName']){const _0x872ded=c(_0x5ce378,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5ce378,'*Change\x20%0\x20content*',_0x872ded)};}});}}class rt extends _0x45133c{['afterInit'](){const _0x1482fb=this['editor'];if(!_0x1482fb['plugins']['has']('ImageEditing'))return;const _0x3f1dd9=_0x1482fb['plugins']['get']('TrackChangesEditing'),_0xecd24b=_0x1482fb['plugins']['get']('ImageUtils'),_0x2f3156=_0x1482fb['locale'];_0x3f1dd9['enableCommand']('insertImage'),_0x3f1dd9['descriptionFactory']['registerElementLabel']('imageBlock',_0x42e7f0=>c(_0x2f3156,'ELEMENT_IMAGE',_0x42e7f0)),_0x3f1dd9['descriptionFactory']['registerElementLabel']('imageInline',_0x358b9f=>c(_0x2f3156,'ELEMENT_INLINE_IMAGE',_0x358b9f)),_0x3f1dd9['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x2f3156,'ELEMENT_CAPTION')),_0x1482fb['plugins']['has']('ImageUploadEditing')&&_0x3f1dd9['enableCommand']('uploadImage'),_0x1482fb['plugins']['has']('ImageBlockEditing')&&_0x1482fb['plugins']['has']('ImageInlineEditing')&&(_0x3f1dd9['enableCommand']('imageTypeInline',(_0x375589,_0x1a79b9)=>{const _0x507600=_0xecd24b['getClosestSelectedImageElement'](_0x1482fb['model']['document']['selection']);_0x1482fb['model']['change'](()=>{_0x3f1dd9['markBlockFormat'](_0x507600,{'commandName':'imageTypeInline','commandParams':[_0x1a79b9]},[],'convertBlockImageToInline');});}),_0x3f1dd9['enableCommand']('imageTypeBlock',(_0x17ba4b,_0x4d347d)=>{_0x1482fb['model']['change'](_0x37da35=>{let _0x8412f5=_0xecd24b['getClosestSelectedImageElement'](_0x1482fb['model']['document']['selection']),_0x4051dd=_0x37da35['createRangeOn'](_0x8412f5);const _0x15cfd7=_0x495371['fromPosition'](_0x4051dd['start'],'toPrevious'),_0x491da2=_0x495371['fromPosition'](_0x4051dd['end'],'toNext');_0x3f1dd9['forceDefaultExecution'](()=>_0x17ba4b(_0x4d347d)),_0x8412f5=_0xecd24b['getClosestSelectedImageElement'](_0x1482fb['model']['document']['selection']),_0x4051dd=_0x37da35['createRangeOn'](_0x8412f5);const _0x10870b=_0x37da35['createRange'](_0x15cfd7,_0x491da2);_0x15cfd7['detach'](),_0x491da2['detach'](),_0x3f1dd9['markBlockFormat'](_0x8412f5,{'commandName':'imageTypeInline','commandParams':[_0x4d347d]},[],'convertInlineImageToBlock'),_0x10870b['start']['isBefore'](_0x4051dd['start'])&&_0x3f1dd9['markInsertion'](_0x37da35['createRange'](_0x10870b['start'],_0x4051dd['start']),'convertInlineImageToBlock'),_0x4051dd['end']['isBefore'](_0x10870b['end'])&&_0x3f1dd9['markInsertion'](_0x37da35['createRange'](_0x4051dd['end'],_0x10870b['end']),'convertInlineImageToBlock');});}),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3f1dd9['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x309b65])=>{const _0xda54c8=_0x3f1dd9['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x29ecdd=_0x309b65['start'],_0x105ab1=_0x309b65['end'];const _0x4f41db=_0x1482fb['model']['schema']['getNearestSelectionRange'](_0x29ecdd,'backward'),_0x539929=_0x1482fb['model']['schema']['getNearestSelectionRange'](_0x105ab1,'forward');_0x4f41db['isCollapsed']&&(_0x29ecdd=_0x4f41db['start']),_0x539929['isCollapsed']&&(_0x105ab1=_0x539929['end']),_0xda54c8([_0x1482fb['model']['createRange'](_0x29ecdd,_0x105ab1)]);}),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x17ec28),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x17ec28)),_0x1482fb['plugins']['has']('ImageCaptionEditing')&&(_0x3f1dd9['enableCommand']('toggleImageCaption',(_0x14a6b1,_0x514318)=>{const _0x4cae4f=_0x1482fb['plugins']['get']('ImageCaptionUtils');let _0x415f6b=_0xecd24b['getClosestSelectedImageElement'](_0x1482fb['model']['document']['selection']),_0x1b1c36=_0x4cae4f['getCaptionFromImageModelElement'](_0x415f6b);_0x1482fb['model']['change'](()=>{if(_0x1b1c36)return void _0x3f1dd9['markDeletion'](_0x1482fb['model']['createRangeOn'](_0x1b1c36));const _0x5c336d=_0xecd24b['isBlockImage'](_0x415f6b);_0x14a6b1(_0x514318),_0x415f6b=_0xecd24b['getClosestSelectedImageElement'](_0x1482fb['model']['document']['selection']),_0x1b1c36=_0x4cae4f['getCaptionFromImageModelElement'](_0x415f6b),_0x3f1dd9['markInsertion'](_0x1482fb['model']['createRangeOn'](_0x1b1c36),_0x5c336d?null:'imageCaption');});}),_0x3f1dd9['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x17ec28));const _0x24332b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5051db(_0x598e81,_0x123017){const _0x3d5051=_0x24332b['findIndex'](({type:_0xda26a3,subType:_0x42c64c})=>_0x598e81['type']==_0xda26a3&&_0x598e81['subType']==_0x42c64c),_0x373fc7=_0x24332b['findIndex'](({type:_0x36dc29,subType:_0x41388f})=>_0x123017['type']==_0x36dc29&&_0x123017['subType']==_0x41388f);if(_0x3d5051<0x0||_0x373fc7<0x0)return!0x1;const _0x365955=_0x598e81['getFirstRange'](),_0x5b435c=_0x123017['getFirstRange']();if((0x0==_0x3d5051||0x1==_0x3d5051)&&0x2==_0x373fc7&&_0x365955['isIntersecting'](_0x5b435c))return!0x0;if(0x2==_0x3d5051&&0x3==_0x373fc7){const _0x493cc3=_0x3f1dd9['_findSuggestions'](_0x365955,'insertion')['filter'](({suggestion:_0x1d4f55,meta:_0x55d3d1})=>_0x55d3d1['isOwn']&&'convertInlineImageToBlock'==_0x1d4f55['subType']);if(_0x493cc3['length']>0x1&&_0x5b435c['end']['isEqual'](_0x365955['start']))return!0x0;if(0x1==_0x493cc3['length']&&(_0x365955['start']['isEqual'](_0x5b435c['end'])||_0x365955['end']['isEqual'](_0x5b435c['start'])))return!0x0;}if(0x3==_0x3d5051&&0x3==_0x373fc7&&_0x365955['start']['isBefore'](_0x5b435c['start'])){const _0x166a87=_0x365955['end']['nodeAfter'],_0x25a6b5=_0x5b435c['start']['nodeBefore'];return _0xecd24b['isBlockImage'](_0x166a87)&&_0x166a87===_0x25a6b5;}return!0x1;}function _0x17ec28(_0x41f6ba,_0x2ef638){return _0x5051db(_0x41f6ba,_0x2ef638)?[_0x41f6ba,_0x2ef638]:_0x5051db(_0x2ef638,_0x41f6ba)?[_0x2ef638,_0x41f6ba]:null;}_0x1482fb['plugins']['has']('ImageResize')&&(_0x3f1dd9['enableDefaultAttributesIntegration']('resizeImage'),_0x3f1dd9['registerBlockAttribute']('resizedWidth'),_0x3f1dd9['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x2f3156,'FORMAT_IMAGE_SIZE'))),_0x1482fb['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3f1dd9['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3f1dd9['registerBlockAttribute']('alt')),_0x1482fb['plugins']['has']('PictureEditing')&&(_0x3f1dd9['registerBlockAttribute']('sources'),_0x3f1dd9['descriptionFactory']['registerDescriptionCallback'](_0xc69b38=>{if('attribute'!=_0xc69b38['type'])return;const {data:_0x282cee}=_0xc69b38;return _0x282cee&&'sources'==_0x282cee['key']?{'type':'format','content':''}:void 0x0;})),_0x1482fb['plugins']['has']('ImageSizeAttributes')&&(_0x3f1dd9['registerBlockAttribute']('width'),_0x3f1dd9['registerBlockAttribute']('height'),_0x3f1dd9['descriptionFactory']['registerDescriptionCallback'](_0x363ae2=>{if('attribute'!=_0x363ae2['type'])return;const {data:_0x4e6ad1}=_0x363ae2;return!_0x4e6ad1||'width'!=_0x4e6ad1['key']&&'height'!=_0x4e6ad1['key']?void 0x0:{'type':'format','content':''};})),_0x3f1dd9['descriptionFactory']['registerDescriptionCallback'](_0x3e8771=>{if(!!_0x24332b['find'](({type:_0x42265c,subType:_0x3af232})=>_0x3e8771['type']==_0x42265c&&_0x3e8771['subType']==_0x3af232))return _0x3e8771['previous']?{}:void 0x0;}),_0x3f1dd9['descriptionFactory']['registerDescriptionCallback'](_0x157dd3=>{if('insertion'==_0x157dd3['type']||'deletion'==_0x157dd3['type']){const _0x2297cc=_0x157dd3['getContainedElement']();if(_0x2297cc&&_0x2297cc['is']('element','caption'))return{'type':'insertion'==_0x157dd3['type']?'addObject':'removeObject','element':_0x2297cc,'quantity':0x1};}}),_0x3f1dd9['descriptionFactory']['registerDescriptionCallback'](_0x6fa957=>'formatBlock'==_0x6fa957['type']&&'convertInlineImageToBlock'==_0x6fa957['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x6fa957['type']&&'convertBlockImageToInline'==_0x6fa957['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3f1dd9['descriptionFactory']['registerDescriptionCallback'](_0x570fd1=>{if('attribute'!=_0x570fd1['type'])return;const {data:_0x51eb67}=_0x570fd1;if(!_0x51eb67||'alt'!=_0x51eb67['key'])return;const _0x4fa374=_0x51eb67['newValue'];return _0x4fa374?{'type':'format','content':c(_0x2f3156,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4fa374+'\x22')}:{'type':'format','content':c(_0x2f3156,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30822d=this['editor'],_0x3cef8f=_0x30822d['locale'];_0x30822d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x91f342=>{if('formatBlock'!=_0x91f342['type']&&'formatInline'!=_0x91f342['type'])return;const {data:_0x1e85d0}=_0x91f342;if(_0x1e85d0){if('imageTextAlternative'==_0x1e85d0['commandName']){const _0x2e88e8=_0x1e85d0['commandParams'][0x0]['newValue'];return _0x2e88e8?{'type':'format','content':c(_0x3cef8f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e88e8+'\x22')}:{'type':'format','content':c(_0x3cef8f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1e85d0['commandName']){const _0x12f349=_0x1e85d0['commandParams'][0x0]['width'];return _0x12f349?{'type':'format','content':c(_0x3cef8f,'*Set\x20image\x20width:*\x20%0',_0x12f349)}:{'type':'format','content':c(_0x3cef8f,'*Reset\x20image\x20width*')};}}});}}class at extends _0x45133c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5b74d5=this['editor']['locale'],_0x525603=this['editor']['plugins']['get']('TrackChangesEditing');_0x525603['enableDefaultAttributesIntegration']('replaceImageSource'),_0x525603['registerBlockAttribute']('src'),_0x525603['descriptionFactory']['registerDescriptionCallback'](_0xfe2381=>{if('attribute'!=_0xfe2381['type'])return;const {data:_0x119355}=_0xfe2381;return _0x119355&&'src'==_0x119355['key']?_0x119355['newValue']&&_0x119355['oldValue']?{'type':'format','content':c(_0x5b74d5,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x591a88=this['editor']['plugins']['get']('TrackChangesEditing');_0x591a88['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x591a88['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x591a88['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x591a88['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a0461=this['editor'],_0x233fbf=_0x2a0461['locale'];_0x2a0461['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a77e3=>{if('formatBlock'!=_0x2a77e3['type']&&'formatInline'!=_0x2a77e3['type'])return;const {data:_0x582d18}=_0x2a77e3;if(!_0x582d18||'replaceImageSource'!=_0x582d18['commandName'])return;return{'type':'format','content':c(_0x233fbf,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x45133c{['afterInit'](){const _0x58fcf2=this['editor'];if(!_0x58fcf2['plugins']['has']('ImageStyleEditing'))return;const _0x239e2c=_0x58fcf2['plugins']['get']('TrackChangesEditing'),_0x54fa83=_0x58fcf2['plugins']['get']('ImageUtils'),_0x24794b={};_0x239e2c['enableCommand']('imageStyle',(_0xba5168,_0x25d349)=>{const _0x1537fe=_0x58fcf2['plugins']['get']('Users')['me'],_0x362db4=_0x58fcf2['commands']['get']('imageStyle');let _0x437179=_0x54fa83['getClosestSelectedImageElement'](_0x58fcf2['model']['document']['selection']),_0x5cf767=_0x58fcf2['model']['createRangeOn'](_0x437179),_0x246c93=_0x362db4['value'];if(_0x246c93==_0x25d349['value'])return;const _0x1dc939={'commandName':'imageStyle','commandParams':[_0x25d349],'formatGroupId':_0x2612d4()};_0x58fcf2['model']['change'](()=>{if(_0x239e2c['getSuggestions']()['filter'](_0x61e571=>_0x61e571['isInContent']&&_0x1537fe==_0x61e571['author']&&('formatBlock'==_0x61e571['type']||'formatInline'==_0x61e571['type'])&&('imageStylePreApply'==_0x61e571['subType']||'imageStylePostApply'==_0x61e571['subType'])&&_0x61e571['getFirstRange']()['isEqual'](_0x5cf767))['forEach'](_0x4e4c6f=>_0x239e2c['discardSuggestion'](_0x4e4c6f['head'])),_0x437179=_0x54fa83['getClosestSelectedImageElement'](_0x58fcf2['model']['document']['selection']),_0x5cf767=_0x58fcf2['model']['createRangeOn'](_0x437179),_0x362db4['refresh'](),_0x58fcf2['commands']['get']('imageTypeInline')['refresh'](),_0x58fcf2['commands']['get']('imageTypeBlock')['refresh'](),_0x246c93=_0x362db4['value'],_0x246c93!=_0x25d349['value'])return _0x54fa83['isInlineImage'](_0x437179)&&_0x362db4['shouldConvertImageType'](_0x25d349['value'],_0x437179)?(_0xba5168({..._0x25d349,'setImageSizes':!0x1}),_0x437179=_0x54fa83['getClosestSelectedImageElement'](_0x58fcf2['model']['document']['selection']),void _0x239e2c['markBlockFormat'](_0x437179,{..._0x1dc939,'commandReversedParams':[{'value':_0x246c93||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x54fa83['isBlockImage'](_0x437179)?_0x239e2c['markBlockFormat'](_0x437179,_0x1dc939,[],'imageStylePostApply'):_0x239e2c['markInlineFormat'](_0x5cf767,_0x1dc939,'imageStylePostApply'));});});for(const _0x1c839d of _0x58fcf2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x24794b[_0x1c839d['name']]=_0x1c839d['title']['toLowerCase']();_0x239e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x239e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x239e2c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x239e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xc7bd5e])=>{_0x54fa83['setImageNaturalSizeAttributes'](_0xc7bd5e['getContainedElement']());}),_0x239e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x572fcf,_0x2cd54b)=>{_0x239e2c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x572fcf,{'commandName':_0x2cd54b['commandName'],'commandParams':_0x2cd54b['commandReversedParams']});}),_0x239e2c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x563d78,_0x929f9){if(_0x2a7ee0(_0x563d78,_0x929f9))return[_0x563d78,_0x929f9];if(_0x2a7ee0(_0x929f9,_0x563d78))return[_0x929f9,_0x563d78];return null;});const _0x44648a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2a7ee0(_0x26b93f,_0x2a823b){const _0x387348=_0x44648a['findIndex'](({type:_0x109c01,subType:_0x1ab71d})=>_0x26b93f['type']==_0x109c01&&_0x26b93f['subType']==_0x1ab71d),_0x54dfb3=_0x44648a['findIndex'](({type:_0x2eaa6f,subType:_0x55964c})=>_0x2a823b['type']==_0x2eaa6f&&_0x2a823b['subType']==_0x55964c);if(_0x387348<0x0||_0x54dfb3<0x0)return!0x1;const _0x56d751=_0x26b93f['getFirstRange'](),_0x2f479f=_0x2a823b['getFirstRange']();if((0x0==_0x387348||0x1==_0x387348)&&0x2==_0x54dfb3&&_0x56d751['isIntersecting'](_0x2f479f))return!0x0;if(0x2==_0x387348&&0x3==_0x54dfb3){const _0x4ba8b4=_0x239e2c['_findSuggestions'](_0x56d751,'insertion')['filter'](({suggestion:_0x3e1aa1,meta:_0x48f824})=>_0x48f824['isOwn']&&'convertInlineImageToBlock'==_0x3e1aa1['subType']);if(_0x4ba8b4['length']>0x1&&_0x2f479f['end']['isEqual'](_0x56d751['start']))return!0x0;if(0x1==_0x4ba8b4['length']&&(_0x56d751['start']['isEqual'](_0x2f479f['end'])||_0x56d751['end']['isEqual'](_0x2f479f['start'])))return!0x0;}if(0x3==_0x387348&&0x3==_0x54dfb3&&_0x56d751['start']['isBefore'](_0x2f479f['start'])){const _0x480a11=_0x56d751['end']['nodeAfter'],_0x3b9310=_0x2f479f['start']['nodeBefore'];return _0x54fa83['isBlockImage'](_0x480a11)&&_0x480a11===_0x3b9310;}return!0x1;}_0x58fcf2['model']['document']['registerPostFixer'](()=>{let _0x246193=!0x1;const _0x55185a=Array['from'](_0x58fcf2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4e3468,data:_0x15fcd2}of _0x55185a){const {group:_0x471849,type:_0x12d987,subType:_0x3a0e71,id:_0x45b505}=_0x239e2c['_splitMarkerName'](_0x4e3468);if('suggestion'==_0x471849&&_0x239e2c['hasSuggestion'](_0x45b505)){if('formatBlock'==_0x12d987&&('imageStylePreApply'==_0x3a0e71||'imageStylePostApply'==_0x3a0e71)){const _0x22c4ef=_0x239e2c['getSuggestion'](_0x45b505);if(_0x15fcd2['newRange']){const _0x40edd4=_0x22c4ef['getFirstRange']()['getContainedElement']();if(_0x54fa83['isBlockImage'](_0x40edd4))continue;_0x239e2c['discardSuggestion'](_0x22c4ef),_0x246193=!0x0;}}if('insertion'==_0x12d987&&'imageCaption'==_0x3a0e71&&!_0x15fcd2['newRange']){const _0xad3cdf=_0x239e2c['getSuggestion'](_0x45b505);_0xad3cdf['next']&&_0xad3cdf['next']['isInContent']&&(_0x239e2c['discardSuggestion'](_0xad3cdf['next']),_0x246193=!0x0);}}}return _0x246193;}),this['_registerLegacyDescription'](_0x24794b);}['_registerLegacyDescription'](_0x420cc3){const _0x3049f6=this['editor'],_0x4221dc=_0x3049f6['locale'];_0x3049f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x429757=>{if('formatBlock'!=_0x429757['type']&&'formatInline'!=_0x429757['type'])return;const {data:_0x102fc4}=_0x429757;if(!_0x102fc4||'imageStyle'!=_0x102fc4['commandName'])return;const _0x41eb1f=_0x102fc4['commandParams'][0x0]['value'];return _0x597c7b('side'===_0x41eb1f?c(_0x4221dc,'FORMAT_SIDE_IMAGE'):_0x420cc3[_0x41eb1f]||_0x41eb1f);function _0x597c7b(_0x311909){return{'type':'format','content':c(_0x4221dc,'*Format:*\x20%0',_0x311909)};}});}}class ut extends _0x45133c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1e9458){super(_0x1e9458),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4e7431=this['editor'],_0x432399=_0x4e7431['commands']['get']('importWord'),_0xdfc769=_0x4e7431['commands']['get']('trackChanges');_0x432399&&(_0x432399['on']('execute',(_0x1627f5,[,_0x13cb6a])=>{this['_trackChangesValueDuringImport']=_0xdfc769['value'],_0x13cb6a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x432399,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x432399,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xdfc769['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4e7431['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1ea7d6,_0xaa5a70){const {suggestions:_0x2be117}=_0xaa5a70,_0x43288c=this['editor']['commands']['get']('trackChanges'),_0x7ab712=_0x43288c['value'];this['_trackChangesValueDuringImport']!==_0x7ab712&&(_0x43288c['execute'](),this['_trackChangesExecuted']=!0x0),_0x2be117&&_0x2be117['forEach'](({id:_0x1a5ced,type:_0xbb0a9,author:_0x166db1,created_at:_0xd389d5})=>{const _0xba6e46={'id':_0x1a5ced,'type':_0xbb0a9,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x166db1,'createdAt':_0xd389d5?new Date(_0xd389d5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xba6e46);});}}class ft extends _0x45133c{['afterInit'](){const _0x45725d=this['editor'],_0x312e18=_0x45725d['plugins']['get']('TrackChangesEditing');if(_0x45725d['plugins']['has']('IndentEditing')&&(_0x312e18['enableCommand']('indent'),_0x312e18['enableCommand']('outdent')),_0x45725d['plugins']['has']('IndentBlock')){for(const _0x16e993 of['indentBlock','outdentBlock'])_0x312e18['enableDefaultAttributesIntegration'](_0x16e993);}const _0x82dd4c=_0x45725d['locale'];_0x312e18['registerBlockAttribute']('blockIndent'),_0x312e18['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x82dd4c,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x278cd1=this['editor'],_0x5abc52=_0x278cd1['locale'],_0x28ff07=_0x278cd1['plugins']['get']('TrackChangesEditing');_0x28ff07['descriptionFactory']['registerDescriptionCallback'](_0x520739=>{if('formatBlock'!=_0x520739['type'])return;const {data:_0x60307b}=_0x520739;if(!_0x60307b)return;if('indentBlock'!=_0x60307b['commandName']&&'outdentBlock'!=_0x60307b['commandName'])return;const _0x48699d=_0x520739['getItems']()[0x0],_0x1d87b2=_0x28ff07['descriptionFactory']['getItemLabel'](_0x48699d);return'indentBlock'==_0x60307b['commandName']?{'type':'format','content':c(_0x5abc52,'*Indent:*\x20%0',_0x1d87b2)}:'outdentBlock'==_0x60307b['commandName']?{'type':'format','content':c(_0x5abc52,'*Outdent:*\x20%0',_0x1d87b2)}:void 0x0;});}}class ht extends _0x45133c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x45133c{['afterInit'](){const _0x296228=this['editor'];if(!_0x296228['plugins']['has']('LinkEditing'))return;const _0x4b5cd5=_0x296228['plugins']['get']('TrackChangesEditing'),_0x20c5fb=_0x296228['commands']['get']('link');_0x4b5cd5['enableDefaultAttributesIntegration']('link'),_0x4b5cd5['enableDefaultAttributesIntegration']('unlink'),_0x4b5cd5['registerInlineAttribute']('linkHref');for(const _0x4b755e of _0x20c5fb['manualDecorators'])_0x4b5cd5['registerInlineAttribute'](_0x4b755e['id']),_0x4b5cd5['descriptionFactory']['registerAttributeLabel'](_0x4b755e['id'],'link\x20('+_0x4b755e['label']['toLowerCase']()+')');_0x4b5cd5['descriptionFactory']['registerDescriptionCallback'](_0x4344ae=>{if('attribute'!=_0x4344ae['type'])return;const {data:_0x3e6f5f}=_0x4344ae;if(!_0x3e6f5f||'linkHref'!=_0x3e6f5f['key'])return;const _0x4d9cf9=_0x3e6f5f['newValue'],_0xc6fbc4=_0x296228['locale'];return{'type':'format','content':null==_0x4d9cf9?c(_0xc6fbc4,'*Remove\x20link*'):c(_0xc6fbc4,'*Set\x20link:*\x20%0','\x22'+_0x4d9cf9+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d6025=this['editor'],_0x2de82b=_0x2d6025['locale'];_0x2d6025['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3630c8=>{if('formatInline'!=_0x3630c8['type'])return;const {data:_0x5fed68}=_0x3630c8;if(_0x5fed68){if('link'==_0x5fed68['commandName']){const _0x3ca4ec=_0x5fed68['commandParams'][0x0];return{'type':'format','content':c(_0x2de82b,'*Set\x20link:*\x20%0','\x22'+_0x3ca4ec+'\x22')};}return'unlink'==_0x5fed68['commandName']?{'type':'format','content':c(_0x2de82b,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x45133c{['afterInit'](){const _0x5899ce=this['editor'],_0x5041f9=_0x5899ce['locale'];if(!_0x5899ce['plugins']['has']('LegacyListEditing'))return;const _0x56d1d9=_0x5899ce['plugins']['get']('TrackChangesEditing'),_0x293028=_0x5899ce['plugins']['has']('LegacyTodoListEditing');function _0x47f985(_0x1aa546){return()=>{const _0xc22b7d=_0x5899ce['model']['document']['selection'],_0x472e37=_0x5899ce['commands']['get'](_0x1aa546);if(_0x472e37['value'])return void _0x5899ce['execute']('paragraph',{});const _0x347c93=_0x1aa546['slice'](0x0,-0x4),_0x4f520a=function(_0x1d6e02,_0xcc7a7f,_0x4e1421){let _0x4d4c9a=Array['from'](_0x1d6e02)['filter'](_0xb813b5=>function(_0x1f2ccb,_0x5f3b51){return _0x5f3b51['checkChild'](_0x1f2ccb['parent'],'listItem')&&!_0x5f3b51['isObject'](_0x1f2ccb);}(_0xb813b5,_0x4e1421));_0x4d4c9a=_0x4d4c9a['filter'](_0x2c0d2a=>!_0x2c0d2a['is']('element','listItem')||_0x2c0d2a['getAttribute']('listType')!=_0xcc7a7f);const _0x1630bc=new Set();for(const _0x518fbd of _0x4d4c9a)_0x518fbd['is']('element','listItem')?_0x1630bc['add'](Le(_0x518fbd)):_0x1630bc['add'](_0x518fbd);return Array['from'](_0x1630bc);}(_0xc22b7d['getSelectedBlocks'](),_0x347c93,_0x5899ce['model']['schema']);_0x5899ce['model']['change'](()=>{for(const _0x2e0a86 of _0x4f520a)_0x56d1d9['markBlockFormat'](_0x2e0a86,{'commandName':_0x1aa546,'commandParams':[{'forceValue':!_0x472e37['value']}],'formatGroupId':'blockName'},Ee(_0x2e0a86));});};}function _0x42012d(_0x1a2120){return()=>{const _0x4893b8=function(_0x51c780){let _0x4740bb=Array['from'](_0x51c780);const _0x571151=_0x4740bb['findIndex'](_0x11245e=>'listItem'!=_0x11245e['name']);return _0x571151>-0x1&&(_0x4740bb=_0x4740bb['slice'](0x0,_0x571151)),_0x4740bb;}(_0x5899ce['model']['document']['selection']['getSelectedBlocks']()),_0x4d7346=_0x5899ce['model']['createRange'](_0x5899ce['model']['createPositionAt'](_0x4893b8[0x0],'before'),_0x5899ce['model']['createPositionAt'](_0x4893b8[_0x4893b8['length']-0x1],'end'));_0x5899ce['model']['change'](()=>{_0x56d1d9['markBlockFormat'](_0x4d7346,{'commandName':_0x1a2120,'commandParams':[],'formatGroupId':'listIndent'},function(_0x23352b){const _0xc235fc=new Set();for(const _0x3196bb of _0x23352b){let _0x5be1b7=_0x3196bb['nextSibling'];for(;_0x5be1b7&&_0x5be1b7['getAttribute']('listIndent')>_0x3196bb['getAttribute']('listIndent');)_0xc235fc['add'](_0x5be1b7),_0x5be1b7=_0x5be1b7['nextSibling'];}return Array['from'](_0xc235fc);}(_0x4893b8));});};}_0x56d1d9['enableCommand']('numberedList',_0x47f985('numberedList')),_0x56d1d9['enableCommand']('bulletedList',_0x47f985('bulletedList')),_0x293028&&_0x56d1d9['enableCommand']('todoList',_0x47f985('todoList')),_0x56d1d9['enableCommand']('indentList',_0x42012d('indentList')),_0x56d1d9['enableCommand']('outdentList',_0x42012d('outdentList')),_0x293028&&_0x56d1d9['enableCommand']('checkTodoList',()=>{const _0x4e6ad6=_0x5899ce['commands']['get']('checkTodoList'),_0xabcce=Array['from'](_0x4e6ad6['_selectedElements']);_0xabcce['filter'](_0x390816=>_0x390816['getAttribute']('todoListChecked')!=_0x4e6ad6['value']),_0x5899ce['model']['change'](()=>{for(const _0x5636d4 of _0xabcce)_0x56d1d9['markBlockFormat'](_0x5636d4,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4e6ad6['value']}]});});}),_0x56d1d9['descriptionFactory']['registerElementLabel']('listItem',_0x202e6d=>c(_0x5041f9,'ELEMENT_LIST_ITEM',_0x202e6d)),_0x56d1d9['descriptionFactory']['registerDescriptionCallback'](_0x4fb6e2=>{if('formatBlock'!=_0x4fb6e2['type']&&'formatInline'!=_0x4fb6e2['type'])return;const {data:_0x68351a}=_0x4fb6e2;if(_0x68351a){if('numberedList'==_0x68351a['commandName']||'bulletedList'==_0x68351a['commandName']||'todoList'==_0x68351a['commandName'])switch(_0x68351a['commandName']['replace']('List','')){case'bulleted':return _0x5c3d8e(c(_0x5041f9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c3d8e(c(_0x5041f9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c3d8e(c(_0x5041f9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x68351a['commandName'])return{'type':'format','content':c(_0x5041f9,'*Indent:*\x20%0',c(_0x5041f9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x68351a['commandName'])return{'type':'format','content':c(_0x5041f9,'*Outdent:*\x20%0',c(_0x5041f9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x68351a['commandName'])return _0x68351a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5041f9,'*Check\x20item*')}:{'type':'format','content':c(_0x5041f9,'*Uncheck\x20item*')};}function _0x5c3d8e(_0x5a3f52){return{'type':'format','content':c(_0x5041f9,'*Change\x20to:*\x20%0',_0x5a3f52)};}});}}function Le(_0x4201c5){const _0x111b80=_0x4201c5['getAttribute']('listIndent');if(0x0==_0x111b80)return _0x4201c5;let _0x375406=_0x4201c5;for(;_0x4201c5['previousSibling']&&_0x4201c5['previousSibling']['is']('element','listItem');){const _0x52587e=_0x4201c5['previousSibling']['getAttribute']('listIndent');if(_0x52587e==_0x111b80)_0x375406=_0x4201c5['previousSibling'];else{if(_0x52587e<_0x111b80)break;}_0x4201c5=_0x4201c5['previousSibling'];}return _0x375406;}function Ee(_0x28b07e){const _0x5541f7=[];if(_0x28b07e['is']('element','listItem')&&_0x28b07e['getAttribute']('listIndent')>0x0){let _0x56cdb5=_0x28b07e['nextSibling'];for(;_0x56cdb5&&'listItem'==_0x56cdb5['name']&&_0x56cdb5['getAttribute']('listIndent')==_0x28b07e['getAttribute']('listIndent');)_0x5541f7['push'](_0x56cdb5),_0x56cdb5=_0x56cdb5['nextSibling'];}return _0x5541f7;}class Q extends _0x45133c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5aa5aa=this['editor']['config']['get']('list.properties'),_0x2914bd=this['editor']['plugins']['get']('TrackChangesEditing');_0x5aa5aa['styles']&&_0x2914bd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5aa5aa['reversed']&&_0x2914bd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5aa5aa['startIndex']&&_0x2914bd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2914bd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ab1ec,_0x86ff17={}){const _0x556691=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42b1c6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x556691['markMultiRangeBlockFormat'](_0x42b1c6,{'commandName':'listStyle','commandParams':[{'type':_0x86ff17['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x23baa3,_0x3f53d9={}){const _0x5e70c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x45bc6e=this['_getSuggestionBlocks'](_0x31688d=>_0x31688d['is']('element','listItem')&&'numbered'===_0x31688d['getAttribute']('listType'));if(_0x45bc6e['length']<0x1)return;const _0xd93936=_0x45bc6e['map'](_0x4bff54=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4bff54,'before'),this['editor']['model']['createPositionAt'](_0x4bff54,0x0)));this['editor']['model']['change'](()=>{_0x5e70c3['markMultiRangeBlockFormat'](_0xd93936,{'commandName':'listReversed','commandParams':[{'reversed':_0x3f53d9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xd31559,_0x2c6d02={}){const _0x4ae69c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20ee1c=this['_getSuggestionBlocks'](_0x4b4164=>_0x4b4164['is']('element','listItem')&&'numbered'===_0x4b4164['getAttribute']('listType'));if(_0x20ee1c['length']<0x1)return;const _0x12e8b8=_0x20ee1c['map'](_0x4dbc31=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4dbc31,'before'),this['editor']['model']['createPositionAt'](_0x4dbc31,0x0)));this['editor']['model']['change'](()=>{_0x4ae69c['markMultiRangeBlockFormat'](_0x12e8b8,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c6d02['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x84ce3c){if('formatBlock'!=_0x84ce3c['type']&&'formatInline'!=_0x84ce3c['type'])return;const _0x4710b9=this['editor']['locale'],{data:_0x3de98f}=_0x84ce3c;if(!_0x3de98f)return;let _0x11eff5,_0x45906d;switch(_0x3de98f['commandName']){case'listStyle':_0x11eff5='*Change\x20to:*\x20%0',_0x45906d={'type':'format','content':c(_0x4710b9,_0x11eff5,c(_0x4710b9,this['_getTranslationKeyForListStyle'](_0x3de98f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x11eff5=_0x3de98f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45906d={'type':'format','content':c(_0x4710b9,_0x11eff5)};break;case'listStart':_0x11eff5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45906d={'type':'format','content':c(_0x4710b9,_0x11eff5,_0x3de98f['commandParams'][0x0]['startIndex'])};}return _0x45906d;}['_getSuggestionBlocksForListStyle'](){const _0x54e577=this['editor']['plugins']['get']('LegacyListUtils');let _0x32a7b9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x32a7b9[0x0]?.['is']('element','listItem')&&_0x32a7b9['unshift'](..._0x54e577['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x32a7b9[_0x32a7b9['length']-0x1]?.['is']('element','listItem')&&_0x32a7b9['push'](..._0x54e577['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x32a7b9=[...new Set(_0x32a7b9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x32a7b9=_0x32a7b9['filter'](_0x479bda=>_0x479bda['is']('element','listItem'))),_0x32a7b9;}['_getSuggestionBlocks'](_0xc4a80c){const _0x54c6ba=this['editor']['plugins']['get']('LegacyListUtils');let _0x38d6d8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc4a80c)['map'](_0x57cd0b=>{const _0x42778f=this['editor']['model']['createPositionAt'](_0x57cd0b,0x0);return[..._0x54c6ba['getSiblingNodes'](_0x42778f,'backward'),..._0x54c6ba['getSiblingNodes'](_0x42778f,'forward')];})['flat']();return _0x38d6d8=[...new Set(_0x38d6d8)],_0x38d6d8;}['_getTranslationKeyForListStyle'](_0xb91bc6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xb91bc6)||'default')['toUpperCase']()+'_LIST_'+_0xb91bc6['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x45133c{['afterInit'](){const _0x49162d=this['editor'];if(!_0x49162d['plugins']['has']('MediaEmbedEditing'))return;const _0x5275df=_0x49162d['plugins']['get']('TrackChangesEditing'),_0x4554d1=_0x49162d['locale'];_0x5275df['enableCommand']('mediaEmbed'),_0x5275df['descriptionFactory']['registerElementLabel']('media',_0x223698=>c(_0x4554d1,'ELEMENT_MEDIA',_0x223698)),_0x49162d['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1364db,{writer:_0x380ca6,options:_0x346b04})=>{if(_0x346b04['showSuggestionHighlights'])return _0x380ca6['createEmptyElement']('div');},'converterPriority':'high'}),_0x49162d['data']['downcastDispatcher']['on']('attribute:url:media',(_0x228294,_0x4f3a91,_0x21a3b2)=>{_0x21a3b2['options']['showSuggestionHighlights']&&_0x228294['stop']();},{'priority':'high'});}}class pt extends _0x45133c{['afterInit'](){const _0x43615f=this['editor'];_0x43615f['plugins']['has']('MentionEditing')&&_0x43615f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x45133c{['afterInit'](){const _0x4d9a72=this['editor'];if(!_0x4d9a72['plugins']['has']('MergeFieldsEditing'))return;const _0x198dc7=_0x4d9a72['plugins']['get']('TrackChangesEditing'),_0x4e0dbc=_0x4d9a72['locale'];_0x198dc7['enableCommand']('insertMergeField'),_0x198dc7['enableCommand']('insertMergeFieldBlock'),_0x198dc7['enableCommand']('insertMergeFieldImage'),_0x198dc7['descriptionFactory']['registerElementLabel']('mergeField',_0x162631=>c(_0x4e0dbc,'ELEMENT_MERGE_FIELD',_0x162631)),_0x198dc7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x207739=>c(_0x4e0dbc,'ELEMENT_MERGE_FIELD',_0x207739)),_0x198dc7['descriptionFactory']['registerDescriptionCallback'](_0x410fb9=>{if('insertion'!=_0x410fb9['type']&&'deletion'!=_0x410fb9['type'])return;const _0x1012fd=_0x410fb9['getContainedElement']();if(null==_0x1012fd)return;const _0x4419aa=_0x4d9a72['plugins']['get']('MergeFieldsEditing');let _0x39ca8e;switch(_0x4419aa['getMergeFieldType'](_0x1012fd)){case null:return;case'image':{const _0x55a9fe=_0x4419aa['unwrapAffixes'](_0x1012fd['getAttribute']('src'));_0x39ca8e=_0x4419aa['getLabel'](_0x55a9fe)||_0x55a9fe;break;}default:{const _0x1fd2e1=_0x1012fd['getAttribute']('id');_0x39ca8e=_0x4419aa['getLabel'](_0x1fd2e1)||_0x1fd2e1;break;}}return'insertion'==_0x410fb9['type']?{'type':'insertion','content':c(_0x4e0dbc,'*Insert:*\x20%0','\x22'+_0x39ca8e+'\x22\x20'+c(_0x4e0dbc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x4e0dbc,'*Remove:*\x20%0','\x22'+_0x39ca8e+'\x22\x20'+c(_0x4e0dbc,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x45133c{['afterInit'](){const _0x5a4788=this['editor'],_0x566883=_0x5a4788['plugins']['get']('TrackChangesEditing');_0x5a4788['plugins']['has']('MultiLevelList')&&(_0x566883['enableDefaultAttributesIntegration']('multiLevelList'),_0x566883['registerBlockAttribute']('listMarkerStyle'),_0x566883['descriptionFactory']['registerDescriptionCallback'](_0x1db498=>this['handleDescriptions'](_0x1db498)));}['handleDescriptions'](_0x4c7efb){const _0x5723c1=this['editor']['locale'],{data:_0x2eecf6}=_0x4c7efb,_0x47579f={'type':'format','content':''};if(_0x2eecf6&&'listMarkerStyle'==_0x2eecf6['key']){if(!_0x2eecf6['oldValue'])return{'type':'format','content':c(_0x5723c1,'*Set\x20format:*\x20%0',c(_0x5723c1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2eecf6['newValue']+')'};if(!_0x2eecf6['newValue']){let _0x507f98=_0x4c7efb['head'];for(;_0x507f98;){if(_0x507f98['data']&&'listType'==_0x507f98['data']['key']&&_0x507f98['data']['newValue'])return _0x47579f;_0x507f98=_0x507f98['next'];}return{'type':'format','content':c(_0x5723c1,'*Remove\x20format:*\x20%0',c(_0x5723c1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2eecf6['oldValue']+')'};}}}}class bt extends _0x45133c{['afterInit'](){const _0x3099be=this['editor'];if(!_0x3099be['plugins']['has']('PageBreakEditing'))return;_0x3099be['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x221397=_0x3099be['plugins']['get']('TrackChangesEditing'),_0x38ddbd=_0x3099be['locale'];_0x221397['descriptionFactory']['registerElementLabel']('pageBreak',_0x32e186=>c(_0x38ddbd,'ELEMENT_PAGE_BREAK',_0x32e186));}}class yt extends _0x45133c{['afterInit'](){const _0x3697da=this['editor'];if(!_0x3697da['plugins']['has']('Paragraph'))return;const _0x1415a1=_0x3697da['locale'],_0x511b6c=_0x3697da['plugins']['get']('TrackChangesEditing');_0x511b6c['descriptionFactory']['registerElementLabel']('paragraph',_0x25839c=>c(_0x1415a1,'ELEMENT_PARAGRAPH',_0x25839c)),_0x511b6c['enableDefaultAttributesIntegration']('paragraph'),_0x511b6c['enableCommand']('insertParagraph'),_0x3697da['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3697da),{'priority':'highest'}),_0x3697da['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x38b3ad,_0x398f95,_0x341641)=>{_0x341641['options']['showSuggestionHighlights']&&nr(_0x3697da,{'showActiveMarker':!0x1})(_0x38b3ad,_0x398f95,_0x341641);},{'priority':'highest'});const _0x2e1c98=_0x511b6c['descriptionFactory'];_0x2e1c98['registerDescriptionCallback'](_0x30f3ef=>{if('insertion'!==_0x30f3ef['type'])return;const {start:_0x39b84f,end:_0x7e9086}=_0x30f3ef['getFirstRange']();if(!_0x39b84f['isTouching'](_0x7e9086)||!_0x39b84f['nodeAfter'])return;const _0x3b3215=_0x3697da['model']['schema'],_0x391ed9=_0x39b84f['nodeAfter'];return _0x3b3215['isBlock'](_0x391ed9)&&!_0x3b3215['isLimit'](_0x391ed9)&&_0x3b3215['checkChild'](_0x391ed9,'$text')?{'type':'insertion','content':c(_0x1415a1,'*Insert:*\x20%0',_0x2e1c98['getItemLabel'](_0x391ed9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d5dbd=this['editor'],_0x260052=_0x2d5dbd['locale'];_0x2d5dbd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x340fbb=>{if('formatBlock'!=_0x340fbb['type'])return;const {data:_0x3956b8}=_0x340fbb;return _0x3956b8&&'paragraph'==_0x3956b8['commandName']?{'type':'format','content':c(_0x260052,'*Change\x20to:*\x20%0',c(_0x260052,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x980477,{showActiveMarker:_0x44de5e=!0x0}={}){return(_0xeaf0f7,_0x993cf5,_0x3ac37c)=>{const _0x1dfa58=_0x980477['plugins']['get']('TrackChangesEditing'),_0x4b6c0d=_0x993cf5['markerRange']['start'],_0x42452e=_0x993cf5['markerRange']['end'],_0xb338ff=_0x980477['model']['schema'];if(!_0x4b6c0d['isTouching'](_0x42452e)||!_0x4b6c0d['nodeAfter'])return;const _0x3317e0=_0x4b6c0d['nodeAfter'];if(_0xb338ff['isBlock'](_0x3317e0)&&!_0xb338ff['isLimit'](_0x3317e0)&&_0xb338ff['checkChild'](_0x3317e0,'$text')){if(!_0x3ac37c['consumable']['consume'](_0x993cf5['markerRange'],_0xeaf0f7['name']))return;const {authorId:_0x2902ce}=_0x1dfa58['_splitMarkerName'](_0x993cf5['markerName']),_0x27ae9b=_0x3ac37c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x2902ce}),_0x1b6d6d=_0x3ac37c['mapper']['toViewPosition'](_0x42452e);_0x44de5e&&_0x1dfa58['activeMarkers']['includes'](_0x993cf5['markerName'])&&_0x3ac37c['writer']['addClass']('ck-suggestion-marker--active',_0x27ae9b),_0x3ac37c['writer']['insert'](_0x1b6d6d,_0x27ae9b),_0x3ac37c['mapper']['bindElementToMarker'](_0x27ae9b,_0x993cf5['markerName']);}};}class jt extends _0x45133c{['afterInit'](){const _0x3337ef=this['editor'];_0x3337ef['commands']['get']('replaceSource')&&_0x3337ef['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x45133c{['afterInit'](){const _0x5830a0=this['editor'];if(!_0x5830a0['plugins']['has']('RemoveFormatEditing'))return;_0x5830a0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2488cc=this['editor'];_0x2488cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x151693=>{if('formatBlock'!=_0x151693['type']&&'formatInline'!=_0x151693['type'])return;const {data:_0x2980b0}=_0x151693;return _0x2980b0&&'removeFormat'==_0x2980b0['commandName']?{'type':'format','content':c(_0x2488cc['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x45133c{['afterInit'](){const _0x46c4a4=this['editor'];if(!_0x46c4a4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x45a718=_0x46c4a4['plugins']['get']('TrackChangesEditing');_0x45a718['enableCommand']('goToPreviousRestrictedEditingException'),_0x45a718['enableCommand']('goToNextRestrictedEditingException');const _0x21b06f=_0x46c4a4['plugins']['get']('RestrictedEditingModeEditing');_0x21b06f['enableCommand']('trackChanges'),_0x21b06f['enableCommand']('acceptSuggestion'),_0x21b06f['enableCommand']('discardSuggestion'),_0x21b06f['enableCommand']('acceptAllSuggestions'),_0x21b06f['enableCommand']('discardAllSuggestions'),_0x21b06f['enableCommand']('acceptSelectedSuggestions'),_0x21b06f['enableCommand']('discardSelectedSuggestions');}}class It extends _0x45133c{static get['requires'](){return[_0xe8ac85];}['init'](){const _0x7d2c71=this['editor'],_0x402c0a=_0x7d2c71['plugins']['get']('TrackChangesEditing');_0x402c0a['enableCommand']('shiftEnter'),_0x7d2c71['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x7d2c71),{'priority':'high'}),_0x7d2c71['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x7d2c71),{'priority':'high'}),_0x7d2c71['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x443a23,_0xd9a6bf,_0x5077df)=>{_0x5077df['options']['showSuggestionHighlights']&&je(_0x7d2c71,{'showActiveMarker':!0x1})(_0x443a23,_0xd9a6bf,_0x5077df);}),_0x402c0a['descriptionFactory']['registerElementLabel']('softBreak',_0x25bc97=>c(_0x7d2c71['locale'],'ELEMENT_LINE_BREAK',_0x25bc97));}}function je(_0x2e3090,{showActiveMarker:_0x9e5650=!0x0}={}){return(_0x21b3ce,_0x3db30a,_0x3253eb)=>{const _0x2de162=_0x2e3090['plugins']['get']('TrackChangesEditing');if(!_0x3253eb['consumable']['test'](_0x3db30a['markerRange'],_0x21b3ce['name']))return;const _0x14e00d=_0x2e3090['model'];for(const _0x5a457b of _0x3db30a['markerRange']['getItems']()){if(!_0x5a457b['is']('element','softBreak'))continue;const _0x4a7966='deletion'==_0x3db30a['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5a6c32}=_0x2de162['_splitMarkerName'](_0x3db30a['markerName']),_0x1b30ff=_0x3253eb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a7966,'data-author-id':_0x5a6c32}),_0x337ca6=_0x3253eb['mapper']['toViewPosition'](_0x14e00d['createPositionBefore'](_0x5a457b));_0x9e5650&&_0x2de162['activeMarkers']['includes'](_0x3db30a['markerName'])&&_0x3253eb['writer']['addClass']('ck-suggestion-marker--active',_0x1b30ff),_0x3253eb['writer']['insert'](_0x337ca6,_0x1b30ff),_0x3253eb['mapper']['bindElementToMarker'](_0x1b30ff,_0x3db30a['markerName']);}};}class _t extends _0x45133c{['afterInit'](){const _0x3f74af=this['editor'],_0x8257f3=_0x3f74af['model'],_0x777ac6=_0x3f74af['locale'];if(!_0x3f74af['plugins']['has']('StandardEditingModeEditing'))return;const _0xbc6e1d=_0x3f74af['plugins']['get']('TrackChangesEditing'),_0x1353d3='restrictedEditingException',_0x10471d=_0x3f74af['commands']['get'](_0x1353d3);_0xbc6e1d['enableCommand'](_0x1353d3,(_0x5267b3,_0x4eb8ca={})=>{const _0x4cdf11=_0x8257f3['document']['selection'];if(_0x4cdf11['isCollapsed'])return void _0x5267b3(_0x4eb8ca);const _0x4ec73f=void 0x0!==_0x4eb8ca['forceValue']?_0x4eb8ca['forceValue']:!_0x10471d['value'];_0x8257f3['change'](()=>{const _0x3e28e7=Array['from'](_0x4cdf11['getRanges']());for(const _0x3cf126 of _0x3e28e7){const _0x148113=_0x4ec73f?[_0x3cf126]:io(_0x1353d3,_0x3cf126,_0x8257f3);for(const _0x2f410e of _0x148113)_0xbc6e1d['markInlineFormat'](_0x2f410e,{'commandName':_0x1353d3,'commandParams':[{'forceValue':_0x4ec73f}]});}});}),_0xbc6e1d['descriptionFactory']['registerDescriptionCallback'](_0x3d4dfb=>{if('formatBlock'!=_0x3d4dfb['type']&&'formatInline'!=_0x3d4dfb['type'])return;const {data:_0xcf009c}=_0x3d4dfb;return _0xcf009c&&_0xcf009c['commandName']==_0x1353d3?_0xcf009c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x777ac6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x777ac6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x45133c{['afterInit'](){const _0x3bbce5=this['editor'];if(!_0x3bbce5['plugins']['has']('Style')||!_0x3bbce5['plugins']['has']('DataSchema'))return;const _0x5e0a16=_0x3bbce5['plugins']['get']('TrackChangesEditing'),_0x16483f=_0x3bbce5['locale'],_0x512871=_0x3bbce5['config']['get']('style')||{},_0xba86d=_0x3bbce5['plugins']['get']('GeneralHtmlSupport'),_0xb2b643=_0x3bbce5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3bbce5['plugins']['get']('DataSchema'),_0x512871['definitions']);_0x5e0a16['enableDefaultAttributesIntegration']('style');const _0x21f231=new Set();for(const _0x5e9c6f of _0xb2b643['block']){const _0x5c55ca=_0xba86d['getGhsAttributeNameForElement'](_0x5e9c6f['element']);_0x21f231['add'](_0x5c55ca);}const _0x30acfe=new Set();for(const _0x13a900 of _0xb2b643['inline']){const _0x2baee5=_0xba86d['getGhsAttributeNameForElement'](_0x13a900['element']);_0x30acfe['add'](_0x2baee5);for(const _0x361592 of _0x13a900['ghsAttributes'])_0x30acfe['add'](_0x361592);}for(const _0x53cf8f of _0x21f231)_0x5e0a16['registerBlockAttribute'](_0x53cf8f),_0x5e0a16['descriptionFactory']['registerAttributeLabel'](_0x53cf8f,c(_0x16483f,'FORMAT_STYLE'));for(const _0x428904 of _0x30acfe)_0x5e0a16['registerInlineAttribute'](_0x428904),_0x5e0a16['descriptionFactory']['registerAttributeLabel'](_0x428904,c(_0x16483f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x107313=this['editor'],_0x280f9f=_0x107313['locale'];_0x107313['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15ab21=>{if('formatBlock'!=_0x15ab21['type']&&'formatInline'!=_0x15ab21['type'])return;const {data:_0xe6261c}=_0x15ab21;return _0xe6261c&&'style'===_0xe6261c['commandName']?_0xe6261c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x280f9f,'*Set\x20format:*\x20%0',_0xe6261c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x280f9f,'*Remove\x20format:*\x20%0',_0xe6261c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x45133c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xccef7b){super(_0xccef7b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2f1ba8=this['editor'],_0x20b8cc=_0x2f1ba8['model']['document']['selection'];if(!_0x2f1ba8['plugins']['has']('TableEditing'))return;const _0x850bb8=_0x2f1ba8['locale'],_0x235ccc=_0x2f1ba8['plugins']['get']('TrackChangesEditing'),_0x5a692e=_0x2f1ba8['plugins']['get']('TableUtils');_0x235ccc['descriptionFactory']['registerElementLabel']('table',_0x4de74f=>c(_0x850bb8,'ELEMENT_TABLE',_0x4de74f)),this['_setupColumnsRowsFixing'](),_0x235ccc['enableCommand']('insertTable'),_0x235ccc['enableCommand']('selectTableRow'),_0x235ccc['enableCommand']('selectTableColumn');for(const _0xd5f2c0 of['insertTableRowAbove','insertTableRowBelow']){const _0x55551f=_0x2f1ba8['commands']['get'](_0xd5f2c0);_0x235ccc['enableCommand'](_0xd5f2c0,_0xcac60d=>{_0x2f1ba8['model']['change'](_0x528f56=>{_0xcac60d();const _0x348b97='above'===_0x55551f['order'],_0x1dbb0f=_0x5a692e['getSelectionAffectedTableCells'](_0x20b8cc),_0xa6df30=_0x5a692e['getRowIndexes'](_0x1dbb0f),_0x2197e0=_0x348b97?_0xa6df30['first']-0x1:_0xa6df30['last']+0x1,_0x56ddc1=_0x1dbb0f[0x0]['findAncestor']('table'),_0x35bc35=_0x5a692e['createTableWalker'](_0x56ddc1,{'startRow':_0x2197e0,'endRow':_0x2197e0}),_0x493598=Array['from'](_0x35bc35)['map'](_0x3debc2=>_0x528f56['createRangeOn'](_0x3debc2['cell']));_0x235ccc['markMultiRangeInsertion'](_0x493598,'tableRow');});});}for(const _0x438c35 of['insertTableColumnLeft','insertTableColumnRight']){const _0x199861=_0x2f1ba8['commands']['get'](_0x438c35);_0x235ccc['enableCommand'](_0x438c35,_0x7697c5=>{_0x2f1ba8['model']['change'](_0x46fdff=>{_0x7697c5();const _0x444024='left'===_0x199861['order'],_0x120884=_0x5a692e['getSelectionAffectedTableCells'](_0x20b8cc),_0x3905de=_0x5a692e['getColumnIndexes'](_0x120884),_0x4d7bb1=_0x444024?_0x3905de['first']-0x1:_0x3905de['last']+0x1,_0x5db983=_0x120884[0x0]['findAncestor']('table'),_0x468e7e=_0x5a692e['createTableWalker'](_0x5db983,{'startRow':0x0,'column':_0x4d7bb1,'includeAllSlots':!0x1}),_0x24f7df=Array['from'](_0x468e7e)['map'](_0x3a5601=>_0x46fdff['createRangeOn'](_0x3a5601['cell']));_0x235ccc['markMultiRangeInsertion'](_0x24f7df,'tableColumn');});});}for(const _0x36fe09 of['removeTableRow','removeTableColumn']){const _0x5ae46f=_0x36fe09['substr'](0xb),_0x1fb7ae=_0x5ae46f['toLowerCase'](),_0xd1ee6c=_0x1fb7ae['substr'](0x0,0x3)+'span',_0x420420='table'+_0x5ae46f,_0x362eba='min'+_0x5ae46f,_0x5647b8='max'+_0x5ae46f;_0x235ccc['enableCommand'](_0x36fe09,()=>{_0x2f1ba8['model']['change'](_0x212514=>{const _0x675f23=_0x5a692e['getSelectionAffectedTableCells'](_0x20b8cc),_0x30fae6=_0x675f23[0x0]['findAncestor']('table');let _0xcfba57;if('removeTableRow'==_0x36fe09){const _0x925197=_0x5a692e['getRowIndexes'](_0x675f23);_0xcfba57={'startRow':_0x925197['first'],'endRow':_0x925197['last'],'includeAllSlots':!0x0};}else{const _0x3a6a98=_0x5a692e['getColumnIndexes'](_0x675f23);_0xcfba57={'startColumn':_0x3a6a98['first'],'endColumn':_0x3a6a98['last'],'includeAllSlots':!0x0};}const _0x513cf5=_0x5a692e['createTableWalker'](_0x30fae6,_0xcfba57),_0x398595=Array['from'](_0x513cf5)['map'](({cell:_0x31c0b1})=>_0x31c0b1),_0x37ce4c=Ne(_0x398595['filter'](_0x11aabe=>_0x11aabe['hasAttribute'](_0xd1ee6c))),_0x267b91=Ne(_0x398595['filter'](_0x2fbc02=>!_0x2fbc02['hasAttribute'](_0xd1ee6c)))['map'](_0x540d95=>_0x212514['createRangeOn'](_0x540d95)),_0x2ee8f1=_0x235ccc['markMultiRangeDeletion'](_0x267b91,_0x420420);if(_0x2ee8f1&&('tableRow'==_0x2ee8f1['subType']||'tableColumn'==_0x2ee8f1['subType'])){const _0x15048a=this['_getSuggestionCoords'](_0x2ee8f1);for(const _0x3ed1f9 of _0x37ce4c){const _0xeb5e9e=_0x212514['createRangeOn'](_0x3ed1f9),_0xed29cb=_0x5a692e['getCellLocation'](_0x3ed1f9),_0x3f0d59=_0x3ed1f9['getAttribute'](_0xd1ee6c)-0x1,_0x4e654a=_0x15048a[_0x362eba],_0x13ee5b=_0x15048a[_0x5647b8];_0x4e654a<=_0xed29cb[_0x1fb7ae]&&_0xed29cb[_0x1fb7ae]+_0x3f0d59<=_0x13ee5b&&_0x2ee8f1['addRange'](_0xeb5e9e);}}});});}function _0x1fbefd(_0x195966){const _0x1900af=Array['from'](_0x20b8cc['getRanges']())['map'](_0x184895=>_0x51fe0f['fromRange'](_0x184895));_0x2f1ba8['model']['change'](_0x372a2d=>{const _0x2c5736=_0x372a2d['batch'];_0x195966=_0x195966['filter'](_0x1539d3=>'$graveyard'!=_0x1539d3['root']['rootName']),_0x372a2d['setSelection'](_0x195966),_0x2f1ba8['commands']['get']('removeTableRow')['refresh'](),_0x2f1ba8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2f1ba8['model']['enqueueChange'](()=>{_0x2f1ba8['model']['enqueueChange'](_0x2c5736,_0x3ba967=>{const _0x481239=_0x1900af['filter'](_0x31a363=>'$graveyard'!=_0x31a363['root']['rootName']);_0x481239['length']>0x0&&_0x3ba967['setSelection'](_0x481239);for(const _0x29a544 of _0x1900af)_0x29a544['detach']();});});});}function _0x290d22(_0x1b7dc4){_0x2f1ba8['model']['change'](_0x275223=>{const _0x3a56c5=Array['from'](_0x20b8cc['getRanges']())['map'](_0x2bef62=>_0x51fe0f['fromRange'](_0x2bef62)),_0x14f9bd=[];for(const _0x1bc395 of _0x1b7dc4)for(const _0x2457b8 of _0x1bc395['getItems']({'shallow':!0x0}))_0x14f9bd['push'](_0x2457b8);for(const _0x452007 of _0x14f9bd)'$graveyard'!=_0x452007['root']['rootName']&&(_0x275223['setSelection'](_0x275223['createPositionAt'](_0x452007,0x0)),_0x2f1ba8['commands']['get']('removeTableColumn')['refresh'](),_0x2f1ba8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xa7dd10=_0x3a56c5['filter'](_0xf11b86=>'$graveyard'!=_0xf11b86['root']['rootName']);_0xa7dd10['length']>0x0&&_0x275223['setSelection'](_0xa7dd10);for(const _0x35a435 of _0x3a56c5)_0x35a435['detach']();});}function _0x3b81cf(_0x46cf82,_0x32f38d){return _0x32f38d['every'](_0x578d32=>_0x46cf82['some'](_0x24298b=>_0x24298b['end']['isEqual'](_0x578d32['start'])||_0x578d32['end']['isEqual'](_0x24298b['start'])));}function _0x14b947(_0x2a9bb8,_0x5c478a){return!_0x2a9bb8['some'](_0x13ca07=>_0x5c478a['some'](_0x216782=>_0x13ca07['isIntersecting'](_0x216782)))&&_0x2a9bb8['some'](_0x4ba57b=>_0x5c478a['some'](_0x54ea84=>_0x4ba57b['end']['isTouching'](_0x54ea84['start'])));}_0x2f1ba8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x103f1c,_0x27ca4b,_0x3064e8)=>{if(!_0x3064e8['options']['showSuggestionHighlights'])return;const _0x5e75f8=_0x27ca4b['item'];if(!_0x5e75f8)return;const _0x529a8a=_0x3064e8['mapper']['toViewElement'](_0x5e75f8);function _0xcdc426(_0x4202b3){return Array['isArray'](_0x4202b3)?_0x4202b3:[_0x4202b3];}_0x529a8a&&'tableCell'===_0x5e75f8['name']&&_0x5451a9(_0x529a8a,_0x3064e8['writer'],(_0xfc96f0,_0x2910d1,_0x585a5e)=>_0x585a5e['addClass'](_0xcdc426(_0x2910d1['classes']),_0xfc96f0),(_0x22db06,_0x12994a,_0x4c3af4)=>_0x4c3af4['removeClass'](_0xcdc426(_0x12994a['classes']),_0x22db06));},{'priority':'highest'}),_0x235ccc['descriptionFactory']['registerDescriptionCallback'](_0x21748f=>{if('insertion'!=_0x21748f['type']&&'deletion'!=_0x21748f['type'])return;const _0x43dbe1=_0x21748f['getContainedElement']();if(null!=_0x43dbe1&&_0x43dbe1['is']('element','table')){if('insertion'==_0x21748f['type']){const _0x37e89=_0x21748f['getItems']()['filter'](_0x1853f1=>_0x1853f1['is']('$textProxy'))['map'](_0x27b092=>_0x27b092['data']);if(_0x37e89['length'])return{'type':'insertion','content':c(_0x850bb8,'*Insert:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37e89['join']('\x20')+'\x22'))};}if('deletion'==_0x21748f['type']){const _0x1dda95=_0x21748f['getItems']()['filter'](_0x14ec3c=>_0x14ec3c['is']('$textProxy'))['map'](_0x123745=>_0x123745['data']);if(_0x1dda95['length'])return{'type':'deletion','content':c(_0x850bb8,'*Remove:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1dda95['join']('\x20')+'\x22'))};}}}),_0x235ccc['descriptionFactory']['registerDescriptionCallback'](_0x411c57=>{if('tableRow'==_0x411c57['subType']){const _0x12ca83=_0x411c57['getItems']()['filter'](_0x1ad0be=>_0x1ad0be['is']('$textProxy'))['map'](_0x8c5e5f=>_0x8c5e5f['data']),_0x6f874b=this['_getSuggestionCoords'](_0x411c57),_0x1d092e=_0x6f874b['maxRow']-_0x6f874b['minRow']+0x1;if('insertion'==_0x411c57['type'])return _0x12ca83['length']?{'type':'insertion','content':c(_0x850bb8,'*Insert:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d092e,'\x22'+_0x12ca83['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x850bb8,'*Insert:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_ROW',_0x1d092e))};if('deletion'==_0x411c57['type'])return _0x12ca83['length']?{'type':'deletion','content':c(_0x850bb8,'*Remove:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d092e,'\x22'+_0x12ca83['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x850bb8,'*Remove:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_ROW',_0x1d092e))};}if('tableColumn'==_0x411c57['subType']){const _0xcd0b74=_0x411c57['getItems']()['filter'](_0x3b549f=>_0x3b549f['is']('$textProxy'))['map'](_0x4e5c07=>_0x4e5c07['data']),_0xca356a=this['_getSuggestionCoords'](_0x411c57),_0x5be7dc=_0xca356a['maxColumn']-_0xca356a['minColumn']+0x1;if('insertion'==_0x411c57['type'])return _0xcd0b74['length']?{'type':'insertion','content':c(_0x850bb8,'*Insert:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5be7dc,'\x22'+_0xcd0b74['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x850bb8,'*Insert:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_COLUMN',_0x5be7dc))};if('deletion'==_0x411c57['type'])return _0xcd0b74['length']?{'type':'deletion','content':c(_0x850bb8,'*Remove:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5be7dc,'\x22'+_0xcd0b74['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x850bb8,'*Remove:*\x20%0',c(_0x850bb8,'ELEMENT_TABLE_COLUMN',_0x5be7dc))};}}),_0x235ccc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1fbefd),_0x235ccc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1fbefd),_0x235ccc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x290d22),_0x235ccc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x290d22),_0x235ccc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3b81cf),_0x235ccc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3b81cf),_0x235ccc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x14b947),_0x235ccc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x14b947);}['_acceptFormatSuggestionCallbackFactory'](){const _0x41425f=this['editor'],_0x211332=_0x41425f['model']['document']['selection'];return(_0x3fb1cf,_0x3f2046)=>{_0x41425f['model']['change'](_0x1cbae3=>{const {commandName:_0x297135,commandParams:_0x366809}=_0x3f2046;let _0x3e96dd=_0x3fb1cf[0x0]['end']['nodeBefore'];_0x366809&&_0x366809[0x0]&&!0x1===_0x366809[0x0]['forceValue']&&(_0x3e96dd=_0x3fb1cf[0x0]['start']['nodeAfter']);const _0x183a0f=_0x1cbae3['createRangeIn'](_0x3e96dd);if('$graveyard'==_0x183a0f['root']['rootName'])return;const _0x2f7953=Array['from'](_0x211332['getRanges']())['map'](_0x55807c=>_0x51fe0f['fromRange'](_0x55807c));_0x1cbae3['setSelection'](_0x183a0f),_0x41425f['commands']['get'](_0x297135)['refresh'](),_0x366809['push']({'forceDefaultExecution':!0x0}),_0x41425f['execute'](_0x297135,..._0x366809);const _0x20dff7=_0x2f7953['filter'](_0x47d1a9=>'$graveyard'!=_0x47d1a9['root']['rootName']);_0x20dff7['length']>0x0&&_0x1cbae3['setSelection'](_0x20dff7);for(const _0x32c175 of _0x2f7953)_0x32c175['detach']();});};}['_getCoordsForCells'](_0x1d8654){const _0x428949=this['editor']['plugins']['get']('TableUtils');let _0x2e8fd2=Number['MAX_SAFE_INTEGER'],_0x5aebbc=Number['MIN_SAFE_INTEGER'],_0x46980e=Number['MAX_SAFE_INTEGER'],_0x4081f2=Number['MIN_SAFE_INTEGER'];for(const _0xceb3d6 of _0x1d8654){if('$graveyard'==_0xceb3d6['root']['rootName'])continue;const {row:_0x367504,column:_0x44d095}=_0x428949['getCellLocation'](_0xceb3d6),_0x3f6757=_0xceb3d6['hasAttribute']('rowspan')?_0xceb3d6['getAttribute']('rowspan')-0x1:0x0,_0x460eda=_0xceb3d6['hasAttribute']('colspan')?_0xceb3d6['getAttribute']('colspan')-0x1:0x0;_0x2e8fd2=_0x367504<_0x2e8fd2?_0x367504:_0x2e8fd2,_0x5aebbc=_0x367504+_0x3f6757>_0x5aebbc?_0x367504+_0x3f6757:_0x5aebbc,_0x46980e=_0x44d095<_0x46980e?_0x44d095:_0x46980e,_0x4081f2=_0x44d095+_0x460eda>_0x4081f2?_0x44d095+_0x460eda:_0x4081f2;}return{'minRow':_0x2e8fd2,'maxRow':_0x5aebbc,'minColumn':_0x46980e,'maxColumn':_0x4081f2};}['_setupColumnsRowsFixing'](){const _0x37c6cb=this['editor'],_0x172fed=_0x37c6cb['plugins']['get']('TrackChangesEditing'),_0x4d3269=_0x37c6cb['plugins']['get']('TableUtils');_0x37c6cb['model']['document']['on']('change:data',()=>{const _0x28474d=Array['from'](_0x37c6cb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2f2f9e,data:_0x7c65f3}of _0x28474d){const {group:_0x1c9c8f,id:_0x28bcef,subType:_0x561ed9}=_0x172fed['_splitMarkerName'](_0x2f2f9e);if('suggestion'!=_0x1c9c8f)continue;if(null!=_0x7c65f3['oldRange'])continue;const _0x4642e=_0x172fed['getSuggestion'](_0x28bcef);this['_tablePostFixingSubtypes']['includes'](_0x561ed9)&&this['_tableSuggestions']['add'](_0x4642e);}},{'priority':'low'});const _0x21a2a5=(_0x53b0ed,_0x49d244)=>{let _0x29a598=!0x1;const _0x55f813=_0x49d244['createRangeOn'](_0x53b0ed),_0x38fbc2=_0x53b0ed['findAncestor']('table'),_0x13f4dc=_0x4d3269['getCellLocation'](_0x53b0ed);for(const _0x2d296a of this['_tableSuggestions']){const _0x7a9d52=_0x2d296a['subType'],_0x554bcb=_0x7a9d52['startsWith']('tablePaste'),_0x157fc0=_0x7a9d52['substr'](_0x554bcb?0xa:0x5),_0x24bda3=_0x157fc0['toLowerCase'](),_0x36ee39=_0x24bda3['substr'](0x0,0x3)+'span',_0x46a7b6='min'+_0x157fc0,_0x3e70be='max'+_0x157fc0;if(!_0x2d296a['isInContent'])continue;if(_0x38fbc2!=_0x2d296a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2d296a['isIntersectingWithRange'](_0x55f813))continue;const _0x120776=_0x53b0ed['hasAttribute'](_0x36ee39)?_0x53b0ed['getAttribute'](_0x36ee39)-0x1:0x0,_0x341ee5=this['_getSuggestionCoords'](_0x2d296a),_0x4b4e62=_0x341ee5[_0x46a7b6],_0x27becc=_0x341ee5[_0x3e70be];_0x4b4e62<=_0x13f4dc[_0x24bda3]&&_0x13f4dc[_0x24bda3]+_0x120776<=_0x27becc&&(_0x2d296a['addRange'](_0x55f813),_0x29a598=!0x0);}return _0x29a598;};_0x37c6cb['model']['document']['registerPostFixer'](_0x3a664f=>{let _0x386585=!0x1;for(const _0x2ef260 of _0x37c6cb['model']['document']['differ']['getChanges']())if('insert'==_0x2ef260['type']){if('tableRow'==_0x2ef260['name']){for(const _0x30101c of _0x2ef260['position']['nodeAfter']['getChildren']())_0x386585=_0x386585||_0x21a2a5(_0x30101c,_0x3a664f);}else'tableCell'==_0x2ef260['name']&&(_0x386585=_0x386585||_0x21a2a5(_0x2ef260['position']['nodeAfter'],_0x3a664f));}return _0x386585;});}['_getSuggestionCoords'](_0x43c851){return this['_getCoordsForCells'](_0x43c851['getRanges']()['map'](_0x2e22bb=>_0x2e22bb['start']['nodeAfter']));}}function Ne(_0x265df0){return Array['from'](new Set(_0x265df0)['values']());}class Nt extends _0x45133c{static get['requires'](){return[Ct];}['afterInit'](){const _0x460e62=this['editor'],_0x34336a=_0x460e62['model']['document']['selection'],_0x3cc8ec=_0x460e62['locale'];if(!_0x460e62['plugins']['has']('TableEditing'))return;const _0x29b36e=_0x460e62['plugins']['get']('TrackChangesEditing'),_0x189b0a=_0x460e62['plugins']['get']('TableUtils'),_0x2fcf06=_0x460e62['plugins']['get'](Ct);_0x2fcf06['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x29b36e['enableCommand']('mergeTableCells',()=>{const _0x5a7e37=_0x189b0a['getSelectionAffectedTableCells'](_0x460e62['model']['document']['selection']);_0x460e62['model']['change'](()=>{_0x29b36e['markMultiRangeBlockFormat'](_0x5a7e37,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x460e62['commands']['get']('mergeTableCells')['on']('execute',(_0x37f549,_0x3698e2)=>{_0x460e62['commands']['get']('trackChanges')['value']&&(_0x3698e2['length']>0x0&&_0x3698e2[_0x3698e2['length']-0x1]&&_0x3698e2[_0x3698e2['length']-0x1]['forceDefaultExecution']||_0x29b36e['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x37f549['stop']());},{'priority':'highest'});for(const _0x581556 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x45f086=_0x460e62['commands']['get'](_0x581556);_0x29b36e['enableCommand'](_0x581556,()=>{const _0x1b7fd5=_0x460e62['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x448827=>_0x448827['is']('element','tableCell')),_0x35698f=_0x45f086['value'];_0x460e62['model']['change'](()=>{_0x29b36e['markMultiRangeBlockFormat']([_0x1b7fd5,_0x35698f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xa4a980 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x46cf6d=_0x460e62['commands']['get'](_0xa4a980);_0x29b36e['enableCommand'](_0xa4a980,()=>{const _0x18d319=_0x189b0a['getSelectionAffectedTableCells'](_0x460e62['model']['document']['selection'])[0x0],_0x496401=_0x18d319['findAncestor']('table'),{column:_0x20076a,row:_0x53dce0}=_0x189b0a['getCellLocation'](_0x18d319);let _0x2c4ab6=[];if('horizontally'==_0x46cf6d['direction']){const _0x4170ea=_0x189b0a['createTableWalker'](_0x496401,{'startRow':_0x53dce0,'endRow':_0x53dce0,'includeAllSlots':!0x0});_0x2c4ab6=Array['from'](_0x4170ea)['map'](_0x142e63=>_0x142e63['cell']);}else{const _0x955690=_0x189b0a['createTableWalker'](_0x496401,{'column':_0x20076a,'includeAllSlots':!0x0});_0x2c4ab6=Array['from'](_0x955690)['map'](_0x3890b7=>_0x3890b7['cell']);}_0x460e62['model']['change'](_0x3ea88e=>{_0x29b36e['markBlockFormat'](_0x3ea88e['createRangeOn'](_0x18d319),{'commandName':_0xa4a980,'commandParams':[]},_0x2c4ab6,_0xa4a980);});});}_0x29b36e['descriptionFactory']['registerDescriptionCallback'](_0x404794=>{if('formatBlock'!=_0x404794['type']&&'formatInline'!=_0x404794['type'])return;const {data:_0x37115d}=_0x404794;return _0x37115d&&'mergeTableCells'==_0x37115d['commandName']?{'type':'format','content':c(_0x3cc8ec,'*Merge\x20cells*')}:void 0x0;}),_0x29b36e['descriptionFactory']['registerDescriptionCallback'](_0x886581=>{if('formatBlock'!=_0x886581['type']&&'formatInline'!=_0x886581['type'])return;const {data:_0x45a1ad}=_0x886581;return _0x45a1ad?'splitTableCellVertically'==_0x45a1ad['commandName']?{'type':'format','content':c(_0x3cc8ec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x45a1ad['commandName']?{'type':'format','content':c(_0x3cc8ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x46cbea=_0x2fcf06['_acceptFormatSuggestionCallbackFactory']();for(const _0x4a0404 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x29b36e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a0404,'accept',_0x46cbea);for(const _0x3c3732 of['splitTableCellVertically','splitTableCellHorizontally'])_0x29b36e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c3732,'accept',_0x46cbea);_0x29b36e['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x17491a=>{_0x460e62['model']['change'](_0x2ee743=>{const _0x47eff7=Array['from'](_0x34336a['getRanges']())['map'](_0x22b647=>_0x51fe0f['fromRange'](_0x22b647));_0x2ee743['setSelection'](_0x17491a),_0x460e62['commands']['get']('mergeTableCells')['refresh'](),_0x460e62['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2fff9e=_0x47eff7['filter'](_0x5b7abe=>'$graveyard'!=_0x5b7abe['root']['rootName']);_0x2fff9e['length']>0x0&&_0x2ee743['setSelection'](_0x2fff9e);for(const _0x129dae of _0x47eff7)_0x129dae['detach']();});});for(const _0xcd30fd of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x36bc5c=_0x460e62['commands']['get'](_0xcd30fd);_0x36bc5c['on']('set:isEnabled',(_0x564588,_0x331ec2,_0x4423e1)=>{if(_0x4423e1){const _0x52c521=_0x460e62['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1029a2=>_0x1029a2['is']('element','tableCell'));this['_areMergableCells'](_0x36bc5c['value'],_0x52c521)||(_0x564588['return']=!0x1,_0x564588['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x16bc80=this['editor']['commands']['get']('mergeTableCells'),_0x39153d=this['editor']['plugins']['get']('TableUtils');if(!_0x16bc80['isEnabled'])return!0x1;const _0x14708b=_0x39153d['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x19019d of _0x14708b)for(const _0x229881 of _0x14708b)if(_0x19019d!=_0x229881&&!this['_areMergableCells'](_0x19019d,_0x229881))return!0x1;return!0x0;}['_areMergableCells'](_0xe3c13c,_0x1cd99e){const _0x7c3ef0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25a1fc=this['editor']['model']['createRangeOn'](_0xe3c13c),_0x3c10fd=this['editor']['model']['createRangeOn'](_0x1cd99e),_0x109a83=new Set(),_0x4fa5c9=new Set();for(const _0x1e2777 of _0x7c3ef0['getSuggestions']())if(('insertion'==_0x1e2777['type']||'deletion'==_0x1e2777['type']||'mergeTableCells'==_0x1e2777['subType'])&&_0x1e2777['isInContent']){for(const _0x4f656a of _0x1e2777['getRanges']())_0x4f656a['containsRange'](_0x25a1fc,!0x0)&&_0x109a83['add'](_0x1e2777['type']+':'+_0x1e2777['author']['id']),_0x4f656a['containsRange'](_0x3c10fd,!0x0)&&_0x4fa5c9['add'](_0x1e2777['type']+':'+_0x1e2777['author']['id']);}if(_0x109a83['size']!=_0x4fa5c9['size'])return!0x1;for(const _0x1a9a78 of _0x109a83)if(!_0x4fa5c9['has'](_0x1a9a78))return!0x1;return!0x0;}}class Dt extends _0x45133c{static get['requires'](){return[Ct];}['afterInit'](){const _0x211b9b=this['editor'];if(!_0x211b9b['plugins']['has']('TableEditing'))return;const _0x369aa6=_0x211b9b['locale'],_0x5c5fa1=_0x211b9b['plugins']['get']('TrackChangesEditing');_0x5c5fa1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5c5fa1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5c5fa1['registerBlockAttribute']('headingRows'),_0x5c5fa1['registerBlockAttribute']('headingColumns'),_0x5c5fa1['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x369aa6,'FORMAT_HEADER_ROW')),_0x5c5fa1['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x369aa6,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xbaca43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x143003=this['editor']['plugins']['get']('TableUtils'),_0x293df2=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x4f0fb5({showActiveMarker:_0x11453c=!0x0,setDataAttribute:_0x30cd4b=!0x0}={}){return(_0x23b03a,_0x3e7cba,_0x57373e)=>{const {type:_0x501dd0,id:_0xf85978}=_0xbaca43['_splitMarkerName'](_0x3e7cba['markerName']),_0x3b1b58=_0xbaca43['getSuggestion'](_0xf85978),_0x187820=_0x3b1b58['data'];if('formatBlock'!=_0x3b1b58['type']||!_0x187820||'setTableColumnHeader'!=_0x187820['commandName'])return;if(_0x3e7cba['item'])return void _0x23b03a['stop']();if(!_0x57373e['consumable']['consume'](_0x3e7cba['markerRange'],_0x23b03a['name']))return;const _0x4c1dfc=_0x3e7cba['markerRange']['start']['nodeAfter'],_0x3e4b67=_0x3e7cba['markerRange']['end']['nodeBefore'],_0x27e88c=_0x4c1dfc['parent']['parent'],{column:_0x50ef94}=_0x143003['getCellLocation'](_0x4c1dfc),{column:_0x107320}=_0x143003['getCellLocation'](_0x3e4b67);for(let _0x1d78f2=_0x50ef94;_0x1d78f2<=_0x107320;_0x1d78f2++){const _0xd02f2a=_0x143003['createTableWalker'](_0x27e88c,{'column':_0x1d78f2,'includeAllSlots':!0x1});for(const _0x1d90d7 of _0xd02f2a){const _0x1a350e=_0x1d90d7['cell'],_0x50482c=_0x57373e['mapper']['toViewElement'](_0x1a350e);_0x57373e['writer']['addClass']('ck-suggestion-marker-'+_0x501dd0,_0x50482c),_0x30cd4b&&_0x57373e['writer']['setAttribute']('data-suggestion',_0xf85978,_0x50482c),_0x57373e['mapper']['bindElementToMarker'](_0x50482c,_0x3e7cba['markerName']),_0x11453c&&(_0xbaca43['activeMarkers']['includes'](_0x3e7cba['markerName'])?_0x57373e['writer']['addClass']('ck-suggestion-marker--active',_0x50482c):_0x57373e['writer']['removeClass']('ck-suggestion-marker--active',_0x50482c));}}};}_0xbaca43['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x293df2),_0xbaca43['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x293df2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f0fb5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1dba2b,_0x42b369,_0x984036)=>{_0x984036['options']['showSuggestionHighlights']&&_0x4f0fb5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1dba2b,_0x42b369,_0x984036);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x21ddc6,_0x5a2bfb,_0x204fdb)=>{const {type:_0x3b0c71,id:_0x23f704}=_0xbaca43['_splitMarkerName'](_0x5a2bfb['markerName']),_0x231e9c=_0xbaca43['getSuggestion'](_0x23f704),_0x269152=_0x231e9c['data'];if('formatBlock'!=_0x231e9c['type']||!_0x269152||'setTableColumnHeader'!=_0x269152['commandName'])return;const _0xe20d3b=_0x204fdb['mapper']['markerNameToElements'](_0x5a2bfb['markerName']);if(_0xe20d3b){for(const _0x1b6e67 of _0xe20d3b)_0x204fdb['writer']['removeClass']('ck-suggestion-marker-'+_0x3b0c71,_0x1b6e67),_0x204fdb['writer']['removeClass']('ck-suggestion-marker--active',_0x1b6e67),_0x204fdb['writer']['removeAttribute']('data-suggestion',_0x1b6e67),_0x204fdb['mapper']['unbindElementFromMarkerName'](_0x1b6e67,_0x5a2bfb['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e959f=this['editor'],_0xa153a2=_0x3e959f['locale'];function _0x5e747b(_0x4ee1bd){return{'type':'format','content':c(_0xa153a2,'*Format:*\x20%0',_0x4ee1bd)};}_0x3e959f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e386e=>{if('formatBlock'!=_0x5e386e['type'])return;const {data:_0x4af367}=_0x5e386e;if(_0x4af367){if('setTableRowHeader'==_0x4af367['commandName']){const _0x3cd2ad=_0x4af367['commandParams'][0x0]['forceValue'];return _0x5e747b(c(_0xa153a2,_0x3cd2ad?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4af367['commandName']){const _0x4930e2=_0x4af367['commandParams'][0x0]['forceValue'];return _0x5e747b(c(_0xa153a2,_0x4930e2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x363043=>[_0x363043,null]));class Mt extends _0x45133c{static get['requires'](){return[Ct];}['afterInit'](){const _0x4910da=this['editor'];if(!_0x4910da['plugins']['has']('TableClipboard'))return;const _0xdcff0=_0x4910da['plugins']['get']('TrackChangesEditing'),_0x3ac0f3=_0x4910da['plugins']['get']('TableUtils'),_0x3240c3=_0x4910da['plugins']['get'](Ct),_0x5df846=_0x4910da['plugins']['get']('TableClipboard');_0x3240c3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4910da['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4910da['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x50a6fb=null;_0x4910da['model']['on']('insertContent',(_0xdb6a08,_0x38945c)=>{const [_0xf968a4,_0x4c5456]=_0x38945c,_0x4b2c38=_0x38945c[_0x38945c['length']-0x1];_0x4b2c38&&_0x4b2c38['forceDefaultExecution']||_0xdcff0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1f2441,_0x1a0b01,_0x49914e,_0x5e0d60,_0x75dd9f){if(_0x1a0b01&&!_0x1a0b01['is']('documentSelection'))return!0x1;const _0x4c3853=_0x75dd9f['getTableIfOnlyTableInContent'](_0x1f2441,_0x49914e);if(!_0x4c3853||!Ue(_0x4c3853,void 0x0,_0x5e0d60))return!0x1;const _0x1f2415=_0x5e0d60['getSelectionAffectedTableCells'](_0x49914e['document']['selection']);if(!_0x1f2415['length'])return!0x1;const _0x47c4b2=_0x1f2415[0x0]['findAncestor']('table'),_0x3493a8=_0x5e0d60['getRowIndexes'](_0x1f2415),_0x4139ed=_0x5e0d60['getColumnIndexes'](_0x1f2415),_0x2232c8={'startRow':_0x3493a8['first'],'endRow':_0x3493a8['last'],'startColumn':_0x4139ed['first'],'endColumn':_0x4139ed['last']};return 0x1==_0x1f2415['length']&&(_0x2232c8['endRow']+=_0x5e0d60['getRows'](_0x4c3853)-0x1,_0x2232c8['endColumn']+=_0x5e0d60['getColumns'](_0x4c3853)-0x1),Ue(_0x47c4b2,_0x2232c8,_0x5e0d60);}(_0xf968a4,_0x4c5456,_0x4910da['model'],_0x3ac0f3,_0x5df846)&&(_0xdb6a08['stop'](),_0x50a6fb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4910da['model']['change'](()=>{_0x4910da['model']['insertContent'](_0x38945c[0x0],_0x38945c[0x1],_0x38945c[0x2],{'forceDefaultExecution':!0x0});const _0x3a6fbd=_0x2612d4(),{rowInsertionRanges:_0x6edc27,columnInsertionRanges:_0x278303,insertionRanges:_0x180968,deletionRanges:_0x27e265,cells:_0x2bdb47}=_0x50a6fb;_0x6edc27['length']&&_0xdcff0['markMultiRangeInsertion'](_0x6edc27,'tablePasteRow',{'tablePasteChainId':_0x3a6fbd}),_0x278303['length']&&_0xdcff0['markMultiRangeInsertion'](_0x278303,'tablePasteColumn',{'tablePasteChainId':_0x3a6fbd}),_0x180968['length']&&(_0xdcff0['markMultiRangeInsertion'](_0x180968,'tablePaste',{'tablePasteChainId':_0x3a6fbd,'skipNestingCheck':!0x0}),_0x180968['forEach'](_0x3c2e6a=>_0x3c2e6a['detach']?.())),_0x27e265['length']&&(_0xdcff0['markMultiRangeDeletion'](_0x27e265,'tablePaste',{'tablePasteChainId':_0x3a6fbd,'skipNestingCheck':!0x0}),_0x27e265['forEach'](_0x17a198=>_0x17a198['detach']?.()));const _0x2ae2c0=_0xdcff0['markMultiRangeBlockFormat'](_0x2bdb47['map'](({element:_0x3d266b})=>_0x3d266b),{'formatGroupId':_0x2612d4()},[],'tablePasteCell',{'tablePasteChainId':_0x3a6fbd});if(_0x2ae2c0){const _0x408218=_0x2ae2c0['getMarkers'](),_0x37630c=[];for(const {element:_0x56d112,attributes:_0x236a25}of _0x2bdb47){if(!_0x236a25)continue;const _0x108905=_0x4910da['model']['createRangeOn'](_0x56d112),_0x277c88=_0x408218['find'](_0x470f15=>_0x470f15['getRange']()['isEqual'](_0x108905));_0x277c88&&_0x37630c['push']([_0x277c88['name'],_0x236a25]);}_0x37630c['length']&&_0x2ae2c0['setAttribute']('markerAttributes',Object['fromEntries'](_0x37630c));}_0x50a6fb=null;}));},{'priority':_0x1691ee['high']+0xa}),_0x4910da['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x1c1aba,_0x244273)=>{const [_0x476414,_0x1ad5de,,_0x32bba2]=_0x244273;if(!_0x50a6fb)return;_0x1c1aba['stop']();const _0x3cd742=_0x476414['cell'],_0x43db75=_0x1ad5de,_0x7a64d1=Oe(_0x3cd742),_0x19ebe0=Oe(_0x43db75);_0x1c1aba['return']=_0x3cd742;let _0x47ee8b=null,_0x33568e=null;if(_0x19ebe0||_0x7a64d1){if(_0x7a64d1&&!_0x19ebe0){_0x32bba2['remove'](_0x3cd742['getChild'](0x0));for(const _0x54f94c of Array['from'](_0x43db75['getChildren']()))_0x32bba2['insert'](_0x54f94c,_0x3cd742,'end');const _0x15662e=_0x50a6fb['rowInsertionIndexes']['includes'](_0x476414['row']),_0x28b5da=_0x50a6fb['columnInsertionIndexes']['includes'](_0x476414['column']);_0x15662e||_0x28b5da||(_0x47ee8b=_0x51fe0f['fromRange'](_0x32bba2['createRangeIn'](_0x3cd742)));}else _0x19ebe0&&!_0x7a64d1&&(_0x33568e=_0x32bba2['createRangeIn'](_0x3cd742));}else{const _0x1b4b6f=_0x32bba2['createElement']('tableCellSuggestion'),_0x52c18a=_0x32bba2['createElement']('tableCellSuggestion');_0x32bba2['wrap'](_0x32bba2['createRangeIn'](_0x3cd742),_0x52c18a),_0x32bba2['insert'](_0x1b4b6f,_0x3cd742,0x0);for(const _0x411906 of Array['from'](_0x43db75['getChildren']()))_0x32bba2['insert'](_0x411906,_0x1b4b6f,'end');_0x47ee8b=_0x51fe0f['fromRange'](_0x32bba2['createRangeOn'](_0x1b4b6f)),_0x33568e=_0x51fe0f['fromRange'](_0x32bba2['createRangeOn'](_0x52c18a));}const _0x1de103=Array['from'](_0x43db75['getAttributes']())['filter'](([_0x54191a])=>Be['includes'](_0x54191a));_0x50a6fb['cells']['push']({'element':_0x3cd742,'attributes':_0x1de103['length']?Object['fromEntries'](_0x1de103):null}),_0x47ee8b&&_0x50a6fb['insertionRanges']['push'](_0x47ee8b),_0x33568e&&_0x50a6fb['deletionRanges']['push'](_0x33568e);},{'priority':'high'}),_0x3ac0f3['on']('insertColumns',(_0x1f5a75,_0x3e0aa8)=>{const [_0x562cde,_0x379f7c={}]=_0x3e0aa8;if(!_0x50a6fb)return;const _0x51b962=_0x379f7c['at']||0x0,_0x4874f9=_0x379f7c['columns']||0x1;_0x50a6fb['columnInsertionIndexes']=new Array(_0x4874f9)['fill'](_0x51b962)['map']((_0xe7f06b,_0x37480c)=>_0xe7f06b+_0x37480c);for(const {cell:_0x4d340a}of _0x3ac0f3['createTableWalker'](_0x562cde,{'startColumn':_0x51b962,'endColumn':_0x51b962+_0x4874f9-0x1}))_0x50a6fb['columnInsertionRanges']['push'](_0x4910da['model']['createRangeOn'](_0x4d340a));},{'priority':'low'}),_0x3ac0f3['on']('insertRows',(_0x43b8f1,_0x4113e5)=>{const [_0x2349ba,_0x2a1f18={}]=_0x4113e5;if(!_0x50a6fb)return;const _0xa8888d=_0x2a1f18['at']||0x0,_0xf8ca21=_0x2a1f18['rows']||0x1;_0x50a6fb['rowInsertionIndexes']=new Array(_0xf8ca21)['fill'](_0xa8888d)['map']((_0x24bba6,_0x1145a8)=>_0x24bba6+_0x1145a8);for(const {cell:_0x138840}of _0x3ac0f3['createTableWalker'](_0x2349ba,{'startRow':_0xa8888d,'endRow':_0xa8888d+_0xf8ca21-0x1}))_0x50a6fb['rowInsertionRanges']['push'](_0x4910da['model']['createRangeOn'](_0x138840));},{'priority':'low'}),_0xdcff0['descriptionFactory']['registerDescriptionCallback'](_0x2b2619=>{if(_0x2b2619['subType']&&_0x2b2619['subType']['startsWith']('tablePaste'))return _0x2b2619['previous']?{}:{'type':'insertion','content':c(_0x4910da['locale'],'*Replace\x20table\x20cells*')};});const _0x52615b=()=>!0x1;for(const _0x22d6f3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xdcff0['_suggestionFactory']['registerCustomCallback']('insertion',_0x22d6f3,'join',_0x52615b),_0xdcff0['_suggestionFactory']['registerCustomCallback']('deletion',_0x22d6f3,'join',_0x52615b),_0xdcff0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x22d6f3,'join',_0x52615b);_0xdcff0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x52615b),_0xdcff0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x525d88,_0x319e09,_0x1ebd42)=>{const _0x2f90d9=_0x525d88['map'](_0x30979f=>_0x30979f['getContainedElement']())['filter'](_0x3867ba=>_0x3867ba),_0x1709c8=new Map(_0x2f90d9['map'](_0x1fefb8=>[_0x1fefb8,null]));if(_0x50a6fb){for(const {element:_0x471b94,attributes:_0x5ba59d}of _0x50a6fb['cells'])_0x5ba59d&&_0x1709c8['set'](_0x471b94,_0x5ba59d);}else{if(_0x1ebd42&&_0x1ebd42['markerAttributes'])for(const [_0x475176,_0x3a37eb]of Object['entries'](_0x1ebd42['markerAttributes'])){const _0x21e57d=_0x4910da['model']['markers']['get'](_0x475176),_0xf27276=_0x21e57d?_0x21e57d['getRange']()['getContainedElement']():null;_0xf27276&&_0x1709c8['set'](_0xf27276,_0x3a37eb);}}_0x4910da['model']['change'](_0x40432a=>{for(const [_0x44c79e,_0x4545ea]of _0x1709c8)_0x40432a['setAttributes']({...xe,..._0x4545ea},_0x44c79e);});});const _0x226a6a=(_0xd0bb84,_0x53c7d)=>{_0xdcff0['_suggestionFactory']['registerCustomCallback'](_0xd0bb84,'tablePaste',_0x53c7d,(_0x58d16d,_0x199d57,_0x48418b)=>{_0x4910da['model']['change'](_0xabbce2=>{const _0x4f384f=[];for(const _0x2ca914 of _0x58d16d){const _0x2492d4=_0x2ca914['start']['nodeAfter'];_0x2492d4['is']('element','tableCellSuggestion')&&_0x4f384f['push'](_0x2492d4);}_0xdcff0['_suggestionFactory']['getSuggestionCallback'](_0xd0bb84,null,_0x53c7d)(_0x58d16d,_0x199d57,_0x48418b);for(const _0x3f22e7 of _0x4f384f)'$graveyard'!=_0x3f22e7['root']['rootName']&&_0xabbce2['unwrap'](_0x3f22e7);});});};_0x226a6a('insertion','accept'),_0x226a6a('insertion','discard'),_0x226a6a('deletion','accept'),_0x226a6a('deletion','discard'),_0xdcff0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x232046=>{const _0x1f44f5=_0x232046['map'](_0x50969b=>_0x50969b['getContainedElement']()),_0x43ad13=_0x1f44f5[0x0]['findAncestor']('table'),{minRow:_0x1097f8,maxRow:_0x576a9e}=_0x3240c3['_getCoordsForCells'](_0x1f44f5);_0x3ac0f3['removeRows'](_0x43ad13,{'at':_0x1097f8,'rows':_0x576a9e-_0x1097f8+0x1});}),_0xdcff0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1f6391=>{const _0xc83e8e=_0x1f6391['map'](_0x201787=>_0x201787['getContainedElement']()),_0x57a992=_0xc83e8e[0x0]['findAncestor']('table'),{minColumn:_0x2adfab,maxColumn:_0x50a62d}=_0x3240c3['_getCoordsForCells'](_0xc83e8e);_0x3ac0f3['removeColumns'](_0x57a992,{'at':_0x2adfab,'columns':_0x50a62d-_0x2adfab+0x1});});const _0x5c448a=(_0x43e7bf,_0x2b8f0b)=>{if(!_0x2b8f0b['subType']||!_0x2b8f0b['subType']['startsWith']('tablePaste'))return;const _0x15ac3b=_0x2b8f0b['attributes']['tablePasteChainId'],_0x34a14b=_0xdcff0['getSuggestions']()['filter'](_0x577099=>_0x577099['isInContent']&&_0x577099['attributes']&&_0x577099['attributes']['tablePasteChainId']==_0x15ac3b);_0x34a14b['length']&&_0x2b8f0b['getAllAdjacentSuggestions']()['length']!=_0x34a14b['length']&&_0x34a14b['reduce']((_0x399bdf,_0x4a10cb)=>(_0x399bdf['next']=_0x4a10cb,_0x4a10cb['previous']=_0x399bdf,_0x4a10cb));};function _0xd33794(_0x2e3b37,_0x5274b5=!0x0){const {id:_0x1ed97a,authorId:_0x52048b}=_0xdcff0['_splitMarkerName'](_0x2e3b37['markerName']),_0x4881cc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1d1329=_0xdcff0['activeMarkers']['includes'](_0x2e3b37['markerName']);return _0x1d1329&&_0x4881cc['push']('ck-suggestion-marker--active'),{'classes':_0x4881cc,'attributes':{'data-suggestion':_0x1ed97a,'data-author-id':_0x52048b},'priority':_0x1d1329&&_0x5274b5?0xbc2:0xbb8};}_0xdcff0['on']('suggestionLoaded',_0x5c448a,{'priority':'high'}),_0xdcff0['on']('suggestionUnloaded',_0x5c448a,{'priority':'high'}),_0x4910da['model']['document']['registerPostFixer'](()=>{let _0x1195f7=!0x1;const _0xa9dd11=Array['from'](_0x4910da['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x373c67,data:_0x4591cd}of _0xa9dd11){const {group:_0x431276,type:_0x4b77bb,id:_0x199e23}=_0xdcff0['_splitMarkerName'](_0x373c67);if('suggestion'!=_0x431276||'deletion'!=_0x4b77bb||_0x4591cd['oldRange'])continue;if(!_0xdcff0['hasSuggestion'](_0x199e23))continue;const _0x27c911=_0xdcff0['getSuggestion'](_0x199e23)['getRanges'](),_0x5374de=_0x4910da['plugins']['get']('Users')['me'];for(const _0x314ef1 of _0xdcff0['getSuggestions']()){if(!_0x314ef1['isInContent']||_0x314ef1['author']!=_0x5374de)continue;if('formatBlock'!=_0x314ef1['type']||'tablePasteCell'!=_0x314ef1['subType'])continue;if(_0x314ef1['getRanges']()['every'](_0x30073b=>_0x27c911['some'](_0x1ed778=>_0x1ed778['containsRange'](_0x30073b,!0x0)))){for(const _0x5b5772 of _0x314ef1['getAllAdjacentSuggestions']())_0x5b5772['isInContent']&&(_0x5b5772['discard'](),_0x1195f7=!0x0);}}}return _0x1195f7;}),_0x4910da['model']['document']['registerPostFixer'](_0x2b6230=>{const _0x50fb9d=_0x4910da['commands']['get']('redo');if(!_0x50fb9d||!_0x50fb9d['_createdBatches']['has'](_0x2b6230['batch']))return!0x1;let _0x317142=!0x1;const _0x13b706=_0x4910da['plugins']['get']('Users')['me'],_0x1e2130=_0x4910da['model']['document']['differ']['getChanges'](),_0x4c702e=Array['from'](_0x4910da['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3d33cc,data:_0x2646d9})=>{const {group:_0x3f9bec,subType:_0x1f6bda,authorId:_0x5b6a6a}=_0xdcff0['_splitMarkerName'](_0x3d33cc);return'suggestion'==_0x3f9bec&&'tablePaste'==_0x1f6bda&&_0x5b6a6a==_0x13b706['id']&&!_0x2646d9['oldRange'];});for(const _0xae4c10 of _0x1e2130){if('insert'!=_0xae4c10['type']||'tableCellSuggestion'!=_0xae4c10['name']||0x1!=_0xae4c10['length'])continue;const _0x49b999=_0x2b6230['createRange'](_0xae4c10['position'],_0xae4c10['position']['getShiftedBy'](0x1));if(!_0x4c702e['find'](({data:_0x2a47e1})=>_0x2a47e1['newRange']['isEqual'](_0x49b999))){for(const {name:_0x2bb999,data:_0x4730cc}of _0x4c702e)if(_0x49b999['containsRange'](_0x4730cc['newRange'])){_0x2b6230['updateMarker'](_0x2bb999,{'range':_0x49b999}),_0x317142=!0x0;break;}}}return _0x317142;}),_0x4910da['model']['document']['registerPostFixer'](_0x36f128=>{let _0x4b54f0=!0x1;const _0xf03bf4=_0x4910da['plugins']['get']('Users')['me'],_0x1b587e=_0xdcff0['getSuggestions']()['filter'](_0x3d0265=>_0x3d0265['isInContent']&&_0x3d0265['author']==_0xf03bf4),_0x291bb5=new Set(),_0xe062e=new Set();for(const _0x3c641b of _0x1b587e)if('tablePaste'==_0x3c641b['subType'])for(const _0x1146a6 of _0x3c641b['getMarkers']()){const _0x3e35ce=_0x1146a6['getRange']()['getContainedElement']();if(_0x3e35ce){if(_0x3e35ce['is']('element','tableCellSuggestion')&&Oe(_0x3e35ce)){_0x3c641b['removeMarker'](_0x1146a6['name']),_0x291bb5['add'](_0x3e35ce),_0x4b54f0=!0x0;const _0x3baca2=_0x3e35ce['nextSibling'],_0x381410=_0x3e35ce['previousSibling'],_0x1a6112=_0x3baca2&&_0x3baca2['is']('element','tableCellSuggestion'),_0x181ac9=_0x381410&&_0x381410['is']('element','tableCellSuggestion');_0x1a6112&&!_0x291bb5['has'](_0x3baca2)&&_0xe062e['add'](_0x3baca2),_0x181ac9&&!_0x291bb5['has'](_0x381410)&&_0xe062e['add'](_0x381410);}else _0x3e35ce['is']('element','paragraph')&&_0x3e35ce['isEmpty']&&(_0x3c641b['removeMarker'](_0x1146a6['name']),_0x4b54f0=!0x0);}}else{if('tablePasteCell'==_0x3c641b['subType']){if(!_0x3c641b['attributes']||!_0x3c641b['attributes']['tablePasteChainId'])continue;const _0x9e5d0=_0x3c641b['attributes']['markerAttributes'];if(_0x9e5d0&&Object['keys'](_0x9e5d0)['length'])continue;const _0x35cfcf=_0x3c641b['attributes']['tablePasteChainId'];let _0x32c2b8=!0x0,_0x32787f=!0x0;for(const _0x2980a3 of _0x1b587e)if(_0x2980a3['subType']&&_0x2980a3['subType']['startsWith']('tablePaste')){if(!_0x2980a3['attributes']['tablePasteChainId']){_0x32787f=!0x1;break;}if(_0x2980a3['id']!=_0x3c641b['id']&&_0x2980a3['attributes']['tablePasteChainId']==_0x35cfcf){_0x32c2b8=!0x1;break;}}_0x32787f&&_0x32c2b8&&(_0x3c641b['removeMarkers'](),_0x4b54f0=!0x0);}}for(const _0xc3a3fc of _0x291bb5)_0x36f128['remove'](_0xc3a3fc);for(const _0x3e87c7 of _0xe062e)_0x36f128['unwrap'](_0x3e87c7);return _0x4b54f0;}),_0x4910da['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5cf41e=>_0xd33794(_0x5cf41e),'converterPriority':'high'}),_0x4910da['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1a596b,_0x4ad9e5)=>_0x4ad9e5['options']['showSuggestionHighlights']?_0xd33794(_0x1a596b,!0x1):null,'converterPriority':'high'});const _0x903794=_0x4910da['editing']['view'];this['listenTo'](_0x903794['document'],'clipboardOutput',(_0x805f1d,_0x4874e0)=>{const _0x4b2e4c=[];for(const _0x4ed219 of _0x903794['createRangeIn'](_0x4874e0['content'])['getItems']())_0x4ed219['is']('element','suggestion-td')&&_0x4b2e4c['push'](_0x4ed219);_0x903794['change'](_0x3ee2dd=>{for(const _0x4fcf94 of _0x4b2e4c)_0x3ee2dd['move'](_0x3ee2dd['createRangeIn'](_0x4fcf94),_0x3ee2dd['createPositionBefore'](_0x4fcf94)),_0x3ee2dd['remove'](_0x4fcf94);});});}}function Oe(_0x76a305){if(_0x76a305['isEmpty'])return!0x0;const _0x3b9c12=_0x76a305['getChild'](0x0);return _0x3b9c12['is']('element','paragraph')&&_0x3b9c12['isEmpty'];}function Ue(_0x45db46,_0x2f3726={},_0x4e7b0c){for(const {isAnchor:_0x4c058f,cellHeight:_0x169a77,cellWidth:_0x5218cd}of _0x4e7b0c['createTableWalker'](_0x45db46,{'includeAllSlots':!0x0,..._0x2f3726}))if(!_0x4c058f||0x1!=_0x169a77||0x1!=_0x5218cd)return!0x1;return!0x0;}class $t extends _0x45133c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x29d047=this['editor']['plugins']['get']('TrackChangesEditing');_0x29d047['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x29d047['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x29d047['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29d047['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x29d047['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x29d047['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3b2291,_0x5d568e){const _0xaa2ade=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14aaf7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5a86be=_0x5d568e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2476d1=_0x14aaf7['getColumnGroupElement'](_0x5a86be);let _0x1232d0=_0x2476d1?_0x14aaf7['getTableColumnsWidths'](_0x2476d1):null,_0x15c4af=_0x5a86be['getAttribute']('tableWidth')||null;const _0x385b6e=_0x5d568e['tableWidth']||_0x15c4af,_0x290063=_0x5d568e['columnWidths']||_0x1232d0,_0x373c0e=this['editor']['plugins']['get']('Users')['me'];for(const _0x2172f7 of _0xaa2ade['getSuggestions']()){const _0xa86af0=_0x2172f7['getContainedElement']();if('resizeTable'===_0x2172f7['subType']&&_0xa86af0===_0x5a86be){_0x2172f7['author']!==_0x373c0e&&_0x2172f7['discard']();const _0x28ab57=_0x2172f7['data']['commandParams'];_0x15c4af=_0x28ab57[0x0]['tableWidth'],_0x1232d0=_0x28ab57[0x0]['columnWidths'];break;}}_0x3b2291({'table':_0x5a86be,'tableWidth':_0x385b6e,'columnWidths':_0x290063}),_0xaa2ade['markBlockFormat'](_0x5a86be,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x15c4af,'columnWidths':_0x1232d0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x58d562){if('formatBlock'!=_0x58d562['type']&&'formatInline'!=_0x58d562['type'])return;const {data:_0x323c1a}=_0x58d562;if(_0x323c1a&&'resizeTable'===_0x323c1a['formatGroupId']){const _0x460895='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x460895)};}}}class Bt extends _0x45133c{['afterInit'](){const _0x3937b1=this['editor'];_0x3937b1['plugins']['has']('Template')&&_0x3937b1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x45133c{['afterInit'](){const _0x2ca0c8=this['editor'];if(!_0x2ca0c8['commands']['get']('insertTableOfContents'))return;_0x2ca0c8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5f0546=_0x2ca0c8['plugins']['get']('TrackChangesEditing'),_0x23594f=_0x2ca0c8['locale'];_0x5f0546['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3ddffd=>c(_0x23594f,'ELEMENT_TABLE_OF_CONTENTS',_0x3ddffd));}}class Rt extends _0x45133c{['afterInit'](){const _0x377021=this['editor'];if(!_0x377021['plugins']['has']('Title'))return;const _0x1da311=_0x377021['plugins']['get']('TrackChangesEditing');_0x1da311['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x377021['locale'],'ELEMENT_TITLE')),_0x377021['model']['document']['registerPostFixer'](_0x320b87=>{let _0x1d2952=!0x1;const _0x1f1c88=Array['from'](_0x377021['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31304e,data:_0x23a663}of _0x1f1c88){const {group:_0x1aad02}=_0x1da311['_splitMarkerName'](_0x31304e);if('suggestion'!==_0x1aad02||!_0x23a663['newRange'])continue;const _0x5bf3af=_0x23a663['newRange'],_0x147119=_0x5bf3af['end']['nodeBefore'];if(!_0x147119||!_0x147119['is']('element','title-content'))continue;if(!_0x5bf3af['start']['isTouching'](_0x5bf3af['end']))continue;const _0x25388d=_0x377021['model']['schema']['getNearestSelectionRange'](_0x5bf3af['end'],'forward');if(_0x25388d&&_0x25388d['isCollapsed']){const _0x4f4c06=_0x320b87['createRange'](_0x5bf3af['start'],_0x25388d['start']);_0x4f4c06['isEqual'](_0x5bf3af)||(_0x320b87['updateMarker'](_0x31304e,{'range':_0x4f4c06}),_0x1d2952=!0x0);}_0x1d2952||(_0x320b87['removeMarker'](_0x31304e),_0x1d2952=!0x0);}return _0x1d2952;});}}class xt extends _0x45133c{['afterInit'](){const _0x366f6a=this['editor'],_0x2dabf4=_0x366f6a['plugins']['get']('TrackChangesEditing');_0x366f6a['plugins']['has']('Uploadcare')&&(_0x2dabf4['enableCommand']('uploadcare'),_0x366f6a['plugins']['has']('UploadcareImageEdit')&&(_0x2dabf4['enableCommand']('uploadcareImageEdit'),_0x2dabf4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2dabf4['registerBlockAttribute']('uploadcareImageId'),_0x2dabf4['descriptionFactory']['registerDescriptionCallback'](_0x14e9e6=>{if('attribute'!=_0x14e9e6['type'])return;const {data:_0x5cc819}=_0x14e9e6;return _0x5cc819&&'uploadcareImageId'==_0x5cc819['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x45133c{['afterInit'](){const _0x43dd57=this['editor'],_0x23ea9a=_0x43dd57['plugins']['get']('TrackChangesEditing');_0x43dd57['plugins']['has']('UndoEditing')&&(_0x23ea9a['enableCommand']('undo'),_0x23ea9a['enableCommand']('redo'));}}class Et extends _0x45133c{static get['requires'](){return[Ct];}['afterInit'](){const _0x525639=this['editor'];if(!_0x525639['plugins']['has']('TableCaptionEditing'))return;_0x525639['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x45133c{['tableProperties'];['tableCellProperties'];constructor(_0x3eddba){super(_0x3eddba),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 _0x3833c0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x41e996 of this['tableProperties'])_0x3833c0['enableCommand'](_0x41e996,(_0x370964,_0x19c44b)=>{const _0x14581d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x41e996,[_0x14581d],this['tableProperties'],'tableProperties',_0x370964,_0x19c44b);});_0x3833c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3833c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3833c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4d757f,_0x46b209)=>this['handleDiscardAction'](this['tableProperties'],_0x4d757f,_0x46b209)),_0x3833c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x26df8d of this['tableCellProperties'])_0x3833c0['enableCommand'](_0x26df8d,(_0xba43bb,_0x185697)=>{const _0xf799c0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x26df8d,_0xf799c0,this['tableCellProperties'],'tableCellProperties',_0xba43bb,_0x185697);});_0x3833c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3833c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3833c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x47b6f5,_0x42f11f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x47b6f5,_0x42f11f)),_0x3833c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3833c0['descriptionFactory']['registerDescriptionCallback'](_0x57bd9c=>this['handleSuggestionDescription'](_0x57bd9c));}['_handlePropertyChange'](_0x1dbf8b,_0x5d5463,_0x3fca1b,_0x574bd0,_0x56f8e3,_0x4c45b0){const _0x5356fe=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4c45b0['batch'],()=>{for(const _0x438be4 of _0x5d5463){if(this['_getSuggestion'](_0x438be4,_0x574bd0))_0x56f8e3(_0x4c45b0);else{const _0x282938={};for(const _0xa719ae of _0x3fca1b){const _0x1e132d=_0x438be4['getAttribute'](_0xa719ae);void 0x0!==_0x1e132d&&(_0x282938[_0xa719ae]=_0x1e132d);}_0x56f8e3(_0x4c45b0),_0x5356fe['markBlockFormat'](_0x438be4,{'commandParams':[_0x282938]},[],_0x574bd0);}}});}['handleDiscardAction'](_0x3e5c3c,_0x933ee6,_0x56e0f0){const _0x42e369=_0x933ee6[0x0]['start']['nodeAfter'],_0x5c328f=_0x56e0f0['commandParams'][0x0];this['editor']['model']['change'](_0x165659=>{for(const _0x4ed729 of _0x3e5c3c)void 0x0!==_0x5c328f[_0x4ed729]?_0x165659['setAttribute'](_0x4ed729,_0x5c328f[_0x4ed729],_0x42e369):_0x165659['removeAttribute'](_0x4ed729,_0x42e369);});}['handleSuggestionDescription'](_0x3cce54){if(_0x3cce54['data'])switch(_0x3cce54['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'](_0xd1dbe4,_0x495715){const _0xc49645=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3d54bc of _0xc49645['getSuggestions']({'skipNotAttached':!0x0})){const _0x4981cc=_0x3d54bc['getContainedElement']();if(_0x3d54bc['subType']===_0x495715&&_0x4981cc===_0xd1dbe4)return _0x3d54bc;}return null;}}const u='$elementName';class p extends _0x45133c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1b4cac,_0x5af59d,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x405d3e){super(_0x405d3e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x49b202,_0x2487f6,_0x145413,_0x3da992)=>{this['_model']['change'](()=>{for(const _0x1b7644 of[..._0x3da992,..._0x145413])this['_model']['markers']['has'](_0x1b7644)&&_0x405d3e['editing']['reconvertMarker'](_0x1b7644);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x405d3e['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(),_0x405d3e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x405d3e['config']['get']('trackChanges.trackFormatChanges'),_0x405d3e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x405d3e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x405d3e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x33a718=this['editor'],_0x1e6782=(_0x160f6b,_0xd566df)=>{if('attribute'!=_0x160f6b)return'ck-suggestion-marker-'+_0x160f6b;const _0x4f011f=_0xd566df['split']('|')[0x0];return this['_isBlockAttribute'](_0x4f011f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x33a718['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1df54b=>{const {id:_0x1721dc,authorId:_0x14112f,type:_0x4e5737,subType:_0x17c98a}=this['_splitMarkerName'](_0x1df54b['markerName']),_0x4a31c2=['ck-suggestion-marker',_0x1e6782(_0x4e5737,_0x17c98a)];let _0x21fdeb=0xbb8;return this['activeMarkers']['includes'](_0x1df54b['markerName'])&&(_0x4a31c2['push']('ck-suggestion-marker--active'),_0x21fdeb=0xbc2),'deletion'==_0x4e5737&&(_0x21fdeb+=0x5),{'classes':_0x4a31c2,'attributes':{'data-suggestion':_0x1721dc,'data-author-id':_0x14112f},'priority':_0x21fdeb};}}),_0x33a718['conversion']['for']('dataDowncast')['add'](_0x527c35=>{_0x527c35['on']('addMarker:suggestion',(_0x1c7e02,_0x2d0ffd,_0xc142c2)=>{if(!_0xc142c2['options']['showSuggestionHighlights'])return;const _0x10769d=_0x2d0ffd['item'];if(!_0x10769d)return;const _0x36151a=_0xc142c2['mapper']['toViewElement'](_0x10769d);_0x33a718['model']['schema']['isObject'](_0x10769d)&&_0x36151a&&!_0x36151a['getCustomProperty']('widget')&&_0x36151a['is']('containerElement')&&_0x1048bb(_0x36151a,_0xc142c2['writer']);},{'priority':'high'});}),_0x33a718['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5a44c8,_0x5517aa)=>{if(!_0x5517aa['options']['showSuggestionHighlights'])return null;const {type:_0x260053,subType:_0x361673}=this['_splitMarkerName'](_0x5a44c8['markerName']);return{'classes':['ck-suggestion-marker',_0x1e6782(_0x260053,_0x361673)],'priority':0xbb8};}});const _0x32595b=({showActiveMarkers:_0x278cbf=!0x0,isAttributeSuggestion:_0xd5b303=!0x1}={})=>(_0xfac7ac,_0x2da1ab,_0x3de3af)=>{if(!_0x2da1ab['item'])return;const {id:_0x279710,authorId:_0x5f00e3}=this['_splitMarkerName'](_0x2da1ab['markerName']);if(_0xd5b303){const _0x399647=this['_suggestions']['get'](_0x279710),_0x1f43d8=this['_getAttributeKey'](_0x399647);if(!this['_isBlockAttribute'](_0x1f43d8))return;}if(_0x2da1ab['item']['is']('selection'))return void _0x3de3af['consumable']['consume'](_0x2da1ab['item'],_0xfac7ac['name']);const _0x4e0318=_0x3de3af['mapper']['toViewElement'](_0x2da1ab['item']);if(_0x2da1ab['item']['is']('element')&&_0x33a718['model']['schema']['isBlock'](_0x2da1ab['item'])&&!_0x4e0318['getCustomProperty']('addHighlight')){_0x3de3af['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4e0318),_0x3de3af['writer']['setAttribute']('data-suggestion',_0x279710,_0x4e0318),_0x3de3af['writer']['setAttribute']('data-author-id',_0x5f00e3,_0x4e0318),_0x3de3af['mapper']['bindElementToMarker'](_0x4e0318,_0x2da1ab['markerName']),_0x278cbf&&(this['activeMarkers']['includes'](_0x2da1ab['markerName'])?_0x3de3af['writer']['addClass']('ck-suggestion-marker--active',_0x4e0318):_0x3de3af['writer']['removeClass']('ck-suggestion-marker--active',_0x4e0318));for(const _0x1df2b2 of _0x33a718['model']['createRangeIn'](_0x2da1ab['item'])['getItems']())_0x3de3af['consumable']['consume'](_0x1df2b2,_0xfac7ac['name']);_0x3de3af['consumable']['consume'](_0x2da1ab['item'],_0xfac7ac['name']);}};_0x33a718['conversion']['for']('dataDowncast')['add'](_0x1e393b=>{_0x1e393b['on']('addMarker:suggestion:formatBlock',(_0x541a22,_0x21c0a4,_0x5609c7)=>{_0x5609c7['options']['showSuggestionHighlights']&&_0x32595b({'showActiveMarkers':!0x1})(_0x541a22,_0x21c0a4,_0x5609c7);},{'priority':'highest'});}),_0x33a718['conversion']['for']('dataDowncast')['add'](_0x125698=>{_0x125698['on']('addMarker:suggestion:attribute',(_0x1b7636,_0x52bc1c,_0x5b7864)=>{_0x5b7864['options']['showSuggestionHighlights']&&_0x32595b({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1b7636,_0x52bc1c,_0x5b7864);},{'priority':'highest'});}),_0x33a718['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5add1b,_0x32f552)=>_0x32f552['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5add1b['substr'](0xb)}}),_0x33a718['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4473cf,{writer:_0x444862})=>{let _0x2ddee1='suggestion:'+_0x4473cf['getAttribute']('suggestion-type')+':'+_0x4473cf['getAttribute']('id');return _0x4473cf['getAttribute']('marker-count')&&(_0x2ddee1+=':'+_0x4473cf['getAttribute']('marker-count')),_0x444862['createElement']('$marker',{'data-name':_0x2ddee1});}}),_0x33a718['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x33a718['conversion']['for']('editingDowncast')['add'](_0x44dfc0=>{_0x44dfc0['on']('addMarker:suggestion:formatBlock',_0x32595b(),{'priority':'high'});}),_0x33a718['conversion']['for']('editingDowncast')['add'](_0x21f592=>{_0x21f592['on']('addMarker:suggestion:attribute',_0x32595b({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x33a718['conversion']['for']('editingDowncast')['add'](_0x43d8ea=>{_0x43d8ea['on']('removeMarker:suggestion:formatBlock',(_0x228064,_0xaa52b2,_0x2f2f40)=>{const _0x50d553=_0x2f2f40['mapper']['markerNameToElements'](_0xaa52b2['markerName']);if(_0x50d553){for(const _0x1f1082 of _0x50d553)_0x1f1082['getCustomProperty']('addHighlight')||(_0x2f2f40['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1f1082),_0x2f2f40['writer']['removeAttribute']('data-suggestion',_0x1f1082),_0x2f2f40['writer']['removeAttribute']('data-author-id',_0x1f1082),_0x2f2f40['mapper']['unbindElementFromMarkerName'](_0x1f1082,_0xaa52b2['markerName']));}},{'priority':'high'});}),_0x33a718['conversion']['for']('editingDowncast')['add'](_0x238967=>{_0x238967['on']('removeMarker:suggestion:attribute',(_0x82cdc,_0x17187d,_0x782ab0)=>{const _0xb4853=_0x782ab0['mapper']['markerNameToElements'](_0x17187d['markerName']);if(!_0xb4853)return;const {id:_0x2600da}=this['_splitMarkerName'](_0x17187d['markerName']),_0x519153=this['_suggestions']['get'](_0x2600da),_0x2d8bff=this['_getAttributeKey'](_0x519153);if(this['_isBlockAttribute'](_0x2d8bff)){for(const _0x34bb36 of _0xb4853)_0x34bb36['getCustomProperty']('addHighlight')||(_0x782ab0['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x34bb36),_0x782ab0['writer']['removeAttribute']('data-suggestion',_0x34bb36),_0x782ab0['writer']['removeAttribute']('data-author-id',_0x34bb36),_0x782ab0['mapper']['unbindElementFromMarkerName'](_0x34bb36,_0x17187d['markerName']));}},{'priority':'high'});}),_0x33a718['model']['document']['registerPostFixer'](_0x3ef2cb=>{let _0x2fc83d=!0x1;const _0x589b95=Array['from'](_0x33a718['model']['document']['differ']['getChangedMarkers']()),_0x57f9b8=new Set();for(const {name:_0x4ee213,data:_0x491029}of _0x589b95){const {group:_0x1c9d2e,type:_0x44c34a,subType:_0x2cf284,id:_0x4d0e8e}=this['_splitMarkerName'](_0x4ee213);if('suggestion'!==_0x1c9d2e)continue;const _0x38821e=this['_suggestions']['get'](_0x4d0e8e);if(null!=_0x491029['newRange']){'formatInline'==_0x44c34a&&(_0x2fc83d=_0x2fc83d||Lt(_0x491029['newRange'],_0x4ee213,_0x3ef2cb,_0x33a718['model']['schema']));const _0x57f872='attribute'==_0x44c34a&&this['_isBlockAttribute'](_0x2cf284['split']('|')[0x0]);if(_0x491029['newRange']['isCollapsed']||'$graveyard'==_0x491029['newRange']['root']['rootName']||'formatBlock'==_0x44c34a&&!Kt(_0x491029['newRange'])||_0x57f872&&!Kt(_0x491029['newRange'])||'deletion'==_0x44c34a&&!(!Gt(_0x5823a3=_0x491029['newRange'])&&!function(_0x5953c9){return _0x5953c9['start']['parent']==_0x5953c9['end']['nodeBefore']&&_0x5953c9['start']['isAtEnd'];}(_0x5823a3)))_0x3ef2cb['removeMarker'](_0x4ee213),_0x2fc83d=!0x0;else{if(!_0x38821e||!_0x38821e['isInContent'])continue;if(_0x491029['newRange']&&_0x491029['oldRange']&&_0x491029['newRange']['isEqual'](_0x491029['oldRange']))continue;_0x57f9b8['add'](_0x38821e);}}}var _0x5823a3;return _0x57f9b8['size']>0x0&&(_0x2fc83d=!!this['_joinWithAdjacentSuggestions'](_0x57f9b8)||_0x2fc83d),_0x2fc83d;}),_0x33a718['model']['document']['registerPostFixer'](_0x5310b6=>{let _0x2e6ea9=!0x1;for(const _0xa6f119 of _0x33a718['model']['document']['differ']['getChanges']())if('insert'==_0xa6f119['type'])for(const _0x5a44ad of this['_suggestions']['values']()){if(_0x5a44ad['isMultiRange']||!_0x5a44ad['isInContent'])continue;const _0x3ab614='formatBlock'==_0x5a44ad['type'],_0xbbcd3f=this['_getAttributeKey'](_0x5a44ad),_0x4c1d87=_0xbbcd3f&&this['_isBlockAttribute'](_0xbbcd3f);if(!_0x3ab614&&!_0x4c1d87)continue;const _0x72b9bb=_0x5a44ad['getFirstRange']();if(_0x72b9bb['start']['parent']!=_0x72b9bb['end']['parent']&&!_0x72b9bb['end']['isAtEnd']){const _0x49e9c6=_0x33a718['model']['createPositionAt'](_0x72b9bb['start']['nodeAfter'],'end'),_0x4a0f02=_0x33a718['model']['createRange'](_0x72b9bb['start'],_0x49e9c6);_0x5310b6['updateMarker'](_0x5a44ad['getFirstMarker'](),{'range':_0x4a0f02}),_0x2e6ea9=!0x0;}}return _0x2e6ea9;}),_0x33a718['model']['document']['registerPostFixer'](_0xc5f66d=>this['_processAttributeChanges'](_0xc5f66d)),_0x33a718['model']['document']['registerPostFixer'](_0x38dbc1=>!_0x38dbc1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x38dbc1)),_0x33a718['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x33a718['model']['document']['on']('change:data',(_0x493d14,_0x319880)=>{if(!_0x319880['isLocal']||_0x319880['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4a02dc=_0x33a718['model']['document']['differ']['getChanges']();if(0x0==_0x4a02dc['length'])return;const _0x80fd32=[],_0x30997f=_0x4a02dc['filter'](_0x13bcff=>'attribute'==_0x13bcff['type']),_0x589b6d=_0x4a02dc['filter'](_0x5e5b0d=>'insert'==_0x5e5b0d['type']&&'$text'!=_0x5e5b0d['name']);for(const _0x37eee1 of _0x30997f)this['_isRegisteredAttribute'](_0x37eee1['attributeKey'])&&_0x80fd32['push']({'key':_0x37eee1['attributeKey'],'newValue':_0x37eee1['attributeNewValue'],'oldValue':_0x37eee1['attributeOldValue'],'range':Ht(_0x37eee1['range'],_0x33a718['model'])});for(const _0x500b20 of _0x589b6d){if('rename'!=_0x500b20['action']&&'refresh'!=_0x500b20['action'])continue;const _0x20f350=qt(_0x500b20['position']['nodeAfter'],_0x33a718['model']),_0x4c73e2=_0x500b20['before'];'rename'==_0x500b20['action']&&_0x80fd32['push']({'key':u,'newValue':_0x500b20['name'],'oldValue':_0x4c73e2['name'],'range':_0x20f350});for(const [_0x2c6a95,_0x661581]of _0x4c73e2['attributes']){if(!this['_isRegisteredAttribute'](_0x2c6a95))continue;const _0x3b1bf3=_0x500b20['attributes']['get'](_0x2c6a95);_0x661581!==_0x3b1bf3&&_0x80fd32['push']({'key':_0x2c6a95,'newValue':_0x3b1bf3,'oldValue':_0x661581,'range':_0x20f350});}for(const [_0x292c13,_0x4e9516]of _0x500b20['attributes'])this['_isRegisteredAttribute'](_0x292c13)&&(_0x4c73e2['attributes']['has'](_0x292c13)||_0x80fd32['push']({'key':_0x292c13,'newValue':_0x4e9516,'oldValue':null,'range':_0x20f350}));}0x0!=_0x80fd32['length']&&_0x33a718['model']['enqueueChange'](_0x319880,_0x32a4f7=>{const _0x2b48d2=_0x2612d4();for(const {range:_0x444887,key:_0x44bb81,oldValue:_0x4383a6,newValue:_0x47bf1d}of _0x80fd32)this['markAttributeChange'](_0x444887,_0x44bb81,_0x4383a6,_0x47bf1d,{'groupId':_0x2b48d2});this['_reduceExistingSuggestions'](_0x32a4f7,_0x80fd32);});},{'priority':'lowest'}),_0x33a718['model']['markers']['on']('update:suggestion',(_0xde13de,_0x127a2a,_0x5aa0ab)=>{if(null==_0x5aa0ab){const {id:_0x5069a5}=this['_splitMarkerName'](_0x127a2a['name']),_0x25a9e3=this['_suggestions']['get'](_0x5069a5);_0x25a9e3&&_0x25a9e3['addMarkerName'](_0x127a2a['name']);}}),_0x33a718['model']['document']['on']('change:data',()=>{const _0x15b4f7=Array['from'](_0x33a718['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd9d880=>'suggestion'===this['_splitMarkerName'](_0xd9d880['name'])['group']);if(0x0===_0x15b4f7['length'])return;_0x15b4f7['sort']((_0x355ffe,_0x11c5be)=>{const _0x5f0be0=_0x355ffe['data']['oldRange'],_0x3271a1=_0x11c5be['data']['oldRange'];return null===_0x5f0be0&&null===_0x3271a1?0x0:null===_0x5f0be0&&null!==_0x3271a1?-0x1:null!==_0x5f0be0&&null===_0x3271a1?0x1:_0x5f0be0['start']['isBefore'](_0x3271a1['start'])?-0x1:0x1;});const _0x2d5631=new Set(),_0x342d23=new Set();for(const {name:_0x226b9d,data:_0x17b546}of _0x15b4f7){const {id:_0x4206fd}=this['_splitMarkerName'](_0x226b9d);if(null===_0x17b546['oldRange']){const _0x289a1f=this['_handleNewSuggestionMarker'](_0x226b9d);_0x342d23['add'](_0x289a1f);}else{const _0x41349a=this['_suggestions']['get'](_0x4206fd);null!==_0x17b546['newRange']||_0x41349a['isInContent']?(_0x2d5631['add'](_0x41349a['head']),_0x342d23['add'](_0x41349a)):this['_removeSuggestion'](_0x41349a);}}_0x342d23['size']>0x0&&this['_refreshSuggestionsChain'](_0x342d23);for(const _0x595234 of _0x2d5631)this['fire']('suggestionChanged',_0x595234);}),_0x33a718['model']['on']('applyOperation',(_0xbe2679,_0x5f16f1)=>{const _0x47fec1=_0x5f16f1[0x0];if(!this['_suggestions']['size'])return;if(!_0x47fec1['isDocumentOperation'])return;if(_0x47fec1['batch']['isUndo']||!_0x47fec1['batch']['isLocal'])return;let _0x12a775,_0x307f9a;switch(_0x47fec1['type']){case'insert':_0x12a775=_0x33a718['model']['createPositionAt'](_0x47fec1['position']),_0x307f9a=_0x12a775['getShiftedBy'](_0x47fec1['howMany']);break;case'split':_0x12a775=_0x33a718['model']['createPositionAt'](_0x47fec1['splitPosition']),_0x307f9a=_0x33a718['model']['createPositionAt'](_0x47fec1['moveTargetPosition']);break;case'move':_0x12a775=_0x33a718['model']['createPositionAt'](_0x47fec1['targetPosition']),_0x307f9a=_0x12a775['getShiftedBy'](_0x47fec1['howMany']);break;default:return;}const _0x5b762c=_0x33a718['model']['createRange'](_0x12a775,_0x307f9a);_0x33a718['model']['change'](()=>{for(const {suggestion:_0x4fecd1,meta:_0x1694ce}of this['_findSuggestions'](_0x5b762c)){if(_0x4fecd1['isMultiRange'])continue;if('formatInline'==_0x4fecd1['type'])continue;const _0x342540=this['_getAttributeKey'](_0x4fecd1);if(_0x342540&&this['_isBlockAttribute'](_0x342540)&&'split'!=_0x47fec1['type'])continue;const _0x594983=_0x4fecd1['data']&&_0x4fecd1['data']['multipleBlocks'];('formatBlock'!=_0x4fecd1['type']||'split'==_0x47fec1['type']&&!_0x594983)&&(_0x1694ce['containsRangeInObject']||'insertion'==_0x4fecd1['type']&&_0x1694ce['isOwn']||_0x4fecd1['getFirstRange']()['containsRange'](_0x5b762c)&&this['_breakSuggestionMarker'](_0x4fecd1,_0x12a775,_0x307f9a));}});},{'priority':'lowest'}),_0x33a718['model']['on']('deleteContent',(_0x25b537,_0x209016)=>{const _0x4d5efb=_0x209016[0x0],_0x54f4b6=_0x209016[0x1];if(_0x54f4b6&&_0x54f4b6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4d5efb['isCollapsed'])return;const _0x2343c0=_0x33a718['model']['schema'],{start:_0x4fc411,end:_0x277e78}=_0x4d5efb['getFirstRange'](),_0x588ec8=_0x4fc411['nodeAfter']&&_0x2343c0['isLimit'](_0x4fc411['nodeAfter'])?null:_0x2343c0['getNearestSelectionRange'](_0x4fc411,'forward'),_0x1e460b=_0x277e78['nodeBefore']&&_0x2343c0['isLimit'](_0x277e78['nodeBefore'])?null:_0x2343c0['getNearestSelectionRange'](_0x277e78,'backward'),_0x1c66cb=_0x33a718['model']['createRange'](_0x588ec8?_0x588ec8['start']:_0x4fc411,_0x1e460b?_0x1e460b['end']:_0x277e78);_0x33a718['model']['change'](_0xd6d36=>{this['markDeletion'](_0x1c66cb);const _0x13ba27=_0x33a718['model']['schema']['getNearestSelectionRange'](_0x1c66cb['start']);_0x4d5efb['is']('documentSelection')?_0xd6d36['setSelection'](_0x13ba27):_0x4d5efb['setTo'](_0x13ba27);}),_0x25b537['stop']();},{'priority':_0x1691ee['normal']+0xa}),_0x33a718['model']['on']('insertContent',(_0x1fe579,_0x36661b)=>{const _0x1c809b=_0x36661b[_0x36661b['length']-0x1];_0x1c809b&&_0x1c809b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x33a718['model']['change'](()=>{let _0x4be37a=_0x33a718['model']['insertContent'](_0x36661b[0x0],_0x36661b[0x1],_0x36661b[0x2],{'forceDefaultExecution':!0x0});if(!_0x4be37a)return;_0x1fe579['return']=_0x4be37a['clone']();const _0x5e1d04=_0x4be37a['end']['nodeBefore'],_0x2531a5=_0x33a718['model']['schema'];_0x5e1d04&&_0x2531a5['isBlock'](_0x5e1d04)&&!_0x2531a5['isObject'](_0x5e1d04)&&(_0x4be37a=_0x33a718['model']['createRange'](_0x4be37a['start'],_0x33a718['model']['createPositionAt'](_0x5e1d04,'end'))),this['markInsertion'](_0x4be37a);}),_0x1fe579['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xdf52c8=new O(_0x33a718,this['_suggestions']);_0x33a718['commands']['add']('acceptSuggestion',_0xdf52c8),this['enableCommand']('acceptSuggestion');const _0x1b3681=new R(_0x33a718,this['_suggestions']);_0x33a718['commands']['add']('discardSuggestion',_0x1b3681),this['enableCommand']('discardSuggestion'),_0x33a718['commands']['add']('acceptAllSuggestions',new x(_0x33a718,_0xdf52c8,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x33a718['commands']['add']('discardAllSuggestions',new x(_0x33a718,_0x1b3681,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x33a718['commands']['add']('acceptSelectedSuggestions',new E(_0x33a718,_0xdf52c8,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x33a718['commands']['add']('discardSelectedSuggestions',new E(_0x33a718,_0x1b3681,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x590da7=_0x33a718['plugins']['get']('CommentsRepository');this['listenTo'](_0x590da7,'addComment',(_0x24916c,{threadId:_0x270690})=>{const _0x3746fe=this['_suggestions']['get'](_0x270690);_0x3746fe&&_0x3746fe['commentThread']&&0x1===_0x3746fe['commentThread']['length']&&this['_updateSuggestionData'](_0x270690,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x590da7,'removeComment',(_0x2f79a5,{threadId:_0x2b3d92})=>{const _0x3596ed=this['_suggestions']['get'](_0x2b3d92);_0x3596ed&&_0x3596ed['commentThread']&&!_0x3596ed['commentThread']['length']&&this['_updateSuggestionData'](_0x2b3d92,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1af6ef){const _0x21e3ba=_0x268318([0x66,0x75,0x53,0x70,0x35,0x69,0x45,0x55,0x73,0x79,0x30,0x51,0x68,0x62,0x6f,0x38,0x64,0x4b,0x33,0x71,0x48,0x4a,0x7a,0x5a,0x72,0x54,0x46,0x49,0x58,0x77,0x6b,0x52,0x44,0x6c,0x4e,0x74,0x50,0x39,0x36,0x4c,0x6d,0x65,0x32,0x6e,0x4d,0x59,0x31,0x37,0x67,0x4f,0x6a,0x42,0x57,0x56,0x43,0x63,0x47,0x34,0x61,0x41,0x76,0x78]),_0x18e0f8=0x3f6c3b8d,_0x19242e=0x3f6b5bad^_0x18e0f8,_0x347425=window[_0x268318([0x44,0x61,0x74,0x65])][_0x268318([0x6e,0x6f,0x77])](),_0x14d48d=_0x1af6ef[_0x268318([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53d737=new window[(_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55eca1=>{_0x14d48d[_0x268318([0x6f,0x6e,0x63,0x65])](_0x268318([0x72,0x65,0x61,0x64,0x79]),_0x55eca1);}),_0x261c93={[_0x268318([0x6b,0x74,0x79])]:_0x268318([0x45,0x43]),[_0x268318([0x75,0x73,0x65])]:_0x268318([0x73,0x69,0x67]),[_0x268318([0x63,0x72,0x76])]:_0x268318([0x50,0x2d,0x32,0x35,0x36]),[_0x268318([0x78])]:_0x268318([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]),[_0x268318([0x79])]:_0x268318([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]),[_0x268318([0x61,0x6c,0x67])]:_0x268318([0x45,0x53,0x32,0x35,0x36])},_0x3524ba=_0x14d48d[_0x268318([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x268318([0x67,0x65,0x74])](_0x268318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x557e76(){let _0x859ba4,_0x449463=null,_0x24ada5=null;try{if(_0x3524ba==_0x268318([0x47,0x50,0x4c]))return _0x268318([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x859ba4=_0x30524f(),!_0x859ba4)return _0x268318([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x859ba4[_0x268318([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x24ada5=_0x4c3c38(_0x859ba4[_0x268318([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x859ba4[_0x268318([0x6a,0x74,0x69])])),await _0x33d8f2()?_0x4ec16b()?_0x9a759f()?_0x268318([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c848b()?(_0x859ba4[_0x268318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x268318([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x449463=_0x4542ec(_0x268318([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x859ba4[_0x268318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x268318([0x74,0x72,0x69,0x61,0x6c])&&(_0x449463=_0x4542ec(_0x268318([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ac229()):_0x268318([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x268318([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x268318([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xa65c3d){return _0x268318([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x9a759f(){const _0x42c76a=[_0x268318([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x268318([0x74,0x72,0x69,0x61,0x6c])][_0x268318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x859ba4[_0x268318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x347425/0x3e8:0xe10*_0x19242e;return _0x859ba4[_0x268318([0x65,0x78,0x70])]<_0x42c76a;}function _0x4ec16b(){const _0x2b091d=_0x859ba4[_0x268318([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2b091d)return!0x1;if(_0x2b091d[_0x268318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268318([0x2a])))return!0x0;if(_0x2b091d[_0x268318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268318([0x54,0x43])))return!0x0;if(_0x2b091d[_0x268318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268318([0x52,0x54,0x43]))){if(_0x5ee274())return!0x0;if(_0x1f8ccd()||_0x3814b5())return!0x0;}return!0x1;}function _0x3c848b(){const _0x122801=_0x859ba4[_0x268318([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x122801||0x0==_0x122801[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x291c6f}=new URL(window[_0x268318([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x122801[_0x268318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x291c6f))return!0x0;const _0x10933d=_0x291c6f[_0x268318([0x73,0x70,0x6c,0x69,0x74])](_0x268318([0x2e]));return _0x122801[_0x268318([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d4ba5=>_0x2d4ba5[_0x268318([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x268318([0x2a])))[_0x268318([0x6d,0x61,0x70])](_0x3e034a=>_0x3e034a[_0x268318([0x73,0x70,0x6c,0x69,0x74])](_0x268318([0x2e])))[_0x268318([0x73,0x6f,0x6d,0x65])](_0x2d4a78=>_0x10933d[_0x268318([0x65,0x76,0x65,0x72,0x79])]((_0x59827c,_0x30d49b)=>_0x2d4a78[_0x30d49b]===_0x59827c||_0x2d4a78[_0x30d49b]===_0x268318([0x2a])));}function _0x5ac229(){return _0x449463&&_0x24ada5?new window[(_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45f1f5,_0x17f0b8)=>{_0x449463[_0x268318([0x74,0x68,0x65,0x6e])](_0x45f1f5,_0x17f0b8),_0x24ada5[_0x268318([0x74,0x68,0x65,0x6e])](_0x92086d=>{_0x92086d!=_0x268318([0x56,0x61,0x6c,0x69,0x64])&&_0x45f1f5(_0x92086d);},_0x17f0b8);}):_0x449463||_0x24ada5||_0x268318([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c3c38(_0x279eb9,_0x2d10d1){return new window[(_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaaa18e=>{if(_0x2cbf79())return _0xaaa18e(_0x268318([0x56,0x61,0x6c,0x69,0x64]));_0x3dcc9f(),_0x14d48d[_0x268318([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x268318([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4fb5a5=!0x1;const _0x12d317=_0x2612d4();function _0xe62400(_0x558e1b){return!!_0x558e1b&&(typeof _0x558e1b===_0x268318([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x558e1b===_0x268318([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x558e1b[_0x268318([0x74,0x68,0x65,0x6e])]===_0x268318([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x558e1b[_0x268318([0x63,0x61,0x74,0x63,0x68])]===_0x268318([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x626bf7(_0x4f7ce1){_0x443481(_0x4f7ce1)[_0x268318([0x74,0x68,0x65,0x6e])](_0x5b399e=>{if(!_0x5b399e||_0x5b399e[_0x268318([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x268318([0x6f,0x6b]))return _0x268318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x7e9828(_0x2fa87d(_0x12d317+_0x2d10d1))!=_0x5b399e[_0x268318([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x268318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x268318([0x56,0x61,0x6c,0x69,0x64]);})[_0x268318([0x74,0x68,0x65,0x6e])](_0x11566a=>(_0x486832(),_0x11566a),()=>{const _0xf751a8=_0x49016a();return null==_0xf751a8?(_0x486832(),_0x268318([0x56,0x61,0x6c,0x69,0x64])):_0x268318(_0x347425-_0xf751a8>(0x1b60bf8d^_0x18e0f8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x268318([0x74,0x68,0x65,0x6e])](_0xaaa18e)[_0x268318([0x63,0x61,0x74,0x63,0x68])](()=>{_0xaaa18e(_0x268318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xbac6a=0x3f5ad50d^_0x18e0f8;function _0x486832(){const _0x325ac9=_0x268318([0x6c,0x6c,0x63,0x74,0x2d])+_0x7e9828(_0x2fa87d(_0x279eb9)),_0x3daa69=_0x174403(_0x7e9828(window[_0x268318([0x4d,0x61,0x74,0x68])][_0x268318([0x63,0x65,0x69,0x6c])](_0x347425/_0xbac6a)));window[_0x268318([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x268318([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x325ac9,_0x3daa69);}function _0x49016a(){const _0x2a6d8e=_0x268318([0x6c,0x6c,0x63,0x74,0x2d])+_0x7e9828(_0x2fa87d(_0x279eb9)),_0x38461d=window[_0x268318([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x268318([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a6d8e);return _0x38461d?window[_0x268318([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x174403(_0x38461d),0x10)*_0xbac6a:null;}function _0x443481(_0x42de30){return new window[(_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x295635,_0x314ee5)=>{_0x42de30[_0x268318([0x74,0x68,0x65,0x6e])](_0x295635,_0x314ee5),window[_0x268318([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x314ee5,0x3f6def4d^_0x18e0f8);});}}_0x14d48d[_0x268318([0x6f,0x6e])](_0x268318([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x556c0a,_0x30bb3a)=>{if(_0x30bb3a[0x0]!=_0x279eb9)return _0xaaa18e(_0x268318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x30bb3a[0x1]={..._0x30bb3a[0x1],[_0x268318([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12d317};},{[_0x268318([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x268318([0x68,0x69,0x67,0x68])}),_0x14d48d[_0x268318([0x6f,0x6e])](_0x268318([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3bfec2=>{_0xe62400(_0x3bfec2[_0x268318([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4fb5a5=!0x0,_0x626bf7(_0x3bfec2[_0x268318([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x268318([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x268318([0x6c,0x6f,0x77])}),_0x53d737[_0x268318([0x74,0x68,0x65,0x6e])](()=>{_0x4fb5a5||_0xaaa18e(_0x268318([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2cbf79(){return _0x14d48d[_0x268318([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x268318([0x76,0x69,0x65,0x77])][_0x268318([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x268318([0x61,0x75,0x74,0x6f]);}function _0x3dcc9f(){_0x14d48d[_0x268318([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x268318([0x76,0x69,0x65,0x77])][_0x268318([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x268318([0x61,0x75,0x74,0x6f]);}}function _0x4542ec(_0x34d96e){const _0x516450=[new window[(_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f567f=>setTimeout(_0x1f567f,0x3f650541^_0x18e0f8)),_0x53d737[_0x268318([0x74,0x68,0x65,0x6e])](()=>new window[(_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a1ae0=>{let _0x152345=0x0;_0x14d48d[_0x268318([0x6d,0x6f,0x64,0x65,0x6c])][_0x268318([0x6f,0x6e])](_0x268318([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x29b3c7,_0x14d3e7)=>{_0x14d3e7[0x0][_0x268318([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x152345++,_0x152345==(0x3f6c3a75^_0x18e0f8)&&(_0x5a1ae0(),_0x29b3c7[_0x268318([0x6f,0x66,0x66])]());});}))];return window[_0x268318([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x268318([0x72,0x61,0x63,0x65])](_0x516450)[_0x268318([0x74,0x68,0x65,0x6e])](()=>_0x34d96e);}async function _0x5ece8d(){await _0x53d737,_0x14d48d[_0x268318([0x6d,0x6f,0x64,0x65,0x6c])][_0x268318([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x267591,_0x14d48d[_0x268318([0x6d,0x6f,0x64,0x65,0x6c])][_0x268318([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x267591,_0x14d48d[_0x268318([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x268318([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5ee274(){return _0x10ac6b(_0x268318([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x538235(_0x268318([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x268318([0x73,0x74,0x61,0x74,0x65])]==_0x268318([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1f8ccd(){return _0x10ac6b(_0x268318([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 _0x3814b5(){return _0x10ac6b(_0x268318([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5f503(_0x23520f){const _0x277178=_0x624efa();_0x14d48d[_0x277178]=_0x268318([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23520f,_0x23520f!=_0x268318([0x56,0x61,0x6c,0x69,0x64])&&_0x5ece8d();}function _0x624efa(){const _0x9cc0db=window[_0x268318([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x268318([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x268318([0x6e,0x6f,0x77])]())[_0x268318([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x268318([0x2e]),'');let _0x391dba=_0x268318([0x66]);for(let _0x3fb200=0x0;_0x3fb200<_0x9cc0db[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fb200+=0x2){let _0x12ef6b=window[_0x268318([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9cc0db[_0x268318([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fb200,_0x3fb200+0x2));_0x12ef6b>=_0x21e3ba[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12ef6b-=_0x21e3ba[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x391dba+=_0x21e3ba[_0x12ef6b];}return _0x391dba;}function _0x30524f(){const _0xfc519b=_0x3524ba[_0x268318([0x73,0x70,0x6c,0x69,0x74])](_0x268318([0x2e]));if(0x3!=_0xfc519b[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x580738(_0xfc519b[0x1]);function _0x580738(_0x14b50d){const _0x706eb4=_0x4fc45d(_0x14b50d);return _0x706eb4&&_0x3f7b51()?_0x706eb4:null;function _0x3f7b51(){const _0x5ad1b5=_0x706eb4[_0x268318([0x6a,0x74,0x69])],_0x5abea2=window[_0x268318([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ad1b5[_0x268318([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ad1b5[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48d306={..._0x706eb4,[_0x268318([0x6a,0x74,0x69])]:_0x5ad1b5[_0x268318([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ad1b5[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48d306[_0x268318([0x76,0x63])],_0x2fa87d(_0x48d306)==_0x5abea2;}}}async function _0x33d8f2(){let _0x47f38f=!0x0;try{const _0x6b5c59=_0x3524ba[_0x268318([0x73,0x70,0x6c,0x69,0x74])](_0x268318([0x2e])),[_0xc0029a,_0x415498,_0x1a1643]=_0x6b5c59;return _0x48d1d8(_0xc0029a),await _0x462736(_0xc0029a,_0x415498,_0x1a1643),_0x47f38f;}catch(_0x3c87e4){return!0x1;}function _0x48d1d8(_0x851bc5){const _0x3fa082=_0x4fc45d(_0x851bc5);_0x3fa082&&_0x3fa082[_0x268318([0x61,0x6c,0x67])]==_0x268318([0x45,0x53,0x32,0x35,0x36])||(_0x47f38f=!0x1);}async function _0x462736(_0x4e7a36,_0x3f1033,_0x192a1e){const _0x5c6da5=window[_0x268318([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x268318([0x66,0x72,0x6f,0x6d])](_0x49384c(_0x192a1e),_0x3d4f77=>_0x3d4f77[_0x268318([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5541d7=new window[(_0x268318([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x268318([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e7a36+_0x268318([0x2e])+_0x3f1033),_0x1e1e4f=window[_0x268318([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x268318([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e1e4f)return;const _0x3e8267=await _0x1e1e4f[_0x268318([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x268318([0x6a,0x77,0x6b]),_0x261c93,{[_0x268318([0x6e,0x61,0x6d,0x65])]:_0x268318([0x45,0x43,0x44,0x53,0x41]),[_0x268318([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x268318([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x268318([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e1e4f[_0x268318([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x268318([0x6e,0x61,0x6d,0x65])]:_0x268318([0x45,0x43,0x44,0x53,0x41]),[_0x268318([0x68,0x61,0x73,0x68])]:{[_0x268318([0x6e,0x61,0x6d,0x65])]:_0x268318([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3e8267,_0x5c6da5,_0x5541d7)||(_0x47f38f=!0x1);}}function _0x4fc45d(_0x1c1c40){return _0x1c1c40[_0x268318([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x268318([0x65,0x79]))?JSON[_0x268318([0x70,0x61,0x72,0x73,0x65])](_0x49384c(_0x1c1c40)):null;}function _0x49384c(_0x144864){return window[_0x268318([0x61,0x74,0x6f,0x62])](_0x144864[_0x268318([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x268318([0x2b]))[_0x268318([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x268318([0x2f])));}function _0x2fa87d(_0x1b05db){let _0x553f27=0x1505;function _0x40c894(_0x54d7e3){for(let _0x5cd934=0x0;_0x5cd934<_0x54d7e3[_0x268318([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cd934++){const _0x5b2107=_0x54d7e3[_0x268318([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5cd934);_0x553f27=(_0x553f27<<0x5)+_0x553f27+_0x5b2107,_0x553f27&=_0x553f27;}}function _0x262c6b(_0x4ec78e){Array[_0x268318([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ec78e)?_0x4ec78e[_0x268318([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x262c6b):_0x4ec78e&&typeof _0x4ec78e==_0x268318([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x268318([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ec78e)[_0x268318([0x73,0x6f,0x72,0x74])]()[_0x268318([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x22e80d,_0x69a50d])=>{_0x40c894(_0x22e80d),_0x262c6b(_0x69a50d);}):_0x40c894(window[_0x268318([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ec78e));}return _0x262c6b(_0x1b05db),_0x553f27>>>0x0;}function _0x7e9828(_0x254158){return _0x254158[_0x268318([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x268318([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x268318([0x30]));}function _0x174403(_0x48fac0){return _0x48fac0[_0x268318([0x73,0x70,0x6c,0x69,0x74])]('')[_0x268318([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x268318([0x6a,0x6f,0x69,0x6e])]('');}function _0x10ac6b(_0x56b77c){return _0x14d48d[_0x268318([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x268318([0x68,0x61,0x73])](_0x56b77c);}function _0x538235(_0x3e8b9c){return _0x14d48d[_0x268318([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x268318([0x67,0x65,0x74])](_0x3e8b9c);}function _0x267591(){}function _0x268318(_0xf9640){return _0xf9640['map'](_0x5219db=>String['fromCharCode'](_0x5219db))['join']('');}_0x5f503(await _0x557e76());}(this);}set['adapter'](_0x5c0bc1){if(this['_adapter'])throw new _0x5dd626('track-changes-adapter-already-set',this);this['_adapter']=_0x5c0bc1;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x563d2d=!0x1,toJSON:_0x5066c1=!0x1}={}){const _0x7293ec=[];for(const _0x5502c9 of this['_suggestions']['values']())_0x563d2d&&!_0x5502c9['isInContent']||_0x7293ec['push'](_0x5502c9);return _0x5066c1?_0x7293ec['map'](_0x10b9d0=>_0x10b9d0['toJSON']()):_0x7293ec;}['getSuggestion'](_0x3872d5){const _0x346e62=this['_suggestions']['get'](_0x3872d5);if(!_0x346e62)throw new _0x5dd626('track-changes-suggestion-not-found',this);return _0x346e62;}['hasSuggestion'](_0x566901){return this['_suggestions']['has'](_0x566901);}['addSuggestionData'](_0xa369f3){const {authorId:_0x44c9f8,id:_0x402beb,attributes:_0x24bfac}=_0xa369f3,[_0x36cb10,_0x54f53f]=_0xa369f3['type']['split'](':'),_0x309d0d=this['_suggestions']['get'](_0x402beb)||this['_createSuggestion'](_0x36cb10,_0x54f53f,_0x402beb,_0x44c9f8,_0x24bfac);if(this['_addThreadToSuggestion'](_0x309d0d),this['_checkSuggestionCorrectness'](_0x309d0d,_0x36cb10,_0x54f53f||null,_0x44c9f8),_0x309d0d['createdAt']=_0xa369f3['createdAt'],_0x309d0d['_isDataLoaded']=!0x0,_0x24bfac&&_0x24bfac['@external']){const _0x702dd1=_0x24bfac['@external'],_0x3d14cc=this['_getExternalAuthor'](_0x702dd1['authorName']);_0x309d0d['authoredAt']=_0x702dd1['createdAt'],_0x309d0d['author']=_0x3d14cc,_0x309d0d['isExternal']=!0x0;}else _0x309d0d['authoredAt']=_0xa369f3['createdAt'];switch(_0xa369f3['data']&&(_0x309d0d['data']=_0xa369f3['data']),_0xa369f3['attributes']&&(_0x309d0d['attributes']=_0xa369f3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x309d0d['_saved']=!0x0),this['_suggestionState']['get'](_0x309d0d)){case'notReady':this['_suggestionState']['set'](_0x309d0d,'dataReady');break;case'markerReady':_0x309d0d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x309d0d])),this['_refreshSuggestionsChain'](new Set([_0x309d0d])),this['_suggestionState']['set'](_0x309d0d,'ready'),this['fire']('suggestionLoaded',_0x309d0d)):this['_suggestionState']['set'](_0x309d0d,'removed');}return _0x309d0d;}['acceptSuggestion'](_0x11e84e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c210a of _0x11e84e['getAllAdjacentSuggestions']())_0x2c210a['accept']();});});}['discardSuggestion'](_0x4f8846){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1cea5d of _0x4f8846['getAllAdjacentSuggestions']())_0x1cea5d['discard']();});});}['enableCommand'](_0x4591f8,_0x23cc47){const _0x1c15db=this['editor']['commands']['get'](_0x4591f8);if(!_0x1c15db)throw new _0x5dd626('track-changes-command-not-found',this,{'commandName':_0x4591f8});if(this['_enabledCommands']['has'](_0x1c15db))throw new _0x5dd626('track-changes-enable-command-twice',this,{'commandName':_0x4591f8});this['_enabledCommands']['add'](_0x1c15db),_0x23cc47&&_0x1c15db['on']('execute',(_0x25371f,_0x42fe2d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x42fe2d['length']>0x0&&_0x42fe2d[_0x42fe2d['length']-0x1]&&_0x42fe2d[_0x42fe2d['length']-0x1]['forceDefaultExecution']?_0x42fe2d['pop']():(_0x25371f['return']=_0x23cc47((..._0x2e7882)=>_0x1c15db['execute'](..._0x2e7882,{'forceDefaultExecution':!0x0}),..._0x42fe2d),_0x25371f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x58b7a4){let _0x141b1a,_0x1cfd72;const _0x3ff543=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x141b1a=_0x58b7a4();}catch(_0x1715ac){_0x1cfd72=_0x1715ac;}return _0x3ff543||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1cfd72&&_0x5dd626['rethrowUnexpectedError'](_0x1cfd72,this),_0x141b1a;}['markInsertion'](_0x4f38d3,_0x8a4c2f=null,_0x3bcca2={}){if(_0x4f38d3['isCollapsed'])return null;const _0x525e4c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3a9a94,meta:_0x188def}of this['_findSuggestions'](_0x4f38d3,'insertion'))if(_0x188def['isOwn']){if(!_0x188def['isNextTo']){if(_0x188def['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3a9a94,_0x3bcca2))continue;return _0x3a9a94;}if(Qt(_0x3a9a94,_0x3bcca2))return _0x3a9a94;this['_breakSuggestionMarker'](_0x3a9a94,_0x4f38d3['start'],_0x4f38d3['end']);break;}if(_0x8a4c2f==_0x3a9a94['subType']&&Qt(_0x3a9a94,_0x3bcca2)){const _0x481b74=_0x3a9a94['getFirstRange']();return _0x481b74['start']['isEqual'](_0x4f38d3['end'])?this['_setSuggestionRange'](_0x3a9a94,this['_model']['createRange'](_0x4f38d3['start'],_0x481b74['end'])):this['_setSuggestionRange'](_0x3a9a94,this['_model']['createRange'](_0x481b74['start'],_0x4f38d3['end'])),_0x3a9a94;}}const _0x1412dd=_0x2612d4(),_0xa872c3=_0x525e4c['id'],_0x2197db=_0x8a4c2f?'insertion:'+_0x8a4c2f:'insertion',_0xad54d8=this['_setSuggestionData']({'id':_0x1412dd,'type':_0x2197db,'createdAt':new Date(),'authorId':_0xa872c3,'attributes':_0x3bcca2});return this['_addSuggestionMarker'](_0x2197db,_0x1412dd,_0xa872c3,_0x4f38d3),_0xad54d8;}['markMultiRangeInsertion'](_0x2e5fbf,_0xb0836c='multi',_0x477d3b={}){const _0x2d1b8e=this['editor']['plugins']['get']('Users')['me'],_0x198aea=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xb0836c,'join');for(const _0x3318ad of this['getSuggestions']())if(_0x3318ad['author']['id']==_0x2d1b8e['id']&&'insertion'==_0x3318ad['type']&&_0x3318ad['subType']==_0xb0836c&&Qt(_0x3318ad,_0x477d3b)&&(_0x198aea(_0x3318ad['getRanges'](),_0x2e5fbf)||_0x198aea(_0x2e5fbf,_0x3318ad['getRanges']()))){for(const _0x4c9e72 of _0x2e5fbf)_0x3318ad['addRange'](_0x4c9e72);return _0x3318ad;}for(const {suggestion:_0x5d8ff3,meta:_0x4d5861}of this['_findSuggestions'](_0x2e5fbf,'insertion')){if(!_0x4d5861['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4d5861['containsRangeInObject'])continue;if(!Qt(_0x5d8ff3,_0x477d3b))continue;let _0x38ab87=!0x0;for(const _0x402181 of _0x5d8ff3['getRanges']())for(const _0x215eab of _0x2e5fbf)if(!_0x402181['containsRange'](_0x215eab)){_0x38ab87=!0x1;break;}if(_0x38ab87)return _0x5d8ff3;}const _0x1deb3d=_0x2612d4(),_0x428587=_0x2d1b8e['id'],_0x21e956='insertion:'+_0xb0836c,_0x58c2dd=this['_setSuggestionData']({'id':_0x1deb3d,'type':_0x21e956,'createdAt':new Date(),'authorId':_0x428587,'attributes':_0x477d3b});for(const _0x19b071 of _0x2e5fbf)this['_addSuggestionMarker'](_0x21e956,_0x1deb3d,_0x428587,_0x19b071,o['getMultiRangeId']());return _0x58c2dd;}['markInlineFormat'](_0x559da2,_0x4e0f5a,_0x3009c9=null,_0x43fbcc={}){if(_0x3009c9=_0x3009c9||Jt(_0x4e0f5a),_0x559da2['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x387548=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3009c9,'accept');return this['forceDefaultExecution'](()=>_0x387548([_0x559da2],_0x4e0f5a,_0x43fbcc)),null;}const _0x3a8390=this['editor']['plugins']['get']('Users')['me'],_0x15e80a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x478789,meta:_0x3d9656}of this['_findSuggestions'](_0x559da2,'insertion'))_0x3d9656['isOwn']&&!_0x3d9656['isInsideObject']&&_0x15e80a['push'](..._0x478789['getRanges']());}const _0x1a1a5a=function(_0x146719,_0x3aeb10){const _0x2b765a=[];for(const _0x42752c of _0x3aeb10){const _0x183d7f=_0x146719['getIntersection'](_0x42752c);_0x183d7f&&_0x2b765a['push'](_0x183d7f);}return _0x2b765a;}(_0x559da2,_0x15e80a),_0x504061=function(_0x227a37,_0x53d67c){const _0x90285e=[_0x227a37];for(const _0x40ab33 of _0x53d67c){let _0x470945=0x0;for(;_0x470945<_0x90285e['length'];){const _0x1b8c83=_0x90285e[_0x470945]['getDifference'](_0x40ab33);_0x90285e['splice'](_0x470945,0x1,..._0x1b8c83),_0x470945+=_0x1b8c83['length'];}}return _0x90285e;}(_0x559da2,_0x15e80a);_0x1a1a5a['length']&&this['_model']['change'](()=>{for(const _0x24c89a of _0x1a1a5a){const _0x3b5e86=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3009c9,'accept');this['forceDefaultExecution'](()=>_0x3b5e86([_0x24c89a],_0x4e0f5a,_0x43fbcc));}});for(const _0x2d3ed1 of _0x504061){let _0x3d841e=null,_0x2e671c=_0x2d3ed1['start'],_0x491154=_0x2d3ed1['end'];for(const {suggestion:_0x35ce5e,meta:_0x759eb7}of this['_findSuggestions'](_0x2d3ed1,'formatInline')){if(!_0x759eb7['isOwn'])continue;if(_0x35ce5e['subType']!=_0x3009c9)continue;if(!Qt(_0x35ce5e,_0x43fbcc))continue;const _0x510309=_0x35ce5e['getFirstRange']();if(_0x510309['containsRange'](_0x2d3ed1,!0x0))return null;_0x2e671c=_0x2e671c['isBefore'](_0x510309['start'])?_0x2e671c:_0x510309['start'],_0x491154=_0x491154['isAfter'](_0x510309['end'])?_0x491154:_0x510309['end'],_0x3d841e?_0x510309['start']['isBefore'](_0x3d841e['getFirstRange']()['start'])?(_0x3d841e['removeMarkers'](),_0x3d841e=_0x35ce5e):_0x35ce5e['removeMarkers']():_0x3d841e=_0x35ce5e;}const _0x3f97c9=this['_model']['createRange'](_0x2e671c,_0x491154);if(_0x3d841e)this['_setSuggestionRange'](_0x3d841e,_0x3f97c9);else{const _0x55d602=_0x2612d4(),_0x1981af=_0x3a8390['id'];this['_setSuggestionData']({'id':_0x55d602,'type':'formatInline:'+_0x3009c9,'data':_0x4e0f5a,'createdAt':new Date(),'authorId':_0x1981af,'attributes':_0x43fbcc}),this['_addSuggestionMarker']('formatInline:'+_0x3009c9,_0x55d602,_0x1981af,_0x3f97c9);}}return null;}['markBlockFormat'](_0x2f3dc9,_0x5a5ce9,_0x272666=[],_0x5d1c9a=null,_0x11c393={}){_0x5a5ce9['formatGroupId']||(_0x5a5ce9['formatGroupId']=_0x5a5ce9['commandName']),_0x5a5ce9['multipleBlocks']=_0x2f3dc9['is']('range'),_0x5d1c9a=_0x5d1c9a||Jt(_0x5a5ce9);const _0x48757d=_0x272666['map'](_0x357530=>qt(_0x357530,this['_model'])),_0x4b117c=_0x2f3dc9['is']('range')?_0x2f3dc9:qt(_0x2f3dc9,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5934db=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d1c9a,'accept');return this['forceDefaultExecution'](()=>_0x5934db([_0x4b117c],_0x5a5ce9,_0x11c393)),null;}_0x48757d['push'](_0x4b117c);let _0x125ad9=!0x0;for(const _0x58a22c of _0x48757d)if(!this['_rangeIsInLocalUserInsertion'](_0x58a22c)){_0x125ad9=!0x1;break;}if(_0x125ad9&&'always'!==this['_trackFormatChanges']){const _0x344451=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d1c9a,'accept');return this['forceDefaultExecution'](()=>_0x344451([_0x4b117c],_0x5a5ce9,_0x11c393)),null;}let _0x3f2bd4=null,_0x364415=_0x4b117c['start'],_0x363af4=_0x4b117c['end'];for(const {suggestion:_0x524f61,meta:_0x50e56f}of this['_findSuggestions'](_0x4b117c,'formatBlock')){if(!_0x50e56f['isOwn'])continue;if(_0x50e56f['isNextTo']||_0x50e56f['containsRangeInObject']||_0x50e56f['isInsideObject'])continue;if(_0x524f61['data']['formatGroupId']!=_0x5a5ce9['formatGroupId'])continue;if(!Qt(_0x524f61,_0x11c393))continue;const _0x1ed805=_0x524f61['getFirstRange']();if(_0x524f61['subType']==_0x5d1c9a){if(_0x1ed805['containsRange'](_0x4b117c,!0x0))return null;_0x364415=_0x364415['isBefore'](_0x1ed805['start'])?_0x364415:_0x1ed805['start'],_0x363af4=_0x363af4['isAfter'](_0x1ed805['end'])?_0x363af4:_0x1ed805['end'],_0x3f2bd4?_0x1ed805['start']['isBefore'](_0x3f2bd4['getFirstRange']()['start'])?(_0x3f2bd4['removeMarkers'](),_0x3f2bd4=_0x524f61):_0x524f61['removeMarkers']():_0x3f2bd4=_0x524f61;}else{const _0x448fd4=_0x4b117c['getIntersection'](_0x1ed805);this['_cutOutSuggestionMarker'](_0x524f61,_0x448fd4);}}const _0x3ee6c8=this['editor']['plugins']['get']('Users')['me'],_0x2f0b54=_0x2612d4(),_0x2162fe=_0x3ee6c8['id'];if(_0x3f2bd4)return this['_setSuggestionRange'](_0x3f2bd4,this['_model']['createRange'](_0x364415,_0x363af4)),_0x3f2bd4;{const _0x16154b=this['_setSuggestionData']({'id':_0x2f0b54,'type':'formatBlock:'+_0x5d1c9a,'data':_0x5a5ce9,'createdAt':new Date(),'authorId':_0x2162fe,'attributes':_0x11c393});return this['_addSuggestionMarker']('formatBlock:'+_0x5d1c9a,_0x2f0b54,_0x2162fe,this['_model']['createRange'](_0x364415,_0x363af4)),_0x16154b;}}['markMultiRangeBlockFormat'](_0x1ca618,_0x597513,_0x554507=[],_0x1160dd=null,_0x5a9814={}){_0x597513['formatGroupId']||(_0x597513['formatGroupId']=_0x597513['commandName']);const _0x3a9991=_0x1ca618[0x0];_0x597513['multipleBlocks']=_0x3a9991['is']('range'),_0x1160dd=_0x1160dd||Jt(_0x597513);const _0x34fc39=_0x554507['map'](_0x127f90=>qt(_0x127f90,this['_model'])),_0x25d6c3=_0x3a9991['is']('range')?_0x1ca618:_0x1ca618['map'](_0x231d9e=>qt(_0x231d9e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x361dfb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1160dd,'accept');return this['forceDefaultExecution'](()=>_0x361dfb(_0x25d6c3,_0x597513,_0x5a9814)),null;}_0x34fc39['push'](..._0x25d6c3);let _0x2a294d=!0x0;for(const _0x1f07f6 of _0x34fc39)if(!this['_rangeIsInLocalUserInsertion'](_0x1f07f6)){_0x2a294d=!0x1;break;}if(_0x2a294d&&'always'!==this['_trackFormatChanges']){const _0x4f8466=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1160dd,'accept');return this['forceDefaultExecution'](()=>_0x4f8466(_0x25d6c3,_0x597513,_0x5a9814)),null;}const _0x5c1020=this['editor']['plugins']['get']('Users')['me'];for(const _0x14930d of this['getSuggestions']()){if(_0x14930d['author']['id']!=_0x5c1020['id'])continue;if('formatBlock'!=_0x14930d['type']||_0x14930d['data']['formatGroupId']!=_0x597513['formatGroupId'])continue;if(!Qt(_0x14930d,_0x5a9814))continue;const _0x43a12f=_0x14930d['subType']==_0x1160dd;for(let _0x2dbff8=0x0;_0x2dbff8<_0x25d6c3['length'];_0x2dbff8++){const _0x46848a=_0x25d6c3[_0x2dbff8];for(const _0x1e464d of _0x14930d['getMarkers']()){const _0x2ba453=_0x1e464d['getRange']();if(_0x46848a['isEqual'](_0x2ba453)){_0x43a12f?(_0x25d6c3['splice'](_0x2dbff8,0x1),_0x2dbff8--):_0x14930d['removeMarker'](_0x1e464d['name']);break;}}}}if(0x0==_0x25d6c3['length'])return null;const _0x4819aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1160dd,'join');for(const _0x3926ea of this['getSuggestions']())if(_0x3926ea['author']['id']==_0x5c1020['id']&&'formatBlock'==_0x3926ea['type']&&_0x3926ea['data']['formatGroupId']==_0x597513['formatGroupId']&&_0x3926ea['subType']==_0x1160dd&&Qt(_0x3926ea,_0x5a9814)&&(_0x4819aa(_0x3926ea['getRanges'](),_0x25d6c3)||_0x4819aa(_0x25d6c3,_0x3926ea['getRanges']()))){for(const _0x58ccf8 of _0x25d6c3)_0x3926ea['addRange'](_0x58ccf8);return _0x3926ea;}const _0x47dc61=_0x2612d4(),_0xa3fcc3=_0x5c1020['id'],_0x3fe8cd='formatBlock:'+_0x1160dd,_0xc3a3da=this['_setSuggestionData']({'id':_0x47dc61,'type':_0x3fe8cd,'data':_0x597513,'createdAt':new Date(),'authorId':_0xa3fcc3,'attributes':_0x5a9814});for(const _0x32a7af of _0x25d6c3)this['_addSuggestionMarker'](_0x3fe8cd,_0x47dc61,_0xa3fcc3,_0x32a7af,o['getMultiRangeId']());return _0xc3a3da;}['markDeletion'](_0x29aea1,_0x1720bc=null,_0x5eed8f={}){if(_0x29aea1['isCollapsed'])return null;const _0x358aa9=this['editor']['plugins']['get']('Users')['me'],_0x21cc29=new _0x51fe0f(_0x29aea1['start'],_0x29aea1['end']);for(const {suggestion:_0x4998a1,meta:_0x3d3c81}of this['_findSuggestions'](_0x21cc29,'insertion'))if(_0x3d3c81['isOwn']&&!_0x3d3c81['isNextTo']){if(_0x4998a1['isMultiRange']){const _0x12ed51=_0x4998a1['getRanges']()['filter'](_0x3b6d54=>'$graveyard'!=_0x3b6d54['root']['rootName']);_0x12ed51['every'](_0x1ec3a4=>_0x21cc29['containsRange'](_0x1ec3a4,!0x0))&&_0x4998a1['discard']();if(_0x12ed51['some'](_0x5c5146=>_0x5c5146['containsRange'](_0x21cc29,!0x0))){const _0x5e20f9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1720bc,'accept');return this['forceDefaultExecution'](()=>_0x5e20f9([_0x21cc29],null,_0x5eed8f)),null;}}else{const _0x94e482=_0x21cc29['getIntersection'](_0x4998a1['getFirstRange']());null!==_0x94e482&&_0x4998a1['_onDiscard']([_0x94e482],null,_0x5eed8f);}}if(_0x21cc29['detach'](),_0x21cc29['isCollapsed']||'$graveyard'==_0x21cc29['root']['rootName'])return null;let _0x4dbf62=null,_0x508729=_0x21cc29['start'],_0x2ed43a=_0x21cc29['end'];const _0x46c045=this['_findSuggestions'](_0x21cc29,'deletion');for(const {suggestion:_0x3b13da,meta:_0x1430d9}of _0x46c045){const _0x2ddb78=this['_model']['createRange'](_0x508729,_0x2ed43a);if(_0x1430d9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1430d9['containsRangeInObject']&&!_0x1430d9['isInsideObject'])){if(_0x3b13da['isMultiRange']){if(!Qt(_0x3b13da,_0x5eed8f))continue;let _0x4218ea=!0x0;for(const _0x4f98cb of _0x3b13da['getRanges']()){if(_0x4f98cb['containsRange'](_0x2ddb78,!0x0))return _0x3b13da;_0x2ddb78['containsRange'](_0x4f98cb)||(_0x4218ea=!0x1);}_0x4218ea&&_0x3b13da['discard']();}else{const _0x211174=_0x3b13da['getFirstRange']();if(_0x211174['containsRange'](_0x2ddb78,!0x0))return _0x3b13da;if(!Qt(_0x3b13da,_0x5eed8f)){_0x2ddb78['containsRange'](_0x211174)?_0x3b13da['removeMarkers']():_0x211174['containsPosition'](_0x508729)?_0x508729=_0x211174['end']:_0x211174['containsPosition'](_0x2ed43a)&&(_0x2ed43a=_0x211174['start']);continue;}_0x508729=_0x508729['isBefore'](_0x211174['start'])?_0x508729:_0x211174['start'],_0x2ed43a=_0x2ed43a['isAfter'](_0x211174['end'])?_0x2ed43a:_0x211174['end'],_0x5eed8f=Object['assign']({},_0x3b13da['attributes']),_0x4dbf62?_0x211174['start']['isBefore'](_0x4dbf62['getFirstRange']()['start'])?(_0x4dbf62['removeMarkers'](),_0x4dbf62=_0x3b13da):_0x3b13da['removeMarkers']():_0x4dbf62=_0x3b13da;}}}if(_0x4dbf62)return this['_setSuggestionRange'](_0x4dbf62,this['_model']['createRange'](_0x508729,_0x2ed43a)),_0x4dbf62;{const _0x94633=_0x2612d4(),_0x2de8e1=this['_model']['createRange'](_0x508729,_0x2ed43a),_0xe360fe=_0x358aa9['id'],_0x1f6828=_0x1720bc?'deletion:'+_0x1720bc:'deletion',_0x72923b=this['_setSuggestionData']({'id':_0x94633,'type':_0x1f6828,'createdAt':new Date(),'authorId':_0xe360fe,'attributes':_0x5eed8f});return this['_addSuggestionMarker'](_0x1f6828,_0x94633,_0xe360fe,_0x2de8e1),_0x72923b;}}['markMultiRangeDeletion'](_0x376eb1,_0x2d773b='multi',_0x820f79={}){const _0x40a111=this['editor']['plugins']['get']('Users')['me'],_0x4d0347=_0x376eb1['map'](_0x50f166=>new _0x51fe0f(_0x50f166['start'],_0x50f166['end'])),_0x4e3904=new Set();for(const {suggestion:_0x32783c,meta:_0x3d9c68}of this['_findSuggestions'](_0x4d0347,'insertion'))_0x3d9c68['isOwn']&&!_0x3d9c68['isNextTo']&&_0x4e3904['add'](_0x32783c);for(const _0x2aaa56 of _0x4e3904)if(_0x2aaa56['isMultiRange']){const _0x1cc5d2=_0x2aaa56['getRanges']();(!_0x2aaa56['attributes']||!_0x2aaa56['attributes']['skipNestingCheck'])&&(_0x1cc5d2['every'](_0x392302=>_0x4d0347['some'](_0x58a023=>_0x58a023['containsRange'](_0x392302,!0x0)))&&_0x2aaa56['discard']());if(_0x4d0347['every'](_0xcef7cd=>_0x1cc5d2['some'](_0xdb605b=>_0xdb605b['containsRange'](_0xcef7cd,!0x0)))){const _0x365063=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d773b,'accept');return this['forceDefaultExecution'](()=>_0x365063(_0x376eb1,null,_0x820f79)),null;}}else{const _0x2f9d6b=_0x2aaa56['getFirstRange']();_0x4d0347['some'](_0x2275f8=>_0x2275f8['containsRange'](_0x2f9d6b,!0x0))&&_0x2aaa56['discard']();if(_0x4d0347['every'](_0x2a689f=>_0x2f9d6b['containsRange'](_0x2a689f,!0x0))){const _0x4bcc3c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d773b,'accept');return this['forceDefaultExecution'](()=>_0x4bcc3c(_0x4d0347,null,_0x820f79)),null;}}const _0x4e979a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d773b,'join');let _0x13adae=null;for(const _0x2bc40b of this['getSuggestions']())if(_0x2bc40b['author']['id']==_0x40a111['id']&&_0x2bc40b['isInContent']&&'deletion'==_0x2bc40b['type']&&_0x2bc40b['subType']==_0x2d773b&&Qt(_0x2bc40b,_0x820f79)&&(_0x4e979a(_0x2bc40b['getRanges'](),_0x4d0347)||_0x4e979a(_0x4d0347,_0x2bc40b['getRanges']()))){if(_0x13adae){if(_0x2bc40b['commentThread']&&_0x2bc40b['commentThread']['length'])continue;for(const _0x1b4f2e of _0x2bc40b['getRanges']())_0x13adae['isIntersectingWithRange'](_0x1b4f2e)||_0x13adae['addRange'](_0x1b4f2e);_0x2bc40b['removeMarkers']();}else{_0x13adae=_0x2bc40b;for(const _0x3d0361 of _0x4d0347)_0x2bc40b['isIntersectingWithRange'](_0x3d0361)||_0x2bc40b['addRange'](_0x3d0361);}}if(_0x13adae)return _0x13adae;_0x4e3904['clear']();for(const {suggestion:_0x10e6e5,meta:_0x25e4ac}of this['_findSuggestions'](_0x4d0347,'deletion'))_0x25e4ac['isOwn']&&(this['_mergeNestedSuggestions']||!_0x25e4ac['containsRangeInObject']&&!_0x25e4ac['isInsideObject'])&&Qt(_0x10e6e5,_0x820f79)&&_0x4e3904['add'](_0x10e6e5);for(const _0x26653b of _0x4e3904){const _0x54fb46=_0x26653b['getRanges']();if(!_0x820f79||!_0x820f79['skipNestingCheck']){if(_0x4d0347['every'](_0x5c1637=>_0x54fb46['some'](_0x3c8a32=>_0x3c8a32['containsRange'](_0x5c1637,!0x0))))return _0x26653b;}(!_0x26653b['attributes']||!_0x26653b['attributes']['skipNestingCheck'])&&(_0x54fb46['every'](_0x290bb1=>_0x4d0347['some'](_0x26ffee=>_0x26ffee['containsRange'](_0x290bb1,!0x0)))&&_0x26653b['discard']());}const _0x21229e=_0x2612d4(),_0x2304ed=_0x40a111['id'],_0x41c776='deletion:'+_0x2d773b,_0x1898d9=this['_setSuggestionData']({'id':_0x21229e,'type':_0x41c776,'createdAt':new Date(),'authorId':_0x2304ed,'attributes':_0x820f79});for(const _0x320de0 of _0x4d0347)_0x320de0['detach'](),_0x320de0['isCollapsed']||'$graveyard'==_0x320de0['root']['rootName']||this['_addSuggestionMarker'](_0x41c776,_0x21229e,_0x2304ed,_0x320de0,o['getMultiRangeId']());return _0x1898d9;}['markAttributeChange'](_0x45ab07,_0x5039c8,_0x11d86a,_0x16a1b2,_0x1a4292){if(_0x45ab07['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2cb18e=this['editor']['plugins']['get']('Users')['me']['id'],_0x5cd813=Array['from'](this['_suggestions']['values']())['filter'](_0x7dfcb9=>'attribute'==_0x7dfcb9['type']&&_0x7dfcb9['data']['key']==_0x5039c8&&_0x7dfcb9['isIntersectingWithRange'](_0x45ab07));if('default'===this['_trackFormatChanges']){const _0x5cdf3d=this['_findSuggestions'](_0x45ab07,'insertion')['filter'](({meta:_0x330c0f})=>_0x330c0f['isOwn']&&!_0x330c0f['isInsideObject']&&!_0x330c0f['isNextTo'])['map'](({suggestion:_0x12f981})=>_0x12f981);_0x5cd813['unshift'](..._0x5cdf3d);}const _0x5d468d=new Map([[_0x45ab07,_0x11d86a]]);for(const _0x5351cb of _0x5cd813){const _0x24faa4='attribute'==_0x5351cb['type']?_0x5351cb['data']['oldValue']:void 0x0,_0x3264de=_0x5351cb['getFirstRange'](),_0x64b413=Array['from'](_0x5d468d['keys']())['find'](_0x178a36=>_0x178a36['isIntersecting'](_0x3264de));if(!_0x64b413)continue;const _0x2a26a8=_0x64b413['getDifference'](_0x3264de);this['_isBlockAttribute'](_0x5039c8)&&'insertion'==_0x5351cb['type']&&0x0!=_0x2a26a8['length']||(_0x5d468d['delete'](_0x64b413),_0x2a26a8['forEach'](_0x551fb4=>{_0x5d468d['set'](_0x551fb4,_0x11d86a);}),'insertion'!=_0x5351cb['type']&&_0x24faa4!=_0x16a1b2&&_0x5d468d['set'](_0x64b413['getIntersection'](_0x3264de),_0x24faa4));}const _0x371b0c=[];for(const [_0x554850,_0x46cb84]of _0x5d468d){const _0x258dfa=_0x2612d4(),_0x42d66c={'key':_0x5039c8,'oldValue':_0x46cb84,'newValue':_0x16a1b2};_0x5039c8['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':_0x5039c8});const _0x236658=('attribute:'+(_0x5039c8+'|'+Jt({'newValue':_0x16a1b2})))['substring'](0x0,0x3c),_0x114578=this['_setSuggestionData']({'id':_0x258dfa,'type':_0x236658,'data':_0x42d66c,'createdAt':new Date(),'authorId':_0x2cb18e,'attributes':_0x1a4292});_0x371b0c['push'](_0x114578),this['_addSuggestionMarker'](_0x236658,_0x258dfa,_0x2cb18e,_0x554850);}return _0x371b0c;}['enableDefaultAttributesIntegration'](_0x2940c4){this['enableCommand'](_0x2940c4,(_0x33db57,..._0x35a32c)=>{this['_recordAttributeChanges'](()=>{_0x33db57(..._0x35a32c);});});}['registerBlockAttribute'](_0x47925c){this['_blockAttributeKeys']['add'](_0x47925c);}['registerInlineAttribute'](_0x1eaf72){this['_inlineAttributeKeys']['add'](_0x1eaf72);}['_getAttributeKey'](_0x2d391e){return'attribute'==_0x2d391e['type']?_0x2d391e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x144320,_0x3875de){const _0x110255=_0x144320['getFirstMarker']();this['_model']['change'](_0x3c0b86=>{_0x3c0b86['updateMarker'](_0x110255,{'range':_0x3875de});});}['_addThreadToSuggestion'](_0x2766f0){const _0x27a7f0=_0x2766f0['id'],_0x16bf49=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x27a7f0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x16bf49,'threadId':_0x27a7f0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3032de=this['_commentsRepository']['getCommentThread'](_0x27a7f0);_0x3032de['unbind']('isRemovable'),_0x3032de['isRemovable']=!0x1,_0x2766f0['commentThread']=_0x3032de;}['_checkSuggestionCorrectness'](_0x4bafcf,_0x42f45e,_0x3481c1,_0x48d85d){if(_0x4bafcf['type']!=_0x42f45e||_0x4bafcf['subType']!=_0x3481c1||_0x4bafcf['creator']['id']!=_0x48d85d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5dd626('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1c3520,_0x25a374){const _0x59d7cd=_0x1c3520['getFirstRange']();if(_0x25a374['isEqual'](_0x59d7cd))_0x1c3520['removeMarkers']();else{if(_0x59d7cd['containsRange'](_0x25a374)){const _0x5ef2ba=this['_model']['createPositionAt'](_0x25a374['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c3520,this['_model']['createRange'](_0x59d7cd['start'],_0x5ef2ba));const _0x213e0f=_0x2612d4(),_0x44457c=_0x1c3520['creator']['id'],_0x1d4efc=_0x1c3520['type']+':'+_0x1c3520['subType'];this['_setSuggestionData']({'id':_0x213e0f,'type':_0x1d4efc,'createdAt':new Date(),'authorId':_0x44457c,'data':_0x1c3520['data'],'attributes':_0x1c3520['attributes']});const _0x4d6535=this['_model']['createPositionAt'](_0x25a374['end']['parent'],'after'),_0x21bc18=this['_model']['createRange'](_0x4d6535,_0x59d7cd['end']);this['_addSuggestionMarker'](_0x1d4efc,_0x213e0f,_0x44457c,_0x21bc18);}else{if(_0x59d7cd['containsPosition'](_0x25a374['start'])){const _0x111e60=this['_model']['createPositionAt'](_0x25a374['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1c3520,this['_model']['createRange'](_0x59d7cd['start'],_0x111e60));}else{const _0x16a3b8=this['_model']['createPositionAt'](_0x25a374['end']['parent'],'after');this['_setSuggestionRange'](_0x1c3520,this['_model']['createRange'](_0x16a3b8,_0x59d7cd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x22f78a){for(const {suggestion:_0x51f901,meta:_0x33c72e}of this['_findSuggestions'](_0x22f78a,'insertion')){if(!_0x33c72e['isOwn'])continue;const _0x5f0d09=_0x51f901['getRanges']();for(const _0x6918b6 of _0x5f0d09)if(!_0x22f78a['getDifference'](_0x6918b6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1b0cd6){const _0x5c7128=this['editor']['plugins']['get']('Users')['getUser'](_0x1b0cd6);if(!_0x5c7128)throw new _0x5dd626('track-changes-user-not-found',this);return _0x5c7128;}['_getExternalAuthor'](_0x333ac7){const _0x4c85c5=this['editor']['plugins']['get']('Users'),_0x4e297b=_0x45cfb7('external:'+_0x333ac7),_0x133238=_0x4c85c5['getUser'](_0x4e297b);return _0x133238||_0x4c85c5['addUser']({'id':_0x4e297b,'name':_0x333ac7});}['_createSuggestion'](_0x4872be,_0x3b4bf3,_0x58512d,_0x5975da,_0x225b43){const _0x39dbc6=this['_getAuthorFromId'](_0x5975da),_0x2c0b89=this['_suggestionFactory']['buildSuggestion'](_0x4872be,_0x3b4bf3,_0x58512d,_0x39dbc6,_0x225b43,_0x3bfcf3=>{this['_updateSuggestionData'](_0x58512d,{'attributes':_0x3bfcf3});const _0x20dcaa=this['getSuggestion'](_0x58512d);this['_joinWithAdjacentSuggestions'](new Set([_0x20dcaa])),this['_refreshSuggestionsChain'](new Set([_0x20dcaa]));});return this['listenTo'](_0x2c0b89,'accept',()=>{this['_updateSuggestionData'](_0x58512d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2c0b89,'discard',()=>{this['_updateSuggestionData'](_0x58512d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x58512d,_0x2c0b89),this['_suggestionState']['set'](_0x2c0b89,'notReady'),_0x2c0b89;}['_splitMarkerName'](_0x3bfa14){const _0x57403f=_0x3bfa14['split'](':');return{'group':_0x57403f[0x0],'type':_0x57403f[0x1],'subType':_0x57403f['length']>=0x5?_0x57403f[0x2]:null,'id':_0x57403f['length']<0x5?_0x57403f[0x2]:_0x57403f[0x3],'authorId':_0x57403f['length']<0x5?_0x57403f[0x3]:_0x57403f[0x4],'markerCount':0x6==_0x57403f['length']?_0x57403f[0x5]:null};}['_breakSuggestionMarker'](_0x339667,_0x40e02d,_0x4cf265){const _0x1759dd=_0x339667['getFirstRange'](),_0x556287=_0x1759dd['start'],_0xd5f897=_0x1759dd['end'];this['_setSuggestionRange'](_0x339667,this['_model']['createRange'](_0x556287,_0x40e02d));const _0x1efe7d=_0x2612d4(),_0x472d2f=_0x339667['creator']['id'],_0x36a279=_0x339667['type']+(_0x339667['subType']?':'+_0x339667['subType']:'');this['_setSuggestionData']({'id':_0x1efe7d,'type':_0x36a279,'createdAt':new Date(),'authorId':_0x472d2f,'originalSuggestionId':_0x339667['id'],'attributes':_0x339667['attributes'],'data':_0x339667['data']});const _0x1ca41d=this['_getAttributeKey'](_0x339667);('formatBlock'==_0x339667['type']||_0x1ca41d&&this['_isBlockAttribute'](_0x1ca41d))&&(_0x4cf265=this['_model']['createPositionBefore'](_0x4cf265['parent'])),this['_addSuggestionMarker'](_0x36a279,_0x1efe7d,_0x472d2f,this['_model']['createRange'](_0x4cf265,_0xd5f897));}['_findSuggestions'](_0x4fbce0,_0x43713e=null){const _0x53dc52=[],_0x26afb4=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4fbce0)||(_0x4fbce0=[_0x4fbce0]);for(const _0x419d7a of this['getSuggestions']()){if(!_0x419d7a['isInContent'])continue;if(_0x43713e&&_0x419d7a['type']!=_0x43713e)continue;let _0x3325de=!0x1;for(const _0x192546 of _0x419d7a['getRanges']()){for(const _0x22abeb of _0x4fbce0){const _0x544f3a=_0x22abeb['start']['isEqual'](_0x192546['end'])||_0x22abeb['end']['isEqual'](_0x192546['start']);if(_0x544f3a||_0x22abeb['getIntersection'](_0x192546)){const _0xa87147=_0x22abeb['containsRange'](_0x192546)&&Pt(this['_model']['schema'],_0x192546['start'],_0x22abeb),_0x1b37cb=_0x192546['containsRange'](_0x22abeb)&&Pt(this['_model']['schema'],_0x22abeb['start'],_0x192546);_0x53dc52['push']({'suggestion':_0x419d7a,'meta':{'isOwn':_0x26afb4==_0x419d7a['author'],'isNextTo':_0x544f3a,'isInsideObject':_0xa87147,'containsRangeInObject':_0x1b37cb}}),_0x3325de=!0x0;break;}}if(_0x3325de)break;}}return _0x53dc52;}['_addSuggestionMarker'](_0x3191ec,_0x1c136d,_0x1cb120,_0x375e03,_0x43ea87){this['_model']['change'](_0x45f083=>{let _0x5cf739='suggestion:'+_0x3191ec+':'+_0x1c136d+':'+_0x1cb120;_0x43ea87&&(_0x5cf739=_0x5cf739+':'+_0x43ea87),_0x45f083['addMarker'](_0x5cf739,{'range':_0x375e03,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x447521){const _0x6af201=_0x447521['previous'],_0x9a2b6=_0x447521['next'];_0x447521['previous']=null,_0x447521['next']=null,null!=_0x6af201&&_0x6af201['next']==_0x447521&&(_0x6af201['next']=_0x9a2b6),null!=_0x9a2b6&&_0x9a2b6['previous']==_0x447521&&(_0x9a2b6['previous']=_0x6af201),'ready'==this['_suggestionState']['get'](_0x447521)&&(this['_suggestionState']['set'](_0x447521,'removed'),this['fire']('suggestionUnloaded',_0x447521,_0x6af201,_0x9a2b6));}['_setSuggestionData'](_0x10c78e){const _0x5b7089=_0x10c78e['id'],_0x10b58f=this['addSuggestionData'](_0x10c78e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x31afa2=this['editor']['plugins']['get']('PendingActions'),_0x5100ba=_0x10b58f['hasComments'],_0x53d13b=_0x10b58f['subType']?_0x10b58f['type']+':'+_0x10b58f['subType']:_0x10b58f['type'],_0x28cd27=this['editor']['locale'],_0x17f2ac=_0x31afa2['add'](c(_0x28cd27,'PENDING_ACTION_SUGGESTION')),_0x41040f={'id':_0x5b7089,'type':_0x53d13b,'hasComments':_0x5100ba,'data':_0x10c78e['data']||null,'originalSuggestionId':_0x10c78e['originalSuggestionId']||null,'attributes':_0x10b58f['attributes']};this['_adapter']['addSuggestion'](_0x41040f)['then'](_0x363639=>{_0x10b58f['_saved']=!0x0,_0x31afa2['remove'](_0x17f2ac),_0x363639&&_0x363639['createdAt']&&(this['_suggestions']['get'](_0x5b7089)['createdAt']=_0x363639['createdAt']);})['catch'](_0x2e7d19=>{throw _0x40fadc('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x10b58f['discard']();}),_0x10b58f['stopListening'](),this['_suggestions']['delete'](_0x10b58f['id']),this['_suggestionState']['delete'](_0x10b58f),_0x2e7d19;});}return _0x10b58f;}['_isBlockAttribute'](_0x3a0a51){return this['_blockAttributeKeys']['has'](_0x3a0a51);}['_updateSuggestionData'](_0x1f6d88,_0x8dc458){const _0x5bc208=this['editor']['plugins']['get']('PendingActions'),_0x3ae3d4=this['getSuggestion'](_0x1f6d88);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3ae3d4['_saved']){const _0x5800e5=_0x5bc208['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1f6d88,_0x8dc458)['then'](()=>{_0x5bc208['remove'](_0x5800e5);});}else _0x3ae3d4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1f6d88,_0x8dc458);});}}['_getSuggestionData'](_0x316da1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5dd626('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x316da1);}['_handleNewSuggestionMarker'](_0x1abe53){const {id:_0x10750c,type:_0x50dc93,subType:_0xb549dd,authorId:_0x32a043}=this['_splitMarkerName'](_0x1abe53),_0x463bcb=this['_suggestions']['get'](_0x10750c)||this['_createSuggestion'](_0x50dc93,_0xb549dd,_0x10750c,_0x32a043,{});switch(this['_checkSuggestionCorrectness'](_0x463bcb,_0x50dc93,_0xb549dd,_0x32a043),this['_suggestionState']['get'](_0x463bcb)){case'notReady':this['_getSuggestionData'](_0x10750c)['then'](_0x36c251=>{let _0x4beb51=Promise['resolve']();_0x36c251['hasComments']&&(_0x4beb51=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x10750c})),_0x4beb51['then'](()=>{this['addSuggestionData'](_0x36c251)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x463bcb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x10750c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x463bcb,'ready'),this['fire']('suggestionLoaded',_0x463bcb);break;case'ready':this['fire']('suggestionChanged',_0x463bcb);}return _0x463bcb['addMarkerName'](_0x1abe53),_0x463bcb;}['_refreshSuggestionsChain'](_0x3fc2e9){const _0x375609=Array['from'](_0x3fc2e9),_0x2c531b=_0x375609['filter'](_0x13e371=>'attribute'==_0x13e371['type']);this['_refreshAttributeSuggestionsChain'](_0x2c531b);const _0x4bb1fb=_0x375609['filter'](_0x36224e=>!_0x36224e['isMultiRange']&&'attribute'!=_0x36224e['type']),_0x2793f5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x45004a=>!_0x45004a['isMultiRange']&&'attribute'!=_0x45004a['type']),_0x3a42c2=_0x2793f5['filter'](_0xc1458d=>!_0x3fc2e9['has'](_0xc1458d)),_0x3a0201=new Map(_0x2793f5['map'](_0x389053=>[_0x389053,this['_suggestionFactory']['getSuggestionCallback'](_0x389053['type'],_0x389053['subType'],'chain')])),_0x18a130=new Map(_0x2793f5['map'](_0x1703d6=>[_0x1703d6,_0x1703d6['getFirstRange']()])),_0x5e17b8=new Set(),_0x2af666=new Set();for(let _0x5a1ce2=0x0;_0x5a1ce2<_0x4bb1fb['length'];_0x5a1ce2++)_0x47fbfb(_0x4bb1fb[_0x5a1ce2],_0x4bb1fb,_0x5a1ce2+0x1);for(let _0x2e0d0d=0x0;_0x2e0d0d<_0x4bb1fb['length'];_0x2e0d0d++)_0x47fbfb(_0x4bb1fb[_0x2e0d0d],_0x3a42c2,0x0);const _0x52f7d5=new Set();for(let _0xadf113=0x0;_0xadf113<_0x4bb1fb['length'];_0xadf113++){const _0x2016ba=_0x4bb1fb[_0xadf113];!_0x2af666['has'](_0x2016ba)&&_0x2016ba['previous']&&(_0x52f7d5['add'](_0x2016ba['previous']),_0x2016ba['previous']['next']===_0x2016ba&&(_0x2016ba['previous']['next']=null),_0x2016ba['previous']=null),!_0x5e17b8['has'](_0x2016ba)&&_0x2016ba['next']&&(_0x52f7d5['add'](_0x2016ba['next']),_0x2016ba['next']['previous']===_0x2016ba&&(_0x2016ba['next']['previous']=null),_0x2016ba['next']=null);}function _0x47fbfb(_0x2b4fec,_0x254612,_0x5e2283){for(let _0x43357e=_0x5e2283;_0x43357e<_0x254612['length'];_0x43357e++){const _0x509b02=_0x15b1f5(_0x2b4fec,_0x254612[_0x43357e]);_0x509b02&&(_0x509b02[0x0]['next']=_0x509b02[0x1],_0x509b02[0x1]['previous']=_0x509b02[0x0],_0x5e17b8['add'](_0x509b02[0x0]),_0x2af666['add'](_0x509b02[0x1]));}}function _0x15b1f5(_0x4e4025,_0x5eaf53){if(_0x4e4025['author']['id']!==_0x5eaf53['author']['id'])return null;const _0x4aeb25=_0x3a0201['get'](_0x4e4025)(_0x4e4025,_0x5eaf53,_0x18a130['get'](_0x4e4025),_0x18a130['get'](_0x5eaf53));if(!_0x4aeb25)return null;return _0x3a0201['get'](_0x5eaf53)(_0x4e4025,_0x5eaf53,_0x18a130['get'](_0x4e4025),_0x18a130['get'](_0x5eaf53))?_0x4aeb25[0x1]['commentThread']&&_0x4aeb25[0x1]['commentThread']['length']?null:_0x4aeb25:null;}_0x52f7d5['size']&&this['_refreshSuggestionsChain'](_0x52f7d5);}['_refreshAttributeSuggestionsChain'](_0x4442df){if(0x0==_0x4442df['length'])return;const _0x53aa40=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x326550=>'attribute'==_0x326550['type']&&_0x326550['_isDataLoaded']),_0x39f847=[],_0x523991=new Map();for(const _0x1b27d3 of _0x53aa40){const _0x77ed5b=_0x45cfb7(_0x1b27d3['attributes']);_0x523991['has'](_0x77ed5b)||(_0x523991['set'](_0x77ed5b,_0x39f847['length']),_0x39f847['push']([]));const _0x40249b=_0x523991['get'](_0x77ed5b);_0x39f847[_0x40249b]['push'](_0x1b27d3);}!(function(){_0x39f847['sort']((_0x142cdb,_0x140ea0)=>{const _0x5159ec=_0x142cdb[0x0]['createdAt'],_0x23f814=_0x140ea0[0x0]['createdAt'];return _0x5159ec==_0x23f814?_0x142cdb[0x0]['attributes']['groupId']<_0x140ea0[0x0]['attributes']['groupId']?-0x1:0x1:_0x5159ec<_0x23f814?-0x1:0x1;});for(const _0x46d20d of _0x39f847)_0x46d20d['sort']((_0x569c38,_0x2a8a16)=>_0x569c38['id']<_0x2a8a16['id']?-0x1:0x1);}());for(let _0x565fd0=0x0;_0x565fd0<_0x39f847['length'];_0x565fd0++){if(0x0==_0x39f847[_0x565fd0]['length'])continue;const _0xcaf691=[];for(let _0x41e070=_0x565fd0+0x1;_0x41e070<_0x39f847['length'];_0x41e070++)0x0!=_0x39f847[_0x41e070]['length']&&_0xb9db89(_0x39f847[_0x565fd0],_0x39f847[_0x41e070])&&_0xcaf691['push'](_0x41e070);for(const _0x555c99 of _0xcaf691)_0x39f847[_0x565fd0]=_0x39f847[_0x565fd0]['concat'](_0x39f847[_0x555c99]),_0x39f847[_0x555c99]=[];}for(const _0x1391fc of _0x39f847)for(let _0x54cacb=0x0;_0x54cacb<_0x1391fc['length'];_0x54cacb++){const _0x48d63b=_0x1391fc[_0x54cacb+0x1]||null;_0x1391fc[_0x54cacb]['next']!==_0x48d63b&&(_0x1391fc[_0x54cacb]['next']=_0x48d63b);}for(const _0x4a782d of _0x39f847)for(let _0x16f28d=0x0;_0x16f28d<_0x4a782d['length'];_0x16f28d++){const _0x1b188a=_0x4a782d[_0x16f28d-0x1]||null;_0x4a782d[_0x16f28d]['previous']!==_0x1b188a&&(_0x4a782d[_0x16f28d]['previous']=_0x1b188a);}function _0xb9db89(_0x3b8296,_0x44682d){if(_0x3b8296[0x0]['attributes']['groupId']!==_0x44682d[0x0]['attributes']['groupId']&&_0x3b8296[0x0]['author']!==_0x44682d[0x0]['author'])return!0x1;if(!function(_0x2d63af,_0x5fec27){if(!_0x2d63af['hasComments']&&!_0x5fec27['hasComments'])return!0x0;if(_0x2d63af['hasComments']&&_0x5fec27['hasComments'])return!0x1;if(_0x2d63af['hasComments']&&_0x5fec27['createdAt']<_0x2d63af['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5fec27['hasComments']&&_0x2d63af['createdAt']<_0x5fec27['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3b8296[0x0],_0x44682d[0x0]))return!0x1;const _0x28f38f=Vt(_0x3b8296[0x0]['attributes'],'groupId'),_0x333daf=Vt(_0x44682d[0x0]['attributes'],'groupId');if(!_0x21c99e(_0x28f38f,_0x333daf))return!0x1;return!!_0x3b8296['every'](_0x68f05=>_0x44682d['some'](_0x226249=>_0x68f05['getFirstRange']()['isEqual'](_0x226249['getFirstRange']())))&&_0x44682d['every'](_0xca3677=>_0x3b8296['some'](_0x2e8185=>_0xca3677['getFirstRange']()['isEqual'](_0x2e8185['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d33c0){const _0x50b5c4=Array['from'](_0x4d33c0),_0xbea701=this['getSuggestions']({'skipNotAttached':!0x0}),_0x17b7e8=_0xbea701['filter'](_0x5bc6db=>!_0x4d33c0['has'](_0x5bc6db)),_0x58c656=new Map(_0x50b5c4['map'](_0x2a200d=>[_0x2a200d,this['_suggestionFactory']['getSuggestionCallback'](_0x2a200d['type'],_0x2a200d['subType'],'join')])),_0x435e9a=new Map(_0xbea701['map'](_0x5b9fa2=>[_0x5b9fa2,_0x5b9fa2['getRanges']()]));for(let _0x57b005=0x0;_0x57b005<_0x50b5c4['length'];_0x57b005++){if(_0x32b7ff(this,_0x50b5c4[_0x57b005],_0x50b5c4,_0x57b005+0x1))return!0x0;}for(let _0x29de96=0x0;_0x29de96<_0x50b5c4['length'];_0x29de96++){if(_0x32b7ff(this,_0x50b5c4[_0x29de96],_0x17b7e8,0x0))return!0x0;}return!0x1;function _0x32b7ff(_0x314ac7,_0x22beec,_0x3f0fce,_0x129ef3){for(let _0x482911=_0x129ef3;_0x482911<_0x3f0fce['length'];_0x482911++){const _0x3f07fc=_0x3f0fce[_0x482911];if(_0x3f07fc['type']!==_0x22beec['type']||_0x3f07fc['author']['id']!==_0x22beec['author']['id']||_0x3f07fc['subType']!==_0x22beec['subType'])continue;if(!Wt(_0x22beec,_0x3f07fc))continue;if('attribute'==_0x22beec['type']&&_0x22beec['data']['oldValue']!=_0x3f07fc['data']['oldValue'])continue;if('attribute'==_0x22beec['type']&&_0x314ac7['_isBlockAttribute'](_0x22beec['data']['key']))continue;if('formatBlock'==_0x22beec['type']){const _0x172eb7=_0x314ac7['editor']['model'],_0x2c67b7=_0x22beec['getContainedElement']();if(_0x2c67b7&&(_0x172eb7['schema']['isObject'](_0x2c67b7)||_0x172eb7['schema']['isLimit'](_0x2c67b7)))continue;}const _0x2d1ecc=_0x58c656['get'](_0x22beec),_0x2005a9=_0x435e9a['get'](_0x22beec),_0x34f47f=_0x435e9a['get'](_0x3f07fc),_0x131442=_0x22beec['commentThread']&&_0x22beec['commentThread']['length'],_0x35317c=_0x3f07fc['commentThread']&&_0x3f07fc['commentThread']['length'];if(!_0x131442&&_0x2d1ecc(_0x34f47f,_0x2005a9))return _0x314ac7['_joinSuggestions'](_0x3f07fc,_0x22beec),_0x435e9a['delete'](_0x22beec),!0x0;if(!_0x35317c&&_0x2d1ecc(_0x2005a9,_0x34f47f))return _0x314ac7['_joinSuggestions'](_0x22beec,_0x3f07fc),_0x435e9a['delete'](_0x3f07fc),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2c485f,_0x319d80){if(_0x2c485f['isMultiRange']){for(const _0x172a9a of _0x319d80['getRanges']())_0x2c485f['addRange'](_0x172a9a);}else{const _0x3b6a23=_0x319d80['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2c485f,this['_model']['createRange'](_0x2c485f['getFirstRange']()['start'],_0x3b6a23));}_0x319d80['removeMarkers']();}['_getMarkerAnnouncementText'](_0x8cb6af,_0x175047,_0x280d68){const _0x5610fd=_0x8cb6af['startsWith']('format')||_0x8cb6af['startsWith']('attribute')?'FORMATTING':_0x8cb6af['toUpperCase']();return c(this['editor']['locale'],_0x175047+'_'+_0x5610fd+'_SUGGESTION_ANNOUNCEMENT',_0x280d68);}['_initAriaMarkerChangeAnnouncements'](){const _0x230b35=this['editor'];if(!_0x230b35['ui'])return;const {ariaLiveAnnouncer:_0x5e949b}=_0x230b35['ui'];_0xec9857(this['_model'],({left:_0x1535ba,entered:_0x3d2846})=>{for(const _0x4a13f8 of _0x1535ba){const {group:_0x3b4b0e,type:_0x52771d}=this['_splitMarkerName'](_0x4a13f8['name']);if('suggestion'===_0x3b4b0e){_0x5e949b['announce'](this['_getMarkerAnnouncementText'](_0x52771d,'LEAVE'));break;}}for(const _0x207383 of _0x3d2846){const {group:_0x15a643,type:_0x1da6cb}=this['_splitMarkerName'](_0x207383['name']);if('suggestion'===_0x15a643){_0x5e949b['announce'](this['_getMarkerAnnouncementText'](_0x1da6cb,'ENTER',_0x18891d(_0x4f5b16)));break;}}});}['_processAttributeChanges'](_0x264a87){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1f9640=this['editor'],_0x33c59e=_0x1f9640['model']['document']['differ']['getChanges']();if(0x0==_0x33c59e['length'])return!0x1;const _0x4f2c31=[],_0xc031db=_0x33c59e['filter'](_0x42cd24=>'attribute'==_0x42cd24['type']),_0x675fd2=_0x33c59e['filter'](_0x370783=>'insert'==_0x370783['type']&&'$text'!=_0x370783['name']),_0x2e0f9a=_0x33c59e['filter'](_0x45c0fa=>'remove'==_0x45c0fa['type']&&'$text'!=_0x45c0fa['name']);for(const _0x2ecd5b of _0xc031db)_0x4f2c31['push']({'key':_0x2ecd5b['attributeKey'],'newValue':_0x2ecd5b['attributeNewValue'],'oldValue':_0x2ecd5b['attributeOldValue'],'range':Ht(_0x2ecd5b['range'],_0x1f9640['model'])});for(const _0x3b5d39 of _0x675fd2){const _0x398133=_0x2e0f9a['find'](_0x350213=>_0x350213['position']['isEqual'](_0x3b5d39['position']));_0x398133&&_0x4f2c31['push']({'key':u,'newValue':_0x3b5d39['name'],'oldValue':_0x398133['name'],'range':_0x1f9640['model']['createRangeOn'](_0x3b5d39['position']['nodeAfter'])});}return 0x0!=_0x4f2c31['length']&&this['_reduceExistingSuggestions'](_0x264a87,_0x4f2c31);}['_processAttributeSuggestions'](_0x3035ad){let _0x4ff753=!0x1;const _0x42a2c2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5abc1a=>_0x5abc1a['data']['newRange']&&_0x5abc1a['name']['startsWith']('suggestion:attribute:'));for(const _0x3b6bc9 of _0x42a2c2){const {subType:_0x3e537d,id:_0x269c3c}=this['_splitMarkerName'](_0x3b6bc9['name']),_0x232f19=_0x3e537d['split']('|')[0x0];for(const _0x215be4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x215be4['id']!=_0x269c3c&&'attribute'==_0x215be4['type']&&_0x215be4['data']&&_0x215be4['data']['key']==_0x232f19&&_0x215be4['getFirstRange']()['isIntersecting'](_0x3b6bc9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x215be4,_0x3b6bc9['data']['newRange'],_0x3035ad),_0x4ff753=!0x0);}return _0x4ff753;}['_recordAttributeChanges'](_0x1c00c3){this['_recordAttributeSuggestions']=!0x0,_0x1c00c3();}['_isRegisteredAttribute'](_0x49f7a0){const _0x3c0a72=this['_isBlockAttribute'](_0x49f7a0),_0x180588=this['_inlineAttributeKeys']['has'](_0x49f7a0);return _0x3c0a72||_0x180588;}['_reduceExistingSuggestions'](_0x5899b2,_0x28f62f){if(0x0==_0x28f62f['length'])return!0x1;let _0x4de1b9=!0x1;for(const _0x199939 of _0x28f62f){const _0x38e4c7=this['_findSuggestions'](_0x199939['range'],'attribute')['filter'](_0x409f5b=>!_0x409f5b['meta']['isNextTo'])['map'](_0x35db78=>_0x35db78['suggestion']),_0x181c3e=_0x45cfb7({'newValue':_0x199939['newValue']});_0x38e4c7['filter'](_0x4d824e=>{const [_0x54086d,_0x191709]=_0x4d824e['subType']['split']('|');return _0x54086d==_0x199939['key']&&_0x191709!=_0x181c3e;})['forEach'](_0x926f74=>{this['_reduceSuggestionAttributeRange'](_0x926f74,_0x199939['range'],_0x5899b2),_0x4de1b9=!0x0;});}return _0x4de1b9;}['_reduceSuggestionAttributeRange'](_0xa1bffd,_0x2dc93a,_0x4467b7){const _0x136aa0=_0xa1bffd['getFirstRange']()['getDifference'](_0x2dc93a);0x0!==_0x136aa0['length']?0x1!==_0x136aa0['length']?this['_breakSuggestionMarker'](_0xa1bffd,_0x2dc93a['start'],_0x2dc93a['end']):this['_setSuggestionRange'](_0xa1bffd,_0x136aa0[0x0]):_0x4467b7['removeMarker'](_0xa1bffd['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5c2ca3){this['_editor']=_0x5c2ca3,this['_model']=_0x5c2ca3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xa5221c,_0x5f4908,_0x44fda0,_0x534725,_0x59752d,_0x73cb84){return new o(this['_model'],{'type':_0xa5221c,'subType':_0x5f4908,'id':_0x44fda0,'author':_0x534725,'creator':_0x534725,'attributes':_0x59752d,'onAttributesChange':_0x73cb84,'onAccept':(..._0x22b319)=>this['getSuggestionCallback'](_0xa5221c,_0x5f4908,'accept')(..._0x22b319),'onDiscard':(..._0x539ad8)=>this['getSuggestionCallback'](_0xa5221c,_0x5f4908,'discard')(..._0x539ad8)});}['registerCustomCallback'](_0x5797b5,_0x294306,_0x52120a,_0x243d92){const _0x48d1d6=_0x5797b5+':'+_0x294306+':'+_0x52120a;this['_customCallbacks']['set'](_0x48d1d6,_0x243d92);}['getSuggestionCallback'](_0x127d6b,_0x12fb13,_0x22e6c9){const _0x4b1e19=_0x127d6b+':'+_0x12fb13+':'+_0x22e6c9;return this['_customCallbacks']['get'](_0x4b1e19)||this['_defaultCallbacks']['get'](_0x127d6b+':'+_0x22e6c9);}['_registerDefaultCallbacks'](){const _0x23f79f=()=>!0x1,_0x44b5b1=_0x443b55=>{_0x443b55['sort']((_0x574458,_0x33528c)=>_0x574458['start']['isBefore'](_0x33528c['start'])?0x1:-0x1),this['_model']['change'](_0x221728=>{for(const _0xc2de65 of _0x443b55){let _0x5e4fb4;_0x5e4fb4=_0xc2de65['end']['isAtEnd']&&_0xc2de65['end']['parent']==_0xc2de65['start']['nodeAfter']?_0x221728['createSelection'](_0xc2de65['start']['nodeAfter'],'on'):_0x221728['createSelection'](_0xc2de65),this['_model']['deleteContent'](_0x5e4fb4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x26a0e1=(_0x5216b1,_0x135c2c)=>{_0x135c2c&&this['_model']['change'](_0x8a5512=>{const {commandName:_0x45d36c,commandParams:_0xfb082=[]}=_0x135c2c,_0x64589f=_0x5216b1['map'](_0x361f5f=>(Gt(_0x361f5f)&&(_0x361f5f=this['_model']['createRange'](_0x361f5f['end'])),_0x361f5f))['filter'](_0x4170f3=>'$graveyard'!==_0x4170f3['root']['rootName']);if(_0x64589f['length']<0x1)return;const _0x568b9a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x34eec8=>_0x51fe0f['fromRange'](_0x34eec8));_0x8a5512['setSelection'](_0x64589f);for(const _0x1cac67 of this['_editor']['commands']['commands']())_0x1cac67['refresh']();_0xfb082['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x45d36c,..._0xfb082);const _0x23fe7c=_0x568b9a['filter'](_0x1147c3=>'$graveyard'!=_0x1147c3['root']['rootName']);_0x23fe7c['length']>0x0&&_0x8a5512['setSelection'](_0x23fe7c);for(const _0x25b577 of _0x568b9a)_0x25b577['detach']();});},_0x10ca42=(_0x2471c1,_0x142f70)=>0x1==_0x2471c1['length']&&0x1==_0x142f70['length']&&_0x2471c1[0x0]['end']['isEqual'](_0x142f70[0x0]['start']),_0x219ddd=(_0x2b8336,_0x6fb515,_0x4bc322,_0x5aa69d)=>zt(_0x2b8336,_0x6fb515,_0x4bc322,_0x5aa69d)?[_0x2b8336,_0x6fb515]:zt(_0x6fb515,_0x2b8336,_0x5aa69d,_0x4bc322)?[_0x6fb515,_0x2b8336]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x23f79f),this['_defaultCallbacks']['set']('insertion:discard',_0x44b5b1),this['_defaultCallbacks']['set']('insertion:join',_0x10ca42),this['_defaultCallbacks']['set']('insertion:chain',_0x219ddd),this['_defaultCallbacks']['set']('deletion:accept',_0x44b5b1),this['_defaultCallbacks']['set']('deletion:discard',_0x23f79f),this['_defaultCallbacks']['set']('deletion:join',_0x10ca42),this['_defaultCallbacks']['set']('deletion:chain',_0x219ddd),this['_defaultCallbacks']['set']('formatInline:accept',_0x26a0e1),this['_defaultCallbacks']['set']('formatInline:discard',_0x23f79f),this['_defaultCallbacks']['set']('formatInline:join',_0x10ca42),this['_defaultCallbacks']['set']('formatInline:chain',_0x23f79f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x26a0e1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x23f79f),this['_defaultCallbacks']['set']('formatBlock:join',_0x10ca42),this['_defaultCallbacks']['set']('formatBlock:chain',_0x23f79f),this['_defaultCallbacks']['set']('attribute:accept',_0x23f79f),this['_defaultCallbacks']['set']('attribute:discard',(_0x1b169a,_0x5a042a)=>{if(!_0x5a042a)return;const _0x220754=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1a4621=>{if(_0x5a042a['key']==u)for(const _0x1a0f59 of _0x1b169a){const _0x467c2d=_0x1a0f59['start']['nodeAfter'],_0x478eb3=_0x5a042a['oldValue'];_0x1a4621['rename'](_0x467c2d,_0x478eb3);}else{if(_0x220754['_isBlockAttribute'](_0x5a042a['key'])){for(const _0x544848 of _0x1b169a)void 0x0!==_0x5a042a['oldValue']?_0x1a4621['setAttribute'](_0x5a042a['key'],_0x5a042a['oldValue'],_0x544848['start']['nodeAfter']):_0x1a4621['removeAttribute'](_0x5a042a['key'],_0x544848['start']['nodeAfter']);}else{for(const _0x483999 of _0x1b169a)_0x5a042a['oldValue']?_0x1a4621['setAttribute'](_0x5a042a['key'],_0x5a042a['oldValue'],_0x483999):_0x1a4621['removeAttribute'](_0x5a042a['key'],_0x483999);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x10ca42);}}function Pt(_0x5885d9,_0x393506,_0x9c7fd1){for(const _0x2f0d4c of _0x393506['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2f0d4c['root']==_0x2f0d4c)return!0x1;if(!_0x9c7fd1['containsItem'](_0x2f0d4c))return!0x1;if(_0x5885d9['isObject'](_0x2f0d4c)||_0x5885d9['isLimit'](_0x2f0d4c))return!0x0;}return!0x1;}function Gt(_0x20048e){return _0x20048e['end']['parent']==_0x20048e['start']['nodeAfter']&&_0x20048e['end']['isAtStart'];}function Lt(_0x10e990,_0x18f509,_0x686f9d,_0x587905){const _0x5a57ec=_0x34a921=>!_0x34a921['item']['is']('$textProxy')&&!_0x587905['isObject'](_0x34a921['item']),_0x19b489=_0x10e990['start']['getLastMatchingPosition'](_0x5a57ec),_0x2ab1b5=_0x10e990['end']['getLastMatchingPosition'](_0x5a57ec,{'direction':'backward'});return(!_0x10e990['start']['isEqual'](_0x19b489)||!_0x10e990['end']['isEqual'](_0x2ab1b5))&&(_0x19b489['isBefore'](_0x2ab1b5)?_0x686f9d['updateMarker'](_0x18f509,{'range':_0x686f9d['createRange'](_0x19b489,_0x2ab1b5)}):_0x686f9d['removeMarker'](_0x18f509),!0x0);}function Jt(_0x16a38b){return _0x45cfb7(_0x16a38b);}function Kt(_0x4ea5c8){const _0x501293=_0x4ea5c8['start']['nodeAfter'];return _0x501293&&_0x501293['is']('element');}function Ht(_0x1e5eda,_0x6e704a){return null==_0x1e5eda['end']['nodeBefore']&&_0x1e5eda['end']['parent']==_0x1e5eda['start']['nodeAfter']?qt(_0x1e5eda['start']['nodeAfter'],_0x6e704a):_0x1e5eda;}function qt(_0x5a7a58,_0x3eefde){const _0x61448b=_0x3eefde['schema']['isObject'](_0x5a7a58)||_0x3eefde['schema']['isSelectable'](_0x5a7a58);return _0x3eefde['createRange'](_0x3eefde['createPositionAt'](_0x5a7a58,'before'),_0x61448b?_0x3eefde['createPositionAfter'](_0x5a7a58):_0x3eefde['createPositionAt'](_0x5a7a58,'end'));}function zt(_0x4c2de2,_0x580e87,_0x426206,_0x4046b6){return!!Wt(_0x4c2de2,_0x580e87)&&_0x426206['end']['isEqual'](_0x4046b6['start']);}function Wt(_0x481d00,_0x169324){if(!_0x481d00['_isDataLoaded']||!_0x169324['_isDataLoaded'])return!0x1;const _0x5577a7=new Set(Object['keys'](_0x481d00['attributes'])),_0x1fbd5d=new Set(Object['keys'](_0x169324['attributes']));if(_0x5577a7['delete']('groupId'),_0x1fbd5d['delete']('groupId'),0x0==_0x5577a7['size']&&0x0==_0x1fbd5d['size'])return!0x0;if(_0x5577a7['size']!=_0x1fbd5d['size'])return!0x1;const _0x339312={..._0x481d00['attributes']},_0x51557a={..._0x169324['attributes']};return delete _0x339312['groupId'],delete _0x51557a['groupId'],JSON['stringify'](_0x339312)==JSON['stringify'](_0x51557a);}function Qt(_0x5cd3d8,_0x4f33a1){const _0xf937f4=Xt(_0x5cd3d8['attributes']),_0x3342e7=Xt(_0x4f33a1);if(!_0x5cd3d8['_isDataLoaded'])return!0x1;for(const _0x225a9e of Object['keys'](_0x3342e7))if(!_0x21c99e(_0xf937f4[_0x225a9e],_0x3342e7[_0x225a9e]))return!0x1;return!0x0;}function Xt(_0x533a58){const _0x3a18f5=Object['assign']({},_0x533a58);return delete _0x3a18f5['skipNestingCheck'],delete _0x3a18f5['tablePasteChainId'],_0x3a18f5;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x4c8e05(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2b0dd7,_0x47f81f,_0x477823,_0x38e8d4){super(),this['model']=_0x47f81f,this['view']=_0x477823,this['commentThreadController']=_0x38e8d4,this['_editor']=_0x2b0dd7,this['_acceptCommand']=_0x2b0dd7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2b0dd7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x186b14,_0x584d93)=>_0x186b14||_0x584d93),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x532766=>_0x532766&&this['_editor']['model']['canEditAt'](_0x47f81f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x85bc10=>_0x85bc10&&this['_editor']['model']['canEditAt'](_0x47f81f['getRanges']())),this['_pendingAction']=null,_0x477823['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x477823,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x477823,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x477823,'change:isDirty',()=>{_0x477823['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 _0x3c21a5=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3c21a5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4a6fb7{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2573cb,_0x4baca9,_0x216adb,_0x260d4d){super(_0x2573cb),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2deb1f(_0x2573cb,c(_0x2573cb,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4baca9['authoredAt']),this['bind']('authoredAt')['to'](_0x4baca9),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',_0x4baca9,'authoredAt',this,'descriptionParts',(_0x346e6f,_0x20818b,_0x19e03f)=>{const _0x19317b=_0x19e03f['map'](_0x372082=>ls(_0x372082['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x346e6f-0x1,_0x4baca9['author']['name'],_0x20818b?_0x260d4d['formatDateTime'](_0x20818b):'',new DOMParser()['parseFromString'](_0x19317b,'text/html')['body']['textContent']]);}),this['focusables']=new _0x279781(),this['focusTracker']=new _0x14ac43(),this['keystrokes']=new _0x4e433a(),this['focusCycler']=new _0x15a3e8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x41b32d=>_0x41b32d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4baca9,this['_localUser']=_0x216adb,this['_config']=_0x260d4d,_0x260d4d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x32509a(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1fb3a9}=this['_config'];this['commentsListView']=new _0x1fb3a9(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',_0x5e2960=>_0x5e2960+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x79d930,_0x347310)=>_0x79d930||!!_0x347310);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2f28ca}=this['_config'],_0x49fff8=new _0x2f28ca(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5b2ea0=_0x49fff8['commentInputView'];return _0x49fff8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5b2ea0,'value',(_0x2d2306,_0x40b871,_0x1e4730)=>!!_0x1e4730||_0x2d2306&&!_0x40b871),_0x5b2ea0['on']('submit',(_0x32e02e,_0x3d6433)=>{this['fire']('addComment',_0x3d6433),_0x5b2ea0['editor']['setData']('');}),_0x5b2ea0['on']('cancel',()=>this['focus']()),_0x5b2ea0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x49fff8;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x5b346a,_0x29e447,_0x41686b,_0x1aede6){super(_0x5b346a,_0x29e447,_0x41686b,_0x1aede6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b9dc7=>_0x3b9dc7&&_0x3b9dc7[0x0]?_0x3b9dc7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1cee50,_0x762bf9)=>{let _0x247115='';for(const _0x158cee of _0x1cee50)_0x247115+='<p>'+ls(_0x158cee['content'],_0x158cee['color'])+'</p>';return _0x762bf9?_0x247115:ti(_0x247115,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1aede6['SuggestionView'](_0x5b346a,_0x29e447,{'formatDateTime':_0x1aede6['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 _0x25153d=this['bindTemplate'],_0x26cf3b=[this['suggestionView']];return this['commentsListView']&&_0x26cf3b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x26cf3b['push'](this['commentThreadInputView']),_0x26cf3b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x25153d['if']('isActive','ck-suggestion-wrapper--active'),_0x25153d['to']('type',_0x4f57b4=>'ck-suggestion-'+_0x4f57b4),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':_0x25153d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x26cf3b};}['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 _0x4a6fb7{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x512d3,_0x4acdd6,_0x4b1b65){super(_0x512d3),this['_model']=_0x4acdd6,this['_config']=_0x4b1b65,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4acdd6),this['acceptButton']=this['_createButton'](c(_0x512d3,'Accept\x20suggestion'),_0x2b91d8,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x512d3,'Discard\x20suggestion'),_0x4dce2c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3456bc(_0x512d3,_0x4acdd6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x279781([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x14ac43(),this['keystrokes']=new _0x4e433a(),this['focusCycler']=new _0x15a3e8({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x27a27d=>_0x27a27d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x168bcc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x168bcc['innerHTML']=this['description'],this['on']('change:description',(_0x4a470f,_0x465db6,_0x42ec03)=>{_0x168bcc['innerHTML']=_0x42ec03;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x10e7f1=this['bindTemplate'],_0x443ee6=[{'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':_0x10e7f1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x10e7f1['to']('authoredAt',_0xe870f6=>this['_config']['formatDateTime'](_0xe870f6))}]}]},{'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']&&_0x443ee6['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':_0x443ee6}]};}['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'](_0x4d4bd8,_0x5eb7a7,_0x1061ad,_0x4c82bf,_0x3d348e){const _0x35d517=new _0x4b87e5(this['locale']);return _0x35d517['set']({'label':_0x4d4bd8,'icon':_0x5eb7a7,'tooltip':!0x0,'tooltipPosition':_0x3d348e}),_0x35d517['extendTemplate']({'attributes':{'class':_0x1061ad}}),_0x35d517['on']('execute',()=>{this['fire'](_0x4c82bf,this['_model']['id']);}),_0x35d517;}['_setupKeyboardNavigation'](){const _0x2643f3=this['element'];this['keystrokes']['listenTo'](_0x2643f3);for(const _0x21e7ec of this['focusables'])this['focusTracker']['add'](_0x21e7ec['element']),this['keystrokes']['listenTo'](_0x21e7ec['element']);this['keystrokes']['set']('enter',(_0x445490,_0x774372)=>{_0x2643f3===_0x445490['target']&&(this['focusCycler']['focusFirst'](),_0x774372());}),this['keystrokes']['set']('esc',(_0x4a2e15,_0x4a4a22)=>{_0x2643f3!==_0x4a2e15['target']&&(this['focus'](),_0x4a4a22());});}}class d extends _0x45133c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1b4cac,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30d778){super(_0x30d778),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x516b00=this['editor']['config'];_0x516b00['define']('trackChanges.SuggestionThreadView',fe),_0x516b00['define']('trackChanges.SuggestionView',we),_0x516b00['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x516b00['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x36cc29,_0x315381){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x363f9b,_0x5cb4bc]of this['_handleControllerBuffer']){const _0x4ef8aa=this['_suggestionToController']['has'](_0x363f9b);_0x4ef8aa||_0x5cb4bc?_0x4ef8aa&&_0x5cb4bc&&this['_destroyController'](_0x363f9b):this['_initializeController'](_0x363f9b);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x36cc29,_0x315381);}['init'](){const _0x3f9ce2=this['editor'],_0xd24a13=_0x3f9ce2['plugins']['get']('TrackChangesEditing'),_0x4c8cfd=_0x3f9ce2['plugins']['get']('Annotations'),_0x12868b=_0x3f9ce2['plugins']['get']('EditorAnnotations'),_0xad72f9=_0x3f9ce2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x12868b['addSourceCollector'](()=>{const _0x3fdef5=[];for(const [_0x24baba,_0x1be3eb]of Array['from'](this['_suggestionToController'])){const _0x23fe94=_0x24baba['getAllAdjacentSuggestions'](),_0x31820e=[];for(const _0x4ac6fe of _0x23fe94){if(!_0x4ac6fe['isInContent'])continue;if(_0x4ac6fe['isMultiRange']){_0x31820e['push'](..._0x4ac6fe['getRanges']());continue;}const _0x22bb47=_0x4ac6fe['getFirstRange']();if(_0x31820e['length']>0x0){const _0x20f456=_0x31820e[0x0]['getJoined'](_0x22bb47);if(_0x20f456){_0x31820e[0x0]=_0x20f456;continue;}}_0x31820e['push'](_0x22bb47);}_0x3fdef5['push']([_0x1be3eb['view'],_0x31820e]);}return _0x3fdef5;}),this['listenTo'](_0xd24a13,'suggestionLoaded',(_0x23ddcd,_0x48c6cf)=>{this['listenTo'](_0x48c6cf,'change:previous',(_0x5538a7,_0x159a46,_0x447333,_0x46af01)=>{_0x48c6cf['isInContent']&&(null==_0x447333?(this['_updateController'](_0x46af01['head']),this['_handleSuggestionControllerDelayed'](_0x48c6cf,!0x1)):(this['_updateController'](_0x447333['head']),null==_0x46af01&&this['_handleSuggestionControllerDelayed'](_0x48c6cf,!0x0)));}),null!==_0x48c6cf['previous']?this['_updateController'](_0x48c6cf['head']):this['_handleSuggestionControllerDelayed'](_0x48c6cf,!0x1);}),this['listenTo'](_0xd24a13,'suggestionUnloaded',(_0x19b15b,_0x349c7d,_0x4e115b)=>{this['stopListening'](_0x349c7d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x349c7d),this['_suggestionToController']['has'](_0x349c7d)&&this['_destroyController'](_0x349c7d),_0x4e115b&&this['_updateController'](_0x4e115b['head']);}),this['listenTo'](_0xd24a13,'suggestionChanged',(_0x4ed90c,_0x7feb07)=>{this['_updateController'](_0x7feb07);}),this['listenTo'](_0x4c8cfd,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xad72f9,'addComment',(_0x4b73f0,{threadId:_0x4a45b4,isFromAdapter:_0x331d88})=>{if(_0x331d88||!_0xd24a13['hasSuggestion'](_0x4a45b4))return;const _0x2a7b4e=_0xd24a13['getSuggestion'](_0x4a45b4);this['_suggestionToController']['get'](_0x2a7b4e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x21bccb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x47e7b7;for(const _0x3c8485 in _0x21bccb){const _0x2c2676=_0x3c8485,_0x2605f2=_0x21bccb[_0x2c2676];if('trackChangesLicenseKeyValid'==_0x2605f2||'trackChangesLicenseKeyInvalid'==_0x2605f2||'trackChangesLicenseKeyExpired'==_0x2605f2||'trackChangesLicenseKeyDomainLimit'==_0x2605f2||'trackChangesLicenseKeyNotAllowed'==_0x2605f2||'trackChangesLicenseKeyEvaluationLimit'==_0x2605f2||'trackChangesLicenseKeyTrialLimit'==_0x2605f2||'trackChangesLicenseKeyUsageLimit'==_0x2605f2){delete _0x21bccb[_0x2c2676],_0x47e7b7=_0x2605f2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x47e7b7&&_0x21bccb['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x47e7b7&&_0x21bccb['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x47e7b7&&_0x21bccb['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x47e7b7&&_0x21bccb['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x47e7b7&&_0x21bccb['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x47e7b7&&_0x21bccb['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x47e7b7&&_0x21bccb['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1bdef4=this['editor']['plugins']['get']('Annotations'),_0x1410f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8cdcc8=Array['from'](_0x1bdef4['activeAnnotations'],_0x526dd8=>_0x526dd8['innerView'])['filter'](_0x56da06=>this['_viewToController']['has'](_0x56da06)),_0x28b82f=[];for(const _0x5c4489 of _0x8cdcc8){const _0x3564ae=this['_viewToController']['get'](_0x5c4489)['model']['getAllAdjacentSuggestions']();_0x28b82f['push'](..._0x3564ae['reduce']((_0x439180,_0x4e64e5)=>[..._0x439180,..._0x4e64e5['getMarkerNames']()],[]));}_0x1410f0['activeMarkers']=_0x28b82f;}['_addUIComponentsToFactory'](){const _0x2684b5=this['editor'],_0x56ea33=_0x2684b5['locale'],_0x2f8466=c(_0x56ea33,'Track\x20changes'),_0x6daeed=new _0x5ea54c([{'type':'switchbutton','model':new _0x1d26cd({'withText':!0x0,'isToggleable':!0x0,'label':_0x2f8466,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1d26cd({'withText':!0x0,'label':c(_0x56ea33,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d26cd({'withText':!0x0,'label':c(_0x56ea33,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d26cd({'withText':!0x0,'label':c(_0x56ea33,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d26cd({'withText':!0x0,'label':c(_0x56ea33,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2684b5['plugins']['has']('TrackChangesPreview')&&_0x6daeed['addMany']([{'type':'separator'},{'type':'button','model':new _0x1d26cd({'withText':!0x0,'label':c(_0x56ea33,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x49107d of _0x6daeed)if(ke(_0x49107d)){const _0x561262=_0x2684b5['commands']['get'](_0x49107d['model']['commandName']);_0x49107d['model']['bind']('isOn','isEnabled')['to'](_0x561262,'value','isEnabled');}_0x2684b5['ui']['componentFactory']['add']('trackChanges',_0x28fc4b=>this['_createToolbarButton'](_0x28fc4b,_0x6daeed,_0x2f8466)),_0x2684b5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x109655=>this['_createMenuBarMenu'](_0x109655,_0x6daeed,_0x2f8466));}['_createToolbarButton'](_0x2f830c,_0x46ac95,_0x566681){const _0x2ce97f=_0xfda68c(_0x2f830c,_0x309917),_0x48826f=this['editor']['commands']['get']('trackChanges');_0x2ce97f['buttonView']['set']({'tooltip':_0x566681,'label':_0x566681,'icon':_0x15158e}),_0x2ce97f['buttonView']['bind']('isOn')['to'](_0x48826f,'value'),_0x2ce97f['buttonView']['on']('execute',()=>{_0x48826f['execute'](),this['editor']['editing']['view']['focus']();}),_0x2bb6dd(_0x2ce97f,_0x46ac95,{'role':'menu'});const _0x101259=[];for(const _0x462fc2 of _0x46ac95)ke(_0x462fc2)&&_0x101259['push'](this['editor']['commands']['get'](_0x462fc2['model']['commandName']));const _0x5d8f2d=_0x2ce97f['buttonView'];return _0x5d8f2d['actionView']['unbind']('isEnabled'),_0x5d8f2d['arrowView']['unbind']('isEnabled'),_0x5d8f2d['actionView']['bind']('isEnabled')['to'](_0x48826f,'isEnabled'),_0x5d8f2d['arrowView']['bind']('isEnabled')['toMany'](_0x101259,'isEnabled',(..._0x831dfc)=>_0x831dfc['some'](_0x250b30=>_0x250b30)),_0x2ce97f['on']('execute',_0x4e5962=>{this['editor']['execute'](_0x4e5962['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ce97f;}['_createMenuBarMenu'](_0x11f5be,_0xfb91ae,_0x2d63e9){const _0x2367d8=new _0x2af4e2(_0x11f5be),_0x44831b=this['editor']['commands']['get']('trackChanges');_0x2367d8['buttonView']['set']({'label':_0x2d63e9,'icon':_0x15158e});const _0x2c0847=new _0x14bb6a(_0x11f5be);for(const _0x82934c of _0xfb91ae){if('separator'==_0x82934c['type']){_0x2c0847['items']['add'](new _0x2fbf22(_0x11f5be));continue;}const _0x103fcd=new _0x397023(_0x11f5be,_0x2367d8),_0x4cc570=new _0x9e6c9d(_0x11f5be),_0x404089=_0x82934c['model'];_0x4cc570['bind'](...Object['keys'](_0x404089))['to'](_0x404089),_0x4cc570['delegate']('execute')['to'](_0x2367d8),_0x4cc570['on']('execute',()=>{this['editor']['execute'](_0x404089['commandName']),this['editor']['editing']['view']['focus']();}),_0x103fcd['children']['add'](_0x4cc570),_0x2c0847['items']['add'](_0x103fcd);}return _0x2367d8['bind']('isEnabled')['to'](_0x44831b,'isEnabled'),_0x2367d8['panelView']['children']['add'](_0x2c0847),_0x2367d8;}['_initializeController'](_0x3192d2){const _0x5ed342=this['editor'],_0x5df1e4=_0x5ed342['config'],_0x34a879=_0x5ed342['plugins']['get']('Annotations'),_0x373fd8=_0x5ed342['plugins']['get']('CommentsRepository'),_0x16b2ae=_0x5ed342['plugins']['get']('EditorAnnotations'),_0x513bed=_0x5ed342['plugins']['get'](_0x1b4cac)['me'],_0x2291b6=_0x5df1e4['get']('trackChanges')['SuggestionThreadView'],_0x3f2b52=_0x5df1e4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x547ee9,CommentThreadInputView:_0x418b89}=_0x5ed342['plugins']['get']('CommentsUI');let _0x293003,_0x2104db,_0x560850;this['_annotationViews']['has'](_0x3192d2['id'])?(_0x2104db=this['_annotationViews']['get'](_0x3192d2['id']),_0x293003=_0x2104db['mainView']):(_0x293003=new _0x2291b6(_0x5ed342['locale'],_0x3192d2,_0x513bed,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5df1e4['get']('comments.editorConfig'),'licenseKey':_0x5df1e4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5df1e4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5df1e4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5df1e4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x59c366(_0x5df1e4['get']('locale')),'CommentView':_0x5df1e4['get']('comments')['CommentView'],'CommentsListView':_0x547ee9,'CommentThreadInputView':_0x418b89,'SuggestionView':_0x3f2b52}),_0x293003['suggestionView']['acceptButton']['on']('execute',()=>{_0x5ed342['editing']['view']['focus']();}),_0x293003['suggestionView']['discardButton']['on']('execute',()=>{_0x5ed342['editing']['view']['focus']();}),_0x2104db=_0x34a879['createAnnotationView'](this['editor']['locale'],_0x293003),_0x2104db['bind']('isDirty')['to'](_0x293003,'isDirty'),_0x2104db['bind']('length')['to'](_0x293003),_0x2104db['bind']('type')['to'](_0x293003,'type',_0x4e712e=>'suggestion-'+_0x4e712e),_0x293003['on']('escape',()=>{_0x560850['fire']('escape');}),this['_annotationViews']['set'](_0x3192d2['id'],_0x2104db));const _0x274e21=_0x373fd8['createCommentThreadController'](_0x3192d2['commentThread'],_0x293003),_0x14a0fe=new pe(_0x5ed342,_0x3192d2,_0x293003,_0x274e21),_0x26d914=_0x3192d2['getAllAdjacentSuggestions']()['filter'](_0x3542ae=>_0x3542ae['isInContent']);_0x293003['descriptionParts']=_0x5ed342['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x26d914),this['_suggestionToController']['set'](_0x3192d2,_0x14a0fe),this['_viewToController']['set'](_0x293003,_0x14a0fe),_0x560850=_0x34a879['createAnnotation']({'view':_0x2104db,'target':()=>{const _0x56edd9=[],_0x6dba8=_0x3192d2['getAllAdjacentSuggestions']()['filter'](_0x12713e=>_0x12713e['isInContent']);for(const _0x4a0280 of _0x6dba8)_0x56edd9['push'](..._0x4a0280['getMarkers']());return _0x462d3c(_0x5ed342['editing'],_0x56edd9);},'type':()=>'suggestion-'+_0x14a0fe['view']['type']}),_0x373fd8['_bindAnnotationToEditors'](_0x293003,_0x560850),_0x34a879['add'](_0x560850),_0x16b2ae['registerAnnotation'](_0x560850);}['_destroyController'](_0x47ea0f){const _0x8b3a30=this['editor']['plugins']['get']('CommentsRepository'),_0x87a2f5=this['editor']['plugins']['get']('Annotations'),_0x2e6293=this['_suggestionToController']['get'](_0x47ea0f),_0x11278e=_0x2e6293['view'],_0x3ccc0a=_0x87a2f5['getByInnerView'](_0x11278e);_0x8b3a30['_unbindEditors'](_0x11278e),_0x3ccc0a&&_0x87a2f5['remove'](_0x3ccc0a),this['_suggestionToController']['delete'](_0x47ea0f),this['_viewToController']['delete'](_0x11278e),_0x2e6293['destroy']();}['_updateController'](_0x40fbc5){if(!_0x40fbc5['isInContent']||!this['_suggestionToController']['has'](_0x40fbc5))return;const _0x188d3f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e6c94=this['_suggestionToController']['get'](_0x40fbc5),_0x3d6e92=_0x40fbc5['getAllAdjacentSuggestions']();_0x1e6c94['view']['descriptionParts']=_0x188d3f['descriptionFactory']['getDescriptions'](_0x3d6e92);}['destroy'](){for(const _0x128893 of this['_suggestionToController']['keys']())this['_destroyController'](_0x128893);for(const _0x5eb780 of this['_annotationViews']['values']())_0x5eb780['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x101da1){return'model'in _0x101da1;}class k extends _0x45133c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x584878){this['editor']['plugins']['get'](p)['adapter']=_0x584878;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4906e4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4906e4);}['getSuggestions']({skipNotAttached:_0x4ea5e2=!0x1,toJSON:_0x24eb50=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4ea5e2,'toJSON':_0x24eb50});}['getSuggestion'](_0x3b6781){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3b6781);}}const w=['Pagination'];class T extends _0x45133c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2a1570=this['editor'];if(_0x2a1570['config']['define']('trackChangesData.editorCreator',_0x4e8152=>{const _0x5ad263=_0x2a1570['model']['document']['getRootNames']()['reduce']((_0x467953,_0x32c6b3)=>(_0x467953[_0x32c6b3]='',_0x467953),{});return _0x2a1570['constructor']['create'](_0x5ad263,_0x4e8152);}),'function'!=typeof _0x2a1570['config']['get']('trackChangesData')['editorCreator'])throw new _0x5dd626('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x29640d){return N(this['editor'],!0x0,_0x29640d);}['getDataWithDiscardedSuggestions'](_0x24016e){return N(this['editor'],!0x1,_0x24016e);}}class D extends _0x45133c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4c1f0f){function _0x2ada90(_0x4fa9b8){return _0x4fa9b8['map'](_0xd04df9=>String['fromCharCode'](_0xd04df9))['join']('');}super(_0x4c1f0f),this['result']='end',_0x4c1f0f[_0x2ada90([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ada90([0x76,0x69,0x65,0x77])][_0x2ada90([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ada90([0x61,0x75,0x74,0x6f]),_0x4c1f0f[_0x2ada90([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2ada90([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ada90([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2ada90([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2ada90([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(_0x464f5e){return void 0x0!==_0x464f5e['getRootsAttributes'];}async function N(_0x31c148,_0x3cbda7,_0x190cd7){const _0x58f75d=_0x2e21b6(_0x31c148,w);_0x58f75d['plugins']['push'](p,D),_0x58f75d['rootsAttributes']=Fe(_0x31c148)?_0x31c148['getRootsAttributes']():void 0x0;const _0x40bfab=document['createDocumentFragment'](),_0x10333a=_0x31c148['config']['get']('trackChangesData')['editorCreator'],_0x1a74d6=await _0x10333a(_0x58f75d,()=>function(_0x494ef2){const _0x3afe93=document['createElement']('div');return _0x494ef2['appendChild'](_0x3afe93),_0x3afe93;}(_0x40bfab));!function(_0x896a65,_0xc38e12){const _0x5db74c=_0x896a65['model']['document']['getRootNames']()['reduce']((_0x363372,_0x1f8d8b)=>(_0x363372[_0x1f8d8b]=_0x896a65['data']['get']({'rootName':_0x1f8d8b}),_0x363372),{}),_0x51d521=_0x896a65['plugins']['get']('Users')['users']['map'](_0x481cd1=>({'id':_0x481cd1['id'],'name':_0x481cd1['name']})),_0x2eb09f=_0x896a65['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x58ed06=_0x896a65['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3811f5=_0xc38e12['plugins']['get']('Users'),_0x16c272=_0xc38e12['plugins']['get']('TrackChangesEditing'),_0x1792bf=_0xc38e12['plugins']['get']('CommentsRepository');for(const _0x866cab of _0x1792bf['getCommentThreads']())_0x866cab['remove']();for(const _0x53726f of _0x51d521)_0x3811f5['getUser'](_0x53726f['id'])||_0x3811f5['addUser'](_0x53726f);_0x3811f5['me']||_0x3811f5['useAnonymousUser']();for(const _0x5d2cf4 of _0x58ed06)_0x1792bf['addCommentThread'](_0x5d2cf4);for(const _0x450bed of _0x2eb09f)_0x16c272['addSuggestionData'](_0x450bed);_0xc38e12['data']['set'](_0x5db74c);}(_0x31c148,_0x1a74d6),_0x1a74d6['execute'](_0x3cbda7?'acceptAllSuggestions':'discardAllSuggestions');const _0x59a3dd=Fe(_0x1a74d6)?_0x1a74d6['getFullData'](_0x190cd7):_0x1a74d6['data']['get'](_0x190cd7);return await _0x1a74d6['destroy'](),_0x59a3dd;}class Me extends _0x4a6fb7{['options'];constructor(_0x472af9,_0x39ae5f){super(_0x472af9),this['options']=_0x39ae5f,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'](_0x55bc69,_0x551622){if(!this['element'])return;const _0x2b9302=[];for(const [_0x3ba2ac,_0x4fc038]of _0x55bc69){const _0x29078c=document['createElement']('div');_0x29078c['setAttribute']('data-ck-root-name',_0x3ba2ac),_0x29078c['className']=_0x4fc038['classes']+'\x20ck-track-changes-preview__root-container',_0x29078c['innerHTML']=_0x4fc038['content'],_0x2b9302['push'](_0x29078c);}_0x551622(this['element'],_0x2b9302),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x32beec{constructor(_0x2726e4){super(_0x2726e4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x29b652=this['editor'],_0xb03dcd=_0x29b652['locale'],_0x1b3dd5=_0x29b652['plugins']['get']('Dialog');let _0x293d4b;const _0x29b312=function(_0xcdabd7){const _0x482b04={};if('editables'in _0xcdabd7['ui']['view']){for(const [_0x3f700a,_0x114af5]of Object['entries'](_0xcdabd7['ui']['view']['editables']))_0x482b04[_0x3f700a]=_0x114af5['element'];}else _0x482b04[_0xcdabd7['model']['document']['getRootNames']()[0x0]]=_0xcdabd7['ui']['view']['editable']['element'];return _0x482b04;}(_0x29b652),_0x171c7c=function(_0x9d90ad){let _0x4fdc31=0x0;for(const _0x5bddd3 of Object['values'](_0x9d90ad))_0x4fdc31=Math['max'](_0x4fdc31,_0x5bddd3['getBoundingClientRect']()['width']);let _0x18753a=0x0;for(const _0x461c57 of Object['values'](_0x9d90ad))_0x18753a+=_0x461c57['getBoundingClientRect']()['height'];const _0x5cff4e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5250ce=Math['min'](_0x18753a,_0x5cff4e);return{'width':_0x4fdc31,'height':_0x5250ce};}(_0x29b312);_0x1b3dd5['show']({'id':'finalContentPreview','title':c(_0xb03dcd,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xb03dcd,{'dialogRects':_0x171c7c}),'onHide':()=>{_0x293d4b['detachFromDom']();},'onShow':()=>{_0x29b652['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x7ea794=>{const _0x15b42c=this['_standarizeRootsData'](_0x7ea794,_0x29b652,_0x29b312);_0x1b3dd5['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x15b42c,_0x29b652['config']['get']('trackChanges.preview.renderFunction'));}),_0x293d4b=new _0x1a89ef(_0xb03dcd,[_0x1b3dd5['view']]),_0x293d4b['attachToDom'](),_0x293d4b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x29b652['once']('destroy',()=>{_0x293d4b['detachFromDom']();});const _0x2ce427=_0x1b3dd5['view']['headerView']['class'];_0x1b3dd5['view']['headerView']['class']=_0x2ce427?_0x2ce427+'\x20ck-reset_all':'ck-reset_all',_0x1b3dd5['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1b3dd5['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2ec73f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4a75f0=_0x2ec73f['previewMode'],_0x2156a8={};if('$labels'===_0x4a75f0){for(const _0x44d84c of _0x2ec73f['getMergeFieldsIds']())_0x2156a8[_0x44d84c]=_0x2ec73f['getLabel'](_0x44d84c)||_0x44d84c;}else{const _0x223c07='$defaultValues'===_0x4a75f0?_0x2ec73f['getDefaultValues']():_0x2ec73f['getDataSetValues'](_0x4a75f0,!0x0);for(const _0x226d0e of Object['entries'](_0x223c07)){const [_0x5732f1,_0x3bb408]=_0x226d0e;_0x2156a8[_0x5732f1]=null!==_0x3bb408?_0x3bb408:_0x2ec73f['getLabel'](_0x5732f1)||_0x5732f1;}}return{'mergeFieldsData':_0x2156a8};}['_standarizeRootsData'](_0x188dc0,_0x4686d9,_0x14fe13){let _0x20c04f;if('string'==typeof _0x188dc0){const _0x11ab1f=_0x4686d9['model']['document']['getRootNames']()[0x0];_0x20c04f={[_0x11ab1f]:_0x188dc0};}else _0x20c04f=_0x188dc0;const _0x58d91d=this['_fixMediaEmbeds'](_0x20c04f,_0x4686d9),_0x265446=function(_0x28a131,_0x195eeb){for(const [_0x2bb3cf,_0x2de880]of _0x28a131)_0x2de880['classes']=_0x195eeb[_0x2bb3cf]['classList']['value']['replace']('ck-focused','');return _0x28a131;}(this['_sortRoots'](_0x4686d9)['reduce']((_0x59e5c6,_0x10b3fa)=>(_0x59e5c6['push']([_0x10b3fa,{'content':_0x58d91d[_0x10b3fa],'classes':''}]),_0x59e5c6),[]),_0x14fe13);return _0x265446;}['_fixMediaEmbeds'](_0x2a3666,_0x4a479e){if(!_0x4a479e['plugins']['has']('MediaEmbedEditing'))return _0x2a3666;const _0x28e8de=_0x4a479e['plugins']['get']('MediaEmbedEditing');for(const [_0x4c1fc2,_0x14e82d]of Object['entries'](_0x2a3666)){const _0x49b3d8=document['createElement']('div');_0x49b3d8['innerHTML']=_0x14e82d,(_0x49b3d8['querySelectorAll']('figure.media')['forEach'](_0x4dc4f9=>{const _0x22e7f7=_0x4dc4f9['querySelector']('oembed');if(_0x22e7f7){const _0x5a5ed3=_0x22e7f7['getAttribute']('url');if(_0x5a5ed3){const _0x4a7664=_0x28e8de['registry']['getMediaViewElement'](new _0x1a1864(_0x4a479e['editing']['view']['document']),_0x5a5ed3,{'elementName':'','renderForEditingView':!0x0}),_0xd85665=document['createElement']('div');_0xd85665['classList']['add']('ck-media__wrapper'),_0x4a7664['render'](_0xd85665,_0x4a479e['editing']['view']['domConverter']),_0x22e7f7['replaceWith'](_0xd85665);}}}),_0x2a3666[_0x4c1fc2]=_0x49b3d8['innerHTML']);}return _0x2a3666;}['_sortRoots'](_0xcb3ad1){if(!function(_0x13bc04){return void 0x0!==_0x13bc04['getRootsAttributes'];}(_0xcb3ad1))return _0xcb3ad1['model']['document']['getRootNames']();const _0xefa919=[],_0x53dc86=new Map();for(const _0x172878 of _0xcb3ad1['model']['document']['getRootNames']()){const _0x3fc31d=_0xcb3ad1['editing']['view']['getDomRoot'](_0x172878)['getClientRects']()['item'](0x0);_0xefa919['push'](_0x172878),_0x53dc86['set'](_0x172878,_0x3fc31d);}return _0xefa919['sort']((_0x16ad52,_0x37bb3b)=>{const _0x330b71=_0x53dc86['get'](_0x16ad52),_0x283078=_0x53dc86['get'](_0x37bb3b);return _0x330b71['y']-_0x283078['y']||_0x330b71['x']-_0x283078['x'];}),_0xefa919;}}class te extends _0x45133c{static get['requires'](){return[T,_0x24c472];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b3be2){super(_0x1b3be2),_0x1b3be2['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1b3be2['config']['define']('trackChanges.preview.renderFunction',(_0x2f0381,_0x30e9f4)=>{for(const _0x1c61c2 of _0x30e9f4)_0x2f0381['appendChild'](_0x1c61c2);});}}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};
|
|
23
|
+
import{Command as Yt,Plugin as _0x2e08d9,PendingActions as _0x1aad59,icons as _0xb530aa}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x52970e,ObservableMixin as _0xa330e0,uid as _0x392169,priorities as _0x781394,insertToPriorityArray as _0x57d506,logWarning as _0x976cd3,getEnvKeystrokeText as _0x3e023e,FocusTracker as _0x2481a0,KeystrokeHandler as _0x458e64,Collection as _0x5238df}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4e720c,View as _0x5f1e52,ViewCollection as _0x115911,FocusCycler as _0x43c9e4,ViewModel as _0x23776e,createDropdown as _0xdebc59,SplitButtonView as _0x498946,addListToDropdown as _0x41b2ff,MenuBarMenuView as _0x49c373,MenuBarMenuListView as _0x38af2a,ListSeparatorView as _0x12fb5d,MenuBarMenuListItemView as _0x5225fb,MenuBarMenuListItemButtonView as _0x1358b3,BodyCollection as _0x2d2330,Dialog as _0x27313c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1a26af,hashObject as _0x227004,surroundingMarkersDetector as _0x2892ac,FOCUS_ANNOTATION_KEYSTROKE as _0xbe1f1f,AriaDescriptionView as _0x5c88cb,setupThreadKeyboardNavigation as _0x2d4cb7,trimHtml as _0x4ddd8f,UserView as _0x142551,LateFocusButtonView as _0x5e5eb9,getDateTimeFormatter as _0x115e6d,getAllMarkersDomElementsSorted as _0x3dbaa0,sanitizeEditorConfig as _0x1f19b1}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x45101f,LiveRange as _0x985c68,LivePosition as _0xb7ad4c,DowncastWriter as _0x5a4d76}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2385c3,toWidget as _0x394e5c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x58e4b9,set as _0x2c2bb6,isEqual as _0x4900c1,unset as _0x25eea6,omit as Vt}from'lodash-es';import{Delete as _0x371f6b,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3952b1,ShiftEnter as _0x46f0df}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x544d43,_0x5bf382){super(_0x544d43),this['_enabledCommands']=_0x5bf382,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 _0x43ff3e of this['editor']['commands']['commands']())_0x43ff3e['affectsData']&&!this['_enabledCommands']['has'](_0x43ff3e)&&_0x43ff3e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x24d1b8 of this['editor']['commands']['commands']())_0x24d1b8['affectsData']&&!this['_enabledCommands']['has'](_0x24d1b8)&&_0x24d1b8['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x46aaa0,_0x554a62){super(_0x46aaa0),this['_suggestions']=_0x554a62,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2c1ef1){const _0x4333d7=this['_suggestions']['get'](_0x2c1ef1);if(!_0x4333d7)throw new _0x52970e('track-changes-accept-suggestion-not-found',this);const _0x4537b7=_0x4333d7['getRanges']();this['editor']['model']['canEditAt'](_0x4537b7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4333d7);}}class R extends Yt{['_suggestions'];constructor(_0x2097de,_0x3b423a){super(_0x2097de),this['_suggestions']=_0x3b423a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2753d2){const _0xe9ebdb=this['_suggestions']['get'](_0x2753d2);if(!_0xe9ebdb)throw new _0x52970e('track-changes-discard-suggestion-not-found',this);const _0x5286a4=_0xe9ebdb['getRanges']();this['editor']['model']['canEditAt'](_0x5286a4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xe9ebdb);}}function cs(_0x3e17e0,_0x512f0e){let _0x47bd89='';return _0x47bd89+=_0x3e17e0['split']('*')['map']((_0x287a29,_0x29ce4f)=>_0x29ce4f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x287a29)+'</span>':nn(_0x287a29))['join'](''),_0x512f0e&&(_0x47bd89+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x512f0e['value']+'\x22\x20title=\x22'+_0x512f0e['title']+'\x22></span>'),_0x47bd89;}function nn(_0x1ea870){const _0x18961d=document['createElement']('span');return _0x18961d['innerText']=_0x1ea870,_0x18961d['innerHTML'];}function Zt(_0x49476c){return _0x49476c['sort']((_0x4271ec,_0x3d7dbb)=>'deletion'==_0x4271ec['type']&&'deletion'!=_0x3d7dbb['type']?-0x1:'deletion'!=_0x4271ec['type']&&'deletion'==_0x3d7dbb['type']?0x1:0x0);}function to(_0x15ad9e,_0x4ca73d){let _0x168df1,_0x1fc592=0x0;const _0x2f772d=[],_0x1c1b1c=_0x4ca73d['schema'];for(;_0x1fc592<_0x15ad9e['length'];){const _0x8f3323=_0x15ad9e[_0x1fc592],_0x4bc6dc=_0x15ad9e[_0x1fc592+0x1];_0x168df1||(_0x168df1=_0x4ca73d['createPositionBefore'](_0x8f3323)),on(_0x4ca73d,_0x8f3323,_0x4bc6dc)||(_0x2f772d['push'](_0x4ca73d['createRange'](_0x168df1,_0x1c1b1c['isObject'](_0x8f3323)?_0x4ca73d['createPositionAfter'](_0x8f3323):_0x4ca73d['createPositionAt'](_0x8f3323,'end'))),_0x168df1=null),_0x1fc592++;}return _0x2f772d;}function on(_0x2b034a,_0x1f3507,_0x278ce0){if(!_0x278ce0)return!0x1;const _0x22af14=_0x2b034a['createPositionAfter'](_0x1f3507),_0x1f2375=_0x2b034a['createPositionBefore'](_0x278ce0);return _0x22af14['isTouching'](_0x1f2375);}function ts(_0x258f13,_0x36aaf1,_0x2bac24){for(;_0x2bac24['length'];){const _0x57b54a=_0x2bac24['splice'](0x0,0x64);_0x258f13['change'](()=>{for(const _0x4d258f of _0x57b54a)_0x4d258f['isInContent']&&_0x36aaf1['execute'](_0x4d258f['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x3196ae,_0x2dc533,_0x34530){super(_0x3196ae),this['_command']=_0x2dc533,this['_suggestions']=_0x34530,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x44d73a=Array['from'](this['_suggestions']['values']())['some'](_0x39b763=>_0x39b763['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x44d73a;}['execute'](){const _0x227ea2=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x34dd48 of _0x227ea2){const _0x237abb=_0x34dd48['getRanges']();if(!this['editor']['model']['canEditAt'](_0x237abb))return;}ts(this['editor']['model'],this['_command'],_0x227ea2);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xc0fff1,_0x319005,_0x2096ef){super(_0xc0fff1),this['_command']=_0x319005,this['_suggestions']=_0x2096ef,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2dd932=this['editor']['model']['document']['selection'],_0xc7e7c5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x370300,_0x11e3f4){const _0x4a30a8=Array['from'](_0x370300['getRanges']()),_0x31d52e=new Set();for(const _0x1c9a48 of _0x11e3f4)if(_0x1c9a48['isInContent']){for(const _0x5a090e of _0x4a30a8)for(const _0x3fda27 of _0x1c9a48['getRanges']())(_0x5a090e['isIntersecting'](_0x3fda27)||_0x370300['isCollapsed']&&!_0x1c9a48['isMultiRange']&&_0x1c9a48['next']&&_0x3fda27['end']['isTouching'](_0x5a090e['start']))&&_0x31d52e['add'](_0x1c9a48);}return _0x31d52e;}(_0x2dd932,_0xc7e7c5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x195688=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x45ce1c of _0x195688){const _0x2aef7f=_0x45ce1c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2aef7f))return;}ts(this['editor']['model'],this['_command'],_0x195688);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0xa330e0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x226a4e,_0x4f0f9f){super(),this['id']=_0x4f0f9f['id'],this['type']=_0x4f0f9f['type'],this['subType']=_0x4f0f9f['subType']||null,this['author']=_0x4f0f9f['author'],this['creator']=_0x4f0f9f['creator']||_0x4f0f9f['author'],this['isExternal']=Boolean(_0x4f0f9f['attributes']&&_0x4f0f9f['attributes']['@external']),this['data']=null,this['_model']=_0x226a4e,this['_onAccept']=_0x4f0f9f['onAccept'],this['_onDiscard']=_0x4f0f9f['onDiscard'],this['_onAttributesChange']=_0x4f0f9f['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4f0f9f['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 _0x4eae90=this;for(;_0x4eae90['previous'];)_0x4eae90=_0x4eae90['previous'];return _0x4eae90;}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'](_0x1858d9){this['_markerNames']['add'](_0x1858d9);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x17233a=>this['_model']['markers']['get'](_0x17233a))['filter'](_0x58595b=>_0x58595b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x30c315=>{for(const _0x3d855b of this['getMarkers']())_0x30c315['removeMarker'](_0x3d855b);}),this['_markerNames']['clear']();}['removeMarker'](_0x22b32e){this['_model']['change'](_0x3da763=>{_0x3da763['removeMarker'](_0x22b32e);}),this['_markerNames']['delete'](_0x22b32e);}['addRange'](_0x413db9){const _0x349070='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x349070),this['_model']['change'](_0x5e12e1=>{_0x5e12e1['addMarker'](_0x349070,{'range':_0x413db9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3fe611){for(const _0x2e52a6 of this['getRanges']())if(_0x2e52a6['isIntersecting'](_0x3fe611))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x73cd3e=>_0x73cd3e['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5c0b1b,_0x23aea8)=>[..._0x5c0b1b,..._0x23aea8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x190aa4=this['getRanges']();if(0x1!=_0x190aa4['length'])return null;const _0x38873d=_0x190aa4[0x0],_0x3d2357=_0x38873d['start']['nodeAfter'],_0x34e6d5=_0x38873d['end']['nodeBefore'];return _0x3d2357 instanceof _0x45101f?_0x3d2357!=_0x34e6d5?null:_0x3d2357: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 _0x1fecc9=[];let _0x1dbe86=this['head'];for(;_0x1dbe86;)_0x1fecc9['push'](_0x1dbe86),_0x1dbe86=_0x1dbe86['next'];return _0x1fecc9;}['setAttribute'](_0x4d0156,_0x59a9ed){const _0x38693d=_0x58e4b9(this['attributes']);_0x2c2bb6(_0x38693d,_0x4d0156,_0x59a9ed),_0x4900c1(_0x38693d,this['attributes'])||(this['attributes']=_0x38693d,this['_onAttributesChange'](_0x38693d));}['removeAttribute'](_0x556a64){const _0x4a388b=_0x58e4b9(this['attributes']);_0x25eea6(_0x4a388b,_0x556a64),_0x4900c1(_0x4a388b,this['attributes'])||(this['attributes']=_0x4a388b,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 _0x392169()['substr'](0x1,0x5);}}function o(_0x13ab9e,_0x4f9f23,_0x4cf7e3){const _0x58a975=_0x13ab9e['t'],t=_0x13ab9e['t'];switch(_0x4f9f23){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',_0x4cf7e3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4cf7e3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4cf7e3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4cf7e3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4cf7e3);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',_0x4cf7e3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4cf7e3);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',_0x4cf7e3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4cf7e3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4cf7e3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4cf7e3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4cf7e3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4cf7e3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4cf7e3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4cf7e3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4cf7e3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4cf7e3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4cf7e3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4cf7e3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4cf7e3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4cf7e3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4cf7e3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4cf7e3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4cf7e3);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'},_0x4cf7e3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4cf7e3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4cf7e3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4cf7e3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4cf7e3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4cf7e3);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'},_0x4cf7e3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4cf7e3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4cf7e3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4cf7e3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4cf7e3);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'},_0x4cf7e3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4cf7e3);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'},_0x4cf7e3);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'},_0x4cf7e3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4cf7e3);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'},_0x4cf7e3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4cf7e3);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'},_0x4cf7e3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4cf7e3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4cf7e3);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'},_0x4cf7e3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4cf7e3);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 _0x58a975({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4cf7e3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x58a975({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4cf7e3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4cf7e3);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'},_0x4cf7e3);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'},_0x4cf7e3);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'},_0x4cf7e3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4f9f23;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x47fae1,_0x260d5a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x47fae1,this['_locale']=_0x260d5a;}['getDescriptions'](_0xb02305){const _0x26ce5f=[],_0x1006ef=new Set(),_0x91b78=new Set();for(let _0x300153=0x0;_0x300153<_0xb02305['length'];_0x300153++){const _0x3ff4f8=_0xb02305[_0x300153];if(!_0x3ff4f8['isInContent'])continue;const _0x54d861=this['_handleCustomCallbackDescription'](_0x3ff4f8);if(_0x54d861){if(null!=_0x3ff4f8['subType']){if(_0x1006ef['has'](_0x3ff4f8['subType']))continue;_0x1006ef['add'](_0x3ff4f8['subType']);}_0x26ce5f['push'](_0x54d861);}else{if('attribute'!=_0x3ff4f8['type'])'insertion'!=_0x3ff4f8['type']&&'deletion'!=_0x3ff4f8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x26ce5f,_0x3ff4f8,_0xb02305[_0x300153+0x1]);else{const _0x3e8bec=_0x3ff4f8['data']['key'];if(_0x91b78['has'](_0x3e8bec))continue;_0x91b78['add'](_0x3ff4f8['data']['key']),_0x3e8bec==m?this['_handleRenameSuggestionDescription'](_0x26ce5f,_0x3ff4f8):this['_handleAttributeSuggestionDescription'](_0x26ce5f,_0x3ff4f8);}}}return this['_resolveDescriptionItems'](_0x26ce5f);}['registerDescriptionCallback'](_0x4d7e64){this['_customCallbacks']['push'](_0x4d7e64);}['registerElementLabel'](_0x41980b,_0x54ad79,_0x59fb78=_0x781394['normal']){'function'==typeof _0x41980b?_0x57d506(this['_itemLabelsCallbacks'],{'matchingCallback':_0x41980b,'label':_0x54ad79,'priority':_0x59fb78}):this['_itemLabels']['set'](_0x41980b,_0x54ad79);}['registerAttributeLabel'](_0x1bd273,_0x21f97b){this['_attributeLabels']['set'](_0x1bd273,_0x21f97b);}['getItemLabel'](_0x37626b,_0x32c532=0x1){let _0x821b47;for(const _0x1a087f of this['_itemLabelsCallbacks'])if(_0x1a087f['matchingCallback'](_0x37626b)){_0x821b47=_0x1a087f['label'];break;}return _0x821b47||(_0x821b47=this['_itemLabels']['get'](_0x37626b['name'])),_0x821b47?_0x821b47(_0x32c532):0x1!==_0x32c532?_0x32c532+'\x20'+_0x37626b['name']+'s':''+_0x37626b['name'];}['_addDescriptionItems'](_0x400e59,_0x3975e2){const _0x5ac66a=_0x3975e2['getFirstRange']()['getWalker'](),_0x495b36='insertion'==_0x3975e2['type']?'add':'remove';for(const _0x49382e of _0x5ac66a){const _0x30e46b=_0x49382e['item'],_0x38454f=_0x400e59[_0x400e59['length']-0x1];if(_0x30e46b['is']('$textProxy'))_0x38454f&&_0x38454f['type']['indexOf']('Container')>-0x1&&_0x400e59['pop'](),_0x38454f&&'text'==_0x38454f['type']?_0x38454f[_0x495b36]+=_0x30e46b['data']:_0x400e59['push']({'type':'text','add':'add'==_0x495b36?_0x30e46b['data']:'','remove':'remove'==_0x495b36?_0x30e46b['data']:''});else{if(this['_schema']['isObject'](_0x30e46b)){const _0x3217b4=_0x30e46b;if(_0x38454f&&_0x38454f['type']['indexOf']('Container')>-0x1&&_0x400e59['pop'](),'elementEnd'==_0x49382e['type'])continue;_0x38454f&&_0x38454f['type']==_0x495b36+'Object'&&_0x38454f['element']['name']==_0x3217b4['name']?_0x38454f['quantity']++:_0x400e59['push']({'type':_0x495b36+'Object','element':_0x3217b4,'quantity':0x1}),_0x5ac66a['skip'](_0x1d412=>!('elementEnd'==_0x1d412['type']&&_0x1d412['item']==_0x30e46b));}else{if(this['_schema']['checkChild'](_0x30e46b,'$text')||_0x30e46b['is']('element','softBreak')){const _0x25a136=_0x30e46b;if('add'==_0x495b36&&'elementStart'==_0x49382e['type']||'remove'==_0x495b36&&'elementEnd'==_0x49382e['type'])continue;if(_0x38454f&&-0x1==_0x38454f['type']['indexOf']('Container')){'text'==_0x38454f['type']&&(_0x38454f[_0x495b36]+='\x0a');continue;}let _0x1df7dc;if(_0x1df7dc='add'==_0x495b36?_0x25a136['nextSibling']&&!this['_schema']['isObject'](_0x25a136['nextSibling'])?_0x25a136['nextSibling']:null:_0x25a136['previousSibling']&&!this['_schema']['isObject'](_0x25a136['previousSibling'])?_0x25a136['previousSibling']:null,_0x25a136['isEmpty']||_0x1df7dc&&_0x1df7dc['isEmpty']){const _0x549993=_0x1df7dc&&_0x1df7dc['isEmpty']?_0x1df7dc:_0x25a136;_0x38454f&&_0x38454f['type']==_0x495b36+'EmptyContainer'&&_0x38454f['element']['name']==_0x549993['name']?_0x38454f['quantity']++:_0x400e59['push']({'type':_0x495b36+'EmptyContainer','element':_0x549993,'quantity':0x1});}else _0x400e59['push']({'type':_0x495b36+'Container','element':_0x25a136});}}}}}['_resolveDescriptionItems'](_0x255611){const _0x12d21d=this['_locale'],_0x3c7350=[],_0x45c4ad=[],_0x56fb31=[];for(const _0x115b78 of _0x255611)switch(_0x115b78['type']){case'text':if(_0x115b78['add']=_0x115b78['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x115b78['remove']=_0x115b78['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x115b78['add']&&''!=_0x115b78['remove']){_0x3c7350['push']({'type':'replace','content':o(_0x12d21d,'REPLACE_TEXT',['\x22'+_0x115b78['remove']+'\x22','\x22'+_0x115b78['add']+'\x22'])});continue;}if(null!=_0x115b78['add']['match'](/^ +$/)){_0x3c7350['push']({'type':'insertion','content':o(_0x12d21d,'*Insert:*\x20%0',o(_0x12d21d,'ELEMENT_SPACE',_0x115b78['add']['length']))});continue;}if(null!=_0x115b78['remove']['match'](/^ +$/)){_0x3c7350['push']({'type':'deletion','content':o(_0x12d21d,'*Remove:*\x20%0',o(_0x12d21d,'ELEMENT_SPACE',_0x115b78['remove']['length']))});continue;}if(''!=_0x115b78['add']){_0x3c7350['push']({'type':'insertion','content':o(_0x12d21d,'*Insert:*\x20%0','\x22'+_0x115b78['add']+'\x22')});continue;}_0x3c7350['push']({'type':'deletion','content':o(_0x12d21d,'*Remove:*\x20%0','\x22'+_0x115b78['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3c7350['push']({'type':'insertion','content':o(_0x12d21d,'*Insert:*\x20%0',this['getItemLabel'](_0x115b78['element'],_0x115b78['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3c7350['push']({'type':'deletion','content':o(_0x12d21d,'*Remove:*\x20%0',this['getItemLabel'](_0x115b78['element'],_0x115b78['quantity']))});continue;case'addContainer':_0x3c7350['push']({'type':'insertion','content':o(_0x12d21d,'*Split:*\x20%0',this['getItemLabel'](_0x115b78['element'],_0x115b78['quantity']))});continue;case'removeContainer':_0x3c7350['push']({'type':'deletion','content':o(_0x12d21d,'*Merge:*\x20%0',this['getItemLabel'](_0x115b78['element'],_0x115b78['quantity']))});continue;case'addFormat':_0x45c4ad['push'](_0x115b78['key']);continue;case'removeFormat':_0x56fb31['push'](_0x115b78['key']);continue;default:_0x3c7350['push'](_0x115b78);}if(_0x45c4ad['length']){const _0xb30567=_0x45c4ad['map'](_0x4e3415=>this['_attributeLabels']['has'](_0x4e3415)?this['_attributeLabels']['get'](_0x4e3415):_0x4e3415)['join'](',\x20');_0x3c7350['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xb30567)});}if(_0x56fb31['length']){const _0x1266a2=_0x56fb31['map'](_0x13dde6=>this['_attributeLabels']['has'](_0x13dde6)?this['_attributeLabels']['get'](_0x13dde6):_0x13dde6)['join'](',\x20');_0x3c7350['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1266a2)});}return _0x3c7350;}['_handleCustomCallbackDescription'](_0x530f81){for(const _0x431539 of this['_customCallbacks']){const _0x505f80=_0x431539(_0x530f81);if(_0x505f80&&'type'in _0x505f80)return _0x505f80;}}['_handleAttributeSuggestionDescription'](_0x89a7cf,_0x21e09e){const _0x19b397=_0x21e09e['data'],_0xfa9507=void 0x0===_0x19b397['newValue']?'removeFormat':'addFormat';_0x89a7cf['push']({'type':_0xfa9507,'key':_0x19b397['key']});}['_handleRenameSuggestionDescription'](_0x536859,_0x56abca){_0x536859['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x56abca['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3678ee,_0x4dcc4d,_0x1a9703){if(this['_addDescriptionItems'](_0x3678ee,_0x4dcc4d),_0x1a9703&&_0x1a9703['getFirstRange']()&&!_0x4dcc4d['getFirstRange']()['end']['isEqual'](_0x1a9703['getFirstRange']()['start'])){const _0x4df72f=_0x3678ee[_0x3678ee['length']-0x1],_0x16e227='insertion'==_0x4dcc4d['type']?'add':'remove';_0x4df72f&&'text'==_0x4df72f['type']&&(_0x4df72f[_0x16e227]+='\x0a');}}}class U extends _0x2e08d9{['afterInit'](){const _0x561e60=this['editor'],_0x4ea725=_0x561e60['plugins']['get']('TrackChangesEditing');_0x561e60['commands']['get']('showAIAssistant')&&_0x4ea725['enableCommand']('showAIAssistant');}}class V extends _0x2e08d9{['afterInit'](){const _0x8e50fb=this['editor'],_0x4ada39=_0x8e50fb['locale'];if(!_0x8e50fb['plugins']['has']('AlignmentEditing'))return;const _0x815f44=_0x8e50fb['plugins']['get']('TrackChangesEditing');_0x815f44['enableDefaultAttributesIntegration']('alignment'),_0x815f44['registerBlockAttribute']('alignment'),_0x815f44['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4ada39,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x555d8b=this['editor'],_0x597efb=_0x555d8b['locale'];_0x555d8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5edaf5=>{if('formatBlock'!=_0x5edaf5['type'])return;const {data:_0xc2bc68}=_0x5edaf5;if(_0xc2bc68&&'alignment'==_0xc2bc68['commandName']){const _0x27a373=_0xc2bc68['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x597efb,'*Format:*\x20%0',function(_0x2b6d72){switch(_0x2b6d72){case'left':return o(_0x597efb,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x597efb,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x597efb,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x597efb,'FORMAT_JUSTIFY_TEXT');}}(_0x27a373))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2e08d9{['afterInit'](){const _0x2a8228=this['editor'],_0x14a1a1=_0x2a8228['plugins']['get']('TrackChangesEditing'),_0x825aec=_0x2a8228['locale'];for(const _0x3cfc80 of ti){if(!_0x2a8228['plugins']['has'](_0x3cfc80))continue;const _0x433adc=_0x3cfc80['slice'](0x0,-0x7)['toLowerCase'](),_0x27b5dc='FORMAT_'+_0x433adc['toUpperCase']();_0x14a1a1['enableDefaultAttributesIntegration'](_0x433adc),_0x14a1a1['registerInlineAttribute'](_0x433adc),_0x14a1a1['descriptionFactory']['registerAttributeLabel'](_0x433adc,o(_0x825aec,_0x27b5dc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x577556=this['editor'],_0x55e58a=_0x577556['locale'],_0x6736b0=_0x577556['plugins']['get']('TrackChangesEditing');function _0x182c7f(_0x11ef29,_0x5471e5){_0x6736b0['descriptionFactory']['registerDescriptionCallback'](_0x4408e5=>{if('formatInline'!=_0x4408e5['type'])return;const {data:_0x2459e0}=_0x4408e5;return _0x2459e0&&_0x2459e0['commandName']===_0x11ef29?_0x2459e0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55e58a,'*Format:*\x20%0',_0x5471e5)}:{'type':'format','content':o(_0x55e58a,'*Remove\x20format:*\x20%0',_0x5471e5)}:void 0x0;});}_0x182c7f('bold',o(_0x55e58a,'FORMAT_BOLD')),_0x182c7f('italic',o(_0x55e58a,'FORMAT_ITALIC')),_0x182c7f('underline',o(_0x55e58a,'FORMAT_UNDERLINE')),_0x182c7f('code',o(_0x55e58a,'FORMAT_CODE')),_0x182c7f('strikethrough',o(_0x55e58a,'FORMAT_STRIKETHROUGH')),_0x182c7f('subscript',o(_0x55e58a,'FORMAT_SUBSCRIPT')),_0x182c7f('superscript',o(_0x55e58a,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2e08d9{['afterInit'](){const _0x8de77b=this['editor'],_0x54b2cf=_0x8de77b['locale'];if(!_0x8de77b['plugins']['has']('BlockQuoteEditing'))return;const _0x2dee9f=_0x8de77b['plugins']['get']('TrackChangesEditing'),_0x53b1d4=this['editor']['commands']['get']('blockQuote');_0x2dee9f['enableCommand']('blockQuote',(_0xc5353b,_0x31cc3b={})=>{const _0x4e6257=this['editor']['model']['document']['selection'],_0x42c1ee=_0x31cc3b&&void 0x0!==_0x31cc3b['forceValue']?_0x31cc3b['forceValue']:!_0x53b1d4['value'];let _0x352449=[];if(_0x42c1ee){const _0x1a22ca=Array['from'](_0x4e6257['getSelectedBlocks']())['filter'](_0x5109b1=>oo(_0x5109b1)||function(_0x371c3e,_0x419279){const _0x1f539b=_0x419279['checkChild'](_0x371c3e['parent'],'blockQuote'),_0x275fbf=_0x419279['checkChild'](['$root','blockQuote'],_0x371c3e);return _0x1f539b&&_0x275fbf;}(_0x5109b1,this['editor']['model']['schema']));_0x352449=to(_0x1a22ca,_0x8de77b['model']);}else{const _0x2f3226=Array['from'](_0x4e6257['getSelectedBlocks']())['filter'](_0x795a94=>oo(_0x795a94));_0x352449=to(_0x2f3226,_0x8de77b['model']);}_0x8de77b['model']['change'](()=>{for(const _0x1af60a of _0x352449)_0x2dee9f['markBlockFormat'](_0x1af60a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x42c1ee}]});});}),_0x2dee9f['descriptionFactory']['registerDescriptionCallback'](_0x1e61d4=>{const {data:_0x3173cc}=_0x1e61d4;if(_0x3173cc&&'blockQuote'==_0x3173cc['commandName']){const _0x1bfa5a=o(_0x54b2cf,'ELEMENT_BLOCK_QUOTE');return _0x3173cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x54b2cf,'*Set\x20format:*\x20%0',_0x1bfa5a)}:{'type':'format','content':o(_0x54b2cf,'*Remove\x20format:*\x20%0',_0x1bfa5a)};}});}}function oo(_0x56c07d){return'blockQuote'==_0x56c07d['parent']['name'];}class L extends _0x2e08d9{['afterInit'](){const _0x22b251=this['editor'],_0x1bbde1=_0x22b251['locale'],_0x4b33f3=_0x22b251['plugins']['get']('TrackChangesEditing');_0x22b251['plugins']['has']('BookmarkEditing')&&(_0x4b33f3['enableCommand']('insertBookmark'),_0x4b33f3['enableDefaultAttributesIntegration']('updateBookmark'),_0x4b33f3['registerBlockAttribute']('bookmarkId'),_0x4b33f3['descriptionFactory']['registerDescriptionCallback'](_0x47ec1f=>{if('insertion'!=_0x47ec1f['type']&&'deletion'!=_0x47ec1f['type']&&'attribute'!=_0x47ec1f['type'])return;const _0x52591f=_0x47ec1f['getContainedElement']();if(null==_0x52591f)return;if(!_0x52591f['is']('element','bookmark'))return;const _0x568532=_0x52591f['getAttribute']('bookmarkId');if('insertion'==_0x47ec1f['type'])return{'type':'insertion','content':o(_0x1bbde1,'*Insert:*\x20%0','\x22'+_0x568532+'\x22\x20'+o(_0x1bbde1,'ELEMENT_BOOKMARK'))};if('deletion'==_0x47ec1f['type'])return{'type':'deletion','content':o(_0x1bbde1,'*Remove:*\x20%0','\x22'+_0x568532+'\x22\x20'+o(_0x1bbde1,'ELEMENT_BOOKMARK'))};const {data:_0x310c33}=_0x47ec1f;if(!_0x310c33||'bookmarkId'!=_0x310c33['key'])return;return{'type':'format','content':o(_0x1bbde1,'*Set\x20bookmark:*\x20%0','\x22'+_0x310c33['newValue']+'\x22')};}));}}class J extends _0x2e08d9{['afterInit'](){const _0x551e05=this['editor'];_0x551e05['plugins']['has']('CaseChange')&&(_0x551e05['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x551e05['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x551e05['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2e08d9{['afterInit'](){const _0x283d81=this['editor'];_0x283d81['commands']['get']('ckbox')&&_0x283d81['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2e08d9{['afterInit'](){const _0x516cd3=this['editor'];if(!_0x516cd3['plugins']['has']('CodeBlock'))return;const _0x364bfc=_0x516cd3['plugins']['get']('TrackChangesEditing'),_0x3ccad3=_0x516cd3['locale'],_0x498ff9=_0x516cd3['config']['get']('codeBlock')['languages'],_0x2e9eab=_0x516cd3['commands']['get']('codeBlock');_0x364bfc['enableCommand']('indentCodeBlock'),_0x364bfc['enableCommand']('outdentCodeBlock'),_0x364bfc['enableCommand']('codeBlock',(_0x19ab89,_0x42abee={})=>{const _0x15c69e=_0x516cd3['model'],_0x5d2c52=_0x516cd3['model']['document']['selection'],_0x421a7e=_0x42abee&&void 0x0!==_0x42abee['forceValue']?_0x42abee['forceValue']:!_0x2e9eab['value'];let _0xe617d8;_0x42abee['language']||(_0x42abee['language']=_0x498ff9[0x0]['language']),_0xe617d8=_0x421a7e?Array['from'](_0x5d2c52['getSelectedBlocks']())['filter'](_0x5a7883=>eo(_0x5a7883)||function(_0x132620,_0x5dfd15){if(_0x132620['is']('rootElement')||_0x5dfd15['isLimit'](_0x132620))return!0x1;return _0x5dfd15['checkChild'](_0x132620['parent'],'codeBlock');}(_0x5a7883,_0x15c69e['schema'])):Array['from'](_0x5d2c52['getSelectedBlocks']())['filter'](_0x3a190b=>eo(_0x3a190b));const _0x26fecd=to(_0xe617d8,_0x15c69e);_0x15c69e['change'](()=>{for(const _0xa49271 of _0x26fecd)_0x364bfc['markBlockFormat'](_0xa49271,{'commandName':'codeBlock','commandParams':[{..._0x42abee,'forceValue':_0x421a7e}],'formatGroupId':'blockName'});});}),(_0x364bfc['descriptionFactory']['registerElementLabel']('codeBlock',_0x2efe20=>o(_0x3ccad3,'ELEMENT_CODE_BLOCK',_0x2efe20)),_0x364bfc['descriptionFactory']['registerDescriptionCallback'](_0x5e9ed1=>{if('formatBlock'!=_0x5e9ed1['type'])return;const _0x2e70dd=_0x3ccad3['t'],{data:_0x4e719f}=_0x5e9ed1;if(!_0x4e719f||'codeBlock'!=_0x4e719f['commandName'])return;const _0x203062=_0x4e719f['commandParams'][0x0]['language'],_0xb01e0d=_0x2e70dd(_0x498ff9['find'](_0x1446b1=>_0x1446b1['language']===_0x203062)['label'])['toLowerCase']();return _0x4e719f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ccad3,'*Set\x20format:*\x20%0',o(_0x3ccad3,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xb01e0d+')')}:{'type':'format','content':o(_0x3ccad3,'*Remove\x20format:*\x20%0',o(_0x3ccad3,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4058aa){return'codeBlock'==_0x4058aa['name'];}class z extends _0x2e08d9{['afterInit'](){const _0x33b78a=this['editor'];if(!_0x33b78a['plugins']['has']('CommentsEditing'))return;_0x33b78a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x42055c,_0xb1ec9b,_0x136f33){const _0x270cdf=[];for(const _0x157130 of _0xb1ec9b['getItems']())_0x157130['hasAttribute'](_0x42055c)&&_0x270cdf['push'](_0x136f33['createRangeOn'](_0x157130));return _0x270cdf;}function De(_0x4d40b7,_0x4a951a,{showActiveMarker:_0x55d788=!0x0}={}){const _0x2e51cc=_0x4d40b7['plugins']['get']('TrackChangesEditing');return(_0x319e0b,_0x279946,_0x44acc8)=>{if(!_0x44acc8['consumable']['test'](_0x279946['markerRange'],_0x319e0b['name']))return;const _0x430b93=_0x279946['markerRange']['getWalker'](),_0x2c1f23=_0x279946['markerRange']['start'],_0x1548a7=_0x4d40b7['model']['schema'];let _0x4b3e1d=null,_0x3ac9c2=null,_0x437556=!0x1,_0x713a73=!0x1;for(const _0x1c5ab8 of _0x430b93){const _0x50603e=_0x1c5ab8['item'];_0x437556=_0x437556||_0x1548a7['isContent'](_0x50603e);const _0xeb239d=_0x44acc8['mapper']['toViewElement'](_0x50603e);if(_0xeb239d&&_0xeb239d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1c5ab8['type']&&(_0x1548a7['isBlock'](_0x50603e)&&!_0x1548a7['isLimit'](_0x50603e)&&(_0x50603e['nextSibling']||_0x2c1f23['isAtEnd']?_0x4b3e1d&&_0x4b3e1d['parent']==_0x50603e||(_0x4b3e1d=_0x50603e,_0xcaba32(_0x1c5ab8['previousPosition']),_0x713a73=!0x0):_0x3ac9c2=_0x3ac9c2||_0x1c5ab8['previousPosition']));}function _0xcaba32(_0x2f4989){const {authorId:_0xb5d587}=_0x2e51cc['_splitMarkerName'](_0x279946['markerName']),_0x2e4c3a=_0x44acc8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4a951a,'data-author-id':_0xb5d587}),_0x311a0e=_0x44acc8['mapper']['toViewPosition'](_0x2f4989);_0x55d788&&_0x2e51cc['activeMarkers']['includes'](_0x279946['markerName'])&&_0x44acc8['writer']['addClass']('ck-suggestion-marker--active',_0x2e4c3a),_0x44acc8['writer']['insert'](_0x311a0e,_0x2e4c3a),_0x44acc8['mapper']['bindElementToMarker'](_0x2e4c3a,_0x279946['markerName']);}_0x437556||_0x713a73||!_0x3ac9c2||_0xcaba32(_0x3ac9c2);};}class K extends _0x2e08d9{static get['requires'](){return[_0x371f6b];}['init'](){const _0x478758=this['editor'],_0x3a9a11=_0x478758['plugins']['get']('TrackChangesEditing');_0x3a9a11['enableCommand']('delete');const _0x3cfd02=_0x478758['commands']['get']('deleteForward');_0x3a9a11['enableCommand']('deleteForward',(_0x63fed5,_0xbdacb6={})=>{const _0x4208f7=_0x478758['model']['createSelection'](_0x478758['model']['document']['selection']);_0x4208f7['isCollapsed']&&_0x478758['model']['modifySelection'](_0x4208f7,{'direction':'forward','unit':_0xbdacb6['unit']});const _0x10c343=_0x4208f7['getFirstRange'](),_0x15119e=_0x985c68['fromRange'](_0x10c343);let _0x95247f;_0x63fed5(_0xbdacb6),_0x95247f='$graveyard'==_0x15119e['root']['rootName']?_0x478758['model']['createRange'](_0x10c343['start']):_0x478758['model']['createRange'](_0x15119e['start'],_0x15119e['end']),_0x15119e['detach'](),_0x478758['model']['enqueueChange'](_0x3cfd02['buffer']['batch'],_0x43a7bb=>{_0x3cfd02['buffer']['lock'](),_0x43a7bb['setSelection'](_0x43a7bb['createRange'](_0x95247f['end'])),_0x3cfd02['buffer']['unlock']();});}),_0x478758['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x478758,'merge'),{'priority':'high'}),_0x478758['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x290f2c,_0x6488b5,_0x5291ea)=>{_0x5291ea['options']['showSuggestionHighlights']&&De(_0x478758,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x290f2c,_0x6488b5,_0x5291ea);},{'priority':'high'}),_0x478758['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x325797,_0xd9014f,_0x2f00c4)=>{const _0x2fa8af=_0x2f00c4['mapper']['markerNameToElements'](_0xd9014f['markerName']);if(_0x2fa8af){for(const _0xb460e1 of _0x2fa8af)_0xb460e1['is']('uiElement')&&(_0x2f00c4['mapper']['unbindElementFromMarkerName'](_0xb460e1,_0xd9014f['markerName']),_0x2f00c4['writer']['remove'](_0xb460e1));}},{'priority':'high'});}}class W extends _0x2e08d9{['afterInit'](){const _0x5cc937=this['editor'];if(!_0x5cc937['plugins']['has']('ListEditing'))return;const _0x339477=_0x5cc937['locale'],_0x4004c7=_0x5cc937['plugins']['get']('TrackChangesEditing'),_0x426a9a=_0x5cc937['plugins']['has']('TodoListEditing'),_0x2c4799=!!_0x5cc937['config']['get']('list.multiBlock');function _0x122082(_0x19335a){return{'type':'format','content':''+o(_0x339477,'*Set\x20format:*\x20%0',_0x19335a)};}function _0x49d3d7(_0x4af6ba){return{'type':'format','content':''+o(_0x339477,'*Remove\x20format:*\x20%0',_0x4af6ba)};}_0x4004c7['enableDefaultAttributesIntegration']('numberedList'),_0x4004c7['enableDefaultAttributesIntegration']('bulletedList'),_0x4004c7['enableDefaultAttributesIntegration']('customNumberedList'),_0x4004c7['enableDefaultAttributesIntegration']('customBulletedList'),_0x4004c7['enableDefaultAttributesIntegration']('indentList'),_0x4004c7['enableDefaultAttributesIntegration']('outdentList'),_0x4004c7['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4004c7['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4004c7['registerBlockAttribute']('listItemId'),_0x4004c7['registerBlockAttribute']('listType'),_0x4004c7['registerBlockAttribute']('listIndent'),_0x2c4799&&(_0x4004c7['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4004c7['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x426a9a&&(_0x4004c7['enableDefaultAttributesIntegration']('todoList'),_0x4004c7['enableDefaultAttributesIntegration']('checkTodoList'),_0x4004c7['registerBlockAttribute']('todoListChecked'),_0x4004c7['descriptionFactory']['registerDescriptionCallback'](_0x174fcb=>{const {data:_0x70337c}=_0x174fcb;if(_0x70337c&&'todoListChecked'==_0x70337c['key'])return{'type':'format','content':_0x70337c['newValue']?o(_0x339477,'*Check\x20item*'):o(_0x339477,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xc25c48=>{if(_0xc25c48['batch']['isUndo'])return!0x1;let _0x4aa7c1=!0x1;const _0xbdbcd9=_0x4004c7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34fc00=>'todoListChecked'===_0x4004c7['_getAttributeKey'](_0x34fc00));for(const _0x158d0a of _0xbdbcd9){'todo'!=_0x158d0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4004c7['_findSuggestions'](_0x158d0a['getFirstRange'](),'attribute')['find'](_0x4e7958=>'listType'===_0x4004c7['_getAttributeKey'](_0x4e7958['suggestion']))||(_0xc25c48['removeMarker'](_0x158d0a['getFirstMarker']()),_0x4aa7c1=!0x0));}return _0x4aa7c1;})),_0x4004c7['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x339477,'FORMAT_INDENT'));const _0x3446fb={'type':'format','content':''};_0x4004c7['descriptionFactory']['registerDescriptionCallback'](_0x4e14aa=>{const {data:_0x797d0f}=_0x4e14aa;if(!_0x797d0f||'listType'!=_0x797d0f['key'])return;let _0x4b6840=_0x4e14aa['head'];for(;_0x4b6840;){if(_0x4b6840['data']&&(('listStyle'==_0x4b6840['data']['key']||'listMarkerStyle'==_0x4b6840['data']['key'])&&(_0x4b6840['data']['newValue']&&'default'!=_0x4b6840['data']['newValue']||'default'!=_0x4b6840['data']['oldValue']&&!_0x797d0f['newValue'])||!_0x2c4799&&_0x4b6840['data']['key']==m))return _0x3446fb;_0x4b6840=_0x4b6840['next'];}if(null==_0x797d0f['newValue'])switch(_0x797d0f['oldValue']){case'bulleted':return _0x49d3d7(o(_0x339477,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49d3d7(o(_0x339477,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49d3d7(o(_0x339477,'ELEMENT_TODO_LIST'));}switch(_0x797d0f['newValue']){case'bulleted':return _0x122082(o(_0x339477,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x122082(o(_0x339477,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x122082(o(_0x339477,'ELEMENT_TODO_LIST'));}}),_0x4004c7['descriptionFactory']['registerDescriptionCallback'](_0x33d59f=>{const {data:_0x2d44b8}=_0x33d59f;if(_0x2d44b8&&'listIndent'==_0x2d44b8['key'])return null==_0x2d44b8['newValue']||null==_0x2d44b8['oldValue']&&0x0==_0x2d44b8['newValue']?_0x3446fb:void 0x0;}),_0x4004c7['descriptionFactory']['registerDescriptionCallback'](_0x3c451c=>{if('attribute'!=_0x3c451c['type'])return;const {data:_0x1ce15d}=_0x3c451c;if(!_0x1ce15d||'listItemId'!=_0x1ce15d['key'])return;const _0xaa6b27=Te(_0x3c451c);return'newValue'==_0xaa6b27?{'type':'format','content':o(_0x339477,'*Merge:*\x20list\x20item')}:'oldValue'==_0xaa6b27?{'type':'format','content':o(_0x339477,'*Split:*\x20list\x20item')}:_0x3446fb;}),_0x5cc937['model']['document']['registerPostFixer'](_0x1799f7=>this['listItemIdFixer'](_0x1799f7)),_0x5cc937['model']['document']['registerPostFixer'](_0x1bcc36=>this['noTrackChangesFixer'](_0x1bcc36)),_0x5cc937['model']['document']['on']('change:data',(_0x365f18,_0x2dc6da)=>{if(_0x2dc6da['isUndo']||!_0x2dc6da['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3ad748){if(_0x3ad748['batch']['isUndo']||!_0x3ad748['batch']['isLocal'])return!0x1;let _0x30afc6=!0x1;const _0x3b2bb8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6e07bc=>_0x6e07bc['data']&&'listItemId'==_0x6e07bc['data']['key'])['filter'](_0x3020a7=>_0x3020a7['data']['newValue']&&_0x3020a7['data']['oldValue']);for(const _0x167ac8 of _0x3b2bb8)Te(_0x167ac8)||(_0x3ad748['removeMarker'](_0x167ac8['getFirstMarker']()),_0x30afc6=!0x0);return _0x30afc6;}['noTrackChangesFixer'](_0x15e122){if(_0x15e122['batch']['isUndo']||!_0x15e122['batch']['isLocal'])return!0x1;const _0xb222de=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xb222de['trackChangesCommand']['value'])return!0x1;let _0x273d89=!0x1;const _0x189f8f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x26bfb6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4dcc95=>'attribute'==_0x4dcc95['type'])['filter'](_0x49deb6=>_0x189f8f['includes'](_0x49deb6['attributeKey']));if(0x0==_0x26bfb6['length'])return _0x273d89;for(const _0x2f36d9 of _0x26bfb6){const _0x17358c=_0xb222de['_findSuggestions'](_0x2f36d9['range'],'attribute')['filter'](_0x569ac2=>!_0x569ac2['meta']['isNextTo'])['map'](_0x26781e=>_0x26781e['suggestion'])['filter'](_0x4c9fad=>{const _0x14e6fa=_0xb222de['_getAttributeKey'](_0x4c9fad);return _0x189f8f['includes'](_0x14e6fa);});if(_0x17358c['length']){for(const _0x392e08 of _0x17358c)_0x15e122['removeMarker'](_0x392e08['getFirstMarker']());_0x273d89=!0x0;}}return _0x273d89;}['assureChains'](){const _0x56b3e5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b4873=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x13d99e;const _0x5f375d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5205e1=>{if(_0x5205e1['data']['oldRange']||!_0x5205e1['data']['newRange'])return null;if(!_0x5205e1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x191286}=_0x56b3e5['_splitMarkerName'](_0x5205e1['name']);if(!_0x56b3e5['hasSuggestion'](_0x191286))return null;const _0x499880=_0x56b3e5['getSuggestion'](_0x191286);return _0x3b4873['includes'](_0x499880['data']['key']);})['map'](_0xa5090d=>{const {id:_0xbdf0a4}=_0x56b3e5['_splitMarkerName'](_0xa5090d['name']),_0x4a6f10=_0x56b3e5['getSuggestion'](_0xbdf0a4);return _0x13d99e=_0x4a6f10['attributes']['groupId'],_0x4a6f10['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5f375d['size'])return;const _0x3e3a2b=_0x56b3e5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c497c=>'attribute'==_0x4c497c['type']&&_0x4c497c['data']&&_0x3b4873['includes'](_0x4c497c['data']['key'])&&_0x4c497c['attributes']['groupId']!=_0x13d99e)['map'](_0x50fcf6=>({'listItem':_0x50fcf6['getFirstRange']()['start']['nodeAfter'],'groupId':_0x50fcf6['attributes']['groupId']})),_0x4cf657=new Set();for(const {groupId:_0x27335d,listItem:_0x210a27}of _0x3e3a2b)_0x5f375d['has'](_0x210a27)&&_0x4cf657['add'](_0x27335d);for(const _0x567368 of _0x56b3e5['getSuggestions']())_0x4cf657['has'](_0x567368['attributes']['groupId'])&&_0x567368['setAttribute']('groupId',_0x13d99e);}['_supportLegacySuggestions'](){const _0x1cd723=this['editor'],_0x1c5e30=_0x1cd723['locale'],_0x41fa8a=_0x1cd723['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x41fa8a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5a230e,_0x5996fa){const _0x2026b6=[];for(let _0x7150f3 of _0x5a230e)_0x7150f3['start']['nodeAfter']===_0x7150f3['end']['parent']&&(_0x7150f3=_0x1cd723['model']['createRange'](_0x1cd723['model']['createPositionAt'](_0x7150f3['start']['nodeAfter'],0x0))),_0x2026b6['push'](_0x7150f3);_0x1cd723['model']['change'](_0x112a73=>{const _0x2b5b02=_0x1cd723['model']['document']['selection'],_0x2517e7=Array['from'](_0x2b5b02['getRanges']())['map'](_0x4968fa=>_0x985c68['fromRange'](_0x4968fa));_0x112a73['setSelection'](_0x2026b6),_0x1cd723['commands']['get'](_0x5996fa['commandName'])['refresh'](),_0x5996fa['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1cd723['execute'](_0x5996fa['commandName'],..._0x5996fa['commandParams']),_0x112a73['setSelection'](_0x2517e7);for(const _0x162643 of _0x2517e7)_0x162643['detach']();});}),_0x41fa8a['descriptionFactory']['registerElementLabel'](function(_0x92ed3b){const _0x50e579=!_0x1cd723['model']['schema']['isObject'](_0x92ed3b),_0x8f21f9=_0x92ed3b['previousSibling'],_0x3700f0=_0x92ed3b['nextSibling'],_0x3d6433=_0x92ed3b['getAttribute']('listItemId'),_0x49af36=!_0x8f21f9||_0x8f21f9['getAttribute']('listItemId')!==_0x3d6433,_0x12ae27=!_0x3700f0||_0x3700f0['getAttribute']('listItemId')!==_0x3d6433;return _0x50e579&&Boolean(_0x3d6433)&&_0x49af36&&_0x12ae27;},_0x1fb0af=>o(_0x1c5e30,'ELEMENT_LIST_ITEM',_0x1fb0af));}['_registerLegacyDescription'](){const _0xe52eec=this['editor'],_0x5cbb4e=_0xe52eec['locale'];function _0x2f833b(_0x3e0b28){const _0x191718=_0xe52eec['commands']['get']('bulletedList')['value'],_0x415498=_0xe52eec['commands']['get']('numberedList')['value'];return'numberedList'===_0x3e0b28?_0x191718:_0x415498;}_0xe52eec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3f48bb){if('formatBlock'!=_0x3f48bb['type'])return;const {data:_0x34fefa}=_0x3f48bb;if(!_0x34fefa)return;let _0x1615e9,_0x585f6c,_0xe4b326,_0x311298;switch(_0x34fefa['commandName']){case'bulletedList':_0xe4b326=_0x34fefa['commandParams'][0x0]['forceValue'],_0x311298=_0x2f833b(_0x34fefa['commandName']),_0x1615e9=_0xe4b326?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x311298&&_0xe52eec['config']['get']('list.multiBlock')||(_0x1615e9='*Change\x20to:*\x20%0'),_0x585f6c={'type':'format','content':o(_0x5cbb4e,_0x1615e9,o(_0x5cbb4e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xe4b326=_0x34fefa['commandParams'][0x0]['forceValue'],_0x311298=_0x2f833b(_0x34fefa['commandName']),_0x1615e9=_0xe4b326?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x311298&&_0xe52eec['config']['get']('list.multiBlock')||(_0x1615e9='*Change\x20to:*\x20%0'),_0x585f6c={'type':'format','content':o(_0x5cbb4e,_0x1615e9,o(_0x5cbb4e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1615e9='*Indent:*\x20%0',_0x585f6c={'type':'format','content':o(_0x5cbb4e,_0x1615e9,o(_0x5cbb4e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1615e9=function(_0x26910e){const _0x1a545e=_0x26910e['getFirstRange']();let _0x30ef4e=_0x1a545e['start']['nodeAfter'];for(;_0x30ef4e&&_0x1a545e['containsItem'](_0x30ef4e);){if(_0x30ef4e['getAttribute']('listIndent')>0x0)return!0x1;_0x30ef4e=_0x30ef4e['nextSibling'];}return!0x0;}(_0x3f48bb)?o(_0x5cbb4e,'*Format:*\x20remove\x20from\x20%0',o(_0x5cbb4e,function(_0x309321){return'ELEMENT_'+_0x309321['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3f48bb))):o(_0x5cbb4e,'*Outdent:*\x20%0',o(_0x5cbb4e,'ELEMENT_LIST_ITEM')),_0x585f6c={'type':'format','content':_0x1615e9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x34fefa['multipleBlocks']&&(_0x1615e9='*Merge:*\x20%0',_0x585f6c={'type':'deletion','content':o(_0x5cbb4e,_0x1615e9,o(_0x5cbb4e,'ELEMENT_LIST_ITEM'))});}return _0x585f6c;});}}function Te(_0x4e818a){let _0x4bc916=_0x4e818a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4bc916;){const _0x83db6=_0x4bc916['getAttribute']('listItemId');if(!_0x83db6)return!0x1;if(_0x83db6==_0x4e818a['data']['newValue'])return'newValue';if(_0x83db6==_0x4e818a['data']['oldValue'])return'oldValue';_0x4bc916=_0x4bc916['previousSibling'];}return!0x1;}class Se extends _0x2e08d9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x114124=this['editor']['config']['get']('list.properties'),_0x2c33eb=this['editor']['plugins']['get']('TrackChangesEditing');_0x114124['styles']&&(_0x2c33eb['enableDefaultAttributesIntegration']('listStyle'),_0x2c33eb['registerBlockAttribute']('listStyle')),_0x114124['reversed']&&(_0x2c33eb['enableDefaultAttributesIntegration']('listReversed'),_0x2c33eb['registerBlockAttribute']('listReversed')),_0x114124['startIndex']&&(_0x2c33eb['enableDefaultAttributesIntegration']('listStart'),_0x2c33eb['registerBlockAttribute']('listStart'));const _0x109512={'type':'format','content':''};_0x2c33eb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3d19c3=this['editor']['locale'];_0x2c33eb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3d19c3,'FORMAT_LIST_REVERSED')),_0x2c33eb['descriptionFactory']['registerDescriptionCallback'](_0x1648b7=>{const {data:_0xaa0669}=_0x1648b7;if(_0xaa0669&&'listReversed'==_0xaa0669['key'])return null==_0xaa0669['newValue']||0x0==_0xaa0669['newValue']&&null==_0xaa0669['oldValue']?_0x109512:void 0x0;}),_0x2c33eb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3d19c3,'FORMAT_LIST_START')),_0x2c33eb['descriptionFactory']['registerDescriptionCallback'](_0x4b3f50=>{const {data:_0x34d8e8}=_0x4b3f50;if(_0x34d8e8&&'listStart'==_0x34d8e8['key'])return null==_0x34d8e8['newValue']||0x1==_0x34d8e8['newValue']&&null==_0x34d8e8['oldValue']?_0x109512:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x215ba4=>{if(_0x215ba4['batch']['isUndo'])return!0x1;let _0x467a23=!0x1;const _0x1a2539=_0x2c33eb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18aa05=>{const _0x59876c=_0x2c33eb['_getAttributeKey'](_0x18aa05);return'listStart'==_0x59876c||'listReversed'==_0x59876c;});for(const _0x317b76 of _0x1a2539){const _0x126420=_0x317b76['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x126420||'customNumbered'==_0x126420)continue;_0x2c33eb['_findSuggestions'](_0x317b76['getFirstRange'](),'attribute')['find'](_0x2dcd71=>'listType'==_0x2c33eb['_getAttributeKey'](_0x2dcd71['suggestion']))||(_0x215ba4['removeMarker'](_0x317b76['getFirstMarker']()),_0x467a23=!0x0);}return _0x467a23;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1a84b0){const _0x18080e=this['editor']['locale'],{data:_0x2ddc1f}=_0x1a84b0,_0x119cd5={'type':'format','content':''};if(!_0x2ddc1f||'listStyle'!=_0x2ddc1f['key'])return;if(!_0x2ddc1f['oldValue'])return'default'==_0x2ddc1f['newValue']?_0x119cd5:{'type':'format','content':''+o(_0x18080e,'*Set\x20format:*\x20%0',o(_0x18080e,this['_getTranslationKeyForListStyle'](_0x2ddc1f['newValue'])))};if(!_0x2ddc1f['newValue']){if('default'==_0x2ddc1f['oldValue'])return _0x119cd5;let _0x788ee8=_0x1a84b0['head'];for(;_0x788ee8;){if(_0x788ee8['data']&&'listType'==_0x788ee8['data']['key']&&_0x788ee8['data']['newValue'])return _0x119cd5;_0x788ee8=_0x788ee8['next'];}return{'type':'format','content':''+o(_0x18080e,'*Remove\x20format:*\x20%0',o(_0x18080e,this['_getTranslationKeyForListStyle'](_0x2ddc1f['oldValue'])))};}if('default'!=_0x2ddc1f['newValue'])return{'type':'format','content':''+o(_0x18080e,'*Set\x20format:*\x20%0',o(_0x18080e,this['_getTranslationKeyForListStyle'](_0x2ddc1f['newValue'])))};let _0x57f550=_0x1a84b0['head'];for(;_0x57f550;){if(_0x57f550['data']&&'listType'==_0x57f550['data']['key']&&_0x57f550['data']['newValue']&&_0x57f550['data']['oldValue'])return _0x119cd5;_0x57f550=_0x57f550['next'];}return{'type':'format','content':o(_0x18080e,'*Set\x20format:*\x20%0',o(_0x18080e,'ELEMENT_'+_0x1a84b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3b8510=this['editor'],_0x4a6e36=_0x3b8510['locale'];_0x3b8510['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42ec30=>{if('formatBlock'!=_0x42ec30['type'])return;const {data:_0x390e5d}=_0x42ec30;if(!_0x390e5d)return;let _0x5842dd,_0x504f7e;switch(_0x390e5d['commandName']){case'listStyle':_0x5842dd='*Change\x20to:*\x20%0',_0x504f7e={'type':'format','content':o(_0x4a6e36,_0x5842dd,o(_0x4a6e36,this['_getTranslationKeyForListStyle'](_0x390e5d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5842dd=_0x390e5d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x504f7e={'type':'format','content':o(_0x4a6e36,_0x5842dd)};break;case'listStart':_0x5842dd='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x504f7e={'type':'format','content':o(_0x4a6e36,_0x5842dd,_0x390e5d['commandParams'][0x0]['startIndex'])};}return _0x504f7e;});}['_getTranslationKeyForListStyle'](_0x57f993){return'ELEMENT_'+function(_0x40088e){if(_e['includes'](_0x40088e))return'bulleted';if(Re['includes'](_0x40088e))return'numbered';return null;}(_0x57f993)['toUpperCase']()+'_LIST_'+_0x57f993['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2e08d9{['afterInit'](){const _0x5efa81=this['editor'];_0x5efa81['commands']['get']('emoji')&&_0x5efa81['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2e08d9{static get['requires'](){return[_0x3952b1];}['init'](){const _0x1a2978=this['editor'],_0xfc7de2=_0x1a2978['plugins']['get']('TrackChangesEditing'),_0x2a9a13=_0x1a2978['commands']['get']('enter');_0xfc7de2['enableCommand']('enter',()=>{_0x1a2978['model']['change'](_0x514937=>{const _0x46eea4=_0x1a2978['model']['document']['selection'],_0x2ef9aa=_0x46eea4['getFirstPosition'](),_0x451bcf=_0x985c68['fromRange'](_0x46eea4['getFirstRange']());if(_0x2a9a13['enterBlock'](_0x514937)){const _0x50cb72=_0x1a2978['model']['createPositionAt'](_0x2ef9aa['parent']['nextSibling'],0x0),_0x194493=_0x514937['createRange'](_0x2ef9aa,_0x50cb72);_0xfc7de2['markInsertion'](_0x194493);}else _0x514937['setSelection'](_0x514937['createRange'](_0x451bcf['end']));_0x451bcf['detach'](),_0x2a9a13['fire']('afterExecute',{'writer':_0x514937});});}),_0x1a2978['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1a2978,'split'),{'priority':'high'}),_0x1a2978['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x2a8e35,_0x335b42,_0x471d19)=>{const _0x2d6db2=_0x471d19['mapper']['markerNameToElements'](_0x335b42['markerName']);if(_0x2d6db2){for(const _0x31a83b of _0x2d6db2)_0x31a83b['hasClass']('ck-suggestion-marker-split')&&(_0x471d19['mapper']['unbindElementFromMarkerName'](_0x31a83b,_0x335b42['markerName']),_0x471d19['writer']['remove'](_0x31a83b));}},{'priority':'high'}),_0x1a2978['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4abf29,_0x242af6,_0x1e1ef5)=>{_0x1e1ef5['options']['showSuggestionHighlights']&&De(_0x1a2978,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4abf29,_0x242af6,_0x1e1ef5);},{'priority':'high'});}}class Z extends _0x2e08d9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1401a1=this['editor']['plugins']['get']('TrackChangesEditing');_0x1401a1['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1401a1['enableCommand']('findNext'),_0x1401a1['enableCommand']('findPrevious'),_0x1401a1['enableCommand']('replace'),_0x1401a1['enableCommand']('replaceAll');}['handleFindCommand'](_0x29e23e,_0x4e22d0,_0xec3c07={}){const _0x40db63=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x29e23e(_0x1b2468=>{let _0x25e2a4=('string'==typeof _0x4e22d0?_0x40db63['findByTextCallback'](_0x4e22d0,_0xec3c07):_0x4e22d0)(_0x1b2468);Array['isArray'](_0x25e2a4)&&(_0x25e2a4={'results':_0x25e2a4,'searchText':'string'==typeof _0x4e22d0?_0x4e22d0:''});const _0x2662bb=_0x25e2a4['results']['filter'](_0x2dbd0c=>!0x1===this['_isInDeletionRange'](_0x2dbd0c,_0x1b2468['item']));return{..._0x25e2a4,'results':_0x2662bb};},_0xec3c07);}['_isInDeletionRange'](_0x2ff27f,_0x15378b){const _0x33b173=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15378b,_0x2ff27f['start']),this['editor']['model']['createPositionAt'](_0x15378b,_0x2ff27f['end']));for(const _0x229cef of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x33b173['getIntersection'](_0x229cef['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x2e08d9{['afterInit'](){const _0x17dd4e=this['editor']['locale'],_0x4bc4c9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x28c4be,commandName:_0x418872}of ro)this['editor']['plugins']['has'](_0x28c4be)&&(_0x4bc4c9['enableDefaultAttributesIntegration'](_0x418872),_0x4bc4c9['registerInlineAttribute'](_0x418872));_0x4bc4c9['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x17dd4e,'FORMAT_FONT_SIZE')),_0x4bc4c9['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x17dd4e,'FORMAT_FONT_FAMILY')),_0x4bc4c9['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x17dd4e,'FORMAT_FONT_COLOR')),_0x4bc4c9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x17dd4e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x484eca=this['editor'],_0x18b3b5=_0x484eca['locale'];_0x484eca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c8188=>{const _0x1d988e=_0x18b3b5['t'];if('formatInline'!=_0x3c8188['type'])return;const {data:_0x37a411}=_0x3c8188;if(null!=_0x37a411){if('fontSize'==_0x37a411['commandName']){const _0x2c87a4=_0x37a411['commandParams'][0x0]['value'];if(_0x2c87a4){const _0x302f62=_0x1d988e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2fc6c5=>_0x2fc6c5['model']==_0x2c87a4)['title'])['toLowerCase']();return{'type':'format','content':o(_0x18b3b5,'*Set\x20font\x20size:*\x20%0',_0x302f62)};}return{'type':'format','content':o(_0x18b3b5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x37a411['commandName']){const _0x338630=_0x37a411['commandParams'][0x0]['value'];return _0x338630?{'type':'format','content':o(_0x18b3b5,'*Set\x20font\x20family:*\x20%0',_0x338630)}:{'type':'format','content':o(_0x18b3b5,'*Reset\x20font\x20family*')};}if('fontColor'==_0x37a411['commandName']){const _0x263428=_0x37a411['commandParams'][0x0]['value'];if(_0x263428){const _0x5c232a=_0x4e720c(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3ca8a3=>_0x3ca8a3['model']==_0x263428);let _0xfd4d58=_0x263428,_0x59048f='';return _0x5c232a&&(_0xfd4d58=_0x5c232a['label'],_0x59048f=_0x1d988e(_0xfd4d58)['toLowerCase']()),{'type':'format','content':o(_0x18b3b5,'*Set\x20font\x20color:*\x20%0',_0x59048f)['trim'](),'color':{'value':_0x263428,'title':_0x59048f||_0xfd4d58}};}return{'type':'format','content':o(_0x18b3b5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x37a411['commandName']){const _0x202749=_0x37a411['commandParams'][0x0]['value'];if(_0x202749){const _0x1cc8da=_0x4e720c(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x440c1a=>_0x440c1a['model']==_0x202749);let _0x104ba6=_0x202749,_0xfe0d8f='';return _0x1cc8da&&(_0x104ba6=_0x1cc8da['label'],_0xfe0d8f=_0x1d988e(_0x104ba6)['toLowerCase']()),{'type':'format','content':o(_0x18b3b5,'*Set\x20font\x20background\x20color:*\x20%0',_0xfe0d8f)['trim'](),'color':{'value':_0x202749,'title':_0xfe0d8f||_0x104ba6}};}return{'type':'format','content':o(_0x18b3b5,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x2e08d9{['afterInit'](){const _0x376941=this['editor'],_0x577212=_0x376941['plugins']['get']('TrackChangesEditing'),_0x28d976=_0x376941['commands']['get']('copyFormat'),_0x43113b=_0x376941['commands']['get']('pasteFormat');_0x28d976&&_0x43113b&&(_0x577212['enableDefaultAttributesIntegration']('pasteFormat'),_0x577212['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4b7e5e=this['editor'],_0x4522b7=_0x4b7e5e['locale'];_0x4b7e5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f69a3=>{if('formatBlock'!=_0x2f69a3['type']&&'formatInline'!=_0x2f69a3['type'])return;const {data:_0x2c43d4}=_0x2f69a3;if(_0x2c43d4&&'pasteFormat'===_0x2c43d4['commandName']){const _0x19ffba=[],_0x2a702e=_0x2c43d4['commandParams'][0x0];for(const [_0x16c944,_0x1aa8c9]of Object['entries'](_0x2a702e))_0x19ffba['push'](so(_0x4b7e5e,_0x16c944,_0x1aa8c9));return _0x19ffba['length']?{'type':'format','content':o(_0x4522b7,'*Set\x20format\x20to:*\x20%0',_0x19ffba['join'](',\x20'))}:{'type':'format','content':o(_0x4522b7,'*Remove\x20all\x20formatting*')};}});}}function so(_0x219418,_0xae4464,_0x1f039c){const _0x17c12e=_0x219418['locale']['t'],_0x1586a1=_0xae4464['split'](/(?=[A-Z])/)['join']('\x20'),_0x1c8ede=_0x17c12e(_0x1586a1['charAt'](0x0)['toUpperCase']()+_0x1586a1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1f039c)return _0x1c8ede;if('fontColor'===_0xae4464||'fontBackgroundColor'===_0xae4464){const _0x5b8f7a=_0x4e720c(_0x219418['config']['get']('fontColor.colors'))['find'](_0x144ad6=>_0x144ad6['model']==_0x1f039c);return _0x1c8ede+'\x20('+(_0x5b8f7a?_0x17c12e(_0x5b8f7a['label'])['toLowerCase']():_0x1f039c)+')';}if('fontSize'===_0xae4464&&isNaN(parseFloat(_0x1f039c))){const _0x221d8c=_0x219418['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x219418['config']['get']('fontSize.options'))['find'](_0x974d38=>_0x974d38['model']==_0x1f039c);return _0x1c8ede+'\x20('+(_0x221d8c?_0x17c12e(_0x221d8c['title'])['toLowerCase']():_0x1f039c)+')';}return _0x1c8ede+'\x20('+_0x1f039c+')';}class it extends _0x2e08d9{['_headingOptions'];['afterInit'](){const _0x59e7a8=this['editor'];if(!_0x59e7a8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x59e7a8['config']['get']('heading.options');const _0x2c4242=_0x59e7a8['locale'],_0x16e3af=_0x59e7a8['plugins']['get']('TrackChangesEditing');_0x16e3af['enableDefaultAttributesIntegration']('heading');for(const _0x57eded of this['_headingOptions'])'paragraph'!=_0x57eded['model']&&_0x16e3af['descriptionFactory']['registerElementLabel'](_0x57eded['model'],_0x136661=>{const _0x5d41db=this['_getHeadingLevel'](_0x57eded['model']);return null!==_0x5d41db?_0x3202ad(_0x136661,_0x5d41db):_0xae26de(_0x136661,_0x57eded['title']);});function _0x3202ad(_0x52eb23,_0x2039c0){return o(_0x2c4242,'ELEMENT_HEADING',[_0x52eb23,_0x2039c0]);}function _0xae26de(_0x35d5d7,_0x43562c){return o(_0x2c4242,'ELEMENT_HEADING_CUSTOM',[_0x35d5d7,_0x43562c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2507f9=this['editor'],_0x27dcb1=_0x2507f9['locale'];function _0x9d87ed(_0x462ac6,_0x5c2443){return o(_0x27dcb1,'ELEMENT_HEADING_CUSTOM',[_0x462ac6,_0x5c2443]);}_0x2507f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21f2a2=>{if('formatBlock'!=_0x21f2a2['type'])return;const {data:_0x50bcb1}=_0x21f2a2;if(_0x50bcb1&&'heading'==_0x50bcb1['commandName']){const _0x4aab48=_0x50bcb1['commandParams'][0x0]['value'],_0xddfdcc=this['_getHeadingLevel'](_0x4aab48);if(null!==_0xddfdcc)return{'type':'format','content':o(_0x27dcb1,'*Change\x20to:*\x20%0',(_0x26e584=0x1,_0x4b2beb=_0xddfdcc,o(_0x27dcb1,'ELEMENT_HEADING',[_0x26e584,_0x4b2beb])))};const _0x491915=this['_headingOptions']['find'](_0x345842=>_0x345842['model']===_0x4aab48)['title'];return{'type':'format','content':o(_0x27dcb1,'*Change\x20to:*\x20%0',_0x9d87ed(0x1,_0x491915))};}var _0x26e584,_0x4b2beb;});}['_getHeadingLevel'](_0x5913e4){const _0x462f2d=_0x5913e4['match'](/^heading(\d+)/);if(_0x462f2d)return _0x462f2d[0x1];const _0x322a50=this['_headingOptions']?.['find'](_0x228da2=>_0x228da2['model']==_0x5913e4);if(_0x322a50&&_0x322a50['view']){const _0x3fe0f0=_0x322a50['view'],_0x17f161=(_0x3fe0f0['name']??_0x3fe0f0)['match'](/^h(\d+)/);if(_0x17f161)return _0x17f161[0x1];}return null;}}class et extends _0x2e08d9{['afterInit'](){const _0x559af5=this['editor'];if(!_0x559af5['plugins']['has']('HighlightEditing'))return;const _0x2fb809=_0x559af5['plugins']['get']('TrackChangesEditing'),_0xbb4ec9=_0x559af5['locale'];_0x2fb809['enableDefaultAttributesIntegration']('highlight'),_0x2fb809['registerInlineAttribute']('highlight'),_0x2fb809['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xbb4ec9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31fd92=this['editor'],_0x4fa3ff=_0x31fd92['locale'];_0x31fd92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x885f9f=>{if('formatInline'!=_0x885f9f['type'])return;const {data:_0x57c323}=_0x885f9f;if(_0x57c323&&'highlight'==_0x57c323['commandName']){const _0x19b6d4=_0x4fa3ff['t'],_0x1c6a78=_0x57c323['commandParams'][0x0]['value'];if(_0x1c6a78){const _0xec09f9=_0x31fd92['config']['get']('highlight.options')['find'](_0x1846f3=>_0x1846f3['model']==_0x1c6a78),_0xf9c496=_0x19b6d4(_0xec09f9['title'])['toLowerCase']();return{'type':'format','content':o(_0x4fa3ff,'*Set\x20highlight:*\x20%0',_0xf9c496),'color':{'value':_0xec09f9['color'],'title':_0xec09f9['title']}};}return{'type':'format','content':o(_0x4fa3ff,'*Remove\x20highlight*',o(_0x4fa3ff,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2e08d9{['afterInit'](){const _0x356ff5=this['editor'];if(!_0x356ff5['plugins']['has']('HorizontalLineEditing'))return;_0x356ff5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x33460c=_0x356ff5['plugins']['get']('TrackChangesEditing'),_0x2d26bd=_0x356ff5['locale'];_0x33460c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x573743=>o(_0x2d26bd,'ELEMENT_HORIZONTAL_LINE',_0x573743)),_0x356ff5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5e6ea0,{writer:_0x3b5c34,options:_0xbb9a6a})=>{if(!_0xbb9a6a['showSuggestionHighlights'])return null;const _0x388d04=_0x3b5c34['createContainerElement']('div'),_0x423153=_0x3b5c34['createEmptyElement']('hr');return _0x3b5c34['addClass']('ck-horizontal-line',_0x388d04),_0x3b5c34['insert'](_0x3b5c34['createPositionAt'](_0x388d04,0x0),_0x423153),_0x388d04;},'converterPriority':'high'});}}class ot extends _0x2e08d9{['afterInit'](){const _0x2f4e40=this['editor'];if(!_0x2f4e40['plugins']['has']('HtmlEmbed'))return;const _0x5d9a9a=_0x2f4e40['plugins']['get']('TrackChangesEditing'),_0x420309=_0x2f4e40['locale'];_0x5d9a9a['descriptionFactory']['registerElementLabel']('rawHtml',_0x475da9=>o(_0x420309,'ELEMENT_HTML_EMBED',_0x475da9)),_0x5d9a9a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d9a9a['registerBlockAttribute']('value'),_0x5d9a9a['descriptionFactory']['registerDescriptionCallback'](_0x275854=>{if('attribute'!=_0x275854['type'])return;const {data:_0x49bf40}=_0x275854;if(_0x49bf40&&'value'==_0x49bf40['key']&&_0x275854['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x24ca1b=o(_0x420309,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x420309,'*Change\x20%0\x20content*',_0x24ca1b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x366b36=this['editor'],_0x3506da=_0x366b36['locale'];_0x366b36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19227a=>{if('formatBlock'!=_0x19227a['type'])return;const {data:_0x5bfb83}=_0x19227a;if(_0x5bfb83&&'htmlEmbed'==_0x5bfb83['commandName']){const _0x236375=o(_0x3506da,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3506da,'*Change\x20%0\x20content*',_0x236375)};}});}}class rt extends _0x2e08d9{['afterInit'](){const _0x40d6ca=this['editor'];if(!_0x40d6ca['plugins']['has']('ImageEditing'))return;const _0x3b92ec=_0x40d6ca['plugins']['get']('TrackChangesEditing'),_0x57d1d9=_0x40d6ca['plugins']['get']('ImageUtils'),_0x37c913=_0x40d6ca['locale'];_0x3b92ec['enableCommand']('insertImage'),_0x3b92ec['descriptionFactory']['registerElementLabel']('imageBlock',_0x244ae3=>o(_0x37c913,'ELEMENT_IMAGE',_0x244ae3)),_0x3b92ec['descriptionFactory']['registerElementLabel']('imageInline',_0x34617d=>o(_0x37c913,'ELEMENT_INLINE_IMAGE',_0x34617d)),_0x3b92ec['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x37c913,'ELEMENT_CAPTION')),_0x40d6ca['plugins']['has']('ImageUploadEditing')&&_0x3b92ec['enableCommand']('uploadImage'),_0x40d6ca['plugins']['has']('ImageBlockEditing')&&_0x40d6ca['plugins']['has']('ImageInlineEditing')&&(_0x3b92ec['enableCommand']('imageTypeInline',(_0x1d3bf5,_0x27494b)=>{const _0x1b32fc=_0x57d1d9['getClosestSelectedImageElement'](_0x40d6ca['model']['document']['selection']);_0x40d6ca['model']['change'](()=>{_0x3b92ec['markBlockFormat'](_0x1b32fc,{'commandName':'imageTypeInline','commandParams':[_0x27494b]},[],'convertBlockImageToInline');});}),_0x3b92ec['enableCommand']('imageTypeBlock',(_0x560021,_0x5317ff)=>{_0x40d6ca['model']['change'](_0x3282c4=>{let _0x227a8c=_0x57d1d9['getClosestSelectedImageElement'](_0x40d6ca['model']['document']['selection']),_0xc0fa65=_0x3282c4['createRangeOn'](_0x227a8c);const _0x187f56=_0xb7ad4c['fromPosition'](_0xc0fa65['start'],'toPrevious'),_0x5e6aba=_0xb7ad4c['fromPosition'](_0xc0fa65['end'],'toNext');_0x3b92ec['forceDefaultExecution'](()=>_0x560021(_0x5317ff)),_0x227a8c=_0x57d1d9['getClosestSelectedImageElement'](_0x40d6ca['model']['document']['selection']),_0xc0fa65=_0x3282c4['createRangeOn'](_0x227a8c);const _0x42bd46=_0x3282c4['createRange'](_0x187f56,_0x5e6aba);_0x187f56['detach'](),_0x5e6aba['detach'](),_0x3b92ec['markBlockFormat'](_0x227a8c,{'commandName':'imageTypeInline','commandParams':[_0x5317ff]},[],'convertInlineImageToBlock'),_0x42bd46['start']['isBefore'](_0xc0fa65['start'])&&_0x3b92ec['markInsertion'](_0x3282c4['createRange'](_0x42bd46['start'],_0xc0fa65['start']),'convertInlineImageToBlock'),_0xc0fa65['end']['isBefore'](_0x42bd46['end'])&&_0x3b92ec['markInsertion'](_0x3282c4['createRange'](_0xc0fa65['end'],_0x42bd46['end']),'convertInlineImageToBlock');});}),_0x3b92ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3b92ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3b92ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3b92ec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3b92ec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3b92ec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3ab13f])=>{const _0x35ca04=_0x3b92ec['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1c2442=_0x3ab13f['start'],_0x3dd19c=_0x3ab13f['end'];const _0x348a2d=_0x40d6ca['model']['schema']['getNearestSelectionRange'](_0x1c2442,'backward'),_0x49fa34=_0x40d6ca['model']['schema']['getNearestSelectionRange'](_0x3dd19c,'forward');_0x348a2d['isCollapsed']&&(_0x1c2442=_0x348a2d['start']),_0x49fa34['isCollapsed']&&(_0x3dd19c=_0x49fa34['end']),_0x35ca04([_0x40d6ca['model']['createRange'](_0x1c2442,_0x3dd19c)]);}),_0x3b92ec['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x43a53f),_0x3b92ec['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x43a53f)),_0x40d6ca['plugins']['has']('ImageCaptionEditing')&&(_0x3b92ec['enableCommand']('toggleImageCaption',(_0x5b6b76,_0x46d11c)=>{const _0x547bf8=_0x40d6ca['plugins']['get']('ImageCaptionUtils');let _0x3cec32=_0x57d1d9['getClosestSelectedImageElement'](_0x40d6ca['model']['document']['selection']),_0x1be507=_0x547bf8['getCaptionFromImageModelElement'](_0x3cec32);_0x40d6ca['model']['change'](()=>{if(_0x1be507)return void _0x3b92ec['markDeletion'](_0x40d6ca['model']['createRangeOn'](_0x1be507));const _0x29556a=_0x57d1d9['isBlockImage'](_0x3cec32);_0x5b6b76(_0x46d11c),_0x3cec32=_0x57d1d9['getClosestSelectedImageElement'](_0x40d6ca['model']['document']['selection']),_0x1be507=_0x547bf8['getCaptionFromImageModelElement'](_0x3cec32),_0x3b92ec['markInsertion'](_0x40d6ca['model']['createRangeOn'](_0x1be507),_0x29556a?null:'imageCaption');});}),_0x3b92ec['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x43a53f));const _0x2f5cb1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x447b82(_0x5572fe,_0x69adc8){const _0xf69d24=_0x2f5cb1['findIndex'](({type:_0x112f92,subType:_0x9c6e8})=>_0x5572fe['type']==_0x112f92&&_0x5572fe['subType']==_0x9c6e8),_0x501065=_0x2f5cb1['findIndex'](({type:_0x4e4ce8,subType:_0x39fc6b})=>_0x69adc8['type']==_0x4e4ce8&&_0x69adc8['subType']==_0x39fc6b);if(_0xf69d24<0x0||_0x501065<0x0)return!0x1;const _0x3dc53c=_0x5572fe['getFirstRange'](),_0x5e2d1e=_0x69adc8['getFirstRange']();if((0x0==_0xf69d24||0x1==_0xf69d24)&&0x2==_0x501065&&_0x3dc53c['isIntersecting'](_0x5e2d1e))return!0x0;if(0x2==_0xf69d24&&0x3==_0x501065){const _0x5a539a=_0x3b92ec['_findSuggestions'](_0x3dc53c,'insertion')['filter'](({suggestion:_0x2f7a68,meta:_0x26f0a9})=>_0x26f0a9['isOwn']&&'convertInlineImageToBlock'==_0x2f7a68['subType']);if(_0x5a539a['length']>0x1&&_0x5e2d1e['end']['isEqual'](_0x3dc53c['start']))return!0x0;if(0x1==_0x5a539a['length']&&(_0x3dc53c['start']['isEqual'](_0x5e2d1e['end'])||_0x3dc53c['end']['isEqual'](_0x5e2d1e['start'])))return!0x0;}if(0x3==_0xf69d24&&0x3==_0x501065&&_0x3dc53c['start']['isBefore'](_0x5e2d1e['start'])){const _0x9fe921=_0x3dc53c['end']['nodeAfter'],_0x185e54=_0x5e2d1e['start']['nodeBefore'];return _0x57d1d9['isBlockImage'](_0x9fe921)&&_0x9fe921===_0x185e54;}return!0x1;}function _0x43a53f(_0x14a3c1,_0x516303){return _0x447b82(_0x14a3c1,_0x516303)?[_0x14a3c1,_0x516303]:_0x447b82(_0x516303,_0x14a3c1)?[_0x516303,_0x14a3c1]:null;}_0x40d6ca['plugins']['has']('ImageResize')&&(_0x3b92ec['enableDefaultAttributesIntegration']('resizeImage'),_0x3b92ec['registerBlockAttribute']('resizedWidth'),_0x3b92ec['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x37c913,'FORMAT_IMAGE_SIZE'))),_0x40d6ca['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3b92ec['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3b92ec['registerBlockAttribute']('alt')),_0x40d6ca['plugins']['has']('PictureEditing')&&(_0x3b92ec['registerBlockAttribute']('sources'),_0x3b92ec['descriptionFactory']['registerDescriptionCallback'](_0x1cbb5c=>{if('attribute'!=_0x1cbb5c['type'])return;const {data:_0x2540e2}=_0x1cbb5c;return _0x2540e2&&'sources'==_0x2540e2['key']?{'type':'format','content':''}:void 0x0;})),_0x40d6ca['plugins']['has']('ImageSizeAttributes')&&(_0x3b92ec['registerBlockAttribute']('width'),_0x3b92ec['registerBlockAttribute']('height'),_0x3b92ec['descriptionFactory']['registerDescriptionCallback'](_0x8b8fa=>{if('attribute'!=_0x8b8fa['type'])return;const {data:_0x13fa9f}=_0x8b8fa;return!_0x13fa9f||'width'!=_0x13fa9f['key']&&'height'!=_0x13fa9f['key']?void 0x0:{'type':'format','content':''};})),_0x3b92ec['descriptionFactory']['registerDescriptionCallback'](_0x372a44=>{if(!!_0x2f5cb1['find'](({type:_0x5a0fe5,subType:_0x33982e})=>_0x372a44['type']==_0x5a0fe5&&_0x372a44['subType']==_0x33982e))return _0x372a44['previous']?{}:void 0x0;}),_0x3b92ec['descriptionFactory']['registerDescriptionCallback'](_0x573366=>{if('insertion'==_0x573366['type']||'deletion'==_0x573366['type']){const _0x33042d=_0x573366['getContainedElement']();if(_0x33042d&&_0x33042d['is']('element','caption'))return{'type':'insertion'==_0x573366['type']?'addObject':'removeObject','element':_0x33042d,'quantity':0x1};}}),_0x3b92ec['descriptionFactory']['registerDescriptionCallback'](_0x53b4bb=>'formatBlock'==_0x53b4bb['type']&&'convertInlineImageToBlock'==_0x53b4bb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x53b4bb['type']&&'convertBlockImageToInline'==_0x53b4bb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3b92ec['descriptionFactory']['registerDescriptionCallback'](_0x3249c6=>{if('attribute'!=_0x3249c6['type'])return;const {data:_0x41f387}=_0x3249c6;if(!_0x41f387||'alt'!=_0x41f387['key'])return;const _0x273c5f=_0x41f387['newValue'];return _0x273c5f?{'type':'format','content':o(_0x37c913,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x273c5f+'\x22')}:{'type':'format','content':o(_0x37c913,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5359e8=this['editor'],_0x35a24d=_0x5359e8['locale'];_0x5359e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x180599=>{if('formatBlock'!=_0x180599['type']&&'formatInline'!=_0x180599['type'])return;const {data:_0x135cc2}=_0x180599;if(_0x135cc2){if('imageTextAlternative'==_0x135cc2['commandName']){const _0x382c02=_0x135cc2['commandParams'][0x0]['newValue'];return _0x382c02?{'type':'format','content':o(_0x35a24d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x382c02+'\x22')}:{'type':'format','content':o(_0x35a24d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x135cc2['commandName']){const _0x1a872f=_0x135cc2['commandParams'][0x0]['width'];return _0x1a872f?{'type':'format','content':o(_0x35a24d,'*Set\x20image\x20width:*\x20%0',_0x1a872f)}:{'type':'format','content':o(_0x35a24d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2e08d9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x7b84e9=this['editor']['locale'],_0x19507b=this['editor']['plugins']['get']('TrackChangesEditing');_0x19507b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x19507b['registerBlockAttribute']('src'),_0x19507b['descriptionFactory']['registerDescriptionCallback'](_0x6e8808=>{if('attribute'!=_0x6e8808['type'])return;const {data:_0x45d84c}=_0x6e8808;return _0x45d84c&&'src'==_0x45d84c['key']?_0x45d84c['newValue']&&_0x45d84c['oldValue']?{'type':'format','content':o(_0x7b84e9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd629ed=this['editor']['plugins']['get']('TrackChangesEditing');_0xd629ed['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xd629ed['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd629ed['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xd629ed['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bf3eb=this['editor'],_0x1c7cc5=_0x4bf3eb['locale'];_0x4bf3eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c5d98=>{if('formatBlock'!=_0x2c5d98['type']&&'formatInline'!=_0x2c5d98['type'])return;const {data:_0x4bf79f}=_0x2c5d98;if(!_0x4bf79f||'replaceImageSource'!=_0x4bf79f['commandName'])return;return{'type':'format','content':o(_0x1c7cc5,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2e08d9{['afterInit'](){const _0x577b52=this['editor'];if(!_0x577b52['plugins']['has']('ImageStyleEditing'))return;const _0x3001fd=_0x577b52['plugins']['get']('TrackChangesEditing'),_0x32b9d4=_0x577b52['plugins']['get']('ImageUtils'),_0x28d797={};_0x3001fd['enableCommand']('imageStyle',(_0x3de343,_0x5e7c20)=>{const _0x18bd5c=_0x577b52['plugins']['get']('Users')['me'],_0x4cc523=_0x577b52['commands']['get']('imageStyle');let _0x4b0acb=_0x32b9d4['getClosestSelectedImageElement'](_0x577b52['model']['document']['selection']),_0x25ba41=_0x577b52['model']['createRangeOn'](_0x4b0acb),_0xc49098=_0x4cc523['value'];if(_0xc49098==_0x5e7c20['value'])return;const _0x2646dd={'commandName':'imageStyle','commandParams':[_0x5e7c20],'formatGroupId':_0x392169()};_0x577b52['model']['change'](()=>{if(_0x3001fd['getSuggestions']()['filter'](_0x1f30c6=>_0x1f30c6['isInContent']&&_0x18bd5c==_0x1f30c6['author']&&('formatBlock'==_0x1f30c6['type']||'formatInline'==_0x1f30c6['type'])&&('imageStylePreApply'==_0x1f30c6['subType']||'imageStylePostApply'==_0x1f30c6['subType'])&&_0x1f30c6['getFirstRange']()['isEqual'](_0x25ba41))['forEach'](_0x1a6526=>_0x3001fd['discardSuggestion'](_0x1a6526['head'])),_0x4b0acb=_0x32b9d4['getClosestSelectedImageElement'](_0x577b52['model']['document']['selection']),_0x25ba41=_0x577b52['model']['createRangeOn'](_0x4b0acb),_0x4cc523['refresh'](),_0x577b52['commands']['get']('imageTypeInline')['refresh'](),_0x577b52['commands']['get']('imageTypeBlock')['refresh'](),_0xc49098=_0x4cc523['value'],_0xc49098!=_0x5e7c20['value'])return _0x32b9d4['isInlineImage'](_0x4b0acb)&&_0x4cc523['shouldConvertImageType'](_0x5e7c20['value'],_0x4b0acb)?(_0x3de343({..._0x5e7c20,'setImageSizes':!0x1}),_0x4b0acb=_0x32b9d4['getClosestSelectedImageElement'](_0x577b52['model']['document']['selection']),void _0x3001fd['markBlockFormat'](_0x4b0acb,{..._0x2646dd,'commandReversedParams':[{'value':_0xc49098||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x32b9d4['isBlockImage'](_0x4b0acb)?_0x3001fd['markBlockFormat'](_0x4b0acb,_0x2646dd,[],'imageStylePostApply'):_0x3001fd['markInlineFormat'](_0x25ba41,_0x2646dd,'imageStylePostApply'));});});for(const _0x32090b of _0x577b52['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x28d797[_0x32090b['name']]=_0x32090b['title']['toLowerCase']();_0x3001fd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3001fd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3001fd['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3001fd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1de84f])=>{_0x32b9d4['setImageNaturalSizeAttributes'](_0x1de84f['getContainedElement']());}),_0x3001fd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x45b4f4,_0x20f565)=>{_0x3001fd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x45b4f4,{'commandName':_0x20f565['commandName'],'commandParams':_0x20f565['commandReversedParams']});}),_0x3001fd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xa0d28f,_0x5a2625){if(_0x3ab2f1(_0xa0d28f,_0x5a2625))return[_0xa0d28f,_0x5a2625];if(_0x3ab2f1(_0x5a2625,_0xa0d28f))return[_0x5a2625,_0xa0d28f];return null;});const _0x3aace5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ab2f1(_0x3de14f,_0x5ae671){const _0x4d4df6=_0x3aace5['findIndex'](({type:_0x54935c,subType:_0x4bfcae})=>_0x3de14f['type']==_0x54935c&&_0x3de14f['subType']==_0x4bfcae),_0x45440b=_0x3aace5['findIndex'](({type:_0x119bf4,subType:_0x14c93a})=>_0x5ae671['type']==_0x119bf4&&_0x5ae671['subType']==_0x14c93a);if(_0x4d4df6<0x0||_0x45440b<0x0)return!0x1;const _0x1cf5a6=_0x3de14f['getFirstRange'](),_0xcf62a0=_0x5ae671['getFirstRange']();if((0x0==_0x4d4df6||0x1==_0x4d4df6)&&0x2==_0x45440b&&_0x1cf5a6['isIntersecting'](_0xcf62a0))return!0x0;if(0x2==_0x4d4df6&&0x3==_0x45440b){const _0x149db8=_0x3001fd['_findSuggestions'](_0x1cf5a6,'insertion')['filter'](({suggestion:_0x178376,meta:_0x222dc7})=>_0x222dc7['isOwn']&&'convertInlineImageToBlock'==_0x178376['subType']);if(_0x149db8['length']>0x1&&_0xcf62a0['end']['isEqual'](_0x1cf5a6['start']))return!0x0;if(0x1==_0x149db8['length']&&(_0x1cf5a6['start']['isEqual'](_0xcf62a0['end'])||_0x1cf5a6['end']['isEqual'](_0xcf62a0['start'])))return!0x0;}if(0x3==_0x4d4df6&&0x3==_0x45440b&&_0x1cf5a6['start']['isBefore'](_0xcf62a0['start'])){const _0x3ebbcb=_0x1cf5a6['end']['nodeAfter'],_0x366bea=_0xcf62a0['start']['nodeBefore'];return _0x32b9d4['isBlockImage'](_0x3ebbcb)&&_0x3ebbcb===_0x366bea;}return!0x1;}_0x577b52['model']['document']['registerPostFixer'](()=>{let _0x171846=!0x1;const _0x2ac85e=Array['from'](_0x577b52['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9eca8c,data:_0xbcec43}of _0x2ac85e){const {group:_0x2f5e4f,type:_0x1afde2,subType:_0x587dac,id:_0x4f039d}=_0x3001fd['_splitMarkerName'](_0x9eca8c);if('suggestion'==_0x2f5e4f&&_0x3001fd['hasSuggestion'](_0x4f039d)){if('formatBlock'==_0x1afde2&&('imageStylePreApply'==_0x587dac||'imageStylePostApply'==_0x587dac)){const _0x230f40=_0x3001fd['getSuggestion'](_0x4f039d);if(_0xbcec43['newRange']){const _0x98d256=_0x230f40['getFirstRange']()['getContainedElement']();if(_0x32b9d4['isBlockImage'](_0x98d256))continue;_0x3001fd['discardSuggestion'](_0x230f40),_0x171846=!0x0;}}if('insertion'==_0x1afde2&&'imageCaption'==_0x587dac&&!_0xbcec43['newRange']){const _0x3236b9=_0x3001fd['getSuggestion'](_0x4f039d);_0x3236b9['next']&&_0x3236b9['next']['isInContent']&&(_0x3001fd['discardSuggestion'](_0x3236b9['next']),_0x171846=!0x0);}}}return _0x171846;}),this['_registerLegacyDescription'](_0x28d797);}['_registerLegacyDescription'](_0x574cca){const _0x5c0100=this['editor'],_0x40a1ac=_0x5c0100['locale'];_0x5c0100['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f7459=>{if('formatBlock'!=_0x4f7459['type']&&'formatInline'!=_0x4f7459['type'])return;const {data:_0x19c6c5}=_0x4f7459;if(!_0x19c6c5||'imageStyle'!=_0x19c6c5['commandName'])return;const _0x5ededd=_0x19c6c5['commandParams'][0x0]['value'];return _0x2df586('side'===_0x5ededd?o(_0x40a1ac,'FORMAT_SIDE_IMAGE'):_0x574cca[_0x5ededd]||_0x5ededd);function _0x2df586(_0x575045){return{'type':'format','content':o(_0x40a1ac,'*Format:*\x20%0',_0x575045)};}});}}class ut extends _0x2e08d9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x58441c){super(_0x58441c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x154b8f=this['editor'],_0x42e1ea=_0x154b8f['commands']['get']('importWord'),_0x5d0d6e=_0x154b8f['commands']['get']('trackChanges');_0x42e1ea&&(_0x42e1ea['on']('execute',(_0x4ee038,[,_0x229230])=>{this['_trackChangesValueDuringImport']=_0x5d0d6e['value'],_0x229230['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x42e1ea,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x42e1ea,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5d0d6e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x154b8f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1d1c77,_0x36c951){const {suggestions:_0xa127c5}=_0x36c951,_0x5de594=this['editor']['commands']['get']('trackChanges'),_0xa590b5=_0x5de594['value'];this['_trackChangesValueDuringImport']!==_0xa590b5&&(_0x5de594['execute'](),this['_trackChangesExecuted']=!0x0),_0xa127c5&&_0xa127c5['forEach'](({id:_0x586d22,type:_0x150c6b,author:_0x2838e6,created_at:_0x276ee5})=>{const _0x41140e={'id':_0x586d22,'type':_0x150c6b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2838e6,'createdAt':_0x276ee5?new Date(_0x276ee5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x41140e);});}}class ft extends _0x2e08d9{['afterInit'](){const _0xfa9468=this['editor'],_0x31e4b8=_0xfa9468['plugins']['get']('TrackChangesEditing');if(_0xfa9468['plugins']['has']('IndentEditing')&&(_0x31e4b8['enableCommand']('indent'),_0x31e4b8['enableCommand']('outdent')),_0xfa9468['plugins']['has']('IndentBlock')){for(const _0x1d60ef of['indentBlock','outdentBlock'])_0x31e4b8['enableDefaultAttributesIntegration'](_0x1d60ef);}const _0x163a6b=_0xfa9468['locale'];_0x31e4b8['registerBlockAttribute']('blockIndent'),_0x31e4b8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x163a6b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x348953=this['editor'],_0x23682d=_0x348953['locale'],_0x5ee141=_0x348953['plugins']['get']('TrackChangesEditing');_0x5ee141['descriptionFactory']['registerDescriptionCallback'](_0x5165a8=>{if('formatBlock'!=_0x5165a8['type'])return;const {data:_0x13a602}=_0x5165a8;if(!_0x13a602)return;if('indentBlock'!=_0x13a602['commandName']&&'outdentBlock'!=_0x13a602['commandName'])return;const _0x45b13d=_0x5165a8['getItems']()[0x0],_0xe71bf4=_0x5ee141['descriptionFactory']['getItemLabel'](_0x45b13d);return'indentBlock'==_0x13a602['commandName']?{'type':'format','content':o(_0x23682d,'*Indent:*\x20%0',_0xe71bf4)}:'outdentBlock'==_0x13a602['commandName']?{'type':'format','content':o(_0x23682d,'*Outdent:*\x20%0',_0xe71bf4)}:void 0x0;});}}class ht extends _0x2e08d9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2e08d9{['afterInit'](){const _0x11960a=this['editor'];if(!_0x11960a['plugins']['has']('LinkEditing'))return;const _0xea0e2f=_0x11960a['plugins']['get']('TrackChangesEditing'),_0x5826f1=_0x11960a['commands']['get']('link');_0xea0e2f['enableDefaultAttributesIntegration']('link'),_0xea0e2f['enableDefaultAttributesIntegration']('unlink'),_0xea0e2f['registerInlineAttribute']('linkHref');for(const _0x29bda9 of _0x5826f1['manualDecorators'])_0xea0e2f['registerInlineAttribute'](_0x29bda9['id']),_0xea0e2f['descriptionFactory']['registerAttributeLabel'](_0x29bda9['id'],'link\x20('+_0x29bda9['label']['toLowerCase']()+')');_0xea0e2f['descriptionFactory']['registerDescriptionCallback'](_0x386929=>{if('attribute'!=_0x386929['type'])return;const {data:_0x2e9024}=_0x386929;if(!_0x2e9024||'linkHref'!=_0x2e9024['key'])return;const _0x25b31d=_0x2e9024['newValue'],_0x46b065=_0x11960a['locale'];return{'type':'format','content':null==_0x25b31d?o(_0x46b065,'*Remove\x20link*'):o(_0x46b065,'*Set\x20link:*\x20%0','\x22'+_0x25b31d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3898c8=this['editor'],_0x32d22d=_0x3898c8['locale'];_0x3898c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x67d3f2=>{if('formatInline'!=_0x67d3f2['type'])return;const {data:_0x4c3965}=_0x67d3f2;if(_0x4c3965){if('link'==_0x4c3965['commandName']){const _0x444d23=_0x4c3965['commandParams'][0x0];return{'type':'format','content':o(_0x32d22d,'*Set\x20link:*\x20%0','\x22'+_0x444d23+'\x22')};}return'unlink'==_0x4c3965['commandName']?{'type':'format','content':o(_0x32d22d,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2e08d9{['afterInit'](){const _0x5f7ee=this['editor'],_0x401d3b=_0x5f7ee['locale'];if(!_0x5f7ee['plugins']['has']('LegacyListEditing'))return;const _0x3d97e4=_0x5f7ee['plugins']['get']('TrackChangesEditing'),_0x4c3706=_0x5f7ee['plugins']['has']('LegacyTodoListEditing');function _0x25ce31(_0x4af2ff){return()=>{const _0x2b1f49=_0x5f7ee['model']['document']['selection'],_0x185326=_0x5f7ee['commands']['get'](_0x4af2ff);if(_0x185326['value'])return void _0x5f7ee['execute']('paragraph',{});const _0x3a5b24=_0x4af2ff['slice'](0x0,-0x4),_0x254ac0=function(_0x4a8a1,_0x52fc50,_0xcc528d){let _0x1d0cae=Array['from'](_0x4a8a1)['filter'](_0x377b44=>function(_0x179819,_0x1066b1){return _0x1066b1['checkChild'](_0x179819['parent'],'listItem')&&!_0x1066b1['isObject'](_0x179819);}(_0x377b44,_0xcc528d));_0x1d0cae=_0x1d0cae['filter'](_0x36f617=>!_0x36f617['is']('element','listItem')||_0x36f617['getAttribute']('listType')!=_0x52fc50);const _0x2c45d0=new Set();for(const _0x2c488c of _0x1d0cae)_0x2c488c['is']('element','listItem')?_0x2c45d0['add'](Le(_0x2c488c)):_0x2c45d0['add'](_0x2c488c);return Array['from'](_0x2c45d0);}(_0x2b1f49['getSelectedBlocks'](),_0x3a5b24,_0x5f7ee['model']['schema']);_0x5f7ee['model']['change'](()=>{for(const _0x4d5b0e of _0x254ac0)_0x3d97e4['markBlockFormat'](_0x4d5b0e,{'commandName':_0x4af2ff,'commandParams':[{'forceValue':!_0x185326['value']}],'formatGroupId':'blockName'},Ee(_0x4d5b0e));});};}function _0x556631(_0x4f1308){return()=>{const _0x35a19c=function(_0x17c9c4){let _0x48a320=Array['from'](_0x17c9c4);const _0x2a6bc2=_0x48a320['findIndex'](_0x4e427b=>'listItem'!=_0x4e427b['name']);return _0x2a6bc2>-0x1&&(_0x48a320=_0x48a320['slice'](0x0,_0x2a6bc2)),_0x48a320;}(_0x5f7ee['model']['document']['selection']['getSelectedBlocks']()),_0x43ab46=_0x5f7ee['model']['createRange'](_0x5f7ee['model']['createPositionAt'](_0x35a19c[0x0],'before'),_0x5f7ee['model']['createPositionAt'](_0x35a19c[_0x35a19c['length']-0x1],'end'));_0x5f7ee['model']['change'](()=>{_0x3d97e4['markBlockFormat'](_0x43ab46,{'commandName':_0x4f1308,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5764fc){const _0x2b75b6=new Set();for(const _0x45e5a9 of _0x5764fc){let _0x5bf7a1=_0x45e5a9['nextSibling'];for(;_0x5bf7a1&&_0x5bf7a1['getAttribute']('listIndent')>_0x45e5a9['getAttribute']('listIndent');)_0x2b75b6['add'](_0x5bf7a1),_0x5bf7a1=_0x5bf7a1['nextSibling'];}return Array['from'](_0x2b75b6);}(_0x35a19c));});};}_0x3d97e4['enableCommand']('numberedList',_0x25ce31('numberedList')),_0x3d97e4['enableCommand']('bulletedList',_0x25ce31('bulletedList')),_0x4c3706&&_0x3d97e4['enableCommand']('todoList',_0x25ce31('todoList')),_0x3d97e4['enableCommand']('indentList',_0x556631('indentList')),_0x3d97e4['enableCommand']('outdentList',_0x556631('outdentList')),_0x4c3706&&_0x3d97e4['enableCommand']('checkTodoList',()=>{const _0x49f02a=_0x5f7ee['commands']['get']('checkTodoList'),_0x1d7242=Array['from'](_0x49f02a['_selectedElements']);_0x1d7242['filter'](_0x283d36=>_0x283d36['getAttribute']('todoListChecked')!=_0x49f02a['value']),_0x5f7ee['model']['change'](()=>{for(const _0x16c231 of _0x1d7242)_0x3d97e4['markBlockFormat'](_0x16c231,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x49f02a['value']}]});});}),_0x3d97e4['descriptionFactory']['registerElementLabel']('listItem',_0x2e6395=>o(_0x401d3b,'ELEMENT_LIST_ITEM',_0x2e6395)),_0x3d97e4['descriptionFactory']['registerDescriptionCallback'](_0x286ff9=>{if('formatBlock'!=_0x286ff9['type']&&'formatInline'!=_0x286ff9['type'])return;const {data:_0x4d5826}=_0x286ff9;if(_0x4d5826){if('numberedList'==_0x4d5826['commandName']||'bulletedList'==_0x4d5826['commandName']||'todoList'==_0x4d5826['commandName'])switch(_0x4d5826['commandName']['replace']('List','')){case'bulleted':return _0x5b1e28(o(_0x401d3b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b1e28(o(_0x401d3b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b1e28(o(_0x401d3b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4d5826['commandName'])return{'type':'format','content':o(_0x401d3b,'*Indent:*\x20%0',o(_0x401d3b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4d5826['commandName'])return{'type':'format','content':o(_0x401d3b,'*Outdent:*\x20%0',o(_0x401d3b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4d5826['commandName'])return _0x4d5826['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x401d3b,'*Check\x20item*')}:{'type':'format','content':o(_0x401d3b,'*Uncheck\x20item*')};}function _0x5b1e28(_0x30d3df){return{'type':'format','content':o(_0x401d3b,'*Change\x20to:*\x20%0',_0x30d3df)};}});}}function Le(_0x5156c1){const _0x546098=_0x5156c1['getAttribute']('listIndent');if(0x0==_0x546098)return _0x5156c1;let _0x4562f4=_0x5156c1;for(;_0x5156c1['previousSibling']&&_0x5156c1['previousSibling']['is']('element','listItem');){const _0x4f10da=_0x5156c1['previousSibling']['getAttribute']('listIndent');if(_0x4f10da==_0x546098)_0x4562f4=_0x5156c1['previousSibling'];else{if(_0x4f10da<_0x546098)break;}_0x5156c1=_0x5156c1['previousSibling'];}return _0x4562f4;}function Ee(_0xba5e83){const _0x20dd5b=[];if(_0xba5e83['is']('element','listItem')&&_0xba5e83['getAttribute']('listIndent')>0x0){let _0x19c209=_0xba5e83['nextSibling'];for(;_0x19c209&&'listItem'==_0x19c209['name']&&_0x19c209['getAttribute']('listIndent')==_0xba5e83['getAttribute']('listIndent');)_0x20dd5b['push'](_0x19c209),_0x19c209=_0x19c209['nextSibling'];}return _0x20dd5b;}class Q extends _0x2e08d9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5d5338=this['editor']['config']['get']('list.properties'),_0x60f315=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d5338['styles']&&_0x60f315['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5d5338['reversed']&&_0x60f315['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5d5338['startIndex']&&_0x60f315['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x60f315['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5d3070,_0x1bb91a={}){const _0x500b39=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb1865f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x500b39['markMultiRangeBlockFormat'](_0xb1865f,{'commandName':'listStyle','commandParams':[{'type':_0x1bb91a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xc9919b,_0x5ad302={}){const _0xe6d6ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x501349=this['_getSuggestionBlocks'](_0x462eea=>_0x462eea['is']('element','listItem')&&'numbered'===_0x462eea['getAttribute']('listType'));if(_0x501349['length']<0x1)return;const _0x505a11=_0x501349['map'](_0x2958dc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2958dc,'before'),this['editor']['model']['createPositionAt'](_0x2958dc,0x0)));this['editor']['model']['change'](()=>{_0xe6d6ca['markMultiRangeBlockFormat'](_0x505a11,{'commandName':'listReversed','commandParams':[{'reversed':_0x5ad302['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1f6d35,_0x1b55d6={}){const _0x3f8141=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cfe2b=this['_getSuggestionBlocks'](_0x259669=>_0x259669['is']('element','listItem')&&'numbered'===_0x259669['getAttribute']('listType'));if(_0x2cfe2b['length']<0x1)return;const _0x5f06c2=_0x2cfe2b['map'](_0x524ce2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x524ce2,'before'),this['editor']['model']['createPositionAt'](_0x524ce2,0x0)));this['editor']['model']['change'](()=>{_0x3f8141['markMultiRangeBlockFormat'](_0x5f06c2,{'commandName':'listStart','commandParams':[{'startIndex':_0x1b55d6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x548ab6){if('formatBlock'!=_0x548ab6['type']&&'formatInline'!=_0x548ab6['type'])return;const _0x413a7b=this['editor']['locale'],{data:_0x2b43bb}=_0x548ab6;if(!_0x2b43bb)return;let _0x198027,_0x2e3d5b;switch(_0x2b43bb['commandName']){case'listStyle':_0x198027='*Change\x20to:*\x20%0',_0x2e3d5b={'type':'format','content':o(_0x413a7b,_0x198027,o(_0x413a7b,this['_getTranslationKeyForListStyle'](_0x2b43bb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x198027=_0x2b43bb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e3d5b={'type':'format','content':o(_0x413a7b,_0x198027)};break;case'listStart':_0x198027='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e3d5b={'type':'format','content':o(_0x413a7b,_0x198027,_0x2b43bb['commandParams'][0x0]['startIndex'])};}return _0x2e3d5b;}['_getSuggestionBlocksForListStyle'](){const _0x2cc5c7=this['editor']['plugins']['get']('LegacyListUtils');let _0x47ec97=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x47ec97[0x0]?.['is']('element','listItem')&&_0x47ec97['unshift'](..._0x2cc5c7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x47ec97[_0x47ec97['length']-0x1]?.['is']('element','listItem')&&_0x47ec97['push'](..._0x2cc5c7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x47ec97=[...new Set(_0x47ec97)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x47ec97=_0x47ec97['filter'](_0x53944e=>_0x53944e['is']('element','listItem'))),_0x47ec97;}['_getSuggestionBlocks'](_0x269f5d){const _0x263ea8=this['editor']['plugins']['get']('LegacyListUtils');let _0x4aecf6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x269f5d)['map'](_0x1f4357=>{const _0x53a4cd=this['editor']['model']['createPositionAt'](_0x1f4357,0x0);return[..._0x263ea8['getSiblingNodes'](_0x53a4cd,'backward'),..._0x263ea8['getSiblingNodes'](_0x53a4cd,'forward')];})['flat']();return _0x4aecf6=[...new Set(_0x4aecf6)],_0x4aecf6;}['_getTranslationKeyForListStyle'](_0x1b1f46){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1b1f46)||'default')['toUpperCase']()+'_LIST_'+_0x1b1f46['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2e08d9{['afterInit'](){const _0x26c948=this['editor'];if(!_0x26c948['plugins']['has']('MediaEmbedEditing'))return;const _0x5f3d38=_0x26c948['plugins']['get']('TrackChangesEditing'),_0x1820a4=_0x26c948['locale'];_0x5f3d38['enableCommand']('mediaEmbed'),_0x5f3d38['descriptionFactory']['registerElementLabel']('media',_0x47c517=>o(_0x1820a4,'ELEMENT_MEDIA',_0x47c517)),_0x26c948['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x32d2cb,{writer:_0x5982b5,options:_0x4c6440})=>{if(_0x4c6440['showSuggestionHighlights'])return _0x5982b5['createEmptyElement']('div');},'converterPriority':'high'}),_0x26c948['data']['downcastDispatcher']['on']('attribute:url:media',(_0x40ef9a,_0x1ed8a9,_0x27979b)=>{_0x27979b['options']['showSuggestionHighlights']&&_0x40ef9a['stop']();},{'priority':'high'});}}class pt extends _0x2e08d9{['afterInit'](){const _0x343bae=this['editor'];_0x343bae['plugins']['has']('MentionEditing')&&_0x343bae['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2e08d9{['afterInit'](){const _0x543b4a=this['editor'];if(!_0x543b4a['plugins']['has']('MergeFieldsEditing'))return;const _0x4a3dc7=_0x543b4a['plugins']['get']('TrackChangesEditing'),_0x5cec88=_0x543b4a['locale'];_0x4a3dc7['enableCommand']('insertMergeField'),_0x4a3dc7['enableCommand']('insertMergeFieldBlock'),_0x4a3dc7['enableCommand']('insertMergeFieldImage'),_0x4a3dc7['descriptionFactory']['registerElementLabel']('mergeField',_0x4c7c21=>o(_0x5cec88,'ELEMENT_MERGE_FIELD',_0x4c7c21)),_0x4a3dc7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xa76aad=>o(_0x5cec88,'ELEMENT_MERGE_FIELD',_0xa76aad)),_0x4a3dc7['descriptionFactory']['registerDescriptionCallback'](_0x513e1c=>{if('insertion'!=_0x513e1c['type']&&'deletion'!=_0x513e1c['type'])return;const _0x16adf0=_0x513e1c['getContainedElement']();if(null==_0x16adf0)return;const _0x30ba25=_0x543b4a['plugins']['get']('MergeFieldsEditing');let _0x32fc46;switch(_0x30ba25['getMergeFieldType'](_0x16adf0)){case null:return;case'image':{const _0x2a4ba2=_0x30ba25['unwrapAffixes'](_0x16adf0['getAttribute']('src'));_0x32fc46=_0x30ba25['getLabel'](_0x2a4ba2)||_0x2a4ba2;break;}default:{const _0x2e699f=_0x16adf0['getAttribute']('id');_0x32fc46=_0x30ba25['getLabel'](_0x2e699f)||_0x2e699f;break;}}return'insertion'==_0x513e1c['type']?{'type':'insertion','content':o(_0x5cec88,'*Insert:*\x20%0','\x22'+_0x32fc46+'\x22\x20'+o(_0x5cec88,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5cec88,'*Remove:*\x20%0','\x22'+_0x32fc46+'\x22\x20'+o(_0x5cec88,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2e08d9{['afterInit'](){const _0x240e02=this['editor'],_0x57735a=_0x240e02['plugins']['get']('TrackChangesEditing');_0x240e02['plugins']['has']('MultiLevelList')&&(_0x57735a['enableDefaultAttributesIntegration']('multiLevelList'),_0x57735a['registerBlockAttribute']('listMarkerStyle'),_0x57735a['descriptionFactory']['registerDescriptionCallback'](_0x1b74b3=>this['handleDescriptions'](_0x1b74b3)));}['handleDescriptions'](_0x238ff6){const _0x2d78df=this['editor']['locale'],{data:_0x3d317e}=_0x238ff6,_0x52dcb6={'type':'format','content':''};if(_0x3d317e&&'listMarkerStyle'==_0x3d317e['key']){if(!_0x3d317e['oldValue'])return{'type':'format','content':o(_0x2d78df,'*Set\x20format:*\x20%0',o(_0x2d78df,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3d317e['newValue']+')'};if(!_0x3d317e['newValue']){let _0x3d3eec=_0x238ff6['head'];for(;_0x3d3eec;){if(_0x3d3eec['data']&&'listType'==_0x3d3eec['data']['key']&&_0x3d3eec['data']['newValue'])return _0x52dcb6;_0x3d3eec=_0x3d3eec['next'];}return{'type':'format','content':o(_0x2d78df,'*Remove\x20format:*\x20%0',o(_0x2d78df,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3d317e['oldValue']+')'};}}}}class bt extends _0x2e08d9{['afterInit'](){const _0x2b2e2a=this['editor'];if(!_0x2b2e2a['plugins']['has']('PageBreakEditing'))return;_0x2b2e2a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x235ed4=_0x2b2e2a['plugins']['get']('TrackChangesEditing'),_0x5dbd9b=_0x2b2e2a['locale'];_0x235ed4['descriptionFactory']['registerElementLabel']('pageBreak',_0x384bab=>o(_0x5dbd9b,'ELEMENT_PAGE_BREAK',_0x384bab));}}class yt extends _0x2e08d9{['afterInit'](){const _0x39a027=this['editor'];if(!_0x39a027['plugins']['has']('Paragraph'))return;const _0x506531=_0x39a027['locale'],_0x1891c6=_0x39a027['plugins']['get']('TrackChangesEditing');_0x1891c6['descriptionFactory']['registerElementLabel']('paragraph',_0x3c8149=>o(_0x506531,'ELEMENT_PARAGRAPH',_0x3c8149)),_0x1891c6['enableDefaultAttributesIntegration']('paragraph'),_0x1891c6['enableCommand']('insertParagraph'),_0x39a027['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x39a027),{'priority':'highest'}),_0x39a027['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x576fef,_0xbac14,_0x6fdad2)=>{_0x6fdad2['options']['showSuggestionHighlights']&&nr(_0x39a027,{'showActiveMarker':!0x1})(_0x576fef,_0xbac14,_0x6fdad2);},{'priority':'highest'});const _0x4f5234=_0x1891c6['descriptionFactory'];_0x4f5234['registerDescriptionCallback'](_0xdb7485=>{if('insertion'!==_0xdb7485['type'])return;const {start:_0x33acb1,end:_0x515b87}=_0xdb7485['getFirstRange']();if(!_0x33acb1['isTouching'](_0x515b87)||!_0x33acb1['nodeAfter'])return;const _0x57cf6e=_0x39a027['model']['schema'],_0x26c40f=_0x33acb1['nodeAfter'];return _0x57cf6e['isBlock'](_0x26c40f)&&!_0x57cf6e['isLimit'](_0x26c40f)&&_0x57cf6e['checkChild'](_0x26c40f,'$text')?{'type':'insertion','content':o(_0x506531,'*Insert:*\x20%0',_0x4f5234['getItemLabel'](_0x26c40f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x407d67=this['editor'],_0x554f3c=_0x407d67['locale'];_0x407d67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1458b7=>{if('formatBlock'!=_0x1458b7['type'])return;const {data:_0x38fca4}=_0x1458b7;return _0x38fca4&&'paragraph'==_0x38fca4['commandName']?{'type':'format','content':o(_0x554f3c,'*Change\x20to:*\x20%0',o(_0x554f3c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x11c5b6,{showActiveMarker:_0x3b003f=!0x0}={}){return(_0x2e14bb,_0x183113,_0x4ffdae)=>{const _0x1b2974=_0x11c5b6['plugins']['get']('TrackChangesEditing'),_0x515d14=_0x183113['markerRange']['start'],_0x3db67b=_0x183113['markerRange']['end'],_0x10286a=_0x11c5b6['model']['schema'];if(!_0x515d14['isTouching'](_0x3db67b)||!_0x515d14['nodeAfter'])return;const _0x5d5469=_0x515d14['nodeAfter'];if(_0x10286a['isBlock'](_0x5d5469)&&!_0x10286a['isLimit'](_0x5d5469)&&_0x10286a['checkChild'](_0x5d5469,'$text')){if(!_0x4ffdae['consumable']['consume'](_0x183113['markerRange'],_0x2e14bb['name']))return;const {authorId:_0x228586}=_0x1b2974['_splitMarkerName'](_0x183113['markerName']),_0x262bb6=_0x4ffdae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x228586}),_0x59df5b=_0x4ffdae['mapper']['toViewPosition'](_0x3db67b);_0x3b003f&&_0x1b2974['activeMarkers']['includes'](_0x183113['markerName'])&&_0x4ffdae['writer']['addClass']('ck-suggestion-marker--active',_0x262bb6),_0x4ffdae['writer']['insert'](_0x59df5b,_0x262bb6),_0x4ffdae['mapper']['bindElementToMarker'](_0x262bb6,_0x183113['markerName']);}};}class jt extends _0x2e08d9{['afterInit'](){const _0x4eea94=this['editor'];_0x4eea94['commands']['get']('replaceSource')&&_0x4eea94['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2e08d9{['afterInit'](){const _0x5c50bd=this['editor'];if(!_0x5c50bd['plugins']['has']('RemoveFormatEditing'))return;_0x5c50bd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b53f7=this['editor'];_0x3b53f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x333d00=>{if('formatBlock'!=_0x333d00['type']&&'formatInline'!=_0x333d00['type'])return;const {data:_0x43e0ed}=_0x333d00;return _0x43e0ed&&'removeFormat'==_0x43e0ed['commandName']?{'type':'format','content':o(_0x3b53f7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x2e08d9{['afterInit'](){const _0x47f0f3=this['editor'];if(!_0x47f0f3['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5b9c28=_0x47f0f3['plugins']['get']('TrackChangesEditing');_0x5b9c28['enableCommand']('goToPreviousRestrictedEditingException'),_0x5b9c28['enableCommand']('goToNextRestrictedEditingException');const _0x278025=_0x47f0f3['plugins']['get']('RestrictedEditingModeEditing');_0x278025['enableCommand']('trackChanges'),_0x278025['enableCommand']('acceptSuggestion'),_0x278025['enableCommand']('discardSuggestion'),_0x278025['enableCommand']('acceptAllSuggestions'),_0x278025['enableCommand']('discardAllSuggestions'),_0x278025['enableCommand']('acceptSelectedSuggestions'),_0x278025['enableCommand']('discardSelectedSuggestions');}}class It extends _0x2e08d9{static get['requires'](){return[_0x46f0df];}['init'](){const _0x2c9d67=this['editor'],_0x414cd9=_0x2c9d67['plugins']['get']('TrackChangesEditing');_0x414cd9['enableCommand']('shiftEnter'),_0x2c9d67['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x2c9d67),{'priority':'high'}),_0x2c9d67['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x2c9d67),{'priority':'high'}),_0x2c9d67['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x225009,_0x4f467d,_0x19c8d3)=>{_0x19c8d3['options']['showSuggestionHighlights']&&je(_0x2c9d67,{'showActiveMarker':!0x1})(_0x225009,_0x4f467d,_0x19c8d3);}),_0x414cd9['descriptionFactory']['registerElementLabel']('softBreak',_0x38581d=>o(_0x2c9d67['locale'],'ELEMENT_LINE_BREAK',_0x38581d));}}function je(_0x522ef6,{showActiveMarker:_0x1c07cc=!0x0}={}){return(_0x48d681,_0x4dfe9e,_0x5bae5f)=>{const _0x3f0530=_0x522ef6['plugins']['get']('TrackChangesEditing');if(!_0x5bae5f['consumable']['test'](_0x4dfe9e['markerRange'],_0x48d681['name']))return;const _0x23917a=_0x522ef6['model'];for(const _0x5472ec of _0x4dfe9e['markerRange']['getItems']()){if(!_0x5472ec['is']('element','softBreak'))continue;const _0x3006a7='deletion'==_0x4dfe9e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2591cf}=_0x3f0530['_splitMarkerName'](_0x4dfe9e['markerName']),_0x44df63=_0x5bae5f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3006a7,'data-author-id':_0x2591cf}),_0x453c80=_0x5bae5f['mapper']['toViewPosition'](_0x23917a['createPositionBefore'](_0x5472ec));_0x1c07cc&&_0x3f0530['activeMarkers']['includes'](_0x4dfe9e['markerName'])&&_0x5bae5f['writer']['addClass']('ck-suggestion-marker--active',_0x44df63),_0x5bae5f['writer']['insert'](_0x453c80,_0x44df63),_0x5bae5f['mapper']['bindElementToMarker'](_0x44df63,_0x4dfe9e['markerName']);}};}class vt extends _0x2e08d9{['afterInit'](){const _0x11df31=this['editor'],_0x122478=_0x11df31['model'],_0x2632b3=_0x11df31['locale'];if(!_0x11df31['plugins']['has']('StandardEditingModeEditing'))return;const _0x1e2264=_0x11df31['plugins']['get']('TrackChangesEditing'),_0x166df3='restrictedEditingException',_0x487102=_0x11df31['commands']['get'](_0x166df3);_0x1e2264['enableCommand'](_0x166df3,(_0x82a0de,_0xec7ae9={})=>{const _0x3cb1f6=_0x122478['document']['selection'];if(_0x3cb1f6['isCollapsed'])return void _0x82a0de(_0xec7ae9);const _0xc42611=void 0x0!==_0xec7ae9['forceValue']?_0xec7ae9['forceValue']:!_0x487102['value'];_0x122478['change'](()=>{const _0x198cd3=Array['from'](_0x3cb1f6['getRanges']());for(const _0x3670d2 of _0x198cd3){const _0x581ca3=_0xc42611?[_0x3670d2]:io(_0x166df3,_0x3670d2,_0x122478);for(const _0xe6d597 of _0x581ca3)_0x1e2264['markInlineFormat'](_0xe6d597,{'commandName':_0x166df3,'commandParams':[{'forceValue':_0xc42611}]});}});}),_0x1e2264['descriptionFactory']['registerDescriptionCallback'](_0x41f3d6=>{if('formatBlock'!=_0x41f3d6['type']&&'formatInline'!=_0x41f3d6['type'])return;const {data:_0xb43b8e}=_0x41f3d6;return _0xb43b8e&&_0xb43b8e['commandName']==_0x166df3?_0xb43b8e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2632b3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x2632b3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x2e08d9{['afterInit'](){const _0x5ec5fc=this['editor'];if(!_0x5ec5fc['plugins']['has']('Style')||!_0x5ec5fc['plugins']['has']('DataSchema'))return;const _0x5d07c5=_0x5ec5fc['plugins']['get']('TrackChangesEditing'),_0x57fd0c=_0x5ec5fc['locale'],_0x347028=_0x5ec5fc['config']['get']('style')||{},_0x3dd782=_0x5ec5fc['plugins']['get']('GeneralHtmlSupport'),_0x13965e=_0x5ec5fc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5ec5fc['plugins']['get']('DataSchema'),_0x347028['definitions']);_0x5d07c5['enableDefaultAttributesIntegration']('style');const _0x5c66d6=new Set();for(const _0x177bac of _0x13965e['block']){const _0x5d3db1=_0x3dd782['getGhsAttributeNameForElement'](_0x177bac['element']);_0x5c66d6['add'](_0x5d3db1);}const _0x3fcd94=new Set();for(const _0x2dd833 of _0x13965e['inline']){const _0x1e0a7a=_0x3dd782['getGhsAttributeNameForElement'](_0x2dd833['element']);_0x3fcd94['add'](_0x1e0a7a);for(const _0x40cbc0 of _0x2dd833['ghsAttributes'])_0x3fcd94['add'](_0x40cbc0);}for(const _0x46eb6d of _0x5c66d6)_0x5d07c5['registerBlockAttribute'](_0x46eb6d),_0x5d07c5['descriptionFactory']['registerAttributeLabel'](_0x46eb6d,o(_0x57fd0c,'FORMAT_STYLE'));for(const _0x48bde8 of _0x3fcd94)_0x5d07c5['registerInlineAttribute'](_0x48bde8),_0x5d07c5['descriptionFactory']['registerAttributeLabel'](_0x48bde8,o(_0x57fd0c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x482dda=this['editor'],_0x1ead2a=_0x482dda['locale'];_0x482dda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a62d3=>{if('formatBlock'!=_0x3a62d3['type']&&'formatInline'!=_0x3a62d3['type'])return;const {data:_0x12b4e6}=_0x3a62d3;return _0x12b4e6&&'style'===_0x12b4e6['commandName']?_0x12b4e6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ead2a,'*Set\x20format:*\x20%0',_0x12b4e6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1ead2a,'*Remove\x20format:*\x20%0',_0x12b4e6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2e08d9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x47bdfb){super(_0x47bdfb),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1643c7=this['editor'],_0x16d820=_0x1643c7['model']['document']['selection'];if(!_0x1643c7['plugins']['has']('TableEditing'))return;const _0x13381a=_0x1643c7['locale'],_0x3ff8e1=_0x1643c7['plugins']['get']('TrackChangesEditing'),_0x1b06b4=_0x1643c7['plugins']['get']('TableUtils');_0x3ff8e1['descriptionFactory']['registerElementLabel']('table',_0x146e88=>o(_0x13381a,'ELEMENT_TABLE',_0x146e88)),this['_setupColumnsRowsFixing'](),_0x3ff8e1['enableCommand']('insertTable'),_0x3ff8e1['enableCommand']('selectTableRow'),_0x3ff8e1['enableCommand']('selectTableColumn');for(const _0x501e4a of['insertTableRowAbove','insertTableRowBelow']){const _0x29b43a=_0x1643c7['commands']['get'](_0x501e4a);_0x3ff8e1['enableCommand'](_0x501e4a,_0x163a0c=>{_0x1643c7['model']['change'](_0x485c4c=>{_0x163a0c();const _0x1d8282='above'===_0x29b43a['order'],_0x4acfe2=_0x1b06b4['getSelectionAffectedTableCells'](_0x16d820),_0x3e066e=_0x1b06b4['getRowIndexes'](_0x4acfe2),_0x47f677=_0x1d8282?_0x3e066e['first']-0x1:_0x3e066e['last']+0x1,_0x2f876f=_0x4acfe2[0x0]['findAncestor']('table'),_0x4dc2e1=_0x1b06b4['createTableWalker'](_0x2f876f,{'startRow':_0x47f677,'endRow':_0x47f677}),_0xd38985=Array['from'](_0x4dc2e1)['map'](_0x312166=>_0x485c4c['createRangeOn'](_0x312166['cell']));_0x3ff8e1['markMultiRangeInsertion'](_0xd38985,'tableRow');});});}for(const _0x47eca8 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4ff12c=_0x1643c7['commands']['get'](_0x47eca8);_0x3ff8e1['enableCommand'](_0x47eca8,_0x24de37=>{_0x1643c7['model']['change'](_0x2f1dca=>{_0x24de37();const _0x2d08a5='left'===_0x4ff12c['order'],_0x208fed=_0x1b06b4['getSelectionAffectedTableCells'](_0x16d820),_0x32a9aa=_0x1b06b4['getColumnIndexes'](_0x208fed),_0x1ed1cf=_0x2d08a5?_0x32a9aa['first']-0x1:_0x32a9aa['last']+0x1,_0xd1ad05=_0x208fed[0x0]['findAncestor']('table'),_0x33030e=_0x1b06b4['createTableWalker'](_0xd1ad05,{'startRow':0x0,'column':_0x1ed1cf,'includeAllSlots':!0x1}),_0x1948b6=Array['from'](_0x33030e)['map'](_0x2ae098=>_0x2f1dca['createRangeOn'](_0x2ae098['cell']));_0x3ff8e1['markMultiRangeInsertion'](_0x1948b6,'tableColumn');});});}for(const _0x392481 of['removeTableRow','removeTableColumn']){const _0x27e628=_0x392481['substr'](0xb),_0x511c83=_0x27e628['toLowerCase'](),_0x55b8dc=_0x511c83['substr'](0x0,0x3)+'span',_0x215c9e='table'+_0x27e628,_0x1f99f2='min'+_0x27e628,_0x1f0eeb='max'+_0x27e628;_0x3ff8e1['enableCommand'](_0x392481,()=>{_0x1643c7['model']['change'](_0x33cadd=>{const _0x1da1dd=_0x1b06b4['getSelectionAffectedTableCells'](_0x16d820),_0x487f83=_0x1da1dd[0x0]['findAncestor']('table');let _0x2cf3c3;if('removeTableRow'==_0x392481){const _0x4f00e2=_0x1b06b4['getRowIndexes'](_0x1da1dd);_0x2cf3c3={'startRow':_0x4f00e2['first'],'endRow':_0x4f00e2['last'],'includeAllSlots':!0x0};}else{const _0xd6edea=_0x1b06b4['getColumnIndexes'](_0x1da1dd);_0x2cf3c3={'startColumn':_0xd6edea['first'],'endColumn':_0xd6edea['last'],'includeAllSlots':!0x0};}const _0xdb3238=_0x1b06b4['createTableWalker'](_0x487f83,_0x2cf3c3),_0x5d1c44=Array['from'](_0xdb3238)['map'](({cell:_0x1bba7b})=>_0x1bba7b),_0x2b062d=Ne(_0x5d1c44['filter'](_0x5c7a12=>_0x5c7a12['hasAttribute'](_0x55b8dc))),_0x4b0753=Ne(_0x5d1c44['filter'](_0x475caa=>!_0x475caa['hasAttribute'](_0x55b8dc)))['map'](_0x5bc8e4=>_0x33cadd['createRangeOn'](_0x5bc8e4)),_0x29992c=_0x3ff8e1['markMultiRangeDeletion'](_0x4b0753,_0x215c9e);if(_0x29992c&&('tableRow'==_0x29992c['subType']||'tableColumn'==_0x29992c['subType'])){const _0x4733e1=this['_getSuggestionCoords'](_0x29992c);for(const _0x2de4bc of _0x2b062d){const _0x32a839=_0x33cadd['createRangeOn'](_0x2de4bc),_0xa398ed=_0x1b06b4['getCellLocation'](_0x2de4bc),_0x1a2ad1=_0x2de4bc['getAttribute'](_0x55b8dc)-0x1,_0x2b956b=_0x4733e1[_0x1f99f2],_0x5321fe=_0x4733e1[_0x1f0eeb];_0x2b956b<=_0xa398ed[_0x511c83]&&_0xa398ed[_0x511c83]+_0x1a2ad1<=_0x5321fe&&_0x29992c['addRange'](_0x32a839);}}});});}function _0x4467e6(_0xf314ec){const _0x34fad9=Array['from'](_0x16d820['getRanges']())['map'](_0x4d3979=>_0x985c68['fromRange'](_0x4d3979));_0x1643c7['model']['change'](_0x4d24a7=>{const _0x5d2eb2=_0x4d24a7['batch'];_0xf314ec=_0xf314ec['filter'](_0x9af36=>'$graveyard'!=_0x9af36['root']['rootName']),_0x4d24a7['setSelection'](_0xf314ec),_0x1643c7['commands']['get']('removeTableRow')['refresh'](),_0x1643c7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1643c7['model']['enqueueChange'](()=>{_0x1643c7['model']['enqueueChange'](_0x5d2eb2,_0x247dfe=>{const _0x55f28f=_0x34fad9['filter'](_0x2daf97=>'$graveyard'!=_0x2daf97['root']['rootName']);_0x55f28f['length']>0x0&&_0x247dfe['setSelection'](_0x55f28f);for(const _0x5aab0f of _0x34fad9)_0x5aab0f['detach']();});});});}function _0x4a9370(_0x8e2ad5){_0x1643c7['model']['change'](_0x36d568=>{const _0x4d418b=Array['from'](_0x16d820['getRanges']())['map'](_0x5b1ac9=>_0x985c68['fromRange'](_0x5b1ac9)),_0x34f0d5=[];for(const _0x39de99 of _0x8e2ad5)for(const _0x1058f2 of _0x39de99['getItems']({'shallow':!0x0}))_0x34f0d5['push'](_0x1058f2);for(const _0x583caa of _0x34f0d5)'$graveyard'!=_0x583caa['root']['rootName']&&(_0x36d568['setSelection'](_0x36d568['createPositionAt'](_0x583caa,0x0)),_0x1643c7['commands']['get']('removeTableColumn')['refresh'](),_0x1643c7['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xf29e38=_0x4d418b['filter'](_0x2e3599=>'$graveyard'!=_0x2e3599['root']['rootName']);_0xf29e38['length']>0x0&&_0x36d568['setSelection'](_0xf29e38);for(const _0x5878ba of _0x4d418b)_0x5878ba['detach']();});}function _0x3c7016(_0x4e7735,_0x1935e7){return _0x1935e7['every'](_0x298342=>_0x4e7735['some'](_0x527432=>_0x527432['end']['isEqual'](_0x298342['start'])||_0x298342['end']['isEqual'](_0x527432['start'])));}function _0x1de922(_0x3e23d0,_0x509ad5){return!_0x3e23d0['some'](_0xe74000=>_0x509ad5['some'](_0x3f97e2=>_0xe74000['isIntersecting'](_0x3f97e2)))&&_0x3e23d0['some'](_0x2e336f=>_0x509ad5['some'](_0x434615=>_0x2e336f['end']['isTouching'](_0x434615['start'])));}_0x1643c7['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c966a,_0x541c7d,_0x2ab4bc)=>{if(!_0x2ab4bc['options']['showSuggestionHighlights'])return;const _0x262880=_0x541c7d['item'];if(!_0x262880)return;const _0x261644=_0x2ab4bc['mapper']['toViewElement'](_0x262880);function _0x113022(_0x4115b3){return Array['isArray'](_0x4115b3)?_0x4115b3:[_0x4115b3];}_0x261644&&'tableCell'===_0x262880['name']&&_0x2385c3(_0x261644,_0x2ab4bc['writer'],(_0x1d3461,_0x435c79,_0x59d480)=>_0x59d480['addClass'](_0x113022(_0x435c79['classes']),_0x1d3461),(_0xcf5c41,_0x263bb4,_0x515fe9)=>_0x515fe9['removeClass'](_0x113022(_0x263bb4['classes']),_0xcf5c41));},{'priority':'highest'}),_0x3ff8e1['descriptionFactory']['registerDescriptionCallback'](_0x1966e1=>{if('insertion'!=_0x1966e1['type']&&'deletion'!=_0x1966e1['type'])return;const _0x2b7b67=_0x1966e1['getContainedElement']();if(null!=_0x2b7b67&&_0x2b7b67['is']('element','table')){if('insertion'==_0x1966e1['type']){const _0x86e28=_0x1966e1['getItems']()['filter'](_0x54af03=>_0x54af03['is']('$textProxy'))['map'](_0x1e28b9=>_0x1e28b9['data']);if(_0x86e28['length'])return{'type':'insertion','content':o(_0x13381a,'*Insert:*\x20%0',o(_0x13381a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x86e28['join']('\x20')+'\x22'))};}if('deletion'==_0x1966e1['type']){const _0x44cecc=_0x1966e1['getItems']()['filter'](_0x11e6d6=>_0x11e6d6['is']('$textProxy'))['map'](_0x4e9d86=>_0x4e9d86['data']);if(_0x44cecc['length'])return{'type':'deletion','content':o(_0x13381a,'*Remove:*\x20%0',o(_0x13381a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x44cecc['join']('\x20')+'\x22'))};}}}),_0x3ff8e1['descriptionFactory']['registerDescriptionCallback'](_0x30fad3=>{if('tableRow'==_0x30fad3['subType']){const _0x123bf1=_0x30fad3['getItems']()['filter'](_0x1a0cac=>_0x1a0cac['is']('$textProxy'))['map'](_0x4db129=>_0x4db129['data']),_0x8d84e7=this['_getSuggestionCoords'](_0x30fad3),_0x28cd4c=_0x8d84e7['maxRow']-_0x8d84e7['minRow']+0x1;if('insertion'==_0x30fad3['type'])return _0x123bf1['length']?{'type':'insertion','content':o(_0x13381a,'*Insert:*\x20%0',o(_0x13381a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x28cd4c,'\x22'+_0x123bf1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x13381a,'*Insert:*\x20%0',o(_0x13381a,'ELEMENT_TABLE_ROW',_0x28cd4c))};if('deletion'==_0x30fad3['type'])return _0x123bf1['length']?{'type':'deletion','content':o(_0x13381a,'*Remove:*\x20%0',o(_0x13381a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x28cd4c,'\x22'+_0x123bf1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x13381a,'*Remove:*\x20%0',o(_0x13381a,'ELEMENT_TABLE_ROW',_0x28cd4c))};}if('tableColumn'==_0x30fad3['subType']){const _0x2d3e43=_0x30fad3['getItems']()['filter'](_0x3dd07f=>_0x3dd07f['is']('$textProxy'))['map'](_0x39ccdc=>_0x39ccdc['data']),_0x4dd383=this['_getSuggestionCoords'](_0x30fad3),_0x5d659a=_0x4dd383['maxColumn']-_0x4dd383['minColumn']+0x1;if('insertion'==_0x30fad3['type'])return _0x2d3e43['length']?{'type':'insertion','content':o(_0x13381a,'*Insert:*\x20%0',o(_0x13381a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5d659a,'\x22'+_0x2d3e43['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x13381a,'*Insert:*\x20%0',o(_0x13381a,'ELEMENT_TABLE_COLUMN',_0x5d659a))};if('deletion'==_0x30fad3['type'])return _0x2d3e43['length']?{'type':'deletion','content':o(_0x13381a,'*Remove:*\x20%0',o(_0x13381a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5d659a,'\x22'+_0x2d3e43['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x13381a,'*Remove:*\x20%0',o(_0x13381a,'ELEMENT_TABLE_COLUMN',_0x5d659a))};}}),_0x3ff8e1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4467e6),_0x3ff8e1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4467e6),_0x3ff8e1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4a9370),_0x3ff8e1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4a9370),_0x3ff8e1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3c7016),_0x3ff8e1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3c7016),_0x3ff8e1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1de922),_0x3ff8e1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1de922);}['_acceptFormatSuggestionCallbackFactory'](){const _0x417157=this['editor'],_0x54d62f=_0x417157['model']['document']['selection'];return(_0x1cd2d1,_0x3381e4)=>{_0x417157['model']['change'](_0x25f61e=>{const {commandName:_0x91dc91,commandParams:_0x2a1f40}=_0x3381e4;let _0xbbed2a=_0x1cd2d1[0x0]['end']['nodeBefore'];_0x2a1f40&&_0x2a1f40[0x0]&&!0x1===_0x2a1f40[0x0]['forceValue']&&(_0xbbed2a=_0x1cd2d1[0x0]['start']['nodeAfter']);const _0x513f3f=_0x25f61e['createRangeIn'](_0xbbed2a);if('$graveyard'==_0x513f3f['root']['rootName'])return;const _0x2b20d1=Array['from'](_0x54d62f['getRanges']())['map'](_0x4c7189=>_0x985c68['fromRange'](_0x4c7189));_0x25f61e['setSelection'](_0x513f3f),_0x417157['commands']['get'](_0x91dc91)['refresh'](),_0x2a1f40['push']({'forceDefaultExecution':!0x0}),_0x417157['execute'](_0x91dc91,..._0x2a1f40);const _0x3fee8b=_0x2b20d1['filter'](_0x35a2ce=>'$graveyard'!=_0x35a2ce['root']['rootName']);_0x3fee8b['length']>0x0&&_0x25f61e['setSelection'](_0x3fee8b);for(const _0x272cfc of _0x2b20d1)_0x272cfc['detach']();});};}['_getCoordsForCells'](_0x110830){const _0x4a4615=this['editor']['plugins']['get']('TableUtils');let _0x8507ea=Number['MAX_SAFE_INTEGER'],_0x330e9a=Number['MIN_SAFE_INTEGER'],_0xabb887=Number['MAX_SAFE_INTEGER'],_0x1c7047=Number['MIN_SAFE_INTEGER'];for(const _0x10a4a1 of _0x110830){if('$graveyard'==_0x10a4a1['root']['rootName'])continue;const {row:_0x1d4173,column:_0x4ef2fc}=_0x4a4615['getCellLocation'](_0x10a4a1),_0x3f2062=_0x10a4a1['hasAttribute']('rowspan')?_0x10a4a1['getAttribute']('rowspan')-0x1:0x0,_0x5ed29a=_0x10a4a1['hasAttribute']('colspan')?_0x10a4a1['getAttribute']('colspan')-0x1:0x0;_0x8507ea=_0x1d4173<_0x8507ea?_0x1d4173:_0x8507ea,_0x330e9a=_0x1d4173+_0x3f2062>_0x330e9a?_0x1d4173+_0x3f2062:_0x330e9a,_0xabb887=_0x4ef2fc<_0xabb887?_0x4ef2fc:_0xabb887,_0x1c7047=_0x4ef2fc+_0x5ed29a>_0x1c7047?_0x4ef2fc+_0x5ed29a:_0x1c7047;}return{'minRow':_0x8507ea,'maxRow':_0x330e9a,'minColumn':_0xabb887,'maxColumn':_0x1c7047};}['_setupColumnsRowsFixing'](){const _0x39ae01=this['editor'],_0x47922d=_0x39ae01['plugins']['get']('TrackChangesEditing'),_0x13ffb7=_0x39ae01['plugins']['get']('TableUtils');_0x39ae01['model']['document']['on']('change:data',()=>{const _0xfa36a7=Array['from'](_0x39ae01['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x390cc6,data:_0x12694}of _0xfa36a7){const {group:_0x23fdc4,id:_0xe9ae89,subType:_0x45b688}=_0x47922d['_splitMarkerName'](_0x390cc6);if('suggestion'!=_0x23fdc4)continue;if(null!=_0x12694['oldRange'])continue;const _0x1aedee=_0x47922d['getSuggestion'](_0xe9ae89);this['_tablePostFixingSubtypes']['includes'](_0x45b688)&&this['_tableSuggestions']['add'](_0x1aedee);}},{'priority':'low'});const _0x131ecb=(_0x54fcab,_0x10154c)=>{let _0x4b6089=!0x1;const _0x436acb=_0x10154c['createRangeOn'](_0x54fcab),_0x1831f3=_0x54fcab['findAncestor']('table'),_0xc2d441=_0x13ffb7['getCellLocation'](_0x54fcab);for(const _0x9aeb6f of this['_tableSuggestions']){const _0x645932=_0x9aeb6f['subType'],_0x2b8ffc=_0x645932['startsWith']('tablePaste'),_0x4505f3=_0x645932['substr'](_0x2b8ffc?0xa:0x5),_0x3f7bfc=_0x4505f3['toLowerCase'](),_0x30b87b=_0x3f7bfc['substr'](0x0,0x3)+'span',_0x90d0d9='min'+_0x4505f3,_0x4eaae1='max'+_0x4505f3;if(!_0x9aeb6f['isInContent'])continue;if(_0x1831f3!=_0x9aeb6f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x9aeb6f['isIntersectingWithRange'](_0x436acb))continue;const _0x3f10b0=_0x54fcab['hasAttribute'](_0x30b87b)?_0x54fcab['getAttribute'](_0x30b87b)-0x1:0x0,_0x9ac0ee=this['_getSuggestionCoords'](_0x9aeb6f),_0x5a0493=_0x9ac0ee[_0x90d0d9],_0x217f3a=_0x9ac0ee[_0x4eaae1];_0x5a0493<=_0xc2d441[_0x3f7bfc]&&_0xc2d441[_0x3f7bfc]+_0x3f10b0<=_0x217f3a&&(_0x9aeb6f['addRange'](_0x436acb),_0x4b6089=!0x0);}return _0x4b6089;};_0x39ae01['model']['document']['registerPostFixer'](_0x535d0d=>{let _0x36ec87=!0x1;for(const _0x3df7a1 of _0x39ae01['model']['document']['differ']['getChanges']())if('insert'==_0x3df7a1['type']){if('tableRow'==_0x3df7a1['name']){for(const _0x3b88b1 of _0x3df7a1['position']['nodeAfter']['getChildren']())_0x36ec87=_0x36ec87||_0x131ecb(_0x3b88b1,_0x535d0d);}else'tableCell'==_0x3df7a1['name']&&(_0x36ec87=_0x36ec87||_0x131ecb(_0x3df7a1['position']['nodeAfter'],_0x535d0d));}return _0x36ec87;});}['_getSuggestionCoords'](_0x1cf6df){return this['_getCoordsForCells'](_0x1cf6df['getRanges']()['map'](_0x136b2b=>_0x136b2b['start']['nodeAfter']));}}function Ne(_0x2ceceb){return Array['from'](new Set(_0x2ceceb)['values']());}class Nt extends _0x2e08d9{static get['requires'](){return[Ct];}['afterInit'](){const _0x5b6297=this['editor'],_0x47313=_0x5b6297['model']['document']['selection'],_0x18f460=_0x5b6297['locale'];if(!_0x5b6297['plugins']['has']('TableEditing'))return;const _0x29814c=_0x5b6297['plugins']['get']('TrackChangesEditing'),_0x141153=_0x5b6297['plugins']['get']('TableUtils'),_0x482168=_0x5b6297['plugins']['get'](Ct);_0x482168['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x29814c['enableCommand']('mergeTableCells',()=>{const _0x392d7d=_0x141153['getSelectionAffectedTableCells'](_0x5b6297['model']['document']['selection']);_0x5b6297['model']['change'](()=>{_0x29814c['markMultiRangeBlockFormat'](_0x392d7d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5b6297['commands']['get']('mergeTableCells')['on']('execute',(_0x13faf0,_0x249335)=>{_0x5b6297['commands']['get']('trackChanges')['value']&&(_0x249335['length']>0x0&&_0x249335[_0x249335['length']-0x1]&&_0x249335[_0x249335['length']-0x1]['forceDefaultExecution']||_0x29814c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x13faf0['stop']());},{'priority':'highest'});for(const _0x30ff1d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x7f5ea4=_0x5b6297['commands']['get'](_0x30ff1d);_0x29814c['enableCommand'](_0x30ff1d,()=>{const _0x22196d=_0x5b6297['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2b5d1b=>_0x2b5d1b['is']('element','tableCell')),_0x33bcd7=_0x7f5ea4['value'];_0x5b6297['model']['change'](()=>{_0x29814c['markMultiRangeBlockFormat']([_0x22196d,_0x33bcd7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4c4f58 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1aa6f7=_0x5b6297['commands']['get'](_0x4c4f58);_0x29814c['enableCommand'](_0x4c4f58,()=>{const _0x1eb0b7=_0x141153['getSelectionAffectedTableCells'](_0x5b6297['model']['document']['selection'])[0x0],_0x5c3d0d=_0x1eb0b7['findAncestor']('table'),{column:_0x3e04f7,row:_0x5ff9ac}=_0x141153['getCellLocation'](_0x1eb0b7);let _0x3a58f4=[];if('horizontally'==_0x1aa6f7['direction']){const _0x2e9641=_0x141153['createTableWalker'](_0x5c3d0d,{'startRow':_0x5ff9ac,'endRow':_0x5ff9ac,'includeAllSlots':!0x0});_0x3a58f4=Array['from'](_0x2e9641)['map'](_0x5ddfe0=>_0x5ddfe0['cell']);}else{const _0x1808c1=_0x141153['createTableWalker'](_0x5c3d0d,{'column':_0x3e04f7,'includeAllSlots':!0x0});_0x3a58f4=Array['from'](_0x1808c1)['map'](_0x21c6db=>_0x21c6db['cell']);}_0x5b6297['model']['change'](_0x2d9b28=>{_0x29814c['markBlockFormat'](_0x2d9b28['createRangeOn'](_0x1eb0b7),{'commandName':_0x4c4f58,'commandParams':[]},_0x3a58f4,_0x4c4f58);});});}_0x29814c['descriptionFactory']['registerDescriptionCallback'](_0x275c7c=>{if('formatBlock'!=_0x275c7c['type']&&'formatInline'!=_0x275c7c['type'])return;const {data:_0x14aff4}=_0x275c7c;return _0x14aff4&&'mergeTableCells'==_0x14aff4['commandName']?{'type':'format','content':o(_0x18f460,'*Merge\x20cells*')}:void 0x0;}),_0x29814c['descriptionFactory']['registerDescriptionCallback'](_0x370894=>{if('formatBlock'!=_0x370894['type']&&'formatInline'!=_0x370894['type'])return;const {data:_0x4c7a8e}=_0x370894;return _0x4c7a8e?'splitTableCellVertically'==_0x4c7a8e['commandName']?{'type':'format','content':o(_0x18f460,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x4c7a8e['commandName']?{'type':'format','content':o(_0x18f460,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3231b9=_0x482168['_acceptFormatSuggestionCallbackFactory']();for(const _0x50534b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x29814c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50534b,'accept',_0x3231b9);for(const _0x43c18c of['splitTableCellVertically','splitTableCellHorizontally'])_0x29814c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x43c18c,'accept',_0x3231b9);_0x29814c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4e3b01=>{_0x5b6297['model']['change'](_0x560a7c=>{const _0x5b8a10=Array['from'](_0x47313['getRanges']())['map'](_0x41eeac=>_0x985c68['fromRange'](_0x41eeac));_0x560a7c['setSelection'](_0x4e3b01),_0x5b6297['commands']['get']('mergeTableCells')['refresh'](),_0x5b6297['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x224644=_0x5b8a10['filter'](_0x2da498=>'$graveyard'!=_0x2da498['root']['rootName']);_0x224644['length']>0x0&&_0x560a7c['setSelection'](_0x224644);for(const _0x15998b of _0x5b8a10)_0x15998b['detach']();});});for(const _0x5036d0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2f2c04=_0x5b6297['commands']['get'](_0x5036d0);_0x2f2c04['on']('set:isEnabled',(_0x58fb92,_0x3fbbdf,_0x1133af)=>{if(_0x1133af){const _0x5b89e7=_0x5b6297['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc409c4=>_0xc409c4['is']('element','tableCell'));this['_areMergableCells'](_0x2f2c04['value'],_0x5b89e7)||(_0x58fb92['return']=!0x1,_0x58fb92['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1d14e0=this['editor']['commands']['get']('mergeTableCells'),_0x1a3c5c=this['editor']['plugins']['get']('TableUtils');if(!_0x1d14e0['isEnabled'])return!0x1;const _0x43ca0b=_0x1a3c5c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0xddf188 of _0x43ca0b)for(const _0x4efd6f of _0x43ca0b)if(_0xddf188!=_0x4efd6f&&!this['_areMergableCells'](_0xddf188,_0x4efd6f))return!0x1;return!0x0;}['_areMergableCells'](_0x5154c3,_0x5e1142){const _0x462b96=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4029c1=this['editor']['model']['createRangeOn'](_0x5154c3),_0x2c0d22=this['editor']['model']['createRangeOn'](_0x5e1142),_0x4609d3=new Set(),_0x127c56=new Set();for(const _0xffcc51 of _0x462b96['getSuggestions']())if(('insertion'==_0xffcc51['type']||'deletion'==_0xffcc51['type']||'mergeTableCells'==_0xffcc51['subType'])&&_0xffcc51['isInContent']){for(const _0x4a116f of _0xffcc51['getRanges']())_0x4a116f['containsRange'](_0x4029c1,!0x0)&&_0x4609d3['add'](_0xffcc51['type']+':'+_0xffcc51['author']['id']),_0x4a116f['containsRange'](_0x2c0d22,!0x0)&&_0x127c56['add'](_0xffcc51['type']+':'+_0xffcc51['author']['id']);}if(_0x4609d3['size']!=_0x127c56['size'])return!0x1;for(const _0x408c7d of _0x4609d3)if(!_0x127c56['has'](_0x408c7d))return!0x1;return!0x0;}}class Dt extends _0x2e08d9{static get['requires'](){return[Ct];}['afterInit'](){const _0x5daa45=this['editor'];if(!_0x5daa45['plugins']['has']('TableEditing'))return;const _0x4cd64e=_0x5daa45['locale'],_0x1c01f7=_0x5daa45['plugins']['get']('TrackChangesEditing');_0x1c01f7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1c01f7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1c01f7['registerBlockAttribute']('headingRows'),_0x1c01f7['registerBlockAttribute']('headingColumns'),_0x1c01f7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4cd64e,'FORMAT_HEADER_ROW')),_0x1c01f7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4cd64e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x271d69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cca99=this['editor']['plugins']['get']('TableUtils'),_0x1cd1b0=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1afb7e({showActiveMarker:_0x4f06f0=!0x0,setDataAttribute:_0x199aea=!0x0}={}){return(_0x363a9b,_0x1ba80c,_0x378a89)=>{const {type:_0x5edd7f,id:_0x1e1b86}=_0x271d69['_splitMarkerName'](_0x1ba80c['markerName']),_0x2af540=_0x271d69['getSuggestion'](_0x1e1b86),_0x58aba0=_0x2af540['data'];if('formatBlock'!=_0x2af540['type']||!_0x58aba0||'setTableColumnHeader'!=_0x58aba0['commandName'])return;if(_0x1ba80c['item'])return void _0x363a9b['stop']();if(!_0x378a89['consumable']['consume'](_0x1ba80c['markerRange'],_0x363a9b['name']))return;const _0x4b9a6d=_0x1ba80c['markerRange']['start']['nodeAfter'],_0x2fa678=_0x1ba80c['markerRange']['end']['nodeBefore'],_0xd84ff3=_0x4b9a6d['parent']['parent'],{column:_0xb4af58}=_0x2cca99['getCellLocation'](_0x4b9a6d),{column:_0x65238b}=_0x2cca99['getCellLocation'](_0x2fa678);for(let _0x5c9f46=_0xb4af58;_0x5c9f46<=_0x65238b;_0x5c9f46++){const _0x490e2e=_0x2cca99['createTableWalker'](_0xd84ff3,{'column':_0x5c9f46,'includeAllSlots':!0x1});for(const _0x1ae800 of _0x490e2e){const _0x1c3d91=_0x1ae800['cell'],_0x41b516=_0x378a89['mapper']['toViewElement'](_0x1c3d91);_0x378a89['writer']['addClass']('ck-suggestion-marker-'+_0x5edd7f,_0x41b516),_0x199aea&&_0x378a89['writer']['setAttribute']('data-suggestion',_0x1e1b86,_0x41b516),_0x378a89['mapper']['bindElementToMarker'](_0x41b516,_0x1ba80c['markerName']),_0x4f06f0&&(_0x271d69['activeMarkers']['includes'](_0x1ba80c['markerName'])?_0x378a89['writer']['addClass']('ck-suggestion-marker--active',_0x41b516):_0x378a89['writer']['removeClass']('ck-suggestion-marker--active',_0x41b516));}}};}_0x271d69['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1cd1b0),_0x271d69['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1cd1b0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1afb7e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x483367,_0x3b75fd,_0x1d793f)=>{_0x1d793f['options']['showSuggestionHighlights']&&_0x1afb7e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x483367,_0x3b75fd,_0x1d793f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xe10a88,_0x4c3a41,_0x40d5e1)=>{const {type:_0x43a4fe,id:_0x5953af}=_0x271d69['_splitMarkerName'](_0x4c3a41['markerName']),_0x57fb74=_0x271d69['getSuggestion'](_0x5953af),_0x481d05=_0x57fb74['data'];if('formatBlock'!=_0x57fb74['type']||!_0x481d05||'setTableColumnHeader'!=_0x481d05['commandName'])return;const _0x3e7231=_0x40d5e1['mapper']['markerNameToElements'](_0x4c3a41['markerName']);if(_0x3e7231){for(const _0x28c17f of _0x3e7231)_0x40d5e1['writer']['removeClass']('ck-suggestion-marker-'+_0x43a4fe,_0x28c17f),_0x40d5e1['writer']['removeClass']('ck-suggestion-marker--active',_0x28c17f),_0x40d5e1['writer']['removeAttribute']('data-suggestion',_0x28c17f),_0x40d5e1['mapper']['unbindElementFromMarkerName'](_0x28c17f,_0x4c3a41['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dda8b=this['editor'],_0xd82f37=_0x1dda8b['locale'];function _0x5e6a6d(_0x38bf40){return{'type':'format','content':o(_0xd82f37,'*Format:*\x20%0',_0x38bf40)};}_0x1dda8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ba447=>{if('formatBlock'!=_0x3ba447['type'])return;const {data:_0x49902b}=_0x3ba447;if(_0x49902b){if('setTableRowHeader'==_0x49902b['commandName']){const _0x3f3d8e=_0x49902b['commandParams'][0x0]['forceValue'];return _0x5e6a6d(o(_0xd82f37,_0x3f3d8e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x49902b['commandName']){const _0x431f36=_0x49902b['commandParams'][0x0]['forceValue'];return _0x5e6a6d(o(_0xd82f37,_0x431f36?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x335394=>[_0x335394,null]));class Mt extends _0x2e08d9{static get['requires'](){return[Ct];}['afterInit'](){const _0x56f47f=this['editor'];if(!_0x56f47f['plugins']['has']('TableClipboard'))return;const _0x18e47d=_0x56f47f['plugins']['get']('TrackChangesEditing'),_0x20cb3d=_0x56f47f['plugins']['get']('TableUtils'),_0x444235=_0x56f47f['plugins']['get'](Ct),_0x41135c=_0x56f47f['plugins']['get']('TableClipboard');_0x444235['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x56f47f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x56f47f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1a287b=null;_0x56f47f['model']['on']('insertContent',(_0x301bfa,_0x18445f)=>{const [_0x54d34f,_0x732967]=_0x18445f,_0x51f716=_0x18445f[_0x18445f['length']-0x1];_0x51f716&&_0x51f716['forceDefaultExecution']||_0x18e47d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3e425d,_0x101223,_0x1008b8,_0x2f764c,_0x5ed262){if(_0x101223&&!_0x101223['is']('documentSelection'))return!0x1;const _0x2acecf=_0x5ed262['getTableIfOnlyTableInContent'](_0x3e425d,_0x1008b8);if(!_0x2acecf||!Ue(_0x2acecf,void 0x0,_0x2f764c))return!0x1;const _0x3d7a66=_0x2f764c['getSelectionAffectedTableCells'](_0x1008b8['document']['selection']);if(!_0x3d7a66['length'])return!0x1;const _0x21a6c8=_0x3d7a66[0x0]['findAncestor']('table'),_0x10e049=_0x2f764c['getRowIndexes'](_0x3d7a66),_0x224500=_0x2f764c['getColumnIndexes'](_0x3d7a66),_0x53344d={'startRow':_0x10e049['first'],'endRow':_0x10e049['last'],'startColumn':_0x224500['first'],'endColumn':_0x224500['last']};return 0x1==_0x3d7a66['length']&&(_0x53344d['endRow']+=_0x2f764c['getRows'](_0x2acecf)-0x1,_0x53344d['endColumn']+=_0x2f764c['getColumns'](_0x2acecf)-0x1),Ue(_0x21a6c8,_0x53344d,_0x2f764c);}(_0x54d34f,_0x732967,_0x56f47f['model'],_0x20cb3d,_0x41135c)&&(_0x301bfa['stop'](),_0x1a287b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x56f47f['model']['change'](()=>{_0x56f47f['model']['insertContent'](_0x18445f[0x0],_0x18445f[0x1],_0x18445f[0x2],{'forceDefaultExecution':!0x0});const _0x574cda=_0x392169(),{rowInsertionRanges:_0x30b62f,columnInsertionRanges:_0xa5e129,insertionRanges:_0x3a4987,deletionRanges:_0x68536d,cells:_0x30256c}=_0x1a287b;_0x30b62f['length']&&_0x18e47d['markMultiRangeInsertion'](_0x30b62f,'tablePasteRow',{'tablePasteChainId':_0x574cda}),_0xa5e129['length']&&_0x18e47d['markMultiRangeInsertion'](_0xa5e129,'tablePasteColumn',{'tablePasteChainId':_0x574cda}),_0x3a4987['length']&&(_0x18e47d['markMultiRangeInsertion'](_0x3a4987,'tablePaste',{'tablePasteChainId':_0x574cda,'skipNestingCheck':!0x0}),_0x3a4987['forEach'](_0x58873e=>_0x58873e['detach']?.())),_0x68536d['length']&&(_0x18e47d['markMultiRangeDeletion'](_0x68536d,'tablePaste',{'tablePasteChainId':_0x574cda,'skipNestingCheck':!0x0}),_0x68536d['forEach'](_0x277773=>_0x277773['detach']?.()));const _0x3058c9=_0x18e47d['markMultiRangeBlockFormat'](_0x30256c['map'](({element:_0x4dd930})=>_0x4dd930),{'formatGroupId':_0x392169()},[],'tablePasteCell',{'tablePasteChainId':_0x574cda});if(_0x3058c9){const _0x4ed3b2=_0x3058c9['getMarkers'](),_0x30cbfa=[];for(const {element:_0x5e4b6e,attributes:_0x57710b}of _0x30256c){if(!_0x57710b)continue;const _0x1d4105=_0x56f47f['model']['createRangeOn'](_0x5e4b6e),_0xb420ff=_0x4ed3b2['find'](_0x2b087e=>_0x2b087e['getRange']()['isEqual'](_0x1d4105));_0xb420ff&&_0x30cbfa['push']([_0xb420ff['name'],_0x57710b]);}_0x30cbfa['length']&&_0x3058c9['setAttribute']('markerAttributes',Object['fromEntries'](_0x30cbfa));}_0x1a287b=null;}));},{'priority':_0x781394['high']+0xa}),_0x56f47f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5642e7,_0x5c972b)=>{const [_0x2e7453,_0x4a8d88,,_0x3362b4]=_0x5c972b;if(!_0x1a287b)return;_0x5642e7['stop']();const _0x5c6da6=_0x2e7453['cell'],_0x20732d=_0x4a8d88,_0x1127ea=Oe(_0x5c6da6),_0x2e5e4d=Oe(_0x20732d);_0x5642e7['return']=_0x5c6da6;let _0x2c1a71=null,_0x496d61=null;if(_0x2e5e4d||_0x1127ea){if(_0x1127ea&&!_0x2e5e4d){_0x3362b4['remove'](_0x5c6da6['getChild'](0x0));for(const _0x4140f7 of Array['from'](_0x20732d['getChildren']()))_0x3362b4['insert'](_0x4140f7,_0x5c6da6,'end');const _0xaeef6b=_0x1a287b['rowInsertionIndexes']['includes'](_0x2e7453['row']),_0x1efe6a=_0x1a287b['columnInsertionIndexes']['includes'](_0x2e7453['column']);_0xaeef6b||_0x1efe6a||(_0x2c1a71=_0x985c68['fromRange'](_0x3362b4['createRangeIn'](_0x5c6da6)));}else _0x2e5e4d&&!_0x1127ea&&(_0x496d61=_0x3362b4['createRangeIn'](_0x5c6da6));}else{const _0x10d7ba=_0x3362b4['createElement']('tableCellSuggestion'),_0x1683a6=_0x3362b4['createElement']('tableCellSuggestion');_0x3362b4['wrap'](_0x3362b4['createRangeIn'](_0x5c6da6),_0x1683a6),_0x3362b4['insert'](_0x10d7ba,_0x5c6da6,0x0);for(const _0x18ea14 of Array['from'](_0x20732d['getChildren']()))_0x3362b4['insert'](_0x18ea14,_0x10d7ba,'end');_0x2c1a71=_0x985c68['fromRange'](_0x3362b4['createRangeOn'](_0x10d7ba)),_0x496d61=_0x985c68['fromRange'](_0x3362b4['createRangeOn'](_0x1683a6));}const _0xd3c27a=Array['from'](_0x20732d['getAttributes']())['filter'](([_0x64414b])=>Be['includes'](_0x64414b));_0x1a287b['cells']['push']({'element':_0x5c6da6,'attributes':_0xd3c27a['length']?Object['fromEntries'](_0xd3c27a):null}),_0x2c1a71&&_0x1a287b['insertionRanges']['push'](_0x2c1a71),_0x496d61&&_0x1a287b['deletionRanges']['push'](_0x496d61);},{'priority':'high'}),_0x20cb3d['on']('insertColumns',(_0x46c906,_0x14456d)=>{const [_0x1a6bb1,_0x58e81b={}]=_0x14456d;if(!_0x1a287b)return;const _0x2ce898=_0x58e81b['at']||0x0,_0x48ca7b=_0x58e81b['columns']||0x1;_0x1a287b['columnInsertionIndexes']=new Array(_0x48ca7b)['fill'](_0x2ce898)['map']((_0x9eb2f9,_0x1acbe2)=>_0x9eb2f9+_0x1acbe2);for(const {cell:_0xe0df00}of _0x20cb3d['createTableWalker'](_0x1a6bb1,{'startColumn':_0x2ce898,'endColumn':_0x2ce898+_0x48ca7b-0x1}))_0x1a287b['columnInsertionRanges']['push'](_0x56f47f['model']['createRangeOn'](_0xe0df00));},{'priority':'low'}),_0x20cb3d['on']('insertRows',(_0x477eb8,_0x535b0a)=>{const [_0x1a8a34,_0x14fbe5={}]=_0x535b0a;if(!_0x1a287b)return;const _0x352ffc=_0x14fbe5['at']||0x0,_0x52f683=_0x14fbe5['rows']||0x1;_0x1a287b['rowInsertionIndexes']=new Array(_0x52f683)['fill'](_0x352ffc)['map']((_0x681436,_0x1b55f3)=>_0x681436+_0x1b55f3);for(const {cell:_0x205121}of _0x20cb3d['createTableWalker'](_0x1a8a34,{'startRow':_0x352ffc,'endRow':_0x352ffc+_0x52f683-0x1}))_0x1a287b['rowInsertionRanges']['push'](_0x56f47f['model']['createRangeOn'](_0x205121));},{'priority':'low'}),_0x18e47d['descriptionFactory']['registerDescriptionCallback'](_0x641bc2=>{if(_0x641bc2['subType']&&_0x641bc2['subType']['startsWith']('tablePaste'))return _0x641bc2['previous']?{}:{'type':'insertion','content':o(_0x56f47f['locale'],'*Replace\x20table\x20cells*')};});const _0x1aed66=()=>!0x1;for(const _0x58e28a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x18e47d['_suggestionFactory']['registerCustomCallback']('insertion',_0x58e28a,'join',_0x1aed66),_0x18e47d['_suggestionFactory']['registerCustomCallback']('deletion',_0x58e28a,'join',_0x1aed66),_0x18e47d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58e28a,'join',_0x1aed66);_0x18e47d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1aed66),_0x18e47d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xcc7029,_0x51aa61,_0x59e118)=>{const _0x4f55d0=_0xcc7029['map'](_0x158da5=>_0x158da5['getContainedElement']())['filter'](_0x702044=>_0x702044),_0x5198b4=new Map(_0x4f55d0['map'](_0x4ae721=>[_0x4ae721,null]));if(_0x1a287b){for(const {element:_0x4f16c5,attributes:_0x211a52}of _0x1a287b['cells'])_0x211a52&&_0x5198b4['set'](_0x4f16c5,_0x211a52);}else{if(_0x59e118&&_0x59e118['markerAttributes'])for(const [_0x2d13b7,_0x50c13a]of Object['entries'](_0x59e118['markerAttributes'])){const _0x4acf39=_0x56f47f['model']['markers']['get'](_0x2d13b7),_0x1551bd=_0x4acf39?_0x4acf39['getRange']()['getContainedElement']():null;_0x1551bd&&_0x5198b4['set'](_0x1551bd,_0x50c13a);}}_0x56f47f['model']['change'](_0x549f55=>{for(const [_0x116a7e,_0x846d4b]of _0x5198b4)_0x549f55['setAttributes']({...xe,..._0x846d4b},_0x116a7e);});});const _0xa3d9ec=(_0x3c94cb,_0x30377f)=>{_0x18e47d['_suggestionFactory']['registerCustomCallback'](_0x3c94cb,'tablePaste',_0x30377f,(_0x3db9e6,_0x229094,_0x109725)=>{_0x56f47f['model']['change'](_0x4aae66=>{const _0x16bb16=[];for(const _0x17bda4 of _0x3db9e6){const _0x37468=_0x17bda4['start']['nodeAfter'];_0x37468['is']('element','tableCellSuggestion')&&_0x16bb16['push'](_0x37468);}_0x18e47d['_suggestionFactory']['getSuggestionCallback'](_0x3c94cb,null,_0x30377f)(_0x3db9e6,_0x229094,_0x109725);for(const _0x402c16 of _0x16bb16)'$graveyard'!=_0x402c16['root']['rootName']&&_0x4aae66['unwrap'](_0x402c16);});});};_0xa3d9ec('insertion','accept'),_0xa3d9ec('insertion','discard'),_0xa3d9ec('deletion','accept'),_0xa3d9ec('deletion','discard'),_0x18e47d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2521ff=>{const _0x276fad=_0x2521ff['map'](_0x2f242b=>_0x2f242b['getContainedElement']()),_0x30b4d8=_0x276fad[0x0]['findAncestor']('table'),{minRow:_0xb16801,maxRow:_0x4f4f19}=_0x444235['_getCoordsForCells'](_0x276fad);_0x20cb3d['removeRows'](_0x30b4d8,{'at':_0xb16801,'rows':_0x4f4f19-_0xb16801+0x1});}),_0x18e47d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1111c2=>{const _0x880d65=_0x1111c2['map'](_0x5ca172=>_0x5ca172['getContainedElement']()),_0x82fd91=_0x880d65[0x0]['findAncestor']('table'),{minColumn:_0x57bbd4,maxColumn:_0x1c6430}=_0x444235['_getCoordsForCells'](_0x880d65);_0x20cb3d['removeColumns'](_0x82fd91,{'at':_0x57bbd4,'columns':_0x1c6430-_0x57bbd4+0x1});});const _0x473eb2=(_0x312dac,_0x466326)=>{if(!_0x466326['subType']||!_0x466326['subType']['startsWith']('tablePaste'))return;const _0xc95cb1=_0x466326['attributes']['tablePasteChainId'],_0x404fb4=_0x18e47d['getSuggestions']()['filter'](_0x2c6579=>_0x2c6579['isInContent']&&_0x2c6579['attributes']&&_0x2c6579['attributes']['tablePasteChainId']==_0xc95cb1);_0x404fb4['length']&&_0x466326['getAllAdjacentSuggestions']()['length']!=_0x404fb4['length']&&_0x404fb4['reduce']((_0x505a41,_0x408a49)=>(_0x505a41['next']=_0x408a49,_0x408a49['previous']=_0x505a41,_0x408a49));};function _0x518d75(_0x139ba9,_0x51036e=!0x0){const {id:_0x1a5c59,authorId:_0x7eab9}=_0x18e47d['_splitMarkerName'](_0x139ba9['markerName']),_0xc11f13=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3f58ab=_0x18e47d['activeMarkers']['includes'](_0x139ba9['markerName']);return _0x3f58ab&&_0xc11f13['push']('ck-suggestion-marker--active'),{'classes':_0xc11f13,'attributes':{'data-suggestion':_0x1a5c59,'data-author-id':_0x7eab9},'priority':_0x3f58ab&&_0x51036e?0xbc2:0xbb8};}_0x18e47d['on']('suggestionLoaded',_0x473eb2,{'priority':'high'}),_0x18e47d['on']('suggestionUnloaded',_0x473eb2,{'priority':'high'}),_0x56f47f['model']['document']['registerPostFixer'](()=>{let _0x57d8ef=!0x1;const _0x49baea=Array['from'](_0x56f47f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x52ca06,data:_0x3ed055}of _0x49baea){const {group:_0x54d9ef,type:_0xdf5352,id:_0x5c0849}=_0x18e47d['_splitMarkerName'](_0x52ca06);if('suggestion'!=_0x54d9ef||'deletion'!=_0xdf5352||_0x3ed055['oldRange'])continue;if(!_0x18e47d['hasSuggestion'](_0x5c0849))continue;const _0x24c1e5=_0x18e47d['getSuggestion'](_0x5c0849)['getRanges'](),_0x1db6d5=_0x56f47f['plugins']['get']('Users')['me'];for(const _0x484606 of _0x18e47d['getSuggestions']()){if(!_0x484606['isInContent']||_0x484606['author']!=_0x1db6d5)continue;if('formatBlock'!=_0x484606['type']||'tablePasteCell'!=_0x484606['subType'])continue;if(_0x484606['getRanges']()['every'](_0x13425b=>_0x24c1e5['some'](_0x85b70d=>_0x85b70d['containsRange'](_0x13425b,!0x0)))){for(const _0xf91160 of _0x484606['getAllAdjacentSuggestions']())_0xf91160['isInContent']&&(_0xf91160['discard'](),_0x57d8ef=!0x0);}}}return _0x57d8ef;}),_0x56f47f['model']['document']['registerPostFixer'](_0x4587cc=>{const _0x1864be=_0x56f47f['commands']['get']('redo');if(!_0x1864be||!_0x1864be['_createdBatches']['has'](_0x4587cc['batch']))return!0x1;let _0x1baf4c=!0x1;const _0x330780=_0x56f47f['plugins']['get']('Users')['me'],_0x9004d8=_0x56f47f['model']['document']['differ']['getChanges'](),_0x30fd21=Array['from'](_0x56f47f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x27c715,data:_0x466ed7})=>{const {group:_0xbd2be,subType:_0x1aaa33,authorId:_0x3315f4}=_0x18e47d['_splitMarkerName'](_0x27c715);return'suggestion'==_0xbd2be&&'tablePaste'==_0x1aaa33&&_0x3315f4==_0x330780['id']&&!_0x466ed7['oldRange'];});for(const _0x242733 of _0x9004d8){if('insert'!=_0x242733['type']||'tableCellSuggestion'!=_0x242733['name']||0x1!=_0x242733['length'])continue;const _0x30ee8b=_0x4587cc['createRange'](_0x242733['position'],_0x242733['position']['getShiftedBy'](0x1));if(!_0x30fd21['find'](({data:_0x5793ba})=>_0x5793ba['newRange']['isEqual'](_0x30ee8b))){for(const {name:_0x2320db,data:_0x414d4b}of _0x30fd21)if(_0x30ee8b['containsRange'](_0x414d4b['newRange'])){_0x4587cc['updateMarker'](_0x2320db,{'range':_0x30ee8b}),_0x1baf4c=!0x0;break;}}}return _0x1baf4c;}),_0x56f47f['model']['document']['registerPostFixer'](_0x39f551=>{let _0x461dd8=!0x1;const _0x58e0d1=_0x56f47f['plugins']['get']('Users')['me'],_0xa29c14=_0x18e47d['getSuggestions']()['filter'](_0x51a01b=>_0x51a01b['isInContent']&&_0x51a01b['author']==_0x58e0d1),_0x33bcdd=new Set(),_0x55d890=new Set();for(const _0x5c9a6e of _0xa29c14)if('tablePaste'==_0x5c9a6e['subType'])for(const _0x553bba of _0x5c9a6e['getMarkers']()){const _0x20cc8a=_0x553bba['getRange']()['getContainedElement']();if(_0x20cc8a){if(_0x20cc8a['is']('element','tableCellSuggestion')&&Oe(_0x20cc8a)){_0x5c9a6e['removeMarker'](_0x553bba['name']),_0x33bcdd['add'](_0x20cc8a),_0x461dd8=!0x0;const _0x384833=_0x20cc8a['nextSibling'],_0x49ab0f=_0x20cc8a['previousSibling'],_0x29e82e=_0x384833&&_0x384833['is']('element','tableCellSuggestion'),_0x7c106a=_0x49ab0f&&_0x49ab0f['is']('element','tableCellSuggestion');_0x29e82e&&!_0x33bcdd['has'](_0x384833)&&_0x55d890['add'](_0x384833),_0x7c106a&&!_0x33bcdd['has'](_0x49ab0f)&&_0x55d890['add'](_0x49ab0f);}else _0x20cc8a['is']('element','paragraph')&&_0x20cc8a['isEmpty']&&(_0x5c9a6e['removeMarker'](_0x553bba['name']),_0x461dd8=!0x0);}}else{if('tablePasteCell'==_0x5c9a6e['subType']){if(!_0x5c9a6e['attributes']||!_0x5c9a6e['attributes']['tablePasteChainId'])continue;const _0x19f083=_0x5c9a6e['attributes']['markerAttributes'];if(_0x19f083&&Object['keys'](_0x19f083)['length'])continue;const _0x4b1f02=_0x5c9a6e['attributes']['tablePasteChainId'];let _0x361f1d=!0x0,_0x456a6e=!0x0;for(const _0x48b3a0 of _0xa29c14)if(_0x48b3a0['subType']&&_0x48b3a0['subType']['startsWith']('tablePaste')){if(!_0x48b3a0['attributes']['tablePasteChainId']){_0x456a6e=!0x1;break;}if(_0x48b3a0['id']!=_0x5c9a6e['id']&&_0x48b3a0['attributes']['tablePasteChainId']==_0x4b1f02){_0x361f1d=!0x1;break;}}_0x456a6e&&_0x361f1d&&(_0x5c9a6e['removeMarkers'](),_0x461dd8=!0x0);}}for(const _0x3093ad of _0x33bcdd)_0x39f551['remove'](_0x3093ad);for(const _0x456acd of _0x55d890)_0x39f551['unwrap'](_0x456acd);return _0x461dd8;}),_0x56f47f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1f4fb3=>_0x518d75(_0x1f4fb3),'converterPriority':'high'}),_0x56f47f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4aac8a,_0x582d4c)=>_0x582d4c['options']['showSuggestionHighlights']?_0x518d75(_0x4aac8a,!0x1):null,'converterPriority':'high'});const _0x3a0792=_0x56f47f['editing']['view'];this['listenTo'](_0x3a0792['document'],'clipboardOutput',(_0x10a2d2,_0x1db97e)=>{const _0x59b99b=[];for(const _0x3b5201 of _0x3a0792['createRangeIn'](_0x1db97e['content'])['getItems']())_0x3b5201['is']('element','suggestion-td')&&_0x59b99b['push'](_0x3b5201);_0x3a0792['change'](_0x88cd5b=>{for(const _0x18df90 of _0x59b99b)_0x88cd5b['move'](_0x88cd5b['createRangeIn'](_0x18df90),_0x88cd5b['createPositionBefore'](_0x18df90)),_0x88cd5b['remove'](_0x18df90);});});}}function Oe(_0x24a638){if(_0x24a638['isEmpty'])return!0x0;const _0x1ae158=_0x24a638['getChild'](0x0);return _0x1ae158['is']('element','paragraph')&&_0x1ae158['isEmpty'];}function Ue(_0x2915b5,_0x326197={},_0x382704){for(const {isAnchor:_0xf344f4,cellHeight:_0x578ce6,cellWidth:_0x44e15b}of _0x382704['createTableWalker'](_0x2915b5,{'includeAllSlots':!0x0,..._0x326197}))if(!_0xf344f4||0x1!=_0x578ce6||0x1!=_0x44e15b)return!0x1;return!0x0;}class $t extends _0x2e08d9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xc36b94=this['editor']['plugins']['get']('TrackChangesEditing');_0xc36b94['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xc36b94['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xc36b94['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc36b94['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xc36b94['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xc36b94['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4caf3b,_0x524e33){const _0x2cd52f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1655db=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x160185=_0x524e33['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3a8be4=_0x1655db['getColumnGroupElement'](_0x160185);let _0xe89f6e=_0x3a8be4?_0x1655db['getTableColumnsWidths'](_0x3a8be4):null,_0x5ce9c2=_0x160185['getAttribute']('tableWidth')||null;const _0x60b999=_0x524e33['tableWidth']||_0x5ce9c2,_0x1206d2=_0x524e33['columnWidths']||_0xe89f6e,_0x2394aa=this['editor']['plugins']['get']('Users')['me'];for(const _0x156e0a of _0x2cd52f['getSuggestions']()){const _0x2eb6eb=_0x156e0a['getContainedElement']();if('resizeTable'===_0x156e0a['subType']&&_0x2eb6eb===_0x160185){_0x156e0a['author']!==_0x2394aa&&_0x156e0a['discard']();const _0x4d717a=_0x156e0a['data']['commandParams'];_0x5ce9c2=_0x4d717a[0x0]['tableWidth'],_0xe89f6e=_0x4d717a[0x0]['columnWidths'];break;}}_0x4caf3b({'table':_0x160185,'tableWidth':_0x60b999,'columnWidths':_0x1206d2}),_0x2cd52f['markBlockFormat'](_0x160185,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5ce9c2,'columnWidths':_0xe89f6e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x33c4f0){if('formatBlock'!=_0x33c4f0['type']&&'formatInline'!=_0x33c4f0['type'])return;const {data:_0x432e6e}=_0x33c4f0;if(_0x432e6e&&'resizeTable'===_0x432e6e['formatGroupId']){const _0xa7bff0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xa7bff0)};}}}class Bt extends _0x2e08d9{['afterInit'](){const _0x28e07b=this['editor'];_0x28e07b['plugins']['has']('Template')&&_0x28e07b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x2e08d9{['afterInit'](){const _0x17c689=this['editor'];if(!_0x17c689['commands']['get']('insertTableOfContents'))return;_0x17c689['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x24c142=_0x17c689['plugins']['get']('TrackChangesEditing'),_0xebec5e=_0x17c689['locale'];_0x24c142['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2dba8b=>o(_0xebec5e,'ELEMENT_TABLE_OF_CONTENTS',_0x2dba8b));}}class Rt extends _0x2e08d9{['afterInit'](){const _0x9e0e7b=this['editor'];if(!_0x9e0e7b['plugins']['has']('Title'))return;const _0x29da7f=_0x9e0e7b['plugins']['get']('TrackChangesEditing');_0x29da7f['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x9e0e7b['locale'],'ELEMENT_TITLE')),_0x9e0e7b['model']['document']['registerPostFixer'](_0x508cfc=>{let _0x2e9cc7=!0x1;const _0x41bb3c=Array['from'](_0x9e0e7b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x53d19a,data:_0x1602f5}of _0x41bb3c){const {group:_0x2d08da}=_0x29da7f['_splitMarkerName'](_0x53d19a);if('suggestion'!==_0x2d08da||!_0x1602f5['newRange'])continue;const _0x19f765=_0x1602f5['newRange'],_0x4c852e=_0x19f765['end']['nodeBefore'];if(!_0x4c852e||!_0x4c852e['is']('element','title-content'))continue;if(!_0x19f765['start']['isTouching'](_0x19f765['end']))continue;const _0x493bbb=_0x9e0e7b['model']['schema']['getNearestSelectionRange'](_0x19f765['end'],'forward');if(_0x493bbb&&_0x493bbb['isCollapsed']){const _0x3537af=_0x508cfc['createRange'](_0x19f765['start'],_0x493bbb['start']);_0x3537af['isEqual'](_0x19f765)||(_0x508cfc['updateMarker'](_0x53d19a,{'range':_0x3537af}),_0x2e9cc7=!0x0);}_0x2e9cc7||(_0x508cfc['removeMarker'](_0x53d19a),_0x2e9cc7=!0x0);}return _0x2e9cc7;});}}class Tt extends _0x2e08d9{['afterInit'](){const _0x5dcfb6=this['editor'],_0x4f8ff5=_0x5dcfb6['plugins']['get']('TrackChangesEditing');_0x5dcfb6['plugins']['has']('Uploadcare')&&(_0x4f8ff5['enableCommand']('uploadcare'),_0x5dcfb6['plugins']['has']('UploadcareImageEdit')&&(_0x4f8ff5['enableCommand']('uploadcareImageEdit'),_0x4f8ff5['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4f8ff5['registerBlockAttribute']('uploadcareImageId'),_0x4f8ff5['descriptionFactory']['registerDescriptionCallback'](_0x52e232=>{if('attribute'!=_0x52e232['type'])return;const {data:_0x3d2a3f}=_0x52e232;return _0x3d2a3f&&'uploadcareImageId'==_0x3d2a3f['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x2e08d9{['afterInit'](){const _0x519e92=this['editor'],_0x386abb=_0x519e92['plugins']['get']('TrackChangesEditing');_0x519e92['plugins']['has']('UndoEditing')&&(_0x386abb['enableCommand']('undo'),_0x386abb['enableCommand']('redo'));}}class Et extends _0x2e08d9{static get['requires'](){return[Ct];}['afterInit'](){const _0x403794=this['editor'];if(!_0x403794['plugins']['has']('TableCaptionEditing'))return;_0x403794['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x2e08d9{['tableProperties'];['tableCellProperties'];constructor(_0x4225eb){super(_0x4225eb),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 _0x359d53=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x354e31 of this['tableProperties'])_0x359d53['enableCommand'](_0x354e31,(_0x2b0763,_0x3e7438)=>{const _0x149db4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x354e31,[_0x149db4],this['tableProperties'],'tableProperties',_0x2b0763,_0x3e7438);});_0x359d53['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x359d53['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x359d53['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x822d71,_0x56d87c)=>this['handleDiscardAction'](this['tableProperties'],_0x822d71,_0x56d87c)),_0x359d53['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5d2d49 of this['tableCellProperties'])_0x359d53['enableCommand'](_0x5d2d49,(_0x50f73c,_0x5919e4)=>{const _0x120628=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5d2d49,_0x120628,this['tableCellProperties'],'tableCellProperties',_0x50f73c,_0x5919e4);});_0x359d53['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x359d53['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x359d53['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3d2eca,_0x4f6b91)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3d2eca,_0x4f6b91)),_0x359d53['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x359d53['descriptionFactory']['registerDescriptionCallback'](_0x3b8799=>this['handleSuggestionDescription'](_0x3b8799));}['_handlePropertyChange'](_0x17784a,_0xb5b6cb,_0x3d50e4,_0x20f587,_0x55874b,_0x2140ed){const _0x4a7b99=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2140ed['batch'],()=>{for(const _0x33fce of _0xb5b6cb){if(this['_getSuggestion'](_0x33fce,_0x20f587))_0x55874b(_0x2140ed);else{const _0x3258ab={};for(const _0x50c0db of _0x3d50e4){const _0x59d970=_0x33fce['getAttribute'](_0x50c0db);void 0x0!==_0x59d970&&(_0x3258ab[_0x50c0db]=_0x59d970);}_0x55874b(_0x2140ed),_0x4a7b99['markBlockFormat'](_0x33fce,{'commandParams':[_0x3258ab]},[],_0x20f587);}}});}['handleDiscardAction'](_0x1bdef7,_0x45610c,_0x156261){const _0x5a310b=_0x45610c[0x0]['start']['nodeAfter'],_0x1de7ba=_0x156261['commandParams'][0x0];this['editor']['model']['change'](_0x59f24f=>{for(const _0x4461ae of _0x1bdef7)void 0x0!==_0x1de7ba[_0x4461ae]?_0x59f24f['setAttribute'](_0x4461ae,_0x1de7ba[_0x4461ae],_0x5a310b):_0x59f24f['removeAttribute'](_0x4461ae,_0x5a310b);});}['handleSuggestionDescription'](_0x34fb24){if(_0x34fb24['data'])switch(_0x34fb24['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'](_0xdf33c8,_0x302575){const _0x9539ed=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x52e936 of _0x9539ed['getSuggestions']({'skipNotAttached':!0x0})){const _0x334493=_0x52e936['getContainedElement']();if(_0x52e936['subType']===_0x302575&&_0x334493===_0xdf33c8)return _0x52e936;}return null;}}const m='$elementName';class p extends _0x2e08d9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1a26af,_0x1aad59,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x33505d){super(_0x33505d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4da5bd,_0x3ada7d,_0x4e86f3,_0x4fdc47)=>{this['_model']['change'](()=>{for(const _0x603b84 of[..._0x4fdc47,..._0x4e86f3])this['_model']['markers']['has'](_0x603b84)&&_0x33505d['editing']['reconvertMarker'](_0x603b84);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x33505d['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(),_0x33505d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x33505d['config']['get']('trackChanges.trackFormatChanges'),_0x33505d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x33505d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x33505d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1b108b=this['editor'],_0x4f3c65=(_0x50cf1c,_0x1e4f70)=>{if('attribute'!=_0x50cf1c)return'ck-suggestion-marker-'+_0x50cf1c;const _0x586a94=_0x1e4f70['split']('|')[0x0];return this['_isBlockAttribute'](_0x586a94)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1b108b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x114f95=>{const {id:_0x2a5e89,authorId:_0x2d4327,type:_0x1703b7,subType:_0x279eaf}=this['_splitMarkerName'](_0x114f95['markerName']),_0x1001f6=['ck-suggestion-marker',_0x4f3c65(_0x1703b7,_0x279eaf)];let _0x2f97f8=0xbb8;return this['activeMarkers']['includes'](_0x114f95['markerName'])&&(_0x1001f6['push']('ck-suggestion-marker--active'),_0x2f97f8=0xbc2),'deletion'==_0x1703b7&&(_0x2f97f8+=0x5),{'classes':_0x1001f6,'attributes':{'data-suggestion':_0x2a5e89,'data-author-id':_0x2d4327},'priority':_0x2f97f8};}}),_0x1b108b['conversion']['for']('dataDowncast')['add'](_0x3fce4d=>{_0x3fce4d['on']('addMarker:suggestion',(_0x3cdd93,_0x2297b0,_0x3a4c27)=>{if(!_0x3a4c27['options']['showSuggestionHighlights'])return;const _0x1b0ad3=_0x2297b0['item'];if(!_0x1b0ad3)return;const _0x4c5527=_0x3a4c27['mapper']['toViewElement'](_0x1b0ad3);_0x1b108b['model']['schema']['isObject'](_0x1b0ad3)&&_0x4c5527&&!_0x4c5527['getCustomProperty']('widget')&&_0x4c5527['is']('containerElement')&&_0x394e5c(_0x4c5527,_0x3a4c27['writer']);},{'priority':'high'});}),_0x1b108b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xd937d8,_0x4553a0)=>{if(!_0x4553a0['options']['showSuggestionHighlights'])return null;const {type:_0x462313,subType:_0x170dfa}=this['_splitMarkerName'](_0xd937d8['markerName']);return{'classes':['ck-suggestion-marker',_0x4f3c65(_0x462313,_0x170dfa)],'priority':0xbb8};}});const _0x463a29=({showActiveMarkers:_0x45e93c=!0x0,isAttributeSuggestion:_0x234330=!0x1}={})=>(_0x2c4490,_0x4a5d90,_0x7990d2)=>{if(!_0x4a5d90['item'])return;const {id:_0x1c98aa,authorId:_0x7190eb}=this['_splitMarkerName'](_0x4a5d90['markerName']);if(_0x234330){const _0x1e7d58=this['_suggestions']['get'](_0x1c98aa),_0x39a3fe=this['_getAttributeKey'](_0x1e7d58);if(!this['_isBlockAttribute'](_0x39a3fe))return;}if(_0x4a5d90['item']['is']('selection'))return void _0x7990d2['consumable']['consume'](_0x4a5d90['item'],_0x2c4490['name']);const _0x4c41ae=_0x7990d2['mapper']['toViewElement'](_0x4a5d90['item']);if(_0x4a5d90['item']['is']('element')&&_0x1b108b['model']['schema']['isBlock'](_0x4a5d90['item'])&&!_0x4c41ae['getCustomProperty']('addHighlight')){_0x7990d2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4c41ae),_0x7990d2['writer']['setAttribute']('data-suggestion',_0x1c98aa,_0x4c41ae),_0x7990d2['writer']['setAttribute']('data-author-id',_0x7190eb,_0x4c41ae),_0x7990d2['mapper']['bindElementToMarker'](_0x4c41ae,_0x4a5d90['markerName']),_0x45e93c&&(this['activeMarkers']['includes'](_0x4a5d90['markerName'])?_0x7990d2['writer']['addClass']('ck-suggestion-marker--active',_0x4c41ae):_0x7990d2['writer']['removeClass']('ck-suggestion-marker--active',_0x4c41ae));for(const _0x2bd7c3 of _0x1b108b['model']['createRangeIn'](_0x4a5d90['item'])['getItems']())_0x7990d2['consumable']['consume'](_0x2bd7c3,_0x2c4490['name']);_0x7990d2['consumable']['consume'](_0x4a5d90['item'],_0x2c4490['name']);}};_0x1b108b['conversion']['for']('dataDowncast')['add'](_0x59c9d8=>{_0x59c9d8['on']('addMarker:suggestion:formatBlock',(_0x41c8f1,_0x47cd16,_0x67ab27)=>{_0x67ab27['options']['showSuggestionHighlights']&&_0x463a29({'showActiveMarkers':!0x1})(_0x41c8f1,_0x47cd16,_0x67ab27);},{'priority':'highest'});}),_0x1b108b['conversion']['for']('dataDowncast')['add'](_0x3fb7c0=>{_0x3fb7c0['on']('addMarker:suggestion:attribute',(_0x3fec41,_0x35e475,_0x3aef29)=>{_0x3aef29['options']['showSuggestionHighlights']&&_0x463a29({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3fec41,_0x35e475,_0x3aef29);},{'priority':'highest'});}),_0x1b108b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x15fe45,_0x2306c9)=>_0x2306c9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x15fe45['substr'](0xb)}}),_0x1b108b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1f0e3a,{writer:_0x3b7357})=>{let _0x3ab40c='suggestion:'+_0x1f0e3a['getAttribute']('suggestion-type')+':'+_0x1f0e3a['getAttribute']('id');return _0x1f0e3a['getAttribute']('marker-count')&&(_0x3ab40c+=':'+_0x1f0e3a['getAttribute']('marker-count')),_0x3b7357['createElement']('$marker',{'data-name':_0x3ab40c});}}),_0x1b108b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1b108b['conversion']['for']('editingDowncast')['add'](_0x1612a8=>{_0x1612a8['on']('addMarker:suggestion:formatBlock',_0x463a29(),{'priority':'high'});}),_0x1b108b['conversion']['for']('editingDowncast')['add'](_0x42c766=>{_0x42c766['on']('addMarker:suggestion:attribute',_0x463a29({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1b108b['conversion']['for']('editingDowncast')['add'](_0x3b1b91=>{_0x3b1b91['on']('removeMarker:suggestion:formatBlock',(_0x272057,_0xc703e0,_0x350027)=>{const _0x5dd996=_0x350027['mapper']['markerNameToElements'](_0xc703e0['markerName']);if(_0x5dd996){for(const _0x467bbb of _0x5dd996)_0x467bbb['getCustomProperty']('addHighlight')||(_0x350027['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x467bbb),_0x350027['writer']['removeAttribute']('data-suggestion',_0x467bbb),_0x350027['writer']['removeAttribute']('data-author-id',_0x467bbb),_0x350027['mapper']['unbindElementFromMarkerName'](_0x467bbb,_0xc703e0['markerName']));}},{'priority':'high'});}),_0x1b108b['conversion']['for']('editingDowncast')['add'](_0x40b3be=>{_0x40b3be['on']('removeMarker:suggestion:attribute',(_0x362463,_0x19d77d,_0x1b64b7)=>{const _0x120dcd=_0x1b64b7['mapper']['markerNameToElements'](_0x19d77d['markerName']);if(!_0x120dcd)return;const {id:_0x3f1678}=this['_splitMarkerName'](_0x19d77d['markerName']),_0xbfd0b=this['_suggestions']['get'](_0x3f1678),_0x2ad143=this['_getAttributeKey'](_0xbfd0b);if(this['_isBlockAttribute'](_0x2ad143)){for(const _0x3dd0fe of _0x120dcd)_0x3dd0fe['getCustomProperty']('addHighlight')||(_0x1b64b7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3dd0fe),_0x1b64b7['writer']['removeAttribute']('data-suggestion',_0x3dd0fe),_0x1b64b7['writer']['removeAttribute']('data-author-id',_0x3dd0fe),_0x1b64b7['mapper']['unbindElementFromMarkerName'](_0x3dd0fe,_0x19d77d['markerName']));}},{'priority':'high'});}),_0x1b108b['model']['document']['registerPostFixer'](_0x289786=>{let _0xc7b9b0=!0x1;const _0x3d5ad6=Array['from'](_0x1b108b['model']['document']['differ']['getChangedMarkers']()),_0x35ef16=new Set();for(const {name:_0x465538,data:_0x24f307}of _0x3d5ad6){const {group:_0x4f529b,type:_0x133b5b,subType:_0x37bad0,id:_0x1c5755}=this['_splitMarkerName'](_0x465538);if('suggestion'!==_0x4f529b)continue;const _0x5cd4da=this['_suggestions']['get'](_0x1c5755);if(null!=_0x24f307['newRange']){'formatInline'==_0x133b5b&&(_0xc7b9b0=_0xc7b9b0||Lt(_0x24f307['newRange'],_0x465538,_0x289786,_0x1b108b['model']['schema']));const _0x175847='attribute'==_0x133b5b&&this['_isBlockAttribute'](_0x37bad0['split']('|')[0x0]);if(_0x24f307['newRange']['isCollapsed']||'$graveyard'==_0x24f307['newRange']['root']['rootName']||'formatBlock'==_0x133b5b&&!Ht(_0x24f307['newRange'])||_0x175847&&!Ht(_0x24f307['newRange'])||'deletion'==_0x133b5b&&!(!Ft(_0x528e67=_0x24f307['newRange'])&&!function(_0x358e8b){return _0x358e8b['start']['parent']==_0x358e8b['end']['nodeBefore']&&_0x358e8b['start']['isAtEnd'];}(_0x528e67)))_0x289786['removeMarker'](_0x465538),_0xc7b9b0=!0x0;else{if(!_0x5cd4da||!_0x5cd4da['isInContent'])continue;if(_0x24f307['newRange']&&_0x24f307['oldRange']&&_0x24f307['newRange']['isEqual'](_0x24f307['oldRange']))continue;_0x35ef16['add'](_0x5cd4da);}}}var _0x528e67;return _0x35ef16['size']>0x0&&(_0xc7b9b0=!!this['_joinWithAdjacentSuggestions'](_0x35ef16)||_0xc7b9b0),_0xc7b9b0;}),_0x1b108b['model']['document']['registerPostFixer'](_0x24d8da=>{let _0x1f3689=!0x1;for(const _0x28a239 of _0x1b108b['model']['document']['differ']['getChanges']())if('insert'==_0x28a239['type'])for(const _0xca6728 of this['_suggestions']['values']()){if(_0xca6728['isMultiRange']||!_0xca6728['isInContent'])continue;const _0x48153f='formatBlock'==_0xca6728['type'],_0x2afdbd=this['_getAttributeKey'](_0xca6728),_0x298c88=_0x2afdbd&&this['_isBlockAttribute'](_0x2afdbd);if(!_0x48153f&&!_0x298c88)continue;const _0x44498f=_0xca6728['getFirstRange']();if(_0x44498f['start']['parent']!=_0x44498f['end']['parent']&&!_0x44498f['end']['isAtEnd']){const _0x5f257b=_0x1b108b['model']['createPositionAt'](_0x44498f['start']['nodeAfter'],'end'),_0x5599c4=_0x1b108b['model']['createRange'](_0x44498f['start'],_0x5f257b);_0x24d8da['updateMarker'](_0xca6728['getFirstMarker'](),{'range':_0x5599c4}),_0x1f3689=!0x0;}}return _0x1f3689;}),_0x1b108b['model']['document']['registerPostFixer'](_0xbea15d=>this['_processAttributeChanges'](_0xbea15d)),_0x1b108b['model']['document']['registerPostFixer'](_0x3626bc=>!_0x3626bc['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3626bc)),_0x1b108b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1b108b['model']['document']['on']('change:data',(_0x2ab552,_0x798084)=>{if(!_0x798084['isLocal']||_0x798084['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1e4ce5=_0x1b108b['model']['document']['differ']['getChanges']();if(0x0==_0x1e4ce5['length'])return;const _0x36de46=[],_0x2318ea=_0x1e4ce5['filter'](_0x2d991f=>'attribute'==_0x2d991f['type']),_0x5e5824=_0x1e4ce5['filter'](_0x52803c=>'insert'==_0x52803c['type']&&'$text'!=_0x52803c['name']);for(const _0x7c5b2e of _0x2318ea)this['_isRegisteredAttribute'](_0x7c5b2e['attributeKey'])&&_0x36de46['push']({'key':_0x7c5b2e['attributeKey'],'newValue':_0x7c5b2e['attributeNewValue'],'oldValue':_0x7c5b2e['attributeOldValue'],'range':qt(_0x7c5b2e['range'],_0x1b108b['model'])});for(const _0x5401a5 of _0x5e5824){if('rename'!=_0x5401a5['action']&&'refresh'!=_0x5401a5['action'])continue;const _0x4e2c62=zt(_0x5401a5['position']['nodeAfter'],_0x1b108b['model']),_0x26d6ea=_0x5401a5['before'];'rename'==_0x5401a5['action']&&_0x36de46['push']({'key':m,'newValue':_0x5401a5['name'],'oldValue':_0x26d6ea['name'],'range':_0x4e2c62});for(const [_0x36b2a6,_0x251afb]of _0x26d6ea['attributes']){if(!this['_isRegisteredAttribute'](_0x36b2a6))continue;const _0xcfdfe=_0x5401a5['attributes']['get'](_0x36b2a6);_0x251afb!==_0xcfdfe&&_0x36de46['push']({'key':_0x36b2a6,'newValue':_0xcfdfe,'oldValue':_0x251afb,'range':_0x4e2c62});}for(const [_0x95b7b7,_0x1aa8b2]of _0x5401a5['attributes'])this['_isRegisteredAttribute'](_0x95b7b7)&&(_0x26d6ea['attributes']['has'](_0x95b7b7)||_0x36de46['push']({'key':_0x95b7b7,'newValue':_0x1aa8b2,'oldValue':null,'range':_0x4e2c62}));}0x0!=_0x36de46['length']&&_0x1b108b['model']['enqueueChange'](_0x798084,_0x1b5cc0=>{const _0xfa10ad=_0x392169();for(const {range:_0x2a4228,key:_0x344c37,oldValue:_0x546071,newValue:_0x2f23cf}of _0x36de46)this['markAttributeChange'](_0x2a4228,_0x344c37,_0x546071,_0x2f23cf,{'groupId':_0xfa10ad});this['_reduceExistingSuggestions'](_0x1b5cc0,_0x36de46);});},{'priority':'lowest'}),_0x1b108b['model']['markers']['on']('update:suggestion',(_0xded38c,_0x1b348a,_0x2c68f3)=>{if(null==_0x2c68f3){const {id:_0x14de8f}=this['_splitMarkerName'](_0x1b348a['name']),_0x477320=this['_suggestions']['get'](_0x14de8f);_0x477320&&_0x477320['addMarkerName'](_0x1b348a['name']);}}),_0x1b108b['model']['document']['on']('change:data',()=>{const _0x417182=Array['from'](_0x1b108b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x85bfb=>'suggestion'===this['_splitMarkerName'](_0x85bfb['name'])['group']);if(0x0===_0x417182['length'])return;_0x417182['sort']((_0x256954,_0x3300b7)=>{const _0x207e7c=_0x256954['data']['oldRange'],_0x51d6e6=_0x3300b7['data']['oldRange'];return null===_0x207e7c&&null===_0x51d6e6?0x0:null===_0x207e7c&&null!==_0x51d6e6?-0x1:null!==_0x207e7c&&null===_0x51d6e6?0x1:_0x207e7c['start']['isBefore'](_0x51d6e6['start'])?-0x1:0x1;});const _0x539b73=new Set(),_0x4c044e=new Set();for(const {name:_0x1626da,data:_0x4a5918}of _0x417182){const {id:_0x228b25}=this['_splitMarkerName'](_0x1626da);if(null===_0x4a5918['oldRange']){const _0x42ec20=this['_handleNewSuggestionMarker'](_0x1626da);_0x4c044e['add'](_0x42ec20);}else{const _0x49d031=this['_suggestions']['get'](_0x228b25);null!==_0x4a5918['newRange']||_0x49d031['isInContent']?(_0x539b73['add'](_0x49d031['head']),_0x4c044e['add'](_0x49d031)):this['_removeSuggestion'](_0x49d031);}}_0x4c044e['size']>0x0&&this['_refreshSuggestionsChain'](_0x4c044e);for(const _0x538333 of _0x539b73)this['fire']('suggestionChanged',_0x538333);}),_0x1b108b['model']['on']('applyOperation',(_0x3a28cc,_0x5b1714)=>{const _0x359903=_0x5b1714[0x0];if(!this['_suggestions']['size'])return;if(!_0x359903['isDocumentOperation'])return;if(_0x359903['batch']['isUndo']||!_0x359903['batch']['isLocal'])return;let _0x2cef9b,_0x3bd938;switch(_0x359903['type']){case'insert':_0x2cef9b=_0x1b108b['model']['createPositionAt'](_0x359903['position']),_0x3bd938=_0x2cef9b['getShiftedBy'](_0x359903['howMany']);break;case'split':_0x2cef9b=_0x1b108b['model']['createPositionAt'](_0x359903['splitPosition']),_0x3bd938=_0x1b108b['model']['createPositionAt'](_0x359903['moveTargetPosition']);break;case'move':_0x2cef9b=_0x1b108b['model']['createPositionAt'](_0x359903['targetPosition']),_0x3bd938=_0x2cef9b['getShiftedBy'](_0x359903['howMany']);break;default:return;}const _0xf35ade=_0x1b108b['model']['createRange'](_0x2cef9b,_0x3bd938);_0x1b108b['model']['change'](()=>{for(const {suggestion:_0x52230c,meta:_0x20eb36}of this['_findSuggestions'](_0xf35ade)){if(_0x52230c['isMultiRange'])continue;if('formatInline'==_0x52230c['type'])continue;const _0x89afaa=this['_getAttributeKey'](_0x52230c);if(_0x89afaa&&this['_isBlockAttribute'](_0x89afaa)&&'split'!=_0x359903['type'])continue;const _0x5503e2=_0x52230c['data']&&_0x52230c['data']['multipleBlocks'];('formatBlock'!=_0x52230c['type']||'split'==_0x359903['type']&&!_0x5503e2)&&(_0x20eb36['containsRangeInObject']||'insertion'==_0x52230c['type']&&_0x20eb36['isOwn']||_0x52230c['getFirstRange']()['containsRange'](_0xf35ade)&&this['_breakSuggestionMarker'](_0x52230c,_0x2cef9b,_0x3bd938));}});},{'priority':'lowest'}),_0x1b108b['model']['on']('deleteContent',(_0x2173c2,_0x5270b9)=>{const _0x42f1ba=_0x5270b9[0x0],_0x48cb3b=_0x5270b9[0x1];if(_0x48cb3b&&_0x48cb3b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x42f1ba['isCollapsed'])return;const _0x1e8390=_0x1b108b['model']['schema'],{start:_0x5629db,end:_0x1f70df}=_0x42f1ba['getFirstRange'](),_0x4aa4da=_0x5629db['nodeAfter']&&_0x1e8390['isLimit'](_0x5629db['nodeAfter'])?null:_0x1e8390['getNearestSelectionRange'](_0x5629db,'forward'),_0x3c320f=_0x1f70df['nodeBefore']&&_0x1e8390['isLimit'](_0x1f70df['nodeBefore'])?null:_0x1e8390['getNearestSelectionRange'](_0x1f70df,'backward'),_0x44e404=_0x1b108b['model']['createRange'](_0x4aa4da?_0x4aa4da['start']:_0x5629db,_0x3c320f?_0x3c320f['end']:_0x1f70df);_0x1b108b['model']['change'](_0x15d894=>{this['markDeletion'](_0x44e404);const _0x4f4a9a=_0x1b108b['model']['schema']['getNearestSelectionRange'](_0x44e404['start']);_0x42f1ba['is']('documentSelection')?_0x15d894['setSelection'](_0x4f4a9a):_0x42f1ba['setTo'](_0x4f4a9a);}),_0x2173c2['stop']();},{'priority':_0x781394['normal']+0xa}),_0x1b108b['model']['on']('insertContent',(_0x13a0b8,_0x1932e2)=>{const _0x193529=_0x1932e2[_0x1932e2['length']-0x1];_0x193529&&_0x193529['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1b108b['model']['change'](()=>{let _0x5f8eec=_0x1b108b['model']['insertContent'](_0x1932e2[0x0],_0x1932e2[0x1],_0x1932e2[0x2],{'forceDefaultExecution':!0x0});if(!_0x5f8eec)return;_0x13a0b8['return']=_0x5f8eec['clone']();const _0x1ae323=_0x5f8eec['end']['nodeBefore'],_0x1f0405=_0x1b108b['model']['schema'];_0x1ae323&&_0x1f0405['isBlock'](_0x1ae323)&&!_0x1f0405['isObject'](_0x1ae323)&&(_0x5f8eec=_0x1b108b['model']['createRange'](_0x5f8eec['start'],_0x1b108b['model']['createPositionAt'](_0x1ae323,'end'))),this['markInsertion'](_0x5f8eec);}),_0x13a0b8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5c542f=new O(_0x1b108b,this['_suggestions']);_0x1b108b['commands']['add']('acceptSuggestion',_0x5c542f),this['enableCommand']('acceptSuggestion');const _0x9070a7=new R(_0x1b108b,this['_suggestions']);_0x1b108b['commands']['add']('discardSuggestion',_0x9070a7),this['enableCommand']('discardSuggestion'),_0x1b108b['commands']['add']('acceptAllSuggestions',new x(_0x1b108b,_0x5c542f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1b108b['commands']['add']('discardAllSuggestions',new x(_0x1b108b,_0x9070a7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1b108b['commands']['add']('acceptSelectedSuggestions',new E(_0x1b108b,_0x5c542f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1b108b['commands']['add']('discardSelectedSuggestions',new E(_0x1b108b,_0x9070a7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3a533d=_0x1b108b['plugins']['get']('CommentsRepository');this['listenTo'](_0x3a533d,'addComment',(_0x2199b1,{threadId:_0x167da9})=>{const _0x24f14a=this['_suggestions']['get'](_0x167da9);_0x24f14a&&_0x24f14a['commentThread']&&0x1===_0x24f14a['commentThread']['length']&&this['_updateSuggestionData'](_0x167da9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3a533d,'removeComment',(_0x3de80e,{threadId:_0x240fd8})=>{const _0x1bdbba=this['_suggestions']['get'](_0x240fd8);_0x1bdbba&&_0x1bdbba['commentThread']&&!_0x1bdbba['commentThread']['length']&&this['_updateSuggestionData'](_0x240fd8,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5ec8b0){const _0x49b3b0=_0x19154c([0x42,0x43,0x54,0x68,0x6d,0x75,0x35,0x5a,0x71,0x44,0x4a,0x46,0x52,0x77,0x49,0x31,0x67,0x65,0x6e,0x76,0x51,0x39,0x61,0x32,0x34,0x78,0x69,0x66,0x41,0x4b,0x4d,0x64,0x56,0x74,0x57,0x47,0x4f,0x45,0x55,0x79,0x7a,0x72,0x6b,0x6f,0x48,0x70,0x50,0x62,0x38,0x63,0x30,0x37,0x4c,0x59,0x58,0x73,0x53,0x36,0x4e,0x33,0x6a,0x6c]),_0x4cc3b0=0x4efe0ad2,_0x513a43=0x4ef96aea^_0x4cc3b0,_0x1fb02d=window[_0x19154c([0x44,0x61,0x74,0x65])][_0x19154c([0x6e,0x6f,0x77])](),_0xc87c5a=_0x5ec8b0[_0x19154c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x497aad=new window[(_0x19154c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd3fa9d=>{_0xc87c5a[_0x19154c([0x6f,0x6e,0x63,0x65])](_0x19154c([0x72,0x65,0x61,0x64,0x79]),_0xd3fa9d);}),_0x4ad70b={[_0x19154c([0x6b,0x74,0x79])]:_0x19154c([0x45,0x43]),[_0x19154c([0x75,0x73,0x65])]:_0x19154c([0x73,0x69,0x67]),[_0x19154c([0x63,0x72,0x76])]:_0x19154c([0x50,0x2d,0x32,0x35,0x36]),[_0x19154c([0x78])]:_0x19154c([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]),[_0x19154c([0x79])]:_0x19154c([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]),[_0x19154c([0x61,0x6c,0x67])]:_0x19154c([0x45,0x53,0x32,0x35,0x36])},_0x4d84bd=_0xc87c5a[_0x19154c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x19154c([0x67,0x65,0x74])](_0x19154c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x40d647(){let _0x44e5dc,_0x6f405c=null,_0x26c1d8=null;try{if(_0x4d84bd==_0x19154c([0x47,0x50,0x4c]))return _0x19154c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44e5dc=_0x109bbe(),!_0x44e5dc)return _0x19154c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44e5dc[_0x19154c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26c1d8=_0x2d09b4(_0x44e5dc[_0x19154c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44e5dc[_0x19154c([0x6a,0x74,0x69])])),await _0x2789b1()?_0x334cdd()?_0x3599c1()?_0x19154c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x377be2()?(_0x44e5dc[_0x19154c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19154c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6f405c=_0x36d6a5(_0x19154c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44e5dc[_0x19154c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19154c([0x74,0x72,0x69,0x61,0x6c])&&(_0x6f405c=_0x36d6a5(_0x19154c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x49e7e5()):_0x19154c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x19154c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x19154c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x535f83){return _0x19154c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3599c1(){const _0x2364be=[_0x19154c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x19154c([0x74,0x72,0x69,0x61,0x6c])][_0x19154c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44e5dc[_0x19154c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fb02d/0x3e8:0xe10*_0x513a43;return _0x44e5dc[_0x19154c([0x65,0x78,0x70])]<_0x2364be;}function _0x334cdd(){const _0x45439f=_0x44e5dc[_0x19154c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x45439f)return!0x1;if(_0x45439f[_0x19154c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19154c([0x2a])))return!0x0;if(_0x45439f[_0x19154c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19154c([0x54,0x43])))return!0x0;if(_0x45439f[_0x19154c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19154c([0x52,0x54,0x43]))){if(_0x5521bd())return!0x0;if(_0xca1f11()||_0x515504())return!0x0;}return!0x1;}function _0x377be2(){const _0xb602f8=_0x44e5dc[_0x19154c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb602f8||0x0==_0xb602f8[_0x19154c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x170860}=new URL(window[_0x19154c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb602f8[_0x19154c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x170860))return!0x0;const _0x49bc14=_0x170860[_0x19154c([0x73,0x70,0x6c,0x69,0x74])](_0x19154c([0x2e]));return _0xb602f8[_0x19154c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc84750=>_0xc84750[_0x19154c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19154c([0x2a])))[_0x19154c([0x6d,0x61,0x70])](_0x2a698c=>_0x2a698c[_0x19154c([0x73,0x70,0x6c,0x69,0x74])](_0x19154c([0x2e])))[_0x19154c([0x73,0x6f,0x6d,0x65])](_0x20a9f8=>_0x49bc14[_0x19154c([0x65,0x76,0x65,0x72,0x79])]((_0x19fed6,_0x4ffae4)=>_0x20a9f8[_0x4ffae4]===_0x19fed6||_0x20a9f8[_0x4ffae4]===_0x19154c([0x2a])));}function _0x49e7e5(){return _0x6f405c&&_0x26c1d8?new window[(_0x19154c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4398a0,_0x45b073)=>{_0x6f405c[_0x19154c([0x74,0x68,0x65,0x6e])](_0x4398a0,_0x45b073),_0x26c1d8[_0x19154c([0x74,0x68,0x65,0x6e])](_0x4f26cc=>{_0x4f26cc!=_0x19154c([0x56,0x61,0x6c,0x69,0x64])&&_0x4398a0(_0x4f26cc);},_0x45b073);}):_0x6f405c||_0x26c1d8||_0x19154c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2d09b4(_0x526e34,_0x3bc5a9){return new window[(_0x19154c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ec099=>{if(_0x3d0b45())return _0x5ec099(_0x19154c([0x56,0x61,0x6c,0x69,0x64]));_0xd5d8bf(),_0xc87c5a[_0x19154c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x19154c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x232ed8=!0x1;const _0x10214d=_0x392169();function _0x308691(_0xa8363d){return!!_0xa8363d&&(typeof _0xa8363d===_0x19154c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa8363d===_0x19154c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa8363d[_0x19154c([0x74,0x68,0x65,0x6e])]===_0x19154c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa8363d[_0x19154c([0x63,0x61,0x74,0x63,0x68])]===_0x19154c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xd926aa(_0x1bac45){_0x262f8a(_0x1bac45)[_0x19154c([0x74,0x68,0x65,0x6e])](_0x1d90d5=>{if(!_0x1d90d5||_0x1d90d5[_0x19154c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x19154c([0x6f,0x6b]))return _0x19154c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f442b(_0x3b4021(_0x10214d+_0x3bc5a9))!=_0x1d90d5[_0x19154c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x19154c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x19154c([0x56,0x61,0x6c,0x69,0x64]);})[_0x19154c([0x74,0x68,0x65,0x6e])](_0x217d78=>(_0x2893eb(),_0x217d78),()=>{const _0x494d79=_0x455b8d();return null==_0x494d79?(_0x2893eb(),_0x19154c([0x56,0x61,0x6c,0x69,0x64])):_0x19154c(_0x1fb02d-_0x494d79>(0x6af28ed2^_0x4cc3b0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x19154c([0x74,0x68,0x65,0x6e])](_0x5ec099)[_0x19154c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5ec099(_0x19154c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x46114f=0x4ec8e452^_0x4cc3b0;function _0x2893eb(){const _0x4bc4b0=_0x19154c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f442b(_0x3b4021(_0x526e34)),_0x1c76bf=_0x2a37ec(_0x2f442b(window[_0x19154c([0x4d,0x61,0x74,0x68])][_0x19154c([0x63,0x65,0x69,0x6c])](_0x1fb02d/_0x46114f)));window[_0x19154c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19154c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bc4b0,_0x1c76bf);}function _0x455b8d(){const _0x48a837=_0x19154c([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f442b(_0x3b4021(_0x526e34)),_0x437155=window[_0x19154c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19154c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48a837);return _0x437155?window[_0x19154c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a37ec(_0x437155),0x10)*_0x46114f:null;}function _0x262f8a(_0x1b6144){return new window[(_0x19154c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14c48f,_0xaa3a67)=>{_0x1b6144[_0x19154c([0x74,0x68,0x65,0x6e])](_0x14c48f,_0xaa3a67),window[_0x19154c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xaa3a67,0x4effde12^_0x4cc3b0);});}}_0xc87c5a[_0x19154c([0x6f,0x6e])](_0x19154c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3f059e,_0x349662)=>{if(_0x349662[0x0]!=_0x526e34)return _0x5ec099(_0x19154c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x349662[0x1]={..._0x349662[0x1],[_0x19154c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x10214d};},{[_0x19154c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19154c([0x68,0x69,0x67,0x68])}),_0xc87c5a[_0x19154c([0x6f,0x6e])](_0x19154c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x22820e=>{_0x308691(_0x22820e[_0x19154c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x232ed8=!0x0,_0xd926aa(_0x22820e[_0x19154c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x19154c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19154c([0x6c,0x6f,0x77])}),_0x497aad[_0x19154c([0x74,0x68,0x65,0x6e])](()=>{_0x232ed8||_0x5ec099(_0x19154c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3d0b45(){return _0xc87c5a[_0x19154c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19154c([0x76,0x69,0x65,0x77])][_0x19154c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x19154c([0x61,0x75,0x74,0x6f]);}function _0xd5d8bf(){_0xc87c5a[_0x19154c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19154c([0x76,0x69,0x65,0x77])][_0x19154c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19154c([0x61,0x75,0x74,0x6f]);}}function _0x36d6a5(_0x5247eb){const _0x594388=[new window[(_0x19154c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fc9dc=>setTimeout(_0x2fc9dc,0x4ef7341e^_0x4cc3b0)),_0x497aad[_0x19154c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x19154c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x479b81=>{let _0x2941f4=0x0;_0xc87c5a[_0x19154c([0x6d,0x6f,0x64,0x65,0x6c])][_0x19154c([0x6f,0x6e])](_0x19154c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x477692,_0x33a4a6)=>{_0x33a4a6[0x0][_0x19154c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2941f4++,_0x2941f4==(0x4efe0b2a^_0x4cc3b0)&&(_0x479b81(),_0x477692[_0x19154c([0x6f,0x66,0x66])]());});}))];return window[_0x19154c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19154c([0x72,0x61,0x63,0x65])](_0x594388)[_0x19154c([0x74,0x68,0x65,0x6e])](()=>_0x5247eb);}async function _0xdad7be(){await _0x497aad,_0xc87c5a[_0x19154c([0x6d,0x6f,0x64,0x65,0x6c])][_0x19154c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d87eb,_0xc87c5a[_0x19154c([0x6d,0x6f,0x64,0x65,0x6c])][_0x19154c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d87eb,_0xc87c5a[_0x19154c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x19154c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5521bd(){return _0x2f0506(_0x19154c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4107fc(_0x19154c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x19154c([0x73,0x74,0x61,0x74,0x65])]==_0x19154c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xca1f11(){return _0x2f0506(_0x19154c([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 _0x515504(){return _0x2f0506(_0x19154c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x10409a(_0x4095fb){const _0x5c2712=_0x3df7b9();_0xc87c5a[_0x5c2712]=_0x19154c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4095fb,_0x4095fb!=_0x19154c([0x56,0x61,0x6c,0x69,0x64])&&_0xdad7be();}function _0x3df7b9(){const _0x335b18=window[_0x19154c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x19154c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x19154c([0x6e,0x6f,0x77])]())[_0x19154c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x19154c([0x2e]),'');let _0x5b0045=_0x19154c([0x42]);for(let _0x3a2f36=0x0;_0x3a2f36<_0x335b18[_0x19154c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a2f36+=0x2){let _0x2f8a3c=window[_0x19154c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x335b18[_0x19154c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a2f36,_0x3a2f36+0x2));_0x2f8a3c>=_0x49b3b0[_0x19154c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f8a3c-=_0x49b3b0[_0x19154c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b0045+=_0x49b3b0[_0x2f8a3c];}return _0x5b0045;}function _0x109bbe(){const _0x5755b3=_0x4d84bd[_0x19154c([0x73,0x70,0x6c,0x69,0x74])](_0x19154c([0x2e]));if(0x3!=_0x5755b3[_0x19154c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x248a2f(_0x5755b3[0x1]);function _0x248a2f(_0x19e6d2){const _0x4a0a27=_0x1f0489(_0x19e6d2);return _0x4a0a27&&_0x4a4181()?_0x4a0a27:null;function _0x4a4181(){const _0x4661eb=_0x4a0a27[_0x19154c([0x6a,0x74,0x69])],_0x1c37b6=window[_0x19154c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4661eb[_0x19154c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4661eb[_0x19154c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e1c1f={..._0x4a0a27,[_0x19154c([0x6a,0x74,0x69])]:_0x4661eb[_0x19154c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4661eb[_0x19154c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e1c1f[_0x19154c([0x76,0x63])],_0x3b4021(_0x3e1c1f)==_0x1c37b6;}}}async function _0x2789b1(){let _0x30c5ec=!0x0;try{const _0x3c2460=_0x4d84bd[_0x19154c([0x73,0x70,0x6c,0x69,0x74])](_0x19154c([0x2e])),[_0x29e7f5,_0x534fa3,_0x20ebf5]=_0x3c2460;return _0x112546(_0x29e7f5),await _0xb9a9e6(_0x29e7f5,_0x534fa3,_0x20ebf5),_0x30c5ec;}catch(_0x2567ba){return!0x1;}function _0x112546(_0x814c7e){const _0x50bf38=_0x1f0489(_0x814c7e);_0x50bf38&&_0x50bf38[_0x19154c([0x61,0x6c,0x67])]==_0x19154c([0x45,0x53,0x32,0x35,0x36])||(_0x30c5ec=!0x1);}async function _0xb9a9e6(_0x14d616,_0xfd88bb,_0x28f769){const _0x1f8060=window[_0x19154c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x19154c([0x66,0x72,0x6f,0x6d])](_0x3233df(_0x28f769),_0xf959c9=>_0xf959c9[_0x19154c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x23c29f=new window[(_0x19154c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x19154c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14d616+_0x19154c([0x2e])+_0xfd88bb),_0x2513fd=window[_0x19154c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x19154c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2513fd)return;const _0x16a39c=await _0x2513fd[_0x19154c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x19154c([0x6a,0x77,0x6b]),_0x4ad70b,{[_0x19154c([0x6e,0x61,0x6d,0x65])]:_0x19154c([0x45,0x43,0x44,0x53,0x41]),[_0x19154c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x19154c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x19154c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2513fd[_0x19154c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x19154c([0x6e,0x61,0x6d,0x65])]:_0x19154c([0x45,0x43,0x44,0x53,0x41]),[_0x19154c([0x68,0x61,0x73,0x68])]:{[_0x19154c([0x6e,0x61,0x6d,0x65])]:_0x19154c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x16a39c,_0x1f8060,_0x23c29f)||(_0x30c5ec=!0x1);}}function _0x1f0489(_0x5ad4d2){return _0x5ad4d2[_0x19154c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x19154c([0x65,0x79]))?JSON[_0x19154c([0x70,0x61,0x72,0x73,0x65])](_0x3233df(_0x5ad4d2)):null;}function _0x3233df(_0x4aae17){return window[_0x19154c([0x61,0x74,0x6f,0x62])](_0x4aae17[_0x19154c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x19154c([0x2b]))[_0x19154c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x19154c([0x2f])));}function _0x3b4021(_0x1ace7f){let _0x26d362=0x1505;function _0x4b8d9a(_0x1cc5b6){for(let _0x741ab0=0x0;_0x741ab0<_0x1cc5b6[_0x19154c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x741ab0++){const _0x233aaf=_0x1cc5b6[_0x19154c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x741ab0);_0x26d362=(_0x26d362<<0x5)+_0x26d362+_0x233aaf,_0x26d362&=_0x26d362;}}function _0x593b9d(_0x80d0c9){Array[_0x19154c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x80d0c9)?_0x80d0c9[_0x19154c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x593b9d):_0x80d0c9&&typeof _0x80d0c9==_0x19154c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x19154c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x80d0c9)[_0x19154c([0x73,0x6f,0x72,0x74])]()[_0x19154c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x44139c,_0x41b017])=>{_0x4b8d9a(_0x44139c),_0x593b9d(_0x41b017);}):_0x4b8d9a(window[_0x19154c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x80d0c9));}return _0x593b9d(_0x1ace7f),_0x26d362>>>0x0;}function _0x2f442b(_0x51c7e3){return _0x51c7e3[_0x19154c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x19154c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x19154c([0x30]));}function _0x2a37ec(_0x3f05cf){return _0x3f05cf[_0x19154c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x19154c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x19154c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2f0506(_0x47b71b){return _0xc87c5a[_0x19154c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x19154c([0x68,0x61,0x73])](_0x47b71b);}function _0x4107fc(_0x2e46ce){return _0xc87c5a[_0x19154c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x19154c([0x67,0x65,0x74])](_0x2e46ce);}function _0x5d87eb(){}function _0x19154c(_0x452625){return _0x452625['map'](_0x37fe3b=>String['fromCharCode'](_0x37fe3b))['join']('');}_0x10409a(await _0x40d647());}(this);}set['adapter'](_0xa52db8){if(this['_adapter'])throw new _0x52970e('track-changes-adapter-already-set',this);this['_adapter']=_0xa52db8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x423699=!0x1,toJSON:_0x20684d=!0x1}={}){const _0x23dd7e=[];for(const _0x2fbd89 of this['_suggestions']['values']())_0x423699&&!_0x2fbd89['isInContent']||_0x23dd7e['push'](_0x2fbd89);return _0x20684d?_0x23dd7e['map'](_0x53f2ef=>_0x53f2ef['toJSON']()):_0x23dd7e;}['getSuggestion'](_0x227797){const _0x2f18c7=this['_suggestions']['get'](_0x227797);if(!_0x2f18c7)throw new _0x52970e('track-changes-suggestion-not-found',this);return _0x2f18c7;}['hasSuggestion'](_0x33df10){return this['_suggestions']['has'](_0x33df10);}['addSuggestionData'](_0x314d0f){const {authorId:_0x12de7c,id:_0x33b693,attributes:_0x6b0ab5}=_0x314d0f,[_0x3f1bfc,_0x554a7b]=_0x314d0f['type']['split'](':'),_0x3dbe23=this['_suggestions']['get'](_0x33b693)||this['_createSuggestion'](_0x3f1bfc,_0x554a7b,_0x33b693,_0x12de7c,_0x6b0ab5);if(this['_addThreadToSuggestion'](_0x3dbe23),this['_checkSuggestionCorrectness'](_0x3dbe23,_0x3f1bfc,_0x554a7b||null,_0x12de7c),_0x3dbe23['createdAt']=_0x314d0f['createdAt'],_0x3dbe23['_isDataLoaded']=!0x0,_0x6b0ab5&&_0x6b0ab5['@external']){const _0x22a5e1=_0x6b0ab5['@external'],_0x423c32=this['_getExternalAuthor'](_0x22a5e1['authorName']);_0x3dbe23['authoredAt']=_0x22a5e1['createdAt'],_0x3dbe23['author']=_0x423c32,_0x3dbe23['isExternal']=!0x0;}else _0x3dbe23['authoredAt']=_0x314d0f['createdAt'];switch(_0x314d0f['data']&&(_0x3dbe23['data']=_0x314d0f['data']),_0x314d0f['attributes']&&(_0x3dbe23['attributes']=_0x314d0f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3dbe23['_saved']=!0x0),this['_suggestionState']['get'](_0x3dbe23)){case'notReady':this['_suggestionState']['set'](_0x3dbe23,'dataReady');break;case'markerReady':_0x3dbe23['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3dbe23])),this['_refreshSuggestionsChain'](new Set([_0x3dbe23])),this['_suggestionState']['set'](_0x3dbe23,'ready'),this['fire']('suggestionLoaded',_0x3dbe23)):this['_suggestionState']['set'](_0x3dbe23,'removed');}return _0x3dbe23;}['acceptSuggestion'](_0x3c95e3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3f15a0 of _0x3c95e3['getAllAdjacentSuggestions']())_0x3f15a0['accept']();});});}['discardSuggestion'](_0x6e4a2e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b67e9 of _0x6e4a2e['getAllAdjacentSuggestions']())_0x1b67e9['discard']();});});}['enableCommand'](_0x2eb6b3,_0x28c09f){const _0x4ffd50=this['editor']['commands']['get'](_0x2eb6b3);if(!_0x4ffd50)throw new _0x52970e('track-changes-command-not-found',this,{'commandName':_0x2eb6b3});if(this['_enabledCommands']['has'](_0x4ffd50))throw new _0x52970e('track-changes-enable-command-twice',this,{'commandName':_0x2eb6b3});this['_enabledCommands']['add'](_0x4ffd50),_0x28c09f&&_0x4ffd50['on']('execute',(_0x30dc54,_0x54fad7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x54fad7['length']>0x0&&_0x54fad7[_0x54fad7['length']-0x1]&&_0x54fad7[_0x54fad7['length']-0x1]['forceDefaultExecution']?_0x54fad7['pop']():(_0x30dc54['return']=_0x28c09f((..._0x4c0245)=>_0x4ffd50['execute'](..._0x4c0245,{'forceDefaultExecution':!0x0}),..._0x54fad7),_0x30dc54['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x53fbe2){let _0x3766ef,_0x209394;const _0x19636c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3766ef=_0x53fbe2();}catch(_0x16075a){_0x209394=_0x16075a;}return _0x19636c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x209394&&_0x52970e['rethrowUnexpectedError'](_0x209394,this),_0x3766ef;}['markInsertion'](_0x256413,_0x36d3a1=null,_0xb69cfa={}){if(_0x256413['isCollapsed'])return null;const _0x25a82b=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x16f40e,meta:_0x54b7b2}of this['_findSuggestions'](_0x256413,'insertion'))if(_0x54b7b2['isOwn']){if(!_0x54b7b2['isNextTo']){if(_0x54b7b2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x16f40e,_0xb69cfa))continue;return _0x16f40e;}if(Qt(_0x16f40e,_0xb69cfa))return _0x16f40e;this['_breakSuggestionMarker'](_0x16f40e,_0x256413['start'],_0x256413['end']);break;}if(_0x36d3a1==_0x16f40e['subType']&&Qt(_0x16f40e,_0xb69cfa)){const _0x5f5576=_0x16f40e['getFirstRange']();return _0x5f5576['start']['isEqual'](_0x256413['end'])?this['_setSuggestionRange'](_0x16f40e,this['_model']['createRange'](_0x256413['start'],_0x5f5576['end'])):this['_setSuggestionRange'](_0x16f40e,this['_model']['createRange'](_0x5f5576['start'],_0x256413['end'])),_0x16f40e;}}const _0x3650e6=_0x392169(),_0x56b6bb=_0x25a82b['id'],_0x34dc4f=_0x36d3a1?'insertion:'+_0x36d3a1:'insertion',_0xebbcff=this['_setSuggestionData']({'id':_0x3650e6,'type':_0x34dc4f,'createdAt':new Date(),'authorId':_0x56b6bb,'attributes':_0xb69cfa});return this['_addSuggestionMarker'](_0x34dc4f,_0x3650e6,_0x56b6bb,_0x256413),_0xebbcff;}['markMultiRangeInsertion'](_0x24cec0,_0x29771f='multi',_0x1def61={}){const _0x3b3676=this['editor']['plugins']['get']('Users')['me'],_0x262d42=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x29771f,'join');for(const _0x25ff8e of this['getSuggestions']())if(_0x25ff8e['author']['id']==_0x3b3676['id']&&'insertion'==_0x25ff8e['type']&&_0x25ff8e['subType']==_0x29771f&&Qt(_0x25ff8e,_0x1def61)&&(_0x262d42(_0x25ff8e['getRanges'](),_0x24cec0)||_0x262d42(_0x24cec0,_0x25ff8e['getRanges']()))){for(const _0x10bf22 of _0x24cec0)_0x25ff8e['addRange'](_0x10bf22);return _0x25ff8e;}for(const {suggestion:_0xff42ad,meta:_0x106b9b}of this['_findSuggestions'](_0x24cec0,'insertion')){if(!_0x106b9b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x106b9b['containsRangeInObject'])continue;if(!Qt(_0xff42ad,_0x1def61))continue;let _0x3bb3fe=!0x0;for(const _0x40e65a of _0xff42ad['getRanges']())for(const _0x13810a of _0x24cec0)if(!_0x40e65a['containsRange'](_0x13810a)){_0x3bb3fe=!0x1;break;}if(_0x3bb3fe)return _0xff42ad;}const _0x36200a=_0x392169(),_0x589363=_0x3b3676['id'],_0xc4c894='insertion:'+_0x29771f,_0x531b46=this['_setSuggestionData']({'id':_0x36200a,'type':_0xc4c894,'createdAt':new Date(),'authorId':_0x589363,'attributes':_0x1def61});for(const _0x520d55 of _0x24cec0)this['_addSuggestionMarker'](_0xc4c894,_0x36200a,_0x589363,_0x520d55,u['getMultiRangeId']());return _0x531b46;}['markInlineFormat'](_0x16b51a,_0x20cd38,_0xa51f7e=null,_0x1518ec={}){if(_0xa51f7e=_0xa51f7e||Jt(_0x20cd38),_0x16b51a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3170fb=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa51f7e,'accept');return this['forceDefaultExecution'](()=>_0x3170fb([_0x16b51a],_0x20cd38,_0x1518ec)),null;}const _0x9e8966=this['editor']['plugins']['get']('Users')['me'],_0x34b940=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x534fa0,meta:_0x1f8efb}of this['_findSuggestions'](_0x16b51a,'insertion'))_0x1f8efb['isOwn']&&!_0x1f8efb['isInsideObject']&&_0x34b940['push'](..._0x534fa0['getRanges']());}const _0x44edba=function(_0x528db8,_0x171c66){const _0x2b3159=[];for(const _0x29c501 of _0x171c66){const _0x26de0c=_0x528db8['getIntersection'](_0x29c501);_0x26de0c&&_0x2b3159['push'](_0x26de0c);}return _0x2b3159;}(_0x16b51a,_0x34b940),_0x771289=function(_0x15399b,_0x327de6){const _0x333a42=[_0x15399b];for(const _0x140a1c of _0x327de6){let _0x67ce07=0x0;for(;_0x67ce07<_0x333a42['length'];){const _0xaf5f78=_0x333a42[_0x67ce07]['getDifference'](_0x140a1c);_0x333a42['splice'](_0x67ce07,0x1,..._0xaf5f78),_0x67ce07+=_0xaf5f78['length'];}}return _0x333a42;}(_0x16b51a,_0x34b940);_0x44edba['length']&&this['_model']['change'](()=>{for(const _0x1864c0 of _0x44edba){const _0x298b71=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa51f7e,'accept');this['forceDefaultExecution'](()=>_0x298b71([_0x1864c0],_0x20cd38,_0x1518ec));}});for(const _0x54649d of _0x771289){let _0x133661=null,_0x2ff1a5=_0x54649d['start'],_0x4d44a2=_0x54649d['end'];for(const {suggestion:_0x321bed,meta:_0x2e16f2}of this['_findSuggestions'](_0x54649d,'formatInline')){if(!_0x2e16f2['isOwn'])continue;if(_0x321bed['subType']!=_0xa51f7e)continue;if(!Qt(_0x321bed,_0x1518ec))continue;const _0xe76a0c=_0x321bed['getFirstRange']();if(_0xe76a0c['containsRange'](_0x54649d,!0x0))return null;_0x2ff1a5=_0x2ff1a5['isBefore'](_0xe76a0c['start'])?_0x2ff1a5:_0xe76a0c['start'],_0x4d44a2=_0x4d44a2['isAfter'](_0xe76a0c['end'])?_0x4d44a2:_0xe76a0c['end'],_0x133661?_0xe76a0c['start']['isBefore'](_0x133661['getFirstRange']()['start'])?(_0x133661['removeMarkers'](),_0x133661=_0x321bed):_0x321bed['removeMarkers']():_0x133661=_0x321bed;}const _0x36d31d=this['_model']['createRange'](_0x2ff1a5,_0x4d44a2);if(_0x133661)this['_setSuggestionRange'](_0x133661,_0x36d31d);else{const _0x6e348=_0x392169(),_0x5a0798=_0x9e8966['id'];this['_setSuggestionData']({'id':_0x6e348,'type':'formatInline:'+_0xa51f7e,'data':_0x20cd38,'createdAt':new Date(),'authorId':_0x5a0798,'attributes':_0x1518ec}),this['_addSuggestionMarker']('formatInline:'+_0xa51f7e,_0x6e348,_0x5a0798,_0x36d31d);}}return null;}['markBlockFormat'](_0x3888b2,_0x4c2930,_0x469f86=[],_0x9feb9d=null,_0x188665={}){_0x4c2930['formatGroupId']||(_0x4c2930['formatGroupId']=_0x4c2930['commandName']),_0x4c2930['multipleBlocks']=_0x3888b2['is']('range'),_0x9feb9d=_0x9feb9d||Jt(_0x4c2930);const _0x19c9e8=_0x469f86['map'](_0x2a5689=>zt(_0x2a5689,this['_model'])),_0x1212da=_0x3888b2['is']('range')?_0x3888b2:zt(_0x3888b2,this['_model']);if('never'===this['_trackFormatChanges']){const _0x13c57b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9feb9d,'accept');return this['forceDefaultExecution'](()=>_0x13c57b([_0x1212da],_0x4c2930,_0x188665)),null;}_0x19c9e8['push'](_0x1212da);let _0x2f1fcc=!0x0;for(const _0x5217cf of _0x19c9e8)if(!this['_rangeIsInLocalUserInsertion'](_0x5217cf)){_0x2f1fcc=!0x1;break;}if(_0x2f1fcc&&'always'!==this['_trackFormatChanges']){const _0x46f464=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x9feb9d,'accept');return this['forceDefaultExecution'](()=>_0x46f464([_0x1212da],_0x4c2930,_0x188665)),null;}let _0x524586=null,_0x487014=_0x1212da['start'],_0xbd4ccc=_0x1212da['end'];for(const {suggestion:_0xaf2c99,meta:_0x4da758}of this['_findSuggestions'](_0x1212da,'formatBlock')){if(!_0x4da758['isOwn'])continue;if(_0x4da758['isNextTo']||_0x4da758['containsRangeInObject']||_0x4da758['isInsideObject'])continue;if(_0xaf2c99['data']['formatGroupId']!=_0x4c2930['formatGroupId'])continue;if(!Qt(_0xaf2c99,_0x188665))continue;const _0x54fbaa=_0xaf2c99['getFirstRange']();if(_0xaf2c99['subType']==_0x9feb9d){if(_0x54fbaa['containsRange'](_0x1212da,!0x0))return null;_0x487014=_0x487014['isBefore'](_0x54fbaa['start'])?_0x487014:_0x54fbaa['start'],_0xbd4ccc=_0xbd4ccc['isAfter'](_0x54fbaa['end'])?_0xbd4ccc:_0x54fbaa['end'],_0x524586?_0x54fbaa['start']['isBefore'](_0x524586['getFirstRange']()['start'])?(_0x524586['removeMarkers'](),_0x524586=_0xaf2c99):_0xaf2c99['removeMarkers']():_0x524586=_0xaf2c99;}else{const _0x532b48=_0x1212da['getIntersection'](_0x54fbaa);this['_cutOutSuggestionMarker'](_0xaf2c99,_0x532b48);}}const _0x495622=this['editor']['plugins']['get']('Users')['me'],_0x3bfca3=_0x392169(),_0x196fcd=_0x495622['id'];if(_0x524586)return this['_setSuggestionRange'](_0x524586,this['_model']['createRange'](_0x487014,_0xbd4ccc)),_0x524586;{const _0x2fd0f0=this['_setSuggestionData']({'id':_0x3bfca3,'type':'formatBlock:'+_0x9feb9d,'data':_0x4c2930,'createdAt':new Date(),'authorId':_0x196fcd,'attributes':_0x188665});return this['_addSuggestionMarker']('formatBlock:'+_0x9feb9d,_0x3bfca3,_0x196fcd,this['_model']['createRange'](_0x487014,_0xbd4ccc)),_0x2fd0f0;}}['markMultiRangeBlockFormat'](_0x439682,_0x2fa760,_0xf4a666=[],_0x702876=null,_0x3e4f74={}){_0x2fa760['formatGroupId']||(_0x2fa760['formatGroupId']=_0x2fa760['commandName']);const _0x31b4af=_0x439682[0x0];_0x2fa760['multipleBlocks']=_0x31b4af['is']('range'),_0x702876=_0x702876||Jt(_0x2fa760);const _0x3adadc=_0xf4a666['map'](_0x20cfe9=>zt(_0x20cfe9,this['_model'])),_0x132452=_0x31b4af['is']('range')?_0x439682:_0x439682['map'](_0x35bd58=>zt(_0x35bd58,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2568fd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x702876,'accept');return this['forceDefaultExecution'](()=>_0x2568fd(_0x132452,_0x2fa760,_0x3e4f74)),null;}_0x3adadc['push'](..._0x132452);let _0xfbf289=!0x0;for(const _0x4d9211 of _0x3adadc)if(!this['_rangeIsInLocalUserInsertion'](_0x4d9211)){_0xfbf289=!0x1;break;}if(_0xfbf289&&'always'!==this['_trackFormatChanges']){const _0x5b092b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x702876,'accept');return this['forceDefaultExecution'](()=>_0x5b092b(_0x132452,_0x2fa760,_0x3e4f74)),null;}const _0x226ab5=this['editor']['plugins']['get']('Users')['me'];for(const _0x25c6a5 of this['getSuggestions']()){if(_0x25c6a5['author']['id']!=_0x226ab5['id'])continue;if('formatBlock'!=_0x25c6a5['type']||_0x25c6a5['data']['formatGroupId']!=_0x2fa760['formatGroupId'])continue;if(!Qt(_0x25c6a5,_0x3e4f74))continue;const _0x3be8d6=_0x25c6a5['subType']==_0x702876;for(let _0x9dbb2c=0x0;_0x9dbb2c<_0x132452['length'];_0x9dbb2c++){const _0x5852a0=_0x132452[_0x9dbb2c];for(const _0x5b6106 of _0x25c6a5['getMarkers']()){const _0x1937d9=_0x5b6106['getRange']();if(_0x5852a0['isEqual'](_0x1937d9)){_0x3be8d6?(_0x132452['splice'](_0x9dbb2c,0x1),_0x9dbb2c--):_0x25c6a5['removeMarker'](_0x5b6106['name']);break;}}}}if(0x0==_0x132452['length'])return null;const _0x11ec0c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x702876,'join');for(const _0x2670ca of this['getSuggestions']())if(_0x2670ca['author']['id']==_0x226ab5['id']&&'formatBlock'==_0x2670ca['type']&&_0x2670ca['data']['formatGroupId']==_0x2fa760['formatGroupId']&&_0x2670ca['subType']==_0x702876&&Qt(_0x2670ca,_0x3e4f74)&&(_0x11ec0c(_0x2670ca['getRanges'](),_0x132452)||_0x11ec0c(_0x132452,_0x2670ca['getRanges']()))){for(const _0x375591 of _0x132452)_0x2670ca['addRange'](_0x375591);return _0x2670ca;}const _0x3af881=_0x392169(),_0x507a86=_0x226ab5['id'],_0x20edfa='formatBlock:'+_0x702876,_0x453cd8=this['_setSuggestionData']({'id':_0x3af881,'type':_0x20edfa,'data':_0x2fa760,'createdAt':new Date(),'authorId':_0x507a86,'attributes':_0x3e4f74});for(const _0x28dc4f of _0x132452)this['_addSuggestionMarker'](_0x20edfa,_0x3af881,_0x507a86,_0x28dc4f,u['getMultiRangeId']());return _0x453cd8;}['markDeletion'](_0x27e9eb,_0x2626a3=null,_0x1a3b71={}){if(_0x27e9eb['isCollapsed'])return null;const _0x7f36e7=this['editor']['plugins']['get']('Users')['me'],_0x3574af=new _0x985c68(_0x27e9eb['start'],_0x27e9eb['end']);for(const {suggestion:_0x12d05e,meta:_0x2d1567}of this['_findSuggestions'](_0x3574af,'insertion'))if(_0x2d1567['isOwn']&&!_0x2d1567['isNextTo']){if(_0x12d05e['isMultiRange']){const _0x3906d7=_0x12d05e['getRanges']()['filter'](_0x3f633a=>'$graveyard'!=_0x3f633a['root']['rootName']);_0x3906d7['every'](_0x1647dd=>_0x3574af['containsRange'](_0x1647dd,!0x0))&&_0x12d05e['discard']();if(_0x3906d7['some'](_0x69c9f2=>_0x69c9f2['containsRange'](_0x3574af,!0x0))){const _0x2d0a98=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2626a3,'accept');return this['forceDefaultExecution'](()=>_0x2d0a98([_0x3574af],null,_0x1a3b71)),null;}}else{const _0x4ae9d9=_0x3574af['getIntersection'](_0x12d05e['getFirstRange']());null!==_0x4ae9d9&&_0x12d05e['_onDiscard']([_0x4ae9d9],null,_0x1a3b71);}}if(_0x3574af['detach'](),_0x3574af['isCollapsed']||'$graveyard'==_0x3574af['root']['rootName'])return null;let _0x3380fa=null,_0x252b68=_0x3574af['start'],_0x8052c7=_0x3574af['end'];const _0x47377a=this['_findSuggestions'](_0x3574af,'deletion');for(const {suggestion:_0x5d6e31,meta:_0x14fc7f}of _0x47377a){const _0x5852bc=this['_model']['createRange'](_0x252b68,_0x8052c7);if(_0x14fc7f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x14fc7f['containsRangeInObject']&&!_0x14fc7f['isInsideObject'])){if(_0x5d6e31['isMultiRange']){if(!Qt(_0x5d6e31,_0x1a3b71))continue;let _0x3743fb=!0x0;for(const _0x67bc15 of _0x5d6e31['getRanges']()){if(_0x67bc15['containsRange'](_0x5852bc,!0x0))return _0x5d6e31;_0x5852bc['containsRange'](_0x67bc15)||(_0x3743fb=!0x1);}_0x3743fb&&_0x5d6e31['discard']();}else{const _0x57a2c7=_0x5d6e31['getFirstRange']();if(_0x57a2c7['containsRange'](_0x5852bc,!0x0))return _0x5d6e31;if(!Qt(_0x5d6e31,_0x1a3b71)){_0x5852bc['containsRange'](_0x57a2c7)?_0x5d6e31['removeMarkers']():_0x57a2c7['containsPosition'](_0x252b68)?_0x252b68=_0x57a2c7['end']:_0x57a2c7['containsPosition'](_0x8052c7)&&(_0x8052c7=_0x57a2c7['start']);continue;}_0x252b68=_0x252b68['isBefore'](_0x57a2c7['start'])?_0x252b68:_0x57a2c7['start'],_0x8052c7=_0x8052c7['isAfter'](_0x57a2c7['end'])?_0x8052c7:_0x57a2c7['end'],_0x1a3b71=Object['assign']({},_0x5d6e31['attributes']),_0x3380fa?_0x57a2c7['start']['isBefore'](_0x3380fa['getFirstRange']()['start'])?(_0x3380fa['removeMarkers'](),_0x3380fa=_0x5d6e31):_0x5d6e31['removeMarkers']():_0x3380fa=_0x5d6e31;}}}if(_0x3380fa)return this['_setSuggestionRange'](_0x3380fa,this['_model']['createRange'](_0x252b68,_0x8052c7)),_0x3380fa;{const _0x27af28=_0x392169(),_0x3c0393=this['_model']['createRange'](_0x252b68,_0x8052c7),_0x213893=_0x7f36e7['id'],_0x4b48ed=_0x2626a3?'deletion:'+_0x2626a3:'deletion',_0x2f2d33=this['_setSuggestionData']({'id':_0x27af28,'type':_0x4b48ed,'createdAt':new Date(),'authorId':_0x213893,'attributes':_0x1a3b71});return this['_addSuggestionMarker'](_0x4b48ed,_0x27af28,_0x213893,_0x3c0393),_0x2f2d33;}}['markMultiRangeDeletion'](_0x51a5e0,_0x3b9c0e='multi',_0x78b0a9={}){const _0x3e2101=this['editor']['plugins']['get']('Users')['me'],_0x172387=_0x51a5e0['map'](_0x19afde=>new _0x985c68(_0x19afde['start'],_0x19afde['end'])),_0x1245a8=new Set();for(const {suggestion:_0x4037f7,meta:_0x127946}of this['_findSuggestions'](_0x172387,'insertion'))_0x127946['isOwn']&&!_0x127946['isNextTo']&&_0x1245a8['add'](_0x4037f7);for(const _0x39e446 of _0x1245a8)if(_0x39e446['isMultiRange']){const _0x2ed24b=_0x39e446['getRanges']();(!_0x39e446['attributes']||!_0x39e446['attributes']['skipNestingCheck'])&&(_0x2ed24b['every'](_0x2ac4a6=>_0x172387['some'](_0x4f922d=>_0x4f922d['containsRange'](_0x2ac4a6,!0x0)))&&_0x39e446['discard']());if(_0x172387['every'](_0x2e9724=>_0x2ed24b['some'](_0x8ed8ac=>_0x8ed8ac['containsRange'](_0x2e9724,!0x0)))){const _0x1a4929=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3b9c0e,'accept');return this['forceDefaultExecution'](()=>_0x1a4929(_0x51a5e0,null,_0x78b0a9)),null;}}else{const _0x12d2ee=_0x39e446['getFirstRange']();_0x172387['some'](_0x331941=>_0x331941['containsRange'](_0x12d2ee,!0x0))&&_0x39e446['discard']();if(_0x172387['every'](_0x1b3eda=>_0x12d2ee['containsRange'](_0x1b3eda,!0x0))){const _0x26ec87=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3b9c0e,'accept');return this['forceDefaultExecution'](()=>_0x26ec87(_0x172387,null,_0x78b0a9)),null;}}const _0x1b3ab8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3b9c0e,'join');let _0x30b54f=null;for(const _0x177b5b of this['getSuggestions']())if(_0x177b5b['author']['id']==_0x3e2101['id']&&_0x177b5b['isInContent']&&'deletion'==_0x177b5b['type']&&_0x177b5b['subType']==_0x3b9c0e&&Qt(_0x177b5b,_0x78b0a9)&&(_0x1b3ab8(_0x177b5b['getRanges'](),_0x172387)||_0x1b3ab8(_0x172387,_0x177b5b['getRanges']()))){if(_0x30b54f){if(_0x177b5b['commentThread']&&_0x177b5b['commentThread']['length'])continue;for(const _0x7fea73 of _0x177b5b['getRanges']())_0x30b54f['isIntersectingWithRange'](_0x7fea73)||_0x30b54f['addRange'](_0x7fea73);_0x177b5b['removeMarkers']();}else{_0x30b54f=_0x177b5b;for(const _0x5abbbf of _0x172387)_0x177b5b['isIntersectingWithRange'](_0x5abbbf)||_0x177b5b['addRange'](_0x5abbbf);}}if(_0x30b54f)return _0x30b54f;_0x1245a8['clear']();for(const {suggestion:_0x39adeb,meta:_0x396e78}of this['_findSuggestions'](_0x172387,'deletion'))_0x396e78['isOwn']&&(this['_mergeNestedSuggestions']||!_0x396e78['containsRangeInObject']&&!_0x396e78['isInsideObject'])&&Qt(_0x39adeb,_0x78b0a9)&&_0x1245a8['add'](_0x39adeb);for(const _0x2d37bf of _0x1245a8){const _0x1027bf=_0x2d37bf['getRanges']();if(!_0x78b0a9||!_0x78b0a9['skipNestingCheck']){if(_0x172387['every'](_0x4b77aa=>_0x1027bf['some'](_0xf7a494=>_0xf7a494['containsRange'](_0x4b77aa,!0x0))))return _0x2d37bf;}(!_0x2d37bf['attributes']||!_0x2d37bf['attributes']['skipNestingCheck'])&&(_0x1027bf['every'](_0x149ed7=>_0x172387['some'](_0x14d529=>_0x14d529['containsRange'](_0x149ed7,!0x0)))&&_0x2d37bf['discard']());}const _0x2671de=_0x392169(),_0x4da6a2=_0x3e2101['id'],_0x411d84='deletion:'+_0x3b9c0e,_0x209b5b=this['_setSuggestionData']({'id':_0x2671de,'type':_0x411d84,'createdAt':new Date(),'authorId':_0x4da6a2,'attributes':_0x78b0a9});for(const _0x5cc5a1 of _0x172387)_0x5cc5a1['detach'](),_0x5cc5a1['isCollapsed']||'$graveyard'==_0x5cc5a1['root']['rootName']||this['_addSuggestionMarker'](_0x411d84,_0x2671de,_0x4da6a2,_0x5cc5a1,u['getMultiRangeId']());return _0x209b5b;}['markAttributeChange'](_0x444a71,_0x23c7f5,_0x325118,_0x2d21db,_0x2e0dcd){if(_0x444a71['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x18edb1=this['editor']['plugins']['get']('Users')['me']['id'],_0x70bb2c=Array['from'](this['_suggestions']['values']())['filter'](_0x4a3bf2=>'attribute'==_0x4a3bf2['type']&&_0x4a3bf2['data']['key']==_0x23c7f5&&_0x4a3bf2['isIntersectingWithRange'](_0x444a71));if('default'===this['_trackFormatChanges']){const _0x80b7f3=this['_findSuggestions'](_0x444a71,'insertion')['filter'](({meta:_0x1530ee})=>_0x1530ee['isOwn']&&!_0x1530ee['isInsideObject']&&!_0x1530ee['isNextTo'])['map'](({suggestion:_0x1708ff})=>_0x1708ff);_0x70bb2c['unshift'](..._0x80b7f3);}const _0x3be3f4=new Map([[_0x444a71,_0x325118]]);for(const _0x1c8fb3 of _0x70bb2c){const _0x21e3e0='attribute'==_0x1c8fb3['type']?_0x1c8fb3['data']['oldValue']:void 0x0,_0x41946c=_0x1c8fb3['getFirstRange'](),_0x347155=Array['from'](_0x3be3f4['keys']())['find'](_0x548653=>_0x548653['isIntersecting'](_0x41946c));if(!_0x347155)continue;const _0x118bd8=_0x347155['getDifference'](_0x41946c);this['_isBlockAttribute'](_0x23c7f5)&&'insertion'==_0x1c8fb3['type']&&0x0!=_0x118bd8['length']||(_0x3be3f4['delete'](_0x347155),_0x118bd8['forEach'](_0x84a1a5=>{_0x3be3f4['set'](_0x84a1a5,_0x325118);}),'insertion'!=_0x1c8fb3['type']&&_0x21e3e0!=_0x2d21db&&_0x3be3f4['set'](_0x347155['getIntersection'](_0x41946c),_0x21e3e0));}const _0x127ef0=[];for(const [_0x5a7cf0,_0x33c05f]of _0x3be3f4){const _0x423833=_0x392169(),_0x2b43ab={'key':_0x23c7f5,'oldValue':_0x33c05f,'newValue':_0x2d21db};_0x23c7f5['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':_0x23c7f5});const _0x2a8c2c=('attribute:'+(_0x23c7f5+'|'+Jt({'newValue':_0x2d21db})))['substring'](0x0,0x3c),_0x4e8e68=this['_setSuggestionData']({'id':_0x423833,'type':_0x2a8c2c,'data':_0x2b43ab,'createdAt':new Date(),'authorId':_0x18edb1,'attributes':_0x2e0dcd});_0x127ef0['push'](_0x4e8e68),this['_addSuggestionMarker'](_0x2a8c2c,_0x423833,_0x18edb1,_0x5a7cf0);}return _0x127ef0;}['enableDefaultAttributesIntegration'](_0x114d21){this['enableCommand'](_0x114d21,(_0x13584f,..._0x379c99)=>{this['_recordAttributeChanges'](()=>{_0x13584f(..._0x379c99);});});}['registerBlockAttribute'](_0x73f47d){this['_blockAttributeKeys']['add'](_0x73f47d);}['registerInlineAttribute'](_0x1b8d86){this['_inlineAttributeKeys']['add'](_0x1b8d86);}['_getAttributeKey'](_0x24eb70){return'attribute'==_0x24eb70['type']?_0x24eb70['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x446bcd,_0xeaf2b3){const _0x50cfb8=_0x446bcd['getFirstMarker']();this['_model']['change'](_0x37bbec=>{_0x37bbec['updateMarker'](_0x50cfb8,{'range':_0xeaf2b3});});}['_addThreadToSuggestion'](_0x21b216){const _0x19b94c=_0x21b216['id'],_0x1161dd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x19b94c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1161dd,'threadId':_0x19b94c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x452d7e=this['_commentsRepository']['getCommentThread'](_0x19b94c);_0x452d7e['unbind']('isRemovable'),_0x452d7e['isRemovable']=!0x1,_0x21b216['commentThread']=_0x452d7e;}['_checkSuggestionCorrectness'](_0x1b20ec,_0x2aa47c,_0x5228e1,_0x2fa92c){if(_0x1b20ec['type']!=_0x2aa47c||_0x1b20ec['subType']!=_0x5228e1||_0x1b20ec['creator']['id']!=_0x2fa92c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x52970e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2a0b40,_0x3e53ac){const _0x59e207=_0x2a0b40['getFirstRange']();if(_0x3e53ac['isEqual'](_0x59e207))_0x2a0b40['removeMarkers']();else{if(_0x59e207['containsRange'](_0x3e53ac)){const _0x195c33=this['_model']['createPositionAt'](_0x3e53ac['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2a0b40,this['_model']['createRange'](_0x59e207['start'],_0x195c33));const _0x9b914f=_0x392169(),_0x526087=_0x2a0b40['creator']['id'],_0x17e36b=_0x2a0b40['type']+':'+_0x2a0b40['subType'];this['_setSuggestionData']({'id':_0x9b914f,'type':_0x17e36b,'createdAt':new Date(),'authorId':_0x526087,'data':_0x2a0b40['data'],'attributes':_0x2a0b40['attributes']});const _0x3c1d72=this['_model']['createPositionAt'](_0x3e53ac['end']['parent'],'after'),_0x1a1fff=this['_model']['createRange'](_0x3c1d72,_0x59e207['end']);this['_addSuggestionMarker'](_0x17e36b,_0x9b914f,_0x526087,_0x1a1fff);}else{if(_0x59e207['containsPosition'](_0x3e53ac['start'])){const _0x3010ca=this['_model']['createPositionAt'](_0x3e53ac['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2a0b40,this['_model']['createRange'](_0x59e207['start'],_0x3010ca));}else{const _0x5a912a=this['_model']['createPositionAt'](_0x3e53ac['end']['parent'],'after');this['_setSuggestionRange'](_0x2a0b40,this['_model']['createRange'](_0x5a912a,_0x59e207['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5e61bc){for(const {suggestion:_0x11f1eb,meta:_0x5e153c}of this['_findSuggestions'](_0x5e61bc,'insertion')){if(!_0x5e153c['isOwn'])continue;const _0x354ef4=_0x11f1eb['getRanges']();for(const _0x24b43f of _0x354ef4)if(!_0x5e61bc['getDifference'](_0x24b43f)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x448067){const _0xe8b469=this['editor']['plugins']['get']('Users')['getUser'](_0x448067);if(!_0xe8b469)throw new _0x52970e('track-changes-user-not-found',this);return _0xe8b469;}['_getExternalAuthor'](_0x1e9373){const _0x723779=this['editor']['plugins']['get']('Users'),_0x138a13=_0x227004('external:'+_0x1e9373),_0x6c144b=_0x723779['getUser'](_0x138a13);return _0x6c144b||_0x723779['addUser']({'id':_0x138a13,'name':_0x1e9373});}['_createSuggestion'](_0x4e044a,_0x2484af,_0x38d27a,_0x2a2aaf,_0x14a042){const _0x1cae97=this['_getAuthorFromId'](_0x2a2aaf),_0x42f400=this['_suggestionFactory']['buildSuggestion'](_0x4e044a,_0x2484af,_0x38d27a,_0x1cae97,_0x14a042,_0x471bbb=>{this['_updateSuggestionData'](_0x38d27a,{'attributes':_0x471bbb});const _0x58e1e3=this['getSuggestion'](_0x38d27a);this['_joinWithAdjacentSuggestions'](new Set([_0x58e1e3])),this['_refreshSuggestionsChain'](new Set([_0x58e1e3]));});return this['listenTo'](_0x42f400,'accept',()=>{this['_updateSuggestionData'](_0x38d27a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x42f400,'discard',()=>{this['_updateSuggestionData'](_0x38d27a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x38d27a,_0x42f400),this['_suggestionState']['set'](_0x42f400,'notReady'),_0x42f400;}['_splitMarkerName'](_0x213a45){const _0x2a0337=_0x213a45['split'](':');return{'group':_0x2a0337[0x0],'type':_0x2a0337[0x1],'subType':_0x2a0337['length']>=0x5?_0x2a0337[0x2]:null,'id':_0x2a0337['length']<0x5?_0x2a0337[0x2]:_0x2a0337[0x3],'authorId':_0x2a0337['length']<0x5?_0x2a0337[0x3]:_0x2a0337[0x4],'markerCount':0x6==_0x2a0337['length']?_0x2a0337[0x5]:null};}['_breakSuggestionMarker'](_0x5a7f26,_0xb06549,_0x1ca3ba){const _0x431ccf=_0x5a7f26['getFirstRange'](),_0x206818=_0x431ccf['start'],_0x5f5e0f=_0x431ccf['end'];this['_setSuggestionRange'](_0x5a7f26,this['_model']['createRange'](_0x206818,_0xb06549));const _0x1f47a6=_0x392169(),_0x1e9e1e=_0x5a7f26['creator']['id'],_0x2b35a4=_0x5a7f26['type']+(_0x5a7f26['subType']?':'+_0x5a7f26['subType']:'');this['_setSuggestionData']({'id':_0x1f47a6,'type':_0x2b35a4,'createdAt':new Date(),'authorId':_0x1e9e1e,'originalSuggestionId':_0x5a7f26['id'],'attributes':_0x5a7f26['attributes'],'data':_0x5a7f26['data']});const _0x2879a5=this['_getAttributeKey'](_0x5a7f26);('formatBlock'==_0x5a7f26['type']||_0x2879a5&&this['_isBlockAttribute'](_0x2879a5))&&(_0x1ca3ba=this['_model']['createPositionBefore'](_0x1ca3ba['parent'])),this['_addSuggestionMarker'](_0x2b35a4,_0x1f47a6,_0x1e9e1e,this['_model']['createRange'](_0x1ca3ba,_0x5f5e0f));}['_findSuggestions'](_0x54c6e0,_0x283233=null){const _0x9f613b=[],_0x35a729=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x54c6e0)||(_0x54c6e0=[_0x54c6e0]);for(const _0x34fe02 of this['getSuggestions']()){if(!_0x34fe02['isInContent'])continue;if(_0x283233&&_0x34fe02['type']!=_0x283233)continue;let _0x3fb62a=!0x1;for(const _0x2fa1fb of _0x34fe02['getRanges']()){for(const _0x17f82c of _0x54c6e0){const _0x57ffe8=_0x17f82c['start']['isEqual'](_0x2fa1fb['end'])||_0x17f82c['end']['isEqual'](_0x2fa1fb['start']);if(_0x57ffe8||_0x17f82c['getIntersection'](_0x2fa1fb)){const _0x31999f=_0x17f82c['containsRange'](_0x2fa1fb)&&Gt(this['_model']['schema'],_0x2fa1fb['start'],_0x17f82c),_0x4a7cb4=_0x2fa1fb['containsRange'](_0x17f82c)&&Gt(this['_model']['schema'],_0x17f82c['start'],_0x2fa1fb);_0x9f613b['push']({'suggestion':_0x34fe02,'meta':{'isOwn':_0x35a729==_0x34fe02['author'],'isNextTo':_0x57ffe8,'isInsideObject':_0x31999f,'containsRangeInObject':_0x4a7cb4}}),_0x3fb62a=!0x0;break;}}if(_0x3fb62a)break;}}return _0x9f613b;}['_addSuggestionMarker'](_0x351012,_0x516e04,_0x2f68e2,_0x32a1a9,_0x5aeee2){this['_model']['change'](_0x221561=>{let _0x50ee6f='suggestion:'+_0x351012+':'+_0x516e04+':'+_0x2f68e2;_0x5aeee2&&(_0x50ee6f=_0x50ee6f+':'+_0x5aeee2),_0x221561['addMarker'](_0x50ee6f,{'range':_0x32a1a9,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x55733e){const _0x2feeda=_0x55733e['previous'],_0xb737be=_0x55733e['next'];_0x55733e['previous']=null,_0x55733e['next']=null,null!=_0x2feeda&&_0x2feeda['next']==_0x55733e&&(_0x2feeda['next']=_0xb737be),null!=_0xb737be&&_0xb737be['previous']==_0x55733e&&(_0xb737be['previous']=_0x2feeda),'ready'==this['_suggestionState']['get'](_0x55733e)&&(this['_suggestionState']['set'](_0x55733e,'removed'),this['fire']('suggestionUnloaded',_0x55733e,_0x2feeda,_0xb737be));}['_setSuggestionData'](_0x36060d){const _0x62f4b9=_0x36060d['id'],_0x5a1666=this['addSuggestionData'](_0x36060d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1ab487=this['editor']['plugins']['get']('PendingActions'),_0x3e9bbb=_0x5a1666['hasComments'],_0x44bfa1=_0x5a1666['subType']?_0x5a1666['type']+':'+_0x5a1666['subType']:_0x5a1666['type'],_0x30871b=this['editor']['locale'],_0x4e19aa=_0x1ab487['add'](o(_0x30871b,'PENDING_ACTION_SUGGESTION')),_0x121f46={'id':_0x62f4b9,'type':_0x44bfa1,'hasComments':_0x3e9bbb,'data':_0x36060d['data']||null,'originalSuggestionId':_0x36060d['originalSuggestionId']||null,'attributes':_0x5a1666['attributes']};this['_adapter']['addSuggestion'](_0x121f46)['then'](_0x185875=>{_0x5a1666['_saved']=!0x0,_0x1ab487['remove'](_0x4e19aa),_0x185875&&_0x185875['createdAt']&&(this['_suggestions']['get'](_0x62f4b9)['createdAt']=_0x185875['createdAt']);})['catch'](_0xcb1b16=>{throw _0x976cd3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5a1666['discard']();}),_0x5a1666['stopListening'](),this['_suggestions']['delete'](_0x5a1666['id']),this['_suggestionState']['delete'](_0x5a1666),_0xcb1b16;});}return _0x5a1666;}['_isBlockAttribute'](_0x1b5930){return this['_blockAttributeKeys']['has'](_0x1b5930);}['_updateSuggestionData'](_0x6da798,_0x1e5c74){const _0x574631=this['editor']['plugins']['get']('PendingActions'),_0x449558=this['getSuggestion'](_0x6da798);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x449558['_saved']){const _0x324b27=_0x574631['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x6da798,_0x1e5c74)['then'](()=>{_0x574631['remove'](_0x324b27);});}else _0x449558['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x6da798,_0x1e5c74);});}}['_getSuggestionData'](_0x2ab5d1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x52970e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2ab5d1);}['_handleNewSuggestionMarker'](_0x48bc21){const {id:_0x3f825a,type:_0x1ad842,subType:_0x44c530,authorId:_0x4e731a}=this['_splitMarkerName'](_0x48bc21),_0x255cc8=this['_suggestions']['get'](_0x3f825a)||this['_createSuggestion'](_0x1ad842,_0x44c530,_0x3f825a,_0x4e731a,{});switch(this['_checkSuggestionCorrectness'](_0x255cc8,_0x1ad842,_0x44c530,_0x4e731a),this['_suggestionState']['get'](_0x255cc8)){case'notReady':this['_getSuggestionData'](_0x3f825a)['then'](_0x342214=>{let _0x36bd07=Promise['resolve']();_0x342214['hasComments']&&(_0x36bd07=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3f825a})),_0x36bd07['then'](()=>{this['addSuggestionData'](_0x342214)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x255cc8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3f825a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x255cc8,'ready'),this['fire']('suggestionLoaded',_0x255cc8);break;case'ready':this['fire']('suggestionChanged',_0x255cc8);}return _0x255cc8['addMarkerName'](_0x48bc21),_0x255cc8;}['_refreshSuggestionsChain'](_0x61c631){const _0x48328b=Array['from'](_0x61c631),_0x5842e5=_0x48328b['filter'](_0x491e5d=>'attribute'==_0x491e5d['type']);this['_refreshAttributeSuggestionsChain'](_0x5842e5);const _0x30c8cf=_0x48328b['filter'](_0x4d7ac2=>!_0x4d7ac2['isMultiRange']&&'attribute'!=_0x4d7ac2['type']),_0x134207=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2151d6=>!_0x2151d6['isMultiRange']&&'attribute'!=_0x2151d6['type']),_0x307d31=_0x134207['filter'](_0x13bbec=>!_0x61c631['has'](_0x13bbec)),_0x4b3082=new Map(_0x134207['map'](_0x12bb7c=>[_0x12bb7c,this['_suggestionFactory']['getSuggestionCallback'](_0x12bb7c['type'],_0x12bb7c['subType'],'chain')])),_0x124dc2=new Map(_0x134207['map'](_0x5c38d8=>[_0x5c38d8,_0x5c38d8['getFirstRange']()])),_0x2bb84a=new Set(),_0x3aa6b5=new Set();for(let _0x118939=0x0;_0x118939<_0x30c8cf['length'];_0x118939++)_0x56a5ca(_0x30c8cf[_0x118939],_0x30c8cf,_0x118939+0x1);for(let _0x3656f4=0x0;_0x3656f4<_0x30c8cf['length'];_0x3656f4++)_0x56a5ca(_0x30c8cf[_0x3656f4],_0x307d31,0x0);const _0x13074f=new Set();for(let _0x313267=0x0;_0x313267<_0x30c8cf['length'];_0x313267++){const _0x4b1622=_0x30c8cf[_0x313267];!_0x3aa6b5['has'](_0x4b1622)&&_0x4b1622['previous']&&(_0x13074f['add'](_0x4b1622['previous']),_0x4b1622['previous']['next']===_0x4b1622&&(_0x4b1622['previous']['next']=null),_0x4b1622['previous']=null),!_0x2bb84a['has'](_0x4b1622)&&_0x4b1622['next']&&(_0x13074f['add'](_0x4b1622['next']),_0x4b1622['next']['previous']===_0x4b1622&&(_0x4b1622['next']['previous']=null),_0x4b1622['next']=null);}function _0x56a5ca(_0x55fecd,_0x465e60,_0x334a7c){for(let _0x2061f0=_0x334a7c;_0x2061f0<_0x465e60['length'];_0x2061f0++){const _0x2af24a=_0x4797c7(_0x55fecd,_0x465e60[_0x2061f0]);_0x2af24a&&(_0x2af24a[0x0]['next']=_0x2af24a[0x1],_0x2af24a[0x1]['previous']=_0x2af24a[0x0],_0x2bb84a['add'](_0x2af24a[0x0]),_0x3aa6b5['add'](_0x2af24a[0x1]));}}function _0x4797c7(_0x4c4036,_0x4e1a4f){if(_0x4c4036['author']['id']!==_0x4e1a4f['author']['id'])return null;const _0xbeeb78=_0x4b3082['get'](_0x4c4036)(_0x4c4036,_0x4e1a4f,_0x124dc2['get'](_0x4c4036),_0x124dc2['get'](_0x4e1a4f));if(!_0xbeeb78)return null;return _0x4b3082['get'](_0x4e1a4f)(_0x4c4036,_0x4e1a4f,_0x124dc2['get'](_0x4c4036),_0x124dc2['get'](_0x4e1a4f))?_0xbeeb78[0x1]['commentThread']&&_0xbeeb78[0x1]['commentThread']['length']?null:_0xbeeb78:null;}_0x13074f['size']&&this['_refreshSuggestionsChain'](_0x13074f);}['_refreshAttributeSuggestionsChain'](_0x4fd818){if(0x0==_0x4fd818['length'])return;const _0x10d2ee=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x508741=>'attribute'==_0x508741['type']&&_0x508741['_isDataLoaded']),_0x4c55ab=[],_0x41c3ef=new Map();for(const _0x3a93e9 of _0x10d2ee){const _0x4dc403=_0x227004(_0x3a93e9['attributes']);_0x41c3ef['has'](_0x4dc403)||(_0x41c3ef['set'](_0x4dc403,_0x4c55ab['length']),_0x4c55ab['push']([]));const _0x52e574=_0x41c3ef['get'](_0x4dc403);_0x4c55ab[_0x52e574]['push'](_0x3a93e9);}!(function(){_0x4c55ab['sort']((_0x36f3b5,_0x1fd647)=>{const _0x1043b7=_0x36f3b5[0x0]['createdAt'],_0x5ac2fa=_0x1fd647[0x0]['createdAt'];return _0x1043b7==_0x5ac2fa?_0x36f3b5[0x0]['attributes']['groupId']<_0x1fd647[0x0]['attributes']['groupId']?-0x1:0x1:_0x1043b7<_0x5ac2fa?-0x1:0x1;});for(const _0xb62554 of _0x4c55ab)_0xb62554['sort']((_0x48d48a,_0x13b790)=>_0x48d48a['id']<_0x13b790['id']?-0x1:0x1);}());for(let _0x390f98=0x0;_0x390f98<_0x4c55ab['length'];_0x390f98++){if(0x0==_0x4c55ab[_0x390f98]['length'])continue;const _0x4d742f=[];for(let _0x325ac8=_0x390f98+0x1;_0x325ac8<_0x4c55ab['length'];_0x325ac8++)0x0!=_0x4c55ab[_0x325ac8]['length']&&_0x467f53(_0x4c55ab[_0x390f98],_0x4c55ab[_0x325ac8])&&_0x4d742f['push'](_0x325ac8);for(const _0x4371c4 of _0x4d742f)_0x4c55ab[_0x390f98]=_0x4c55ab[_0x390f98]['concat'](_0x4c55ab[_0x4371c4]),_0x4c55ab[_0x4371c4]=[];}for(const _0x3e5fc1 of _0x4c55ab)for(let _0x4faf25=0x0;_0x4faf25<_0x3e5fc1['length'];_0x4faf25++){const _0x5cf966=_0x3e5fc1[_0x4faf25+0x1]||null;_0x3e5fc1[_0x4faf25]['next']!==_0x5cf966&&(_0x3e5fc1[_0x4faf25]['next']=_0x5cf966);}for(const _0x1309ad of _0x4c55ab)for(let _0x5767ea=0x0;_0x5767ea<_0x1309ad['length'];_0x5767ea++){const _0x2ac77b=_0x1309ad[_0x5767ea-0x1]||null;_0x1309ad[_0x5767ea]['previous']!==_0x2ac77b&&(_0x1309ad[_0x5767ea]['previous']=_0x2ac77b);}function _0x467f53(_0x504d1e,_0x172d0e){if(_0x504d1e[0x0]['attributes']['groupId']!==_0x172d0e[0x0]['attributes']['groupId']&&_0x504d1e[0x0]['author']!==_0x172d0e[0x0]['author'])return!0x1;if(!function(_0x4a0845,_0x460c76){if(!_0x4a0845['hasComments']&&!_0x460c76['hasComments'])return!0x0;if(_0x4a0845['hasComments']&&_0x460c76['hasComments'])return!0x1;if(_0x4a0845['hasComments']&&_0x460c76['createdAt']<_0x4a0845['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x460c76['hasComments']&&_0x4a0845['createdAt']<_0x460c76['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x504d1e[0x0],_0x172d0e[0x0]))return!0x1;const _0x4664d3=Vt(_0x504d1e[0x0]['attributes'],'groupId'),_0x39779b=Vt(_0x172d0e[0x0]['attributes'],'groupId');if(!_0x4900c1(_0x4664d3,_0x39779b))return!0x1;return!!_0x504d1e['every'](_0x263278=>_0x172d0e['some'](_0x58b2d1=>_0x263278['getFirstRange']()['isEqual'](_0x58b2d1['getFirstRange']())))&&_0x172d0e['every'](_0x38d353=>_0x504d1e['some'](_0x5214a2=>_0x38d353['getFirstRange']()['isEqual'](_0x5214a2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5f3c46){const _0x593d00=Array['from'](_0x5f3c46),_0x185834=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3ac2b3=_0x185834['filter'](_0x29ad82=>!_0x5f3c46['has'](_0x29ad82)),_0x3fcc06=new Map(_0x593d00['map'](_0x2aece0=>[_0x2aece0,this['_suggestionFactory']['getSuggestionCallback'](_0x2aece0['type'],_0x2aece0['subType'],'join')])),_0x48d4f5=new Map(_0x185834['map'](_0x35664a=>[_0x35664a,_0x35664a['getRanges']()]));for(let _0x1db6e3=0x0;_0x1db6e3<_0x593d00['length'];_0x1db6e3++){if(_0x4c036a(this,_0x593d00[_0x1db6e3],_0x593d00,_0x1db6e3+0x1))return!0x0;}for(let _0x420f8f=0x0;_0x420f8f<_0x593d00['length'];_0x420f8f++){if(_0x4c036a(this,_0x593d00[_0x420f8f],_0x3ac2b3,0x0))return!0x0;}return!0x1;function _0x4c036a(_0x53cf0c,_0x229af9,_0x2718c5,_0x17c562){for(let _0x1cbc93=_0x17c562;_0x1cbc93<_0x2718c5['length'];_0x1cbc93++){const _0x5d04ff=_0x2718c5[_0x1cbc93];if(_0x5d04ff['type']!==_0x229af9['type']||_0x5d04ff['author']['id']!==_0x229af9['author']['id']||_0x5d04ff['subType']!==_0x229af9['subType'])continue;if(!Wt(_0x229af9,_0x5d04ff))continue;if('attribute'==_0x229af9['type']&&_0x229af9['data']['oldValue']!=_0x5d04ff['data']['oldValue'])continue;if('attribute'==_0x229af9['type']&&_0x53cf0c['_isBlockAttribute'](_0x229af9['data']['key']))continue;if('formatBlock'==_0x229af9['type']){const _0x43f69f=_0x53cf0c['editor']['model'],_0x4d3eaf=_0x229af9['getContainedElement']();if(_0x4d3eaf&&(_0x43f69f['schema']['isObject'](_0x4d3eaf)||_0x43f69f['schema']['isLimit'](_0x4d3eaf)))continue;}const _0x44aecc=_0x3fcc06['get'](_0x229af9),_0x245d20=_0x48d4f5['get'](_0x229af9),_0x1e27e6=_0x48d4f5['get'](_0x5d04ff),_0x201a0a=_0x229af9['commentThread']&&_0x229af9['commentThread']['length'],_0x326537=_0x5d04ff['commentThread']&&_0x5d04ff['commentThread']['length'];if(!_0x201a0a&&_0x44aecc(_0x1e27e6,_0x245d20))return _0x53cf0c['_joinSuggestions'](_0x5d04ff,_0x229af9),_0x48d4f5['delete'](_0x229af9),!0x0;if(!_0x326537&&_0x44aecc(_0x245d20,_0x1e27e6))return _0x53cf0c['_joinSuggestions'](_0x229af9,_0x5d04ff),_0x48d4f5['delete'](_0x5d04ff),!0x0;}return!0x1;}}['_joinSuggestions'](_0x31f860,_0x4e96f9){if(_0x31f860['isMultiRange']){for(const _0x1a57f7 of _0x4e96f9['getRanges']())_0x31f860['addRange'](_0x1a57f7);}else{const _0x2dfc6d=_0x4e96f9['getFirstRange']()['end'];this['_setSuggestionRange'](_0x31f860,this['_model']['createRange'](_0x31f860['getFirstRange']()['start'],_0x2dfc6d));}_0x4e96f9['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4c0d6a,_0xbbe076,_0x4632e1){const _0x53b3c9=_0x4c0d6a['startsWith']('format')||_0x4c0d6a['startsWith']('attribute')?'FORMATTING':_0x4c0d6a['toUpperCase']();return o(this['editor']['locale'],_0xbbe076+'_'+_0x53b3c9+'_SUGGESTION_ANNOUNCEMENT',_0x4632e1);}['_initAriaMarkerChangeAnnouncements'](){const _0x35d83a=this['editor'];if(!_0x35d83a['ui'])return;const {ariaLiveAnnouncer:_0x1a02d3}=_0x35d83a['ui'];_0x2892ac(this['_model'],({left:_0x86804d,entered:_0x43b995})=>{for(const _0x1fc18e of _0x86804d){const {group:_0x20edd1,type:_0x4a502e}=this['_splitMarkerName'](_0x1fc18e['name']);if('suggestion'===_0x20edd1){_0x1a02d3['announce'](this['_getMarkerAnnouncementText'](_0x4a502e,'LEAVE'));break;}}for(const _0x37ea68 of _0x43b995){const {group:_0x229a58,type:_0x313233}=this['_splitMarkerName'](_0x37ea68['name']);if('suggestion'===_0x229a58){_0x1a02d3['announce'](this['_getMarkerAnnouncementText'](_0x313233,'ENTER',_0x3e023e(_0xbe1f1f)));break;}}});}['_processAttributeChanges'](_0xb37425){if(this['_recordAttributeSuggestions'])return!0x1;const _0xb4a661=this['editor'],_0x4c413d=_0xb4a661['model']['document']['differ']['getChanges']();if(0x0==_0x4c413d['length'])return!0x1;const _0x4a76da=[],_0x409f0a=_0x4c413d['filter'](_0x2595a5=>'attribute'==_0x2595a5['type']),_0x2c3380=_0x4c413d['filter'](_0x33a820=>'insert'==_0x33a820['type']&&'$text'!=_0x33a820['name']),_0x4ce7c6=_0x4c413d['filter'](_0xb49340=>'remove'==_0xb49340['type']&&'$text'!=_0xb49340['name']);for(const _0x2cb03d of _0x409f0a)_0x4a76da['push']({'key':_0x2cb03d['attributeKey'],'newValue':_0x2cb03d['attributeNewValue'],'oldValue':_0x2cb03d['attributeOldValue'],'range':qt(_0x2cb03d['range'],_0xb4a661['model'])});for(const _0x53a32e of _0x2c3380){const _0x2befbf=_0x4ce7c6['find'](_0x1847d1=>_0x1847d1['position']['isEqual'](_0x53a32e['position']));_0x2befbf&&_0x4a76da['push']({'key':m,'newValue':_0x53a32e['name'],'oldValue':_0x2befbf['name'],'range':_0xb4a661['model']['createRangeOn'](_0x53a32e['position']['nodeAfter'])});}return 0x0!=_0x4a76da['length']&&this['_reduceExistingSuggestions'](_0xb37425,_0x4a76da);}['_processAttributeSuggestions'](_0x1e55a8){let _0x1c3724=!0x1;const _0x3f16cd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4a789b=>_0x4a789b['data']['newRange']&&_0x4a789b['name']['startsWith']('suggestion:attribute:'));for(const _0x2420c0 of _0x3f16cd){const {subType:_0x27b0ab,id:_0x2fe400}=this['_splitMarkerName'](_0x2420c0['name']),_0x3804bd=_0x27b0ab['split']('|')[0x0];for(const _0x338ffb of this['getSuggestions']({'skipNotAttached':!0x0}))_0x338ffb['id']!=_0x2fe400&&'attribute'==_0x338ffb['type']&&_0x338ffb['data']&&_0x338ffb['data']['key']==_0x3804bd&&_0x338ffb['getFirstRange']()['isIntersecting'](_0x2420c0['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x338ffb,_0x2420c0['data']['newRange'],_0x1e55a8),_0x1c3724=!0x0);}return _0x1c3724;}['_recordAttributeChanges'](_0x4cc8a9){this['_recordAttributeSuggestions']=!0x0,_0x4cc8a9();}['_isRegisteredAttribute'](_0x550518){const _0x5a7b62=this['_isBlockAttribute'](_0x550518),_0x38f663=this['_inlineAttributeKeys']['has'](_0x550518);return _0x5a7b62||_0x38f663;}['_reduceExistingSuggestions'](_0x5b0404,_0x196f4b){if(0x0==_0x196f4b['length'])return!0x1;let _0x3ad6bd=!0x1;for(const _0x301655 of _0x196f4b){const _0x395662=this['_findSuggestions'](_0x301655['range'],'attribute')['filter'](_0x317d8a=>!_0x317d8a['meta']['isNextTo'])['map'](_0x436aa5=>_0x436aa5['suggestion']),_0x525f98=_0x227004({'newValue':_0x301655['newValue']});_0x395662['filter'](_0x473bb9=>{const [_0x18682b,_0x12bcb2]=_0x473bb9['subType']['split']('|');return _0x18682b==_0x301655['key']&&_0x12bcb2!=_0x525f98;})['forEach'](_0x4375c5=>{this['_reduceSuggestionAttributeRange'](_0x4375c5,_0x301655['range'],_0x5b0404),_0x3ad6bd=!0x0;});}return _0x3ad6bd;}['_reduceSuggestionAttributeRange'](_0x1fe5c8,_0x35c8ab,_0x422cbb){const _0x37c6b5=_0x1fe5c8['getFirstRange']()['getDifference'](_0x35c8ab);0x0!==_0x37c6b5['length']?0x1!==_0x37c6b5['length']?this['_breakSuggestionMarker'](_0x1fe5c8,_0x35c8ab['start'],_0x35c8ab['end']):this['_setSuggestionRange'](_0x1fe5c8,_0x37c6b5[0x0]):_0x422cbb['removeMarker'](_0x1fe5c8['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1b9773){this['_editor']=_0x1b9773,this['_model']=_0x1b9773['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5f1130,_0x4b9b6d,_0x2cacd1,_0x100cc5,_0x5e71ed,_0x46231b){return new u(this['_model'],{'type':_0x5f1130,'subType':_0x4b9b6d,'id':_0x2cacd1,'author':_0x100cc5,'creator':_0x100cc5,'attributes':_0x5e71ed,'onAttributesChange':_0x46231b,'onAccept':(..._0xc8637)=>this['getSuggestionCallback'](_0x5f1130,_0x4b9b6d,'accept')(..._0xc8637),'onDiscard':(..._0x127f20)=>this['getSuggestionCallback'](_0x5f1130,_0x4b9b6d,'discard')(..._0x127f20)});}['registerCustomCallback'](_0x534c3e,_0x30e7b8,_0x42b692,_0x246d22){const _0x1d4ca8=_0x534c3e+':'+_0x30e7b8+':'+_0x42b692;this['_customCallbacks']['set'](_0x1d4ca8,_0x246d22);}['getSuggestionCallback'](_0x19c497,_0x38fefd,_0x1ce073){const _0x40f9df=_0x19c497+':'+_0x38fefd+':'+_0x1ce073;return this['_customCallbacks']['get'](_0x40f9df)||this['_defaultCallbacks']['get'](_0x19c497+':'+_0x1ce073);}['_registerDefaultCallbacks'](){const _0x511f2a=()=>!0x1,_0xaa2af6=_0x2c89ed=>{_0x2c89ed['sort']((_0x572149,_0x5066b3)=>_0x572149['start']['isBefore'](_0x5066b3['start'])?0x1:-0x1),this['_model']['change'](_0x50e355=>{for(const _0x2dce51 of _0x2c89ed){let _0x2a9a43;_0x2a9a43=_0x2dce51['end']['isAtEnd']&&_0x2dce51['end']['parent']==_0x2dce51['start']['nodeAfter']?_0x50e355['createSelection'](_0x2dce51['start']['nodeAfter'],'on'):_0x50e355['createSelection'](_0x2dce51),this['_model']['deleteContent'](_0x2a9a43,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4135c3=(_0x28ac84,_0x4cb181)=>{_0x4cb181&&this['_model']['change'](_0x167b4d=>{const {commandName:_0x47ff41,commandParams:_0x20381d=[]}=_0x4cb181,_0x204575=_0x28ac84['map'](_0x2b4ebe=>(Ft(_0x2b4ebe)&&(_0x2b4ebe=this['_model']['createRange'](_0x2b4ebe['end'])),_0x2b4ebe))['filter'](_0x4d78a5=>'$graveyard'!==_0x4d78a5['root']['rootName']);if(_0x204575['length']<0x1)return;const _0x59e225=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3dd80a=>_0x985c68['fromRange'](_0x3dd80a));_0x167b4d['setSelection'](_0x204575);for(const _0x106e6c of this['_editor']['commands']['commands']())_0x106e6c['refresh']();_0x20381d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x47ff41,..._0x20381d);const _0x2dbd00=_0x59e225['filter'](_0x38dcd5=>'$graveyard'!=_0x38dcd5['root']['rootName']);_0x2dbd00['length']>0x0&&_0x167b4d['setSelection'](_0x2dbd00);for(const _0x5c3fe0 of _0x59e225)_0x5c3fe0['detach']();});},_0x1d8361=(_0x8d7b12,_0x54bd2d)=>0x1==_0x8d7b12['length']&&0x1==_0x54bd2d['length']&&_0x8d7b12[0x0]['end']['isEqual'](_0x54bd2d[0x0]['start']),_0x2c443d=(_0x115f9d,_0x1cfb3a,_0x56302f,_0x32202d)=>Kt(_0x115f9d,_0x1cfb3a,_0x56302f,_0x32202d)?[_0x115f9d,_0x1cfb3a]:Kt(_0x1cfb3a,_0x115f9d,_0x32202d,_0x56302f)?[_0x1cfb3a,_0x115f9d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x511f2a),this['_defaultCallbacks']['set']('insertion:discard',_0xaa2af6),this['_defaultCallbacks']['set']('insertion:join',_0x1d8361),this['_defaultCallbacks']['set']('insertion:chain',_0x2c443d),this['_defaultCallbacks']['set']('deletion:accept',_0xaa2af6),this['_defaultCallbacks']['set']('deletion:discard',_0x511f2a),this['_defaultCallbacks']['set']('deletion:join',_0x1d8361),this['_defaultCallbacks']['set']('deletion:chain',_0x2c443d),this['_defaultCallbacks']['set']('formatInline:accept',_0x4135c3),this['_defaultCallbacks']['set']('formatInline:discard',_0x511f2a),this['_defaultCallbacks']['set']('formatInline:join',_0x1d8361),this['_defaultCallbacks']['set']('formatInline:chain',_0x511f2a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4135c3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x511f2a),this['_defaultCallbacks']['set']('formatBlock:join',_0x1d8361),this['_defaultCallbacks']['set']('formatBlock:chain',_0x511f2a),this['_defaultCallbacks']['set']('attribute:accept',_0x511f2a),this['_defaultCallbacks']['set']('attribute:discard',(_0x34e08e,_0x3dfded)=>{if(!_0x3dfded)return;const _0x518343=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x396901=>{if(_0x3dfded['key']==m)for(const _0x546b90 of _0x34e08e){const _0x4b13d9=_0x546b90['start']['nodeAfter'],_0x405eb2=_0x3dfded['oldValue'];_0x396901['rename'](_0x4b13d9,_0x405eb2);}else{if(_0x518343['_isBlockAttribute'](_0x3dfded['key'])){for(const _0x5697e5 of _0x34e08e)void 0x0!==_0x3dfded['oldValue']?_0x396901['setAttribute'](_0x3dfded['key'],_0x3dfded['oldValue'],_0x5697e5['start']['nodeAfter']):_0x396901['removeAttribute'](_0x3dfded['key'],_0x5697e5['start']['nodeAfter']);}else{for(const _0x417095 of _0x34e08e)_0x3dfded['oldValue']?_0x396901['setAttribute'](_0x3dfded['key'],_0x3dfded['oldValue'],_0x417095):_0x396901['removeAttribute'](_0x3dfded['key'],_0x417095);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1d8361);}}function Gt(_0x10ae10,_0x5787af,_0x356076){for(const _0x4d15b7 of _0x5787af['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4d15b7['root']==_0x4d15b7)return!0x1;if(!_0x356076['containsItem'](_0x4d15b7))return!0x1;if(_0x10ae10['isObject'](_0x4d15b7)||_0x10ae10['isLimit'](_0x4d15b7))return!0x0;}return!0x1;}function Ft(_0x2b3db7){return _0x2b3db7['end']['parent']==_0x2b3db7['start']['nodeAfter']&&_0x2b3db7['end']['isAtStart'];}function Lt(_0x3307ae,_0x308bdb,_0x59f67b,_0x528978){const _0x1f0907=_0x1ab279=>!_0x1ab279['item']['is']('$textProxy')&&!_0x528978['isObject'](_0x1ab279['item']),_0x3994d8=_0x3307ae['start']['getLastMatchingPosition'](_0x1f0907),_0x328bed=_0x3307ae['end']['getLastMatchingPosition'](_0x1f0907,{'direction':'backward'});return(!_0x3307ae['start']['isEqual'](_0x3994d8)||!_0x3307ae['end']['isEqual'](_0x328bed))&&(_0x3994d8['isBefore'](_0x328bed)?_0x59f67b['updateMarker'](_0x308bdb,{'range':_0x59f67b['createRange'](_0x3994d8,_0x328bed)}):_0x59f67b['removeMarker'](_0x308bdb),!0x0);}function Jt(_0x423b65){return _0x227004(_0x423b65);}function Ht(_0x4ec0dd){const _0x5565c9=_0x4ec0dd['start']['nodeAfter'];return _0x5565c9&&_0x5565c9['is']('element');}function qt(_0x474d2d,_0x305f28){return null==_0x474d2d['end']['nodeBefore']&&_0x474d2d['end']['parent']==_0x474d2d['start']['nodeAfter']?zt(_0x474d2d['start']['nodeAfter'],_0x305f28):_0x474d2d;}function zt(_0x24d9bd,_0x38f904){const _0x27eeec=_0x38f904['schema']['isObject'](_0x24d9bd)||_0x38f904['schema']['isSelectable'](_0x24d9bd);return _0x38f904['createRange'](_0x38f904['createPositionAt'](_0x24d9bd,'before'),_0x27eeec?_0x38f904['createPositionAfter'](_0x24d9bd):_0x38f904['createPositionAt'](_0x24d9bd,'end'));}function Kt(_0x221d3e,_0x3ed51c,_0x1e4562,_0x17ff5c){return!!Wt(_0x221d3e,_0x3ed51c)&&_0x1e4562['end']['isEqual'](_0x17ff5c['start']);}function Wt(_0x138b2b,_0x5c28d6){if(!_0x138b2b['_isDataLoaded']||!_0x5c28d6['_isDataLoaded'])return!0x1;const _0x24bf69=new Set(Object['keys'](_0x138b2b['attributes'])),_0x2aa5e0=new Set(Object['keys'](_0x5c28d6['attributes']));if(_0x24bf69['delete']('groupId'),_0x2aa5e0['delete']('groupId'),0x0==_0x24bf69['size']&&0x0==_0x2aa5e0['size'])return!0x0;if(_0x24bf69['size']!=_0x2aa5e0['size'])return!0x1;const _0xce5018={..._0x138b2b['attributes']},_0x1faf7c={..._0x5c28d6['attributes']};return delete _0xce5018['groupId'],delete _0x1faf7c['groupId'],JSON['stringify'](_0xce5018)==JSON['stringify'](_0x1faf7c);}function Qt(_0x5953a6,_0x9e220a){const _0x429fb8=Xt(_0x5953a6['attributes']),_0x2f2435=Xt(_0x9e220a);if(!_0x5953a6['_isDataLoaded'])return!0x1;for(const _0x3934ac of Object['keys'](_0x2f2435))if(!_0x4900c1(_0x429fb8[_0x3934ac],_0x2f2435[_0x3934ac]))return!0x1;return!0x0;}function Xt(_0x34e4b5){const _0x2c9780=Object['assign']({},_0x34e4b5);return delete _0x2c9780['skipNestingCheck'],delete _0x2c9780['tablePasteChainId'],_0x2c9780;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0xa330e0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x43b797,_0x6ed787,_0x3409c9,_0x18f47b){super(),this['model']=_0x6ed787,this['view']=_0x3409c9,this['commentThreadController']=_0x18f47b,this['_editor']=_0x43b797,this['_acceptCommand']=_0x43b797['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x43b797['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x109073,_0x4c97f9)=>_0x109073||_0x4c97f9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xce2463=>_0xce2463&&this['_editor']['model']['canEditAt'](_0x6ed787['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x317b0a=>_0x317b0a&&this['_editor']['model']['canEditAt'](_0x6ed787['getRanges']())),this['_pendingAction']=null,_0x3409c9['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3409c9,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3409c9,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3409c9,'change:isDirty',()=>{_0x3409c9['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 _0x5eeda7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5eeda7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x5f1e52{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x29b788,_0x1ca2d4,_0x39ae12,_0x3c60a8){super(_0x29b788),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5c88cb(_0x29b788,o(_0x29b788,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1ca2d4['authoredAt']),this['bind']('authoredAt')['to'](_0x1ca2d4),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',_0x1ca2d4,'authoredAt',this,'descriptionParts',(_0x543657,_0xb27a25,_0x2fc662)=>{const _0xbd259f=_0x2fc662['map'](_0x562e88=>cs(_0x562e88['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x543657-0x1,_0x1ca2d4['author']['name'],_0xb27a25?_0x3c60a8['formatDateTime'](_0xb27a25):'',new DOMParser()['parseFromString'](_0xbd259f,'text/html')['body']['textContent']]);}),this['focusables']=new _0x115911(),this['focusTracker']=new _0x2481a0(),this['keystrokes']=new _0x458e64(),this['focusCycler']=new _0x43c9e4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x42f6be=>_0x42f6be['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1ca2d4,this['_localUser']=_0x39ae12,this['_config']=_0x3c60a8,_0x3c60a8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2d4cb7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x435141}=this['_config'];this['commentsListView']=new _0x435141(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',_0x58939e=>_0x58939e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1c33bf,_0x1dac1c)=>_0x1c33bf||!!_0x1dac1c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x41278d}=this['_config'],_0x5d9d39=new _0x41278d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3466ac=_0x5d9d39['commentInputView'];return _0x5d9d39['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3466ac,'value',(_0x5e73b7,_0xdb8f47,_0x531665)=>!!_0x531665||_0x5e73b7&&!_0xdb8f47),_0x3466ac['on']('submit',(_0x2519f2,_0x255a93)=>{this['fire']('addComment',_0x255a93),_0x3466ac['editor']['setData']('');}),_0x3466ac['on']('cancel',()=>this['focus']()),_0x3466ac['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5d9d39;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x356975,_0x1a1534,_0x2a3bda,_0x566df4){super(_0x356975,_0x1a1534,_0x2a3bda,_0x566df4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x593b25=>_0x593b25&&_0x593b25[0x0]?_0x593b25[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3f5bc0,_0x454799)=>{let _0x554f06='';for(const _0x56435d of _0x3f5bc0)_0x554f06+='<p>'+cs(_0x56435d['content'],_0x56435d['color'])+'</p>';return _0x454799?_0x554f06:_0x4ddd8f(_0x554f06,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x566df4['SuggestionView'](_0x356975,_0x1a1534,{'formatDateTime':_0x566df4['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 _0x881aae=this['bindTemplate'],_0x29c2b3=[this['suggestionView']];return this['commentsListView']&&_0x29c2b3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x29c2b3['push'](this['commentThreadInputView']),_0x29c2b3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x881aae['if']('isActive','ck-suggestion-wrapper--active'),_0x881aae['to']('type',_0x46687f=>'ck-suggestion-'+_0x46687f),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':_0x881aae['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x29c2b3};}['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 _0x5f1e52{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x38e686,_0x497592,_0x3bf7b8){super(_0x38e686),this['_model']=_0x497592,this['_config']=_0x3bf7b8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x497592),this['acceptButton']=this['_createButton'](o(_0x38e686,'Accept\x20suggestion'),_0xb530aa['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x38e686,'Discard\x20suggestion'),_0xb530aa['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x142551(_0x38e686,_0x497592['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x115911([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2481a0(),this['keystrokes']=new _0x458e64(),this['focusCycler']=new _0x43c9e4({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3afcc8=>_0x3afcc8['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5859ed=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5859ed['innerHTML']=this['description'],this['on']('change:description',(_0x551c0e,_0x3640c2,_0x3d039f)=>{_0x5859ed['innerHTML']=_0x3d039f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x29f565=this['bindTemplate'],_0x45a30c=[{'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':_0x29f565['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x29f565['to']('authoredAt',_0x5b4848=>this['_config']['formatDateTime'](_0x5b4848))}]}]},{'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']&&_0x45a30c['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':_0x45a30c}]};}['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'](_0x1ffbcf,_0x5adcbf,_0x12ed09,_0x35b495,_0x486dd4){const _0x170eb3=new _0x5e5eb9(this['locale']);return _0x170eb3['set']({'label':_0x1ffbcf,'icon':_0x5adcbf,'tooltip':!0x0,'tooltipPosition':_0x486dd4}),_0x170eb3['extendTemplate']({'attributes':{'class':_0x12ed09}}),_0x170eb3['on']('execute',()=>{this['fire'](_0x35b495,this['_model']['id']);}),_0x170eb3;}['_setupKeyboardNavigation'](){const _0x4d1657=this['element'];this['keystrokes']['listenTo'](_0x4d1657);for(const _0x15bc84 of this['focusables'])this['focusTracker']['add'](_0x15bc84['element']),this['keystrokes']['listenTo'](_0x15bc84['element']);this['keystrokes']['set']('enter',(_0x2354eb,_0x127906)=>{_0x4d1657===_0x2354eb['target']&&(this['focusCycler']['focusFirst'](),_0x127906());}),this['keystrokes']['set']('esc',(_0x20a8b4,_0xfd6af2)=>{_0x4d1657!==_0x20a8b4['target']&&(this['focus'](),_0xfd6af2());});}}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 _0x2e08d9{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1a26af,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5d448d){super(_0x5d448d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x219550=this['editor']['config'];_0x219550['define']('trackChanges.SuggestionThreadView',pe),_0x219550['define']('trackChanges.SuggestionView',fe),_0x219550['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x219550['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x218b36,_0x42f198){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2c15ee,_0x1cd129]of this['_handleControllerBuffer']){const _0x27690e=this['_suggestionToController']['has'](_0x2c15ee);_0x27690e||_0x1cd129?_0x27690e&&_0x1cd129&&this['_destroyController'](_0x2c15ee):this['_initializeController'](_0x2c15ee);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x218b36,_0x42f198);}['init'](){const _0xb17f88=this['editor'],_0x54b5f5=_0xb17f88['plugins']['get']('TrackChangesEditing'),_0xbf459f=_0xb17f88['plugins']['get']('Annotations'),_0x1ded36=_0xb17f88['plugins']['get']('EditorAnnotations'),_0x3e314c=_0xb17f88['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1ded36['addSourceCollector'](()=>{const _0x5c8110=[];for(const [_0xf581cf,_0x40ec49]of Array['from'](this['_suggestionToController'])){const _0x4a6c2e=_0xf581cf['getAllAdjacentSuggestions'](),_0x2827fb=[];for(const _0x3d3923 of _0x4a6c2e){if(!_0x3d3923['isInContent'])continue;if(_0x3d3923['isMultiRange']){_0x2827fb['push'](..._0x3d3923['getRanges']());continue;}const _0x4e9ff1=_0x3d3923['getFirstRange']();if(_0x2827fb['length']>0x0){const _0x414855=_0x2827fb[0x0]['getJoined'](_0x4e9ff1);if(_0x414855){_0x2827fb[0x0]=_0x414855;continue;}}_0x2827fb['push'](_0x4e9ff1);}_0x5c8110['push']([_0x40ec49['view'],_0x2827fb]);}return _0x5c8110;}),this['listenTo'](_0x54b5f5,'suggestionLoaded',(_0x488c61,_0x338a71)=>{this['listenTo'](_0x338a71,'change:previous',(_0x3ac08e,_0xcae930,_0x16b4a8,_0x2f3a15)=>{_0x338a71['isInContent']&&(null==_0x16b4a8?(this['_updateController'](_0x2f3a15['head']),this['_handleSuggestionControllerDelayed'](_0x338a71,!0x1)):(this['_updateController'](_0x16b4a8['head']),null==_0x2f3a15&&this['_handleSuggestionControllerDelayed'](_0x338a71,!0x0)));}),null!==_0x338a71['previous']?this['_updateController'](_0x338a71['head']):this['_handleSuggestionControllerDelayed'](_0x338a71,!0x1);}),this['listenTo'](_0x54b5f5,'suggestionUnloaded',(_0x2d79d4,_0x1f23b6,_0x51cf90)=>{this['stopListening'](_0x1f23b6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1f23b6),this['_suggestionToController']['has'](_0x1f23b6)&&this['_destroyController'](_0x1f23b6),_0x51cf90&&this['_updateController'](_0x51cf90['head']);}),this['listenTo'](_0x54b5f5,'suggestionChanged',(_0x249421,_0xc1c642)=>{this['_updateController'](_0xc1c642);}),this['listenTo'](_0xbf459f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3e314c,'addComment',(_0x55734b,{threadId:_0x1679a6,isFromAdapter:_0x515e48})=>{if(_0x515e48||!_0x54b5f5['hasSuggestion'](_0x1679a6))return;const _0x32bc2b=_0x54b5f5['getSuggestion'](_0x1679a6);this['_suggestionToController']['get'](_0x32bc2b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x368fdb=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x21e77b;for(const _0x50b328 in _0x368fdb){const _0x2a05fc=_0x50b328,_0x39c50e=_0x368fdb[_0x2a05fc];if('trackChangesLicenseKeyValid'==_0x39c50e||'trackChangesLicenseKeyInvalid'==_0x39c50e||'trackChangesLicenseKeyExpired'==_0x39c50e||'trackChangesLicenseKeyDomainLimit'==_0x39c50e||'trackChangesLicenseKeyNotAllowed'==_0x39c50e||'trackChangesLicenseKeyEvaluationLimit'==_0x39c50e||'trackChangesLicenseKeyTrialLimit'==_0x39c50e||'trackChangesLicenseKeyUsageLimit'==_0x39c50e){delete _0x368fdb[_0x2a05fc],_0x21e77b=_0x39c50e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x21e77b&&_0x368fdb['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x21e77b&&_0x368fdb['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x21e77b&&_0x368fdb['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x21e77b&&_0x368fdb['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x21e77b&&_0x368fdb['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x21e77b&&_0x368fdb['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x21e77b&&_0x368fdb['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x120f20=this['editor']['plugins']['get']('Annotations'),_0x177aa5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa496=Array['from'](_0x120f20['activeAnnotations'],_0x354319=>_0x354319['innerView'])['filter'](_0x51beac=>this['_viewToController']['has'](_0x51beac)),_0x58b1ac=[];for(const _0x151bd2 of _0x1aa496){const _0x1c90a4=this['_viewToController']['get'](_0x151bd2)['model']['getAllAdjacentSuggestions']();_0x58b1ac['push'](..._0x1c90a4['reduce']((_0x3839a7,_0x39ec5b)=>[..._0x3839a7,..._0x39ec5b['getMarkerNames']()],[]));}_0x177aa5['activeMarkers']=_0x58b1ac;}['_addUIComponentsToFactory'](){const _0xf88ca3=this['editor'],_0x53339f=_0xf88ca3['locale'],_0x134af8=o(_0x53339f,'Track\x20changes'),_0x329afa=new _0x5238df([{'type':'switchbutton','model':new _0x23776e({'withText':!0x0,'isToggleable':!0x0,'label':_0x134af8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x23776e({'withText':!0x0,'label':o(_0x53339f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x23776e({'withText':!0x0,'label':o(_0x53339f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x23776e({'withText':!0x0,'label':o(_0x53339f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x23776e({'withText':!0x0,'label':o(_0x53339f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xf88ca3['plugins']['has']('TrackChangesPreview')&&_0x329afa['addMany']([{'type':'separator'},{'type':'button','model':new _0x23776e({'withText':!0x0,'label':o(_0x53339f,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1ac079 of _0x329afa)if(ke(_0x1ac079)){const _0x52482a=_0xf88ca3['commands']['get'](_0x1ac079['model']['commandName']);_0x1ac079['model']['bind']('isOn','isEnabled')['to'](_0x52482a,'value','isEnabled');}_0xf88ca3['ui']['componentFactory']['add']('trackChanges',_0x357242=>this['_createToolbarButton'](_0x357242,_0x329afa,_0x134af8)),_0xf88ca3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x376fae=>this['_createMenuBarMenu'](_0x376fae,_0x329afa,_0x134af8));}['_createToolbarButton'](_0x590c06,_0x408421,_0x5b3dd9){const _0xa0a6d1=_0xdebc59(_0x590c06,_0x498946),_0xd58ba0=this['editor']['commands']['get']('trackChanges');_0xa0a6d1['buttonView']['set']({'tooltip':_0x5b3dd9,'label':_0x5b3dd9,'icon':we}),_0xa0a6d1['buttonView']['bind']('isOn')['to'](_0xd58ba0,'value'),_0xa0a6d1['buttonView']['on']('execute',()=>{_0xd58ba0['execute'](),this['editor']['editing']['view']['focus']();}),_0x41b2ff(_0xa0a6d1,_0x408421,{'role':'menu'});const _0x3b5091=[];for(const _0x5d0f61 of _0x408421)ke(_0x5d0f61)&&_0x3b5091['push'](this['editor']['commands']['get'](_0x5d0f61['model']['commandName']));const _0x4ef126=_0xa0a6d1['buttonView'];return _0x4ef126['actionView']['unbind']('isEnabled'),_0x4ef126['arrowView']['unbind']('isEnabled'),_0x4ef126['actionView']['bind']('isEnabled')['to'](_0xd58ba0,'isEnabled'),_0x4ef126['arrowView']['bind']('isEnabled')['toMany'](_0x3b5091,'isEnabled',(..._0x2b837c)=>_0x2b837c['some'](_0x4ce053=>_0x4ce053)),_0xa0a6d1['on']('execute',_0x41cf0b=>{this['editor']['execute'](_0x41cf0b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xa0a6d1;}['_createMenuBarMenu'](_0x434dd5,_0x5daafb,_0xec669c){const _0x4cbf73=new _0x49c373(_0x434dd5),_0x906871=this['editor']['commands']['get']('trackChanges');_0x4cbf73['buttonView']['set']({'label':_0xec669c,'icon':we});const _0x434d09=new _0x38af2a(_0x434dd5);for(const _0x307467 of _0x5daafb){if('separator'==_0x307467['type']){_0x434d09['items']['add'](new _0x12fb5d(_0x434dd5));continue;}const _0xcdd1ca=new _0x5225fb(_0x434dd5,_0x4cbf73),_0x10b434=new _0x1358b3(_0x434dd5),_0x2cbb22=_0x307467['model'];_0x10b434['bind'](...Object['keys'](_0x2cbb22))['to'](_0x2cbb22),_0x10b434['delegate']('execute')['to'](_0x4cbf73),_0x10b434['on']('execute',()=>{this['editor']['execute'](_0x2cbb22['commandName']),this['editor']['editing']['view']['focus']();}),_0xcdd1ca['children']['add'](_0x10b434),_0x434d09['items']['add'](_0xcdd1ca);}return _0x4cbf73['bind']('isEnabled')['to'](_0x906871,'isEnabled'),_0x4cbf73['panelView']['children']['add'](_0x434d09),_0x4cbf73;}['_initializeController'](_0x791a41){const _0x1eaecb=this['editor'],_0x201b5c=_0x1eaecb['config'],_0x40574d=_0x1eaecb['plugins']['get']('Annotations'),_0x377059=_0x1eaecb['plugins']['get']('CommentsRepository'),_0x251330=_0x1eaecb['plugins']['get']('EditorAnnotations'),_0xdb4ce5=_0x1eaecb['plugins']['get'](_0x1a26af)['me'],_0x1320ea=_0x201b5c['get']('trackChanges')['SuggestionThreadView'],_0x5a8d1d=_0x201b5c['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4d9529,CommentThreadInputView:_0x10db84}=_0x1eaecb['plugins']['get']('CommentsUI');let _0x267a62,_0x49a652,_0x2102cf;this['_annotationViews']['has'](_0x791a41['id'])?(_0x49a652=this['_annotationViews']['get'](_0x791a41['id']),_0x267a62=_0x49a652['mainView']):(_0x267a62=new _0x1320ea(_0x1eaecb['locale'],_0x791a41,_0xdb4ce5,{'disableComments':this['_disableComments'],'editorConfig':{..._0x201b5c['get']('comments.editorConfig'),'licenseKey':_0x201b5c['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x201b5c['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x201b5c['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x201b5c['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x115e6d(_0x201b5c['get']('locale')),'CommentView':_0x201b5c['get']('comments')['CommentView'],'CommentsListView':_0x4d9529,'CommentThreadInputView':_0x10db84,'SuggestionView':_0x5a8d1d}),_0x267a62['suggestionView']['acceptButton']['on']('execute',()=>{_0x1eaecb['editing']['view']['focus']();}),_0x267a62['suggestionView']['discardButton']['on']('execute',()=>{_0x1eaecb['editing']['view']['focus']();}),_0x49a652=_0x40574d['createAnnotationView'](this['editor']['locale'],_0x267a62),_0x49a652['bind']('isDirty')['to'](_0x267a62,'isDirty'),_0x49a652['bind']('length')['to'](_0x267a62),_0x49a652['bind']('type')['to'](_0x267a62,'type',_0x54eb12=>'suggestion-'+_0x54eb12),_0x267a62['on']('escape',()=>{_0x2102cf['fire']('escape');}),this['_annotationViews']['set'](_0x791a41['id'],_0x49a652));const _0x43d49c=_0x377059['createCommentThreadController'](_0x791a41['commentThread'],_0x267a62),_0x4e7ff8=new Ce(_0x1eaecb,_0x791a41,_0x267a62,_0x43d49c),_0x313059=_0x791a41['getAllAdjacentSuggestions']()['filter'](_0x1145d1=>_0x1145d1['isInContent']);_0x267a62['descriptionParts']=_0x1eaecb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x313059),this['_suggestionToController']['set'](_0x791a41,_0x4e7ff8),this['_viewToController']['set'](_0x267a62,_0x4e7ff8),_0x2102cf=_0x40574d['createAnnotation']({'view':_0x49a652,'target':()=>{const _0x20937e=[],_0x5c139c=_0x791a41['getAllAdjacentSuggestions']()['filter'](_0xa8b621=>_0xa8b621['isInContent']);for(const _0x2a97e8 of _0x5c139c)_0x20937e['push'](..._0x2a97e8['getMarkers']());return _0x3dbaa0(_0x1eaecb['editing'],_0x20937e);},'type':()=>'suggestion-'+_0x4e7ff8['view']['type']}),_0x377059['_bindAnnotationToEditors'](_0x267a62,_0x2102cf),_0x40574d['add'](_0x2102cf),_0x251330['registerAnnotation'](_0x2102cf);}['_destroyController'](_0x195e4b){const _0x16beb8=this['editor']['plugins']['get']('CommentsRepository'),_0x2b31db=this['editor']['plugins']['get']('Annotations'),_0x2bed7b=this['_suggestionToController']['get'](_0x195e4b),_0x45a094=_0x2bed7b['view'],_0x26391d=_0x2b31db['getByInnerView'](_0x45a094);_0x16beb8['_unbindEditors'](_0x45a094),_0x26391d&&_0x2b31db['remove'](_0x26391d),this['_suggestionToController']['delete'](_0x195e4b),this['_viewToController']['delete'](_0x45a094),_0x2bed7b['destroy']();}['_updateController'](_0x572bfe){if(!_0x572bfe['isInContent']||!this['_suggestionToController']['has'](_0x572bfe))return;const _0x529c27=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49e7bd=this['_suggestionToController']['get'](_0x572bfe),_0x4e6703=_0x572bfe['getAllAdjacentSuggestions']();_0x49e7bd['view']['descriptionParts']=_0x529c27['descriptionFactory']['getDescriptions'](_0x4e6703);}['destroy'](){for(const _0x5f41cc of this['_suggestionToController']['keys']())this['_destroyController'](_0x5f41cc);for(const _0x199b27 of this['_annotationViews']['values']())_0x199b27['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x51c072){return'model'in _0x51c072;}class k extends _0x2e08d9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x583b2f){this['editor']['plugins']['get'](p)['adapter']=_0x583b2f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2029a4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2029a4);}['getSuggestions']({skipNotAttached:_0x4c175d=!0x1,toJSON:_0x3376e9=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4c175d,'toJSON':_0x3376e9});}['getSuggestion'](_0x5394d2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5394d2);}}const w=['Pagination'];class T extends _0x2e08d9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2f4b01=this['editor'];if(_0x2f4b01['config']['define']('trackChangesData.editorCreator',_0x181a04=>{const _0x3e1c5e=_0x2f4b01['model']['document']['getRootNames']()['reduce']((_0x39fbde,_0x1358bd)=>(_0x39fbde[_0x1358bd]='',_0x39fbde),{});return _0x2f4b01['constructor']['create'](_0x3e1c5e,_0x181a04);}),'function'!=typeof _0x2f4b01['config']['get']('trackChangesData')['editorCreator'])throw new _0x52970e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3a2769){return N(this['editor'],!0x0,_0x3a2769);}['getDataWithDiscardedSuggestions'](_0x10caf3){return N(this['editor'],!0x1,_0x10caf3);}}class D extends _0x2e08d9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x178ba9){function _0x427e13(_0x28f663){return _0x28f663['map'](_0x59af1d=>String['fromCharCode'](_0x59af1d))['join']('');}super(_0x178ba9),this['result']='end',_0x178ba9[_0x427e13([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x427e13([0x76,0x69,0x65,0x77])][_0x427e13([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x427e13([0x61,0x75,0x74,0x6f]),_0x178ba9[_0x427e13([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x427e13([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x427e13([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x427e13([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x427e13([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(_0x3086da){return void 0x0!==_0x3086da['getRootsAttributes'];}async function N(_0x4fefde,_0x2b56c3,_0x1df70c){const _0x1501cd=_0x1f19b1(_0x4fefde,w);_0x1501cd['plugins']['push'](p,D),_0x1501cd['rootsAttributes']=Fe(_0x4fefde)?_0x4fefde['getRootsAttributes']():void 0x0;const _0x5a6f8c=document['createDocumentFragment'](),_0x2c1116=_0x4fefde['config']['get']('trackChangesData')['editorCreator'],_0x5f32a7=await _0x2c1116(_0x1501cd,()=>function(_0x466f0b){const _0x25345d=document['createElement']('div');return _0x466f0b['appendChild'](_0x25345d),_0x25345d;}(_0x5a6f8c));!function(_0x533096,_0x319c61){const _0x4ab75a=_0x533096['model']['document']['getRootNames']()['reduce']((_0x5b4ddf,_0x21cf08)=>(_0x5b4ddf[_0x21cf08]=_0x533096['data']['get']({'rootName':_0x21cf08}),_0x5b4ddf),{}),_0x46fc70=_0x533096['plugins']['get']('Users')['users']['map'](_0x1e738c=>({'id':_0x1e738c['id'],'name':_0x1e738c['name']})),_0x5e93d7=_0x533096['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1ea015=_0x533096['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x21816e=_0x319c61['plugins']['get']('Users'),_0x220cfb=_0x319c61['plugins']['get']('TrackChangesEditing'),_0x484a22=_0x319c61['plugins']['get']('CommentsRepository');for(const _0x5e4ea6 of _0x484a22['getCommentThreads']())_0x5e4ea6['remove']();for(const _0x25b225 of _0x46fc70)_0x21816e['getUser'](_0x25b225['id'])||_0x21816e['addUser'](_0x25b225);_0x21816e['me']||_0x21816e['useAnonymousUser']();for(const _0x1dc72a of _0x1ea015)_0x484a22['addCommentThread'](_0x1dc72a);for(const _0x7a10b of _0x5e93d7)_0x220cfb['addSuggestionData'](_0x7a10b);_0x319c61['data']['set'](_0x4ab75a);}(_0x4fefde,_0x5f32a7),_0x5f32a7['execute'](_0x2b56c3?'acceptAllSuggestions':'discardAllSuggestions');const _0xaa71d8=Fe(_0x5f32a7)?_0x5f32a7['getFullData'](_0x1df70c):_0x5f32a7['data']['get'](_0x1df70c);return await _0x5f32a7['destroy'](),_0xaa71d8;}class Me extends _0x5f1e52{['options'];constructor(_0x4c4774,_0x3d2d53){super(_0x4c4774),this['options']=_0x3d2d53,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'](_0x254544,_0x2b5d38){if(!this['element'])return;const _0x289a9e=[];for(const [_0x247efd,_0x4648e0]of _0x254544){const _0x466338=document['createElement']('div');_0x466338['setAttribute']('data-ck-root-name',_0x247efd),_0x466338['className']=_0x4648e0['classes']+'\x20ck-track-changes-preview__root-container',_0x466338['innerHTML']=_0x4648e0['content'],_0x289a9e['push'](_0x466338);}_0x2b5d38(this['element'],_0x289a9e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x551ee0){super(_0x551ee0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5e438c=this['editor'],_0xca252d=_0x5e438c['locale'],_0x25bc5f=_0x5e438c['plugins']['get']('Dialog');let _0x264251;const _0x39217d=function(_0x280c11){const _0x837e67={};if('editables'in _0x280c11['ui']['view']){for(const [_0x2a3820,_0x7e430]of Object['entries'](_0x280c11['ui']['view']['editables']))_0x837e67[_0x2a3820]=_0x7e430['element'];}else _0x837e67[_0x280c11['model']['document']['getRootNames']()[0x0]]=_0x280c11['ui']['view']['editable']['element'];return _0x837e67;}(_0x5e438c),_0xa5050d=function(_0x285efe){let _0x2d33df=0x0;for(const _0x31ef5a of Object['values'](_0x285efe))_0x2d33df=Math['max'](_0x2d33df,_0x31ef5a['getBoundingClientRect']()['width']);let _0x4a1230=0x0;for(const _0x21722c of Object['values'](_0x285efe))_0x4a1230+=_0x21722c['getBoundingClientRect']()['height'];const _0x340065=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x19f895=Math['min'](_0x4a1230,_0x340065);return{'width':_0x2d33df,'height':_0x19f895};}(_0x39217d);_0x25bc5f['show']({'id':'finalContentPreview','title':o(_0xca252d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xca252d,{'dialogRects':_0xa5050d}),'onHide':()=>{_0x264251['detachFromDom']();},'onShow':()=>{_0x5e438c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x177416=>{const _0x280b7a=this['_standarizeRootsData'](_0x177416,_0x5e438c,_0x39217d);_0x25bc5f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x280b7a,_0x5e438c['config']['get']('trackChanges.preview.renderFunction'));}),_0x264251=new _0x2d2330(_0xca252d,[_0x25bc5f['view']]),_0x264251['attachToDom'](),_0x264251['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5e438c['once']('destroy',()=>{_0x264251['detachFromDom']();});const _0x5bf9b8=_0x25bc5f['view']['headerView']['class'];_0x25bc5f['view']['headerView']['class']=_0x5bf9b8?_0x5bf9b8+'\x20ck-reset_all':'ck-reset_all',_0x25bc5f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x25bc5f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x33000c=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x12a601=_0x33000c['previewMode'],_0x232e6c={};if('$labels'===_0x12a601){for(const _0x16fb49 of _0x33000c['getMergeFieldsIds']())_0x232e6c[_0x16fb49]=_0x33000c['getLabel'](_0x16fb49)||_0x16fb49;}else{const _0x41b469='$defaultValues'===_0x12a601?_0x33000c['getDefaultValues']():_0x33000c['getDataSetValues'](_0x12a601,!0x0);for(const _0x321c5a of Object['entries'](_0x41b469)){const [_0x523f91,_0x10e26e]=_0x321c5a;_0x232e6c[_0x523f91]=null!==_0x10e26e?_0x10e26e:_0x33000c['getLabel'](_0x523f91)||_0x523f91;}}return{'mergeFieldsData':_0x232e6c};}['_standarizeRootsData'](_0x517c5d,_0x355740,_0x140596){let _0x200129;if('string'==typeof _0x517c5d){const _0x357960=_0x355740['model']['document']['getRootNames']()[0x0];_0x200129={[_0x357960]:_0x517c5d};}else _0x200129=_0x517c5d;const _0x304ebc=this['_fixMediaEmbeds'](_0x200129,_0x355740),_0x3a3ff5=function(_0x2a0e0e,_0x1f053e){for(const [_0x3ad331,_0x25864c]of _0x2a0e0e)_0x25864c['classes']=_0x1f053e[_0x3ad331]['classList']['value']['replace']('ck-focused','');return _0x2a0e0e;}(this['_sortRoots'](_0x355740)['reduce']((_0x59abc8,_0x59df32)=>(_0x59abc8['push']([_0x59df32,{'content':_0x304ebc[_0x59df32],'classes':''}]),_0x59abc8),[]),_0x140596);return _0x3a3ff5;}['_fixMediaEmbeds'](_0x3a9dae,_0x123987){if(!_0x123987['plugins']['has']('MediaEmbedEditing'))return _0x3a9dae;const _0x5778e0=_0x123987['plugins']['get']('MediaEmbedEditing');for(const [_0x33d882,_0x56425e]of Object['entries'](_0x3a9dae)){const _0x442a96=document['createElement']('div');_0x442a96['innerHTML']=_0x56425e,(_0x442a96['querySelectorAll']('figure.media')['forEach'](_0x13b506=>{const _0x537e9b=_0x13b506['querySelector']('oembed');if(_0x537e9b){const _0x27df8f=_0x537e9b['getAttribute']('url');if(_0x27df8f){const _0xdaed3a=_0x5778e0['registry']['getMediaViewElement'](new _0x5a4d76(_0x123987['editing']['view']['document']),_0x27df8f,{'elementName':'','renderForEditingView':!0x0}),_0x352d91=document['createElement']('div');_0x352d91['classList']['add']('ck-media__wrapper'),_0xdaed3a['render'](_0x352d91,_0x123987['editing']['view']['domConverter']),_0x537e9b['replaceWith'](_0x352d91);}}}),_0x3a9dae[_0x33d882]=_0x442a96['innerHTML']);}return _0x3a9dae;}['_sortRoots'](_0x5b2100){if(!function(_0x48213b){return void 0x0!==_0x48213b['getRootsAttributes'];}(_0x5b2100))return _0x5b2100['model']['document']['getRootNames']();const _0x5e9360=[],_0x401c1e=new Map();for(const _0x13650d of _0x5b2100['model']['document']['getRootNames']()){const _0x43ae78=_0x5b2100['editing']['view']['getDomRoot'](_0x13650d)['getClientRects']()['item'](0x0);_0x5e9360['push'](_0x13650d),_0x401c1e['set'](_0x13650d,_0x43ae78);}return _0x5e9360['sort']((_0x503025,_0x34d696)=>{const _0x1d64d1=_0x401c1e['get'](_0x503025),_0x4d9ab4=_0x401c1e['get'](_0x34d696);return _0x1d64d1['y']-_0x4d9ab4['y']||_0x1d64d1['x']-_0x4d9ab4['x'];}),_0x5e9360;}}class te extends _0x2e08d9{static get['requires'](){return[T,_0x27313c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2cd484){super(_0x2cd484),_0x2cd484['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2cd484['config']['define']('trackChanges.preview.renderFunction',(_0x398657,_0x1c34e1)=>{for(const _0x3593b0 of _0x1c34e1)_0x398657['appendChild'](_0x3593b0);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|