@ckeditor/ckeditor5-track-changes 44.3.0-alpha.6 → 44.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +25 -25
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/replacesourcecommand.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Yt,Plugin as
|
|
24
|
-
_0x547d43(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5a0f0b,_0x4a5657){super(),this['id']=_0x4a5657['id'],this['type']=_0x4a5657['type'],this['subType']=_0x4a5657['subType']||null,this['author']=_0x4a5657['author'],this['creator']=_0x4a5657['creator']||_0x4a5657['author'],this['isExternal']=Boolean(_0x4a5657['attributes']&&_0x4a5657['attributes']['@external']),this['data']=null,this['_model']=_0x5a0f0b,this['_onAccept']=_0x4a5657['onAccept'],this['_onDiscard']=_0x4a5657['onDiscard'],this['_onAttributesChange']=_0x4a5657['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4a5657['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 _0x48c0dd=this;for(;_0x48c0dd['previous'];)_0x48c0dd=_0x48c0dd['previous'];return _0x48c0dd;}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'](_0x31ec2b){this['_markerNames']['add'](_0x31ec2b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x262297=>this['_model']['markers']['get'](_0x262297))['filter'](_0x460e7e=>_0x460e7e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xab4b7f=>{for(const _0x41028b of this['getMarkers']())_0xab4b7f['removeMarker'](_0x41028b);}),this['_markerNames']['clear']();}['removeMarker'](_0x360a78){this['_model']['change'](_0x39bed4=>{_0x39bed4['removeMarker'](_0x360a78);}),this['_markerNames']['delete'](_0x360a78);}['addRange'](_0x1a3f51){const _0x490883='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x490883),this['_model']['change'](_0x24e091=>{_0x24e091['addMarker'](_0x490883,{'range':_0x1a3f51,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x55f121){for(const _0x196585 of this['getRanges']())if(_0x196585['isIntersecting'](_0x55f121))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x38b575=>_0x38b575['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2f1abe,_0x1b080b)=>[..._0x2f1abe,..._0x1b080b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x38a637=this['getRanges']();if(0x1!=_0x38a637['length'])return null;const _0x5de121=_0x38a637[0x0],_0x4d51c0=_0x5de121['start']['nodeAfter'],_0x546dec=_0x5de121['end']['nodeBefore'];return _0x4d51c0 instanceof _0x625ad2?_0x4d51c0!=_0x546dec?null:_0x4d51c0: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 _0x401cd2=[];let _0x2d9853=this['head'];for(;_0x2d9853;)_0x401cd2['push'](_0x2d9853),_0x2d9853=_0x2d9853['next'];return _0x401cd2;}['setAttribute'](_0xabfcc5,_0x945301){const _0x21f531=_0x41f447(this['attributes']);_0x40beab(_0x21f531,_0xabfcc5,_0x945301),_0xb83315(_0x21f531,this['attributes'])||(this['attributes']=_0x21f531,this['_onAttributesChange'](_0x21f531));}['removeAttribute'](_0x5ef0bf){const _0x3919f4=_0x41f447(this['attributes']);_0x1fea94(_0x3919f4,_0x5ef0bf),_0xb83315(_0x3919f4,this['attributes'])||(this['attributes']=_0x3919f4,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 _0x4cb0f7()['substr'](0x1,0x5);}}function o(_0x572c46,_0x34fe1b,_0x3881b7){const _0x1b4bdd=_0x572c46['t'],t=_0x572c46['t'];switch(_0x34fe1b){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',_0x3881b7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3881b7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3881b7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3881b7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3881b7);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',_0x3881b7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3881b7);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',_0x3881b7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3881b7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3881b7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3881b7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3881b7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3881b7);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3881b7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3881b7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3881b7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3881b7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3881b7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3881b7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3881b7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3881b7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3881b7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3881b7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3881b7);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'},_0x3881b7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3881b7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3881b7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3881b7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3881b7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3881b7);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'},_0x3881b7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3881b7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3881b7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3881b7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3881b7);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'},_0x3881b7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3881b7);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'},_0x3881b7);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'},_0x3881b7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3881b7);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'},_0x3881b7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3881b7);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'},_0x3881b7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3881b7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3881b7);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'},_0x3881b7);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3881b7);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 _0x1b4bdd({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3881b7);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1b4bdd({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3881b7);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3881b7);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'},_0x3881b7);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'},_0x3881b7);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'},_0x3881b7);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x34fe1b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1c8ca6,_0x4d535f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1c8ca6,this['_locale']=_0x4d535f;}['getDescriptions'](_0x534189){const _0x48c5f3=[],_0x4b212c=new Set(),_0x31063b=new Set();for(let _0x36a2e9=0x0;_0x36a2e9<_0x534189['length'];_0x36a2e9++){const _0x5c25b8=_0x534189[_0x36a2e9];if(!_0x5c25b8['isInContent'])continue;const _0x5e602a=this['_handleCustomCallbackDescription'](_0x5c25b8);if(_0x5e602a){if(null!=_0x5c25b8['subType']){if(_0x4b212c['has'](_0x5c25b8['subType']))continue;_0x4b212c['add'](_0x5c25b8['subType']);}_0x48c5f3['push'](_0x5e602a);}else{if('attribute'!=_0x5c25b8['type'])'insertion'!=_0x5c25b8['type']&&'deletion'!=_0x5c25b8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x48c5f3,_0x5c25b8,_0x534189[_0x36a2e9+0x1]);else{const _0x50ae8a=_0x5c25b8['data']['key'];if(_0x31063b['has'](_0x50ae8a))continue;_0x31063b['add'](_0x5c25b8['data']['key']),_0x50ae8a==m?this['_handleRenameSuggestionDescription'](_0x48c5f3,_0x5c25b8):this['_handleAttributeSuggestionDescription'](_0x48c5f3,_0x5c25b8);}}}return this['_resolveDescriptionItems'](_0x48c5f3);}['registerDescriptionCallback'](_0x44129f){this['_customCallbacks']['push'](_0x44129f);}['registerElementLabel'](_0x6506b2,_0x2f9de4,_0x5c2d5e=_0x5717db['normal']){'function'==typeof _0x6506b2?_0x38da88(this['_itemLabelsCallbacks'],{'matchingCallback':_0x6506b2,'label':_0x2f9de4,'priority':_0x5c2d5e}):this['_itemLabels']['set'](_0x6506b2,_0x2f9de4);}['registerAttributeLabel'](_0x1ae976,_0x2b088a){this['_attributeLabels']['set'](_0x1ae976,_0x2b088a);}['getItemLabel'](_0x36fe77,_0x38fcdc=0x1){let _0x75d66c;for(const _0x53b53f of this['_itemLabelsCallbacks'])if(_0x53b53f['matchingCallback'](_0x36fe77)){_0x75d66c=_0x53b53f['label'];break;}return _0x75d66c||(_0x75d66c=this['_itemLabels']['get'](_0x36fe77['name'])),_0x75d66c?_0x75d66c(_0x38fcdc):0x1!==_0x38fcdc?_0x38fcdc+'\x20'+_0x36fe77['name']+'s':''+_0x36fe77['name'];}['_addDescriptionItems'](_0x1e1980,_0x16a281){const _0x5e3f16=_0x16a281['getFirstRange']()['getWalker'](),_0xfea378='insertion'==_0x16a281['type']?'add':'remove';for(const _0xb40208 of _0x5e3f16){const _0xe6e3a1=_0xb40208['item'],_0x17ab9d=_0x1e1980[_0x1e1980['length']-0x1];if(_0xe6e3a1['is']('$textProxy'))_0x17ab9d&&_0x17ab9d['type']['indexOf']('Container')>-0x1&&_0x1e1980['pop'](),_0x17ab9d&&'text'==_0x17ab9d['type']?_0x17ab9d[_0xfea378]+=_0xe6e3a1['data']:_0x1e1980['push']({'type':'text','add':'add'==_0xfea378?_0xe6e3a1['data']:'','remove':'remove'==_0xfea378?_0xe6e3a1['data']:''});else{if(this['_schema']['isObject'](_0xe6e3a1)){const _0x3ad0b9=_0xe6e3a1;if(_0x17ab9d&&_0x17ab9d['type']['indexOf']('Container')>-0x1&&_0x1e1980['pop'](),'elementEnd'==_0xb40208['type'])continue;_0x17ab9d&&_0x17ab9d['type']==_0xfea378+'Object'&&_0x17ab9d['element']['name']==_0x3ad0b9['name']?_0x17ab9d['quantity']++:_0x1e1980['push']({'type':_0xfea378+'Object','element':_0x3ad0b9,'quantity':0x1}),_0x5e3f16['skip'](_0x48da31=>!('elementEnd'==_0x48da31['type']&&_0x48da31['item']==_0xe6e3a1));}else{if(this['_schema']['checkChild'](_0xe6e3a1,'$text')||_0xe6e3a1['is']('element','softBreak')){const _0x493a16=_0xe6e3a1;if('add'==_0xfea378&&'elementStart'==_0xb40208['type']||'remove'==_0xfea378&&'elementEnd'==_0xb40208['type'])continue;if(_0x17ab9d&&-0x1==_0x17ab9d['type']['indexOf']('Container')){'text'==_0x17ab9d['type']&&(_0x17ab9d[_0xfea378]+='\x0a');continue;}let _0x4c08e4;if(_0x4c08e4='add'==_0xfea378?_0x493a16['nextSibling']&&!this['_schema']['isObject'](_0x493a16['nextSibling'])?_0x493a16['nextSibling']:null:_0x493a16['previousSibling']&&!this['_schema']['isObject'](_0x493a16['previousSibling'])?_0x493a16['previousSibling']:null,_0x493a16['isEmpty']||_0x4c08e4&&_0x4c08e4['isEmpty']){const _0x1f0801=_0x4c08e4&&_0x4c08e4['isEmpty']?_0x4c08e4:_0x493a16;_0x17ab9d&&_0x17ab9d['type']==_0xfea378+'EmptyContainer'&&_0x17ab9d['element']['name']==_0x1f0801['name']?_0x17ab9d['quantity']++:_0x1e1980['push']({'type':_0xfea378+'EmptyContainer','element':_0x1f0801,'quantity':0x1});}else _0x1e1980['push']({'type':_0xfea378+'Container','element':_0x493a16});}}}}}['_resolveDescriptionItems'](_0x24896f){const _0x164c60=this['_locale'],_0x56b803=[],_0x5b8029=[],_0x270908=[];for(const _0x29f06d of _0x24896f)switch(_0x29f06d['type']){case'text':if(_0x29f06d['add']=_0x29f06d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x29f06d['remove']=_0x29f06d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x29f06d['add']&&''!=_0x29f06d['remove']){_0x56b803['push']({'type':'replace','content':o(_0x164c60,'REPLACE_TEXT',['\x22'+_0x29f06d['remove']+'\x22','\x22'+_0x29f06d['add']+'\x22'])});continue;}if(null!=_0x29f06d['add']['match'](/^ +$/)){_0x56b803['push']({'type':'insertion','content':o(_0x164c60,'*Insert:*\x20%0',o(_0x164c60,'ELEMENT_SPACE',_0x29f06d['add']['length']))});continue;}if(null!=_0x29f06d['remove']['match'](/^ +$/)){_0x56b803['push']({'type':'deletion','content':o(_0x164c60,'*Remove:*\x20%0',o(_0x164c60,'ELEMENT_SPACE',_0x29f06d['remove']['length']))});continue;}if(''!=_0x29f06d['add']){_0x56b803['push']({'type':'insertion','content':o(_0x164c60,'*Insert:*\x20%0','\x22'+_0x29f06d['add']+'\x22')});continue;}_0x56b803['push']({'type':'deletion','content':o(_0x164c60,'*Remove:*\x20%0','\x22'+_0x29f06d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x56b803['push']({'type':'insertion','content':o(_0x164c60,'*Insert:*\x20%0',this['getItemLabel'](_0x29f06d['element'],_0x29f06d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x56b803['push']({'type':'deletion','content':o(_0x164c60,'*Remove:*\x20%0',this['getItemLabel'](_0x29f06d['element'],_0x29f06d['quantity']))});continue;case'addContainer':_0x56b803['push']({'type':'insertion','content':o(_0x164c60,'*Split:*\x20%0',this['getItemLabel'](_0x29f06d['element'],_0x29f06d['quantity']))});continue;case'removeContainer':_0x56b803['push']({'type':'deletion','content':o(_0x164c60,'*Merge:*\x20%0',this['getItemLabel'](_0x29f06d['element'],_0x29f06d['quantity']))});continue;case'addFormat':_0x5b8029['push'](_0x29f06d['key']);continue;case'removeFormat':_0x270908['push'](_0x29f06d['key']);continue;default:_0x56b803['push'](_0x29f06d);}if(_0x5b8029['length']){const _0x249365=_0x5b8029['map'](_0x7ec723=>this['_attributeLabels']['has'](_0x7ec723)?this['_attributeLabels']['get'](_0x7ec723):_0x7ec723)['join'](',\x20');_0x56b803['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x249365)});}if(_0x270908['length']){const _0x4aa448=_0x270908['map'](_0x23c6df=>this['_attributeLabels']['has'](_0x23c6df)?this['_attributeLabels']['get'](_0x23c6df):_0x23c6df)['join'](',\x20');_0x56b803['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4aa448)});}return _0x56b803;}['_handleCustomCallbackDescription'](_0x112453){for(const _0x4a30d8 of this['_customCallbacks']){const _0x113f30=_0x4a30d8(_0x112453);if(_0x113f30&&'type'in _0x113f30)return _0x113f30;}}['_handleAttributeSuggestionDescription'](_0x5e9f61,_0x272f25){const _0x25c69a=_0x272f25['data'],_0x639e41=void 0x0===_0x25c69a['newValue']?'removeFormat':'addFormat';_0x5e9f61['push']({'type':_0x639e41,'key':_0x25c69a['key']});}['_handleRenameSuggestionDescription'](_0x36e2d6,_0x48055d){_0x36e2d6['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x48055d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2e559c,_0x12e40b,_0x3ddd8d){if(this['_addDescriptionItems'](_0x2e559c,_0x12e40b),_0x3ddd8d&&_0x3ddd8d['getFirstRange']()&&!_0x12e40b['getFirstRange']()['end']['isEqual'](_0x3ddd8d['getFirstRange']()['start'])){const _0x725bf1=_0x2e559c[_0x2e559c['length']-0x1],_0x5ad4a0='insertion'==_0x12e40b['type']?'add':'remove';_0x725bf1&&'text'==_0x725bf1['type']&&(_0x725bf1[_0x5ad4a0]+='\x0a');}}}class U extends _0x350409{['afterInit'](){const _0x45a373=this['editor'],_0x5a3414=_0x45a373['plugins']['get']('TrackChangesEditing');_0x45a373['commands']['get']('showAIAssistant')&&_0x5a3414['enableCommand']('showAIAssistant');}}class V extends _0x350409{['afterInit'](){const _0x5b10f4=this['editor'],_0x5cb515=_0x5b10f4['locale'];if(!_0x5b10f4['plugins']['has']('AlignmentEditing'))return;const _0x4544a7=_0x5b10f4['plugins']['get']('TrackChangesEditing');_0x4544a7['enableDefaultAttributesIntegration']('alignment'),_0x4544a7['registerBlockAttribute']('alignment'),_0x4544a7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5cb515,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f2503=this['editor'],_0x367564=_0x2f2503['locale'];_0x2f2503['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c746a=>{if('formatBlock'!=_0x2c746a['type'])return;const {data:_0x286e25}=_0x2c746a;if(_0x286e25&&'alignment'==_0x286e25['commandName']){const _0x517eb5=_0x286e25['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x367564,'*Format:*\x20%0',function(_0x4ae10e){switch(_0x4ae10e){case'left':return o(_0x367564,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x367564,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x367564,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x367564,'FORMAT_JUSTIFY_TEXT');}}(_0x517eb5))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x350409{['afterInit'](){const _0x3ae481=this['editor'],_0x2e1898=_0x3ae481['plugins']['get']('TrackChangesEditing'),_0x33a13d=_0x3ae481['locale'];for(const _0x54655b of ti){if(!_0x3ae481['plugins']['has'](_0x54655b))continue;const _0x1fd4db=_0x54655b['slice'](0x0,-0x7)['toLowerCase'](),_0x422afb='FORMAT_'+_0x1fd4db['toUpperCase']();_0x2e1898['enableDefaultAttributesIntegration'](_0x1fd4db),_0x2e1898['registerInlineAttribute'](_0x1fd4db),_0x2e1898['descriptionFactory']['registerAttributeLabel'](_0x1fd4db,o(_0x33a13d,_0x422afb));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x289c18=this['editor'],_0x48f3e7=_0x289c18['locale'],_0x841e1e=_0x289c18['plugins']['get']('TrackChangesEditing');function _0x428d92(_0x31b3a3,_0x3ff679){_0x841e1e['descriptionFactory']['registerDescriptionCallback'](_0x5badf9=>{if('formatInline'!=_0x5badf9['type'])return;const {data:_0x4efa24}=_0x5badf9;return _0x4efa24&&_0x4efa24['commandName']===_0x31b3a3?_0x4efa24['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48f3e7,'*Format:*\x20%0',_0x3ff679)}:{'type':'format','content':o(_0x48f3e7,'*Remove\x20format:*\x20%0',_0x3ff679)}:void 0x0;});}_0x428d92('bold',o(_0x48f3e7,'FORMAT_BOLD')),_0x428d92('italic',o(_0x48f3e7,'FORMAT_ITALIC')),_0x428d92('underline',o(_0x48f3e7,'FORMAT_UNDERLINE')),_0x428d92('code',o(_0x48f3e7,'FORMAT_CODE')),_0x428d92('strikethrough',o(_0x48f3e7,'FORMAT_STRIKETHROUGH')),_0x428d92('subscript',o(_0x48f3e7,'FORMAT_SUBSCRIPT')),_0x428d92('superscript',o(_0x48f3e7,'FORMAT_SUPERSCRIPT'));}}class F extends _0x350409{['afterInit'](){const _0x5b59a5=this['editor'],_0x2613dc=_0x5b59a5['locale'];if(!_0x5b59a5['plugins']['has']('BlockQuoteEditing'))return;const _0x38e37e=_0x5b59a5['plugins']['get']('TrackChangesEditing'),_0x9801ad=this['editor']['commands']['get']('blockQuote');_0x38e37e['enableCommand']('blockQuote',(_0x5139b0,_0x438b1b={})=>{const _0x29c7ce=this['editor']['model']['document']['selection'],_0x4567af=_0x438b1b&&void 0x0!==_0x438b1b['forceValue']?_0x438b1b['forceValue']:!_0x9801ad['value'];let _0x59ddd0=[];if(_0x4567af){const _0xd45725=Array['from'](_0x29c7ce['getSelectedBlocks']())['filter'](_0x224e39=>oo(_0x224e39)||function(_0x1f2c6e,_0x3f56bd){const _0x41f06a=_0x3f56bd['checkChild'](_0x1f2c6e['parent'],'blockQuote'),_0x5a377d=_0x3f56bd['checkChild'](['$root','blockQuote'],_0x1f2c6e);return _0x41f06a&&_0x5a377d;}(_0x224e39,this['editor']['model']['schema']));_0x59ddd0=to(_0xd45725,_0x5b59a5['model']);}else{const _0x2b7da9=Array['from'](_0x29c7ce['getSelectedBlocks']())['filter'](_0xeaedce=>oo(_0xeaedce));_0x59ddd0=to(_0x2b7da9,_0x5b59a5['model']);}_0x5b59a5['model']['change'](()=>{for(const _0x5f150d of _0x59ddd0)_0x38e37e['markBlockFormat'](_0x5f150d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4567af}]});});}),_0x38e37e['descriptionFactory']['registerDescriptionCallback'](_0xc559eb=>{const {data:_0x3ce46b}=_0xc559eb;if(_0x3ce46b&&'blockQuote'==_0x3ce46b['commandName']){const _0xb735df=o(_0x2613dc,'ELEMENT_BLOCK_QUOTE');return _0x3ce46b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2613dc,'*Set\x20format:*\x20%0',_0xb735df)}:{'type':'format','content':o(_0x2613dc,'*Remove\x20format:*\x20%0',_0xb735df)};}});}}function oo(_0x3fd315){return'blockQuote'==_0x3fd315['parent']['name'];}class L extends _0x350409{['afterInit'](){const _0x3c60d3=this['editor'],_0x3e311f=_0x3c60d3['locale'],_0x13d4f8=_0x3c60d3['plugins']['get']('TrackChangesEditing');_0x3c60d3['plugins']['has']('BookmarkEditing')&&(_0x13d4f8['enableCommand']('insertBookmark'),_0x13d4f8['enableDefaultAttributesIntegration']('updateBookmark'),_0x13d4f8['registerBlockAttribute']('bookmarkId'),_0x13d4f8['descriptionFactory']['registerDescriptionCallback'](_0x528a45=>{if('insertion'!=_0x528a45['type']&&'deletion'!=_0x528a45['type']&&'attribute'!=_0x528a45['type'])return;const _0x37c5fd=_0x528a45['getContainedElement']();if(null==_0x37c5fd)return;if(!_0x37c5fd['is']('element','bookmark'))return;const _0x29f3f9=_0x37c5fd['getAttribute']('bookmarkId');if('insertion'==_0x528a45['type'])return{'type':'insertion','content':o(_0x3e311f,'*Insert:*\x20%0','\x22'+_0x29f3f9+'\x22\x20'+o(_0x3e311f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x528a45['type'])return{'type':'deletion','content':o(_0x3e311f,'*Remove:*\x20%0','\x22'+_0x29f3f9+'\x22\x20'+o(_0x3e311f,'ELEMENT_BOOKMARK'))};const {data:_0x595d65}=_0x528a45;if(!_0x595d65||'bookmarkId'!=_0x595d65['key'])return;return{'type':'format','content':o(_0x3e311f,'*Set\x20bookmark:*\x20%0','\x22'+_0x595d65['newValue']+'\x22')};}));}}class J extends _0x350409{['afterInit'](){const _0x1d0a14=this['editor'];_0x1d0a14['plugins']['has']('CaseChange')&&(_0x1d0a14['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1d0a14['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1d0a14['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x350409{['afterInit'](){const _0x21676d=this['editor'];_0x21676d['commands']['get']('ckbox')&&_0x21676d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x350409{['afterInit'](){const _0x2c827c=this['editor'];if(!_0x2c827c['plugins']['has']('CodeBlock'))return;const _0x2cea88=_0x2c827c['plugins']['get']('TrackChangesEditing'),_0x2d783f=_0x2c827c['locale'],_0x123da=_0x2c827c['config']['get']('codeBlock')['languages'],_0x1d8586=_0x2c827c['commands']['get']('codeBlock');_0x2cea88['enableCommand']('indentCodeBlock'),_0x2cea88['enableCommand']('outdentCodeBlock'),_0x2cea88['enableCommand']('codeBlock',(_0x2084d6,_0x2b694b={})=>{const _0x48ce82=_0x2c827c['model'],_0x4b3560=_0x2c827c['model']['document']['selection'],_0x39a18c=_0x2b694b&&void 0x0!==_0x2b694b['forceValue']?_0x2b694b['forceValue']:!_0x1d8586['value'];let _0x4c223d;_0x2b694b['language']||(_0x2b694b['language']=_0x123da[0x0]['language']),_0x4c223d=_0x39a18c?Array['from'](_0x4b3560['getSelectedBlocks']())['filter'](_0x48e61e=>eo(_0x48e61e)||function(_0x4ef1ab,_0x35bd8a){if(_0x4ef1ab['is']('rootElement')||_0x35bd8a['isLimit'](_0x4ef1ab))return!0x1;return _0x35bd8a['checkChild'](_0x4ef1ab['parent'],'codeBlock');}(_0x48e61e,_0x48ce82['schema'])):Array['from'](_0x4b3560['getSelectedBlocks']())['filter'](_0x56346b=>eo(_0x56346b));const _0x211478=to(_0x4c223d,_0x48ce82);_0x48ce82['change'](()=>{for(const _0x21c378 of _0x211478)_0x2cea88['markBlockFormat'](_0x21c378,{'commandName':'codeBlock','commandParams':[{..._0x2b694b,'forceValue':_0x39a18c}],'formatGroupId':'blockName'});});}),(_0x2cea88['descriptionFactory']['registerElementLabel']('codeBlock',_0x23ca82=>o(_0x2d783f,'ELEMENT_CODE_BLOCK',_0x23ca82)),_0x2cea88['descriptionFactory']['registerDescriptionCallback'](_0x145bfd=>{if('formatBlock'!=_0x145bfd['type'])return;const _0x206ebf=_0x2d783f['t'],{data:_0x42c546}=_0x145bfd;if(!_0x42c546||'codeBlock'!=_0x42c546['commandName'])return;const _0x379f7f=_0x42c546['commandParams'][0x0]['language'],_0x147927=_0x206ebf(_0x123da['find'](_0x5f29c5=>_0x5f29c5['language']===_0x379f7f)['label'])['toLowerCase']();return _0x42c546['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2d783f,'*Set\x20format:*\x20%0',o(_0x2d783f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x147927+')')}:{'type':'format','content':o(_0x2d783f,'*Remove\x20format:*\x20%0',o(_0x2d783f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x14c7b0){return'codeBlock'==_0x14c7b0['name'];}class z extends _0x350409{['afterInit'](){const _0x549271=this['editor'];if(!_0x549271['plugins']['has']('CommentsEditing'))return;_0x549271['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3a1c0e,_0x27ec15,_0x2dbe3a){const _0x1ab2c6=[];for(const _0x3710ab of _0x27ec15['getItems']())_0x3710ab['hasAttribute'](_0x3a1c0e)&&_0x1ab2c6['push'](_0x2dbe3a['createRangeOn'](_0x3710ab));return _0x1ab2c6;}function De(_0x25ff57,_0x462ebe,{showActiveMarker:_0x2ec993=!0x0}={}){const _0x4e159f=_0x25ff57['plugins']['get']('TrackChangesEditing');return(_0x3fa546,_0x444185,_0x2e0eef)=>{if(!_0x2e0eef['consumable']['test'](_0x444185['markerRange'],_0x3fa546['name']))return;const _0x3c3a95=_0x444185['markerRange']['getWalker'](),_0x918372=_0x444185['markerRange']['start'],_0x42ee04=_0x25ff57['model']['schema'];let _0x449432=null,_0x27651c=null,_0x25fa70=!0x1,_0x4639f7=!0x1;for(const _0x97e366 of _0x3c3a95){const _0x598e6c=_0x97e366['item'];_0x25fa70=_0x25fa70||_0x42ee04['isContent'](_0x598e6c);const _0x4e74c8=_0x2e0eef['mapper']['toViewElement'](_0x598e6c);if(_0x4e74c8&&_0x4e74c8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x97e366['type']&&(_0x42ee04['isBlock'](_0x598e6c)&&!_0x42ee04['isLimit'](_0x598e6c)&&(_0x598e6c['nextSibling']||_0x918372['isAtEnd']?_0x449432&&_0x449432['parent']==_0x598e6c||(_0x449432=_0x598e6c,_0x12122e(_0x97e366['previousPosition']),_0x4639f7=!0x0):_0x27651c=_0x27651c||_0x97e366['previousPosition']));}function _0x12122e(_0x5cb2b1){const {authorId:_0x4a4ca2}=_0x4e159f['_splitMarkerName'](_0x444185['markerName']),_0xf611bc=_0x2e0eef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x462ebe,'data-author-id':_0x4a4ca2}),_0x111b9e=_0x2e0eef['mapper']['toViewPosition'](_0x5cb2b1);_0x2ec993&&_0x4e159f['activeMarkers']['includes'](_0x444185['markerName'])&&_0x2e0eef['writer']['addClass']('ck-suggestion-marker--active',_0xf611bc),_0x2e0eef['writer']['insert'](_0x111b9e,_0xf611bc),_0x2e0eef['mapper']['bindElementToMarker'](_0xf611bc,_0x444185['markerName']);}_0x25fa70||_0x4639f7||!_0x27651c||_0x12122e(_0x27651c);};}class K extends _0x350409{static get['requires'](){return[_0x5cb658];}['init'](){const _0x21f080=this['editor'],_0x336737=_0x21f080['plugins']['get']('TrackChangesEditing');_0x336737['enableCommand']('delete');const _0x587514=_0x21f080['commands']['get']('deleteForward');_0x336737['enableCommand']('deleteForward',(_0x190ff4,_0xa82b63={})=>{const _0x33ae11=_0x21f080['model']['createSelection'](_0x21f080['model']['document']['selection']);_0x33ae11['isCollapsed']&&_0x21f080['model']['modifySelection'](_0x33ae11,{'direction':'forward','unit':_0xa82b63['unit']});const _0x39343e=_0x33ae11['getFirstRange'](),_0x3078f7=_0x46ccca['fromRange'](_0x39343e);let _0x17a6c4;_0x190ff4(_0xa82b63),_0x17a6c4='$graveyard'==_0x3078f7['root']['rootName']?_0x21f080['model']['createRange'](_0x39343e['start']):_0x21f080['model']['createRange'](_0x3078f7['start'],_0x3078f7['end']),_0x3078f7['detach'](),_0x21f080['model']['enqueueChange'](_0x587514['buffer']['batch'],_0x1475b8=>{_0x587514['buffer']['lock'](),_0x1475b8['setSelection'](_0x1475b8['createRange'](_0x17a6c4['end'])),_0x587514['buffer']['unlock']();});}),_0x21f080['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x21f080,'merge'),{'priority':'high'}),_0x21f080['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5232d9,_0x37eaf8,_0x283dac)=>{_0x283dac['options']['showSuggestionHighlights']&&De(_0x21f080,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5232d9,_0x37eaf8,_0x283dac);},{'priority':'high'}),_0x21f080['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x90964d,_0x5bc4ac,_0x3f394e)=>{const _0x3a9cef=_0x3f394e['mapper']['markerNameToElements'](_0x5bc4ac['markerName']);if(_0x3a9cef){for(const _0x3b354c of _0x3a9cef)_0x3b354c['is']('uiElement')&&(_0x3f394e['mapper']['unbindElementFromMarkerName'](_0x3b354c,_0x5bc4ac['markerName']),_0x3f394e['writer']['remove'](_0x3b354c));}},{'priority':'high'});}}class W extends _0x350409{['afterInit'](){const _0x574ae8=this['editor'];if(!_0x574ae8['plugins']['has']('ListEditing'))return;const _0x48314d=_0x574ae8['locale'],_0x1de762=_0x574ae8['plugins']['get']('TrackChangesEditing'),_0x425434=_0x574ae8['plugins']['has']('TodoListEditing'),_0x5f005c=!!_0x574ae8['config']['get']('list.multiBlock');function _0x492111(_0x5e34f4){return{'type':'format','content':''+o(_0x48314d,'*Set\x20format:*\x20%0',_0x5e34f4)};}function _0x9dfa2e(_0x5d0f6a){return{'type':'format','content':''+o(_0x48314d,'*Remove\x20format:*\x20%0',_0x5d0f6a)};}_0x1de762['enableDefaultAttributesIntegration']('numberedList'),_0x1de762['enableDefaultAttributesIntegration']('bulletedList'),_0x1de762['enableDefaultAttributesIntegration']('customNumberedList'),_0x1de762['enableDefaultAttributesIntegration']('customBulletedList'),_0x1de762['enableDefaultAttributesIntegration']('indentList'),_0x1de762['enableDefaultAttributesIntegration']('outdentList'),_0x1de762['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1de762['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1de762['registerBlockAttribute']('listItemId'),_0x1de762['registerBlockAttribute']('listType'),_0x1de762['registerBlockAttribute']('listIndent'),_0x5f005c&&(_0x1de762['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1de762['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x425434&&(_0x1de762['enableDefaultAttributesIntegration']('todoList'),_0x1de762['enableDefaultAttributesIntegration']('checkTodoList'),_0x1de762['registerBlockAttribute']('todoListChecked'),_0x1de762['descriptionFactory']['registerDescriptionCallback'](_0x56dce5=>{const {data:_0x465668}=_0x56dce5;if(_0x465668&&'todoListChecked'==_0x465668['key'])return{'type':'format','content':_0x465668['newValue']?o(_0x48314d,'*Check\x20item*'):o(_0x48314d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x7999ad=>{if(_0x7999ad['batch']['isUndo'])return!0x1;let _0x4fc50c=!0x1;const _0x5c7905=_0x1de762['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x116907=>'todoListChecked'===_0x1de762['_getAttributeKey'](_0x116907));for(const _0x179178 of _0x5c7905){'todo'!=_0x179178['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1de762['_findSuggestions'](_0x179178['getFirstRange'](),'attribute')['find'](_0x24cc61=>'listType'===_0x1de762['_getAttributeKey'](_0x24cc61['suggestion']))||(_0x7999ad['removeMarker'](_0x179178['getFirstMarker']()),_0x4fc50c=!0x0));}return _0x4fc50c;})),_0x1de762['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x48314d,'FORMAT_INDENT'));const _0x1f9e10={'type':'format','content':''};_0x1de762['descriptionFactory']['registerDescriptionCallback'](_0x24b565=>{const {data:_0x10f10a}=_0x24b565;if(!_0x10f10a||'listType'!=_0x10f10a['key'])return;let _0x2f5696=_0x24b565['head'];for(;_0x2f5696;){if(_0x2f5696['data']&&(('listStyle'==_0x2f5696['data']['key']||'listMarkerStyle'==_0x2f5696['data']['key'])&&(_0x2f5696['data']['newValue']&&'default'!=_0x2f5696['data']['newValue']||'default'!=_0x2f5696['data']['oldValue']&&!_0x10f10a['newValue'])||!_0x5f005c&&_0x2f5696['data']['key']==m))return _0x1f9e10;_0x2f5696=_0x2f5696['next'];}if(null==_0x10f10a['newValue'])switch(_0x10f10a['oldValue']){case'bulleted':return _0x9dfa2e(o(_0x48314d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9dfa2e(o(_0x48314d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9dfa2e(o(_0x48314d,'ELEMENT_TODO_LIST'));}switch(_0x10f10a['newValue']){case'bulleted':return _0x492111(o(_0x48314d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x492111(o(_0x48314d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x492111(o(_0x48314d,'ELEMENT_TODO_LIST'));}}),_0x1de762['descriptionFactory']['registerDescriptionCallback'](_0x505182=>{const {data:_0x557fec}=_0x505182;if(_0x557fec&&'listIndent'==_0x557fec['key'])return null==_0x557fec['newValue']||null==_0x557fec['oldValue']&&0x0==_0x557fec['newValue']?_0x1f9e10:void 0x0;}),_0x1de762['descriptionFactory']['registerDescriptionCallback'](_0x42dff3=>{if('attribute'!=_0x42dff3['type'])return;const {data:_0x42f3ff}=_0x42dff3;if(!_0x42f3ff||'listItemId'!=_0x42f3ff['key'])return;const _0x3fc7a9=Te(_0x42dff3);return'newValue'==_0x3fc7a9?{'type':'format','content':o(_0x48314d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3fc7a9?{'type':'format','content':o(_0x48314d,'*Split:*\x20list\x20item')}:_0x1f9e10;}),_0x574ae8['model']['document']['registerPostFixer'](_0x1d9241=>this['listItemIdFixer'](_0x1d9241)),_0x574ae8['model']['document']['registerPostFixer'](_0x372367=>this['noTrackChangesFixer'](_0x372367)),_0x574ae8['model']['document']['on']('change:data',(_0x35258c,_0x51b405)=>{if(_0x51b405['isUndo']||!_0x51b405['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x260410){if(_0x260410['batch']['isUndo']||!_0x260410['batch']['isLocal'])return!0x1;let _0x351043=!0x1;const _0x1b8d72=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x405f26=>_0x405f26['data']&&'listItemId'==_0x405f26['data']['key'])['filter'](_0x492a77=>_0x492a77['data']['newValue']&&_0x492a77['data']['oldValue']);for(const _0xded2ad of _0x1b8d72)Te(_0xded2ad)||(_0x260410['removeMarker'](_0xded2ad['getFirstMarker']()),_0x351043=!0x0);return _0x351043;}['noTrackChangesFixer'](_0x49b135){if(_0x49b135['batch']['isUndo']||!_0x49b135['batch']['isLocal'])return!0x1;const _0x44a529=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x44a529['trackChangesCommand']['value'])return!0x1;let _0x5656ff=!0x1;const _0x1ffece=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1d0c23=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1356fb=>'attribute'==_0x1356fb['type'])['filter'](_0x50ca81=>_0x1ffece['includes'](_0x50ca81['attributeKey']));if(0x0==_0x1d0c23['length'])return _0x5656ff;for(const _0x4ff115 of _0x1d0c23){const _0x18f06e=_0x44a529['_findSuggestions'](_0x4ff115['range'],'attribute')['filter'](_0x50ec68=>!_0x50ec68['meta']['isNextTo'])['map'](_0x234414=>_0x234414['suggestion'])['filter'](_0x967efd=>{const _0x1bb7bd=_0x44a529['_getAttributeKey'](_0x967efd);return _0x1ffece['includes'](_0x1bb7bd);});if(_0x18f06e['length']){for(const _0x43739b of _0x18f06e)_0x49b135['removeMarker'](_0x43739b['getFirstMarker']());_0x5656ff=!0x0;}}return _0x5656ff;}['assureChains'](){const _0x4cb18f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d28a7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x510361;const _0x540fe7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x694dc=>{if(_0x694dc['data']['oldRange']||!_0x694dc['data']['newRange'])return null;if(!_0x694dc['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x57f748}=_0x4cb18f['_splitMarkerName'](_0x694dc['name']);if(!_0x4cb18f['hasSuggestion'](_0x57f748))return null;const _0x50c4d1=_0x4cb18f['getSuggestion'](_0x57f748);return _0x1d28a7['includes'](_0x50c4d1['data']['key']);})['map'](_0x48773e=>{const {id:_0x42a0af}=_0x4cb18f['_splitMarkerName'](_0x48773e['name']),_0x28b7f8=_0x4cb18f['getSuggestion'](_0x42a0af);return _0x510361=_0x28b7f8['attributes']['groupId'],_0x28b7f8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x540fe7['size'])return;const _0x4711bc=_0x4cb18f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51ee56=>'attribute'==_0x51ee56['type']&&_0x51ee56['data']&&_0x1d28a7['includes'](_0x51ee56['data']['key'])&&_0x51ee56['attributes']['groupId']!=_0x510361)['map'](_0x278371=>({'listItem':_0x278371['getFirstRange']()['start']['nodeAfter'],'groupId':_0x278371['attributes']['groupId']})),_0x141de8=new Set();for(const {groupId:_0x2609a2,listItem:_0x22cd08}of _0x4711bc)_0x540fe7['has'](_0x22cd08)&&_0x141de8['add'](_0x2609a2);for(const _0x4e6962 of _0x4cb18f['getSuggestions']())_0x141de8['has'](_0x4e6962['attributes']['groupId'])&&_0x4e6962['setAttribute']('groupId',_0x510361);}['_supportLegacySuggestions'](){const _0x307557=this['editor'],_0x3b4e8e=_0x307557['locale'],_0x4b67b4=_0x307557['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4b67b4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x229464,_0x3441e4){const _0x1eb9cd=[];for(let _0x381651 of _0x229464)_0x381651['start']['nodeAfter']===_0x381651['end']['parent']&&(_0x381651=_0x307557['model']['createRange'](_0x307557['model']['createPositionAt'](_0x381651['start']['nodeAfter'],0x0))),_0x1eb9cd['push'](_0x381651);_0x307557['model']['change'](_0x50edea=>{const _0x55625a=_0x307557['model']['document']['selection'],_0x15c43f=Array['from'](_0x55625a['getRanges']())['map'](_0x1f12ba=>_0x46ccca['fromRange'](_0x1f12ba));_0x50edea['setSelection'](_0x1eb9cd),_0x307557['commands']['get'](_0x3441e4['commandName'])['refresh'](),_0x3441e4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x307557['execute'](_0x3441e4['commandName'],..._0x3441e4['commandParams']),_0x50edea['setSelection'](_0x15c43f);for(const _0x4bcd6e of _0x15c43f)_0x4bcd6e['detach']();});}),_0x4b67b4['descriptionFactory']['registerElementLabel'](function(_0x4af50a){const _0x142653=!_0x307557['model']['schema']['isObject'](_0x4af50a),_0x463236=_0x4af50a['previousSibling'],_0x524b9c=_0x4af50a['nextSibling'],_0x46ba79=_0x4af50a['getAttribute']('listItemId'),_0x1d24fb=!_0x463236||_0x463236['getAttribute']('listItemId')!==_0x46ba79,_0x523ee8=!_0x524b9c||_0x524b9c['getAttribute']('listItemId')!==_0x46ba79;return _0x142653&&Boolean(_0x46ba79)&&_0x1d24fb&&_0x523ee8;},_0x31c046=>o(_0x3b4e8e,'ELEMENT_LIST_ITEM',_0x31c046));}['_registerLegacyDescription'](){const _0x3c6602=this['editor'],_0x1b3330=_0x3c6602['locale'];function _0x33daab(_0x27a482){const _0x34d40b=_0x3c6602['commands']['get']('bulletedList')['value'],_0x3f96f4=_0x3c6602['commands']['get']('numberedList')['value'];return'numberedList'===_0x27a482?_0x34d40b:_0x3f96f4;}_0x3c6602['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x16fc34){if('formatBlock'!=_0x16fc34['type'])return;const {data:_0x4e613e}=_0x16fc34;if(!_0x4e613e)return;let _0x4e82c6,_0x3be065,_0x3cf64d,_0x26b217;switch(_0x4e613e['commandName']){case'bulletedList':_0x3cf64d=_0x4e613e['commandParams'][0x0]['forceValue'],_0x26b217=_0x33daab(_0x4e613e['commandName']),_0x4e82c6=_0x3cf64d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x26b217&&_0x3c6602['config']['get']('list.multiBlock')||(_0x4e82c6='*Change\x20to:*\x20%0'),_0x3be065={'type':'format','content':o(_0x1b3330,_0x4e82c6,o(_0x1b3330,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3cf64d=_0x4e613e['commandParams'][0x0]['forceValue'],_0x26b217=_0x33daab(_0x4e613e['commandName']),_0x4e82c6=_0x3cf64d?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x26b217&&_0x3c6602['config']['get']('list.multiBlock')||(_0x4e82c6='*Change\x20to:*\x20%0'),_0x3be065={'type':'format','content':o(_0x1b3330,_0x4e82c6,o(_0x1b3330,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4e82c6='*Indent:*\x20%0',_0x3be065={'type':'format','content':o(_0x1b3330,_0x4e82c6,o(_0x1b3330,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4e82c6=function(_0x12e877){const _0xf56fed=_0x12e877['getFirstRange']();let _0x5aeb76=_0xf56fed['start']['nodeAfter'];for(;_0x5aeb76&&_0xf56fed['containsItem'](_0x5aeb76);){if(_0x5aeb76['getAttribute']('listIndent')>0x0)return!0x1;_0x5aeb76=_0x5aeb76['nextSibling'];}return!0x0;}(_0x16fc34)?o(_0x1b3330,'*Format:*\x20remove\x20from\x20%0',o(_0x1b3330,function(_0x34ff8f){return'ELEMENT_'+_0x34ff8f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x16fc34))):o(_0x1b3330,'*Outdent:*\x20%0',o(_0x1b3330,'ELEMENT_LIST_ITEM')),_0x3be065={'type':'format','content':_0x4e82c6};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4e613e['multipleBlocks']&&(_0x4e82c6='*Merge:*\x20%0',_0x3be065={'type':'deletion','content':o(_0x1b3330,_0x4e82c6,o(_0x1b3330,'ELEMENT_LIST_ITEM'))});}return _0x3be065;});}}function Te(_0x389baf){let _0x5f4a23=_0x389baf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5f4a23;){const _0xdecfe7=_0x5f4a23['getAttribute']('listItemId');if(!_0xdecfe7)return!0x1;if(_0xdecfe7==_0x389baf['data']['newValue'])return'newValue';if(_0xdecfe7==_0x389baf['data']['oldValue'])return'oldValue';_0x5f4a23=_0x5f4a23['previousSibling'];}return!0x1;}class Se extends _0x350409{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x25bd3b=this['editor']['config']['get']('list.properties'),_0x59037d=this['editor']['plugins']['get']('TrackChangesEditing');_0x25bd3b['styles']&&(_0x59037d['enableDefaultAttributesIntegration']('listStyle'),_0x59037d['registerBlockAttribute']('listStyle')),_0x25bd3b['reversed']&&(_0x59037d['enableDefaultAttributesIntegration']('listReversed'),_0x59037d['registerBlockAttribute']('listReversed')),_0x25bd3b['startIndex']&&(_0x59037d['enableDefaultAttributesIntegration']('listStart'),_0x59037d['registerBlockAttribute']('listStart'));const _0x53ae16={'type':'format','content':''};_0x59037d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x20c161=this['editor']['locale'];_0x59037d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x20c161,'FORMAT_LIST_REVERSED')),_0x59037d['descriptionFactory']['registerDescriptionCallback'](_0x5d73c4=>{const {data:_0x2313ca}=_0x5d73c4;if(_0x2313ca&&'listReversed'==_0x2313ca['key'])return null==_0x2313ca['newValue']||0x0==_0x2313ca['newValue']&&null==_0x2313ca['oldValue']?_0x53ae16:void 0x0;}),_0x59037d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x20c161,'FORMAT_LIST_START')),_0x59037d['descriptionFactory']['registerDescriptionCallback'](_0x225015=>{const {data:_0x6f087b}=_0x225015;if(_0x6f087b&&'listStart'==_0x6f087b['key'])return null==_0x6f087b['newValue']||0x1==_0x6f087b['newValue']&&null==_0x6f087b['oldValue']?_0x53ae16:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x306d24=>{if(_0x306d24['batch']['isUndo'])return!0x1;let _0x3a9d68=!0x1;const _0x3f0a70=_0x59037d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x276a2e=>{const _0x200b32=_0x59037d['_getAttributeKey'](_0x276a2e);return'listStart'==_0x200b32||'listReversed'==_0x200b32;});for(const _0x3ad903 of _0x3f0a70){const _0x5b4b55=_0x3ad903['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5b4b55||'customNumbered'==_0x5b4b55)continue;_0x59037d['_findSuggestions'](_0x3ad903['getFirstRange'](),'attribute')['find'](_0x2c7af9=>'listType'==_0x59037d['_getAttributeKey'](_0x2c7af9['suggestion']))||(_0x306d24['removeMarker'](_0x3ad903['getFirstMarker']()),_0x3a9d68=!0x0);}return _0x3a9d68;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x39abea){const _0x2a2230=this['editor']['locale'],{data:_0x8ca02b}=_0x39abea,_0x5a6744={'type':'format','content':''};if(!_0x8ca02b||'listStyle'!=_0x8ca02b['key'])return;if(!_0x8ca02b['oldValue'])return'default'==_0x8ca02b['newValue']?_0x5a6744:{'type':'format','content':''+o(_0x2a2230,'*Set\x20format:*\x20%0',o(_0x2a2230,this['_getTranslationKeyForListStyle'](_0x8ca02b['newValue'])))};if(!_0x8ca02b['newValue']){if('default'==_0x8ca02b['oldValue'])return _0x5a6744;let _0x5bb032=_0x39abea['head'];for(;_0x5bb032;){if(_0x5bb032['data']&&'listType'==_0x5bb032['data']['key']&&_0x5bb032['data']['newValue'])return _0x5a6744;_0x5bb032=_0x5bb032['next'];}return{'type':'format','content':''+o(_0x2a2230,'*Remove\x20format:*\x20%0',o(_0x2a2230,this['_getTranslationKeyForListStyle'](_0x8ca02b['oldValue'])))};}if('default'!=_0x8ca02b['newValue'])return{'type':'format','content':''+o(_0x2a2230,'*Set\x20format:*\x20%0',o(_0x2a2230,this['_getTranslationKeyForListStyle'](_0x8ca02b['newValue'])))};let _0x5781f2=_0x39abea['head'];for(;_0x5781f2;){if(_0x5781f2['data']&&'listType'==_0x5781f2['data']['key']&&_0x5781f2['data']['newValue']&&_0x5781f2['data']['oldValue'])return _0x5a6744;_0x5781f2=_0x5781f2['next'];}return{'type':'format','content':o(_0x2a2230,'*Set\x20format:*\x20%0',o(_0x2a2230,'ELEMENT_'+_0x39abea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x27b54e=this['editor'],_0x96d310=_0x27b54e['locale'];_0x27b54e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aa8ec=>{if('formatBlock'!=_0x1aa8ec['type'])return;const {data:_0x4afb4b}=_0x1aa8ec;if(!_0x4afb4b)return;let _0x2f254e,_0x4fd6f7;switch(_0x4afb4b['commandName']){case'listStyle':_0x2f254e='*Change\x20to:*\x20%0',_0x4fd6f7={'type':'format','content':o(_0x96d310,_0x2f254e,o(_0x96d310,this['_getTranslationKeyForListStyle'](_0x4afb4b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2f254e=_0x4afb4b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4fd6f7={'type':'format','content':o(_0x96d310,_0x2f254e)};break;case'listStart':_0x2f254e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4fd6f7={'type':'format','content':o(_0x96d310,_0x2f254e,_0x4afb4b['commandParams'][0x0]['startIndex'])};}return _0x4fd6f7;});}['_getTranslationKeyForListStyle'](_0x2abe26){return'ELEMENT_'+function(_0x24f8a2){if(_e['includes'](_0x24f8a2))return'bulleted';if(Re['includes'](_0x24f8a2))return'numbered';return null;}(_0x2abe26)['toUpperCase']()+'_LIST_'+_0x2abe26['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x350409{['afterInit'](){const _0x510725=this['editor'];_0x510725['commands']['get']('emoji')&&_0x510725['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x350409{static get['requires'](){return[_0xb8fc45];}['init'](){const _0x320491=this['editor'],_0x4c4b32=_0x320491['plugins']['get']('TrackChangesEditing'),_0x5ecbea=_0x320491['commands']['get']('enter');_0x4c4b32['enableCommand']('enter',()=>{_0x320491['model']['change'](_0x154b4d=>{const _0x2b39d0=_0x320491['model']['document']['selection'],_0x188ee3=_0x2b39d0['getFirstPosition'](),_0x7c29b6=_0x46ccca['fromRange'](_0x2b39d0['getFirstRange']());if(_0x5ecbea['enterBlock'](_0x154b4d)){const _0x15846b=_0x320491['model']['createPositionAt'](_0x188ee3['parent']['nextSibling'],0x0),_0x10c3ae=_0x154b4d['createRange'](_0x188ee3,_0x15846b);_0x4c4b32['markInsertion'](_0x10c3ae);}else _0x154b4d['setSelection'](_0x154b4d['createRange'](_0x7c29b6['end']));_0x7c29b6['detach'](),_0x5ecbea['fire']('afterExecute',{'writer':_0x154b4d});});}),_0x320491['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x320491,'split'),{'priority':'high'}),_0x320491['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3e1138,_0x411543,_0x5ef2fb)=>{const _0x3ce1a1=_0x5ef2fb['mapper']['markerNameToElements'](_0x411543['markerName']);if(_0x3ce1a1){for(const _0x1bf811 of _0x3ce1a1)_0x1bf811['hasClass']('ck-suggestion-marker-split')&&(_0x5ef2fb['mapper']['unbindElementFromMarkerName'](_0x1bf811,_0x411543['markerName']),_0x5ef2fb['writer']['remove'](_0x1bf811));}},{'priority':'high'}),_0x320491['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x54cf61,_0x58a675,_0x1c41cf)=>{_0x1c41cf['options']['showSuggestionHighlights']&&De(_0x320491,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x54cf61,_0x58a675,_0x1c41cf);},{'priority':'high'});}}class Z extends _0x350409{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1b546f=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b546f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1b546f['enableCommand']('findNext'),_0x1b546f['enableCommand']('findPrevious'),_0x1b546f['enableCommand']('replace'),_0x1b546f['enableCommand']('replaceAll');}['handleFindCommand'](_0x22d8ba,_0x5d5146,_0x214d8e={}){const _0x1aa63c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x22d8ba(_0xb8982=>{let _0x36ecf4=('string'==typeof _0x5d5146?_0x1aa63c['findByTextCallback'](_0x5d5146,_0x214d8e):_0x5d5146)(_0xb8982);Array['isArray'](_0x36ecf4)&&(_0x36ecf4={'results':_0x36ecf4,'searchText':'string'==typeof _0x5d5146?_0x5d5146:''});const _0x160884=_0x36ecf4['results']['filter'](_0xd9a661=>!0x1===this['_isInDeletionRange'](_0xd9a661,_0xb8982['item']));return{..._0x36ecf4,'results':_0x160884};},_0x214d8e);}['_isInDeletionRange'](_0x4500ea,_0xf2a206){const _0x23ab48=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf2a206,_0x4500ea['start']),this['editor']['model']['createPositionAt'](_0xf2a206,_0x4500ea['end']));for(const _0x2df25d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x23ab48['getIntersection'](_0x2df25d['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 _0x350409{['afterInit'](){const _0x39c926=this['editor']['locale'],_0x5880bb=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x14023b,commandName:_0x27705e}of ro)this['editor']['plugins']['has'](_0x14023b)&&(_0x5880bb['enableDefaultAttributesIntegration'](_0x27705e),_0x5880bb['registerInlineAttribute'](_0x27705e));_0x5880bb['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39c926,'FORMAT_FONT_SIZE')),_0x5880bb['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39c926,'FORMAT_FONT_FAMILY')),_0x5880bb['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39c926,'FORMAT_FONT_COLOR')),_0x5880bb['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39c926,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x745f1b=this['editor'],_0x3111d2=_0x745f1b['locale'];_0x745f1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bb64a=>{const _0x331d40=_0x3111d2['t'];if('formatInline'!=_0x2bb64a['type'])return;const {data:_0xeb1541}=_0x2bb64a;if(null!=_0xeb1541){if('fontSize'==_0xeb1541['commandName']){const _0x9eddac=_0xeb1541['commandParams'][0x0]['value'];if(_0x9eddac){const _0x49c6f5=_0x331d40(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x188ac5=>_0x188ac5['model']==_0x9eddac)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3111d2,'*Set\x20font\x20size:*\x20%0',_0x49c6f5)};}return{'type':'format','content':o(_0x3111d2,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xeb1541['commandName']){const _0x5db815=_0xeb1541['commandParams'][0x0]['value'];return _0x5db815?{'type':'format','content':o(_0x3111d2,'*Set\x20font\x20family:*\x20%0',_0x5db815)}:{'type':'format','content':o(_0x3111d2,'*Reset\x20font\x20family*')};}if('fontColor'==_0xeb1541['commandName']){const _0x278a3e=_0xeb1541['commandParams'][0x0]['value'];if(_0x278a3e){const _0x5a2673=_0x14908a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4a3751=>_0x4a3751['model']==_0x278a3e);let _0x1a3573=_0x278a3e,_0x3c5827='';return _0x5a2673&&(_0x1a3573=_0x5a2673['label'],_0x3c5827=_0x331d40(_0x1a3573)['toLowerCase']()),{'type':'format','content':o(_0x3111d2,'*Set\x20font\x20color:*\x20%0',_0x3c5827)['trim'](),'color':{'value':_0x278a3e,'title':_0x3c5827||_0x1a3573}};}return{'type':'format','content':o(_0x3111d2,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xeb1541['commandName']){const _0x351efc=_0xeb1541['commandParams'][0x0]['value'];if(_0x351efc){const _0x163eb4=_0x14908a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x11758d=>_0x11758d['model']==_0x351efc);let _0xa109f9=_0x351efc,_0x572301='';return _0x163eb4&&(_0xa109f9=_0x163eb4['label'],_0x572301=_0x331d40(_0xa109f9)['toLowerCase']()),{'type':'format','content':o(_0x3111d2,'*Set\x20font\x20background\x20color:*\x20%0',_0x572301)['trim'](),'color':{'value':_0x351efc,'title':_0x572301||_0xa109f9}};}return{'type':'format','content':o(_0x3111d2,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x350409{['afterInit'](){const _0x341fb4=this['editor'],_0x1be020=_0x341fb4['plugins']['get']('TrackChangesEditing'),_0x2723ae=_0x341fb4['commands']['get']('copyFormat'),_0x40c8af=_0x341fb4['commands']['get']('pasteFormat');_0x2723ae&&_0x40c8af&&(_0x1be020['enableDefaultAttributesIntegration']('pasteFormat'),_0x1be020['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1b249b=this['editor'],_0x4a0187=_0x1b249b['locale'];_0x1b249b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44a47c=>{if('formatBlock'!=_0x44a47c['type']&&'formatInline'!=_0x44a47c['type'])return;const {data:_0x1cf6b5}=_0x44a47c;if(_0x1cf6b5&&'pasteFormat'===_0x1cf6b5['commandName']){const _0x4ac704=[],_0xa76642=_0x1cf6b5['commandParams'][0x0];for(const [_0x5df553,_0x5bb013]of Object['entries'](_0xa76642))_0x4ac704['push'](so(_0x1b249b,_0x5df553,_0x5bb013));return _0x4ac704['length']?{'type':'format','content':o(_0x4a0187,'*Set\x20format\x20to:*\x20%0',_0x4ac704['join'](',\x20'))}:{'type':'format','content':o(_0x4a0187,'*Remove\x20all\x20formatting*')};}});}}function so(_0x425428,_0x4c3d9b,_0x599b04){const _0x1042e6=_0x425428['locale']['t'],_0xbf5517=_0x4c3d9b['split'](/(?=[A-Z])/)['join']('\x20'),_0xbc4ebd=_0x1042e6(_0xbf5517['charAt'](0x0)['toUpperCase']()+_0xbf5517['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x599b04)return _0xbc4ebd;if('fontColor'===_0x4c3d9b||'fontBackgroundColor'===_0x4c3d9b){const _0xa4467a=_0x14908a(_0x425428['config']['get']('fontColor.colors'))['find'](_0x4005f6=>_0x4005f6['model']==_0x599b04);return _0xbc4ebd+'\x20('+(_0xa4467a?_0x1042e6(_0xa4467a['label'])['toLowerCase']():_0x599b04)+')';}if('fontSize'===_0x4c3d9b&&isNaN(parseFloat(_0x599b04))){const _0x2e4fe8=_0x425428['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x425428['config']['get']('fontSize.options'))['find'](_0x4a92fd=>_0x4a92fd['model']==_0x599b04);return _0xbc4ebd+'\x20('+(_0x2e4fe8?_0x1042e6(_0x2e4fe8['title'])['toLowerCase']():_0x599b04)+')';}return _0xbc4ebd+'\x20('+_0x599b04+')';}class it extends _0x350409{['_headingOptions'];['afterInit'](){const _0x4a7d76=this['editor'];if(!_0x4a7d76['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4a7d76['config']['get']('heading.options');const _0x2bec54=_0x4a7d76['locale'],_0x3ce664=_0x4a7d76['plugins']['get']('TrackChangesEditing');_0x3ce664['enableDefaultAttributesIntegration']('heading');for(const _0x2a521a of this['_headingOptions'])'paragraph'!=_0x2a521a['model']&&_0x3ce664['descriptionFactory']['registerElementLabel'](_0x2a521a['model'],_0x21a567=>{const _0x10e5dd=this['_getHeadingLevel'](_0x2a521a['model']);return null!==_0x10e5dd?_0x235ae0(_0x21a567,_0x10e5dd):_0x114e52(_0x21a567,_0x2a521a['title']);});function _0x235ae0(_0x467df8,_0x4f12c0){return o(_0x2bec54,'ELEMENT_HEADING',[_0x467df8,_0x4f12c0]);}function _0x114e52(_0x3c0cc2,_0x86e4b7){return o(_0x2bec54,'ELEMENT_HEADING_CUSTOM',[_0x3c0cc2,_0x86e4b7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a30b1=this['editor'],_0x38189f=_0x3a30b1['locale'];function _0x29b255(_0x4ebf4b,_0x533bbf){return o(_0x38189f,'ELEMENT_HEADING_CUSTOM',[_0x4ebf4b,_0x533bbf]);}_0x3a30b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b7df=>{if('formatBlock'!=_0x42b7df['type'])return;const {data:_0x4ecb19}=_0x42b7df;if(_0x4ecb19&&'heading'==_0x4ecb19['commandName']){const _0x4bb6fa=_0x4ecb19['commandParams'][0x0]['value'],_0x90ad8d=this['_getHeadingLevel'](_0x4bb6fa);if(null!==_0x90ad8d)return{'type':'format','content':o(_0x38189f,'*Change\x20to:*\x20%0',(_0x322594=0x1,_0xe0051b=_0x90ad8d,o(_0x38189f,'ELEMENT_HEADING',[_0x322594,_0xe0051b])))};const _0x46e898=this['_headingOptions']['find'](_0x4db08b=>_0x4db08b['model']===_0x4bb6fa)['title'];return{'type':'format','content':o(_0x38189f,'*Change\x20to:*\x20%0',_0x29b255(0x1,_0x46e898))};}var _0x322594,_0xe0051b;});}['_getHeadingLevel'](_0x2bad16){const _0x68ab5f=_0x2bad16['match'](/^heading(\d+)/);if(_0x68ab5f)return _0x68ab5f[0x1];const _0x1c518b=this['_headingOptions']?.['find'](_0x5e8f69=>_0x5e8f69['model']==_0x2bad16);if(_0x1c518b&&_0x1c518b['view']){const _0x597c91=_0x1c518b['view'],_0xfea0e6=(_0x597c91['name']??_0x597c91)['match'](/^h(\d+)/);if(_0xfea0e6)return _0xfea0e6[0x1];}return null;}}class et extends _0x350409{['afterInit'](){const _0x854cb1=this['editor'];if(!_0x854cb1['plugins']['has']('HighlightEditing'))return;const _0x24ad22=_0x854cb1['plugins']['get']('TrackChangesEditing'),_0x3ab495=_0x854cb1['locale'];_0x24ad22['enableDefaultAttributesIntegration']('highlight'),_0x24ad22['registerInlineAttribute']('highlight'),_0x24ad22['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3ab495,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x393176=this['editor'],_0x49cfc8=_0x393176['locale'];_0x393176['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e8d12=>{if('formatInline'!=_0x5e8d12['type'])return;const {data:_0x428f3f}=_0x5e8d12;if(_0x428f3f&&'highlight'==_0x428f3f['commandName']){const _0x17b593=_0x49cfc8['t'],_0x2be0b4=_0x428f3f['commandParams'][0x0]['value'];if(_0x2be0b4){const _0x405588=_0x393176['config']['get']('highlight.options')['find'](_0x43c718=>_0x43c718['model']==_0x2be0b4),_0x48a257=_0x17b593(_0x405588['title'])['toLowerCase']();return{'type':'format','content':o(_0x49cfc8,'*Set\x20highlight:*\x20%0',_0x48a257),'color':{'value':_0x405588['color'],'title':_0x405588['title']}};}return{'type':'format','content':o(_0x49cfc8,'*Remove\x20highlight*',o(_0x49cfc8,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x350409{['afterInit'](){const _0x51c2b0=this['editor'];if(!_0x51c2b0['plugins']['has']('HorizontalLineEditing'))return;_0x51c2b0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2a6334=_0x51c2b0['plugins']['get']('TrackChangesEditing'),_0x75e7c4=_0x51c2b0['locale'];_0x2a6334['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5e2661=>o(_0x75e7c4,'ELEMENT_HORIZONTAL_LINE',_0x5e2661)),_0x51c2b0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x47c6ab,{writer:_0x4375f0,options:_0x4ffd4f})=>{if(!_0x4ffd4f['showSuggestionHighlights'])return null;const _0x50f51f=_0x4375f0['createContainerElement']('div'),_0x3f91e9=_0x4375f0['createEmptyElement']('hr');return _0x4375f0['addClass']('ck-horizontal-line',_0x50f51f),_0x4375f0['insert'](_0x4375f0['createPositionAt'](_0x50f51f,0x0),_0x3f91e9),_0x50f51f;},'converterPriority':'high'});}}class ot extends _0x350409{['afterInit'](){const _0x255d91=this['editor'];if(!_0x255d91['plugins']['has']('HtmlEmbed'))return;const _0x441742=_0x255d91['plugins']['get']('TrackChangesEditing'),_0x33ae10=_0x255d91['locale'];_0x441742['descriptionFactory']['registerElementLabel']('rawHtml',_0x579900=>o(_0x33ae10,'ELEMENT_HTML_EMBED',_0x579900)),_0x441742['enableDefaultAttributesIntegration']('htmlEmbed'),_0x441742['registerBlockAttribute']('value'),_0x441742['descriptionFactory']['registerDescriptionCallback'](_0x24fc4f=>{if('attribute'!=_0x24fc4f['type'])return;const {data:_0x5aa170}=_0x24fc4f;if(_0x5aa170&&'value'==_0x5aa170['key']&&_0x24fc4f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3e1f62=o(_0x33ae10,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x33ae10,'*Change\x20%0\x20content*',_0x3e1f62)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7c6b28=this['editor'],_0x49a2c2=_0x7c6b28['locale'];_0x7c6b28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e5e6c=>{if('formatBlock'!=_0x5e5e6c['type'])return;const {data:_0x4322a1}=_0x5e5e6c;if(_0x4322a1&&'htmlEmbed'==_0x4322a1['commandName']){const _0x2bc5e3=o(_0x49a2c2,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x49a2c2,'*Change\x20%0\x20content*',_0x2bc5e3)};}});}}class rt extends _0x350409{['afterInit'](){const _0x5a8dc6=this['editor'];if(!_0x5a8dc6['plugins']['has']('ImageEditing'))return;const _0x298f03=_0x5a8dc6['plugins']['get']('TrackChangesEditing'),_0x4eaacc=_0x5a8dc6['plugins']['get']('ImageUtils'),_0x2eb7c3=_0x5a8dc6['locale'];_0x298f03['enableCommand']('insertImage'),_0x298f03['descriptionFactory']['registerElementLabel']('imageBlock',_0x16ed8d=>o(_0x2eb7c3,'ELEMENT_IMAGE',_0x16ed8d)),_0x298f03['descriptionFactory']['registerElementLabel']('imageInline',_0x4627ce=>o(_0x2eb7c3,'ELEMENT_INLINE_IMAGE',_0x4627ce)),_0x298f03['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2eb7c3,'ELEMENT_CAPTION')),_0x5a8dc6['plugins']['has']('ImageUploadEditing')&&_0x298f03['enableCommand']('uploadImage'),_0x5a8dc6['plugins']['has']('ImageBlockEditing')&&_0x5a8dc6['plugins']['has']('ImageInlineEditing')&&(_0x298f03['enableCommand']('imageTypeInline',(_0x12af2b,_0x1ef3af)=>{const _0x3b73ce=_0x4eaacc['getClosestSelectedImageElement'](_0x5a8dc6['model']['document']['selection']);_0x5a8dc6['model']['change'](()=>{_0x298f03['markBlockFormat'](_0x3b73ce,{'commandName':'imageTypeInline','commandParams':[_0x1ef3af]},[],'convertBlockImageToInline');});}),_0x298f03['enableCommand']('imageTypeBlock',(_0x5cf0c4,_0x20d7f5)=>{_0x5a8dc6['model']['change'](_0x3388c5=>{let _0x347e36=_0x4eaacc['getClosestSelectedImageElement'](_0x5a8dc6['model']['document']['selection']),_0x4098eb=_0x3388c5['createRangeOn'](_0x347e36);const _0x414204=_0x2d4097['fromPosition'](_0x4098eb['start'],'toPrevious'),_0x43a6f5=_0x2d4097['fromPosition'](_0x4098eb['end'],'toNext');_0x298f03['forceDefaultExecution'](()=>_0x5cf0c4(_0x20d7f5)),_0x347e36=_0x4eaacc['getClosestSelectedImageElement'](_0x5a8dc6['model']['document']['selection']),_0x4098eb=_0x3388c5['createRangeOn'](_0x347e36);const _0x4bd59f=_0x3388c5['createRange'](_0x414204,_0x43a6f5);_0x414204['detach'](),_0x43a6f5['detach'](),_0x298f03['markBlockFormat'](_0x347e36,{'commandName':'imageTypeInline','commandParams':[_0x20d7f5]},[],'convertInlineImageToBlock'),_0x4bd59f['start']['isBefore'](_0x4098eb['start'])&&_0x298f03['markInsertion'](_0x3388c5['createRange'](_0x4bd59f['start'],_0x4098eb['start']),'convertInlineImageToBlock'),_0x4098eb['end']['isBefore'](_0x4bd59f['end'])&&_0x298f03['markInsertion'](_0x3388c5['createRange'](_0x4098eb['end'],_0x4bd59f['end']),'convertInlineImageToBlock');});}),_0x298f03['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x298f03['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x298f03['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x298f03['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x298f03['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x298f03['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x57fcab])=>{const _0x2a9bb4=_0x298f03['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x180a04=_0x57fcab['start'],_0x3ccd67=_0x57fcab['end'];const _0x4c9e34=_0x5a8dc6['model']['schema']['getNearestSelectionRange'](_0x180a04,'backward'),_0x2316ff=_0x5a8dc6['model']['schema']['getNearestSelectionRange'](_0x3ccd67,'forward');_0x4c9e34['isCollapsed']&&(_0x180a04=_0x4c9e34['start']),_0x2316ff['isCollapsed']&&(_0x3ccd67=_0x2316ff['end']),_0x2a9bb4([_0x5a8dc6['model']['createRange'](_0x180a04,_0x3ccd67)]);}),_0x298f03['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x236e0d),_0x298f03['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x236e0d)),_0x5a8dc6['plugins']['has']('ImageCaptionEditing')&&(_0x298f03['enableCommand']('toggleImageCaption',(_0x1b671e,_0x495eb5)=>{const _0x26c213=_0x5a8dc6['plugins']['get']('ImageCaptionUtils');let _0x30e519=_0x4eaacc['getClosestSelectedImageElement'](_0x5a8dc6['model']['document']['selection']),_0x489632=_0x26c213['getCaptionFromImageModelElement'](_0x30e519);_0x5a8dc6['model']['change'](()=>{if(_0x489632)return void _0x298f03['markDeletion'](_0x5a8dc6['model']['createRangeOn'](_0x489632));const _0x2e1bbe=_0x4eaacc['isBlockImage'](_0x30e519);_0x1b671e(_0x495eb5),_0x30e519=_0x4eaacc['getClosestSelectedImageElement'](_0x5a8dc6['model']['document']['selection']),_0x489632=_0x26c213['getCaptionFromImageModelElement'](_0x30e519),_0x298f03['markInsertion'](_0x5a8dc6['model']['createRangeOn'](_0x489632),_0x2e1bbe?null:'imageCaption');});}),_0x298f03['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x236e0d));const _0x1703d6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5672fa(_0x372f45,_0x47107f){const _0x2eac2a=_0x1703d6['findIndex'](({type:_0x1550ed,subType:_0x541b4e})=>_0x372f45['type']==_0x1550ed&&_0x372f45['subType']==_0x541b4e),_0x238101=_0x1703d6['findIndex'](({type:_0x142f1c,subType:_0x26ebeb})=>_0x47107f['type']==_0x142f1c&&_0x47107f['subType']==_0x26ebeb);if(_0x2eac2a<0x0||_0x238101<0x0)return!0x1;const _0x1f060a=_0x372f45['getFirstRange'](),_0x31df22=_0x47107f['getFirstRange']();if((0x0==_0x2eac2a||0x1==_0x2eac2a)&&0x2==_0x238101&&_0x1f060a['isIntersecting'](_0x31df22))return!0x0;if(0x2==_0x2eac2a&&0x3==_0x238101){const _0x233fc0=_0x298f03['_findSuggestions'](_0x1f060a,'insertion')['filter'](({suggestion:_0x456c9f,meta:_0x178aa1})=>_0x178aa1['isOwn']&&'convertInlineImageToBlock'==_0x456c9f['subType']);if(_0x233fc0['length']>0x1&&_0x31df22['end']['isEqual'](_0x1f060a['start']))return!0x0;if(0x1==_0x233fc0['length']&&(_0x1f060a['start']['isEqual'](_0x31df22['end'])||_0x1f060a['end']['isEqual'](_0x31df22['start'])))return!0x0;}if(0x3==_0x2eac2a&&0x3==_0x238101&&_0x1f060a['start']['isBefore'](_0x31df22['start'])){const _0x38d778=_0x1f060a['end']['nodeAfter'],_0x370b49=_0x31df22['start']['nodeBefore'];return _0x4eaacc['isBlockImage'](_0x38d778)&&_0x38d778===_0x370b49;}return!0x1;}function _0x236e0d(_0x3d4ada,_0x12f2a7){return _0x5672fa(_0x3d4ada,_0x12f2a7)?[_0x3d4ada,_0x12f2a7]:_0x5672fa(_0x12f2a7,_0x3d4ada)?[_0x12f2a7,_0x3d4ada]:null;}_0x5a8dc6['plugins']['has']('ImageResize')&&(_0x298f03['enableDefaultAttributesIntegration']('resizeImage'),_0x298f03['registerBlockAttribute']('resizedWidth'),_0x298f03['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2eb7c3,'FORMAT_IMAGE_SIZE'))),_0x5a8dc6['plugins']['has']('ImageTextAlternativeEditing')&&(_0x298f03['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x298f03['registerBlockAttribute']('alt')),_0x5a8dc6['plugins']['has']('PictureEditing')&&(_0x298f03['registerBlockAttribute']('sources'),_0x298f03['descriptionFactory']['registerDescriptionCallback'](_0x158692=>{if('attribute'!=_0x158692['type'])return;const {data:_0x1df964}=_0x158692;return _0x1df964&&'sources'==_0x1df964['key']?{'type':'format','content':''}:void 0x0;})),_0x5a8dc6['plugins']['has']('ImageSizeAttributes')&&(_0x298f03['registerBlockAttribute']('width'),_0x298f03['registerBlockAttribute']('height'),_0x298f03['descriptionFactory']['registerDescriptionCallback'](_0x55b349=>{if('attribute'!=_0x55b349['type'])return;const {data:_0x5ced00}=_0x55b349;return!_0x5ced00||'width'!=_0x5ced00['key']&&'height'!=_0x5ced00['key']?void 0x0:{'type':'format','content':''};})),_0x298f03['descriptionFactory']['registerDescriptionCallback'](_0xfd602b=>{if(!!_0x1703d6['find'](({type:_0x117fd9,subType:_0x857ddc})=>_0xfd602b['type']==_0x117fd9&&_0xfd602b['subType']==_0x857ddc))return _0xfd602b['previous']?{}:void 0x0;}),_0x298f03['descriptionFactory']['registerDescriptionCallback'](_0x1d488b=>{if('insertion'==_0x1d488b['type']||'deletion'==_0x1d488b['type']){const _0x4585aa=_0x1d488b['getContainedElement']();if(_0x4585aa&&_0x4585aa['is']('element','caption'))return{'type':'insertion'==_0x1d488b['type']?'addObject':'removeObject','element':_0x4585aa,'quantity':0x1};}}),_0x298f03['descriptionFactory']['registerDescriptionCallback'](_0x3b794a=>'formatBlock'==_0x3b794a['type']&&'convertInlineImageToBlock'==_0x3b794a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3b794a['type']&&'convertBlockImageToInline'==_0x3b794a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x298f03['descriptionFactory']['registerDescriptionCallback'](_0x484a18=>{if('attribute'!=_0x484a18['type'])return;const {data:_0x439ae9}=_0x484a18;if(!_0x439ae9||'alt'!=_0x439ae9['key'])return;const _0x4e7a43=_0x439ae9['newValue'];return _0x4e7a43?{'type':'format','content':o(_0x2eb7c3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e7a43+'\x22')}:{'type':'format','content':o(_0x2eb7c3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3407f8=this['editor'],_0x5a8477=_0x3407f8['locale'];_0x3407f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59888f=>{if('formatBlock'!=_0x59888f['type']&&'formatInline'!=_0x59888f['type'])return;const {data:_0x5a0e63}=_0x59888f;if(_0x5a0e63){if('imageTextAlternative'==_0x5a0e63['commandName']){const _0x4880fa=_0x5a0e63['commandParams'][0x0]['newValue'];return _0x4880fa?{'type':'format','content':o(_0x5a8477,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4880fa+'\x22')}:{'type':'format','content':o(_0x5a8477,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5a0e63['commandName']){const _0x5e38c4=_0x5a0e63['commandParams'][0x0]['width'];return _0x5e38c4?{'type':'format','content':o(_0x5a8477,'*Set\x20image\x20width:*\x20%0',_0x5e38c4)}:{'type':'format','content':o(_0x5a8477,'*Reset\x20image\x20width*')};}}});}}class at extends _0x350409{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5d6ae5=this['editor']['locale'],_0x602fc9=this['editor']['plugins']['get']('TrackChangesEditing');_0x602fc9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x602fc9['registerBlockAttribute']('src'),_0x602fc9['descriptionFactory']['registerDescriptionCallback'](_0x483197=>{if('attribute'!=_0x483197['type'])return;const {data:_0xab1632}=_0x483197;return _0xab1632&&'src'==_0xab1632['key']?_0xab1632['newValue']&&_0xab1632['oldValue']?{'type':'format','content':o(_0x5d6ae5,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x36e743=this['editor']['plugins']['get']('TrackChangesEditing');_0x36e743['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x36e743['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x36e743['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x36e743['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x519972=this['editor'],_0x1b1c99=_0x519972['locale'];_0x519972['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49e88f=>{if('formatBlock'!=_0x49e88f['type']&&'formatInline'!=_0x49e88f['type'])return;const {data:_0x4d5249}=_0x49e88f;if(!_0x4d5249||'replaceImageSource'!=_0x4d5249['commandName'])return;return{'type':'format','content':o(_0x1b1c99,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x350409{['afterInit'](){const _0x5aa87c=this['editor'];if(!_0x5aa87c['plugins']['has']('ImageStyleEditing'))return;const _0x2f4b22=_0x5aa87c['plugins']['get']('TrackChangesEditing'),_0x37b34b=_0x5aa87c['plugins']['get']('ImageUtils'),_0x94f5de={};_0x2f4b22['enableCommand']('imageStyle',(_0x5a6498,_0x1f86e8)=>{const _0x2c8899=_0x5aa87c['plugins']['get']('Users')['me'],_0x1ab8af=_0x5aa87c['commands']['get']('imageStyle');let _0x508854=_0x37b34b['getClosestSelectedImageElement'](_0x5aa87c['model']['document']['selection']),_0x5c98a3=_0x5aa87c['model']['createRangeOn'](_0x508854),_0x5e60d7=_0x1ab8af['value'];if(_0x5e60d7==_0x1f86e8['value'])return;const _0x6896bf={'commandName':'imageStyle','commandParams':[_0x1f86e8],'formatGroupId':_0x4cb0f7()};_0x5aa87c['model']['change'](()=>{if(_0x2f4b22['getSuggestions']()['filter'](_0x2c3d96=>_0x2c3d96['isInContent']&&_0x2c8899==_0x2c3d96['author']&&('formatBlock'==_0x2c3d96['type']||'formatInline'==_0x2c3d96['type'])&&('imageStylePreApply'==_0x2c3d96['subType']||'imageStylePostApply'==_0x2c3d96['subType'])&&_0x2c3d96['getFirstRange']()['isEqual'](_0x5c98a3))['forEach'](_0x47fa15=>_0x2f4b22['discardSuggestion'](_0x47fa15['head'])),_0x508854=_0x37b34b['getClosestSelectedImageElement'](_0x5aa87c['model']['document']['selection']),_0x5c98a3=_0x5aa87c['model']['createRangeOn'](_0x508854),_0x1ab8af['refresh'](),_0x5aa87c['commands']['get']('imageTypeInline')['refresh'](),_0x5aa87c['commands']['get']('imageTypeBlock')['refresh'](),_0x5e60d7=_0x1ab8af['value'],_0x5e60d7!=_0x1f86e8['value'])return _0x37b34b['isInlineImage'](_0x508854)&&_0x1ab8af['shouldConvertImageType'](_0x1f86e8['value'],_0x508854)?(_0x5a6498({..._0x1f86e8,'setImageSizes':!0x1}),_0x508854=_0x37b34b['getClosestSelectedImageElement'](_0x5aa87c['model']['document']['selection']),void _0x2f4b22['markBlockFormat'](_0x508854,{..._0x6896bf,'commandReversedParams':[{'value':_0x5e60d7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x37b34b['isBlockImage'](_0x508854)?_0x2f4b22['markBlockFormat'](_0x508854,_0x6896bf,[],'imageStylePostApply'):_0x2f4b22['markInlineFormat'](_0x5c98a3,_0x6896bf,'imageStylePostApply'));});});for(const _0x399968 of _0x5aa87c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x94f5de[_0x399968['name']]=_0x399968['title']['toLowerCase']();_0x2f4b22['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2f4b22['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2f4b22['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2f4b22['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4e552d])=>{_0x37b34b['setImageNaturalSizeAttributes'](_0x4e552d['getContainedElement']());}),_0x2f4b22['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x8e841f,_0x135afd)=>{_0x2f4b22['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x8e841f,{'commandName':_0x135afd['commandName'],'commandParams':_0x135afd['commandReversedParams']});}),_0x2f4b22['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e6eab,_0x288b23){if(_0x278a99(_0x3e6eab,_0x288b23))return[_0x3e6eab,_0x288b23];if(_0x278a99(_0x288b23,_0x3e6eab))return[_0x288b23,_0x3e6eab];return null;});const _0x569327=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x278a99(_0xf7bfd0,_0x10aa3e){const _0x192db0=_0x569327['findIndex'](({type:_0x1e9d58,subType:_0x3bc274})=>_0xf7bfd0['type']==_0x1e9d58&&_0xf7bfd0['subType']==_0x3bc274),_0x1b1224=_0x569327['findIndex'](({type:_0x19bc4c,subType:_0x513070})=>_0x10aa3e['type']==_0x19bc4c&&_0x10aa3e['subType']==_0x513070);if(_0x192db0<0x0||_0x1b1224<0x0)return!0x1;const _0x140f4a=_0xf7bfd0['getFirstRange'](),_0x203aa3=_0x10aa3e['getFirstRange']();if((0x0==_0x192db0||0x1==_0x192db0)&&0x2==_0x1b1224&&_0x140f4a['isIntersecting'](_0x203aa3))return!0x0;if(0x2==_0x192db0&&0x3==_0x1b1224){const _0x36769b=_0x2f4b22['_findSuggestions'](_0x140f4a,'insertion')['filter'](({suggestion:_0x2fa4ad,meta:_0x1b836d})=>_0x1b836d['isOwn']&&'convertInlineImageToBlock'==_0x2fa4ad['subType']);if(_0x36769b['length']>0x1&&_0x203aa3['end']['isEqual'](_0x140f4a['start']))return!0x0;if(0x1==_0x36769b['length']&&(_0x140f4a['start']['isEqual'](_0x203aa3['end'])||_0x140f4a['end']['isEqual'](_0x203aa3['start'])))return!0x0;}if(0x3==_0x192db0&&0x3==_0x1b1224&&_0x140f4a['start']['isBefore'](_0x203aa3['start'])){const _0xa2e1b3=_0x140f4a['end']['nodeAfter'],_0x31aacb=_0x203aa3['start']['nodeBefore'];return _0x37b34b['isBlockImage'](_0xa2e1b3)&&_0xa2e1b3===_0x31aacb;}return!0x1;}_0x5aa87c['model']['document']['registerPostFixer'](()=>{let _0x265dc2=!0x1;const _0x3b008c=Array['from'](_0x5aa87c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3793e7,data:_0x25ec8f}of _0x3b008c){const {group:_0x4d180d,type:_0x1e7055,subType:_0x30b027,id:_0xd5595a}=_0x2f4b22['_splitMarkerName'](_0x3793e7);if('suggestion'==_0x4d180d&&_0x2f4b22['hasSuggestion'](_0xd5595a)){if('formatBlock'==_0x1e7055&&('imageStylePreApply'==_0x30b027||'imageStylePostApply'==_0x30b027)){const _0x2e7352=_0x2f4b22['getSuggestion'](_0xd5595a);if(_0x25ec8f['newRange']){const _0x6fea60=_0x2e7352['getFirstRange']()['getContainedElement']();if(_0x37b34b['isBlockImage'](_0x6fea60))continue;_0x2f4b22['discardSuggestion'](_0x2e7352),_0x265dc2=!0x0;}}if('insertion'==_0x1e7055&&'imageCaption'==_0x30b027&&!_0x25ec8f['newRange']){const _0x5d72c2=_0x2f4b22['getSuggestion'](_0xd5595a);_0x5d72c2['next']&&_0x5d72c2['next']['isInContent']&&(_0x2f4b22['discardSuggestion'](_0x5d72c2['next']),_0x265dc2=!0x0);}}}return _0x265dc2;}),this['_registerLegacyDescription'](_0x94f5de);}['_registerLegacyDescription'](_0x13ec0c){const _0xfdd618=this['editor'],_0x22c331=_0xfdd618['locale'];_0xfdd618['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bd18c=>{if('formatBlock'!=_0x3bd18c['type']&&'formatInline'!=_0x3bd18c['type'])return;const {data:_0x238f8b}=_0x3bd18c;if(!_0x238f8b||'imageStyle'!=_0x238f8b['commandName'])return;const _0xf665f6=_0x238f8b['commandParams'][0x0]['value'];return _0x170447('side'===_0xf665f6?o(_0x22c331,'FORMAT_SIDE_IMAGE'):_0x13ec0c[_0xf665f6]||_0xf665f6);function _0x170447(_0x22ad9d){return{'type':'format','content':o(_0x22c331,'*Format:*\x20%0',_0x22ad9d)};}});}}class ut extends _0x350409{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x24e2b1){super(_0x24e2b1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x18d84b=this['editor'],_0x609ded=_0x18d84b['commands']['get']('importWord'),_0x51a302=_0x18d84b['commands']['get']('trackChanges');_0x609ded&&(_0x609ded['on']('execute',(_0xac3d0a,[,_0x3def77])=>{this['_trackChangesValueDuringImport']=_0x51a302['value'],_0x3def77['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x609ded,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x609ded,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x51a302['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x18d84b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xe12951,_0x387458){const {suggestions:_0x43680d}=_0x387458,_0x77d927=this['editor']['commands']['get']('trackChanges'),_0x24b03d=_0x77d927['value'];this['_trackChangesValueDuringImport']!==_0x24b03d&&(_0x77d927['execute'](),this['_trackChangesExecuted']=!0x0),_0x43680d&&_0x43680d['forEach'](({id:_0x2e7f87,type:_0x31ac20,author:_0x4b5f79,created_at:_0x1d516f})=>{const _0x565c09={'id':_0x2e7f87,'type':_0x31ac20,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4b5f79,'createdAt':_0x1d516f?new Date(_0x1d516f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x565c09);});}}class ft extends _0x350409{['afterInit'](){const _0x266adb=this['editor'],_0x7b6fa8=_0x266adb['plugins']['get']('TrackChangesEditing');if(_0x266adb['plugins']['has']('IndentEditing')&&(_0x7b6fa8['enableCommand']('indent'),_0x7b6fa8['enableCommand']('outdent')),_0x266adb['plugins']['has']('IndentBlock')){for(const _0x37cb7f of['indentBlock','outdentBlock'])_0x7b6fa8['enableDefaultAttributesIntegration'](_0x37cb7f);}const _0x20ea01=_0x266adb['locale'];_0x7b6fa8['registerBlockAttribute']('blockIndent'),_0x7b6fa8['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x20ea01,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57239f=this['editor'],_0x5e962c=_0x57239f['locale'],_0x44a233=_0x57239f['plugins']['get']('TrackChangesEditing');_0x44a233['descriptionFactory']['registerDescriptionCallback'](_0xb1064e=>{if('formatBlock'!=_0xb1064e['type'])return;const {data:_0x1d2618}=_0xb1064e;if(!_0x1d2618)return;if('indentBlock'!=_0x1d2618['commandName']&&'outdentBlock'!=_0x1d2618['commandName'])return;const _0x3bc3aa=_0xb1064e['getItems']()[0x0],_0x4cf409=_0x44a233['descriptionFactory']['getItemLabel'](_0x3bc3aa);return'indentBlock'==_0x1d2618['commandName']?{'type':'format','content':o(_0x5e962c,'*Indent:*\x20%0',_0x4cf409)}:'outdentBlock'==_0x1d2618['commandName']?{'type':'format','content':o(_0x5e962c,'*Outdent:*\x20%0',_0x4cf409)}:void 0x0;});}}class ht extends _0x350409{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x350409{['afterInit'](){const _0x3dd77c=this['editor'];if(!_0x3dd77c['plugins']['has']('LinkEditing'))return;const _0x13665b=_0x3dd77c['plugins']['get']('TrackChangesEditing'),_0x190564=_0x3dd77c['commands']['get']('link');_0x13665b['enableDefaultAttributesIntegration']('link'),_0x13665b['enableDefaultAttributesIntegration']('unlink'),_0x13665b['registerInlineAttribute']('linkHref');for(const _0x468a56 of _0x190564['manualDecorators'])_0x13665b['registerInlineAttribute'](_0x468a56['id']),_0x13665b['descriptionFactory']['registerAttributeLabel'](_0x468a56['id'],'link\x20('+_0x468a56['label']['toLowerCase']()+')');_0x13665b['descriptionFactory']['registerDescriptionCallback'](_0x44c960=>{if('attribute'!=_0x44c960['type'])return;const {data:_0x4f5dcc}=_0x44c960;if(!_0x4f5dcc||'linkHref'!=_0x4f5dcc['key'])return;const _0x1078af=_0x4f5dcc['newValue'],_0x83503f=_0x3dd77c['locale'];return{'type':'format','content':null==_0x1078af?o(_0x83503f,'*Remove\x20link*'):o(_0x83503f,'*Set\x20link:*\x20%0','\x22'+_0x1078af+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50df3b=this['editor'],_0x292dad=_0x50df3b['locale'];_0x50df3b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a7731=>{if('formatInline'!=_0x2a7731['type'])return;const {data:_0x1156f3}=_0x2a7731;if(_0x1156f3){if('link'==_0x1156f3['commandName']){const _0x182815=_0x1156f3['commandParams'][0x0];return{'type':'format','content':o(_0x292dad,'*Set\x20link:*\x20%0','\x22'+_0x182815+'\x22')};}return'unlink'==_0x1156f3['commandName']?{'type':'format','content':o(_0x292dad,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x350409{['afterInit'](){const _0x33d194=this['editor'],_0x34e21a=_0x33d194['locale'];if(!_0x33d194['plugins']['has']('LegacyListEditing'))return;const _0x40943f=_0x33d194['plugins']['get']('TrackChangesEditing'),_0x57ab79=_0x33d194['plugins']['has']('LegacyTodoListEditing');function _0x2608ff(_0x958618){return()=>{const _0x459706=_0x33d194['model']['document']['selection'],_0x1d9e7d=_0x33d194['commands']['get'](_0x958618);if(_0x1d9e7d['value'])return void _0x33d194['execute']('paragraph',{});const _0x7946c3=_0x958618['slice'](0x0,-0x4),_0x9128f5=function(_0x34c728,_0x30b297,_0x3ffdcf){let _0x32b1e1=Array['from'](_0x34c728)['filter'](_0xbbb382=>function(_0x1c4c64,_0x320465){return _0x320465['checkChild'](_0x1c4c64['parent'],'listItem')&&!_0x320465['isObject'](_0x1c4c64);}(_0xbbb382,_0x3ffdcf));_0x32b1e1=_0x32b1e1['filter'](_0x5c5278=>!_0x5c5278['is']('element','listItem')||_0x5c5278['getAttribute']('listType')!=_0x30b297);const _0x479837=new Set();for(const _0x3f9434 of _0x32b1e1)_0x3f9434['is']('element','listItem')?_0x479837['add'](Le(_0x3f9434)):_0x479837['add'](_0x3f9434);return Array['from'](_0x479837);}(_0x459706['getSelectedBlocks'](),_0x7946c3,_0x33d194['model']['schema']);_0x33d194['model']['change'](()=>{for(const _0x57325f of _0x9128f5)_0x40943f['markBlockFormat'](_0x57325f,{'commandName':_0x958618,'commandParams':[{'forceValue':!_0x1d9e7d['value']}],'formatGroupId':'blockName'},Ee(_0x57325f));});};}function _0x5be47f(_0x4a7827){return()=>{const _0x45c1f1=function(_0x28fb26){let _0x17b33f=Array['from'](_0x28fb26);const _0xa43104=_0x17b33f['findIndex'](_0x277faa=>'listItem'!=_0x277faa['name']);return _0xa43104>-0x1&&(_0x17b33f=_0x17b33f['slice'](0x0,_0xa43104)),_0x17b33f;}(_0x33d194['model']['document']['selection']['getSelectedBlocks']()),_0x10223e=_0x33d194['model']['createRange'](_0x33d194['model']['createPositionAt'](_0x45c1f1[0x0],'before'),_0x33d194['model']['createPositionAt'](_0x45c1f1[_0x45c1f1['length']-0x1],'end'));_0x33d194['model']['change'](()=>{_0x40943f['markBlockFormat'](_0x10223e,{'commandName':_0x4a7827,'commandParams':[],'formatGroupId':'listIndent'},function(_0x235b53){const _0x608c1d=new Set();for(const _0x17fe7d of _0x235b53){let _0x4fbf45=_0x17fe7d['nextSibling'];for(;_0x4fbf45&&_0x4fbf45['getAttribute']('listIndent')>_0x17fe7d['getAttribute']('listIndent');)_0x608c1d['add'](_0x4fbf45),_0x4fbf45=_0x4fbf45['nextSibling'];}return Array['from'](_0x608c1d);}(_0x45c1f1));});};}_0x40943f['enableCommand']('numberedList',_0x2608ff('numberedList')),_0x40943f['enableCommand']('bulletedList',_0x2608ff('bulletedList')),_0x57ab79&&_0x40943f['enableCommand']('todoList',_0x2608ff('todoList')),_0x40943f['enableCommand']('indentList',_0x5be47f('indentList')),_0x40943f['enableCommand']('outdentList',_0x5be47f('outdentList')),_0x57ab79&&_0x40943f['enableCommand']('checkTodoList',()=>{const _0x3b182b=_0x33d194['commands']['get']('checkTodoList'),_0x484280=Array['from'](_0x3b182b['_selectedElements']);_0x484280['filter'](_0x3a5f84=>_0x3a5f84['getAttribute']('todoListChecked')!=_0x3b182b['value']),_0x33d194['model']['change'](()=>{for(const _0x2d9f04 of _0x484280)_0x40943f['markBlockFormat'](_0x2d9f04,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3b182b['value']}]});});}),_0x40943f['descriptionFactory']['registerElementLabel']('listItem',_0x1e7a24=>o(_0x34e21a,'ELEMENT_LIST_ITEM',_0x1e7a24)),_0x40943f['descriptionFactory']['registerDescriptionCallback'](_0x36c8f8=>{if('formatBlock'!=_0x36c8f8['type']&&'formatInline'!=_0x36c8f8['type'])return;const {data:_0x38cc5d}=_0x36c8f8;if(_0x38cc5d){if('numberedList'==_0x38cc5d['commandName']||'bulletedList'==_0x38cc5d['commandName']||'todoList'==_0x38cc5d['commandName'])switch(_0x38cc5d['commandName']['replace']('List','')){case'bulleted':return _0x158632(o(_0x34e21a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x158632(o(_0x34e21a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x158632(o(_0x34e21a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x38cc5d['commandName'])return{'type':'format','content':o(_0x34e21a,'*Indent:*\x20%0',o(_0x34e21a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x38cc5d['commandName'])return{'type':'format','content':o(_0x34e21a,'*Outdent:*\x20%0',o(_0x34e21a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x38cc5d['commandName'])return _0x38cc5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x34e21a,'*Check\x20item*')}:{'type':'format','content':o(_0x34e21a,'*Uncheck\x20item*')};}function _0x158632(_0x4a597c){return{'type':'format','content':o(_0x34e21a,'*Change\x20to:*\x20%0',_0x4a597c)};}});}}function Le(_0x411987){const _0x1d0bc5=_0x411987['getAttribute']('listIndent');if(0x0==_0x1d0bc5)return _0x411987;let _0x4bd0fb=_0x411987;for(;_0x411987['previousSibling']&&_0x411987['previousSibling']['is']('element','listItem');){const _0x4471c2=_0x411987['previousSibling']['getAttribute']('listIndent');if(_0x4471c2==_0x1d0bc5)_0x4bd0fb=_0x411987['previousSibling'];else{if(_0x4471c2<_0x1d0bc5)break;}_0x411987=_0x411987['previousSibling'];}return _0x4bd0fb;}function Ee(_0x22b552){const _0x17d80f=[];if(_0x22b552['is']('element','listItem')&&_0x22b552['getAttribute']('listIndent')>0x0){let _0x1ba251=_0x22b552['nextSibling'];for(;_0x1ba251&&'listItem'==_0x1ba251['name']&&_0x1ba251['getAttribute']('listIndent')==_0x22b552['getAttribute']('listIndent');)_0x17d80f['push'](_0x1ba251),_0x1ba251=_0x1ba251['nextSibling'];}return _0x17d80f;}class Q extends _0x350409{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x555824=this['editor']['config']['get']('list.properties'),_0x1b75b0=this['editor']['plugins']['get']('TrackChangesEditing');_0x555824['styles']&&_0x1b75b0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x555824['reversed']&&_0x1b75b0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x555824['startIndex']&&_0x1b75b0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1b75b0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x144491,_0xee91ca={}){const _0x54fbb7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x66ed00=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54fbb7['markMultiRangeBlockFormat'](_0x66ed00,{'commandName':'listStyle','commandParams':[{'type':_0xee91ca['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x34e69d,_0x19f4f0={}){const _0x3578b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x803864=this['_getSuggestionBlocks'](_0x292f72=>_0x292f72['is']('element','listItem')&&'numbered'===_0x292f72['getAttribute']('listType'));if(_0x803864['length']<0x1)return;const _0x5a64aa=_0x803864['map'](_0x411f6f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x411f6f,'before'),this['editor']['model']['createPositionAt'](_0x411f6f,0x0)));this['editor']['model']['change'](()=>{_0x3578b4['markMultiRangeBlockFormat'](_0x5a64aa,{'commandName':'listReversed','commandParams':[{'reversed':_0x19f4f0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1eaad4,_0xa413d2={}){const _0x8c365=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37f20c=this['_getSuggestionBlocks'](_0x512125=>_0x512125['is']('element','listItem')&&'numbered'===_0x512125['getAttribute']('listType'));if(_0x37f20c['length']<0x1)return;const _0x1fad81=_0x37f20c['map'](_0x294cf3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x294cf3,'before'),this['editor']['model']['createPositionAt'](_0x294cf3,0x0)));this['editor']['model']['change'](()=>{_0x8c365['markMultiRangeBlockFormat'](_0x1fad81,{'commandName':'listStart','commandParams':[{'startIndex':_0xa413d2['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4a5dea){if('formatBlock'!=_0x4a5dea['type']&&'formatInline'!=_0x4a5dea['type'])return;const _0x1bc01e=this['editor']['locale'],{data:_0x42fd52}=_0x4a5dea;if(!_0x42fd52)return;let _0xce1c04,_0x4b7c00;switch(_0x42fd52['commandName']){case'listStyle':_0xce1c04='*Change\x20to:*\x20%0',_0x4b7c00={'type':'format','content':o(_0x1bc01e,_0xce1c04,o(_0x1bc01e,this['_getTranslationKeyForListStyle'](_0x42fd52['commandParams'][0x0]['type'])))};break;case'listReversed':_0xce1c04=_0x42fd52['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4b7c00={'type':'format','content':o(_0x1bc01e,_0xce1c04)};break;case'listStart':_0xce1c04='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4b7c00={'type':'format','content':o(_0x1bc01e,_0xce1c04,_0x42fd52['commandParams'][0x0]['startIndex'])};}return _0x4b7c00;}['_getSuggestionBlocksForListStyle'](){const _0x3f034f=this['editor']['plugins']['get']('LegacyListUtils');let _0x1cb6c7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1cb6c7[0x0]?.['is']('element','listItem')&&_0x1cb6c7['unshift'](..._0x3f034f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1cb6c7[_0x1cb6c7['length']-0x1]?.['is']('element','listItem')&&_0x1cb6c7['push'](..._0x3f034f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1cb6c7=[...new Set(_0x1cb6c7)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1cb6c7=_0x1cb6c7['filter'](_0x5b7cfe=>_0x5b7cfe['is']('element','listItem'))),_0x1cb6c7;}['_getSuggestionBlocks'](_0x160929){const _0x26d294=this['editor']['plugins']['get']('LegacyListUtils');let _0x11368d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x160929)['map'](_0x4abadb=>{const _0x2ce550=this['editor']['model']['createPositionAt'](_0x4abadb,0x0);return[..._0x26d294['getSiblingNodes'](_0x2ce550,'backward'),..._0x26d294['getSiblingNodes'](_0x2ce550,'forward')];})['flat']();return _0x11368d=[...new Set(_0x11368d)],_0x11368d;}['_getTranslationKeyForListStyle'](_0x3305cd){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3305cd)||'default')['toUpperCase']()+'_LIST_'+_0x3305cd['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x350409{['afterInit'](){const _0x152fa8=this['editor'];if(!_0x152fa8['plugins']['has']('MediaEmbedEditing'))return;const _0x366593=_0x152fa8['plugins']['get']('TrackChangesEditing'),_0xc1000c=_0x152fa8['locale'];_0x366593['enableCommand']('mediaEmbed'),_0x366593['descriptionFactory']['registerElementLabel']('media',_0x30cd37=>o(_0xc1000c,'ELEMENT_MEDIA',_0x30cd37)),_0x152fa8['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x449da3,{writer:_0x27653f,options:_0x58aaab})=>{if(_0x58aaab['showSuggestionHighlights'])return _0x27653f['createEmptyElement']('div');},'converterPriority':'high'}),_0x152fa8['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1ce5a9,_0x13fc03,_0x5a69fa)=>{_0x5a69fa['options']['showSuggestionHighlights']&&_0x1ce5a9['stop']();},{'priority':'high'});}}class pt extends _0x350409{['afterInit'](){const _0xb22d0d=this['editor'];_0xb22d0d['plugins']['has']('MentionEditing')&&_0xb22d0d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x350409{['afterInit'](){const _0x57c491=this['editor'];if(!_0x57c491['plugins']['has']('MergeFieldsEditing'))return;const _0x1fd6ff=_0x57c491['plugins']['get']('TrackChangesEditing'),_0x280aff=_0x57c491['locale'];_0x1fd6ff['enableCommand']('insertMergeField'),_0x1fd6ff['enableCommand']('insertMergeFieldBlock'),_0x1fd6ff['enableCommand']('insertMergeFieldImage'),_0x1fd6ff['descriptionFactory']['registerElementLabel']('mergeField',_0x3839b4=>o(_0x280aff,'ELEMENT_MERGE_FIELD',_0x3839b4)),_0x1fd6ff['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x19cfa2=>o(_0x280aff,'ELEMENT_MERGE_FIELD',_0x19cfa2)),_0x1fd6ff['descriptionFactory']['registerDescriptionCallback'](_0x548f9a=>{if('insertion'!=_0x548f9a['type']&&'deletion'!=_0x548f9a['type'])return;const _0x204ba9=_0x548f9a['getContainedElement']();if(null==_0x204ba9)return;const _0x1416b7=_0x57c491['plugins']['get']('MergeFieldsEditing');let _0x987f8d;switch(_0x1416b7['getMergeFieldType'](_0x204ba9)){case null:return;case'image':{const _0x3528c1=_0x1416b7['unwrapAffixes'](_0x204ba9['getAttribute']('src'));_0x987f8d=_0x1416b7['getLabel'](_0x3528c1)||_0x3528c1;break;}default:{const _0x51b6a0=_0x204ba9['getAttribute']('id');_0x987f8d=_0x1416b7['getLabel'](_0x51b6a0)||_0x51b6a0;break;}}return'insertion'==_0x548f9a['type']?{'type':'insertion','content':o(_0x280aff,'*Insert:*\x20%0','\x22'+_0x987f8d+'\x22\x20'+o(_0x280aff,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x280aff,'*Remove:*\x20%0','\x22'+_0x987f8d+'\x22\x20'+o(_0x280aff,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x350409{['afterInit'](){const _0x27d696=this['editor'],_0x3f4dcb=_0x27d696['plugins']['get']('TrackChangesEditing');_0x27d696['plugins']['has']('MultiLevelList')&&(_0x3f4dcb['enableDefaultAttributesIntegration']('multiLevelList'),_0x3f4dcb['registerBlockAttribute']('listMarkerStyle'),_0x3f4dcb['descriptionFactory']['registerDescriptionCallback'](_0x53f432=>this['handleDescriptions'](_0x53f432)));}['handleDescriptions'](_0x3a6152){const _0x5a8eba=this['editor']['locale'],{data:_0x5b1d5b}=_0x3a6152,_0x502ada={'type':'format','content':''};if(_0x5b1d5b&&'listMarkerStyle'==_0x5b1d5b['key']){if(!_0x5b1d5b['oldValue'])return{'type':'format','content':o(_0x5a8eba,'*Set\x20format:*\x20%0',o(_0x5a8eba,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b1d5b['newValue']+')'};if(!_0x5b1d5b['newValue']){let _0x48f02a=_0x3a6152['head'];for(;_0x48f02a;){if(_0x48f02a['data']&&'listType'==_0x48f02a['data']['key']&&_0x48f02a['data']['newValue'])return _0x502ada;_0x48f02a=_0x48f02a['next'];}return{'type':'format','content':o(_0x5a8eba,'*Remove\x20format:*\x20%0',o(_0x5a8eba,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b1d5b['oldValue']+')'};}}}}class bt extends _0x350409{['afterInit'](){const _0xd92c78=this['editor'];if(!_0xd92c78['plugins']['has']('PageBreakEditing'))return;_0xd92c78['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x59122a=_0xd92c78['plugins']['get']('TrackChangesEditing'),_0x42cdde=_0xd92c78['locale'];_0x59122a['descriptionFactory']['registerElementLabel']('pageBreak',_0x4a3410=>o(_0x42cdde,'ELEMENT_PAGE_BREAK',_0x4a3410));}}class yt extends _0x350409{['afterInit'](){const _0x4d5773=this['editor'];if(!_0x4d5773['plugins']['has']('Paragraph'))return;const _0x4b641d=_0x4d5773['locale'],_0x52b596=_0x4d5773['plugins']['get']('TrackChangesEditing');_0x52b596['descriptionFactory']['registerElementLabel']('paragraph',_0x5a3176=>o(_0x4b641d,'ELEMENT_PARAGRAPH',_0x5a3176)),_0x52b596['enableDefaultAttributesIntegration']('paragraph'),_0x52b596['enableCommand']('insertParagraph'),_0x4d5773['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4d5773),{'priority':'highest'}),_0x4d5773['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x41a268,_0x991958,_0x510e6e)=>{_0x510e6e['options']['showSuggestionHighlights']&&nr(_0x4d5773,{'showActiveMarker':!0x1})(_0x41a268,_0x991958,_0x510e6e);},{'priority':'highest'});const _0x4df07e=_0x52b596['descriptionFactory'];_0x4df07e['registerDescriptionCallback'](_0x20c7c7=>{if('insertion'!==_0x20c7c7['type'])return;const {start:_0x1def1d,end:_0x1cf0d8}=_0x20c7c7['getFirstRange']();if(!_0x1def1d['isTouching'](_0x1cf0d8)||!_0x1def1d['nodeAfter'])return;const _0x30721d=_0x4d5773['model']['schema'],_0x570cca=_0x1def1d['nodeAfter'];return _0x30721d['isBlock'](_0x570cca)&&!_0x30721d['isLimit'](_0x570cca)&&_0x30721d['checkChild'](_0x570cca,'$text')?{'type':'insertion','content':o(_0x4b641d,'*Insert:*\x20%0',_0x4df07e['getItemLabel'](_0x570cca,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40e16c=this['editor'],_0x17d853=_0x40e16c['locale'];_0x40e16c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d56a6=>{if('formatBlock'!=_0x2d56a6['type'])return;const {data:_0x3d1a92}=_0x2d56a6;return _0x3d1a92&&'paragraph'==_0x3d1a92['commandName']?{'type':'format','content':o(_0x17d853,'*Change\x20to:*\x20%0',o(_0x17d853,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x22bfff,{showActiveMarker:_0x2e7bbc=!0x0}={}){return(_0xa4219d,_0x48d0af,_0x27bb37)=>{const _0x2e044b=_0x22bfff['plugins']['get']('TrackChangesEditing'),_0x2d3f62=_0x48d0af['markerRange']['start'],_0x707152=_0x48d0af['markerRange']['end'],_0x15bb6=_0x22bfff['model']['schema'];if(!_0x2d3f62['isTouching'](_0x707152)||!_0x2d3f62['nodeAfter'])return;const _0x4ec07a=_0x2d3f62['nodeAfter'];if(_0x15bb6['isBlock'](_0x4ec07a)&&!_0x15bb6['isLimit'](_0x4ec07a)&&_0x15bb6['checkChild'](_0x4ec07a,'$text')){if(!_0x27bb37['consumable']['consume'](_0x48d0af['markerRange'],_0xa4219d['name']))return;const {authorId:_0x4af5c5}=_0x2e044b['_splitMarkerName'](_0x48d0af['markerName']),_0x321f0c=_0x27bb37['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4af5c5}),_0x4446f3=_0x27bb37['mapper']['toViewPosition'](_0x707152);_0x2e7bbc&&_0x2e044b['activeMarkers']['includes'](_0x48d0af['markerName'])&&_0x27bb37['writer']['addClass']('ck-suggestion-marker--active',_0x321f0c),_0x27bb37['writer']['insert'](_0x4446f3,_0x321f0c),_0x27bb37['mapper']['bindElementToMarker'](_0x321f0c,_0x48d0af['markerName']);}};}class jt extends _0x350409{['afterInit'](){const _0x43ff15=this['editor'];_0x43ff15['commands']['get']('replaceSource')&&_0x43ff15['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x350409{['afterInit'](){const _0x2f65de=this['editor'];if(!_0x2f65de['plugins']['has']('RemoveFormatEditing'))return;_0x2f65de['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31fa1a=this['editor'];_0x31fa1a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x333aec=>{if('formatBlock'!=_0x333aec['type']&&'formatInline'!=_0x333aec['type'])return;const {data:_0x33d015}=_0x333aec;return _0x33d015&&'removeFormat'==_0x33d015['commandName']?{'type':'format','content':o(_0x31fa1a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x350409{['afterInit'](){const _0x3e85fc=this['editor'];if(!_0x3e85fc['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2efcc8=_0x3e85fc['plugins']['get']('TrackChangesEditing');_0x2efcc8['enableCommand']('goToPreviousRestrictedEditingException'),_0x2efcc8['enableCommand']('goToNextRestrictedEditingException');const _0x44a7b6=_0x3e85fc['plugins']['get']('RestrictedEditingModeEditing');_0x44a7b6['enableCommand']('trackChanges'),_0x44a7b6['enableCommand']('acceptSuggestion'),_0x44a7b6['enableCommand']('discardSuggestion'),_0x44a7b6['enableCommand']('acceptAllSuggestions'),_0x44a7b6['enableCommand']('discardAllSuggestions'),_0x44a7b6['enableCommand']('acceptSelectedSuggestions'),_0x44a7b6['enableCommand']('discardSelectedSuggestions');}}class It extends _0x350409{static get['requires'](){return[_0x15a6f2];}['init'](){const _0x28f367=this['editor'],_0xe2d4bf=_0x28f367['plugins']['get']('TrackChangesEditing');_0xe2d4bf['enableCommand']('shiftEnter'),_0x28f367['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x28f367),{'priority':'high'}),_0x28f367['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x28f367),{'priority':'high'}),_0x28f367['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18ce91,_0x3fc686,_0x1b6ef7)=>{_0x1b6ef7['options']['showSuggestionHighlights']&&je(_0x28f367,{'showActiveMarker':!0x1})(_0x18ce91,_0x3fc686,_0x1b6ef7);}),_0xe2d4bf['descriptionFactory']['registerElementLabel']('softBreak',_0x40664a=>o(_0x28f367['locale'],'ELEMENT_LINE_BREAK',_0x40664a));}}function je(_0x481b77,{showActiveMarker:_0x2c9e7a=!0x0}={}){return(_0x4ea078,_0x3a9c5e,_0x2d0755)=>{const _0x5772d1=_0x481b77['plugins']['get']('TrackChangesEditing');if(!_0x2d0755['consumable']['test'](_0x3a9c5e['markerRange'],_0x4ea078['name']))return;const _0x37b126=_0x481b77['model'];for(const _0x181b3c of _0x3a9c5e['markerRange']['getItems']()){if(!_0x181b3c['is']('element','softBreak'))continue;const _0x481f79='deletion'==_0x3a9c5e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5e3717}=_0x5772d1['_splitMarkerName'](_0x3a9c5e['markerName']),_0x4ab0c0=_0x2d0755['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x481f79,'data-author-id':_0x5e3717}),_0x2f4dc0=_0x2d0755['mapper']['toViewPosition'](_0x37b126['createPositionBefore'](_0x181b3c));_0x2c9e7a&&_0x5772d1['activeMarkers']['includes'](_0x3a9c5e['markerName'])&&_0x2d0755['writer']['addClass']('ck-suggestion-marker--active',_0x4ab0c0),_0x2d0755['writer']['insert'](_0x2f4dc0,_0x4ab0c0),_0x2d0755['mapper']['bindElementToMarker'](_0x4ab0c0,_0x3a9c5e['markerName']);}};}class vt extends _0x350409{['afterInit'](){const _0x312e45=this['editor'],_0x52d3b2=_0x312e45['model'],_0x19cfd2=_0x312e45['locale'];if(!_0x312e45['plugins']['has']('StandardEditingModeEditing'))return;const _0x47e8ce=_0x312e45['plugins']['get']('TrackChangesEditing'),_0x1585bf='restrictedEditingException',_0x391e61=_0x312e45['commands']['get'](_0x1585bf);_0x47e8ce['enableCommand'](_0x1585bf,(_0x2fde15,_0x510e2e={})=>{const _0x54f5e1=_0x52d3b2['document']['selection'];if(_0x54f5e1['isCollapsed'])return void _0x2fde15(_0x510e2e);const _0x80c292=void 0x0!==_0x510e2e['forceValue']?_0x510e2e['forceValue']:!_0x391e61['value'];_0x52d3b2['change'](()=>{const _0x1502ac=Array['from'](_0x54f5e1['getRanges']());for(const _0x12fcae of _0x1502ac){const _0x26ad4e=_0x80c292?[_0x12fcae]:io(_0x1585bf,_0x12fcae,_0x52d3b2);for(const _0x5cf7c8 of _0x26ad4e)_0x47e8ce['markInlineFormat'](_0x5cf7c8,{'commandName':_0x1585bf,'commandParams':[{'forceValue':_0x80c292}]});}});}),_0x47e8ce['descriptionFactory']['registerDescriptionCallback'](_0x1f6a55=>{if('formatBlock'!=_0x1f6a55['type']&&'formatInline'!=_0x1f6a55['type'])return;const {data:_0x2ec2e8}=_0x1f6a55;return _0x2ec2e8&&_0x2ec2e8['commandName']==_0x1585bf?_0x2ec2e8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19cfd2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x19cfd2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x350409{['afterInit'](){const _0x1caf0b=this['editor'];if(!_0x1caf0b['plugins']['has']('Style')||!_0x1caf0b['plugins']['has']('DataSchema'))return;const _0x8901f9=_0x1caf0b['plugins']['get']('TrackChangesEditing'),_0x1283a6=_0x1caf0b['locale'],_0x207722=_0x1caf0b['config']['get']('style')||{},_0x262c7b=_0x1caf0b['plugins']['get']('GeneralHtmlSupport'),_0x4c0807=_0x1caf0b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1caf0b['plugins']['get']('DataSchema'),_0x207722['definitions']);_0x8901f9['enableDefaultAttributesIntegration']('style');const _0x48931d=new Set();for(const _0x52238b of _0x4c0807['block']){const _0x46e8b6=_0x262c7b['getGhsAttributeNameForElement'](_0x52238b['element']);_0x48931d['add'](_0x46e8b6);}const _0x202b53=new Set();for(const _0x293297 of _0x4c0807['inline']){const _0x46a49e=_0x262c7b['getGhsAttributeNameForElement'](_0x293297['element']);_0x202b53['add'](_0x46a49e);for(const _0x17aad1 of _0x293297['ghsAttributes'])_0x202b53['add'](_0x17aad1);}for(const _0x53b977 of _0x48931d)_0x8901f9['registerBlockAttribute'](_0x53b977),_0x8901f9['descriptionFactory']['registerAttributeLabel'](_0x53b977,o(_0x1283a6,'FORMAT_STYLE'));for(const _0x1aa836 of _0x202b53)_0x8901f9['registerInlineAttribute'](_0x1aa836),_0x8901f9['descriptionFactory']['registerAttributeLabel'](_0x1aa836,o(_0x1283a6,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f3473=this['editor'],_0x1a1a73=_0x2f3473['locale'];_0x2f3473['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49e040=>{if('formatBlock'!=_0x49e040['type']&&'formatInline'!=_0x49e040['type'])return;const {data:_0x1975c5}=_0x49e040;return _0x1975c5&&'style'===_0x1975c5['commandName']?_0x1975c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a1a73,'*Set\x20format:*\x20%0',_0x1975c5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1a1a73,'*Remove\x20format:*\x20%0',_0x1975c5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x350409{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x21d8f2){super(_0x21d8f2),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5529a2=this['editor'],_0x5a16fa=_0x5529a2['model']['document']['selection'];if(!_0x5529a2['plugins']['has']('TableEditing'))return;const _0x69687d=_0x5529a2['locale'],_0x192277=_0x5529a2['plugins']['get']('TrackChangesEditing'),_0x4c823f=_0x5529a2['plugins']['get']('TableUtils');_0x192277['descriptionFactory']['registerElementLabel']('table',_0x1bea0c=>o(_0x69687d,'ELEMENT_TABLE',_0x1bea0c)),this['_setupColumnsRowsFixing'](),_0x192277['enableCommand']('insertTable'),_0x192277['enableCommand']('selectTableRow'),_0x192277['enableCommand']('selectTableColumn');for(const _0x564055 of['insertTableRowAbove','insertTableRowBelow']){const _0x419a78=_0x5529a2['commands']['get'](_0x564055);_0x192277['enableCommand'](_0x564055,_0xd06efb=>{_0x5529a2['model']['change'](_0x1f367f=>{_0xd06efb();const _0x4dd211='above'===_0x419a78['order'],_0x1438f8=_0x4c823f['getSelectionAffectedTableCells'](_0x5a16fa),_0x11945d=_0x4c823f['getRowIndexes'](_0x1438f8),_0x3f8233=_0x4dd211?_0x11945d['first']-0x1:_0x11945d['last']+0x1,_0x4fde33=_0x1438f8[0x0]['findAncestor']('table'),_0x32947d=_0x4c823f['createTableWalker'](_0x4fde33,{'startRow':_0x3f8233,'endRow':_0x3f8233}),_0x333408=Array['from'](_0x32947d)['map'](_0xd7da5d=>_0x1f367f['createRangeOn'](_0xd7da5d['cell']));_0x192277['markMultiRangeInsertion'](_0x333408,'tableRow');});});}for(const _0xf18d4b of['insertTableColumnLeft','insertTableColumnRight']){const _0x5ad57a=_0x5529a2['commands']['get'](_0xf18d4b);_0x192277['enableCommand'](_0xf18d4b,_0x23990b=>{_0x5529a2['model']['change'](_0x1b03dd=>{_0x23990b();const _0x3aff14='left'===_0x5ad57a['order'],_0x2b41fe=_0x4c823f['getSelectionAffectedTableCells'](_0x5a16fa),_0x9add61=_0x4c823f['getColumnIndexes'](_0x2b41fe),_0x177274=_0x3aff14?_0x9add61['first']-0x1:_0x9add61['last']+0x1,_0x1257a1=_0x2b41fe[0x0]['findAncestor']('table'),_0x13060f=_0x4c823f['createTableWalker'](_0x1257a1,{'startRow':0x0,'column':_0x177274,'includeAllSlots':!0x1}),_0x59229c=Array['from'](_0x13060f)['map'](_0x397111=>_0x1b03dd['createRangeOn'](_0x397111['cell']));_0x192277['markMultiRangeInsertion'](_0x59229c,'tableColumn');});});}for(const _0x3ffe7a of['removeTableRow','removeTableColumn']){const _0x22492e=_0x3ffe7a['substr'](0xb),_0xa8158b=_0x22492e['toLowerCase'](),_0x47ad88=_0xa8158b['substr'](0x0,0x3)+'span',_0x556ffa='table'+_0x22492e,_0x2c1a69='min'+_0x22492e,_0x24bd38='max'+_0x22492e;_0x192277['enableCommand'](_0x3ffe7a,()=>{_0x5529a2['model']['change'](_0x4748a7=>{const _0x14c1a9=_0x4c823f['getSelectionAffectedTableCells'](_0x5a16fa),_0x3b1fa1=_0x14c1a9[0x0]['findAncestor']('table');let _0x3cebbf;if('removeTableRow'==_0x3ffe7a){const _0x4f39f3=_0x4c823f['getRowIndexes'](_0x14c1a9);_0x3cebbf={'startRow':_0x4f39f3['first'],'endRow':_0x4f39f3['last'],'includeAllSlots':!0x0};}else{const _0x1561c0=_0x4c823f['getColumnIndexes'](_0x14c1a9);_0x3cebbf={'startColumn':_0x1561c0['first'],'endColumn':_0x1561c0['last'],'includeAllSlots':!0x0};}const _0x45d17a=_0x4c823f['createTableWalker'](_0x3b1fa1,_0x3cebbf),_0x1b56b9=Array['from'](_0x45d17a)['map'](({cell:_0x50de9c})=>_0x50de9c),_0x2cd830=Ne(_0x1b56b9['filter'](_0x3852a4=>_0x3852a4['hasAttribute'](_0x47ad88))),_0x3db41e=Ne(_0x1b56b9['filter'](_0x33c729=>!_0x33c729['hasAttribute'](_0x47ad88)))['map'](_0x30fb1e=>_0x4748a7['createRangeOn'](_0x30fb1e)),_0x3c346d=_0x192277['markMultiRangeDeletion'](_0x3db41e,_0x556ffa);if(_0x3c346d&&('tableRow'==_0x3c346d['subType']||'tableColumn'==_0x3c346d['subType'])){const _0x31ffa8=this['_getSuggestionCoords'](_0x3c346d);for(const _0x2ecd78 of _0x2cd830){const _0x433a57=_0x4748a7['createRangeOn'](_0x2ecd78),_0x1361fe=_0x4c823f['getCellLocation'](_0x2ecd78),_0x357a76=_0x2ecd78['getAttribute'](_0x47ad88)-0x1,_0x53d18d=_0x31ffa8[_0x2c1a69],_0x49eb00=_0x31ffa8[_0x24bd38];_0x53d18d<=_0x1361fe[_0xa8158b]&&_0x1361fe[_0xa8158b]+_0x357a76<=_0x49eb00&&_0x3c346d['addRange'](_0x433a57);}}});});}function _0x46d524(_0x22e917){const _0x3a5780=Array['from'](_0x5a16fa['getRanges']())['map'](_0x7e4dba=>_0x46ccca['fromRange'](_0x7e4dba));_0x5529a2['model']['change'](_0xae33bb=>{const _0x106305=_0xae33bb['batch'];_0x22e917=_0x22e917['filter'](_0xca21ea=>'$graveyard'!=_0xca21ea['root']['rootName']),_0xae33bb['setSelection'](_0x22e917),_0x5529a2['commands']['get']('removeTableRow')['refresh'](),_0x5529a2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5529a2['model']['enqueueChange'](()=>{_0x5529a2['model']['enqueueChange'](_0x106305,_0x5db6ad=>{const _0x5afac2=_0x3a5780['filter'](_0x51b3ba=>'$graveyard'!=_0x51b3ba['root']['rootName']);_0x5afac2['length']>0x0&&_0x5db6ad['setSelection'](_0x5afac2);for(const _0x3e1ac4 of _0x3a5780)_0x3e1ac4['detach']();});});});}function _0x5d7f47(_0x432d40){_0x5529a2['model']['change'](_0x497a10=>{const _0x240ad5=Array['from'](_0x5a16fa['getRanges']())['map'](_0x64723d=>_0x46ccca['fromRange'](_0x64723d)),_0x38eb2b=[];for(const _0x4e7e5a of _0x432d40)for(const _0x20c76e of _0x4e7e5a['getItems']({'shallow':!0x0}))_0x38eb2b['push'](_0x20c76e);for(const _0x28c476 of _0x38eb2b)'$graveyard'!=_0x28c476['root']['rootName']&&(_0x497a10['setSelection'](_0x497a10['createPositionAt'](_0x28c476,0x0)),_0x5529a2['commands']['get']('removeTableColumn')['refresh'](),_0x5529a2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x192d64=_0x240ad5['filter'](_0x4a0c0b=>'$graveyard'!=_0x4a0c0b['root']['rootName']);_0x192d64['length']>0x0&&_0x497a10['setSelection'](_0x192d64);for(const _0x197a6d of _0x240ad5)_0x197a6d['detach']();});}function _0x4afc27(_0x1d0c34,_0x3e90cc){return _0x3e90cc['every'](_0x2789bd=>_0x1d0c34['some'](_0x526cae=>_0x526cae['end']['isEqual'](_0x2789bd['start'])||_0x2789bd['end']['isEqual'](_0x526cae['start'])));}function _0x56fae6(_0x238290,_0x9cb994){return!_0x238290['some'](_0x57085c=>_0x9cb994['some'](_0x8c06a=>_0x57085c['isIntersecting'](_0x8c06a)))&&_0x238290['some'](_0x1d64a3=>_0x9cb994['some'](_0x28289e=>_0x1d64a3['end']['isTouching'](_0x28289e['start'])));}_0x5529a2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x8aa633,_0x1a51b9,_0x23f91e)=>{if(!_0x23f91e['options']['showSuggestionHighlights'])return;const _0x28ef3f=_0x1a51b9['item'];if(!_0x28ef3f)return;const _0x17299f=_0x23f91e['mapper']['toViewElement'](_0x28ef3f);function _0x350eda(_0x4fa7ed){return Array['isArray'](_0x4fa7ed)?_0x4fa7ed:[_0x4fa7ed];}_0x17299f&&'tableCell'===_0x28ef3f['name']&&_0x56e476(_0x17299f,_0x23f91e['writer'],(_0x2f57ed,_0x5ef4ff,_0x4737c7)=>_0x4737c7['addClass'](_0x350eda(_0x5ef4ff['classes']),_0x2f57ed),(_0x58871f,_0x4a3df9,_0x10b1af)=>_0x10b1af['removeClass'](_0x350eda(_0x4a3df9['classes']),_0x58871f));},{'priority':'highest'}),_0x192277['descriptionFactory']['registerDescriptionCallback'](_0xb93da8=>{if('insertion'!=_0xb93da8['type']&&'deletion'!=_0xb93da8['type'])return;const _0x4e947f=_0xb93da8['getContainedElement']();if(null!=_0x4e947f&&_0x4e947f['is']('element','table')){if('insertion'==_0xb93da8['type']){const _0x1a77cd=_0xb93da8['getItems']()['filter'](_0x58721c=>_0x58721c['is']('$textProxy'))['map'](_0x55aef6=>_0x55aef6['data']);if(_0x1a77cd['length'])return{'type':'insertion','content':o(_0x69687d,'*Insert:*\x20%0',o(_0x69687d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1a77cd['join']('\x20')+'\x22'))};}if('deletion'==_0xb93da8['type']){const _0x509e87=_0xb93da8['getItems']()['filter'](_0x3d7d92=>_0x3d7d92['is']('$textProxy'))['map'](_0xde331b=>_0xde331b['data']);if(_0x509e87['length'])return{'type':'deletion','content':o(_0x69687d,'*Remove:*\x20%0',o(_0x69687d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x509e87['join']('\x20')+'\x22'))};}}}),_0x192277['descriptionFactory']['registerDescriptionCallback'](_0x43f29f=>{if('tableRow'==_0x43f29f['subType']){const _0x2088f6=_0x43f29f['getItems']()['filter'](_0x31a9f3=>_0x31a9f3['is']('$textProxy'))['map'](_0x187e9d=>_0x187e9d['data']),_0x158a19=this['_getSuggestionCoords'](_0x43f29f),_0x48dcc9=_0x158a19['maxRow']-_0x158a19['minRow']+0x1;if('insertion'==_0x43f29f['type'])return _0x2088f6['length']?{'type':'insertion','content':o(_0x69687d,'*Insert:*\x20%0',o(_0x69687d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48dcc9,'\x22'+_0x2088f6['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x69687d,'*Insert:*\x20%0',o(_0x69687d,'ELEMENT_TABLE_ROW',_0x48dcc9))};if('deletion'==_0x43f29f['type'])return _0x2088f6['length']?{'type':'deletion','content':o(_0x69687d,'*Remove:*\x20%0',o(_0x69687d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x48dcc9,'\x22'+_0x2088f6['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x69687d,'*Remove:*\x20%0',o(_0x69687d,'ELEMENT_TABLE_ROW',_0x48dcc9))};}if('tableColumn'==_0x43f29f['subType']){const _0x58b1f3=_0x43f29f['getItems']()['filter'](_0x410792=>_0x410792['is']('$textProxy'))['map'](_0x50f6b8=>_0x50f6b8['data']),_0x51fe9a=this['_getSuggestionCoords'](_0x43f29f),_0x27d37b=_0x51fe9a['maxColumn']-_0x51fe9a['minColumn']+0x1;if('insertion'==_0x43f29f['type'])return _0x58b1f3['length']?{'type':'insertion','content':o(_0x69687d,'*Insert:*\x20%0',o(_0x69687d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x27d37b,'\x22'+_0x58b1f3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x69687d,'*Insert:*\x20%0',o(_0x69687d,'ELEMENT_TABLE_COLUMN',_0x27d37b))};if('deletion'==_0x43f29f['type'])return _0x58b1f3['length']?{'type':'deletion','content':o(_0x69687d,'*Remove:*\x20%0',o(_0x69687d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x27d37b,'\x22'+_0x58b1f3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x69687d,'*Remove:*\x20%0',o(_0x69687d,'ELEMENT_TABLE_COLUMN',_0x27d37b))};}}),_0x192277['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x46d524),_0x192277['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x46d524),_0x192277['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5d7f47),_0x192277['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5d7f47),_0x192277['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4afc27),_0x192277['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4afc27),_0x192277['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x56fae6),_0x192277['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x56fae6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x409d1e=this['editor'],_0x2f9a0e=_0x409d1e['model']['document']['selection'];return(_0x291f15,_0x3b81b5)=>{_0x409d1e['model']['change'](_0x405811=>{const {commandName:_0x57be1e,commandParams:_0x1369a8}=_0x3b81b5;let _0x2483b3=_0x291f15[0x0]['end']['nodeBefore'];_0x1369a8&&_0x1369a8[0x0]&&!0x1===_0x1369a8[0x0]['forceValue']&&(_0x2483b3=_0x291f15[0x0]['start']['nodeAfter']);const _0x3c16b4=_0x405811['createRangeIn'](_0x2483b3);if('$graveyard'==_0x3c16b4['root']['rootName'])return;const _0xb8f73d=Array['from'](_0x2f9a0e['getRanges']())['map'](_0xa04870=>_0x46ccca['fromRange'](_0xa04870));_0x405811['setSelection'](_0x3c16b4),_0x409d1e['commands']['get'](_0x57be1e)['refresh'](),_0x1369a8['push']({'forceDefaultExecution':!0x0}),_0x409d1e['execute'](_0x57be1e,..._0x1369a8);const _0x58bcfd=_0xb8f73d['filter'](_0x4dbf36=>'$graveyard'!=_0x4dbf36['root']['rootName']);_0x58bcfd['length']>0x0&&_0x405811['setSelection'](_0x58bcfd);for(const _0x4787ca of _0xb8f73d)_0x4787ca['detach']();});};}['_getCoordsForCells'](_0x5d2d1f){const _0x4ca41b=this['editor']['plugins']['get']('TableUtils');let _0x22edca=Number['MAX_SAFE_INTEGER'],_0x43d9b4=Number['MIN_SAFE_INTEGER'],_0x2a3077=Number['MAX_SAFE_INTEGER'],_0x2402f4=Number['MIN_SAFE_INTEGER'];for(const _0x48a602 of _0x5d2d1f){if('$graveyard'==_0x48a602['root']['rootName'])continue;const {row:_0x59afbf,column:_0x193d0a}=_0x4ca41b['getCellLocation'](_0x48a602),_0x2ab42a=_0x48a602['hasAttribute']('rowspan')?_0x48a602['getAttribute']('rowspan')-0x1:0x0,_0x2b2df2=_0x48a602['hasAttribute']('colspan')?_0x48a602['getAttribute']('colspan')-0x1:0x0;_0x22edca=_0x59afbf<_0x22edca?_0x59afbf:_0x22edca,_0x43d9b4=_0x59afbf+_0x2ab42a>_0x43d9b4?_0x59afbf+_0x2ab42a:_0x43d9b4,_0x2a3077=_0x193d0a<_0x2a3077?_0x193d0a:_0x2a3077,_0x2402f4=_0x193d0a+_0x2b2df2>_0x2402f4?_0x193d0a+_0x2b2df2:_0x2402f4;}return{'minRow':_0x22edca,'maxRow':_0x43d9b4,'minColumn':_0x2a3077,'maxColumn':_0x2402f4};}['_setupColumnsRowsFixing'](){const _0x1281e5=this['editor'],_0x943eaf=_0x1281e5['plugins']['get']('TrackChangesEditing'),_0x579d00=_0x1281e5['plugins']['get']('TableUtils');_0x1281e5['model']['document']['on']('change:data',()=>{const _0x40ecab=Array['from'](_0x1281e5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x565957,data:_0x1ed9a6}of _0x40ecab){const {group:_0x2c99e7,id:_0x4cb8f5,subType:_0xddf10e}=_0x943eaf['_splitMarkerName'](_0x565957);if('suggestion'!=_0x2c99e7)continue;if(null!=_0x1ed9a6['oldRange'])continue;const _0x45414e=_0x943eaf['getSuggestion'](_0x4cb8f5);this['_tablePostFixingSubtypes']['includes'](_0xddf10e)&&this['_tableSuggestions']['add'](_0x45414e);}},{'priority':'low'});const _0x186d6b=(_0x19c47a,_0x3f564b)=>{let _0x52f0e3=!0x1;const _0x1088e1=_0x3f564b['createRangeOn'](_0x19c47a),_0xcd081b=_0x19c47a['findAncestor']('table'),_0x3134c7=_0x579d00['getCellLocation'](_0x19c47a);for(const _0x4eb9ce of this['_tableSuggestions']){const _0x35ee48=_0x4eb9ce['subType'],_0x4588ae=_0x35ee48['startsWith']('tablePaste'),_0x4044d9=_0x35ee48['substr'](_0x4588ae?0xa:0x5),_0x284466=_0x4044d9['toLowerCase'](),_0x290619=_0x284466['substr'](0x0,0x3)+'span',_0x18b910='min'+_0x4044d9,_0x39fa3c='max'+_0x4044d9;if(!_0x4eb9ce['isInContent'])continue;if(_0xcd081b!=_0x4eb9ce['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4eb9ce['isIntersectingWithRange'](_0x1088e1))continue;const _0x5397ea=_0x19c47a['hasAttribute'](_0x290619)?_0x19c47a['getAttribute'](_0x290619)-0x1:0x0,_0x17d369=this['_getSuggestionCoords'](_0x4eb9ce),_0x2291da=_0x17d369[_0x18b910],_0x4ad75d=_0x17d369[_0x39fa3c];_0x2291da<=_0x3134c7[_0x284466]&&_0x3134c7[_0x284466]+_0x5397ea<=_0x4ad75d&&(_0x4eb9ce['addRange'](_0x1088e1),_0x52f0e3=!0x0);}return _0x52f0e3;};_0x1281e5['model']['document']['registerPostFixer'](_0xeb355e=>{let _0x3bf2f9=!0x1;for(const _0x5b537e of _0x1281e5['model']['document']['differ']['getChanges']())if('insert'==_0x5b537e['type']){if('tableRow'==_0x5b537e['name']){for(const _0x3a373d of _0x5b537e['position']['nodeAfter']['getChildren']())_0x3bf2f9=_0x3bf2f9||_0x186d6b(_0x3a373d,_0xeb355e);}else'tableCell'==_0x5b537e['name']&&(_0x3bf2f9=_0x3bf2f9||_0x186d6b(_0x5b537e['position']['nodeAfter'],_0xeb355e));}return _0x3bf2f9;});}['_getSuggestionCoords'](_0x4e6a2a){return this['_getCoordsForCells'](_0x4e6a2a['getRanges']()['map'](_0x574db6=>_0x574db6['start']['nodeAfter']));}}function Ne(_0x1c057e){return Array['from'](new Set(_0x1c057e)['values']());}class Nt extends _0x350409{static get['requires'](){return[Ct];}['afterInit'](){const _0xddb6a7=this['editor'],_0x25a13f=_0xddb6a7['model']['document']['selection'],_0x2594ff=_0xddb6a7['locale'];if(!_0xddb6a7['plugins']['has']('TableEditing'))return;const _0x541117=_0xddb6a7['plugins']['get']('TrackChangesEditing'),_0x5763d5=_0xddb6a7['plugins']['get']('TableUtils'),_0x475cf2=_0xddb6a7['plugins']['get'](Ct);_0x475cf2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x541117['enableCommand']('mergeTableCells',()=>{const _0x212653=_0x5763d5['getSelectionAffectedTableCells'](_0xddb6a7['model']['document']['selection']);_0xddb6a7['model']['change'](()=>{_0x541117['markMultiRangeBlockFormat'](_0x212653,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xddb6a7['commands']['get']('mergeTableCells')['on']('execute',(_0x40cf0d,_0x2389dd)=>{_0xddb6a7['commands']['get']('trackChanges')['value']&&(_0x2389dd['length']>0x0&&_0x2389dd[_0x2389dd['length']-0x1]&&_0x2389dd[_0x2389dd['length']-0x1]['forceDefaultExecution']||_0x541117['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x40cf0d['stop']());},{'priority':'highest'});for(const _0x15ae7a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2b9da2=_0xddb6a7['commands']['get'](_0x15ae7a);_0x541117['enableCommand'](_0x15ae7a,()=>{const _0x272c87=_0xddb6a7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x33a31e=>_0x33a31e['is']('element','tableCell')),_0x62296c=_0x2b9da2['value'];_0xddb6a7['model']['change'](()=>{_0x541117['markMultiRangeBlockFormat']([_0x272c87,_0x62296c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x14c08a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x7a62e5=_0xddb6a7['commands']['get'](_0x14c08a);_0x541117['enableCommand'](_0x14c08a,()=>{const _0x32e04b=_0x5763d5['getSelectionAffectedTableCells'](_0xddb6a7['model']['document']['selection'])[0x0],_0x4e0980=_0x32e04b['findAncestor']('table'),{column:_0x59603d,row:_0x110375}=_0x5763d5['getCellLocation'](_0x32e04b);let _0x49652b=[];if('horizontally'==_0x7a62e5['direction']){const _0x3cb727=_0x5763d5['createTableWalker'](_0x4e0980,{'startRow':_0x110375,'endRow':_0x110375,'includeAllSlots':!0x0});_0x49652b=Array['from'](_0x3cb727)['map'](_0xf5bd1b=>_0xf5bd1b['cell']);}else{const _0x2c3630=_0x5763d5['createTableWalker'](_0x4e0980,{'column':_0x59603d,'includeAllSlots':!0x0});_0x49652b=Array['from'](_0x2c3630)['map'](_0x175460=>_0x175460['cell']);}_0xddb6a7['model']['change'](_0x16579a=>{_0x541117['markBlockFormat'](_0x16579a['createRangeOn'](_0x32e04b),{'commandName':_0x14c08a,'commandParams':[]},_0x49652b,_0x14c08a);});});}_0x541117['descriptionFactory']['registerDescriptionCallback'](_0x585a32=>{if('formatBlock'!=_0x585a32['type']&&'formatInline'!=_0x585a32['type'])return;const {data:_0x35388e}=_0x585a32;return _0x35388e&&'mergeTableCells'==_0x35388e['commandName']?{'type':'format','content':o(_0x2594ff,'*Merge\x20cells*')}:void 0x0;}),_0x541117['descriptionFactory']['registerDescriptionCallback'](_0x107b61=>{if('formatBlock'!=_0x107b61['type']&&'formatInline'!=_0x107b61['type'])return;const {data:_0x182d23}=_0x107b61;return _0x182d23?'splitTableCellVertically'==_0x182d23['commandName']?{'type':'format','content':o(_0x2594ff,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x182d23['commandName']?{'type':'format','content':o(_0x2594ff,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1bab84=_0x475cf2['_acceptFormatSuggestionCallbackFactory']();for(const _0x271640 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x541117['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x271640,'accept',_0x1bab84);for(const _0x494d25 of['splitTableCellVertically','splitTableCellHorizontally'])_0x541117['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x494d25,'accept',_0x1bab84);_0x541117['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x27b82f=>{_0xddb6a7['model']['change'](_0x33b01a=>{const _0x5a5a09=Array['from'](_0x25a13f['getRanges']())['map'](_0x4f572c=>_0x46ccca['fromRange'](_0x4f572c));_0x33b01a['setSelection'](_0x27b82f),_0xddb6a7['commands']['get']('mergeTableCells')['refresh'](),_0xddb6a7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xb08a73=_0x5a5a09['filter'](_0x1b1324=>'$graveyard'!=_0x1b1324['root']['rootName']);_0xb08a73['length']>0x0&&_0x33b01a['setSelection'](_0xb08a73);for(const _0x5be492 of _0x5a5a09)_0x5be492['detach']();});});for(const _0x2b0a2c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2b3522=_0xddb6a7['commands']['get'](_0x2b0a2c);_0x2b3522['on']('set:isEnabled',(_0x203686,_0x4183f6,_0x53cc21)=>{if(_0x53cc21){const _0x2aa346=_0xddb6a7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4c28eb=>_0x4c28eb['is']('element','tableCell'));this['_areMergableCells'](_0x2b3522['value'],_0x2aa346)||(_0x203686['return']=!0x1,_0x203686['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2ce571=this['editor']['commands']['get']('mergeTableCells'),_0x160873=this['editor']['plugins']['get']('TableUtils');if(!_0x2ce571['isEnabled'])return!0x1;const _0x3a8907=_0x160873['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x433d38 of _0x3a8907)for(const _0x7bcf22 of _0x3a8907)if(_0x433d38!=_0x7bcf22&&!this['_areMergableCells'](_0x433d38,_0x7bcf22))return!0x1;return!0x0;}['_areMergableCells'](_0x39889c,_0x3d70d7){const _0x22f82a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3dd582=this['editor']['model']['createRangeOn'](_0x39889c),_0x2a23fe=this['editor']['model']['createRangeOn'](_0x3d70d7),_0x2b1454=new Set(),_0x4b6555=new Set();for(const _0x36bfe2 of _0x22f82a['getSuggestions']())if(('insertion'==_0x36bfe2['type']||'deletion'==_0x36bfe2['type']||'mergeTableCells'==_0x36bfe2['subType'])&&_0x36bfe2['isInContent']){for(const _0x9c3484 of _0x36bfe2['getRanges']())_0x9c3484['containsRange'](_0x3dd582,!0x0)&&_0x2b1454['add'](_0x36bfe2['type']+':'+_0x36bfe2['author']['id']),_0x9c3484['containsRange'](_0x2a23fe,!0x0)&&_0x4b6555['add'](_0x36bfe2['type']+':'+_0x36bfe2['author']['id']);}if(_0x2b1454['size']!=_0x4b6555['size'])return!0x1;for(const _0x36fc50 of _0x2b1454)if(!_0x4b6555['has'](_0x36fc50))return!0x1;return!0x0;}}class Dt extends _0x350409{static get['requires'](){return[Ct];}['afterInit'](){const _0x36bd38=this['editor'];if(!_0x36bd38['plugins']['has']('TableEditing'))return;const _0x306aa5=_0x36bd38['locale'],_0x28b70a=_0x36bd38['plugins']['get']('TrackChangesEditing');_0x28b70a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x28b70a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x28b70a['registerBlockAttribute']('headingRows'),_0x28b70a['registerBlockAttribute']('headingColumns'),_0x28b70a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x306aa5,'FORMAT_HEADER_ROW')),_0x28b70a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x306aa5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x11eedc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x226b36=this['editor']['plugins']['get']('TableUtils'),_0x49c200=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x403c7a({showActiveMarker:_0x48c530=!0x0,setDataAttribute:_0x6284ca=!0x0}={}){return(_0x41d16b,_0x5e43a8,_0x2c724a)=>{const {type:_0x25c8ee,id:_0x57f29a}=_0x11eedc['_splitMarkerName'](_0x5e43a8['markerName']),_0x55a3a3=_0x11eedc['getSuggestion'](_0x57f29a),_0x209c1d=_0x55a3a3['data'];if('formatBlock'!=_0x55a3a3['type']||!_0x209c1d||'setTableColumnHeader'!=_0x209c1d['commandName'])return;if(_0x5e43a8['item'])return void _0x41d16b['stop']();if(!_0x2c724a['consumable']['consume'](_0x5e43a8['markerRange'],_0x41d16b['name']))return;const _0x8dd5c3=_0x5e43a8['markerRange']['start']['nodeAfter'],_0xa422f1=_0x5e43a8['markerRange']['end']['nodeBefore'],_0x4bd21e=_0x8dd5c3['parent']['parent'],{column:_0x3873da}=_0x226b36['getCellLocation'](_0x8dd5c3),{column:_0x2c7cc7}=_0x226b36['getCellLocation'](_0xa422f1);for(let _0x45a53e=_0x3873da;_0x45a53e<=_0x2c7cc7;_0x45a53e++){const _0x311cc1=_0x226b36['createTableWalker'](_0x4bd21e,{'column':_0x45a53e,'includeAllSlots':!0x1});for(const _0x4b0cab of _0x311cc1){const _0x45a188=_0x4b0cab['cell'],_0x2fcec1=_0x2c724a['mapper']['toViewElement'](_0x45a188);_0x2c724a['writer']['addClass']('ck-suggestion-marker-'+_0x25c8ee,_0x2fcec1),_0x6284ca&&_0x2c724a['writer']['setAttribute']('data-suggestion',_0x57f29a,_0x2fcec1),_0x2c724a['mapper']['bindElementToMarker'](_0x2fcec1,_0x5e43a8['markerName']),_0x48c530&&(_0x11eedc['activeMarkers']['includes'](_0x5e43a8['markerName'])?_0x2c724a['writer']['addClass']('ck-suggestion-marker--active',_0x2fcec1):_0x2c724a['writer']['removeClass']('ck-suggestion-marker--active',_0x2fcec1));}}};}_0x11eedc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x49c200),_0x11eedc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x49c200),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x403c7a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b29b7,_0x8f61d4,_0x517fdc)=>{_0x517fdc['options']['showSuggestionHighlights']&&_0x403c7a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4b29b7,_0x8f61d4,_0x517fdc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x50260c,_0x3f00a3,_0x5ae620)=>{const {type:_0x1b6e22,id:_0x598ca5}=_0x11eedc['_splitMarkerName'](_0x3f00a3['markerName']),_0x2c416c=_0x11eedc['getSuggestion'](_0x598ca5),_0x5c20a9=_0x2c416c['data'];if('formatBlock'!=_0x2c416c['type']||!_0x5c20a9||'setTableColumnHeader'!=_0x5c20a9['commandName'])return;const _0x5980a6=_0x5ae620['mapper']['markerNameToElements'](_0x3f00a3['markerName']);if(_0x5980a6){for(const _0x2deebf of _0x5980a6)_0x5ae620['writer']['removeClass']('ck-suggestion-marker-'+_0x1b6e22,_0x2deebf),_0x5ae620['writer']['removeClass']('ck-suggestion-marker--active',_0x2deebf),_0x5ae620['writer']['removeAttribute']('data-suggestion',_0x2deebf),_0x5ae620['mapper']['unbindElementFromMarkerName'](_0x2deebf,_0x3f00a3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x574524=this['editor'],_0x39ade9=_0x574524['locale'];function _0x41668f(_0x3f9e16){return{'type':'format','content':o(_0x39ade9,'*Format:*\x20%0',_0x3f9e16)};}_0x574524['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x339a66=>{if('formatBlock'!=_0x339a66['type'])return;const {data:_0x3d9678}=_0x339a66;if(_0x3d9678){if('setTableRowHeader'==_0x3d9678['commandName']){const _0x415b51=_0x3d9678['commandParams'][0x0]['forceValue'];return _0x41668f(o(_0x39ade9,_0x415b51?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3d9678['commandName']){const _0x255919=_0x3d9678['commandParams'][0x0]['forceValue'];return _0x41668f(o(_0x39ade9,_0x255919?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x28b49e=>[_0x28b49e,null]));class Mt extends _0x350409{static get['requires'](){return[Ct];}['afterInit'](){const _0xb80f82=this['editor'];if(!_0xb80f82['plugins']['has']('TableClipboard'))return;const _0x4611be=_0xb80f82['plugins']['get']('TrackChangesEditing'),_0x4d85b1=_0xb80f82['plugins']['get']('TableUtils'),_0x355558=_0xb80f82['plugins']['get'](Ct),_0x232d63=_0xb80f82['plugins']['get']('TableClipboard');_0x355558['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xb80f82['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xb80f82['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x24df53=null;_0xb80f82['model']['on']('insertContent',(_0x45c25c,_0x4ccf98)=>{const [_0x25b14e,_0x4ec88d]=_0x4ccf98,_0x3f354c=_0x4ccf98[_0x4ccf98['length']-0x1];_0x3f354c&&_0x3f354c['forceDefaultExecution']||_0x4611be['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x46a88d,_0x562215,_0x5e8673,_0x5b9a5a,_0x448be7){if(_0x562215&&!_0x562215['is']('documentSelection'))return!0x1;const _0x443697=_0x448be7['getTableIfOnlyTableInContent'](_0x46a88d,_0x5e8673);if(!_0x443697||!Ue(_0x443697,void 0x0,_0x5b9a5a))return!0x1;const _0x2b0108=_0x5b9a5a['getSelectionAffectedTableCells'](_0x5e8673['document']['selection']);if(!_0x2b0108['length'])return!0x1;const _0x1af669=_0x2b0108[0x0]['findAncestor']('table'),_0x5a6387=_0x5b9a5a['getRowIndexes'](_0x2b0108),_0x58de91=_0x5b9a5a['getColumnIndexes'](_0x2b0108),_0x540e1e={'startRow':_0x5a6387['first'],'endRow':_0x5a6387['last'],'startColumn':_0x58de91['first'],'endColumn':_0x58de91['last']};return 0x1==_0x2b0108['length']&&(_0x540e1e['endRow']+=_0x5b9a5a['getRows'](_0x443697)-0x1,_0x540e1e['endColumn']+=_0x5b9a5a['getColumns'](_0x443697)-0x1),Ue(_0x1af669,_0x540e1e,_0x5b9a5a);}(_0x25b14e,_0x4ec88d,_0xb80f82['model'],_0x4d85b1,_0x232d63)&&(_0x45c25c['stop'](),_0x24df53={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb80f82['model']['change'](()=>{_0xb80f82['model']['insertContent'](_0x4ccf98[0x0],_0x4ccf98[0x1],_0x4ccf98[0x2],{'forceDefaultExecution':!0x0});const _0x2c0b50=_0x4cb0f7(),{rowInsertionRanges:_0x866e8d,columnInsertionRanges:_0x2c26c2,insertionRanges:_0x3c3d5a,deletionRanges:_0xd6c104,cells:_0x29b69d}=_0x24df53;_0x866e8d['length']&&_0x4611be['markMultiRangeInsertion'](_0x866e8d,'tablePasteRow',{'tablePasteChainId':_0x2c0b50}),_0x2c26c2['length']&&_0x4611be['markMultiRangeInsertion'](_0x2c26c2,'tablePasteColumn',{'tablePasteChainId':_0x2c0b50}),_0x3c3d5a['length']&&(_0x4611be['markMultiRangeInsertion'](_0x3c3d5a,'tablePaste',{'tablePasteChainId':_0x2c0b50,'skipNestingCheck':!0x0}),_0x3c3d5a['forEach'](_0x2bf4d2=>_0x2bf4d2['detach']?.())),_0xd6c104['length']&&(_0x4611be['markMultiRangeDeletion'](_0xd6c104,'tablePaste',{'tablePasteChainId':_0x2c0b50,'skipNestingCheck':!0x0}),_0xd6c104['forEach'](_0x34fa82=>_0x34fa82['detach']?.()));const _0x6e858c=_0x4611be['markMultiRangeBlockFormat'](_0x29b69d['map'](({element:_0x56f4f6})=>_0x56f4f6),{'formatGroupId':_0x4cb0f7()},[],'tablePasteCell',{'tablePasteChainId':_0x2c0b50});if(_0x6e858c){const _0x2d76c8=_0x6e858c['getMarkers'](),_0x41fe4a=[];for(const {element:_0xdc25da,attributes:_0x12a444}of _0x29b69d){if(!_0x12a444)continue;const _0x312edf=_0xb80f82['model']['createRangeOn'](_0xdc25da),_0x5c89df=_0x2d76c8['find'](_0x1816cd=>_0x1816cd['getRange']()['isEqual'](_0x312edf));_0x5c89df&&_0x41fe4a['push']([_0x5c89df['name'],_0x12a444]);}_0x41fe4a['length']&&_0x6e858c['setAttribute']('markerAttributes',Object['fromEntries'](_0x41fe4a));}_0x24df53=null;}));},{'priority':_0x5717db['high']+0xa}),_0xb80f82['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3fff5d,_0x30ad10)=>{const [_0xb4d1d,_0x51f365,,_0x6b226e]=_0x30ad10;if(!_0x24df53)return;_0x3fff5d['stop']();const _0x42e095=_0xb4d1d['cell'],_0x396c9=_0x51f365,_0x486321=Oe(_0x42e095),_0x196543=Oe(_0x396c9);_0x3fff5d['return']=_0x42e095;let _0x1f8590=null,_0x34d7ae=null;if(_0x196543||_0x486321){if(_0x486321&&!_0x196543){_0x6b226e['remove'](_0x42e095['getChild'](0x0));for(const _0x374267 of Array['from'](_0x396c9['getChildren']()))_0x6b226e['insert'](_0x374267,_0x42e095,'end');const _0x1bc0f5=_0x24df53['rowInsertionIndexes']['includes'](_0xb4d1d['row']),_0x5474a3=_0x24df53['columnInsertionIndexes']['includes'](_0xb4d1d['column']);_0x1bc0f5||_0x5474a3||(_0x1f8590=_0x46ccca['fromRange'](_0x6b226e['createRangeIn'](_0x42e095)));}else _0x196543&&!_0x486321&&(_0x34d7ae=_0x6b226e['createRangeIn'](_0x42e095));}else{const _0x244adb=_0x6b226e['createElement']('tableCellSuggestion'),_0x1ddd63=_0x6b226e['createElement']('tableCellSuggestion');_0x6b226e['wrap'](_0x6b226e['createRangeIn'](_0x42e095),_0x1ddd63),_0x6b226e['insert'](_0x244adb,_0x42e095,0x0);for(const _0x597a4e of Array['from'](_0x396c9['getChildren']()))_0x6b226e['insert'](_0x597a4e,_0x244adb,'end');_0x1f8590=_0x46ccca['fromRange'](_0x6b226e['createRangeOn'](_0x244adb)),_0x34d7ae=_0x46ccca['fromRange'](_0x6b226e['createRangeOn'](_0x1ddd63));}const _0x19f942=Array['from'](_0x396c9['getAttributes']())['filter'](([_0x4b9df3])=>Be['includes'](_0x4b9df3));_0x24df53['cells']['push']({'element':_0x42e095,'attributes':_0x19f942['length']?Object['fromEntries'](_0x19f942):null}),_0x1f8590&&_0x24df53['insertionRanges']['push'](_0x1f8590),_0x34d7ae&&_0x24df53['deletionRanges']['push'](_0x34d7ae);},{'priority':'high'}),_0x4d85b1['on']('insertColumns',(_0x22a312,_0x3eab12)=>{const [_0x148b87,_0x267ab9={}]=_0x3eab12;if(!_0x24df53)return;const _0x11d1cd=_0x267ab9['at']||0x0,_0x170596=_0x267ab9['columns']||0x1;_0x24df53['columnInsertionIndexes']=new Array(_0x170596)['fill'](_0x11d1cd)['map']((_0x4aa12a,_0x4dfe26)=>_0x4aa12a+_0x4dfe26);for(const {cell:_0xa7d3cd}of _0x4d85b1['createTableWalker'](_0x148b87,{'startColumn':_0x11d1cd,'endColumn':_0x11d1cd+_0x170596-0x1}))_0x24df53['columnInsertionRanges']['push'](_0xb80f82['model']['createRangeOn'](_0xa7d3cd));},{'priority':'low'}),_0x4d85b1['on']('insertRows',(_0x1070d8,_0x35fa4e)=>{const [_0x2098c1,_0x39e020={}]=_0x35fa4e;if(!_0x24df53)return;const _0x261224=_0x39e020['at']||0x0,_0x21477b=_0x39e020['rows']||0x1;_0x24df53['rowInsertionIndexes']=new Array(_0x21477b)['fill'](_0x261224)['map']((_0x393085,_0x47724b)=>_0x393085+_0x47724b);for(const {cell:_0x20832a}of _0x4d85b1['createTableWalker'](_0x2098c1,{'startRow':_0x261224,'endRow':_0x261224+_0x21477b-0x1}))_0x24df53['rowInsertionRanges']['push'](_0xb80f82['model']['createRangeOn'](_0x20832a));},{'priority':'low'}),_0x4611be['descriptionFactory']['registerDescriptionCallback'](_0x322806=>{if(_0x322806['subType']&&_0x322806['subType']['startsWith']('tablePaste'))return _0x322806['previous']?{}:{'type':'insertion','content':o(_0xb80f82['locale'],'*Replace\x20table\x20cells*')};});const _0x219544=()=>!0x1;for(const _0xaaa0c9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4611be['_suggestionFactory']['registerCustomCallback']('insertion',_0xaaa0c9,'join',_0x219544),_0x4611be['_suggestionFactory']['registerCustomCallback']('deletion',_0xaaa0c9,'join',_0x219544),_0x4611be['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xaaa0c9,'join',_0x219544);_0x4611be['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x219544),_0x4611be['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x55f3d4,_0x201e1d,_0x34062d)=>{const _0x5bab9a=_0x55f3d4['map'](_0x2dcb0e=>_0x2dcb0e['getContainedElement']())['filter'](_0x25bfcd=>_0x25bfcd),_0x407dd0=new Map(_0x5bab9a['map'](_0x4f315d=>[_0x4f315d,null]));if(_0x24df53){for(const {element:_0x524dc6,attributes:_0x2c32e9}of _0x24df53['cells'])_0x2c32e9&&_0x407dd0['set'](_0x524dc6,_0x2c32e9);}else{if(_0x34062d&&_0x34062d['markerAttributes'])for(const [_0x54891a,_0x3d37fb]of Object['entries'](_0x34062d['markerAttributes'])){const _0xf2e141=_0xb80f82['model']['markers']['get'](_0x54891a),_0x5af0cd=_0xf2e141?_0xf2e141['getRange']()['getContainedElement']():null;_0x5af0cd&&_0x407dd0['set'](_0x5af0cd,_0x3d37fb);}}_0xb80f82['model']['change'](_0xb0593=>{for(const [_0x5387e6,_0x25507e]of _0x407dd0)_0xb0593['setAttributes']({...xe,..._0x25507e},_0x5387e6);});});const _0x1af993=(_0x838f3,_0x3ce4f0)=>{_0x4611be['_suggestionFactory']['registerCustomCallback'](_0x838f3,'tablePaste',_0x3ce4f0,(_0x1731e9,_0xa2e212,_0x2fa618)=>{_0xb80f82['model']['change'](_0x2c9c19=>{const _0x4f8b51=[];for(const _0x4cb93e of _0x1731e9){const _0x1b6cf6=_0x4cb93e['start']['nodeAfter'];_0x1b6cf6['is']('element','tableCellSuggestion')&&_0x4f8b51['push'](_0x1b6cf6);}_0x4611be['_suggestionFactory']['getSuggestionCallback'](_0x838f3,null,_0x3ce4f0)(_0x1731e9,_0xa2e212,_0x2fa618);for(const _0xca1972 of _0x4f8b51)'$graveyard'!=_0xca1972['root']['rootName']&&_0x2c9c19['unwrap'](_0xca1972);});});};_0x1af993('insertion','accept'),_0x1af993('insertion','discard'),_0x1af993('deletion','accept'),_0x1af993('deletion','discard'),_0x4611be['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x22dcbc=>{const _0x4f539b=_0x22dcbc['map'](_0x4ab289=>_0x4ab289['getContainedElement']()),_0x4b93d6=_0x4f539b[0x0]['findAncestor']('table'),{minRow:_0xfde80e,maxRow:_0x4af776}=_0x355558['_getCoordsForCells'](_0x4f539b);_0x4d85b1['removeRows'](_0x4b93d6,{'at':_0xfde80e,'rows':_0x4af776-_0xfde80e+0x1});}),_0x4611be['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x9748eb=>{const _0x30edfc=_0x9748eb['map'](_0x4fc292=>_0x4fc292['getContainedElement']()),_0x7b6d9d=_0x30edfc[0x0]['findAncestor']('table'),{minColumn:_0x9944f1,maxColumn:_0x54afcf}=_0x355558['_getCoordsForCells'](_0x30edfc);_0x4d85b1['removeColumns'](_0x7b6d9d,{'at':_0x9944f1,'columns':_0x54afcf-_0x9944f1+0x1});});const _0x144288=(_0x45a5ad,_0x44904a)=>{if(!_0x44904a['subType']||!_0x44904a['subType']['startsWith']('tablePaste'))return;const _0x4dd3df=_0x44904a['attributes']['tablePasteChainId'],_0x534a4=_0x4611be['getSuggestions']()['filter'](_0x2357ea=>_0x2357ea['isInContent']&&_0x2357ea['attributes']&&_0x2357ea['attributes']['tablePasteChainId']==_0x4dd3df);_0x534a4['length']&&_0x44904a['getAllAdjacentSuggestions']()['length']!=_0x534a4['length']&&_0x534a4['reduce']((_0x26fa43,_0x337c9d)=>(_0x26fa43['next']=_0x337c9d,_0x337c9d['previous']=_0x26fa43,_0x337c9d));};function _0x6f9961(_0x599eef,_0x2460a3=!0x0){const {id:_0x5397e4,authorId:_0x42a51d}=_0x4611be['_splitMarkerName'](_0x599eef['markerName']),_0x4f7a4c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x10b6ab=_0x4611be['activeMarkers']['includes'](_0x599eef['markerName']);return _0x10b6ab&&_0x4f7a4c['push']('ck-suggestion-marker--active'),{'classes':_0x4f7a4c,'attributes':{'data-suggestion':_0x5397e4,'data-author-id':_0x42a51d},'priority':_0x10b6ab&&_0x2460a3?0xbc2:0xbb8};}_0x4611be['on']('suggestionLoaded',_0x144288,{'priority':'high'}),_0x4611be['on']('suggestionUnloaded',_0x144288,{'priority':'high'}),_0xb80f82['model']['document']['registerPostFixer'](()=>{let _0x542e98=!0x1;const _0x4d4648=Array['from'](_0xb80f82['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d9863,data:_0x215d37}of _0x4d4648){const {group:_0xdc2571,type:_0x5d8240,id:_0x220ebb}=_0x4611be['_splitMarkerName'](_0x4d9863);if('suggestion'!=_0xdc2571||'deletion'!=_0x5d8240||_0x215d37['oldRange'])continue;if(!_0x4611be['hasSuggestion'](_0x220ebb))continue;const _0x1aecd6=_0x4611be['getSuggestion'](_0x220ebb)['getRanges'](),_0x3e8645=_0xb80f82['plugins']['get']('Users')['me'];for(const _0x5c3f9d of _0x4611be['getSuggestions']()){if(!_0x5c3f9d['isInContent']||_0x5c3f9d['author']!=_0x3e8645)continue;if('formatBlock'!=_0x5c3f9d['type']||'tablePasteCell'!=_0x5c3f9d['subType'])continue;if(_0x5c3f9d['getRanges']()['every'](_0x5960e5=>_0x1aecd6['some'](_0x212a4f=>_0x212a4f['containsRange'](_0x5960e5,!0x0)))){for(const _0x4c073b of _0x5c3f9d['getAllAdjacentSuggestions']())_0x4c073b['isInContent']&&(_0x4c073b['discard'](),_0x542e98=!0x0);}}}return _0x542e98;}),_0xb80f82['model']['document']['registerPostFixer'](_0xc0799b=>{const _0x2cc85a=_0xb80f82['commands']['get']('redo');if(!_0x2cc85a||!_0x2cc85a['_createdBatches']['has'](_0xc0799b['batch']))return!0x1;let _0x5336f8=!0x1;const _0x240fbf=_0xb80f82['plugins']['get']('Users')['me'],_0x2b7c11=_0xb80f82['model']['document']['differ']['getChanges'](),_0x28f795=Array['from'](_0xb80f82['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x31daaf,data:_0x46989d})=>{const {group:_0x9096b6,subType:_0x1834bd,authorId:_0x1aaf21}=_0x4611be['_splitMarkerName'](_0x31daaf);return'suggestion'==_0x9096b6&&'tablePaste'==_0x1834bd&&_0x1aaf21==_0x240fbf['id']&&!_0x46989d['oldRange'];});for(const _0x1773be of _0x2b7c11){if('insert'!=_0x1773be['type']||'tableCellSuggestion'!=_0x1773be['name']||0x1!=_0x1773be['length'])continue;const _0x2dcfc4=_0xc0799b['createRange'](_0x1773be['position'],_0x1773be['position']['getShiftedBy'](0x1));if(!_0x28f795['find'](({data:_0x2d0d51})=>_0x2d0d51['newRange']['isEqual'](_0x2dcfc4))){for(const {name:_0x4652f9,data:_0x7a3f62}of _0x28f795)if(_0x2dcfc4['containsRange'](_0x7a3f62['newRange'])){_0xc0799b['updateMarker'](_0x4652f9,{'range':_0x2dcfc4}),_0x5336f8=!0x0;break;}}}return _0x5336f8;}),_0xb80f82['model']['document']['registerPostFixer'](_0x1ff4e9=>{let _0x476712=!0x1;const _0x12ba95=_0xb80f82['plugins']['get']('Users')['me'],_0x56930f=_0x4611be['getSuggestions']()['filter'](_0x2cd5cf=>_0x2cd5cf['isInContent']&&_0x2cd5cf['author']==_0x12ba95),_0x558e0f=new Set(),_0xba332a=new Set();for(const _0x4d9c1f of _0x56930f)if('tablePaste'==_0x4d9c1f['subType'])for(const _0x166143 of _0x4d9c1f['getMarkers']()){const _0x4f9155=_0x166143['getRange']()['getContainedElement']();if(_0x4f9155){if(_0x4f9155['is']('element','tableCellSuggestion')&&Oe(_0x4f9155)){_0x4d9c1f['removeMarker'](_0x166143['name']),_0x558e0f['add'](_0x4f9155),_0x476712=!0x0;const _0x4a7a1f=_0x4f9155['nextSibling'],_0x1957c2=_0x4f9155['previousSibling'],_0x40f6d1=_0x4a7a1f&&_0x4a7a1f['is']('element','tableCellSuggestion'),_0x494b81=_0x1957c2&&_0x1957c2['is']('element','tableCellSuggestion');_0x40f6d1&&!_0x558e0f['has'](_0x4a7a1f)&&_0xba332a['add'](_0x4a7a1f),_0x494b81&&!_0x558e0f['has'](_0x1957c2)&&_0xba332a['add'](_0x1957c2);}else _0x4f9155['is']('element','paragraph')&&_0x4f9155['isEmpty']&&(_0x4d9c1f['removeMarker'](_0x166143['name']),_0x476712=!0x0);}}else{if('tablePasteCell'==_0x4d9c1f['subType']){if(!_0x4d9c1f['attributes']||!_0x4d9c1f['attributes']['tablePasteChainId'])continue;const _0x29ac02=_0x4d9c1f['attributes']['markerAttributes'];if(_0x29ac02&&Object['keys'](_0x29ac02)['length'])continue;const _0x5614fb=_0x4d9c1f['attributes']['tablePasteChainId'];let _0x279e94=!0x0,_0x5357c6=!0x0;for(const _0xe8be44 of _0x56930f)if(_0xe8be44['subType']&&_0xe8be44['subType']['startsWith']('tablePaste')){if(!_0xe8be44['attributes']['tablePasteChainId']){_0x5357c6=!0x1;break;}if(_0xe8be44['id']!=_0x4d9c1f['id']&&_0xe8be44['attributes']['tablePasteChainId']==_0x5614fb){_0x279e94=!0x1;break;}}_0x5357c6&&_0x279e94&&(_0x4d9c1f['removeMarkers'](),_0x476712=!0x0);}}for(const _0x171a67 of _0x558e0f)_0x1ff4e9['remove'](_0x171a67);for(const _0x32825a of _0xba332a)_0x1ff4e9['unwrap'](_0x32825a);return _0x476712;}),_0xb80f82['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd57b57=>_0x6f9961(_0xd57b57),'converterPriority':'high'}),_0xb80f82['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x24b802,_0x2b52ec)=>_0x2b52ec['options']['showSuggestionHighlights']?_0x6f9961(_0x24b802,!0x1):null,'converterPriority':'high'});const _0xd1857b=_0xb80f82['editing']['view'];this['listenTo'](_0xd1857b['document'],'clipboardOutput',(_0xc42a5e,_0x627fd)=>{const _0x39377c=[];for(const _0x1c5406 of _0xd1857b['createRangeIn'](_0x627fd['content'])['getItems']())_0x1c5406['is']('element','suggestion-td')&&_0x39377c['push'](_0x1c5406);_0xd1857b['change'](_0x57ca52=>{for(const _0x4d20ba of _0x39377c)_0x57ca52['move'](_0x57ca52['createRangeIn'](_0x4d20ba),_0x57ca52['createPositionBefore'](_0x4d20ba)),_0x57ca52['remove'](_0x4d20ba);});});}}function Oe(_0xc6cd7b){if(_0xc6cd7b['isEmpty'])return!0x0;const _0xb79ce=_0xc6cd7b['getChild'](0x0);return _0xb79ce['is']('element','paragraph')&&_0xb79ce['isEmpty'];}function Ue(_0x4160b0,_0x72e413={},_0x5210bd){for(const {isAnchor:_0x126e1f,cellHeight:_0x59c000,cellWidth:_0x59c30a}of _0x5210bd['createTableWalker'](_0x4160b0,{'includeAllSlots':!0x0,..._0x72e413}))if(!_0x126e1f||0x1!=_0x59c000||0x1!=_0x59c30a)return!0x1;return!0x0;}class $t extends _0x350409{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x172e75=this['editor']['plugins']['get']('TrackChangesEditing');_0x172e75['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x172e75['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x172e75['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x172e75['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x172e75['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x172e75['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xec433,_0x361c8a){const _0x5e220e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20307a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1ff2e0=_0x361c8a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x41c225=_0x20307a['getColumnGroupElement'](_0x1ff2e0);let _0x4c399b=_0x41c225?_0x20307a['getTableColumnsWidths'](_0x41c225):null,_0x2d3c0c=_0x1ff2e0['getAttribute']('tableWidth')||null;const _0x230dd3=_0x361c8a['tableWidth']||_0x2d3c0c,_0x5c6dbe=_0x361c8a['columnWidths']||_0x4c399b,_0x5f42d8=this['editor']['plugins']['get']('Users')['me'];for(const _0x34fa04 of _0x5e220e['getSuggestions']()){const _0x3fc5a9=_0x34fa04['getContainedElement']();if('resizeTable'===_0x34fa04['subType']&&_0x3fc5a9===_0x1ff2e0){_0x34fa04['author']!==_0x5f42d8&&_0x34fa04['discard']();const _0x521d06=_0x34fa04['data']['commandParams'];_0x2d3c0c=_0x521d06[0x0]['tableWidth'],_0x4c399b=_0x521d06[0x0]['columnWidths'];break;}}_0xec433({'table':_0x1ff2e0,'tableWidth':_0x230dd3,'columnWidths':_0x5c6dbe}),_0x5e220e['markBlockFormat'](_0x1ff2e0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2d3c0c,'columnWidths':_0x4c399b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x271091){if('formatBlock'!=_0x271091['type']&&'formatInline'!=_0x271091['type'])return;const {data:_0xbf49c7}=_0x271091;if(_0xbf49c7&&'resizeTable'===_0xbf49c7['formatGroupId']){const _0x428bb1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x428bb1)};}}}class Bt extends _0x350409{['afterInit'](){const _0x4bbbcb=this['editor'];_0x4bbbcb['plugins']['has']('Template')&&_0x4bbbcb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x350409{['afterInit'](){const _0x563184=this['editor'];if(!_0x563184['commands']['get']('insertTableOfContents'))return;_0x563184['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2c09eb=_0x563184['plugins']['get']('TrackChangesEditing'),_0x15230a=_0x563184['locale'];_0x2c09eb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x21dc01=>o(_0x15230a,'ELEMENT_TABLE_OF_CONTENTS',_0x21dc01));}}class Rt extends _0x350409{['afterInit'](){const _0x20f4cc=this['editor'];if(!_0x20f4cc['plugins']['has']('Title'))return;const _0x427898=_0x20f4cc['plugins']['get']('TrackChangesEditing');_0x427898['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x20f4cc['locale'],'ELEMENT_TITLE')),_0x20f4cc['model']['document']['registerPostFixer'](_0x2a15ca=>{let _0x12a642=!0x1;const _0x258726=Array['from'](_0x20f4cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1eb86a,data:_0x460303}of _0x258726){const {group:_0x4a5aae}=_0x427898['_splitMarkerName'](_0x1eb86a);if('suggestion'!==_0x4a5aae||!_0x460303['newRange'])continue;const _0x5aee37=_0x460303['newRange'],_0x4d74d1=_0x5aee37['end']['nodeBefore'];if(!_0x4d74d1||!_0x4d74d1['is']('element','title-content'))continue;if(!_0x5aee37['start']['isTouching'](_0x5aee37['end']))continue;const _0x59f7d6=_0x20f4cc['model']['schema']['getNearestSelectionRange'](_0x5aee37['end'],'forward');if(_0x59f7d6&&_0x59f7d6['isCollapsed']){const _0x4cb35d=_0x2a15ca['createRange'](_0x5aee37['start'],_0x59f7d6['start']);_0x4cb35d['isEqual'](_0x5aee37)||(_0x2a15ca['updateMarker'](_0x1eb86a,{'range':_0x4cb35d}),_0x12a642=!0x0);}_0x12a642||(_0x2a15ca['removeMarker'](_0x1eb86a),_0x12a642=!0x0);}return _0x12a642;});}}class Tt extends _0x350409{['afterInit'](){const _0x6db658=this['editor'],_0x8135b4=_0x6db658['plugins']['get']('TrackChangesEditing');_0x6db658['plugins']['has']('Uploadcare')&&(_0x8135b4['enableCommand']('uploadcare'),_0x6db658['plugins']['has']('UploadcareImageEdit')&&(_0x8135b4['enableCommand']('uploadcareImageEdit'),_0x8135b4['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x8135b4['registerBlockAttribute']('uploadcareImageId'),_0x8135b4['descriptionFactory']['registerDescriptionCallback'](_0x5583d7=>{if('attribute'!=_0x5583d7['type'])return;const {data:_0x3ec3c9}=_0x5583d7;return _0x3ec3c9&&'uploadcareImageId'==_0x3ec3c9['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x350409{['afterInit'](){const _0xddc1f=this['editor'],_0x5a4b89=_0xddc1f['plugins']['get']('TrackChangesEditing');_0xddc1f['plugins']['has']('UndoEditing')&&(_0x5a4b89['enableCommand']('undo'),_0x5a4b89['enableCommand']('redo'));}}class Et extends _0x350409{static get['requires'](){return[Ct];}['afterInit'](){const _0x185b84=this['editor'];if(!_0x185b84['plugins']['has']('TableCaptionEditing'))return;_0x185b84['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x350409{['tableProperties'];['tableCellProperties'];constructor(_0x18152d){super(_0x18152d),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 _0x4f66b3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4c9e72 of this['tableProperties'])_0x4f66b3['enableCommand'](_0x4c9e72,(_0x38946f,_0x1d6e4d)=>{const _0x2de31c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4c9e72,[_0x2de31c],this['tableProperties'],'tableProperties',_0x38946f,_0x1d6e4d);});_0x4f66b3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4f66b3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f66b3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4adab3,_0x2c0efc)=>this['handleDiscardAction'](this['tableProperties'],_0x4adab3,_0x2c0efc)),_0x4f66b3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1874da of this['tableCellProperties'])_0x4f66b3['enableCommand'](_0x1874da,(_0x2676aa,_0x53caf1)=>{const _0x27493f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1874da,_0x27493f,this['tableCellProperties'],'tableCellProperties',_0x2676aa,_0x53caf1);});_0x4f66b3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4f66b3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4f66b3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4a1c15,_0x3fbc0f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4a1c15,_0x3fbc0f)),_0x4f66b3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4f66b3['descriptionFactory']['registerDescriptionCallback'](_0x4a0553=>this['handleSuggestionDescription'](_0x4a0553));}['_handlePropertyChange'](_0x170f70,_0x2d0531,_0x450bee,_0x4fe602,_0x1d3da0,_0x36ed6f){const _0x15f0a7=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x36ed6f['batch'],()=>{for(const _0x17305d of _0x2d0531){if(this['_getSuggestion'](_0x17305d,_0x4fe602))_0x1d3da0(_0x36ed6f);else{const _0x5be116={};for(const _0x2bfc45 of _0x450bee){const _0x2fc940=_0x17305d['getAttribute'](_0x2bfc45);void 0x0!==_0x2fc940&&(_0x5be116[_0x2bfc45]=_0x2fc940);}_0x1d3da0(_0x36ed6f),_0x15f0a7['markBlockFormat'](_0x17305d,{'commandParams':[_0x5be116]},[],_0x4fe602);}}});}['handleDiscardAction'](_0x240eba,_0x714cbb,_0x4de37a){const _0x487cdb=_0x714cbb[0x0]['start']['nodeAfter'],_0x27c977=_0x4de37a['commandParams'][0x0];this['editor']['model']['change'](_0x390825=>{for(const _0x4b7982 of _0x240eba)void 0x0!==_0x27c977[_0x4b7982]?_0x390825['setAttribute'](_0x4b7982,_0x27c977[_0x4b7982],_0x487cdb):_0x390825['removeAttribute'](_0x4b7982,_0x487cdb);});}['handleSuggestionDescription'](_0x4829e7){if(_0x4829e7['data'])switch(_0x4829e7['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'](_0x19b7f5,_0x5b2602){const _0x231be1=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xdc4653 of _0x231be1['getSuggestions']({'skipNotAttached':!0x0})){const _0x1a7e07=_0xdc4653['getContainedElement']();if(_0xdc4653['subType']===_0x5b2602&&_0x1a7e07===_0x19b7f5)return _0xdc4653;}return null;}}const m='$elementName';class p extends _0x350409{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1c2827,_0x26c79e,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(_0x578801){super(_0x578801),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xcf1a55,_0x14c15d,_0x7fb5be,_0x3ea842)=>{this['_model']['change'](()=>{for(const _0x1ea994 of[..._0x3ea842,..._0x7fb5be])this['_model']['markers']['has'](_0x1ea994)&&_0x578801['editing']['reconvertMarker'](_0x1ea994);});}),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']=_0x578801['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(),_0x578801['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x578801['config']['get']('trackChanges.trackFormatChanges'),_0x578801['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x578801['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x578801,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1bb7fd=this['editor'],_0x4568d3=(_0x3fe39e,_0x1e30dc)=>{if('attribute'!=_0x3fe39e)return'ck-suggestion-marker-'+_0x3fe39e;const _0xa31092=_0x1e30dc['split']('|')[0x0];return this['_isBlockAttribute'](_0xa31092)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1bb7fd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x30fe5e=>{const {id:_0x384c08,authorId:_0x5834cf,type:_0x313bcb,subType:_0x17205c}=this['_splitMarkerName'](_0x30fe5e['markerName']),_0x243f18=['ck-suggestion-marker',_0x4568d3(_0x313bcb,_0x17205c)];let _0x66fe6f=0xbb8;return this['activeMarkers']['includes'](_0x30fe5e['markerName'])&&(_0x243f18['push']('ck-suggestion-marker--active'),_0x66fe6f=0xbc2),'deletion'==_0x313bcb&&(_0x66fe6f+=0x5),{'classes':_0x243f18,'attributes':{'data-suggestion':_0x384c08,'data-author-id':_0x5834cf},'priority':_0x66fe6f};}}),_0x1bb7fd['conversion']['for']('dataDowncast')['add'](_0x18a8e0=>{_0x18a8e0['on']('addMarker:suggestion',(_0x214984,_0x2a5668,_0x24523d)=>{if(!_0x24523d['options']['showSuggestionHighlights'])return;const _0xb3c3a2=_0x2a5668['item'];if(!_0xb3c3a2)return;const _0x2999b2=_0x24523d['mapper']['toViewElement'](_0xb3c3a2);_0x1bb7fd['model']['schema']['isObject'](_0xb3c3a2)&&_0x2999b2&&!_0x2999b2['getCustomProperty']('widget')&&_0x2999b2['is']('containerElement')&&_0xc66fd(_0x2999b2,_0x24523d['writer']);},{'priority':'high'});}),_0x1bb7fd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x43df6b,_0x51e878)=>{if(!_0x51e878['options']['showSuggestionHighlights'])return null;const {type:_0x4477fa,subType:_0x35b0dc}=this['_splitMarkerName'](_0x43df6b['markerName']);return{'classes':['ck-suggestion-marker',_0x4568d3(_0x4477fa,_0x35b0dc)],'priority':0xbb8};}});const _0x55ab92=({showActiveMarkers:_0x518093=!0x0,isAttributeSuggestion:_0x2478b0=!0x1}={})=>(_0x492c6a,_0x4ed47d,_0x4edf92)=>{if(!_0x4ed47d['item'])return;const {id:_0x410d10,authorId:_0x28d3ad}=this['_splitMarkerName'](_0x4ed47d['markerName']);if(_0x2478b0){const _0x54ccdd=this['_suggestions']['get'](_0x410d10),_0x3eb0bd=this['_getAttributeKey'](_0x54ccdd);if(!this['_isBlockAttribute'](_0x3eb0bd))return;}if(_0x4ed47d['item']['is']('selection'))return void _0x4edf92['consumable']['consume'](_0x4ed47d['item'],_0x492c6a['name']);const _0x35c89f=_0x4edf92['mapper']['toViewElement'](_0x4ed47d['item']);if(_0x4ed47d['item']['is']('element')&&_0x1bb7fd['model']['schema']['isBlock'](_0x4ed47d['item'])&&!_0x35c89f['getCustomProperty']('addHighlight')){_0x4edf92['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x35c89f),_0x4edf92['writer']['setAttribute']('data-suggestion',_0x410d10,_0x35c89f),_0x4edf92['writer']['setAttribute']('data-author-id',_0x28d3ad,_0x35c89f),_0x4edf92['mapper']['bindElementToMarker'](_0x35c89f,_0x4ed47d['markerName']),_0x518093&&(this['activeMarkers']['includes'](_0x4ed47d['markerName'])?_0x4edf92['writer']['addClass']('ck-suggestion-marker--active',_0x35c89f):_0x4edf92['writer']['removeClass']('ck-suggestion-marker--active',_0x35c89f));for(const _0x2467fa of _0x1bb7fd['model']['createRangeIn'](_0x4ed47d['item'])['getItems']())_0x4edf92['consumable']['consume'](_0x2467fa,_0x492c6a['name']);_0x4edf92['consumable']['consume'](_0x4ed47d['item'],_0x492c6a['name']);}};_0x1bb7fd['conversion']['for']('dataDowncast')['add'](_0x14b18a=>{_0x14b18a['on']('addMarker:suggestion:formatBlock',(_0x50c6f0,_0x43f387,_0x16da3e)=>{_0x16da3e['options']['showSuggestionHighlights']&&_0x55ab92({'showActiveMarkers':!0x1})(_0x50c6f0,_0x43f387,_0x16da3e);},{'priority':'highest'});}),_0x1bb7fd['conversion']['for']('dataDowncast')['add'](_0x5702cb=>{_0x5702cb['on']('addMarker:suggestion:attribute',(_0x38aa79,_0x4e6d0d,_0x500670)=>{_0x500670['options']['showSuggestionHighlights']&&_0x55ab92({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x38aa79,_0x4e6d0d,_0x500670);},{'priority':'highest'});}),_0x1bb7fd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x478a07,_0x5c1d47)=>_0x5c1d47['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x478a07['substr'](0xb)}}),_0x1bb7fd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1652c5,{writer:_0x3d011d})=>{let _0xe85126='suggestion:'+_0x1652c5['getAttribute']('suggestion-type')+':'+_0x1652c5['getAttribute']('id');return _0x1652c5['getAttribute']('marker-count')&&(_0xe85126+=':'+_0x1652c5['getAttribute']('marker-count')),_0x3d011d['createElement']('$marker',{'data-name':_0xe85126});}}),_0x1bb7fd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1bb7fd['conversion']['for']('editingDowncast')['add'](_0xd6c2f3=>{_0xd6c2f3['on']('addMarker:suggestion:formatBlock',_0x55ab92(),{'priority':'high'});}),_0x1bb7fd['conversion']['for']('editingDowncast')['add'](_0x68aff=>{_0x68aff['on']('addMarker:suggestion:attribute',_0x55ab92({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1bb7fd['conversion']['for']('editingDowncast')['add'](_0x3d5681=>{_0x3d5681['on']('removeMarker:suggestion:formatBlock',(_0x43e173,_0x25760a,_0xd7f414)=>{const _0x58c672=_0xd7f414['mapper']['markerNameToElements'](_0x25760a['markerName']);if(_0x58c672){for(const _0x2ee080 of _0x58c672)_0x2ee080['getCustomProperty']('addHighlight')||(_0xd7f414['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2ee080),_0xd7f414['writer']['removeAttribute']('data-suggestion',_0x2ee080),_0xd7f414['writer']['removeAttribute']('data-author-id',_0x2ee080),_0xd7f414['mapper']['unbindElementFromMarkerName'](_0x2ee080,_0x25760a['markerName']));}},{'priority':'high'});}),_0x1bb7fd['conversion']['for']('editingDowncast')['add'](_0x3db26c=>{_0x3db26c['on']('removeMarker:suggestion:attribute',(_0x1e0907,_0x3df4eb,_0x4a28e9)=>{const _0x216224=_0x4a28e9['mapper']['markerNameToElements'](_0x3df4eb['markerName']);if(!_0x216224)return;const {id:_0x4aef7c}=this['_splitMarkerName'](_0x3df4eb['markerName']),_0x449ed5=this['_suggestions']['get'](_0x4aef7c),_0x40ea68=this['_getAttributeKey'](_0x449ed5);if(this['_isBlockAttribute'](_0x40ea68)){for(const _0x451488 of _0x216224)_0x451488['getCustomProperty']('addHighlight')||(_0x4a28e9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x451488),_0x4a28e9['writer']['removeAttribute']('data-suggestion',_0x451488),_0x4a28e9['writer']['removeAttribute']('data-author-id',_0x451488),_0x4a28e9['mapper']['unbindElementFromMarkerName'](_0x451488,_0x3df4eb['markerName']));}},{'priority':'high'});}),_0x1bb7fd['model']['document']['registerPostFixer'](_0x113cf1=>{let _0x330c73=!0x1;const _0x3e63ba=Array['from'](_0x1bb7fd['model']['document']['differ']['getChangedMarkers']()),_0x283784=new Set();for(const {name:_0x1b85a5,data:_0x2653b8}of _0x3e63ba){const {group:_0x27d4c1,type:_0x27a0fa,subType:_0x48e6e2,id:_0x37bb32}=this['_splitMarkerName'](_0x1b85a5);if('suggestion'!==_0x27d4c1)continue;const _0x1fa03c=this['_suggestions']['get'](_0x37bb32);if(null!=_0x2653b8['newRange']){'formatInline'==_0x27a0fa&&(_0x330c73=_0x330c73||Lt(_0x2653b8['newRange'],_0x1b85a5,_0x113cf1,_0x1bb7fd['model']['schema']));const _0x5111a3='attribute'==_0x27a0fa&&this['_isBlockAttribute'](_0x48e6e2['split']('|')[0x0]);if(_0x2653b8['newRange']['isCollapsed']||'$graveyard'==_0x2653b8['newRange']['root']['rootName']||'formatBlock'==_0x27a0fa&&!Ht(_0x2653b8['newRange'])||_0x5111a3&&!Ht(_0x2653b8['newRange'])||'deletion'==_0x27a0fa&&!(!Ft(_0xdc481f=_0x2653b8['newRange'])&&!function(_0x109bdd){return _0x109bdd['start']['parent']==_0x109bdd['end']['nodeBefore']&&_0x109bdd['start']['isAtEnd'];}(_0xdc481f)))_0x113cf1['removeMarker'](_0x1b85a5),_0x330c73=!0x0;else{if(!_0x1fa03c||!_0x1fa03c['isInContent'])continue;if(_0x2653b8['newRange']&&_0x2653b8['oldRange']&&_0x2653b8['newRange']['isEqual'](_0x2653b8['oldRange']))continue;_0x283784['add'](_0x1fa03c);}}}var _0xdc481f;return _0x283784['size']>0x0&&(_0x330c73=!!this['_joinWithAdjacentSuggestions'](_0x283784)||_0x330c73),_0x330c73;}),_0x1bb7fd['model']['document']['registerPostFixer'](_0x4ea956=>{let _0x3c1283=!0x1;for(const _0x35c10c of _0x1bb7fd['model']['document']['differ']['getChanges']())if('insert'==_0x35c10c['type'])for(const _0x5b22bf of this['_suggestions']['values']()){if(_0x5b22bf['isMultiRange']||!_0x5b22bf['isInContent'])continue;const _0x8bde06='formatBlock'==_0x5b22bf['type'],_0x5e46b4=this['_getAttributeKey'](_0x5b22bf),_0xb4b5a=_0x5e46b4&&this['_isBlockAttribute'](_0x5e46b4);if(!_0x8bde06&&!_0xb4b5a)continue;const _0xd50c40=_0x5b22bf['getFirstRange']();if(_0xd50c40['start']['parent']!=_0xd50c40['end']['parent']&&!_0xd50c40['end']['isAtEnd']){const _0x21fe1f=_0x1bb7fd['model']['createPositionAt'](_0xd50c40['start']['nodeAfter'],'end'),_0x563317=_0x1bb7fd['model']['createRange'](_0xd50c40['start'],_0x21fe1f);_0x4ea956['updateMarker'](_0x5b22bf['getFirstMarker'](),{'range':_0x563317}),_0x3c1283=!0x0;}}return _0x3c1283;}),_0x1bb7fd['model']['document']['registerPostFixer'](_0x3896ca=>this['_processAttributeChanges'](_0x3896ca)),_0x1bb7fd['model']['document']['registerPostFixer'](_0x1625eb=>!_0x1625eb['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1625eb)),_0x1bb7fd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1bb7fd['model']['document']['on']('change:data',(_0x2f8650,_0x50d61d)=>{if(!_0x50d61d['isLocal']||_0x50d61d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1411c6=_0x1bb7fd['model']['document']['differ']['getChanges']();if(0x0==_0x1411c6['length'])return;const _0x362bc7=[],_0xd36de7=_0x1411c6['filter'](_0x4d70fb=>'attribute'==_0x4d70fb['type']),_0x5ca6e4=_0x1411c6['filter'](_0x43de7a=>'insert'==_0x43de7a['type']&&'$text'!=_0x43de7a['name']);for(const _0x33bc9a of _0xd36de7)this['_isRegisteredAttribute'](_0x33bc9a['attributeKey'])&&_0x362bc7['push']({'key':_0x33bc9a['attributeKey'],'newValue':_0x33bc9a['attributeNewValue'],'oldValue':_0x33bc9a['attributeOldValue'],'range':qt(_0x33bc9a['range'],_0x1bb7fd['model'])});for(const _0x476c66 of _0x5ca6e4){if('rename'!=_0x476c66['action']&&'refresh'!=_0x476c66['action'])continue;const _0x556c69=zt(_0x476c66['position']['nodeAfter'],_0x1bb7fd['model']),_0x458e10=_0x476c66['before'];'rename'==_0x476c66['action']&&_0x362bc7['push']({'key':m,'newValue':_0x476c66['name'],'oldValue':_0x458e10['name'],'range':_0x556c69});for(const [_0xc0affd,_0x4d7cbd]of _0x458e10['attributes']){if(!this['_isRegisteredAttribute'](_0xc0affd))continue;const _0x3a4aa5=_0x476c66['attributes']['get'](_0xc0affd);_0x4d7cbd!==_0x3a4aa5&&_0x362bc7['push']({'key':_0xc0affd,'newValue':_0x3a4aa5,'oldValue':_0x4d7cbd,'range':_0x556c69});}for(const [_0x1471b9,_0x28089d]of _0x476c66['attributes'])this['_isRegisteredAttribute'](_0x1471b9)&&(_0x458e10['attributes']['has'](_0x1471b9)||_0x362bc7['push']({'key':_0x1471b9,'newValue':_0x28089d,'oldValue':null,'range':_0x556c69}));}0x0!=_0x362bc7['length']&&_0x1bb7fd['model']['enqueueChange'](_0x50d61d,_0x16bb79=>{const _0x1e4cfe=_0x4cb0f7();for(const {range:_0xf6a48,key:_0x62a9d3,oldValue:_0xd6b5,newValue:_0x1680a2}of _0x362bc7)this['markAttributeChange'](_0xf6a48,_0x62a9d3,_0xd6b5,_0x1680a2,{'groupId':_0x1e4cfe});this['_reduceExistingSuggestions'](_0x16bb79,_0x362bc7);});},{'priority':'lowest'}),_0x1bb7fd['model']['markers']['on']('update:suggestion',(_0x11417f,_0xa3684a,_0x56ab02)=>{if(null==_0x56ab02){const {id:_0x268ae2}=this['_splitMarkerName'](_0xa3684a['name']),_0x211dc6=this['_suggestions']['get'](_0x268ae2);_0x211dc6&&_0x211dc6['addMarkerName'](_0xa3684a['name']);}}),_0x1bb7fd['model']['document']['on']('change:data',()=>{const _0x14ced2=Array['from'](_0x1bb7fd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1ad4d4=>'suggestion'===this['_splitMarkerName'](_0x1ad4d4['name'])['group']);if(0x0===_0x14ced2['length'])return;_0x14ced2['sort']((_0x539ade,_0x7b2d0f)=>{const _0x1cd546=_0x539ade['data']['oldRange'],_0x4cc70c=_0x7b2d0f['data']['oldRange'];return null===_0x1cd546&&null===_0x4cc70c?0x0:null===_0x1cd546&&null!==_0x4cc70c?-0x1:null!==_0x1cd546&&null===_0x4cc70c?0x1:_0x1cd546['start']['isBefore'](_0x4cc70c['start'])?-0x1:0x1;});const _0x546d5c=new Set(),_0x2d425e=new Set();for(const {name:_0x2c6cb2,data:_0x43fc4a}of _0x14ced2){const {id:_0x46cfa6}=this['_splitMarkerName'](_0x2c6cb2);if(null===_0x43fc4a['oldRange']){const _0x50596a=this['_handleNewSuggestionMarker'](_0x2c6cb2);_0x2d425e['add'](_0x50596a);}else{const _0x314a3a=this['_suggestions']['get'](_0x46cfa6);null!==_0x43fc4a['newRange']||_0x314a3a['isInContent']?(_0x546d5c['add'](_0x314a3a['head']),_0x2d425e['add'](_0x314a3a)):this['_removeSuggestion'](_0x314a3a);}}_0x2d425e['size']>0x0&&this['_refreshSuggestionsChain'](_0x2d425e);for(const _0x22a8ac of _0x546d5c)this['fire']('suggestionChanged',_0x22a8ac);}),_0x1bb7fd['model']['on']('applyOperation',(_0x121a93,_0x3d269f)=>{const _0x576958=_0x3d269f[0x0];if(!this['_suggestions']['size'])return;if(!_0x576958['isDocumentOperation'])return;if(_0x576958['batch']['isUndo']||!_0x576958['batch']['isLocal'])return;let _0x26b85c,_0x1b9939;switch(_0x576958['type']){case'insert':_0x26b85c=_0x1bb7fd['model']['createPositionAt'](_0x576958['position']),_0x1b9939=_0x26b85c['getShiftedBy'](_0x576958['howMany']);break;case'split':_0x26b85c=_0x1bb7fd['model']['createPositionAt'](_0x576958['splitPosition']),_0x1b9939=_0x1bb7fd['model']['createPositionAt'](_0x576958['moveTargetPosition']);break;case'move':_0x26b85c=_0x1bb7fd['model']['createPositionAt'](_0x576958['targetPosition']),_0x1b9939=_0x26b85c['getShiftedBy'](_0x576958['howMany']);break;default:return;}const _0xf57e87=_0x1bb7fd['model']['createRange'](_0x26b85c,_0x1b9939);_0x1bb7fd['model']['change'](()=>{for(const {suggestion:_0x540420,meta:_0x170cd5}of this['_findSuggestions'](_0xf57e87)){if(_0x540420['isMultiRange'])continue;if('formatInline'==_0x540420['type'])continue;const _0x5e0e5b=this['_getAttributeKey'](_0x540420);if(_0x5e0e5b&&this['_isBlockAttribute'](_0x5e0e5b)&&'split'!=_0x576958['type'])continue;const _0x381c7a=_0x540420['data']&&_0x540420['data']['multipleBlocks'];('formatBlock'!=_0x540420['type']||'split'==_0x576958['type']&&!_0x381c7a)&&(_0x170cd5['containsRangeInObject']||'insertion'==_0x540420['type']&&_0x170cd5['isOwn']||_0x540420['getFirstRange']()['containsRange'](_0xf57e87)&&this['_breakSuggestionMarker'](_0x540420,_0x26b85c,_0x1b9939));}});},{'priority':'lowest'}),_0x1bb7fd['model']['on']('deleteContent',(_0x147d6b,_0x209cf1)=>{const _0x58661e=_0x209cf1[0x0],_0x2ce939=_0x209cf1[0x1];if(_0x2ce939&&_0x2ce939['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x58661e['isCollapsed'])return;const _0x524a6f=_0x1bb7fd['model']['schema'],{start:_0x5165fc,end:_0x3886ad}=_0x58661e['getFirstRange'](),_0x4ca3b8=_0x5165fc['nodeAfter']&&_0x524a6f['isLimit'](_0x5165fc['nodeAfter'])?null:_0x524a6f['getNearestSelectionRange'](_0x5165fc,'forward'),_0xc9dcc5=_0x3886ad['nodeBefore']&&_0x524a6f['isLimit'](_0x3886ad['nodeBefore'])?null:_0x524a6f['getNearestSelectionRange'](_0x3886ad,'backward'),_0x3e6233=_0x1bb7fd['model']['createRange'](_0x4ca3b8?_0x4ca3b8['start']:_0x5165fc,_0xc9dcc5?_0xc9dcc5['end']:_0x3886ad);_0x1bb7fd['model']['change'](_0x13d83e=>{this['markDeletion'](_0x3e6233);const _0x42eab0=_0x1bb7fd['model']['schema']['getNearestSelectionRange'](_0x3e6233['start']);_0x58661e['is']('documentSelection')?_0x13d83e['setSelection'](_0x42eab0):_0x58661e['setTo'](_0x42eab0);}),_0x147d6b['stop']();},{'priority':_0x5717db['normal']+0xa}),_0x1bb7fd['model']['on']('insertContent',(_0x230eea,_0x2dcf7e)=>{const _0xcfdedd=_0x2dcf7e[_0x2dcf7e['length']-0x1];_0xcfdedd&&_0xcfdedd['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1bb7fd['model']['change'](()=>{let _0x38ca7b=_0x1bb7fd['model']['insertContent'](_0x2dcf7e[0x0],_0x2dcf7e[0x1],_0x2dcf7e[0x2],{'forceDefaultExecution':!0x0});if(!_0x38ca7b)return;_0x230eea['return']=_0x38ca7b['clone']();const _0x4464c9=_0x38ca7b['end']['nodeBefore'],_0x136065=_0x1bb7fd['model']['schema'];_0x4464c9&&_0x136065['isBlock'](_0x4464c9)&&!_0x136065['isObject'](_0x4464c9)&&(_0x38ca7b=_0x1bb7fd['model']['createRange'](_0x38ca7b['start'],_0x1bb7fd['model']['createPositionAt'](_0x4464c9,'end'))),this['markInsertion'](_0x38ca7b);}),_0x230eea['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3a5c92=new O(_0x1bb7fd,this['_suggestions']);_0x1bb7fd['commands']['add']('acceptSuggestion',_0x3a5c92),this['enableCommand']('acceptSuggestion');const _0x30889b=new R(_0x1bb7fd,this['_suggestions']);_0x1bb7fd['commands']['add']('discardSuggestion',_0x30889b),this['enableCommand']('discardSuggestion'),_0x1bb7fd['commands']['add']('acceptAllSuggestions',new x(_0x1bb7fd,_0x3a5c92,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1bb7fd['commands']['add']('discardAllSuggestions',new x(_0x1bb7fd,_0x30889b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1bb7fd['commands']['add']('acceptSelectedSuggestions',new E(_0x1bb7fd,_0x3a5c92,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1bb7fd['commands']['add']('discardSelectedSuggestions',new E(_0x1bb7fd,_0x30889b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x427f9c=_0x1bb7fd['plugins']['get']('CommentsRepository');this['listenTo'](_0x427f9c,'addComment',(_0x537dc1,{threadId:_0x3d0253})=>{const _0x5c2f79=this['_suggestions']['get'](_0x3d0253);_0x5c2f79&&_0x5c2f79['commentThread']&&0x1===_0x5c2f79['commentThread']['length']&&this['_updateSuggestionData'](_0x3d0253,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x427f9c,'removeComment',(_0x1949e2,{threadId:_0x44f162})=>{const _0xe593e7=this['_suggestions']['get'](_0x44f162);_0xe593e7&&_0xe593e7['commentThread']&&!_0xe593e7['commentThread']['length']&&this['_updateSuggestionData'](_0x44f162,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2f0aa0){const _0xb9095c=_0xc1dc5d([0x44,0x42,0x47,0x72,0x65,0x6b,0x51,0x33,0x4a,0x55,0x30,0x35,0x43,0x73,0x32,0x58,0x39,0x41,0x6a,0x31,0x4e,0x53,0x76,0x69,0x62,0x48,0x52,0x63,0x46,0x68,0x36,0x4b,0x64,0x59,0x5a,0x74,0x56,0x49,0x66,0x77,0x70,0x45,0x75,0x67,0x4d,0x34,0x78,0x38,0x50,0x61,0x6c,0x54,0x4f,0x6d,0x6e,0x6f,0x57,0x37,0x79,0x71,0x7a,0x4c]),_0x4b9cdf=0x4507b156,_0xbebc82=0x4500d07e^_0x4b9cdf,_0x292d65=window[_0xc1dc5d([0x44,0x61,0x74,0x65])][_0xc1dc5d([0x6e,0x6f,0x77])](),_0x15f2cb=_0x2f0aa0[_0xc1dc5d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a4ca9=new window[(_0xc1dc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b7cc0=>{_0x15f2cb[_0xc1dc5d([0x6f,0x6e,0x63,0x65])](_0xc1dc5d([0x72,0x65,0x61,0x64,0x79]),_0x4b7cc0);}),_0x4d59ed={[_0xc1dc5d([0x6b,0x74,0x79])]:_0xc1dc5d([0x45,0x43]),[_0xc1dc5d([0x75,0x73,0x65])]:_0xc1dc5d([0x73,0x69,0x67]),[_0xc1dc5d([0x63,0x72,0x76])]:_0xc1dc5d([0x50,0x2d,0x32,0x35,0x36]),[_0xc1dc5d([0x78])]:_0xc1dc5d([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]),[_0xc1dc5d([0x79])]:_0xc1dc5d([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]),[_0xc1dc5d([0x61,0x6c,0x67])]:_0xc1dc5d([0x45,0x53,0x32,0x35,0x36])},_0x3f8c15=_0x15f2cb[_0xc1dc5d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc1dc5d([0x67,0x65,0x74])](_0xc1dc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2266bf(){let _0xc7741f,_0x16a03a=null,_0x38d30f=null;try{if(_0x3f8c15==_0xc1dc5d([0x47,0x50,0x4c]))return _0xc1dc5d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc7741f=_0x336978(),!_0xc7741f)return _0xc1dc5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc7741f[_0xc1dc5d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x38d30f=_0x91c42e(_0xc7741f[_0xc1dc5d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc7741f[_0xc1dc5d([0x6a,0x74,0x69])])),await _0x162d12()?_0x20f318()?_0x56040c()?_0xc1dc5d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x113da0()?(_0xc7741f[_0xc1dc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc1dc5d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x16a03a=_0x400b95(_0xc1dc5d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc7741f[_0xc1dc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc1dc5d([0x74,0x72,0x69,0x61,0x6c])&&(_0x16a03a=_0x400b95(_0xc1dc5d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x9a0efa()):_0xc1dc5d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc1dc5d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc1dc5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xad28ed){return _0xc1dc5d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56040c(){const _0x10bb41=[_0xc1dc5d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc1dc5d([0x74,0x72,0x69,0x61,0x6c])][_0xc1dc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc7741f[_0xc1dc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x292d65/0x3e8:0xe10*_0xbebc82;return _0xc7741f[_0xc1dc5d([0x65,0x78,0x70])]<_0x10bb41;}function _0x20f318(){const _0x25b792=_0xc7741f[_0xc1dc5d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x25b792)return!0x1;if(_0x25b792[_0xc1dc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc1dc5d([0x2a])))return!0x0;if(_0x25b792[_0xc1dc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc1dc5d([0x54,0x43])))return!0x0;if(_0x25b792[_0xc1dc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc1dc5d([0x52,0x54,0x43]))){if(_0x50f7c4())return!0x0;if(_0x1c0c77()||_0x88033b())return!0x0;}return!0x1;}function _0x113da0(){const _0x573928=_0xc7741f[_0xc1dc5d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x573928||0x0==_0x573928[_0xc1dc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa3e55a}=new URL(window[_0xc1dc5d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x573928[_0xc1dc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3e55a))return!0x0;const _0x5e0e8b=_0xa3e55a[_0xc1dc5d([0x73,0x70,0x6c,0x69,0x74])](_0xc1dc5d([0x2e]));return _0x573928[_0xc1dc5d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x555144=>_0x555144[_0xc1dc5d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc1dc5d([0x2a])))[_0xc1dc5d([0x6d,0x61,0x70])](_0x5284b9=>_0x5284b9[_0xc1dc5d([0x73,0x70,0x6c,0x69,0x74])](_0xc1dc5d([0x2e])))[_0xc1dc5d([0x73,0x6f,0x6d,0x65])](_0x1214e4=>_0x5e0e8b[_0xc1dc5d([0x65,0x76,0x65,0x72,0x79])]((_0x255b66,_0x40fb97)=>_0x1214e4[_0x40fb97]===_0x255b66||_0x1214e4[_0x40fb97]===_0xc1dc5d([0x2a])));}function _0x9a0efa(){return _0x16a03a&&_0x38d30f?new window[(_0xc1dc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d11f9,_0x443109)=>{_0x16a03a[_0xc1dc5d([0x74,0x68,0x65,0x6e])](_0x2d11f9,_0x443109),_0x38d30f[_0xc1dc5d([0x74,0x68,0x65,0x6e])](_0x26186a=>{_0x26186a!=_0xc1dc5d([0x56,0x61,0x6c,0x69,0x64])&&_0x2d11f9(_0x26186a);},_0x443109);}):_0x16a03a||_0x38d30f||_0xc1dc5d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x91c42e(_0xe27f5e,_0x3e2b03){return new window[(_0xc1dc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a4948=>{if(_0x2f036d())return _0x5a4948(_0xc1dc5d([0x56,0x61,0x6c,0x69,0x64]));_0x46c562(),_0x15f2cb[_0xc1dc5d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc1dc5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x47f6e3=!0x1;const _0x2bdcff=_0x4cb0f7();function _0x558194(_0x10c0ef){return!!_0x10c0ef&&(typeof _0x10c0ef===_0xc1dc5d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x10c0ef===_0xc1dc5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x10c0ef[_0xc1dc5d([0x74,0x68,0x65,0x6e])]===_0xc1dc5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x10c0ef[_0xc1dc5d([0x63,0x61,0x74,0x63,0x68])]===_0xc1dc5d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e6398(_0xd311d1){_0x3013e9(_0xd311d1)[_0xc1dc5d([0x74,0x68,0x65,0x6e])](_0x335e7b=>{if(!_0x335e7b||_0x335e7b[_0xc1dc5d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc1dc5d([0x6f,0x6b]))return _0xc1dc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x509e1b(_0xf33397(_0x2bdcff+_0x3e2b03))!=_0x335e7b[_0xc1dc5d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc1dc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc1dc5d([0x56,0x61,0x6c,0x69,0x64]);})[_0xc1dc5d([0x74,0x68,0x65,0x6e])](_0xff3e79=>(_0x1f071a(),_0xff3e79),()=>{const _0x2d2396=_0x53b81b();return null==_0x2d2396?(_0x1f071a(),_0xc1dc5d([0x56,0x61,0x6c,0x69,0x64])):_0xc1dc5d(_0x292d65-_0x2d2396>(0x610b3556^_0x4b9cdf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc1dc5d([0x74,0x68,0x65,0x6e])](_0x5a4948)[_0xc1dc5d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a4948(_0xc1dc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x83cf41=0x45315fd6^_0x4b9cdf;function _0x1f071a(){const _0x31448b=_0xc1dc5d([0x6c,0x6c,0x63,0x74,0x2d])+_0x509e1b(_0xf33397(_0xe27f5e)),_0x968f1=_0x1ec9db(_0x509e1b(window[_0xc1dc5d([0x4d,0x61,0x74,0x68])][_0xc1dc5d([0x63,0x65,0x69,0x6c])](_0x292d65/_0x83cf41)));window[_0xc1dc5d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc1dc5d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x31448b,_0x968f1);}function _0x53b81b(){const _0x56bd9a=_0xc1dc5d([0x6c,0x6c,0x63,0x74,0x2d])+_0x509e1b(_0xf33397(_0xe27f5e)),_0x1a78db=window[_0xc1dc5d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc1dc5d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56bd9a);return _0x1a78db?window[_0xc1dc5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ec9db(_0x1a78db),0x10)*_0x83cf41:null;}function _0x3013e9(_0x49a82e){return new window[(_0xc1dc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa67bf1,_0x2df180)=>{_0x49a82e[_0xc1dc5d([0x74,0x68,0x65,0x6e])](_0xa67bf1,_0x2df180),window[_0xc1dc5d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2df180,0x45066596^_0x4b9cdf);});}}_0x15f2cb[_0xc1dc5d([0x6f,0x6e])](_0xc1dc5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1230d7,_0x35de1a)=>{if(_0x35de1a[0x0]!=_0xe27f5e)return _0x5a4948(_0xc1dc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35de1a[0x1]={..._0x35de1a[0x1],[_0xc1dc5d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2bdcff};},{[_0xc1dc5d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc1dc5d([0x68,0x69,0x67,0x68])}),_0x15f2cb[_0xc1dc5d([0x6f,0x6e])](_0xc1dc5d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28309a=>{_0x558194(_0x28309a[_0xc1dc5d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x47f6e3=!0x0,_0x2e6398(_0x28309a[_0xc1dc5d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc1dc5d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc1dc5d([0x6c,0x6f,0x77])}),_0x4a4ca9[_0xc1dc5d([0x74,0x68,0x65,0x6e])](()=>{_0x47f6e3||_0x5a4948(_0xc1dc5d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f036d(){return _0x15f2cb[_0xc1dc5d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc1dc5d([0x76,0x69,0x65,0x77])][_0xc1dc5d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc1dc5d([0x61,0x75,0x74,0x6f]);}function _0x46c562(){_0x15f2cb[_0xc1dc5d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc1dc5d([0x76,0x69,0x65,0x77])][_0xc1dc5d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc1dc5d([0x61,0x75,0x74,0x6f]);}}function _0x400b95(_0x379918){const _0x237feb=[new window[(_0xc1dc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48600f=>setTimeout(_0x48600f,0x450e8f9a^_0x4b9cdf)),_0x4a4ca9[_0xc1dc5d([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc1dc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x170206=>{let _0x5c87e1=0x0;_0x15f2cb[_0xc1dc5d([0x6d,0x6f,0x64,0x65,0x6c])][_0xc1dc5d([0x6f,0x6e])](_0xc1dc5d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2c366e,_0x5d3a5c)=>{_0x5d3a5c[0x0][_0xc1dc5d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c87e1++,_0x5c87e1==(0x4507b0ae^_0x4b9cdf)&&(_0x170206(),_0x2c366e[_0xc1dc5d([0x6f,0x66,0x66])]());});}))];return window[_0xc1dc5d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc1dc5d([0x72,0x61,0x63,0x65])](_0x237feb)[_0xc1dc5d([0x74,0x68,0x65,0x6e])](()=>_0x379918);}async function _0x11590a(){await _0x4a4ca9,_0x15f2cb[_0xc1dc5d([0x6d,0x6f,0x64,0x65,0x6c])][_0xc1dc5d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x397fee,_0x15f2cb[_0xc1dc5d([0x6d,0x6f,0x64,0x65,0x6c])][_0xc1dc5d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x397fee,_0x15f2cb[_0xc1dc5d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc1dc5d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x50f7c4(){return _0x1f2591(_0xc1dc5d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2c6906(_0xc1dc5d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xc1dc5d([0x73,0x74,0x61,0x74,0x65])]==_0xc1dc5d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1c0c77(){return _0x1f2591(_0xc1dc5d([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 _0x88033b(){return _0x1f2591(_0xc1dc5d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ba5fc(_0x562459){const _0x4b5fe5=_0xa1f12d();_0x15f2cb[_0x4b5fe5]=_0xc1dc5d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x562459,_0x562459!=_0xc1dc5d([0x56,0x61,0x6c,0x69,0x64])&&_0x11590a();}function _0xa1f12d(){const _0x37aaa2=window[_0xc1dc5d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc1dc5d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc1dc5d([0x6e,0x6f,0x77])]())[_0xc1dc5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc1dc5d([0x2e]),'');let _0x1a4f78=_0xc1dc5d([0x44]);for(let _0x3b5739=0x0;_0x3b5739<_0x37aaa2[_0xc1dc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3b5739+=0x2){let _0x26c80a=window[_0xc1dc5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37aaa2[_0xc1dc5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3b5739,_0x3b5739+0x2));_0x26c80a>=_0xb9095c[_0xc1dc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x26c80a-=_0xb9095c[_0xc1dc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a4f78+=_0xb9095c[_0x26c80a];}return _0x1a4f78;}function _0x336978(){const _0x38e92a=_0x3f8c15[_0xc1dc5d([0x73,0x70,0x6c,0x69,0x74])](_0xc1dc5d([0x2e]));if(0x3!=_0x38e92a[_0xc1dc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53a370(_0x38e92a[0x1]);function _0x53a370(_0x98a702){const _0x23874b=_0x3ce1e0(_0x98a702);return _0x23874b&&_0x13121a()?_0x23874b:null;function _0x13121a(){const _0xe21a28=_0x23874b[_0xc1dc5d([0x6a,0x74,0x69])],_0x457063=window[_0xc1dc5d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe21a28[_0xc1dc5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xe21a28[_0xc1dc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x495e77={..._0x23874b,[_0xc1dc5d([0x6a,0x74,0x69])]:_0xe21a28[_0xc1dc5d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xe21a28[_0xc1dc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x495e77[_0xc1dc5d([0x76,0x63])],_0xf33397(_0x495e77)==_0x457063;}}}async function _0x162d12(){let _0x416c4e=!0x0;try{const _0x10b163=_0x3f8c15[_0xc1dc5d([0x73,0x70,0x6c,0x69,0x74])](_0xc1dc5d([0x2e])),[_0x57caa7,_0x22dd3b,_0x5a168a]=_0x10b163;return _0xad554(_0x57caa7),await _0x3cb6cc(_0x57caa7,_0x22dd3b,_0x5a168a),_0x416c4e;}catch(_0x43257a){return!0x1;}function _0xad554(_0x581ab6){const _0x8d5ec2=_0x3ce1e0(_0x581ab6);_0x8d5ec2&&_0x8d5ec2[_0xc1dc5d([0x61,0x6c,0x67])]==_0xc1dc5d([0x45,0x53,0x32,0x35,0x36])||(_0x416c4e=!0x1);}async function _0x3cb6cc(_0x388877,_0x2e29c3,_0x863aaa){const _0x2f4439=window[_0xc1dc5d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc1dc5d([0x66,0x72,0x6f,0x6d])](_0x479fea(_0x863aaa),_0x5bb537=>_0x5bb537[_0xc1dc5d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e7de5=new window[(_0xc1dc5d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc1dc5d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x388877+_0xc1dc5d([0x2e])+_0x2e29c3),_0x12af46=window[_0xc1dc5d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc1dc5d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12af46)return;const _0x43a3c1=await _0x12af46[_0xc1dc5d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc1dc5d([0x6a,0x77,0x6b]),_0x4d59ed,{[_0xc1dc5d([0x6e,0x61,0x6d,0x65])]:_0xc1dc5d([0x45,0x43,0x44,0x53,0x41]),[_0xc1dc5d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc1dc5d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc1dc5d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12af46[_0xc1dc5d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc1dc5d([0x6e,0x61,0x6d,0x65])]:_0xc1dc5d([0x45,0x43,0x44,0x53,0x41]),[_0xc1dc5d([0x68,0x61,0x73,0x68])]:{[_0xc1dc5d([0x6e,0x61,0x6d,0x65])]:_0xc1dc5d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x43a3c1,_0x2f4439,_0x1e7de5)||(_0x416c4e=!0x1);}}function _0x3ce1e0(_0xda5ed6){return _0xda5ed6[_0xc1dc5d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc1dc5d([0x65,0x79]))?JSON[_0xc1dc5d([0x70,0x61,0x72,0x73,0x65])](_0x479fea(_0xda5ed6)):null;}function _0x479fea(_0x3c606b){return window[_0xc1dc5d([0x61,0x74,0x6f,0x62])](_0x3c606b[_0xc1dc5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc1dc5d([0x2b]))[_0xc1dc5d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc1dc5d([0x2f])));}function _0xf33397(_0x1fbbc9){let _0x5a4250=0x1505;function _0x5606bf(_0x1bbe48){for(let _0x448005=0x0;_0x448005<_0x1bbe48[_0xc1dc5d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x448005++){const _0x28b48a=_0x1bbe48[_0xc1dc5d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x448005);_0x5a4250=(_0x5a4250<<0x5)+_0x5a4250+_0x28b48a,_0x5a4250&=_0x5a4250;}}function _0x3a7b65(_0x208bf8){Array[_0xc1dc5d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x208bf8)?_0x208bf8[_0xc1dc5d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a7b65):_0x208bf8&&typeof _0x208bf8==_0xc1dc5d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc1dc5d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x208bf8)[_0xc1dc5d([0x73,0x6f,0x72,0x74])]()[_0xc1dc5d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40669,_0x343960])=>{_0x5606bf(_0x40669),_0x3a7b65(_0x343960);}):_0x5606bf(window[_0xc1dc5d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x208bf8));}return _0x3a7b65(_0x1fbbc9),_0x5a4250>>>0x0;}function _0x509e1b(_0x3ddf84){return _0x3ddf84[_0xc1dc5d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc1dc5d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc1dc5d([0x30]));}function _0x1ec9db(_0x31c621){return _0x31c621[_0xc1dc5d([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc1dc5d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc1dc5d([0x6a,0x6f,0x69,0x6e])]('');}function _0x1f2591(_0x56bffc){return _0x15f2cb[_0xc1dc5d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc1dc5d([0x68,0x61,0x73])](_0x56bffc);}function _0x2c6906(_0x5221bb){return _0x15f2cb[_0xc1dc5d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xc1dc5d([0x67,0x65,0x74])](_0x5221bb);}function _0x397fee(){}function _0xc1dc5d(_0x243a80){return _0x243a80['map'](_0xea157c=>String['fromCharCode'](_0xea157c))['join']('');}_0x1ba5fc(await _0x2266bf());}(this);}set['adapter'](_0x118824){if(this['_adapter'])throw new _0x513467('track-changes-adapter-already-set',this);this['_adapter']=_0x118824;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3e189c=!0x1,toJSON:_0x3b3ea4=!0x1}={}){const _0x27d2e0=[];for(const _0x496d38 of this['_suggestions']['values']())_0x3e189c&&!_0x496d38['isInContent']||_0x27d2e0['push'](_0x496d38);return _0x3b3ea4?_0x27d2e0['map'](_0x5c5312=>_0x5c5312['toJSON']()):_0x27d2e0;}['getSuggestion'](_0x22bf2d){const _0x565565=this['_suggestions']['get'](_0x22bf2d);if(!_0x565565)throw new _0x513467('track-changes-suggestion-not-found',this);return _0x565565;}['hasSuggestion'](_0x835126){return this['_suggestions']['has'](_0x835126);}['addSuggestionData'](_0x3088ba){const {authorId:_0x44c40b,id:_0xb3cd98,attributes:_0x1099a0}=_0x3088ba,[_0x275b88,_0x935932]=_0x3088ba['type']['split'](':'),_0x1d909f=this['_suggestions']['get'](_0xb3cd98)||this['_createSuggestion'](_0x275b88,_0x935932,_0xb3cd98,_0x44c40b,_0x1099a0);if(this['_addThreadToSuggestion'](_0x1d909f),this['_checkSuggestionCorrectness'](_0x1d909f,_0x275b88,_0x935932||null,_0x44c40b),_0x1d909f['createdAt']=_0x3088ba['createdAt'],_0x1d909f['_isDataLoaded']=!0x0,_0x1099a0&&_0x1099a0['@external']){const _0x5308f7=_0x1099a0['@external'],_0x58d387=this['_getExternalAuthor'](_0x5308f7['authorName']);_0x1d909f['authoredAt']=_0x5308f7['createdAt'],_0x1d909f['author']=_0x58d387,_0x1d909f['isExternal']=!0x0;}else _0x1d909f['authoredAt']=_0x3088ba['createdAt'];switch(_0x3088ba['data']&&(_0x1d909f['data']=_0x3088ba['data']),_0x3088ba['attributes']&&(_0x1d909f['attributes']=_0x3088ba['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1d909f['_saved']=!0x0),this['_suggestionState']['get'](_0x1d909f)){case'notReady':this['_suggestionState']['set'](_0x1d909f,'dataReady');break;case'markerReady':_0x1d909f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1d909f])),this['_refreshSuggestionsChain'](new Set([_0x1d909f])),this['_suggestionState']['set'](_0x1d909f,'ready'),this['fire']('suggestionLoaded',_0x1d909f)):this['_suggestionState']['set'](_0x1d909f,'removed');}return _0x1d909f;}['acceptSuggestion'](_0xbc0c1){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x28a0b7 of _0xbc0c1['getAllAdjacentSuggestions']())_0x28a0b7['accept']();});});}['discardSuggestion'](_0x1807d3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4c5910 of _0x1807d3['getAllAdjacentSuggestions']())_0x4c5910['discard']();});});}['enableCommand'](_0x558cf0,_0x9fb88d){const _0x1650f1=this['editor']['commands']['get'](_0x558cf0);if(!_0x1650f1)throw new _0x513467('track-changes-command-not-found',this,{'commandName':_0x558cf0});if(this['_enabledCommands']['has'](_0x1650f1))throw new _0x513467('track-changes-enable-command-twice',this,{'commandName':_0x558cf0});this['_enabledCommands']['add'](_0x1650f1),_0x9fb88d&&_0x1650f1['on']('execute',(_0x1a61af,_0x36cc16)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x36cc16['length']>0x0&&_0x36cc16[_0x36cc16['length']-0x1]&&_0x36cc16[_0x36cc16['length']-0x1]['forceDefaultExecution']?_0x36cc16['pop']():(_0x1a61af['return']=_0x9fb88d((..._0x5eee76)=>_0x1650f1['execute'](..._0x5eee76,{'forceDefaultExecution':!0x0}),..._0x36cc16),_0x1a61af['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x544b5e){let _0x2c440e,_0x13a331;const _0x1ea3f6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2c440e=_0x544b5e();}catch(_0x3f91f7){_0x13a331=_0x3f91f7;}return _0x1ea3f6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x13a331&&_0x513467['rethrowUnexpectedError'](_0x13a331,this),_0x2c440e;}['markInsertion'](_0x2ce20d,_0x10c1e0=null,_0xa9f817={}){if(_0x2ce20d['isCollapsed'])return null;const _0x18c175=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1d2a50,meta:_0x1e773a}of this['_findSuggestions'](_0x2ce20d,'insertion'))if(_0x1e773a['isOwn']){if(!_0x1e773a['isNextTo']){if(_0x1e773a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x1d2a50,_0xa9f817))continue;return _0x1d2a50;}if(Qt(_0x1d2a50,_0xa9f817))return _0x1d2a50;this['_breakSuggestionMarker'](_0x1d2a50,_0x2ce20d['start'],_0x2ce20d['end']);break;}if(_0x10c1e0==_0x1d2a50['subType']&&Qt(_0x1d2a50,_0xa9f817)){const _0x4d5738=_0x1d2a50['getFirstRange']();return _0x4d5738['start']['isEqual'](_0x2ce20d['end'])?this['_setSuggestionRange'](_0x1d2a50,this['_model']['createRange'](_0x2ce20d['start'],_0x4d5738['end'])):this['_setSuggestionRange'](_0x1d2a50,this['_model']['createRange'](_0x4d5738['start'],_0x2ce20d['end'])),_0x1d2a50;}}const _0xa9cf37=_0x4cb0f7(),_0x308226=_0x18c175['id'],_0x4a09a5=_0x10c1e0?'insertion:'+_0x10c1e0:'insertion',_0x5ea440=this['_setSuggestionData']({'id':_0xa9cf37,'type':_0x4a09a5,'createdAt':new Date(),'authorId':_0x308226,'attributes':_0xa9f817});return this['_addSuggestionMarker'](_0x4a09a5,_0xa9cf37,_0x308226,_0x2ce20d),_0x5ea440;}['markMultiRangeInsertion'](_0x5983c5,_0x19b63a='multi',_0x34f9c8={}){const _0x21ccb8=this['editor']['plugins']['get']('Users')['me'],_0x28b391=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x19b63a,'join');for(const _0x1e801c of this['getSuggestions']())if(_0x1e801c['author']['id']==_0x21ccb8['id']&&'insertion'==_0x1e801c['type']&&_0x1e801c['subType']==_0x19b63a&&Qt(_0x1e801c,_0x34f9c8)&&(_0x28b391(_0x1e801c['getRanges'](),_0x5983c5)||_0x28b391(_0x5983c5,_0x1e801c['getRanges']()))){for(const _0x49283f of _0x5983c5)_0x1e801c['addRange'](_0x49283f);return _0x1e801c;}for(const {suggestion:_0x5d25e2,meta:_0x10d310}of this['_findSuggestions'](_0x5983c5,'insertion')){if(!_0x10d310['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x10d310['containsRangeInObject'])continue;if(!Qt(_0x5d25e2,_0x34f9c8))continue;let _0x638160=!0x0;for(const _0x2be19e of _0x5d25e2['getRanges']())for(const _0x3f3214 of _0x5983c5)if(!_0x2be19e['containsRange'](_0x3f3214)){_0x638160=!0x1;break;}if(_0x638160)return _0x5d25e2;}const _0x8a4793=_0x4cb0f7(),_0x27d780=_0x21ccb8['id'],_0x1aeaf7='insertion:'+_0x19b63a,_0x47b384=this['_setSuggestionData']({'id':_0x8a4793,'type':_0x1aeaf7,'createdAt':new Date(),'authorId':_0x27d780,'attributes':_0x34f9c8});for(const _0x2993ff of _0x5983c5)this['_addSuggestionMarker'](_0x1aeaf7,_0x8a4793,_0x27d780,_0x2993ff,u['getMultiRangeId']());return _0x47b384;}['markInlineFormat'](_0x3058b7,_0x2982b6,_0x199a3c=null,_0x3f3ce9={}){if(_0x199a3c=_0x199a3c||Jt(_0x2982b6),_0x3058b7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x46cbe5=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x199a3c,'accept');return this['forceDefaultExecution'](()=>_0x46cbe5([_0x3058b7],_0x2982b6,_0x3f3ce9)),null;}const _0x632e29=this['editor']['plugins']['get']('Users')['me'],_0x3c2d5f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x55193d,meta:_0x1bdfb7}of this['_findSuggestions'](_0x3058b7,'insertion'))_0x1bdfb7['isOwn']&&!_0x1bdfb7['isInsideObject']&&_0x3c2d5f['push'](..._0x55193d['getRanges']());}const _0x34c420=function(_0x2baedb,_0x5ee931){const _0x59d691=[];for(const _0x26887b of _0x5ee931){const _0xcf96ca=_0x2baedb['getIntersection'](_0x26887b);_0xcf96ca&&_0x59d691['push'](_0xcf96ca);}return _0x59d691;}(_0x3058b7,_0x3c2d5f),_0x43f15b=function(_0x335a65,_0xe3ec91){const _0x4e9efc=[_0x335a65];for(const _0x59734c of _0xe3ec91){let _0x4845c5=0x0;for(;_0x4845c5<_0x4e9efc['length'];){const _0x54909f=_0x4e9efc[_0x4845c5]['getDifference'](_0x59734c);_0x4e9efc['splice'](_0x4845c5,0x1,..._0x54909f),_0x4845c5+=_0x54909f['length'];}}return _0x4e9efc;}(_0x3058b7,_0x3c2d5f);_0x34c420['length']&&this['_model']['change'](()=>{for(const _0x25f203 of _0x34c420){const _0x369561=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x199a3c,'accept');this['forceDefaultExecution'](()=>_0x369561([_0x25f203],_0x2982b6,_0x3f3ce9));}});for(const _0x2b31e0 of _0x43f15b){let _0xe5f9ba=null,_0x4ac8f7=_0x2b31e0['start'],_0x9a3205=_0x2b31e0['end'];for(const {suggestion:_0x562a5c,meta:_0x26a241}of this['_findSuggestions'](_0x2b31e0,'formatInline')){if(!_0x26a241['isOwn'])continue;if(_0x562a5c['subType']!=_0x199a3c)continue;if(!Qt(_0x562a5c,_0x3f3ce9))continue;const _0x4d1483=_0x562a5c['getFirstRange']();if(_0x4d1483['containsRange'](_0x2b31e0,!0x0))return null;_0x4ac8f7=_0x4ac8f7['isBefore'](_0x4d1483['start'])?_0x4ac8f7:_0x4d1483['start'],_0x9a3205=_0x9a3205['isAfter'](_0x4d1483['end'])?_0x9a3205:_0x4d1483['end'],_0xe5f9ba?_0x4d1483['start']['isBefore'](_0xe5f9ba['getFirstRange']()['start'])?(_0xe5f9ba['removeMarkers'](),_0xe5f9ba=_0x562a5c):_0x562a5c['removeMarkers']():_0xe5f9ba=_0x562a5c;}const _0x2591fa=this['_model']['createRange'](_0x4ac8f7,_0x9a3205);if(_0xe5f9ba)this['_setSuggestionRange'](_0xe5f9ba,_0x2591fa);else{const _0x152b9b=_0x4cb0f7(),_0x453b0b=_0x632e29['id'];this['_setSuggestionData']({'id':_0x152b9b,'type':'formatInline:'+_0x199a3c,'data':_0x2982b6,'createdAt':new Date(),'authorId':_0x453b0b,'attributes':_0x3f3ce9}),this['_addSuggestionMarker']('formatInline:'+_0x199a3c,_0x152b9b,_0x453b0b,_0x2591fa);}}return null;}['markBlockFormat'](_0x2d22cc,_0x4f54e6,_0x2abbda=[],_0x114009=null,_0x5b0473={}){_0x4f54e6['formatGroupId']||(_0x4f54e6['formatGroupId']=_0x4f54e6['commandName']),_0x4f54e6['multipleBlocks']=_0x2d22cc['is']('range'),_0x114009=_0x114009||Jt(_0x4f54e6);const _0x25b2ad=_0x2abbda['map'](_0x44d97d=>zt(_0x44d97d,this['_model'])),_0x408e68=_0x2d22cc['is']('range')?_0x2d22cc:zt(_0x2d22cc,this['_model']);if('never'===this['_trackFormatChanges']){const _0x47ee55=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x114009,'accept');return this['forceDefaultExecution'](()=>_0x47ee55([_0x408e68],_0x4f54e6,_0x5b0473)),null;}_0x25b2ad['push'](_0x408e68);let _0x4910f2=!0x0;for(const _0x35c617 of _0x25b2ad)if(!this['_rangeIsInLocalUserInsertion'](_0x35c617)){_0x4910f2=!0x1;break;}if(_0x4910f2&&'always'!==this['_trackFormatChanges']){const _0x59ef7c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x114009,'accept');return this['forceDefaultExecution'](()=>_0x59ef7c([_0x408e68],_0x4f54e6,_0x5b0473)),null;}let _0x4fcfe3=null,_0x2fbbfd=_0x408e68['start'],_0x39ad1f=_0x408e68['end'];for(const {suggestion:_0xff0461,meta:_0x4600c0}of this['_findSuggestions'](_0x408e68,'formatBlock')){if(!_0x4600c0['isOwn'])continue;if(_0x4600c0['isNextTo']||_0x4600c0['containsRangeInObject']||_0x4600c0['isInsideObject'])continue;if(_0xff0461['data']['formatGroupId']!=_0x4f54e6['formatGroupId'])continue;if(!Qt(_0xff0461,_0x5b0473))continue;const _0x1e4af8=_0xff0461['getFirstRange']();if(_0xff0461['subType']==_0x114009){if(_0x1e4af8['containsRange'](_0x408e68,!0x0))return null;_0x2fbbfd=_0x2fbbfd['isBefore'](_0x1e4af8['start'])?_0x2fbbfd:_0x1e4af8['start'],_0x39ad1f=_0x39ad1f['isAfter'](_0x1e4af8['end'])?_0x39ad1f:_0x1e4af8['end'],_0x4fcfe3?_0x1e4af8['start']['isBefore'](_0x4fcfe3['getFirstRange']()['start'])?(_0x4fcfe3['removeMarkers'](),_0x4fcfe3=_0xff0461):_0xff0461['removeMarkers']():_0x4fcfe3=_0xff0461;}else{const _0x463b1b=_0x408e68['getIntersection'](_0x1e4af8);this['_cutOutSuggestionMarker'](_0xff0461,_0x463b1b);}}const _0x3d667b=this['editor']['plugins']['get']('Users')['me'],_0xf71237=_0x4cb0f7(),_0x254eec=_0x3d667b['id'];if(_0x4fcfe3)return this['_setSuggestionRange'](_0x4fcfe3,this['_model']['createRange'](_0x2fbbfd,_0x39ad1f)),_0x4fcfe3;{const _0x3fb9db=this['_setSuggestionData']({'id':_0xf71237,'type':'formatBlock:'+_0x114009,'data':_0x4f54e6,'createdAt':new Date(),'authorId':_0x254eec,'attributes':_0x5b0473});return this['_addSuggestionMarker']('formatBlock:'+_0x114009,_0xf71237,_0x254eec,this['_model']['createRange'](_0x2fbbfd,_0x39ad1f)),_0x3fb9db;}}['markMultiRangeBlockFormat'](_0xa70a8e,_0x1ef784,_0x322cb7=[],_0x28a9fa=null,_0x572645={}){_0x1ef784['formatGroupId']||(_0x1ef784['formatGroupId']=_0x1ef784['commandName']);const _0x4d6d33=_0xa70a8e[0x0];_0x1ef784['multipleBlocks']=_0x4d6d33['is']('range'),_0x28a9fa=_0x28a9fa||Jt(_0x1ef784);const _0x1cf3b9=_0x322cb7['map'](_0x5d8b43=>zt(_0x5d8b43,this['_model'])),_0x299bfd=_0x4d6d33['is']('range')?_0xa70a8e:_0xa70a8e['map'](_0x4a0a7d=>zt(_0x4a0a7d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x510e9e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28a9fa,'accept');return this['forceDefaultExecution'](()=>_0x510e9e(_0x299bfd,_0x1ef784,_0x572645)),null;}_0x1cf3b9['push'](..._0x299bfd);let _0x566a03=!0x0;for(const _0x10e22d of _0x1cf3b9)if(!this['_rangeIsInLocalUserInsertion'](_0x10e22d)){_0x566a03=!0x1;break;}if(_0x566a03&&'always'!==this['_trackFormatChanges']){const _0x68bbb4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28a9fa,'accept');return this['forceDefaultExecution'](()=>_0x68bbb4(_0x299bfd,_0x1ef784,_0x572645)),null;}const _0x59b912=this['editor']['plugins']['get']('Users')['me'];for(const _0x50bf00 of this['getSuggestions']()){if(_0x50bf00['author']['id']!=_0x59b912['id'])continue;if('formatBlock'!=_0x50bf00['type']||_0x50bf00['data']['formatGroupId']!=_0x1ef784['formatGroupId'])continue;if(!Qt(_0x50bf00,_0x572645))continue;const _0x2058d6=_0x50bf00['subType']==_0x28a9fa;for(let _0x32145f=0x0;_0x32145f<_0x299bfd['length'];_0x32145f++){const _0x423a1d=_0x299bfd[_0x32145f];for(const _0x513284 of _0x50bf00['getMarkers']()){const _0x3a8ad9=_0x513284['getRange']();if(_0x423a1d['isEqual'](_0x3a8ad9)){_0x2058d6?(_0x299bfd['splice'](_0x32145f,0x1),_0x32145f--):_0x50bf00['removeMarker'](_0x513284['name']);break;}}}}if(0x0==_0x299bfd['length'])return null;const _0xfe6997=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28a9fa,'join');for(const _0x598501 of this['getSuggestions']())if(_0x598501['author']['id']==_0x59b912['id']&&'formatBlock'==_0x598501['type']&&_0x598501['data']['formatGroupId']==_0x1ef784['formatGroupId']&&_0x598501['subType']==_0x28a9fa&&Qt(_0x598501,_0x572645)&&(_0xfe6997(_0x598501['getRanges'](),_0x299bfd)||_0xfe6997(_0x299bfd,_0x598501['getRanges']()))){for(const _0x2fb8c8 of _0x299bfd)_0x598501['addRange'](_0x2fb8c8);return _0x598501;}const _0x401b4b=_0x4cb0f7(),_0x5429fc=_0x59b912['id'],_0x4fe9d0='formatBlock:'+_0x28a9fa,_0x1cbe16=this['_setSuggestionData']({'id':_0x401b4b,'type':_0x4fe9d0,'data':_0x1ef784,'createdAt':new Date(),'authorId':_0x5429fc,'attributes':_0x572645});for(const _0x24193c of _0x299bfd)this['_addSuggestionMarker'](_0x4fe9d0,_0x401b4b,_0x5429fc,_0x24193c,u['getMultiRangeId']());return _0x1cbe16;}['markDeletion'](_0x5ccf1c,_0x2df8d4=null,_0xc74fd8={}){if(_0x5ccf1c['isCollapsed'])return null;const _0x2d9359=this['editor']['plugins']['get']('Users')['me'],_0x5217f3=new _0x46ccca(_0x5ccf1c['start'],_0x5ccf1c['end']);for(const {suggestion:_0xdaa26a,meta:_0x411648}of this['_findSuggestions'](_0x5217f3,'insertion'))if(_0x411648['isOwn']&&!_0x411648['isNextTo']){if(_0xdaa26a['isMultiRange']){const _0x5cf8c9=_0xdaa26a['getRanges']()['filter'](_0x14460a=>'$graveyard'!=_0x14460a['root']['rootName']);_0x5cf8c9['every'](_0x517015=>_0x5217f3['containsRange'](_0x517015,!0x0))&&_0xdaa26a['discard']();if(_0x5cf8c9['some'](_0xd83b57=>_0xd83b57['containsRange'](_0x5217f3,!0x0))){const _0x356138=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2df8d4,'accept');return this['forceDefaultExecution'](()=>_0x356138([_0x5217f3],null,_0xc74fd8)),null;}}else{const _0x41ace5=_0x5217f3['getIntersection'](_0xdaa26a['getFirstRange']());null!==_0x41ace5&&_0xdaa26a['_onDiscard']([_0x41ace5],null,_0xc74fd8);}}if(_0x5217f3['detach'](),_0x5217f3['isCollapsed']||'$graveyard'==_0x5217f3['root']['rootName'])return null;let _0x22cd7a=null,_0x3b4a56=_0x5217f3['start'],_0x355529=_0x5217f3['end'];const _0x16f1dc=this['_findSuggestions'](_0x5217f3,'deletion');for(const {suggestion:_0x28ca73,meta:_0x5c7e04}of _0x16f1dc){const _0x42597c=this['_model']['createRange'](_0x3b4a56,_0x355529);if(_0x5c7e04['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c7e04['containsRangeInObject']&&!_0x5c7e04['isInsideObject'])){if(_0x28ca73['isMultiRange']){if(!Qt(_0x28ca73,_0xc74fd8))continue;let _0x321ac5=!0x0;for(const _0x2b4bee of _0x28ca73['getRanges']()){if(_0x2b4bee['containsRange'](_0x42597c,!0x0))return _0x28ca73;_0x42597c['containsRange'](_0x2b4bee)||(_0x321ac5=!0x1);}_0x321ac5&&_0x28ca73['discard']();}else{const _0x1281ab=_0x28ca73['getFirstRange']();if(_0x1281ab['containsRange'](_0x42597c,!0x0))return _0x28ca73;if(!Qt(_0x28ca73,_0xc74fd8)){_0x42597c['containsRange'](_0x1281ab)?_0x28ca73['removeMarkers']():_0x1281ab['containsPosition'](_0x3b4a56)?_0x3b4a56=_0x1281ab['end']:_0x1281ab['containsPosition'](_0x355529)&&(_0x355529=_0x1281ab['start']);continue;}_0x3b4a56=_0x3b4a56['isBefore'](_0x1281ab['start'])?_0x3b4a56:_0x1281ab['start'],_0x355529=_0x355529['isAfter'](_0x1281ab['end'])?_0x355529:_0x1281ab['end'],_0xc74fd8=Object['assign']({},_0x28ca73['attributes']),_0x22cd7a?_0x1281ab['start']['isBefore'](_0x22cd7a['getFirstRange']()['start'])?(_0x22cd7a['removeMarkers'](),_0x22cd7a=_0x28ca73):_0x28ca73['removeMarkers']():_0x22cd7a=_0x28ca73;}}}if(_0x22cd7a)return this['_setSuggestionRange'](_0x22cd7a,this['_model']['createRange'](_0x3b4a56,_0x355529)),_0x22cd7a;{const _0x546de2=_0x4cb0f7(),_0x44d8b3=this['_model']['createRange'](_0x3b4a56,_0x355529),_0x41afd4=_0x2d9359['id'],_0x257dd6=_0x2df8d4?'deletion:'+_0x2df8d4:'deletion',_0x3b775b=this['_setSuggestionData']({'id':_0x546de2,'type':_0x257dd6,'createdAt':new Date(),'authorId':_0x41afd4,'attributes':_0xc74fd8});return this['_addSuggestionMarker'](_0x257dd6,_0x546de2,_0x41afd4,_0x44d8b3),_0x3b775b;}}['markMultiRangeDeletion'](_0x557182,_0x305837='multi',_0x5f34f1={}){const _0xe70119=this['editor']['plugins']['get']('Users')['me'],_0x1c0c41=_0x557182['map'](_0x452701=>new _0x46ccca(_0x452701['start'],_0x452701['end'])),_0x3b2f6c=new Set();for(const {suggestion:_0x5f23f2,meta:_0x1d1abc}of this['_findSuggestions'](_0x1c0c41,'insertion'))_0x1d1abc['isOwn']&&!_0x1d1abc['isNextTo']&&_0x3b2f6c['add'](_0x5f23f2);for(const _0x3ead9b of _0x3b2f6c)if(_0x3ead9b['isMultiRange']){const _0x14bacc=_0x3ead9b['getRanges']();(!_0x3ead9b['attributes']||!_0x3ead9b['attributes']['skipNestingCheck'])&&(_0x14bacc['every'](_0x5d4e44=>_0x1c0c41['some'](_0x492f6b=>_0x492f6b['containsRange'](_0x5d4e44,!0x0)))&&_0x3ead9b['discard']());if(_0x1c0c41['every'](_0xc11acb=>_0x14bacc['some'](_0x5255c6=>_0x5255c6['containsRange'](_0xc11acb,!0x0)))){const _0x556482=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x305837,'accept');return this['forceDefaultExecution'](()=>_0x556482(_0x557182,null,_0x5f34f1)),null;}}else{const _0x40b8c8=_0x3ead9b['getFirstRange']();_0x1c0c41['some'](_0x530f7f=>_0x530f7f['containsRange'](_0x40b8c8,!0x0))&&_0x3ead9b['discard']();if(_0x1c0c41['every'](_0x321c0a=>_0x40b8c8['containsRange'](_0x321c0a,!0x0))){const _0x4067b4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x305837,'accept');return this['forceDefaultExecution'](()=>_0x4067b4(_0x1c0c41,null,_0x5f34f1)),null;}}const _0x3db994=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x305837,'join');let _0x49af33=null;for(const _0x2e058e of this['getSuggestions']())if(_0x2e058e['author']['id']==_0xe70119['id']&&_0x2e058e['isInContent']&&'deletion'==_0x2e058e['type']&&_0x2e058e['subType']==_0x305837&&Qt(_0x2e058e,_0x5f34f1)&&(_0x3db994(_0x2e058e['getRanges'](),_0x1c0c41)||_0x3db994(_0x1c0c41,_0x2e058e['getRanges']()))){if(_0x49af33){if(_0x2e058e['commentThread']&&_0x2e058e['commentThread']['length'])continue;for(const _0x523b2c of _0x2e058e['getRanges']())_0x49af33['isIntersectingWithRange'](_0x523b2c)||_0x49af33['addRange'](_0x523b2c);_0x2e058e['removeMarkers']();}else{_0x49af33=_0x2e058e;for(const _0x51ce54 of _0x1c0c41)_0x2e058e['isIntersectingWithRange'](_0x51ce54)||_0x2e058e['addRange'](_0x51ce54);}}if(_0x49af33)return _0x49af33;_0x3b2f6c['clear']();for(const {suggestion:_0x5d006,meta:_0x18df9f}of this['_findSuggestions'](_0x1c0c41,'deletion'))_0x18df9f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x18df9f['containsRangeInObject']&&!_0x18df9f['isInsideObject'])&&Qt(_0x5d006,_0x5f34f1)&&_0x3b2f6c['add'](_0x5d006);for(const _0x29756b of _0x3b2f6c){const _0x4b840a=_0x29756b['getRanges']();if(!_0x5f34f1||!_0x5f34f1['skipNestingCheck']){if(_0x1c0c41['every'](_0x368eb8=>_0x4b840a['some'](_0x2c1a7d=>_0x2c1a7d['containsRange'](_0x368eb8,!0x0))))return _0x29756b;}(!_0x29756b['attributes']||!_0x29756b['attributes']['skipNestingCheck'])&&(_0x4b840a['every'](_0x5b13dc=>_0x1c0c41['some'](_0x27fd04=>_0x27fd04['containsRange'](_0x5b13dc,!0x0)))&&_0x29756b['discard']());}const _0x702068=_0x4cb0f7(),_0x460c0e=_0xe70119['id'],_0x43e2a7='deletion:'+_0x305837,_0x1a8011=this['_setSuggestionData']({'id':_0x702068,'type':_0x43e2a7,'createdAt':new Date(),'authorId':_0x460c0e,'attributes':_0x5f34f1});for(const _0x15a0cc of _0x1c0c41)_0x15a0cc['detach'](),_0x15a0cc['isCollapsed']||'$graveyard'==_0x15a0cc['root']['rootName']||this['_addSuggestionMarker'](_0x43e2a7,_0x702068,_0x460c0e,_0x15a0cc,u['getMultiRangeId']());return _0x1a8011;}['markAttributeChange'](_0x147f5d,_0x3f1ecd,_0xe1e604,_0x458907,_0x3e80bf){if(_0x147f5d['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3bf3b3=this['editor']['plugins']['get']('Users')['me']['id'],_0x59d64f=Array['from'](this['_suggestions']['values']())['filter'](_0x18caaa=>'attribute'==_0x18caaa['type']&&_0x18caaa['data']['key']==_0x3f1ecd&&_0x18caaa['isIntersectingWithRange'](_0x147f5d));if('default'===this['_trackFormatChanges']){const _0x103ff1=this['_findSuggestions'](_0x147f5d,'insertion')['filter'](({meta:_0x59a536})=>_0x59a536['isOwn']&&!_0x59a536['isInsideObject']&&!_0x59a536['isNextTo'])['map'](({suggestion:_0x127fd7})=>_0x127fd7);_0x59d64f['unshift'](..._0x103ff1);}const _0x563814=new Map([[_0x147f5d,_0xe1e604]]);for(const _0x5687da of _0x59d64f){const _0x193cc9='attribute'==_0x5687da['type']?_0x5687da['data']['oldValue']:void 0x0,_0x434e9e=_0x5687da['getFirstRange'](),_0x30ec99=Array['from'](_0x563814['keys']())['find'](_0x1e823b=>_0x1e823b['isIntersecting'](_0x434e9e));if(!_0x30ec99)continue;const _0x9b0282=_0x30ec99['getDifference'](_0x434e9e);this['_isBlockAttribute'](_0x3f1ecd)&&'insertion'==_0x5687da['type']&&0x0!=_0x9b0282['length']||(_0x563814['delete'](_0x30ec99),_0x9b0282['forEach'](_0x2601d4=>{_0x563814['set'](_0x2601d4,_0xe1e604);}),'insertion'!=_0x5687da['type']&&_0x193cc9!=_0x458907&&_0x563814['set'](_0x30ec99['getIntersection'](_0x434e9e),_0x193cc9));}const _0x311981=[];for(const [_0x4ff1f5,_0x11bee5]of _0x563814){const _0x488961=_0x4cb0f7(),_0x23dbfe={'key':_0x3f1ecd,'oldValue':_0x11bee5,'newValue':_0x458907};_0x3f1ecd['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':_0x3f1ecd});const _0x572834=('attribute:'+(_0x3f1ecd+'|'+Jt({'newValue':_0x458907})))['substring'](0x0,0x3c),_0x4d21e9=this['_setSuggestionData']({'id':_0x488961,'type':_0x572834,'data':_0x23dbfe,'createdAt':new Date(),'authorId':_0x3bf3b3,'attributes':_0x3e80bf});_0x311981['push'](_0x4d21e9),this['_addSuggestionMarker'](_0x572834,_0x488961,_0x3bf3b3,_0x4ff1f5);}return _0x311981;}['enableDefaultAttributesIntegration'](_0x5e3066){this['enableCommand'](_0x5e3066,(_0x34076b,..._0x2f0d26)=>{this['_recordAttributeChanges'](()=>{_0x34076b(..._0x2f0d26);});});}['registerBlockAttribute'](_0x2816ed){this['_blockAttributeKeys']['add'](_0x2816ed);}['registerInlineAttribute'](_0x412245){this['_inlineAttributeKeys']['add'](_0x412245);}['_getAttributeKey'](_0x202119){return'attribute'==_0x202119['type']?_0x202119['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x36a75e,_0x2144d9){const _0x250ee1=_0x36a75e['getFirstMarker']();this['_model']['change'](_0x4d36a5=>{_0x4d36a5['updateMarker'](_0x250ee1,{'range':_0x2144d9});});}['_addThreadToSuggestion'](_0x3931e8){const _0x3f6c75=_0x3931e8['id'],_0x2b8731=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3f6c75)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2b8731,'threadId':_0x3f6c75,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x196208=this['_commentsRepository']['getCommentThread'](_0x3f6c75);_0x196208['unbind']('isRemovable'),_0x196208['isRemovable']=!0x1,_0x3931e8['commentThread']=_0x196208;}['_checkSuggestionCorrectness'](_0x3d81c7,_0x3705be,_0x5bdc66,_0x1980af){if(_0x3d81c7['type']!=_0x3705be||_0x3d81c7['subType']!=_0x5bdc66||_0x3d81c7['creator']['id']!=_0x1980af)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x513467('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x277e2c,_0x378145){const _0x14483c=_0x277e2c['getFirstRange']();if(_0x378145['isEqual'](_0x14483c))_0x277e2c['removeMarkers']();else{if(_0x14483c['containsRange'](_0x378145)){const _0x29ebbe=this['_model']['createPositionAt'](_0x378145['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x277e2c,this['_model']['createRange'](_0x14483c['start'],_0x29ebbe));const _0x91052d=_0x4cb0f7(),_0x4bd7c2=_0x277e2c['creator']['id'],_0xaf6ab7=_0x277e2c['type']+':'+_0x277e2c['subType'];this['_setSuggestionData']({'id':_0x91052d,'type':_0xaf6ab7,'createdAt':new Date(),'authorId':_0x4bd7c2,'data':_0x277e2c['data'],'attributes':_0x277e2c['attributes']});const _0x24171b=this['_model']['createPositionAt'](_0x378145['end']['parent'],'after'),_0x141d09=this['_model']['createRange'](_0x24171b,_0x14483c['end']);this['_addSuggestionMarker'](_0xaf6ab7,_0x91052d,_0x4bd7c2,_0x141d09);}else{if(_0x14483c['containsPosition'](_0x378145['start'])){const _0x136064=this['_model']['createPositionAt'](_0x378145['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x277e2c,this['_model']['createRange'](_0x14483c['start'],_0x136064));}else{const _0x5cb12d=this['_model']['createPositionAt'](_0x378145['end']['parent'],'after');this['_setSuggestionRange'](_0x277e2c,this['_model']['createRange'](_0x5cb12d,_0x14483c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5ecc2e){for(const {suggestion:_0x1563e5,meta:_0x24be4e}of this['_findSuggestions'](_0x5ecc2e,'insertion')){if(!_0x24be4e['isOwn'])continue;const _0x19942b=_0x1563e5['getRanges']();for(const _0x546de4 of _0x19942b)if(!_0x5ecc2e['getDifference'](_0x546de4)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x47f1e9){const _0x552008=this['editor']['plugins']['get']('Users')['getUser'](_0x47f1e9);if(!_0x552008)throw new _0x513467('track-changes-user-not-found',this);return _0x552008;}['_getExternalAuthor'](_0x1aebd4){const _0x1d3e55=this['editor']['plugins']['get']('Users'),_0x1dad52=_0x219677('external:'+_0x1aebd4),_0x44b6cb=_0x1d3e55['getUser'](_0x1dad52);return _0x44b6cb||_0x1d3e55['addUser']({'id':_0x1dad52,'name':_0x1aebd4});}['_createSuggestion'](_0x540e39,_0x324cef,_0xbb2e5f,_0x2df522,_0x498218){const _0x28a7a9=this['_getAuthorFromId'](_0x2df522),_0x2941a9=this['_suggestionFactory']['buildSuggestion'](_0x540e39,_0x324cef,_0xbb2e5f,_0x28a7a9,_0x498218,_0x4c760f=>{this['_updateSuggestionData'](_0xbb2e5f,{'attributes':_0x4c760f});const _0x571e87=this['getSuggestion'](_0xbb2e5f);this['_joinWithAdjacentSuggestions'](new Set([_0x571e87])),this['_refreshSuggestionsChain'](new Set([_0x571e87]));});return this['listenTo'](_0x2941a9,'accept',()=>{this['_updateSuggestionData'](_0xbb2e5f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2941a9,'discard',()=>{this['_updateSuggestionData'](_0xbb2e5f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xbb2e5f,_0x2941a9),this['_suggestionState']['set'](_0x2941a9,'notReady'),_0x2941a9;}['_splitMarkerName'](_0x1848e9){const _0x2a77db=_0x1848e9['split'](':');return{'group':_0x2a77db[0x0],'type':_0x2a77db[0x1],'subType':_0x2a77db['length']>=0x5?_0x2a77db[0x2]:null,'id':_0x2a77db['length']<0x5?_0x2a77db[0x2]:_0x2a77db[0x3],'authorId':_0x2a77db['length']<0x5?_0x2a77db[0x3]:_0x2a77db[0x4],'markerCount':0x6==_0x2a77db['length']?_0x2a77db[0x5]:null};}['_breakSuggestionMarker'](_0x53af59,_0x2fb1ea,_0x5c4590){const _0x4220da=_0x53af59['getFirstRange'](),_0x19e790=_0x4220da['start'],_0x553a9b=_0x4220da['end'];this['_setSuggestionRange'](_0x53af59,this['_model']['createRange'](_0x19e790,_0x2fb1ea));const _0x9188c1=_0x4cb0f7(),_0x1d94d0=_0x53af59['creator']['id'],_0x59d6e7=_0x53af59['type']+(_0x53af59['subType']?':'+_0x53af59['subType']:'');this['_setSuggestionData']({'id':_0x9188c1,'type':_0x59d6e7,'createdAt':new Date(),'authorId':_0x1d94d0,'originalSuggestionId':_0x53af59['id'],'attributes':_0x53af59['attributes'],'data':_0x53af59['data']});const _0x25f11a=this['_getAttributeKey'](_0x53af59);('formatBlock'==_0x53af59['type']||_0x25f11a&&this['_isBlockAttribute'](_0x25f11a))&&(_0x5c4590=this['_model']['createPositionBefore'](_0x5c4590['parent'])),this['_addSuggestionMarker'](_0x59d6e7,_0x9188c1,_0x1d94d0,this['_model']['createRange'](_0x5c4590,_0x553a9b));}['_findSuggestions'](_0xae4e2e,_0x39601a=null){const _0x5aea92=[],_0x16d3de=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xae4e2e)||(_0xae4e2e=[_0xae4e2e]);for(const _0x5b3d37 of this['getSuggestions']()){if(!_0x5b3d37['isInContent'])continue;if(_0x39601a&&_0x5b3d37['type']!=_0x39601a)continue;let _0x4ff2d0=!0x1;for(const _0x386cdd of _0x5b3d37['getRanges']()){for(const _0x7e2f86 of _0xae4e2e){const _0x49a576=_0x7e2f86['start']['isEqual'](_0x386cdd['end'])||_0x7e2f86['end']['isEqual'](_0x386cdd['start']);if(_0x49a576||_0x7e2f86['getIntersection'](_0x386cdd)){const _0xb19385=_0x7e2f86['containsRange'](_0x386cdd)&&Gt(this['_model']['schema'],_0x386cdd['start'],_0x7e2f86),_0x5a8654=_0x386cdd['containsRange'](_0x7e2f86)&&Gt(this['_model']['schema'],_0x7e2f86['start'],_0x386cdd);_0x5aea92['push']({'suggestion':_0x5b3d37,'meta':{'isOwn':_0x16d3de==_0x5b3d37['author'],'isNextTo':_0x49a576,'isInsideObject':_0xb19385,'containsRangeInObject':_0x5a8654}}),_0x4ff2d0=!0x0;break;}}if(_0x4ff2d0)break;}}return _0x5aea92;}['_addSuggestionMarker'](_0x19d3c4,_0x279ce8,_0x1b268d,_0xaba4ef,_0x404fab){this['_model']['change'](_0x572a05=>{let _0xbd7c8a='suggestion:'+_0x19d3c4+':'+_0x279ce8+':'+_0x1b268d;_0x404fab&&(_0xbd7c8a=_0xbd7c8a+':'+_0x404fab),_0x572a05['addMarker'](_0xbd7c8a,{'range':_0xaba4ef,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xa264a7){const _0x5b4ff1=_0xa264a7['previous'],_0x55a73a=_0xa264a7['next'];_0xa264a7['previous']=null,_0xa264a7['next']=null,null!=_0x5b4ff1&&_0x5b4ff1['next']==_0xa264a7&&(_0x5b4ff1['next']=_0x55a73a),null!=_0x55a73a&&_0x55a73a['previous']==_0xa264a7&&(_0x55a73a['previous']=_0x5b4ff1),'ready'==this['_suggestionState']['get'](_0xa264a7)&&(this['_suggestionState']['set'](_0xa264a7,'removed'),this['fire']('suggestionUnloaded',_0xa264a7,_0x5b4ff1,_0x55a73a));}['_setSuggestionData'](_0xf5a430){const _0x52fb7e=_0xf5a430['id'],_0x2296d3=this['addSuggestionData'](_0xf5a430);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4e2bcd=this['editor']['plugins']['get']('PendingActions'),_0x96fa1c=_0x2296d3['hasComments'],_0x395db0=_0x2296d3['subType']?_0x2296d3['type']+':'+_0x2296d3['subType']:_0x2296d3['type'],_0x15e72b=this['editor']['locale'],_0x1fc2ba=_0x4e2bcd['add'](o(_0x15e72b,'PENDING_ACTION_SUGGESTION')),_0x398ed2={'id':_0x52fb7e,'type':_0x395db0,'hasComments':_0x96fa1c,'data':_0xf5a430['data']||null,'originalSuggestionId':_0xf5a430['originalSuggestionId']||null,'attributes':_0x2296d3['attributes']};this['_adapter']['addSuggestion'](_0x398ed2)['then'](_0x3e9d5c=>{_0x2296d3['_saved']=!0x0,_0x4e2bcd['remove'](_0x1fc2ba),_0x3e9d5c&&_0x3e9d5c['createdAt']&&(this['_suggestions']['get'](_0x52fb7e)['createdAt']=_0x3e9d5c['createdAt']);})['catch'](_0x205092=>{throw _0x2270a7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2296d3['discard']();}),_0x2296d3['stopListening'](),this['_suggestions']['delete'](_0x2296d3['id']),this['_suggestionState']['delete'](_0x2296d3),_0x205092;});}return _0x2296d3;}['_isBlockAttribute'](_0x2b44c9){return this['_blockAttributeKeys']['has'](_0x2b44c9);}['_updateSuggestionData'](_0x129b85,_0x5b4071){const _0x2bc48c=this['editor']['plugins']['get']('PendingActions'),_0xd00f98=this['getSuggestion'](_0x129b85);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xd00f98['_saved']){const _0x607e97=_0x2bc48c['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x129b85,_0x5b4071)['then'](()=>{_0x2bc48c['remove'](_0x607e97);});}else _0xd00f98['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x129b85,_0x5b4071);});}}['_getSuggestionData'](_0x10c052){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x513467('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x10c052);}['_handleNewSuggestionMarker'](_0x492ce8){const {id:_0x3e4ee5,type:_0x58c4f6,subType:_0x579653,authorId:_0x2d61ee}=this['_splitMarkerName'](_0x492ce8),_0x4f72ff=this['_suggestions']['get'](_0x3e4ee5)||this['_createSuggestion'](_0x58c4f6,_0x579653,_0x3e4ee5,_0x2d61ee,{});switch(this['_checkSuggestionCorrectness'](_0x4f72ff,_0x58c4f6,_0x579653,_0x2d61ee),this['_suggestionState']['get'](_0x4f72ff)){case'notReady':this['_getSuggestionData'](_0x3e4ee5)['then'](_0x3585a4=>{let _0x86a4c2=Promise['resolve']();_0x3585a4['hasComments']&&(_0x86a4c2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e4ee5})),_0x86a4c2['then'](()=>{this['addSuggestionData'](_0x3585a4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4f72ff,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e4ee5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4f72ff,'ready'),this['fire']('suggestionLoaded',_0x4f72ff);break;case'ready':this['fire']('suggestionChanged',_0x4f72ff);}return _0x4f72ff['addMarkerName'](_0x492ce8),_0x4f72ff;}['_refreshSuggestionsChain'](_0xab2be2){const _0x5d5c15=Array['from'](_0xab2be2),_0x6deff6=_0x5d5c15['filter'](_0x77eaef=>'attribute'==_0x77eaef['type']);this['_refreshAttributeSuggestionsChain'](_0x6deff6);const _0x5e226d=_0x5d5c15['filter'](_0x26ffde=>!_0x26ffde['isMultiRange']&&'attribute'!=_0x26ffde['type']),_0x4e0e09=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eadad=>!_0x2eadad['isMultiRange']&&'attribute'!=_0x2eadad['type']),_0xb25fe5=_0x4e0e09['filter'](_0xb3119=>!_0xab2be2['has'](_0xb3119)),_0x229e43=new Map(_0x4e0e09['map'](_0x792d5f=>[_0x792d5f,this['_suggestionFactory']['getSuggestionCallback'](_0x792d5f['type'],_0x792d5f['subType'],'chain')])),_0x453231=new Map(_0x4e0e09['map'](_0x40fc71=>[_0x40fc71,_0x40fc71['getFirstRange']()])),_0x27405a=new Set(),_0xc86453=new Set();for(let _0x4f338e=0x0;_0x4f338e<_0x5e226d['length'];_0x4f338e++)_0x5e7d27(_0x5e226d[_0x4f338e],_0x5e226d,_0x4f338e+0x1);for(let _0x2768a9=0x0;_0x2768a9<_0x5e226d['length'];_0x2768a9++)_0x5e7d27(_0x5e226d[_0x2768a9],_0xb25fe5,0x0);const _0x3a12b9=new Set();for(let _0x3daf62=0x0;_0x3daf62<_0x5e226d['length'];_0x3daf62++){const _0x14b5e2=_0x5e226d[_0x3daf62];!_0xc86453['has'](_0x14b5e2)&&_0x14b5e2['previous']&&(_0x3a12b9['add'](_0x14b5e2['previous']),_0x14b5e2['previous']['next']===_0x14b5e2&&(_0x14b5e2['previous']['next']=null),_0x14b5e2['previous']=null),!_0x27405a['has'](_0x14b5e2)&&_0x14b5e2['next']&&(_0x3a12b9['add'](_0x14b5e2['next']),_0x14b5e2['next']['previous']===_0x14b5e2&&(_0x14b5e2['next']['previous']=null),_0x14b5e2['next']=null);}function _0x5e7d27(_0x400218,_0x529068,_0x1c6a6a){for(let _0x44fb36=_0x1c6a6a;_0x44fb36<_0x529068['length'];_0x44fb36++){const _0x941d16=_0x2d96b6(_0x400218,_0x529068[_0x44fb36]);_0x941d16&&(_0x941d16[0x0]['next']=_0x941d16[0x1],_0x941d16[0x1]['previous']=_0x941d16[0x0],_0x27405a['add'](_0x941d16[0x0]),_0xc86453['add'](_0x941d16[0x1]));}}function _0x2d96b6(_0x43fce8,_0x3d2e24){if(_0x43fce8['author']['id']!==_0x3d2e24['author']['id'])return null;const _0x4c38d6=_0x229e43['get'](_0x43fce8)(_0x43fce8,_0x3d2e24,_0x453231['get'](_0x43fce8),_0x453231['get'](_0x3d2e24));if(!_0x4c38d6)return null;return _0x229e43['get'](_0x3d2e24)(_0x43fce8,_0x3d2e24,_0x453231['get'](_0x43fce8),_0x453231['get'](_0x3d2e24))?_0x4c38d6[0x1]['commentThread']&&_0x4c38d6[0x1]['commentThread']['length']?null:_0x4c38d6:null;}_0x3a12b9['size']&&this['_refreshSuggestionsChain'](_0x3a12b9);}['_refreshAttributeSuggestionsChain'](_0x3a17bb){if(0x0==_0x3a17bb['length'])return;const _0x3a84f7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2a9855=>'attribute'==_0x2a9855['type']&&_0x2a9855['_isDataLoaded']),_0x5ad9d1=[],_0x50a601=new Map();for(const _0x21561f of _0x3a84f7){const _0x419fb4=_0x219677(_0x21561f['attributes']);_0x50a601['has'](_0x419fb4)||(_0x50a601['set'](_0x419fb4,_0x5ad9d1['length']),_0x5ad9d1['push']([]));const _0x19f77b=_0x50a601['get'](_0x419fb4);_0x5ad9d1[_0x19f77b]['push'](_0x21561f);}!(function(){_0x5ad9d1['sort']((_0x510e0b,_0x1b92e8)=>{const _0x47c07a=_0x510e0b[0x0]['createdAt'],_0x34be1a=_0x1b92e8[0x0]['createdAt'];return _0x47c07a==_0x34be1a?_0x510e0b[0x0]['attributes']['groupId']<_0x1b92e8[0x0]['attributes']['groupId']?-0x1:0x1:_0x47c07a<_0x34be1a?-0x1:0x1;});for(const _0x136a93 of _0x5ad9d1)_0x136a93['sort']((_0x358edc,_0x3b3d17)=>_0x358edc['id']<_0x3b3d17['id']?-0x1:0x1);}());for(let _0x181088=0x0;_0x181088<_0x5ad9d1['length'];_0x181088++){if(0x0==_0x5ad9d1[_0x181088]['length'])continue;const _0x21cead=[];for(let _0x39fb42=_0x181088+0x1;_0x39fb42<_0x5ad9d1['length'];_0x39fb42++)0x0!=_0x5ad9d1[_0x39fb42]['length']&&_0x376269(_0x5ad9d1[_0x181088],_0x5ad9d1[_0x39fb42])&&_0x21cead['push'](_0x39fb42);for(const _0x5aff30 of _0x21cead)_0x5ad9d1[_0x181088]=_0x5ad9d1[_0x181088]['concat'](_0x5ad9d1[_0x5aff30]),_0x5ad9d1[_0x5aff30]=[];}for(const _0x50927f of _0x5ad9d1)for(let _0x2ab132=0x0;_0x2ab132<_0x50927f['length'];_0x2ab132++){const _0x5aa83a=_0x50927f[_0x2ab132+0x1]||null;_0x50927f[_0x2ab132]['next']!==_0x5aa83a&&(_0x50927f[_0x2ab132]['next']=_0x5aa83a);}for(const _0x2b7b24 of _0x5ad9d1)for(let _0x5aa705=0x0;_0x5aa705<_0x2b7b24['length'];_0x5aa705++){const _0x4142d9=_0x2b7b24[_0x5aa705-0x1]||null;_0x2b7b24[_0x5aa705]['previous']!==_0x4142d9&&(_0x2b7b24[_0x5aa705]['previous']=_0x4142d9);}function _0x376269(_0x525ccb,_0x3da05f){if(_0x525ccb[0x0]['attributes']['groupId']!==_0x3da05f[0x0]['attributes']['groupId']&&_0x525ccb[0x0]['author']!==_0x3da05f[0x0]['author'])return!0x1;if(!function(_0xa9a036,_0x2c7a1b){if(!_0xa9a036['hasComments']&&!_0x2c7a1b['hasComments'])return!0x0;if(_0xa9a036['hasComments']&&_0x2c7a1b['hasComments'])return!0x1;if(_0xa9a036['hasComments']&&_0x2c7a1b['createdAt']<_0xa9a036['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2c7a1b['hasComments']&&_0xa9a036['createdAt']<_0x2c7a1b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x525ccb[0x0],_0x3da05f[0x0]))return!0x1;const _0x14f65f=Vt(_0x525ccb[0x0]['attributes'],'groupId'),_0x57a7c9=Vt(_0x3da05f[0x0]['attributes'],'groupId');if(!_0xb83315(_0x14f65f,_0x57a7c9))return!0x1;return!!_0x525ccb['every'](_0x46628b=>_0x3da05f['some'](_0x10dafe=>_0x46628b['getFirstRange']()['isEqual'](_0x10dafe['getFirstRange']())))&&_0x3da05f['every'](_0x413edd=>_0x525ccb['some'](_0x340a3e=>_0x413edd['getFirstRange']()['isEqual'](_0x340a3e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x35d550){const _0xe3b588=Array['from'](_0x35d550),_0x2ae48b=this['getSuggestions']({'skipNotAttached':!0x0}),_0xfbf563=_0x2ae48b['filter'](_0x3bd1e9=>!_0x35d550['has'](_0x3bd1e9)),_0x1a4765=new Map(_0xe3b588['map'](_0x4be073=>[_0x4be073,this['_suggestionFactory']['getSuggestionCallback'](_0x4be073['type'],_0x4be073['subType'],'join')])),_0x4df57d=new Map(_0x2ae48b['map'](_0x420f60=>[_0x420f60,_0x420f60['getRanges']()]));for(let _0x1a0077=0x0;_0x1a0077<_0xe3b588['length'];_0x1a0077++){if(_0x3901cb(this,_0xe3b588[_0x1a0077],_0xe3b588,_0x1a0077+0x1))return!0x0;}for(let _0xb66f7d=0x0;_0xb66f7d<_0xe3b588['length'];_0xb66f7d++){if(_0x3901cb(this,_0xe3b588[_0xb66f7d],_0xfbf563,0x0))return!0x0;}return!0x1;function _0x3901cb(_0x39a8c9,_0x27cf2b,_0x2140af,_0x3ebd51){for(let _0x52c94f=_0x3ebd51;_0x52c94f<_0x2140af['length'];_0x52c94f++){const _0x57970d=_0x2140af[_0x52c94f];if(_0x57970d['type']!==_0x27cf2b['type']||_0x57970d['author']['id']!==_0x27cf2b['author']['id']||_0x57970d['subType']!==_0x27cf2b['subType'])continue;if(!Wt(_0x27cf2b,_0x57970d))continue;if('attribute'==_0x27cf2b['type']&&_0x27cf2b['data']['oldValue']!=_0x57970d['data']['oldValue'])continue;if('attribute'==_0x27cf2b['type']&&_0x39a8c9['_isBlockAttribute'](_0x27cf2b['data']['key']))continue;if('formatBlock'==_0x27cf2b['type']){const _0x2e7d78=_0x39a8c9['editor']['model'],_0x56c891=_0x27cf2b['getContainedElement']();if(_0x56c891&&(_0x2e7d78['schema']['isObject'](_0x56c891)||_0x2e7d78['schema']['isLimit'](_0x56c891)))continue;}const _0x5cd2af=_0x1a4765['get'](_0x27cf2b),_0x3b8281=_0x4df57d['get'](_0x27cf2b),_0x266919=_0x4df57d['get'](_0x57970d),_0x8b9680=_0x27cf2b['commentThread']&&_0x27cf2b['commentThread']['length'],_0x37e55f=_0x57970d['commentThread']&&_0x57970d['commentThread']['length'];if(!_0x8b9680&&_0x5cd2af(_0x266919,_0x3b8281))return _0x39a8c9['_joinSuggestions'](_0x57970d,_0x27cf2b),_0x4df57d['delete'](_0x27cf2b),!0x0;if(!_0x37e55f&&_0x5cd2af(_0x3b8281,_0x266919))return _0x39a8c9['_joinSuggestions'](_0x27cf2b,_0x57970d),_0x4df57d['delete'](_0x57970d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x46707b,_0x13d748){if(_0x46707b['isMultiRange']){for(const _0x499d54 of _0x13d748['getRanges']())_0x46707b['addRange'](_0x499d54);}else{const _0x5ef9ea=_0x13d748['getFirstRange']()['end'];this['_setSuggestionRange'](_0x46707b,this['_model']['createRange'](_0x46707b['getFirstRange']()['start'],_0x5ef9ea));}_0x13d748['removeMarkers']();}['_getMarkerAnnouncementText'](_0x52ec49,_0x53799a,_0x2d89a6){const _0x1665a3=_0x52ec49['startsWith']('format')||_0x52ec49['startsWith']('attribute')?'FORMATTING':_0x52ec49['toUpperCase']();return o(this['editor']['locale'],_0x53799a+'_'+_0x1665a3+'_SUGGESTION_ANNOUNCEMENT',_0x2d89a6);}['_initAriaMarkerChangeAnnouncements'](){const _0x384915=this['editor'];if(!_0x384915['ui'])return;const {ariaLiveAnnouncer:_0x26113a}=_0x384915['ui'];_0x1ec577(this['_model'],({left:_0x4a6491,entered:_0x370de5})=>{for(const _0x2540ca of _0x4a6491){const {group:_0x223725,type:_0x4c6fea}=this['_splitMarkerName'](_0x2540ca['name']);if('suggestion'===_0x223725){_0x26113a['announce'](this['_getMarkerAnnouncementText'](_0x4c6fea,'LEAVE'));break;}}for(const _0x3d479f of _0x370de5){const {group:_0x2f05fe,type:_0x432bb4}=this['_splitMarkerName'](_0x3d479f['name']);if('suggestion'===_0x2f05fe){_0x26113a['announce'](this['_getMarkerAnnouncementText'](_0x432bb4,'ENTER',_0x35947c(_0x5cac3d)));break;}}});}['_processAttributeChanges'](_0x5dc7f4){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf24417=this['editor'],_0x1fb8b8=_0xf24417['model']['document']['differ']['getChanges']();if(0x0==_0x1fb8b8['length'])return!0x1;const _0xcd880=[],_0x2327a0=_0x1fb8b8['filter'](_0x58ef1d=>'attribute'==_0x58ef1d['type']),_0xf96bb4=_0x1fb8b8['filter'](_0x4ef1ed=>'insert'==_0x4ef1ed['type']&&'$text'!=_0x4ef1ed['name']),_0x2b45ec=_0x1fb8b8['filter'](_0x13efa6=>'remove'==_0x13efa6['type']&&'$text'!=_0x13efa6['name']);for(const _0xb901d5 of _0x2327a0)_0xcd880['push']({'key':_0xb901d5['attributeKey'],'newValue':_0xb901d5['attributeNewValue'],'oldValue':_0xb901d5['attributeOldValue'],'range':qt(_0xb901d5['range'],_0xf24417['model'])});for(const _0x4bdfa9 of _0xf96bb4){const _0x53f2db=_0x2b45ec['find'](_0x447603=>_0x447603['position']['isEqual'](_0x4bdfa9['position']));_0x53f2db&&_0xcd880['push']({'key':m,'newValue':_0x4bdfa9['name'],'oldValue':_0x53f2db['name'],'range':_0xf24417['model']['createRangeOn'](_0x4bdfa9['position']['nodeAfter'])});}return 0x0!=_0xcd880['length']&&this['_reduceExistingSuggestions'](_0x5dc7f4,_0xcd880);}['_processAttributeSuggestions'](_0x4a17c3){let _0x24a902=!0x1;const _0x28925b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xd1749e=>_0xd1749e['data']['newRange']&&_0xd1749e['name']['startsWith']('suggestion:attribute:'));for(const _0x252207 of _0x28925b){const {subType:_0x2009a3,id:_0x80d4ea}=this['_splitMarkerName'](_0x252207['name']),_0x3158fa=_0x2009a3['split']('|')[0x0];for(const _0x5ac055 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5ac055['id']!=_0x80d4ea&&'attribute'==_0x5ac055['type']&&_0x5ac055['data']&&_0x5ac055['data']['key']==_0x3158fa&&_0x5ac055['getFirstRange']()['isIntersecting'](_0x252207['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5ac055,_0x252207['data']['newRange'],_0x4a17c3),_0x24a902=!0x0);}return _0x24a902;}['_recordAttributeChanges'](_0x564444){this['_recordAttributeSuggestions']=!0x0,_0x564444();}['_isRegisteredAttribute'](_0x3aebab){const _0x575efd=this['_isBlockAttribute'](_0x3aebab),_0x16b25b=this['_inlineAttributeKeys']['has'](_0x3aebab);return _0x575efd||_0x16b25b;}['_reduceExistingSuggestions'](_0x5418cc,_0x172552){if(0x0==_0x172552['length'])return!0x1;let _0x54b48f=!0x1;for(const _0x231fa8 of _0x172552){const _0x4102ca=this['_findSuggestions'](_0x231fa8['range'],'attribute')['filter'](_0x222b08=>!_0x222b08['meta']['isNextTo'])['map'](_0x41e482=>_0x41e482['suggestion']),_0x4a70f6=_0x219677({'newValue':_0x231fa8['newValue']});_0x4102ca['filter'](_0x4c3c31=>{const [_0x2f01a4,_0x1702db]=_0x4c3c31['subType']['split']('|');return _0x2f01a4==_0x231fa8['key']&&_0x1702db!=_0x4a70f6;})['forEach'](_0x1b17e5=>{this['_reduceSuggestionAttributeRange'](_0x1b17e5,_0x231fa8['range'],_0x5418cc),_0x54b48f=!0x0;});}return _0x54b48f;}['_reduceSuggestionAttributeRange'](_0x55399d,_0x34d5e9,_0x287598){const _0x8e367d=_0x55399d['getFirstRange']()['getDifference'](_0x34d5e9);0x0!==_0x8e367d['length']?0x1!==_0x8e367d['length']?this['_breakSuggestionMarker'](_0x55399d,_0x34d5e9['start'],_0x34d5e9['end']):this['_setSuggestionRange'](_0x55399d,_0x8e367d[0x0]):_0x287598['removeMarker'](_0x55399d['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x575d4b){this['_editor']=_0x575d4b,this['_model']=_0x575d4b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x54d75a,_0xa19b17,_0x3e5638,_0x37aef1,_0x93b0b2,_0x3fcc4c){return new u(this['_model'],{'type':_0x54d75a,'subType':_0xa19b17,'id':_0x3e5638,'author':_0x37aef1,'creator':_0x37aef1,'attributes':_0x93b0b2,'onAttributesChange':_0x3fcc4c,'onAccept':(..._0x405b2d)=>this['getSuggestionCallback'](_0x54d75a,_0xa19b17,'accept')(..._0x405b2d),'onDiscard':(..._0x26b3f4)=>this['getSuggestionCallback'](_0x54d75a,_0xa19b17,'discard')(..._0x26b3f4)});}['registerCustomCallback'](_0x2c5056,_0x41d7a9,_0xd21ea7,_0x14dcbf){const _0x18b9bc=_0x2c5056+':'+_0x41d7a9+':'+_0xd21ea7;this['_customCallbacks']['set'](_0x18b9bc,_0x14dcbf);}['getSuggestionCallback'](_0x2722bf,_0x4a0aee,_0x533318){const _0xe2294b=_0x2722bf+':'+_0x4a0aee+':'+_0x533318;return this['_customCallbacks']['get'](_0xe2294b)||this['_defaultCallbacks']['get'](_0x2722bf+':'+_0x533318);}['_registerDefaultCallbacks'](){const _0x5aba71=()=>!0x1,_0x4e2476=_0x4229cf=>{_0x4229cf['sort']((_0x4f076f,_0x553751)=>_0x4f076f['start']['isBefore'](_0x553751['start'])?0x1:-0x1),this['_model']['change'](_0x595688=>{for(const _0x35ccc1 of _0x4229cf){let _0x50b46a;_0x50b46a=_0x35ccc1['end']['isAtEnd']&&_0x35ccc1['end']['parent']==_0x35ccc1['start']['nodeAfter']?_0x595688['createSelection'](_0x35ccc1['start']['nodeAfter'],'on'):_0x595688['createSelection'](_0x35ccc1),this['_model']['deleteContent'](_0x50b46a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x46e9f1=(_0x7c0ffa,_0x3ec3cc)=>{_0x3ec3cc&&this['_model']['change'](_0x71b3a3=>{const {commandName:_0x5d954c,commandParams:_0x384910=[]}=_0x3ec3cc,_0x58675c=_0x7c0ffa['map'](_0xaca949=>(Ft(_0xaca949)&&(_0xaca949=this['_model']['createRange'](_0xaca949['end'])),_0xaca949))['filter'](_0x5b972f=>'$graveyard'!==_0x5b972f['root']['rootName']);if(_0x58675c['length']<0x1)return;const _0x28596c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x366606=>_0x46ccca['fromRange'](_0x366606));_0x71b3a3['setSelection'](_0x58675c);for(const _0x1d90ce of this['_editor']['commands']['commands']())_0x1d90ce['refresh']();_0x384910['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5d954c,..._0x384910);const _0x450b20=_0x28596c['filter'](_0x3f0a19=>'$graveyard'!=_0x3f0a19['root']['rootName']);_0x450b20['length']>0x0&&_0x71b3a3['setSelection'](_0x450b20);for(const _0x225ed1 of _0x28596c)_0x225ed1['detach']();});},_0xbfa083=(_0x358c97,_0xb93bf8)=>0x1==_0x358c97['length']&&0x1==_0xb93bf8['length']&&_0x358c97[0x0]['end']['isEqual'](_0xb93bf8[0x0]['start']),_0x4069e0=(_0x2fc9f2,_0x3f30ce,_0xc76a48,_0x23fd68)=>Kt(_0x2fc9f2,_0x3f30ce,_0xc76a48,_0x23fd68)?[_0x2fc9f2,_0x3f30ce]:Kt(_0x3f30ce,_0x2fc9f2,_0x23fd68,_0xc76a48)?[_0x3f30ce,_0x2fc9f2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5aba71),this['_defaultCallbacks']['set']('insertion:discard',_0x4e2476),this['_defaultCallbacks']['set']('insertion:join',_0xbfa083),this['_defaultCallbacks']['set']('insertion:chain',_0x4069e0),this['_defaultCallbacks']['set']('deletion:accept',_0x4e2476),this['_defaultCallbacks']['set']('deletion:discard',_0x5aba71),this['_defaultCallbacks']['set']('deletion:join',_0xbfa083),this['_defaultCallbacks']['set']('deletion:chain',_0x4069e0),this['_defaultCallbacks']['set']('formatInline:accept',_0x46e9f1),this['_defaultCallbacks']['set']('formatInline:discard',_0x5aba71),this['_defaultCallbacks']['set']('formatInline:join',_0xbfa083),this['_defaultCallbacks']['set']('formatInline:chain',_0x5aba71),this['_defaultCallbacks']['set']('formatBlock:accept',_0x46e9f1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5aba71),this['_defaultCallbacks']['set']('formatBlock:join',_0xbfa083),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5aba71),this['_defaultCallbacks']['set']('attribute:accept',_0x5aba71),this['_defaultCallbacks']['set']('attribute:discard',(_0x1dbaa5,_0x1eb952)=>{if(!_0x1eb952)return;const _0x2d976a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x9b65fb=>{if(_0x1eb952['key']==m)for(const _0x12baa8 of _0x1dbaa5){const _0x4af20c=_0x12baa8['start']['nodeAfter'],_0x4f74cf=_0x1eb952['oldValue'];_0x9b65fb['rename'](_0x4af20c,_0x4f74cf);}else{if(_0x2d976a['_isBlockAttribute'](_0x1eb952['key'])){for(const _0x2ace68 of _0x1dbaa5)void 0x0!==_0x1eb952['oldValue']?_0x9b65fb['setAttribute'](_0x1eb952['key'],_0x1eb952['oldValue'],_0x2ace68['start']['nodeAfter']):_0x9b65fb['removeAttribute'](_0x1eb952['key'],_0x2ace68['start']['nodeAfter']);}else{for(const _0x5242e5 of _0x1dbaa5)_0x1eb952['oldValue']?_0x9b65fb['setAttribute'](_0x1eb952['key'],_0x1eb952['oldValue'],_0x5242e5):_0x9b65fb['removeAttribute'](_0x1eb952['key'],_0x5242e5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xbfa083);}}function Gt(_0x58a058,_0x52e167,_0x49e85f){for(const _0x4fdf8e of _0x52e167['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4fdf8e['root']==_0x4fdf8e)return!0x1;if(!_0x49e85f['containsItem'](_0x4fdf8e))return!0x1;if(_0x58a058['isObject'](_0x4fdf8e)||_0x58a058['isLimit'](_0x4fdf8e))return!0x0;}return!0x1;}function Ft(_0x7f7837){return _0x7f7837['end']['parent']==_0x7f7837['start']['nodeAfter']&&_0x7f7837['end']['isAtStart'];}function Lt(_0x35fa99,_0x1eff99,_0x25483c,_0x4cf21d){const _0x3e003e=_0x57032f=>!_0x57032f['item']['is']('$textProxy')&&!_0x4cf21d['isObject'](_0x57032f['item']),_0x2ea7fd=_0x35fa99['start']['getLastMatchingPosition'](_0x3e003e),_0x35236a=_0x35fa99['end']['getLastMatchingPosition'](_0x3e003e,{'direction':'backward'});return(!_0x35fa99['start']['isEqual'](_0x2ea7fd)||!_0x35fa99['end']['isEqual'](_0x35236a))&&(_0x2ea7fd['isBefore'](_0x35236a)?_0x25483c['updateMarker'](_0x1eff99,{'range':_0x25483c['createRange'](_0x2ea7fd,_0x35236a)}):_0x25483c['removeMarker'](_0x1eff99),!0x0);}function Jt(_0x2a9bd9){return _0x219677(_0x2a9bd9);}function Ht(_0x4bccbe){const _0x11d942=_0x4bccbe['start']['nodeAfter'];return _0x11d942&&_0x11d942['is']('element');}function qt(_0x4b0550,_0x138ee5){return null==_0x4b0550['end']['nodeBefore']&&_0x4b0550['end']['parent']==_0x4b0550['start']['nodeAfter']?zt(_0x4b0550['start']['nodeAfter'],_0x138ee5):_0x4b0550;}function zt(_0x281c20,_0x2d3f38){const _0x26504d=_0x2d3f38['schema']['isObject'](_0x281c20)||_0x2d3f38['schema']['isSelectable'](_0x281c20);return _0x2d3f38['createRange'](_0x2d3f38['createPositionAt'](_0x281c20,'before'),_0x26504d?_0x2d3f38['createPositionAfter'](_0x281c20):_0x2d3f38['createPositionAt'](_0x281c20,'end'));}function Kt(_0x104666,_0x47bd40,_0x17d29b,_0x4092c6){return!!Wt(_0x104666,_0x47bd40)&&_0x17d29b['end']['isEqual'](_0x4092c6['start']);}function Wt(_0x5835f8,_0x38d7e9){if(!_0x5835f8['_isDataLoaded']||!_0x38d7e9['_isDataLoaded'])return!0x1;const _0x44e980=new Set(Object['keys'](_0x5835f8['attributes'])),_0x1d7803=new Set(Object['keys'](_0x38d7e9['attributes']));if(_0x44e980['delete']('groupId'),_0x1d7803['delete']('groupId'),0x0==_0x44e980['size']&&0x0==_0x1d7803['size'])return!0x0;if(_0x44e980['size']!=_0x1d7803['size'])return!0x1;const _0x1d96dc={..._0x5835f8['attributes']},_0x8081e6={..._0x38d7e9['attributes']};return delete _0x1d96dc['groupId'],delete _0x8081e6['groupId'],JSON['stringify'](_0x1d96dc)==JSON['stringify'](_0x8081e6);}function Qt(_0xf5d95d,_0x1e5e69){const _0x31a155=Xt(_0xf5d95d['attributes']),_0x12086a=Xt(_0x1e5e69);if(!_0xf5d95d['_isDataLoaded'])return!0x1;for(const _0x2a660e of Object['keys'](_0x12086a))if(!_0xb83315(_0x31a155[_0x2a660e],_0x12086a[_0x2a660e]))return!0x1;return!0x0;}function Xt(_0x500cba){const _0x43e900=Object['assign']({},_0x500cba);return delete _0x43e900['skipNestingCheck'],delete _0x43e900['tablePasteChainId'],_0x43e900;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x547d43(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x36c226,_0x4ef54d,_0x8401cc,_0x5e3c71){super(),this['model']=_0x4ef54d,this['view']=_0x8401cc,this['commentThreadController']=_0x5e3c71,this['_editor']=_0x36c226,this['_acceptCommand']=_0x36c226['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x36c226['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4ccc52,_0x361a56)=>_0x4ccc52||_0x361a56),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1b80c1=>_0x1b80c1&&this['_editor']['model']['canEditAt'](_0x4ef54d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x40c5af=>_0x40c5af&&this['_editor']['model']['canEditAt'](_0x4ef54d['getRanges']())),this['_pendingAction']=null,_0x8401cc['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x8401cc,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x8401cc,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x8401cc,'change:isDirty',()=>{_0x8401cc['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 _0x162bd9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x162bd9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x24eb8e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x25d591,_0x5a5360,_0x3ef285,_0x1b6cb7){super(_0x25d591),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4c6d49(_0x25d591,o(_0x25d591,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5a5360['authoredAt']),this['bind']('authoredAt')['to'](_0x5a5360),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',_0x5a5360,'authoredAt',this,'descriptionParts',(_0x4f7f46,_0x5f1fbe,_0x2e1268)=>{const _0x373548=_0x2e1268['map'](_0x28d5b3=>cs(_0x28d5b3['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4f7f46-0x1,_0x5a5360['author']['name'],_0x5f1fbe?_0x1b6cb7['formatDateTime'](_0x5f1fbe):'',new DOMParser()['parseFromString'](_0x373548,'text/html')['body']['textContent']]);}),this['focusables']=new _0x587e28(),this['focusTracker']=new _0xcccd4d(),this['keystrokes']=new _0x583cd7(),this['focusCycler']=new _0x537a3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x31910d=>_0x31910d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5a5360,this['_localUser']=_0x3ef285,this['_config']=_0x1b6cb7,_0x1b6cb7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5b69db(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x36f2f9}=this['_config'];this['commentsListView']=new _0x36f2f9(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',_0x23aa86=>_0x23aa86+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3379f2,_0x40833f)=>_0x3379f2||!!_0x40833f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x8969e5}=this['_config'],_0x738835=new _0x8969e5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xdec614=_0x738835['commentInputView'];return _0x738835['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xdec614,'value',(_0x162ee6,_0x4bf042,_0x2be23c)=>!!_0x2be23c||_0x162ee6&&!_0x4bf042),_0xdec614['on']('submit',(_0x2dda5b,_0x54adc7)=>{this['fire']('addComment',_0x54adc7),_0xdec614['editor']['setData']('');}),_0xdec614['on']('cancel',()=>this['focus']()),_0xdec614['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x738835;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x4ec094,_0x35057e,_0x453ab9,_0x199fd6){super(_0x4ec094,_0x35057e,_0x453ab9,_0x199fd6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x26b742=>_0x26b742&&_0x26b742[0x0]?_0x26b742[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x415b3d,_0x415745)=>{let _0xb2a19c='';for(const _0x381af8 of _0x415b3d)_0xb2a19c+='<p>'+cs(_0x381af8['content'],_0x381af8['color'])+'</p>';return _0x415745?_0xb2a19c:_0x2fa37d(_0xb2a19c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x199fd6['SuggestionView'](_0x4ec094,_0x35057e,{'formatDateTime':_0x199fd6['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 _0xc58a26=this['bindTemplate'],_0xf39d63=[this['suggestionView']];return this['commentsListView']&&_0xf39d63['push'](this['commentsListView']),this['commentThreadInputView']&&_0xf39d63['push'](this['commentThreadInputView']),_0xf39d63['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xc58a26['if']('isActive','ck-suggestion-wrapper--active'),_0xc58a26['to']('type',_0x4e33fd=>'ck-suggestion-'+_0x4e33fd),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':_0xc58a26['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xf39d63};}['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 _0x24eb8e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4c5b6f,_0x453e51,_0x2417d5){super(_0x4c5b6f),this['_model']=_0x453e51,this['_config']=_0x2417d5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x453e51),this['acceptButton']=this['_createButton'](o(_0x4c5b6f,'Accept\x20suggestion'),_0x510c9c['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4c5b6f,'Discard\x20suggestion'),_0x510c9c['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xe887fb(_0x4c5b6f,_0x453e51['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x587e28([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xcccd4d(),this['keystrokes']=new _0x583cd7(),this['focusCycler']=new _0x537a3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4e7b15=>_0x4e7b15['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x882833=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x882833['innerHTML']=this['description'],this['on']('change:description',(_0x4fbc82,_0x5584fa,_0x1dfb91)=>{_0x882833['innerHTML']=_0x1dfb91;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x226291=this['bindTemplate'],_0x53f395=[{'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':_0x226291['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x226291['to']('authoredAt',_0x3e7624=>this['_config']['formatDateTime'](_0x3e7624))}]}]},{'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']&&_0x53f395['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':_0x53f395}]};}['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'](_0x24356c,_0x150356,_0x373c7a,_0x4ae002,_0x35678a){const _0x5e39cf=new _0x38174c(this['locale']);return _0x5e39cf['set']({'label':_0x24356c,'icon':_0x150356,'tooltip':!0x0,'tooltipPosition':_0x35678a}),_0x5e39cf['extendTemplate']({'attributes':{'class':_0x373c7a}}),_0x5e39cf['on']('execute',()=>{this['fire'](_0x4ae002,this['_model']['id']);}),_0x5e39cf;}['_setupKeyboardNavigation'](){const _0x546ac2=this['element'];this['keystrokes']['listenTo'](_0x546ac2);for(const _0x53277e of this['focusables'])this['focusTracker']['add'](_0x53277e['element']),this['keystrokes']['listenTo'](_0x53277e['element']);this['keystrokes']['set']('enter',(_0x3c9ee8,_0x2acd44)=>{_0x546ac2===_0x3c9ee8['target']&&(this['focusCycler']['focusFirst'](),_0x2acd44());}),this['keystrokes']['set']('esc',(_0x58e187,_0x4bf36e)=>{_0x546ac2!==_0x58e187['target']&&(this['focus'](),_0x4bf36e());});}}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 _0x350409{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1c2827,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x182a49){super(_0x182a49),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x411005=this['editor']['config'];_0x411005['define']('trackChanges.SuggestionThreadView',pe),_0x411005['define']('trackChanges.SuggestionView',fe),_0x411005['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x411005['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x30e1b4,_0x33d6cd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1c82dc,_0x138f3b]of this['_handleControllerBuffer']){const _0x7e3fbe=this['_suggestionToController']['has'](_0x1c82dc);_0x7e3fbe||_0x138f3b?_0x7e3fbe&&_0x138f3b&&this['_destroyController'](_0x1c82dc):this['_initializeController'](_0x1c82dc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x30e1b4,_0x33d6cd);}['init'](){const _0x1f6401=this['editor'],_0x4d4c95=_0x1f6401['plugins']['get']('TrackChangesEditing'),_0x4a931b=_0x1f6401['plugins']['get']('Annotations'),_0x2d4027=_0x1f6401['plugins']['get']('EditorAnnotations'),_0xbc8dc=_0x1f6401['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2d4027['addSourceCollector'](()=>{const _0x30059d=[];for(const [_0x34f54d,_0x5e4295]of Array['from'](this['_suggestionToController'])){const _0x38a0cf=_0x34f54d['getAllAdjacentSuggestions'](),_0x476ce9=[];for(const _0x3f1d02 of _0x38a0cf){if(!_0x3f1d02['isInContent'])continue;if(_0x3f1d02['isMultiRange']){_0x476ce9['push'](..._0x3f1d02['getRanges']());continue;}const _0x167a85=_0x3f1d02['getFirstRange']();if(_0x476ce9['length']>0x0){const _0x10f17b=_0x476ce9[0x0]['getJoined'](_0x167a85);if(_0x10f17b){_0x476ce9[0x0]=_0x10f17b;continue;}}_0x476ce9['push'](_0x167a85);}_0x30059d['push']([_0x5e4295['view'],_0x476ce9]);}return _0x30059d;}),this['listenTo'](_0x4d4c95,'suggestionLoaded',(_0x483a3b,_0x26978e)=>{this['listenTo'](_0x26978e,'change:previous',(_0x52a4df,_0x2f2671,_0x30b33a,_0x361a8b)=>{_0x26978e['isInContent']&&(null==_0x30b33a?(this['_updateController'](_0x361a8b['head']),this['_handleSuggestionControllerDelayed'](_0x26978e,!0x1)):(this['_updateController'](_0x30b33a['head']),null==_0x361a8b&&this['_handleSuggestionControllerDelayed'](_0x26978e,!0x0)));}),null!==_0x26978e['previous']?this['_updateController'](_0x26978e['head']):this['_handleSuggestionControllerDelayed'](_0x26978e,!0x1);}),this['listenTo'](_0x4d4c95,'suggestionUnloaded',(_0x408846,_0x382b1b,_0x47bfc3)=>{this['stopListening'](_0x382b1b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x382b1b),this['_suggestionToController']['has'](_0x382b1b)&&this['_destroyController'](_0x382b1b),_0x47bfc3&&this['_updateController'](_0x47bfc3['head']);}),this['listenTo'](_0x4d4c95,'suggestionChanged',(_0x25088c,_0x4b554f)=>{this['_updateController'](_0x4b554f);}),this['listenTo'](_0x4a931b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xbc8dc,'addComment',(_0x4fc907,{threadId:_0x1b5c1c,isFromAdapter:_0xb90023})=>{if(_0xb90023||!_0x4d4c95['hasSuggestion'](_0x1b5c1c))return;const _0x36c43b=_0x4d4c95['getSuggestion'](_0x1b5c1c);this['_suggestionToController']['get'](_0x36c43b)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x58195f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2a767b;for(const _0x454c31 in _0x58195f){const _0x1925c7=_0x454c31,_0x23c33b=_0x58195f[_0x1925c7];if('trackChangesLicenseKeyValid'==_0x23c33b||'trackChangesLicenseKeyInvalid'==_0x23c33b||'trackChangesLicenseKeyExpired'==_0x23c33b||'trackChangesLicenseKeyDomainLimit'==_0x23c33b||'trackChangesLicenseKeyNotAllowed'==_0x23c33b||'trackChangesLicenseKeyEvaluationLimit'==_0x23c33b||'trackChangesLicenseKeyTrialLimit'==_0x23c33b||'trackChangesLicenseKeyUsageLimit'==_0x23c33b){delete _0x58195f[_0x1925c7],_0x2a767b=_0x23c33b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2a767b&&_0x58195f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2a767b&&_0x58195f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2a767b&&_0x58195f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2a767b&&_0x58195f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2a767b&&_0x58195f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2a767b&&_0x58195f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2a767b&&_0x58195f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x53c9a9=this['editor']['plugins']['get']('Annotations'),_0x3de7d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26bbb=Array['from'](_0x53c9a9['activeAnnotations'],_0x3d50ac=>_0x3d50ac['innerView'])['filter'](_0x303cd2=>this['_viewToController']['has'](_0x303cd2)),_0xcfdcd1=[];for(const _0xcead25 of _0x26bbb){const _0x11d227=this['_viewToController']['get'](_0xcead25)['model']['getAllAdjacentSuggestions']();_0xcfdcd1['push'](..._0x11d227['reduce']((_0x2e2c06,_0xe5914d)=>[..._0x2e2c06,..._0xe5914d['getMarkerNames']()],[]));}_0x3de7d3['activeMarkers']=_0xcfdcd1;}['_addUIComponentsToFactory'](){const _0x5aeca7=this['editor'],_0x2a5011=_0x5aeca7['locale'],_0x1b6dd6=o(_0x2a5011,'Track\x20changes'),_0x23af5b=new _0x389586([{'type':'switchbutton','model':new _0x9d3414({'withText':!0x0,'isToggleable':!0x0,'label':_0x1b6dd6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x9d3414({'withText':!0x0,'label':o(_0x2a5011,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9d3414({'withText':!0x0,'label':o(_0x2a5011,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9d3414({'withText':!0x0,'label':o(_0x2a5011,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x9d3414({'withText':!0x0,'label':o(_0x2a5011,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5aeca7['plugins']['has']('TrackChangesPreview')&&_0x23af5b['addMany']([{'type':'separator'},{'type':'button','model':new _0x9d3414({'withText':!0x0,'label':o(_0x2a5011,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x593e0b of _0x23af5b)if(ke(_0x593e0b)){const _0xb2c7ae=_0x5aeca7['commands']['get'](_0x593e0b['model']['commandName']);_0x593e0b['model']['bind']('isOn','isEnabled')['to'](_0xb2c7ae,'value','isEnabled');}_0x5aeca7['ui']['componentFactory']['add']('trackChanges',_0x5c41ba=>this['_createToolbarButton'](_0x5c41ba,_0x23af5b,_0x1b6dd6)),_0x5aeca7['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1cc4b2=>this['_createMenuBarMenu'](_0x1cc4b2,_0x23af5b,_0x1b6dd6));}['_createToolbarButton'](_0x542568,_0x26291a,_0x2b3099){const _0x1c52d1=_0x4e48fc(_0x542568,_0x5cb401),_0x2a27ce=this['editor']['commands']['get']('trackChanges');_0x1c52d1['buttonView']['set']({'tooltip':_0x2b3099,'label':_0x2b3099,'icon':we}),_0x1c52d1['buttonView']['bind']('isOn')['to'](_0x2a27ce,'value'),_0x1c52d1['buttonView']['on']('execute',()=>{_0x2a27ce['execute'](),this['editor']['editing']['view']['focus']();}),_0x49754f(_0x1c52d1,_0x26291a,{'role':'menu'});const _0xf95bad=[];for(const _0x58cee9 of _0x26291a)ke(_0x58cee9)&&_0xf95bad['push'](this['editor']['commands']['get'](_0x58cee9['model']['commandName']));const _0x304f72=_0x1c52d1['buttonView'];return _0x304f72['actionView']['unbind']('isEnabled'),_0x304f72['arrowView']['unbind']('isEnabled'),_0x304f72['actionView']['bind']('isEnabled')['to'](_0x2a27ce,'isEnabled'),_0x304f72['arrowView']['bind']('isEnabled')['toMany'](_0xf95bad,'isEnabled',(..._0x1eff8e)=>_0x1eff8e['some'](_0x1cd1f3=>_0x1cd1f3)),_0x1c52d1['on']('execute',_0x5597a6=>{this['editor']['execute'](_0x5597a6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1c52d1;}['_createMenuBarMenu'](_0x2ecce4,_0x21fcd9,_0x9ebd10){const _0x3e2530=new _0x2f46d6(_0x2ecce4),_0x2c1d67=this['editor']['commands']['get']('trackChanges');_0x3e2530['buttonView']['set']({'label':_0x9ebd10,'icon':we});const _0x4e026b=new _0x1599aa(_0x2ecce4);for(const _0x283278 of _0x21fcd9){if('separator'==_0x283278['type']){_0x4e026b['items']['add'](new _0x4c6d8a(_0x2ecce4));continue;}const _0x438c8e=new _0xc6c713(_0x2ecce4,_0x3e2530),_0x224aa4=new _0x15855e(_0x2ecce4),_0xa154c6=_0x283278['model'];_0x224aa4['bind'](...Object['keys'](_0xa154c6))['to'](_0xa154c6),_0x224aa4['delegate']('execute')['to'](_0x3e2530),_0x224aa4['on']('execute',()=>{this['editor']['execute'](_0xa154c6['commandName']),this['editor']['editing']['view']['focus']();}),_0x438c8e['children']['add'](_0x224aa4),_0x4e026b['items']['add'](_0x438c8e);}return _0x3e2530['bind']('isEnabled')['to'](_0x2c1d67,'isEnabled'),_0x3e2530['panelView']['children']['add'](_0x4e026b),_0x3e2530;}['_initializeController'](_0x34bb20){const _0x936669=this['editor'],_0xbf8dd2=_0x936669['config'],_0x47bfef=_0x936669['plugins']['get']('Annotations'),_0x4a9dcf=_0x936669['plugins']['get']('CommentsRepository'),_0x5e3e58=_0x936669['plugins']['get']('EditorAnnotations'),_0x111006=_0x936669['plugins']['get'](_0x1c2827)['me'],_0x4c9e95=_0xbf8dd2['get']('trackChanges')['SuggestionThreadView'],_0x28e0e1=_0xbf8dd2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1ad6c6,CommentThreadInputView:_0x25f585}=_0x936669['plugins']['get']('CommentsUI');let _0x596d10,_0x49e931,_0x4f6573;this['_annotationViews']['has'](_0x34bb20['id'])?(_0x49e931=this['_annotationViews']['get'](_0x34bb20['id']),_0x596d10=_0x49e931['mainView']):(_0x596d10=new _0x4c9e95(_0x936669['locale'],_0x34bb20,_0x111006,{'disableComments':this['_disableComments'],'editorConfig':{..._0xbf8dd2['get']('comments.editorConfig'),'licenseKey':_0xbf8dd2['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xbf8dd2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xbf8dd2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xbf8dd2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x181532(_0xbf8dd2['get']('locale')),'CommentView':_0xbf8dd2['get']('comments')['CommentView'],'CommentsListView':_0x1ad6c6,'CommentThreadInputView':_0x25f585,'SuggestionView':_0x28e0e1}),_0x596d10['suggestionView']['acceptButton']['on']('execute',()=>{_0x936669['editing']['view']['focus']();}),_0x596d10['suggestionView']['discardButton']['on']('execute',()=>{_0x936669['editing']['view']['focus']();}),_0x49e931=_0x47bfef['createAnnotationView'](this['editor']['locale'],_0x596d10),_0x49e931['bind']('isDirty')['to'](_0x596d10,'isDirty'),_0x49e931['bind']('length')['to'](_0x596d10),_0x49e931['bind']('type')['to'](_0x596d10,'type',_0xfb14ea=>'suggestion-'+_0xfb14ea),_0x596d10['on']('escape',()=>{_0x4f6573['fire']('escape');}),this['_annotationViews']['set'](_0x34bb20['id'],_0x49e931));const _0x129dac=_0x4a9dcf['createCommentThreadController'](_0x34bb20['commentThread'],_0x596d10),_0x57c018=new Ce(_0x936669,_0x34bb20,_0x596d10,_0x129dac),_0x2379b1=_0x34bb20['getAllAdjacentSuggestions']()['filter'](_0x5a191f=>_0x5a191f['isInContent']);_0x596d10['descriptionParts']=_0x936669['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2379b1),this['_suggestionToController']['set'](_0x34bb20,_0x57c018),this['_viewToController']['set'](_0x596d10,_0x57c018),_0x4f6573=_0x47bfef['createAnnotation']({'view':_0x49e931,'target':()=>{const _0x30f0ef=[],_0x36efb1=_0x34bb20['getAllAdjacentSuggestions']()['filter'](_0x4af63=>_0x4af63['isInContent']);for(const _0x526d80 of _0x36efb1)_0x30f0ef['push'](..._0x526d80['getMarkers']());return _0x5c6e7a(_0x936669['editing'],_0x30f0ef);},'type':()=>'suggestion-'+_0x57c018['view']['type']}),_0x4a9dcf['_bindAnnotationToEditors'](_0x596d10,_0x4f6573),_0x47bfef['add'](_0x4f6573),_0x5e3e58['registerAnnotation'](_0x4f6573);}['_destroyController'](_0x13c773){const _0x2ff604=this['editor']['plugins']['get']('CommentsRepository'),_0x520890=this['editor']['plugins']['get']('Annotations'),_0xed1ae2=this['_suggestionToController']['get'](_0x13c773),_0x3786f5=_0xed1ae2['view'],_0x49198e=_0x520890['getByInnerView'](_0x3786f5);_0x2ff604['_unbindEditors'](_0x3786f5),_0x49198e&&_0x520890['remove'](_0x49198e),this['_suggestionToController']['delete'](_0x13c773),this['_viewToController']['delete'](_0x3786f5),_0xed1ae2['destroy']();}['_updateController'](_0x214796){if(!_0x214796['isInContent']||!this['_suggestionToController']['has'](_0x214796))return;const _0x289135=this['editor']['plugins']['get']('TrackChangesEditing'),_0x578564=this['_suggestionToController']['get'](_0x214796),_0x220204=_0x214796['getAllAdjacentSuggestions']();_0x578564['view']['descriptionParts']=_0x289135['descriptionFactory']['getDescriptions'](_0x220204);}['destroy'](){for(const _0xd8d303 of this['_suggestionToController']['keys']())this['_destroyController'](_0xd8d303);for(const _0x52fe30 of this['_annotationViews']['values']())_0x52fe30['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x557a0d){return'model'in _0x557a0d;}class k extends _0x350409{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x394ec7){this['editor']['plugins']['get'](p)['adapter']=_0x394ec7;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x186376){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x186376);}['getSuggestions']({skipNotAttached:_0x583b58=!0x1,toJSON:_0x5e0220=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x583b58,'toJSON':_0x5e0220});}['getSuggestion'](_0x4c7fe7){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4c7fe7);}}const w=['Pagination'];class T extends _0x350409{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x443dd5=this['editor'];if(_0x443dd5['config']['define']('trackChangesData.editorCreator',_0x3e579c=>{const _0x100727=_0x443dd5['model']['document']['getRootNames']()['reduce']((_0x3f0e8f,_0x20f3a6)=>(_0x3f0e8f[_0x20f3a6]='',_0x3f0e8f),{});return _0x443dd5['constructor']['create'](_0x100727,_0x3e579c);}),'function'!=typeof _0x443dd5['config']['get']('trackChangesData')['editorCreator'])throw new _0x513467('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xd42312){return N(this['editor'],!0x0,_0xd42312);}['getDataWithDiscardedSuggestions'](_0x290189){return N(this['editor'],!0x1,_0x290189);}}class D extends _0x350409{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f22eb){function _0xedf3bd(_0xabb9a5){return _0xabb9a5['map'](_0x207609=>String['fromCharCode'](_0x207609))['join']('');}super(_0x2f22eb),this['result']='end',_0x2f22eb[_0xedf3bd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xedf3bd([0x76,0x69,0x65,0x77])][_0xedf3bd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xedf3bd([0x61,0x75,0x74,0x6f]),_0x2f22eb[_0xedf3bd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xedf3bd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xedf3bd([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xedf3bd([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xedf3bd([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(_0x23dcb0){return void 0x0!==_0x23dcb0['getRootsAttributes'];}async function N(_0x35835a,_0x123048,_0x466dea){const _0x15b354=_0x302ead(_0x35835a,w);_0x15b354['plugins']['push'](p,D),_0x15b354['rootsAttributes']=Fe(_0x35835a)?_0x35835a['getRootsAttributes']():void 0x0;const _0x36f592=document['createDocumentFragment'](),_0x1cf95a=_0x35835a['config']['get']('trackChangesData')['editorCreator'],_0xe38182=await _0x1cf95a(_0x15b354,()=>function(_0x4d3ecb){const _0x1deff1=document['createElement']('div');return _0x4d3ecb['appendChild'](_0x1deff1),_0x1deff1;}(_0x36f592));!function(_0x2e0912,_0x5f52a6){const _0x23205c=_0x2e0912['model']['document']['getRootNames']()['reduce']((_0x2fdd86,_0x3b2d58)=>(_0x2fdd86[_0x3b2d58]=_0x2e0912['data']['get']({'rootName':_0x3b2d58}),_0x2fdd86),{}),_0x5d158f=_0x2e0912['plugins']['get']('Users')['users']['map'](_0x4a43b3=>({'id':_0x4a43b3['id'],'name':_0x4a43b3['name']})),_0x467aff=_0x2e0912['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x53ca00=_0x2e0912['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xc88851=_0x5f52a6['plugins']['get']('Users'),_0xc74983=_0x5f52a6['plugins']['get']('TrackChangesEditing'),_0x32cdbb=_0x5f52a6['plugins']['get']('CommentsRepository');for(const _0xd6654a of _0x32cdbb['getCommentThreads']())_0xd6654a['remove']();for(const _0x4386dd of _0x5d158f)_0xc88851['getUser'](_0x4386dd['id'])||_0xc88851['addUser'](_0x4386dd);_0xc88851['me']||_0xc88851['useAnonymousUser']();for(const _0x47fbf7 of _0x53ca00)_0x32cdbb['addCommentThread'](_0x47fbf7);for(const _0x59c24a of _0x467aff)_0xc74983['addSuggestionData'](_0x59c24a);_0x5f52a6['data']['set'](_0x23205c);}(_0x35835a,_0xe38182),_0xe38182['execute'](_0x123048?'acceptAllSuggestions':'discardAllSuggestions');const _0x40e106=Fe(_0xe38182)?_0xe38182['getFullData'](_0x466dea):_0xe38182['data']['get'](_0x466dea);return await _0xe38182['destroy'](),_0x40e106;}class Me extends _0x24eb8e{['options'];constructor(_0x34f252,_0x4c48e1){super(_0x34f252),this['options']=_0x4c48e1,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'](_0x27dd2b,_0x28c256){if(!this['element'])return;const _0x1b0788=[];for(const [_0xe58ce1,_0x189ed6]of _0x27dd2b){const _0x444014=document['createElement']('div');_0x444014['setAttribute']('data-ck-root-name',_0xe58ce1),_0x444014['className']=_0x189ed6['classes']+'\x20ck-track-changes-preview__root-container',_0x444014['innerHTML']=_0x189ed6['content'],_0x1b0788['push'](_0x444014);}_0x28c256(this['element'],_0x1b0788),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x4db2bd){super(_0x4db2bd),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3ad18c=this['editor'],_0x604c61=_0x3ad18c['locale'],_0x1c6c12=_0x3ad18c['plugins']['get']('Dialog');let _0x52ed20;const _0x5caa1a=function(_0x4799d9){const _0x466f32={};if('editables'in _0x4799d9['ui']['view']){for(const [_0x27c0d8,_0x158805]of Object['entries'](_0x4799d9['ui']['view']['editables']))_0x466f32[_0x27c0d8]=_0x158805['element'];}else _0x466f32[_0x4799d9['model']['document']['getRootNames']()[0x0]]=_0x4799d9['ui']['view']['editable']['element'];return _0x466f32;}(_0x3ad18c),_0x17796b=function(_0x3a7681){let _0x24233c=0x0;for(const _0x3b4a30 of Object['values'](_0x3a7681))_0x24233c=Math['max'](_0x24233c,_0x3b4a30['getBoundingClientRect']()['width']);let _0x5463a8=0x0;for(const _0x28da4f of Object['values'](_0x3a7681))_0x5463a8+=_0x28da4f['getBoundingClientRect']()['height'];const _0x4ef1f6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3dfa94=Math['min'](_0x5463a8,_0x4ef1f6);return{'width':_0x24233c,'height':_0x3dfa94};}(_0x5caa1a);_0x1c6c12['show']({'id':'finalContentPreview','title':o(_0x604c61,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x604c61,{'dialogRects':_0x17796b}),'onHide':()=>{_0x52ed20['detachFromDom']();},'onShow':()=>{_0x3ad18c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x646007=>{const _0x2a9d5e=this['_standarizeRootsData'](_0x646007,_0x3ad18c,_0x5caa1a);_0x1c6c12['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2a9d5e,_0x3ad18c['config']['get']('trackChanges.preview.renderFunction'));}),_0x52ed20=new _0xc33cdc(_0x604c61,[_0x1c6c12['view']]),_0x52ed20['attachToDom'](),_0x52ed20['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3ad18c['once']('destroy',()=>{_0x52ed20['detachFromDom']();});const _0x1453f7=_0x1c6c12['view']['headerView']['class'];_0x1c6c12['view']['headerView']['class']=_0x1453f7?_0x1453f7+'\x20ck-reset_all':'ck-reset_all',_0x1c6c12['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1c6c12['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4bfe49=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x384b89=_0x4bfe49['previewMode'],_0x2e05b9={};if('$labels'===_0x384b89){for(const _0x4cd52b of _0x4bfe49['getMergeFieldsIds']())_0x2e05b9[_0x4cd52b]=_0x4bfe49['getLabel'](_0x4cd52b)||_0x4cd52b;}else{const _0x3fa586='$defaultValues'===_0x384b89?_0x4bfe49['getDefaultValues']():_0x4bfe49['getDataSetValues'](_0x384b89,!0x0);for(const _0x3214d1 of Object['entries'](_0x3fa586)){const [_0x5ca23e,_0x592533]=_0x3214d1;_0x2e05b9[_0x5ca23e]=null!==_0x592533?_0x592533:_0x4bfe49['getLabel'](_0x5ca23e)||_0x5ca23e;}}return{'mergeFieldsData':_0x2e05b9};}['_standarizeRootsData'](_0x127503,_0x59f79d,_0xf6782e){let _0x2f1e0f;if('string'==typeof _0x127503){const _0x3c3c15=_0x59f79d['model']['document']['getRootNames']()[0x0];_0x2f1e0f={[_0x3c3c15]:_0x127503};}else _0x2f1e0f=_0x127503;const _0x3ec910=this['_fixMediaEmbeds'](_0x2f1e0f,_0x59f79d),_0x3f5b79=function(_0x171825,_0x106a76){for(const [_0xe4831d,_0x5e0fda]of _0x171825)_0x5e0fda['classes']=_0x106a76[_0xe4831d]['classList']['value']['replace']('ck-focused','');return _0x171825;}(this['_sortRoots'](_0x59f79d)['reduce']((_0x21d5dc,_0x3617e0)=>(_0x21d5dc['push']([_0x3617e0,{'content':_0x3ec910[_0x3617e0],'classes':''}]),_0x21d5dc),[]),_0xf6782e);return _0x3f5b79;}['_fixMediaEmbeds'](_0x50d7e6,_0x51d04f){if(!_0x51d04f['plugins']['has']('MediaEmbedEditing'))return _0x50d7e6;const _0x55e15e=_0x51d04f['plugins']['get']('MediaEmbedEditing');for(const [_0x207eb1,_0x2c57fe]of Object['entries'](_0x50d7e6)){const _0x1b47ec=document['createElement']('div');_0x1b47ec['innerHTML']=_0x2c57fe,(_0x1b47ec['querySelectorAll']('figure.media')['forEach'](_0x253e82=>{const _0x572224=_0x253e82['querySelector']('oembed');if(_0x572224){const _0x5d5641=_0x572224['getAttribute']('url');if(_0x5d5641){const _0x4f44eb=_0x55e15e['registry']['getMediaViewElement'](new _0x2d8a0b(_0x51d04f['editing']['view']['document']),_0x5d5641,{'elementName':'','renderForEditingView':!0x0}),_0x21db34=document['createElement']('div');_0x21db34['classList']['add']('ck-media__wrapper'),_0x4f44eb['render'](_0x21db34,_0x51d04f['editing']['view']['domConverter']),_0x572224['replaceWith'](_0x21db34);}}}),_0x50d7e6[_0x207eb1]=_0x1b47ec['innerHTML']);}return _0x50d7e6;}['_sortRoots'](_0x26f03f){if(!function(_0xa61c8a){return void 0x0!==_0xa61c8a['getRootsAttributes'];}(_0x26f03f))return _0x26f03f['model']['document']['getRootNames']();const _0x16a30f=[],_0x97cdd4=new Map();for(const _0x5994ac of _0x26f03f['model']['document']['getRootNames']()){const _0x40e16f=_0x26f03f['editing']['view']['getDomRoot'](_0x5994ac)['getClientRects']()['item'](0x0);_0x16a30f['push'](_0x5994ac),_0x97cdd4['set'](_0x5994ac,_0x40e16f);}return _0x16a30f['sort']((_0x237630,_0x5f3d2f)=>{const _0x5c1d3c=_0x97cdd4['get'](_0x237630),_0x291d54=_0x97cdd4['get'](_0x5f3d2f);return _0x5c1d3c['y']-_0x291d54['y']||_0x5c1d3c['x']-_0x291d54['x'];}),_0x16a30f;}}class te extends _0x350409{static get['requires'](){return[T,_0x1c5e28];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b99ea){super(_0x5b99ea),_0x5b99ea['commands']['add']('previewFinalContent',new re(this['editor'])),_0x5b99ea['config']['define']('trackChanges.preview.renderFunction',(_0x5826f9,_0x421a4c)=>{for(const _0x26dfa3 of _0x421a4c)_0x5826f9['appendChild'](_0x26dfa3);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Yt,Plugin as _0x4a996f,PendingActions as _0x5495f9,icons as _0x5610c7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x27fd5b,ObservableMixin as _0x192914,uid as _0x13cee6,priorities as _0x1d18d2,insertToPriorityArray as _0x2d6dd0,logWarning as _0xa30105,getEnvKeystrokeText as _0x23b83b,FocusTracker as _0x1bde4e,KeystrokeHandler as _0x2a63d2,Collection as _0x55d64d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x126ad6,View as _0x299c1f,ViewCollection as _0x3b52c9,FocusCycler as _0x8de869,ViewModel as _0x539f8a,createDropdown as _0x11391c,SplitButtonView as _0x4490dc,addListToDropdown as _0x408e6f,MenuBarMenuView as _0x5937dd,MenuBarMenuListView as _0x2202cb,ListSeparatorView as _0x22e4a0,MenuBarMenuListItemView as _0x634c3,MenuBarMenuListItemButtonView as _0x3238a0,BodyCollection as _0x1cf521,Dialog as _0xc1630d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x28b017,hashObject as _0x400a99,surroundingMarkersDetector as _0x4dabea,FOCUS_ANNOTATION_KEYSTROKE as _0x5a4454,AriaDescriptionView as _0x44ec2e,setupThreadKeyboardNavigation as _0x24db98,trimHtml as _0x739f3,UserView as _0x1bb3b9,LateFocusButtonView as _0xfb9a83,getDateTimeFormatter as _0x3fed3a,getAllMarkersDomElementsSorted as _0x4ec61a,sanitizeEditorConfig as _0x43d7ca}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5224a3,LiveRange as _0x25ad8a,LivePosition as _0x471695,DowncastWriter as _0x1a9938}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x325a79,toWidget as _0x215dd1}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x2aa42c,set as _0x317ea9,isEqual as _0x198cb8,unset as _0x5ed120,omit as Vt}from'lodash-es';import{Delete as _0x1474d4,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x34de54,ShiftEnter as _0x3d14cd}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x3f06f0,_0x3588d6){super(_0x3f06f0),this['_enabledCommands']=_0x3588d6,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 _0x2842ed of this['editor']['commands']['commands']())_0x2842ed['affectsData']&&!this['_enabledCommands']['has'](_0x2842ed)&&_0x2842ed['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3913a8 of this['editor']['commands']['commands']())_0x3913a8['affectsData']&&!this['_enabledCommands']['has'](_0x3913a8)&&_0x3913a8['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x1daf98,_0x3cd98d){super(_0x1daf98),this['_suggestions']=_0x3cd98d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4115c3){const _0xd09fc7=this['_suggestions']['get'](_0x4115c3);if(!_0xd09fc7)throw new _0x27fd5b('track-changes-accept-suggestion-not-found',this);const _0x594371=_0xd09fc7['getRanges']();this['editor']['model']['canEditAt'](_0x594371)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd09fc7);}}class R extends Yt{['_suggestions'];constructor(_0x4d7d8e,_0xacc22){super(_0x4d7d8e),this['_suggestions']=_0xacc22,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x17b567){const _0x1f4969=this['_suggestions']['get'](_0x17b567);if(!_0x1f4969)throw new _0x27fd5b('track-changes-discard-suggestion-not-found',this);const _0x238387=_0x1f4969['getRanges']();this['editor']['model']['canEditAt'](_0x238387)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1f4969);}}function cs(_0x582c6e,_0x4b9ec6){let _0x578733='';return _0x578733+=_0x582c6e['split']('*')['map']((_0x4b20a4,_0x2695fa)=>_0x2695fa%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4b20a4)+'</span>':nn(_0x4b20a4))['join'](''),_0x4b9ec6&&(_0x578733+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4b9ec6['value']+'\x22\x20title=\x22'+_0x4b9ec6['title']+'\x22></span>'),_0x578733;}function nn(_0xceab90){const _0x131503=document['createElement']('span');return _0x131503['innerText']=_0xceab90,_0x131503['innerHTML'];}function Zt(_0x476e17){return _0x476e17['sort']((_0x2c6c9c,_0x2ee98e)=>'deletion'==_0x2c6c9c['type']&&'deletion'!=_0x2ee98e['type']?-0x1:'deletion'!=_0x2c6c9c['type']&&'deletion'==_0x2ee98e['type']?0x1:0x0);}function to(_0x11159c,_0x3f1895){let _0x20f618,_0x3d686c=0x0;const _0x4283a1=[],_0x30f493=_0x3f1895['schema'];for(;_0x3d686c<_0x11159c['length'];){const _0x3ba19e=_0x11159c[_0x3d686c],_0x3b5585=_0x11159c[_0x3d686c+0x1];_0x20f618||(_0x20f618=_0x3f1895['createPositionBefore'](_0x3ba19e)),on(_0x3f1895,_0x3ba19e,_0x3b5585)||(_0x4283a1['push'](_0x3f1895['createRange'](_0x20f618,_0x30f493['isObject'](_0x3ba19e)?_0x3f1895['createPositionAfter'](_0x3ba19e):_0x3f1895['createPositionAt'](_0x3ba19e,'end'))),_0x20f618=null),_0x3d686c++;}return _0x4283a1;}function on(_0x3fd88f,_0x12b341,_0x486751){if(!_0x486751)return!0x1;const _0x333abc=_0x3fd88f['createPositionAfter'](_0x12b341),_0x4a61f2=_0x3fd88f['createPositionBefore'](_0x486751);return _0x333abc['isTouching'](_0x4a61f2);}function ts(_0x2d3c1c,_0x375279,_0x3d58b7){for(;_0x3d58b7['length'];){const _0x1f71f0=_0x3d58b7['splice'](0x0,0x64);_0x2d3c1c['change'](()=>{for(const _0x5ca3dd of _0x1f71f0)_0x5ca3dd['isInContent']&&_0x375279['execute'](_0x5ca3dd['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x479e8,_0x2153b2,_0x5c1cf7){super(_0x479e8),this['_command']=_0x2153b2,this['_suggestions']=_0x5c1cf7,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2fa0d0=Array['from'](this['_suggestions']['values']())['some'](_0x58613f=>_0x58613f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2fa0d0;}['execute'](){const _0x576b80=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x5d972e of _0x576b80){const _0x21b954=_0x5d972e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x21b954))return;}ts(this['editor']['model'],this['_command'],_0x576b80);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xb483f4,_0x133f83,_0x3446e1){super(_0xb483f4),this['_command']=_0x133f83,this['_suggestions']=_0x3446e1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x244001=this['editor']['model']['document']['selection'],_0x49de6b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x47117b,_0x330a8c){const _0x31d492=Array['from'](_0x47117b['getRanges']()),_0x38a603=new Set();for(const _0x1efe99 of _0x330a8c)if(_0x1efe99['isInContent']){for(const _0x1d48ac of _0x31d492)for(const _0x2a9edc of _0x1efe99['getRanges']())(_0x1d48ac['isIntersecting'](_0x2a9edc)||_0x47117b['isCollapsed']&&!_0x1efe99['isMultiRange']&&_0x1efe99['next']&&_0x2a9edc['end']['isTouching'](_0x1d48ac['start']))&&_0x38a603['add'](_0x1efe99);}return _0x38a603;}(_0x244001,_0x49de6b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x50e3bb=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x24f29e of _0x50e3bb){const _0x3fe8e9=_0x24f29e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3fe8e9))return;}ts(this['editor']['model'],this['_command'],_0x50e3bb);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x192914(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x116c39,_0x2b6c7e){super(),this['id']=_0x2b6c7e['id'],this['type']=_0x2b6c7e['type'],this['subType']=_0x2b6c7e['subType']||null,this['author']=_0x2b6c7e['author'],this['creator']=_0x2b6c7e['creator']||_0x2b6c7e['author'],this['isExternal']=Boolean(_0x2b6c7e['attributes']&&_0x2b6c7e['attributes']['@external']),this['data']=null,this['_model']=_0x116c39,this['_onAccept']=_0x2b6c7e['onAccept'],this['_onDiscard']=_0x2b6c7e['onDiscard'],this['_onAttributesChange']=_0x2b6c7e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2b6c7e['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 _0x1ea389=this;for(;_0x1ea389['previous'];)_0x1ea389=_0x1ea389['previous'];return _0x1ea389;}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'](_0x2bad34){this['_markerNames']['add'](_0x2bad34);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x597b13=>this['_model']['markers']['get'](_0x597b13))['filter'](_0x536208=>_0x536208);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x262c9f=>{for(const _0x6387bf of this['getMarkers']())_0x262c9f['removeMarker'](_0x6387bf);}),this['_markerNames']['clear']();}['removeMarker'](_0x6aa852){this['_model']['change'](_0x26bce4=>{_0x26bce4['removeMarker'](_0x6aa852);}),this['_markerNames']['delete'](_0x6aa852);}['addRange'](_0x4136d9){const _0x3c3f9d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3c3f9d),this['_model']['change'](_0x39d70a=>{_0x39d70a['addMarker'](_0x3c3f9d,{'range':_0x4136d9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x57020a){for(const _0x22a030 of this['getRanges']())if(_0x22a030['isIntersecting'](_0x57020a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3416c1=>_0x3416c1['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1b6e86,_0x1c3311)=>[..._0x1b6e86,..._0x1c3311['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x500b58=this['getRanges']();if(0x1!=_0x500b58['length'])return null;const _0x12de13=_0x500b58[0x0],_0x512292=_0x12de13['start']['nodeAfter'],_0x4ca408=_0x12de13['end']['nodeBefore'];return _0x512292 instanceof _0x5224a3?_0x512292!=_0x4ca408?null:_0x512292: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 _0x52f658=[];let _0x533124=this['head'];for(;_0x533124;)_0x52f658['push'](_0x533124),_0x533124=_0x533124['next'];return _0x52f658;}['setAttribute'](_0x5945d1,_0x12a1f8){const _0x25dd23=_0x2aa42c(this['attributes']);_0x317ea9(_0x25dd23,_0x5945d1,_0x12a1f8),_0x198cb8(_0x25dd23,this['attributes'])||(this['attributes']=_0x25dd23,this['_onAttributesChange'](_0x25dd23));}['removeAttribute'](_0xcd3b9b){const _0x5b881b=_0x2aa42c(this['attributes']);_0x5ed120(_0x5b881b,_0xcd3b9b),_0x198cb8(_0x5b881b,this['attributes'])||(this['attributes']=_0x5b881b,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 _0x13cee6()['substr'](0x1,0x5);}}function o(_0x16c9cc,_0x75947f,_0x58ba40){const _0x1cf066=_0x16c9cc['t'],t=_0x16c9cc['t'];switch(_0x75947f){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',_0x58ba40);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x58ba40);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x58ba40);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x58ba40);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x58ba40);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',_0x58ba40);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x58ba40);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',_0x58ba40);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x58ba40);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x58ba40);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x58ba40);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x58ba40);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x58ba40);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x58ba40);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x58ba40);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x58ba40);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x58ba40);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x58ba40);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x58ba40);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x58ba40);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x58ba40);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x58ba40);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x58ba40);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x58ba40);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'},_0x58ba40);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x58ba40);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x58ba40);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x58ba40);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x58ba40);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x58ba40);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'},_0x58ba40);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x58ba40);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x58ba40);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x58ba40);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x58ba40);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'},_0x58ba40);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x58ba40);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'},_0x58ba40);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'},_0x58ba40);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x58ba40);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'},_0x58ba40);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x58ba40);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'},_0x58ba40);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x58ba40);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x58ba40);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'},_0x58ba40);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x58ba40);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 _0x1cf066({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x58ba40);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1cf066({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x58ba40);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x58ba40);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'},_0x58ba40);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'},_0x58ba40);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'},_0x58ba40);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x75947f;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x40f755,_0x2ab85e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x40f755,this['_locale']=_0x2ab85e;}['getDescriptions'](_0x1d5db7){const _0x3fb03e=[],_0xdcc23d=new Set(),_0x50cb27=new Set();for(let _0x4204fb=0x0;_0x4204fb<_0x1d5db7['length'];_0x4204fb++){const _0x2cf90b=_0x1d5db7[_0x4204fb];if(!_0x2cf90b['isInContent'])continue;const _0x5ca2fa=this['_handleCustomCallbackDescription'](_0x2cf90b);if(_0x5ca2fa){if(null!=_0x2cf90b['subType']){if(_0xdcc23d['has'](_0x2cf90b['subType']))continue;_0xdcc23d['add'](_0x2cf90b['subType']);}_0x3fb03e['push'](_0x5ca2fa);}else{if('attribute'!=_0x2cf90b['type'])'insertion'!=_0x2cf90b['type']&&'deletion'!=_0x2cf90b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3fb03e,_0x2cf90b,_0x1d5db7[_0x4204fb+0x1]);else{const _0x5d4cec=_0x2cf90b['data']['key'];if(_0x50cb27['has'](_0x5d4cec))continue;_0x50cb27['add'](_0x2cf90b['data']['key']),_0x5d4cec==m?this['_handleRenameSuggestionDescription'](_0x3fb03e,_0x2cf90b):this['_handleAttributeSuggestionDescription'](_0x3fb03e,_0x2cf90b);}}}return this['_resolveDescriptionItems'](_0x3fb03e);}['registerDescriptionCallback'](_0x21b56e){this['_customCallbacks']['push'](_0x21b56e);}['registerElementLabel'](_0x405c5f,_0x26140d,_0x54e9ec=_0x1d18d2['normal']){'function'==typeof _0x405c5f?_0x2d6dd0(this['_itemLabelsCallbacks'],{'matchingCallback':_0x405c5f,'label':_0x26140d,'priority':_0x54e9ec}):this['_itemLabels']['set'](_0x405c5f,_0x26140d);}['registerAttributeLabel'](_0x5eccba,_0x2ff2cd){this['_attributeLabels']['set'](_0x5eccba,_0x2ff2cd);}['getItemLabel'](_0x1de3cc,_0x1a0489=0x1){let _0xde8626;for(const _0x5efde7 of this['_itemLabelsCallbacks'])if(_0x5efde7['matchingCallback'](_0x1de3cc)){_0xde8626=_0x5efde7['label'];break;}return _0xde8626||(_0xde8626=this['_itemLabels']['get'](_0x1de3cc['name'])),_0xde8626?_0xde8626(_0x1a0489):0x1!==_0x1a0489?_0x1a0489+'\x20'+_0x1de3cc['name']+'s':''+_0x1de3cc['name'];}['_addDescriptionItems'](_0x186c04,_0xc765a){const _0x46d32f=_0xc765a['getFirstRange']()['getWalker'](),_0x303c64='insertion'==_0xc765a['type']?'add':'remove';for(const _0x24d906 of _0x46d32f){const _0x5c4f80=_0x24d906['item'],_0x703d4=_0x186c04[_0x186c04['length']-0x1];if(_0x5c4f80['is']('$textProxy'))_0x703d4&&_0x703d4['type']['indexOf']('Container')>-0x1&&_0x186c04['pop'](),_0x703d4&&'text'==_0x703d4['type']?_0x703d4[_0x303c64]+=_0x5c4f80['data']:_0x186c04['push']({'type':'text','add':'add'==_0x303c64?_0x5c4f80['data']:'','remove':'remove'==_0x303c64?_0x5c4f80['data']:''});else{if(this['_schema']['isObject'](_0x5c4f80)){const _0x251c6a=_0x5c4f80;if(_0x703d4&&_0x703d4['type']['indexOf']('Container')>-0x1&&_0x186c04['pop'](),'elementEnd'==_0x24d906['type'])continue;_0x703d4&&_0x703d4['type']==_0x303c64+'Object'&&_0x703d4['element']['name']==_0x251c6a['name']?_0x703d4['quantity']++:_0x186c04['push']({'type':_0x303c64+'Object','element':_0x251c6a,'quantity':0x1}),_0x46d32f['skip'](_0xe5d9ae=>!('elementEnd'==_0xe5d9ae['type']&&_0xe5d9ae['item']==_0x5c4f80));}else{if(this['_schema']['checkChild'](_0x5c4f80,'$text')||_0x5c4f80['is']('element','softBreak')){const _0x529271=_0x5c4f80;if('add'==_0x303c64&&'elementStart'==_0x24d906['type']||'remove'==_0x303c64&&'elementEnd'==_0x24d906['type'])continue;if(_0x703d4&&-0x1==_0x703d4['type']['indexOf']('Container')){'text'==_0x703d4['type']&&(_0x703d4[_0x303c64]+='\x0a');continue;}let _0x3a45e5;if(_0x3a45e5='add'==_0x303c64?_0x529271['nextSibling']&&!this['_schema']['isObject'](_0x529271['nextSibling'])?_0x529271['nextSibling']:null:_0x529271['previousSibling']&&!this['_schema']['isObject'](_0x529271['previousSibling'])?_0x529271['previousSibling']:null,_0x529271['isEmpty']||_0x3a45e5&&_0x3a45e5['isEmpty']){const _0x4472ca=_0x3a45e5&&_0x3a45e5['isEmpty']?_0x3a45e5:_0x529271;_0x703d4&&_0x703d4['type']==_0x303c64+'EmptyContainer'&&_0x703d4['element']['name']==_0x4472ca['name']?_0x703d4['quantity']++:_0x186c04['push']({'type':_0x303c64+'EmptyContainer','element':_0x4472ca,'quantity':0x1});}else _0x186c04['push']({'type':_0x303c64+'Container','element':_0x529271});}}}}}['_resolveDescriptionItems'](_0x4c171b){const _0x1d5182=this['_locale'],_0x51e85=[],_0xcbe105=[],_0x308b50=[];for(const _0x58dfd1 of _0x4c171b)switch(_0x58dfd1['type']){case'text':if(_0x58dfd1['add']=_0x58dfd1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x58dfd1['remove']=_0x58dfd1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x58dfd1['add']&&''!=_0x58dfd1['remove']){_0x51e85['push']({'type':'replace','content':o(_0x1d5182,'REPLACE_TEXT',['\x22'+_0x58dfd1['remove']+'\x22','\x22'+_0x58dfd1['add']+'\x22'])});continue;}if(null!=_0x58dfd1['add']['match'](/^ +$/)){_0x51e85['push']({'type':'insertion','content':o(_0x1d5182,'*Insert:*\x20%0',o(_0x1d5182,'ELEMENT_SPACE',_0x58dfd1['add']['length']))});continue;}if(null!=_0x58dfd1['remove']['match'](/^ +$/)){_0x51e85['push']({'type':'deletion','content':o(_0x1d5182,'*Remove:*\x20%0',o(_0x1d5182,'ELEMENT_SPACE',_0x58dfd1['remove']['length']))});continue;}if(''!=_0x58dfd1['add']){_0x51e85['push']({'type':'insertion','content':o(_0x1d5182,'*Insert:*\x20%0','\x22'+_0x58dfd1['add']+'\x22')});continue;}_0x51e85['push']({'type':'deletion','content':o(_0x1d5182,'*Remove:*\x20%0','\x22'+_0x58dfd1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x51e85['push']({'type':'insertion','content':o(_0x1d5182,'*Insert:*\x20%0',this['getItemLabel'](_0x58dfd1['element'],_0x58dfd1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x51e85['push']({'type':'deletion','content':o(_0x1d5182,'*Remove:*\x20%0',this['getItemLabel'](_0x58dfd1['element'],_0x58dfd1['quantity']))});continue;case'addContainer':_0x51e85['push']({'type':'insertion','content':o(_0x1d5182,'*Split:*\x20%0',this['getItemLabel'](_0x58dfd1['element'],_0x58dfd1['quantity']))});continue;case'removeContainer':_0x51e85['push']({'type':'deletion','content':o(_0x1d5182,'*Merge:*\x20%0',this['getItemLabel'](_0x58dfd1['element'],_0x58dfd1['quantity']))});continue;case'addFormat':_0xcbe105['push'](_0x58dfd1['key']);continue;case'removeFormat':_0x308b50['push'](_0x58dfd1['key']);continue;default:_0x51e85['push'](_0x58dfd1);}if(_0xcbe105['length']){const _0x36b419=_0xcbe105['map'](_0x17ac80=>this['_attributeLabels']['has'](_0x17ac80)?this['_attributeLabels']['get'](_0x17ac80):_0x17ac80)['join'](',\x20');_0x51e85['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x36b419)});}if(_0x308b50['length']){const _0x1039e9=_0x308b50['map'](_0x3fd760=>this['_attributeLabels']['has'](_0x3fd760)?this['_attributeLabels']['get'](_0x3fd760):_0x3fd760)['join'](',\x20');_0x51e85['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1039e9)});}return _0x51e85;}['_handleCustomCallbackDescription'](_0x3c96e1){for(const _0x12e471 of this['_customCallbacks']){const _0x494874=_0x12e471(_0x3c96e1);if(_0x494874&&'type'in _0x494874)return _0x494874;}}['_handleAttributeSuggestionDescription'](_0xc6e58,_0xf0666f){const _0x561739=_0xf0666f['data'],_0x24f036=void 0x0===_0x561739['newValue']?'removeFormat':'addFormat';_0xc6e58['push']({'type':_0x24f036,'key':_0x561739['key']});}['_handleRenameSuggestionDescription'](_0xb160fa,_0x148b8a){_0xb160fa['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x148b8a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2a1393,_0x246feb,_0x59110d){if(this['_addDescriptionItems'](_0x2a1393,_0x246feb),_0x59110d&&_0x59110d['getFirstRange']()&&!_0x246feb['getFirstRange']()['end']['isEqual'](_0x59110d['getFirstRange']()['start'])){const _0x3acecd=_0x2a1393[_0x2a1393['length']-0x1],_0x21e279='insertion'==_0x246feb['type']?'add':'remove';_0x3acecd&&'text'==_0x3acecd['type']&&(_0x3acecd[_0x21e279]+='\x0a');}}}class U extends _0x4a996f{['afterInit'](){const _0x23374e=this['editor'],_0x383e03=_0x23374e['plugins']['get']('TrackChangesEditing');_0x23374e['commands']['get']('showAIAssistant')&&_0x383e03['enableCommand']('showAIAssistant');}}class V extends _0x4a996f{['afterInit'](){const _0x58367e=this['editor'],_0x40a57f=_0x58367e['locale'];if(!_0x58367e['plugins']['has']('AlignmentEditing'))return;const _0x4ef464=_0x58367e['plugins']['get']('TrackChangesEditing');_0x4ef464['enableDefaultAttributesIntegration']('alignment'),_0x4ef464['registerBlockAttribute']('alignment'),_0x4ef464['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x40a57f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3099a1=this['editor'],_0x2d945f=_0x3099a1['locale'];_0x3099a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46eb78=>{if('formatBlock'!=_0x46eb78['type'])return;const {data:_0x27ba6f}=_0x46eb78;if(_0x27ba6f&&'alignment'==_0x27ba6f['commandName']){const _0x33d64b=_0x27ba6f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2d945f,'*Format:*\x20%0',function(_0x43087b){switch(_0x43087b){case'left':return o(_0x2d945f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2d945f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2d945f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2d945f,'FORMAT_JUSTIFY_TEXT');}}(_0x33d64b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4a996f{['afterInit'](){const _0x4be1fd=this['editor'],_0x47178b=_0x4be1fd['plugins']['get']('TrackChangesEditing'),_0x49cb46=_0x4be1fd['locale'];for(const _0x15dca9 of ti){if(!_0x4be1fd['plugins']['has'](_0x15dca9))continue;const _0x1f8d64=_0x15dca9['slice'](0x0,-0x7)['toLowerCase'](),_0x1c56c0='FORMAT_'+_0x1f8d64['toUpperCase']();_0x47178b['enableDefaultAttributesIntegration'](_0x1f8d64),_0x47178b['registerInlineAttribute'](_0x1f8d64),_0x47178b['descriptionFactory']['registerAttributeLabel'](_0x1f8d64,o(_0x49cb46,_0x1c56c0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27828f=this['editor'],_0x18c4d8=_0x27828f['locale'],_0x42e2b0=_0x27828f['plugins']['get']('TrackChangesEditing');function _0x28882d(_0x1b7b03,_0x810c){_0x42e2b0['descriptionFactory']['registerDescriptionCallback'](_0x305ae1=>{if('formatInline'!=_0x305ae1['type'])return;const {data:_0xe207f9}=_0x305ae1;return _0xe207f9&&_0xe207f9['commandName']===_0x1b7b03?_0xe207f9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18c4d8,'*Format:*\x20%0',_0x810c)}:{'type':'format','content':o(_0x18c4d8,'*Remove\x20format:*\x20%0',_0x810c)}:void 0x0;});}_0x28882d('bold',o(_0x18c4d8,'FORMAT_BOLD')),_0x28882d('italic',o(_0x18c4d8,'FORMAT_ITALIC')),_0x28882d('underline',o(_0x18c4d8,'FORMAT_UNDERLINE')),_0x28882d('code',o(_0x18c4d8,'FORMAT_CODE')),_0x28882d('strikethrough',o(_0x18c4d8,'FORMAT_STRIKETHROUGH')),_0x28882d('subscript',o(_0x18c4d8,'FORMAT_SUBSCRIPT')),_0x28882d('superscript',o(_0x18c4d8,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4a996f{['afterInit'](){const _0x59d466=this['editor'],_0x33a3af=_0x59d466['locale'];if(!_0x59d466['plugins']['has']('BlockQuoteEditing'))return;const _0x3cd3b6=_0x59d466['plugins']['get']('TrackChangesEditing'),_0x16c48a=this['editor']['commands']['get']('blockQuote');_0x3cd3b6['enableCommand']('blockQuote',(_0x4390d9,_0x2e4199={})=>{const _0x4aa65e=this['editor']['model']['document']['selection'],_0x394a07=_0x2e4199&&void 0x0!==_0x2e4199['forceValue']?_0x2e4199['forceValue']:!_0x16c48a['value'];let _0x38eaf5=[];if(_0x394a07){const _0x4934de=Array['from'](_0x4aa65e['getSelectedBlocks']())['filter'](_0x20751b=>oo(_0x20751b)||function(_0x2cb118,_0x5a494d){const _0x5f005b=_0x5a494d['checkChild'](_0x2cb118['parent'],'blockQuote'),_0x2ddf6c=_0x5a494d['checkChild'](['$root','blockQuote'],_0x2cb118);return _0x5f005b&&_0x2ddf6c;}(_0x20751b,this['editor']['model']['schema']));_0x38eaf5=to(_0x4934de,_0x59d466['model']);}else{const _0x508123=Array['from'](_0x4aa65e['getSelectedBlocks']())['filter'](_0xaf5505=>oo(_0xaf5505));_0x38eaf5=to(_0x508123,_0x59d466['model']);}_0x59d466['model']['change'](()=>{for(const _0x25d462 of _0x38eaf5)_0x3cd3b6['markBlockFormat'](_0x25d462,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x394a07}]});});}),_0x3cd3b6['descriptionFactory']['registerDescriptionCallback'](_0xad4c17=>{const {data:_0x5645b0}=_0xad4c17;if(_0x5645b0&&'blockQuote'==_0x5645b0['commandName']){const _0x1cada9=o(_0x33a3af,'ELEMENT_BLOCK_QUOTE');return _0x5645b0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33a3af,'*Set\x20format:*\x20%0',_0x1cada9)}:{'type':'format','content':o(_0x33a3af,'*Remove\x20format:*\x20%0',_0x1cada9)};}});}}function oo(_0x1aed52){return'blockQuote'==_0x1aed52['parent']['name'];}class L extends _0x4a996f{['afterInit'](){const _0x560816=this['editor'],_0x386374=_0x560816['locale'],_0x5be314=_0x560816['plugins']['get']('TrackChangesEditing');_0x560816['plugins']['has']('BookmarkEditing')&&(_0x5be314['enableCommand']('insertBookmark'),_0x5be314['enableDefaultAttributesIntegration']('updateBookmark'),_0x5be314['registerBlockAttribute']('bookmarkId'),_0x5be314['descriptionFactory']['registerDescriptionCallback'](_0x5dd0a0=>{if('insertion'!=_0x5dd0a0['type']&&'deletion'!=_0x5dd0a0['type']&&'attribute'!=_0x5dd0a0['type'])return;const _0x52b872=_0x5dd0a0['getContainedElement']();if(null==_0x52b872)return;if(!_0x52b872['is']('element','bookmark'))return;const _0x4b497c=_0x52b872['getAttribute']('bookmarkId');if('insertion'==_0x5dd0a0['type'])return{'type':'insertion','content':o(_0x386374,'*Insert:*\x20%0','\x22'+_0x4b497c+'\x22\x20'+o(_0x386374,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5dd0a0['type'])return{'type':'deletion','content':o(_0x386374,'*Remove:*\x20%0','\x22'+_0x4b497c+'\x22\x20'+o(_0x386374,'ELEMENT_BOOKMARK'))};const {data:_0x3e3883}=_0x5dd0a0;if(!_0x3e3883||'bookmarkId'!=_0x3e3883['key'])return;return{'type':'format','content':o(_0x386374,'*Set\x20bookmark:*\x20%0','\x22'+_0x3e3883['newValue']+'\x22')};}));}}class J extends _0x4a996f{['afterInit'](){const _0x106b0b=this['editor'];_0x106b0b['plugins']['has']('CaseChange')&&(_0x106b0b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x106b0b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x106b0b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4a996f{['afterInit'](){const _0x320a55=this['editor'];_0x320a55['commands']['get']('ckbox')&&_0x320a55['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x4a996f{['afterInit'](){const _0x17ad9f=this['editor'];if(!_0x17ad9f['plugins']['has']('CodeBlock'))return;const _0x47bcf7=_0x17ad9f['plugins']['get']('TrackChangesEditing'),_0x1f9e09=_0x17ad9f['locale'],_0xa4a26d=_0x17ad9f['config']['get']('codeBlock')['languages'],_0x1f52fc=_0x17ad9f['commands']['get']('codeBlock');_0x47bcf7['enableCommand']('indentCodeBlock'),_0x47bcf7['enableCommand']('outdentCodeBlock'),_0x47bcf7['enableCommand']('codeBlock',(_0x519534,_0x4cbfce={})=>{const _0x32e5e5=_0x17ad9f['model'],_0x43994b=_0x17ad9f['model']['document']['selection'],_0x1ee586=_0x4cbfce&&void 0x0!==_0x4cbfce['forceValue']?_0x4cbfce['forceValue']:!_0x1f52fc['value'];let _0x4e1ebd;_0x4cbfce['language']||(_0x4cbfce['language']=_0xa4a26d[0x0]['language']),_0x4e1ebd=_0x1ee586?Array['from'](_0x43994b['getSelectedBlocks']())['filter'](_0x1c3fcb=>eo(_0x1c3fcb)||function(_0x295149,_0xb5e2c3){if(_0x295149['is']('rootElement')||_0xb5e2c3['isLimit'](_0x295149))return!0x1;return _0xb5e2c3['checkChild'](_0x295149['parent'],'codeBlock');}(_0x1c3fcb,_0x32e5e5['schema'])):Array['from'](_0x43994b['getSelectedBlocks']())['filter'](_0x181bea=>eo(_0x181bea));const _0x3fc8e3=to(_0x4e1ebd,_0x32e5e5);_0x32e5e5['change'](()=>{for(const _0x4ab149 of _0x3fc8e3)_0x47bcf7['markBlockFormat'](_0x4ab149,{'commandName':'codeBlock','commandParams':[{..._0x4cbfce,'forceValue':_0x1ee586}],'formatGroupId':'blockName'});});}),(_0x47bcf7['descriptionFactory']['registerElementLabel']('codeBlock',_0xb2502=>o(_0x1f9e09,'ELEMENT_CODE_BLOCK',_0xb2502)),_0x47bcf7['descriptionFactory']['registerDescriptionCallback'](_0x170ba3=>{if('formatBlock'!=_0x170ba3['type'])return;const _0x24f39e=_0x1f9e09['t'],{data:_0x56fa7e}=_0x170ba3;if(!_0x56fa7e||'codeBlock'!=_0x56fa7e['commandName'])return;const _0xc3ab4=_0x56fa7e['commandParams'][0x0]['language'],_0x582597=_0x24f39e(_0xa4a26d['find'](_0x1db91c=>_0x1db91c['language']===_0xc3ab4)['label'])['toLowerCase']();return _0x56fa7e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f9e09,'*Set\x20format:*\x20%0',o(_0x1f9e09,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x582597+')')}:{'type':'format','content':o(_0x1f9e09,'*Remove\x20format:*\x20%0',o(_0x1f9e09,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5f4f92){return'codeBlock'==_0x5f4f92['name'];}class z extends _0x4a996f{['afterInit'](){const _0x2d0af8=this['editor'];if(!_0x2d0af8['plugins']['has']('CommentsEditing'))return;_0x2d0af8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x535a63,_0x2ed0a8,_0x4a5d6a){const _0x12d3d6=[];for(const _0x21b1cd of _0x2ed0a8['getItems']())_0x21b1cd['hasAttribute'](_0x535a63)&&_0x12d3d6['push'](_0x4a5d6a['createRangeOn'](_0x21b1cd));return _0x12d3d6;}function De(_0x283ced,_0x4371be,{showActiveMarker:_0x44643f=!0x0}={}){const _0x12a33b=_0x283ced['plugins']['get']('TrackChangesEditing');return(_0x47c638,_0x29f923,_0x517205)=>{if(!_0x517205['consumable']['test'](_0x29f923['markerRange'],_0x47c638['name']))return;const _0x5dfa46=_0x29f923['markerRange']['getWalker'](),_0x2a721e=_0x29f923['markerRange']['start'],_0x2e5a8e=_0x283ced['model']['schema'];let _0x897fd6=null,_0x9be10f=null,_0x4748de=!0x1,_0x500687=!0x1;for(const _0x58d1c6 of _0x5dfa46){const _0x1cbe69=_0x58d1c6['item'];_0x4748de=_0x4748de||_0x2e5a8e['isContent'](_0x1cbe69);const _0x4f12f3=_0x517205['mapper']['toViewElement'](_0x1cbe69);if(_0x4f12f3&&_0x4f12f3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58d1c6['type']&&(_0x2e5a8e['isBlock'](_0x1cbe69)&&!_0x2e5a8e['isLimit'](_0x1cbe69)&&(_0x1cbe69['nextSibling']||_0x2a721e['isAtEnd']?_0x897fd6&&_0x897fd6['parent']==_0x1cbe69||(_0x897fd6=_0x1cbe69,_0x536261(_0x58d1c6['previousPosition']),_0x500687=!0x0):_0x9be10f=_0x9be10f||_0x58d1c6['previousPosition']));}function _0x536261(_0x340641){const {authorId:_0x28ea5a}=_0x12a33b['_splitMarkerName'](_0x29f923['markerName']),_0x5eb965=_0x517205['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4371be,'data-author-id':_0x28ea5a}),_0x73e397=_0x517205['mapper']['toViewPosition'](_0x340641);_0x44643f&&_0x12a33b['activeMarkers']['includes'](_0x29f923['markerName'])&&_0x517205['writer']['addClass']('ck-suggestion-marker--active',_0x5eb965),_0x517205['writer']['insert'](_0x73e397,_0x5eb965),_0x517205['mapper']['bindElementToMarker'](_0x5eb965,_0x29f923['markerName']);}_0x4748de||_0x500687||!_0x9be10f||_0x536261(_0x9be10f);};}class K extends _0x4a996f{static get['requires'](){return[_0x1474d4];}['init'](){const _0x3438ed=this['editor'],_0x39abf6=_0x3438ed['plugins']['get']('TrackChangesEditing');_0x39abf6['enableCommand']('delete');const _0x2b0ff0=_0x3438ed['commands']['get']('deleteForward');_0x39abf6['enableCommand']('deleteForward',(_0xfc22b1,_0x248d0c={})=>{const _0x3d17d8=_0x3438ed['model']['createSelection'](_0x3438ed['model']['document']['selection']);_0x3d17d8['isCollapsed']&&_0x3438ed['model']['modifySelection'](_0x3d17d8,{'direction':'forward','unit':_0x248d0c['unit']});const _0x2cd9f3=_0x3d17d8['getFirstRange'](),_0x1f81a8=_0x25ad8a['fromRange'](_0x2cd9f3);let _0x2c1c59;_0xfc22b1(_0x248d0c),_0x2c1c59='$graveyard'==_0x1f81a8['root']['rootName']?_0x3438ed['model']['createRange'](_0x2cd9f3['start']):_0x3438ed['model']['createRange'](_0x1f81a8['start'],_0x1f81a8['end']),_0x1f81a8['detach'](),_0x3438ed['model']['enqueueChange'](_0x2b0ff0['buffer']['batch'],_0x4b13bb=>{_0x2b0ff0['buffer']['lock'](),_0x4b13bb['setSelection'](_0x4b13bb['createRange'](_0x2c1c59['end'])),_0x2b0ff0['buffer']['unlock']();});}),_0x3438ed['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x3438ed,'merge'),{'priority':'high'}),_0x3438ed['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x471bd0,_0x487ea1,_0x168a55)=>{_0x168a55['options']['showSuggestionHighlights']&&De(_0x3438ed,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x471bd0,_0x487ea1,_0x168a55);},{'priority':'high'}),_0x3438ed['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x438663,_0x412624,_0x44d506)=>{const _0x136b8b=_0x44d506['mapper']['markerNameToElements'](_0x412624['markerName']);if(_0x136b8b){for(const _0x17ceeb of _0x136b8b)_0x17ceeb['is']('uiElement')&&(_0x44d506['mapper']['unbindElementFromMarkerName'](_0x17ceeb,_0x412624['markerName']),_0x44d506['writer']['remove'](_0x17ceeb));}},{'priority':'high'});}}class W extends _0x4a996f{['afterInit'](){const _0x26a32b=this['editor'];if(!_0x26a32b['plugins']['has']('ListEditing'))return;const _0x435963=_0x26a32b['locale'],_0x1ad849=_0x26a32b['plugins']['get']('TrackChangesEditing'),_0x2a6aa5=_0x26a32b['plugins']['has']('TodoListEditing'),_0x1ea9f1=!!_0x26a32b['config']['get']('list.multiBlock');function _0x1ff2a7(_0x7b9bcb){return{'type':'format','content':''+o(_0x435963,'*Set\x20format:*\x20%0',_0x7b9bcb)};}function _0x2fde8a(_0x4316d3){return{'type':'format','content':''+o(_0x435963,'*Remove\x20format:*\x20%0',_0x4316d3)};}_0x1ad849['enableDefaultAttributesIntegration']('numberedList'),_0x1ad849['enableDefaultAttributesIntegration']('bulletedList'),_0x1ad849['enableDefaultAttributesIntegration']('customNumberedList'),_0x1ad849['enableDefaultAttributesIntegration']('customBulletedList'),_0x1ad849['enableDefaultAttributesIntegration']('indentList'),_0x1ad849['enableDefaultAttributesIntegration']('outdentList'),_0x1ad849['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1ad849['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1ad849['registerBlockAttribute']('listItemId'),_0x1ad849['registerBlockAttribute']('listType'),_0x1ad849['registerBlockAttribute']('listIndent'),_0x1ea9f1&&(_0x1ad849['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1ad849['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2a6aa5&&(_0x1ad849['enableDefaultAttributesIntegration']('todoList'),_0x1ad849['enableDefaultAttributesIntegration']('checkTodoList'),_0x1ad849['registerBlockAttribute']('todoListChecked'),_0x1ad849['descriptionFactory']['registerDescriptionCallback'](_0x2145f4=>{const {data:_0x1e100b}=_0x2145f4;if(_0x1e100b&&'todoListChecked'==_0x1e100b['key'])return{'type':'format','content':_0x1e100b['newValue']?o(_0x435963,'*Check\x20item*'):o(_0x435963,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x45e0c6=>{if(_0x45e0c6['batch']['isUndo'])return!0x1;let _0x263564=!0x1;const _0x1b4bb1=_0x1ad849['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2be430=>'todoListChecked'===_0x1ad849['_getAttributeKey'](_0x2be430));for(const _0x3a5dc2 of _0x1b4bb1){'todo'!=_0x3a5dc2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1ad849['_findSuggestions'](_0x3a5dc2['getFirstRange'](),'attribute')['find'](_0x36d2cd=>'listType'===_0x1ad849['_getAttributeKey'](_0x36d2cd['suggestion']))||(_0x45e0c6['removeMarker'](_0x3a5dc2['getFirstMarker']()),_0x263564=!0x0));}return _0x263564;})),_0x1ad849['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x435963,'FORMAT_INDENT'));const _0x302d17={'type':'format','content':''};_0x1ad849['descriptionFactory']['registerDescriptionCallback'](_0x44b774=>{const {data:_0x1dbf22}=_0x44b774;if(!_0x1dbf22||'listType'!=_0x1dbf22['key'])return;let _0x17798d=_0x44b774['head'];for(;_0x17798d;){if(_0x17798d['data']&&(('listStyle'==_0x17798d['data']['key']||'listMarkerStyle'==_0x17798d['data']['key'])&&(_0x17798d['data']['newValue']&&'default'!=_0x17798d['data']['newValue']||'default'!=_0x17798d['data']['oldValue']&&!_0x1dbf22['newValue'])||!_0x1ea9f1&&_0x17798d['data']['key']==m))return _0x302d17;_0x17798d=_0x17798d['next'];}if(null==_0x1dbf22['newValue'])switch(_0x1dbf22['oldValue']){case'bulleted':return _0x2fde8a(o(_0x435963,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2fde8a(o(_0x435963,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2fde8a(o(_0x435963,'ELEMENT_TODO_LIST'));}switch(_0x1dbf22['newValue']){case'bulleted':return _0x1ff2a7(o(_0x435963,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ff2a7(o(_0x435963,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ff2a7(o(_0x435963,'ELEMENT_TODO_LIST'));}}),_0x1ad849['descriptionFactory']['registerDescriptionCallback'](_0xb38de7=>{const {data:_0x3b85a1}=_0xb38de7;if(_0x3b85a1&&'listIndent'==_0x3b85a1['key'])return null==_0x3b85a1['newValue']||null==_0x3b85a1['oldValue']&&0x0==_0x3b85a1['newValue']?_0x302d17:void 0x0;}),_0x1ad849['descriptionFactory']['registerDescriptionCallback'](_0x3c4048=>{if('attribute'!=_0x3c4048['type'])return;const {data:_0x43a443}=_0x3c4048;if(!_0x43a443||'listItemId'!=_0x43a443['key'])return;const _0x16f6f2=Te(_0x3c4048);return'newValue'==_0x16f6f2?{'type':'format','content':o(_0x435963,'*Merge:*\x20list\x20item')}:'oldValue'==_0x16f6f2?{'type':'format','content':o(_0x435963,'*Split:*\x20list\x20item')}:_0x302d17;}),_0x26a32b['model']['document']['registerPostFixer'](_0x11514f=>this['listItemIdFixer'](_0x11514f)),_0x26a32b['model']['document']['registerPostFixer'](_0x2bed88=>this['noTrackChangesFixer'](_0x2bed88)),_0x26a32b['model']['document']['on']('change:data',(_0x4a4432,_0x38a7fc)=>{if(_0x38a7fc['isUndo']||!_0x38a7fc['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xfd1b8c){if(_0xfd1b8c['batch']['isUndo']||!_0xfd1b8c['batch']['isLocal'])return!0x1;let _0x361f53=!0x1;const _0x1e14d6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x413218=>_0x413218['data']&&'listItemId'==_0x413218['data']['key'])['filter'](_0x88c477=>_0x88c477['data']['newValue']&&_0x88c477['data']['oldValue']);for(const _0x525f40 of _0x1e14d6)Te(_0x525f40)||(_0xfd1b8c['removeMarker'](_0x525f40['getFirstMarker']()),_0x361f53=!0x0);return _0x361f53;}['noTrackChangesFixer'](_0x2aa860){if(_0x2aa860['batch']['isUndo']||!_0x2aa860['batch']['isLocal'])return!0x1;const _0xd50a5c=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xd50a5c['trackChangesCommand']['value'])return!0x1;let _0x301ef7=!0x1;const _0xcca12c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xa6f7f2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x280249=>'attribute'==_0x280249['type'])['filter'](_0x1118fb=>_0xcca12c['includes'](_0x1118fb['attributeKey']));if(0x0==_0xa6f7f2['length'])return _0x301ef7;for(const _0x28c761 of _0xa6f7f2){const _0x163324=_0xd50a5c['_findSuggestions'](_0x28c761['range'],'attribute')['filter'](_0x1b1c87=>!_0x1b1c87['meta']['isNextTo'])['map'](_0x4bcc96=>_0x4bcc96['suggestion'])['filter'](_0x4e3e2c=>{const _0x4d1d36=_0xd50a5c['_getAttributeKey'](_0x4e3e2c);return _0xcca12c['includes'](_0x4d1d36);});if(_0x163324['length']){for(const _0x47b34d of _0x163324)_0x2aa860['removeMarker'](_0x47b34d['getFirstMarker']());_0x301ef7=!0x0;}}return _0x301ef7;}['assureChains'](){const _0x3dfb35=this['editor']['plugins']['get']('TrackChangesEditing'),_0x578548=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x221925;const _0x311996=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11644c=>{if(_0x11644c['data']['oldRange']||!_0x11644c['data']['newRange'])return null;if(!_0x11644c['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5dac44}=_0x3dfb35['_splitMarkerName'](_0x11644c['name']);if(!_0x3dfb35['hasSuggestion'](_0x5dac44))return null;const _0x43ff87=_0x3dfb35['getSuggestion'](_0x5dac44);return _0x578548['includes'](_0x43ff87['data']['key']);})['map'](_0x64a594=>{const {id:_0x4a1150}=_0x3dfb35['_splitMarkerName'](_0x64a594['name']),_0x2439fa=_0x3dfb35['getSuggestion'](_0x4a1150);return _0x221925=_0x2439fa['attributes']['groupId'],_0x2439fa['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x311996['size'])return;const _0x4f672f=_0x3dfb35['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b91b8=>'attribute'==_0x3b91b8['type']&&_0x3b91b8['data']&&_0x578548['includes'](_0x3b91b8['data']['key'])&&_0x3b91b8['attributes']['groupId']!=_0x221925)['map'](_0x3f6a5e=>({'listItem':_0x3f6a5e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3f6a5e['attributes']['groupId']})),_0x516a2f=new Set();for(const {groupId:_0xf27442,listItem:_0x5420c9}of _0x4f672f)_0x311996['has'](_0x5420c9)&&_0x516a2f['add'](_0xf27442);for(const _0x42eae3 of _0x3dfb35['getSuggestions']())_0x516a2f['has'](_0x42eae3['attributes']['groupId'])&&_0x42eae3['setAttribute']('groupId',_0x221925);}['_supportLegacySuggestions'](){const _0x14be2b=this['editor'],_0x4f5560=_0x14be2b['locale'],_0x48752e=_0x14be2b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x48752e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x569988,_0x552a68){const _0x670753=[];for(let _0x328304 of _0x569988)_0x328304['start']['nodeAfter']===_0x328304['end']['parent']&&(_0x328304=_0x14be2b['model']['createRange'](_0x14be2b['model']['createPositionAt'](_0x328304['start']['nodeAfter'],0x0))),_0x670753['push'](_0x328304);_0x14be2b['model']['change'](_0x3e11d8=>{const _0x108b84=_0x14be2b['model']['document']['selection'],_0xc106cc=Array['from'](_0x108b84['getRanges']())['map'](_0x161856=>_0x25ad8a['fromRange'](_0x161856));_0x3e11d8['setSelection'](_0x670753),_0x14be2b['commands']['get'](_0x552a68['commandName'])['refresh'](),_0x552a68['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x14be2b['execute'](_0x552a68['commandName'],..._0x552a68['commandParams']),_0x3e11d8['setSelection'](_0xc106cc);for(const _0x18eec3 of _0xc106cc)_0x18eec3['detach']();});}),_0x48752e['descriptionFactory']['registerElementLabel'](function(_0x485b16){const _0xa3b82c=!_0x14be2b['model']['schema']['isObject'](_0x485b16),_0x1e992e=_0x485b16['previousSibling'],_0x3eb279=_0x485b16['nextSibling'],_0x59dccd=_0x485b16['getAttribute']('listItemId'),_0x467371=!_0x1e992e||_0x1e992e['getAttribute']('listItemId')!==_0x59dccd,_0x171f61=!_0x3eb279||_0x3eb279['getAttribute']('listItemId')!==_0x59dccd;return _0xa3b82c&&Boolean(_0x59dccd)&&_0x467371&&_0x171f61;},_0x25ec84=>o(_0x4f5560,'ELEMENT_LIST_ITEM',_0x25ec84));}['_registerLegacyDescription'](){const _0x6777ed=this['editor'],_0xa61e0c=_0x6777ed['locale'];function _0x9b98c0(_0x1dbfcf){const _0x1738ee=_0x6777ed['commands']['get']('bulletedList')['value'],_0x334d1e=_0x6777ed['commands']['get']('numberedList')['value'];return'numberedList'===_0x1dbfcf?_0x1738ee:_0x334d1e;}_0x6777ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x6f9202){if('formatBlock'!=_0x6f9202['type'])return;const {data:_0x5c57fb}=_0x6f9202;if(!_0x5c57fb)return;let _0x2b0eb1,_0xdc427a,_0x53878c,_0x29633b;switch(_0x5c57fb['commandName']){case'bulletedList':_0x53878c=_0x5c57fb['commandParams'][0x0]['forceValue'],_0x29633b=_0x9b98c0(_0x5c57fb['commandName']),_0x2b0eb1=_0x53878c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29633b&&_0x6777ed['config']['get']('list.multiBlock')||(_0x2b0eb1='*Change\x20to:*\x20%0'),_0xdc427a={'type':'format','content':o(_0xa61e0c,_0x2b0eb1,o(_0xa61e0c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x53878c=_0x5c57fb['commandParams'][0x0]['forceValue'],_0x29633b=_0x9b98c0(_0x5c57fb['commandName']),_0x2b0eb1=_0x53878c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29633b&&_0x6777ed['config']['get']('list.multiBlock')||(_0x2b0eb1='*Change\x20to:*\x20%0'),_0xdc427a={'type':'format','content':o(_0xa61e0c,_0x2b0eb1,o(_0xa61e0c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2b0eb1='*Indent:*\x20%0',_0xdc427a={'type':'format','content':o(_0xa61e0c,_0x2b0eb1,o(_0xa61e0c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2b0eb1=function(_0x3ae5a2){const _0x38bafe=_0x3ae5a2['getFirstRange']();let _0x2f5f40=_0x38bafe['start']['nodeAfter'];for(;_0x2f5f40&&_0x38bafe['containsItem'](_0x2f5f40);){if(_0x2f5f40['getAttribute']('listIndent')>0x0)return!0x1;_0x2f5f40=_0x2f5f40['nextSibling'];}return!0x0;}(_0x6f9202)?o(_0xa61e0c,'*Format:*\x20remove\x20from\x20%0',o(_0xa61e0c,function(_0x32705d){return'ELEMENT_'+_0x32705d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x6f9202))):o(_0xa61e0c,'*Outdent:*\x20%0',o(_0xa61e0c,'ELEMENT_LIST_ITEM')),_0xdc427a={'type':'format','content':_0x2b0eb1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5c57fb['multipleBlocks']&&(_0x2b0eb1='*Merge:*\x20%0',_0xdc427a={'type':'deletion','content':o(_0xa61e0c,_0x2b0eb1,o(_0xa61e0c,'ELEMENT_LIST_ITEM'))});}return _0xdc427a;});}}function Te(_0x3e31b4){let _0xca093b=_0x3e31b4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xca093b;){const _0x5a6477=_0xca093b['getAttribute']('listItemId');if(!_0x5a6477)return!0x1;if(_0x5a6477==_0x3e31b4['data']['newValue'])return'newValue';if(_0x5a6477==_0x3e31b4['data']['oldValue'])return'oldValue';_0xca093b=_0xca093b['previousSibling'];}return!0x1;}class Se extends _0x4a996f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3ada3f=this['editor']['config']['get']('list.properties'),_0x4f5111=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ada3f['styles']&&(_0x4f5111['enableDefaultAttributesIntegration']('listStyle'),_0x4f5111['registerBlockAttribute']('listStyle')),_0x3ada3f['reversed']&&(_0x4f5111['enableDefaultAttributesIntegration']('listReversed'),_0x4f5111['registerBlockAttribute']('listReversed')),_0x3ada3f['startIndex']&&(_0x4f5111['enableDefaultAttributesIntegration']('listStart'),_0x4f5111['registerBlockAttribute']('listStart'));const _0x3a9894={'type':'format','content':''};_0x4f5111['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x405f46=this['editor']['locale'];_0x4f5111['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x405f46,'FORMAT_LIST_REVERSED')),_0x4f5111['descriptionFactory']['registerDescriptionCallback'](_0x8cef3=>{const {data:_0x46efb4}=_0x8cef3;if(_0x46efb4&&'listReversed'==_0x46efb4['key'])return null==_0x46efb4['newValue']||0x0==_0x46efb4['newValue']&&null==_0x46efb4['oldValue']?_0x3a9894:void 0x0;}),_0x4f5111['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x405f46,'FORMAT_LIST_START')),_0x4f5111['descriptionFactory']['registerDescriptionCallback'](_0x559b76=>{const {data:_0x3b55ad}=_0x559b76;if(_0x3b55ad&&'listStart'==_0x3b55ad['key'])return null==_0x3b55ad['newValue']||0x1==_0x3b55ad['newValue']&&null==_0x3b55ad['oldValue']?_0x3a9894:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x390266=>{if(_0x390266['batch']['isUndo'])return!0x1;let _0x11381b=!0x1;const _0x3a56e6=_0x4f5111['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x337853=>{const _0x2dd57b=_0x4f5111['_getAttributeKey'](_0x337853);return'listStart'==_0x2dd57b||'listReversed'==_0x2dd57b;});for(const _0x277e8c of _0x3a56e6){const _0x32af5b=_0x277e8c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x32af5b||'customNumbered'==_0x32af5b)continue;_0x4f5111['_findSuggestions'](_0x277e8c['getFirstRange'](),'attribute')['find'](_0x524eaf=>'listType'==_0x4f5111['_getAttributeKey'](_0x524eaf['suggestion']))||(_0x390266['removeMarker'](_0x277e8c['getFirstMarker']()),_0x11381b=!0x0);}return _0x11381b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2d2eac){const _0x14ae61=this['editor']['locale'],{data:_0x56df7e}=_0x2d2eac,_0x1ef825={'type':'format','content':''};if(!_0x56df7e||'listStyle'!=_0x56df7e['key'])return;if(!_0x56df7e['oldValue'])return'default'==_0x56df7e['newValue']?_0x1ef825:{'type':'format','content':''+o(_0x14ae61,'*Set\x20format:*\x20%0',o(_0x14ae61,this['_getTranslationKeyForListStyle'](_0x56df7e['newValue'])))};if(!_0x56df7e['newValue']){if('default'==_0x56df7e['oldValue'])return _0x1ef825;let _0x26780c=_0x2d2eac['head'];for(;_0x26780c;){if(_0x26780c['data']&&'listType'==_0x26780c['data']['key']&&_0x26780c['data']['newValue'])return _0x1ef825;_0x26780c=_0x26780c['next'];}return{'type':'format','content':''+o(_0x14ae61,'*Remove\x20format:*\x20%0',o(_0x14ae61,this['_getTranslationKeyForListStyle'](_0x56df7e['oldValue'])))};}if('default'!=_0x56df7e['newValue'])return{'type':'format','content':''+o(_0x14ae61,'*Set\x20format:*\x20%0',o(_0x14ae61,this['_getTranslationKeyForListStyle'](_0x56df7e['newValue'])))};let _0x25d6fb=_0x2d2eac['head'];for(;_0x25d6fb;){if(_0x25d6fb['data']&&'listType'==_0x25d6fb['data']['key']&&_0x25d6fb['data']['newValue']&&_0x25d6fb['data']['oldValue'])return _0x1ef825;_0x25d6fb=_0x25d6fb['next'];}return{'type':'format','content':o(_0x14ae61,'*Set\x20format:*\x20%0',o(_0x14ae61,'ELEMENT_'+_0x2d2eac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xe8f2fa=this['editor'],_0x383ea1=_0xe8f2fa['locale'];_0xe8f2fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10728e=>{if('formatBlock'!=_0x10728e['type'])return;const {data:_0x271f32}=_0x10728e;if(!_0x271f32)return;let _0x47986d,_0x3ac97d;switch(_0x271f32['commandName']){case'listStyle':_0x47986d='*Change\x20to:*\x20%0',_0x3ac97d={'type':'format','content':o(_0x383ea1,_0x47986d,o(_0x383ea1,this['_getTranslationKeyForListStyle'](_0x271f32['commandParams'][0x0]['type'])))};break;case'listReversed':_0x47986d=_0x271f32['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3ac97d={'type':'format','content':o(_0x383ea1,_0x47986d)};break;case'listStart':_0x47986d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3ac97d={'type':'format','content':o(_0x383ea1,_0x47986d,_0x271f32['commandParams'][0x0]['startIndex'])};}return _0x3ac97d;});}['_getTranslationKeyForListStyle'](_0x2bf4ba){return'ELEMENT_'+function(_0x4919ee){if(_e['includes'](_0x4919ee))return'bulleted';if(Re['includes'](_0x4919ee))return'numbered';return null;}(_0x2bf4ba)['toUpperCase']()+'_LIST_'+_0x2bf4ba['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x4a996f{['afterInit'](){const _0x1c1807=this['editor'];_0x1c1807['commands']['get']('emoji')&&_0x1c1807['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x4a996f{static get['requires'](){return[_0x34de54];}['init'](){const _0xa0ee98=this['editor'],_0x1d33f=_0xa0ee98['plugins']['get']('TrackChangesEditing'),_0x362031=_0xa0ee98['commands']['get']('enter');_0x1d33f['enableCommand']('enter',()=>{_0xa0ee98['model']['change'](_0x2a9804=>{const _0x39f6e1=_0xa0ee98['model']['document']['selection'],_0x86b614=_0x39f6e1['getFirstPosition'](),_0x28becb=_0x25ad8a['fromRange'](_0x39f6e1['getFirstRange']());if(_0x362031['enterBlock'](_0x2a9804)){const _0x4facce=_0xa0ee98['model']['createPositionAt'](_0x86b614['parent']['nextSibling'],0x0),_0x3a51c7=_0x2a9804['createRange'](_0x86b614,_0x4facce);_0x1d33f['markInsertion'](_0x3a51c7);}else _0x2a9804['setSelection'](_0x2a9804['createRange'](_0x28becb['end']));_0x28becb['detach'](),_0x362031['fire']('afterExecute',{'writer':_0x2a9804});});}),_0xa0ee98['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xa0ee98,'split'),{'priority':'high'}),_0xa0ee98['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x554bfa,_0x4e4063,_0x1c773a)=>{const _0x2cf9bd=_0x1c773a['mapper']['markerNameToElements'](_0x4e4063['markerName']);if(_0x2cf9bd){for(const _0x2bdcd6 of _0x2cf9bd)_0x2bdcd6['hasClass']('ck-suggestion-marker-split')&&(_0x1c773a['mapper']['unbindElementFromMarkerName'](_0x2bdcd6,_0x4e4063['markerName']),_0x1c773a['writer']['remove'](_0x2bdcd6));}},{'priority':'high'}),_0xa0ee98['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2b8aa9,_0x15c15a,_0x404ca0)=>{_0x404ca0['options']['showSuggestionHighlights']&&De(_0xa0ee98,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2b8aa9,_0x15c15a,_0x404ca0);},{'priority':'high'});}}class Z extends _0x4a996f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4ec6dd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ec6dd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4ec6dd['enableCommand']('findNext'),_0x4ec6dd['enableCommand']('findPrevious'),_0x4ec6dd['enableCommand']('replace'),_0x4ec6dd['enableCommand']('replaceAll');}['handleFindCommand'](_0x4bfd56,_0x187c2b,_0x481484={}){const _0x16be70=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4bfd56(_0x1dd57c=>{let _0xc4214a=('string'==typeof _0x187c2b?_0x16be70['findByTextCallback'](_0x187c2b,_0x481484):_0x187c2b)(_0x1dd57c);Array['isArray'](_0xc4214a)&&(_0xc4214a={'results':_0xc4214a,'searchText':'string'==typeof _0x187c2b?_0x187c2b:''});const _0x304423=_0xc4214a['results']['filter'](_0x2ea51c=>!0x1===this['_isInDeletionRange'](_0x2ea51c,_0x1dd57c['item']));return{..._0xc4214a,'results':_0x304423};},_0x481484);}['_isInDeletionRange'](_0x40231e,_0x2efe8e){const _0x16528d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2efe8e,_0x40231e['start']),this['editor']['model']['createPositionAt'](_0x2efe8e,_0x40231e['end']));for(const _0xf1459e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x16528d['getIntersection'](_0xf1459e['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 _0x4a996f{['afterInit'](){const _0x52336f=this['editor']['locale'],_0x1b2524=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x31ad5f,commandName:_0xea4cfb}of ro)this['editor']['plugins']['has'](_0x31ad5f)&&(_0x1b2524['enableDefaultAttributesIntegration'](_0xea4cfb),_0x1b2524['registerInlineAttribute'](_0xea4cfb));_0x1b2524['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x52336f,'FORMAT_FONT_SIZE')),_0x1b2524['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x52336f,'FORMAT_FONT_FAMILY')),_0x1b2524['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x52336f,'FORMAT_FONT_COLOR')),_0x1b2524['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x52336f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40993d=this['editor'],_0x4c75fa=_0x40993d['locale'];_0x40993d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x179d42=>{const _0x585eab=_0x4c75fa['t'];if('formatInline'!=_0x179d42['type'])return;const {data:_0x273b1f}=_0x179d42;if(null!=_0x273b1f){if('fontSize'==_0x273b1f['commandName']){const _0x4ec8ee=_0x273b1f['commandParams'][0x0]['value'];if(_0x4ec8ee){const _0x1270d9=_0x585eab(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x56ee84=>_0x56ee84['model']==_0x4ec8ee)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4c75fa,'*Set\x20font\x20size:*\x20%0',_0x1270d9)};}return{'type':'format','content':o(_0x4c75fa,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x273b1f['commandName']){const _0x5970f1=_0x273b1f['commandParams'][0x0]['value'];return _0x5970f1?{'type':'format','content':o(_0x4c75fa,'*Set\x20font\x20family:*\x20%0',_0x5970f1)}:{'type':'format','content':o(_0x4c75fa,'*Reset\x20font\x20family*')};}if('fontColor'==_0x273b1f['commandName']){const _0x6dfd2a=_0x273b1f['commandParams'][0x0]['value'];if(_0x6dfd2a){const _0x54a561=_0x126ad6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2c246c=>_0x2c246c['model']==_0x6dfd2a);let _0x59bb54=_0x6dfd2a,_0x276146='';return _0x54a561&&(_0x59bb54=_0x54a561['label'],_0x276146=_0x585eab(_0x59bb54)['toLowerCase']()),{'type':'format','content':o(_0x4c75fa,'*Set\x20font\x20color:*\x20%0',_0x276146)['trim'](),'color':{'value':_0x6dfd2a,'title':_0x276146||_0x59bb54}};}return{'type':'format','content':o(_0x4c75fa,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x273b1f['commandName']){const _0x10982c=_0x273b1f['commandParams'][0x0]['value'];if(_0x10982c){const _0x578300=_0x126ad6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x49d136=>_0x49d136['model']==_0x10982c);let _0x38d9c5=_0x10982c,_0x1e0303='';return _0x578300&&(_0x38d9c5=_0x578300['label'],_0x1e0303=_0x585eab(_0x38d9c5)['toLowerCase']()),{'type':'format','content':o(_0x4c75fa,'*Set\x20font\x20background\x20color:*\x20%0',_0x1e0303)['trim'](),'color':{'value':_0x10982c,'title':_0x1e0303||_0x38d9c5}};}return{'type':'format','content':o(_0x4c75fa,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x4a996f{['afterInit'](){const _0x17e113=this['editor'],_0x4e753b=_0x17e113['plugins']['get']('TrackChangesEditing'),_0x2848ff=_0x17e113['commands']['get']('copyFormat'),_0x2c0c98=_0x17e113['commands']['get']('pasteFormat');_0x2848ff&&_0x2c0c98&&(_0x4e753b['enableDefaultAttributesIntegration']('pasteFormat'),_0x4e753b['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1e6fb7=this['editor'],_0xd717a9=_0x1e6fb7['locale'];_0x1e6fb7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10a5e0=>{if('formatBlock'!=_0x10a5e0['type']&&'formatInline'!=_0x10a5e0['type'])return;const {data:_0x46ed62}=_0x10a5e0;if(_0x46ed62&&'pasteFormat'===_0x46ed62['commandName']){const _0x490676=[],_0x4654e7=_0x46ed62['commandParams'][0x0];for(const [_0x3603dc,_0x13cce8]of Object['entries'](_0x4654e7))_0x490676['push'](so(_0x1e6fb7,_0x3603dc,_0x13cce8));return _0x490676['length']?{'type':'format','content':o(_0xd717a9,'*Set\x20format\x20to:*\x20%0',_0x490676['join'](',\x20'))}:{'type':'format','content':o(_0xd717a9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x25e966,_0x72748a,_0x2a581e){const _0x3b5186=_0x25e966['locale']['t'],_0x4de638=_0x72748a['split'](/(?=[A-Z])/)['join']('\x20'),_0x1bf92b=_0x3b5186(_0x4de638['charAt'](0x0)['toUpperCase']()+_0x4de638['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2a581e)return _0x1bf92b;if('fontColor'===_0x72748a||'fontBackgroundColor'===_0x72748a){const _0x51e114=_0x126ad6(_0x25e966['config']['get']('fontColor.colors'))['find'](_0x5b0229=>_0x5b0229['model']==_0x2a581e);return _0x1bf92b+'\x20('+(_0x51e114?_0x3b5186(_0x51e114['label'])['toLowerCase']():_0x2a581e)+')';}if('fontSize'===_0x72748a&&isNaN(parseFloat(_0x2a581e))){const _0x586ab1=_0x25e966['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x25e966['config']['get']('fontSize.options'))['find'](_0x2722df=>_0x2722df['model']==_0x2a581e);return _0x1bf92b+'\x20('+(_0x586ab1?_0x3b5186(_0x586ab1['title'])['toLowerCase']():_0x2a581e)+')';}return _0x1bf92b+'\x20('+_0x2a581e+')';}class it extends _0x4a996f{['_headingOptions'];['afterInit'](){const _0x4bf2d2=this['editor'];if(!_0x4bf2d2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4bf2d2['config']['get']('heading.options');const _0x37b9d7=_0x4bf2d2['locale'],_0x5cb457=_0x4bf2d2['plugins']['get']('TrackChangesEditing');_0x5cb457['enableDefaultAttributesIntegration']('heading');for(const _0x3da120 of this['_headingOptions'])'paragraph'!=_0x3da120['model']&&_0x5cb457['descriptionFactory']['registerElementLabel'](_0x3da120['model'],_0x213885=>{const _0x7f101a=this['_getHeadingLevel'](_0x3da120['model']);return null!==_0x7f101a?_0x391e55(_0x213885,_0x7f101a):_0x2b5463(_0x213885,_0x3da120['title']);});function _0x391e55(_0x31e183,_0x119027){return o(_0x37b9d7,'ELEMENT_HEADING',[_0x31e183,_0x119027]);}function _0x2b5463(_0x50e799,_0x188e9c){return o(_0x37b9d7,'ELEMENT_HEADING_CUSTOM',[_0x50e799,_0x188e9c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38d8c5=this['editor'],_0x563a6e=_0x38d8c5['locale'];function _0x4fe0fd(_0x4da83b,_0x1a0300){return o(_0x563a6e,'ELEMENT_HEADING_CUSTOM',[_0x4da83b,_0x1a0300]);}_0x38d8c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29b750=>{if('formatBlock'!=_0x29b750['type'])return;const {data:_0x1b5ca8}=_0x29b750;if(_0x1b5ca8&&'heading'==_0x1b5ca8['commandName']){const _0x4d38ba=_0x1b5ca8['commandParams'][0x0]['value'],_0x8d0c12=this['_getHeadingLevel'](_0x4d38ba);if(null!==_0x8d0c12)return{'type':'format','content':o(_0x563a6e,'*Change\x20to:*\x20%0',(_0x57d11e=0x1,_0x1ac312=_0x8d0c12,o(_0x563a6e,'ELEMENT_HEADING',[_0x57d11e,_0x1ac312])))};const _0x55cddd=this['_headingOptions']['find'](_0x3e3028=>_0x3e3028['model']===_0x4d38ba)['title'];return{'type':'format','content':o(_0x563a6e,'*Change\x20to:*\x20%0',_0x4fe0fd(0x1,_0x55cddd))};}var _0x57d11e,_0x1ac312;});}['_getHeadingLevel'](_0x45ff70){const _0x50dfa8=_0x45ff70['match'](/^heading(\d+)/);if(_0x50dfa8)return _0x50dfa8[0x1];const _0x54ce61=this['_headingOptions']?.['find'](_0x83c579=>_0x83c579['model']==_0x45ff70);if(_0x54ce61&&_0x54ce61['view']){const _0x273716=_0x54ce61['view'],_0xc2ab8b=(_0x273716['name']??_0x273716)['match'](/^h(\d+)/);if(_0xc2ab8b)return _0xc2ab8b[0x1];}return null;}}class et extends _0x4a996f{['afterInit'](){const _0x3e5959=this['editor'];if(!_0x3e5959['plugins']['has']('HighlightEditing'))return;const _0x92e2af=_0x3e5959['plugins']['get']('TrackChangesEditing'),_0x18a617=_0x3e5959['locale'];_0x92e2af['enableDefaultAttributesIntegration']('highlight'),_0x92e2af['registerInlineAttribute']('highlight'),_0x92e2af['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x18a617,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x507196=this['editor'],_0x4d3eb9=_0x507196['locale'];_0x507196['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e898e=>{if('formatInline'!=_0x4e898e['type'])return;const {data:_0x1400ee}=_0x4e898e;if(_0x1400ee&&'highlight'==_0x1400ee['commandName']){const _0x1290b6=_0x4d3eb9['t'],_0x2e6a6e=_0x1400ee['commandParams'][0x0]['value'];if(_0x2e6a6e){const _0x246e5d=_0x507196['config']['get']('highlight.options')['find'](_0x1a8561=>_0x1a8561['model']==_0x2e6a6e),_0x417e63=_0x1290b6(_0x246e5d['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d3eb9,'*Set\x20highlight:*\x20%0',_0x417e63),'color':{'value':_0x246e5d['color'],'title':_0x246e5d['title']}};}return{'type':'format','content':o(_0x4d3eb9,'*Remove\x20highlight*',o(_0x4d3eb9,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x4a996f{['afterInit'](){const _0x561be2=this['editor'];if(!_0x561be2['plugins']['has']('HorizontalLineEditing'))return;_0x561be2['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5ea5c8=_0x561be2['plugins']['get']('TrackChangesEditing'),_0x47df9c=_0x561be2['locale'];_0x5ea5c8['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1bb899=>o(_0x47df9c,'ELEMENT_HORIZONTAL_LINE',_0x1bb899)),_0x561be2['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x36b179,{writer:_0x4f65d6,options:_0x55d961})=>{if(!_0x55d961['showSuggestionHighlights'])return null;const _0x3747be=_0x4f65d6['createContainerElement']('div'),_0x549580=_0x4f65d6['createEmptyElement']('hr');return _0x4f65d6['addClass']('ck-horizontal-line',_0x3747be),_0x4f65d6['insert'](_0x4f65d6['createPositionAt'](_0x3747be,0x0),_0x549580),_0x3747be;},'converterPriority':'high'});}}class ot extends _0x4a996f{['afterInit'](){const _0x534150=this['editor'];if(!_0x534150['plugins']['has']('HtmlEmbed'))return;const _0x314d7d=_0x534150['plugins']['get']('TrackChangesEditing'),_0x47be86=_0x534150['locale'];_0x314d7d['descriptionFactory']['registerElementLabel']('rawHtml',_0x5eeba0=>o(_0x47be86,'ELEMENT_HTML_EMBED',_0x5eeba0)),_0x314d7d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x314d7d['registerBlockAttribute']('value'),_0x314d7d['descriptionFactory']['registerDescriptionCallback'](_0x59e491=>{if('attribute'!=_0x59e491['type'])return;const {data:_0x3d1a4d}=_0x59e491;if(_0x3d1a4d&&'value'==_0x3d1a4d['key']&&_0x59e491['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x31894a=o(_0x47be86,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x47be86,'*Change\x20%0\x20content*',_0x31894a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59eddc=this['editor'],_0x1efe04=_0x59eddc['locale'];_0x59eddc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42659f=>{if('formatBlock'!=_0x42659f['type'])return;const {data:_0x16eb05}=_0x42659f;if(_0x16eb05&&'htmlEmbed'==_0x16eb05['commandName']){const _0x18aa09=o(_0x1efe04,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1efe04,'*Change\x20%0\x20content*',_0x18aa09)};}});}}class rt extends _0x4a996f{['afterInit'](){const _0x14be8d=this['editor'];if(!_0x14be8d['plugins']['has']('ImageEditing'))return;const _0x7af8a5=_0x14be8d['plugins']['get']('TrackChangesEditing'),_0x3000ac=_0x14be8d['plugins']['get']('ImageUtils'),_0x5c1fb9=_0x14be8d['locale'];_0x7af8a5['enableCommand']('insertImage'),_0x7af8a5['descriptionFactory']['registerElementLabel']('imageBlock',_0x51c095=>o(_0x5c1fb9,'ELEMENT_IMAGE',_0x51c095)),_0x7af8a5['descriptionFactory']['registerElementLabel']('imageInline',_0x136ed9=>o(_0x5c1fb9,'ELEMENT_INLINE_IMAGE',_0x136ed9)),_0x7af8a5['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5c1fb9,'ELEMENT_CAPTION')),_0x14be8d['plugins']['has']('ImageUploadEditing')&&_0x7af8a5['enableCommand']('uploadImage'),_0x14be8d['plugins']['has']('ImageBlockEditing')&&_0x14be8d['plugins']['has']('ImageInlineEditing')&&(_0x7af8a5['enableCommand']('imageTypeInline',(_0x1630ab,_0x4be4f0)=>{const _0x23a69=_0x3000ac['getClosestSelectedImageElement'](_0x14be8d['model']['document']['selection']);_0x14be8d['model']['change'](()=>{_0x7af8a5['markBlockFormat'](_0x23a69,{'commandName':'imageTypeInline','commandParams':[_0x4be4f0]},[],'convertBlockImageToInline');});}),_0x7af8a5['enableCommand']('imageTypeBlock',(_0x3031f1,_0x40d41d)=>{_0x14be8d['model']['change'](_0x1e72c2=>{let _0x55164b=_0x3000ac['getClosestSelectedImageElement'](_0x14be8d['model']['document']['selection']),_0xc89fc6=_0x1e72c2['createRangeOn'](_0x55164b);const _0x29f3b2=_0x471695['fromPosition'](_0xc89fc6['start'],'toPrevious'),_0x25b093=_0x471695['fromPosition'](_0xc89fc6['end'],'toNext');_0x7af8a5['forceDefaultExecution'](()=>_0x3031f1(_0x40d41d)),_0x55164b=_0x3000ac['getClosestSelectedImageElement'](_0x14be8d['model']['document']['selection']),_0xc89fc6=_0x1e72c2['createRangeOn'](_0x55164b);const _0x2e5e37=_0x1e72c2['createRange'](_0x29f3b2,_0x25b093);_0x29f3b2['detach'](),_0x25b093['detach'](),_0x7af8a5['markBlockFormat'](_0x55164b,{'commandName':'imageTypeInline','commandParams':[_0x40d41d]},[],'convertInlineImageToBlock'),_0x2e5e37['start']['isBefore'](_0xc89fc6['start'])&&_0x7af8a5['markInsertion'](_0x1e72c2['createRange'](_0x2e5e37['start'],_0xc89fc6['start']),'convertInlineImageToBlock'),_0xc89fc6['end']['isBefore'](_0x2e5e37['end'])&&_0x7af8a5['markInsertion'](_0x1e72c2['createRange'](_0xc89fc6['end'],_0x2e5e37['end']),'convertInlineImageToBlock');});}),_0x7af8a5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x7af8a5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x7af8a5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x7af8a5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x7af8a5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x7af8a5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5058af])=>{const _0x52224b=_0x7af8a5['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x389e79=_0x5058af['start'],_0x1ab02a=_0x5058af['end'];const _0x16fecf=_0x14be8d['model']['schema']['getNearestSelectionRange'](_0x389e79,'backward'),_0x2b4e2f=_0x14be8d['model']['schema']['getNearestSelectionRange'](_0x1ab02a,'forward');_0x16fecf['isCollapsed']&&(_0x389e79=_0x16fecf['start']),_0x2b4e2f['isCollapsed']&&(_0x1ab02a=_0x2b4e2f['end']),_0x52224b([_0x14be8d['model']['createRange'](_0x389e79,_0x1ab02a)]);}),_0x7af8a5['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xbc951e),_0x7af8a5['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xbc951e)),_0x14be8d['plugins']['has']('ImageCaptionEditing')&&(_0x7af8a5['enableCommand']('toggleImageCaption',(_0x14b308,_0x189d05)=>{const _0x2a0ee3=_0x14be8d['plugins']['get']('ImageCaptionUtils');let _0x23bae5=_0x3000ac['getClosestSelectedImageElement'](_0x14be8d['model']['document']['selection']),_0x3f59c7=_0x2a0ee3['getCaptionFromImageModelElement'](_0x23bae5);_0x14be8d['model']['change'](()=>{if(_0x3f59c7)return void _0x7af8a5['markDeletion'](_0x14be8d['model']['createRangeOn'](_0x3f59c7));const _0x47814b=_0x3000ac['isBlockImage'](_0x23bae5);_0x14b308(_0x189d05),_0x23bae5=_0x3000ac['getClosestSelectedImageElement'](_0x14be8d['model']['document']['selection']),_0x3f59c7=_0x2a0ee3['getCaptionFromImageModelElement'](_0x23bae5),_0x7af8a5['markInsertion'](_0x14be8d['model']['createRangeOn'](_0x3f59c7),_0x47814b?null:'imageCaption');});}),_0x7af8a5['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xbc951e));const _0x1e686d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2c6976(_0x45277e,_0x49a4e8){const _0x1c4290=_0x1e686d['findIndex'](({type:_0x2fb17a,subType:_0x5e311a})=>_0x45277e['type']==_0x2fb17a&&_0x45277e['subType']==_0x5e311a),_0x7ce5df=_0x1e686d['findIndex'](({type:_0x5a96f7,subType:_0x3c5651})=>_0x49a4e8['type']==_0x5a96f7&&_0x49a4e8['subType']==_0x3c5651);if(_0x1c4290<0x0||_0x7ce5df<0x0)return!0x1;const _0x1fd37f=_0x45277e['getFirstRange'](),_0x3c917e=_0x49a4e8['getFirstRange']();if((0x0==_0x1c4290||0x1==_0x1c4290)&&0x2==_0x7ce5df&&_0x1fd37f['isIntersecting'](_0x3c917e))return!0x0;if(0x2==_0x1c4290&&0x3==_0x7ce5df){const _0x51df98=_0x7af8a5['_findSuggestions'](_0x1fd37f,'insertion')['filter'](({suggestion:_0x54e436,meta:_0x273ed3})=>_0x273ed3['isOwn']&&'convertInlineImageToBlock'==_0x54e436['subType']);if(_0x51df98['length']>0x1&&_0x3c917e['end']['isEqual'](_0x1fd37f['start']))return!0x0;if(0x1==_0x51df98['length']&&(_0x1fd37f['start']['isEqual'](_0x3c917e['end'])||_0x1fd37f['end']['isEqual'](_0x3c917e['start'])))return!0x0;}if(0x3==_0x1c4290&&0x3==_0x7ce5df&&_0x1fd37f['start']['isBefore'](_0x3c917e['start'])){const _0x3bdd6a=_0x1fd37f['end']['nodeAfter'],_0x398e47=_0x3c917e['start']['nodeBefore'];return _0x3000ac['isBlockImage'](_0x3bdd6a)&&_0x3bdd6a===_0x398e47;}return!0x1;}function _0xbc951e(_0x4918c6,_0x1ef121){return _0x2c6976(_0x4918c6,_0x1ef121)?[_0x4918c6,_0x1ef121]:_0x2c6976(_0x1ef121,_0x4918c6)?[_0x1ef121,_0x4918c6]:null;}_0x14be8d['plugins']['has']('ImageResize')&&(_0x7af8a5['enableDefaultAttributesIntegration']('resizeImage'),_0x7af8a5['registerBlockAttribute']('resizedWidth'),_0x7af8a5['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5c1fb9,'FORMAT_IMAGE_SIZE'))),_0x14be8d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x7af8a5['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x7af8a5['registerBlockAttribute']('alt')),_0x14be8d['plugins']['has']('PictureEditing')&&(_0x7af8a5['registerBlockAttribute']('sources'),_0x7af8a5['descriptionFactory']['registerDescriptionCallback'](_0x37ce26=>{if('attribute'!=_0x37ce26['type'])return;const {data:_0x329e1d}=_0x37ce26;return _0x329e1d&&'sources'==_0x329e1d['key']?{'type':'format','content':''}:void 0x0;})),_0x14be8d['plugins']['has']('ImageSizeAttributes')&&(_0x7af8a5['registerBlockAttribute']('width'),_0x7af8a5['registerBlockAttribute']('height'),_0x7af8a5['descriptionFactory']['registerDescriptionCallback'](_0x332ff1=>{if('attribute'!=_0x332ff1['type'])return;const {data:_0x6640c5}=_0x332ff1;return!_0x6640c5||'width'!=_0x6640c5['key']&&'height'!=_0x6640c5['key']?void 0x0:{'type':'format','content':''};})),_0x7af8a5['descriptionFactory']['registerDescriptionCallback'](_0x434afd=>{if(!!_0x1e686d['find'](({type:_0x47307f,subType:_0x1c6466})=>_0x434afd['type']==_0x47307f&&_0x434afd['subType']==_0x1c6466))return _0x434afd['previous']?{}:void 0x0;}),_0x7af8a5['descriptionFactory']['registerDescriptionCallback'](_0x317207=>{if('insertion'==_0x317207['type']||'deletion'==_0x317207['type']){const _0x3bbf25=_0x317207['getContainedElement']();if(_0x3bbf25&&_0x3bbf25['is']('element','caption'))return{'type':'insertion'==_0x317207['type']?'addObject':'removeObject','element':_0x3bbf25,'quantity':0x1};}}),_0x7af8a5['descriptionFactory']['registerDescriptionCallback'](_0xb78c73=>'formatBlock'==_0xb78c73['type']&&'convertInlineImageToBlock'==_0xb78c73['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xb78c73['type']&&'convertBlockImageToInline'==_0xb78c73['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x7af8a5['descriptionFactory']['registerDescriptionCallback'](_0x2b48b8=>{if('attribute'!=_0x2b48b8['type'])return;const {data:_0x5e0318}=_0x2b48b8;if(!_0x5e0318||'alt'!=_0x5e0318['key'])return;const _0x35a858=_0x5e0318['newValue'];return _0x35a858?{'type':'format','content':o(_0x5c1fb9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x35a858+'\x22')}:{'type':'format','content':o(_0x5c1fb9,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d9eaa=this['editor'],_0x1959f1=_0x2d9eaa['locale'];_0x2d9eaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x510d85=>{if('formatBlock'!=_0x510d85['type']&&'formatInline'!=_0x510d85['type'])return;const {data:_0x2c0ac2}=_0x510d85;if(_0x2c0ac2){if('imageTextAlternative'==_0x2c0ac2['commandName']){const _0x13a20b=_0x2c0ac2['commandParams'][0x0]['newValue'];return _0x13a20b?{'type':'format','content':o(_0x1959f1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x13a20b+'\x22')}:{'type':'format','content':o(_0x1959f1,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2c0ac2['commandName']){const _0x472379=_0x2c0ac2['commandParams'][0x0]['width'];return _0x472379?{'type':'format','content':o(_0x1959f1,'*Set\x20image\x20width:*\x20%0',_0x472379)}:{'type':'format','content':o(_0x1959f1,'*Reset\x20image\x20width*')};}}});}}class at extends _0x4a996f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1bf442=this['editor']['locale'],_0x273fad=this['editor']['plugins']['get']('TrackChangesEditing');_0x273fad['enableDefaultAttributesIntegration']('replaceImageSource'),_0x273fad['registerBlockAttribute']('src'),_0x273fad['descriptionFactory']['registerDescriptionCallback'](_0x249107=>{if('attribute'!=_0x249107['type'])return;const {data:_0x5d1abe}=_0x249107;return _0x5d1abe&&'src'==_0x5d1abe['key']?_0x5d1abe['newValue']&&_0x5d1abe['oldValue']?{'type':'format','content':o(_0x1bf442,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1a7cb6=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a7cb6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1a7cb6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a7cb6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1a7cb6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dfde4=this['editor'],_0x301a7a=_0x3dfde4['locale'];_0x3dfde4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfa638d=>{if('formatBlock'!=_0xfa638d['type']&&'formatInline'!=_0xfa638d['type'])return;const {data:_0x24b48a}=_0xfa638d;if(!_0x24b48a||'replaceImageSource'!=_0x24b48a['commandName'])return;return{'type':'format','content':o(_0x301a7a,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x4a996f{['afterInit'](){const _0x4cdb4d=this['editor'];if(!_0x4cdb4d['plugins']['has']('ImageStyleEditing'))return;const _0x5b3789=_0x4cdb4d['plugins']['get']('TrackChangesEditing'),_0x54f405=_0x4cdb4d['plugins']['get']('ImageUtils'),_0x1876f5={};_0x5b3789['enableCommand']('imageStyle',(_0x1793a0,_0x47dbd7)=>{const _0x392d40=_0x4cdb4d['plugins']['get']('Users')['me'],_0x2e0c8d=_0x4cdb4d['commands']['get']('imageStyle');let _0x44852d=_0x54f405['getClosestSelectedImageElement'](_0x4cdb4d['model']['document']['selection']),_0x1868c5=_0x4cdb4d['model']['createRangeOn'](_0x44852d),_0x45cc31=_0x2e0c8d['value'];if(_0x45cc31==_0x47dbd7['value'])return;const _0x44e948={'commandName':'imageStyle','commandParams':[_0x47dbd7],'formatGroupId':_0x13cee6()};_0x4cdb4d['model']['change'](()=>{if(_0x5b3789['getSuggestions']()['filter'](_0x22262a=>_0x22262a['isInContent']&&_0x392d40==_0x22262a['author']&&('formatBlock'==_0x22262a['type']||'formatInline'==_0x22262a['type'])&&('imageStylePreApply'==_0x22262a['subType']||'imageStylePostApply'==_0x22262a['subType'])&&_0x22262a['getFirstRange']()['isEqual'](_0x1868c5))['forEach'](_0x55881c=>_0x5b3789['discardSuggestion'](_0x55881c['head'])),_0x44852d=_0x54f405['getClosestSelectedImageElement'](_0x4cdb4d['model']['document']['selection']),_0x1868c5=_0x4cdb4d['model']['createRangeOn'](_0x44852d),_0x2e0c8d['refresh'](),_0x4cdb4d['commands']['get']('imageTypeInline')['refresh'](),_0x4cdb4d['commands']['get']('imageTypeBlock')['refresh'](),_0x45cc31=_0x2e0c8d['value'],_0x45cc31!=_0x47dbd7['value'])return _0x54f405['isInlineImage'](_0x44852d)&&_0x2e0c8d['shouldConvertImageType'](_0x47dbd7['value'],_0x44852d)?(_0x1793a0({..._0x47dbd7,'setImageSizes':!0x1}),_0x44852d=_0x54f405['getClosestSelectedImageElement'](_0x4cdb4d['model']['document']['selection']),void _0x5b3789['markBlockFormat'](_0x44852d,{..._0x44e948,'commandReversedParams':[{'value':_0x45cc31||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x54f405['isBlockImage'](_0x44852d)?_0x5b3789['markBlockFormat'](_0x44852d,_0x44e948,[],'imageStylePostApply'):_0x5b3789['markInlineFormat'](_0x1868c5,_0x44e948,'imageStylePostApply'));});});for(const _0x34293c of _0x4cdb4d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1876f5[_0x34293c['name']]=_0x34293c['title']['toLowerCase']();_0x5b3789['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5b3789['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5b3789['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5b3789['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x32fa49])=>{_0x54f405['setImageNaturalSizeAttributes'](_0x32fa49['getContainedElement']());}),_0x5b3789['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x29e82a,_0x502d42)=>{_0x5b3789['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x29e82a,{'commandName':_0x502d42['commandName'],'commandParams':_0x502d42['commandReversedParams']});}),_0x5b3789['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x561952,_0x16669f){if(_0x4b51e5(_0x561952,_0x16669f))return[_0x561952,_0x16669f];if(_0x4b51e5(_0x16669f,_0x561952))return[_0x16669f,_0x561952];return null;});const _0x27ed1e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4b51e5(_0x11777d,_0xb3abfc){const _0x53a9df=_0x27ed1e['findIndex'](({type:_0x2f141e,subType:_0x382ec7})=>_0x11777d['type']==_0x2f141e&&_0x11777d['subType']==_0x382ec7),_0x5c0150=_0x27ed1e['findIndex'](({type:_0xa167e5,subType:_0x4a3f73})=>_0xb3abfc['type']==_0xa167e5&&_0xb3abfc['subType']==_0x4a3f73);if(_0x53a9df<0x0||_0x5c0150<0x0)return!0x1;const _0x5bad4d=_0x11777d['getFirstRange'](),_0x516a83=_0xb3abfc['getFirstRange']();if((0x0==_0x53a9df||0x1==_0x53a9df)&&0x2==_0x5c0150&&_0x5bad4d['isIntersecting'](_0x516a83))return!0x0;if(0x2==_0x53a9df&&0x3==_0x5c0150){const _0x4edea2=_0x5b3789['_findSuggestions'](_0x5bad4d,'insertion')['filter'](({suggestion:_0x668e99,meta:_0x6508dc})=>_0x6508dc['isOwn']&&'convertInlineImageToBlock'==_0x668e99['subType']);if(_0x4edea2['length']>0x1&&_0x516a83['end']['isEqual'](_0x5bad4d['start']))return!0x0;if(0x1==_0x4edea2['length']&&(_0x5bad4d['start']['isEqual'](_0x516a83['end'])||_0x5bad4d['end']['isEqual'](_0x516a83['start'])))return!0x0;}if(0x3==_0x53a9df&&0x3==_0x5c0150&&_0x5bad4d['start']['isBefore'](_0x516a83['start'])){const _0x48fd68=_0x5bad4d['end']['nodeAfter'],_0x492bfa=_0x516a83['start']['nodeBefore'];return _0x54f405['isBlockImage'](_0x48fd68)&&_0x48fd68===_0x492bfa;}return!0x1;}_0x4cdb4d['model']['document']['registerPostFixer'](()=>{let _0x5767ae=!0x1;const _0x23e592=Array['from'](_0x4cdb4d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc3efeb,data:_0x5494f7}of _0x23e592){const {group:_0x495e65,type:_0x500d55,subType:_0x14fd43,id:_0x6d29f6}=_0x5b3789['_splitMarkerName'](_0xc3efeb);if('suggestion'==_0x495e65&&_0x5b3789['hasSuggestion'](_0x6d29f6)){if('formatBlock'==_0x500d55&&('imageStylePreApply'==_0x14fd43||'imageStylePostApply'==_0x14fd43)){const _0x1503d1=_0x5b3789['getSuggestion'](_0x6d29f6);if(_0x5494f7['newRange']){const _0x1073e0=_0x1503d1['getFirstRange']()['getContainedElement']();if(_0x54f405['isBlockImage'](_0x1073e0))continue;_0x5b3789['discardSuggestion'](_0x1503d1),_0x5767ae=!0x0;}}if('insertion'==_0x500d55&&'imageCaption'==_0x14fd43&&!_0x5494f7['newRange']){const _0x405bf1=_0x5b3789['getSuggestion'](_0x6d29f6);_0x405bf1['next']&&_0x405bf1['next']['isInContent']&&(_0x5b3789['discardSuggestion'](_0x405bf1['next']),_0x5767ae=!0x0);}}}return _0x5767ae;}),this['_registerLegacyDescription'](_0x1876f5);}['_registerLegacyDescription'](_0x5bb09e){const _0x478428=this['editor'],_0x52bd5e=_0x478428['locale'];_0x478428['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a04f7=>{if('formatBlock'!=_0x2a04f7['type']&&'formatInline'!=_0x2a04f7['type'])return;const {data:_0x4a85a9}=_0x2a04f7;if(!_0x4a85a9||'imageStyle'!=_0x4a85a9['commandName'])return;const _0x2c2bd8=_0x4a85a9['commandParams'][0x0]['value'];return _0x50cf29('side'===_0x2c2bd8?o(_0x52bd5e,'FORMAT_SIDE_IMAGE'):_0x5bb09e[_0x2c2bd8]||_0x2c2bd8);function _0x50cf29(_0x28eafa){return{'type':'format','content':o(_0x52bd5e,'*Format:*\x20%0',_0x28eafa)};}});}}class ut extends _0x4a996f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5d016d){super(_0x5d016d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x222c46=this['editor'],_0x3ffaaa=_0x222c46['commands']['get']('importWord'),_0x2bd8d1=_0x222c46['commands']['get']('trackChanges');_0x3ffaaa&&(_0x3ffaaa['on']('execute',(_0x245751,[,_0x3029ba])=>{this['_trackChangesValueDuringImport']=_0x2bd8d1['value'],_0x3029ba['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3ffaaa,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3ffaaa,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2bd8d1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x222c46['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3deb98,_0x34701a){const {suggestions:_0x43166a}=_0x34701a,_0x5c6098=this['editor']['commands']['get']('trackChanges'),_0x4bb0bd=_0x5c6098['value'];this['_trackChangesValueDuringImport']!==_0x4bb0bd&&(_0x5c6098['execute'](),this['_trackChangesExecuted']=!0x0),_0x43166a&&_0x43166a['forEach'](({id:_0x15e668,type:_0xb9de88,author:_0x101735,created_at:_0x4f1943})=>{const _0x172db4={'id':_0x15e668,'type':_0xb9de88,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x101735,'createdAt':_0x4f1943?new Date(_0x4f1943):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x172db4);});}}class ft extends _0x4a996f{['afterInit'](){const _0x4eec0b=this['editor'],_0x38a262=_0x4eec0b['plugins']['get']('TrackChangesEditing');if(_0x4eec0b['plugins']['has']('IndentEditing')&&(_0x38a262['enableCommand']('indent'),_0x38a262['enableCommand']('outdent')),_0x4eec0b['plugins']['has']('IndentBlock')){for(const _0x61cb76 of['indentBlock','outdentBlock'])_0x38a262['enableDefaultAttributesIntegration'](_0x61cb76);}const _0x4a08fd=_0x4eec0b['locale'];_0x38a262['registerBlockAttribute']('blockIndent'),_0x38a262['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4a08fd,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c62e2=this['editor'],_0x504769=_0x4c62e2['locale'],_0x4902b2=_0x4c62e2['plugins']['get']('TrackChangesEditing');_0x4902b2['descriptionFactory']['registerDescriptionCallback'](_0x1c7a1c=>{if('formatBlock'!=_0x1c7a1c['type'])return;const {data:_0x7fd5b5}=_0x1c7a1c;if(!_0x7fd5b5)return;if('indentBlock'!=_0x7fd5b5['commandName']&&'outdentBlock'!=_0x7fd5b5['commandName'])return;const _0xb93be2=_0x1c7a1c['getItems']()[0x0],_0x2c12dc=_0x4902b2['descriptionFactory']['getItemLabel'](_0xb93be2);return'indentBlock'==_0x7fd5b5['commandName']?{'type':'format','content':o(_0x504769,'*Indent:*\x20%0',_0x2c12dc)}:'outdentBlock'==_0x7fd5b5['commandName']?{'type':'format','content':o(_0x504769,'*Outdent:*\x20%0',_0x2c12dc)}:void 0x0;});}}class ht extends _0x4a996f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x4a996f{['afterInit'](){const _0x1a9a35=this['editor'];if(!_0x1a9a35['plugins']['has']('LinkEditing'))return;const _0x392e2f=_0x1a9a35['plugins']['get']('TrackChangesEditing'),_0x8cd091=_0x1a9a35['commands']['get']('link');_0x392e2f['enableDefaultAttributesIntegration']('link'),_0x392e2f['enableDefaultAttributesIntegration']('unlink'),_0x392e2f['registerInlineAttribute']('linkHref');for(const _0x4ad8b4 of _0x8cd091['manualDecorators'])_0x392e2f['registerInlineAttribute'](_0x4ad8b4['id']),_0x392e2f['descriptionFactory']['registerAttributeLabel'](_0x4ad8b4['id'],'link\x20('+_0x4ad8b4['label']['toLowerCase']()+')');_0x392e2f['descriptionFactory']['registerDescriptionCallback'](_0x47e1c1=>{if('attribute'!=_0x47e1c1['type'])return;const {data:_0x422c5e}=_0x47e1c1;if(!_0x422c5e||'linkHref'!=_0x422c5e['key'])return;const _0x58fe35=_0x422c5e['newValue'],_0x2aef36=_0x1a9a35['locale'];return{'type':'format','content':null==_0x58fe35?o(_0x2aef36,'*Remove\x20link*'):o(_0x2aef36,'*Set\x20link:*\x20%0','\x22'+_0x58fe35+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fb88f=this['editor'],_0x10afff=_0x2fb88f['locale'];_0x2fb88f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5575f8=>{if('formatInline'!=_0x5575f8['type'])return;const {data:_0x5aaaf2}=_0x5575f8;if(_0x5aaaf2){if('link'==_0x5aaaf2['commandName']){const _0x4391cb=_0x5aaaf2['commandParams'][0x0];return{'type':'format','content':o(_0x10afff,'*Set\x20link:*\x20%0','\x22'+_0x4391cb+'\x22')};}return'unlink'==_0x5aaaf2['commandName']?{'type':'format','content':o(_0x10afff,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x4a996f{['afterInit'](){const _0x46de27=this['editor'],_0x1da148=_0x46de27['locale'];if(!_0x46de27['plugins']['has']('LegacyListEditing'))return;const _0x5deae9=_0x46de27['plugins']['get']('TrackChangesEditing'),_0x2363ca=_0x46de27['plugins']['has']('LegacyTodoListEditing');function _0x2d55fb(_0x1ac635){return()=>{const _0x33f278=_0x46de27['model']['document']['selection'],_0x3ac17c=_0x46de27['commands']['get'](_0x1ac635);if(_0x3ac17c['value'])return void _0x46de27['execute']('paragraph',{});const _0x5b22f7=_0x1ac635['slice'](0x0,-0x4),_0x431ad9=function(_0x153052,_0x1a5a9d,_0x4c32cb){let _0x2aa9dd=Array['from'](_0x153052)['filter'](_0x5e24fb=>function(_0x35f40e,_0x108241){return _0x108241['checkChild'](_0x35f40e['parent'],'listItem')&&!_0x108241['isObject'](_0x35f40e);}(_0x5e24fb,_0x4c32cb));_0x2aa9dd=_0x2aa9dd['filter'](_0x24f174=>!_0x24f174['is']('element','listItem')||_0x24f174['getAttribute']('listType')!=_0x1a5a9d);const _0x3b7723=new Set();for(const _0x35f17d of _0x2aa9dd)_0x35f17d['is']('element','listItem')?_0x3b7723['add'](Le(_0x35f17d)):_0x3b7723['add'](_0x35f17d);return Array['from'](_0x3b7723);}(_0x33f278['getSelectedBlocks'](),_0x5b22f7,_0x46de27['model']['schema']);_0x46de27['model']['change'](()=>{for(const _0xdb46b of _0x431ad9)_0x5deae9['markBlockFormat'](_0xdb46b,{'commandName':_0x1ac635,'commandParams':[{'forceValue':!_0x3ac17c['value']}],'formatGroupId':'blockName'},Ee(_0xdb46b));});};}function _0x12d135(_0x52db2e){return()=>{const _0x2d670d=function(_0x5a6078){let _0x26a3c8=Array['from'](_0x5a6078);const _0x2bff62=_0x26a3c8['findIndex'](_0x4404c0=>'listItem'!=_0x4404c0['name']);return _0x2bff62>-0x1&&(_0x26a3c8=_0x26a3c8['slice'](0x0,_0x2bff62)),_0x26a3c8;}(_0x46de27['model']['document']['selection']['getSelectedBlocks']()),_0x4d2462=_0x46de27['model']['createRange'](_0x46de27['model']['createPositionAt'](_0x2d670d[0x0],'before'),_0x46de27['model']['createPositionAt'](_0x2d670d[_0x2d670d['length']-0x1],'end'));_0x46de27['model']['change'](()=>{_0x5deae9['markBlockFormat'](_0x4d2462,{'commandName':_0x52db2e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1b3e8c){const _0x3db0c0=new Set();for(const _0x1bfccb of _0x1b3e8c){let _0x404cdf=_0x1bfccb['nextSibling'];for(;_0x404cdf&&_0x404cdf['getAttribute']('listIndent')>_0x1bfccb['getAttribute']('listIndent');)_0x3db0c0['add'](_0x404cdf),_0x404cdf=_0x404cdf['nextSibling'];}return Array['from'](_0x3db0c0);}(_0x2d670d));});};}_0x5deae9['enableCommand']('numberedList',_0x2d55fb('numberedList')),_0x5deae9['enableCommand']('bulletedList',_0x2d55fb('bulletedList')),_0x2363ca&&_0x5deae9['enableCommand']('todoList',_0x2d55fb('todoList')),_0x5deae9['enableCommand']('indentList',_0x12d135('indentList')),_0x5deae9['enableCommand']('outdentList',_0x12d135('outdentList')),_0x2363ca&&_0x5deae9['enableCommand']('checkTodoList',()=>{const _0x3e47b9=_0x46de27['commands']['get']('checkTodoList'),_0x369892=Array['from'](_0x3e47b9['_selectedElements']);_0x369892['filter'](_0x1a2f85=>_0x1a2f85['getAttribute']('todoListChecked')!=_0x3e47b9['value']),_0x46de27['model']['change'](()=>{for(const _0x5b9039 of _0x369892)_0x5deae9['markBlockFormat'](_0x5b9039,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3e47b9['value']}]});});}),_0x5deae9['descriptionFactory']['registerElementLabel']('listItem',_0x4d6aee=>o(_0x1da148,'ELEMENT_LIST_ITEM',_0x4d6aee)),_0x5deae9['descriptionFactory']['registerDescriptionCallback'](_0x48b2a8=>{if('formatBlock'!=_0x48b2a8['type']&&'formatInline'!=_0x48b2a8['type'])return;const {data:_0x1a2580}=_0x48b2a8;if(_0x1a2580){if('numberedList'==_0x1a2580['commandName']||'bulletedList'==_0x1a2580['commandName']||'todoList'==_0x1a2580['commandName'])switch(_0x1a2580['commandName']['replace']('List','')){case'bulleted':return _0x336b83(o(_0x1da148,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x336b83(o(_0x1da148,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x336b83(o(_0x1da148,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1a2580['commandName'])return{'type':'format','content':o(_0x1da148,'*Indent:*\x20%0',o(_0x1da148,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1a2580['commandName'])return{'type':'format','content':o(_0x1da148,'*Outdent:*\x20%0',o(_0x1da148,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1a2580['commandName'])return _0x1a2580['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1da148,'*Check\x20item*')}:{'type':'format','content':o(_0x1da148,'*Uncheck\x20item*')};}function _0x336b83(_0x2b4c53){return{'type':'format','content':o(_0x1da148,'*Change\x20to:*\x20%0',_0x2b4c53)};}});}}function Le(_0x4bff8d){const _0x3b973b=_0x4bff8d['getAttribute']('listIndent');if(0x0==_0x3b973b)return _0x4bff8d;let _0x27bea6=_0x4bff8d;for(;_0x4bff8d['previousSibling']&&_0x4bff8d['previousSibling']['is']('element','listItem');){const _0x5ec76d=_0x4bff8d['previousSibling']['getAttribute']('listIndent');if(_0x5ec76d==_0x3b973b)_0x27bea6=_0x4bff8d['previousSibling'];else{if(_0x5ec76d<_0x3b973b)break;}_0x4bff8d=_0x4bff8d['previousSibling'];}return _0x27bea6;}function Ee(_0x365a51){const _0x57f42a=[];if(_0x365a51['is']('element','listItem')&&_0x365a51['getAttribute']('listIndent')>0x0){let _0x2dade6=_0x365a51['nextSibling'];for(;_0x2dade6&&'listItem'==_0x2dade6['name']&&_0x2dade6['getAttribute']('listIndent')==_0x365a51['getAttribute']('listIndent');)_0x57f42a['push'](_0x2dade6),_0x2dade6=_0x2dade6['nextSibling'];}return _0x57f42a;}class Q extends _0x4a996f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4eceaa=this['editor']['config']['get']('list.properties'),_0x2f5c08=this['editor']['plugins']['get']('TrackChangesEditing');_0x4eceaa['styles']&&_0x2f5c08['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4eceaa['reversed']&&_0x2f5c08['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4eceaa['startIndex']&&_0x2f5c08['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x2f5c08['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x433732,_0x7b5349={}){const _0x4f4efd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xab91e1=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4f4efd['markMultiRangeBlockFormat'](_0xab91e1,{'commandName':'listStyle','commandParams':[{'type':_0x7b5349['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x44642a,_0x3b226d={}){const _0x645e66=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a4653=this['_getSuggestionBlocks'](_0x50f47e=>_0x50f47e['is']('element','listItem')&&'numbered'===_0x50f47e['getAttribute']('listType'));if(_0x2a4653['length']<0x1)return;const _0x2321cf=_0x2a4653['map'](_0xd33965=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xd33965,'before'),this['editor']['model']['createPositionAt'](_0xd33965,0x0)));this['editor']['model']['change'](()=>{_0x645e66['markMultiRangeBlockFormat'](_0x2321cf,{'commandName':'listReversed','commandParams':[{'reversed':_0x3b226d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x10af45,_0x19aefa={}){const _0xd23efc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27edeb=this['_getSuggestionBlocks'](_0x2a90dc=>_0x2a90dc['is']('element','listItem')&&'numbered'===_0x2a90dc['getAttribute']('listType'));if(_0x27edeb['length']<0x1)return;const _0x5f35ee=_0x27edeb['map'](_0x44b110=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x44b110,'before'),this['editor']['model']['createPositionAt'](_0x44b110,0x0)));this['editor']['model']['change'](()=>{_0xd23efc['markMultiRangeBlockFormat'](_0x5f35ee,{'commandName':'listStart','commandParams':[{'startIndex':_0x19aefa['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x15e3a3){if('formatBlock'!=_0x15e3a3['type']&&'formatInline'!=_0x15e3a3['type'])return;const _0xceadeb=this['editor']['locale'],{data:_0x4fd4f0}=_0x15e3a3;if(!_0x4fd4f0)return;let _0x3c3568,_0x3a14fd;switch(_0x4fd4f0['commandName']){case'listStyle':_0x3c3568='*Change\x20to:*\x20%0',_0x3a14fd={'type':'format','content':o(_0xceadeb,_0x3c3568,o(_0xceadeb,this['_getTranslationKeyForListStyle'](_0x4fd4f0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3c3568=_0x4fd4f0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3a14fd={'type':'format','content':o(_0xceadeb,_0x3c3568)};break;case'listStart':_0x3c3568='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3a14fd={'type':'format','content':o(_0xceadeb,_0x3c3568,_0x4fd4f0['commandParams'][0x0]['startIndex'])};}return _0x3a14fd;}['_getSuggestionBlocksForListStyle'](){const _0x50774e=this['editor']['plugins']['get']('LegacyListUtils');let _0x2dc2bf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2dc2bf[0x0]?.['is']('element','listItem')&&_0x2dc2bf['unshift'](..._0x50774e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2dc2bf[_0x2dc2bf['length']-0x1]?.['is']('element','listItem')&&_0x2dc2bf['push'](..._0x50774e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2dc2bf=[...new Set(_0x2dc2bf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2dc2bf=_0x2dc2bf['filter'](_0x15e68c=>_0x15e68c['is']('element','listItem'))),_0x2dc2bf;}['_getSuggestionBlocks'](_0x3292c7){const _0xef8578=this['editor']['plugins']['get']('LegacyListUtils');let _0x3d258b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3292c7)['map'](_0x21f1bd=>{const _0x4262ba=this['editor']['model']['createPositionAt'](_0x21f1bd,0x0);return[..._0xef8578['getSiblingNodes'](_0x4262ba,'backward'),..._0xef8578['getSiblingNodes'](_0x4262ba,'forward')];})['flat']();return _0x3d258b=[...new Set(_0x3d258b)],_0x3d258b;}['_getTranslationKeyForListStyle'](_0x64b2c0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x64b2c0)||'default')['toUpperCase']()+'_LIST_'+_0x64b2c0['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4a996f{['afterInit'](){const _0x46c6f7=this['editor'];if(!_0x46c6f7['plugins']['has']('MediaEmbedEditing'))return;const _0x1094b5=_0x46c6f7['plugins']['get']('TrackChangesEditing'),_0x563367=_0x46c6f7['locale'];_0x1094b5['enableCommand']('mediaEmbed'),_0x1094b5['descriptionFactory']['registerElementLabel']('media',_0x4d4534=>o(_0x563367,'ELEMENT_MEDIA',_0x4d4534)),_0x46c6f7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x30884d,{writer:_0xcc5733,options:_0x143e52})=>{if(_0x143e52['showSuggestionHighlights'])return _0xcc5733['createEmptyElement']('div');},'converterPriority':'high'}),_0x46c6f7['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4cc5a7,_0x5177a5,_0x490d2f)=>{_0x490d2f['options']['showSuggestionHighlights']&&_0x4cc5a7['stop']();},{'priority':'high'});}}class pt extends _0x4a996f{['afterInit'](){const _0x144e26=this['editor'];_0x144e26['plugins']['has']('MentionEditing')&&_0x144e26['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x4a996f{['afterInit'](){const _0x35ddf0=this['editor'];if(!_0x35ddf0['plugins']['has']('MergeFieldsEditing'))return;const _0x1f68fb=_0x35ddf0['plugins']['get']('TrackChangesEditing'),_0x571224=_0x35ddf0['locale'];_0x1f68fb['enableCommand']('insertMergeField'),_0x1f68fb['enableCommand']('insertMergeFieldBlock'),_0x1f68fb['enableCommand']('insertMergeFieldImage'),_0x1f68fb['descriptionFactory']['registerElementLabel']('mergeField',_0xabe5d0=>o(_0x571224,'ELEMENT_MERGE_FIELD',_0xabe5d0)),_0x1f68fb['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x51cbc1=>o(_0x571224,'ELEMENT_MERGE_FIELD',_0x51cbc1)),_0x1f68fb['descriptionFactory']['registerDescriptionCallback'](_0x2d499b=>{if('insertion'!=_0x2d499b['type']&&'deletion'!=_0x2d499b['type'])return;const _0x1324ee=_0x2d499b['getContainedElement']();if(null==_0x1324ee)return;const _0x7fc204=_0x35ddf0['plugins']['get']('MergeFieldsEditing');let _0x4a311a;switch(_0x7fc204['getMergeFieldType'](_0x1324ee)){case null:return;case'image':{const _0x571d03=_0x7fc204['unwrapAffixes'](_0x1324ee['getAttribute']('src'));_0x4a311a=_0x7fc204['getLabel'](_0x571d03)||_0x571d03;break;}default:{const _0x3b2e78=_0x1324ee['getAttribute']('id');_0x4a311a=_0x7fc204['getLabel'](_0x3b2e78)||_0x3b2e78;break;}}return'insertion'==_0x2d499b['type']?{'type':'insertion','content':o(_0x571224,'*Insert:*\x20%0','\x22'+_0x4a311a+'\x22\x20'+o(_0x571224,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x571224,'*Remove:*\x20%0','\x22'+_0x4a311a+'\x22\x20'+o(_0x571224,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x4a996f{['afterInit'](){const _0xa43d0d=this['editor'],_0x396b41=_0xa43d0d['plugins']['get']('TrackChangesEditing');_0xa43d0d['plugins']['has']('MultiLevelList')&&(_0x396b41['enableDefaultAttributesIntegration']('multiLevelList'),_0x396b41['registerBlockAttribute']('listMarkerStyle'),_0x396b41['descriptionFactory']['registerDescriptionCallback'](_0x113d40=>this['handleDescriptions'](_0x113d40)));}['handleDescriptions'](_0xbb26be){const _0x48f2b7=this['editor']['locale'],{data:_0x3a2fd0}=_0xbb26be,_0x8459d5={'type':'format','content':''};if(_0x3a2fd0&&'listMarkerStyle'==_0x3a2fd0['key']){if(!_0x3a2fd0['oldValue'])return{'type':'format','content':o(_0x48f2b7,'*Set\x20format:*\x20%0',o(_0x48f2b7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3a2fd0['newValue']+')'};if(!_0x3a2fd0['newValue']){let _0x22c5b7=_0xbb26be['head'];for(;_0x22c5b7;){if(_0x22c5b7['data']&&'listType'==_0x22c5b7['data']['key']&&_0x22c5b7['data']['newValue'])return _0x8459d5;_0x22c5b7=_0x22c5b7['next'];}return{'type':'format','content':o(_0x48f2b7,'*Remove\x20format:*\x20%0',o(_0x48f2b7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3a2fd0['oldValue']+')'};}}}}class bt extends _0x4a996f{['afterInit'](){const _0x749390=this['editor'];if(!_0x749390['plugins']['has']('PageBreakEditing'))return;_0x749390['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x566367=_0x749390['plugins']['get']('TrackChangesEditing'),_0x3ee848=_0x749390['locale'];_0x566367['descriptionFactory']['registerElementLabel']('pageBreak',_0x589311=>o(_0x3ee848,'ELEMENT_PAGE_BREAK',_0x589311));}}class yt extends _0x4a996f{['afterInit'](){const _0x356881=this['editor'];if(!_0x356881['plugins']['has']('Paragraph'))return;const _0x1c627d=_0x356881['locale'],_0x9b4076=_0x356881['plugins']['get']('TrackChangesEditing');_0x9b4076['descriptionFactory']['registerElementLabel']('paragraph',_0x52f36e=>o(_0x1c627d,'ELEMENT_PARAGRAPH',_0x52f36e)),_0x9b4076['enableDefaultAttributesIntegration']('paragraph'),_0x9b4076['enableCommand']('insertParagraph'),_0x356881['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x356881),{'priority':'highest'}),_0x356881['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x53556c,_0x34896b,_0x4664bf)=>{_0x4664bf['options']['showSuggestionHighlights']&&nr(_0x356881,{'showActiveMarker':!0x1})(_0x53556c,_0x34896b,_0x4664bf);},{'priority':'highest'});const _0x2407b3=_0x9b4076['descriptionFactory'];_0x2407b3['registerDescriptionCallback'](_0x50ad3d=>{if('insertion'!==_0x50ad3d['type'])return;const {start:_0x387477,end:_0x43f432}=_0x50ad3d['getFirstRange']();if(!_0x387477['isTouching'](_0x43f432)||!_0x387477['nodeAfter'])return;const _0x39ab5e=_0x356881['model']['schema'],_0x1f81ef=_0x387477['nodeAfter'];return _0x39ab5e['isBlock'](_0x1f81ef)&&!_0x39ab5e['isLimit'](_0x1f81ef)&&_0x39ab5e['checkChild'](_0x1f81ef,'$text')?{'type':'insertion','content':o(_0x1c627d,'*Insert:*\x20%0',_0x2407b3['getItemLabel'](_0x1f81ef,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dfcc8=this['editor'],_0x434c84=_0x4dfcc8['locale'];_0x4dfcc8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x158e78=>{if('formatBlock'!=_0x158e78['type'])return;const {data:_0x3f3702}=_0x158e78;return _0x3f3702&&'paragraph'==_0x3f3702['commandName']?{'type':'format','content':o(_0x434c84,'*Change\x20to:*\x20%0',o(_0x434c84,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x228711,{showActiveMarker:_0x341056=!0x0}={}){return(_0xb3d8c3,_0x1a5548,_0x4b8bae)=>{const _0x54b4ad=_0x228711['plugins']['get']('TrackChangesEditing'),_0x109211=_0x1a5548['markerRange']['start'],_0x2d209c=_0x1a5548['markerRange']['end'],_0x50048b=_0x228711['model']['schema'];if(!_0x109211['isTouching'](_0x2d209c)||!_0x109211['nodeAfter'])return;const _0x62742e=_0x109211['nodeAfter'];if(_0x50048b['isBlock'](_0x62742e)&&!_0x50048b['isLimit'](_0x62742e)&&_0x50048b['checkChild'](_0x62742e,'$text')){if(!_0x4b8bae['consumable']['consume'](_0x1a5548['markerRange'],_0xb3d8c3['name']))return;const {authorId:_0x49d0a7}=_0x54b4ad['_splitMarkerName'](_0x1a5548['markerName']),_0xe0f3ec=_0x4b8bae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x49d0a7}),_0x287693=_0x4b8bae['mapper']['toViewPosition'](_0x2d209c);_0x341056&&_0x54b4ad['activeMarkers']['includes'](_0x1a5548['markerName'])&&_0x4b8bae['writer']['addClass']('ck-suggestion-marker--active',_0xe0f3ec),_0x4b8bae['writer']['insert'](_0x287693,_0xe0f3ec),_0x4b8bae['mapper']['bindElementToMarker'](_0xe0f3ec,_0x1a5548['markerName']);}};}class jt extends _0x4a996f{['afterInit'](){const _0x2ebead=this['editor'];_0x2ebead['commands']['get']('replaceSource')&&_0x2ebead['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x4a996f{['afterInit'](){const _0x569e3f=this['editor'];if(!_0x569e3f['plugins']['has']('RemoveFormatEditing'))return;_0x569e3f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c909c=this['editor'];_0x4c909c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e0af3=>{if('formatBlock'!=_0x3e0af3['type']&&'formatInline'!=_0x3e0af3['type'])return;const {data:_0x325bef}=_0x3e0af3;return _0x325bef&&'removeFormat'==_0x325bef['commandName']?{'type':'format','content':o(_0x4c909c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x4a996f{['afterInit'](){const _0x266029=this['editor'];if(!_0x266029['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3128f8=_0x266029['plugins']['get']('TrackChangesEditing');_0x3128f8['enableCommand']('goToPreviousRestrictedEditingException'),_0x3128f8['enableCommand']('goToNextRestrictedEditingException');const _0x4ea83e=_0x266029['plugins']['get']('RestrictedEditingModeEditing');_0x4ea83e['enableCommand']('trackChanges'),_0x4ea83e['enableCommand']('acceptSuggestion'),_0x4ea83e['enableCommand']('discardSuggestion'),_0x4ea83e['enableCommand']('acceptAllSuggestions'),_0x4ea83e['enableCommand']('discardAllSuggestions'),_0x4ea83e['enableCommand']('acceptSelectedSuggestions'),_0x4ea83e['enableCommand']('discardSelectedSuggestions');}}class It extends _0x4a996f{static get['requires'](){return[_0x3d14cd];}['init'](){const _0x4c19d1=this['editor'],_0x14e89b=_0x4c19d1['plugins']['get']('TrackChangesEditing');_0x14e89b['enableCommand']('shiftEnter'),_0x4c19d1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4c19d1),{'priority':'high'}),_0x4c19d1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4c19d1),{'priority':'high'}),_0x4c19d1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5db3c2,_0x226734,_0x329861)=>{_0x329861['options']['showSuggestionHighlights']&&je(_0x4c19d1,{'showActiveMarker':!0x1})(_0x5db3c2,_0x226734,_0x329861);}),_0x14e89b['descriptionFactory']['registerElementLabel']('softBreak',_0x379d15=>o(_0x4c19d1['locale'],'ELEMENT_LINE_BREAK',_0x379d15));}}function je(_0x593992,{showActiveMarker:_0xb77ff8=!0x0}={}){return(_0x1992dc,_0x341185,_0x1d6318)=>{const _0x2365f4=_0x593992['plugins']['get']('TrackChangesEditing');if(!_0x1d6318['consumable']['test'](_0x341185['markerRange'],_0x1992dc['name']))return;const _0x278e47=_0x593992['model'];for(const _0x72cf9 of _0x341185['markerRange']['getItems']()){if(!_0x72cf9['is']('element','softBreak'))continue;const _0x2da9cc='deletion'==_0x341185['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x117ec2}=_0x2365f4['_splitMarkerName'](_0x341185['markerName']),_0x1869a3=_0x1d6318['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2da9cc,'data-author-id':_0x117ec2}),_0x81ef14=_0x1d6318['mapper']['toViewPosition'](_0x278e47['createPositionBefore'](_0x72cf9));_0xb77ff8&&_0x2365f4['activeMarkers']['includes'](_0x341185['markerName'])&&_0x1d6318['writer']['addClass']('ck-suggestion-marker--active',_0x1869a3),_0x1d6318['writer']['insert'](_0x81ef14,_0x1869a3),_0x1d6318['mapper']['bindElementToMarker'](_0x1869a3,_0x341185['markerName']);}};}class vt extends _0x4a996f{['afterInit'](){const _0xed416a=this['editor'],_0x4d00a1=_0xed416a['model'],_0x500c3c=_0xed416a['locale'];if(!_0xed416a['plugins']['has']('StandardEditingModeEditing'))return;const _0x5c30bf=_0xed416a['plugins']['get']('TrackChangesEditing'),_0x481c50='restrictedEditingException',_0x12e10f=_0xed416a['commands']['get'](_0x481c50);_0x5c30bf['enableCommand'](_0x481c50,(_0x17bd74,_0x58f43b={})=>{const _0x1957c6=_0x4d00a1['document']['selection'];if(_0x1957c6['isCollapsed'])return void _0x17bd74(_0x58f43b);const _0x48bf1f=void 0x0!==_0x58f43b['forceValue']?_0x58f43b['forceValue']:!_0x12e10f['value'];_0x4d00a1['change'](()=>{const _0x40c048=Array['from'](_0x1957c6['getRanges']());for(const _0x31282f of _0x40c048){const _0x44bf50=_0x48bf1f?[_0x31282f]:io(_0x481c50,_0x31282f,_0x4d00a1);for(const _0x3bfbfd of _0x44bf50)_0x5c30bf['markInlineFormat'](_0x3bfbfd,{'commandName':_0x481c50,'commandParams':[{'forceValue':_0x48bf1f}]});}});}),_0x5c30bf['descriptionFactory']['registerDescriptionCallback'](_0x416ef6=>{if('formatBlock'!=_0x416ef6['type']&&'formatInline'!=_0x416ef6['type'])return;const {data:_0x5c63ec}=_0x416ef6;return _0x5c63ec&&_0x5c63ec['commandName']==_0x481c50?_0x5c63ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x500c3c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x500c3c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x4a996f{['afterInit'](){const _0x4b99c9=this['editor'];if(!_0x4b99c9['plugins']['has']('Style')||!_0x4b99c9['plugins']['has']('DataSchema'))return;const _0x3100ab=_0x4b99c9['plugins']['get']('TrackChangesEditing'),_0x2986fb=_0x4b99c9['locale'],_0x378b14=_0x4b99c9['config']['get']('style')||{},_0x1b0369=_0x4b99c9['plugins']['get']('GeneralHtmlSupport'),_0x41ba28=_0x4b99c9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4b99c9['plugins']['get']('DataSchema'),_0x378b14['definitions']);_0x3100ab['enableDefaultAttributesIntegration']('style');const _0x22af39=new Set();for(const _0x58d3ad of _0x41ba28['block']){const _0x207e25=_0x1b0369['getGhsAttributeNameForElement'](_0x58d3ad['element']);_0x22af39['add'](_0x207e25);}const _0x2e7362=new Set();for(const _0x5052d4 of _0x41ba28['inline']){const _0x4000d3=_0x1b0369['getGhsAttributeNameForElement'](_0x5052d4['element']);_0x2e7362['add'](_0x4000d3);for(const _0x3a245d of _0x5052d4['ghsAttributes'])_0x2e7362['add'](_0x3a245d);}for(const _0xb6fe84 of _0x22af39)_0x3100ab['registerBlockAttribute'](_0xb6fe84),_0x3100ab['descriptionFactory']['registerAttributeLabel'](_0xb6fe84,o(_0x2986fb,'FORMAT_STYLE'));for(const _0x3cd604 of _0x2e7362)_0x3100ab['registerInlineAttribute'](_0x3cd604),_0x3100ab['descriptionFactory']['registerAttributeLabel'](_0x3cd604,o(_0x2986fb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43b9b3=this['editor'],_0x5a4b03=_0x43b9b3['locale'];_0x43b9b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a5355=>{if('formatBlock'!=_0x1a5355['type']&&'formatInline'!=_0x1a5355['type'])return;const {data:_0x2f0232}=_0x1a5355;return _0x2f0232&&'style'===_0x2f0232['commandName']?_0x2f0232['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5a4b03,'*Set\x20format:*\x20%0',_0x2f0232['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5a4b03,'*Remove\x20format:*\x20%0',_0x2f0232['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x4a996f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1b5b61){super(_0x1b5b61),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x190d04=this['editor'],_0x4923f4=_0x190d04['model']['document']['selection'];if(!_0x190d04['plugins']['has']('TableEditing'))return;const _0x57d770=_0x190d04['locale'],_0x39692d=_0x190d04['plugins']['get']('TrackChangesEditing'),_0x51f579=_0x190d04['plugins']['get']('TableUtils');_0x39692d['descriptionFactory']['registerElementLabel']('table',_0x2628e3=>o(_0x57d770,'ELEMENT_TABLE',_0x2628e3)),this['_setupColumnsRowsFixing'](),_0x39692d['enableCommand']('insertTable'),_0x39692d['enableCommand']('selectTableRow'),_0x39692d['enableCommand']('selectTableColumn');for(const _0x16d47b of['insertTableRowAbove','insertTableRowBelow']){const _0x254efb=_0x190d04['commands']['get'](_0x16d47b);_0x39692d['enableCommand'](_0x16d47b,_0x5d0b71=>{_0x190d04['model']['change'](_0x36fb52=>{_0x5d0b71();const _0x43a3ff='above'===_0x254efb['order'],_0x8962d2=_0x51f579['getSelectionAffectedTableCells'](_0x4923f4),_0x521ac0=_0x51f579['getRowIndexes'](_0x8962d2),_0x3623cc=_0x43a3ff?_0x521ac0['first']-0x1:_0x521ac0['last']+0x1,_0x3e1df1=_0x8962d2[0x0]['findAncestor']('table'),_0x4dfb87=_0x51f579['createTableWalker'](_0x3e1df1,{'startRow':_0x3623cc,'endRow':_0x3623cc}),_0x10b5bb=Array['from'](_0x4dfb87)['map'](_0x265a9b=>_0x36fb52['createRangeOn'](_0x265a9b['cell']));_0x39692d['markMultiRangeInsertion'](_0x10b5bb,'tableRow');});});}for(const _0x4047a3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3958a5=_0x190d04['commands']['get'](_0x4047a3);_0x39692d['enableCommand'](_0x4047a3,_0x3988ec=>{_0x190d04['model']['change'](_0x4623b0=>{_0x3988ec();const _0x237ae9='left'===_0x3958a5['order'],_0x271bfc=_0x51f579['getSelectionAffectedTableCells'](_0x4923f4),_0x1bfc68=_0x51f579['getColumnIndexes'](_0x271bfc),_0x44b4c0=_0x237ae9?_0x1bfc68['first']-0x1:_0x1bfc68['last']+0x1,_0x53ec02=_0x271bfc[0x0]['findAncestor']('table'),_0x5efe32=_0x51f579['createTableWalker'](_0x53ec02,{'startRow':0x0,'column':_0x44b4c0,'includeAllSlots':!0x1}),_0x50ff2f=Array['from'](_0x5efe32)['map'](_0x58c094=>_0x4623b0['createRangeOn'](_0x58c094['cell']));_0x39692d['markMultiRangeInsertion'](_0x50ff2f,'tableColumn');});});}for(const _0x36f9a4 of['removeTableRow','removeTableColumn']){const _0x4c5680=_0x36f9a4['substr'](0xb),_0x4762e7=_0x4c5680['toLowerCase'](),_0x205f8e=_0x4762e7['substr'](0x0,0x3)+'span',_0x2cbb6f='table'+_0x4c5680,_0x2756e0='min'+_0x4c5680,_0x40d7b6='max'+_0x4c5680;_0x39692d['enableCommand'](_0x36f9a4,()=>{_0x190d04['model']['change'](_0x3a5677=>{const _0x1cc9af=_0x51f579['getSelectionAffectedTableCells'](_0x4923f4),_0x5d142c=_0x1cc9af[0x0]['findAncestor']('table');let _0x156967;if('removeTableRow'==_0x36f9a4){const _0x19a297=_0x51f579['getRowIndexes'](_0x1cc9af);_0x156967={'startRow':_0x19a297['first'],'endRow':_0x19a297['last'],'includeAllSlots':!0x0};}else{const _0x3eb1d4=_0x51f579['getColumnIndexes'](_0x1cc9af);_0x156967={'startColumn':_0x3eb1d4['first'],'endColumn':_0x3eb1d4['last'],'includeAllSlots':!0x0};}const _0xc7980d=_0x51f579['createTableWalker'](_0x5d142c,_0x156967),_0x16f253=Array['from'](_0xc7980d)['map'](({cell:_0x3f2cf6})=>_0x3f2cf6),_0xc994ba=Ne(_0x16f253['filter'](_0x55929b=>_0x55929b['hasAttribute'](_0x205f8e))),_0x2a0316=Ne(_0x16f253['filter'](_0x1caec8=>!_0x1caec8['hasAttribute'](_0x205f8e)))['map'](_0x50572d=>_0x3a5677['createRangeOn'](_0x50572d)),_0x1a2907=_0x39692d['markMultiRangeDeletion'](_0x2a0316,_0x2cbb6f);if(_0x1a2907&&('tableRow'==_0x1a2907['subType']||'tableColumn'==_0x1a2907['subType'])){const _0x4f041d=this['_getSuggestionCoords'](_0x1a2907);for(const _0x43143e of _0xc994ba){const _0x5408d9=_0x3a5677['createRangeOn'](_0x43143e),_0x50fd49=_0x51f579['getCellLocation'](_0x43143e),_0x4f3fbc=_0x43143e['getAttribute'](_0x205f8e)-0x1,_0x56314f=_0x4f041d[_0x2756e0],_0x1500d7=_0x4f041d[_0x40d7b6];_0x56314f<=_0x50fd49[_0x4762e7]&&_0x50fd49[_0x4762e7]+_0x4f3fbc<=_0x1500d7&&_0x1a2907['addRange'](_0x5408d9);}}});});}function _0xd6cfe3(_0x51b03a){const _0x38cccd=Array['from'](_0x4923f4['getRanges']())['map'](_0x218e7a=>_0x25ad8a['fromRange'](_0x218e7a));_0x190d04['model']['change'](_0x108255=>{const _0x23c04c=_0x108255['batch'];_0x51b03a=_0x51b03a['filter'](_0x548f21=>'$graveyard'!=_0x548f21['root']['rootName']),_0x108255['setSelection'](_0x51b03a),_0x190d04['commands']['get']('removeTableRow')['refresh'](),_0x190d04['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x190d04['model']['enqueueChange'](()=>{_0x190d04['model']['enqueueChange'](_0x23c04c,_0x11f027=>{const _0x50e97b=_0x38cccd['filter'](_0x368055=>'$graveyard'!=_0x368055['root']['rootName']);_0x50e97b['length']>0x0&&_0x11f027['setSelection'](_0x50e97b);for(const _0x4f30c6 of _0x38cccd)_0x4f30c6['detach']();});});});}function _0x257da2(_0x14c4de){_0x190d04['model']['change'](_0x47badd=>{const _0x4c2088=Array['from'](_0x4923f4['getRanges']())['map'](_0x4055c4=>_0x25ad8a['fromRange'](_0x4055c4)),_0x480256=[];for(const _0xa1cac of _0x14c4de)for(const _0x45c166 of _0xa1cac['getItems']({'shallow':!0x0}))_0x480256['push'](_0x45c166);for(const _0x2aa0d0 of _0x480256)'$graveyard'!=_0x2aa0d0['root']['rootName']&&(_0x47badd['setSelection'](_0x47badd['createPositionAt'](_0x2aa0d0,0x0)),_0x190d04['commands']['get']('removeTableColumn')['refresh'](),_0x190d04['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x46ca47=_0x4c2088['filter'](_0x5e23c5=>'$graveyard'!=_0x5e23c5['root']['rootName']);_0x46ca47['length']>0x0&&_0x47badd['setSelection'](_0x46ca47);for(const _0x32ce43 of _0x4c2088)_0x32ce43['detach']();});}function _0x5b07f3(_0x1ff2d0,_0x5cb04a){return _0x5cb04a['every'](_0x2bf8e1=>_0x1ff2d0['some'](_0x4de268=>_0x4de268['end']['isEqual'](_0x2bf8e1['start'])||_0x2bf8e1['end']['isEqual'](_0x4de268['start'])));}function _0x4fca4a(_0x1e2a07,_0xa637a6){return!_0x1e2a07['some'](_0x3b3a09=>_0xa637a6['some'](_0x1ea91b=>_0x3b3a09['isIntersecting'](_0x1ea91b)))&&_0x1e2a07['some'](_0x3399a1=>_0xa637a6['some'](_0x5a027e=>_0x3399a1['end']['isTouching'](_0x5a027e['start'])));}_0x190d04['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4f7cc3,_0x5aa9ca,_0x98a400)=>{if(!_0x98a400['options']['showSuggestionHighlights'])return;const _0x395e34=_0x5aa9ca['item'];if(!_0x395e34)return;const _0x38175f=_0x98a400['mapper']['toViewElement'](_0x395e34);function _0x2ef6af(_0x17e7bf){return Array['isArray'](_0x17e7bf)?_0x17e7bf:[_0x17e7bf];}_0x38175f&&'tableCell'===_0x395e34['name']&&_0x325a79(_0x38175f,_0x98a400['writer'],(_0xb849f9,_0x45d2c7,_0x20f7ce)=>_0x20f7ce['addClass'](_0x2ef6af(_0x45d2c7['classes']),_0xb849f9),(_0x42985b,_0x5cbea0,_0x33295b)=>_0x33295b['removeClass'](_0x2ef6af(_0x5cbea0['classes']),_0x42985b));},{'priority':'highest'}),_0x39692d['descriptionFactory']['registerDescriptionCallback'](_0x501b98=>{if('insertion'!=_0x501b98['type']&&'deletion'!=_0x501b98['type'])return;const _0x58a828=_0x501b98['getContainedElement']();if(null!=_0x58a828&&_0x58a828['is']('element','table')){if('insertion'==_0x501b98['type']){const _0x405024=_0x501b98['getItems']()['filter'](_0x2980e4=>_0x2980e4['is']('$textProxy'))['map'](_0x294096=>_0x294096['data']);if(_0x405024['length'])return{'type':'insertion','content':o(_0x57d770,'*Insert:*\x20%0',o(_0x57d770,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x405024['join']('\x20')+'\x22'))};}if('deletion'==_0x501b98['type']){const _0x56b801=_0x501b98['getItems']()['filter'](_0x31c5fe=>_0x31c5fe['is']('$textProxy'))['map'](_0x493145=>_0x493145['data']);if(_0x56b801['length'])return{'type':'deletion','content':o(_0x57d770,'*Remove:*\x20%0',o(_0x57d770,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x56b801['join']('\x20')+'\x22'))};}}}),_0x39692d['descriptionFactory']['registerDescriptionCallback'](_0x24da60=>{if('tableRow'==_0x24da60['subType']){const _0x1026d3=_0x24da60['getItems']()['filter'](_0x1f2a6e=>_0x1f2a6e['is']('$textProxy'))['map'](_0x1a0fea=>_0x1a0fea['data']),_0x17713d=this['_getSuggestionCoords'](_0x24da60),_0x4dc9c2=_0x17713d['maxRow']-_0x17713d['minRow']+0x1;if('insertion'==_0x24da60['type'])return _0x1026d3['length']?{'type':'insertion','content':o(_0x57d770,'*Insert:*\x20%0',o(_0x57d770,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4dc9c2,'\x22'+_0x1026d3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x57d770,'*Insert:*\x20%0',o(_0x57d770,'ELEMENT_TABLE_ROW',_0x4dc9c2))};if('deletion'==_0x24da60['type'])return _0x1026d3['length']?{'type':'deletion','content':o(_0x57d770,'*Remove:*\x20%0',o(_0x57d770,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4dc9c2,'\x22'+_0x1026d3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x57d770,'*Remove:*\x20%0',o(_0x57d770,'ELEMENT_TABLE_ROW',_0x4dc9c2))};}if('tableColumn'==_0x24da60['subType']){const _0x39f925=_0x24da60['getItems']()['filter'](_0x4307eb=>_0x4307eb['is']('$textProxy'))['map'](_0x4c6bc7=>_0x4c6bc7['data']),_0x4cb5ba=this['_getSuggestionCoords'](_0x24da60),_0x11eab7=_0x4cb5ba['maxColumn']-_0x4cb5ba['minColumn']+0x1;if('insertion'==_0x24da60['type'])return _0x39f925['length']?{'type':'insertion','content':o(_0x57d770,'*Insert:*\x20%0',o(_0x57d770,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x11eab7,'\x22'+_0x39f925['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x57d770,'*Insert:*\x20%0',o(_0x57d770,'ELEMENT_TABLE_COLUMN',_0x11eab7))};if('deletion'==_0x24da60['type'])return _0x39f925['length']?{'type':'deletion','content':o(_0x57d770,'*Remove:*\x20%0',o(_0x57d770,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x11eab7,'\x22'+_0x39f925['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x57d770,'*Remove:*\x20%0',o(_0x57d770,'ELEMENT_TABLE_COLUMN',_0x11eab7))};}}),_0x39692d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xd6cfe3),_0x39692d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xd6cfe3),_0x39692d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x257da2),_0x39692d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x257da2),_0x39692d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5b07f3),_0x39692d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5b07f3),_0x39692d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4fca4a),_0x39692d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4fca4a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x48309f=this['editor'],_0x2194c6=_0x48309f['model']['document']['selection'];return(_0x47354c,_0x2b06a3)=>{_0x48309f['model']['change'](_0x39cb56=>{const {commandName:_0x3100bc,commandParams:_0x1c1fd9}=_0x2b06a3;let _0x2164d4=_0x47354c[0x0]['end']['nodeBefore'];_0x1c1fd9&&_0x1c1fd9[0x0]&&!0x1===_0x1c1fd9[0x0]['forceValue']&&(_0x2164d4=_0x47354c[0x0]['start']['nodeAfter']);const _0x2c75e4=_0x39cb56['createRangeIn'](_0x2164d4);if('$graveyard'==_0x2c75e4['root']['rootName'])return;const _0x267823=Array['from'](_0x2194c6['getRanges']())['map'](_0x50733b=>_0x25ad8a['fromRange'](_0x50733b));_0x39cb56['setSelection'](_0x2c75e4),_0x48309f['commands']['get'](_0x3100bc)['refresh'](),_0x1c1fd9['push']({'forceDefaultExecution':!0x0}),_0x48309f['execute'](_0x3100bc,..._0x1c1fd9);const _0x51e51b=_0x267823['filter'](_0x55d120=>'$graveyard'!=_0x55d120['root']['rootName']);_0x51e51b['length']>0x0&&_0x39cb56['setSelection'](_0x51e51b);for(const _0x2cea38 of _0x267823)_0x2cea38['detach']();});};}['_getCoordsForCells'](_0x23adb6){const _0x1e2425=this['editor']['plugins']['get']('TableUtils');let _0xef22fc=Number['MAX_SAFE_INTEGER'],_0x150717=Number['MIN_SAFE_INTEGER'],_0x126afe=Number['MAX_SAFE_INTEGER'],_0x52fd8a=Number['MIN_SAFE_INTEGER'];for(const _0x2f3a4d of _0x23adb6){if('$graveyard'==_0x2f3a4d['root']['rootName'])continue;const {row:_0x95ed5f,column:_0x58d358}=_0x1e2425['getCellLocation'](_0x2f3a4d),_0x1052dd=_0x2f3a4d['hasAttribute']('rowspan')?_0x2f3a4d['getAttribute']('rowspan')-0x1:0x0,_0x260291=_0x2f3a4d['hasAttribute']('colspan')?_0x2f3a4d['getAttribute']('colspan')-0x1:0x0;_0xef22fc=_0x95ed5f<_0xef22fc?_0x95ed5f:_0xef22fc,_0x150717=_0x95ed5f+_0x1052dd>_0x150717?_0x95ed5f+_0x1052dd:_0x150717,_0x126afe=_0x58d358<_0x126afe?_0x58d358:_0x126afe,_0x52fd8a=_0x58d358+_0x260291>_0x52fd8a?_0x58d358+_0x260291:_0x52fd8a;}return{'minRow':_0xef22fc,'maxRow':_0x150717,'minColumn':_0x126afe,'maxColumn':_0x52fd8a};}['_setupColumnsRowsFixing'](){const _0x2616ec=this['editor'],_0xefcb1d=_0x2616ec['plugins']['get']('TrackChangesEditing'),_0x528451=_0x2616ec['plugins']['get']('TableUtils');_0x2616ec['model']['document']['on']('change:data',()=>{const _0x996390=Array['from'](_0x2616ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc4024c,data:_0x5f947e}of _0x996390){const {group:_0x993d8b,id:_0x46158f,subType:_0x498605}=_0xefcb1d['_splitMarkerName'](_0xc4024c);if('suggestion'!=_0x993d8b)continue;if(null!=_0x5f947e['oldRange'])continue;const _0x1c14ce=_0xefcb1d['getSuggestion'](_0x46158f);this['_tablePostFixingSubtypes']['includes'](_0x498605)&&this['_tableSuggestions']['add'](_0x1c14ce);}},{'priority':'low'});const _0x487a00=(_0x430f16,_0x5d9641)=>{let _0x291647=!0x1;const _0x232f1c=_0x5d9641['createRangeOn'](_0x430f16),_0x20392c=_0x430f16['findAncestor']('table'),_0x2c564f=_0x528451['getCellLocation'](_0x430f16);for(const _0x32e725 of this['_tableSuggestions']){const _0x1f3628=_0x32e725['subType'],_0x524470=_0x1f3628['startsWith']('tablePaste'),_0x16ce7f=_0x1f3628['substr'](_0x524470?0xa:0x5),_0x1ce614=_0x16ce7f['toLowerCase'](),_0x3db7ff=_0x1ce614['substr'](0x0,0x3)+'span',_0x27c228='min'+_0x16ce7f,_0x574216='max'+_0x16ce7f;if(!_0x32e725['isInContent'])continue;if(_0x20392c!=_0x32e725['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x32e725['isIntersectingWithRange'](_0x232f1c))continue;const _0x222b45=_0x430f16['hasAttribute'](_0x3db7ff)?_0x430f16['getAttribute'](_0x3db7ff)-0x1:0x0,_0x16d5c5=this['_getSuggestionCoords'](_0x32e725),_0x573b88=_0x16d5c5[_0x27c228],_0x17323b=_0x16d5c5[_0x574216];_0x573b88<=_0x2c564f[_0x1ce614]&&_0x2c564f[_0x1ce614]+_0x222b45<=_0x17323b&&(_0x32e725['addRange'](_0x232f1c),_0x291647=!0x0);}return _0x291647;};_0x2616ec['model']['document']['registerPostFixer'](_0x2750e0=>{let _0x4927df=!0x1;for(const _0x5d870a of _0x2616ec['model']['document']['differ']['getChanges']())if('insert'==_0x5d870a['type']){if('tableRow'==_0x5d870a['name']){for(const _0x39f7ca of _0x5d870a['position']['nodeAfter']['getChildren']())_0x4927df=_0x4927df||_0x487a00(_0x39f7ca,_0x2750e0);}else'tableCell'==_0x5d870a['name']&&(_0x4927df=_0x4927df||_0x487a00(_0x5d870a['position']['nodeAfter'],_0x2750e0));}return _0x4927df;});}['_getSuggestionCoords'](_0xe83e41){return this['_getCoordsForCells'](_0xe83e41['getRanges']()['map'](_0x372d71=>_0x372d71['start']['nodeAfter']));}}function Ne(_0x424054){return Array['from'](new Set(_0x424054)['values']());}class Nt extends _0x4a996f{static get['requires'](){return[Ct];}['afterInit'](){const _0x413dc6=this['editor'],_0x3e4502=_0x413dc6['model']['document']['selection'],_0x18d51d=_0x413dc6['locale'];if(!_0x413dc6['plugins']['has']('TableEditing'))return;const _0x2a58fc=_0x413dc6['plugins']['get']('TrackChangesEditing'),_0x40c1de=_0x413dc6['plugins']['get']('TableUtils'),_0x8f6fde=_0x413dc6['plugins']['get'](Ct);_0x8f6fde['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2a58fc['enableCommand']('mergeTableCells',()=>{const _0x3738b7=_0x40c1de['getSelectionAffectedTableCells'](_0x413dc6['model']['document']['selection']);_0x413dc6['model']['change'](()=>{_0x2a58fc['markMultiRangeBlockFormat'](_0x3738b7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x413dc6['commands']['get']('mergeTableCells')['on']('execute',(_0x4dc333,_0x516541)=>{_0x413dc6['commands']['get']('trackChanges')['value']&&(_0x516541['length']>0x0&&_0x516541[_0x516541['length']-0x1]&&_0x516541[_0x516541['length']-0x1]['forceDefaultExecution']||_0x2a58fc['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4dc333['stop']());},{'priority':'highest'});for(const _0x40af07 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4dcb3c=_0x413dc6['commands']['get'](_0x40af07);_0x2a58fc['enableCommand'](_0x40af07,()=>{const _0x332d40=_0x413dc6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x459b18=>_0x459b18['is']('element','tableCell')),_0x50d8fb=_0x4dcb3c['value'];_0x413dc6['model']['change'](()=>{_0x2a58fc['markMultiRangeBlockFormat']([_0x332d40,_0x50d8fb],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5a46d7 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x80011=_0x413dc6['commands']['get'](_0x5a46d7);_0x2a58fc['enableCommand'](_0x5a46d7,()=>{const _0x4df22=_0x40c1de['getSelectionAffectedTableCells'](_0x413dc6['model']['document']['selection'])[0x0],_0x47c24b=_0x4df22['findAncestor']('table'),{column:_0x3678e6,row:_0x2f3229}=_0x40c1de['getCellLocation'](_0x4df22);let _0x1a00f2=[];if('horizontally'==_0x80011['direction']){const _0x5590e4=_0x40c1de['createTableWalker'](_0x47c24b,{'startRow':_0x2f3229,'endRow':_0x2f3229,'includeAllSlots':!0x0});_0x1a00f2=Array['from'](_0x5590e4)['map'](_0x5f3da8=>_0x5f3da8['cell']);}else{const _0x4f06c4=_0x40c1de['createTableWalker'](_0x47c24b,{'column':_0x3678e6,'includeAllSlots':!0x0});_0x1a00f2=Array['from'](_0x4f06c4)['map'](_0x592eac=>_0x592eac['cell']);}_0x413dc6['model']['change'](_0x5f47ae=>{_0x2a58fc['markBlockFormat'](_0x5f47ae['createRangeOn'](_0x4df22),{'commandName':_0x5a46d7,'commandParams':[]},_0x1a00f2,_0x5a46d7);});});}_0x2a58fc['descriptionFactory']['registerDescriptionCallback'](_0x3cb8e5=>{if('formatBlock'!=_0x3cb8e5['type']&&'formatInline'!=_0x3cb8e5['type'])return;const {data:_0x2da45c}=_0x3cb8e5;return _0x2da45c&&'mergeTableCells'==_0x2da45c['commandName']?{'type':'format','content':o(_0x18d51d,'*Merge\x20cells*')}:void 0x0;}),_0x2a58fc['descriptionFactory']['registerDescriptionCallback'](_0x418628=>{if('formatBlock'!=_0x418628['type']&&'formatInline'!=_0x418628['type'])return;const {data:_0x5d9c71}=_0x418628;return _0x5d9c71?'splitTableCellVertically'==_0x5d9c71['commandName']?{'type':'format','content':o(_0x18d51d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5d9c71['commandName']?{'type':'format','content':o(_0x18d51d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x52f33f=_0x8f6fde['_acceptFormatSuggestionCallbackFactory']();for(const _0x3f3141 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2a58fc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f3141,'accept',_0x52f33f);for(const _0x47316a of['splitTableCellVertically','splitTableCellHorizontally'])_0x2a58fc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47316a,'accept',_0x52f33f);_0x2a58fc['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2c7763=>{_0x413dc6['model']['change'](_0x5d5419=>{const _0x2006c6=Array['from'](_0x3e4502['getRanges']())['map'](_0x436cb3=>_0x25ad8a['fromRange'](_0x436cb3));_0x5d5419['setSelection'](_0x2c7763),_0x413dc6['commands']['get']('mergeTableCells')['refresh'](),_0x413dc6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x4cbf5c=_0x2006c6['filter'](_0x203107=>'$graveyard'!=_0x203107['root']['rootName']);_0x4cbf5c['length']>0x0&&_0x5d5419['setSelection'](_0x4cbf5c);for(const _0x584735 of _0x2006c6)_0x584735['detach']();});});for(const _0x22db18 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x43bdb6=_0x413dc6['commands']['get'](_0x22db18);_0x43bdb6['on']('set:isEnabled',(_0x24dfed,_0x47a42,_0x1f7dcd)=>{if(_0x1f7dcd){const _0x55e86e=_0x413dc6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xeabaa5=>_0xeabaa5['is']('element','tableCell'));this['_areMergableCells'](_0x43bdb6['value'],_0x55e86e)||(_0x24dfed['return']=!0x1,_0x24dfed['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3b59f8=this['editor']['commands']['get']('mergeTableCells'),_0x527b24=this['editor']['plugins']['get']('TableUtils');if(!_0x3b59f8['isEnabled'])return!0x1;const _0x425112=_0x527b24['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x18d1e1 of _0x425112)for(const _0x2d9482 of _0x425112)if(_0x18d1e1!=_0x2d9482&&!this['_areMergableCells'](_0x18d1e1,_0x2d9482))return!0x1;return!0x0;}['_areMergableCells'](_0x2067d7,_0x4bb7cd){const _0x2bce69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3860b2=this['editor']['model']['createRangeOn'](_0x2067d7),_0x2d6c15=this['editor']['model']['createRangeOn'](_0x4bb7cd),_0x4d28a5=new Set(),_0x4c89c4=new Set();for(const _0x35424d of _0x2bce69['getSuggestions']())if(('insertion'==_0x35424d['type']||'deletion'==_0x35424d['type']||'mergeTableCells'==_0x35424d['subType'])&&_0x35424d['isInContent']){for(const _0x4d7cb3 of _0x35424d['getRanges']())_0x4d7cb3['containsRange'](_0x3860b2,!0x0)&&_0x4d28a5['add'](_0x35424d['type']+':'+_0x35424d['author']['id']),_0x4d7cb3['containsRange'](_0x2d6c15,!0x0)&&_0x4c89c4['add'](_0x35424d['type']+':'+_0x35424d['author']['id']);}if(_0x4d28a5['size']!=_0x4c89c4['size'])return!0x1;for(const _0x519b65 of _0x4d28a5)if(!_0x4c89c4['has'](_0x519b65))return!0x1;return!0x0;}}class Dt extends _0x4a996f{static get['requires'](){return[Ct];}['afterInit'](){const _0x16f0f4=this['editor'];if(!_0x16f0f4['plugins']['has']('TableEditing'))return;const _0x233719=_0x16f0f4['locale'],_0x55d5ca=_0x16f0f4['plugins']['get']('TrackChangesEditing');_0x55d5ca['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x55d5ca['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x55d5ca['registerBlockAttribute']('headingRows'),_0x55d5ca['registerBlockAttribute']('headingColumns'),_0x55d5ca['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x233719,'FORMAT_HEADER_ROW')),_0x55d5ca['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x233719,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4fc396=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10b587=this['editor']['plugins']['get']('TableUtils'),_0x30c9cc=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x444fdb({showActiveMarker:_0x19e411=!0x0,setDataAttribute:_0x4211bb=!0x0}={}){return(_0x125e1a,_0x2fe128,_0x5695fd)=>{const {type:_0x43f332,id:_0x7404ae}=_0x4fc396['_splitMarkerName'](_0x2fe128['markerName']),_0x1337a2=_0x4fc396['getSuggestion'](_0x7404ae),_0x497751=_0x1337a2['data'];if('formatBlock'!=_0x1337a2['type']||!_0x497751||'setTableColumnHeader'!=_0x497751['commandName'])return;if(_0x2fe128['item'])return void _0x125e1a['stop']();if(!_0x5695fd['consumable']['consume'](_0x2fe128['markerRange'],_0x125e1a['name']))return;const _0x3c5750=_0x2fe128['markerRange']['start']['nodeAfter'],_0x3fab50=_0x2fe128['markerRange']['end']['nodeBefore'],_0x4d7998=_0x3c5750['parent']['parent'],{column:_0x21277b}=_0x10b587['getCellLocation'](_0x3c5750),{column:_0x22c9a4}=_0x10b587['getCellLocation'](_0x3fab50);for(let _0x3fb229=_0x21277b;_0x3fb229<=_0x22c9a4;_0x3fb229++){const _0x267abf=_0x10b587['createTableWalker'](_0x4d7998,{'column':_0x3fb229,'includeAllSlots':!0x1});for(const _0x2940b4 of _0x267abf){const _0x1b25e3=_0x2940b4['cell'],_0x4c552d=_0x5695fd['mapper']['toViewElement'](_0x1b25e3);_0x5695fd['writer']['addClass']('ck-suggestion-marker-'+_0x43f332,_0x4c552d),_0x4211bb&&_0x5695fd['writer']['setAttribute']('data-suggestion',_0x7404ae,_0x4c552d),_0x5695fd['mapper']['bindElementToMarker'](_0x4c552d,_0x2fe128['markerName']),_0x19e411&&(_0x4fc396['activeMarkers']['includes'](_0x2fe128['markerName'])?_0x5695fd['writer']['addClass']('ck-suggestion-marker--active',_0x4c552d):_0x5695fd['writer']['removeClass']('ck-suggestion-marker--active',_0x4c552d));}}};}_0x4fc396['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30c9cc),_0x4fc396['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30c9cc),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x444fdb(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x180400,_0x1bc239,_0x29402d)=>{_0x29402d['options']['showSuggestionHighlights']&&_0x444fdb({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x180400,_0x1bc239,_0x29402d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xef175c,_0x59401a,_0x55e46f)=>{const {type:_0x5dfca3,id:_0x94d365}=_0x4fc396['_splitMarkerName'](_0x59401a['markerName']),_0x3a84be=_0x4fc396['getSuggestion'](_0x94d365),_0x34ad80=_0x3a84be['data'];if('formatBlock'!=_0x3a84be['type']||!_0x34ad80||'setTableColumnHeader'!=_0x34ad80['commandName'])return;const _0x1c45dc=_0x55e46f['mapper']['markerNameToElements'](_0x59401a['markerName']);if(_0x1c45dc){for(const _0x30660b of _0x1c45dc)_0x55e46f['writer']['removeClass']('ck-suggestion-marker-'+_0x5dfca3,_0x30660b),_0x55e46f['writer']['removeClass']('ck-suggestion-marker--active',_0x30660b),_0x55e46f['writer']['removeAttribute']('data-suggestion',_0x30660b),_0x55e46f['mapper']['unbindElementFromMarkerName'](_0x30660b,_0x59401a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37bcdf=this['editor'],_0x141735=_0x37bcdf['locale'];function _0x3fd2d3(_0x59efcb){return{'type':'format','content':o(_0x141735,'*Format:*\x20%0',_0x59efcb)};}_0x37bcdf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b988c=>{if('formatBlock'!=_0x3b988c['type'])return;const {data:_0x50d9d3}=_0x3b988c;if(_0x50d9d3){if('setTableRowHeader'==_0x50d9d3['commandName']){const _0xe231c7=_0x50d9d3['commandParams'][0x0]['forceValue'];return _0x3fd2d3(o(_0x141735,_0xe231c7?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x50d9d3['commandName']){const _0x35b0b7=_0x50d9d3['commandParams'][0x0]['forceValue'];return _0x3fd2d3(o(_0x141735,_0x35b0b7?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x451ed2=>[_0x451ed2,null]));class Mt extends _0x4a996f{static get['requires'](){return[Ct];}['afterInit'](){const _0x574d7c=this['editor'];if(!_0x574d7c['plugins']['has']('TableClipboard'))return;const _0x3e7483=_0x574d7c['plugins']['get']('TrackChangesEditing'),_0x492a38=_0x574d7c['plugins']['get']('TableUtils'),_0x7da4cb=_0x574d7c['plugins']['get'](Ct),_0x50470b=_0x574d7c['plugins']['get']('TableClipboard');_0x7da4cb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x574d7c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x574d7c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x33614e=null;_0x574d7c['model']['on']('insertContent',(_0x37c734,_0x17c21e)=>{const [_0x39de72,_0x99dce5]=_0x17c21e,_0x380ea8=_0x17c21e[_0x17c21e['length']-0x1];_0x380ea8&&_0x380ea8['forceDefaultExecution']||_0x3e7483['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x486e51,_0x57f3b4,_0x4619bf,_0xe470b0,_0x24b89b){if(_0x57f3b4&&!_0x57f3b4['is']('documentSelection'))return!0x1;const _0x21b702=_0x24b89b['getTableIfOnlyTableInContent'](_0x486e51,_0x4619bf);if(!_0x21b702||!Ue(_0x21b702,void 0x0,_0xe470b0))return!0x1;const _0x37acb8=_0xe470b0['getSelectionAffectedTableCells'](_0x4619bf['document']['selection']);if(!_0x37acb8['length'])return!0x1;const _0x2d44d5=_0x37acb8[0x0]['findAncestor']('table'),_0x3f064d=_0xe470b0['getRowIndexes'](_0x37acb8),_0x3517d0=_0xe470b0['getColumnIndexes'](_0x37acb8),_0x39d2a4={'startRow':_0x3f064d['first'],'endRow':_0x3f064d['last'],'startColumn':_0x3517d0['first'],'endColumn':_0x3517d0['last']};return 0x1==_0x37acb8['length']&&(_0x39d2a4['endRow']+=_0xe470b0['getRows'](_0x21b702)-0x1,_0x39d2a4['endColumn']+=_0xe470b0['getColumns'](_0x21b702)-0x1),Ue(_0x2d44d5,_0x39d2a4,_0xe470b0);}(_0x39de72,_0x99dce5,_0x574d7c['model'],_0x492a38,_0x50470b)&&(_0x37c734['stop'](),_0x33614e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x574d7c['model']['change'](()=>{_0x574d7c['model']['insertContent'](_0x17c21e[0x0],_0x17c21e[0x1],_0x17c21e[0x2],{'forceDefaultExecution':!0x0});const _0x40f965=_0x13cee6(),{rowInsertionRanges:_0x11117d,columnInsertionRanges:_0x46320e,insertionRanges:_0x17452d,deletionRanges:_0x868fbf,cells:_0x3377b4}=_0x33614e;_0x11117d['length']&&_0x3e7483['markMultiRangeInsertion'](_0x11117d,'tablePasteRow',{'tablePasteChainId':_0x40f965}),_0x46320e['length']&&_0x3e7483['markMultiRangeInsertion'](_0x46320e,'tablePasteColumn',{'tablePasteChainId':_0x40f965}),_0x17452d['length']&&(_0x3e7483['markMultiRangeInsertion'](_0x17452d,'tablePaste',{'tablePasteChainId':_0x40f965,'skipNestingCheck':!0x0}),_0x17452d['forEach'](_0x371e30=>_0x371e30['detach']?.())),_0x868fbf['length']&&(_0x3e7483['markMultiRangeDeletion'](_0x868fbf,'tablePaste',{'tablePasteChainId':_0x40f965,'skipNestingCheck':!0x0}),_0x868fbf['forEach'](_0x260bf5=>_0x260bf5['detach']?.()));const _0x26bc3f=_0x3e7483['markMultiRangeBlockFormat'](_0x3377b4['map'](({element:_0x2ea4ed})=>_0x2ea4ed),{'formatGroupId':_0x13cee6()},[],'tablePasteCell',{'tablePasteChainId':_0x40f965});if(_0x26bc3f){const _0x13b113=_0x26bc3f['getMarkers'](),_0x539a1e=[];for(const {element:_0x3ec459,attributes:_0x88ff1}of _0x3377b4){if(!_0x88ff1)continue;const _0x39244a=_0x574d7c['model']['createRangeOn'](_0x3ec459),_0x2ca253=_0x13b113['find'](_0xbbddae=>_0xbbddae['getRange']()['isEqual'](_0x39244a));_0x2ca253&&_0x539a1e['push']([_0x2ca253['name'],_0x88ff1]);}_0x539a1e['length']&&_0x26bc3f['setAttribute']('markerAttributes',Object['fromEntries'](_0x539a1e));}_0x33614e=null;}));},{'priority':_0x1d18d2['high']+0xa}),_0x574d7c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x158166,_0x164b8b)=>{const [_0x459c5d,_0x298e03,,_0x35568e]=_0x164b8b;if(!_0x33614e)return;_0x158166['stop']();const _0x4e06ad=_0x459c5d['cell'],_0x5bb55d=_0x298e03,_0x4f62b0=Oe(_0x4e06ad),_0x53a7ec=Oe(_0x5bb55d);_0x158166['return']=_0x4e06ad;let _0x3c3012=null,_0x25b029=null;if(_0x53a7ec||_0x4f62b0){if(_0x4f62b0&&!_0x53a7ec){_0x35568e['remove'](_0x4e06ad['getChild'](0x0));for(const _0x2e54d2 of Array['from'](_0x5bb55d['getChildren']()))_0x35568e['insert'](_0x2e54d2,_0x4e06ad,'end');const _0x1f11ca=_0x33614e['rowInsertionIndexes']['includes'](_0x459c5d['row']),_0x1d4624=_0x33614e['columnInsertionIndexes']['includes'](_0x459c5d['column']);_0x1f11ca||_0x1d4624||(_0x3c3012=_0x25ad8a['fromRange'](_0x35568e['createRangeIn'](_0x4e06ad)));}else _0x53a7ec&&!_0x4f62b0&&(_0x25b029=_0x35568e['createRangeIn'](_0x4e06ad));}else{const _0xc7c8f5=_0x35568e['createElement']('tableCellSuggestion'),_0x568f31=_0x35568e['createElement']('tableCellSuggestion');_0x35568e['wrap'](_0x35568e['createRangeIn'](_0x4e06ad),_0x568f31),_0x35568e['insert'](_0xc7c8f5,_0x4e06ad,0x0);for(const _0x23e2ea of Array['from'](_0x5bb55d['getChildren']()))_0x35568e['insert'](_0x23e2ea,_0xc7c8f5,'end');_0x3c3012=_0x25ad8a['fromRange'](_0x35568e['createRangeOn'](_0xc7c8f5)),_0x25b029=_0x25ad8a['fromRange'](_0x35568e['createRangeOn'](_0x568f31));}const _0x387626=Array['from'](_0x5bb55d['getAttributes']())['filter'](([_0x2f930b])=>Be['includes'](_0x2f930b));_0x33614e['cells']['push']({'element':_0x4e06ad,'attributes':_0x387626['length']?Object['fromEntries'](_0x387626):null}),_0x3c3012&&_0x33614e['insertionRanges']['push'](_0x3c3012),_0x25b029&&_0x33614e['deletionRanges']['push'](_0x25b029);},{'priority':'high'}),_0x492a38['on']('insertColumns',(_0x333b45,_0xced34c)=>{const [_0x9a0d2f,_0x1358ca={}]=_0xced34c;if(!_0x33614e)return;const _0x71dd90=_0x1358ca['at']||0x0,_0x416690=_0x1358ca['columns']||0x1;_0x33614e['columnInsertionIndexes']=new Array(_0x416690)['fill'](_0x71dd90)['map']((_0x2a83a0,_0x46f990)=>_0x2a83a0+_0x46f990);for(const {cell:_0x46e236}of _0x492a38['createTableWalker'](_0x9a0d2f,{'startColumn':_0x71dd90,'endColumn':_0x71dd90+_0x416690-0x1}))_0x33614e['columnInsertionRanges']['push'](_0x574d7c['model']['createRangeOn'](_0x46e236));},{'priority':'low'}),_0x492a38['on']('insertRows',(_0x4d356f,_0x2f6769)=>{const [_0x2a0d38,_0x35917f={}]=_0x2f6769;if(!_0x33614e)return;const _0x34883f=_0x35917f['at']||0x0,_0x435502=_0x35917f['rows']||0x1;_0x33614e['rowInsertionIndexes']=new Array(_0x435502)['fill'](_0x34883f)['map']((_0x28312f,_0x21d931)=>_0x28312f+_0x21d931);for(const {cell:_0x3613e3}of _0x492a38['createTableWalker'](_0x2a0d38,{'startRow':_0x34883f,'endRow':_0x34883f+_0x435502-0x1}))_0x33614e['rowInsertionRanges']['push'](_0x574d7c['model']['createRangeOn'](_0x3613e3));},{'priority':'low'}),_0x3e7483['descriptionFactory']['registerDescriptionCallback'](_0x46cdf0=>{if(_0x46cdf0['subType']&&_0x46cdf0['subType']['startsWith']('tablePaste'))return _0x46cdf0['previous']?{}:{'type':'insertion','content':o(_0x574d7c['locale'],'*Replace\x20table\x20cells*')};});const _0x15b44b=()=>!0x1;for(const _0x32abcd of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3e7483['_suggestionFactory']['registerCustomCallback']('insertion',_0x32abcd,'join',_0x15b44b),_0x3e7483['_suggestionFactory']['registerCustomCallback']('deletion',_0x32abcd,'join',_0x15b44b),_0x3e7483['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32abcd,'join',_0x15b44b);_0x3e7483['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x15b44b),_0x3e7483['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x489790,_0x33b50f,_0x53e086)=>{const _0x32c08e=_0x489790['map'](_0x323d2a=>_0x323d2a['getContainedElement']())['filter'](_0x156146=>_0x156146),_0x153528=new Map(_0x32c08e['map'](_0x1b30e5=>[_0x1b30e5,null]));if(_0x33614e){for(const {element:_0x5eb2a7,attributes:_0x9a5edd}of _0x33614e['cells'])_0x9a5edd&&_0x153528['set'](_0x5eb2a7,_0x9a5edd);}else{if(_0x53e086&&_0x53e086['markerAttributes'])for(const [_0x440a5c,_0x4e6b8b]of Object['entries'](_0x53e086['markerAttributes'])){const _0x18d51e=_0x574d7c['model']['markers']['get'](_0x440a5c),_0x397f66=_0x18d51e?_0x18d51e['getRange']()['getContainedElement']():null;_0x397f66&&_0x153528['set'](_0x397f66,_0x4e6b8b);}}_0x574d7c['model']['change'](_0x217d38=>{for(const [_0x3a3b91,_0x2dffc0]of _0x153528)_0x217d38['setAttributes']({...xe,..._0x2dffc0},_0x3a3b91);});});const _0x2a7ed9=(_0x4ae384,_0x285a7f)=>{_0x3e7483['_suggestionFactory']['registerCustomCallback'](_0x4ae384,'tablePaste',_0x285a7f,(_0x4a3cd8,_0x295f3b,_0x4785d4)=>{_0x574d7c['model']['change'](_0x3eb972=>{const _0x599cd4=[];for(const _0x3fb35f of _0x4a3cd8){const _0x33e6c2=_0x3fb35f['start']['nodeAfter'];_0x33e6c2['is']('element','tableCellSuggestion')&&_0x599cd4['push'](_0x33e6c2);}_0x3e7483['_suggestionFactory']['getSuggestionCallback'](_0x4ae384,null,_0x285a7f)(_0x4a3cd8,_0x295f3b,_0x4785d4);for(const _0x2420b7 of _0x599cd4)'$graveyard'!=_0x2420b7['root']['rootName']&&_0x3eb972['unwrap'](_0x2420b7);});});};_0x2a7ed9('insertion','accept'),_0x2a7ed9('insertion','discard'),_0x2a7ed9('deletion','accept'),_0x2a7ed9('deletion','discard'),_0x3e7483['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x59abc3=>{const _0x339fc1=_0x59abc3['map'](_0x522bec=>_0x522bec['getContainedElement']()),_0x48f87b=_0x339fc1[0x0]['findAncestor']('table'),{minRow:_0x42d441,maxRow:_0x4eb1ef}=_0x7da4cb['_getCoordsForCells'](_0x339fc1);_0x492a38['removeRows'](_0x48f87b,{'at':_0x42d441,'rows':_0x4eb1ef-_0x42d441+0x1});}),_0x3e7483['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3cf818=>{const _0x3291d1=_0x3cf818['map'](_0x253027=>_0x253027['getContainedElement']()),_0x115b77=_0x3291d1[0x0]['findAncestor']('table'),{minColumn:_0x39f409,maxColumn:_0x2fa487}=_0x7da4cb['_getCoordsForCells'](_0x3291d1);_0x492a38['removeColumns'](_0x115b77,{'at':_0x39f409,'columns':_0x2fa487-_0x39f409+0x1});});const _0x5cf2a2=(_0x4e6a7b,_0x182d83)=>{if(!_0x182d83['subType']||!_0x182d83['subType']['startsWith']('tablePaste'))return;const _0x4a4656=_0x182d83['attributes']['tablePasteChainId'],_0x15e675=_0x3e7483['getSuggestions']()['filter'](_0x3068a7=>_0x3068a7['isInContent']&&_0x3068a7['attributes']&&_0x3068a7['attributes']['tablePasteChainId']==_0x4a4656);_0x15e675['length']&&_0x182d83['getAllAdjacentSuggestions']()['length']!=_0x15e675['length']&&_0x15e675['reduce']((_0x5c3c86,_0x4cd297)=>(_0x5c3c86['next']=_0x4cd297,_0x4cd297['previous']=_0x5c3c86,_0x4cd297));};function _0x44a095(_0x4f595c,_0x292f9a=!0x0){const {id:_0x40e92b,authorId:_0x15e076}=_0x3e7483['_splitMarkerName'](_0x4f595c['markerName']),_0x54e51e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x878d40=_0x3e7483['activeMarkers']['includes'](_0x4f595c['markerName']);return _0x878d40&&_0x54e51e['push']('ck-suggestion-marker--active'),{'classes':_0x54e51e,'attributes':{'data-suggestion':_0x40e92b,'data-author-id':_0x15e076},'priority':_0x878d40&&_0x292f9a?0xbc2:0xbb8};}_0x3e7483['on']('suggestionLoaded',_0x5cf2a2,{'priority':'high'}),_0x3e7483['on']('suggestionUnloaded',_0x5cf2a2,{'priority':'high'}),_0x574d7c['model']['document']['registerPostFixer'](()=>{let _0x3aa758=!0x1;const _0x582e36=Array['from'](_0x574d7c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4dc194,data:_0x4550a3}of _0x582e36){const {group:_0x27bc47,type:_0x1966c4,id:_0x3aa4ec}=_0x3e7483['_splitMarkerName'](_0x4dc194);if('suggestion'!=_0x27bc47||'deletion'!=_0x1966c4||_0x4550a3['oldRange'])continue;if(!_0x3e7483['hasSuggestion'](_0x3aa4ec))continue;const _0x4e9238=_0x3e7483['getSuggestion'](_0x3aa4ec)['getRanges'](),_0x1e34fc=_0x574d7c['plugins']['get']('Users')['me'];for(const _0x178c44 of _0x3e7483['getSuggestions']()){if(!_0x178c44['isInContent']||_0x178c44['author']!=_0x1e34fc)continue;if('formatBlock'!=_0x178c44['type']||'tablePasteCell'!=_0x178c44['subType'])continue;if(_0x178c44['getRanges']()['every'](_0x3cbfa4=>_0x4e9238['some'](_0x48ce01=>_0x48ce01['containsRange'](_0x3cbfa4,!0x0)))){for(const _0x59b147 of _0x178c44['getAllAdjacentSuggestions']())_0x59b147['isInContent']&&(_0x59b147['discard'](),_0x3aa758=!0x0);}}}return _0x3aa758;}),_0x574d7c['model']['document']['registerPostFixer'](_0x249c95=>{const _0x2aab06=_0x574d7c['commands']['get']('redo');if(!_0x2aab06||!_0x2aab06['_createdBatches']['has'](_0x249c95['batch']))return!0x1;let _0x56e363=!0x1;const _0x53b2eb=_0x574d7c['plugins']['get']('Users')['me'],_0x23322e=_0x574d7c['model']['document']['differ']['getChanges'](),_0x262a0d=Array['from'](_0x574d7c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3217a9,data:_0x460a73})=>{const {group:_0x2003cc,subType:_0x39fb59,authorId:_0x18cd05}=_0x3e7483['_splitMarkerName'](_0x3217a9);return'suggestion'==_0x2003cc&&'tablePaste'==_0x39fb59&&_0x18cd05==_0x53b2eb['id']&&!_0x460a73['oldRange'];});for(const _0x1861b2 of _0x23322e){if('insert'!=_0x1861b2['type']||'tableCellSuggestion'!=_0x1861b2['name']||0x1!=_0x1861b2['length'])continue;const _0x1a4f46=_0x249c95['createRange'](_0x1861b2['position'],_0x1861b2['position']['getShiftedBy'](0x1));if(!_0x262a0d['find'](({data:_0x3c7bef})=>_0x3c7bef['newRange']['isEqual'](_0x1a4f46))){for(const {name:_0xe84323,data:_0x3f511d}of _0x262a0d)if(_0x1a4f46['containsRange'](_0x3f511d['newRange'])){_0x249c95['updateMarker'](_0xe84323,{'range':_0x1a4f46}),_0x56e363=!0x0;break;}}}return _0x56e363;}),_0x574d7c['model']['document']['registerPostFixer'](_0x31b8ff=>{let _0x361cb1=!0x1;const _0x451c7f=_0x574d7c['plugins']['get']('Users')['me'],_0x2abb7e=_0x3e7483['getSuggestions']()['filter'](_0x1f288b=>_0x1f288b['isInContent']&&_0x1f288b['author']==_0x451c7f),_0x54a3f9=new Set(),_0x6ad931=new Set();for(const _0x541d43 of _0x2abb7e)if('tablePaste'==_0x541d43['subType'])for(const _0x404253 of _0x541d43['getMarkers']()){const _0x2f2a0c=_0x404253['getRange']()['getContainedElement']();if(_0x2f2a0c){if(_0x2f2a0c['is']('element','tableCellSuggestion')&&Oe(_0x2f2a0c)){_0x541d43['removeMarker'](_0x404253['name']),_0x54a3f9['add'](_0x2f2a0c),_0x361cb1=!0x0;const _0x1faf20=_0x2f2a0c['nextSibling'],_0x2c9ab4=_0x2f2a0c['previousSibling'],_0x1460b0=_0x1faf20&&_0x1faf20['is']('element','tableCellSuggestion'),_0x195ea4=_0x2c9ab4&&_0x2c9ab4['is']('element','tableCellSuggestion');_0x1460b0&&!_0x54a3f9['has'](_0x1faf20)&&_0x6ad931['add'](_0x1faf20),_0x195ea4&&!_0x54a3f9['has'](_0x2c9ab4)&&_0x6ad931['add'](_0x2c9ab4);}else _0x2f2a0c['is']('element','paragraph')&&_0x2f2a0c['isEmpty']&&(_0x541d43['removeMarker'](_0x404253['name']),_0x361cb1=!0x0);}}else{if('tablePasteCell'==_0x541d43['subType']){if(!_0x541d43['attributes']||!_0x541d43['attributes']['tablePasteChainId'])continue;const _0x131471=_0x541d43['attributes']['markerAttributes'];if(_0x131471&&Object['keys'](_0x131471)['length'])continue;const _0x4ad11b=_0x541d43['attributes']['tablePasteChainId'];let _0x29d954=!0x0,_0x25a212=!0x0;for(const _0x5f0f88 of _0x2abb7e)if(_0x5f0f88['subType']&&_0x5f0f88['subType']['startsWith']('tablePaste')){if(!_0x5f0f88['attributes']['tablePasteChainId']){_0x25a212=!0x1;break;}if(_0x5f0f88['id']!=_0x541d43['id']&&_0x5f0f88['attributes']['tablePasteChainId']==_0x4ad11b){_0x29d954=!0x1;break;}}_0x25a212&&_0x29d954&&(_0x541d43['removeMarkers'](),_0x361cb1=!0x0);}}for(const _0x37048c of _0x54a3f9)_0x31b8ff['remove'](_0x37048c);for(const _0x4a657f of _0x6ad931)_0x31b8ff['unwrap'](_0x4a657f);return _0x361cb1;}),_0x574d7c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x404b14=>_0x44a095(_0x404b14),'converterPriority':'high'}),_0x574d7c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4980ac,_0x22f281)=>_0x22f281['options']['showSuggestionHighlights']?_0x44a095(_0x4980ac,!0x1):null,'converterPriority':'high'});const _0x151b9e=_0x574d7c['editing']['view'];this['listenTo'](_0x151b9e['document'],'clipboardOutput',(_0x2674e4,_0x43f7cf)=>{const _0x101221=[];for(const _0x57796f of _0x151b9e['createRangeIn'](_0x43f7cf['content'])['getItems']())_0x57796f['is']('element','suggestion-td')&&_0x101221['push'](_0x57796f);_0x151b9e['change'](_0x14299a=>{for(const _0x1696ed of _0x101221)_0x14299a['move'](_0x14299a['createRangeIn'](_0x1696ed),_0x14299a['createPositionBefore'](_0x1696ed)),_0x14299a['remove'](_0x1696ed);});});}}function Oe(_0x19e17d){if(_0x19e17d['isEmpty'])return!0x0;const _0x455ed2=_0x19e17d['getChild'](0x0);return _0x455ed2['is']('element','paragraph')&&_0x455ed2['isEmpty'];}function Ue(_0x86ede,_0x726d27={},_0x2172d6){for(const {isAnchor:_0x5c5007,cellHeight:_0x39d273,cellWidth:_0x37379c}of _0x2172d6['createTableWalker'](_0x86ede,{'includeAllSlots':!0x0,..._0x726d27}))if(!_0x5c5007||0x1!=_0x39d273||0x1!=_0x37379c)return!0x1;return!0x0;}class $t extends _0x4a996f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4dd548=this['editor']['plugins']['get']('TrackChangesEditing');_0x4dd548['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4dd548['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4dd548['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4dd548['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4dd548['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4dd548['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1b9a50,_0x38b317){const _0x3ea21a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39247a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1c999f=_0x38b317['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x449d3b=_0x39247a['getColumnGroupElement'](_0x1c999f);let _0x4b75c5=_0x449d3b?_0x39247a['getTableColumnsWidths'](_0x449d3b):null,_0x2dadb9=_0x1c999f['getAttribute']('tableWidth')||null;const _0x4b0d02=_0x38b317['tableWidth']||_0x2dadb9,_0xa871d7=_0x38b317['columnWidths']||_0x4b75c5,_0x13903e=this['editor']['plugins']['get']('Users')['me'];for(const _0xa648a3 of _0x3ea21a['getSuggestions']()){const _0x5897cd=_0xa648a3['getContainedElement']();if('resizeTable'===_0xa648a3['subType']&&_0x5897cd===_0x1c999f){_0xa648a3['author']!==_0x13903e&&_0xa648a3['discard']();const _0x29223f=_0xa648a3['data']['commandParams'];_0x2dadb9=_0x29223f[0x0]['tableWidth'],_0x4b75c5=_0x29223f[0x0]['columnWidths'];break;}}_0x1b9a50({'table':_0x1c999f,'tableWidth':_0x4b0d02,'columnWidths':_0xa871d7}),_0x3ea21a['markBlockFormat'](_0x1c999f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2dadb9,'columnWidths':_0x4b75c5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x9a1699){if('formatBlock'!=_0x9a1699['type']&&'formatInline'!=_0x9a1699['type'])return;const {data:_0x3244e1}=_0x9a1699;if(_0x3244e1&&'resizeTable'===_0x3244e1['formatGroupId']){const _0x239959='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x239959)};}}}class Bt extends _0x4a996f{['afterInit'](){const _0x38591d=this['editor'];_0x38591d['plugins']['has']('Template')&&_0x38591d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x4a996f{['afterInit'](){const _0x4a057a=this['editor'];if(!_0x4a057a['commands']['get']('insertTableOfContents'))return;_0x4a057a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xb141c9=_0x4a057a['plugins']['get']('TrackChangesEditing'),_0x5cad59=_0x4a057a['locale'];_0xb141c9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3893c3=>o(_0x5cad59,'ELEMENT_TABLE_OF_CONTENTS',_0x3893c3));}}class Rt extends _0x4a996f{['afterInit'](){const _0x22c55c=this['editor'];if(!_0x22c55c['plugins']['has']('Title'))return;const _0xcef9ee=_0x22c55c['plugins']['get']('TrackChangesEditing');_0xcef9ee['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x22c55c['locale'],'ELEMENT_TITLE')),_0x22c55c['model']['document']['registerPostFixer'](_0x319be8=>{let _0x19a671=!0x1;const _0x130500=Array['from'](_0x22c55c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1fcb09,data:_0x22673b}of _0x130500){const {group:_0x59b928}=_0xcef9ee['_splitMarkerName'](_0x1fcb09);if('suggestion'!==_0x59b928||!_0x22673b['newRange'])continue;const _0x581b2a=_0x22673b['newRange'],_0x28d5f0=_0x581b2a['end']['nodeBefore'];if(!_0x28d5f0||!_0x28d5f0['is']('element','title-content'))continue;if(!_0x581b2a['start']['isTouching'](_0x581b2a['end']))continue;const _0x5ed400=_0x22c55c['model']['schema']['getNearestSelectionRange'](_0x581b2a['end'],'forward');if(_0x5ed400&&_0x5ed400['isCollapsed']){const _0x152dde=_0x319be8['createRange'](_0x581b2a['start'],_0x5ed400['start']);_0x152dde['isEqual'](_0x581b2a)||(_0x319be8['updateMarker'](_0x1fcb09,{'range':_0x152dde}),_0x19a671=!0x0);}_0x19a671||(_0x319be8['removeMarker'](_0x1fcb09),_0x19a671=!0x0);}return _0x19a671;});}}class Tt extends _0x4a996f{['afterInit'](){const _0x2ff109=this['editor'],_0x45b78d=_0x2ff109['plugins']['get']('TrackChangesEditing');_0x2ff109['plugins']['has']('Uploadcare')&&(_0x45b78d['enableCommand']('uploadcare'),_0x2ff109['plugins']['has']('UploadcareImageEdit')&&(_0x45b78d['enableCommand']('uploadcareImageEdit'),_0x45b78d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x45b78d['registerBlockAttribute']('uploadcareImageId'),_0x45b78d['descriptionFactory']['registerDescriptionCallback'](_0x4a05c6=>{if('attribute'!=_0x4a05c6['type'])return;const {data:_0x100863}=_0x4a05c6;return _0x100863&&'uploadcareImageId'==_0x100863['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x4a996f{['afterInit'](){const _0x634cfa=this['editor'],_0x5a2a5b=_0x634cfa['plugins']['get']('TrackChangesEditing');_0x634cfa['plugins']['has']('UndoEditing')&&(_0x5a2a5b['enableCommand']('undo'),_0x5a2a5b['enableCommand']('redo'));}}class Et extends _0x4a996f{static get['requires'](){return[Ct];}['afterInit'](){const _0x4a720f=this['editor'];if(!_0x4a720f['plugins']['has']('TableCaptionEditing'))return;_0x4a720f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x4a996f{['tableProperties'];['tableCellProperties'];constructor(_0x140723){super(_0x140723),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 _0x141485=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1318fd of this['tableProperties'])_0x141485['enableCommand'](_0x1318fd,(_0x3d6aab,_0x3d8995)=>{const _0x54fa7d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1318fd,[_0x54fa7d],this['tableProperties'],'tableProperties',_0x3d6aab,_0x3d8995);});_0x141485['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x141485['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x141485['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x54bcad,_0x508994)=>this['handleDiscardAction'](this['tableProperties'],_0x54bcad,_0x508994)),_0x141485['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x10a956 of this['tableCellProperties'])_0x141485['enableCommand'](_0x10a956,(_0x266295,_0x3c314c)=>{const _0x36f4cc=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x10a956,_0x36f4cc,this['tableCellProperties'],'tableCellProperties',_0x266295,_0x3c314c);});_0x141485['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x141485['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x141485['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x266af1,_0x34bc2d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x266af1,_0x34bc2d)),_0x141485['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x141485['descriptionFactory']['registerDescriptionCallback'](_0xed0008=>this['handleSuggestionDescription'](_0xed0008));}['_handlePropertyChange'](_0x34e5d2,_0x50dedc,_0x39430a,_0x577ca7,_0x198887,_0x15bb33){const _0x37d936=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x15bb33['batch'],()=>{for(const _0x241767 of _0x50dedc){if(this['_getSuggestion'](_0x241767,_0x577ca7))_0x198887(_0x15bb33);else{const _0x1c5f77={};for(const _0x1c5e12 of _0x39430a){const _0x45a5b3=_0x241767['getAttribute'](_0x1c5e12);void 0x0!==_0x45a5b3&&(_0x1c5f77[_0x1c5e12]=_0x45a5b3);}_0x198887(_0x15bb33),_0x37d936['markBlockFormat'](_0x241767,{'commandParams':[_0x1c5f77]},[],_0x577ca7);}}});}['handleDiscardAction'](_0xfe0cd1,_0x1db241,_0x83ed6f){const _0x383750=_0x1db241[0x0]['start']['nodeAfter'],_0x3be60b=_0x83ed6f['commandParams'][0x0];this['editor']['model']['change'](_0x17b86b=>{for(const _0x39590f of _0xfe0cd1)void 0x0!==_0x3be60b[_0x39590f]?_0x17b86b['setAttribute'](_0x39590f,_0x3be60b[_0x39590f],_0x383750):_0x17b86b['removeAttribute'](_0x39590f,_0x383750);});}['handleSuggestionDescription'](_0x3bbb5e){if(_0x3bbb5e['data'])switch(_0x3bbb5e['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'](_0x38c027,_0x52b6b9){const _0x220903=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x38daa4 of _0x220903['getSuggestions']({'skipNotAttached':!0x0})){const _0x35682e=_0x38daa4['getContainedElement']();if(_0x38daa4['subType']===_0x52b6b9&&_0x35682e===_0x38c027)return _0x38daa4;}return null;}}const m='$elementName';class p extends _0x4a996f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x28b017,_0x5495f9,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(_0x1e871b){super(_0x1e871b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4371ef,_0x2dc337,_0x4c4ddf,_0x6f6490)=>{this['_model']['change'](()=>{for(const _0x273f4b of[..._0x6f6490,..._0x4c4ddf])this['_model']['markers']['has'](_0x273f4b)&&_0x1e871b['editing']['reconvertMarker'](_0x273f4b);});}),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']=_0x1e871b['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(),_0x1e871b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1e871b['config']['get']('trackChanges.trackFormatChanges'),_0x1e871b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1e871b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1e871b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x36dafe=this['editor'],_0x56e843=(_0x1b7e3a,_0x14f82c)=>{if('attribute'!=_0x1b7e3a)return'ck-suggestion-marker-'+_0x1b7e3a;const _0x59b860=_0x14f82c['split']('|')[0x0];return this['_isBlockAttribute'](_0x59b860)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x36dafe['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x10ede3=>{const {id:_0x33d2c1,authorId:_0x3aafc7,type:_0x43f79f,subType:_0x4aea2a}=this['_splitMarkerName'](_0x10ede3['markerName']),_0x1c8b05=['ck-suggestion-marker',_0x56e843(_0x43f79f,_0x4aea2a)];let _0x612832=0xbb8;return this['activeMarkers']['includes'](_0x10ede3['markerName'])&&(_0x1c8b05['push']('ck-suggestion-marker--active'),_0x612832=0xbc2),'deletion'==_0x43f79f&&(_0x612832+=0x5),{'classes':_0x1c8b05,'attributes':{'data-suggestion':_0x33d2c1,'data-author-id':_0x3aafc7},'priority':_0x612832};}}),_0x36dafe['conversion']['for']('dataDowncast')['add'](_0x8cecfd=>{_0x8cecfd['on']('addMarker:suggestion',(_0x25dd2b,_0x5c804c,_0x3f20e8)=>{if(!_0x3f20e8['options']['showSuggestionHighlights'])return;const _0x5584bd=_0x5c804c['item'];if(!_0x5584bd)return;const _0x5acf7e=_0x3f20e8['mapper']['toViewElement'](_0x5584bd);_0x36dafe['model']['schema']['isObject'](_0x5584bd)&&_0x5acf7e&&!_0x5acf7e['getCustomProperty']('widget')&&_0x5acf7e['is']('containerElement')&&_0x215dd1(_0x5acf7e,_0x3f20e8['writer']);},{'priority':'high'});}),_0x36dafe['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2eb02a,_0x31b247)=>{if(!_0x31b247['options']['showSuggestionHighlights'])return null;const {type:_0x889abe,subType:_0x34630f}=this['_splitMarkerName'](_0x2eb02a['markerName']);return{'classes':['ck-suggestion-marker',_0x56e843(_0x889abe,_0x34630f)],'priority':0xbb8};}});const _0x2cd281=({showActiveMarkers:_0x29527e=!0x0,isAttributeSuggestion:_0x2f69af=!0x1}={})=>(_0x4000b4,_0xe1e4fa,_0x8b7c23)=>{if(!_0xe1e4fa['item'])return;const {id:_0x3c2b10,authorId:_0x36b8ed}=this['_splitMarkerName'](_0xe1e4fa['markerName']);if(_0x2f69af){const _0x4a3503=this['_suggestions']['get'](_0x3c2b10),_0x5c7a7a=this['_getAttributeKey'](_0x4a3503);if(!this['_isBlockAttribute'](_0x5c7a7a))return;}if(_0xe1e4fa['item']['is']('selection'))return void _0x8b7c23['consumable']['consume'](_0xe1e4fa['item'],_0x4000b4['name']);const _0x5287c5=_0x8b7c23['mapper']['toViewElement'](_0xe1e4fa['item']);if(_0xe1e4fa['item']['is']('element')&&_0x36dafe['model']['schema']['isBlock'](_0xe1e4fa['item'])&&!_0x5287c5['getCustomProperty']('addHighlight')){_0x8b7c23['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5287c5),_0x8b7c23['writer']['setAttribute']('data-suggestion',_0x3c2b10,_0x5287c5),_0x8b7c23['writer']['setAttribute']('data-author-id',_0x36b8ed,_0x5287c5),_0x8b7c23['mapper']['bindElementToMarker'](_0x5287c5,_0xe1e4fa['markerName']),_0x29527e&&(this['activeMarkers']['includes'](_0xe1e4fa['markerName'])?_0x8b7c23['writer']['addClass']('ck-suggestion-marker--active',_0x5287c5):_0x8b7c23['writer']['removeClass']('ck-suggestion-marker--active',_0x5287c5));for(const _0x52be8f of _0x36dafe['model']['createRangeIn'](_0xe1e4fa['item'])['getItems']())_0x8b7c23['consumable']['consume'](_0x52be8f,_0x4000b4['name']);_0x8b7c23['consumable']['consume'](_0xe1e4fa['item'],_0x4000b4['name']);}};_0x36dafe['conversion']['for']('dataDowncast')['add'](_0x50fbe4=>{_0x50fbe4['on']('addMarker:suggestion:formatBlock',(_0x1955cc,_0x401d36,_0x53263c)=>{_0x53263c['options']['showSuggestionHighlights']&&_0x2cd281({'showActiveMarkers':!0x1})(_0x1955cc,_0x401d36,_0x53263c);},{'priority':'highest'});}),_0x36dafe['conversion']['for']('dataDowncast')['add'](_0x460408=>{_0x460408['on']('addMarker:suggestion:attribute',(_0x4cf978,_0x462eca,_0x566050)=>{_0x566050['options']['showSuggestionHighlights']&&_0x2cd281({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4cf978,_0x462eca,_0x566050);},{'priority':'highest'});}),_0x36dafe['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x285616,_0x426023)=>_0x426023['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x285616['substr'](0xb)}}),_0x36dafe['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5bda60,{writer:_0x2a6da0})=>{let _0x5c02ca='suggestion:'+_0x5bda60['getAttribute']('suggestion-type')+':'+_0x5bda60['getAttribute']('id');return _0x5bda60['getAttribute']('marker-count')&&(_0x5c02ca+=':'+_0x5bda60['getAttribute']('marker-count')),_0x2a6da0['createElement']('$marker',{'data-name':_0x5c02ca});}}),_0x36dafe['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x36dafe['conversion']['for']('editingDowncast')['add'](_0x12c27f=>{_0x12c27f['on']('addMarker:suggestion:formatBlock',_0x2cd281(),{'priority':'high'});}),_0x36dafe['conversion']['for']('editingDowncast')['add'](_0x68de68=>{_0x68de68['on']('addMarker:suggestion:attribute',_0x2cd281({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x36dafe['conversion']['for']('editingDowncast')['add'](_0x3704b7=>{_0x3704b7['on']('removeMarker:suggestion:formatBlock',(_0x128009,_0x27f76b,_0x378a82)=>{const _0x59ee0b=_0x378a82['mapper']['markerNameToElements'](_0x27f76b['markerName']);if(_0x59ee0b){for(const _0x4057f4 of _0x59ee0b)_0x4057f4['getCustomProperty']('addHighlight')||(_0x378a82['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4057f4),_0x378a82['writer']['removeAttribute']('data-suggestion',_0x4057f4),_0x378a82['writer']['removeAttribute']('data-author-id',_0x4057f4),_0x378a82['mapper']['unbindElementFromMarkerName'](_0x4057f4,_0x27f76b['markerName']));}},{'priority':'high'});}),_0x36dafe['conversion']['for']('editingDowncast')['add'](_0x310992=>{_0x310992['on']('removeMarker:suggestion:attribute',(_0x4edd63,_0x331b46,_0x20a1fd)=>{const _0x411b01=_0x20a1fd['mapper']['markerNameToElements'](_0x331b46['markerName']);if(!_0x411b01)return;const {id:_0x25e235}=this['_splitMarkerName'](_0x331b46['markerName']),_0x1eb0b8=this['_suggestions']['get'](_0x25e235),_0x2a2a17=this['_getAttributeKey'](_0x1eb0b8);if(this['_isBlockAttribute'](_0x2a2a17)){for(const _0x565b25 of _0x411b01)_0x565b25['getCustomProperty']('addHighlight')||(_0x20a1fd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x565b25),_0x20a1fd['writer']['removeAttribute']('data-suggestion',_0x565b25),_0x20a1fd['writer']['removeAttribute']('data-author-id',_0x565b25),_0x20a1fd['mapper']['unbindElementFromMarkerName'](_0x565b25,_0x331b46['markerName']));}},{'priority':'high'});}),_0x36dafe['model']['document']['registerPostFixer'](_0x57bb1a=>{let _0x5dbda1=!0x1;const _0x26418d=Array['from'](_0x36dafe['model']['document']['differ']['getChangedMarkers']()),_0x5d1e48=new Set();for(const {name:_0xbac859,data:_0x294386}of _0x26418d){const {group:_0x505263,type:_0x35eac0,subType:_0x6eb9f7,id:_0xfe499d}=this['_splitMarkerName'](_0xbac859);if('suggestion'!==_0x505263)continue;const _0x4de259=this['_suggestions']['get'](_0xfe499d);if(null!=_0x294386['newRange']){'formatInline'==_0x35eac0&&(_0x5dbda1=_0x5dbda1||Lt(_0x294386['newRange'],_0xbac859,_0x57bb1a,_0x36dafe['model']['schema']));const _0xf1a079='attribute'==_0x35eac0&&this['_isBlockAttribute'](_0x6eb9f7['split']('|')[0x0]);if(_0x294386['newRange']['isCollapsed']||'$graveyard'==_0x294386['newRange']['root']['rootName']||'formatBlock'==_0x35eac0&&!Ht(_0x294386['newRange'])||_0xf1a079&&!Ht(_0x294386['newRange'])||'deletion'==_0x35eac0&&!(!Ft(_0x559ff7=_0x294386['newRange'])&&!function(_0x3cfa6e){return _0x3cfa6e['start']['parent']==_0x3cfa6e['end']['nodeBefore']&&_0x3cfa6e['start']['isAtEnd'];}(_0x559ff7)))_0x57bb1a['removeMarker'](_0xbac859),_0x5dbda1=!0x0;else{if(!_0x4de259||!_0x4de259['isInContent'])continue;if(_0x294386['newRange']&&_0x294386['oldRange']&&_0x294386['newRange']['isEqual'](_0x294386['oldRange']))continue;_0x5d1e48['add'](_0x4de259);}}}var _0x559ff7;return _0x5d1e48['size']>0x0&&(_0x5dbda1=!!this['_joinWithAdjacentSuggestions'](_0x5d1e48)||_0x5dbda1),_0x5dbda1;}),_0x36dafe['model']['document']['registerPostFixer'](_0x1b9793=>{let _0x576027=!0x1;for(const _0x2c747d of _0x36dafe['model']['document']['differ']['getChanges']())if('insert'==_0x2c747d['type'])for(const _0x306d31 of this['_suggestions']['values']()){if(_0x306d31['isMultiRange']||!_0x306d31['isInContent'])continue;const _0x5a4bde='formatBlock'==_0x306d31['type'],_0x5b0e51=this['_getAttributeKey'](_0x306d31),_0x2752be=_0x5b0e51&&this['_isBlockAttribute'](_0x5b0e51);if(!_0x5a4bde&&!_0x2752be)continue;const _0x54ca12=_0x306d31['getFirstRange']();if(_0x54ca12['start']['parent']!=_0x54ca12['end']['parent']&&!_0x54ca12['end']['isAtEnd']){const _0x338de2=_0x36dafe['model']['createPositionAt'](_0x54ca12['start']['nodeAfter'],'end'),_0x36e569=_0x36dafe['model']['createRange'](_0x54ca12['start'],_0x338de2);_0x1b9793['updateMarker'](_0x306d31['getFirstMarker'](),{'range':_0x36e569}),_0x576027=!0x0;}}return _0x576027;}),_0x36dafe['model']['document']['registerPostFixer'](_0x475a7f=>this['_processAttributeChanges'](_0x475a7f)),_0x36dafe['model']['document']['registerPostFixer'](_0xb04d4d=>!_0xb04d4d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xb04d4d)),_0x36dafe['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x36dafe['model']['document']['on']('change:data',(_0x2a9aea,_0x2c59c4)=>{if(!_0x2c59c4['isLocal']||_0x2c59c4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3d961a=_0x36dafe['model']['document']['differ']['getChanges']();if(0x0==_0x3d961a['length'])return;const _0x49f4c4=[],_0x13f47c=_0x3d961a['filter'](_0x3a4af2=>'attribute'==_0x3a4af2['type']),_0x288e27=_0x3d961a['filter'](_0x40be3d=>'insert'==_0x40be3d['type']&&'$text'!=_0x40be3d['name']);for(const _0x1f9f75 of _0x13f47c)this['_isRegisteredAttribute'](_0x1f9f75['attributeKey'])&&_0x49f4c4['push']({'key':_0x1f9f75['attributeKey'],'newValue':_0x1f9f75['attributeNewValue'],'oldValue':_0x1f9f75['attributeOldValue'],'range':qt(_0x1f9f75['range'],_0x36dafe['model'])});for(const _0x556fba of _0x288e27){if('rename'!=_0x556fba['action']&&'refresh'!=_0x556fba['action'])continue;const _0x2f9ff6=zt(_0x556fba['position']['nodeAfter'],_0x36dafe['model']),_0x2192fd=_0x556fba['before'];'rename'==_0x556fba['action']&&_0x49f4c4['push']({'key':m,'newValue':_0x556fba['name'],'oldValue':_0x2192fd['name'],'range':_0x2f9ff6});for(const [_0xa17a30,_0x46cfd1]of _0x2192fd['attributes']){if(!this['_isRegisteredAttribute'](_0xa17a30))continue;const _0x50937d=_0x556fba['attributes']['get'](_0xa17a30);_0x46cfd1!==_0x50937d&&_0x49f4c4['push']({'key':_0xa17a30,'newValue':_0x50937d,'oldValue':_0x46cfd1,'range':_0x2f9ff6});}for(const [_0x5df51b,_0x4baa40]of _0x556fba['attributes'])this['_isRegisteredAttribute'](_0x5df51b)&&(_0x2192fd['attributes']['has'](_0x5df51b)||_0x49f4c4['push']({'key':_0x5df51b,'newValue':_0x4baa40,'oldValue':null,'range':_0x2f9ff6}));}0x0!=_0x49f4c4['length']&&_0x36dafe['model']['enqueueChange'](_0x2c59c4,_0x268386=>{const _0x56862c=_0x13cee6();for(const {range:_0x430fb9,key:_0x4987f7,oldValue:_0x3bde7d,newValue:_0x1b650c}of _0x49f4c4)this['markAttributeChange'](_0x430fb9,_0x4987f7,_0x3bde7d,_0x1b650c,{'groupId':_0x56862c});this['_reduceExistingSuggestions'](_0x268386,_0x49f4c4);});},{'priority':'lowest'}),_0x36dafe['model']['markers']['on']('update:suggestion',(_0x687f2e,_0x28135b,_0x15f4e3)=>{if(null==_0x15f4e3){const {id:_0x295d9a}=this['_splitMarkerName'](_0x28135b['name']),_0x4d4c3b=this['_suggestions']['get'](_0x295d9a);_0x4d4c3b&&_0x4d4c3b['addMarkerName'](_0x28135b['name']);}}),_0x36dafe['model']['document']['on']('change:data',()=>{const _0x57a201=Array['from'](_0x36dafe['model']['document']['differ']['getChangedMarkers']())['filter'](_0x41f7da=>'suggestion'===this['_splitMarkerName'](_0x41f7da['name'])['group']);if(0x0===_0x57a201['length'])return;_0x57a201['sort']((_0x3f765a,_0x20c03f)=>{const _0x4c24ca=_0x3f765a['data']['oldRange'],_0x2882c9=_0x20c03f['data']['oldRange'];return null===_0x4c24ca&&null===_0x2882c9?0x0:null===_0x4c24ca&&null!==_0x2882c9?-0x1:null!==_0x4c24ca&&null===_0x2882c9?0x1:_0x4c24ca['start']['isBefore'](_0x2882c9['start'])?-0x1:0x1;});const _0x278082=new Set(),_0x34bc70=new Set();for(const {name:_0x7fc40d,data:_0x4c6bac}of _0x57a201){const {id:_0x3c5ac2}=this['_splitMarkerName'](_0x7fc40d);if(null===_0x4c6bac['oldRange']){const _0x236aaa=this['_handleNewSuggestionMarker'](_0x7fc40d);_0x34bc70['add'](_0x236aaa);}else{const _0x210bd3=this['_suggestions']['get'](_0x3c5ac2);null!==_0x4c6bac['newRange']||_0x210bd3['isInContent']?(_0x278082['add'](_0x210bd3['head']),_0x34bc70['add'](_0x210bd3)):this['_removeSuggestion'](_0x210bd3);}}_0x34bc70['size']>0x0&&this['_refreshSuggestionsChain'](_0x34bc70);for(const _0x10ab1b of _0x278082)this['fire']('suggestionChanged',_0x10ab1b);}),_0x36dafe['model']['on']('applyOperation',(_0x5eb107,_0x32e0f9)=>{const _0x585ba6=_0x32e0f9[0x0];if(!this['_suggestions']['size'])return;if(!_0x585ba6['isDocumentOperation'])return;if(_0x585ba6['batch']['isUndo']||!_0x585ba6['batch']['isLocal'])return;let _0x170ab1,_0x2c9764;switch(_0x585ba6['type']){case'insert':_0x170ab1=_0x36dafe['model']['createPositionAt'](_0x585ba6['position']),_0x2c9764=_0x170ab1['getShiftedBy'](_0x585ba6['howMany']);break;case'split':_0x170ab1=_0x36dafe['model']['createPositionAt'](_0x585ba6['splitPosition']),_0x2c9764=_0x36dafe['model']['createPositionAt'](_0x585ba6['moveTargetPosition']);break;case'move':_0x170ab1=_0x36dafe['model']['createPositionAt'](_0x585ba6['targetPosition']),_0x2c9764=_0x170ab1['getShiftedBy'](_0x585ba6['howMany']);break;default:return;}const _0x3a4bd2=_0x36dafe['model']['createRange'](_0x170ab1,_0x2c9764);_0x36dafe['model']['change'](()=>{for(const {suggestion:_0x505e4c,meta:_0x103283}of this['_findSuggestions'](_0x3a4bd2)){if(_0x505e4c['isMultiRange'])continue;if('formatInline'==_0x505e4c['type'])continue;const _0x2e4705=this['_getAttributeKey'](_0x505e4c);if(_0x2e4705&&this['_isBlockAttribute'](_0x2e4705)&&'split'!=_0x585ba6['type'])continue;const _0x199887=_0x505e4c['data']&&_0x505e4c['data']['multipleBlocks'];('formatBlock'!=_0x505e4c['type']||'split'==_0x585ba6['type']&&!_0x199887)&&(_0x103283['containsRangeInObject']||'insertion'==_0x505e4c['type']&&_0x103283['isOwn']||_0x505e4c['getFirstRange']()['containsRange'](_0x3a4bd2)&&this['_breakSuggestionMarker'](_0x505e4c,_0x170ab1,_0x2c9764));}});},{'priority':'lowest'}),_0x36dafe['model']['on']('deleteContent',(_0xfd6e90,_0x47e594)=>{const _0x299102=_0x47e594[0x0],_0x474859=_0x47e594[0x1];if(_0x474859&&_0x474859['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x299102['isCollapsed'])return;const _0x32a3e8=_0x36dafe['model']['schema'],{start:_0x1e74e7,end:_0x43ea03}=_0x299102['getFirstRange'](),_0x10b027=_0x1e74e7['nodeAfter']&&_0x32a3e8['isLimit'](_0x1e74e7['nodeAfter'])?null:_0x32a3e8['getNearestSelectionRange'](_0x1e74e7,'forward'),_0x47cb58=_0x43ea03['nodeBefore']&&_0x32a3e8['isLimit'](_0x43ea03['nodeBefore'])?null:_0x32a3e8['getNearestSelectionRange'](_0x43ea03,'backward'),_0x17241a=_0x36dafe['model']['createRange'](_0x10b027?_0x10b027['start']:_0x1e74e7,_0x47cb58?_0x47cb58['end']:_0x43ea03);_0x36dafe['model']['change'](_0x20b663=>{this['markDeletion'](_0x17241a);const _0x504cb1=_0x36dafe['model']['schema']['getNearestSelectionRange'](_0x17241a['start']);_0x299102['is']('documentSelection')?_0x20b663['setSelection'](_0x504cb1):_0x299102['setTo'](_0x504cb1);}),_0xfd6e90['stop']();},{'priority':_0x1d18d2['normal']+0xa}),_0x36dafe['model']['on']('insertContent',(_0x41afcd,_0x1dc18c)=>{const _0x1acb4b=_0x1dc18c[_0x1dc18c['length']-0x1];_0x1acb4b&&_0x1acb4b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x36dafe['model']['change'](()=>{let _0x20dc85=_0x36dafe['model']['insertContent'](_0x1dc18c[0x0],_0x1dc18c[0x1],_0x1dc18c[0x2],{'forceDefaultExecution':!0x0});if(!_0x20dc85)return;_0x41afcd['return']=_0x20dc85['clone']();const _0x2461a5=_0x20dc85['end']['nodeBefore'],_0x18242c=_0x36dafe['model']['schema'];_0x2461a5&&_0x18242c['isBlock'](_0x2461a5)&&!_0x18242c['isObject'](_0x2461a5)&&(_0x20dc85=_0x36dafe['model']['createRange'](_0x20dc85['start'],_0x36dafe['model']['createPositionAt'](_0x2461a5,'end'))),this['markInsertion'](_0x20dc85);}),_0x41afcd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x26785d=new O(_0x36dafe,this['_suggestions']);_0x36dafe['commands']['add']('acceptSuggestion',_0x26785d),this['enableCommand']('acceptSuggestion');const _0x2eab24=new R(_0x36dafe,this['_suggestions']);_0x36dafe['commands']['add']('discardSuggestion',_0x2eab24),this['enableCommand']('discardSuggestion'),_0x36dafe['commands']['add']('acceptAllSuggestions',new x(_0x36dafe,_0x26785d,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x36dafe['commands']['add']('discardAllSuggestions',new x(_0x36dafe,_0x2eab24,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x36dafe['commands']['add']('acceptSelectedSuggestions',new E(_0x36dafe,_0x26785d,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x36dafe['commands']['add']('discardSelectedSuggestions',new E(_0x36dafe,_0x2eab24,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x74ddea=_0x36dafe['plugins']['get']('CommentsRepository');this['listenTo'](_0x74ddea,'addComment',(_0x17d537,{threadId:_0x201235})=>{const _0x44f7c7=this['_suggestions']['get'](_0x201235);_0x44f7c7&&_0x44f7c7['commentThread']&&0x1===_0x44f7c7['commentThread']['length']&&this['_updateSuggestionData'](_0x201235,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x74ddea,'removeComment',(_0x2dec46,{threadId:_0x567ceb})=>{const _0x23bdcb=this['_suggestions']['get'](_0x567ceb);_0x23bdcb&&_0x23bdcb['commentThread']&&!_0x23bdcb['commentThread']['length']&&this['_updateSuggestionData'](_0x567ceb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x53737c){const _0x11a936=_0x4e6636([0x4b,0x7a,0x34,0x76,0x4d,0x74,0x37,0x59,0x49,0x45,0x62,0x43,0x4e,0x32,0x77,0x44,0x4f,0x47,0x58,0x35,0x41,0x56,0x31,0x70,0x66,0x65,0x57,0x68,0x50,0x69,0x6a,0x36,0x54,0x51,0x4c,0x38,0x42,0x67,0x55,0x75,0x48,0x72,0x73,0x6f,0x5a,0x4a,0x79,0x71,0x6c,0x6d,0x39,0x6b,0x6e,0x30,0x52,0x46,0x63,0x53,0x33,0x64,0x61,0x78]),_0x39a6e2=0x65850074,_0x3c7767=0x65826134^_0x39a6e2,_0x198c3b=window[_0x4e6636([0x44,0x61,0x74,0x65])][_0x4e6636([0x6e,0x6f,0x77])](),_0x5cc296=_0x53737c[_0x4e6636([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x242f95=new window[(_0x4e6636([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc89964=>{_0x5cc296[_0x4e6636([0x6f,0x6e,0x63,0x65])](_0x4e6636([0x72,0x65,0x61,0x64,0x79]),_0xc89964);}),_0x44a248={[_0x4e6636([0x6b,0x74,0x79])]:_0x4e6636([0x45,0x43]),[_0x4e6636([0x75,0x73,0x65])]:_0x4e6636([0x73,0x69,0x67]),[_0x4e6636([0x63,0x72,0x76])]:_0x4e6636([0x50,0x2d,0x32,0x35,0x36]),[_0x4e6636([0x78])]:_0x4e6636([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]),[_0x4e6636([0x79])]:_0x4e6636([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]),[_0x4e6636([0x61,0x6c,0x67])]:_0x4e6636([0x45,0x53,0x32,0x35,0x36])},_0x571cd1=_0x5cc296[_0x4e6636([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e6636([0x67,0x65,0x74])](_0x4e6636([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x18fdc6(){let _0x4b3103,_0xa32d1e=null,_0x3eb739=null;try{if(_0x571cd1==_0x4e6636([0x47,0x50,0x4c]))return _0x4e6636([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b3103=_0x475f4d(),!_0x4b3103)return _0x4e6636([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b3103[_0x4e6636([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3eb739=_0x31f502(_0x4b3103[_0x4e6636([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b3103[_0x4e6636([0x6a,0x74,0x69])])),await _0x130eba()?_0x564d4a()?_0x310225()?_0x4e6636([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25cda1()?(_0x4b3103[_0x4e6636([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e6636([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa32d1e=_0x3e4578(_0x4e6636([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b3103[_0x4e6636([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e6636([0x74,0x72,0x69,0x61,0x6c])&&(_0xa32d1e=_0x3e4578(_0x4e6636([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x359370()):_0x4e6636([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e6636([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e6636([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x34387c){return _0x4e6636([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x310225(){const _0xf401ed=[_0x4e6636([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e6636([0x74,0x72,0x69,0x61,0x6c])][_0x4e6636([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b3103[_0x4e6636([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x198c3b/0x3e8:0xe10*_0x3c7767;return _0x4b3103[_0x4e6636([0x65,0x78,0x70])]<_0xf401ed;}function _0x564d4a(){const _0x378658=_0x4b3103[_0x4e6636([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x378658)return!0x1;if(_0x378658[_0x4e6636([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e6636([0x2a])))return!0x0;if(_0x378658[_0x4e6636([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e6636([0x54,0x43])))return!0x0;if(_0x378658[_0x4e6636([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e6636([0x52,0x54,0x43]))){if(_0x2dcb10())return!0x0;if(_0x2aec40()||_0x25576a())return!0x0;}return!0x1;}function _0x25cda1(){const _0x1a6e4b=_0x4b3103[_0x4e6636([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a6e4b||0x0==_0x1a6e4b[_0x4e6636([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e617d}=new URL(window[_0x4e6636([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a6e4b[_0x4e6636([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e617d))return!0x0;const _0x491329=_0x2e617d[_0x4e6636([0x73,0x70,0x6c,0x69,0x74])](_0x4e6636([0x2e]));return _0x1a6e4b[_0x4e6636([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f4bfd=>_0x4f4bfd[_0x4e6636([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e6636([0x2a])))[_0x4e6636([0x6d,0x61,0x70])](_0x53e0b4=>_0x53e0b4[_0x4e6636([0x73,0x70,0x6c,0x69,0x74])](_0x4e6636([0x2e])))[_0x4e6636([0x73,0x6f,0x6d,0x65])](_0x2557d5=>_0x491329[_0x4e6636([0x65,0x76,0x65,0x72,0x79])]((_0x50f53a,_0x55a930)=>_0x2557d5[_0x55a930]===_0x50f53a||_0x2557d5[_0x55a930]===_0x4e6636([0x2a])));}function _0x359370(){return _0xa32d1e&&_0x3eb739?new window[(_0x4e6636([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15082f,_0x50d2b8)=>{_0xa32d1e[_0x4e6636([0x74,0x68,0x65,0x6e])](_0x15082f,_0x50d2b8),_0x3eb739[_0x4e6636([0x74,0x68,0x65,0x6e])](_0x1f9d34=>{_0x1f9d34!=_0x4e6636([0x56,0x61,0x6c,0x69,0x64])&&_0x15082f(_0x1f9d34);},_0x50d2b8);}):_0xa32d1e||_0x3eb739||_0x4e6636([0x56,0x61,0x6c,0x69,0x64]);}}function _0x31f502(_0x29d1aa,_0x54c26a){return new window[(_0x4e6636([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x252270=>{if(_0x5cb456())return _0x252270(_0x4e6636([0x56,0x61,0x6c,0x69,0x64]));_0x878dc(),_0x5cc296[_0x4e6636([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e6636([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x292b4b=!0x1;const _0x40cb4e=_0x13cee6();function _0x2757c7(_0x4c41f2){return!!_0x4c41f2&&(typeof _0x4c41f2===_0x4e6636([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4c41f2===_0x4e6636([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4c41f2[_0x4e6636([0x74,0x68,0x65,0x6e])]===_0x4e6636([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4c41f2[_0x4e6636([0x63,0x61,0x74,0x63,0x68])]===_0x4e6636([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x7f482f(_0x253875){_0x4e4baf(_0x253875)[_0x4e6636([0x74,0x68,0x65,0x6e])](_0x1c70ad=>{if(!_0x1c70ad||_0x1c70ad[_0x4e6636([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e6636([0x6f,0x6b]))return _0x4e6636([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56ab84(_0x1b560e(_0x40cb4e+_0x54c26a))!=_0x1c70ad[_0x4e6636([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e6636([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e6636([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e6636([0x74,0x68,0x65,0x6e])](_0x5e2121=>(_0x3ba14f(),_0x5e2121),()=>{const _0x1704d5=_0x2ece46();return null==_0x1704d5?(_0x3ba14f(),_0x4e6636([0x56,0x61,0x6c,0x69,0x64])):_0x4e6636(_0x198c3b-_0x1704d5>(0x41898474^_0x39a6e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e6636([0x74,0x68,0x65,0x6e])](_0x252270)[_0x4e6636([0x63,0x61,0x74,0x63,0x68])](()=>{_0x252270(_0x4e6636([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x412d61=0x65b3eef4^_0x39a6e2;function _0x3ba14f(){const _0x5c32ed=_0x4e6636([0x6c,0x6c,0x63,0x74,0x2d])+_0x56ab84(_0x1b560e(_0x29d1aa)),_0x343100=_0x56aa70(_0x56ab84(window[_0x4e6636([0x4d,0x61,0x74,0x68])][_0x4e6636([0x63,0x65,0x69,0x6c])](_0x198c3b/_0x412d61)));window[_0x4e6636([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e6636([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5c32ed,_0x343100);}function _0x2ece46(){const _0x32b30f=_0x4e6636([0x6c,0x6c,0x63,0x74,0x2d])+_0x56ab84(_0x1b560e(_0x29d1aa)),_0x59a316=window[_0x4e6636([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e6636([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32b30f);return _0x59a316?window[_0x4e6636([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56aa70(_0x59a316),0x10)*_0x412d61:null;}function _0x4e4baf(_0x47262c){return new window[(_0x4e6636([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x407f7f,_0x3c1d53)=>{_0x47262c[_0x4e6636([0x74,0x68,0x65,0x6e])](_0x407f7f,_0x3c1d53),window[_0x4e6636([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c1d53,0x6584d4b4^_0x39a6e2);});}}_0x5cc296[_0x4e6636([0x6f,0x6e])](_0x4e6636([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x28ce84,_0x3a0d9c)=>{if(_0x3a0d9c[0x0]!=_0x29d1aa)return _0x252270(_0x4e6636([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a0d9c[0x1]={..._0x3a0d9c[0x1],[_0x4e6636([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40cb4e};},{[_0x4e6636([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e6636([0x68,0x69,0x67,0x68])}),_0x5cc296[_0x4e6636([0x6f,0x6e])](_0x4e6636([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3dbb67=>{_0x2757c7(_0x3dbb67[_0x4e6636([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x292b4b=!0x0,_0x7f482f(_0x3dbb67[_0x4e6636([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e6636([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e6636([0x6c,0x6f,0x77])}),_0x242f95[_0x4e6636([0x74,0x68,0x65,0x6e])](()=>{_0x292b4b||_0x252270(_0x4e6636([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cb456(){return _0x5cc296[_0x4e6636([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e6636([0x76,0x69,0x65,0x77])][_0x4e6636([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e6636([0x61,0x75,0x74,0x6f]);}function _0x878dc(){_0x5cc296[_0x4e6636([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e6636([0x76,0x69,0x65,0x77])][_0x4e6636([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e6636([0x61,0x75,0x74,0x6f]);}}function _0x3e4578(_0x93d1a2){const _0x5123b0=[new window[(_0x4e6636([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x298a16=>setTimeout(_0x298a16,0x658c3eb8^_0x39a6e2)),_0x242f95[_0x4e6636([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e6636([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x483a28=>{let _0x2bca3b=0x0;_0x5cc296[_0x4e6636([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e6636([0x6f,0x6e])](_0x4e6636([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b533e,_0x45dfc3)=>{_0x45dfc3[0x0][_0x4e6636([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2bca3b++,_0x2bca3b==(0x6585018c^_0x39a6e2)&&(_0x483a28(),_0x2b533e[_0x4e6636([0x6f,0x66,0x66])]());});}))];return window[_0x4e6636([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e6636([0x72,0x61,0x63,0x65])](_0x5123b0)[_0x4e6636([0x74,0x68,0x65,0x6e])](()=>_0x93d1a2);}async function _0x2d230b(){await _0x242f95,_0x5cc296[_0x4e6636([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e6636([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x30e493,_0x5cc296[_0x4e6636([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e6636([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x30e493,_0x5cc296[_0x4e6636([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e6636([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2dcb10(){return _0x4e4703(_0x4e6636([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x152b24(_0x4e6636([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4e6636([0x73,0x74,0x61,0x74,0x65])]==_0x4e6636([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2aec40(){return _0x4e4703(_0x4e6636([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 _0x25576a(){return _0x4e4703(_0x4e6636([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4ab606(_0x1286a1){const _0x26ba89=_0x7427db();_0x5cc296[_0x26ba89]=_0x4e6636([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1286a1,_0x1286a1!=_0x4e6636([0x56,0x61,0x6c,0x69,0x64])&&_0x2d230b();}function _0x7427db(){const _0x45101f=window[_0x4e6636([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e6636([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e6636([0x6e,0x6f,0x77])]())[_0x4e6636([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e6636([0x2e]),'');let _0x1dbbf7=_0x4e6636([0x4b]);for(let _0x3d5167=0x0;_0x3d5167<_0x45101f[_0x4e6636([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3d5167+=0x2){let _0x59a56d=window[_0x4e6636([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45101f[_0x4e6636([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d5167,_0x3d5167+0x2));_0x59a56d>=_0x11a936[_0x4e6636([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59a56d-=_0x11a936[_0x4e6636([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1dbbf7+=_0x11a936[_0x59a56d];}return _0x1dbbf7;}function _0x475f4d(){const _0x397713=_0x571cd1[_0x4e6636([0x73,0x70,0x6c,0x69,0x74])](_0x4e6636([0x2e]));if(0x3!=_0x397713[_0x4e6636([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40b1d3(_0x397713[0x1]);function _0x40b1d3(_0x3d99ad){const _0x392b66=_0x50dfd0(_0x3d99ad);return _0x392b66&&_0x2cb55f()?_0x392b66:null;function _0x2cb55f(){const _0x276ebc=_0x392b66[_0x4e6636([0x6a,0x74,0x69])],_0x36e0a2=window[_0x4e6636([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x276ebc[_0x4e6636([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x276ebc[_0x4e6636([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b4e45={..._0x392b66,[_0x4e6636([0x6a,0x74,0x69])]:_0x276ebc[_0x4e6636([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x276ebc[_0x4e6636([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b4e45[_0x4e6636([0x76,0x63])],_0x1b560e(_0x2b4e45)==_0x36e0a2;}}}async function _0x130eba(){let _0x53c7f2=!0x0;try{const _0xcd9a79=_0x571cd1[_0x4e6636([0x73,0x70,0x6c,0x69,0x74])](_0x4e6636([0x2e])),[_0x513b55,_0x3d646d,_0x25c38f]=_0xcd9a79;return _0x535b75(_0x513b55),await _0x19f116(_0x513b55,_0x3d646d,_0x25c38f),_0x53c7f2;}catch(_0x278edf){return!0x1;}function _0x535b75(_0x3b5377){const _0x1eef4d=_0x50dfd0(_0x3b5377);_0x1eef4d&&_0x1eef4d[_0x4e6636([0x61,0x6c,0x67])]==_0x4e6636([0x45,0x53,0x32,0x35,0x36])||(_0x53c7f2=!0x1);}async function _0x19f116(_0x246933,_0x15611c,_0x5e1b8b){const _0x1af607=window[_0x4e6636([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e6636([0x66,0x72,0x6f,0x6d])](_0x18a3b4(_0x5e1b8b),_0x568298=>_0x568298[_0x4e6636([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x15a450=new window[(_0x4e6636([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e6636([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x246933+_0x4e6636([0x2e])+_0x15611c),_0xab74ee=window[_0x4e6636([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e6636([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xab74ee)return;const _0x3d7f4f=await _0xab74ee[_0x4e6636([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e6636([0x6a,0x77,0x6b]),_0x44a248,{[_0x4e6636([0x6e,0x61,0x6d,0x65])]:_0x4e6636([0x45,0x43,0x44,0x53,0x41]),[_0x4e6636([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e6636([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e6636([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xab74ee[_0x4e6636([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e6636([0x6e,0x61,0x6d,0x65])]:_0x4e6636([0x45,0x43,0x44,0x53,0x41]),[_0x4e6636([0x68,0x61,0x73,0x68])]:{[_0x4e6636([0x6e,0x61,0x6d,0x65])]:_0x4e6636([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d7f4f,_0x1af607,_0x15a450)||(_0x53c7f2=!0x1);}}function _0x50dfd0(_0x30578b){return _0x30578b[_0x4e6636([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e6636([0x65,0x79]))?JSON[_0x4e6636([0x70,0x61,0x72,0x73,0x65])](_0x18a3b4(_0x30578b)):null;}function _0x18a3b4(_0x4320cc){return window[_0x4e6636([0x61,0x74,0x6f,0x62])](_0x4320cc[_0x4e6636([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e6636([0x2b]))[_0x4e6636([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e6636([0x2f])));}function _0x1b560e(_0x2bc2c1){let _0x5c0d59=0x1505;function _0x220929(_0x3b72d0){for(let _0x316b56=0x0;_0x316b56<_0x3b72d0[_0x4e6636([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x316b56++){const _0x10cffd=_0x3b72d0[_0x4e6636([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x316b56);_0x5c0d59=(_0x5c0d59<<0x5)+_0x5c0d59+_0x10cffd,_0x5c0d59&=_0x5c0d59;}}function _0x186ce6(_0x4e74df){Array[_0x4e6636([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e74df)?_0x4e74df[_0x4e6636([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x186ce6):_0x4e74df&&typeof _0x4e74df==_0x4e6636([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e6636([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e74df)[_0x4e6636([0x73,0x6f,0x72,0x74])]()[_0x4e6636([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c90f4,_0x5abc10])=>{_0x220929(_0x3c90f4),_0x186ce6(_0x5abc10);}):_0x220929(window[_0x4e6636([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e74df));}return _0x186ce6(_0x2bc2c1),_0x5c0d59>>>0x0;}function _0x56ab84(_0x10c9df){return _0x10c9df[_0x4e6636([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e6636([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e6636([0x30]));}function _0x56aa70(_0x42c33a){return _0x42c33a[_0x4e6636([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e6636([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e6636([0x6a,0x6f,0x69,0x6e])]('');}function _0x4e4703(_0x4451aa){return _0x5cc296[_0x4e6636([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e6636([0x68,0x61,0x73])](_0x4451aa);}function _0x152b24(_0x586316){return _0x5cc296[_0x4e6636([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e6636([0x67,0x65,0x74])](_0x586316);}function _0x30e493(){}function _0x4e6636(_0x1f806c){return _0x1f806c['map'](_0x59cbb=>String['fromCharCode'](_0x59cbb))['join']('');}_0x4ab606(await _0x18fdc6());}(this);}set['adapter'](_0x4b8907){if(this['_adapter'])throw new _0x27fd5b('track-changes-adapter-already-set',this);this['_adapter']=_0x4b8907;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1dac8a=!0x1,toJSON:_0x45b6b0=!0x1}={}){const _0x241f52=[];for(const _0x1c0f73 of this['_suggestions']['values']())_0x1dac8a&&!_0x1c0f73['isInContent']||_0x241f52['push'](_0x1c0f73);return _0x45b6b0?_0x241f52['map'](_0x238f02=>_0x238f02['toJSON']()):_0x241f52;}['getSuggestion'](_0x25e392){const _0x18a547=this['_suggestions']['get'](_0x25e392);if(!_0x18a547)throw new _0x27fd5b('track-changes-suggestion-not-found',this);return _0x18a547;}['hasSuggestion'](_0x189ac0){return this['_suggestions']['has'](_0x189ac0);}['addSuggestionData'](_0x425ea0){const {authorId:_0x138807,id:_0x207fc8,attributes:_0x1e1c10}=_0x425ea0,[_0x39d90f,_0x8b9818]=_0x425ea0['type']['split'](':'),_0x95fa38=this['_suggestions']['get'](_0x207fc8)||this['_createSuggestion'](_0x39d90f,_0x8b9818,_0x207fc8,_0x138807,_0x1e1c10);if(this['_addThreadToSuggestion'](_0x95fa38),this['_checkSuggestionCorrectness'](_0x95fa38,_0x39d90f,_0x8b9818||null,_0x138807),_0x95fa38['createdAt']=_0x425ea0['createdAt'],_0x95fa38['_isDataLoaded']=!0x0,_0x1e1c10&&_0x1e1c10['@external']){const _0x2186e6=_0x1e1c10['@external'],_0x4f74d2=this['_getExternalAuthor'](_0x2186e6['authorName']);_0x95fa38['authoredAt']=_0x2186e6['createdAt'],_0x95fa38['author']=_0x4f74d2,_0x95fa38['isExternal']=!0x0;}else _0x95fa38['authoredAt']=_0x425ea0['createdAt'];switch(_0x425ea0['data']&&(_0x95fa38['data']=_0x425ea0['data']),_0x425ea0['attributes']&&(_0x95fa38['attributes']=_0x425ea0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x95fa38['_saved']=!0x0),this['_suggestionState']['get'](_0x95fa38)){case'notReady':this['_suggestionState']['set'](_0x95fa38,'dataReady');break;case'markerReady':_0x95fa38['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x95fa38])),this['_refreshSuggestionsChain'](new Set([_0x95fa38])),this['_suggestionState']['set'](_0x95fa38,'ready'),this['fire']('suggestionLoaded',_0x95fa38)):this['_suggestionState']['set'](_0x95fa38,'removed');}return _0x95fa38;}['acceptSuggestion'](_0x54455a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4d9ded of _0x54455a['getAllAdjacentSuggestions']())_0x4d9ded['accept']();});});}['discardSuggestion'](_0x510e50){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4abfa0 of _0x510e50['getAllAdjacentSuggestions']())_0x4abfa0['discard']();});});}['enableCommand'](_0x51385,_0x259752){const _0x1f47a7=this['editor']['commands']['get'](_0x51385);if(!_0x1f47a7)throw new _0x27fd5b('track-changes-command-not-found',this,{'commandName':_0x51385});if(this['_enabledCommands']['has'](_0x1f47a7))throw new _0x27fd5b('track-changes-enable-command-twice',this,{'commandName':_0x51385});this['_enabledCommands']['add'](_0x1f47a7),_0x259752&&_0x1f47a7['on']('execute',(_0x53fe51,_0x43f977)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x43f977['length']>0x0&&_0x43f977[_0x43f977['length']-0x1]&&_0x43f977[_0x43f977['length']-0x1]['forceDefaultExecution']?_0x43f977['pop']():(_0x53fe51['return']=_0x259752((..._0x147691)=>_0x1f47a7['execute'](..._0x147691,{'forceDefaultExecution':!0x0}),..._0x43f977),_0x53fe51['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5cb3c2){let _0x3ee7eb,_0x5ba44f;const _0x1318b6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3ee7eb=_0x5cb3c2();}catch(_0x500f43){_0x5ba44f=_0x500f43;}return _0x1318b6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5ba44f&&_0x27fd5b['rethrowUnexpectedError'](_0x5ba44f,this),_0x3ee7eb;}['markInsertion'](_0x86aaa4,_0x54edbc=null,_0x9b45c0={}){if(_0x86aaa4['isCollapsed'])return null;const _0x484549=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5ef7cb,meta:_0x2a2269}of this['_findSuggestions'](_0x86aaa4,'insertion'))if(_0x2a2269['isOwn']){if(!_0x2a2269['isNextTo']){if(_0x2a2269['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x5ef7cb,_0x9b45c0))continue;return _0x5ef7cb;}if(Qt(_0x5ef7cb,_0x9b45c0))return _0x5ef7cb;this['_breakSuggestionMarker'](_0x5ef7cb,_0x86aaa4['start'],_0x86aaa4['end']);break;}if(_0x54edbc==_0x5ef7cb['subType']&&Qt(_0x5ef7cb,_0x9b45c0)){const _0x862f25=_0x5ef7cb['getFirstRange']();return _0x862f25['start']['isEqual'](_0x86aaa4['end'])?this['_setSuggestionRange'](_0x5ef7cb,this['_model']['createRange'](_0x86aaa4['start'],_0x862f25['end'])):this['_setSuggestionRange'](_0x5ef7cb,this['_model']['createRange'](_0x862f25['start'],_0x86aaa4['end'])),_0x5ef7cb;}}const _0x2bf45f=_0x13cee6(),_0x206a58=_0x484549['id'],_0x2939ed=_0x54edbc?'insertion:'+_0x54edbc:'insertion',_0x3df48d=this['_setSuggestionData']({'id':_0x2bf45f,'type':_0x2939ed,'createdAt':new Date(),'authorId':_0x206a58,'attributes':_0x9b45c0});return this['_addSuggestionMarker'](_0x2939ed,_0x2bf45f,_0x206a58,_0x86aaa4),_0x3df48d;}['markMultiRangeInsertion'](_0x150acc,_0x1d0830='multi',_0xef2c8d={}){const _0x5df5ca=this['editor']['plugins']['get']('Users')['me'],_0x5c744a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1d0830,'join');for(const _0xbcb8f3 of this['getSuggestions']())if(_0xbcb8f3['author']['id']==_0x5df5ca['id']&&'insertion'==_0xbcb8f3['type']&&_0xbcb8f3['subType']==_0x1d0830&&Qt(_0xbcb8f3,_0xef2c8d)&&(_0x5c744a(_0xbcb8f3['getRanges'](),_0x150acc)||_0x5c744a(_0x150acc,_0xbcb8f3['getRanges']()))){for(const _0x181446 of _0x150acc)_0xbcb8f3['addRange'](_0x181446);return _0xbcb8f3;}for(const {suggestion:_0x30ed24,meta:_0x2da00d}of this['_findSuggestions'](_0x150acc,'insertion')){if(!_0x2da00d['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2da00d['containsRangeInObject'])continue;if(!Qt(_0x30ed24,_0xef2c8d))continue;let _0x36cf2c=!0x0;for(const _0x12620e of _0x30ed24['getRanges']())for(const _0x1319f0 of _0x150acc)if(!_0x12620e['containsRange'](_0x1319f0)){_0x36cf2c=!0x1;break;}if(_0x36cf2c)return _0x30ed24;}const _0x4ec244=_0x13cee6(),_0x55e9b1=_0x5df5ca['id'],_0x58ea38='insertion:'+_0x1d0830,_0x31bf73=this['_setSuggestionData']({'id':_0x4ec244,'type':_0x58ea38,'createdAt':new Date(),'authorId':_0x55e9b1,'attributes':_0xef2c8d});for(const _0x3f894f of _0x150acc)this['_addSuggestionMarker'](_0x58ea38,_0x4ec244,_0x55e9b1,_0x3f894f,u['getMultiRangeId']());return _0x31bf73;}['markInlineFormat'](_0x6136ca,_0x23c2bd,_0x2a6d04=null,_0x567a14={}){if(_0x2a6d04=_0x2a6d04||Jt(_0x23c2bd),_0x6136ca['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x209d97=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a6d04,'accept');return this['forceDefaultExecution'](()=>_0x209d97([_0x6136ca],_0x23c2bd,_0x567a14)),null;}const _0xd9345b=this['editor']['plugins']['get']('Users')['me'],_0x12d2c7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4a24d8,meta:_0x422d16}of this['_findSuggestions'](_0x6136ca,'insertion'))_0x422d16['isOwn']&&!_0x422d16['isInsideObject']&&_0x12d2c7['push'](..._0x4a24d8['getRanges']());}const _0x4be93e=function(_0x53a590,_0x5ab733){const _0x44f646=[];for(const _0x3222ab of _0x5ab733){const _0x30132c=_0x53a590['getIntersection'](_0x3222ab);_0x30132c&&_0x44f646['push'](_0x30132c);}return _0x44f646;}(_0x6136ca,_0x12d2c7),_0x2e08b3=function(_0x7c65dd,_0x4fd4a8){const _0x5b9258=[_0x7c65dd];for(const _0xadcbaa of _0x4fd4a8){let _0x5a0182=0x0;for(;_0x5a0182<_0x5b9258['length'];){const _0x49de1b=_0x5b9258[_0x5a0182]['getDifference'](_0xadcbaa);_0x5b9258['splice'](_0x5a0182,0x1,..._0x49de1b),_0x5a0182+=_0x49de1b['length'];}}return _0x5b9258;}(_0x6136ca,_0x12d2c7);_0x4be93e['length']&&this['_model']['change'](()=>{for(const _0x33d5ee of _0x4be93e){const _0x5a6d4c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2a6d04,'accept');this['forceDefaultExecution'](()=>_0x5a6d4c([_0x33d5ee],_0x23c2bd,_0x567a14));}});for(const _0x4aa466 of _0x2e08b3){let _0x45a1b3=null,_0x5f1e47=_0x4aa466['start'],_0x281f90=_0x4aa466['end'];for(const {suggestion:_0x11f56f,meta:_0x40dfdd}of this['_findSuggestions'](_0x4aa466,'formatInline')){if(!_0x40dfdd['isOwn'])continue;if(_0x11f56f['subType']!=_0x2a6d04)continue;if(!Qt(_0x11f56f,_0x567a14))continue;const _0x17b77c=_0x11f56f['getFirstRange']();if(_0x17b77c['containsRange'](_0x4aa466,!0x0))return null;_0x5f1e47=_0x5f1e47['isBefore'](_0x17b77c['start'])?_0x5f1e47:_0x17b77c['start'],_0x281f90=_0x281f90['isAfter'](_0x17b77c['end'])?_0x281f90:_0x17b77c['end'],_0x45a1b3?_0x17b77c['start']['isBefore'](_0x45a1b3['getFirstRange']()['start'])?(_0x45a1b3['removeMarkers'](),_0x45a1b3=_0x11f56f):_0x11f56f['removeMarkers']():_0x45a1b3=_0x11f56f;}const _0x394a03=this['_model']['createRange'](_0x5f1e47,_0x281f90);if(_0x45a1b3)this['_setSuggestionRange'](_0x45a1b3,_0x394a03);else{const _0x364732=_0x13cee6(),_0x147bda=_0xd9345b['id'];this['_setSuggestionData']({'id':_0x364732,'type':'formatInline:'+_0x2a6d04,'data':_0x23c2bd,'createdAt':new Date(),'authorId':_0x147bda,'attributes':_0x567a14}),this['_addSuggestionMarker']('formatInline:'+_0x2a6d04,_0x364732,_0x147bda,_0x394a03);}}return null;}['markBlockFormat'](_0x5ea3d2,_0x2e5074,_0x3d97ee=[],_0x17a5f7=null,_0x5ba8b5={}){_0x2e5074['formatGroupId']||(_0x2e5074['formatGroupId']=_0x2e5074['commandName']),_0x2e5074['multipleBlocks']=_0x5ea3d2['is']('range'),_0x17a5f7=_0x17a5f7||Jt(_0x2e5074);const _0x697a1b=_0x3d97ee['map'](_0x148fe4=>zt(_0x148fe4,this['_model'])),_0x4af7b5=_0x5ea3d2['is']('range')?_0x5ea3d2:zt(_0x5ea3d2,this['_model']);if('never'===this['_trackFormatChanges']){const _0x151cd2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17a5f7,'accept');return this['forceDefaultExecution'](()=>_0x151cd2([_0x4af7b5],_0x2e5074,_0x5ba8b5)),null;}_0x697a1b['push'](_0x4af7b5);let _0x13ec33=!0x0;for(const _0xcd99b6 of _0x697a1b)if(!this['_rangeIsInLocalUserInsertion'](_0xcd99b6)){_0x13ec33=!0x1;break;}if(_0x13ec33&&'always'!==this['_trackFormatChanges']){const _0x19d394=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x17a5f7,'accept');return this['forceDefaultExecution'](()=>_0x19d394([_0x4af7b5],_0x2e5074,_0x5ba8b5)),null;}let _0x15d287=null,_0x56d4a6=_0x4af7b5['start'],_0x23258b=_0x4af7b5['end'];for(const {suggestion:_0x369076,meta:_0xb90a1c}of this['_findSuggestions'](_0x4af7b5,'formatBlock')){if(!_0xb90a1c['isOwn'])continue;if(_0xb90a1c['isNextTo']||_0xb90a1c['containsRangeInObject']||_0xb90a1c['isInsideObject'])continue;if(_0x369076['data']['formatGroupId']!=_0x2e5074['formatGroupId'])continue;if(!Qt(_0x369076,_0x5ba8b5))continue;const _0x34d3ee=_0x369076['getFirstRange']();if(_0x369076['subType']==_0x17a5f7){if(_0x34d3ee['containsRange'](_0x4af7b5,!0x0))return null;_0x56d4a6=_0x56d4a6['isBefore'](_0x34d3ee['start'])?_0x56d4a6:_0x34d3ee['start'],_0x23258b=_0x23258b['isAfter'](_0x34d3ee['end'])?_0x23258b:_0x34d3ee['end'],_0x15d287?_0x34d3ee['start']['isBefore'](_0x15d287['getFirstRange']()['start'])?(_0x15d287['removeMarkers'](),_0x15d287=_0x369076):_0x369076['removeMarkers']():_0x15d287=_0x369076;}else{const _0x23646c=_0x4af7b5['getIntersection'](_0x34d3ee);this['_cutOutSuggestionMarker'](_0x369076,_0x23646c);}}const _0x1eebd2=this['editor']['plugins']['get']('Users')['me'],_0x506bec=_0x13cee6(),_0x451793=_0x1eebd2['id'];if(_0x15d287)return this['_setSuggestionRange'](_0x15d287,this['_model']['createRange'](_0x56d4a6,_0x23258b)),_0x15d287;{const _0x347f4b=this['_setSuggestionData']({'id':_0x506bec,'type':'formatBlock:'+_0x17a5f7,'data':_0x2e5074,'createdAt':new Date(),'authorId':_0x451793,'attributes':_0x5ba8b5});return this['_addSuggestionMarker']('formatBlock:'+_0x17a5f7,_0x506bec,_0x451793,this['_model']['createRange'](_0x56d4a6,_0x23258b)),_0x347f4b;}}['markMultiRangeBlockFormat'](_0xf8eddd,_0x48023d,_0x165109=[],_0x5c4396=null,_0x4296ba={}){_0x48023d['formatGroupId']||(_0x48023d['formatGroupId']=_0x48023d['commandName']);const _0x4eb37b=_0xf8eddd[0x0];_0x48023d['multipleBlocks']=_0x4eb37b['is']('range'),_0x5c4396=_0x5c4396||Jt(_0x48023d);const _0x57e5da=_0x165109['map'](_0x57217f=>zt(_0x57217f,this['_model'])),_0x1783ec=_0x4eb37b['is']('range')?_0xf8eddd:_0xf8eddd['map'](_0x28e09a=>zt(_0x28e09a,this['_model']));if('never'===this['_trackFormatChanges']){const _0xd2cf54=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c4396,'accept');return this['forceDefaultExecution'](()=>_0xd2cf54(_0x1783ec,_0x48023d,_0x4296ba)),null;}_0x57e5da['push'](..._0x1783ec);let _0x2322cf=!0x0;for(const _0x3f27e9 of _0x57e5da)if(!this['_rangeIsInLocalUserInsertion'](_0x3f27e9)){_0x2322cf=!0x1;break;}if(_0x2322cf&&'always'!==this['_trackFormatChanges']){const _0xbb848=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c4396,'accept');return this['forceDefaultExecution'](()=>_0xbb848(_0x1783ec,_0x48023d,_0x4296ba)),null;}const _0x4a4c7c=this['editor']['plugins']['get']('Users')['me'];for(const _0x1c37ee of this['getSuggestions']()){if(_0x1c37ee['author']['id']!=_0x4a4c7c['id'])continue;if('formatBlock'!=_0x1c37ee['type']||_0x1c37ee['data']['formatGroupId']!=_0x48023d['formatGroupId'])continue;if(!Qt(_0x1c37ee,_0x4296ba))continue;const _0x8ae3d4=_0x1c37ee['subType']==_0x5c4396;for(let _0x3b406a=0x0;_0x3b406a<_0x1783ec['length'];_0x3b406a++){const _0x11955c=_0x1783ec[_0x3b406a];for(const _0x156cef of _0x1c37ee['getMarkers']()){const _0x2d85a4=_0x156cef['getRange']();if(_0x11955c['isEqual'](_0x2d85a4)){_0x8ae3d4?(_0x1783ec['splice'](_0x3b406a,0x1),_0x3b406a--):_0x1c37ee['removeMarker'](_0x156cef['name']);break;}}}}if(0x0==_0x1783ec['length'])return null;const _0x138448=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c4396,'join');for(const _0x31ff3a of this['getSuggestions']())if(_0x31ff3a['author']['id']==_0x4a4c7c['id']&&'formatBlock'==_0x31ff3a['type']&&_0x31ff3a['data']['formatGroupId']==_0x48023d['formatGroupId']&&_0x31ff3a['subType']==_0x5c4396&&Qt(_0x31ff3a,_0x4296ba)&&(_0x138448(_0x31ff3a['getRanges'](),_0x1783ec)||_0x138448(_0x1783ec,_0x31ff3a['getRanges']()))){for(const _0xa2d61d of _0x1783ec)_0x31ff3a['addRange'](_0xa2d61d);return _0x31ff3a;}const _0x3b6b61=_0x13cee6(),_0x1d610a=_0x4a4c7c['id'],_0x46117a='formatBlock:'+_0x5c4396,_0x50f0d3=this['_setSuggestionData']({'id':_0x3b6b61,'type':_0x46117a,'data':_0x48023d,'createdAt':new Date(),'authorId':_0x1d610a,'attributes':_0x4296ba});for(const _0x18eadd of _0x1783ec)this['_addSuggestionMarker'](_0x46117a,_0x3b6b61,_0x1d610a,_0x18eadd,u['getMultiRangeId']());return _0x50f0d3;}['markDeletion'](_0x2df911,_0x22662f=null,_0x191361={}){if(_0x2df911['isCollapsed'])return null;const _0x49f0d8=this['editor']['plugins']['get']('Users')['me'],_0x291e73=new _0x25ad8a(_0x2df911['start'],_0x2df911['end']);for(const {suggestion:_0x1e9bf1,meta:_0x38fb37}of this['_findSuggestions'](_0x291e73,'insertion'))if(_0x38fb37['isOwn']&&!_0x38fb37['isNextTo']){if(_0x1e9bf1['isMultiRange']){const _0x4d615a=_0x1e9bf1['getRanges']()['filter'](_0x54f4b9=>'$graveyard'!=_0x54f4b9['root']['rootName']);_0x4d615a['every'](_0x3ba6a2=>_0x291e73['containsRange'](_0x3ba6a2,!0x0))&&_0x1e9bf1['discard']();if(_0x4d615a['some'](_0x352d72=>_0x352d72['containsRange'](_0x291e73,!0x0))){const _0x4c08eb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22662f,'accept');return this['forceDefaultExecution'](()=>_0x4c08eb([_0x291e73],null,_0x191361)),null;}}else{const _0x250c8f=_0x291e73['getIntersection'](_0x1e9bf1['getFirstRange']());null!==_0x250c8f&&_0x1e9bf1['_onDiscard']([_0x250c8f],null,_0x191361);}}if(_0x291e73['detach'](),_0x291e73['isCollapsed']||'$graveyard'==_0x291e73['root']['rootName'])return null;let _0x367968=null,_0x2c48e6=_0x291e73['start'],_0x3c3f8d=_0x291e73['end'];const _0xc04095=this['_findSuggestions'](_0x291e73,'deletion');for(const {suggestion:_0x3a843c,meta:_0x1e2f1f}of _0xc04095){const _0x18e37c=this['_model']['createRange'](_0x2c48e6,_0x3c3f8d);if(_0x1e2f1f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e2f1f['containsRangeInObject']&&!_0x1e2f1f['isInsideObject'])){if(_0x3a843c['isMultiRange']){if(!Qt(_0x3a843c,_0x191361))continue;let _0x453ffd=!0x0;for(const _0x3bb3a1 of _0x3a843c['getRanges']()){if(_0x3bb3a1['containsRange'](_0x18e37c,!0x0))return _0x3a843c;_0x18e37c['containsRange'](_0x3bb3a1)||(_0x453ffd=!0x1);}_0x453ffd&&_0x3a843c['discard']();}else{const _0x49ebe4=_0x3a843c['getFirstRange']();if(_0x49ebe4['containsRange'](_0x18e37c,!0x0))return _0x3a843c;if(!Qt(_0x3a843c,_0x191361)){_0x18e37c['containsRange'](_0x49ebe4)?_0x3a843c['removeMarkers']():_0x49ebe4['containsPosition'](_0x2c48e6)?_0x2c48e6=_0x49ebe4['end']:_0x49ebe4['containsPosition'](_0x3c3f8d)&&(_0x3c3f8d=_0x49ebe4['start']);continue;}_0x2c48e6=_0x2c48e6['isBefore'](_0x49ebe4['start'])?_0x2c48e6:_0x49ebe4['start'],_0x3c3f8d=_0x3c3f8d['isAfter'](_0x49ebe4['end'])?_0x3c3f8d:_0x49ebe4['end'],_0x191361=Object['assign']({},_0x3a843c['attributes']),_0x367968?_0x49ebe4['start']['isBefore'](_0x367968['getFirstRange']()['start'])?(_0x367968['removeMarkers'](),_0x367968=_0x3a843c):_0x3a843c['removeMarkers']():_0x367968=_0x3a843c;}}}if(_0x367968)return this['_setSuggestionRange'](_0x367968,this['_model']['createRange'](_0x2c48e6,_0x3c3f8d)),_0x367968;{const _0x3797e1=_0x13cee6(),_0x4a47ab=this['_model']['createRange'](_0x2c48e6,_0x3c3f8d),_0x3a7f38=_0x49f0d8['id'],_0xa416e0=_0x22662f?'deletion:'+_0x22662f:'deletion',_0x116468=this['_setSuggestionData']({'id':_0x3797e1,'type':_0xa416e0,'createdAt':new Date(),'authorId':_0x3a7f38,'attributes':_0x191361});return this['_addSuggestionMarker'](_0xa416e0,_0x3797e1,_0x3a7f38,_0x4a47ab),_0x116468;}}['markMultiRangeDeletion'](_0x2325eb,_0x31f716='multi',_0x4cdc0c={}){const _0x1214a2=this['editor']['plugins']['get']('Users')['me'],_0x257c42=_0x2325eb['map'](_0x39eeb6=>new _0x25ad8a(_0x39eeb6['start'],_0x39eeb6['end'])),_0x490d90=new Set();for(const {suggestion:_0x5dd894,meta:_0x44e6df}of this['_findSuggestions'](_0x257c42,'insertion'))_0x44e6df['isOwn']&&!_0x44e6df['isNextTo']&&_0x490d90['add'](_0x5dd894);for(const _0x1be530 of _0x490d90)if(_0x1be530['isMultiRange']){const _0x293d3e=_0x1be530['getRanges']();(!_0x1be530['attributes']||!_0x1be530['attributes']['skipNestingCheck'])&&(_0x293d3e['every'](_0x1b91d8=>_0x257c42['some'](_0x3bbe53=>_0x3bbe53['containsRange'](_0x1b91d8,!0x0)))&&_0x1be530['discard']());if(_0x257c42['every'](_0x1f5cde=>_0x293d3e['some'](_0x6cd0fb=>_0x6cd0fb['containsRange'](_0x1f5cde,!0x0)))){const _0x5109b2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31f716,'accept');return this['forceDefaultExecution'](()=>_0x5109b2(_0x2325eb,null,_0x4cdc0c)),null;}}else{const _0x48de58=_0x1be530['getFirstRange']();_0x257c42['some'](_0x41f355=>_0x41f355['containsRange'](_0x48de58,!0x0))&&_0x1be530['discard']();if(_0x257c42['every'](_0x5e7cbd=>_0x48de58['containsRange'](_0x5e7cbd,!0x0))){const _0x1704ce=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31f716,'accept');return this['forceDefaultExecution'](()=>_0x1704ce(_0x257c42,null,_0x4cdc0c)),null;}}const _0xbf66eb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31f716,'join');let _0x25888d=null;for(const _0x42d864 of this['getSuggestions']())if(_0x42d864['author']['id']==_0x1214a2['id']&&_0x42d864['isInContent']&&'deletion'==_0x42d864['type']&&_0x42d864['subType']==_0x31f716&&Qt(_0x42d864,_0x4cdc0c)&&(_0xbf66eb(_0x42d864['getRanges'](),_0x257c42)||_0xbf66eb(_0x257c42,_0x42d864['getRanges']()))){if(_0x25888d){if(_0x42d864['commentThread']&&_0x42d864['commentThread']['length'])continue;for(const _0x1620f4 of _0x42d864['getRanges']())_0x25888d['isIntersectingWithRange'](_0x1620f4)||_0x25888d['addRange'](_0x1620f4);_0x42d864['removeMarkers']();}else{_0x25888d=_0x42d864;for(const _0x2169af of _0x257c42)_0x42d864['isIntersectingWithRange'](_0x2169af)||_0x42d864['addRange'](_0x2169af);}}if(_0x25888d)return _0x25888d;_0x490d90['clear']();for(const {suggestion:_0x202967,meta:_0x19f18b}of this['_findSuggestions'](_0x257c42,'deletion'))_0x19f18b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x19f18b['containsRangeInObject']&&!_0x19f18b['isInsideObject'])&&Qt(_0x202967,_0x4cdc0c)&&_0x490d90['add'](_0x202967);for(const _0xcf9ea8 of _0x490d90){const _0x22da59=_0xcf9ea8['getRanges']();if(!_0x4cdc0c||!_0x4cdc0c['skipNestingCheck']){if(_0x257c42['every'](_0x118050=>_0x22da59['some'](_0x24864b=>_0x24864b['containsRange'](_0x118050,!0x0))))return _0xcf9ea8;}(!_0xcf9ea8['attributes']||!_0xcf9ea8['attributes']['skipNestingCheck'])&&(_0x22da59['every'](_0x39fabd=>_0x257c42['some'](_0x1efcdf=>_0x1efcdf['containsRange'](_0x39fabd,!0x0)))&&_0xcf9ea8['discard']());}const _0x2dadca=_0x13cee6(),_0x2b52c0=_0x1214a2['id'],_0x52f93e='deletion:'+_0x31f716,_0x1c7250=this['_setSuggestionData']({'id':_0x2dadca,'type':_0x52f93e,'createdAt':new Date(),'authorId':_0x2b52c0,'attributes':_0x4cdc0c});for(const _0x2879e0 of _0x257c42)_0x2879e0['detach'](),_0x2879e0['isCollapsed']||'$graveyard'==_0x2879e0['root']['rootName']||this['_addSuggestionMarker'](_0x52f93e,_0x2dadca,_0x2b52c0,_0x2879e0,u['getMultiRangeId']());return _0x1c7250;}['markAttributeChange'](_0x665c2b,_0x83df1f,_0x141ef0,_0x3e42ca,_0x3d6dd2){if(_0x665c2b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x44dafb=this['editor']['plugins']['get']('Users')['me']['id'],_0x366403=Array['from'](this['_suggestions']['values']())['filter'](_0x6713f9=>'attribute'==_0x6713f9['type']&&_0x6713f9['data']['key']==_0x83df1f&&_0x6713f9['isIntersectingWithRange'](_0x665c2b));if('default'===this['_trackFormatChanges']){const _0x5e19f1=this['_findSuggestions'](_0x665c2b,'insertion')['filter'](({meta:_0x59afb0})=>_0x59afb0['isOwn']&&!_0x59afb0['isInsideObject']&&!_0x59afb0['isNextTo'])['map'](({suggestion:_0x39d94})=>_0x39d94);_0x366403['unshift'](..._0x5e19f1);}const _0x2d09be=new Map([[_0x665c2b,_0x141ef0]]);for(const _0x467b95 of _0x366403){const _0x44e569='attribute'==_0x467b95['type']?_0x467b95['data']['oldValue']:void 0x0,_0x973b3b=_0x467b95['getFirstRange'](),_0x1f97d8=Array['from'](_0x2d09be['keys']())['find'](_0x56978d=>_0x56978d['isIntersecting'](_0x973b3b));if(!_0x1f97d8)continue;const _0x95c9de=_0x1f97d8['getDifference'](_0x973b3b);this['_isBlockAttribute'](_0x83df1f)&&'insertion'==_0x467b95['type']&&0x0!=_0x95c9de['length']||(_0x2d09be['delete'](_0x1f97d8),_0x95c9de['forEach'](_0x912e1e=>{_0x2d09be['set'](_0x912e1e,_0x141ef0);}),'insertion'!=_0x467b95['type']&&_0x44e569!=_0x3e42ca&&_0x2d09be['set'](_0x1f97d8['getIntersection'](_0x973b3b),_0x44e569));}const _0x1c80a3=[];for(const [_0x394881,_0x3982c9]of _0x2d09be){const _0x2b4bcf=_0x13cee6(),_0x1bf273={'key':_0x83df1f,'oldValue':_0x3982c9,'newValue':_0x3e42ca};_0x83df1f['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':_0x83df1f});const _0x1c8dfb=('attribute:'+(_0x83df1f+'|'+Jt({'newValue':_0x3e42ca})))['substring'](0x0,0x3c),_0x28329a=this['_setSuggestionData']({'id':_0x2b4bcf,'type':_0x1c8dfb,'data':_0x1bf273,'createdAt':new Date(),'authorId':_0x44dafb,'attributes':_0x3d6dd2});_0x1c80a3['push'](_0x28329a),this['_addSuggestionMarker'](_0x1c8dfb,_0x2b4bcf,_0x44dafb,_0x394881);}return _0x1c80a3;}['enableDefaultAttributesIntegration'](_0x5529e0){this['enableCommand'](_0x5529e0,(_0x57dec1,..._0x21118f)=>{this['_recordAttributeChanges'](()=>{_0x57dec1(..._0x21118f);});});}['registerBlockAttribute'](_0x444ca1){this['_blockAttributeKeys']['add'](_0x444ca1);}['registerInlineAttribute'](_0x4744a1){this['_inlineAttributeKeys']['add'](_0x4744a1);}['_getAttributeKey'](_0x26e034){return'attribute'==_0x26e034['type']?_0x26e034['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xddaecc,_0x359f77){const _0x26bfba=_0xddaecc['getFirstMarker']();this['_model']['change'](_0x7b6a4b=>{_0x7b6a4b['updateMarker'](_0x26bfba,{'range':_0x359f77});});}['_addThreadToSuggestion'](_0x133c60){const _0x1b0d17=_0x133c60['id'],_0x54eef9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1b0d17)||this['_commentsRepository']['addCommentThread']({'channelId':_0x54eef9,'threadId':_0x1b0d17,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4496e8=this['_commentsRepository']['getCommentThread'](_0x1b0d17);_0x4496e8['unbind']('isRemovable'),_0x4496e8['isRemovable']=!0x1,_0x133c60['commentThread']=_0x4496e8;}['_checkSuggestionCorrectness'](_0x101c18,_0x13c2a4,_0x3c16d2,_0x5292bb){if(_0x101c18['type']!=_0x13c2a4||_0x101c18['subType']!=_0x3c16d2||_0x101c18['creator']['id']!=_0x5292bb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x27fd5b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4e8fef,_0x9203e1){const _0x48c330=_0x4e8fef['getFirstRange']();if(_0x9203e1['isEqual'](_0x48c330))_0x4e8fef['removeMarkers']();else{if(_0x48c330['containsRange'](_0x9203e1)){const _0x133724=this['_model']['createPositionAt'](_0x9203e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e8fef,this['_model']['createRange'](_0x48c330['start'],_0x133724));const _0x4a355b=_0x13cee6(),_0x4e2311=_0x4e8fef['creator']['id'],_0x1b9bc5=_0x4e8fef['type']+':'+_0x4e8fef['subType'];this['_setSuggestionData']({'id':_0x4a355b,'type':_0x1b9bc5,'createdAt':new Date(),'authorId':_0x4e2311,'data':_0x4e8fef['data'],'attributes':_0x4e8fef['attributes']});const _0x1be034=this['_model']['createPositionAt'](_0x9203e1['end']['parent'],'after'),_0x6a2c2a=this['_model']['createRange'](_0x1be034,_0x48c330['end']);this['_addSuggestionMarker'](_0x1b9bc5,_0x4a355b,_0x4e2311,_0x6a2c2a);}else{if(_0x48c330['containsPosition'](_0x9203e1['start'])){const _0x42dae6=this['_model']['createPositionAt'](_0x9203e1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4e8fef,this['_model']['createRange'](_0x48c330['start'],_0x42dae6));}else{const _0x28f93f=this['_model']['createPositionAt'](_0x9203e1['end']['parent'],'after');this['_setSuggestionRange'](_0x4e8fef,this['_model']['createRange'](_0x28f93f,_0x48c330['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x501598){for(const {suggestion:_0x50bcde,meta:_0x41e5a0}of this['_findSuggestions'](_0x501598,'insertion')){if(!_0x41e5a0['isOwn'])continue;const _0x488964=_0x50bcde['getRanges']();for(const _0x5b41d6 of _0x488964)if(!_0x501598['getDifference'](_0x5b41d6)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1dc469){const _0x3b612e=this['editor']['plugins']['get']('Users')['getUser'](_0x1dc469);if(!_0x3b612e)throw new _0x27fd5b('track-changes-user-not-found',this);return _0x3b612e;}['_getExternalAuthor'](_0x5149d2){const _0x2ca8ea=this['editor']['plugins']['get']('Users'),_0x513e42=_0x400a99('external:'+_0x5149d2),_0x40bd31=_0x2ca8ea['getUser'](_0x513e42);return _0x40bd31||_0x2ca8ea['addUser']({'id':_0x513e42,'name':_0x5149d2});}['_createSuggestion'](_0x18f8c5,_0x112adb,_0x3add44,_0x4d6d60,_0x9f3d69){const _0x5b40d7=this['_getAuthorFromId'](_0x4d6d60),_0x3a19f4=this['_suggestionFactory']['buildSuggestion'](_0x18f8c5,_0x112adb,_0x3add44,_0x5b40d7,_0x9f3d69,_0x45a58a=>{this['_updateSuggestionData'](_0x3add44,{'attributes':_0x45a58a});const _0x5964ed=this['getSuggestion'](_0x3add44);this['_joinWithAdjacentSuggestions'](new Set([_0x5964ed])),this['_refreshSuggestionsChain'](new Set([_0x5964ed]));});return this['listenTo'](_0x3a19f4,'accept',()=>{this['_updateSuggestionData'](_0x3add44,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3a19f4,'discard',()=>{this['_updateSuggestionData'](_0x3add44,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3add44,_0x3a19f4),this['_suggestionState']['set'](_0x3a19f4,'notReady'),_0x3a19f4;}['_splitMarkerName'](_0x4c3ed5){const _0x4ea889=_0x4c3ed5['split'](':');return{'group':_0x4ea889[0x0],'type':_0x4ea889[0x1],'subType':_0x4ea889['length']>=0x5?_0x4ea889[0x2]:null,'id':_0x4ea889['length']<0x5?_0x4ea889[0x2]:_0x4ea889[0x3],'authorId':_0x4ea889['length']<0x5?_0x4ea889[0x3]:_0x4ea889[0x4],'markerCount':0x6==_0x4ea889['length']?_0x4ea889[0x5]:null};}['_breakSuggestionMarker'](_0x2dce72,_0x724bf8,_0xf04311){const _0x968ecd=_0x2dce72['getFirstRange'](),_0x22d8f2=_0x968ecd['start'],_0x4d2ffc=_0x968ecd['end'];this['_setSuggestionRange'](_0x2dce72,this['_model']['createRange'](_0x22d8f2,_0x724bf8));const _0x4f7fe6=_0x13cee6(),_0x159b71=_0x2dce72['creator']['id'],_0x480098=_0x2dce72['type']+(_0x2dce72['subType']?':'+_0x2dce72['subType']:'');this['_setSuggestionData']({'id':_0x4f7fe6,'type':_0x480098,'createdAt':new Date(),'authorId':_0x159b71,'originalSuggestionId':_0x2dce72['id'],'attributes':_0x2dce72['attributes'],'data':_0x2dce72['data']});const _0x431b0e=this['_getAttributeKey'](_0x2dce72);('formatBlock'==_0x2dce72['type']||_0x431b0e&&this['_isBlockAttribute'](_0x431b0e))&&(_0xf04311=this['_model']['createPositionBefore'](_0xf04311['parent'])),this['_addSuggestionMarker'](_0x480098,_0x4f7fe6,_0x159b71,this['_model']['createRange'](_0xf04311,_0x4d2ffc));}['_findSuggestions'](_0x11afa5,_0x4cfcd7=null){const _0x6cd53a=[],_0x229af9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x11afa5)||(_0x11afa5=[_0x11afa5]);for(const _0x5518ce of this['getSuggestions']()){if(!_0x5518ce['isInContent'])continue;if(_0x4cfcd7&&_0x5518ce['type']!=_0x4cfcd7)continue;let _0x100df0=!0x1;for(const _0x2fbca1 of _0x5518ce['getRanges']()){for(const _0x20b39e of _0x11afa5){const _0x227ba7=_0x20b39e['start']['isEqual'](_0x2fbca1['end'])||_0x20b39e['end']['isEqual'](_0x2fbca1['start']);if(_0x227ba7||_0x20b39e['getIntersection'](_0x2fbca1)){const _0x537832=_0x20b39e['containsRange'](_0x2fbca1)&&Gt(this['_model']['schema'],_0x2fbca1['start'],_0x20b39e),_0x2140cb=_0x2fbca1['containsRange'](_0x20b39e)&&Gt(this['_model']['schema'],_0x20b39e['start'],_0x2fbca1);_0x6cd53a['push']({'suggestion':_0x5518ce,'meta':{'isOwn':_0x229af9==_0x5518ce['author'],'isNextTo':_0x227ba7,'isInsideObject':_0x537832,'containsRangeInObject':_0x2140cb}}),_0x100df0=!0x0;break;}}if(_0x100df0)break;}}return _0x6cd53a;}['_addSuggestionMarker'](_0x50e08f,_0x4b9f31,_0x5c0250,_0x420bde,_0xbda502){this['_model']['change'](_0x5c6d69=>{let _0x1b50d9='suggestion:'+_0x50e08f+':'+_0x4b9f31+':'+_0x5c0250;_0xbda502&&(_0x1b50d9=_0x1b50d9+':'+_0xbda502),_0x5c6d69['addMarker'](_0x1b50d9,{'range':_0x420bde,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x418141){const _0x449c96=_0x418141['previous'],_0x1b0459=_0x418141['next'];_0x418141['previous']=null,_0x418141['next']=null,null!=_0x449c96&&_0x449c96['next']==_0x418141&&(_0x449c96['next']=_0x1b0459),null!=_0x1b0459&&_0x1b0459['previous']==_0x418141&&(_0x1b0459['previous']=_0x449c96),'ready'==this['_suggestionState']['get'](_0x418141)&&(this['_suggestionState']['set'](_0x418141,'removed'),this['fire']('suggestionUnloaded',_0x418141,_0x449c96,_0x1b0459));}['_setSuggestionData'](_0x1744da){const _0xdaa691=_0x1744da['id'],_0x3fcadf=this['addSuggestionData'](_0x1744da);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x406ca8=this['editor']['plugins']['get']('PendingActions'),_0x51526c=_0x3fcadf['hasComments'],_0x3dcb5a=_0x3fcadf['subType']?_0x3fcadf['type']+':'+_0x3fcadf['subType']:_0x3fcadf['type'],_0x3569b1=this['editor']['locale'],_0x831007=_0x406ca8['add'](o(_0x3569b1,'PENDING_ACTION_SUGGESTION')),_0x9759d7={'id':_0xdaa691,'type':_0x3dcb5a,'hasComments':_0x51526c,'data':_0x1744da['data']||null,'originalSuggestionId':_0x1744da['originalSuggestionId']||null,'attributes':_0x3fcadf['attributes']};this['_adapter']['addSuggestion'](_0x9759d7)['then'](_0x14fc98=>{_0x3fcadf['_saved']=!0x0,_0x406ca8['remove'](_0x831007),_0x14fc98&&_0x14fc98['createdAt']&&(this['_suggestions']['get'](_0xdaa691)['createdAt']=_0x14fc98['createdAt']);})['catch'](_0x4ee18f=>{throw _0xa30105('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3fcadf['discard']();}),_0x3fcadf['stopListening'](),this['_suggestions']['delete'](_0x3fcadf['id']),this['_suggestionState']['delete'](_0x3fcadf),_0x4ee18f;});}return _0x3fcadf;}['_isBlockAttribute'](_0x54f1d3){return this['_blockAttributeKeys']['has'](_0x54f1d3);}['_updateSuggestionData'](_0x3be3d2,_0x5666c2){const _0x33a06a=this['editor']['plugins']['get']('PendingActions'),_0xb824f1=this['getSuggestion'](_0x3be3d2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xb824f1['_saved']){const _0x23d297=_0x33a06a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3be3d2,_0x5666c2)['then'](()=>{_0x33a06a['remove'](_0x23d297);});}else _0xb824f1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3be3d2,_0x5666c2);});}}['_getSuggestionData'](_0x2d3bea){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x27fd5b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d3bea);}['_handleNewSuggestionMarker'](_0x58e95d){const {id:_0x5d2812,type:_0x34fc97,subType:_0x397948,authorId:_0x4183ec}=this['_splitMarkerName'](_0x58e95d),_0x1d8e0d=this['_suggestions']['get'](_0x5d2812)||this['_createSuggestion'](_0x34fc97,_0x397948,_0x5d2812,_0x4183ec,{});switch(this['_checkSuggestionCorrectness'](_0x1d8e0d,_0x34fc97,_0x397948,_0x4183ec),this['_suggestionState']['get'](_0x1d8e0d)){case'notReady':this['_getSuggestionData'](_0x5d2812)['then'](_0x584d00=>{let _0x1d748c=Promise['resolve']();_0x584d00['hasComments']&&(_0x1d748c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5d2812})),_0x1d748c['then'](()=>{this['addSuggestionData'](_0x584d00)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1d8e0d,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5d2812,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1d8e0d,'ready'),this['fire']('suggestionLoaded',_0x1d8e0d);break;case'ready':this['fire']('suggestionChanged',_0x1d8e0d);}return _0x1d8e0d['addMarkerName'](_0x58e95d),_0x1d8e0d;}['_refreshSuggestionsChain'](_0x1fc101){const _0x16acb9=Array['from'](_0x1fc101),_0x95c3ca=_0x16acb9['filter'](_0x48cdc8=>'attribute'==_0x48cdc8['type']);this['_refreshAttributeSuggestionsChain'](_0x95c3ca);const _0x551b61=_0x16acb9['filter'](_0x1dea71=>!_0x1dea71['isMultiRange']&&'attribute'!=_0x1dea71['type']),_0x4bf5d5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d5020=>!_0x4d5020['isMultiRange']&&'attribute'!=_0x4d5020['type']),_0x2fe835=_0x4bf5d5['filter'](_0x22434b=>!_0x1fc101['has'](_0x22434b)),_0x221bef=new Map(_0x4bf5d5['map'](_0x4cc8ce=>[_0x4cc8ce,this['_suggestionFactory']['getSuggestionCallback'](_0x4cc8ce['type'],_0x4cc8ce['subType'],'chain')])),_0x16e7b0=new Map(_0x4bf5d5['map'](_0x4b9b29=>[_0x4b9b29,_0x4b9b29['getFirstRange']()])),_0x3a803c=new Set(),_0x278ec2=new Set();for(let _0x598190=0x0;_0x598190<_0x551b61['length'];_0x598190++)_0x2012e2(_0x551b61[_0x598190],_0x551b61,_0x598190+0x1);for(let _0x48dde5=0x0;_0x48dde5<_0x551b61['length'];_0x48dde5++)_0x2012e2(_0x551b61[_0x48dde5],_0x2fe835,0x0);const _0xa3071b=new Set();for(let _0x31b073=0x0;_0x31b073<_0x551b61['length'];_0x31b073++){const _0x3d2d51=_0x551b61[_0x31b073];!_0x278ec2['has'](_0x3d2d51)&&_0x3d2d51['previous']&&(_0xa3071b['add'](_0x3d2d51['previous']),_0x3d2d51['previous']['next']===_0x3d2d51&&(_0x3d2d51['previous']['next']=null),_0x3d2d51['previous']=null),!_0x3a803c['has'](_0x3d2d51)&&_0x3d2d51['next']&&(_0xa3071b['add'](_0x3d2d51['next']),_0x3d2d51['next']['previous']===_0x3d2d51&&(_0x3d2d51['next']['previous']=null),_0x3d2d51['next']=null);}function _0x2012e2(_0x268619,_0x9804d9,_0x461488){for(let _0x27fe40=_0x461488;_0x27fe40<_0x9804d9['length'];_0x27fe40++){const _0x28e4db=_0x132aea(_0x268619,_0x9804d9[_0x27fe40]);_0x28e4db&&(_0x28e4db[0x0]['next']=_0x28e4db[0x1],_0x28e4db[0x1]['previous']=_0x28e4db[0x0],_0x3a803c['add'](_0x28e4db[0x0]),_0x278ec2['add'](_0x28e4db[0x1]));}}function _0x132aea(_0x11023c,_0x422004){if(_0x11023c['author']['id']!==_0x422004['author']['id'])return null;const _0x4d92f3=_0x221bef['get'](_0x11023c)(_0x11023c,_0x422004,_0x16e7b0['get'](_0x11023c),_0x16e7b0['get'](_0x422004));if(!_0x4d92f3)return null;return _0x221bef['get'](_0x422004)(_0x11023c,_0x422004,_0x16e7b0['get'](_0x11023c),_0x16e7b0['get'](_0x422004))?_0x4d92f3[0x1]['commentThread']&&_0x4d92f3[0x1]['commentThread']['length']?null:_0x4d92f3:null;}_0xa3071b['size']&&this['_refreshSuggestionsChain'](_0xa3071b);}['_refreshAttributeSuggestionsChain'](_0x3bd360){if(0x0==_0x3bd360['length'])return;const _0x8e8cc1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9fb78c=>'attribute'==_0x9fb78c['type']&&_0x9fb78c['_isDataLoaded']),_0x14f1c6=[],_0x303cdb=new Map();for(const _0x20bb9a of _0x8e8cc1){const _0x3fc04c=_0x400a99(_0x20bb9a['attributes']);_0x303cdb['has'](_0x3fc04c)||(_0x303cdb['set'](_0x3fc04c,_0x14f1c6['length']),_0x14f1c6['push']([]));const _0x595a5b=_0x303cdb['get'](_0x3fc04c);_0x14f1c6[_0x595a5b]['push'](_0x20bb9a);}!(function(){_0x14f1c6['sort']((_0x207bac,_0x57e6e7)=>{const _0x26f9de=_0x207bac[0x0]['createdAt'],_0x236631=_0x57e6e7[0x0]['createdAt'];return _0x26f9de==_0x236631?_0x207bac[0x0]['attributes']['groupId']<_0x57e6e7[0x0]['attributes']['groupId']?-0x1:0x1:_0x26f9de<_0x236631?-0x1:0x1;});for(const _0x4a3343 of _0x14f1c6)_0x4a3343['sort']((_0x784a00,_0xc0c621)=>_0x784a00['id']<_0xc0c621['id']?-0x1:0x1);}());for(let _0x3c00a8=0x0;_0x3c00a8<_0x14f1c6['length'];_0x3c00a8++){if(0x0==_0x14f1c6[_0x3c00a8]['length'])continue;const _0x329ce8=[];for(let _0x3a88dd=_0x3c00a8+0x1;_0x3a88dd<_0x14f1c6['length'];_0x3a88dd++)0x0!=_0x14f1c6[_0x3a88dd]['length']&&_0x42de4c(_0x14f1c6[_0x3c00a8],_0x14f1c6[_0x3a88dd])&&_0x329ce8['push'](_0x3a88dd);for(const _0x566f60 of _0x329ce8)_0x14f1c6[_0x3c00a8]=_0x14f1c6[_0x3c00a8]['concat'](_0x14f1c6[_0x566f60]),_0x14f1c6[_0x566f60]=[];}for(const _0x2be9e5 of _0x14f1c6)for(let _0x4afe57=0x0;_0x4afe57<_0x2be9e5['length'];_0x4afe57++){const _0x23a8b9=_0x2be9e5[_0x4afe57+0x1]||null;_0x2be9e5[_0x4afe57]['next']!==_0x23a8b9&&(_0x2be9e5[_0x4afe57]['next']=_0x23a8b9);}for(const _0x55cce3 of _0x14f1c6)for(let _0x171efa=0x0;_0x171efa<_0x55cce3['length'];_0x171efa++){const _0x4f0883=_0x55cce3[_0x171efa-0x1]||null;_0x55cce3[_0x171efa]['previous']!==_0x4f0883&&(_0x55cce3[_0x171efa]['previous']=_0x4f0883);}function _0x42de4c(_0x70af22,_0x19ecdd){if(_0x70af22[0x0]['attributes']['groupId']!==_0x19ecdd[0x0]['attributes']['groupId']&&_0x70af22[0x0]['author']!==_0x19ecdd[0x0]['author'])return!0x1;if(!function(_0x2ee496,_0x48a368){if(!_0x2ee496['hasComments']&&!_0x48a368['hasComments'])return!0x0;if(_0x2ee496['hasComments']&&_0x48a368['hasComments'])return!0x1;if(_0x2ee496['hasComments']&&_0x48a368['createdAt']<_0x2ee496['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x48a368['hasComments']&&_0x2ee496['createdAt']<_0x48a368['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x70af22[0x0],_0x19ecdd[0x0]))return!0x1;const _0x38e905=Vt(_0x70af22[0x0]['attributes'],'groupId'),_0x3542d7=Vt(_0x19ecdd[0x0]['attributes'],'groupId');if(!_0x198cb8(_0x38e905,_0x3542d7))return!0x1;return!!_0x70af22['every'](_0x3c68ba=>_0x19ecdd['some'](_0x5b5b20=>_0x3c68ba['getFirstRange']()['isEqual'](_0x5b5b20['getFirstRange']())))&&_0x19ecdd['every'](_0x5d69d9=>_0x70af22['some'](_0x6ecd6c=>_0x5d69d9['getFirstRange']()['isEqual'](_0x6ecd6c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x8c7f77){const _0x15f080=Array['from'](_0x8c7f77),_0x147bf6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x451a54=_0x147bf6['filter'](_0x49b44d=>!_0x8c7f77['has'](_0x49b44d)),_0x5f0c7e=new Map(_0x15f080['map'](_0x3dddcd=>[_0x3dddcd,this['_suggestionFactory']['getSuggestionCallback'](_0x3dddcd['type'],_0x3dddcd['subType'],'join')])),_0x510768=new Map(_0x147bf6['map'](_0x222022=>[_0x222022,_0x222022['getRanges']()]));for(let _0x180225=0x0;_0x180225<_0x15f080['length'];_0x180225++){if(_0x2ad7a1(this,_0x15f080[_0x180225],_0x15f080,_0x180225+0x1))return!0x0;}for(let _0x392237=0x0;_0x392237<_0x15f080['length'];_0x392237++){if(_0x2ad7a1(this,_0x15f080[_0x392237],_0x451a54,0x0))return!0x0;}return!0x1;function _0x2ad7a1(_0x22b091,_0x2d0f5f,_0x11faff,_0x50d51b){for(let _0x564e37=_0x50d51b;_0x564e37<_0x11faff['length'];_0x564e37++){const _0x58f8b5=_0x11faff[_0x564e37];if(_0x58f8b5['type']!==_0x2d0f5f['type']||_0x58f8b5['author']['id']!==_0x2d0f5f['author']['id']||_0x58f8b5['subType']!==_0x2d0f5f['subType'])continue;if(!Wt(_0x2d0f5f,_0x58f8b5))continue;if('attribute'==_0x2d0f5f['type']&&_0x2d0f5f['data']['oldValue']!=_0x58f8b5['data']['oldValue'])continue;if('attribute'==_0x2d0f5f['type']&&_0x22b091['_isBlockAttribute'](_0x2d0f5f['data']['key']))continue;if('formatBlock'==_0x2d0f5f['type']){const _0x368170=_0x22b091['editor']['model'],_0x5df3ae=_0x2d0f5f['getContainedElement']();if(_0x5df3ae&&(_0x368170['schema']['isObject'](_0x5df3ae)||_0x368170['schema']['isLimit'](_0x5df3ae)))continue;}const _0x210f64=_0x5f0c7e['get'](_0x2d0f5f),_0x23df40=_0x510768['get'](_0x2d0f5f),_0x2a929d=_0x510768['get'](_0x58f8b5),_0x104146=_0x2d0f5f['commentThread']&&_0x2d0f5f['commentThread']['length'],_0x26bb0a=_0x58f8b5['commentThread']&&_0x58f8b5['commentThread']['length'];if(!_0x104146&&_0x210f64(_0x2a929d,_0x23df40))return _0x22b091['_joinSuggestions'](_0x58f8b5,_0x2d0f5f),_0x510768['delete'](_0x2d0f5f),!0x0;if(!_0x26bb0a&&_0x210f64(_0x23df40,_0x2a929d))return _0x22b091['_joinSuggestions'](_0x2d0f5f,_0x58f8b5),_0x510768['delete'](_0x58f8b5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x9477a7,_0x49ec25){if(_0x9477a7['isMultiRange']){for(const _0x22b414 of _0x49ec25['getRanges']())_0x9477a7['addRange'](_0x22b414);}else{const _0x5ac183=_0x49ec25['getFirstRange']()['end'];this['_setSuggestionRange'](_0x9477a7,this['_model']['createRange'](_0x9477a7['getFirstRange']()['start'],_0x5ac183));}_0x49ec25['removeMarkers']();}['_getMarkerAnnouncementText'](_0x180d50,_0x319e69,_0x38ae77){const _0x57145a=_0x180d50['startsWith']('format')||_0x180d50['startsWith']('attribute')?'FORMATTING':_0x180d50['toUpperCase']();return o(this['editor']['locale'],_0x319e69+'_'+_0x57145a+'_SUGGESTION_ANNOUNCEMENT',_0x38ae77);}['_initAriaMarkerChangeAnnouncements'](){const _0x45ea30=this['editor'];if(!_0x45ea30['ui'])return;const {ariaLiveAnnouncer:_0x8bee75}=_0x45ea30['ui'];_0x4dabea(this['_model'],({left:_0x5928a7,entered:_0x393861})=>{for(const _0x161a70 of _0x5928a7){const {group:_0x330552,type:_0x415c86}=this['_splitMarkerName'](_0x161a70['name']);if('suggestion'===_0x330552){_0x8bee75['announce'](this['_getMarkerAnnouncementText'](_0x415c86,'LEAVE'));break;}}for(const _0x40b2d9 of _0x393861){const {group:_0x319d2f,type:_0x45cf85}=this['_splitMarkerName'](_0x40b2d9['name']);if('suggestion'===_0x319d2f){_0x8bee75['announce'](this['_getMarkerAnnouncementText'](_0x45cf85,'ENTER',_0x23b83b(_0x5a4454)));break;}}});}['_processAttributeChanges'](_0x4c91ec){if(this['_recordAttributeSuggestions'])return!0x1;const _0x179ae3=this['editor'],_0x563871=_0x179ae3['model']['document']['differ']['getChanges']();if(0x0==_0x563871['length'])return!0x1;const _0x29d846=[],_0x3304d1=_0x563871['filter'](_0x14e110=>'attribute'==_0x14e110['type']),_0x2b3811=_0x563871['filter'](_0xd3d4d1=>'insert'==_0xd3d4d1['type']&&'$text'!=_0xd3d4d1['name']),_0x333755=_0x563871['filter'](_0x9cb27a=>'remove'==_0x9cb27a['type']&&'$text'!=_0x9cb27a['name']);for(const _0x98dc7b of _0x3304d1)_0x29d846['push']({'key':_0x98dc7b['attributeKey'],'newValue':_0x98dc7b['attributeNewValue'],'oldValue':_0x98dc7b['attributeOldValue'],'range':qt(_0x98dc7b['range'],_0x179ae3['model'])});for(const _0x544744 of _0x2b3811){const _0x59546a=_0x333755['find'](_0x49c92d=>_0x49c92d['position']['isEqual'](_0x544744['position']));_0x59546a&&_0x29d846['push']({'key':m,'newValue':_0x544744['name'],'oldValue':_0x59546a['name'],'range':_0x179ae3['model']['createRangeOn'](_0x544744['position']['nodeAfter'])});}return 0x0!=_0x29d846['length']&&this['_reduceExistingSuggestions'](_0x4c91ec,_0x29d846);}['_processAttributeSuggestions'](_0x399ff7){let _0x59588d=!0x1;const _0x2a1947=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x314b5f=>_0x314b5f['data']['newRange']&&_0x314b5f['name']['startsWith']('suggestion:attribute:'));for(const _0x2e0cce of _0x2a1947){const {subType:_0x52f177,id:_0x5dcf89}=this['_splitMarkerName'](_0x2e0cce['name']),_0x7092d2=_0x52f177['split']('|')[0x0];for(const _0x1d01cb of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1d01cb['id']!=_0x5dcf89&&'attribute'==_0x1d01cb['type']&&_0x1d01cb['data']&&_0x1d01cb['data']['key']==_0x7092d2&&_0x1d01cb['getFirstRange']()['isIntersecting'](_0x2e0cce['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1d01cb,_0x2e0cce['data']['newRange'],_0x399ff7),_0x59588d=!0x0);}return _0x59588d;}['_recordAttributeChanges'](_0x517910){this['_recordAttributeSuggestions']=!0x0,_0x517910();}['_isRegisteredAttribute'](_0x9f7c44){const _0x166e95=this['_isBlockAttribute'](_0x9f7c44),_0x528ea9=this['_inlineAttributeKeys']['has'](_0x9f7c44);return _0x166e95||_0x528ea9;}['_reduceExistingSuggestions'](_0x4004c3,_0x1c9463){if(0x0==_0x1c9463['length'])return!0x1;let _0x525f03=!0x1;for(const _0x40b1dc of _0x1c9463){const _0x15e5a1=this['_findSuggestions'](_0x40b1dc['range'],'attribute')['filter'](_0x274c2b=>!_0x274c2b['meta']['isNextTo'])['map'](_0x5a869c=>_0x5a869c['suggestion']),_0x4b8b9d=_0x400a99({'newValue':_0x40b1dc['newValue']});_0x15e5a1['filter'](_0x542ff9=>{const [_0x208089,_0x368f73]=_0x542ff9['subType']['split']('|');return _0x208089==_0x40b1dc['key']&&_0x368f73!=_0x4b8b9d;})['forEach'](_0x149173=>{this['_reduceSuggestionAttributeRange'](_0x149173,_0x40b1dc['range'],_0x4004c3),_0x525f03=!0x0;});}return _0x525f03;}['_reduceSuggestionAttributeRange'](_0xa55ec,_0x44fbe9,_0x5b2246){const _0x457414=_0xa55ec['getFirstRange']()['getDifference'](_0x44fbe9);0x0!==_0x457414['length']?0x1!==_0x457414['length']?this['_breakSuggestionMarker'](_0xa55ec,_0x44fbe9['start'],_0x44fbe9['end']):this['_setSuggestionRange'](_0xa55ec,_0x457414[0x0]):_0x5b2246['removeMarker'](_0xa55ec['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2e8496){this['_editor']=_0x2e8496,this['_model']=_0x2e8496['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x6b7307,_0x4f8085,_0x273321,_0x5941ac,_0x165d8f,_0x11d733){return new u(this['_model'],{'type':_0x6b7307,'subType':_0x4f8085,'id':_0x273321,'author':_0x5941ac,'creator':_0x5941ac,'attributes':_0x165d8f,'onAttributesChange':_0x11d733,'onAccept':(..._0x52182a)=>this['getSuggestionCallback'](_0x6b7307,_0x4f8085,'accept')(..._0x52182a),'onDiscard':(..._0xfb7dd8)=>this['getSuggestionCallback'](_0x6b7307,_0x4f8085,'discard')(..._0xfb7dd8)});}['registerCustomCallback'](_0x58b2a3,_0x16319f,_0x5e304e,_0x57cf41){const _0x493252=_0x58b2a3+':'+_0x16319f+':'+_0x5e304e;this['_customCallbacks']['set'](_0x493252,_0x57cf41);}['getSuggestionCallback'](_0x1c5b73,_0x1e1738,_0x2996f7){const _0x467380=_0x1c5b73+':'+_0x1e1738+':'+_0x2996f7;return this['_customCallbacks']['get'](_0x467380)||this['_defaultCallbacks']['get'](_0x1c5b73+':'+_0x2996f7);}['_registerDefaultCallbacks'](){const _0x2b4f00=()=>!0x1,_0x277445=_0x81ffbf=>{_0x81ffbf['sort']((_0x2bd58a,_0x58a661)=>_0x2bd58a['start']['isBefore'](_0x58a661['start'])?0x1:-0x1),this['_model']['change'](_0x22fc8a=>{for(const _0x3f3be1 of _0x81ffbf){let _0x35e5ec;_0x35e5ec=_0x3f3be1['end']['isAtEnd']&&_0x3f3be1['end']['parent']==_0x3f3be1['start']['nodeAfter']?_0x22fc8a['createSelection'](_0x3f3be1['start']['nodeAfter'],'on'):_0x22fc8a['createSelection'](_0x3f3be1),this['_model']['deleteContent'](_0x35e5ec,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c6198=(_0x351c9e,_0x30645f)=>{_0x30645f&&this['_model']['change'](_0x447b3c=>{const {commandName:_0x5a1964,commandParams:_0x302aba=[]}=_0x30645f,_0x363929=_0x351c9e['map'](_0x51ed72=>(Ft(_0x51ed72)&&(_0x51ed72=this['_model']['createRange'](_0x51ed72['end'])),_0x51ed72))['filter'](_0x2af565=>'$graveyard'!==_0x2af565['root']['rootName']);if(_0x363929['length']<0x1)return;const _0x2c6dad=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x59efeb=>_0x25ad8a['fromRange'](_0x59efeb));_0x447b3c['setSelection'](_0x363929);for(const _0x3ccb2d of this['_editor']['commands']['commands']())_0x3ccb2d['refresh']();_0x302aba['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5a1964,..._0x302aba);const _0x3b54f9=_0x2c6dad['filter'](_0x17c361=>'$graveyard'!=_0x17c361['root']['rootName']);_0x3b54f9['length']>0x0&&_0x447b3c['setSelection'](_0x3b54f9);for(const _0x376fb9 of _0x2c6dad)_0x376fb9['detach']();});},_0x1e808c=(_0x5b4bf7,_0x2dfbfb)=>0x1==_0x5b4bf7['length']&&0x1==_0x2dfbfb['length']&&_0x5b4bf7[0x0]['end']['isEqual'](_0x2dfbfb[0x0]['start']),_0x3faa17=(_0x450346,_0x218882,_0x52c477,_0x159ea8)=>Kt(_0x450346,_0x218882,_0x52c477,_0x159ea8)?[_0x450346,_0x218882]:Kt(_0x218882,_0x450346,_0x159ea8,_0x52c477)?[_0x218882,_0x450346]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b4f00),this['_defaultCallbacks']['set']('insertion:discard',_0x277445),this['_defaultCallbacks']['set']('insertion:join',_0x1e808c),this['_defaultCallbacks']['set']('insertion:chain',_0x3faa17),this['_defaultCallbacks']['set']('deletion:accept',_0x277445),this['_defaultCallbacks']['set']('deletion:discard',_0x2b4f00),this['_defaultCallbacks']['set']('deletion:join',_0x1e808c),this['_defaultCallbacks']['set']('deletion:chain',_0x3faa17),this['_defaultCallbacks']['set']('formatInline:accept',_0x2c6198),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b4f00),this['_defaultCallbacks']['set']('formatInline:join',_0x1e808c),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b4f00),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2c6198),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b4f00),this['_defaultCallbacks']['set']('formatBlock:join',_0x1e808c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b4f00),this['_defaultCallbacks']['set']('attribute:accept',_0x2b4f00),this['_defaultCallbacks']['set']('attribute:discard',(_0x3d66b0,_0x1ac37b)=>{if(!_0x1ac37b)return;const _0x53d2bf=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2e0471=>{if(_0x1ac37b['key']==m)for(const _0x3271b6 of _0x3d66b0){const _0x5e6d65=_0x3271b6['start']['nodeAfter'],_0x1012f2=_0x1ac37b['oldValue'];_0x2e0471['rename'](_0x5e6d65,_0x1012f2);}else{if(_0x53d2bf['_isBlockAttribute'](_0x1ac37b['key'])){for(const _0x591cbd of _0x3d66b0)void 0x0!==_0x1ac37b['oldValue']?_0x2e0471['setAttribute'](_0x1ac37b['key'],_0x1ac37b['oldValue'],_0x591cbd['start']['nodeAfter']):_0x2e0471['removeAttribute'](_0x1ac37b['key'],_0x591cbd['start']['nodeAfter']);}else{for(const _0x2d48a5 of _0x3d66b0)_0x1ac37b['oldValue']?_0x2e0471['setAttribute'](_0x1ac37b['key'],_0x1ac37b['oldValue'],_0x2d48a5):_0x2e0471['removeAttribute'](_0x1ac37b['key'],_0x2d48a5);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1e808c);}}function Gt(_0x486b38,_0x5f6e68,_0x243cc3){for(const _0xb5da84 of _0x5f6e68['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xb5da84['root']==_0xb5da84)return!0x1;if(!_0x243cc3['containsItem'](_0xb5da84))return!0x1;if(_0x486b38['isObject'](_0xb5da84)||_0x486b38['isLimit'](_0xb5da84))return!0x0;}return!0x1;}function Ft(_0x48abe6){return _0x48abe6['end']['parent']==_0x48abe6['start']['nodeAfter']&&_0x48abe6['end']['isAtStart'];}function Lt(_0x2fd7ac,_0x2a4a1b,_0x56fab9,_0x6bf629){const _0x5c36d0=_0x4b36b3=>!_0x4b36b3['item']['is']('$textProxy')&&!_0x6bf629['isObject'](_0x4b36b3['item']),_0x415d9d=_0x2fd7ac['start']['getLastMatchingPosition'](_0x5c36d0),_0x11f1aa=_0x2fd7ac['end']['getLastMatchingPosition'](_0x5c36d0,{'direction':'backward'});return(!_0x2fd7ac['start']['isEqual'](_0x415d9d)||!_0x2fd7ac['end']['isEqual'](_0x11f1aa))&&(_0x415d9d['isBefore'](_0x11f1aa)?_0x56fab9['updateMarker'](_0x2a4a1b,{'range':_0x56fab9['createRange'](_0x415d9d,_0x11f1aa)}):_0x56fab9['removeMarker'](_0x2a4a1b),!0x0);}function Jt(_0x4380cd){return _0x400a99(_0x4380cd);}function Ht(_0x4ddbe6){const _0x464f86=_0x4ddbe6['start']['nodeAfter'];return _0x464f86&&_0x464f86['is']('element');}function qt(_0x50e622,_0x117758){return null==_0x50e622['end']['nodeBefore']&&_0x50e622['end']['parent']==_0x50e622['start']['nodeAfter']?zt(_0x50e622['start']['nodeAfter'],_0x117758):_0x50e622;}function zt(_0x348c5b,_0x1e480c){const _0x445d76=_0x1e480c['schema']['isObject'](_0x348c5b)||_0x1e480c['schema']['isSelectable'](_0x348c5b);return _0x1e480c['createRange'](_0x1e480c['createPositionAt'](_0x348c5b,'before'),_0x445d76?_0x1e480c['createPositionAfter'](_0x348c5b):_0x1e480c['createPositionAt'](_0x348c5b,'end'));}function Kt(_0x3c5de0,_0x14b97c,_0x53dfda,_0x54f155){return!!Wt(_0x3c5de0,_0x14b97c)&&_0x53dfda['end']['isEqual'](_0x54f155['start']);}function Wt(_0x560dfd,_0x77c78d){if(!_0x560dfd['_isDataLoaded']||!_0x77c78d['_isDataLoaded'])return!0x1;const _0x426665=new Set(Object['keys'](_0x560dfd['attributes'])),_0x5eea25=new Set(Object['keys'](_0x77c78d['attributes']));if(_0x426665['delete']('groupId'),_0x5eea25['delete']('groupId'),0x0==_0x426665['size']&&0x0==_0x5eea25['size'])return!0x0;if(_0x426665['size']!=_0x5eea25['size'])return!0x1;const _0x5abe87={..._0x560dfd['attributes']},_0x1f693f={..._0x77c78d['attributes']};return delete _0x5abe87['groupId'],delete _0x1f693f['groupId'],JSON['stringify'](_0x5abe87)==JSON['stringify'](_0x1f693f);}function Qt(_0xb9ee8c,_0x563122){const _0x5c1a6a=Xt(_0xb9ee8c['attributes']),_0x2a8a21=Xt(_0x563122);if(!_0xb9ee8c['_isDataLoaded'])return!0x1;for(const _0x58fcb6 of Object['keys'](_0x2a8a21))if(!_0x198cb8(_0x5c1a6a[_0x58fcb6],_0x2a8a21[_0x58fcb6]))return!0x1;return!0x0;}function Xt(_0x510b27){const _0x1db432=Object['assign']({},_0x510b27);return delete _0x1db432['skipNestingCheck'],delete _0x1db432['tablePasteChainId'],_0x1db432;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x192914(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x415101,_0x15ce4e,_0x3f9041,_0x10370d){super(),this['model']=_0x15ce4e,this['view']=_0x3f9041,this['commentThreadController']=_0x10370d,this['_editor']=_0x415101,this['_acceptCommand']=_0x415101['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x415101['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x10ebe3,_0x2eb3aa)=>_0x10ebe3||_0x2eb3aa),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2a0239=>_0x2a0239&&this['_editor']['model']['canEditAt'](_0x15ce4e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2526fa=>_0x2526fa&&this['_editor']['model']['canEditAt'](_0x15ce4e['getRanges']())),this['_pendingAction']=null,_0x3f9041['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3f9041,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3f9041,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3f9041,'change:isDirty',()=>{_0x3f9041['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 _0x2406e4=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2406e4);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x299c1f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x219619,_0x2e2f0f,_0x233a30,_0xc36bd3){super(_0x219619),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x44ec2e(_0x219619,o(_0x219619,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2e2f0f['authoredAt']),this['bind']('authoredAt')['to'](_0x2e2f0f),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',_0x2e2f0f,'authoredAt',this,'descriptionParts',(_0x31d91c,_0x2e21b0,_0x2c6ff9)=>{const _0x3e27e0=_0x2c6ff9['map'](_0x3a4ca3=>cs(_0x3a4ca3['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x31d91c-0x1,_0x2e2f0f['author']['name'],_0x2e21b0?_0xc36bd3['formatDateTime'](_0x2e21b0):'',new DOMParser()['parseFromString'](_0x3e27e0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3b52c9(),this['focusTracker']=new _0x1bde4e(),this['keystrokes']=new _0x2a63d2(),this['focusCycler']=new _0x8de869({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x394267=>_0x394267['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2e2f0f,this['_localUser']=_0x233a30,this['_config']=_0xc36bd3,_0xc36bd3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x24db98(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2d57b2}=this['_config'];this['commentsListView']=new _0x2d57b2(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',_0x194278=>_0x194278+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x11777a,_0x4133b0)=>_0x11777a||!!_0x4133b0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5e77a1}=this['_config'],_0x455ffa=new _0x5e77a1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x171cf5=_0x455ffa['commentInputView'];return _0x455ffa['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x171cf5,'value',(_0x1242ea,_0x437899,_0x11c96a)=>!!_0x11c96a||_0x1242ea&&!_0x437899),_0x171cf5['on']('submit',(_0x5266ab,_0x4f8e8e)=>{this['fire']('addComment',_0x4f8e8e),_0x171cf5['editor']['setData']('');}),_0x171cf5['on']('cancel',()=>this['focus']()),_0x171cf5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x455ffa;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x206f77,_0x361e81,_0x686f0c,_0x5c9ba4){super(_0x206f77,_0x361e81,_0x686f0c,_0x5c9ba4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3b1f52=>_0x3b1f52&&_0x3b1f52[0x0]?_0x3b1f52[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x588ebb,_0xd303c)=>{let _0x431eee='';for(const _0x3f5b2c of _0x588ebb)_0x431eee+='<p>'+cs(_0x3f5b2c['content'],_0x3f5b2c['color'])+'</p>';return _0xd303c?_0x431eee:_0x739f3(_0x431eee,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5c9ba4['SuggestionView'](_0x206f77,_0x361e81,{'formatDateTime':_0x5c9ba4['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 _0x3a3b79=this['bindTemplate'],_0x5ba9fd=[this['suggestionView']];return this['commentsListView']&&_0x5ba9fd['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5ba9fd['push'](this['commentThreadInputView']),_0x5ba9fd['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3a3b79['if']('isActive','ck-suggestion-wrapper--active'),_0x3a3b79['to']('type',_0x2b171c=>'ck-suggestion-'+_0x2b171c),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':_0x3a3b79['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5ba9fd};}['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 _0x299c1f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x257c0a,_0x69b4b5,_0xb840ac){super(_0x257c0a),this['_model']=_0x69b4b5,this['_config']=_0xb840ac,this['set']('description',''),this['bind']('authoredAt')['to'](_0x69b4b5),this['acceptButton']=this['_createButton'](o(_0x257c0a,'Accept\x20suggestion'),_0x5610c7['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x257c0a,'Discard\x20suggestion'),_0x5610c7['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1bb3b9(_0x257c0a,_0x69b4b5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3b52c9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1bde4e(),this['keystrokes']=new _0x2a63d2(),this['focusCycler']=new _0x8de869({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5c6a80=>_0x5c6a80['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2bfd98=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2bfd98['innerHTML']=this['description'],this['on']('change:description',(_0x168a8f,_0xd66f,_0x2fc254)=>{_0x2bfd98['innerHTML']=_0x2fc254;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4b8268=this['bindTemplate'],_0x252f14=[{'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':_0x4b8268['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4b8268['to']('authoredAt',_0x54b25c=>this['_config']['formatDateTime'](_0x54b25c))}]}]},{'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']&&_0x252f14['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':_0x252f14}]};}['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'](_0x2cbcb6,_0x44992f,_0x2e3adc,_0x3c28f9,_0x23b72e){const _0x1f0c66=new _0xfb9a83(this['locale']);return _0x1f0c66['set']({'label':_0x2cbcb6,'icon':_0x44992f,'tooltip':!0x0,'tooltipPosition':_0x23b72e}),_0x1f0c66['extendTemplate']({'attributes':{'class':_0x2e3adc}}),_0x1f0c66['on']('execute',()=>{this['fire'](_0x3c28f9,this['_model']['id']);}),_0x1f0c66;}['_setupKeyboardNavigation'](){const _0x2815d3=this['element'];this['keystrokes']['listenTo'](_0x2815d3);for(const _0x2e6d6a of this['focusables'])this['focusTracker']['add'](_0x2e6d6a['element']),this['keystrokes']['listenTo'](_0x2e6d6a['element']);this['keystrokes']['set']('enter',(_0x346f63,_0x43be05)=>{_0x2815d3===_0x346f63['target']&&(this['focusCycler']['focusFirst'](),_0x43be05());}),this['keystrokes']['set']('esc',(_0x2a7eed,_0x14ded2)=>{_0x2815d3!==_0x2a7eed['target']&&(this['focus'](),_0x14ded2());});}}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 _0x4a996f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x28b017,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b306d){super(_0x5b306d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x13a06b=this['editor']['config'];_0x13a06b['define']('trackChanges.SuggestionThreadView',pe),_0x13a06b['define']('trackChanges.SuggestionView',fe),_0x13a06b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x13a06b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5cce31,_0x1c03b0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x317901,_0x2cdd9d]of this['_handleControllerBuffer']){const _0x621cb1=this['_suggestionToController']['has'](_0x317901);_0x621cb1||_0x2cdd9d?_0x621cb1&&_0x2cdd9d&&this['_destroyController'](_0x317901):this['_initializeController'](_0x317901);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5cce31,_0x1c03b0);}['init'](){const _0x30bb63=this['editor'],_0x1dfc87=_0x30bb63['plugins']['get']('TrackChangesEditing'),_0x1ec914=_0x30bb63['plugins']['get']('Annotations'),_0x5b43ce=_0x30bb63['plugins']['get']('EditorAnnotations'),_0x286cf7=_0x30bb63['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5b43ce['addSourceCollector'](()=>{const _0x7c85eb=[];for(const [_0x5acd36,_0x19b242]of Array['from'](this['_suggestionToController'])){const _0x873761=_0x5acd36['getAllAdjacentSuggestions'](),_0x140eb0=[];for(const _0x482f12 of _0x873761){if(!_0x482f12['isInContent'])continue;if(_0x482f12['isMultiRange']){_0x140eb0['push'](..._0x482f12['getRanges']());continue;}const _0x50efc1=_0x482f12['getFirstRange']();if(_0x140eb0['length']>0x0){const _0x3057f1=_0x140eb0[0x0]['getJoined'](_0x50efc1);if(_0x3057f1){_0x140eb0[0x0]=_0x3057f1;continue;}}_0x140eb0['push'](_0x50efc1);}_0x7c85eb['push']([_0x19b242['view'],_0x140eb0]);}return _0x7c85eb;}),this['listenTo'](_0x1dfc87,'suggestionLoaded',(_0x12a3f8,_0x3b2b2b)=>{this['listenTo'](_0x3b2b2b,'change:previous',(_0x431c02,_0x1f949e,_0xe180c2,_0x184a7b)=>{_0x3b2b2b['isInContent']&&(null==_0xe180c2?(this['_updateController'](_0x184a7b['head']),this['_handleSuggestionControllerDelayed'](_0x3b2b2b,!0x1)):(this['_updateController'](_0xe180c2['head']),null==_0x184a7b&&this['_handleSuggestionControllerDelayed'](_0x3b2b2b,!0x0)));}),null!==_0x3b2b2b['previous']?this['_updateController'](_0x3b2b2b['head']):this['_handleSuggestionControllerDelayed'](_0x3b2b2b,!0x1);}),this['listenTo'](_0x1dfc87,'suggestionUnloaded',(_0x51565b,_0x4bc11c,_0x2b4bd1)=>{this['stopListening'](_0x4bc11c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4bc11c),this['_suggestionToController']['has'](_0x4bc11c)&&this['_destroyController'](_0x4bc11c),_0x2b4bd1&&this['_updateController'](_0x2b4bd1['head']);}),this['listenTo'](_0x1dfc87,'suggestionChanged',(_0x174240,_0x5da735)=>{this['_updateController'](_0x5da735);}),this['listenTo'](_0x1ec914,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x286cf7,'addComment',(_0x22346a,{threadId:_0x3372e2,isFromAdapter:_0x2ed93c})=>{if(_0x2ed93c||!_0x1dfc87['hasSuggestion'](_0x3372e2))return;const _0x4c54d8=_0x1dfc87['getSuggestion'](_0x3372e2);this['_suggestionToController']['get'](_0x4c54d8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x45c63d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x194769;for(const _0x833b3c in _0x45c63d){const _0xfef362=_0x833b3c,_0x4924b2=_0x45c63d[_0xfef362];if('trackChangesLicenseKeyValid'==_0x4924b2||'trackChangesLicenseKeyInvalid'==_0x4924b2||'trackChangesLicenseKeyExpired'==_0x4924b2||'trackChangesLicenseKeyDomainLimit'==_0x4924b2||'trackChangesLicenseKeyNotAllowed'==_0x4924b2||'trackChangesLicenseKeyEvaluationLimit'==_0x4924b2||'trackChangesLicenseKeyTrialLimit'==_0x4924b2||'trackChangesLicenseKeyUsageLimit'==_0x4924b2){delete _0x45c63d[_0xfef362],_0x194769=_0x4924b2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x194769&&_0x45c63d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x194769&&_0x45c63d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x194769&&_0x45c63d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x194769&&_0x45c63d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x194769&&_0x45c63d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x194769&&_0x45c63d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x194769&&_0x45c63d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x444344=this['editor']['plugins']['get']('Annotations'),_0x22bfbe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c94c9=Array['from'](_0x444344['activeAnnotations'],_0x4c93d8=>_0x4c93d8['innerView'])['filter'](_0xd24534=>this['_viewToController']['has'](_0xd24534)),_0xfb42d6=[];for(const _0x44a0e1 of _0x4c94c9){const _0x5a361b=this['_viewToController']['get'](_0x44a0e1)['model']['getAllAdjacentSuggestions']();_0xfb42d6['push'](..._0x5a361b['reduce']((_0x51c752,_0x11f746)=>[..._0x51c752,..._0x11f746['getMarkerNames']()],[]));}_0x22bfbe['activeMarkers']=_0xfb42d6;}['_addUIComponentsToFactory'](){const _0x2a3404=this['editor'],_0x5521de=_0x2a3404['locale'],_0x318cbe=o(_0x5521de,'Track\x20changes'),_0x1b9043=new _0x55d64d([{'type':'switchbutton','model':new _0x539f8a({'withText':!0x0,'isToggleable':!0x0,'label':_0x318cbe,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x539f8a({'withText':!0x0,'label':o(_0x5521de,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x539f8a({'withText':!0x0,'label':o(_0x5521de,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x539f8a({'withText':!0x0,'label':o(_0x5521de,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x539f8a({'withText':!0x0,'label':o(_0x5521de,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2a3404['plugins']['has']('TrackChangesPreview')&&_0x1b9043['addMany']([{'type':'separator'},{'type':'button','model':new _0x539f8a({'withText':!0x0,'label':o(_0x5521de,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x530fdd of _0x1b9043)if(ke(_0x530fdd)){const _0x2e01f3=_0x2a3404['commands']['get'](_0x530fdd['model']['commandName']);_0x530fdd['model']['bind']('isOn','isEnabled')['to'](_0x2e01f3,'value','isEnabled');}_0x2a3404['ui']['componentFactory']['add']('trackChanges',_0x489064=>this['_createToolbarButton'](_0x489064,_0x1b9043,_0x318cbe)),_0x2a3404['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1418b5=>this['_createMenuBarMenu'](_0x1418b5,_0x1b9043,_0x318cbe));}['_createToolbarButton'](_0x57986f,_0x45f073,_0x29ddcd){const _0x4cc9d2=_0x11391c(_0x57986f,_0x4490dc),_0x2ef9b3=this['editor']['commands']['get']('trackChanges');_0x4cc9d2['buttonView']['set']({'tooltip':_0x29ddcd,'label':_0x29ddcd,'icon':we}),_0x4cc9d2['buttonView']['bind']('isOn')['to'](_0x2ef9b3,'value'),_0x4cc9d2['buttonView']['on']('execute',()=>{_0x2ef9b3['execute'](),this['editor']['editing']['view']['focus']();}),_0x408e6f(_0x4cc9d2,_0x45f073,{'role':'menu'});const _0x4a31cc=[];for(const _0x5a2e39 of _0x45f073)ke(_0x5a2e39)&&_0x4a31cc['push'](this['editor']['commands']['get'](_0x5a2e39['model']['commandName']));const _0x35d10b=_0x4cc9d2['buttonView'];return _0x35d10b['actionView']['unbind']('isEnabled'),_0x35d10b['arrowView']['unbind']('isEnabled'),_0x35d10b['actionView']['bind']('isEnabled')['to'](_0x2ef9b3,'isEnabled'),_0x35d10b['arrowView']['bind']('isEnabled')['toMany'](_0x4a31cc,'isEnabled',(..._0x2b9178)=>_0x2b9178['some'](_0x4bc05d=>_0x4bc05d)),_0x4cc9d2['on']('execute',_0xc75af4=>{this['editor']['execute'](_0xc75af4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4cc9d2;}['_createMenuBarMenu'](_0x81c337,_0x251e33,_0x1b4fec){const _0x2673ca=new _0x5937dd(_0x81c337),_0x145509=this['editor']['commands']['get']('trackChanges');_0x2673ca['buttonView']['set']({'label':_0x1b4fec,'icon':we});const _0x3ba4bf=new _0x2202cb(_0x81c337);for(const _0x3c8c6c of _0x251e33){if('separator'==_0x3c8c6c['type']){_0x3ba4bf['items']['add'](new _0x22e4a0(_0x81c337));continue;}const _0x3472d2=new _0x634c3(_0x81c337,_0x2673ca),_0x5c13ee=new _0x3238a0(_0x81c337),_0x393c8b=_0x3c8c6c['model'];_0x5c13ee['bind'](...Object['keys'](_0x393c8b))['to'](_0x393c8b),_0x5c13ee['delegate']('execute')['to'](_0x2673ca),_0x5c13ee['on']('execute',()=>{this['editor']['execute'](_0x393c8b['commandName']),this['editor']['editing']['view']['focus']();}),_0x3472d2['children']['add'](_0x5c13ee),_0x3ba4bf['items']['add'](_0x3472d2);}return _0x2673ca['bind']('isEnabled')['to'](_0x145509,'isEnabled'),_0x2673ca['panelView']['children']['add'](_0x3ba4bf),_0x2673ca;}['_initializeController'](_0x36bfd5){const _0x585ed3=this['editor'],_0x3c0933=_0x585ed3['config'],_0x1cd7b4=_0x585ed3['plugins']['get']('Annotations'),_0x4e0758=_0x585ed3['plugins']['get']('CommentsRepository'),_0x1756da=_0x585ed3['plugins']['get']('EditorAnnotations'),_0x499179=_0x585ed3['plugins']['get'](_0x28b017)['me'],_0x3ff7fc=_0x3c0933['get']('trackChanges')['SuggestionThreadView'],_0x3e2e81=_0x3c0933['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x9a7223,CommentThreadInputView:_0x352dd5}=_0x585ed3['plugins']['get']('CommentsUI');let _0x547f4b,_0x5df3f4,_0x5d7bec;this['_annotationViews']['has'](_0x36bfd5['id'])?(_0x5df3f4=this['_annotationViews']['get'](_0x36bfd5['id']),_0x547f4b=_0x5df3f4['mainView']):(_0x547f4b=new _0x3ff7fc(_0x585ed3['locale'],_0x36bfd5,_0x499179,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3c0933['get']('comments.editorConfig'),'licenseKey':_0x3c0933['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3c0933['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3c0933['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3c0933['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3fed3a(_0x3c0933['get']('locale')),'CommentView':_0x3c0933['get']('comments')['CommentView'],'CommentsListView':_0x9a7223,'CommentThreadInputView':_0x352dd5,'SuggestionView':_0x3e2e81}),_0x547f4b['suggestionView']['acceptButton']['on']('execute',()=>{_0x585ed3['editing']['view']['focus']();}),_0x547f4b['suggestionView']['discardButton']['on']('execute',()=>{_0x585ed3['editing']['view']['focus']();}),_0x5df3f4=_0x1cd7b4['createAnnotationView'](this['editor']['locale'],_0x547f4b),_0x5df3f4['bind']('isDirty')['to'](_0x547f4b,'isDirty'),_0x5df3f4['bind']('length')['to'](_0x547f4b),_0x5df3f4['bind']('type')['to'](_0x547f4b,'type',_0x336166=>'suggestion-'+_0x336166),_0x547f4b['on']('escape',()=>{_0x5d7bec['fire']('escape');}),this['_annotationViews']['set'](_0x36bfd5['id'],_0x5df3f4));const _0x478207=_0x4e0758['createCommentThreadController'](_0x36bfd5['commentThread'],_0x547f4b),_0x4b8493=new Ce(_0x585ed3,_0x36bfd5,_0x547f4b,_0x478207),_0x487678=_0x36bfd5['getAllAdjacentSuggestions']()['filter'](_0x2f7211=>_0x2f7211['isInContent']);_0x547f4b['descriptionParts']=_0x585ed3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x487678),this['_suggestionToController']['set'](_0x36bfd5,_0x4b8493),this['_viewToController']['set'](_0x547f4b,_0x4b8493),_0x5d7bec=_0x1cd7b4['createAnnotation']({'view':_0x5df3f4,'target':()=>{const _0x59dae7=[],_0x2576ac=_0x36bfd5['getAllAdjacentSuggestions']()['filter'](_0x3410ae=>_0x3410ae['isInContent']);for(const _0x319ba9 of _0x2576ac)_0x59dae7['push'](..._0x319ba9['getMarkers']());return _0x4ec61a(_0x585ed3['editing'],_0x59dae7);},'type':()=>'suggestion-'+_0x4b8493['view']['type']}),_0x4e0758['_bindAnnotationToEditors'](_0x547f4b,_0x5d7bec),_0x1cd7b4['add'](_0x5d7bec),_0x1756da['registerAnnotation'](_0x5d7bec);}['_destroyController'](_0x208ddb){const _0x81cfa5=this['editor']['plugins']['get']('CommentsRepository'),_0x9826e9=this['editor']['plugins']['get']('Annotations'),_0x1b84ff=this['_suggestionToController']['get'](_0x208ddb),_0x2fb7be=_0x1b84ff['view'],_0x359b53=_0x9826e9['getByInnerView'](_0x2fb7be);_0x81cfa5['_unbindEditors'](_0x2fb7be),_0x359b53&&_0x9826e9['remove'](_0x359b53),this['_suggestionToController']['delete'](_0x208ddb),this['_viewToController']['delete'](_0x2fb7be),_0x1b84ff['destroy']();}['_updateController'](_0x1185bc){if(!_0x1185bc['isInContent']||!this['_suggestionToController']['has'](_0x1185bc))return;const _0x548d38=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e86ff=this['_suggestionToController']['get'](_0x1185bc),_0x3d5e06=_0x1185bc['getAllAdjacentSuggestions']();_0x4e86ff['view']['descriptionParts']=_0x548d38['descriptionFactory']['getDescriptions'](_0x3d5e06);}['destroy'](){for(const _0x37a92e of this['_suggestionToController']['keys']())this['_destroyController'](_0x37a92e);for(const _0x1b770c of this['_annotationViews']['values']())_0x1b770c['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x127e31){return'model'in _0x127e31;}class k extends _0x4a996f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4c9e27){this['editor']['plugins']['get'](p)['adapter']=_0x4c9e27;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2963a0){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2963a0);}['getSuggestions']({skipNotAttached:_0x51908e=!0x1,toJSON:_0xadb34f=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x51908e,'toJSON':_0xadb34f});}['getSuggestion'](_0x2bcc53){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2bcc53);}}const w=['Pagination'];class T extends _0x4a996f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3104b3=this['editor'];if(_0x3104b3['config']['define']('trackChangesData.editorCreator',_0x515dac=>{const _0x3838ea=_0x3104b3['model']['document']['getRootNames']()['reduce']((_0x27714a,_0x2aa97c)=>(_0x27714a[_0x2aa97c]='',_0x27714a),{});return _0x3104b3['constructor']['create'](_0x3838ea,_0x515dac);}),'function'!=typeof _0x3104b3['config']['get']('trackChangesData')['editorCreator'])throw new _0x27fd5b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x28cfb3){return N(this['editor'],!0x0,_0x28cfb3);}['getDataWithDiscardedSuggestions'](_0x3d131f){return N(this['editor'],!0x1,_0x3d131f);}}class D extends _0x4a996f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2715c3){function _0x54b097(_0x373707){return _0x373707['map'](_0x5babb6=>String['fromCharCode'](_0x5babb6))['join']('');}super(_0x2715c3),this['result']='end',_0x2715c3[_0x54b097([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b097([0x76,0x69,0x65,0x77])][_0x54b097([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54b097([0x61,0x75,0x74,0x6f]),_0x2715c3[_0x54b097([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x54b097([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54b097([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x54b097([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x54b097([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(_0x33bc4f){return void 0x0!==_0x33bc4f['getRootsAttributes'];}async function N(_0x511222,_0x129bb3,_0x107469){const _0x592078=_0x43d7ca(_0x511222,w);_0x592078['plugins']['push'](p,D),_0x592078['rootsAttributes']=Fe(_0x511222)?_0x511222['getRootsAttributes']():void 0x0;const _0x50fa77=document['createDocumentFragment'](),_0x47b014=_0x511222['config']['get']('trackChangesData')['editorCreator'],_0x48c23b=await _0x47b014(_0x592078,()=>function(_0x5efef1){const _0x479ad7=document['createElement']('div');return _0x5efef1['appendChild'](_0x479ad7),_0x479ad7;}(_0x50fa77));!function(_0x8dccc4,_0x599353){const _0x419de3=_0x8dccc4['model']['document']['getRootNames']()['reduce']((_0x4e5f04,_0x3f0735)=>(_0x4e5f04[_0x3f0735]=_0x8dccc4['data']['get']({'rootName':_0x3f0735}),_0x4e5f04),{}),_0x282bc5=_0x8dccc4['plugins']['get']('Users')['users']['map'](_0x3cfdcc=>({'id':_0x3cfdcc['id'],'name':_0x3cfdcc['name']})),_0xa09789=_0x8dccc4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e8bb0=_0x8dccc4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x334c9e=_0x599353['plugins']['get']('Users'),_0x8571a9=_0x599353['plugins']['get']('TrackChangesEditing'),_0x570b7b=_0x599353['plugins']['get']('CommentsRepository');for(const _0x577cab of _0x570b7b['getCommentThreads']())_0x577cab['remove']();for(const _0x2c1649 of _0x282bc5)_0x334c9e['getUser'](_0x2c1649['id'])||_0x334c9e['addUser'](_0x2c1649);_0x334c9e['me']||_0x334c9e['useAnonymousUser']();for(const _0xadf90a of _0x4e8bb0)_0x570b7b['addCommentThread'](_0xadf90a);for(const _0x1a5ac1 of _0xa09789)_0x8571a9['addSuggestionData'](_0x1a5ac1);_0x599353['data']['set'](_0x419de3);}(_0x511222,_0x48c23b),_0x48c23b['execute'](_0x129bb3?'acceptAllSuggestions':'discardAllSuggestions');const _0xa4088=Fe(_0x48c23b)?_0x48c23b['getFullData'](_0x107469):_0x48c23b['data']['get'](_0x107469);return await _0x48c23b['destroy'](),_0xa4088;}class Me extends _0x299c1f{['options'];constructor(_0x19d89f,_0x2c7771){super(_0x19d89f),this['options']=_0x2c7771,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'](_0x50f9e7,_0x2f7b23){if(!this['element'])return;const _0x31c41b=[];for(const [_0x429807,_0x47412d]of _0x50f9e7){const _0x81d64d=document['createElement']('div');_0x81d64d['setAttribute']('data-ck-root-name',_0x429807),_0x81d64d['className']=_0x47412d['classes']+'\x20ck-track-changes-preview__root-container',_0x81d64d['innerHTML']=_0x47412d['content'],_0x31c41b['push'](_0x81d64d);}_0x2f7b23(this['element'],_0x31c41b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x5807c9){super(_0x5807c9),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x481695=this['editor'],_0x1e59dd=_0x481695['locale'],_0x154768=_0x481695['plugins']['get']('Dialog');let _0x112581;const _0x56fb0e=function(_0x2c5eaa){const _0xc1ee41={};if('editables'in _0x2c5eaa['ui']['view']){for(const [_0x6e5d40,_0x6db461]of Object['entries'](_0x2c5eaa['ui']['view']['editables']))_0xc1ee41[_0x6e5d40]=_0x6db461['element'];}else _0xc1ee41[_0x2c5eaa['model']['document']['getRootNames']()[0x0]]=_0x2c5eaa['ui']['view']['editable']['element'];return _0xc1ee41;}(_0x481695),_0x284cde=function(_0x2d5ff1){let _0x4052c6=0x0;for(const _0x14adc1 of Object['values'](_0x2d5ff1))_0x4052c6=Math['max'](_0x4052c6,_0x14adc1['getBoundingClientRect']()['width']);let _0x5d83ff=0x0;for(const _0xb980c4 of Object['values'](_0x2d5ff1))_0x5d83ff+=_0xb980c4['getBoundingClientRect']()['height'];const _0x3797dd=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x325514=Math['min'](_0x5d83ff,_0x3797dd);return{'width':_0x4052c6,'height':_0x325514};}(_0x56fb0e);_0x154768['show']({'id':'finalContentPreview','title':o(_0x1e59dd,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1e59dd,{'dialogRects':_0x284cde}),'onHide':()=>{_0x112581['detachFromDom']();},'onShow':()=>{_0x481695['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1a247d=>{const _0x1be855=this['_standarizeRootsData'](_0x1a247d,_0x481695,_0x56fb0e);_0x154768['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1be855,_0x481695['config']['get']('trackChanges.preview.renderFunction'));}),_0x112581=new _0x1cf521(_0x1e59dd,[_0x154768['view']]),_0x112581['attachToDom'](),_0x112581['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x481695['once']('destroy',()=>{_0x112581['detachFromDom']();});const _0x1fea7b=_0x154768['view']['headerView']['class'];_0x154768['view']['headerView']['class']=_0x1fea7b?_0x1fea7b+'\x20ck-reset_all':'ck-reset_all',_0x154768['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x154768['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x260483=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xdb76b0=_0x260483['previewMode'],_0x20960e={};if('$labels'===_0xdb76b0){for(const _0xf0e88e of _0x260483['getMergeFieldsIds']())_0x20960e[_0xf0e88e]=_0x260483['getLabel'](_0xf0e88e)||_0xf0e88e;}else{const _0x2c95fc='$defaultValues'===_0xdb76b0?_0x260483['getDefaultValues']():_0x260483['getDataSetValues'](_0xdb76b0,!0x0);for(const _0x49e282 of Object['entries'](_0x2c95fc)){const [_0x4721a5,_0xa95874]=_0x49e282;_0x20960e[_0x4721a5]=null!==_0xa95874?_0xa95874:_0x260483['getLabel'](_0x4721a5)||_0x4721a5;}}return{'mergeFieldsData':_0x20960e};}['_standarizeRootsData'](_0x20de51,_0x416555,_0x504b16){let _0x209eb3;if('string'==typeof _0x20de51){const _0x5e6a2e=_0x416555['model']['document']['getRootNames']()[0x0];_0x209eb3={[_0x5e6a2e]:_0x20de51};}else _0x209eb3=_0x20de51;const _0x3abcd6=this['_fixMediaEmbeds'](_0x209eb3,_0x416555),_0x5abc3e=function(_0x5aeaf7,_0x181e12){for(const [_0x17fbe1,_0x28d121]of _0x5aeaf7)_0x28d121['classes']=_0x181e12[_0x17fbe1]['classList']['value']['replace']('ck-focused','');return _0x5aeaf7;}(this['_sortRoots'](_0x416555)['reduce']((_0x4a5ff8,_0x4d25ee)=>(_0x4a5ff8['push']([_0x4d25ee,{'content':_0x3abcd6[_0x4d25ee],'classes':''}]),_0x4a5ff8),[]),_0x504b16);return _0x5abc3e;}['_fixMediaEmbeds'](_0x46b57e,_0x442c80){if(!_0x442c80['plugins']['has']('MediaEmbedEditing'))return _0x46b57e;const _0x7dfeb3=_0x442c80['plugins']['get']('MediaEmbedEditing');for(const [_0x1b1be2,_0x2daca7]of Object['entries'](_0x46b57e)){const _0x30f4ce=document['createElement']('div');_0x30f4ce['innerHTML']=_0x2daca7,(_0x30f4ce['querySelectorAll']('figure.media')['forEach'](_0x218632=>{const _0x3c8946=_0x218632['querySelector']('oembed');if(_0x3c8946){const _0x9899c9=_0x3c8946['getAttribute']('url');if(_0x9899c9){const _0x5ce4f7=_0x7dfeb3['registry']['getMediaViewElement'](new _0x1a9938(_0x442c80['editing']['view']['document']),_0x9899c9,{'elementName':'','renderForEditingView':!0x0}),_0x566e86=document['createElement']('div');_0x566e86['classList']['add']('ck-media__wrapper'),_0x5ce4f7['render'](_0x566e86,_0x442c80['editing']['view']['domConverter']),_0x3c8946['replaceWith'](_0x566e86);}}}),_0x46b57e[_0x1b1be2]=_0x30f4ce['innerHTML']);}return _0x46b57e;}['_sortRoots'](_0x1b1132){if(!function(_0x104806){return void 0x0!==_0x104806['getRootsAttributes'];}(_0x1b1132))return _0x1b1132['model']['document']['getRootNames']();const _0x2d5679=[],_0x15e717=new Map();for(const _0x520390 of _0x1b1132['model']['document']['getRootNames']()){const _0x1687c9=_0x1b1132['editing']['view']['getDomRoot'](_0x520390)['getClientRects']()['item'](0x0);_0x2d5679['push'](_0x520390),_0x15e717['set'](_0x520390,_0x1687c9);}return _0x2d5679['sort']((_0x4a41c0,_0x57f20b)=>{const _0x2bcab8=_0x15e717['get'](_0x4a41c0),_0x3eb3fb=_0x15e717['get'](_0x57f20b);return _0x2bcab8['y']-_0x3eb3fb['y']||_0x2bcab8['x']-_0x3eb3fb['x'];}),_0x2d5679;}}class te extends _0x4a996f{static get['requires'](){return[T,_0xc1630d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x41ccd3){super(_0x41ccd3),_0x41ccd3['commands']['add']('previewFinalContent',new re(this['editor'])),_0x41ccd3['config']['define']('trackChanges.preview.renderFunction',(_0x163c91,_0x52ff15)=>{for(const _0x5d4879 of _0x52ff15)_0x163c91['appendChild'](_0x5d4879);});}}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};
|